From 13f05ae01ca99d79bd7753e7d654e9a66c297ef9 Mon Sep 17 00:00:00 2001 From: Jarrod Lowe <41766555+jarrod-lowe@users.noreply.github.com> Date: Sat, 17 Aug 2024 15:38:31 +1200 Subject: [PATCH] Re-work pipeline (#30) --- .../workflows/environment-main-deploy.yaml | 13 + .github/workflows/environment-main-plan.yaml | 13 + .gitignore | 4 + graphql/graphql.mk | 2 +- graphql/mutation/createGame/appsync.js | 38 - graphql/node_modules/.bin/acorn | 1 - graphql/node_modules/.bin/eslint | 1 - graphql/node_modules/.bin/js-yaml | 1 - graphql/node_modules/.bin/node-which | 1 - graphql/node_modules/.bin/semver | 1 - graphql/node_modules/.bin/tsc | 1 - graphql/node_modules/.bin/tsserver | 1 - graphql/node_modules/.package-lock.json | 1506 - .../@aws-appsync/utils/CHANGELOG.md | 137 - .../node_modules/@aws-appsync/utils/LICENSE | 175 - .../@aws-appsync/utils/LICENSE-THIRD-PARTY | 0 .../node_modules/@aws-appsync/utils/README.md | 39 - .../@aws-appsync/utils/dynamodb.d.ts | 1 - .../@aws-appsync/utils/dynamodb.js | 1 - .../node_modules/@aws-appsync/utils/index.js | 1 - .../utils/lib/dynamodb-helpers.d.ts | 756 - .../utils/lib/dynamodb-helpers.js | 3 - .../utils/lib/dynamodb-helpers.js.map | 1 - .../utils/lib/dynamodb-utils.d.ts | 309 - .../@aws-appsync/utils/lib/dynamodb-utils.js | 15 - .../utils/lib/dynamodb-utils.js.map | 1 - .../@aws-appsync/utils/lib/http-utils.d.ts | 38 - .../@aws-appsync/utils/lib/http-utils.js | 3 - .../@aws-appsync/utils/lib/http-utils.js.map | 1 - .../@aws-appsync/utils/lib/index.d.ts | 482 - .../@aws-appsync/utils/lib/index.js | 25 - .../@aws-appsync/utils/lib/index.js.map | 1 - .../@aws-appsync/utils/lib/math-utils.d.ts | 41 - .../@aws-appsync/utils/lib/math-utils.js | 3 - .../@aws-appsync/utils/lib/math-utils.js.map | 1 - .../@aws-appsync/utils/lib/rds-helpers.d.ts | 376 - .../@aws-appsync/utils/lib/rds-helpers.js | 3 - .../@aws-appsync/utils/lib/rds-helpers.js.map | 1 - .../@aws-appsync/utils/lib/rds-utils.d.ts | 120 - .../@aws-appsync/utils/lib/rds-utils.js | 3 - .../@aws-appsync/utils/lib/rds-utils.js.map | 1 - .../utils/lib/resolver-return-types.d.ts | 349 - .../utils/lib/resolver-return-types.js | 3 - .../utils/lib/resolver-return-types.js.map | 1 - .../@aws-appsync/utils/lib/string-utils.d.ts | 13 - .../@aws-appsync/utils/lib/string-utils.js | 3 - .../utils/lib/string-utils.js.map | 1 - .../utils/lib/subscription-filter-types.d.ts | 38 - .../utils/lib/subscription-filter-types.js | 3 - .../lib/subscription-filter-types.js.map | 1 - .../@aws-appsync/utils/lib/time-utils.d.ts | 85 - .../@aws-appsync/utils/lib/time-utils.js | 3 - .../@aws-appsync/utils/lib/time-utils.js.map | 1 - .../utils/lib/transform-utils.d.ts | 244 - .../@aws-appsync/utils/lib/transform-utils.js | 3 - .../utils/lib/transform-utils.js.map | 1 - .../@aws-appsync/utils/lib/type-utils.d.ts | 8 - .../@aws-appsync/utils/lib/type-utils.js | 3 - .../@aws-appsync/utils/lib/type-utils.js.map | 1 - .../@aws-appsync/utils/lib/xml-utils.d.ts | 46 - .../@aws-appsync/utils/lib/xml-utils.js | 3 - .../@aws-appsync/utils/lib/xml-utils.js.map | 1 - .../@aws-appsync/utils/package.json | 31 - .../node_modules/@aws-appsync/utils/rds.d.ts | 1 - .../node_modules/@aws-appsync/utils/rds.js | 1 - .../@eslint-community/eslint-utils/LICENSE | 21 - .../@eslint-community/eslint-utils/README.md | 37 - .../@eslint-community/eslint-utils/index.js | 2068 - .../eslint-utils/index.js.map | 1 - .../@eslint-community/eslint-utils/index.mjs | 2027 - .../eslint-utils/index.mjs.map | 1 - .../node_modules/eslint-visitor-keys/LICENSE | 201 - .../eslint-visitor-keys/README.md | 105 - .../dist/eslint-visitor-keys.cjs | 384 - .../dist/eslint-visitor-keys.d.cts | 27 - .../eslint-visitor-keys/dist/index.d.ts | 16 - .../dist/visitor-keys.d.ts | 12 - .../eslint-visitor-keys/lib/index.js | 65 - .../eslint-visitor-keys/lib/visitor-keys.js | 315 - .../eslint-visitor-keys/package.json | 74 - .../eslint-utils/package.json | 73 - .../@eslint-community/regexpp/LICENSE | 21 - .../@eslint-community/regexpp/README.md | 177 - .../@eslint-community/regexpp/index.d.ts | 1079 - .../@eslint-community/regexpp/index.js | 2868 - .../@eslint-community/regexpp/index.js.map | 1 - .../@eslint-community/regexpp/index.mjs | 2858 - .../@eslint-community/regexpp/index.mjs.map | 1 - .../@eslint-community/regexpp/package.json | 91 - .../node_modules/@eslint/config-array/LICENSE | 201 - .../@eslint/config-array/README.md | 359 - .../@eslint/config-array/dist/cjs/index.cjs | 1222 - .../@eslint/config-array/dist/cjs/index.d.cts | 137 - .../@eslint/config-array/dist/cjs/types.ts | 24 - .../@eslint/config-array/dist/esm/index.d.ts | 137 - .../@eslint/config-array/dist/esm/index.js | 1220 - .../@eslint/config-array/dist/esm/types.d.ts | 19 - .../@eslint/config-array/dist/esm/types.ts | 24 - .../@eslint/config-array/package.json | 64 - graphql/node_modules/@eslint/eslintrc/LICENSE | 19 - .../node_modules/@eslint/eslintrc/README.md | 126 - .../@eslint/eslintrc/conf/config-schema.js | 79 - .../@eslint/eslintrc/conf/environments.js | 215 - .../eslintrc/dist/eslintrc-universal.cjs | 1143 - .../eslintrc/dist/eslintrc-universal.cjs.map | 1 - .../@eslint/eslintrc/dist/eslintrc.cjs | 4371 - .../@eslint/eslintrc/dist/eslintrc.cjs.map | 1 - .../lib/cascading-config-array-factory.js | 532 - .../eslintrc/lib/config-array-factory.js | 1155 - .../eslintrc/lib/config-array/config-array.js | 510 - .../lib/config-array/config-dependency.js | 124 - .../lib/config-array/extracted-config.js | 145 - .../lib/config-array/ignore-pattern.js | 238 - .../eslintrc/lib/config-array/index.js | 19 - .../lib/config-array/override-tester.js | 225 - .../@eslint/eslintrc/lib/flat-compat.js | 318 - .../@eslint/eslintrc/lib/index-universal.js | 29 - .../@eslint/eslintrc/lib/index.js | 58 - .../@eslint/eslintrc/lib/shared/ajv.js | 191 - .../@eslint/eslintrc/lib/shared/config-ops.js | 135 - .../eslintrc/lib/shared/config-validator.js | 370 - .../lib/shared/deprecation-warnings.js | 63 - .../@eslint/eslintrc/lib/shared/naming.js | 96 - .../lib/shared/relative-module-resolver.js | 42 - .../@eslint/eslintrc/lib/shared/types.js | 149 - .../node_modules/globals/globals.json | 1998 - .../eslintrc/node_modules/globals/index.d.ts | 2077 - .../eslintrc/node_modules/globals/index.js | 2 - .../eslintrc/node_modules/globals/license | 9 - .../node_modules/globals/package.json | 58 - .../eslintrc/node_modules/globals/readme.md | 44 - .../@eslint/eslintrc/package.json | 82 - .../@eslint/eslintrc/universal.js | 9 - graphql/node_modules/@eslint/js/LICENSE | 19 - graphql/node_modules/@eslint/js/README.md | 57 - graphql/node_modules/@eslint/js/package.json | 31 - .../@eslint/js/src/configs/eslint-all.js | 217 - .../js/src/configs/eslint-recommended.js | 83 - graphql/node_modules/@eslint/js/src/index.js | 17 - .../@eslint/object-schema/LICENSE | 201 - .../@eslint/object-schema/README.md | 237 - .../@eslint/object-schema/dist/cjs/index.cjs | 455 - .../object-schema/dist/cjs/index.d.cts | 123 - .../@eslint/object-schema/dist/cjs/types.ts | 55 - .../@eslint/object-schema/dist/esm/index.d.ts | 123 - .../@eslint/object-schema/dist/esm/index.js | 452 - .../@eslint/object-schema/dist/esm/types.d.ts | 40 - .../@eslint/object-schema/dist/esm/types.ts | 55 - .../@eslint/object-schema/package.json | 60 - .../module-importer/CHANGELOG.md | 15 - .../@humanwhocodes/module-importer/LICENSE | 201 - .../@humanwhocodes/module-importer/README.md | 80 - .../module-importer/dist/module-importer.cjs | 22 - .../dist/module-importer.d.cts | 27 - .../module-importer/dist/module-importer.d.ts | 2 - .../module-importer/dist/module-importer.js | 18 - .../module-importer/package.json | 65 - .../module-importer/src/module-importer.cjs | 81 - .../module-importer/src/module-importer.js | 22 - .../node_modules/@humanwhocodes/retry/LICENSE | 201 - .../@humanwhocodes/retry/README.md | 138 - .../@humanwhocodes/retry/dist/retrier.cjs | 284 - .../@humanwhocodes/retry/dist/retrier.d.cts | 28 - .../@humanwhocodes/retry/dist/retrier.d.ts | 28 - .../@humanwhocodes/retry/dist/retrier.js | 283 - .../@humanwhocodes/retry/dist/retrier.min.js | 1 - .../@humanwhocodes/retry/dist/retrier.mjs | 282 - .../@humanwhocodes/retry/package.json | 76 - .../node_modules/@nodelib/fs.scandir/LICENSE | 21 - .../@nodelib/fs.scandir/README.md | 171 - .../@nodelib/fs.scandir/out/adapters/fs.d.ts | 20 - .../@nodelib/fs.scandir/out/adapters/fs.js | 19 - .../@nodelib/fs.scandir/out/constants.d.ts | 4 - .../@nodelib/fs.scandir/out/constants.js | 17 - .../@nodelib/fs.scandir/out/index.d.ts | 12 - .../@nodelib/fs.scandir/out/index.js | 26 - .../fs.scandir/out/providers/async.d.ts | 7 - .../fs.scandir/out/providers/async.js | 104 - .../fs.scandir/out/providers/common.d.ts | 1 - .../fs.scandir/out/providers/common.js | 13 - .../fs.scandir/out/providers/sync.d.ts | 5 - .../@nodelib/fs.scandir/out/providers/sync.js | 54 - .../@nodelib/fs.scandir/out/settings.d.ts | 20 - .../@nodelib/fs.scandir/out/settings.js | 24 - .../@nodelib/fs.scandir/out/types/index.d.ts | 20 - .../@nodelib/fs.scandir/out/types/index.js | 2 - .../@nodelib/fs.scandir/out/utils/fs.d.ts | 2 - .../@nodelib/fs.scandir/out/utils/fs.js | 19 - .../@nodelib/fs.scandir/out/utils/index.d.ts | 2 - .../@nodelib/fs.scandir/out/utils/index.js | 5 - .../@nodelib/fs.scandir/package.json | 44 - graphql/node_modules/@nodelib/fs.stat/LICENSE | 21 - .../node_modules/@nodelib/fs.stat/README.md | 126 - .../@nodelib/fs.stat/out/adapters/fs.d.ts | 13 - .../@nodelib/fs.stat/out/adapters/fs.js | 17 - .../@nodelib/fs.stat/out/index.d.ts | 12 - .../@nodelib/fs.stat/out/index.js | 26 - .../@nodelib/fs.stat/out/providers/async.d.ts | 4 - .../@nodelib/fs.stat/out/providers/async.js | 36 - .../@nodelib/fs.stat/out/providers/sync.d.ts | 3 - .../@nodelib/fs.stat/out/providers/sync.js | 23 - .../@nodelib/fs.stat/out/settings.d.ts | 16 - .../@nodelib/fs.stat/out/settings.js | 16 - .../@nodelib/fs.stat/out/types/index.d.ts | 4 - .../@nodelib/fs.stat/out/types/index.js | 2 - .../@nodelib/fs.stat/package.json | 37 - graphql/node_modules/@nodelib/fs.walk/LICENSE | 21 - .../node_modules/@nodelib/fs.walk/README.md | 215 - .../@nodelib/fs.walk/out/index.d.ts | 14 - .../@nodelib/fs.walk/out/index.js | 34 - .../@nodelib/fs.walk/out/providers/async.d.ts | 12 - .../@nodelib/fs.walk/out/providers/async.js | 30 - .../@nodelib/fs.walk/out/providers/index.d.ts | 4 - .../@nodelib/fs.walk/out/providers/index.js | 9 - .../fs.walk/out/providers/stream.d.ts | 12 - .../@nodelib/fs.walk/out/providers/stream.js | 34 - .../@nodelib/fs.walk/out/providers/sync.d.ts | 10 - .../@nodelib/fs.walk/out/providers/sync.js | 14 - .../@nodelib/fs.walk/out/readers/async.d.ts | 30 - .../@nodelib/fs.walk/out/readers/async.js | 97 - .../@nodelib/fs.walk/out/readers/common.d.ts | 7 - .../@nodelib/fs.walk/out/readers/common.js | 31 - .../@nodelib/fs.walk/out/readers/reader.d.ts | 6 - .../@nodelib/fs.walk/out/readers/reader.js | 11 - .../@nodelib/fs.walk/out/readers/sync.d.ts | 15 - .../@nodelib/fs.walk/out/readers/sync.js | 59 - .../@nodelib/fs.walk/out/settings.d.ts | 30 - .../@nodelib/fs.walk/out/settings.js | 26 - .../@nodelib/fs.walk/out/types/index.d.ts | 8 - .../@nodelib/fs.walk/out/types/index.js | 2 - .../@nodelib/fs.walk/package.json | 44 - .../@typescript-eslint/eslint-plugin/LICENSE | 21 - .../eslint-plugin/README.md | 12 - .../eslint-plugin/dist/configs/all.js | 158 - .../eslint-plugin/dist/configs/all.js.map | 1 - .../eslint-plugin/dist/configs/base.js | 7 - .../eslint-plugin/dist/configs/base.js.map | 1 - .../dist/configs/disable-type-checked.js | 67 - .../dist/configs/disable-type-checked.js.map | 1 - .../dist/configs/eslint-recommended-raw.js | 42 - .../configs/eslint-recommended-raw.js.map | 1 - .../dist/configs/eslint-recommended.js | 14 - .../dist/configs/eslint-recommended.js.map | 1 - .../configs/recommended-type-checked-only.js | 40 - .../recommended-type-checked-only.js.map | 1 - .../dist/configs/recommended-type-checked.js | 63 - .../configs/recommended-type-checked.js.map | 1 - .../eslint-plugin/dist/configs/recommended.js | 36 - .../dist/configs/recommended.js.map | 1 - .../dist/configs/strict-type-checked-only.js | 75 - .../configs/strict-type-checked-only.js.map | 1 - .../dist/configs/strict-type-checked.js | 110 - .../dist/configs/strict-type-checked.js.map | 1 - .../eslint-plugin/dist/configs/strict.js | 48 - .../eslint-plugin/dist/configs/strict.js.map | 1 - .../configs/stylistic-type-checked-only.js | 22 - .../stylistic-type-checked-only.js.map | 1 - .../dist/configs/stylistic-type-checked.js | 36 - .../configs/stylistic-type-checked.js.map | 1 - .../eslint-plugin/dist/configs/stylistic.js | 27 - .../dist/configs/stylistic.js.map | 1 - .../eslint-plugin/dist/index.js | 45 - .../eslint-plugin/dist/index.js.map | 1 - .../rules/adjacent-overload-signatures.js | 130 - .../rules/adjacent-overload-signatures.js.map | 1 - .../eslint-plugin/dist/rules/array-type.js | 229 - .../dist/rules/array-type.js.map | 1 - .../dist/rules/await-thenable.js | 74 - .../dist/rules/await-thenable.js.map | 1 - .../dist/rules/ban-ts-comment.js | 178 - .../dist/rules/ban-ts-comment.js.map | 1 - .../dist/rules/ban-tslint-comment.js | 54 - .../dist/rules/ban-tslint-comment.js.map | 1 - .../rules/class-literal-property-style.js | 162 - .../rules/class-literal-property-style.js.map | 1 - .../dist/rules/class-methods-use-this.js | 209 - .../dist/rules/class-methods-use-this.js.map | 1 - .../rules/consistent-generic-constructors.js | 108 - .../consistent-generic-constructors.js.map | 1 - .../rules/consistent-indexed-object-style.js | 126 - .../consistent-indexed-object-style.js.map | 1 - .../dist/rules/consistent-return.js | 124 - .../dist/rules/consistent-return.js.map | 1 - .../dist/rules/consistent-type-assertions.js | 209 - .../rules/consistent-type-assertions.js.map | 1 - .../dist/rules/consistent-type-definitions.js | 98 - .../rules/consistent-type-definitions.js.map | 1 - .../dist/rules/consistent-type-exports.js | 243 - .../dist/rules/consistent-type-exports.js.map | 1 - .../dist/rules/consistent-type-imports.js | 606 - .../dist/rules/consistent-type-imports.js.map | 1 - .../dist/rules/default-param-last.js | 68 - .../dist/rules/default-param-last.js.map | 1 - .../eslint-plugin/dist/rules/dot-notation.js | 127 - .../dist/rules/dot-notation.js.map | 1 - .../dist/rules/enum-utils/shared.js | 112 - .../dist/rules/enum-utils/shared.js.map | 1 - .../rules/explicit-function-return-type.js | 180 - .../explicit-function-return-type.js.map | 1 - .../rules/explicit-member-accessibility.js | 293 - .../explicit-member-accessibility.js.map | 1 - .../rules/explicit-module-boundary-types.js | 386 - .../explicit-module-boundary-types.js.map | 1 - .../eslint-plugin/dist/rules/index.js | 260 - .../eslint-plugin/dist/rules/index.js.map | 1 - .../dist/rules/init-declarations.js | 104 - .../dist/rules/init-declarations.js.map | 1 - .../eslint-plugin/dist/rules/max-params.js | 67 - .../dist/rules/max-params.js.map | 1 - .../dist/rules/member-ordering.js | 822 - .../dist/rules/member-ordering.js.map | 1 - .../dist/rules/method-signature-style.js | 177 - .../dist/rules/method-signature-style.js.map | 1 - .../rules/naming-convention-utils/enums.js | 103 - .../naming-convention-utils/enums.js.map | 1 - .../rules/naming-convention-utils/format.js | 91 - .../naming-convention-utils/format.js.map | 1 - .../rules/naming-convention-utils/index.js | 12 - .../naming-convention-utils/index.js.map | 1 - .../naming-convention-utils/parse-options.js | 72 - .../parse-options.js.map | 1 - .../rules/naming-convention-utils/schema.js | 307 - .../naming-convention-utils/schema.js.map | 1 - .../rules/naming-convention-utils/shared.js | 17 - .../naming-convention-utils/shared.js.map | 1 - .../rules/naming-convention-utils/types.js | 3 - .../naming-convention-utils/types.js.map | 1 - .../naming-convention-utils/validator.js | 350 - .../naming-convention-utils/validator.js.map | 1 - .../dist/rules/naming-convention.js | 504 - .../dist/rules/naming-convention.js.map | 1 - .../dist/rules/no-array-constructor.js | 52 - .../dist/rules/no-array-constructor.js.map | 1 - .../dist/rules/no-array-delete.js | 81 - .../dist/rules/no-array-delete.js.map | 1 - .../dist/rules/no-base-to-string.js | 163 - .../dist/rules/no-base-to-string.js.map | 1 - .../rules/no-confusing-non-null-assertion.js | 76 - .../no-confusing-non-null-assertion.js.map | 1 - .../rules/no-confusing-void-expression.js | 291 - .../rules/no-confusing-void-expression.js.map | 1 - .../dist/rules/no-dupe-class-members.js | 40 - .../dist/rules/no-dupe-class-members.js.map | 1 - .../dist/rules/no-duplicate-enum-values.js | 62 - .../rules/no-duplicate-enum-values.js.map | 1 - .../rules/no-duplicate-type-constituents.js | 163 - .../no-duplicate-type-constituents.js.map | 1 - .../dist/rules/no-dynamic-delete.js | 61 - .../dist/rules/no-dynamic-delete.js.map | 1 - .../dist/rules/no-empty-function.js | 132 - .../dist/rules/no-empty-function.js.map | 1 - .../dist/rules/no-empty-interface.js | 92 - .../dist/rules/no-empty-interface.js.map | 1 - .../dist/rules/no-empty-object-type.js | 141 - .../dist/rules/no-empty-object-type.js.map | 1 - .../dist/rules/no-explicit-any.js | 170 - .../dist/rules/no-explicit-any.js.map | 1 - .../dist/rules/no-extra-non-null-assertion.js | 36 - .../rules/no-extra-non-null-assertion.js.map | 1 - .../dist/rules/no-extraneous-class.js | 120 - .../dist/rules/no-extraneous-class.js.map | 1 - .../dist/rules/no-floating-promises.js | 386 - .../dist/rules/no-floating-promises.js.map | 1 - .../dist/rules/no-for-in-array.js | 61 - .../dist/rules/no-for-in-array.js.map | 1 - .../dist/rules/no-implied-eval.js | 143 - .../dist/rules/no-implied-eval.js.map | 1 - .../dist/rules/no-import-type-side-effects.js | 54 - .../rules/no-import-type-side-effects.js.map | 1 - .../dist/rules/no-inferrable-types.js | 182 - .../dist/rules/no-inferrable-types.js.map | 1 - .../dist/rules/no-invalid-this.js | 74 - .../dist/rules/no-invalid-this.js.map | 1 - .../dist/rules/no-invalid-void-type.js | 182 - .../dist/rules/no-invalid-void-type.js.map | 1 - .../eslint-plugin/dist/rules/no-loop-func.js | 168 - .../dist/rules/no-loop-func.js.map | 1 - .../dist/rules/no-loss-of-precision.js | 24 - .../dist/rules/no-loss-of-precision.js.map | 1 - .../dist/rules/no-magic-numbers.js | 244 - .../dist/rules/no-magic-numbers.js.map | 1 - .../rules/no-meaningless-void-operator.js | 94 - .../rules/no-meaningless-void-operator.js.map | 1 - .../dist/rules/no-misused-new.js | 83 - .../dist/rules/no-misused-new.js.map | 1 - .../dist/rules/no-misused-promises.js | 662 - .../dist/rules/no-misused-promises.js.map | 1 - .../dist/rules/no-mixed-enums.js | 191 - .../dist/rules/no-mixed-enums.js.map | 1 - .../eslint-plugin/dist/rules/no-namespace.js | 61 - .../dist/rules/no-namespace.js.map | 1 - ...no-non-null-asserted-nullish-coalescing.js | 74 - ...on-null-asserted-nullish-coalescing.js.map | 1 - .../no-non-null-asserted-optional-chain.js | 66 - ...no-non-null-asserted-optional-chain.js.map | 1 - .../dist/rules/no-non-null-assertion.js | 100 - .../dist/rules/no-non-null-assertion.js.map | 1 - .../eslint-plugin/dist/rules/no-redeclare.js | 199 - .../dist/rules/no-redeclare.js.map | 1 - .../rules/no-redundant-type-constituents.js | 414 - .../no-redundant-type-constituents.js.map | 1 - .../dist/rules/no-require-imports.js | 106 - .../dist/rules/no-require-imports.js.map | 1 - .../dist/rules/no-restricted-imports.js | 236 - .../dist/rules/no-restricted-imports.js.map | 1 - .../dist/rules/no-restricted-types.js | 165 - .../dist/rules/no-restricted-types.js.map | 1 - .../eslint-plugin/dist/rules/no-shadow.js | 478 - .../eslint-plugin/dist/rules/no-shadow.js.map | 1 - .../eslint-plugin/dist/rules/no-this-alias.js | 67 - .../dist/rules/no-this-alias.js.map | 1 - .../eslint-plugin/dist/rules/no-type-alias.js | 263 - .../dist/rules/no-type-alias.js.map | 1 - .../no-unnecessary-boolean-literal-compare.js | 232 - ...unnecessary-boolean-literal-compare.js.map | 1 - .../dist/rules/no-unnecessary-condition.js | 544 - .../rules/no-unnecessary-condition.js.map | 1 - ...necessary-parameter-property-assignment.js | 151 - ...ssary-parameter-property-assignment.js.map | 1 - .../dist/rules/no-unnecessary-qualifier.js | 147 - .../rules/no-unnecessary-qualifier.js.map | 1 - .../no-unnecessary-template-expression.js | 223 - .../no-unnecessary-template-expression.js.map | 1 - .../rules/no-unnecessary-type-arguments.js | 152 - .../no-unnecessary-type-arguments.js.map | 1 - .../rules/no-unnecessary-type-assertion.js | 261 - .../no-unnecessary-type-assertion.js.map | 1 - .../rules/no-unnecessary-type-constraint.js | 110 - .../no-unnecessary-type-constraint.js.map | 1 - .../rules/no-unnecessary-type-parameters.js | 322 - .../no-unnecessary-type-parameters.js.map | 1 - .../dist/rules/no-unsafe-argument.js | 211 - .../dist/rules/no-unsafe-argument.js.map | 1 - .../dist/rules/no-unsafe-assignment.js | 297 - .../dist/rules/no-unsafe-assignment.js.map | 1 - .../dist/rules/no-unsafe-call.js | 87 - .../dist/rules/no-unsafe-call.js.map | 1 - .../rules/no-unsafe-declaration-merging.js | 55 - .../no-unsafe-declaration-merging.js.map | 1 - .../dist/rules/no-unsafe-enum-comparison.js | 164 - .../rules/no-unsafe-enum-comparison.js.map | 1 - .../dist/rules/no-unsafe-function-type.js | 47 - .../dist/rules/no-unsafe-function-type.js.map | 1 - .../dist/rules/no-unsafe-member-access.js | 127 - .../dist/rules/no-unsafe-member-access.js.map | 1 - .../dist/rules/no-unsafe-return.js | 190 - .../dist/rules/no-unsafe-return.js.map | 1 - .../dist/rules/no-unsafe-unary-minus.js | 69 - .../dist/rules/no-unsafe-unary-minus.js.map | 1 - .../dist/rules/no-unused-expressions.js | 63 - .../dist/rules/no-unused-expressions.js.map | 1 - .../dist/rules/no-unused-vars.js | 621 - .../dist/rules/no-unused-vars.js.map | 1 - .../dist/rules/no-use-before-define.js | 282 - .../dist/rules/no-use-before-define.js.map | 1 - .../dist/rules/no-useless-constructor.js | 57 - .../dist/rules/no-useless-constructor.js.map | 1 - .../dist/rules/no-useless-empty-export.js | 71 - .../dist/rules/no-useless-empty-export.js.map | 1 - .../dist/rules/no-var-requires.js | 73 - .../dist/rules/no-var-requires.js.map | 1 - .../dist/rules/no-wrapper-object-types.js | 61 - .../dist/rules/no-wrapper-object-types.js.map | 1 - .../non-nullable-type-assertion-style.js | 123 - .../non-nullable-type-assertion-style.js.map | 1 - .../dist/rules/only-throw-error.js | 96 - .../dist/rules/only-throw-error.js.map | 1 - .../dist/rules/parameter-properties.js | 169 - .../dist/rules/parameter-properties.js.map | 1 - .../dist/rules/prefer-as-const.js | 73 - .../dist/rules/prefer-as-const.js.map | 1 - .../dist/rules/prefer-destructuring.js | 202 - .../dist/rules/prefer-destructuring.js.map | 1 - .../dist/rules/prefer-enum-initializers.js | 63 - .../rules/prefer-enum-initializers.js.map | 1 - .../eslint-plugin/dist/rules/prefer-find.js | 255 - .../dist/rules/prefer-find.js.map | 1 - .../eslint-plugin/dist/rules/prefer-for-of.js | 116 - .../dist/rules/prefer-for-of.js.map | 1 - .../dist/rules/prefer-function-type.js | 188 - .../dist/rules/prefer-function-type.js.map | 1 - .../dist/rules/prefer-includes.js | 230 - .../dist/rules/prefer-includes.js.map | 1 - .../dist/rules/prefer-literal-enum-member.js | 113 - .../rules/prefer-literal-enum-member.js.map | 1 - .../dist/rules/prefer-namespace-keyword.js | 44 - .../rules/prefer-namespace-keyword.js.map | 1 - .../dist/rules/prefer-nullish-coalescing.js | 351 - .../rules/prefer-nullish-coalescing.js.map | 1 - .../PreferOptionalChainOptions.js | 3 - .../PreferOptionalChainOptions.js.map | 1 - .../analyzeChain.js | 457 - .../analyzeChain.js.map | 1 - .../checkNullishAndReport.js | 36 - .../checkNullishAndReport.js.map | 1 - .../compareNodes.js | 317 - .../compareNodes.js.map | 1 - .../gatherLogicalOperands.js | 281 - .../gatherLogicalOperands.js.map | 1 - .../dist/rules/prefer-optional-chain.js | 174 - .../dist/rules/prefer-optional-chain.js.map | 1 - .../rules/prefer-promise-reject-errors.js | 109 - .../rules/prefer-promise-reject-errors.js.map | 1 - .../rules/prefer-readonly-parameter-types.js | 82 - .../prefer-readonly-parameter-types.js.map | 1 - .../dist/rules/prefer-readonly.js | 325 - .../dist/rules/prefer-readonly.js.map | 1 - .../rules/prefer-reduce-type-parameter.js | 104 - .../rules/prefer-reduce-type-parameter.js.map | 1 - .../dist/rules/prefer-regexp-exec.js | 166 - .../dist/rules/prefer-regexp-exec.js.map | 1 - .../dist/rules/prefer-return-this-type.js | 137 - .../dist/rules/prefer-return-this-type.js.map | 1 - .../rules/prefer-string-starts-ends-with.js | 522 - .../prefer-string-starts-ends-with.js.map | 1 - .../dist/rules/prefer-ts-expect-error.js | 61 - .../dist/rules/prefer-ts-expect-error.js.map | 1 - .../dist/rules/promise-function-async.js | 184 - .../dist/rules/promise-function-async.js.map | 1 - .../dist/rules/require-array-sort-compare.js | 62 - .../rules/require-array-sort-compare.js.map | 1 - .../eslint-plugin/dist/rules/require-await.js | 174 - .../dist/rules/require-await.js.map | 1 - .../dist/rules/restrict-plus-operands.js | 222 - .../dist/rules/restrict-plus-operands.js.map | 1 - .../rules/restrict-template-expressions.js | 110 - .../restrict-template-expressions.js.map | 1 - .../eslint-plugin/dist/rules/return-await.js | 347 - .../dist/rules/return-await.js.map | 1 - .../dist/rules/sort-type-constituents.js | 248 - .../dist/rules/sort-type-constituents.js.map | 1 - .../dist/rules/strict-boolean-expressions.js | 905 - .../rules/strict-boolean-expressions.js.map | 1 - .../dist/rules/switch-exhaustiveness-check.js | 239 - .../rules/switch-exhaustiveness-check.js.map | 1 - .../dist/rules/triple-slash-reference.js | 108 - .../dist/rules/triple-slash-reference.js.map | 1 - .../eslint-plugin/dist/rules/typedef.js | 200 - .../eslint-plugin/dist/rules/typedef.js.map | 1 - .../dist/rules/unbound-method.js | 324 - .../dist/rules/unbound-method.js.map | 1 - .../dist/rules/unified-signatures.js | 399 - .../dist/rules/unified-signatures.js.map | 1 - .../use-unknown-in-catch-callback-variable.js | 283 - ...-unknown-in-catch-callback-variable.js.map | 1 - .../eslint-plugin/dist/util/astUtils.js | 88 - .../eslint-plugin/dist/util/astUtils.js.map | 1 - .../dist/util/collectUnusedVariables.js | 605 - .../dist/util/collectUnusedVariables.js.map | 1 - .../eslint-plugin/dist/util/createRule.js | 6 - .../eslint-plugin/dist/util/createRule.js.map | 1 - .../eslint-plugin/dist/util/escapeRegExp.js | 15 - .../dist/util/escapeRegExp.js.map | 1 - .../dist/util/explicitReturnTypeUtils.js | 236 - .../dist/util/explicitReturnTypeUtils.js.map | 1 - .../dist/util/getESLintCoreRule.js | 17 - .../dist/util/getESLintCoreRule.js.map | 1 - .../dist/util/getFixOrSuggest.js | 7 - .../dist/util/getFixOrSuggest.js.map | 1 - .../dist/util/getForStatementHeadLoc.js | 27 - .../dist/util/getForStatementHeadLoc.js.map | 1 - .../dist/util/getFunctionHeadLoc.js | 162 - .../dist/util/getFunctionHeadLoc.js.map | 1 - .../dist/util/getMemberHeadLoc.js | 80 - .../dist/util/getMemberHeadLoc.js.map | 1 - .../dist/util/getOperatorPrecedence.js | 418 - .../dist/util/getOperatorPrecedence.js.map | 1 - .../dist/util/getStaticStringValue.js | 45 - .../dist/util/getStaticStringValue.js.map | 1 - .../dist/util/getStringLength.js | 19 - .../dist/util/getStringLength.js.map | 1 - .../dist/util/getTextWithParentheses.js | 17 - .../dist/util/getTextWithParentheses.js.map | 1 - .../dist/util/getThisExpression.js | 25 - .../dist/util/getThisExpression.js.map | 1 - .../eslint-plugin/dist/util/getWrappedCode.js | 7 - .../dist/util/getWrappedCode.js.map | 1 - .../dist/util/getWrappingFixer.js | 159 - .../dist/util/getWrappingFixer.js.map | 1 - .../eslint-plugin/dist/util/index.js | 47 - .../eslint-plugin/dist/util/index.js.map | 1 - .../eslint-plugin/dist/util/isAssignee.js | 43 - .../eslint-plugin/dist/util/isAssignee.js.map | 1 - .../eslint-plugin/dist/util/isNodeEqual.js | 26 - .../dist/util/isNodeEqual.js.map | 1 - .../eslint-plugin/dist/util/isNullLiteral.js | 8 - .../dist/util/isNullLiteral.js.map | 1 - .../eslint-plugin/dist/util/isTypeImport.js | 22 - .../dist/util/isTypeImport.js.map | 1 - .../dist/util/isUndefinedIdentifier.js | 8 - .../dist/util/isUndefinedIdentifier.js.map | 1 - .../eslint-plugin/dist/util/misc.js | 198 - .../eslint-plugin/dist/util/misc.js.map | 1 - .../dist/util/objectIterators.js | 26 - .../dist/util/objectIterators.js.map | 1 - .../dist/util/referenceContainsTypeQuery.js | 20 - .../util/referenceContainsTypeQuery.js.map | 1 - .../eslint-plugin/dist/util/scopeUtils.js | 11 - .../eslint-plugin/dist/util/scopeUtils.js.map | 1 - .../eslint-plugin/dist/util/types.js | 3 - .../eslint-plugin/dist/util/types.js.map | 1 - .../eslint-plugin/docs/rules/README.md | 57 - .../eslint-plugin/docs/rules/TEMPLATE.md | 36 - .../rules/adjacent-overload-signatures.mdx | 105 - .../eslint-plugin/docs/rules/array-type.mdx | 126 - .../docs/rules/await-thenable.mdx | 48 - .../docs/rules/ban-ts-comment.mdx | 161 - .../docs/rules/ban-tslint-comment.mdx | 45 - .../eslint-plugin/docs/rules/ban-types.md | 26 - .../eslint-plugin/docs/rules/block-spacing.md | 15 - .../eslint-plugin/docs/rules/brace-style.md | 15 - .../eslint-plugin/docs/rules/camelcase.md | 15 - .../rules/class-literal-property-style.mdx | 112 - .../docs/rules/class-methods-use-this.mdx | 102 - .../eslint-plugin/docs/rules/comma-dangle.md | 15 - .../eslint-plugin/docs/rules/comma-spacing.md | 15 - .../rules/consistent-generic-constructors.mdx | 85 - .../rules/consistent-indexed-object-style.mdx | 89 - .../docs/rules/consistent-return.mdx | 52 - .../docs/rules/consistent-type-assertions.mdx | 118 - .../rules/consistent-type-definitions.mdx | 90 - .../docs/rules/consistent-type-exports.mdx | 96 - .../docs/rules/consistent-type-imports.mdx | 136 - .../docs/rules/default-param-last.mdx | 60 - .../eslint-plugin/docs/rules/dot-notation.mdx | 85 - .../rules/explicit-function-return-type.mdx | 347 - .../rules/explicit-member-accessibility.mdx | 347 - .../rules/explicit-module-boundary-types.mdx | 267 - .../docs/rules/func-call-spacing.md | 15 - .../eslint-plugin/docs/rules/indent.md | 15 - .../docs/rules/init-declarations.mdx | 13 - .../eslint-plugin/docs/rules/key-spacing.md | 15 - .../docs/rules/keyword-spacing.md | 15 - .../docs/rules/lines-around-comment.md | 15 - .../docs/rules/lines-between-class-members.md | 15 - .../eslint-plugin/docs/rules/max-params.mdx | 13 - .../docs/rules/member-delimiter-style.md | 15 - .../docs/rules/member-ordering.mdx | 1483 - .../docs/rules/method-signature-style.mdx | 122 - .../docs/rules/naming-convention.mdx | 755 - .../docs/rules/no-array-constructor.mdx | 35 - .../docs/rules/no-array-delete.mdx | 44 - .../docs/rules/no-base-to-string.mdx | 94 - .../rules/no-confusing-non-null-assertion.mdx | 62 - .../rules/no-confusing-void-expression.mdx | 122 - .../docs/rules/no-dupe-class-members.mdx | 17 - .../docs/rules/no-duplicate-enum-values.mdx | 64 - .../docs/rules/no-duplicate-imports.mdx | 17 - .../rules/no-duplicate-type-constituents.mdx | 76 - .../docs/rules/no-dynamic-delete.mdx | 64 - .../docs/rules/no-empty-function.mdx | 95 - .../docs/rules/no-empty-interface.mdx | 73 - .../docs/rules/no-empty-object-type.mdx | 145 - .../docs/rules/no-explicit-any.mdx | 174 - .../rules/no-extra-non-null-assertion.mdx | 60 - .../docs/rules/no-extra-parens.md | 15 - .../eslint-plugin/docs/rules/no-extra-semi.md | 15 - .../docs/rules/no-extraneous-class.mdx | 329 - .../docs/rules/no-floating-promises.mdx | 274 - .../docs/rules/no-for-in-array.mdx | 67 - .../docs/rules/no-implied-eval.mdx | 104 - .../rules/no-import-type-side-effects.mdx | 80 - .../docs/rules/no-inferrable-types.mdx | 107 - .../docs/rules/no-invalid-this.mdx | 17 - .../docs/rules/no-invalid-void-type.mdx | 118 - .../eslint-plugin/docs/rules/no-loop-func.mdx | 13 - .../docs/rules/no-loss-of-precision.mdx | 17 - .../docs/rules/no-magic-numbers.mdx | 122 - .../rules/no-meaningless-void-operator.mdx | 61 - .../docs/rules/no-misused-new.mdx | 53 - .../docs/rules/no-misused-promises.mdx | 297 - .../docs/rules/no-mixed-enums.mdx | 96 - .../eslint-plugin/docs/rules/no-namespace.mdx | 142 - ...o-non-null-asserted-nullish-coalescing.mdx | 60 - .../no-non-null-asserted-optional-chain.mdx | 46 - .../docs/rules/no-non-null-assertion.mdx | 48 - .../docs/rules/no-parameter-properties.mdx | 16 - .../eslint-plugin/docs/rules/no-redeclare.mdx | 78 - .../rules/no-redundant-type-constituents.mdx | 102 - .../docs/rules/no-require-imports.mdx | 96 - .../docs/rules/no-restricted-imports.mdx | 77 - .../docs/rules/no-restricted-types.mdx | 71 - .../eslint-plugin/docs/rules/no-shadow.mdx | 108 - .../docs/rules/no-this-alias.mdx | 120 - .../docs/rules/no-type-alias.mdx | 626 - ...no-unnecessary-boolean-literal-compare.mdx | 145 - .../docs/rules/no-unnecessary-condition.mdx | 125 - ...ecessary-parameter-property-assignment.mdx | 42 - .../docs/rules/no-unnecessary-qualifier.mdx | 57 - .../no-unnecessary-template-expression.mdx | 85 - .../rules/no-unnecessary-type-arguments.mdx | 85 - .../rules/no-unnecessary-type-assertion.mdx | 87 - .../rules/no-unnecessary-type-constraint.mdx | 61 - .../rules/no-unnecessary-type-parameters.mdx | 114 - .../docs/rules/no-unsafe-argument.mdx | 97 - .../docs/rules/no-unsafe-assignment.mdx | 100 - .../docs/rules/no-unsafe-call.mdx | 74 - .../rules/no-unsafe-declaration-merging.mdx | 65 - .../docs/rules/no-unsafe-enum-comparison.mdx | 86 - .../docs/rules/no-unsafe-function-type.mdx | 63 - .../docs/rules/no-unsafe-member-access.mdx | 80 - .../docs/rules/no-unsafe-return.mdx | 125 - .../docs/rules/no-unsafe-unary-minus.mdx | 60 - .../docs/rules/no-unused-expressions.mdx | 53 - .../docs/rules/no-unused-vars.mdx | 54 - .../docs/rules/no-use-before-define.mdx | 93 - .../docs/rules/no-useless-constructor.mdx | 22 - .../docs/rules/no-useless-empty-export.mdx | 53 - .../rules/no-useless-template-literals.mdx | 9 - .../docs/rules/no-var-requires.mdx | 75 - .../docs/rules/no-wrapper-object-types.mdx | 75 - .../non-nullable-type-assertion-style.mdx | 47 - .../docs/rules/object-curly-spacing.md | 15 - .../docs/rules/only-throw-error.mdx | 122 - .../rules/padding-line-between-statements.md | 15 - .../docs/rules/parameter-properties.mdx | 518 - .../docs/rules/prefer-as-const.mdx | 51 - .../docs/rules/prefer-destructuring.mdx | 102 - .../docs/rules/prefer-enum-initializers.mdx | 68 - .../eslint-plugin/docs/rules/prefer-find.mdx | 45 - .../docs/rules/prefer-for-of.mdx | 50 - .../docs/rules/prefer-function-type.mdx | 98 - .../docs/rules/prefer-includes.mdx | 81 - .../docs/rules/prefer-literal-enum-member.mdx | 110 - .../docs/rules/prefer-namespace-keyword.mdx | 51 - .../docs/rules/prefer-nullish-coalescing.mdx | 190 - .../docs/rules/prefer-optional-chain.mdx | 295 - .../rules/prefer-promise-reject-errors.mdx | 56 - .../rules/prefer-readonly-parameter-types.mdx | 409 - .../docs/rules/prefer-readonly.mdx | 111 - .../rules/prefer-reduce-type-parameter.mdx | 66 - .../docs/rules/prefer-regexp-exec.mdx | 52 - .../docs/rules/prefer-return-this-type.mdx | 93 - .../rules/prefer-string-starts-ends-with.mdx | 82 - .../docs/rules/prefer-ts-expect-error.mdx | 86 - .../docs/rules/promise-function-async.mdx | 144 - .../eslint-plugin/docs/rules/quotes.md | 15 - .../docs/rules/require-array-sort-compare.mdx | 87 - .../docs/rules/require-await.mdx | 25 - .../docs/rules/restrict-plus-operands.mdx | 232 - .../rules/restrict-template-expressions.mdx | 136 - .../eslint-plugin/docs/rules/return-await.mdx | 324 - .../eslint-plugin/docs/rules/semi.md | 15 - .../docs/rules/sort-type-constituents.mdx | 207 - .../sort-type-union-intersection-members.mdx | 16 - .../docs/rules/space-before-blocks.md | 15 - .../docs/rules/space-before-function-paren.md | 15 - .../docs/rules/space-infix-ops.md | 15 - .../docs/rules/strict-boolean-expressions.mdx | 196 - .../rules/switch-exhaustiveness-check.mdx | 230 - .../docs/rules/triple-slash-reference.mdx | 123 - .../docs/rules/type-annotation-spacing.md | 15 - .../eslint-plugin/docs/rules/typedef.mdx | 347 - .../docs/rules/unbound-method.mdx | 112 - .../docs/rules/unified-signatures.mdx | 86 - ...use-unknown-in-catch-callback-variable.mdx | 84 - .../eslint-plugin/index.d.ts | 13 - .../eslint-plugin/package.json | 111 - .../eslint-plugin/rules.d.ts | 77 - .../@typescript-eslint/parser/LICENSE | 22 - .../@typescript-eslint/parser/README.md | 12 - .../@typescript-eslint/parser/dist/index.d.ts | 8 - .../parser/dist/index.d.ts.map | 1 - .../@typescript-eslint/parser/dist/index.js | 18 - .../parser/dist/index.js.map | 1 - .../parser/dist/parser.d.ts | 24 - .../parser/dist/parser.d.ts.map | 1 - .../@typescript-eslint/parser/dist/parser.js | 135 - .../parser/dist/parser.js.map | 1 - .../@typescript-eslint/parser/package.json | 87 - .../@typescript-eslint/scope-manager/LICENSE | 21 - .../scope-manager/README.md | 10 - .../scope-manager/dist/ID.d.ts | 4 - .../scope-manager/dist/ID.d.ts.map | 1 - .../scope-manager/dist/ID.js | 20 - .../scope-manager/dist/ID.js.map | 1 - .../scope-manager/dist/ScopeManager.d.ts | 72 - .../scope-manager/dist/ScopeManager.d.ts.map | 1 - .../scope-manager/dist/ScopeManager.js | 182 - .../scope-manager/dist/ScopeManager.js.map | 1 - .../scope-manager/dist/analyze.d.ts | 55 - .../scope-manager/dist/analyze.d.ts.map | 1 - .../scope-manager/dist/analyze.js | 40 - .../scope-manager/dist/analyze.js.map | 1 - .../scope-manager/dist/assert.d.ts | 3 - .../scope-manager/dist/assert.d.ts.map | 1 - .../scope-manager/dist/assert.js | 10 - .../scope-manager/dist/assert.js.map | 1 - .../definition/CatchClauseDefinition.d.ts | 10 - .../definition/CatchClauseDefinition.d.ts.map | 1 - .../dist/definition/CatchClauseDefinition.js | 14 - .../definition/CatchClauseDefinition.js.map | 1 - .../dist/definition/ClassNameDefinition.d.ts | 10 - .../definition/ClassNameDefinition.d.ts.map | 1 - .../dist/definition/ClassNameDefinition.js | 14 - .../definition/ClassNameDefinition.js.map | 1 - .../dist/definition/Definition.d.ts | 14 - .../dist/definition/Definition.d.ts.map | 1 - .../dist/definition/Definition.js | 3 - .../dist/definition/Definition.js.map | 1 - .../dist/definition/DefinitionBase.d.ts | 35 - .../dist/definition/DefinitionBase.d.ts.map | 1 - .../dist/definition/DefinitionBase.js | 35 - .../dist/definition/DefinitionBase.js.map | 1 - .../dist/definition/DefinitionType.d.ts | 15 - .../dist/definition/DefinitionType.d.ts.map | 1 - .../dist/definition/DefinitionType.js | 18 - .../dist/definition/DefinitionType.js.map | 1 - .../definition/FunctionNameDefinition.d.ts | 10 - .../FunctionNameDefinition.d.ts.map | 1 - .../dist/definition/FunctionNameDefinition.js | 14 - .../definition/FunctionNameDefinition.js.map | 1 - .../ImplicitGlobalVariableDefinition.d.ts | 10 - .../ImplicitGlobalVariableDefinition.d.ts.map | 1 - .../ImplicitGlobalVariableDefinition.js | 14 - .../ImplicitGlobalVariableDefinition.js.map | 1 - .../definition/ImportBindingDefinition.d.ts | 11 - .../ImportBindingDefinition.d.ts.map | 1 - .../definition/ImportBindingDefinition.js | 14 - .../definition/ImportBindingDefinition.js.map | 1 - .../dist/definition/ParameterDefinition.d.ts | 14 - .../definition/ParameterDefinition.d.ts.map | 1 - .../dist/definition/ParameterDefinition.js | 19 - .../definition/ParameterDefinition.js.map | 1 - .../definition/TSEnumMemberDefinition.d.ts | 10 - .../TSEnumMemberDefinition.d.ts.map | 1 - .../dist/definition/TSEnumMemberDefinition.js | 14 - .../definition/TSEnumMemberDefinition.js.map | 1 - .../dist/definition/TSEnumNameDefinition.d.ts | 10 - .../definition/TSEnumNameDefinition.d.ts.map | 1 - .../dist/definition/TSEnumNameDefinition.js | 14 - .../definition/TSEnumNameDefinition.js.map | 1 - .../definition/TSModuleNameDefinition.d.ts | 10 - .../TSModuleNameDefinition.d.ts.map | 1 - .../dist/definition/TSModuleNameDefinition.js | 14 - .../definition/TSModuleNameDefinition.js.map | 1 - .../dist/definition/TypeDefinition.d.ts | 10 - .../dist/definition/TypeDefinition.d.ts.map | 1 - .../dist/definition/TypeDefinition.js | 14 - .../dist/definition/TypeDefinition.js.map | 1 - .../dist/definition/VariableDefinition.d.ts | 10 - .../definition/VariableDefinition.d.ts.map | 1 - .../dist/definition/VariableDefinition.js | 14 - .../dist/definition/VariableDefinition.js.map | 1 - .../scope-manager/dist/definition/index.d.ts | 14 - .../dist/definition/index.d.ts.map | 1 - .../scope-manager/dist/definition/index.js | 30 - .../dist/definition/index.js.map | 1 - .../scope-manager/dist/index.d.ts | 9 - .../scope-manager/dist/index.d.ts.map | 1 - .../scope-manager/dist/index.js | 31 - .../scope-manager/dist/index.js.map | 1 - .../scope-manager/dist/lib/base-config.d.ts | 16 - .../dist/lib/base-config.d.ts.map | 1 - .../scope-manager/dist/lib/base-config.js | 23 - .../scope-manager/dist/lib/base-config.js.map | 1 - .../scope-manager/dist/lib/decorators.d.ts | 3 - .../dist/lib/decorators.d.ts.map | 1 - .../scope-manager/dist/lib/decorators.js | 23 - .../scope-manager/dist/lib/decorators.js.map | 1 - .../dist/lib/decorators.legacy.d.ts | 3 - .../dist/lib/decorators.legacy.d.ts.map | 1 - .../dist/lib/decorators.legacy.js | 15 - .../dist/lib/decorators.legacy.js.map | 1 - .../dist/lib/dom.asynciterable.d.ts | 3 - .../dist/lib/dom.asynciterable.d.ts.map | 1 - .../dist/lib/dom.asynciterable.js | 13 - .../dist/lib/dom.asynciterable.js.map | 1 - .../scope-manager/dist/lib/dom.d.ts | 3 - .../scope-manager/dist/lib/dom.d.ts.map | 1 - .../scope-manager/dist/lib/dom.iterable.d.ts | 3 - .../dist/lib/dom.iterable.d.ts.map | 1 - .../scope-manager/dist/lib/dom.iterable.js | 79 - .../dist/lib/dom.iterable.js.map | 1 - .../scope-manager/dist/lib/dom.js | 1448 - .../scope-manager/dist/lib/dom.js.map | 1 - .../dist/lib/es2015.collection.d.ts | 3 - .../dist/lib/es2015.collection.d.ts.map | 1 - .../dist/lib/es2015.collection.js | 21 - .../dist/lib/es2015.collection.js.map | 1 - .../scope-manager/dist/lib/es2015.core.d.ts | 3 - .../dist/lib/es2015.core.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.core.js | 32 - .../scope-manager/dist/lib/es2015.core.js.map | 1 - .../scope-manager/dist/lib/es2015.d.ts | 3 - .../scope-manager/dist/lib/es2015.d.ts.map | 1 - .../dist/lib/es2015.generator.d.ts | 3 - .../dist/lib/es2015.generator.d.ts.map | 1 - .../dist/lib/es2015.generator.js | 16 - .../dist/lib/es2015.generator.js.map | 1 - .../dist/lib/es2015.iterable.d.ts | 3 - .../dist/lib/es2015.iterable.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.iterable.js | 55 - .../dist/lib/es2015.iterable.js.map | 1 - .../scope-manager/dist/lib/es2015.js | 30 - .../scope-manager/dist/lib/es2015.js.map | 1 - .../dist/lib/es2015.promise.d.ts | 3 - .../dist/lib/es2015.promise.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.promise.js | 12 - .../dist/lib/es2015.promise.js.map | 1 - .../scope-manager/dist/lib/es2015.proxy.d.ts | 3 - .../dist/lib/es2015.proxy.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.proxy.js | 13 - .../dist/lib/es2015.proxy.js.map | 1 - .../dist/lib/es2015.reflect.d.ts | 3 - .../dist/lib/es2015.reflect.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.reflect.js | 12 - .../dist/lib/es2015.reflect.js.map | 1 - .../scope-manager/dist/lib/es2015.symbol.d.ts | 3 - .../dist/lib/es2015.symbol.d.ts.map | 1 - .../scope-manager/dist/lib/es2015.symbol.js | 12 - .../dist/lib/es2015.symbol.js.map | 1 - .../dist/lib/es2015.symbol.wellknown.d.ts | 3 - .../dist/lib/es2015.symbol.wellknown.d.ts.map | 1 - .../dist/lib/es2015.symbol.wellknown.js | 46 - .../dist/lib/es2015.symbol.wellknown.js.map | 1 - .../dist/lib/es2016.array.include.d.ts | 3 - .../dist/lib/es2016.array.include.d.ts.map | 1 - .../dist/lib/es2016.array.include.js | 22 - .../dist/lib/es2016.array.include.js.map | 1 - .../scope-manager/dist/lib/es2016.d.ts | 3 - .../scope-manager/dist/lib/es2016.d.ts.map | 1 - .../scope-manager/dist/lib/es2016.full.d.ts | 3 - .../dist/lib/es2016.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2016.full.js | 20 - .../scope-manager/dist/lib/es2016.full.js.map | 1 - .../scope-manager/dist/lib/es2016.intl.d.ts | 3 - .../dist/lib/es2016.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2016.intl.js | 12 - .../scope-manager/dist/lib/es2016.intl.js.map | 1 - .../scope-manager/dist/lib/es2016.js | 16 - .../scope-manager/dist/lib/es2016.js.map | 1 - .../scope-manager/dist/lib/es2017.d.ts | 3 - .../scope-manager/dist/lib/es2017.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.date.d.ts | 3 - .../dist/lib/es2017.date.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.date.js | 12 - .../scope-manager/dist/lib/es2017.date.js.map | 1 - .../scope-manager/dist/lib/es2017.full.d.ts | 3 - .../dist/lib/es2017.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.full.js | 20 - .../scope-manager/dist/lib/es2017.full.js.map | 1 - .../scope-manager/dist/lib/es2017.intl.d.ts | 3 - .../dist/lib/es2017.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.intl.js | 12 - .../scope-manager/dist/lib/es2017.intl.js.map | 1 - .../scope-manager/dist/lib/es2017.js | 24 - .../scope-manager/dist/lib/es2017.js.map | 1 - .../scope-manager/dist/lib/es2017.object.d.ts | 3 - .../dist/lib/es2017.object.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.object.js | 12 - .../dist/lib/es2017.object.js.map | 1 - .../dist/lib/es2017.sharedmemory.d.ts | 3 - .../dist/lib/es2017.sharedmemory.d.ts.map | 1 - .../dist/lib/es2017.sharedmemory.js | 19 - .../dist/lib/es2017.sharedmemory.js.map | 1 - .../scope-manager/dist/lib/es2017.string.d.ts | 3 - .../dist/lib/es2017.string.d.ts.map | 1 - .../scope-manager/dist/lib/es2017.string.js | 12 - .../dist/lib/es2017.string.js.map | 1 - .../dist/lib/es2017.typedarrays.d.ts | 3 - .../dist/lib/es2017.typedarrays.d.ts.map | 1 - .../dist/lib/es2017.typedarrays.js | 20 - .../dist/lib/es2017.typedarrays.js.map | 1 - .../dist/lib/es2018.asyncgenerator.d.ts | 3 - .../dist/lib/es2018.asyncgenerator.d.ts.map | 1 - .../dist/lib/es2018.asyncgenerator.js | 16 - .../dist/lib/es2018.asyncgenerator.js.map | 1 - .../dist/lib/es2018.asynciterable.d.ts | 3 - .../dist/lib/es2018.asynciterable.d.ts.map | 1 - .../dist/lib/es2018.asynciterable.js | 19 - .../dist/lib/es2018.asynciterable.js.map | 1 - .../scope-manager/dist/lib/es2018.d.ts | 3 - .../scope-manager/dist/lib/es2018.d.ts.map | 1 - .../scope-manager/dist/lib/es2018.full.d.ts | 3 - .../dist/lib/es2018.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2018.full.js | 22 - .../scope-manager/dist/lib/es2018.full.js.map | 1 - .../scope-manager/dist/lib/es2018.intl.d.ts | 3 - .../dist/lib/es2018.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2018.intl.js | 12 - .../scope-manager/dist/lib/es2018.intl.js.map | 1 - .../scope-manager/dist/lib/es2018.js | 22 - .../scope-manager/dist/lib/es2018.js.map | 1 - .../dist/lib/es2018.promise.d.ts | 3 - .../dist/lib/es2018.promise.d.ts.map | 1 - .../scope-manager/dist/lib/es2018.promise.js | 12 - .../dist/lib/es2018.promise.js.map | 1 - .../scope-manager/dist/lib/es2018.regexp.d.ts | 3 - .../dist/lib/es2018.regexp.d.ts.map | 1 - .../scope-manager/dist/lib/es2018.regexp.js | 14 - .../dist/lib/es2018.regexp.js.map | 1 - .../scope-manager/dist/lib/es2019.array.d.ts | 3 - .../dist/lib/es2019.array.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.array.js | 14 - .../dist/lib/es2019.array.js.map | 1 - .../scope-manager/dist/lib/es2019.d.ts | 3 - .../scope-manager/dist/lib/es2019.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.full.d.ts | 3 - .../dist/lib/es2019.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.full.js | 22 - .../scope-manager/dist/lib/es2019.full.js.map | 1 - .../scope-manager/dist/lib/es2019.intl.d.ts | 3 - .../dist/lib/es2019.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.intl.js | 12 - .../scope-manager/dist/lib/es2019.intl.js.map | 1 - .../scope-manager/dist/lib/es2019.js | 22 - .../scope-manager/dist/lib/es2019.js.map | 1 - .../scope-manager/dist/lib/es2019.object.d.ts | 3 - .../dist/lib/es2019.object.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.object.js | 14 - .../dist/lib/es2019.object.js.map | 1 - .../scope-manager/dist/lib/es2019.string.d.ts | 3 - .../dist/lib/es2019.string.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.string.js | 12 - .../dist/lib/es2019.string.js.map | 1 - .../scope-manager/dist/lib/es2019.symbol.d.ts | 3 - .../dist/lib/es2019.symbol.d.ts.map | 1 - .../scope-manager/dist/lib/es2019.symbol.js | 12 - .../dist/lib/es2019.symbol.js.map | 1 - .../scope-manager/dist/lib/es2020.bigint.d.ts | 3 - .../dist/lib/es2020.bigint.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.bigint.js | 22 - .../dist/lib/es2020.bigint.js.map | 1 - .../scope-manager/dist/lib/es2020.d.ts | 3 - .../scope-manager/dist/lib/es2020.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.date.d.ts | 3 - .../dist/lib/es2020.date.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.date.js | 14 - .../scope-manager/dist/lib/es2020.date.js.map | 1 - .../scope-manager/dist/lib/es2020.full.d.ts | 3 - .../dist/lib/es2020.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.full.js | 22 - .../scope-manager/dist/lib/es2020.full.js.map | 1 - .../scope-manager/dist/lib/es2020.intl.d.ts | 3 - .../dist/lib/es2020.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.intl.js | 14 - .../scope-manager/dist/lib/es2020.intl.js.map | 1 - .../scope-manager/dist/lib/es2020.js | 28 - .../scope-manager/dist/lib/es2020.js.map | 1 - .../scope-manager/dist/lib/es2020.number.d.ts | 3 - .../dist/lib/es2020.number.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.number.js | 14 - .../dist/lib/es2020.number.js.map | 1 - .../dist/lib/es2020.promise.d.ts | 3 - .../dist/lib/es2020.promise.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.promise.js | 15 - .../dist/lib/es2020.promise.js.map | 1 - .../dist/lib/es2020.sharedmemory.d.ts | 3 - .../dist/lib/es2020.sharedmemory.d.ts.map | 1 - .../dist/lib/es2020.sharedmemory.js | 12 - .../dist/lib/es2020.sharedmemory.js.map | 1 - .../scope-manager/dist/lib/es2020.string.d.ts | 3 - .../dist/lib/es2020.string.d.ts.map | 1 - .../scope-manager/dist/lib/es2020.string.js | 14 - .../dist/lib/es2020.string.js.map | 1 - .../dist/lib/es2020.symbol.wellknown.d.ts | 3 - .../dist/lib/es2020.symbol.wellknown.d.ts.map | 1 - .../dist/lib/es2020.symbol.wellknown.js | 17 - .../dist/lib/es2020.symbol.wellknown.js.map | 1 - .../scope-manager/dist/lib/es2021.d.ts | 3 - .../scope-manager/dist/lib/es2021.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.full.d.ts | 3 - .../dist/lib/es2021.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.full.js | 22 - .../scope-manager/dist/lib/es2021.full.js.map | 1 - .../scope-manager/dist/lib/es2021.intl.d.ts | 3 - .../dist/lib/es2021.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.intl.js | 12 - .../scope-manager/dist/lib/es2021.intl.js.map | 1 - .../scope-manager/dist/lib/es2021.js | 20 - .../scope-manager/dist/lib/es2021.js.map | 1 - .../dist/lib/es2021.promise.d.ts | 3 - .../dist/lib/es2021.promise.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.promise.js | 14 - .../dist/lib/es2021.promise.js.map | 1 - .../scope-manager/dist/lib/es2021.string.d.ts | 3 - .../dist/lib/es2021.string.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.string.js | 12 - .../dist/lib/es2021.string.js.map | 1 - .../dist/lib/es2021.weakref.d.ts | 3 - .../dist/lib/es2021.weakref.d.ts.map | 1 - .../scope-manager/dist/lib/es2021.weakref.js | 15 - .../dist/lib/es2021.weakref.js.map | 1 - .../scope-manager/dist/lib/es2022.array.d.ts | 3 - .../dist/lib/es2022.array.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.array.js | 24 - .../dist/lib/es2022.array.js.map | 1 - .../scope-manager/dist/lib/es2022.d.ts | 3 - .../scope-manager/dist/lib/es2022.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.error.d.ts | 3 - .../dist/lib/es2022.error.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.error.js | 21 - .../dist/lib/es2022.error.js.map | 1 - .../scope-manager/dist/lib/es2022.full.d.ts | 3 - .../dist/lib/es2022.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.full.js | 22 - .../scope-manager/dist/lib/es2022.full.js.map | 1 - .../scope-manager/dist/lib/es2022.intl.d.ts | 3 - .../dist/lib/es2022.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.intl.js | 12 - .../scope-manager/dist/lib/es2022.intl.js.map | 1 - .../scope-manager/dist/lib/es2022.js | 26 - .../scope-manager/dist/lib/es2022.js.map | 1 - .../scope-manager/dist/lib/es2022.object.d.ts | 3 - .../dist/lib/es2022.object.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.object.js | 12 - .../dist/lib/es2022.object.js.map | 1 - .../scope-manager/dist/lib/es2022.regexp.d.ts | 3 - .../dist/lib/es2022.regexp.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.regexp.js | 15 - .../dist/lib/es2022.regexp.js.map | 1 - .../dist/lib/es2022.sharedmemory.d.ts | 3 - .../dist/lib/es2022.sharedmemory.d.ts.map | 1 - .../dist/lib/es2022.sharedmemory.js | 12 - .../dist/lib/es2022.sharedmemory.js.map | 1 - .../scope-manager/dist/lib/es2022.string.d.ts | 3 - .../dist/lib/es2022.string.d.ts.map | 1 - .../scope-manager/dist/lib/es2022.string.js | 12 - .../dist/lib/es2022.string.js.map | 1 - .../scope-manager/dist/lib/es2023.array.d.ts | 3 - .../dist/lib/es2023.array.d.ts.map | 1 - .../scope-manager/dist/lib/es2023.array.js | 24 - .../dist/lib/es2023.array.js.map | 1 - .../dist/lib/es2023.collection.d.ts | 3 - .../dist/lib/es2023.collection.d.ts.map | 1 - .../dist/lib/es2023.collection.js | 12 - .../dist/lib/es2023.collection.js.map | 1 - .../scope-manager/dist/lib/es2023.d.ts | 3 - .../scope-manager/dist/lib/es2023.d.ts.map | 1 - .../scope-manager/dist/lib/es2023.full.d.ts | 3 - .../dist/lib/es2023.full.d.ts.map | 1 - .../scope-manager/dist/lib/es2023.full.js | 22 - .../scope-manager/dist/lib/es2023.full.js.map | 1 - .../scope-manager/dist/lib/es2023.intl.d.ts | 3 - .../dist/lib/es2023.intl.d.ts.map | 1 - .../scope-manager/dist/lib/es2023.intl.js | 12 - .../scope-manager/dist/lib/es2023.intl.js.map | 1 - .../scope-manager/dist/lib/es2023.js | 18 - .../scope-manager/dist/lib/es2023.js.map | 1 - .../scope-manager/dist/lib/es5.d.ts | 3 - .../scope-manager/dist/lib/es5.d.ts.map | 1 - .../scope-manager/dist/lib/es5.js | 118 - .../scope-manager/dist/lib/es5.js.map | 1 - .../scope-manager/dist/lib/es6.d.ts | 3 - .../scope-manager/dist/lib/es6.d.ts.map | 1 - .../scope-manager/dist/lib/es6.js | 30 - .../scope-manager/dist/lib/es6.js.map | 1 - .../scope-manager/dist/lib/es7.d.ts | 3 - .../scope-manager/dist/lib/es7.d.ts.map | 1 - .../scope-manager/dist/lib/es7.js | 16 - .../scope-manager/dist/lib/es7.js.map | 1 - .../scope-manager/dist/lib/esnext.array.d.ts | 3 - .../dist/lib/esnext.array.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.array.js | 12 - .../dist/lib/esnext.array.js.map | 1 - .../dist/lib/esnext.asynciterable.d.ts | 3 - .../dist/lib/esnext.asynciterable.d.ts.map | 1 - .../dist/lib/esnext.asynciterable.js | 19 - .../dist/lib/esnext.asynciterable.js.map | 1 - .../scope-manager/dist/lib/esnext.bigint.d.ts | 3 - .../dist/lib/esnext.bigint.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.bigint.js | 22 - .../dist/lib/esnext.bigint.js.map | 1 - .../dist/lib/esnext.collection.d.ts | 3 - .../dist/lib/esnext.collection.d.ts.map | 1 - .../dist/lib/esnext.collection.js | 15 - .../dist/lib/esnext.collection.js.map | 1 - .../scope-manager/dist/lib/esnext.d.ts | 3 - .../scope-manager/dist/lib/esnext.d.ts.map | 1 - .../dist/lib/esnext.decorators.d.ts | 3 - .../dist/lib/esnext.decorators.d.ts.map | 1 - .../dist/lib/esnext.decorators.js | 17 - .../dist/lib/esnext.decorators.js.map | 1 - .../dist/lib/esnext.disposable.d.ts | 3 - .../dist/lib/esnext.disposable.d.ts.map | 1 - .../dist/lib/esnext.disposable.js | 22 - .../dist/lib/esnext.disposable.js.map | 1 - .../scope-manager/dist/lib/esnext.full.d.ts | 3 - .../dist/lib/esnext.full.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.full.js | 22 - .../scope-manager/dist/lib/esnext.full.js.map | 1 - .../scope-manager/dist/lib/esnext.intl.d.ts | 3 - .../dist/lib/esnext.intl.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.intl.js | 12 - .../scope-manager/dist/lib/esnext.intl.js.map | 1 - .../scope-manager/dist/lib/esnext.js | 30 - .../scope-manager/dist/lib/esnext.js.map | 1 - .../scope-manager/dist/lib/esnext.object.d.ts | 3 - .../dist/lib/esnext.object.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.object.js | 12 - .../dist/lib/esnext.object.js.map | 1 - .../dist/lib/esnext.promise.d.ts | 3 - .../dist/lib/esnext.promise.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.promise.js | 13 - .../dist/lib/esnext.promise.js.map | 1 - .../scope-manager/dist/lib/esnext.regexp.d.ts | 3 - .../dist/lib/esnext.regexp.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.regexp.js | 12 - .../dist/lib/esnext.regexp.js.map | 1 - .../scope-manager/dist/lib/esnext.string.d.ts | 3 - .../dist/lib/esnext.string.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.string.js | 12 - .../dist/lib/esnext.string.js.map | 1 - .../scope-manager/dist/lib/esnext.symbol.d.ts | 3 - .../dist/lib/esnext.symbol.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.symbol.js | 12 - .../dist/lib/esnext.symbol.js.map | 1 - .../dist/lib/esnext.weakref.d.ts | 3 - .../dist/lib/esnext.weakref.d.ts.map | 1 - .../scope-manager/dist/lib/esnext.weakref.js | 15 - .../dist/lib/esnext.weakref.js.map | 1 - .../scope-manager/dist/lib/index.d.ts | 99 - .../scope-manager/dist/lib/index.d.ts.map | 1 - .../scope-manager/dist/lib/index.js | 201 - .../scope-manager/dist/lib/index.js.map | 1 - .../scope-manager/dist/lib/lib.d.ts | 3 - .../scope-manager/dist/lib/lib.d.ts.map | 1 - .../scope-manager/dist/lib/lib.js | 18 - .../scope-manager/dist/lib/lib.js.map | 1 - .../scope-manager/dist/lib/scripthost.d.ts | 3 - .../dist/lib/scripthost.d.ts.map | 1 - .../scope-manager/dist/lib/scripthost.js | 24 - .../scope-manager/dist/lib/scripthost.js.map | 1 - .../dist/lib/webworker.asynciterable.d.ts | 3 - .../dist/lib/webworker.asynciterable.d.ts.map | 1 - .../dist/lib/webworker.asynciterable.js | 13 - .../dist/lib/webworker.asynciterable.js.map | 1 - .../scope-manager/dist/lib/webworker.d.ts | 3 - .../scope-manager/dist/lib/webworker.d.ts.map | 1 - .../dist/lib/webworker.importscripts.d.ts | 3 - .../dist/lib/webworker.importscripts.d.ts.map | 1 - .../dist/lib/webworker.importscripts.js | 9 - .../dist/lib/webworker.importscripts.js.map | 1 - .../dist/lib/webworker.iterable.d.ts | 3 - .../dist/lib/webworker.iterable.d.ts.map | 1 - .../dist/lib/webworker.iterable.js | 35 - .../dist/lib/webworker.iterable.js.map | 1 - .../scope-manager/dist/lib/webworker.js | 591 - .../scope-manager/dist/lib/webworker.js.map | 1 - .../dist/referencer/ClassVisitor.d.ts | 29 - .../dist/referencer/ClassVisitor.d.ts.map | 1 - .../dist/referencer/ClassVisitor.js | 266 - .../dist/referencer/ClassVisitor.js.map | 1 - .../dist/referencer/ExportVisitor.d.ts | 15 - .../dist/referencer/ExportVisitor.d.ts.map | 1 - .../dist/referencer/ExportVisitor.js | 71 - .../dist/referencer/ExportVisitor.js.map | 1 - .../dist/referencer/ImportVisitor.d.ts | 14 - .../dist/referencer/ImportVisitor.d.ts.map | 1 - .../dist/referencer/ImportVisitor.js | 37 - .../dist/referencer/ImportVisitor.js.map | 1 - .../dist/referencer/PatternVisitor.d.ts | 29 - .../dist/referencer/PatternVisitor.d.ts.map | 1 - .../dist/referencer/PatternVisitor.js | 95 - .../dist/referencer/PatternVisitor.js.map | 1 - .../dist/referencer/Reference.d.ts | 89 - .../dist/referencer/Reference.d.ts.map | 1 - .../dist/referencer/Reference.js | 120 - .../dist/referencer/Reference.js.map | 1 - .../dist/referencer/Referencer.d.ts | 86 - .../dist/referencer/Referencer.d.ts.map | 1 - .../dist/referencer/Referencer.js | 534 - .../dist/referencer/Referencer.js.map | 1 - .../dist/referencer/TypeVisitor.d.ts | 33 - .../dist/referencer/TypeVisitor.d.ts.map | 1 - .../dist/referencer/TypeVisitor.js | 222 - .../dist/referencer/TypeVisitor.js.map | 1 - .../dist/referencer/Visitor.d.ts | 13 - .../dist/referencer/Visitor.d.ts.map | 1 - .../scope-manager/dist/referencer/Visitor.js | 29 - .../dist/referencer/Visitor.js.map | 1 - .../dist/referencer/VisitorBase.d.ts | 22 - .../dist/referencer/VisitorBase.d.ts.map | 1 - .../dist/referencer/VisitorBase.js | 68 - .../dist/referencer/VisitorBase.js.map | 1 - .../scope-manager/dist/referencer/index.d.ts | 2 - .../dist/referencer/index.d.ts.map | 1 - .../scope-manager/dist/referencer/index.js | 6 - .../dist/referencer/index.js.map | 1 - .../scope-manager/dist/scope/BlockScope.d.ts | 10 - .../dist/scope/BlockScope.d.ts.map | 1 - .../scope-manager/dist/scope/BlockScope.js | 12 - .../dist/scope/BlockScope.js.map | 1 - .../scope-manager/dist/scope/CatchScope.d.ts | 10 - .../dist/scope/CatchScope.d.ts.map | 1 - .../scope-manager/dist/scope/CatchScope.js | 12 - .../dist/scope/CatchScope.js.map | 1 - .../scope/ClassFieldInitializerScope.d.ts | 10 - .../scope/ClassFieldInitializerScope.d.ts.map | 1 - .../dist/scope/ClassFieldInitializerScope.js | 12 - .../scope/ClassFieldInitializerScope.js.map | 1 - .../scope-manager/dist/scope/ClassScope.d.ts | 10 - .../dist/scope/ClassScope.d.ts.map | 1 - .../scope-manager/dist/scope/ClassScope.js | 12 - .../dist/scope/ClassScope.js.map | 1 - .../dist/scope/ClassStaticBlockScope.d.ts | 10 - .../dist/scope/ClassStaticBlockScope.d.ts.map | 1 - .../dist/scope/ClassStaticBlockScope.js | 12 - .../dist/scope/ClassStaticBlockScope.js.map | 1 - .../dist/scope/ConditionalTypeScope.d.ts | 10 - .../dist/scope/ConditionalTypeScope.d.ts.map | 1 - .../dist/scope/ConditionalTypeScope.js | 12 - .../dist/scope/ConditionalTypeScope.js.map | 1 - .../scope-manager/dist/scope/ForScope.d.ts | 10 - .../dist/scope/ForScope.d.ts.map | 1 - .../scope-manager/dist/scope/ForScope.js | 12 - .../scope-manager/dist/scope/ForScope.js.map | 1 - .../scope/FunctionExpressionNameScope.d.ts | 11 - .../FunctionExpressionNameScope.d.ts.map | 1 - .../dist/scope/FunctionExpressionNameScope.js | 18 - .../scope/FunctionExpressionNameScope.js.map | 1 - .../dist/scope/FunctionScope.d.ts | 13 - .../dist/scope/FunctionScope.d.ts.map | 1 - .../scope-manager/dist/scope/FunctionScope.js | 36 - .../dist/scope/FunctionScope.js.map | 1 - .../dist/scope/FunctionTypeScope.d.ts | 10 - .../dist/scope/FunctionTypeScope.d.ts.map | 1 - .../dist/scope/FunctionTypeScope.js | 12 - .../dist/scope/FunctionTypeScope.js.map | 1 - .../scope-manager/dist/scope/GlobalScope.d.ts | 18 - .../dist/scope/GlobalScope.d.ts.map | 1 - .../scope-manager/dist/scope/GlobalScope.js | 41 - .../dist/scope/GlobalScope.js.map | 1 - .../dist/scope/MappedTypeScope.d.ts | 10 - .../dist/scope/MappedTypeScope.d.ts.map | 1 - .../dist/scope/MappedTypeScope.js | 12 - .../dist/scope/MappedTypeScope.js.map | 1 - .../scope-manager/dist/scope/ModuleScope.d.ts | 10 - .../dist/scope/ModuleScope.d.ts.map | 1 - .../scope-manager/dist/scope/ModuleScope.js | 12 - .../dist/scope/ModuleScope.js.map | 1 - .../scope-manager/dist/scope/Scope.d.ts | 21 - .../scope-manager/dist/scope/Scope.d.ts.map | 1 - .../scope-manager/dist/scope/Scope.js | 3 - .../scope-manager/dist/scope/Scope.js.map | 1 - .../scope-manager/dist/scope/ScopeBase.d.ts | 103 - .../dist/scope/ScopeBase.d.ts.map | 1 - .../scope-manager/dist/scope/ScopeBase.js | 361 - .../scope-manager/dist/scope/ScopeBase.js.map | 1 - .../scope-manager/dist/scope/ScopeType.d.ts | 22 - .../dist/scope/ScopeType.d.ts.map | 1 - .../scope-manager/dist/scope/ScopeType.js | 25 - .../scope-manager/dist/scope/ScopeType.js.map | 1 - .../scope-manager/dist/scope/SwitchScope.d.ts | 10 - .../dist/scope/SwitchScope.d.ts.map | 1 - .../scope-manager/dist/scope/SwitchScope.js | 12 - .../dist/scope/SwitchScope.js.map | 1 - .../scope-manager/dist/scope/TSEnumScope.d.ts | 10 - .../dist/scope/TSEnumScope.d.ts.map | 1 - .../scope-manager/dist/scope/TSEnumScope.js | 12 - .../dist/scope/TSEnumScope.js.map | 1 - .../dist/scope/TSModuleScope.d.ts | 10 - .../dist/scope/TSModuleScope.d.ts.map | 1 - .../scope-manager/dist/scope/TSModuleScope.js | 12 - .../dist/scope/TSModuleScope.js.map | 1 - .../scope-manager/dist/scope/TypeScope.d.ts | 10 - .../dist/scope/TypeScope.d.ts.map | 1 - .../scope-manager/dist/scope/TypeScope.js | 12 - .../scope-manager/dist/scope/TypeScope.js.map | 1 - .../scope-manager/dist/scope/WithScope.d.ts | 11 - .../dist/scope/WithScope.d.ts.map | 1 - .../scope-manager/dist/scope/WithScope.js | 22 - .../scope-manager/dist/scope/WithScope.js.map | 1 - .../scope-manager/dist/scope/index.d.ts | 20 - .../scope-manager/dist/scope/index.d.ts.map | 1 - .../scope-manager/dist/scope/index.js | 36 - .../scope-manager/dist/scope/index.js.map | 1 - .../dist/variable/ESLintScopeVariable.d.ts | 34 - .../variable/ESLintScopeVariable.d.ts.map | 1 - .../dist/variable/ESLintScopeVariable.js | 36 - .../dist/variable/ESLintScopeVariable.js.map | 1 - .../dist/variable/ImplicitLibVariable.d.ts | 25 - .../variable/ImplicitLibVariable.d.ts.map | 1 - .../dist/variable/ImplicitLibVariable.js | 27 - .../dist/variable/ImplicitLibVariable.js.map | 1 - .../scope-manager/dist/variable/Variable.d.ts | 18 - .../dist/variable/Variable.d.ts.map | 1 - .../scope-manager/dist/variable/Variable.js | 33 - .../dist/variable/Variable.js.map | 1 - .../dist/variable/VariableBase.d.ts | 44 - .../dist/variable/VariableBase.d.ts.map | 1 - .../dist/variable/VariableBase.js | 48 - .../dist/variable/VariableBase.js.map | 1 - .../scope-manager/dist/variable/index.d.ts | 7 - .../dist/variable/index.d.ts.map | 1 - .../scope-manager/dist/variable/index.js | 10 - .../scope-manager/dist/variable/index.js.map | 1 - .../scope-manager/package.json | 73 - .../@typescript-eslint/type-utils/LICENSE | 21 - .../@typescript-eslint/type-utils/README.md | 12 - .../type-utils/dist/TypeOrValueSpecifier.d.ts | 20 - .../dist/TypeOrValueSpecifier.d.ts.map | 1 - .../type-utils/dist/TypeOrValueSpecifier.js | 146 - .../dist/TypeOrValueSpecifier.js.map | 1 - .../type-utils/dist/builtinSymbolLikes.d.ts | 54 - .../dist/builtinSymbolLikes.d.ts.map | 1 - .../type-utils/dist/builtinSymbolLikes.js | 147 - .../type-utils/dist/builtinSymbolLikes.js.map | 1 - .../dist/containsAllTypesByName.d.ts | 10 - .../dist/containsAllTypesByName.d.ts.map | 1 - .../type-utils/dist/containsAllTypesByName.js | 60 - .../dist/containsAllTypesByName.js.map | 1 - .../dist/getConstrainedTypeAtLocation.d.ts | 7 - .../getConstrainedTypeAtLocation.d.ts.map | 1 - .../dist/getConstrainedTypeAtLocation.js | 14 - .../dist/getConstrainedTypeAtLocation.js.map | 1 - .../type-utils/dist/getContextualType.d.ts | 8 - .../dist/getContextualType.d.ts.map | 1 - .../type-utils/dist/getContextualType.js | 67 - .../type-utils/dist/getContextualType.js.map | 1 - .../type-utils/dist/getDeclaration.d.ts | 7 - .../type-utils/dist/getDeclaration.d.ts.map | 1 - .../type-utils/dist/getDeclaration.js | 15 - .../type-utils/dist/getDeclaration.js.map | 1 - .../type-utils/dist/getSourceFileOfNode.d.ts | 6 - .../dist/getSourceFileOfNode.d.ts.map | 1 - .../type-utils/dist/getSourceFileOfNode.js | 37 - .../dist/getSourceFileOfNode.js.map | 1 - .../type-utils/dist/getTypeName.d.ts | 8 - .../type-utils/dist/getTypeName.d.ts.map | 1 - .../type-utils/dist/getTypeName.js | 73 - .../type-utils/dist/getTypeName.js.map | 1 - .../type-utils/dist/index.d.ts | 17 - .../type-utils/dist/index.d.ts.map | 1 - .../type-utils/dist/index.js | 37 - .../type-utils/dist/index.js.map | 1 - .../dist/isSymbolFromDefaultLibrary.d.ts | 3 - .../dist/isSymbolFromDefaultLibrary.d.ts.map | 1 - .../dist/isSymbolFromDefaultLibrary.js | 17 - .../dist/isSymbolFromDefaultLibrary.js.map | 1 - .../type-utils/dist/isTypeReadonly.d.ts | 27 - .../type-utils/dist/isTypeReadonly.d.ts.map | 1 - .../type-utils/dist/isTypeReadonly.js | 226 - .../type-utils/dist/isTypeReadonly.js.map | 1 - .../type-utils/dist/isUnsafeAssignment.d.ts | 17 - .../dist/isUnsafeAssignment.d.ts.map | 1 - .../type-utils/dist/isUnsafeAssignment.js | 105 - .../type-utils/dist/isUnsafeAssignment.js.map | 1 - .../type-utils/dist/predicates.d.ts | 49 - .../type-utils/dist/predicates.d.ts.map | 1 - .../type-utils/dist/predicates.js | 180 - .../type-utils/dist/predicates.js.map | 1 - .../type-utils/dist/propertyTypes.d.ts | 4 - .../type-utils/dist/propertyTypes.d.ts.map | 1 - .../type-utils/dist/propertyTypes.js | 36 - .../type-utils/dist/propertyTypes.js.map | 1 - .../type-utils/dist/requiresQuoting.d.ts | 5 - .../type-utils/dist/requiresQuoting.d.ts.map | 1 - .../type-utils/dist/requiresQuoting.js | 43 - .../type-utils/dist/requiresQuoting.js.map | 1 - .../type-utils/dist/typeFlagUtils.d.ts | 18 - .../type-utils/dist/typeFlagUtils.d.ts.map | 1 - .../type-utils/dist/typeFlagUtils.js | 61 - .../type-utils/dist/typeFlagUtils.js.map | 1 - .../specifierNameMatches.d.ts | 3 - .../specifierNameMatches.d.ts.map | 1 - .../specifierNameMatches.js | 44 - .../specifierNameMatches.js.map | 1 - .../typeDeclaredInFile.d.ts | 3 - .../typeDeclaredInFile.d.ts.map | 1 - .../typeDeclaredInFile.js | 17 - .../typeDeclaredInFile.js.map | 1 - .../typeDeclaredInLib.d.ts | 3 - .../typeDeclaredInLib.d.ts.map | 1 - .../typeDeclaredInLib.js | 12 - .../typeDeclaredInLib.js.map | 1 - .../typeDeclaredInPackageDeclarationFile.d.ts | 3 - ...eDeclaredInPackageDeclarationFile.d.ts.map | 1 - .../typeDeclaredInPackageDeclarationFile.js | 58 - ...ypeDeclaredInPackageDeclarationFile.js.map | 1 - .../type-utils/package.json | 80 - .../@typescript-eslint/types/LICENSE | 21 - .../@typescript-eslint/types/README.md | 12 - .../types/dist/generated/ast-spec.d.ts | 2134 - .../types/dist/generated/ast-spec.d.ts.map | 1 - .../types/dist/generated/ast-spec.js | 200 - .../types/dist/generated/ast-spec.js.map | 1 - .../@typescript-eslint/types/dist/index.d.ts | 5 - .../types/dist/index.d.ts.map | 1 - .../@typescript-eslint/types/dist/index.js | 24 - .../types/dist/index.js.map | 1 - .../@typescript-eslint/types/dist/lib.d.ts | 3 - .../types/dist/lib.d.ts.map | 1 - .../@typescript-eslint/types/dist/lib.js | 7 - .../@typescript-eslint/types/dist/lib.js.map | 1 - .../types/dist/parser-options.d.ts | 64 - .../types/dist/parser-options.d.ts.map | 1 - .../types/dist/parser-options.js | 3 - .../types/dist/parser-options.js.map | 1 - .../types/dist/ts-estree.d.ts | 170 - .../types/dist/ts-estree.d.ts.map | 1 - .../types/dist/ts-estree.js | 28 - .../types/dist/ts-estree.js.map | 1 - .../@typescript-eslint/types/package.json | 88 - .../typescript-estree/LICENSE | 26 - .../typescript-estree/README.md | 14 - .../typescript-estree/dist/ast-converter.d.ts | 9 - .../dist/ast-converter.d.ts.map | 1 - .../typescript-estree/dist/ast-converter.js | 61 - .../dist/ast-converter.js.map | 1 - .../typescript-estree/dist/clear-caches.d.ts | 10 - .../dist/clear-caches.d.ts.map | 1 - .../typescript-estree/dist/clear-caches.js | 26 - .../dist/clear-caches.js.map | 1 - .../dist/convert-comments.d.ts | 11 - .../dist/convert-comments.d.ts.map | 1 - .../dist/convert-comments.js | 62 - .../dist/convert-comments.js.map | 1 - .../typescript-estree/dist/convert.d.ts | 137 - .../typescript-estree/dist/convert.d.ts.map | 1 - .../typescript-estree/dist/convert.js | 2664 - .../typescript-estree/dist/convert.js.map | 1 - .../WatchCompilerHostOfConfigFile.d.ts | 13 - .../WatchCompilerHostOfConfigFile.d.ts.map | 1 - .../WatchCompilerHostOfConfigFile.js | 6 - .../WatchCompilerHostOfConfigFile.js.map | 1 - .../create-program/createIsolatedProgram.d.ts | 8 - .../createIsolatedProgram.d.ts.map | 1 - .../create-program/createIsolatedProgram.js | 87 - .../createIsolatedProgram.js.map | 1 - .../create-program/createProjectProgram.d.ts | 10 - .../createProjectProgram.d.ts.map | 1 - .../create-program/createProjectProgram.js | 99 - .../createProjectProgram.js.map | 1 - .../create-program/createProjectService.d.ts | 10 - .../createProjectService.d.ts.map | 1 - .../create-program/createProjectService.js | 119 - .../createProjectService.js.map | 1 - .../dist/create-program/createSourceFile.d.ts | 7 - .../create-program/createSourceFile.d.ts.map | 1 - .../dist/create-program/createSourceFile.js | 52 - .../create-program/createSourceFile.js.map | 1 - .../dist/create-program/describeFilePath.d.ts | 2 - .../create-program/describeFilePath.d.ts.map | 1 - .../dist/create-program/describeFilePath.js | 31 - .../create-program/describeFilePath.js.map | 1 - .../create-program/getParsedConfigFile.d.ts | 10 - .../getParsedConfigFile.d.ts.map | 1 - .../create-program/getParsedConfigFile.js | 67 - .../create-program/getParsedConfigFile.js.map | 1 - .../dist/create-program/getScriptKind.d.ts | 5 - .../create-program/getScriptKind.d.ts.map | 1 - .../dist/create-program/getScriptKind.js | 71 - .../dist/create-program/getScriptKind.js.map | 1 - .../getWatchProgramsForProjects.d.ts | 15 - .../getWatchProgramsForProjects.d.ts.map | 1 - .../getWatchProgramsForProjects.js | 371 - .../getWatchProgramsForProjects.js.map | 1 - .../dist/create-program/shared.d.ts | 32 - .../dist/create-program/shared.d.ts.map | 1 - .../dist/create-program/shared.js | 124 - .../dist/create-program/shared.js.map | 1 - .../create-program/useProvidedPrograms.d.ts | 13 - .../useProvidedPrograms.d.ts.map | 1 - .../create-program/useProvidedPrograms.js | 72 - .../create-program/useProvidedPrograms.js.map | 1 - .../validateDefaultProjectForFilesGlob.d.ts | 4 - ...alidateDefaultProjectForFilesGlob.d.ts.map | 1 - .../validateDefaultProjectForFilesGlob.js | 24 - .../validateDefaultProjectForFilesGlob.js.map | 1 - .../dist/createParserServices.d.ts | 5 - .../dist/createParserServices.d.ts.map | 1 - .../dist/createParserServices.js | 28 - .../dist/createParserServices.js.map | 1 - .../typescript-estree/dist/getModifiers.d.ts | 4 - .../dist/getModifiers.d.ts.map | 1 - .../typescript-estree/dist/getModifiers.js | 65 - .../dist/getModifiers.js.map | 1 - .../typescript-estree/dist/index.d.ts | 14 - .../typescript-estree/dist/index.d.ts.map | 1 - .../typescript-estree/dist/index.js | 40 - .../typescript-estree/dist/index.js.map | 1 - .../dist/jsx/xhtml-entities.d.ts | 2 - .../dist/jsx/xhtml-entities.d.ts.map | 1 - .../dist/jsx/xhtml-entities.js | 259 - .../dist/jsx/xhtml-entities.js.map | 1 - .../typescript-estree/dist/node-utils.d.ts | 249 - .../dist/node-utils.d.ts.map | 1 - .../typescript-estree/dist/node-utils.js | 790 - .../typescript-estree/dist/node-utils.js.map | 1 - .../dist/parseSettings/ExpiringCache.d.ts | 17 - .../dist/parseSettings/ExpiringCache.d.ts.map | 1 - .../dist/parseSettings/ExpiringCache.js | 47 - .../dist/parseSettings/ExpiringCache.js.map | 1 - .../parseSettings/createParseSettings.d.ts | 7 - .../createParseSettings.d.ts.map | 1 - .../dist/parseSettings/createParseSettings.js | 192 - .../parseSettings/createParseSettings.js.map | 1 - .../parseSettings/getProjectConfigFiles.d.ts | 13 - .../getProjectConfigFiles.d.ts.map | 1 - .../parseSettings/getProjectConfigFiles.js | 73 - .../getProjectConfigFiles.js.map | 1 - .../dist/parseSettings/index.d.ts | 120 - .../dist/parseSettings/index.d.ts.map | 1 - .../dist/parseSettings/index.js | 3 - .../dist/parseSettings/index.js.map | 1 - .../dist/parseSettings/inferSingleRun.d.ts | 15 - .../parseSettings/inferSingleRun.d.ts.map | 1 - .../dist/parseSettings/inferSingleRun.js | 65 - .../dist/parseSettings/inferSingleRun.js.map | 1 - .../parseSettings/resolveProjectList.d.ts | 19 - .../parseSettings/resolveProjectList.d.ts.map | 1 - .../dist/parseSettings/resolveProjectList.js | 102 - .../parseSettings/resolveProjectList.js.map | 1 - .../parseSettings/warnAboutTSVersion.d.ts | 3 - .../parseSettings/warnAboutTSVersion.d.ts.map | 1 - .../dist/parseSettings/warnAboutTSVersion.js | 68 - .../parseSettings/warnAboutTSVersion.js.map | 1 - .../dist/parser-options.d.ts | 201 - .../dist/parser-options.d.ts.map | 1 - .../typescript-estree/dist/parser-options.js | 3 - .../dist/parser-options.js.map | 1 - .../typescript-estree/dist/parser.d.ts | 19 - .../typescript-estree/dist/parser.d.ts.map | 1 - .../typescript-estree/dist/parser.js | 181 - .../typescript-estree/dist/parser.js.map | 1 - .../dist/semantic-or-syntactic-errors.d.ts | 13 - .../semantic-or-syntactic-errors.d.ts.map | 1 - .../dist/semantic-or-syntactic-errors.js | 95 - .../dist/semantic-or-syntactic-errors.js.map | 1 - .../dist/simple-traverse.d.ts | 12 - .../dist/simple-traverse.d.ts.map | 1 - .../typescript-estree/dist/simple-traverse.js | 59 - .../dist/simple-traverse.js.map | 1 - .../typescript-estree/dist/source-files.d.ts | 4 - .../dist/source-files.d.ts.map | 1 - .../typescript-estree/dist/source-files.js | 40 - .../dist/source-files.js.map | 1 - .../ts-estree/estree-to-ts-node-types.d.ts | 179 - .../estree-to-ts-node-types.d.ts.map | 1 - .../dist/ts-estree/estree-to-ts-node-types.js | 3 - .../ts-estree/estree-to-ts-node-types.js.map | 1 - .../dist/ts-estree/index.d.ts | 4 - .../dist/ts-estree/index.d.ts.map | 1 - .../typescript-estree/dist/ts-estree/index.js | 25 - .../dist/ts-estree/index.js.map | 1 - .../dist/ts-estree/ts-nodes.d.ts | 18 - .../dist/ts-estree/ts-nodes.d.ts.map | 1 - .../dist/ts-estree/ts-nodes.js | 3 - .../dist/ts-estree/ts-nodes.js.map | 1 - .../dist/use-at-your-own-risk.d.ts | 7 - .../dist/use-at-your-own-risk.d.ts.map | 1 - .../dist/use-at-your-own-risk.js | 28 - .../dist/use-at-your-own-risk.js.map | 1 - .../dist/useProgramFromProjectService.d.ts | 7 - .../useProgramFromProjectService.d.ts.map | 1 - .../dist/useProgramFromProjectService.js | 148 - .../dist/useProgramFromProjectService.js.map | 1 - .../typescript-estree/dist/version-check.d.ts | 5 - .../dist/version-check.d.ts.map | 1 - .../typescript-estree/dist/version-check.js | 49 - .../dist/version-check.js.map | 1 - .../dist/withoutProjectParserOptions.d.ts | 11 - .../dist/withoutProjectParserOptions.d.ts.map | 1 - .../dist/withoutProjectParserOptions.js | 17 - .../dist/withoutProjectParserOptions.js.map | 1 - .../brace-expansion/.github/FUNDING.yml | 2 - .../node_modules/brace-expansion/LICENSE | 21 - .../node_modules/brace-expansion/README.md | 135 - .../node_modules/brace-expansion/index.js | 203 - .../node_modules/brace-expansion/package.json | 46 - .../node_modules/minimatch/LICENSE | 15 - .../node_modules/minimatch/README.md | 454 - .../dist/commonjs/assert-valid-pattern.d.ts | 2 - .../commonjs/assert-valid-pattern.d.ts.map | 1 - .../dist/commonjs/assert-valid-pattern.js | 14 - .../dist/commonjs/assert-valid-pattern.js.map | 1 - .../minimatch/dist/commonjs/ast.d.ts | 20 - .../minimatch/dist/commonjs/ast.d.ts.map | 1 - .../minimatch/dist/commonjs/ast.js | 592 - .../minimatch/dist/commonjs/ast.js.map | 1 - .../dist/commonjs/brace-expressions.d.ts | 8 - .../dist/commonjs/brace-expressions.d.ts.map | 1 - .../dist/commonjs/brace-expressions.js | 152 - .../dist/commonjs/brace-expressions.js.map | 1 - .../minimatch/dist/commonjs/escape.d.ts | 12 - .../minimatch/dist/commonjs/escape.d.ts.map | 1 - .../minimatch/dist/commonjs/escape.js | 22 - .../minimatch/dist/commonjs/escape.js.map | 1 - .../minimatch/dist/commonjs/index.d.ts | 94 - .../minimatch/dist/commonjs/index.d.ts.map | 1 - .../minimatch/dist/commonjs/index.js | 1017 - .../minimatch/dist/commonjs/index.js.map | 1 - .../minimatch/dist/commonjs/package.json | 3 - .../minimatch/dist/commonjs/unescape.d.ts | 17 - .../minimatch/dist/commonjs/unescape.d.ts.map | 1 - .../minimatch/dist/commonjs/unescape.js | 24 - .../minimatch/dist/commonjs/unescape.js.map | 1 - .../dist/esm/assert-valid-pattern.d.ts | 2 - .../dist/esm/assert-valid-pattern.d.ts.map | 1 - .../dist/esm/assert-valid-pattern.js | 10 - .../dist/esm/assert-valid-pattern.js.map | 1 - .../node_modules/minimatch/dist/esm/ast.d.ts | 20 - .../minimatch/dist/esm/ast.d.ts.map | 1 - .../node_modules/minimatch/dist/esm/ast.js | 588 - .../minimatch/dist/esm/ast.js.map | 1 - .../minimatch/dist/esm/brace-expressions.d.ts | 8 - .../dist/esm/brace-expressions.d.ts.map | 1 - .../minimatch/dist/esm/brace-expressions.js | 148 - .../dist/esm/brace-expressions.js.map | 1 - .../minimatch/dist/esm/escape.d.ts | 12 - .../minimatch/dist/esm/escape.d.ts.map | 1 - .../node_modules/minimatch/dist/esm/escape.js | 18 - .../minimatch/dist/esm/escape.js.map | 1 - .../minimatch/dist/esm/index.d.ts | 94 - .../minimatch/dist/esm/index.d.ts.map | 1 - .../node_modules/minimatch/dist/esm/index.js | 1001 - .../minimatch/dist/esm/index.js.map | 1 - .../minimatch/dist/esm/package.json | 3 - .../minimatch/dist/esm/unescape.d.ts | 17 - .../minimatch/dist/esm/unescape.d.ts.map | 1 - .../minimatch/dist/esm/unescape.js | 20 - .../minimatch/dist/esm/unescape.js.map | 1 - .../node_modules/minimatch/package.json | 82 - .../typescript-estree/package.json | 91 - .../@typescript-eslint/utils/LICENSE | 21 - .../@typescript-eslint/utils/README.md | 12 - .../eslint-utils/PatternMatcher.d.ts | 48 - .../eslint-utils/PatternMatcher.d.ts.map | 1 - .../ast-utils/eslint-utils/PatternMatcher.js | 36 - .../eslint-utils/PatternMatcher.js.map | 1 - .../eslint-utils/ReferenceTracker.d.ts | 76 - .../eslint-utils/ReferenceTracker.d.ts.map | 1 - .../eslint-utils/ReferenceTracker.js | 40 - .../eslint-utils/ReferenceTracker.js.map | 1 - .../ast-utils/eslint-utils/astUtilities.d.ts | 85 - .../eslint-utils/astUtilities.d.ts.map | 1 - .../ast-utils/eslint-utils/astUtilities.js | 99 - .../eslint-utils/astUtilities.js.map | 1 - .../dist/ast-utils/eslint-utils/index.d.ts | 6 - .../ast-utils/eslint-utils/index.d.ts.map | 1 - .../dist/ast-utils/eslint-utils/index.js | 22 - .../dist/ast-utils/eslint-utils/index.js.map | 1 - .../ast-utils/eslint-utils/predicates.d.ts | 32 - .../eslint-utils/predicates.d.ts.map | 1 - .../dist/ast-utils/eslint-utils/predicates.js | 72 - .../ast-utils/eslint-utils/predicates.js.map | 1 - .../ast-utils/eslint-utils/scopeAnalysis.d.ts | 18 - .../eslint-utils/scopeAnalysis.d.ts.map | 1 - .../ast-utils/eslint-utils/scopeAnalysis.js | 44 - .../eslint-utils/scopeAnalysis.js.map | 1 - .../utils/dist/ast-utils/helpers.d.ts | 19 - .../utils/dist/ast-utils/helpers.d.ts.map | 1 - .../utils/dist/ast-utils/helpers.js | 22 - .../utils/dist/ast-utils/helpers.js.map | 1 - .../utils/dist/ast-utils/index.d.ts | 5 - .../utils/dist/ast-utils/index.d.ts.map | 1 - .../utils/dist/ast-utils/index.js | 21 - .../utils/dist/ast-utils/index.js.map | 1 - .../utils/dist/ast-utils/misc.d.ts | 8 - .../utils/dist/ast-utils/misc.d.ts.map | 1 - .../utils/dist/ast-utils/misc.js | 13 - .../utils/dist/ast-utils/misc.js.map | 1 - .../utils/dist/ast-utils/predicates.d.ts | 96 - .../utils/dist/ast-utils/predicates.d.ts.map | 1 - .../utils/dist/ast-utils/predicates.js | 135 - .../utils/dist/ast-utils/predicates.js.map | 1 - .../dist/eslint-utils/InferTypesFromRule.d.ts | 11 - .../eslint-utils/InferTypesFromRule.d.ts.map | 1 - .../dist/eslint-utils/InferTypesFromRule.js | 3 - .../eslint-utils/InferTypesFromRule.js.map | 1 - .../utils/dist/eslint-utils/RuleCreator.d.ts | 28 - .../dist/eslint-utils/RuleCreator.d.ts.map | 1 - .../utils/dist/eslint-utils/RuleCreator.js | 46 - .../dist/eslint-utils/RuleCreator.js.map | 1 - .../utils/dist/eslint-utils/applyDefault.d.ts | 10 - .../dist/eslint-utils/applyDefault.d.ts.map | 1 - .../utils/dist/eslint-utils/applyDefault.js | 33 - .../dist/eslint-utils/applyDefault.js.map | 1 - .../utils/dist/eslint-utils/deepMerge.d.ts | 16 - .../dist/eslint-utils/deepMerge.d.ts.map | 1 - .../utils/dist/eslint-utils/deepMerge.js | 46 - .../utils/dist/eslint-utils/deepMerge.js.map | 1 - .../dist/eslint-utils/getParserServices.d.ts | 24 - .../eslint-utils/getParserServices.d.ts.map | 1 - .../dist/eslint-utils/getParserServices.js | 40 - .../eslint-utils/getParserServices.js.map | 1 - .../utils/dist/eslint-utils/index.d.ts | 7 - .../utils/dist/eslint-utils/index.d.ts.map | 1 - .../utils/dist/eslint-utils/index.js | 23 - .../utils/dist/eslint-utils/index.js.map | 1 - .../utils/dist/eslint-utils/nullThrows.d.ts | 14 - .../dist/eslint-utils/nullThrows.d.ts.map | 1 - .../utils/dist/eslint-utils/nullThrows.js | 23 - .../utils/dist/eslint-utils/nullThrows.js.map | 1 - .../eslint-utils/parserSeemsToBeTSESLint.d.ts | 2 - .../parserSeemsToBeTSESLint.d.ts.map | 1 - .../eslint-utils/parserSeemsToBeTSESLint.js | 7 - .../parserSeemsToBeTSESLint.js.map | 1 - .../@typescript-eslint/utils/dist/index.d.ts | 8 - .../utils/dist/index.d.ts.map | 1 - .../@typescript-eslint/utils/dist/index.js | 41 - .../utils/dist/index.js.map | 1 - .../utils/dist/json-schema.d.ts | 388 - .../utils/dist/json-schema.d.ts.map | 1 - .../utils/dist/json-schema.js | 9 - .../utils/dist/json-schema.js.map | 1 - .../utils/dist/ts-eslint/AST.d.ts | 9 - .../utils/dist/ts-eslint/AST.d.ts.map | 1 - .../utils/dist/ts-eslint/AST.js | 4 - .../utils/dist/ts-eslint/AST.js.map | 1 - .../utils/dist/ts-eslint/Config.d.ts | 265 - .../utils/dist/ts-eslint/Config.d.ts.map | 1 - .../utils/dist/ts-eslint/Config.js | 4 - .../utils/dist/ts-eslint/Config.js.map | 1 - .../utils/dist/ts-eslint/ESLint.d.ts | 8 - .../utils/dist/ts-eslint/ESLint.d.ts.map | 1 - .../utils/dist/ts-eslint/ESLint.js | 14 - .../utils/dist/ts-eslint/ESLint.js.map | 1 - .../utils/dist/ts-eslint/Linter.d.ts | 253 - .../utils/dist/ts-eslint/Linter.d.ts.map | 1 - .../utils/dist/ts-eslint/Linter.js | 14 - .../utils/dist/ts-eslint/Linter.js.map | 1 - .../utils/dist/ts-eslint/Parser.d.ts | 95 - .../utils/dist/ts-eslint/Parser.d.ts.map | 1 - .../utils/dist/ts-eslint/Parser.js | 4 - .../utils/dist/ts-eslint/Parser.js.map | 1 - .../utils/dist/ts-eslint/ParserOptions.d.ts | 2 - .../dist/ts-eslint/ParserOptions.d.ts.map | 1 - .../utils/dist/ts-eslint/ParserOptions.js | 3 - .../utils/dist/ts-eslint/ParserOptions.js.map | 1 - .../utils/dist/ts-eslint/Processor.d.ts | 64 - .../utils/dist/ts-eslint/Processor.d.ts.map | 1 - .../utils/dist/ts-eslint/Processor.js | 4 - .../utils/dist/ts-eslint/Processor.js.map | 1 - .../utils/dist/ts-eslint/Rule.d.ts | 527 - .../utils/dist/ts-eslint/Rule.d.ts.map | 1 - .../utils/dist/ts-eslint/Rule.js | 3 - .../utils/dist/ts-eslint/Rule.js.map | 1 - .../utils/dist/ts-eslint/RuleTester.d.ts | 184 - .../utils/dist/ts-eslint/RuleTester.d.ts.map | 1 - .../utils/dist/ts-eslint/RuleTester.js | 12 - .../utils/dist/ts-eslint/RuleTester.js.map | 1 - .../utils/dist/ts-eslint/Scope.d.ts | 44 - .../utils/dist/ts-eslint/Scope.d.ts.map | 1 - .../utils/dist/ts-eslint/Scope.js | 34 - .../utils/dist/ts-eslint/Scope.js.map | 1 - .../utils/dist/ts-eslint/SourceCode.d.ts | 355 - .../utils/dist/ts-eslint/SourceCode.d.ts.map | 1 - .../utils/dist/ts-eslint/SourceCode.js | 9 - .../utils/dist/ts-eslint/SourceCode.js.map | 1 - .../dist/ts-eslint/eslint/ESLintShared.d.ts | 382 - .../ts-eslint/eslint/ESLintShared.d.ts.map | 1 - .../dist/ts-eslint/eslint/ESLintShared.js | 3 - .../dist/ts-eslint/eslint/ESLintShared.js.map | 1 - .../dist/ts-eslint/eslint/FlatESLint.d.ts | 84 - .../dist/ts-eslint/eslint/FlatESLint.d.ts.map | 1 - .../utils/dist/ts-eslint/eslint/FlatESLint.js | 15 - .../dist/ts-eslint/eslint/FlatESLint.js.map | 1 - .../dist/ts-eslint/eslint/LegacyESLint.d.ts | 73 - .../ts-eslint/eslint/LegacyESLint.d.ts.map | 1 - .../dist/ts-eslint/eslint/LegacyESLint.js | 15 - .../dist/ts-eslint/eslint/LegacyESLint.js.map | 1 - .../utils/dist/ts-eslint/index.d.ts | 12 - .../utils/dist/ts-eslint/index.d.ts.map | 1 - .../utils/dist/ts-eslint/index.js | 28 - .../utils/dist/ts-eslint/index.js.map | 1 - .../utils/dist/ts-estree.d.ts | 3 - .../utils/dist/ts-estree.d.ts.map | 1 - .../utils/dist/ts-estree.js | 10 - .../utils/dist/ts-estree.js.map | 1 - .../utils/dist/ts-utils/index.d.ts | 2 - .../utils/dist/ts-utils/index.d.ts.map | 1 - .../utils/dist/ts-utils/index.js | 18 - .../utils/dist/ts-utils/index.js.map | 1 - .../utils/dist/ts-utils/isArray.d.ts | 2 - .../utils/dist/ts-utils/isArray.d.ts.map | 1 - .../utils/dist/ts-utils/isArray.js | 8 - .../utils/dist/ts-utils/isArray.js.map | 1 - .../@typescript-eslint/utils/package.json | 92 - .../@typescript-eslint/visitor-keys/LICENSE | 21 - .../@typescript-eslint/visitor-keys/README.md | 10 - .../visitor-keys/dist/get-keys.d.ts | 4 - .../visitor-keys/dist/get-keys.d.ts.map | 1 - .../visitor-keys/dist/get-keys.js | 7 - .../visitor-keys/dist/get-keys.js.map | 1 - .../visitor-keys/dist/index.d.ts | 3 - .../visitor-keys/dist/index.d.ts.map | 1 - .../visitor-keys/dist/index.js | 8 - .../visitor-keys/dist/index.js.map | 1 - .../visitor-keys/dist/visitor-keys.d.ts | 4 - .../visitor-keys/dist/visitor-keys.d.ts.map | 1 - .../visitor-keys/dist/visitor-keys.js | 191 - .../visitor-keys/dist/visitor-keys.js.map | 1 - .../node_modules/eslint-visitor-keys/LICENSE | 201 - .../eslint-visitor-keys/README.md | 105 - .../dist/eslint-visitor-keys.cjs | 384 - .../dist/eslint-visitor-keys.d.cts | 27 - .../eslint-visitor-keys/dist/index.d.ts | 16 - .../dist/visitor-keys.d.ts | 12 - .../eslint-visitor-keys/lib/index.js | 65 - .../eslint-visitor-keys/lib/visitor-keys.js | 315 - .../eslint-visitor-keys/package.json | 74 - .../visitor-keys/package.json | 73 - graphql/node_modules/acorn-jsx/LICENSE | 19 - graphql/node_modules/acorn-jsx/README.md | 40 - graphql/node_modules/acorn-jsx/index.d.ts | 12 - graphql/node_modules/acorn-jsx/index.js | 488 - graphql/node_modules/acorn-jsx/package.json | 27 - graphql/node_modules/acorn-jsx/xhtml.js | 255 - graphql/node_modules/acorn/CHANGELOG.md | 910 - graphql/node_modules/acorn/LICENSE | 21 - graphql/node_modules/acorn/README.md | 282 - graphql/node_modules/acorn/bin/acorn | 4 - graphql/node_modules/acorn/dist/acorn.d.mts | 856 - graphql/node_modules/acorn/dist/acorn.d.ts | 856 - graphql/node_modules/acorn/dist/acorn.js | 6065 - graphql/node_modules/acorn/dist/acorn.mjs | 6036 - graphql/node_modules/acorn/dist/bin.js | 90 - graphql/node_modules/acorn/package.json | 50 - graphql/node_modules/ajv/.tonic_example.js | 20 - graphql/node_modules/ajv/LICENSE | 22 - graphql/node_modules/ajv/README.md | 1497 - graphql/node_modules/ajv/dist/ajv.bundle.js | 7189 - graphql/node_modules/ajv/dist/ajv.min.js | 3 - graphql/node_modules/ajv/dist/ajv.min.js.map | 1 - graphql/node_modules/ajv/lib/ajv.d.ts | 397 - graphql/node_modules/ajv/lib/ajv.js | 506 - graphql/node_modules/ajv/lib/cache.js | 26 - graphql/node_modules/ajv/lib/compile/async.js | 90 - graphql/node_modules/ajv/lib/compile/equal.js | 5 - .../ajv/lib/compile/error_classes.js | 34 - .../node_modules/ajv/lib/compile/formats.js | 142 - graphql/node_modules/ajv/lib/compile/index.js | 387 - .../node_modules/ajv/lib/compile/resolve.js | 270 - graphql/node_modules/ajv/lib/compile/rules.js | 66 - .../ajv/lib/compile/schema_obj.js | 9 - .../ajv/lib/compile/ucs2length.js | 20 - graphql/node_modules/ajv/lib/compile/util.js | 239 - graphql/node_modules/ajv/lib/data.js | 49 - .../node_modules/ajv/lib/definition_schema.js | 37 - graphql/node_modules/ajv/lib/dot/_limit.jst | 113 - .../node_modules/ajv/lib/dot/_limitItems.jst | 12 - .../node_modules/ajv/lib/dot/_limitLength.jst | 12 - .../ajv/lib/dot/_limitProperties.jst | 12 - graphql/node_modules/ajv/lib/dot/allOf.jst | 32 - graphql/node_modules/ajv/lib/dot/anyOf.jst | 46 - graphql/node_modules/ajv/lib/dot/coerce.def | 51 - graphql/node_modules/ajv/lib/dot/comment.jst | 9 - graphql/node_modules/ajv/lib/dot/const.jst | 11 - graphql/node_modules/ajv/lib/dot/contains.jst | 55 - graphql/node_modules/ajv/lib/dot/custom.jst | 191 - graphql/node_modules/ajv/lib/dot/defaults.def | 47 - .../node_modules/ajv/lib/dot/definitions.def | 203 - .../node_modules/ajv/lib/dot/dependencies.jst | 79 - graphql/node_modules/ajv/lib/dot/enum.jst | 30 - graphql/node_modules/ajv/lib/dot/errors.def | 194 - graphql/node_modules/ajv/lib/dot/format.jst | 106 - graphql/node_modules/ajv/lib/dot/if.jst | 73 - graphql/node_modules/ajv/lib/dot/items.jst | 98 - graphql/node_modules/ajv/lib/dot/missing.def | 39 - .../node_modules/ajv/lib/dot/multipleOf.jst | 22 - graphql/node_modules/ajv/lib/dot/not.jst | 43 - graphql/node_modules/ajv/lib/dot/oneOf.jst | 54 - graphql/node_modules/ajv/lib/dot/pattern.jst | 14 - .../node_modules/ajv/lib/dot/properties.jst | 245 - .../ajv/lib/dot/propertyNames.jst | 52 - graphql/node_modules/ajv/lib/dot/ref.jst | 85 - graphql/node_modules/ajv/lib/dot/required.jst | 108 - .../node_modules/ajv/lib/dot/uniqueItems.jst | 62 - graphql/node_modules/ajv/lib/dot/validate.jst | 276 - graphql/node_modules/ajv/lib/dotjs/README.md | 3 - graphql/node_modules/ajv/lib/dotjs/_limit.js | 163 - .../node_modules/ajv/lib/dotjs/_limitItems.js | 80 - .../ajv/lib/dotjs/_limitLength.js | 85 - .../ajv/lib/dotjs/_limitProperties.js | 80 - graphql/node_modules/ajv/lib/dotjs/allOf.js | 42 - graphql/node_modules/ajv/lib/dotjs/anyOf.js | 73 - graphql/node_modules/ajv/lib/dotjs/comment.js | 14 - graphql/node_modules/ajv/lib/dotjs/const.js | 56 - .../node_modules/ajv/lib/dotjs/contains.js | 81 - graphql/node_modules/ajv/lib/dotjs/custom.js | 228 - .../ajv/lib/dotjs/dependencies.js | 168 - graphql/node_modules/ajv/lib/dotjs/enum.js | 66 - graphql/node_modules/ajv/lib/dotjs/format.js | 150 - graphql/node_modules/ajv/lib/dotjs/if.js | 103 - graphql/node_modules/ajv/lib/dotjs/index.js | 33 - graphql/node_modules/ajv/lib/dotjs/items.js | 140 - .../node_modules/ajv/lib/dotjs/multipleOf.js | 80 - graphql/node_modules/ajv/lib/dotjs/not.js | 84 - graphql/node_modules/ajv/lib/dotjs/oneOf.js | 73 - graphql/node_modules/ajv/lib/dotjs/pattern.js | 75 - .../node_modules/ajv/lib/dotjs/properties.js | 335 - .../ajv/lib/dotjs/propertyNames.js | 81 - graphql/node_modules/ajv/lib/dotjs/ref.js | 124 - .../node_modules/ajv/lib/dotjs/required.js | 270 - .../node_modules/ajv/lib/dotjs/uniqueItems.js | 86 - .../node_modules/ajv/lib/dotjs/validate.js | 482 - graphql/node_modules/ajv/lib/keyword.js | 146 - graphql/node_modules/ajv/lib/refs/data.json | 17 - .../ajv/lib/refs/json-schema-draft-04.json | 149 - .../ajv/lib/refs/json-schema-draft-06.json | 154 - .../ajv/lib/refs/json-schema-draft-07.json | 168 - .../ajv/lib/refs/json-schema-secure.json | 94 - graphql/node_modules/ajv/package.json | 106 - .../node_modules/ajv/scripts/.eslintrc.yml | 3 - graphql/node_modules/ajv/scripts/bundle.js | 61 - .../node_modules/ajv/scripts/compile-dots.js | 73 - graphql/node_modules/ajv/scripts/info | 10 - .../node_modules/ajv/scripts/prepare-tests | 12 - .../ajv/scripts/publish-built-version | 32 - .../node_modules/ajv/scripts/travis-gh-pages | 23 - graphql/node_modules/ansi-regex/index.d.ts | 37 - graphql/node_modules/ansi-regex/index.js | 10 - graphql/node_modules/ansi-regex/license | 9 - graphql/node_modules/ansi-regex/package.json | 55 - graphql/node_modules/ansi-regex/readme.md | 78 - graphql/node_modules/ansi-styles/index.d.ts | 345 - graphql/node_modules/ansi-styles/index.js | 163 - graphql/node_modules/ansi-styles/license | 9 - graphql/node_modules/ansi-styles/package.json | 56 - graphql/node_modules/ansi-styles/readme.md | 152 - graphql/node_modules/argparse/CHANGELOG.md | 216 - graphql/node_modules/argparse/LICENSE | 254 - graphql/node_modules/argparse/README.md | 84 - graphql/node_modules/argparse/argparse.js | 3707 - graphql/node_modules/argparse/lib/sub.js | 67 - graphql/node_modules/argparse/lib/textwrap.js | 440 - graphql/node_modules/argparse/package.json | 31 - graphql/node_modules/array-union/index.d.ts | 25 - graphql/node_modules/array-union/index.js | 5 - graphql/node_modules/array-union/license | 9 - graphql/node_modules/array-union/package.json | 38 - graphql/node_modules/array-union/readme.md | 34 - .../balanced-match/.github/FUNDING.yml | 2 - .../node_modules/balanced-match/LICENSE.md | 21 - graphql/node_modules/balanced-match/README.md | 97 - graphql/node_modules/balanced-match/index.js | 62 - .../node_modules/balanced-match/package.json | 48 - graphql/node_modules/brace-expansion/LICENSE | 21 - .../node_modules/brace-expansion/README.md | 129 - graphql/node_modules/brace-expansion/index.js | 201 - .../node_modules/brace-expansion/package.json | 47 - graphql/node_modules/braces/LICENSE | 21 - graphql/node_modules/braces/README.md | 586 - graphql/node_modules/braces/index.js | 170 - graphql/node_modules/braces/lib/compile.js | 60 - graphql/node_modules/braces/lib/constants.js | 57 - graphql/node_modules/braces/lib/expand.js | 113 - graphql/node_modules/braces/lib/parse.js | 331 - graphql/node_modules/braces/lib/stringify.js | 32 - graphql/node_modules/braces/lib/utils.js | 122 - graphql/node_modules/braces/package.json | 77 - graphql/node_modules/callsites/index.d.ts | 96 - graphql/node_modules/callsites/index.js | 13 - graphql/node_modules/callsites/license | 9 - graphql/node_modules/callsites/package.json | 39 - graphql/node_modules/callsites/readme.md | 48 - graphql/node_modules/chalk/index.d.ts | 415 - graphql/node_modules/chalk/license | 9 - graphql/node_modules/chalk/package.json | 68 - graphql/node_modules/chalk/readme.md | 341 - graphql/node_modules/chalk/source/index.js | 229 - .../node_modules/chalk/source/templates.js | 134 - graphql/node_modules/chalk/source/util.js | 39 - .../node_modules/color-convert/CHANGELOG.md | 54 - graphql/node_modules/color-convert/LICENSE | 21 - graphql/node_modules/color-convert/README.md | 68 - .../node_modules/color-convert/conversions.js | 839 - graphql/node_modules/color-convert/index.js | 81 - .../node_modules/color-convert/package.json | 48 - graphql/node_modules/color-convert/route.js | 97 - graphql/node_modules/color-name/LICENSE | 8 - graphql/node_modules/color-name/README.md | 11 - graphql/node_modules/color-name/index.js | 152 - graphql/node_modules/color-name/package.json | 28 - graphql/node_modules/concat-map/.travis.yml | 4 - graphql/node_modules/concat-map/LICENSE | 18 - .../node_modules/concat-map/README.markdown | 62 - .../node_modules/concat-map/example/map.js | 6 - graphql/node_modules/concat-map/index.js | 13 - graphql/node_modules/concat-map/package.json | 43 - graphql/node_modules/concat-map/test/map.js | 39 - graphql/node_modules/cross-spawn/CHANGELOG.md | 130 - graphql/node_modules/cross-spawn/LICENSE | 21 - graphql/node_modules/cross-spawn/README.md | 96 - graphql/node_modules/cross-spawn/index.js | 39 - .../node_modules/cross-spawn/lib/enoent.js | 59 - graphql/node_modules/cross-spawn/lib/parse.js | 91 - .../cross-spawn/lib/util/escape.js | 45 - .../cross-spawn/lib/util/readShebang.js | 23 - .../cross-spawn/lib/util/resolveCommand.js | 52 - graphql/node_modules/cross-spawn/package.json | 73 - graphql/node_modules/debug/LICENSE | 20 - graphql/node_modules/debug/README.md | 481 - graphql/node_modules/debug/package.json | 60 - graphql/node_modules/debug/src/browser.js | 271 - graphql/node_modules/debug/src/common.js | 274 - graphql/node_modules/debug/src/index.js | 10 - graphql/node_modules/debug/src/node.js | 263 - graphql/node_modules/deep-is/.travis.yml | 5 - graphql/node_modules/deep-is/LICENSE | 22 - graphql/node_modules/deep-is/README.markdown | 70 - graphql/node_modules/deep-is/example/cmp.js | 11 - graphql/node_modules/deep-is/index.js | 102 - graphql/node_modules/deep-is/package.json | 58 - graphql/node_modules/deep-is/test/NaN.js | 16 - graphql/node_modules/deep-is/test/cmp.js | 23 - .../node_modules/deep-is/test/neg-vs-pos-0.js | 15 - graphql/node_modules/dir-glob/index.js | 75 - graphql/node_modules/dir-glob/license | 9 - graphql/node_modules/dir-glob/package.json | 38 - graphql/node_modules/dir-glob/readme.md | 76 - .../escape-string-regexp/index.d.ts | 18 - .../escape-string-regexp/index.js | 13 - .../node_modules/escape-string-regexp/license | 9 - .../escape-string-regexp/package.json | 38 - .../escape-string-regexp/readme.md | 34 - graphql/node_modules/eslint-scope/LICENSE | 22 - graphql/node_modules/eslint-scope/README.md | 91 - .../eslint-scope/dist/eslint-scope.cjs | 2266 - .../eslint-scope/lib/definition.js | 85 - .../node_modules/eslint-scope/lib/index.js | 169 - .../eslint-scope/lib/pattern-visitor.js | 154 - .../eslint-scope/lib/reference.js | 166 - .../eslint-scope/lib/referencer.js | 656 - .../eslint-scope/lib/scope-manager.js | 249 - .../node_modules/eslint-scope/lib/scope.js | 793 - .../node_modules/eslint-scope/lib/variable.js | 87 - .../node_modules/eslint-scope/lib/version.js | 3 - .../node_modules/eslint-scope/package.json | 65 - .../node_modules/eslint-visitor-keys/LICENSE | 201 - .../eslint-visitor-keys/README.md | 105 - .../dist/eslint-visitor-keys.cjs | 384 - .../dist/eslint-visitor-keys.d.cts | 27 - .../eslint-visitor-keys/dist/index.d.ts | 16 - .../dist/visitor-keys.d.ts | 12 - .../eslint-visitor-keys/lib/index.js | 65 - .../eslint-visitor-keys/lib/visitor-keys.js | 315 - .../eslint-visitor-keys/package.json | 74 - graphql/node_modules/eslint/LICENSE | 19 - graphql/node_modules/eslint/README.md | 306 - graphql/node_modules/eslint/bin/eslint.js | 174 - .../eslint/conf/default-cli-options.js | 32 - .../node_modules/eslint/conf/ecma-version.js | 16 - graphql/node_modules/eslint/conf/globals.js | 160 - .../eslint/conf/replacements.json | 22 - .../eslint/conf/rule-type-list.json | 30 - graphql/node_modules/eslint/lib/api.js | 50 - .../eslint/lib/cli-engine/cli-engine.js | 1089 - .../eslint/lib/cli-engine/file-enumerator.js | 547 - .../formatters/formatters-meta.json | 18 - .../eslint/lib/cli-engine/formatters/html.js | 351 - .../formatters/json-with-metadata.js | 16 - .../eslint/lib/cli-engine/formatters/json.js | 13 - .../lib/cli-engine/formatters/stylish.js | 101 - .../eslint/lib/cli-engine/hash.js | 35 - .../eslint/lib/cli-engine/index.js | 7 - .../lib/cli-engine/lint-result-cache.js | 203 - .../eslint/lib/cli-engine/load-rules.js | 46 - graphql/node_modules/eslint/lib/cli.js | 552 - .../eslint/lib/config/default-config.js | 75 - .../eslint/lib/config/flat-config-array.js | 423 - .../eslint/lib/config/flat-config-helpers.js | 132 - .../eslint/lib/config/flat-config-schema.js | 576 - .../eslint/lib/config/rule-validator.js | 194 - .../eslint/lib/eslint/eslint-helpers.js | 975 - .../node_modules/eslint/lib/eslint/eslint.js | 1307 - .../node_modules/eslint/lib/eslint/index.js | 9 - .../eslint/lib/eslint/legacy-eslint.js | 742 - .../eslint/lib/languages/js/index.js | 252 - .../lib/languages/js/source-code/index.js | 7 - .../languages/js/source-code/source-code.js | 1318 - .../backward-token-comment-cursor.js | 57 - .../token-store/backward-token-cursor.js | 58 - .../js/source-code/token-store/cursor.js | 76 - .../js/source-code/token-store/cursors.js | 92 - .../token-store/decorative-cursor.js | 39 - .../source-code/token-store/filter-cursor.js | 43 - .../forward-token-comment-cursor.js | 57 - .../token-store/forward-token-cursor.js | 63 - .../js/source-code/token-store/index.js | 627 - .../source-code/token-store/limit-cursor.js | 40 - .../token-store/padded-token-cursor.js | 38 - .../js/source-code/token-store/skip-cursor.js | 42 - .../js/source-code/token-store/utils.js | 107 - .../languages/js/validate-language-options.js | 181 - .../lib/linter/apply-disable-directives.js | 513 - .../code-path-analysis/code-path-analyzer.js | 851 - .../code-path-analysis/code-path-segment.js | 263 - .../code-path-analysis/code-path-state.js | 2348 - .../linter/code-path-analysis/code-path.js | 344 - .../code-path-analysis/debug-helpers.js | 203 - .../linter/code-path-analysis/fork-context.js | 349 - .../linter/code-path-analysis/id-generator.js | 45 - .../lib/linter/config-comment-parser.js | 169 - .../node_modules/eslint/lib/linter/index.js | 11 - .../eslint/lib/linter/interpolate.js | 50 - .../node_modules/eslint/lib/linter/linter.js | 2410 - .../eslint/lib/linter/node-event-generator.js | 352 - .../eslint/lib/linter/report-translator.js | 376 - .../eslint/lib/linter/rule-fixer.js | 163 - .../node_modules/eslint/lib/linter/rules.js | 71 - .../eslint/lib/linter/safe-emitter.js | 52 - .../eslint/lib/linter/source-code-fixer.js | 152 - .../node_modules/eslint/lib/linter/timing.js | 169 - .../node_modules/eslint/lib/linter/vfile.js | 111 - graphql/node_modules/eslint/lib/options.js | 442 - .../eslint/lib/rule-tester/index.js | 7 - .../eslint/lib/rule-tester/rule-tester.js | 1286 - .../eslint/lib/rules/accessor-pairs.js | 346 - .../eslint/lib/rules/array-bracket-newline.js | 261 - .../eslint/lib/rules/array-bracket-spacing.js | 244 - .../eslint/lib/rules/array-callback-return.js | 446 - .../eslint/lib/rules/array-element-newline.js | 311 - .../eslint/lib/rules/arrow-body-style.js | 296 - .../eslint/lib/rules/arrow-parens.js | 186 - .../eslint/lib/rules/arrow-spacing.js | 164 - .../eslint/lib/rules/block-scoped-var.js | 135 - .../eslint/lib/rules/block-spacing.js | 174 - .../eslint/lib/rules/brace-style.js | 197 - .../eslint/lib/rules/callback-return.js | 187 - .../eslint/lib/rules/camelcase.js | 397 - .../eslint/lib/rules/capitalized-comments.js | 303 - .../lib/rules/class-methods-use-this.js | 187 - .../eslint/lib/rules/comma-dangle.js | 373 - .../eslint/lib/rules/comma-spacing.js | 192 - .../eslint/lib/rules/comma-style.js | 314 - .../eslint/lib/rules/complexity.js | 178 - .../lib/rules/computed-property-spacing.js | 208 - .../eslint/lib/rules/consistent-return.js | 210 - .../eslint/lib/rules/consistent-this.js | 153 - .../eslint/lib/rules/constructor-super.js | 445 - .../node_modules/eslint/lib/rules/curly.js | 486 - .../eslint/lib/rules/default-case-last.js | 44 - .../eslint/lib/rules/default-case.js | 97 - .../eslint/lib/rules/default-param-last.js | 62 - .../eslint/lib/rules/dot-location.js | 108 - .../eslint/lib/rules/dot-notation.js | 176 - .../node_modules/eslint/lib/rules/eol-last.js | 115 - .../node_modules/eslint/lib/rules/eqeqeq.js | 174 - .../eslint/lib/rules/for-direction.js | 140 - .../eslint/lib/rules/func-call-spacing.js | 233 - .../eslint/lib/rules/func-name-matching.js | 253 - .../eslint/lib/rules/func-names.js | 191 - .../eslint/lib/rules/func-style.js | 136 - .../rules/function-call-argument-newline.js | 125 - .../lib/rules/function-paren-newline.js | 292 - .../lib/rules/generator-star-spacing.js | 209 - .../eslint/lib/rules/getter-return.js | 204 - .../eslint/lib/rules/global-require.js | 90 - .../lib/rules/grouped-accessor-pairs.js | 215 - .../eslint/lib/rules/guard-for-in.js | 76 - .../eslint/lib/rules/handle-callback-err.js | 101 - .../eslint/lib/rules/id-blacklist.js | 246 - .../eslint/lib/rules/id-denylist.js | 228 - .../eslint/lib/rules/id-length.js | 177 - .../node_modules/eslint/lib/rules/id-match.js | 299 - .../lib/rules/implicit-arrow-linebreak.js | 84 - .../eslint/lib/rules/indent-legacy.js | 1126 - .../node_modules/eslint/lib/rules/indent.js | 1803 - .../node_modules/eslint/lib/rules/index.js | 305 - .../eslint/lib/rules/init-declarations.js | 139 - .../eslint/lib/rules/jsx-quotes.js | 98 - .../eslint/lib/rules/key-spacing.js | 687 - .../eslint/lib/rules/keyword-spacing.js | 640 - .../eslint/lib/rules/line-comment-position.js | 125 - .../eslint/lib/rules/linebreak-style.js | 108 - .../eslint/lib/rules/lines-around-comment.js | 471 - .../lib/rules/lines-around-directive.js | 201 - .../lib/rules/lines-between-class-members.js | 269 - .../lib/rules/logical-assignment-operators.js | 504 - .../eslint/lib/rules/max-classes-per-file.js | 89 - .../eslint/lib/rules/max-depth.js | 156 - .../node_modules/eslint/lib/rules/max-len.js | 440 - .../lib/rules/max-lines-per-function.js | 213 - .../eslint/lib/rules/max-lines.js | 193 - .../eslint/lib/rules/max-nested-callbacks.js | 117 - .../eslint/lib/rules/max-params.js | 102 - .../lib/rules/max-statements-per-line.js | 199 - .../eslint/lib/rules/max-statements.js | 184 - .../lib/rules/multiline-comment-style.js | 476 - .../eslint/lib/rules/multiline-ternary.js | 174 - .../node_modules/eslint/lib/rules/new-cap.js | 276 - .../eslint/lib/rules/new-parens.js | 93 - .../eslint/lib/rules/newline-after-var.js | 253 - .../eslint/lib/rules/newline-before-return.js | 217 - .../lib/rules/newline-per-chained-call.js | 126 - .../node_modules/eslint/lib/rules/no-alert.js | 138 - .../eslint/lib/rules/no-array-constructor.js | 133 - .../lib/rules/no-async-promise-executor.js | 39 - .../eslint/lib/rules/no-await-in-loop.js | 106 - .../eslint/lib/rules/no-bitwise.js | 119 - .../eslint/lib/rules/no-buffer-constructor.js | 50 - .../eslint/lib/rules/no-caller.js | 46 - .../eslint/lib/rules/no-case-declarations.js | 76 - .../eslint/lib/rules/no-catch-shadow.js | 82 - .../eslint/lib/rules/no-class-assign.js | 63 - .../eslint/lib/rules/no-compare-neg-zero.js | 60 - .../eslint/lib/rules/no-cond-assign.js | 159 - .../eslint/lib/rules/no-confusing-arrow.js | 92 - .../eslint/lib/rules/no-console.js | 207 - .../eslint/lib/rules/no-const-assign.js | 56 - .../rules/no-constant-binary-expression.js | 508 - .../eslint/lib/rules/no-constant-condition.js | 161 - .../eslint/lib/rules/no-constructor-return.js | 62 - .../eslint/lib/rules/no-continue.js | 39 - .../eslint/lib/rules/no-control-regex.js | 138 - .../eslint/lib/rules/no-debugger.js | 43 - .../eslint/lib/rules/no-delete-var.js | 42 - .../eslint/lib/rules/no-div-regex.js | 53 - .../eslint/lib/rules/no-dupe-args.js | 82 - .../eslint/lib/rules/no-dupe-class-members.js | 104 - .../eslint/lib/rules/no-dupe-else-if.js | 122 - .../eslint/lib/rules/no-dupe-keys.js | 142 - .../eslint/lib/rules/no-duplicate-case.js | 71 - .../eslint/lib/rules/no-duplicate-imports.js | 290 - .../eslint/lib/rules/no-else-return.js | 405 - .../lib/rules/no-empty-character-class.js | 76 - .../eslint/lib/rules/no-empty-function.js | 167 - .../eslint/lib/rules/no-empty-pattern.js | 78 - .../eslint/lib/rules/no-empty-static-block.js | 47 - .../node_modules/eslint/lib/rules/no-empty.js | 103 - .../eslint/lib/rules/no-eq-null.js | 46 - .../node_modules/eslint/lib/rules/no-eval.js | 286 - .../eslint/lib/rules/no-ex-assign.js | 54 - .../eslint/lib/rules/no-extend-native.js | 178 - .../eslint/lib/rules/no-extra-bind.js | 213 - .../eslint/lib/rules/no-extra-boolean-cast.js | 369 - .../eslint/lib/rules/no-extra-label.js | 149 - .../eslint/lib/rules/no-extra-parens.js | 1322 - .../eslint/lib/rules/no-extra-semi.js | 147 - .../eslint/lib/rules/no-fallthrough.js | 221 - .../eslint/lib/rules/no-floating-decimal.js | 73 - .../eslint/lib/rules/no-func-assign.js | 78 - .../eslint/lib/rules/no-global-assign.js | 95 - .../eslint/lib/rules/no-implicit-coercion.js | 422 - .../eslint/lib/rules/no-implicit-globals.js | 146 - .../eslint/lib/rules/no-implied-eval.js | 132 - .../eslint/lib/rules/no-import-assign.js | 241 - .../eslint/lib/rules/no-inline-comments.js | 110 - .../eslint/lib/rules/no-inner-declarations.js | 131 - .../eslint/lib/rules/no-invalid-regexp.js | 194 - .../eslint/lib/rules/no-invalid-this.js | 150 - .../lib/rules/no-irregular-whitespace.js | 276 - .../eslint/lib/rules/no-iterator.js | 52 - .../eslint/lib/rules/no-label-var.js | 80 - .../eslint/lib/rules/no-labels.js | 149 - .../eslint/lib/rules/no-lone-blocks.js | 136 - .../eslint/lib/rules/no-lonely-if.js | 88 - .../eslint/lib/rules/no-loop-func.js | 238 - .../eslint/lib/rules/no-loss-of-precision.js | 214 - .../eslint/lib/rules/no-magic-numbers.js | 243 - .../rules/no-misleading-character-class.js | 537 - .../eslint/lib/rules/no-mixed-operators.js | 229 - .../eslint/lib/rules/no-mixed-requires.js | 238 - .../lib/rules/no-mixed-spaces-and-tabs.js | 116 - .../eslint/lib/rules/no-multi-assign.js | 67 - .../eslint/lib/rules/no-multi-spaces.js | 141 - .../eslint/lib/rules/no-multi-str.js | 65 - .../lib/rules/no-multiple-empty-lines.js | 154 - .../eslint/lib/rules/no-native-reassign.js | 98 - .../eslint/lib/rules/no-negated-condition.js | 95 - .../eslint/lib/rules/no-negated-in-lhs.js | 46 - .../eslint/lib/rules/no-nested-ternary.js | 44 - .../eslint/lib/rules/no-new-func.js | 87 - .../lib/rules/no-new-native-nonconstructor.js | 66 - .../eslint/lib/rules/no-new-object.js | 67 - .../eslint/lib/rules/no-new-require.js | 50 - .../eslint/lib/rules/no-new-symbol.js | 63 - .../eslint/lib/rules/no-new-wrappers.js | 60 - .../node_modules/eslint/lib/rules/no-new.js | 43 - .../lib/rules/no-nonoctal-decimal-escape.js | 148 - .../eslint/lib/rules/no-obj-calls.js | 86 - .../eslint/lib/rules/no-object-constructor.js | 117 - .../eslint/lib/rules/no-octal-escape.js | 56 - .../node_modules/eslint/lib/rules/no-octal.js | 45 - .../eslint/lib/rules/no-param-reassign.js | 230 - .../eslint/lib/rules/no-path-concat.js | 64 - .../eslint/lib/rules/no-plusplus.js | 105 - .../eslint/lib/rules/no-process-env.js | 51 - .../eslint/lib/rules/no-process-exit.js | 47 - .../lib/rules/no-promise-executor-return.js | 263 - .../node_modules/eslint/lib/rules/no-proto.js | 48 - .../eslint/lib/rules/no-prototype-builtins.js | 159 - .../eslint/lib/rules/no-redeclare.js | 174 - .../eslint/lib/rules/no-regex-spaces.js | 197 - .../eslint/lib/rules/no-restricted-exports.js | 204 - .../eslint/lib/rules/no-restricted-globals.js | 124 - .../eslint/lib/rules/no-restricted-imports.js | 563 - .../eslint/lib/rules/no-restricted-modules.js | 213 - .../lib/rules/no-restricted-properties.js | 168 - .../eslint/lib/rules/no-restricted-syntax.js | 70 - .../eslint/lib/rules/no-return-assign.js | 80 - .../eslint/lib/rules/no-return-await.js | 135 - .../eslint/lib/rules/no-script-url.js | 61 - .../eslint/lib/rules/no-self-assign.js | 183 - .../eslint/lib/rules/no-self-compare.js | 60 - .../eslint/lib/rules/no-sequences.js | 139 - .../eslint/lib/rules/no-setter-return.js | 226 - .../lib/rules/no-shadow-restricted-names.js | 65 - .../eslint/lib/rules/no-shadow.js | 336 - .../eslint/lib/rules/no-spaced-func.js | 83 - .../eslint/lib/rules/no-sparse-arrays.js | 73 - .../node_modules/eslint/lib/rules/no-sync.js | 64 - .../node_modules/eslint/lib/rules/no-tabs.js | 81 - .../lib/rules/no-template-curly-in-string.js | 44 - .../eslint/lib/rules/no-ternary.js | 41 - .../eslint/lib/rules/no-this-before-super.js | 363 - .../eslint/lib/rules/no-throw-literal.js | 51 - .../eslint/lib/rules/no-trailing-spaces.js | 192 - .../eslint/lib/rules/no-undef-init.js | 75 - .../node_modules/eslint/lib/rules/no-undef.js | 79 - .../eslint/lib/rules/no-undefined.js | 86 - .../eslint/lib/rules/no-underscore-dangle.js | 335 - .../lib/rules/no-unexpected-multiline.js | 120 - .../lib/rules/no-unmodified-loop-condition.js | 360 - .../eslint/lib/rules/no-unneeded-ternary.js | 166 - .../eslint/lib/rules/no-unreachable-loop.js | 185 - .../eslint/lib/rules/no-unreachable.js | 293 - .../eslint/lib/rules/no-unsafe-finally.js | 111 - .../eslint/lib/rules/no-unsafe-negation.js | 128 - .../lib/rules/no-unsafe-optional-chaining.js | 205 - .../eslint/lib/rules/no-unused-expressions.js | 186 - .../eslint/lib/rules/no-unused-labels.js | 143 - .../rules/no-unused-private-class-members.js | 195 - .../eslint/lib/rules/no-unused-vars.js | 881 - .../eslint/lib/rules/no-use-before-define.js | 348 - .../eslint/lib/rules/no-useless-assignment.js | 566 - .../lib/rules/no-useless-backreference.js | 244 - .../eslint/lib/rules/no-useless-call.js | 90 - .../eslint/lib/rules/no-useless-catch.js | 57 - .../lib/rules/no-useless-computed-key.js | 168 - .../eslint/lib/rules/no-useless-concat.js | 115 - .../lib/rules/no-useless-constructor.js | 189 - .../eslint/lib/rules/no-useless-escape.js | 333 - .../eslint/lib/rules/no-useless-rename.js | 172 - .../eslint/lib/rules/no-useless-return.js | 369 - .../node_modules/eslint/lib/rules/no-var.js | 334 - .../node_modules/eslint/lib/rules/no-void.js | 64 - .../eslint/lib/rules/no-warning-comments.js | 201 - .../rules/no-whitespace-before-property.js | 116 - .../node_modules/eslint/lib/rules/no-with.js | 39 - .../rules/nonblock-statement-body-position.js | 127 - .../eslint/lib/rules/object-curly-newline.js | 324 - .../eslint/lib/rules/object-curly-spacing.js | 311 - .../lib/rules/object-property-newline.js | 102 - .../eslint/lib/rules/object-shorthand.js | 521 - .../lib/rules/one-var-declaration-per-line.js | 95 - .../node_modules/eslint/lib/rules/one-var.js | 567 - .../eslint/lib/rules/operator-assignment.js | 209 - .../eslint/lib/rules/operator-linebreak.js | 253 - .../eslint/lib/rules/padded-blocks.js | 310 - .../rules/padding-line-between-statements.js | 590 - .../eslint/lib/rules/prefer-arrow-callback.js | 381 - .../eslint/lib/rules/prefer-const.js | 501 - .../eslint/lib/rules/prefer-destructuring.js | 301 - .../rules/prefer-exponentiation-operator.js | 191 - .../lib/rules/prefer-named-capture-group.js | 178 - .../lib/rules/prefer-numeric-literals.js | 148 - .../eslint/lib/rules/prefer-object-has-own.js | 114 - .../eslint/lib/rules/prefer-object-spread.js | 298 - .../lib/rules/prefer-promise-reject-errors.js | 132 - .../eslint/lib/rules/prefer-reflect.js | 127 - .../eslint/lib/rules/prefer-regex-literals.js | 507 - .../eslint/lib/rules/prefer-rest-params.js | 118 - .../eslint/lib/rules/prefer-spread.js | 87 - .../eslint/lib/rules/prefer-template.js | 275 - .../eslint/lib/rules/quote-props.js | 310 - .../node_modules/eslint/lib/rules/quotes.js | 350 - .../node_modules/eslint/lib/rules/radix.js | 198 - .../lib/rules/require-atomic-updates.js | 331 - .../eslint/lib/rules/require-await.js | 147 - .../lib/rules/require-unicode-regexp.js | 129 - .../eslint/lib/rules/require-yield.js | 77 - .../eslint/lib/rules/rest-spread-spacing.js | 123 - .../eslint/lib/rules/semi-spacing.js | 248 - .../eslint/lib/rules/semi-style.js | 158 - graphql/node_modules/eslint/lib/rules/semi.js | 438 - .../eslint/lib/rules/sort-imports.js | 241 - .../eslint/lib/rules/sort-keys.js | 230 - .../eslint/lib/rules/sort-vars.js | 104 - .../eslint/lib/rules/space-before-blocks.js | 204 - .../lib/rules/space-before-function-paren.js | 167 - .../eslint/lib/rules/space-in-parens.js | 285 - .../eslint/lib/rules/space-infix-ops.js | 198 - .../eslint/lib/rules/space-unary-ops.js | 324 - .../eslint/lib/rules/spaced-comment.js | 385 - .../node_modules/eslint/lib/rules/strict.js | 277 - .../eslint/lib/rules/switch-colon-spacing.js | 132 - .../eslint/lib/rules/symbol-description.js | 73 - .../lib/rules/template-curly-spacing.js | 144 - .../eslint/lib/rules/template-tag-spacing.js | 93 - .../eslint/lib/rules/unicode-bom.js | 73 - .../eslint/lib/rules/use-isnan.js | 235 - .../eslint/lib/rules/utils/ast-utils.js | 2292 - .../eslint/lib/rules/utils/char-source.js | 240 - .../eslint/lib/rules/utils/fix-tracker.js | 114 - .../eslint/lib/rules/utils/keywords.js | 67 - .../lib/rules/utils/lazy-loading-rule-map.js | 115 - .../lib/rules/utils/regular-expressions.js | 42 - .../eslint/lib/rules/utils/unicode/index.js | 16 - .../utils/unicode/is-combining-character.js | 13 - .../rules/utils/unicode/is-emoji-modifier.js | 13 - .../unicode/is-regional-indicator-symbol.js | 13 - .../rules/utils/unicode/is-surrogate-pair.js | 14 - .../eslint/lib/rules/valid-typeof.js | 127 - .../eslint/lib/rules/vars-on-top.js | 157 - .../eslint/lib/rules/wrap-iife.js | 207 - .../eslint/lib/rules/wrap-regex.js | 61 - .../eslint/lib/rules/yield-star-spacing.js | 130 - graphql/node_modules/eslint/lib/rules/yoda.js | 353 - graphql/node_modules/eslint/lib/shared/ajv.js | 34 - .../eslint/lib/shared/ast-utils.js | 29 - .../eslint/lib/shared/directives.js | 15 - .../node_modules/eslint/lib/shared/flags.js | 27 - .../node_modules/eslint/lib/shared/logging.js | 39 - .../eslint/lib/shared/runtime-info.js | 168 - .../eslint/lib/shared/serialization.js | 55 - .../eslint/lib/shared/severity.js | 49 - .../node_modules/eslint/lib/shared/stats.js | 30 - .../eslint/lib/shared/string-utils.js | 58 - .../eslint/lib/shared/traverser.js | 195 - .../node_modules/eslint/lib/shared/types.js | 250 - .../eslint/lib/unsupported-api.js | 28 - .../eslint/messages/all-files-ignored.js | 16 - .../messages/all-matched-files-ignored.js | 21 - .../eslint/messages/config-file-missing.js | 16 - .../eslint/messages/eslintrc-incompat.js | 119 - .../eslint/messages/eslintrc-plugins.js | 24 - .../eslint/messages/extend-config-missing.js | 13 - .../eslint/messages/failed-to-read-json.js | 11 - .../eslint/messages/file-not-found.js | 10 - .../eslint/messages/invalid-rule-options.js | 17 - .../eslint/messages/invalid-rule-severity.js | 13 - .../eslint/messages/no-config-found.js | 15 - .../eslint/messages/plugin-conflict.js | 22 - .../eslint/messages/plugin-invalid.js | 16 - .../eslint/messages/plugin-missing.js | 19 - .../print-config-with-directory-path.js | 8 - .../node_modules/eslint/messages/shared.js | 18 - .../eslint/messages/whitespace-found.js | 11 - graphql/node_modules/eslint/package.json | 188 - graphql/node_modules/espree/LICENSE | 25 - graphql/node_modules/espree/README.md | 244 - graphql/node_modules/espree/dist/espree.cjs | 939 - graphql/node_modules/espree/espree.js | 174 - graphql/node_modules/espree/lib/espree.js | 349 - graphql/node_modules/espree/lib/features.js | 27 - graphql/node_modules/espree/lib/options.js | 124 - .../espree/lib/token-translator.js | 263 - graphql/node_modules/espree/lib/version.js | 3 - graphql/node_modules/espree/package.json | 86 - graphql/node_modules/esquery/README.md | 27 - .../node_modules/esquery/dist/esquery.esm.js | 4172 - .../esquery/dist/esquery.esm.min.js | 2 - .../esquery/dist/esquery.esm.min.js.map | 1 - graphql/node_modules/esquery/dist/esquery.js | 4180 - .../node_modules/esquery/dist/esquery.lite.js | 3470 - .../esquery/dist/esquery.lite.min.js | 2 - .../esquery/dist/esquery.lite.min.js.map | 1 - .../node_modules/esquery/dist/esquery.min.js | 2 - .../esquery/dist/esquery.min.js.map | 1 - graphql/node_modules/esquery/license.txt | 24 - graphql/node_modules/esquery/package.json | 78 - graphql/node_modules/esquery/parser.js | 2694 - graphql/node_modules/esrecurse/.babelrc | 3 - graphql/node_modules/esrecurse/README.md | 171 - graphql/node_modules/esrecurse/esrecurse.js | 117 - .../node_modules/esrecurse/gulpfile.babel.js | 92 - graphql/node_modules/esrecurse/package.json | 52 - graphql/node_modules/estraverse/.jshintrc | 16 - graphql/node_modules/estraverse/LICENSE.BSD | 19 - graphql/node_modules/estraverse/README.md | 153 - graphql/node_modules/estraverse/estraverse.js | 805 - graphql/node_modules/estraverse/gulpfile.js | 70 - graphql/node_modules/estraverse/package.json | 40 - graphql/node_modules/esutils/LICENSE.BSD | 19 - graphql/node_modules/esutils/README.md | 174 - graphql/node_modules/esutils/lib/ast.js | 144 - graphql/node_modules/esutils/lib/code.js | 135 - graphql/node_modules/esutils/lib/keyword.js | 165 - graphql/node_modules/esutils/lib/utils.js | 33 - graphql/node_modules/esutils/package.json | 44 - graphql/node_modules/fast-deep-equal/LICENSE | 21 - .../node_modules/fast-deep-equal/README.md | 96 - .../fast-deep-equal/es6/index.d.ts | 2 - .../node_modules/fast-deep-equal/es6/index.js | 72 - .../fast-deep-equal/es6/react.d.ts | 2 - .../node_modules/fast-deep-equal/es6/react.js | 79 - .../node_modules/fast-deep-equal/index.d.ts | 4 - graphql/node_modules/fast-deep-equal/index.js | 46 - .../node_modules/fast-deep-equal/package.json | 61 - .../node_modules/fast-deep-equal/react.d.ts | 2 - graphql/node_modules/fast-deep-equal/react.js | 53 - graphql/node_modules/fast-glob/LICENSE | 21 - graphql/node_modules/fast-glob/README.md | 830 - .../node_modules/glob-parent/CHANGELOG.md | 110 - .../node_modules/glob-parent/LICENSE | 15 - .../node_modules/glob-parent/README.md | 137 - .../node_modules/glob-parent/index.js | 42 - .../node_modules/glob-parent/package.json | 48 - graphql/node_modules/fast-glob/out/index.d.ts | 40 - graphql/node_modules/fast-glob/out/index.js | 102 - .../fast-glob/out/managers/tasks.d.ts | 22 - .../fast-glob/out/managers/tasks.js | 110 - .../fast-glob/out/providers/async.d.ts | 9 - .../fast-glob/out/providers/async.js | 23 - .../fast-glob/out/providers/filters/deep.d.ts | 16 - .../fast-glob/out/providers/filters/deep.js | 62 - .../out/providers/filters/entry.d.ts | 16 - .../fast-glob/out/providers/filters/entry.js | 63 - .../out/providers/filters/error.d.ts | 8 - .../fast-glob/out/providers/filters/error.js | 15 - .../out/providers/matchers/matcher.d.ts | 33 - .../out/providers/matchers/matcher.js | 45 - .../out/providers/matchers/partial.d.ts | 4 - .../out/providers/matchers/partial.js | 38 - .../fast-glob/out/providers/provider.d.ts | 19 - .../fast-glob/out/providers/provider.js | 48 - .../fast-glob/out/providers/stream.d.ts | 11 - .../fast-glob/out/providers/stream.js | 31 - .../fast-glob/out/providers/sync.d.ts | 9 - .../fast-glob/out/providers/sync.js | 23 - .../out/providers/transformers/entry.d.ts | 8 - .../out/providers/transformers/entry.js | 26 - .../fast-glob/out/readers/async.d.ts | 10 - .../fast-glob/out/readers/async.js | 35 - .../fast-glob/out/readers/reader.d.ts | 15 - .../fast-glob/out/readers/reader.js | 33 - .../fast-glob/out/readers/stream.d.ts | 14 - .../fast-glob/out/readers/stream.js | 55 - .../fast-glob/out/readers/sync.d.ts | 12 - .../fast-glob/out/readers/sync.js | 43 - .../node_modules/fast-glob/out/settings.d.ts | 164 - .../node_modules/fast-glob/out/settings.js | 59 - .../fast-glob/out/types/index.d.ts | 31 - .../node_modules/fast-glob/out/types/index.js | 2 - .../fast-glob/out/utils/array.d.ts | 2 - .../node_modules/fast-glob/out/utils/array.js | 22 - .../fast-glob/out/utils/errno.d.ts | 2 - .../node_modules/fast-glob/out/utils/errno.js | 7 - .../node_modules/fast-glob/out/utils/fs.d.ts | 4 - .../node_modules/fast-glob/out/utils/fs.js | 19 - .../fast-glob/out/utils/index.d.ts | 8 - .../node_modules/fast-glob/out/utils/index.js | 17 - .../fast-glob/out/utils/path.d.ts | 13 - .../node_modules/fast-glob/out/utils/path.js | 68 - .../fast-glob/out/utils/pattern.d.ts | 47 - .../fast-glob/out/utils/pattern.js | 188 - .../fast-glob/out/utils/stream.d.ts | 4 - .../fast-glob/out/utils/stream.js | 17 - .../fast-glob/out/utils/string.d.ts | 2 - .../fast-glob/out/utils/string.js | 11 - graphql/node_modules/fast-glob/package.json | 81 - .../fast-json-stable-stringify/.eslintrc.yml | 26 - .../.github/FUNDING.yml | 1 - .../fast-json-stable-stringify/.travis.yml | 8 - .../fast-json-stable-stringify/LICENSE | 21 - .../fast-json-stable-stringify/README.md | 131 - .../benchmark/index.js | 31 - .../benchmark/test.json | 137 - .../example/key_cmp.js | 7 - .../example/nested.js | 3 - .../fast-json-stable-stringify/example/str.js | 3 - .../example/value_cmp.js | 7 - .../fast-json-stable-stringify/index.d.ts | 4 - .../fast-json-stable-stringify/index.js | 59 - .../fast-json-stable-stringify/package.json | 52 - .../fast-json-stable-stringify/test/cmp.js | 13 - .../fast-json-stable-stringify/test/nested.js | 44 - .../fast-json-stable-stringify/test/str.js | 46 - .../test/to-json.js | 22 - .../node_modules/fast-levenshtein/LICENSE.md | 25 - .../node_modules/fast-levenshtein/README.md | 104 - .../fast-levenshtein/levenshtein.js | 136 - .../fast-levenshtein/package.json | 39 - .../node_modules/fastq/.github/dependabot.yml | 11 - .../fastq/.github/workflows/ci.yml | 75 - graphql/node_modules/fastq/LICENSE | 13 - graphql/node_modules/fastq/README.md | 306 - graphql/node_modules/fastq/bench.js | 66 - graphql/node_modules/fastq/example.js | 14 - graphql/node_modules/fastq/example.mjs | 11 - graphql/node_modules/fastq/index.d.ts | 38 - graphql/node_modules/fastq/package.json | 53 - graphql/node_modules/fastq/queue.js | 311 - graphql/node_modules/fastq/test/example.ts | 83 - graphql/node_modules/fastq/test/promise.js | 248 - graphql/node_modules/fastq/test/test.js | 642 - graphql/node_modules/fastq/test/tsconfig.json | 11 - graphql/node_modules/file-entry-cache/LICENSE | 22 - .../node_modules/file-entry-cache/README.md | 115 - .../node_modules/file-entry-cache/cache.js | 291 - .../file-entry-cache/package.json | 56 - graphql/node_modules/fill-range/LICENSE | 21 - graphql/node_modules/fill-range/README.md | 237 - graphql/node_modules/fill-range/index.js | 248 - graphql/node_modules/fill-range/package.json | 74 - graphql/node_modules/find-up/index.d.ts | 138 - graphql/node_modules/find-up/index.js | 89 - graphql/node_modules/find-up/license | 9 - graphql/node_modules/find-up/package.json | 54 - graphql/node_modules/find-up/readme.md | 151 - graphql/node_modules/flat-cache/LICENSE | 22 - graphql/node_modules/flat-cache/README.md | 77 - graphql/node_modules/flat-cache/changelog.md | 278 - graphql/node_modules/flat-cache/package.json | 63 - graphql/node_modules/flat-cache/src/cache.js | 214 - graphql/node_modules/flat-cache/src/del.js | 30 - graphql/node_modules/flat-cache/src/utils.js | 42 - graphql/node_modules/flatted/LICENSE | 15 - graphql/node_modules/flatted/README.md | 115 - graphql/node_modules/flatted/cjs/index.js | 125 - graphql/node_modules/flatted/cjs/package.json | 1 - graphql/node_modules/flatted/es.js | 1 - graphql/node_modules/flatted/esm.js | 1 - graphql/node_modules/flatted/esm/index.js | 120 - graphql/node_modules/flatted/index.js | 146 - graphql/node_modules/flatted/min.js | 1 - graphql/node_modules/flatted/package.json | 65 - graphql/node_modules/flatted/php/flatted.php | 156 - .../__pycache__/flatted.cpython-311.pyc | Bin 6741 -> 0 bytes .../node_modules/flatted/python/flatted.py | 149 - graphql/node_modules/flatted/python/test.py | 63 - graphql/node_modules/flatted/types/index.d.ts | 4 - graphql/node_modules/glob-parent/LICENSE | 15 - graphql/node_modules/glob-parent/README.md | 134 - graphql/node_modules/glob-parent/index.js | 75 - graphql/node_modules/glob-parent/package.json | 54 - graphql/node_modules/globals/globals.json | 2933 - graphql/node_modules/globals/index.d.ts | 3028 - graphql/node_modules/globals/index.js | 2 - graphql/node_modules/globals/license | 9 - graphql/node_modules/globals/package.json | 90 - graphql/node_modules/globals/readme.md | 42 - graphql/node_modules/globby/gitignore.js | 120 - graphql/node_modules/globby/index.d.ts | 186 - graphql/node_modules/globby/index.js | 181 - graphql/node_modules/globby/license | 9 - graphql/node_modules/globby/package.json | 82 - graphql/node_modules/globby/readme.md | 170 - graphql/node_modules/globby/stream-utils.js | 46 - graphql/node_modules/graphemer/CHANGELOG.md | 30 - graphql/node_modules/graphemer/LICENSE | 18 - graphql/node_modules/graphemer/README.md | 132 - .../node_modules/graphemer/lib/Graphemer.d.ts | 41 - .../graphemer/lib/Graphemer.d.ts.map | 1 - .../node_modules/graphemer/lib/Graphemer.js | 11959 - .../graphemer/lib/GraphemerHelper.d.ts | 32 - .../graphemer/lib/GraphemerHelper.d.ts.map | 1 - .../graphemer/lib/GraphemerHelper.js | 169 - .../graphemer/lib/GraphemerIterator.d.ts | 22 - .../graphemer/lib/GraphemerIterator.d.ts.map | 1 - .../graphemer/lib/GraphemerIterator.js | 36 - .../graphemer/lib/boundaries.d.ts | 35 - .../graphemer/lib/boundaries.d.ts.map | 1 - .../node_modules/graphemer/lib/boundaries.js | 38 - graphql/node_modules/graphemer/lib/index.d.ts | 3 - .../node_modules/graphemer/lib/index.d.ts.map | 1 - graphql/node_modules/graphemer/lib/index.js | 7 - graphql/node_modules/graphemer/package.json | 54 - graphql/node_modules/has-flag/index.d.ts | 39 - graphql/node_modules/has-flag/index.js | 8 - graphql/node_modules/has-flag/license | 9 - graphql/node_modules/has-flag/package.json | 46 - graphql/node_modules/has-flag/readme.md | 89 - graphql/node_modules/ignore/LICENSE-MIT | 21 - graphql/node_modules/ignore/README.md | 412 - graphql/node_modules/ignore/index.d.ts | 61 - graphql/node_modules/ignore/index.js | 636 - graphql/node_modules/ignore/legacy.js | 559 - graphql/node_modules/ignore/package.json | 74 - graphql/node_modules/import-fresh/index.d.ts | 30 - graphql/node_modules/import-fresh/index.js | 33 - graphql/node_modules/import-fresh/license | 9 - .../node_modules/import-fresh/package.json | 43 - graphql/node_modules/import-fresh/readme.md | 48 - graphql/node_modules/imurmurhash/README.md | 122 - .../node_modules/imurmurhash/imurmurhash.js | 138 - .../imurmurhash/imurmurhash.min.js | 12 - graphql/node_modules/imurmurhash/package.json | 40 - graphql/node_modules/is-extglob/LICENSE | 21 - graphql/node_modules/is-extglob/README.md | 107 - graphql/node_modules/is-extglob/index.js | 20 - graphql/node_modules/is-extglob/package.json | 69 - graphql/node_modules/is-glob/LICENSE | 21 - graphql/node_modules/is-glob/README.md | 206 - graphql/node_modules/is-glob/index.js | 150 - graphql/node_modules/is-glob/package.json | 81 - graphql/node_modules/is-number/LICENSE | 21 - graphql/node_modules/is-number/README.md | 187 - graphql/node_modules/is-number/index.js | 18 - graphql/node_modules/is-number/package.json | 82 - .../node_modules/is-path-inside/index.d.ts | 27 - graphql/node_modules/is-path-inside/index.js | 12 - graphql/node_modules/is-path-inside/license | 9 - .../node_modules/is-path-inside/package.json | 36 - graphql/node_modules/is-path-inside/readme.md | 63 - graphql/node_modules/isexe/.npmignore | 2 - graphql/node_modules/isexe/LICENSE | 15 - graphql/node_modules/isexe/README.md | 51 - graphql/node_modules/isexe/index.js | 57 - graphql/node_modules/isexe/mode.js | 41 - graphql/node_modules/isexe/package.json | 31 - graphql/node_modules/isexe/test/basic.js | 221 - graphql/node_modules/isexe/windows.js | 42 - graphql/node_modules/js-yaml/CHANGELOG.md | 616 - graphql/node_modules/js-yaml/LICENSE | 21 - graphql/node_modules/js-yaml/README.md | 246 - graphql/node_modules/js-yaml/bin/js-yaml.js | 126 - graphql/node_modules/js-yaml/dist/js-yaml.js | 3874 - .../node_modules/js-yaml/dist/js-yaml.min.js | 2 - graphql/node_modules/js-yaml/dist/js-yaml.mjs | 3851 - graphql/node_modules/js-yaml/index.js | 47 - graphql/node_modules/js-yaml/lib/common.js | 59 - graphql/node_modules/js-yaml/lib/dumper.js | 965 - graphql/node_modules/js-yaml/lib/exception.js | 55 - graphql/node_modules/js-yaml/lib/loader.js | 1727 - graphql/node_modules/js-yaml/lib/schema.js | 121 - .../node_modules/js-yaml/lib/schema/core.js | 11 - .../js-yaml/lib/schema/default.js | 22 - .../js-yaml/lib/schema/failsafe.js | 17 - .../node_modules/js-yaml/lib/schema/json.js | 19 - graphql/node_modules/js-yaml/lib/snippet.js | 101 - graphql/node_modules/js-yaml/lib/type.js | 66 - .../node_modules/js-yaml/lib/type/binary.js | 125 - graphql/node_modules/js-yaml/lib/type/bool.js | 35 - .../node_modules/js-yaml/lib/type/float.js | 97 - graphql/node_modules/js-yaml/lib/type/int.js | 156 - graphql/node_modules/js-yaml/lib/type/map.js | 8 - .../node_modules/js-yaml/lib/type/merge.js | 12 - graphql/node_modules/js-yaml/lib/type/null.js | 35 - graphql/node_modules/js-yaml/lib/type/omap.js | 44 - .../node_modules/js-yaml/lib/type/pairs.js | 53 - graphql/node_modules/js-yaml/lib/type/seq.js | 8 - graphql/node_modules/js-yaml/lib/type/set.js | 29 - graphql/node_modules/js-yaml/lib/type/str.js | 8 - .../js-yaml/lib/type/timestamp.js | 88 - graphql/node_modules/js-yaml/package.json | 66 - graphql/node_modules/json-buffer/.travis.yml | 3 - graphql/node_modules/json-buffer/LICENSE | 22 - graphql/node_modules/json-buffer/README.md | 24 - graphql/node_modules/json-buffer/index.js | 58 - graphql/node_modules/json-buffer/package.json | 34 - .../node_modules/json-buffer/test/index.js | 63 - .../json-schema-traverse/.eslintrc.yml | 27 - .../json-schema-traverse/.travis.yml | 8 - .../node_modules/json-schema-traverse/LICENSE | 21 - .../json-schema-traverse/README.md | 83 - .../json-schema-traverse/index.js | 89 - .../json-schema-traverse/package.json | 43 - .../json-schema-traverse/spec/.eslintrc.yml | 6 - .../spec/fixtures/schema.js | 125 - .../json-schema-traverse/spec/index.spec.js | 171 - .../.npmignore | 1 - .../.travis.yml | 4 - .../LICENSE | 18 - .../example/key_cmp.js | 7 - .../example/nested.js | 3 - .../example/str.js | 3 - .../example/value_cmp.js | 7 - .../index.js | 82 - .../package.json | 43 - .../readme.markdown | 132 - .../test/cmp.js | 11 - .../test/nested.js | 42 - .../test/replacer.js | 74 - .../test/space.js | 59 - .../test/str.js | 32 - .../test/to-json.js | 20 - graphql/node_modules/keyv/README.md | 429 - graphql/node_modules/keyv/package.json | 57 - graphql/node_modules/keyv/src/index.d.ts | 112 - graphql/node_modules/keyv/src/index.js | 259 - graphql/node_modules/levn/LICENSE | 22 - graphql/node_modules/levn/README.md | 196 - graphql/node_modules/levn/lib/cast.js | 327 - graphql/node_modules/levn/lib/index.js | 22 - graphql/node_modules/levn/lib/parse-string.js | 113 - graphql/node_modules/levn/package.json | 46 - graphql/node_modules/locate-path/index.d.ts | 83 - graphql/node_modules/locate-path/index.js | 68 - graphql/node_modules/locate-path/license | 9 - graphql/node_modules/locate-path/package.json | 46 - graphql/node_modules/locate-path/readme.md | 125 - graphql/node_modules/lodash.merge/LICENSE | 47 - graphql/node_modules/lodash.merge/README.md | 18 - graphql/node_modules/lodash.merge/index.js | 1977 - .../node_modules/lodash.merge/package.json | 16 - graphql/node_modules/merge2/LICENSE | 21 - graphql/node_modules/merge2/README.md | 144 - graphql/node_modules/merge2/index.js | 144 - graphql/node_modules/merge2/package.json | 43 - graphql/node_modules/micromatch/LICENSE | 21 - graphql/node_modules/micromatch/README.md | 1017 - graphql/node_modules/micromatch/index.js | 467 - graphql/node_modules/micromatch/package.json | 101 - graphql/node_modules/minimatch/LICENSE | 15 - graphql/node_modules/minimatch/README.md | 230 - graphql/node_modules/minimatch/minimatch.js | 947 - graphql/node_modules/minimatch/package.json | 33 - graphql/node_modules/ms/index.js | 162 - graphql/node_modules/ms/license.md | 21 - graphql/node_modules/ms/package.json | 37 - graphql/node_modules/ms/readme.md | 60 - .../node_modules/natural-compare/README.md | 125 - graphql/node_modules/natural-compare/index.js | 57 - .../node_modules/natural-compare/package.json | 42 - graphql/node_modules/optionator/CHANGELOG.md | 59 - graphql/node_modules/optionator/LICENSE | 22 - graphql/node_modules/optionator/README.md | 238 - graphql/node_modules/optionator/lib/help.js | 260 - graphql/node_modules/optionator/lib/index.js | 465 - graphql/node_modules/optionator/lib/util.js | 54 - graphql/node_modules/optionator/package.json | 43 - graphql/node_modules/p-limit/index.d.ts | 42 - graphql/node_modules/p-limit/index.js | 71 - graphql/node_modules/p-limit/license | 9 - graphql/node_modules/p-limit/package.json | 52 - graphql/node_modules/p-limit/readme.md | 101 - graphql/node_modules/p-locate/index.d.ts | 53 - graphql/node_modules/p-locate/index.js | 50 - graphql/node_modules/p-locate/license | 9 - graphql/node_modules/p-locate/package.json | 54 - graphql/node_modules/p-locate/readme.md | 93 - graphql/node_modules/parent-module/index.js | 37 - graphql/node_modules/parent-module/license | 9 - .../node_modules/parent-module/package.json | 46 - graphql/node_modules/parent-module/readme.md | 67 - graphql/node_modules/path-exists/index.d.ts | 28 - graphql/node_modules/path-exists/index.js | 23 - graphql/node_modules/path-exists/license | 9 - graphql/node_modules/path-exists/package.json | 39 - graphql/node_modules/path-exists/readme.md | 52 - graphql/node_modules/path-key/index.d.ts | 40 - graphql/node_modules/path-key/index.js | 16 - graphql/node_modules/path-key/license | 9 - graphql/node_modules/path-key/package.json | 39 - graphql/node_modules/path-key/readme.md | 61 - graphql/node_modules/path-type/index.d.ts | 51 - graphql/node_modules/path-type/index.js | 43 - graphql/node_modules/path-type/license | 9 - graphql/node_modules/path-type/package.json | 45 - graphql/node_modules/path-type/readme.md | 72 - graphql/node_modules/picomatch/CHANGELOG.md | 136 - graphql/node_modules/picomatch/LICENSE | 21 - graphql/node_modules/picomatch/README.md | 708 - graphql/node_modules/picomatch/index.js | 3 - .../node_modules/picomatch/lib/constants.js | 179 - graphql/node_modules/picomatch/lib/parse.js | 1091 - .../node_modules/picomatch/lib/picomatch.js | 342 - graphql/node_modules/picomatch/lib/scan.js | 391 - graphql/node_modules/picomatch/lib/utils.js | 64 - graphql/node_modules/picomatch/package.json | 81 - graphql/node_modules/prelude-ls/CHANGELOG.md | 108 - graphql/node_modules/prelude-ls/LICENSE | 22 - graphql/node_modules/prelude-ls/README.md | 15 - graphql/node_modules/prelude-ls/lib/Func.js | 69 - graphql/node_modules/prelude-ls/lib/List.js | 716 - graphql/node_modules/prelude-ls/lib/Num.js | 130 - graphql/node_modules/prelude-ls/lib/Obj.js | 154 - graphql/node_modules/prelude-ls/lib/Str.js | 92 - graphql/node_modules/prelude-ls/lib/index.js | 178 - graphql/node_modules/prelude-ls/package.json | 46 - graphql/node_modules/punycode/LICENSE-MIT.txt | 20 - graphql/node_modules/punycode/README.md | 148 - graphql/node_modules/punycode/package.json | 58 - graphql/node_modules/punycode/punycode.es6.js | 444 - graphql/node_modules/punycode/punycode.js | 443 - graphql/node_modules/queue-microtask/LICENSE | 20 - .../node_modules/queue-microtask/README.md | 90 - .../node_modules/queue-microtask/index.d.ts | 2 - graphql/node_modules/queue-microtask/index.js | 9 - .../node_modules/queue-microtask/package.json | 55 - graphql/node_modules/resolve-from/index.js | 47 - graphql/node_modules/resolve-from/license | 9 - .../node_modules/resolve-from/package.json | 34 - graphql/node_modules/resolve-from/readme.md | 72 - graphql/node_modules/reusify/.coveralls.yml | 1 - graphql/node_modules/reusify/.travis.yml | 28 - graphql/node_modules/reusify/LICENSE | 22 - graphql/node_modules/reusify/README.md | 145 - .../benchmarks/createNoCodeFunction.js | 30 - .../node_modules/reusify/benchmarks/fib.js | 13 - .../reusify/benchmarks/reuseNoCodeFunction.js | 38 - graphql/node_modules/reusify/package.json | 45 - graphql/node_modules/reusify/reusify.js | 33 - graphql/node_modules/reusify/test.js | 66 - graphql/node_modules/run-parallel/LICENSE | 20 - graphql/node_modules/run-parallel/README.md | 85 - graphql/node_modules/run-parallel/index.js | 51 - .../node_modules/run-parallel/package.json | 58 - graphql/node_modules/semver/LICENSE | 15 - graphql/node_modules/semver/README.md | 654 - graphql/node_modules/semver/bin/semver.js | 188 - .../node_modules/semver/classes/comparator.js | 141 - graphql/node_modules/semver/classes/index.js | 5 - graphql/node_modules/semver/classes/range.js | 554 - graphql/node_modules/semver/classes/semver.js | 302 - .../node_modules/semver/functions/clean.js | 6 - graphql/node_modules/semver/functions/cmp.js | 52 - .../node_modules/semver/functions/coerce.js | 60 - .../semver/functions/compare-build.js | 7 - .../semver/functions/compare-loose.js | 3 - .../node_modules/semver/functions/compare.js | 5 - graphql/node_modules/semver/functions/diff.js | 65 - graphql/node_modules/semver/functions/eq.js | 3 - graphql/node_modules/semver/functions/gt.js | 3 - graphql/node_modules/semver/functions/gte.js | 3 - graphql/node_modules/semver/functions/inc.js | 19 - graphql/node_modules/semver/functions/lt.js | 3 - graphql/node_modules/semver/functions/lte.js | 3 - .../node_modules/semver/functions/major.js | 3 - .../node_modules/semver/functions/minor.js | 3 - graphql/node_modules/semver/functions/neq.js | 3 - .../node_modules/semver/functions/parse.js | 16 - .../node_modules/semver/functions/patch.js | 3 - .../semver/functions/prerelease.js | 6 - .../node_modules/semver/functions/rcompare.js | 3 - .../node_modules/semver/functions/rsort.js | 3 - .../semver/functions/satisfies.js | 10 - graphql/node_modules/semver/functions/sort.js | 3 - .../node_modules/semver/functions/valid.js | 6 - graphql/node_modules/semver/index.js | 89 - .../node_modules/semver/internal/constants.js | 35 - graphql/node_modules/semver/internal/debug.js | 9 - .../semver/internal/identifiers.js | 23 - .../node_modules/semver/internal/lrucache.js | 40 - .../semver/internal/parse-options.js | 15 - graphql/node_modules/semver/internal/re.js | 217 - graphql/node_modules/semver/package.json | 77 - graphql/node_modules/semver/preload.js | 2 - graphql/node_modules/semver/range.bnf | 16 - graphql/node_modules/semver/ranges/gtr.js | 4 - .../node_modules/semver/ranges/intersects.js | 7 - graphql/node_modules/semver/ranges/ltr.js | 4 - .../semver/ranges/max-satisfying.js | 25 - .../semver/ranges/min-satisfying.js | 24 - .../node_modules/semver/ranges/min-version.js | 61 - graphql/node_modules/semver/ranges/outside.js | 80 - .../node_modules/semver/ranges/simplify.js | 47 - graphql/node_modules/semver/ranges/subset.js | 247 - .../semver/ranges/to-comparators.js | 8 - graphql/node_modules/semver/ranges/valid.js | 11 - graphql/node_modules/shebang-command/index.js | 19 - graphql/node_modules/shebang-command/license | 9 - .../node_modules/shebang-command/package.json | 34 - .../node_modules/shebang-command/readme.md | 34 - graphql/node_modules/shebang-regex/index.d.ts | 22 - graphql/node_modules/shebang-regex/index.js | 2 - graphql/node_modules/shebang-regex/license | 9 - .../node_modules/shebang-regex/package.json | 35 - graphql/node_modules/shebang-regex/readme.md | 33 - graphql/node_modules/slash/index.d.ts | 25 - graphql/node_modules/slash/index.js | 11 - graphql/node_modules/slash/license | 9 - graphql/node_modules/slash/package.json | 35 - graphql/node_modules/slash/readme.md | 44 - graphql/node_modules/strip-ansi/index.d.ts | 17 - graphql/node_modules/strip-ansi/index.js | 4 - graphql/node_modules/strip-ansi/license | 9 - graphql/node_modules/strip-ansi/package.json | 54 - graphql/node_modules/strip-ansi/readme.md | 46 - .../strip-json-comments/index.d.ts | 36 - .../node_modules/strip-json-comments/index.js | 77 - .../node_modules/strip-json-comments/license | 9 - .../strip-json-comments/package.json | 47 - .../strip-json-comments/readme.md | 78 - .../node_modules/supports-color/browser.js | 5 - graphql/node_modules/supports-color/index.js | 135 - graphql/node_modules/supports-color/license | 9 - .../node_modules/supports-color/package.json | 53 - graphql/node_modules/supports-color/readme.md | 76 - graphql/node_modules/text-table/.travis.yml | 4 - graphql/node_modules/text-table/LICENSE | 18 - .../node_modules/text-table/example/align.js | 8 - .../node_modules/text-table/example/center.js | 8 - .../text-table/example/dotalign.js | 9 - .../text-table/example/doubledot.js | 11 - .../node_modules/text-table/example/table.js | 6 - graphql/node_modules/text-table/index.js | 86 - graphql/node_modules/text-table/package.json | 44 - .../node_modules/text-table/readme.markdown | 134 - graphql/node_modules/text-table/test/align.js | 18 - .../text-table/test/ansi-colors.js | 32 - .../node_modules/text-table/test/center.js | 18 - .../node_modules/text-table/test/dotalign.js | 20 - .../node_modules/text-table/test/doubledot.js | 24 - graphql/node_modules/text-table/test/table.js | 14 - graphql/node_modules/to-regex-range/LICENSE | 21 - graphql/node_modules/to-regex-range/README.md | 305 - graphql/node_modules/to-regex-range/index.js | 288 - .../node_modules/to-regex-range/package.json | 88 - graphql/node_modules/ts-api-utils/LICENSE.md | 20 - graphql/node_modules/ts-api-utils/README.md | 90 - .../node_modules/ts-api-utils/lib/index.cjs | 2565 - .../ts-api-utils/lib/index.cjs.map | 1 - .../node_modules/ts-api-utils/lib/index.d.cts | 3039 - .../node_modules/ts-api-utils/lib/index.d.ts | 3039 - .../node_modules/ts-api-utils/lib/index.js | 2336 - .../ts-api-utils/lib/index.js.map | 1 - .../node_modules/ts-api-utils/package.json | 110 - graphql/node_modules/type-check/LICENSE | 22 - graphql/node_modules/type-check/README.md | 210 - graphql/node_modules/type-check/lib/check.js | 128 - graphql/node_modules/type-check/lib/index.js | 16 - .../node_modules/type-check/lib/parse-type.js | 198 - graphql/node_modules/type-check/package.json | 39 - .../node_modules/typescript-eslint/LICENSE | 21 - .../node_modules/typescript-eslint/README.md | 12 - .../typescript-eslint/dist/config-helper.d.ts | 66 - .../dist/config-helper.d.ts.map | 1 - .../typescript-eslint/dist/config-helper.js | 43 - .../dist/config-helper.js.map | 1 - .../typescript-eslint/dist/configs/all.d.ts | 8 - .../dist/configs/all.d.ts.map | 1 - .../typescript-eslint/dist/configs/all.js | 172 - .../typescript-eslint/dist/configs/all.js.map | 1 - .../typescript-eslint/dist/configs/base.d.ts | 9 - .../dist/configs/base.d.ts.map | 1 - .../typescript-eslint/dist/configs/base.js | 18 - .../dist/configs/base.js.map | 1 - .../dist/configs/disable-type-checked.d.ts | 8 - .../configs/disable-type-checked.d.ts.map | 1 - .../dist/configs/disable-type-checked.js | 75 - .../dist/configs/disable-type-checked.js.map | 1 - .../dist/configs/eslint-recommended.d.ts | 10 - .../dist/configs/eslint-recommended.d.ts.map | 1 - .../dist/configs/eslint-recommended.js | 17 - .../dist/configs/eslint-recommended.js.map | 1 - .../recommended-type-checked-only.d.ts | 8 - .../recommended-type-checked-only.d.ts.map | 1 - .../configs/recommended-type-checked-only.js | 54 - .../recommended-type-checked-only.js.map | 1 - .../configs/recommended-type-checked.d.ts | 8 - .../configs/recommended-type-checked.d.ts.map | 1 - .../dist/configs/recommended-type-checked.js | 77 - .../configs/recommended-type-checked.js.map | 1 - .../dist/configs/recommended.d.ts | 8 - .../dist/configs/recommended.d.ts.map | 1 - .../dist/configs/recommended.js | 50 - .../dist/configs/recommended.js.map | 1 - .../configs/strict-type-checked-only.d.ts | 8 - .../configs/strict-type-checked-only.d.ts.map | 1 - .../dist/configs/strict-type-checked-only.js | 89 - .../configs/strict-type-checked-only.js.map | 1 - .../dist/configs/strict-type-checked.d.ts | 8 - .../dist/configs/strict-type-checked.d.ts.map | 1 - .../dist/configs/strict-type-checked.js | 124 - .../dist/configs/strict-type-checked.js.map | 1 - .../dist/configs/strict.d.ts | 8 - .../dist/configs/strict.d.ts.map | 1 - .../typescript-eslint/dist/configs/strict.js | 62 - .../dist/configs/strict.js.map | 1 - .../configs/stylistic-type-checked-only.d.ts | 8 - .../stylistic-type-checked-only.d.ts.map | 1 - .../configs/stylistic-type-checked-only.js | 36 - .../stylistic-type-checked-only.js.map | 1 - .../dist/configs/stylistic-type-checked.d.ts | 8 - .../configs/stylistic-type-checked.d.ts.map | 1 - .../dist/configs/stylistic-type-checked.js | 50 - .../configs/stylistic-type-checked.js.map | 1 - .../dist/configs/stylistic.d.ts | 8 - .../dist/configs/stylistic.d.ts.map | 1 - .../dist/configs/stylistic.js | 41 - .../dist/configs/stylistic.js.map | 1 - .../typescript-eslint/dist/index.d.ts | 158 - .../typescript-eslint/dist/index.d.ts.map | 1 - .../typescript-eslint/dist/index.js | 195 - .../typescript-eslint/dist/index.js.map | 1 - .../typescript-eslint/package.json | 83 - graphql/node_modules/typescript/LICENSE.txt | 55 - graphql/node_modules/typescript/README.md | 50 - graphql/node_modules/typescript/SECURITY.md | 41 - .../typescript/ThirdPartyNoticeText.txt | 193 - graphql/node_modules/typescript/bin/tsc | 2 - graphql/node_modules/typescript/bin/tsserver | 2 - .../typescript/lib/cancellationToken.js | 90 - .../lib/cs/diagnosticMessages.generated.json | 1880 - .../lib/de/diagnosticMessages.generated.json | 1880 - .../lib/es/diagnosticMessages.generated.json | 1880 - .../lib/fr/diagnosticMessages.generated.json | 1880 - .../lib/it/diagnosticMessages.generated.json | 1880 - .../lib/ja/diagnosticMessages.generated.json | 1880 - .../lib/ko/diagnosticMessages.generated.json | 1880 - graphql/node_modules/typescript/lib/lib.d.ts | 22 - .../typescript/lib/lib.decorators.d.ts | 386 - .../typescript/lib/lib.decorators.legacy.d.ts | 22 - .../typescript/lib/lib.dom.asynciterable.d.ts | 33 - .../node_modules/typescript/lib/lib.dom.d.ts | 28596 --- .../typescript/lib/lib.dom.iterable.d.ts | 475 - .../typescript/lib/lib.es2015.collection.d.ts | 147 - .../typescript/lib/lib.es2015.core.d.ts | 597 - .../typescript/lib/lib.es2015.d.ts | 28 - .../typescript/lib/lib.es2015.generator.d.ts | 77 - .../typescript/lib/lib.es2015.iterable.d.ts | 495 - .../typescript/lib/lib.es2015.promise.d.ts | 81 - .../typescript/lib/lib.es2015.proxy.d.ts | 128 - .../typescript/lib/lib.es2015.reflect.d.ts | 144 - .../typescript/lib/lib.es2015.symbol.d.ts | 46 - .../lib/lib.es2015.symbol.wellknown.d.ts | 326 - .../lib/lib.es2016.array.include.d.ts | 116 - .../typescript/lib/lib.es2016.d.ts | 21 - .../typescript/lib/lib.es2016.full.d.ts | 23 - .../typescript/lib/lib.es2016.intl.d.ts | 31 - .../typescript/lib/lib.es2017.d.ts | 25 - .../typescript/lib/lib.es2017.date.d.ts | 31 - .../typescript/lib/lib.es2017.full.d.ts | 23 - .../typescript/lib/lib.es2017.intl.d.ts | 44 - .../typescript/lib/lib.es2017.object.d.ts | 49 - .../lib/lib.es2017.sharedmemory.d.ts | 135 - .../typescript/lib/lib.es2017.string.d.ts | 45 - .../lib/lib.es2017.typedarrays.d.ts | 53 - .../lib/lib.es2018.asyncgenerator.d.ts | 77 - .../lib/lib.es2018.asynciterable.d.ts | 43 - .../typescript/lib/lib.es2018.d.ts | 24 - .../typescript/lib/lib.es2018.full.d.ts | 24 - .../typescript/lib/lib.es2018.intl.d.ts | 83 - .../typescript/lib/lib.es2018.promise.d.ts | 30 - .../typescript/lib/lib.es2018.regexp.d.ts | 37 - .../typescript/lib/lib.es2019.array.d.ts | 79 - .../typescript/lib/lib.es2019.d.ts | 24 - .../typescript/lib/lib.es2019.full.d.ts | 24 - .../typescript/lib/lib.es2019.intl.d.ts | 23 - .../typescript/lib/lib.es2019.object.d.ts | 33 - .../typescript/lib/lib.es2019.string.d.ts | 37 - .../typescript/lib/lib.es2019.symbol.d.ts | 24 - .../typescript/lib/lib.es2020.bigint.d.ts | 727 - .../typescript/lib/lib.es2020.d.ts | 27 - .../typescript/lib/lib.es2020.date.d.ts | 42 - .../typescript/lib/lib.es2020.full.d.ts | 24 - .../typescript/lib/lib.es2020.intl.d.ts | 474 - .../typescript/lib/lib.es2020.number.d.ts | 28 - .../typescript/lib/lib.es2020.promise.d.ts | 47 - .../lib/lib.es2020.sharedmemory.d.ts | 97 - .../typescript/lib/lib.es2020.string.d.ts | 42 - .../lib/lib.es2020.symbol.wellknown.d.ts | 37 - .../typescript/lib/lib.es2021.d.ts | 23 - .../typescript/lib/lib.es2021.full.d.ts | 24 - .../typescript/lib/lib.es2021.intl.d.ts | 166 - .../typescript/lib/lib.es2021.promise.d.ts | 48 - .../typescript/lib/lib.es2021.string.d.ts | 33 - .../typescript/lib/lib.es2021.weakref.d.ts | 76 - .../typescript/lib/lib.es2022.array.d.ts | 121 - .../typescript/lib/lib.es2022.d.ts | 26 - .../typescript/lib/lib.es2022.error.d.ts | 73 - .../typescript/lib/lib.es2022.full.d.ts | 24 - .../typescript/lib/lib.es2022.intl.d.ts | 117 - .../typescript/lib/lib.es2022.object.d.ts | 26 - .../typescript/lib/lib.es2022.regexp.d.ts | 39 - .../lib/lib.es2022.sharedmemory.d.ts | 39 - .../typescript/lib/lib.es2022.string.d.ts | 25 - .../typescript/lib/lib.es2023.array.d.ts | 924 - .../typescript/lib/lib.es2023.collection.d.ts | 21 - .../typescript/lib/lib.es2023.d.ts | 22 - .../typescript/lib/lib.es2023.full.d.ts | 24 - .../typescript/lib/lib.es2023.intl.d.ts | 56 - .../node_modules/typescript/lib/lib.es5.d.ts | 4585 - .../node_modules/typescript/lib/lib.es6.d.ts | 23 - .../typescript/lib/lib.esnext.array.d.ts | 35 - .../typescript/lib/lib.esnext.collection.d.ts | 106 - .../typescript/lib/lib.esnext.d.ts | 28 - .../typescript/lib/lib.esnext.decorators.d.ts | 28 - .../typescript/lib/lib.esnext.disposable.d.ts | 185 - .../typescript/lib/lib.esnext.full.d.ts | 24 - .../typescript/lib/lib.esnext.intl.d.ts | 21 - .../typescript/lib/lib.esnext.object.d.ts | 29 - .../typescript/lib/lib.esnext.promise.d.ts | 35 - .../typescript/lib/lib.esnext.regexp.d.ts | 25 - .../typescript/lib/lib.esnext.string.d.ts | 29 - .../typescript/lib/lib.scripthost.d.ts | 322 - .../lib/lib.webworker.asynciterable.d.ts | 33 - .../typescript/lib/lib.webworker.d.ts | 9431 - .../lib/lib.webworker.importscripts.d.ts | 23 - .../lib/lib.webworker.iterable.d.ts | 276 - .../lib/pl/diagnosticMessages.generated.json | 1880 - .../pt-br/diagnosticMessages.generated.json | 1880 - .../lib/ru/diagnosticMessages.generated.json | 1880 - .../lib/tr/diagnosticMessages.generated.json | 1880 - graphql/node_modules/typescript/lib/tsc.js | 129810 ---------- .../node_modules/typescript/lib/tsserver.js | 621 - .../typescript/lib/tsserverlibrary.d.ts | 17 - .../typescript/lib/tsserverlibrary.js | 21 - .../node_modules/typescript/lib/typesMap.json | 497 - .../typescript/lib/typescript.d.ts | 11240 - .../node_modules/typescript/lib/typescript.js | 195005 --------------- .../typescript/lib/typingsInstaller.js | 236 - .../node_modules/typescript/lib/watchGuard.js | 53 - .../zh-cn/diagnosticMessages.generated.json | 1880 - .../zh-tw/diagnosticMessages.generated.json | 1880 - graphql/node_modules/typescript/package.json | 116 - graphql/node_modules/uri-js/LICENSE | 11 - graphql/node_modules/uri-js/README.md | 203 - .../node_modules/uri-js/dist/es5/uri.all.d.ts | 59 - .../node_modules/uri-js/dist/es5/uri.all.js | 1443 - .../uri-js/dist/es5/uri.all.js.map | 1 - .../uri-js/dist/es5/uri.all.min.d.ts | 59 - .../uri-js/dist/es5/uri.all.min.js | 3 - .../uri-js/dist/es5/uri.all.min.js.map | 1 - .../uri-js/dist/esnext/index.d.ts | 1 - .../node_modules/uri-js/dist/esnext/index.js | 17 - .../uri-js/dist/esnext/index.js.map | 1 - .../uri-js/dist/esnext/regexps-iri.d.ts | 3 - .../uri-js/dist/esnext/regexps-iri.js | 3 - .../uri-js/dist/esnext/regexps-iri.js.map | 1 - .../uri-js/dist/esnext/regexps-uri.d.ts | 4 - .../uri-js/dist/esnext/regexps-uri.js | 42 - .../uri-js/dist/esnext/regexps-uri.js.map | 1 - .../uri-js/dist/esnext/schemes/http.d.ts | 3 - .../uri-js/dist/esnext/schemes/http.js | 28 - .../uri-js/dist/esnext/schemes/http.js.map | 1 - .../uri-js/dist/esnext/schemes/https.d.ts | 3 - .../uri-js/dist/esnext/schemes/https.js | 9 - .../uri-js/dist/esnext/schemes/https.js.map | 1 - .../uri-js/dist/esnext/schemes/mailto.d.ts | 12 - .../uri-js/dist/esnext/schemes/mailto.js | 148 - .../uri-js/dist/esnext/schemes/mailto.js.map | 1 - .../uri-js/dist/esnext/schemes/urn-uuid.d.ts | 7 - .../uri-js/dist/esnext/schemes/urn-uuid.js | 23 - .../dist/esnext/schemes/urn-uuid.js.map | 1 - .../uri-js/dist/esnext/schemes/urn.d.ts | 10 - .../uri-js/dist/esnext/schemes/urn.js | 49 - .../uri-js/dist/esnext/schemes/urn.js.map | 1 - .../uri-js/dist/esnext/schemes/ws.d.ts | 7 - .../uri-js/dist/esnext/schemes/ws.js | 41 - .../uri-js/dist/esnext/schemes/ws.js.map | 1 - .../uri-js/dist/esnext/schemes/wss.d.ts | 3 - .../uri-js/dist/esnext/schemes/wss.js | 9 - .../uri-js/dist/esnext/schemes/wss.js.map | 1 - .../node_modules/uri-js/dist/esnext/uri.d.ts | 59 - .../node_modules/uri-js/dist/esnext/uri.js | 480 - .../uri-js/dist/esnext/uri.js.map | 1 - .../node_modules/uri-js/dist/esnext/util.d.ts | 6 - .../node_modules/uri-js/dist/esnext/util.js | 36 - .../uri-js/dist/esnext/util.js.map | 1 - graphql/node_modules/uri-js/package.json | 77 - graphql/node_modules/uri-js/yarn.lock | 2558 - graphql/node_modules/which/CHANGELOG.md | 166 - graphql/node_modules/which/LICENSE | 15 - graphql/node_modules/which/README.md | 54 - graphql/node_modules/which/bin/node-which | 52 - graphql/node_modules/which/package.json | 43 - graphql/node_modules/which/which.js | 125 - graphql/node_modules/word-wrap/LICENSE | 21 - graphql/node_modules/word-wrap/README.md | 201 - graphql/node_modules/word-wrap/index.d.ts | 50 - graphql/node_modules/word-wrap/index.js | 61 - graphql/node_modules/word-wrap/package.json | 77 - graphql/node_modules/yocto-queue/index.d.ts | 56 - graphql/node_modules/yocto-queue/index.js | 68 - graphql/node_modules/yocto-queue/license | 9 - graphql/node_modules/yocto-queue/package.json | 43 - graphql/node_modules/yocto-queue/readme.md | 64 - .../wildsea-dev/.terraform.lock.hcl | 19 - terraform/module/wildsea/graphql.tf | 17 +- 3347 files changed, 34 insertions(+), 781399 deletions(-) delete mode 100644 graphql/mutation/createGame/appsync.js delete mode 120000 graphql/node_modules/.bin/acorn delete mode 120000 graphql/node_modules/.bin/eslint delete mode 120000 graphql/node_modules/.bin/js-yaml delete mode 120000 graphql/node_modules/.bin/node-which delete mode 120000 graphql/node_modules/.bin/semver delete mode 120000 graphql/node_modules/.bin/tsc delete mode 120000 graphql/node_modules/.bin/tsserver delete mode 100644 graphql/node_modules/.package-lock.json delete mode 100644 graphql/node_modules/@aws-appsync/utils/CHANGELOG.md delete mode 100644 graphql/node_modules/@aws-appsync/utils/LICENSE delete mode 100644 graphql/node_modules/@aws-appsync/utils/LICENSE-THIRD-PARTY delete mode 100644 graphql/node_modules/@aws-appsync/utils/README.md delete mode 100644 graphql/node_modules/@aws-appsync/utils/dynamodb.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/dynamodb.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/index.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/http-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/http-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/http-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/index.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/index.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/index.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/math-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/math-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/math-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/string-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/string-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/string-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/time-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/time-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/time-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/transform-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/type-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/type-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/type-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/xml-utils.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js delete mode 100644 graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js.map delete mode 100644 graphql/node_modules/@aws-appsync/utils/package.json delete mode 100644 graphql/node_modules/@aws-appsync/utils/rds.d.ts delete mode 100644 graphql/node_modules/@aws-appsync/utils/rds.js delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/LICENSE delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/README.md delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/index.js delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/index.js.map delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/index.mjs delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/index.mjs.map delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json delete mode 100644 graphql/node_modules/@eslint-community/eslint-utils/package.json delete mode 100644 graphql/node_modules/@eslint-community/regexpp/LICENSE delete mode 100644 graphql/node_modules/@eslint-community/regexpp/README.md delete mode 100644 graphql/node_modules/@eslint-community/regexpp/index.d.ts delete mode 100644 graphql/node_modules/@eslint-community/regexpp/index.js delete mode 100644 graphql/node_modules/@eslint-community/regexpp/index.js.map delete mode 100644 graphql/node_modules/@eslint-community/regexpp/index.mjs delete mode 100644 graphql/node_modules/@eslint-community/regexpp/index.mjs.map delete mode 100644 graphql/node_modules/@eslint-community/regexpp/package.json delete mode 100644 graphql/node_modules/@eslint/config-array/LICENSE delete mode 100644 graphql/node_modules/@eslint/config-array/README.md delete mode 100644 graphql/node_modules/@eslint/config-array/dist/cjs/index.cjs delete mode 100644 graphql/node_modules/@eslint/config-array/dist/cjs/index.d.cts delete mode 100644 graphql/node_modules/@eslint/config-array/dist/cjs/types.ts delete mode 100644 graphql/node_modules/@eslint/config-array/dist/esm/index.d.ts delete mode 100644 graphql/node_modules/@eslint/config-array/dist/esm/index.js delete mode 100644 graphql/node_modules/@eslint/config-array/dist/esm/types.d.ts delete mode 100644 graphql/node_modules/@eslint/config-array/dist/esm/types.ts delete mode 100644 graphql/node_modules/@eslint/config-array/package.json delete mode 100644 graphql/node_modules/@eslint/eslintrc/LICENSE delete mode 100644 graphql/node_modules/@eslint/eslintrc/README.md delete mode 100644 graphql/node_modules/@eslint/eslintrc/conf/config-schema.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/conf/environments.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs delete mode 100644 graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map delete mode 100644 graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs delete mode 100644 graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array-factory.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/config-array.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/index.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/flat-compat.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/index-universal.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/index.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/ajv.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/config-ops.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/config-validator.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/naming.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/lib/shared/types.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/globals.json delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.js delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/license delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/package.json delete mode 100644 graphql/node_modules/@eslint/eslintrc/node_modules/globals/readme.md delete mode 100644 graphql/node_modules/@eslint/eslintrc/package.json delete mode 100644 graphql/node_modules/@eslint/eslintrc/universal.js delete mode 100644 graphql/node_modules/@eslint/js/LICENSE delete mode 100644 graphql/node_modules/@eslint/js/README.md delete mode 100644 graphql/node_modules/@eslint/js/package.json delete mode 100644 graphql/node_modules/@eslint/js/src/configs/eslint-all.js delete mode 100644 graphql/node_modules/@eslint/js/src/configs/eslint-recommended.js delete mode 100644 graphql/node_modules/@eslint/js/src/index.js delete mode 100644 graphql/node_modules/@eslint/object-schema/LICENSE delete mode 100644 graphql/node_modules/@eslint/object-schema/README.md delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/cjs/index.cjs delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/cjs/index.d.cts delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/cjs/types.ts delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/esm/index.d.ts delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/esm/index.js delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/esm/types.d.ts delete mode 100644 graphql/node_modules/@eslint/object-schema/dist/esm/types.ts delete mode 100644 graphql/node_modules/@eslint/object-schema/package.json delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/CHANGELOG.md delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/LICENSE delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/README.md delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.js delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/package.json delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs delete mode 100644 graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.js delete mode 100644 graphql/node_modules/@humanwhocodes/retry/LICENSE delete mode 100644 graphql/node_modules/@humanwhocodes/retry/README.md delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.cjs delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.cts delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.ts delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.js delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.min.js delete mode 100644 graphql/node_modules/@humanwhocodes/retry/dist/retrier.mjs delete mode 100644 graphql/node_modules/@humanwhocodes/retry/package.json delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/LICENSE delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/README.md delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/constants.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/constants.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/async.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/common.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/settings.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/settings.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/types/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/types/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/out/utils/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.scandir/package.json delete mode 100644 graphql/node_modules/@nodelib/fs.stat/LICENSE delete mode 100644 graphql/node_modules/@nodelib/fs.stat/README.md delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/providers/async.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/providers/async.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/providers/sync.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/settings.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/settings.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/types/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.stat/out/types/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.stat/package.json delete mode 100644 graphql/node_modules/@nodelib/fs.walk/LICENSE delete mode 100644 graphql/node_modules/@nodelib/fs.walk/README.md delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/async.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/async.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/stream.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/providers/sync.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/async.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/async.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/common.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/common.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/reader.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/readers/sync.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/settings.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/settings.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/types/index.d.ts delete mode 100644 graphql/node_modules/@nodelib/fs.walk/out/types/index.js delete mode 100644 graphql/node_modules/@nodelib/fs.walk/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/parser/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/parser/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/parser.js delete mode 100644 graphql/node_modules/@typescript-eslint/parser/dist/parser.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/parser/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/scope-manager/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/type-utils/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/types/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/types/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/lib.js delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/lib.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/parser-options.js delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/parser-options.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js delete mode 100644 graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/types/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/.github/FUNDING.yml delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/typescript-estree/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/utils/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/utils/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js delete mode 100644 graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/utils/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/LICENSE delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/README.md delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/index.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/index.js delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/visitor-keys.js delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/package.json delete mode 100644 graphql/node_modules/@typescript-eslint/visitor-keys/package.json delete mode 100644 graphql/node_modules/acorn-jsx/LICENSE delete mode 100644 graphql/node_modules/acorn-jsx/README.md delete mode 100644 graphql/node_modules/acorn-jsx/index.d.ts delete mode 100644 graphql/node_modules/acorn-jsx/index.js delete mode 100644 graphql/node_modules/acorn-jsx/package.json delete mode 100644 graphql/node_modules/acorn-jsx/xhtml.js delete mode 100644 graphql/node_modules/acorn/CHANGELOG.md delete mode 100644 graphql/node_modules/acorn/LICENSE delete mode 100644 graphql/node_modules/acorn/README.md delete mode 100755 graphql/node_modules/acorn/bin/acorn delete mode 100644 graphql/node_modules/acorn/dist/acorn.d.mts delete mode 100644 graphql/node_modules/acorn/dist/acorn.d.ts delete mode 100644 graphql/node_modules/acorn/dist/acorn.js delete mode 100644 graphql/node_modules/acorn/dist/acorn.mjs delete mode 100644 graphql/node_modules/acorn/dist/bin.js delete mode 100644 graphql/node_modules/acorn/package.json delete mode 100644 graphql/node_modules/ajv/.tonic_example.js delete mode 100644 graphql/node_modules/ajv/LICENSE delete mode 100644 graphql/node_modules/ajv/README.md delete mode 100644 graphql/node_modules/ajv/dist/ajv.bundle.js delete mode 100644 graphql/node_modules/ajv/dist/ajv.min.js delete mode 100644 graphql/node_modules/ajv/dist/ajv.min.js.map delete mode 100644 graphql/node_modules/ajv/lib/ajv.d.ts delete mode 100644 graphql/node_modules/ajv/lib/ajv.js delete mode 100644 graphql/node_modules/ajv/lib/cache.js delete mode 100644 graphql/node_modules/ajv/lib/compile/async.js delete mode 100644 graphql/node_modules/ajv/lib/compile/equal.js delete mode 100644 graphql/node_modules/ajv/lib/compile/error_classes.js delete mode 100644 graphql/node_modules/ajv/lib/compile/formats.js delete mode 100644 graphql/node_modules/ajv/lib/compile/index.js delete mode 100644 graphql/node_modules/ajv/lib/compile/resolve.js delete mode 100644 graphql/node_modules/ajv/lib/compile/rules.js delete mode 100644 graphql/node_modules/ajv/lib/compile/schema_obj.js delete mode 100644 graphql/node_modules/ajv/lib/compile/ucs2length.js delete mode 100644 graphql/node_modules/ajv/lib/compile/util.js delete mode 100644 graphql/node_modules/ajv/lib/data.js delete mode 100644 graphql/node_modules/ajv/lib/definition_schema.js delete mode 100644 graphql/node_modules/ajv/lib/dot/_limit.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/_limitItems.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/_limitLength.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/_limitProperties.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/allOf.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/anyOf.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/coerce.def delete mode 100644 graphql/node_modules/ajv/lib/dot/comment.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/const.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/contains.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/custom.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/defaults.def delete mode 100644 graphql/node_modules/ajv/lib/dot/definitions.def delete mode 100644 graphql/node_modules/ajv/lib/dot/dependencies.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/enum.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/errors.def delete mode 100644 graphql/node_modules/ajv/lib/dot/format.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/if.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/items.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/missing.def delete mode 100644 graphql/node_modules/ajv/lib/dot/multipleOf.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/not.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/oneOf.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/pattern.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/properties.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/propertyNames.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/ref.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/required.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/uniqueItems.jst delete mode 100644 graphql/node_modules/ajv/lib/dot/validate.jst delete mode 100644 graphql/node_modules/ajv/lib/dotjs/README.md delete mode 100644 graphql/node_modules/ajv/lib/dotjs/_limit.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/_limitItems.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/_limitLength.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/_limitProperties.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/allOf.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/anyOf.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/comment.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/const.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/contains.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/custom.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/dependencies.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/enum.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/format.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/if.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/index.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/items.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/multipleOf.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/not.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/oneOf.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/pattern.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/properties.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/propertyNames.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/ref.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/required.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/uniqueItems.js delete mode 100644 graphql/node_modules/ajv/lib/dotjs/validate.js delete mode 100644 graphql/node_modules/ajv/lib/keyword.js delete mode 100644 graphql/node_modules/ajv/lib/refs/data.json delete mode 100644 graphql/node_modules/ajv/lib/refs/json-schema-draft-04.json delete mode 100644 graphql/node_modules/ajv/lib/refs/json-schema-draft-06.json delete mode 100644 graphql/node_modules/ajv/lib/refs/json-schema-draft-07.json delete mode 100644 graphql/node_modules/ajv/lib/refs/json-schema-secure.json delete mode 100644 graphql/node_modules/ajv/package.json delete mode 100644 graphql/node_modules/ajv/scripts/.eslintrc.yml delete mode 100644 graphql/node_modules/ajv/scripts/bundle.js delete mode 100644 graphql/node_modules/ajv/scripts/compile-dots.js delete mode 100644 graphql/node_modules/ajv/scripts/info delete mode 100644 graphql/node_modules/ajv/scripts/prepare-tests delete mode 100644 graphql/node_modules/ajv/scripts/publish-built-version delete mode 100644 graphql/node_modules/ajv/scripts/travis-gh-pages delete mode 100644 graphql/node_modules/ansi-regex/index.d.ts delete mode 100644 graphql/node_modules/ansi-regex/index.js delete mode 100644 graphql/node_modules/ansi-regex/license delete mode 100644 graphql/node_modules/ansi-regex/package.json delete mode 100644 graphql/node_modules/ansi-regex/readme.md delete mode 100644 graphql/node_modules/ansi-styles/index.d.ts delete mode 100644 graphql/node_modules/ansi-styles/index.js delete mode 100644 graphql/node_modules/ansi-styles/license delete mode 100644 graphql/node_modules/ansi-styles/package.json delete mode 100644 graphql/node_modules/ansi-styles/readme.md delete mode 100644 graphql/node_modules/argparse/CHANGELOG.md delete mode 100644 graphql/node_modules/argparse/LICENSE delete mode 100644 graphql/node_modules/argparse/README.md delete mode 100644 graphql/node_modules/argparse/argparse.js delete mode 100644 graphql/node_modules/argparse/lib/sub.js delete mode 100644 graphql/node_modules/argparse/lib/textwrap.js delete mode 100644 graphql/node_modules/argparse/package.json delete mode 100644 graphql/node_modules/array-union/index.d.ts delete mode 100644 graphql/node_modules/array-union/index.js delete mode 100644 graphql/node_modules/array-union/license delete mode 100644 graphql/node_modules/array-union/package.json delete mode 100644 graphql/node_modules/array-union/readme.md delete mode 100644 graphql/node_modules/balanced-match/.github/FUNDING.yml delete mode 100644 graphql/node_modules/balanced-match/LICENSE.md delete mode 100644 graphql/node_modules/balanced-match/README.md delete mode 100644 graphql/node_modules/balanced-match/index.js delete mode 100644 graphql/node_modules/balanced-match/package.json delete mode 100644 graphql/node_modules/brace-expansion/LICENSE delete mode 100644 graphql/node_modules/brace-expansion/README.md delete mode 100644 graphql/node_modules/brace-expansion/index.js delete mode 100644 graphql/node_modules/brace-expansion/package.json delete mode 100644 graphql/node_modules/braces/LICENSE delete mode 100644 graphql/node_modules/braces/README.md delete mode 100644 graphql/node_modules/braces/index.js delete mode 100644 graphql/node_modules/braces/lib/compile.js delete mode 100644 graphql/node_modules/braces/lib/constants.js delete mode 100644 graphql/node_modules/braces/lib/expand.js delete mode 100644 graphql/node_modules/braces/lib/parse.js delete mode 100644 graphql/node_modules/braces/lib/stringify.js delete mode 100644 graphql/node_modules/braces/lib/utils.js delete mode 100644 graphql/node_modules/braces/package.json delete mode 100644 graphql/node_modules/callsites/index.d.ts delete mode 100644 graphql/node_modules/callsites/index.js delete mode 100644 graphql/node_modules/callsites/license delete mode 100644 graphql/node_modules/callsites/package.json delete mode 100644 graphql/node_modules/callsites/readme.md delete mode 100644 graphql/node_modules/chalk/index.d.ts delete mode 100644 graphql/node_modules/chalk/license delete mode 100644 graphql/node_modules/chalk/package.json delete mode 100644 graphql/node_modules/chalk/readme.md delete mode 100644 graphql/node_modules/chalk/source/index.js delete mode 100644 graphql/node_modules/chalk/source/templates.js delete mode 100644 graphql/node_modules/chalk/source/util.js delete mode 100644 graphql/node_modules/color-convert/CHANGELOG.md delete mode 100644 graphql/node_modules/color-convert/LICENSE delete mode 100644 graphql/node_modules/color-convert/README.md delete mode 100644 graphql/node_modules/color-convert/conversions.js delete mode 100644 graphql/node_modules/color-convert/index.js delete mode 100644 graphql/node_modules/color-convert/package.json delete mode 100644 graphql/node_modules/color-convert/route.js delete mode 100644 graphql/node_modules/color-name/LICENSE delete mode 100644 graphql/node_modules/color-name/README.md delete mode 100644 graphql/node_modules/color-name/index.js delete mode 100644 graphql/node_modules/color-name/package.json delete mode 100644 graphql/node_modules/concat-map/.travis.yml delete mode 100644 graphql/node_modules/concat-map/LICENSE delete mode 100644 graphql/node_modules/concat-map/README.markdown delete mode 100644 graphql/node_modules/concat-map/example/map.js delete mode 100644 graphql/node_modules/concat-map/index.js delete mode 100644 graphql/node_modules/concat-map/package.json delete mode 100644 graphql/node_modules/concat-map/test/map.js delete mode 100644 graphql/node_modules/cross-spawn/CHANGELOG.md delete mode 100644 graphql/node_modules/cross-spawn/LICENSE delete mode 100644 graphql/node_modules/cross-spawn/README.md delete mode 100644 graphql/node_modules/cross-spawn/index.js delete mode 100644 graphql/node_modules/cross-spawn/lib/enoent.js delete mode 100644 graphql/node_modules/cross-spawn/lib/parse.js delete mode 100644 graphql/node_modules/cross-spawn/lib/util/escape.js delete mode 100644 graphql/node_modules/cross-spawn/lib/util/readShebang.js delete mode 100644 graphql/node_modules/cross-spawn/lib/util/resolveCommand.js delete mode 100644 graphql/node_modules/cross-spawn/package.json delete mode 100644 graphql/node_modules/debug/LICENSE delete mode 100644 graphql/node_modules/debug/README.md delete mode 100644 graphql/node_modules/debug/package.json delete mode 100644 graphql/node_modules/debug/src/browser.js delete mode 100644 graphql/node_modules/debug/src/common.js delete mode 100644 graphql/node_modules/debug/src/index.js delete mode 100644 graphql/node_modules/debug/src/node.js delete mode 100644 graphql/node_modules/deep-is/.travis.yml delete mode 100644 graphql/node_modules/deep-is/LICENSE delete mode 100644 graphql/node_modules/deep-is/README.markdown delete mode 100644 graphql/node_modules/deep-is/example/cmp.js delete mode 100644 graphql/node_modules/deep-is/index.js delete mode 100644 graphql/node_modules/deep-is/package.json delete mode 100644 graphql/node_modules/deep-is/test/NaN.js delete mode 100644 graphql/node_modules/deep-is/test/cmp.js delete mode 100644 graphql/node_modules/deep-is/test/neg-vs-pos-0.js delete mode 100644 graphql/node_modules/dir-glob/index.js delete mode 100644 graphql/node_modules/dir-glob/license delete mode 100644 graphql/node_modules/dir-glob/package.json delete mode 100644 graphql/node_modules/dir-glob/readme.md delete mode 100644 graphql/node_modules/escape-string-regexp/index.d.ts delete mode 100644 graphql/node_modules/escape-string-regexp/index.js delete mode 100644 graphql/node_modules/escape-string-regexp/license delete mode 100644 graphql/node_modules/escape-string-regexp/package.json delete mode 100644 graphql/node_modules/escape-string-regexp/readme.md delete mode 100644 graphql/node_modules/eslint-scope/LICENSE delete mode 100644 graphql/node_modules/eslint-scope/README.md delete mode 100644 graphql/node_modules/eslint-scope/dist/eslint-scope.cjs delete mode 100644 graphql/node_modules/eslint-scope/lib/definition.js delete mode 100644 graphql/node_modules/eslint-scope/lib/index.js delete mode 100644 graphql/node_modules/eslint-scope/lib/pattern-visitor.js delete mode 100644 graphql/node_modules/eslint-scope/lib/reference.js delete mode 100644 graphql/node_modules/eslint-scope/lib/referencer.js delete mode 100644 graphql/node_modules/eslint-scope/lib/scope-manager.js delete mode 100644 graphql/node_modules/eslint-scope/lib/scope.js delete mode 100644 graphql/node_modules/eslint-scope/lib/variable.js delete mode 100644 graphql/node_modules/eslint-scope/lib/version.js delete mode 100644 graphql/node_modules/eslint-scope/package.json delete mode 100644 graphql/node_modules/eslint-visitor-keys/LICENSE delete mode 100644 graphql/node_modules/eslint-visitor-keys/README.md delete mode 100644 graphql/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs delete mode 100644 graphql/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts delete mode 100644 graphql/node_modules/eslint-visitor-keys/dist/index.d.ts delete mode 100644 graphql/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts delete mode 100644 graphql/node_modules/eslint-visitor-keys/lib/index.js delete mode 100644 graphql/node_modules/eslint-visitor-keys/lib/visitor-keys.js delete mode 100644 graphql/node_modules/eslint-visitor-keys/package.json delete mode 100644 graphql/node_modules/eslint/LICENSE delete mode 100644 graphql/node_modules/eslint/README.md delete mode 100755 graphql/node_modules/eslint/bin/eslint.js delete mode 100644 graphql/node_modules/eslint/conf/default-cli-options.js delete mode 100644 graphql/node_modules/eslint/conf/ecma-version.js delete mode 100644 graphql/node_modules/eslint/conf/globals.js delete mode 100644 graphql/node_modules/eslint/conf/replacements.json delete mode 100644 graphql/node_modules/eslint/conf/rule-type-list.json delete mode 100644 graphql/node_modules/eslint/lib/api.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/cli-engine.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/file-enumerator.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/formatters/html.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/formatters/json.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/formatters/stylish.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/hash.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/index.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/lint-result-cache.js delete mode 100644 graphql/node_modules/eslint/lib/cli-engine/load-rules.js delete mode 100644 graphql/node_modules/eslint/lib/cli.js delete mode 100644 graphql/node_modules/eslint/lib/config/default-config.js delete mode 100644 graphql/node_modules/eslint/lib/config/flat-config-array.js delete mode 100644 graphql/node_modules/eslint/lib/config/flat-config-helpers.js delete mode 100644 graphql/node_modules/eslint/lib/config/flat-config-schema.js delete mode 100644 graphql/node_modules/eslint/lib/config/rule-validator.js delete mode 100644 graphql/node_modules/eslint/lib/eslint/eslint-helpers.js delete mode 100644 graphql/node_modules/eslint/lib/eslint/eslint.js delete mode 100644 graphql/node_modules/eslint/lib/eslint/index.js delete mode 100644 graphql/node_modules/eslint/lib/eslint/legacy-eslint.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/index.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/index.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/source-code.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/index.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js delete mode 100644 graphql/node_modules/eslint/lib/languages/js/validate-language-options.js delete mode 100644 graphql/node_modules/eslint/lib/linter/apply-disable-directives.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js delete mode 100644 graphql/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js delete mode 100644 graphql/node_modules/eslint/lib/linter/config-comment-parser.js delete mode 100644 graphql/node_modules/eslint/lib/linter/index.js delete mode 100644 graphql/node_modules/eslint/lib/linter/interpolate.js delete mode 100644 graphql/node_modules/eslint/lib/linter/linter.js delete mode 100644 graphql/node_modules/eslint/lib/linter/node-event-generator.js delete mode 100644 graphql/node_modules/eslint/lib/linter/report-translator.js delete mode 100644 graphql/node_modules/eslint/lib/linter/rule-fixer.js delete mode 100644 graphql/node_modules/eslint/lib/linter/rules.js delete mode 100644 graphql/node_modules/eslint/lib/linter/safe-emitter.js delete mode 100644 graphql/node_modules/eslint/lib/linter/source-code-fixer.js delete mode 100644 graphql/node_modules/eslint/lib/linter/timing.js delete mode 100644 graphql/node_modules/eslint/lib/linter/vfile.js delete mode 100644 graphql/node_modules/eslint/lib/options.js delete mode 100644 graphql/node_modules/eslint/lib/rule-tester/index.js delete mode 100644 graphql/node_modules/eslint/lib/rule-tester/rule-tester.js delete mode 100644 graphql/node_modules/eslint/lib/rules/accessor-pairs.js delete mode 100644 graphql/node_modules/eslint/lib/rules/array-bracket-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/array-bracket-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/array-callback-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/array-element-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/arrow-body-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/arrow-parens.js delete mode 100644 graphql/node_modules/eslint/lib/rules/arrow-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/block-scoped-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/block-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/brace-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/callback-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/camelcase.js delete mode 100644 graphql/node_modules/eslint/lib/rules/capitalized-comments.js delete mode 100644 graphql/node_modules/eslint/lib/rules/class-methods-use-this.js delete mode 100644 graphql/node_modules/eslint/lib/rules/comma-dangle.js delete mode 100644 graphql/node_modules/eslint/lib/rules/comma-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/comma-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/complexity.js delete mode 100644 graphql/node_modules/eslint/lib/rules/computed-property-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/consistent-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/consistent-this.js delete mode 100644 graphql/node_modules/eslint/lib/rules/constructor-super.js delete mode 100644 graphql/node_modules/eslint/lib/rules/curly.js delete mode 100644 graphql/node_modules/eslint/lib/rules/default-case-last.js delete mode 100644 graphql/node_modules/eslint/lib/rules/default-case.js delete mode 100644 graphql/node_modules/eslint/lib/rules/default-param-last.js delete mode 100644 graphql/node_modules/eslint/lib/rules/dot-location.js delete mode 100644 graphql/node_modules/eslint/lib/rules/dot-notation.js delete mode 100644 graphql/node_modules/eslint/lib/rules/eol-last.js delete mode 100644 graphql/node_modules/eslint/lib/rules/eqeqeq.js delete mode 100644 graphql/node_modules/eslint/lib/rules/for-direction.js delete mode 100644 graphql/node_modules/eslint/lib/rules/func-call-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/func-name-matching.js delete mode 100644 graphql/node_modules/eslint/lib/rules/func-names.js delete mode 100644 graphql/node_modules/eslint/lib/rules/func-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/function-call-argument-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/function-paren-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/generator-star-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/getter-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/global-require.js delete mode 100644 graphql/node_modules/eslint/lib/rules/grouped-accessor-pairs.js delete mode 100644 graphql/node_modules/eslint/lib/rules/guard-for-in.js delete mode 100644 graphql/node_modules/eslint/lib/rules/handle-callback-err.js delete mode 100644 graphql/node_modules/eslint/lib/rules/id-blacklist.js delete mode 100644 graphql/node_modules/eslint/lib/rules/id-denylist.js delete mode 100644 graphql/node_modules/eslint/lib/rules/id-length.js delete mode 100644 graphql/node_modules/eslint/lib/rules/id-match.js delete mode 100644 graphql/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js delete mode 100644 graphql/node_modules/eslint/lib/rules/indent-legacy.js delete mode 100644 graphql/node_modules/eslint/lib/rules/indent.js delete mode 100644 graphql/node_modules/eslint/lib/rules/index.js delete mode 100644 graphql/node_modules/eslint/lib/rules/init-declarations.js delete mode 100644 graphql/node_modules/eslint/lib/rules/jsx-quotes.js delete mode 100644 graphql/node_modules/eslint/lib/rules/key-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/keyword-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/line-comment-position.js delete mode 100644 graphql/node_modules/eslint/lib/rules/linebreak-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/lines-around-comment.js delete mode 100644 graphql/node_modules/eslint/lib/rules/lines-around-directive.js delete mode 100644 graphql/node_modules/eslint/lib/rules/lines-between-class-members.js delete mode 100644 graphql/node_modules/eslint/lib/rules/logical-assignment-operators.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-classes-per-file.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-depth.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-len.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-lines-per-function.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-lines.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-nested-callbacks.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-params.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-statements-per-line.js delete mode 100644 graphql/node_modules/eslint/lib/rules/max-statements.js delete mode 100644 graphql/node_modules/eslint/lib/rules/multiline-comment-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/multiline-ternary.js delete mode 100644 graphql/node_modules/eslint/lib/rules/new-cap.js delete mode 100644 graphql/node_modules/eslint/lib/rules/new-parens.js delete mode 100644 graphql/node_modules/eslint/lib/rules/newline-after-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/newline-before-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/newline-per-chained-call.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-alert.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-array-constructor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-async-promise-executor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-await-in-loop.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-bitwise.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-buffer-constructor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-caller.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-case-declarations.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-catch-shadow.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-class-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-compare-neg-zero.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-cond-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-confusing-arrow.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-console.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-const-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-constant-binary-expression.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-constant-condition.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-constructor-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-continue.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-control-regex.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-debugger.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-delete-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-div-regex.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-dupe-args.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-dupe-class-members.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-dupe-else-if.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-dupe-keys.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-duplicate-case.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-duplicate-imports.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-else-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-empty-character-class.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-empty-function.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-empty-pattern.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-empty-static-block.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-empty.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-eq-null.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-eval.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-ex-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extend-native.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extra-bind.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extra-boolean-cast.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extra-label.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extra-parens.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-extra-semi.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-fallthrough.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-floating-decimal.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-func-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-global-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-implicit-coercion.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-implicit-globals.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-implied-eval.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-import-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-inline-comments.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-inner-declarations.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-invalid-regexp.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-invalid-this.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-irregular-whitespace.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-iterator.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-label-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-labels.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-lone-blocks.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-lonely-if.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-loop-func.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-loss-of-precision.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-magic-numbers.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-misleading-character-class.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-mixed-operators.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-mixed-requires.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-multi-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-multi-spaces.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-multi-str.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-multiple-empty-lines.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-native-reassign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-negated-condition.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-negated-in-lhs.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-nested-ternary.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-func.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-object.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-require.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-symbol.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new-wrappers.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-new.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-obj-calls.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-object-constructor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-octal-escape.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-octal.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-param-reassign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-path-concat.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-plusplus.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-process-env.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-process-exit.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-promise-executor-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-proto.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-prototype-builtins.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-redeclare.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-regex-spaces.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-exports.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-globals.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-imports.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-modules.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-properties.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-restricted-syntax.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-return-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-return-await.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-script-url.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-self-assign.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-self-compare.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-sequences.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-setter-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-shadow-restricted-names.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-shadow.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-spaced-func.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-sparse-arrays.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-sync.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-tabs.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-template-curly-in-string.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-ternary.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-this-before-super.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-throw-literal.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-trailing-spaces.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-undef-init.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-undef.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-undefined.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-underscore-dangle.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unexpected-multiline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unneeded-ternary.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unreachable-loop.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unreachable.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unsafe-finally.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unsafe-negation.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unused-expressions.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unused-labels.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unused-private-class-members.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-unused-vars.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-use-before-define.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-assignment.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-backreference.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-call.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-catch.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-computed-key.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-concat.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-constructor.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-escape.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-rename.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-useless-return.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-void.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-warning-comments.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-whitespace-before-property.js delete mode 100644 graphql/node_modules/eslint/lib/rules/no-with.js delete mode 100644 graphql/node_modules/eslint/lib/rules/nonblock-statement-body-position.js delete mode 100644 graphql/node_modules/eslint/lib/rules/object-curly-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/object-curly-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/object-property-newline.js delete mode 100644 graphql/node_modules/eslint/lib/rules/object-shorthand.js delete mode 100644 graphql/node_modules/eslint/lib/rules/one-var-declaration-per-line.js delete mode 100644 graphql/node_modules/eslint/lib/rules/one-var.js delete mode 100644 graphql/node_modules/eslint/lib/rules/operator-assignment.js delete mode 100644 graphql/node_modules/eslint/lib/rules/operator-linebreak.js delete mode 100644 graphql/node_modules/eslint/lib/rules/padded-blocks.js delete mode 100644 graphql/node_modules/eslint/lib/rules/padding-line-between-statements.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-arrow-callback.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-const.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-destructuring.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-named-capture-group.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-numeric-literals.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-object-has-own.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-object-spread.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-reflect.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-regex-literals.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-rest-params.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-spread.js delete mode 100644 graphql/node_modules/eslint/lib/rules/prefer-template.js delete mode 100644 graphql/node_modules/eslint/lib/rules/quote-props.js delete mode 100644 graphql/node_modules/eslint/lib/rules/quotes.js delete mode 100644 graphql/node_modules/eslint/lib/rules/radix.js delete mode 100644 graphql/node_modules/eslint/lib/rules/require-atomic-updates.js delete mode 100644 graphql/node_modules/eslint/lib/rules/require-await.js delete mode 100644 graphql/node_modules/eslint/lib/rules/require-unicode-regexp.js delete mode 100644 graphql/node_modules/eslint/lib/rules/require-yield.js delete mode 100644 graphql/node_modules/eslint/lib/rules/rest-spread-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/semi-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/semi-style.js delete mode 100644 graphql/node_modules/eslint/lib/rules/semi.js delete mode 100644 graphql/node_modules/eslint/lib/rules/sort-imports.js delete mode 100644 graphql/node_modules/eslint/lib/rules/sort-keys.js delete mode 100644 graphql/node_modules/eslint/lib/rules/sort-vars.js delete mode 100644 graphql/node_modules/eslint/lib/rules/space-before-blocks.js delete mode 100644 graphql/node_modules/eslint/lib/rules/space-before-function-paren.js delete mode 100644 graphql/node_modules/eslint/lib/rules/space-in-parens.js delete mode 100644 graphql/node_modules/eslint/lib/rules/space-infix-ops.js delete mode 100644 graphql/node_modules/eslint/lib/rules/space-unary-ops.js delete mode 100644 graphql/node_modules/eslint/lib/rules/spaced-comment.js delete mode 100644 graphql/node_modules/eslint/lib/rules/strict.js delete mode 100644 graphql/node_modules/eslint/lib/rules/switch-colon-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/symbol-description.js delete mode 100644 graphql/node_modules/eslint/lib/rules/template-curly-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/template-tag-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/unicode-bom.js delete mode 100644 graphql/node_modules/eslint/lib/rules/use-isnan.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/ast-utils.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/char-source.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/fix-tracker.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/keywords.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/regular-expressions.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/unicode/index.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js delete mode 100644 graphql/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js delete mode 100644 graphql/node_modules/eslint/lib/rules/valid-typeof.js delete mode 100644 graphql/node_modules/eslint/lib/rules/vars-on-top.js delete mode 100644 graphql/node_modules/eslint/lib/rules/wrap-iife.js delete mode 100644 graphql/node_modules/eslint/lib/rules/wrap-regex.js delete mode 100644 graphql/node_modules/eslint/lib/rules/yield-star-spacing.js delete mode 100644 graphql/node_modules/eslint/lib/rules/yoda.js delete mode 100644 graphql/node_modules/eslint/lib/shared/ajv.js delete mode 100644 graphql/node_modules/eslint/lib/shared/ast-utils.js delete mode 100644 graphql/node_modules/eslint/lib/shared/directives.js delete mode 100644 graphql/node_modules/eslint/lib/shared/flags.js delete mode 100644 graphql/node_modules/eslint/lib/shared/logging.js delete mode 100644 graphql/node_modules/eslint/lib/shared/runtime-info.js delete mode 100644 graphql/node_modules/eslint/lib/shared/serialization.js delete mode 100644 graphql/node_modules/eslint/lib/shared/severity.js delete mode 100644 graphql/node_modules/eslint/lib/shared/stats.js delete mode 100644 graphql/node_modules/eslint/lib/shared/string-utils.js delete mode 100644 graphql/node_modules/eslint/lib/shared/traverser.js delete mode 100644 graphql/node_modules/eslint/lib/shared/types.js delete mode 100644 graphql/node_modules/eslint/lib/unsupported-api.js delete mode 100644 graphql/node_modules/eslint/messages/all-files-ignored.js delete mode 100644 graphql/node_modules/eslint/messages/all-matched-files-ignored.js delete mode 100644 graphql/node_modules/eslint/messages/config-file-missing.js delete mode 100644 graphql/node_modules/eslint/messages/eslintrc-incompat.js delete mode 100644 graphql/node_modules/eslint/messages/eslintrc-plugins.js delete mode 100644 graphql/node_modules/eslint/messages/extend-config-missing.js delete mode 100644 graphql/node_modules/eslint/messages/failed-to-read-json.js delete mode 100644 graphql/node_modules/eslint/messages/file-not-found.js delete mode 100644 graphql/node_modules/eslint/messages/invalid-rule-options.js delete mode 100644 graphql/node_modules/eslint/messages/invalid-rule-severity.js delete mode 100644 graphql/node_modules/eslint/messages/no-config-found.js delete mode 100644 graphql/node_modules/eslint/messages/plugin-conflict.js delete mode 100644 graphql/node_modules/eslint/messages/plugin-invalid.js delete mode 100644 graphql/node_modules/eslint/messages/plugin-missing.js delete mode 100644 graphql/node_modules/eslint/messages/print-config-with-directory-path.js delete mode 100644 graphql/node_modules/eslint/messages/shared.js delete mode 100644 graphql/node_modules/eslint/messages/whitespace-found.js delete mode 100644 graphql/node_modules/eslint/package.json delete mode 100644 graphql/node_modules/espree/LICENSE delete mode 100644 graphql/node_modules/espree/README.md delete mode 100644 graphql/node_modules/espree/dist/espree.cjs delete mode 100644 graphql/node_modules/espree/espree.js delete mode 100644 graphql/node_modules/espree/lib/espree.js delete mode 100644 graphql/node_modules/espree/lib/features.js delete mode 100644 graphql/node_modules/espree/lib/options.js delete mode 100644 graphql/node_modules/espree/lib/token-translator.js delete mode 100644 graphql/node_modules/espree/lib/version.js delete mode 100644 graphql/node_modules/espree/package.json delete mode 100644 graphql/node_modules/esquery/README.md delete mode 100644 graphql/node_modules/esquery/dist/esquery.esm.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.esm.min.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.esm.min.js.map delete mode 100644 graphql/node_modules/esquery/dist/esquery.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.lite.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.lite.min.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.lite.min.js.map delete mode 100644 graphql/node_modules/esquery/dist/esquery.min.js delete mode 100644 graphql/node_modules/esquery/dist/esquery.min.js.map delete mode 100644 graphql/node_modules/esquery/license.txt delete mode 100644 graphql/node_modules/esquery/package.json delete mode 100644 graphql/node_modules/esquery/parser.js delete mode 100644 graphql/node_modules/esrecurse/.babelrc delete mode 100644 graphql/node_modules/esrecurse/README.md delete mode 100644 graphql/node_modules/esrecurse/esrecurse.js delete mode 100644 graphql/node_modules/esrecurse/gulpfile.babel.js delete mode 100755 graphql/node_modules/esrecurse/package.json delete mode 100644 graphql/node_modules/estraverse/.jshintrc delete mode 100644 graphql/node_modules/estraverse/LICENSE.BSD delete mode 100644 graphql/node_modules/estraverse/README.md delete mode 100644 graphql/node_modules/estraverse/estraverse.js delete mode 100644 graphql/node_modules/estraverse/gulpfile.js delete mode 100644 graphql/node_modules/estraverse/package.json delete mode 100644 graphql/node_modules/esutils/LICENSE.BSD delete mode 100644 graphql/node_modules/esutils/README.md delete mode 100644 graphql/node_modules/esutils/lib/ast.js delete mode 100644 graphql/node_modules/esutils/lib/code.js delete mode 100644 graphql/node_modules/esutils/lib/keyword.js delete mode 100644 graphql/node_modules/esutils/lib/utils.js delete mode 100644 graphql/node_modules/esutils/package.json delete mode 100644 graphql/node_modules/fast-deep-equal/LICENSE delete mode 100644 graphql/node_modules/fast-deep-equal/README.md delete mode 100644 graphql/node_modules/fast-deep-equal/es6/index.d.ts delete mode 100644 graphql/node_modules/fast-deep-equal/es6/index.js delete mode 100644 graphql/node_modules/fast-deep-equal/es6/react.d.ts delete mode 100644 graphql/node_modules/fast-deep-equal/es6/react.js delete mode 100644 graphql/node_modules/fast-deep-equal/index.d.ts delete mode 100644 graphql/node_modules/fast-deep-equal/index.js delete mode 100644 graphql/node_modules/fast-deep-equal/package.json delete mode 100644 graphql/node_modules/fast-deep-equal/react.d.ts delete mode 100644 graphql/node_modules/fast-deep-equal/react.js delete mode 100644 graphql/node_modules/fast-glob/LICENSE delete mode 100644 graphql/node_modules/fast-glob/README.md delete mode 100644 graphql/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md delete mode 100644 graphql/node_modules/fast-glob/node_modules/glob-parent/LICENSE delete mode 100644 graphql/node_modules/fast-glob/node_modules/glob-parent/README.md delete mode 100644 graphql/node_modules/fast-glob/node_modules/glob-parent/index.js delete mode 100644 graphql/node_modules/fast-glob/node_modules/glob-parent/package.json delete mode 100644 graphql/node_modules/fast-glob/out/index.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/index.js delete mode 100644 graphql/node_modules/fast-glob/out/managers/tasks.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/managers/tasks.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/async.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/async.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/deep.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/deep.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/entry.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/entry.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/error.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/filters/error.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/matchers/matcher.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/matchers/matcher.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/matchers/partial.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/matchers/partial.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/provider.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/provider.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/stream.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/stream.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/sync.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/sync.js delete mode 100644 graphql/node_modules/fast-glob/out/providers/transformers/entry.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/providers/transformers/entry.js delete mode 100644 graphql/node_modules/fast-glob/out/readers/async.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/readers/async.js delete mode 100644 graphql/node_modules/fast-glob/out/readers/reader.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/readers/reader.js delete mode 100644 graphql/node_modules/fast-glob/out/readers/stream.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/readers/stream.js delete mode 100644 graphql/node_modules/fast-glob/out/readers/sync.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/readers/sync.js delete mode 100644 graphql/node_modules/fast-glob/out/settings.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/settings.js delete mode 100644 graphql/node_modules/fast-glob/out/types/index.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/types/index.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/array.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/array.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/errno.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/errno.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/fs.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/fs.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/index.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/index.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/path.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/path.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/pattern.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/pattern.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/stream.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/stream.js delete mode 100644 graphql/node_modules/fast-glob/out/utils/string.d.ts delete mode 100644 graphql/node_modules/fast-glob/out/utils/string.js delete mode 100644 graphql/node_modules/fast-glob/package.json delete mode 100644 graphql/node_modules/fast-json-stable-stringify/.eslintrc.yml delete mode 100644 graphql/node_modules/fast-json-stable-stringify/.github/FUNDING.yml delete mode 100644 graphql/node_modules/fast-json-stable-stringify/.travis.yml delete mode 100644 graphql/node_modules/fast-json-stable-stringify/LICENSE delete mode 100644 graphql/node_modules/fast-json-stable-stringify/README.md delete mode 100644 graphql/node_modules/fast-json-stable-stringify/benchmark/index.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/benchmark/test.json delete mode 100644 graphql/node_modules/fast-json-stable-stringify/example/key_cmp.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/example/nested.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/example/str.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/example/value_cmp.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/index.d.ts delete mode 100644 graphql/node_modules/fast-json-stable-stringify/index.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/package.json delete mode 100644 graphql/node_modules/fast-json-stable-stringify/test/cmp.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/test/nested.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/test/str.js delete mode 100644 graphql/node_modules/fast-json-stable-stringify/test/to-json.js delete mode 100644 graphql/node_modules/fast-levenshtein/LICENSE.md delete mode 100644 graphql/node_modules/fast-levenshtein/README.md delete mode 100644 graphql/node_modules/fast-levenshtein/levenshtein.js delete mode 100644 graphql/node_modules/fast-levenshtein/package.json delete mode 100644 graphql/node_modules/fastq/.github/dependabot.yml delete mode 100644 graphql/node_modules/fastq/.github/workflows/ci.yml delete mode 100644 graphql/node_modules/fastq/LICENSE delete mode 100644 graphql/node_modules/fastq/README.md delete mode 100644 graphql/node_modules/fastq/bench.js delete mode 100644 graphql/node_modules/fastq/example.js delete mode 100644 graphql/node_modules/fastq/example.mjs delete mode 100644 graphql/node_modules/fastq/index.d.ts delete mode 100644 graphql/node_modules/fastq/package.json delete mode 100644 graphql/node_modules/fastq/queue.js delete mode 100644 graphql/node_modules/fastq/test/example.ts delete mode 100644 graphql/node_modules/fastq/test/promise.js delete mode 100644 graphql/node_modules/fastq/test/test.js delete mode 100644 graphql/node_modules/fastq/test/tsconfig.json delete mode 100644 graphql/node_modules/file-entry-cache/LICENSE delete mode 100644 graphql/node_modules/file-entry-cache/README.md delete mode 100644 graphql/node_modules/file-entry-cache/cache.js delete mode 100644 graphql/node_modules/file-entry-cache/package.json delete mode 100644 graphql/node_modules/fill-range/LICENSE delete mode 100644 graphql/node_modules/fill-range/README.md delete mode 100644 graphql/node_modules/fill-range/index.js delete mode 100644 graphql/node_modules/fill-range/package.json delete mode 100644 graphql/node_modules/find-up/index.d.ts delete mode 100644 graphql/node_modules/find-up/index.js delete mode 100644 graphql/node_modules/find-up/license delete mode 100644 graphql/node_modules/find-up/package.json delete mode 100644 graphql/node_modules/find-up/readme.md delete mode 100644 graphql/node_modules/flat-cache/LICENSE delete mode 100644 graphql/node_modules/flat-cache/README.md delete mode 100644 graphql/node_modules/flat-cache/changelog.md delete mode 100644 graphql/node_modules/flat-cache/package.json delete mode 100644 graphql/node_modules/flat-cache/src/cache.js delete mode 100644 graphql/node_modules/flat-cache/src/del.js delete mode 100644 graphql/node_modules/flat-cache/src/utils.js delete mode 100644 graphql/node_modules/flatted/LICENSE delete mode 100644 graphql/node_modules/flatted/README.md delete mode 100644 graphql/node_modules/flatted/cjs/index.js delete mode 100644 graphql/node_modules/flatted/cjs/package.json delete mode 100644 graphql/node_modules/flatted/es.js delete mode 100644 graphql/node_modules/flatted/esm.js delete mode 100644 graphql/node_modules/flatted/esm/index.js delete mode 100644 graphql/node_modules/flatted/index.js delete mode 100644 graphql/node_modules/flatted/min.js delete mode 100644 graphql/node_modules/flatted/package.json delete mode 100644 graphql/node_modules/flatted/php/flatted.php delete mode 100644 graphql/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc delete mode 100644 graphql/node_modules/flatted/python/flatted.py delete mode 100644 graphql/node_modules/flatted/python/test.py delete mode 100644 graphql/node_modules/flatted/types/index.d.ts delete mode 100644 graphql/node_modules/glob-parent/LICENSE delete mode 100644 graphql/node_modules/glob-parent/README.md delete mode 100644 graphql/node_modules/glob-parent/index.js delete mode 100644 graphql/node_modules/glob-parent/package.json delete mode 100644 graphql/node_modules/globals/globals.json delete mode 100644 graphql/node_modules/globals/index.d.ts delete mode 100644 graphql/node_modules/globals/index.js delete mode 100644 graphql/node_modules/globals/license delete mode 100644 graphql/node_modules/globals/package.json delete mode 100644 graphql/node_modules/globals/readme.md delete mode 100644 graphql/node_modules/globby/gitignore.js delete mode 100644 graphql/node_modules/globby/index.d.ts delete mode 100644 graphql/node_modules/globby/index.js delete mode 100644 graphql/node_modules/globby/license delete mode 100644 graphql/node_modules/globby/package.json delete mode 100644 graphql/node_modules/globby/readme.md delete mode 100644 graphql/node_modules/globby/stream-utils.js delete mode 100644 graphql/node_modules/graphemer/CHANGELOG.md delete mode 100644 graphql/node_modules/graphemer/LICENSE delete mode 100644 graphql/node_modules/graphemer/README.md delete mode 100644 graphql/node_modules/graphemer/lib/Graphemer.d.ts delete mode 100644 graphql/node_modules/graphemer/lib/Graphemer.d.ts.map delete mode 100644 graphql/node_modules/graphemer/lib/Graphemer.js delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts.map delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerHelper.js delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts.map delete mode 100644 graphql/node_modules/graphemer/lib/GraphemerIterator.js delete mode 100644 graphql/node_modules/graphemer/lib/boundaries.d.ts delete mode 100644 graphql/node_modules/graphemer/lib/boundaries.d.ts.map delete mode 100644 graphql/node_modules/graphemer/lib/boundaries.js delete mode 100644 graphql/node_modules/graphemer/lib/index.d.ts delete mode 100644 graphql/node_modules/graphemer/lib/index.d.ts.map delete mode 100644 graphql/node_modules/graphemer/lib/index.js delete mode 100644 graphql/node_modules/graphemer/package.json delete mode 100644 graphql/node_modules/has-flag/index.d.ts delete mode 100644 graphql/node_modules/has-flag/index.js delete mode 100644 graphql/node_modules/has-flag/license delete mode 100644 graphql/node_modules/has-flag/package.json delete mode 100644 graphql/node_modules/has-flag/readme.md delete mode 100644 graphql/node_modules/ignore/LICENSE-MIT delete mode 100644 graphql/node_modules/ignore/README.md delete mode 100644 graphql/node_modules/ignore/index.d.ts delete mode 100644 graphql/node_modules/ignore/index.js delete mode 100644 graphql/node_modules/ignore/legacy.js delete mode 100644 graphql/node_modules/ignore/package.json delete mode 100644 graphql/node_modules/import-fresh/index.d.ts delete mode 100644 graphql/node_modules/import-fresh/index.js delete mode 100644 graphql/node_modules/import-fresh/license delete mode 100644 graphql/node_modules/import-fresh/package.json delete mode 100644 graphql/node_modules/import-fresh/readme.md delete mode 100644 graphql/node_modules/imurmurhash/README.md delete mode 100644 graphql/node_modules/imurmurhash/imurmurhash.js delete mode 100644 graphql/node_modules/imurmurhash/imurmurhash.min.js delete mode 100644 graphql/node_modules/imurmurhash/package.json delete mode 100644 graphql/node_modules/is-extglob/LICENSE delete mode 100644 graphql/node_modules/is-extglob/README.md delete mode 100644 graphql/node_modules/is-extglob/index.js delete mode 100644 graphql/node_modules/is-extglob/package.json delete mode 100644 graphql/node_modules/is-glob/LICENSE delete mode 100644 graphql/node_modules/is-glob/README.md delete mode 100644 graphql/node_modules/is-glob/index.js delete mode 100644 graphql/node_modules/is-glob/package.json delete mode 100644 graphql/node_modules/is-number/LICENSE delete mode 100644 graphql/node_modules/is-number/README.md delete mode 100644 graphql/node_modules/is-number/index.js delete mode 100644 graphql/node_modules/is-number/package.json delete mode 100644 graphql/node_modules/is-path-inside/index.d.ts delete mode 100644 graphql/node_modules/is-path-inside/index.js delete mode 100644 graphql/node_modules/is-path-inside/license delete mode 100644 graphql/node_modules/is-path-inside/package.json delete mode 100644 graphql/node_modules/is-path-inside/readme.md delete mode 100644 graphql/node_modules/isexe/.npmignore delete mode 100644 graphql/node_modules/isexe/LICENSE delete mode 100644 graphql/node_modules/isexe/README.md delete mode 100644 graphql/node_modules/isexe/index.js delete mode 100644 graphql/node_modules/isexe/mode.js delete mode 100644 graphql/node_modules/isexe/package.json delete mode 100644 graphql/node_modules/isexe/test/basic.js delete mode 100644 graphql/node_modules/isexe/windows.js delete mode 100644 graphql/node_modules/js-yaml/CHANGELOG.md delete mode 100644 graphql/node_modules/js-yaml/LICENSE delete mode 100644 graphql/node_modules/js-yaml/README.md delete mode 100755 graphql/node_modules/js-yaml/bin/js-yaml.js delete mode 100644 graphql/node_modules/js-yaml/dist/js-yaml.js delete mode 100644 graphql/node_modules/js-yaml/dist/js-yaml.min.js delete mode 100644 graphql/node_modules/js-yaml/dist/js-yaml.mjs delete mode 100644 graphql/node_modules/js-yaml/index.js delete mode 100644 graphql/node_modules/js-yaml/lib/common.js delete mode 100644 graphql/node_modules/js-yaml/lib/dumper.js delete mode 100644 graphql/node_modules/js-yaml/lib/exception.js delete mode 100644 graphql/node_modules/js-yaml/lib/loader.js delete mode 100644 graphql/node_modules/js-yaml/lib/schema.js delete mode 100644 graphql/node_modules/js-yaml/lib/schema/core.js delete mode 100644 graphql/node_modules/js-yaml/lib/schema/default.js delete mode 100644 graphql/node_modules/js-yaml/lib/schema/failsafe.js delete mode 100644 graphql/node_modules/js-yaml/lib/schema/json.js delete mode 100644 graphql/node_modules/js-yaml/lib/snippet.js delete mode 100644 graphql/node_modules/js-yaml/lib/type.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/binary.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/bool.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/float.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/int.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/map.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/merge.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/null.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/omap.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/pairs.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/seq.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/set.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/str.js delete mode 100644 graphql/node_modules/js-yaml/lib/type/timestamp.js delete mode 100644 graphql/node_modules/js-yaml/package.json delete mode 100644 graphql/node_modules/json-buffer/.travis.yml delete mode 100644 graphql/node_modules/json-buffer/LICENSE delete mode 100644 graphql/node_modules/json-buffer/README.md delete mode 100644 graphql/node_modules/json-buffer/index.js delete mode 100644 graphql/node_modules/json-buffer/package.json delete mode 100644 graphql/node_modules/json-buffer/test/index.js delete mode 100644 graphql/node_modules/json-schema-traverse/.eslintrc.yml delete mode 100644 graphql/node_modules/json-schema-traverse/.travis.yml delete mode 100644 graphql/node_modules/json-schema-traverse/LICENSE delete mode 100644 graphql/node_modules/json-schema-traverse/README.md delete mode 100644 graphql/node_modules/json-schema-traverse/index.js delete mode 100644 graphql/node_modules/json-schema-traverse/package.json delete mode 100644 graphql/node_modules/json-schema-traverse/spec/.eslintrc.yml delete mode 100644 graphql/node_modules/json-schema-traverse/spec/fixtures/schema.js delete mode 100644 graphql/node_modules/json-schema-traverse/spec/index.spec.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/.npmignore delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/.travis.yml delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/LICENSE delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/example/key_cmp.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/example/nested.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/example/str.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/example/value_cmp.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/index.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/package.json delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/readme.markdown delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/cmp.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/nested.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/replacer.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/space.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/str.js delete mode 100644 graphql/node_modules/json-stable-stringify-without-jsonify/test/to-json.js delete mode 100644 graphql/node_modules/keyv/README.md delete mode 100644 graphql/node_modules/keyv/package.json delete mode 100644 graphql/node_modules/keyv/src/index.d.ts delete mode 100644 graphql/node_modules/keyv/src/index.js delete mode 100644 graphql/node_modules/levn/LICENSE delete mode 100644 graphql/node_modules/levn/README.md delete mode 100644 graphql/node_modules/levn/lib/cast.js delete mode 100644 graphql/node_modules/levn/lib/index.js delete mode 100644 graphql/node_modules/levn/lib/parse-string.js delete mode 100644 graphql/node_modules/levn/package.json delete mode 100644 graphql/node_modules/locate-path/index.d.ts delete mode 100644 graphql/node_modules/locate-path/index.js delete mode 100644 graphql/node_modules/locate-path/license delete mode 100644 graphql/node_modules/locate-path/package.json delete mode 100644 graphql/node_modules/locate-path/readme.md delete mode 100644 graphql/node_modules/lodash.merge/LICENSE delete mode 100644 graphql/node_modules/lodash.merge/README.md delete mode 100644 graphql/node_modules/lodash.merge/index.js delete mode 100644 graphql/node_modules/lodash.merge/package.json delete mode 100644 graphql/node_modules/merge2/LICENSE delete mode 100644 graphql/node_modules/merge2/README.md delete mode 100644 graphql/node_modules/merge2/index.js delete mode 100644 graphql/node_modules/merge2/package.json delete mode 100755 graphql/node_modules/micromatch/LICENSE delete mode 100644 graphql/node_modules/micromatch/README.md delete mode 100644 graphql/node_modules/micromatch/index.js delete mode 100644 graphql/node_modules/micromatch/package.json delete mode 100644 graphql/node_modules/minimatch/LICENSE delete mode 100644 graphql/node_modules/minimatch/README.md delete mode 100644 graphql/node_modules/minimatch/minimatch.js delete mode 100644 graphql/node_modules/minimatch/package.json delete mode 100644 graphql/node_modules/ms/index.js delete mode 100644 graphql/node_modules/ms/license.md delete mode 100644 graphql/node_modules/ms/package.json delete mode 100644 graphql/node_modules/ms/readme.md delete mode 100644 graphql/node_modules/natural-compare/README.md delete mode 100644 graphql/node_modules/natural-compare/index.js delete mode 100644 graphql/node_modules/natural-compare/package.json delete mode 100644 graphql/node_modules/optionator/CHANGELOG.md delete mode 100644 graphql/node_modules/optionator/LICENSE delete mode 100644 graphql/node_modules/optionator/README.md delete mode 100644 graphql/node_modules/optionator/lib/help.js delete mode 100644 graphql/node_modules/optionator/lib/index.js delete mode 100644 graphql/node_modules/optionator/lib/util.js delete mode 100644 graphql/node_modules/optionator/package.json delete mode 100644 graphql/node_modules/p-limit/index.d.ts delete mode 100644 graphql/node_modules/p-limit/index.js delete mode 100644 graphql/node_modules/p-limit/license delete mode 100644 graphql/node_modules/p-limit/package.json delete mode 100644 graphql/node_modules/p-limit/readme.md delete mode 100644 graphql/node_modules/p-locate/index.d.ts delete mode 100644 graphql/node_modules/p-locate/index.js delete mode 100644 graphql/node_modules/p-locate/license delete mode 100644 graphql/node_modules/p-locate/package.json delete mode 100644 graphql/node_modules/p-locate/readme.md delete mode 100644 graphql/node_modules/parent-module/index.js delete mode 100644 graphql/node_modules/parent-module/license delete mode 100644 graphql/node_modules/parent-module/package.json delete mode 100644 graphql/node_modules/parent-module/readme.md delete mode 100644 graphql/node_modules/path-exists/index.d.ts delete mode 100644 graphql/node_modules/path-exists/index.js delete mode 100644 graphql/node_modules/path-exists/license delete mode 100644 graphql/node_modules/path-exists/package.json delete mode 100644 graphql/node_modules/path-exists/readme.md delete mode 100644 graphql/node_modules/path-key/index.d.ts delete mode 100644 graphql/node_modules/path-key/index.js delete mode 100644 graphql/node_modules/path-key/license delete mode 100644 graphql/node_modules/path-key/package.json delete mode 100644 graphql/node_modules/path-key/readme.md delete mode 100644 graphql/node_modules/path-type/index.d.ts delete mode 100644 graphql/node_modules/path-type/index.js delete mode 100644 graphql/node_modules/path-type/license delete mode 100644 graphql/node_modules/path-type/package.json delete mode 100644 graphql/node_modules/path-type/readme.md delete mode 100644 graphql/node_modules/picomatch/CHANGELOG.md delete mode 100644 graphql/node_modules/picomatch/LICENSE delete mode 100644 graphql/node_modules/picomatch/README.md delete mode 100644 graphql/node_modules/picomatch/index.js delete mode 100644 graphql/node_modules/picomatch/lib/constants.js delete mode 100644 graphql/node_modules/picomatch/lib/parse.js delete mode 100644 graphql/node_modules/picomatch/lib/picomatch.js delete mode 100644 graphql/node_modules/picomatch/lib/scan.js delete mode 100644 graphql/node_modules/picomatch/lib/utils.js delete mode 100644 graphql/node_modules/picomatch/package.json delete mode 100644 graphql/node_modules/prelude-ls/CHANGELOG.md delete mode 100644 graphql/node_modules/prelude-ls/LICENSE delete mode 100644 graphql/node_modules/prelude-ls/README.md delete mode 100644 graphql/node_modules/prelude-ls/lib/Func.js delete mode 100644 graphql/node_modules/prelude-ls/lib/List.js delete mode 100644 graphql/node_modules/prelude-ls/lib/Num.js delete mode 100644 graphql/node_modules/prelude-ls/lib/Obj.js delete mode 100644 graphql/node_modules/prelude-ls/lib/Str.js delete mode 100644 graphql/node_modules/prelude-ls/lib/index.js delete mode 100644 graphql/node_modules/prelude-ls/package.json delete mode 100644 graphql/node_modules/punycode/LICENSE-MIT.txt delete mode 100644 graphql/node_modules/punycode/README.md delete mode 100644 graphql/node_modules/punycode/package.json delete mode 100644 graphql/node_modules/punycode/punycode.es6.js delete mode 100644 graphql/node_modules/punycode/punycode.js delete mode 100755 graphql/node_modules/queue-microtask/LICENSE delete mode 100644 graphql/node_modules/queue-microtask/README.md delete mode 100644 graphql/node_modules/queue-microtask/index.d.ts delete mode 100644 graphql/node_modules/queue-microtask/index.js delete mode 100644 graphql/node_modules/queue-microtask/package.json delete mode 100644 graphql/node_modules/resolve-from/index.js delete mode 100644 graphql/node_modules/resolve-from/license delete mode 100644 graphql/node_modules/resolve-from/package.json delete mode 100644 graphql/node_modules/resolve-from/readme.md delete mode 100644 graphql/node_modules/reusify/.coveralls.yml delete mode 100644 graphql/node_modules/reusify/.travis.yml delete mode 100644 graphql/node_modules/reusify/LICENSE delete mode 100644 graphql/node_modules/reusify/README.md delete mode 100644 graphql/node_modules/reusify/benchmarks/createNoCodeFunction.js delete mode 100644 graphql/node_modules/reusify/benchmarks/fib.js delete mode 100644 graphql/node_modules/reusify/benchmarks/reuseNoCodeFunction.js delete mode 100644 graphql/node_modules/reusify/package.json delete mode 100644 graphql/node_modules/reusify/reusify.js delete mode 100644 graphql/node_modules/reusify/test.js delete mode 100644 graphql/node_modules/run-parallel/LICENSE delete mode 100644 graphql/node_modules/run-parallel/README.md delete mode 100644 graphql/node_modules/run-parallel/index.js delete mode 100644 graphql/node_modules/run-parallel/package.json delete mode 100644 graphql/node_modules/semver/LICENSE delete mode 100644 graphql/node_modules/semver/README.md delete mode 100755 graphql/node_modules/semver/bin/semver.js delete mode 100644 graphql/node_modules/semver/classes/comparator.js delete mode 100644 graphql/node_modules/semver/classes/index.js delete mode 100644 graphql/node_modules/semver/classes/range.js delete mode 100644 graphql/node_modules/semver/classes/semver.js delete mode 100644 graphql/node_modules/semver/functions/clean.js delete mode 100644 graphql/node_modules/semver/functions/cmp.js delete mode 100644 graphql/node_modules/semver/functions/coerce.js delete mode 100644 graphql/node_modules/semver/functions/compare-build.js delete mode 100644 graphql/node_modules/semver/functions/compare-loose.js delete mode 100644 graphql/node_modules/semver/functions/compare.js delete mode 100644 graphql/node_modules/semver/functions/diff.js delete mode 100644 graphql/node_modules/semver/functions/eq.js delete mode 100644 graphql/node_modules/semver/functions/gt.js delete mode 100644 graphql/node_modules/semver/functions/gte.js delete mode 100644 graphql/node_modules/semver/functions/inc.js delete mode 100644 graphql/node_modules/semver/functions/lt.js delete mode 100644 graphql/node_modules/semver/functions/lte.js delete mode 100644 graphql/node_modules/semver/functions/major.js delete mode 100644 graphql/node_modules/semver/functions/minor.js delete mode 100644 graphql/node_modules/semver/functions/neq.js delete mode 100644 graphql/node_modules/semver/functions/parse.js delete mode 100644 graphql/node_modules/semver/functions/patch.js delete mode 100644 graphql/node_modules/semver/functions/prerelease.js delete mode 100644 graphql/node_modules/semver/functions/rcompare.js delete mode 100644 graphql/node_modules/semver/functions/rsort.js delete mode 100644 graphql/node_modules/semver/functions/satisfies.js delete mode 100644 graphql/node_modules/semver/functions/sort.js delete mode 100644 graphql/node_modules/semver/functions/valid.js delete mode 100644 graphql/node_modules/semver/index.js delete mode 100644 graphql/node_modules/semver/internal/constants.js delete mode 100644 graphql/node_modules/semver/internal/debug.js delete mode 100644 graphql/node_modules/semver/internal/identifiers.js delete mode 100644 graphql/node_modules/semver/internal/lrucache.js delete mode 100644 graphql/node_modules/semver/internal/parse-options.js delete mode 100644 graphql/node_modules/semver/internal/re.js delete mode 100644 graphql/node_modules/semver/package.json delete mode 100644 graphql/node_modules/semver/preload.js delete mode 100644 graphql/node_modules/semver/range.bnf delete mode 100644 graphql/node_modules/semver/ranges/gtr.js delete mode 100644 graphql/node_modules/semver/ranges/intersects.js delete mode 100644 graphql/node_modules/semver/ranges/ltr.js delete mode 100644 graphql/node_modules/semver/ranges/max-satisfying.js delete mode 100644 graphql/node_modules/semver/ranges/min-satisfying.js delete mode 100644 graphql/node_modules/semver/ranges/min-version.js delete mode 100644 graphql/node_modules/semver/ranges/outside.js delete mode 100644 graphql/node_modules/semver/ranges/simplify.js delete mode 100644 graphql/node_modules/semver/ranges/subset.js delete mode 100644 graphql/node_modules/semver/ranges/to-comparators.js delete mode 100644 graphql/node_modules/semver/ranges/valid.js delete mode 100644 graphql/node_modules/shebang-command/index.js delete mode 100644 graphql/node_modules/shebang-command/license delete mode 100644 graphql/node_modules/shebang-command/package.json delete mode 100644 graphql/node_modules/shebang-command/readme.md delete mode 100644 graphql/node_modules/shebang-regex/index.d.ts delete mode 100644 graphql/node_modules/shebang-regex/index.js delete mode 100644 graphql/node_modules/shebang-regex/license delete mode 100644 graphql/node_modules/shebang-regex/package.json delete mode 100644 graphql/node_modules/shebang-regex/readme.md delete mode 100644 graphql/node_modules/slash/index.d.ts delete mode 100644 graphql/node_modules/slash/index.js delete mode 100644 graphql/node_modules/slash/license delete mode 100644 graphql/node_modules/slash/package.json delete mode 100644 graphql/node_modules/slash/readme.md delete mode 100644 graphql/node_modules/strip-ansi/index.d.ts delete mode 100644 graphql/node_modules/strip-ansi/index.js delete mode 100644 graphql/node_modules/strip-ansi/license delete mode 100644 graphql/node_modules/strip-ansi/package.json delete mode 100644 graphql/node_modules/strip-ansi/readme.md delete mode 100644 graphql/node_modules/strip-json-comments/index.d.ts delete mode 100644 graphql/node_modules/strip-json-comments/index.js delete mode 100644 graphql/node_modules/strip-json-comments/license delete mode 100644 graphql/node_modules/strip-json-comments/package.json delete mode 100644 graphql/node_modules/strip-json-comments/readme.md delete mode 100644 graphql/node_modules/supports-color/browser.js delete mode 100644 graphql/node_modules/supports-color/index.js delete mode 100644 graphql/node_modules/supports-color/license delete mode 100644 graphql/node_modules/supports-color/package.json delete mode 100644 graphql/node_modules/supports-color/readme.md delete mode 100644 graphql/node_modules/text-table/.travis.yml delete mode 100644 graphql/node_modules/text-table/LICENSE delete mode 100644 graphql/node_modules/text-table/example/align.js delete mode 100644 graphql/node_modules/text-table/example/center.js delete mode 100644 graphql/node_modules/text-table/example/dotalign.js delete mode 100644 graphql/node_modules/text-table/example/doubledot.js delete mode 100644 graphql/node_modules/text-table/example/table.js delete mode 100644 graphql/node_modules/text-table/index.js delete mode 100644 graphql/node_modules/text-table/package.json delete mode 100644 graphql/node_modules/text-table/readme.markdown delete mode 100644 graphql/node_modules/text-table/test/align.js delete mode 100644 graphql/node_modules/text-table/test/ansi-colors.js delete mode 100644 graphql/node_modules/text-table/test/center.js delete mode 100644 graphql/node_modules/text-table/test/dotalign.js delete mode 100644 graphql/node_modules/text-table/test/doubledot.js delete mode 100644 graphql/node_modules/text-table/test/table.js delete mode 100644 graphql/node_modules/to-regex-range/LICENSE delete mode 100644 graphql/node_modules/to-regex-range/README.md delete mode 100644 graphql/node_modules/to-regex-range/index.js delete mode 100644 graphql/node_modules/to-regex-range/package.json delete mode 100644 graphql/node_modules/ts-api-utils/LICENSE.md delete mode 100644 graphql/node_modules/ts-api-utils/README.md delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.cjs delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.cjs.map delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.d.cts delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.d.ts delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.js delete mode 100644 graphql/node_modules/ts-api-utils/lib/index.js.map delete mode 100644 graphql/node_modules/ts-api-utils/package.json delete mode 100644 graphql/node_modules/type-check/LICENSE delete mode 100644 graphql/node_modules/type-check/README.md delete mode 100644 graphql/node_modules/type-check/lib/check.js delete mode 100644 graphql/node_modules/type-check/lib/index.js delete mode 100644 graphql/node_modules/type-check/lib/parse-type.js delete mode 100644 graphql/node_modules/type-check/package.json delete mode 100644 graphql/node_modules/typescript-eslint/LICENSE delete mode 100644 graphql/node_modules/typescript-eslint/README.md delete mode 100644 graphql/node_modules/typescript-eslint/dist/config-helper.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/config-helper.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/config-helper.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/config-helper.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/all.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/all.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/all.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/all.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/base.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/base.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/base.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/base.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/recommended.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/strict.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/configs/stylistic.js.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/index.d.ts delete mode 100644 graphql/node_modules/typescript-eslint/dist/index.d.ts.map delete mode 100644 graphql/node_modules/typescript-eslint/dist/index.js delete mode 100644 graphql/node_modules/typescript-eslint/dist/index.js.map delete mode 100644 graphql/node_modules/typescript-eslint/package.json delete mode 100644 graphql/node_modules/typescript/LICENSE.txt delete mode 100644 graphql/node_modules/typescript/README.md delete mode 100644 graphql/node_modules/typescript/SECURITY.md delete mode 100644 graphql/node_modules/typescript/ThirdPartyNoticeText.txt delete mode 100755 graphql/node_modules/typescript/bin/tsc delete mode 100755 graphql/node_modules/typescript/bin/tsserver delete mode 100644 graphql/node_modules/typescript/lib/cancellationToken.js delete mode 100644 graphql/node_modules/typescript/lib/cs/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/de/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/es/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/fr/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/it/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/ja/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/ko/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/lib.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.decorators.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.decorators.legacy.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.dom.asynciterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.dom.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.dom.iterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.collection.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.core.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.generator.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.iterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.promise.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.proxy.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.reflect.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.symbol.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2016.array.include.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2016.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2016.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2016.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.date.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.object.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.promise.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2018.regexp.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.array.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.object.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2019.symbol.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.bigint.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.date.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.number.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.promise.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.promise.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2021.weakref.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.array.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.error.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.object.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.regexp.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2022.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2023.array.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2023.collection.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2023.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2023.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es2023.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es5.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.es6.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.array.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.collection.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.decorators.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.disposable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.full.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.intl.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.object.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.promise.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.regexp.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.esnext.string.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.scripthost.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.webworker.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.webworker.importscripts.d.ts delete mode 100644 graphql/node_modules/typescript/lib/lib.webworker.iterable.d.ts delete mode 100644 graphql/node_modules/typescript/lib/pl/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/ru/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/tr/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/tsc.js delete mode 100644 graphql/node_modules/typescript/lib/tsserver.js delete mode 100644 graphql/node_modules/typescript/lib/tsserverlibrary.d.ts delete mode 100644 graphql/node_modules/typescript/lib/tsserverlibrary.js delete mode 100644 graphql/node_modules/typescript/lib/typesMap.json delete mode 100644 graphql/node_modules/typescript/lib/typescript.d.ts delete mode 100644 graphql/node_modules/typescript/lib/typescript.js delete mode 100644 graphql/node_modules/typescript/lib/typingsInstaller.js delete mode 100644 graphql/node_modules/typescript/lib/watchGuard.js delete mode 100644 graphql/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json delete mode 100644 graphql/node_modules/typescript/package.json delete mode 100755 graphql/node_modules/uri-js/LICENSE delete mode 100755 graphql/node_modules/uri-js/README.md delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.js delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.js.map delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.min.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.min.js delete mode 100755 graphql/node_modules/uri-js/dist/es5/uri.all.min.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/index.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/index.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/index.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-iri.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-iri.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-iri.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-uri.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-uri.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/regexps-uri.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/http.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/http.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/http.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/https.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/https.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/https.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/mailto.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/mailto.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/urn.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/ws.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/ws.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/ws.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/wss.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/wss.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/schemes/wss.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/uri.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/uri.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/uri.js.map delete mode 100755 graphql/node_modules/uri-js/dist/esnext/util.d.ts delete mode 100755 graphql/node_modules/uri-js/dist/esnext/util.js delete mode 100755 graphql/node_modules/uri-js/dist/esnext/util.js.map delete mode 100755 graphql/node_modules/uri-js/package.json delete mode 100755 graphql/node_modules/uri-js/yarn.lock delete mode 100644 graphql/node_modules/which/CHANGELOG.md delete mode 100644 graphql/node_modules/which/LICENSE delete mode 100644 graphql/node_modules/which/README.md delete mode 100755 graphql/node_modules/which/bin/node-which delete mode 100644 graphql/node_modules/which/package.json delete mode 100644 graphql/node_modules/which/which.js delete mode 100644 graphql/node_modules/word-wrap/LICENSE delete mode 100644 graphql/node_modules/word-wrap/README.md delete mode 100644 graphql/node_modules/word-wrap/index.d.ts delete mode 100644 graphql/node_modules/word-wrap/index.js delete mode 100644 graphql/node_modules/word-wrap/package.json delete mode 100644 graphql/node_modules/yocto-queue/index.d.ts delete mode 100644 graphql/node_modules/yocto-queue/index.js delete mode 100644 graphql/node_modules/yocto-queue/license delete mode 100644 graphql/node_modules/yocto-queue/package.json delete mode 100644 graphql/node_modules/yocto-queue/readme.md diff --git a/.github/workflows/environment-main-deploy.yaml b/.github/workflows/environment-main-deploy.yaml index f69a4543..3ad536db 100644 --- a/.github/workflows/environment-main-deploy.yaml +++ b/.github/workflows/environment-main-deploy.yaml @@ -20,12 +20,25 @@ jobs: steps: - name: Checkout code uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install esbuild + run: npm install -g esbuild + + - name: Compile graphql + run: make graphql + - name: Configure AWS Access uses: aws-actions/configure-aws-credentials@55f725fcb586ca16a5ed5b0d75d464defbfa831b with: role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.AWS_ROLE }} role-session-name: GitHubDeploy-${{ vars.ENVIRONMENT }} aws-region: ${{ vars.AWS_REGION }} + - name: terraform apply uses: dflook/terraform-apply@7d435d4d115a11e5db1e710ac969f5382f0f6f9f with: diff --git a/.github/workflows/environment-main-plan.yaml b/.github/workflows/environment-main-plan.yaml index 199bf002..a0c3496e 100644 --- a/.github/workflows/environment-main-plan.yaml +++ b/.github/workflows/environment-main-plan.yaml @@ -18,12 +18,25 @@ jobs: steps: - name: Checkout code uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install esbuild + run: npm install -g esbuild + + - name: Compile graphql + run: make graphql + - name: Configure AWS Access uses: aws-actions/configure-aws-credentials@55f725fcb586ca16a5ed5b0d75d464defbfa831b with: role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.AWS_ROLE }} role-session-name: GitHubTest-${{ vars.ENVIRONMENT }} aws-region: ${{ vars.AWS_REGION }} + - name: terraform plan uses: dflook/terraform-plan@b0877a1bf56160160ab482f4aff8a12fff35fe06 with: diff --git a/.gitignore b/.gitignore index 4a96fb25..bec5d45d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,7 @@ terraform.rc .validate .apply plan.tfplan + +graphql/node_modules +graphql/mutation/*/appsync.js +graphql/query/*/appsync.js diff --git a/graphql/graphql.mk b/graphql/graphql.mk index 93755da3..14c0971f 100644 --- a/graphql/graphql.mk +++ b/graphql/graphql.mk @@ -11,7 +11,7 @@ graphql/%/appsync.js: graphql/node_modules graphql/%/appsync.ts --outdir=$* graphql/node_modules: graphql/package.json - cd graphql && npm install + cd graphql && npm install && npm ci GRAPHQL := $(patsubst %.ts,%.js,$(wildcard graphql/*/*/appsync.ts)) diff --git a/graphql/mutation/createGame/appsync.js b/graphql/mutation/createGame/appsync.js deleted file mode 100644 index f57a83e6..00000000 --- a/graphql/mutation/createGame/appsync.js +++ /dev/null @@ -1,38 +0,0 @@ -// mutation/createGame/appsync.ts -import { util } from "@aws-appsync/utils"; -function request(context) { - if (!context.identity) { - util.error("Unauthorized: Identity information is missing."); - } - const identity = context.identity; - if (!identity.sub) { - util.error("Unauthorized: User ID is missing."); - } - const input = context.arguments.input; - const id = util.autoId(); - const timestamp = util.time.nowISO8601(); - return { - operation: "PutItem", - key: util.dynamodb.toMapValues({ PK: "GAME#" + id, SK: "GAME" }), - attributeValues: util.dynamodb.toMapValues({ - name: input.name, - description: input.description, - id, - fireflyUserId: identity.sub, - createdAt: timestamp, - updatedAt: timestamp - }) - }; -} -function response(context) { - if (context.error) { - util.appendError(context.error.message, context.error.type, context.result); - return; - } - return context.result; -} -export { - request, - response -}; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiYXBwc3luYy50cyJdLAogICJtYXBwaW5ncyI6ICI7QUFBQSxTQUFTLFlBQStGO0FBY2pHLFNBQVMsUUFBUSxTQUFzRTtBQUMxRixNQUFJLENBQUMsUUFBUSxVQUFVO0FBQ25CLFNBQUssTUFBTSxnREFBMEQ7QUFBQSxFQUN6RTtBQUVBLFFBQU0sV0FBVyxRQUFRO0FBQ3pCLE1BQUksQ0FBQyxTQUFTLEtBQUs7QUFDZixTQUFLLE1BQU0sbUNBQTZDO0FBQUEsRUFDNUQ7QUFFQSxRQUFNLFFBQVEsUUFBUSxVQUFVO0FBQ2hDLFFBQU0sS0FBSyxLQUFLLE9BQU87QUFDdkIsUUFBTSxZQUFZLEtBQUssS0FBSyxXQUFXO0FBQ3ZDLFNBQU87QUFBQSxJQUNILFdBQVc7QUFBQSxJQUNYLEtBQUssS0FBSyxTQUFTLFlBQVksRUFBRSxJQUFJLFVBQVEsSUFBSSxJQUFJLE9BQU8sQ0FBQztBQUFBLElBQzdELGlCQUFpQixLQUFLLFNBQVMsWUFBWTtBQUFBLE1BQ3ZDLE1BQU0sTUFBTTtBQUFBLE1BQ1osYUFBYSxNQUFNO0FBQUEsTUFDbkI7QUFBQSxNQUNBLGVBQWUsU0FBUztBQUFBLE1BQ3hCLFdBQVc7QUFBQSxNQUNYLFdBQVc7QUFBQSxJQUNmLENBQUM7QUFBQSxFQUNMO0FBQ0o7QUFFTyxTQUFTLFNBQVMsU0FBMkI7QUFDaEQsTUFBSSxRQUFRLE9BQU87QUFDZixTQUFLLFlBQVksUUFBUSxNQUFNLFNBQVMsUUFBUSxNQUFNLE1BQU0sUUFBUSxNQUFNO0FBQzFFO0FBQUEsRUFDSjtBQUNBLFNBQU8sUUFBUTtBQUNuQjsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/graphql/node_modules/.bin/acorn b/graphql/node_modules/.bin/acorn deleted file mode 120000 index cf767603..00000000 --- a/graphql/node_modules/.bin/acorn +++ /dev/null @@ -1 +0,0 @@ -../acorn/bin/acorn \ No newline at end of file diff --git a/graphql/node_modules/.bin/eslint b/graphql/node_modules/.bin/eslint deleted file mode 120000 index 810e4bcb..00000000 --- a/graphql/node_modules/.bin/eslint +++ /dev/null @@ -1 +0,0 @@ -../eslint/bin/eslint.js \ No newline at end of file diff --git a/graphql/node_modules/.bin/js-yaml b/graphql/node_modules/.bin/js-yaml deleted file mode 120000 index 9dbd010d..00000000 --- a/graphql/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/graphql/node_modules/.bin/node-which b/graphql/node_modules/.bin/node-which deleted file mode 120000 index 6f8415ec..00000000 --- a/graphql/node_modules/.bin/node-which +++ /dev/null @@ -1 +0,0 @@ -../which/bin/node-which \ No newline at end of file diff --git a/graphql/node_modules/.bin/semver b/graphql/node_modules/.bin/semver deleted file mode 120000 index 5aaadf42..00000000 --- a/graphql/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver.js \ No newline at end of file diff --git a/graphql/node_modules/.bin/tsc b/graphql/node_modules/.bin/tsc deleted file mode 120000 index 0863208a..00000000 --- a/graphql/node_modules/.bin/tsc +++ /dev/null @@ -1 +0,0 @@ -../typescript/bin/tsc \ No newline at end of file diff --git a/graphql/node_modules/.bin/tsserver b/graphql/node_modules/.bin/tsserver deleted file mode 120000 index f8f8f1a0..00000000 --- a/graphql/node_modules/.bin/tsserver +++ /dev/null @@ -1 +0,0 @@ -../typescript/bin/tsserver \ No newline at end of file diff --git a/graphql/node_modules/.package-lock.json b/graphql/node_modules/.package-lock.json deleted file mode 100644 index ea9d8925..00000000 --- a/graphql/node_modules/.package-lock.json +++ /dev/null @@ -1,1506 +0,0 @@ -{ - "name": "graphql", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "node_modules/@aws-appsync/utils": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@aws-appsync/utils/-/utils-1.9.0.tgz", - "integrity": "sha512-TAZNHiMpJKafrur6sE0Ou48gbuRL1oJXUDfrnBbYAXDVF3+mzD/0QCRp91F/dcAUbbNkFaq8pAwLEBTmpvmm9g==" - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.17.1.tgz", - "integrity": "sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA==", - "dev": true, - "dependencies": { - "@eslint/object-schema": "^2.1.4", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.0.tgz", - "integrity": "sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz", - "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", - "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.1.0.tgz", - "integrity": "sha512-LlNBaHFCEBPHyD4pZXb35mzjGkuGKXU5eeCA1SxvHfiRES0E82dOounfVpL4DCqYvJEKab0bZIA0gCRpdLKkCw==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.1.0", - "@typescript-eslint/type-utils": "8.1.0", - "@typescript-eslint/utils": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.1.0.tgz", - "integrity": "sha512-U7iTAtGgJk6DPX9wIWPPOlt1gO57097G06gIcl0N0EEnNw8RGD62c+2/DiP/zL7KrkqnnqF7gtFGR7YgzPllTA==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "8.1.0", - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/typescript-estree": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.1.0.tgz", - "integrity": "sha512-DsuOZQji687sQUjm4N6c9xABJa7fjvfIdjqpSIIVOgaENf2jFXiM9hIBZOL3hb6DHK9Nvd2d7zZnoMLf9e0OtQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.1.0.tgz", - "integrity": "sha512-oLYvTxljVvsMnldfl6jIKxTaU7ok7km0KDrwOt1RHYu6nxlhN3TIx8k5Q52L6wR33nOwDgM7VwW1fT1qMNfFIA==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.1.0", - "@typescript-eslint/utils": "8.1.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.1.0.tgz", - "integrity": "sha512-q2/Bxa0gMOu/2/AKALI0tCKbG2zppccnRIRCW6BaaTlRVaPKft4oVYPp7WOPpcnsgbr0qROAVCVKCvIQ0tbWog==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.1.0.tgz", - "integrity": "sha512-NTHhmufocEkMiAord/g++gWKb0Fr34e9AExBRdqgWdVBaKoei2dIyYKD9Q0jBnvfbEA5zaf8plUFMUH6kQ0vGg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.1.0.tgz", - "integrity": "sha512-ypRueFNKTIFwqPeJBfeIpxZ895PQhNyH4YID6js0UoBImWYoSjBsahUn9KMiJXh94uOjVBgHD9AmkyPsPnFwJA==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.1.0", - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/typescript-estree": "8.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.1.0.tgz", - "integrity": "sha512-ba0lNI19awqZ5ZNKh6wCModMwoZs457StTebQ0q1NP58zSi2F6MOZRXwfKZy+jB78JNJ/WH8GSh2IQNzXX8Nag==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.1.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/acorn": { - "version": "8.12.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", - "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.0.tgz", - "integrity": "sha512-JfiKJrbx0506OEerjK2Y1QlldtBxkAlLxT5OEcRF8uaQ86noDe2k31Vw9rnSWv+MXZHj7OOUV/dA0AhdLFcyvA==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.11.0", - "@eslint/config-array": "^0.17.1", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.9.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.3.0", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.0.2", - "eslint-visitor-keys": "^4.0.0", - "espree": "^10.1.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz", - "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", - "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", - "dev": true, - "dependencies": { - "acorn": "^8.12.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "15.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", - "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "dev": true, - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.1.0.tgz", - "integrity": "sha512-prB2U3jXPJLpo1iVLN338Lvolh6OrcCZO+9Yv6AR+tvegPPptYCDBIHiEEUdqRi8gAv2bXNKfMUrgAd2ejn/ow==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.1.0", - "@typescript-eslint/parser": "8.1.0", - "@typescript-eslint/utils": "8.1.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/graphql/node_modules/@aws-appsync/utils/CHANGELOG.md b/graphql/node_modules/@aws-appsync/utils/CHANGELOG.md deleted file mode 100644 index 61813f74..00000000 --- a/graphql/node_modules/@aws-appsync/utils/CHANGELOG.md +++ /dev/null @@ -1,137 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [1.9.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.8.0...v1.9.0) (2024-07-17) - - -### Features - -* add from field ([e907050](https://github.com/aws/aws-appsync-toolkit/commit/e90705070fa225409109a435507a11d0fc2d2031)) - - - - - -# [1.8.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.7.0...v1.8.0) (2024-05-30) - - -### Bug Fixes - -* Move BatchGetItem projection to table ([f14122b](https://github.com/aws/aws-appsync-toolkit/commit/f14122bad14d44cb86b1a9d58ad756e1da2d1550)) - - -### Features - -* add invocationType to LambdaRequest for async lambda ([6978e0f](https://github.com/aws/aws-appsync-toolkit/commit/6978e0feb67bb0dc7475634e9618ef7309cac779)) - - - - - -# [1.7.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.6.0...v1.7.0) (2024-02-06) - - -### Features - -* extend type definition for env variables ([babbc0f](https://github.com/aws/aws-appsync-toolkit/commit/babbc0fe366916a105dc97e476a06800de1a2f84)) - - - - - -# [1.6.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.5.0...v1.6.0) (2023-11-27) - - -### Features - -* add rds helper ([#189](https://github.com/aws/aws-appsync-toolkit/issues/189)) ([45f5575](https://github.com/aws/aws-appsync-toolkit/commit/45f557520ad324479c0d1c92e8d6d0e0eee0d12a)) - - - - - -# [1.5.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.4.0...v1.5.0) (2023-09-18) - - -### Features - -* add projection expression support ([#154](https://github.com/aws/aws-appsync-toolkit/issues/154)) ([5256d72](https://github.com/aws/aws-appsync-toolkit/commit/5256d7274e3e9ffbda5dcbb74f8d98436c49f6ac)) - - - - - -## [1.3.1](https://github.com/aws/aws-appsync-toolkit/compare/v1.3.0...v1.3.1) (2023-08-30) - -**Note:** Version bump only for package @aws-appsync/utils - - - - - -# [1.3.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.6...v1.3.0) (2023-08-30) - - -### Features - -* Add type definition for DynamoDB helper ([#118](https://github.com/aws/aws-appsync-toolkit/issues/118)) ([a3a38d1](https://github.com/aws/aws-appsync-toolkit/commit/a3a38d10972ed332d7073c5b3d928cc8db90fe73)) - - - - - -## [1.2.6](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.5...v1.2.6) (2023-08-15) - -### Bug Fixes - -- change the return type of toElasticsearchQueryDSL to string ([#128](https://github.com/aws/aws-appsync-toolkit/issues/128)) ([a327297](https://github.com/aws/aws-appsync-toolkit/commit/a32729726fba4b9ec4335c446872c0d9aa142e15)) -- make open search request params optional ([#117](https://github.com/aws/aws-appsync-toolkit/issues/117)) ([4a764ef](https://github.com/aws/aws-appsync-toolkit/commit/4a764ef0a1d74e981d7181eb9cc57c3acdad0ef1)) -- return never for function that throw errors ([#122](https://github.com/aws/aws-appsync-toolkit/issues/122)) ([6c350e3](https://github.com/aws/aws-appsync-toolkit/commit/6c350e306e7e6be083e7e14a83ddfa667c27edf4)) -- update generics to support autocompletion for nullable fields ([#129](https://github.com/aws/aws-appsync-toolkit/issues/129)) ([960209f](https://github.com/aws/aws-appsync-toolkit/commit/960209fa08f81070c6e326f62208fff68f2f8f7d)) - -## [1.2.5](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.4...v1.2.5) (2023-04-17) - -### Bug Fixes - -- use shallow filter type to prevent recursion ([a98e5f8](https://github.com/aws/aws-appsync-toolkit/commit/a98e5f880051f7099a4d5b7adbf63d499d47f530)) - -## [1.2.4](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.3...v1.2.4) (2023-04-06) - -**Note:** Version bump only for package @aws-appsync/utils - -## [1.2.3](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.2...v1.2.3) (2023-04-06) - -### Bug Fixes - -- change default type in `toSubscriptionFilter` ([325e1e2](https://github.com/aws/aws-appsync-toolkit/commit/325e1e2ce0886ecc730ed410920dd464d8bcadfd)) - -## [1.2.2](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.1...v1.2.2) (2023-04-04) - -### Bug Fixes - -- update the return type of transform subscription filter ([#102](https://github.com/aws/aws-appsync-toolkit/issues/102)) ([db11c5d](https://github.com/aws/aws-appsync-toolkit/commit/db11c5ddeb465f649ff00589a4b9c339233087c1)) - -## [1.2.1](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.0...v1.2.1) (2023-03-31) - -**Note:** Version bump only for package @aws-appsync/utils - -# [1.2.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.1.0...v1.2.0) (2023-03-31) - -### Bug Fixes - -- rename the DynamoDBGetItem to DynamoDBGetItemRequest ([#68](https://github.com/aws/aws-appsync-toolkit/issues/68)) ([09adf56](https://github.com/aws/aws-appsync-toolkit/commit/09adf566d8c0f3cbb258bc767aa11241ebdfce06)) -- update order of generics ([#67](https://github.com/aws/aws-appsync-toolkit/issues/67)) ([cc74b50](https://github.com/aws/aws-appsync-toolkit/commit/cc74b502dc3d8603480f1d2af8098ee22356638d)) - -### Features - -- add runtime namespace and declare globals ([9705388](https://github.com/aws/aws-appsync-toolkit/commit/9705388e4c055ec5f25684f5c946f8bd20f2df4b)) -- add typedefinition to utils ([#73](https://github.com/aws/aws-appsync-toolkit/issues/73)) ([172455c](https://github.com/aws/aws-appsync-toolkit/commit/172455ccf8cd3413f441abeefd81612e16b78a5a)) -- add typescript generic support to Context ([#56](https://github.com/aws/aws-appsync-toolkit/issues/56)) ([2ccb9b8](https://github.com/aws/aws-appsync-toolkit/commit/2ccb9b85d0333442e4ec34a6539f23f260421088)) - -# [1.1.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.0.1...v1.1.0) (2023-01-31) - -### Bug Fixes - -- expose base64 encode and decode functions in util ([5a2b737](https://github.com/aws/aws-appsync-toolkit/commit/5a2b73792df61bc92e3013f6ab9a5129ddf86629)) diff --git a/graphql/node_modules/@aws-appsync/utils/LICENSE b/graphql/node_modules/@aws-appsync/utils/LICENSE deleted file mode 100644 index 67db8588..00000000 --- a/graphql/node_modules/@aws-appsync/utils/LICENSE +++ /dev/null @@ -1,175 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. diff --git a/graphql/node_modules/@aws-appsync/utils/LICENSE-THIRD-PARTY b/graphql/node_modules/@aws-appsync/utils/LICENSE-THIRD-PARTY deleted file mode 100644 index e69de29b..00000000 diff --git a/graphql/node_modules/@aws-appsync/utils/README.md b/graphql/node_modules/@aws-appsync/utils/README.md deleted file mode 100644 index d517b140..00000000 --- a/graphql/node_modules/@aws-appsync/utils/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Type definition for @aws-appsync/utils - -This project contains utility function definitions and type definitions for working with AWS AppSync Resolvers written in JavaScript using the APPSYNC_JS runtime. This includes the `util` and `extensions` utilities. For more information on these utilities, see the AppSync [documentation](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-util-reference-js.html). - -## Usage - -Install the type definition by running - -```bash -npm install @aws-appsync/utils -``` - -In your AppSync function code definition: - -```js -import { util } from '@aws-appsync/utils'; -import * as ddb from '@aws-appsync/utils/dynamodb'; - -/** - * Creates a new item in a DynamoDB table - * @param ctx contextual information about the request - */ -export function request(ctx) { - const item = ctx.arguments.input; - return ddb.put({ key: { id: util.autoId() }, item }); -} - -/** - * Returns the result - * @param ctx contextual information about the request - */ -export function response(ctx) { - const { error, result } = ctx; - if (error) { - return util.appendError(error.message, error.type, result); - } - return ctx.result; -} -``` diff --git a/graphql/node_modules/@aws-appsync/utils/dynamodb.d.ts b/graphql/node_modules/@aws-appsync/utils/dynamodb.d.ts deleted file mode 100644 index 754d6ba4..00000000 --- a/graphql/node_modules/@aws-appsync/utils/dynamodb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/dynamodb-helpers'; \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/dynamodb.js b/graphql/node_modules/@aws-appsync/utils/dynamodb.js deleted file mode 100644 index 754d6ba4..00000000 --- a/graphql/node_modules/@aws-appsync/utils/dynamodb.js +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/dynamodb-helpers'; \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/index.js b/graphql/node_modules/@aws-appsync/utils/index.js deleted file mode 100644 index 11aece60..00000000 --- a/graphql/node_modules/@aws-appsync/utils/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/index'; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.d.ts deleted file mode 100644 index bc18d22b..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.d.ts +++ /dev/null @@ -1,756 +0,0 @@ -import { DynamoDBScanRequest, DynamoDBQueryRequest, DynamoDBPutItemRequest, DynamoDBSyncRequest, DynamoDBDeleteItemRequest, DynamoDBUpdateItemRequest, DynamoDBGetItemRequest } from './resolver-return-types'; -import { DynamoDBFilterObject, DynamoDBEqualityOperators } from './transform-utils'; -import { Decrement, Prettify } from './type-utils'; -type DynamoDBSelectAttributes = 'ALL_ATTRIBUTES' | 'ALL_PROJECTED_ATTRIBUTES' | 'SPECIFIC_ATTRIBUTES'; -type DynamoDBKeyPrimitives = string | number; -type DynamoDBPrimitiveFields = { - [K in keyof T]: T[K] extends DynamoDBKeyPrimitives ? K : never; -}[keyof T]; -export type DynamoDBKey = T extends Record ? Prettify>> : {}; -type DynamoDBKeyConditionScalarNumberOperators = DynamoDBEqualityOperators & { - le?: T; - lt?: T; - ge?: T; - gt?: T; -}; -type DynamoDBKeyConditionNumberOperators = DynamoDBKeyConditionScalarNumberOperators & { - between?: [T, T]; -}; -type DynamoDBKeyConditionStringOperators = DynamoDBKeyConditionNumberOperators & { - beginsWith?: T; -}; -type DynamoDBKeyConditionExpressionOperation = TOperand extends number ? DynamoDBKeyConditionNumberOperators> : TOperand extends string ? DynamoDBKeyConditionStringOperators> : never; -type DynamoDBKeyCondition = T extends Record ? Prettify : never; -}, DynamoDBPrimitiveFields>> : {}; -type KeyStringLiteral = `${Literal & string}`; -type DynamoDBProjectionKey = (Depth extends never ? {} : { - [K in keyof T]: NonNullable extends Record ? `${KeyStringLiteral}${KeyStringLiteral}` | DynamoDBProjectionKey, `${KeyStringLiteral}${KeyStringLiteral}.`, Decrement> : `${KeyStringLiteral}${KeyStringLiteral}`; -})[keyof T]; -export type DynamoDBProjection = T extends Record ? DynamoDBProjectionKey> : string; -export type ScanInput = { - /** - * optional name of the index to scan - */ - index?: string | null; - /** - * optional max number of results to return - */ - limit?: number | null; - /** - * optional filter to apply to the results after retrieving it from the table - */ - filter?: DynamoDBFilterObject | null; - /** - * Optional pagination token to continue a previous query. This would have been obtained from a previous query - */ - nextToken?: string | null; - /** - * an optional boolean to indicate consistent reads when querying DynamoDB defaults to false. - */ - consistentRead?: boolean | null; - /** - * optional list of attributes to return from DynamoDB - */ - projection?: DynamoDBProjection[] | string[]; - totalSegments?: number; - segment?: number; - /** - * attributes to return from DynamoDB. By default, the AWS AppSync DynamoDB resolver only returns - * attributes that are projected into the index. The supported values are - * `ALL_ATTRIBUTES` - * - Returns all of the item attributes from the specified table or index. - * If you query a local secondary index, DynamoDB fetches the entire item from - * the parent table for each matching item in the index. If the index is - * configured to project all item attributes, all of the data can be obtained from - * the local secondary index and no fetching is required. - * - * `ALL_PROJECTED_ATTRIBUTES` - * - Returns all attributes that have been projected into the index. - * If the index is configured to project all attributes, this return value is - * equivalent to specifying `ALL_ATTRIBUTES`. - * - * `SPECIFIC_ATTRIBUTES` - * - Returns only the attributes listed in `ProjectionExpression`. - * This return value is equivalent to specifying `ProjectionExpression` without - * specifying any value for `AttributesToGet`. - * - */ - select?: DynamoDBSelectAttributes; - /** - * optional boolean to indicate whether the query is performed in ascending or descending order. - * - * @default true - */ - scanIndexForward?: boolean | null; -}; -export type QueryInput = ScanInput & { - /** - * specify a key condition that describes items to query. For a given index the - * the condition for partition key should be an equality and sort key can be - * a comparison or a beginsWith (when its a string). Only number and string - * types are supported for partition key and sort key. - * - * @example - * If there is an UserType - * ```typescript - * type UserType = { - * id: string; - * name: string; - * age: number; - * isVerified: boolean; - * friendsIds: string[] - * } - * ``` - * The query can only include the following fields: - * `id`, `name` and `age` - * ```typescript - * - * const query: QueryInput = { - * query: { - * name: { eq: 'John' }, - * age: { gt: 20 }, - * } - * } - ``` - * @See [DynamoDB Key Conditions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) for details - */ - query: DynamoDBKeyCondition>; -}; -export type RemoveInput = { - /** - * A required parameter that specifies the key of the item in DynamoDB that is being removed. - * DynamoDB items may have a single hash key, or a hash key and sort key. - * @example - * If a table user has only hash key with user id then key would look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * } - * const key: DynamoDBKey = { - * id: 1, - * } - * ``` - * - * If the table user has a hash key (id) and sort key(name) then key would - * look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * friendsIds: string[] - * } - * const key: DynamoDBKey = { - * id: 1, - * name: 'XXXXXXXXXX', - * } - * ``` - */ - key: DynamoDBKey; - /** - * When you remove an object in DynamoDB by using the remove, you can optionally - * specify a condition expression that controls whether the request should succeed - * or not, based on the state of the object already in DynamoDB before the operation - * is performed. - * - * @See [Condition expression](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-dynamodb.html#aws-appsync-resolver-mapping-template-reference-dynamodb-condition-expressions) - * @See [Condition expression syntax](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - * @example - * The following is a DeleteItem expression containing a condition that allows the operation succeed only if the owner of the document matches - * the user making the request. - * ```typescript - * type Task = { - * id: string; - * title: string; - * description: string; - * owner: string; - * isComplete: boolean; - * } - * const condition: DynamoDBFilterObject = { - * owner: { eq: 'XXXXXXXXXXXXXXXX' }, - * } - * remove({ - * key: { - * id: 'XXXXXXXXXXXXXXXX', - * }, - * condition, - * }); - ``` - */ - condition?: DynamoDBFilterObject; - /** - * When enabled, customPartitionKey value modifies the format of the ds_sk and ds_pk - * records used by the delta sync table when versioning has been enabled. - * When enabled, the processing of the populateIndexFields entry is also enabled. - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - customPartitionKey?: string; - /** - * A boolean value that, when enabled along with the customPartitionKey, - * creates new entries for each record in the delta sync table, specifically - * in the gsi_ds_pk and gsi_ds_sk columns. For more information, - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - populateIndexFields?: boolean; - _version?: number; -}; -export type PutInput = { - /** - * A required parameter that specifies the key of the item in DynamoDB that is being put. - * DynamoDB items may have a single hash key, or a hash key and sort key. - * @example - * If a table user has only hash key with user id then key would look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * } - * const key: DynamoDBKey = { - * id: 1, - * } - * ``` - * - * If the table user has a hash key (id) and sort key(name) then key would - * look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * friendsIds: string[] - * } - * const key: DynamoDBKey = { - * id: 1, - * name: 'XXXXXXXX', - * } - * ``` - */ - key: DynamoDBKey; - /** - * The rest of the attributes of the item to be put into DynamoDB. - */ - item: Partial; - /** - * When you put an objects in DynamoDB by using the put, you can optionally - * specify a condition expression that controls whether the request should succeed - * or not, based on the state of the object already in DynamoDB before the operation - * is performed. - * - * @See [Condition expression](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-dynamodb.html#aws-appsync-resolver-mapping-template-reference-dynamodb-condition-expressions) - * @See [Condition expression syntax](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - * @example - * The following put condition expression that allows the operation succeed only if the owner of the document matches - * the user making the request. - * ```typescript - * type Task = { - * id: string; - * title: string; - * description: string; - * owner: string; - * isComplete: boolean; - * } - * const condition: DynamoDBFilterObject = { - * owner: { eq: 'XXXXXXXXXXXXXXXX' }, - * } - * put({ - * key: { - * id: 'XXXXXXXXXXXXXXXX', - * }, - * condition, - * item: { - * title: 'New Task', - * description: 'New Task Description', - * owner: 'XXXXXXXXXXXXXXXX', - * isComplete: false, - * } - * }); - ``` - */ - condition?: DynamoDBFilterObject | null; - /** - * When enabled, this string value modifies the format of the ds_sk and ds_pk - * records used by the delta sync table when versioning has been enabled. - * When enabled, the processing of the populateIndexFields entry is also enabled. - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - customPartitionKey?: string; - /** - * A boolean value that, when enabled along with the customPartitionKey, - * creates new entries for each record in the delta sync table, specifically - * in the gsi_ds_pk and gsi_ds_sk columns. For more information, - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - populateIndexFields?: boolean; - _version?: number; -}; -export type GetInput = { - /** - * A required parameter that specifies the key of the item in DynamoDB. - * DynamoDB items may have a single hash key, or a hash key and sort key. - * @example - * If a table user has only hash key with user id then key would look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * } - * const key: DynamoDBKey = { - * id: 1, - * } - * ``` - * - * If the table user has a hash key (id) and sort key(name) then key would - * look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * friendsIds: string[] - * } - * const key: DynamoDBKey = { - * id: 1, - * name: 'XXXXXXXXXX', - * } - * ``` - */ - key: DynamoDBKey; - /** - * Optional boolean to specify if you want to perform a strongly consistent read with DynamoDB - * @default false - */ - consistentRead?: boolean; - /** - * optional list of attributes to return from DynamoDB - */ - projection?: DynamoDBProjection[] | string[]; -}; -export interface DynamoDBOperationAdd { - _type: 'add'; -} -export interface DynamoDBOperationRemove { - _type: 'remove'; -} -export interface DynamoDBOperationReplace { - _type: 'replace'; -} -export interface DynamoDBOperationIncrement { - _type: 'increment'; -} -export interface DynamoDBOperationDecrement { - _type: 'decrement'; -} -export interface DynamoDBOperationAppend { - _type: 'append'; -} -export interface DynamoDBOperationPrepend { - _type: 'prepend'; -} -export interface DynamoDBOperationUpdateListItem { - _type: 'updateListItem'; -} -type DynamoDBOperation = { - /** - * Helper function to add a new attribute item when updating DynamoDB. - * @param payload - * @example - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * export function request(ctx) { - * const updateObj = { - * address: operations.add({ - * street1: '123 Main St', - * city: 'New York', - * zip: '10001', - * }), - * }; - * return update({ key: { id: 1 }, update: updateObj }); - * } - * ``` - */ - add(payload: T): DynamoDBOperationAdd; - /** - * Helper function to remove an attribute from the item when updating DynamoDB. - */ - remove(): DynamoDBOperationRemove; - /** - * Helper function to replace an existing attribute when updating an item in DynamoDB. - * This is useful when you want to update entire object or sub object in the attribute and not just - * the keys in the payload - * @param payload - */ - replace(payload: T): DynamoDBOperationReplace; - /** - * Helper function to increment the existing attribute value in the item when updating DynamoDB. - * @optional @param by number to add to the existing attribute value. - */ - increment(by?: number): DynamoDBOperationIncrement; - /** - * Helper function to decrement the existing attribute value in the item when updating DynamoDB. - * @optional @param by number to subtract to the existing attribute value. - */ - decrement(by?: number): DynamoDBOperationDecrement; - /** - * Helper function to append to the existing list in DynamoDB - * @param payload array of items to append to the existing attribute value. - */ - append(payload: T[]): DynamoDBOperationAppend; - /** - * Helper function to prepend to the existing list in DynamoDB - * @param payload array of items to prepend to the existing attribute value. - */ - prepend(payload: T[]): DynamoDBOperationPrepend; - /** - * Helper function to replace an item in list - * @param payload item to update in the list in DynamoDB - * @param index index of the item to update in the list - */ - updateListItem(payload: T, index: number): DynamoDBOperationUpdateListItem; -}; -export type DynamoDBUpdateArrayOperators = DynamoDBOperationAdd | DynamoDBOperationReplace | DynamoDBOperationRemove | DynamoDBOperationAppend | DynamoDBOperationPrepend | DynamoDBOperationUpdateListItem[] | T[]; -export type RemoveOpOnOptional = T[K] extends {} ? never : DynamoDBOperationRemove; -export type DynamoDBUpdateObjectShallow = T extends Record ? { - [k in keyof T]?: DynamoDBUpdateObjectShallow> | RemoveOpOnOptional; -} | DynamoDBOperationAdd | DynamoDBOperationReplace : T extends (infer U)[] ? DynamoDBUpdateArrayOperators | T : T extends number ? T | DynamoDBOperationIncrement | DynamoDBOperationDecrement : T | DynamoDBOperationAdd | DynamoDBOperationReplace; -export type DynamoDBUpdateObject = T extends Record ? { - [k in keyof T]?: DynamoDBUpdateObjectShallow> | RemoveOpOnOptional; -} : {}; -export type DynamoDBUpdateInput = { - /** - * A required parameter that specifies the key of the item in DynamoDB that is being updated. - * DynamoDB items may have a single hash key, or a hash key and sort key. - * @example - * If a table user has only hash key with user id then key would look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * } - * const key: DynamoDBKey = { - * id: 1, - * } - * ``` - * - * If the table user has a hash key (id) and sort key(name) then key would - * look like this - * ```typescript - * type User = { - * id: number; - * name: string; - * age: number; - * isVerified: boolean; - * friendsIds: string[] - * } - * const key: DynamoDBKey = { - * id: 1, - * name: 'XXXXXXXXX', - * } - * ``` - */ - key: DynamoDBKey; - /** - * An object that specifies the attributes to be updated and the new values for them. - * The update object can be used `add`, `remove`,`replace`, `increment`, `decrement`, `append`, `prepend`, `updateListItem` - * @example - * Given the following User table - * ```typescript - * type User = { - * id: string; - * name: string; - * age?: number; - * address?: { - * street1: string; - * street2?: string; - * city: string; - * zip: string; - * }; - * friendsCount: number; - * isVerified: boolean; - * friendsIds: number[]; - * } - * ``` - * ---------- - * To add a address to the table the update object would look like this - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const updateObj: DynamoDBUpdateObject = { - * address: operations.add({ - * street1: '123 Main St', - * city: 'New York', - * zip: '10001', - * }), - * }; - * update({key: { id: 1 }, update: updateObj}); - * ``` - * ---------- - * to remove address - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const updateObj: DynamoDBUpdateObject = { - * address: operations.remove(), - * }; - * update({key: { id: 1 }, update: updateObj}); * ``` - * ---------- - * to replace address - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const updateObj: DynamoDBUpdateObject = { - * address: operations.replace({ - * street1: '123 Main St', - * street2: 'Apt. 1', - * city: 'New York', - * zip: '10001', - * }), - * }; - * update({key: { id: 1 }, update: updateObj}); - * ``` - * ---------- - * to increment friendsCount by 10 - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const updateObj: DynamoDBUpdateObject = { - * friendsCount: operations.increment(10), - * }; - * update({key: { id: 1 }, update: updateObj}); - * ``` - * ---------- - * to decrement friendsCount by 10 - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const updateObj: DynamoDBUpdateObject = { - * friendsCount: operations.decrement(10), - * }; - * update({key: { id: 1 }, update: updateObj}); - * ``` - * ---------- - * to append friendsIds with friendId - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const newFriendIds = [101, 104, 111]; - * const updateObj: DynamoDBUpdateObject = { - * friendsIds: operations.append(newFriendIds), - * }; - * update({key: { id: 1 }, update: updateObj}); - *``` - * ---------- - * to prepend friendsIds with friendId - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const newFriendIds = [101, 104, 111]; - * const updateObj: DynamoDBUpdateObject = { - * friendsIds: operations.prepend(newFriendIds), - * }; - * update({key: { id: 1 }, update: updateObj}); - *``` - * ---------- - * to to update 2nd and 3rd item in the friends list - * ```typescript - * import { update, operations } from '@aws-appsync/utils/dynamodb'; - * const newFriendIds = [ - * operations.updateListItem('102', 1), - * operations.updateListItem('112', 2), - * ]; - * const updateObj: DynamoDBUpdateObject = { - * friendsIds: newFriendIds - * } - * update({key: { id: 1 }, update: updateObj}); - * ``` - */ - update: DynamoDBUpdateObject; - /** - * When you update an objects in DynamoDB by using the update method, you can optionally - * specify a condition expression that controls whether the request should succeed - * or not, based on the state of the object already in DynamoDB before the operation - * is performed. - * - * @See [Condition expression](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-dynamodb.html#aws-appsync-resolver-mapping-template-reference-dynamodb-condition-expressions) - * @See [Condition expression syntax](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - * @example - * The following DeleteItem a condition expression that allows the operation succeed only if the owner of the document matches - * the user making the request. - * ```typescript - * type User = { - * id: string; - * name: string; - * age?: number; - * address?: { - * street1: string; - * street2?: string; - * city: string; - * zip: string; - * }; - * friendsCount: number; - * isVerified: boolean; - * friendsIds: number[]; - * } - * - * const condition: DynamoDBFilterObject = { - * name: { eq: 'XXXXXXXXXXXXXXXX' }, - * } - * ddbHelper.update({ - * key: { - * id: 'XXXXXXXXXXXXXXXX', - * }, - * condition, - * update: { - * isVerified: true, - * } - * }); - *``` - */ - condition?: DynamoDBFilterObject; - /** - * When enabled, customPartitionKey value modifies the format of the ds_sk and ds_pk - * records used by the delta sync table when versioning has been enabled. - * When enabled, the processing of the populateIndexFields entry is also enabled. - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - customPartitionKey?: string; - /** - * A boolean value that, when enabled along with the customPartitionKey, - * creates new entries for each record in the delta sync table, specifically - * in the gsi_ds_pk and gsi_ds_sk columns. For more information, - * @see[Conflict detection and sync](https://docs.aws.amazon.com/appsync/latest/devguide/conflict-detection-and-sync.html) - */ - populateIndexFields?: boolean; - _version?: number; -}; -export type DynamoDBSyncInput = { - /** - * The partition key of the Base table used when performing a Sync operation. - * This field allows a Sync operation to be performed when the table utilizes a - * custom partition key. This is an optional field. - */ - basePartitionKey?: string; - /** - * The index used for the Sync operation. This index is required to enable a Sync operation on the - * whole delta store table when the table uses a custom partition key. - * The Sync operation will be performed on the GSI (created on gsi_ds_pk and gsi_ds_sk). - * This field is optional. - */ - deltaIndexName?: string; - /** - * optional maximum number of items to evaluate at a single time. - * If omitted, the default limit will be set to 100 items. - * The maximum value for this field is 1000 items. - */ - limit?: number | null; - nextToken?: string | null; - /** - * The moment, in epoch milliseconds, when the last successful Sync operation started. - * If specified, only items that have changed after lastSync are returned. - * This field is optional, and should only be populated after retrieving all pages - * from an initial Sync operation. If omitted, results from the Base table will be - * returned, otherwise, results from the Delta table will be returned. - */ - lastSync?: number; - /** - * optional filter to apply to the results after retrieving it from the table - */ - filter?: DynamoDBFilterObject | null; -}; -/** - * Generates DynamoDBQueryRequest object to make a [Query](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-query) - * request to DynamoDB. - * @param payload {QueryInput} - Query input object - * @returns {DynamoDBQueryRequest} - * @example - * ```typescript - * import * as ddb from '@aws-appsync/utils/dynamodb'; - * - * export function request(ctx) { - * return ddb.query({ query: { id: { eq: ctx.args.id } } }); - * } - * ``` - */ -export declare function query(payload: QueryInput): DynamoDBQueryRequest; -/** - * Generates DynamoDBScanRequest to make a [Scan](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-scan) request - * to DynamoDB. - * @param payload lets you specify - * @returns { DynamoDBScanRequest } - */ -export declare function scan(payload: ScanInput): DynamoDBScanRequest; -/** - * Generates a DynamoDBUpdateItemRequest to make a [UpdateItem](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-updateitem) - * request to DynamoDB. - * @param payload - */ -export declare function update(payload: DynamoDBUpdateInput): DynamoDBUpdateItemRequest; -/** - * Generates DynamoDBDeleteItemRequest object to make a [DeleteItem](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-deleteitem) - * request to DynamoDB. - * @param payload - * @returns { DynamoDBDeleteItemRequest } - * @example - * ```typescript - * import * as ddb from '@aws-appsync/utils/dynamodb'; - * - * export function request(ctx) { - * return ddb.remove({ key: { id: ctx.args.id } }); - * } - * ``` - */ -export declare function remove(payload: RemoveInput): DynamoDBDeleteItemRequest; -/** - * Generates a DynamoDBPutItemRequest object to make a [PutItem](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-putitem) - * request to DynamoDB. - * @param payload - * @returns DynamoDBPutItemRequest - * @example - * ```typescript - * import * as ddb from '@aws-appsync/utils/dynamodb'; - * - * export function request(ctx) { - * return ddb.put({ key: { id: util.autoId() }, item: ctx.args }); - * } - * ``` - */ -export declare function put(payload: PutInput): DynamoDBPutItemRequest; -/** - * Generates a DynamoDBGetItemRequest object to make a [GetItem](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-getitem) - * request to DynamoDB. - * @param payload - * @returns DynamoDBGetItemRequest - * @example - * ```typescript -* import { get } from '@aws-appsync/utils/dynamodb'; -* export function request(ctx) { -* return get({ key: { id: ctx.args.id } }); -* } - ``` - */ -export declare function get(payload: GetInput): DynamoDBGetItemRequest; -/** - * Generates an DynamoDBSyncRequest object to make a [Sync](https://docs.aws.amazon.com/appsync/latest/devguide/js-resolver-reference-dynamodb.html#js-aws-appsync-resolver-reference-dynamodb-sync) - * request and receive only data altered since last query (the delta updates). requests can only be made to versioned DynamoDB data sources. - * @param payload - * @returns DynamoDBGetItemRequest - * @example - * ```typescript - * import * as ddb from '@aws-appsync/utils/dynamodb'; - * - * export function request(ctx) { - * const { limit = 10, nextToken, lastSync } = ctx.args; - * return ddb.sync({ limit, nextToken, lastSync }); - * } - * ``` - */ -export declare function sync(payload: DynamoDBSyncInput): DynamoDBSyncRequest; -export declare const operations: DynamoDBOperation; -export {}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js deleted file mode 100644 index 63e1e405..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=dynamodb-helpers.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js.map b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js.map deleted file mode 100644 index 3c20a62e..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamodb-helpers.js","sourceRoot":"","sources":["../src/dynamodb-helpers.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.d.ts deleted file mode 100644 index e0fe5ce2..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.d.ts +++ /dev/null @@ -1,309 +0,0 @@ -export type DynamoDBStringResult = { - S: string; -}; -export type DynamoDBStringSetResult = { - SS: string[]; -}; -export type DynamoDBNumberResult = { - N: string; -}; -export type DynamoDBNumberSetResult = { - NS: string[]; -}; -export type DynamoDBBinaryResult = { - B: string; -}; -export type DynamoDBBinarySetResult = { - BS: string[]; -}; -export type DynamoDBBooleanResult = { - BOOL: boolean; -}; -export type DynamoDBNullResult = { - NULL: null; -}; -export type DynamoDBReturnType = T extends string ? DynamoDBStringResult : T extends number ? DynamoDBNumberResult : T extends boolean ? DynamoDBBooleanResult : T extends null ? DynamoDBNullResult : T extends Record ? DynamoDBMapResult : T extends Array ? DynamoDBListResult : null; -export type DynamoDBMapResult> = { - M: { - [K in keyof T]: DynamoDBReturnType; - }; -}; -export type DynamoDBListResult = { - L: DynamoDBReturnType[]; -}; -export type OptionalInputType = T | null | undefined; -export type DynamodbUtil = { - /** - * General object conversion tool for DynamoDB that converts input objects to the appropriate - * DynamoDB representation. It's opinionated about how it represents some types: for instance it will - * use lists ("L") rather than sets ("SS", "NS", "BS"). This returns an object that describes - * the DynamoDB attribute value. - * - * String example: - * Input: - * ``` - * util.dynamodb.toDynamoDB("foo") - `* `` - * Output: - * ``` - * { "S" : "foo" } - * ``` - * - * Object example: - * Input: - * ``` - * util.dynamodb.toDynamoDB({ "foo": "bar", "baz" : 1234, "beep": [ "boop" ] }) - * ``` - * Output: - * ``` - * { - * "M": { - * "foo": { "S": "bar" }, - * "baz": { "N": 1234 }, - * "beep": { - * "L": [{ "S": "boop" }] - * } - * } - * } - * ``` - * @param obj - * @returns {object|null} - DynamoDB attribute object - */ - toDynamoDB(obj: T): DynamoDBReturnType; - /** - * Convert an input string to the DynamoDB string format. This returns an object that describes - * the DynamoDB attribute value. - * @param {string|null|undefined} obj Object to convert to DynamoDB attribute value - * @returns {DynamoDBReturnType} - DynamoDB attribute object as string - */ - toString(obj: OptionalInputType): DynamoDBStringResult | null; - /** - * Converts a lists with Strings to the DynamoDB string set format. This returns an object that - * describes the DynamoDB attribute value. - - * Input: - * ``` - * util.dynamodb.toStringSet([ "foo", "bar", "baz" ]) - * ``` - * Output: - * ``` - * { "SS" : [ "foo", "bar", "baz" ] } - * ``` - * @param list - List to convert to DynamoDB attribute value - * @returns {any} - DynamoDB attribute object - */ - toStringSet(list: OptionalInputType): DynamoDBStringSetResult | null; - /** - * Converts a number to the DynamoDB number format. This returns an object that describes the - * DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toNumber(12345) - * ``` - * Output: - * ```` - * { "N" : 12345 } - * ``` - * @param {number} num - Number to convert to DynamoDB attribute value - * @returns {DynamoDBNumberResult} - DynamoDB attribute object - */ - toNumber(num: OptionalInputType): DynamoDBNumberResult | null; - /** - * Converts a list of numbers to the DynamoDB number set format. This returns an object that - * describes the DynamoDB attribute value. - * ``` - * Input: util.dynamodb.toNumberSet([ 1, 23, 4.56 ]) - * Output: { "NS" : [ 1, 23, 4.56 ] } - * ``` - * @param {number[]} numbers - Numbers to convert to DynamoDB number set - * @returns {DynamoDBNumberSetResult} - DynamoDB attribute object - */ - toNumberSet(numbers: OptionalInputType): DynamoDBNumberSetResult | null; - /** - * Converts binary data encoded as a base64 string to DynamoDB binary format. This returns an - * object that describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toBinary("foo") - * ``` - * Output: - * ``` - * { "B" : "foo" } - * ``` - * @param {string} value - Base64 encoded string - * @returns {DynamoDBBinaryResult} - DynamoDB attribute object - */ - toBinary(value: OptionalInputType): DynamoDBBinaryResult | null; - /** - * Converts a list of binary data encoded as base64 strings to DynamoDB binary set format. This - * returns an object that describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toBinarySet([ "foo", "bar", "baz" ]) - * ``` - * Output: - * ``` - * { "BS" : [ "foo", "bar", "baz" ] } - * ``` - * @param {string[]} values - Base64 encoded string array - * @returns {DynamoDBBinarySetResult} - DynamoDB attribute object - */ - toBinarySet(values: OptionalInputType): DynamoDBBinarySetResult | null; - /** - * Converts a Boolean to the appropriate DynamoDB Boolean format. This returns an object that - * describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toBoolean(true) - * ``` - * Output: - * ``` - * { "BOOL" : true } - * ``` - * @param {boolean} value - value to convert to DynamoDB attribute - * @returns {DynamoDBBooleanResult} - DynamoDB attribute object - */ - toBoolean(value: OptionalInputType): DynamoDBBooleanResult | null; - /** - * Converts a Boolean to the appropriate DynamoDB Boolean format. This returns an object that - * describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toNull() - * ``` - * Output: - * ``` - * { "NULL" : null } - * ``` - * @returns {DynamoDBNullResult} - DynamoDB attribute object - */ - toNull(): DynamoDBNullResult; - /** - * Converts a list of object to DynamoDB list format. Each item in the list is also converted - * to its appropriate DynamoDB format. It's opinionated about how it represents some of the - * nested objects: e.g., it will use lists ("L") rather than sets ("SS", "NS", "BS"). This - * returns an object that describes the DynamoDB attribute value. - * Input: - * ```util.dynamodb.toList([ "foo", 123, { "bar" : "baz" } ])``` - * Output: - * ``` - * { - * "L": [ - * { "S": "foo" }, - * { "N": 123 }, - * { - * "M": { - * "bar": { "S": "baz" } - * } - * } - * ] - * } - * ``` - * @param {unknown[]} value - value to convert to DynamoDB attribute - * @returns {DynamoDBListResult} - DynamoDB attribute object - */ - toList(value: OptionalInputType): T extends Array ? DynamoDBListResult : null; - /** - * Converts a map to DynamoDB map format. Each value in the map is also converted to its - * appropriate DynamoDB format. It's opinionated about how it represents some of the nested - * objects: e.g., it will use lists ("L") rather than sets ("SS", "NS", "BS"). This returns - * an object that describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toMap({ "foo": "bar", "baz" : 1234, "beep": [ "boop"] }) - * ``` - * Output: - * ``` - * { - * "M": { - * "foo": { "S": "bar" }, - * "baz": { "N": 1234 }, - * "beep": { - * "L": [{ "S": "boop" }] - * } - * } - * } - * ``` - * @param {Record} value - value to convert to DynamoDB attribute - * @returns {{ M: Record}} - DynamoDB attribute object - */ - toMap(value: T): T extends Record ? DynamoDBMapResult : null; - /** - * Creates a copy of the map where each value has been converted to its appropriate DynamoDB - * format. It's opinionated about how it represents some of the nested objects: for instance it will - * use lists ("L") rather than sets ("SS", "NS", "BS"). - * ``` - * Input: - * ``` - * util.dynamodb.toMapValues({ "foo": "bar", "baz" : 1234, "beep": [ "boop"] }) - * ``` - * Output: - * ``` - * { - * "foo": { "S": "bar" }, - * "baz": { "N": 1234 }, - * "beep": { - * "L": [{ "S": "boop" }] - * } - * } - * ``` - * Note: this is slightly different to `util.dynamodb.toMap(Map)` as it returns only the - * contents of the DynamoDB attribute value, but not the whole attribute value itself. For - * example, the following statements are exactly the same: - * ``` - * util.dynamodb.toMapValues(obj) - * util.dynamodb.toMap(obj)["M"] - * ``` - * - * @param {Readonly>} value - value to convert to DynamoDB attribute - * @returns {Record } - DynamoDB attribute object - */ - toMapValues(value: T): T extends Record ? { - [K in keyof T]: DynamoDBReturnType; - } : null; - /** - * Converts the key, bucket and region into the DynamoDB S3 Object representation. This returns - * an object that describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toS3Object("foo", "bar", "baz") - * ``` - * Output: - * ``` - * { "S" : "{ \"s3\" : { \"key\" : \"foo\", \"bucket\" : \"bar", \"region\" : \"baz" } }" } - * ``` - * @param {string} key - S3 object key - * @param {string} bucket - S3 bucket - * @param {string} region - AWS Region - * @returns {DynamoDBStringResult} - DynamoDB attribute object - */ - toS3Object(key: string, bucket: string, region: string): DynamoDBStringResult | null; - /** - * Converts the key, bucket, region and optional version into the DynamoDB S3 Object - * representation. This returns an object that describes the DynamoDB attribute value. - * Input: - * ``` - * util.dynamodb.toS3Object("foo", "bar", "baz", "beep") - * ``` - * Output: - * ``` - * { - * "S": "{ \"s3\" : { \"key\" : \"foo\", \"bucket\" : \"bar\", \"region\" : \"baz\", \"version\" = \"beep\" } }" - * } - * - * ``` - * @param {string} key - S3 object key - * @param {string} bucket - S3 bucket - * @param {string} region - AWS Region - * @param {string} version - S3 object version - * @returns {DynamoDBStringResult} - DynamoDB attribute object - */ - toS3Object(key: string, bucket: string, region: string, version: string): DynamoDBStringResult | null; - /** - * Accepts the string value of a DynamoDB S3 Object and returns a map that contains the key, - * bucket, region and optional version. - * @param s3ObjectString S3 object key - * @returns {any} DynamoDB attribute object - */ - fromS3ObjectJson(s3ObjectString: string): any; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js deleted file mode 100644 index a46c52a9..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ATTRIBUTE_TYPE_MAP = { - _null: 'NULL', - string: 'S', - stringSet: 'SS', - number: 'N', - numberSet: 'NS', - binary: 'B', - binarySet: 'BS', - boolean: 'BOOL', - list: 'L', - map: 'M', -}; -//# sourceMappingURL=dynamodb-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js.map deleted file mode 100644 index 6ec0f58c..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/dynamodb-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dynamodb-utils.js","sourceRoot":"","sources":["../src/dynamodb-utils.ts"],"names":[],"mappings":";;AAAA,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;CACA,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/http-utils.d.ts deleted file mode 100644 index 5fba5ac3..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export type HttpUtils = { - /** - * Copies the header from the map without the restricted set of HTTP headers. You can use this - * to forward request headers to your downstream HTTP endpoint. - * @param {any} headers - Headers object - * @returns {any} - Copy of headers minus restricted HTTP headers - */ - copyHeaders(headers: T): any; - /** - * Adds a single custom header with the name (String) and value (Object) of the response. The - * following limitations apply: - * * Header names can't match any of the existing or restricted AWS or AWS AppSync headers. - * * Header names can't start with restricted prefixes, such as `x-amzn-` or `x-amz-`. - * * The size of custom response headers can't exceed 4 KB. This includes header names and values. - * * You should define each response header once per GraphQL operation. However, if you define a - * custom header with the same name multiple times, the most recent definition appears in the - * response. All headers count towards the header size limit regardless of naming. - * ``` - * util.http.addResponseHeader("itemsCount", 7) - * util.http.addResponseHeader("render", context.args.render) - * ``` - * @param {string} name - Header name - * @param {any} value - Header value - */ - addResponseHeader(name: string, value: any): void; - /** - * Adds multiple response headers to the response from the specified map of names (String) and - * values (Object). - @see {@link HttpUtils.addResponseHeader} for quick reference to the restrictions. - * also apply to this method. - * ``` - * const headersMap = {headerInt: 12, headerString: 'stringValue', headerObject: {field1: 7, field2: 'string'}} - * util.http.addResponseHeaders(headersMap) - * ``` - * @param {any} headers - Headers map - */ - addResponseHeaders(headers: Record): void; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js deleted file mode 100644 index a72d3b73..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=http-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js.map deleted file mode 100644 index 4a65ba4f..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/http-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-utils.js","sourceRoot":"","sources":["../src/http-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/index.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/index.d.ts deleted file mode 100644 index fa213f73..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/index.d.ts +++ /dev/null @@ -1,482 +0,0 @@ -export * from './resolver-return-types'; -import { DynamodbUtil } from './dynamodb-utils'; -import { RdsUtil } from './rds-utils'; -import { StringUtils } from './string-utils'; -import { TimeUtils } from './time-utils'; -import { HttpUtils } from './http-utils'; -import { XmlUtils } from './xml-utils'; -import { MathUtils } from './math-utils'; -import { TransformUtils } from './transform-utils'; -import { SubscriptionFilter } from './subscription-filter-types'; -type SubscriptionInvalidationObject = { - subscriptionField: string; - payload: Record; -}; -/** - * The Util object contains general utility methods to help you work with data. - */ -export type Util = { - /** - * Returns the input string as a JavaScript escaped string. - * @param {string} value - String value to escape - * @returns {string} - JavaScript escaped string - */ - escapeJavaScript(value: string): string; - /** - * Returns the input string as an `application/x-www-form-urlencoded` encoded string. - * @param {string} value - string value to encode - * @returns {string} - Url encoded string - */ - urlEncode(value: string): string; - /** - * Decodes an `application/x-www-form-urlencoded` encoded string back to its non-encoded form. - * @param {string} value - String value to decode - * @returns {string} - Url decoded string - */ - urlDecode(value: string): string; - /** - * Encodes string to a base64 string - * @param {string} value - string to be encoded - * @returns {string} - base64 encode string - */ - base64Encode(bytes: string): string; - /** - * Decodes a base64 encoded string - * @param {string} value - base64 encoded string - * @returns {string} - base64 decoded string - */ - base64Decode(value: string): string; - /** - * Returns a 128-bit randomly generated UUID. - * @returns {string} - Randomly generated UUID - */ - autoId(): string; - /** - * Returns a 128-bit randomly generated ULID (Universally Unique Lexicographically Sortable - * Identifier). - * @returns {string} - Randomly generated UUID - */ - autoUlid(): string; - /** - * Returns a 128-bit randomly generated KSUID (K-Sortable Unique Identifier) base62 encoded as - * a String with a length of 27. - * @returns {string} - Randomly generated UUID - */ - autoKsuid(): string; - /** - * Throws Unauthorized for the field being resolved. Use this in request or response mapping - * templates to determine whether to allow the caller to resolve the field. - */ - unauthorized(): never; - /** - * Throws a custom error. Use this in request or response mapping templates to detect an error - * with the request or with the invocation result. You can also specify an `errorType` and a - * `data` field, and an `errorInfo` field. The `data` value will be added to the corresponding - * `error` block inside `errors` in the GraphQL response. Note: `data` will be filtered based - * on the query selection set. The `errorInfo` value will be added to the corresponding `error` - * block inside `errors` in the GraphQL response. Note: `errorInfo` will NOT be filtered based - * on the query selection set. - * @param {string} msg - Custom error message - * @param {string} errorType? - Custom error type - * @param {any} data? - Custom data object - * @param {any} errorInfo? - Error info object - */ - error(msg: string, errorType?: string, data?: any, errorInfo?: any): never; - /** - * Appends a custom error. Use this in request or response mapping templates to detect an error - * with the request or with the invocation result. You can also specify an `errorType` and a - * `data` field, and an `errorInfo` field. The `data` value will be added to the corresponding - * `error` block inside `errors` in the GraphQL response. Note: `data` will be filtered based - * on the query selection set. The `errorInfo` value will be added to the corresponding `error` - * block inside `errors` in the GraphQL response. Note: `errorInfo` will NOT be filtered based - * on the query selection set. Unlike `Util.error`, the template evaluation will not be - * interuppted, so that data can be returned to the caller. - * @param {string} msg - Custom error message - * @param {string} errorType? - Custom error type - * @param {any} data? - Custom data object - * @param {any} errorInfo? - Error info object - * @returns void - */ - appendError(msg: string, errorType?: string, data?: any, errorInfo?: any): void; - /** - * Returns true if the specified pattern in the first argument matches the supplied data in the - * second argument. The pattern must be a regular expression such as `Util.matches("a*b", - * "aaaaab")`. The functionality is based on Pattern, which you can reference for further - * documentation. - * @param {string} pattern - Regex pattern to match - * @param {string} value - Value to match pattern against - * @returns {boolean} - Indicates match was found - */ - matches(pattern: string, value: string): boolean; - /** - * Returns a String describing the multi-auth type being used by a request, returning back - * either "IAM Authorization", "User Pool Authorization", "Open ID Connect Authorization", or - * "API Key Authorization". - * @returns {string} - Auth type - */ - authType(): string; - /** - * The `util.time` variable contains datetime methods to help generate timestamps, convert - * between datetime formats, and parse datetime strings. The syntax for datetime formats is - * based on DateTimeFormatter which you can reference for further documentation. Below we - * provide some examples, as well as a list of available methods and descriptions. - */ - time: TimeUtils; - /** - * `util.dynamodb` contains helper methods that make it easier to write and read data to Amazon - * DynamoDB, such as automatic type mapping and formatting. These methods are designed to make - * mapping primitive types and Lists to the proper DynamoDB input format automatically, which - * is a Map of the format `{ "TYPE" : VALUE }`. - */ - dynamodb: DynamodbUtil; - /** - * `util.rds` contains helper methods that makes it easier to write and read data from Amazon - * RDS. - */ - rds: RdsUtil; - /** - * The `util.http` utility provides helper methods that you can use to manage HTTP request - * parameters and to add response headers. - */ - http: HttpUtils; - /** - * `util.xml` contains helper methods that can make it easier to translate XML responses - * to JSON or a Dictionary. - */ - xml: XmlUtils; - /** - * `util.transform` contains helper methods that make it easier to perform complex operations - * against data sources, such as Amazon DynamoDB filter operations. - */ - transform: TransformUtils; - /** - * `util.math1 contains methods to help with common Math operations. - */ - math: MathUtils; - /** - * `util.str` contains methods to help with common String operations. - */ - str: StringUtils; -}; -type Context | unknown = any, TStash extends Record = Record, TPrev extends Record | undefined = any, TSource extends Record | undefined = any, TResult extends any = any> = { - /** - * A map that contains env variables for GraphQLApi. - */ - readonly env: Record; - /** - * A map that contains all GraphQL arguments for this field. - */ - arguments: TArgs; - /** - * A map that contains all GraphQL arguments for this field. - */ - args: TArgs; - /** - * An object that contains information about the caller. For more information about the - * structure of this field, see Identity. - */ - identity: Identity; - /** - * A map that contains the resolution of the parent field. - */ - source?: TSource; - /** - * Contains potential error generated by a request. - */ - error?: { - /** - * Details about the message - */ - message: string; - /** - * type of error - */ - type: string; - }; - /** - * The stash is a map that is made available inside each resolver and function mapping - * template. The same stash instance lives through a single resolver execution. This means - * that you can use the stash to pass arbitrary data across request and response mapping - * templates, and across functions in a pipeline resolver. The stash exposes the same - * methods as the Java Map data structure. - */ - stash: TStash; - /** - * A container for the results of this resolver. This field is available only to response - * mapping templates. - * - * For example, if you're resolving the author field of the following query: - * ``` - * query { - * getPost(id: 1234) { - * postId - * title - * content - * author { - * id - * name - * } - * } - * } - * ``` - * - * Then the full context variable that is available when processing a response mapping template might be: - * ``` - * { - * "arguments" : { - * id: "1234" - * }, - * "source": {}, - * "result" : { - * "postId": "1234", - * "title": "Some title", - * "content": "Some content", - * "author": { - * "id": "5678", - * "name": "Author Name" - * } - * }, - * "identity" : { - * "sourceIp" : ["x.x.x.x"], - * "userArn" : "arn:aws:iam::123456789012:user/appsync", - * "accountId" : "666666666666", - * "user" : "AIDAAAAAAAAAAAAAAAAAA" - * } - * } - * ``` - */ - result: TResult; - /** - * The result of whatever previous operation was executed in a pipeline resolver. If the - * previous operation * was the pipeline resolver request mapping template, then - * `context.prev.result` represents the output of the evaluation of the template, and is made - * available to the first function in the pipeline. If the previous operation was the first - * function, then context.prev.result represents the output of the first function, and is made - * available to the second function in the pipeline. If the previous operation was the last - * function, then context.prev.result represents the output of the first function, and is made - * available to the second function in the pipeline. If the previous operation was the last - * function, then context.prev.result represents the output of the last function, and is made - * available to the pipeline resolver response mapping template. - */ - prev: TPrev; - /** - * AWS AppSync supports passing custom headers from clients and accessing them in your GraphQL - * resolvers by using context.request.headers. You can then use the header values for actions - * such as inserting data into a data source or authorization checks. - */ - request: Request; - /** - * An object that contains information about the GraphQL request. For the structure of this - * field, see Info. - */ - info: Info; -}; -export type Identity = AppSyncIdentityIAM | AppSyncIdentityCognito | AppSyncIdentityOIDC | AppSyncIdentityLambda | undefined | null; -export type AppSyncIdentityIAM = { - /** - * The AWS account ID of the caller. - */ - accountId: string; - /** - * The Amazon Cognito identity pool ID associated with the caller. - */ - cognitoIdentityPoolId: string; - /** - * The Amazon Cognito identity ID of the caller. - */ - cognitoIdentityId: string; - /** - * The source IP address of the caller that AWS AppSync receives. If the request doesn't - * include the `x-forwarded-for` header, the source IP value contains only a single IP address - * from the TCP connection. If the request includes a `x-forwarded-for` header, the source IP - * is a list of IP addresses from the `x-forwarded-for` header, in addition to the IP address - * from the TCP connection. - */ - sourceIp: string[]; - /** - * The user name of the authenticated user. In the case of `AMAZON_COGNITO_USER_POOLS` - * authorization, the value of username is the value of attribute `cognito:username`. In the - * case of `AWS_IAM` authorization, the value of username is the value of the AWS user - * principal. If you're using IAM authorization with credentials vended from Amazon Cognito - * identity pools, we recommend that you use `cognitoIdentityId`. - */ - username: string; - /** - * The Amazon Resource Name (ARN) of the IAM user. - */ - userArn: string; - /** - * Either authenticated or unauthenticated based on the identity type. - */ - cognitoIdentityAuthType: string; - /** - * A comma-separated list of external identity provider information used in obtaining the - * credentials used to sign the request. - */ - cognitoIdentityAuthProvider: string; -}; -export type AppSyncIdentityCognito = { - /** - * The source IP address of the caller that AWS AppSync receives. If the request doesn't - * include the `x-forwarded-for` header, the source IP value contains only a single IP address - * from the TCP connection. If the request includes a `x-forwarded-for` header, the source IP - * is a list of IP addresses from the `x-forwarded-for` header, in addition to the IP address - * from the TCP connection. - */ - sourceIp: string[]; - /** - * The user name of the authenticated user. In the case of `AMAZON_COGNITO_USER_POOLS` - * authorization, the value of username is the value of attribute `cognito:username`. In the - * case of `AWS_IAM` authorization, the value of username is the value of the AWS user - * principal. If you're using IAM authorization with credentials vended from Amazon Cognito - * identity pools, we recommend that you use `cognitoIdentityId`. - */ - username: string; - /** - * The groups the authenticated user belongs to. - */ - groups: string[] | null; - /** - * The UUID of the authenticated user. - */ - sub: string; - /** - * The token issuer. - */ - issuer: string; - /** - * The claims that the user has. - */ - claims: any; - /** - * The default authorization strategy for this caller (ALLOW or DENY). - */ - defaultAuthStrategy: string; -}; -export type AppSyncIdentityOIDC = { - /** - * The UUID of the authenticated user. - */ - sub: string; - /** - * The token issuer. - */ - issuer: string; - /** - * The claims that the user has. - */ - claims: any; -}; -export type AppSyncIdentityLambda = { - /** - * content returned by the Lambda function authorizing the request. - */ - resolverContext: any; -}; -export type Extensions = { - /** - * Evicts an item from the AWS AppSync server-side cache. The first argument is the type name. - * The second argument is the field name. The third argument is an object containing key-value pair - * items that specify the caching key value. You must put the items in the object in the same order - * as the caching keys in the cached resolver's cachingKey. - * __Note:__ This utility works only for mutations, not queries. - */ - evictFromApiCache(typeName: string, fieldName: string, keyValuePair: Record): void; - /** - * Defines enhanced subscription filters. Each subscription notification event is - * evaluated against provided subscription filters and delivers notifications to - * clients if all filters evaluate to true. - * @param filter - */ - setSubscriptionFilter(filter: SubscriptionFilter): void; - /** - * Defines subscription invalidation filters. Subscription filters are evaluated - * against the invalidation payload, then invalidate a given subscription if the - * filters evaluate to true - * @param filter - */ - setSubscriptionInvalidationFilter(filter: SubscriptionFilter): void; - /** - * Used to initiate a subscription invalidation from a mutation. - * - * The InvalidationObject defines the following: - * * subscriptionField – The GraphQL schema subscription to invalidate. A single subscription, - * defined as a string in the subscriptionField, is considered for invalidation. - * * payload – A key-value pair list that's used as the input for invalidating subscriptions - * if the invalidation filter evaluates to true against their values. - * - * @param obj - */ - invalidateSubscriptions(obj: SubscriptionInvalidationObject): void; -}; -export type Request = { - /** - * AWS AppSync supports passing custom headers from clients and accessing them in your GraphQL - * resolvers by using context.request.headers. You can then use the header values for actions - * such as inserting data into a data source or authorization checks. - */ - headers: any; - /** - * AWS AppSync supports configuring a custom domain that you can use to access your GraphQL and - * real-time endpoints for your APIs. When making a request with a custom domain name, you can - * get the domain name using context.request.domainName. - */ - domainName: string | null; -}; -export type Info = { - /** - * The name of the field that is currently being resolved. - */ - fieldName: string; - /** - * The name of the parent type for the field that is currently being resolved. - */ - parentTypeName: string; - /** - * A map which holds all variables that are passed into the GraphQL request. - */ - variables: Record; - /** - * A list representation of the fields in the GraphQL selection set. Fields that are aliased - * are referenced only by the alias name, not the field name. The following example shows this - * in detail. - */ - selectionSetList: string[]; - /** - * A string representation of the selection set, formatted as GraphQL schema definition - * language (SDL). Although fragments aren't merged into the selection set, inline fragments - * are preserved, as shown in the following example. - */ - selectionSetGraphQL: string; -}; -/** - * The runtime object provides information and control over the current execution AppSync function - * or resolver. - */ -type Runtime = { - /** - * Invoking this function will halt execution of the current function (AppSync Function) or - * resolver (Unit or Pipeline Resolver) depending on the current context and return the specified - * object as the result. - * * When called in an AppSync function request handler, the data Source and response handler - * are skipped and the next function request handler (or the pipeline resolver response - * handler if this was the last AppSync function) is called. - * * When called in an AppSync pipeline resolver request handler, the pipeline execution is - * skipped, and the pipeline resolver response handler is called immediately. - * - * @param obj Optional return value - */ - earlyReturn(obj?: unknown): never; -}; -declare global { - var util: Util; - var extensions: Extensions; - var runtime: Runtime; -} -declare const util: Util; -declare const extensions: Extensions; -declare const runtime: Runtime; -export { DynamoDBBinaryResult, DynamoDBBooleanResult, DynamoDBBinarySetResult, DynamoDBListResult, DynamoDBMapResult, DynamoDBNullResult, DynamoDBNumberResult, DynamoDBNumberSetResult, DynamoDBStringResult, DynamoDBStringSetResult, DynamoDBReturnType, } from './dynamodb-utils'; -export { DynamoDBExpressionOperation, DynamoDBFilterObject, OpenSearchQueryObject, OpenSearchQueryOperation, ShallowSubscriptionFilterObject, SubscriptionFilterExcludeKeysType, SubscriptionFilterObject, SubscriptionFilterOperation, SubscriptionFilterRuleObject, } from './transform-utils'; -export { SubscriptionFilter } from './subscription-filter-types'; -export { util, extensions, runtime, Context }; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/index.js b/graphql/node_modules/@aws-appsync/utils/lib/index.js deleted file mode 100644 index fe132f79..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.runtime = exports.extensions = exports.util = void 0; -__exportStar(require("./resolver-return-types"), exports); -const util = {}; -exports.util = util; -const extensions = {}; -exports.extensions = extensions; -const runtime = {}; -exports.runtime = runtime; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/index.js.map b/graphql/node_modules/@aws-appsync/utils/lib/index.js.map deleted file mode 100644 index cebd04a2..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAwC;AAojBxC,MAAM,IAAI,GAAS,EAAU,CAAC;AAgCrB,oBAAI;AA/Bb,MAAM,UAAU,GAAe,EAAgB,CAAC;AA+BjC,gCAAU;AA9BzB,MAAM,OAAO,GAAY,EAAa,CAAC;AA8BZ,0BAAO"} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/math-utils.d.ts deleted file mode 100644 index 3e12f272..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export type MathUtils = { - /** - * Takes a double and rounds it to the nearest integer. - * @param {number} input - * @returns {number} - Rounded integer - */ - roundNum: (input: number) => number; - /** - * Takes two numbers and returns the minimum value between the two numbers. - * @param {number} input1 - * @param {number} input2 - * @returns {number} - Minimum value - */ - minVal: (input1: number, input2: number) => number; - /** - * Takes two numbers and returns the maximum value between the two numbers. - * @param {number} input1 - * @param {number} input2 - * @returns {number} - Maximum value - */ - maxVal: (input1: number, input2: number) => number; - /** - * Returns a random double between 0 and 1. - * - * This function shouldn't be used for anything that needs high entropy - * randomness (for example, cryptography). - * @returns {number} - Random double between 0 and 1 - */ - randomDouble: () => number; - /** - * Returns a random integer value within the specified range, - * with the first argument specifying the lower value of the range and the second argument specifying the upper value of the range. - * - * This function shouldn't be used for anything that needs high entropy - * randomness (for example, cryptography). - * @param {number} start - lower value of the range - * @param {number} end - upper value of the range - * @returns {number} Random integer value within the specified range - */ - randomWithinRange: (start: number, end: number) => number; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js deleted file mode 100644 index 55972df3..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=math-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js.map deleted file mode 100644 index 2e131703..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/math-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"math-utils.js","sourceRoot":"","sources":["../src/math-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.d.ts deleted file mode 100644 index 3dd67ff4..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.d.ts +++ /dev/null @@ -1,376 +0,0 @@ -import { Prettify } from './type-utils'; -import { RDSRequest, RDSResponse } from './resolver-return-types'; -interface RDSTypeHint { -} -/** - * A helper type that provides methods to create type hints for different SQL data types. - * This helper facilitates the declaration of specific SQL types like DECIMAL, JSON, TIMESTAMP, etc. - * Each method returns an instance of RDSTypeHint which represents the SQL type hint for a value. - */ -export declare type RDSTypeHintHelper = { - DECIMAL(value: string | number): RDSTypeHint; - JSON(value: any): RDSTypeHint; - TIMESTAMP(value: string): RDSTypeHint; - TIME(value: string): RDSTypeHint; - UUID(value: string): RDSTypeHint; - DATE(value: string): RDSTypeHint; -}; -/** - * helper methods to assign a SQL type hint to a value, - * such as indicating a value should be treated as a TIMESTAMP, - * JSON, UUID, etc., in SQL operations. - */ -export declare const typeHint: RDSTypeHintHelper; -type RDSEqualityOperator = { - ne?: T | null; - eq?: T | null; -}; -type RDSScalarOperator = Prettify & { - le?: T | null; - lt?: T | null; - gt?: T | null; - ge?: T | null; -}>; -type RDSNumberOperator = Prettify & { - between?: [T, T] | null; -}>; -type RDSStringOperator = Prettify & { - beginsWith?: T | null; - contains?: T | null; - size?: RDSNumberOperator; -}>; -type RDSAttributeExistsOperator = { - attributeExists?: boolean | null; -}; -type RDSBooleanOperator = RDSEqualityOperator; -type RDSExpressionOperation = TOperand extends boolean ? Prettify> & RDSAttributeExistsOperator> : TOperand extends number ? Prettify> & RDSAttributeExistsOperator> : TOperand extends string ? Prettify> & RDSAttributeExistsOperator> : never; -type RDSConditionShallowObject = T extends Record ? Prettify<{ - [P in keyof T]?: Prettify>; -}> : any; -type RDSConditionObject = T extends Record ? Prettify> & { - and?: RDSConditionObject>[]; - or?: RDSConditionObject>[]; - not?: RDSConditionObject>[]; -}> : {}; -type ColumnName = T extends Record ? keyof T : string; -export type OrderBy = { - column: ColumnName; - dir?: 'ASC' | 'DESC' | 'asc' | 'desc'; -}; -type RDSAliasObject = { - [key: string]: SQLStatement | SelectStatement | string; -}; -type RDSBasePayloadWithTable = { - /** - * The name of the database table involved in the SQL operation. This is a required field if - * from is not included. - */ - table: string; - from?: never; -}; -type RDSBasePayloadWithFrom = { - /** - * The name of the database table involved in the SQL operation. This is a required field if - * table is not included. - */ - from: string | RDSAliasObject; - table?: never; -}; -type RDSBasePayload = RDSBasePayloadWithTable | RDSBasePayloadWithFrom; -type RDSBaseConditionalPayload = Prettify = { - * customerId: { - * eq: 12123 - * }, - * or: [ - * { - * status: { eq: "PENDING"}, - * }, - * { - * status: { eq: "SHIPPING"}, - * } - * ] - * } - * ``` - * This will generate the following WHERE clause - * `WHERE customerId = 12123 OR (status = "PENDING" OR status = "SHIPPING")` - */ - where?: RDSConditionObject; -}>; -export type SelectPayload = Prettify & { - /** - * Specifies the list of columns to be returned in the result. Defaults to '*' (all columns). - */ - columns?: ColumnName[] | '*'; - /** - * Specifies the order by which the results should be sorted. - */ - orderBy?: OrderBy[]; - /** - * Limits the number of results returned. - */ - limit?: number; - /** - * Specifies the offset from where to start returning results. - */ - offset?: number; -}>; -export type InsertPayload = Prettify> & { - /** - * required parameter values that contains data to be inserted - */ - values: T extends Record ? T : Record; -}>; -export type UpdatePayload = Prettify & Partial> & { - /** - * required parameter values that contains values to be updated in the record - */ - values: T extends Record ? Partial : Record; -}>; -export type RemovePayload = Prettify> & RDSBaseConditionalPayload>; -type PGReturningPayload = { - /** - * a list of columns that should be returned. Accepts `*` to return all the columns. - * Only supported in Postgres - */ - returning: ColumnName[] | '*'; -}; -export interface SQLStatement { -} -export interface SelectStatement extends SQLStatement { -} -export interface InsertStatement extends SQLStatement { -} -export interface UpdateStatement extends SQLStatement { -} -export interface RemoveStatement extends SQLStatement { -} -/** - * Generates select SQL statement - * @example - * ```typescript - * import { select, createMySQLStatement } from '@aws-appsync/utils/rds'; - * export function request(ctx) { - * const statement1 = select({ - * table: 'test', - * where: { - * name: { - * contains: 'son' - * } - * } - * }); - * return createMySQLStatement(statement1); - * } - * ``` - * @param payload - */ -export declare function select(payload: SelectPayload): SelectStatement; -/** - * Generates insert SQL statement - * @example - * ```typescript - * import { insert, createMySQLStatement } from '@aws-appsync/utils/rds'; - * export function request(ctx) { - * const statement1 = insert({ - * table: 'test', - * values: { - * name: "Luke Skywalker" - * }, - * }); - * return createMySQLStatement(statement1); - * } - * ``` - * @param payload - */ -export declare function insert(payload: InsertPayload): InsertStatement; -/** - * Generates update SQL statement - * @example - * ```typescript - * import { update, createMySQLStatement } from '@aws-appsync/utils/rds'; - * export function request(ctx) { - * const statement1 = update({ - * table: 'test', - * values: { - * name: "Luke Skywalker" - * }, - * where: { - * id: { - * eq: 12123 - * } - * } - * }); - * return createMySQLStatement(statement1); - * } - * ``` - * @param payload - */ -export declare function update(payload: UpdatePayload): UpdateStatement; -/** - * A helper to generate DELETE SQL statement to delete records from table - * @example - * ```typescript - * import { remove, createMySQLStatement } from '@aws-appsync/utils/rds'; - * export function request(ctx) { - * const statement1 = remove({ - * table: 'test', - * where: { id: { eq: 112321 }} - * }); - * return createMySQLStatement(statement1); - * } - * ``` - * @param payload - */ -export declare function remove(payload: RemovePayload): RemoveStatement; -type Statement = SQLStatement | string; -/** - * Generates an RDSRequest to interacts with Postgres database. The generated - * statements are quoted and escaped using `"` as quoting character. - * - * @param statement1 required statement - * @param statement2 optional second statement - */ -export declare function createPgStatement(statement1: Statement, statement2?: Statement | null): RDSRequest; -/** - * Generates an RDSRequest to interacts with MySQL RDS database. The generated - * statements are quoted and escaped using backtick as quoting character. - * - * @param statement1 required statement - * @param statement2 optional second statement - */ -export declare function createMySQLStatement(statement1: Statement, statement2?: Statement | null): RDSRequest; -/** - * The tagged template allows writing a static statement that can receive dynamic values at runtime through - * template expressions. AWS AppSync builds a variable map from the expression values to construct a - * SqlParameterized query sent to the Amazon Aurora Serverless Data API. - */ -export declare function sql(literal: TemplateStringsArray, ...args: any[]): SQLStatement; -/** - * Returns a object by transforming the stringified raw Amazon Relational Database Service - * (Amazon RDS) Data API operation result format to a more concise object. - * The returned object is a serialized list of SQL records of the result set. - * Every record is represented as a collection of key-value pairs. The keys are - * the corresponding column names. - - * If the corresponding statement in the input was a SQL query that causes a mutation - * (for example INSERT, UPDATE, DELETE), then an empty list is returned. - * For example, the query `select * from Books limit 2` provides the raw result - * from the Amazon RDS Data operation: - - * ``` - * { - * "sqlStatementResults": [ - * { - * "numberOfRecordsUpdated": 0, - * "records": [ - * [ - * { - * "stringValue": "Mark Twain" - * }, - * { - * "stringValue": "Adventures of Huckleberry Finn" - * }, - * { - * "stringValue": "978-1948132817" - * } - * ], - * [ - * { - * "stringValue": "Jack London" - * }, - * { - * "stringValue": "The Call of the Wild" - * }, - * { - * "stringValue": "978-1948132275" - * } - * ] - * ], - * "columnMetadata": [ - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "author", - * "precision": 200, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "author" - * }, - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "title", - * "precision": 200, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "title" - * }, - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "ISBN-13", - * "precision": 15, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "ISBN-13" - * } - * ] - * } - * ] - * } - ``` - - * The util.rds.toJson of this JSON block is: - - ``` - * [ - * { - * "author": "Mark Twain", - * "title": "Adventures of Huckleberry Finn", - * "ISBN-13": "978-1948132817" - * }, - * { - * "author": "Jack London", - * "title": "The Call of the Wild", - * "ISBN-13": "978-1948132275" - * } - * ] - * - ``` - @param data - Serialized SQL result - @returns Array>> - Object representing SQL results - */ -export declare function toJsonObject(data: string | RDSResponse): Array>>; -export {}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js b/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js deleted file mode 100644 index 9c8a0f13..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=rds-helpers.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js.map b/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js.map deleted file mode 100644 index dc646a93..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rds-helpers.js","sourceRoot":"","sources":["../src/rds-helpers.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.d.ts deleted file mode 100644 index 030f63e7..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { RDSResponse } from "."; -export type RdsUtil = { - /** - * Returns a object by transforming the stringified raw Amazon Relational Database Service - * (Amazon RDS) Data API operation result format to a more concise object. - * The returned object is a serialized list of SQL records of the result set. - * Every record is represented as a collection of key-value pairs. The keys are - * the corresponding column names. - - * If the corresponding statement in the input was a SQL query that causes a mutation - * (for example INSERT, UPDATE, DELETE), then an empty list is returned. - * For example, the query select * from Books limit 2 provides the raw result - * from the Amazon RDS Data operation: - - * ``` - * { - * "sqlStatementResults": [ - * { - * "numberOfRecordsUpdated": 0, - * "records": [ - * [ - * { - * "stringValue": "Mark Twain" - * }, - * { - * "stringValue": "Adventures of Huckleberry Finn" - * }, - * { - * "stringValue": "978-1948132817" - * } - * ], - * [ - * { - * "stringValue": "Jack London" - * }, - * { - * "stringValue": "The Call of the Wild" - * }, - * { - * "stringValue": "978-1948132275" - * } - * ] - * ], - * "columnMetadata": [ - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "author", - * "precision": 200, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "author" - * }, - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "title", - * "precision": 200, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "title" - * }, - * { - * "isSigned": false, - * "isCurrency": false, - * "label": "ISBN-13", - * "precision": 15, - * "typeName": "VARCHAR", - * "scale": 0, - * "isAutoIncrement": false, - * "isCaseSensitive": false, - * "schemaName": "", - * "tableName": "Books", - * "type": 12, - * "nullable": 0, - * "arrayBaseColumnType": 0, - * "name": "ISBN-13" - * } - * ] - * } - * ] - * } - ``` - - * The util.rds.toJson of this JSON block is: - - ``` - * [ - * { - * "author": "Mark Twain", - * "title": "Adventures of Huckleberry Finn", - * "ISBN-13": "978-1948132817" - * }, - * { - * "author": "Jack London", - * "title": "The Call of the Wild", - * "ISBN-13": "978-1948132275" - * } - * ] - * - ``` - * @param serializedSQLResult - Serialized SQL result - * @returns {Record | null} - Object representing SQL results - */ - toJsonObject(serializedSQLResult: string | RDSResponse): Record | null; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js deleted file mode 100644 index 149ee279..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=rds-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js.map deleted file mode 100644 index b2c4ee0e..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/rds-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rds-utils.js","sourceRoot":"","sources":["../src/rds-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.d.ts deleted file mode 100644 index f9843022..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.d.ts +++ /dev/null @@ -1,349 +0,0 @@ -export type Key = { - [key: string]: AttributeValue; -}; -export type AttributeValue = unknown; -export type AttributeValueList = AttributeValue[]; -export type ConsistentRead = boolean; -export type PutItemInputAttributeMap = { - [key: string]: AttributeValue; -}; -export type AttributeMap = { - [key: string]: AttributeValue; -}; -export type AttributeName = string; -export type AttributeNameList = AttributeName[]; -export type ExpressionAttributeNameMap = { - [key: string]: AttributeName; -}; -export type ExpressionAttributeNameVariable = string; -export type ExpressionAttributeValueMap = { - [key: string]: AttributeValue; -}; -export type ExpressionAttributeValueVariable = string; -export type ConditionCheckExpression = { - expression: string; - expressionNames?: ExpressionAttributeNameMap; - expressionValues?: ExpressionAttributeValueMap; - equalsIgnore?: string[]; - consistentRead?: boolean; - conditionalCheckFailedHandler?: { - strategy: 'Custom' | 'Reject'; - lambdaArn?: string; - }; -}; -export type TransactConditionCheckExpression = { - expression: string; - expressionNames?: ExpressionAttributeNameMap; - expressionValues?: ExpressionAttributeValueMap; - returnValuesOnConditionCheckFailure: boolean; -}; -export type DynamoDBExpression = { - expression: string; - expressionNames?: ExpressionAttributeNameMap; - expressionValues?: ExpressionAttributeValueMap; -}; -export type DynamoDBProjectionExpression = { - expression: string; - expressionNames?: Record; -}; -export type DynamoDBGetItemRequest = { - operation: 'GetItem'; - key: Key; - consistentRead?: ConsistentRead; - projection?: DynamoDBProjectionExpression; -}; -/** - * @deprecated Use DynamoDBGetItemRequest - */ -export type DynamoDBGetItem = DynamoDBGetItemRequest; -export type DynamoDBPutItemRequest = { - operation: 'PutItem'; - key: Key; - attributeValues: PutItemInputAttributeMap; - condition?: ConditionCheckExpression; - customPartitionKey?: string; - populateIndexFields?: boolean; - _version?: number; -}; -export type DynamoDBUpdateItemRequest = { - operation: 'UpdateItem'; - key: Key; - update: DynamoDBExpression; - condition?: ConditionCheckExpression; - customPartitionKey?: string; - populateIndexFields?: boolean; - _version?: number; -}; -export type DynamoDBDeleteItemRequest = { - operation: 'DeleteItem'; - key: Key; - condition?: ConditionCheckExpression; - customPartitionKey?: string; - populateIndexFields?: boolean; - _version?: number; -}; -export type DynamoDBQueryRequest = { - operation: 'Query'; - query: DynamoDBExpression; - index?: string; - nextToken?: string; - limit?: number; - scanIndexForward?: boolean; - consistentRead?: boolean; - select?: 'ALL_ATTRIBUTES' | 'ALL_PROJECTED_ATTRIBUTES'; - filter?: DynamoDBExpression; - projection?: DynamoDBProjectionExpression; -}; -export type DynamoDBScanRequest = { - operation: 'Scan'; - index?: string; - limit?: number; - consistentRead?: boolean; - nextToken?: string; - totalSegments?: number; - segment?: number; - filter?: DynamoDBExpression; - projection?: DynamoDBProjectionExpression; -}; -export type DynamoDBSyncRequest = { - operation: 'Sync'; - basePartitionKey?: string; - deltaIndexName?: string; - limit?: number; - nextToken?: string; - lastSync?: number; - filter?: DynamoDBExpression; -}; -export type DynamoDBBatchGetItemRequest = { - operation: 'BatchGetItem'; - tables: { - [tableName: string]: { - keys: Key[]; - consistentRead?: boolean; - projection?: DynamoDBProjectionExpression; - }; - }; -}; -export type DynamoDBBatchDeleteItemRequest = { - operation: 'BatchDeleteItem'; - tables: { - [tableName: string]: Key[]; - }; -}; -export type DynamoDBBatchPutItemRequest = { - operation: 'BatchPutItem'; - tables: { - [tableName: string]: PutItemInputAttributeMap[]; - }; -}; -export type DynamoDBTransactGetItemsRequest = { - operation: 'TransactGetItems'; - transactItems: { - table: string; - key: Key; - }[]; -}; -export type DynamoDBTransactWriteItemsRequest = { - operation: 'TransactWriteItems'; - transactItems: TransactItem[]; -}; -type TransactItem = TransactWritePutItem | TransactWriteUpdateItem | TransactWriteDeleteItem | TransactWriteConditionCheckItem; -type TransactWritePutItem = { - table: string; - operation: 'PutItem'; - key: Key; - attributeValues: PutItemInputAttributeMap; - condition?: TransactConditionCheckExpression; -}; -type TransactWriteUpdateItem = { - table: string; - operation: 'UpdateItem'; - key: Key; - update: DynamoDBExpression; - condition?: TransactConditionCheckExpression; -}; -type TransactWriteDeleteItem = { - table: string; - operation: 'DeleteItem'; - key: Key; - condition?: TransactConditionCheckExpression; -}; -type TransactWriteConditionCheckItem = { - table: string; - operation: 'ConditionCheck'; - key: Key; - condition?: TransactConditionCheckExpression; -}; -export type HTTPRequest> = { - method: 'PUT' | 'POST' | 'GET' | 'DELETE' | 'PATCH'; - params?: { - query?: { - [key: string]: any; - }; - headers?: { - [key: string]: string; - }; - body?: T; - }; - resourcePath: string; -}; -export type HTTPResult = { - statusCode: number; - headers?: Record; - body: string; -}; -export type RDSRequest = { - statements: string[]; - variableMap: Record; - variableTypeHintMap: Record; -}; -type RDSColumnMetadata = { - /** - * Name of the column - */ - name?: string; - /** - * The label for the column. - */ - label?: string; - /** - * The database-specific data type of the column. - */ - typeName?: string; - /** - * The name of the schema that owns the table that includes the column. - */ - schemaName?: string; - /** - * The name of the table that includes the column. - */ - tableName?: string; - /** - * A value that indicates whether the column is nullable. - */ - nullable?: number; - /** - * A value that indicates whether the column increments automatically. - */ - isAutoIncrement?: boolean; - /** - * A value that indicates whether the column is case-sensitive. - */ - isCaseSensitive?: boolean; - /** - * The type of the column. - */ - type?: number; - /** - * A value that indicates whether an integer column is signed. - */ - isSigned?: boolean; - /** - * A value that indicates whether the column contains currency values. - */ - isCurrency?: boolean; - /** - * The precision value of a decimal number column. - */ - precision?: number; - /** - * The scale value of a decimal number column. - */ - scale?: number; - /** - * The type of the column. - */ - arrayBaseColumnType?: number; -}; -type RDSStructValue = { - attributes: RDSRecordColumnValue[]; -}; -type RDSRecordColumnValue = { - /** - * A NULL value. - */ - isNull: boolean; - /** - * A value for a column of BIT data type. - */ - bitValue: boolean; - /** - * A value for a column of big integer data type. - */ - bigIntValue: number; - /** - * A value for a column of integer data type. - */ - intValue: number; - /** - * A value for a column of double data type. - */ - doubleValue: number; - /** - * A value for a column of real data type. - */ - realValue: number; - /** - * A value for a column of string data type. - */ - stringValue: string; - /** - * A value for a column of BLOB data type. - */ - blobValue: ArrayBuffer; - /** - * An array of column values. - */ - arrayValues: RDSRecordColumnValue[]; - /** - * A value for a column of STRUCT data type. - */ - structValue: RDSStructValue; -}; -type RDSSqlStatementResult = { - numberOfRecordsUpdated: number; - records: Array; - columnMetadata: RDSColumnMetadata[]; -}; -export type RDSResponse = { - sqlStatementResults: RDSSqlStatementResult[]; -}; -export type OpenSearchRequest = { - operation: 'GET' | 'POST' | ' PUT' | 'HEAD' | 'DELETE'; - path: string; - params?: Partial<{ - headers: unknown; - queryString: unknown; - body: unknown; - }>; -}; -export type LambdaRequest = { - operation: 'Invoke' | 'BatchInvoke'; - invocationType?: 'RequestResponse' | 'Event'; - payload: unknown; -}; -export type NONERequest = { - payload: unknown; -}; -export type PutEventsRequest = { - operation: 'PutEvents'; - events: { - source: string; - detail: { - [key: string]: any; - }; - detailType: string; - resources?: string[]; - time?: string; - }[]; -}; -export type PutEventsResult = { - Entries: Array<{ - EventId: string; - } | { - ErrorCode: string; - ErrorMessage: string; - }>; - FailedEntryCount: number; -}; -export {}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js b/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js deleted file mode 100644 index 999aec45..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=resolver-return-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js.map b/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js.map deleted file mode 100644 index 5117f80f..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/resolver-return-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver-return-types.js","sourceRoot":"","sources":["../src/resolver-return-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/string-utils.d.ts deleted file mode 100644 index b07163fb..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export type NormalizationType = 'nfc' | 'nfd' | 'nfkc' | 'nfkd'; -export type StringUtils = { - /** - * Normalizes a string using one of the four unicode normalization forms: NFC, NFD, NFKC, or - * NFKD. The first argument is the string to normalize. The second argument is either "nfc", - * "nfd", "nfkc", or "nfkd" specifying the normalization type to use for the normalization - * process. - * @param {string} value - Value to be normalized - * @param {('nfc' | 'nfd' | 'nfkc' | 'nfkd')} normalizationType Normalization type - * @returns {string} Normalized string - */ - normalize(value: string, normalizationType: NormalizationType): string; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js deleted file mode 100644 index 57fce8f1..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=string-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js.map deleted file mode 100644 index b700d760..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/string-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../src/string-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.d.ts deleted file mode 100644 index 71eb78c4..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -type SubscriptionFilterValue = string | number; -export interface SubscriptionFilterGeneric { - fieldName: string; - operator: string; - value: SubscriptionFilterValue | boolean | SubscriptionFilterValue[]; -} -export interface SubscriptionFilterEquality extends SubscriptionFilterGeneric { - operator: 'eq' | 'ne'; - value: SubscriptionFilterValue | boolean; -} -export interface SubscriptionFilterComparator extends SubscriptionFilterGeneric { - operator: 'le' | 'lt' | 'ge' | 'gt'; - value: SubscriptionFilterValue; -} -export interface SubscriptionFilterContains extends SubscriptionFilterGeneric { - operator: 'contains' | 'notContains'; - value: SubscriptionFilterValue; -} -export interface SubscriptionFilterBeginsWith extends SubscriptionFilterGeneric { - operator: 'beginsWith'; - value: string; -} -export interface SubscriptionFilterIn extends SubscriptionFilterGeneric { - operator: 'in' | 'notIn'; - value: SubscriptionFilterValue[]; -} -export interface SubscriptionFilterBetween extends SubscriptionFilterGeneric { - operator: 'between'; - value: [SubscriptionFilterValue, SubscriptionFilterValue]; -} -export type SubscriptionFilterEntry = SubscriptionFilterEquality | SubscriptionFilterComparator | SubscriptionFilterContains | SubscriptionFilterBeginsWith | SubscriptionFilterIn | SubscriptionFilterBetween; -export type SubscriptionFilterGroup = { - filters: SubscriptionFilterEntry[]; -}; -export type SubscriptionFilter = { - filterGroup: SubscriptionFilterGroup[]; -}; -export {}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js b/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js deleted file mode 100644 index 2c361eef..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=subscription-filter-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js.map b/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js.map deleted file mode 100644 index 894e5f01..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/subscription-filter-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscription-filter-types.js","sourceRoot":"","sources":["../src/subscription-filter-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/time-utils.d.ts deleted file mode 100644 index f0ae43e3..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -export type TimeUtils = { - /** - * Returns a String representation of UTC in ISO8601 format. - * @returns {string} - Current time formatted ISO8601 - */ - nowISO8601(): string; - /** - * Returns the number of seconds from the epoch of 1970-01-01T00:00:00Z to now. - * @returns {number} - Current time in seconds - */ - nowEpochSeconds(): number; - /** - * Returns the number of milliseconds from the epoch of 1970-01-01T00:00:00Z to now. - * @returns {number} - Current time in milliseconds - */ - nowEpochMilliSeconds(): number; - /** - * Returns a string of the current timestamp in UTC using the specified format from a String - * input type. - * @param {string} formatString - Date format string - * @returns {string} - Current time formatted - */ - nowFormatted(formatString: string): string; - /** - * Returns a string of the current timestamp for a timezone using the specified format and - * timezone from String input types. - * @param {string} formatString - Date format string - * @param {string} timezone - Timezone - * @returns {string} - Current time formatted - */ - nowFormatted(formatString: string, timezone: string): string; - /** - * Parses a timestamp passed as a String, along with a format, and return the timestamp as - * milliseconds since epoch. - * @param {string} timestamp - Formatted timestamp - * @param {string} formatString - Date format string - * @returns {number} - Parsed time - */ - parseFormattedToEpochMilliSeconds(timestamp: string, formatString: string): number; - /** - * Parses a timestamp passed as a String, along with a format and time zone, and return the - * timestamp as milliseconds since epoch. - * @param {string} timestamp - Formatted timestamp - * @param {string} formatString - Date format string - * @param {string} timezone - Timezone - * @returns {number} - Parsed time - */ - parseFormattedToEpochMilliSeconds(timestamp: string, formatString: string, timezone: string): number; - /** - * Parses an ISO8601 timestamp, passed as a String, and return the timestamp as milliseconds - * since epoch. - * @param {string} timestamp - ISO 8601 timestamp - * @returns {number} - Parsed timestamp in milliseconds - */ - parseISO8601ToEpochMilliSeconds(timestamp: string): number; - /** - * Converts an epoch milliseconds timestamp to an epoch seconds timestamp. - * @param {number} milliseconds - Milliseconds since epoch - * @returns {number} - Seconds since epoch - */ - epochMilliSecondsToSeconds(milliseconds: number): number; - /** - * Converts a epoch milliseconds timestamp to an ISO8601 timestamp. - * @param {number} milliseconds - Milliseconds since epoch - * @returns {string} - Date in ISO 8601 format - */ - epochMilliSecondsToISO8601(milliseconds: number): string; - /** - * Converts a epoch milliseconds timestamp, passed as long, to a timestamp formatted according - * to the supplied format in UTC. - * @param {number} milliseconds - Milliseconds since epoch - * @param {string} formatString - Date format string - * @returns {string} - Formatted timestamp - */ - epochMilliSecondsToFormatted(milliseconds: number, formatString: string): string; - /** - * Converts a epoch milliseconds timestamp, passed as long, to a timestamp formatted according - * to the supplied format in UTC. - * @param {number} milliseconds - Milliseconds since epoch - * @param {string} formatString - Date format string - * @param {string} timezone - Timezone - * @returns {string} - Formatted timestamp - */ - epochMilliSecondsToFormatted(milliseconds: number, formatString: string, timezone: string): string; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js deleted file mode 100644 index e12dd28c..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=time-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js.map deleted file mode 100644 index 7daf91dc..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/time-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time-utils.js","sourceRoot":"","sources":["../src/time-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.d.ts deleted file mode 100644 index 1525229d..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { SubscriptionFilter } from './subscription-filter-types'; -import { Prettify } from './type-utils'; -export type DynamoDBAttributeTypeValues = '_null' | 'string' | 'stringSet' | 'number' | 'numberSet' | 'binary' | 'binarySet' | 'boolean' | 'list' | 'map'; -type DynamoDBAttributeOperator = { - attributeType?: DynamoDBAttributeTypeValues | null; - attributeExists?: boolean | null; -}; -type DynamoDBOperator = DynamoDBAttributeOperator & T; -export type DynamoDBEqualityOperators = { - ne?: T | null; - eq?: T | null; -}; -type DynamoDBScalarNumberOperators = DynamoDBEqualityOperators & { - le?: T | null; - lt?: T | null; - ge?: T | null; - gt?: T | null; - in?: T[] | null; -}; -type DynamoDBNumberOperators = DynamoDBScalarNumberOperators & { - between?: [T, T] | null; -}; -type DynamoDBStringOperators = DynamoDBScalarNumberOperators & { - beginsWith?: T | null; - contains?: T | null; - notContains?: T | null; -}; -type DynamoDBBooleanOperators = DynamoDBEqualityOperators; -type DynamoDBArrayOperators = { - contains?: T | null; - notContains?: T | null; -}; -export type DynamoDBExpressionOperation = TOperand extends (infer U)[] ? DynamoDBOperator>> : TOperand extends boolean ? DynamoDBOperator>> : TOperand extends number ? DynamoDBOperator>> : TOperand extends string ? DynamoDBOperator>> : TOperand extends Record ? ShallowDynamoDBFilterObject : any; -export type ShallowDynamoDBFilterObject = T extends Record ? Prettify<{ - [k in keyof T]?: DynamoDBExpressionOperation> | null; -}> : any; -export type DynamoDBFilterObject = T extends Record ? Prettify> & { - and?: DynamoDBFilterObject | DynamoDBFilterObject[] | null; - or?: DynamoDBFilterObject | DynamoDBFilterObject[] | null; - not?: DynamoDBFilterObject | null; -}> : {}; -type OpenSearchBaseOperators = { - exists?: boolean; -}; -type OpenSearchEqualityOperators = { - eq?: T; - ne?: T; -}; -type OpenSearchScalarNumberOperators = OpenSearchEqualityOperators & { - gt?: T; - gte?: T; - lt?: T; - lte?: T; -}; -type OpenSearchNumberOperators = OpenSearchScalarNumberOperators & { - range?: [T, T]; -}; -type OpenSearchStringOperators = OpenSearchEqualityOperators & { - match?: T; - matchPhrase?: T; - matchPhrasePrefix?: T; - wildcard?: T; - regexp?: T; - multiMatch?: T; -}; -type OpenSearchBooleanOperators = OpenSearchEqualityOperators; -export type OpenSearchQueryOperation = TOperand extends boolean ? OpenSearchBaseOperators & OpenSearchBooleanOperators : TOperand extends number ? OpenSearchBaseOperators & OpenSearchNumberOperators : TOperand extends string ? OpenSearchBaseOperators & OpenSearchStringOperators : TOperand extends boolean[] ? OpenSearchBaseOperators & OpenSearchBooleanOperators : TOperand extends number[] ? OpenSearchBaseOperators & OpenSearchNumberOperators : TOperand extends string[] ? OpenSearchBaseOperators & OpenSearchStringOperators : any; -export type ShallowOpenSearchQueryObject = T extends Record ? Prettify<{ - [k in keyof T]?: OpenSearchQueryOperation>; -}> : any; -export type OpenSearchQueryObject = T extends Record ? Prettify> & { - and?: OpenSearchQueryObject[]; - or?: OpenSearchQueryObject[]; - not?: OpenSearchQueryObject; -}> : {}; -export type SubscriptionFilterEqualityOperators = { - eq?: T; - ne?: T; -}; -export type SubscriptionFilterScalarNumberOperators = SubscriptionFilterEqualityOperators & { - gt?: T; - ge?: T; - lt?: T; - le?: T; - in?: T[]; -}; -export type SubscriptionFilterNumberOperators = SubscriptionFilterScalarNumberOperators & { - between?: [T, T]; -}; -export type SubscriptionFilterStringOperators = SubscriptionFilterScalarNumberOperators & { - beginsWith?: T; - contains?: T; - notContains?: T; - between?: [T, T]; -}; -export type SubscriptionFilterBooleanOperators = SubscriptionFilterEqualityOperators; -export type SubscriptionFilterArrayOperators = { - contains?: T; - notContains?: T; - containsAny?: T[]; -}; -export type SubscriptionFilterOperation = TOperand extends boolean ? SubscriptionFilterBooleanOperators : TOperand extends number ? SubscriptionFilterNumberOperators : TOperand extends string ? SubscriptionFilterStringOperators : TOperand extends boolean[] ? SubscriptionFilterArrayOperators : TOperand extends number[] ? SubscriptionFilterArrayOperators : TOperand extends string[] ? SubscriptionFilterArrayOperators : any; -export type ShallowSubscriptionFilterObject = T extends Record ? Prettify<{ - [k in keyof T]?: SubscriptionFilterOperation>; -}> : any; -export type SubscriptionFilterObject = T extends Record ? Prettify> & { - and?: SubscriptionFilterObject[]; - or?: SubscriptionFilterObject[]; -}> : {}; -export type SubscriptionFilterRuleObject = T extends Record ? ShallowSubscriptionFilterObject : {}; -type ExcludeConditions = Exclude; -export type SubscriptionFilterExcludeKeysType = T extends Record ? ExcludeConditions[] : string[]; -export type TransformUtils = { - /** - * Converts an input string to a filter expression for use with DynamoDB. - * Input: - * ``` - * util.transform.toDynamoDBFilterExpression({ - * "title":{ - * "contains":"Hello World" - * } - * }) - * ``` - * Output: - * ``` - * { - * "expression" : "contains(#title, :title_contains)" - * "expressionNames" : { - * "#title" : "title", - * }, - * "expressionValues" : { - * ":title_contains" : { "S" : "Hello World" } - * }, - * } - * ``` - * @param {DynamoDBFilterObject} filterObject - Object representing DynamoDB filter - * @returns {string} - DynamoDB filter expression stringified object - */ - toDynamoDBFilterExpression]: any; - } = Record>(filterObject: DynamoDBFilterObject): string; - /** - * Converts the given input into its equivalent DynamoDB condition expression, returning it as a Json string. - * - * The default Operator is assumed to be `AND`. The method behaves similarly as toDynamoDBFilterExpression, except - * that it supports the remaining method that Dynamo condition expression supports, such as size, attribute_exists. - * @param {any} conditionObject Object representing DynamoDB condition - * @returns string the evaluated DynamoDB condition - */ - toDynamoDBConditionExpression]: any; - } = Record>(conditionObject: DynamoDBFilterObject): string; - /** - * Converts the given input into its equivalent OpenSearch Query DSL expression, returning it - * as a JSON string. - * Input: - * ``` - * util.transform.toElasticsearchQueryDSL({ - * "upvotes":{ - * "ne":15, - * "range":[ - * 10, - * 20 - * ] - * }, - * "title":{ - * "eq":"hihihi", - * "wildcard":"h*i" - * } - * }) - * ``` - - * Output: - * ``` - * { - * "bool":{ - * "must":[ - * { - * "bool":{ - * "must":[ - * { - * "bool":{ - * "must_not":{ - * "term":{ - * "upvotes":15 - * } - * } - * } - * }, - * { - * "range":{ - * "upvotes":{ - * "gte":10, - * "lte":20 - * } - * } - * } - * ] - * } - * }, - * { - * "bool":{ - * "must":[ - * { - * "term":{ - * "title":"hihihi" - * } - * }, - * { - * "wildcard":{ - * "title":"h*i" - * } - * } - * ] - * } - * } - * ] - * } - * } - * ``` - * The default operator is assumed to be AND. - * @param {any} obj - Object representing OpenSearch Query - * @returns {string} - JSON string of an OpenSearch Query DSL expression - */ - toElasticsearchQueryDSL]: any; - } = Record>(obj: OpenSearchQueryObject): string; - /** - * Converts a Map input object to a `SubscriptionFilter` expression object. The - * `util.transform.toSubscriptionFilter` method is used as an input to the - * `extensions.setSubscriptionFilter()` extension. - * For more information, @see {@link https://docs.aws.amazon.com/appsync/latest/devguide/extensions.html#extensions-setSubscriptionInvalidationFilter|extensions.setSubscriptionFilter} - - * @param {Record} obj - a Map input object that's converted to the `SubscriptionFilter` expression object - * @param {string[]} ignoredFields - a List of field names that will be ignored in the first obj - * @param {Record} rules - a Map input object of strict rules that's - * included while constructing the `SubscriptionFilter` expression object. These strict rules are - * included in the `SubscriptionFilter` expression object in such a way that at least one of the - * rules will be satisfied to pass the subscription filter. - * @returns {SubscriptionFilter} Subscription Filter expression object - */ - toSubscriptionFilter>(obj: SubscriptionFilterObject, ignoredFields?: SubscriptionFilterExcludeKeysType, rules?: SubscriptionFilterRuleObject): SubscriptionFilter; -}; -export {}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js deleted file mode 100644 index 40ad0367..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=transform-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js.map deleted file mode 100644 index 04e4b544..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/transform-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-utils.js","sourceRoot":"","sources":["../src/transform-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/type-utils.d.ts deleted file mode 100644 index f772531e..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type Prettify = { - [k in keyof T]: T[k]; -} & {}; -/** - * Util type decrement the number. Supports number upto 9. Helps in preventing - * excessive recursion when using recursive types and no type information is passed - */ -export type Decrement = S extends '9' ? '8' : S extends '8' ? '7' : S extends '7' ? '6' : S extends '6' ? '5' : S extends '5' ? '4' : S extends '4' ? '3' : S extends '3' ? '2' : S extends '2' ? '1' : never; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js deleted file mode 100644 index 3cc79891..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=type-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js.map deleted file mode 100644 index a029f162..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/type-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type-utils.js","sourceRoot":"","sources":["../src/type-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.d.ts b/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.d.ts deleted file mode 100644 index f39aed94..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -export type XmlUtils = { - /** - * Converts an XML string to a Dictionary. - * ``` - * Input: - * - * - * - * - * 1 - * Getting started with GraphQL - * - * - * - * Output (JSON representation): - * - * { - * "posts":{ - * "post":{ - * "id":1, - * "title":"Getting started with GraphQL" - * } - * } - * } - * ``` - * @param {string} xml - XML string - * @returns Record - Object representation of XML - */ - toMap(xml: string): Record | null; - /** - * Converts an XML string to a JSON string. This is similar to toMap, except that the output is - * a string. This is useful if you want to directly convert and return the XML response from an - * HTTP object to JSON. - * @param {string} xml - XML string - * @returns {string} - JSON representation of XML - */ - toJsonString(xml: string): string; - /** - * Converts an XML string to a JSON string with an optional Boolean parameter to determine if - * you want to string-encode the JSON. - * @param {string} xml - XML string - * @param {boolean} stringEncode - Boolean to determine if you want to string-encode the JSON - * @returns {string} - String encoded JSON representation of XML - */ - toJsonString(xml: string, stringEncode: boolean): string; -}; diff --git a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js b/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js deleted file mode 100644 index 05cca43e..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=xml-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js.map b/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js.map deleted file mode 100644 index a2150dcf..00000000 --- a/graphql/node_modules/@aws-appsync/utils/lib/xml-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xml-utils.js","sourceRoot":"","sources":["../src/xml-utils.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/package.json b/graphql/node_modules/@aws-appsync/utils/package.json deleted file mode 100644 index aa4f8fbc..00000000 --- a/graphql/node_modules/@aws-appsync/utils/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@aws-appsync/utils", - "version": "1.9.0", - "description": "This project contains type definitions for AppSync resolver types.", - "main": "lib/index.js", - "license": "Apache-2.0", - "types": "./lib/index.d.ts", - "author": "Amazon Web Services", - "keywords": [ - "graphql", - "appsync", - "aws", - "types" - ], - "publishConfig": { - "access": "public" - }, - "devDependencies": { - "tsd": "^0.29.0", - "typescript": "^5.1.0" - }, - "scripts": { - "clean": "rimraf lib", - "build": "tsc", - "test": "tsd" - }, - "tsd": { - "directory": "tests-d" - }, - "gitHead": "56168d0b2066ff174113c1e0132c0fe42b7f6cdc" -} diff --git a/graphql/node_modules/@aws-appsync/utils/rds.d.ts b/graphql/node_modules/@aws-appsync/utils/rds.d.ts deleted file mode 100644 index 551fa30d..00000000 --- a/graphql/node_modules/@aws-appsync/utils/rds.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/rds-helpers'; \ No newline at end of file diff --git a/graphql/node_modules/@aws-appsync/utils/rds.js b/graphql/node_modules/@aws-appsync/utils/rds.js deleted file mode 100644 index 551fa30d..00000000 --- a/graphql/node_modules/@aws-appsync/utils/rds.js +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/rds-helpers'; \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/eslint-utils/LICENSE b/graphql/node_modules/@eslint-community/eslint-utils/LICENSE deleted file mode 100644 index 883ee1f6..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Toru Nagashima - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@eslint-community/eslint-utils/README.md b/graphql/node_modules/@eslint-community/eslint-utils/README.md deleted file mode 100644 index 90552a94..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# @eslint-community/eslint-utils - -[![npm version](https://img.shields.io/npm/v/@eslint-community/eslint-utils.svg)](https://www.npmjs.com/package/@eslint-community/eslint-utils) -[![Downloads/month](https://img.shields.io/npm/dm/@eslint-community/eslint-utils.svg)](http://www.npmtrends.com/@eslint-community/eslint-utils) -[![Build Status](https://github.com/eslint-community/eslint-utils/workflows/CI/badge.svg)](https://github.com/eslint-community/eslint-utils/actions) -[![Coverage Status](https://codecov.io/gh/eslint-community/eslint-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/eslint-utils) - -## 🏁 Goal - -This package provides utility functions and classes for make ESLint custom rules. - -For examples: - -- [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST. -- [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring. - -## 📖 Usage - -See [documentation](https://eslint-community.github.io/eslint-utils). - -## 📰 Changelog - -See [releases](https://github.com/eslint-community/eslint-utils/releases). - -## ❤️ Contributing - -Welcome contributing! - -Please use GitHub's Issues/PRs. - -### Development Tools - -- `npm test` runs tests and measures coverage. -- `npm run clean` removes the coverage result of `npm test` command. -- `npm run coverage` shows the coverage result of the last `npm test` command. -- `npm run lint` runs ESLint. -- `npm run watch` runs tests on each file change. diff --git a/graphql/node_modules/@eslint-community/eslint-utils/index.js b/graphql/node_modules/@eslint-community/eslint-utils/index.js deleted file mode 100644 index 156015e0..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/index.js +++ /dev/null @@ -1,2068 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var eslintVisitorKeys = require('eslint-visitor-keys'); - -/** - * Get the innermost scope which contains a given location. - * @param {Scope} initialScope The initial scope to search. - * @param {Node} node The location to search. - * @returns {Scope} The innermost scope. - */ -function getInnermostScope(initialScope, node) { - const location = node.range[0]; - - let scope = initialScope; - let found = false; - do { - found = false; - for (const childScope of scope.childScopes) { - const range = childScope.block.range; - - if (range[0] <= location && location < range[1]) { - scope = childScope; - found = true; - break - } - } - } while (found) - - return scope -} - -/** - * Find the variable of a given name. - * @param {Scope} initialScope The scope to start finding. - * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node. - * @returns {Variable|null} The found variable or null. - */ -function findVariable(initialScope, nameOrNode) { - let name = ""; - let scope = initialScope; - - if (typeof nameOrNode === "string") { - name = nameOrNode; - } else { - name = nameOrNode.name; - scope = getInnermostScope(scope, nameOrNode); - } - - while (scope != null) { - const variable = scope.set.get(name); - if (variable != null) { - return variable - } - scope = scope.upper; - } - - return null -} - -/** - * Negate the result of `this` calling. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the result of `this(token)` is `false`. - */ -function negate0(token) { - return !this(token) //eslint-disable-line no-invalid-this -} - -/** - * Creates the negate function of the given function. - * @param {function(Token):boolean} f - The function to negate. - * @returns {function(Token):boolean} Negated function. - */ -function negate(f) { - return negate0.bind(f) -} - -/** - * Checks if the given token is a PunctuatorToken with the given value - * @param {Token} token - The token to check. - * @param {string} value - The value to check. - * @returns {boolean} `true` if the token is a PunctuatorToken with the given value. - */ -function isPunctuatorTokenWithValue(token, value) { - return token.type === "Punctuator" && token.value === value -} - -/** - * Checks if the given token is an arrow token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an arrow token. - */ -function isArrowToken(token) { - return isPunctuatorTokenWithValue(token, "=>") -} - -/** - * Checks if the given token is a comma token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a comma token. - */ -function isCommaToken(token) { - return isPunctuatorTokenWithValue(token, ",") -} - -/** - * Checks if the given token is a semicolon token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a semicolon token. - */ -function isSemicolonToken(token) { - return isPunctuatorTokenWithValue(token, ";") -} - -/** - * Checks if the given token is a colon token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a colon token. - */ -function isColonToken(token) { - return isPunctuatorTokenWithValue(token, ":") -} - -/** - * Checks if the given token is an opening parenthesis token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening parenthesis token. - */ -function isOpeningParenToken(token) { - return isPunctuatorTokenWithValue(token, "(") -} - -/** - * Checks if the given token is a closing parenthesis token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing parenthesis token. - */ -function isClosingParenToken(token) { - return isPunctuatorTokenWithValue(token, ")") -} - -/** - * Checks if the given token is an opening square bracket token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening square bracket token. - */ -function isOpeningBracketToken(token) { - return isPunctuatorTokenWithValue(token, "[") -} - -/** - * Checks if the given token is a closing square bracket token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing square bracket token. - */ -function isClosingBracketToken(token) { - return isPunctuatorTokenWithValue(token, "]") -} - -/** - * Checks if the given token is an opening brace token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening brace token. - */ -function isOpeningBraceToken(token) { - return isPunctuatorTokenWithValue(token, "{") -} - -/** - * Checks if the given token is a closing brace token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing brace token. - */ -function isClosingBraceToken(token) { - return isPunctuatorTokenWithValue(token, "}") -} - -/** - * Checks if the given token is a comment token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a comment token. - */ -function isCommentToken(token) { - return ["Block", "Line", "Shebang"].includes(token.type) -} - -const isNotArrowToken = negate(isArrowToken); -const isNotCommaToken = negate(isCommaToken); -const isNotSemicolonToken = negate(isSemicolonToken); -const isNotColonToken = negate(isColonToken); -const isNotOpeningParenToken = negate(isOpeningParenToken); -const isNotClosingParenToken = negate(isClosingParenToken); -const isNotOpeningBracketToken = negate(isOpeningBracketToken); -const isNotClosingBracketToken = negate(isClosingBracketToken); -const isNotOpeningBraceToken = negate(isOpeningBraceToken); -const isNotClosingBraceToken = negate(isClosingBraceToken); -const isNotCommentToken = negate(isCommentToken); - -/** - * Get the `(` token of the given function node. - * @param {Node} node - The function node to get. - * @param {SourceCode} sourceCode - The source code object to get tokens. - * @returns {Token} `(` token. - */ -function getOpeningParenOfParams(node, sourceCode) { - return node.id - ? sourceCode.getTokenAfter(node.id, isOpeningParenToken) - : sourceCode.getFirstToken(node, isOpeningParenToken) -} - -/** - * Get the location of the given function node for reporting. - * @param {Node} node - The function node to get. - * @param {SourceCode} sourceCode - The source code object to get tokens. - * @returns {string} The location of the function node for reporting. - */ -function getFunctionHeadLocation(node, sourceCode) { - const parent = node.parent; - let start = null; - let end = null; - - if (node.type === "ArrowFunctionExpression") { - const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken); - - start = arrowToken.loc.start; - end = arrowToken.loc.end; - } else if ( - parent.type === "Property" || - parent.type === "MethodDefinition" || - parent.type === "PropertyDefinition" - ) { - start = parent.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } else { - start = node.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - - return { - start: { ...start }, - end: { ...end }, - } -} - -/* globals globalThis, global, self, window */ - -const globalObject = - typeof globalThis !== "undefined" - ? globalThis - : typeof self !== "undefined" - ? self - : typeof window !== "undefined" - ? window - : typeof global !== "undefined" - ? global - : {}; - -const builtinNames = Object.freeze( - new Set([ - "Array", - "ArrayBuffer", - "BigInt", - "BigInt64Array", - "BigUint64Array", - "Boolean", - "DataView", - "Date", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "Float32Array", - "Float64Array", - "Function", - "Infinity", - "Int16Array", - "Int32Array", - "Int8Array", - "isFinite", - "isNaN", - "isPrototypeOf", - "JSON", - "Map", - "Math", - "NaN", - "Number", - "Object", - "parseFloat", - "parseInt", - "Promise", - "Proxy", - "Reflect", - "RegExp", - "Set", - "String", - "Symbol", - "Uint16Array", - "Uint32Array", - "Uint8Array", - "Uint8ClampedArray", - "undefined", - "unescape", - "WeakMap", - "WeakSet", - ]), -); -const callAllowed = new Set( - [ - Array.isArray, - Array.of, - Array.prototype.at, - Array.prototype.concat, - Array.prototype.entries, - Array.prototype.every, - Array.prototype.filter, - Array.prototype.find, - Array.prototype.findIndex, - Array.prototype.flat, - Array.prototype.includes, - Array.prototype.indexOf, - Array.prototype.join, - Array.prototype.keys, - Array.prototype.lastIndexOf, - Array.prototype.slice, - Array.prototype.some, - Array.prototype.toString, - Array.prototype.values, - typeof BigInt === "function" ? BigInt : undefined, - Boolean, - Date, - Date.parse, - decodeURI, - decodeURIComponent, - encodeURI, - encodeURIComponent, - escape, - isFinite, - isNaN, - isPrototypeOf, - Map, - Map.prototype.entries, - Map.prototype.get, - Map.prototype.has, - Map.prototype.keys, - Map.prototype.values, - ...Object.getOwnPropertyNames(Math) - .filter((k) => k !== "random") - .map((k) => Math[k]) - .filter((f) => typeof f === "function"), - Number, - Number.isFinite, - Number.isNaN, - Number.parseFloat, - Number.parseInt, - Number.prototype.toExponential, - Number.prototype.toFixed, - Number.prototype.toPrecision, - Number.prototype.toString, - Object, - Object.entries, - Object.is, - Object.isExtensible, - Object.isFrozen, - Object.isSealed, - Object.keys, - Object.values, - parseFloat, - parseInt, - RegExp, - Set, - Set.prototype.entries, - Set.prototype.has, - Set.prototype.keys, - Set.prototype.values, - String, - String.fromCharCode, - String.fromCodePoint, - String.raw, - String.prototype.at, - String.prototype.charAt, - String.prototype.charCodeAt, - String.prototype.codePointAt, - String.prototype.concat, - String.prototype.endsWith, - String.prototype.includes, - String.prototype.indexOf, - String.prototype.lastIndexOf, - String.prototype.normalize, - String.prototype.padEnd, - String.prototype.padStart, - String.prototype.slice, - String.prototype.startsWith, - String.prototype.substr, - String.prototype.substring, - String.prototype.toLowerCase, - String.prototype.toString, - String.prototype.toUpperCase, - String.prototype.trim, - String.prototype.trimEnd, - String.prototype.trimLeft, - String.prototype.trimRight, - String.prototype.trimStart, - Symbol.for, - Symbol.keyFor, - unescape, - ].filter((f) => typeof f === "function"), -); -const callPassThrough = new Set([ - Object.freeze, - Object.preventExtensions, - Object.seal, -]); - -/** @type {ReadonlyArray]>} */ -const getterAllowed = [ - [Map, new Set(["size"])], - [ - RegExp, - new Set([ - "dotAll", - "flags", - "global", - "hasIndices", - "ignoreCase", - "multiline", - "source", - "sticky", - "unicode", - ]), - ], - [Set, new Set(["size"])], -]; - -/** - * Get the property descriptor. - * @param {object} object The object to get. - * @param {string|number|symbol} name The property name to get. - */ -function getPropertyDescriptor(object, name) { - let x = object; - while ((typeof x === "object" || typeof x === "function") && x !== null) { - const d = Object.getOwnPropertyDescriptor(x, name); - if (d) { - return d - } - x = Object.getPrototypeOf(x); - } - return null -} - -/** - * Check if a property is getter or not. - * @param {object} object The object to check. - * @param {string|number|symbol} name The property name to check. - */ -function isGetter(object, name) { - const d = getPropertyDescriptor(object, name); - return d != null && d.get != null -} - -/** - * Get the element values of a given node list. - * @param {Node[]} nodeList The node list to get values. - * @param {Scope|undefined} initialScope The initial scope to find variables. - * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null. - */ -function getElementValues(nodeList, initialScope) { - const valueList = []; - - for (let i = 0; i < nodeList.length; ++i) { - const elementNode = nodeList[i]; - - if (elementNode == null) { - valueList.length = i + 1; - } else if (elementNode.type === "SpreadElement") { - const argument = getStaticValueR(elementNode.argument, initialScope); - if (argument == null) { - return null - } - valueList.push(...argument.value); - } else { - const element = getStaticValueR(elementNode, initialScope); - if (element == null) { - return null - } - valueList.push(element.value); - } - } - - return valueList -} - -/** - * Returns whether the given variable is never written to after initialization. - * @param {import("eslint").Scope.Variable} variable - * @returns {boolean} - */ -function isEffectivelyConst(variable) { - const refs = variable.references; - - const inits = refs.filter((r) => r.init).length; - const reads = refs.filter((r) => r.isReadOnly()).length; - if (inits === 1 && reads + inits === refs.length) { - // there is only one init and all other references only read - return true - } - return false -} - -const operations = Object.freeze({ - ArrayExpression(node, initialScope) { - const elements = getElementValues(node.elements, initialScope); - return elements != null ? { value: elements } : null - }, - - AssignmentExpression(node, initialScope) { - if (node.operator === "=") { - return getStaticValueR(node.right, initialScope) - } - return null - }, - - //eslint-disable-next-line complexity - BinaryExpression(node, initialScope) { - if (node.operator === "in" || node.operator === "instanceof") { - // Not supported. - return null - } - - const left = getStaticValueR(node.left, initialScope); - const right = getStaticValueR(node.right, initialScope); - if (left != null && right != null) { - switch (node.operator) { - case "==": - return { value: left.value == right.value } //eslint-disable-line eqeqeq - case "!=": - return { value: left.value != right.value } //eslint-disable-line eqeqeq - case "===": - return { value: left.value === right.value } - case "!==": - return { value: left.value !== right.value } - case "<": - return { value: left.value < right.value } - case "<=": - return { value: left.value <= right.value } - case ">": - return { value: left.value > right.value } - case ">=": - return { value: left.value >= right.value } - case "<<": - return { value: left.value << right.value } - case ">>": - return { value: left.value >> right.value } - case ">>>": - return { value: left.value >>> right.value } - case "+": - return { value: left.value + right.value } - case "-": - return { value: left.value - right.value } - case "*": - return { value: left.value * right.value } - case "/": - return { value: left.value / right.value } - case "%": - return { value: left.value % right.value } - case "**": - return { value: left.value ** right.value } - case "|": - return { value: left.value | right.value } - case "^": - return { value: left.value ^ right.value } - case "&": - return { value: left.value & right.value } - - // no default - } - } - - return null - }, - - CallExpression(node, initialScope) { - const calleeNode = node.callee; - const args = getElementValues(node.arguments, initialScope); - - if (args != null) { - if (calleeNode.type === "MemberExpression") { - if (calleeNode.property.type === "PrivateIdentifier") { - return null - } - const object = getStaticValueR(calleeNode.object, initialScope); - if (object != null) { - if ( - object.value == null && - (object.optional || node.optional) - ) { - return { value: undefined, optional: true } - } - const property = getStaticPropertyNameValue( - calleeNode, - initialScope, - ); - - if (property != null) { - const receiver = object.value; - const methodName = property.value; - if (callAllowed.has(receiver[methodName])) { - return { value: receiver[methodName](...args) } - } - if (callPassThrough.has(receiver[methodName])) { - return { value: args[0] } - } - } - } - } else { - const callee = getStaticValueR(calleeNode, initialScope); - if (callee != null) { - if (callee.value == null && node.optional) { - return { value: undefined, optional: true } - } - const func = callee.value; - if (callAllowed.has(func)) { - return { value: func(...args) } - } - if (callPassThrough.has(func)) { - return { value: args[0] } - } - } - } - } - - return null - }, - - ConditionalExpression(node, initialScope) { - const test = getStaticValueR(node.test, initialScope); - if (test != null) { - return test.value - ? getStaticValueR(node.consequent, initialScope) - : getStaticValueR(node.alternate, initialScope) - } - return null - }, - - ExpressionStatement(node, initialScope) { - return getStaticValueR(node.expression, initialScope) - }, - - Identifier(node, initialScope) { - if (initialScope != null) { - const variable = findVariable(initialScope, node); - - // Built-in globals. - if ( - variable != null && - variable.defs.length === 0 && - builtinNames.has(variable.name) && - variable.name in globalObject - ) { - return { value: globalObject[variable.name] } - } - - // Constants. - if (variable != null && variable.defs.length === 1) { - const def = variable.defs[0]; - if ( - def.parent && - def.type === "Variable" && - (def.parent.kind === "const" || - isEffectivelyConst(variable)) && - // TODO(mysticatea): don't support destructuring here. - def.node.id.type === "Identifier" - ) { - return getStaticValueR(def.node.init, initialScope) - } - } - } - return null - }, - - Literal(node) { - //istanbul ignore if : this is implementation-specific behavior. - if ((node.regex != null || node.bigint != null) && node.value == null) { - // It was a RegExp/BigInt literal, but Node.js didn't support it. - return null - } - return { value: node.value } - }, - - LogicalExpression(node, initialScope) { - const left = getStaticValueR(node.left, initialScope); - if (left != null) { - if ( - (node.operator === "||" && Boolean(left.value) === true) || - (node.operator === "&&" && Boolean(left.value) === false) || - (node.operator === "??" && left.value != null) - ) { - return left - } - - const right = getStaticValueR(node.right, initialScope); - if (right != null) { - return right - } - } - - return null - }, - - MemberExpression(node, initialScope) { - if (node.property.type === "PrivateIdentifier") { - return null - } - const object = getStaticValueR(node.object, initialScope); - if (object != null) { - if (object.value == null && (object.optional || node.optional)) { - return { value: undefined, optional: true } - } - const property = getStaticPropertyNameValue(node, initialScope); - - if (property != null) { - if (!isGetter(object.value, property.value)) { - return { value: object.value[property.value] } - } - - for (const [classFn, allowed] of getterAllowed) { - if ( - object.value instanceof classFn && - allowed.has(property.value) - ) { - return { value: object.value[property.value] } - } - } - } - } - return null - }, - - ChainExpression(node, initialScope) { - const expression = getStaticValueR(node.expression, initialScope); - if (expression != null) { - return { value: expression.value } - } - return null - }, - - NewExpression(node, initialScope) { - const callee = getStaticValueR(node.callee, initialScope); - const args = getElementValues(node.arguments, initialScope); - - if (callee != null && args != null) { - const Func = callee.value; - if (callAllowed.has(Func)) { - return { value: new Func(...args) } - } - } - - return null - }, - - ObjectExpression(node, initialScope) { - const object = {}; - - for (const propertyNode of node.properties) { - if (propertyNode.type === "Property") { - if (propertyNode.kind !== "init") { - return null - } - const key = getStaticPropertyNameValue( - propertyNode, - initialScope, - ); - const value = getStaticValueR(propertyNode.value, initialScope); - if (key == null || value == null) { - return null - } - object[key.value] = value.value; - } else if ( - propertyNode.type === "SpreadElement" || - propertyNode.type === "ExperimentalSpreadProperty" - ) { - const argument = getStaticValueR( - propertyNode.argument, - initialScope, - ); - if (argument == null) { - return null - } - Object.assign(object, argument.value); - } else { - return null - } - } - - return { value: object } - }, - - SequenceExpression(node, initialScope) { - const last = node.expressions[node.expressions.length - 1]; - return getStaticValueR(last, initialScope) - }, - - TaggedTemplateExpression(node, initialScope) { - const tag = getStaticValueR(node.tag, initialScope); - const expressions = getElementValues( - node.quasi.expressions, - initialScope, - ); - - if (tag != null && expressions != null) { - const func = tag.value; - const strings = node.quasi.quasis.map((q) => q.value.cooked); - strings.raw = node.quasi.quasis.map((q) => q.value.raw); - - if (func === String.raw) { - return { value: func(strings, ...expressions) } - } - } - - return null - }, - - TemplateLiteral(node, initialScope) { - const expressions = getElementValues(node.expressions, initialScope); - if (expressions != null) { - let value = node.quasis[0].value.cooked; - for (let i = 0; i < expressions.length; ++i) { - value += expressions[i]; - value += node.quasis[i + 1].value.cooked; - } - return { value } - } - return null - }, - - UnaryExpression(node, initialScope) { - if (node.operator === "delete") { - // Not supported. - return null - } - if (node.operator === "void") { - return { value: undefined } - } - - const arg = getStaticValueR(node.argument, initialScope); - if (arg != null) { - switch (node.operator) { - case "-": - return { value: -arg.value } - case "+": - return { value: +arg.value } //eslint-disable-line no-implicit-coercion - case "!": - return { value: !arg.value } - case "~": - return { value: ~arg.value } - case "typeof": - return { value: typeof arg.value } - - // no default - } - } - - return null - }, -}); - -/** - * Get the value of a given node if it's a static value. - * @param {Node} node The node to get. - * @param {Scope|undefined} initialScope The scope to start finding variable. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`. - */ -function getStaticValueR(node, initialScope) { - if (node != null && Object.hasOwnProperty.call(operations, node.type)) { - return operations[node.type](node, initialScope) - } - return null -} - -/** - * Get the static value of property name from a MemberExpression node or a Property node. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`. - */ -function getStaticPropertyNameValue(node, initialScope) { - const nameNode = node.type === "Property" ? node.key : node.property; - - if (node.computed) { - return getStaticValueR(nameNode, initialScope) - } - - if (nameNode.type === "Identifier") { - return { value: nameNode.name } - } - - if (nameNode.type === "Literal") { - if (nameNode.bigint) { - return { value: nameNode.bigint } - } - return { value: String(nameNode.value) } - } - - return null -} - -/** - * Get the value of a given node if it's a static value. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`. - */ -function getStaticValue(node, initialScope = null) { - try { - return getStaticValueR(node, initialScope) - } catch (_error) { - return null - } -} - -/** - * Get the value of a given node if it's a literal or a template literal. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant. - * @returns {string|null} The value of the node, or `null`. - */ -function getStringIfConstant(node, initialScope = null) { - // Handle the literals that the platform doesn't support natively. - if (node && node.type === "Literal" && node.value === null) { - if (node.regex) { - return `/${node.regex.pattern}/${node.regex.flags}` - } - if (node.bigint) { - return node.bigint - } - } - - const evaluated = getStaticValue(node, initialScope); - return evaluated && String(evaluated.value) -} - -/** - * Get the property name from a MemberExpression node or a Property node. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it. - * @returns {string|null} The property name of the node. - */ -function getPropertyName(node, initialScope) { - switch (node.type) { - case "MemberExpression": - if (node.computed) { - return getStringIfConstant(node.property, initialScope) - } - if (node.property.type === "PrivateIdentifier") { - return null - } - return node.property.name - - case "Property": - case "MethodDefinition": - case "PropertyDefinition": - if (node.computed) { - return getStringIfConstant(node.key, initialScope) - } - if (node.key.type === "Literal") { - return String(node.key.value) - } - if (node.key.type === "PrivateIdentifier") { - return null - } - return node.key.name - - // no default - } - - return null -} - -/** - * Get the name and kind of the given function node. - * @param {ASTNode} node - The function node to get. - * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys. - * @returns {string} The name and kind of the function node. - */ -// eslint-disable-next-line complexity -function getFunctionNameWithKind(node, sourceCode) { - const parent = node.parent; - const tokens = []; - const isObjectMethod = parent.type === "Property" && parent.value === node; - const isClassMethod = - parent.type === "MethodDefinition" && parent.value === node; - const isClassFieldMethod = - parent.type === "PropertyDefinition" && parent.value === node; - - // Modifiers. - if (isClassMethod || isClassFieldMethod) { - if (parent.static) { - tokens.push("static"); - } - if (parent.key.type === "PrivateIdentifier") { - tokens.push("private"); - } - } - if (node.async) { - tokens.push("async"); - } - if (node.generator) { - tokens.push("generator"); - } - - // Kinds. - if (isObjectMethod || isClassMethod) { - if (parent.kind === "constructor") { - return "constructor" - } - if (parent.kind === "get") { - tokens.push("getter"); - } else if (parent.kind === "set") { - tokens.push("setter"); - } else { - tokens.push("method"); - } - } else if (isClassFieldMethod) { - tokens.push("method"); - } else { - if (node.type === "ArrowFunctionExpression") { - tokens.push("arrow"); - } - tokens.push("function"); - } - - // Names. - if (isObjectMethod || isClassMethod || isClassFieldMethod) { - if (parent.key.type === "PrivateIdentifier") { - tokens.push(`#${parent.key.name}`); - } else { - const name = getPropertyName(parent); - if (name) { - tokens.push(`'${name}'`); - } else if (sourceCode) { - const keyText = sourceCode.getText(parent.key); - if (!keyText.includes("\n")) { - tokens.push(`[${keyText}]`); - } - } - } - } else if (node.id) { - tokens.push(`'${node.id.name}'`); - } else if ( - parent.type === "VariableDeclarator" && - parent.id && - parent.id.type === "Identifier" - ) { - tokens.push(`'${parent.id.name}'`); - } else if ( - (parent.type === "AssignmentExpression" || - parent.type === "AssignmentPattern") && - parent.left && - parent.left.type === "Identifier" - ) { - tokens.push(`'${parent.left.name}'`); - } else if ( - parent.type === "ExportDefaultDeclaration" && - parent.declaration === node - ) { - tokens.push("'default'"); - } - - return tokens.join(" ") -} - -const typeConversionBinaryOps = Object.freeze( - new Set([ - "==", - "!=", - "<", - "<=", - ">", - ">=", - "<<", - ">>", - ">>>", - "+", - "-", - "*", - "/", - "%", - "|", - "^", - "&", - "in", - ]), -); -const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"])); - -/** - * Check whether the given value is an ASTNode or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is an ASTNode. - */ -function isNode(x) { - return x !== null && typeof x === "object" && typeof x.type === "string" -} - -const visitor = Object.freeze( - Object.assign(Object.create(null), { - $visit(node, options, visitorKeys) { - const { type } = node; - - if (typeof this[type] === "function") { - return this[type](node, options, visitorKeys) - } - - return this.$visitChildren(node, options, visitorKeys) - }, - - $visitChildren(node, options, visitorKeys) { - const { type } = node; - - for (const key of visitorKeys[type] || eslintVisitorKeys.getKeys(node)) { - const value = node[key]; - - if (Array.isArray(value)) { - for (const element of value) { - if ( - isNode(element) && - this.$visit(element, options, visitorKeys) - ) { - return true - } - } - } else if ( - isNode(value) && - this.$visit(value, options, visitorKeys) - ) { - return true - } - } - - return false - }, - - ArrowFunctionExpression() { - return false - }, - AssignmentExpression() { - return true - }, - AwaitExpression() { - return true - }, - BinaryExpression(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - typeConversionBinaryOps.has(node.operator) && - (node.left.type !== "Literal" || node.right.type !== "Literal") - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - CallExpression() { - return true - }, - FunctionExpression() { - return false - }, - ImportExpression() { - return true - }, - MemberExpression(node, options, visitorKeys) { - if (options.considerGetters) { - return true - } - if ( - options.considerImplicitTypeConversion && - node.computed && - node.property.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - MethodDefinition(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - NewExpression() { - return true - }, - Property(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - PropertyDefinition(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - UnaryExpression(node, options, visitorKeys) { - if (node.operator === "delete") { - return true - } - if ( - options.considerImplicitTypeConversion && - typeConversionUnaryOps.has(node.operator) && - node.argument.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - UpdateExpression() { - return true - }, - YieldExpression() { - return true - }, - }), -); - -/** - * Check whether a given node has any side effect or not. - * @param {Node} node The node to get. - * @param {SourceCode} sourceCode The source code object. - * @param {object} [options] The option object. - * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects. - * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects. - * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`. - * @returns {boolean} `true` if the node has a certain side effect. - */ -function hasSideEffect( - node, - sourceCode, - { considerGetters = false, considerImplicitTypeConversion = false } = {}, -) { - return visitor.$visit( - node, - { considerGetters, considerImplicitTypeConversion }, - sourceCode.visitorKeys || eslintVisitorKeys.KEYS, - ) -} - -/** - * Get the left parenthesis of the parent node syntax if it exists. - * E.g., `if (a) {}` then the `(`. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {Token|null} The left parenthesis of the parent node syntax - */ -function getParentSyntaxParen(node, sourceCode) { - const parent = node.parent; - - switch (parent.type) { - case "CallExpression": - case "NewExpression": - if (parent.arguments.length === 1 && parent.arguments[0] === node) { - return sourceCode.getTokenAfter( - parent.callee, - isOpeningParenToken, - ) - } - return null - - case "DoWhileStatement": - if (parent.test === node) { - return sourceCode.getTokenAfter( - parent.body, - isOpeningParenToken, - ) - } - return null - - case "IfStatement": - case "WhileStatement": - if (parent.test === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "ImportExpression": - if (parent.source === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "SwitchStatement": - if (parent.discriminant === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "WithStatement": - if (parent.object === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - default: - return null - } -} - -/** - * Check whether a given node is parenthesized or not. - * @param {number} times The number of parantheses. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {boolean} `true` if the node is parenthesized the given times. - */ -/** - * Check whether a given node is parenthesized or not. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {boolean} `true` if the node is parenthesized. - */ -function isParenthesized( - timesOrNode, - nodeOrSourceCode, - optionalSourceCode, -) { - let times, node, sourceCode, maybeLeftParen, maybeRightParen; - if (typeof timesOrNode === "number") { - times = timesOrNode | 0; - node = nodeOrSourceCode; - sourceCode = optionalSourceCode; - if (!(times >= 1)) { - throw new TypeError("'times' should be a positive integer.") - } - } else { - times = 1; - node = timesOrNode; - sourceCode = nodeOrSourceCode; - } - - if ( - node == null || - // `Program` can't be parenthesized - node.parent == null || - // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}` - (node.parent.type === "CatchClause" && node.parent.param === node) - ) { - return false - } - - maybeLeftParen = maybeRightParen = node; - do { - maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen); - maybeRightParen = sourceCode.getTokenAfter(maybeRightParen); - } while ( - maybeLeftParen != null && - maybeRightParen != null && - isOpeningParenToken(maybeLeftParen) && - isClosingParenToken(maybeRightParen) && - // Avoid false positive such as `if (a) {}` - maybeLeftParen !== getParentSyntaxParen(node, sourceCode) && - --times > 0 - ) - - return times === 0 -} - -/** - * @author Toru Nagashima - * See LICENSE file in root directory for full license. - */ - -const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu; - -/** @type {WeakMap} */ -const internal = new WeakMap(); - -/** - * Check whether a given character is escaped or not. - * @param {string} str The string to check. - * @param {number} index The location of the character to check. - * @returns {boolean} `true` if the character is escaped. - */ -function isEscaped(str, index) { - let escaped = false; - for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) { - escaped = !escaped; - } - return escaped -} - -/** - * Replace a given string by a given matcher. - * @param {PatternMatcher} matcher The pattern matcher. - * @param {string} str The string to be replaced. - * @param {string} replacement The new substring to replace each matched part. - * @returns {string} The replaced string. - */ -function replaceS(matcher, str, replacement) { - const chunks = []; - let index = 0; - - /** @type {RegExpExecArray} */ - let match = null; - - /** - * @param {string} key The placeholder. - * @returns {string} The replaced string. - */ - function replacer(key) { - switch (key) { - case "$$": - return "$" - case "$&": - return match[0] - case "$`": - return str.slice(0, match.index) - case "$'": - return str.slice(match.index + match[0].length) - default: { - const i = key.slice(1); - if (i in match) { - return match[i] - } - return key - } - } - } - - for (match of matcher.execAll(str)) { - chunks.push(str.slice(index, match.index)); - chunks.push(replacement.replace(placeholder, replacer)); - index = match.index + match[0].length; - } - chunks.push(str.slice(index)); - - return chunks.join("") -} - -/** - * Replace a given string by a given matcher. - * @param {PatternMatcher} matcher The pattern matcher. - * @param {string} str The string to be replaced. - * @param {(...strs[])=>string} replace The function to replace each matched part. - * @returns {string} The replaced string. - */ -function replaceF(matcher, str, replace) { - const chunks = []; - let index = 0; - - for (const match of matcher.execAll(str)) { - chunks.push(str.slice(index, match.index)); - chunks.push(String(replace(...match, match.index, match.input))); - index = match.index + match[0].length; - } - chunks.push(str.slice(index)); - - return chunks.join("") -} - -/** - * The class to find patterns as considering escape sequences. - */ -class PatternMatcher { - /** - * Initialize this matcher. - * @param {RegExp} pattern The pattern to match. - * @param {{escaped:boolean}} options The options. - */ - constructor(pattern, { escaped = false } = {}) { - if (!(pattern instanceof RegExp)) { - throw new TypeError("'pattern' should be a RegExp instance.") - } - if (!pattern.flags.includes("g")) { - throw new Error("'pattern' should contains 'g' flag.") - } - - internal.set(this, { - pattern: new RegExp(pattern.source, pattern.flags), - escaped: Boolean(escaped), - }); - } - - /** - * Find the pattern in a given string. - * @param {string} str The string to find. - * @returns {IterableIterator} The iterator which iterate the matched information. - */ - *execAll(str) { - const { pattern, escaped } = internal.get(this); - let match = null; - let lastIndex = 0; - - pattern.lastIndex = 0; - while ((match = pattern.exec(str)) != null) { - if (escaped || !isEscaped(str, match.index)) { - lastIndex = pattern.lastIndex; - yield match; - pattern.lastIndex = lastIndex; - } - } - } - - /** - * Check whether the pattern is found in a given string. - * @param {string} str The string to check. - * @returns {boolean} `true` if the pattern was found in the string. - */ - test(str) { - const it = this.execAll(str); - const ret = it.next(); - return !ret.done - } - - /** - * Replace a given string. - * @param {string} str The string to be replaced. - * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`. - * @returns {string} The replaced string. - */ - [Symbol.replace](str, replacer) { - return typeof replacer === "function" - ? replaceF(this, String(str), replacer) - : replaceS(this, String(str), String(replacer)) - } -} - -const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u; -const has = Function.call.bind(Object.hasOwnProperty); - -const READ = Symbol("read"); -const CALL = Symbol("call"); -const CONSTRUCT = Symbol("construct"); -const ESM = Symbol("esm"); - -const requireCall = { require: { [CALL]: true } }; - -/** - * Check whether a given variable is modified or not. - * @param {Variable} variable The variable to check. - * @returns {boolean} `true` if the variable is modified. - */ -function isModifiedGlobal(variable) { - return ( - variable == null || - variable.defs.length !== 0 || - variable.references.some((r) => r.isWrite()) - ) -} - -/** - * Check if the value of a given node is passed through to the parent syntax as-is. - * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through. - * @param {Node} node A node to check. - * @returns {boolean} `true` if the node is passed through. - */ -function isPassThrough(node) { - const parent = node.parent; - - switch (parent && parent.type) { - case "ConditionalExpression": - return parent.consequent === node || parent.alternate === node - case "LogicalExpression": - return true - case "SequenceExpression": - return parent.expressions[parent.expressions.length - 1] === node - case "ChainExpression": - return true - - default: - return false - } -} - -/** - * The reference tracker. - */ -class ReferenceTracker { - /** - * Initialize this tracker. - * @param {Scope} globalScope The global scope. - * @param {object} [options] The options. - * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules. - * @param {string[]} [options.globalObjectNames=["global","globalThis","self","window"]] The variable names for Global Object. - */ - constructor( - globalScope, - { - mode = "strict", - globalObjectNames = ["global", "globalThis", "self", "window"], - } = {}, - ) { - this.variableStack = []; - this.globalScope = globalScope; - this.mode = mode; - this.globalObjectNames = globalObjectNames.slice(0); - } - - /** - * Iterate the references of global variables. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateGlobalReferences(traceMap) { - for (const key of Object.keys(traceMap)) { - const nextTraceMap = traceMap[key]; - const path = [key]; - const variable = this.globalScope.set.get(key); - - if (isModifiedGlobal(variable)) { - continue - } - - yield* this._iterateVariableReferences( - variable, - path, - nextTraceMap, - true, - ); - } - - for (const key of this.globalObjectNames) { - const path = []; - const variable = this.globalScope.set.get(key); - - if (isModifiedGlobal(variable)) { - continue - } - - yield* this._iterateVariableReferences( - variable, - path, - traceMap, - false, - ); - } - } - - /** - * Iterate the references of CommonJS modules. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateCjsReferences(traceMap) { - for (const { node } of this.iterateGlobalReferences(requireCall)) { - const key = getStringIfConstant(node.arguments[0]); - if (key == null || !has(traceMap, key)) { - continue - } - - const nextTraceMap = traceMap[key]; - const path = [key]; - - if (nextTraceMap[READ]) { - yield { - node, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iteratePropertyReferences(node, path, nextTraceMap); - } - } - - /** - * Iterate the references of ES modules. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateEsmReferences(traceMap) { - const programNode = this.globalScope.block; - - for (const node of programNode.body) { - if (!IMPORT_TYPE.test(node.type) || node.source == null) { - continue - } - const moduleId = node.source.value; - - if (!has(traceMap, moduleId)) { - continue - } - const nextTraceMap = traceMap[moduleId]; - const path = [moduleId]; - - if (nextTraceMap[READ]) { - yield { node, path, type: READ, info: nextTraceMap[READ] }; - } - - if (node.type === "ExportAllDeclaration") { - for (const key of Object.keys(nextTraceMap)) { - const exportTraceMap = nextTraceMap[key]; - if (exportTraceMap[READ]) { - yield { - node, - path: path.concat(key), - type: READ, - info: exportTraceMap[READ], - }; - } - } - } else { - for (const specifier of node.specifiers) { - const esm = has(nextTraceMap, ESM); - const it = this._iterateImportReferences( - specifier, - path, - esm - ? nextTraceMap - : this.mode === "legacy" - ? { default: nextTraceMap, ...nextTraceMap } - : { default: nextTraceMap }, - ); - - if (esm) { - yield* it; - } else { - for (const report of it) { - report.path = report.path.filter(exceptDefault); - if ( - report.path.length >= 2 || - report.type !== READ - ) { - yield report; - } - } - } - } - } - } - } - - /** - * Iterate the references for a given variable. - * @param {Variable} variable The variable to iterate that references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @param {boolean} shouldReport = The flag to report those references. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateVariableReferences(variable, path, traceMap, shouldReport) { - if (this.variableStack.includes(variable)) { - return - } - this.variableStack.push(variable); - try { - for (const reference of variable.references) { - if (!reference.isRead()) { - continue - } - const node = reference.identifier; - - if (shouldReport && traceMap[READ]) { - yield { node, path, type: READ, info: traceMap[READ] }; - } - yield* this._iteratePropertyReferences(node, path, traceMap); - } - } finally { - this.variableStack.pop(); - } - } - - /** - * Iterate the references for a given AST node. - * @param rootNode The AST node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - //eslint-disable-next-line complexity - *_iteratePropertyReferences(rootNode, path, traceMap) { - let node = rootNode; - while (isPassThrough(node)) { - node = node.parent; - } - - const parent = node.parent; - if (parent.type === "MemberExpression") { - if (parent.object === node) { - const key = getPropertyName(parent); - if (key == null || !has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: parent, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iteratePropertyReferences( - parent, - path, - nextTraceMap, - ); - } - return - } - if (parent.type === "CallExpression") { - if (parent.callee === node && traceMap[CALL]) { - yield { node: parent, path, type: CALL, info: traceMap[CALL] }; - } - return - } - if (parent.type === "NewExpression") { - if (parent.callee === node && traceMap[CONSTRUCT]) { - yield { - node: parent, - path, - type: CONSTRUCT, - info: traceMap[CONSTRUCT], - }; - } - return - } - if (parent.type === "AssignmentExpression") { - if (parent.right === node) { - yield* this._iterateLhsReferences(parent.left, path, traceMap); - yield* this._iteratePropertyReferences(parent, path, traceMap); - } - return - } - if (parent.type === "AssignmentPattern") { - if (parent.right === node) { - yield* this._iterateLhsReferences(parent.left, path, traceMap); - } - return - } - if (parent.type === "VariableDeclarator") { - if (parent.init === node) { - yield* this._iterateLhsReferences(parent.id, path, traceMap); - } - } - } - - /** - * Iterate the references for a given Pattern node. - * @param {Node} patternNode The Pattern node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateLhsReferences(patternNode, path, traceMap) { - if (patternNode.type === "Identifier") { - const variable = findVariable(this.globalScope, patternNode); - if (variable != null) { - yield* this._iterateVariableReferences( - variable, - path, - traceMap, - false, - ); - } - return - } - if (patternNode.type === "ObjectPattern") { - for (const property of patternNode.properties) { - const key = getPropertyName(property); - - if (key == null || !has(traceMap, key)) { - continue - } - - const nextPath = path.concat(key); - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: property, - path: nextPath, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iterateLhsReferences( - property.value, - nextPath, - nextTraceMap, - ); - } - return - } - if (patternNode.type === "AssignmentPattern") { - yield* this._iterateLhsReferences(patternNode.left, path, traceMap); - } - } - - /** - * Iterate the references for a given ModuleSpecifier node. - * @param {Node} specifierNode The ModuleSpecifier node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateImportReferences(specifierNode, path, traceMap) { - const type = specifierNode.type; - - if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") { - const key = - type === "ImportDefaultSpecifier" - ? "default" - : specifierNode.imported.name; - if (!has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: specifierNode, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iterateVariableReferences( - findVariable(this.globalScope, specifierNode.local), - path, - nextTraceMap, - false, - ); - - return - } - - if (type === "ImportNamespaceSpecifier") { - yield* this._iterateVariableReferences( - findVariable(this.globalScope, specifierNode.local), - path, - traceMap, - false, - ); - return - } - - if (type === "ExportSpecifier") { - const key = specifierNode.local.name; - if (!has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: specifierNode, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - } - } -} - -ReferenceTracker.READ = READ; -ReferenceTracker.CALL = CALL; -ReferenceTracker.CONSTRUCT = CONSTRUCT; -ReferenceTracker.ESM = ESM; - -/** - * This is a predicate function for Array#filter. - * @param {string} name A name part. - * @param {number} index The index of the name. - * @returns {boolean} `false` if it's default. - */ -function exceptDefault(name, index) { - return !(index === 1 && name === "default") -} - -var index = { - CALL, - CONSTRUCT, - ESM, - findVariable, - getFunctionHeadLocation, - getFunctionNameWithKind, - getInnermostScope, - getPropertyName, - getStaticValue, - getStringIfConstant, - hasSideEffect, - isArrowToken, - isClosingBraceToken, - isClosingBracketToken, - isClosingParenToken, - isColonToken, - isCommaToken, - isCommentToken, - isNotArrowToken, - isNotClosingBraceToken, - isNotClosingBracketToken, - isNotClosingParenToken, - isNotColonToken, - isNotCommaToken, - isNotCommentToken, - isNotOpeningBraceToken, - isNotOpeningBracketToken, - isNotOpeningParenToken, - isNotSemicolonToken, - isOpeningBraceToken, - isOpeningBracketToken, - isOpeningParenToken, - isParenthesized, - isSemicolonToken, - PatternMatcher, - READ, - ReferenceTracker, -}; - -exports.CALL = CALL; -exports.CONSTRUCT = CONSTRUCT; -exports.ESM = ESM; -exports.PatternMatcher = PatternMatcher; -exports.READ = READ; -exports.ReferenceTracker = ReferenceTracker; -exports["default"] = index; -exports.findVariable = findVariable; -exports.getFunctionHeadLocation = getFunctionHeadLocation; -exports.getFunctionNameWithKind = getFunctionNameWithKind; -exports.getInnermostScope = getInnermostScope; -exports.getPropertyName = getPropertyName; -exports.getStaticValue = getStaticValue; -exports.getStringIfConstant = getStringIfConstant; -exports.hasSideEffect = hasSideEffect; -exports.isArrowToken = isArrowToken; -exports.isClosingBraceToken = isClosingBraceToken; -exports.isClosingBracketToken = isClosingBracketToken; -exports.isClosingParenToken = isClosingParenToken; -exports.isColonToken = isColonToken; -exports.isCommaToken = isCommaToken; -exports.isCommentToken = isCommentToken; -exports.isNotArrowToken = isNotArrowToken; -exports.isNotClosingBraceToken = isNotClosingBraceToken; -exports.isNotClosingBracketToken = isNotClosingBracketToken; -exports.isNotClosingParenToken = isNotClosingParenToken; -exports.isNotColonToken = isNotColonToken; -exports.isNotCommaToken = isNotCommaToken; -exports.isNotCommentToken = isNotCommentToken; -exports.isNotOpeningBraceToken = isNotOpeningBraceToken; -exports.isNotOpeningBracketToken = isNotOpeningBracketToken; -exports.isNotOpeningParenToken = isNotOpeningParenToken; -exports.isNotSemicolonToken = isNotSemicolonToken; -exports.isOpeningBraceToken = isOpeningBraceToken; -exports.isOpeningBracketToken = isOpeningBracketToken; -exports.isOpeningParenToken = isOpeningParenToken; -exports.isParenthesized = isParenthesized; -exports.isSemicolonToken = isSemicolonToken; -//# sourceMappingURL=index.js.map diff --git a/graphql/node_modules/@eslint-community/eslint-utils/index.js.map b/graphql/node_modules/@eslint-community/eslint-utils/index.js.map deleted file mode 100644 index bcadeff9..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["src/get-innermost-scope.mjs","src/find-variable.mjs","src/token-predicate.mjs","src/get-function-head-location.mjs","src/get-static-value.mjs","src/get-string-if-constant.mjs","src/get-property-name.mjs","src/get-function-name-with-kind.mjs","src/has-side-effect.mjs","src/is-parenthesized.mjs","src/pattern-matcher.mjs","src/reference-tracker.mjs","src/index.mjs"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope.mjs\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Negate the result of `this` calling.\n * @param {Token} token The token to check.\n * @returns {boolean} `true` if the result of `this(token)` is `false`.\n */\nfunction negate0(token) {\n return !this(token) //eslint-disable-line no-invalid-this\n}\n\n/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return negate0.bind(f)\n}\n\n/**\n * Checks if the given token is a PunctuatorToken with the given value\n * @param {Token} token - The token to check.\n * @param {string} value - The value to check.\n * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.\n */\nfunction isPunctuatorTokenWithValue(token, value) {\n return token.type === \"Punctuator\" && token.value === value\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return isPunctuatorTokenWithValue(token, \"=>\")\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return isPunctuatorTokenWithValue(token, \",\")\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return isPunctuatorTokenWithValue(token, \";\")\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return isPunctuatorTokenWithValue(token, \":\")\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return isPunctuatorTokenWithValue(token, \"(\")\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return isPunctuatorTokenWithValue(token, \")\")\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"[\")\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"]\")\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"{\")\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"}\")\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return [\"Block\", \"Line\", \"Shebang\"].includes(token.type)\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\" ||\n parent.type === \"PropertyDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: { ...start },\n end: { ...end },\n }\n}\n","/* globals globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable.mjs\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ]),\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n Array.of,\n Array.prototype.at,\n Array.prototype.concat,\n Array.prototype.entries,\n Array.prototype.every,\n Array.prototype.filter,\n Array.prototype.find,\n Array.prototype.findIndex,\n Array.prototype.flat,\n Array.prototype.includes,\n Array.prototype.indexOf,\n Array.prototype.join,\n Array.prototype.keys,\n Array.prototype.lastIndexOf,\n Array.prototype.slice,\n Array.prototype.some,\n Array.prototype.toString,\n Array.prototype.values,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n Map,\n Map.prototype.entries,\n Map.prototype.get,\n Map.prototype.has,\n Map.prototype.keys,\n Map.prototype.values,\n ...Object.getOwnPropertyNames(Math)\n .filter((k) => k !== \"random\")\n .map((k) => Math[k])\n .filter((f) => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Number.prototype.toExponential,\n Number.prototype.toFixed,\n Number.prototype.toPrecision,\n Number.prototype.toString,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n Set,\n Set.prototype.entries,\n Set.prototype.has,\n Set.prototype.keys,\n Set.prototype.values,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n String.prototype.at,\n String.prototype.charAt,\n String.prototype.charCodeAt,\n String.prototype.codePointAt,\n String.prototype.concat,\n String.prototype.endsWith,\n String.prototype.includes,\n String.prototype.indexOf,\n String.prototype.lastIndexOf,\n String.prototype.normalize,\n String.prototype.padEnd,\n String.prototype.padStart,\n String.prototype.slice,\n String.prototype.startsWith,\n String.prototype.substr,\n String.prototype.substring,\n String.prototype.toLowerCase,\n String.prototype.toString,\n String.prototype.toUpperCase,\n String.prototype.trim,\n String.prototype.trimEnd,\n String.prototype.trimLeft,\n String.prototype.trimRight,\n String.prototype.trimStart,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter((f) => typeof f === \"function\"),\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/** @type {ReadonlyArray]>} */\nconst getterAllowed = [\n [Map, new Set([\"size\"])],\n [\n RegExp,\n new Set([\n \"dotAll\",\n \"flags\",\n \"global\",\n \"hasIndices\",\n \"ignoreCase\",\n \"multiline\",\n \"source\",\n \"sticky\",\n \"unicode\",\n ]),\n ],\n [Set, new Set([\"size\"])],\n]\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\n/**\n * Returns whether the given variable is never written to after initialization.\n * @param {import(\"eslint\").Scope.Variable} variable\n * @returns {boolean}\n */\nfunction isEffectivelyConst(variable) {\n const refs = variable.references\n\n const inits = refs.filter((r) => r.init).length\n const reads = refs.filter((r) => r.isReadOnly()).length\n if (inits === 1 && reads + inits === refs.length) {\n // there is only one init and all other references only read\n return true\n }\n return false\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: left.value ** right.value }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n if (calleeNode.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(calleeNode.object, initialScope)\n if (object != null) {\n if (\n object.value == null &&\n (object.optional || node.optional)\n ) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(\n calleeNode,\n initialScope,\n )\n\n if (property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n if (callee.value == null && node.optional) {\n return { value: undefined, optional: true }\n }\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.type === \"Variable\" &&\n (def.parent.kind === \"const\" ||\n isEffectivelyConst(variable)) &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false) ||\n (node.operator === \"??\" && left.value != null)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(node.object, initialScope)\n if (object != null) {\n if (object.value == null && (object.optional || node.optional)) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(node, initialScope)\n\n if (property != null) {\n if (!isGetter(object.value, property.value)) {\n return { value: object.value[property.value] }\n }\n\n for (const [classFn, allowed] of getterAllowed) {\n if (\n object.value instanceof classFn &&\n allowed.has(property.value)\n ) {\n return { value: object.value[property.value] }\n }\n }\n }\n }\n return null\n },\n\n ChainExpression(node, initialScope) {\n const expression = getStaticValueR(node.expression, initialScope)\n if (expression != null) {\n return { value: expression.value }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = getStaticPropertyNameValue(\n propertyNode,\n initialScope,\n )\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope,\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope,\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map((q) => q.value.cooked)\n strings.raw = node.quasi.quasis.map((q) => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the static value of property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.\n */\nfunction getStaticPropertyNameValue(node, initialScope) {\n const nameNode = node.type === \"Property\" ? node.key : node.property\n\n if (node.computed) {\n return getStaticValueR(nameNode, initialScope)\n }\n\n if (nameNode.type === \"Identifier\") {\n return { value: nameNode.name }\n }\n\n if (nameNode.type === \"Literal\") {\n if (nameNode.bigint) {\n return { value: nameNode.bigint }\n }\n return { value: String(nameNode.value) }\n }\n\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value.mjs\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n case \"PropertyDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n if (node.key.type === \"PrivateIdentifier\") {\n return null\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name.mjs\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.\n * @returns {string} The name and kind of the function node.\n */\n// eslint-disable-next-line complexity\nexport function getFunctionNameWithKind(node, sourceCode) {\n const parent = node.parent\n const tokens = []\n const isObjectMethod = parent.type === \"Property\" && parent.value === node\n const isClassMethod =\n parent.type === \"MethodDefinition\" && parent.value === node\n const isClassFieldMethod =\n parent.type === \"PropertyDefinition\" && parent.value === node\n\n // Modifiers.\n if (isClassMethod || isClassFieldMethod) {\n if (parent.static) {\n tokens.push(\"static\")\n }\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(\"private\")\n }\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n // Kinds.\n if (isObjectMethod || isClassMethod) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else if (isClassFieldMethod) {\n tokens.push(\"method\")\n } else {\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\")\n }\n tokens.push(\"function\")\n }\n\n // Names.\n if (isObjectMethod || isClassMethod || isClassFieldMethod) {\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(`#${parent.key.name}`)\n } else {\n const name = getPropertyName(parent)\n if (name) {\n tokens.push(`'${name}'`)\n } else if (sourceCode) {\n const keyText = sourceCode.getText(parent.key)\n if (!keyText.includes(\"\\n\")) {\n tokens.push(`[${keyText}]`)\n }\n }\n }\n } else if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else if (\n parent.type === \"VariableDeclarator\" &&\n parent.id &&\n parent.id.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.id.name}'`)\n } else if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left &&\n parent.left.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.left.name}'`)\n } else if (\n parent.type === \"ExportDefaultDeclaration\" &&\n parent.declaration === node\n ) {\n tokens.push(\"'default'\")\n }\n\n return tokens.join(\" \")\n}\n","import { getKeys, KEYS } from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ]),\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(x) {\n return x !== null && typeof x === \"object\" && typeof x.type === \"string\"\n}\n\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n isNode(element) &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (\n isNode(value) &&\n this.$visit(value, options, visitorKeys)\n ) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n PropertyDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n }),\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {},\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || KEYS,\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode,\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (\n node == null ||\n // `Program` can't be parenthesized\n node.parent == null ||\n // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`\n (node.parent.type === \"CatchClause\" && node.parent.param === node)\n ) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some((r) => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n case \"ChainExpression\":\n return true\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"globalThis\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"globalThis\", \"self\", \"window\"],\n } = {},\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true,\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? { default: nextTraceMap, ...nextTraceMap }\n : { default: nextTraceMap },\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap,\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap,\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false,\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false,\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location.mjs\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind.mjs\"\nimport { getInnermostScope } from \"./get-innermost-scope.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStaticValue } from \"./get-static-value.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\nimport { hasSideEffect } from \"./has-side-effect.mjs\"\nimport { isParenthesized } from \"./is-parenthesized.mjs\"\nimport { PatternMatcher } from \"./pattern-matcher.mjs\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker.mjs\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate.mjs\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":["getKeys","KEYS"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;AACtD,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;AAClC;AACA,IAAI,IAAI,KAAK,GAAG,aAAY;AAC5B,IAAI,IAAI,KAAK,GAAG,MAAK;AACrB,IAAI,GAAG;AACP,QAAQ,KAAK,GAAG,MAAK;AACrB,QAAQ,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE;AACpD,YAAY,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,MAAK;AAChD;AACA,YAAY,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE;AAC7D,gBAAgB,KAAK,GAAG,WAAU;AAClC,gBAAgB,KAAK,GAAG,KAAI;AAC5B,gBAAgB,KAAK;AACrB,aAAa;AACb,SAAS;AACT,KAAK,QAAQ,KAAK,CAAC;AACnB;AACA,IAAI,OAAO,KAAK;AAChB;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,YAAY,EAAE,UAAU,EAAE;AACvD,IAAI,IAAI,IAAI,GAAG,GAAE;AACjB,IAAI,IAAI,KAAK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B,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,iBAAiB;AACrB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,mBAAmB;AACvB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/eslint-utils/index.mjs b/graphql/node_modules/@eslint-community/eslint-utils/index.mjs deleted file mode 100644 index 54b25816..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/index.mjs +++ /dev/null @@ -1,2027 +0,0 @@ -import { getKeys, KEYS } from 'eslint-visitor-keys'; - -/** - * Get the innermost scope which contains a given location. - * @param {Scope} initialScope The initial scope to search. - * @param {Node} node The location to search. - * @returns {Scope} The innermost scope. - */ -function getInnermostScope(initialScope, node) { - const location = node.range[0]; - - let scope = initialScope; - let found = false; - do { - found = false; - for (const childScope of scope.childScopes) { - const range = childScope.block.range; - - if (range[0] <= location && location < range[1]) { - scope = childScope; - found = true; - break - } - } - } while (found) - - return scope -} - -/** - * Find the variable of a given name. - * @param {Scope} initialScope The scope to start finding. - * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node. - * @returns {Variable|null} The found variable or null. - */ -function findVariable(initialScope, nameOrNode) { - let name = ""; - let scope = initialScope; - - if (typeof nameOrNode === "string") { - name = nameOrNode; - } else { - name = nameOrNode.name; - scope = getInnermostScope(scope, nameOrNode); - } - - while (scope != null) { - const variable = scope.set.get(name); - if (variable != null) { - return variable - } - scope = scope.upper; - } - - return null -} - -/** - * Negate the result of `this` calling. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the result of `this(token)` is `false`. - */ -function negate0(token) { - return !this(token) //eslint-disable-line no-invalid-this -} - -/** - * Creates the negate function of the given function. - * @param {function(Token):boolean} f - The function to negate. - * @returns {function(Token):boolean} Negated function. - */ -function negate(f) { - return negate0.bind(f) -} - -/** - * Checks if the given token is a PunctuatorToken with the given value - * @param {Token} token - The token to check. - * @param {string} value - The value to check. - * @returns {boolean} `true` if the token is a PunctuatorToken with the given value. - */ -function isPunctuatorTokenWithValue(token, value) { - return token.type === "Punctuator" && token.value === value -} - -/** - * Checks if the given token is an arrow token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an arrow token. - */ -function isArrowToken(token) { - return isPunctuatorTokenWithValue(token, "=>") -} - -/** - * Checks if the given token is a comma token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a comma token. - */ -function isCommaToken(token) { - return isPunctuatorTokenWithValue(token, ",") -} - -/** - * Checks if the given token is a semicolon token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a semicolon token. - */ -function isSemicolonToken(token) { - return isPunctuatorTokenWithValue(token, ";") -} - -/** - * Checks if the given token is a colon token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a colon token. - */ -function isColonToken(token) { - return isPunctuatorTokenWithValue(token, ":") -} - -/** - * Checks if the given token is an opening parenthesis token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening parenthesis token. - */ -function isOpeningParenToken(token) { - return isPunctuatorTokenWithValue(token, "(") -} - -/** - * Checks if the given token is a closing parenthesis token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing parenthesis token. - */ -function isClosingParenToken(token) { - return isPunctuatorTokenWithValue(token, ")") -} - -/** - * Checks if the given token is an opening square bracket token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening square bracket token. - */ -function isOpeningBracketToken(token) { - return isPunctuatorTokenWithValue(token, "[") -} - -/** - * Checks if the given token is a closing square bracket token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing square bracket token. - */ -function isClosingBracketToken(token) { - return isPunctuatorTokenWithValue(token, "]") -} - -/** - * Checks if the given token is an opening brace token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is an opening brace token. - */ -function isOpeningBraceToken(token) { - return isPunctuatorTokenWithValue(token, "{") -} - -/** - * Checks if the given token is a closing brace token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a closing brace token. - */ -function isClosingBraceToken(token) { - return isPunctuatorTokenWithValue(token, "}") -} - -/** - * Checks if the given token is a comment token or not. - * @param {Token} token - The token to check. - * @returns {boolean} `true` if the token is a comment token. - */ -function isCommentToken(token) { - return ["Block", "Line", "Shebang"].includes(token.type) -} - -const isNotArrowToken = negate(isArrowToken); -const isNotCommaToken = negate(isCommaToken); -const isNotSemicolonToken = negate(isSemicolonToken); -const isNotColonToken = negate(isColonToken); -const isNotOpeningParenToken = negate(isOpeningParenToken); -const isNotClosingParenToken = negate(isClosingParenToken); -const isNotOpeningBracketToken = negate(isOpeningBracketToken); -const isNotClosingBracketToken = negate(isClosingBracketToken); -const isNotOpeningBraceToken = negate(isOpeningBraceToken); -const isNotClosingBraceToken = negate(isClosingBraceToken); -const isNotCommentToken = negate(isCommentToken); - -/** - * Get the `(` token of the given function node. - * @param {Node} node - The function node to get. - * @param {SourceCode} sourceCode - The source code object to get tokens. - * @returns {Token} `(` token. - */ -function getOpeningParenOfParams(node, sourceCode) { - return node.id - ? sourceCode.getTokenAfter(node.id, isOpeningParenToken) - : sourceCode.getFirstToken(node, isOpeningParenToken) -} - -/** - * Get the location of the given function node for reporting. - * @param {Node} node - The function node to get. - * @param {SourceCode} sourceCode - The source code object to get tokens. - * @returns {string} The location of the function node for reporting. - */ -function getFunctionHeadLocation(node, sourceCode) { - const parent = node.parent; - let start = null; - let end = null; - - if (node.type === "ArrowFunctionExpression") { - const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken); - - start = arrowToken.loc.start; - end = arrowToken.loc.end; - } else if ( - parent.type === "Property" || - parent.type === "MethodDefinition" || - parent.type === "PropertyDefinition" - ) { - start = parent.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } else { - start = node.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - - return { - start: { ...start }, - end: { ...end }, - } -} - -/* globals globalThis, global, self, window */ - -const globalObject = - typeof globalThis !== "undefined" - ? globalThis - : typeof self !== "undefined" - ? self - : typeof window !== "undefined" - ? window - : typeof global !== "undefined" - ? global - : {}; - -const builtinNames = Object.freeze( - new Set([ - "Array", - "ArrayBuffer", - "BigInt", - "BigInt64Array", - "BigUint64Array", - "Boolean", - "DataView", - "Date", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "Float32Array", - "Float64Array", - "Function", - "Infinity", - "Int16Array", - "Int32Array", - "Int8Array", - "isFinite", - "isNaN", - "isPrototypeOf", - "JSON", - "Map", - "Math", - "NaN", - "Number", - "Object", - "parseFloat", - "parseInt", - "Promise", - "Proxy", - "Reflect", - "RegExp", - "Set", - "String", - "Symbol", - "Uint16Array", - "Uint32Array", - "Uint8Array", - "Uint8ClampedArray", - "undefined", - "unescape", - "WeakMap", - "WeakSet", - ]), -); -const callAllowed = new Set( - [ - Array.isArray, - Array.of, - Array.prototype.at, - Array.prototype.concat, - Array.prototype.entries, - Array.prototype.every, - Array.prototype.filter, - Array.prototype.find, - Array.prototype.findIndex, - Array.prototype.flat, - Array.prototype.includes, - Array.prototype.indexOf, - Array.prototype.join, - Array.prototype.keys, - Array.prototype.lastIndexOf, - Array.prototype.slice, - Array.prototype.some, - Array.prototype.toString, - Array.prototype.values, - typeof BigInt === "function" ? BigInt : undefined, - Boolean, - Date, - Date.parse, - decodeURI, - decodeURIComponent, - encodeURI, - encodeURIComponent, - escape, - isFinite, - isNaN, - isPrototypeOf, - Map, - Map.prototype.entries, - Map.prototype.get, - Map.prototype.has, - Map.prototype.keys, - Map.prototype.values, - ...Object.getOwnPropertyNames(Math) - .filter((k) => k !== "random") - .map((k) => Math[k]) - .filter((f) => typeof f === "function"), - Number, - Number.isFinite, - Number.isNaN, - Number.parseFloat, - Number.parseInt, - Number.prototype.toExponential, - Number.prototype.toFixed, - Number.prototype.toPrecision, - Number.prototype.toString, - Object, - Object.entries, - Object.is, - Object.isExtensible, - Object.isFrozen, - Object.isSealed, - Object.keys, - Object.values, - parseFloat, - parseInt, - RegExp, - Set, - Set.prototype.entries, - Set.prototype.has, - Set.prototype.keys, - Set.prototype.values, - String, - String.fromCharCode, - String.fromCodePoint, - String.raw, - String.prototype.at, - String.prototype.charAt, - String.prototype.charCodeAt, - String.prototype.codePointAt, - String.prototype.concat, - String.prototype.endsWith, - String.prototype.includes, - String.prototype.indexOf, - String.prototype.lastIndexOf, - String.prototype.normalize, - String.prototype.padEnd, - String.prototype.padStart, - String.prototype.slice, - String.prototype.startsWith, - String.prototype.substr, - String.prototype.substring, - String.prototype.toLowerCase, - String.prototype.toString, - String.prototype.toUpperCase, - String.prototype.trim, - String.prototype.trimEnd, - String.prototype.trimLeft, - String.prototype.trimRight, - String.prototype.trimStart, - Symbol.for, - Symbol.keyFor, - unescape, - ].filter((f) => typeof f === "function"), -); -const callPassThrough = new Set([ - Object.freeze, - Object.preventExtensions, - Object.seal, -]); - -/** @type {ReadonlyArray]>} */ -const getterAllowed = [ - [Map, new Set(["size"])], - [ - RegExp, - new Set([ - "dotAll", - "flags", - "global", - "hasIndices", - "ignoreCase", - "multiline", - "source", - "sticky", - "unicode", - ]), - ], - [Set, new Set(["size"])], -]; - -/** - * Get the property descriptor. - * @param {object} object The object to get. - * @param {string|number|symbol} name The property name to get. - */ -function getPropertyDescriptor(object, name) { - let x = object; - while ((typeof x === "object" || typeof x === "function") && x !== null) { - const d = Object.getOwnPropertyDescriptor(x, name); - if (d) { - return d - } - x = Object.getPrototypeOf(x); - } - return null -} - -/** - * Check if a property is getter or not. - * @param {object} object The object to check. - * @param {string|number|symbol} name The property name to check. - */ -function isGetter(object, name) { - const d = getPropertyDescriptor(object, name); - return d != null && d.get != null -} - -/** - * Get the element values of a given node list. - * @param {Node[]} nodeList The node list to get values. - * @param {Scope|undefined} initialScope The initial scope to find variables. - * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null. - */ -function getElementValues(nodeList, initialScope) { - const valueList = []; - - for (let i = 0; i < nodeList.length; ++i) { - const elementNode = nodeList[i]; - - if (elementNode == null) { - valueList.length = i + 1; - } else if (elementNode.type === "SpreadElement") { - const argument = getStaticValueR(elementNode.argument, initialScope); - if (argument == null) { - return null - } - valueList.push(...argument.value); - } else { - const element = getStaticValueR(elementNode, initialScope); - if (element == null) { - return null - } - valueList.push(element.value); - } - } - - return valueList -} - -/** - * Returns whether the given variable is never written to after initialization. - * @param {import("eslint").Scope.Variable} variable - * @returns {boolean} - */ -function isEffectivelyConst(variable) { - const refs = variable.references; - - const inits = refs.filter((r) => r.init).length; - const reads = refs.filter((r) => r.isReadOnly()).length; - if (inits === 1 && reads + inits === refs.length) { - // there is only one init and all other references only read - return true - } - return false -} - -const operations = Object.freeze({ - ArrayExpression(node, initialScope) { - const elements = getElementValues(node.elements, initialScope); - return elements != null ? { value: elements } : null - }, - - AssignmentExpression(node, initialScope) { - if (node.operator === "=") { - return getStaticValueR(node.right, initialScope) - } - return null - }, - - //eslint-disable-next-line complexity - BinaryExpression(node, initialScope) { - if (node.operator === "in" || node.operator === "instanceof") { - // Not supported. - return null - } - - const left = getStaticValueR(node.left, initialScope); - const right = getStaticValueR(node.right, initialScope); - if (left != null && right != null) { - switch (node.operator) { - case "==": - return { value: left.value == right.value } //eslint-disable-line eqeqeq - case "!=": - return { value: left.value != right.value } //eslint-disable-line eqeqeq - case "===": - return { value: left.value === right.value } - case "!==": - return { value: left.value !== right.value } - case "<": - return { value: left.value < right.value } - case "<=": - return { value: left.value <= right.value } - case ">": - return { value: left.value > right.value } - case ">=": - return { value: left.value >= right.value } - case "<<": - return { value: left.value << right.value } - case ">>": - return { value: left.value >> right.value } - case ">>>": - return { value: left.value >>> right.value } - case "+": - return { value: left.value + right.value } - case "-": - return { value: left.value - right.value } - case "*": - return { value: left.value * right.value } - case "/": - return { value: left.value / right.value } - case "%": - return { value: left.value % right.value } - case "**": - return { value: left.value ** right.value } - case "|": - return { value: left.value | right.value } - case "^": - return { value: left.value ^ right.value } - case "&": - return { value: left.value & right.value } - - // no default - } - } - - return null - }, - - CallExpression(node, initialScope) { - const calleeNode = node.callee; - const args = getElementValues(node.arguments, initialScope); - - if (args != null) { - if (calleeNode.type === "MemberExpression") { - if (calleeNode.property.type === "PrivateIdentifier") { - return null - } - const object = getStaticValueR(calleeNode.object, initialScope); - if (object != null) { - if ( - object.value == null && - (object.optional || node.optional) - ) { - return { value: undefined, optional: true } - } - const property = getStaticPropertyNameValue( - calleeNode, - initialScope, - ); - - if (property != null) { - const receiver = object.value; - const methodName = property.value; - if (callAllowed.has(receiver[methodName])) { - return { value: receiver[methodName](...args) } - } - if (callPassThrough.has(receiver[methodName])) { - return { value: args[0] } - } - } - } - } else { - const callee = getStaticValueR(calleeNode, initialScope); - if (callee != null) { - if (callee.value == null && node.optional) { - return { value: undefined, optional: true } - } - const func = callee.value; - if (callAllowed.has(func)) { - return { value: func(...args) } - } - if (callPassThrough.has(func)) { - return { value: args[0] } - } - } - } - } - - return null - }, - - ConditionalExpression(node, initialScope) { - const test = getStaticValueR(node.test, initialScope); - if (test != null) { - return test.value - ? getStaticValueR(node.consequent, initialScope) - : getStaticValueR(node.alternate, initialScope) - } - return null - }, - - ExpressionStatement(node, initialScope) { - return getStaticValueR(node.expression, initialScope) - }, - - Identifier(node, initialScope) { - if (initialScope != null) { - const variable = findVariable(initialScope, node); - - // Built-in globals. - if ( - variable != null && - variable.defs.length === 0 && - builtinNames.has(variable.name) && - variable.name in globalObject - ) { - return { value: globalObject[variable.name] } - } - - // Constants. - if (variable != null && variable.defs.length === 1) { - const def = variable.defs[0]; - if ( - def.parent && - def.type === "Variable" && - (def.parent.kind === "const" || - isEffectivelyConst(variable)) && - // TODO(mysticatea): don't support destructuring here. - def.node.id.type === "Identifier" - ) { - return getStaticValueR(def.node.init, initialScope) - } - } - } - return null - }, - - Literal(node) { - //istanbul ignore if : this is implementation-specific behavior. - if ((node.regex != null || node.bigint != null) && node.value == null) { - // It was a RegExp/BigInt literal, but Node.js didn't support it. - return null - } - return { value: node.value } - }, - - LogicalExpression(node, initialScope) { - const left = getStaticValueR(node.left, initialScope); - if (left != null) { - if ( - (node.operator === "||" && Boolean(left.value) === true) || - (node.operator === "&&" && Boolean(left.value) === false) || - (node.operator === "??" && left.value != null) - ) { - return left - } - - const right = getStaticValueR(node.right, initialScope); - if (right != null) { - return right - } - } - - return null - }, - - MemberExpression(node, initialScope) { - if (node.property.type === "PrivateIdentifier") { - return null - } - const object = getStaticValueR(node.object, initialScope); - if (object != null) { - if (object.value == null && (object.optional || node.optional)) { - return { value: undefined, optional: true } - } - const property = getStaticPropertyNameValue(node, initialScope); - - if (property != null) { - if (!isGetter(object.value, property.value)) { - return { value: object.value[property.value] } - } - - for (const [classFn, allowed] of getterAllowed) { - if ( - object.value instanceof classFn && - allowed.has(property.value) - ) { - return { value: object.value[property.value] } - } - } - } - } - return null - }, - - ChainExpression(node, initialScope) { - const expression = getStaticValueR(node.expression, initialScope); - if (expression != null) { - return { value: expression.value } - } - return null - }, - - NewExpression(node, initialScope) { - const callee = getStaticValueR(node.callee, initialScope); - const args = getElementValues(node.arguments, initialScope); - - if (callee != null && args != null) { - const Func = callee.value; - if (callAllowed.has(Func)) { - return { value: new Func(...args) } - } - } - - return null - }, - - ObjectExpression(node, initialScope) { - const object = {}; - - for (const propertyNode of node.properties) { - if (propertyNode.type === "Property") { - if (propertyNode.kind !== "init") { - return null - } - const key = getStaticPropertyNameValue( - propertyNode, - initialScope, - ); - const value = getStaticValueR(propertyNode.value, initialScope); - if (key == null || value == null) { - return null - } - object[key.value] = value.value; - } else if ( - propertyNode.type === "SpreadElement" || - propertyNode.type === "ExperimentalSpreadProperty" - ) { - const argument = getStaticValueR( - propertyNode.argument, - initialScope, - ); - if (argument == null) { - return null - } - Object.assign(object, argument.value); - } else { - return null - } - } - - return { value: object } - }, - - SequenceExpression(node, initialScope) { - const last = node.expressions[node.expressions.length - 1]; - return getStaticValueR(last, initialScope) - }, - - TaggedTemplateExpression(node, initialScope) { - const tag = getStaticValueR(node.tag, initialScope); - const expressions = getElementValues( - node.quasi.expressions, - initialScope, - ); - - if (tag != null && expressions != null) { - const func = tag.value; - const strings = node.quasi.quasis.map((q) => q.value.cooked); - strings.raw = node.quasi.quasis.map((q) => q.value.raw); - - if (func === String.raw) { - return { value: func(strings, ...expressions) } - } - } - - return null - }, - - TemplateLiteral(node, initialScope) { - const expressions = getElementValues(node.expressions, initialScope); - if (expressions != null) { - let value = node.quasis[0].value.cooked; - for (let i = 0; i < expressions.length; ++i) { - value += expressions[i]; - value += node.quasis[i + 1].value.cooked; - } - return { value } - } - return null - }, - - UnaryExpression(node, initialScope) { - if (node.operator === "delete") { - // Not supported. - return null - } - if (node.operator === "void") { - return { value: undefined } - } - - const arg = getStaticValueR(node.argument, initialScope); - if (arg != null) { - switch (node.operator) { - case "-": - return { value: -arg.value } - case "+": - return { value: +arg.value } //eslint-disable-line no-implicit-coercion - case "!": - return { value: !arg.value } - case "~": - return { value: ~arg.value } - case "typeof": - return { value: typeof arg.value } - - // no default - } - } - - return null - }, -}); - -/** - * Get the value of a given node if it's a static value. - * @param {Node} node The node to get. - * @param {Scope|undefined} initialScope The scope to start finding variable. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`. - */ -function getStaticValueR(node, initialScope) { - if (node != null && Object.hasOwnProperty.call(operations, node.type)) { - return operations[node.type](node, initialScope) - } - return null -} - -/** - * Get the static value of property name from a MemberExpression node or a Property node. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`. - */ -function getStaticPropertyNameValue(node, initialScope) { - const nameNode = node.type === "Property" ? node.key : node.property; - - if (node.computed) { - return getStaticValueR(nameNode, initialScope) - } - - if (nameNode.type === "Identifier") { - return { value: nameNode.name } - } - - if (nameNode.type === "Literal") { - if (nameNode.bigint) { - return { value: nameNode.bigint } - } - return { value: String(nameNode.value) } - } - - return null -} - -/** - * Get the value of a given node if it's a static value. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible. - * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`. - */ -function getStaticValue(node, initialScope = null) { - try { - return getStaticValueR(node, initialScope) - } catch (_error) { - return null - } -} - -/** - * Get the value of a given node if it's a literal or a template literal. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant. - * @returns {string|null} The value of the node, or `null`. - */ -function getStringIfConstant(node, initialScope = null) { - // Handle the literals that the platform doesn't support natively. - if (node && node.type === "Literal" && node.value === null) { - if (node.regex) { - return `/${node.regex.pattern}/${node.regex.flags}` - } - if (node.bigint) { - return node.bigint - } - } - - const evaluated = getStaticValue(node, initialScope); - return evaluated && String(evaluated.value) -} - -/** - * Get the property name from a MemberExpression node or a Property node. - * @param {Node} node The node to get. - * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it. - * @returns {string|null} The property name of the node. - */ -function getPropertyName(node, initialScope) { - switch (node.type) { - case "MemberExpression": - if (node.computed) { - return getStringIfConstant(node.property, initialScope) - } - if (node.property.type === "PrivateIdentifier") { - return null - } - return node.property.name - - case "Property": - case "MethodDefinition": - case "PropertyDefinition": - if (node.computed) { - return getStringIfConstant(node.key, initialScope) - } - if (node.key.type === "Literal") { - return String(node.key.value) - } - if (node.key.type === "PrivateIdentifier") { - return null - } - return node.key.name - - // no default - } - - return null -} - -/** - * Get the name and kind of the given function node. - * @param {ASTNode} node - The function node to get. - * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys. - * @returns {string} The name and kind of the function node. - */ -// eslint-disable-next-line complexity -function getFunctionNameWithKind(node, sourceCode) { - const parent = node.parent; - const tokens = []; - const isObjectMethod = parent.type === "Property" && parent.value === node; - const isClassMethod = - parent.type === "MethodDefinition" && parent.value === node; - const isClassFieldMethod = - parent.type === "PropertyDefinition" && parent.value === node; - - // Modifiers. - if (isClassMethod || isClassFieldMethod) { - if (parent.static) { - tokens.push("static"); - } - if (parent.key.type === "PrivateIdentifier") { - tokens.push("private"); - } - } - if (node.async) { - tokens.push("async"); - } - if (node.generator) { - tokens.push("generator"); - } - - // Kinds. - if (isObjectMethod || isClassMethod) { - if (parent.kind === "constructor") { - return "constructor" - } - if (parent.kind === "get") { - tokens.push("getter"); - } else if (parent.kind === "set") { - tokens.push("setter"); - } else { - tokens.push("method"); - } - } else if (isClassFieldMethod) { - tokens.push("method"); - } else { - if (node.type === "ArrowFunctionExpression") { - tokens.push("arrow"); - } - tokens.push("function"); - } - - // Names. - if (isObjectMethod || isClassMethod || isClassFieldMethod) { - if (parent.key.type === "PrivateIdentifier") { - tokens.push(`#${parent.key.name}`); - } else { - const name = getPropertyName(parent); - if (name) { - tokens.push(`'${name}'`); - } else if (sourceCode) { - const keyText = sourceCode.getText(parent.key); - if (!keyText.includes("\n")) { - tokens.push(`[${keyText}]`); - } - } - } - } else if (node.id) { - tokens.push(`'${node.id.name}'`); - } else if ( - parent.type === "VariableDeclarator" && - parent.id && - parent.id.type === "Identifier" - ) { - tokens.push(`'${parent.id.name}'`); - } else if ( - (parent.type === "AssignmentExpression" || - parent.type === "AssignmentPattern") && - parent.left && - parent.left.type === "Identifier" - ) { - tokens.push(`'${parent.left.name}'`); - } else if ( - parent.type === "ExportDefaultDeclaration" && - parent.declaration === node - ) { - tokens.push("'default'"); - } - - return tokens.join(" ") -} - -const typeConversionBinaryOps = Object.freeze( - new Set([ - "==", - "!=", - "<", - "<=", - ">", - ">=", - "<<", - ">>", - ">>>", - "+", - "-", - "*", - "/", - "%", - "|", - "^", - "&", - "in", - ]), -); -const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"])); - -/** - * Check whether the given value is an ASTNode or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is an ASTNode. - */ -function isNode(x) { - return x !== null && typeof x === "object" && typeof x.type === "string" -} - -const visitor = Object.freeze( - Object.assign(Object.create(null), { - $visit(node, options, visitorKeys) { - const { type } = node; - - if (typeof this[type] === "function") { - return this[type](node, options, visitorKeys) - } - - return this.$visitChildren(node, options, visitorKeys) - }, - - $visitChildren(node, options, visitorKeys) { - const { type } = node; - - for (const key of visitorKeys[type] || getKeys(node)) { - const value = node[key]; - - if (Array.isArray(value)) { - for (const element of value) { - if ( - isNode(element) && - this.$visit(element, options, visitorKeys) - ) { - return true - } - } - } else if ( - isNode(value) && - this.$visit(value, options, visitorKeys) - ) { - return true - } - } - - return false - }, - - ArrowFunctionExpression() { - return false - }, - AssignmentExpression() { - return true - }, - AwaitExpression() { - return true - }, - BinaryExpression(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - typeConversionBinaryOps.has(node.operator) && - (node.left.type !== "Literal" || node.right.type !== "Literal") - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - CallExpression() { - return true - }, - FunctionExpression() { - return false - }, - ImportExpression() { - return true - }, - MemberExpression(node, options, visitorKeys) { - if (options.considerGetters) { - return true - } - if ( - options.considerImplicitTypeConversion && - node.computed && - node.property.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - MethodDefinition(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - NewExpression() { - return true - }, - Property(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - PropertyDefinition(node, options, visitorKeys) { - if ( - options.considerImplicitTypeConversion && - node.computed && - node.key.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - UnaryExpression(node, options, visitorKeys) { - if (node.operator === "delete") { - return true - } - if ( - options.considerImplicitTypeConversion && - typeConversionUnaryOps.has(node.operator) && - node.argument.type !== "Literal" - ) { - return true - } - return this.$visitChildren(node, options, visitorKeys) - }, - UpdateExpression() { - return true - }, - YieldExpression() { - return true - }, - }), -); - -/** - * Check whether a given node has any side effect or not. - * @param {Node} node The node to get. - * @param {SourceCode} sourceCode The source code object. - * @param {object} [options] The option object. - * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects. - * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects. - * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`. - * @returns {boolean} `true` if the node has a certain side effect. - */ -function hasSideEffect( - node, - sourceCode, - { considerGetters = false, considerImplicitTypeConversion = false } = {}, -) { - return visitor.$visit( - node, - { considerGetters, considerImplicitTypeConversion }, - sourceCode.visitorKeys || KEYS, - ) -} - -/** - * Get the left parenthesis of the parent node syntax if it exists. - * E.g., `if (a) {}` then the `(`. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {Token|null} The left parenthesis of the parent node syntax - */ -function getParentSyntaxParen(node, sourceCode) { - const parent = node.parent; - - switch (parent.type) { - case "CallExpression": - case "NewExpression": - if (parent.arguments.length === 1 && parent.arguments[0] === node) { - return sourceCode.getTokenAfter( - parent.callee, - isOpeningParenToken, - ) - } - return null - - case "DoWhileStatement": - if (parent.test === node) { - return sourceCode.getTokenAfter( - parent.body, - isOpeningParenToken, - ) - } - return null - - case "IfStatement": - case "WhileStatement": - if (parent.test === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "ImportExpression": - if (parent.source === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "SwitchStatement": - if (parent.discriminant === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - case "WithStatement": - if (parent.object === node) { - return sourceCode.getFirstToken(parent, 1) - } - return null - - default: - return null - } -} - -/** - * Check whether a given node is parenthesized or not. - * @param {number} times The number of parantheses. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {boolean} `true` if the node is parenthesized the given times. - */ -/** - * Check whether a given node is parenthesized or not. - * @param {Node} node The AST node to check. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {boolean} `true` if the node is parenthesized. - */ -function isParenthesized( - timesOrNode, - nodeOrSourceCode, - optionalSourceCode, -) { - let times, node, sourceCode, maybeLeftParen, maybeRightParen; - if (typeof timesOrNode === "number") { - times = timesOrNode | 0; - node = nodeOrSourceCode; - sourceCode = optionalSourceCode; - if (!(times >= 1)) { - throw new TypeError("'times' should be a positive integer.") - } - } else { - times = 1; - node = timesOrNode; - sourceCode = nodeOrSourceCode; - } - - if ( - node == null || - // `Program` can't be parenthesized - node.parent == null || - // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}` - (node.parent.type === "CatchClause" && node.parent.param === node) - ) { - return false - } - - maybeLeftParen = maybeRightParen = node; - do { - maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen); - maybeRightParen = sourceCode.getTokenAfter(maybeRightParen); - } while ( - maybeLeftParen != null && - maybeRightParen != null && - isOpeningParenToken(maybeLeftParen) && - isClosingParenToken(maybeRightParen) && - // Avoid false positive such as `if (a) {}` - maybeLeftParen !== getParentSyntaxParen(node, sourceCode) && - --times > 0 - ) - - return times === 0 -} - -/** - * @author Toru Nagashima - * See LICENSE file in root directory for full license. - */ - -const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu; - -/** @type {WeakMap} */ -const internal = new WeakMap(); - -/** - * Check whether a given character is escaped or not. - * @param {string} str The string to check. - * @param {number} index The location of the character to check. - * @returns {boolean} `true` if the character is escaped. - */ -function isEscaped(str, index) { - let escaped = false; - for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) { - escaped = !escaped; - } - return escaped -} - -/** - * Replace a given string by a given matcher. - * @param {PatternMatcher} matcher The pattern matcher. - * @param {string} str The string to be replaced. - * @param {string} replacement The new substring to replace each matched part. - * @returns {string} The replaced string. - */ -function replaceS(matcher, str, replacement) { - const chunks = []; - let index = 0; - - /** @type {RegExpExecArray} */ - let match = null; - - /** - * @param {string} key The placeholder. - * @returns {string} The replaced string. - */ - function replacer(key) { - switch (key) { - case "$$": - return "$" - case "$&": - return match[0] - case "$`": - return str.slice(0, match.index) - case "$'": - return str.slice(match.index + match[0].length) - default: { - const i = key.slice(1); - if (i in match) { - return match[i] - } - return key - } - } - } - - for (match of matcher.execAll(str)) { - chunks.push(str.slice(index, match.index)); - chunks.push(replacement.replace(placeholder, replacer)); - index = match.index + match[0].length; - } - chunks.push(str.slice(index)); - - return chunks.join("") -} - -/** - * Replace a given string by a given matcher. - * @param {PatternMatcher} matcher The pattern matcher. - * @param {string} str The string to be replaced. - * @param {(...strs[])=>string} replace The function to replace each matched part. - * @returns {string} The replaced string. - */ -function replaceF(matcher, str, replace) { - const chunks = []; - let index = 0; - - for (const match of matcher.execAll(str)) { - chunks.push(str.slice(index, match.index)); - chunks.push(String(replace(...match, match.index, match.input))); - index = match.index + match[0].length; - } - chunks.push(str.slice(index)); - - return chunks.join("") -} - -/** - * The class to find patterns as considering escape sequences. - */ -class PatternMatcher { - /** - * Initialize this matcher. - * @param {RegExp} pattern The pattern to match. - * @param {{escaped:boolean}} options The options. - */ - constructor(pattern, { escaped = false } = {}) { - if (!(pattern instanceof RegExp)) { - throw new TypeError("'pattern' should be a RegExp instance.") - } - if (!pattern.flags.includes("g")) { - throw new Error("'pattern' should contains 'g' flag.") - } - - internal.set(this, { - pattern: new RegExp(pattern.source, pattern.flags), - escaped: Boolean(escaped), - }); - } - - /** - * Find the pattern in a given string. - * @param {string} str The string to find. - * @returns {IterableIterator} The iterator which iterate the matched information. - */ - *execAll(str) { - const { pattern, escaped } = internal.get(this); - let match = null; - let lastIndex = 0; - - pattern.lastIndex = 0; - while ((match = pattern.exec(str)) != null) { - if (escaped || !isEscaped(str, match.index)) { - lastIndex = pattern.lastIndex; - yield match; - pattern.lastIndex = lastIndex; - } - } - } - - /** - * Check whether the pattern is found in a given string. - * @param {string} str The string to check. - * @returns {boolean} `true` if the pattern was found in the string. - */ - test(str) { - const it = this.execAll(str); - const ret = it.next(); - return !ret.done - } - - /** - * Replace a given string. - * @param {string} str The string to be replaced. - * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`. - * @returns {string} The replaced string. - */ - [Symbol.replace](str, replacer) { - return typeof replacer === "function" - ? replaceF(this, String(str), replacer) - : replaceS(this, String(str), String(replacer)) - } -} - -const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u; -const has = Function.call.bind(Object.hasOwnProperty); - -const READ = Symbol("read"); -const CALL = Symbol("call"); -const CONSTRUCT = Symbol("construct"); -const ESM = Symbol("esm"); - -const requireCall = { require: { [CALL]: true } }; - -/** - * Check whether a given variable is modified or not. - * @param {Variable} variable The variable to check. - * @returns {boolean} `true` if the variable is modified. - */ -function isModifiedGlobal(variable) { - return ( - variable == null || - variable.defs.length !== 0 || - variable.references.some((r) => r.isWrite()) - ) -} - -/** - * Check if the value of a given node is passed through to the parent syntax as-is. - * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through. - * @param {Node} node A node to check. - * @returns {boolean} `true` if the node is passed through. - */ -function isPassThrough(node) { - const parent = node.parent; - - switch (parent && parent.type) { - case "ConditionalExpression": - return parent.consequent === node || parent.alternate === node - case "LogicalExpression": - return true - case "SequenceExpression": - return parent.expressions[parent.expressions.length - 1] === node - case "ChainExpression": - return true - - default: - return false - } -} - -/** - * The reference tracker. - */ -class ReferenceTracker { - /** - * Initialize this tracker. - * @param {Scope} globalScope The global scope. - * @param {object} [options] The options. - * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules. - * @param {string[]} [options.globalObjectNames=["global","globalThis","self","window"]] The variable names for Global Object. - */ - constructor( - globalScope, - { - mode = "strict", - globalObjectNames = ["global", "globalThis", "self", "window"], - } = {}, - ) { - this.variableStack = []; - this.globalScope = globalScope; - this.mode = mode; - this.globalObjectNames = globalObjectNames.slice(0); - } - - /** - * Iterate the references of global variables. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateGlobalReferences(traceMap) { - for (const key of Object.keys(traceMap)) { - const nextTraceMap = traceMap[key]; - const path = [key]; - const variable = this.globalScope.set.get(key); - - if (isModifiedGlobal(variable)) { - continue - } - - yield* this._iterateVariableReferences( - variable, - path, - nextTraceMap, - true, - ); - } - - for (const key of this.globalObjectNames) { - const path = []; - const variable = this.globalScope.set.get(key); - - if (isModifiedGlobal(variable)) { - continue - } - - yield* this._iterateVariableReferences( - variable, - path, - traceMap, - false, - ); - } - } - - /** - * Iterate the references of CommonJS modules. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateCjsReferences(traceMap) { - for (const { node } of this.iterateGlobalReferences(requireCall)) { - const key = getStringIfConstant(node.arguments[0]); - if (key == null || !has(traceMap, key)) { - continue - } - - const nextTraceMap = traceMap[key]; - const path = [key]; - - if (nextTraceMap[READ]) { - yield { - node, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iteratePropertyReferences(node, path, nextTraceMap); - } - } - - /** - * Iterate the references of ES modules. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *iterateEsmReferences(traceMap) { - const programNode = this.globalScope.block; - - for (const node of programNode.body) { - if (!IMPORT_TYPE.test(node.type) || node.source == null) { - continue - } - const moduleId = node.source.value; - - if (!has(traceMap, moduleId)) { - continue - } - const nextTraceMap = traceMap[moduleId]; - const path = [moduleId]; - - if (nextTraceMap[READ]) { - yield { node, path, type: READ, info: nextTraceMap[READ] }; - } - - if (node.type === "ExportAllDeclaration") { - for (const key of Object.keys(nextTraceMap)) { - const exportTraceMap = nextTraceMap[key]; - if (exportTraceMap[READ]) { - yield { - node, - path: path.concat(key), - type: READ, - info: exportTraceMap[READ], - }; - } - } - } else { - for (const specifier of node.specifiers) { - const esm = has(nextTraceMap, ESM); - const it = this._iterateImportReferences( - specifier, - path, - esm - ? nextTraceMap - : this.mode === "legacy" - ? { default: nextTraceMap, ...nextTraceMap } - : { default: nextTraceMap }, - ); - - if (esm) { - yield* it; - } else { - for (const report of it) { - report.path = report.path.filter(exceptDefault); - if ( - report.path.length >= 2 || - report.type !== READ - ) { - yield report; - } - } - } - } - } - } - } - - /** - * Iterate the references for a given variable. - * @param {Variable} variable The variable to iterate that references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @param {boolean} shouldReport = The flag to report those references. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateVariableReferences(variable, path, traceMap, shouldReport) { - if (this.variableStack.includes(variable)) { - return - } - this.variableStack.push(variable); - try { - for (const reference of variable.references) { - if (!reference.isRead()) { - continue - } - const node = reference.identifier; - - if (shouldReport && traceMap[READ]) { - yield { node, path, type: READ, info: traceMap[READ] }; - } - yield* this._iteratePropertyReferences(node, path, traceMap); - } - } finally { - this.variableStack.pop(); - } - } - - /** - * Iterate the references for a given AST node. - * @param rootNode The AST node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - //eslint-disable-next-line complexity - *_iteratePropertyReferences(rootNode, path, traceMap) { - let node = rootNode; - while (isPassThrough(node)) { - node = node.parent; - } - - const parent = node.parent; - if (parent.type === "MemberExpression") { - if (parent.object === node) { - const key = getPropertyName(parent); - if (key == null || !has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: parent, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iteratePropertyReferences( - parent, - path, - nextTraceMap, - ); - } - return - } - if (parent.type === "CallExpression") { - if (parent.callee === node && traceMap[CALL]) { - yield { node: parent, path, type: CALL, info: traceMap[CALL] }; - } - return - } - if (parent.type === "NewExpression") { - if (parent.callee === node && traceMap[CONSTRUCT]) { - yield { - node: parent, - path, - type: CONSTRUCT, - info: traceMap[CONSTRUCT], - }; - } - return - } - if (parent.type === "AssignmentExpression") { - if (parent.right === node) { - yield* this._iterateLhsReferences(parent.left, path, traceMap); - yield* this._iteratePropertyReferences(parent, path, traceMap); - } - return - } - if (parent.type === "AssignmentPattern") { - if (parent.right === node) { - yield* this._iterateLhsReferences(parent.left, path, traceMap); - } - return - } - if (parent.type === "VariableDeclarator") { - if (parent.init === node) { - yield* this._iterateLhsReferences(parent.id, path, traceMap); - } - } - } - - /** - * Iterate the references for a given Pattern node. - * @param {Node} patternNode The Pattern node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateLhsReferences(patternNode, path, traceMap) { - if (patternNode.type === "Identifier") { - const variable = findVariable(this.globalScope, patternNode); - if (variable != null) { - yield* this._iterateVariableReferences( - variable, - path, - traceMap, - false, - ); - } - return - } - if (patternNode.type === "ObjectPattern") { - for (const property of patternNode.properties) { - const key = getPropertyName(property); - - if (key == null || !has(traceMap, key)) { - continue - } - - const nextPath = path.concat(key); - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: property, - path: nextPath, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iterateLhsReferences( - property.value, - nextPath, - nextTraceMap, - ); - } - return - } - if (patternNode.type === "AssignmentPattern") { - yield* this._iterateLhsReferences(patternNode.left, path, traceMap); - } - } - - /** - * Iterate the references for a given ModuleSpecifier node. - * @param {Node} specifierNode The ModuleSpecifier node to iterate references. - * @param {string[]} path The current path. - * @param {object} traceMap The trace map. - * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references. - */ - *_iterateImportReferences(specifierNode, path, traceMap) { - const type = specifierNode.type; - - if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") { - const key = - type === "ImportDefaultSpecifier" - ? "default" - : specifierNode.imported.name; - if (!has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: specifierNode, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - yield* this._iterateVariableReferences( - findVariable(this.globalScope, specifierNode.local), - path, - nextTraceMap, - false, - ); - - return - } - - if (type === "ImportNamespaceSpecifier") { - yield* this._iterateVariableReferences( - findVariable(this.globalScope, specifierNode.local), - path, - traceMap, - false, - ); - return - } - - if (type === "ExportSpecifier") { - const key = specifierNode.local.name; - if (!has(traceMap, key)) { - return - } - - path = path.concat(key); //eslint-disable-line no-param-reassign - const nextTraceMap = traceMap[key]; - if (nextTraceMap[READ]) { - yield { - node: specifierNode, - path, - type: READ, - info: nextTraceMap[READ], - }; - } - } - } -} - -ReferenceTracker.READ = READ; -ReferenceTracker.CALL = CALL; -ReferenceTracker.CONSTRUCT = CONSTRUCT; -ReferenceTracker.ESM = ESM; - -/** - * This is a predicate function for Array#filter. - * @param {string} name A name part. - * @param {number} index The index of the name. - * @returns {boolean} `false` if it's default. - */ -function exceptDefault(name, index) { - return !(index === 1 && name === "default") -} - -var index = { - CALL, - CONSTRUCT, - ESM, - findVariable, - getFunctionHeadLocation, - getFunctionNameWithKind, - getInnermostScope, - getPropertyName, - getStaticValue, - getStringIfConstant, - hasSideEffect, - isArrowToken, - isClosingBraceToken, - isClosingBracketToken, - isClosingParenToken, - isColonToken, - isCommaToken, - isCommentToken, - isNotArrowToken, - isNotClosingBraceToken, - isNotClosingBracketToken, - isNotClosingParenToken, - isNotColonToken, - isNotCommaToken, - isNotCommentToken, - isNotOpeningBraceToken, - isNotOpeningBracketToken, - isNotOpeningParenToken, - isNotSemicolonToken, - isOpeningBraceToken, - isOpeningBracketToken, - isOpeningParenToken, - isParenthesized, - isSemicolonToken, - PatternMatcher, - READ, - ReferenceTracker, -}; - -export { CALL, CONSTRUCT, ESM, PatternMatcher, READ, ReferenceTracker, index as default, findVariable, getFunctionHeadLocation, getFunctionNameWithKind, getInnermostScope, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isParenthesized, isSemicolonToken }; -//# sourceMappingURL=index.mjs.map diff --git a/graphql/node_modules/@eslint-community/eslint-utils/index.mjs.map b/graphql/node_modules/@eslint-community/eslint-utils/index.mjs.map deleted file mode 100644 index 24ffb8e8..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["src/get-innermost-scope.mjs","src/find-variable.mjs","src/token-predicate.mjs","src/get-function-head-location.mjs","src/get-static-value.mjs","src/get-string-if-constant.mjs","src/get-property-name.mjs","src/get-function-name-with-kind.mjs","src/has-side-effect.mjs","src/is-parenthesized.mjs","src/pattern-matcher.mjs","src/reference-tracker.mjs","src/index.mjs"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope.mjs\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Negate the result of `this` calling.\n * @param {Token} token The token to check.\n * @returns {boolean} `true` if the result of `this(token)` is `false`.\n */\nfunction negate0(token) {\n return !this(token) //eslint-disable-line no-invalid-this\n}\n\n/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return negate0.bind(f)\n}\n\n/**\n * Checks if the given token is a PunctuatorToken with the given value\n * @param {Token} token - The token to check.\n * @param {string} value - The value to check.\n * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.\n */\nfunction isPunctuatorTokenWithValue(token, value) {\n return token.type === \"Punctuator\" && token.value === value\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return isPunctuatorTokenWithValue(token, \"=>\")\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return isPunctuatorTokenWithValue(token, \",\")\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return isPunctuatorTokenWithValue(token, \";\")\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return isPunctuatorTokenWithValue(token, \":\")\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return isPunctuatorTokenWithValue(token, \"(\")\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return isPunctuatorTokenWithValue(token, \")\")\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"[\")\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"]\")\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"{\")\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"}\")\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return [\"Block\", \"Line\", \"Shebang\"].includes(token.type)\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\" ||\n parent.type === \"PropertyDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: { ...start },\n end: { ...end },\n }\n}\n","/* globals globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable.mjs\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ]),\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n Array.of,\n Array.prototype.at,\n Array.prototype.concat,\n Array.prototype.entries,\n Array.prototype.every,\n Array.prototype.filter,\n Array.prototype.find,\n Array.prototype.findIndex,\n Array.prototype.flat,\n Array.prototype.includes,\n Array.prototype.indexOf,\n Array.prototype.join,\n Array.prototype.keys,\n Array.prototype.lastIndexOf,\n Array.prototype.slice,\n Array.prototype.some,\n Array.prototype.toString,\n Array.prototype.values,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n Map,\n Map.prototype.entries,\n Map.prototype.get,\n Map.prototype.has,\n Map.prototype.keys,\n Map.prototype.values,\n ...Object.getOwnPropertyNames(Math)\n .filter((k) => k !== \"random\")\n .map((k) => Math[k])\n .filter((f) => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Number.prototype.toExponential,\n Number.prototype.toFixed,\n Number.prototype.toPrecision,\n Number.prototype.toString,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n Set,\n Set.prototype.entries,\n Set.prototype.has,\n Set.prototype.keys,\n Set.prototype.values,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n String.prototype.at,\n String.prototype.charAt,\n String.prototype.charCodeAt,\n String.prototype.codePointAt,\n String.prototype.concat,\n String.prototype.endsWith,\n String.prototype.includes,\n String.prototype.indexOf,\n String.prototype.lastIndexOf,\n String.prototype.normalize,\n String.prototype.padEnd,\n String.prototype.padStart,\n String.prototype.slice,\n String.prototype.startsWith,\n String.prototype.substr,\n String.prototype.substring,\n String.prototype.toLowerCase,\n String.prototype.toString,\n String.prototype.toUpperCase,\n String.prototype.trim,\n String.prototype.trimEnd,\n String.prototype.trimLeft,\n String.prototype.trimRight,\n String.prototype.trimStart,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter((f) => typeof f === \"function\"),\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/** @type {ReadonlyArray]>} */\nconst getterAllowed = [\n [Map, new Set([\"size\"])],\n [\n RegExp,\n new Set([\n \"dotAll\",\n \"flags\",\n \"global\",\n \"hasIndices\",\n \"ignoreCase\",\n \"multiline\",\n \"source\",\n \"sticky\",\n \"unicode\",\n ]),\n ],\n [Set, new Set([\"size\"])],\n]\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\n/**\n * Returns whether the given variable is never written to after initialization.\n * @param {import(\"eslint\").Scope.Variable} variable\n * @returns {boolean}\n */\nfunction isEffectivelyConst(variable) {\n const refs = variable.references\n\n const inits = refs.filter((r) => r.init).length\n const reads = refs.filter((r) => r.isReadOnly()).length\n if (inits === 1 && reads + inits === refs.length) {\n // there is only one init and all other references only read\n return true\n }\n return false\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: left.value ** right.value }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n if (calleeNode.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(calleeNode.object, initialScope)\n if (object != null) {\n if (\n object.value == null &&\n (object.optional || node.optional)\n ) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(\n calleeNode,\n initialScope,\n )\n\n if (property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n if (callee.value == null && node.optional) {\n return { value: undefined, optional: true }\n }\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.type === \"Variable\" &&\n (def.parent.kind === \"const\" ||\n isEffectivelyConst(variable)) &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false) ||\n (node.operator === \"??\" && left.value != null)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(node.object, initialScope)\n if (object != null) {\n if (object.value == null && (object.optional || node.optional)) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(node, initialScope)\n\n if (property != null) {\n if (!isGetter(object.value, property.value)) {\n return { value: object.value[property.value] }\n }\n\n for (const [classFn, allowed] of getterAllowed) {\n if (\n object.value instanceof classFn &&\n allowed.has(property.value)\n ) {\n return { value: object.value[property.value] }\n }\n }\n }\n }\n return null\n },\n\n ChainExpression(node, initialScope) {\n const expression = getStaticValueR(node.expression, initialScope)\n if (expression != null) {\n return { value: expression.value }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = getStaticPropertyNameValue(\n propertyNode,\n initialScope,\n )\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope,\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope,\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map((q) => q.value.cooked)\n strings.raw = node.quasi.quasis.map((q) => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the static value of property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.\n */\nfunction getStaticPropertyNameValue(node, initialScope) {\n const nameNode = node.type === \"Property\" ? node.key : node.property\n\n if (node.computed) {\n return getStaticValueR(nameNode, initialScope)\n }\n\n if (nameNode.type === \"Identifier\") {\n return { value: nameNode.name }\n }\n\n if (nameNode.type === \"Literal\") {\n if (nameNode.bigint) {\n return { value: nameNode.bigint }\n }\n return { value: String(nameNode.value) }\n }\n\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value.mjs\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n case \"PropertyDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n if (node.key.type === \"PrivateIdentifier\") {\n return null\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name.mjs\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.\n * @returns {string} The name and kind of the function node.\n */\n// eslint-disable-next-line complexity\nexport function getFunctionNameWithKind(node, sourceCode) {\n const parent = node.parent\n const tokens = []\n const isObjectMethod = parent.type === \"Property\" && parent.value === node\n const isClassMethod =\n parent.type === \"MethodDefinition\" && parent.value === node\n const isClassFieldMethod =\n parent.type === \"PropertyDefinition\" && parent.value === node\n\n // Modifiers.\n if (isClassMethod || isClassFieldMethod) {\n if (parent.static) {\n tokens.push(\"static\")\n }\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(\"private\")\n }\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n // Kinds.\n if (isObjectMethod || isClassMethod) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else if (isClassFieldMethod) {\n tokens.push(\"method\")\n } else {\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\")\n }\n tokens.push(\"function\")\n }\n\n // Names.\n if (isObjectMethod || isClassMethod || isClassFieldMethod) {\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(`#${parent.key.name}`)\n } else {\n const name = getPropertyName(parent)\n if (name) {\n tokens.push(`'${name}'`)\n } else if (sourceCode) {\n const keyText = sourceCode.getText(parent.key)\n if (!keyText.includes(\"\\n\")) {\n tokens.push(`[${keyText}]`)\n }\n }\n }\n } else if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else if (\n parent.type === \"VariableDeclarator\" &&\n parent.id &&\n parent.id.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.id.name}'`)\n } else if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left &&\n parent.left.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.left.name}'`)\n } else if (\n parent.type === \"ExportDefaultDeclaration\" &&\n parent.declaration === node\n ) {\n tokens.push(\"'default'\")\n }\n\n return tokens.join(\" \")\n}\n","import { getKeys, KEYS } from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ]),\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(x) {\n return x !== null && typeof x === \"object\" && typeof x.type === \"string\"\n}\n\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n isNode(element) &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (\n isNode(value) &&\n this.$visit(value, options, visitorKeys)\n ) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n PropertyDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n }),\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {},\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || KEYS,\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode,\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (\n node == null ||\n // `Program` can't be parenthesized\n node.parent == null ||\n // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`\n (node.parent.type === \"CatchClause\" && node.parent.param === node)\n ) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some((r) => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n case \"ChainExpression\":\n return true\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"globalThis\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"globalThis\", \"self\", \"window\"],\n } = {},\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true,\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? { default: nextTraceMap, ...nextTraceMap }\n : { default: nextTraceMap },\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap,\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap,\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false,\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false,\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location.mjs\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind.mjs\"\nimport { getInnermostScope } from \"./get-innermost-scope.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStaticValue } from \"./get-static-value.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\nimport { hasSideEffect } from \"./has-side-effect.mjs\"\nimport { isParenthesized } from \"./is-parenthesized.mjs\"\nimport { PatternMatcher } from \"./pattern-matcher.mjs\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker.mjs\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate.mjs\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;AACtD,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;AAClC;AACA,IAAI,IAAI,KAAK,GAAG,aAAY;AAC5B,IAAI,IAAI,KAAK,GAAG,MAAK;AACrB,IAAI,GAAG;AACP,QAAQ,KAAK,GAAG,MAAK;AACrB,QAAQ,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE;AACpD,YAAY,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAA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G;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;AACpC,IAAI,OAAO,EAAE,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,SAAS,CAAC;AAC/C;;ACvZA,YAAe;AACf,IAAI,IAAI;AACR,IAAI,SAAS;AACb,IAAI,GAAG;AACP,IAAI,YAAY;AAChB,IAAI,uBAAuB;AAC3B,IAAI,uBAAuB;AAC3B,IAAI,iBAAiB;AACrB,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,mBAAmB;AACvB,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,iBAAiB;AACrB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,mBAAmB;AACvB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB;;;;"} \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE deleted file mode 100644 index 17a25538..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md deleted file mode 100644 index cab81032..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# eslint-visitor-keys - -[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys) -[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys) -[![Build Status](https://github.com/eslint/eslint-visitor-keys/workflows/CI/badge.svg)](https://github.com/eslint/eslint-visitor-keys/actions) - -Constants and utilities about visitor keys to traverse AST. - -## 💿 Installation - -Use [npm] to install. - -```bash -$ npm install eslint-visitor-keys -``` - -### Requirements - -- [Node.js] `^12.22.0`, `^14.17.0`, or `>=16.0.0` - - -## 📖 Usage - -To use in an ESM file: - -```js -import * as evk from "eslint-visitor-keys" -``` - -To use in a CommonJS file: - -```js -const evk = require("eslint-visitor-keys") -``` - -### evk.KEYS - -> type: `{ [type: string]: string[] | undefined }` - -Visitor keys. This keys are frozen. - -This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes. - -For example: - -``` -console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"] -``` - -### evk.getKeys(node) - -> type: `(node: object) => string[]` - -Get the visitor keys of a given AST node. - -This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`. - -This will be used to traverse unknown nodes. - -For example: - -```js -const node = { - type: "AssignmentExpression", - left: { type: "Identifier", name: "foo" }, - right: { type: "Literal", value: 0 } -} -console.log(evk.getKeys(node)) // → ["type", "left", "right"] -``` - -### evk.unionWith(additionalKeys) - -> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }` - -Make the union set with `evk.KEYS` and the given keys. - -- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that. -- It removes duplicated keys as keeping the first one. - -For example: - -```js -console.log(evk.unionWith({ - MethodDefinition: ["decorators"] -})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... } -``` - -## 📰 Change log - -See [GitHub releases](https://github.com/eslint/eslint-visitor-keys/releases). - -## 🍻 Contributing - -Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/). - -### Development commands - -- `npm test` runs tests and measures code coverage. -- `npm run lint` checks source codes with ESLint. -- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. - - -[npm]: https://www.npmjs.com/ -[Node.js]: https://nodejs.org/ -[ESTree]: https://github.com/estree/estree diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs deleted file mode 100644 index 00f91bcc..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +++ /dev/null @@ -1,384 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -/** - * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys - */ - -/** - * @type {VisitorKeys} - */ -const KEYS = { - ArrayExpression: [ - "elements" - ], - ArrayPattern: [ - "elements" - ], - ArrowFunctionExpression: [ - "params", - "body" - ], - AssignmentExpression: [ - "left", - "right" - ], - AssignmentPattern: [ - "left", - "right" - ], - AwaitExpression: [ - "argument" - ], - BinaryExpression: [ - "left", - "right" - ], - BlockStatement: [ - "body" - ], - BreakStatement: [ - "label" - ], - CallExpression: [ - "callee", - "arguments" - ], - CatchClause: [ - "param", - "body" - ], - ChainExpression: [ - "expression" - ], - ClassBody: [ - "body" - ], - ClassDeclaration: [ - "id", - "superClass", - "body" - ], - ClassExpression: [ - "id", - "superClass", - "body" - ], - ConditionalExpression: [ - "test", - "consequent", - "alternate" - ], - ContinueStatement: [ - "label" - ], - DebuggerStatement: [], - DoWhileStatement: [ - "body", - "test" - ], - EmptyStatement: [], - ExperimentalRestProperty: [ - "argument" - ], - ExperimentalSpreadProperty: [ - "argument" - ], - ExportAllDeclaration: [ - "exported", - "source" - ], - ExportDefaultDeclaration: [ - "declaration" - ], - ExportNamedDeclaration: [ - "declaration", - "specifiers", - "source" - ], - ExportSpecifier: [ - "exported", - "local" - ], - ExpressionStatement: [ - "expression" - ], - ForInStatement: [ - "left", - "right", - "body" - ], - ForOfStatement: [ - "left", - "right", - "body" - ], - ForStatement: [ - "init", - "test", - "update", - "body" - ], - FunctionDeclaration: [ - "id", - "params", - "body" - ], - FunctionExpression: [ - "id", - "params", - "body" - ], - Identifier: [], - IfStatement: [ - "test", - "consequent", - "alternate" - ], - ImportDeclaration: [ - "specifiers", - "source" - ], - ImportDefaultSpecifier: [ - "local" - ], - ImportExpression: [ - "source" - ], - ImportNamespaceSpecifier: [ - "local" - ], - ImportSpecifier: [ - "imported", - "local" - ], - JSXAttribute: [ - "name", - "value" - ], - JSXClosingElement: [ - "name" - ], - JSXClosingFragment: [], - JSXElement: [ - "openingElement", - "children", - "closingElement" - ], - JSXEmptyExpression: [], - JSXExpressionContainer: [ - "expression" - ], - JSXFragment: [ - "openingFragment", - "children", - "closingFragment" - ], - JSXIdentifier: [], - JSXMemberExpression: [ - "object", - "property" - ], - JSXNamespacedName: [ - "namespace", - "name" - ], - JSXOpeningElement: [ - "name", - "attributes" - ], - JSXOpeningFragment: [], - JSXSpreadAttribute: [ - "argument" - ], - JSXSpreadChild: [ - "expression" - ], - JSXText: [], - LabeledStatement: [ - "label", - "body" - ], - Literal: [], - LogicalExpression: [ - "left", - "right" - ], - MemberExpression: [ - "object", - "property" - ], - MetaProperty: [ - "meta", - "property" - ], - MethodDefinition: [ - "key", - "value" - ], - NewExpression: [ - "callee", - "arguments" - ], - ObjectExpression: [ - "properties" - ], - ObjectPattern: [ - "properties" - ], - PrivateIdentifier: [], - Program: [ - "body" - ], - Property: [ - "key", - "value" - ], - PropertyDefinition: [ - "key", - "value" - ], - RestElement: [ - "argument" - ], - ReturnStatement: [ - "argument" - ], - SequenceExpression: [ - "expressions" - ], - SpreadElement: [ - "argument" - ], - StaticBlock: [ - "body" - ], - Super: [], - SwitchCase: [ - "test", - "consequent" - ], - SwitchStatement: [ - "discriminant", - "cases" - ], - TaggedTemplateExpression: [ - "tag", - "quasi" - ], - TemplateElement: [], - TemplateLiteral: [ - "quasis", - "expressions" - ], - ThisExpression: [], - ThrowStatement: [ - "argument" - ], - TryStatement: [ - "block", - "handler", - "finalizer" - ], - UnaryExpression: [ - "argument" - ], - UpdateExpression: [ - "argument" - ], - VariableDeclaration: [ - "declarations" - ], - VariableDeclarator: [ - "id", - "init" - ], - WhileStatement: [ - "test", - "body" - ], - WithStatement: [ - "object", - "body" - ], - YieldExpression: [ - "argument" - ] -}; - -// Types. -const NODE_TYPES = Object.keys(KEYS); - -// Freeze the keys. -for (const type of NODE_TYPES) { - Object.freeze(KEYS[type]); -} -Object.freeze(KEYS); - -/** - * @author Toru Nagashima - * See LICENSE file in root directory for full license. - */ - -/** - * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys - */ - -// List to ignore keys. -const KEY_BLACKLIST = new Set([ - "parent", - "leadingComments", - "trailingComments" -]); - -/** - * Check whether a given key should be used or not. - * @param {string} key The key to check. - * @returns {boolean} `true` if the key should be used. - */ -function filterKey(key) { - return !KEY_BLACKLIST.has(key) && key[0] !== "_"; -} - -/** - * Get visitor keys of a given node. - * @param {object} node The AST node to get keys. - * @returns {readonly string[]} Visitor keys of the node. - */ -function getKeys(node) { - return Object.keys(node).filter(filterKey); -} - -// Disable valid-jsdoc rule because it reports syntax error on the type of @returns. -// eslint-disable-next-line valid-jsdoc -/** - * Make the union set with `KEYS` and given keys. - * @param {VisitorKeys} additionalKeys The additional keys. - * @returns {VisitorKeys} The union set. - */ -function unionWith(additionalKeys) { - const retv = /** @type {{ - [type: string]: ReadonlyArray - }} */ (Object.assign({}, KEYS)); - - for (const type of Object.keys(additionalKeys)) { - if (Object.prototype.hasOwnProperty.call(retv, type)) { - const keys = new Set(additionalKeys[type]); - - for (const key of retv[type]) { - keys.add(key); - } - - retv[type] = Object.freeze(Array.from(keys)); - } else { - retv[type] = Object.freeze(Array.from(additionalKeys[type])); - } - } - - return Object.freeze(retv); -} - -exports.KEYS = KEYS; -exports.getKeys = getKeys; -exports.unionWith = unionWith; diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts deleted file mode 100644 index c7c28ed3..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +++ /dev/null @@ -1,27 +0,0 @@ -type VisitorKeys$1 = { - readonly [type: string]: readonly string[]; -}; -/** - * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys - */ -/** - * @type {VisitorKeys} - */ -declare const KEYS: VisitorKeys$1; - -/** - * Get visitor keys of a given node. - * @param {object} node The AST node to get keys. - * @returns {readonly string[]} Visitor keys of the node. - */ -declare function getKeys(node: object): readonly string[]; -/** - * Make the union set with `KEYS` and given keys. - * @param {VisitorKeys} additionalKeys The additional keys. - * @returns {VisitorKeys} The union set. - */ -declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys; - -type VisitorKeys = VisitorKeys$1; - -export { KEYS, VisitorKeys, getKeys, unionWith }; diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts deleted file mode 100644 index 46bd87e2..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Get visitor keys of a given node. - * @param {object} node The AST node to get keys. - * @returns {readonly string[]} Visitor keys of the node. - */ -export function getKeys(node: object): readonly string[]; -/** - * Make the union set with `KEYS` and given keys. - * @param {VisitorKeys} additionalKeys The additional keys. - * @returns {VisitorKeys} The union set. - */ -export function unionWith(additionalKeys: VisitorKeys): VisitorKeys; -export { KEYS }; -export type VisitorKeys = import('./visitor-keys.js').VisitorKeys; -import KEYS from "./visitor-keys.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts deleted file mode 100644 index 57a952c5..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export default KEYS; -export type VisitorKeys = { - readonly [type: string]: readonly string[]; -}; -/** - * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys - */ -/** - * @type {VisitorKeys} - */ -declare const KEYS: VisitorKeys; -//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js deleted file mode 100644 index 3622816d..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @author Toru Nagashima - * See LICENSE file in root directory for full license. - */ -import KEYS from "./visitor-keys.js"; - -/** - * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys - */ - -// List to ignore keys. -const KEY_BLACKLIST = new Set([ - "parent", - "leadingComments", - "trailingComments" -]); - -/** - * Check whether a given key should be used or not. - * @param {string} key The key to check. - * @returns {boolean} `true` if the key should be used. - */ -function filterKey(key) { - return !KEY_BLACKLIST.has(key) && key[0] !== "_"; -} - -/** - * Get visitor keys of a given node. - * @param {object} node The AST node to get keys. - * @returns {readonly string[]} Visitor keys of the node. - */ -export function getKeys(node) { - return Object.keys(node).filter(filterKey); -} - -// Disable valid-jsdoc rule because it reports syntax error on the type of @returns. -// eslint-disable-next-line valid-jsdoc -/** - * Make the union set with `KEYS` and given keys. - * @param {VisitorKeys} additionalKeys The additional keys. - * @returns {VisitorKeys} The union set. - */ -export function unionWith(additionalKeys) { - const retv = /** @type {{ - [type: string]: ReadonlyArray - }} */ (Object.assign({}, KEYS)); - - for (const type of Object.keys(additionalKeys)) { - if (Object.prototype.hasOwnProperty.call(retv, type)) { - const keys = new Set(additionalKeys[type]); - - for (const key of retv[type]) { - keys.add(key); - } - - retv[type] = Object.freeze(Array.from(keys)); - } else { - retv[type] = Object.freeze(Array.from(additionalKeys[type])); - } - } - - return Object.freeze(retv); -} - -export { KEYS }; diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js deleted file mode 100644 index ccf2b1f9..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js +++ /dev/null @@ -1,315 +0,0 @@ -/** - * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys - */ - -/** - * @type {VisitorKeys} - */ -const KEYS = { - ArrayExpression: [ - "elements" - ], - ArrayPattern: [ - "elements" - ], - ArrowFunctionExpression: [ - "params", - "body" - ], - AssignmentExpression: [ - "left", - "right" - ], - AssignmentPattern: [ - "left", - "right" - ], - AwaitExpression: [ - "argument" - ], - BinaryExpression: [ - "left", - "right" - ], - BlockStatement: [ - "body" - ], - BreakStatement: [ - "label" - ], - CallExpression: [ - "callee", - "arguments" - ], - CatchClause: [ - "param", - "body" - ], - ChainExpression: [ - "expression" - ], - ClassBody: [ - "body" - ], - ClassDeclaration: [ - "id", - "superClass", - "body" - ], - ClassExpression: [ - "id", - "superClass", - "body" - ], - ConditionalExpression: [ - "test", - "consequent", - "alternate" - ], - ContinueStatement: [ - "label" - ], - DebuggerStatement: [], - DoWhileStatement: [ - "body", - "test" - ], - EmptyStatement: [], - ExperimentalRestProperty: [ - "argument" - ], - ExperimentalSpreadProperty: [ - "argument" - ], - ExportAllDeclaration: [ - "exported", - "source" - ], - ExportDefaultDeclaration: [ - "declaration" - ], - ExportNamedDeclaration: [ - "declaration", - "specifiers", - "source" - ], - ExportSpecifier: [ - "exported", - "local" - ], - ExpressionStatement: [ - "expression" - ], - ForInStatement: [ - "left", - "right", - "body" - ], - ForOfStatement: [ - "left", - "right", - "body" - ], - ForStatement: [ - "init", - "test", - "update", - "body" - ], - FunctionDeclaration: [ - "id", - "params", - "body" - ], - FunctionExpression: [ - "id", - "params", - "body" - ], - Identifier: [], - IfStatement: [ - "test", - "consequent", - "alternate" - ], - ImportDeclaration: [ - "specifiers", - "source" - ], - ImportDefaultSpecifier: [ - "local" - ], - ImportExpression: [ - "source" - ], - ImportNamespaceSpecifier: [ - "local" - ], - ImportSpecifier: [ - "imported", - "local" - ], - JSXAttribute: [ - "name", - "value" - ], - JSXClosingElement: [ - "name" - ], - JSXClosingFragment: [], - JSXElement: [ - "openingElement", - "children", - "closingElement" - ], - JSXEmptyExpression: [], - JSXExpressionContainer: [ - "expression" - ], - JSXFragment: [ - "openingFragment", - "children", - "closingFragment" - ], - JSXIdentifier: [], - JSXMemberExpression: [ - "object", - "property" - ], - JSXNamespacedName: [ - "namespace", - "name" - ], - JSXOpeningElement: [ - "name", - "attributes" - ], - JSXOpeningFragment: [], - JSXSpreadAttribute: [ - "argument" - ], - JSXSpreadChild: [ - "expression" - ], - JSXText: [], - LabeledStatement: [ - "label", - "body" - ], - Literal: [], - LogicalExpression: [ - "left", - "right" - ], - MemberExpression: [ - "object", - "property" - ], - MetaProperty: [ - "meta", - "property" - ], - MethodDefinition: [ - "key", - "value" - ], - NewExpression: [ - "callee", - "arguments" - ], - ObjectExpression: [ - "properties" - ], - ObjectPattern: [ - "properties" - ], - PrivateIdentifier: [], - Program: [ - "body" - ], - Property: [ - "key", - "value" - ], - PropertyDefinition: [ - "key", - "value" - ], - RestElement: [ - "argument" - ], - ReturnStatement: [ - "argument" - ], - SequenceExpression: [ - "expressions" - ], - SpreadElement: [ - "argument" - ], - StaticBlock: [ - "body" - ], - Super: [], - SwitchCase: [ - "test", - "consequent" - ], - SwitchStatement: [ - "discriminant", - "cases" - ], - TaggedTemplateExpression: [ - "tag", - "quasi" - ], - TemplateElement: [], - TemplateLiteral: [ - "quasis", - "expressions" - ], - ThisExpression: [], - ThrowStatement: [ - "argument" - ], - TryStatement: [ - "block", - "handler", - "finalizer" - ], - UnaryExpression: [ - "argument" - ], - UpdateExpression: [ - "argument" - ], - VariableDeclaration: [ - "declarations" - ], - VariableDeclarator: [ - "id", - "init" - ], - WhileStatement: [ - "test", - "body" - ], - WithStatement: [ - "object", - "body" - ], - YieldExpression: [ - "argument" - ] -}; - -// Types. -const NODE_TYPES = Object.keys(KEYS); - -// Freeze the keys. -for (const type of NODE_TYPES) { - Object.freeze(KEYS[type]); -} -Object.freeze(KEYS); - -export default KEYS; diff --git a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json b/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json deleted file mode 100644 index b9d51ce0..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "eslint-visitor-keys", - "version": "3.4.3", - "description": "Constants and utilities about visitor keys to traverse AST.", - "type": "module", - "main": "dist/eslint-visitor-keys.cjs", - "types": "./dist/index.d.ts", - "exports": { - ".": [ - { - "import": "./lib/index.js", - "require": "./dist/eslint-visitor-keys.cjs" - }, - "./dist/eslint-visitor-keys.cjs" - ], - "./package.json": "./package.json" - }, - "files": [ - "dist/index.d.ts", - "dist/visitor-keys.d.ts", - "dist/eslint-visitor-keys.cjs", - "dist/eslint-visitor-keys.d.cts", - "lib" - ], - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "devDependencies": { - "@types/estree": "^0.0.51", - "@types/estree-jsx": "^0.0.1", - "@typescript-eslint/parser": "^5.14.0", - "c8": "^7.11.0", - "chai": "^4.3.6", - "eslint": "^7.29.0", - "eslint-config-eslint": "^7.0.0", - "eslint-plugin-jsdoc": "^35.4.0", - "eslint-plugin-node": "^11.1.0", - "eslint-release": "^3.2.0", - "esquery": "^1.4.0", - "json-diff": "^0.7.3", - "mocha": "^9.2.1", - "opener": "^1.5.2", - "rollup": "^2.70.0", - "rollup-plugin-dts": "^4.2.3", - "tsd": "^0.19.1", - "typescript": "^4.6.2" - }, - "scripts": { - "build": "npm run build:cjs && npm run build:types", - "build:cjs": "rollup -c", - "build:debug": "npm run build:cjs -- -m && npm run build:types", - "build:keys": "node tools/build-keys-from-ts", - "build:types": "tsc", - "lint": "eslint .", - "prepare": "npm run build", - "release:generate:latest": "eslint-generate-release", - "release:generate:alpha": "eslint-generate-prerelease alpha", - "release:generate:beta": "eslint-generate-prerelease beta", - "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release", - "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", - "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", - "test:types": "tsd" - }, - "repository": "eslint/eslint-visitor-keys", - "funding": "https://opencollective.com/eslint", - "keywords": [], - "author": "Toru Nagashima (https://github.com/mysticatea)", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/eslint/eslint-visitor-keys/issues" - }, - "homepage": "https://github.com/eslint/eslint-visitor-keys#readme" -} diff --git a/graphql/node_modules/@eslint-community/eslint-utils/package.json b/graphql/node_modules/@eslint-community/eslint-utils/package.json deleted file mode 100644 index c4ee587b..00000000 --- a/graphql/node_modules/@eslint-community/eslint-utils/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "@eslint-community/eslint-utils", - "version": "4.4.0", - "description": "Utilities for ESLint plugins.", - "keywords": [ - "eslint" - ], - "homepage": "https://github.com/eslint-community/eslint-utils#readme", - "bugs": { - "url": "https://github.com/eslint-community/eslint-utils/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/eslint-community/eslint-utils" - }, - "license": "MIT", - "author": "Toru Nagashima", - "sideEffects": false, - "exports": { - ".": { - "import": "./index.mjs", - "require": "./index.js" - }, - "./package.json": "./package.json" - }, - "main": "index", - "module": "index.mjs", - "files": [ - "index.*" - ], - "scripts": { - "prebuild": "npm run -s clean", - "build": "rollup -c", - "clean": "rimraf .nyc_output coverage index.*", - "coverage": "opener ./coverage/lcov-report/index.html", - "docs:build": "vitepress build docs", - "docs:watch": "vitepress dev docs", - "format": "npm run -s format:prettier -- --write", - "format:prettier": "prettier .", - "format:check": "npm run -s format:prettier -- --check", - "lint": "eslint .", - "test": "c8 mocha --reporter dot \"test/*.mjs\"", - "preversion": "npm test && npm run -s build", - "postversion": "git push && git push --tags", - "prewatch": "npm run -s clean", - "watch": "warun \"{src,test}/**/*.mjs\" -- npm run -s test:mocha" - }, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "devDependencies": { - "@eslint-community/eslint-plugin-mysticatea": "^15.2.0", - "c8": "^7.12.0", - "dot-prop": "^6.0.1", - "eslint": "^8.28.0", - "mocha": "^9.2.2", - "npm-run-all": "^4.1.5", - "opener": "^1.5.2", - "prettier": "2.8.4", - "rimraf": "^3.0.2", - "rollup": "^2.79.1", - "rollup-plugin-sourcemaps": "^0.6.3", - "semver": "^7.3.8", - "vitepress": "^1.0.0-alpha.40", - "warun": "^1.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } -} diff --git a/graphql/node_modules/@eslint-community/regexpp/LICENSE b/graphql/node_modules/@eslint-community/regexpp/LICENSE deleted file mode 100644 index 883ee1f6..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Toru Nagashima - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@eslint-community/regexpp/README.md b/graphql/node_modules/@eslint-community/regexpp/README.md deleted file mode 100644 index 9728af51..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/README.md +++ /dev/null @@ -1,177 +0,0 @@ -# @eslint-community/regexpp - -[![npm version](https://img.shields.io/npm/v/@eslint-community/regexpp.svg)](https://www.npmjs.com/package/@eslint-community/regexpp) -[![Downloads/month](https://img.shields.io/npm/dm/@eslint-community/regexpp.svg)](http://www.npmtrends.com/@eslint-community/regexpp) -[![Build Status](https://github.com/eslint-community/regexpp/workflows/CI/badge.svg)](https://github.com/eslint-community/regexpp/actions) -[![codecov](https://codecov.io/gh/eslint-community/regexpp/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/regexpp) - -A regular expression parser for ECMAScript. - -## 💿 Installation - -```bash -$ npm install @eslint-community/regexpp -``` - -- require Node@^12.0.0 || ^14.0.0 || >=16.0.0. - -## 📖 Usage - -```ts -import { - AST, - RegExpParser, - RegExpValidator, - RegExpVisitor, - parseRegExpLiteral, - validateRegExpLiteral, - visitRegExpAST -} from "@eslint-community/regexpp" -``` - -### parseRegExpLiteral(source, options?) - -Parse a given regular expression literal then make AST object. - -This is equivalent to `new RegExpParser(options).parseLiteral(source)`. - -- **Parameters:** - - `source` (`string | RegExp`) The source code to parse. - - `options?` ([`RegExpParser.Options`]) The options to parse. -- **Return:** - - The AST of the regular expression. - -### validateRegExpLiteral(source, options?) - -Validate a given regular expression literal. - -This is equivalent to `new RegExpValidator(options).validateLiteral(source)`. - -- **Parameters:** - - `source` (`string`) The source code to validate. - - `options?` ([`RegExpValidator.Options`]) The options to validate. - -### visitRegExpAST(ast, handlers) - -Visit each node of a given AST. - -This is equivalent to `new RegExpVisitor(handlers).visit(ast)`. - -- **Parameters:** - - `ast` ([`AST.Node`]) The AST to visit. - - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks. - -### RegExpParser - -#### new RegExpParser(options?) - -- **Parameters:** - - `options?` ([`RegExpParser.Options`]) The options to parse. - -#### parser.parseLiteral(source, start?, end?) - -Parse a regular expression literal. - -- **Parameters:** - - `source` (`string`) The source code to parse. E.g. `"/abc/g"`. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. -- **Return:** - - The AST of the regular expression. - -#### parser.parsePattern(source, start?, end?, flags?) - -Parse a regular expression pattern. - -- **Parameters:** - - `source` (`string`) The source code to parse. E.g. `"abc"`. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. - - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode. -- **Return:** - - The AST of the regular expression pattern. - -#### parser.parseFlags(source, start?, end?) - -Parse a regular expression flags. - -- **Parameters:** - - `source` (`string`) The source code to parse. E.g. `"gim"`. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. -- **Return:** - - The AST of the regular expression flags. - -### RegExpValidator - -#### new RegExpValidator(options) - -- **Parameters:** - - `options` ([`RegExpValidator.Options`]) The options to validate. - -#### validator.validateLiteral(source, start, end) - -Validate a regular expression literal. - -- **Parameters:** - - `source` (`string`) The source code to validate. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. - -#### validator.validatePattern(source, start, end, flags) - -Validate a regular expression pattern. - -- **Parameters:** - - `source` (`string`) The source code to validate. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. - - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode. - -#### validator.validateFlags(source, start, end) - -Validate a regular expression flags. - -- **Parameters:** - - `source` (`string`) The source code to validate. - - `start?` (`number`) The start index in the source code. Default is `0`. - - `end?` (`number`) The end index in the source code. Default is `source.length`. - -### RegExpVisitor - -#### new RegExpVisitor(handlers) - -- **Parameters:** - - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks. - -#### visitor.visit(ast) - -Validate a regular expression literal. - -- **Parameters:** - - `ast` ([`AST.Node`]) The AST to visit. - -## 📰 Changelog - -- [GitHub Releases](https://github.com/eslint-community/regexpp/releases) - -## 🍻 Contributing - -Welcome contributing! - -Please use GitHub's Issues/PRs. - -### Development Tools - -- `npm test` runs tests and measures coverage. -- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`. -- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`. -- `npm run lint` runs ESLint. -- `npm run update:test` updates test fixtures. -- `npm run update:ids` updates `src/unicode/ids.ts`. -- `npm run watch` runs tests with `--watch` option. - -[`AST.Node`]: src/ast.ts#L4 -[`RegExpParser.Options`]: src/parser.ts#L743 -[`RegExpValidator.Options`]: src/validator.ts#L220 -[`RegExpVisitor.Handlers`]: src/visitor.ts#L291 diff --git a/graphql/node_modules/@eslint-community/regexpp/index.d.ts b/graphql/node_modules/@eslint-community/regexpp/index.d.ts deleted file mode 100644 index 2c54145d..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/index.d.ts +++ /dev/null @@ -1,1079 +0,0 @@ -// Generated by dts-bundle v0.7.3 - -declare module "@eslint-community/regexpp" { - import * as AST from "@eslint-community/regexpp/ast"; - import { RegExpParser } from "@eslint-community/regexpp/parser"; - import { RegExpValidator } from "@eslint-community/regexpp/validator"; - import { RegExpVisitor } from "@eslint-community/regexpp/visitor"; - export { RegExpSyntaxError } from "@eslint-community/regexpp/regexp-syntax-error"; - export { AST, RegExpParser, RegExpValidator }; - /** - * Parse a given regular expression literal then make AST object. - * @param source The source code to parse. - * @param options The options to parse. - * @returns The AST of the regular expression. - */ - export function parseRegExpLiteral( - source: RegExp | string, - options?: RegExpParser.Options - ): AST.RegExpLiteral; - /** - * Validate a given regular expression literal. - * @param source The source code to validate. - * @param options The options to validate. - */ - export function validateRegExpLiteral( - source: string, - options?: RegExpValidator.Options - ): void; - export function visitRegExpAST( - node: AST.Node, - handlers: RegExpVisitor.Handlers - ): void; -} - -declare module "@eslint-community/regexpp/ast" { - /** - * The type which includes all nodes. - */ - export type Node = BranchNode | LeafNode; - /** - * The type which includes all branch nodes. - */ - export type BranchNode = - | Alternative - | CapturingGroup - | CharacterClass - | CharacterClassRange - | ClassIntersection - | ClassStringDisjunction - | ClassSubtraction - | ExpressionCharacterClass - | Group - | LookaroundAssertion - | Pattern - | Quantifier - | RegExpLiteral - | StringAlternative; - /** - * The type which includes all leaf nodes. - */ - export type LeafNode = - | Backreference - | BoundaryAssertion - | Character - | CharacterSet - | Flags; - /** - * The type which includes all atom nodes. - */ - export type Element = Assertion | QuantifiableElement | Quantifier; - /** - * The type which includes all atom nodes that Quantifier node can have as children. - */ - export type QuantifiableElement = - | Backreference - | CapturingGroup - | Character - | CharacterClass - | CharacterSet - | ExpressionCharacterClass - | Group - | LookaheadAssertion; - /** - * The type which includes all character class atom nodes. - */ - export type CharacterClassElement = - | ClassRangesCharacterClassElement - | UnicodeSetsCharacterClassElement; - export type ClassRangesCharacterClassElement = - | Character - | CharacterClassRange - | CharacterUnicodePropertyCharacterSet - | EscapeCharacterSet; - export type UnicodeSetsCharacterClassElement = - | Character - | CharacterClassRange - | ClassStringDisjunction - | EscapeCharacterSet - | ExpressionCharacterClass - | UnicodePropertyCharacterSet - | UnicodeSetsCharacterClass; - /** - * The type which defines common properties for all node types. - */ - export interface NodeBase { - /** The node type. */ - type: Node["type"]; - /** The parent node. */ - parent: Node["parent"]; - /** The 0-based index that this node starts. */ - start: number; - /** The 0-based index that this node ends. */ - end: number; - /** The raw text of this node. */ - raw: string; - } - /** - * The root node. - */ - export interface RegExpLiteral extends NodeBase { - type: "RegExpLiteral"; - parent: null; - pattern: Pattern; - flags: Flags; - } - /** - * The pattern. - */ - export interface Pattern extends NodeBase { - type: "Pattern"; - parent: RegExpLiteral | null; - alternatives: Alternative[]; - } - /** - * The alternative. - * E.g. `a|b` - */ - export interface Alternative extends NodeBase { - type: "Alternative"; - parent: CapturingGroup | Group | LookaroundAssertion | Pattern; - elements: Element[]; - } - /** - * The uncapturing group. - * E.g. `(?:ab)` - */ - export interface Group extends NodeBase { - type: "Group"; - parent: Alternative | Quantifier; - alternatives: Alternative[]; - } - /** - * The capturing group. - * E.g. `(ab)`, `(?ab)` - */ - export interface CapturingGroup extends NodeBase { - type: "CapturingGroup"; - parent: Alternative | Quantifier; - name: string | null; - alternatives: Alternative[]; - references: Backreference[]; - } - /** - * The lookaround assertion. - */ - export type LookaroundAssertion = LookaheadAssertion | LookbehindAssertion; - /** - * The lookahead assertion. - * E.g. `(?=ab)`, `(?!ab)` - */ - export interface LookaheadAssertion extends NodeBase { - type: "Assertion"; - parent: Alternative | Quantifier; - kind: "lookahead"; - negate: boolean; - alternatives: Alternative[]; - } - /** - * The lookbehind assertion. - * E.g. `(?<=ab)`, `(?` - */ - export type Backreference = AmbiguousBackreference | UnambiguousBackreference; - interface BaseBackreference extends NodeBase { - type: "Backreference"; - parent: Alternative | Quantifier; - ref: number | string; - ambiguous: boolean; - resolved: CapturingGroup | CapturingGroup[]; - } - export interface AmbiguousBackreference extends BaseBackreference { - ref: string; - ambiguous: true; - resolved: CapturingGroup[]; - } - export interface UnambiguousBackreference extends BaseBackreference { - ambiguous: false; - resolved: CapturingGroup; - } - /** - * The flags. - */ - export interface Flags extends NodeBase { - type: "Flags"; - parent: RegExpLiteral | null; - dotAll: boolean; - global: boolean; - hasIndices: boolean; - ignoreCase: boolean; - multiline: boolean; - sticky: boolean; - unicode: boolean; - unicodeSets: boolean; - } - export {}; -} - -declare module "@eslint-community/regexpp/parser" { - import type { - Flags, - RegExpLiteral, - Pattern, - } from "@eslint-community/regexpp/ast"; - import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions"; - export namespace RegExpParser { - /** - * The options for RegExpParser construction. - */ - interface Options { - /** - * The flag to disable Annex B syntax. Default is `false`. - */ - strict?: boolean; - /** - * ECMAScript version. Default is `2025`. - * - `2015` added `u` and `y` flags. - * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion, - * and Unicode Property Escape. - * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes. - * - `2022` added `d` flag. - * - `2023` added more valid Unicode Property Escapes. - * - `2024` added `v` flag. - * - `2025` added duplicate named capturing groups. - */ - ecmaVersion?: EcmaVersion; - } - } - export class RegExpParser { - /** - * Initialize this parser. - * @param options The options of parser. - */ - constructor(options?: RegExpParser.Options); - /** - * Parse a regular expression literal. E.g. "/abc/g" - * @param source The source code to parse. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @returns The AST of the given regular expression. - */ - parseLiteral(source: string, start?: number, end?: number): RegExpLiteral; - /** - * Parse a regular expression flags. E.g. "gim" - * @param source The source code to parse. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @returns The AST of the given flags. - */ - parseFlags(source: string, start?: number, end?: number): Flags; - /** - * Parse a regular expression pattern. E.g. "abc" - * @param source The source code to parse. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @param flags The flags. - * @returns The AST of the given pattern. - */ - parsePattern( - source: string, - start?: number, - end?: number, - flags?: { - unicode?: boolean; - unicodeSets?: boolean; - } - ): Pattern; - /** - * @deprecated Backward compatibility - * Use object `flags` instead of boolean `uFlag`. - * - * @param source The source code to parse. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @param uFlag The flag to set unicode mode. - * @returns The AST of the given pattern. - */ - parsePattern( - source: string, - start?: number, - end?: number, - uFlag?: boolean - ): Pattern; - } -} - -declare module "@eslint-community/regexpp/validator" { - import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions"; - export type RegExpValidatorSourceContext = { - readonly source: string; - readonly start: number; - readonly end: number; - readonly kind: "flags" | "literal" | "pattern"; - }; - export namespace RegExpValidator { - /** - * The options for RegExpValidator construction. - */ - interface Options { - /** - * The flag to disable Annex B syntax. Default is `false`. - */ - strict?: boolean; - /** - * ECMAScript version. Default is `2025`. - * - `2015` added `u` and `y` flags. - * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion, - * and Unicode Property Escape. - * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes. - * - `2022` added `d` flag. - * - `2023` added more valid Unicode Property Escapes. - * - `2024` added `v` flag. - * - `2025` added duplicate named capturing groups. - */ - ecmaVersion?: EcmaVersion; - /** - * A function that is called when the validator entered a RegExp literal. - * @param start The 0-based index of the first character. - */ - onLiteralEnter?: (start: number) => void; - /** - * A function that is called when the validator left a RegExp literal. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onLiteralLeave?: (start: number, end: number) => void; - /** - * A function that is called when the validator found flags. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param flags.global `g` flag. - * @param flags.ignoreCase `i` flag. - * @param flags.multiline `m` flag. - * @param flags.unicode `u` flag. - * @param flags.sticky `y` flag. - * @param flags.dotAll `s` flag. - * @param flags.hasIndices `d` flag. - * @param flags.unicodeSets `v` flag. - */ - onRegExpFlags?: ( - start: number, - end: number, - flags: { - global: boolean; - ignoreCase: boolean; - multiline: boolean; - unicode: boolean; - sticky: boolean; - dotAll: boolean; - hasIndices: boolean; - unicodeSets: boolean; - } - ) => void; - /** - * A function that is called when the validator found flags. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param global `g` flag. - * @param ignoreCase `i` flag. - * @param multiline `m` flag. - * @param unicode `u` flag. - * @param sticky `y` flag. - * @param dotAll `s` flag. - * @param hasIndices `d` flag. - * - * @deprecated Use `onRegExpFlags` instead. - */ - onFlags?: ( - start: number, - end: number, - global: boolean, - ignoreCase: boolean, - multiline: boolean, - unicode: boolean, - sticky: boolean, - dotAll: boolean, - hasIndices: boolean - ) => void; - /** - * A function that is called when the validator entered a pattern. - * @param start The 0-based index of the first character. - */ - onPatternEnter?: (start: number) => void; - /** - * A function that is called when the validator left a pattern. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onPatternLeave?: (start: number, end: number) => void; - /** - * A function that is called when the validator entered a disjunction. - * @param start The 0-based index of the first character. - */ - onDisjunctionEnter?: (start: number) => void; - /** - * A function that is called when the validator left a disjunction. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onDisjunctionLeave?: (start: number, end: number) => void; - /** - * A function that is called when the validator entered an alternative. - * @param start The 0-based index of the first character. - * @param index The 0-based index of alternatives in a disjunction. - */ - onAlternativeEnter?: (start: number, index: number) => void; - /** - * A function that is called when the validator left an alternative. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param index The 0-based index of alternatives in a disjunction. - */ - onAlternativeLeave?: (start: number, end: number, index: number) => void; - /** - * A function that is called when the validator entered an uncapturing group. - * @param start The 0-based index of the first character. - */ - onGroupEnter?: (start: number) => void; - /** - * A function that is called when the validator left an uncapturing group. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onGroupLeave?: (start: number, end: number) => void; - /** - * A function that is called when the validator entered a capturing group. - * @param start The 0-based index of the first character. - * @param name The group name. - */ - onCapturingGroupEnter?: (start: number, name: string | null) => void; - /** - * A function that is called when the validator left a capturing group. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param name The group name. - */ - onCapturingGroupLeave?: ( - start: number, - end: number, - name: string | null - ) => void; - /** - * A function that is called when the validator found a quantifier. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param min The minimum number of repeating. - * @param max The maximum number of repeating. - * @param greedy The flag to choose the longest matching. - */ - onQuantifier?: ( - start: number, - end: number, - min: number, - max: number, - greedy: boolean - ) => void; - /** - * A function that is called when the validator entered a lookahead/lookbehind assertion. - * @param start The 0-based index of the first character. - * @param kind The kind of the assertion. - * @param negate The flag which represents that the assertion is negative. - */ - onLookaroundAssertionEnter?: ( - start: number, - kind: "lookahead" | "lookbehind", - negate: boolean - ) => void; - /** - * A function that is called when the validator left a lookahead/lookbehind assertion. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the assertion. - * @param negate The flag which represents that the assertion is negative. - */ - onLookaroundAssertionLeave?: ( - start: number, - end: number, - kind: "lookahead" | "lookbehind", - negate: boolean - ) => void; - /** - * A function that is called when the validator found an edge boundary assertion. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the assertion. - */ - onEdgeAssertion?: ( - start: number, - end: number, - kind: "end" | "start" - ) => void; - /** - * A function that is called when the validator found a word boundary assertion. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the assertion. - * @param negate The flag which represents that the assertion is negative. - */ - onWordBoundaryAssertion?: ( - start: number, - end: number, - kind: "word", - negate: boolean - ) => void; - /** - * A function that is called when the validator found a dot. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the character set. - */ - onAnyCharacterSet?: (start: number, end: number, kind: "any") => void; - /** - * A function that is called when the validator found a character set escape. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the character set. - * @param negate The flag which represents that the character set is negative. - */ - onEscapeCharacterSet?: ( - start: number, - end: number, - kind: "digit" | "space" | "word", - negate: boolean - ) => void; - /** - * A function that is called when the validator found a Unicode proerty escape. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param kind The kind of the character set. - * @param key The property name. - * @param value The property value. - * @param negate The flag which represents that the character set is negative. - * @param strings If true, the given property is property of strings. - */ - onUnicodePropertyCharacterSet?: ( - start: number, - end: number, - kind: "property", - key: string, - value: string | null, - negate: boolean, - strings: boolean - ) => void; - /** - * A function that is called when the validator found a character. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param value The code point of the character. - */ - onCharacter?: (start: number, end: number, value: number) => void; - /** - * A function that is called when the validator found a backreference. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param ref The key of the referred capturing group. - */ - onBackreference?: ( - start: number, - end: number, - ref: number | string - ) => void; - /** - * A function that is called when the validator entered a character class. - * @param start The 0-based index of the first character. - * @param negate The flag which represents that the character class is negative. - * @param unicodeSets `true` if unicodeSets mode. - */ - onCharacterClassEnter?: ( - start: number, - negate: boolean, - unicodeSets: boolean - ) => void; - /** - * A function that is called when the validator left a character class. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param negate The flag which represents that the character class is negative. - */ - onCharacterClassLeave?: ( - start: number, - end: number, - negate: boolean - ) => void; - /** - * A function that is called when the validator found a character class range. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param min The minimum code point of the range. - * @param max The maximum code point of the range. - */ - onCharacterClassRange?: ( - start: number, - end: number, - min: number, - max: number - ) => void; - /** - * A function that is called when the validator found a class intersection. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onClassIntersection?: (start: number, end: number) => void; - /** - * A function that is called when the validator found a class subtraction. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onClassSubtraction?: (start: number, end: number) => void; - /** - * A function that is called when the validator entered a class string disjunction. - * @param start The 0-based index of the first character. - */ - onClassStringDisjunctionEnter?: (start: number) => void; - /** - * A function that is called when the validator left a class string disjunction. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - */ - onClassStringDisjunctionLeave?: (start: number, end: number) => void; - /** - * A function that is called when the validator entered a string alternative. - * @param start The 0-based index of the first character. - * @param index The 0-based index of alternatives in a disjunction. - */ - onStringAlternativeEnter?: (start: number, index: number) => void; - /** - * A function that is called when the validator left a string alternative. - * @param start The 0-based index of the first character. - * @param end The next 0-based index of the last character. - * @param index The 0-based index of alternatives in a disjunction. - */ - onStringAlternativeLeave?: ( - start: number, - end: number, - index: number - ) => void; - } - } - /** - * The regular expression validator. - */ - export class RegExpValidator { - /** - * Initialize this validator. - * @param options The options of validator. - */ - constructor(options?: RegExpValidator.Options); - /** - * Validate a regular expression literal. E.g. "/abc/g" - * @param source The source code to validate. - * @param start The start index in the source code. - * @param end The end index in the source code. - */ - validateLiteral(source: string, start?: number, end?: number): void; - /** - * Validate a regular expression flags. E.g. "gim" - * @param source The source code to validate. - * @param start The start index in the source code. - * @param end The end index in the source code. - */ - validateFlags(source: string, start?: number, end?: number): void; - /** - * Validate a regular expression pattern. E.g. "abc" - * @param source The source code to validate. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @param flags The flags. - */ - validatePattern( - source: string, - start?: number, - end?: number, - flags?: { - unicode?: boolean; - unicodeSets?: boolean; - } - ): void; - /** - * @deprecated Backward compatibility - * Use object `flags` instead of boolean `uFlag`. - * @param source The source code to validate. - * @param start The start index in the source code. - * @param end The end index in the source code. - * @param uFlag The flag to set unicode mode. - */ - validatePattern( - source: string, - start?: number, - end?: number, - uFlag?: boolean - ): void; - } -} - -declare module "@eslint-community/regexpp/visitor" { - import type { - Alternative, - Assertion, - Backreference, - CapturingGroup, - Character, - CharacterClass, - CharacterClassRange, - CharacterSet, - ClassIntersection, - ClassStringDisjunction, - ClassSubtraction, - ExpressionCharacterClass, - Flags, - Group, - Node, - Pattern, - Quantifier, - RegExpLiteral, - StringAlternative, - } from "@eslint-community/regexpp/ast"; - /** - * The visitor to walk on AST. - */ - export class RegExpVisitor { - /** - * Initialize this visitor. - * @param handlers Callbacks for each node. - */ - constructor(handlers: RegExpVisitor.Handlers); - /** - * Visit a given node and descendant nodes. - * @param node The root node to visit tree. - */ - visit(node: Node): void; - } - export namespace RegExpVisitor { - interface Handlers { - onAlternativeEnter?: (node: Alternative) => void; - onAlternativeLeave?: (node: Alternative) => void; - onAssertionEnter?: (node: Assertion) => void; - onAssertionLeave?: (node: Assertion) => void; - onBackreferenceEnter?: (node: Backreference) => void; - onBackreferenceLeave?: (node: Backreference) => void; - onCapturingGroupEnter?: (node: CapturingGroup) => void; - onCapturingGroupLeave?: (node: CapturingGroup) => void; - onCharacterEnter?: (node: Character) => void; - onCharacterLeave?: (node: Character) => void; - onCharacterClassEnter?: (node: CharacterClass) => void; - onCharacterClassLeave?: (node: CharacterClass) => void; - onCharacterClassRangeEnter?: (node: CharacterClassRange) => void; - onCharacterClassRangeLeave?: (node: CharacterClassRange) => void; - onCharacterSetEnter?: (node: CharacterSet) => void; - onCharacterSetLeave?: (node: CharacterSet) => void; - onClassIntersectionEnter?: (node: ClassIntersection) => void; - onClassIntersectionLeave?: (node: ClassIntersection) => void; - onClassStringDisjunctionEnter?: (node: ClassStringDisjunction) => void; - onClassStringDisjunctionLeave?: (node: ClassStringDisjunction) => void; - onClassSubtractionEnter?: (node: ClassSubtraction) => void; - onClassSubtractionLeave?: (node: ClassSubtraction) => void; - onExpressionCharacterClassEnter?: ( - node: ExpressionCharacterClass - ) => void; - onExpressionCharacterClassLeave?: ( - node: ExpressionCharacterClass - ) => void; - onFlagsEnter?: (node: Flags) => void; - onFlagsLeave?: (node: Flags) => void; - onGroupEnter?: (node: Group) => void; - onGroupLeave?: (node: Group) => void; - onPatternEnter?: (node: Pattern) => void; - onPatternLeave?: (node: Pattern) => void; - onQuantifierEnter?: (node: Quantifier) => void; - onQuantifierLeave?: (node: Quantifier) => void; - onRegExpLiteralEnter?: (node: RegExpLiteral) => void; - onRegExpLiteralLeave?: (node: RegExpLiteral) => void; - onStringAlternativeEnter?: (node: StringAlternative) => void; - onStringAlternativeLeave?: (node: StringAlternative) => void; - } - } -} - -declare module "@eslint-community/regexpp/regexp-syntax-error" { - import type { RegExpValidatorSourceContext } from "@eslint-community/regexpp/validator"; - export class RegExpSyntaxError extends SyntaxError { - index: number; - constructor(message: string, index: number); - } - export function newRegExpSyntaxError( - srcCtx: RegExpValidatorSourceContext, - flags: { - unicode: boolean; - unicodeSets: boolean; - }, - index: number, - message: string - ): RegExpSyntaxError; -} - -declare module "@eslint-community/regexpp/ecma-versions" { - export type EcmaVersion = - | 5 - | 2015 - | 2016 - | 2017 - | 2018 - | 2019 - | 2020 - | 2021 - | 2022 - | 2023 - | 2024 - | 2025; - export const latestEcmaVersion = 2025; -} diff --git a/graphql/node_modules/@eslint-community/regexpp/index.js b/graphql/node_modules/@eslint-community/regexpp/index.js deleted file mode 100644 index aedc9a99..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/index.js +++ /dev/null @@ -1,2868 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var ast = /*#__PURE__*/Object.freeze({ - __proto__: null -}); - -const latestEcmaVersion = 2025; - -let largeIdStartRanges = undefined; -let largeIdContinueRanges = undefined; -function isIdStart(cp) { - if (cp < 0x41) - return false; - if (cp < 0x5b) - return true; - if (cp < 0x61) - return false; - if (cp < 0x7b) - return true; - return isLargeIdStart(cp); -} -function isIdContinue(cp) { - if (cp < 0x30) - return false; - if (cp < 0x3a) - return true; - if (cp < 0x41) - return false; - if (cp < 0x5b) - return true; - if (cp === 0x5f) - return true; - if (cp < 0x61) - return false; - if (cp < 0x7b) - return true; - return isLargeIdStart(cp) || isLargeIdContinue(cp); -} -function isLargeIdStart(cp) { - return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges())); -} -function isLargeIdContinue(cp) { - return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges())); -} -function initLargeIdStartRanges() { - return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h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t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6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 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n"); -} -function isInRange(cp, ranges) { - let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0; - while (l < r) { - i = ((l + r) / 2) | 0; - min = ranges[2 * i]; - max = ranges[2 * i + 1]; - if (cp < min) { - r = i; - } - else if (cp > max) { - l = i + 1; - } - else { - return true; - } - } - return false; -} -function restoreRanges(data) { - let last = 0; - return data.split(" ").map((s) => (last += parseInt(s, 36) | 0)); -} - -class DataSet { - constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025) { - this._raw2018 = raw2018; - this._raw2019 = raw2019; - this._raw2020 = raw2020; - this._raw2021 = raw2021; - this._raw2022 = raw2022; - this._raw2023 = raw2023; - this._raw2024 = raw2024; - this._raw2025 = raw2025; - } - get es2018() { - var _a; - return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" ")))); - } - get es2019() { - var _a; - return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" ")))); - } - get es2020() { - var _a; - return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" ")))); - } - get es2021() { - var _a; - return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" ")))); - } - get es2022() { - var _a; - return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" ")))); - } - get es2023() { - var _a; - return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" ")))); - } - get es2024() { - var _a; - return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" ")))); - } - get es2025() { - var _a; - return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" ")))); - } -} -const gcNameSet = new Set(["General_Category", "gc"]); -const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]); -const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", ""); -const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", "", ""); -const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", ""); -const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", ""); -function isValidUnicodeProperty(version, name, value) { - if (gcNameSet.has(name)) { - return version >= 2018 && gcValueSets.es2018.has(value); - } - if (scNameSet.has(name)) { - return ((version >= 2018 && scValueSets.es2018.has(value)) || - (version >= 2019 && scValueSets.es2019.has(value)) || - (version >= 2020 && scValueSets.es2020.has(value)) || - (version >= 2021 && scValueSets.es2021.has(value)) || - (version >= 2022 && scValueSets.es2022.has(value)) || - (version >= 2023 && scValueSets.es2023.has(value))); - } - return false; -} -function isValidLoneUnicodeProperty(version, value) { - return ((version >= 2018 && binPropertySets.es2018.has(value)) || - (version >= 2019 && binPropertySets.es2019.has(value)) || - (version >= 2021 && binPropertySets.es2021.has(value))); -} -function isValidLoneUnicodePropertyOfString(version, value) { - return version >= 2024 && binPropertyOfStringsSets.es2024.has(value); -} - -const BACKSPACE = 0x08; -const CHARACTER_TABULATION = 0x09; -const LINE_FEED = 0x0a; -const LINE_TABULATION = 0x0b; -const FORM_FEED = 0x0c; -const CARRIAGE_RETURN = 0x0d; -const EXCLAMATION_MARK = 0x21; -const NUMBER_SIGN = 0x23; -const DOLLAR_SIGN = 0x24; -const PERCENT_SIGN = 0x25; -const AMPERSAND = 0x26; -const LEFT_PARENTHESIS = 0x28; -const RIGHT_PARENTHESIS = 0x29; -const ASTERISK = 0x2a; -const PLUS_SIGN = 0x2b; -const COMMA = 0x2c; -const HYPHEN_MINUS = 0x2d; -const FULL_STOP = 0x2e; -const SOLIDUS = 0x2f; -const DIGIT_ZERO = 0x30; -const DIGIT_ONE = 0x31; -const DIGIT_SEVEN = 0x37; -const DIGIT_NINE = 0x39; -const COLON = 0x3a; -const SEMICOLON = 0x3b; -const LESS_THAN_SIGN = 0x3c; -const EQUALS_SIGN = 0x3d; -const GREATER_THAN_SIGN = 0x3e; -const QUESTION_MARK = 0x3f; -const COMMERCIAL_AT = 0x40; -const LATIN_CAPITAL_LETTER_A = 0x41; -const LATIN_CAPITAL_LETTER_B = 0x42; -const LATIN_CAPITAL_LETTER_D = 0x44; -const LATIN_CAPITAL_LETTER_F = 0x46; -const LATIN_CAPITAL_LETTER_P = 0x50; -const LATIN_CAPITAL_LETTER_S = 0x53; -const LATIN_CAPITAL_LETTER_W = 0x57; -const LATIN_CAPITAL_LETTER_Z = 0x5a; -const LOW_LINE = 0x5f; -const LATIN_SMALL_LETTER_A = 0x61; -const LATIN_SMALL_LETTER_B = 0x62; -const LATIN_SMALL_LETTER_C = 0x63; -const LATIN_SMALL_LETTER_D = 0x64; -const LATIN_SMALL_LETTER_F = 0x66; -const LATIN_SMALL_LETTER_G = 0x67; -const LATIN_SMALL_LETTER_I = 0x69; -const LATIN_SMALL_LETTER_K = 0x6b; -const LATIN_SMALL_LETTER_M = 0x6d; -const LATIN_SMALL_LETTER_N = 0x6e; -const LATIN_SMALL_LETTER_P = 0x70; -const LATIN_SMALL_LETTER_Q = 0x71; -const LATIN_SMALL_LETTER_R = 0x72; -const LATIN_SMALL_LETTER_S = 0x73; -const LATIN_SMALL_LETTER_T = 0x74; -const LATIN_SMALL_LETTER_U = 0x75; -const LATIN_SMALL_LETTER_V = 0x76; -const LATIN_SMALL_LETTER_W = 0x77; -const LATIN_SMALL_LETTER_X = 0x78; -const LATIN_SMALL_LETTER_Y = 0x79; -const LATIN_SMALL_LETTER_Z = 0x7a; -const LEFT_SQUARE_BRACKET = 0x5b; -const REVERSE_SOLIDUS = 0x5c; -const RIGHT_SQUARE_BRACKET = 0x5d; -const CIRCUMFLEX_ACCENT = 0x5e; -const GRAVE_ACCENT = 0x60; -const LEFT_CURLY_BRACKET = 0x7b; -const VERTICAL_LINE = 0x7c; -const RIGHT_CURLY_BRACKET = 0x7d; -const TILDE = 0x7e; -const ZERO_WIDTH_NON_JOINER = 0x200c; -const ZERO_WIDTH_JOINER = 0x200d; -const LINE_SEPARATOR = 0x2028; -const PARAGRAPH_SEPARATOR = 0x2029; -const MIN_CODE_POINT = 0x00; -const MAX_CODE_POINT = 0x10ffff; -function isLatinLetter(code) { - return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) || - (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z)); -} -function isDecimalDigit(code) { - return code >= DIGIT_ZERO && code <= DIGIT_NINE; -} -function isOctalDigit(code) { - return code >= DIGIT_ZERO && code <= DIGIT_SEVEN; -} -function isHexDigit(code) { - return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) || - (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) || - (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F)); -} -function isLineTerminator(code) { - return (code === LINE_FEED || - code === CARRIAGE_RETURN || - code === LINE_SEPARATOR || - code === PARAGRAPH_SEPARATOR); -} -function isValidUnicode(code) { - return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT; -} -function digitToInt(code) { - if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) { - return code - LATIN_SMALL_LETTER_A + 10; - } - if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) { - return code - LATIN_CAPITAL_LETTER_A + 10; - } - return code - DIGIT_ZERO; -} -function isLeadSurrogate(code) { - return code >= 0xd800 && code <= 0xdbff; -} -function isTrailSurrogate(code) { - return code >= 0xdc00 && code <= 0xdfff; -} -function combineSurrogatePair(lead, trail) { - return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000; -} - -class GroupSpecifiersAsES2018 { - constructor() { - this.groupName = new Set(); - } - clear() { - this.groupName.clear(); - } - isEmpty() { - return !this.groupName.size; - } - hasInPattern(name) { - return this.groupName.has(name); - } - hasInScope(name) { - return this.hasInPattern(name); - } - addToScope(name) { - this.groupName.add(name); - } - enterDisjunction() { - } - enterAlternative() { - } - leaveDisjunction() { - } -} -class BranchID { - constructor(parent, base) { - this.parent = parent; - this.base = base !== null && base !== void 0 ? base : this; - } - separatedFrom(other) { - var _a, _b; - if (this.base === other.base && this !== other) { - return true; - } - if (other.parent && this.separatedFrom(other.parent)) { - return true; - } - return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false; - } - child() { - return new BranchID(this, null); - } - sibling() { - return new BranchID(this.parent, this.base); - } -} -class GroupSpecifiersAsES2025 { - constructor() { - this.branchID = new BranchID(null, null); - this.groupNames = new Map(); - } - clear() { - this.branchID = new BranchID(null, null); - this.groupNames.clear(); - } - isEmpty() { - return !this.groupNames.size; - } - enterDisjunction() { - this.branchID = this.branchID.child(); - } - enterAlternative(index) { - if (index === 0) { - return; - } - this.branchID = this.branchID.sibling(); - } - leaveDisjunction() { - this.branchID = this.branchID.parent; - } - hasInPattern(name) { - return this.groupNames.has(name); - } - hasInScope(name) { - const branches = this.groupNames.get(name); - if (!branches) { - return false; - } - for (const branch of branches) { - if (!branch.separatedFrom(this.branchID)) { - return true; - } - } - return false; - } - addToScope(name) { - const branches = this.groupNames.get(name); - if (branches) { - branches.push(this.branchID); - return; - } - this.groupNames.set(name, [this.branchID]); - } -} - -const legacyImpl = { - at(s, end, i) { - return i < end ? s.charCodeAt(i) : -1; - }, - width(c) { - return 1; - }, -}; -const unicodeImpl = { - at(s, end, i) { - return i < end ? s.codePointAt(i) : -1; - }, - width(c) { - return c > 0xffff ? 2 : 1; - }, -}; -class Reader { - constructor() { - this._impl = legacyImpl; - this._s = ""; - this._i = 0; - this._end = 0; - this._cp1 = -1; - this._w1 = 1; - this._cp2 = -1; - this._w2 = 1; - this._cp3 = -1; - this._w3 = 1; - this._cp4 = -1; - } - get source() { - return this._s; - } - get index() { - return this._i; - } - get currentCodePoint() { - return this._cp1; - } - get nextCodePoint() { - return this._cp2; - } - get nextCodePoint2() { - return this._cp3; - } - get nextCodePoint3() { - return this._cp4; - } - reset(source, start, end, uFlag) { - this._impl = uFlag ? unicodeImpl : legacyImpl; - this._s = source; - this._end = end; - this.rewind(start); - } - rewind(index) { - const impl = this._impl; - this._i = index; - this._cp1 = impl.at(this._s, this._end, index); - this._w1 = impl.width(this._cp1); - this._cp2 = impl.at(this._s, this._end, index + this._w1); - this._w2 = impl.width(this._cp2); - this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2); - this._w3 = impl.width(this._cp3); - this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3); - } - advance() { - if (this._cp1 !== -1) { - const impl = this._impl; - this._i += this._w1; - this._cp1 = this._cp2; - this._w1 = this._w2; - this._cp2 = this._cp3; - this._w2 = impl.width(this._cp2); - this._cp3 = this._cp4; - this._w3 = impl.width(this._cp3); - this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3); - } - } - eat(cp) { - if (this._cp1 === cp) { - this.advance(); - return true; - } - return false; - } - eat2(cp1, cp2) { - if (this._cp1 === cp1 && this._cp2 === cp2) { - this.advance(); - this.advance(); - return true; - } - return false; - } - eat3(cp1, cp2, cp3) { - if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) { - this.advance(); - this.advance(); - this.advance(); - return true; - } - return false; - } -} - -class RegExpSyntaxError extends SyntaxError { - constructor(message, index) { - super(message); - this.index = index; - } -} -function newRegExpSyntaxError(srcCtx, flags, index, message) { - let source = ""; - if (srcCtx.kind === "literal") { - const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end); - if (literal) { - source = `: ${literal}`; - } - } - else if (srcCtx.kind === "pattern") { - const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end); - const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`; - source = `: /${pattern}/${flagsText}`; - } - return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index); -} - -const SYNTAX_CHARACTER = new Set([ - CIRCUMFLEX_ACCENT, - DOLLAR_SIGN, - REVERSE_SOLIDUS, - FULL_STOP, - ASTERISK, - PLUS_SIGN, - QUESTION_MARK, - LEFT_PARENTHESIS, - RIGHT_PARENTHESIS, - LEFT_SQUARE_BRACKET, - RIGHT_SQUARE_BRACKET, - LEFT_CURLY_BRACKET, - RIGHT_CURLY_BRACKET, - VERTICAL_LINE, -]); -const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([ - AMPERSAND, - EXCLAMATION_MARK, - NUMBER_SIGN, - DOLLAR_SIGN, - PERCENT_SIGN, - ASTERISK, - PLUS_SIGN, - COMMA, - FULL_STOP, - COLON, - SEMICOLON, - LESS_THAN_SIGN, - EQUALS_SIGN, - GREATER_THAN_SIGN, - QUESTION_MARK, - COMMERCIAL_AT, - CIRCUMFLEX_ACCENT, - GRAVE_ACCENT, - TILDE, -]); -const CLASS_SET_SYNTAX_CHARACTER = new Set([ - LEFT_PARENTHESIS, - RIGHT_PARENTHESIS, - LEFT_SQUARE_BRACKET, - RIGHT_SQUARE_BRACKET, - LEFT_CURLY_BRACKET, - RIGHT_CURLY_BRACKET, - SOLIDUS, - HYPHEN_MINUS, - REVERSE_SOLIDUS, - VERTICAL_LINE, -]); -const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ - AMPERSAND, - HYPHEN_MINUS, - EXCLAMATION_MARK, - NUMBER_SIGN, - PERCENT_SIGN, - COMMA, - COLON, - SEMICOLON, - LESS_THAN_SIGN, - EQUALS_SIGN, - GREATER_THAN_SIGN, - COMMERCIAL_AT, - GRAVE_ACCENT, - TILDE, -]); -function isSyntaxCharacter(cp) { - return SYNTAX_CHARACTER.has(cp); -} -function isClassSetReservedDoublePunctuatorCharacter(cp) { - return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp); -} -function isClassSetSyntaxCharacter(cp) { - return CLASS_SET_SYNTAX_CHARACTER.has(cp); -} -function isClassSetReservedPunctuator(cp) { - return CLASS_SET_RESERVED_PUNCTUATOR.has(cp); -} -function isIdentifierStartChar(cp) { - return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE; -} -function isIdentifierPartChar(cp) { - return (isIdContinue(cp) || - cp === DOLLAR_SIGN || - cp === ZERO_WIDTH_NON_JOINER || - cp === ZERO_WIDTH_JOINER); -} -function isUnicodePropertyNameCharacter(cp) { - return isLatinLetter(cp) || cp === LOW_LINE; -} -function isUnicodePropertyValueCharacter(cp) { - return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp); -} -class RegExpValidator { - constructor(options) { - this._reader = new Reader(); - this._unicodeMode = false; - this._unicodeSetsMode = false; - this._nFlag = false; - this._lastIntValue = 0; - this._lastRange = { - min: 0, - max: Number.POSITIVE_INFINITY, - }; - this._lastStrValue = ""; - this._lastAssertionIsQuantifiable = false; - this._numCapturingParens = 0; - this._backreferenceNames = new Set(); - this._srcCtx = null; - this._options = options !== null && options !== void 0 ? options : {}; - this._groupSpecifiers = - this.ecmaVersion >= 2025 - ? new GroupSpecifiersAsES2025() - : new GroupSpecifiersAsES2018(); - } - validateLiteral(source, start = 0, end = source.length) { - this._srcCtx = { source, start, end, kind: "literal" }; - this._unicodeSetsMode = this._unicodeMode = this._nFlag = false; - this.reset(source, start, end); - this.onLiteralEnter(start); - if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) { - const flagStart = this.index; - const unicode = source.includes("u", flagStart); - const unicodeSets = source.includes("v", flagStart); - this.validateFlagsInternal(source, flagStart, end); - this.validatePatternInternal(source, start + 1, flagStart - 1, { - unicode, - unicodeSets, - }); - } - else if (start >= end) { - this.raise("Empty"); - } - else { - const c = String.fromCodePoint(this.currentCodePoint); - this.raise(`Unexpected character '${c}'`); - } - this.onLiteralLeave(start, end); - } - validateFlags(source, start = 0, end = source.length) { - this._srcCtx = { source, start, end, kind: "flags" }; - this.validateFlagsInternal(source, start, end); - } - validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - this._srcCtx = { source, start, end, kind: "pattern" }; - this.validatePatternInternal(source, start, end, uFlagOrFlags); - } - validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end); - this._unicodeMode = mode.unicodeMode; - this._nFlag = mode.nFlag; - this._unicodeSetsMode = mode.unicodeSetsMode; - this.reset(source, start, end); - this.consumePattern(); - if (!this._nFlag && - this.ecmaVersion >= 2018 && - !this._groupSpecifiers.isEmpty()) { - this._nFlag = true; - this.rewind(start); - this.consumePattern(); - } - } - validateFlagsInternal(source, start, end) { - const existingFlags = new Set(); - let global = false; - let ignoreCase = false; - let multiline = false; - let sticky = false; - let unicode = false; - let dotAll = false; - let hasIndices = false; - let unicodeSets = false; - for (let i = start; i < end; ++i) { - const flag = source.charCodeAt(i); - if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`, { index: start }); - } - existingFlags.add(flag); - if (flag === LATIN_SMALL_LETTER_G) { - global = true; - } - else if (flag === LATIN_SMALL_LETTER_I) { - ignoreCase = true; - } - else if (flag === LATIN_SMALL_LETTER_M) { - multiline = true; - } - else if (flag === LATIN_SMALL_LETTER_U && - this.ecmaVersion >= 2015) { - unicode = true; - } - else if (flag === LATIN_SMALL_LETTER_Y && - this.ecmaVersion >= 2015) { - sticky = true; - } - else if (flag === LATIN_SMALL_LETTER_S && - this.ecmaVersion >= 2018) { - dotAll = true; - } - else if (flag === LATIN_SMALL_LETTER_D && - this.ecmaVersion >= 2022) { - hasIndices = true; - } - else if (flag === LATIN_SMALL_LETTER_V && - this.ecmaVersion >= 2024) { - unicodeSets = true; - } - else { - this.raise(`Invalid flag '${source[i]}'`, { index: start }); - } - } - this.onRegExpFlags(start, end, { - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }); - } - _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { - let unicode = false; - let unicodeSets = false; - if (uFlagOrFlags && this.ecmaVersion >= 2015) { - if (typeof uFlagOrFlags === "object") { - unicode = Boolean(uFlagOrFlags.unicode); - if (this.ecmaVersion >= 2024) { - unicodeSets = Boolean(uFlagOrFlags.unicodeSets); - } - } - else { - unicode = uFlagOrFlags; - } - } - if (unicode && unicodeSets) { - this.raise("Invalid regular expression flags", { - index: sourceEnd + 1, - unicode, - unicodeSets, - }); - } - const unicodeMode = unicode || unicodeSets; - const nFlag = (unicode && this.ecmaVersion >= 2018) || - unicodeSets || - Boolean(this._options.strict && this.ecmaVersion >= 2023); - const unicodeSetsMode = unicodeSets; - return { unicodeMode, nFlag, unicodeSetsMode }; - } - get strict() { - return Boolean(this._options.strict) || this._unicodeMode; - } - get ecmaVersion() { - var _a; - return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; - } - onLiteralEnter(start) { - if (this._options.onLiteralEnter) { - this._options.onLiteralEnter(start); - } - } - onLiteralLeave(start, end) { - if (this._options.onLiteralLeave) { - this._options.onLiteralLeave(start, end); - } - } - onRegExpFlags(start, end, flags) { - if (this._options.onRegExpFlags) { - this._options.onRegExpFlags(start, end, flags); - } - if (this._options.onFlags) { - this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices); - } - } - onPatternEnter(start) { - if (this._options.onPatternEnter) { - this._options.onPatternEnter(start); - } - } - onPatternLeave(start, end) { - if (this._options.onPatternLeave) { - this._options.onPatternLeave(start, end); - } - } - onDisjunctionEnter(start) { - if (this._options.onDisjunctionEnter) { - this._options.onDisjunctionEnter(start); - } - } - onDisjunctionLeave(start, end) { - if (this._options.onDisjunctionLeave) { - this._options.onDisjunctionLeave(start, end); - } - } - onAlternativeEnter(start, index) { - if (this._options.onAlternativeEnter) { - this._options.onAlternativeEnter(start, index); - } - } - onAlternativeLeave(start, end, index) { - if (this._options.onAlternativeLeave) { - this._options.onAlternativeLeave(start, end, index); - } - } - onGroupEnter(start) { - if (this._options.onGroupEnter) { - this._options.onGroupEnter(start); - } - } - onGroupLeave(start, end) { - if (this._options.onGroupLeave) { - this._options.onGroupLeave(start, end); - } - } - onCapturingGroupEnter(start, name) { - if (this._options.onCapturingGroupEnter) { - this._options.onCapturingGroupEnter(start, name); - } - } - onCapturingGroupLeave(start, end, name) { - if (this._options.onCapturingGroupLeave) { - this._options.onCapturingGroupLeave(start, end, name); - } - } - onQuantifier(start, end, min, max, greedy) { - if (this._options.onQuantifier) { - this._options.onQuantifier(start, end, min, max, greedy); - } - } - onLookaroundAssertionEnter(start, kind, negate) { - if (this._options.onLookaroundAssertionEnter) { - this._options.onLookaroundAssertionEnter(start, kind, negate); - } - } - onLookaroundAssertionLeave(start, end, kind, negate) { - if (this._options.onLookaroundAssertionLeave) { - this._options.onLookaroundAssertionLeave(start, end, kind, negate); - } - } - onEdgeAssertion(start, end, kind) { - if (this._options.onEdgeAssertion) { - this._options.onEdgeAssertion(start, end, kind); - } - } - onWordBoundaryAssertion(start, end, kind, negate) { - if (this._options.onWordBoundaryAssertion) { - this._options.onWordBoundaryAssertion(start, end, kind, negate); - } - } - onAnyCharacterSet(start, end, kind) { - if (this._options.onAnyCharacterSet) { - this._options.onAnyCharacterSet(start, end, kind); - } - } - onEscapeCharacterSet(start, end, kind, negate) { - if (this._options.onEscapeCharacterSet) { - this._options.onEscapeCharacterSet(start, end, kind, negate); - } - } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { - if (this._options.onUnicodePropertyCharacterSet) { - this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings); - } - } - onCharacter(start, end, value) { - if (this._options.onCharacter) { - this._options.onCharacter(start, end, value); - } - } - onBackreference(start, end, ref) { - if (this._options.onBackreference) { - this._options.onBackreference(start, end, ref); - } - } - onCharacterClassEnter(start, negate, unicodeSets) { - if (this._options.onCharacterClassEnter) { - this._options.onCharacterClassEnter(start, negate, unicodeSets); - } - } - onCharacterClassLeave(start, end, negate) { - if (this._options.onCharacterClassLeave) { - this._options.onCharacterClassLeave(start, end, negate); - } - } - onCharacterClassRange(start, end, min, max) { - if (this._options.onCharacterClassRange) { - this._options.onCharacterClassRange(start, end, min, max); - } - } - onClassIntersection(start, end) { - if (this._options.onClassIntersection) { - this._options.onClassIntersection(start, end); - } - } - onClassSubtraction(start, end) { - if (this._options.onClassSubtraction) { - this._options.onClassSubtraction(start, end); - } - } - onClassStringDisjunctionEnter(start) { - if (this._options.onClassStringDisjunctionEnter) { - this._options.onClassStringDisjunctionEnter(start); - } - } - onClassStringDisjunctionLeave(start, end) { - if (this._options.onClassStringDisjunctionLeave) { - this._options.onClassStringDisjunctionLeave(start, end); - } - } - onStringAlternativeEnter(start, index) { - if (this._options.onStringAlternativeEnter) { - this._options.onStringAlternativeEnter(start, index); - } - } - onStringAlternativeLeave(start, end, index) { - if (this._options.onStringAlternativeLeave) { - this._options.onStringAlternativeLeave(start, end, index); - } - } - get index() { - return this._reader.index; - } - get currentCodePoint() { - return this._reader.currentCodePoint; - } - get nextCodePoint() { - return this._reader.nextCodePoint; - } - get nextCodePoint2() { - return this._reader.nextCodePoint2; - } - get nextCodePoint3() { - return this._reader.nextCodePoint3; - } - reset(source, start, end) { - this._reader.reset(source, start, end, this._unicodeMode); - } - rewind(index) { - this._reader.rewind(index); - } - advance() { - this._reader.advance(); - } - eat(cp) { - return this._reader.eat(cp); - } - eat2(cp1, cp2) { - return this._reader.eat2(cp1, cp2); - } - eat3(cp1, cp2, cp3) { - return this._reader.eat3(cp1, cp2, cp3); - } - raise(message, context) { - var _a, _b, _c; - throw newRegExpSyntaxError(this._srcCtx, { - unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode), - unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode, - }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message); - } - eatRegExpBody() { - const start = this.index; - let inClass = false; - let escaped = false; - for (;;) { - const cp = this.currentCodePoint; - if (cp === -1 || isLineTerminator(cp)) { - const kind = inClass ? "character class" : "regular expression"; - this.raise(`Unterminated ${kind}`); - } - if (escaped) { - escaped = false; - } - else if (cp === REVERSE_SOLIDUS) { - escaped = true; - } - else if (cp === LEFT_SQUARE_BRACKET) { - inClass = true; - } - else if (cp === RIGHT_SQUARE_BRACKET) { - inClass = false; - } - else if ((cp === SOLIDUS && !inClass) || - (cp === ASTERISK && this.index === start)) { - break; - } - this.advance(); - } - return this.index !== start; - } - consumePattern() { - const start = this.index; - this._numCapturingParens = this.countCapturingParens(); - this._groupSpecifiers.clear(); - this._backreferenceNames.clear(); - this.onPatternEnter(start); - this.consumeDisjunction(); - const cp = this.currentCodePoint; - if (this.currentCodePoint !== -1) { - if (cp === RIGHT_PARENTHESIS) { - this.raise("Unmatched ')'"); - } - if (cp === REVERSE_SOLIDUS) { - this.raise("\\ at end of pattern"); - } - if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) { - this.raise("Lone quantifier brackets"); - } - const c = String.fromCodePoint(cp); - this.raise(`Unexpected character '${c}'`); - } - for (const name of this._backreferenceNames) { - if (!this._groupSpecifiers.hasInPattern(name)) { - this.raise("Invalid named capture referenced"); - } - } - this.onPatternLeave(start, this.index); - } - countCapturingParens() { - const start = this.index; - let inClass = false; - let escaped = false; - let count = 0; - let cp = 0; - while ((cp = this.currentCodePoint) !== -1) { - if (escaped) { - escaped = false; - } - else if (cp === REVERSE_SOLIDUS) { - escaped = true; - } - else if (cp === LEFT_SQUARE_BRACKET) { - inClass = true; - } - else if (cp === RIGHT_SQUARE_BRACKET) { - inClass = false; - } - else if (cp === LEFT_PARENTHESIS && - !inClass && - (this.nextCodePoint !== QUESTION_MARK || - (this.nextCodePoint2 === LESS_THAN_SIGN && - this.nextCodePoint3 !== EQUALS_SIGN && - this.nextCodePoint3 !== EXCLAMATION_MARK))) { - count += 1; - } - this.advance(); - } - this.rewind(start); - return count; - } - consumeDisjunction() { - const start = this.index; - let i = 0; - this._groupSpecifiers.enterDisjunction(); - this.onDisjunctionEnter(start); - do { - this.consumeAlternative(i++); - } while (this.eat(VERTICAL_LINE)); - if (this.consumeQuantifier(true)) { - this.raise("Nothing to repeat"); - } - if (this.eat(LEFT_CURLY_BRACKET)) { - this.raise("Lone quantifier brackets"); - } - this.onDisjunctionLeave(start, this.index); - this._groupSpecifiers.leaveDisjunction(); - } - consumeAlternative(i) { - const start = this.index; - this._groupSpecifiers.enterAlternative(i); - this.onAlternativeEnter(start, i); - while (this.currentCodePoint !== -1 && this.consumeTerm()) { - } - this.onAlternativeLeave(start, this.index, i); - } - consumeTerm() { - if (this._unicodeMode || this.strict) { - return (this.consumeAssertion() || - (this.consumeAtom() && this.consumeOptionalQuantifier())); - } - return ((this.consumeAssertion() && - (!this._lastAssertionIsQuantifiable || - this.consumeOptionalQuantifier())) || - (this.consumeExtendedAtom() && this.consumeOptionalQuantifier())); - } - consumeOptionalQuantifier() { - this.consumeQuantifier(); - return true; - } - consumeAssertion() { - const start = this.index; - this._lastAssertionIsQuantifiable = false; - if (this.eat(CIRCUMFLEX_ACCENT)) { - this.onEdgeAssertion(start, this.index, "start"); - return true; - } - if (this.eat(DOLLAR_SIGN)) { - this.onEdgeAssertion(start, this.index, "end"); - return true; - } - if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) { - this.onWordBoundaryAssertion(start, this.index, "word", true); - return true; - } - if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) { - this.onWordBoundaryAssertion(start, this.index, "word", false); - return true; - } - if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) { - const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN); - let negate = false; - if (this.eat(EQUALS_SIGN) || - (negate = this.eat(EXCLAMATION_MARK))) { - const kind = lookbehind ? "lookbehind" : "lookahead"; - this.onLookaroundAssertionEnter(start, kind, negate); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this._lastAssertionIsQuantifiable = !lookbehind && !this.strict; - this.onLookaroundAssertionLeave(start, this.index, kind, negate); - return true; - } - this.rewind(start); - } - return false; - } - consumeQuantifier(noConsume = false) { - const start = this.index; - let min = 0; - let max = 0; - let greedy = false; - if (this.eat(ASTERISK)) { - min = 0; - max = Number.POSITIVE_INFINITY; - } - else if (this.eat(PLUS_SIGN)) { - min = 1; - max = Number.POSITIVE_INFINITY; - } - else if (this.eat(QUESTION_MARK)) { - min = 0; - max = 1; - } - else if (this.eatBracedQuantifier(noConsume)) { - ({ min, max } = this._lastRange); - } - else { - return false; - } - greedy = !this.eat(QUESTION_MARK); - if (!noConsume) { - this.onQuantifier(start, this.index, min, max, greedy); - } - return true; - } - eatBracedQuantifier(noError) { - const start = this.index; - if (this.eat(LEFT_CURLY_BRACKET)) { - if (this.eatDecimalDigits()) { - const min = this._lastIntValue; - let max = min; - if (this.eat(COMMA)) { - max = this.eatDecimalDigits() - ? this._lastIntValue - : Number.POSITIVE_INFINITY; - } - if (this.eat(RIGHT_CURLY_BRACKET)) { - if (!noError && max < min) { - this.raise("numbers out of order in {} quantifier"); - } - this._lastRange = { min, max }; - return true; - } - } - if (!noError && (this._unicodeMode || this.strict)) { - this.raise("Incomplete quantifier"); - } - this.rewind(start); - } - return false; - } - consumeAtom() { - return (this.consumePatternCharacter() || - this.consumeDot() || - this.consumeReverseSolidusAtomEscape() || - Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup()); - } - consumeDot() { - if (this.eat(FULL_STOP)) { - this.onAnyCharacterSet(this.index - 1, this.index, "any"); - return true; - } - return false; - } - consumeReverseSolidusAtomEscape() { - const start = this.index; - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeAtomEscape()) { - return true; - } - this.rewind(start); - } - return false; - } - consumeUncapturingGroup() { - const start = this.index; - if (this.eat3(LEFT_PARENTHESIS, QUESTION_MARK, COLON)) { - this.onGroupEnter(start); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this.onGroupLeave(start, this.index); - return true; - } - return false; - } - consumeCapturingGroup() { - const start = this.index; - if (this.eat(LEFT_PARENTHESIS)) { - let name = null; - if (this.ecmaVersion >= 2018) { - if (this.consumeGroupSpecifier()) { - name = this._lastStrValue; - } - } - else if (this.currentCodePoint === QUESTION_MARK) { - this.raise("Invalid group"); - } - this.onCapturingGroupEnter(start, name); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this.onCapturingGroupLeave(start, this.index, name); - return true; - } - return false; - } - consumeExtendedAtom() { - return (this.consumeDot() || - this.consumeReverseSolidusAtomEscape() || - this.consumeReverseSolidusFollowedByC() || - Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup() || - this.consumeInvalidBracedQuantifier() || - this.consumeExtendedPatternCharacter()); - } - consumeReverseSolidusFollowedByC() { - const start = this.index; - if (this.currentCodePoint === REVERSE_SOLIDUS && - this.nextCodePoint === LATIN_SMALL_LETTER_C) { - this._lastIntValue = this.currentCodePoint; - this.advance(); - this.onCharacter(start, this.index, REVERSE_SOLIDUS); - return true; - } - return false; - } - consumeInvalidBracedQuantifier() { - if (this.eatBracedQuantifier(true)) { - this.raise("Nothing to repeat"); - } - return false; - } - consumePatternCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && !isSyntaxCharacter(cp)) { - this.advance(); - this.onCharacter(start, this.index, cp); - return true; - } - return false; - } - consumeExtendedPatternCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && - cp !== CIRCUMFLEX_ACCENT && - cp !== DOLLAR_SIGN && - cp !== REVERSE_SOLIDUS && - cp !== FULL_STOP && - cp !== ASTERISK && - cp !== PLUS_SIGN && - cp !== QUESTION_MARK && - cp !== LEFT_PARENTHESIS && - cp !== RIGHT_PARENTHESIS && - cp !== LEFT_SQUARE_BRACKET && - cp !== VERTICAL_LINE) { - this.advance(); - this.onCharacter(start, this.index, cp); - return true; - } - return false; - } - consumeGroupSpecifier() { - if (this.eat(QUESTION_MARK)) { - if (this.eatGroupName()) { - if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) { - this._groupSpecifiers.addToScope(this._lastStrValue); - return true; - } - this.raise("Duplicate capture group name"); - } - this.raise("Invalid group"); - } - return false; - } - consumeAtomEscape() { - if (this.consumeBackreference() || - this.consumeCharacterClassEscape() || - this.consumeCharacterEscape() || - (this._nFlag && this.consumeKGroupName())) { - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - return false; - } - consumeBackreference() { - const start = this.index; - if (this.eatDecimalEscape()) { - const n = this._lastIntValue; - if (n <= this._numCapturingParens) { - this.onBackreference(start - 1, this.index, n); - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - consumeCharacterClassEscape() { - var _a; - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_D)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "digit", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_D)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "digit", true); - return {}; - } - if (this.eat(LATIN_SMALL_LETTER_S)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "space", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_S)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "space", true); - return {}; - } - if (this.eat(LATIN_SMALL_LETTER_W)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "word", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_W)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "word", true); - return {}; - } - let negate = false; - if (this._unicodeMode && - this.ecmaVersion >= 2018 && - (this.eat(LATIN_SMALL_LETTER_P) || - (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) { - this._lastIntValue = -1; - let result = null; - if (this.eat(LEFT_CURLY_BRACKET) && - (result = this.eatUnicodePropertyValueExpression()) && - this.eat(RIGHT_CURLY_BRACKET)) { - if (negate && result.strings) { - this.raise("Invalid property name"); - } - this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false); - return { mayContainStrings: result.strings }; - } - this.raise("Invalid property name"); - } - return null; - } - consumeCharacterEscape() { - const start = this.index; - if (this.eatControlEscape() || - this.eatCControlLetter() || - this.eatZero() || - this.eatHexEscapeSequence() || - this.eatRegExpUnicodeEscapeSequence() || - (!this.strict && - !this._unicodeMode && - this.eatLegacyOctalEscapeSequence()) || - this.eatIdentityEscape()) { - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - return false; - } - consumeKGroupName() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_K)) { - if (this.eatGroupName()) { - const groupName = this._lastStrValue; - this._backreferenceNames.add(groupName); - this.onBackreference(start - 1, this.index, groupName); - return true; - } - this.raise("Invalid named reference"); - } - return false; - } - consumeCharacterClass() { - const start = this.index; - if (this.eat(LEFT_SQUARE_BRACKET)) { - const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate, this._unicodeSetsMode); - const result = this.consumeClassContents(); - if (!this.eat(RIGHT_SQUARE_BRACKET)) { - if (this.currentCodePoint === -1) { - this.raise("Unterminated character class"); - } - this.raise("Invalid character in character class"); - } - if (negate && result.mayContainStrings) { - this.raise("Negated character class may contain strings"); - } - this.onCharacterClassLeave(start, this.index, negate); - return result; - } - return null; - } - consumeClassContents() { - if (this._unicodeSetsMode) { - if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) { - return {}; - } - const result = this.consumeClassSetExpression(); - return result; - } - const strict = this.strict || this._unicodeMode; - for (;;) { - const rangeStart = this.index; - if (!this.consumeClassAtom()) { - break; - } - const min = this._lastIntValue; - if (!this.eat(HYPHEN_MINUS)) { - continue; - } - this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS); - if (!this.consumeClassAtom()) { - break; - } - const max = this._lastIntValue; - if (min === -1 || max === -1) { - if (strict) { - this.raise("Invalid character class"); - } - continue; - } - if (min > max) { - this.raise("Range out of order in character class"); - } - this.onCharacterClassRange(rangeStart, this.index, min, max); - } - return {}; - } - consumeClassAtom() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && - cp !== REVERSE_SOLIDUS && - cp !== RIGHT_SQUARE_BRACKET) { - this.advance(); - this._lastIntValue = cp; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeClassEscape()) { - return true; - } - if (!this.strict && - this.currentCodePoint === LATIN_SMALL_LETTER_C) { - this._lastIntValue = REVERSE_SOLIDUS; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - consumeClassEscape() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_B)) { - this._lastIntValue = BACKSPACE; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - if (this._unicodeMode && this.eat(HYPHEN_MINUS)) { - this._lastIntValue = HYPHEN_MINUS; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - let cp = 0; - if (!this.strict && - !this._unicodeMode && - this.currentCodePoint === LATIN_SMALL_LETTER_C && - (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) { - this.advance(); - this.advance(); - this._lastIntValue = cp % 0x20; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - return (Boolean(this.consumeCharacterClassEscape()) || - this.consumeCharacterEscape()); - } - consumeClassSetExpression() { - const start = this.index; - let mayContainStrings = false; - let result = null; - if (this.consumeClassSetCharacter()) { - if (this.consumeClassSetRangeFromOperator(start)) { - this.consumeClassUnionRight({}); - return {}; - } - mayContainStrings = false; - } - else if ((result = this.consumeClassSetOperand())) { - mayContainStrings = result.mayContainStrings; - } - else { - const cp = this.currentCodePoint; - if (cp === REVERSE_SOLIDUS) { - this.advance(); - this.raise("Invalid escape"); - } - if (cp === this.nextCodePoint && - isClassSetReservedDoublePunctuatorCharacter(cp)) { - this.raise("Invalid set operation in character class"); - } - this.raise("Invalid character in character class"); - } - if (this.eat2(AMPERSAND, AMPERSAND)) { - while (this.currentCodePoint !== AMPERSAND && - (result = this.consumeClassSetOperand())) { - this.onClassIntersection(start, this.index); - if (!result.mayContainStrings) { - mayContainStrings = false; - } - if (this.eat2(AMPERSAND, AMPERSAND)) { - continue; - } - return { mayContainStrings }; - } - this.raise("Invalid character in character class"); - } - if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { - while (this.consumeClassSetOperand()) { - this.onClassSubtraction(start, this.index); - if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { - continue; - } - return { mayContainStrings }; - } - this.raise("Invalid character in character class"); - } - return this.consumeClassUnionRight({ mayContainStrings }); - } - consumeClassUnionRight(leftResult) { - let mayContainStrings = leftResult.mayContainStrings; - for (;;) { - const start = this.index; - if (this.consumeClassSetCharacter()) { - this.consumeClassSetRangeFromOperator(start); - continue; - } - const result = this.consumeClassSetOperand(); - if (result) { - if (result.mayContainStrings) { - mayContainStrings = true; - } - continue; - } - break; - } - return { mayContainStrings }; - } - consumeClassSetRangeFromOperator(start) { - const currentStart = this.index; - const min = this._lastIntValue; - if (this.eat(HYPHEN_MINUS)) { - if (this.consumeClassSetCharacter()) { - const max = this._lastIntValue; - if (min === -1 || max === -1) { - this.raise("Invalid character class"); - } - if (min > max) { - this.raise("Range out of order in character class"); - } - this.onCharacterClassRange(start, this.index, min, max); - return true; - } - this.rewind(currentStart); - } - return false; - } - consumeClassSetOperand() { - let result = null; - if ((result = this.consumeNestedClass())) { - return result; - } - if ((result = this.consumeClassStringDisjunction())) { - return result; - } - if (this.consumeClassSetCharacter()) { - return {}; - } - return null; - } - consumeNestedClass() { - const start = this.index; - if (this.eat(LEFT_SQUARE_BRACKET)) { - const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate, true); - const result = this.consumeClassContents(); - if (!this.eat(RIGHT_SQUARE_BRACKET)) { - this.raise("Unterminated character class"); - } - if (negate && result.mayContainStrings) { - this.raise("Negated character class may contain strings"); - } - this.onCharacterClassLeave(start, this.index, negate); - return result; - } - if (this.eat(REVERSE_SOLIDUS)) { - const result = this.consumeCharacterClassEscape(); - if (result) { - return result; - } - this.rewind(start); - } - return null; - } - consumeClassStringDisjunction() { - const start = this.index; - if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) { - this.onClassStringDisjunctionEnter(start); - let i = 0; - let mayContainStrings = false; - do { - if (this.consumeClassString(i++).mayContainStrings) { - mayContainStrings = true; - } - } while (this.eat(VERTICAL_LINE)); - if (this.eat(RIGHT_CURLY_BRACKET)) { - this.onClassStringDisjunctionLeave(start, this.index); - return { mayContainStrings }; - } - this.raise("Unterminated class string disjunction"); - } - return null; - } - consumeClassString(i) { - const start = this.index; - let count = 0; - this.onStringAlternativeEnter(start, i); - while (this.currentCodePoint !== -1 && - this.consumeClassSetCharacter()) { - count++; - } - this.onStringAlternativeLeave(start, this.index, i); - return { mayContainStrings: count !== 1 }; - } - consumeClassSetCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== this.nextCodePoint || - !isClassSetReservedDoublePunctuatorCharacter(cp)) { - if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) { - this._lastIntValue = cp; - this.advance(); - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - } - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeCharacterEscape()) { - return true; - } - if (isClassSetReservedPunctuator(this.currentCodePoint)) { - this._lastIntValue = this.currentCodePoint; - this.advance(); - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.eat(LATIN_SMALL_LETTER_B)) { - this._lastIntValue = BACKSPACE; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - this.rewind(start); - } - return false; - } - eatGroupName() { - if (this.eat(LESS_THAN_SIGN)) { - if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) { - return true; - } - this.raise("Invalid capture group name"); - } - return false; - } - eatRegExpIdentifierName() { - if (this.eatRegExpIdentifierStart()) { - this._lastStrValue = String.fromCodePoint(this._lastIntValue); - while (this.eatRegExpIdentifierPart()) { - this._lastStrValue += String.fromCodePoint(this._lastIntValue); - } - return true; - } - return false; - } - eatRegExpIdentifierStart() { - const start = this.index; - const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; - let cp = this.currentCodePoint; - this.advance(); - if (cp === REVERSE_SOLIDUS && - this.eatRegExpUnicodeEscapeSequence(forceUFlag)) { - cp = this._lastIntValue; - } - else if (forceUFlag && - isLeadSurrogate(cp) && - isTrailSurrogate(this.currentCodePoint)) { - cp = combineSurrogatePair(cp, this.currentCodePoint); - this.advance(); - } - if (isIdentifierStartChar(cp)) { - this._lastIntValue = cp; - return true; - } - if (this.index !== start) { - this.rewind(start); - } - return false; - } - eatRegExpIdentifierPart() { - const start = this.index; - const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; - let cp = this.currentCodePoint; - this.advance(); - if (cp === REVERSE_SOLIDUS && - this.eatRegExpUnicodeEscapeSequence(forceUFlag)) { - cp = this._lastIntValue; - } - else if (forceUFlag && - isLeadSurrogate(cp) && - isTrailSurrogate(this.currentCodePoint)) { - cp = combineSurrogatePair(cp, this.currentCodePoint); - this.advance(); - } - if (isIdentifierPartChar(cp)) { - this._lastIntValue = cp; - return true; - } - if (this.index !== start) { - this.rewind(start); - } - return false; - } - eatCControlLetter() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_C)) { - if (this.eatControlLetter()) { - return true; - } - this.rewind(start); - } - return false; - } - eatZero() { - if (this.currentCodePoint === DIGIT_ZERO && - !isDecimalDigit(this.nextCodePoint)) { - this._lastIntValue = 0; - this.advance(); - return true; - } - return false; - } - eatControlEscape() { - if (this.eat(LATIN_SMALL_LETTER_F)) { - this._lastIntValue = FORM_FEED; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_N)) { - this._lastIntValue = LINE_FEED; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_R)) { - this._lastIntValue = CARRIAGE_RETURN; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_T)) { - this._lastIntValue = CHARACTER_TABULATION; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_V)) { - this._lastIntValue = LINE_TABULATION; - return true; - } - return false; - } - eatControlLetter() { - const cp = this.currentCodePoint; - if (isLatinLetter(cp)) { - this.advance(); - this._lastIntValue = cp % 0x20; - return true; - } - return false; - } - eatRegExpUnicodeEscapeSequence(forceUFlag = false) { - const start = this.index; - const uFlag = forceUFlag || this._unicodeMode; - if (this.eat(LATIN_SMALL_LETTER_U)) { - if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) || - this.eatFixedHexDigits(4) || - (uFlag && this.eatRegExpUnicodeCodePointEscape())) { - return true; - } - if (this.strict || uFlag) { - this.raise("Invalid unicode escape"); - } - this.rewind(start); - } - return false; - } - eatRegExpUnicodeSurrogatePairEscape() { - const start = this.index; - if (this.eatFixedHexDigits(4)) { - const lead = this._lastIntValue; - if (isLeadSurrogate(lead) && - this.eat(REVERSE_SOLIDUS) && - this.eat(LATIN_SMALL_LETTER_U) && - this.eatFixedHexDigits(4)) { - const trail = this._lastIntValue; - if (isTrailSurrogate(trail)) { - this._lastIntValue = combineSurrogatePair(lead, trail); - return true; - } - } - this.rewind(start); - } - return false; - } - eatRegExpUnicodeCodePointEscape() { - const start = this.index; - if (this.eat(LEFT_CURLY_BRACKET) && - this.eatHexDigits() && - this.eat(RIGHT_CURLY_BRACKET) && - isValidUnicode(this._lastIntValue)) { - return true; - } - this.rewind(start); - return false; - } - eatIdentityEscape() { - const cp = this.currentCodePoint; - if (this.isValidIdentityEscape(cp)) { - this._lastIntValue = cp; - this.advance(); - return true; - } - return false; - } - isValidIdentityEscape(cp) { - if (cp === -1) { - return false; - } - if (this._unicodeMode) { - return isSyntaxCharacter(cp) || cp === SOLIDUS; - } - if (this.strict) { - return !isIdContinue(cp); - } - if (this._nFlag) { - return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K); - } - return cp !== LATIN_SMALL_LETTER_C; - } - eatDecimalEscape() { - this._lastIntValue = 0; - let cp = this.currentCodePoint; - if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) { - do { - this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO); - this.advance(); - } while ((cp = this.currentCodePoint) >= DIGIT_ZERO && - cp <= DIGIT_NINE); - return true; - } - return false; - } - eatUnicodePropertyValueExpression() { - const start = this.index; - if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) { - const key = this._lastStrValue; - if (this.eatUnicodePropertyValue()) { - const value = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, key, value)) { - return { - key, - value: value || null, - }; - } - this.raise("Invalid property name"); - } - } - this.rewind(start); - if (this.eatLoneUnicodePropertyNameOrValue()) { - const nameOrValue = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) { - return { - key: "General_Category", - value: nameOrValue || null, - }; - } - if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) { - return { - key: nameOrValue, - value: null, - }; - } - if (this._unicodeSetsMode && - isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) { - return { - key: nameOrValue, - value: null, - strings: true, - }; - } - this.raise("Invalid property name"); - } - return null; - } - eatUnicodePropertyName() { - this._lastStrValue = ""; - while (isUnicodePropertyNameCharacter(this.currentCodePoint)) { - this._lastStrValue += String.fromCodePoint(this.currentCodePoint); - this.advance(); - } - return this._lastStrValue !== ""; - } - eatUnicodePropertyValue() { - this._lastStrValue = ""; - while (isUnicodePropertyValueCharacter(this.currentCodePoint)) { - this._lastStrValue += String.fromCodePoint(this.currentCodePoint); - this.advance(); - } - return this._lastStrValue !== ""; - } - eatLoneUnicodePropertyNameOrValue() { - return this.eatUnicodePropertyValue(); - } - eatHexEscapeSequence() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_X)) { - if (this.eatFixedHexDigits(2)) { - return true; - } - if (this._unicodeMode || this.strict) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - eatDecimalDigits() { - const start = this.index; - this._lastIntValue = 0; - while (isDecimalDigit(this.currentCodePoint)) { - this._lastIntValue = - 10 * this._lastIntValue + digitToInt(this.currentCodePoint); - this.advance(); - } - return this.index !== start; - } - eatHexDigits() { - const start = this.index; - this._lastIntValue = 0; - while (isHexDigit(this.currentCodePoint)) { - this._lastIntValue = - 16 * this._lastIntValue + digitToInt(this.currentCodePoint); - this.advance(); - } - return this.index !== start; - } - eatLegacyOctalEscapeSequence() { - if (this.eatOctalDigit()) { - const n1 = this._lastIntValue; - if (this.eatOctalDigit()) { - const n2 = this._lastIntValue; - if (n1 <= 3 && this.eatOctalDigit()) { - this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue; - } - else { - this._lastIntValue = n1 * 8 + n2; - } - } - else { - this._lastIntValue = n1; - } - return true; - } - return false; - } - eatOctalDigit() { - const cp = this.currentCodePoint; - if (isOctalDigit(cp)) { - this.advance(); - this._lastIntValue = cp - DIGIT_ZERO; - return true; - } - this._lastIntValue = 0; - return false; - } - eatFixedHexDigits(length) { - const start = this.index; - this._lastIntValue = 0; - for (let i = 0; i < length; ++i) { - const cp = this.currentCodePoint; - if (!isHexDigit(cp)) { - this.rewind(start); - return false; - } - this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp); - this.advance(); - } - return true; - } -} - -const DUMMY_PATTERN = {}; -const DUMMY_FLAGS = {}; -const DUMMY_CAPTURING_GROUP = {}; -function isClassSetOperand(node) { - return (node.type === "Character" || - node.type === "CharacterSet" || - node.type === "CharacterClass" || - node.type === "ExpressionCharacterClass" || - node.type === "ClassStringDisjunction"); -} -class RegExpParserState { - constructor(options) { - var _a; - this._node = DUMMY_PATTERN; - this._expressionBufferMap = new Map(); - this._flags = DUMMY_FLAGS; - this._backreferences = []; - this._capturingGroups = []; - this.source = ""; - this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict); - this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; - } - get pattern() { - if (this._node.type !== "Pattern") { - throw new Error("UnknownError"); - } - return this._node; - } - get flags() { - if (this._flags.type !== "Flags") { - throw new Error("UnknownError"); - } - return this._flags; - } - onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) { - this._flags = { - type: "Flags", - parent: null, - start, - end, - raw: this.source.slice(start, end), - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }; - } - onPatternEnter(start) { - this._node = { - type: "Pattern", - parent: null, - start, - end: start, - raw: "", - alternatives: [], - }; - this._backreferences.length = 0; - this._capturingGroups.length = 0; - } - onPatternLeave(start, end) { - this._node.end = end; - this._node.raw = this.source.slice(start, end); - for (const reference of this._backreferences) { - const ref = reference.ref; - const groups = typeof ref === "number" - ? [this._capturingGroups[ref - 1]] - : this._capturingGroups.filter((g) => g.name === ref); - if (groups.length === 1) { - const group = groups[0]; - reference.ambiguous = false; - reference.resolved = group; - } - else { - reference.ambiguous = true; - reference.resolved = groups; - } - for (const group of groups) { - group.references.push(reference); - } - } - } - onAlternativeEnter(start) { - const parent = this._node; - if (parent.type !== "Assertion" && - parent.type !== "CapturingGroup" && - parent.type !== "Group" && - parent.type !== "Pattern") { - throw new Error("UnknownError"); - } - this._node = { - type: "Alternative", - parent, - start, - end: start, - raw: "", - elements: [], - }; - parent.alternatives.push(this._node); - } - onAlternativeLeave(start, end) { - const node = this._node; - if (node.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onGroupEnter(start) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { - type: "Group", - parent, - start, - end: start, - raw: "", - alternatives: [], - }; - parent.elements.push(this._node); - } - onGroupLeave(start, end) { - const node = this._node; - if (node.type !== "Group" || node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onCapturingGroupEnter(start, name) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { - type: "CapturingGroup", - parent, - start, - end: start, - raw: "", - name, - alternatives: [], - references: [], - }; - parent.elements.push(this._node); - this._capturingGroups.push(this._node); - } - onCapturingGroupLeave(start, end) { - const node = this._node; - if (node.type !== "CapturingGroup" || - node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onQuantifier(start, end, min, max, greedy) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const element = parent.elements.pop(); - if (element == null || - element.type === "Quantifier" || - (element.type === "Assertion" && element.kind !== "lookahead")) { - throw new Error("UnknownError"); - } - const node = { - type: "Quantifier", - parent, - start: element.start, - end, - raw: this.source.slice(element.start, end), - min, - max, - greedy, - element, - }; - parent.elements.push(node); - element.parent = node; - } - onLookaroundAssertionEnter(start, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const node = (this._node = { - type: "Assertion", - parent, - start, - end: start, - raw: "", - kind, - negate, - alternatives: [], - }); - parent.elements.push(node); - } - onLookaroundAssertionLeave(start, end) { - const node = this._node; - if (node.type !== "Assertion" || node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onEdgeAssertion(start, end, kind) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Assertion", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - }); - } - onWordBoundaryAssertion(start, end, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Assertion", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - negate, - }); - } - onAnyCharacterSet(start, end, kind) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "CharacterSet", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - }); - } - onEscapeCharacterSet(start, end, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "CharacterSet", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - negate, - }); - } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { - const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - const base = { - type: "CharacterSet", - parent: null, - start, - end, - raw: this.source.slice(start, end), - kind, - strings: null, - key, - }; - if (strings) { - if ((parent.type === "CharacterClass" && !parent.unicodeSets) || - negate || - value !== null) { - throw new Error("UnknownError"); - } - parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate })); - } - else { - parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate })); - } - } - onCharacter(start, end, value) { - const parent = this._node; - if (parent.type !== "Alternative" && - parent.type !== "CharacterClass" && - parent.type !== "StringAlternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Character", - parent, - start, - end, - raw: this.source.slice(start, end), - value, - }); - } - onBackreference(start, end, ref) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const node = { - type: "Backreference", - parent, - start, - end, - raw: this.source.slice(start, end), - ref, - ambiguous: false, - resolved: DUMMY_CAPTURING_GROUP, - }; - parent.elements.push(node); - this._backreferences.push(node); - } - onCharacterClassEnter(start, negate, unicodeSets) { - const parent = this._node; - const base = { - type: "CharacterClass", - parent, - start, - end: start, - raw: "", - unicodeSets, - negate, - elements: [], - }; - if (parent.type === "Alternative") { - const node = Object.assign(Object.assign({}, base), { parent }); - this._node = node; - parent.elements.push(node); - } - else if (parent.type === "CharacterClass" && - parent.unicodeSets && - unicodeSets) { - const node = Object.assign(Object.assign({}, base), { parent, - unicodeSets }); - this._node = node; - parent.elements.push(node); - } - else { - throw new Error("UnknownError"); - } - } - onCharacterClassLeave(start, end) { - const node = this._node; - if (node.type !== "CharacterClass" || - (node.parent.type !== "Alternative" && - node.parent.type !== "CharacterClass")) { - throw new Error("UnknownError"); - } - const parent = node.parent; - node.end = end; - node.raw = this.source.slice(start, end); - this._node = parent; - const expression = this._expressionBufferMap.get(node); - if (!expression) { - return; - } - if (node.elements.length > 0) { - throw new Error("UnknownError"); - } - this._expressionBufferMap.delete(node); - const newNode = { - type: "ExpressionCharacterClass", - parent, - start: node.start, - end: node.end, - raw: node.raw, - negate: node.negate, - expression, - }; - expression.parent = newNode; - if (node !== parent.elements.pop()) { - throw new Error("UnknownError"); - } - parent.elements.push(newNode); - } - onCharacterClassRange(start, end) { - const parent = this._node; - if (parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - const elements = parent.elements; - const max = elements.pop(); - if (!max || max.type !== "Character") { - throw new Error("UnknownError"); - } - if (!parent.unicodeSets) { - const hyphen = elements.pop(); - if (!hyphen || - hyphen.type !== "Character" || - hyphen.value !== HYPHEN_MINUS) { - throw new Error("UnknownError"); - } - } - const min = elements.pop(); - if (!min || min.type !== "Character") { - throw new Error("UnknownError"); - } - const node = { - type: "CharacterClassRange", - parent, - start, - end, - raw: this.source.slice(start, end), - min, - max, - }; - min.parent = node; - max.parent = node; - elements.push(node); - } - onClassIntersection(start, end) { - var _a; - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - const right = parent.elements.pop(); - const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop(); - if (!left || - !right || - left.type === "ClassSubtraction" || - (left.type !== "ClassIntersection" && !isClassSetOperand(left)) || - !isClassSetOperand(right)) { - throw new Error("UnknownError"); - } - const node = { - type: "ClassIntersection", - parent: parent, - start, - end, - raw: this.source.slice(start, end), - left, - right, - }; - left.parent = node; - right.parent = node; - this._expressionBufferMap.set(parent, node); - } - onClassSubtraction(start, end) { - var _a; - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - const right = parent.elements.pop(); - const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop(); - if (!left || - !right || - left.type === "ClassIntersection" || - (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) || - !isClassSetOperand(right)) { - throw new Error("UnknownError"); - } - const node = { - type: "ClassSubtraction", - parent: parent, - start, - end, - raw: this.source.slice(start, end), - left, - right, - }; - left.parent = node; - right.parent = node; - this._expressionBufferMap.set(parent, node); - } - onClassStringDisjunctionEnter(start) { - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - this._node = { - type: "ClassStringDisjunction", - parent, - start, - end: start, - raw: "", - alternatives: [], - }; - parent.elements.push(this._node); - } - onClassStringDisjunctionLeave(start, end) { - const node = this._node; - if (node.type !== "ClassStringDisjunction" || - node.parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onStringAlternativeEnter(start) { - const parent = this._node; - if (parent.type !== "ClassStringDisjunction") { - throw new Error("UnknownError"); - } - this._node = { - type: "StringAlternative", - parent, - start, - end: start, - raw: "", - elements: [], - }; - parent.alternatives.push(this._node); - } - onStringAlternativeLeave(start, end) { - const node = this._node; - if (node.type !== "StringAlternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } -} -class RegExpParser { - constructor(options) { - this._state = new RegExpParserState(options); - this._validator = new RegExpValidator(this._state); - } - parseLiteral(source, start = 0, end = source.length) { - this._state.source = source; - this._validator.validateLiteral(source, start, end); - const pattern = this._state.pattern; - const flags = this._state.flags; - const literal = { - type: "RegExpLiteral", - parent: null, - start, - end, - raw: source, - pattern, - flags, - }; - pattern.parent = literal; - flags.parent = literal; - return literal; - } - parseFlags(source, start = 0, end = source.length) { - this._state.source = source; - this._validator.validateFlags(source, start, end); - return this._state.flags; - } - parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - this._state.source = source; - this._validator.validatePattern(source, start, end, uFlagOrFlags); - return this._state.pattern; - } -} - -class RegExpVisitor { - constructor(handlers) { - this._handlers = handlers; - } - visit(node) { - switch (node.type) { - case "Alternative": - this.visitAlternative(node); - break; - case "Assertion": - this.visitAssertion(node); - break; - case "Backreference": - this.visitBackreference(node); - break; - case "CapturingGroup": - this.visitCapturingGroup(node); - break; - case "Character": - this.visitCharacter(node); - break; - case "CharacterClass": - this.visitCharacterClass(node); - break; - case "CharacterClassRange": - this.visitCharacterClassRange(node); - break; - case "CharacterSet": - this.visitCharacterSet(node); - break; - case "ClassIntersection": - this.visitClassIntersection(node); - break; - case "ClassStringDisjunction": - this.visitClassStringDisjunction(node); - break; - case "ClassSubtraction": - this.visitClassSubtraction(node); - break; - case "ExpressionCharacterClass": - this.visitExpressionCharacterClass(node); - break; - case "Flags": - this.visitFlags(node); - break; - case "Group": - this.visitGroup(node); - break; - case "Pattern": - this.visitPattern(node); - break; - case "Quantifier": - this.visitQuantifier(node); - break; - case "RegExpLiteral": - this.visitRegExpLiteral(node); - break; - case "StringAlternative": - this.visitStringAlternative(node); - break; - default: - throw new Error(`Unknown type: ${node.type}`); - } - } - visitAlternative(node) { - if (this._handlers.onAlternativeEnter) { - this._handlers.onAlternativeEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onAlternativeLeave) { - this._handlers.onAlternativeLeave(node); - } - } - visitAssertion(node) { - if (this._handlers.onAssertionEnter) { - this._handlers.onAssertionEnter(node); - } - if (node.kind === "lookahead" || node.kind === "lookbehind") { - node.alternatives.forEach(this.visit, this); - } - if (this._handlers.onAssertionLeave) { - this._handlers.onAssertionLeave(node); - } - } - visitBackreference(node) { - if (this._handlers.onBackreferenceEnter) { - this._handlers.onBackreferenceEnter(node); - } - if (this._handlers.onBackreferenceLeave) { - this._handlers.onBackreferenceLeave(node); - } - } - visitCapturingGroup(node) { - if (this._handlers.onCapturingGroupEnter) { - this._handlers.onCapturingGroupEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onCapturingGroupLeave) { - this._handlers.onCapturingGroupLeave(node); - } - } - visitCharacter(node) { - if (this._handlers.onCharacterEnter) { - this._handlers.onCharacterEnter(node); - } - if (this._handlers.onCharacterLeave) { - this._handlers.onCharacterLeave(node); - } - } - visitCharacterClass(node) { - if (this._handlers.onCharacterClassEnter) { - this._handlers.onCharacterClassEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onCharacterClassLeave) { - this._handlers.onCharacterClassLeave(node); - } - } - visitCharacterClassRange(node) { - if (this._handlers.onCharacterClassRangeEnter) { - this._handlers.onCharacterClassRangeEnter(node); - } - this.visitCharacter(node.min); - this.visitCharacter(node.max); - if (this._handlers.onCharacterClassRangeLeave) { - this._handlers.onCharacterClassRangeLeave(node); - } - } - visitCharacterSet(node) { - if (this._handlers.onCharacterSetEnter) { - this._handlers.onCharacterSetEnter(node); - } - if (this._handlers.onCharacterSetLeave) { - this._handlers.onCharacterSetLeave(node); - } - } - visitClassIntersection(node) { - if (this._handlers.onClassIntersectionEnter) { - this._handlers.onClassIntersectionEnter(node); - } - this.visit(node.left); - this.visit(node.right); - if (this._handlers.onClassIntersectionLeave) { - this._handlers.onClassIntersectionLeave(node); - } - } - visitClassStringDisjunction(node) { - if (this._handlers.onClassStringDisjunctionEnter) { - this._handlers.onClassStringDisjunctionEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onClassStringDisjunctionLeave) { - this._handlers.onClassStringDisjunctionLeave(node); - } - } - visitClassSubtraction(node) { - if (this._handlers.onClassSubtractionEnter) { - this._handlers.onClassSubtractionEnter(node); - } - this.visit(node.left); - this.visit(node.right); - if (this._handlers.onClassSubtractionLeave) { - this._handlers.onClassSubtractionLeave(node); - } - } - visitExpressionCharacterClass(node) { - if (this._handlers.onExpressionCharacterClassEnter) { - this._handlers.onExpressionCharacterClassEnter(node); - } - this.visit(node.expression); - if (this._handlers.onExpressionCharacterClassLeave) { - this._handlers.onExpressionCharacterClassLeave(node); - } - } - visitFlags(node) { - if (this._handlers.onFlagsEnter) { - this._handlers.onFlagsEnter(node); - } - if (this._handlers.onFlagsLeave) { - this._handlers.onFlagsLeave(node); - } - } - visitGroup(node) { - if (this._handlers.onGroupEnter) { - this._handlers.onGroupEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onGroupLeave) { - this._handlers.onGroupLeave(node); - } - } - visitPattern(node) { - if (this._handlers.onPatternEnter) { - this._handlers.onPatternEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onPatternLeave) { - this._handlers.onPatternLeave(node); - } - } - visitQuantifier(node) { - if (this._handlers.onQuantifierEnter) { - this._handlers.onQuantifierEnter(node); - } - this.visit(node.element); - if (this._handlers.onQuantifierLeave) { - this._handlers.onQuantifierLeave(node); - } - } - visitRegExpLiteral(node) { - if (this._handlers.onRegExpLiteralEnter) { - this._handlers.onRegExpLiteralEnter(node); - } - this.visitPattern(node.pattern); - this.visitFlags(node.flags); - if (this._handlers.onRegExpLiteralLeave) { - this._handlers.onRegExpLiteralLeave(node); - } - } - visitStringAlternative(node) { - if (this._handlers.onStringAlternativeEnter) { - this._handlers.onStringAlternativeEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onStringAlternativeLeave) { - this._handlers.onStringAlternativeLeave(node); - } - } -} - -function parseRegExpLiteral(source, options) { - return new RegExpParser(options).parseLiteral(String(source)); -} -function validateRegExpLiteral(source, options) { - new RegExpValidator(options).validateLiteral(source); -} -function visitRegExpAST(node, handlers) { - new RegExpVisitor(handlers).visit(node); -} - -exports.AST = ast; -exports.RegExpParser = RegExpParser; -exports.RegExpSyntaxError = RegExpSyntaxError; -exports.RegExpValidator = RegExpValidator; -exports.parseRegExpLiteral = parseRegExpLiteral; -exports.validateRegExpLiteral = validateRegExpLiteral; -exports.visitRegExpAST = visitRegExpAST; -//# sourceMappingURL=index.js.map diff --git a/graphql/node_modules/@eslint-community/regexpp/index.js.map b/graphql/node_modules/@eslint-community/regexpp/index.js.map deleted file mode 100644 index 933afbeb..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAA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AwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;ACjRe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;;"} \ No newline at end of file diff --git a/graphql/node_modules/@eslint-community/regexpp/index.mjs b/graphql/node_modules/@eslint-community/regexpp/index.mjs deleted file mode 100644 index 6589e43f..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/index.mjs +++ /dev/null @@ -1,2858 +0,0 @@ -var ast = /*#__PURE__*/Object.freeze({ - __proto__: null -}); - -const latestEcmaVersion = 2025; - -let largeIdStartRanges = undefined; -let largeIdContinueRanges = undefined; -function isIdStart(cp) { - if (cp < 0x41) - return false; - if (cp < 0x5b) - return true; - if (cp < 0x61) - return false; - if (cp < 0x7b) - return true; - return isLargeIdStart(cp); -} -function isIdContinue(cp) { - if (cp < 0x30) - return false; - if (cp < 0x3a) - return true; - if (cp < 0x41) - return false; - if (cp < 0x5b) - return true; - if (cp === 0x5f) - return true; - if (cp < 0x61) - return false; - if (cp < 0x7b) - return true; - return isLargeIdStart(cp) || isLargeIdContinue(cp); -} -function isLargeIdStart(cp) { - return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges())); -} -function isLargeIdContinue(cp) { - return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges())); -} -function initLargeIdStartRanges() { - return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f"); -} -function initLargeIdContinueRanges() { - return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 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1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n"); -} -function isInRange(cp, ranges) { - let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0; - while (l < r) { - i = ((l + r) / 2) | 0; - min = ranges[2 * i]; - max = ranges[2 * i + 1]; - if (cp < min) { - r = i; - } - else if (cp > max) { - l = i + 1; - } - else { - return true; - } - } - return false; -} -function restoreRanges(data) { - let last = 0; - return data.split(" ").map((s) => (last += parseInt(s, 36) | 0)); -} - -class DataSet { - constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025) { - this._raw2018 = raw2018; - this._raw2019 = raw2019; - this._raw2020 = raw2020; - this._raw2021 = raw2021; - this._raw2022 = raw2022; - this._raw2023 = raw2023; - this._raw2024 = raw2024; - this._raw2025 = raw2025; - } - get es2018() { - var _a; - return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" ")))); - } - get es2019() { - var _a; - return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" ")))); - } - get es2020() { - var _a; - return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" ")))); - } - get es2021() { - var _a; - return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" ")))); - } - get es2022() { - var _a; - return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" ")))); - } - get es2023() { - var _a; - return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" ")))); - } - get es2024() { - var _a; - return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" ")))); - } - get es2025() { - var _a; - return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" ")))); - } -} -const gcNameSet = new Set(["General_Category", "gc"]); -const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]); -const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", ""); -const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", "", ""); -const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", ""); -const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", ""); -function isValidUnicodeProperty(version, name, value) { - if (gcNameSet.has(name)) { - return version >= 2018 && gcValueSets.es2018.has(value); - } - if (scNameSet.has(name)) { - return ((version >= 2018 && scValueSets.es2018.has(value)) || - (version >= 2019 && scValueSets.es2019.has(value)) || - (version >= 2020 && scValueSets.es2020.has(value)) || - (version >= 2021 && scValueSets.es2021.has(value)) || - (version >= 2022 && scValueSets.es2022.has(value)) || - (version >= 2023 && scValueSets.es2023.has(value))); - } - return false; -} -function isValidLoneUnicodeProperty(version, value) { - return ((version >= 2018 && binPropertySets.es2018.has(value)) || - (version >= 2019 && binPropertySets.es2019.has(value)) || - (version >= 2021 && binPropertySets.es2021.has(value))); -} -function isValidLoneUnicodePropertyOfString(version, value) { - return version >= 2024 && binPropertyOfStringsSets.es2024.has(value); -} - -const BACKSPACE = 0x08; -const CHARACTER_TABULATION = 0x09; -const LINE_FEED = 0x0a; -const LINE_TABULATION = 0x0b; -const FORM_FEED = 0x0c; -const CARRIAGE_RETURN = 0x0d; -const EXCLAMATION_MARK = 0x21; -const NUMBER_SIGN = 0x23; -const DOLLAR_SIGN = 0x24; -const PERCENT_SIGN = 0x25; -const AMPERSAND = 0x26; -const LEFT_PARENTHESIS = 0x28; -const RIGHT_PARENTHESIS = 0x29; -const ASTERISK = 0x2a; -const PLUS_SIGN = 0x2b; -const COMMA = 0x2c; -const HYPHEN_MINUS = 0x2d; -const FULL_STOP = 0x2e; -const SOLIDUS = 0x2f; -const DIGIT_ZERO = 0x30; -const DIGIT_ONE = 0x31; -const DIGIT_SEVEN = 0x37; -const DIGIT_NINE = 0x39; -const COLON = 0x3a; -const SEMICOLON = 0x3b; -const LESS_THAN_SIGN = 0x3c; -const EQUALS_SIGN = 0x3d; -const GREATER_THAN_SIGN = 0x3e; -const QUESTION_MARK = 0x3f; -const COMMERCIAL_AT = 0x40; -const LATIN_CAPITAL_LETTER_A = 0x41; -const LATIN_CAPITAL_LETTER_B = 0x42; -const LATIN_CAPITAL_LETTER_D = 0x44; -const LATIN_CAPITAL_LETTER_F = 0x46; -const LATIN_CAPITAL_LETTER_P = 0x50; -const LATIN_CAPITAL_LETTER_S = 0x53; -const LATIN_CAPITAL_LETTER_W = 0x57; -const LATIN_CAPITAL_LETTER_Z = 0x5a; -const LOW_LINE = 0x5f; -const LATIN_SMALL_LETTER_A = 0x61; -const LATIN_SMALL_LETTER_B = 0x62; -const LATIN_SMALL_LETTER_C = 0x63; -const LATIN_SMALL_LETTER_D = 0x64; -const LATIN_SMALL_LETTER_F = 0x66; -const LATIN_SMALL_LETTER_G = 0x67; -const LATIN_SMALL_LETTER_I = 0x69; -const LATIN_SMALL_LETTER_K = 0x6b; -const LATIN_SMALL_LETTER_M = 0x6d; -const LATIN_SMALL_LETTER_N = 0x6e; -const LATIN_SMALL_LETTER_P = 0x70; -const LATIN_SMALL_LETTER_Q = 0x71; -const LATIN_SMALL_LETTER_R = 0x72; -const LATIN_SMALL_LETTER_S = 0x73; -const LATIN_SMALL_LETTER_T = 0x74; -const LATIN_SMALL_LETTER_U = 0x75; -const LATIN_SMALL_LETTER_V = 0x76; -const LATIN_SMALL_LETTER_W = 0x77; -const LATIN_SMALL_LETTER_X = 0x78; -const LATIN_SMALL_LETTER_Y = 0x79; -const LATIN_SMALL_LETTER_Z = 0x7a; -const LEFT_SQUARE_BRACKET = 0x5b; -const REVERSE_SOLIDUS = 0x5c; -const RIGHT_SQUARE_BRACKET = 0x5d; -const CIRCUMFLEX_ACCENT = 0x5e; -const GRAVE_ACCENT = 0x60; -const LEFT_CURLY_BRACKET = 0x7b; -const VERTICAL_LINE = 0x7c; -const RIGHT_CURLY_BRACKET = 0x7d; -const TILDE = 0x7e; -const ZERO_WIDTH_NON_JOINER = 0x200c; -const ZERO_WIDTH_JOINER = 0x200d; -const LINE_SEPARATOR = 0x2028; -const PARAGRAPH_SEPARATOR = 0x2029; -const MIN_CODE_POINT = 0x00; -const MAX_CODE_POINT = 0x10ffff; -function isLatinLetter(code) { - return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) || - (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z)); -} -function isDecimalDigit(code) { - return code >= DIGIT_ZERO && code <= DIGIT_NINE; -} -function isOctalDigit(code) { - return code >= DIGIT_ZERO && code <= DIGIT_SEVEN; -} -function isHexDigit(code) { - return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) || - (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) || - (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F)); -} -function isLineTerminator(code) { - return (code === LINE_FEED || - code === CARRIAGE_RETURN || - code === LINE_SEPARATOR || - code === PARAGRAPH_SEPARATOR); -} -function isValidUnicode(code) { - return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT; -} -function digitToInt(code) { - if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) { - return code - LATIN_SMALL_LETTER_A + 10; - } - if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) { - return code - LATIN_CAPITAL_LETTER_A + 10; - } - return code - DIGIT_ZERO; -} -function isLeadSurrogate(code) { - return code >= 0xd800 && code <= 0xdbff; -} -function isTrailSurrogate(code) { - return code >= 0xdc00 && code <= 0xdfff; -} -function combineSurrogatePair(lead, trail) { - return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000; -} - -class GroupSpecifiersAsES2018 { - constructor() { - this.groupName = new Set(); - } - clear() { - this.groupName.clear(); - } - isEmpty() { - return !this.groupName.size; - } - hasInPattern(name) { - return this.groupName.has(name); - } - hasInScope(name) { - return this.hasInPattern(name); - } - addToScope(name) { - this.groupName.add(name); - } - enterDisjunction() { - } - enterAlternative() { - } - leaveDisjunction() { - } -} -class BranchID { - constructor(parent, base) { - this.parent = parent; - this.base = base !== null && base !== void 0 ? base : this; - } - separatedFrom(other) { - var _a, _b; - if (this.base === other.base && this !== other) { - return true; - } - if (other.parent && this.separatedFrom(other.parent)) { - return true; - } - return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false; - } - child() { - return new BranchID(this, null); - } - sibling() { - return new BranchID(this.parent, this.base); - } -} -class GroupSpecifiersAsES2025 { - constructor() { - this.branchID = new BranchID(null, null); - this.groupNames = new Map(); - } - clear() { - this.branchID = new BranchID(null, null); - this.groupNames.clear(); - } - isEmpty() { - return !this.groupNames.size; - } - enterDisjunction() { - this.branchID = this.branchID.child(); - } - enterAlternative(index) { - if (index === 0) { - return; - } - this.branchID = this.branchID.sibling(); - } - leaveDisjunction() { - this.branchID = this.branchID.parent; - } - hasInPattern(name) { - return this.groupNames.has(name); - } - hasInScope(name) { - const branches = this.groupNames.get(name); - if (!branches) { - return false; - } - for (const branch of branches) { - if (!branch.separatedFrom(this.branchID)) { - return true; - } - } - return false; - } - addToScope(name) { - const branches = this.groupNames.get(name); - if (branches) { - branches.push(this.branchID); - return; - } - this.groupNames.set(name, [this.branchID]); - } -} - -const legacyImpl = { - at(s, end, i) { - return i < end ? s.charCodeAt(i) : -1; - }, - width(c) { - return 1; - }, -}; -const unicodeImpl = { - at(s, end, i) { - return i < end ? s.codePointAt(i) : -1; - }, - width(c) { - return c > 0xffff ? 2 : 1; - }, -}; -class Reader { - constructor() { - this._impl = legacyImpl; - this._s = ""; - this._i = 0; - this._end = 0; - this._cp1 = -1; - this._w1 = 1; - this._cp2 = -1; - this._w2 = 1; - this._cp3 = -1; - this._w3 = 1; - this._cp4 = -1; - } - get source() { - return this._s; - } - get index() { - return this._i; - } - get currentCodePoint() { - return this._cp1; - } - get nextCodePoint() { - return this._cp2; - } - get nextCodePoint2() { - return this._cp3; - } - get nextCodePoint3() { - return this._cp4; - } - reset(source, start, end, uFlag) { - this._impl = uFlag ? unicodeImpl : legacyImpl; - this._s = source; - this._end = end; - this.rewind(start); - } - rewind(index) { - const impl = this._impl; - this._i = index; - this._cp1 = impl.at(this._s, this._end, index); - this._w1 = impl.width(this._cp1); - this._cp2 = impl.at(this._s, this._end, index + this._w1); - this._w2 = impl.width(this._cp2); - this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2); - this._w3 = impl.width(this._cp3); - this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3); - } - advance() { - if (this._cp1 !== -1) { - const impl = this._impl; - this._i += this._w1; - this._cp1 = this._cp2; - this._w1 = this._w2; - this._cp2 = this._cp3; - this._w2 = impl.width(this._cp2); - this._cp3 = this._cp4; - this._w3 = impl.width(this._cp3); - this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3); - } - } - eat(cp) { - if (this._cp1 === cp) { - this.advance(); - return true; - } - return false; - } - eat2(cp1, cp2) { - if (this._cp1 === cp1 && this._cp2 === cp2) { - this.advance(); - this.advance(); - return true; - } - return false; - } - eat3(cp1, cp2, cp3) { - if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) { - this.advance(); - this.advance(); - this.advance(); - return true; - } - return false; - } -} - -class RegExpSyntaxError extends SyntaxError { - constructor(message, index) { - super(message); - this.index = index; - } -} -function newRegExpSyntaxError(srcCtx, flags, index, message) { - let source = ""; - if (srcCtx.kind === "literal") { - const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end); - if (literal) { - source = `: ${literal}`; - } - } - else if (srcCtx.kind === "pattern") { - const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end); - const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`; - source = `: /${pattern}/${flagsText}`; - } - return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index); -} - -const SYNTAX_CHARACTER = new Set([ - CIRCUMFLEX_ACCENT, - DOLLAR_SIGN, - REVERSE_SOLIDUS, - FULL_STOP, - ASTERISK, - PLUS_SIGN, - QUESTION_MARK, - LEFT_PARENTHESIS, - RIGHT_PARENTHESIS, - LEFT_SQUARE_BRACKET, - RIGHT_SQUARE_BRACKET, - LEFT_CURLY_BRACKET, - RIGHT_CURLY_BRACKET, - VERTICAL_LINE, -]); -const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([ - AMPERSAND, - EXCLAMATION_MARK, - NUMBER_SIGN, - DOLLAR_SIGN, - PERCENT_SIGN, - ASTERISK, - PLUS_SIGN, - COMMA, - FULL_STOP, - COLON, - SEMICOLON, - LESS_THAN_SIGN, - EQUALS_SIGN, - GREATER_THAN_SIGN, - QUESTION_MARK, - COMMERCIAL_AT, - CIRCUMFLEX_ACCENT, - GRAVE_ACCENT, - TILDE, -]); -const CLASS_SET_SYNTAX_CHARACTER = new Set([ - LEFT_PARENTHESIS, - RIGHT_PARENTHESIS, - LEFT_SQUARE_BRACKET, - RIGHT_SQUARE_BRACKET, - LEFT_CURLY_BRACKET, - RIGHT_CURLY_BRACKET, - SOLIDUS, - HYPHEN_MINUS, - REVERSE_SOLIDUS, - VERTICAL_LINE, -]); -const CLASS_SET_RESERVED_PUNCTUATOR = new Set([ - AMPERSAND, - HYPHEN_MINUS, - EXCLAMATION_MARK, - NUMBER_SIGN, - PERCENT_SIGN, - COMMA, - COLON, - SEMICOLON, - LESS_THAN_SIGN, - EQUALS_SIGN, - GREATER_THAN_SIGN, - COMMERCIAL_AT, - GRAVE_ACCENT, - TILDE, -]); -function isSyntaxCharacter(cp) { - return SYNTAX_CHARACTER.has(cp); -} -function isClassSetReservedDoublePunctuatorCharacter(cp) { - return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp); -} -function isClassSetSyntaxCharacter(cp) { - return CLASS_SET_SYNTAX_CHARACTER.has(cp); -} -function isClassSetReservedPunctuator(cp) { - return CLASS_SET_RESERVED_PUNCTUATOR.has(cp); -} -function isIdentifierStartChar(cp) { - return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE; -} -function isIdentifierPartChar(cp) { - return (isIdContinue(cp) || - cp === DOLLAR_SIGN || - cp === ZERO_WIDTH_NON_JOINER || - cp === ZERO_WIDTH_JOINER); -} -function isUnicodePropertyNameCharacter(cp) { - return isLatinLetter(cp) || cp === LOW_LINE; -} -function isUnicodePropertyValueCharacter(cp) { - return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp); -} -class RegExpValidator { - constructor(options) { - this._reader = new Reader(); - this._unicodeMode = false; - this._unicodeSetsMode = false; - this._nFlag = false; - this._lastIntValue = 0; - this._lastRange = { - min: 0, - max: Number.POSITIVE_INFINITY, - }; - this._lastStrValue = ""; - this._lastAssertionIsQuantifiable = false; - this._numCapturingParens = 0; - this._backreferenceNames = new Set(); - this._srcCtx = null; - this._options = options !== null && options !== void 0 ? options : {}; - this._groupSpecifiers = - this.ecmaVersion >= 2025 - ? new GroupSpecifiersAsES2025() - : new GroupSpecifiersAsES2018(); - } - validateLiteral(source, start = 0, end = source.length) { - this._srcCtx = { source, start, end, kind: "literal" }; - this._unicodeSetsMode = this._unicodeMode = this._nFlag = false; - this.reset(source, start, end); - this.onLiteralEnter(start); - if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) { - const flagStart = this.index; - const unicode = source.includes("u", flagStart); - const unicodeSets = source.includes("v", flagStart); - this.validateFlagsInternal(source, flagStart, end); - this.validatePatternInternal(source, start + 1, flagStart - 1, { - unicode, - unicodeSets, - }); - } - else if (start >= end) { - this.raise("Empty"); - } - else { - const c = String.fromCodePoint(this.currentCodePoint); - this.raise(`Unexpected character '${c}'`); - } - this.onLiteralLeave(start, end); - } - validateFlags(source, start = 0, end = source.length) { - this._srcCtx = { source, start, end, kind: "flags" }; - this.validateFlagsInternal(source, start, end); - } - validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - this._srcCtx = { source, start, end, kind: "pattern" }; - this.validatePatternInternal(source, start, end, uFlagOrFlags); - } - validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end); - this._unicodeMode = mode.unicodeMode; - this._nFlag = mode.nFlag; - this._unicodeSetsMode = mode.unicodeSetsMode; - this.reset(source, start, end); - this.consumePattern(); - if (!this._nFlag && - this.ecmaVersion >= 2018 && - !this._groupSpecifiers.isEmpty()) { - this._nFlag = true; - this.rewind(start); - this.consumePattern(); - } - } - validateFlagsInternal(source, start, end) { - const existingFlags = new Set(); - let global = false; - let ignoreCase = false; - let multiline = false; - let sticky = false; - let unicode = false; - let dotAll = false; - let hasIndices = false; - let unicodeSets = false; - for (let i = start; i < end; ++i) { - const flag = source.charCodeAt(i); - if (existingFlags.has(flag)) { - this.raise(`Duplicated flag '${source[i]}'`, { index: start }); - } - existingFlags.add(flag); - if (flag === LATIN_SMALL_LETTER_G) { - global = true; - } - else if (flag === LATIN_SMALL_LETTER_I) { - ignoreCase = true; - } - else if (flag === LATIN_SMALL_LETTER_M) { - multiline = true; - } - else if (flag === LATIN_SMALL_LETTER_U && - this.ecmaVersion >= 2015) { - unicode = true; - } - else if (flag === LATIN_SMALL_LETTER_Y && - this.ecmaVersion >= 2015) { - sticky = true; - } - else if (flag === LATIN_SMALL_LETTER_S && - this.ecmaVersion >= 2018) { - dotAll = true; - } - else if (flag === LATIN_SMALL_LETTER_D && - this.ecmaVersion >= 2022) { - hasIndices = true; - } - else if (flag === LATIN_SMALL_LETTER_V && - this.ecmaVersion >= 2024) { - unicodeSets = true; - } - else { - this.raise(`Invalid flag '${source[i]}'`, { index: start }); - } - } - this.onRegExpFlags(start, end, { - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }); - } - _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) { - let unicode = false; - let unicodeSets = false; - if (uFlagOrFlags && this.ecmaVersion >= 2015) { - if (typeof uFlagOrFlags === "object") { - unicode = Boolean(uFlagOrFlags.unicode); - if (this.ecmaVersion >= 2024) { - unicodeSets = Boolean(uFlagOrFlags.unicodeSets); - } - } - else { - unicode = uFlagOrFlags; - } - } - if (unicode && unicodeSets) { - this.raise("Invalid regular expression flags", { - index: sourceEnd + 1, - unicode, - unicodeSets, - }); - } - const unicodeMode = unicode || unicodeSets; - const nFlag = (unicode && this.ecmaVersion >= 2018) || - unicodeSets || - Boolean(this._options.strict && this.ecmaVersion >= 2023); - const unicodeSetsMode = unicodeSets; - return { unicodeMode, nFlag, unicodeSetsMode }; - } - get strict() { - return Boolean(this._options.strict) || this._unicodeMode; - } - get ecmaVersion() { - var _a; - return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; - } - onLiteralEnter(start) { - if (this._options.onLiteralEnter) { - this._options.onLiteralEnter(start); - } - } - onLiteralLeave(start, end) { - if (this._options.onLiteralLeave) { - this._options.onLiteralLeave(start, end); - } - } - onRegExpFlags(start, end, flags) { - if (this._options.onRegExpFlags) { - this._options.onRegExpFlags(start, end, flags); - } - if (this._options.onFlags) { - this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices); - } - } - onPatternEnter(start) { - if (this._options.onPatternEnter) { - this._options.onPatternEnter(start); - } - } - onPatternLeave(start, end) { - if (this._options.onPatternLeave) { - this._options.onPatternLeave(start, end); - } - } - onDisjunctionEnter(start) { - if (this._options.onDisjunctionEnter) { - this._options.onDisjunctionEnter(start); - } - } - onDisjunctionLeave(start, end) { - if (this._options.onDisjunctionLeave) { - this._options.onDisjunctionLeave(start, end); - } - } - onAlternativeEnter(start, index) { - if (this._options.onAlternativeEnter) { - this._options.onAlternativeEnter(start, index); - } - } - onAlternativeLeave(start, end, index) { - if (this._options.onAlternativeLeave) { - this._options.onAlternativeLeave(start, end, index); - } - } - onGroupEnter(start) { - if (this._options.onGroupEnter) { - this._options.onGroupEnter(start); - } - } - onGroupLeave(start, end) { - if (this._options.onGroupLeave) { - this._options.onGroupLeave(start, end); - } - } - onCapturingGroupEnter(start, name) { - if (this._options.onCapturingGroupEnter) { - this._options.onCapturingGroupEnter(start, name); - } - } - onCapturingGroupLeave(start, end, name) { - if (this._options.onCapturingGroupLeave) { - this._options.onCapturingGroupLeave(start, end, name); - } - } - onQuantifier(start, end, min, max, greedy) { - if (this._options.onQuantifier) { - this._options.onQuantifier(start, end, min, max, greedy); - } - } - onLookaroundAssertionEnter(start, kind, negate) { - if (this._options.onLookaroundAssertionEnter) { - this._options.onLookaroundAssertionEnter(start, kind, negate); - } - } - onLookaroundAssertionLeave(start, end, kind, negate) { - if (this._options.onLookaroundAssertionLeave) { - this._options.onLookaroundAssertionLeave(start, end, kind, negate); - } - } - onEdgeAssertion(start, end, kind) { - if (this._options.onEdgeAssertion) { - this._options.onEdgeAssertion(start, end, kind); - } - } - onWordBoundaryAssertion(start, end, kind, negate) { - if (this._options.onWordBoundaryAssertion) { - this._options.onWordBoundaryAssertion(start, end, kind, negate); - } - } - onAnyCharacterSet(start, end, kind) { - if (this._options.onAnyCharacterSet) { - this._options.onAnyCharacterSet(start, end, kind); - } - } - onEscapeCharacterSet(start, end, kind, negate) { - if (this._options.onEscapeCharacterSet) { - this._options.onEscapeCharacterSet(start, end, kind, negate); - } - } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { - if (this._options.onUnicodePropertyCharacterSet) { - this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings); - } - } - onCharacter(start, end, value) { - if (this._options.onCharacter) { - this._options.onCharacter(start, end, value); - } - } - onBackreference(start, end, ref) { - if (this._options.onBackreference) { - this._options.onBackreference(start, end, ref); - } - } - onCharacterClassEnter(start, negate, unicodeSets) { - if (this._options.onCharacterClassEnter) { - this._options.onCharacterClassEnter(start, negate, unicodeSets); - } - } - onCharacterClassLeave(start, end, negate) { - if (this._options.onCharacterClassLeave) { - this._options.onCharacterClassLeave(start, end, negate); - } - } - onCharacterClassRange(start, end, min, max) { - if (this._options.onCharacterClassRange) { - this._options.onCharacterClassRange(start, end, min, max); - } - } - onClassIntersection(start, end) { - if (this._options.onClassIntersection) { - this._options.onClassIntersection(start, end); - } - } - onClassSubtraction(start, end) { - if (this._options.onClassSubtraction) { - this._options.onClassSubtraction(start, end); - } - } - onClassStringDisjunctionEnter(start) { - if (this._options.onClassStringDisjunctionEnter) { - this._options.onClassStringDisjunctionEnter(start); - } - } - onClassStringDisjunctionLeave(start, end) { - if (this._options.onClassStringDisjunctionLeave) { - this._options.onClassStringDisjunctionLeave(start, end); - } - } - onStringAlternativeEnter(start, index) { - if (this._options.onStringAlternativeEnter) { - this._options.onStringAlternativeEnter(start, index); - } - } - onStringAlternativeLeave(start, end, index) { - if (this._options.onStringAlternativeLeave) { - this._options.onStringAlternativeLeave(start, end, index); - } - } - get index() { - return this._reader.index; - } - get currentCodePoint() { - return this._reader.currentCodePoint; - } - get nextCodePoint() { - return this._reader.nextCodePoint; - } - get nextCodePoint2() { - return this._reader.nextCodePoint2; - } - get nextCodePoint3() { - return this._reader.nextCodePoint3; - } - reset(source, start, end) { - this._reader.reset(source, start, end, this._unicodeMode); - } - rewind(index) { - this._reader.rewind(index); - } - advance() { - this._reader.advance(); - } - eat(cp) { - return this._reader.eat(cp); - } - eat2(cp1, cp2) { - return this._reader.eat2(cp1, cp2); - } - eat3(cp1, cp2, cp3) { - return this._reader.eat3(cp1, cp2, cp3); - } - raise(message, context) { - var _a, _b, _c; - throw newRegExpSyntaxError(this._srcCtx, { - unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode), - unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode, - }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message); - } - eatRegExpBody() { - const start = this.index; - let inClass = false; - let escaped = false; - for (;;) { - const cp = this.currentCodePoint; - if (cp === -1 || isLineTerminator(cp)) { - const kind = inClass ? "character class" : "regular expression"; - this.raise(`Unterminated ${kind}`); - } - if (escaped) { - escaped = false; - } - else if (cp === REVERSE_SOLIDUS) { - escaped = true; - } - else if (cp === LEFT_SQUARE_BRACKET) { - inClass = true; - } - else if (cp === RIGHT_SQUARE_BRACKET) { - inClass = false; - } - else if ((cp === SOLIDUS && !inClass) || - (cp === ASTERISK && this.index === start)) { - break; - } - this.advance(); - } - return this.index !== start; - } - consumePattern() { - const start = this.index; - this._numCapturingParens = this.countCapturingParens(); - this._groupSpecifiers.clear(); - this._backreferenceNames.clear(); - this.onPatternEnter(start); - this.consumeDisjunction(); - const cp = this.currentCodePoint; - if (this.currentCodePoint !== -1) { - if (cp === RIGHT_PARENTHESIS) { - this.raise("Unmatched ')'"); - } - if (cp === REVERSE_SOLIDUS) { - this.raise("\\ at end of pattern"); - } - if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) { - this.raise("Lone quantifier brackets"); - } - const c = String.fromCodePoint(cp); - this.raise(`Unexpected character '${c}'`); - } - for (const name of this._backreferenceNames) { - if (!this._groupSpecifiers.hasInPattern(name)) { - this.raise("Invalid named capture referenced"); - } - } - this.onPatternLeave(start, this.index); - } - countCapturingParens() { - const start = this.index; - let inClass = false; - let escaped = false; - let count = 0; - let cp = 0; - while ((cp = this.currentCodePoint) !== -1) { - if (escaped) { - escaped = false; - } - else if (cp === REVERSE_SOLIDUS) { - escaped = true; - } - else if (cp === LEFT_SQUARE_BRACKET) { - inClass = true; - } - else if (cp === RIGHT_SQUARE_BRACKET) { - inClass = false; - } - else if (cp === LEFT_PARENTHESIS && - !inClass && - (this.nextCodePoint !== QUESTION_MARK || - (this.nextCodePoint2 === LESS_THAN_SIGN && - this.nextCodePoint3 !== EQUALS_SIGN && - this.nextCodePoint3 !== EXCLAMATION_MARK))) { - count += 1; - } - this.advance(); - } - this.rewind(start); - return count; - } - consumeDisjunction() { - const start = this.index; - let i = 0; - this._groupSpecifiers.enterDisjunction(); - this.onDisjunctionEnter(start); - do { - this.consumeAlternative(i++); - } while (this.eat(VERTICAL_LINE)); - if (this.consumeQuantifier(true)) { - this.raise("Nothing to repeat"); - } - if (this.eat(LEFT_CURLY_BRACKET)) { - this.raise("Lone quantifier brackets"); - } - this.onDisjunctionLeave(start, this.index); - this._groupSpecifiers.leaveDisjunction(); - } - consumeAlternative(i) { - const start = this.index; - this._groupSpecifiers.enterAlternative(i); - this.onAlternativeEnter(start, i); - while (this.currentCodePoint !== -1 && this.consumeTerm()) { - } - this.onAlternativeLeave(start, this.index, i); - } - consumeTerm() { - if (this._unicodeMode || this.strict) { - return (this.consumeAssertion() || - (this.consumeAtom() && this.consumeOptionalQuantifier())); - } - return ((this.consumeAssertion() && - (!this._lastAssertionIsQuantifiable || - this.consumeOptionalQuantifier())) || - (this.consumeExtendedAtom() && this.consumeOptionalQuantifier())); - } - consumeOptionalQuantifier() { - this.consumeQuantifier(); - return true; - } - consumeAssertion() { - const start = this.index; - this._lastAssertionIsQuantifiable = false; - if (this.eat(CIRCUMFLEX_ACCENT)) { - this.onEdgeAssertion(start, this.index, "start"); - return true; - } - if (this.eat(DOLLAR_SIGN)) { - this.onEdgeAssertion(start, this.index, "end"); - return true; - } - if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) { - this.onWordBoundaryAssertion(start, this.index, "word", true); - return true; - } - if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) { - this.onWordBoundaryAssertion(start, this.index, "word", false); - return true; - } - if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) { - const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN); - let negate = false; - if (this.eat(EQUALS_SIGN) || - (negate = this.eat(EXCLAMATION_MARK))) { - const kind = lookbehind ? "lookbehind" : "lookahead"; - this.onLookaroundAssertionEnter(start, kind, negate); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this._lastAssertionIsQuantifiable = !lookbehind && !this.strict; - this.onLookaroundAssertionLeave(start, this.index, kind, negate); - return true; - } - this.rewind(start); - } - return false; - } - consumeQuantifier(noConsume = false) { - const start = this.index; - let min = 0; - let max = 0; - let greedy = false; - if (this.eat(ASTERISK)) { - min = 0; - max = Number.POSITIVE_INFINITY; - } - else if (this.eat(PLUS_SIGN)) { - min = 1; - max = Number.POSITIVE_INFINITY; - } - else if (this.eat(QUESTION_MARK)) { - min = 0; - max = 1; - } - else if (this.eatBracedQuantifier(noConsume)) { - ({ min, max } = this._lastRange); - } - else { - return false; - } - greedy = !this.eat(QUESTION_MARK); - if (!noConsume) { - this.onQuantifier(start, this.index, min, max, greedy); - } - return true; - } - eatBracedQuantifier(noError) { - const start = this.index; - if (this.eat(LEFT_CURLY_BRACKET)) { - if (this.eatDecimalDigits()) { - const min = this._lastIntValue; - let max = min; - if (this.eat(COMMA)) { - max = this.eatDecimalDigits() - ? this._lastIntValue - : Number.POSITIVE_INFINITY; - } - if (this.eat(RIGHT_CURLY_BRACKET)) { - if (!noError && max < min) { - this.raise("numbers out of order in {} quantifier"); - } - this._lastRange = { min, max }; - return true; - } - } - if (!noError && (this._unicodeMode || this.strict)) { - this.raise("Incomplete quantifier"); - } - this.rewind(start); - } - return false; - } - consumeAtom() { - return (this.consumePatternCharacter() || - this.consumeDot() || - this.consumeReverseSolidusAtomEscape() || - Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup()); - } - consumeDot() { - if (this.eat(FULL_STOP)) { - this.onAnyCharacterSet(this.index - 1, this.index, "any"); - return true; - } - return false; - } - consumeReverseSolidusAtomEscape() { - const start = this.index; - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeAtomEscape()) { - return true; - } - this.rewind(start); - } - return false; - } - consumeUncapturingGroup() { - const start = this.index; - if (this.eat3(LEFT_PARENTHESIS, QUESTION_MARK, COLON)) { - this.onGroupEnter(start); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this.onGroupLeave(start, this.index); - return true; - } - return false; - } - consumeCapturingGroup() { - const start = this.index; - if (this.eat(LEFT_PARENTHESIS)) { - let name = null; - if (this.ecmaVersion >= 2018) { - if (this.consumeGroupSpecifier()) { - name = this._lastStrValue; - } - } - else if (this.currentCodePoint === QUESTION_MARK) { - this.raise("Invalid group"); - } - this.onCapturingGroupEnter(start, name); - this.consumeDisjunction(); - if (!this.eat(RIGHT_PARENTHESIS)) { - this.raise("Unterminated group"); - } - this.onCapturingGroupLeave(start, this.index, name); - return true; - } - return false; - } - consumeExtendedAtom() { - return (this.consumeDot() || - this.consumeReverseSolidusAtomEscape() || - this.consumeReverseSolidusFollowedByC() || - Boolean(this.consumeCharacterClass()) || - this.consumeUncapturingGroup() || - this.consumeCapturingGroup() || - this.consumeInvalidBracedQuantifier() || - this.consumeExtendedPatternCharacter()); - } - consumeReverseSolidusFollowedByC() { - const start = this.index; - if (this.currentCodePoint === REVERSE_SOLIDUS && - this.nextCodePoint === LATIN_SMALL_LETTER_C) { - this._lastIntValue = this.currentCodePoint; - this.advance(); - this.onCharacter(start, this.index, REVERSE_SOLIDUS); - return true; - } - return false; - } - consumeInvalidBracedQuantifier() { - if (this.eatBracedQuantifier(true)) { - this.raise("Nothing to repeat"); - } - return false; - } - consumePatternCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && !isSyntaxCharacter(cp)) { - this.advance(); - this.onCharacter(start, this.index, cp); - return true; - } - return false; - } - consumeExtendedPatternCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && - cp !== CIRCUMFLEX_ACCENT && - cp !== DOLLAR_SIGN && - cp !== REVERSE_SOLIDUS && - cp !== FULL_STOP && - cp !== ASTERISK && - cp !== PLUS_SIGN && - cp !== QUESTION_MARK && - cp !== LEFT_PARENTHESIS && - cp !== RIGHT_PARENTHESIS && - cp !== LEFT_SQUARE_BRACKET && - cp !== VERTICAL_LINE) { - this.advance(); - this.onCharacter(start, this.index, cp); - return true; - } - return false; - } - consumeGroupSpecifier() { - if (this.eat(QUESTION_MARK)) { - if (this.eatGroupName()) { - if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) { - this._groupSpecifiers.addToScope(this._lastStrValue); - return true; - } - this.raise("Duplicate capture group name"); - } - this.raise("Invalid group"); - } - return false; - } - consumeAtomEscape() { - if (this.consumeBackreference() || - this.consumeCharacterClassEscape() || - this.consumeCharacterEscape() || - (this._nFlag && this.consumeKGroupName())) { - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - return false; - } - consumeBackreference() { - const start = this.index; - if (this.eatDecimalEscape()) { - const n = this._lastIntValue; - if (n <= this._numCapturingParens) { - this.onBackreference(start - 1, this.index, n); - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - consumeCharacterClassEscape() { - var _a; - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_D)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "digit", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_D)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "digit", true); - return {}; - } - if (this.eat(LATIN_SMALL_LETTER_S)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "space", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_S)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "space", true); - return {}; - } - if (this.eat(LATIN_SMALL_LETTER_W)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "word", false); - return {}; - } - if (this.eat(LATIN_CAPITAL_LETTER_W)) { - this._lastIntValue = -1; - this.onEscapeCharacterSet(start - 1, this.index, "word", true); - return {}; - } - let negate = false; - if (this._unicodeMode && - this.ecmaVersion >= 2018 && - (this.eat(LATIN_SMALL_LETTER_P) || - (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) { - this._lastIntValue = -1; - let result = null; - if (this.eat(LEFT_CURLY_BRACKET) && - (result = this.eatUnicodePropertyValueExpression()) && - this.eat(RIGHT_CURLY_BRACKET)) { - if (negate && result.strings) { - this.raise("Invalid property name"); - } - this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false); - return { mayContainStrings: result.strings }; - } - this.raise("Invalid property name"); - } - return null; - } - consumeCharacterEscape() { - const start = this.index; - if (this.eatControlEscape() || - this.eatCControlLetter() || - this.eatZero() || - this.eatHexEscapeSequence() || - this.eatRegExpUnicodeEscapeSequence() || - (!this.strict && - !this._unicodeMode && - this.eatLegacyOctalEscapeSequence()) || - this.eatIdentityEscape()) { - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - return false; - } - consumeKGroupName() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_K)) { - if (this.eatGroupName()) { - const groupName = this._lastStrValue; - this._backreferenceNames.add(groupName); - this.onBackreference(start - 1, this.index, groupName); - return true; - } - this.raise("Invalid named reference"); - } - return false; - } - consumeCharacterClass() { - const start = this.index; - if (this.eat(LEFT_SQUARE_BRACKET)) { - const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate, this._unicodeSetsMode); - const result = this.consumeClassContents(); - if (!this.eat(RIGHT_SQUARE_BRACKET)) { - if (this.currentCodePoint === -1) { - this.raise("Unterminated character class"); - } - this.raise("Invalid character in character class"); - } - if (negate && result.mayContainStrings) { - this.raise("Negated character class may contain strings"); - } - this.onCharacterClassLeave(start, this.index, negate); - return result; - } - return null; - } - consumeClassContents() { - if (this._unicodeSetsMode) { - if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) { - return {}; - } - const result = this.consumeClassSetExpression(); - return result; - } - const strict = this.strict || this._unicodeMode; - for (;;) { - const rangeStart = this.index; - if (!this.consumeClassAtom()) { - break; - } - const min = this._lastIntValue; - if (!this.eat(HYPHEN_MINUS)) { - continue; - } - this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS); - if (!this.consumeClassAtom()) { - break; - } - const max = this._lastIntValue; - if (min === -1 || max === -1) { - if (strict) { - this.raise("Invalid character class"); - } - continue; - } - if (min > max) { - this.raise("Range out of order in character class"); - } - this.onCharacterClassRange(rangeStart, this.index, min, max); - } - return {}; - } - consumeClassAtom() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== -1 && - cp !== REVERSE_SOLIDUS && - cp !== RIGHT_SQUARE_BRACKET) { - this.advance(); - this._lastIntValue = cp; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeClassEscape()) { - return true; - } - if (!this.strict && - this.currentCodePoint === LATIN_SMALL_LETTER_C) { - this._lastIntValue = REVERSE_SOLIDUS; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.strict || this._unicodeMode) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - consumeClassEscape() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_B)) { - this._lastIntValue = BACKSPACE; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - if (this._unicodeMode && this.eat(HYPHEN_MINUS)) { - this._lastIntValue = HYPHEN_MINUS; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - let cp = 0; - if (!this.strict && - !this._unicodeMode && - this.currentCodePoint === LATIN_SMALL_LETTER_C && - (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) { - this.advance(); - this.advance(); - this._lastIntValue = cp % 0x20; - this.onCharacter(start - 1, this.index, this._lastIntValue); - return true; - } - return (Boolean(this.consumeCharacterClassEscape()) || - this.consumeCharacterEscape()); - } - consumeClassSetExpression() { - const start = this.index; - let mayContainStrings = false; - let result = null; - if (this.consumeClassSetCharacter()) { - if (this.consumeClassSetRangeFromOperator(start)) { - this.consumeClassUnionRight({}); - return {}; - } - mayContainStrings = false; - } - else if ((result = this.consumeClassSetOperand())) { - mayContainStrings = result.mayContainStrings; - } - else { - const cp = this.currentCodePoint; - if (cp === REVERSE_SOLIDUS) { - this.advance(); - this.raise("Invalid escape"); - } - if (cp === this.nextCodePoint && - isClassSetReservedDoublePunctuatorCharacter(cp)) { - this.raise("Invalid set operation in character class"); - } - this.raise("Invalid character in character class"); - } - if (this.eat2(AMPERSAND, AMPERSAND)) { - while (this.currentCodePoint !== AMPERSAND && - (result = this.consumeClassSetOperand())) { - this.onClassIntersection(start, this.index); - if (!result.mayContainStrings) { - mayContainStrings = false; - } - if (this.eat2(AMPERSAND, AMPERSAND)) { - continue; - } - return { mayContainStrings }; - } - this.raise("Invalid character in character class"); - } - if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { - while (this.consumeClassSetOperand()) { - this.onClassSubtraction(start, this.index); - if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) { - continue; - } - return { mayContainStrings }; - } - this.raise("Invalid character in character class"); - } - return this.consumeClassUnionRight({ mayContainStrings }); - } - consumeClassUnionRight(leftResult) { - let mayContainStrings = leftResult.mayContainStrings; - for (;;) { - const start = this.index; - if (this.consumeClassSetCharacter()) { - this.consumeClassSetRangeFromOperator(start); - continue; - } - const result = this.consumeClassSetOperand(); - if (result) { - if (result.mayContainStrings) { - mayContainStrings = true; - } - continue; - } - break; - } - return { mayContainStrings }; - } - consumeClassSetRangeFromOperator(start) { - const currentStart = this.index; - const min = this._lastIntValue; - if (this.eat(HYPHEN_MINUS)) { - if (this.consumeClassSetCharacter()) { - const max = this._lastIntValue; - if (min === -1 || max === -1) { - this.raise("Invalid character class"); - } - if (min > max) { - this.raise("Range out of order in character class"); - } - this.onCharacterClassRange(start, this.index, min, max); - return true; - } - this.rewind(currentStart); - } - return false; - } - consumeClassSetOperand() { - let result = null; - if ((result = this.consumeNestedClass())) { - return result; - } - if ((result = this.consumeClassStringDisjunction())) { - return result; - } - if (this.consumeClassSetCharacter()) { - return {}; - } - return null; - } - consumeNestedClass() { - const start = this.index; - if (this.eat(LEFT_SQUARE_BRACKET)) { - const negate = this.eat(CIRCUMFLEX_ACCENT); - this.onCharacterClassEnter(start, negate, true); - const result = this.consumeClassContents(); - if (!this.eat(RIGHT_SQUARE_BRACKET)) { - this.raise("Unterminated character class"); - } - if (negate && result.mayContainStrings) { - this.raise("Negated character class may contain strings"); - } - this.onCharacterClassLeave(start, this.index, negate); - return result; - } - if (this.eat(REVERSE_SOLIDUS)) { - const result = this.consumeCharacterClassEscape(); - if (result) { - return result; - } - this.rewind(start); - } - return null; - } - consumeClassStringDisjunction() { - const start = this.index; - if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) { - this.onClassStringDisjunctionEnter(start); - let i = 0; - let mayContainStrings = false; - do { - if (this.consumeClassString(i++).mayContainStrings) { - mayContainStrings = true; - } - } while (this.eat(VERTICAL_LINE)); - if (this.eat(RIGHT_CURLY_BRACKET)) { - this.onClassStringDisjunctionLeave(start, this.index); - return { mayContainStrings }; - } - this.raise("Unterminated class string disjunction"); - } - return null; - } - consumeClassString(i) { - const start = this.index; - let count = 0; - this.onStringAlternativeEnter(start, i); - while (this.currentCodePoint !== -1 && - this.consumeClassSetCharacter()) { - count++; - } - this.onStringAlternativeLeave(start, this.index, i); - return { mayContainStrings: count !== 1 }; - } - consumeClassSetCharacter() { - const start = this.index; - const cp = this.currentCodePoint; - if (cp !== this.nextCodePoint || - !isClassSetReservedDoublePunctuatorCharacter(cp)) { - if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) { - this._lastIntValue = cp; - this.advance(); - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - } - if (this.eat(REVERSE_SOLIDUS)) { - if (this.consumeCharacterEscape()) { - return true; - } - if (isClassSetReservedPunctuator(this.currentCodePoint)) { - this._lastIntValue = this.currentCodePoint; - this.advance(); - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - if (this.eat(LATIN_SMALL_LETTER_B)) { - this._lastIntValue = BACKSPACE; - this.onCharacter(start, this.index, this._lastIntValue); - return true; - } - this.rewind(start); - } - return false; - } - eatGroupName() { - if (this.eat(LESS_THAN_SIGN)) { - if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) { - return true; - } - this.raise("Invalid capture group name"); - } - return false; - } - eatRegExpIdentifierName() { - if (this.eatRegExpIdentifierStart()) { - this._lastStrValue = String.fromCodePoint(this._lastIntValue); - while (this.eatRegExpIdentifierPart()) { - this._lastStrValue += String.fromCodePoint(this._lastIntValue); - } - return true; - } - return false; - } - eatRegExpIdentifierStart() { - const start = this.index; - const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; - let cp = this.currentCodePoint; - this.advance(); - if (cp === REVERSE_SOLIDUS && - this.eatRegExpUnicodeEscapeSequence(forceUFlag)) { - cp = this._lastIntValue; - } - else if (forceUFlag && - isLeadSurrogate(cp) && - isTrailSurrogate(this.currentCodePoint)) { - cp = combineSurrogatePair(cp, this.currentCodePoint); - this.advance(); - } - if (isIdentifierStartChar(cp)) { - this._lastIntValue = cp; - return true; - } - if (this.index !== start) { - this.rewind(start); - } - return false; - } - eatRegExpIdentifierPart() { - const start = this.index; - const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020; - let cp = this.currentCodePoint; - this.advance(); - if (cp === REVERSE_SOLIDUS && - this.eatRegExpUnicodeEscapeSequence(forceUFlag)) { - cp = this._lastIntValue; - } - else if (forceUFlag && - isLeadSurrogate(cp) && - isTrailSurrogate(this.currentCodePoint)) { - cp = combineSurrogatePair(cp, this.currentCodePoint); - this.advance(); - } - if (isIdentifierPartChar(cp)) { - this._lastIntValue = cp; - return true; - } - if (this.index !== start) { - this.rewind(start); - } - return false; - } - eatCControlLetter() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_C)) { - if (this.eatControlLetter()) { - return true; - } - this.rewind(start); - } - return false; - } - eatZero() { - if (this.currentCodePoint === DIGIT_ZERO && - !isDecimalDigit(this.nextCodePoint)) { - this._lastIntValue = 0; - this.advance(); - return true; - } - return false; - } - eatControlEscape() { - if (this.eat(LATIN_SMALL_LETTER_F)) { - this._lastIntValue = FORM_FEED; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_N)) { - this._lastIntValue = LINE_FEED; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_R)) { - this._lastIntValue = CARRIAGE_RETURN; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_T)) { - this._lastIntValue = CHARACTER_TABULATION; - return true; - } - if (this.eat(LATIN_SMALL_LETTER_V)) { - this._lastIntValue = LINE_TABULATION; - return true; - } - return false; - } - eatControlLetter() { - const cp = this.currentCodePoint; - if (isLatinLetter(cp)) { - this.advance(); - this._lastIntValue = cp % 0x20; - return true; - } - return false; - } - eatRegExpUnicodeEscapeSequence(forceUFlag = false) { - const start = this.index; - const uFlag = forceUFlag || this._unicodeMode; - if (this.eat(LATIN_SMALL_LETTER_U)) { - if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) || - this.eatFixedHexDigits(4) || - (uFlag && this.eatRegExpUnicodeCodePointEscape())) { - return true; - } - if (this.strict || uFlag) { - this.raise("Invalid unicode escape"); - } - this.rewind(start); - } - return false; - } - eatRegExpUnicodeSurrogatePairEscape() { - const start = this.index; - if (this.eatFixedHexDigits(4)) { - const lead = this._lastIntValue; - if (isLeadSurrogate(lead) && - this.eat(REVERSE_SOLIDUS) && - this.eat(LATIN_SMALL_LETTER_U) && - this.eatFixedHexDigits(4)) { - const trail = this._lastIntValue; - if (isTrailSurrogate(trail)) { - this._lastIntValue = combineSurrogatePair(lead, trail); - return true; - } - } - this.rewind(start); - } - return false; - } - eatRegExpUnicodeCodePointEscape() { - const start = this.index; - if (this.eat(LEFT_CURLY_BRACKET) && - this.eatHexDigits() && - this.eat(RIGHT_CURLY_BRACKET) && - isValidUnicode(this._lastIntValue)) { - return true; - } - this.rewind(start); - return false; - } - eatIdentityEscape() { - const cp = this.currentCodePoint; - if (this.isValidIdentityEscape(cp)) { - this._lastIntValue = cp; - this.advance(); - return true; - } - return false; - } - isValidIdentityEscape(cp) { - if (cp === -1) { - return false; - } - if (this._unicodeMode) { - return isSyntaxCharacter(cp) || cp === SOLIDUS; - } - if (this.strict) { - return !isIdContinue(cp); - } - if (this._nFlag) { - return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K); - } - return cp !== LATIN_SMALL_LETTER_C; - } - eatDecimalEscape() { - this._lastIntValue = 0; - let cp = this.currentCodePoint; - if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) { - do { - this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO); - this.advance(); - } while ((cp = this.currentCodePoint) >= DIGIT_ZERO && - cp <= DIGIT_NINE); - return true; - } - return false; - } - eatUnicodePropertyValueExpression() { - const start = this.index; - if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) { - const key = this._lastStrValue; - if (this.eatUnicodePropertyValue()) { - const value = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, key, value)) { - return { - key, - value: value || null, - }; - } - this.raise("Invalid property name"); - } - } - this.rewind(start); - if (this.eatLoneUnicodePropertyNameOrValue()) { - const nameOrValue = this._lastStrValue; - if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) { - return { - key: "General_Category", - value: nameOrValue || null, - }; - } - if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) { - return { - key: nameOrValue, - value: null, - }; - } - if (this._unicodeSetsMode && - isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) { - return { - key: nameOrValue, - value: null, - strings: true, - }; - } - this.raise("Invalid property name"); - } - return null; - } - eatUnicodePropertyName() { - this._lastStrValue = ""; - while (isUnicodePropertyNameCharacter(this.currentCodePoint)) { - this._lastStrValue += String.fromCodePoint(this.currentCodePoint); - this.advance(); - } - return this._lastStrValue !== ""; - } - eatUnicodePropertyValue() { - this._lastStrValue = ""; - while (isUnicodePropertyValueCharacter(this.currentCodePoint)) { - this._lastStrValue += String.fromCodePoint(this.currentCodePoint); - this.advance(); - } - return this._lastStrValue !== ""; - } - eatLoneUnicodePropertyNameOrValue() { - return this.eatUnicodePropertyValue(); - } - eatHexEscapeSequence() { - const start = this.index; - if (this.eat(LATIN_SMALL_LETTER_X)) { - if (this.eatFixedHexDigits(2)) { - return true; - } - if (this._unicodeMode || this.strict) { - this.raise("Invalid escape"); - } - this.rewind(start); - } - return false; - } - eatDecimalDigits() { - const start = this.index; - this._lastIntValue = 0; - while (isDecimalDigit(this.currentCodePoint)) { - this._lastIntValue = - 10 * this._lastIntValue + digitToInt(this.currentCodePoint); - this.advance(); - } - return this.index !== start; - } - eatHexDigits() { - const start = this.index; - this._lastIntValue = 0; - while (isHexDigit(this.currentCodePoint)) { - this._lastIntValue = - 16 * this._lastIntValue + digitToInt(this.currentCodePoint); - this.advance(); - } - return this.index !== start; - } - eatLegacyOctalEscapeSequence() { - if (this.eatOctalDigit()) { - const n1 = this._lastIntValue; - if (this.eatOctalDigit()) { - const n2 = this._lastIntValue; - if (n1 <= 3 && this.eatOctalDigit()) { - this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue; - } - else { - this._lastIntValue = n1 * 8 + n2; - } - } - else { - this._lastIntValue = n1; - } - return true; - } - return false; - } - eatOctalDigit() { - const cp = this.currentCodePoint; - if (isOctalDigit(cp)) { - this.advance(); - this._lastIntValue = cp - DIGIT_ZERO; - return true; - } - this._lastIntValue = 0; - return false; - } - eatFixedHexDigits(length) { - const start = this.index; - this._lastIntValue = 0; - for (let i = 0; i < length; ++i) { - const cp = this.currentCodePoint; - if (!isHexDigit(cp)) { - this.rewind(start); - return false; - } - this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp); - this.advance(); - } - return true; - } -} - -const DUMMY_PATTERN = {}; -const DUMMY_FLAGS = {}; -const DUMMY_CAPTURING_GROUP = {}; -function isClassSetOperand(node) { - return (node.type === "Character" || - node.type === "CharacterSet" || - node.type === "CharacterClass" || - node.type === "ExpressionCharacterClass" || - node.type === "ClassStringDisjunction"); -} -class RegExpParserState { - constructor(options) { - var _a; - this._node = DUMMY_PATTERN; - this._expressionBufferMap = new Map(); - this._flags = DUMMY_FLAGS; - this._backreferences = []; - this._capturingGroups = []; - this.source = ""; - this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict); - this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion; - } - get pattern() { - if (this._node.type !== "Pattern") { - throw new Error("UnknownError"); - } - return this._node; - } - get flags() { - if (this._flags.type !== "Flags") { - throw new Error("UnknownError"); - } - return this._flags; - } - onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) { - this._flags = { - type: "Flags", - parent: null, - start, - end, - raw: this.source.slice(start, end), - global, - ignoreCase, - multiline, - unicode, - sticky, - dotAll, - hasIndices, - unicodeSets, - }; - } - onPatternEnter(start) { - this._node = { - type: "Pattern", - parent: null, - start, - end: start, - raw: "", - alternatives: [], - }; - this._backreferences.length = 0; - this._capturingGroups.length = 0; - } - onPatternLeave(start, end) { - this._node.end = end; - this._node.raw = this.source.slice(start, end); - for (const reference of this._backreferences) { - const ref = reference.ref; - const groups = typeof ref === "number" - ? [this._capturingGroups[ref - 1]] - : this._capturingGroups.filter((g) => g.name === ref); - if (groups.length === 1) { - const group = groups[0]; - reference.ambiguous = false; - reference.resolved = group; - } - else { - reference.ambiguous = true; - reference.resolved = groups; - } - for (const group of groups) { - group.references.push(reference); - } - } - } - onAlternativeEnter(start) { - const parent = this._node; - if (parent.type !== "Assertion" && - parent.type !== "CapturingGroup" && - parent.type !== "Group" && - parent.type !== "Pattern") { - throw new Error("UnknownError"); - } - this._node = { - type: "Alternative", - parent, - start, - end: start, - raw: "", - elements: [], - }; - parent.alternatives.push(this._node); - } - onAlternativeLeave(start, end) { - const node = this._node; - if (node.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onGroupEnter(start) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { - type: "Group", - parent, - start, - end: start, - raw: "", - alternatives: [], - }; - parent.elements.push(this._node); - } - onGroupLeave(start, end) { - const node = this._node; - if (node.type !== "Group" || node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onCapturingGroupEnter(start, name) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - this._node = { - type: "CapturingGroup", - parent, - start, - end: start, - raw: "", - name, - alternatives: [], - references: [], - }; - parent.elements.push(this._node); - this._capturingGroups.push(this._node); - } - onCapturingGroupLeave(start, end) { - const node = this._node; - if (node.type !== "CapturingGroup" || - node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onQuantifier(start, end, min, max, greedy) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const element = parent.elements.pop(); - if (element == null || - element.type === "Quantifier" || - (element.type === "Assertion" && element.kind !== "lookahead")) { - throw new Error("UnknownError"); - } - const node = { - type: "Quantifier", - parent, - start: element.start, - end, - raw: this.source.slice(element.start, end), - min, - max, - greedy, - element, - }; - parent.elements.push(node); - element.parent = node; - } - onLookaroundAssertionEnter(start, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const node = (this._node = { - type: "Assertion", - parent, - start, - end: start, - raw: "", - kind, - negate, - alternatives: [], - }); - parent.elements.push(node); - } - onLookaroundAssertionLeave(start, end) { - const node = this._node; - if (node.type !== "Assertion" || node.parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onEdgeAssertion(start, end, kind) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Assertion", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - }); - } - onWordBoundaryAssertion(start, end, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Assertion", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - negate, - }); - } - onAnyCharacterSet(start, end, kind) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "CharacterSet", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - }); - } - onEscapeCharacterSet(start, end, kind, negate) { - const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "CharacterSet", - parent, - start, - end, - raw: this.source.slice(start, end), - kind, - negate, - }); - } - onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) { - const parent = this._node; - if (parent.type !== "Alternative" && parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - const base = { - type: "CharacterSet", - parent: null, - start, - end, - raw: this.source.slice(start, end), - kind, - strings: null, - key, - }; - if (strings) { - if ((parent.type === "CharacterClass" && !parent.unicodeSets) || - negate || - value !== null) { - throw new Error("UnknownError"); - } - parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate })); - } - else { - parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate })); - } - } - onCharacter(start, end, value) { - const parent = this._node; - if (parent.type !== "Alternative" && - parent.type !== "CharacterClass" && - parent.type !== "StringAlternative") { - throw new Error("UnknownError"); - } - parent.elements.push({ - type: "Character", - parent, - start, - end, - raw: this.source.slice(start, end), - value, - }); - } - onBackreference(start, end, ref) { - const parent = this._node; - if (parent.type !== "Alternative") { - throw new Error("UnknownError"); - } - const node = { - type: "Backreference", - parent, - start, - end, - raw: this.source.slice(start, end), - ref, - ambiguous: false, - resolved: DUMMY_CAPTURING_GROUP, - }; - parent.elements.push(node); - this._backreferences.push(node); - } - onCharacterClassEnter(start, negate, unicodeSets) { - const parent = this._node; - const base = { - type: "CharacterClass", - parent, - start, - end: start, - raw: "", - unicodeSets, - negate, - elements: [], - }; - if (parent.type === "Alternative") { - const node = Object.assign(Object.assign({}, base), { parent }); - this._node = node; - parent.elements.push(node); - } - else if (parent.type === "CharacterClass" && - parent.unicodeSets && - unicodeSets) { - const node = Object.assign(Object.assign({}, base), { parent, - unicodeSets }); - this._node = node; - parent.elements.push(node); - } - else { - throw new Error("UnknownError"); - } - } - onCharacterClassLeave(start, end) { - const node = this._node; - if (node.type !== "CharacterClass" || - (node.parent.type !== "Alternative" && - node.parent.type !== "CharacterClass")) { - throw new Error("UnknownError"); - } - const parent = node.parent; - node.end = end; - node.raw = this.source.slice(start, end); - this._node = parent; - const expression = this._expressionBufferMap.get(node); - if (!expression) { - return; - } - if (node.elements.length > 0) { - throw new Error("UnknownError"); - } - this._expressionBufferMap.delete(node); - const newNode = { - type: "ExpressionCharacterClass", - parent, - start: node.start, - end: node.end, - raw: node.raw, - negate: node.negate, - expression, - }; - expression.parent = newNode; - if (node !== parent.elements.pop()) { - throw new Error("UnknownError"); - } - parent.elements.push(newNode); - } - onCharacterClassRange(start, end) { - const parent = this._node; - if (parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - const elements = parent.elements; - const max = elements.pop(); - if (!max || max.type !== "Character") { - throw new Error("UnknownError"); - } - if (!parent.unicodeSets) { - const hyphen = elements.pop(); - if (!hyphen || - hyphen.type !== "Character" || - hyphen.value !== HYPHEN_MINUS) { - throw new Error("UnknownError"); - } - } - const min = elements.pop(); - if (!min || min.type !== "Character") { - throw new Error("UnknownError"); - } - const node = { - type: "CharacterClassRange", - parent, - start, - end, - raw: this.source.slice(start, end), - min, - max, - }; - min.parent = node; - max.parent = node; - elements.push(node); - } - onClassIntersection(start, end) { - var _a; - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - const right = parent.elements.pop(); - const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop(); - if (!left || - !right || - left.type === "ClassSubtraction" || - (left.type !== "ClassIntersection" && !isClassSetOperand(left)) || - !isClassSetOperand(right)) { - throw new Error("UnknownError"); - } - const node = { - type: "ClassIntersection", - parent: parent, - start, - end, - raw: this.source.slice(start, end), - left, - right, - }; - left.parent = node; - right.parent = node; - this._expressionBufferMap.set(parent, node); - } - onClassSubtraction(start, end) { - var _a; - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - const right = parent.elements.pop(); - const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop(); - if (!left || - !right || - left.type === "ClassIntersection" || - (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) || - !isClassSetOperand(right)) { - throw new Error("UnknownError"); - } - const node = { - type: "ClassSubtraction", - parent: parent, - start, - end, - raw: this.source.slice(start, end), - left, - right, - }; - left.parent = node; - right.parent = node; - this._expressionBufferMap.set(parent, node); - } - onClassStringDisjunctionEnter(start) { - const parent = this._node; - if (parent.type !== "CharacterClass" || !parent.unicodeSets) { - throw new Error("UnknownError"); - } - this._node = { - type: "ClassStringDisjunction", - parent, - start, - end: start, - raw: "", - alternatives: [], - }; - parent.elements.push(this._node); - } - onClassStringDisjunctionLeave(start, end) { - const node = this._node; - if (node.type !== "ClassStringDisjunction" || - node.parent.type !== "CharacterClass") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } - onStringAlternativeEnter(start) { - const parent = this._node; - if (parent.type !== "ClassStringDisjunction") { - throw new Error("UnknownError"); - } - this._node = { - type: "StringAlternative", - parent, - start, - end: start, - raw: "", - elements: [], - }; - parent.alternatives.push(this._node); - } - onStringAlternativeLeave(start, end) { - const node = this._node; - if (node.type !== "StringAlternative") { - throw new Error("UnknownError"); - } - node.end = end; - node.raw = this.source.slice(start, end); - this._node = node.parent; - } -} -class RegExpParser { - constructor(options) { - this._state = new RegExpParserState(options); - this._validator = new RegExpValidator(this._state); - } - parseLiteral(source, start = 0, end = source.length) { - this._state.source = source; - this._validator.validateLiteral(source, start, end); - const pattern = this._state.pattern; - const flags = this._state.flags; - const literal = { - type: "RegExpLiteral", - parent: null, - start, - end, - raw: source, - pattern, - flags, - }; - pattern.parent = literal; - flags.parent = literal; - return literal; - } - parseFlags(source, start = 0, end = source.length) { - this._state.source = source; - this._validator.validateFlags(source, start, end); - return this._state.flags; - } - parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) { - this._state.source = source; - this._validator.validatePattern(source, start, end, uFlagOrFlags); - return this._state.pattern; - } -} - -class RegExpVisitor { - constructor(handlers) { - this._handlers = handlers; - } - visit(node) { - switch (node.type) { - case "Alternative": - this.visitAlternative(node); - break; - case "Assertion": - this.visitAssertion(node); - break; - case "Backreference": - this.visitBackreference(node); - break; - case "CapturingGroup": - this.visitCapturingGroup(node); - break; - case "Character": - this.visitCharacter(node); - break; - case "CharacterClass": - this.visitCharacterClass(node); - break; - case "CharacterClassRange": - this.visitCharacterClassRange(node); - break; - case "CharacterSet": - this.visitCharacterSet(node); - break; - case "ClassIntersection": - this.visitClassIntersection(node); - break; - case "ClassStringDisjunction": - this.visitClassStringDisjunction(node); - break; - case "ClassSubtraction": - this.visitClassSubtraction(node); - break; - case "ExpressionCharacterClass": - this.visitExpressionCharacterClass(node); - break; - case "Flags": - this.visitFlags(node); - break; - case "Group": - this.visitGroup(node); - break; - case "Pattern": - this.visitPattern(node); - break; - case "Quantifier": - this.visitQuantifier(node); - break; - case "RegExpLiteral": - this.visitRegExpLiteral(node); - break; - case "StringAlternative": - this.visitStringAlternative(node); - break; - default: - throw new Error(`Unknown type: ${node.type}`); - } - } - visitAlternative(node) { - if (this._handlers.onAlternativeEnter) { - this._handlers.onAlternativeEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onAlternativeLeave) { - this._handlers.onAlternativeLeave(node); - } - } - visitAssertion(node) { - if (this._handlers.onAssertionEnter) { - this._handlers.onAssertionEnter(node); - } - if (node.kind === "lookahead" || node.kind === "lookbehind") { - node.alternatives.forEach(this.visit, this); - } - if (this._handlers.onAssertionLeave) { - this._handlers.onAssertionLeave(node); - } - } - visitBackreference(node) { - if (this._handlers.onBackreferenceEnter) { - this._handlers.onBackreferenceEnter(node); - } - if (this._handlers.onBackreferenceLeave) { - this._handlers.onBackreferenceLeave(node); - } - } - visitCapturingGroup(node) { - if (this._handlers.onCapturingGroupEnter) { - this._handlers.onCapturingGroupEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onCapturingGroupLeave) { - this._handlers.onCapturingGroupLeave(node); - } - } - visitCharacter(node) { - if (this._handlers.onCharacterEnter) { - this._handlers.onCharacterEnter(node); - } - if (this._handlers.onCharacterLeave) { - this._handlers.onCharacterLeave(node); - } - } - visitCharacterClass(node) { - if (this._handlers.onCharacterClassEnter) { - this._handlers.onCharacterClassEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onCharacterClassLeave) { - this._handlers.onCharacterClassLeave(node); - } - } - visitCharacterClassRange(node) { - if (this._handlers.onCharacterClassRangeEnter) { - this._handlers.onCharacterClassRangeEnter(node); - } - this.visitCharacter(node.min); - this.visitCharacter(node.max); - if (this._handlers.onCharacterClassRangeLeave) { - this._handlers.onCharacterClassRangeLeave(node); - } - } - visitCharacterSet(node) { - if (this._handlers.onCharacterSetEnter) { - this._handlers.onCharacterSetEnter(node); - } - if (this._handlers.onCharacterSetLeave) { - this._handlers.onCharacterSetLeave(node); - } - } - visitClassIntersection(node) { - if (this._handlers.onClassIntersectionEnter) { - this._handlers.onClassIntersectionEnter(node); - } - this.visit(node.left); - this.visit(node.right); - if (this._handlers.onClassIntersectionLeave) { - this._handlers.onClassIntersectionLeave(node); - } - } - visitClassStringDisjunction(node) { - if (this._handlers.onClassStringDisjunctionEnter) { - this._handlers.onClassStringDisjunctionEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onClassStringDisjunctionLeave) { - this._handlers.onClassStringDisjunctionLeave(node); - } - } - visitClassSubtraction(node) { - if (this._handlers.onClassSubtractionEnter) { - this._handlers.onClassSubtractionEnter(node); - } - this.visit(node.left); - this.visit(node.right); - if (this._handlers.onClassSubtractionLeave) { - this._handlers.onClassSubtractionLeave(node); - } - } - visitExpressionCharacterClass(node) { - if (this._handlers.onExpressionCharacterClassEnter) { - this._handlers.onExpressionCharacterClassEnter(node); - } - this.visit(node.expression); - if (this._handlers.onExpressionCharacterClassLeave) { - this._handlers.onExpressionCharacterClassLeave(node); - } - } - visitFlags(node) { - if (this._handlers.onFlagsEnter) { - this._handlers.onFlagsEnter(node); - } - if (this._handlers.onFlagsLeave) { - this._handlers.onFlagsLeave(node); - } - } - visitGroup(node) { - if (this._handlers.onGroupEnter) { - this._handlers.onGroupEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onGroupLeave) { - this._handlers.onGroupLeave(node); - } - } - visitPattern(node) { - if (this._handlers.onPatternEnter) { - this._handlers.onPatternEnter(node); - } - node.alternatives.forEach(this.visit, this); - if (this._handlers.onPatternLeave) { - this._handlers.onPatternLeave(node); - } - } - visitQuantifier(node) { - if (this._handlers.onQuantifierEnter) { - this._handlers.onQuantifierEnter(node); - } - this.visit(node.element); - if (this._handlers.onQuantifierLeave) { - this._handlers.onQuantifierLeave(node); - } - } - visitRegExpLiteral(node) { - if (this._handlers.onRegExpLiteralEnter) { - this._handlers.onRegExpLiteralEnter(node); - } - this.visitPattern(node.pattern); - this.visitFlags(node.flags); - if (this._handlers.onRegExpLiteralLeave) { - this._handlers.onRegExpLiteralLeave(node); - } - } - visitStringAlternative(node) { - if (this._handlers.onStringAlternativeEnter) { - this._handlers.onStringAlternativeEnter(node); - } - node.elements.forEach(this.visit, this); - if (this._handlers.onStringAlternativeLeave) { - this._handlers.onStringAlternativeLeave(node); - } - } -} - -function parseRegExpLiteral(source, options) { - return new RegExpParser(options).parseLiteral(String(source)); -} -function validateRegExpLiteral(source, options) { - new RegExpValidator(options).validateLiteral(source); -} -function visitRegExpAST(node, handlers) { - new RegExpVisitor(handlers).visit(node); -} - -export { ast as AST, RegExpParser, RegExpSyntaxError, RegExpValidator, parseRegExpLiteral, validateRegExpLiteral, visitRegExpAST }; -//# sourceMappingURL=index.mjs.map diff --git a/graphql/node_modules/@eslint-community/regexpp/index.mjs.map b/graphql/node_modules/@eslint-community/regexpp/index.mjs.map deleted file mode 100644 index 4c2d1835..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;AAC1B,IAAA,OAAO,cAAc,CAAC,EAAE,CAAC,CAAA;AAC7B,CAAC;AAEK,SAAU,YAAY,CAAC,EAAU,EAAA;IACnC,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC1B,IAAI,EAAE,KAAK,IAAI;AAAE,QAAA,OAAO,IAAI,CAAA;IAC5B,IAAI,EAAE,GAAG,IAAI;AAAE,QAAA,OAAO,KAAK,CAAA;IAC3B,IAAI,EAAE,GAAG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/package.json deleted file mode 100644 index 6c646806..00000000 --- a/graphql/node_modules/@eslint-community/regexpp/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "name": "@eslint-community/regexpp", - "version": "4.11.0", - "description": "Regular expression parser for ECMAScript.", - "keywords": [ - "regexp", - "regular", - "expression", - "parser", - "validator", - "ast", - "abstract", - "syntax", - "tree", - "ecmascript", - "es2015", - "es2016", - "es2017", - "es2018", - "es2019", - "es2020", - "es2021", - "annexB" - ], - "homepage": "https://github.com/eslint-community/regexpp#readme", - "bugs": { - "url": "https://github.com/eslint-community/regexpp/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/eslint-community/regexpp" - }, - "license": "MIT", - "author": "Toru Nagashima", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./index.mjs", - "default": "./index.js" - }, - "./package.json": "./package.json" - }, - "main": "index", - "files": [ - "index.*" - ], - "scripts": { - "prebuild": "npm run -s clean", - "build": "run-s build:*", - "build:tsc": "tsc --module es2015", - "build:rollup": "rollup -c", - "build:dts": "npm run -s build:tsc -- --removeComments false && dts-bundle --name @eslint-community/regexpp --main .temp/index.d.ts --out ../index.d.ts && prettier --write index.d.ts", - "clean": "rimraf .temp index.*", - "lint": "eslint . --ext .ts", - "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000", - "debug": "mocha --require ts-node/register/transpile-only \"test/*.ts\" --reporter dot --timeout 10000", - "update:test": "ts-node scripts/update-fixtures.ts", - "update:unicode": "run-s update:unicode:*", - "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts", - "update:unicode:props": "ts-node scripts/update-unicode-properties.ts", - "update:test262:extract": "ts-node -T scripts/extract-test262.ts", - "preversion": "npm test && npm run -s build", - "postversion": "git push && git push --tags", - "prewatch": "npm run -s clean", - "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions ts --watch --growl" - }, - "dependencies": {}, - "devDependencies": { - "@eslint-community/eslint-plugin-mysticatea": "^15.5.1", - "@rollup/plugin-node-resolve": "^14.1.0", - "@types/eslint": "^8.44.3", - "@types/jsdom": "^16.2.15", - "@types/mocha": "^9.1.1", - "@types/node": "^12.20.55", - "dts-bundle": "^0.7.3", - "eslint": "^8.50.0", - "js-tokens": "^8.0.2", - "jsdom": "^19.0.0", - "mocha": "^9.2.2", - "npm-run-all": "^4.1.5", - "nyc": "^14.1.1", - "rimraf": "^3.0.2", - "rollup": "^2.79.1", - "rollup-plugin-sourcemaps": "^0.6.3", - "ts-node": "^10.9.1", - "typescript": "~5.0.2" - }, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } -} diff --git a/graphql/node_modules/@eslint/config-array/LICENSE b/graphql/node_modules/@eslint/config-array/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/graphql/node_modules/@eslint/config-array/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/graphql/node_modules/@eslint/config-array/README.md b/graphql/node_modules/@eslint/config-array/README.md deleted file mode 100644 index aaa2d352..00000000 --- a/graphql/node_modules/@eslint/config-array/README.md +++ /dev/null @@ -1,359 +0,0 @@ -# Config Array - -## Description - -A config array is a way of managing configurations that are based on glob pattern matching of filenames. Each config array contains the information needed to determine the correct configuration for any file based on the filename. - -**Note:** This is a generic package that can be used outside of ESLint. It contains no ESLint-specific functionality. - -## Installation - -For Node.js and compatible runtimes: - -```shell -npm install @eslint/config-array -# or -yarn add @eslint/config-array -# or -pnpm install @eslint/config-array -# or -bun install @eslint/config-array -``` - -For Deno: - -```shell -deno add @eslint/config-array -``` - -## Background - -The basic idea is that all configuration, including overrides, can be represented by a single array where each item in the array is a config object. Config objects appearing later in the array override config objects appearing earlier in the array. You can calculate a config for a given file by traversing all config objects in the array to find the ones that match the filename. Matching is done by specifying glob patterns in `files` and `ignores` properties on each config object. Here's an example: - -```js -export default [ - // match all JSON files - { - name: "JSON Handler", - files: ["**/*.json"], - handler: jsonHandler, - }, - - // match only package.json - { - name: "package.json Handler", - files: ["package.json"], - handler: packageJsonHandler, - }, -]; -``` - -In this example, there are two config objects: the first matches all JSON files in all directories and the second matches just `package.json` in the base path directory (all the globs are evaluated as relative to a base path that can be specified). When you retrieve a configuration for `foo.json`, only the first config object matches so `handler` is equal to `jsonHandler`; when you retrieve a configuration for `package.json`, `handler` is equal to `packageJsonHandler` (because both config objects match, the second one wins). - -## Usage - -First, import the `ConfigArray` constructor: - -```js -import { ConfigArray } from "@eslint/config-array"; - -// or using CommonJS - -const { ConfigArray } = require("@eslint/config-array"); -``` - -When you create a new instance of `ConfigArray`, you must pass in two arguments: an array of configs and an options object. The array of configs is most likely read in from a configuration file, so here's a typical example: - -```js -const configFilename = path.resolve(process.cwd(), "my.config.js"); -const { default: rawConfigs } = await import(configFilename); -const configs = new ConfigArray(rawConfigs, { - // the path to match filenames from - basePath: process.cwd(), - - // additional items in each config - schema: mySchema, -}); -``` - -This example reads in an object or array from `my.config.js` and passes it into the `ConfigArray` constructor as the first argument. The second argument is an object specifying the `basePath` (the directory in which `my.config.js` is found) and a `schema` to define the additional properties of a config object beyond `files`, `ignores`, and `name`. - -### Specifying a Schema - -The `schema` option is required for you to use additional properties in config objects. The schema is an object that follows the format of an [`ObjectSchema`](https://npmjs.com/package/@eslint/object-schema). The schema specifies both validation and merge rules that the `ConfigArray` instance needs to combine configs when there are multiple matches. Here's an example: - -```js -const configFilename = path.resolve(process.cwd(), "my.config.js"); -const { default: rawConfigs } = await import(configFilename); - -const mySchema = { - - // define the handler key in configs - handler: { - required: true, - merge(a, b) { - if (!b) return a; - if (!a) return b; - }, - validate(value) { - if (typeof value !== "function") { - throw new TypeError("Function expected."); - } - } - } -}; - -const configs = new ConfigArray(rawConfigs, { - - // the path to match filenames from - basePath: process.cwd(), - - // additional item schemas in each config - schema: mySchema, - - // additional config types supported (default: []) - extraConfigTypes: ["array", "function"]; -}); -``` - -### Config Arrays - -Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as: - -```js -export default [ - // JS config - { - files: ["**/*.js"], - handler: jsHandler, - }, - - // JSON configs - [ - // match all JSON files - { - name: "JSON Handler", - files: ["**/*.json"], - handler: jsonHandler, - }, - - // match only package.json - { - name: "package.json Handler", - files: ["package.json"], - handler: packageJsonHandler, - }, - ], - - // filename must match function - { - files: [filePath => filePath.endsWith(".md")], - handler: markdownHandler, - }, - - // filename must match all patterns in subarray - { - files: [["*.test.*", "*.js"]], - handler: jsTestHandler, - }, - - // filename must not match patterns beginning with ! - { - name: "Non-JS files", - files: ["!*.js"], - settings: { - js: false, - }, - }, -]; -``` - -In this example, the array contains both config objects and a config array. When a config array is normalized (see details below), it is flattened so only config objects remain. However, the order of evaluation remains the same. - -If the `files` array contains a function, then that function is called with the absolute path of the file and is expected to return `true` if there is a match and `false` if not. (The `ignores` array can also contain functions.) - -If the `files` array contains an item that is an array of strings and functions, then all patterns must match in order for the config to match. In the preceding examples, both `*.test.*` and `*.js` must match in order for the config object to be used. - -If a pattern in the files array begins with `!` then it excludes that pattern. In the preceding example, any filename that doesn't end with `.js` will automatically get a `settings.js` property set to `false`. - -You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without any other keys, then those ignores will always be applied; otherwise those ignores act as exclusions. Here's an example: - -```js -export default [ - - // Always ignored - { - ignores: ["**/.git/**", "**/node_modules/**"] - }, - - // .eslintrc.js file is ignored only when .js file matches - { - files: ["**/*.js"], - ignores: [".eslintrc.js"] - handler: jsHandler - } -]; -``` - -You can use negated patterns in `ignores` to exclude a file that was already ignored, such as: - -```js -export default [ - // Ignore all JSON files except tsconfig.json - { - files: ["**/*"], - ignores: ["**/*.json", "!tsconfig.json"], - }, -]; -``` - -### Config Functions - -Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example: - -```js -export default [ - // JS config - { - files: ["**/*.js"], - handler: jsHandler, - }, - - // JSON configs - function (context) { - return [ - // match all JSON files - { - name: context.name + " JSON Handler", - files: ["**/*.json"], - handler: jsonHandler, - }, - - // match only package.json - { - name: context.name + " package.json Handler", - files: ["package.json"], - handler: packageJsonHandler, - }, - ]; - }, -]; -``` - -When a config array is normalized, each function is executed and replaced in the config array with the return value. - -**Note:** Config functions can also be async. - -### Normalizing Config Arrays - -Once a config array has been created and loaded with all of the raw config data, it must be normalized before it can be used. The normalization process goes through and flattens the config array as well as executing all config functions to get their final values. - -To normalize a config array, call the `normalize()` method and pass in a context object: - -```js -await configs.normalize({ - name: "MyApp", -}); -``` - -The `normalize()` method returns a promise, so be sure to use the `await` operator. The config array instance is normalized in-place, so you don't need to create a new variable. - -If you want to disallow async config functions, you can call `normalizeSync()` instead. This method is completely synchronous and does not require using the `await` operator as it does not return a promise: - -```js -await configs.normalizeSync({ - name: "MyApp", -}); -``` - -**Important:** Once a `ConfigArray` is normalized, it cannot be changed further. You can, however, create a new `ConfigArray` and pass in the normalized instance to create an unnormalized copy. - -### Getting Config for a File - -To get the config for a file, use the `getConfig()` method on a normalized config array and pass in the filename to get a config for: - -```js -// pass in absolute filename -const fileConfig = configs.getConfig( - path.resolve(process.cwd(), "package.json"), -); -``` - -The config array always returns an object, even if there are no configs matching the given filename. You can then inspect the returned config object to determine how to proceed. - -A few things to keep in mind: - -- You must pass in the absolute filename to get a config for. -- The returned config object never has `files`, `ignores`, or `name` properties; the only properties on the object will be the other configuration options specified. -- The config array caches configs, so subsequent calls to `getConfig()` with the same filename will return in a fast lookup rather than another calculation. -- A config will only be generated if the filename matches an entry in a `files` key. A config will not be generated without matching a `files` key (configs without a `files` key are only applied when another config with a `files` key is applied; configs without `files` are never applied on their own). Any config with a `files` key entry that is `*` or ends with `/**` or `/*` will only be applied if another entry in the same `files` key matches or another config matches. - -## Determining Ignored Paths - -You can determine if a file is ignored by using the `isFileIgnored()` method and passing in the absolute path of any file, as in this example: - -```js -const ignored = configs.isFileIgnored("/foo/bar/baz.txt"); -``` - -A file is considered ignored if any of the following is true: - -- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/a.js` is considered ignored. -- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/baz/a.js` is considered ignored. -- **It matches an ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. - -For directories, use the `isDirectoryIgnored()` method and pass in the absolute path of any directory, as in this example: - -```js -const ignored = configs.isDirectoryIgnored("/foo/bar/"); -``` - -A directory is considered ignored if any of the following is true: - -- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/baz` is considered ignored. -- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/bar/baz/a.js` is considered ignored. -- **It matches and ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored. -- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored. - -**Important:** A pattern such as `foo/**` means that `foo` and `foo/` are _not_ ignored whereas `foo/bar` is ignored. If you want to ignore `foo` and all of its subdirectories, use the pattern `foo` or `foo/` in `ignores`. - -## Caching Mechanisms - -Each `ConfigArray` aggressively caches configuration objects to avoid unnecessary work. This caching occurs in two ways: - -1. **File-based Caching.** For each filename that is passed into a method, the resulting config is cached against that filename so you're always guaranteed to get the same object returned from `getConfig()` whenever you pass the same filename in. -2. **Index-based Caching.** Whenever a config is calculated, the config elements that were used to create the config are also cached. So if a given filename matches elements 1, 5, and 7, the resulting config is cached with a key of `1,5,7`. That way, if another file is passed that matches the same config elements, the result is already known and doesn't have to be recalculated. That means two files that match all the same elements will return the same config from `getConfig()`. - -## Acknowledgements - -The design of this project was influenced by feedback on the ESLint RFC, and incorporates ideas from: - -- Teddy Katz (@not-an-aardvark) -- Toru Nagashima (@mysticatea) -- Kai Cataldo (@kaicataldo) - -## License - -Apache 2.0 - -## Sponsors - -The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. - - - -

Platinum Sponsors

-

Automattic Airbnb

Gold Sponsors

-

Eli Schleifer Salesforce

Silver Sponsors

-

JetBrains Liftoff American Express Workleap

Bronze Sponsors

-

notion Anagram Solver Icons8 Discord Ignition Nx HeroCoders Nextbase Starter Kit

- - - -

Technology Sponsors

-

Netlify Algolia 1Password -

- diff --git a/graphql/node_modules/@eslint/config-array/dist/cjs/index.cjs b/graphql/node_modules/@eslint/config-array/dist/cjs/index.cjs deleted file mode 100644 index 9768999f..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/cjs/index.cjs +++ /dev/null @@ -1,1222 +0,0 @@ -'use strict'; - -var path = require('node:path'); -var minimatch = require('minimatch'); -var createDebug = require('debug'); -var objectSchema = require('@eslint/object-schema'); - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ -/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * A strategy that does nothing. - * @type {PropertyDefinition} - */ -const NOOP_STRATEGY = { - required: false, - merge() { - return undefined; - }, - validate() {}, -}; - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The base schema that every ConfigArray uses. - * @type {ObjectDefinition} - */ -const baseSchema = Object.freeze({ - name: { - required: false, - merge() { - return undefined; - }, - validate(value) { - if (typeof value !== "string") { - throw new TypeError("Property must be a string."); - } - }, - }, - files: NOOP_STRATEGY, - ignores: NOOP_STRATEGY, -}); - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Asserts that a given value is an array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array. - */ -function assertIsArray(value) { - if (!Array.isArray(value)) { - throw new TypeError("Expected value to be an array."); - } -} - -/** - * Asserts that a given value is an array containing only strings and functions. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array of strings and functions. - */ -function assertIsArrayOfStringsAndFunctions(value) { - assertIsArray(value); - - if ( - value.some( - item => typeof item !== "string" && typeof item !== "function", - ) - ) { - throw new TypeError( - "Expected array to only contain strings and functions.", - ); - } -} - -/** - * Asserts that a given value is a non-empty array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array or an empty array. - */ -function assertIsNonEmptyArray(value) { - if (!Array.isArray(value) || value.length === 0) { - throw new TypeError("Expected value to be a non-empty array."); - } -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The schema for `files` and `ignores` that every ConfigArray uses. - * @type {ObjectDefinition} - */ -const filesAndIgnoresSchema = Object.freeze({ - files: { - required: false, - merge() { - return undefined; - }, - validate(value) { - // first check if it's an array - assertIsNonEmptyArray(value); - - // then check each member - value.forEach(item => { - if (Array.isArray(item)) { - assertIsArrayOfStringsAndFunctions(item); - } else if ( - typeof item !== "string" && - typeof item !== "function" - ) { - throw new TypeError( - "Items must be a string, a function, or an array of strings and functions.", - ); - } - }); - }, - }, - ignores: { - required: false, - merge() { - return undefined; - }, - validate: assertIsArrayOfStringsAndFunctions, - }, -}); - -/** - * @fileoverview ConfigArray - * @author Nicholas C. Zakas - */ - - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("./types.ts").ConfigObject} ConfigObject */ -/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ -/** @typedef {import("minimatch").IMinimatch} IMinimatch */ - -/* - * This is a bit of a hack to make TypeScript happy with the Rollup-created - * CommonJS file. Rollup doesn't do object destructuring for imported files - * and instead imports the default via `require()`. This messes up type checking - * for `ObjectSchema`. To work around that, we just import the type manually - * and give it a different name to use in the JSDoc comments. - */ -/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const Minimatch = minimatch.Minimatch; -const debug = createDebug("@eslint/config-array"); - -/** - * A cache for minimatch instances. - * @type {Map} - */ -const minimatchCache = new Map(); - -/** - * A cache for negated minimatch instances. - * @type {Map} - */ -const negatedMinimatchCache = new Map(); - -/** - * Options to use with minimatch. - * @type {Object} - */ -const MINIMATCH_OPTIONS = { - // matchBase: true, - dot: true, - allowWindowsEscape: true, -}; - -/** - * The types of config objects that are supported. - * @type {Set} - */ -const CONFIG_TYPES = new Set(["array", "function"]); - -/** - * Fields that are considered metadata and not part of the config object. - * @type {Set} - */ -const META_FIELDS = new Set(["name"]); - -/** - * A schema containing just files and ignores for early validation. - * @type {ObjectSchemaInstance} - */ -const FILES_AND_IGNORES_SCHEMA = new objectSchema.ObjectSchema(filesAndIgnoresSchema); - -// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`. - -const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" }); -const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" }); -const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({ - status: "unconfigured", -}); - -/** - * Wrapper error for config validation errors that adds a name to the front of the - * error message. - */ -class ConfigError extends Error { - /** - * Creates a new instance. - * @param {string} name The config object name causing the error. - * @param {number} index The index of the config object in the array. - * @param {Object} options The options for the error. - * @param {Error} [options.cause] The error that caused this error. - * @param {string} [options.message] The message to use for the error. - */ - constructor(name, index, { cause, message }) { - const finalMessage = message || cause.message; - - super(`Config ${name}: ${finalMessage}`, { cause }); - - // copy over custom properties that aren't represented - if (cause) { - for (const key of Object.keys(cause)) { - if (!(key in this)) { - this[key] = cause[key]; - } - } - } - - /** - * The name of the error. - * @type {string} - * @readonly - */ - this.name = "ConfigError"; - - /** - * The index of the config object in the array. - * @type {number} - * @readonly - */ - this.index = index; - } -} - -/** - * Gets the name of a config object. - * @param {ConfigObject} config The config object to get the name of. - * @returns {string} The name of the config object. - */ -function getConfigName(config) { - if (config && typeof config.name === "string" && config.name) { - return `"${config.name}"`; - } - - return "(unnamed)"; -} - -/** - * Rethrows a config error with additional information about the config object. - * @param {object} config The config object to get the name of. - * @param {number} index The index of the config object in the array. - * @param {Error} error The error to rethrow. - * @throws {ConfigError} When the error is rethrown for a config. - */ -function rethrowConfigError(config, index, error) { - const configName = getConfigName(config); - throw new ConfigError(configName, index, { cause: error }); -} - -/** - * Shorthand for checking if a value is a string. - * @param {any} value The value to check. - * @returns {boolean} True if a string, false if not. - */ -function isString(value) { - return typeof value === "string"; -} - -/** - * Creates a function that asserts that the config is valid - * during normalization. This checks that the config is not nullish - * and that files and ignores keys of a config object are valid as per base schema. - * @param {Object} config The config object to check. - * @param {number} index The index of the config object in the array. - * @returns {void} - * @throws {ConfigError} If the files and ignores keys of a config object are not valid. - */ -function assertValidBaseConfig(config, index) { - if (config === null) { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected null config.", - }); - } - - if (config === undefined) { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected undefined config.", - }); - } - - if (typeof config !== "object") { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected non-object config.", - }); - } - - const validateConfig = {}; - - if ("files" in config) { - validateConfig.files = config.files; - } - - if ("ignores" in config) { - validateConfig.ignores = config.ignores; - } - - try { - FILES_AND_IGNORES_SCHEMA.validate(validateConfig); - } catch (validationError) { - rethrowConfigError(config, index, validationError); - } -} - -/** - * Wrapper around minimatch that caches minimatch patterns for - * faster matching speed over multiple file path evaluations. - * @param {string} filepath The file path to match. - * @param {string} pattern The glob pattern to match against. - * @param {object} options The minimatch options to use. - * @returns - */ -function doMatch(filepath, pattern, options = {}) { - let cache = minimatchCache; - - if (options.flipNegate) { - cache = negatedMinimatchCache; - } - - let matcher = cache.get(pattern); - - if (!matcher) { - matcher = new Minimatch( - pattern, - Object.assign({}, MINIMATCH_OPTIONS, options), - ); - cache.set(pattern, matcher); - } - - return matcher.match(filepath); -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Promise} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -async function normalize(items, context, extraConfigTypes) { - const allowFunctions = extraConfigTypes.includes("function"); - const allowArrays = extraConfigTypes.includes("array"); - - async function* flatTraverse(array) { - for (let item of array) { - if (typeof item === "function") { - if (!allowFunctions) { - throw new TypeError("Unexpected function."); - } - - item = item(context); - if (item.then) { - item = await item; - } - } - - if (Array.isArray(item)) { - if (!allowArrays) { - throw new TypeError("Unexpected array."); - } - yield* flatTraverse(item); - } else if (typeof item === "function") { - throw new TypeError( - "A config function can only return an object or array.", - ); - } else { - yield item; - } - } - } - - /* - * Async iterables cannot be used with the spread operator, so we need to manually - * create the array to return. - */ - const asyncIterable = await flatTraverse(items); - const configs = []; - - for await (const config of asyncIterable) { - configs.push(config); - } - - return configs; -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Array} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -function normalizeSync(items, context, extraConfigTypes) { - const allowFunctions = extraConfigTypes.includes("function"); - const allowArrays = extraConfigTypes.includes("array"); - - function* flatTraverse(array) { - for (let item of array) { - if (typeof item === "function") { - if (!allowFunctions) { - throw new TypeError("Unexpected function."); - } - - item = item(context); - if (item.then) { - throw new TypeError( - "Async config functions are not supported.", - ); - } - } - - if (Array.isArray(item)) { - if (!allowArrays) { - throw new TypeError("Unexpected array."); - } - - yield* flatTraverse(item); - } else if (typeof item === "function") { - throw new TypeError( - "A config function can only return an object or array.", - ); - } else { - yield item; - } - } - } - - return [...flatTraverse(items)]; -} - -/** - * Determines if a given file path should be ignored based on the given - * matcher. - * @param {Array boolean)>} ignores The ignore patterns to check. - * @param {string} filePath The absolute path of the file to check. - * @param {string} relativeFilePath The relative path of the file to check. - * @returns {boolean} True if the path should be ignored and false if not. - */ -function shouldIgnorePath(ignores, filePath, relativeFilePath) { - // all files outside of the basePath are ignored - if (relativeFilePath.startsWith("..")) { - return true; - } - - return ignores.reduce((ignored, matcher) => { - if (!ignored) { - if (typeof matcher === "function") { - return matcher(filePath); - } - - // don't check negated patterns because we're not ignored yet - if (!matcher.startsWith("!")) { - return doMatch(relativeFilePath, matcher); - } - - // otherwise we're still not ignored - return false; - } - - // only need to check negated patterns because we're ignored - if (typeof matcher === "string" && matcher.startsWith("!")) { - return !doMatch(relativeFilePath, matcher, { - flipNegate: true, - }); - } - - return ignored; - }, false); -} - -/** - * Determines if a given file path is matched by a config based on - * `ignores` only. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatchesIgnores(filePath, basePath, config) { - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - return ( - Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && - !shouldIgnorePath(config.ignores, filePath, relativeFilePath) - ); -} - -/** - * Determines if a given file path is matched by a config. If the config - * has no `files` field, then it matches; otherwise, if a `files` field - * is present then we match the globs in `files` and exclude any globs in - * `ignores`. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatches(filePath, basePath, config) { - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - // match both strings and functions - function match(pattern) { - if (isString(pattern)) { - return doMatch(relativeFilePath, pattern); - } - - if (typeof pattern === "function") { - return pattern(filePath); - } - - throw new TypeError(`Unexpected matcher type ${pattern}.`); - } - - // check for all matches to config.files - let filePathMatchesPattern = config.files.some(pattern => { - if (Array.isArray(pattern)) { - return pattern.every(match); - } - - return match(pattern); - }); - - /* - * If the file path matches the config.files patterns, then check to see - * if there are any files to ignore. - */ - if (filePathMatchesPattern && config.ignores) { - filePathMatchesPattern = !shouldIgnorePath( - config.ignores, - filePath, - relativeFilePath, - ); - } - - return filePathMatchesPattern; -} - -/** - * Ensures that a ConfigArray has been normalized. - * @param {ConfigArray} configArray The ConfigArray to check. - * @returns {void} - * @throws {Error} When the `ConfigArray` is not normalized. - */ -function assertNormalized(configArray) { - // TODO: Throw more verbose error - if (!configArray.isNormalized()) { - throw new Error( - "ConfigArray must be normalized to perform this operation.", - ); - } -} - -/** - * Ensures that config types are valid. - * @param {Array} extraConfigTypes The config types to check. - * @returns {void} - * @throws {Error} When the config types array is invalid. - */ -function assertExtraConfigTypes(extraConfigTypes) { - if (extraConfigTypes.length > 2) { - throw new TypeError( - "configTypes must be an array with at most two items.", - ); - } - - for (const configType of extraConfigTypes) { - if (!CONFIG_TYPES.has(configType)) { - throw new TypeError( - `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`, - ); - } - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -const ConfigArraySymbol = { - isNormalized: Symbol("isNormalized"), - configCache: Symbol("configCache"), - schema: Symbol("schema"), - finalizeConfig: Symbol("finalizeConfig"), - preprocessConfig: Symbol("preprocessConfig"), -}; - -// used to store calculate data for faster lookup -const dataCache = new WeakMap(); - -/** - * Represents an array of config objects and provides method for working with - * those config objects. - */ -class ConfigArray extends Array { - /** - * Creates a new instance of ConfigArray. - * @param {Iterable|Function|Object} configs An iterable yielding config - * objects, or a config function, or a config object. - * @param {Object} options The options for the ConfigArray. - * @param {string} [options.basePath=""] The path of the config file - * @param {boolean} [options.normalized=false] Flag indicating if the - * configs have already been normalized. - * @param {Object} [options.schema] The additional schema - * definitions to use for the ConfigArray schema. - * @param {Array} [options.extraConfigTypes] List of config types supported. - */ - constructor( - configs, - { - basePath = "", - normalized = false, - schema: customSchema, - extraConfigTypes = [], - } = {}, - ) { - super(); - - /** - * Tracks if the array has been normalized. - * @property isNormalized - * @type {boolean} - * @private - */ - this[ConfigArraySymbol.isNormalized] = normalized; - - /** - * The schema used for validating and merging configs. - * @property schema - * @type {ObjectSchemaInstance} - * @private - */ - this[ConfigArraySymbol.schema] = new objectSchema.ObjectSchema( - Object.assign({}, customSchema, baseSchema), - ); - - /** - * The path of the config file that this array was loaded from. - * This is used to calculate filename matches. - * @property basePath - * @type {string} - */ - this.basePath = basePath; - - assertExtraConfigTypes(extraConfigTypes); - - /** - * The supported config types. - * @type {Array} - */ - this.extraConfigTypes = [...extraConfigTypes]; - Object.freeze(this.extraConfigTypes); - - /** - * A cache to store calculated configs for faster repeat lookup. - * @property configCache - * @type {Map} - * @private - */ - this[ConfigArraySymbol.configCache] = new Map(); - - // init cache - dataCache.set(this, { - explicitMatches: new Map(), - directoryMatches: new Map(), - files: undefined, - ignores: undefined, - }); - - // load the configs into this array - if (Array.isArray(configs)) { - this.push(...configs); - } else { - this.push(configs); - } - } - - /** - * Prevent normal array methods from creating a new `ConfigArray` instance. - * This is to ensure that methods such as `slice()` won't try to create a - * new instance of `ConfigArray` behind the scenes as doing so may throw - * an error due to the different constructor signature. - * @type {ArrayConstructor} The `Array` constructor. - */ - static get [Symbol.species]() { - return Array; - } - - /** - * Returns the `files` globs from every config object in the array. - * This can be used to determine which files will be matched by a - * config array or to use as a glob pattern when no patterns are provided - * for a command line interface. - * @returns {Array} An array of matchers. - */ - get files() { - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.files) { - return cache.files; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - if (config.files) { - config.files.forEach(filePattern => { - result.push(filePattern); - }); - } - } - - // store result - cache.files = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Returns ignore matchers that should always be ignored regardless of - * the matching `files` fields in any configs. This is necessary to mimic - * the behavior of things like .gitignore and .eslintignore, allowing a - * globbing operation to be faster. - * @returns {string[]} An array of string patterns and functions to be ignored. - */ - get ignores() { - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.ignores) { - return cache.ignores; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - /* - * We only count ignores if there are no other keys in the object. - * In this case, it acts list a globally ignored pattern. If there - * are additional keys, then ignores act like exclusions. - */ - if ( - config.ignores && - Object.keys(config).filter(key => !META_FIELDS.has(key)) - .length === 1 - ) { - result.push(...config.ignores); - } - } - - // store result - cache.ignores = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Indicates if the config array has been normalized. - * @returns {boolean} True if the config array is normalized, false if not. - */ - isNormalized() { - return this[ConfigArraySymbol.isNormalized]; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {Promise} The current ConfigArray instance. - */ - async normalize(context = {}) { - if (!this.isNormalized()) { - const normalizedConfigs = await normalize( - this, - context, - this.extraConfigTypes, - ); - this.length = 0; - this.push( - ...normalizedConfigs.map( - this[ConfigArraySymbol.preprocessConfig].bind(this), - ), - ); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {ConfigArray} The current ConfigArray instance. - */ - normalizeSync(context = {}) { - if (!this.isNormalized()) { - const normalizedConfigs = normalizeSync( - this, - context, - this.extraConfigTypes, - ); - this.length = 0; - this.push( - ...normalizedConfigs.map( - this[ConfigArraySymbol.preprocessConfig].bind(this), - ), - ); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /* eslint-disable class-methods-use-this -- Desired as instance methods */ - - /** - * Finalizes the state of a config before being cached and returned by - * `getConfig()`. Does nothing by default but is provided to be - * overridden by subclasses as necessary. - * @param {Object} config The config to finalize. - * @returns {Object} The finalized config. - */ - [ConfigArraySymbol.finalizeConfig](config) { - return config; - } - - /** - * Preprocesses a config during the normalization process. This is the - * method to override if you want to convert an array item before it is - * validated for the first time. For example, if you want to replace a - * string with an object, this is the method to override. - * @param {Object} config The config to preprocess. - * @returns {Object} The config to use in place of the argument. - */ - [ConfigArraySymbol.preprocessConfig](config) { - return config; - } - - /* eslint-enable class-methods-use-this -- Desired as instance methods */ - - /** - * Returns the config object for a given file path and a status that can be used to determine why a file has no config. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} - * An object with an optional property `config` and property `status`. - * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, - * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. - */ - getConfigWithStatus(filePath) { - assertNormalized(this); - - const cache = this[ConfigArraySymbol.configCache]; - - // first check the cache for a filename match to avoid duplicate work - if (cache.has(filePath)) { - return cache.get(filePath); - } - - // check to see if the file is outside the base path - - const relativeFilePath = path.relative(this.basePath, filePath); - - if (relativeFilePath.startsWith("..")) { - debug(`No config for file ${filePath} outside of base path`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL); - return CONFIG_WITH_STATUS_EXTERNAL; - } - - // next check to see if the file should be ignored - - // check if this should be ignored due to its directory - if (this.isDirectoryIgnored(path.dirname(filePath))) { - debug(`Ignoring ${filePath} based on directory pattern`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); - return CONFIG_WITH_STATUS_IGNORED; - } - - if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { - debug(`Ignoring ${filePath} based on file pattern`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); - return CONFIG_WITH_STATUS_IGNORED; - } - - // filePath isn't automatically ignored, so try to construct config - - const matchingConfigIndices = []; - let matchFound = false; - const universalPattern = /^\*$|\/\*{1,2}$/u; - - this.forEach((config, index) => { - if (!config.files) { - if (!config.ignores) { - debug(`Anonymous universal config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - if (pathMatchesIgnores(filePath, this.basePath, config)) { - debug( - `Matching config found for ${filePath} (based on ignores: ${config.ignores})`, - ); - matchingConfigIndices.push(index); - return; - } - - debug( - `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`, - ); - return; - } - - /* - * If a config has a files pattern * or patterns ending in /** or /*, - * and the filePath only matches those patterns, then the config is only - * applied if there is another config where the filePath matches - * a file with a specific extensions such as *.js. - */ - - const universalFiles = config.files.filter(pattern => - universalPattern.test(pattern), - ); - - // universal patterns were found so we need to check the config twice - if (universalFiles.length) { - debug("Universal files patterns found. Checking carefully."); - - const nonUniversalFiles = config.files.filter( - pattern => !universalPattern.test(pattern), - ); - - // check that the config matches without the non-universal files first - if ( - nonUniversalFiles.length && - pathMatches(filePath, this.basePath, { - files: nonUniversalFiles, - ignores: config.ignores, - }) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - return; - } - - // if there wasn't a match then check if it matches with universal files - if ( - universalFiles.length && - pathMatches(filePath, this.basePath, { - files: universalFiles, - ignores: config.ignores, - }) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - // if we make here, then there was no match - return; - } - - // the normal case - if (pathMatches(filePath, this.basePath, config)) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - } - }); - - // if matching both files and ignores, there will be no config to create - if (!matchFound) { - debug(`No matching configs found for ${filePath}`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED); - return CONFIG_WITH_STATUS_UNCONFIGURED; - } - - // check to see if there is a config cached by indices - const indicesKey = matchingConfigIndices.toString(); - let configWithStatus = cache.get(indicesKey); - - if (configWithStatus) { - // also store for filename for faster lookup next time - cache.set(filePath, configWithStatus); - - return configWithStatus; - } - - // otherwise construct the config - - // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error - let finalConfig = matchingConfigIndices.reduce((result, index) => { - try { - return this[ConfigArraySymbol.schema].merge( - result, - this[index], - ); - } catch (validationError) { - rethrowConfigError(this[index], index, validationError); - } - }, {}); - - finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig); - - configWithStatus = Object.freeze({ - config: finalConfig, - status: "matched", - }); - cache.set(filePath, configWithStatus); - cache.set(indicesKey, configWithStatus); - - return configWithStatus; - } - - /** - * Returns the config object for a given file path. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {Object|undefined} The config object for this file or `undefined`. - */ - getConfig(filePath) { - return this.getConfigWithStatus(filePath).config; - } - - /** - * Determines whether a file has a config or why it doesn't. - * @param {string} filePath The complete path of the file to check. - * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: - * * `"ignored"`: the file is ignored - * * `"external"`: the file is outside the base path - * * `"unconfigured"`: the file is not matched by any config - * * `"matched"`: the file has a matching config - */ - getConfigStatus(filePath) { - return this.getConfigWithStatus(filePath).status; - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - * @deprecated Use `isFileIgnored` instead. - */ - isIgnored(filePath) { - return this.isFileIgnored(filePath); - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - */ - isFileIgnored(filePath) { - return this.getConfigStatus(filePath) === "ignored"; - } - - /** - * Determines if the given directory is ignored based on the configs. - * This checks only default `ignores` that don't have `files` in the - * same config. A pattern such as `/foo` be considered to ignore the directory - * while a pattern such as `/foo/**` is not considered to ignore the - * directory because it is matching files. - * @param {string} directoryPath The complete path of a directory to check. - * @returns {boolean} True if the directory is ignored, false if not. Will - * return true for any directory that is not inside of `basePath`. - * @throws {Error} When the `ConfigArray` is not normalized. - */ - isDirectoryIgnored(directoryPath) { - assertNormalized(this); - - const relativeDirectoryPath = path - .relative(this.basePath, directoryPath) - .replace(/\\/gu, "/"); - - // basePath directory can never be ignored - if (relativeDirectoryPath === "") { - return false; - } - - if (relativeDirectoryPath.startsWith("..")) { - return true; - } - - // first check the cache - const cache = dataCache.get(this).directoryMatches; - - if (cache.has(relativeDirectoryPath)) { - return cache.get(relativeDirectoryPath); - } - - const directoryParts = relativeDirectoryPath.split("/"); - let relativeDirectoryToCheck = ""; - let result; - - /* - * In order to get the correct gitignore-style ignores, where an - * ignored parent directory cannot have any descendants unignored, - * we need to check every directory starting at the parent all - * the way down to the actual requested directory. - * - * We aggressively cache all of this info to make sure we don't - * have to recalculate everything for every call. - */ - do { - relativeDirectoryToCheck += `${directoryParts.shift()}/`; - - result = shouldIgnorePath( - this.ignores, - path.join(this.basePath, relativeDirectoryToCheck), - relativeDirectoryToCheck, - ); - - cache.set(relativeDirectoryToCheck, result); - } while (!result && directoryParts.length); - - // also cache the result for the requested path - cache.set(relativeDirectoryPath, result); - - return result; - } -} - -exports.ConfigArray = ConfigArray; -exports.ConfigArraySymbol = ConfigArraySymbol; diff --git a/graphql/node_modules/@eslint/config-array/dist/cjs/index.d.cts b/graphql/node_modules/@eslint/config-array/dist/cjs/index.d.cts deleted file mode 100644 index 375f46b3..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/cjs/index.d.cts +++ /dev/null @@ -1,137 +0,0 @@ -export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition; -export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition; -export type ConfigObject = import("./types.ts").ConfigObject; -export type IMinimatchStatic = import("minimatch").IMinimatchStatic; -export type IMinimatch = import("minimatch").IMinimatch; -export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema; -/** - * Represents an array of config objects and provides method for working with - * those config objects. - */ -export class ConfigArray extends Array { - /** - * Creates a new instance of ConfigArray. - * @param {Iterable|Function|Object} configs An iterable yielding config - * objects, or a config function, or a config object. - * @param {Object} options The options for the ConfigArray. - * @param {string} [options.basePath=""] The path of the config file - * @param {boolean} [options.normalized=false] Flag indicating if the - * configs have already been normalized. - * @param {Object} [options.schema] The additional schema - * definitions to use for the ConfigArray schema. - * @param {Array} [options.extraConfigTypes] List of config types supported. - */ - constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: { - basePath?: string; - normalized?: boolean; - schema?: any; - extraConfigTypes?: Array; - }); - /** - * The path of the config file that this array was loaded from. - * This is used to calculate filename matches. - * @property basePath - * @type {string} - */ - basePath: string; - /** - * The supported config types. - * @type {Array} - */ - extraConfigTypes: Array; - /** - * Returns the `files` globs from every config object in the array. - * This can be used to determine which files will be matched by a - * config array or to use as a glob pattern when no patterns are provided - * for a command line interface. - * @returns {Array} An array of matchers. - */ - get files(): (string | Function)[]; - /** - * Returns ignore matchers that should always be ignored regardless of - * the matching `files` fields in any configs. This is necessary to mimic - * the behavior of things like .gitignore and .eslintignore, allowing a - * globbing operation to be faster. - * @returns {string[]} An array of string patterns and functions to be ignored. - */ - get ignores(): string[]; - /** - * Indicates if the config array has been normalized. - * @returns {boolean} True if the config array is normalized, false if not. - */ - isNormalized(): boolean; - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {Promise} The current ConfigArray instance. - */ - normalize(context?: any): Promise; - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {ConfigArray} The current ConfigArray instance. - */ - normalizeSync(context?: any): ConfigArray; - /** - * Returns the config object for a given file path and a status that can be used to determine why a file has no config. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} - * An object with an optional property `config` and property `status`. - * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, - * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. - */ - getConfigWithStatus(filePath: string): { - config?: any; - status: "ignored" | "external" | "unconfigured" | "matched"; - }; - /** - * Returns the config object for a given file path. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {Object|undefined} The config object for this file or `undefined`. - */ - getConfig(filePath: string): any | undefined; - /** - * Determines whether a file has a config or why it doesn't. - * @param {string} filePath The complete path of the file to check. - * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: - * * `"ignored"`: the file is ignored - * * `"external"`: the file is outside the base path - * * `"unconfigured"`: the file is not matched by any config - * * `"matched"`: the file has a matching config - */ - getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched"; - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - * @deprecated Use `isFileIgnored` instead. - */ - isIgnored(filePath: string): boolean; - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - */ - isFileIgnored(filePath: string): boolean; - /** - * Determines if the given directory is ignored based on the configs. - * This checks only default `ignores` that don't have `files` in the - * same config. A pattern such as `/foo` be considered to ignore the directory - * while a pattern such as `/foo/**` is not considered to ignore the - * directory because it is matching files. - * @param {string} directoryPath The complete path of a directory to check. - * @returns {boolean} True if the directory is ignored, false if not. Will - * return true for any directory that is not inside of `basePath`. - * @throws {Error} When the `ConfigArray` is not normalized. - */ - isDirectoryIgnored(directoryPath: string): boolean; -} -export namespace ConfigArraySymbol { - let isNormalized: symbol; - let configCache: symbol; - let schema: symbol; - let finalizeConfig: symbol; - let preprocessConfig: symbol; -} diff --git a/graphql/node_modules/@eslint/config-array/dist/cjs/types.ts b/graphql/node_modules/@eslint/config-array/dist/cjs/types.ts deleted file mode 100644 index 1af40113..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/cjs/types.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @fileoverview Types for the config-array package. - * @author Nicholas C. Zakas - */ - -export interface ConfigObject { - /** - * The files to include. - */ - files?: string[]; - - /** - * The files to exclude. - */ - ignores?: string[]; - - /** - * The name of the config object. - */ - name?: string; - - // may also have any number of other properties - [key: string]: unknown; -} diff --git a/graphql/node_modules/@eslint/config-array/dist/esm/index.d.ts b/graphql/node_modules/@eslint/config-array/dist/esm/index.d.ts deleted file mode 100644 index 375f46b3..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/esm/index.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition; -export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition; -export type ConfigObject = import("./types.ts").ConfigObject; -export type IMinimatchStatic = import("minimatch").IMinimatchStatic; -export type IMinimatch = import("minimatch").IMinimatch; -export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema; -/** - * Represents an array of config objects and provides method for working with - * those config objects. - */ -export class ConfigArray extends Array { - /** - * Creates a new instance of ConfigArray. - * @param {Iterable|Function|Object} configs An iterable yielding config - * objects, or a config function, or a config object. - * @param {Object} options The options for the ConfigArray. - * @param {string} [options.basePath=""] The path of the config file - * @param {boolean} [options.normalized=false] Flag indicating if the - * configs have already been normalized. - * @param {Object} [options.schema] The additional schema - * definitions to use for the ConfigArray schema. - * @param {Array} [options.extraConfigTypes] List of config types supported. - */ - constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: { - basePath?: string; - normalized?: boolean; - schema?: any; - extraConfigTypes?: Array; - }); - /** - * The path of the config file that this array was loaded from. - * This is used to calculate filename matches. - * @property basePath - * @type {string} - */ - basePath: string; - /** - * The supported config types. - * @type {Array} - */ - extraConfigTypes: Array; - /** - * Returns the `files` globs from every config object in the array. - * This can be used to determine which files will be matched by a - * config array or to use as a glob pattern when no patterns are provided - * for a command line interface. - * @returns {Array} An array of matchers. - */ - get files(): (string | Function)[]; - /** - * Returns ignore matchers that should always be ignored regardless of - * the matching `files` fields in any configs. This is necessary to mimic - * the behavior of things like .gitignore and .eslintignore, allowing a - * globbing operation to be faster. - * @returns {string[]} An array of string patterns and functions to be ignored. - */ - get ignores(): string[]; - /** - * Indicates if the config array has been normalized. - * @returns {boolean} True if the config array is normalized, false if not. - */ - isNormalized(): boolean; - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {Promise} The current ConfigArray instance. - */ - normalize(context?: any): Promise; - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {ConfigArray} The current ConfigArray instance. - */ - normalizeSync(context?: any): ConfigArray; - /** - * Returns the config object for a given file path and a status that can be used to determine why a file has no config. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} - * An object with an optional property `config` and property `status`. - * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, - * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. - */ - getConfigWithStatus(filePath: string): { - config?: any; - status: "ignored" | "external" | "unconfigured" | "matched"; - }; - /** - * Returns the config object for a given file path. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {Object|undefined} The config object for this file or `undefined`. - */ - getConfig(filePath: string): any | undefined; - /** - * Determines whether a file has a config or why it doesn't. - * @param {string} filePath The complete path of the file to check. - * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: - * * `"ignored"`: the file is ignored - * * `"external"`: the file is outside the base path - * * `"unconfigured"`: the file is not matched by any config - * * `"matched"`: the file has a matching config - */ - getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched"; - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - * @deprecated Use `isFileIgnored` instead. - */ - isIgnored(filePath: string): boolean; - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - */ - isFileIgnored(filePath: string): boolean; - /** - * Determines if the given directory is ignored based on the configs. - * This checks only default `ignores` that don't have `files` in the - * same config. A pattern such as `/foo` be considered to ignore the directory - * while a pattern such as `/foo/**` is not considered to ignore the - * directory because it is matching files. - * @param {string} directoryPath The complete path of a directory to check. - * @returns {boolean} True if the directory is ignored, false if not. Will - * return true for any directory that is not inside of `basePath`. - * @throws {Error} When the `ConfigArray` is not normalized. - */ - isDirectoryIgnored(directoryPath: string): boolean; -} -export namespace ConfigArraySymbol { - let isNormalized: symbol; - let configCache: symbol; - let schema: symbol; - let finalizeConfig: symbol; - let preprocessConfig: symbol; -} diff --git a/graphql/node_modules/@eslint/config-array/dist/esm/index.js b/graphql/node_modules/@eslint/config-array/dist/esm/index.js deleted file mode 100644 index 249c55e9..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/esm/index.js +++ /dev/null @@ -1,1220 +0,0 @@ -// @ts-self-types="./index.d.ts" -import path from 'node:path'; -import minimatch from 'minimatch'; -import createDebug from 'debug'; -import { ObjectSchema } from '@eslint/object-schema'; - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ -/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * A strategy that does nothing. - * @type {PropertyDefinition} - */ -const NOOP_STRATEGY = { - required: false, - merge() { - return undefined; - }, - validate() {}, -}; - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The base schema that every ConfigArray uses. - * @type {ObjectDefinition} - */ -const baseSchema = Object.freeze({ - name: { - required: false, - merge() { - return undefined; - }, - validate(value) { - if (typeof value !== "string") { - throw new TypeError("Property must be a string."); - } - }, - }, - files: NOOP_STRATEGY, - ignores: NOOP_STRATEGY, -}); - -/** - * @fileoverview ConfigSchema - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Asserts that a given value is an array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array. - */ -function assertIsArray(value) { - if (!Array.isArray(value)) { - throw new TypeError("Expected value to be an array."); - } -} - -/** - * Asserts that a given value is an array containing only strings and functions. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array of strings and functions. - */ -function assertIsArrayOfStringsAndFunctions(value) { - assertIsArray(value); - - if ( - value.some( - item => typeof item !== "string" && typeof item !== "function", - ) - ) { - throw new TypeError( - "Expected array to only contain strings and functions.", - ); - } -} - -/** - * Asserts that a given value is a non-empty array. - * @param {*} value The value to check. - * @returns {void} - * @throws {TypeError} When the value is not an array or an empty array. - */ -function assertIsNonEmptyArray(value) { - if (!Array.isArray(value) || value.length === 0) { - throw new TypeError("Expected value to be a non-empty array."); - } -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The schema for `files` and `ignores` that every ConfigArray uses. - * @type {ObjectDefinition} - */ -const filesAndIgnoresSchema = Object.freeze({ - files: { - required: false, - merge() { - return undefined; - }, - validate(value) { - // first check if it's an array - assertIsNonEmptyArray(value); - - // then check each member - value.forEach(item => { - if (Array.isArray(item)) { - assertIsArrayOfStringsAndFunctions(item); - } else if ( - typeof item !== "string" && - typeof item !== "function" - ) { - throw new TypeError( - "Items must be a string, a function, or an array of strings and functions.", - ); - } - }); - }, - }, - ignores: { - required: false, - merge() { - return undefined; - }, - validate: assertIsArrayOfStringsAndFunctions, - }, -}); - -/** - * @fileoverview ConfigArray - * @author Nicholas C. Zakas - */ - - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("./types.ts").ConfigObject} ConfigObject */ -/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ -/** @typedef {import("minimatch").IMinimatch} IMinimatch */ - -/* - * This is a bit of a hack to make TypeScript happy with the Rollup-created - * CommonJS file. Rollup doesn't do object destructuring for imported files - * and instead imports the default via `require()`. This messes up type checking - * for `ObjectSchema`. To work around that, we just import the type manually - * and give it a different name to use in the JSDoc comments. - */ -/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const Minimatch = minimatch.Minimatch; -const debug = createDebug("@eslint/config-array"); - -/** - * A cache for minimatch instances. - * @type {Map} - */ -const minimatchCache = new Map(); - -/** - * A cache for negated minimatch instances. - * @type {Map} - */ -const negatedMinimatchCache = new Map(); - -/** - * Options to use with minimatch. - * @type {Object} - */ -const MINIMATCH_OPTIONS = { - // matchBase: true, - dot: true, - allowWindowsEscape: true, -}; - -/** - * The types of config objects that are supported. - * @type {Set} - */ -const CONFIG_TYPES = new Set(["array", "function"]); - -/** - * Fields that are considered metadata and not part of the config object. - * @type {Set} - */ -const META_FIELDS = new Set(["name"]); - -/** - * A schema containing just files and ignores for early validation. - * @type {ObjectSchemaInstance} - */ -const FILES_AND_IGNORES_SCHEMA = new ObjectSchema(filesAndIgnoresSchema); - -// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`. - -const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" }); -const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" }); -const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({ - status: "unconfigured", -}); - -/** - * Wrapper error for config validation errors that adds a name to the front of the - * error message. - */ -class ConfigError extends Error { - /** - * Creates a new instance. - * @param {string} name The config object name causing the error. - * @param {number} index The index of the config object in the array. - * @param {Object} options The options for the error. - * @param {Error} [options.cause] The error that caused this error. - * @param {string} [options.message] The message to use for the error. - */ - constructor(name, index, { cause, message }) { - const finalMessage = message || cause.message; - - super(`Config ${name}: ${finalMessage}`, { cause }); - - // copy over custom properties that aren't represented - if (cause) { - for (const key of Object.keys(cause)) { - if (!(key in this)) { - this[key] = cause[key]; - } - } - } - - /** - * The name of the error. - * @type {string} - * @readonly - */ - this.name = "ConfigError"; - - /** - * The index of the config object in the array. - * @type {number} - * @readonly - */ - this.index = index; - } -} - -/** - * Gets the name of a config object. - * @param {ConfigObject} config The config object to get the name of. - * @returns {string} The name of the config object. - */ -function getConfigName(config) { - if (config && typeof config.name === "string" && config.name) { - return `"${config.name}"`; - } - - return "(unnamed)"; -} - -/** - * Rethrows a config error with additional information about the config object. - * @param {object} config The config object to get the name of. - * @param {number} index The index of the config object in the array. - * @param {Error} error The error to rethrow. - * @throws {ConfigError} When the error is rethrown for a config. - */ -function rethrowConfigError(config, index, error) { - const configName = getConfigName(config); - throw new ConfigError(configName, index, { cause: error }); -} - -/** - * Shorthand for checking if a value is a string. - * @param {any} value The value to check. - * @returns {boolean} True if a string, false if not. - */ -function isString(value) { - return typeof value === "string"; -} - -/** - * Creates a function that asserts that the config is valid - * during normalization. This checks that the config is not nullish - * and that files and ignores keys of a config object are valid as per base schema. - * @param {Object} config The config object to check. - * @param {number} index The index of the config object in the array. - * @returns {void} - * @throws {ConfigError} If the files and ignores keys of a config object are not valid. - */ -function assertValidBaseConfig(config, index) { - if (config === null) { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected null config.", - }); - } - - if (config === undefined) { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected undefined config.", - }); - } - - if (typeof config !== "object") { - throw new ConfigError(getConfigName(config), index, { - message: "Unexpected non-object config.", - }); - } - - const validateConfig = {}; - - if ("files" in config) { - validateConfig.files = config.files; - } - - if ("ignores" in config) { - validateConfig.ignores = config.ignores; - } - - try { - FILES_AND_IGNORES_SCHEMA.validate(validateConfig); - } catch (validationError) { - rethrowConfigError(config, index, validationError); - } -} - -/** - * Wrapper around minimatch that caches minimatch patterns for - * faster matching speed over multiple file path evaluations. - * @param {string} filepath The file path to match. - * @param {string} pattern The glob pattern to match against. - * @param {object} options The minimatch options to use. - * @returns - */ -function doMatch(filepath, pattern, options = {}) { - let cache = minimatchCache; - - if (options.flipNegate) { - cache = negatedMinimatchCache; - } - - let matcher = cache.get(pattern); - - if (!matcher) { - matcher = new Minimatch( - pattern, - Object.assign({}, MINIMATCH_OPTIONS, options), - ); - cache.set(pattern, matcher); - } - - return matcher.match(filepath); -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Promise} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -async function normalize(items, context, extraConfigTypes) { - const allowFunctions = extraConfigTypes.includes("function"); - const allowArrays = extraConfigTypes.includes("array"); - - async function* flatTraverse(array) { - for (let item of array) { - if (typeof item === "function") { - if (!allowFunctions) { - throw new TypeError("Unexpected function."); - } - - item = item(context); - if (item.then) { - item = await item; - } - } - - if (Array.isArray(item)) { - if (!allowArrays) { - throw new TypeError("Unexpected array."); - } - yield* flatTraverse(item); - } else if (typeof item === "function") { - throw new TypeError( - "A config function can only return an object or array.", - ); - } else { - yield item; - } - } - } - - /* - * Async iterables cannot be used with the spread operator, so we need to manually - * create the array to return. - */ - const asyncIterable = await flatTraverse(items); - const configs = []; - - for await (const config of asyncIterable) { - configs.push(config); - } - - return configs; -} - -/** - * Normalizes a `ConfigArray` by flattening it and executing any functions - * that are found inside. - * @param {Array} items The items in a `ConfigArray`. - * @param {Object} context The context object to pass into any function - * found. - * @param {Array} extraConfigTypes The config types to check. - * @returns {Array} A flattened array containing only config objects. - * @throws {TypeError} When a config function returns a function. - */ -function normalizeSync(items, context, extraConfigTypes) { - const allowFunctions = extraConfigTypes.includes("function"); - const allowArrays = extraConfigTypes.includes("array"); - - function* flatTraverse(array) { - for (let item of array) { - if (typeof item === "function") { - if (!allowFunctions) { - throw new TypeError("Unexpected function."); - } - - item = item(context); - if (item.then) { - throw new TypeError( - "Async config functions are not supported.", - ); - } - } - - if (Array.isArray(item)) { - if (!allowArrays) { - throw new TypeError("Unexpected array."); - } - - yield* flatTraverse(item); - } else if (typeof item === "function") { - throw new TypeError( - "A config function can only return an object or array.", - ); - } else { - yield item; - } - } - } - - return [...flatTraverse(items)]; -} - -/** - * Determines if a given file path should be ignored based on the given - * matcher. - * @param {Array boolean)>} ignores The ignore patterns to check. - * @param {string} filePath The absolute path of the file to check. - * @param {string} relativeFilePath The relative path of the file to check. - * @returns {boolean} True if the path should be ignored and false if not. - */ -function shouldIgnorePath(ignores, filePath, relativeFilePath) { - // all files outside of the basePath are ignored - if (relativeFilePath.startsWith("..")) { - return true; - } - - return ignores.reduce((ignored, matcher) => { - if (!ignored) { - if (typeof matcher === "function") { - return matcher(filePath); - } - - // don't check negated patterns because we're not ignored yet - if (!matcher.startsWith("!")) { - return doMatch(relativeFilePath, matcher); - } - - // otherwise we're still not ignored - return false; - } - - // only need to check negated patterns because we're ignored - if (typeof matcher === "string" && matcher.startsWith("!")) { - return !doMatch(relativeFilePath, matcher, { - flipNegate: true, - }); - } - - return ignored; - }, false); -} - -/** - * Determines if a given file path is matched by a config based on - * `ignores` only. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatchesIgnores(filePath, basePath, config) { - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - return ( - Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 && - !shouldIgnorePath(config.ignores, filePath, relativeFilePath) - ); -} - -/** - * Determines if a given file path is matched by a config. If the config - * has no `files` field, then it matches; otherwise, if a `files` field - * is present then we match the globs in `files` and exclude any globs in - * `ignores`. - * @param {string} filePath The absolute file path to check. - * @param {string} basePath The base path for the config. - * @param {Object} config The config object to check. - * @returns {boolean} True if the file path is matched by the config, - * false if not. - */ -function pathMatches(filePath, basePath, config) { - /* - * For both files and ignores, functions are passed the absolute - * file path while strings are compared against the relative - * file path. - */ - const relativeFilePath = path.relative(basePath, filePath); - - // match both strings and functions - function match(pattern) { - if (isString(pattern)) { - return doMatch(relativeFilePath, pattern); - } - - if (typeof pattern === "function") { - return pattern(filePath); - } - - throw new TypeError(`Unexpected matcher type ${pattern}.`); - } - - // check for all matches to config.files - let filePathMatchesPattern = config.files.some(pattern => { - if (Array.isArray(pattern)) { - return pattern.every(match); - } - - return match(pattern); - }); - - /* - * If the file path matches the config.files patterns, then check to see - * if there are any files to ignore. - */ - if (filePathMatchesPattern && config.ignores) { - filePathMatchesPattern = !shouldIgnorePath( - config.ignores, - filePath, - relativeFilePath, - ); - } - - return filePathMatchesPattern; -} - -/** - * Ensures that a ConfigArray has been normalized. - * @param {ConfigArray} configArray The ConfigArray to check. - * @returns {void} - * @throws {Error} When the `ConfigArray` is not normalized. - */ -function assertNormalized(configArray) { - // TODO: Throw more verbose error - if (!configArray.isNormalized()) { - throw new Error( - "ConfigArray must be normalized to perform this operation.", - ); - } -} - -/** - * Ensures that config types are valid. - * @param {Array} extraConfigTypes The config types to check. - * @returns {void} - * @throws {Error} When the config types array is invalid. - */ -function assertExtraConfigTypes(extraConfigTypes) { - if (extraConfigTypes.length > 2) { - throw new TypeError( - "configTypes must be an array with at most two items.", - ); - } - - for (const configType of extraConfigTypes) { - if (!CONFIG_TYPES.has(configType)) { - throw new TypeError( - `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`, - ); - } - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -const ConfigArraySymbol = { - isNormalized: Symbol("isNormalized"), - configCache: Symbol("configCache"), - schema: Symbol("schema"), - finalizeConfig: Symbol("finalizeConfig"), - preprocessConfig: Symbol("preprocessConfig"), -}; - -// used to store calculate data for faster lookup -const dataCache = new WeakMap(); - -/** - * Represents an array of config objects and provides method for working with - * those config objects. - */ -class ConfigArray extends Array { - /** - * Creates a new instance of ConfigArray. - * @param {Iterable|Function|Object} configs An iterable yielding config - * objects, or a config function, or a config object. - * @param {Object} options The options for the ConfigArray. - * @param {string} [options.basePath=""] The path of the config file - * @param {boolean} [options.normalized=false] Flag indicating if the - * configs have already been normalized. - * @param {Object} [options.schema] The additional schema - * definitions to use for the ConfigArray schema. - * @param {Array} [options.extraConfigTypes] List of config types supported. - */ - constructor( - configs, - { - basePath = "", - normalized = false, - schema: customSchema, - extraConfigTypes = [], - } = {}, - ) { - super(); - - /** - * Tracks if the array has been normalized. - * @property isNormalized - * @type {boolean} - * @private - */ - this[ConfigArraySymbol.isNormalized] = normalized; - - /** - * The schema used for validating and merging configs. - * @property schema - * @type {ObjectSchemaInstance} - * @private - */ - this[ConfigArraySymbol.schema] = new ObjectSchema( - Object.assign({}, customSchema, baseSchema), - ); - - /** - * The path of the config file that this array was loaded from. - * This is used to calculate filename matches. - * @property basePath - * @type {string} - */ - this.basePath = basePath; - - assertExtraConfigTypes(extraConfigTypes); - - /** - * The supported config types. - * @type {Array} - */ - this.extraConfigTypes = [...extraConfigTypes]; - Object.freeze(this.extraConfigTypes); - - /** - * A cache to store calculated configs for faster repeat lookup. - * @property configCache - * @type {Map} - * @private - */ - this[ConfigArraySymbol.configCache] = new Map(); - - // init cache - dataCache.set(this, { - explicitMatches: new Map(), - directoryMatches: new Map(), - files: undefined, - ignores: undefined, - }); - - // load the configs into this array - if (Array.isArray(configs)) { - this.push(...configs); - } else { - this.push(configs); - } - } - - /** - * Prevent normal array methods from creating a new `ConfigArray` instance. - * This is to ensure that methods such as `slice()` won't try to create a - * new instance of `ConfigArray` behind the scenes as doing so may throw - * an error due to the different constructor signature. - * @type {ArrayConstructor} The `Array` constructor. - */ - static get [Symbol.species]() { - return Array; - } - - /** - * Returns the `files` globs from every config object in the array. - * This can be used to determine which files will be matched by a - * config array or to use as a glob pattern when no patterns are provided - * for a command line interface. - * @returns {Array} An array of matchers. - */ - get files() { - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.files) { - return cache.files; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - if (config.files) { - config.files.forEach(filePattern => { - result.push(filePattern); - }); - } - } - - // store result - cache.files = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Returns ignore matchers that should always be ignored regardless of - * the matching `files` fields in any configs. This is necessary to mimic - * the behavior of things like .gitignore and .eslintignore, allowing a - * globbing operation to be faster. - * @returns {string[]} An array of string patterns and functions to be ignored. - */ - get ignores() { - assertNormalized(this); - - // if this data has been cached, retrieve it - const cache = dataCache.get(this); - - if (cache.ignores) { - return cache.ignores; - } - - // otherwise calculate it - - const result = []; - - for (const config of this) { - /* - * We only count ignores if there are no other keys in the object. - * In this case, it acts list a globally ignored pattern. If there - * are additional keys, then ignores act like exclusions. - */ - if ( - config.ignores && - Object.keys(config).filter(key => !META_FIELDS.has(key)) - .length === 1 - ) { - result.push(...config.ignores); - } - } - - // store result - cache.ignores = result; - dataCache.set(this, cache); - - return result; - } - - /** - * Indicates if the config array has been normalized. - * @returns {boolean} True if the config array is normalized, false if not. - */ - isNormalized() { - return this[ConfigArraySymbol.isNormalized]; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {Promise} The current ConfigArray instance. - */ - async normalize(context = {}) { - if (!this.isNormalized()) { - const normalizedConfigs = await normalize( - this, - context, - this.extraConfigTypes, - ); - this.length = 0; - this.push( - ...normalizedConfigs.map( - this[ConfigArraySymbol.preprocessConfig].bind(this), - ), - ); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /** - * Normalizes a config array by flattening embedded arrays and executing - * config functions. - * @param {Object} [context] The context object for config functions. - * @returns {ConfigArray} The current ConfigArray instance. - */ - normalizeSync(context = {}) { - if (!this.isNormalized()) { - const normalizedConfigs = normalizeSync( - this, - context, - this.extraConfigTypes, - ); - this.length = 0; - this.push( - ...normalizedConfigs.map( - this[ConfigArraySymbol.preprocessConfig].bind(this), - ), - ); - this.forEach(assertValidBaseConfig); - this[ConfigArraySymbol.isNormalized] = true; - - // prevent further changes - Object.freeze(this); - } - - return this; - } - - /* eslint-disable class-methods-use-this -- Desired as instance methods */ - - /** - * Finalizes the state of a config before being cached and returned by - * `getConfig()`. Does nothing by default but is provided to be - * overridden by subclasses as necessary. - * @param {Object} config The config to finalize. - * @returns {Object} The finalized config. - */ - [ConfigArraySymbol.finalizeConfig](config) { - return config; - } - - /** - * Preprocesses a config during the normalization process. This is the - * method to override if you want to convert an array item before it is - * validated for the first time. For example, if you want to replace a - * string with an object, this is the method to override. - * @param {Object} config The config to preprocess. - * @returns {Object} The config to use in place of the argument. - */ - [ConfigArraySymbol.preprocessConfig](config) { - return config; - } - - /* eslint-enable class-methods-use-this -- Desired as instance methods */ - - /** - * Returns the config object for a given file path and a status that can be used to determine why a file has no config. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }} - * An object with an optional property `config` and property `status`. - * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig}, - * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}. - */ - getConfigWithStatus(filePath) { - assertNormalized(this); - - const cache = this[ConfigArraySymbol.configCache]; - - // first check the cache for a filename match to avoid duplicate work - if (cache.has(filePath)) { - return cache.get(filePath); - } - - // check to see if the file is outside the base path - - const relativeFilePath = path.relative(this.basePath, filePath); - - if (relativeFilePath.startsWith("..")) { - debug(`No config for file ${filePath} outside of base path`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL); - return CONFIG_WITH_STATUS_EXTERNAL; - } - - // next check to see if the file should be ignored - - // check if this should be ignored due to its directory - if (this.isDirectoryIgnored(path.dirname(filePath))) { - debug(`Ignoring ${filePath} based on directory pattern`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); - return CONFIG_WITH_STATUS_IGNORED; - } - - if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) { - debug(`Ignoring ${filePath} based on file pattern`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_IGNORED); - return CONFIG_WITH_STATUS_IGNORED; - } - - // filePath isn't automatically ignored, so try to construct config - - const matchingConfigIndices = []; - let matchFound = false; - const universalPattern = /^\*$|\/\*{1,2}$/u; - - this.forEach((config, index) => { - if (!config.files) { - if (!config.ignores) { - debug(`Anonymous universal config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - if (pathMatchesIgnores(filePath, this.basePath, config)) { - debug( - `Matching config found for ${filePath} (based on ignores: ${config.ignores})`, - ); - matchingConfigIndices.push(index); - return; - } - - debug( - `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`, - ); - return; - } - - /* - * If a config has a files pattern * or patterns ending in /** or /*, - * and the filePath only matches those patterns, then the config is only - * applied if there is another config where the filePath matches - * a file with a specific extensions such as *.js. - */ - - const universalFiles = config.files.filter(pattern => - universalPattern.test(pattern), - ); - - // universal patterns were found so we need to check the config twice - if (universalFiles.length) { - debug("Universal files patterns found. Checking carefully."); - - const nonUniversalFiles = config.files.filter( - pattern => !universalPattern.test(pattern), - ); - - // check that the config matches without the non-universal files first - if ( - nonUniversalFiles.length && - pathMatches(filePath, this.basePath, { - files: nonUniversalFiles, - ignores: config.ignores, - }) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - return; - } - - // if there wasn't a match then check if it matches with universal files - if ( - universalFiles.length && - pathMatches(filePath, this.basePath, { - files: universalFiles, - ignores: config.ignores, - }) - ) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - return; - } - - // if we make here, then there was no match - return; - } - - // the normal case - if (pathMatches(filePath, this.basePath, config)) { - debug(`Matching config found for ${filePath}`); - matchingConfigIndices.push(index); - matchFound = true; - } - }); - - // if matching both files and ignores, there will be no config to create - if (!matchFound) { - debug(`No matching configs found for ${filePath}`); - - // cache and return result - cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED); - return CONFIG_WITH_STATUS_UNCONFIGURED; - } - - // check to see if there is a config cached by indices - const indicesKey = matchingConfigIndices.toString(); - let configWithStatus = cache.get(indicesKey); - - if (configWithStatus) { - // also store for filename for faster lookup next time - cache.set(filePath, configWithStatus); - - return configWithStatus; - } - - // otherwise construct the config - - // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error - let finalConfig = matchingConfigIndices.reduce((result, index) => { - try { - return this[ConfigArraySymbol.schema].merge( - result, - this[index], - ); - } catch (validationError) { - rethrowConfigError(this[index], index, validationError); - } - }, {}); - - finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig); - - configWithStatus = Object.freeze({ - config: finalConfig, - status: "matched", - }); - cache.set(filePath, configWithStatus); - cache.set(indicesKey, configWithStatus); - - return configWithStatus; - } - - /** - * Returns the config object for a given file path. - * @param {string} filePath The complete path of a file to get a config for. - * @returns {Object|undefined} The config object for this file or `undefined`. - */ - getConfig(filePath) { - return this.getConfigWithStatus(filePath).config; - } - - /** - * Determines whether a file has a config or why it doesn't. - * @param {string} filePath The complete path of the file to check. - * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values: - * * `"ignored"`: the file is ignored - * * `"external"`: the file is outside the base path - * * `"unconfigured"`: the file is not matched by any config - * * `"matched"`: the file has a matching config - */ - getConfigStatus(filePath) { - return this.getConfigWithStatus(filePath).status; - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - * @deprecated Use `isFileIgnored` instead. - */ - isIgnored(filePath) { - return this.isFileIgnored(filePath); - } - - /** - * Determines if the given filepath is ignored based on the configs. - * @param {string} filePath The complete path of a file to check. - * @returns {boolean} True if the path is ignored, false if not. - */ - isFileIgnored(filePath) { - return this.getConfigStatus(filePath) === "ignored"; - } - - /** - * Determines if the given directory is ignored based on the configs. - * This checks only default `ignores` that don't have `files` in the - * same config. A pattern such as `/foo` be considered to ignore the directory - * while a pattern such as `/foo/**` is not considered to ignore the - * directory because it is matching files. - * @param {string} directoryPath The complete path of a directory to check. - * @returns {boolean} True if the directory is ignored, false if not. Will - * return true for any directory that is not inside of `basePath`. - * @throws {Error} When the `ConfigArray` is not normalized. - */ - isDirectoryIgnored(directoryPath) { - assertNormalized(this); - - const relativeDirectoryPath = path - .relative(this.basePath, directoryPath) - .replace(/\\/gu, "/"); - - // basePath directory can never be ignored - if (relativeDirectoryPath === "") { - return false; - } - - if (relativeDirectoryPath.startsWith("..")) { - return true; - } - - // first check the cache - const cache = dataCache.get(this).directoryMatches; - - if (cache.has(relativeDirectoryPath)) { - return cache.get(relativeDirectoryPath); - } - - const directoryParts = relativeDirectoryPath.split("/"); - let relativeDirectoryToCheck = ""; - let result; - - /* - * In order to get the correct gitignore-style ignores, where an - * ignored parent directory cannot have any descendants unignored, - * we need to check every directory starting at the parent all - * the way down to the actual requested directory. - * - * We aggressively cache all of this info to make sure we don't - * have to recalculate everything for every call. - */ - do { - relativeDirectoryToCheck += `${directoryParts.shift()}/`; - - result = shouldIgnorePath( - this.ignores, - path.join(this.basePath, relativeDirectoryToCheck), - relativeDirectoryToCheck, - ); - - cache.set(relativeDirectoryToCheck, result); - } while (!result && directoryParts.length); - - // also cache the result for the requested path - cache.set(relativeDirectoryPath, result); - - return result; - } -} - -export { ConfigArray, ConfigArraySymbol }; diff --git a/graphql/node_modules/@eslint/config-array/dist/esm/types.d.ts b/graphql/node_modules/@eslint/config-array/dist/esm/types.d.ts deleted file mode 100644 index a495d940..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/esm/types.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview Types for the config-array package. - * @author Nicholas C. Zakas - */ -export interface ConfigObject { - /** - * The files to include. - */ - files?: string[]; - /** - * The files to exclude. - */ - ignores?: string[]; - /** - * The name of the config object. - */ - name?: string; - [key: string]: unknown; -} diff --git a/graphql/node_modules/@eslint/config-array/dist/esm/types.ts b/graphql/node_modules/@eslint/config-array/dist/esm/types.ts deleted file mode 100644 index 1af40113..00000000 --- a/graphql/node_modules/@eslint/config-array/dist/esm/types.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @fileoverview Types for the config-array package. - * @author Nicholas C. Zakas - */ - -export interface ConfigObject { - /** - * The files to include. - */ - files?: string[]; - - /** - * The files to exclude. - */ - ignores?: string[]; - - /** - * The name of the config object. - */ - name?: string; - - // may also have any number of other properties - [key: string]: unknown; -} diff --git a/graphql/node_modules/@eslint/config-array/package.json b/graphql/node_modules/@eslint/config-array/package.json deleted file mode 100644 index 0315920d..00000000 --- a/graphql/node_modules/@eslint/config-array/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@eslint/config-array", - "version": "0.17.1", - "description": "General purpose glob-based configuration matching.", - "author": "Nicholas C. Zakas", - "type": "module", - "main": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", - "exports": { - "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" - }, - "import": { - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - } - }, - "files": [ - "dist" - ], - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/eslint/rewrite.git" - }, - "bugs": { - "url": "https://github.com/eslint/rewrite/issues" - }, - "homepage": "https://github.com/eslint/rewrite#readme", - "scripts": { - "build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js", - "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"", - "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts", - "test:jsr": "npx jsr@latest publish --dry-run", - "pretest": "npm run build", - "test": "mocha tests/", - "test:coverage": "c8 npm test" - }, - "keywords": [ - "configuration", - "configarray", - "config file" - ], - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.4", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "devDependencies": { - "@types/minimatch": "^3.0.5", - "c8": "^9.1.0", - "mocha": "^10.4.0", - "rollup": "^4.16.2", - "rollup-plugin-copy": "^3.5.0", - "typescript": "^5.4.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/graphql/node_modules/@eslint/eslintrc/LICENSE b/graphql/node_modules/@eslint/eslintrc/LICENSE deleted file mode 100644 index b607bb36..00000000 --- a/graphql/node_modules/@eslint/eslintrc/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright OpenJS Foundation and other contributors, - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/@eslint/eslintrc/README.md b/graphql/node_modules/@eslint/eslintrc/README.md deleted file mode 100644 index b23d22b6..00000000 --- a/graphql/node_modules/@eslint/eslintrc/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# ESLintRC Library - -This repository contains the legacy ESLintRC configuration file format for ESLint. This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs. - -**Note:** This package is frozen except for critical bug fixes as ESLint moves to a new config system. - -## Installation - -You can install the package as follows: - -``` -npm install @eslint/eslintrc --save-dev - -# or - -yarn add @eslint/eslintrc -D -``` - -## Usage (ESM) - -The primary class in this package is `FlatCompat`, which is a utility to translate ESLintRC-style configs into flat configs. Here's how you use it inside of your `eslint.config.js` file: - -```js -import { FlatCompat } from "@eslint/eslintrc"; -import js from "@eslint/js"; -import path from "path"; -import { fileURLToPath } from "url"; - -// mimic CommonJS variables -- not needed if using CommonJS -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - -const compat = new FlatCompat({ - baseDirectory: __dirname, // optional; default: process.cwd() - resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional unless you're using "eslint:recommended" - allConfig: js.configs.all, // optional unless you're using "eslint:all" -}); - -export default [ - - // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), - - // mimic environments - ...compat.env({ - es2020: true, - node: true - }), - - // mimic plugins - ...compat.plugins("airbnb", "react"), - - // translate an entire config - ...compat.config({ - plugins: ["airbnb", "react"], - extends: "standard", - env: { - es2020: true, - node: true - }, - rules: { - semi: "error" - } - }) -]; -``` - -## Usage (CommonJS) - -Using `FlatCompat` in CommonJS files is similar to ESM, but you'll use `require()` and `module.exports` instead of `import` and `export`. Here's how you use it inside of your `eslint.config.js` CommonJS file: - -```js -const { FlatCompat } = require("@eslint/eslintrc"); -const js = require("@eslint/js"); - -const compat = new FlatCompat({ - baseDirectory: __dirname, // optional; default: process.cwd() - resolvePluginsRelativeTo: __dirname, // optional - recommendedConfig: js.configs.recommended, // optional unless using "eslint:recommended" - allConfig: js.configs.all, // optional unless using "eslint:all" -}); - -module.exports = [ - - // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), - - // mimic environments - ...compat.env({ - es2020: true, - node: true - }), - - // mimic plugins - ...compat.plugins("airbnb", "react"), - - // translate an entire config - ...compat.config({ - plugins: ["airbnb", "react"], - extends: "standard", - env: { - es2020: true, - node: true - }, - rules: { - semi: "error" - } - }) -]; -``` - -## Troubleshooting - -**TypeError: Missing parameter 'recommendedConfig' in FlatCompat constructor** - -The `recommendedConfig` option is required when any config uses `eslint:recommended`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:recommended` config. - -**TypeError: Missing parameter 'allConfig' in FlatCompat constructor** - -The `allConfig` option is required when any config uses `eslint:all`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:all` config. - - -## License - -MIT License diff --git a/graphql/node_modules/@eslint/eslintrc/conf/config-schema.js b/graphql/node_modules/@eslint/eslintrc/conf/config-schema.js deleted file mode 100644 index ada90e13..00000000 --- a/graphql/node_modules/@eslint/eslintrc/conf/config-schema.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -export default configSchema; diff --git a/graphql/node_modules/@eslint/eslintrc/conf/environments.js b/graphql/node_modules/@eslint/eslintrc/conf/environments.js deleted file mode 100644 index 50d1b1d1..00000000 --- a/graphql/node_modules/@eslint/eslintrc/conf/environments.js +++ /dev/null @@ -1,215 +0,0 @@ -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import globals from "globals"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -export default new Map(Object.entries({ - - // Language - builtin: { - globals: globals.es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals.browser - }, - node: { - globals: globals.node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals["shared-node-browser"] - }, - worker: { - globals: globals.worker - }, - serviceworker: { - globals: globals.serviceworker - }, - - // Frameworks - commonjs: { - globals: globals.commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals.amd - }, - mocha: { - globals: globals.mocha - }, - jasmine: { - globals: globals.jasmine - }, - jest: { - globals: globals.jest - }, - phantomjs: { - globals: globals.phantomjs - }, - jquery: { - globals: globals.jquery - }, - qunit: { - globals: globals.qunit - }, - prototypejs: { - globals: globals.prototypejs - }, - shelljs: { - globals: globals.shelljs - }, - meteor: { - globals: globals.meteor - }, - mongo: { - globals: globals.mongo - }, - protractor: { - globals: globals.protractor - }, - applescript: { - globals: globals.applescript - }, - nashorn: { - globals: globals.nashorn - }, - atomtest: { - globals: globals.atomtest - }, - embertest: { - globals: globals.embertest - }, - webextensions: { - globals: globals.webextensions - }, - greasemonkey: { - globals: globals.greasemonkey - } -})); diff --git a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs b/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs deleted file mode 100644 index 98892f61..00000000 --- a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +++ /dev/null @@ -1,1143 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var util = require('util'); -var path = require('path'); -var Ajv = require('ajv'); -var globals = require('globals'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - environments, - - // shared - ConfigOps, - ConfigValidator, - naming -}; - -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc-universal.cjs.map diff --git a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map b/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map deleted file mode 100644 index 8a62039d..00000000 --- a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc-universal.cjs","sources":["../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/index-universal.js"],"sourcesContent":["/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n naming\n};\n\nexport {\n Legacy\n};\n"],"names":["path","Ajv","globals","util","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;AACtD,IAAI,aAAa,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK;AACxE,QAAQ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC3B,QAAQ,OAAO,GAAG,CAAC;AACnB,KAAK,EAAE,EAAE,CAAC;AACV,IAAI,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,UAAU,EAAE;AACrC,IAAI,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;AACjF;AACA,IAAI,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE;AAC3E,QAAQ,OAAO,aAAa,CAAC;AAC7B,KAAK;AACL;AACA,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;AAC3C,QAAQ,OAAO,aAAa,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;AAC/D,KAAK;AACL;AACA,IAAI,OAAO,CAAC,CAAC;AACb,C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;;;ACrFA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,MAAM;AACV;;;;"} \ No newline at end of file diff --git a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs b/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs deleted file mode 100644 index f3db9dfe..00000000 --- a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +++ /dev/null @@ -1,4371 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var debugOrig = require('debug'); -var fs = require('fs'); -var importFresh = require('import-fresh'); -var Module = require('module'); -var path = require('path'); -var stripComments = require('strip-json-comments'); -var assert = require('assert'); -var ignore = require('ignore'); -var util = require('util'); -var minimatch = require('minimatch'); -var Ajv = require('ajv'); -var globals = require('globals'); -var os = require('os'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var debugOrig__default = /*#__PURE__*/_interopDefaultLegacy(debugOrig); -var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); -var importFresh__default = /*#__PURE__*/_interopDefaultLegacy(importFresh); -var Module__default = /*#__PURE__*/_interopDefaultLegacy(Module); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var stripComments__default = /*#__PURE__*/_interopDefaultLegacy(stripComments); -var assert__default = /*#__PURE__*/_interopDefaultLegacy(assert); -var ignore__default = /*#__PURE__*/_interopDefaultLegacy(ignore); -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var minimatch__default = /*#__PURE__*/_interopDefaultLegacy(minimatch); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); -var os__default = /*#__PURE__*/_interopDefaultLegacy(os); - -/** - * @fileoverview `IgnorePattern` class. - * - * `IgnorePattern` class has the set of glob patterns and the base path. - * - * It provides two static methods. - * - * - `IgnorePattern.createDefaultIgnore(cwd)` - * Create the default predicate function. - * - `IgnorePattern.createIgnore(ignorePatterns)` - * Create the predicate function from multiple `IgnorePattern` objects. - * - * It provides two properties and a method. - * - * - `patterns` - * The glob patterns that ignore to lint. - * - `basePath` - * The base path of the glob patterns. If absolute paths existed in the - * glob patterns, those are handled as relative paths to the base path. - * - `getPatternsRelativeTo(basePath)` - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * - * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes - * `ignorePatterns` properties. - * - * @author Toru Nagashima - */ - -const debug$3 = debugOrig__default["default"]("eslintrc:ignore-pattern"); - -/** @typedef {ReturnType} Ignore */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the path to the common ancestor directory of given paths. - * @param {string[]} sourcePaths The paths to calculate the common ancestor. - * @returns {string} The path to the common ancestor directory. - */ -function getCommonAncestorPath(sourcePaths) { - let result = sourcePaths[0]; - - for (let i = 1; i < sourcePaths.length; ++i) { - const a = result; - const b = sourcePaths[i]; - - // Set the shorter one (it's the common ancestor if one includes the other). - result = a.length < b.length ? a : b; - - // Set the common ancestor. - for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) { - if (a[j] !== b[j]) { - result = a.slice(0, lastSepPos); - break; - } - if (a[j] === path__default["default"].sep) { - lastSepPos = j; - } - } - } - - let resolvedResult = result || path__default["default"].sep; - - // if Windows common ancestor is root of drive must have trailing slash to be absolute. - if (resolvedResult && resolvedResult.endsWith(":") && process.platform === "win32") { - resolvedResult += path__default["default"].sep; - } - return resolvedResult; -} - -/** - * Make relative path. - * @param {string} from The source path to get relative path. - * @param {string} to The destination path to get relative path. - * @returns {string} The relative path. - */ -function relative(from, to) { - const relPath = path__default["default"].relative(from, to); - - if (path__default["default"].sep === "/") { - return relPath; - } - return relPath.split(path__default["default"].sep).join("/"); -} - -/** - * Get the trailing slash if existed. - * @param {string} filePath The path to check. - * @returns {string} The trailing slash if existed. - */ -function dirSuffix(filePath) { - const isDir = ( - filePath.endsWith(path__default["default"].sep) || - (process.platform === "win32" && filePath.endsWith("/")) - ); - - return isDir ? "/" : ""; -} - -const DefaultPatterns = Object.freeze(["/**/node_modules/*"]); -const DotPatterns = Object.freeze([".*", "!.eslintrc.*", "!../"]); - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -class IgnorePattern { - - /** - * The default patterns. - * @type {string[]} - */ - static get DefaultPatterns() { - return DefaultPatterns; - } - - /** - * Create the default predicate function. - * @param {string} cwd The current working directory. - * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createDefaultIgnore(cwd) { - return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]); - } - - /** - * Create the predicate function from multiple `IgnorePattern` objects. - * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns. - * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createIgnore(ignorePatterns) { - debug$3("Create with: %o", ignorePatterns); - - const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath)); - const patterns = [].concat( - ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath)) - ); - const ig = ignore__default["default"]({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]); - const dotIg = ignore__default["default"]({ allowRelativePaths: true }).add(patterns); - - debug$3(" processed: %o", { basePath, patterns }); - - return Object.assign( - (filePath, dot = false) => { - assert__default["default"](path__default["default"].isAbsolute(filePath), "'filePath' should be an absolute path."); - const relPathRaw = relative(basePath, filePath); - const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath)); - const adoptedIg = dot ? dotIg : ig; - const result = relPath !== "" && adoptedIg.ignores(relPath); - - debug$3("Check", { filePath, dot, relativePath: relPath, result }); - return result; - }, - { basePath, patterns } - ); - } - - /** - * Initialize a new `IgnorePattern` instance. - * @param {string[]} patterns The glob patterns that ignore to lint. - * @param {string} basePath The base path of `patterns`. - */ - constructor(patterns, basePath) { - assert__default["default"](path__default["default"].isAbsolute(basePath), "'basePath' should be an absolute path."); - - /** - * The glob patterns that ignore to lint. - * @type {string[]} - */ - this.patterns = patterns; - - /** - * The base path of `patterns`. - * @type {string} - */ - this.basePath = basePath; - - /** - * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`. - * - * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility. - * It's `false` as-is for `ignorePatterns` property in config files. - * @type {boolean} - */ - this.loose = false; - } - - /** - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * @param {string} newBasePath The base path. - * @returns {string[]} Modifired patterns. - */ - getPatternsRelativeTo(newBasePath) { - assert__default["default"](path__default["default"].isAbsolute(newBasePath), "'newBasePath' should be an absolute path."); - const { basePath, loose, patterns } = this; - - if (newBasePath === basePath) { - return patterns; - } - const prefix = `/${relative(newBasePath, basePath)}`; - - return patterns.map(pattern => { - const negative = pattern.startsWith("!"); - const head = negative ? "!" : ""; - const body = negative ? pattern.slice(1) : pattern; - - if (body.startsWith("/") || body.startsWith("../")) { - return `${head}${prefix}${body}`; - } - return loose ? pattern : `${head}${prefix}/**/${body}`; - }); - } -} - -/** - * @fileoverview `ExtractedConfig` class. - * - * `ExtractedConfig` class expresses a final configuration for a specific file. - * - * It provides one method. - * - * - `toCompatibleObjectAsConfigFileContent()` - * Convert this configuration to the compatible object as the content of - * config files. It converts the loaded parser and plugins to strings. - * `CLIEngine#getConfigForFile(filePath)` method uses this method. - * - * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance. - * - * @author Toru Nagashima - */ - -// For VSCode intellisense -/** @typedef {import("../../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").SeverityConf} SeverityConf */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ - -/** - * Check if `xs` starts with `ys`. - * @template T - * @param {T[]} xs The array to check. - * @param {T[]} ys The array that may be the first part of `xs`. - * @returns {boolean} `true` if `xs` starts with `ys`. - */ -function startsWith(xs, ys) { - return xs.length >= ys.length && ys.every((y, i) => y === xs[i]); -} - -/** - * The class for extracted config data. - */ -class ExtractedConfig { - constructor() { - - /** - * The config name what `noInlineConfig` setting came from. - * @type {string} - */ - this.configNameOfNoInlineConfig = ""; - - /** - * Environments. - * @type {Record} - */ - this.env = {}; - - /** - * Global variables. - * @type {Record} - */ - this.globals = {}; - - /** - * The glob patterns that ignore to lint. - * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined} - */ - this.ignores = void 0; - - /** - * The flag that disables directive comments. - * @type {boolean|undefined} - */ - this.noInlineConfig = void 0; - - /** - * Parser definition. - * @type {DependentParser|null} - */ - this.parser = null; - - /** - * Options for the parser. - * @type {Object} - */ - this.parserOptions = {}; - - /** - * Plugin definitions. - * @type {Record} - */ - this.plugins = {}; - - /** - * Processor ID. - * @type {string|null} - */ - this.processor = null; - - /** - * The flag that reports unused `eslint-disable` directive comments. - * @type {boolean|undefined} - */ - this.reportUnusedDisableDirectives = void 0; - - /** - * Rule settings. - * @type {Record} - */ - this.rules = {}; - - /** - * Shared settings. - * @type {Object} - */ - this.settings = {}; - } - - /** - * Convert this config to the compatible object as a config file content. - * @returns {ConfigData} The converted object. - */ - toCompatibleObjectAsConfigFileContent() { - const { - /* eslint-disable no-unused-vars */ - configNameOfNoInlineConfig: _ignore1, - processor: _ignore2, - /* eslint-enable no-unused-vars */ - ignores, - ...config - } = this; - - config.parser = config.parser && config.parser.filePath; - config.plugins = Object.keys(config.plugins).filter(Boolean).reverse(); - config.ignorePatterns = ignores ? ignores.patterns : []; - - // Strip the default patterns from `ignorePatterns`. - if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) { - config.ignorePatterns = - config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length); - } - - return config; - } -} - -/** - * @fileoverview `ConfigArray` class. - * - * `ConfigArray` class expresses the full of a configuration. It has the entry - * config file, base config files that were extended, loaded parsers, and loaded - * plugins. - * - * `ConfigArray` class provides three properties and two methods. - * - * - `pluginEnvironments` - * - `pluginProcessors` - * - `pluginRules` - * The `Map` objects that contain the members of all plugins that this - * config array contains. Those map objects don't have mutation methods. - * Those keys are the member ID such as `pluginId/memberName`. - * - `isRoot()` - * If `true` then this configuration has `root:true` property. - * - `extractConfig(filePath)` - * Extract the final configuration for a given file. This means merging - * every config array element which that `criteria` property matched. The - * `filePath` argument must be an absolute path. - * - * `ConfigArrayFactory` provides the loading logic of config files. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../../shared/types").Rule} Rule */ -/** @typedef {import("../../shared/types").Plugin} Plugin */ -/** @typedef {import("../../shared/types").Processor} Processor */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {import("./override-tester")["OverrideTester"]} OverrideTester */ - -/** - * @typedef {Object} ConfigArrayElement - * @property {string} name The name of this config element. - * @property {string} filePath The path to the source file of this config element. - * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element. - * @property {Record|undefined} env The environment settings. - * @property {Record|undefined} globals The global variable settings. - * @property {IgnorePattern|undefined} ignorePattern The ignore patterns. - * @property {boolean|undefined} noInlineConfig The flag that disables directive comments. - * @property {DependentParser|undefined} parser The parser loader. - * @property {Object|undefined} parserOptions The parser options. - * @property {Record|undefined} plugins The plugin loaders. - * @property {string|undefined} processor The processor name to refer plugin's processor. - * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments. - * @property {boolean|undefined} root The flag to express root. - * @property {Record|undefined} rules The rule settings - * @property {Object|undefined} settings The shared settings. - * @property {"config" | "ignore" | "implicit-processor"} type The element type. - */ - -/** - * @typedef {Object} ConfigArrayInternalSlots - * @property {Map} cache The cache to extract configs. - * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition. - * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition. - * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$2 = new class extends WeakMap { - get(key) { - let value = super.get(key); - - if (!value) { - value = { - cache: new Map(), - envMap: null, - processorMap: null, - ruleMap: null - }; - super.set(key, value); - } - - return value; - } -}(); - -/** - * Get the indices which are matched to a given file. - * @param {ConfigArrayElement[]} elements The elements. - * @param {string} filePath The path to a target file. - * @returns {number[]} The indices. - */ -function getMatchedIndices(elements, filePath) { - const indices = []; - - for (let i = elements.length - 1; i >= 0; --i) { - const element = elements[i]; - - if (!element.criteria || (filePath && element.criteria.test(filePath))) { - indices.push(i); - } - } - - return indices; -} - -/** - * Check if a value is a non-null object. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(x) { - return typeof x === "object" && x !== null; -} - -/** - * Merge two objects. - * - * Assign every property values of `y` to `x` if `x` doesn't have the property. - * If `x`'s property value is an object, it does recursive. - * @param {Object} target The destination to merge - * @param {Object|undefined} source The source to merge. - * @returns {void} - */ -function mergeWithoutOverwrite(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - - if (isNonNullObject(target[key])) { - mergeWithoutOverwrite(target[key], source[key]); - } else if (target[key] === void 0) { - if (isNonNullObject(source[key])) { - target[key] = Array.isArray(source[key]) ? [] : {}; - mergeWithoutOverwrite(target[key], source[key]); - } else if (source[key] !== void 0) { - target[key] = source[key]; - } - } - } -} - -/** - * The error for plugin conflicts. - */ -class PluginConflictError extends Error { - - /** - * Initialize this error object. - * @param {string} pluginId The plugin ID. - * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins. - */ - constructor(pluginId, plugins) { - super(`Plugin "${pluginId}" was conflicted between ${plugins.map(p => `"${p.importerName}"`).join(" and ")}.`); - this.messageTemplate = "plugin-conflict"; - this.messageData = { pluginId, plugins }; - } -} - -/** - * Merge plugins. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergePlugins(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetValue = target[key]; - const sourceValue = source[key]; - - // Adopt the plugin which was found at first. - if (targetValue === void 0) { - if (sourceValue.error) { - throw sourceValue.error; - } - target[key] = sourceValue; - } else if (sourceValue.filePath !== targetValue.filePath) { - throw new PluginConflictError(key, [ - { - filePath: targetValue.filePath, - importerName: targetValue.importerName - }, - { - filePath: sourceValue.filePath, - importerName: sourceValue.importerName - } - ]); - } - } -} - -/** - * Merge rule configs. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergeRuleConfigs(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetDef = target[key]; - const sourceDef = source[key]; - - // Adopt the rule config which was found at first. - if (targetDef === void 0) { - if (Array.isArray(sourceDef)) { - target[key] = [...sourceDef]; - } else { - target[key] = [sourceDef]; - } - - /* - * If the first found rule config is severity only and the current rule - * config has options, merge the severity and the options. - */ - } else if ( - targetDef.length === 1 && - Array.isArray(sourceDef) && - sourceDef.length >= 2 - ) { - targetDef.push(...sourceDef.slice(1)); - } - } -} - -/** - * Create the extracted config. - * @param {ConfigArray} instance The config elements. - * @param {number[]} indices The indices to use. - * @returns {ExtractedConfig} The extracted config. - */ -function createConfig(instance, indices) { - const config = new ExtractedConfig(); - const ignorePatterns = []; - - // Merge elements. - for (const index of indices) { - const element = instance[index]; - - // Adopt the parser which was found at first. - if (!config.parser && element.parser) { - if (element.parser.error) { - throw element.parser.error; - } - config.parser = element.parser; - } - - // Adopt the processor which was found at first. - if (!config.processor && element.processor) { - config.processor = element.processor; - } - - // Adopt the noInlineConfig which was found at first. - if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) { - config.noInlineConfig = element.noInlineConfig; - config.configNameOfNoInlineConfig = element.name; - } - - // Adopt the reportUnusedDisableDirectives which was found at first. - if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) { - config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives; - } - - // Collect ignorePatterns - if (element.ignorePattern) { - ignorePatterns.push(element.ignorePattern); - } - - // Merge others. - mergeWithoutOverwrite(config.env, element.env); - mergeWithoutOverwrite(config.globals, element.globals); - mergeWithoutOverwrite(config.parserOptions, element.parserOptions); - mergeWithoutOverwrite(config.settings, element.settings); - mergePlugins(config.plugins, element.plugins); - mergeRuleConfigs(config.rules, element.rules); - } - - // Create the predicate function for ignore patterns. - if (ignorePatterns.length > 0) { - config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse()); - } - - return config; -} - -/** - * Collect definitions. - * @template T, U - * @param {string} pluginId The plugin ID for prefix. - * @param {Record} defs The definitions to collect. - * @param {Map} map The map to output. - * @returns {void} - */ -function collect(pluginId, defs, map) { - if (defs) { - const prefix = pluginId && `${pluginId}/`; - - for (const [key, value] of Object.entries(defs)) { - map.set(`${prefix}${key}`, value); - } - } -} - -/** - * Delete the mutation methods from a given map. - * @param {Map} map The map object to delete. - * @returns {void} - */ -function deleteMutationMethods(map) { - Object.defineProperties(map, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - set: { configurable: true, value: void 0 } - }); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArrayElement[]} elements The config elements. - * @param {ConfigArrayInternalSlots} slots The internal slots. - * @returns {void} - */ -function initPluginMemberMaps(elements, slots) { - const processed = new Set(); - - slots.envMap = new Map(); - slots.processorMap = new Map(); - slots.ruleMap = new Map(); - - for (const element of elements) { - if (!element.plugins) { - continue; - } - - for (const [pluginId, value] of Object.entries(element.plugins)) { - const plugin = value.definition; - - if (!plugin || processed.has(pluginId)) { - continue; - } - processed.add(pluginId); - - collect(pluginId, plugin.environments, slots.envMap); - collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap); - } - } - - deleteMutationMethods(slots.envMap); - deleteMutationMethods(slots.processorMap); - deleteMutationMethods(slots.ruleMap); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArray} instance The config elements. - * @returns {ConfigArrayInternalSlots} The extracted config. - */ -function ensurePluginMemberMaps(instance) { - const slots = internalSlotsMap$2.get(instance); - - if (!slots.ruleMap) { - initPluginMemberMaps(instance, slots); - } - - return slots; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The Config Array. - * - * `ConfigArray` instance contains all settings, parsers, and plugins. - * You need to call `ConfigArray#extractConfig(filePath)` method in order to - * extract, merge and get only the config data which is related to an arbitrary - * file. - * @extends {Array} - */ -class ConfigArray extends Array { - - /** - * Get the plugin environments. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin environments. - */ - get pluginEnvironments() { - return ensurePluginMemberMaps(this).envMap; - } - - /** - * Get the plugin processors. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin processors. - */ - get pluginProcessors() { - return ensurePluginMemberMaps(this).processorMap; - } - - /** - * Get the plugin rules. - * The returned map cannot be mutated. - * @returns {ReadonlyMap} The plugin rules. - */ - get pluginRules() { - return ensurePluginMemberMaps(this).ruleMap; - } - - /** - * Check if this config has `root` flag. - * @returns {boolean} `true` if this config array is root. - */ - isRoot() { - for (let i = this.length - 1; i >= 0; --i) { - const root = this[i].root; - - if (typeof root === "boolean") { - return root; - } - } - return false; - } - - /** - * Extract the config data which is related to a given file. - * @param {string} filePath The absolute path to the target file. - * @returns {ExtractedConfig} The extracted config data. - */ - extractConfig(filePath) { - const { cache } = internalSlotsMap$2.get(this); - const indices = getMatchedIndices(this, filePath); - const cacheKey = indices.join(","); - - if (!cache.has(cacheKey)) { - cache.set(cacheKey, createConfig(this, indices)); - } - - return cache.get(cacheKey); - } - - /** - * Check if a given path is an additional lint target. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the file is an additional lint target. - */ - isAdditionalTargetPath(filePath) { - for (const { criteria, type } of this) { - if ( - type === "config" && - criteria && - !criteria.endsWithWildcard && - criteria.test(filePath) - ) { - return true; - } - } - return false; - } -} - -/** - * Get the used extracted configs. - * CLIEngine will use this method to collect used deprecated rules. - * @param {ConfigArray} instance The config array object to get. - * @returns {ExtractedConfig[]} The used extracted configs. - * @private - */ -function getUsedExtractedConfigs(instance) { - const { cache } = internalSlotsMap$2.get(instance); - - return Array.from(cache.values()); -} - -/** - * @fileoverview `ConfigDependency` class. - * - * `ConfigDependency` class expresses a loaded parser or plugin. - * - * If the parser or plugin was loaded successfully, it has `definition` property - * and `filePath` property. Otherwise, it has `error` property. - * - * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it - * omits `definition` property. - * - * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers - * or plugins. - * - * @author Toru Nagashima - */ - -/** - * The class is to store parsers or plugins. - * This class hides the loaded object from `JSON.stringify()` and `console.log`. - * @template T - */ -class ConfigDependency { - - /** - * Initialize this instance. - * @param {Object} data The dependency data. - * @param {T} [data.definition] The dependency if the loading succeeded. - * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded. - * @param {Error} [data.error] The error object if the loading failed. - * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded. - * @param {string} data.id The ID of this dependency. - * @param {string} data.importerName The name of the config file which loads this dependency. - * @param {string} data.importerPath The path to the config file which loads this dependency. - */ - constructor({ - definition = null, - original = null, - error = null, - filePath = null, - id, - importerName, - importerPath - }) { - - /** - * The loaded dependency if the loading succeeded. - * @type {T|null} - */ - this.definition = definition; - - /** - * The original dependency as loaded directly from disk if the loading succeeded. - * @type {T|null} - */ - this.original = original; - - /** - * The error object if the loading failed. - * @type {Error|null} - */ - this.error = error; - - /** - * The loaded dependency if the loading succeeded. - * @type {string|null} - */ - this.filePath = filePath; - - /** - * The ID of this dependency. - * @type {string} - */ - this.id = id; - - /** - * The name of the config file which loads this dependency. - * @type {string} - */ - this.importerName = importerName; - - /** - * The path to the config file which loads this dependency. - * @type {string} - */ - this.importerPath = importerPath; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - const obj = this[util__default["default"].inspect.custom](); - - // Display `error.message` (`Error#message` is unenumerable). - if (obj.error instanceof Error) { - obj.error = { ...obj.error, message: obj.error.message }; - } - - return obj; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - const { - definition: _ignore1, // eslint-disable-line no-unused-vars - original: _ignore2, // eslint-disable-line no-unused-vars - ...obj - } = this; - - return obj; - } -} - -/** - * @fileoverview `OverrideTester` class. - * - * `OverrideTester` class handles `files` property and `excludedFiles` property - * of `overrides` config. - * - * It provides one method. - * - * - `test(filePath)` - * Test if a file path matches the pair of `files` property and - * `excludedFiles` property. The `filePath` argument must be an absolute - * path. - * - * `ConfigArrayFactory` creates `OverrideTester` objects when it processes - * `overrides` properties. - * - * @author Toru Nagashima - */ - -const { Minimatch } = minimatch__default["default"]; - -const minimatchOpts = { dot: true, matchBase: true }; - -/** - * @typedef {Object} Pattern - * @property {InstanceType[] | null} includes The positive matchers. - * @property {InstanceType[] | null} excludes The negative matchers. - */ - -/** - * Normalize a given pattern to an array. - * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns. - * @returns {string[]|null} Normalized patterns. - * @private - */ -function normalizePatterns(patterns) { - if (Array.isArray(patterns)) { - return patterns.filter(Boolean); - } - if (typeof patterns === "string" && patterns) { - return [patterns]; - } - return []; -} - -/** - * Create the matchers of given patterns. - * @param {string[]} patterns The patterns. - * @returns {InstanceType[] | null} The matchers. - */ -function toMatcher(patterns) { - if (patterns.length === 0) { - return null; - } - return patterns.map(pattern => { - if (/^\.[/\\]/u.test(pattern)) { - return new Minimatch( - pattern.slice(2), - - // `./*.js` should not match with `subdir/foo.js` - { ...minimatchOpts, matchBase: false } - ); - } - return new Minimatch(pattern, minimatchOpts); - }); -} - -/** - * Convert a given matcher to string. - * @param {Pattern} matchers The matchers. - * @returns {string} The string expression of the matcher. - */ -function patternToJson({ includes, excludes }) { - return { - includes: includes && includes.map(m => m.pattern), - excludes: excludes && excludes.map(m => m.pattern) - }; -} - -/** - * The class to test given paths are matched by the patterns. - */ -class OverrideTester { - - /** - * Create a tester with given criteria. - * If there are no criteria, returns `null`. - * @param {string|string[]} files The glob patterns for included files. - * @param {string|string[]} excludedFiles The glob patterns for excluded files. - * @param {string} basePath The path to the base directory to test paths. - * @returns {OverrideTester|null} The created instance or `null`. - */ - static create(files, excludedFiles, basePath) { - const includePatterns = normalizePatterns(files); - const excludePatterns = normalizePatterns(excludedFiles); - let endsWithWildcard = false; - - if (includePatterns.length === 0) { - return null; - } - - // Rejects absolute paths or relative paths to parents. - for (const pattern of includePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - if (pattern.endsWith("*")) { - endsWithWildcard = true; - } - } - for (const pattern of excludePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - } - - const includes = toMatcher(includePatterns); - const excludes = toMatcher(excludePatterns); - - return new OverrideTester( - [{ includes, excludes }], - basePath, - endsWithWildcard - ); - } - - /** - * Combine two testers by logical and. - * If either of the testers was `null`, returns the other tester. - * The `basePath` property of the two must be the same value. - * @param {OverrideTester|null} a A tester. - * @param {OverrideTester|null} b Another tester. - * @returns {OverrideTester|null} Combined tester. - */ - static and(a, b) { - if (!b) { - return a && new OverrideTester( - a.patterns, - a.basePath, - a.endsWithWildcard - ); - } - if (!a) { - return new OverrideTester( - b.patterns, - b.basePath, - b.endsWithWildcard - ); - } - - assert__default["default"].strictEqual(a.basePath, b.basePath); - return new OverrideTester( - a.patterns.concat(b.patterns), - a.basePath, - a.endsWithWildcard || b.endsWithWildcard - ); - } - - /** - * Initialize this instance. - * @param {Pattern[]} patterns The matchers. - * @param {string} basePath The base path. - * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`. - */ - constructor(patterns, basePath, endsWithWildcard = false) { - - /** @type {Pattern[]} */ - this.patterns = patterns; - - /** @type {string} */ - this.basePath = basePath; - - /** @type {boolean} */ - this.endsWithWildcard = endsWithWildcard; - } - - /** - * Test if a given path is matched or not. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the path was matched. - */ - test(filePath) { - if (typeof filePath !== "string" || !path__default["default"].isAbsolute(filePath)) { - throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`); - } - const relativePath = path__default["default"].relative(this.basePath, filePath); - - return this.patterns.every(({ includes, excludes }) => ( - (!includes || includes.some(m => m.match(relativePath))) && - (!excludes || !excludes.some(m => m.match(relativePath))) - )); - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - if (this.patterns.length === 1) { - return { - ...patternToJson(this.patterns[0]), - basePath: this.basePath - }; - } - return { - AND: this.patterns.map(patternToJson), - basePath: this.basePath - }; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - return this.toJSON(); - } -} - -/** - * @fileoverview `ConfigArray` class. - * @author Toru Nagashima - */ - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -/* - * `Module.createRequire` is added in v12.2.0. It supports URL as well. - * We only support the case where the argument is a filepath, not a URL. - */ -const createRequire = Module__default["default"].createRequire; - -/** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ -function resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } -} - -var ModuleResolver = { - __proto__: null, - resolve: resolve -}; - -/** - * @fileoverview The factory of `ConfigArray` objects. - * - * This class provides methods to create `ConfigArray` instance. - * - * - `create(configData, options)` - * Create a `ConfigArray` instance from a config data. This is to handle CLI - * options except `--config`. - * - `loadFile(filePath, options)` - * Create a `ConfigArray` instance from a config file. This is to handle - * `--config` option. If the file was not found, throws the following error: - * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error. - * - If the filename was `package.json`, an IO error or an - * `ESLINT_CONFIG_FIELD_NOT_FOUND` error. - * - Otherwise, an IO error such as `ENOENT`. - * - `loadInDirectory(directoryPath, options)` - * Create a `ConfigArray` instance from a config file which is on a given - * directory. This tries to load `.eslintrc.*` or `package.json`. If not - * found, returns an empty `ConfigArray`. - * - `loadESLintIgnore(filePath)` - * Create a `ConfigArray` instance from a config file that is `.eslintignore` - * format. This is to handle `--ignore-path` option. - * - `loadDefaultESLintIgnore()` - * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in - * the current working directory. - * - * `ConfigArrayFactory` class has the responsibility that loads configuration - * files, including loading `extends`, `parser`, and `plugins`. The created - * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`. - * - * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class - * handles cascading and hierarchy. - * - * @author Toru Nagashima - */ - -const require$1 = Module.createRequire(require('url').pathToFileURL(__filename).toString()); - -const debug$2 = debugOrig__default["default"]("eslintrc:config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const configFilenames = [ - ".eslintrc.js", - ".eslintrc.cjs", - ".eslintrc.yaml", - ".eslintrc.yml", - ".eslintrc.json", - ".eslintrc", - "package.json" -]; - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {ConfigArray[0]} ConfigArrayElement */ - -/** - * @typedef {Object} ConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {string} [cwd] The path to the current working directory. - * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cwd The path to the current working directory. - * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {string} pluginBasePath The base path to resolve plugins. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$1 = new WeakMap(); - -/** @type {WeakMap} */ -const normalizedPlugins = new WeakMap(); - -/** - * Check if a given string is a file path. - * @param {string} nameOrPath A module name or file path. - * @returns {boolean} `true` if the `nameOrPath` is a file path. - */ -function isFilePath(nameOrPath) { - return ( - /^\.{1,2}[/\\]/u.test(nameOrPath) || - path__default["default"].isAbsolute(nameOrPath) - ); -} - -/** - * Convenience wrapper for synchronously reading file contents. - * @param {string} filePath The filename to read. - * @returns {string} The file contents, with the BOM removed. - * @private - */ -function readFile(filePath) { - return fs__default["default"].readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); -} - -/** - * Loads a YAML configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadYAMLConfigFile(filePath) { - debug$2(`Loading YAML config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - - // empty YAML file can be null, so always use - return yaml.load(readFile(filePath)) || {}; - } catch (e) { - debug$2(`Error reading YAML file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JSON configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSONConfigFile(filePath) { - debug$2(`Loading JSON config file: ${filePath}`); - - try { - return JSON.parse(stripComments__default["default"](readFile(filePath))); - } catch (e) { - debug$2(`Error reading JSON file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - e.messageTemplate = "failed-to-read-json"; - e.messageData = { - path: filePath, - message: e.message - }; - throw e; - } -} - -/** - * Loads a legacy (.eslintrc) configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadLegacyConfigFile(filePath) { - debug$2(`Loading legacy config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - return yaml.load(stripComments__default["default"](readFile(filePath))) || /* istanbul ignore next */ {}; - } catch (e) { - debug$2("Error reading YAML file: %s\n%o", filePath, e); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JavaScript configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSConfigFile(filePath) { - debug$2(`Loading JS config file: ${filePath}`); - try { - return importFresh__default["default"](filePath); - } catch (e) { - debug$2(`Error reading JavaScript file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a configuration from a package.json file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadPackageJSONConfigFile(filePath) { - debug$2(`Loading package.json config file: ${filePath}`); - try { - const packageData = loadJSONConfigFile(filePath); - - if (!Object.hasOwnProperty.call(packageData, "eslintConfig")) { - throw Object.assign( - new Error("package.json file doesn't have 'eslintConfig' field."), - { code: "ESLINT_CONFIG_FIELD_NOT_FOUND" } - ); - } - - return packageData.eslintConfig; - } catch (e) { - debug$2(`Error reading package.json file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a `.eslintignore` from a file. - * @param {string} filePath The filename to load. - * @returns {string[]} The ignore patterns from the file. - * @private - */ -function loadESLintIgnoreFile(filePath) { - debug$2(`Loading .eslintignore file: ${filePath}`); - - try { - return readFile(filePath) - .split(/\r?\n/gu) - .filter(line => line.trim() !== "" && !line.startsWith("#")); - } catch (e) { - debug$2(`Error reading .eslintignore file: ${filePath}`); - e.message = `Cannot read .eslintignore file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Creates an error to notify about a missing config to extend from. - * @param {string} configName The name of the missing config. - * @param {string} importerName The name of the config that imported the missing config - * @param {string} messageTemplate The text template to source error strings from. - * @returns {Error} The error object to throw - * @private - */ -function configInvalidError(configName, importerName, messageTemplate) { - return Object.assign( - new Error(`Failed to load config "${configName}" to extend from.`), - { - messageTemplate, - messageData: { configName, importerName } - } - ); -} - -/** - * Loads a configuration file regardless of the source. Inspects the file path - * to determine the correctly way to load the config file. - * @param {string} filePath The path to the configuration. - * @returns {ConfigData|null} The configuration information. - * @private - */ -function loadConfigFile(filePath) { - switch (path__default["default"].extname(filePath)) { - case ".js": - case ".cjs": - return loadJSConfigFile(filePath); - - case ".json": - if (path__default["default"].basename(filePath) === "package.json") { - return loadPackageJSONConfigFile(filePath); - } - return loadJSONConfigFile(filePath); - - case ".yaml": - case ".yml": - return loadYAMLConfigFile(filePath); - - default: - return loadLegacyConfigFile(filePath); - } -} - -/** - * Write debug log. - * @param {string} request The requested module name. - * @param {string} relativeTo The file path to resolve the request relative to. - * @param {string} filePath The resolved file path. - * @returns {void} - */ -function writeDebugLogForLoading(request, relativeTo, filePath) { - /* istanbul ignore next */ - if (debug$2.enabled) { - let nameAndVersion = null; - - try { - const packageJsonPath = resolve( - `${request}/package.json`, - relativeTo - ); - const { version = "unknown" } = require$1(packageJsonPath); - - nameAndVersion = `${request}@${version}`; - } catch (error) { - debug$2("package.json was not found:", error.message); - nameAndVersion = request; - } - - debug$2("Loaded: %s (%s)", nameAndVersion, filePath); - } -} - -/** - * Create a new context with default values. - * @param {ConfigArrayFactoryInternalSlots} slots The internal slots. - * @param {"config" | "ignore" | "implicit-processor" | undefined} providedType The type of the current configuration. Default is `"config"`. - * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`. - * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string. - * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`. - * @returns {ConfigArrayFactoryLoadingContext} The created context. - */ -function createContext( - { cwd, resolvePluginsRelativeTo }, - providedType, - providedName, - providedFilePath, - providedMatchBasePath -) { - const filePath = providedFilePath - ? path__default["default"].resolve(cwd, providedFilePath) - : ""; - const matchBasePath = - (providedMatchBasePath && path__default["default"].resolve(cwd, providedMatchBasePath)) || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const name = - providedName || - (filePath && path__default["default"].relative(cwd, filePath)) || - ""; - const pluginBasePath = - resolvePluginsRelativeTo || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const type = providedType || "config"; - - return { filePath, matchBasePath, name, pluginBasePath, type }; -} - -/** - * Normalize a given plugin. - * - Ensure the object to have four properties: configs, environments, processors, and rules. - * - Ensure the object to not have other properties. - * @param {Plugin} plugin The plugin to normalize. - * @returns {Plugin} The normalized plugin. - */ -function normalizePlugin(plugin) { - - // first check the cache - let normalizedPlugin = normalizedPlugins.get(plugin); - - if (normalizedPlugin) { - return normalizedPlugin; - } - - normalizedPlugin = { - configs: plugin.configs || {}, - environments: plugin.environments || {}, - processors: plugin.processors || {}, - rules: plugin.rules || {} - }; - - // save the reference for later - normalizedPlugins.set(plugin, normalizedPlugin); - - return normalizedPlugin; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The factory of `ConfigArray` objects. - */ -class ConfigArrayFactory { - - /** - * Initialize this instance. - * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins. - */ - constructor({ - additionalPluginPool = new Map(), - cwd = process.cwd(), - resolvePluginsRelativeTo, - builtInRules, - resolver = ModuleResolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = {}) { - internalSlotsMap$1.set(this, { - additionalPluginPool, - cwd, - resolvePluginsRelativeTo: - resolvePluginsRelativeTo && - path__default["default"].resolve(cwd, resolvePluginsRelativeTo), - builtInRules, - resolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - }); - } - - /** - * Create `ConfigArray` instance from a config data. - * @param {ConfigData|null} configData The config data to create. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.filePath] The path to this config data. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - create(configData, { basePath, filePath, name } = {}) { - if (!configData) { - return new ConfigArray(); - } - - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - const elements = this._normalizeConfigData(configData, ctx); - - return new ConfigArray(...elements); - } - - /** - * Load a config file. - * @param {string} filePath The path to a config file. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - loadFile(filePath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - - return new ConfigArray(...this._loadConfigData(ctx)); - } - - /** - * Load the config file on a given directory if exists. - * @param {string} directoryPath The path to a directory. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadInDirectory(directoryPath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - - for (const filename of configFilenames) { - const ctx = createContext( - slots, - "config", - name, - path__default["default"].join(directoryPath, filename), - basePath - ); - - if (fs__default["default"].existsSync(ctx.filePath) && fs__default["default"].statSync(ctx.filePath).isFile()) { - let configData; - - try { - configData = loadConfigFile(ctx.filePath); - } catch (error) { - if (!error || error.code !== "ESLINT_CONFIG_FIELD_NOT_FOUND") { - throw error; - } - } - - if (configData) { - debug$2(`Config file found: ${ctx.filePath}`); - return new ConfigArray( - ...this._normalizeConfigData(configData, ctx) - ); - } - } - } - - debug$2(`Config file not found on ${directoryPath}`); - return new ConfigArray(); - } - - /** - * Check if a config file on a given directory exists or not. - * @param {string} directoryPath The path to a directory. - * @returns {string | null} The path to the found config file. If not found then null. - */ - static getPathToConfigFileInDirectory(directoryPath) { - for (const filename of configFilenames) { - const filePath = path__default["default"].join(directoryPath, filename); - - if (fs__default["default"].existsSync(filePath)) { - if (filename === "package.json") { - try { - loadPackageJSONConfigFile(filePath); - return filePath; - } catch { /* ignore */ } - } else { - return filePath; - } - } - } - return null; - } - - /** - * Load `.eslintignore` file. - * @param {string} filePath The path to a `.eslintignore` file to load. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadESLintIgnore(filePath) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext( - slots, - "ignore", - void 0, - filePath, - slots.cwd - ); - const ignorePatterns = loadESLintIgnoreFile(ctx.filePath); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(ignorePatterns, ctx) - ); - } - - /** - * Load `.eslintignore` file in the current working directory. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadDefaultESLintIgnore() { - const slots = internalSlotsMap$1.get(this); - const eslintIgnorePath = path__default["default"].resolve(slots.cwd, ".eslintignore"); - const packageJsonPath = path__default["default"].resolve(slots.cwd, "package.json"); - - if (fs__default["default"].existsSync(eslintIgnorePath)) { - return this.loadESLintIgnore(eslintIgnorePath); - } - if (fs__default["default"].existsSync(packageJsonPath)) { - const data = loadJSONConfigFile(packageJsonPath); - - if (Object.hasOwnProperty.call(data, "eslintIgnore")) { - if (!Array.isArray(data.eslintIgnore)) { - throw new Error("Package.json eslintIgnore property requires an array of paths"); - } - const ctx = createContext( - slots, - "ignore", - "eslintIgnore in package.json", - packageJsonPath, - slots.cwd - ); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx) - ); - } - } - - return new ConfigArray(); - } - - /** - * Load a given config file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} Loaded config. - * @private - */ - _loadConfigData(ctx) { - return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx); - } - - /** - * Normalize a given `.eslintignore` data to config array elements. - * @param {string[]} ignorePatterns The patterns to ignore files. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeESLintIgnoreData(ignorePatterns, ctx) { - const elements = this._normalizeObjectConfigData( - { ignorePatterns }, - ctx - ); - - // Set `ignorePattern.loose` flag for backward compatibility. - for (const element of elements) { - if (element.ignorePattern) { - element.ignorePattern.loose = true; - } - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _normalizeConfigData(configData, ctx) { - const validator = new ConfigValidator(); - - validator.validateConfigSchema(configData, ctx.name || ctx.filePath); - return this._normalizeObjectConfigData(configData, ctx); - } - - /** - * Normalize a given config to an array. - * @param {ConfigData|OverrideConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigData(configData, ctx) { - const { files, excludedFiles, ...configBody } = configData; - const criteria = OverrideTester.create( - files, - excludedFiles, - ctx.matchBasePath - ); - const elements = this._normalizeObjectConfigDataBody(configBody, ctx); - - // Apply the criteria to every element. - for (const element of elements) { - - /* - * Merge the criteria. - * This is for the `overrides` entries that came from the - * configurations of `overrides[].extends`. - */ - element.criteria = OverrideTester.and(criteria, element.criteria); - - /* - * Remove `root` property to ignore `root` settings which came from - * `extends` in `overrides`. - */ - if (element.criteria) { - element.root = void 0; - } - - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigDataBody( - { - env, - extends: extend, - globals, - ignorePatterns, - noInlineConfig, - parser: parserName, - parserOptions, - plugins: pluginList, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings, - overrides: overrideList = [] - }, - ctx - ) { - const extendList = Array.isArray(extend) ? extend : [extend]; - const ignorePattern = ignorePatterns && new IgnorePattern( - Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns], - ctx.matchBasePath - ); - - // Flatten `extends`. - for (const extendName of extendList.filter(Boolean)) { - yield* this._loadExtends(extendName, ctx); - } - - // Load parser & plugins. - const parser = parserName && this._loadParser(parserName, ctx); - const plugins = pluginList && this._loadPlugins(pluginList, ctx); - - // Yield pseudo config data for file extension processors. - if (plugins) { - yield* this._takeFileExtensionProcessors(plugins, ctx); - } - - // Yield the config data except `extends` and `overrides`. - yield { - - // Debug information. - type: ctx.type, - name: ctx.name, - filePath: ctx.filePath, - - // Config data. - criteria: null, - env, - globals, - ignorePattern, - noInlineConfig, - parser, - parserOptions, - plugins, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings - }; - - // Flatten `overries`. - for (let i = 0; i < overrideList.length; ++i) { - yield* this._normalizeObjectConfigData( - overrideList[i], - { ...ctx, name: `${ctx.name}#overrides[${i}]` } - ); - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtends(extendName, ctx) { - debug$2("Loading {extends:%j} relative to %s", extendName, ctx.filePath); - try { - if (extendName.startsWith("eslint:")) { - return this._loadExtendedBuiltInConfig(extendName, ctx); - } - if (extendName.startsWith("plugin:")) { - return this._loadExtendedPluginConfig(extendName, ctx); - } - return this._loadExtendedShareableConfig(extendName, ctx); - } catch (error) { - error.message += `\nReferenced from: ${ctx.filePath || ctx.name}`; - throw error; - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedBuiltInConfig(extendName, ctx) { - const { - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = internalSlotsMap$1.get(this); - - if (extendName === "eslint:recommended") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintRecommendedConfig) { - if (typeof getEslintRecommendedConfig !== "function") { - throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`); - } - return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintRecommendedPath - }); - } - if (extendName === "eslint:all") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintAllConfig) { - if (typeof getEslintAllConfig !== "function") { - throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`); - } - return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintAllPath - }); - } - - throw configInvalidError(extendName, ctx.name, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedPluginConfig(extendName, ctx) { - const slashIndex = extendName.lastIndexOf("/"); - - if (slashIndex === -1) { - throw configInvalidError(extendName, ctx.filePath, "plugin-invalid"); - } - - const pluginName = extendName.slice("plugin:".length, slashIndex); - const configName = extendName.slice(slashIndex + 1); - - if (isFilePath(pluginName)) { - throw new Error("'extends' cannot use a file path for plugins."); - } - - const plugin = this._loadPlugin(pluginName, ctx); - const configData = - plugin.definition && - plugin.definition.configs[configName]; - - if (configData) { - return this._normalizeConfigData(configData, { - ...ctx, - filePath: plugin.filePath || ctx.filePath, - name: `${ctx.name} » plugin:${plugin.id}/${configName}` - }); - } - - throw plugin.error || configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedShareableConfig(extendName, ctx) { - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - let request; - - if (isFilePath(extendName)) { - request = extendName; - } else if (extendName.startsWith(".")) { - request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior. - } else { - request = normalizePackageName( - extendName, - "eslint-config" - ); - } - - let filePath; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (error) { - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - throw configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - throw error; - } - - writeDebugLogForLoading(request, relativeTo, filePath); - return this._loadConfigData({ - ...ctx, - filePath, - name: `${ctx.name} » ${request}` - }); - } - - /** - * Load given plugins. - * @param {string[]} names The plugin names to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {Record} The loaded parser. - * @private - */ - _loadPlugins(names, ctx) { - return names.reduce((map, name) => { - if (isFilePath(name)) { - throw new Error("Plugins array cannot includes file paths."); - } - const plugin = this._loadPlugin(name, ctx); - - map[plugin.id] = plugin; - - return map; - }, {}); - } - - /** - * Load a given parser. - * @param {string} nameOrPath The package name or the path to a parser file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentParser} The loaded parser. - */ - _loadParser(nameOrPath, ctx) { - debug$2("Loading parser %j from %s", nameOrPath, ctx.filePath); - - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - - try { - const filePath = resolver.resolve(nameOrPath, relativeTo); - - writeDebugLogForLoading(nameOrPath, relativeTo, filePath); - - return new ConfigDependency({ - definition: require$1(filePath), - filePath, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (error) { - - // If the parser name is "espree", load the espree of ESLint. - if (nameOrPath === "espree") { - debug$2("Fallback espree."); - return new ConfigDependency({ - definition: require$1("espree"), - filePath: require$1.resolve("espree"), - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - debug$2("Failed to load parser '%s' declared in '%s'.", nameOrPath, ctx.name); - error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`; - - return new ConfigDependency({ - error, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - } - - /** - * Load a given plugin. - * @param {string} name The plugin name to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentPlugin} The loaded plugin. - * @private - */ - _loadPlugin(name, ctx) { - debug$2("Loading plugin %j from %s", name, ctx.filePath); - - const { additionalPluginPool, resolver } = internalSlotsMap$1.get(this); - const request = normalizePackageName(name, "eslint-plugin"); - const id = getShorthandName(request, "eslint-plugin"); - const relativeTo = path__default["default"].join(ctx.pluginBasePath, "__placeholder__.js"); - - if (name.match(/\s+/u)) { - const error = Object.assign( - new Error(`Whitespace found in plugin name '${name}'`), - { - messageTemplate: "whitespace-found", - messageData: { pluginName: request } - } - ); - - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - // Check for additional pool. - const plugin = - additionalPluginPool.get(request) || - additionalPluginPool.get(id); - - if (plugin) { - return new ConfigDependency({ - definition: normalizePlugin(plugin), - original: plugin, - filePath: "", // It's unknown where the plugin came from. - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - let filePath; - let error; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (resolveError) { - error = resolveError; - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - error.messageTemplate = "plugin-missing"; - error.messageData = { - pluginName: request, - resolvePluginsRelativeTo: ctx.pluginBasePath, - importerName: ctx.name - }; - } - } - - if (filePath) { - try { - writeDebugLogForLoading(request, relativeTo, filePath); - - const startTime = Date.now(); - const pluginDefinition = require$1(filePath); - - debug$2(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`); - - return new ConfigDependency({ - definition: normalizePlugin(pluginDefinition), - original: pluginDefinition, - filePath, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (loadError) { - error = loadError; - } - } - - debug$2("Failed to load plugin '%s' declared in '%s'.", name, ctx.name); - error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`; - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - /** - * Take file expression processors as config array elements. - * @param {Record} plugins The plugin definitions. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The config array elements of file expression processors. - * @private - */ - *_takeFileExtensionProcessors(plugins, ctx) { - for (const pluginId of Object.keys(plugins)) { - const processors = - plugins[pluginId] && - plugins[pluginId].definition && - plugins[pluginId].definition.processors; - - if (!processors) { - continue; - } - - for (const processorId of Object.keys(processors)) { - if (processorId.startsWith(".")) { - yield* this._normalizeObjectConfigData( - { - files: [`*${processorId}`], - processor: `${pluginId}/${processorId}` - }, - { - ...ctx, - type: "implicit-processor", - name: `${ctx.name}#processors["${pluginId}/${processorId}"]` - } - ); - } - } - } - } -} - -/** - * @fileoverview `CascadingConfigArrayFactory` class. - * - * `CascadingConfigArrayFactory` class has a responsibility: - * - * 1. Handles cascading of config files. - * - * It provides two methods: - * - * - `getConfigArrayForFile(filePath)` - * Get the corresponded configuration of a given file. This method doesn't - * throw even if the given file didn't exist. - * - `clearCache()` - * Clear the internal cache. You have to call this method when - * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends - * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.) - * - * @author Toru Nagashima - */ - -const debug$1 = debugOrig__default["default"]("eslintrc:cascading-config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {ConfigData} [baseConfig] The config by `baseConfig` option. - * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files. - * @property {string} [cwd] The base directory to start lookup. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - * @property {string} [specificConfigPath] The value of `--config` option. - * @property {boolean} [useEslintrc] if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryInternalSlots - * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option. - * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`. - * @property {ConfigArray} cliConfigArray The config array of CLI options. - * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`. - * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {Map} configCache The cache from directory paths to config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`. - * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`. - * @property {boolean} useEslintrc if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Create the config array from `baseConfig` and `rulePaths`. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createBaseConfigArray({ - configArrayFactory, - baseConfigData, - rulePaths, - cwd, - loadRules -}) { - const baseConfigArray = configArrayFactory.create( - baseConfigData, - { name: "BaseConfig" } - ); - - /* - * Create the config array element for the default ignore patterns. - * This element has `ignorePattern` property that ignores the default - * patterns in the current working directory. - */ - baseConfigArray.unshift(configArrayFactory.create( - { ignorePatterns: IgnorePattern.DefaultPatterns }, - { name: "DefaultIgnorePattern" } - )[0]); - - /* - * Load rules `--rulesdir` option as a pseudo plugin. - * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate - * the rule's options with only information in the config array. - */ - if (rulePaths && rulePaths.length > 0) { - baseConfigArray.push({ - type: "config", - name: "--rulesdir", - filePath: "", - plugins: { - "": new ConfigDependency({ - definition: { - rules: rulePaths.reduce( - (map, rulesPath) => Object.assign( - map, - loadRules(rulesPath, cwd) - ), - {} - ) - }, - filePath: "", - id: "", - importerName: "--rulesdir", - importerPath: "" - }) - } - }); - } - - return baseConfigArray; -} - -/** - * Create the config array from CLI options. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath -}) { - const cliConfigArray = configArrayFactory.create( - cliConfigData, - { name: "CLIOptions" } - ); - - cliConfigArray.unshift( - ...(ignorePath - ? configArrayFactory.loadESLintIgnore(ignorePath) - : configArrayFactory.loadDefaultESLintIgnore()) - ); - - if (specificConfigPath) { - cliConfigArray.unshift( - ...configArrayFactory.loadFile( - specificConfigPath, - { name: "--config", basePath: cwd } - ) - ); - } - - return cliConfigArray; -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class ConfigurationNotFoundError extends Error { - - // eslint-disable-next-line jsdoc/require-description - /** - * @param {string} directoryPath The directory path. - */ - constructor(directoryPath) { - super(`No ESLint configuration found in ${directoryPath}.`); - this.messageTemplate = "no-config-found"; - this.messageData = { directoryPath }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class CascadingConfigArrayFactory { - - /** - * Initialize this enumerator. - * @param {CascadingConfigArrayFactoryOptions} options The options. - */ - constructor({ - additionalPluginPool = new Map(), - baseConfig: baseConfigData = null, - cliConfig: cliConfigData = null, - cwd = process.cwd(), - ignorePath, - resolvePluginsRelativeTo, - rulePaths = [], - specificConfigPath = null, - useEslintrc = true, - builtInRules = new Map(), - loadRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - } = {}) { - const configArrayFactory = new ConfigArrayFactory({ - additionalPluginPool, - cwd, - resolvePluginsRelativeTo, - builtInRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - }); - - internalSlotsMap.set(this, { - baseConfigArray: createBaseConfigArray({ - baseConfigData, - configArrayFactory, - cwd, - rulePaths, - loadRules - }), - baseConfigData, - cliConfigArray: createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath - }), - cliConfigData, - configArrayFactory, - configCache: new Map(), - cwd, - finalizeCache: new WeakMap(), - ignorePath, - rulePaths, - specificConfigPath, - useEslintrc, - builtInRules, - loadRules - }); - } - - /** - * The path to the current working directory. - * This is used by tests. - * @type {string} - */ - get cwd() { - const { cwd } = internalSlotsMap.get(this); - - return cwd; - } - - /** - * Get the config array of a given file. - * If `filePath` was not given, it returns the config which contains only - * `baseConfigData` and `cliConfigData`. - * @param {string} [filePath] The file path to a file. - * @param {Object} [options] The options. - * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The config array of the file. - */ - getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) { - const { - baseConfigArray, - cliConfigArray, - cwd - } = internalSlotsMap.get(this); - - if (!filePath) { - return new ConfigArray(...baseConfigArray, ...cliConfigArray); - } - - const directoryPath = path__default["default"].dirname(path__default["default"].resolve(cwd, filePath)); - - debug$1(`Load config files for ${directoryPath}.`); - - return this._finalizeConfigArray( - this._loadConfigInAncestors(directoryPath), - directoryPath, - ignoreNotFoundError - ); - } - - /** - * Set the config data to override all configs. - * Require to call `clearCache()` method after this method is called. - * @param {ConfigData} configData The config data to override all configs. - * @returns {void} - */ - setOverrideConfig(configData) { - const slots = internalSlotsMap.get(this); - - slots.cliConfigData = configData; - } - - /** - * Clear config cache. - * @returns {void} - */ - clearCache() { - const slots = internalSlotsMap.get(this); - - slots.baseConfigArray = createBaseConfigArray(slots); - slots.cliConfigArray = createCLIConfigArray(slots); - slots.configCache.clear(); - } - - /** - * Load and normalize config files from the ancestor directories. - * @param {string} directoryPath The path to a leaf directory. - * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories. - * @returns {ConfigArray} The loaded config. - * @private - */ - _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) { - const { - baseConfigArray, - configArrayFactory, - configCache, - cwd, - useEslintrc - } = internalSlotsMap.get(this); - - if (!useEslintrc) { - return baseConfigArray; - } - - let configArray = configCache.get(directoryPath); - - // Hit cache. - if (configArray) { - debug$1(`Cache hit: ${directoryPath}.`); - return configArray; - } - debug$1(`No cache found: ${directoryPath}.`); - - const homePath = os__default["default"].homedir(); - - // Consider this is root. - if (directoryPath === homePath && cwd !== homePath) { - debug$1("Stop traversing because of considered root."); - if (configsExistInSubdirs) { - const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath); - - if (filePath) { - emitDeprecationWarning( - filePath, - "ESLINT_PERSONAL_CONFIG_SUPPRESS" - ); - } - } - return this._cacheConfig(directoryPath, baseConfigArray); - } - - // Load the config on this directory. - try { - configArray = configArrayFactory.loadInDirectory(directoryPath); - } catch (error) { - /* istanbul ignore next */ - if (error.code === "EACCES") { - debug$1("Stop traversing because of 'EACCES' error."); - return this._cacheConfig(directoryPath, baseConfigArray); - } - throw error; - } - - if (configArray.length > 0 && configArray.isRoot()) { - debug$1("Stop traversing because of 'root:true'."); - configArray.unshift(...baseConfigArray); - return this._cacheConfig(directoryPath, configArray); - } - - // Load from the ancestors and merge it. - const parentPath = path__default["default"].dirname(directoryPath); - const parentConfigArray = parentPath && parentPath !== directoryPath - ? this._loadConfigInAncestors( - parentPath, - configsExistInSubdirs || configArray.length > 0 - ) - : baseConfigArray; - - if (configArray.length > 0) { - configArray.unshift(...parentConfigArray); - } else { - configArray = parentConfigArray; - } - - // Cache and return. - return this._cacheConfig(directoryPath, configArray); - } - - /** - * Freeze and cache a given config. - * @param {string} directoryPath The path to a directory as a cache key. - * @param {ConfigArray} configArray The config array as a cache value. - * @returns {ConfigArray} The `configArray` (frozen). - */ - _cacheConfig(directoryPath, configArray) { - const { configCache } = internalSlotsMap.get(this); - - Object.freeze(configArray); - configCache.set(directoryPath, configArray); - - return configArray; - } - - /** - * Finalize a given config array. - * Concatenate `--config` and other CLI options. - * @param {ConfigArray} configArray The parent config array. - * @param {string} directoryPath The path to the leaf directory to find config files. - * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The loaded config. - * @private - */ - _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) { - const { - cliConfigArray, - configArrayFactory, - finalizeCache, - useEslintrc, - builtInRules - } = internalSlotsMap.get(this); - - let finalConfigArray = finalizeCache.get(configArray); - - if (!finalConfigArray) { - finalConfigArray = configArray; - - // Load the personal config if there are no regular config files. - if ( - useEslintrc && - configArray.every(c => !c.filePath) && - cliConfigArray.every(c => !c.filePath) // `--config` option can be a file. - ) { - const homePath = os__default["default"].homedir(); - - debug$1("Loading the config file of the home directory:", homePath); - - const personalConfigArray = configArrayFactory.loadInDirectory( - homePath, - { name: "PersonalConfig" } - ); - - if ( - personalConfigArray.length > 0 && - !directoryPath.startsWith(homePath) - ) { - const lastElement = - personalConfigArray[personalConfigArray.length - 1]; - - emitDeprecationWarning( - lastElement.filePath, - "ESLINT_PERSONAL_CONFIG_LOAD" - ); - } - - finalConfigArray = finalConfigArray.concat(personalConfigArray); - } - - // Apply CLI options. - if (cliConfigArray.length > 0) { - finalConfigArray = finalConfigArray.concat(cliConfigArray); - } - - // Validate rule settings and environments. - const validator = new ConfigValidator({ - builtInRules - }); - - validator.validateConfigArray(finalConfigArray); - - // Cache it. - Object.freeze(finalConfigArray); - finalizeCache.set(configArray, finalConfigArray); - - debug$1( - "Configuration was determined: %o on %s", - finalConfigArray, - directoryPath - ); - } - - // At least one element (the default ignore patterns) exists. - if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) { - throw new ConfigurationNotFoundError(directoryPath); - } - - return finalConfigArray; - } -} - -/** - * @fileoverview Compatibility class for flat config. - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").Processor} Processor */ - -const debug = debugOrig__default["default"]("eslintrc:flat-compat"); -const cafactory = Symbol("cafactory"); - -/** - * Translates an ESLintRC-style config object into a flag-config-style config - * object. - * @param {Object} eslintrcConfig An ESLintRC-style config object. - * @param {Object} options Options to help translate the config. - * @param {string} options.resolveConfigRelativeTo To the directory to resolve - * configs from. - * @param {string} options.resolvePluginsRelativeTo The directory to resolve - * plugins from. - * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment - * names to objects. - * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor - * names to objects. - * @returns {Object} A flag-config-style config object. - */ -function translateESLintRC(eslintrcConfig, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo, - pluginEnvironments, - pluginProcessors -}) { - - const flatConfig = {}; - const configs = []; - const languageOptions = {}; - const linterOptions = {}; - const keysToCopy = ["settings", "rules", "processor"]; - const languageOptionsKeysToCopy = ["globals", "parser", "parserOptions"]; - const linterOptionsKeysToCopy = ["noInlineConfig", "reportUnusedDisableDirectives"]; - - // copy over simple translations - for (const key of keysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig[key] = eslintrcConfig[key]; - } - } - - // copy over languageOptions - for (const key of languageOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - - // create the languageOptions key in the flat config - flatConfig.languageOptions = languageOptions; - - if (key === "parser") { - debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`); - - if (eslintrcConfig[key].error) { - throw eslintrcConfig[key].error; - } - - languageOptions[key] = eslintrcConfig[key].definition; - continue; - } - - // clone any object values that are in the eslintrc config - if (eslintrcConfig[key] && typeof eslintrcConfig[key] === "object") { - languageOptions[key] = { - ...eslintrcConfig[key] - }; - } else { - languageOptions[key] = eslintrcConfig[key]; - } - } - } - - // copy over linterOptions - for (const key of linterOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig.linterOptions = linterOptions; - linterOptions[key] = eslintrcConfig[key]; - } - } - - // move ecmaVersion a level up - if (languageOptions.parserOptions) { - - if ("ecmaVersion" in languageOptions.parserOptions) { - languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion; - delete languageOptions.parserOptions.ecmaVersion; - } - - if ("sourceType" in languageOptions.parserOptions) { - languageOptions.sourceType = languageOptions.parserOptions.sourceType; - delete languageOptions.parserOptions.sourceType; - } - - // check to see if we even need parserOptions anymore and remove it if not - if (Object.keys(languageOptions.parserOptions).length === 0) { - delete languageOptions.parserOptions; - } - } - - // overrides - if (eslintrcConfig.criteria) { - flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)]; - } - - // translate plugins - if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === "object") { - debug(`Translating plugins: ${eslintrcConfig.plugins}`); - - flatConfig.plugins = {}; - - for (const pluginName of Object.keys(eslintrcConfig.plugins)) { - - debug(`Translating plugin: ${pluginName}`); - debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`); - - const { original: plugin, error } = eslintrcConfig.plugins[pluginName]; - - if (error) { - throw error; - } - - flatConfig.plugins[pluginName] = plugin; - - // create a config for any processors - if (plugin.processors) { - for (const processorName of Object.keys(plugin.processors)) { - if (processorName.startsWith(".")) { - debug(`Assigning processor: ${pluginName}/${processorName}`); - - configs.unshift({ - files: [`**/*${processorName}`], - processor: pluginProcessors.get(`${pluginName}/${processorName}`) - }); - } - - } - } - } - } - - // translate env - must come after plugins - if (eslintrcConfig.env && typeof eslintrcConfig.env === "object") { - for (const envName of Object.keys(eslintrcConfig.env)) { - - // only add environments that are true - if (eslintrcConfig.env[envName]) { - debug(`Translating environment: ${envName}`); - - if (environments.has(envName)) { - - // built-in environments should be defined first - configs.unshift(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...environments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } else if (pluginEnvironments.has(envName)) { - - // if the environment comes from a plugin, it should come after the plugin config - configs.push(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...pluginEnvironments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } - } - } - } - - // only add if there are actually keys in the config - if (Object.keys(flatConfig).length > 0) { - configs.push(flatConfig); - } - - return configs; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A compatibility class for working with configs. - */ -class FlatCompat { - - constructor({ - baseDirectory = process.cwd(), - resolvePluginsRelativeTo = baseDirectory, - recommendedConfig, - allConfig - } = {}) { - this.baseDirectory = baseDirectory; - this.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - this[cafactory] = new ConfigArrayFactory({ - cwd: baseDirectory, - resolvePluginsRelativeTo, - getEslintAllConfig: () => { - - if (!allConfig) { - throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor."); - } - - return allConfig; - }, - getEslintRecommendedConfig: () => { - - if (!recommendedConfig) { - throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor."); - } - - return recommendedConfig; - } - }); - } - - /** - * Translates an ESLintRC-style config into a flag-config-style config. - * @param {Object} eslintrcConfig The ESLintRC-style config object. - * @returns {Object} A flag-config-style config object. - */ - config(eslintrcConfig) { - const eslintrcArray = this[cafactory].create(eslintrcConfig, { - basePath: this.baseDirectory - }); - - const flatArray = []; - let hasIgnorePatterns = false; - - eslintrcArray.forEach(configData => { - if (configData.type === "config") { - hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern; - flatArray.push(...translateESLintRC(configData, { - resolveConfigRelativeTo: path__default["default"].join(this.baseDirectory, "__placeholder.js"), - resolvePluginsRelativeTo: path__default["default"].join(this.resolvePluginsRelativeTo, "__placeholder.js"), - pluginEnvironments: eslintrcArray.pluginEnvironments, - pluginProcessors: eslintrcArray.pluginProcessors - })); - } - }); - - // combine ignorePatterns to emulate ESLintRC behavior better - if (hasIgnorePatterns) { - flatArray.unshift({ - ignores: [filePath => { - - // Compute the final config for this file. - // This filters config array elements by `files`/`excludedFiles` then merges the elements. - const finalConfig = eslintrcArray.extractConfig(filePath); - - // Test the `ignorePattern` properties of the final config. - return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath); - }] - }); - } - - return flatArray; - } - - /** - * Translates the `env` section of an ESLintRC-style config. - * @param {Object} envConfig The `env` section of an ESLintRC config. - * @returns {Object[]} An array of flag-config objects representing the environments. - */ - env(envConfig) { - return this.config({ - env: envConfig - }); - } - - /** - * Translates the `extends` section of an ESLintRC-style config. - * @param {...string} configsToExtend The names of the configs to load. - * @returns {Object[]} An array of flag-config objects representing the config. - */ - extends(...configsToExtend) { - return this.config({ - extends: configsToExtend - }); - } - - /** - * Translates the `plugins` section of an ESLintRC-style config. - * @param {...string} plugins The names of the plugins to load. - * @returns {Object[]} An array of flag-config objects representing the plugins. - */ - plugins(...plugins) { - return this.config({ - plugins - }); - } -} - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - ConfigArray, - createConfigArrayFactoryContext: createContext, - CascadingConfigArrayFactory, - ConfigArrayFactory, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs, - environments, - loadConfigFile, - - // shared - ConfigOps, - ConfigValidator, - ModuleResolver, - naming -}; - -exports.FlatCompat = FlatCompat; -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc.cjs.map diff --git a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map b/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map deleted file mode 100644 index 3eed0680..00000000 --- a/graphql/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc.cjs","sources":["../lib/config-array/ignore-pattern.js","../lib/config-array/extracted-config.js","../lib/config-array/config-array.js","../lib/config-array/config-dependency.js","../lib/config-array/override-tester.js","../lib/config-array/index.js","../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/shared/relative-module-resolver.js","../lib/config-array-factory.js","../lib/cascading-config-array-factory.js","../lib/flat-compat.js","../lib/index.js"],"sourcesContent":["/**\n * @fileoverview `IgnorePattern` class.\n *\n * `IgnorePattern` class has the set of glob patterns and the base path.\n *\n * It provides two static methods.\n *\n * - `IgnorePattern.createDefaultIgnore(cwd)`\n * Create the default predicate function.\n * - `IgnorePattern.createIgnore(ignorePatterns)`\n * Create the predicate function from multiple `IgnorePattern` objects.\n *\n * It provides two properties and a method.\n *\n * - `patterns`\n * The glob patterns that ignore to lint.\n * - `basePath`\n * The base path of the glob patterns. If absolute paths existed in the\n * glob patterns, those are handled as relative paths to the base path.\n * - `getPatternsRelativeTo(basePath)`\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n *\n * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes\n * `ignorePatterns` properties.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport ignore from \"ignore\";\nimport debugOrig from \"debug\";\n\nconst debug = debugOrig(\"eslintrc:ignore-pattern\");\n\n/** @typedef {ReturnType} Ignore */\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the path to the common ancestor directory of given paths.\n * @param {string[]} sourcePaths The paths to calculate the common ancestor.\n * @returns {string} The path to the common ancestor directory.\n */\nfunction getCommonAncestorPath(sourcePaths) {\n let result = sourcePaths[0];\n\n for (let i = 1; i < sourcePaths.length; ++i) {\n const a = result;\n const b = sourcePaths[i];\n\n // Set the shorter one (it's the common ancestor if one includes the other).\n result = a.length < b.length ? a : b;\n\n // Set the common ancestor.\n for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) {\n if (a[j] !== b[j]) {\n result = a.slice(0, lastSepPos);\n break;\n }\n if (a[j] === path.sep) {\n lastSepPos = j;\n }\n }\n }\n\n let resolvedResult = result || path.sep;\n\n // if Windows common ancestor is root of drive must have trailing slash to be absolute.\n if (resolvedResult && resolvedResult.endsWith(\":\") && process.platform === \"win32\") {\n resolvedResult += path.sep;\n }\n return resolvedResult;\n}\n\n/**\n * Make relative path.\n * @param {string} from The source path to get relative path.\n * @param {string} to The destination path to get relative path.\n * @returns {string} The relative path.\n */\nfunction relative(from, to) {\n const relPath = path.relative(from, to);\n\n if (path.sep === \"/\") {\n return relPath;\n }\n return relPath.split(path.sep).join(\"/\");\n}\n\n/**\n * Get the trailing slash if existed.\n * @param {string} filePath The path to check.\n * @returns {string} The trailing slash if existed.\n */\nfunction dirSuffix(filePath) {\n const isDir = (\n filePath.endsWith(path.sep) ||\n (process.platform === \"win32\" && filePath.endsWith(\"/\"))\n );\n\n return isDir ? \"/\" : \"\";\n}\n\nconst DefaultPatterns = Object.freeze([\"/**/node_modules/*\"]);\nconst DotPatterns = Object.freeze([\".*\", \"!.eslintrc.*\", \"!../\"]);\n\n//------------------------------------------------------------------------------\n// Public\n//------------------------------------------------------------------------------\n\nclass IgnorePattern {\n\n /**\n * The default patterns.\n * @type {string[]}\n */\n static get DefaultPatterns() {\n return DefaultPatterns;\n }\n\n /**\n * Create the default predicate function.\n * @param {string} cwd The current working directory.\n * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createDefaultIgnore(cwd) {\n return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]);\n }\n\n /**\n * Create the predicate function from multiple `IgnorePattern` objects.\n * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns.\n * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createIgnore(ignorePatterns) {\n debug(\"Create with: %o\", ignorePatterns);\n\n const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath));\n const patterns = [].concat(\n ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath))\n );\n const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]);\n const dotIg = ignore({ allowRelativePaths: true }).add(patterns);\n\n debug(\" processed: %o\", { basePath, patterns });\n\n return Object.assign(\n (filePath, dot = false) => {\n assert(path.isAbsolute(filePath), \"'filePath' should be an absolute path.\");\n const relPathRaw = relative(basePath, filePath);\n const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath));\n const adoptedIg = dot ? dotIg : ig;\n const result = relPath !== \"\" && adoptedIg.ignores(relPath);\n\n debug(\"Check\", { filePath, dot, relativePath: relPath, result });\n return result;\n },\n { basePath, patterns }\n );\n }\n\n /**\n * Initialize a new `IgnorePattern` instance.\n * @param {string[]} patterns The glob patterns that ignore to lint.\n * @param {string} basePath The base path of `patterns`.\n */\n constructor(patterns, basePath) {\n assert(path.isAbsolute(basePath), \"'basePath' should be an absolute path.\");\n\n /**\n * The glob patterns that ignore to lint.\n * @type {string[]}\n */\n this.patterns = patterns;\n\n /**\n * The base path of `patterns`.\n * @type {string}\n */\n this.basePath = basePath;\n\n /**\n * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`.\n *\n * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility.\n * It's `false` as-is for `ignorePatterns` property in config files.\n * @type {boolean}\n */\n this.loose = false;\n }\n\n /**\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n * @param {string} newBasePath The base path.\n * @returns {string[]} Modifired patterns.\n */\n getPatternsRelativeTo(newBasePath) {\n assert(path.isAbsolute(newBasePath), \"'newBasePath' should be an absolute path.\");\n const { basePath, loose, patterns } = this;\n\n if (newBasePath === basePath) {\n return patterns;\n }\n const prefix = `/${relative(newBasePath, basePath)}`;\n\n return patterns.map(pattern => {\n const negative = pattern.startsWith(\"!\");\n const head = negative ? \"!\" : \"\";\n const body = negative ? pattern.slice(1) : pattern;\n\n if (body.startsWith(\"/\") || body.startsWith(\"../\")) {\n return `${head}${prefix}${body}`;\n }\n return loose ? pattern : `${head}${prefix}/**/${body}`;\n });\n }\n}\n\nexport { IgnorePattern };\n","/**\n * @fileoverview `ExtractedConfig` class.\n *\n * `ExtractedConfig` class expresses a final configuration for a specific file.\n *\n * It provides one method.\n *\n * - `toCompatibleObjectAsConfigFileContent()`\n * Convert this configuration to the compatible object as the content of\n * config files. It converts the loaded parser and plugins to strings.\n * `CLIEngine#getConfigForFile(filePath)` method uses this method.\n *\n * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance.\n *\n * @author Toru Nagashima \n */\n\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n// For VSCode intellisense\n/** @typedef {import(\"../../shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").SeverityConf} SeverityConf */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n\n/**\n * Check if `xs` starts with `ys`.\n * @template T\n * @param {T[]} xs The array to check.\n * @param {T[]} ys The array that may be the first part of `xs`.\n * @returns {boolean} `true` if `xs` starts with `ys`.\n */\nfunction startsWith(xs, ys) {\n return xs.length >= ys.length && ys.every((y, i) => y === xs[i]);\n}\n\n/**\n * The class for extracted config data.\n */\nclass ExtractedConfig {\n constructor() {\n\n /**\n * The config name what `noInlineConfig` setting came from.\n * @type {string}\n */\n this.configNameOfNoInlineConfig = \"\";\n\n /**\n * Environments.\n * @type {Record}\n */\n this.env = {};\n\n /**\n * Global variables.\n * @type {Record}\n */\n this.globals = {};\n\n /**\n * The glob patterns that ignore to lint.\n * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined}\n */\n this.ignores = void 0;\n\n /**\n * The flag that disables directive comments.\n * @type {boolean|undefined}\n */\n this.noInlineConfig = void 0;\n\n /**\n * Parser definition.\n * @type {DependentParser|null}\n */\n this.parser = null;\n\n /**\n * Options for the parser.\n * @type {Object}\n */\n this.parserOptions = {};\n\n /**\n * Plugin definitions.\n * @type {Record}\n */\n this.plugins = {};\n\n /**\n * Processor ID.\n * @type {string|null}\n */\n this.processor = null;\n\n /**\n * The flag that reports unused `eslint-disable` directive comments.\n * @type {boolean|undefined}\n */\n this.reportUnusedDisableDirectives = void 0;\n\n /**\n * Rule settings.\n * @type {Record}\n */\n this.rules = {};\n\n /**\n * Shared settings.\n * @type {Object}\n */\n this.settings = {};\n }\n\n /**\n * Convert this config to the compatible object as a config file content.\n * @returns {ConfigData} The converted object.\n */\n toCompatibleObjectAsConfigFileContent() {\n const {\n /* eslint-disable no-unused-vars */\n configNameOfNoInlineConfig: _ignore1,\n processor: _ignore2,\n /* eslint-enable no-unused-vars */\n ignores,\n ...config\n } = this;\n\n config.parser = config.parser && config.parser.filePath;\n config.plugins = Object.keys(config.plugins).filter(Boolean).reverse();\n config.ignorePatterns = ignores ? ignores.patterns : [];\n\n // Strip the default patterns from `ignorePatterns`.\n if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) {\n config.ignorePatterns =\n config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length);\n }\n\n return config;\n }\n}\n\nexport { ExtractedConfig };\n","/**\n * @fileoverview `ConfigArray` class.\n *\n * `ConfigArray` class expresses the full of a configuration. It has the entry\n * config file, base config files that were extended, loaded parsers, and loaded\n * plugins.\n *\n * `ConfigArray` class provides three properties and two methods.\n *\n * - `pluginEnvironments`\n * - `pluginProcessors`\n * - `pluginRules`\n * The `Map` objects that contain the members of all plugins that this\n * config array contains. Those map objects don't have mutation methods.\n * Those keys are the member ID such as `pluginId/memberName`.\n * - `isRoot()`\n * If `true` then this configuration has `root:true` property.\n * - `extractConfig(filePath)`\n * Extract the final configuration for a given file. This means merging\n * every config array element which that `criteria` property matched. The\n * `filePath` argument must be an absolute path.\n *\n * `ConfigArrayFactory` provides the loading logic of config files.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").RuleConf} RuleConf */\n/** @typedef {import(\"../../shared/types\").Rule} Rule */\n/** @typedef {import(\"../../shared/types\").Plugin} Plugin */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {import(\"./override-tester\")[\"OverrideTester\"]} OverrideTester */\n\n/**\n * @typedef {Object} ConfigArrayElement\n * @property {string} name The name of this config element.\n * @property {string} filePath The path to the source file of this config element.\n * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element.\n * @property {Record|undefined} env The environment settings.\n * @property {Record|undefined} globals The global variable settings.\n * @property {IgnorePattern|undefined} ignorePattern The ignore patterns.\n * @property {boolean|undefined} noInlineConfig The flag that disables directive comments.\n * @property {DependentParser|undefined} parser The parser loader.\n * @property {Object|undefined} parserOptions The parser options.\n * @property {Record|undefined} plugins The plugin loaders.\n * @property {string|undefined} processor The processor name to refer plugin's processor.\n * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments.\n * @property {boolean|undefined} root The flag to express root.\n * @property {Record|undefined} rules The rule settings\n * @property {Object|undefined} settings The shared settings.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The element type.\n */\n\n/**\n * @typedef {Object} ConfigArrayInternalSlots\n * @property {Map} cache The cache to extract configs.\n * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition.\n * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition.\n * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new class extends WeakMap {\n get(key) {\n let value = super.get(key);\n\n if (!value) {\n value = {\n cache: new Map(),\n envMap: null,\n processorMap: null,\n ruleMap: null\n };\n super.set(key, value);\n }\n\n return value;\n }\n}();\n\n/**\n * Get the indices which are matched to a given file.\n * @param {ConfigArrayElement[]} elements The elements.\n * @param {string} filePath The path to a target file.\n * @returns {number[]} The indices.\n */\nfunction getMatchedIndices(elements, filePath) {\n const indices = [];\n\n for (let i = elements.length - 1; i >= 0; --i) {\n const element = elements[i];\n\n if (!element.criteria || (filePath && element.criteria.test(filePath))) {\n indices.push(i);\n }\n }\n\n return indices;\n}\n\n/**\n * Check if a value is a non-null object.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is a non-null object.\n */\nfunction isNonNullObject(x) {\n return typeof x === \"object\" && x !== null;\n}\n\n/**\n * Merge two objects.\n *\n * Assign every property values of `y` to `x` if `x` doesn't have the property.\n * If `x`'s property value is an object, it does recursive.\n * @param {Object} target The destination to merge\n * @param {Object|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeWithoutOverwrite(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n\n if (isNonNullObject(target[key])) {\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (target[key] === void 0) {\n if (isNonNullObject(source[key])) {\n target[key] = Array.isArray(source[key]) ? [] : {};\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (source[key] !== void 0) {\n target[key] = source[key];\n }\n }\n }\n}\n\n/**\n * The error for plugin conflicts.\n */\nclass PluginConflictError extends Error {\n\n /**\n * Initialize this error object.\n * @param {string} pluginId The plugin ID.\n * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins.\n */\n constructor(pluginId, plugins) {\n super(`Plugin \"${pluginId}\" was conflicted between ${plugins.map(p => `\"${p.importerName}\"`).join(\" and \")}.`);\n this.messageTemplate = \"plugin-conflict\";\n this.messageData = { pluginId, plugins };\n }\n}\n\n/**\n * Merge plugins.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergePlugins(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetValue = target[key];\n const sourceValue = source[key];\n\n // Adopt the plugin which was found at first.\n if (targetValue === void 0) {\n if (sourceValue.error) {\n throw sourceValue.error;\n }\n target[key] = sourceValue;\n } else if (sourceValue.filePath !== targetValue.filePath) {\n throw new PluginConflictError(key, [\n {\n filePath: targetValue.filePath,\n importerName: targetValue.importerName\n },\n {\n filePath: sourceValue.filePath,\n importerName: sourceValue.importerName\n }\n ]);\n }\n }\n}\n\n/**\n * Merge rule configs.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeRuleConfigs(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetDef = target[key];\n const sourceDef = source[key];\n\n // Adopt the rule config which was found at first.\n if (targetDef === void 0) {\n if (Array.isArray(sourceDef)) {\n target[key] = [...sourceDef];\n } else {\n target[key] = [sourceDef];\n }\n\n /*\n * If the first found rule config is severity only and the current rule\n * config has options, merge the severity and the options.\n */\n } else if (\n targetDef.length === 1 &&\n Array.isArray(sourceDef) &&\n sourceDef.length >= 2\n ) {\n targetDef.push(...sourceDef.slice(1));\n }\n }\n}\n\n/**\n * Create the extracted config.\n * @param {ConfigArray} instance The config elements.\n * @param {number[]} indices The indices to use.\n * @returns {ExtractedConfig} The extracted config.\n */\nfunction createConfig(instance, indices) {\n const config = new ExtractedConfig();\n const ignorePatterns = [];\n\n // Merge elements.\n for (const index of indices) {\n const element = instance[index];\n\n // Adopt the parser which was found at first.\n if (!config.parser && element.parser) {\n if (element.parser.error) {\n throw element.parser.error;\n }\n config.parser = element.parser;\n }\n\n // Adopt the processor which was found at first.\n if (!config.processor && element.processor) {\n config.processor = element.processor;\n }\n\n // Adopt the noInlineConfig which was found at first.\n if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) {\n config.noInlineConfig = element.noInlineConfig;\n config.configNameOfNoInlineConfig = element.name;\n }\n\n // Adopt the reportUnusedDisableDirectives which was found at first.\n if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) {\n config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives;\n }\n\n // Collect ignorePatterns\n if (element.ignorePattern) {\n ignorePatterns.push(element.ignorePattern);\n }\n\n // Merge others.\n mergeWithoutOverwrite(config.env, element.env);\n mergeWithoutOverwrite(config.globals, element.globals);\n mergeWithoutOverwrite(config.parserOptions, element.parserOptions);\n mergeWithoutOverwrite(config.settings, element.settings);\n mergePlugins(config.plugins, element.plugins);\n mergeRuleConfigs(config.rules, element.rules);\n }\n\n // Create the predicate function for ignore patterns.\n if (ignorePatterns.length > 0) {\n config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse());\n }\n\n return config;\n}\n\n/**\n * Collect definitions.\n * @template T, U\n * @param {string} pluginId The plugin ID for prefix.\n * @param {Record} defs The definitions to collect.\n * @param {Map} map The map to output.\n * @returns {void}\n */\nfunction collect(pluginId, defs, map) {\n if (defs) {\n const prefix = pluginId && `${pluginId}/`;\n\n for (const [key, value] of Object.entries(defs)) {\n map.set(`${prefix}${key}`, value);\n }\n }\n}\n\n/**\n * Delete the mutation methods from a given map.\n * @param {Map} map The map object to delete.\n * @returns {void}\n */\nfunction deleteMutationMethods(map) {\n Object.defineProperties(map, {\n clear: { configurable: true, value: void 0 },\n delete: { configurable: true, value: void 0 },\n set: { configurable: true, value: void 0 }\n });\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArrayElement[]} elements The config elements.\n * @param {ConfigArrayInternalSlots} slots The internal slots.\n * @returns {void}\n */\nfunction initPluginMemberMaps(elements, slots) {\n const processed = new Set();\n\n slots.envMap = new Map();\n slots.processorMap = new Map();\n slots.ruleMap = new Map();\n\n for (const element of elements) {\n if (!element.plugins) {\n continue;\n }\n\n for (const [pluginId, value] of Object.entries(element.plugins)) {\n const plugin = value.definition;\n\n if (!plugin || processed.has(pluginId)) {\n continue;\n }\n processed.add(pluginId);\n\n collect(pluginId, plugin.environments, slots.envMap);\n collect(pluginId, plugin.processors, slots.processorMap);\n collect(pluginId, plugin.rules, slots.ruleMap);\n }\n }\n\n deleteMutationMethods(slots.envMap);\n deleteMutationMethods(slots.processorMap);\n deleteMutationMethods(slots.ruleMap);\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArray} instance The config elements.\n * @returns {ConfigArrayInternalSlots} The extracted config.\n */\nfunction ensurePluginMemberMaps(instance) {\n const slots = internalSlotsMap.get(instance);\n\n if (!slots.ruleMap) {\n initPluginMemberMaps(instance, slots);\n }\n\n return slots;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The Config Array.\n *\n * `ConfigArray` instance contains all settings, parsers, and plugins.\n * You need to call `ConfigArray#extractConfig(filePath)` method in order to\n * extract, merge and get only the config data which is related to an arbitrary\n * file.\n * @extends {Array}\n */\nclass ConfigArray extends Array {\n\n /**\n * Get the plugin environments.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin environments.\n */\n get pluginEnvironments() {\n return ensurePluginMemberMaps(this).envMap;\n }\n\n /**\n * Get the plugin processors.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin processors.\n */\n get pluginProcessors() {\n return ensurePluginMemberMaps(this).processorMap;\n }\n\n /**\n * Get the plugin rules.\n * The returned map cannot be mutated.\n * @returns {ReadonlyMap} The plugin rules.\n */\n get pluginRules() {\n return ensurePluginMemberMaps(this).ruleMap;\n }\n\n /**\n * Check if this config has `root` flag.\n * @returns {boolean} `true` if this config array is root.\n */\n isRoot() {\n for (let i = this.length - 1; i >= 0; --i) {\n const root = this[i].root;\n\n if (typeof root === \"boolean\") {\n return root;\n }\n }\n return false;\n }\n\n /**\n * Extract the config data which is related to a given file.\n * @param {string} filePath The absolute path to the target file.\n * @returns {ExtractedConfig} The extracted config data.\n */\n extractConfig(filePath) {\n const { cache } = internalSlotsMap.get(this);\n const indices = getMatchedIndices(this, filePath);\n const cacheKey = indices.join(\",\");\n\n if (!cache.has(cacheKey)) {\n cache.set(cacheKey, createConfig(this, indices));\n }\n\n return cache.get(cacheKey);\n }\n\n /**\n * Check if a given path is an additional lint target.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the file is an additional lint target.\n */\n isAdditionalTargetPath(filePath) {\n for (const { criteria, type } of this) {\n if (\n type === \"config\" &&\n criteria &&\n !criteria.endsWithWildcard &&\n criteria.test(filePath)\n ) {\n return true;\n }\n }\n return false;\n }\n}\n\n/**\n * Get the used extracted configs.\n * CLIEngine will use this method to collect used deprecated rules.\n * @param {ConfigArray} instance The config array object to get.\n * @returns {ExtractedConfig[]} The used extracted configs.\n * @private\n */\nfunction getUsedExtractedConfigs(instance) {\n const { cache } = internalSlotsMap.get(instance);\n\n return Array.from(cache.values());\n}\n\n\nexport {\n ConfigArray,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview `ConfigDependency` class.\n *\n * `ConfigDependency` class expresses a loaded parser or plugin.\n *\n * If the parser or plugin was loaded successfully, it has `definition` property\n * and `filePath` property. Otherwise, it has `error` property.\n *\n * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it\n * omits `definition` property.\n *\n * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers\n * or plugins.\n *\n * @author Toru Nagashima \n */\n\nimport util from \"util\";\n\n/**\n * The class is to store parsers or plugins.\n * This class hides the loaded object from `JSON.stringify()` and `console.log`.\n * @template T\n */\nclass ConfigDependency {\n\n /**\n * Initialize this instance.\n * @param {Object} data The dependency data.\n * @param {T} [data.definition] The dependency if the loading succeeded.\n * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded.\n * @param {Error} [data.error] The error object if the loading failed.\n * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded.\n * @param {string} data.id The ID of this dependency.\n * @param {string} data.importerName The name of the config file which loads this dependency.\n * @param {string} data.importerPath The path to the config file which loads this dependency.\n */\n constructor({\n definition = null,\n original = null,\n error = null,\n filePath = null,\n id,\n importerName,\n importerPath\n }) {\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {T|null}\n */\n this.definition = definition;\n\n /**\n * The original dependency as loaded directly from disk if the loading succeeded.\n * @type {T|null}\n */\n this.original = original;\n\n /**\n * The error object if the loading failed.\n * @type {Error|null}\n */\n this.error = error;\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {string|null}\n */\n this.filePath = filePath;\n\n /**\n * The ID of this dependency.\n * @type {string}\n */\n this.id = id;\n\n /**\n * The name of the config file which loads this dependency.\n * @type {string}\n */\n this.importerName = importerName;\n\n /**\n * The path to the config file which loads this dependency.\n * @type {string}\n */\n this.importerPath = importerPath;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n const obj = this[util.inspect.custom]();\n\n // Display `error.message` (`Error#message` is unenumerable).\n if (obj.error instanceof Error) {\n obj.error = { ...obj.error, message: obj.error.message };\n }\n\n return obj;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n const {\n definition: _ignore1, // eslint-disable-line no-unused-vars\n original: _ignore2, // eslint-disable-line no-unused-vars\n ...obj\n } = this;\n\n return obj;\n }\n}\n\n/** @typedef {ConfigDependency} DependentParser */\n/** @typedef {ConfigDependency} DependentPlugin */\n\nexport { ConfigDependency };\n","/**\n * @fileoverview `OverrideTester` class.\n *\n * `OverrideTester` class handles `files` property and `excludedFiles` property\n * of `overrides` config.\n *\n * It provides one method.\n *\n * - `test(filePath)`\n * Test if a file path matches the pair of `files` property and\n * `excludedFiles` property. The `filePath` argument must be an absolute\n * path.\n *\n * `ConfigArrayFactory` creates `OverrideTester` objects when it processes\n * `overrides` properties.\n *\n * @author Toru Nagashima \n */\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport util from \"util\";\nimport minimatch from \"minimatch\";\n\nconst { Minimatch } = minimatch;\n\nconst minimatchOpts = { dot: true, matchBase: true };\n\n/**\n * @typedef {Object} Pattern\n * @property {InstanceType[] | null} includes The positive matchers.\n * @property {InstanceType[] | null} excludes The negative matchers.\n */\n\n/**\n * Normalize a given pattern to an array.\n * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns.\n * @returns {string[]|null} Normalized patterns.\n * @private\n */\nfunction normalizePatterns(patterns) {\n if (Array.isArray(patterns)) {\n return patterns.filter(Boolean);\n }\n if (typeof patterns === \"string\" && patterns) {\n return [patterns];\n }\n return [];\n}\n\n/**\n * Create the matchers of given patterns.\n * @param {string[]} patterns The patterns.\n * @returns {InstanceType[] | null} The matchers.\n */\nfunction toMatcher(patterns) {\n if (patterns.length === 0) {\n return null;\n }\n return patterns.map(pattern => {\n if (/^\\.[/\\\\]/u.test(pattern)) {\n return new Minimatch(\n pattern.slice(2),\n\n // `./*.js` should not match with `subdir/foo.js`\n { ...minimatchOpts, matchBase: false }\n );\n }\n return new Minimatch(pattern, minimatchOpts);\n });\n}\n\n/**\n * Convert a given matcher to string.\n * @param {Pattern} matchers The matchers.\n * @returns {string} The string expression of the matcher.\n */\nfunction patternToJson({ includes, excludes }) {\n return {\n includes: includes && includes.map(m => m.pattern),\n excludes: excludes && excludes.map(m => m.pattern)\n };\n}\n\n/**\n * The class to test given paths are matched by the patterns.\n */\nclass OverrideTester {\n\n /**\n * Create a tester with given criteria.\n * If there are no criteria, returns `null`.\n * @param {string|string[]} files The glob patterns for included files.\n * @param {string|string[]} excludedFiles The glob patterns for excluded files.\n * @param {string} basePath The path to the base directory to test paths.\n * @returns {OverrideTester|null} The created instance or `null`.\n */\n static create(files, excludedFiles, basePath) {\n const includePatterns = normalizePatterns(files);\n const excludePatterns = normalizePatterns(excludedFiles);\n let endsWithWildcard = false;\n\n if (includePatterns.length === 0) {\n return null;\n }\n\n // Rejects absolute paths or relative paths to parents.\n for (const pattern of includePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n if (pattern.endsWith(\"*\")) {\n endsWithWildcard = true;\n }\n }\n for (const pattern of excludePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n }\n\n const includes = toMatcher(includePatterns);\n const excludes = toMatcher(excludePatterns);\n\n return new OverrideTester(\n [{ includes, excludes }],\n basePath,\n endsWithWildcard\n );\n }\n\n /**\n * Combine two testers by logical and.\n * If either of the testers was `null`, returns the other tester.\n * The `basePath` property of the two must be the same value.\n * @param {OverrideTester|null} a A tester.\n * @param {OverrideTester|null} b Another tester.\n * @returns {OverrideTester|null} Combined tester.\n */\n static and(a, b) {\n if (!b) {\n return a && new OverrideTester(\n a.patterns,\n a.basePath,\n a.endsWithWildcard\n );\n }\n if (!a) {\n return new OverrideTester(\n b.patterns,\n b.basePath,\n b.endsWithWildcard\n );\n }\n\n assert.strictEqual(a.basePath, b.basePath);\n return new OverrideTester(\n a.patterns.concat(b.patterns),\n a.basePath,\n a.endsWithWildcard || b.endsWithWildcard\n );\n }\n\n /**\n * Initialize this instance.\n * @param {Pattern[]} patterns The matchers.\n * @param {string} basePath The base path.\n * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`.\n */\n constructor(patterns, basePath, endsWithWildcard = false) {\n\n /** @type {Pattern[]} */\n this.patterns = patterns;\n\n /** @type {string} */\n this.basePath = basePath;\n\n /** @type {boolean} */\n this.endsWithWildcard = endsWithWildcard;\n }\n\n /**\n * Test if a given path is matched or not.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the path was matched.\n */\n test(filePath) {\n if (typeof filePath !== \"string\" || !path.isAbsolute(filePath)) {\n throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`);\n }\n const relativePath = path.relative(this.basePath, filePath);\n\n return this.patterns.every(({ includes, excludes }) => (\n (!includes || includes.some(m => m.match(relativePath))) &&\n (!excludes || !excludes.some(m => m.match(relativePath)))\n ));\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n if (this.patterns.length === 1) {\n return {\n ...patternToJson(this.patterns[0]),\n basePath: this.basePath\n };\n }\n return {\n AND: this.patterns.map(patternToJson),\n basePath: this.basePath\n };\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n return this.toJSON();\n }\n}\n\nexport { OverrideTester };\n","/**\n * @fileoverview `ConfigArray` class.\n * @author Toru Nagashima \n */\n\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array.js\";\nimport { ConfigDependency } from \"./config-dependency.js\";\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\nimport { OverrideTester } from \"./override-tester.js\";\n\nexport {\n ConfigArray,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Typedefs\n//------------------------------------------------------------------------------\n\n/** @typedef {import(\"../shared/types\").Rule} Rule */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n// JSON schema that disallows passing any options\nconst noOptionsSchema = Object.freeze({\n type: \"array\",\n minItems: 0,\n maxItems: 0\n});\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {Rule} rule A rule object\n * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.\n * @returns {Object|null} JSON Schema for the rule's options.\n * `null` if rule wasn't passed or its `meta.schema` is `false`.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n if (!rule.meta) {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n const schema = rule.meta.schema;\n\n if (typeof schema === \"undefined\") {\n return { ...noOptionsSchema }; // default if `meta.schema` is not specified\n }\n\n // `schema:false` is an allowed explicit opt-out of options validation for the rule\n if (schema === false) {\n return null;\n }\n\n if (typeof schema !== \"object\" || schema === null) {\n throw new TypeError(\"Rule's `meta.schema` must be an array or object\");\n }\n\n // ESLint-specific array form needs to be converted into a valid JSON Schema definition\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n\n // `schema:[]` is an explicit way to specify that the rule does not accept any options\n return { ...noOptionsSchema };\n }\n\n // `schema:` is assumed to be a valid JSON Schema definition\n return schema;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n try {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n } catch (err) {\n const errorWithCode = new Error(err.message, { cause: err });\n\n errorWithCode.code = \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\";\n\n throw errorWithCode;\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n let enhancedMessage = err.code === \"ESLINT_INVALID_RULE_OPTIONS_SCHEMA\"\n ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}`\n : `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n enhancedMessage = `${source}:\\n\\t${enhancedMessage}`;\n }\n\n const enhancedError = new Error(enhancedMessage, { cause: err });\n\n if (err.code) {\n enhancedError.code = err.code;\n }\n\n throw enhancedError;\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * Utility for resolving a module relative to another module\n * @author Teddy Katz\n */\n\nimport Module from \"module\";\n\n/*\n * `Module.createRequire` is added in v12.2.0. It supports URL as well.\n * We only support the case where the argument is a filepath, not a URL.\n */\nconst createRequire = Module.createRequire;\n\n/**\n * Resolves a Node module relative to another module\n * @param {string} moduleName The name of a Node module, or a path to a Node module.\n * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be\n * a file rather than a directory, but the file need not actually exist.\n * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`\n */\nfunction resolve(moduleName, relativeToPath) {\n try {\n return createRequire(relativeToPath).resolve(moduleName);\n } catch (error) {\n\n // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future.\n if (\n typeof error === \"object\" &&\n error !== null &&\n error.code === \"MODULE_NOT_FOUND\" &&\n !error.requireStack &&\n error.message.includes(moduleName)\n ) {\n error.message += `\\nRequire stack:\\n- ${relativeToPath}`;\n }\n throw error;\n }\n}\n\nexport {\n resolve\n};\n","/**\n * @fileoverview The factory of `ConfigArray` objects.\n *\n * This class provides methods to create `ConfigArray` instance.\n *\n * - `create(configData, options)`\n * Create a `ConfigArray` instance from a config data. This is to handle CLI\n * options except `--config`.\n * - `loadFile(filePath, options)`\n * Create a `ConfigArray` instance from a config file. This is to handle\n * `--config` option. If the file was not found, throws the following error:\n * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error.\n * - If the filename was `package.json`, an IO error or an\n * `ESLINT_CONFIG_FIELD_NOT_FOUND` error.\n * - Otherwise, an IO error such as `ENOENT`.\n * - `loadInDirectory(directoryPath, options)`\n * Create a `ConfigArray` instance from a config file which is on a given\n * directory. This tries to load `.eslintrc.*` or `package.json`. If not\n * found, returns an empty `ConfigArray`.\n * - `loadESLintIgnore(filePath)`\n * Create a `ConfigArray` instance from a config file that is `.eslintignore`\n * format. This is to handle `--ignore-path` option.\n * - `loadDefaultESLintIgnore()`\n * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in\n * the current working directory.\n *\n * `ConfigArrayFactory` class has the responsibility that loads configuration\n * files, including loading `extends`, `parser`, and `plugins`. The created\n * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`.\n *\n * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class\n * handles cascading and hierarchy.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport fs from \"fs\";\nimport importFresh from \"import-fresh\";\nimport { createRequire } from \"module\";\nimport path from \"path\";\nimport stripComments from \"strip-json-comments\";\n\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern,\n OverrideTester\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\n\nconst require = createRequire(import.meta.url);\n\nconst debug = debugOrig(\"eslintrc:config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\nconst configFilenames = [\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\",\n \"package.json\"\n];\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").OverrideConfigData} OverrideConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {import(\"./config-array/config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-array/config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {ConfigArray[0]} ConfigArrayElement */\n\n/**\n * @typedef {Object} ConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {string} [cwd] The path to the current working directory.\n * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryInternalSlots\n * @property {Map} additionalPluginPool The map for additional plugins.\n * @property {string} cwd The path to the current working directory.\n * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {string} pluginBasePath The base path to resolve plugins.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/** @type {WeakMap} */\nconst normalizedPlugins = new WeakMap();\n\n/**\n * Check if a given string is a file path.\n * @param {string} nameOrPath A module name or file path.\n * @returns {boolean} `true` if the `nameOrPath` is a file path.\n */\nfunction isFilePath(nameOrPath) {\n return (\n /^\\.{1,2}[/\\\\]/u.test(nameOrPath) ||\n path.isAbsolute(nameOrPath)\n );\n}\n\n/**\n * Convenience wrapper for synchronously reading file contents.\n * @param {string} filePath The filename to read.\n * @returns {string} The file contents, with the BOM removed.\n * @private\n */\nfunction readFile(filePath) {\n return fs.readFileSync(filePath, \"utf8\").replace(/^\\ufeff/u, \"\");\n}\n\n/**\n * Loads a YAML configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadYAMLConfigFile(filePath) {\n debug(`Loading YAML config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n\n // empty YAML file can be null, so always use\n return yaml.load(readFile(filePath)) || {};\n } catch (e) {\n debug(`Error reading YAML file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JSON configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSONConfigFile(filePath) {\n debug(`Loading JSON config file: ${filePath}`);\n\n try {\n return JSON.parse(stripComments(readFile(filePath)));\n } catch (e) {\n debug(`Error reading JSON file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n e.messageTemplate = \"failed-to-read-json\";\n e.messageData = {\n path: filePath,\n message: e.message\n };\n throw e;\n }\n}\n\n/**\n * Loads a legacy (.eslintrc) configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadLegacyConfigFile(filePath) {\n debug(`Loading legacy config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};\n } catch (e) {\n debug(\"Error reading YAML file: %s\\n%o\", filePath, e);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JavaScript configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSConfigFile(filePath) {\n debug(`Loading JS config file: ${filePath}`);\n try {\n return importFresh(filePath);\n } catch (e) {\n debug(`Error reading JavaScript file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a configuration from a package.json file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadPackageJSONConfigFile(filePath) {\n debug(`Loading package.json config file: ${filePath}`);\n try {\n const packageData = loadJSONConfigFile(filePath);\n\n if (!Object.hasOwnProperty.call(packageData, \"eslintConfig\")) {\n throw Object.assign(\n new Error(\"package.json file doesn't have 'eslintConfig' field.\"),\n { code: \"ESLINT_CONFIG_FIELD_NOT_FOUND\" }\n );\n }\n\n return packageData.eslintConfig;\n } catch (e) {\n debug(`Error reading package.json file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a `.eslintignore` from a file.\n * @param {string} filePath The filename to load.\n * @returns {string[]} The ignore patterns from the file.\n * @private\n */\nfunction loadESLintIgnoreFile(filePath) {\n debug(`Loading .eslintignore file: ${filePath}`);\n\n try {\n return readFile(filePath)\n .split(/\\r?\\n/gu)\n .filter(line => line.trim() !== \"\" && !line.startsWith(\"#\"));\n } catch (e) {\n debug(`Error reading .eslintignore file: ${filePath}`);\n e.message = `Cannot read .eslintignore file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Creates an error to notify about a missing config to extend from.\n * @param {string} configName The name of the missing config.\n * @param {string} importerName The name of the config that imported the missing config\n * @param {string} messageTemplate The text template to source error strings from.\n * @returns {Error} The error object to throw\n * @private\n */\nfunction configInvalidError(configName, importerName, messageTemplate) {\n return Object.assign(\n new Error(`Failed to load config \"${configName}\" to extend from.`),\n {\n messageTemplate,\n messageData: { configName, importerName }\n }\n );\n}\n\n/**\n * Loads a configuration file regardless of the source. Inspects the file path\n * to determine the correctly way to load the config file.\n * @param {string} filePath The path to the configuration.\n * @returns {ConfigData|null} The configuration information.\n * @private\n */\nfunction loadConfigFile(filePath) {\n switch (path.extname(filePath)) {\n case \".js\":\n case \".cjs\":\n return loadJSConfigFile(filePath);\n\n case \".json\":\n if (path.basename(filePath) === \"package.json\") {\n return loadPackageJSONConfigFile(filePath);\n }\n return loadJSONConfigFile(filePath);\n\n case \".yaml\":\n case \".yml\":\n return loadYAMLConfigFile(filePath);\n\n default:\n return loadLegacyConfigFile(filePath);\n }\n}\n\n/**\n * Write debug log.\n * @param {string} request The requested module name.\n * @param {string} relativeTo The file path to resolve the request relative to.\n * @param {string} filePath The resolved file path.\n * @returns {void}\n */\nfunction writeDebugLogForLoading(request, relativeTo, filePath) {\n /* istanbul ignore next */\n if (debug.enabled) {\n let nameAndVersion = null;\n\n try {\n const packageJsonPath = ModuleResolver.resolve(\n `${request}/package.json`,\n relativeTo\n );\n const { version = \"unknown\" } = require(packageJsonPath);\n\n nameAndVersion = `${request}@${version}`;\n } catch (error) {\n debug(\"package.json was not found:\", error.message);\n nameAndVersion = request;\n }\n\n debug(\"Loaded: %s (%s)\", nameAndVersion, filePath);\n }\n}\n\n/**\n * Create a new context with default values.\n * @param {ConfigArrayFactoryInternalSlots} slots The internal slots.\n * @param {\"config\" | \"ignore\" | \"implicit-processor\" | undefined} providedType The type of the current configuration. Default is `\"config\"`.\n * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`.\n * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string.\n * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`.\n * @returns {ConfigArrayFactoryLoadingContext} The created context.\n */\nfunction createContext(\n { cwd, resolvePluginsRelativeTo },\n providedType,\n providedName,\n providedFilePath,\n providedMatchBasePath\n) {\n const filePath = providedFilePath\n ? path.resolve(cwd, providedFilePath)\n : \"\";\n const matchBasePath =\n (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const name =\n providedName ||\n (filePath && path.relative(cwd, filePath)) ||\n \"\";\n const pluginBasePath =\n resolvePluginsRelativeTo ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const type = providedType || \"config\";\n\n return { filePath, matchBasePath, name, pluginBasePath, type };\n}\n\n/**\n * Normalize a given plugin.\n * - Ensure the object to have four properties: configs, environments, processors, and rules.\n * - Ensure the object to not have other properties.\n * @param {Plugin} plugin The plugin to normalize.\n * @returns {Plugin} The normalized plugin.\n */\nfunction normalizePlugin(plugin) {\n\n // first check the cache\n let normalizedPlugin = normalizedPlugins.get(plugin);\n\n if (normalizedPlugin) {\n return normalizedPlugin;\n }\n\n normalizedPlugin = {\n configs: plugin.configs || {},\n environments: plugin.environments || {},\n processors: plugin.processors || {},\n rules: plugin.rules || {}\n };\n\n // save the reference for later\n normalizedPlugins.set(plugin, normalizedPlugin);\n\n return normalizedPlugin;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The factory of `ConfigArray` objects.\n */\nclass ConfigArrayFactory {\n\n /**\n * Initialize this instance.\n * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins.\n */\n constructor({\n additionalPluginPool = new Map(),\n cwd = process.cwd(),\n resolvePluginsRelativeTo,\n builtInRules,\n resolver = ModuleResolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = {}) {\n internalSlotsMap.set(this, {\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo:\n resolvePluginsRelativeTo &&\n path.resolve(cwd, resolvePluginsRelativeTo),\n builtInRules,\n resolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n });\n }\n\n /**\n * Create `ConfigArray` instance from a config data.\n * @param {ConfigData|null} configData The config data to create.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.filePath] The path to this config data.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n create(configData, { basePath, filePath, name } = {}) {\n if (!configData) {\n return new ConfigArray();\n }\n\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n const elements = this._normalizeConfigData(configData, ctx);\n\n return new ConfigArray(...elements);\n }\n\n /**\n * Load a config file.\n * @param {string} filePath The path to a config file.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n loadFile(filePath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n\n return new ConfigArray(...this._loadConfigData(ctx));\n }\n\n /**\n * Load the config file on a given directory if exists.\n * @param {string} directoryPath The path to a directory.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadInDirectory(directoryPath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n\n for (const filename of configFilenames) {\n const ctx = createContext(\n slots,\n \"config\",\n name,\n path.join(directoryPath, filename),\n basePath\n );\n\n if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) {\n let configData;\n\n try {\n configData = loadConfigFile(ctx.filePath);\n } catch (error) {\n if (!error || error.code !== \"ESLINT_CONFIG_FIELD_NOT_FOUND\") {\n throw error;\n }\n }\n\n if (configData) {\n debug(`Config file found: ${ctx.filePath}`);\n return new ConfigArray(\n ...this._normalizeConfigData(configData, ctx)\n );\n }\n }\n }\n\n debug(`Config file not found on ${directoryPath}`);\n return new ConfigArray();\n }\n\n /**\n * Check if a config file on a given directory exists or not.\n * @param {string} directoryPath The path to a directory.\n * @returns {string | null} The path to the found config file. If not found then null.\n */\n static getPathToConfigFileInDirectory(directoryPath) {\n for (const filename of configFilenames) {\n const filePath = path.join(directoryPath, filename);\n\n if (fs.existsSync(filePath)) {\n if (filename === \"package.json\") {\n try {\n loadPackageJSONConfigFile(filePath);\n return filePath;\n } catch { /* ignore */ }\n } else {\n return filePath;\n }\n }\n }\n return null;\n }\n\n /**\n * Load `.eslintignore` file.\n * @param {string} filePath The path to a `.eslintignore` file to load.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadESLintIgnore(filePath) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(\n slots,\n \"ignore\",\n void 0,\n filePath,\n slots.cwd\n );\n const ignorePatterns = loadESLintIgnoreFile(ctx.filePath);\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(ignorePatterns, ctx)\n );\n }\n\n /**\n * Load `.eslintignore` file in the current working directory.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadDefaultESLintIgnore() {\n const slots = internalSlotsMap.get(this);\n const eslintIgnorePath = path.resolve(slots.cwd, \".eslintignore\");\n const packageJsonPath = path.resolve(slots.cwd, \"package.json\");\n\n if (fs.existsSync(eslintIgnorePath)) {\n return this.loadESLintIgnore(eslintIgnorePath);\n }\n if (fs.existsSync(packageJsonPath)) {\n const data = loadJSONConfigFile(packageJsonPath);\n\n if (Object.hasOwnProperty.call(data, \"eslintIgnore\")) {\n if (!Array.isArray(data.eslintIgnore)) {\n throw new Error(\"Package.json eslintIgnore property requires an array of paths\");\n }\n const ctx = createContext(\n slots,\n \"ignore\",\n \"eslintIgnore in package.json\",\n packageJsonPath,\n slots.cwd\n );\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx)\n );\n }\n }\n\n return new ConfigArray();\n }\n\n /**\n * Load a given config file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} Loaded config.\n * @private\n */\n _loadConfigData(ctx) {\n return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx);\n }\n\n /**\n * Normalize a given `.eslintignore` data to config array elements.\n * @param {string[]} ignorePatterns The patterns to ignore files.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeESLintIgnoreData(ignorePatterns, ctx) {\n const elements = this._normalizeObjectConfigData(\n { ignorePatterns },\n ctx\n );\n\n // Set `ignorePattern.loose` flag for backward compatibility.\n for (const element of elements) {\n if (element.ignorePattern) {\n element.ignorePattern.loose = true;\n }\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _normalizeConfigData(configData, ctx) {\n const validator = new ConfigValidator();\n\n validator.validateConfigSchema(configData, ctx.name || ctx.filePath);\n return this._normalizeObjectConfigData(configData, ctx);\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData|OverrideConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigData(configData, ctx) {\n const { files, excludedFiles, ...configBody } = configData;\n const criteria = OverrideTester.create(\n files,\n excludedFiles,\n ctx.matchBasePath\n );\n const elements = this._normalizeObjectConfigDataBody(configBody, ctx);\n\n // Apply the criteria to every element.\n for (const element of elements) {\n\n /*\n * Merge the criteria.\n * This is for the `overrides` entries that came from the\n * configurations of `overrides[].extends`.\n */\n element.criteria = OverrideTester.and(criteria, element.criteria);\n\n /*\n * Remove `root` property to ignore `root` settings which came from\n * `extends` in `overrides`.\n */\n if (element.criteria) {\n element.root = void 0;\n }\n\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigDataBody(\n {\n env,\n extends: extend,\n globals,\n ignorePatterns,\n noInlineConfig,\n parser: parserName,\n parserOptions,\n plugins: pluginList,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings,\n overrides: overrideList = []\n },\n ctx\n ) {\n const extendList = Array.isArray(extend) ? extend : [extend];\n const ignorePattern = ignorePatterns && new IgnorePattern(\n Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns],\n ctx.matchBasePath\n );\n\n // Flatten `extends`.\n for (const extendName of extendList.filter(Boolean)) {\n yield* this._loadExtends(extendName, ctx);\n }\n\n // Load parser & plugins.\n const parser = parserName && this._loadParser(parserName, ctx);\n const plugins = pluginList && this._loadPlugins(pluginList, ctx);\n\n // Yield pseudo config data for file extension processors.\n if (plugins) {\n yield* this._takeFileExtensionProcessors(plugins, ctx);\n }\n\n // Yield the config data except `extends` and `overrides`.\n yield {\n\n // Debug information.\n type: ctx.type,\n name: ctx.name,\n filePath: ctx.filePath,\n\n // Config data.\n criteria: null,\n env,\n globals,\n ignorePattern,\n noInlineConfig,\n parser,\n parserOptions,\n plugins,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings\n };\n\n // Flatten `overries`.\n for (let i = 0; i < overrideList.length; ++i) {\n yield* this._normalizeObjectConfigData(\n overrideList[i],\n { ...ctx, name: `${ctx.name}#overrides[${i}]` }\n );\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtends(extendName, ctx) {\n debug(\"Loading {extends:%j} relative to %s\", extendName, ctx.filePath);\n try {\n if (extendName.startsWith(\"eslint:\")) {\n return this._loadExtendedBuiltInConfig(extendName, ctx);\n }\n if (extendName.startsWith(\"plugin:\")) {\n return this._loadExtendedPluginConfig(extendName, ctx);\n }\n return this._loadExtendedShareableConfig(extendName, ctx);\n } catch (error) {\n error.message += `\\nReferenced from: ${ctx.filePath || ctx.name}`;\n throw error;\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedBuiltInConfig(extendName, ctx) {\n const {\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = internalSlotsMap.get(this);\n\n if (extendName === \"eslint:recommended\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintRecommendedConfig) {\n if (typeof getEslintRecommendedConfig !== \"function\") {\n throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);\n }\n return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintRecommendedPath\n });\n }\n if (extendName === \"eslint:all\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintAllConfig) {\n if (typeof getEslintAllConfig !== \"function\") {\n throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);\n }\n return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintAllPath\n });\n }\n\n throw configInvalidError(extendName, ctx.name, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedPluginConfig(extendName, ctx) {\n const slashIndex = extendName.lastIndexOf(\"/\");\n\n if (slashIndex === -1) {\n throw configInvalidError(extendName, ctx.filePath, \"plugin-invalid\");\n }\n\n const pluginName = extendName.slice(\"plugin:\".length, slashIndex);\n const configName = extendName.slice(slashIndex + 1);\n\n if (isFilePath(pluginName)) {\n throw new Error(\"'extends' cannot use a file path for plugins.\");\n }\n\n const plugin = this._loadPlugin(pluginName, ctx);\n const configData =\n plugin.definition &&\n plugin.definition.configs[configName];\n\n if (configData) {\n return this._normalizeConfigData(configData, {\n ...ctx,\n filePath: plugin.filePath || ctx.filePath,\n name: `${ctx.name} » plugin:${plugin.id}/${configName}`\n });\n }\n\n throw plugin.error || configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedShareableConfig(extendName, ctx) {\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n let request;\n\n if (isFilePath(extendName)) {\n request = extendName;\n } else if (extendName.startsWith(\".\")) {\n request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior.\n } else {\n request = naming.normalizePackageName(\n extendName,\n \"eslint-config\"\n );\n }\n\n let filePath;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (error) {\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n throw configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n throw error;\n }\n\n writeDebugLogForLoading(request, relativeTo, filePath);\n return this._loadConfigData({\n ...ctx,\n filePath,\n name: `${ctx.name} » ${request}`\n });\n }\n\n /**\n * Load given plugins.\n * @param {string[]} names The plugin names to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {Record} The loaded parser.\n * @private\n */\n _loadPlugins(names, ctx) {\n return names.reduce((map, name) => {\n if (isFilePath(name)) {\n throw new Error(\"Plugins array cannot includes file paths.\");\n }\n const plugin = this._loadPlugin(name, ctx);\n\n map[plugin.id] = plugin;\n\n return map;\n }, {});\n }\n\n /**\n * Load a given parser.\n * @param {string} nameOrPath The package name or the path to a parser file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentParser} The loaded parser.\n */\n _loadParser(nameOrPath, ctx) {\n debug(\"Loading parser %j from %s\", nameOrPath, ctx.filePath);\n\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n\n try {\n const filePath = resolver.resolve(nameOrPath, relativeTo);\n\n writeDebugLogForLoading(nameOrPath, relativeTo, filePath);\n\n return new ConfigDependency({\n definition: require(filePath),\n filePath,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (error) {\n\n // If the parser name is \"espree\", load the espree of ESLint.\n if (nameOrPath === \"espree\") {\n debug(\"Fallback espree.\");\n return new ConfigDependency({\n definition: require(\"espree\"),\n filePath: require.resolve(\"espree\"),\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n debug(\"Failed to load parser '%s' declared in '%s'.\", nameOrPath, ctx.name);\n error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`;\n\n return new ConfigDependency({\n error,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n }\n\n /**\n * Load a given plugin.\n * @param {string} name The plugin name to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentPlugin} The loaded plugin.\n * @private\n */\n _loadPlugin(name, ctx) {\n debug(\"Loading plugin %j from %s\", name, ctx.filePath);\n\n const { additionalPluginPool, resolver } = internalSlotsMap.get(this);\n const request = naming.normalizePackageName(name, \"eslint-plugin\");\n const id = naming.getShorthandName(request, \"eslint-plugin\");\n const relativeTo = path.join(ctx.pluginBasePath, \"__placeholder__.js\");\n\n if (name.match(/\\s+/u)) {\n const error = Object.assign(\n new Error(`Whitespace found in plugin name '${name}'`),\n {\n messageTemplate: \"whitespace-found\",\n messageData: { pluginName: request }\n }\n );\n\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n // Check for additional pool.\n const plugin =\n additionalPluginPool.get(request) ||\n additionalPluginPool.get(id);\n\n if (plugin) {\n return new ConfigDependency({\n definition: normalizePlugin(plugin),\n original: plugin,\n filePath: \"\", // It's unknown where the plugin came from.\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n let filePath;\n let error;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (resolveError) {\n error = resolveError;\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n error.messageTemplate = \"plugin-missing\";\n error.messageData = {\n pluginName: request,\n resolvePluginsRelativeTo: ctx.pluginBasePath,\n importerName: ctx.name\n };\n }\n }\n\n if (filePath) {\n try {\n writeDebugLogForLoading(request, relativeTo, filePath);\n\n const startTime = Date.now();\n const pluginDefinition = require(filePath);\n\n debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`);\n\n return new ConfigDependency({\n definition: normalizePlugin(pluginDefinition),\n original: pluginDefinition,\n filePath,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (loadError) {\n error = loadError;\n }\n }\n\n debug(\"Failed to load plugin '%s' declared in '%s'.\", name, ctx.name);\n error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`;\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n /**\n * Take file expression processors as config array elements.\n * @param {Record} plugins The plugin definitions.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The config array elements of file expression processors.\n * @private\n */\n *_takeFileExtensionProcessors(plugins, ctx) {\n for (const pluginId of Object.keys(plugins)) {\n const processors =\n plugins[pluginId] &&\n plugins[pluginId].definition &&\n plugins[pluginId].definition.processors;\n\n if (!processors) {\n continue;\n }\n\n for (const processorId of Object.keys(processors)) {\n if (processorId.startsWith(\".\")) {\n yield* this._normalizeObjectConfigData(\n {\n files: [`*${processorId}`],\n processor: `${pluginId}/${processorId}`\n },\n {\n ...ctx,\n type: \"implicit-processor\",\n name: `${ctx.name}#processors[\"${pluginId}/${processorId}\"]`\n }\n );\n }\n }\n }\n }\n}\n\nexport {\n ConfigArrayFactory,\n createContext,\n loadConfigFile\n};\n","/**\n * @fileoverview `CascadingConfigArrayFactory` class.\n *\n * `CascadingConfigArrayFactory` class has a responsibility:\n *\n * 1. Handles cascading of config files.\n *\n * It provides two methods:\n *\n * - `getConfigArrayForFile(filePath)`\n * Get the corresponded configuration of a given file. This method doesn't\n * throw even if the given file didn't exist.\n * - `clearCache()`\n * Clear the internal cache. You have to call this method when\n * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends\n * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport os from \"os\";\nimport path from \"path\";\n\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport { emitDeprecationWarning } from \"./shared/deprecation-warnings.js\";\n\nconst debug = debugOrig(\"eslintrc:cascading-config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {ReturnType} ConfigArray */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {ConfigData} [baseConfig] The config by `baseConfig` option.\n * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.\n * @property {string} [cwd] The base directory to start lookup.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]} [rulePaths] The value of `--rulesdir` option.\n * @property {string} [specificConfigPath] The value of `--config` option.\n * @property {boolean} [useEslintrc] if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryInternalSlots\n * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.\n * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.\n * @property {ConfigArray} cliConfigArray The config array of CLI options.\n * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.\n * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.\n * @property {Map} configCache The cache from directory paths to config arrays.\n * @property {string} cwd The base directory to start lookup.\n * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.\n * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.\n * @property {boolean} useEslintrc if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/**\n * Create the config array from `baseConfig` and `rulePaths`.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createBaseConfigArray({\n configArrayFactory,\n baseConfigData,\n rulePaths,\n cwd,\n loadRules\n}) {\n const baseConfigArray = configArrayFactory.create(\n baseConfigData,\n { name: \"BaseConfig\" }\n );\n\n /*\n * Create the config array element for the default ignore patterns.\n * This element has `ignorePattern` property that ignores the default\n * patterns in the current working directory.\n */\n baseConfigArray.unshift(configArrayFactory.create(\n { ignorePatterns: IgnorePattern.DefaultPatterns },\n { name: \"DefaultIgnorePattern\" }\n )[0]);\n\n /*\n * Load rules `--rulesdir` option as a pseudo plugin.\n * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate\n * the rule's options with only information in the config array.\n */\n if (rulePaths && rulePaths.length > 0) {\n baseConfigArray.push({\n type: \"config\",\n name: \"--rulesdir\",\n filePath: \"\",\n plugins: {\n \"\": new ConfigDependency({\n definition: {\n rules: rulePaths.reduce(\n (map, rulesPath) => Object.assign(\n map,\n loadRules(rulesPath, cwd)\n ),\n {}\n )\n },\n filePath: \"\",\n id: \"\",\n importerName: \"--rulesdir\",\n importerPath: \"\"\n })\n }\n });\n }\n\n return baseConfigArray;\n}\n\n/**\n * Create the config array from CLI options.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n}) {\n const cliConfigArray = configArrayFactory.create(\n cliConfigData,\n { name: \"CLIOptions\" }\n );\n\n cliConfigArray.unshift(\n ...(ignorePath\n ? configArrayFactory.loadESLintIgnore(ignorePath)\n : configArrayFactory.loadDefaultESLintIgnore())\n );\n\n if (specificConfigPath) {\n cliConfigArray.unshift(\n ...configArrayFactory.loadFile(\n specificConfigPath,\n { name: \"--config\", basePath: cwd }\n )\n );\n }\n\n return cliConfigArray;\n}\n\n/**\n * The error type when there are files matched by a glob, but all of them have been ignored.\n */\nclass ConfigurationNotFoundError extends Error {\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @param {string} directoryPath The directory path.\n */\n constructor(directoryPath) {\n super(`No ESLint configuration found in ${directoryPath}.`);\n this.messageTemplate = \"no-config-found\";\n this.messageData = { directoryPath };\n }\n}\n\n/**\n * This class provides the functionality that enumerates every file which is\n * matched by given glob patterns and that configuration.\n */\nclass CascadingConfigArrayFactory {\n\n /**\n * Initialize this enumerator.\n * @param {CascadingConfigArrayFactoryOptions} options The options.\n */\n constructor({\n additionalPluginPool = new Map(),\n baseConfig: baseConfigData = null,\n cliConfig: cliConfigData = null,\n cwd = process.cwd(),\n ignorePath,\n resolvePluginsRelativeTo,\n rulePaths = [],\n specificConfigPath = null,\n useEslintrc = true,\n builtInRules = new Map(),\n loadRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n } = {}) {\n const configArrayFactory = new ConfigArrayFactory({\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo,\n builtInRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n });\n\n internalSlotsMap.set(this, {\n baseConfigArray: createBaseConfigArray({\n baseConfigData,\n configArrayFactory,\n cwd,\n rulePaths,\n loadRules\n }),\n baseConfigData,\n cliConfigArray: createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n }),\n cliConfigData,\n configArrayFactory,\n configCache: new Map(),\n cwd,\n finalizeCache: new WeakMap(),\n ignorePath,\n rulePaths,\n specificConfigPath,\n useEslintrc,\n builtInRules,\n loadRules\n });\n }\n\n /**\n * The path to the current working directory.\n * This is used by tests.\n * @type {string}\n */\n get cwd() {\n const { cwd } = internalSlotsMap.get(this);\n\n return cwd;\n }\n\n /**\n * Get the config array of a given file.\n * If `filePath` was not given, it returns the config which contains only\n * `baseConfigData` and `cliConfigData`.\n * @param {string} [filePath] The file path to a file.\n * @param {Object} [options] The options.\n * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The config array of the file.\n */\n getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {\n const {\n baseConfigArray,\n cliConfigArray,\n cwd\n } = internalSlotsMap.get(this);\n\n if (!filePath) {\n return new ConfigArray(...baseConfigArray, ...cliConfigArray);\n }\n\n const directoryPath = path.dirname(path.resolve(cwd, filePath));\n\n debug(`Load config files for ${directoryPath}.`);\n\n return this._finalizeConfigArray(\n this._loadConfigInAncestors(directoryPath),\n directoryPath,\n ignoreNotFoundError\n );\n }\n\n /**\n * Set the config data to override all configs.\n * Require to call `clearCache()` method after this method is called.\n * @param {ConfigData} configData The config data to override all configs.\n * @returns {void}\n */\n setOverrideConfig(configData) {\n const slots = internalSlotsMap.get(this);\n\n slots.cliConfigData = configData;\n }\n\n /**\n * Clear config cache.\n * @returns {void}\n */\n clearCache() {\n const slots = internalSlotsMap.get(this);\n\n slots.baseConfigArray = createBaseConfigArray(slots);\n slots.cliConfigArray = createCLIConfigArray(slots);\n slots.configCache.clear();\n }\n\n /**\n * Load and normalize config files from the ancestor directories.\n * @param {string} directoryPath The path to a leaf directory.\n * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {\n const {\n baseConfigArray,\n configArrayFactory,\n configCache,\n cwd,\n useEslintrc\n } = internalSlotsMap.get(this);\n\n if (!useEslintrc) {\n return baseConfigArray;\n }\n\n let configArray = configCache.get(directoryPath);\n\n // Hit cache.\n if (configArray) {\n debug(`Cache hit: ${directoryPath}.`);\n return configArray;\n }\n debug(`No cache found: ${directoryPath}.`);\n\n const homePath = os.homedir();\n\n // Consider this is root.\n if (directoryPath === homePath && cwd !== homePath) {\n debug(\"Stop traversing because of considered root.\");\n if (configsExistInSubdirs) {\n const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);\n\n if (filePath) {\n emitDeprecationWarning(\n filePath,\n \"ESLINT_PERSONAL_CONFIG_SUPPRESS\"\n );\n }\n }\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n\n // Load the config on this directory.\n try {\n configArray = configArrayFactory.loadInDirectory(directoryPath);\n } catch (error) {\n /* istanbul ignore next */\n if (error.code === \"EACCES\") {\n debug(\"Stop traversing because of 'EACCES' error.\");\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n throw error;\n }\n\n if (configArray.length > 0 && configArray.isRoot()) {\n debug(\"Stop traversing because of 'root:true'.\");\n configArray.unshift(...baseConfigArray);\n return this._cacheConfig(directoryPath, configArray);\n }\n\n // Load from the ancestors and merge it.\n const parentPath = path.dirname(directoryPath);\n const parentConfigArray = parentPath && parentPath !== directoryPath\n ? this._loadConfigInAncestors(\n parentPath,\n configsExistInSubdirs || configArray.length > 0\n )\n : baseConfigArray;\n\n if (configArray.length > 0) {\n configArray.unshift(...parentConfigArray);\n } else {\n configArray = parentConfigArray;\n }\n\n // Cache and return.\n return this._cacheConfig(directoryPath, configArray);\n }\n\n /**\n * Freeze and cache a given config.\n * @param {string} directoryPath The path to a directory as a cache key.\n * @param {ConfigArray} configArray The config array as a cache value.\n * @returns {ConfigArray} The `configArray` (frozen).\n */\n _cacheConfig(directoryPath, configArray) {\n const { configCache } = internalSlotsMap.get(this);\n\n Object.freeze(configArray);\n configCache.set(directoryPath, configArray);\n\n return configArray;\n }\n\n /**\n * Finalize a given config array.\n * Concatenate `--config` and other CLI options.\n * @param {ConfigArray} configArray The parent config array.\n * @param {string} directoryPath The path to the leaf directory to find config files.\n * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {\n const {\n cliConfigArray,\n configArrayFactory,\n finalizeCache,\n useEslintrc,\n builtInRules\n } = internalSlotsMap.get(this);\n\n let finalConfigArray = finalizeCache.get(configArray);\n\n if (!finalConfigArray) {\n finalConfigArray = configArray;\n\n // Load the personal config if there are no regular config files.\n if (\n useEslintrc &&\n configArray.every(c => !c.filePath) &&\n cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.\n ) {\n const homePath = os.homedir();\n\n debug(\"Loading the config file of the home directory:\", homePath);\n\n const personalConfigArray = configArrayFactory.loadInDirectory(\n homePath,\n { name: \"PersonalConfig\" }\n );\n\n if (\n personalConfigArray.length > 0 &&\n !directoryPath.startsWith(homePath)\n ) {\n const lastElement =\n personalConfigArray[personalConfigArray.length - 1];\n\n emitDeprecationWarning(\n lastElement.filePath,\n \"ESLINT_PERSONAL_CONFIG_LOAD\"\n );\n }\n\n finalConfigArray = finalConfigArray.concat(personalConfigArray);\n }\n\n // Apply CLI options.\n if (cliConfigArray.length > 0) {\n finalConfigArray = finalConfigArray.concat(cliConfigArray);\n }\n\n // Validate rule settings and environments.\n const validator = new ConfigValidator({\n builtInRules\n });\n\n validator.validateConfigArray(finalConfigArray);\n\n // Cache it.\n Object.freeze(finalConfigArray);\n finalizeCache.set(configArray, finalConfigArray);\n\n debug(\n \"Configuration was determined: %o on %s\",\n finalConfigArray,\n directoryPath\n );\n }\n\n // At least one element (the default ignore patterns) exists.\n if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {\n throw new ConfigurationNotFoundError(directoryPath);\n }\n\n return finalConfigArray;\n }\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport { CascadingConfigArrayFactory };\n","/**\n * @fileoverview Compatibility class for flat config.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nimport createDebug from \"debug\";\nimport path from \"path\";\n\nimport environments from \"../conf/environments.js\";\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n\nconst debug = createDebug(\"eslintrc:flat-compat\");\nconst cafactory = Symbol(\"cafactory\");\n\n/**\n * Translates an ESLintRC-style config object into a flag-config-style config\n * object.\n * @param {Object} eslintrcConfig An ESLintRC-style config object.\n * @param {Object} options Options to help translate the config.\n * @param {string} options.resolveConfigRelativeTo To the directory to resolve\n * configs from.\n * @param {string} options.resolvePluginsRelativeTo The directory to resolve\n * plugins from.\n * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment\n * names to objects.\n * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor\n * names to objects.\n * @returns {Object} A flag-config-style config object.\n */\nfunction translateESLintRC(eslintrcConfig, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo,\n pluginEnvironments,\n pluginProcessors\n}) {\n\n const flatConfig = {};\n const configs = [];\n const languageOptions = {};\n const linterOptions = {};\n const keysToCopy = [\"settings\", \"rules\", \"processor\"];\n const languageOptionsKeysToCopy = [\"globals\", \"parser\", \"parserOptions\"];\n const linterOptionsKeysToCopy = [\"noInlineConfig\", \"reportUnusedDisableDirectives\"];\n\n // copy over simple translations\n for (const key of keysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig[key] = eslintrcConfig[key];\n }\n }\n\n // copy over languageOptions\n for (const key of languageOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n\n // create the languageOptions key in the flat config\n flatConfig.languageOptions = languageOptions;\n\n if (key === \"parser\") {\n debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`);\n\n if (eslintrcConfig[key].error) {\n throw eslintrcConfig[key].error;\n }\n\n languageOptions[key] = eslintrcConfig[key].definition;\n continue;\n }\n\n // clone any object values that are in the eslintrc config\n if (eslintrcConfig[key] && typeof eslintrcConfig[key] === \"object\") {\n languageOptions[key] = {\n ...eslintrcConfig[key]\n };\n } else {\n languageOptions[key] = eslintrcConfig[key];\n }\n }\n }\n\n // copy over linterOptions\n for (const key of linterOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig.linterOptions = linterOptions;\n linterOptions[key] = eslintrcConfig[key];\n }\n }\n\n // move ecmaVersion a level up\n if (languageOptions.parserOptions) {\n\n if (\"ecmaVersion\" in languageOptions.parserOptions) {\n languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion;\n delete languageOptions.parserOptions.ecmaVersion;\n }\n\n if (\"sourceType\" in languageOptions.parserOptions) {\n languageOptions.sourceType = languageOptions.parserOptions.sourceType;\n delete languageOptions.parserOptions.sourceType;\n }\n\n // check to see if we even need parserOptions anymore and remove it if not\n if (Object.keys(languageOptions.parserOptions).length === 0) {\n delete languageOptions.parserOptions;\n }\n }\n\n // overrides\n if (eslintrcConfig.criteria) {\n flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)];\n }\n\n // translate plugins\n if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === \"object\") {\n debug(`Translating plugins: ${eslintrcConfig.plugins}`);\n\n flatConfig.plugins = {};\n\n for (const pluginName of Object.keys(eslintrcConfig.plugins)) {\n\n debug(`Translating plugin: ${pluginName}`);\n debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`);\n\n const { original: plugin, error } = eslintrcConfig.plugins[pluginName];\n\n if (error) {\n throw error;\n }\n\n flatConfig.plugins[pluginName] = plugin;\n\n // create a config for any processors\n if (plugin.processors) {\n for (const processorName of Object.keys(plugin.processors)) {\n if (processorName.startsWith(\".\")) {\n debug(`Assigning processor: ${pluginName}/${processorName}`);\n\n configs.unshift({\n files: [`**/*${processorName}`],\n processor: pluginProcessors.get(`${pluginName}/${processorName}`)\n });\n }\n\n }\n }\n }\n }\n\n // translate env - must come after plugins\n if (eslintrcConfig.env && typeof eslintrcConfig.env === \"object\") {\n for (const envName of Object.keys(eslintrcConfig.env)) {\n\n // only add environments that are true\n if (eslintrcConfig.env[envName]) {\n debug(`Translating environment: ${envName}`);\n\n if (environments.has(envName)) {\n\n // built-in environments should be defined first\n configs.unshift(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...environments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n } else if (pluginEnvironments.has(envName)) {\n\n // if the environment comes from a plugin, it should come after the plugin config\n configs.push(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...pluginEnvironments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n }\n }\n }\n }\n\n // only add if there are actually keys in the config\n if (Object.keys(flatConfig).length > 0) {\n configs.push(flatConfig);\n }\n\n return configs;\n}\n\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * A compatibility class for working with configs.\n */\nclass FlatCompat {\n\n constructor({\n baseDirectory = process.cwd(),\n resolvePluginsRelativeTo = baseDirectory,\n recommendedConfig,\n allConfig\n } = {}) {\n this.baseDirectory = baseDirectory;\n this.resolvePluginsRelativeTo = resolvePluginsRelativeTo;\n this[cafactory] = new ConfigArrayFactory({\n cwd: baseDirectory,\n resolvePluginsRelativeTo,\n getEslintAllConfig: () => {\n\n if (!allConfig) {\n throw new TypeError(\"Missing parameter 'allConfig' in FlatCompat constructor.\");\n }\n\n return allConfig;\n },\n getEslintRecommendedConfig: () => {\n\n if (!recommendedConfig) {\n throw new TypeError(\"Missing parameter 'recommendedConfig' in FlatCompat constructor.\");\n }\n\n return recommendedConfig;\n }\n });\n }\n\n /**\n * Translates an ESLintRC-style config into a flag-config-style config.\n * @param {Object} eslintrcConfig The ESLintRC-style config object.\n * @returns {Object} A flag-config-style config object.\n */\n config(eslintrcConfig) {\n const eslintrcArray = this[cafactory].create(eslintrcConfig, {\n basePath: this.baseDirectory\n });\n\n const flatArray = [];\n let hasIgnorePatterns = false;\n\n eslintrcArray.forEach(configData => {\n if (configData.type === \"config\") {\n hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern;\n flatArray.push(...translateESLintRC(configData, {\n resolveConfigRelativeTo: path.join(this.baseDirectory, \"__placeholder.js\"),\n resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, \"__placeholder.js\"),\n pluginEnvironments: eslintrcArray.pluginEnvironments,\n pluginProcessors: eslintrcArray.pluginProcessors\n }));\n }\n });\n\n // combine ignorePatterns to emulate ESLintRC behavior better\n if (hasIgnorePatterns) {\n flatArray.unshift({\n ignores: [filePath => {\n\n // Compute the final config for this file.\n // This filters config array elements by `files`/`excludedFiles` then merges the elements.\n const finalConfig = eslintrcArray.extractConfig(filePath);\n\n // Test the `ignorePattern` properties of the final config.\n return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath);\n }]\n });\n }\n\n return flatArray;\n }\n\n /**\n * Translates the `env` section of an ESLintRC-style config.\n * @param {Object} envConfig The `env` section of an ESLintRC config.\n * @returns {Object[]} An array of flag-config objects representing the environments.\n */\n env(envConfig) {\n return this.config({\n env: envConfig\n });\n }\n\n /**\n * Translates the `extends` section of an ESLintRC-style config.\n * @param {...string} configsToExtend The names of the configs to load.\n * @returns {Object[]} An array of flag-config objects representing the config.\n */\n extends(...configsToExtend) {\n return this.config({\n extends: configsToExtend\n });\n }\n\n /**\n * Translates the `plugins` section of an ESLintRC-style config.\n * @param {...string} plugins The names of the plugins to load.\n * @returns {Object[]} An array of flag-config objects representing the plugins.\n */\n plugins(...plugins) {\n return this.config({\n plugins\n });\n }\n}\n\nexport { FlatCompat };\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport {\n ConfigArrayFactory,\n createContext as createConfigArrayFactoryContext,\n loadConfigFile\n} from \"./config-array-factory.js\";\n\nimport { CascadingConfigArrayFactory } from \"./cascading-config-array-factory.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array/index.js\";\nimport { ConfigDependency } from \"./config-array/config-dependency.js\";\nimport { ExtractedConfig } from \"./config-array/extracted-config.js\";\nimport { IgnorePattern } from \"./config-array/ignore-pattern.js\";\nimport { OverrideTester } from \"./config-array/override-tester.js\";\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport { FlatCompat } from \"./flat-compat.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n ConfigArray,\n createConfigArrayFactoryContext,\n CascadingConfigArrayFactory,\n ConfigArrayFactory,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs,\n environments,\n loadConfigFile,\n\n // shared\n ConfigOps,\n ConfigValidator,\n ModuleResolver,\n naming\n};\n\nexport {\n\n Legacy,\n\n FlatCompat\n\n};\n"],"names":["debug","debugOrig","path","ignore","assert","internalSlotsMap","util","minimatch","Ajv","globals","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal","Module","require","createRequire","fs","stripComments","importFresh","ModuleResolver.resolve","naming.normalizePackageName","naming.getShorthandName","os","createDebug","createConfigArrayFactoryContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA,MAAMA,OAAK,GAAGC,6BAAS,CAAC,yBAAyB,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,WAAW,EAAE;AAC5C,IAAI,IAAI,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAChC;AACA,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AACjD,QAAQ,MAAM,CAAC,GAAG,MAAM,CAAC;AACzB,QAAQ,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AACjC;AACA;AACA,QAAQ,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7C;AACA;AACA,QAAQ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AAC3E,YAAY,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;AAC/B,gBAAgB,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CA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f,IAAI,WAAW;AACf,qCAAIqB,aAA+B;AACnC,IAAI,2BAA2B;AAC/B,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,uBAAuB;AAC3B,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,MAAM;AACV;;;;;"} \ No newline at end of file diff --git a/graphql/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js b/graphql/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js deleted file mode 100644 index 597352e4..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +++ /dev/null @@ -1,532 +0,0 @@ -/** - * @fileoverview `CascadingConfigArrayFactory` class. - * - * `CascadingConfigArrayFactory` class has a responsibility: - * - * 1. Handles cascading of config files. - * - * It provides two methods: - * - * - `getConfigArrayForFile(filePath)` - * Get the corresponded configuration of a given file. This method doesn't - * throw even if the given file didn't exist. - * - `clearCache()` - * Clear the internal cache. You have to call this method when - * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends - * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.) - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import debugOrig from "debug"; -import os from "os"; -import path from "path"; - -import { ConfigArrayFactory } from "./config-array-factory.js"; -import { - ConfigArray, - ConfigDependency, - IgnorePattern -} from "./config-array/index.js"; -import ConfigValidator from "./shared/config-validator.js"; -import { emitDeprecationWarning } from "./shared/deprecation-warnings.js"; - -const debug = debugOrig("eslintrc:cascading-config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {ConfigData} [baseConfig] The config by `baseConfig` option. - * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files. - * @property {string} [cwd] The base directory to start lookup. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - * @property {string} [specificConfigPath] The value of `--config` option. - * @property {boolean} [useEslintrc] if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryInternalSlots - * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option. - * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`. - * @property {ConfigArray} cliConfigArray The config array of CLI options. - * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`. - * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {Map} configCache The cache from directory paths to config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`. - * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`. - * @property {boolean} useEslintrc if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Create the config array from `baseConfig` and `rulePaths`. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createBaseConfigArray({ - configArrayFactory, - baseConfigData, - rulePaths, - cwd, - loadRules -}) { - const baseConfigArray = configArrayFactory.create( - baseConfigData, - { name: "BaseConfig" } - ); - - /* - * Create the config array element for the default ignore patterns. - * This element has `ignorePattern` property that ignores the default - * patterns in the current working directory. - */ - baseConfigArray.unshift(configArrayFactory.create( - { ignorePatterns: IgnorePattern.DefaultPatterns }, - { name: "DefaultIgnorePattern" } - )[0]); - - /* - * Load rules `--rulesdir` option as a pseudo plugin. - * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate - * the rule's options with only information in the config array. - */ - if (rulePaths && rulePaths.length > 0) { - baseConfigArray.push({ - type: "config", - name: "--rulesdir", - filePath: "", - plugins: { - "": new ConfigDependency({ - definition: { - rules: rulePaths.reduce( - (map, rulesPath) => Object.assign( - map, - loadRules(rulesPath, cwd) - ), - {} - ) - }, - filePath: "", - id: "", - importerName: "--rulesdir", - importerPath: "" - }) - } - }); - } - - return baseConfigArray; -} - -/** - * Create the config array from CLI options. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath -}) { - const cliConfigArray = configArrayFactory.create( - cliConfigData, - { name: "CLIOptions" } - ); - - cliConfigArray.unshift( - ...(ignorePath - ? configArrayFactory.loadESLintIgnore(ignorePath) - : configArrayFactory.loadDefaultESLintIgnore()) - ); - - if (specificConfigPath) { - cliConfigArray.unshift( - ...configArrayFactory.loadFile( - specificConfigPath, - { name: "--config", basePath: cwd } - ) - ); - } - - return cliConfigArray; -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class ConfigurationNotFoundError extends Error { - - // eslint-disable-next-line jsdoc/require-description - /** - * @param {string} directoryPath The directory path. - */ - constructor(directoryPath) { - super(`No ESLint configuration found in ${directoryPath}.`); - this.messageTemplate = "no-config-found"; - this.messageData = { directoryPath }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class CascadingConfigArrayFactory { - - /** - * Initialize this enumerator. - * @param {CascadingConfigArrayFactoryOptions} options The options. - */ - constructor({ - additionalPluginPool = new Map(), - baseConfig: baseConfigData = null, - cliConfig: cliConfigData = null, - cwd = process.cwd(), - ignorePath, - resolvePluginsRelativeTo, - rulePaths = [], - specificConfigPath = null, - useEslintrc = true, - builtInRules = new Map(), - loadRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - } = {}) { - const configArrayFactory = new ConfigArrayFactory({ - additionalPluginPool, - cwd, - resolvePluginsRelativeTo, - builtInRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - }); - - internalSlotsMap.set(this, { - baseConfigArray: createBaseConfigArray({ - baseConfigData, - configArrayFactory, - cwd, - rulePaths, - loadRules - }), - baseConfigData, - cliConfigArray: createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath - }), - cliConfigData, - configArrayFactory, - configCache: new Map(), - cwd, - finalizeCache: new WeakMap(), - ignorePath, - rulePaths, - specificConfigPath, - useEslintrc, - builtInRules, - loadRules - }); - } - - /** - * The path to the current working directory. - * This is used by tests. - * @type {string} - */ - get cwd() { - const { cwd } = internalSlotsMap.get(this); - - return cwd; - } - - /** - * Get the config array of a given file. - * If `filePath` was not given, it returns the config which contains only - * `baseConfigData` and `cliConfigData`. - * @param {string} [filePath] The file path to a file. - * @param {Object} [options] The options. - * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The config array of the file. - */ - getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) { - const { - baseConfigArray, - cliConfigArray, - cwd - } = internalSlotsMap.get(this); - - if (!filePath) { - return new ConfigArray(...baseConfigArray, ...cliConfigArray); - } - - const directoryPath = path.dirname(path.resolve(cwd, filePath)); - - debug(`Load config files for ${directoryPath}.`); - - return this._finalizeConfigArray( - this._loadConfigInAncestors(directoryPath), - directoryPath, - ignoreNotFoundError - ); - } - - /** - * Set the config data to override all configs. - * Require to call `clearCache()` method after this method is called. - * @param {ConfigData} configData The config data to override all configs. - * @returns {void} - */ - setOverrideConfig(configData) { - const slots = internalSlotsMap.get(this); - - slots.cliConfigData = configData; - } - - /** - * Clear config cache. - * @returns {void} - */ - clearCache() { - const slots = internalSlotsMap.get(this); - - slots.baseConfigArray = createBaseConfigArray(slots); - slots.cliConfigArray = createCLIConfigArray(slots); - slots.configCache.clear(); - } - - /** - * Load and normalize config files from the ancestor directories. - * @param {string} directoryPath The path to a leaf directory. - * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories. - * @returns {ConfigArray} The loaded config. - * @private - */ - _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) { - const { - baseConfigArray, - configArrayFactory, - configCache, - cwd, - useEslintrc - } = internalSlotsMap.get(this); - - if (!useEslintrc) { - return baseConfigArray; - } - - let configArray = configCache.get(directoryPath); - - // Hit cache. - if (configArray) { - debug(`Cache hit: ${directoryPath}.`); - return configArray; - } - debug(`No cache found: ${directoryPath}.`); - - const homePath = os.homedir(); - - // Consider this is root. - if (directoryPath === homePath && cwd !== homePath) { - debug("Stop traversing because of considered root."); - if (configsExistInSubdirs) { - const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath); - - if (filePath) { - emitDeprecationWarning( - filePath, - "ESLINT_PERSONAL_CONFIG_SUPPRESS" - ); - } - } - return this._cacheConfig(directoryPath, baseConfigArray); - } - - // Load the config on this directory. - try { - configArray = configArrayFactory.loadInDirectory(directoryPath); - } catch (error) { - /* istanbul ignore next */ - if (error.code === "EACCES") { - debug("Stop traversing because of 'EACCES' error."); - return this._cacheConfig(directoryPath, baseConfigArray); - } - throw error; - } - - if (configArray.length > 0 && configArray.isRoot()) { - debug("Stop traversing because of 'root:true'."); - configArray.unshift(...baseConfigArray); - return this._cacheConfig(directoryPath, configArray); - } - - // Load from the ancestors and merge it. - const parentPath = path.dirname(directoryPath); - const parentConfigArray = parentPath && parentPath !== directoryPath - ? this._loadConfigInAncestors( - parentPath, - configsExistInSubdirs || configArray.length > 0 - ) - : baseConfigArray; - - if (configArray.length > 0) { - configArray.unshift(...parentConfigArray); - } else { - configArray = parentConfigArray; - } - - // Cache and return. - return this._cacheConfig(directoryPath, configArray); - } - - /** - * Freeze and cache a given config. - * @param {string} directoryPath The path to a directory as a cache key. - * @param {ConfigArray} configArray The config array as a cache value. - * @returns {ConfigArray} The `configArray` (frozen). - */ - _cacheConfig(directoryPath, configArray) { - const { configCache } = internalSlotsMap.get(this); - - Object.freeze(configArray); - configCache.set(directoryPath, configArray); - - return configArray; - } - - /** - * Finalize a given config array. - * Concatenate `--config` and other CLI options. - * @param {ConfigArray} configArray The parent config array. - * @param {string} directoryPath The path to the leaf directory to find config files. - * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The loaded config. - * @private - */ - _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) { - const { - cliConfigArray, - configArrayFactory, - finalizeCache, - useEslintrc, - builtInRules - } = internalSlotsMap.get(this); - - let finalConfigArray = finalizeCache.get(configArray); - - if (!finalConfigArray) { - finalConfigArray = configArray; - - // Load the personal config if there are no regular config files. - if ( - useEslintrc && - configArray.every(c => !c.filePath) && - cliConfigArray.every(c => !c.filePath) // `--config` option can be a file. - ) { - const homePath = os.homedir(); - - debug("Loading the config file of the home directory:", homePath); - - const personalConfigArray = configArrayFactory.loadInDirectory( - homePath, - { name: "PersonalConfig" } - ); - - if ( - personalConfigArray.length > 0 && - !directoryPath.startsWith(homePath) - ) { - const lastElement = - personalConfigArray[personalConfigArray.length - 1]; - - emitDeprecationWarning( - lastElement.filePath, - "ESLINT_PERSONAL_CONFIG_LOAD" - ); - } - - finalConfigArray = finalConfigArray.concat(personalConfigArray); - } - - // Apply CLI options. - if (cliConfigArray.length > 0) { - finalConfigArray = finalConfigArray.concat(cliConfigArray); - } - - // Validate rule settings and environments. - const validator = new ConfigValidator({ - builtInRules - }); - - validator.validateConfigArray(finalConfigArray); - - // Cache it. - Object.freeze(finalConfigArray); - finalizeCache.set(configArray, finalConfigArray); - - debug( - "Configuration was determined: %o on %s", - finalConfigArray, - directoryPath - ); - } - - // At least one element (the default ignore patterns) exists. - if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) { - throw new ConfigurationNotFoundError(directoryPath); - } - - return finalConfigArray; - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { CascadingConfigArrayFactory }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array-factory.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array-factory.js deleted file mode 100644 index e4b18ebd..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array-factory.js +++ /dev/null @@ -1,1155 +0,0 @@ -/** - * @fileoverview The factory of `ConfigArray` objects. - * - * This class provides methods to create `ConfigArray` instance. - * - * - `create(configData, options)` - * Create a `ConfigArray` instance from a config data. This is to handle CLI - * options except `--config`. - * - `loadFile(filePath, options)` - * Create a `ConfigArray` instance from a config file. This is to handle - * `--config` option. If the file was not found, throws the following error: - * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error. - * - If the filename was `package.json`, an IO error or an - * `ESLINT_CONFIG_FIELD_NOT_FOUND` error. - * - Otherwise, an IO error such as `ENOENT`. - * - `loadInDirectory(directoryPath, options)` - * Create a `ConfigArray` instance from a config file which is on a given - * directory. This tries to load `.eslintrc.*` or `package.json`. If not - * found, returns an empty `ConfigArray`. - * - `loadESLintIgnore(filePath)` - * Create a `ConfigArray` instance from a config file that is `.eslintignore` - * format. This is to handle `--ignore-path` option. - * - `loadDefaultESLintIgnore()` - * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in - * the current working directory. - * - * `ConfigArrayFactory` class has the responsibility that loads configuration - * files, including loading `extends`, `parser`, and `plugins`. The created - * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`. - * - * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class - * handles cascading and hierarchy. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import debugOrig from "debug"; -import fs from "fs"; -import importFresh from "import-fresh"; -import { createRequire } from "module"; -import path from "path"; -import stripComments from "strip-json-comments"; - -import { - ConfigArray, - ConfigDependency, - IgnorePattern, - OverrideTester -} from "./config-array/index.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import * as ModuleResolver from "./shared/relative-module-resolver.js"; - -const require = createRequire(import.meta.url); - -const debug = debugOrig("eslintrc:config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const configFilenames = [ - ".eslintrc.js", - ".eslintrc.cjs", - ".eslintrc.yaml", - ".eslintrc.yml", - ".eslintrc.json", - ".eslintrc", - "package.json" -]; - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {ConfigArray[0]} ConfigArrayElement */ - -/** - * @typedef {Object} ConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {string} [cwd] The path to the current working directory. - * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cwd The path to the current working directory. - * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {string} pluginBasePath The base path to resolve plugins. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** @type {WeakMap} */ -const normalizedPlugins = new WeakMap(); - -/** - * Check if a given string is a file path. - * @param {string} nameOrPath A module name or file path. - * @returns {boolean} `true` if the `nameOrPath` is a file path. - */ -function isFilePath(nameOrPath) { - return ( - /^\.{1,2}[/\\]/u.test(nameOrPath) || - path.isAbsolute(nameOrPath) - ); -} - -/** - * Convenience wrapper for synchronously reading file contents. - * @param {string} filePath The filename to read. - * @returns {string} The file contents, with the BOM removed. - * @private - */ -function readFile(filePath) { - return fs.readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); -} - -/** - * Loads a YAML configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadYAMLConfigFile(filePath) { - debug(`Loading YAML config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require("js-yaml"); - - try { - - // empty YAML file can be null, so always use - return yaml.load(readFile(filePath)) || {}; - } catch (e) { - debug(`Error reading YAML file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JSON configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSONConfigFile(filePath) { - debug(`Loading JSON config file: ${filePath}`); - - try { - return JSON.parse(stripComments(readFile(filePath))); - } catch (e) { - debug(`Error reading JSON file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - e.messageTemplate = "failed-to-read-json"; - e.messageData = { - path: filePath, - message: e.message - }; - throw e; - } -} - -/** - * Loads a legacy (.eslintrc) configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadLegacyConfigFile(filePath) { - debug(`Loading legacy config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require("js-yaml"); - - try { - return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {}; - } catch (e) { - debug("Error reading YAML file: %s\n%o", filePath, e); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JavaScript configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSConfigFile(filePath) { - debug(`Loading JS config file: ${filePath}`); - try { - return importFresh(filePath); - } catch (e) { - debug(`Error reading JavaScript file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a configuration from a package.json file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadPackageJSONConfigFile(filePath) { - debug(`Loading package.json config file: ${filePath}`); - try { - const packageData = loadJSONConfigFile(filePath); - - if (!Object.hasOwnProperty.call(packageData, "eslintConfig")) { - throw Object.assign( - new Error("package.json file doesn't have 'eslintConfig' field."), - { code: "ESLINT_CONFIG_FIELD_NOT_FOUND" } - ); - } - - return packageData.eslintConfig; - } catch (e) { - debug(`Error reading package.json file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a `.eslintignore` from a file. - * @param {string} filePath The filename to load. - * @returns {string[]} The ignore patterns from the file. - * @private - */ -function loadESLintIgnoreFile(filePath) { - debug(`Loading .eslintignore file: ${filePath}`); - - try { - return readFile(filePath) - .split(/\r?\n/gu) - .filter(line => line.trim() !== "" && !line.startsWith("#")); - } catch (e) { - debug(`Error reading .eslintignore file: ${filePath}`); - e.message = `Cannot read .eslintignore file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Creates an error to notify about a missing config to extend from. - * @param {string} configName The name of the missing config. - * @param {string} importerName The name of the config that imported the missing config - * @param {string} messageTemplate The text template to source error strings from. - * @returns {Error} The error object to throw - * @private - */ -function configInvalidError(configName, importerName, messageTemplate) { - return Object.assign( - new Error(`Failed to load config "${configName}" to extend from.`), - { - messageTemplate, - messageData: { configName, importerName } - } - ); -} - -/** - * Loads a configuration file regardless of the source. Inspects the file path - * to determine the correctly way to load the config file. - * @param {string} filePath The path to the configuration. - * @returns {ConfigData|null} The configuration information. - * @private - */ -function loadConfigFile(filePath) { - switch (path.extname(filePath)) { - case ".js": - case ".cjs": - return loadJSConfigFile(filePath); - - case ".json": - if (path.basename(filePath) === "package.json") { - return loadPackageJSONConfigFile(filePath); - } - return loadJSONConfigFile(filePath); - - case ".yaml": - case ".yml": - return loadYAMLConfigFile(filePath); - - default: - return loadLegacyConfigFile(filePath); - } -} - -/** - * Write debug log. - * @param {string} request The requested module name. - * @param {string} relativeTo The file path to resolve the request relative to. - * @param {string} filePath The resolved file path. - * @returns {void} - */ -function writeDebugLogForLoading(request, relativeTo, filePath) { - /* istanbul ignore next */ - if (debug.enabled) { - let nameAndVersion = null; - - try { - const packageJsonPath = ModuleResolver.resolve( - `${request}/package.json`, - relativeTo - ); - const { version = "unknown" } = require(packageJsonPath); - - nameAndVersion = `${request}@${version}`; - } catch (error) { - debug("package.json was not found:", error.message); - nameAndVersion = request; - } - - debug("Loaded: %s (%s)", nameAndVersion, filePath); - } -} - -/** - * Create a new context with default values. - * @param {ConfigArrayFactoryInternalSlots} slots The internal slots. - * @param {"config" | "ignore" | "implicit-processor" | undefined} providedType The type of the current configuration. Default is `"config"`. - * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`. - * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string. - * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`. - * @returns {ConfigArrayFactoryLoadingContext} The created context. - */ -function createContext( - { cwd, resolvePluginsRelativeTo }, - providedType, - providedName, - providedFilePath, - providedMatchBasePath -) { - const filePath = providedFilePath - ? path.resolve(cwd, providedFilePath) - : ""; - const matchBasePath = - (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) || - (filePath && path.dirname(filePath)) || - cwd; - const name = - providedName || - (filePath && path.relative(cwd, filePath)) || - ""; - const pluginBasePath = - resolvePluginsRelativeTo || - (filePath && path.dirname(filePath)) || - cwd; - const type = providedType || "config"; - - return { filePath, matchBasePath, name, pluginBasePath, type }; -} - -/** - * Normalize a given plugin. - * - Ensure the object to have four properties: configs, environments, processors, and rules. - * - Ensure the object to not have other properties. - * @param {Plugin} plugin The plugin to normalize. - * @returns {Plugin} The normalized plugin. - */ -function normalizePlugin(plugin) { - - // first check the cache - let normalizedPlugin = normalizedPlugins.get(plugin); - - if (normalizedPlugin) { - return normalizedPlugin; - } - - normalizedPlugin = { - configs: plugin.configs || {}, - environments: plugin.environments || {}, - processors: plugin.processors || {}, - rules: plugin.rules || {} - }; - - // save the reference for later - normalizedPlugins.set(plugin, normalizedPlugin); - - return normalizedPlugin; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The factory of `ConfigArray` objects. - */ -class ConfigArrayFactory { - - /** - * Initialize this instance. - * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins. - */ - constructor({ - additionalPluginPool = new Map(), - cwd = process.cwd(), - resolvePluginsRelativeTo, - builtInRules, - resolver = ModuleResolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = {}) { - internalSlotsMap.set(this, { - additionalPluginPool, - cwd, - resolvePluginsRelativeTo: - resolvePluginsRelativeTo && - path.resolve(cwd, resolvePluginsRelativeTo), - builtInRules, - resolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - }); - } - - /** - * Create `ConfigArray` instance from a config data. - * @param {ConfigData|null} configData The config data to create. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.filePath] The path to this config data. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - create(configData, { basePath, filePath, name } = {}) { - if (!configData) { - return new ConfigArray(); - } - - const slots = internalSlotsMap.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - const elements = this._normalizeConfigData(configData, ctx); - - return new ConfigArray(...elements); - } - - /** - * Load a config file. - * @param {string} filePath The path to a config file. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - loadFile(filePath, { basePath, name } = {}) { - const slots = internalSlotsMap.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - - return new ConfigArray(...this._loadConfigData(ctx)); - } - - /** - * Load the config file on a given directory if exists. - * @param {string} directoryPath The path to a directory. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadInDirectory(directoryPath, { basePath, name } = {}) { - const slots = internalSlotsMap.get(this); - - for (const filename of configFilenames) { - const ctx = createContext( - slots, - "config", - name, - path.join(directoryPath, filename), - basePath - ); - - if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) { - let configData; - - try { - configData = loadConfigFile(ctx.filePath); - } catch (error) { - if (!error || error.code !== "ESLINT_CONFIG_FIELD_NOT_FOUND") { - throw error; - } - } - - if (configData) { - debug(`Config file found: ${ctx.filePath}`); - return new ConfigArray( - ...this._normalizeConfigData(configData, ctx) - ); - } - } - } - - debug(`Config file not found on ${directoryPath}`); - return new ConfigArray(); - } - - /** - * Check if a config file on a given directory exists or not. - * @param {string} directoryPath The path to a directory. - * @returns {string | null} The path to the found config file. If not found then null. - */ - static getPathToConfigFileInDirectory(directoryPath) { - for (const filename of configFilenames) { - const filePath = path.join(directoryPath, filename); - - if (fs.existsSync(filePath)) { - if (filename === "package.json") { - try { - loadPackageJSONConfigFile(filePath); - return filePath; - } catch { /* ignore */ } - } else { - return filePath; - } - } - } - return null; - } - - /** - * Load `.eslintignore` file. - * @param {string} filePath The path to a `.eslintignore` file to load. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadESLintIgnore(filePath) { - const slots = internalSlotsMap.get(this); - const ctx = createContext( - slots, - "ignore", - void 0, - filePath, - slots.cwd - ); - const ignorePatterns = loadESLintIgnoreFile(ctx.filePath); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(ignorePatterns, ctx) - ); - } - - /** - * Load `.eslintignore` file in the current working directory. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadDefaultESLintIgnore() { - const slots = internalSlotsMap.get(this); - const eslintIgnorePath = path.resolve(slots.cwd, ".eslintignore"); - const packageJsonPath = path.resolve(slots.cwd, "package.json"); - - if (fs.existsSync(eslintIgnorePath)) { - return this.loadESLintIgnore(eslintIgnorePath); - } - if (fs.existsSync(packageJsonPath)) { - const data = loadJSONConfigFile(packageJsonPath); - - if (Object.hasOwnProperty.call(data, "eslintIgnore")) { - if (!Array.isArray(data.eslintIgnore)) { - throw new Error("Package.json eslintIgnore property requires an array of paths"); - } - const ctx = createContext( - slots, - "ignore", - "eslintIgnore in package.json", - packageJsonPath, - slots.cwd - ); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx) - ); - } - } - - return new ConfigArray(); - } - - /** - * Load a given config file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} Loaded config. - * @private - */ - _loadConfigData(ctx) { - return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx); - } - - /** - * Normalize a given `.eslintignore` data to config array elements. - * @param {string[]} ignorePatterns The patterns to ignore files. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeESLintIgnoreData(ignorePatterns, ctx) { - const elements = this._normalizeObjectConfigData( - { ignorePatterns }, - ctx - ); - - // Set `ignorePattern.loose` flag for backward compatibility. - for (const element of elements) { - if (element.ignorePattern) { - element.ignorePattern.loose = true; - } - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _normalizeConfigData(configData, ctx) { - const validator = new ConfigValidator(); - - validator.validateConfigSchema(configData, ctx.name || ctx.filePath); - return this._normalizeObjectConfigData(configData, ctx); - } - - /** - * Normalize a given config to an array. - * @param {ConfigData|OverrideConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigData(configData, ctx) { - const { files, excludedFiles, ...configBody } = configData; - const criteria = OverrideTester.create( - files, - excludedFiles, - ctx.matchBasePath - ); - const elements = this._normalizeObjectConfigDataBody(configBody, ctx); - - // Apply the criteria to every element. - for (const element of elements) { - - /* - * Merge the criteria. - * This is for the `overrides` entries that came from the - * configurations of `overrides[].extends`. - */ - element.criteria = OverrideTester.and(criteria, element.criteria); - - /* - * Remove `root` property to ignore `root` settings which came from - * `extends` in `overrides`. - */ - if (element.criteria) { - element.root = void 0; - } - - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigDataBody( - { - env, - extends: extend, - globals, - ignorePatterns, - noInlineConfig, - parser: parserName, - parserOptions, - plugins: pluginList, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings, - overrides: overrideList = [] - }, - ctx - ) { - const extendList = Array.isArray(extend) ? extend : [extend]; - const ignorePattern = ignorePatterns && new IgnorePattern( - Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns], - ctx.matchBasePath - ); - - // Flatten `extends`. - for (const extendName of extendList.filter(Boolean)) { - yield* this._loadExtends(extendName, ctx); - } - - // Load parser & plugins. - const parser = parserName && this._loadParser(parserName, ctx); - const plugins = pluginList && this._loadPlugins(pluginList, ctx); - - // Yield pseudo config data for file extension processors. - if (plugins) { - yield* this._takeFileExtensionProcessors(plugins, ctx); - } - - // Yield the config data except `extends` and `overrides`. - yield { - - // Debug information. - type: ctx.type, - name: ctx.name, - filePath: ctx.filePath, - - // Config data. - criteria: null, - env, - globals, - ignorePattern, - noInlineConfig, - parser, - parserOptions, - plugins, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings - }; - - // Flatten `overries`. - for (let i = 0; i < overrideList.length; ++i) { - yield* this._normalizeObjectConfigData( - overrideList[i], - { ...ctx, name: `${ctx.name}#overrides[${i}]` } - ); - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtends(extendName, ctx) { - debug("Loading {extends:%j} relative to %s", extendName, ctx.filePath); - try { - if (extendName.startsWith("eslint:")) { - return this._loadExtendedBuiltInConfig(extendName, ctx); - } - if (extendName.startsWith("plugin:")) { - return this._loadExtendedPluginConfig(extendName, ctx); - } - return this._loadExtendedShareableConfig(extendName, ctx); - } catch (error) { - error.message += `\nReferenced from: ${ctx.filePath || ctx.name}`; - throw error; - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedBuiltInConfig(extendName, ctx) { - const { - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = internalSlotsMap.get(this); - - if (extendName === "eslint:recommended") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintRecommendedConfig) { - if (typeof getEslintRecommendedConfig !== "function") { - throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`); - } - return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintRecommendedPath - }); - } - if (extendName === "eslint:all") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintAllConfig) { - if (typeof getEslintAllConfig !== "function") { - throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`); - } - return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintAllPath - }); - } - - throw configInvalidError(extendName, ctx.name, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedPluginConfig(extendName, ctx) { - const slashIndex = extendName.lastIndexOf("/"); - - if (slashIndex === -1) { - throw configInvalidError(extendName, ctx.filePath, "plugin-invalid"); - } - - const pluginName = extendName.slice("plugin:".length, slashIndex); - const configName = extendName.slice(slashIndex + 1); - - if (isFilePath(pluginName)) { - throw new Error("'extends' cannot use a file path for plugins."); - } - - const plugin = this._loadPlugin(pluginName, ctx); - const configData = - plugin.definition && - plugin.definition.configs[configName]; - - if (configData) { - return this._normalizeConfigData(configData, { - ...ctx, - filePath: plugin.filePath || ctx.filePath, - name: `${ctx.name} » plugin:${plugin.id}/${configName}` - }); - } - - throw plugin.error || configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedShareableConfig(extendName, ctx) { - const { cwd, resolver } = internalSlotsMap.get(this); - const relativeTo = ctx.filePath || path.join(cwd, "__placeholder__.js"); - let request; - - if (isFilePath(extendName)) { - request = extendName; - } else if (extendName.startsWith(".")) { - request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior. - } else { - request = naming.normalizePackageName( - extendName, - "eslint-config" - ); - } - - let filePath; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (error) { - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - throw configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - throw error; - } - - writeDebugLogForLoading(request, relativeTo, filePath); - return this._loadConfigData({ - ...ctx, - filePath, - name: `${ctx.name} » ${request}` - }); - } - - /** - * Load given plugins. - * @param {string[]} names The plugin names to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {Record} The loaded parser. - * @private - */ - _loadPlugins(names, ctx) { - return names.reduce((map, name) => { - if (isFilePath(name)) { - throw new Error("Plugins array cannot includes file paths."); - } - const plugin = this._loadPlugin(name, ctx); - - map[plugin.id] = plugin; - - return map; - }, {}); - } - - /** - * Load a given parser. - * @param {string} nameOrPath The package name or the path to a parser file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentParser} The loaded parser. - */ - _loadParser(nameOrPath, ctx) { - debug("Loading parser %j from %s", nameOrPath, ctx.filePath); - - const { cwd, resolver } = internalSlotsMap.get(this); - const relativeTo = ctx.filePath || path.join(cwd, "__placeholder__.js"); - - try { - const filePath = resolver.resolve(nameOrPath, relativeTo); - - writeDebugLogForLoading(nameOrPath, relativeTo, filePath); - - return new ConfigDependency({ - definition: require(filePath), - filePath, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (error) { - - // If the parser name is "espree", load the espree of ESLint. - if (nameOrPath === "espree") { - debug("Fallback espree."); - return new ConfigDependency({ - definition: require("espree"), - filePath: require.resolve("espree"), - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - debug("Failed to load parser '%s' declared in '%s'.", nameOrPath, ctx.name); - error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`; - - return new ConfigDependency({ - error, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - } - - /** - * Load a given plugin. - * @param {string} name The plugin name to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentPlugin} The loaded plugin. - * @private - */ - _loadPlugin(name, ctx) { - debug("Loading plugin %j from %s", name, ctx.filePath); - - const { additionalPluginPool, resolver } = internalSlotsMap.get(this); - const request = naming.normalizePackageName(name, "eslint-plugin"); - const id = naming.getShorthandName(request, "eslint-plugin"); - const relativeTo = path.join(ctx.pluginBasePath, "__placeholder__.js"); - - if (name.match(/\s+/u)) { - const error = Object.assign( - new Error(`Whitespace found in plugin name '${name}'`), - { - messageTemplate: "whitespace-found", - messageData: { pluginName: request } - } - ); - - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - // Check for additional pool. - const plugin = - additionalPluginPool.get(request) || - additionalPluginPool.get(id); - - if (plugin) { - return new ConfigDependency({ - definition: normalizePlugin(plugin), - original: plugin, - filePath: "", // It's unknown where the plugin came from. - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - let filePath; - let error; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (resolveError) { - error = resolveError; - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - error.messageTemplate = "plugin-missing"; - error.messageData = { - pluginName: request, - resolvePluginsRelativeTo: ctx.pluginBasePath, - importerName: ctx.name - }; - } - } - - if (filePath) { - try { - writeDebugLogForLoading(request, relativeTo, filePath); - - const startTime = Date.now(); - const pluginDefinition = require(filePath); - - debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`); - - return new ConfigDependency({ - definition: normalizePlugin(pluginDefinition), - original: pluginDefinition, - filePath, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (loadError) { - error = loadError; - } - } - - debug("Failed to load plugin '%s' declared in '%s'.", name, ctx.name); - error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`; - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - /** - * Take file expression processors as config array elements. - * @param {Record} plugins The plugin definitions. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The config array elements of file expression processors. - * @private - */ - *_takeFileExtensionProcessors(plugins, ctx) { - for (const pluginId of Object.keys(plugins)) { - const processors = - plugins[pluginId] && - plugins[pluginId].definition && - plugins[pluginId].definition.processors; - - if (!processors) { - continue; - } - - for (const processorId of Object.keys(processors)) { - if (processorId.startsWith(".")) { - yield* this._normalizeObjectConfigData( - { - files: [`*${processorId}`], - processor: `${pluginId}/${processorId}` - }, - { - ...ctx, - type: "implicit-processor", - name: `${ctx.name}#processors["${pluginId}/${processorId}"]` - } - ); - } - } - } - } -} - -export { - ConfigArrayFactory, - createContext, - loadConfigFile -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-array.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-array.js deleted file mode 100644 index 5766fc46..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +++ /dev/null @@ -1,510 +0,0 @@ -/** - * @fileoverview `ConfigArray` class. - * - * `ConfigArray` class expresses the full of a configuration. It has the entry - * config file, base config files that were extended, loaded parsers, and loaded - * plugins. - * - * `ConfigArray` class provides three properties and two methods. - * - * - `pluginEnvironments` - * - `pluginProcessors` - * - `pluginRules` - * The `Map` objects that contain the members of all plugins that this - * config array contains. Those map objects don't have mutation methods. - * Those keys are the member ID such as `pluginId/memberName`. - * - `isRoot()` - * If `true` then this configuration has `root:true` property. - * - `extractConfig(filePath)` - * Extract the final configuration for a given file. This means merging - * every config array element which that `criteria` property matched. The - * `filePath` argument must be an absolute path. - * - * `ConfigArrayFactory` provides the loading logic of config files. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import { ExtractedConfig } from "./extracted-config.js"; -import { IgnorePattern } from "./ignore-pattern.js"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../../shared/types").Rule} Rule */ -/** @typedef {import("../../shared/types").Plugin} Plugin */ -/** @typedef {import("../../shared/types").Processor} Processor */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {import("./override-tester")["OverrideTester"]} OverrideTester */ - -/** - * @typedef {Object} ConfigArrayElement - * @property {string} name The name of this config element. - * @property {string} filePath The path to the source file of this config element. - * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element. - * @property {Record|undefined} env The environment settings. - * @property {Record|undefined} globals The global variable settings. - * @property {IgnorePattern|undefined} ignorePattern The ignore patterns. - * @property {boolean|undefined} noInlineConfig The flag that disables directive comments. - * @property {DependentParser|undefined} parser The parser loader. - * @property {Object|undefined} parserOptions The parser options. - * @property {Record|undefined} plugins The plugin loaders. - * @property {string|undefined} processor The processor name to refer plugin's processor. - * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments. - * @property {boolean|undefined} root The flag to express root. - * @property {Record|undefined} rules The rule settings - * @property {Object|undefined} settings The shared settings. - * @property {"config" | "ignore" | "implicit-processor"} type The element type. - */ - -/** - * @typedef {Object} ConfigArrayInternalSlots - * @property {Map} cache The cache to extract configs. - * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition. - * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition. - * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new class extends WeakMap { - get(key) { - let value = super.get(key); - - if (!value) { - value = { - cache: new Map(), - envMap: null, - processorMap: null, - ruleMap: null - }; - super.set(key, value); - } - - return value; - } -}(); - -/** - * Get the indices which are matched to a given file. - * @param {ConfigArrayElement[]} elements The elements. - * @param {string} filePath The path to a target file. - * @returns {number[]} The indices. - */ -function getMatchedIndices(elements, filePath) { - const indices = []; - - for (let i = elements.length - 1; i >= 0; --i) { - const element = elements[i]; - - if (!element.criteria || (filePath && element.criteria.test(filePath))) { - indices.push(i); - } - } - - return indices; -} - -/** - * Check if a value is a non-null object. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(x) { - return typeof x === "object" && x !== null; -} - -/** - * Merge two objects. - * - * Assign every property values of `y` to `x` if `x` doesn't have the property. - * If `x`'s property value is an object, it does recursive. - * @param {Object} target The destination to merge - * @param {Object|undefined} source The source to merge. - * @returns {void} - */ -function mergeWithoutOverwrite(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - - if (isNonNullObject(target[key])) { - mergeWithoutOverwrite(target[key], source[key]); - } else if (target[key] === void 0) { - if (isNonNullObject(source[key])) { - target[key] = Array.isArray(source[key]) ? [] : {}; - mergeWithoutOverwrite(target[key], source[key]); - } else if (source[key] !== void 0) { - target[key] = source[key]; - } - } - } -} - -/** - * The error for plugin conflicts. - */ -class PluginConflictError extends Error { - - /** - * Initialize this error object. - * @param {string} pluginId The plugin ID. - * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins. - */ - constructor(pluginId, plugins) { - super(`Plugin "${pluginId}" was conflicted between ${plugins.map(p => `"${p.importerName}"`).join(" and ")}.`); - this.messageTemplate = "plugin-conflict"; - this.messageData = { pluginId, plugins }; - } -} - -/** - * Merge plugins. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergePlugins(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetValue = target[key]; - const sourceValue = source[key]; - - // Adopt the plugin which was found at first. - if (targetValue === void 0) { - if (sourceValue.error) { - throw sourceValue.error; - } - target[key] = sourceValue; - } else if (sourceValue.filePath !== targetValue.filePath) { - throw new PluginConflictError(key, [ - { - filePath: targetValue.filePath, - importerName: targetValue.importerName - }, - { - filePath: sourceValue.filePath, - importerName: sourceValue.importerName - } - ]); - } - } -} - -/** - * Merge rule configs. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergeRuleConfigs(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetDef = target[key]; - const sourceDef = source[key]; - - // Adopt the rule config which was found at first. - if (targetDef === void 0) { - if (Array.isArray(sourceDef)) { - target[key] = [...sourceDef]; - } else { - target[key] = [sourceDef]; - } - - /* - * If the first found rule config is severity only and the current rule - * config has options, merge the severity and the options. - */ - } else if ( - targetDef.length === 1 && - Array.isArray(sourceDef) && - sourceDef.length >= 2 - ) { - targetDef.push(...sourceDef.slice(1)); - } - } -} - -/** - * Create the extracted config. - * @param {ConfigArray} instance The config elements. - * @param {number[]} indices The indices to use. - * @returns {ExtractedConfig} The extracted config. - */ -function createConfig(instance, indices) { - const config = new ExtractedConfig(); - const ignorePatterns = []; - - // Merge elements. - for (const index of indices) { - const element = instance[index]; - - // Adopt the parser which was found at first. - if (!config.parser && element.parser) { - if (element.parser.error) { - throw element.parser.error; - } - config.parser = element.parser; - } - - // Adopt the processor which was found at first. - if (!config.processor && element.processor) { - config.processor = element.processor; - } - - // Adopt the noInlineConfig which was found at first. - if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) { - config.noInlineConfig = element.noInlineConfig; - config.configNameOfNoInlineConfig = element.name; - } - - // Adopt the reportUnusedDisableDirectives which was found at first. - if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) { - config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives; - } - - // Collect ignorePatterns - if (element.ignorePattern) { - ignorePatterns.push(element.ignorePattern); - } - - // Merge others. - mergeWithoutOverwrite(config.env, element.env); - mergeWithoutOverwrite(config.globals, element.globals); - mergeWithoutOverwrite(config.parserOptions, element.parserOptions); - mergeWithoutOverwrite(config.settings, element.settings); - mergePlugins(config.plugins, element.plugins); - mergeRuleConfigs(config.rules, element.rules); - } - - // Create the predicate function for ignore patterns. - if (ignorePatterns.length > 0) { - config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse()); - } - - return config; -} - -/** - * Collect definitions. - * @template T, U - * @param {string} pluginId The plugin ID for prefix. - * @param {Record} defs The definitions to collect. - * @param {Map} map The map to output. - * @returns {void} - */ -function collect(pluginId, defs, map) { - if (defs) { - const prefix = pluginId && `${pluginId}/`; - - for (const [key, value] of Object.entries(defs)) { - map.set(`${prefix}${key}`, value); - } - } -} - -/** - * Delete the mutation methods from a given map. - * @param {Map} map The map object to delete. - * @returns {void} - */ -function deleteMutationMethods(map) { - Object.defineProperties(map, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - set: { configurable: true, value: void 0 } - }); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArrayElement[]} elements The config elements. - * @param {ConfigArrayInternalSlots} slots The internal slots. - * @returns {void} - */ -function initPluginMemberMaps(elements, slots) { - const processed = new Set(); - - slots.envMap = new Map(); - slots.processorMap = new Map(); - slots.ruleMap = new Map(); - - for (const element of elements) { - if (!element.plugins) { - continue; - } - - for (const [pluginId, value] of Object.entries(element.plugins)) { - const plugin = value.definition; - - if (!plugin || processed.has(pluginId)) { - continue; - } - processed.add(pluginId); - - collect(pluginId, plugin.environments, slots.envMap); - collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap); - } - } - - deleteMutationMethods(slots.envMap); - deleteMutationMethods(slots.processorMap); - deleteMutationMethods(slots.ruleMap); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArray} instance The config elements. - * @returns {ConfigArrayInternalSlots} The extracted config. - */ -function ensurePluginMemberMaps(instance) { - const slots = internalSlotsMap.get(instance); - - if (!slots.ruleMap) { - initPluginMemberMaps(instance, slots); - } - - return slots; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The Config Array. - * - * `ConfigArray` instance contains all settings, parsers, and plugins. - * You need to call `ConfigArray#extractConfig(filePath)` method in order to - * extract, merge and get only the config data which is related to an arbitrary - * file. - * @extends {Array} - */ -class ConfigArray extends Array { - - /** - * Get the plugin environments. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin environments. - */ - get pluginEnvironments() { - return ensurePluginMemberMaps(this).envMap; - } - - /** - * Get the plugin processors. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin processors. - */ - get pluginProcessors() { - return ensurePluginMemberMaps(this).processorMap; - } - - /** - * Get the plugin rules. - * The returned map cannot be mutated. - * @returns {ReadonlyMap} The plugin rules. - */ - get pluginRules() { - return ensurePluginMemberMaps(this).ruleMap; - } - - /** - * Check if this config has `root` flag. - * @returns {boolean} `true` if this config array is root. - */ - isRoot() { - for (let i = this.length - 1; i >= 0; --i) { - const root = this[i].root; - - if (typeof root === "boolean") { - return root; - } - } - return false; - } - - /** - * Extract the config data which is related to a given file. - * @param {string} filePath The absolute path to the target file. - * @returns {ExtractedConfig} The extracted config data. - */ - extractConfig(filePath) { - const { cache } = internalSlotsMap.get(this); - const indices = getMatchedIndices(this, filePath); - const cacheKey = indices.join(","); - - if (!cache.has(cacheKey)) { - cache.set(cacheKey, createConfig(this, indices)); - } - - return cache.get(cacheKey); - } - - /** - * Check if a given path is an additional lint target. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the file is an additional lint target. - */ - isAdditionalTargetPath(filePath) { - for (const { criteria, type } of this) { - if ( - type === "config" && - criteria && - !criteria.endsWithWildcard && - criteria.test(filePath) - ) { - return true; - } - } - return false; - } -} - -/** - * Get the used extracted configs. - * CLIEngine will use this method to collect used deprecated rules. - * @param {ConfigArray} instance The config array object to get. - * @returns {ExtractedConfig[]} The used extracted configs. - * @private - */ -function getUsedExtractedConfigs(instance) { - const { cache } = internalSlotsMap.get(instance); - - return Array.from(cache.values()); -} - - -export { - ConfigArray, - getUsedExtractedConfigs -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js deleted file mode 100644 index 080e6405..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @fileoverview `ConfigDependency` class. - * - * `ConfigDependency` class expresses a loaded parser or plugin. - * - * If the parser or plugin was loaded successfully, it has `definition` property - * and `filePath` property. Otherwise, it has `error` property. - * - * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it - * omits `definition` property. - * - * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers - * or plugins. - * - * @author Toru Nagashima - */ - -import util from "util"; - -/** - * The class is to store parsers or plugins. - * This class hides the loaded object from `JSON.stringify()` and `console.log`. - * @template T - */ -class ConfigDependency { - - /** - * Initialize this instance. - * @param {Object} data The dependency data. - * @param {T} [data.definition] The dependency if the loading succeeded. - * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded. - * @param {Error} [data.error] The error object if the loading failed. - * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded. - * @param {string} data.id The ID of this dependency. - * @param {string} data.importerName The name of the config file which loads this dependency. - * @param {string} data.importerPath The path to the config file which loads this dependency. - */ - constructor({ - definition = null, - original = null, - error = null, - filePath = null, - id, - importerName, - importerPath - }) { - - /** - * The loaded dependency if the loading succeeded. - * @type {T|null} - */ - this.definition = definition; - - /** - * The original dependency as loaded directly from disk if the loading succeeded. - * @type {T|null} - */ - this.original = original; - - /** - * The error object if the loading failed. - * @type {Error|null} - */ - this.error = error; - - /** - * The loaded dependency if the loading succeeded. - * @type {string|null} - */ - this.filePath = filePath; - - /** - * The ID of this dependency. - * @type {string} - */ - this.id = id; - - /** - * The name of the config file which loads this dependency. - * @type {string} - */ - this.importerName = importerName; - - /** - * The path to the config file which loads this dependency. - * @type {string} - */ - this.importerPath = importerPath; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - const obj = this[util.inspect.custom](); - - // Display `error.message` (`Error#message` is unenumerable). - if (obj.error instanceof Error) { - obj.error = { ...obj.error, message: obj.error.message }; - } - - return obj; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util.inspect.custom]() { - const { - definition: _ignore1, // eslint-disable-line no-unused-vars - original: _ignore2, // eslint-disable-line no-unused-vars - ...obj - } = this; - - return obj; - } -} - -/** @typedef {ConfigDependency} DependentParser */ -/** @typedef {ConfigDependency} DependentPlugin */ - -export { ConfigDependency }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js deleted file mode 100644 index e93b0b67..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * @fileoverview `ExtractedConfig` class. - * - * `ExtractedConfig` class expresses a final configuration for a specific file. - * - * It provides one method. - * - * - `toCompatibleObjectAsConfigFileContent()` - * Convert this configuration to the compatible object as the content of - * config files. It converts the loaded parser and plugins to strings. - * `CLIEngine#getConfigForFile(filePath)` method uses this method. - * - * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance. - * - * @author Toru Nagashima - */ - -import { IgnorePattern } from "./ignore-pattern.js"; - -// For VSCode intellisense -/** @typedef {import("../../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").SeverityConf} SeverityConf */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ - -/** - * Check if `xs` starts with `ys`. - * @template T - * @param {T[]} xs The array to check. - * @param {T[]} ys The array that may be the first part of `xs`. - * @returns {boolean} `true` if `xs` starts with `ys`. - */ -function startsWith(xs, ys) { - return xs.length >= ys.length && ys.every((y, i) => y === xs[i]); -} - -/** - * The class for extracted config data. - */ -class ExtractedConfig { - constructor() { - - /** - * The config name what `noInlineConfig` setting came from. - * @type {string} - */ - this.configNameOfNoInlineConfig = ""; - - /** - * Environments. - * @type {Record} - */ - this.env = {}; - - /** - * Global variables. - * @type {Record} - */ - this.globals = {}; - - /** - * The glob patterns that ignore to lint. - * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined} - */ - this.ignores = void 0; - - /** - * The flag that disables directive comments. - * @type {boolean|undefined} - */ - this.noInlineConfig = void 0; - - /** - * Parser definition. - * @type {DependentParser|null} - */ - this.parser = null; - - /** - * Options for the parser. - * @type {Object} - */ - this.parserOptions = {}; - - /** - * Plugin definitions. - * @type {Record} - */ - this.plugins = {}; - - /** - * Processor ID. - * @type {string|null} - */ - this.processor = null; - - /** - * The flag that reports unused `eslint-disable` directive comments. - * @type {boolean|undefined} - */ - this.reportUnusedDisableDirectives = void 0; - - /** - * Rule settings. - * @type {Record} - */ - this.rules = {}; - - /** - * Shared settings. - * @type {Object} - */ - this.settings = {}; - } - - /** - * Convert this config to the compatible object as a config file content. - * @returns {ConfigData} The converted object. - */ - toCompatibleObjectAsConfigFileContent() { - const { - /* eslint-disable no-unused-vars */ - configNameOfNoInlineConfig: _ignore1, - processor: _ignore2, - /* eslint-enable no-unused-vars */ - ignores, - ...config - } = this; - - config.parser = config.parser && config.parser.filePath; - config.plugins = Object.keys(config.plugins).filter(Boolean).reverse(); - config.ignorePatterns = ignores ? ignores.patterns : []; - - // Strip the default patterns from `ignorePatterns`. - if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) { - config.ignorePatterns = - config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length); - } - - return config; - } -} - -export { ExtractedConfig }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js deleted file mode 100644 index 3022ba9f..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +++ /dev/null @@ -1,238 +0,0 @@ -/** - * @fileoverview `IgnorePattern` class. - * - * `IgnorePattern` class has the set of glob patterns and the base path. - * - * It provides two static methods. - * - * - `IgnorePattern.createDefaultIgnore(cwd)` - * Create the default predicate function. - * - `IgnorePattern.createIgnore(ignorePatterns)` - * Create the predicate function from multiple `IgnorePattern` objects. - * - * It provides two properties and a method. - * - * - `patterns` - * The glob patterns that ignore to lint. - * - `basePath` - * The base path of the glob patterns. If absolute paths existed in the - * glob patterns, those are handled as relative paths to the base path. - * - `getPatternsRelativeTo(basePath)` - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * - * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes - * `ignorePatterns` properties. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import assert from "assert"; -import path from "path"; -import ignore from "ignore"; -import debugOrig from "debug"; - -const debug = debugOrig("eslintrc:ignore-pattern"); - -/** @typedef {ReturnType} Ignore */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the path to the common ancestor directory of given paths. - * @param {string[]} sourcePaths The paths to calculate the common ancestor. - * @returns {string} The path to the common ancestor directory. - */ -function getCommonAncestorPath(sourcePaths) { - let result = sourcePaths[0]; - - for (let i = 1; i < sourcePaths.length; ++i) { - const a = result; - const b = sourcePaths[i]; - - // Set the shorter one (it's the common ancestor if one includes the other). - result = a.length < b.length ? a : b; - - // Set the common ancestor. - for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) { - if (a[j] !== b[j]) { - result = a.slice(0, lastSepPos); - break; - } - if (a[j] === path.sep) { - lastSepPos = j; - } - } - } - - let resolvedResult = result || path.sep; - - // if Windows common ancestor is root of drive must have trailing slash to be absolute. - if (resolvedResult && resolvedResult.endsWith(":") && process.platform === "win32") { - resolvedResult += path.sep; - } - return resolvedResult; -} - -/** - * Make relative path. - * @param {string} from The source path to get relative path. - * @param {string} to The destination path to get relative path. - * @returns {string} The relative path. - */ -function relative(from, to) { - const relPath = path.relative(from, to); - - if (path.sep === "/") { - return relPath; - } - return relPath.split(path.sep).join("/"); -} - -/** - * Get the trailing slash if existed. - * @param {string} filePath The path to check. - * @returns {string} The trailing slash if existed. - */ -function dirSuffix(filePath) { - const isDir = ( - filePath.endsWith(path.sep) || - (process.platform === "win32" && filePath.endsWith("/")) - ); - - return isDir ? "/" : ""; -} - -const DefaultPatterns = Object.freeze(["/**/node_modules/*"]); -const DotPatterns = Object.freeze([".*", "!.eslintrc.*", "!../"]); - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -class IgnorePattern { - - /** - * The default patterns. - * @type {string[]} - */ - static get DefaultPatterns() { - return DefaultPatterns; - } - - /** - * Create the default predicate function. - * @param {string} cwd The current working directory. - * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createDefaultIgnore(cwd) { - return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]); - } - - /** - * Create the predicate function from multiple `IgnorePattern` objects. - * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns. - * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createIgnore(ignorePatterns) { - debug("Create with: %o", ignorePatterns); - - const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath)); - const patterns = [].concat( - ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath)) - ); - const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]); - const dotIg = ignore({ allowRelativePaths: true }).add(patterns); - - debug(" processed: %o", { basePath, patterns }); - - return Object.assign( - (filePath, dot = false) => { - assert(path.isAbsolute(filePath), "'filePath' should be an absolute path."); - const relPathRaw = relative(basePath, filePath); - const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath)); - const adoptedIg = dot ? dotIg : ig; - const result = relPath !== "" && adoptedIg.ignores(relPath); - - debug("Check", { filePath, dot, relativePath: relPath, result }); - return result; - }, - { basePath, patterns } - ); - } - - /** - * Initialize a new `IgnorePattern` instance. - * @param {string[]} patterns The glob patterns that ignore to lint. - * @param {string} basePath The base path of `patterns`. - */ - constructor(patterns, basePath) { - assert(path.isAbsolute(basePath), "'basePath' should be an absolute path."); - - /** - * The glob patterns that ignore to lint. - * @type {string[]} - */ - this.patterns = patterns; - - /** - * The base path of `patterns`. - * @type {string} - */ - this.basePath = basePath; - - /** - * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`. - * - * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility. - * It's `false` as-is for `ignorePatterns` property in config files. - * @type {boolean} - */ - this.loose = false; - } - - /** - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * @param {string} newBasePath The base path. - * @returns {string[]} Modifired patterns. - */ - getPatternsRelativeTo(newBasePath) { - assert(path.isAbsolute(newBasePath), "'newBasePath' should be an absolute path."); - const { basePath, loose, patterns } = this; - - if (newBasePath === basePath) { - return patterns; - } - const prefix = `/${relative(newBasePath, basePath)}`; - - return patterns.map(pattern => { - const negative = pattern.startsWith("!"); - const head = negative ? "!" : ""; - const body = negative ? pattern.slice(1) : pattern; - - if (body.startsWith("/") || body.startsWith("../")) { - return `${head}${prefix}${body}`; - } - return loose ? pattern : `${head}${prefix}/**/${body}`; - }); - } -} - -export { IgnorePattern }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/index.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/index.js deleted file mode 100644 index 647f02b7..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/index.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview `ConfigArray` class. - * @author Toru Nagashima - */ - -import { ConfigArray, getUsedExtractedConfigs } from "./config-array.js"; -import { ConfigDependency } from "./config-dependency.js"; -import { ExtractedConfig } from "./extracted-config.js"; -import { IgnorePattern } from "./ignore-pattern.js"; -import { OverrideTester } from "./override-tester.js"; - -export { - ConfigArray, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js b/graphql/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js deleted file mode 100644 index 460aafcf..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +++ /dev/null @@ -1,225 +0,0 @@ -/** - * @fileoverview `OverrideTester` class. - * - * `OverrideTester` class handles `files` property and `excludedFiles` property - * of `overrides` config. - * - * It provides one method. - * - * - `test(filePath)` - * Test if a file path matches the pair of `files` property and - * `excludedFiles` property. The `filePath` argument must be an absolute - * path. - * - * `ConfigArrayFactory` creates `OverrideTester` objects when it processes - * `overrides` properties. - * - * @author Toru Nagashima - */ - -import assert from "assert"; -import path from "path"; -import util from "util"; -import minimatch from "minimatch"; - -const { Minimatch } = minimatch; - -const minimatchOpts = { dot: true, matchBase: true }; - -/** - * @typedef {Object} Pattern - * @property {InstanceType[] | null} includes The positive matchers. - * @property {InstanceType[] | null} excludes The negative matchers. - */ - -/** - * Normalize a given pattern to an array. - * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns. - * @returns {string[]|null} Normalized patterns. - * @private - */ -function normalizePatterns(patterns) { - if (Array.isArray(patterns)) { - return patterns.filter(Boolean); - } - if (typeof patterns === "string" && patterns) { - return [patterns]; - } - return []; -} - -/** - * Create the matchers of given patterns. - * @param {string[]} patterns The patterns. - * @returns {InstanceType[] | null} The matchers. - */ -function toMatcher(patterns) { - if (patterns.length === 0) { - return null; - } - return patterns.map(pattern => { - if (/^\.[/\\]/u.test(pattern)) { - return new Minimatch( - pattern.slice(2), - - // `./*.js` should not match with `subdir/foo.js` - { ...minimatchOpts, matchBase: false } - ); - } - return new Minimatch(pattern, minimatchOpts); - }); -} - -/** - * Convert a given matcher to string. - * @param {Pattern} matchers The matchers. - * @returns {string} The string expression of the matcher. - */ -function patternToJson({ includes, excludes }) { - return { - includes: includes && includes.map(m => m.pattern), - excludes: excludes && excludes.map(m => m.pattern) - }; -} - -/** - * The class to test given paths are matched by the patterns. - */ -class OverrideTester { - - /** - * Create a tester with given criteria. - * If there are no criteria, returns `null`. - * @param {string|string[]} files The glob patterns for included files. - * @param {string|string[]} excludedFiles The glob patterns for excluded files. - * @param {string} basePath The path to the base directory to test paths. - * @returns {OverrideTester|null} The created instance or `null`. - */ - static create(files, excludedFiles, basePath) { - const includePatterns = normalizePatterns(files); - const excludePatterns = normalizePatterns(excludedFiles); - let endsWithWildcard = false; - - if (includePatterns.length === 0) { - return null; - } - - // Rejects absolute paths or relative paths to parents. - for (const pattern of includePatterns) { - if (path.isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - if (pattern.endsWith("*")) { - endsWithWildcard = true; - } - } - for (const pattern of excludePatterns) { - if (path.isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - } - - const includes = toMatcher(includePatterns); - const excludes = toMatcher(excludePatterns); - - return new OverrideTester( - [{ includes, excludes }], - basePath, - endsWithWildcard - ); - } - - /** - * Combine two testers by logical and. - * If either of the testers was `null`, returns the other tester. - * The `basePath` property of the two must be the same value. - * @param {OverrideTester|null} a A tester. - * @param {OverrideTester|null} b Another tester. - * @returns {OverrideTester|null} Combined tester. - */ - static and(a, b) { - if (!b) { - return a && new OverrideTester( - a.patterns, - a.basePath, - a.endsWithWildcard - ); - } - if (!a) { - return new OverrideTester( - b.patterns, - b.basePath, - b.endsWithWildcard - ); - } - - assert.strictEqual(a.basePath, b.basePath); - return new OverrideTester( - a.patterns.concat(b.patterns), - a.basePath, - a.endsWithWildcard || b.endsWithWildcard - ); - } - - /** - * Initialize this instance. - * @param {Pattern[]} patterns The matchers. - * @param {string} basePath The base path. - * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`. - */ - constructor(patterns, basePath, endsWithWildcard = false) { - - /** @type {Pattern[]} */ - this.patterns = patterns; - - /** @type {string} */ - this.basePath = basePath; - - /** @type {boolean} */ - this.endsWithWildcard = endsWithWildcard; - } - - /** - * Test if a given path is matched or not. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the path was matched. - */ - test(filePath) { - if (typeof filePath !== "string" || !path.isAbsolute(filePath)) { - throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`); - } - const relativePath = path.relative(this.basePath, filePath); - - return this.patterns.every(({ includes, excludes }) => ( - (!includes || includes.some(m => m.match(relativePath))) && - (!excludes || !excludes.some(m => m.match(relativePath))) - )); - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - if (this.patterns.length === 1) { - return { - ...patternToJson(this.patterns[0]), - basePath: this.basePath - }; - } - return { - AND: this.patterns.map(patternToJson), - basePath: this.basePath - }; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util.inspect.custom]() { - return this.toJSON(); - } -} - -export { OverrideTester }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/flat-compat.js b/graphql/node_modules/@eslint/eslintrc/lib/flat-compat.js deleted file mode 100644 index 6c307a99..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/flat-compat.js +++ /dev/null @@ -1,318 +0,0 @@ -/** - * @fileoverview Compatibility class for flat config. - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -import createDebug from "debug"; -import path from "path"; - -import environments from "../conf/environments.js"; -import { ConfigArrayFactory } from "./config-array-factory.js"; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").Processor} Processor */ - -const debug = createDebug("eslintrc:flat-compat"); -const cafactory = Symbol("cafactory"); - -/** - * Translates an ESLintRC-style config object into a flag-config-style config - * object. - * @param {Object} eslintrcConfig An ESLintRC-style config object. - * @param {Object} options Options to help translate the config. - * @param {string} options.resolveConfigRelativeTo To the directory to resolve - * configs from. - * @param {string} options.resolvePluginsRelativeTo The directory to resolve - * plugins from. - * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment - * names to objects. - * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor - * names to objects. - * @returns {Object} A flag-config-style config object. - */ -function translateESLintRC(eslintrcConfig, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo, - pluginEnvironments, - pluginProcessors -}) { - - const flatConfig = {}; - const configs = []; - const languageOptions = {}; - const linterOptions = {}; - const keysToCopy = ["settings", "rules", "processor"]; - const languageOptionsKeysToCopy = ["globals", "parser", "parserOptions"]; - const linterOptionsKeysToCopy = ["noInlineConfig", "reportUnusedDisableDirectives"]; - - // copy over simple translations - for (const key of keysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig[key] = eslintrcConfig[key]; - } - } - - // copy over languageOptions - for (const key of languageOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - - // create the languageOptions key in the flat config - flatConfig.languageOptions = languageOptions; - - if (key === "parser") { - debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`); - - if (eslintrcConfig[key].error) { - throw eslintrcConfig[key].error; - } - - languageOptions[key] = eslintrcConfig[key].definition; - continue; - } - - // clone any object values that are in the eslintrc config - if (eslintrcConfig[key] && typeof eslintrcConfig[key] === "object") { - languageOptions[key] = { - ...eslintrcConfig[key] - }; - } else { - languageOptions[key] = eslintrcConfig[key]; - } - } - } - - // copy over linterOptions - for (const key of linterOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig.linterOptions = linterOptions; - linterOptions[key] = eslintrcConfig[key]; - } - } - - // move ecmaVersion a level up - if (languageOptions.parserOptions) { - - if ("ecmaVersion" in languageOptions.parserOptions) { - languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion; - delete languageOptions.parserOptions.ecmaVersion; - } - - if ("sourceType" in languageOptions.parserOptions) { - languageOptions.sourceType = languageOptions.parserOptions.sourceType; - delete languageOptions.parserOptions.sourceType; - } - - // check to see if we even need parserOptions anymore and remove it if not - if (Object.keys(languageOptions.parserOptions).length === 0) { - delete languageOptions.parserOptions; - } - } - - // overrides - if (eslintrcConfig.criteria) { - flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)]; - } - - // translate plugins - if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === "object") { - debug(`Translating plugins: ${eslintrcConfig.plugins}`); - - flatConfig.plugins = {}; - - for (const pluginName of Object.keys(eslintrcConfig.plugins)) { - - debug(`Translating plugin: ${pluginName}`); - debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`); - - const { original: plugin, error } = eslintrcConfig.plugins[pluginName]; - - if (error) { - throw error; - } - - flatConfig.plugins[pluginName] = plugin; - - // create a config for any processors - if (plugin.processors) { - for (const processorName of Object.keys(plugin.processors)) { - if (processorName.startsWith(".")) { - debug(`Assigning processor: ${pluginName}/${processorName}`); - - configs.unshift({ - files: [`**/*${processorName}`], - processor: pluginProcessors.get(`${pluginName}/${processorName}`) - }); - } - - } - } - } - } - - // translate env - must come after plugins - if (eslintrcConfig.env && typeof eslintrcConfig.env === "object") { - for (const envName of Object.keys(eslintrcConfig.env)) { - - // only add environments that are true - if (eslintrcConfig.env[envName]) { - debug(`Translating environment: ${envName}`); - - if (environments.has(envName)) { - - // built-in environments should be defined first - configs.unshift(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...environments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } else if (pluginEnvironments.has(envName)) { - - // if the environment comes from a plugin, it should come after the plugin config - configs.push(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...pluginEnvironments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } - } - } - } - - // only add if there are actually keys in the config - if (Object.keys(flatConfig).length > 0) { - configs.push(flatConfig); - } - - return configs; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A compatibility class for working with configs. - */ -class FlatCompat { - - constructor({ - baseDirectory = process.cwd(), - resolvePluginsRelativeTo = baseDirectory, - recommendedConfig, - allConfig - } = {}) { - this.baseDirectory = baseDirectory; - this.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - this[cafactory] = new ConfigArrayFactory({ - cwd: baseDirectory, - resolvePluginsRelativeTo, - getEslintAllConfig: () => { - - if (!allConfig) { - throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor."); - } - - return allConfig; - }, - getEslintRecommendedConfig: () => { - - if (!recommendedConfig) { - throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor."); - } - - return recommendedConfig; - } - }); - } - - /** - * Translates an ESLintRC-style config into a flag-config-style config. - * @param {Object} eslintrcConfig The ESLintRC-style config object. - * @returns {Object} A flag-config-style config object. - */ - config(eslintrcConfig) { - const eslintrcArray = this[cafactory].create(eslintrcConfig, { - basePath: this.baseDirectory - }); - - const flatArray = []; - let hasIgnorePatterns = false; - - eslintrcArray.forEach(configData => { - if (configData.type === "config") { - hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern; - flatArray.push(...translateESLintRC(configData, { - resolveConfigRelativeTo: path.join(this.baseDirectory, "__placeholder.js"), - resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, "__placeholder.js"), - pluginEnvironments: eslintrcArray.pluginEnvironments, - pluginProcessors: eslintrcArray.pluginProcessors - })); - } - }); - - // combine ignorePatterns to emulate ESLintRC behavior better - if (hasIgnorePatterns) { - flatArray.unshift({ - ignores: [filePath => { - - // Compute the final config for this file. - // This filters config array elements by `files`/`excludedFiles` then merges the elements. - const finalConfig = eslintrcArray.extractConfig(filePath); - - // Test the `ignorePattern` properties of the final config. - return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath); - }] - }); - } - - return flatArray; - } - - /** - * Translates the `env` section of an ESLintRC-style config. - * @param {Object} envConfig The `env` section of an ESLintRC config. - * @returns {Object[]} An array of flag-config objects representing the environments. - */ - env(envConfig) { - return this.config({ - env: envConfig - }); - } - - /** - * Translates the `extends` section of an ESLintRC-style config. - * @param {...string} configsToExtend The names of the configs to load. - * @returns {Object[]} An array of flag-config objects representing the config. - */ - extends(...configsToExtend) { - return this.config({ - extends: configsToExtend - }); - } - - /** - * Translates the `plugins` section of an ESLintRC-style config. - * @param {...string} plugins The names of the plugins to load. - * @returns {Object[]} An array of flag-config objects representing the plugins. - */ - plugins(...plugins) { - return this.config({ - plugins - }); - } -} - -export { FlatCompat }; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/index-universal.js b/graphql/node_modules/@eslint/eslintrc/lib/index-universal.js deleted file mode 100644 index 6f6b3026..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/index-universal.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import * as ConfigOps from "./shared/config-ops.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import environments from "../conf/environments.js"; - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - environments, - - // shared - ConfigOps, - ConfigValidator, - naming -}; - -export { - Legacy -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/index.js b/graphql/node_modules/@eslint/eslintrc/lib/index.js deleted file mode 100644 index a37e5746..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/index.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import { - ConfigArrayFactory, - createContext as createConfigArrayFactoryContext, - loadConfigFile -} from "./config-array-factory.js"; - -import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js"; -import * as ModuleResolver from "./shared/relative-module-resolver.js"; -import { ConfigArray, getUsedExtractedConfigs } from "./config-array/index.js"; -import { ConfigDependency } from "./config-array/config-dependency.js"; -import { ExtractedConfig } from "./config-array/extracted-config.js"; -import { IgnorePattern } from "./config-array/ignore-pattern.js"; -import { OverrideTester } from "./config-array/override-tester.js"; -import * as ConfigOps from "./shared/config-ops.js"; -import ConfigValidator from "./shared/config-validator.js"; -import * as naming from "./shared/naming.js"; -import { FlatCompat } from "./flat-compat.js"; -import environments from "../conf/environments.js"; - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - ConfigArray, - createConfigArrayFactoryContext, - CascadingConfigArrayFactory, - ConfigArrayFactory, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs, - environments, - loadConfigFile, - - // shared - ConfigOps, - ConfigValidator, - ModuleResolver, - naming -}; - -export { - - Legacy, - - FlatCompat - -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/ajv.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/ajv.js deleted file mode 100644 index b79ad36c..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/ajv.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import Ajv from "ajv"; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export default (additionalOptions = {}) => { - const ajv = new Ajv({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/config-ops.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/config-ops.js deleted file mode 100644 index d203be0e..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -export { - getRuleSeverity, - normalizeToStrings, - isErrorSeverity, - isValidSeverity, - isEverySeverityValid, - normalizeConfigGlobal -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/config-validator.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/config-validator.js deleted file mode 100644 index 531ccbf7..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +++ /dev/null @@ -1,370 +0,0 @@ -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -/* eslint class-methods-use-this: "off" */ - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Rule} Rule */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import util from "util"; -import * as ConfigOps from "./config-ops.js"; -import { emitDeprecationWarning } from "./deprecation-warnings.js"; -import ajvOrig from "./ajv.js"; -import configSchema from "../../conf/config-schema.js"; -import BuiltInEnvironments from "../../conf/environments.js"; - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -export default class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. - * `null` if rule wasn't passed or its `meta.schema` is `false`. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - try { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } catch (err) { - const errorWithCode = new Error(err.message, { cause: err }); - - errorWithCode.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - - throw errorWithCode; - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - let enhancedMessage = err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA" - ? `Error while processing options validation schema of rule '${ruleId}': ${err.message}` - : `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - enhancedMessage = `${source}:\n\t${enhancedMessage}`; - } - - const enhancedError = new Error(enhancedMessage, { cause: err }); - - if (err.code) { - enhancedError.code = err.code; - } - - throw enhancedError; - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - ConfigOps.normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js deleted file mode 100644 index 91907b13..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -import path from "path"; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path.relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { - emitDeprecationWarning -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/naming.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/naming.js deleted file mode 100644 index 93df5fc4..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/naming.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -export { - normalizePackageName, - getShorthandName, - getNamespaceFromTerm -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js deleted file mode 100644 index 1df0ca80..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -import Module from "module"; - -/* - * `Module.createRequire` is added in v12.2.0. It supports URL as well. - * We only support the case where the argument is a filepath, not a URL. - */ -const createRequire = Module.createRequire; - -/** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ -function resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } -} - -export { - resolve -}; diff --git a/graphql/node_modules/@eslint/eslintrc/lib/shared/types.js b/graphql/node_modules/@eslint/eslintrc/lib/shared/types.js deleted file mode 100644 index a32c35e3..00000000 --- a/graphql/node_modules/@eslint/eslintrc/lib/shared/types.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @fileoverview Define common types for input completion. - * @author Toru Nagashima - */ - -/** @type {any} */ -export default {}; - -/** @typedef {boolean | "off" | "readable" | "readonly" | "writable" | "writeable"} GlobalConf */ -/** @typedef {0 | 1 | 2 | "off" | "warn" | "error"} SeverityConf */ -/** @typedef {SeverityConf | [SeverityConf, ...any[]]} RuleConf */ - -/** - * @typedef {Object} EcmaFeatures - * @property {boolean} [globalReturn] Enabling `return` statements at the top-level. - * @property {boolean} [jsx] Enabling JSX syntax. - * @property {boolean} [impliedStrict] Enabling strict mode always. - */ - -/** - * @typedef {Object} ParserOptions - * @property {EcmaFeatures} [ecmaFeatures] The optional features. - * @property {3|5|6|7|8|9|10|11|12|2015|2016|2017|2018|2019|2020|2021} [ecmaVersion] The ECMAScript version (or revision number). - * @property {"script"|"module"} [sourceType] The source code type. - */ - -/** - * @typedef {Object} ConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {Record} [globals] The global variable settings. - * @property {string | string[]} [ignorePatterns] The glob patterns that ignore to lint. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {boolean} [root] The root flag. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} OverrideConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [excludedFiles] The glob pattarns for excluded files. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {string | string[]} files The glob patterns for target files. - * @property {Record} [globals] The global variable settings. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} ParseResult - * @property {Object} ast The AST. - * @property {ScopeManager} [scopeManager] The scope manager of the AST. - * @property {Record} [services] The services that the parser provides. - * @property {Record} [visitorKeys] The visitor keys of the AST. - */ - -/** - * @typedef {Object} Parser - * @property {(text:string, options:ParserOptions) => Object} parse The definition of global variables. - * @property {(text:string, options:ParserOptions) => ParseResult} [parseForESLint] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} Environment - * @property {Record} [globals] The definition of global variables. - * @property {ParserOptions} [parserOptions] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} LintMessage - * @property {number} column The 1-based column number. - * @property {number} [endColumn] The 1-based column number of the end location. - * @property {number} [endLine] The 1-based line number of the end location. - * @property {boolean} fatal If `true` then this is a fatal error. - * @property {{range:[number,number], text:string}} [fix] Information for autofix. - * @property {number} line The 1-based line number. - * @property {string} message The error message. - * @property {string|null} ruleId The ID of the rule which makes this message. - * @property {0|1|2} severity The severity of this message. - * @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions. - */ - -/** - * @typedef {Object} SuggestionResult - * @property {string} desc A short description. - * @property {string} [messageId] Id referencing a message for the description. - * @property {{ text: string, range: number[] }} fix fix result info - */ - -/** - * @typedef {Object} Processor - * @property {(text:string, filename:string) => Array} [preprocess] The function to extract code blocks. - * @property {(messagesList:LintMessage[][], filename:string) => LintMessage[]} [postprocess] The function to merge messages. - * @property {boolean} [supportsAutofix] If `true` then it means the processor supports autofix. - */ - -/** - * @typedef {Object} RuleMetaDocs - * @property {string} category The category of the rule. - * @property {string} description The description of the rule. - * @property {boolean} recommended If `true` then the rule is included in `eslint:recommended` preset. - * @property {string} url The URL of the rule documentation. - */ - -/** - * @typedef {Object} RuleMeta - * @property {boolean} [deprecated] If `true` then the rule has been deprecated. - * @property {RuleMetaDocs} docs The document information of the rule. - * @property {"code"|"whitespace"} [fixable] The autofix type. - * @property {Record} [messages] The messages the rule reports. - * @property {string[]} [replacedBy] The IDs of the alternative rules. - * @property {Array|Object} schema The option schema of the rule. - * @property {"problem"|"suggestion"|"layout"} type The rule type. - */ - -/** - * @typedef {Object} Rule - * @property {Function} create The factory of the rule. - * @property {RuleMeta} meta The meta data of the rule. - */ - -/** - * @typedef {Object} Plugin - * @property {Record} [configs] The definition of plugin configs. - * @property {Record} [environments] The definition of plugin environments. - * @property {Record} [processors] The definition of plugin processors. - * @property {Record} [rules] The definition of plugin rules. - */ - -/** - * Information of deprecated rules. - * @typedef {Object} DeprecatedRuleInfo - * @property {string} ruleId The rule ID. - * @property {string[]} replacedBy The rule IDs that replace this deprecated rule. - */ diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/globals.json b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/globals.json deleted file mode 100644 index 4e75173f..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/globals.json +++ /dev/null @@ -1,1998 +0,0 @@ -{ - "builtin": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es5": { - "Array": false, - "Boolean": false, - "constructor": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "propertyIsEnumerable": false, - "RangeError": false, - "ReferenceError": false, - "RegExp": false, - "String": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false - }, - "es2015": { - "Array": false, - "ArrayBuffer": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2017": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2020": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakSet": false - }, - "es2021": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "constructor": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "hasOwnProperty": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "isFinite": false, - "isNaN": false, - "isPrototypeOf": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "propertyIsEnumerable": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "toLocaleString": false, - "toString": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "valueOf": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "browser": { - "AbortController": false, - "AbortSignal": false, - "addEventListener": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffectReadOnly": false, - "AnimationEffectTiming": false, - "AnimationEffectTimingReadOnly": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "applicationCache": false, - "ApplicationCache": false, - "ApplicationCacheErrorEvent": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioDestinationNode": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioWorkletGlobalScope": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "blur": false, - "BroadcastChannel": false, - "btoa": false, - "BudgetService": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "ClipboardEvent": false, - "ClipboardItem": false, - "close": false, - "closed": false, - "CloseEvent": false, - "Comment": false, - "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ConvolverNode": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "Credential": false, - "CredentialsContainer": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSS": false, - "CSSConditionRule": false, - "CSSFontFaceRule": false, - "CSSGroupingRule": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSMatrixComponent": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSPageRule": false, - "CSSPerspective": false, - "CSSRotate": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSScale": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSSupportsRule": false, - "CSSTransformValue": false, - "CSSTranslate": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DecompressionStream": false, - "defaultstatus": false, - "defaultStatus": false, - "DelayNode": false, - "DeviceMotionEvent": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "dispatchEvent": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "Element": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "fetch": false, - "File": false, - "FileList": false, - "FileReader": false, - "find": false, - "focus": false, - "FocusEvent": false, - "FontFace": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "FormDataEvent": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadButton": false, - "GamepadEvent": false, - "getComputedStyle": false, - "getSelection": false, - "HashChangeEvent": false, - "Headers": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLContentElement": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectElement": false, - "HTMLShadowElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDeadline": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "indexedDB": false, - "innerHeight": false, - "innerWidth": false, - "InputEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "Intl": false, - "isSecureContext": false, - "KeyboardEvent": false, - "KeyframeEffect": false, - "KeyframeEffectReadOnly": false, - "length": false, - "localStorage": false, - "location": true, - "Location": false, - "locationbar": false, - "matchMedia": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyMessageEvent": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaSettingsRange": false, - "MediaSource": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamConstraints": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackEvent": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigationPreloadManager": false, - "navigator": false, - "Navigator": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": true, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinstallprompt": true, - "onbeforeprint": true, - "onbeforeunload": true, - "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontextmenu": true, - "oncuechange": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "onerror": true, - "onfocus": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpageshow": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onsearch": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitionend": true, - "onunhandledrejection": true, - "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwheel": true, - "open": false, - "openDatabase": false, - "opener": false, - "Option": false, - "origin": false, - "OscillatorNode": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "personalbar": false, - "PhotoCapabilities": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "print": false, - "ProcessingInstruction": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queueMicrotask": false, - "RadioNodeList": false, - "Range": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registerProcessor": false, - "RemotePlayback": false, - "removeEventListener": false, - "reportError": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "resizeTo": false, - "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCIceCandidate": false, - "RTCIceGatherer": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpContributingSource": false, - "RTCRtpReceiver": false, - "RTCRtpSender": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "screen": false, - "Screen": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "SharedWorker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageEvent": false, - "StorageManager": false, - "structuredClone": false, - "styleMedia": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "SubtleCrypto": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGDiscardElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "TaskAttributionTiming": false, - "Text": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TimeRanges": false, - "ToggleEvent": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TransitionEvent": false, - "TreeWalker": false, - "UIEvent": false, - "URL": false, - "URLSearchParams": false, - "ValidityState": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WheelEvent": false, - "window": false, - "Window": false, - "Worker": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XRAnchor": false, - "XRBoundedReferenceSpace": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRFrame": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRPose": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, - "XSLTProcessor": false - }, - "worker": { - "addEventListener": false, - "applicationCache": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "clearInterval": false, - "clearTimeout": false, - "close": true, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "ErrorEvent": false, - "Event": false, - "fetch": false, - "File": false, - "FileReaderSync": false, - "FormData": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "ImageData": false, - "importScripts": true, - "indexedDB": false, - "location": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "navigator": false, - "Notification": false, - "onclose": true, - "onconnect": true, - "onerror": true, - "onlanguagechange": true, - "onmessage": true, - "onoffline": true, - "ononline": true, - "onrejectionhandled": true, - "onunhandledrejection": true, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "postMessage": true, - "Promise": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "removeEventListener": false, - "reportError": false, - "Request": false, - "Response": false, - "self": true, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "Worker": false, - "WorkerGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false - }, - "node": { - "__dirname": false, - "__filename": false, - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "exports": true, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "module": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "require": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "nodeBuiltin": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "commonjs": { - "exports": true, - "global": false, - "module": false, - "require": false - }, - "amd": { - "define": false, - "require": false - }, - "mocha": { - "after": false, - "afterEach": false, - "before": false, - "beforeEach": false, - "context": false, - "describe": false, - "it": false, - "mocha": false, - "run": false, - "setup": false, - "specify": false, - "suite": false, - "suiteSetup": false, - "suiteTeardown": false, - "teardown": false, - "test": false, - "xcontext": false, - "xdescribe": false, - "xit": false, - "xspecify": false - }, - "jasmine": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "expectAsync": false, - "fail": false, - "fdescribe": false, - "fit": false, - "it": false, - "jasmine": false, - "pending": false, - "runs": false, - "spyOn": false, - "spyOnAllFunctions": false, - "spyOnProperty": false, - "waits": false, - "waitsFor": false, - "xdescribe": false, - "xit": false - }, - "jest": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "fdescribe": false, - "fit": false, - "it": false, - "jest": false, - "pit": false, - "require": false, - "test": false, - "xdescribe": false, - "xit": false, - "xtest": false - }, - "qunit": { - "asyncTest": false, - "deepEqual": false, - "equal": false, - "expect": false, - "module": false, - "notDeepEqual": false, - "notEqual": false, - "notOk": false, - "notPropEqual": false, - "notStrictEqual": false, - "ok": false, - "propEqual": false, - "QUnit": false, - "raises": false, - "start": false, - "stop": false, - "strictEqual": false, - "test": false, - "throws": false - }, - "phantomjs": { - "console": true, - "exports": true, - "phantom": true, - "require": true, - "WebPage": true - }, - "couch": { - "emit": false, - "exports": false, - "getRow": false, - "log": false, - "module": false, - "provides": false, - "require": false, - "respond": false, - "send": false, - "start": false, - "sum": false - }, - "rhino": { - "defineClass": false, - "deserialize": false, - "gc": false, - "help": false, - "importClass": false, - "importPackage": false, - "java": false, - "load": false, - "loadClass": false, - "Packages": false, - "print": false, - "quit": false, - "readFile": false, - "readUrl": false, - "runCommand": false, - "seal": false, - "serialize": false, - "spawn": false, - "sync": false, - "toint32": false, - "version": false - }, - "nashorn": { - "__DIR__": false, - "__FILE__": false, - "__LINE__": false, - "com": false, - "edu": false, - "exit": false, - "java": false, - "Java": false, - "javafx": false, - "JavaImporter": false, - "javax": false, - "JSAdapter": false, - "load": false, - "loadWithNewGlobal": false, - "org": false, - "Packages": false, - "print": false, - "quit": false - }, - "wsh": { - "ActiveXObject": false, - "CollectGarbage": false, - "Debug": false, - "Enumerator": false, - "GetObject": false, - "RuntimeObject": false, - "ScriptEngine": false, - "ScriptEngineBuildVersion": false, - "ScriptEngineMajorVersion": false, - "ScriptEngineMinorVersion": false, - "VBArray": false, - "WScript": false, - "WSH": false - }, - "jquery": { - "$": false, - "jQuery": false - }, - "yui": { - "YAHOO": false, - "YAHOO_config": false, - "YUI": false, - "YUI_config": false - }, - "shelljs": { - "cat": false, - "cd": false, - "chmod": false, - "config": false, - "cp": false, - "dirs": false, - "echo": false, - "env": false, - "error": false, - "exec": false, - "exit": false, - "find": false, - "grep": false, - "ln": false, - "ls": false, - "mkdir": false, - "mv": false, - "popd": false, - "pushd": false, - "pwd": false, - "rm": false, - "sed": false, - "set": false, - "target": false, - "tempdir": false, - "test": false, - "touch": false, - "which": false - }, - "prototypejs": { - "$": false, - "$$": false, - "$A": false, - "$break": false, - "$continue": false, - "$F": false, - "$H": false, - "$R": false, - "$w": false, - "Abstract": false, - "Ajax": false, - "Autocompleter": false, - "Builder": false, - "Class": false, - "Control": false, - "Draggable": false, - "Draggables": false, - "Droppables": false, - "Effect": false, - "Element": false, - "Enumerable": false, - "Event": false, - "Field": false, - "Form": false, - "Hash": false, - "Insertion": false, - "ObjectRange": false, - "PeriodicalExecuter": false, - "Position": false, - "Prototype": false, - "Scriptaculous": false, - "Selector": false, - "Sortable": false, - "SortableObserver": false, - "Sound": false, - "Template": false, - "Toggle": false, - "Try": false - }, - "meteor": { - "$": false, - "Accounts": false, - "AccountsClient": false, - "AccountsCommon": false, - "AccountsServer": false, - "App": false, - "Assets": false, - "Blaze": false, - "check": false, - "Cordova": false, - "DDP": false, - "DDPRateLimiter": false, - "DDPServer": false, - "Deps": false, - "EJSON": false, - "Email": false, - "HTTP": false, - "Log": false, - "Match": false, - "Meteor": false, - "Mongo": false, - "MongoInternals": false, - "Npm": false, - "Package": false, - "Plugin": false, - "process": false, - "Random": false, - "ReactiveDict": false, - "ReactiveVar": false, - "Router": false, - "ServiceConfiguration": false, - "Session": false, - "share": false, - "Spacebars": false, - "Template": false, - "Tinytest": false, - "Tracker": false, - "UI": false, - "Utils": false, - "WebApp": false, - "WebAppInternals": false - }, - "mongo": { - "_isWindows": false, - "_rand": false, - "BulkWriteResult": false, - "cat": false, - "cd": false, - "connect": false, - "db": false, - "getHostName": false, - "getMemInfo": false, - "hostname": false, - "ISODate": false, - "listFiles": false, - "load": false, - "ls": false, - "md5sumFile": false, - "mkdir": false, - "Mongo": false, - "NumberInt": false, - "NumberLong": false, - "ObjectId": false, - "PlanCache": false, - "print": false, - "printjson": false, - "pwd": false, - "quit": false, - "removeFile": false, - "rs": false, - "sh": false, - "UUID": false, - "version": false, - "WriteResult": false - }, - "applescript": { - "$": false, - "Application": false, - "Automation": false, - "console": false, - "delay": false, - "Library": false, - "ObjC": false, - "ObjectSpecifier": false, - "Path": false, - "Progress": false, - "Ref": false - }, - "serviceworker": { - "addEventListener": false, - "applicationCache": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "clearInterval": false, - "clearTimeout": false, - "Client": false, - "clients": false, - "Clients": false, - "close": true, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "ErrorEvent": false, - "Event": false, - "ExtendableEvent": false, - "ExtendableMessageEvent": false, - "fetch": false, - "FetchEvent": false, - "File": false, - "FileReaderSync": false, - "FormData": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "ImageData": false, - "importScripts": false, - "indexedDB": false, - "location": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "navigator": false, - "Notification": false, - "onclose": true, - "onconnect": true, - "onerror": true, - "onfetch": true, - "oninstall": true, - "onlanguagechange": true, - "onmessage": true, - "onmessageerror": true, - "onnotificationclick": true, - "onnotificationclose": true, - "onoffline": true, - "ononline": true, - "onpush": true, - "onpushsubscriptionchange": true, - "onrejectionhandled": true, - "onsync": true, - "onunhandledrejection": true, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "postMessage": true, - "Promise": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registration": false, - "removeEventListener": false, - "Request": false, - "Response": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerGlobalScope": false, - "ServiceWorkerMessageEvent": false, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "skipWaiting": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WindowClient": false, - "Worker": false, - "WorkerGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false - }, - "atomtest": { - "advanceClock": false, - "atom": false, - "fakeClearInterval": false, - "fakeClearTimeout": false, - "fakeSetInterval": false, - "fakeSetTimeout": false, - "resetTimeouts": false, - "waitsForPromise": false - }, - "embertest": { - "andThen": false, - "click": false, - "currentPath": false, - "currentRouteName": false, - "currentURL": false, - "fillIn": false, - "find": false, - "findAll": false, - "findWithAssert": false, - "keyEvent": false, - "pauseTest": false, - "resumeTest": false, - "triggerEvent": false, - "visit": false, - "wait": false - }, - "protractor": { - "$": false, - "$$": false, - "browser": false, - "by": false, - "By": false, - "DartObject": false, - "element": false, - "protractor": false - }, - "shared-node-browser": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "Headers": false, - "Intl": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "webextensions": { - "browser": false, - "chrome": false, - "opr": false - }, - "greasemonkey": { - "cloneInto": false, - "createObjectIn": false, - "exportFunction": false, - "GM": false, - "GM_addElement": false, - "GM_addStyle": false, - "GM_addValueChangeListener": false, - "GM_deleteValue": false, - "GM_download": false, - "GM_getResourceText": false, - "GM_getResourceURL": false, - "GM_getTab": false, - "GM_getTabs": false, - "GM_getValue": false, - "GM_info": false, - "GM_listValues": false, - "GM_log": false, - "GM_notification": false, - "GM_openInTab": false, - "GM_registerMenuCommand": false, - "GM_removeValueChangeListener": false, - "GM_saveTab": false, - "GM_setClipboard": false, - "GM_setValue": false, - "GM_unregisterMenuCommand": false, - "GM_xmlhttpRequest": false, - "unsafeWindow": false - }, - "devtools": { - "$": false, - "$_": false, - "$$": false, - "$0": false, - "$1": false, - "$2": false, - "$3": false, - "$4": false, - "$x": false, - "chrome": false, - "clear": false, - "copy": false, - "debug": false, - "dir": false, - "dirxml": false, - "getEventListeners": false, - "inspect": false, - "keys": false, - "monitor": false, - "monitorEvents": false, - "profile": false, - "profileEnd": false, - "queryObjects": false, - "table": false, - "undebug": false, - "unmonitor": false, - "unmonitorEvents": false, - "values": false - } -} diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts deleted file mode 100644 index edd861f9..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.d.ts +++ /dev/null @@ -1,2077 +0,0 @@ -// This file is autogenerated by scripts/generate-types.mjs -// Do NOT modify this file manually - -type GlobalsBuiltin = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs5 = { - readonly 'Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'propertyIsEnumerable': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'RegExp': false; - readonly 'String': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; -} - -type GlobalsEs2015 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2017 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2020 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2021 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'constructor': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'hasOwnProperty': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'isPrototypeOf': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'propertyIsEnumerable': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'toLocaleString': false; - readonly 'toString': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'valueOf': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsBrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'addEventListener': false; - readonly 'alert': false; - readonly 'AnalyserNode': false; - readonly 'Animation': false; - readonly 'AnimationEffectReadOnly': false; - readonly 'AnimationEffectTiming': false; - readonly 'AnimationEffectTimingReadOnly': false; - readonly 'AnimationEvent': false; - readonly 'AnimationPlaybackEvent': false; - readonly 'AnimationTimeline': false; - readonly 'applicationCache': false; - readonly 'ApplicationCache': false; - readonly 'ApplicationCacheErrorEvent': false; - readonly 'atob': false; - readonly 'Attr': false; - readonly 'Audio': false; - readonly 'AudioBuffer': false; - readonly 'AudioBufferSourceNode': false; - readonly 'AudioContext': false; - readonly 'AudioDestinationNode': false; - readonly 'AudioListener': false; - readonly 'AudioNode': false; - readonly 'AudioParam': false; - readonly 'AudioProcessingEvent': false; - readonly 'AudioScheduledSourceNode': false; - readonly 'AudioWorkletGlobalScope': false; - readonly 'AudioWorkletNode': false; - readonly 'AudioWorkletProcessor': false; - readonly 'BarProp': false; - readonly 'BaseAudioContext': false; - readonly 'BatteryManager': false; - readonly 'BeforeUnloadEvent': false; - readonly 'BiquadFilterNode': false; - readonly 'Blob': false; - readonly 'BlobEvent': false; - readonly 'blur': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'BudgetService': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'cancelAnimationFrame': false; - readonly 'cancelIdleCallback': false; - readonly 'CanvasCaptureMediaStreamTrack': false; - readonly 'CanvasGradient': false; - readonly 'CanvasPattern': false; - readonly 'CanvasRenderingContext2D': false; - readonly 'ChannelMergerNode': false; - readonly 'ChannelSplitterNode': false; - readonly 'CharacterData': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'clientInformation': false; - readonly 'ClipboardEvent': false; - readonly 'ClipboardItem': false; - readonly 'close': false; - readonly 'closed': false; - readonly 'CloseEvent': false; - readonly 'Comment': false; - readonly 'CompositionEvent': false; - readonly 'CompressionStream': false; - readonly 'confirm': false; - readonly 'console': false; - readonly 'ConstantSourceNode': false; - readonly 'ConvolverNode': false; - readonly 'CountQueuingStrategy': false; - readonly 'createImageBitmap': false; - readonly 'Credential': false; - readonly 'CredentialsContainer': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CSS': false; - readonly 'CSSConditionRule': false; - readonly 'CSSFontFaceRule': false; - readonly 'CSSGroupingRule': false; - readonly 'CSSImportRule': false; - readonly 'CSSKeyframeRule': false; - readonly 'CSSKeyframesRule': false; - readonly 'CSSMatrixComponent': false; - readonly 'CSSMediaRule': false; - readonly 'CSSNamespaceRule': false; - readonly 'CSSPageRule': false; - readonly 'CSSPerspective': false; - readonly 'CSSRotate': false; - readonly 'CSSRule': false; - readonly 'CSSRuleList': false; - readonly 'CSSScale': false; - readonly 'CSSSkew': false; - readonly 'CSSSkewX': false; - readonly 'CSSSkewY': false; - readonly 'CSSStyleDeclaration': false; - readonly 'CSSStyleRule': false; - readonly 'CSSStyleSheet': false; - readonly 'CSSSupportsRule': false; - readonly 'CSSTransformValue': false; - readonly 'CSSTranslate': false; - readonly 'CustomElementRegistry': false; - readonly 'customElements': false; - readonly 'CustomEvent': false; - readonly 'DataTransfer': false; - readonly 'DataTransferItem': false; - readonly 'DataTransferItemList': false; - readonly 'DecompressionStream': false; - readonly 'defaultstatus': false; - readonly 'defaultStatus': false; - readonly 'DelayNode': false; - readonly 'DeviceMotionEvent': false; - readonly 'DeviceOrientationEvent': false; - readonly 'devicePixelRatio': false; - readonly 'dispatchEvent': false; - readonly 'document': false; - readonly 'Document': false; - readonly 'DocumentFragment': false; - readonly 'DocumentType': false; - readonly 'DOMError': false; - readonly 'DOMException': false; - readonly 'DOMImplementation': false; - readonly 'DOMMatrix': false; - readonly 'DOMMatrixReadOnly': false; - readonly 'DOMParser': false; - readonly 'DOMPoint': false; - readonly 'DOMPointReadOnly': false; - readonly 'DOMQuad': false; - readonly 'DOMRect': false; - readonly 'DOMRectList': false; - readonly 'DOMRectReadOnly': false; - readonly 'DOMStringList': false; - readonly 'DOMStringMap': false; - readonly 'DOMTokenList': false; - readonly 'DragEvent': false; - readonly 'DynamicsCompressorNode': false; - readonly 'Element': false; - readonly 'ErrorEvent': false; - readonly 'event': false; - readonly 'Event': false; - readonly 'EventSource': false; - readonly 'EventTarget': false; - readonly 'external': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FileList': false; - readonly 'FileReader': false; - readonly 'find': false; - readonly 'focus': false; - readonly 'FocusEvent': false; - readonly 'FontFace': false; - readonly 'FontFaceSetLoadEvent': false; - readonly 'FormData': false; - readonly 'FormDataEvent': false; - readonly 'frameElement': false; - readonly 'frames': false; - readonly 'GainNode': false; - readonly 'Gamepad': false; - readonly 'GamepadButton': false; - readonly 'GamepadEvent': false; - readonly 'getComputedStyle': false; - readonly 'getSelection': false; - readonly 'HashChangeEvent': false; - readonly 'Headers': false; - readonly 'history': false; - readonly 'History': false; - readonly 'HTMLAllCollection': false; - readonly 'HTMLAnchorElement': false; - readonly 'HTMLAreaElement': false; - readonly 'HTMLAudioElement': false; - readonly 'HTMLBaseElement': false; - readonly 'HTMLBodyElement': false; - readonly 'HTMLBRElement': false; - readonly 'HTMLButtonElement': false; - readonly 'HTMLCanvasElement': false; - readonly 'HTMLCollection': false; - readonly 'HTMLContentElement': false; - readonly 'HTMLDataElement': false; - readonly 'HTMLDataListElement': false; - readonly 'HTMLDetailsElement': false; - readonly 'HTMLDialogElement': false; - readonly 'HTMLDirectoryElement': false; - readonly 'HTMLDivElement': false; - readonly 'HTMLDListElement': false; - readonly 'HTMLDocument': false; - readonly 'HTMLElement': false; - readonly 'HTMLEmbedElement': false; - readonly 'HTMLFieldSetElement': false; - readonly 'HTMLFontElement': false; - readonly 'HTMLFormControlsCollection': false; - readonly 'HTMLFormElement': false; - readonly 'HTMLFrameElement': false; - readonly 'HTMLFrameSetElement': false; - readonly 'HTMLHeadElement': false; - readonly 'HTMLHeadingElement': false; - readonly 'HTMLHRElement': false; - readonly 'HTMLHtmlElement': false; - readonly 'HTMLIFrameElement': false; - readonly 'HTMLImageElement': false; - readonly 'HTMLInputElement': false; - readonly 'HTMLLabelElement': false; - readonly 'HTMLLegendElement': false; - readonly 'HTMLLIElement': false; - readonly 'HTMLLinkElement': false; - readonly 'HTMLMapElement': false; - readonly 'HTMLMarqueeElement': false; - readonly 'HTMLMediaElement': false; - readonly 'HTMLMenuElement': false; - readonly 'HTMLMetaElement': false; - readonly 'HTMLMeterElement': false; - readonly 'HTMLModElement': false; - readonly 'HTMLObjectElement': false; - readonly 'HTMLOListElement': false; - readonly 'HTMLOptGroupElement': false; - readonly 'HTMLOptionElement': false; - readonly 'HTMLOptionsCollection': false; - readonly 'HTMLOutputElement': false; - readonly 'HTMLParagraphElement': false; - readonly 'HTMLParamElement': false; - readonly 'HTMLPictureElement': false; - readonly 'HTMLPreElement': false; - readonly 'HTMLProgressElement': false; - readonly 'HTMLQuoteElement': false; - readonly 'HTMLScriptElement': false; - readonly 'HTMLSelectElement': false; - readonly 'HTMLShadowElement': false; - readonly 'HTMLSlotElement': false; - readonly 'HTMLSourceElement': false; - readonly 'HTMLSpanElement': false; - readonly 'HTMLStyleElement': false; - readonly 'HTMLTableCaptionElement': false; - readonly 'HTMLTableCellElement': false; - readonly 'HTMLTableColElement': false; - readonly 'HTMLTableElement': false; - readonly 'HTMLTableRowElement': false; - readonly 'HTMLTableSectionElement': false; - readonly 'HTMLTemplateElement': false; - readonly 'HTMLTextAreaElement': false; - readonly 'HTMLTimeElement': false; - readonly 'HTMLTitleElement': false; - readonly 'HTMLTrackElement': false; - readonly 'HTMLUListElement': false; - readonly 'HTMLUnknownElement': false; - readonly 'HTMLVideoElement': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'IdleDeadline': false; - readonly 'IIRFilterNode': false; - readonly 'Image': false; - readonly 'ImageBitmap': false; - readonly 'ImageBitmapRenderingContext': false; - readonly 'ImageCapture': false; - readonly 'ImageData': false; - readonly 'indexedDB': false; - readonly 'innerHeight': false; - readonly 'innerWidth': false; - readonly 'InputEvent': false; - readonly 'IntersectionObserver': false; - readonly 'IntersectionObserverEntry': false; - readonly 'Intl': false; - readonly 'isSecureContext': false; - readonly 'KeyboardEvent': false; - readonly 'KeyframeEffect': false; - readonly 'KeyframeEffectReadOnly': false; - readonly 'length': false; - readonly 'localStorage': false; - readonly 'location': true; - readonly 'Location': false; - readonly 'locationbar': false; - readonly 'matchMedia': false; - readonly 'MediaDeviceInfo': false; - readonly 'MediaDevices': false; - readonly 'MediaElementAudioSourceNode': false; - readonly 'MediaEncryptedEvent': false; - readonly 'MediaError': false; - readonly 'MediaKeyMessageEvent': false; - readonly 'MediaKeySession': false; - readonly 'MediaKeyStatusMap': false; - readonly 'MediaKeySystemAccess': false; - readonly 'MediaList': false; - readonly 'MediaMetadata': false; - readonly 'MediaQueryList': false; - readonly 'MediaQueryListEvent': false; - readonly 'MediaRecorder': false; - readonly 'MediaSettingsRange': false; - readonly 'MediaSource': false; - readonly 'MediaStream': false; - readonly 'MediaStreamAudioDestinationNode': false; - readonly 'MediaStreamAudioSourceNode': false; - readonly 'MediaStreamConstraints': false; - readonly 'MediaStreamEvent': false; - readonly 'MediaStreamTrack': false; - readonly 'MediaStreamTrackEvent': false; - readonly 'menubar': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'MIDIAccess': false; - readonly 'MIDIConnectionEvent': false; - readonly 'MIDIInput': false; - readonly 'MIDIInputMap': false; - readonly 'MIDIMessageEvent': false; - readonly 'MIDIOutput': false; - readonly 'MIDIOutputMap': false; - readonly 'MIDIPort': false; - readonly 'MimeType': false; - readonly 'MimeTypeArray': false; - readonly 'MouseEvent': false; - readonly 'moveBy': false; - readonly 'moveTo': false; - readonly 'MutationEvent': false; - readonly 'MutationObserver': false; - readonly 'MutationRecord': false; - readonly 'name': false; - readonly 'NamedNodeMap': false; - readonly 'NavigationPreloadManager': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'NavigatorUAData': false; - readonly 'NetworkInformation': false; - readonly 'Node': false; - readonly 'NodeFilter': false; - readonly 'NodeIterator': false; - readonly 'NodeList': false; - readonly 'Notification': false; - readonly 'OfflineAudioCompletionEvent': false; - readonly 'OfflineAudioContext': false; - readonly 'offscreenBuffering': false; - readonly 'OffscreenCanvas': true; - readonly 'OffscreenCanvasRenderingContext2D': false; - readonly 'onabort': true; - readonly 'onafterprint': true; - readonly 'onanimationend': true; - readonly 'onanimationiteration': true; - readonly 'onanimationstart': true; - readonly 'onappinstalled': true; - readonly 'onauxclick': true; - readonly 'onbeforeinstallprompt': true; - readonly 'onbeforeprint': true; - readonly 'onbeforeunload': true; - readonly 'onblur': true; - readonly 'oncancel': true; - readonly 'oncanplay': true; - readonly 'oncanplaythrough': true; - readonly 'onchange': true; - readonly 'onclick': true; - readonly 'onclose': true; - readonly 'oncontextmenu': true; - readonly 'oncuechange': true; - readonly 'ondblclick': true; - readonly 'ondevicemotion': true; - readonly 'ondeviceorientation': true; - readonly 'ondeviceorientationabsolute': true; - readonly 'ondrag': true; - readonly 'ondragend': true; - readonly 'ondragenter': true; - readonly 'ondragleave': true; - readonly 'ondragover': true; - readonly 'ondragstart': true; - readonly 'ondrop': true; - readonly 'ondurationchange': true; - readonly 'onemptied': true; - readonly 'onended': true; - readonly 'onerror': true; - readonly 'onfocus': true; - readonly 'ongotpointercapture': true; - readonly 'onhashchange': true; - readonly 'oninput': true; - readonly 'oninvalid': true; - readonly 'onkeydown': true; - readonly 'onkeypress': true; - readonly 'onkeyup': true; - readonly 'onlanguagechange': true; - readonly 'onload': true; - readonly 'onloadeddata': true; - readonly 'onloadedmetadata': true; - readonly 'onloadstart': true; - readonly 'onlostpointercapture': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onmousedown': true; - readonly 'onmouseenter': true; - readonly 'onmouseleave': true; - readonly 'onmousemove': true; - readonly 'onmouseout': true; - readonly 'onmouseover': true; - readonly 'onmouseup': true; - readonly 'onmousewheel': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpagehide': true; - readonly 'onpageshow': true; - readonly 'onpause': true; - readonly 'onplay': true; - readonly 'onplaying': true; - readonly 'onpointercancel': true; - readonly 'onpointerdown': true; - readonly 'onpointerenter': true; - readonly 'onpointerleave': true; - readonly 'onpointermove': true; - readonly 'onpointerout': true; - readonly 'onpointerover': true; - readonly 'onpointerup': true; - readonly 'onpopstate': true; - readonly 'onprogress': true; - readonly 'onratechange': true; - readonly 'onrejectionhandled': true; - readonly 'onreset': true; - readonly 'onresize': true; - readonly 'onscroll': true; - readonly 'onsearch': true; - readonly 'onseeked': true; - readonly 'onseeking': true; - readonly 'onselect': true; - readonly 'onstalled': true; - readonly 'onstorage': true; - readonly 'onsubmit': true; - readonly 'onsuspend': true; - readonly 'ontimeupdate': true; - readonly 'ontoggle': true; - readonly 'ontransitionend': true; - readonly 'onunhandledrejection': true; - readonly 'onunload': true; - readonly 'onvolumechange': true; - readonly 'onwaiting': true; - readonly 'onwheel': true; - readonly 'open': false; - readonly 'openDatabase': false; - readonly 'opener': false; - readonly 'Option': false; - readonly 'origin': false; - readonly 'OscillatorNode': false; - readonly 'outerHeight': false; - readonly 'outerWidth': false; - readonly 'OverconstrainedError': false; - readonly 'PageTransitionEvent': false; - readonly 'pageXOffset': false; - readonly 'pageYOffset': false; - readonly 'PannerNode': false; - readonly 'parent': false; - readonly 'Path2D': false; - readonly 'PaymentAddress': false; - readonly 'PaymentRequest': false; - readonly 'PaymentRequestUpdateEvent': false; - readonly 'PaymentResponse': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceLongTaskTiming': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceNavigationTiming': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformancePaintTiming': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'PeriodicWave': false; - readonly 'Permissions': false; - readonly 'PermissionStatus': false; - readonly 'personalbar': false; - readonly 'PhotoCapabilities': false; - readonly 'Plugin': false; - readonly 'PluginArray': false; - readonly 'PointerEvent': false; - readonly 'PopStateEvent': false; - readonly 'postMessage': false; - readonly 'Presentation': false; - readonly 'PresentationAvailability': false; - readonly 'PresentationConnection': false; - readonly 'PresentationConnectionAvailableEvent': false; - readonly 'PresentationConnectionCloseEvent': false; - readonly 'PresentationConnectionList': false; - readonly 'PresentationReceiver': false; - readonly 'PresentationRequest': false; - readonly 'print': false; - readonly 'ProcessingInstruction': false; - readonly 'ProgressEvent': false; - readonly 'PromiseRejectionEvent': false; - readonly 'prompt': false; - readonly 'PushManager': false; - readonly 'PushSubscription': false; - readonly 'PushSubscriptionOptions': false; - readonly 'queueMicrotask': false; - readonly 'RadioNodeList': false; - readonly 'Range': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registerProcessor': false; - readonly 'RemotePlayback': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'Request': false; - readonly 'requestAnimationFrame': false; - readonly 'requestIdleCallback': false; - readonly 'resizeBy': false; - readonly 'ResizeObserver': false; - readonly 'ResizeObserverEntry': false; - readonly 'resizeTo': false; - readonly 'Response': false; - readonly 'RTCCertificate': false; - readonly 'RTCDataChannel': false; - readonly 'RTCDataChannelEvent': false; - readonly 'RTCDtlsTransport': false; - readonly 'RTCIceCandidate': false; - readonly 'RTCIceGatherer': false; - readonly 'RTCIceTransport': false; - readonly 'RTCPeerConnection': false; - readonly 'RTCPeerConnectionIceEvent': false; - readonly 'RTCRtpContributingSource': false; - readonly 'RTCRtpReceiver': false; - readonly 'RTCRtpSender': false; - readonly 'RTCSctpTransport': false; - readonly 'RTCSessionDescription': false; - readonly 'RTCStatsReport': false; - readonly 'RTCTrackEvent': false; - readonly 'screen': false; - readonly 'Screen': false; - readonly 'screenLeft': false; - readonly 'ScreenOrientation': false; - readonly 'screenTop': false; - readonly 'screenX': false; - readonly 'screenY': false; - readonly 'ScriptProcessorNode': false; - readonly 'scroll': false; - readonly 'scrollbars': false; - readonly 'scrollBy': false; - readonly 'scrollTo': false; - readonly 'scrollX': false; - readonly 'scrollY': false; - readonly 'SecurityPolicyViolationEvent': false; - readonly 'Selection': false; - readonly 'self': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'sessionStorage': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'ShadowRoot': false; - readonly 'SharedWorker': false; - readonly 'SourceBuffer': false; - readonly 'SourceBufferList': false; - readonly 'speechSynthesis': false; - readonly 'SpeechSynthesisEvent': false; - readonly 'SpeechSynthesisUtterance': false; - readonly 'StaticRange': false; - readonly 'status': false; - readonly 'statusbar': false; - readonly 'StereoPannerNode': false; - readonly 'stop': false; - readonly 'Storage': false; - readonly 'StorageEvent': false; - readonly 'StorageManager': false; - readonly 'structuredClone': false; - readonly 'styleMedia': false; - readonly 'StyleSheet': false; - readonly 'StyleSheetList': false; - readonly 'SubmitEvent': false; - readonly 'SubtleCrypto': false; - readonly 'SVGAElement': false; - readonly 'SVGAngle': false; - readonly 'SVGAnimatedAngle': false; - readonly 'SVGAnimatedBoolean': false; - readonly 'SVGAnimatedEnumeration': false; - readonly 'SVGAnimatedInteger': false; - readonly 'SVGAnimatedLength': false; - readonly 'SVGAnimatedLengthList': false; - readonly 'SVGAnimatedNumber': false; - readonly 'SVGAnimatedNumberList': false; - readonly 'SVGAnimatedPreserveAspectRatio': false; - readonly 'SVGAnimatedRect': false; - readonly 'SVGAnimatedString': false; - readonly 'SVGAnimatedTransformList': false; - readonly 'SVGAnimateElement': false; - readonly 'SVGAnimateMotionElement': false; - readonly 'SVGAnimateTransformElement': false; - readonly 'SVGAnimationElement': false; - readonly 'SVGCircleElement': false; - readonly 'SVGClipPathElement': false; - readonly 'SVGComponentTransferFunctionElement': false; - readonly 'SVGDefsElement': false; - readonly 'SVGDescElement': false; - readonly 'SVGDiscardElement': false; - readonly 'SVGElement': false; - readonly 'SVGEllipseElement': false; - readonly 'SVGFEBlendElement': false; - readonly 'SVGFEColorMatrixElement': false; - readonly 'SVGFEComponentTransferElement': false; - readonly 'SVGFECompositeElement': false; - readonly 'SVGFEConvolveMatrixElement': false; - readonly 'SVGFEDiffuseLightingElement': false; - readonly 'SVGFEDisplacementMapElement': false; - readonly 'SVGFEDistantLightElement': false; - readonly 'SVGFEDropShadowElement': false; - readonly 'SVGFEFloodElement': false; - readonly 'SVGFEFuncAElement': false; - readonly 'SVGFEFuncBElement': false; - readonly 'SVGFEFuncGElement': false; - readonly 'SVGFEFuncRElement': false; - readonly 'SVGFEGaussianBlurElement': false; - readonly 'SVGFEImageElement': false; - readonly 'SVGFEMergeElement': false; - readonly 'SVGFEMergeNodeElement': false; - readonly 'SVGFEMorphologyElement': false; - readonly 'SVGFEOffsetElement': false; - readonly 'SVGFEPointLightElement': false; - readonly 'SVGFESpecularLightingElement': false; - readonly 'SVGFESpotLightElement': false; - readonly 'SVGFETileElement': false; - readonly 'SVGFETurbulenceElement': false; - readonly 'SVGFilterElement': false; - readonly 'SVGForeignObjectElement': false; - readonly 'SVGGElement': false; - readonly 'SVGGeometryElement': false; - readonly 'SVGGradientElement': false; - readonly 'SVGGraphicsElement': false; - readonly 'SVGImageElement': false; - readonly 'SVGLength': false; - readonly 'SVGLengthList': false; - readonly 'SVGLinearGradientElement': false; - readonly 'SVGLineElement': false; - readonly 'SVGMarkerElement': false; - readonly 'SVGMaskElement': false; - readonly 'SVGMatrix': false; - readonly 'SVGMetadataElement': false; - readonly 'SVGMPathElement': false; - readonly 'SVGNumber': false; - readonly 'SVGNumberList': false; - readonly 'SVGPathElement': false; - readonly 'SVGPatternElement': false; - readonly 'SVGPoint': false; - readonly 'SVGPointList': false; - readonly 'SVGPolygonElement': false; - readonly 'SVGPolylineElement': false; - readonly 'SVGPreserveAspectRatio': false; - readonly 'SVGRadialGradientElement': false; - readonly 'SVGRect': false; - readonly 'SVGRectElement': false; - readonly 'SVGScriptElement': false; - readonly 'SVGSetElement': false; - readonly 'SVGStopElement': false; - readonly 'SVGStringList': false; - readonly 'SVGStyleElement': false; - readonly 'SVGSVGElement': false; - readonly 'SVGSwitchElement': false; - readonly 'SVGSymbolElement': false; - readonly 'SVGTextContentElement': false; - readonly 'SVGTextElement': false; - readonly 'SVGTextPathElement': false; - readonly 'SVGTextPositioningElement': false; - readonly 'SVGTitleElement': false; - readonly 'SVGTransform': false; - readonly 'SVGTransformList': false; - readonly 'SVGTSpanElement': false; - readonly 'SVGUnitTypes': false; - readonly 'SVGUseElement': false; - readonly 'SVGViewElement': false; - readonly 'TaskAttributionTiming': false; - readonly 'Text': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TextEvent': false; - readonly 'TextMetrics': false; - readonly 'TextTrack': false; - readonly 'TextTrackCue': false; - readonly 'TextTrackCueList': false; - readonly 'TextTrackList': false; - readonly 'TimeRanges': false; - readonly 'ToggleEvent': false; - readonly 'toolbar': false; - readonly 'top': false; - readonly 'Touch': false; - readonly 'TouchEvent': false; - readonly 'TouchList': false; - readonly 'TrackEvent': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'TransitionEvent': false; - readonly 'TreeWalker': false; - readonly 'UIEvent': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'ValidityState': false; - readonly 'visualViewport': false; - readonly 'VisualViewport': false; - readonly 'VTTCue': false; - readonly 'WaveShaperNode': false; - readonly 'WebAssembly': false; - readonly 'WebGL2RenderingContext': false; - readonly 'WebGLActiveInfo': false; - readonly 'WebGLBuffer': false; - readonly 'WebGLContextEvent': false; - readonly 'WebGLFramebuffer': false; - readonly 'WebGLProgram': false; - readonly 'WebGLQuery': false; - readonly 'WebGLRenderbuffer': false; - readonly 'WebGLRenderingContext': false; - readonly 'WebGLSampler': false; - readonly 'WebGLShader': false; - readonly 'WebGLShaderPrecisionFormat': false; - readonly 'WebGLSync': false; - readonly 'WebGLTexture': false; - readonly 'WebGLTransformFeedback': false; - readonly 'WebGLUniformLocation': false; - readonly 'WebGLVertexArrayObject': false; - readonly 'WebSocket': false; - readonly 'WheelEvent': false; - readonly 'window': false; - readonly 'Window': false; - readonly 'Worker': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLDocument': false; - readonly 'XMLHttpRequest': false; - readonly 'XMLHttpRequestEventTarget': false; - readonly 'XMLHttpRequestUpload': false; - readonly 'XMLSerializer': false; - readonly 'XPathEvaluator': false; - readonly 'XPathExpression': false; - readonly 'XPathResult': false; - readonly 'XRAnchor': false; - readonly 'XRBoundedReferenceSpace': false; - readonly 'XRCPUDepthInformation': false; - readonly 'XRDepthInformation': false; - readonly 'XRFrame': false; - readonly 'XRInputSource': false; - readonly 'XRInputSourceArray': false; - readonly 'XRInputSourceEvent': false; - readonly 'XRInputSourcesChangeEvent': false; - readonly 'XRPose': false; - readonly 'XRReferenceSpace': false; - readonly 'XRReferenceSpaceEvent': false; - readonly 'XRRenderState': false; - readonly 'XRRigidTransform': false; - readonly 'XRSession': false; - readonly 'XRSessionEvent': false; - readonly 'XRSpace': false; - readonly 'XRSystem': false; - readonly 'XRView': false; - readonly 'XRViewerPose': false; - readonly 'XRViewport': false; - readonly 'XRWebGLBinding': false; - readonly 'XRWebGLDepthInformation': false; - readonly 'XRWebGLLayer': false; - readonly 'XSLTProcessor': false; -} - -type GlobalsWorker = { - readonly 'addEventListener': false; - readonly 'applicationCache': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'close': true; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FileReaderSync': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'ImageData': false; - readonly 'importScripts': true; - readonly 'indexedDB': false; - readonly 'location': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'navigator': false; - readonly 'Notification': false; - readonly 'onclose': true; - readonly 'onconnect': true; - readonly 'onerror': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onrejectionhandled': true; - readonly 'onunhandledrejection': true; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'postMessage': true; - readonly 'Promise': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'self': true; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; -} - -type GlobalsNode = { - readonly '__dirname': false; - readonly '__filename': false; - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'exports': true; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'module': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'require': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsNodeBuiltin = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsCommonjs = { - readonly 'exports': true; - readonly 'global': false; - readonly 'module': false; - readonly 'require': false; -} - -type GlobalsAmd = { - readonly 'define': false; - readonly 'require': false; -} - -type GlobalsMocha = { - readonly 'after': false; - readonly 'afterEach': false; - readonly 'before': false; - readonly 'beforeEach': false; - readonly 'context': false; - readonly 'describe': false; - readonly 'it': false; - readonly 'mocha': false; - readonly 'run': false; - readonly 'setup': false; - readonly 'specify': false; - readonly 'suite': false; - readonly 'suiteSetup': false; - readonly 'suiteTeardown': false; - readonly 'teardown': false; - readonly 'test': false; - readonly 'xcontext': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xspecify': false; -} - -type GlobalsJasmine = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'expectAsync': false; - readonly 'fail': false; - readonly 'fdescribe': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jasmine': false; - readonly 'pending': false; - readonly 'runs': false; - readonly 'spyOn': false; - readonly 'spyOnAllFunctions': false; - readonly 'spyOnProperty': false; - readonly 'waits': false; - readonly 'waitsFor': false; - readonly 'xdescribe': false; - readonly 'xit': false; -} - -type GlobalsJest = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'fdescribe': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jest': false; - readonly 'pit': false; - readonly 'require': false; - readonly 'test': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xtest': false; -} - -type GlobalsQunit = { - readonly 'asyncTest': false; - readonly 'deepEqual': false; - readonly 'equal': false; - readonly 'expect': false; - readonly 'module': false; - readonly 'notDeepEqual': false; - readonly 'notEqual': false; - readonly 'notOk': false; - readonly 'notPropEqual': false; - readonly 'notStrictEqual': false; - readonly 'ok': false; - readonly 'propEqual': false; - readonly 'QUnit': false; - readonly 'raises': false; - readonly 'start': false; - readonly 'stop': false; - readonly 'strictEqual': false; - readonly 'test': false; - readonly 'throws': false; -} - -type GlobalsPhantomjs = { - readonly 'console': true; - readonly 'exports': true; - readonly 'phantom': true; - readonly 'require': true; - readonly 'WebPage': true; -} - -type GlobalsCouch = { - readonly 'emit': false; - readonly 'exports': false; - readonly 'getRow': false; - readonly 'log': false; - readonly 'module': false; - readonly 'provides': false; - readonly 'require': false; - readonly 'respond': false; - readonly 'send': false; - readonly 'start': false; - readonly 'sum': false; -} - -type GlobalsRhino = { - readonly 'defineClass': false; - readonly 'deserialize': false; - readonly 'gc': false; - readonly 'help': false; - readonly 'importClass': false; - readonly 'importPackage': false; - readonly 'java': false; - readonly 'load': false; - readonly 'loadClass': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; - readonly 'readFile': false; - readonly 'readUrl': false; - readonly 'runCommand': false; - readonly 'seal': false; - readonly 'serialize': false; - readonly 'spawn': false; - readonly 'sync': false; - readonly 'toint32': false; - readonly 'version': false; -} - -type GlobalsNashorn = { - readonly '__DIR__': false; - readonly '__FILE__': false; - readonly '__LINE__': false; - readonly 'com': false; - readonly 'edu': false; - readonly 'exit': false; - readonly 'java': false; - readonly 'Java': false; - readonly 'javafx': false; - readonly 'JavaImporter': false; - readonly 'javax': false; - readonly 'JSAdapter': false; - readonly 'load': false; - readonly 'loadWithNewGlobal': false; - readonly 'org': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; -} - -type GlobalsWsh = { - readonly 'ActiveXObject': false; - readonly 'CollectGarbage': false; - readonly 'Debug': false; - readonly 'Enumerator': false; - readonly 'GetObject': false; - readonly 'RuntimeObject': false; - readonly 'ScriptEngine': false; - readonly 'ScriptEngineBuildVersion': false; - readonly 'ScriptEngineMajorVersion': false; - readonly 'ScriptEngineMinorVersion': false; - readonly 'VBArray': false; - readonly 'WScript': false; - readonly 'WSH': false; -} - -type GlobalsJquery = { - readonly '$': false; - readonly 'jQuery': false; -} - -type GlobalsYui = { - readonly 'YAHOO': false; - readonly 'YAHOO_config': false; - readonly 'YUI': false; - readonly 'YUI_config': false; -} - -type GlobalsShelljs = { - readonly 'cat': false; - readonly 'cd': false; - readonly 'chmod': false; - readonly 'config': false; - readonly 'cp': false; - readonly 'dirs': false; - readonly 'echo': false; - readonly 'env': false; - readonly 'error': false; - readonly 'exec': false; - readonly 'exit': false; - readonly 'find': false; - readonly 'grep': false; - readonly 'ln': false; - readonly 'ls': false; - readonly 'mkdir': false; - readonly 'mv': false; - readonly 'popd': false; - readonly 'pushd': false; - readonly 'pwd': false; - readonly 'rm': false; - readonly 'sed': false; - readonly 'set': false; - readonly 'target': false; - readonly 'tempdir': false; - readonly 'test': false; - readonly 'touch': false; - readonly 'which': false; -} - -type GlobalsPrototypejs = { - readonly '$': false; - readonly '$$': false; - readonly '$A': false; - readonly '$break': false; - readonly '$continue': false; - readonly '$F': false; - readonly '$H': false; - readonly '$R': false; - readonly '$w': false; - readonly 'Abstract': false; - readonly 'Ajax': false; - readonly 'Autocompleter': false; - readonly 'Builder': false; - readonly 'Class': false; - readonly 'Control': false; - readonly 'Draggable': false; - readonly 'Draggables': false; - readonly 'Droppables': false; - readonly 'Effect': false; - readonly 'Element': false; - readonly 'Enumerable': false; - readonly 'Event': false; - readonly 'Field': false; - readonly 'Form': false; - readonly 'Hash': false; - readonly 'Insertion': false; - readonly 'ObjectRange': false; - readonly 'PeriodicalExecuter': false; - readonly 'Position': false; - readonly 'Prototype': false; - readonly 'Scriptaculous': false; - readonly 'Selector': false; - readonly 'Sortable': false; - readonly 'SortableObserver': false; - readonly 'Sound': false; - readonly 'Template': false; - readonly 'Toggle': false; - readonly 'Try': false; -} - -type GlobalsMeteor = { - readonly '$': false; - readonly 'Accounts': false; - readonly 'AccountsClient': false; - readonly 'AccountsCommon': false; - readonly 'AccountsServer': false; - readonly 'App': false; - readonly 'Assets': false; - readonly 'Blaze': false; - readonly 'check': false; - readonly 'Cordova': false; - readonly 'DDP': false; - readonly 'DDPRateLimiter': false; - readonly 'DDPServer': false; - readonly 'Deps': false; - readonly 'EJSON': false; - readonly 'Email': false; - readonly 'HTTP': false; - readonly 'Log': false; - readonly 'Match': false; - readonly 'Meteor': false; - readonly 'Mongo': false; - readonly 'MongoInternals': false; - readonly 'Npm': false; - readonly 'Package': false; - readonly 'Plugin': false; - readonly 'process': false; - readonly 'Random': false; - readonly 'ReactiveDict': false; - readonly 'ReactiveVar': false; - readonly 'Router': false; - readonly 'ServiceConfiguration': false; - readonly 'Session': false; - readonly 'share': false; - readonly 'Spacebars': false; - readonly 'Template': false; - readonly 'Tinytest': false; - readonly 'Tracker': false; - readonly 'UI': false; - readonly 'Utils': false; - readonly 'WebApp': false; - readonly 'WebAppInternals': false; -} - -type GlobalsMongo = { - readonly '_isWindows': false; - readonly '_rand': false; - readonly 'BulkWriteResult': false; - readonly 'cat': false; - readonly 'cd': false; - readonly 'connect': false; - readonly 'db': false; - readonly 'getHostName': false; - readonly 'getMemInfo': false; - readonly 'hostname': false; - readonly 'ISODate': false; - readonly 'listFiles': false; - readonly 'load': false; - readonly 'ls': false; - readonly 'md5sumFile': false; - readonly 'mkdir': false; - readonly 'Mongo': false; - readonly 'NumberInt': false; - readonly 'NumberLong': false; - readonly 'ObjectId': false; - readonly 'PlanCache': false; - readonly 'print': false; - readonly 'printjson': false; - readonly 'pwd': false; - readonly 'quit': false; - readonly 'removeFile': false; - readonly 'rs': false; - readonly 'sh': false; - readonly 'UUID': false; - readonly 'version': false; - readonly 'WriteResult': false; -} - -type GlobalsApplescript = { - readonly '$': false; - readonly 'Application': false; - readonly 'Automation': false; - readonly 'console': false; - readonly 'delay': false; - readonly 'Library': false; - readonly 'ObjC': false; - readonly 'ObjectSpecifier': false; - readonly 'Path': false; - readonly 'Progress': false; - readonly 'Ref': false; -} - -type GlobalsServiceworker = { - readonly 'addEventListener': false; - readonly 'applicationCache': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'Client': false; - readonly 'clients': false; - readonly 'Clients': false; - readonly 'close': true; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'ExtendableEvent': false; - readonly 'ExtendableMessageEvent': false; - readonly 'fetch': false; - readonly 'FetchEvent': false; - readonly 'File': false; - readonly 'FileReaderSync': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'ImageData': false; - readonly 'importScripts': false; - readonly 'indexedDB': false; - readonly 'location': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'navigator': false; - readonly 'Notification': false; - readonly 'onclose': true; - readonly 'onconnect': true; - readonly 'onerror': true; - readonly 'onfetch': true; - readonly 'oninstall': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onnotificationclick': true; - readonly 'onnotificationclose': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpush': true; - readonly 'onpushsubscriptionchange': true; - readonly 'onrejectionhandled': true; - readonly 'onsync': true; - readonly 'onunhandledrejection': true; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'postMessage': true; - readonly 'Promise': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registration': false; - readonly 'removeEventListener': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'self': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerGlobalScope': false; - readonly 'ServiceWorkerMessageEvent': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'skipWaiting': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WindowClient': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; -} - -type GlobalsAtomtest = { - readonly 'advanceClock': false; - readonly 'atom': false; - readonly 'fakeClearInterval': false; - readonly 'fakeClearTimeout': false; - readonly 'fakeSetInterval': false; - readonly 'fakeSetTimeout': false; - readonly 'resetTimeouts': false; - readonly 'waitsForPromise': false; -} - -type GlobalsEmbertest = { - readonly 'andThen': false; - readonly 'click': false; - readonly 'currentPath': false; - readonly 'currentRouteName': false; - readonly 'currentURL': false; - readonly 'fillIn': false; - readonly 'find': false; - readonly 'findAll': false; - readonly 'findWithAssert': false; - readonly 'keyEvent': false; - readonly 'pauseTest': false; - readonly 'resumeTest': false; - readonly 'triggerEvent': false; - readonly 'visit': false; - readonly 'wait': false; -} - -type GlobalsProtractor = { - readonly '$': false; - readonly '$$': false; - readonly 'browser': false; - readonly 'by': false; - readonly 'By': false; - readonly 'DartObject': false; - readonly 'element': false; - readonly 'protractor': false; -} - -type GlobalsSharednodebrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'Intl': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsWebextensions = { - readonly 'browser': false; - readonly 'chrome': false; - readonly 'opr': false; -} - -type GlobalsGreasemonkey = { - readonly 'cloneInto': false; - readonly 'createObjectIn': false; - readonly 'exportFunction': false; - readonly 'GM': false; - readonly 'GM_addElement': false; - readonly 'GM_addStyle': false; - readonly 'GM_addValueChangeListener': false; - readonly 'GM_deleteValue': false; - readonly 'GM_download': false; - readonly 'GM_getResourceText': false; - readonly 'GM_getResourceURL': false; - readonly 'GM_getTab': false; - readonly 'GM_getTabs': false; - readonly 'GM_getValue': false; - readonly 'GM_info': false; - readonly 'GM_listValues': false; - readonly 'GM_log': false; - readonly 'GM_notification': false; - readonly 'GM_openInTab': false; - readonly 'GM_registerMenuCommand': false; - readonly 'GM_removeValueChangeListener': false; - readonly 'GM_saveTab': false; - readonly 'GM_setClipboard': false; - readonly 'GM_setValue': false; - readonly 'GM_unregisterMenuCommand': false; - readonly 'GM_xmlhttpRequest': false; - readonly 'unsafeWindow': false; -} - -type GlobalsDevtools = { - readonly '$': false; - readonly '$_': false; - readonly '$$': false; - readonly '$0': false; - readonly '$1': false; - readonly '$2': false; - readonly '$3': false; - readonly '$4': false; - readonly '$x': false; - readonly 'chrome': false; - readonly 'clear': false; - readonly 'copy': false; - readonly 'debug': false; - readonly 'dir': false; - readonly 'dirxml': false; - readonly 'getEventListeners': false; - readonly 'inspect': false; - readonly 'keys': false; - readonly 'monitor': false; - readonly 'monitorEvents': false; - readonly 'profile': false; - readonly 'profileEnd': false; - readonly 'queryObjects': false; - readonly 'table': false; - readonly 'undebug': false; - readonly 'unmonitor': false; - readonly 'unmonitorEvents': false; - readonly 'values': false; -} - -type Globals = { - readonly 'builtin': GlobalsBuiltin; - readonly 'es5': GlobalsEs5; - readonly 'es2015': GlobalsEs2015; - readonly 'es2017': GlobalsEs2017; - readonly 'es2020': GlobalsEs2020; - readonly 'es2021': GlobalsEs2021; - readonly 'browser': GlobalsBrowser; - readonly 'worker': GlobalsWorker; - readonly 'node': GlobalsNode; - readonly 'nodeBuiltin': GlobalsNodeBuiltin; - readonly 'commonjs': GlobalsCommonjs; - readonly 'amd': GlobalsAmd; - readonly 'mocha': GlobalsMocha; - readonly 'jasmine': GlobalsJasmine; - readonly 'jest': GlobalsJest; - readonly 'qunit': GlobalsQunit; - readonly 'phantomjs': GlobalsPhantomjs; - readonly 'couch': GlobalsCouch; - readonly 'rhino': GlobalsRhino; - readonly 'nashorn': GlobalsNashorn; - readonly 'wsh': GlobalsWsh; - readonly 'jquery': GlobalsJquery; - readonly 'yui': GlobalsYui; - readonly 'shelljs': GlobalsShelljs; - readonly 'prototypejs': GlobalsPrototypejs; - readonly 'meteor': GlobalsMeteor; - readonly 'mongo': GlobalsMongo; - readonly 'applescript': GlobalsApplescript; - readonly 'serviceworker': GlobalsServiceworker; - readonly 'atomtest': GlobalsAtomtest; - readonly 'embertest': GlobalsEmbertest; - readonly 'protractor': GlobalsProtractor; - readonly 'shared-node-browser': GlobalsSharednodebrowser; - readonly 'webextensions': GlobalsWebextensions; - readonly 'greasemonkey': GlobalsGreasemonkey; - readonly 'devtools': GlobalsDevtools; -} - -declare const globals: Globals; - -export = globals; diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.js b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.js deleted file mode 100644 index a951582e..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = require('./globals.json'); diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/license b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/package.json b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/package.json deleted file mode 100644 index fca10a52..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "globals", - "version": "14.0.0", - "description": "Global identifiers from different JavaScript environments", - "license": "MIT", - "repository": "sindresorhus/globals", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "sideEffects": false, - "engines": { - "node": ">=18" - }, - "scripts": { - "test": "xo && ava && tsd", - "prepare": "npm run --silent update-types", - "update-builtin-globals": "node scripts/get-builtin-globals.mjs", - "update-types": "node scripts/generate-types.mjs > index.d.ts" - }, - "files": [ - "index.js", - "index.d.ts", - "globals.json" - ], - "keywords": [ - "globals", - "global", - "identifiers", - "variables", - "vars", - "jshint", - "eslint", - "environments" - ], - "devDependencies": { - "ava": "^2.4.0", - "cheerio": "^1.0.0-rc.12", - "tsd": "^0.30.4", - "type-fest": "^4.10.2", - "xo": "^0.36.1" - }, - "xo": { - "ignores": [ - "get-browser-globals.js" - ], - "rules": { - "node/no-unsupported-features/es-syntax": "off" - } - }, - "tsd": { - "compilerOptions": { - "resolveJsonModule": true - } - } -} diff --git a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/readme.md b/graphql/node_modules/@eslint/eslintrc/node_modules/globals/readme.md deleted file mode 100644 index 29442a85..00000000 --- a/graphql/node_modules/@eslint/eslintrc/node_modules/globals/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# globals - -> Global identifiers from different JavaScript environments - -It's just a [JSON file](globals.json), so use it in any environment. - -This package is used by ESLint. - -**This package [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).** - -## Install - -```sh -npm install globals -``` - -## Usage - -```js -const globals = require('globals'); - -console.log(globals.browser); -/* -{ - addEventListener: false, - applicationCache: false, - ArrayBuffer: false, - atob: false, - … -} -*/ -``` - -Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise. - -For Node.js this package provides two sets of globals: - -- `globals.nodeBuiltin`: Globals available to all code running in Node.js. - These will usually be available as properties on the `global` object and include `process`, `Buffer`, but not CommonJS arguments like `require`. - See: https://nodejs.org/api/globals.html -- `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments ("CommonJS module scope"). - See: https://nodejs.org/api/modules.html#modules_the_module_scope - -When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references. diff --git a/graphql/node_modules/@eslint/eslintrc/package.json b/graphql/node_modules/@eslint/eslintrc/package.json deleted file mode 100644 index fea77e2d..00000000 --- a/graphql/node_modules/@eslint/eslintrc/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "@eslint/eslintrc", - "version": "3.1.0", - "description": "The legacy ESLintRC config file format for ESLint", - "type": "module", - "main": "./dist/eslintrc.cjs", - "exports": { - ".": { - "import": "./lib/index.js", - "require": "./dist/eslintrc.cjs" - }, - "./package.json": "./package.json", - "./universal": { - "import": "./lib/index-universal.js", - "require": "./dist/eslintrc-universal.cjs" - } - }, - "files": [ - "lib", - "conf", - "LICENSE", - "dist", - "universal.js" - ], - "publishConfig": { - "access": "public" - }, - "scripts": { - "build": "rollup -c", - "lint": "eslint . --report-unused-disable-directives", - "lint:fix": "npm run lint -- --fix", - "prepare": "npm run build", - "release:generate:latest": "eslint-generate-release", - "release:generate:alpha": "eslint-generate-prerelease alpha", - "release:generate:beta": "eslint-generate-prerelease beta", - "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release", - "test": "mocha -R progress -c 'tests/lib/*.cjs' && c8 mocha -R progress -c 'tests/lib/**/*.js'" - }, - "repository": "eslint/eslintrc", - "funding": "https://opencollective.com/eslint", - "keywords": [ - "ESLint", - "ESLintRC", - "Configuration" - ], - "author": "Nicholas C. Zakas", - "license": "MIT", - "bugs": { - "url": "https://github.com/eslint/eslintrc/issues" - }, - "homepage": "https://github.com/eslint/eslintrc#readme", - "devDependencies": { - "c8": "^7.7.3", - "chai": "^4.3.4", - "eslint": "^7.31.0", - "eslint-config-eslint": "^7.0.0", - "eslint-plugin-jsdoc": "^35.4.1", - "eslint-plugin-node": "^11.1.0", - "eslint-release": "^3.2.0", - "fs-teardown": "^0.1.3", - "mocha": "^9.0.3", - "rollup": "^2.70.1", - "shelljs": "^0.8.5", - "sinon": "^11.1.2", - "temp-dir": "^2.0.0" - }, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/graphql/node_modules/@eslint/eslintrc/universal.js b/graphql/node_modules/@eslint/eslintrc/universal.js deleted file mode 100644 index 4e1846ee..00000000 --- a/graphql/node_modules/@eslint/eslintrc/universal.js +++ /dev/null @@ -1,9 +0,0 @@ -// Jest (and probably some other runtimes with custom implementations of -// `require`) doesn't support `exports` in `package.json`, so this file is here -// to help them load this module. Note that it is also `.js` and not `.cjs` for -// the same reason - `cjs` files requires to be loaded with an extension, but -// since Jest doesn't respect `module` outside of ESM mode it still works in -// this case (and the `require` in _this_ file does specify the extension). - -// eslint-disable-next-line no-undef -module.exports = require("./dist/eslintrc-universal.cjs"); diff --git a/graphql/node_modules/@eslint/js/LICENSE b/graphql/node_modules/@eslint/js/LICENSE deleted file mode 100644 index b607bb36..00000000 --- a/graphql/node_modules/@eslint/js/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright OpenJS Foundation and other contributors, - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/@eslint/js/README.md b/graphql/node_modules/@eslint/js/README.md deleted file mode 100644 index a8121c3a..00000000 --- a/graphql/node_modules/@eslint/js/README.md +++ /dev/null @@ -1,57 +0,0 @@ -[![npm version](https://img.shields.io/npm/v/@eslint/js.svg)](https://www.npmjs.com/package/@eslint/js) - -# ESLint JavaScript Plugin - -[Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat) - -The beginnings of separating out JavaScript-specific functionality from ESLint. - -Right now, this plugin contains two configurations: - -* `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`) -* `all` - enables all ESLint rules (the replacement for `"eslint:all"`) - -## Installation - -```shell -npm install @eslint/js -D -``` - -## Usage - -Use in your `eslint.config.js` file anytime you want to extend one of the configs: - -```js -import js from "@eslint/js"; - -export default [ - - // apply recommended rules to JS files - { - files: ["**/*.js"], - rules: js.configs.recommended.rules - }, - - // apply recommended rules to JS files with an override - { - files: ["**/*.js"], - rules: { - ...js.configs.recommended.rules, - "no-unused-vars": "warn" - } - }, - - // apply all rules to JS files - { - files: ["**/*.js"], - rules: { - ...js.configs.all.rules, - "no-unused-vars": "warn" - } - } -] -``` - -## License - -MIT diff --git a/graphql/node_modules/@eslint/js/package.json b/graphql/node_modules/@eslint/js/package.json deleted file mode 100644 index 3120dd37..00000000 --- a/graphql/node_modules/@eslint/js/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@eslint/js", - "version": "9.9.0", - "description": "ESLint JavaScript language implementation", - "main": "./src/index.js", - "scripts": {}, - "files": [ - "LICENSE", - "README.md", - "src" - ], - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/eslint/eslint.git", - "directory": "packages/js" - }, - "homepage": "https://eslint.org", - "bugs": "https://github.com/eslint/eslint/issues/", - "keywords": [ - "javascript", - "eslint-plugin", - "eslint" - ], - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/graphql/node_modules/@eslint/js/src/configs/eslint-all.js b/graphql/node_modules/@eslint/js/src/configs/eslint-all.js deleted file mode 100644 index e7f4e0e3..00000000 --- a/graphql/node_modules/@eslint/js/src/configs/eslint-all.js +++ /dev/null @@ -1,217 +0,0 @@ -/* - * WARNING: This file is autogenerated using the tools/update-eslint-all.js - * script. Do not edit manually. - */ -"use strict"; - -/* eslint quote-props: off -- autogenerated so don't lint */ - -/* - * IMPORTANT! - * - * We cannot add a "name" property to this object because it's still used in eslintrc - * which doesn't support the "name" property. If we add a "name" property, it will - * cause an error. - */ - -module.exports = Object.freeze({ - "rules": { - "accessor-pairs": "error", - "array-callback-return": "error", - "arrow-body-style": "error", - "block-scoped-var": "error", - "camelcase": "error", - "capitalized-comments": "error", - "class-methods-use-this": "error", - "complexity": "error", - "consistent-return": "error", - "consistent-this": "error", - "constructor-super": "error", - "curly": "error", - "default-case": "error", - "default-case-last": "error", - "default-param-last": "error", - "dot-notation": "error", - "eqeqeq": "error", - "for-direction": "error", - "func-name-matching": "error", - "func-names": "error", - "func-style": "error", - "getter-return": "error", - "grouped-accessor-pairs": "error", - "guard-for-in": "error", - "id-denylist": "error", - "id-length": "error", - "id-match": "error", - "init-declarations": "error", - "logical-assignment-operators": "error", - "max-classes-per-file": "error", - "max-depth": "error", - "max-lines": "error", - "max-lines-per-function": "error", - "max-nested-callbacks": "error", - "max-params": "error", - "max-statements": "error", - "new-cap": "error", - "no-alert": "error", - "no-array-constructor": "error", - "no-async-promise-executor": "error", - "no-await-in-loop": "error", - "no-bitwise": "error", - "no-caller": "error", - "no-case-declarations": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-console": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-constructor-return": "error", - "no-continue": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-div-regex": "error", - "no-dupe-args": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-duplicate-imports": "error", - "no-else-return": "error", - "no-empty": "error", - "no-empty-character-class": "error", - "no-empty-function": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-eq-null": "error", - "no-eval": "error", - "no-ex-assign": "error", - "no-extend-native": "error", - "no-extra-bind": "error", - "no-extra-boolean-cast": "error", - "no-extra-label": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-implicit-coercion": "error", - "no-implicit-globals": "error", - "no-implied-eval": "error", - "no-import-assign": "error", - "no-inline-comments": "error", - "no-inner-declarations": "error", - "no-invalid-regexp": "error", - "no-invalid-this": "error", - "no-irregular-whitespace": "error", - "no-iterator": "error", - "no-label-var": "error", - "no-labels": "error", - "no-lone-blocks": "error", - "no-lonely-if": "error", - "no-loop-func": "error", - "no-loss-of-precision": "error", - "no-magic-numbers": "error", - "no-misleading-character-class": "error", - "no-multi-assign": "error", - "no-multi-str": "error", - "no-negated-condition": "error", - "no-nested-ternary": "error", - "no-new": "error", - "no-new-func": "error", - "no-new-native-nonconstructor": "error", - "no-new-wrappers": "error", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-object-constructor": "error", - "no-octal": "error", - "no-octal-escape": "error", - "no-param-reassign": "error", - "no-plusplus": "error", - "no-promise-executor-return": "error", - "no-proto": "error", - "no-prototype-builtins": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-restricted-exports": "error", - "no-restricted-globals": "error", - "no-restricted-imports": "error", - "no-restricted-properties": "error", - "no-restricted-syntax": "error", - "no-return-assign": "error", - "no-script-url": "error", - "no-self-assign": "error", - "no-self-compare": "error", - "no-sequences": "error", - "no-setter-return": "error", - "no-shadow": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-template-curly-in-string": "error", - "no-ternary": "error", - "no-this-before-super": "error", - "no-throw-literal": "error", - "no-undef": "error", - "no-undef-init": "error", - "no-undefined": "error", - "no-underscore-dangle": "error", - "no-unexpected-multiline": "error", - "no-unmodified-loop-condition": "error", - "no-unneeded-ternary": "error", - "no-unreachable": "error", - "no-unreachable-loop": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-expressions": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": "error", - "no-use-before-define": "error", - "no-useless-assignment": "error", - "no-useless-backreference": "error", - "no-useless-call": "error", - "no-useless-catch": "error", - "no-useless-computed-key": "error", - "no-useless-concat": "error", - "no-useless-constructor": "error", - "no-useless-escape": "error", - "no-useless-rename": "error", - "no-useless-return": "error", - "no-var": "error", - "no-void": "error", - "no-warning-comments": "error", - "no-with": "error", - "object-shorthand": "error", - "one-var": "error", - "operator-assignment": "error", - "prefer-arrow-callback": "error", - "prefer-const": "error", - "prefer-destructuring": "error", - "prefer-exponentiation-operator": "error", - "prefer-named-capture-group": "error", - "prefer-numeric-literals": "error", - "prefer-object-has-own": "error", - "prefer-object-spread": "error", - "prefer-promise-reject-errors": "error", - "prefer-regex-literals": "error", - "prefer-rest-params": "error", - "prefer-spread": "error", - "prefer-template": "error", - "radix": "error", - "require-atomic-updates": "error", - "require-await": "error", - "require-unicode-regexp": "error", - "require-yield": "error", - "sort-imports": "error", - "sort-keys": "error", - "sort-vars": "error", - "strict": "error", - "symbol-description": "error", - "unicode-bom": "error", - "use-isnan": "error", - "valid-typeof": "error", - "vars-on-top": "error", - "yoda": "error" - } -}); diff --git a/graphql/node_modules/@eslint/js/src/configs/eslint-recommended.js b/graphql/node_modules/@eslint/js/src/configs/eslint-recommended.js deleted file mode 100644 index 3559267e..00000000 --- a/graphql/node_modules/@eslint/js/src/configs/eslint-recommended.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @fileoverview Configuration applied when a user configuration extends from - * eslint:recommended. - * @author Nicholas C. Zakas - */ - -"use strict"; - -/* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */ - -/* - * IMPORTANT! - * - * We cannot add a "name" property to this object because it's still used in eslintrc - * which doesn't support the "name" property. If we add a "name" property, it will - * cause an error. - */ - -module.exports = Object.freeze({ - rules: Object.freeze({ - "constructor-super": "error", - "for-direction": "error", - "getter-return": "error", - "no-async-promise-executor": "error", - "no-case-declarations": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-delete-var": "error", - "no-dupe-args": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-empty": "error", - "no-empty-character-class": "error", - "no-empty-pattern": "error", - "no-empty-static-block": "error", - "no-ex-assign": "error", - "no-extra-boolean-cast": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-global-assign": "error", - "no-import-assign": "error", - "no-invalid-regexp": "error", - "no-irregular-whitespace": "error", - "no-loss-of-precision": "error", - "no-misleading-character-class": "error", - "no-new-native-nonconstructor": "error", - "no-nonoctal-decimal-escape": "error", - "no-obj-calls": "error", - "no-octal": "error", - "no-prototype-builtins": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-self-assign": "error", - "no-setter-return": "error", - "no-shadow-restricted-names": "error", - "no-sparse-arrays": "error", - "no-this-before-super": "error", - "no-undef": "error", - "no-unexpected-multiline": "error", - "no-unreachable": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": "error", - "no-unused-labels": "error", - "no-unused-private-class-members": "error", - "no-unused-vars": "error", - "no-useless-backreference": "error", - "no-useless-catch": "error", - "no-useless-escape": "error", - "no-with": "error", - "require-yield": "error", - "use-isnan": "error", - "valid-typeof": "error" - }) -}); diff --git a/graphql/node_modules/@eslint/js/src/index.js b/graphql/node_modules/@eslint/js/src/index.js deleted file mode 100644 index 0d4be486..00000000 --- a/graphql/node_modules/@eslint/js/src/index.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @fileoverview Main package entrypoint. - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - configs: { - all: require("./configs/eslint-all"), - recommended: require("./configs/eslint-recommended") - } -}; diff --git a/graphql/node_modules/@eslint/object-schema/LICENSE b/graphql/node_modules/@eslint/object-schema/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/graphql/node_modules/@eslint/object-schema/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/graphql/node_modules/@eslint/object-schema/README.md b/graphql/node_modules/@eslint/object-schema/README.md deleted file mode 100644 index ff1d3063..00000000 --- a/graphql/node_modules/@eslint/object-schema/README.md +++ /dev/null @@ -1,237 +0,0 @@ -# ObjectSchema Package - -## Overview - -A JavaScript object merge/validation utility where you can define a different merge and validation strategy for each key. This is helpful when you need to validate complex data structures and then merge them in a way that is more complex than `Object.assign()`. This is used in the [`@eslint/config-array`](https://npmjs.com/package/@eslint/config-array) package but can also be used on its own. - -## Installation - -For Node.js and compatible runtimes: - -```shell -npm install @eslint/object-schema -# or -yarn add @eslint/object-schema -# or -pnpm install @eslint/object-schema -# or -bun install @eslint/object-schema -``` - -For Deno: - -```shell -deno add @eslint/object-schema -``` - -## Usage - -Import the `ObjectSchema` constructor: - -```js -// using ESM -import { ObjectSchema } from "@eslint/object-schema"; - -// using CommonJS -const { ObjectSchema } = require("@eslint/object-schema"); - -const schema = new ObjectSchema({ - // define a definition for the "downloads" key - downloads: { - required: true, - merge(value1, value2) { - return value1 + value2; - }, - validate(value) { - if (typeof value !== "number") { - throw new Error("Expected downloads to be a number."); - } - }, - }, - - // define a strategy for the "versions" key - version: { - required: true, - merge(value1, value2) { - return value1.concat(value2); - }, - validate(value) { - if (!Array.isArray(value)) { - throw new Error("Expected versions to be an array."); - } - }, - }, -}); - -const record1 = { - downloads: 25, - versions: ["v1.0.0", "v1.1.0", "v1.2.0"], -}; - -const record2 = { - downloads: 125, - versions: ["v2.0.0", "v2.1.0", "v3.0.0"], -}; - -// make sure the records are valid -schema.validate(record1); -schema.validate(record2); - -// merge together (schema.merge() accepts any number of objects) -const result = schema.merge(record1, record2); - -// result looks like this: - -const result = { - downloads: 75, - versions: ["v1.0.0", "v1.1.0", "v1.2.0", "v2.0.0", "v2.1.0", "v3.0.0"], -}; -``` - -## Tips and Tricks - -### Named merge strategies - -Instead of specifying a `merge()` method, you can specify one of the following strings to use a default merge strategy: - -- `"assign"` - use `Object.assign()` to merge the two values into one object. -- `"overwrite"` - the second value always replaces the first. -- `"replace"` - the second value replaces the first if the second is not `undefined`. - -For example: - -```js -const schema = new ObjectSchema({ - name: { - merge: "replace", - validate() {}, - }, -}); -``` - -### Named validation strategies - -Instead of specifying a `validate()` method, you can specify one of the following strings to use a default validation strategy: - -- `"array"` - value must be an array. -- `"boolean"` - value must be a boolean. -- `"number"` - value must be a number. -- `"object"` - value must be an object. -- `"object?"` - value must be an object or null. -- `"string"` - value must be a string. -- `"string!"` - value must be a non-empty string. - -For example: - -```js -const schema = new ObjectSchema({ - name: { - merge: "replace", - validate: "string", - }, -}); -``` - -### Subschemas - -If you are defining a key that is, itself, an object, you can simplify the process by using a subschema. Instead of defining `merge()` and `validate()`, assign a `schema` key that contains a schema definition, like this: - -```js -const schema = new ObjectSchema({ - name: { - schema: { - first: { - merge: "replace", - validate: "string", - }, - last: { - merge: "replace", - validate: "string", - }, - }, - }, -}); - -schema.validate({ - name: { - first: "n", - last: "z", - }, -}); -``` - -### Remove Keys During Merge - -If the merge strategy for a key returns `undefined`, then the key will not appear in the final object. For example: - -```js -const schema = new ObjectSchema({ - date: { - merge() { - return undefined; - }, - validate(value) { - Date.parse(value); // throws an error when invalid - }, - }, -}); - -const object1 = { date: "5/5/2005" }; -const object2 = { date: "6/6/2006" }; - -const result = schema.merge(object1, object2); - -console.log("date" in result); // false -``` - -### Requiring Another Key Be Present - -If you'd like the presence of one key to require the presence of another key, you can use the `requires` property to specify an array of other properties that any key requires. For example: - -```js -const schema = new ObjectSchema(); - -const schema = new ObjectSchema({ - date: { - merge() { - return undefined; - }, - validate(value) { - Date.parse(value); // throws an error when invalid - }, - }, - time: { - requires: ["date"], - merge(first, second) { - return second; - }, - validate(value) { - // ... - }, - }, -}); - -// throws error: Key "time" requires keys "date" -schema.validate({ - time: "13:45", -}); -``` - -In this example, even though `date` is an optional key, it is required to be present whenever `time` is present. - -## License - -Apache 2.0 - -## Sponsors - -The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. - - - -

Platinum Sponsors

-

Automattic

Gold Sponsors

-

Eli Schleifer Salesforce Airbnb

Silver Sponsors

-

JetBrains Liftoff American Express Workleap

Bronze Sponsors

-

notion Anagram Solver Icons8 Discord Ignition Nx HeroCoders

- diff --git a/graphql/node_modules/@eslint/object-schema/dist/cjs/index.cjs b/graphql/node_modules/@eslint/object-schema/dist/cjs/index.cjs deleted file mode 100644 index a9687a5f..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/cjs/index.cjs +++ /dev/null @@ -1,455 +0,0 @@ -'use strict'; - -/** - * @fileoverview Merge Strategy - */ - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different merge strategies. - */ -class MergeStrategy { - /** - * Merges two keys by overwriting the first with the second. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value. - */ - static overwrite(value1, value2) { - return value2; - } - - /** - * Merges two keys by replacing the first with the second only if the - * second is defined. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value if it is defined. - */ - static replace(value1, value2) { - if (typeof value2 !== "undefined") { - return value2; - } - - return value1; - } - - /** - * Merges two properties by assigning properties from the second to the first. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} A new object containing properties from both value1 and - * value2. - */ - static assign(value1, value2) { - return Object.assign({}, value1, value2); - } -} - -/** - * @fileoverview Validation Strategy - */ - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different validation strategies. - */ -class ValidationStrategy { - /** - * Validates that a value is an array. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static array(value) { - if (!Array.isArray(value)) { - throw new TypeError("Expected an array."); - } - } - - /** - * Validates that a value is a boolean. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static boolean(value) { - if (typeof value !== "boolean") { - throw new TypeError("Expected a Boolean."); - } - } - - /** - * Validates that a value is a number. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static number(value) { - if (typeof value !== "number") { - throw new TypeError("Expected a number."); - } - } - - /** - * Validates that a value is a object. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static object(value) { - if (!value || typeof value !== "object") { - throw new TypeError("Expected an object."); - } - } - - /** - * Validates that a value is a object or null. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "object?"(value) { - if (typeof value !== "object") { - throw new TypeError("Expected an object or null."); - } - } - - /** - * Validates that a value is a string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static string(value) { - if (typeof value !== "string") { - throw new TypeError("Expected a string."); - } - } - - /** - * Validates that a value is a non-empty string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "string!"(value) { - if (typeof value !== "string" || value.length === 0) { - throw new TypeError("Expected a non-empty string."); - } - } -} - -/** - * @fileoverview Object Schema - */ - - -//----------------------------------------------------------------------------- -// Types -//----------------------------------------------------------------------------- - -/** @typedef {import("./types.ts").ObjectDefinition} ObjectDefinition */ -/** @typedef {import("./types.ts").PropertyDefinition} PropertyDefinition */ - -//----------------------------------------------------------------------------- -// Private -//----------------------------------------------------------------------------- - -/** - * Validates a schema strategy. - * @param {string} name The name of the key this strategy is for. - * @param {PropertyDefinition} definition The strategy for the object key. - * @returns {void} - * @throws {Error} When the strategy is missing a name. - * @throws {Error} When the strategy is missing a merge() method. - * @throws {Error} When the strategy is missing a validate() method. - */ -function validateDefinition(name, definition) { - let hasSchema = false; - if (definition.schema) { - if (typeof definition.schema === "object") { - hasSchema = true; - } else { - throw new TypeError("Schema must be an object."); - } - } - - if (typeof definition.merge === "string") { - if (!(definition.merge in MergeStrategy)) { - throw new TypeError( - `Definition for key "${name}" missing valid merge strategy.`, - ); - } - } else if (!hasSchema && typeof definition.merge !== "function") { - throw new TypeError( - `Definition for key "${name}" must have a merge property.`, - ); - } - - if (typeof definition.validate === "string") { - if (!(definition.validate in ValidationStrategy)) { - throw new TypeError( - `Definition for key "${name}" missing valid validation strategy.`, - ); - } - } else if (!hasSchema && typeof definition.validate !== "function") { - throw new TypeError( - `Definition for key "${name}" must have a validate() method.`, - ); - } -} - -//----------------------------------------------------------------------------- -// Errors -//----------------------------------------------------------------------------- - -/** - * Error when an unexpected key is found. - */ -class UnexpectedKeyError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - */ - constructor(key) { - super(`Unexpected key "${key}" found.`); - } -} - -/** - * Error when a required key is missing. - */ -class MissingKeyError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was missing. - */ - constructor(key) { - super(`Missing required key "${key}".`); - } -} - -/** - * Error when a key requires other keys that are missing. - */ -class MissingDependentKeysError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - * @param {Array} requiredKeys The keys that are required. - */ - constructor(key, requiredKeys) { - super(`Key "${key}" requires keys "${requiredKeys.join('", "')}".`); - } -} - -/** - * Wrapper error for errors occuring during a merge or validate operation. - */ -class WrapperError extends Error { - /** - * Creates a new instance. - * @param {string} key The object key causing the error. - * @param {Error} source The source error. - */ - constructor(key, source) { - super(`Key "${key}": ${source.message}`, { cause: source }); - - // copy over custom properties that aren't represented - for (const sourceKey of Object.keys(source)) { - if (!(sourceKey in this)) { - this[sourceKey] = source[sourceKey]; - } - } - } -} - -//----------------------------------------------------------------------------- -// Main -//----------------------------------------------------------------------------- - -/** - * Represents an object validation/merging schema. - */ -class ObjectSchema { - /** - * Track all definitions in the schema by key. - * @type {Map} - */ - #definitions = new Map(); - - /** - * Separately track any keys that are required for faster validtion. - * @type {Map} - */ - #requiredKeys = new Map(); - - /** - * Creates a new instance. - * @param {ObjectDefinition} definitions The schema definitions. - */ - constructor(definitions) { - if (!definitions) { - throw new Error("Schema definitions missing."); - } - - // add in all strategies - for (const key of Object.keys(definitions)) { - validateDefinition(key, definitions[key]); - - // normalize merge and validate methods if subschema is present - if (typeof definitions[key].schema === "object") { - const schema = new ObjectSchema(definitions[key].schema); - definitions[key] = { - ...definitions[key], - merge(first = {}, second = {}) { - return schema.merge(first, second); - }, - validate(value) { - ValidationStrategy.object(value); - schema.validate(value); - }, - }; - } - - // normalize the merge method in case there's a string - if (typeof definitions[key].merge === "string") { - definitions[key] = { - ...definitions[key], - merge: MergeStrategy[ - /** @type {string} */ (definitions[key].merge) - ], - }; - } - - // normalize the validate method in case there's a string - if (typeof definitions[key].validate === "string") { - definitions[key] = { - ...definitions[key], - validate: - ValidationStrategy[ - /** @type {string} */ (definitions[key].validate) - ], - }; - } - - this.#definitions.set(key, definitions[key]); - - if (definitions[key].required) { - this.#requiredKeys.set(key, definitions[key]); - } - } - } - - /** - * Determines if a strategy has been registered for the given object key. - * @param {string} key The object key to find a strategy for. - * @returns {boolean} True if the key has a strategy registered, false if not. - */ - hasKey(key) { - return this.#definitions.has(key); - } - - /** - * Merges objects together to create a new object comprised of the keys - * of the all objects. Keys are merged based on the each key's merge - * strategy. - * @param {...Object} objects The objects to merge. - * @returns {Object} A new object with a mix of all objects' keys. - * @throws {Error} If any object is invalid. - */ - merge(...objects) { - // double check arguments - if (objects.length < 2) { - throw new TypeError("merge() requires at least two arguments."); - } - - if ( - objects.some( - object => object === null || typeof object !== "object", - ) - ) { - throw new TypeError("All arguments must be objects."); - } - - return objects.reduce((result, object) => { - this.validate(object); - - for (const [key, strategy] of this.#definitions) { - try { - if (key in result || key in object) { - const merge = /** @type {Function} */ (strategy.merge); - const value = merge.call( - this, - result[key], - object[key], - ); - if (value !== undefined) { - result[key] = value; - } - } - } catch (ex) { - throw new WrapperError(key, ex); - } - } - return result; - }, {}); - } - - /** - * Validates an object's keys based on the validate strategy for each key. - * @param {Object} object The object to validate. - * @returns {void} - * @throws {Error} When the object is invalid. - */ - validate(object) { - // check existing keys first - for (const key of Object.keys(object)) { - // check to see if the key is defined - if (!this.hasKey(key)) { - throw new UnexpectedKeyError(key); - } - - // validate existing keys - const definition = this.#definitions.get(key); - - // first check to see if any other keys are required - if (Array.isArray(definition.requires)) { - if ( - !definition.requires.every(otherKey => otherKey in object) - ) { - throw new MissingDependentKeysError( - key, - definition.requires, - ); - } - } - - // now apply remaining validation strategy - try { - const validate = /** @type {Function} */ (definition.validate); - validate.call(definition, object[key]); - } catch (ex) { - throw new WrapperError(key, ex); - } - } - - // ensure required keys aren't missing - for (const [key] of this.#requiredKeys) { - if (!(key in object)) { - throw new MissingKeyError(key); - } - } - } -} - -exports.MergeStrategy = MergeStrategy; -exports.ObjectSchema = ObjectSchema; -exports.ValidationStrategy = ValidationStrategy; diff --git a/graphql/node_modules/@eslint/object-schema/dist/cjs/index.d.cts b/graphql/node_modules/@eslint/object-schema/dist/cjs/index.d.cts deleted file mode 100644 index 0775e9a6..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +++ /dev/null @@ -1,123 +0,0 @@ -export type ObjectDefinition = import("./types.ts").ObjectDefinition; -export type PropertyDefinition = import("./types.ts").PropertyDefinition; -/** - * @fileoverview Merge Strategy - */ -/** - * Container class for several different merge strategies. - */ -export class MergeStrategy { - /** - * Merges two keys by overwriting the first with the second. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value. - */ - static overwrite(value1: any, value2: any): any; - /** - * Merges two keys by replacing the first with the second only if the - * second is defined. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value if it is defined. - */ - static replace(value1: any, value2: any): any; - /** - * Merges two properties by assigning properties from the second to the first. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} A new object containing properties from both value1 and - * value2. - */ - static assign(value1: any, value2: any): any; -} -/** - * Represents an object validation/merging schema. - */ -export class ObjectSchema { - /** - * Creates a new instance. - * @param {ObjectDefinition} definitions The schema definitions. - */ - constructor(definitions: ObjectDefinition); - /** - * Determines if a strategy has been registered for the given object key. - * @param {string} key The object key to find a strategy for. - * @returns {boolean} True if the key has a strategy registered, false if not. - */ - hasKey(key: string): boolean; - /** - * Merges objects together to create a new object comprised of the keys - * of the all objects. Keys are merged based on the each key's merge - * strategy. - * @param {...Object} objects The objects to merge. - * @returns {Object} A new object with a mix of all objects' keys. - * @throws {Error} If any object is invalid. - */ - merge(...objects: any[]): any; - /** - * Validates an object's keys based on the validate strategy for each key. - * @param {Object} object The object to validate. - * @returns {void} - * @throws {Error} When the object is invalid. - */ - validate(object: any): void; - #private; -} -/** - * @fileoverview Validation Strategy - */ -/** - * Container class for several different validation strategies. - */ -export class ValidationStrategy { - /** - * Validates that a value is an array. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static array(value: any): void; - /** - * Validates that a value is a boolean. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static boolean(value: any): void; - /** - * Validates that a value is a number. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static number(value: any): void; - /** - * Validates that a value is a object. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static object(value: any): void; - /** - * Validates that a value is a object or null. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "object?"(value: any): void; - /** - * Validates that a value is a string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static string(value: any): void; - /** - * Validates that a value is a non-empty string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "string!"(value: any): void; -} diff --git a/graphql/node_modules/@eslint/object-schema/dist/cjs/types.ts b/graphql/node_modules/@eslint/object-schema/dist/cjs/types.ts deleted file mode 100644 index a4ca9a01..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/cjs/types.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview Types for object-schema package. - */ - -/** - * Built-in validation strategies. - */ -export type BuiltInValidationStrategy = - | "array" - | "boolean" - | "number" - | "object" - | "object?" - | "string" - | "string!"; - -/** - * Built-in merge strategies. - */ -export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; - -/** - * Property definition. - */ -export interface PropertyDefinition { - /** - * Indicates if the property is required. - */ - required: boolean; - - /** - * The other properties that must be present when this property is used. - */ - requires?: string[]; - - /** - * The strategy to merge the property. - */ - merge: BuiltInMergeStrategy | ((target: any, source: any) => any); - - /** - * The strategy to validate the property. - */ - validate: BuiltInValidationStrategy | ((value: any) => void); - - /** - * The schema for the object value of this property. - */ - schema?: ObjectDefinition; -} - -/** - * Object definition. - */ -export type ObjectDefinition = Record; diff --git a/graphql/node_modules/@eslint/object-schema/dist/esm/index.d.ts b/graphql/node_modules/@eslint/object-schema/dist/esm/index.d.ts deleted file mode 100644 index 0775e9a6..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/esm/index.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -export type ObjectDefinition = import("./types.ts").ObjectDefinition; -export type PropertyDefinition = import("./types.ts").PropertyDefinition; -/** - * @fileoverview Merge Strategy - */ -/** - * Container class for several different merge strategies. - */ -export class MergeStrategy { - /** - * Merges two keys by overwriting the first with the second. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value. - */ - static overwrite(value1: any, value2: any): any; - /** - * Merges two keys by replacing the first with the second only if the - * second is defined. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value if it is defined. - */ - static replace(value1: any, value2: any): any; - /** - * Merges two properties by assigning properties from the second to the first. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} A new object containing properties from both value1 and - * value2. - */ - static assign(value1: any, value2: any): any; -} -/** - * Represents an object validation/merging schema. - */ -export class ObjectSchema { - /** - * Creates a new instance. - * @param {ObjectDefinition} definitions The schema definitions. - */ - constructor(definitions: ObjectDefinition); - /** - * Determines if a strategy has been registered for the given object key. - * @param {string} key The object key to find a strategy for. - * @returns {boolean} True if the key has a strategy registered, false if not. - */ - hasKey(key: string): boolean; - /** - * Merges objects together to create a new object comprised of the keys - * of the all objects. Keys are merged based on the each key's merge - * strategy. - * @param {...Object} objects The objects to merge. - * @returns {Object} A new object with a mix of all objects' keys. - * @throws {Error} If any object is invalid. - */ - merge(...objects: any[]): any; - /** - * Validates an object's keys based on the validate strategy for each key. - * @param {Object} object The object to validate. - * @returns {void} - * @throws {Error} When the object is invalid. - */ - validate(object: any): void; - #private; -} -/** - * @fileoverview Validation Strategy - */ -/** - * Container class for several different validation strategies. - */ -export class ValidationStrategy { - /** - * Validates that a value is an array. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static array(value: any): void; - /** - * Validates that a value is a boolean. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static boolean(value: any): void; - /** - * Validates that a value is a number. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static number(value: any): void; - /** - * Validates that a value is a object. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static object(value: any): void; - /** - * Validates that a value is a object or null. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "object?"(value: any): void; - /** - * Validates that a value is a string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static string(value: any): void; - /** - * Validates that a value is a non-empty string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "string!"(value: any): void; -} diff --git a/graphql/node_modules/@eslint/object-schema/dist/esm/index.js b/graphql/node_modules/@eslint/object-schema/dist/esm/index.js deleted file mode 100644 index 2e7bcd42..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/esm/index.js +++ /dev/null @@ -1,452 +0,0 @@ -// @ts-self-types="./index.d.ts" -/** - * @fileoverview Merge Strategy - */ - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different merge strategies. - */ -class MergeStrategy { - /** - * Merges two keys by overwriting the first with the second. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value. - */ - static overwrite(value1, value2) { - return value2; - } - - /** - * Merges two keys by replacing the first with the second only if the - * second is defined. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} The second value if it is defined. - */ - static replace(value1, value2) { - if (typeof value2 !== "undefined") { - return value2; - } - - return value1; - } - - /** - * Merges two properties by assigning properties from the second to the first. - * @param {*} value1 The value from the first object key. - * @param {*} value2 The value from the second object key. - * @returns {*} A new object containing properties from both value1 and - * value2. - */ - static assign(value1, value2) { - return Object.assign({}, value1, value2); - } -} - -/** - * @fileoverview Validation Strategy - */ - -//----------------------------------------------------------------------------- -// Class -//----------------------------------------------------------------------------- - -/** - * Container class for several different validation strategies. - */ -class ValidationStrategy { - /** - * Validates that a value is an array. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static array(value) { - if (!Array.isArray(value)) { - throw new TypeError("Expected an array."); - } - } - - /** - * Validates that a value is a boolean. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static boolean(value) { - if (typeof value !== "boolean") { - throw new TypeError("Expected a Boolean."); - } - } - - /** - * Validates that a value is a number. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static number(value) { - if (typeof value !== "number") { - throw new TypeError("Expected a number."); - } - } - - /** - * Validates that a value is a object. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static object(value) { - if (!value || typeof value !== "object") { - throw new TypeError("Expected an object."); - } - } - - /** - * Validates that a value is a object or null. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "object?"(value) { - if (typeof value !== "object") { - throw new TypeError("Expected an object or null."); - } - } - - /** - * Validates that a value is a string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static string(value) { - if (typeof value !== "string") { - throw new TypeError("Expected a string."); - } - } - - /** - * Validates that a value is a non-empty string. - * @param {*} value The value to validate. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ - static "string!"(value) { - if (typeof value !== "string" || value.length === 0) { - throw new TypeError("Expected a non-empty string."); - } - } -} - -/** - * @fileoverview Object Schema - */ - - -//----------------------------------------------------------------------------- -// Types -//----------------------------------------------------------------------------- - -/** @typedef {import("./types.ts").ObjectDefinition} ObjectDefinition */ -/** @typedef {import("./types.ts").PropertyDefinition} PropertyDefinition */ - -//----------------------------------------------------------------------------- -// Private -//----------------------------------------------------------------------------- - -/** - * Validates a schema strategy. - * @param {string} name The name of the key this strategy is for. - * @param {PropertyDefinition} definition The strategy for the object key. - * @returns {void} - * @throws {Error} When the strategy is missing a name. - * @throws {Error} When the strategy is missing a merge() method. - * @throws {Error} When the strategy is missing a validate() method. - */ -function validateDefinition(name, definition) { - let hasSchema = false; - if (definition.schema) { - if (typeof definition.schema === "object") { - hasSchema = true; - } else { - throw new TypeError("Schema must be an object."); - } - } - - if (typeof definition.merge === "string") { - if (!(definition.merge in MergeStrategy)) { - throw new TypeError( - `Definition for key "${name}" missing valid merge strategy.`, - ); - } - } else if (!hasSchema && typeof definition.merge !== "function") { - throw new TypeError( - `Definition for key "${name}" must have a merge property.`, - ); - } - - if (typeof definition.validate === "string") { - if (!(definition.validate in ValidationStrategy)) { - throw new TypeError( - `Definition for key "${name}" missing valid validation strategy.`, - ); - } - } else if (!hasSchema && typeof definition.validate !== "function") { - throw new TypeError( - `Definition for key "${name}" must have a validate() method.`, - ); - } -} - -//----------------------------------------------------------------------------- -// Errors -//----------------------------------------------------------------------------- - -/** - * Error when an unexpected key is found. - */ -class UnexpectedKeyError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - */ - constructor(key) { - super(`Unexpected key "${key}" found.`); - } -} - -/** - * Error when a required key is missing. - */ -class MissingKeyError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was missing. - */ - constructor(key) { - super(`Missing required key "${key}".`); - } -} - -/** - * Error when a key requires other keys that are missing. - */ -class MissingDependentKeysError extends Error { - /** - * Creates a new instance. - * @param {string} key The key that was unexpected. - * @param {Array} requiredKeys The keys that are required. - */ - constructor(key, requiredKeys) { - super(`Key "${key}" requires keys "${requiredKeys.join('", "')}".`); - } -} - -/** - * Wrapper error for errors occuring during a merge or validate operation. - */ -class WrapperError extends Error { - /** - * Creates a new instance. - * @param {string} key The object key causing the error. - * @param {Error} source The source error. - */ - constructor(key, source) { - super(`Key "${key}": ${source.message}`, { cause: source }); - - // copy over custom properties that aren't represented - for (const sourceKey of Object.keys(source)) { - if (!(sourceKey in this)) { - this[sourceKey] = source[sourceKey]; - } - } - } -} - -//----------------------------------------------------------------------------- -// Main -//----------------------------------------------------------------------------- - -/** - * Represents an object validation/merging schema. - */ -class ObjectSchema { - /** - * Track all definitions in the schema by key. - * @type {Map} - */ - #definitions = new Map(); - - /** - * Separately track any keys that are required for faster validtion. - * @type {Map} - */ - #requiredKeys = new Map(); - - /** - * Creates a new instance. - * @param {ObjectDefinition} definitions The schema definitions. - */ - constructor(definitions) { - if (!definitions) { - throw new Error("Schema definitions missing."); - } - - // add in all strategies - for (const key of Object.keys(definitions)) { - validateDefinition(key, definitions[key]); - - // normalize merge and validate methods if subschema is present - if (typeof definitions[key].schema === "object") { - const schema = new ObjectSchema(definitions[key].schema); - definitions[key] = { - ...definitions[key], - merge(first = {}, second = {}) { - return schema.merge(first, second); - }, - validate(value) { - ValidationStrategy.object(value); - schema.validate(value); - }, - }; - } - - // normalize the merge method in case there's a string - if (typeof definitions[key].merge === "string") { - definitions[key] = { - ...definitions[key], - merge: MergeStrategy[ - /** @type {string} */ (definitions[key].merge) - ], - }; - } - - // normalize the validate method in case there's a string - if (typeof definitions[key].validate === "string") { - definitions[key] = { - ...definitions[key], - validate: - ValidationStrategy[ - /** @type {string} */ (definitions[key].validate) - ], - }; - } - - this.#definitions.set(key, definitions[key]); - - if (definitions[key].required) { - this.#requiredKeys.set(key, definitions[key]); - } - } - } - - /** - * Determines if a strategy has been registered for the given object key. - * @param {string} key The object key to find a strategy for. - * @returns {boolean} True if the key has a strategy registered, false if not. - */ - hasKey(key) { - return this.#definitions.has(key); - } - - /** - * Merges objects together to create a new object comprised of the keys - * of the all objects. Keys are merged based on the each key's merge - * strategy. - * @param {...Object} objects The objects to merge. - * @returns {Object} A new object with a mix of all objects' keys. - * @throws {Error} If any object is invalid. - */ - merge(...objects) { - // double check arguments - if (objects.length < 2) { - throw new TypeError("merge() requires at least two arguments."); - } - - if ( - objects.some( - object => object === null || typeof object !== "object", - ) - ) { - throw new TypeError("All arguments must be objects."); - } - - return objects.reduce((result, object) => { - this.validate(object); - - for (const [key, strategy] of this.#definitions) { - try { - if (key in result || key in object) { - const merge = /** @type {Function} */ (strategy.merge); - const value = merge.call( - this, - result[key], - object[key], - ); - if (value !== undefined) { - result[key] = value; - } - } - } catch (ex) { - throw new WrapperError(key, ex); - } - } - return result; - }, {}); - } - - /** - * Validates an object's keys based on the validate strategy for each key. - * @param {Object} object The object to validate. - * @returns {void} - * @throws {Error} When the object is invalid. - */ - validate(object) { - // check existing keys first - for (const key of Object.keys(object)) { - // check to see if the key is defined - if (!this.hasKey(key)) { - throw new UnexpectedKeyError(key); - } - - // validate existing keys - const definition = this.#definitions.get(key); - - // first check to see if any other keys are required - if (Array.isArray(definition.requires)) { - if ( - !definition.requires.every(otherKey => otherKey in object) - ) { - throw new MissingDependentKeysError( - key, - definition.requires, - ); - } - } - - // now apply remaining validation strategy - try { - const validate = /** @type {Function} */ (definition.validate); - validate.call(definition, object[key]); - } catch (ex) { - throw new WrapperError(key, ex); - } - } - - // ensure required keys aren't missing - for (const [key] of this.#requiredKeys) { - if (!(key in object)) { - throw new MissingKeyError(key); - } - } - } -} - -export { MergeStrategy, ObjectSchema, ValidationStrategy }; diff --git a/graphql/node_modules/@eslint/object-schema/dist/esm/types.d.ts b/graphql/node_modules/@eslint/object-schema/dist/esm/types.d.ts deleted file mode 100644 index 5a5f9206..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/esm/types.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @fileoverview Types for object-schema package. - */ -/** - * Built-in validation strategies. - */ -export type BuiltInValidationStrategy = "array" | "boolean" | "number" | "object" | "object?" | "string" | "string!"; -/** - * Built-in merge strategies. - */ -export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; -/** - * Property definition. - */ -export interface PropertyDefinition { - /** - * Indicates if the property is required. - */ - required: boolean; - /** - * The other properties that must be present when this property is used. - */ - requires?: string[]; - /** - * The strategy to merge the property. - */ - merge: BuiltInMergeStrategy | ((target: any, source: any) => any); - /** - * The strategy to validate the property. - */ - validate: BuiltInValidationStrategy | ((value: any) => void); - /** - * The schema for the object value of this property. - */ - schema?: ObjectDefinition; -} -/** - * Object definition. - */ -export type ObjectDefinition = Record; diff --git a/graphql/node_modules/@eslint/object-schema/dist/esm/types.ts b/graphql/node_modules/@eslint/object-schema/dist/esm/types.ts deleted file mode 100644 index a4ca9a01..00000000 --- a/graphql/node_modules/@eslint/object-schema/dist/esm/types.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview Types for object-schema package. - */ - -/** - * Built-in validation strategies. - */ -export type BuiltInValidationStrategy = - | "array" - | "boolean" - | "number" - | "object" - | "object?" - | "string" - | "string!"; - -/** - * Built-in merge strategies. - */ -export type BuiltInMergeStrategy = "assign" | "overwrite" | "replace"; - -/** - * Property definition. - */ -export interface PropertyDefinition { - /** - * Indicates if the property is required. - */ - required: boolean; - - /** - * The other properties that must be present when this property is used. - */ - requires?: string[]; - - /** - * The strategy to merge the property. - */ - merge: BuiltInMergeStrategy | ((target: any, source: any) => any); - - /** - * The strategy to validate the property. - */ - validate: BuiltInValidationStrategy | ((value: any) => void); - - /** - * The schema for the object value of this property. - */ - schema?: ObjectDefinition; -} - -/** - * Object definition. - */ -export type ObjectDefinition = Record; diff --git a/graphql/node_modules/@eslint/object-schema/package.json b/graphql/node_modules/@eslint/object-schema/package.json deleted file mode 100644 index 2a09a765..00000000 --- a/graphql/node_modules/@eslint/object-schema/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@eslint/object-schema", - "version": "2.1.4", - "description": "An object schema merger/validator", - "type": "module", - "main": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", - "exports": { - "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" - }, - "import": { - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - } - }, - "files": [ - "dist" - ], - "publishConfig": { - "access": "public" - }, - "directories": { - "test": "tests" - }, - "scripts": { - "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"", - "build": "rollup -c && tsc -p tsconfig.esm.json && npm run build:cts", - "test:jsr": "npx jsr@latest publish --dry-run", - "test": "mocha tests/", - "test:coverage": "c8 npm test" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/eslint/rewrite.git" - }, - "keywords": [ - "object", - "validation", - "schema", - "merge" - ], - "author": "Nicholas C. Zakas", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/eslint/rewrite/issues" - }, - "homepage": "https://github.com/eslint/rewrite#readme", - "devDependencies": { - "c8": "^9.1.0", - "mocha": "^10.4.0", - "rollup": "^4.16.2", - "rollup-plugin-copy": "^3.5.0", - "typescript": "^5.4.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/graphql/node_modules/@humanwhocodes/module-importer/CHANGELOG.md b/graphql/node_modules/@humanwhocodes/module-importer/CHANGELOG.md deleted file mode 100644 index 1b442a19..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Changelog - -## [1.0.1](https://github.com/humanwhocodes/module-importer/compare/v1.0.0...v1.0.1) (2022-08-18) - - -### Bug Fixes - -* Ensure CommonJS mode works correctly. ([cf54a0b](https://github.com/humanwhocodes/module-importer/commit/cf54a0b998085066fbe1776dd0b4cacd808cc192)), closes [#6](https://github.com/humanwhocodes/module-importer/issues/6) - -## 1.0.0 (2022-08-17) - - -### Features - -* Implement ModuleImporter ([3ce4e82](https://www.github.com/humanwhocodes/module-importer/commit/3ce4e820c30c114e787bfed00a0966ac4772f563)) diff --git a/graphql/node_modules/@humanwhocodes/module-importer/LICENSE b/graphql/node_modules/@humanwhocodes/module-importer/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/graphql/node_modules/@humanwhocodes/module-importer/README.md b/graphql/node_modules/@humanwhocodes/module-importer/README.md deleted file mode 100644 index 3de07a7f..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# ModuleImporter - -by [Nicholas C. Zakas](https://humanwhocodes.com) - -If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate). - -## Description - -A utility for seamlessly importing modules in Node.js regardless if they are CommonJS or ESM format. Under the hood, this uses `import()` and relies on Node.js's CommonJS compatibility to work correctly. This ensures that the correct locations and formats are used for CommonJS so you can call one method and not worry about any compatibility issues. - -The problem with the default `import()` is that it always resolves relative to the file location in which it is called. If you want to resolve from a different location, you need to jump through a few hoops to achieve that. This package makes it easy to both resolve and import modules from any directory. - -## Usage - -### Node.js - -Install using [npm][npm] or [yarn][yarn]: - -``` -npm install @humanwhocodes/module-importer - -# or - -yarn add @humanwhocodes/module-importer -``` - -Import into your Node.js project: - -```js -// CommonJS -const { ModuleImporter } = require("@humanwhocodes/module-importer"); - -// ESM -import { ModuleImporter } from "@humanwhocodes/module-importer"; -``` - -### Bun - -Install using this command: - -``` -bun add @humanwhocodes/module-importer -``` - -Import into your Bun project: - -```js -import { ModuleImporter } from "@humanwhocodes/module-importer"; -``` - -## API - -After importing, create a new instance of `ModuleImporter` to start emitting events: - -```js -// cwd can be omitted to use process.cwd() -const importer = new ModuleImporter(cwd); - -// you can resolve the location of any package -const location = importer.resolve("./some-file.cjs"); - -// you can also import directly -const module = importer.import("./some-file.cjs"); -``` - -For both `resolve()` and `import()`, you can pass in package names and filenames. - -## Developer Setup - -1. Fork the repository -2. Clone your fork -3. Run `npm install` to setup dependencies -4. Run `npm test` to run tests - -## License - -Apache 2.0 - -[npm]: https://npmjs.com/ -[yarn]: https://yarnpkg.com/ diff --git a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs b/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs deleted file mode 100644 index 779e0cf6..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var module$1 = require('module'); -var url = require('url'); -var path = require('path'); - -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('module-importer.cjs', document.baseURI).href))); -const __dirname$1 = path.dirname(__filename$1); -const require$1 = module$1.createRequire(__dirname$1 + "/"); -const { ModuleImporter } = require$1("./module-importer.cjs"); - -exports.ModuleImporter = ModuleImporter; diff --git a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts b/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts deleted file mode 100644 index a1acbb6d..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts +++ /dev/null @@ -1,27 +0,0 @@ -export class ModuleImporter { - /** - * Creates a new instance. - * @param {string} [cwd] The current working directory to resolve from. - */ - constructor(cwd?: string); - /** - * The base directory from which paths should be resolved. - * @type {string} - */ - cwd: string; - /** - * Resolves a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {string|undefined} The location of the import. - * @throws {Error} If specifier cannot be located. - */ - resolve(specifier: string): string | undefined; - /** - * Imports a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {Promise} The module's object. - */ - import(specifier: string): Promise; -} diff --git a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts b/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts deleted file mode 100644 index 498f0a24..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ModuleImporter }; -import { ModuleImporter } from "./module-importer.cjs"; diff --git a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.js b/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.js deleted file mode 100644 index 26e052da..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/dist/module-importer.js +++ /dev/null @@ -1,18 +0,0 @@ -import { createRequire } from 'module'; -import { fileURLToPath } from 'url'; -import { dirname } from 'path'; - -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); -const require = createRequire(__dirname + "/"); -const { ModuleImporter } = require("./module-importer.cjs"); - -export { ModuleImporter }; diff --git a/graphql/node_modules/@humanwhocodes/module-importer/package.json b/graphql/node_modules/@humanwhocodes/module-importer/package.json deleted file mode 100644 index 8ece071e..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "@humanwhocodes/module-importer", - "version": "1.0.1", - "description": "Universal module importer for Node.js", - "main": "src/module-importer.cjs", - "module": "src/module-importer.js", - "type": "module", - "types": "dist/module-importer.d.ts", - "exports": { - "require": "./src/module-importer.cjs", - "import": "./src/module-importer.js" - }, - "files": [ - "dist", - "src" - ], - "publishConfig": { - "access": "public" - }, - "gitHooks": { - "pre-commit": "lint-staged" - }, - "lint-staged": { - "*.js": [ - "eslint --fix" - ] - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - }, - "scripts": { - "build": "rollup -c && tsc", - "prepare": "npm run build", - "lint": "eslint src/ tests/", - "test:unit": "c8 mocha tests/module-importer.test.js", - "test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs", - "test": "npm run test:unit && npm run test:build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/humanwhocodes/module-importer.git" - }, - "keywords": [ - "modules", - "esm", - "commonjs" - ], - "engines": { - "node": ">=12.22" - }, - "author": "Nicholas C. Zaks", - "license": "Apache-2.0", - "devDependencies": { - "@types/node": "^18.7.6", - "c8": "7.12.0", - "chai": "4.3.6", - "eslint": "8.22.0", - "lint-staged": "13.0.3", - "mocha": "9.2.2", - "rollup": "2.78.0", - "typescript": "4.7.4", - "yorkie": "2.0.0" - } -} diff --git a/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs b/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs deleted file mode 100644 index 3efb095e..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Imports -//----------------------------------------------------------------------------- - -const { createRequire } = require("module"); -const { pathToFileURL } = require("url"); - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const SLASHES = new Set(["/", "\\"]); - -/** - * Normalizes directories to have a trailing slash. - * Resolve is pretty finicky -- if the directory name doesn't have - * a trailing slash then it tries to look in the parent directory. - * i.e., if the directory is "/usr/nzakas/foo" it will start the - * search in /usr/nzakas. However, if the directory is "/user/nzakas/foo/", - * then it will start the search in /user/nzakas/foo. - * @param {string} directory The directory to check. - * @returns {string} The normalized directory. - */ -function normalizeDirectory(directory) { - if (!SLASHES.has(directory[directory.length-1])) { - return directory + "/"; - } - - return directory; -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * Class for importing both CommonJS and ESM modules in Node.js. - */ -exports.ModuleImporter = class ModuleImporter { - - /** - * Creates a new instance. - * @param {string} [cwd] The current working directory to resolve from. - */ - constructor(cwd = process.cwd()) { - - /** - * The base directory from which paths should be resolved. - * @type {string} - */ - this.cwd = normalizeDirectory(cwd); - } - - /** - * Resolves a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {string|undefined} The location of the import. - * @throws {Error} If specifier cannot be located. - */ - resolve(specifier) { - const require = createRequire(this.cwd); - return require.resolve(specifier); - } - - /** - * Imports a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {Promise} The module's object. - */ - import(specifier) { - const location = this.resolve(specifier); - return import(pathToFileURL(location).href); - } - -} diff --git a/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.js b/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.js deleted file mode 100644 index f5464e18..00000000 --- a/graphql/node_modules/@humanwhocodes/module-importer/src/module-importer.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Imports -//----------------------------------------------------------------------------- - -import { createRequire } from "module"; -import { fileURLToPath } from "url"; -import { dirname } from "path"; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); -const require = createRequire(__dirname + "/"); -const { ModuleImporter } = require("./module-importer.cjs"); - -export { ModuleImporter }; diff --git a/graphql/node_modules/@humanwhocodes/retry/LICENSE b/graphql/node_modules/@humanwhocodes/retry/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/graphql/node_modules/@humanwhocodes/retry/README.md b/graphql/node_modules/@humanwhocodes/retry/README.md deleted file mode 100644 index c419ef13..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/README.md +++ /dev/null @@ -1,138 +0,0 @@ -# Retry utility - -by [Nicholas C. Zakas](https://humanwhocodes.com) - -If you find this useful, please consider supporting my work with a [donation](https://humanwhocodes.com/donate) or [nominate me](https://stars.github.com/nominate/) for a GitHub Star. - -## Description - -A utility for retrying failed async JavaScript calls based on the error returned. - -## Usage - -### Node.js - -Install using [npm][npm] or [yarn][yarn]: - -``` -npm install @humanwhocodes/retry - -# or - -yarn add @humanwhocodes/retry -``` - -Import into your Node.js project: - -```js -// CommonJS -const { Retrier } = require("@humanwhocodes/retry"); - -// ESM -import { Retrier } from "@humanwhocodes/retry"; -``` - -### Deno - -Install using [JSR](https://jsr.io): - -```shell -deno add @humanwhocodes/retry - -#or - -jsr add @humanwhocodes/retry -``` - -Then import into your Deno project: - -```js -import { Retrier } from "@humanwhocodes/retry"; -``` - -### Bun - -Install using this command: - -``` -bun add @humanwhocodes/retry -``` - -Import into your Bun project: - -```js -import { Retrier } from "@humanwhocodes/retry"; -``` - -### Browser - -It's recommended to import the minified version to save bandwidth: - -```js -import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?min"; -``` - -However, you can also import the unminified version for debugging purposes: - -```js -import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry"; -``` - -## API - -After importing, create a new instance of `Retrier` and specify the function to run on the error. This function should return `true` if you want the call retried and `false` if not. - -```js -// this instance will retry if the specific error code is found -const retrier = new Retrier(error => { - return error.code === "ENFILE" || error.code === "EMFILE"; -}); -``` - -Then, call the `retry()` method around the function you'd like to retry, such as: - -```js -import fs from "fs/promises"; - -const retrier = new Retrier(error => { - return error.code === "ENFILE" || error.code === "EMFILE"; -}); - -const text = await retrier.retry(() => fs.readFile("README.md", "utf8")); -``` - -The `retry()` method will either pass through the result on success or wait and retry on failure. Any error that isn't caught by the retrier is automatically rejected so the end result is a transparent passing through of both success and failure. - -You can also pass an `AbortSignal` to cancel a retry: - -```js -import fs from "fs/promises"; - -const controller = new AbortController(); -const retrier = new Retrier(error => { - return error.code === "ENFILE" || error.code === "EMFILE"; -}); - -const text = await retrier.retry( - () => fs.readFile("README.md", "utf8"), - { signal: controller.signal } -); -``` - -## Developer Setup - -1. Fork the repository -2. Clone your fork -3. Run `npm install` to setup dependencies -4. Run `npm test` to run tests - -## License - -Apache 2.0 - -## Prior Art - -This utility is inspired by, and contains code from [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). - -[npm]: https://npmjs.com/ -[yarn]: https://yarnpkg.com/ diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.cjs b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.cjs deleted file mode 100644 index b14e608e..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.cjs +++ /dev/null @@ -1,284 +0,0 @@ -'use strict'; - -/** - * @fileoverview A utility for retrying failed async method calls. - */ - -/* global setTimeout, clearTimeout */ - -//----------------------------------------------------------------------------- -// Constants -//----------------------------------------------------------------------------- - -const MAX_TASK_TIMEOUT = 60000; -const MAX_TASK_DELAY = 100; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * The following logic has been extracted from graceful-fs. - * - * The ISC License - * - * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR - * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/** - * Checks if it is time to retry a task based on the timestamp and last attempt time. - * @param {RetryTask} task The task to check. - * @param {number} maxDelay The maximum delay for the queue. - * @returns {boolean} true if it is time to retry, false otherwise. - */ -function isTimeToRetry(task, maxDelay) { - const timeSinceLastAttempt = Date.now() - task.lastAttempt; - const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); - const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); - - return timeSinceLastAttempt >= desiredDelay; -} - -/** - * Checks if it is time to bail out based on the given timestamp. - * @param {RetryTask} task The task to check. - * @param {number} timeout The timeout for the queue. - * @returns {boolean} true if it is time to bail, false otherwise. - */ -function isTimeToBail(task, timeout) { - return Date.now() - task.timestamp > timeout; -} - - -/** - * A class to represent a task in the retry queue. - */ -class RetryTask { - /** - * The function to call. - * @type {Function} - */ - fn; - - /** - * The error that was thrown. - * @type {Error} - */ - error; - - /** - * The timestamp of the task. - * @type {number} - */ - timestamp = Date.now(); - - /** - * The timestamp of the last attempt. - * @type {number} - */ - lastAttempt = this.timestamp; - - /** - * The resolve function for the promise. - * @type {Function} - */ - resolve; - - /** - * The reject function for the promise. - * @type {Function} - */ - reject; - - /** - * The AbortSignal to monitor for cancellation. - * @type {AbortSignal|undefined} - */ - signal; - - /** - * Creates a new instance. - * @param {Function} fn The function to call. - * @param {Error} error The error that was thrown. - * @param {Function} resolve The resolve function for the promise. - * @param {Function} reject The reject function for the promise. - * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. - */ - constructor(fn, error, resolve, reject, signal) { - this.fn = fn; - this.error = error; - this.timestamp = Date.now(); - this.lastAttempt = Date.now(); - this.resolve = resolve; - this.reject = reject; - this.signal = signal; - } - -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A class that manages a queue of retry jobs. - */ -class Retrier { - /** - * Represents the queue for processing tasks. - * @type {Array} - */ - #queue = []; - - /** - * The timeout for the queue. - * @type {number} - */ - #timeout; - - /** - * The maximum delay for the queue. - * @type {number} - */ - #maxDelay; - - /** - * The setTimeout() timer ID. - * @type {NodeJS.Timeout|undefined} - */ - #timerId; - - /** - * The function to call. - * @type {Function} - */ - #check; - - /** - * Creates a new instance. - * @param {Function} check The function to call. - * @param {object} [options] The options for the instance. - * @param {number} [options.timeout] The timeout for the queue. - * @param {number} [options.maxDelay] The maximum delay for the queue. - */ - constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { - - if (typeof check !== "function") { - throw new Error("Missing function to check errors"); - } - - this.#check = check; - this.#timeout = timeout; - this.#maxDelay = maxDelay; - } - - /** - * Adds a new retry job to the queue. - * @param {Function} fn The function to call. - * @param {object} [options] The options for the job. - * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. - * @returns {Promise} A promise that resolves when the queue is - * processed. - */ - retry(fn, { signal } = {}) { - - signal?.throwIfAborted(); - - let result; - - try { - result = fn(); - } catch (/** @type {any} */ error) { - return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); - } - - // if the result is not a promise then reject an error - if (!result || typeof result.then !== "function") { - return Promise.reject(new Error("Result is not a promise.")); - } - - // call the original function and catch any ENFILE or EMFILE errors - // @ts-ignore because we know it's any - return Promise.resolve(result).catch(error => { - if (!this.#check(error)) { - throw error; - } - - return new Promise((resolve, reject) => { - this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); - - signal?.addEventListener("abort", () => { - reject(signal.reason); - }); - - this.#processQueue(); - }); - }); - } - - /** - * Processes the queue. - * @returns {void} - */ - #processQueue() { - // clear any timer because we're going to check right now - clearTimeout(this.#timerId); - this.#timerId = undefined; - - // if there's nothing in the queue, we're done - const task = this.#queue.shift(); - if (!task) { - return; - } - - // if it's time to bail, then bail - if (isTimeToBail(task, this.#timeout)) { - task.reject(task.error); - this.#processQueue(); - return; - } - - // if it's not time to retry, then wait and try again - if (!isTimeToRetry(task, this.#maxDelay)) { - this.#queue.unshift(task); - this.#timerId = setTimeout(() => this.#processQueue(), 0); - return; - } - - // otherwise, try again - task.lastAttempt = Date.now(); - - // Promise.resolve needed in case it's a thenable but not a Promise - Promise.resolve(task.fn()) - // @ts-ignore because we know it's any - .then(result => task.resolve(result)) - - // @ts-ignore because we know it's any - .catch(error => { - if (!this.#check(error)) { - task.reject(error); - return; - } - - // update the task timestamp and push to back of queue to try again - task.lastAttempt = Date.now(); - this.#queue.push(task); - - }) - .finally(() => this.#processQueue()); - } -} - -exports.Retrier = Retrier; diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.cts b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.cts deleted file mode 100644 index f1529650..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.cts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * A class that manages a queue of retry jobs. - */ -export class Retrier { - /** - * Creates a new instance. - * @param {Function} check The function to call. - * @param {object} [options] The options for the instance. - * @param {number} [options.timeout] The timeout for the queue. - * @param {number} [options.maxDelay] The maximum delay for the queue. - */ - constructor(check: Function, { timeout, maxDelay }?: { - timeout?: number | undefined; - maxDelay?: number | undefined; - } | undefined); - /** - * Adds a new retry job to the queue. - * @param {Function} fn The function to call. - * @param {object} [options] The options for the job. - * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. - * @returns {Promise} A promise that resolves when the queue is - * processed. - */ - retry(fn: Function, { signal }?: { - signal?: AbortSignal | undefined; - } | undefined): Promise; - #private; -} diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.ts b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.ts deleted file mode 100644 index f1529650..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * A class that manages a queue of retry jobs. - */ -export class Retrier { - /** - * Creates a new instance. - * @param {Function} check The function to call. - * @param {object} [options] The options for the instance. - * @param {number} [options.timeout] The timeout for the queue. - * @param {number} [options.maxDelay] The maximum delay for the queue. - */ - constructor(check: Function, { timeout, maxDelay }?: { - timeout?: number | undefined; - maxDelay?: number | undefined; - } | undefined); - /** - * Adds a new retry job to the queue. - * @param {Function} fn The function to call. - * @param {object} [options] The options for the job. - * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. - * @returns {Promise} A promise that resolves when the queue is - * processed. - */ - retry(fn: Function, { signal }?: { - signal?: AbortSignal | undefined; - } | undefined): Promise; - #private; -} diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.js b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.js deleted file mode 100644 index b16166d8..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.js +++ /dev/null @@ -1,283 +0,0 @@ -/// -/** - * @fileoverview A utility for retrying failed async method calls. - */ - -/* global setTimeout, clearTimeout */ - -//----------------------------------------------------------------------------- -// Constants -//----------------------------------------------------------------------------- - -const MAX_TASK_TIMEOUT = 60000; -const MAX_TASK_DELAY = 100; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * The following logic has been extracted from graceful-fs. - * - * The ISC License - * - * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR - * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/** - * Checks if it is time to retry a task based on the timestamp and last attempt time. - * @param {RetryTask} task The task to check. - * @param {number} maxDelay The maximum delay for the queue. - * @returns {boolean} true if it is time to retry, false otherwise. - */ -function isTimeToRetry(task, maxDelay) { - const timeSinceLastAttempt = Date.now() - task.lastAttempt; - const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); - const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); - - return timeSinceLastAttempt >= desiredDelay; -} - -/** - * Checks if it is time to bail out based on the given timestamp. - * @param {RetryTask} task The task to check. - * @param {number} timeout The timeout for the queue. - * @returns {boolean} true if it is time to bail, false otherwise. - */ -function isTimeToBail(task, timeout) { - return Date.now() - task.timestamp > timeout; -} - - -/** - * A class to represent a task in the retry queue. - */ -class RetryTask { - /** - * The function to call. - * @type {Function} - */ - fn; - - /** - * The error that was thrown. - * @type {Error} - */ - error; - - /** - * The timestamp of the task. - * @type {number} - */ - timestamp = Date.now(); - - /** - * The timestamp of the last attempt. - * @type {number} - */ - lastAttempt = this.timestamp; - - /** - * The resolve function for the promise. - * @type {Function} - */ - resolve; - - /** - * The reject function for the promise. - * @type {Function} - */ - reject; - - /** - * The AbortSignal to monitor for cancellation. - * @type {AbortSignal|undefined} - */ - signal; - - /** - * Creates a new instance. - * @param {Function} fn The function to call. - * @param {Error} error The error that was thrown. - * @param {Function} resolve The resolve function for the promise. - * @param {Function} reject The reject function for the promise. - * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. - */ - constructor(fn, error, resolve, reject, signal) { - this.fn = fn; - this.error = error; - this.timestamp = Date.now(); - this.lastAttempt = Date.now(); - this.resolve = resolve; - this.reject = reject; - this.signal = signal; - } - -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A class that manages a queue of retry jobs. - */ -class Retrier { - /** - * Represents the queue for processing tasks. - * @type {Array} - */ - #queue = []; - - /** - * The timeout for the queue. - * @type {number} - */ - #timeout; - - /** - * The maximum delay for the queue. - * @type {number} - */ - #maxDelay; - - /** - * The setTimeout() timer ID. - * @type {NodeJS.Timeout|undefined} - */ - #timerId; - - /** - * The function to call. - * @type {Function} - */ - #check; - - /** - * Creates a new instance. - * @param {Function} check The function to call. - * @param {object} [options] The options for the instance. - * @param {number} [options.timeout] The timeout for the queue. - * @param {number} [options.maxDelay] The maximum delay for the queue. - */ - constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { - - if (typeof check !== "function") { - throw new Error("Missing function to check errors"); - } - - this.#check = check; - this.#timeout = timeout; - this.#maxDelay = maxDelay; - } - - /** - * Adds a new retry job to the queue. - * @param {Function} fn The function to call. - * @param {object} [options] The options for the job. - * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. - * @returns {Promise} A promise that resolves when the queue is - * processed. - */ - retry(fn, { signal } = {}) { - - signal?.throwIfAborted(); - - let result; - - try { - result = fn(); - } catch (/** @type {any} */ error) { - return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); - } - - // if the result is not a promise then reject an error - if (!result || typeof result.then !== "function") { - return Promise.reject(new Error("Result is not a promise.")); - } - - // call the original function and catch any ENFILE or EMFILE errors - // @ts-ignore because we know it's any - return Promise.resolve(result).catch(error => { - if (!this.#check(error)) { - throw error; - } - - return new Promise((resolve, reject) => { - this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); - - signal?.addEventListener("abort", () => { - reject(signal.reason); - }); - - this.#processQueue(); - }); - }); - } - - /** - * Processes the queue. - * @returns {void} - */ - #processQueue() { - // clear any timer because we're going to check right now - clearTimeout(this.#timerId); - this.#timerId = undefined; - - // if there's nothing in the queue, we're done - const task = this.#queue.shift(); - if (!task) { - return; - } - - // if it's time to bail, then bail - if (isTimeToBail(task, this.#timeout)) { - task.reject(task.error); - this.#processQueue(); - return; - } - - // if it's not time to retry, then wait and try again - if (!isTimeToRetry(task, this.#maxDelay)) { - this.#queue.unshift(task); - this.#timerId = setTimeout(() => this.#processQueue(), 0); - return; - } - - // otherwise, try again - task.lastAttempt = Date.now(); - - // Promise.resolve needed in case it's a thenable but not a Promise - Promise.resolve(task.fn()) - // @ts-ignore because we know it's any - .then(result => task.resolve(result)) - - // @ts-ignore because we know it's any - .catch(error => { - if (!this.#check(error)) { - task.reject(error); - return; - } - - // update the task timestamp and push to back of queue to try again - task.lastAttempt = Date.now(); - this.#queue.push(task); - - }) - .finally(() => this.#processQueue()); - } -} - -export { Retrier }; diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.min.js b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.min.js deleted file mode 100644 index ad730c01..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.min.js +++ /dev/null @@ -1 +0,0 @@ -class RetryTask{fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(t,e,r,s,i){this.fn=t,this.error=e,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=s,this.signal=i}}class Retrier{#t=[];#e;#r;#s;#i;constructor(t,{timeout:e=6e4,maxDelay:r=100}={}){if("function"!=typeof t)throw new Error("Missing function to check errors");this.#i=t,this.#e=e,this.#r=r}retry(t,{signal:e}={}){let r;e?.throwIfAborted();try{r=t()}catch(t){return Promise.reject(new Error(`Synchronous error: ${t.message}`,{cause:t}))}return r&&"function"==typeof r.then?Promise.resolve(r).catch((r=>{if(!this.#i(r))throw r;return new Promise(((s,i)=>{this.#t.push(new RetryTask(t,r,s,i,e)),e?.addEventListener("abort",(()=>{i(e.reason)})),this.#o()}))})):Promise.reject(new Error("Result is not a promise."))}#o(){clearTimeout(this.#s),this.#s=void 0;const t=this.#t.shift();if(t){if(function(t,e){return Date.now()-t.timestamp>e}(t,this.#e))return t.reject(t.error),void this.#o();if(!function(t,e){const r=Date.now()-t.lastAttempt,s=Math.max(t.lastAttempt-t.timestamp,1);return r>=Math.min(1.2*s,e)}(t,this.#r))return this.#t.unshift(t),void(this.#s=setTimeout((()=>this.#o()),0));t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then((e=>t.resolve(e))).catch((e=>{this.#i(e)?(t.lastAttempt=Date.now(),this.#t.push(t)):t.reject(e)})).finally((()=>this.#o()))}}}export{Retrier}; diff --git a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.mjs b/graphql/node_modules/@humanwhocodes/retry/dist/retrier.mjs deleted file mode 100644 index 26eb4d31..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/dist/retrier.mjs +++ /dev/null @@ -1,282 +0,0 @@ -/** - * @fileoverview A utility for retrying failed async method calls. - */ - -/* global setTimeout, clearTimeout */ - -//----------------------------------------------------------------------------- -// Constants -//----------------------------------------------------------------------------- - -const MAX_TASK_TIMEOUT = 60000; -const MAX_TASK_DELAY = 100; - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * The following logic has been extracted from graceful-fs. - * - * The ISC License - * - * Copyright (c) 2011-2023 Isaac Z. Schlueter, Ben Noordhuis, and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR - * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/** - * Checks if it is time to retry a task based on the timestamp and last attempt time. - * @param {RetryTask} task The task to check. - * @param {number} maxDelay The maximum delay for the queue. - * @returns {boolean} true if it is time to retry, false otherwise. - */ -function isTimeToRetry(task, maxDelay) { - const timeSinceLastAttempt = Date.now() - task.lastAttempt; - const timeSinceStart = Math.max(task.lastAttempt - task.timestamp, 1); - const desiredDelay = Math.min(timeSinceStart * 1.2, maxDelay); - - return timeSinceLastAttempt >= desiredDelay; -} - -/** - * Checks if it is time to bail out based on the given timestamp. - * @param {RetryTask} task The task to check. - * @param {number} timeout The timeout for the queue. - * @returns {boolean} true if it is time to bail, false otherwise. - */ -function isTimeToBail(task, timeout) { - return Date.now() - task.timestamp > timeout; -} - - -/** - * A class to represent a task in the retry queue. - */ -class RetryTask { - /** - * The function to call. - * @type {Function} - */ - fn; - - /** - * The error that was thrown. - * @type {Error} - */ - error; - - /** - * The timestamp of the task. - * @type {number} - */ - timestamp = Date.now(); - - /** - * The timestamp of the last attempt. - * @type {number} - */ - lastAttempt = this.timestamp; - - /** - * The resolve function for the promise. - * @type {Function} - */ - resolve; - - /** - * The reject function for the promise. - * @type {Function} - */ - reject; - - /** - * The AbortSignal to monitor for cancellation. - * @type {AbortSignal|undefined} - */ - signal; - - /** - * Creates a new instance. - * @param {Function} fn The function to call. - * @param {Error} error The error that was thrown. - * @param {Function} resolve The resolve function for the promise. - * @param {Function} reject The reject function for the promise. - * @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation. - */ - constructor(fn, error, resolve, reject, signal) { - this.fn = fn; - this.error = error; - this.timestamp = Date.now(); - this.lastAttempt = Date.now(); - this.resolve = resolve; - this.reject = reject; - this.signal = signal; - } - -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A class that manages a queue of retry jobs. - */ -class Retrier { - /** - * Represents the queue for processing tasks. - * @type {Array} - */ - #queue = []; - - /** - * The timeout for the queue. - * @type {number} - */ - #timeout; - - /** - * The maximum delay for the queue. - * @type {number} - */ - #maxDelay; - - /** - * The setTimeout() timer ID. - * @type {NodeJS.Timeout|undefined} - */ - #timerId; - - /** - * The function to call. - * @type {Function} - */ - #check; - - /** - * Creates a new instance. - * @param {Function} check The function to call. - * @param {object} [options] The options for the instance. - * @param {number} [options.timeout] The timeout for the queue. - * @param {number} [options.maxDelay] The maximum delay for the queue. - */ - constructor(check, { timeout = MAX_TASK_TIMEOUT, maxDelay = MAX_TASK_DELAY } = {}) { - - if (typeof check !== "function") { - throw new Error("Missing function to check errors"); - } - - this.#check = check; - this.#timeout = timeout; - this.#maxDelay = maxDelay; - } - - /** - * Adds a new retry job to the queue. - * @param {Function} fn The function to call. - * @param {object} [options] The options for the job. - * @param {AbortSignal} [options.signal] The AbortSignal to monitor for cancellation. - * @returns {Promise} A promise that resolves when the queue is - * processed. - */ - retry(fn, { signal } = {}) { - - signal?.throwIfAborted(); - - let result; - - try { - result = fn(); - } catch (/** @type {any} */ error) { - return Promise.reject(new Error(`Synchronous error: ${error.message}`, { cause: error })); - } - - // if the result is not a promise then reject an error - if (!result || typeof result.then !== "function") { - return Promise.reject(new Error("Result is not a promise.")); - } - - // call the original function and catch any ENFILE or EMFILE errors - // @ts-ignore because we know it's any - return Promise.resolve(result).catch(error => { - if (!this.#check(error)) { - throw error; - } - - return new Promise((resolve, reject) => { - this.#queue.push(new RetryTask(fn, error, resolve, reject, signal)); - - signal?.addEventListener("abort", () => { - reject(signal.reason); - }); - - this.#processQueue(); - }); - }); - } - - /** - * Processes the queue. - * @returns {void} - */ - #processQueue() { - // clear any timer because we're going to check right now - clearTimeout(this.#timerId); - this.#timerId = undefined; - - // if there's nothing in the queue, we're done - const task = this.#queue.shift(); - if (!task) { - return; - } - - // if it's time to bail, then bail - if (isTimeToBail(task, this.#timeout)) { - task.reject(task.error); - this.#processQueue(); - return; - } - - // if it's not time to retry, then wait and try again - if (!isTimeToRetry(task, this.#maxDelay)) { - this.#queue.unshift(task); - this.#timerId = setTimeout(() => this.#processQueue(), 0); - return; - } - - // otherwise, try again - task.lastAttempt = Date.now(); - - // Promise.resolve needed in case it's a thenable but not a Promise - Promise.resolve(task.fn()) - // @ts-ignore because we know it's any - .then(result => task.resolve(result)) - - // @ts-ignore because we know it's any - .catch(error => { - if (!this.#check(error)) { - task.reject(error); - return; - } - - // update the task timestamp and push to back of queue to try again - task.lastAttempt = Date.now(); - this.#queue.push(task); - - }) - .finally(() => this.#processQueue()); - } -} - -export { Retrier }; diff --git a/graphql/node_modules/@humanwhocodes/retry/package.json b/graphql/node_modules/@humanwhocodes/retry/package.json deleted file mode 100644 index f5272be0..00000000 --- a/graphql/node_modules/@humanwhocodes/retry/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "@humanwhocodes/retry", - "version": "0.3.0", - "description": "A utility to retry failed async methods.", - "type": "module", - "main": "dist/retrier.cjs", - "module": "dist/retrier.js", - "types": "dist/retrier.d.ts", - "exports": { - "require": { - "types": "./dist/retrier.d.cts", - "default": "./dist/retrier.cjs" - }, - "import": { - "types": "./dist/retrier.d.ts", - "default": "./dist/retrier.js" - } - }, - "files": [ - "dist" - ], - "engines": { - "node": ">=18.18" - }, - "publishConfig": { - "access": "public" - }, - "gitHooks": { - "pre-commit": "lint-staged" - }, - "lint-staged": { - "*.js": [ - "eslint --fix" - ] - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - }, - "scripts": { - "build:cts-types": "node -e \"fs.copyFileSync('dist/retrier.d.ts', 'dist/retrier.d.cts')\"", - "build:prepend-type-ref": "node tools/prepend-type-ref.js dist/retrier.js", - "build": "rollup -c && tsc && npm run build:prepend-type-ref && npm run build:cts-types", - "prepare": "npm run build", - "lint": "eslint src/ tests/", - "pretest": "npm run build", - "test:unit": "mocha tests/retrier.test.js", - "test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs", - "test": "npm run test:unit && npm run test:build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/humanwhocodes/retrier.git" - }, - "keywords": [ - "nodejs", - "retry", - "async", - "promises" - ], - "author": "Nicholas C. Zaks", - "license": "Apache-2.0", - "devDependencies": { - "@eslint/js": "^8.49.0", - "@rollup/plugin-terser": "0.4.4", - "@tsconfig/node16": "^16.1.1", - "@types/mocha": "^10.0.3", - "@types/node": "20.12.6", - "eslint": "^8.21.0", - "lint-staged": "15.2.1", - "mocha": "^10.3.0", - "rollup": "3.29.4", - "typescript": "5.4.4", - "yorkie": "2.0.0" - } -} diff --git a/graphql/node_modules/@nodelib/fs.scandir/LICENSE b/graphql/node_modules/@nodelib/fs.scandir/LICENSE deleted file mode 100644 index 65a99946..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Denis Malinochkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@nodelib/fs.scandir/README.md b/graphql/node_modules/@nodelib/fs.scandir/README.md deleted file mode 100644 index e0b218b9..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/README.md +++ /dev/null @@ -1,171 +0,0 @@ -# @nodelib/fs.scandir - -> List files and directories inside the specified directory. - -## :bulb: Highlights - -The package is aimed at obtaining information about entries in the directory. - -* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). -* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode). -* :link: Can safely work with broken symbolic links. - -## Install - -```console -npm install @nodelib/fs.scandir -``` - -## Usage - -```ts -import * as fsScandir from '@nodelib/fs.scandir'; - -fsScandir.scandir('path', (error, stats) => { /* … */ }); -``` - -## API - -### .scandir(path, [optionsOrSettings], callback) - -Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style. - -```ts -fsScandir.scandir('path', (error, entries) => { /* … */ }); -fsScandir.scandir('path', {}, (error, entries) => { /* … */ }); -fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ }); -``` - -### .scandirSync(path, [optionsOrSettings]) - -Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path. - -```ts -const entries = fsScandir.scandirSync('path'); -const entries = fsScandir.scandirSync('path', {}); -const entries = fsScandir.scandirSync(('path', new fsScandir.Settings()); -``` - -#### path - -* Required: `true` -* Type: `string | Buffer | URL` - -A path to a file. If a URL is provided, it must use the `file:` protocol. - -#### optionsOrSettings - -* Required: `false` -* Type: `Options | Settings` -* Default: An instance of `Settings` class - -An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class. - -> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. - -### Settings([options]) - -A class of full settings of the package. - -```ts -const settings = new fsScandir.Settings({ followSymbolicLinks: false }); - -const entries = fsScandir.scandirSync('path', settings); -``` - -## Entry - -* `name` — The name of the entry (`unknown.txt`). -* `path` — The path of the entry relative to call directory (`root/unknown.txt`). -* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class. -* `stats` (optional) — An instance of `fs.Stats` class. - -For example, the `scandir` call for `tools` directory with one directory inside: - -```ts -{ - dirent: Dirent { name: 'typedoc', /* … */ }, - name: 'typedoc', - path: 'tools/typedoc' -} -``` - -## Options - -### stats - -* Type: `boolean` -* Default: `false` - -Adds an instance of `fs.Stats` class to the [`Entry`](#entry). - -> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO?? - -### followSymbolicLinks - -* Type: `boolean` -* Default: `false` - -Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. - -### `throwErrorOnBrokenSymbolicLink` - -* Type: `boolean` -* Default: `true` - -Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`. - -### `pathSegmentSeparator` - -* Type: `string` -* Default: `path.sep` - -By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. - -### `fs` - -* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) -* Default: A default FS methods - -By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. - -```ts -interface FileSystemAdapter { - lstat?: typeof fs.lstat; - stat?: typeof fs.stat; - lstatSync?: typeof fs.lstatSync; - statSync?: typeof fs.statSync; - readdir?: typeof fs.readdir; - readdirSync?: typeof fs.readdirSync; -} - -const settings = new fsScandir.Settings({ - fs: { lstat: fakeLstat } -}); -``` - -## `old` and `modern` mode - -This package has two modes that are used depending on the environment and parameters of use. - -### old - -* Node.js below `10.10` or when the `stats` option is enabled - -When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links). - -### modern - -* Node.js 10.10+ and the `stats` option is disabled - -In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present. - -This mode makes fewer calls to the file system. It's faster. - -## Changelog - -See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. - -## License - -This software is released under the terms of the MIT license. diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts deleted file mode 100644 index 827f1db0..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type * as fsStat from '@nodelib/fs.stat'; -import type { Dirent, ErrnoException } from '../types'; -export interface ReaddirAsynchronousMethod { - (filepath: string, options: { - withFileTypes: true; - }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void; - (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void; -} -export interface ReaddirSynchronousMethod { - (filepath: string, options: { - withFileTypes: true; - }): Dirent[]; - (filepath: string): string[]; -} -export declare type FileSystemAdapter = fsStat.FileSystemAdapter & { - readdir: ReaddirAsynchronousMethod; - readdirSync: ReaddirSynchronousMethod; -}; -export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; -export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.js b/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.js deleted file mode 100644 index f0fe0220..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; -const fs = require("fs"); -exports.FILE_SYSTEM_ADAPTER = { - lstat: fs.lstat, - stat: fs.stat, - lstatSync: fs.lstatSync, - statSync: fs.statSync, - readdir: fs.readdir, - readdirSync: fs.readdirSync -}; -function createFileSystemAdapter(fsMethods) { - if (fsMethods === undefined) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); -} -exports.createFileSystemAdapter = createFileSystemAdapter; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/constants.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/constants.d.ts deleted file mode 100644 index 33f17497..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * IS `true` for Node.js 10.10 and greater. - */ -export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/constants.js b/graphql/node_modules/@nodelib/fs.scandir/out/constants.js deleted file mode 100644 index 7e3d4411..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/constants.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; -const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.'); -if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) { - throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); -} -const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); -const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); -const SUPPORTED_MAJOR_VERSION = 10; -const SUPPORTED_MINOR_VERSION = 10; -const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; -const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; -/** - * IS `true` for Node.js 10.10 and greater. - */ -exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/index.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/index.d.ts deleted file mode 100644 index b9da83ed..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs'; -import * as async from './providers/async'; -import Settings, { Options } from './settings'; -import type { Dirent, Entry } from './types'; -declare type AsyncCallback = async.AsyncCallback; -declare function scandir(path: string, callback: AsyncCallback): void; -declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; -declare namespace scandir { - function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; -} -declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[]; -export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options }; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/index.js b/graphql/node_modules/@nodelib/fs.scandir/out/index.js deleted file mode 100644 index 99c70d3d..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/index.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Settings = exports.scandirSync = exports.scandir = void 0; -const async = require("./providers/async"); -const sync = require("./providers/sync"); -const settings_1 = require("./settings"); -exports.Settings = settings_1.default; -function scandir(path, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === 'function') { - async.read(path, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path, getSettings(optionsOrSettingsOrCallback), callback); -} -exports.scandir = scandir; -function scandirSync(path, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path, settings); -} -exports.scandirSync = scandirSync; -function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); -} diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts deleted file mode 100644 index 5829676d..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import type Settings from '../settings'; -import type { Entry } from '../types'; -export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void; -export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void; -export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void; -export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.js b/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.js deleted file mode 100644 index e8e2f0a9..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/async.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; -const fsStat = require("@nodelib/fs.stat"); -const rpl = require("run-parallel"); -const constants_1 = require("../constants"); -const utils = require("../utils"); -const common = require("./common"); -function read(directory, settings, callback) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - readdirWithFileTypes(directory, settings, callback); - return; - } - readdir(directory, settings, callback); -} -exports.read = read; -function readdirWithFileTypes(directory, settings, callback) { - settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const entries = dirents.map((dirent) => ({ - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - })); - if (!settings.followSymbolicLinks) { - callSuccessCallback(callback, entries); - return; - } - const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); - rpl(tasks, (rplError, rplEntries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, rplEntries); - }); - }); -} -exports.readdirWithFileTypes = readdirWithFileTypes; -function makeRplTaskEntry(entry, settings) { - return (done) => { - if (!entry.dirent.isSymbolicLink()) { - done(null, entry); - return; - } - settings.fs.stat(entry.path, (statError, stats) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - done(statError); - return; - } - done(null, entry); - return; - } - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - done(null, entry); - }); - }; -} -function readdir(directory, settings, callback) { - settings.fs.readdir(directory, (readdirError, names) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const tasks = names.map((name) => { - const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - return (done) => { - fsStat.stat(path, settings.fsStatSettings, (error, stats) => { - if (error !== null) { - done(error); - return; - } - const entry = { - name, - path, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - done(null, entry); - }); - }; - }); - rpl(tasks, (rplError, entries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, entries); - }); - }); -} -exports.readdir = readdir; -function callFailureCallback(callback, error) { - callback(error); -} -function callSuccessCallback(callback, result) { - callback(null, result); -} diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts deleted file mode 100644 index 2b4d08b5..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.js b/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.js deleted file mode 100644 index 8724cb59..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/common.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.joinPathSegments = void 0; -function joinPathSegments(a, b, separator) { - /** - * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). - */ - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; -} -exports.joinPathSegments = joinPathSegments; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts deleted file mode 100644 index e05c8f07..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type Settings from '../settings'; -import type { Entry } from '../types'; -export declare function read(directory: string, settings: Settings): Entry[]; -export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[]; -export declare function readdir(directory: string, settings: Settings): Entry[]; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.js b/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.js deleted file mode 100644 index 146db343..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/providers/sync.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; -const fsStat = require("@nodelib/fs.stat"); -const constants_1 = require("../constants"); -const utils = require("../utils"); -const common = require("./common"); -function read(directory, settings) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - return readdirWithFileTypes(directory, settings); - } - return readdir(directory, settings); -} -exports.read = read; -function readdirWithFileTypes(directory, settings) { - const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); - return dirents.map((dirent) => { - const entry = { - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - }; - if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { - try { - const stats = settings.fs.statSync(entry.path); - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - } - catch (error) { - if (settings.throwErrorOnBrokenSymbolicLink) { - throw error; - } - } - } - return entry; - }); -} -exports.readdirWithFileTypes = readdirWithFileTypes; -function readdir(directory, settings) { - const names = settings.fs.readdirSync(directory); - return names.map((name) => { - const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - const stats = fsStat.statSync(entryPath, settings.fsStatSettings); - const entry = { - name, - path: entryPath, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - return entry; - }); -} -exports.readdir = readdir; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/settings.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/settings.d.ts deleted file mode 100644 index a0db1155..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/settings.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as fsStat from '@nodelib/fs.stat'; -import * as fs from './adapters/fs'; -export interface Options { - followSymbolicLinks?: boolean; - fs?: Partial; - pathSegmentSeparator?: string; - stats?: boolean; - throwErrorOnBrokenSymbolicLink?: boolean; -} -export default class Settings { - private readonly _options; - readonly followSymbolicLinks: boolean; - readonly fs: fs.FileSystemAdapter; - readonly pathSegmentSeparator: string; - readonly stats: boolean; - readonly throwErrorOnBrokenSymbolicLink: boolean; - readonly fsStatSettings: fsStat.Settings; - constructor(_options?: Options); - private _getValue; -} diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/settings.js b/graphql/node_modules/@nodelib/fs.scandir/out/settings.js deleted file mode 100644 index 15a3e8cd..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/settings.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const fsStat = require("@nodelib/fs.stat"); -const fs = require("./adapters/fs"); -class Settings { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); - this.fs = fs.createFileSystemAdapter(this._options.fs); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); - this.stats = this._getValue(this._options.stats, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - this.fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this.followSymbolicLinks, - fs: this.fs, - throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } -} -exports.default = Settings; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/types/index.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/types/index.d.ts deleted file mode 100644 index f326c5e5..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/// -import type * as fs from 'fs'; -export interface Entry { - dirent: Dirent; - name: string; - path: string; - stats?: Stats; -} -export declare type Stats = fs.Stats; -export declare type ErrnoException = NodeJS.ErrnoException; -export interface Dirent { - isBlockDevice: () => boolean; - isCharacterDevice: () => boolean; - isDirectory: () => boolean; - isFIFO: () => boolean; - isFile: () => boolean; - isSocket: () => boolean; - isSymbolicLink: () => boolean; - name: string; -} diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/types/index.js b/graphql/node_modules/@nodelib/fs.scandir/out/types/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/types/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts deleted file mode 100644 index bb863f15..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { Dirent, Stats } from '../types'; -export declare function createDirentFromStats(name: string, stats: Stats): Dirent; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.js b/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.js deleted file mode 100644 index ace7c74d..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/utils/fs.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDirentFromStats = void 0; -class DirentFromStats { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } -} -function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); -} -exports.createDirentFromStats = createDirentFromStats; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts b/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts deleted file mode 100644 index 1b41954e..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import * as fs from './fs'; -export { fs }; diff --git a/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.js b/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.js deleted file mode 100644 index f5de129f..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/out/utils/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fs = void 0; -const fs = require("./fs"); -exports.fs = fs; diff --git a/graphql/node_modules/@nodelib/fs.scandir/package.json b/graphql/node_modules/@nodelib/fs.scandir/package.json deleted file mode 100644 index d3a89241..00000000 --- a/graphql/node_modules/@nodelib/fs.scandir/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@nodelib/fs.scandir", - "version": "2.1.5", - "description": "List files and directories inside the specified directory", - "license": "MIT", - "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir", - "keywords": [ - "NodeLib", - "fs", - "FileSystem", - "file system", - "scandir", - "readdir", - "dirent" - ], - "engines": { - "node": ">= 8" - }, - "files": [ - "out/**", - "!out/**/*.map", - "!out/**/*.spec.*" - ], - "main": "out/index.js", - "typings": "out/index.d.ts", - "scripts": { - "clean": "rimraf {tsconfig.tsbuildinfo,out}", - "lint": "eslint \"src/**/*.ts\" --cache", - "compile": "tsc -b .", - "compile:watch": "tsc -p . --watch --sourceMap", - "test": "mocha \"out/**/*.spec.js\" -s 0", - "build": "npm run clean && npm run compile && npm run lint && npm test", - "watch": "npm run clean && npm run compile:watch" - }, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "devDependencies": { - "@nodelib/fs.macchiato": "1.0.4", - "@types/run-parallel": "^1.1.0" - }, - "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" -} diff --git a/graphql/node_modules/@nodelib/fs.stat/LICENSE b/graphql/node_modules/@nodelib/fs.stat/LICENSE deleted file mode 100644 index 65a99946..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Denis Malinochkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@nodelib/fs.stat/README.md b/graphql/node_modules/@nodelib/fs.stat/README.md deleted file mode 100644 index 686f0471..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# @nodelib/fs.stat - -> Get the status of a file with some features. - -## :bulb: Highlights - -Wrapper around standard method `fs.lstat` and `fs.stat` with some features. - -* :beginner: Normally follows symbolic link. -* :gear: Can safely work with broken symbolic link. - -## Install - -```console -npm install @nodelib/fs.stat -``` - -## Usage - -```ts -import * as fsStat from '@nodelib/fs.stat'; - -fsStat.stat('path', (error, stats) => { /* … */ }); -``` - -## API - -### .stat(path, [optionsOrSettings], callback) - -Returns an instance of `fs.Stats` class for provided path with standard callback-style. - -```ts -fsStat.stat('path', (error, stats) => { /* … */ }); -fsStat.stat('path', {}, (error, stats) => { /* … */ }); -fsStat.stat('path', new fsStat.Settings(), (error, stats) => { /* … */ }); -``` - -### .statSync(path, [optionsOrSettings]) - -Returns an instance of `fs.Stats` class for provided path. - -```ts -const stats = fsStat.stat('path'); -const stats = fsStat.stat('path', {}); -const stats = fsStat.stat('path', new fsStat.Settings()); -``` - -#### path - -* Required: `true` -* Type: `string | Buffer | URL` - -A path to a file. If a URL is provided, it must use the `file:` protocol. - -#### optionsOrSettings - -* Required: `false` -* Type: `Options | Settings` -* Default: An instance of `Settings` class - -An [`Options`](#options) object or an instance of [`Settings`](#settings) class. - -> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. - -### Settings([options]) - -A class of full settings of the package. - -```ts -const settings = new fsStat.Settings({ followSymbolicLink: false }); - -const stats = fsStat.stat('path', settings); -``` - -## Options - -### `followSymbolicLink` - -* Type: `boolean` -* Default: `true` - -Follow symbolic link or not. Call `fs.stat` on symbolic link if `true`. - -### `markSymbolicLink` - -* Type: `boolean` -* Default: `false` - -Mark symbolic link by setting the return value of `isSymbolicLink` function to always `true` (even after `fs.stat`). - -> :book: Can be used if you want to know what is hidden behind a symbolic link, but still continue to know that it is a symbolic link. - -### `throwErrorOnBrokenSymbolicLink` - -* Type: `boolean` -* Default: `true` - -Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. - -### `fs` - -* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) -* Default: A default FS methods - -By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. - -```ts -interface FileSystemAdapter { - lstat?: typeof fs.lstat; - stat?: typeof fs.stat; - lstatSync?: typeof fs.lstatSync; - statSync?: typeof fs.statSync; -} - -const settings = new fsStat.Settings({ - fs: { lstat: fakeLstat } -}); -``` - -## Changelog - -See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. - -## License - -This software is released under the terms of the MIT license. diff --git a/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts deleted file mode 100644 index 3af759c9..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import * as fs from 'fs'; -import type { ErrnoException } from '../types'; -export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void; -export declare type StatSynchronousMethod = (path: string) => fs.Stats; -export interface FileSystemAdapter { - lstat: StatAsynchronousMethod; - stat: StatAsynchronousMethod; - lstatSync: StatSynchronousMethod; - statSync: StatSynchronousMethod; -} -export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; -export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.js b/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.js deleted file mode 100644 index 8dc08c8c..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/adapters/fs.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; -const fs = require("fs"); -exports.FILE_SYSTEM_ADAPTER = { - lstat: fs.lstat, - stat: fs.stat, - lstatSync: fs.lstatSync, - statSync: fs.statSync -}; -function createFileSystemAdapter(fsMethods) { - if (fsMethods === undefined) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); -} -exports.createFileSystemAdapter = createFileSystemAdapter; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/index.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/index.d.ts deleted file mode 100644 index f95db995..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs'; -import * as async from './providers/async'; -import Settings, { Options } from './settings'; -import type { Stats } from './types'; -declare type AsyncCallback = async.AsyncCallback; -declare function stat(path: string, callback: AsyncCallback): void; -declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; -declare namespace stat { - function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; -} -declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats; -export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats }; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/index.js b/graphql/node_modules/@nodelib/fs.stat/out/index.js deleted file mode 100644 index b23f7510..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/index.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.statSync = exports.stat = exports.Settings = void 0; -const async = require("./providers/async"); -const sync = require("./providers/sync"); -const settings_1 = require("./settings"); -exports.Settings = settings_1.default; -function stat(path, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === 'function') { - async.read(path, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path, getSettings(optionsOrSettingsOrCallback), callback); -} -exports.stat = stat; -function statSync(path, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path, settings); -} -exports.statSync = statSync; -function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); -} diff --git a/graphql/node_modules/@nodelib/fs.stat/out/providers/async.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/providers/async.d.ts deleted file mode 100644 index 85423ce1..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type Settings from '../settings'; -import type { ErrnoException, Stats } from '../types'; -export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void; -export declare function read(path: string, settings: Settings, callback: AsyncCallback): void; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/providers/async.js b/graphql/node_modules/@nodelib/fs.stat/out/providers/async.js deleted file mode 100644 index 983ff0e6..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/providers/async.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.read = void 0; -function read(path, settings, callback) { - settings.fs.lstat(path, (lstatError, lstat) => { - if (lstatError !== null) { - callFailureCallback(callback, lstatError); - return; - } - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - callSuccessCallback(callback, lstat); - return; - } - settings.fs.stat(path, (statError, stat) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - callFailureCallback(callback, statError); - return; - } - callSuccessCallback(callback, lstat); - return; - } - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - callSuccessCallback(callback, stat); - }); - }); -} -exports.read = read; -function callFailureCallback(callback, error) { - callback(error); -} -function callSuccessCallback(callback, result) { - callback(null, result); -} diff --git a/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts deleted file mode 100644 index 428c3d79..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type Settings from '../settings'; -import type { Stats } from '../types'; -export declare function read(path: string, settings: Settings): Stats; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.js b/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.js deleted file mode 100644 index 1521c361..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/providers/sync.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.read = void 0; -function read(path, settings) { - const lstat = settings.fs.lstatSync(path); - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - return lstat; - } - try { - const stat = settings.fs.statSync(path); - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - return stat; - } - catch (error) { - if (!settings.throwErrorOnBrokenSymbolicLink) { - return lstat; - } - throw error; - } -} -exports.read = read; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/settings.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/settings.d.ts deleted file mode 100644 index f4b3d444..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/settings.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import * as fs from './adapters/fs'; -export interface Options { - followSymbolicLink?: boolean; - fs?: Partial; - markSymbolicLink?: boolean; - throwErrorOnBrokenSymbolicLink?: boolean; -} -export default class Settings { - private readonly _options; - readonly followSymbolicLink: boolean; - readonly fs: fs.FileSystemAdapter; - readonly markSymbolicLink: boolean; - readonly throwErrorOnBrokenSymbolicLink: boolean; - constructor(_options?: Options); - private _getValue; -} diff --git a/graphql/node_modules/@nodelib/fs.stat/out/settings.js b/graphql/node_modules/@nodelib/fs.stat/out/settings.js deleted file mode 100644 index 111ec09c..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/settings.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fs = require("./adapters/fs"); -class Settings { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); - this.fs = fs.createFileSystemAdapter(this._options.fs); - this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } -} -exports.default = Settings; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/types/index.d.ts b/graphql/node_modules/@nodelib/fs.stat/out/types/index.d.ts deleted file mode 100644 index 74c08ed2..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -import type * as fs from 'fs'; -export declare type Stats = fs.Stats; -export declare type ErrnoException = NodeJS.ErrnoException; diff --git a/graphql/node_modules/@nodelib/fs.stat/out/types/index.js b/graphql/node_modules/@nodelib/fs.stat/out/types/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/out/types/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/graphql/node_modules/@nodelib/fs.stat/package.json b/graphql/node_modules/@nodelib/fs.stat/package.json deleted file mode 100644 index f2540c28..00000000 --- a/graphql/node_modules/@nodelib/fs.stat/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@nodelib/fs.stat", - "version": "2.0.5", - "description": "Get the status of a file with some features", - "license": "MIT", - "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat", - "keywords": [ - "NodeLib", - "fs", - "FileSystem", - "file system", - "stat" - ], - "engines": { - "node": ">= 8" - }, - "files": [ - "out/**", - "!out/**/*.map", - "!out/**/*.spec.*" - ], - "main": "out/index.js", - "typings": "out/index.d.ts", - "scripts": { - "clean": "rimraf {tsconfig.tsbuildinfo,out}", - "lint": "eslint \"src/**/*.ts\" --cache", - "compile": "tsc -b .", - "compile:watch": "tsc -p . --watch --sourceMap", - "test": "mocha \"out/**/*.spec.js\" -s 0", - "build": "npm run clean && npm run compile && npm run lint && npm test", - "watch": "npm run clean && npm run compile:watch" - }, - "devDependencies": { - "@nodelib/fs.macchiato": "1.0.4" - }, - "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" -} diff --git a/graphql/node_modules/@nodelib/fs.walk/LICENSE b/graphql/node_modules/@nodelib/fs.walk/LICENSE deleted file mode 100644 index 65a99946..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Denis Malinochkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@nodelib/fs.walk/README.md b/graphql/node_modules/@nodelib/fs.walk/README.md deleted file mode 100644 index 6ccc08db..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/README.md +++ /dev/null @@ -1,215 +0,0 @@ -# @nodelib/fs.walk - -> A library for efficiently walking a directory recursively. - -## :bulb: Highlights - -* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). -* :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode). -* :gear: Built-in directories/files and error filtering system. -* :link: Can safely work with broken symbolic links. - -## Install - -```console -npm install @nodelib/fs.walk -``` - -## Usage - -```ts -import * as fsWalk from '@nodelib/fs.walk'; - -fsWalk.walk('path', (error, entries) => { /* … */ }); -``` - -## API - -### .walk(path, [optionsOrSettings], callback) - -Reads the directory recursively and asynchronously. Requires a callback function. - -> :book: If you want to use the Promise API, use `util.promisify`. - -```ts -fsWalk.walk('path', (error, entries) => { /* … */ }); -fsWalk.walk('path', {}, (error, entries) => { /* … */ }); -fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ }); -``` - -### .walkStream(path, [optionsOrSettings]) - -Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider. - -```ts -const stream = fsWalk.walkStream('path'); -const stream = fsWalk.walkStream('path', {}); -const stream = fsWalk.walkStream('path', new fsWalk.Settings()); -``` - -### .walkSync(path, [optionsOrSettings]) - -Reads the directory recursively and synchronously. Returns an array of entries. - -```ts -const entries = fsWalk.walkSync('path'); -const entries = fsWalk.walkSync('path', {}); -const entries = fsWalk.walkSync('path', new fsWalk.Settings()); -``` - -#### path - -* Required: `true` -* Type: `string | Buffer | URL` - -A path to a file. If a URL is provided, it must use the `file:` protocol. - -#### optionsOrSettings - -* Required: `false` -* Type: `Options | Settings` -* Default: An instance of `Settings` class - -An [`Options`](#options) object or an instance of [`Settings`](#settings) class. - -> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. - -### Settings([options]) - -A class of full settings of the package. - -```ts -const settings = new fsWalk.Settings({ followSymbolicLinks: true }); - -const entries = fsWalk.walkSync('path', settings); -``` - -## Entry - -* `name` — The name of the entry (`unknown.txt`). -* `path` — The path of the entry relative to call directory (`root/unknown.txt`). -* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. -* [`stats`] — An instance of `fs.Stats` class. - -## Options - -### basePath - -* Type: `string` -* Default: `undefined` - -By default, all paths are built relative to the root path. You can use this option to set custom root path. - -In the example below we read the files from the `root` directory, but in the results the root path will be `custom`. - -```ts -fsWalk.walkSync('root'); // → ['root/file.txt'] -fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt'] -``` - -### concurrency - -* Type: `number` -* Default: `Infinity` - -The maximum number of concurrent calls to `fs.readdir`. - -> :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)). - -### deepFilter - -* Type: [`DeepFilterFunction`](./src/settings.ts) -* Default: `undefined` - -A function that indicates whether the directory will be read deep or not. - -```ts -// Skip all directories that starts with `node_modules` -const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules'); -``` - -### entryFilter - -* Type: [`EntryFilterFunction`](./src/settings.ts) -* Default: `undefined` - -A function that indicates whether the entry will be included to results or not. - -```ts -// Exclude all `.js` files from results -const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js'); -``` - -### errorFilter - -* Type: [`ErrorFilterFunction`](./src/settings.ts) -* Default: `undefined` - -A function that allows you to skip errors that occur when reading directories. - -For example, you can skip `ENOENT` errors if required: - -```ts -// Skip all ENOENT errors -const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT'; -``` - -### stats - -* Type: `boolean` -* Default: `false` - -Adds an instance of `fs.Stats` class to the [`Entry`](#entry). - -> :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type. - -### followSymbolicLinks - -* Type: `boolean` -* Default: `false` - -Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. - -### `throwErrorOnBrokenSymbolicLink` - -* Type: `boolean` -* Default: `true` - -Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. - -### `pathSegmentSeparator` - -* Type: `string` -* Default: `path.sep` - -By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. - -### `fs` - -* Type: `FileSystemAdapter` -* Default: A default FS methods - -By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. - -```ts -interface FileSystemAdapter { - lstat: typeof fs.lstat; - stat: typeof fs.stat; - lstatSync: typeof fs.lstatSync; - statSync: typeof fs.statSync; - readdir: typeof fs.readdir; - readdirSync: typeof fs.readdirSync; -} - -const settings = new fsWalk.Settings({ - fs: { lstat: fakeLstat } -}); -``` - -## Changelog - -See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. - -## License - -This software is released under the terms of the MIT license. diff --git a/graphql/node_modules/@nodelib/fs.walk/out/index.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/index.d.ts deleted file mode 100644 index 8864c7bf..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import type { Readable } from 'stream'; -import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir'; -import { AsyncCallback } from './providers/async'; -import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings'; -import type { Entry } from './types'; -declare function walk(directory: string, callback: AsyncCallback): void; -declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; -declare namespace walk { - function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise; -} -declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[]; -declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable; -export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction }; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/index.js b/graphql/node_modules/@nodelib/fs.walk/out/index.js deleted file mode 100644 index 15207874..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/index.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; -const async_1 = require("./providers/async"); -const stream_1 = require("./providers/stream"); -const sync_1 = require("./providers/sync"); -const settings_1 = require("./settings"); -exports.Settings = settings_1.default; -function walk(directory, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === 'function') { - new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); - return; - } - new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); -} -exports.walk = walk; -function walkSync(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new sync_1.default(directory, settings); - return provider.read(); -} -exports.walkSync = walkSync; -function walkStream(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new stream_1.default(directory, settings); - return provider.read(); -} -exports.walkStream = walkStream; -function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/async.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/providers/async.d.ts deleted file mode 100644 index 0f6717d7..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import AsyncReader from '../readers/async'; -import type Settings from '../settings'; -import type { Entry, Errno } from '../types'; -export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void; -export default class AsyncProvider { - private readonly _root; - private readonly _settings; - protected readonly _reader: AsyncReader; - private readonly _storage; - constructor(_root: string, _settings: Settings); - read(callback: AsyncCallback): void; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/async.js b/graphql/node_modules/@nodelib/fs.walk/out/providers/async.js deleted file mode 100644 index 51d3be51..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/async.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const async_1 = require("../readers/async"); -class AsyncProvider { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._storage = []; - } - read(callback) { - this._reader.onError((error) => { - callFailureCallback(callback, error); - }); - this._reader.onEntry((entry) => { - this._storage.push(entry); - }); - this._reader.onEnd(() => { - callSuccessCallback(callback, this._storage); - }); - this._reader.read(); - } -} -exports.default = AsyncProvider; -function callFailureCallback(callback, error) { - callback(error); -} -function callSuccessCallback(callback, entries) { - callback(null, entries); -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/index.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/providers/index.d.ts deleted file mode 100644 index 874f60c5..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import AsyncProvider from './async'; -import StreamProvider from './stream'; -import SyncProvider from './sync'; -export { AsyncProvider, StreamProvider, SyncProvider }; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/index.js b/graphql/node_modules/@nodelib/fs.walk/out/providers/index.js deleted file mode 100644 index 4c2529ce..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SyncProvider = exports.StreamProvider = exports.AsyncProvider = void 0; -const async_1 = require("./async"); -exports.AsyncProvider = async_1.default; -const stream_1 = require("./stream"); -exports.StreamProvider = stream_1.default; -const sync_1 = require("./sync"); -exports.SyncProvider = sync_1.default; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts deleted file mode 100644 index 294185f8..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { Readable } from 'stream'; -import AsyncReader from '../readers/async'; -import type Settings from '../settings'; -export default class StreamProvider { - private readonly _root; - private readonly _settings; - protected readonly _reader: AsyncReader; - protected readonly _stream: Readable; - constructor(_root: string, _settings: Settings); - read(): Readable; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.js b/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.js deleted file mode 100644 index 51298b0f..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/stream.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = require("stream"); -const async_1 = require("../readers/async"); -class StreamProvider { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._stream = new stream_1.Readable({ - objectMode: true, - read: () => { }, - destroy: () => { - if (!this._reader.isDestroyed) { - this._reader.destroy(); - } - } - }); - } - read() { - this._reader.onError((error) => { - this._stream.emit('error', error); - }); - this._reader.onEntry((entry) => { - this._stream.push(entry); - }); - this._reader.onEnd(() => { - this._stream.push(null); - }); - this._reader.read(); - return this._stream; - } -} -exports.default = StreamProvider; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts deleted file mode 100644 index 551c42e4..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import SyncReader from '../readers/sync'; -import type Settings from '../settings'; -import type { Entry } from '../types'; -export default class SyncProvider { - private readonly _root; - private readonly _settings; - protected readonly _reader: SyncReader; - constructor(_root: string, _settings: Settings); - read(): Entry[]; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.js b/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.js deleted file mode 100644 index faab6ca2..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/providers/sync.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sync_1 = require("../readers/sync"); -class SyncProvider { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new sync_1.default(this._root, this._settings); - } - read() { - return this._reader.read(); - } -} -exports.default = SyncProvider; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/async.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/readers/async.d.ts deleted file mode 100644 index 9acf4e6c..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import * as fsScandir from '@nodelib/fs.scandir'; -import type Settings from '../settings'; -import type { Entry, Errno } from '../types'; -import Reader from './reader'; -declare type EntryEventCallback = (entry: Entry) => void; -declare type ErrorEventCallback = (error: Errno) => void; -declare type EndEventCallback = () => void; -export default class AsyncReader extends Reader { - protected readonly _settings: Settings; - protected readonly _scandir: typeof fsScandir.scandir; - protected readonly _emitter: EventEmitter; - private readonly _queue; - private _isFatalError; - private _isDestroyed; - constructor(_root: string, _settings: Settings); - read(): EventEmitter; - get isDestroyed(): boolean; - destroy(): void; - onEntry(callback: EntryEventCallback): void; - onError(callback: ErrorEventCallback): void; - onEnd(callback: EndEventCallback): void; - private _pushToQueue; - private _worker; - private _handleError; - private _handleEntry; - private _emitEntry; -} -export {}; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/async.js b/graphql/node_modules/@nodelib/fs.walk/out/readers/async.js deleted file mode 100644 index ebe8dd57..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/async.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events_1 = require("events"); -const fsScandir = require("@nodelib/fs.scandir"); -const fastq = require("fastq"); -const common = require("./common"); -const reader_1 = require("./reader"); -class AsyncReader extends reader_1.default { - constructor(_root, _settings) { - super(_root, _settings); - this._settings = _settings; - this._scandir = fsScandir.scandir; - this._emitter = new events_1.EventEmitter(); - this._queue = fastq(this._worker.bind(this), this._settings.concurrency); - this._isFatalError = false; - this._isDestroyed = false; - this._queue.drain = () => { - if (!this._isFatalError) { - this._emitter.emit('end'); - } - }; - } - read() { - this._isFatalError = false; - this._isDestroyed = false; - setImmediate(() => { - this._pushToQueue(this._root, this._settings.basePath); - }); - return this._emitter; - } - get isDestroyed() { - return this._isDestroyed; - } - destroy() { - if (this._isDestroyed) { - throw new Error('The reader is already destroyed'); - } - this._isDestroyed = true; - this._queue.killAndDrain(); - } - onEntry(callback) { - this._emitter.on('entry', callback); - } - onError(callback) { - this._emitter.once('error', callback); - } - onEnd(callback) { - this._emitter.once('end', callback); - } - _pushToQueue(directory, base) { - const queueItem = { directory, base }; - this._queue.push(queueItem, (error) => { - if (error !== null) { - this._handleError(error); - } - }); - } - _worker(item, done) { - this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { - if (error !== null) { - done(error, undefined); - return; - } - for (const entry of entries) { - this._handleEntry(entry, item.base); - } - done(null, undefined); - }); - } - _handleError(error) { - if (this._isDestroyed || !common.isFatalError(this._settings, error)) { - return; - } - this._isFatalError = true; - this._isDestroyed = true; - this._emitter.emit('error', error); - } - _handleEntry(entry, base) { - if (this._isDestroyed || this._isFatalError) { - return; - } - const fullpath = entry.path; - if (base !== undefined) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._emitEntry(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); - } - } - _emitEntry(entry) { - this._emitter.emit('entry', entry); - } -} -exports.default = AsyncReader; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/common.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/readers/common.d.ts deleted file mode 100644 index 5985f97c..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { FilterFunction } from '../settings'; -import type Settings from '../settings'; -import type { Errno } from '../types'; -export declare function isFatalError(settings: Settings, error: Errno): boolean; -export declare function isAppliedFilter(filter: FilterFunction | null, value: T): boolean; -export declare function replacePathSegmentSeparator(filepath: string, separator: string): string; -export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/common.js b/graphql/node_modules/@nodelib/fs.walk/out/readers/common.js deleted file mode 100644 index a93572f4..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/common.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; -function isFatalError(settings, error) { - if (settings.errorFilter === null) { - return true; - } - return !settings.errorFilter(error); -} -exports.isFatalError = isFatalError; -function isAppliedFilter(filter, value) { - return filter === null || filter(value); -} -exports.isAppliedFilter = isAppliedFilter; -function replacePathSegmentSeparator(filepath, separator) { - return filepath.split(/[/\\]/).join(separator); -} -exports.replacePathSegmentSeparator = replacePathSegmentSeparator; -function joinPathSegments(a, b, separator) { - if (a === '') { - return b; - } - /** - * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). - */ - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; -} -exports.joinPathSegments = joinPathSegments; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts deleted file mode 100644 index e1f383b2..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type Settings from '../settings'; -export default class Reader { - protected readonly _root: string; - protected readonly _settings: Settings; - constructor(_root: string, _settings: Settings); -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.js b/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.js deleted file mode 100644 index 782f07cb..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/reader.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const common = require("./common"); -class Reader { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); - } -} -exports.default = Reader; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts deleted file mode 100644 index af410335..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as fsScandir from '@nodelib/fs.scandir'; -import type { Entry } from '../types'; -import Reader from './reader'; -export default class SyncReader extends Reader { - protected readonly _scandir: typeof fsScandir.scandirSync; - private readonly _storage; - private readonly _queue; - read(): Entry[]; - private _pushToQueue; - private _handleQueue; - private _handleDirectory; - private _handleError; - private _handleEntry; - private _pushToStorage; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.js b/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.js deleted file mode 100644 index 9a8d5a6f..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/readers/sync.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fsScandir = require("@nodelib/fs.scandir"); -const common = require("./common"); -const reader_1 = require("./reader"); -class SyncReader extends reader_1.default { - constructor() { - super(...arguments); - this._scandir = fsScandir.scandirSync; - this._storage = []; - this._queue = new Set(); - } - read() { - this._pushToQueue(this._root, this._settings.basePath); - this._handleQueue(); - return this._storage; - } - _pushToQueue(directory, base) { - this._queue.add({ directory, base }); - } - _handleQueue() { - for (const item of this._queue.values()) { - this._handleDirectory(item.directory, item.base); - } - } - _handleDirectory(directory, base) { - try { - const entries = this._scandir(directory, this._settings.fsScandirSettings); - for (const entry of entries) { - this._handleEntry(entry, base); - } - } - catch (error) { - this._handleError(error); - } - } - _handleError(error) { - if (!common.isFatalError(this._settings, error)) { - return; - } - throw error; - } - _handleEntry(entry, base) { - const fullpath = entry.path; - if (base !== undefined) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._pushToStorage(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); - } - } - _pushToStorage(entry) { - this._storage.push(entry); - } -} -exports.default = SyncReader; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/settings.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/settings.d.ts deleted file mode 100644 index d1c4b45f..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/settings.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as fsScandir from '@nodelib/fs.scandir'; -import type { Entry, Errno } from './types'; -export declare type FilterFunction = (value: T) => boolean; -export declare type DeepFilterFunction = FilterFunction; -export declare type EntryFilterFunction = FilterFunction; -export declare type ErrorFilterFunction = FilterFunction; -export interface Options { - basePath?: string; - concurrency?: number; - deepFilter?: DeepFilterFunction; - entryFilter?: EntryFilterFunction; - errorFilter?: ErrorFilterFunction; - followSymbolicLinks?: boolean; - fs?: Partial; - pathSegmentSeparator?: string; - stats?: boolean; - throwErrorOnBrokenSymbolicLink?: boolean; -} -export default class Settings { - private readonly _options; - readonly basePath?: string; - readonly concurrency: number; - readonly deepFilter: DeepFilterFunction | null; - readonly entryFilter: EntryFilterFunction | null; - readonly errorFilter: ErrorFilterFunction | null; - readonly pathSegmentSeparator: string; - readonly fsScandirSettings: fsScandir.Settings; - constructor(_options?: Options); - private _getValue; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/settings.js b/graphql/node_modules/@nodelib/fs.walk/out/settings.js deleted file mode 100644 index d7a85c81..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/settings.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const fsScandir = require("@nodelib/fs.scandir"); -class Settings { - constructor(_options = {}) { - this._options = _options; - this.basePath = this._getValue(this._options.basePath, undefined); - this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); - this.deepFilter = this._getValue(this._options.deepFilter, null); - this.entryFilter = this._getValue(this._options.entryFilter, null); - this.errorFilter = this._getValue(this._options.errorFilter, null); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); - this.fsScandirSettings = new fsScandir.Settings({ - followSymbolicLinks: this._options.followSymbolicLinks, - fs: this._options.fs, - pathSegmentSeparator: this._options.pathSegmentSeparator, - stats: this._options.stats, - throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } -} -exports.default = Settings; diff --git a/graphql/node_modules/@nodelib/fs.walk/out/types/index.d.ts b/graphql/node_modules/@nodelib/fs.walk/out/types/index.d.ts deleted file mode 100644 index 6ee9bd3f..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import type * as scandir from '@nodelib/fs.scandir'; -export declare type Entry = scandir.Entry; -export declare type Errno = NodeJS.ErrnoException; -export interface QueueItem { - directory: string; - base?: string; -} diff --git a/graphql/node_modules/@nodelib/fs.walk/out/types/index.js b/graphql/node_modules/@nodelib/fs.walk/out/types/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/out/types/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/graphql/node_modules/@nodelib/fs.walk/package.json b/graphql/node_modules/@nodelib/fs.walk/package.json deleted file mode 100644 index 86bfce48..00000000 --- a/graphql/node_modules/@nodelib/fs.walk/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@nodelib/fs.walk", - "version": "1.2.8", - "description": "A library for efficiently walking a directory recursively", - "license": "MIT", - "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk", - "keywords": [ - "NodeLib", - "fs", - "FileSystem", - "file system", - "walk", - "scanner", - "crawler" - ], - "engines": { - "node": ">= 8" - }, - "files": [ - "out/**", - "!out/**/*.map", - "!out/**/*.spec.*", - "!out/**/tests/**" - ], - "main": "out/index.js", - "typings": "out/index.d.ts", - "scripts": { - "clean": "rimraf {tsconfig.tsbuildinfo,out}", - "lint": "eslint \"src/**/*.ts\" --cache", - "compile": "tsc -b .", - "compile:watch": "tsc -p . --watch --sourceMap", - "test": "mocha \"out/**/*.spec.js\" -s 0", - "build": "npm run clean && npm run compile && npm run lint && npm test", - "watch": "npm run clean && npm run compile:watch" - }, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "devDependencies": { - "@nodelib/fs.macchiato": "1.0.4" - }, - "gitHead": "1e5bad48565da2b06b8600e744324ea240bf49d8" -} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/LICENSE b/graphql/node_modules/@typescript-eslint/eslint-plugin/LICENSE deleted file mode 100644 index a1164108..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/README.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/README.md deleted file mode 100644 index 3f894c88..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `@typescript-eslint/eslint-plugin` - -An ESLint plugin which provides lint rules for TypeScript codebases. - -[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) -[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin) - -👉 See **https://typescript-eslint.io/getting-started** for our Getting Started docs. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js deleted file mode 100644 index f589408a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - 'class-methods-use-this': 'off', - '@typescript-eslint/class-methods-use-this': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - 'consistent-return': 'off', - '@typescript-eslint/consistent-return': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - '@typescript-eslint/consistent-type-exports': 'error', - '@typescript-eslint/consistent-type-imports': 'error', - 'default-param-last': 'off', - '@typescript-eslint/default-param-last': 'error', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/explicit-function-return-type': 'error', - '@typescript-eslint/explicit-member-accessibility': 'error', - '@typescript-eslint/explicit-module-boundary-types': 'error', - 'init-declarations': 'off', - '@typescript-eslint/init-declarations': 'error', - 'max-params': 'off', - '@typescript-eslint/max-params': 'error', - '@typescript-eslint/member-ordering': 'error', - '@typescript-eslint/method-signature-style': 'error', - '@typescript-eslint/naming-convention': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - 'no-dupe-class-members': 'off', - '@typescript-eslint/no-dupe-class-members': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-import-type-side-effects': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - 'no-invalid-this': 'off', - '@typescript-eslint/no-invalid-this': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - 'no-loop-func': 'off', - '@typescript-eslint/no-loop-func': 'error', - 'no-magic-numbers': 'off', - '@typescript-eslint/no-magic-numbers': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - 'no-redeclare': 'off', - '@typescript-eslint/no-redeclare': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - 'no-restricted-imports': 'off', - '@typescript-eslint/no-restricted-imports': 'error', - '@typescript-eslint/no-restricted-types': 'error', - 'no-shadow': 'off', - '@typescript-eslint/no-shadow': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error', - '@typescript-eslint/no-unnecessary-qualifier': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-use-before-define': 'off', - '@typescript-eslint/no-use-before-define': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-useless-empty-export': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/parameter-properties': 'error', - '@typescript-eslint/prefer-as-const': 'error', - 'prefer-destructuring': 'off', - '@typescript-eslint/prefer-destructuring': 'error', - '@typescript-eslint/prefer-enum-initializers': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-readonly': 'error', - '@typescript-eslint/prefer-readonly-parameter-types': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - '@typescript-eslint/promise-function-async': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - 'no-return-await': 'off', - '@typescript-eslint/return-await': 'error', - '@typescript-eslint/strict-boolean-expressions': 'error', - '@typescript-eslint/switch-exhaustiveness-check': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/typedef': 'error', - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, -}; -//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map deleted file mode 100644 index 48f12f2f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,oDAAoD,EAAE,OAAO;QAC7D,oDAAo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ules/@typescript-eslint/eslint-plugin/dist/configs/base.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js deleted file mode 100644 index cb61c298..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { sourceType: 'module' }, - plugins: ['@typescript-eslint'], -}; -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map deleted file mode 100644 index 21dfaacb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAEA,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,oBAAoB,CAAC;CACD,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js deleted file mode 100644 index c1e44735..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - parserOptions: { project: false, program: null, projectService: false }, - rules: { - '@typescript-eslint/await-thenable': 'off', - '@typescript-eslint/consistent-return': 'off', - '@typescript-eslint/consistent-type-exports': 'off', - '@typescript-eslint/dot-notation': 'off', - '@typescript-eslint/naming-convention': 'off', - '@typescript-eslint/no-array-delete': 'off', - '@typescript-eslint/no-base-to-string': 'off', - '@typescript-eslint/no-confusing-void-expression': 'off', - '@typescript-eslint/no-duplicate-type-constituents': 'off', - '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-for-in-array': 'off', - '@typescript-eslint/no-implied-eval': 'off', - '@typescript-eslint/no-meaningless-void-operator': 'off', - '@typescript-eslint/no-misused-promises': 'off', - '@typescript-eslint/no-mixed-enums': 'off', - '@typescript-eslint/no-redundant-type-constituents': 'off', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', - '@typescript-eslint/no-unnecessary-condition': 'off', - '@typescript-eslint/no-unnecessary-qualifier': 'off', - '@typescript-eslint/no-unnecessary-template-expression': 'off', - '@typescript-eslint/no-unnecessary-type-arguments': 'off', - '@typescript-eslint/no-unnecessary-type-assertion': 'off', - '@typescript-eslint/no-unnecessary-type-parameters': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-unsafe-enum-comparison': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-unary-minus': 'off', - '@typescript-eslint/non-nullable-type-assertion-style': 'off', - '@typescript-eslint/only-throw-error': 'off', - '@typescript-eslint/prefer-destructuring': 'off', - '@typescript-eslint/prefer-find': 'off', - '@typescript-eslint/prefer-includes': 'off', - '@typescript-eslint/prefer-nullish-coalescing': 'off', - '@typescript-eslint/prefer-optional-chain': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-readonly': 'off', - '@typescript-eslint/prefer-readonly-parameter-types': 'off', - '@typescript-eslint/prefer-reduce-type-parameter': 'off', - '@typescript-eslint/prefer-regexp-exec': 'off', - '@typescript-eslint/prefer-return-this-type': 'off', - '@typescript-eslint/prefer-string-starts-ends-with': 'off', - '@typescript-eslint/promise-function-async': 'off', - '@typescript-eslint/require-array-sort-compare': 'off', - '@typescript-eslint/require-await': 'off', - '@typescript-eslint/restrict-plus-operands': 'off', - '@typescript-eslint/restrict-template-expressions': 'off', - '@typescript-eslint/return-await': 'off', - '@typescript-eslint/strict-boolean-expressions': 'off', - '@typescript-eslint/switch-exhaustiveness-check': 'off', - '@typescript-eslint/unbound-method': 'off', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', - }, -}; -//# sourceMappingURL=disable-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map deleted file mode 100644 index fbace7d4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;IACvE,KAAK,EAAE;QACL,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,iCAAiC,EAAE,KAAK;QACxC,sCAAsC,EAAE,KAAK;QAC7C,oCAAoC,EAAE,KAAK;QAC3C,sCAAsC,EAAE,KAAK;QAC7C,iDAAiD,EAAE,KAAK;QACxD,mDAAmD,EAAE,KAAK;QAC1D,yCAAyC,EAAE,KAAK;QAChD,oCAAoC,EAAE,KAAK;QAC3C,oCAAoC,EAAE,KAAK;QAC3C,iDAAiD,EAAE,KAAK;QACxD,wCAAwC,EAAE,KAAK;QAC/C,mCAAmC,EAAE,KAAK;QAC1C,mDAAmD,EAAE,KAAK;QAC1D,2DAA2D,EAAE,KAAK;QAClE,6CAA6C,EAAE,KAAK;QACpD,6CAA6C,EAAE,KAAK;QACpD,uDAAuD,EAAE,KAAK;QAC9D,kDAAkD,EAAE,KAAK;QACzD,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,uCAAuC,EAAE,KAAK;QAC9C,yCAAyC,EAAE,KAAK;QAChD,mCAAmC,EAAE,KAAK;QAC1C,8CAA8C,EAAE,KAAK;QACrD,4CAA4C,EAAE,KAAK;QACnD,qCAAqC,EAAE,KAAK;QAC5C,0CAA0C,EAAE,KAAK;QACjD,sDAAsD,EAAE,KAAK;QAC7D,qCAAqC,EAAE,KAAK;QAC5C,yCAAyC,EAAE,KAAK;QAChD,gCAAgC,EAAE,KAAK;QACvC,oCAAoC,EAAE,KAAK;QAC3C,8CAA8C,EAAE,KAAK;QACrD,0CAA0C,EAAE,KAAK;QACjD,iDAAiD,EAAE,KAAK;QACxD,oCAAoC,EAAE,KAAK;QAC3C,oDAAoD,EAAE,KAAK;QAC3D,iDAAiD,EAAE,KAAK;QACxD,uCAAuC,EAAE,KAAK;QAC9C,4CAA4C,EAAE,KAAK;QACnD,mDAAmD,EAAE,KAAK;QAC1D,2CAA2C,EAAE,KAAK;QAClD,+CAA+C,EAAE,KAAK;QACtD,kCAAkC,EAAE,KAAK;QACzC,2CAA2C,EAAE,KAAK;QAClD,kDAAkD,EAAE,KAAK;QACzD,iCAAiC,EAAE,KAAK;QACxC,+CAA+C,EAAE,KAAK;QACtD,gDAAgD,EAAE,KAAK;QACvD,mCAAmC,EAAE,KAAK;QAC1C,2DAA2D,EAAE,KAAK;KACnE;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js deleted file mode 100644 index 1ba75e3b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -// NOTE: this file is isolated to be shared across legacy and flat configs -// it is exported via `./use-at-your-own-risk/eslint-recommended-raw` -// and it has types manually defined in `./eslint-recommended-raw.d.ts` -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - */ -exports.default = (style) => ({ - files: style === 'glob' - ? // classic configs use glob syntax - ['*.ts', '*.tsx', '*.mts', '*.cts'] - : // flat configs use minimatch syntax - ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], - rules: { - 'constructor-super': 'off', // ts(2335) & ts(2377) - 'getter-return': 'off', // ts(2378) - 'no-const-assign': 'off', // ts(2588) - 'no-dupe-args': 'off', // ts(2300) - 'no-dupe-class-members': 'off', // ts(2393) & ts(2300) - 'no-dupe-keys': 'off', // ts(1117) - 'no-func-assign': 'off', // ts(2630) - 'no-import-assign': 'off', // ts(2632) & ts(2540) - // TODO - remove this once we no longer support ESLint v8 - 'no-new-symbol': 'off', // ts(7009) - 'no-new-native-nonconstructor': 'off', // ts(7009) - 'no-obj-calls': 'off', // ts(2349) - 'no-redeclare': 'off', // ts(2451) - 'no-setter-return': 'off', // ts(2408) - 'no-this-before-super': 'off', // ts(2376) & ts(17009) - 'no-undef': 'off', // ts(2304) & ts(2552) - 'no-unreachable': 'off', // ts(7027) - 'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358) - 'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more - 'prefer-const': 'error', // ts provides better types with const - 'prefer-rest-params': 'error', // ts provides better types with rest args over arguments - 'prefer-spread': 'error', // ts transpiles spread to apply, so no need for manual apply - }, -}); -//# sourceMappingURL=eslint-recommended-raw.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map deleted file mode 100644 index dbd8af6f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslint-recommended-raw.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended-raw.ts"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,uEAAuE;;AAEvE;;;;GAIG;AACH,kBAAe,CACb,KAA2B,EAI3B,EAAE,CAAC,CAAC;IACJ,KAAK,EACH,KAAK,KAAK,MAAM;QACd,CAAC,CAAC,kCAAkC;YAClC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QACrC,CAAC,CAAC,oCAAoC;YACpC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;IACrD,KAAK,EAAE;QACL,mBAAmB,EAAE,KAAK,EAAE,sBAAsB;QAClD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,iBAAiB,EAAE,KAAK,EAAE,WAAW;QACrC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,uBAAuB,EAAE,KAAK,EAAE,sBAAsB;QACtD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,kBAAkB,EAAE,KAAK,EAAE,sBAAsB;QACjD,yDAAyD;QACzD,eAAe,EAAE,KAAK,EAAE,WAAW;QACnC,8BAA8B,EAAE,KAAK,EAAE,WAAW;QAClD,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,cAAc,EAAE,KAAK,EAAE,WAAW;QAClC,kBAAkB,EAAE,KAAK,EAAE,WAAW;QACtC,sBAAsB,EAAE,KAAK,EAAE,uBAAuB;QACtD,UAAU,EAAE,KAAK,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,KAAK,EAAE,WAAW;QACpC,oBAAoB,EAAE,KAAK,EAAE,iCAAiC;QAC9D,QAAQ,EAAE,OAAO,EAAE,+DAA+D;QAClF,cAAc,EAAE,OAAO,EAAE,sCAAsC;QAC/D,oBAAoB,EAAE,OAAO,EAAE,yDAAyD;QACxF,eAAe,EAAE,OAAO,EAAE,6DAA6D;KACxF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js deleted file mode 100644 index 87c38628..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -/** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const eslint_recommended_raw_1 = __importDefault(require("./eslint-recommended-raw")); -module.exports = { - overrides: [(0, eslint_recommended_raw_1.default)('glob')], -}; -//# sourceMappingURL=eslint-recommended.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map deleted file mode 100644 index 50a38481..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAIH,sFAA6D;AAE7D,iBAAS;IACP,SAAS,EAAE,CAAC,IAAA,gCAAqB,EAAC,MAAM,CAAC,CAAC;CACZ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js deleted file mode 100644 index c9627df3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - '@typescript-eslint/unbound-method': 'error', - }, -}; -//# sourceMappingURL=recommended-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map deleted file mode 100644 index 7ca5f56a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,wCAAwC,EAAE,OAAO;QACjD,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,mCAAmC,EAAE,OAAO;KAC7C;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js deleted file mode 100644 index 1d3496f6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unbound-method': 'error', - }, -}; -//# sourceMappingURL=recommended-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map deleted file mode 100644 index a6dbb4d0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QA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modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js deleted file mode 100644 index 51d08969..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/ban-ts-comment': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - }, -}; -//# sourceMappingURL=recommended.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map deleted file mode 100644 index c7e70ec1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;KACrD;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js deleted file mode 100644 index f17bc802..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumberAndString: false, - allowRegExp: false, - }, - ], - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumber: false, - allowRegExp: false, - allowNever: false, - }, - ], - 'no-return-await': 'off', - '@typescript-eslint/return-await': [ - 'error', - 'error-handling-correctness-only', - ], - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, -}; -//# sourceMappingURL=strict-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map deleted file mode 100644 index 5d898185..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,mDAAmD,EAAE,OAAO;QAC5D,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,iDAAiD,EAAE,OAAO;QAC1D,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,mDAAmD,EAAE,OAAO;QAC5D,2DAA2D,EAAE,OAAO;QACpE,6CAA6C,EAAE,OAAO;QACtD,uDAAuD,EAAE,OAAO;QAChE,kDAAkD,EAAE,OAAO;QAC3D,kDAAkD,EAAE,OAAO;QAC3D,mDAAmD,EAAE,OAAO;QAC5D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,8CAA8C,EAAE,OAAO;QACvD,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,0CAA0C,EAAE,OAAO;QACnD,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,OAAO;QAC9C,8BAA8B,EAAE,KAAK;QACrC,iDAAiD,EAAE,OAAO;QAC1D,iDAAiD,EAAE,OAAO;QAC1D,4CAA4C,EAAE,OAAO;QACrD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE;YAC3C,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,KAAK;aAClB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,mCAAmC,EAAE,OAAO;QAC5C,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js deleted file mode 100644 index 983d5f0e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': [ - 'error', - { minimumDescriptionLength: 10 }, - ], - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumberAndString: false, - allowRegExp: false, - }, - ], - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumber: false, - allowRegExp: false, - allowNever: false, - }, - ], - 'no-return-await': 'off', - '@typescript-eslint/return-await': [ - 'error', - 'error-handling-correctness-only', - ], - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, -}; -//# sourceMappingURL=strict-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map deleted file mode 100644 index 3f81943c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,sCAAsC,EAAE,OAAO;QAC/C,iDAAiD,EAAE,OAAO;QAC1D,6CAA6C,EAAE,OAAO;QACtD,mDAAmD,EAAE,OAAO;QAC5D,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,yCAAyC,EAAE,OAAO;QAClD,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACj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P;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,KAAK;gBAClB,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,KAAK;aAClB;SACF;QACD,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE;YACjC,OAAO;YACP,iCAAiC;SAClC;QACD,2CAA2C,EAAE,OAAO;QACpD,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js deleted file mode 100644 index 655c7789..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/ban-ts-comment': [ - 'error', - { minimumDescriptionLength: 10 }, - ], - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unified-signatures': 'error', - }, -}; -//# sourceMappingURL=strict.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map deleted file mode 100644 index eb35e57d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;SACjC;QACD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,6CAA6C,EAAE,OAAO;QACtD,sCAAsC,EAAE,OAAO;QAC/C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,gDAAgD,EAAE,OAAO;QACzD,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,4DAA4D,EAAE,OAAO;QACrE,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,kDAAkD,EAAE,OAAO;QAC3D,4CAA4C,EAAE,OAAO;QACrD,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,OAAO;QACnD,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,OAAO;QAC5C,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;QACpD,uCAAuC,EAAE,OAAO;KACjD;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js deleted file mode 100644 index c9af0687..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - }, -}; -//# sourceMappingURL=stylistic-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map deleted file mode 100644 index 1cf52610..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js deleted file mode 100644 index acb18c63..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - }, -}; -//# sourceMappingURL=stylistic-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map deleted file mode 100644 index 2444de1f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;QAC1C,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,sDAAsD,EAAE,OAAO;QAC/D,gCAAgC,EAAE,OAAO;QACzC,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,uCAAuC,EAAE,OAAO;QAChD,mDAAmD,EAAE,OAAO;KAC7D;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js deleted file mode 100644 index f3c61bd9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - }, -}; -//# sourceMappingURL=stylistic.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map deleted file mode 100644 index ab3f7ac5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/configs/stylistic.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/configs/stylistic.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,uCAAuC,EAAE,OAAO;QAChD,iDAAiD,EAAE,OAAO;QAC1D,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,kCAAkC,EAAE,OAAO;QAC3C,yCAAyC,EAAE,OAAO;KACnD;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js deleted file mode 100644 index 2a260364..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const all_1 = __importDefault(require("./configs/all")); -const base_1 = __importDefault(require("./configs/base")); -const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked")); -const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended")); -const recommended_1 = __importDefault(require("./configs/recommended")); -const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked")); -const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only")); -const strict_1 = __importDefault(require("./configs/strict")); -const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked")); -const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only")); -const stylistic_1 = __importDefault(require("./configs/stylistic")); -const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked")); -const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only")); -const rules_1 = __importDefault(require("./rules")); -// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder -const { name, version } = require('../package.json'); -module.exports = { - configs: { - all: all_1.default, - base: base_1.default, - 'disable-type-checked': disable_type_checked_1.default, - 'eslint-recommended': eslint_recommended_1.default, - recommended: recommended_1.default, - /** @deprecated - please use "recommended-type-checked" instead. */ - 'recommended-requiring-type-checking': recommended_type_checked_1.default, - 'recommended-type-checked': recommended_type_checked_1.default, - 'recommended-type-checked-only': recommended_type_checked_only_1.default, - strict: strict_1.default, - 'strict-type-checked': strict_type_checked_1.default, - 'strict-type-checked-only': strict_type_checked_only_1.default, - stylistic: stylistic_1.default, - 'stylistic-type-checked': stylistic_type_checked_1.default, - 'stylistic-type-checked-only': stylistic_type_checked_only_1.default, - }, - meta: { - name, - version, - }, - rules: rules_1.default, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map deleted file mode 100644 index 7ed457be..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAEA,wDAAgC;AAChC,0DAAkC;AAClC,0FAAgE;AAChE,sFAA6D;AAC7D,wEAAgD;AAChD,kGAAwE;AACxE,4GAAiF;AACjF,8DAAsC;AACtC,wFAA8D;AAC9D,kGAAuE;AACvE,oEAA4C;AAC5C,8FAAoE;AACpE,wGAA6E;AAC7E,oDAA4B;AAE5B,sHAAsH;AACtH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAGlD,CAAC;AAEF,iBAAS;IACP,OAAO,EAAE;QACP,GAAG,EAAH,aAAG;QACH,IAAI,EAAJ,cAAI;QACJ,sBAAsB,EAAE,8BAAkB;QAC1C,oBAAoB,EAAE,4BAAiB;QACvC,WAAW,EAAX,qBAAW;QACX,mEAAmE;QACnE,qCAAqC,EAAE,kCAAsB;QAC7D,0BAA0B,EAAE,kCAAsB;QAClD,+BAA+B,EAAE,uCAA0B;QAC3D,MAAM,EAAN,gBAAM;QACN,qBAAqB,EAAE,6BAAiB;QACxC,0BAA0B,EAAE,kCAAqB;QACjD,SAAS,EAAT,mBAAS;QACT,wBAAwB,EAAE,gCAAoB;QAC9C,6BAA6B,EAAE,qCAAwB;KACxD;IACD,IAAI,EAAE;QACJ,IAAI;QACJ,OAAO;KACR;IACD,KAAK,EAAL,eAAK;CACkB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js deleted file mode 100644 index fa04a868..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'adjacent-overload-signatures', - meta: { - type: 'suggestion', - docs: { - description: 'Require that function overload signatures be consecutive', - recommended: 'stylistic', - }, - schema: [], - messages: { - adjacentSignature: 'All {{name}} signatures should be adjacent.', - }, - }, - defaultOptions: [], - create(context) { - /** - * Gets the name and attribute of the member being processed. - * @param member the member being processed. - * @returns the name and attribute of the member or null if it's a member not relevant to the rule. - */ - function getMemberMethod(member) { - switch (member.type) { - case utils_1.AST_NODE_TYPES.ExportDefaultDeclaration: - case utils_1.AST_NODE_TYPES.ExportNamedDeclaration: { - // export statements (e.g. export { a };) - // have no declarations, so ignore them - if (!member.declaration) { - return null; - } - return getMemberMethod(member.declaration); - } - case utils_1.AST_NODE_TYPES.TSDeclareFunction: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: { - const name = member.id?.name ?? null; - if (name == null) { - return null; - } - return { - name, - callSignature: false, - type: util_1.MemberNameType.Normal, - }; - } - case utils_1.AST_NODE_TYPES.TSMethodSignature: - return { - ...(0, util_1.getNameFromMember)(member, context.sourceCode), - static: !!member.static, - callSignature: false, - }; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return { - name: 'call', - callSignature: true, - type: util_1.MemberNameType.Normal, - }; - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return { - name: 'new', - callSignature: false, - type: util_1.MemberNameType.Normal, - }; - case utils_1.AST_NODE_TYPES.MethodDefinition: - return { - ...(0, util_1.getNameFromMember)(member, context.sourceCode), - static: !!member.static, - callSignature: false, - }; - } - return null; - } - function isSameMethod(method1, method2) { - return (!!method2 && - method1.name === method2.name && - method1.static === method2.static && - method1.callSignature === method2.callSignature && - method1.type === method2.type); - } - function getMembers(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.ClassBody: - case utils_1.AST_NODE_TYPES.Program: - case utils_1.AST_NODE_TYPES.TSModuleBlock: - case utils_1.AST_NODE_TYPES.TSInterfaceBody: - case utils_1.AST_NODE_TYPES.BlockStatement: - return node.body; - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return node.members; - } - } - function checkBodyForOverloadMethods(node) { - const members = getMembers(node); - let lastMethod = null; - const seenMethods = []; - members.forEach(member => { - const method = getMemberMethod(member); - if (method == null) { - lastMethod = null; - return; - } - const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod)); - if (index > -1 && !isSameMethod(method, lastMethod)) { - context.report({ - node: member, - messageId: 'adjacentSignature', - data: { - name: `${method.static ? 'static ' : ''}${method.name}`, - }, - }); - } - else if (index === -1) { - seenMethods.push(method); - } - lastMethod = method; - }); - } - return { - ClassBody: checkBodyForOverloadMethods, - Program: checkBodyForOverloadMethods, - TSModuleBlock: checkBodyForOverloadMethods, - TSTypeLiteral: checkBodyForOverloadMethods, - TSInterfaceBody: checkBodyForOverloadMethods, - BlockStatement: checkBodyForOverloadMethods, - }; - }, -}); -//# sourceMappingURL=adjacent-overload-signatures.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map deleted file mode 100644 index f738449e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAwE;AAmBxE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAA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graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js deleted file mode 100644 index 2c15d095..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +++ /dev/null @@ -1,229 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -/** - * Check whatever node can be considered as simple - * @param node the node to be evaluated. - */ -function isSimpleType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - return true; - case utils_1.AST_NODE_TYPES.TSTypeReference: - if (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'Array') { - if (!node.typeArguments) { - return true; - } - if (node.typeArguments.params.length === 1) { - return isSimpleType(node.typeArguments.params[0]); - } - } - else { - if (node.typeArguments) { - return false; - } - return isSimpleType(node.typeName); - } - return false; - default: - return false; - } -} -/** - * Check if node needs parentheses - * @param node the node to be evaluated. - */ -function typeNeedsParentheses(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeReference: - return typeNeedsParentheses(node.typeName); - case utils_1.AST_NODE_TYPES.TSUnionType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSConstructorType: - return true; - case utils_1.AST_NODE_TYPES.Identifier: - return node.name === 'ReadonlyArray'; - default: - return false; - } -} -exports.default = (0, util_1.createRule)({ - name: 'array-type', - meta: { - type: 'suggestion', - docs: { - description: 'Require consistently using either `T[]` or `Array` for arrays', - recommended: 'stylistic', - }, - fixable: 'code', - messages: { - errorStringGeneric: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden. Use '{{className}}<{{type}}>' instead.", - errorStringArray: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}[]' instead.", - errorStringArrayReadonly: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}' instead.", - errorStringArraySimple: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}[]' instead.", - errorStringGenericSimple: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden for non-simple types. Use '{{className}}<{{type}}>' instead.", - }, - schema: [ - { - $defs: { - arrayOption: { - type: 'string', - enum: ['array', 'generic', 'array-simple'], - }, - }, - additionalProperties: false, - properties: { - default: { - $ref: '#/items/0/$defs/arrayOption', - description: 'The array type expected for mutable cases.', - }, - readonly: { - $ref: '#/items/0/$defs/arrayOption', - description: 'The array type expected for readonly cases. If omitted, the value for `default` will be used.', - }, - }, - type: 'object', - }, - ], - }, - defaultOptions: [ - { - default: 'array', - }, - ], - create(context, [options]) { - const defaultOption = options.default; - const readonlyOption = options.readonly ?? defaultOption; - /** - * @param node the node to be evaluated. - */ - function getMessageType(node) { - if (isSimpleType(node)) { - return context.sourceCode.getText(node); - } - return 'T'; - } - return { - TSArrayType(node) { - const isReadonly = node.parent.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - node.parent.operator === 'readonly'; - const currentOption = isReadonly ? readonlyOption : defaultOption; - if (currentOption === 'array' || - (currentOption === 'array-simple' && isSimpleType(node.elementType))) { - return; - } - const messageId = currentOption === 'generic' - ? 'errorStringGeneric' - : 'errorStringGenericSimple'; - const errorNode = isReadonly ? node.parent : node; - context.report({ - node: errorNode, - messageId, - data: { - className: isReadonly ? 'ReadonlyArray' : 'Array', - readonlyPrefix: isReadonly ? 'readonly ' : '', - type: getMessageType(node.elementType), - }, - fix(fixer) { - const typeNode = node.elementType; - const arrayType = isReadonly ? 'ReadonlyArray' : 'Array'; - return [ - fixer.replaceTextRange([errorNode.range[0], typeNode.range[0]], `${arrayType}<`), - fixer.replaceTextRange([typeNode.range[1], errorNode.range[1]], '>'), - ]; - }, - }); - }, - TSTypeReference(node) { - if (node.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || - !(node.typeName.name === 'Array' || - node.typeName.name === 'ReadonlyArray' || - node.typeName.name === 'Readonly') || - (node.typeName.name === 'Readonly' && - node.typeArguments?.params[0].type !== utils_1.AST_NODE_TYPES.TSArrayType)) { - return; - } - const isReadonlyWithGenericArrayType = node.typeName.name === 'Readonly' && - node.typeArguments?.params[0].type === utils_1.AST_NODE_TYPES.TSArrayType; - const isReadonlyArrayType = node.typeName.name === 'ReadonlyArray' || - isReadonlyWithGenericArrayType; - const currentOption = isReadonlyArrayType - ? readonlyOption - : defaultOption; - if (currentOption === 'generic') { - return; - } - const readonlyPrefix = isReadonlyArrayType ? 'readonly ' : ''; - const typeParams = node.typeArguments?.params; - const messageId = currentOption === 'array' - ? isReadonlyWithGenericArrayType - ? 'errorStringArrayReadonly' - : 'errorStringArray' - : 'errorStringArraySimple'; - if (!typeParams || typeParams.length === 0) { - // Create an 'any' array - context.report({ - node, - messageId, - data: { - className: isReadonlyArrayType ? 'ReadonlyArray' : 'Array', - readonlyPrefix, - type: 'any', - }, - fix(fixer) { - return fixer.replaceText(node, `${readonlyPrefix}any[]`); - }, - }); - return; - } - if (typeParams.length !== 1 || - (currentOption === 'array-simple' && !isSimpleType(typeParams[0]))) { - return; - } - const type = typeParams[0]; - const typeParens = typeNeedsParentheses(type); - const parentParens = readonlyPrefix && - node.parent.type === utils_1.AST_NODE_TYPES.TSArrayType && - !(0, util_1.isParenthesized)(node.parent.elementType, context.sourceCode); - const start = `${parentParens ? '(' : ''}${readonlyPrefix}${typeParens ? '(' : ''}`; - const end = `${typeParens ? ')' : ''}${isReadonlyWithGenericArrayType ? '' : `[]`}${parentParens ? ')' : ''}`; - context.report({ - node, - messageId, - data: { - className: isReadonlyArrayType ? node.typeName.name : 'Array', - readonlyPrefix, - type: getMessageType(type), - }, - fix(fixer) { - return [ - fixer.replaceTextRange([node.range[0], type.range[0]], start), - fixer.replaceTextRange([type.range[1], node.range[1]], end), - ]; - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=array-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map deleted file mode 100644 index 645f45f1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-type.js","sourceRoot":"","sources":["../../src/rules/array-type.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAsD;AAEtD;;;GAGG;AACH,SAAS,YAAY,CAAC,IAAmB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,YAAY,CAAC;QACjC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,C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/await-thenable.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js deleted file mode 100644 index 805493fc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'await-thenable', - meta: { - docs: { - description: 'Disallow awaiting a value that is not a Thenable', - recommended: 'recommended', - requiresTypeChecking: true, - }, - hasSuggestions: true, - messages: { - await: 'Unexpected `await` of a non-Promise (non-"Thenable") value.', - removeAwait: 'Remove unnecessary `await`.', - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - return { - AwaitExpression(node) { - const type = services.getTypeAtLocation(node.argument); - if ((0, util_1.isTypeAnyType)(type) || (0, util_1.isTypeUnknownType)(type)) { - return; - } - const originalNode = services.esTreeNodeToTSNodeMap.get(node); - if (!tsutils.isThenableType(checker, originalNode.expression, type)) { - context.report({ - messageId: 'await', - node, - suggest: [ - { - messageId: 'removeAwait', - fix(fixer) { - const awaitKeyword = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword), util_1.NullThrowsReasons.MissingToken('await', 'await expression')); - return fixer.remove(awaitKeyword); - }, - }, - ], - }); - } - }, - }; - }, -}); -//# sourceMappingURL=await-thenable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map deleted file mode 100644 index 7b4c53fb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,kCAQiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,KAAK,EAAE,6DAA6D;YACpE,WAAW,EAAE,6BAA6B;SAC3C;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvD,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,IAAI,IAAA,wBAAiB,EAAC,IAAI,CAAC,EAAE,CAAC;oBACnD,OAAO;gBACT,CAAC;gBAED,MAAM,YAAY,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAE9D,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC;oBACpE,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,OAAO;wBAClB,IAAI;wBACJ,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,aAAa;gCACxB,GAAG,CAAC,KAAK;oCACP,MAAM,YAAY,GAAG,IAAA,iBAAU,EAC7B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,qBAAc,CAAC,EACtD,wBAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAC5D,CAAC;oCAEF,OAAO,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gCACpC,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js deleted file mode 100644 index 49615317..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const defaultMinimumDescriptionLength = 3; -exports.default = (0, util_1.createRule)({ - name: 'ban-ts-comment', - meta: { - type: 'problem', - docs: { - description: 'Disallow `@ts-` comments or require descriptions after directives', - recommended: { - recommended: true, - strict: [{ minimumDescriptionLength: 10 }], - }, - }, - messages: { - tsDirectiveComment: 'Do not use "@ts-{{directive}}" because it alters compilation errors.', - tsIgnoreInsteadOfExpectError: 'Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free.', - tsDirectiveCommentRequiresDescription: 'Include a description after the "@ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.', - tsDirectiveCommentDescriptionNotMatchPattern: 'The description for the "@ts-{{directive}}" directive must match the {{format}} format.', - replaceTsIgnoreWithTsExpectError: 'Replace "@ts-ignore" with "@ts-expect-error".', - }, - hasSuggestions: true, - schema: [ - { - $defs: { - directiveConfigSchema: { - oneOf: [ - { - type: 'boolean', - default: true, - }, - { - type: 'string', - enum: ['allow-with-description'], - }, - { - type: 'object', - additionalProperties: false, - properties: { - descriptionFormat: { type: 'string' }, - }, - }, - ], - }, - }, - properties: { - 'ts-expect-error': { $ref: '#/items/0/$defs/directiveConfigSchema' }, - 'ts-ignore': { $ref: '#/items/0/$defs/directiveConfigSchema' }, - 'ts-nocheck': { $ref: '#/items/0/$defs/directiveConfigSchema' }, - 'ts-check': { $ref: '#/items/0/$defs/directiveConfigSchema' }, - minimumDescriptionLength: { - type: 'number', - default: defaultMinimumDescriptionLength, - }, - }, - type: 'object', - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - 'ts-expect-error': 'allow-with-description', - 'ts-ignore': true, - 'ts-nocheck': true, - 'ts-check': false, - minimumDescriptionLength: defaultMinimumDescriptionLength, - }, - ], - create(context, [options]) { - // https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/parser.ts#L10591 - const singleLinePragmaRegEx = /^\/\/\/?\s*@ts-(?check|nocheck)(?.*)$/; - /* - The regex used are taken from the ones used in the official TypeScript repo - - https://github.com/microsoft/TypeScript/blob/6f1ad5ad8bec5671f7e951a3524b62d82ec4be68/src/compiler/scanner.ts#L340-L348 - */ - const commentDirectiveRegExSingleLine = /^\/*\s*@ts-(?expect-error|ignore)(?.*)/; - const commentDirectiveRegExMultiLine = /^\s*(?:\/|\*)*\s*@ts-(?expect-error|ignore)(?.*)/; - const descriptionFormats = new Map(); - for (const directive of [ - 'ts-expect-error', - 'ts-ignore', - 'ts-nocheck', - 'ts-check', - ]) { - const option = options[directive]; - if (typeof option === 'object' && option.descriptionFormat) { - descriptionFormats.set(directive, new RegExp(option.descriptionFormat)); - } - } - function execDirectiveRegEx(regex, str) { - const match = regex.exec(str); - if (!match) { - return null; - } - const { directive, description } = (0, util_1.nullThrows)(match.groups, 'RegExp should contain groups'); - return { - directive: (0, util_1.nullThrows)(directive, 'RegExp should contain "directive" group'), - description: (0, util_1.nullThrows)(description, 'RegExp should contain "description" group'), - }; - } - function findDirectiveInComment(comment) { - if (comment.type === utils_1.AST_TOKEN_TYPES.Line) { - const matchedPragma = execDirectiveRegEx(singleLinePragmaRegEx, `//${comment.value}`); - if (matchedPragma) { - return matchedPragma; - } - return execDirectiveRegEx(commentDirectiveRegExSingleLine, comment.value); - } - const commentLines = comment.value.split('\n'); - return execDirectiveRegEx(commentDirectiveRegExMultiLine, commentLines[commentLines.length - 1]); - } - return { - Program() { - const comments = context.sourceCode.getAllComments(); - comments.forEach(comment => { - const match = findDirectiveInComment(comment); - if (!match) { - return; - } - const { directive, description } = match; - const fullDirective = `ts-${directive}`; - const option = options[fullDirective]; - if (option === true) { - if (directive === 'ignore') { - // Special case to suggest @ts-expect-error instead of @ts-ignore - context.report({ - node: comment, - messageId: 'tsIgnoreInsteadOfExpectError', - suggest: [ - { - messageId: 'replaceTsIgnoreWithTsExpectError', - fix(fixer) { - const commentText = comment.value.replace(/@ts-ignore/, '@ts-expect-error'); - return fixer.replaceText(comment, comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${commentText}` - : `/*${commentText}*/`); - }, - }, - ], - }); - } - else { - context.report({ - data: { directive }, - node: comment, - messageId: 'tsDirectiveComment', - }); - } - } - if (option === 'allow-with-description' || - (typeof option === 'object' && option.descriptionFormat)) { - const { minimumDescriptionLength } = options; - const format = descriptionFormats.get(fullDirective); - if ((0, util_1.getStringLength)(description.trim()) < - (0, util_1.nullThrows)(minimumDescriptionLength, 'Expected minimumDescriptionLength to be set')) { - context.report({ - data: { directive, minimumDescriptionLength }, - node: comment, - messageId: 'tsDirectiveCommentRequiresDescription', - }); - } - else if (format && !format.test(description)) { - context.report({ - data: { directive, format: format.source }, - node: comment, - messageId: 'tsDirectiveCommentDescriptionNotMatchPattern', - }); - } - } - }); - }, - }; - }, -}); -//# sourceMappingURL=ban-ts-comment.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map deleted file mode 100644 index 7eabe752..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ban-ts-comment.js","sourceRoot":"","sources":["../../src/rules/ban-ts-comment.ts"],"names":[],"mappings":";;AACA,oDAA2D;AAE3D,kCAAkE;AAelE,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAc1C,kBAAe,IAAA,iBAAU,EAAwB;IAC/C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,CAAC,EAAE,wBAAwB,EAAE,EAAE,EAAE,CAAC;aAC3C;SACF;QACD,QAAQ,EAAE;YACR,kBAAkB,EAChB,sEAAsE;YACxE,4BAA4B,EAC1B,sHAAsH;YACxH,qCAAqC,EACnC,6LAA6L;YAC/L,4CAA4C,EAC1C,yFAAyF;YAC3F,gCAAgC,EAC9B,+CAA+C;SAClD;QAC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oB;6BAChC,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;oBAED,IACE,MAAM,KAAK,wBAAwB;wBACnC,CAAC,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC,EACxD,CAAC;wBACD,MAAM,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC;wBAC7C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBACrD,IACE,IAAA,sBAAe,EAAC,WAAW,CAAC,IAAI,EAAE,CAAC;4BACnC,IAAA,iBAAU,EACR,wBAAwB,EACxB,6CAA6C,CAC9C,EACD,CAAC;4BACD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE;gCAC7C,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,uCAAuC;6BACnD,CAAC,CAAC;wBACL,CAAC;6BAAM,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;4BAC/C,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;gCAC1C,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,8CAA8C;6BAC1D,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js deleted file mode 100644 index 626bc062..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -// tslint regex -// https://github.com/palantir/tslint/blob/95d9d958833fd9dc0002d18cbe34db20d0fbf437/src/enableDisableRules.ts#L32 -const ENABLE_DISABLE_REGEX = /^\s*tslint:(enable|disable)(?:-(line|next-line))?(:|\s|$)/; -const toText = (text, type) => type === utils_1.AST_TOKEN_TYPES.Line - ? ['//', text.trim()].join(' ') - : ['/*', text.trim(), '*/'].join(' '); -exports.default = (0, util_1.createRule)({ - name: 'ban-tslint-comment', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow `// tslint:` comments', - recommended: 'stylistic', - }, - messages: { - commentDetected: 'tslint comment detected: "{{ text }}"', - }, - schema: [], - fixable: 'code', - }, - defaultOptions: [], - create: context => { - return { - Program() { - const comments = context.sourceCode.getAllComments(); - comments.forEach(c => { - if (ENABLE_DISABLE_REGEX.test(c.value)) { - context.report({ - data: { text: toText(c.value, c.type) }, - node: c, - messageId: 'commentDetected', - fix(fixer) { - const rangeStart = context.sourceCode.getIndexFromLoc({ - column: c.loc.start.column > 0 ? c.loc.start.column - 1 : 0, - line: c.loc.start.line, - }); - const rangeEnd = context.sourceCode.getIndexFromLoc({ - column: c.loc.end.column, - line: c.loc.end.line, - }); - return fixer.removeRange([rangeStart, rangeEnd + 1]); - }, - }); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=ban-tslint-comment.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map deleted file mode 100644 index f31dc798..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ban-tslint-comment.js","sourceRoot":"","sources":["../../src/rules/ban-tslint-comment.ts"],"names":[],"mappings":";;AAAA,oDAA2D;AAE3D,kCAAqC;AAErC,eAAe;AACf,iHAAiH;AACjH,MAAM,oBA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AAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oCAC3D,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI;iCACvB,CAAC,CAAC;gCACH,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;oCAClD,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM;oCACxB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;iCACrB,CAAC,CAAC;gCACH,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;4BACvD,CAAC;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js deleted file mode 100644 index 1888d16f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const printNodeModifiers = (node, final) => `${node.accessibility ?? ''}${node.static ? ' static' : ''} ${final} `.trimStart(); -const isSupportedLiteral = (node) => { - switch (node.type) { - case utils_1.AST_NODE_TYPES.Literal: - return true; - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - return node.quasi.quasis.length === 1; - case utils_1.AST_NODE_TYPES.TemplateLiteral: - return node.quasis.length === 1; - default: - return false; - } -}; -exports.default = (0, util_1.createRule)({ - name: 'class-literal-property-style', - meta: { - type: 'problem', - docs: { - description: 'Enforce that literals on classes are exposed in a consistent style', - recommended: 'stylistic', - }, - hasSuggestions: true, - messages: { - preferFieldStyle: 'Literals should be exposed using readonly fields.', - preferFieldStyleSuggestion: 'Replace the literals with readonly fields.', - preferGetterStyle: 'Literals should be exposed using getters.', - preferGetterStyleSuggestion: 'Replace the literals with getters.', - }, - schema: [ - { - type: 'string', - enum: ['fields', 'getters'], - }, - ], - }, - defaultOptions: ['fields'], - create(context, [style]) { - const propertiesInfoStack = []; - function getStringValue(node) { - return (0, util_1.getStaticStringValue)(node) ?? context.sourceCode.getText(node); - } - function enterClassBody() { - propertiesInfoStack.push({ - properties: [], - excludeSet: new Set(), - }); - } - function exitClassBody() { - const { properties, excludeSet } = (0, util_1.nullThrows)(propertiesInfoStack.pop(), 'Stack should exist on class exit'); - properties.forEach(node => { - const { value } = node; - if (!value || !isSupportedLiteral(value)) { - return; - } - const name = getStringValue(node.key); - if (excludeSet.has(name)) { - return; - } - context.report({ - node: node.key, - messageId: 'preferGetterStyle', - suggest: [ - { - messageId: 'preferGetterStyleSuggestion', - fix(fixer) { - const name = context.sourceCode.getText(node.key); - let text = ''; - text += printNodeModifiers(node, 'get'); - text += node.computed ? `[${name}]` : name; - text += `() { return ${context.sourceCode.getText(value)}; }`; - return fixer.replaceText(node, text); - }, - }, - ], - }); - }); - } - function excludeAssignedProperty(node) { - if ((0, util_1.isAssignee)(node)) { - const { excludeSet } = propertiesInfoStack[propertiesInfoStack.length - 1]; - const name = (0, util_1.getStaticStringValue)(node.property) ?? - context.sourceCode.getText(node.property); - if (name) { - excludeSet.add(name); - } - } - } - return { - ...(style === 'fields' && { - MethodDefinition(node) { - if (node.kind !== 'get' || - !node.value.body || - node.value.body.body.length === 0) { - return; - } - const [statement] = node.value.body.body; - if (statement.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { - return; - } - const { argument } = statement; - if (!argument || !isSupportedLiteral(argument)) { - return; - } - const name = getStringValue(node.key); - const hasDuplicateKeySetter = node.parent.body.some(element => { - return (element.type === utils_1.AST_NODE_TYPES.MethodDefinition && - element.kind === 'set' && - getStringValue(element.key) === name); - }); - if (hasDuplicateKeySetter) { - return; - } - context.report({ - node: node.key, - messageId: 'preferFieldStyle', - suggest: [ - { - messageId: 'preferFieldStyleSuggestion', - fix(fixer) { - const name = context.sourceCode.getText(node.key); - let text = ''; - text += printNodeModifiers(node, 'readonly'); - text += node.computed ? `[${name}]` : name; - text += ` = ${context.sourceCode.getText(argument)};`; - return fixer.replaceText(node, text); - }, - }, - ], - }); - }, - }), - ...(style === 'getters' && { - ClassBody: enterClassBody, - 'ClassBody:exit': exitClassBody, - 'MethodDefinition[kind="constructor"] ThisExpression'(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.MemberExpression) { - let parent = node.parent; - while (!(0, util_1.isFunction)(parent)) { - parent = parent.parent; - } - if (parent.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - parent.parent.kind === 'constructor') { - excludeAssignedProperty(node.parent); - } - } - }, - PropertyDefinition(node) { - if (!node.readonly || node.declare) { - return; - } - const { properties } = propertiesInfoStack[propertiesInfoStack.length - 1]; - properties.push(node); - }, - }), - }; - }, -}); -//# sourceMappingURL=class-literal-property-style.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map deleted file mode 100644 index e913513f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"class-literal-property-style.js","sourceRoot":"","sources":["../../src/rules/class-literal-property-style.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAMiB;AAmBjB,MAAM,kBAAkB,GAAG,CACzB,IAAuB,EACvB,KAAyB,EACjB,EAAE,CACV,GAAG,IAAI,CAAC,aAAa,IAAI,EAAE,GACzB,IAAI,CAAC,MAAM,CAAC,CAAC,CA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GAA8B,IAAI,CAAC,MAAM,CAAC;wBAEpD,OAAO,CAAC,IAAA,iBAAU,EAAC,MAAM,CAAC,EAAE,CAAC;4BAC3B,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;wBACzB,CAAC;wBAED,IACE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BACtD,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,aAAa,EACpC,CAAC;4BACD,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBACvC,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,kBAAkB,CAAC,IAAI;oBACrB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;wBACnC,OAAO;oBACT,CAAC;oBACD,MAAM,EAAE,UAAU,EAAE,GAClB,mBAAmB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;oBACtD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js deleted file mode 100644 index a46ba0a1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +++ /dev/null @@ -1,209 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'class-methods-use-this', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce that class methods utilize `this`', - extendsBaseRule: true, - requiresTypeChecking: false, - }, - schema: [ - { - type: 'object', - properties: { - exceptMethods: { - type: 'array', - description: 'Allows specified method names to be ignored with this rule', - items: { - type: 'string', - }, - }, - enforceForClassFields: { - type: 'boolean', - description: 'Enforces that functions used as instance field initializers utilize `this`', - default: true, - }, - ignoreOverrideMethods: { - type: 'boolean', - description: 'Ignore members marked with the `override` modifier', - }, - ignoreClassesThatImplementAnInterface: { - oneOf: [ - { - type: 'boolean', - description: 'Ignore all classes that implement an interface', - }, - { - type: 'string', - enum: ['public-fields'], - description: 'Ignore only the public fields of classes that implement an interface', - }, - ], - description: 'Ignore classes that specifically implement some interface', - }, - }, - additionalProperties: false, - }, - ], - messages: { - missingThis: "Expected 'this' to be used by class {{name}}.", - }, - }, - defaultOptions: [ - { - enforceForClassFields: true, - exceptMethods: [], - ignoreClassesThatImplementAnInterface: false, - ignoreOverrideMethods: false, - }, - ], - create(context, [{ enforceForClassFields, exceptMethods: exceptMethodsRaw, ignoreClassesThatImplementAnInterface, ignoreOverrideMethods, },]) { - const exceptMethods = new Set(exceptMethodsRaw); - let stack; - function pushContext(member) { - if (member?.parent.type === utils_1.AST_NODE_TYPES.ClassBody) { - stack = { - member, - class: member.parent.parent, - usesThis: false, - parent: stack, - }; - } - else { - stack = { - member: null, - class: null, - usesThis: false, - parent: stack, - }; - } - } - function enterFunction(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || - node.parent.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { - pushContext(node.parent); - } - else { - pushContext(); - } - } - /** - * Pop `this` used flag from the stack. - */ - function popContext() { - const oldStack = stack; - stack = stack?.parent; - return oldStack; - } - function isPublicField(accessibility) { - if (!accessibility || accessibility === 'public') { - return true; - } - return false; - } - /** - * Check if the node is an instance method not excluded by config - */ - function isIncludedInstanceMethod(node) { - if (node.static || - (node.type === utils_1.AST_NODE_TYPES.MethodDefinition && - node.kind === 'constructor') || - (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && - !enforceForClassFields)) { - return false; - } - if (node.computed || exceptMethods.size === 0) { - return true; - } - const hashIfNeeded = node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier ? '#' : ''; - const name = node.key.type === utils_1.AST_NODE_TYPES.Literal - ? (0, util_1.getStaticStringValue)(node.key) - : node.key.name || ''; - return !exceptMethods.has(hashIfNeeded + (name ?? '')); - } - /** - * Checks if we are leaving a function that is a method, and reports if 'this' has not been used. - * Static methods and the constructor are exempt. - * Then pops the context off the stack. - */ - function exitFunction(node) { - const stackContext = popContext(); - if (stackContext?.member == null || - stackContext.usesThis || - (ignoreOverrideMethods && stackContext.member.override) || - (ignoreClassesThatImplementAnInterface === true && - stackContext.class.implements.length > 0) || - (ignoreClassesThatImplementAnInterface === 'public-fields' && - stackContext.class.implements.length > 0 && - isPublicField(stackContext.member.accessibility))) { - return; - } - if (isIncludedInstanceMethod(stackContext.member)) { - context.report({ - node, - loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), - messageId: 'missingThis', - data: { - name: (0, util_1.getFunctionNameWithKind)(node), - }, - }); - } - } - return { - // function declarations have their own `this` context - FunctionDeclaration() { - pushContext(); - }, - 'FunctionDeclaration:exit'() { - popContext(); - }, - FunctionExpression(node) { - enterFunction(node); - }, - 'FunctionExpression:exit'(node) { - exitFunction(node); - }, - ...(enforceForClassFields - ? { - 'PropertyDefinition > ArrowFunctionExpression.value'(node) { - enterFunction(node); - }, - 'PropertyDefinition > ArrowFunctionExpression.value:exit'(node) { - exitFunction(node); - }, - } - : {}), - /* - * Class field value are implicit functions. - */ - 'PropertyDefinition > *.key:exit'() { - pushContext(); - }, - 'PropertyDefinition:exit'() { - popContext(); - }, - /* - * Class static blocks are implicit functions. They aren't required to use `this`, - * but we have to push context so that it captures any use of `this` in the static block - * separately from enclosing contexts, because static blocks have their own `this` and it - * shouldn't count as used `this` in enclosing contexts. - */ - StaticBlock() { - pushContext(); - }, - 'StaticBlock:exit'() { - popContext(); - }, - 'ThisExpression, Super'() { - if (stack) { - stack.usesThis = true; - } - }, - }; - }, -}); -//# sourceMappingURL=class-methods-use-this.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map deleted file mode 100644 index 5c1423cf..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"class-methods-use-this.js","sourceRoot":"","sources":["../../src/rules/class-methods-use-this.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAKiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,4DAA4D;wBAC9D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,4EAA4E;wBAC9E,OAAO,EAAE,IAAI;qBACd;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,oDAAoD;qBAClE;oBACD,qCAAqC,EAAE;wBACrC,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,SAAS;gCACf,WAAW,EAAE,gDAAgD;6BAC9D;4BACD;gCACE,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,eAAe,CAAC;gCACvB,WAAW,EACT,sEAAsE;6BACzE;yBACF;wBACD,WAAW,EACT,2DAA2D;qBAC9D;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,+CAA+C;SAC7D;KACF;I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B,UAAU,EAAE,CAAC;YACf,CAAC;YAED;;;;;eAKG;YACH,WAAW;gBACT,WAAW,EAAE,CAAC;YAChB,CAAC;YACD,kBAAkB;gBAChB,UAAU,EAAE,CAAC;YACf,CAAC;YAED,uBAAuB;gBACrB,IAAI,KAAK,EAAE,CAAC;oBACV,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js deleted file mode 100644 index 997ccd56..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-generic-constructors', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce specifying generic type arguments on type annotation or constructor name of a constructor call', - recommended: 'stylistic', - }, - messages: { - preferTypeAnnotation: 'The generic type arguments should be specified as part of the type annotation.', - preferConstructor: 'The generic type arguments should be specified as part of the constructor type arguments.', - }, - fixable: 'code', - schema: [ - { - type: 'string', - enum: ['type-annotation', 'constructor'], - }, - ], - }, - defaultOptions: ['constructor'], - create(context, [mode]) { - return { - 'VariableDeclarator,PropertyDefinition,:matches(FunctionDeclaration,FunctionExpression) > AssignmentPattern'(node) { - function getLHSRHS() { - switch (node.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: - return [node.id, node.init]; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return [node, node.value]; - case utils_1.AST_NODE_TYPES.AssignmentPattern: - return [node.left, node.right]; - default: - throw new Error(`Unhandled node type: ${node.type}`); - } - } - const [lhsName, rhs] = getLHSRHS(); - const lhs = lhsName.typeAnnotation?.typeAnnotation; - if (!rhs || - rhs.type !== utils_1.AST_NODE_TYPES.NewExpression || - rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - if (lhs && - (lhs.type !== utils_1.AST_NODE_TYPES.TSTypeReference || - lhs.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || - lhs.typeName.name !== rhs.callee.name)) { - return; - } - if (mode === 'type-annotation') { - if (!lhs && rhs.typeArguments) { - const { typeArguments, callee } = rhs; - const typeAnnotation = context.sourceCode.getText(callee) + - context.sourceCode.getText(typeArguments); - context.report({ - node, - messageId: 'preferTypeAnnotation', - fix(fixer) { - function getIDToAttachAnnotation() { - if (node.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { - return lhsName; - } - if (!node.computed) { - return node.key; - } - // If the property's computed, we have to attach the - // annotation after the square bracket, not the enclosed expression - return (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.key), util_1.NullThrowsReasons.MissingToken(']', 'key')); - } - return [ - fixer.remove(typeArguments), - fixer.insertTextAfter(getIDToAttachAnnotation(), ': ' + typeAnnotation), - ]; - }, - }); - } - return; - } - if (lhs?.typeArguments && !rhs.typeArguments) { - const hasParens = context.sourceCode.getTokenAfter(rhs.callee)?.value === '('; - const extraComments = new Set(context.sourceCode.getCommentsInside(lhs.parent)); - context.sourceCode - .getCommentsInside(lhs.typeArguments) - .forEach(c => extraComments.delete(c)); - context.report({ - node, - messageId: 'preferConstructor', - *fix(fixer) { - yield fixer.remove(lhs.parent); - for (const comment of extraComments) { - yield fixer.insertTextAfter(rhs.callee, context.sourceCode.getText(comment)); - } - yield fixer.insertTextAfter(rhs.callee, context.sourceCode.getText(lhs.typeArguments)); - if (!hasParens) { - yield fixer.insertTextAfter(rhs.callee, '()'); - } - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=consistent-generic-constructors.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map deleted file mode 100644 index f4674e4d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-generic-constructors.js","sourceRoot":"","sources":["../../src/rules/consistent-generic-constructors.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAoE;AAKpE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,wGAAwG;YAC1G,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,oBAAoB,EAClB,gFAAgF;YAClF,iBAAiB,EACf,2FAA2F;SAC9F;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;aACzC;SACF;KACF;IACD,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,OAAO;YACL,4GAA4G,CAC1G,IAG+B;gBAE/B,SAAS,SAAS;oBAIhB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;wBAClB,KAAK,sBAAc,CAAC,kBAAkB;4BACpC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;wBAC9B,KAAK,sBAAc,CAAC,kBAAkB;4BACpC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;wBAC5B,KAAK,sBAAc,CAAC,iBAAiB;4BACnC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;wBACjC;4BACE,MAAM,IAAI,KAAK,CACb,wBAA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CAAC,CACpC,CAAC;4BACJ,CAAC;4BACD,MAAM,KAAK,CAAC,eAAe,CACzB,GAAG,CAAC,MAAM,EACV,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAC9C,CAAC;4BACF,IAAI,CAAC,SAAS,EAAE,CAAC;gCACf,MAAM,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;4BAChD,CAAC;wBACH,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js deleted file mode 100644 index b4354e2c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-indexed-object-style', - meta: { - type: 'suggestion', - docs: { - description: 'Require or disallow the `Record` type', - recommended: 'stylistic', - }, - messages: { - preferRecord: 'A record is preferred over an index signature.', - preferIndexSignature: 'An index signature is preferred over a record.', - }, - fixable: 'code', - schema: [ - { - type: 'string', - enum: ['record', 'index-signature'], - }, - ], - }, - defaultOptions: ['record'], - create(context, [mode]) { - function checkMembers(members, node, parentId, prefix, postfix, safeFix = true) { - if (members.length !== 1) { - return; - } - const [member] = members; - if (member.type !== utils_1.AST_NODE_TYPES.TSIndexSignature) { - return; - } - const parameter = member.parameters.at(0); - if (parameter?.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const keyType = parameter.typeAnnotation; - if (!keyType) { - return; - } - const valueType = member.typeAnnotation; - if (!valueType) { - return; - } - if (parentId) { - const scope = context.sourceCode.getScope(parentId); - const superVar = utils_1.ASTUtils.findVariable(scope, parentId.name); - if (superVar) { - const isCircular = superVar.references.some(item => item.isTypeReference && - node.range[0] <= item.identifier.range[0] && - node.range[1] >= item.identifier.range[1]); - if (isCircular) { - return; - } - } - } - context.report({ - node, - messageId: 'preferRecord', - fix: safeFix - ? (fixer) => { - const key = context.sourceCode.getText(keyType.typeAnnotation); - const value = context.sourceCode.getText(valueType.typeAnnotation); - const record = member.readonly - ? `Readonly>` - : `Record<${key}, ${value}>`; - return fixer.replaceText(node, `${prefix}${record}${postfix}`); - } - : null, - }); - } - return { - ...(mode === 'index-signature' && { - TSTypeReference(node) { - const typeName = node.typeName; - if (typeName.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - if (typeName.name !== 'Record') { - return; - } - const params = node.typeArguments?.params; - if (params?.length !== 2) { - return; - } - context.report({ - node, - messageId: 'preferIndexSignature', - fix(fixer) { - const key = context.sourceCode.getText(params[0]); - const type = context.sourceCode.getText(params[1]); - return fixer.replaceText(node, `{ [key: ${key}]: ${type} }`); - }, - }); - }, - }), - ...(mode === 'record' && { - TSTypeLiteral(node) { - const parent = findParentDeclaration(node); - checkMembers(node.members, node, parent?.id, '', ''); - }, - TSInterfaceDeclaration(node) { - let genericTypes = ''; - if (node.typeParameters?.params.length) { - genericTypes = `<${node.typeParameters.params - .map(p => context.sourceCode.getText(p)) - .join(', ')}>`; - } - checkMembers(node.body.body, node, node.id, `type ${node.id.name}${genericTypes} = `, ';', !node.extends.length); - }, - }), - }; - }, -}); -function findParentDeclaration(node) { - if (node.parent && node.parent.type !== utils_1.AST_NODE_TYPES.TSTypeAnnotation) { - if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - return node.parent; - } - return findParentDeclaration(node.parent); - } - return undefined; -} -//# sourceMappingURL=consistent-indexed-object-style.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map deleted file mode 100644 index 8e645a63..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-indexed-object-style.js","sourceRoot":"","sources":["../../src/rules/consistent-indexed-object-style.ts"],"names":[],"mappings":";;AACA,oDAAoE;AAEpE,kCAAqC;AAKrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,gDAAgD;YAC9D,oBAAoB,EAAE,gDAAgD;SACvE;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;aACpC;SACF;KACF;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAC1B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,SAAS,YAAY,CACnB,OAA+B,EAC/B,IAA8D,EAC9D,QAAyC,EACzC,MAAc,EACd,OAAe,EACf,OAAO,GAAG,IAAI;YAEd,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACzB,OAAO;YACT,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;YAEzB,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;gBACpD,OAAO;YACT,CAAC;YAED,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,SAAS,EAAE,IAAI,KAAK,sBAAc,CAAC,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plugin/dist/rules/consistent-return.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js deleted file mode 100644 index 257036fc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('consistent-return'); -exports.default = (0, util_1.createRule)({ - name: 'consistent-return', - meta: { - type: 'suggestion', - docs: { - description: 'Require `return` statements to either always or never specify values', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [{ treatUndefinedAsUnspecified: false }], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const rules = baseRule.create(context); - const functions = []; - const treatUndefinedAsUnspecified = options?.treatUndefinedAsUnspecified === true; - function enterFunction(node) { - functions.push(node); - } - function exitFunction() { - functions.pop(); - } - function getCurrentFunction() { - return functions[functions.length - 1] ?? null; - } - function isPromiseVoid(node, type) { - if (tsutils.isThenableType(checker, node, type) && - tsutils.isTypeReference(type)) { - const awaitedType = type.typeArguments?.[0]; - if (awaitedType) { - if ((0, util_1.isTypeFlagSet)(awaitedType, ts.TypeFlags.Void)) { - return true; - } - return isPromiseVoid(node, awaitedType); - } - } - return false; - } - function isReturnVoidOrThenableVoid(node) { - const functionType = services.getTypeAtLocation(node); - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - const callSignatures = functionType.getCallSignatures(); - return callSignatures.some(signature => { - const returnType = signature.getReturnType(); - if (node.async) { - return isPromiseVoid(tsNode, returnType); - } - return (0, util_1.isTypeFlagSet)(returnType, ts.TypeFlags.Void); - }); - } - return { - ...rules, - FunctionDeclaration: enterFunction, - 'FunctionDeclaration:exit'(node) { - exitFunction(); - rules['FunctionDeclaration:exit'](node); - }, - FunctionExpression: enterFunction, - 'FunctionExpression:exit'(node) { - exitFunction(); - rules['FunctionExpression:exit'](node); - }, - ArrowFunctionExpression: enterFunction, - 'ArrowFunctionExpression:exit'(node) { - exitFunction(); - rules['ArrowFunctionExpression:exit'](node); - }, - ReturnStatement(node) { - const functionNode = getCurrentFunction(); - if (!node.argument && - functionNode && - isReturnVoidOrThenableVoid(functionNode)) { - return; - } - if (treatUndefinedAsUnspecified && node.argument) { - const returnValueType = services.getTypeAtLocation(node.argument); - if (returnValueType.flags === ts.TypeFlags.Undefined) { - rules.ReturnStatement({ - ...node, - argument: null, - }); - return; - } - } - rules.ReturnStatement(node); - }, - }; - }, -}); -//# sourceMappingURL=consistent-return.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map deleted file mode 100644 index ae597a0e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-return.js","sourceRoot":"","sources":["../../src/rules/consistent-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AACxC,+CAAiC;AAMjC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAUxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sEAAsE;YACxE,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IACxD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,SAAS,GAAmB,EAAE,CAAC;QACrC,MAAM,2BAA2B,GAC/B,OAAO,EAAE,2BAA2B,KAAK,IAAI,CAAC;QAEhD,SAAS,aAAa,CAAC,IAAkB;YACvC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QAED,SAAS,YAAY;YACnB,SAAS,CAAC,GAAG,EAAE,CAAC;QAClB,CAAC;QAED,SAAS,kBA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AmB,EAAE,aAAa;YAClC,0BAA0B,CAAC,IAAI;gBAC7B,YAAY,EAAE,CAAC;gBACf,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC;YACD,kBAAkB,EAAE,aAAa;YACjC,yBAAyB,CAAC,IAAI;gBAC5B,YAAY,EAAE,CAAC;gBACf,KAAK,CAAC,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC;YACzC,CAAC;YACD,uBAAuB,EAAE,aAAa;YACtC,8BAA8B,CAAC,IAAI;gBACjC,YAAY,EAAE,CAAC;gBACf,KAAK,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;gBAC1C,IACE,CAAC,IAAI,CAAC,QAAQ;oBACd,YAAY;oBACZ,0BAA0B,CAAC,YAAY,CAAC,EACxC,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,2BAA2B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAClE,IAAI,eAAe,CAAC,KAAK,KAAK,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;wBACrD,KAAK,CAAC,eAAe,CAAC;4BACpB,GAAG,IAAI;4BACP,QAAQ,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;gBAED,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js deleted file mode 100644 index 2e83facc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +++ /dev/null @@ -1,209 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getWrappedCode_1 = require("../util/getWrappedCode"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-type-assertions', - meta: { - type: 'suggestion', - fixable: 'code', - hasSuggestions: true, - docs: { - description: 'Enforce consistent usage of type assertions', - recommended: 'stylistic', - }, - messages: { - as: "Use 'as {{cast}}' instead of '<{{cast}}>'.", - 'angle-bracket': "Use '<{{cast}}>' instead of 'as {{cast}}'.", - never: 'Do not use any type assertions.', - unexpectedObjectTypeAssertion: 'Always prefer const x: T = { ... }.', - replaceObjectTypeAssertionWithAnnotation: 'Use const x: {{cast}} = { ... } instead.', - replaceObjectTypeAssertionWithSatisfies: 'Use const x = { ... } satisfies {{cast}} instead.', - }, - schema: [ - { - oneOf: [ - { - type: 'object', - properties: { - assertionStyle: { - type: 'string', - enum: ['never'], - }, - }, - additionalProperties: false, - required: ['assertionStyle'], - }, - { - type: 'object', - properties: { - assertionStyle: { - type: 'string', - enum: ['as', 'angle-bracket'], - }, - objectLiteralTypeAssertions: { - type: 'string', - enum: ['allow', 'allow-as-parameter', 'never'], - }, - }, - additionalProperties: false, - required: ['assertionStyle'], - }, - ], - }, - ], - }, - defaultOptions: [ - { - assertionStyle: 'as', - objectLiteralTypeAssertions: 'allow', - }, - ], - create(context, [options]) { - const parserServices = (0, util_1.getParserServices)(context, true); - function isConst(node) { - if (node.type !== utils_1.AST_NODE_TYPES.TSTypeReference) { - return false; - } - return (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'const'); - } - function reportIncorrectAssertionType(node) { - const messageId = options.assertionStyle; - // If this node is `as const`, then don't report an error. - if (isConst(node.typeAnnotation) && messageId === 'never') { - return; - } - context.report({ - node, - messageId, - data: messageId !== 'never' - ? { cast: context.sourceCode.getText(node.typeAnnotation) } - : {}, - fix: messageId === 'as' - ? (fixer) => { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const expressionCode = context.sourceCode.getText(node.expression); - const typeAnnotationCode = context.sourceCode.getText(node.typeAnnotation); - const asPrecedence = (0, util_1.getOperatorPrecedence)(ts.SyntaxKind.AsExpression, ts.SyntaxKind.Unknown); - const parentPrecedence = (0, util_1.getOperatorPrecedence)(tsNode.parent.kind, ts.isBinaryExpression(tsNode.parent) - ? tsNode.parent.operatorToken.kind - : ts.SyntaxKind.Unknown, ts.isNewExpression(tsNode.parent) - ? tsNode.parent.arguments != null && - tsNode.parent.arguments.length > 0 - : undefined); - const expressionPrecedence = (0, util_1.getOperatorPrecedenceForNode)(node.expression); - const expressionCodeWrapped = (0, getWrappedCode_1.getWrappedCode)(expressionCode, expressionPrecedence, asPrecedence); - const text = `${expressionCodeWrapped} as ${typeAnnotationCode}`; - return fixer.replaceText(node, (0, util_1.isParenthesized)(node, context.sourceCode) - ? text - : (0, getWrappedCode_1.getWrappedCode)(text, asPrecedence, parentPrecedence)); - } - : undefined, - }); - } - function checkType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - return false; - case utils_1.AST_NODE_TYPES.TSTypeReference: - return ( - // Ignore `as const` and `` - !isConst(node) || - // Allow qualified names which have dots between identifiers, `Foo.Bar` - node.typeName.type === utils_1.AST_NODE_TYPES.TSQualifiedName); - default: - return true; - } - } - function checkExpression(node) { - if (options.assertionStyle === 'never' || - options.objectLiteralTypeAssertions === 'allow' || - node.expression.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { - return; - } - if (options.objectLiteralTypeAssertions === 'allow-as-parameter' && - (node.parent.type === utils_1.AST_NODE_TYPES.NewExpression || - node.parent.type === utils_1.AST_NODE_TYPES.CallExpression || - node.parent.type === utils_1.AST_NODE_TYPES.ThrowStatement || - node.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.parent.type === utils_1.AST_NODE_TYPES.JSXExpressionContainer || - (node.parent.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - node.parent.parent.type === - utils_1.AST_NODE_TYPES.TaggedTemplateExpression))) { - return; - } - if (checkType(node.typeAnnotation)) { - const suggest = []; - if (node.parent.type === utils_1.AST_NODE_TYPES.VariableDeclarator && - !node.parent.id.typeAnnotation) { - const { parent } = node; - suggest.push({ - messageId: 'replaceObjectTypeAssertionWithAnnotation', - data: { cast: context.sourceCode.getText(node.typeAnnotation) }, - fix: fixer => [ - fixer.insertTextAfter(parent.id, `: ${context.sourceCode.getText(node.typeAnnotation)}`), - fixer.replaceText(node, (0, util_1.getTextWithParentheses)(context.sourceCode, node.expression)), - ], - }); - } - suggest.push({ - messageId: 'replaceObjectTypeAssertionWithSatisfies', - data: { cast: context.sourceCode.getText(node.typeAnnotation) }, - fix: fixer => [ - fixer.replaceText(node, (0, util_1.getTextWithParentheses)(context.sourceCode, node.expression)), - fixer.insertTextAfter(node, ` satisfies ${context.sourceCode.getText(node.typeAnnotation)}`), - ], - }); - context.report({ - node, - messageId: 'unexpectedObjectTypeAssertion', - suggest, - }); - } - } - return { - TSTypeAssertion(node) { - if (options.assertionStyle !== 'angle-bracket') { - reportIncorrectAssertionType(node); - return; - } - checkExpression(node); - }, - TSAsExpression(node) { - if (options.assertionStyle !== 'as') { - reportIncorrectAssertionType(node); - return; - } - checkExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=consistent-type-assertions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map deleted file mode 100644 index a5f56bb5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAOiB;AACjB,2DAAwD;AAoBxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,EAAE,EAAE,4CAA4C;YAChD,eAAe,EAAE,4CAA4C;YAC7D,KAAK,EAAE,iCAAiC;YACxC,6BAA6B,EAAE,qCAAqC;YACpE,wCAAwC,EACtC,0CAA0C;YAC5C,uCAAuC,EACrC,mDAAmD;SACtD;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,cAAc,EAAE;gCACd,IAAI,EAAE,QAAQ;gCACd,IAA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AAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;oBAC/D,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;wBACZ,KAAK,CAAC,WAAW,CACf,IAAI,EACJ,IAAA,6BAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAC5D;wBACD,KAAK,CAAC,eAAe,CACnB,IAAI,EACJ,cAAc,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAChE;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,+BAA+B;oBAC1C,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,IAAI,OAAO,CAAC,cAAc,KAAK,eAAe,EAAE,CAAC;oBAC/C,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;oBACpC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;gBACT,CAAC;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js deleted file mode 100644 index 13cf5c8d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-type-definitions', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce type definitions to consistently use either `interface` or `type`', - recommended: 'stylistic', - }, - messages: { - interfaceOverType: 'Use an `interface` instead of a `type`.', - typeOverInterface: 'Use a `type` instead of an `interface`.', - }, - schema: [ - { - type: 'string', - enum: ['interface', 'type'], - }, - ], - fixable: 'code', - }, - defaultOptions: ['interface'], - create(context, [option]) { - /** - * Iterates from the highest parent to the currently traversed node - * to determine whether any node in tree is globally declared module declaration - */ - function isCurrentlyTraversedNodeWithinModuleDeclaration(node) { - return context.sourceCode - .getAncestors(node) - .some(node => node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - node.declare && - node.kind === 'global'); - } - return { - ...(option === 'interface' && { - "TSTypeAliasDeclaration[typeAnnotation.type='TSTypeLiteral']"(node) { - context.report({ - node: node.id, - messageId: 'interfaceOverType', - fix(fixer) { - const typeNode = node.typeParameters ?? node.id; - const fixes = []; - const firstToken = context.sourceCode.getTokenBefore(node.id); - if (firstToken) { - fixes.push(fixer.replaceText(firstToken, 'interface')); - fixes.push(fixer.replaceTextRange([typeNode.range[1], node.typeAnnotation.range[0]], ' ')); - } - const afterToken = context.sourceCode.getTokenAfter(node.typeAnnotation); - if (afterToken && - afterToken.type === utils_1.AST_TOKEN_TYPES.Punctuator && - afterToken.value === ';') { - fixes.push(fixer.remove(afterToken)); - } - return fixes; - }, - }); - }, - }), - ...(option === 'type' && { - TSInterfaceDeclaration(node) { - const fix = isCurrentlyTraversedNodeWithinModuleDeclaration(node) - ? null - : (fixer) => { - const typeNode = node.typeParameters ?? node.id; - const fixes = []; - const firstToken = context.sourceCode.getTokenBefore(node.id); - if (firstToken) { - fixes.push(fixer.replaceText(firstToken, 'type')); - fixes.push(fixer.replaceTextRange([typeNode.range[1], node.body.range[0]], ' = ')); - } - node.extends.forEach(heritage => { - const typeIdentifier = context.sourceCode.getText(heritage); - fixes.push(fixer.insertTextAfter(node.body, ` & ${typeIdentifier}`)); - }); - if (node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { - fixes.push(fixer.removeRange([node.parent.range[0], node.range[0]]), fixer.insertTextAfter(node.body, `\nexport default ${node.id.name}`)); - } - return fixes; - }; - context.report({ - node: node.id, - messageId: 'typeOverInterface', - /** - * remove automatically fix when the interface is within a declare global - * @see {@link https://github.com/typescript-eslint/typescript-eslint/issues/2707} - */ - fix, - }); - }, - }), - }; - }, -}); -//# sourceMappingURL=consistent-type-definitions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map deleted file mode 100644 index 04899d56..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-definitions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-definitions.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAE3E,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,2EAA2E;YAC7E,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,yCAAyC;YAC5D,iBAAiB,EAAE,yCAAyC;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IACD,cAAc,EAAE,CAAC,WAAW,CAAC;IAC7B,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB;;;WAGG;QACH,SAAS,+CAA+C,CACtD,IAAmB;YAEnB,OAAO,OAAO,CAAC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IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EACxD,KAAK,CAAC,eAAe,CACnB,IAAI,CAAC,IAAI,EACT,oBAAoB,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CACnC,CACF,CAAC;4BACJ,CAAC;4BAED,OAAO,KAAK,CAAC;wBACf,CAAC,CAAC;oBACN,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,IAAI,CAAC,EAAE;wBACb,SAAS,EAAE,mBAAmB;wBAC9B;;;2BAGG;wBACH,GAAG;qBACJ,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js deleted file mode 100644 index 922e9cb5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +++ /dev/null @@ -1,243 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const typescript_1 = require("typescript"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-type-exports', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce consistent usage of type exports', - requiresTypeChecking: true, - }, - messages: { - typeOverValue: 'All exports in the declaration are only used as types. Use `export type`.', - singleExportIsType: 'Type export {{exportNames}} is not a value and should be exported using `export type`.', - multipleExportsAreTypes: 'Type exports {{exportNames}} are not values and should be exported using `export type`.', - }, - schema: [ - { - type: 'object', - properties: { - fixMixedExportsWithInlineTypeSpecifier: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - }, - defaultOptions: [ - { - fixMixedExportsWithInlineTypeSpecifier: false, - }, - ], - create(context, [{ fixMixedExportsWithInlineTypeSpecifier }]) { - const sourceExportsMap = {}; - const services = (0, util_1.getParserServices)(context); - /** - * Helper for identifying if an export specifier resolves to a - * JavaScript value or a TypeScript type. - * - * @returns True/false if is a type or not, or undefined if the specifier - * can't be resolved. - */ - function isSpecifierTypeBased(specifier) { - const checker = services.program.getTypeChecker(); - const symbol = services.getSymbolAtLocation(specifier.exported); - if (!symbol) { - return undefined; - } - const aliasedSymbol = checker.getAliasedSymbol(symbol); - // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison - if (aliasedSymbol.escapedName === 'unknown') { - return undefined; - } - return !(aliasedSymbol.flags & typescript_1.SymbolFlags.Value); - } - return { - ExportNamedDeclaration(node) { - // Coerce the source into a string for use as a lookup entry. - const source = getSourceFromExport(node) ?? 'undefined'; - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - const sourceExports = (sourceExportsMap[source] ||= { - source, - reportValueExports: [], - typeOnlyNamedExport: null, - valueOnlyNamedExport: null, - }); - // Cache the first encountered exports for the package. We will need to come - // back to these later when fixing the problems. - if (node.exportKind === 'type') { - if (sourceExports.typeOnlyNamedExport == null) { - // The export is a type export - sourceExports.typeOnlyNamedExport = node; - } - } - else if (sourceExports.valueOnlyNamedExport == null) { - // The export is a value export - sourceExports.valueOnlyNamedExport = node; - } - // Next for the current export, we will separate type/value specifiers. - const typeBasedSpecifiers = []; - const inlineTypeSpecifiers = []; - const valueSpecifiers = []; - // Note: it is valid to export values as types. We will avoid reporting errors - // when this is encountered. - if (node.exportKind !== 'type') { - for (const specifier of node.specifiers) { - if (specifier.exportKind === 'type') { - inlineTypeSpecifiers.push(specifier); - continue; - } - const isTypeBased = isSpecifierTypeBased(specifier); - if (isTypeBased === true) { - typeBasedSpecifiers.push(specifier); - } - else if (isTypeBased === false) { - // When isTypeBased is undefined, we should avoid reporting them. - valueSpecifiers.push(specifier); - } - } - } - if ((node.exportKind === 'value' && typeBasedSpecifiers.length) || - (node.exportKind === 'type' && valueSpecifiers.length)) { - sourceExports.reportValueExports.push({ - node, - typeBasedSpecifiers, - valueSpecifiers, - inlineTypeSpecifiers, - }); - } - }, - 'Program:exit'() { - for (const sourceExports of Object.values(sourceExportsMap)) { - // If this export has no issues, move on. - if (sourceExports.reportValueExports.length === 0) { - continue; - } - for (const report of sourceExports.reportValueExports) { - if (report.valueSpecifiers.length === 0) { - // Export is all type-only with no type specifiers; convert the entire export to `export type`. - context.report({ - node: report.node, - messageId: 'typeOverValue', - *fix(fixer) { - yield* fixExportInsertType(fixer, context.sourceCode, report.node); - }, - }); - continue; - } - // We have both type and value violations. - const allExportNames = report.typeBasedSpecifiers.map(specifier => specifier.local.name); - if (allExportNames.length === 1) { - const exportNames = allExportNames[0]; - context.report({ - node: report.node, - messageId: 'singleExportIsType', - data: { exportNames }, - *fix(fixer) { - if (fixMixedExportsWithInlineTypeSpecifier) { - yield* fixAddTypeSpecifierToNamedExports(fixer, report); - } - else { - yield* fixSeparateNamedExports(fixer, context.sourceCode, report); - } - }, - }); - } - else { - const exportNames = (0, util_1.formatWordList)(allExportNames); - context.report({ - node: report.node, - messageId: 'multipleExportsAreTypes', - data: { exportNames }, - *fix(fixer) { - if (fixMixedExportsWithInlineTypeSpecifier) { - yield* fixAddTypeSpecifierToNamedExports(fixer, report); - } - else { - yield* fixSeparateNamedExports(fixer, context.sourceCode, report); - } - }, - }); - } - } - } - }, - }; - }, -}); -/** - * Inserts "type" into an export. - * - * Example: - * - * export type { Foo } from 'foo'; - * ^^^^ - */ -function* fixExportInsertType(fixer, sourceCode, node) { - const exportToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('export', node.type)); - yield fixer.insertTextAfter(exportToken, ' type'); - for (const specifier of node.specifiers) { - if (specifier.exportKind === 'type') { - const kindToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(specifier), util_1.NullThrowsReasons.MissingToken('export', specifier.type)); - const firstTokenAfter = (0, util_1.nullThrows)(sourceCode.getTokenAfter(kindToken, { - includeComments: true, - }), 'Missing token following the export kind.'); - yield fixer.removeRange([kindToken.range[0], firstTokenAfter.range[0]]); - } - } -} -/** - * Separates the exports which mismatch the kind of export the given - * node represents. For example, a type export's named specifiers which - * represent values will be inserted in a separate `export` statement. - */ -function* fixSeparateNamedExports(fixer, sourceCode, report) { - const { node, typeBasedSpecifiers, inlineTypeSpecifiers, valueSpecifiers } = report; - const typeSpecifiers = typeBasedSpecifiers.concat(inlineTypeSpecifiers); - const source = getSourceFromExport(node); - const specifierNames = typeSpecifiers.map(getSpecifierText).join(', '); - const exportToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('export', node.type)); - // Filter the bad exports from the current line. - const filteredSpecifierNames = valueSpecifiers - .map(getSpecifierText) - .join(', '); - const openToken = (0, util_1.nullThrows)(sourceCode.getFirstToken(node, util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', node.type)); - const closeToken = (0, util_1.nullThrows)(sourceCode.getLastToken(node, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); - // Remove exports from the current line which we're going to re-insert. - yield fixer.replaceTextRange([openToken.range[1], closeToken.range[0]], ` ${filteredSpecifierNames} `); - // Insert the bad exports into a new export line above. - yield fixer.insertTextBefore(exportToken, `export type { ${specifierNames} }${source ? ` from '${source}'` : ''};\n`); -} -function* fixAddTypeSpecifierToNamedExports(fixer, report) { - if (report.node.exportKind === 'type') { - return; - } - for (const specifier of report.typeBasedSpecifiers) { - yield fixer.insertTextBefore(specifier, 'type '); - } -} -/** - * Returns the source of the export, or undefined if the named export has no source. - */ -function getSourceFromExport(node) { - if (node.source?.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.source.value === 'string') { - return node.source.value; - } - return undefined; -} -/** - * Returns the specifier text for the export. If it is aliased, we take care to return - * the proper formatting. - */ -function getSpecifierText(specifier) { - return `${specifier.local.name}${specifier.exported.name !== specifier.local.name - ? ` as ${specifier.exported.name}` - : ''}`; -} -//# sourceMappingURL=consistent-type-exports.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map deleted file mode 100644 index 394d0081..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-exports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAC1D,2CAAyC;AAEzC,kCAQiB;AA2BjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAE7E,kBAAkB,EAChB,wFAAwF;YAC1F,uBAAuB,EACrB,yFAAyF;SAC5F;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,sCAAsC,EAAE;wBACtC,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IACD,cAAc,EAAE;QACd;YACE,sCAAsC,EAAE,KAAK;SAC9C;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,sCAAsC,EAAE,CAAC;QAC1D,MAAM,gBAAgB,GAAkC,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAE5C;;;;;;WAMG;QACH,SAAS,oBAAoB,CAC3B,SAAmC;YAEnC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;YAClD,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,CAAC,CAAC,EACzC,IAAI,sBAAsB,GAAG,CAC9B,CAAC;IAEF,uDAAuD;IACvD,MAAM,KAAK,CAAC,gBAAgB,CAC1B,WAAW,EACX,iBAAiB,cAAc,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAC3E,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,CAAC,iCAAiC,CACzC,KAAyB,EACzB,MAAyB;IAEzB,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;QACtC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACnD,MAAM,KAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAC1B,IAAqC;IAErC,IACE,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,EACrC,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CAAC,SAAmC;IAC3D,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,GAC5B,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,CAAC,IAAI;QAC9C,CAAC,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;QAClC,CAAC,CAAC,EACN,EAAE,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js deleted file mode 100644 index 35f54087..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +++ /dev/null @@ -1,606 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-type-imports', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce consistent usage of type imports', - }, - messages: { - typeOverValue: 'All imports in the declaration are only used as types. Use `import type`.', - someImportsAreOnlyTypes: 'Imports {{typeImports}} are only used as type.', - avoidImportType: 'Use an `import` instead of an `import type`.', - noImportTypeAnnotations: '`import()` type annotations are forbidden.', - }, - schema: [ - { - type: 'object', - properties: { - disallowTypeAnnotations: { - type: 'boolean', - }, - fixStyle: { - type: 'string', - enum: ['separate-type-imports', 'inline-type-imports'], - }, - prefer: { - type: 'string', - enum: ['type-imports', 'no-type-imports'], - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - }, - defaultOptions: [ - { - prefer: 'type-imports', - disallowTypeAnnotations: true, - fixStyle: 'separate-type-imports', - }, - ], - create(context, [option]) { - const prefer = option.prefer ?? 'type-imports'; - const disallowTypeAnnotations = option.disallowTypeAnnotations !== false; - const selectors = {}; - if (disallowTypeAnnotations) { - selectors.TSImportType = (node) => { - context.report({ - node, - messageId: 'noImportTypeAnnotations', - }); - }; - } - if (prefer === 'no-type-imports') { - return { - ...selectors, - 'ImportDeclaration[importKind = "type"]'(node) { - context.report({ - node, - messageId: 'avoidImportType', - fix(fixer) { - return fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); - }, - }); - }, - 'ImportSpecifier[importKind = "type"]'(node) { - context.report({ - node, - messageId: 'avoidImportType', - fix(fixer) { - return fixRemoveTypeSpecifierFromImportSpecifier(fixer, node); - }, - }); - }, - }; - } - // prefer type imports - const fixStyle = option.fixStyle ?? 'separate-type-imports'; - let hasDecoratorMetadata = false; - const sourceImportsMap = {}; - const emitDecoratorMetadata = (0, util_1.getParserServices)(context, true).emitDecoratorMetadata ?? false; - const experimentalDecorators = (0, util_1.getParserServices)(context, true).experimentalDecorators ?? false; - if (experimentalDecorators && emitDecoratorMetadata) { - selectors.Decorator = () => { - hasDecoratorMetadata = true; - }; - } - return { - ...selectors, - ImportDeclaration(node) { - const source = node.source.value; - // sourceImports is the object containing all the specifics for a particular import source, type or value - sourceImportsMap[source] ??= { - source, - reportValueImports: [], // if there is a mismatch where type importKind but value specifiers - typeOnlyNamedImport: null, // if only type imports - valueOnlyNamedImport: null, // if only value imports with named specifiers - valueImport: null, // if only value imports - }; - const sourceImports = sourceImportsMap[source]; - if (node.importKind === 'type') { - if (!sourceImports.typeOnlyNamedImport && - node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { - // definitely import type { TypeX } - sourceImports.typeOnlyNamedImport = node; - } - } - else if (!sourceImports.valueOnlyNamedImport && - node.specifiers.length && - node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { - sourceImports.valueOnlyNamedImport = node; - sourceImports.valueImport = node; - } - else if (!sourceImports.valueImport && - node.specifiers.some(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier)) { - sourceImports.valueImport = node; - } - const typeSpecifiers = []; - const inlineTypeSpecifiers = []; - const valueSpecifiers = []; - const unusedSpecifiers = []; - for (const specifier of node.specifiers) { - if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - specifier.importKind === 'type') { - inlineTypeSpecifiers.push(specifier); - continue; - } - const [variable] = context.sourceCode.getDeclaredVariables(specifier); - if (variable.references.length === 0) { - unusedSpecifiers.push(specifier); - } - else { - const onlyHasTypeReferences = variable.references.every(ref => { - /** - * keep origin import kind when export - * export { Type } - * export default Type; - * export = Type; - */ - if (ref.identifier.parent.type === utils_1.AST_NODE_TYPES.ExportSpecifier || - ref.identifier.parent.type === - utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || - ref.identifier.parent.type === utils_1.AST_NODE_TYPES.TSExportAssignment) { - if (ref.isValueReference && ref.isTypeReference) { - return node.importKind === 'type'; - } - } - if (ref.isValueReference) { - let parent = ref.identifier.parent; - let child = ref.identifier; - while (parent) { - switch (parent.type) { - // CASE 1: - // `type T = typeof foo` will create a value reference because "foo" must be a value type - // however this value reference is safe to use with type-only imports - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return true; - case utils_1.AST_NODE_TYPES.TSQualifiedName: - // TSTypeQuery must have a TSESTree.EntityName as its child, so we can filter here and break early - if (parent.left !== child) { - return false; - } - child = parent; - parent = parent.parent; - continue; - // END CASE 1 - ////////////// - // CASE 2: - // `type T = { [foo]: string }` will create a value reference because "foo" must be a value type - // however this value reference is safe to use with type-only imports. - // Also this is represented as a non-type AST - hence it uses MemberExpression - case utils_1.AST_NODE_TYPES.TSPropertySignature: - return parent.key === child; - case utils_1.AST_NODE_TYPES.MemberExpression: - if (parent.object !== child) { - return false; - } - child = parent; - parent = parent.parent; - continue; - // END CASE 2 - default: - return false; - } - } - } - return ref.isTypeReference; - }); - if (onlyHasTypeReferences) { - typeSpecifiers.push(specifier); - } - else { - valueSpecifiers.push(specifier); - } - } - } - if (node.importKind === 'value' && typeSpecifiers.length) { - sourceImports.reportValueImports.push({ - node, - typeSpecifiers, - valueSpecifiers, - unusedSpecifiers, - inlineTypeSpecifiers, - }); - } - }, - 'Program:exit'() { - if (hasDecoratorMetadata) { - // Experimental decorator metadata is bowl of poop that cannot be - // supported based on pure syntactic analysis. - // - // So we can do one of two things: - // 1) add type-information to the rule in a breaking change and - // prevent users from using it so that we can fully support this - // case. - // 2) make the rule ignore all imports that are used in a file that - // might have decorator metadata. - // - // (1) is has huge impact and prevents the rule from being used by 99% - // of users Frankly - it's a straight-up bad option. So instead we - // choose with option (2) and just avoid reporting on any imports in a - // file with both emitDecoratorMetadata AND decorators - // - // For more context see the discussion in this issue and its linked - // issues: - // https://github.com/typescript-eslint/typescript-eslint/issues/5468 - // - // - // NOTE - in TS 5.0 `experimentalDecorators` became the legacy option, - // replaced with un-flagged, stable decorators and thus the type-aware - // emitDecoratorMetadata implementation also became legacy. in TS 5.2 - // support for the new, stable decorator metadata proposal was added - - // however this proposal does not include type information - // - // - // PHEW. So TL;DR what does all this mean? - // - if you use experimentalDecorators:true, - // emitDecoratorMetadata:true, and have a decorator in the file - - // the rule will do nothing in the file out of an abundance of - // caution. - // - else the rule will work as normal. - return; - } - for (const sourceImports of Object.values(sourceImportsMap)) { - if (sourceImports.reportValueImports.length === 0) { - // nothing to fix. value specifiers and type specifiers are correctly written - continue; - } - for (const report of sourceImports.reportValueImports) { - if (report.valueSpecifiers.length === 0 && - report.unusedSpecifiers.length === 0 && - report.node.importKind !== 'type') { - /** - * checks if import has type assertions - * @example - * ```ts - * import * as type from 'mod' assert \{ type: 'json' \}; - * ``` - * https://github.com/typescript-eslint/typescript-eslint/issues/7527 - */ - if (report.node.attributes.length === 0) { - context.report({ - node: report.node, - messageId: 'typeOverValue', - *fix(fixer) { - yield* fixToTypeImportDeclaration(fixer, report, sourceImports); - }, - }); - } - } - else { - // we have a mixed type/value import or just value imports, so we need to split them out into multiple imports if separate-type-imports is configured - const importNames = report.typeSpecifiers.map(specifier => `"${specifier.local.name}"`); - const message = (() => { - const typeImports = (0, util_1.formatWordList)(importNames); - if (importNames.length === 1) { - return { - messageId: 'someImportsAreOnlyTypes', - data: { - typeImports, - }, - }; - } - return { - messageId: 'someImportsAreOnlyTypes', - data: { - typeImports, - }, - }; - })(); - context.report({ - node: report.node, - ...message, - *fix(fixer) { - // take all the typeSpecifiers and put them on a new line - yield* fixToTypeImportDeclaration(fixer, report, sourceImports); - }, - }); - } - } - } - }, - }; - function classifySpecifier(node) { - const defaultSpecifier = node.specifiers[0].type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier - ? node.specifiers[0] - : null; - const namespaceSpecifier = node.specifiers.find((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier) ?? null; - const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier); - return { - defaultSpecifier, - namespaceSpecifier, - namedSpecifiers, - }; - } - /** - * Returns information for fixing named specifiers, type or value - */ - function getFixesNamedSpecifiers(fixer, node, subsetNamedSpecifiers, allNamedSpecifiers) { - if (allNamedSpecifiers.length === 0) { - return { - typeNamedSpecifiersText: '', - removeTypeNamedSpecifiers: [], - }; - } - const typeNamedSpecifiersTexts = []; - const removeTypeNamedSpecifiers = []; - if (subsetNamedSpecifiers.length === allNamedSpecifiers.length) { - // import Foo, {Type1, Type2} from 'foo' - // import DefType, {Type1, Type2} from 'foo' - const openingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(subsetNamedSpecifiers[0], util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', node.type)); - const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(openingBraceToken, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); - const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); - // import DefType, {...} from 'foo' - // ^^^^^^^ remove - removeTypeNamedSpecifiers.push(fixer.removeRange([commaToken.range[0], closingBraceToken.range[1]])); - typeNamedSpecifiersTexts.push(context.sourceCode.text.slice(openingBraceToken.range[1], closingBraceToken.range[0])); - } - else { - const namedSpecifierGroups = []; - let group = []; - for (const namedSpecifier of allNamedSpecifiers) { - if (subsetNamedSpecifiers.includes(namedSpecifier)) { - group.push(namedSpecifier); - } - else if (group.length) { - namedSpecifierGroups.push(group); - group = []; - } - } - if (group.length) { - namedSpecifierGroups.push(group); - } - for (const namedSpecifiers of namedSpecifierGroups) { - const { removeRange, textRange } = getNamedSpecifierRanges(namedSpecifiers, allNamedSpecifiers); - removeTypeNamedSpecifiers.push(fixer.removeRange(removeRange)); - typeNamedSpecifiersTexts.push(context.sourceCode.text.slice(...textRange)); - } - } - return { - typeNamedSpecifiersText: typeNamedSpecifiersTexts.join(','), - removeTypeNamedSpecifiers, - }; - } - /** - * Returns ranges for fixing named specifier. - */ - function getNamedSpecifierRanges(namedSpecifierGroup, allNamedSpecifiers) { - const first = namedSpecifierGroup[0]; - const last = namedSpecifierGroup[namedSpecifierGroup.length - 1]; - const removeRange = [first.range[0], last.range[1]]; - const textRange = [...removeRange]; - const before = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(first), util_1.NullThrowsReasons.MissingToken('token', 'first specifier')); - textRange[0] = before.range[1]; - if ((0, util_1.isCommaToken)(before)) { - removeRange[0] = before.range[0]; - } - else { - removeRange[0] = before.range[1]; - } - const isFirst = allNamedSpecifiers[0] === first; - const isLast = allNamedSpecifiers[allNamedSpecifiers.length - 1] === last; - const after = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(last), util_1.NullThrowsReasons.MissingToken('token', 'last specifier')); - textRange[1] = after.range[0]; - if (isFirst || isLast) { - if ((0, util_1.isCommaToken)(after)) { - removeRange[1] = after.range[1]; - } - } - return { - textRange, - removeRange, - }; - } - /** - * insert specifiers to named import node. - * e.g. - * import type { Already, Type1, Type2 } from 'foo' - * ^^^^^^^^^^^^^ insert - */ - function fixInsertNamedSpecifiersInNamedSpecifierList(fixer, target, insertText) { - const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween((0, util_1.nullThrows)(context.sourceCode.getFirstToken(target), util_1.NullThrowsReasons.MissingToken('token before', 'import')), target.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', target.type)); - const before = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(closingBraceToken), util_1.NullThrowsReasons.MissingToken('token before', 'closing brace')); - if (!(0, util_1.isCommaToken)(before) && !(0, util_1.isOpeningBraceToken)(before)) { - insertText = `,${insertText}`; - } - return fixer.insertTextBefore(closingBraceToken, insertText); - } - /** - * insert type keyword to named import node. - * e.g. - * import ADefault, { Already, type Type1, type Type2 } from 'foo' - * ^^^^ insert - */ - function* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeSpecifiers) { - for (const spec of typeSpecifiers) { - const insertText = context.sourceCode.text.slice(...spec.range); - yield fixer.replaceTextRange(spec.range, `type ${insertText}`); - } - } - function* fixInlineTypeImportDeclaration(fixer, report, sourceImports) { - const { node } = report; - // For a value import, will only add an inline type to named specifiers - const { namedSpecifiers } = classifySpecifier(node); - const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); - if (sourceImports.valueImport) { - // add import named type specifiers to its value import - // import ValueA, { type A } - // ^^^^ insert - const { namedSpecifiers: valueImportNamedSpecifiers } = classifySpecifier(sourceImports.valueImport); - if (sourceImports.valueOnlyNamedImport || - valueImportNamedSpecifiers.length) { - yield* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeNamedSpecifiers); - } - } - } - function* fixToTypeImportDeclaration(fixer, report, sourceImports) { - const { node } = report; - const { defaultSpecifier, namespaceSpecifier, namedSpecifiers } = classifySpecifier(node); - if (namespaceSpecifier && !defaultSpecifier) { - // import * as types from 'foo' - // checks for presence of import assertions - if (node.attributes.length === 0) { - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); - } - return; - } - else if (defaultSpecifier) { - if (report.typeSpecifiers.includes(defaultSpecifier) && - namedSpecifiers.length === 0 && - !namespaceSpecifier) { - // import Type from 'foo' - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, true); - return; - } - else if (fixStyle === 'inline-type-imports' && - !report.typeSpecifiers.includes(defaultSpecifier) && - namedSpecifiers.length > 0 && - !namespaceSpecifier) { - // if there is a default specifier but it isn't a type specifier, then just add the inline type modifier to the named specifiers - // import AValue, {BValue, Type1, Type2} from 'foo' - yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); - return; - } - } - else if (!namespaceSpecifier) { - if (fixStyle === 'inline-type-imports' && - namedSpecifiers.some(specifier => report.typeSpecifiers.includes(specifier))) { - // import {AValue, Type1, Type2} from 'foo' - yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); - return; - } - else if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) { - // import {Type1, Type2} from 'foo' - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); - return; - } - } - const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); - const fixesNamedSpecifiers = getFixesNamedSpecifiers(fixer, node, typeNamedSpecifiers, namedSpecifiers); - const afterFixes = []; - if (typeNamedSpecifiers.length) { - if (sourceImports.typeOnlyNamedImport) { - const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.typeOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText); - if (sourceImports.typeOnlyNamedImport.range[1] <= node.range[0]) { - yield insertTypeNamedSpecifiers; - } - else { - afterFixes.push(insertTypeNamedSpecifiers); - } - } - else { - // The import is both default and named. Insert named on new line because can't mix default type import and named type imports - // eslint-disable-next-line no-lonely-if - if (fixStyle === 'inline-type-imports') { - yield fixer.insertTextBefore(node, `import {${typeNamedSpecifiers - .map(spec => { - const insertText = context.sourceCode.text.slice(...spec.range); - return `type ${insertText}`; - }) - .join(', ')}} from ${context.sourceCode.getText(node.source)};\n`); - } - else { - yield fixer.insertTextBefore(node, `import type {${fixesNamedSpecifiers.typeNamedSpecifiersText}} from ${context.sourceCode.getText(node.source)};\n`); - } - } - } - const fixesRemoveTypeNamespaceSpecifier = []; - if (namespaceSpecifier && - report.typeSpecifiers.includes(namespaceSpecifier)) { - // import Foo, * as Type from 'foo' - // import DefType, * as Type from 'foo' - // import DefType, * as Type from 'foo' - const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(namespaceSpecifier, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); - // import Def, * as Ns from 'foo' - // ^^^^^^^^^ remove - fixesRemoveTypeNamespaceSpecifier.push(fixer.removeRange([commaToken.range[0], namespaceSpecifier.range[1]])); - // import type * as Ns from 'foo' - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ insert - yield fixer.insertTextBefore(node, `import type ${context.sourceCode.getText(namespaceSpecifier)} from ${context.sourceCode.getText(node.source)};\n`); - } - if (defaultSpecifier && - report.typeSpecifiers.includes(defaultSpecifier)) { - if (report.typeSpecifiers.length === node.specifiers.length) { - const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); - // import type Type from 'foo' - // ^^^^ insert - yield fixer.insertTextAfter(importToken, ' type'); - } - else { - const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(defaultSpecifier, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', defaultSpecifier.type)); - // import Type , {...} from 'foo' - // ^^^^^ pick - const defaultText = context.sourceCode.text - .slice(defaultSpecifier.range[0], commaToken.range[0]) - .trim(); - yield fixer.insertTextBefore(node, `import type ${defaultText} from ${context.sourceCode.getText(node.source)};\n`); - const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(commaToken, { - includeComments: true, - }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); - // import Type , {...} from 'foo' - // ^^^^^^^ remove - yield fixer.removeRange([ - defaultSpecifier.range[0], - afterToken.range[0], - ]); - } - } - yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers; - yield* fixesRemoveTypeNamespaceSpecifier; - yield* afterFixes; - } - function* fixInsertTypeSpecifierForImportDeclaration(fixer, node, isDefaultImport) { - // import type Foo from 'foo' - // ^^^^^ insert - const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); - yield fixer.insertTextAfter(importToken, ' type'); - if (isDefaultImport) { - // Has default import - const openingBraceToken = context.sourceCode.getFirstTokenBetween(importToken, node.source, util_1.isOpeningBraceToken); - if (openingBraceToken) { - // Only braces. e.g. import Foo, {} from 'foo' - const commaToken = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(openingBraceToken, util_1.isCommaToken), util_1.NullThrowsReasons.MissingToken(',', node.type)); - const closingBraceToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', node.type)); - // import type Foo, {} from 'foo' - // ^^ remove - yield fixer.removeRange([ - commaToken.range[0], - closingBraceToken.range[1], - ]); - const specifiersText = context.sourceCode.text.slice(commaToken.range[1], closingBraceToken.range[1]); - if (node.specifiers.length > 1) { - yield fixer.insertTextAfter(node, `\nimport type${specifiersText} from ${context.sourceCode.getText(node.source)};`); - } - } - } - // make sure we don't do anything like `import type {type T} from 'foo';` - for (const specifier of node.specifiers) { - if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - specifier.importKind === 'type') { - yield* fixRemoveTypeSpecifierFromImportSpecifier(fixer, specifier); - } - } - } - function* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node) { - // import type Foo from 'foo' - // ^^^^ remove - const importToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import', node.type)); - const typeToken = (0, util_1.nullThrows)(context.sourceCode.getFirstTokenBetween(importToken, node.specifiers[0]?.local ?? node.source, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type', node.type)); - const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(typeToken, { includeComments: true }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); - yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); - } - function* fixRemoveTypeSpecifierFromImportSpecifier(fixer, node) { - // import { type Foo } from 'foo' - // ^^^^ remove - const typeToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type', node.type)); - const afterToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(typeToken, { includeComments: true }), util_1.NullThrowsReasons.MissingToken('any token', node.type)); - yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); - } - }, -}); -//# sourceMappingURL=consistent-type-imports.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map deleted file mode 100644 index cede2ebe..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAG1D,kCAWiB;AAoCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;SACxD;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAC7E,uBAAuB,EAAE,gDAAgD;YAEzE,eAAe,EAAE,8CAA8C;YAC/D,uBAAuB,EAAE,4CAA4C;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;qBACvD;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IAED,cAAc,EAAE;QACd;YACE,MAAM,EAAE,cAAc;YACtB,uBAAuB,E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,IAAI,EAAE,CAAC,EACtE,wBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,QAAQ,CAAC,CAAC,yCAAyC,CACjD,KAAyB,EACzB,IAA8B;YAE9B,iCAAiC;YACjC,uBAAuB;YACvB,MAAM,SAAS,GAAG,IAAA,iBAAU,EAC1B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,oBAAa,CAAC,EACrD,wBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;YACF,MAAM,UAAU,GAAG,IAAA,iBAAU,EAC3B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EACtE,wBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js deleted file mode 100644 index a8cf1dff..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'default-param-last', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce default parameters to be last', - extendsBaseRule: true, - }, - schema: [], - messages: { - shouldBeLast: 'Default parameters should be last.', - }, - }, - defaultOptions: [], - create(context) { - /** - * checks if node is optional parameter - * @param node the node to be evaluated - * @private - */ - function isOptionalParam(node) { - return ((node.type === utils_1.AST_NODE_TYPES.ArrayPattern || - node.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.ObjectPattern || - node.type === utils_1.AST_NODE_TYPES.RestElement) && - node.optional); - } - /** - * checks if node is plain parameter - * @param node the node to be evaluated - * @private - */ - function isPlainParam(node) { - return !(node.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.type === utils_1.AST_NODE_TYPES.RestElement || - isOptionalParam(node)); - } - function checkDefaultParamLast(node) { - let hasSeenPlainParam = false; - for (let i = node.params.length - 1; i >= 0; i--) { - const current = node.params[i]; - const param = current.type === utils_1.AST_NODE_TYPES.TSParameterProperty - ? current.parameter - : current; - if (isPlainParam(param)) { - hasSeenPlainParam = true; - continue; - } - if (hasSeenPlainParam && - (isOptionalParam(param) || - param.type === utils_1.AST_NODE_TYPES.AssignmentPattern)) { - context.report({ node: current, messageId: 'shouldBeLast' }); - } - } - } - return { - ArrowFunctionExpression: checkDefaultParamLast, - FunctionDeclaration: checkDefaultParamLast, - FunctionExpression: checkDefaultParamLast, - }; - }, -}); -//# sourceMappingURL=default-param-last.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map deleted file mode 100644 index 8cdae617..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"default-param-last.js","sourceRoot":"","sources":["../../src/rules/default-param-last.ts"],"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T,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACjD,CAAC,CAAC,OAAO,CAAC,SAAS;oBACnB,CAAC,CAAC,OAAO,CAAC;gBAEd,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;oBACxB,iBAAiB,GAAG,IAAI,CAAC;oBACzB,SAAS;gBACX,CAAC;gBAED,IACE,iBAAiB;oBACjB,CAAC,eAAe,CAAC,KAAK,CAAC;wBACrB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAClD,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;gBAC/D,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,qBAAqB;YAC9C,mBAAmB,EAAE,qBAAqB;YAC1C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js deleted file mode 100644 index ae36a06e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('dot-notation'); -exports.default = (0, util_1.createRule)({ - name: 'dot-notation', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce dot notation whenever possible', - recommended: 'stylistic', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowKeywords: { - type: 'boolean', - default: true, - }, - allowPattern: { - type: 'string', - default: '', - }, - allowPrivateClassPropertyAccess: { - type: 'boolean', - default: false, - }, - allowProtectedClassPropertyAccess: { - type: 'boolean', - default: false, - }, - allowIndexSignaturePropertyAccess: { - type: 'boolean', - default: false, - }, - }, - additionalProperties: false, - }, - ], - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - allowPrivateClassPropertyAccess: false, - allowProtectedClassPropertyAccess: false, - allowIndexSignaturePropertyAccess: false, - allowKeywords: true, - allowPattern: '', - }, - ], - create(context, [options]) { - const rules = baseRule.create(context); - const services = (0, util_1.getParserServices)(context); - const allowPrivateClassPropertyAccess = options.allowPrivateClassPropertyAccess; - const allowProtectedClassPropertyAccess = options.allowProtectedClassPropertyAccess; - const allowIndexSignaturePropertyAccess = (options.allowIndexSignaturePropertyAccess ?? false) || - tsutils.isCompilerOptionEnabled(services.program.getCompilerOptions(), 'noPropertyAccessFromIndexSignature'); - return { - MemberExpression(node) { - if ((allowPrivateClassPropertyAccess || - allowProtectedClassPropertyAccess || - allowIndexSignaturePropertyAccess) && - node.computed) { - // for perf reasons - only fetch symbols if we have to - const propertySymbol = services.getSymbolAtLocation(node.property) ?? - services - .getTypeAtLocation(node.object) - .getNonNullableType() - .getProperties() - .find(propertySymbol => node.property.type === utils_1.AST_NODE_TYPES.Literal && - propertySymbol.escapedName === node.property.value); - const modifierKind = (0, util_1.getModifiers)(propertySymbol?.getDeclarations()?.[0])?.[0].kind; - if ((allowPrivateClassPropertyAccess && - modifierKind === ts.SyntaxKind.PrivateKeyword) || - (allowProtectedClassPropertyAccess && - modifierKind === ts.SyntaxKind.ProtectedKeyword)) { - return; - } - if (propertySymbol === undefined && - allowIndexSignaturePropertyAccess) { - const objectType = services.getTypeAtLocation(node.object); - const indexType = objectType - .getNonNullableType() - .getStringIndexType(); - if (indexType !== undefined) { - return; - } - } - } - rules.MemberExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=dot-notation.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map deleted file mode 100644 index c8ab6ae8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAMjC,kCAAsE;AACtE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,wCAAwC;YACrD,WAAW,EAAE,WAAW;YACxB,eAAe,EAAE,IAAI;YAC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AAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js deleted file mode 100644 index 7dec52e7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEnumLiterals = getEnumLiterals; -exports.getEnumTypes = getEnumTypes; -exports.getEnumKeyForLiteral = getEnumKeyForLiteral; -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../../util"); -/* - * If passed an enum member, returns the type of the parent. Otherwise, - * returns itself. - * - * For example: - * - `Fruit` --> `Fruit` - * - `Fruit.Apple` --> `Fruit` - */ -function getBaseEnumType(typeChecker, type) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const symbol = type.getSymbol(); - if (!tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.EnumMember)) { - return type; - } - return typeChecker.getTypeAtLocation(symbol.valueDeclaration.parent); -} -/** - * Retrieve only the Enum literals from a type. for example: - * - 123 --> [] - * - {} --> [] - * - Fruit.Apple --> [Fruit.Apple] - * - Fruit.Apple | Vegetable.Lettuce --> [Fruit.Apple, Vegetable.Lettuce] - * - Fruit.Apple | Vegetable.Lettuce | 123 --> [Fruit.Apple, Vegetable.Lettuce] - * - T extends Fruit --> [Fruit] - */ -function getEnumLiterals(type) { - return tsutils - .unionTypeParts(type) - .filter((subType) => (0, util_1.isTypeFlagSet)(subType, ts.TypeFlags.EnumLiteral)); -} -/** - * A type can have 0 or more enum types. For example: - * - 123 --> [] - * - {} --> [] - * - Fruit.Apple --> [Fruit] - * - Fruit.Apple | Vegetable.Lettuce --> [Fruit, Vegetable] - * - Fruit.Apple | Vegetable.Lettuce | 123 --> [Fruit, Vegetable] - * - T extends Fruit --> [Fruit] - */ -function getEnumTypes(typeChecker, type) { - return getEnumLiterals(type).map(type => getBaseEnumType(typeChecker, type)); -} -/** - * Returns the enum key that matches the given literal node, or null if none - * match. For example: - * ```ts - * enum Fruit { - * Apple = 'apple', - * Banana = 'banana', - * } - * - * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'apple') --> 'Fruit.Apple' - * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'banana') --> 'Fruit.Banana' - * getEnumKeyForLiteral([Fruit.Apple, Fruit.Banana], 'cherry') --> null - * ``` - */ -function getEnumKeyForLiteral(enumLiterals, literal) { - for (const enumLiteral of enumLiterals) { - if (enumLiteral.value === literal) { - const { symbol } = enumLiteral; - const memberDeclaration = symbol.valueDeclaration; - const enumDeclaration = memberDeclaration.parent; - const memberNameIdentifier = memberDeclaration.name; - const enumName = enumDeclaration.name.text; - switch (memberNameIdentifier.kind) { - case ts.SyntaxKind.Identifier: - return `${enumName}.${memberNameIdentifier.text}`; - case ts.SyntaxKind.StringLiteral: { - const memberName = memberNameIdentifier.text.replace(/'/g, "\\'"); - return `${enumName}['${memberName}']`; - } - case ts.SyntaxKind.ComputedPropertyName: - return `${enumName}[${memberNameIdentifier.expression.getText()}]`; - default: - break; - } - } - } - return null; -} -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map deleted file mode 100644 index c96d88f3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/enum-utils/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,0CAMC;AAWD,oCAKC;AAgBD,oDAkCC;AA1GD,sDAAwC;AACxC,+CAAiC;AAEjC,qCAA2C;AAE3C;;;;;;;GAOG;AACH,SAAS,eAAe,CAAC,WAA2B,EAAE,IAAa;IACjE,oEAAoE;IACpE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAG,CAAC;IACjC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,WAAW,CAAC,iBAAiB,CACjC,MAAM,CAAC,gBAAkC,CAAC,MAAM,CAClD,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,eAAe,CAAC,IAAa;IAC3C,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,MAAM,CAAC,CAAC,OAAO,EAA6B,EAAE,CAC7C,IAAA,oBAAa,EAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CACjD,CAAC;AACN,CAAC;AAED;;;;;;;;GAQG;AACH,SA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graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js deleted file mode 100644 index 2972268e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +++ /dev/null @@ -1,180 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); -exports.default = (0, util_1.createRule)({ - name: 'explicit-function-return-type', - meta: { - type: 'problem', - docs: { - description: 'Require explicit return types on functions and class methods', - }, - messages: { - missingReturnType: 'Missing return type on function.', - }, - schema: [ - { - type: 'object', - properties: { - allowConciseArrowFunctionExpressionsStartingWithVoid: { - description: 'Whether to allow arrow functions that start with the `void` keyword.', - type: 'boolean', - }, - allowExpressions: { - description: 'Whether to ignore function expressions (functions which are not part of a declaration).', - type: 'boolean', - }, - allowHigherOrderFunctions: { - description: 'Whether to ignore functions immediately returning another function expression.', - type: 'boolean', - }, - allowTypedFunctionExpressions: { - description: 'Whether to ignore type annotations on the variable of function expressions.', - type: 'boolean', - }, - allowDirectConstAssertionInArrowFunctions: { - description: 'Whether to ignore arrow functions immediately returning a `as const` value.', - type: 'boolean', - }, - allowFunctionsWithoutTypeParameters: { - description: "Whether to ignore functions that don't have generic type parameters.", - type: 'boolean', - }, - allowedNames: { - description: 'An array of function/method names that will not have their arguments or return values checked.', - items: { - type: 'string', - }, - type: 'array', - }, - allowIIFEs: { - description: 'Whether to ignore immediately invoked function expressions (IIFEs).', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowExpressions: false, - allowTypedFunctionExpressions: true, - allowHigherOrderFunctions: true, - allowDirectConstAssertionInArrowFunctions: true, - allowConciseArrowFunctionExpressionsStartingWithVoid: false, - allowFunctionsWithoutTypeParameters: false, - allowedNames: [], - allowIIFEs: false, - }, - ], - create(context, [options]) { - const functionInfoStack = []; - function enterFunction(node) { - functionInfoStack.push({ - node, - returns: [], - }); - } - function popFunctionInfo(exitNodeType) { - return (0, util_1.nullThrows)(functionInfoStack.pop(), `Stack should exist on ${exitNodeType} exit`); - } - function isAllowedFunction(node) { - if (options.allowFunctionsWithoutTypeParameters && !node.typeParameters) { - return true; - } - if (options.allowIIFEs && isIIFE(node)) { - return true; - } - if (!options.allowedNames?.length) { - return false; - } - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.type === utils_1.AST_NODE_TYPES.FunctionExpression) { - const parent = node.parent; - let funcName; - if (node.id?.name) { - funcName = node.id.name; - } - else { - switch (parent.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: { - if (parent.id.type === utils_1.AST_NODE_TYPES.Identifier) { - funcName = parent.id.name; - } - break; - } - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - case utils_1.AST_NODE_TYPES.Property: { - if (parent.key.type === utils_1.AST_NODE_TYPES.Identifier && - !parent.computed) { - funcName = parent.key.name; - } - break; - } - } - } - if (!!funcName && !!options.allowedNames.includes(funcName)) { - return true; - } - } - if (node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration && - node.id && - !!options.allowedNames.includes(node.id.name)) { - return true; - } - return false; - } - function isIIFE(node) { - return node.parent.type === utils_1.AST_NODE_TYPES.CallExpression; - } - function exitFunctionExpression(node) { - const info = popFunctionInfo('function expression'); - if (options.allowConciseArrowFunctionExpressionsStartingWithVoid && - node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - node.expression && - node.body.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.body.operator === 'void') { - return; - } - if (isAllowedFunction(node)) { - return; - } - if (options.allowTypedFunctionExpressions && - ((0, explicitReturnTypeUtils_1.isValidFunctionExpressionReturnType)(node, options) || - (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node))) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(info, options, context.sourceCode, loc => context.report({ - node, - loc, - messageId: 'missingReturnType', - })); - } - return { - 'ArrowFunctionExpression, FunctionExpression, FunctionDeclaration': enterFunction, - 'ArrowFunctionExpression:exit': exitFunctionExpression, - 'FunctionExpression:exit': exitFunctionExpression, - 'FunctionDeclaration:exit'(node) { - const info = popFunctionInfo('function declaration'); - if (isAllowedFunction(node)) { - return; - } - if (options.allowTypedFunctionExpressions && node.returnType) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(info, options, context.sourceCode, loc => context.report({ - node, - loc, - messageId: 'missingReturnType', - })); - }, - ReturnStatement(node) { - functionInfoStack.at(-1)?.returns.push(node); - }, - }; - }, -}); -//# sourceMappingURL=explicit-function-return-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map deleted file mode 100644 index 9e1baa27..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAiD;AAEjD,6EAIyC;AAqBzC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;SACjE;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,oDAAoD,EAAE;wBACpD,WAAW,EACT,sEAAsE;wBACxE,IAAI,EAAE,SAAS;qBAChB;oBACD,gBAAgB,EAA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AuB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,CAC/D,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,GAAG;gBACH,SAAS,EAAE,mBAAmB;aAC/B,CAAC,CACH,CAAC;QACJ,CAAC;QAED,OAAO;YACL,kEAAkE,EAChE,aAAa;YACf,8BAA8B,EAAE,sBAAsB;YACtD,yBAAyB,EAAE,sBAAsB;YACjD,0BAA0B,CAAC,IAAI;gBAC7B,MAAM,IAAI,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;gBACrD,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5B,OAAO;gBACT,CAAC;gBACD,IAAI,OAAO,CAAC,6BAA6B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBAC7D,OAAO;gBACT,CAAC;gBAED,IAAA,iDAAuB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,CAC/D,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js deleted file mode 100644 index 2f1dcfcb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +++ /dev/null @@ -1,293 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getMemberHeadLoc_1 = require("../util/getMemberHeadLoc"); -exports.default = (0, util_1.createRule)({ - name: 'explicit-member-accessibility', - meta: { - hasSuggestions: true, - type: 'problem', - docs: { - description: 'Require explicit accessibility modifiers on class properties and methods', - // too opinionated to be recommended - }, - fixable: 'code', - messages: { - missingAccessibility: 'Missing accessibility modifier on {{type}} {{name}}.', - unwantedPublicAccessibility: 'Public accessibility modifier on {{type}} {{name}}.', - addExplicitAccessibility: "Add '{{ type }}' accessibility modifier", - }, - schema: [ - { - $defs: { - accessibilityLevel: { - oneOf: [ - { - type: 'string', - enum: ['explicit'], - description: 'Always require an accessor.', - }, - { - type: 'string', - enum: ['no-public'], - description: 'Require an accessor except when public.', - }, - { - type: 'string', - enum: ['off'], - description: 'Never check whether there is an accessor.', - }, - ], - }, - }, - type: 'object', - properties: { - accessibility: { $ref: '#/items/0/$defs/accessibilityLevel' }, - overrides: { - type: 'object', - properties: { - accessors: { $ref: '#/items/0/$defs/accessibilityLevel' }, - constructors: { $ref: '#/items/0/$defs/accessibilityLevel' }, - methods: { $ref: '#/items/0/$defs/accessibilityLevel' }, - properties: { $ref: '#/items/0/$defs/accessibilityLevel' }, - parameterProperties: { - $ref: '#/items/0/$defs/accessibilityLevel', - }, - }, - additionalProperties: false, - }, - ignoredMethodNames: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{ accessibility: 'explicit' }], - create(context, [option]) { - const baseCheck = option.accessibility ?? 'explicit'; - const overrides = option.overrides ?? {}; - const ctorCheck = overrides.constructors ?? baseCheck; - const accessorCheck = overrides.accessors ?? baseCheck; - const methodCheck = overrides.methods ?? baseCheck; - const propCheck = overrides.properties ?? baseCheck; - const paramPropCheck = overrides.parameterProperties ?? baseCheck; - const ignoredMethodNames = new Set(option.ignoredMethodNames ?? []); - /** - * Checks if a method declaration has an accessibility modifier. - * @param methodDefinition The node representing a MethodDefinition. - */ - function checkMethodAccessibilityModifier(methodDefinition) { - if (methodDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - let nodeType = 'method definition'; - let check = baseCheck; - switch (methodDefinition.kind) { - case 'method': - check = methodCheck; - break; - case 'constructor': - check = ctorCheck; - break; - case 'get': - case 'set': - check = accessorCheck; - nodeType = `${methodDefinition.kind} property accessor`; - break; - } - const { name: methodName } = (0, util_1.getNameFromMember)(methodDefinition, context.sourceCode); - if (check === 'off' || ignoredMethodNames.has(methodName)) { - return; - } - if (check === 'no-public' && - methodDefinition.accessibility === 'public') { - const publicKeyword = findPublicKeyword(methodDefinition); - context.report({ - loc: rangeToLoc(context.sourceCode, publicKeyword.range), - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: methodName, - }, - fix: fixer => fixer.removeRange(publicKeyword.rangeToRemove), - }); - } - else if (check === 'explicit' && !methodDefinition.accessibility) { - context.report({ - loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, methodDefinition), - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: methodName, - }, - suggest: getMissingAccessibilitySuggestions(methodDefinition), - }); - } - } - /** - * Returns an object containing a range that corresponds to the "public" - * keyword for a node, and the range that would need to be removed to - * remove the "public" keyword (including associated whitespace). - */ - function findPublicKeyword(node) { - const tokens = context.sourceCode.getTokens(node); - let rangeToRemove; - let keywordRange; - for (let i = 0; i < tokens.length; i++) { - const token = tokens[i]; - if (token.type === utils_1.AST_TOKEN_TYPES.Keyword && - token.value === 'public') { - keywordRange = structuredClone(token.range); - const commensAfterPublicKeyword = context.sourceCode.getCommentsAfter(token); - if (commensAfterPublicKeyword.length) { - // public /* Hi there! */ static foo() - // ^^^^^^^ - rangeToRemove = [ - token.range[0], - commensAfterPublicKeyword[0].range[0], - ]; - break; - } - else { - // public static foo() - // ^^^^^^^ - rangeToRemove = [token.range[0], tokens[i + 1].range[0]]; - break; - } - } - } - return { range: keywordRange, rangeToRemove }; - } - /** - * Creates a fixer that adds an accessibility modifier keyword - */ - function getMissingAccessibilitySuggestions(node) { - function fix(accessibility, fixer) { - if (node.decorators.length) { - const lastDecorator = node.decorators[node.decorators.length - 1]; - const nextToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(lastDecorator), util_1.NullThrowsReasons.MissingToken('token', 'last decorator')); - return fixer.insertTextBefore(nextToken, `${accessibility} `); - } - return fixer.insertTextBefore(node, `${accessibility} `); - } - return [ - { - messageId: 'addExplicitAccessibility', - data: { type: 'public' }, - fix: fixer => fix('public', fixer), - }, - { - messageId: 'addExplicitAccessibility', - data: { type: 'private' }, - fix: fixer => fix('private', fixer), - }, - { - messageId: 'addExplicitAccessibility', - data: { type: 'protected' }, - fix: fixer => fix('protected', fixer), - }, - ]; - } - /** - * Checks if property has an accessibility modifier. - * @param propertyDefinition The node representing a PropertyDefinition. - */ - function checkPropertyAccessibilityModifier(propertyDefinition) { - if (propertyDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - const nodeType = 'class property'; - const { name: propertyName } = (0, util_1.getNameFromMember)(propertyDefinition, context.sourceCode); - if (propCheck === 'no-public' && - propertyDefinition.accessibility === 'public') { - const publicKeywordRange = findPublicKeyword(propertyDefinition); - context.report({ - loc: rangeToLoc(context.sourceCode, publicKeywordRange.range), - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: propertyName, - }, - fix: fixer => fixer.removeRange(publicKeywordRange.rangeToRemove), - }); - } - else if (propCheck === 'explicit' && - !propertyDefinition.accessibility) { - context.report({ - loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, propertyDefinition), - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: propertyName, - }, - suggest: getMissingAccessibilitySuggestions(propertyDefinition), - }); - } - } - /** - * Checks that the parameter property has the desired accessibility modifiers set. - * @param node The node representing a Parameter Property - */ - function checkParameterPropertyAccessibilityModifier(node) { - const nodeType = 'parameter property'; - // HAS to be an identifier or assignment or TSC will throw - if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && - node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - return; - } - const nodeName = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier - ? node.parameter.name - : // has to be an Identifier or TSC will throw an error - node.parameter.left.name; - switch (paramPropCheck) { - case 'explicit': { - if (!node.accessibility) { - context.report({ - loc: (0, getMemberHeadLoc_1.getParameterPropertyHeadLoc)(context.sourceCode, node, nodeName), - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: nodeName, - }, - suggest: getMissingAccessibilitySuggestions(node), - }); - } - break; - } - case 'no-public': { - if (node.accessibility === 'public' && node.readonly) { - const publicKeyword = findPublicKeyword(node); - context.report({ - loc: rangeToLoc(context.sourceCode, publicKeyword.range), - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: nodeName, - }, - fix: fixer => fixer.removeRange(publicKeyword.rangeToRemove), - }); - } - break; - } - } - } - return { - 'MethodDefinition, TSAbstractMethodDefinition': checkMethodAccessibilityModifier, - 'PropertyDefinition, TSAbstractPropertyDefinition': checkPropertyAccessibilityModifier, - TSParameterProperty: checkParameterPropertyAccessibilityModifier, - }; - }, -}); -function rangeToLoc(sourceCode, range) { - return { - start: sourceCode.getLocFromIndex(range[0]), - end: sourceCode.getLocFromIndex(range[1]), - }; -} -//# sourceMappingURL=explicit-member-accessibility.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map deleted file mode 100644 index f2b9a1b3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAE3E,kCAKiB;AACjB,+DAGkC;AA0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2CAA2C;SACjE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,UAAU,CACjB,UAA+B,EAC/B,KAAyB;IAEzB,OAAO;QACL,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3C,GAAG,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js deleted file mode 100644 index 2475a2e5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +++ /dev/null @@ -1,386 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); -exports.default = (0, util_1.createRule)({ - name: 'explicit-module-boundary-types', - meta: { - type: 'problem', - docs: { - description: "Require explicit return and argument types on exported functions' and classes' public class methods", - }, - messages: { - missingReturnType: 'Missing return type on function.', - missingArgType: "Argument '{{name}}' should be typed.", - missingArgTypeUnnamed: '{{type}} argument should be typed.', - anyTypedArg: "Argument '{{name}}' should be typed with a non-any type.", - anyTypedArgUnnamed: '{{type}} argument should be typed with a non-any type.', - }, - schema: [ - { - type: 'object', - properties: { - allowArgumentsExplicitlyTypedAsAny: { - description: 'Whether to ignore arguments that are explicitly typed as `any`.', - type: 'boolean', - }, - allowDirectConstAssertionInArrowFunctions: { - description: [ - 'Whether to ignore return type annotations on body-less arrow functions that return an `as const` type assertion.', - 'You must still type the parameters of the function.', - ].join('\n'), - type: 'boolean', - }, - allowedNames: { - description: 'An array of function/method names that will not have their arguments or return values checked.', - items: { - type: 'string', - }, - type: 'array', - }, - allowHigherOrderFunctions: { - description: [ - 'Whether to ignore return type annotations on functions immediately returning another function expression.', - 'You must still type the parameters of the function.', - ].join('\n'), - type: 'boolean', - }, - allowTypedFunctionExpressions: { - description: 'Whether to ignore type annotations on the variable of a function expression.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowArgumentsExplicitlyTypedAsAny: false, - allowDirectConstAssertionInArrowFunctions: true, - allowedNames: [], - allowHigherOrderFunctions: true, - allowTypedFunctionExpressions: true, - }, - ], - create(context, [options]) { - // tracks all of the functions we've already checked - const checkedFunctions = new Set(); - const functionStack = []; - const functionReturnsMap = new Map(); - // all nodes visited, avoids infinite recursion for cyclic references - // (such as class member referring to itself) - const alreadyVisited = new Set(); - function getReturnsInFunction(node) { - return functionReturnsMap.get(node) ?? []; - } - function enterFunction(node) { - functionStack.push(node); - functionReturnsMap.set(node, []); - } - function exitFunction() { - functionStack.pop(); - } - /* - # How the rule works: - - As the rule traverses the AST, it immediately checks every single function that it finds is exported. - "exported" means that it is either directly exported, or that its name is exported. - - It also collects a list of every single function it finds on the way, but does not check them. - After it's finished traversing the AST, it then iterates through the list of found functions, and checks to see if - any of them are part of a higher-order function - */ - return { - 'ExportDefaultDeclaration:exit'(node) { - checkNode(node.declaration); - }, - 'ExportNamedDeclaration:not([source]):exit'(node) { - if (node.declaration) { - checkNode(node.declaration); - } - else { - for (const specifier of node.specifiers) { - followReference(specifier.local); - } - } - }, - 'TSExportAssignment:exit'(node) { - checkNode(node.expression); - }, - 'ArrowFunctionExpression, FunctionDeclaration, FunctionExpression': enterFunction, - 'ArrowFunctionExpression:exit': exitFunction, - 'FunctionDeclaration:exit': exitFunction, - 'FunctionExpression:exit': exitFunction, - 'Program:exit'() { - for (const [node, returns] of functionReturnsMap) { - if (isExportedHigherOrderFunction({ node, returns })) { - checkNode(node); - } - } - }, - ReturnStatement(node) { - const current = functionStack[functionStack.length - 1]; - functionReturnsMap.get(current)?.push(node); - }, - }; - function checkParameters(node) { - function checkParameter(param) { - function report(namedMessageId, unnamedMessageId) { - if (param.type === utils_1.AST_NODE_TYPES.Identifier) { - context.report({ - node: param, - messageId: namedMessageId, - data: { name: param.name }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Array pattern' }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Object pattern' }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.RestElement) { - if (param.argument.type === utils_1.AST_NODE_TYPES.Identifier) { - context.report({ - node: param, - messageId: namedMessageId, - data: { name: param.argument.name }, - }); - } - else { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Rest' }, - }); - } - } - } - switch (param.type) { - case utils_1.AST_NODE_TYPES.ArrayPattern: - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.ObjectPattern: - case utils_1.AST_NODE_TYPES.RestElement: - if (!param.typeAnnotation) { - report('missingArgType', 'missingArgTypeUnnamed'); - } - else if (options.allowArgumentsExplicitlyTypedAsAny !== true && - param.typeAnnotation.typeAnnotation.type === - utils_1.AST_NODE_TYPES.TSAnyKeyword) { - report('anyTypedArg', 'anyTypedArgUnnamed'); - } - return; - case utils_1.AST_NODE_TYPES.TSParameterProperty: - return checkParameter(param.parameter); - case utils_1.AST_NODE_TYPES.AssignmentPattern: // ignored as it has a type via its assignment - return; - } - } - for (const arg of node.params) { - checkParameter(arg); - } - } - /** - * Checks if a function name is allowed and should not be checked. - */ - function isAllowedName(node) { - if (!node || !options.allowedNames || options.allowedNames.length === 0) { - return false; - } - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator || - node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration) { - return (node.id?.type === utils_1.AST_NODE_TYPES.Identifier && - options.allowedNames.includes(node.id.name)); - } - else if (node.type === utils_1.AST_NODE_TYPES.MethodDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - (node.type === utils_1.AST_NODE_TYPES.Property && node.method) || - node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { - if (node.key.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.key.value === 'string') { - return options.allowedNames.includes(node.key.value); - } - if (node.key.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - node.key.expressions.length === 0) { - return options.allowedNames.includes(node.key.quasis[0].value.raw); - } - if (!node.computed && node.key.type === utils_1.AST_NODE_TYPES.Identifier) { - return options.allowedNames.includes(node.key.name); - } - } - return false; - } - function isExportedHigherOrderFunction({ node, }) { - let current = node.parent; - while (current) { - if (current.type === utils_1.AST_NODE_TYPES.ReturnStatement) { - // the parent of a return will always be a block statement, so we can skip over it - current = current.parent.parent; - continue; - } - if (!(0, util_1.isFunction)(current)) { - return false; - } - const returns = getReturnsInFunction(current); - if (!(0, explicitReturnTypeUtils_1.doesImmediatelyReturnFunctionExpression)({ node: current, returns })) { - return false; - } - if (checkedFunctions.has(current)) { - return true; - } - current = current.parent; - } - return false; - } - function followReference(node) { - const scope = context.sourceCode.getScope(node); - const variable = scope.set.get(node.name); - /* istanbul ignore if */ if (!variable) { - return; - } - // check all of the definitions - for (const definition of variable.defs) { - // cases we don't care about in this rule - if ([ - scope_manager_1.DefinitionType.ImplicitGlobalVariable, - scope_manager_1.DefinitionType.ImportBinding, - scope_manager_1.DefinitionType.CatchClause, - scope_manager_1.DefinitionType.Parameter, - ].includes(definition.type)) { - continue; - } - checkNode(definition.node); - } - // follow references to find writes to the variable - for (const reference of variable.references) { - if ( - // we don't want to check the initialization ref, as this is handled by the declaration check - !reference.init && - reference.writeExpr) { - checkNode(reference.writeExpr); - } - } - } - function checkNode(node) { - if (node == null || alreadyVisited.has(node)) { - return; - } - alreadyVisited.add(node); - switch (node.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: { - const returns = getReturnsInFunction(node); - return checkFunctionExpression({ node, returns }); - } - case utils_1.AST_NODE_TYPES.ArrayExpression: - for (const element of node.elements) { - checkNode(element); - } - return; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - if (node.accessibility === 'private' || - node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.ClassDeclaration: - case utils_1.AST_NODE_TYPES.ClassExpression: - for (const element of node.body.body) { - checkNode(element); - } - return; - case utils_1.AST_NODE_TYPES.FunctionDeclaration: { - const returns = getReturnsInFunction(node); - return checkFunction({ node, returns }); - } - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - if (node.accessibility === 'private' || - node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.Identifier: - return followReference(node); - case utils_1.AST_NODE_TYPES.ObjectExpression: - for (const property of node.properties) { - checkNode(property); - } - return; - case utils_1.AST_NODE_TYPES.Property: - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression: - return checkEmptyBodyFunctionExpression(node); - case utils_1.AST_NODE_TYPES.VariableDeclaration: - for (const declaration of node.declarations) { - checkNode(declaration); - } - return; - case utils_1.AST_NODE_TYPES.VariableDeclarator: - return checkNode(node.init); - } - } - function checkEmptyBodyFunctionExpression(node) { - const isConstructor = node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.kind === 'constructor'; - const isSetAccessor = (node.parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) && - node.parent.kind === 'set'; - if (!isConstructor && !isSetAccessor && !node.returnType) { - context.report({ - node, - messageId: 'missingReturnType', - }); - } - checkParameters(node); - } - function checkFunctionExpression({ node, returns, }) { - if (checkedFunctions.has(node)) { - return; - } - checkedFunctions.add(node); - if (isAllowedName(node.parent) || - (0, explicitReturnTypeUtils_1.isTypedFunctionExpression)(node, options) || - (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionExpressionReturnType)({ node, returns }, options, context.sourceCode, loc => { - context.report({ - node, - loc, - messageId: 'missingReturnType', - }); - }); - checkParameters(node); - } - function checkFunction({ node, returns, }) { - if (checkedFunctions.has(node)) { - return; - } - checkedFunctions.add(node); - if (isAllowedName(node) || (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)({ node, returns }, options, context.sourceCode, loc => { - context.report({ - node, - loc, - messageId: 'missingReturnType', - }); - }); - checkParameters(node); - } - }, -}); -//# sourceMappingURL=explicit-module-boundary-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map deleted file mode 100644 index 50b73007..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;AAAA,oEAAkE;AAElE,oDAA0D;AAE1D,kCAAiD;AAMjD,6EAMyC;AAkBzC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qGAAqG;SACxG;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;YACrD,cAAc,EAAE,sCAAsC;YACtD,qBAAqB,EAAE,oCAAoC;YAC3D,WAAW,EAAE,0DAA0D;YACvE,kBAAkB,EAChB,wD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CAAC;gBACD,OAAO;YACT,CAAC;YAED,IAAA,2DAAiC,EAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QAED,SAAS,aAAa,CAAC,EACrB,IAAI,EACJ,OAAO,GACoC;YAC3C,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,OAAO;YACT,CAAC;YACD,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YAED,IAAA,iDAAuB,EACrB,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,OAAO,EACP,OAAO,CAAC,UAAU,EAClB,GAAG,CAAC,EAAE;gBACJ,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CACF,CAAC;YAEF,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js deleted file mode 100644 index 0dbe4e87..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +++ /dev/null @@ -1,260 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const adjacent_overload_signatures_1 = __importDefault(require("./adjacent-overload-signatures")); -const array_type_1 = __importDefault(require("./array-type")); -const await_thenable_1 = __importDefault(require("./await-thenable")); -const ban_ts_comment_1 = __importDefault(require("./ban-ts-comment")); -const ban_tslint_comment_1 = __importDefault(require("./ban-tslint-comment")); -const class_literal_property_style_1 = __importDefault(require("./class-literal-property-style")); -const class_methods_use_this_1 = __importDefault(require("./class-methods-use-this")); -const consistent_generic_constructors_1 = __importDefault(require("./consistent-generic-constructors")); -const consistent_indexed_object_style_1 = __importDefault(require("./consistent-indexed-object-style")); -const consistent_return_1 = __importDefault(require("./consistent-return")); -const consistent_type_assertions_1 = __importDefault(require("./consistent-type-assertions")); -const consistent_type_definitions_1 = __importDefault(require("./consistent-type-definitions")); -const consistent_type_exports_1 = __importDefault(require("./consistent-type-exports")); -const consistent_type_imports_1 = __importDefault(require("./consistent-type-imports")); -const default_param_last_1 = __importDefault(require("./default-param-last")); -const dot_notation_1 = __importDefault(require("./dot-notation")); -const explicit_function_return_type_1 = __importDefault(require("./explicit-function-return-type")); -const explicit_member_accessibility_1 = __importDefault(require("./explicit-member-accessibility")); -const explicit_module_boundary_types_1 = __importDefault(require("./explicit-module-boundary-types")); -const init_declarations_1 = __importDefault(require("./init-declarations")); -const max_params_1 = __importDefault(require("./max-params")); -const member_ordering_1 = __importDefault(require("./member-ordering")); -const method_signature_style_1 = __importDefault(require("./method-signature-style")); -const naming_convention_1 = __importDefault(require("./naming-convention")); -const no_array_constructor_1 = __importDefault(require("./no-array-constructor")); -const no_array_delete_1 = __importDefault(require("./no-array-delete")); -const no_base_to_string_1 = __importDefault(require("./no-base-to-string")); -const no_confusing_non_null_assertion_1 = __importDefault(require("./no-confusing-non-null-assertion")); -const no_confusing_void_expression_1 = __importDefault(require("./no-confusing-void-expression")); -const no_dupe_class_members_1 = __importDefault(require("./no-dupe-class-members")); -const no_duplicate_enum_values_1 = __importDefault(require("./no-duplicate-enum-values")); -const no_duplicate_type_constituents_1 = __importDefault(require("./no-duplicate-type-constituents")); -const no_dynamic_delete_1 = __importDefault(require("./no-dynamic-delete")); -const no_empty_function_1 = __importDefault(require("./no-empty-function")); -const no_empty_interface_1 = __importDefault(require("./no-empty-interface")); -const no_empty_object_type_1 = __importDefault(require("./no-empty-object-type")); -const no_explicit_any_1 = __importDefault(require("./no-explicit-any")); -const no_extra_non_null_assertion_1 = __importDefault(require("./no-extra-non-null-assertion")); -const no_extraneous_class_1 = __importDefault(require("./no-extraneous-class")); -const no_floating_promises_1 = __importDefault(require("./no-floating-promises")); -const no_for_in_array_1 = __importDefault(require("./no-for-in-array")); -const no_implied_eval_1 = __importDefault(require("./no-implied-eval")); -const no_import_type_side_effects_1 = __importDefault(require("./no-import-type-side-effects")); -const no_inferrable_types_1 = __importDefault(require("./no-inferrable-types")); -const no_invalid_this_1 = __importDefault(require("./no-invalid-this")); -const no_invalid_void_type_1 = __importDefault(require("./no-invalid-void-type")); -const no_loop_func_1 = __importDefault(require("./no-loop-func")); -const no_loss_of_precision_1 = __importDefault(require("./no-loss-of-precision")); -const no_magic_numbers_1 = __importDefault(require("./no-magic-numbers")); -const no_meaningless_void_operator_1 = __importDefault(require("./no-meaningless-void-operator")); -const no_misused_new_1 = __importDefault(require("./no-misused-new")); -const no_misused_promises_1 = __importDefault(require("./no-misused-promises")); -const no_mixed_enums_1 = __importDefault(require("./no-mixed-enums")); -const no_namespace_1 = __importDefault(require("./no-namespace")); -const no_non_null_asserted_nullish_coalescing_1 = __importDefault(require("./no-non-null-asserted-nullish-coalescing")); -const no_non_null_asserted_optional_chain_1 = __importDefault(require("./no-non-null-asserted-optional-chain")); -const no_non_null_assertion_1 = __importDefault(require("./no-non-null-assertion")); -const no_redeclare_1 = __importDefault(require("./no-redeclare")); -const no_redundant_type_constituents_1 = __importDefault(require("./no-redundant-type-constituents")); -const no_require_imports_1 = __importDefault(require("./no-require-imports")); -const no_restricted_imports_1 = __importDefault(require("./no-restricted-imports")); -const no_restricted_types_1 = __importDefault(require("./no-restricted-types")); -const no_shadow_1 = __importDefault(require("./no-shadow")); -const no_this_alias_1 = __importDefault(require("./no-this-alias")); -const no_type_alias_1 = __importDefault(require("./no-type-alias")); -const no_unnecessary_boolean_literal_compare_1 = __importDefault(require("./no-unnecessary-boolean-literal-compare")); -const no_unnecessary_condition_1 = __importDefault(require("./no-unnecessary-condition")); -const no_unnecessary_parameter_property_assignment_1 = __importDefault(require("./no-unnecessary-parameter-property-assignment")); -const no_unnecessary_qualifier_1 = __importDefault(require("./no-unnecessary-qualifier")); -const no_unnecessary_template_expression_1 = __importDefault(require("./no-unnecessary-template-expression")); -const no_unnecessary_type_arguments_1 = __importDefault(require("./no-unnecessary-type-arguments")); -const no_unnecessary_type_assertion_1 = __importDefault(require("./no-unnecessary-type-assertion")); -const no_unnecessary_type_constraint_1 = __importDefault(require("./no-unnecessary-type-constraint")); -const no_unnecessary_type_parameters_1 = __importDefault(require("./no-unnecessary-type-parameters")); -const no_unsafe_argument_1 = __importDefault(require("./no-unsafe-argument")); -const no_unsafe_assignment_1 = __importDefault(require("./no-unsafe-assignment")); -const no_unsafe_call_1 = __importDefault(require("./no-unsafe-call")); -const no_unsafe_declaration_merging_1 = __importDefault(require("./no-unsafe-declaration-merging")); -const no_unsafe_enum_comparison_1 = __importDefault(require("./no-unsafe-enum-comparison")); -const no_unsafe_function_type_1 = __importDefault(require("./no-unsafe-function-type")); -const no_unsafe_member_access_1 = __importDefault(require("./no-unsafe-member-access")); -const no_unsafe_return_1 = __importDefault(require("./no-unsafe-return")); -const no_unsafe_unary_minus_1 = __importDefault(require("./no-unsafe-unary-minus")); -const no_unused_expressions_1 = __importDefault(require("./no-unused-expressions")); -const no_unused_vars_1 = __importDefault(require("./no-unused-vars")); -const no_use_before_define_1 = __importDefault(require("./no-use-before-define")); -const no_useless_constructor_1 = __importDefault(require("./no-useless-constructor")); -const no_useless_empty_export_1 = __importDefault(require("./no-useless-empty-export")); -const no_var_requires_1 = __importDefault(require("./no-var-requires")); -const no_wrapper_object_types_1 = __importDefault(require("./no-wrapper-object-types")); -const non_nullable_type_assertion_style_1 = __importDefault(require("./non-nullable-type-assertion-style")); -const only_throw_error_1 = __importDefault(require("./only-throw-error")); -const parameter_properties_1 = __importDefault(require("./parameter-properties")); -const prefer_as_const_1 = __importDefault(require("./prefer-as-const")); -const prefer_destructuring_1 = __importDefault(require("./prefer-destructuring")); -const prefer_enum_initializers_1 = __importDefault(require("./prefer-enum-initializers")); -const prefer_find_1 = __importDefault(require("./prefer-find")); -const prefer_for_of_1 = __importDefault(require("./prefer-for-of")); -const prefer_function_type_1 = __importDefault(require("./prefer-function-type")); -const prefer_includes_1 = __importDefault(require("./prefer-includes")); -const prefer_literal_enum_member_1 = __importDefault(require("./prefer-literal-enum-member")); -const prefer_namespace_keyword_1 = __importDefault(require("./prefer-namespace-keyword")); -const prefer_nullish_coalescing_1 = __importDefault(require("./prefer-nullish-coalescing")); -const prefer_optional_chain_1 = __importDefault(require("./prefer-optional-chain")); -const prefer_promise_reject_errors_1 = __importDefault(require("./prefer-promise-reject-errors")); -const prefer_readonly_1 = __importDefault(require("./prefer-readonly")); -const prefer_readonly_parameter_types_1 = __importDefault(require("./prefer-readonly-parameter-types")); -const prefer_reduce_type_parameter_1 = __importDefault(require("./prefer-reduce-type-parameter")); -const prefer_regexp_exec_1 = __importDefault(require("./prefer-regexp-exec")); -const prefer_return_this_type_1 = __importDefault(require("./prefer-return-this-type")); -const prefer_string_starts_ends_with_1 = __importDefault(require("./prefer-string-starts-ends-with")); -const prefer_ts_expect_error_1 = __importDefault(require("./prefer-ts-expect-error")); -const promise_function_async_1 = __importDefault(require("./promise-function-async")); -const require_array_sort_compare_1 = __importDefault(require("./require-array-sort-compare")); -const require_await_1 = __importDefault(require("./require-await")); -const restrict_plus_operands_1 = __importDefault(require("./restrict-plus-operands")); -const restrict_template_expressions_1 = __importDefault(require("./restrict-template-expressions")); -const return_await_1 = __importDefault(require("./return-await")); -const sort_type_constituents_1 = __importDefault(require("./sort-type-constituents")); -const strict_boolean_expressions_1 = __importDefault(require("./strict-boolean-expressions")); -const switch_exhaustiveness_check_1 = __importDefault(require("./switch-exhaustiveness-check")); -const triple_slash_reference_1 = __importDefault(require("./triple-slash-reference")); -const typedef_1 = __importDefault(require("./typedef")); -const unbound_method_1 = __importDefault(require("./unbound-method")); -const unified_signatures_1 = __importDefault(require("./unified-signatures")); -const use_unknown_in_catch_callback_variable_1 = __importDefault(require("./use-unknown-in-catch-callback-variable")); -exports.default = { - 'adjacent-overload-signatures': adjacent_overload_signatures_1.default, - 'array-type': array_type_1.default, - 'await-thenable': await_thenable_1.default, - 'ban-ts-comment': ban_ts_comment_1.default, - 'ban-tslint-comment': ban_tslint_comment_1.default, - 'class-literal-property-style': class_literal_property_style_1.default, - 'class-methods-use-this': class_methods_use_this_1.default, - 'consistent-generic-constructors': consistent_generic_constructors_1.default, - 'consistent-indexed-object-style': consistent_indexed_object_style_1.default, - 'consistent-return': consistent_return_1.default, - 'consistent-type-assertions': consistent_type_assertions_1.default, - 'consistent-type-definitions': consistent_type_definitions_1.default, - 'consistent-type-exports': consistent_type_exports_1.default, - 'consistent-type-imports': consistent_type_imports_1.default, - 'default-param-last': default_param_last_1.default, - 'dot-notation': dot_notation_1.default, - 'explicit-function-return-type': explicit_function_return_type_1.default, - 'explicit-member-accessibility': explicit_member_accessibility_1.default, - 'explicit-module-boundary-types': explicit_module_boundary_types_1.default, - 'init-declarations': init_declarations_1.default, - 'max-params': max_params_1.default, - 'member-ordering': member_ordering_1.default, - 'method-signature-style': method_signature_style_1.default, - 'naming-convention': naming_convention_1.default, - 'no-array-constructor': no_array_constructor_1.default, - 'no-array-delete': no_array_delete_1.default, - 'no-base-to-string': no_base_to_string_1.default, - 'no-confusing-non-null-assertion': no_confusing_non_null_assertion_1.default, - 'no-confusing-void-expression': no_confusing_void_expression_1.default, - 'no-dupe-class-members': no_dupe_class_members_1.default, - 'no-duplicate-enum-values': no_duplicate_enum_values_1.default, - 'no-duplicate-type-constituents': no_duplicate_type_constituents_1.default, - 'no-dynamic-delete': no_dynamic_delete_1.default, - 'no-empty-function': no_empty_function_1.default, - 'no-empty-interface': no_empty_interface_1.default, - 'no-empty-object-type': no_empty_object_type_1.default, - 'no-explicit-any': no_explicit_any_1.default, - 'no-extra-non-null-assertion': no_extra_non_null_assertion_1.default, - 'no-extraneous-class': no_extraneous_class_1.default, - 'no-floating-promises': no_floating_promises_1.default, - 'no-for-in-array': no_for_in_array_1.default, - 'no-implied-eval': no_implied_eval_1.default, - 'no-import-type-side-effects': no_import_type_side_effects_1.default, - 'no-inferrable-types': no_inferrable_types_1.default, - 'no-invalid-this': no_invalid_this_1.default, - 'no-invalid-void-type': no_invalid_void_type_1.default, - 'no-loop-func': no_loop_func_1.default, - 'no-loss-of-precision': no_loss_of_precision_1.default, - 'no-magic-numbers': no_magic_numbers_1.default, - 'no-meaningless-void-operator': no_meaningless_void_operator_1.default, - 'no-misused-new': no_misused_new_1.default, - 'no-misused-promises': no_misused_promises_1.default, - 'no-mixed-enums': no_mixed_enums_1.default, - 'no-namespace': no_namespace_1.default, - 'no-non-null-asserted-nullish-coalescing': no_non_null_asserted_nullish_coalescing_1.default, - 'no-non-null-asserted-optional-chain': no_non_null_asserted_optional_chain_1.default, - 'no-non-null-assertion': no_non_null_assertion_1.default, - 'no-redeclare': no_redeclare_1.default, - 'no-redundant-type-constituents': no_redundant_type_constituents_1.default, - 'no-require-imports': no_require_imports_1.default, - 'no-restricted-imports': no_restricted_imports_1.default, - 'no-restricted-types': no_restricted_types_1.default, - 'no-shadow': no_shadow_1.default, - 'no-this-alias': no_this_alias_1.default, - 'no-type-alias': no_type_alias_1.default, - 'no-unnecessary-boolean-literal-compare': no_unnecessary_boolean_literal_compare_1.default, - 'no-unnecessary-condition': no_unnecessary_condition_1.default, - 'no-unnecessary-parameter-property-assignment': no_unnecessary_parameter_property_assignment_1.default, - 'no-unnecessary-qualifier': no_unnecessary_qualifier_1.default, - 'no-unnecessary-template-expression': no_unnecessary_template_expression_1.default, - 'no-unnecessary-type-arguments': no_unnecessary_type_arguments_1.default, - 'no-unnecessary-type-assertion': no_unnecessary_type_assertion_1.default, - 'no-unnecessary-type-constraint': no_unnecessary_type_constraint_1.default, - 'no-unnecessary-type-parameters': no_unnecessary_type_parameters_1.default, - 'no-unsafe-argument': no_unsafe_argument_1.default, - 'no-unsafe-assignment': no_unsafe_assignment_1.default, - 'no-unsafe-call': no_unsafe_call_1.default, - 'no-unsafe-declaration-merging': no_unsafe_declaration_merging_1.default, - 'no-unsafe-enum-comparison': no_unsafe_enum_comparison_1.default, - 'no-unsafe-function-type': no_unsafe_function_type_1.default, - 'no-unsafe-member-access': no_unsafe_member_access_1.default, - 'no-unsafe-return': no_unsafe_return_1.default, - 'no-unsafe-unary-minus': no_unsafe_unary_minus_1.default, - 'no-unused-expressions': no_unused_expressions_1.default, - 'no-unused-vars': no_unused_vars_1.default, - 'no-use-before-define': no_use_before_define_1.default, - 'no-useless-constructor': no_useless_constructor_1.default, - 'no-useless-empty-export': no_useless_empty_export_1.default, - 'no-var-requires': no_var_requires_1.default, - 'no-wrapper-object-types': no_wrapper_object_types_1.default, - 'non-nullable-type-assertion-style': non_nullable_type_assertion_style_1.default, - 'only-throw-error': only_throw_error_1.default, - 'parameter-properties': parameter_properties_1.default, - 'prefer-as-const': prefer_as_const_1.default, - 'prefer-destructuring': prefer_destructuring_1.default, - 'prefer-enum-initializers': prefer_enum_initializers_1.default, - 'prefer-find': prefer_find_1.default, - 'prefer-for-of': prefer_for_of_1.default, - 'prefer-function-type': prefer_function_type_1.default, - 'prefer-includes': prefer_includes_1.default, - 'prefer-literal-enum-member': prefer_literal_enum_member_1.default, - 'prefer-namespace-keyword': prefer_namespace_keyword_1.default, - 'prefer-nullish-coalescing': prefer_nullish_coalescing_1.default, - 'prefer-optional-chain': prefer_optional_chain_1.default, - 'prefer-promise-reject-errors': prefer_promise_reject_errors_1.default, - 'prefer-readonly': prefer_readonly_1.default, - 'prefer-readonly-parameter-types': prefer_readonly_parameter_types_1.default, - 'prefer-reduce-type-parameter': prefer_reduce_type_parameter_1.default, - 'prefer-regexp-exec': prefer_regexp_exec_1.default, - 'prefer-return-this-type': prefer_return_this_type_1.default, - 'prefer-string-starts-ends-with': prefer_string_starts_ends_with_1.default, - 'prefer-ts-expect-error': prefer_ts_expect_error_1.default, - 'promise-function-async': promise_function_async_1.default, - 'require-array-sort-compare': require_array_sort_compare_1.default, - 'require-await': require_await_1.default, - 'restrict-plus-operands': restrict_plus_operands_1.default, - 'restrict-template-expressions': restrict_template_expressions_1.default, - 'return-await': return_await_1.default, - 'sort-type-constituents': sort_type_constituents_1.default, - 'strict-boolean-expressions': strict_boolean_expressions_1.default, - 'switch-exhaustiveness-check': switch_exhaustiveness_check_1.default, - 'triple-slash-reference': triple_slash_reference_1.default, - typedef: typedef_1.default, - 'unbound-method': unbound_method_1.default, - 'unified-signatures': unified_signatures_1.default, - 'use-unknown-in-catch-callback-variable': use_unknown_in_catch_callback_variable_1.default, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map deleted file mode 100644 index 0ae3c2b6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;AAEA,kGAAwE;AACxE,8DAAqC;AACrC,sEAA6C;AAC7C,sEAA4C;AAC5C,8EAAoD;AACpD,kGAAuE;AACvE,sFAA2D;AAC3D,wGAA8E;AAC9E,wGAA6E;AAC7E,4EAAmD;AACnD,8FAAoE;AACpE,gGAAsE;AACtE,wFAA8D;AAC9D,wFAA8D;AAC9D,8EAAoD;AACpD,kEAAyC;AACzC,oGAAyE;AACzE,oGAA0E;AAC1E,sGAA2E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Y;IAC7B,wBAAwB,EAAE,gCAAoB;IAC9C,+BAA+B,EAAE,uCAA2B;IAC5D,cAAc,EAAE,sBAAW;IAC3B,wBAAwB,EAAE,gCAAoB;IAC9C,4BAA4B,EAAE,oCAAwB;IACtD,6BAA6B,EAAE,qCAAyB;IACxD,wBAAwB,EAAE,gCAAoB;IAC9C,OAAO,EAAE,iBAAO;IAChB,gBAAgB,EAAE,wBAAa;IAC/B,oBAAoB,EAAE,4BAAiB;IACvC,wCAAwC,EAAE,gDAAiC;CAC/C,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js deleted file mode 100644 index 858d5f7f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('init-declarations'); -exports.default = (0, util_1.createRule)({ - name: 'init-declarations', - meta: { - type: 'suggestion', - docs: { - description: 'Require or disallow initialization in variable declarations', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: ['always'], - create(context, [mode]) { - // Make a custom context to adjust the the loc of reports where the base - // rule's behavior is a bit too aggressive with TS-specific syntax (namely, - // type annotations). - function getBaseContextOverride() { - const reportOverride = descriptor => { - if ('node' in descriptor && descriptor.loc == null) { - const { node, ...rest } = descriptor; - // We only want to special case the report loc when reporting on - // variables declarations that are not initialized. Declarations that - // _are_ initialized get reported by the base rule due to a setting to - // prohibit initializing variables entirely, in which case underlining - // the whole node including the type annotation and initializer is - // appropriate. - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator && - node.init == null) { - context.report({ - ...rest, - loc: getReportLoc(node), - }); - return; - } - } - context.report(descriptor); - }; - // `return { ...context, report: reportOverride }` isn't safe because the - // `context` object has some getters that need to be preserved. - // - // `return new Proxy(context, ...)` doesn't work because `context` has - // non-configurable properties that throw when constructing a Proxy. - // - // So, we'll just use Proxy on a dummy object and use the `get` trap to - // proxy `context`'s properties. - return new Proxy({}, { - get: (target, prop, receiver) => prop === 'report' - ? reportOverride - : Reflect.get(context, prop, receiver), - }); - } - const rules = baseRule.create(getBaseContextOverride()); - return { - 'VariableDeclaration:exit'(node) { - if (mode === 'always') { - if (node.declare) { - return; - } - if (isAncestorNamespaceDeclared(node)) { - return; - } - } - rules['VariableDeclaration:exit'](node); - }, - }; - function isAncestorNamespaceDeclared(node) { - let ancestor = node.parent; - while (ancestor) { - if (ancestor.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - ancestor.declare) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - }, -}); -/** - * When reporting an uninitialized variable declarator, get the loc excluding - * the type annotation. - */ -function getReportLoc(node) { - const start = structuredClone(node.loc.start); - const end = { - line: node.loc.start.line, - // `if (id.type === AST_NODE_TYPES.Identifier)` is a condition for - // reporting in the base rule (as opposed to things like destructuring - // assignment), so the type assertion should always be valid. - column: node.loc.start.column + node.id.name.length, - }; - return { - start, - end, - }; -} -//# sourceMappingURL=init-declarations.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map deleted file mode 100644 index 751615d4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"init-declarations.js","sourceRoot":"","sources":["../../src/rules/init-declarations.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ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AC,GAAG,CAAC,KAAK,CAAC,IAAI;QACzB,kEAAkE;QAClE,sEAAsE;QACtE,6DAA6D;QAC7D,MAAM,EACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAI,IAAI,CAAC,EAA0B,CAAC,IAAI,CAAC,MAAM;KACvE,CAAC;IAEF,OAAO;QACL,KAAK;QACL,GAAG;KACJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js deleted file mode 100644 index f9a1dfe0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('max-params'); -exports.default = (0, util_1.createRule)({ - name: 'max-params', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce a maximum number of parameters in function definitions', - extendsBaseRule: true, - }, - schema: [ - { - type: 'object', - properties: { - maximum: { - type: 'integer', - minimum: 0, - }, - max: { - type: 'integer', - minimum: 0, - }, - countVoidThis: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: baseRule.meta.messages, - }, - defaultOptions: [{ max: 3, countVoidThis: false }], - create(context, [{ countVoidThis }]) { - const baseRules = baseRule.create(context); - if (countVoidThis === true) { - return baseRules; - } - const removeVoidThisParam = (node) => { - if (node.params.length === 0 || - node.params[0].type !== utils_1.AST_NODE_TYPES.Identifier || - node.params[0].name !== 'this' || - node.params[0].typeAnnotation?.typeAnnotation.type !== - utils_1.AST_NODE_TYPES.TSVoidKeyword) { - return node; - } - return { - ...node, - params: node.params.slice(1), - }; - }; - const wrapListener = (listener) => { - return (node) => { - listener(removeVoidThisParam(node)); - }; - }; - return { - ArrowFunctionExpression: wrapListener(baseRules.ArrowFunctionExpression), - FunctionDeclaration: wrapListener(baseRules.FunctionDeclaration), - FunctionExpression: wrapListener(baseRules.FunctionExpression), - }; - }, -}); -//# sourceMappingURL=max-params.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map deleted file mode 100644 index db9c4e8f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"max-params.js","sourceRoot":"","sources":["../../src/rules/max-params.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAS9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,YAAY,CAAC,CAAC;AAKjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,CAAC;qBACX;oBACD,GAAG,EAAE;wBACH,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,CAAC;qBACX;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IAElD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC;QACjC,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3C,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;YAC3B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,mBAAmB,GAAG,CAAyB,IAAO,EAAK,EAAE;YACjE,IACE,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC;gBACxB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACjD,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM;gBAC9B,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,cAAc,CAAC,IAAI;oBAChD,sBAAc,CAAC,aAAa,EAC9B,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO;gBACL,GAAG,IAAI;gBACP,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;aAC7B,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,YAAY,GAAG,CACnB,QAAiC,EACR,EAAE;YAC3B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;YACtC,CAAC,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL,uBAAuB,EAAE,YAAY,CAAC,SAAS,CAAC,uBAAuB,CAAC;YACxE,mBAAmB,EAAE,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC;YAChE,kBAAkB,EAAE,YAAY,CAAC,SAAS,CAAC,kBAAkB,CAAC;SAC/D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js deleted file mode 100644 index ecee2cca..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +++ /dev/null @@ -1,822 +0,0 @@ -"use strict"; -// This rule was feature-frozen before we enabled no-property-in-node. -/* eslint-disable eslint-plugin/no-property-in-node */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultOrder = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const natural_compare_1 = __importDefault(require("natural-compare")); -const util_1 = require("../util"); -const neverConfig = { - type: 'string', - enum: ['never'], -}; -const arrayConfig = (memberTypes) => ({ - type: 'array', - items: { - oneOf: [ - { - $ref: memberTypes, - }, - { - type: 'array', - items: { - $ref: memberTypes, - }, - }, - ], - }, -}); -const objectConfig = (memberTypes) => ({ - type: 'object', - properties: { - memberTypes: { - oneOf: [arrayConfig(memberTypes), neverConfig], - }, - order: { - $ref: '#/items/0/$defs/orderOptions', - }, - optionalityOrder: { - $ref: '#/items/0/$defs/optionalityOrderOptions', - }, - }, - additionalProperties: false, -}); -exports.defaultOrder = [ - // Index signature - 'signature', - 'call-signature', - // Fields - 'public-static-field', - 'protected-static-field', - 'private-static-field', - '#private-static-field', - 'public-decorated-field', - 'protected-decorated-field', - 'private-decorated-field', - 'public-instance-field', - 'protected-instance-field', - 'private-instance-field', - '#private-instance-field', - 'public-abstract-field', - 'protected-abstract-field', - 'public-field', - 'protected-field', - 'private-field', - '#private-field', - 'static-field', - 'instance-field', - 'abstract-field', - 'decorated-field', - 'field', - // Static initialization - 'static-initialization', - // Constructors - 'public-constructor', - 'protected-constructor', - 'private-constructor', - 'constructor', - // Accessors - 'public-static-accessor', - 'protected-static-accessor', - 'private-static-accessor', - '#private-static-accessor', - 'public-decorated-accessor', - 'protected-decorated-accessor', - 'private-decorated-accessor', - 'public-instance-accessor', - 'protected-instance-accessor', - 'private-instance-accessor', - '#private-instance-accessor', - 'public-abstract-accessor', - 'protected-abstract-accessor', - 'public-accessor', - 'protected-accessor', - 'private-accessor', - '#private-accessor', - 'static-accessor', - 'instance-accessor', - 'abstract-accessor', - 'decorated-accessor', - 'accessor', - // Getters - 'public-static-get', - 'protected-static-get', - 'private-static-get', - '#private-static-get', - 'public-decorated-get', - 'protected-decorated-get', - 'private-decorated-get', - 'public-instance-get', - 'protected-instance-get', - 'private-instance-get', - '#private-instance-get', - 'public-abstract-get', - 'protected-abstract-get', - 'public-get', - 'protected-get', - 'private-get', - '#private-get', - 'static-get', - 'instance-get', - 'abstract-get', - 'decorated-get', - 'get', - // Setters - 'public-static-set', - 'protected-static-set', - 'private-static-set', - '#private-static-set', - 'public-decorated-set', - 'protected-decorated-set', - 'private-decorated-set', - 'public-instance-set', - 'protected-instance-set', - 'private-instance-set', - '#private-instance-set', - 'public-abstract-set', - 'protected-abstract-set', - 'public-set', - 'protected-set', - 'private-set', - '#private-set', - 'static-set', - 'instance-set', - 'abstract-set', - 'decorated-set', - 'set', - // Methods - 'public-static-method', - 'protected-static-method', - 'private-static-method', - '#private-static-method', - 'public-decorated-method', - 'protected-decorated-method', - 'private-decorated-method', - 'public-instance-method', - 'protected-instance-method', - 'private-instance-method', - '#private-instance-method', - 'public-abstract-method', - 'protected-abstract-method', - 'public-method', - 'protected-method', - 'private-method', - '#private-method', - 'static-method', - 'instance-method', - 'abstract-method', - 'decorated-method', - 'method', -]; -const allMemberTypes = Array.from([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'call-signature', - 'constructor', - 'accessor', - 'get', - 'set', - 'static-initialization', -].reduce((all, type) => { - all.add(type); - ['public', 'protected', 'private', '#private'].forEach(accessibility => { - if (type !== 'readonly-signature' && - type !== 'signature' && - type !== 'static-initialization' && - type !== 'call-signature' && - !(type === 'constructor' && accessibility === '#private')) { - all.add(`${accessibility}-${type}`); // e.g. `public-field` - } - // Only class instance fields, methods, accessors, get and set can have decorators attached to them - if (accessibility !== '#private' && - (type === 'readonly-field' || - type === 'field' || - type === 'method' || - type === 'accessor' || - type === 'get' || - type === 'set')) { - all.add(`${accessibility}-decorated-${type}`); - all.add(`decorated-${type}`); - } - if (type !== 'constructor' && - type !== 'readonly-signature' && - type !== 'signature' && - type !== 'call-signature') { - // There is no `static-constructor` or `instance-constructor` or `abstract-constructor` - if (accessibility === '#private' || accessibility === 'private') { - ['static', 'instance'].forEach(scope => { - all.add(`${scope}-${type}`); - all.add(`${accessibility}-${scope}-${type}`); - }); - } - else { - ['static', 'instance', 'abstract'].forEach(scope => { - all.add(`${scope}-${type}`); - all.add(`${accessibility}-${scope}-${type}`); - }); - } - } - }); - return all; -}, new Set())); -const functionExpressions = [ - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, -]; -/** - * Gets the node type. - * - * @param node the node to be evaluated. - */ -function getNodeType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - return node.kind; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return 'call-signature'; - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'constructor'; - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.TSPropertySignature: - return node.readonly ? 'readonly-field' : 'field'; - case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: - case utils_1.AST_NODE_TYPES.AccessorProperty: - return 'accessor'; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return node.value && functionExpressions.includes(node.value.type) - ? 'method' - : node.readonly - ? 'readonly-field' - : 'field'; - case utils_1.AST_NODE_TYPES.TSIndexSignature: - return node.readonly ? 'readonly-signature' : 'signature'; - case utils_1.AST_NODE_TYPES.StaticBlock: - return 'static-initialization'; - default: - return null; - } -} -/** - * Gets the raw string value of a member's name - */ -function getMemberRawName(member, sourceCode) { - const { name, type } = (0, util_1.getNameFromMember)(member, sourceCode); - if (type === util_1.MemberNameType.Quoted) { - return name.slice(1, -1); - } - if (type === util_1.MemberNameType.Private) { - return name.slice(1); - } - return name; -} -/** - * Gets the member name based on the member type. - * - * @param node the node to be evaluated. - */ -function getMemberName(node, sourceCode) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSPropertySignature: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.AccessorProperty: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return getMemberRawName(node, sourceCode); - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - return node.kind === 'constructor' - ? 'constructor' - : getMemberRawName(node, sourceCode); - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'new'; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return 'call'; - case utils_1.AST_NODE_TYPES.TSIndexSignature: - return (0, util_1.getNameFromIndexSignature)(node); - case utils_1.AST_NODE_TYPES.StaticBlock: - return 'static block'; - default: - return null; - } -} -/** - * Returns true if the member is optional based on the member type. - * - * @param node the node to be evaluated. - * - * @returns Whether the member is optional, or false if it cannot be optional at all. - */ -function isMemberOptional(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSPropertySignature: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - case utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty: - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.AccessorProperty: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - return !!node.optional; - } - return false; -} -/** - * Gets the calculated rank using the provided method definition. - * The algorithm is as follows: - * - Get the rank based on the accessibility-scope-type name, e.g. public-instance-field - * - If there is no order for accessibility-scope-type, then strip out the accessibility. - * - If there is no order for scope-type, then strip out the scope. - * - If there is no order for type, then return -1 - * @param memberGroups the valid names to be validated. - * @param orderConfig the current order to be validated. - * - * @return Index of the matching member type in the order configuration. - */ -function getRankOrder(memberGroups, orderConfig) { - let rank = -1; - const stack = memberGroups.slice(); // Get a copy of the member groups - while (stack.length > 0 && rank === -1) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const memberGroup = stack.shift(); - rank = orderConfig.findIndex(memberType => Array.isArray(memberType) - ? memberType.includes(memberGroup) - : memberType === memberGroup); - } - return rank; -} -function getAccessibility(node) { - if ('accessibility' in node && node.accessibility) { - return node.accessibility; - } - if ('key' in node && node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return '#private'; - } - return 'public'; -} -/** - * Gets the rank of the node given the order. - * @param node the node to be evaluated. - * @param orderConfig the current order to be validated. - * @param supportsModifiers a flag indicating whether the type supports modifiers (scope or accessibility) or not. - */ -function getRank(node, orderConfig, supportsModifiers) { - const type = getNodeType(node); - if (type == null) { - // shouldn't happen but just in case, put it on the end - return orderConfig.length - 1; - } - const abstract = node.type === utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty || - node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition; - const scope = 'static' in node && node.static - ? 'static' - : abstract - ? 'abstract' - : 'instance'; - const accessibility = getAccessibility(node); - // Collect all existing member groups that apply to this node... - // (e.g. 'public-instance-field', 'instance-field', 'public-field', 'constructor' etc.) - const memberGroups = []; - if (supportsModifiers) { - const decorated = 'decorators' in node && node.decorators.length > 0; - if (decorated && - (type === 'readonly-field' || - type === 'field' || - type === 'method' || - type === 'accessor' || - type === 'get' || - type === 'set')) { - memberGroups.push(`${accessibility}-decorated-${type}`); - memberGroups.push(`decorated-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-decorated-field`); - memberGroups.push(`decorated-field`); - } - } - if (type !== 'readonly-signature' && - type !== 'signature' && - type !== 'static-initialization') { - if (type !== 'constructor') { - // Constructors have no scope - memberGroups.push(`${accessibility}-${scope}-${type}`); - memberGroups.push(`${scope}-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-${scope}-field`); - memberGroups.push(`${scope}-field`); - } - } - memberGroups.push(`${accessibility}-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-field`); - } - } - } - memberGroups.push(type); - if (type === 'readonly-signature') { - memberGroups.push('signature'); - } - else if (type === 'readonly-field') { - memberGroups.push('field'); - } - // ...then get the rank order for those member groups based on the node - return getRankOrder(memberGroups, orderConfig); -} -/** - * Groups members into arrays of consecutive members with the same rank. - * If, for example, the memberSet parameter looks like the following... - * @example - * ``` - * interface Foo { - * [a: string]: number; - * - * a: x; - * B: x; - * c: x; - * - * c(): void; - * B(): void; - * a(): void; - * - * (): Baz; - * - * new (): Bar; - * } - * ``` - * ...the resulting array will look like: [[a, B, c], [c, B, a]]. - * @param memberSet The members to be grouped. - * @param memberType The configured order of member types. - * @param supportsModifiers It'll get passed to getRank(). - * @returns The array of groups of members. - */ -function groupMembersByType(members, memberTypes, supportsModifiers) { - const groupedMembers = []; - const memberRanks = members.map(member => getRank(member, memberTypes, supportsModifiers)); - let previousRank = undefined; - members.forEach((member, index) => { - if (index === members.length - 1) { - return; - } - const rankOfCurrentMember = memberRanks[index]; - const rankOfNextMember = memberRanks[index + 1]; - if (rankOfCurrentMember === previousRank) { - groupedMembers.at(-1)?.push(member); - } - else if (rankOfCurrentMember === rankOfNextMember) { - groupedMembers.push([member]); - previousRank = rankOfCurrentMember; - } - }); - return groupedMembers; -} -/** - * Gets the lowest possible rank(s) higher than target. - * e.g. given the following order: - * ... - * public-static-method - * protected-static-method - * private-static-method - * public-instance-method - * protected-instance-method - * private-instance-method - * ... - * and considering that a public-instance-method has already been declared, so ranks contains - * public-instance-method, then the lowest possible rank for public-static-method is - * public-instance-method. - * If a lowest possible rank is a member group, a comma separated list of ranks is returned. - * @param ranks the existing ranks in the object. - * @param target the minimum target rank to filter on. - * @param order the current order to be validated. - * @returns the name(s) of the lowest possible rank without dashes (-). - */ -function getLowestRank(ranks, target, order) { - let lowest = ranks[ranks.length - 1]; - ranks.forEach(rank => { - if (rank > target) { - lowest = Math.min(lowest, rank); - } - }); - const lowestRank = order[lowest]; - const lowestRanks = Array.isArray(lowestRank) ? lowestRank : [lowestRank]; - return lowestRanks.map(rank => rank.replace(/-/g, ' ')).join(', '); -} -exports.default = (0, util_1.createRule)({ - name: 'member-ordering', - meta: { - type: 'suggestion', - docs: { - description: 'Require a consistent member declaration order', - }, - messages: { - incorrectOrder: 'Member {{member}} should be declared before member {{beforeMember}}.', - incorrectGroupOrder: 'Member {{name}} should be declared before all {{rank}} definitions.', - incorrectRequiredMembersOrder: `Member {{member}} should be declared after all {{optionalOrRequired}} members.`, - }, - schema: [ - { - $defs: { - orderOptions: { - type: 'string', - enum: [ - 'alphabetically', - 'alphabetically-case-insensitive', - 'as-written', - 'natural', - 'natural-case-insensitive', - ], - }, - optionalityOrderOptions: { - type: 'string', - enum: ['optional-first', 'required-first'], - }, - allItems: { - type: 'string', - enum: allMemberTypes, - }, - typeItems: { - type: 'string', - enum: [ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'constructor', - ], - }, - baseConfig: { - oneOf: [ - neverConfig, - arrayConfig('#/items/0/$defs/allItems'), - objectConfig('#/items/0/$defs/allItems'), - ], - }, - typesConfig: { - oneOf: [ - neverConfig, - arrayConfig('#/items/0/$defs/typeItems'), - objectConfig('#/items/0/$defs/typeItems'), - ], - }, - }, - type: 'object', - properties: { - default: { - $ref: '#/items/0/$defs/baseConfig', - }, - classes: { - $ref: '#/items/0/$defs/baseConfig', - }, - classExpressions: { - $ref: '#/items/0/$defs/baseConfig', - }, - interfaces: { - $ref: '#/items/0/$defs/typesConfig', - }, - typeLiterals: { - $ref: '#/items/0/$defs/typesConfig', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - default: { - memberTypes: exports.defaultOrder, - }, - }, - ], - create(context, [options]) { - /** - * Checks if the member groups are correctly sorted. - * - * @param members Members to be validated. - * @param groupOrder Group order to be validated. - * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. - * - * @return Array of member groups or null if one of the groups is not correctly sorted. - */ - function checkGroupSort(members, groupOrder, supportsModifiers) { - const previousRanks = []; - const memberGroups = []; - let isCorrectlySorted = true; - // Find first member which isn't correctly sorted - for (const member of members) { - const rank = getRank(member, groupOrder, supportsModifiers); - const name = getMemberName(member, context.sourceCode); - const rankLastMember = previousRanks[previousRanks.length - 1]; - if (rank === -1) { - continue; - } - // Works for 1st item because x < undefined === false for any x (typeof string) - if (rank < rankLastMember) { - context.report({ - node: member, - messageId: 'incorrectGroupOrder', - data: { - name, - rank: getLowestRank(previousRanks, rank, groupOrder), - }, - }); - isCorrectlySorted = false; - } - else if (rank === rankLastMember) { - // Same member group --> Push to existing member group array - memberGroups[memberGroups.length - 1].push(member); - } - else { - // New member group --> Create new member group array - previousRanks.push(rank); - memberGroups.push([member]); - } - } - return isCorrectlySorted ? memberGroups : null; - } - /** - * Checks if the members are alphabetically sorted. - * - * @param members Members to be validated. - * @param order What order the members should be sorted in. - * - * @return True if all members are correctly sorted. - */ - function checkAlphaSort(members, order) { - let previousName = ''; - let isCorrectlySorted = true; - // Find first member which isn't correctly sorted - members.forEach(member => { - const name = getMemberName(member, context.sourceCode); - // Note: Not all members have names - if (name) { - if (naturalOutOfOrder(name, previousName, order)) { - context.report({ - node: member, - messageId: 'incorrectOrder', - data: { - member: name, - beforeMember: previousName, - }, - }); - isCorrectlySorted = false; - } - previousName = name; - } - }); - return isCorrectlySorted; - } - function naturalOutOfOrder(name, previousName, order) { - if (name === previousName) { - return false; - } - switch (order) { - case 'alphabetically': - return name < previousName; - case 'alphabetically-case-insensitive': - return name.toLowerCase() < previousName.toLowerCase(); - case 'natural': - return (0, natural_compare_1.default)(name, previousName) !== 1; - case 'natural-case-insensitive': - return ((0, natural_compare_1.default)(name.toLowerCase(), previousName.toLowerCase()) !== 1); - } - } - /** - * Checks if the order of optional and required members is correct based - * on the given 'required' parameter. - * - * @param members Members to be validated. - * @param optionalityOrder Where to place optional members, if not intermixed. - * - * @return True if all required and optional members are correctly sorted. - */ - function checkRequiredOrder(members, optionalityOrder) { - const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); - const report = (member) => context.report({ - messageId: 'incorrectRequiredMembersOrder', - loc: member.loc, - data: { - member: getMemberName(member, context.sourceCode), - optionalOrRequired: optionalityOrder === 'required-first' ? 'required' : 'optional', - }, - }); - // if the optionality of the first item is correct (based on optionalityOrder) - // then the first 0 inclusive to switchIndex exclusive members all - // have the correct optionality - if (isMemberOptional(members[0]) !== - (optionalityOrder === 'optional-first')) { - report(members[0]); - return false; - } - for (let i = switchIndex + 1; i < members.length; i++) { - if (isMemberOptional(members[i]) !== - isMemberOptional(members[switchIndex])) { - report(members[switchIndex]); - return false; - } - } - return true; - } - /** - * Validates if all members are correctly sorted. - * - * @param members Members to be validated. - * @param orderConfig Order config to be validated. - * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. - */ - function validateMembersOrder(members, orderConfig, supportsModifiers) { - if (orderConfig === 'never') { - return; - } - // Standardize config - let order; - let memberTypes; - let optionalityOrder; - /** - * It runs an alphabetic sort on the groups of the members of the class in the source code. - * @param memberSet The members in the class of the source code on which the grouping operation will be performed. - */ - const checkAlphaSortForAllMembers = (memberSet) => { - const hasAlphaSort = !!(order && order !== 'as-written'); - if (hasAlphaSort && Array.isArray(memberTypes)) { - groupMembersByType(memberSet, memberTypes, supportsModifiers).forEach(members => { - checkAlphaSort(members, order); - }); - } - }; - // returns true if everything is good and false if an error was reported - const checkOrder = (memberSet) => { - const hasAlphaSort = !!(order && order !== 'as-written'); - // Check order - if (Array.isArray(memberTypes)) { - const grouped = checkGroupSort(memberSet, memberTypes, supportsModifiers); - if (grouped == null) { - checkAlphaSortForAllMembers(members); - return false; - } - if (hasAlphaSort) { - grouped.map(groupMember => checkAlphaSort(groupMember, order)); - } - } - else if (hasAlphaSort) { - return checkAlphaSort(memberSet, order); - } - return false; - }; - if (Array.isArray(orderConfig)) { - memberTypes = orderConfig; - } - else { - order = orderConfig.order; - memberTypes = orderConfig.memberTypes; - optionalityOrder = orderConfig.optionalityOrder; - } - if (!optionalityOrder) { - checkOrder(members); - return; - } - const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); - if (switchIndex !== -1) { - if (!checkRequiredOrder(members, optionalityOrder)) { - return; - } - checkOrder(members.slice(0, switchIndex)); - checkOrder(members.slice(switchIndex)); - } - else { - checkOrder(members); - } - } - // https://github.com/typescript-eslint/typescript-eslint/issues/5439 - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - return { - 'ClassDeclaration, FunctionDeclaration'(node) { - if ('superClass' in node) { - // ... - } - }, - ClassDeclaration(node) { - validateMembersOrder(node.body.body, options.classes ?? options.default, true); - }, - ClassExpression(node) { - validateMembersOrder(node.body.body, options.classExpressions ?? options.default, true); - }, - TSInterfaceDeclaration(node) { - validateMembersOrder(node.body.body, options.interfaces ?? options.default, false); - }, - TSTypeLiteral(node) { - validateMembersOrder(node.members, options.typeLiterals ?? options.default, false); - }, - }; - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - }, -}); -//# sourceMappingURL=member-ordering.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map deleted file mode 100644 index ab571ab9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"member-ordering.js","sourceRoot":"","sources":["../../src/rules/member-ordering.ts"],"names":[],"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,CAClB,IAAI,CAAC,OAAO,EACZ,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,OAAQ,EACxC,KAAK,CACN,CAAC;YACJ,CAAC;SACF,CAAC;QACF,4DAA4D;IAC9D,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js deleted file mode 100644 index e5b57ce7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +++ /dev/null @@ -1,177 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'method-signature-style', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using a particular method signature syntax', - }, - fixable: 'code', - messages: { - errorMethod: 'Shorthand method signature is forbidden. Use a function property instead.', - errorProperty: 'Function property signature is forbidden. Use a method shorthand instead.', - }, - schema: [ - { - type: 'string', - enum: ['property', 'method'], - }, - ], - }, - defaultOptions: ['property'], - create(context, [mode]) { - function getMethodKey(node) { - let key = context.sourceCode.getText(node.key); - if (node.computed) { - key = `[${key}]`; - } - if (node.optional) { - key = `${key}?`; - } - if (node.readonly) { - key = `readonly ${key}`; - } - return key; - } - function getMethodParams(node) { - let params = '()'; - if (node.params.length > 0) { - const openingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.params[0], util_1.isOpeningParenToken), 'Missing opening paren before first parameter'); - const closingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.params[node.params.length - 1], util_1.isClosingParenToken), 'Missing closing paren after last parameter'); - params = context.sourceCode.text.substring(openingParen.range[0], closingParen.range[1]); - } - if (node.typeParameters != null) { - const typeParams = context.sourceCode.getText(node.typeParameters); - params = `${typeParams}${params}`; - } - return params; - } - function getMethodReturnType(node) { - return node.returnType == null - ? // if the method has no return type, it implicitly has an `any` return type - // we just make it explicit here so we can do the fix - 'any' - : context.sourceCode.getText(node.returnType.typeAnnotation); - } - function getDelimiter(node) { - const lastToken = context.sourceCode.getLastToken(node); - if (lastToken && - ((0, util_1.isSemicolonToken)(lastToken) || (0, util_1.isCommaToken)(lastToken))) { - return lastToken.value; - } - return ''; - } - function isNodeParentModuleDeclaration(node) { - if (!node.parent) { - return false; - } - if (node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { - return true; - } - if (node.parent.type === utils_1.AST_NODE_TYPES.Program) { - return false; - } - return isNodeParentModuleDeclaration(node.parent); - } - return { - ...(mode === 'property' && { - TSMethodSignature(methodNode) { - if (methodNode.kind !== 'method') { - return; - } - const parent = methodNode.parent; - const members = parent.type === utils_1.AST_NODE_TYPES.TSInterfaceBody - ? parent.body - : parent.members; - const duplicatedKeyMethodNodes = members.filter((element) => element.type === utils_1.AST_NODE_TYPES.TSMethodSignature && - element !== methodNode && - getMethodKey(element) === getMethodKey(methodNode)); - const isParentModule = isNodeParentModuleDeclaration(methodNode); - if (duplicatedKeyMethodNodes.length > 0) { - if (isParentModule) { - context.report({ - node: methodNode, - messageId: 'errorMethod', - }); - } - else { - context.report({ - node: methodNode, - messageId: 'errorMethod', - *fix(fixer) { - const methodNodes = [ - methodNode, - ...duplicatedKeyMethodNodes, - ].sort((a, b) => (a.range[0] < b.range[0] ? -1 : 1)); - const typeString = methodNodes - .map(node => { - const params = getMethodParams(node); - const returnType = getMethodReturnType(node); - return `(${params} => ${returnType})`; - }) - .join(' & '); - const key = getMethodKey(methodNode); - const delimiter = getDelimiter(methodNode); - yield fixer.replaceText(methodNode, `${key}: ${typeString}${delimiter}`); - for (const node of duplicatedKeyMethodNodes) { - const lastToken = context.sourceCode.getLastToken(node); - if (lastToken) { - const nextToken = context.sourceCode.getTokenAfter(lastToken); - if (nextToken) { - yield fixer.remove(node); - yield fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], ''); - } - } - } - }, - }); - } - return; - } - if (isParentModule) { - context.report({ - node: methodNode, - messageId: 'errorMethod', - }); - } - else { - context.report({ - node: methodNode, - messageId: 'errorMethod', - fix: fixer => { - const key = getMethodKey(methodNode); - const params = getMethodParams(methodNode); - const returnType = getMethodReturnType(methodNode); - const delimiter = getDelimiter(methodNode); - return fixer.replaceText(methodNode, `${key}: ${params} => ${returnType}${delimiter}`); - }, - }); - } - }, - }), - ...(mode === 'method' && { - TSPropertySignature(propertyNode) { - const typeNode = propertyNode.typeAnnotation?.typeAnnotation; - if (typeNode?.type !== utils_1.AST_NODE_TYPES.TSFunctionType) { - return; - } - context.report({ - node: propertyNode, - messageId: 'errorProperty', - fix: fixer => { - const key = getMethodKey(propertyNode); - const params = getMethodParams(typeNode); - const returnType = getMethodReturnType(typeNode); - const delimiter = getDelimiter(propertyNode); - return fixer.replaceText(propertyNode, `${key}${params}: ${returnType}${delimiter}`); - }, - }); - }, - }), - }; - }, -}); -//# sourceMappingURL=method-signature-style.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map deleted file mode 100644 index 3519c519..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"method-signature-style.js","sourceRoot":"","sources":["../../src/rules/method-signature-style.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAOiB;AAKjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;SAClE;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,WAAW,EACT,2EAA2E;YAC7E,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,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AG,MAAM,KAAK,UAAU,GAAG,SAAS,EAAE,CAC7C,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js deleted file mode 100644 index 244fcdc1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnderscoreOptions = exports.TypeModifiers = exports.Selectors = exports.PredefinedFormats = exports.Modifiers = exports.MetaSelectors = void 0; -var PredefinedFormats; -(function (PredefinedFormats) { - PredefinedFormats[PredefinedFormats["camelCase"] = 1] = "camelCase"; - PredefinedFormats[PredefinedFormats["strictCamelCase"] = 2] = "strictCamelCase"; - PredefinedFormats[PredefinedFormats["PascalCase"] = 3] = "PascalCase"; - PredefinedFormats[PredefinedFormats["StrictPascalCase"] = 4] = "StrictPascalCase"; - PredefinedFormats[PredefinedFormats["snake_case"] = 5] = "snake_case"; - PredefinedFormats[PredefinedFormats["UPPER_CASE"] = 6] = "UPPER_CASE"; -})(PredefinedFormats || (exports.PredefinedFormats = PredefinedFormats = {})); -var UnderscoreOptions; -(function (UnderscoreOptions) { - UnderscoreOptions[UnderscoreOptions["forbid"] = 1] = "forbid"; - UnderscoreOptions[UnderscoreOptions["allow"] = 2] = "allow"; - UnderscoreOptions[UnderscoreOptions["require"] = 3] = "require"; - // special cases as it's common practice to use double underscore - UnderscoreOptions[UnderscoreOptions["requireDouble"] = 4] = "requireDouble"; - UnderscoreOptions[UnderscoreOptions["allowDouble"] = 5] = "allowDouble"; - UnderscoreOptions[UnderscoreOptions["allowSingleOrDouble"] = 6] = "allowSingleOrDouble"; -})(UnderscoreOptions || (exports.UnderscoreOptions = UnderscoreOptions = {})); -var Selectors; -(function (Selectors) { - // variableLike - Selectors[Selectors["variable"] = 1] = "variable"; - Selectors[Selectors["function"] = 2] = "function"; - Selectors[Selectors["parameter"] = 4] = "parameter"; - // memberLike - Selectors[Selectors["parameterProperty"] = 8] = "parameterProperty"; - Selectors[Selectors["classicAccessor"] = 16] = "classicAccessor"; - Selectors[Selectors["enumMember"] = 32] = "enumMember"; - Selectors[Selectors["classMethod"] = 64] = "classMethod"; - Selectors[Selectors["objectLiteralMethod"] = 128] = "objectLiteralMethod"; - Selectors[Selectors["typeMethod"] = 256] = "typeMethod"; - Selectors[Selectors["classProperty"] = 512] = "classProperty"; - Selectors[Selectors["objectLiteralProperty"] = 1024] = "objectLiteralProperty"; - Selectors[Selectors["typeProperty"] = 2048] = "typeProperty"; - Selectors[Selectors["autoAccessor"] = 4096] = "autoAccessor"; - // typeLike - Selectors[Selectors["class"] = 8192] = "class"; - Selectors[Selectors["interface"] = 16384] = "interface"; - Selectors[Selectors["typeAlias"] = 32768] = "typeAlias"; - Selectors[Selectors["enum"] = 65536] = "enum"; - Selectors[Selectors["typeParameter"] = 131072] = "typeParameter"; - // other - Selectors[Selectors["import"] = 262144] = "import"; -})(Selectors || (exports.Selectors = Selectors = {})); -var MetaSelectors; -(function (MetaSelectors) { - /* eslint-disable @typescript-eslint/prefer-literal-enum-member */ - MetaSelectors[MetaSelectors["default"] = -1] = "default"; - MetaSelectors[MetaSelectors["variableLike"] = 7] = "variableLike"; - MetaSelectors[MetaSelectors["memberLike"] = 8184] = "memberLike"; - MetaSelectors[MetaSelectors["typeLike"] = 253952] = "typeLike"; - MetaSelectors[MetaSelectors["method"] = 448] = "method"; - MetaSelectors[MetaSelectors["property"] = 3584] = "property"; - MetaSelectors[MetaSelectors["accessor"] = 4112] = "accessor"; - /* eslint-enable @typescript-eslint/prefer-literal-enum-member */ -})(MetaSelectors || (exports.MetaSelectors = MetaSelectors = {})); -var Modifiers; -(function (Modifiers) { - // const variable - Modifiers[Modifiers["const"] = 1] = "const"; - // readonly members - Modifiers[Modifiers["readonly"] = 2] = "readonly"; - // static members - Modifiers[Modifiers["static"] = 4] = "static"; - // member accessibility - Modifiers[Modifiers["public"] = 8] = "public"; - Modifiers[Modifiers["protected"] = 16] = "protected"; - Modifiers[Modifiers["private"] = 32] = "private"; - Modifiers[Modifiers["#private"] = 64] = "#private"; - Modifiers[Modifiers["abstract"] = 128] = "abstract"; - // destructured variable - Modifiers[Modifiers["destructured"] = 256] = "destructured"; - // variables declared in the top-level scope - Modifiers[Modifiers["global"] = 512] = "global"; - // things that are exported - Modifiers[Modifiers["exported"] = 1024] = "exported"; - // things that are unused - Modifiers[Modifiers["unused"] = 2048] = "unused"; - // properties that require quoting - Modifiers[Modifiers["requiresQuotes"] = 4096] = "requiresQuotes"; - // class members that are overridden - Modifiers[Modifiers["override"] = 8192] = "override"; - // class methods, object function properties, or functions that are async via the `async` keyword - Modifiers[Modifiers["async"] = 16384] = "async"; - // default imports - Modifiers[Modifiers["default"] = 32768] = "default"; - // namespace imports - Modifiers[Modifiers["namespace"] = 65536] = "namespace"; - // make sure TypeModifiers starts at Modifiers + 1 or else sorting won't work -})(Modifiers || (exports.Modifiers = Modifiers = {})); -var TypeModifiers; -(function (TypeModifiers) { - TypeModifiers[TypeModifiers["boolean"] = 131072] = "boolean"; - TypeModifiers[TypeModifiers["string"] = 262144] = "string"; - TypeModifiers[TypeModifiers["number"] = 524288] = "number"; - TypeModifiers[TypeModifiers["function"] = 1048576] = "function"; - TypeModifiers[TypeModifiers["array"] = 2097152] = "array"; -})(TypeModifiers || (exports.TypeModifiers = TypeModifiers = {})); -//# sourceMappingURL=enums.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map deleted file mode 100644 index d2fd9843..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,iBAOJ;AAPD,WAAK,iBAAiB;IACpB,mEAAa,CAAA;IACb,+EAAe,CAAA;IACf,qEAAU,CAAA;IACV,iFAAgB,CAAA;IAChB,qEAAU,CAAA;IACV,qEAAU,CAAA;AACZ,CAAC,EAPI,iBAAiB,iCAAjB,iBAAiB,QAOrB;AAGD,IAAK,iBASJ;AATD,WAAK,iBAAiB;IACpB,6DAAU,CAAA;IACV,2DAAK,CAAA;IACL,+DAAO,CAAA;IAEP,iEAAiE;IACjE,2EAAa,CAAA;IACb,uEAAW,CAAA;IACX,uFAAmB,CAAA;AACrB,CAAC,EATI,iBAAiB,iCAAjB,iBAAiB,QASrB;AAGD,IAAK,SA2BJ;AA3BD,WAAK,SAAS;IACZ,eAAe;IACf,iDAAiB,CAAA;IACjB,iDAAiB,CAAA;IACjB,mDAAkB,CAAA;IAElB,aAAa;IACb,mEAA0B,CAAA;IAC1B,gEAAwB,CAAA;IACxB,sDAAmB,CAAA;IACnB,wDAAoB,CAAA;IACpB,yEAA4B,CAAA;IAC5B,uDAAmB,CAAA;IACnB,6DAAsB,CAAA;IACtB,8EAA+B,CAAA;IAC/B,4DAAsB,CAAA;IACtB,4DAAsB,CAAA;IAEtB,WAAW;IACX,8CAAe,CAAA;IACf,uDAAmB,CAAA;IACnB,uDAAmB,CAAA;IACnB,6CAAc,CAAA;IACd,gEAAuB,CAAA;IAEvB,QAAQ;IACR,kDAAgB,CAAA;AAClB,CAAC,EA3BI,SAAS,yBAAT,SAAS,QA2Bb;AAGD,IAAK,aAkCJ;AAlCD,WAAK,aAAa;IAChB,kEAAkE;IAClE,wDAAY,CAAA;IACZ,iEAGqB,CAAA;IACrB,gEAUwB,CAAA;IACxB,8DAKyB,CAAA;IACzB,uDAGsB,CAAA;IACtB,4DAGwB,CAAA;IACxB,4DAAiE,CAAA;IACjE,iEAAiE;AACnE,CAAC,EAlCI,aAAa,6BAAb,aAAa,QAkCjB;AAID,IAAK,SAiCJ;AAjCD,WAAK,SAAS;IACZ,iBAAiB;IACjB,2CAAc,CAAA;IACd,mBAAmB;IACnB,iDAAiB,CAAA;IACjB,iBAAiB;IACjB,6CAAe,CAAA;IACf,uBAAuB;IACvB,6CAAe,CAAA;IACf,oDAAkB,CAAA;IAClB,gDAAgB,CAAA;IAChB,kDAAmB,CAAA;IACnB,mDAAiB,CAAA;IACjB,wBAAwB;IACxB,2DAAqB,CAAA;IACrB,4CAA4C;IAC5C,+CAAe,CAAA;IACf,2BAA2B;IAC3B,oDAAkB,CAAA;IAClB,yBAAyB;IACzB,gDAAgB,CAAA;IAChB,kCAAkC;IAClC,gEAAwB,CAAA;IACxB,oCAAoC;IACpC,oDAAkB,CAAA;IAClB,iGAAiG;IACjG,+CAAe,CAAA;IACf,kBAAkB;IAClB,mDAAiB,CAAA;IACjB,oBAAoB;IACpB,uDAAmB,CAAA;IAEnB,6EAA6E;AAC/E,CAAC,EAjCI,SAAS,yBAAT,SAAS,QAiCb;AAGD,IAAK,aAMJ;AAND,WAAK,aAAa;IAChB,4DAAiB,CAAA;IACjB,0DAAgB,CAAA;IAChB,0DAAgB,CAAA;IAChB,+DAAkB,CAAA;IAClB,yDAAe,CAAA;AACjB,CAAC,EANI,aAAa,6BAAb,aAAa,QAMjB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js deleted file mode 100644 index ae4c3b28..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PredefinedFormatToCheckFunction = void 0; -const enums_1 = require("./enums"); -/* -These format functions are taken from `tslint-consistent-codestyle/naming-convention`: -https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/rules/namingConventionRule.ts#L603-L645 - -The license for the code can be viewed here: -https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/LICENSE -*/ -/* -Why not regex here? Because it's actually really, really difficult to create a regex to handle -all of the unicode cases, and we have many non-english users that use non-english characters. -https://gist.github.com/mathiasbynens/6334847 -*/ -function isPascalCase(name) { - return (name.length === 0 || - (name[0] === name[0].toUpperCase() && !name.includes('_'))); -} -function isStrictPascalCase(name) { - return (name.length === 0 || - (name[0] === name[0].toUpperCase() && hasStrictCamelHumps(name, true))); -} -function isCamelCase(name) { - return (name.length === 0 || - (name[0] === name[0].toLowerCase() && !name.includes('_'))); -} -function isStrictCamelCase(name) { - return (name.length === 0 || - (name[0] === name[0].toLowerCase() && hasStrictCamelHumps(name, false))); -} -function hasStrictCamelHumps(name, isUpper) { - function isUppercaseChar(char) { - return char === char.toUpperCase() && char !== char.toLowerCase(); - } - if (name.startsWith('_')) { - return false; - } - for (let i = 1; i < name.length; ++i) { - if (name[i] === '_') { - return false; - } - if (isUpper === isUppercaseChar(name[i])) { - if (isUpper) { - return false; - } - } - else { - isUpper = !isUpper; - } - } - return true; -} -function isSnakeCase(name) { - return (name.length === 0 || - (name === name.toLowerCase() && validateUnderscores(name))); -} -function isUpperCase(name) { - return (name.length === 0 || - (name === name.toUpperCase() && validateUnderscores(name))); -} -/** Check for leading trailing and adjacent underscores */ -function validateUnderscores(name) { - if (name.startsWith('_')) { - return false; - } - let wasUnderscore = false; - for (let i = 1; i < name.length; ++i) { - if (name[i] === '_') { - if (wasUnderscore) { - return false; - } - wasUnderscore = true; - } - else { - wasUnderscore = false; - } - } - return !wasUnderscore; -} -const PredefinedFormatToCheckFunction = { - [enums_1.PredefinedFormats.PascalCase]: isPascalCase, - [enums_1.PredefinedFormats.StrictPascalCase]: isStrictPascalCase, - [enums_1.PredefinedFormats.camelCase]: isCamelCase, - [enums_1.PredefinedFormats.strictCamelCase]: isStrictCamelCase, - [enums_1.PredefinedFormats.UPPER_CASE]: isUpperCase, - [enums_1.PredefinedFormats.snake_case]: isSnakeCase, -}; -exports.PredefinedFormatToCheckFunction = PredefinedFormatToCheckFunction; -//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map deleted file mode 100644 index 3cea30a0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/format.ts"],"names":[],"mappings":";;;AAAA,mCAA4C;AAE5C;;;;;;EAME;AAEF;;;;EAIE;AAEF,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC;AACD,SAAS,kBAAkB,CAAC,IAAY;IACtC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACvE,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CA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,CAAC,CAC3D,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC;AAED,0DAA0D;AAC1D,SAAS,mBAAmB,CAAC,IAAY;IACvC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,aAAa,GAAG,KAAK,CAAC;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QACrC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YACpB,IAAI,aAAa,EAAE,CAAC;gBAClB,OAAO,KAAK,CAAC;YACf,CAAC;YACD,aAAa,GAAG,IAAI,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,aAAa,GAAG,KAAK,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,CAAC,aAAa,CAAC;AACxB,CAAC;AAED,MAAM,+BAA+B,GAEjC;IACF,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,YAAY;IAC5C,CAAC,yBAAiB,CAAC,gBAAgB,CAAC,EAAE,kBAAkB;IACxD,CAAC,yBAAiB,CAAC,SAAS,CAAC,EAAE,WAAW;IAC1C,CAAC,yBAAiB,CAAC,eAAe,CAAC,EAAE,iBAAiB;IACtD,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;IAC3C,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEO,0EAA+B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js deleted file mode 100644 index e75eef61..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseOptions = exports.selectorTypeToMessageString = exports.SCHEMA = exports.Modifiers = void 0; -var enums_1 = require("./enums"); -Object.defineProperty(exports, "Modifiers", { enumerable: true, get: function () { return enums_1.Modifiers; } }); -var schema_1 = require("./schema"); -Object.defineProperty(exports, "SCHEMA", { enumerable: true, get: function () { return schema_1.SCHEMA; } }); -var shared_1 = require("./shared"); -Object.defineProperty(exports, "selectorTypeToMessageString", { enumerable: true, get: function () { return shared_1.selectorTypeToMessageString; } }); -var parse_options_1 = require("./parse-options"); -Object.defineProperty(exports, "parseOptions", { enumerable: true, get: function () { return parse_options_1.parseOptions; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map deleted file mode 100644 index a307155b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AAA3B,kGAAA,SAAS,OAAA;AAGlB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAuD;AAA9C,qHAAA,2BAA2B,OAAA;AACpC,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js deleted file mode 100644 index 9a645058..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseOptions = parseOptions; -const util_1 = require("../../util"); -const enums_1 = require("./enums"); -const shared_1 = require("./shared"); -const validator_1 = require("./validator"); -function normalizeOption(option) { - let weight = 0; - option.modifiers?.forEach(mod => { - weight |= enums_1.Modifiers[mod]; - }); - option.types?.forEach(mod => { - weight |= enums_1.TypeModifiers[mod]; - }); - // give selectors with a filter the _highest_ priority - if (option.filter) { - weight |= 1 << 30; - } - const normalizedOption = { - // format options - format: option.format ? option.format.map(f => enums_1.PredefinedFormats[f]) : null, - custom: option.custom - ? { - regex: new RegExp(option.custom.regex, 'u'), - match: option.custom.match, - } - : null, - leadingUnderscore: option.leadingUnderscore !== undefined - ? enums_1.UnderscoreOptions[option.leadingUnderscore] - : null, - trailingUnderscore: option.trailingUnderscore !== undefined - ? enums_1.UnderscoreOptions[option.trailingUnderscore] - : null, - prefix: option.prefix && option.prefix.length > 0 ? option.prefix : null, - suffix: option.suffix && option.suffix.length > 0 ? option.suffix : null, - modifiers: option.modifiers?.map(m => enums_1.Modifiers[m]) ?? null, - types: option.types?.map(m => enums_1.TypeModifiers[m]) ?? null, - filter: option.filter !== undefined - ? typeof option.filter === 'string' - ? { - regex: new RegExp(option.filter, 'u'), - match: true, - } - : { - regex: new RegExp(option.filter.regex, 'u'), - match: option.filter.match, - } - : null, - // calculated ordering weight based on modifiers - modifierWeight: weight, - }; - const selectors = Array.isArray(option.selector) - ? option.selector - : [option.selector]; - return selectors.map(selector => ({ - selector: (0, shared_1.isMetaSelector)(selector) - ? enums_1.MetaSelectors[selector] - : enums_1.Selectors[selector], - ...normalizedOption, - })); -} -function parseOptions(context) { - const normalizedOptions = context.options.flatMap(normalizeOption); - const result = (0, util_1.getEnumNames)(enums_1.Selectors).reduce((acc, k) => { - acc[k] = (0, validator_1.createValidator)(k, context, normalizedOptions); - return acc; - // eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter - }, {}); - return result; -} -//# sourceMappingURL=parse-options.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map deleted file mode 100644 index 0ffe9140..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-options.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/parse-options.ts"],"names":[],"mappings":";;AA6FS,oCAAY;AA7FrB,qCAA0C;AAC1C,mCAOiB;AACjB,qCAA0C;AAO1C,2CAA8C;AAE9C,SAAS,eAAe,CAAC,MAAgB;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,iBAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,qBAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,sDAAsD;IACtD,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAED,MAAM,gBAAgB,GAAG;QACvB,iBAAiB;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;QAC3E,MAAM,EAAE,MAAM,CAAC,MAAM;YACnB,CAAC,CAA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,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC;oBAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;iBAC3B;YACL,CAAC,CAAC,IAAI;QACV,gDAAgD;QAChD,cAAc,EAAE,MAAM;KACvB,CAAC;IAEF,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC9C,CAAC,CAAC,MAAM,CAAC,QAAQ;QACjB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEtB,OAAO,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChC,QAAQ,EAAE,IAAA,uBAAc,EAAC,QAAQ,CAAC;YAChC,CAAC,CAAC,qBAAa,CAAC,QAAQ,CAAC;YACzB,CAAC,CAAC,iBAAS,CAAC,QAAQ,CAAC;QACvB,GAAG,gBAAgB;KACpB,CAAC,CAAC,CAAC;AACN,CAAC;AAED,SAAS,YAAY,CAAC,OAAgB;IACpC,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC,iBAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACvD,GAAG,CAAC,CAAC,CAAC,GAAG,IAAA,2BAAe,EAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;QACxD,OAAO,GAAG,CAAC;QACX,2EAA2E;IAC7E,CAAC,EAAE,EAAmB,CAAC,CAAC;IAExB,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js deleted file mode 100644 index 9b8a8adb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +++ /dev/null @@ -1,307 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SCHEMA = void 0; -const util_1 = require("../../util"); -const enums_1 = require("./enums"); -const $DEFS = { - // enums - underscoreOptions: { - type: 'string', - enum: (0, util_1.getEnumNames)(enums_1.UnderscoreOptions), - }, - predefinedFormats: { - type: 'string', - enum: (0, util_1.getEnumNames)(enums_1.PredefinedFormats), - }, - typeModifiers: { - type: 'string', - enum: (0, util_1.getEnumNames)(enums_1.TypeModifiers), - }, - // repeated types - prefixSuffixConfig: { - type: 'array', - items: { - type: 'string', - minLength: 1, - }, - additionalItems: false, - }, - matchRegexConfig: { - type: 'object', - additionalProperties: false, - properties: { - match: { type: 'boolean' }, - regex: { type: 'string' }, - }, - required: ['match', 'regex'], - }, - formatOptionsConfig: { - oneOf: [ - { - type: 'array', - items: { - $ref: '#/$defs/predefinedFormats', - }, - additionalItems: false, - }, - { - type: 'null', - }, - ], - }, -}; -const UNDERSCORE_SCHEMA = { - $ref: '#/$defs/underscoreOptions', -}; -const PREFIX_SUFFIX_SCHEMA = { - $ref: '#/$defs/prefixSuffixConfig', -}; -const MATCH_REGEX_SCHEMA = { - $ref: '#/$defs/matchRegexConfig', -}; -const FORMAT_OPTIONS_PROPERTIES = { - format: { - $ref: '#/$defs/formatOptionsConfig', - }, - custom: MATCH_REGEX_SCHEMA, - leadingUnderscore: UNDERSCORE_SCHEMA, - trailingUnderscore: UNDERSCORE_SCHEMA, - prefix: PREFIX_SUFFIX_SCHEMA, - suffix: PREFIX_SUFFIX_SCHEMA, - failureMessage: { - type: 'string', - }, -}; -function selectorSchema(selectorString, allowType, modifiers) { - const selector = { - filter: { - oneOf: [ - { - type: 'string', - minLength: 1, - }, - MATCH_REGEX_SCHEMA, - ], - }, - selector: { - type: 'string', - enum: [selectorString], - }, - }; - if (modifiers && modifiers.length > 0) { - selector.modifiers = { - type: 'array', - items: { - type: 'string', - enum: modifiers, - }, - additionalItems: false, - }; - } - if (allowType) { - selector.types = { - type: 'array', - items: { - $ref: '#/$defs/typeModifiers', - }, - additionalItems: false, - }; - } - return [ - { - type: 'object', - description: `Selector '${selectorString}'`, - properties: { - ...FORMAT_OPTIONS_PROPERTIES, - ...selector, - }, - required: ['selector', 'format'], - additionalProperties: false, - }, - ]; -} -function selectorsSchema() { - return { - type: 'object', - description: 'Multiple selectors in one config', - properties: { - ...FORMAT_OPTIONS_PROPERTIES, - filter: { - oneOf: [ - { - type: 'string', - minLength: 1, - }, - MATCH_REGEX_SCHEMA, - ], - }, - selector: { - type: 'array', - items: { - type: 'string', - enum: [...(0, util_1.getEnumNames)(enums_1.MetaSelectors), ...(0, util_1.getEnumNames)(enums_1.Selectors)], - }, - additionalItems: false, - }, - modifiers: { - type: 'array', - items: { - type: 'string', - enum: (0, util_1.getEnumNames)(enums_1.Modifiers), - }, - additionalItems: false, - }, - types: { - type: 'array', - items: { - $ref: '#/$defs/typeModifiers', - }, - additionalItems: false, - }, - }, - required: ['selector', 'format'], - additionalProperties: false, - }; -} -const SCHEMA = { - $defs: $DEFS, - type: 'array', - items: { - oneOf: [ - selectorsSchema(), - ...selectorSchema('default', false, (0, util_1.getEnumNames)(enums_1.Modifiers)), - ...selectorSchema('variableLike', false, ['unused', 'async']), - ...selectorSchema('variable', true, [ - 'const', - 'destructured', - 'exported', - 'global', - 'unused', - 'async', - ]), - ...selectorSchema('function', false, [ - 'exported', - 'global', - 'unused', - 'async', - ]), - ...selectorSchema('parameter', true, ['destructured', 'unused']), - ...selectorSchema('memberLike', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('classProperty', true, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('objectLiteralProperty', true, [ - 'public', - 'requiresQuotes', - ]), - ...selectorSchema('typeProperty', true, [ - 'public', - 'readonly', - 'requiresQuotes', - ]), - ...selectorSchema('parameterProperty', true, [ - 'private', - 'protected', - 'public', - 'readonly', - ]), - ...selectorSchema('property', true, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('classMethod', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('objectLiteralMethod', false, [ - 'public', - 'requiresQuotes', - 'async', - ]), - ...selectorSchema('typeMethod', false, ['public', 'requiresQuotes']), - ...selectorSchema('method', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('classicAccessor', true, [ - 'abstract', - 'private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('autoAccessor', true, [ - 'abstract', - 'private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('accessor', true, [ - 'abstract', - 'private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('enumMember', false, ['requiresQuotes']), - ...selectorSchema('typeLike', false, ['abstract', 'exported', 'unused']), - ...selectorSchema('class', false, ['abstract', 'exported', 'unused']), - ...selectorSchema('interface', false, ['exported', 'unused']), - ...selectorSchema('typeAlias', false, ['exported', 'unused']), - ...selectorSchema('enum', false, ['exported', 'unused']), - ...selectorSchema('typeParameter', false, ['unused']), - ...selectorSchema('import', false, ['default', 'namespace']), - ], - }, - additionalItems: false, -}; -exports.SCHEMA = SCHEMA; -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map deleted file mode 100644 index 4ac1804a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/schema.ts"],"names":[],"mappings":";;;AAEA,qCAA0C;AAK1C,mCAOiB;AAEjB,MAAM,KAAK,GAA2C;IACpD,QAAQ;IACR,iBAAiB,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,IAAA,mBAAY,EAAC,yBAAiB,CAAC;KACtC;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,IAAA,mBAAY,EAAC,yBAAiB,CAAC;KACtC;IACD,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,IAAA,mBAAY,EAAC,qBAAa,CAAC;KAClC;IAED,iBAAiB;IACjB,kBAAkB,EAAE;QAClB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,eAAe,EAAE,KAAK;KACvB;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC1B;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAC7B;IACD,mBAAmB,EAAE;QACnB,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,2BAA2B;iBAClC;gBACD,eAAe,EAAE,KAAK;aACvB;YACD;gBACE,IAAI,EAAE,MAAM;aACb;SACF;KACF;CACF,CAAC;AAEF,MAAM,iBAAiB,GAA2B;IAChD,IAAI,EAAE,2BAA2B;CAClC,CAAC;AACF,MAAM,oBAAoB,GAA2B;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UAAU,EAAE,QAAQ,CAAC,CAAC;YACrE,GAAG,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAC7D,GAAG,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YAC7D,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;YACxD,GAAG,cAAc,CAAC,eAAe,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YACrD,GAAG,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;SAC7D;KACF;IACD,eAAe,EAAE,KAAK;CACvB,CAAC;AAEO,wBAAM"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js deleted file mode 100644 index 3e7bd692..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.selectorTypeToMessageString = selectorTypeToMessageString; -exports.isMetaSelector = isMetaSelector; -exports.isMethodOrPropertySelector = isMethodOrPropertySelector; -const enums_1 = require("./enums"); -function selectorTypeToMessageString(selectorType) { - const notCamelCase = selectorType.replace(/([A-Z])/g, ' $1'); - return notCamelCase.charAt(0).toUpperCase() + notCamelCase.slice(1); -} -function isMetaSelector(selector) { - return selector in enums_1.MetaSelectors; -} -function isMethodOrPropertySelector(selector) { - return (selector === enums_1.MetaSelectors.method || selector === enums_1.MetaSelectors.property); -} -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map deleted file mode 100644 index c642a504..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/shared.ts"],"names":[],"mappings":";;AA4BE,kEAA2B;AAC3B,wCAAc;AACd,gEAA0B;AAxB5B,mCAAwC;AAExC,SAAS,2BAA2B,CAAC,YAA6B;IAChE,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7D,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,cAAc,CACrB,QAAsE;IAEtE,OAAO,QAAQ,IAAI,qBAAa,CAAC;AACnC,CAAC;AAED,SAAS,0BAA0B,CACjC,QAAsE;IAEtE,OAAO,CACL,QAAQ,KAAK,qBAAa,CAAC,MAAM,IAAI,QAAQ,KAAK,qBAAa,CAAC,QAAQ,CACzE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map deleted file mode 100644 index 60c24d81..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js deleted file mode 100644 index 4bf253a9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +++ /dev/null @@ -1,350 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createValidator = createValidator; -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../../util"); -const enums_1 = require("./enums"); -const format_1 = require("./format"); -const shared_1 = require("./shared"); -function createValidator(type, context, allConfigs) { - // make sure the "highest priority" configs are checked first - const selectorType = enums_1.Selectors[type]; - const configs = allConfigs - // gather all of the applicable selectors - .filter(c => (c.selector & selectorType) !== 0 || - c.selector === enums_1.MetaSelectors.default) - .sort((a, b) => { - if (a.selector === b.selector) { - // in the event of the same selector, order by modifier weight - // sort descending - the type modifiers are "more important" - return b.modifierWeight - a.modifierWeight; - } - const aIsMeta = (0, shared_1.isMetaSelector)(a.selector); - const bIsMeta = (0, shared_1.isMetaSelector)(b.selector); - // non-meta selectors should go ahead of meta selectors - if (aIsMeta && !bIsMeta) { - return 1; - } - if (!aIsMeta && bIsMeta) { - return -1; - } - const aIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(a.selector); - const bIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(b.selector); - // for backward compatibility, method and property have higher precedence than other meta selectors - if (aIsMethodOrProperty && !bIsMethodOrProperty) { - return -1; - } - if (!aIsMethodOrProperty && bIsMethodOrProperty) { - return 1; - } - // both aren't meta selectors - // sort descending - the meta selectors are "least important" - return b.selector - a.selector; - }); - return (node, modifiers = new Set()) => { - const originalName = node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier - ? node.name - : `${node.value}`; - // return will break the loop and stop checking configs - // it is only used when the name is known to have failed or succeeded a config. - for (const config of configs) { - if (config.filter?.regex.test(originalName) !== config.filter?.match) { - // name does not match the filter - continue; - } - if (config.modifiers?.some(modifier => !modifiers.has(modifier))) { - // does not have the required modifiers - continue; - } - if (!isCorrectType(node, config, context, selectorType)) { - // is not the correct type - continue; - } - let name = originalName; - name = validateUnderscore('leading', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateUnderscore('trailing', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateAffix('prefix', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateAffix('suffix', config, name, node, originalName); - if (name == null) { - // fail - return; - } - if (!validateCustom(config, name, node, originalName)) { - // fail - return; - } - if (!validatePredefinedFormat(config, name, node, originalName, modifiers)) { - // fail - return; - } - // it's valid for this config, so we don't need to check any more configs - return; - } - }; - // centralizes the logic for formatting the report data - function formatReportData({ affixes, formats, originalName, processedName, position, custom, count, }) { - return { - type: (0, shared_1.selectorTypeToMessageString)(type), - name: originalName, - processedName, - position, - count, - affixes: affixes?.join(', '), - formats: formats?.map(f => enums_1.PredefinedFormats[f]).join(', '), - regex: custom?.regex.toString(), - regexMatch: custom?.match === true - ? 'match' - : custom?.match === false - ? 'not match' - : null, - }; - } - /** - * @returns the name with the underscore removed, if it is valid according to the specified underscore option, null otherwise - */ - function validateUnderscore(position, config, name, node, originalName) { - const option = position === 'leading' - ? config.leadingUnderscore - : config.trailingUnderscore; - if (!option) { - return name; - } - const hasSingleUnderscore = position === 'leading' - ? () => name.startsWith('_') - : () => name.endsWith('_'); - const trimSingleUnderscore = position === 'leading' - ? () => name.slice(1) - : () => name.slice(0, -1); - const hasDoubleUnderscore = position === 'leading' - ? () => name.startsWith('__') - : () => name.endsWith('__'); - const trimDoubleUnderscore = position === 'leading' - ? () => name.slice(2) - : () => name.slice(0, -2); - switch (option) { - // ALLOW - no conditions as the user doesn't care if it's there or not - case enums_1.UnderscoreOptions.allow: { - if (hasSingleUnderscore()) { - return trimSingleUnderscore(); - } - return name; - } - case enums_1.UnderscoreOptions.allowDouble: { - if (hasDoubleUnderscore()) { - return trimDoubleUnderscore(); - } - return name; - } - case enums_1.UnderscoreOptions.allowSingleOrDouble: { - if (hasDoubleUnderscore()) { - return trimDoubleUnderscore(); - } - if (hasSingleUnderscore()) { - return trimSingleUnderscore(); - } - return name; - } - // FORBID - case enums_1.UnderscoreOptions.forbid: { - if (hasSingleUnderscore()) { - context.report({ - node, - messageId: 'unexpectedUnderscore', - data: formatReportData({ - originalName, - position, - count: 'one', - }), - }); - return null; - } - return name; - } - // REQUIRE - case enums_1.UnderscoreOptions.require: { - if (!hasSingleUnderscore()) { - context.report({ - node, - messageId: 'missingUnderscore', - data: formatReportData({ - originalName, - position, - count: 'one', - }), - }); - return null; - } - return trimSingleUnderscore(); - } - case enums_1.UnderscoreOptions.requireDouble: { - if (!hasDoubleUnderscore()) { - context.report({ - node, - messageId: 'missingUnderscore', - data: formatReportData({ - originalName, - position, - count: 'two', - }), - }); - return null; - } - return trimDoubleUnderscore(); - } - } - } - /** - * @returns the name with the affix removed, if it is valid according to the specified affix option, null otherwise - */ - function validateAffix(position, config, name, node, originalName) { - const affixes = config[position]; - if (!affixes || affixes.length === 0) { - return name; - } - for (const affix of affixes) { - const hasAffix = position === 'prefix' ? name.startsWith(affix) : name.endsWith(affix); - const trimAffix = position === 'prefix' - ? () => name.slice(affix.length) - : () => name.slice(0, -affix.length); - if (hasAffix) { - // matches, so trim it and return - return trimAffix(); - } - } - context.report({ - node, - messageId: 'missingAffix', - data: formatReportData({ - originalName, - position, - affixes, - }), - }); - return null; - } - /** - * @returns true if the name is valid according to the `regex` option, false otherwise - */ - function validateCustom(config, name, node, originalName) { - const custom = config.custom; - if (!custom) { - return true; - } - const result = custom.regex.test(name); - if (custom.match && result) { - return true; - } - if (!custom.match && !result) { - return true; - } - context.report({ - node, - messageId: 'satisfyCustom', - data: formatReportData({ - originalName, - custom, - }), - }); - return false; - } - /** - * @returns true if the name is valid according to the `format` option, false otherwise - */ - function validatePredefinedFormat(config, name, node, originalName, modifiers) { - const formats = config.format; - if (!formats?.length) { - return true; - } - if (!modifiers.has(enums_1.Modifiers.requiresQuotes)) { - for (const format of formats) { - const checker = format_1.PredefinedFormatToCheckFunction[format]; - if (checker(name)) { - return true; - } - } - } - context.report({ - node, - messageId: originalName === name - ? 'doesNotMatchFormat' - : 'doesNotMatchFormatTrimmed', - data: formatReportData({ - originalName, - processedName: name, - formats, - }), - }); - return false; - } -} -const SelectorsAllowedToHaveTypes = enums_1.Selectors.variable | - enums_1.Selectors.parameter | - enums_1.Selectors.classProperty | - enums_1.Selectors.objectLiteralProperty | - enums_1.Selectors.typeProperty | - enums_1.Selectors.parameterProperty | - enums_1.Selectors.classicAccessor; -function isCorrectType(node, config, context, selector) { - if (config.types == null) { - return true; - } - if ((SelectorsAllowedToHaveTypes & selector) === 0) { - return true; - } - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const type = services - .getTypeAtLocation(node) - // remove null and undefined from the type, as we don't care about it here - .getNonNullableType(); - for (const allowedType of config.types) { - switch (allowedType) { - case enums_1.TypeModifiers.array: - if (isAllTypesMatch(type, t => checker.isArrayType(t) || checker.isTupleType(t))) { - return true; - } - break; - case enums_1.TypeModifiers.function: - if (isAllTypesMatch(type, t => t.getCallSignatures().length > 0)) { - return true; - } - break; - case enums_1.TypeModifiers.boolean: - case enums_1.TypeModifiers.number: - case enums_1.TypeModifiers.string: { - const typeString = checker.typeToString( - // this will resolve things like true => boolean, 'a' => string and 1 => number - checker.getWidenedType(checker.getBaseTypeOfLiteralType(type))); - const allowedTypeString = enums_1.TypeModifiers[allowedType]; - if (typeString === allowedTypeString) { - return true; - } - break; - } - } - } - return false; -} -/** - * @returns `true` if the type (or all union types) in the given type return true for the callback - */ -function isAllTypesMatch(type, cb) { - if (type.isUnion()) { - return type.types.every(t => cb(t)); - } - return cb(type); -} -//# sourceMappingURL=validator.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map deleted file mode 100644 index c48a8f1f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/validator.ts"],"names":[],"mappings":";;AAgfS,0CAAe;AA/exB,oDAA0D;AAG1D,qCAA+C;AAE/C,mCAOiB;AACjB,qCAA2D;AAC3D,qCAIkB;AAGlB,SAAS,eAAe,CACtB,IAAqB,EACrB,OAAgB,EAChB,UAAgC;IAIhC,6DAA6D;IAC7D,MAAM,YAAY,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,UAAU;QACxB,yCAAyC;SACxC,MAAM,CACL,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,CAAC,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC;QACjC,CAAC,CAAC,QAAQ,KAAK,qBAAa,CAAC,OAAO,CACvC;SACA,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACb,IAAI,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC9B,8DAA8D;YAC9D,4DAA4D;YAC5D,OAAO,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC,cAAc,CAAC;QAC7C,CAAC;QAED,MAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAE3C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,CAAC;YAC3B,KAAK,qBAAa,CAAC,MAAM,CAAC;YAC1B,KAAK,qBAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY;gBACrC,+EAA+E;gBAC/E,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAC/D,CAAC;gBACF,MAAM,iBAAiB,GAAG,qBAAa,CAAC,WAAW,CAAC,CAAC;gBACrD,IAAI,UAAU,KAAK,iBAAiB,EAAE,CAAC;oBACrC,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM;YACR,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,IAAa,EACb,EAA8B;IAE9B,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js deleted file mode 100644 index 642fbcdf..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +++ /dev/null @@ -1,504 +0,0 @@ -"use strict"; -// This rule was feature-frozen before we enabled no-property-in-node. -/* eslint-disable eslint-plugin/no-property-in-node */ -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const naming_convention_utils_1 = require("./naming-convention-utils"); -// This essentially mirrors ESLint's `camelcase` rule -// note that that rule ignores leading and trailing underscores and only checks those in the middle of a variable name -const defaultCamelCaseAllTheThingsConfig = [ - { - selector: 'default', - format: ['camelCase'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - { - selector: 'import', - format: ['camelCase', 'PascalCase'], - }, - { - selector: 'variable', - format: ['camelCase', 'UPPER_CASE'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - { - selector: 'typeLike', - format: ['PascalCase'], - }, -]; -exports.default = (0, util_1.createRule)({ - name: 'naming-convention', - meta: { - docs: { - description: 'Enforce naming conventions for everything across a codebase', - // technically only requires type checking if the user uses "type" modifiers - requiresTypeChecking: true, - }, - type: 'suggestion', - messages: { - unexpectedUnderscore: '{{type}} name `{{name}}` must not have a {{position}} underscore.', - missingUnderscore: '{{type}} name `{{name}}` must have {{count}} {{position}} underscore(s).', - missingAffix: '{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}', - satisfyCustom: '{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}', - doesNotMatchFormat: '{{type}} name `{{name}}` must match one of the following formats: {{formats}}', - doesNotMatchFormatTrimmed: '{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}', - }, - schema: naming_convention_utils_1.SCHEMA, - }, - defaultOptions: defaultCamelCaseAllTheThingsConfig, - create(contextWithoutDefaults) { - const context = contextWithoutDefaults.options.length > 0 - ? contextWithoutDefaults - : // only apply the defaults when the user provides no config - Object.setPrototypeOf({ - options: defaultCamelCaseAllTheThingsConfig, - }, contextWithoutDefaults); - const validators = (0, naming_convention_utils_1.parseOptions)(context); - const compilerOptions = (0, util_1.getParserServices)(context, true).program?.getCompilerOptions() ?? {}; - function handleMember(validator, node, modifiers) { - const key = node.key; - if (requiresQuoting(key, compilerOptions.target)) { - modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); - } - validator(key, modifiers); - } - function getMemberModifiers(node) { - const modifiers = new Set(); - if ('key' in node && node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - modifiers.add(naming_convention_utils_1.Modifiers['#private']); - } - else if (node.accessibility) { - modifiers.add(naming_convention_utils_1.Modifiers[node.accessibility]); - } - else { - modifiers.add(naming_convention_utils_1.Modifiers.public); - } - if (node.static) { - modifiers.add(naming_convention_utils_1.Modifiers.static); - } - if ('readonly' in node && node.readonly) { - modifiers.add(naming_convention_utils_1.Modifiers.readonly); - } - if ('override' in node && node.override) { - modifiers.add(naming_convention_utils_1.Modifiers.override); - } - if (node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty) { - modifiers.add(naming_convention_utils_1.Modifiers.abstract); - } - return modifiers; - } - const { unusedVariables } = (0, util_1.collectVariables)(context); - function isUnused(name, initialScope) { - let variable = null; - let scope = initialScope; - while (scope) { - variable = scope.set.get(name) ?? null; - if (variable) { - break; - } - scope = scope.upper; - } - if (!variable) { - return false; - } - return unusedVariables.has(variable); - } - function isDestructured(id) { - return ( - // `const { x }` - // does not match `const { x: y }` - (id.parent.type === utils_1.AST_NODE_TYPES.Property && id.parent.shorthand) || - // `const { x = 2 }` - // does not match const `{ x: y = 2 }` - (id.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - id.parent.parent.type === utils_1.AST_NODE_TYPES.Property && - id.parent.parent.shorthand)); - } - function isAsyncMemberOrProperty(propertyOrMemberNode) { - return Boolean('value' in propertyOrMemberNode && - propertyOrMemberNode.value && - 'async' in propertyOrMemberNode.value && - propertyOrMemberNode.value.async); - } - function isAsyncVariableIdentifier(id) { - return Boolean(('async' in id.parent && id.parent.async) || - ('init' in id.parent && - id.parent.init && - 'async' in id.parent.init && - id.parent.init.async)); - } - const selectors = { - // #region import - 'ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier': { - validator: validators.import, - handler: (node, validator) => { - const modifiers = new Set(); - switch (node.type) { - case utils_1.AST_NODE_TYPES.ImportDefaultSpecifier: - modifiers.add(naming_convention_utils_1.Modifiers.default); - break; - case utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier: - modifiers.add(naming_convention_utils_1.Modifiers.namespace); - break; - case utils_1.AST_NODE_TYPES.ImportSpecifier: - // Handle `import { default as Foo }` - if (node.imported.name !== 'default') { - return; - } - modifiers.add(naming_convention_utils_1.Modifiers.default); - break; - } - validator(node.local, modifiers); - }, - }, - // #endregion - // #region variable - VariableDeclarator: { - validator: validators.variable, - handler: (node, validator) => { - const identifiers = getIdentifiersFromPattern(node.id); - const baseModifiers = new Set(); - const parent = node.parent; - if (parent.kind === 'const') { - baseModifiers.add(naming_convention_utils_1.Modifiers.const); - } - if (isGlobal(context.sourceCode.getScope(node))) { - baseModifiers.add(naming_convention_utils_1.Modifiers.global); - } - identifiers.forEach(id => { - const modifiers = new Set(baseModifiers); - if (isDestructured(id)) { - modifiers.add(naming_convention_utils_1.Modifiers.destructured); - } - const scope = context.sourceCode.getScope(id); - if (isExported(parent, id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - if (isAsyncVariableIdentifier(id)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - validator(id, modifiers); - }); - }, - }, - // #endregion - // #region function - 'FunctionDeclaration, TSDeclareFunction, FunctionExpression': { - validator: validators.function, - handler: (node, validator) => { - if (node.id == null) { - return; - } - const modifiers = new Set(); - // functions create their own nested scope - const scope = context.sourceCode.getScope(node).upper; - if (isGlobal(scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.global); - } - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - if (node.async) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - validator(node.id, modifiers); - }, - }, - // #endregion function - // #region parameter - 'FunctionDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, FunctionExpression, ArrowFunctionExpression': { - validator: validators.parameter, - handler: (node, validator) => { - node.params.forEach(param => { - if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { - return; - } - const identifiers = getIdentifiersFromPattern(param); - identifiers.forEach(i => { - const modifiers = new Set(); - if (isDestructured(i)) { - modifiers.add(naming_convention_utils_1.Modifiers.destructured); - } - if (isUnused(i.name, context.sourceCode.getScope(i))) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(i, modifiers); - }); - }); - }, - }, - // #endregion parameter - // #region parameterProperty - TSParameterProperty: { - validator: validators.parameterProperty, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - const identifiers = getIdentifiersFromPattern(node.parameter); - identifiers.forEach(i => { - validator(i, modifiers); - }); - }, - }, - // #endregion parameterProperty - // #region property - ':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { - validator: validators.objectLiteralProperty, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { - validator: validators.classProperty, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - handleMember(validator, node, modifiers); - }, - }, - 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type != "TSFunctionType"]': { - validator: validators.typeProperty, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - if (node.readonly) { - modifiers.add(naming_convention_utils_1.Modifiers.readonly); - } - handleMember(validator, node, modifiers); - }, - }, - // #endregion property - // #region method - [[ - 'Property[computed = false][kind = "init"][value.type = "ArrowFunctionExpression"]', - 'Property[computed = false][kind = "init"][value.type = "FunctionExpression"]', - 'Property[computed = false][kind = "init"][value.type = "TSEmptyBodyFunctionExpression"]', - ].join(', ')]: { - validator: validators.objectLiteralMethod, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - if (isAsyncMemberOrProperty(node)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - handleMember(validator, node, modifiers); - }, - }, - [[ - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "ArrowFunctionExpression"]', - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "FunctionExpression"]', - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "TSEmptyBodyFunctionExpression"]', - ':matches(MethodDefinition, TSAbstractMethodDefinition)[computed = false][kind = "method"]', - ].join(', ')]: { - validator: validators.classMethod, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - if (isAsyncMemberOrProperty(node)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - handleMember(validator, node, modifiers); - }, - }, - [[ - 'TSMethodSignature[computed = false]', - 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type = "TSFunctionType"]', - ].join(', ')]: { - validator: validators.typeMethod, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - // #endregion method - // #region accessor - 'Property[computed = false]:matches([kind = "get"], [kind = "set"])': { - validator: validators.classicAccessor, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - [[ - 'MethodDefinition[computed = false]:matches([kind = "get"], [kind = "set"])', - 'TSAbstractMethodDefinition[computed = false]:matches([kind="get"], [kind="set"])', - ].join(', ')]: { - validator: validators.classicAccessor, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - handleMember(validator, node, modifiers); - }, - }, - // #endregion accessor - // #region autoAccessor - [[ - utils_1.AST_NODE_TYPES.AccessorProperty, - utils_1.AST_NODE_TYPES.TSAbstractAccessorProperty, - ].join(', ')]: { - validator: validators.autoAccessor, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - handleMember(validator, node, modifiers); - }, - }, - // #endregion autoAccessor - // #region enumMember - // computed is optional, so can't do [computed = false] - 'TSEnumMember[computed != true]': { - validator: validators.enumMember, - handler: (node, validator) => { - const id = node.id; - const modifiers = new Set(); - if (requiresQuoting(id, compilerOptions.target)) { - modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); - } - validator(id, modifiers); - }, - }, - // #endregion enumMember - // #region class - 'ClassDeclaration, ClassExpression': { - validator: validators.class, - handler: (node, validator) => { - const id = node.id; - if (id == null) { - return; - } - const modifiers = new Set(); - // classes create their own nested scope - const scope = context.sourceCode.getScope(node).upper; - if (node.abstract) { - modifiers.add(naming_convention_utils_1.Modifiers.abstract); - } - if (isExported(node, id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(id, modifiers); - }, - }, - // #endregion class - // #region interface - TSInterfaceDeclaration: { - validator: validators.interface, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.sourceCode.getScope(node); - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion interface - // #region typeAlias - TSTypeAliasDeclaration: { - validator: validators.typeAlias, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.sourceCode.getScope(node); - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion typeAlias - // #region enum - TSEnumDeclaration: { - validator: validators.enum, - handler: (node, validator) => { - const modifiers = new Set(); - // enums create their own nested scope - const scope = context.sourceCode.getScope(node).upper; - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion enum - // #region typeParameter - 'TSTypeParameterDeclaration > TSTypeParameter': { - validator: validators.typeParameter, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.sourceCode.getScope(node); - if (isUnused(node.name.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.name, modifiers); - }, - }, - // #endregion typeParameter - }; - return Object.fromEntries(Object.entries(selectors).map(([selector, { validator, handler }]) => { - return [ - selector, - (node) => { - handler(node, validator); - }, - ]; - })); - }, -}); -function getIdentifiersFromPattern(pattern) { - const identifiers = []; - const visitor = new scope_manager_1.PatternVisitor({}, pattern, id => identifiers.push(id)); - visitor.visit(pattern); - return identifiers; -} -function isExported(node, name, scope) { - if (node?.parent?.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || - node?.parent?.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) { - return true; - } - if (scope == null) { - return false; - } - const variable = scope.set.get(name); - if (variable) { - for (const ref of variable.references) { - const refParent = ref.identifier.parent; - if (refParent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || - refParent.type === utils_1.AST_NODE_TYPES.ExportSpecifier) { - return true; - } - } - } - return false; -} -function isGlobal(scope) { - if (scope == null) { - return false; - } - return (scope.type === utils_1.TSESLint.Scope.ScopeType.global || - scope.type === utils_1.TSESLint.Scope.ScopeType.module); -} -function requiresQuoting(node, target) { - const name = node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier - ? node.name - : `${node.value}`; - return (0, util_1.requiresQuoting)(name, target); -} -//# sourceMappingURL=naming-convention.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map deleted file mode 100644 index eeadd2ee..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"naming-convention.js","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sDAAsD;;AAEtD,oEAAkE;AAElE,oDAAoE;AAGpE,kCAKiB;AAMjB,uEAA4E;AAe5E,qDAAqD;AACrD,sHAAsH;AACtH,MAAM,kCAAkC,GAAY;IAClD;QACE,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,WAAW,CAAC;QACrB,iBAAiB,EAAE,OAAO;QAC1B,kBAAkB,EAAE,OAAO;KAC5B;IAED;QACE,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;KACpC;IAED;QACE,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACnC,iBAAiB,EAAE,OAAO;QAC1B,kBAAkB,EAAE,OAAO;KAC5B;IAED;QACE,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC,YAAY,CAAC;KACvB;CACF,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,4EAA4E;YAC5E,oBAAoB,EAAE,IAAI;SAC3B;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,oBAAoB,EAClB,mEAAmE;YACrE,iBAAiB,EACf,0EAA0E;YAC5E,YAAY,EACV,qFAAqF;YACvF,aAAa,EACX,oEAAoE;YACtE,kBAAkB,EAChB,+EAA+E;YACjF,yBAAyB,EACvB,8GAA8G;SACjH;QACD,MAAM,EAAE,gCAAM;KACf;IACD,cAAc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CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC5C,CAAC,CAAC,IAAI,CAAC,IAAI;QACX,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,OAAO,IAAA,sBAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js deleted file mode 100644 index 752f718e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-array-constructor', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow generic `Array` constructors', - recommended: 'recommended', - extendsBaseRule: true, - }, - fixable: 'code', - messages: { - useLiteral: 'The array literal notation [] is preferable.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - /** - * Disallow construction of dense arrays using the Array constructor - * @param node node to evaluate - */ - function check(node) { - if (node.arguments.length !== 1 && - node.callee.type === utils_1.AST_NODE_TYPES.Identifier && - node.callee.name === 'Array' && - !node.typeArguments && - !(0, util_1.isOptionalCallExpression)(node)) { - context.report({ - node, - messageId: 'useLiteral', - fix(fixer) { - if (node.arguments.length === 0) { - return fixer.replaceText(node, '[]'); - } - const fullText = context.sourceCode.getText(node); - const preambleLength = node.callee.range[1] - node.range[0]; - return fixer.replaceText(node, `[${fullText.slice(preambleLength + 1, -1)}]`); - }, - }); - } - } - return { - CallExpression: check, - NewExpression: check, - }; - }, -}); -//# sourceMappingURL=no-array-constructor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map deleted file mode 100644 index b9379502..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-array-constructor.js","sourceRoot":"","sources":["../../src/rules/no-array-constructor.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAA+D;AAE/D,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,UAAU,EAAE,8CAA8C;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,KAAK,CACZ,IAAsD;YAEtD,IACE,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;gBAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;gBAC5B,CAAC,IAAI,CAAC,aAAa;gBACnB,CAAC,IAAA,+BAAwB,EAAC,IAAI,CAAC,EAC/B,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,YAAY;oBACvB,GAAG,CAAC,KAAK;wBACP,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;4BAChC,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;wBACvC,CAAC;wBACD,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBAClD,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBAE5D,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAC9C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js deleted file mode 100644 index 0b9a32b9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-array-delete', - meta: { - hasSuggestions: true, - type: 'problem', - docs: { - description: 'Disallow using the `delete` operator on array values', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - noArrayDelete: 'Using the `delete` operator with an array expression is unsafe.', - useSplice: 'Use `array.splice()` instead.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function isUnderlyingTypeArray(type) { - const predicate = (t) => checker.isArrayType(t) || checker.isTupleType(t); - if (type.isUnion()) { - return type.types.every(predicate); - } - if (type.isIntersection()) { - return type.types.some(predicate); - } - return predicate(type); - } - return { - 'UnaryExpression[operator="delete"]'(node) { - const { argument } = node; - if (argument.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - return; - } - const type = (0, util_1.getConstrainedTypeAtLocation)(services, argument.object); - if (!isUnderlyingTypeArray(type)) { - return; - } - context.report({ - node, - messageId: 'noArrayDelete', - suggest: [ - { - messageId: 'useSplice', - fix(fixer) { - const { object, property } = argument; - const shouldHaveParentheses = property.type === utils_1.AST_NODE_TYPES.SequenceExpression; - const nodeMap = services.esTreeNodeToTSNodeMap; - const target = nodeMap.get(object).getText(); - const rawKey = nodeMap.get(property).getText(); - const key = shouldHaveParentheses ? `(${rawKey})` : rawKey; - let suggestion = `${target}.splice(${key}, 1)`; - const comments = context.sourceCode.getCommentsInside(node); - if (comments.length > 0) { - const indentationCount = node.loc.start.column; - const indentation = ' '.repeat(indentationCount); - const commentsText = comments - .map(comment => { - return comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${comment.value}` - : `/*${comment.value}*/`; - }) - .join(`\n${indentation}`); - suggestion = `${commentsText}\n${indentation}${suggestion}`; - } - return fixer.replaceText(node, suggestion); - }, - }, - ], - }); - }, - }; - }, -}); -//# sourceMappingURL=no-array-delete.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map deleted file mode 100644 index 2e338bb9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-array-delete.js","sourceRoot":"","sources":["../../src/rules/no-array-delete.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAG3E,kCAIiB;AAIjB,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EACX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AAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;4BAC7C,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js deleted file mode 100644 index efdbf04e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -var Usefulness; -(function (Usefulness) { - Usefulness["Always"] = "always"; - Usefulness["Never"] = "will"; - Usefulness["Sometimes"] = "may"; -})(Usefulness || (Usefulness = {})); -exports.default = (0, util_1.createRule)({ - name: 'no-base-to-string', - meta: { - docs: { - description: 'Require `.toString()` to only be called on objects which provide useful information when stringified', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - baseToString: "'{{name}}' {{certainty}} use Object's default stringification format ('[object Object]') when stringified.", - }, - schema: [ - { - type: 'object', - properties: { - ignoredTypeNames: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - additionalProperties: false, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - ignoredTypeNames: ['Error', 'RegExp', 'URL', 'URLSearchParams'], - }, - ], - create(context, [option]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const ignoredTypeNames = option.ignoredTypeNames ?? []; - function checkExpression(node, type) { - if (node.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - const certainty = collectToStringCertainty(type ?? services.getTypeAtLocation(node)); - if (certainty === Usefulness.Always) { - return; - } - context.report({ - data: { - certainty, - name: context.sourceCode.getText(node), - }, - messageId: 'baseToString', - node, - }); - } - function collectToStringCertainty(type) { - const toString = checker.getPropertyOfType(type, 'toString'); - const declarations = toString?.getDeclarations(); - if (!toString || !declarations || declarations.length === 0) { - return Usefulness.Always; - } - // Patch for old version TypeScript, the Boolean type definition missing toString() - if (type.flags & ts.TypeFlags.Boolean || - type.flags & ts.TypeFlags.BooleanLiteral) { - return Usefulness.Always; - } - if (ignoredTypeNames.includes((0, util_1.getTypeName)(checker, type))) { - return Usefulness.Always; - } - if (declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) { - return Usefulness.Always; - } - if (type.isIntersection()) { - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness === Usefulness.Always) { - return Usefulness.Always; - } - } - return Usefulness.Never; - } - if (!type.isUnion()) { - return Usefulness.Never; - } - let allSubtypesUseful = true; - let someSubtypeUseful = false; - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness !== Usefulness.Always && allSubtypesUseful) { - allSubtypesUseful = false; - } - if (subtypeUsefulness !== Usefulness.Never && !someSubtypeUseful) { - someSubtypeUseful = true; - } - } - if (allSubtypesUseful && someSubtypeUseful) { - return Usefulness.Always; - } - if (someSubtypeUseful) { - return Usefulness.Sometimes; - } - return Usefulness.Never; - } - return { - 'AssignmentExpression[operator = "+="], BinaryExpression[operator = "+"]'(node) { - const leftType = services.getTypeAtLocation(node.left); - const rightType = services.getTypeAtLocation(node.right); - if ((0, util_1.getTypeName)(checker, leftType) === 'string') { - checkExpression(node.right, rightType); - } - else if ((0, util_1.getTypeName)(checker, rightType) === 'string' && - node.left.type !== utils_1.AST_NODE_TYPES.PrivateIdentifier) { - checkExpression(node.left, leftType); - } - }, - 'CallExpression > MemberExpression.callee > Identifier[name = "toString"].property'(node) { - const memberExpr = node.parent; - checkExpression(memberExpr.object); - }, - TemplateLiteral(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - return; - } - for (const expression of node.expressions) { - checkExpression(expression); - } - }, - }; - }, -}); -//# sourceMappingURL=no-base-to-string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map deleted file mode 100644 index 1209fb9d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAqE;AAErE,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+BAAiB,CAAA;IACjB,4BAAc,CAAA;IACd,+BAAiB,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AASD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,sGAAsG;YACxG,WA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CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EACnD,CAAC;oBACD,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBACvC,CAAC;YACH,CAAC;YACD,mFAAmF,CACjF,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB,EAAE,CAAC;oBACjE,OAAO;gBACT,CAAC;gBACD,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBAC1C,eAAe,CAAC,UAAU,CAAC,CAAC;gBAC9B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js deleted file mode 100644 index 36aa124d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-confusing-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertion in locations that may be confusing', - recommended: 'stylistic', - }, - hasSuggestions: true, - messages: { - confusingEqual: 'Confusing combinations of non-null assertion and equal test like "a! == b", which looks very similar to not equal "a !== b".', - confusingAssign: 'Confusing combinations of non-null assertion and equal test like "a! = b", which looks very similar to not equal "a != b".', - notNeedInEqualTest: 'Unnecessary non-null assertion (!) in equal test.', - notNeedInAssign: 'Unnecessary non-null assertion (!) in assignment left hand.', - wrapUpLeft: 'Wrap up left hand to avoid putting non-null assertion "!" and "=" together.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - 'BinaryExpression, AssignmentExpression'(node) { - function isLeftHandPrimaryExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression; - } - if (node.operator === '==' || - node.operator === '===' || - node.operator === '=') { - const isAssign = node.operator === '='; - const leftHandFinalToken = context.sourceCode.getLastToken(node.left); - const tokenAfterLeft = context.sourceCode.getTokenAfter(node.left); - if (leftHandFinalToken?.type === utils_1.AST_TOKEN_TYPES.Punctuator && - leftHandFinalToken.value === '!' && - tokenAfterLeft?.value !== ')') { - if (isLeftHandPrimaryExpression(node.left)) { - context.report({ - node, - messageId: isAssign ? 'confusingAssign' : 'confusingEqual', - suggest: [ - { - messageId: isAssign - ? 'notNeedInAssign' - : 'notNeedInEqualTest', - fix: (fixer) => [ - fixer.remove(leftHandFinalToken), - ], - }, - ], - }); - } - else { - context.report({ - node, - messageId: isAssign ? 'confusingAssign' : 'confusingEqual', - suggest: [ - { - messageId: 'wrapUpLeft', - fix: (fixer) => [ - fixer.insertTextBefore(node.left, '('), - fixer.insertTextAfter(node.left, ')'), - ], - }, - ], - }); - } - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-confusing-non-null-assertion.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map deleted file mode 100644 index f3289d2c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-confusing-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-confusing-non-null-assertion.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAE3E,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,E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C,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gCAC1D,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,QAAQ;4CACjB,CAAC,CAAC,iBAAiB;4CACnB,CAAC,CAAC,oBAAoB;wCACxB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;yCACjC;qCACF;iCACF;6BACF,CAAC,CAAC;wBACL,CAAC;6BAAM,CAAC;4BACN,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gCAC1D,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,YAAY;wCACvB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;4CACtC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;yCACtC;qCACF;iCACF;6BACF,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js deleted file mode 100644 index e512c888..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +++ /dev/null @@ -1,291 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-confusing-void-expression', - meta: { - docs: { - description: 'Require expressions of type void to appear in statement position', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - invalidVoidExpr: 'Placing a void expression inside another expression is forbidden. ' + - 'Move it to its own statement instead.', - invalidVoidExprWrapVoid: 'Void expressions used inside another expression ' + - 'must be moved to its own statement ' + - 'or marked explicitly with the `void` operator.', - invalidVoidExprArrow: 'Returning a void expression from an arrow function shorthand is forbidden. ' + - 'Please add braces to the arrow function.', - invalidVoidExprArrowWrapVoid: 'Void expressions returned from an arrow function shorthand ' + - 'must be marked explicitly with the `void` operator.', - invalidVoidExprReturn: 'Returning a void expression from a function is forbidden. ' + - 'Please move it before the `return` statement.', - invalidVoidExprReturnLast: 'Returning a void expression from a function is forbidden. ' + - 'Please remove the `return` statement.', - invalidVoidExprReturnWrapVoid: 'Void expressions returned from a function ' + - 'must be marked explicitly with the `void` operator.', - voidExprWrapVoid: 'Mark with an explicit `void` operator.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreArrowShorthand: { type: 'boolean' }, - ignoreVoidOperator: { type: 'boolean' }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - fixable: 'code', - hasSuggestions: true, - }, - defaultOptions: [{ ignoreArrowShorthand: false, ignoreVoidOperator: false }], - create(context, [options]) { - return { - 'AwaitExpression, CallExpression, TaggedTemplateExpression'(node) { - const services = (0, util_1.getParserServices)(context); - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - if (!tsutils.isTypeFlagSet(type, ts.TypeFlags.VoidLike)) { - // not a void expression - return; - } - const invalidAncestor = findInvalidAncestor(node); - if (invalidAncestor == null) { - // void expression is in valid position - return; - } - const wrapVoidFix = (fixer) => { - const nodeText = context.sourceCode.getText(node); - const newNodeText = `void ${nodeText}`; - return fixer.replaceText(node, newNodeText); - }; - if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // handle arrow function shorthand - if (options.ignoreVoidOperator) { - // handle wrapping with `void` - return context.report({ - node, - messageId: 'invalidVoidExprArrowWrapVoid', - fix: wrapVoidFix, - }); - } - // handle wrapping with braces - const arrowFunction = invalidAncestor; - return context.report({ - node, - messageId: 'invalidVoidExprArrow', - fix(fixer) { - if (!canFix(arrowFunction)) { - return null; - } - const arrowBody = arrowFunction.body; - const arrowBodyText = context.sourceCode.getText(arrowBody); - const newArrowBodyText = `{ ${arrowBodyText}; }`; - if ((0, util_1.isParenthesized)(arrowBody, context.sourceCode)) { - const bodyOpeningParen = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(arrowBody, util_1.isOpeningParenToken), util_1.NullThrowsReasons.MissingToken('opening parenthesis', 'arrow body')); - const bodyClosingParen = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(arrowBody, util_1.isClosingParenToken), util_1.NullThrowsReasons.MissingToken('closing parenthesis', 'arrow body')); - return fixer.replaceTextRange([bodyOpeningParen.range[0], bodyClosingParen.range[1]], newArrowBodyText); - } - return fixer.replaceText(arrowBody, newArrowBodyText); - }, - }); - } - if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ReturnStatement) { - // handle return statement - if (options.ignoreVoidOperator) { - // handle wrapping with `void` - return context.report({ - node, - messageId: 'invalidVoidExprReturnWrapVoid', - fix: wrapVoidFix, - }); - } - if (isFinalReturn(invalidAncestor)) { - // remove the `return` keyword - return context.report({ - node, - messageId: 'invalidVoidExprReturnLast', - fix(fixer) { - if (!canFix(invalidAncestor)) { - return null; - } - const returnValue = invalidAncestor.argument; - const returnValueText = context.sourceCode.getText(returnValue); - let newReturnStmtText = `${returnValueText};`; - if (isPreventingASI(returnValue)) { - // put a semicolon at the beginning of the line - newReturnStmtText = `;${newReturnStmtText}`; - } - return fixer.replaceText(invalidAncestor, newReturnStmtText); - }, - }); - } - // move before the `return` keyword - return context.report({ - node, - messageId: 'invalidVoidExprReturn', - fix(fixer) { - const returnValue = invalidAncestor.argument; - const returnValueText = context.sourceCode.getText(returnValue); - let newReturnStmtText = `${returnValueText}; return;`; - if (isPreventingASI(returnValue)) { - // put a semicolon at the beginning of the line - newReturnStmtText = `;${newReturnStmtText}`; - } - if (invalidAncestor.parent.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - // e.g. `if (cond) return console.error();` - // add braces if not inside a block - newReturnStmtText = `{ ${newReturnStmtText} }`; - } - return fixer.replaceText(invalidAncestor, newReturnStmtText); - }, - }); - } - // handle generic case - if (options.ignoreVoidOperator) { - // this would be reported by this rule btw. such irony - return context.report({ - node, - messageId: 'invalidVoidExprWrapVoid', - suggest: [{ messageId: 'voidExprWrapVoid', fix: wrapVoidFix }], - }); - } - context.report({ - node, - messageId: 'invalidVoidExpr', - }); - }, - }; - /** - * Inspects the void expression's ancestors and finds closest invalid one. - * By default anything other than an ExpressionStatement is invalid. - * Parent expressions which can be used for their short-circuiting behavior - * are ignored and their parents are checked instead. - * @param node The void expression node to check. - * @returns Invalid ancestor node if it was found. `null` otherwise. - */ - function findInvalidAncestor(node) { - const parent = (0, util_1.nullThrows)(node.parent, util_1.NullThrowsReasons.MissingParent); - if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - if (node !== parent.expressions[parent.expressions.length - 1]) { - return null; - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - // e.g. `{ console.log("foo"); }` - // this is always valid - return null; - } - if (parent.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (parent.right === node) { - // e.g. `x && console.log(x)` - // this is valid only if the next ancestor is valid - return findInvalidAncestor(parent); - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - if (parent.consequent === node || parent.alternate === node) { - // e.g. `cond ? console.log(true) : console.log(false)` - // this is valid only if the next ancestor is valid - return findInvalidAncestor(parent); - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // e.g. `() => console.log("foo")` - // this is valid with an appropriate option - if (options.ignoreArrowShorthand) { - return null; - } - } - if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression) { - if (parent.operator === 'void') { - // e.g. `void console.log("foo")` - // this is valid with an appropriate option - if (options.ignoreVoidOperator) { - return null; - } - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ChainExpression) { - // e.g. `console?.log('foo')` - return findInvalidAncestor(parent); - } - // Any other parent is invalid. - // We can assume a return statement will have an argument. - return parent; - } - /** Checks whether the return statement is the last statement in a function body. */ - function isFinalReturn(node) { - // the parent must be a block - const block = (0, util_1.nullThrows)(node.parent, util_1.NullThrowsReasons.MissingParent); - if (block.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - // e.g. `if (cond) return;` (not in a block) - return false; - } - // the block's parent must be a function - const blockParent = (0, util_1.nullThrows)(block.parent, util_1.NullThrowsReasons.MissingParent); - if (![ - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - ].includes(blockParent.type)) { - // e.g. `if (cond) { return; }` - // not in a top-level function block - return false; - } - // must be the last child of the block - if (block.body.indexOf(node) < block.body.length - 1) { - // not the last statement in the block - return false; - } - return true; - } - /** - * Checks whether the given node, if placed on its own line, - * would prevent automatic semicolon insertion on the line before. - * - * This happens if the line begins with `(`, `[` or `` ` `` - */ - function isPreventingASI(node) { - const startToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node), util_1.NullThrowsReasons.MissingToken('first token', node.type)); - return ['(', '[', '`'].includes(startToken.value); - } - function canFix(node) { - const services = (0, util_1.getParserServices)(context); - const targetNode = node.type === utils_1.AST_NODE_TYPES.ReturnStatement - ? node.argument - : node.body; - const type = (0, util_1.getConstrainedTypeAtLocation)(services, targetNode); - return tsutils.isTypeFlagSet(type, ts.TypeFlags.VoidLike); - } - }, -}); -//# sourceMappingURL=no-confusing-void-expression.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map deleted file mode 100644 index 80056f25..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-confusing-void-expression.js","sourceRoot":"","sources":["../../src/rules/no-confusing-void-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAGjC,kCASiB;AAmBjB,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,eAAe,EACb,oEAAoE;gBACpE,uCAAuC;YACzC,uBAAuB,EACrB,kDAAkD;gBAClD,qCAAqC;gBACrC,gDAAgD;YAClD,oBAAoB,EAClB,6EAA6E;gBAC7E,0CAA0C;YAC5C,4BAA4B,EAC1B,6DAA6D;gBAC7D,qDAAqD;YACvD,qBAAqB,EACnB,4DAA4D;gBAC5D,+CAA+C;YACjD,yBAAyB,EACvB,4DAA4D;gB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,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EACtC,wBAAiB,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,CACzD,CAAC;YAEF,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC;QAED,SAAS,MAAM,CACb,IAAoE;YAEpE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;YAE5C,MAAM,UAAU,GACd,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC1C,CAAC,CAAC,IAAI,CAAC,QAAQ;gBACf,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAEhB,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAChE,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js deleted file mode 100644 index 291188c7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-dupe-class-members'); -exports.default = (0, util_1.createRule)({ - name: 'no-dupe-class-members', - meta: { - type: 'problem', - docs: { - description: 'Disallow duplicate class members', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - function wrapMemberDefinitionListener(coreListener) { - return (node) => { - if (node.computed) { - return; - } - if (node.value && - node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - return; - } - return coreListener(node); - }; - } - return { - ...rules, - 'MethodDefinition, PropertyDefinition': wrapMemberDefinitionListener(rules['MethodDefinition, PropertyDefinition']), - }; - }, -}); -//# sourceMappingURL=no-dupe-class-members.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map deleted file mode 100644 index 06b8e785..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-dupe-class-members.js","sourceRoot":"","sources":["../../src/rules/no-dupe-class-members.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,4BAA4B,CAEnC,YAA+B;YAC/B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAClB,OAAO;gBACT,CAAC;gBAED,IACE,IAAI,CAAC,KAAK;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,6BAA6B,EAChE,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,GAAG,KAAK;YACR,sCAAsC,EAAE,4BAA4B,CAClE,KAAK,CAAC,sCAAsC,CAAC,CAC9C;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js deleted file mode 100644 index 026bd4db..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-duplicate-enum-values', - meta: { - type: 'problem', - docs: { - description: 'Disallow duplicate enum member values', - recommended: 'recommended', - }, - hasSuggestions: false, - messages: { - duplicateValue: 'Duplicate enum member value {{value}}.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function isStringLiteral(node) { - return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'string'); - } - function isNumberLiteral(node) { - return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'number'); - } - return { - TSEnumDeclaration(node) { - const enumMembers = node.body.members; - const seenValues = new Set(); - enumMembers.forEach(member => { - if (member.initializer === undefined) { - return; - } - let value; - if (isStringLiteral(member.initializer)) { - value = String(member.initializer.value); - } - else if (isNumberLiteral(member.initializer)) { - value = Number(member.initializer.value); - } - if (value === undefined) { - return; - } - if (seenValues.has(value)) { - context.report({ - node: member, - messageId: 'duplicateValue', - data: { - value, - }, - }); - } - else { - seenValues.add(value); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=no-duplicate-enum-values.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map deleted file mode 100644 index 1bfd3ab8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-duplicate-enum-values.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-enum-values.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE;YACR,cAAc,EAAE,wCAAwC;SACzD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,eAAe,CACtB,IAAyB;YAEzB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CACvE,CAAC;QACJ,CAAC;QAED,SAAS,eAAe,CACtB,IAAyB;YAEzB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CACvE,CAAC;QACJ,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAgC;gBAChD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;gBACtC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAmB,CAAC;gBAE9C,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;oBAC3B,IAAI,MAAM,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;wBACrC,OAAO;oBACT,CAAC;oBAED,IAAI,KAAkC,CAAC;oBACvC,IAAI,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;wBACxC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;oBAC3C,CAAC;yBAAM,IAAI,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;wBAC/C,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;oBAC3C,CAAC;oBAED,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;wBACxB,OAAO;oBACT,CAAC;oBAED,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC1B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM;4BACZ,SAAS,EAAE,gBAAgB;4BAC3B,IAAI,EAAE;gCACJ,KAAK;6BACN;yBACF,CAAC,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACN,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACxB,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js deleted file mode 100644 index 39dcc38c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -const astIgnoreKeys = new Set(['range', 'loc', 'parent']); -const isSameAstNode = (actualNode, expectedNode) => { - if (actualNode === expectedNode) { - return true; - } - if (actualNode && - expectedNode && - typeof actualNode === 'object' && - typeof expectedNode === 'object') { - if (Array.isArray(actualNode) && Array.isArray(expectedNode)) { - if (actualNode.length !== expectedNode.length) { - return false; - } - return !actualNode.some((nodeEle, index) => !isSameAstNode(nodeEle, expectedNode[index])); - } - const actualNodeKeys = Object.keys(actualNode).filter(key => !astIgnoreKeys.has(key)); - const expectedNodeKeys = Object.keys(expectedNode).filter(key => !astIgnoreKeys.has(key)); - if (actualNodeKeys.length !== expectedNodeKeys.length) { - return false; - } - if (actualNodeKeys.some(actualNodeKey => !Object.hasOwn(expectedNode, actualNodeKey))) { - return false; - } - if (actualNodeKeys.some(actualNodeKey => !isSameAstNode(actualNode[actualNodeKey], expectedNode[actualNodeKey]))) { - return false; - } - return true; - } - return false; -}; -exports.default = (0, util_1.createRule)({ - name: 'no-duplicate-type-constituents', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow duplicate constituents of union or intersection types', - recommended: 'recommended', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - duplicate: '{{type}} type constituent is duplicated with {{previous}}.', - }, - schema: [ - { - additionalProperties: false, - type: 'object', - properties: { - ignoreIntersections: { - type: 'boolean', - }, - ignoreUnions: { - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - ignoreIntersections: false, - ignoreUnions: false, - }, - ], - create(context, [{ ignoreIntersections, ignoreUnions }]) { - const parserServices = (0, util_1.getParserServices)(context); - function checkDuplicate(node) { - const cachedTypeMap = new Map(); - node.types.reduce((uniqueConstituents, constituentNode) => { - const constituentNodeType = parserServices.getTypeAtLocation(constituentNode); - if (tsutils.isIntrinsicErrorType(constituentNodeType)) { - return uniqueConstituents; - } - const duplicatedPreviousConstituentInAst = uniqueConstituents.find(ele => isSameAstNode(ele, constituentNode)); - if (duplicatedPreviousConstituentInAst) { - reportDuplicate({ - duplicated: constituentNode, - duplicatePrevious: duplicatedPreviousConstituentInAst, - }, node); - return uniqueConstituents; - } - const duplicatedPreviousConstituentInType = cachedTypeMap.get(constituentNodeType); - if (duplicatedPreviousConstituentInType) { - reportDuplicate({ - duplicated: constituentNode, - duplicatePrevious: duplicatedPreviousConstituentInType, - }, node); - return uniqueConstituents; - } - cachedTypeMap.set(constituentNodeType, constituentNode); - return [...uniqueConstituents, constituentNode]; - }, []); - } - function reportDuplicate(duplicateConstituent, parentNode) { - const beforeTokens = context.sourceCode.getTokensBefore(duplicateConstituent.duplicated, { filter: token => token.value === '|' || token.value === '&' }); - const beforeUnionOrIntersectionToken = beforeTokens[beforeTokens.length - 1]; - const bracketBeforeTokens = context.sourceCode.getTokensBetween(beforeUnionOrIntersectionToken, duplicateConstituent.duplicated); - const bracketAfterTokens = context.sourceCode.getTokensAfter(duplicateConstituent.duplicated, { count: bracketBeforeTokens.length }); - const reportLocation = { - start: duplicateConstituent.duplicated.loc.start, - end: bracketAfterTokens.length > 0 - ? bracketAfterTokens[bracketAfterTokens.length - 1].loc.end - : duplicateConstituent.duplicated.loc.end, - }; - context.report({ - data: { - type: parentNode.type === utils_1.AST_NODE_TYPES.TSIntersectionType - ? 'Intersection' - : 'Union', - previous: context.sourceCode.getText(duplicateConstituent.duplicatePrevious), - }, - messageId: 'duplicate', - node: duplicateConstituent.duplicated, - loc: reportLocation, - fix: fixer => { - return [ - beforeUnionOrIntersectionToken, - ...bracketBeforeTokens, - duplicateConstituent.duplicated, - ...bracketAfterTokens, - ].map(token => fixer.remove(token)); - }, - }); - } - return { - ...(!ignoreIntersections && { - TSIntersectionType: checkDuplicate, - }), - ...(!ignoreUnions && { - TSUnionType: checkDuplicate, - }), - }; - }, -}); -//# sourceMappingURL=no-duplicate-type-constituents.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map deleted file mode 100644 index 3fb0e2c7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-duplicate-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAAwD;AAWxD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,UAAmB,EAAE,YAAqB,EAAW,EAAE;IAC5E,IAAI,UAAU,KAAK,YAAY,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IACE,UAAU;QAC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C9C,KAAK,EAAE,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK;gBAChD,GAAG,EACD,kBAAkB,CAAC,MAAM,GAAG,CAAC;oBAC3B,CAAC,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG;oBAC3D,CAAC,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG;aAC9C,CAAC;YACF,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI,EAAE;oBACJ,IAAI,EACF,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;wBACnD,CAAC,CAAC,cAAc;wBAChB,CAAC,CAAC,OAAO;oBACb,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAClC,oBAAoB,CAAC,iBAAiB,CACvC;iBACF;gBACD,SAAS,EAAE,WAAW;gBACtB,IAAI,EAAE,oBAAoB,CAAC,UAAU;gBACrC,GAAG,EAAE,cAAc;gBACnB,GAAG,EAAE,KAAK,CAAC,EAAE;oBACX,OAAO;wBACL,8BAA8B;wBAC9B,GAAG,mBAAmB;wBACtB,oBAAoB,CAAC,UAAU;wBAC/B,GAAG,kBAAkB;qBACtB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACtC,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QACD,OAAO;YACL,GAAG,CAAC,CAAC,mBAAmB,IAAI;gBAC1B,kBAAkB,EAAE,cAAc;aACnC,CAAC;YACF,GAAG,CAAC,CAAC,YAAY,IAAI;gBACnB,WAAW,EAAE,cAAc;aAC5B,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js deleted file mode 100644 index c876605f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-dynamic-delete', - meta: { - docs: { - description: 'Disallow using the `delete` operator on computed key expressions', - recommended: 'strict', - }, - fixable: 'code', - messages: { - dynamicDelete: 'Do not delete dynamically computed property keys.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - function createFixer(member) { - if (member.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof member.property.value === 'string') { - return createPropertyReplacement(member.property, `.${member.property.value}`); - } - return undefined; - } - return { - 'UnaryExpression[operator=delete]'(node) { - if (node.argument.type !== utils_1.AST_NODE_TYPES.MemberExpression || - !node.argument.computed || - isAcceptableIndexExpression(node.argument.property)) { - return; - } - context.report({ - fix: createFixer(node.argument), - messageId: 'dynamicDelete', - node: node.argument.property, - }); - }, - }; - function createPropertyReplacement(property, replacement) { - return (fixer) => fixer.replaceTextRange(getTokenRange(property), replacement); - } - function getTokenRange(property) { - return [ - (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(property), util_1.NullThrowsReasons.MissingToken('token before', 'property')).range[0], - (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(property), util_1.NullThrowsReasons.MissingToken('token after', 'property')).range[1], - ]; - } - }, -}); -function isAcceptableIndexExpression(property) { - return ((property.type === utils_1.AST_NODE_TYPES.Literal && - ['string', 'number'].includes(typeof property.value)) || - (property.type === utils_1.AST_NODE_TYPES.UnaryExpression && - property.operator === '-' && - property.argument.type === utils_1.AST_NODE_TYPES.Literal && - typeof property.argument.value === 'number')); -} -//# sourceMappingURL=no-dynamic-delete.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map deleted file mode 100644 index 28690ec6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-dynamic-delete.js","sourceRoot":"","sources":["../../src/rules/no-dynamic-delete.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAoE;AAEpE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,aAAa,EAAE,mDAAmD;SACnE;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,WAAW,CAClB,MAAiC;YAEjC,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,EACzC,CAAC;gBACD,OAAO,yBAAyB,CAC9B,MAAM,CAAC,QAAQ,EACf,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,CAC5B,CAAC;YACJ,CAAC;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,kCAAkC,CAAC,IAA8B;gBAC/D,IACE,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACtD,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ;oBACvB,2BAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACnD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,GAAG,EAAE,WAAW,CAAC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ules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js deleted file mode 100644 index 72fd6472..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +++ /dev/null @@ -1,132 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-empty-function'); -const schema = (0, util_1.deepMerge)( -// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 -Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema, { - properties: { - allow: { - items: { - type: 'string', - enum: [ - 'functions', - 'arrowFunctions', - 'generatorFunctions', - 'methods', - 'generatorMethods', - 'getters', - 'setters', - 'constructors', - 'private-constructors', - 'protected-constructors', - 'asyncFunctions', - 'asyncMethods', - 'decoratedFunctions', - 'overrideMethods', - ], - }, - }, - }, -}); -exports.default = (0, util_1.createRule)({ - name: 'no-empty-function', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow empty functions', - recommended: 'stylistic', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [schema], - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - allow: [], - }, - ], - create(context, [{ allow = [] }]) { - const rules = baseRule.create(context); - const isAllowedProtectedConstructors = allow.includes('protected-constructors'); - const isAllowedPrivateConstructors = allow.includes('private-constructors'); - const isAllowedDecoratedFunctions = allow.includes('decoratedFunctions'); - const isAllowedOverrideMethods = allow.includes('overrideMethods'); - /** - * Check if the method body is empty - * @param node the node to be validated - * @returns true if the body is empty - * @private - */ - function isBodyEmpty(node) { - return node.body.body.length === 0; - } - /** - * Check if method has parameter properties - * @param node the node to be validated - * @returns true if the body has parameter properties - * @private - */ - function hasParameterProperties(node) { - return node.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty); - } - /** - * @param node the node to be validated - * @returns true if the constructor is allowed to be empty - * @private - */ - function isAllowedEmptyConstructor(node) { - const parent = node.parent; - if (isBodyEmpty(node) && - parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - parent.kind === 'constructor') { - const { accessibility } = parent; - return ( - // allow protected constructors - (accessibility === 'protected' && isAllowedProtectedConstructors) || - // allow private constructors - (accessibility === 'private' && isAllowedPrivateConstructors) || - // allow constructors which have parameter properties - hasParameterProperties(node)); - } - return false; - } - /** - * @param node the node to be validated - * @returns true if a function has decorators - * @private - */ - function isAllowedEmptyDecoratedFunctions(node) { - if (isAllowedDecoratedFunctions && isBodyEmpty(node)) { - const decorators = node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition - ? node.parent.decorators - : undefined; - return !!decorators && !!decorators.length; - } - return false; - } - function isAllowedEmptyOverrideMethod(node) { - return (isAllowedOverrideMethods && - isBodyEmpty(node) && - node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.override); - } - return { - ...rules, - FunctionExpression(node) { - if (isAllowedEmptyConstructor(node) || - isAllowedEmptyDecoratedFunctions(node) || - isAllowedEmptyOverrideMethod(node)) { - return; - } - rules.FunctionExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=no-empty-function.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map deleted file mode 100644 index ff657bda..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-empty-function.js","sourceRoot":"","sources":["../../src/rules/no-empty-function.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAO1D,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ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CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBAClD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU;oBACxB,CAAC,CAAC,SAAS,CAAC;gBAChB,OAAO,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;YAC7C,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,SAAS,4BAA4B,CACnC,IAAiC;YAEjC,OAAO,CACL,wBAAwB;gBACxB,WAAW,CAAC,IAAI,CAAC;gBACjB,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;gBACpD,IAAI,CAAC,MAAM,CAAC,QAAQ,CACrB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,GAAG,KAAK;YACR,kBAAkB,CAAC,IAAI;gBACrB,IACE,yBAAyB,CAAC,IAAI,CAAC;oBAC/B,gCAAgC,CAAC,IAAI,CAAC;oBACtC,4BAA4B,CAAC,IAAI,CAAC,EAClC,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js deleted file mode 100644 index 74c885ca..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-empty-interface', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the declaration of empty interfaces', - }, - deprecated: true, - replacedBy: ['@typescript-eslint/no-empty-object-type'], - fixable: 'code', - hasSuggestions: true, - messages: { - noEmpty: 'An empty interface is equivalent to `{}`.', - noEmptyWithSuper: 'An interface declaring no members is equivalent to its supertype.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowSingleExtends: { - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowSingleExtends: false, - }, - ], - create(context, [{ allowSingleExtends }]) { - return { - TSInterfaceDeclaration(node) { - if (node.body.body.length !== 0) { - // interface contains members --> Nothing to report - return; - } - const extend = node.extends; - if (extend.length === 0) { - context.report({ - node: node.id, - messageId: 'noEmpty', - }); - } - else if (extend.length === 1) { - // interface extends exactly 1 interface --> Report depending on rule setting - if (!allowSingleExtends) { - const fix = (fixer) => { - let typeParam = ''; - if (node.typeParameters) { - typeParam = context.sourceCode.getText(node.typeParameters); - } - return fixer.replaceText(node, `type ${context.sourceCode.getText(node.id)}${typeParam} = ${context.sourceCode.getText(extend[0])}`); - }; - const scope = context.sourceCode.getScope(node); - const mergedWithClassDeclaration = scope.set - .get(node.id.name) - ?.defs.some(def => def.node.type === utils_1.AST_NODE_TYPES.ClassDeclaration); - const isInAmbientDeclaration = !!((0, util_1.isDefinitionFile)(context.filename) && - scope.type === scope_manager_1.ScopeType.tsModule && - scope.block.declare); - const useAutoFix = !(isInAmbientDeclaration || mergedWithClassDeclaration); - context.report({ - node: node.id, - messageId: 'noEmptyWithSuper', - ...(useAutoFix - ? { fix } - : !mergedWithClassDeclaration - ? { - suggest: [ - { - messageId: 'noEmptyWithSuper', - fix, - }, - ], - } - : null), - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-empty-interface.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map deleted file mode 100644 index 5e7f5339..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-empty-interface.js","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":";;AAAA,oEAA6D;AAE7D,oDAA0D;AAE1D,kCAAuD;AASvD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;SAC5D;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,yCAAyC,CAAC;QACvD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,OAAO,EAAE,2CAA2C;YACpD,gBAAgB,EACd,mEAAmE;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,KAAK;SAC1B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC;QACtC,OAAO;YACL,sBAAsB,CAAC,IAAI;gBACzB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAChC,mDAAmD;oBACnD,OAAO;gBACT,CAAC;gBAED,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACxB,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,IAAI,CAAC,EAAE;wBACb,SAAS,EAAE,SAAS;qBACrB,CAAC,CAAC;gBACL,CAAC;qBAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC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AC,CAAC,EAAE,GAAG,EAAE;gCACT,CAAC,CAAC,CAAC,0BAA0B;oCAC3B,CAAC,CAAC;wCACE,OAAO,EAAE;4CACP;gDACE,SAAS,EAAE,kBAAkB;gDAC7B,GAAG;6CACJ;yCACF;qCACF;oCACH,CAAC,CAAC,IAAI,CAAC;yBACZ,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js deleted file mode 100644 index 8124d10d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const noEmptyMessage = (emptyType) => [ - `${emptyType} allows any non-nullish value, including literals like \`0\` and \`""\`.`, - "- If that's what you want, disable this lint rule with an inline comment or configure the '{{ option }}' rule option.", - '- If you want a type meaning "any object", you probably want `object` instead.', - '- If you want a type meaning "any value", you probably want `unknown` instead.', -].join('\n'); -exports.default = (0, util_1.createRule)({ - name: 'no-empty-object-type', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow accidentally using the "empty object" type', - recommended: 'recommended', - }, - hasSuggestions: true, - messages: { - noEmptyInterface: noEmptyMessage('An empty interface declaration'), - noEmptyObject: noEmptyMessage('The `{}` ("empty object") type'), - noEmptyInterfaceWithSuper: 'An interface declaring no members is equivalent to its supertype.', - replaceEmptyInterface: 'Replace empty interface with `{{replacement}}`.', - replaceEmptyInterfaceWithSuper: 'Replace empty interface with a type alias.', - replaceEmptyObjectType: 'Replace `{}` with `{{replacement}}`.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowInterfaces: { - enum: ['always', 'never', 'with-single-extends'], - type: 'string', - }, - allowObjectTypes: { - enum: ['always', 'never'], - type: 'string', - }, - allowWithName: { - type: 'string', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowInterfaces: 'never', - allowObjectTypes: 'never', - }, - ], - create(context, [{ allowInterfaces, allowWithName, allowObjectTypes }]) { - const allowWithNameTester = allowWithName - ? new RegExp(allowWithName, 'u') - : undefined; - return { - ...(allowInterfaces !== 'always' && { - TSInterfaceDeclaration(node) { - if (allowWithNameTester?.test(node.id.name)) { - return; - } - const extend = node.extends; - if (node.body.body.length !== 0 || - (extend.length === 1 && - allowInterfaces === 'with-single-extends') || - extend.length > 1) { - return; - } - const scope = context.sourceCode.getScope(node); - const mergedWithClassDeclaration = scope.set - .get(node.id.name) - ?.defs.some(def => def.node.type === utils_1.AST_NODE_TYPES.ClassDeclaration); - if (extend.length === 0) { - context.report({ - data: { option: 'allowInterfaces' }, - node: node.id, - messageId: 'noEmptyInterface', - ...(!mergedWithClassDeclaration && { - suggest: ['object', 'unknown'].map(replacement => ({ - data: { replacement }, - fix(fixer) { - const id = context.sourceCode.getText(node.id); - const typeParam = node.typeParameters - ? context.sourceCode.getText(node.typeParameters) - : ''; - return fixer.replaceText(node, `type ${id}${typeParam} = ${replacement}`); - }, - messageId: 'replaceEmptyInterface', - })), - }), - }); - return; - } - context.report({ - node: node.id, - messageId: 'noEmptyInterfaceWithSuper', - ...(!mergedWithClassDeclaration && { - suggest: [ - { - fix(fixer) { - const extended = context.sourceCode.getText(extend[0]); - const id = context.sourceCode.getText(node.id); - const typeParam = node.typeParameters - ? context.sourceCode.getText(node.typeParameters) - : ''; - return fixer.replaceText(node, `type ${id}${typeParam} = ${extended}`); - }, - messageId: 'replaceEmptyInterfaceWithSuper', - }, - ], - }), - }); - }, - }), - ...(allowObjectTypes !== 'always' && { - TSTypeLiteral(node) { - if (node.members.length || - node.parent.type === utils_1.AST_NODE_TYPES.TSIntersectionType || - (allowWithNameTester && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration && - allowWithNameTester.test(node.parent.id.name))) { - return; - } - context.report({ - data: { option: 'allowObjectTypes' }, - messageId: 'noEmptyObject', - node, - suggest: ['object', 'unknown'].map(replacement => ({ - data: { replacement }, - messageId: 'replaceEmptyObjectType', - fix: (fixer) => fixer.replaceText(node, replacement), - })), - }); - }, - }), - }; - }, -}); -//# sourceMappingURL=no-empty-object-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map deleted file mode 100644 index 085fdf68..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-empty-object-type.js","sourceRoot":"","sources":["../../src/rules/no-empty-object-type.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAsBrC,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAU,EAAE,CACnD;IACE,GAAG,SAAS,0EAA0E;IACtF,uHAAuH;IACvH,gFAAgF;IAChF,gFAAgF;CACjF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEf,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,gBAAgB,EAAE,cAAc,CAAC,gCAAgC,CAAC;YAClE,aAAa,EAAE,cAAc,CAAC,gCAAgC,CAAC;YAC/D,yBAAyB,EACvB,mEAAmE;YACrE,qBAAqB,EAAE,iDAAiD;YACxE,8BAA8B,EAC5B,4CAA4C;YAC9C,sBAAsB,EAAE,sCAAsC;SAC/D;QACD,MAAM,EAAE;YACN;g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E,wBAAwB;4BACnC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE,CAC/B,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC;yBACvC,CAAC,CAAC;qBACJ,CAAC,CAAC;gBACL,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js deleted file mode 100644 index 58b33cb2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +++ /dev/null @@ -1,170 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-explicit-any', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the `any` type', - recommended: 'recommended', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - unexpectedAny: 'Unexpected any. Specify a different type.', - suggestUnknown: 'Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.', - suggestNever: "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.", - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - fixToUnknown: { - description: 'Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type.', - type: 'boolean', - }, - ignoreRestArgs: { - description: 'Whether to ignore rest parameter arrays.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - fixToUnknown: false, - ignoreRestArgs: false, - }, - ], - create(context, [{ ignoreRestArgs, fixToUnknown }]) { - /** - * Checks if the node is an arrow function, function/constructor declaration or function expression - * @param node the node to be validated. - * @returns true if the node is any kind of function declaration or expression - * @private - */ - function isNodeValidFunction(node) { - return [ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, // const x = (...args: any[]) => {}; - utils_1.AST_NODE_TYPES.FunctionDeclaration, // function f(...args: any[]) {} - utils_1.AST_NODE_TYPES.FunctionExpression, // const x = function(...args: any[]) {}; - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, // declare class A { f(...args: any[]): unknown; } - utils_1.AST_NODE_TYPES.TSFunctionType, // type T = (...args: any[]) => unknown; - utils_1.AST_NODE_TYPES.TSConstructorType, // type T = new (...args: any[]) => unknown - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, // type T = {(...args: any[]): unknown}; - utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, // type T = {new (...args: any[]): unknown}; - utils_1.AST_NODE_TYPES.TSMethodSignature, // type T = {f(...args: any[]): unknown}; - utils_1.AST_NODE_TYPES.TSDeclareFunction, // declare function _8(...args: any[]): unknown; - ].includes(node.type); - } - /** - * Checks if the node is a rest element child node of a function - * @param node the node to be validated. - * @returns true if the node is a rest element child node of a function - * @private - */ - function isNodeRestElementInFunction(node) { - return (node.type === utils_1.AST_NODE_TYPES.RestElement && - isNodeValidFunction(node.parent)); - } - /** - * Checks if the node is a TSTypeOperator node with a readonly operator - * @param node the node to be validated. - * @returns true if the node is a TSTypeOperator node with a readonly operator - * @private - */ - function isNodeReadonlyTSTypeOperator(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - node.operator === 'readonly'); - } - /** - * Checks if the node is a TSTypeReference node with an Array identifier - * @param node the node to be validated. - * @returns true if the node is a TSTypeReference node with an Array identifier - * @private - */ - function isNodeValidArrayTSTypeReference(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - ['Array', 'ReadonlyArray'].includes(node.typeName.name)); - } - /** - * Checks if the node is a valid TSTypeOperator or TSTypeReference node - * @param node the node to be validated. - * @returns true if the node is a valid TSTypeOperator or TSTypeReference node - * @private - */ - function isNodeValidTSType(node) { - return (isNodeReadonlyTSTypeOperator(node) || - isNodeValidArrayTSTypeReference(node)); - } - /** - * Checks if the great grand-parent node is a RestElement node in a function - * @param node the node to be validated. - * @returns true if the great grand-parent node is a RestElement node in a function - * @private - */ - function isGreatGrandparentRestElement(node) { - return (node.parent?.parent?.parent != null && - isNodeRestElementInFunction(node.parent.parent.parent)); - } - /** - * Checks if the great great grand-parent node is a valid RestElement node in a function - * @param node the node to be validated. - * @returns true if the great great grand-parent node is a valid RestElement node in a function - * @private - */ - function isGreatGreatGrandparentRestElement(node) { - return (node.parent?.parent?.parent?.parent != null && - isNodeValidTSType(node.parent.parent) && - isNodeRestElementInFunction(node.parent.parent.parent.parent)); - } - /** - * Checks if the great grand-parent or the great great grand-parent node is a RestElement node - * @param node the node to be validated. - * @returns true if the great grand-parent or the great great grand-parent node is a RestElement node - * @private - */ - function isNodeDescendantOfRestElementInFunction(node) { - return (isGreatGrandparentRestElement(node) || - isGreatGreatGrandparentRestElement(node)); - } - return { - TSAnyKeyword(node) { - if (ignoreRestArgs && isNodeDescendantOfRestElementInFunction(node)) { - return; - } - const fixOrSuggest = { - fix: null, - suggest: [ - { - messageId: 'suggestUnknown', - fix(fixer) { - return fixer.replaceText(node, 'unknown'); - }, - }, - { - messageId: 'suggestNever', - fix(fixer) { - return fixer.replaceText(node, 'never'); - }, - }, - ], - }; - if (fixToUnknown) { - fixOrSuggest.fix = (fixer) => fixer.replaceText(node, 'unknown'); - } - context.report({ - node, - messageId: 'unexpectedAny', - ...fixOrSuggest, - }); - }, - }; - }, -}); -//# sourceMappingURL=no-explicit-any.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map deleted file mode 100644 index ebbb3270..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-explicit-any.js","sourceRoot":"","sources":["../../src/rules/no-explicit-any.ts"],"names":[],"mappings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EAAE,MAAM,IAAI,IAAI;gBAC3C,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAC9D,CAAC;QACJ,CAAC;QAED;;;;;WAKG;QACH,SAAS,uCAAuC,CAC9C,IAAmB;YAEnB,OAAO,CACL,6BAA6B,CAAC,IAAI,CAAC;gBACnC,kCAAkC,CAAC,IAAI,CAAC,CACzC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,IAAI,cAAc,IAAI,uCAAuC,CAAC,IAAI,CAAC,EAAE,CAAC;oBACpE,OAAO;gBACT,CAAC;gBAED,MAAM,YAAY,GAGd;oBACF,GAAG,EAAE,IAAI;oBACT,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,gBAAgB;4BAC3B,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;4BAC5C,CAAC;yBACF;wBACD;4BACE,SAAS,EAAE,cAAc;4BACzB,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;4BAC1C,CAAC;yBACF;qBACF;iBACF,CAAC;gBAEF,IAAI,YAAY,EAAE,CAAC;oBACjB,YAAY,CAAC,GAAG,GAAG,CAAC,KAAK,EAAoB,EAAE,CAC7C,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;gBACvC,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,eAAe;oBAC1B,GAAG,YAAY;iBAChB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js deleted file mode 100644 index 5397066b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-extra-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow extra non-null assertions', - recommended: 'recommended', - }, - fixable: 'code', - schema: [], - messages: { - noExtraNonNullAssertion: 'Forbidden extra non-null assertion.', - }, - }, - defaultOptions: [], - create(context) { - function checkExtraNonNullAssertion(node) { - context.report({ - node, - messageId: 'noExtraNonNullAssertion', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }); - } - return { - 'TSNonNullExpression > TSNonNullExpression': checkExtraNonNullAssertion, - 'MemberExpression[optional = true] > TSNonNullExpression.object': checkExtraNonNullAssertion, - 'CallExpression[optional = true] > TSNonNullExpression.callee': checkExtraNonNullAssertion, - }; - }, -}); -//# sourceMappingURL=no-extra-non-null-assertion.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map deleted file mode 100644 index 128c405b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extra-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-extra-non-null-assertion.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,uBAAuB,EAAE,qCAAqC;SAC/D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,0BAA0B,CACjC,IAAkC;YAElC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,yBAAyB;gBACpC,GAAG,CAAC,KAAK;oBACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/D,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,2CAA2C,EAAE,0BAA0B;YACvE,gEAAgE,EAC9D,0BAA0B;YAC5B,8DAA8D,EAC5D,0BAA0B;SAC7B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js deleted file mode 100644 index 3299e06a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +++ /dev/null @@ -1,120 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-extraneous-class', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow classes used as namespaces', - recommended: 'strict', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowConstructorOnly: { - description: 'Whether to allow extraneous classes that contain only a constructor.', - type: 'boolean', - }, - allowEmpty: { - description: 'Whether to allow extraneous classes that have no body (i.e. are empty).', - type: 'boolean', - }, - allowStaticOnly: { - description: 'Whether to allow extraneous classes that only contain static members.', - type: 'boolean', - }, - allowWithDecorator: { - description: 'Whether to allow extraneous classes that include a decorator.', - type: 'boolean', - }, - }, - }, - ], - messages: { - empty: 'Unexpected empty class.', - onlyStatic: 'Unexpected class with only static properties.', - onlyConstructor: 'Unexpected class with only a constructor.', - }, - }, - defaultOptions: [ - { - allowConstructorOnly: false, - allowEmpty: false, - allowStaticOnly: false, - allowWithDecorator: false, - }, - ], - create(context, [{ allowConstructorOnly, allowEmpty, allowStaticOnly, allowWithDecorator }]) { - const isAllowWithDecorator = (node) => { - return !!(allowWithDecorator && - node?.decorators && - node.decorators.length !== 0); - }; - return { - ClassBody(node) { - const parent = node.parent; - if (parent.superClass || isAllowWithDecorator(parent)) { - return; - } - const reportNode = parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration && parent.id - ? parent.id - : parent; - if (node.body.length === 0) { - if (allowEmpty) { - return; - } - context.report({ - node: reportNode, - messageId: 'empty', - }); - return; - } - let onlyStatic = true; - let onlyConstructor = true; - for (const prop of node.body) { - if (prop.type === utils_1.AST_NODE_TYPES.MethodDefinition && - prop.kind === 'constructor') { - if (prop.value.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty)) { - onlyConstructor = false; - onlyStatic = false; - } - } - else { - onlyConstructor = false; - if (((prop.type === utils_1.AST_NODE_TYPES.PropertyDefinition || - prop.type === utils_1.AST_NODE_TYPES.MethodDefinition) && - !prop.static) || - prop.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || - prop.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition // `static abstract` methods and properties are currently not supported. See: https://github.com/microsoft/TypeScript/issues/34516 - ) { - onlyStatic = false; - } - } - if (!(onlyStatic || onlyConstructor)) { - break; - } - } - if (onlyConstructor) { - if (!allowConstructorOnly) { - context.report({ - node: reportNode, - messageId: 'onlyConstructor', - }); - } - return; - } - if (onlyStatic && !allowStaticOnly) { - context.report({ - node: reportNode, - messageId: 'onlyStatic', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-extraneous-class.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map deleted file mode 100644 index 9e89f5f1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extraneous-class.js","sourceRoot":"","sources":["../../src/rules/no-extraneous-class.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAYrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE,QAAQ;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE;wBACpB,WAAW,EACT,sEAAsE;wBACxE,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;wBACV,WAAW,EACT,yEAAyE;wBAC3E,IAAI,EAAE,SAAS;qBAChB;oBACD,eAAe,EAAE;wBACf,WAAW,EACT,uEAAuE;wBACzE,IAAI,EAAE,SAAS;qBAChB;oBACD,kBAAkB,EAAE;wBAClB,WAAW,EACT,+DAA+D;wBACjE,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,yBAAyB;YAChC,UAAU,EAAE,+CAA+C;YAC3D,eAAe,EAAE,2CAA2C;SAC7D;KACF;IACD,cAAc,EAAE;QACd;YACE,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE,KAAK;YACjB,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,KAAK;SA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AK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAC3D,EACD,CAAC;4BACD,eAAe,GAAG,KAAK,CAAC;4BACxB,UAAU,GAAG,KAAK,CAAC;wBACrB,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,eAAe,GAAG,KAAK,CAAC;wBACxB,IACE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;4BAC/C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAAC;4BAC9C,CAAC,IAAI,CAAC,MAAM,CAAC;4BACf,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,4BAA4B;4BACzD,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,0BAA0B,CAAC,kIAAkI;0BAC1L,CAAC;4BACD,UAAU,GAAG,KAAK,CAAC;wBACrB,CAAC;oBACH,CAAC;oBACD,IAAI,CAAC,CAAC,UAAU,IAAI,eAAe,CAAC,EAAE,CAAC;wBACrC,MAAM;oBACR,CAAC;gBACH,CAAC;gBAED,IAAI,eAAe,EAAE,CAAC;oBACpB,IAAI,CAAC,oBAAoB,EAAE,CAAC;wBAC1B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,iBAAiB;yBAC7B,CAAC,CAAC;oBACL,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,UAAU,IAAI,CAAC,eAAe,EAAE,CAAC;oBACnC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js deleted file mode 100644 index c5e0a1f6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +++ /dev/null @@ -1,386 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const messageBase = 'Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler.'; -const messageBaseVoid = 'Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler' + - ' or be explicitly marked as ignored with the `void` operator.'; -const messageRejectionHandler = 'A rejection handler that is not a function will be ignored.'; -const messagePromiseArray = "An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar."; -const messagePromiseArrayVoid = "An array of Promises may be unintentional. Consider handling the promises' fulfillment or rejection with Promise.all or similar," + - ' or explicitly marking the expression as ignored with the `void` operator.'; -exports.default = (0, util_1.createRule)({ - name: 'no-floating-promises', - meta: { - docs: { - description: 'Require Promise-like statements to be handled appropriately', - recommended: 'recommended', - requiresTypeChecking: true, - }, - hasSuggestions: true, - messages: { - floating: messageBase, - floatingFixAwait: 'Add await operator.', - floatingVoid: messageBaseVoid, - floatingFixVoid: 'Add void operator to ignore.', - floatingUselessRejectionHandler: messageBase + ' ' + messageRejectionHandler, - floatingUselessRejectionHandlerVoid: messageBaseVoid + ' ' + messageRejectionHandler, - floatingPromiseArray: messagePromiseArray, - floatingPromiseArrayVoid: messagePromiseArrayVoid, - }, - schema: [ - { - type: 'object', - properties: { - allowForKnownSafePromises: util_1.readonlynessOptionsSchema.properties.allow, - allowForKnownSafeCalls: util_1.readonlynessOptionsSchema.properties.allow, - checkThenables: { - description: 'Whether to check all "Thenable"s, not just the built-in Promise type.', - type: 'boolean', - }, - ignoreVoid: { - description: 'Whether to ignore `void` expressions.', - type: 'boolean', - }, - ignoreIIFE: { - description: 'Whether to ignore async IIFEs (Immediately Invoked Function Expressions).', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - allowForKnownSafeCalls: util_1.readonlynessOptionsDefaults.allow, - allowForKnownSafePromises: util_1.readonlynessOptionsDefaults.allow, - checkThenables: false, - ignoreIIFE: false, - ignoreVoid: true, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const { checkThenables } = options; - // TODO: #5439 - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - const allowForKnownSafePromises = options.allowForKnownSafePromises; - const allowForKnownSafeCalls = options.allowForKnownSafeCalls; - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - return { - ExpressionStatement(node) { - if (options.ignoreIIFE && isAsyncIife(node)) { - return; - } - let expression = node.expression; - if (expression.type === utils_1.AST_NODE_TYPES.ChainExpression) { - expression = expression.expression; - } - if (isKnownSafePromiseReturn(expression)) { - return; - } - const { isUnhandled, nonFunctionHandler, promiseArray } = isUnhandledPromise(checker, expression); - if (isUnhandled) { - if (promiseArray) { - context.report({ - node, - messageId: options.ignoreVoid - ? 'floatingPromiseArrayVoid' - : 'floatingPromiseArray', - }); - } - else if (options.ignoreVoid) { - context.report({ - node, - messageId: nonFunctionHandler - ? 'floatingUselessRejectionHandlerVoid' - : 'floatingVoid', - suggest: [ - { - messageId: 'floatingFixVoid', - fix(fixer) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node.expression); - if (isHigherPrecedenceThanUnary(tsNode)) { - return fixer.insertTextBefore(node, 'void '); - } - return [ - fixer.insertTextBefore(node, 'void ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - }, - }, - { - messageId: 'floatingFixAwait', - fix: (fixer) => addAwait(fixer, expression, node), - }, - ], - }); - } - else { - context.report({ - node, - messageId: nonFunctionHandler - ? 'floatingUselessRejectionHandler' - : 'floating', - suggest: [ - { - messageId: 'floatingFixAwait', - fix: (fixer) => addAwait(fixer, expression, node), - }, - ], - }); - } - } - }, - }; - function addAwait(fixer, expression, node) { - if (expression.type === utils_1.AST_NODE_TYPES.UnaryExpression && - expression.operator === 'void') { - return fixer.replaceTextRange([expression.range[0], expression.range[0] + 4], 'await'); - } - const tsNode = services.esTreeNodeToTSNodeMap.get(node.expression); - if (isHigherPrecedenceThanUnary(tsNode)) { - return fixer.insertTextBefore(node, 'await '); - } - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - } - function isKnownSafePromiseReturn(node) { - if (node.type !== utils_1.AST_NODE_TYPES.CallExpression) { - return false; - } - const type = services.getTypeAtLocation(node.callee); - return allowForKnownSafeCalls.some(allowedType => (0, util_1.typeMatchesSpecifier)(type, allowedType, services.program)); - } - function isHigherPrecedenceThanUnary(node) { - const operator = ts.isBinaryExpression(node) - ? node.operatorToken.kind - : ts.SyntaxKind.Unknown; - const nodePrecedence = (0, util_1.getOperatorPrecedence)(node.kind, operator); - return nodePrecedence > util_1.OperatorPrecedence.Unary; - } - function isAsyncIife(node) { - if (node.expression.type !== utils_1.AST_NODE_TYPES.CallExpression) { - return false; - } - return (node.expression.callee.type === - utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.expression.callee.type === utils_1.AST_NODE_TYPES.FunctionExpression); - } - function isValidRejectionHandler(rejectionHandler) { - return (services.program - .getTypeChecker() - .getTypeAtLocation(services.esTreeNodeToTSNodeMap.get(rejectionHandler)) - .getCallSignatures().length > 0); - } - function isUnhandledPromise(checker, node) { - if (node.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { - return { isUnhandled: false }; - } - // First, check expressions whose resulting types may not be promise-like - if (node.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - // Any child in a comma expression could return a potentially unhandled - // promise, so we check them all regardless of whether the final returned - // value is promise-like. - return (node.expressions - .map(item => isUnhandledPromise(checker, item)) - .find(result => result.isUnhandled) ?? { isUnhandled: false }); - } - if (!options.ignoreVoid && - node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === 'void') { - // Similarly, a `void` expression always returns undefined, so we need to - // see what's inside it without checking the type of the overall expression. - return isUnhandledPromise(checker, node.argument); - } - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - // Check the type. At this point it can't be unhandled if it isn't a promise - // or array thereof. - if (isPromiseArray(tsNode)) { - return { isUnhandled: true, promiseArray: true }; - } - // await expression addresses promises, but not promise arrays. - if (node.type === utils_1.AST_NODE_TYPES.AwaitExpression) { - // you would think this wouldn't be strictly necessary, since we're - // anyway checking the type of the expression, but, unfortunately TS - // reports the result of `await (promise as Promise & number)` - // as `Promise & number` instead of `number`. - return { isUnhandled: false }; - } - if (!isPromiseLike(tsNode)) { - return { isUnhandled: false }; - } - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - // If the outer expression is a call, a `.catch()` or `.then()` with - // rejection handler handles the promise. - const catchRejectionHandler = getRejectionHandlerFromCatchCall(node); - if (catchRejectionHandler) { - if (isValidRejectionHandler(catchRejectionHandler)) { - return { isUnhandled: false }; - } - return { isUnhandled: true, nonFunctionHandler: true }; - } - const thenRejectionHandler = getRejectionHandlerFromThenCall(node); - if (thenRejectionHandler) { - if (isValidRejectionHandler(thenRejectionHandler)) { - return { isUnhandled: false }; - } - return { isUnhandled: true, nonFunctionHandler: true }; - } - // `x.finally()` is transparent to resolution of the promise, so check `x`. - // ("object" in this context is the `x` in `x.finally()`) - const promiseFinallyObject = getObjectFromFinallyCall(node); - if (promiseFinallyObject) { - return isUnhandledPromise(checker, promiseFinallyObject); - } - // All other cases are unhandled. - return { isUnhandled: true }; - } - else if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - // We must be getting the promise-like value from one of the branches of the - // ternary. Check them directly. - const alternateResult = isUnhandledPromise(checker, node.alternate); - if (alternateResult.isUnhandled) { - return alternateResult; - } - return isUnhandledPromise(checker, node.consequent); - } - else if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - const leftResult = isUnhandledPromise(checker, node.left); - if (leftResult.isUnhandled) { - return leftResult; - } - return isUnhandledPromise(checker, node.right); - } - // Anything else is unhandled. - return { isUnhandled: true }; - } - function isPromiseArray(node) { - const type = checker.getTypeAtLocation(node); - for (const ty of tsutils - .unionTypeParts(type) - .map(t => checker.getApparentType(t))) { - if (checker.isArrayType(ty)) { - const arrayType = checker.getTypeArguments(ty)[0]; - if (isPromiseLike(node, arrayType)) { - return true; - } - } - if (checker.isTupleType(ty)) { - for (const tupleElementType of checker.getTypeArguments(ty)) { - if (isPromiseLike(node, tupleElementType)) { - return true; - } - } - } - } - return false; - } - function isPromiseLike(node, type) { - type ??= checker.getTypeAtLocation(node); - // The highest priority is to allow anything allowlisted - if (allowForKnownSafePromises.some(allowedType => (0, util_1.typeMatchesSpecifier)(type, allowedType, services.program))) { - return false; - } - // Otherwise, we always consider the built-in Promise to be Promise-like... - const typeParts = tsutils.unionTypeParts(checker.getApparentType(type)); - if (typeParts.some(typePart => (0, util_1.isBuiltinSymbolLike)(services.program, typePart, 'Promise'))) { - return true; - } - // ...and only check all Thenables if explicitly told to - if (!checkThenables) { - return false; - } - // Modified from tsutils.isThenable() to only consider thenables which can be - // rejected/caught via a second parameter. Original source (MIT licensed): - // - // https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125 - for (const ty of typeParts) { - const then = ty.getProperty('then'); - if (then === undefined) { - continue; - } - const thenType = checker.getTypeOfSymbolAtLocation(then, node); - if (hasMatchingSignature(thenType, signature => signature.parameters.length >= 2 && - isFunctionParam(checker, signature.parameters[0], node) && - isFunctionParam(checker, signature.parameters[1], node))) { - return true; - } - } - return false; - } - }, -}); -function hasMatchingSignature(type, matcher) { - for (const t of tsutils.unionTypeParts(type)) { - if (t.getCallSignatures().some(matcher)) { - return true; - } - } - return false; -} -function isFunctionParam(checker, param, node) { - const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); - for (const t of tsutils.unionTypeParts(type)) { - if (t.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function getRejectionHandlerFromCatchCall(expression) { - if (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'catch' && - expression.arguments.length >= 1) { - return expression.arguments[0]; - } - return undefined; -} -function getRejectionHandlerFromThenCall(expression) { - if (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'then' && - expression.arguments.length >= 2) { - return expression.arguments[1]; - } - return undefined; -} -function getObjectFromFinallyCall(expression) { - return expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'finally' - ? expression.callee.object - : undefined; -} -//# sourceMappingURL=no-floating-promises.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map deleted file mode 100644 index 463e537c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAGjC,kCASiB;AAsBjB,MAAM,WAAW,GACf,4GAA4G,CAAC;AAE/G,MAAM,eAAe,GACnB,wGAAwG;IACxG,+DAA+D,CAAC;AAElE,MAAM,uBAAuB,GAC3B,6DAA6D,CAAC;AAEhE,MAAM,mBAAmB,GACvB,kIAAkI,CAAC;AAErI,MAAM,uBAAuB,GAC3B,kIAAkI;IAClI,4EAA4E,CAAC;AAE/E,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,QAAQ,EAAE,WAAW;YACrB,gBAAgB,EAAE,qBAAqB;YACvC,YAAY,EAAE,eAAe;YAC7B,eAAe,EAAE,8BAA8B;YAC/C,+BAA+B,EAC7B,WAAW,GAAG,GAAG,GAAG,uBAAuB;YAC7C,mCAAmC,EACjC,eAAe,GAAG,GAAG,GAAG,uBAAuB;YACjD,oBAAoB,EAAE,mBAAmB;YACzC,wBAAwB,EAAE,uBAAuB;SAClD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,yBAAyB,EAAE,gCAAyB,CAAC,UAAU,CAAC,KAAK;oBACrE,sBAAsB,EAAE,gCAAyB,CAAC,UAAU,CAAC,KAAK;oBAClE,cAAc,EAAE;wBACd,WAAW,EACT,uEAAuE;wBACzE,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;wBACV,WAAW,EAAE,uCAAuC;wBAC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Q,CAAC,IAAI,KAAK,OAAO;QAC3C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC,CAAC;QACD,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,+BAA+B,CACtC,UAAmC;IAEnC,IACE,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;QAC1C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,EAChC,CAAC;QACD,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,wBAAwB,CAC/B,UAAmC;IAEnC,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC/D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC7C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM;QAC1B,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js deleted file mode 100644 index 175ab3ce..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getForStatementHeadLoc_1 = require("../util/getForStatementHeadLoc"); -exports.default = (0, util_1.createRule)({ - name: 'no-for-in-array', - meta: { - docs: { - description: 'Disallow iterating over an array with a for-in loop', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - forInViolation: 'For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead.', - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - return { - ForInStatement(node) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node.right); - if ((0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(type, checker) || - (type.flags & ts.TypeFlags.StringLike) !== 0) { - context.report({ - loc: (0, getForStatementHeadLoc_1.getForStatementHeadLoc)(context.sourceCode, node), - messageId: 'forInViolation', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-for-in-array.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map deleted file mode 100644 index 99720a8c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,kCAKiB;AACjB,2EAAwE;AAExE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,iNAAiN;SACpN;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;gBAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAElD,MAAM,IAAI,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEhE,IACE,IAAA,yCAAkC,EAAC,IAAI,EAAE,OAAO,CAAC;oBACjD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,IAAA,+CAAsB,EAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;wBACrD,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js deleted file mode 100644 index 7b1aa2d3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const FUNCTION_CONSTRUCTOR = 'Function'; -const GLOBAL_CANDIDATES = new Set(['global', 'window', 'globalThis']); -const EVAL_LIKE_METHODS = new Set([ - 'setImmediate', - 'setInterval', - 'setTimeout', - 'execScript', -]); -exports.default = (0, util_1.createRule)({ - name: 'no-implied-eval', - meta: { - docs: { - description: 'Disallow the use of `eval()`-like methods', - recommended: 'recommended', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - messages: { - noImpliedEvalError: 'Implied eval. Consider passing a function.', - noFunctionConstructor: 'Implied eval. Do not use the Function constructor to create functions.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function getCalleeName(node) { - if (node.type === utils_1.AST_NODE_TYPES.Identifier) { - return node.name; - } - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type === utils_1.AST_NODE_TYPES.Identifier && - GLOBAL_CANDIDATES.has(node.object.name)) { - if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { - return node.property.name; - } - if (node.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.property.value === 'string') { - return node.property.value; - } - } - return null; - } - function isFunctionType(node) { - const type = services.getTypeAtLocation(node); - const symbol = type.getSymbol(); - if (symbol && - tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Function | ts.SymbolFlags.Method)) { - return true; - } - if ((0, util_1.isBuiltinSymbolLike)(services.program, type, FUNCTION_CONSTRUCTOR)) { - return true; - } - const signatures = checker.getSignaturesOfType(type, ts.SignatureKind.Call); - return signatures.length > 0; - } - function isBind(node) { - return node.type === utils_1.AST_NODE_TYPES.MemberExpression - ? isBind(node.property) - : node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === 'bind'; - } - function isFunction(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - case utils_1.AST_NODE_TYPES.FunctionExpression: - return true; - case utils_1.AST_NODE_TYPES.Literal: - case utils_1.AST_NODE_TYPES.TemplateLiteral: - return false; - case utils_1.AST_NODE_TYPES.CallExpression: - return isBind(node.callee) || isFunctionType(node); - default: - return isFunctionType(node); - } - } - function checkImpliedEval(node) { - const calleeName = getCalleeName(node.callee); - if (calleeName == null) { - return; - } - if (calleeName === FUNCTION_CONSTRUCTOR) { - const type = services.getTypeAtLocation(node.callee); - const symbol = type.getSymbol(); - if (symbol) { - if ((0, util_1.isBuiltinSymbolLike)(services.program, type, 'FunctionConstructor')) { - context.report({ node, messageId: 'noFunctionConstructor' }); - return; - } - } - else { - context.report({ node, messageId: 'noFunctionConstructor' }); - return; - } - } - if (node.arguments.length === 0) { - return; - } - const [handler] = node.arguments; - if (EVAL_LIKE_METHODS.has(calleeName) && - !isFunction(handler) && - (0, util_1.isReferenceToGlobalFunction)(calleeName, node, context.sourceCode)) { - context.report({ node: handler, messageId: 'noImpliedEvalError' }); - } - } - return { - NewExpression: checkImpliedEval, - CallExpression: checkImpliedEval, - }; - }, -}); -//# sourceMappingURL=no-implied-eval.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map deleted file mode 100644 index 5abef325..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AAEjB,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACtE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,cAAc;IACd,aAAa;IACb,YAAY;IACZ,YAAY;CACb,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,kBAAkB,EAAE,4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AAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js deleted file mode 100644 index b6d6724a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-import-type-side-effects', - meta: { - type: 'problem', - docs: { - description: 'Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers', - }, - fixable: 'code', - messages: { - useTopLevelQualifier: 'TypeScript will only remove the inline type specifiers which will leave behind a side effect import at runtime. Convert this to a top-level type qualifier to properly remove the entire import.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - 'ImportDeclaration[importKind!="type"]'(node) { - if (node.specifiers.length === 0) { - return; - } - const specifiers = []; - for (const specifier of node.specifiers) { - if (specifier.type !== utils_1.AST_NODE_TYPES.ImportSpecifier || - specifier.importKind !== 'type') { - return; - } - specifiers.push(specifier); - } - context.report({ - node, - messageId: 'useTopLevelQualifier', - fix(fixer) { - const fixes = []; - for (const specifier of specifiers) { - const qualifier = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(specifier, util_1.isTypeKeyword), util_1.NullThrowsReasons.MissingToken('type keyword', 'import specifier')); - fixes.push(fixer.removeRange([ - qualifier.range[0], - specifier.imported.range[0], - ])); - } - const importKeyword = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, util_1.isImportKeyword), util_1.NullThrowsReasons.MissingToken('import keyword', 'import')); - fixes.push(fixer.insertTextAfter(importKeyword, ' type')); - return fixes; - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=no-import-type-side-effects.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map deleted file mode 100644 index 09346b69..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-import-type-side-effects.js","sourceRoot":"","sources":["../../src/rules/no-import-type-side-effects.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAMiB;AAKjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mHAAmH;SACtH;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,kMAAkM;SACrM;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,uCAAuC,CACrC,IAAgC;gBAEhC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACjC,OAAO;gBACT,CAAC;gBAED,MAAM,UAAU,GAA+B,EAAE,CAAC;gBAClD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBACxC,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;wBACjD,SAAS,CAAC,UAAU,KAAK,MAAM,EAC/B,CAAC;wBACD,OAAO;oBACT,CAAC;oBACD,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC7B,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,sBAAsB;oBACjC,GAAG,CAAC,KAAK;wBACP,MAAM,KAAK,GAAuB,EAAE,CAAC;wBACrC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;4BACnC,MAAM,SAAS,GAAG,IAAA,iBAAU,EAC1B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,oBAAa,CAAC,EAC1D,wBAAiB,CAAC,YAAY,CAC5B,cAAc,EACd,kBAAkB,CACnB,CACF,CAAC;4BACF,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,WAAW,CAAC;gCAChB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAClB,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;6BAC5B,CAAC,CACH,CAAC;wBACJ,CAAC;wBAED,MAAM,aAAa,GAAG,IAAA,iBAAU,EAC9B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,sBAAe,CAAC,EACvD,wBAAiB,CAAC,YAAY,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAC3D,CAAC;wBACF,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;wBAE1D,OAAO,KAAK,CAAC;oBACf,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js deleted file mode 100644 index 585046fb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-inferrable-types', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean', - recommended: 'stylistic', - }, - fixable: 'code', - messages: { - noInferrableType: 'Type {{type}} trivially inferred from a {{type}} literal, remove type annotation.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreParameters: { - type: 'boolean', - }, - ignoreProperties: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - ignoreParameters: false, - ignoreProperties: false, - }, - ], - create(context, [{ ignoreParameters, ignoreProperties }]) { - function isFunctionCall(init, callName) { - if (init.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return isFunctionCall(init.expression, callName); - } - return (init.type === utils_1.AST_NODE_TYPES.CallExpression && - init.callee.type === utils_1.AST_NODE_TYPES.Identifier && - init.callee.name === callName); - } - function isLiteral(init, typeName) { - return (init.type === utils_1.AST_NODE_TYPES.Literal && typeof init.value === typeName); - } - function isIdentifier(init, ...names) { - return (init.type === utils_1.AST_NODE_TYPES.Identifier && names.includes(init.name)); - } - function hasUnaryPrefix(init, ...operators) { - return (init.type === utils_1.AST_NODE_TYPES.UnaryExpression && - operators.includes(init.operator)); - } - const keywordMap = { - [utils_1.AST_NODE_TYPES.TSBigIntKeyword]: 'bigint', - [utils_1.AST_NODE_TYPES.TSBooleanKeyword]: 'boolean', - [utils_1.AST_NODE_TYPES.TSNumberKeyword]: 'number', - [utils_1.AST_NODE_TYPES.TSNullKeyword]: 'null', - [utils_1.AST_NODE_TYPES.TSStringKeyword]: 'string', - [utils_1.AST_NODE_TYPES.TSSymbolKeyword]: 'symbol', - [utils_1.AST_NODE_TYPES.TSUndefinedKeyword]: 'undefined', - }; - /** - * Returns whether a node has an inferrable value or not - */ - function isInferrable(annotation, init) { - switch (annotation.type) { - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: { - // note that bigint cannot have + prefixed to it - const unwrappedInit = hasUnaryPrefix(init, '-') - ? init.argument - : init; - return (isFunctionCall(unwrappedInit, 'BigInt') || - unwrappedInit.type === utils_1.AST_NODE_TYPES.Literal); - } - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - return (hasUnaryPrefix(init, '!') || - isFunctionCall(init, 'Boolean') || - isLiteral(init, 'boolean')); - case utils_1.AST_NODE_TYPES.TSNumberKeyword: { - const unwrappedInit = hasUnaryPrefix(init, '+', '-') - ? init.argument - : init; - return (isIdentifier(unwrappedInit, 'Infinity', 'NaN') || - isFunctionCall(unwrappedInit, 'Number') || - isLiteral(unwrappedInit, 'number')); - } - case utils_1.AST_NODE_TYPES.TSNullKeyword: - return init.type === utils_1.AST_NODE_TYPES.Literal && init.value == null; - case utils_1.AST_NODE_TYPES.TSStringKeyword: - return (isFunctionCall(init, 'String') || - isLiteral(init, 'string') || - init.type === utils_1.AST_NODE_TYPES.TemplateLiteral); - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - return isFunctionCall(init, 'Symbol'); - case utils_1.AST_NODE_TYPES.TSTypeReference: { - if (annotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - annotation.typeName.name === 'RegExp') { - const isRegExpLiteral = init.type === utils_1.AST_NODE_TYPES.Literal && - init.value instanceof RegExp; - const isRegExpNewCall = init.type === utils_1.AST_NODE_TYPES.NewExpression && - init.callee.type === utils_1.AST_NODE_TYPES.Identifier && - init.callee.name === 'RegExp'; - const isRegExpCall = isFunctionCall(init, 'RegExp'); - return isRegExpLiteral || isRegExpCall || isRegExpNewCall; - } - return false; - } - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - return (hasUnaryPrefix(init, 'void') || isIdentifier(init, 'undefined')); - } - return false; - } - /** - * Reports an inferrable type declaration, if any - */ - function reportInferrableType(node, typeNode, initNode) { - if (!typeNode || !initNode) { - return; - } - if (!isInferrable(typeNode.typeAnnotation, initNode)) { - return; - } - const type = typeNode.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference - ? // TODO - if we add more references - 'RegExp' - : keywordMap[typeNode.typeAnnotation.type]; - context.report({ - node, - messageId: 'noInferrableType', - data: { - type, - }, - *fix(fixer) { - if ((node.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - node.left.optional) || - (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && node.definite)) { - yield fixer.remove((0, util_1.nullThrows)(context.sourceCode.getTokenBefore(typeNode), util_1.NullThrowsReasons.MissingToken('token before', 'type node'))); - } - yield fixer.remove(typeNode); - }, - }); - } - function inferrableVariableVisitor(node) { - reportInferrableType(node, node.id.typeAnnotation, node.init); - } - function inferrableParameterVisitor(node) { - if (ignoreParameters) { - return; - } - node.params.forEach(param => { - if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { - param = param.parameter; - } - if (param.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - reportInferrableType(param, param.left.typeAnnotation, param.right); - } - }); - } - function inferrablePropertyVisitor(node) { - // We ignore `readonly` because of Microsoft/TypeScript#14416 - // Essentially a readonly property without a type - // will result in its value being the type, leading to - // compile errors if the type is stripped. - if (ignoreProperties || node.readonly || node.optional) { - return; - } - reportInferrableType(node, node.typeAnnotation, node.value); - } - return { - VariableDeclarator: inferrableVariableVisitor, - FunctionExpression: inferrableParameterVisitor, - FunctionDeclaration: inferrableParameterVisitor, - ArrowFunctionExpression: inferrableParameterVisitor, - PropertyDefinition: inferrablePropertyVisitor, - }; - }, -}); -//# sourceMappingURL=no-inferrable-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map deleted file mode 100644 index e74bf0a4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAoE;AAUpE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6GAA6G;YAC/G,WAAW,EAAE,WAAW;SACz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YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,kBAAkB,EAAE,yBAAyB;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js deleted file mode 100644 index e04e6d3a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-invalid-this'); -exports.default = (0, util_1.createRule)({ - name: 'no-invalid-this', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow `this` keywords outside of classes or class-like objects', - extendsBaseRule: true, - }, - messages: baseRule.meta.messages, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - }, - defaultOptions: [{ capIsConstructor: true }], - create(context) { - const rules = baseRule.create(context); - /** - * Since function definitions can be nested we use a stack storing if "this" is valid in the current context. - * - * Example: - * - * function a(this: number) { // valid "this" - * function b() { - * console.log(this); // invalid "this" - * } - * } - * - * When parsing the function declaration of "a" the stack will be: [true] - * When parsing the function declaration of "b" the stack will be: [true, false] - */ - const thisIsValidStack = []; - return { - ...rules, - PropertyDefinition() { - thisIsValidStack.push(true); - }, - 'PropertyDefinition:exit'() { - thisIsValidStack.pop(); - }, - AccessorProperty() { - thisIsValidStack.push(true); - }, - 'AccessorProperty:exit'() { - thisIsValidStack.pop(); - }, - FunctionDeclaration(node) { - thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); - }, - 'FunctionDeclaration:exit'() { - thisIsValidStack.pop(); - }, - FunctionExpression(node) { - thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); - }, - 'FunctionExpression:exit'() { - thisIsValidStack.pop(); - }, - ThisExpression(node) { - const thisIsValidHere = thisIsValidStack[thisIsValidStack.length - 1]; - if (thisIsValidHere) { - return; - } - // baseRule's work - rules.ThisExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=no-invalid-this.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map deleted file mode 100644 index 4849454b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-invalid-this.js","sourceRoot":"","sources":["../../src/rules/no-invalid-this.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,iBAAiB,CAAC,CAAC;AAKtD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;IAC5C,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC;;;;;;;;;;;;;WAaG;QACH,MAAM,gBAAgB,G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ript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js deleted file mode 100644 index fcc74aaa..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-invalid-void-type', - meta: { - type: 'problem', - docs: { - description: 'Disallow `void` type outside of generic or return types', - recommended: 'strict', - }, - messages: { - invalidVoidForGeneric: '{{ generic }} may not have void as a type argument.', - invalidVoidNotReturnOrGeneric: 'void is only valid as a return type or generic type argument.', - invalidVoidNotReturn: 'void is only valid as a return type.', - invalidVoidNotReturnOrThisParam: 'void is only valid as return type or type of `this` parameter.', - invalidVoidNotReturnOrThisParamOrGeneric: 'void is only valid as a return type or generic type argument or the type of a `this` parameter.', - invalidVoidUnionConstituent: 'void is not valid as a constituent in a union type', - }, - schema: [ - { - type: 'object', - properties: { - allowInGenericTypeArguments: { - oneOf: [ - { type: 'boolean' }, - { - type: 'array', - items: { type: 'string' }, - minItems: 1, - }, - ], - }, - allowAsThisParameter: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { allowInGenericTypeArguments: true, allowAsThisParameter: false }, - ], - create(context, [{ allowInGenericTypeArguments, allowAsThisParameter }]) { - const validParents = [ - utils_1.AST_NODE_TYPES.TSTypeAnnotation, // - ]; - const invalidGrandParents = [ - utils_1.AST_NODE_TYPES.TSPropertySignature, - utils_1.AST_NODE_TYPES.CallExpression, - utils_1.AST_NODE_TYPES.PropertyDefinition, - utils_1.AST_NODE_TYPES.Identifier, - ]; - const validUnionMembers = [ - utils_1.AST_NODE_TYPES.TSVoidKeyword, - utils_1.AST_NODE_TYPES.TSNeverKeyword, - ]; - if (allowInGenericTypeArguments === true) { - validParents.push(utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation); - } - /** - * @brief check if the given void keyword is used as a valid generic type - * - * reports if the type parametrized by void is not in the whitelist, or - * allowInGenericTypeArguments is false. - * no-op if the given void keyword is not used as generic type - */ - function checkGenericTypeArgument(node) { - // only matches T<..., void, ...> - // extra check for precaution - /* istanbul ignore next */ - if (node.parent.type !== utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation || - node.parent.parent.type !== utils_1.AST_NODE_TYPES.TSTypeReference) { - return; - } - // check whitelist - if (Array.isArray(allowInGenericTypeArguments)) { - const fullyQualifiedName = context.sourceCode - .getText(node.parent.parent.typeName) - .replace(/ /gu, ''); - if (!allowInGenericTypeArguments - .map(s => s.replace(/ /gu, '')) - .includes(fullyQualifiedName)) { - context.report({ - messageId: 'invalidVoidForGeneric', - data: { generic: fullyQualifiedName }, - node, - }); - } - return; - } - if (!allowInGenericTypeArguments) { - context.report({ - messageId: allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParam' - : 'invalidVoidNotReturn', - node, - }); - } - } - /** - * @brief checks if the generic type parameter defaults to void - */ - function checkDefaultVoid(node, parentNode) { - if (parentNode.default !== node) { - context.report({ - messageId: getNotReturnOrGenericMessageId(node), - node, - }); - } - } - /** - * @brief checks that a union containing void is valid - * @return true if every member of the union is specified as a valid type in - * validUnionMembers, or is a valid generic type parametrized by void - */ - function isValidUnionType(node) { - return node.types.every(member => validUnionMembers.includes(member.type) || - // allows any T<..., void, ...> here, checked by checkGenericTypeArgument - (member.type === utils_1.AST_NODE_TYPES.TSTypeReference && - member.typeArguments?.type === - utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && - member.typeArguments.params - .map(param => param.type) - .includes(utils_1.AST_NODE_TYPES.TSVoidKeyword))); - } - return { - TSVoidKeyword(node) { - // checks T<..., void, ...> against specification of allowInGenericArguments option - if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && - node.parent.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - checkGenericTypeArgument(node); - return; - } - // allow if allowInGenericTypeArguments is specified, and report if the generic type parameter extends void - if (allowInGenericTypeArguments && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameter && - node.parent.default?.type === utils_1.AST_NODE_TYPES.TSVoidKeyword) { - checkDefaultVoid(node, node.parent); - return; - } - // union w/ void must contain types from validUnionMembers, or a valid generic void type - if (node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType && - isValidUnionType(node.parent)) { - return; - } - // this parameter is ok to be void. - if (allowAsThisParameter && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation && - node.parent.parent.type === utils_1.AST_NODE_TYPES.Identifier && - node.parent.parent.name === 'this') { - return; - } - // default cases - if (validParents.includes(node.parent.type) && - // https://github.com/typescript-eslint/typescript-eslint/issues/6225 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - !invalidGrandParents.includes(node.parent.parent.type)) { - return; - } - context.report({ - messageId: allowInGenericTypeArguments && allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParamOrGeneric' - : allowInGenericTypeArguments - ? getNotReturnOrGenericMessageId(node) - : allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParam' - : 'invalidVoidNotReturn', - node, - }); - }, - }; - }, -}); -function getNotReturnOrGenericMessageId(node) { - return node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType - ? 'invalidVoidUnionConstituent' - : 'invalidVoidNotReturnOrGeneric'; -} -//# sourceMappingURL=no-invalid-void-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map deleted file mode 100644 index ad14a817..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-invalid-void-type.js","sourceRoot":"","sources":["../../src/rules/no-invalid-void-type.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B,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js deleted file mode 100644 index 6f6ff3ef..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loop-func'); -exports.default = (0, util_1.createRule)({ - name: 'no-loop-func', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow function declarations that contain unsafe references inside loop statements', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [], - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - /** - * Reports functions which match the following condition: - * - has a loop node in ancestors. - * - has any references which refers to an unsafe variable. - * - * @param node The AST node to check. - */ - function checkForLoops(node) { - const loopNode = getContainingLoopNode(node); - if (!loopNode) { - return; - } - const references = context.sourceCode.getScope(node).through; - const unsafeRefs = references - .filter(r => !isSafe(loopNode, r)) - .map(r => r.identifier.name); - if (unsafeRefs.length > 0) { - context.report({ - node, - messageId: 'unsafeRefs', - data: { varNames: `'${unsafeRefs.join("', '")}'` }, - }); - } - } - return { - ArrowFunctionExpression: checkForLoops, - FunctionExpression: checkForLoops, - FunctionDeclaration: checkForLoops, - }; - }, -}); -/** - * Gets the containing loop node of a specified node. - * - * We don't need to check nested functions, so this ignores those. - * `Scope.through` contains references of nested functions. - * - * @param node An AST node to get. - * @returns The containing loop node of the specified node, or `null`. - */ -function getContainingLoopNode(node) { - for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { - const parent = currentNode.parent; - switch (parent.type) { - case utils_1.AST_NODE_TYPES.WhileStatement: - case utils_1.AST_NODE_TYPES.DoWhileStatement: - return parent; - case utils_1.AST_NODE_TYPES.ForStatement: - // `init` is outside of the loop. - if (parent.init !== currentNode) { - return parent; - } - break; - case utils_1.AST_NODE_TYPES.ForInStatement: - case utils_1.AST_NODE_TYPES.ForOfStatement: - // `right` is outside of the loop. - if (parent.right !== currentNode) { - return parent; - } - break; - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - // We don't need to check nested functions. - return null; - default: - break; - } - } - return null; -} -/** - * Gets the containing loop node of a given node. - * If the loop was nested, this returns the most outer loop. - * @param node A node to get. This is a loop node. - * @param excludedNode A node that the result node should not include. - * @returns The most outer loop node. - */ -function getTopLoopNode(node, excludedNode) { - const border = excludedNode ? excludedNode.range[1] : 0; - let retv = node; - let containingLoopNode = node; - while (containingLoopNode && containingLoopNode.range[0] >= border) { - retv = containingLoopNode; - containingLoopNode = getContainingLoopNode(containingLoopNode); - } - return retv; -} -/** - * Checks whether a given reference which refers to an upper scope's variable is - * safe or not. - * @param loopNode A containing loop node. - * @param reference A reference to check. - * @returns `true` if the reference is safe or not. - */ -function isSafe(loopNode, reference) { - const variable = reference.resolved; - const definition = variable?.defs[0]; - const declaration = definition?.parent; - const kind = declaration?.type === utils_1.AST_NODE_TYPES.VariableDeclaration - ? declaration.kind - : ''; - // type references are all safe - // this only really matters for global types that haven't been configured - if (reference.isTypeReference) { - return true; - } - // Variables which are declared by `const` is safe. - if (kind === 'const') { - return true; - } - /* - * Variables which are declared by `let` in the loop is safe. - * It's a different instance from the next loop step's. - */ - if (kind === 'let' && - declaration && - declaration.range[0] > loopNode.range[0] && - declaration.range[1] < loopNode.range[1]) { - return true; - } - /* - * WriteReferences which exist after this border are unsafe because those - * can modify the variable. - */ - const border = getTopLoopNode(loopNode, kind === 'let' ? declaration : null) - .range[0]; - /** - * Checks whether a given reference is safe or not. - * The reference is every reference of the upper scope's variable we are - * looking now. - * - * It's safe if the reference matches one of the following condition. - * - is readonly. - * - doesn't exist inside a local function and after the border. - * - * @param upperRef A reference to check. - * @returns `true` if the reference is safe. - */ - function isSafeReference(upperRef) { - const id = upperRef.identifier; - return (!upperRef.isWrite() || - (variable?.scope.variableScope === upperRef.from.variableScope && - id.range[0] < border)); - } - return variable?.references.every(isSafeReference) ?? false; -} -//# sourceMappingURL=no-loop-func.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map deleted file mode 100644 index 5b1ab3b6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-loop-func.js","sourceRoot":"","sources":["../../src/rules/no-loop-func.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sFAAsF;YACxF,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;;;;WAMG;QACH,SAAS,aAAa,CACpB,IAG+B;YAE/B,MAAM,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE7C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO;YACT,CAAC;YAED,MAAM,UAAU,GAAG,OAAO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,CAAC,eAAe,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mDAAmD;IACnD,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,IACE,IAAI,KAAK,KAAK;QACd,WAAW;QACX,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACxC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EACxC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;SACzE,KAAK,CAAC,CAAC,CAAC,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,SAAS,eAAe,CAAC,QAAkC;QACzD,MAAM,EAAE,GAAG,QAAQ,CAAC,UAAU,CAAC;QAE/B,OAAO,CACL,CAAC,QAAQ,CAAC,OAAO,EAAE;YACnB,CAAC,QAAQ,EAAE,KAAK,CAAC,aAAa,KAAK,QAAQ,CAAC,IAAI,CAAC,aAAa;gBAC5D,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CACxB,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC;AAC9D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js deleted file mode 100644 index 32eef9be..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loss-of-precision'); -exports.default = (0, util_1.createRule)({ - name: 'no-loss-of-precision', - meta: { - type: 'problem', - deprecated: true, - docs: { - description: 'Disallow literal numbers that lose precision', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [], - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - return baseRule.create(context); - }, -}); -//# sourceMappingURL=no-loss-of-precision.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map deleted file mode 100644 index 81e21691..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-loss-of-precision.js","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":";;AAIA,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAK3D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js deleted file mode 100644 index 92ab14c5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-magic-numbers'); -// Extend base schema with additional property to ignore TS numeric literal types -const schema = (0, util_1.deepMerge)( -// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 -Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema, { - properties: { - ignoreNumericLiteralTypes: { - type: 'boolean', - }, - ignoreEnums: { - type: 'boolean', - }, - ignoreReadonlyClassProperties: { - type: 'boolean', - }, - ignoreTypeIndexes: { - type: 'boolean', - }, - }, -}); -exports.default = (0, util_1.createRule)({ - name: 'no-magic-numbers', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow magic numbers', - extendsBaseRule: true, - }, - schema: [schema], - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - ignore: [], - ignoreArrayIndexes: false, - enforceConst: false, - detectObjects: false, - ignoreNumericLiteralTypes: false, - ignoreEnums: false, - ignoreReadonlyClassProperties: false, - ignoreTypeIndexes: false, - }, - ], - create(context, [options]) { - const rules = baseRule.create(context); - const ignored = new Set((options.ignore ?? []).map(normalizeIgnoreValue)); - return { - Literal(node) { - // If it’s not a numeric literal we’re not interested - if (typeof node.value !== 'number' && typeof node.value !== 'bigint') { - return; - } - // This will be `true` if we’re configured to ignore this case (eg. it’s - // an enum and `ignoreEnums` is `true`). It will be `false` if we’re not - // configured to ignore this case. It will remain `undefined` if this is - // not one of our exception cases, and we’ll fall back to the base rule. - let isAllowed; - // Check if the node is ignored - if (ignored.has(normalizeLiteralValue(node, node.value))) { - isAllowed = true; - } - // Check if the node is a TypeScript enum declaration - else if (isParentTSEnumDeclaration(node)) { - isAllowed = options.ignoreEnums === true; - } - // Check TypeScript specific nodes for Numeric Literal - else if (isTSNumericLiteralType(node)) { - isAllowed = options.ignoreNumericLiteralTypes === true; - } - // Check if the node is a type index - else if (isAncestorTSIndexedAccessType(node)) { - isAllowed = options.ignoreTypeIndexes === true; - } - // Check if the node is a readonly class property - else if (isParentTSReadonlyPropertyDefinition(node)) { - isAllowed = options.ignoreReadonlyClassProperties === true; - } - // If we’ve hit a case where the ignore option is true we can return now - if (isAllowed === true) { - return; - } - // If the ignore option is *not* set we can report it now - else if (isAllowed === false) { - let fullNumberNode = node; - let raw = node.raw; - if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && - // the base rule only shows the operator for negative numbers - // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/lib/rules/no-magic-numbers.js#L126 - node.parent.operator === '-') { - fullNumberNode = node.parent; - raw = `${node.parent.operator}${node.raw}`; - } - context.report({ - messageId: 'noMagic', - node: fullNumberNode, - data: { raw }, - }); - return; - } - // Let the base rule deal with the rest - rules.Literal(node); - }, - }; - }, -}); -/** - * Convert the value to bigint if it's a string. Otherwise, return the value as-is. - * @param value The value to normalize. - * @returns The normalized value. - */ -function normalizeIgnoreValue(value) { - if (typeof value === 'string') { - return BigInt(value.slice(0, -1)); - } - return value; -} -/** - * Converts the node to its numeric value, handling prefixed numbers (-1 / +1) - * @param node the node to normalize. - * @param value the node's value. - */ -function normalizeLiteralValue(node, value) { - if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && - ['-', '+'].includes(node.parent.operator)) { - if (node.parent.operator === '-') { - return -value; - } - } - return value; -} -/** - * Gets the true parent of the literal, handling prefixed numbers (-1 / +1) - */ -function getLiteralParent(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && - ['-', '+'].includes(node.parent.operator)) { - return node.parent.parent; - } - return node.parent; -} -/** - * Checks if the node grandparent is a Typescript type alias declaration - * @param node the node to be validated. - * @returns true if the node grandparent is a Typescript type alias declaration - * @private - */ -function isGrandparentTSTypeAliasDeclaration(node) { - return node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration; -} -/** - * Checks if the node grandparent is a Typescript union type and its parent is a type alias declaration - * @param node the node to be validated. - * @returns true if the node grandparent is a Typescript union type and its parent is a type alias declaration - * @private - */ -function isGrandparentTSUnionType(node) { - if (node.parent?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType) { - return isGrandparentTSTypeAliasDeclaration(node.parent); - } - return false; -} -/** - * Checks if the node parent is a Typescript enum member - * @param node the node to be validated. - * @returns true if the node parent is a Typescript enum member - * @private - */ -function isParentTSEnumDeclaration(node) { - const parent = getLiteralParent(node); - return parent?.type === utils_1.AST_NODE_TYPES.TSEnumMember; -} -/** - * Checks if the node parent is a Typescript literal type - * @param node the node to be validated. - * @returns true if the node parent is a Typescript literal type - * @private - */ -function isParentTSLiteralType(node) { - return node.parent?.type === utils_1.AST_NODE_TYPES.TSLiteralType; -} -/** - * Checks if the node is a valid TypeScript numeric literal type. - * @param node the node to be validated. - * @returns true if the node is a TypeScript numeric literal type. - * @private - */ -function isTSNumericLiteralType(node) { - // For negative numbers, use the parent node - if (node.parent?.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.parent.operator === '-') { - node = node.parent; - } - // If the parent node is not a TSLiteralType, early return - if (!isParentTSLiteralType(node)) { - return false; - } - // If the grandparent is a TSTypeAliasDeclaration, ignore - if (isGrandparentTSTypeAliasDeclaration(node)) { - return true; - } - // If the grandparent is a TSUnionType and it's parent is a TSTypeAliasDeclaration, ignore - if (isGrandparentTSUnionType(node)) { - return true; - } - return false; -} -/** - * Checks if the node parent is a readonly class property - * @param node the node to be validated. - * @returns true if the node parent is a readonly class property - * @private - */ -function isParentTSReadonlyPropertyDefinition(node) { - const parent = getLiteralParent(node); - if (parent?.type === utils_1.AST_NODE_TYPES.PropertyDefinition && parent.readonly) { - return true; - } - return false; -} -/** - * Checks if the node is part of a type indexed access (eg. Foo[4]) - * @param node the node to be validated. - * @returns true if the node is part of an indexed access - * @private - */ -function isAncestorTSIndexedAccessType(node) { - // Handle unary expressions (eg. -4) - let ancestor = getLiteralParent(node); - // Go up another level while we’re part of a type union (eg. 1 | 2) or - // intersection (eg. 1 & 2) - while (ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSUnionType || - ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIntersectionType) { - ancestor = ancestor.parent; - } - return ancestor?.parent?.type === utils_1.AST_NODE_TYPES.TSIndexedAccessType; -} -//# sourceMappingURL=no-magic-numbers.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map deleted file mode 100644 index 31d644f2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAO1D,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,kBAAkB,CAAC,CAAC;AAKvD,iFAAiF;AACjF,MAAM,MAAM,GAAG,IAAA,gBAAS;AACtB,yHAAyH;AACzH,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,QA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C;IAED,0FAA0F;IAC1F,IAAI,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,oCAAoC,CAAC,IAAsB;IAClE,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,6BAA6B,CAAC,IAAsB;IAC3D,oCAAoC;IACpC,IAAI,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,sEAAsE;IACtE,2BAA2B;IAC3B,OACE,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,WAAW;QACrD,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC5D,CAAC;QACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,QAAQ,EAAE,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAAC;AACvE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js deleted file mode 100644 index e2ac35ac..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-meaningless-void-operator', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the `void` operator except when used to discard a value', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - meaninglessVoidOperator: "void operator shouldn't be used on {{type}}; it should convey that a return value is being ignored", - removeVoid: "Remove 'void'", - }, - schema: [ - { - type: 'object', - properties: { - checkNever: { - type: 'boolean', - default: false, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{ checkNever: false }], - create(context, [{ checkNever }]) { - const services = utils_1.ESLintUtils.getParserServices(context); - const checker = services.program.getTypeChecker(); - return { - 'UnaryExpression[operator="void"]'(node) { - const fix = (fixer) => { - return fixer.removeRange([ - context.sourceCode.getTokens(node)[0].range[0], - context.sourceCode.getTokens(node)[1].range[0], - ]); - }; - const argType = services.getTypeAtLocation(node.argument); - const unionParts = tsutils.unionTypeParts(argType); - if (unionParts.every(part => part.flags & (ts.TypeFlags.Void | ts.TypeFlags.Undefined))) { - context.report({ - node, - messageId: 'meaninglessVoidOperator', - data: { type: checker.typeToString(argType) }, - fix, - }); - } - else if (checkNever && - unionParts.every(part => part.flags & - (ts.TypeFlags.Void | ts.TypeFlags.Undefined | ts.TypeFlags.Never))) { - context.report({ - node, - messageId: 'meaninglessVoidOperator', - data: { type: checker.typeToString(argType) }, - suggest: [{ messageId: 'removeVoid', fix }], - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-meaningless-void-operator.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map deleted file mode 100644 index 1ffe788e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-meaningless-void-operator.js","sourceRoot":"","sources":["../../src/rules/no-meaningless-void-operator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAuD;AACvD,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAqC;AAQrC,kBAAe,IAAA,iBAAU,EAAoD;IAC3E,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,uBAAuB,EACrB,oGAAoG;YACtG,UAAU,EAAE,eAAe;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAEvC,MA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AE,CAAC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CACpE,EACD,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,yBAAyB;wBACpC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;wBAC7C,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC;qBAC5C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js deleted file mode 100644 index 6ff87b52..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-misused-new', - meta: { - type: 'problem', - docs: { - description: 'Enforce valid definition of `new` and `constructor`', - recommended: 'recommended', - }, - schema: [], - messages: { - errorMessageInterface: 'Interfaces cannot be constructed, only classes.', - errorMessageClass: 'Class cannot have method named `new`.', - }, - }, - defaultOptions: [], - create(context) { - /** - * @param node type to be inspected. - * @returns name of simple type or null - */ - function getTypeReferenceName(node) { - if (node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeAnnotation: - return getTypeReferenceName(node.typeAnnotation); - case utils_1.AST_NODE_TYPES.TSTypeReference: - return getTypeReferenceName(node.typeName); - case utils_1.AST_NODE_TYPES.Identifier: - return node.name; - default: - break; - } - } - return null; - } - /** - * @param parent parent node. - * @param returnType type to be compared - */ - function isMatchingParentType(parent, returnType) { - if (parent && - (parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration || - parent.type === utils_1.AST_NODE_TYPES.ClassExpression || - parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) && - parent.id) { - return getTypeReferenceName(returnType) === parent.id.name; - } - return false; - } - return { - 'TSInterfaceBody > TSConstructSignatureDeclaration'(node) { - if (isMatchingParentType(node.parent.parent, node.returnType)) { - // constructor - context.report({ - node, - messageId: 'errorMessageInterface', - }); - } - }, - "TSMethodSignature[key.name='constructor']"(node) { - context.report({ - node, - messageId: 'errorMessageInterface', - }); - }, - "ClassBody > MethodDefinition[key.name='new']"(node) { - if (node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - if (isMatchingParentType(node.parent.parent, node.value.returnType)) { - context.report({ - node, - messageId: 'errorMessageClass', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-misused-new.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map deleted file mode 100644 index b2ac8946..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-misused-new.js","sourceRoot":"","sources":["../../src/rules/no-misused-new.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,aAAa;SAC3B;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EAAE,iDAAiD;YACxE,iBAAiB,EAAE,uCAAuC;SAC3D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAA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,8CAA8C,CAC5C,IAA+B;gBAE/B,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,6BAA6B,EAAE,CAAC;oBACrE,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;wBACpE,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,mBAAmB;yBAC/B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js deleted file mode 100644 index 6921bf90..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +++ /dev/null @@ -1,662 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -function parseChecksVoidReturn(checksVoidReturn) { - switch (checksVoidReturn) { - case false: - return false; - case true: - case undefined: - return { - arguments: true, - attributes: true, - inheritedMethods: true, - properties: true, - returns: true, - variables: true, - }; - default: - return { - arguments: checksVoidReturn.arguments ?? true, - attributes: checksVoidReturn.attributes ?? true, - inheritedMethods: checksVoidReturn.inheritedMethods ?? true, - properties: checksVoidReturn.properties ?? true, - returns: checksVoidReturn.returns ?? true, - variables: checksVoidReturn.variables ?? true, - }; - } -} -exports.default = (0, util_1.createRule)({ - name: 'no-misused-promises', - meta: { - docs: { - description: 'Disallow Promises in places not designed to handle them', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - voidReturnArgument: 'Promise returned in function argument where a void return was expected.', - voidReturnAttribute: 'Promise-returning function provided to attribute where a void return was expected.', - voidReturnInheritedMethod: "Promise-returning method provided where a void return was expected by extended/implemented type '{{ heritageTypeName }}'.", - voidReturnProperty: 'Promise-returning function provided to property where a void return was expected.', - voidReturnReturnValue: 'Promise-returning function provided to return value where a void return was expected.', - voidReturnVariable: 'Promise-returning function provided to variable where a void return was expected.', - conditional: 'Expected non-Promise value in a boolean conditional.', - spread: 'Expected a non-Promise value to be spreaded in an object.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - checksConditionals: { - type: 'boolean', - }, - checksVoidReturn: { - oneOf: [ - { type: 'boolean' }, - { - additionalProperties: false, - properties: { - arguments: { type: 'boolean' }, - attributes: { type: 'boolean' }, - inheritedMethods: { type: 'boolean' }, - properties: { type: 'boolean' }, - returns: { type: 'boolean' }, - variables: { type: 'boolean' }, - }, - type: 'object', - }, - ], - }, - checksSpreads: { - type: 'boolean', - }, - }, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - checksConditionals: true, - checksVoidReturn: true, - checksSpreads: true, - }, - ], - create(context, [{ checksConditionals, checksVoidReturn, checksSpreads }]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const checkedNodes = new Set(); - const conditionalChecks = { - ConditionalExpression: checkTestConditional, - DoWhileStatement: checkTestConditional, - ForStatement: checkTestConditional, - IfStatement: checkTestConditional, - LogicalExpression: checkConditional, - 'UnaryExpression[operator="!"]'(node) { - checkConditional(node.argument, true); - }, - WhileStatement: checkTestConditional, - }; - checksVoidReturn = parseChecksVoidReturn(checksVoidReturn); - const voidReturnChecks = checksVoidReturn - ? { - ...(checksVoidReturn.arguments && { - CallExpression: checkArguments, - NewExpression: checkArguments, - }), - ...(checksVoidReturn.attributes && { - JSXAttribute: checkJSXAttribute, - }), - ...(checksVoidReturn.inheritedMethods && { - ClassDeclaration: checkClassLikeOrInterfaceNode, - ClassExpression: checkClassLikeOrInterfaceNode, - TSInterfaceDeclaration: checkClassLikeOrInterfaceNode, - }), - ...(checksVoidReturn.properties && { - Property: checkProperty, - }), - ...(checksVoidReturn.returns && { - ReturnStatement: checkReturnStatement, - }), - ...(checksVoidReturn.variables && { - AssignmentExpression: checkAssignment, - VariableDeclarator: checkVariableDeclaration, - }), - } - : {}; - const spreadChecks = { - SpreadElement: checkSpread, - }; - /** - * A syntactic check to see if an annotated type is maybe a function type. - * This is a perf optimization to help avoid requesting types where possible - */ - function isPossiblyFunctionType(node) { - switch (node.typeAnnotation.type) { - case utils_1.AST_NODE_TYPES.TSConditionalType: - case utils_1.AST_NODE_TYPES.TSConstructorType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - case utils_1.AST_NODE_TYPES.TSImportType: - case utils_1.AST_NODE_TYPES.TSIndexedAccessType: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSTypeQuery: - case utils_1.AST_NODE_TYPES.TSTypeReference: - case utils_1.AST_NODE_TYPES.TSUnionType: - return true; - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return node.typeAnnotation.members.some(member => member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration || - member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration); - case utils_1.AST_NODE_TYPES.TSAbstractKeyword: - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSAsyncKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSDeclareKeyword: - case utils_1.AST_NODE_TYPES.TSExportKeyword: - case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: - case utils_1.AST_NODE_TYPES.TSLiteralType: - case utils_1.AST_NODE_TYPES.TSMappedType: - case utils_1.AST_NODE_TYPES.TSNamedTupleMember: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSOptionalType: - case utils_1.AST_NODE_TYPES.TSPrivateKeyword: - case utils_1.AST_NODE_TYPES.TSProtectedKeyword: - case utils_1.AST_NODE_TYPES.TSPublicKeyword: - case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: - case utils_1.AST_NODE_TYPES.TSRestType: - case utils_1.AST_NODE_TYPES.TSStaticKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: - case utils_1.AST_NODE_TYPES.TSTupleType: - case utils_1.AST_NODE_TYPES.TSTypePredicate: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - return false; - } - } - function checkTestConditional(node) { - if (node.test) { - checkConditional(node.test, true); - } - } - /** - * This function analyzes the type of a node and checks if it is a Promise in a boolean conditional. - * It uses recursion when checking nested logical operators. - * @param node The AST node to check. - * @param isTestExpr Whether the node is a descendant of a test expression. - */ - function checkConditional(node, isTestExpr = false) { - // prevent checking the same node multiple times - if (checkedNodes.has(node)) { - return; - } - checkedNodes.add(node); - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - // ignore the left operand for nullish coalescing expressions not in a context of a test expression - if (node.operator !== '??' || isTestExpr) { - checkConditional(node.left, isTestExpr); - } - // we ignore the right operand when not in a context of a test expression - if (isTestExpr) { - checkConditional(node.right, isTestExpr); - } - return; - } - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (isAlwaysThenable(checker, tsNode)) { - context.report({ - messageId: 'conditional', - node, - }); - } - } - function checkArguments(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - const voidArgs = voidFunctionArguments(checker, tsNode); - if (voidArgs.size === 0) { - return; - } - for (const [index, argument] of node.arguments.entries()) { - if (!voidArgs.has(index)) { - continue; - } - const tsNode = services.esTreeNodeToTSNodeMap.get(argument); - if (returnsThenable(checker, tsNode)) { - context.report({ - messageId: 'voidReturnArgument', - node: argument, - }); - } - } - } - function checkAssignment(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - const varType = services.getTypeAtLocation(node.left); - if (!isVoidReturningFunctionType(checker, tsNode.left, varType)) { - return; - } - if (returnsThenable(checker, tsNode.right)) { - context.report({ - messageId: 'voidReturnVariable', - node: node.right, - }); - } - } - function checkVariableDeclaration(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (tsNode.initializer === undefined || - node.init == null || - node.id.typeAnnotation == null) { - return; - } - // syntactically ignore some known-good cases to avoid touching type info - if (!isPossiblyFunctionType(node.id.typeAnnotation)) { - return; - } - const varType = services.getTypeAtLocation(node.id); - if (!isVoidReturningFunctionType(checker, tsNode.initializer, varType)) { - return; - } - if (returnsThenable(checker, tsNode.initializer)) { - context.report({ - messageId: 'voidReturnVariable', - node: node.init, - }); - } - } - function checkProperty(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (ts.isPropertyAssignment(tsNode)) { - const contextualType = checker.getContextualType(tsNode.initializer); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.initializer, contextualType) && - returnsThenable(checker, tsNode.initializer)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - } - else if (ts.isShorthandPropertyAssignment(tsNode)) { - const contextualType = checker.getContextualType(tsNode.name); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.name, contextualType) && - returnsThenable(checker, tsNode.name)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - } - else if (ts.isMethodDeclaration(tsNode)) { - if (ts.isComputedPropertyName(tsNode.name)) { - return; - } - const obj = tsNode.parent; - // Below condition isn't satisfied unless something goes wrong, - // but is needed for type checking. - // 'node' does not include class method declaration so 'obj' is - // always an object literal expression, but after converting 'node' - // to TypeScript AST, its type includes MethodDeclaration which - // does include the case of class method declaration. - if (!ts.isObjectLiteralExpression(obj)) { - return; - } - if (!returnsThenable(checker, tsNode)) { - return; - } - const objType = checker.getContextualType(obj); - if (objType === undefined) { - return; - } - const propertySymbol = checker.getPropertyOfType(objType, tsNode.name.text); - if (propertySymbol === undefined) { - return; - } - const contextualType = checker.getTypeOfSymbolAtLocation(propertySymbol, tsNode.name); - if (isVoidReturningFunctionType(checker, tsNode.name, contextualType)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - return; - } - } - function checkReturnStatement(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (tsNode.expression === undefined || node.argument == null) { - return; - } - // syntactically ignore some known-good cases to avoid touching type info - const functionNode = (() => { - let current = node.parent; - while (current && !(0, util_1.isFunction)(current)) { - current = current.parent; - } - return (0, util_1.nullThrows)(current, util_1.NullThrowsReasons.MissingParent); - })(); - if (functionNode.returnType && - !isPossiblyFunctionType(functionNode.returnType)) { - return; - } - const contextualType = checker.getContextualType(tsNode.expression); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.expression, contextualType) && - returnsThenable(checker, tsNode.expression)) { - context.report({ - messageId: 'voidReturnReturnValue', - node: node.argument, - }); - } - } - function checkClassLikeOrInterfaceNode(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - const heritageTypes = getHeritageTypes(checker, tsNode); - if (!heritageTypes?.length) { - return; - } - for (const nodeMember of tsNode.members) { - const memberName = nodeMember.name?.getText(); - if (memberName === undefined) { - // Call/construct/index signatures don't have names. TS allows call signatures to mismatch, - // and construct signatures can't be async. - // TODO - Once we're able to use `checker.isTypeAssignableTo` (v8), we can check an index - // signature here against its compatible index signatures in `heritageTypes` - continue; - } - if (!returnsThenable(checker, nodeMember)) { - continue; - } - for (const heritageType of heritageTypes) { - checkHeritageTypeForMemberReturningVoid(nodeMember, heritageType, memberName); - } - } - } - /** - * Checks `heritageType` for a member named `memberName` that returns void; reports the - * 'voidReturnInheritedMethod' message if found. - * @param nodeMember Node member that returns a Promise - * @param heritageType Heritage type to check against - * @param memberName Name of the member to check for - */ - function checkHeritageTypeForMemberReturningVoid(nodeMember, heritageType, memberName) { - const heritageMember = getMemberIfExists(heritageType, memberName); - if (heritageMember === undefined) { - return; - } - const memberType = checker.getTypeOfSymbolAtLocation(heritageMember, nodeMember); - if (!isVoidReturningFunctionType(checker, nodeMember, memberType)) { - return; - } - context.report({ - node: services.tsNodeToESTreeNodeMap.get(nodeMember), - messageId: 'voidReturnInheritedMethod', - data: { heritageTypeName: checker.typeToString(heritageType) }, - }); - } - function checkJSXAttribute(node) { - if (node.value == null || - node.value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) { - return; - } - const expressionContainer = services.esTreeNodeToTSNodeMap.get(node.value); - const expression = services.esTreeNodeToTSNodeMap.get(node.value.expression); - const contextualType = checker.getContextualType(expressionContainer); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, expressionContainer, contextualType) && - returnsThenable(checker, expression)) { - context.report({ - messageId: 'voidReturnAttribute', - node: node.value, - }); - } - } - function checkSpread(node) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (isSometimesThenable(checker, tsNode.expression)) { - context.report({ - messageId: 'spread', - node: node.argument, - }); - } - } - return { - ...(checksConditionals ? conditionalChecks : {}), - ...(checksVoidReturn ? voidReturnChecks : {}), - ...(checksSpreads ? spreadChecks : {}), - }; - }, -}); -function isSometimesThenable(checker, node) { - const type = checker.getTypeAtLocation(node); - for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { - if (tsutils.isThenableType(checker, node, subType)) { - return true; - } - } - return false; -} -// Variation on the thenable check which requires all forms of the type (read: -// alternates in a union) to be thenable. Otherwise, you might be trying to -// check if something is defined or undefined and get caught because one of the -// branches is thenable. -function isAlwaysThenable(checker, node) { - const type = checker.getTypeAtLocation(node); - for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { - const thenProp = subType.getProperty('then'); - // If one of the alternates has no then property, it is not thenable in all - // cases. - if (thenProp === undefined) { - return false; - } - // We walk through each variation of the then property. Since we know it - // exists at this point, we just need at least one of the alternates to - // be of the right form to consider it thenable. - const thenType = checker.getTypeOfSymbolAtLocation(thenProp, node); - let hasThenableSignature = false; - for (const subType of tsutils.unionTypeParts(thenType)) { - for (const signature of subType.getCallSignatures()) { - if (signature.parameters.length !== 0 && - isFunctionParam(checker, signature.parameters[0], node)) { - hasThenableSignature = true; - break; - } - } - // We only need to find one variant of the then property that has a - // function signature for it to be thenable. - if (hasThenableSignature) { - break; - } - } - // If no flavors of the then property are thenable, we don't consider the - // overall type to be thenable - if (!hasThenableSignature) { - return false; - } - } - // If all variants are considered thenable (i.e. haven't returned false), we - // consider the overall type thenable - return true; -} -function isFunctionParam(checker, param, node) { - const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); - for (const subType of tsutils.unionTypeParts(type)) { - if (subType.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices) { - if (isThenableReturningFunctionType(checker, node.expression, type)) { - thenableReturnIndices.add(index); - } - else if (isVoidReturningFunctionType(checker, node.expression, type)) { - // If a certain argument accepts both thenable and void returns, - // a promise-returning function is valid - if (!thenableReturnIndices.has(index)) { - voidReturnIndices.add(index); - } - } -} -// Get the positions of arguments which are void functions (and not also -// thenable functions). These are the candidates for the void-return check at -// the current call site. -// If the function parameters end with a 'rest' parameter, then we consider -// the array type parameter (e.g. '...args:Array') when determining -// if trailing arguments are candidates. -function voidFunctionArguments(checker, node) { - // 'new' can be used without any arguments, as in 'let b = new Object;' - // In this case, there are no argument positions to check, so return early. - if (!node.arguments) { - return new Set(); - } - const thenableReturnIndices = new Set(); - const voidReturnIndices = new Set(); - const type = checker.getTypeAtLocation(node.expression); - // We can't use checker.getResolvedSignature because it prefers an early '() => void' over a later '() => Promise' - // See https://github.com/microsoft/TypeScript/issues/48077 - for (const subType of tsutils.unionTypeParts(type)) { - // Standard function calls and `new` have two different types of signatures - const signatures = ts.isCallExpression(node) - ? subType.getCallSignatures() - : subType.getConstructSignatures(); - for (const signature of signatures) { - for (const [index, parameter] of signature.parameters.entries()) { - const decl = parameter.valueDeclaration; - let type = checker.getTypeOfSymbolAtLocation(parameter, node.expression); - // If this is a array 'rest' parameter, check all of the argument indices - // from the current argument to the end. - if (decl && (0, util_1.isRestParameterDeclaration)(decl)) { - if (checker.isArrayType(type)) { - // Unwrap 'Array' to 'MaybeVoidFunction', - // so that we'll handle it in the same way as a non-rest - // 'param: MaybeVoidFunction' - type = checker.getTypeArguments(type)[0]; - for (let i = index; i < node.arguments.length; i++) { - checkThenableOrVoidArgument(checker, node, type, i, thenableReturnIndices, voidReturnIndices); - } - } - else if (checker.isTupleType(type)) { - // Check each type in the tuple - for example, [boolean, () => void] would - // add the index of the second tuple parameter to 'voidReturnIndices' - const typeArgs = checker.getTypeArguments(type); - for (let i = index; i < node.arguments.length && i - index < typeArgs.length; i++) { - checkThenableOrVoidArgument(checker, node, typeArgs[i - index], i, thenableReturnIndices, voidReturnIndices); - } - } - } - else { - checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices); - } - } - } - } - for (const index of thenableReturnIndices) { - voidReturnIndices.delete(index); - } - return voidReturnIndices; -} -/** - * @returns Whether any call signature of the type has a thenable return type. - */ -function anySignatureIsThenableType(checker, node, type) { - for (const signature of type.getCallSignatures()) { - const returnType = signature.getReturnType(); - if (tsutils.isThenableType(checker, node, returnType)) { - return true; - } - } - return false; -} -/** - * @returns Whether type is a thenable-returning function. - */ -function isThenableReturningFunctionType(checker, node, type) { - for (const subType of tsutils.unionTypeParts(type)) { - if (anySignatureIsThenableType(checker, node, subType)) { - return true; - } - } - return false; -} -/** - * @returns Whether type is a void-returning function. - */ -function isVoidReturningFunctionType(checker, node, type) { - let hadVoidReturn = false; - for (const subType of tsutils.unionTypeParts(type)) { - for (const signature of subType.getCallSignatures()) { - const returnType = signature.getReturnType(); - // If a certain positional argument accepts both thenable and void returns, - // a promise-returning function is valid - if (tsutils.isThenableType(checker, node, returnType)) { - return false; - } - hadVoidReturn ||= tsutils.isTypeFlagSet(returnType, ts.TypeFlags.Void); - } - } - return hadVoidReturn; -} -/** - * @returns Whether expression is a function that returns a thenable. - */ -function returnsThenable(checker, node) { - const type = checker.getApparentType(checker.getTypeAtLocation(node)); - return tsutils - .unionTypeParts(type) - .some(t => anySignatureIsThenableType(checker, node, t)); -} -function getHeritageTypes(checker, tsNode) { - return tsNode.heritageClauses - ?.flatMap(clause => clause.types) - .map(typeExpression => checker.getTypeAtLocation(typeExpression)); -} -/** - * @returns The member with the given name in `type`, if it exists. - */ -function getMemberIfExists(type, memberName) { - const escapedMemberName = ts.escapeLeadingUnderscores(memberName); - const symbolMemberMatch = type.getSymbol()?.members?.get(escapedMemberName); - return (symbolMemberMatch ?? tsutils.getPropertyOfType(type, escapedMemberName)); -} -//# sourceMappingURL=no-misused-promises.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map deleted file mode 100644 index 8bb2af78..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AA6BjB,SAAS,qBAAqB,CAC5B,gBAA+D;IAE/D,QAAQ,gBAAgB,EAAE,CAAC;QACzB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QAEf,KAAK,IAAI,CAAC;QACV,KAAK,SAAS;YACZ,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,UAAU,EAAE,IAAI;gBAChB,gBAAgB,EAAE,IAAI;gBACtB,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,IAAI;aAChB,CAAC;QAEJ;YACE,OAAO;gBACL,SAAS,EAAE,gBAAgB,CAAC,SAAS,IAAI,IAAI;gBAC7C,UAAU,EAAE,gBAAgB,CAAC,UAAU,IAAI,IAAI;gBAC/C,gBAAgB,EAAE,gBAAgB,CAAC,gBAAgB,IAAI,IAAI;gBAC3D,UAAU,EAAE,gBAAgB,CAAC,UAAU,IAAI,IAAI;gBAC/C,OAAO,EAAE,gBAAgB,CAAC,OAAO,IAAI,IAAI;gBACzC,SAAS,EAAE,gBAAgB,CAAC,SAAS,IAAI,IAAI;aAC9C,CAAC;IACN,CAAC;AACH,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE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dist/rules/no-mixed-enums.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js deleted file mode 100644 index 041a4ad4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -var AllowedType; -(function (AllowedType) { - AllowedType[AllowedType["Number"] = 0] = "Number"; - AllowedType[AllowedType["String"] = 1] = "String"; - AllowedType[AllowedType["Unknown"] = 2] = "Unknown"; -})(AllowedType || (AllowedType = {})); -exports.default = (0, util_1.createRule)({ - name: 'no-mixed-enums', - meta: { - docs: { - description: 'Disallow enums from having both number and string members', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - mixed: `Mixing number and string enums can be confusing.`, - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - const parserServices = (0, util_1.getParserServices)(context); - const typeChecker = parserServices.program.getTypeChecker(); - function collectNodeDefinitions(node) { - const { name } = node.id; - const found = { - imports: [], - previousSibling: undefined, - }; - let scope = context.sourceCode.getScope(node); - for (const definition of scope.upper?.set.get(name)?.defs ?? []) { - if (definition.node.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && - definition.node.range[0] < node.range[0] && - definition.node.body.members.length > 0) { - found.previousSibling = definition.node; - break; - } - } - while (scope) { - scope.set.get(name)?.defs.forEach(definition => { - if (definition.type === scope_manager_1.DefinitionType.ImportBinding) { - found.imports.push(definition.node); - } - }); - scope = scope.upper; - } - return found; - } - function getAllowedTypeForNode(node) { - return tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(node), ts.TypeFlags.StringLike) - ? AllowedType.String - : AllowedType.Number; - } - function getTypeFromImported(imported) { - const type = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(imported)); - const valueDeclaration = type.getSymbol()?.valueDeclaration; - if (!valueDeclaration || - !ts.isEnumDeclaration(valueDeclaration) || - valueDeclaration.members.length === 0) { - return undefined; - } - return getAllowedTypeForNode(valueDeclaration.members[0]); - } - function getMemberType(member) { - if (!member.initializer) { - return AllowedType.Number; - } - switch (member.initializer.type) { - case utils_1.AST_NODE_TYPES.Literal: - switch (typeof member.initializer.value) { - case 'number': - return AllowedType.Number; - case 'string': - return AllowedType.String; - default: - return AllowedType.Unknown; - } - case utils_1.AST_NODE_TYPES.TemplateLiteral: - return AllowedType.String; - default: - return getAllowedTypeForNode(parserServices.esTreeNodeToTSNodeMap.get(member.initializer)); - } - } - function getDesiredTypeForDefinition(node) { - const { imports, previousSibling } = collectNodeDefinitions(node); - // Case: Merged ambiently via module augmentation - // import { MyEnum } from 'other-module'; - // declare module 'other-module' { - // enum MyEnum { A } - // } - for (const imported of imports) { - const typeFromImported = getTypeFromImported(imported); - if (typeFromImported !== undefined) { - return typeFromImported; - } - } - // Case: Multiple enum declarations in the same file - // enum MyEnum { A } - // enum MyEnum { B } - if (previousSibling) { - return getMemberType(previousSibling.body.members[0]); - } - // Case: Namespace declaration merging - // namespace MyNamespace { - // export enum MyEnum { A } - // } - // namespace MyNamespace { - // export enum MyEnum { B } - // } - if (node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && - node.parent.parent.type === utils_1.AST_NODE_TYPES.TSModuleBlock) { - // https://github.com/typescript-eslint/typescript-eslint/issues/8352 - // TODO: We don't need to dip into the TypeScript type checker here! - // Merged namespaces must all exist in the same file. - // We could instead compare this file's nodes to find the merges. - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.id); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const declarations = typeChecker - .getSymbolAtLocation(tsNode) - .getDeclarations(); - const [{ initializer }] = declarations[0] - .members; - return initializer && - tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(initializer), ts.TypeFlags.StringLike) - ? AllowedType.String - : AllowedType.Number; - } - // Finally, we default to the type of the first enum member - return getMemberType(node.body.members[0]); - } - return { - TSEnumDeclaration(node) { - if (!node.body.members.length) { - return; - } - let desiredType = getDesiredTypeForDefinition(node); - if (desiredType === ts.TypeFlags.Unknown) { - return; - } - for (const member of node.body.members) { - const currentType = getMemberType(member); - if (currentType === AllowedType.Unknown) { - return; - } - if (currentType === AllowedType.Number) { - desiredType ??= currentType; - } - if (currentType !== desiredType) { - context.report({ - messageId: 'mixed', - node: member.initializer ?? member, - }); - return; - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-mixed-enums.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map deleted file mode 100644 index 3f214fa2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.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AAC,CAAC;gBACpD,IAAI,WAAW,KAAK,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;oBACzC,OAAO;gBACT,CAAC;gBAED,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACvC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;oBAC1C,IAAI,WAAW,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;wBACxC,OAAO;oBACT,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;wBACvC,WAAW,KAAK,WAAW,CAAC;oBAC9B,CAAC;oBAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;wBAChC,OAAO,CAAC,MAAM,CAAC;4BACb,SAAS,EAAE,OAAO;4BAClB,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;yBACnC,CAAC,CAAC;wBACH,OAAO;oBACT,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js deleted file mode 100644 index 6593b71f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-namespace', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow TypeScript namespaces', - recommended: 'recommended', - }, - messages: { - moduleSyntaxIsPreferred: 'ES2015 module syntax is preferred over namespaces.', - }, - schema: [ - { - type: 'object', - properties: { - allowDeclarations: { - description: 'Whether to allow `declare` with custom TypeScript namespaces.', - type: 'boolean', - }, - allowDefinitionFiles: { - description: 'Whether to allow `declare` with custom TypeScript namespaces inside definition files.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowDeclarations: false, - allowDefinitionFiles: true, - }, - ], - create(context, [{ allowDeclarations, allowDefinitionFiles }]) { - function isDeclaration(node) { - if (node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && node.declare) { - return true; - } - return node.parent != null && isDeclaration(node.parent); - } - return { - "TSModuleDeclaration[global!=true][id.type!='Literal']"(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration || - (allowDefinitionFiles && (0, util_1.isDefinitionFile)(context.filename)) || - (allowDeclarations && isDeclaration(node))) { - return; - } - context.report({ - node, - messageId: 'moduleSyntaxIsPreferred', - }); - }, - }; - }, -}); -//# sourceMappingURL=no-namespace.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map deleted file mode 100644 index 2c41718a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-namespace.js","sourceRoot":"","sources":["../../src/rules/no-namespace.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAuD;AAUvD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,uBAAuB,EACrB,oDAAoD;SACvD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,WAAW,EACT,+DAA+D;wBACjE,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,WAAW,EACT,uFAAuF;wBACzF,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB,EAAE,KAAK;YACxB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;QAC3D,SAAS,aAAa,CAAC,IAAmB;YACxC,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO;YACL,uDAAuD,CACrD,IAAkC;gBAElC,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACvD,CAAC,oBAAoB,IAAI,IAAA,uBAAgB,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC5D,CAAC,iBAAiB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,EAC1C,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,yBAAyB;iBACrC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js deleted file mode 100644 index 58c3b863..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -function hasAssignmentBeforeNode(variable, node) { - return (variable.references.some(ref => ref.isWrite() && ref.identifier.range[1] < node.range[1]) || - variable.defs.some(def => isDefinitionWithAssignment(def) && def.node.range[1] < node.range[1])); -} -function isDefinitionWithAssignment(definition) { - if (definition.type !== scope_manager_1.DefinitionType.Variable) { - return false; - } - const variableDeclarator = definition.node; - return variableDeclarator.definite || variableDeclarator.init != null; -} -exports.default = (0, util_1.createRule)({ - name: 'no-non-null-asserted-nullish-coalescing', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions in the left operand of a nullish coalescing operator', - recommended: 'strict', - }, - messages: { - noNonNullAssertedNullishCoalescing: 'The nullish coalescing operator is designed to handle undefined and null - using a non-null assertion is not needed.', - suggestRemovingNonNull: 'Remove the non-null assertion.', - }, - schema: [], - hasSuggestions: true, - }, - defaultOptions: [], - create(context) { - return { - 'LogicalExpression[operator = "??"] > TSNonNullExpression.left'(node) { - if (node.expression.type === utils_1.TSESTree.AST_NODE_TYPES.Identifier) { - const scope = context.sourceCode.getScope(node); - const identifier = node.expression; - const variable = utils_1.ASTUtils.findVariable(scope, identifier.name); - if (variable && !hasAssignmentBeforeNode(variable, node)) { - return; - } - } - context.report({ - node, - messageId: 'noNonNullAssertedNullishCoalescing', - /* - Use a suggestion instead of a fixer, because this can break type checks. - The resulting type of the nullish coalesce is only influenced by the right operand if the left operand can be `null` or `undefined`. - After removing the non-null assertion the type of the left operand might contain `null` or `undefined` and then the type of the right operand - might change the resulting type of the nullish coalesce. - See the following example: - - function test(x?: string): string { - const bar = x! ?? false; // type analysis reports `bar` has type `string` - // x ?? false; // type analysis reports `bar` has type `string | false` - return bar; - } - */ - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - const exclamationMark = (0, util_1.nullThrows)(context.sourceCode.getLastToken(node, utils_1.ASTUtils.isNonNullAssertionPunctuator), util_1.NullThrowsReasons.MissingToken('!', 'Non-null Assertion')); - return fixer.remove(exclamationMark); - }, - }, - ], - }); - }, - }; - }, -}); -//# sourceMappingURL=no-non-null-asserted-nullish-coalescing.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map deleted file mode 100644 index 761803be..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-asserted-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-nullish-coalescing.ts"],"names":[],"mappings":";;AACA,oEAAkE;AAElE,oDAA8D;AAE9D,kCAAoE;AAEpE,SAAS,uBAAuB,CAC9B,QAAiC,EACjC,IAAmB;IAEnB,OAAO,CACL,QAAQ,CAAC,UAAU,CAAC,IAAI,CACtB,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAChE;QACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAChB,GAAG,CAAC,EAAE,CACJ,0BAA0B,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACvE,CACF,CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B,CAAC,UAAsB;IACxD,IAAI,UAAU,CAAC,IAAI,KAAK,8BAAc,CAAC,QAAQ,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,IAAI,CA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BAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAC1D,CAAC;gCACF,OAAO,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;4BACvC,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js deleted file mode 100644 index 36975d71..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-non-null-asserted-optional-chain', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions after an optional chain expression', - recommended: 'recommended', - }, - hasSuggestions: true, - messages: { - noNonNullOptionalChain: 'Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.', - suggestRemovingNonNull: 'You should remove the non-null assertion.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - // non-nulling a wrapped chain will scrub all nulls introduced by the chain - // (x?.y)! - // (x?.())! - 'TSNonNullExpression > ChainExpression'(node) { - // selector guarantees this assertion - const parent = node.parent; - context.report({ - node, - messageId: 'noNonNullOptionalChain', - // use a suggestion instead of a fixer, because this can obviously break type checks - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - return fixer.removeRange([ - parent.range[1] - 1, - parent.range[1], - ]); - }, - }, - ], - }); - }, - // non-nulling at the end of a chain will scrub all nulls introduced by the chain - // x?.y! - // x?.()! - 'ChainExpression > TSNonNullExpression'(node) { - context.report({ - node, - messageId: 'noNonNullOptionalChain', - // use a suggestion instead of a fixer, because this can obviously break type checks - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }, - ], - }); - }, - }; - }, -}); -//# sourceMappingURL=no-non-null-asserted-optional-chain.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map deleted file mode 100644 index 526f40ee..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-asserted-optional-chain.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-optional-chain.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,sBAAsB,EACpB,6GAA6G;YAC/G,sBAAsB,EAAE,2CAA2C;SACpE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,2EAA2E;YAC3E,UAAU;YACV,WAAW;YACX,uCAAuC,CACrC,IAA8B;gBAE9B,qCAAqC;gBACrC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAsC,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC;oCACvB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;oCACnB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;iCAChB,CAAC,CAAC;4BACL,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;YAED,iFAAiF;YACjF,QAAQ;YACR,SAAS;YACT,uCAAuC,CACrC,IAAkC;gBAElC,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC/D,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js deleted file mode 100644 index ff0c1e0c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions using the `!` postfix operator', - recommended: 'strict', - }, - hasSuggestions: true, - messages: { - noNonNull: 'Forbidden non-null assertion.', - suggestOptionalChain: 'Consider using the optional chain operator `?.` instead. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - TSNonNullExpression(node) { - const suggest = []; - // it always exists in non-null assertion - const nonNullOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.expression, util_1.isNonNullAssertionPunctuator), util_1.NullThrowsReasons.MissingToken('!', 'expression')); - function replaceTokenWithOptional() { - return fixer => fixer.replaceText(nonNullOperator, '?.'); - } - function removeToken() { - return fixer => fixer.remove(nonNullOperator); - } - if (node.parent.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.parent.object === node) { - if (!node.parent.optional) { - if (node.parent.computed) { - // it is x![y]?.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: replaceTokenWithOptional(), - }); - } - else { - // it is x!.y?.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix(fixer) { - // x!.y?.z - // ^ punctuator - const punctuator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(nonNullOperator), util_1.NullThrowsReasons.MissingToken('.', '!')); - return [ - fixer.remove(nonNullOperator), - fixer.insertTextBefore(punctuator, '?'), - ]; - }, - }); - } - } - else if (node.parent.computed) { - // it is x!?.[y].z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - else { - // it is x!?.y.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - } - else if (node.parent.type === utils_1.AST_NODE_TYPES.CallExpression && - node.parent.callee === node) { - if (!node.parent.optional) { - // it is x.y?.z!() - suggest.push({ - messageId: 'suggestOptionalChain', - fix: replaceTokenWithOptional(), - }); - } - else { - // it is x.y.z!?.() - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - } - context.report({ - node, - messageId: 'noNonNull', - suggest, - }); - }, - }; - }, -}); -//# sourceMappingURL=no-non-null-assertion.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map deleted file mode 100644 index fbbfab64..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-non-null-assertion.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAKiB;AAIjB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,QAAQ;SACtB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,SAAS,EAAE,+BAA+B;YAC1C,oBAAoB,EAClB,mKAAmK;SACtK;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,MAAM,OAAO,GAA+C,EAAE,CAAC;gBAE/D,yCAAyC;gBACzC,MAAM,eAAe,GAAG,IAAA,iBAAU,EAChC,OAAO,CAAC,UAAU,CAAC,aAAa,CAC9B,IAAI,CAAC,UAAU,EACf,mCAA4B,CAC7B,EACD,wBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,CAClD,CAAC;gBAEF,SAAS,wBAAwB;oBAC/B,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;gBAC3D,CAAC;gBAED,SAAS,WAAW;oBAClB,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;gBAChD,CAAC;gBAED,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,EAC3B,CAAC;oBACD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC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BAAkB;wBAClB,OAAO,CAAC,IAAI,CAAC;4BACX,SAAS,EAAE,sBAAsB;4BACjC,GAAG,EAAE,wBAAwB,EAAE;yBAChC,CAAC,CAAC;oBACL,CAAC;yBAAM,CAAC;wBACN,mBAAmB;wBACnB,OAAO,CAAC,IAAI,CAAC;4BACX,SAAS,EAAE,sBAAsB;4BACjC,GAAG,EAAE,WAAW,EAAE;yBACnB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,WAAW;oBACtB,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js deleted file mode 100644 index d893cc65..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-redeclare', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow variable redeclaration', - extendsBaseRule: true, - }, - schema: [ - { - type: 'object', - properties: { - builtinGlobals: { - type: 'boolean', - }, - ignoreDeclarationMerge: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - redeclared: "'{{id}}' is already defined.", - redeclaredAsBuiltin: "'{{id}}' is already defined as a built-in global variable.", - redeclaredBySyntax: "'{{id}}' is already defined by a variable declaration.", - }, - }, - defaultOptions: [ - { - builtinGlobals: true, - ignoreDeclarationMerge: true, - }, - ], - create(context, [options]) { - const CLASS_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - ]); - const FUNCTION_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - ]); - const ENUM_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSEnumDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - ]); - function* iterateDeclarations(variable) { - if (options.builtinGlobals && - 'eslintImplicitGlobalSetting' in variable && - (variable.eslintImplicitGlobalSetting === 'readonly' || - variable.eslintImplicitGlobalSetting === 'writable')) { - yield { type: 'builtin' }; - } - if ('eslintExplicitGlobalComments' in variable && - variable.eslintExplicitGlobalComments) { - for (const comment of variable.eslintExplicitGlobalComments) { - yield { - type: 'comment', - node: comment, - loc: (0, util_1.getNameLocationInGlobalDirectiveComment)(context.sourceCode, comment, variable.name), - }; - } - } - const identifiers = variable.identifiers - .map(id => ({ - identifier: id, - parent: id.parent, - })) - // ignore function declarations because TS will treat them as an overload - .filter(({ parent }) => parent.type !== utils_1.AST_NODE_TYPES.TSDeclareFunction); - if (options.ignoreDeclarationMerge && identifiers.length > 1) { - if ( - // interfaces merging - identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration)) { - return; - } - if ( - // namespace/module merging - identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration)) { - return; - } - if ( - // class + interface/namespace merging - identifiers.every(({ parent }) => CLASS_DECLARATION_MERGE_NODES.has(parent.type))) { - const classDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration); - if (classDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one class declaration, which needs to be reported - for (const { identifier } of classDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - if ( - // class + interface/namespace merging - identifiers.every(({ parent }) => FUNCTION_DECLARATION_MERGE_NODES.has(parent.type))) { - const functionDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.FunctionDeclaration); - if (functionDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one function declaration, which needs to be reported - for (const { identifier } of functionDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - if ( - // enum + namespace merging - identifiers.every(({ parent }) => ENUM_DECLARATION_MERGE_NODES.has(parent.type))) { - const enumDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration); - if (enumDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one enum declaration, which needs to be reported - for (const { identifier } of enumDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - } - for (const { identifier } of identifiers) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - } - function findVariablesInScope(scope) { - for (const variable of scope.variables) { - const [declaration, ...extraDeclarations] = iterateDeclarations(variable); - if (extraDeclarations.length === 0) { - continue; - } - /* - * If the type of a declaration is different from the type of - * the first declaration, it shows the location of the first - * declaration. - */ - const detailMessageId = declaration.type === 'builtin' - ? 'redeclaredAsBuiltin' - : 'redeclaredBySyntax'; - const data = { id: variable.name }; - // Report extra declarations. - for (const { type, node, loc } of extraDeclarations) { - const messageId = type === declaration.type ? 'redeclared' : detailMessageId; - if (node) { - context.report({ node, loc, messageId, data }); - } - else if (loc) { - context.report({ loc, messageId, data }); - } - } - } - } - /** - * Find variables in the current scope. - */ - function checkForBlock(node) { - const scope = context.sourceCode.getScope(node); - /* - * In ES5, some node type such as `BlockStatement` doesn't have that scope. - * `scope.block` is a different node in such a case. - */ - if (scope.block === node) { - findVariablesInScope(scope); - } - } - return { - Program(node) { - const scope = context.sourceCode.getScope(node); - findVariablesInScope(scope); - // Node.js or ES modules has a special scope. - if (scope.type === scope_manager_1.ScopeType.global && - scope.childScopes[0] && - // The special scope's block is the Program node. - scope.block === scope.childScopes[0].block) { - findVariablesInScope(scope.childScopes[0]); - } - }, - FunctionDeclaration: checkForBlock, - FunctionExpression: checkForBlock, - ArrowFunctionExpression: checkForBlock, - BlockStatement: checkForBlock, - ForStatement: checkForBlock, - ForInStatement: checkForBlock, - ForOfStatement: checkForBlock, - SwitchStatement: checkForBlock, - }; - }, -}); -//# sourceMappingURL=no-redeclare.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map deleted file mode 100644 index 57e9dfa9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-redeclare.js","sourceRoot":"","sources":["../../src/rules/no-redeclare.ts"],"names":[],"mappings":";;AAAA,oEAA6D;AAE7D,oDAA0D;AAE1D,kCAA8E;AAU9E,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,8BAA8B;YAC1C,mBAAmB,EACjB,4DAA4D;YAC9D,kBAAkB,EAChB,wDAAwD;SAC3D;KACF;IACD,cAAc,EAAE;QACd;YACE,cAAc,EAAE,IAAI;YACpB,sBAAsB,EAAE,IAAI;SAC7B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,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CAAC,IAAI,CAAC,CAAC;YAEhD;;;eAGG;YACH,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBACzB,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,CAAC,IAAI;gBACV,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAEhD,oBAAoB,CAAC,KAAK,CAAC,CAAC;gBAE5B,6CAA6C;gBAC7C,IACE,KAAK,CAAC,IAAI,KAAK,yBAAS,CAAC,MAAM;oBAC/B,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;oBACpB,iDAAiD;oBACjD,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,EAC1C,CAAC;oBACD,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC;YAED,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,uBAAuB,EAAE,aAAa;YAEtC,cAAc,EAAE,aAAa;YAC7B,YAAY,EAAE,aAAa;YAC3B,cAAc,EAAE,aAAa;YAC7B,cAAc,EAAE,aAAa;YAC7B,eAAe,EAAE,aAAa;SAC/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js deleted file mode 100644 index d10ab7ee..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +++ /dev/null @@ -1,414 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const literalToPrimitiveTypeFlags = { - [ts.TypeFlags.BigIntLiteral]: ts.TypeFlags.BigInt, - [ts.TypeFlags.BooleanLiteral]: ts.TypeFlags.Boolean, - [ts.TypeFlags.NumberLiteral]: ts.TypeFlags.Number, - [ts.TypeFlags.StringLiteral]: ts.TypeFlags.String, - [ts.TypeFlags.TemplateLiteral]: ts.TypeFlags.String, -}; -const literalTypeFlags = [ - ts.TypeFlags.BigIntLiteral, - ts.TypeFlags.BooleanLiteral, - ts.TypeFlags.NumberLiteral, - ts.TypeFlags.StringLiteral, - ts.TypeFlags.TemplateLiteral, -]; -const primitiveTypeFlags = [ - ts.TypeFlags.BigInt, - ts.TypeFlags.Boolean, - ts.TypeFlags.Number, - ts.TypeFlags.String, -]; -const primitiveTypeFlagNames = { - [ts.TypeFlags.BigInt]: 'bigint', - [ts.TypeFlags.Boolean]: 'boolean', - [ts.TypeFlags.Number]: 'number', - [ts.TypeFlags.String]: 'string', -}; -const primitiveTypeFlagTypes = { - bigint: ts.TypeFlags.BigIntLiteral, - boolean: ts.TypeFlags.BooleanLiteral, - number: ts.TypeFlags.NumberLiteral, - string: ts.TypeFlags.StringLiteral, -}; -const keywordNodeTypesToTsTypes = new Map([ - [utils_1.TSESTree.AST_NODE_TYPES.TSAnyKeyword, ts.TypeFlags.Any], - [utils_1.TSESTree.AST_NODE_TYPES.TSBigIntKeyword, ts.TypeFlags.BigInt], - [utils_1.TSESTree.AST_NODE_TYPES.TSBooleanKeyword, ts.TypeFlags.Boolean], - [utils_1.TSESTree.AST_NODE_TYPES.TSNeverKeyword, ts.TypeFlags.Never], - [utils_1.TSESTree.AST_NODE_TYPES.TSUnknownKeyword, ts.TypeFlags.Unknown], - [utils_1.TSESTree.AST_NODE_TYPES.TSNumberKeyword, ts.TypeFlags.Number], - [utils_1.TSESTree.AST_NODE_TYPES.TSStringKeyword, ts.TypeFlags.String], -]); -function addToMapGroup(map, key, value) { - const existing = map.get(key); - if (existing) { - existing.push(value); - } - else { - map.set(key, [value]); - } -} -function describeLiteralType(type) { - if (type.isStringLiteral()) { - return JSON.stringify(type.value); - } - if ((0, util_1.isTypeBigIntLiteralType)(type)) { - return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; - } - if (type.isLiteral()) { - // eslint-disable-next-line @typescript-eslint/no-base-to-string - return type.value.toString(); - } - if ((0, util_1.isTypeAnyType)(type)) { - return 'any'; - } - if ((0, util_1.isTypeNeverType)(type)) { - return 'never'; - } - if ((0, util_1.isTypeUnknownType)(type)) { - return 'unknown'; - } - if ((0, util_1.isTypeTemplateLiteralType)(type)) { - return 'template literal type'; - } - if ((0, util_1.isTypeBigIntLiteralType)(type)) { - return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; - } - if (tsutils.isTrueLiteralType(type)) { - return 'true'; - } - if (tsutils.isFalseLiteralType(type)) { - return 'false'; - } - return 'literal type'; -} -function describeLiteralTypeNode(typeNode) { - switch (typeNode.type) { - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - return 'any'; - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - return 'boolean'; - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - return 'never'; - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - return 'number'; - case utils_1.AST_NODE_TYPES.TSStringKeyword: - return 'string'; - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - return 'unknown'; - case utils_1.AST_NODE_TYPES.TSLiteralType: - switch (typeNode.literal.type) { - case utils_1.TSESTree.AST_NODE_TYPES.Literal: - switch (typeof typeNode.literal.value) { - case 'bigint': - return `${typeNode.literal.value < 0 ? '-' : ''}${typeNode.literal.value}n`; - case 'string': - return JSON.stringify(typeNode.literal.value); - default: - return `${typeNode.literal.value}`; - } - case utils_1.TSESTree.AST_NODE_TYPES.TemplateLiteral: - return 'template literal type'; - } - } - return 'literal type'; -} -function isNodeInsideReturnType(node) { - return !!(node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation && - ((0, util_1.isFunctionType)(node.parent.parent) || (0, util_1.isFunction)(node.parent.parent))); -} -/** - * @remarks TypeScript stores boolean types as the union false | true, always. - */ -function unionTypePartsUnlessBoolean(type) { - return type.isUnion() && - type.types.length === 2 && - tsutils.isFalseLiteralType(type.types[0]) && - tsutils.isTrueLiteralType(type.types[1]) - ? [type] - : tsutils.unionTypeParts(type); -} -exports.default = (0, util_1.createRule)({ - name: 'no-redundant-type-constituents', - meta: { - docs: { - description: 'Disallow members of unions and intersections that do nothing or override type information', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - literalOverridden: `{{literal}} is overridden by {{primitive}} in this union type.`, - primitiveOverridden: `{{primitive}} is overridden by the {{literal}} in this intersection type.`, - overridden: `'{{typeName}}' is overridden by other types in this {{container}} type.`, - overrides: `'{{typeName}}' overrides all other types in this {{container}} type.`, - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const typesCache = new Map(); - function getTypeNodeTypePartFlags(typeNode) { - const keywordTypeFlags = keywordNodeTypesToTsTypes.get(typeNode.type); - if (keywordTypeFlags) { - return [ - { - typeFlags: keywordTypeFlags, - typeName: describeLiteralTypeNode(typeNode), - }, - ]; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && - typeNode.literal.type === utils_1.AST_NODE_TYPES.Literal) { - return [ - { - typeFlags: primitiveTypeFlagTypes[typeof typeNode.literal - .value], - typeName: describeLiteralTypeNode(typeNode), - }, - ]; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { - return typeNode.types.flatMap(getTypeNodeTypePartFlags); - } - const nodeType = services.getTypeAtLocation(typeNode); - const typeParts = unionTypePartsUnlessBoolean(nodeType); - return typeParts.map(typePart => ({ - typeFlags: typePart.flags, - typeName: describeLiteralType(typePart), - })); - } - function getTypeNodeTypePartFlagsCached(typeNode) { - const existing = typesCache.get(typeNode); - if (existing) { - return existing; - } - const created = getTypeNodeTypePartFlags(typeNode); - typesCache.set(typeNode, created); - return created; - } - return { - 'TSIntersectionType:exit'(node) { - const seenLiteralTypes = new Map(); - const seenPrimitiveTypes = new Map(); - const seenUnionTypes = new Map(); - function checkIntersectionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { - for (const [messageId, checkFlag] of [ - ['overrides', ts.TypeFlags.Any], - ['overrides', ts.TypeFlags.Never], - ['overridden', ts.TypeFlags.Unknown], - ]) { - if (typeFlags === checkFlag) { - context.report({ - data: { - container: 'intersection', - typeName, - }, - messageId, - node: typeNode, - }); - return true; - } - } - return false; - } - for (const typeNode of node.types) { - const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); - for (const typePart of typePartFlags) { - if (checkIntersectionBottomAndTopTypes(typePart, typeNode)) { - continue; - } - for (const literalTypeFlag of literalTypeFlags) { - if (typePart.typeFlags === literalTypeFlag) { - addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], typePart.typeName); - break; - } - } - for (const primitiveTypeFlag of primitiveTypeFlags) { - if (typePart.typeFlags === primitiveTypeFlag) { - addToMapGroup(seenPrimitiveTypes, primitiveTypeFlag, typeNode); - } - } - } - // if any typeNode is TSTypeReference and typePartFlags have more than 1 element, than the referenced type is definitely a union. - if (typePartFlags.length >= 2) { - seenUnionTypes.set(typeNode, typePartFlags); - } - } - /** - * @example - * ```ts - * type F = "a"|2|"b"; - * type I = F & string; - * ``` - * This function checks if all the union members of `F` are assignable to the other member of `I`. If every member is assignable, then its reported else not. - */ - const checkIfUnionsAreAssignable = () => { - for (const [typeRef, typeValues] of seenUnionTypes) { - let primitive = undefined; - for (const { typeFlags } of typeValues) { - if (seenPrimitiveTypes.has(literalToPrimitiveTypeFlags[typeFlags])) { - primitive = - literalToPrimitiveTypeFlags[typeFlags]; - } - else { - primitive = undefined; - break; - } - } - if (Number.isInteger(primitive)) { - context.report({ - data: { - literal: typeValues.map(name => name.typeName).join(' | '), - primitive: primitiveTypeFlagNames[primitive], - }, - messageId: 'primitiveOverridden', - node: typeRef, - }); - } - } - }; - if (seenUnionTypes.size > 0) { - checkIfUnionsAreAssignable(); - return; - } - // For each primitive type of all the seen primitive types, - // if there was a literal type seen that overrides it, - // report each of the primitive type's type nodes - for (const [primitiveTypeFlag, typeNodes] of seenPrimitiveTypes) { - const matchedLiteralTypes = seenLiteralTypes.get(primitiveTypeFlag); - if (matchedLiteralTypes) { - for (const typeNode of typeNodes) { - context.report({ - data: { - literal: matchedLiteralTypes.join(' | '), - primitive: primitiveTypeFlagNames[primitiveTypeFlag], - }, - messageId: 'primitiveOverridden', - node: typeNode, - }); - } - } - } - }, - 'TSUnionType:exit'(node) { - const seenLiteralTypes = new Map(); - const seenPrimitiveTypes = new Set(); - function checkUnionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { - for (const checkFlag of [ - ts.TypeFlags.Any, - ts.TypeFlags.Unknown, - ]) { - if (typeFlags === checkFlag) { - context.report({ - data: { - container: 'union', - typeName, - }, - messageId: 'overrides', - node: typeNode, - }); - return true; - } - } - if (typeFlags === ts.TypeFlags.Never && - !isNodeInsideReturnType(node)) { - context.report({ - data: { - container: 'union', - typeName: 'never', - }, - messageId: 'overridden', - node: typeNode, - }); - return true; - } - return false; - } - for (const typeNode of node.types) { - const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); - for (const typePart of typePartFlags) { - if (checkUnionBottomAndTopTypes(typePart, typeNode)) { - continue; - } - for (const literalTypeFlag of literalTypeFlags) { - if (typePart.typeFlags === literalTypeFlag) { - addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], { - literalValue: typePart.typeName, - typeNode, - }); - break; - } - } - for (const primitiveTypeFlag of primitiveTypeFlags) { - if ((typePart.typeFlags & primitiveTypeFlag) !== 0) { - seenPrimitiveTypes.add(primitiveTypeFlag); - } - } - } - } - const overriddenTypeNodes = new Map(); - // For each primitive type of all the seen literal types, - // if there was a primitive type seen that overrides it, - // upsert the literal text and primitive type under the backing type node - for (const [primitiveTypeFlag, typeNodesWithText] of seenLiteralTypes) { - if (seenPrimitiveTypes.has(primitiveTypeFlag)) { - for (const { literalValue, typeNode } of typeNodesWithText) { - addToMapGroup(overriddenTypeNodes, typeNode, { - literalValue, - primitiveTypeFlag, - }); - } - } - } - // For each type node that had at least one overridden literal, - // group those literals by their primitive type, - // then report each primitive type with all its literals - for (const [typeNode, typeFlagsWithText] of overriddenTypeNodes) { - const grouped = (0, util_1.arrayGroupByToMap)(typeFlagsWithText, pair => pair.primitiveTypeFlag); - for (const [primitiveTypeFlag, pairs] of grouped) { - context.report({ - data: { - literal: pairs.map(pair => pair.literalValue).join(' | '), - primitive: primitiveTypeFlagNames[primitiveTypeFlag], - }, - messageId: 'literalOverridden', - node: typeNode, - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-redundant-type-constituents.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map deleted file mode 100644 index 7a180d0b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-redundant-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-redundant-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAWiB;AAEjB,MAAM,2BAA2B,GAAG;IAClC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO;IACnD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;CAC3C,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,cAAc;IAC3B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,eAAe;CACpB,CAAC;AAEX,MAAM,kBAAkB,GAAG;IACzB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,OAAO;IACpB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,MAAM;CACX,CAAC;AAEX,MAAM,sBAAsB,GAAG;IAC7B,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC/B,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,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iB,CAAC;6BACrD;4BACD,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE,QAAQ;yBACf,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js deleted file mode 100644 index 9aa02411..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-require-imports', - meta: { - type: 'problem', - docs: { - description: 'Disallow invocation of `require()`', - recommended: 'recommended', - }, - schema: [ - { - type: 'object', - properties: { - allow: { - type: 'array', - items: { type: 'string' }, - description: 'Patterns of import paths to allow requiring from.', - }, - allowAsImport: { - type: 'boolean', - description: 'Allows `require` statements in import declarations.', - }, - }, - additionalProperties: false, - }, - ], - messages: { - noRequireImports: 'A `require()` style import is forbidden.', - }, - }, - defaultOptions: [{ allow: [], allowAsImport: false }], - create(context, options) { - const allowAsImport = options[0].allowAsImport; - const allowPatterns = options[0].allow?.map(pattern => new RegExp(pattern, 'u')); - function isImportPathAllowed(importPath) { - return allowPatterns?.some(pattern => importPath.match(pattern)); - } - function isStringOrTemplateLiteral(node) { - return ((node.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.value === 'string') || - node.type === utils_1.AST_NODE_TYPES.TemplateLiteral); - } - return { - 'CallExpression[callee.name="require"]'(node) { - if (node.arguments[0] && isStringOrTemplateLiteral(node.arguments[0])) { - const argValue = util.getStaticStringValue(node.arguments[0]); - if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { - return; - } - } - const variable = utils_1.ASTUtils.findVariable(context.sourceCode.getScope(node), 'require'); - // ignore non-global require usage as it's something user-land custom instead - // of the commonjs standard - if (!variable?.identifiers.length) { - context.report({ - node, - messageId: 'noRequireImports', - }); - } - }, - TSExternalModuleReference(node) { - if (isStringOrTemplateLiteral(node.expression)) { - const argValue = util.getStaticStringValue(node.expression); - if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { - return; - } - } - if (allowAsImport && - node.parent.type === utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration) { - return; - } - context.report({ - node, - messageId: 'noRequireImports', - }); - }, - }; - }, -}); -//# sourceMappingURL=no-require-imports.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map deleted file mode 100644 index c5d862a1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,o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;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js deleted file mode 100644 index 77912779..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +++ /dev/null @@ -1,236 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ignore_1 = __importDefault(require("ignore")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-restricted-imports'); -// In some versions of eslint, the base rule has a completely incompatible schema -// This helper function is to safely try to get parts of the schema. If it's not -// possible, we'll fallback to less strict checks. -const tryAccess = (getter, fallback) => { - try { - return getter(); - } - catch { - return fallback; - } -}; -const baseSchema = baseRule.meta.schema; -const allowTypeImportsOptionSchema = { - allowTypeImports: { - type: 'boolean', - description: 'Disallow value imports, but allow type-only imports.', - }, -}; -const arrayOfStringsOrObjects = { - type: 'array', - items: { - anyOf: [ - { type: 'string' }, - { - type: 'object', - additionalProperties: false, - properties: { - ...tryAccess(() => baseSchema.anyOf[1].items[0].properties.paths.items.anyOf[1] - .properties, undefined), - ...allowTypeImportsOptionSchema, - }, - required: tryAccess(() => baseSchema.anyOf[1].items[0].properties.paths.items.anyOf[1] - .required, undefined), - }, - ], - }, - uniqueItems: true, -}; -const arrayOfStringsOrObjectPatterns = { - anyOf: [ - { - type: 'array', - items: { - type: 'string', - }, - uniqueItems: true, - }, - { - type: 'array', - items: { - type: 'object', - additionalProperties: false, - properties: { - ...tryAccess(() => baseSchema.anyOf[1].items[0].properties.patterns.anyOf[1].items - .properties, undefined), - ...allowTypeImportsOptionSchema, - }, - required: tryAccess(() => baseSchema.anyOf[1].items[0].properties.patterns.anyOf[1].items - .required, []), - }, - uniqueItems: true, - }, - ], -}; -const schema = { - anyOf: [ - arrayOfStringsOrObjects, - { - type: 'array', - items: [ - { - type: 'object', - properties: { - paths: arrayOfStringsOrObjects, - patterns: arrayOfStringsOrObjectPatterns, - }, - additionalProperties: false, - }, - ], - additionalItems: false, - }, - ], -}; -function isObjectOfPaths(obj) { - return !!obj && Object.hasOwn(obj, 'paths'); -} -function isObjectOfPatterns(obj) { - return !!obj && Object.hasOwn(obj, 'patterns'); -} -function isOptionsArrayOfStringOrObject(options) { - if (isObjectOfPaths(options[0])) { - return false; - } - if (isObjectOfPatterns(options[0])) { - return false; - } - return true; -} -function getRestrictedPaths(options) { - if (isOptionsArrayOfStringOrObject(options)) { - return options; - } - if (isObjectOfPaths(options[0])) { - return options[0].paths; - } - return []; -} -function getRestrictedPatterns(options) { - if (isObjectOfPatterns(options[0])) { - return options[0].patterns; - } - return []; -} -function shouldCreateRule(baseRules, options) { - if (Object.keys(baseRules).length === 0 || options.length === 0) { - return false; - } - if (!isOptionsArrayOfStringOrObject(options)) { - return !!(options[0].paths?.length || options[0].patterns?.length); - } - return true; -} -exports.default = (0, util_1.createRule)({ - name: 'no-restricted-imports', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow specified modules when loaded by `import`', - extendsBaseRule: true, - }, - messages: baseRule.meta.messages, - fixable: baseRule.meta.fixable, - schema, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - const { options } = context; - if (!shouldCreateRule(rules, options)) { - return {}; - } - const restrictedPaths = getRestrictedPaths(options); - const allowedTypeImportPathNameSet = new Set(); - for (const restrictedPath of restrictedPaths) { - if (typeof restrictedPath === 'object' && - restrictedPath.allowTypeImports) { - allowedTypeImportPathNameSet.add(restrictedPath.name); - } - } - function isAllowedTypeImportPath(importSource) { - return allowedTypeImportPathNameSet.has(importSource); - } - const restrictedPatterns = getRestrictedPatterns(options); - const allowedImportTypeMatchers = []; - for (const restrictedPattern of restrictedPatterns) { - if (typeof restrictedPattern === 'object' && - restrictedPattern.allowTypeImports) { - // Following how ignore is configured in the base rule - allowedImportTypeMatchers.push((0, ignore_1.default)({ - allowRelativePaths: true, - ignoreCase: !restrictedPattern.caseSensitive, - }).add(restrictedPattern.group)); - } - } - function isAllowedTypeImportPattern(importSource) { - return ( - // As long as there's one matching pattern that allows type import - allowedImportTypeMatchers.some(matcher => matcher.ignores(importSource))); - } - function checkImportNode(node) { - if (node.importKind === 'type' || - (node.specifiers.length > 0 && - node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - specifier.importKind === 'type'))) { - const importSource = node.source.value.trim(); - if (!isAllowedTypeImportPath(importSource) && - !isAllowedTypeImportPattern(importSource)) { - return rules.ImportDeclaration(node); - } - } - else { - return rules.ImportDeclaration(node); - } - } - return { - TSImportEqualsDeclaration(node) { - if (node.moduleReference.type === utils_1.AST_NODE_TYPES.TSExternalModuleReference) { - const synthesizedImport = { - ...node, - type: utils_1.AST_NODE_TYPES.ImportDeclaration, - source: node.moduleReference.expression, - assertions: [], - attributes: [], - specifiers: [ - { - ...node.id, - type: utils_1.AST_NODE_TYPES.ImportDefaultSpecifier, - local: node.id, - // @ts-expect-error -- parent types are incompatible but it's fine for the purposes of this extension - parent: node.id.parent, - }, - ], - }; - return checkImportNode(synthesizedImport); - } - }, - ImportDeclaration: checkImportNode, - 'ExportNamedDeclaration[source]'(node) { - if (node.exportKind === 'type' || - (node.specifiers.length > 0 && - node.specifiers.every(specifier => specifier.exportKind === 'type'))) { - const importSource = node.source.value.trim(); - if (!isAllowedTypeImportPath(importSource) && - !isAllowedTypeImportPattern(importSource)) { - return rules.ExportNamedDeclaration(node); - } - } - else { - return rules.ExportNamedDeclaration(node); - } - }, - ExportAllDeclaration: rules.ExportAllDeclaration, - }; - }, -}); -//# sourceMappingURL=no-restricted-imports.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map deleted file mode 100644 index 4b3a81c4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-restricted-imports.js","sourceRoot":"","sources":["../../src/rules/no-restricted-imports.ts"],"names":[],"mappings":";;;;;AACA,oDAA0D;AAY1D,oDAA4B;AAM5B,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,iFAAiF;AACjF,gFAAgF;AAChF,kDAAkD;AAClD,MAAM,SAAS,GAAG,CAAI,MAAe,EAAE,QAAW,EAAK,EAAE;IACvD,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,MAwChC,CAAC;AAEF,MAAM,4BAA4B,GAA0C;IAC1E,gBAAgB,EAAE;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,sDAAsD;KACpE;CACF,CAAC;AAEF,MAAM,uBAAuB,GAA2B;IACtD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClB;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,GAAG,SAAS,CACV,GAAG,EAAE,CACH,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,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,CAAC;wBACtC,CAAC,0BAA0B,CAAC,YAAY,CAAC,EACzC,CAAC;wBACD,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAC5C,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;YACD,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;SACjD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js deleted file mode 100644 index 6bda5fd2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -function removeSpaces(str) { - return str.replace(/\s/g, ''); -} -function stringifyNode(node, sourceCode) { - return removeSpaces(sourceCode.getText(node)); -} -function getCustomMessage(bannedType) { - if (!bannedType || bannedType === true) { - return ''; - } - if (typeof bannedType === 'string') { - return ` ${bannedType}`; - } - if (bannedType.message) { - return ` ${bannedType.message}`; - } - return ''; -} -const TYPE_KEYWORDS = { - bigint: utils_1.AST_NODE_TYPES.TSBigIntKeyword, - boolean: utils_1.AST_NODE_TYPES.TSBooleanKeyword, - never: utils_1.AST_NODE_TYPES.TSNeverKeyword, - null: utils_1.AST_NODE_TYPES.TSNullKeyword, - number: utils_1.AST_NODE_TYPES.TSNumberKeyword, - object: utils_1.AST_NODE_TYPES.TSObjectKeyword, - string: utils_1.AST_NODE_TYPES.TSStringKeyword, - symbol: utils_1.AST_NODE_TYPES.TSSymbolKeyword, - undefined: utils_1.AST_NODE_TYPES.TSUndefinedKeyword, - unknown: utils_1.AST_NODE_TYPES.TSUnknownKeyword, - void: utils_1.AST_NODE_TYPES.TSVoidKeyword, -}; -exports.default = (0, util_1.createRule)({ - name: 'no-restricted-types', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow certain types', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - bannedTypeMessage: "Don't use `{{name}}` as a type.{{customMessage}}", - bannedTypeReplacement: 'Replace `{{name}}` with `{{replacement}}`.', - }, - schema: [ - { - $defs: { - banConfig: { - oneOf: [ - { - type: 'boolean', - enum: [true], - description: 'Bans the type with the default message', - }, - { - type: 'string', - description: 'Bans the type with a custom message', - }, - { - type: 'object', - description: 'Bans a type', - properties: { - message: { - type: 'string', - description: 'Custom error message', - }, - fixWith: { - type: 'string', - description: 'Type to autofix replace with. Note that autofixers can be applied automatically - so you need to be careful with this option.', - }, - suggest: { - type: 'array', - items: { type: 'string' }, - description: 'Types to suggest replacing with.', - }, - }, - additionalProperties: false, - }, - ], - }, - }, - type: 'object', - properties: { - types: { - type: 'object', - additionalProperties: { - $ref: '#/items/0/$defs/banConfig', - }, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{}], - create(context, [{ types = {} }]) { - const bannedTypes = new Map(Object.entries(types).map(([type, data]) => [removeSpaces(type), data])); - function checkBannedTypes(typeNode, name = stringifyNode(typeNode, context.sourceCode)) { - const bannedType = bannedTypes.get(name); - if (bannedType === undefined || bannedType === false) { - return; - } - const customMessage = getCustomMessage(bannedType); - const fixWith = bannedType && typeof bannedType === 'object' && bannedType.fixWith; - const suggest = bannedType && typeof bannedType === 'object' - ? bannedType.suggest - : undefined; - context.report({ - node: typeNode, - messageId: 'bannedTypeMessage', - data: { - name, - customMessage, - }, - fix: fixWith - ? (fixer) => fixer.replaceText(typeNode, fixWith) - : null, - suggest: suggest?.map(replacement => ({ - messageId: 'bannedTypeReplacement', - data: { - name, - replacement, - }, - fix: (fixer) => fixer.replaceText(typeNode, replacement), - })), - }); - } - const keywordSelectors = (0, util_1.objectReduceKey)(TYPE_KEYWORDS, (acc, keyword) => { - if (bannedTypes.has(keyword)) { - acc[TYPE_KEYWORDS[keyword]] = (node) => checkBannedTypes(node, keyword); - } - return acc; - }, {}); - return { - ...keywordSelectors, - TSClassImplements(node) { - checkBannedTypes(node); - }, - TSInterfaceHeritage(node) { - checkBannedTypes(node); - }, - TSTupleType(node) { - if (!node.elementTypes.length) { - checkBannedTypes(node); - } - }, - TSTypeLiteral(node) { - if (!node.members.length) { - checkBannedTypes(node); - } - }, - TSTypeReference(node) { - checkBannedTypes(node.typeName); - if (node.typeArguments) { - checkBannedTypes(node); - } - }, - }; - }, -}); -//# sourceMappingURL=no-restricted-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map deleted file mode 100644 index 2e2f7dc8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-restricted-types.js","sourceRoot":"","sources":["../../src/rules/no-restricted-types.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAsD;AAuBtD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,aAAa,CACpB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAyE;IAEzE,IAAI,CAAC,UAAU,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,UAAU,EAAE,CAAC;IAC1B,CAAC;IAED,IAAI,UAAU,CAAC,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AAW,CAAC,IAAI;gBACd,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;oBAC9B,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;oBACzB,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAEhC,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;oBACvB,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js deleted file mode 100644 index a5f5f199..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +++ /dev/null @@ -1,478 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const isTypeImport_1 = require("../util/isTypeImport"); -const allowedFunctionVariableDefTypes = new Set([ - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSMethodSignature, -]); -exports.default = (0, util_1.createRule)({ - name: 'no-shadow', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow variable declarations from shadowing variables declared in the outer scope', - extendsBaseRule: true, - }, - schema: [ - { - type: 'object', - properties: { - builtinGlobals: { - type: 'boolean', - }, - hoist: { - type: 'string', - enum: ['all', 'functions', 'never'], - }, - allow: { - type: 'array', - items: { - type: 'string', - }, - }, - ignoreOnInitialization: { - type: 'boolean', - }, - ignoreTypeValueShadow: { - type: 'boolean', - }, - ignoreFunctionTypeParameterNameValueShadow: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - noShadow: "'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.", - noShadowGlobal: "'{{name}}' is already a global variable.", - }, - }, - defaultOptions: [ - { - allow: [], - builtinGlobals: false, - hoist: 'functions', - ignoreOnInitialization: false, - ignoreTypeValueShadow: true, - ignoreFunctionTypeParameterNameValueShadow: true, - }, - ], - create(context, [options]) { - /** - * Check if a scope is a TypeScript module augmenting the global namespace. - */ - function isGlobalAugmentation(scope) { - return ((scope.type === scope_manager_1.ScopeType.tsModule && scope.block.kind === 'global') || - (!!scope.upper && isGlobalAugmentation(scope.upper))); - } - /** - * Check if variable is a `this` parameter. - */ - function isThisParam(variable) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.Parameter && - variable.name === 'this'); - } - function isTypeValueShadow(variable, shadowed) { - if (options.ignoreTypeValueShadow !== true) { - return false; - } - if (!('isValueVariable' in variable)) { - // this shouldn't happen... - return false; - } - const firstDefinition = shadowed.defs.at(0); - const isShadowedValue = !('isValueVariable' in shadowed) || - !firstDefinition || - (!(0, isTypeImport_1.isTypeImport)(firstDefinition) && shadowed.isValueVariable); - return variable.isValueVariable !== isShadowedValue; - } - function isFunctionTypeParameterNameValueShadow(variable, shadowed) { - if (options.ignoreFunctionTypeParameterNameValueShadow !== true) { - return false; - } - if (!('isValueVariable' in variable)) { - // this shouldn't happen... - return false; - } - const isShadowedValue = 'isValueVariable' in shadowed ? shadowed.isValueVariable : true; - if (!isShadowedValue) { - return false; - } - return variable.defs.every(def => allowedFunctionVariableDefTypes.has(def.node.type)); - } - function isGenericOfStaticMethod(variable) { - if (!('isTypeVariable' in variable)) { - // this shouldn't happen... - return false; - } - if (!variable.isTypeVariable) { - return false; - } - if (variable.identifiers.length === 0) { - return false; - } - const typeParameter = variable.identifiers[0].parent; - if (typeParameter.type !== utils_1.AST_NODE_TYPES.TSTypeParameter) { - return false; - } - const typeParameterDecl = typeParameter.parent; - if (typeParameterDecl.type !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { - return false; - } - const functionExpr = typeParameterDecl.parent; - if (functionExpr.type !== utils_1.AST_NODE_TYPES.FunctionExpression && - functionExpr.type !== utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - return false; - } - const methodDefinition = functionExpr.parent; - if (methodDefinition.type !== utils_1.AST_NODE_TYPES.MethodDefinition) { - return false; - } - return methodDefinition.static; - } - function isGenericOfClass(variable) { - if (!('isTypeVariable' in variable)) { - // this shouldn't happen... - return false; - } - if (!variable.isTypeVariable) { - return false; - } - if (variable.identifiers.length === 0) { - return false; - } - const typeParameter = variable.identifiers[0].parent; - if (typeParameter.type !== utils_1.AST_NODE_TYPES.TSTypeParameter) { - return false; - } - const typeParameterDecl = typeParameter.parent; - if (typeParameterDecl.type !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { - return false; - } - const classDecl = typeParameterDecl.parent; - return (classDecl.type === utils_1.AST_NODE_TYPES.ClassDeclaration || - classDecl.type === utils_1.AST_NODE_TYPES.ClassExpression); - } - function isGenericOfAStaticMethodShadow(variable, shadowed) { - return isGenericOfStaticMethod(variable) && isGenericOfClass(shadowed); - } - function isImportDeclaration(definition) { - return definition.type === utils_1.AST_NODE_TYPES.ImportDeclaration; - } - function isExternalModuleDeclarationWithName(scope, name) { - return (scope.type === scope_manager_1.ScopeType.tsModule && - scope.block.id.type === utils_1.AST_NODE_TYPES.Literal && - scope.block.id.value === name); - } - function isExternalDeclarationMerging(scope, variable, shadowed) { - const [firstDefinition] = shadowed.defs; - const [secondDefinition] = variable.defs; - return ((0, isTypeImport_1.isTypeImport)(firstDefinition) && - isImportDeclaration(firstDefinition.parent) && - isExternalModuleDeclarationWithName(scope, firstDefinition.parent.source.value) && - secondDefinition.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && - secondDefinition.node.parent.type === - utils_1.AST_NODE_TYPES.ExportNamedDeclaration); - } - /** - * Check if variable name is allowed. - * @param variable The variable to check. - * @returns Whether or not the variable name is allowed. - */ - function isAllowed(variable) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return options.allow.includes(variable.name); - } - /** - * Checks if a variable of the class name in the class scope of ClassDeclaration. - * - * ClassDeclaration creates two variables of its name into its outer scope and its class scope. - * So we should ignore the variable in the class scope. - * @param variable The variable to check. - * @returns Whether or not the variable of the class name in the class scope of ClassDeclaration. - */ - function isDuplicatedClassNameVariable(variable) { - const block = variable.scope.block; - return (block.type === utils_1.AST_NODE_TYPES.ClassDeclaration && - block.id === variable.identifiers[0]); - } - /** - * Checks if a variable of the class name in the class scope of TSEnumDeclaration. - * - * TSEnumDeclaration creates two variables of its name into its outer scope and its class scope. - * So we should ignore the variable in the class scope. - * @param variable The variable to check. - * @returns Whether or not the variable of the class name in the class scope of TSEnumDeclaration. - */ - function isDuplicatedEnumNameVariable(variable) { - const block = variable.scope.block; - return (block.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && - block.id === variable.identifiers[0]); - } - /** - * Checks whether or not a given location is inside of the range of a given node. - * @param node An node to check. - * @param location A location to check. - * @returns `true` if the location is inside of the range of the node. - */ - function isInRange(node, location) { - return node && node.range[0] <= location && location <= node.range[1]; - } - /** - * Searches from the current node through its ancestry to find a matching node. - * @param node a node to get. - * @param match a callback that checks whether or not the node verifies its condition or not. - * @returns the matching node. - */ - function findSelfOrAncestor(node, match) { - let currentNode = node; - while (currentNode && !match(currentNode)) { - currentNode = currentNode.parent; - } - return currentNode; - } - /** - * Finds function's outer scope. - * @param scope Function's own scope. - * @returns Function's outer scope. - */ - function getOuterScope(scope) { - const upper = scope.upper; - if (upper?.type === scope_manager_1.ScopeType.functionExpressionName) { - return upper.upper; - } - return upper; - } - /** - * Checks if a variable and a shadowedVariable have the same init pattern ancestor. - * @param variable a variable to check. - * @param shadowedVariable a shadowedVariable to check. - * @returns Whether or not the variable and the shadowedVariable have the same init pattern ancestor. - */ - function isInitPatternNode(variable, shadowedVariable) { - const outerDef = shadowedVariable.defs.at(0); - if (!outerDef) { - return false; - } - const { variableScope } = variable.scope; - if (!((variableScope.block.type === - utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - variableScope.block.type === utils_1.AST_NODE_TYPES.FunctionExpression) && - getOuterScope(variableScope) === shadowedVariable.scope)) { - return false; - } - const fun = variableScope.block; - const { parent } = fun; - const callExpression = findSelfOrAncestor(parent, node => node.type === utils_1.AST_NODE_TYPES.CallExpression); - if (!callExpression) { - return false; - } - let node = outerDef.name; - const location = callExpression.range[1]; - while (node) { - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - if (isInRange(node.init, location)) { - return true; - } - if ((node.parent.parent.type === utils_1.AST_NODE_TYPES.ForInStatement || - node.parent.parent.type === utils_1.AST_NODE_TYPES.ForOfStatement) && - isInRange(node.parent.parent.right, location)) { - return true; - } - break; - } - else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - if (isInRange(node.right, location)) { - return true; - } - } - else if ([ - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ClassExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.CatchClause, - utils_1.AST_NODE_TYPES.ImportDeclaration, - utils_1.AST_NODE_TYPES.ExportNamedDeclaration, - ].includes(node.type)) { - break; - } - node = node.parent; - } - return false; - } - /** - * Checks if a variable is inside the initializer of scopeVar. - * - * To avoid reporting at declarations such as `var a = function a() {};`. - * But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`. - * @param variable The variable to check. - * @param scopeVar The scope variable to look for. - * @returns Whether or not the variable is inside initializer of scopeVar. - */ - function isOnInitializer(variable, scopeVar) { - const outerScope = scopeVar.scope; - const outerDef = scopeVar.defs.at(0); - const outer = outerDef?.parent?.range; - const innerScope = variable.scope; - const innerDef = variable.defs.at(0); - const inner = innerDef?.name.range; - return !!(outer && - inner && - outer[0] < inner[0] && - inner[1] < outer[1] && - ((innerDef.type === scope_manager_1.DefinitionType.FunctionName && - innerDef.node.type === utils_1.AST_NODE_TYPES.FunctionExpression) || - innerDef.node.type === utils_1.AST_NODE_TYPES.ClassExpression) && - outerScope === innerScope.upper); - } - /** - * Get a range of a variable's identifier node. - * @param variable The variable to get. - * @returns The range of the variable's identifier node. - */ - function getNameRange(variable) { - const def = variable.defs.at(0); - return def?.name.range; - } - /** - * Checks if a variable is in TDZ of scopeVar. - * @param variable The variable to check. - * @param scopeVar The variable of TDZ. - * @returns Whether or not the variable is in TDZ of scopeVar. - */ - function isInTdz(variable, scopeVar) { - const outerDef = scopeVar.defs.at(0); - const inner = getNameRange(variable); - const outer = getNameRange(scopeVar); - return !!(inner && - outer && - inner[1] < outer[0] && - // Excepts FunctionDeclaration if is {"hoist":"function"}. - (options.hoist !== 'functions' || - !outerDef || - outerDef.node.type !== utils_1.AST_NODE_TYPES.FunctionDeclaration)); - } - /** - * Get declared line and column of a variable. - * @param variable The variable to get. - * @returns The declared line and column of the variable. - */ - function getDeclaredLocation(variable) { - const identifier = variable.identifiers.at(0); - if (identifier) { - return { - global: false, - line: identifier.loc.start.line, - column: identifier.loc.start.column + 1, - }; - } - return { - global: true, - }; - } - /** - * Checks the current context for shadowed variables. - * @param scope Fixme - */ - function checkForShadows(scope) { - // ignore global augmentation - if (isGlobalAugmentation(scope)) { - return; - } - const variables = scope.variables; - for (const variable of variables) { - // ignore "arguments" - if (variable.identifiers.length === 0) { - continue; - } - // this params are pseudo-params that cannot be shadowed - if (isThisParam(variable)) { - continue; - } - // ignore variables of a class name in the class scope of ClassDeclaration - if (isDuplicatedClassNameVariable(variable)) { - continue; - } - // ignore variables of a class name in the class scope of ClassDeclaration - if (isDuplicatedEnumNameVariable(variable)) { - continue; - } - // ignore configured allowed names - if (isAllowed(variable)) { - continue; - } - // Gets shadowed variable. - const shadowed = scope.upper - ? utils_1.ASTUtils.findVariable(scope.upper, variable.name) - : null; - if (!shadowed) { - continue; - } - // ignore type value variable shadowing if configured - if (isTypeValueShadow(variable, shadowed)) { - continue; - } - // ignore function type parameter name shadowing if configured - if (isFunctionTypeParameterNameValueShadow(variable, shadowed)) { - continue; - } - // ignore static class method generic shadowing class generic - // this is impossible for the scope analyser to understand - // so we have to handle this manually in this rule - if (isGenericOfAStaticMethodShadow(variable, shadowed)) { - continue; - } - if (isExternalDeclarationMerging(scope, variable, shadowed)) { - continue; - } - const isESLintGlobal = 'writeable' in shadowed; - if ((shadowed.identifiers.length > 0 || - (options.builtinGlobals && isESLintGlobal)) && - !isOnInitializer(variable, shadowed) && - !(options.ignoreOnInitialization && - isInitPatternNode(variable, shadowed)) && - !(options.hoist !== 'all' && isInTdz(variable, shadowed))) { - const location = getDeclaredLocation(shadowed); - context.report({ - node: variable.identifiers[0], - ...(location.global - ? { - messageId: 'noShadowGlobal', - data: { - name: variable.name, - }, - } - : { - messageId: 'noShadow', - data: { - name: variable.name, - shadowedLine: location.line, - shadowedColumn: location.column, - }, - }), - }); - } - } - } - return { - 'Program:exit'(node) { - const globalScope = context.sourceCode.getScope(node); - const stack = globalScope.childScopes.slice(); - while (stack.length) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const scope = stack.pop(); - stack.push(...scope.childScopes); - checkForShadows(scope); - } - }, - }; - }, -}); -//# sourceMappingURL=no-shadow.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map deleted file mode 100644 index 3edf279e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-shadow.js","sourceRoot":"","s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,EAAE;oCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;iCACpB;6BACF;4BACH,CAAC,CAAC;gCACE,SAAS,EAAE,UAAU;gCACrB,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;oCACnB,YAAY,EAAE,QAAQ,CAAC,IAAI;oCAC3B,cAAc,EAAE,QAAQ,CAAC,MAAM;iCAChC;6BACF,CAAC;qBACP,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACtD,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBAE9C,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;oBACpB,oEAAoE;oBACpE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;oBAE3B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js deleted file mode 100644 index c27334ae..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-this-alias', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow aliasing `this`', - recommended: 'recommended', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowDestructuring: { - description: 'Whether to ignore destructurings, such as `const { props, state } = this`.', - type: 'boolean', - }, - allowedNames: { - description: 'Names to ignore, such as ["self"] for `const self = this;`.', - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - ], - messages: { - thisAssignment: "Unexpected aliasing of 'this' to local variable.", - thisDestructure: "Unexpected aliasing of members of 'this' to local variables.", - }, - }, - defaultOptions: [ - { - allowDestructuring: true, - allowedNames: [], - }, - ], - create(context, [{ allowDestructuring, allowedNames }]) { - return { - "VariableDeclarator[init.type='ThisExpression'], AssignmentExpression[right.type='ThisExpression']"(node) { - const id = node.type === utils_1.AST_NODE_TYPES.VariableDeclarator ? node.id : node.left; - if (allowDestructuring && id.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const hasAllowedName = id.type === utils_1.AST_NODE_TYPES.Identifier - ? // https://github.com/typescript-eslint/typescript-eslint/issues/5439 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - allowedNames.includes(id.name) - : false; - if (!hasAllowedName) { - context.report({ - node: id, - messageId: id.type === utils_1.AST_NODE_TYPES.Identifier - ? 'thisAssignment' - : 'thisDestructure', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-this-alias.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map deleted file mode 100644 index b80f1a3b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-this-alias.js","sourceRoot":"","sources":["../../src/rules/no-this-alias.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAUrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0BAA0B;YACvC,WAAW,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AAC,gBAAgB;4BAClB,CAAC,CAAC,iBAAiB;qBACxB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js deleted file mode 100644 index 4e3b7275..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +++ /dev/null @@ -1,263 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-type-alias', - meta: { - deprecated: true, - type: 'suggestion', - docs: { - description: 'Disallow type aliases', - // too opinionated to be recommended - }, - messages: { - noTypeAlias: 'Type {{alias}} are not allowed.', - noCompositionAlias: '{{typeName}} in {{compositionType}} types are not allowed.', - }, - schema: [ - { - $defs: { - expandedOptions: { - type: 'string', - enum: [ - 'always', - 'never', - 'in-unions', - 'in-intersections', - 'in-unions-and-intersections', - ], - }, - simpleOptions: { - type: 'string', - enum: ['always', 'never'], - }, - }, - type: 'object', - properties: { - allowAliases: { - description: 'Whether to allow direct one-to-one type aliases.', - $ref: '#/items/0/$defs/expandedOptions', - }, - allowCallbacks: { - description: 'Whether to allow type aliases for callbacks.', - $ref: '#/items/0/$defs/simpleOptions', - }, - allowConditionalTypes: { - description: 'Whether to allow type aliases for conditional types.', - $ref: '#/items/0/$defs/simpleOptions', - }, - allowConstructors: { - description: 'Whether to allow type aliases with constructors.', - $ref: '#/items/0/$defs/simpleOptions', - }, - allowLiterals: { - description: 'Whether to allow type aliases with object literal types.', - $ref: '#/items/0/$defs/expandedOptions', - }, - allowMappedTypes: { - description: 'Whether to allow type aliases with mapped types.', - $ref: '#/items/0/$defs/expandedOptions', - }, - allowTupleTypes: { - description: 'Whether to allow type aliases with tuple types.', - $ref: '#/items/0/$defs/expandedOptions', - }, - allowGenerics: { - description: 'Whether to allow type aliases with generic types.', - $ref: '#/items/0/$defs/simpleOptions', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowAliases: 'never', - allowCallbacks: 'never', - allowConditionalTypes: 'never', - allowConstructors: 'never', - allowLiterals: 'never', - allowMappedTypes: 'never', - allowTupleTypes: 'never', - allowGenerics: 'never', - }, - ], - create(context, [{ allowAliases, allowCallbacks, allowConditionalTypes, allowConstructors, allowLiterals, allowMappedTypes, allowTupleTypes, allowGenerics, },]) { - const unions = ['always', 'in-unions', 'in-unions-and-intersections']; - const intersections = [ - 'always', - 'in-intersections', - 'in-unions-and-intersections', - ]; - const compositions = [ - 'in-unions', - 'in-intersections', - 'in-unions-and-intersections', - ]; - const aliasTypes = new Set([ - utils_1.AST_NODE_TYPES.TSArrayType, - utils_1.AST_NODE_TYPES.TSImportType, - utils_1.AST_NODE_TYPES.TSTypeReference, - utils_1.AST_NODE_TYPES.TSLiteralType, - utils_1.AST_NODE_TYPES.TSTypeQuery, - utils_1.AST_NODE_TYPES.TSIndexedAccessType, - utils_1.AST_NODE_TYPES.TSTemplateLiteralType, - ]); - /** - * Determines if the composition type is supported by the allowed flags. - * @param isTopLevel a flag indicating this is the top level node. - * @param compositionType the composition type (either TSUnionType or TSIntersectionType) - * @param allowed the currently allowed flags. - */ - function isSupportedComposition(isTopLevel, compositionType, allowed) { - return (!compositions.includes(allowed) || - (!isTopLevel && - ((compositionType === utils_1.AST_NODE_TYPES.TSUnionType && - unions.includes(allowed)) || - (compositionType === utils_1.AST_NODE_TYPES.TSIntersectionType && - intersections.includes(allowed))))); - } - /** - * Gets the message to be displayed based on the node type and whether the node is a top level declaration. - * @param node the location - * @param compositionType the type of composition this alias is part of (undefined if not - * part of a composition) - * @param isRoot a flag indicating we are dealing with the top level declaration. - * @param type the kind of type alias being validated. - */ - function reportError(node, compositionType, isRoot, type) { - if (isRoot) { - return context.report({ - node, - messageId: 'noTypeAlias', - data: { - alias: type.toLowerCase(), - }, - }); - } - return context.report({ - node, - messageId: 'noCompositionAlias', - data: { - compositionType: compositionType === utils_1.AST_NODE_TYPES.TSUnionType - ? 'union' - : 'intersection', - typeName: type, - }, - }); - } - const isValidTupleType = (type) => { - if (type.node.type === utils_1.AST_NODE_TYPES.TSTupleType) { - return true; - } - if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator) { - if (['keyof', 'readonly'].includes(type.node.operator) && - type.node.typeAnnotation && - type.node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTupleType) { - return true; - } - } - return false; - }; - const isValidGeneric = (type) => { - return (type.node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - type.node.typeArguments !== undefined); - }; - const checkAndReport = (optionValue, isTopLevel, type, label) => { - if (optionValue === 'never' || - !isSupportedComposition(isTopLevel, type.compositionType, optionValue)) { - reportError(type.node, type.compositionType, isTopLevel, label); - } - }; - /** - * Validates the node looking for aliases, callbacks and literals. - * @param type the type of composition this alias is part of (null if not - * part of a composition) - * @param isTopLevel a flag indicating this is the top level node. - */ - function validateTypeAliases(type, isTopLevel = false) { - // https://github.com/typescript-eslint/typescript-eslint/issues/5439 - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - if (type.node.type === utils_1.AST_NODE_TYPES.TSFunctionType) { - // callback - if (allowCallbacks === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Callbacks'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSConditionalType) { - // conditional type - if (allowConditionalTypes === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Conditional types'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSConstructorType) { - if (allowConstructors === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Constructors'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeLiteral) { - // literal object type - checkAndReport(allowLiterals, isTopLevel, type, 'Literals'); - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSMappedType) { - // mapped type - checkAndReport(allowMappedTypes, isTopLevel, type, 'Mapped types'); - } - else if (isValidTupleType(type)) { - // tuple types - checkAndReport(allowTupleTypes, isTopLevel, type, 'Tuple Types'); - } - else if (isValidGeneric(type)) { - if (allowGenerics === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Generics'); - } - } - else if (type.node.type.endsWith(utils_1.AST_TOKEN_TYPES.Keyword) || - aliasTypes.has(type.node.type) || - (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - (type.node.operator === 'keyof' || - (type.node.operator === 'readonly' && - type.node.typeAnnotation && - aliasTypes.has(type.node.typeAnnotation.type))))) { - // alias / keyword - checkAndReport(allowAliases, isTopLevel, type, 'Aliases'); - } - else { - // unhandled type - shouldn't happen - reportError(type.node, type.compositionType, isTopLevel, 'Unhandled'); - } - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - } - /** - * Flatten the given type into an array of its dependencies - */ - function getTypes(node, compositionType = null) { - if (node.type === utils_1.AST_NODE_TYPES.TSUnionType || - node.type === utils_1.AST_NODE_TYPES.TSIntersectionType) { - return node.types.reduce((acc, type) => { - acc.push(...getTypes(type, node.type)); - return acc; - }, []); - } - return [{ node, compositionType }]; - } - return { - TSTypeAliasDeclaration(node) { - const types = getTypes(node.typeAnnotation); - if (types.length === 1) { - // is a top level type annotation - validateTypeAliases(types[0], true); - } - else { - // is a composition type - types.forEach(type => { - validateTypeAliases(type); - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-type-alias.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map deleted file mode 100644 index 32b9a907..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-type-alias.js","sourceRoot":"","sources":["../../src/rules/no-type-alias.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xB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBACnB,mBAAmB,CAAC,IAAI,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js deleted file mode 100644 index 680e85f5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +++ /dev/null @@ -1,232 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-boolean-literal-compare', - meta: { - docs: { - description: 'Disallow unnecessary equality comparisons against boolean literals', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - direct: 'This expression unnecessarily compares a boolean value to a boolean instead of using it directly.', - negated: 'This expression unnecessarily compares a boolean value to a boolean instead of negating it.', - comparingNullableToTrueDirect: 'This expression unnecessarily compares a nullable boolean value to true instead of using it directly.', - comparingNullableToTrueNegated: 'This expression unnecessarily compares a nullable boolean value to true instead of negating it.', - comparingNullableToFalse: 'This expression unnecessarily compares a nullable boolean value to false instead of using the ?? operator to provide a default.', - }, - schema: [ - { - type: 'object', - properties: { - allowComparingNullableBooleansToTrue: { - description: 'Whether to allow comparisons between nullable boolean variables and `true`.', - type: 'boolean', - }, - allowComparingNullableBooleansToFalse: { - description: 'Whether to allow comparisons between nullable boolean variables and `false`.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - allowComparingNullableBooleansToTrue: true, - allowComparingNullableBooleansToFalse: true, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - function getBooleanComparison(node) { - const comparison = deconstructComparison(node); - if (!comparison) { - return undefined; - } - const expressionType = services.getTypeAtLocation(comparison.expression); - if (isBooleanType(expressionType)) { - return { - ...comparison, - expressionIsNullableBoolean: false, - }; - } - if (isNullableBoolean(expressionType)) { - return { - ...comparison, - expressionIsNullableBoolean: true, - }; - } - return undefined; - } - function isBooleanType(expressionType) { - return tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral); - } - /** - * checks if the expressionType is a union that - * 1) contains at least one nullish type (null or undefined) - * 2) contains at least once boolean type (true or false or boolean) - * 3) does not contain any types besides nullish and boolean types - */ - function isNullableBoolean(expressionType) { - if (!expressionType.isUnion()) { - return false; - } - const { types } = expressionType; - const nonNullishTypes = types.filter(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Undefined | ts.TypeFlags.Null)); - const hasNonNullishType = nonNullishTypes.length > 0; - if (!hasNonNullishType) { - return false; - } - const hasNullableType = nonNullishTypes.length < types.length; - if (!hasNullableType) { - return false; - } - const allNonNullishTypesAreBoolean = nonNullishTypes.every(isBooleanType); - if (!allNonNullishTypesAreBoolean) { - return false; - } - return true; - } - function deconstructComparison(node) { - const comparisonType = getEqualsKind(node.operator); - if (!comparisonType) { - return undefined; - } - for (const [against, expression] of [ - [node.right, node.left], - [node.left, node.right], - ]) { - if (against.type !== utils_1.AST_NODE_TYPES.Literal || - typeof against.value !== 'boolean') { - continue; - } - const { value: literalBooleanInComparison } = against; - const negated = !comparisonType.isPositive; - return { - literalBooleanInComparison, - expression, - negated, - }; - } - return undefined; - } - function nodeIsUnaryNegation(node) { - return (node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.prefix && - node.operator === '!'); - } - return { - BinaryExpression(node) { - const comparison = getBooleanComparison(node); - if (comparison === undefined) { - return; - } - if (comparison.expressionIsNullableBoolean) { - if (comparison.literalBooleanInComparison && - options.allowComparingNullableBooleansToTrue) { - return; - } - if (!comparison.literalBooleanInComparison && - options.allowComparingNullableBooleansToFalse) { - return; - } - } - context.report({ - fix: function* (fixer) { - // 1. isUnaryNegation - parent negation - // 2. literalBooleanInComparison - is compared to literal boolean - // 3. negated - is expression negated - const isUnaryNegation = nodeIsUnaryNegation(node.parent); - const shouldNegate = comparison.negated !== comparison.literalBooleanInComparison; - const mutatedNode = isUnaryNegation ? node.parent : node; - yield fixer.replaceText(mutatedNode, context.sourceCode.getText(comparison.expression)); - // if `isUnaryNegation === literalBooleanInComparison === !negated` is true - negate the expression - if (shouldNegate === isUnaryNegation) { - yield fixer.insertTextBefore(mutatedNode, '!'); - // if the expression `exp` is not a strong precedence node, wrap it in parentheses - if (!(0, util_1.isStrongPrecedenceNode)(comparison.expression)) { - yield fixer.insertTextBefore(mutatedNode, '('); - yield fixer.insertTextAfter(mutatedNode, ')'); - } - } - // if the expression `exp` is nullable, and we're not comparing to `true`, insert `?? true` - if (comparison.expressionIsNullableBoolean && - !comparison.literalBooleanInComparison) { - // provide the default `true` - yield fixer.insertTextBefore(mutatedNode, '('); - yield fixer.insertTextAfter(mutatedNode, ' ?? true)'); - } - }, - messageId: comparison.expressionIsNullableBoolean - ? comparison.literalBooleanInComparison - ? comparison.negated - ? 'comparingNullableToTrueNegated' - : 'comparingNullableToTrueDirect' - : 'comparingNullableToFalse' - : comparison.negated - ? 'negated' - : 'direct', - node, - }); - }, - }; - }, -}); -function getEqualsKind(operator) { - switch (operator) { - case '==': - return { - isPositive: true, - isStrict: false, - }; - case '===': - return { - isPositive: true, - isStrict: true, - }; - case '!=': - return { - isPositive: false, - isStrict: false, - }; - case '!==': - return { - isPositive: false, - isStrict: true, - }; - default: - return undefined; - } -} -//# sourceMappingURL=no-unnecessary-boolean-literal-compare.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map deleted file mode 100644 index f082663f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAgF;AA0BhF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;YACtE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;YAC/F,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,wBAA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C,CAAC;AAOH,SAAS,aAAa,CAAC,QAAgB;IACrC,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js deleted file mode 100644 index c0c4bcfe..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +++ /dev/null @@ -1,544 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -// Truthiness utilities -// #region -const isTruthyLiteral = (type) => tsutils.isTrueLiteralType(type) || - // || type. - (type.isLiteral() && !!type.value); -const isPossiblyFalsy = (type) => tsutils - .unionTypeParts(type) - // Intersections like `string & {}` can also be possibly falsy, - // requiring us to look into the intersection. - .flatMap(type => tsutils.intersectionTypeParts(type)) - // PossiblyFalsy flag includes literal values, so exclude ones that - // are definitely truthy - .filter(t => !isTruthyLiteral(t)) - .some(type => (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.PossiblyFalsy)); -const isPossiblyTruthy = (type) => tsutils - .unionTypeParts(type) - .map(type => tsutils.intersectionTypeParts(type)) - .some(intersectionParts => -// It is possible to define intersections that are always falsy, -// like `"" & { __brand: string }`. -intersectionParts.every(type => !tsutils.isFalsyType(type))); -// Nullish utilities -const nullishFlag = ts.TypeFlags.Undefined | ts.TypeFlags.Null; -const isNullishType = (type) => (0, util_1.isTypeFlagSet)(type, nullishFlag); -const isPossiblyNullish = (type) => tsutils.unionTypeParts(type).some(isNullishType); -const isAlwaysNullish = (type) => tsutils.unionTypeParts(type).every(isNullishType); -// isLiteralType only covers numbers and strings, this is a more exhaustive check. -const isLiteral = (type) => tsutils.isBooleanLiteralType(type) || - type.flags === ts.TypeFlags.Undefined || - type.flags === ts.TypeFlags.Null || - type.flags === ts.TypeFlags.Void || - type.isLiteral(); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-condition', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow conditionals where the type is always truthy or always falsy', - recommended: 'strict', - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowConstantLoopConditions: { - description: 'Whether to ignore constant loop conditions, such as `while (true)`.', - type: 'boolean', - }, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - description: 'Whether to not error when running with a tsconfig that has strictNullChecks turned.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - messages: { - alwaysTruthy: 'Unnecessary conditional, value is always truthy.', - alwaysFalsy: 'Unnecessary conditional, value is always falsy.', - alwaysTruthyFunc: 'This callback should return a conditional, but return is always truthy.', - alwaysFalsyFunc: 'This callback should return a conditional, but return is always falsy.', - neverNullish: 'Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined.', - alwaysNullish: 'Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`.', - literalBooleanExpression: 'Unnecessary conditional, both sides of the expression are literal values.', - noOverlapBooleanExpression: 'Unnecessary conditional, the types have no overlap.', - never: 'Unnecessary conditional, value is `never`.', - neverOptionalChain: 'Unnecessary optional chain on a non-nullish value.', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - }, - }, - defaultOptions: [ - { - allowConstantLoopConditions: false, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - }, - ], - create(context, [{ allowConstantLoopConditions, allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, },]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - function nodeIsArrayType(node) { - const nodeType = (0, util_1.getConstrainedTypeAtLocation)(services, node); - return tsutils - .unionTypeParts(nodeType) - .some(part => checker.isArrayType(part)); - } - function nodeIsTupleType(node) { - const nodeType = (0, util_1.getConstrainedTypeAtLocation)(services, node); - return tsutils - .unionTypeParts(nodeType) - .some(part => checker.isTupleType(part)); - } - function isArrayIndexExpression(node) { - return ( - // Is an index signature - node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.computed && - // ...into an array type - (nodeIsArrayType(node.object) || - // ... or a tuple type - (nodeIsTupleType(node.object) && - // Exception: literal index into a tuple - will have a sound type - node.property.type !== utils_1.AST_NODE_TYPES.Literal))); - } - function isNullableMemberExpression(node) { - const objectType = services.getTypeAtLocation(node.object); - if (node.computed) { - const propertyType = services.getTypeAtLocation(node.property); - return isNullablePropertyType(objectType, propertyType); - } - const property = node.property; - // Get the actual property name, to account for private properties (this.#prop). - const propertyName = context.sourceCode.getText(property); - const propertyType = objectType - .getProperties() - .find(prop => prop.name === propertyName); - if (propertyType && - tsutils.isSymbolFlagSet(propertyType, ts.SymbolFlags.Optional)) { - return true; - } - return false; - } - /** - * Checks if a conditional node is necessary: - * if the type of the node is always true or always false, it's not necessary. - */ - function checkNode(node, isUnaryNotArgument = false) { - // Check if the node is Unary Negation expression and handle it - if (node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === '!') { - return checkNode(node.argument, true); - } - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (isArrayIndexExpression(node)) { - return; - } - // When checking logical expressions, only check the right side - // as the left side has been checked by checkLogicalExpressionForUnnecessaryConditionals - // - // Unless the node is nullish coalescing, as it's common to use patterns like `nullBool ?? true` to to strict - // boolean checks if we inspect the right here, it'll usually be a constant condition on purpose. - // In this case it's better to inspect the type of the expression as a whole. - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.operator !== '??') { - return checkNode(node.right); - } - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - // Conditional is always necessary if it involves: - // `any` or `unknown` or a naked type variable - if (tsutils - .unionTypeParts(type) - .some(part => (0, util_1.isTypeAnyType)(part) || - (0, util_1.isTypeUnknownType)(part) || - (0, util_1.isTypeFlagSet)(part, ts.TypeFlags.TypeVariable))) { - return; - } - let messageId = null; - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { - messageId = 'never'; - } - else if (!isPossiblyTruthy(type)) { - messageId = !isUnaryNotArgument ? 'alwaysFalsy' : 'alwaysTruthy'; - } - else if (!isPossiblyFalsy(type)) { - messageId = !isUnaryNotArgument ? 'alwaysTruthy' : 'alwaysFalsy'; - } - if (messageId) { - context.report({ node, messageId }); - } - } - function checkNodeForNullish(node) { - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - // Conditional is always necessary if it involves `any`, `unknown` or a naked type parameter - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.TypeParameter | - ts.TypeFlags.TypeVariable)) { - return; - } - let messageId = null; - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { - messageId = 'never'; - } - else if (!isPossiblyNullish(type) && - !(node.type === utils_1.AST_NODE_TYPES.MemberExpression && - isNullableMemberExpression(node))) { - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (!isArrayIndexExpression(node) && - !(node.type === utils_1.AST_NODE_TYPES.ChainExpression && - node.expression.type !== utils_1.AST_NODE_TYPES.TSNonNullExpression && - optionChainContainsOptionArrayIndex(node.expression))) { - messageId = 'neverNullish'; - } - } - else if (isAlwaysNullish(type)) { - messageId = 'alwaysNullish'; - } - if (messageId) { - context.report({ node, messageId }); - } - } - /** - * Checks that a binary expression is necessarily conditional, reports otherwise. - * If both sides of the binary expression are literal values, it's not a necessary condition. - * - * NOTE: It's also unnecessary if the types that don't overlap at all - * but that case is handled by the Typescript compiler itself. - * Known exceptions: - * - https://github.com/microsoft/TypeScript/issues/32627 - * - https://github.com/microsoft/TypeScript/issues/37160 (handled) - */ - const BOOL_OPERATORS = new Set([ - '<', - '>', - '<=', - '>=', - '==', - '===', - '!=', - '!==', - ]); - function checkIfBinaryExpressionIsNecessaryConditional(node) { - if (!BOOL_OPERATORS.has(node.operator)) { - return; - } - const leftType = (0, util_1.getConstrainedTypeAtLocation)(services, node.left); - const rightType = (0, util_1.getConstrainedTypeAtLocation)(services, node.right); - if (isLiteral(leftType) && isLiteral(rightType)) { - context.report({ node, messageId: 'literalBooleanExpression' }); - return; - } - // Workaround for https://github.com/microsoft/TypeScript/issues/37160 - if (isStrictNullChecks) { - const UNDEFINED = ts.TypeFlags.Undefined; - const NULL = ts.TypeFlags.Null; - const VOID = ts.TypeFlags.Void; - const isComparable = (type, flag) => { - // Allow comparison to `any`, `unknown` or a naked type parameter. - flag |= - ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.TypeParameter | - ts.TypeFlags.TypeVariable; - // Allow loose comparison to nullish values. - if (node.operator === '==' || node.operator === '!=') { - flag |= NULL | UNDEFINED | VOID; - } - return (0, util_1.isTypeFlagSet)(type, flag); - }; - if ((leftType.flags === UNDEFINED && - !isComparable(rightType, UNDEFINED | VOID)) || - (rightType.flags === UNDEFINED && - !isComparable(leftType, UNDEFINED | VOID)) || - (leftType.flags === NULL && !isComparable(rightType, NULL)) || - (rightType.flags === NULL && !isComparable(leftType, NULL))) { - context.report({ node, messageId: 'noOverlapBooleanExpression' }); - return; - } - } - } - /** - * Checks that a logical expression contains a boolean, reports otherwise. - */ - function checkLogicalExpressionForUnnecessaryConditionals(node) { - if (node.operator === '??') { - checkNodeForNullish(node.left); - return; - } - // Only checks the left side, since the right side might not be "conditional" at all. - // The right side will be checked if the LogicalExpression is used in a conditional context - checkNode(node.left); - } - /** - * Checks that a testable expression of a loop is necessarily conditional, reports otherwise. - */ - function checkIfLoopIsNecessaryConditional(node) { - if (node.test == null) { - // e.g. `for(;;)` - return; - } - /** - * Allow: - * while (true) {} - * for (;true;) {} - * do {} while (true) - */ - if (allowConstantLoopConditions && - tsutils.isTrueLiteralType((0, util_1.getConstrainedTypeAtLocation)(services, node.test))) { - return; - } - checkNode(node.test); - } - const ARRAY_PREDICATE_FUNCTIONS = new Set([ - 'filter', - 'find', - 'some', - 'every', - ]); - function isArrayPredicateFunction(node) { - const { callee } = node; - return ( - // looks like `something.filter` or `something.find` - callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - ARRAY_PREDICATE_FUNCTIONS.has(callee.property.name) && - // and the left-hand side is an array, according to the types - (nodeIsArrayType(callee.object) || nodeIsTupleType(callee.object))); - } - function checkCallExpression(node) { - // If this is something like arr.filter(x => /*condition*/), check `condition` - if (isArrayPredicateFunction(node) && node.arguments.length) { - const callback = node.arguments[0]; - // Inline defined functions - if (callback.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - callback.type === utils_1.AST_NODE_TYPES.FunctionExpression) { - // Two special cases, where we can directly check the node that's returned: - // () => something - if (callback.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - return checkNode(callback.body); - } - // () => { return something; } - const callbackBody = callback.body.body; - if (callbackBody.length === 1 && - callbackBody[0].type === utils_1.AST_NODE_TYPES.ReturnStatement && - callbackBody[0].argument) { - return checkNode(callbackBody[0].argument); - } - // Potential enhancement: could use code-path analysis to check - // any function with a single return statement - // (Value to complexity ratio is dubious however) - } - // Otherwise just do type analysis on the function as a whole. - const returnTypes = tsutils - .getCallSignaturesOfType((0, util_1.getConstrainedTypeAtLocation)(services, callback)) - .map(sig => sig.getReturnType()); - /* istanbul ignore if */ if (returnTypes.length === 0) { - // Not a callable function - return; - } - // Predicate is always necessary if it involves `any` or `unknown` - if (returnTypes.some(t => (0, util_1.isTypeAnyType)(t) || (0, util_1.isTypeUnknownType)(t))) { - return; - } - if (!returnTypes.some(isPossiblyFalsy)) { - return context.report({ - node: callback, - messageId: 'alwaysTruthyFunc', - }); - } - if (!returnTypes.some(isPossiblyTruthy)) { - return context.report({ - node: callback, - messageId: 'alwaysFalsyFunc', - }); - } - } - } - // Recursively searches an optional chain for an array index expression - // Has to search the entire chain, because an array index will "infect" the rest of the types - // Example: - // ``` - // [{x: {y: "z"} }][n] // type is {x: {y: "z"}} - // ?.x // type is {y: "z"} - // ?.y // This access is considered "unnecessary" according to the types - // ``` - function optionChainContainsOptionArrayIndex(node) { - const lhsNode = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; - if (node.optional && isArrayIndexExpression(lhsNode)) { - return true; - } - if (lhsNode.type === utils_1.AST_NODE_TYPES.MemberExpression || - lhsNode.type === utils_1.AST_NODE_TYPES.CallExpression) { - return optionChainContainsOptionArrayIndex(lhsNode); - } - return false; - } - function isNullablePropertyType(objType, propertyType) { - if (propertyType.isUnion()) { - return propertyType.types.some(type => isNullablePropertyType(objType, type)); - } - if (propertyType.isNumberLiteral() || propertyType.isStringLiteral()) { - const propType = (0, util_1.getTypeOfPropertyOfName)(checker, objType, propertyType.value.toString()); - if (propType) { - return (0, util_1.isNullableType)(propType); - } - } - const typeName = (0, util_1.getTypeName)(checker, propertyType); - return !!checker - .getIndexInfosOfType(objType) - .find(info => (0, util_1.getTypeName)(checker, info.keyType) === typeName); - } - // Checks whether a member expression is nullable or not regardless of it's previous node. - // Example: - // ``` - // // 'bar' is nullable if 'foo' is null. - // // but this function checks regardless of 'foo' type, so returns 'true'. - // declare const foo: { bar : { baz: string } } | null - // foo?.bar; - // ``` - function isMemberExpressionNullableOriginFromObject(node) { - const prevType = (0, util_1.getConstrainedTypeAtLocation)(services, node.object); - const property = node.property; - if (prevType.isUnion() && (0, util_1.isIdentifier)(property)) { - const isOwnNullable = prevType.types.some(type => { - if (node.computed) { - const propertyType = (0, util_1.getConstrainedTypeAtLocation)(services, node.property); - return isNullablePropertyType(type, propertyType); - } - const propType = (0, util_1.getTypeOfPropertyOfName)(checker, type, property.name); - if (propType) { - return (0, util_1.isNullableType)(propType); - } - return !!checker.getIndexInfoOfType(type, ts.IndexKind.String); - }); - return !isOwnNullable && (0, util_1.isNullableType)(prevType); - } - return false; - } - function isCallExpressionNullableOriginFromCallee(node) { - const prevType = (0, util_1.getConstrainedTypeAtLocation)(services, node.callee); - if (prevType.isUnion()) { - const isOwnNullable = prevType.types.some(type => { - const signatures = type.getCallSignatures(); - return signatures.some(sig => (0, util_1.isNullableType)(sig.getReturnType())); - }); - return !isOwnNullable && (0, util_1.isNullableType)(prevType); - } - return false; - } - function isOptionableExpression(node) { - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - const isOwnNullable = node.type === utils_1.AST_NODE_TYPES.MemberExpression - ? !isMemberExpressionNullableOriginFromObject(node) - : node.type === utils_1.AST_NODE_TYPES.CallExpression - ? !isCallExpressionNullableOriginFromCallee(node) - : true; - const possiblyVoid = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Void); - return ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown) || - (isOwnNullable && ((0, util_1.isNullableType)(type) || possiblyVoid))); - } - function checkOptionalChain(node, beforeOperator, fix) { - // We only care if this step in the chain is optional. If just descend - // from an optional chain, then that's fine. - if (!node.optional) { - return; - } - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (optionChainContainsOptionArrayIndex(node)) { - return; - } - const nodeToCheck = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; - if (isOptionableExpression(nodeToCheck)) { - return; - } - const questionDotOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(beforeOperator, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.'), util_1.NullThrowsReasons.MissingToken('operator', node.type)); - context.report({ - node, - loc: questionDotOperator.loc, - messageId: 'neverOptionalChain', - fix(fixer) { - return fixer.replaceText(questionDotOperator, fix); - }, - }); - } - function checkOptionalMemberExpression(node) { - checkOptionalChain(node, node.object, node.computed ? '' : '.'); - } - function checkOptionalCallExpression(node) { - checkOptionalChain(node, node.callee, ''); - } - function checkAssignmentExpression(node) { - // Similar to checkLogicalExpressionForUnnecessaryConditionals, since - // a ||= b is equivalent to a || (a = b) - if (['||=', '&&='].includes(node.operator)) { - checkNode(node.left); - } - else if (node.operator === '??=') { - checkNodeForNullish(node.left); - } - } - return { - AssignmentExpression: checkAssignmentExpression, - BinaryExpression: checkIfBinaryExpressionIsNecessaryConditional, - CallExpression: checkCallExpression, - ConditionalExpression: (node) => checkNode(node.test), - DoWhileStatement: checkIfLoopIsNecessaryConditional, - ForStatement: checkIfLoopIsNecessaryConditional, - IfStatement: (node) => checkNode(node.test), - LogicalExpression: checkLogicalExpressionForUnnecessaryConditionals, - WhileStatement: checkIfLoopIsNecessaryConditional, - 'MemberExpression[optional = true]': checkOptionalMemberExpression, - 'CallExpression[optional = true]': checkOptionalCallExpression, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-condition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map deleted file mode 100644 index e5daecd4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAaiB;AAEjB,uBAAuB;AACvB,UAAU;AACV,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC;IAC/B,YAAY;IACZ,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAErC,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,OAAO;KACJ,cAAc,CAAC,IAAI,CAAC;IACrB,+DAA+D;IAC/D,8CAA8C;KAC7C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,O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B;YAClE,iCAAiC,EAAE,2BAA2B;SAC/D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js deleted file mode 100644 index dbdcc679..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const UNNECESSARY_OPERATORS = new Set(['=', '&&=', '||=', '??=']); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-parameter-property-assignment', - meta: { - docs: { - description: 'Disallow unnecessary assignment of constructor property parameter', - }, - messages: { - unnecessaryAssign: 'This assignment is unnecessary since it is already assigned by a parameter property.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const reportInfoStack = []; - function isThisMemberExpression(node) { - return (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type === utils_1.AST_NODE_TYPES.ThisExpression); - } - function getPropertyName(node) { - if (!isThisMemberExpression(node)) { - return null; - } - if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { - return node.property.name; - } - if (node.computed) { - return (0, util_1.getStaticStringValue)(node.property); - } - return null; - } - function findParentFunction(node) { - if (!node || - node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration || - node.type === utils_1.AST_NODE_TYPES.FunctionExpression || - node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - return node; - } - return findParentFunction(node.parent); - } - function findParentPropertyDefinition(node) { - if (!node || node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { - return node; - } - return findParentPropertyDefinition(node.parent); - } - function isConstructorFunctionExpression(node) { - return (node?.type === utils_1.AST_NODE_TYPES.FunctionExpression && - utils_1.ASTUtils.isConstructor(node.parent)); - } - function isReferenceFromParameter(node) { - const scope = context.sourceCode.getScope(node); - const rightRef = scope.references.find(ref => ref.identifier.name === node.name); - return rightRef?.resolved?.defs.at(0)?.type === scope_manager_1.DefinitionType.Parameter; - } - function isParameterPropertyWithName(node, name) { - return (node.type === utils_1.AST_NODE_TYPES.TSParameterProperty && - ((node.parameter.type === utils_1.AST_NODE_TYPES.Identifier && // constructor (public foo) {} - node.parameter.name === name) || - (node.parameter.type === utils_1.AST_NODE_TYPES.AssignmentPattern && // constructor (public foo = 1) {} - node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier && - node.parameter.left.name === name))); - } - function getIdentifier(node) { - if (node.type === utils_1.AST_NODE_TYPES.Identifier) { - return node; - } - if (node.type === utils_1.AST_NODE_TYPES.TSAsExpression || - node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { - return getIdentifier(node.expression); - } - return null; - } - function isArrowIIFE(node) { - return (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - node.parent.type === utils_1.AST_NODE_TYPES.CallExpression); - } - return { - ClassBody() { - reportInfoStack.push({ - unnecessaryAssignments: [], - assignedBeforeUnnecessary: new Set(), - assignedBeforeConstructor: new Set(), - }); - }, - 'ClassBody:exit'() { - const { unnecessaryAssignments, assignedBeforeConstructor } = (0, util_1.nullThrows)(reportInfoStack.pop(), 'The top stack should exist'); - unnecessaryAssignments.forEach(({ name, node }) => { - if (assignedBeforeConstructor.has(name)) { - return; - } - context.report({ - node, - messageId: 'unnecessaryAssign', - }); - }); - }, - 'PropertyDefinition AssignmentExpression'(node) { - const name = getPropertyName(node.left); - if (!name) { - return; - } - const functionNode = findParentFunction(node); - if (functionNode) { - if (!(isArrowIIFE(functionNode) && - findParentPropertyDefinition(node)?.value === functionNode.parent)) { - return; - } - } - const { assignedBeforeConstructor } = (0, util_1.nullThrows)(reportInfoStack.at(-1), 'The top stack should exist'); - assignedBeforeConstructor.add(name); - }, - "MethodDefinition[kind='constructor'] > FunctionExpression AssignmentExpression"(node) { - const leftName = getPropertyName(node.left); - if (!leftName) { - return; - } - let functionNode = findParentFunction(node); - if (functionNode && isArrowIIFE(functionNode)) { - functionNode = findParentFunction(functionNode.parent); - } - if (!isConstructorFunctionExpression(functionNode)) { - return; - } - const { assignedBeforeUnnecessary, unnecessaryAssignments } = (0, util_1.nullThrows)(reportInfoStack.at(reportInfoStack.length - 1), 'The top of stack should exist'); - if (!UNNECESSARY_OPERATORS.has(node.operator)) { - assignedBeforeUnnecessary.add(leftName); - return; - } - const rightId = getIdentifier(node.right); - if (leftName !== rightId?.name || !isReferenceFromParameter(rightId)) { - return; - } - const hasParameterProperty = functionNode.params.some(param => isParameterPropertyWithName(param, rightId.name)); - if (hasParameterProperty && !assignedBeforeUnnecessary.has(leftName)) { - unnecessaryAssignments.push({ - name: leftName, - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-parameter-property-assignment.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map deleted file mode 100644 index e0bd6216..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-parameter-property-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-parameter-property-assignment.ts"],"names":[],"mappings":";;AAAA,oEAAkE;AAElE,oDAAoE;AAEpE,kCAAuE;AAEvE,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAElE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8CAA8C;IACpD,IAAI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CAAC;oBAC9C,yBAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBACxC,OAAO;gBACT,CAAC;gBAED,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAE1C,IAAI,QAAQ,KAAK,OAAO,EAAE,IAAI,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,CAAC;oBACrE,OAAO;gBACT,CAAC;gBAED,MAAM,oBAAoB,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAC5D,2BAA2B,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CACjD,CAAC;gBAEF,IAAI,oBAAoB,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACrE,sBAAsB,CAAC,IAAI,CAAC;wBAC1B,IAAI,EAAE,QAAQ;wBACd,IAAI;qBACL,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js deleted file mode 100644 index ba99985d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-qualifier', - meta: { - docs: { - description: 'Disallow unnecessary namespace qualifiers', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryQualifier: "Qualifier is unnecessary since '{{ name }}' is in scope.", - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const namespacesInScope = []; - let currentFailedNamespaceExpression = null; - const services = (0, util_1.getParserServices)(context); - const esTreeNodeToTSNodeMap = services.esTreeNodeToTSNodeMap; - const checker = services.program.getTypeChecker(); - function tryGetAliasedSymbol(symbol, checker) { - return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) - ? checker.getAliasedSymbol(symbol) - : null; - } - function symbolIsNamespaceInScope(symbol) { - const symbolDeclarations = symbol.getDeclarations() ?? []; - if (symbolDeclarations.some(decl => namespacesInScope.some(ns => ns === decl))) { - return true; - } - const alias = tryGetAliasedSymbol(symbol, checker); - return alias != null && symbolIsNamespaceInScope(alias); - } - function getSymbolInScope(node, flags, name) { - const scope = checker.getSymbolsInScope(node, flags); - return scope.find(scopeSymbol => scopeSymbol.name === name); - } - function symbolsAreEqual(accessed, inScope) { - return accessed === checker.getExportSymbolOfSymbol(inScope); - } - function qualifierIsUnnecessary(qualifier, name) { - const namespaceSymbol = services.getSymbolAtLocation(qualifier); - if (namespaceSymbol === undefined || - !symbolIsNamespaceInScope(namespaceSymbol)) { - return false; - } - const accessedSymbol = services.getSymbolAtLocation(name); - if (accessedSymbol === undefined) { - return false; - } - // If the symbol in scope is different, the qualifier is necessary. - const tsQualifier = esTreeNodeToTSNodeMap.get(qualifier); - const fromScope = getSymbolInScope(tsQualifier, accessedSymbol.flags, context.sourceCode.getText(name)); - return !!fromScope && symbolsAreEqual(accessedSymbol, fromScope); - } - function visitNamespaceAccess(node, qualifier, name) { - // Only look for nested qualifier errors if we didn't already fail on the outer qualifier. - if (!currentFailedNamespaceExpression && - qualifierIsUnnecessary(qualifier, name)) { - currentFailedNamespaceExpression = node; - context.report({ - node: qualifier, - messageId: 'unnecessaryQualifier', - data: { - name: context.sourceCode.getText(name), - }, - fix(fixer) { - return fixer.removeRange([qualifier.range[0], name.range[0]]); - }, - }); - } - } - function enterDeclaration(node) { - namespacesInScope.push(esTreeNodeToTSNodeMap.get(node)); - } - function exitDeclaration() { - namespacesInScope.pop(); - } - function resetCurrentNamespaceExpression(node) { - if (node === currentFailedNamespaceExpression) { - currentFailedNamespaceExpression = null; - } - } - function isPropertyAccessExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.MemberExpression && !node.computed; - } - function isEntityNameExpression(node) { - return (node.type === utils_1.AST_NODE_TYPES.Identifier || - (isPropertyAccessExpression(node) && - isEntityNameExpression(node.object))); - } - return { - 'TSModuleDeclaration > TSModuleBlock'(node) { - enterDeclaration(node.parent); - }, - TSEnumDeclaration: enterDeclaration, - 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]': enterDeclaration, - 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]': enterDeclaration, - 'TSModuleDeclaration:exit': exitDeclaration, - 'TSEnumDeclaration:exit': exitDeclaration, - 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]:exit': exitDeclaration, - 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]:exit': exitDeclaration, - TSQualifiedName(node) { - visitNamespaceAccess(node, node.left, node.right); - }, - 'MemberExpression[computed=false]': function (node) { - const property = node.property; - if (isEntityNameExpression(node.object)) { - visitNamespaceAccess(node, node.object, property); - } - }, - 'TSQualifiedName:exit': resetCurrentNamespaceExpression, - 'MemberExpression:exit': resetCurrentNamespaceExpression, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-qualifier.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map deleted file mode 100644 index 1e0a4ac2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,iBAAiB,GAAc,EAAE,CAAC;QACxC,IAAI,gCAAgC,GAAyB,IAAI,CAAC;QAClE,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,qBAAqB,CAAC;QAC7D,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,mBAAmB,CAC1B,MAAiB,EACjB,OAAuB;Y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BAA+B;SACzD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js deleted file mode 100644 index 270e2dff..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const evenNumOfBackslashesRegExp = /(? { - return (0, util_1.isTypeFlagSet)(t, ts.TypeFlags.StringLike); - }; - if (type.isUnion()) { - return type.types.every(isString); - } - if (type.isIntersection()) { - return type.types.some(isString); - } - return isString(type); - } - function isLiteral(expression) { - return expression.type === utils_1.AST_NODE_TYPES.Literal; - } - function isTemplateLiteral(expression) { - return expression.type === utils_1.AST_NODE_TYPES.TemplateLiteral; - } - function isInfinityIdentifier(expression) { - return (expression.type === utils_1.AST_NODE_TYPES.Identifier && - expression.name === 'Infinity'); - } - function isNaNIdentifier(expression) { - return (expression.type === utils_1.AST_NODE_TYPES.Identifier && - expression.name === 'NaN'); - } - return { - TemplateLiteral(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - return; - } - const hasSingleStringVariable = node.quasis.length === 2 && - node.quasis[0].value.raw === '' && - node.quasis[1].value.raw === '' && - node.expressions.length === 1 && - isUnderlyingTypeString(node.expressions[0]); - if (hasSingleStringVariable) { - context.report({ - node: node.expressions[0], - messageId: 'noUnnecessaryTemplateExpression', - fix(fixer) { - const [prevQuasi, nextQuasi] = node.quasis; - // Remove the quasis and backticks. - return [ - fixer.removeRange([ - prevQuasi.range[1] - 3, - node.expressions[0].range[0], - ]), - fixer.removeRange([ - node.expressions[0].range[1], - nextQuasi.range[0] + 2, - ]), - ]; - }, - }); - return; - } - const fixableExpressions = node.expressions - .filter(expression => isLiteral(expression) || - isTemplateLiteral(expression) || - (0, util_1.isUndefinedIdentifier)(expression) || - isInfinityIdentifier(expression) || - isNaNIdentifier(expression)) - .reverse(); - let nextCharacterIsOpeningCurlyBrace = false; - for (const expression of fixableExpressions) { - const fixers = []; - const index = node.expressions.indexOf(expression); - const prevQuasi = node.quasis[index]; - const nextQuasi = node.quasis[index + 1]; - if (nextQuasi.value.raw.length !== 0) { - nextCharacterIsOpeningCurlyBrace = - nextQuasi.value.raw.startsWith('{'); - } - if (isLiteral(expression)) { - let escapedValue = (typeof expression.value === 'string' - ? // The value is already a string, so we're removing quotes: - // "'va`lue'" -> "va`lue" - expression.raw.slice(1, -1) - : // The value may be one of number | bigint | boolean | RegExp | null. - // In regular expressions, we escape every backslash - String(expression.value).replace(/\\/g, '\\\\')) - // The string or RegExp may contain ` or ${. - // We want both of these to be escaped in the final template expression. - // - // A pair of backslashes means "escaped backslash", so backslashes - // from this pair won't escape ` or ${. Therefore, to escape these - // sequences in the resulting template expression, we need to escape - // all sequences that are preceded by an even number of backslashes. - // - // This RegExp does the following transformations: - // \` -> \` - // \\` -> \\\` - // \${ -> \${ - // \\${ -> \\\${ - .replace(new RegExp(String(evenNumOfBackslashesRegExp.source) + '(`|\\${)', 'g'), '\\$1'); - // `...${'...$'}{...` - // ^^^^ - if (nextCharacterIsOpeningCurlyBrace && - endsWithUnescapedDollarSign(escapedValue)) { - escapedValue = escapedValue.replaceAll(/\$$/g, '\\$'); - } - if (escapedValue.length !== 0) { - nextCharacterIsOpeningCurlyBrace = escapedValue.startsWith('{'); - } - fixers.push(fixer => [fixer.replaceText(expression, escapedValue)]); - } - else if (isTemplateLiteral(expression)) { - // Since we iterate from the last expression to the first, - // a subsequent expression can tell the current expression - // that it starts with {. - // - // `... ${`... $`}${'{...'} ...` - // ^ ^ subsequent expression starts with { - // current expression ends with a dollar sign, - // so '$' + '{' === '${' (bad news for us). - // Let's escape the dollar sign at the end. - if (nextCharacterIsOpeningCurlyBrace && - endsWithUnescapedDollarSign(expression.quasis[expression.quasis.length - 1].value.raw)) { - fixers.push(fixer => [ - fixer.replaceTextRange([expression.range[1] - 2, expression.range[1] - 2], '\\'), - ]); - } - if (expression.quasis.length === 1 && - expression.quasis[0].value.raw.length !== 0) { - nextCharacterIsOpeningCurlyBrace = - expression.quasis[0].value.raw.startsWith('{'); - } - // Remove the beginning and trailing backtick characters. - fixers.push(fixer => [ - fixer.removeRange([expression.range[0], expression.range[0] + 1]), - fixer.removeRange([expression.range[1] - 1, expression.range[1]]), - ]); - } - else { - nextCharacterIsOpeningCurlyBrace = false; - } - // `... $${'{...'} ...` - // ^^^^^ - if (nextCharacterIsOpeningCurlyBrace && - endsWithUnescapedDollarSign(prevQuasi.value.raw)) { - fixers.push(fixer => [ - fixer.replaceTextRange([prevQuasi.range[1] - 3, prevQuasi.range[1] - 2], '\\$'), - ]); - } - context.report({ - node: expression, - messageId: 'noUnnecessaryTemplateExpression', - fix(fixer) { - return [ - // Remove the quasis' parts that are related to the current expression. - fixer.removeRange([ - prevQuasi.range[1] - 2, - expression.range[0], - ]), - fixer.removeRange([ - expression.range[1], - nextQuasi.range[0] + 1, - ]), - ...fixers.flatMap(cb => cb(fixer)), - ]; - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-template-expression.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map deleted file mode 100644 index df4349f6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-template-expression.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-template-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAMiB;AAIjB,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAEjE,iBAAiB;AACjB,kBAAkB;AAClB,qBAAqB;AACrB,SAAS,2BAA2B,CAAC,GAAW;IAC9C,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CACxE,GAAG,CACJ,CAAC;AACJ,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,+BAA+B,EAC7B,mEAAmE;SACtE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC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AG,CAAC;oCACtB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;iCACpB,CAAC;gCACF,KAAK,CAAC,WAAW,CAAC;oCAChB,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;oCACnB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;iCACvB,CAAC;gCAEF,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;6BACnC,CAAC;wBACJ,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js deleted file mode 100644 index 2a673ae9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-type-arguments', - meta: { - docs: { - description: 'Disallow type arguments that are equal to the default', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryTypeParameter: 'This is the default value for this type parameter, so it can be omitted.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function getTypeForComparison(type) { - if ((0, util_1.isTypeReferenceType)(type)) { - return { - type: type.target, - typeArguments: checker.getTypeArguments(type), - }; - } - return { - type, - typeArguments: [], - }; - } - function checkTSArgsAndParameters(esParameters, typeParameters) { - // Just check the last one. Must specify previous type parameters if the last one is specified. - const i = esParameters.params.length - 1; - const arg = esParameters.params[i]; - const param = typeParameters.at(i); - if (!param?.default) { - return; - } - // TODO: would like checker.areTypesEquivalent. https://github.com/Microsoft/TypeScript/issues/13502 - const defaultType = checker.getTypeAtLocation(param.default); - const argType = services.getTypeAtLocation(arg); - // this check should handle some of the most simple cases of like strings, numbers, etc - if (defaultType !== argType) { - // For more complex types (like aliases to generic object types) - TS won't always create a - // global shared type object for the type - so we need to resort to manually comparing the - // reference type and the passed type arguments. - // Also - in case there are aliases - we need to resolve them before we do checks - const defaultTypeResolved = getTypeForComparison(defaultType); - const argTypeResolved = getTypeForComparison(argType); - if ( - // ensure the resolved type AND all the parameters are the same - defaultTypeResolved.type !== argTypeResolved.type || - defaultTypeResolved.typeArguments.length !== - argTypeResolved.typeArguments.length || - defaultTypeResolved.typeArguments.some((t, i) => t !== argTypeResolved.typeArguments[i])) { - return; - } - } - context.report({ - node: arg, - messageId: 'unnecessaryTypeParameter', - fix: fixer => fixer.removeRange(i === 0 - ? esParameters.range - : [esParameters.params[i - 1].range[1], arg.range[1]]), - }); - } - return { - TSTypeParameterInstantiation(node) { - const expression = services.esTreeNodeToTSNodeMap.get(node); - const typeParameters = getTypeParametersFromNode(expression, checker); - if (typeParameters) { - checkTSArgsAndParameters(node, typeParameters); - } - }, - }; - }, -}); -function getTypeParametersFromNode(node, checker) { - if (ts.isExpressionWithTypeArguments(node)) { - return getTypeParametersFromType(node.expression, checker); - } - if (ts.isTypeReferenceNode(node)) { - return getTypeParametersFromType(node.typeName, checker); - } - if (ts.isCallExpression(node) || - ts.isNewExpression(node) || - ts.isTaggedTemplateExpression(node)) { - return getTypeParametersFromCall(node, checker); - } - return undefined; -} -function getTypeParametersFromType(type, checker) { - const symAtLocation = checker.getSymbolAtLocation(type); - if (!symAtLocation) { - return undefined; - } - const sym = getAliasedSymbol(symAtLocation, checker); - const declarations = sym.getDeclarations(); - if (!declarations) { - return undefined; - } - return (0, util_1.findFirstResult)(declarations, decl => ts.isClassLike(decl) || - ts.isTypeAliasDeclaration(decl) || - ts.isInterfaceDeclaration(decl) - ? decl.typeParameters - : undefined); -} -function getTypeParametersFromCall(node, checker) { - const sig = checker.getResolvedSignature(node); - const sigDecl = sig?.getDeclaration(); - if (!sigDecl) { - return ts.isNewExpression(node) - ? getTypeParametersFromType(node.expression, checker) - : undefined; - } - return sigDecl.typeParameters; -} -function getAliasedSymbol(symbol, checker) { - return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) - ? checker.getAliasedSymbol(symbol) - : symbol; -} -//# sourceMappingURL=no-unnecessary-type-arguments.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map deleted file mode 100644 index f7ce6710..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;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C,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;QACpB,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,cAAc;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAAwE,EACxE,OAAuB;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,EAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js deleted file mode 100644 index 59c44bde..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +++ /dev/null @@ -1,261 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-type-assertion', - meta: { - docs: { - description: 'Disallow type assertions that do not change the type of an expression', - recommended: 'recommended', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryAssertion: 'This assertion is unnecessary since it does not change the type of the expression.', - contextuallyUnnecessary: 'This assertion is unnecessary since the receiver accepts the original type of the expression.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - typesToIgnore: { - description: 'A list of type names to ignore.', - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - ], - type: 'suggestion', - }, - defaultOptions: [{}], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - /** - * Returns true if there's a chance the variable has been used before a value has been assigned to it - */ - function isPossiblyUsedBeforeAssigned(node) { - const declaration = (0, util_1.getDeclaration)(services, node); - if (!declaration) { - // don't know what the declaration is for some reason, so just assume the worst - return true; - } - if ( - // non-strict mode doesn't care about used before assigned errors - tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks') && - // ignore class properties as they are compile time guarded - // also ignore function arguments as they can't be used before defined - ts.isVariableDeclaration(declaration) && - // is it `const x!: number` - declaration.initializer === undefined && - declaration.exclamationToken === undefined && - declaration.type !== undefined) { - // check if the defined variable type has changed since assignment - const declarationType = checker.getTypeFromTypeNode(declaration.type); - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - if (declarationType === type && - // `declare`s are never narrowed, so never skip them - !(ts.isVariableDeclarationList(declaration.parent) && - ts.isVariableStatement(declaration.parent.parent) && - tsutils.includesModifier((0, util_1.getModifiers)(declaration.parent.parent), ts.SyntaxKind.DeclareKeyword))) { - // possibly used before assigned, so just skip it - // better to false negative and skip it, than false positive and fix to compile erroring code - // - // no better way to figure this out right now - // https://github.com/Microsoft/TypeScript/issues/31124 - return true; - } - } - return false; - } - function isConstAssertion(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'const'); - } - function isImplicitlyNarrowedConstDeclaration({ expression, parent, }) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const maybeDeclarationNode = parent.parent; - const isTemplateLiteralWithExpressions = expression.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - expression.expressions.length !== 0; - return (maybeDeclarationNode.type === utils_1.AST_NODE_TYPES.VariableDeclaration && - maybeDeclarationNode.kind === 'const' && - /** - * Even on `const` variable declarations, template literals with expressions can sometimes be widened without a type assertion. - * @see https://github.com/typescript-eslint/typescript-eslint/issues/8737 - */ - !isTemplateLiteralWithExpressions); - } - function isTypeUnchanged(uncast, cast) { - if (uncast === cast) { - return true; - } - if ((0, util_1.isTypeFlagSet)(uncast, ts.TypeFlags.Undefined) && - (0, util_1.isTypeFlagSet)(cast, ts.TypeFlags.Undefined) && - tsutils.isCompilerOptionEnabled(compilerOptions, 'exactOptionalPropertyTypes')) { - const uncastParts = tsutils - .unionTypeParts(uncast) - .filter(part => !(0, util_1.isTypeFlagSet)(part, ts.TypeFlags.Undefined)); - const castParts = tsutils - .unionTypeParts(cast) - .filter(part => !(0, util_1.isTypeFlagSet)(part, ts.TypeFlags.Undefined)); - if (uncastParts.length !== castParts.length) { - return false; - } - const uncastPartsSet = new Set(uncastParts); - return castParts.every(part => uncastPartsSet.has(part)); - } - return false; - } - return { - TSNonNullExpression(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - node.parent.operator === '=') { - if (node.parent.left === node) { - context.report({ - node, - messageId: 'contextuallyUnnecessary', - fix(fixer) { - return fixer.removeRange([ - node.expression.range[1], - node.range[1], - ]); - }, - }); - } - // for all other = assignments we ignore non-null checks - // this is because non-null assertions can change the type-flow of the code - // so whilst they might be unnecessary for the assignment - they are necessary - // for following code - return; - } - const originalNode = services.esTreeNodeToTSNodeMap.get(node); - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node.expression); - if (!(0, util_1.isNullableType)(type) && !(0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Void)) { - if (node.expression.type === utils_1.AST_NODE_TYPES.Identifier && - isPossiblyUsedBeforeAssigned(node.expression)) { - return; - } - context.report({ - node, - messageId: 'unnecessaryAssertion', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }); - } - else { - // we know it's a nullable type - // so figure out if the variable is used in a place that accepts nullable types - const contextualType = (0, util_1.getContextualType)(checker, originalNode); - if (contextualType) { - // in strict mode you can't assign null to undefined, so we have to make sure that - // the two types share a nullable type - const typeIncludesUndefined = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Undefined); - const typeIncludesNull = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Null); - const typeIncludesVoid = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Void); - const contextualTypeIncludesUndefined = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Undefined); - const contextualTypeIncludesNull = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Null); - const contextualTypeIncludesVoid = (0, util_1.isTypeFlagSet)(contextualType, ts.TypeFlags.Void); - // make sure that the parent accepts the same types - // i.e. assigning `string | null | undefined` to `string | undefined` is invalid - const isValidUndefined = typeIncludesUndefined - ? contextualTypeIncludesUndefined - : true; - const isValidNull = typeIncludesNull - ? contextualTypeIncludesNull - : true; - const isValidVoid = typeIncludesVoid - ? contextualTypeIncludesVoid - : true; - if (isValidUndefined && isValidNull && isValidVoid) { - context.report({ - node, - messageId: 'contextuallyUnnecessary', - fix(fixer) { - return fixer.removeRange([ - node.expression.range[1], - node.range[1], - ]); - }, - }); - } - } - } - }, - 'TSAsExpression, TSTypeAssertion'(node) { - if (options.typesToIgnore?.includes(context.sourceCode.getText(node.typeAnnotation))) { - return; - } - const castType = services.getTypeAtLocation(node); - const uncastType = services.getTypeAtLocation(node.expression); - const typeIsUnchanged = isTypeUnchanged(uncastType, castType); - const wouldSameTypeBeInferred = castType.isLiteral() - ? isImplicitlyNarrowedConstDeclaration(node) - : !isConstAssertion(node.typeAnnotation); - if (typeIsUnchanged && wouldSameTypeBeInferred) { - context.report({ - node, - messageId: 'unnecessaryAssertion', - fix(fixer) { - if (node.type === utils_1.AST_NODE_TYPES.TSTypeAssertion) { - const openingAngleBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(node.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && - token.value === '<'), util_1.NullThrowsReasons.MissingToken('<', 'type annotation')); - const closingAngleBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.typeAnnotation, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && - token.value === '>'), util_1.NullThrowsReasons.MissingToken('>', 'type annotation')); - // < ( number ) > ( 3 + 5 ) - // ^---remove---^ - return fixer.removeRange([ - openingAngleBracket.range[0], - closingAngleBracket.range[1], - ]); - } - // `as` is always present in TSAsExpression - const asToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.expression, token => token.type === utils_1.AST_TOKEN_TYPES.Identifier && - token.value === 'as'), util_1.NullThrowsReasons.MissingToken('>', 'type annotation')); - const tokenBeforeAs = (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(asToken, { - includeComments: true, - }), util_1.NullThrowsReasons.MissingToken('comment', 'as')); - // ( 3 + 5 ) as number - // ^--remove--^ - return fixer.removeRange([tokenBeforeAs.range[1], node.range[1]]); - }, - }); - } - // TODO - add contextually unnecessary check for this - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-type-assertion.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map deleted file mode 100644 index dd54b3e1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAWiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,uEAAuE;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,oFAAoF;YACtF,uBAAuB,EACrB,+FAA+F;SAClG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,WAAW,EAAE,iCAAiC;wBAC9C,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;Q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vD,CAAC;gCAEF,2BAA2B;gCAC3B,iBAAiB;gCACjB,OAAO,KAAK,CAAC,WAAW,CAAC;oCACvB,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;oCAC5B,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;iCAC7B,CAAC,CAAC;4BACL,CAAC;4BACD,2CAA2C;4BAC3C,MAAM,OAAO,GAAG,IAAA,iBAAU,EACxB,OAAO,CAAC,UAAU,CAAC,aAAa,CAC9B,IAAI,CAAC,UAAU,EACf,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,uBAAe,CAAC,UAAU;gCACzC,KAAK,CAAC,KAAK,KAAK,IAAI,CACvB,EACD,wBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC,CACvD,CAAC;4BACF,MAAM,aAAa,GAAG,IAAA,iBAAU,EAC9B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE;gCACzC,eAAe,EAAE,IAAI;6BACtB,CAAC,EACF,wBAAiB,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAChD,CAAC;4BAEF,wBAAwB;4BACxB,wBAAwB;4BACxB,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBACpE,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;gBAED,qDAAqD;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js deleted file mode 100644 index 66bea501..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const path_1 = require("path"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-type-constraint', - meta: { - docs: { - description: 'Disallow unnecessary constraints on generic types', - recommended: 'recommended', - }, - hasSuggestions: true, - messages: { - unnecessaryConstraint: 'Constraining the generic type `{{name}}` to `{{constraint}}` does nothing and is unnecessary.', - removeUnnecessaryConstraint: 'Remove the unnecessary `{{constraint}}` constraint.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - // In theory, we could use the type checker for more advanced constraint types... - // ...but in practice, these types are rare, and likely not worth requiring type info. - // https://github.com/typescript-eslint/typescript-eslint/pull/2516#discussion_r495731858 - const unnecessaryConstraints = new Map([ - [utils_1.AST_NODE_TYPES.TSAnyKeyword, 'any'], - [utils_1.AST_NODE_TYPES.TSUnknownKeyword, 'unknown'], - ]); - function checkRequiresGenericDeclarationDisambiguation(filename) { - const pathExt = (0, path_1.extname)(filename).toLocaleLowerCase(); - switch (pathExt) { - case ts.Extension.Cts: - case ts.Extension.Mts: - case ts.Extension.Tsx: - return true; - default: - return false; - } - } - const requiresGenericDeclarationDisambiguation = checkRequiresGenericDeclarationDisambiguation(context.filename); - const checkNode = (node, inArrowFunction) => { - const constraint = unnecessaryConstraints.get(node.constraint.type); - function shouldAddTrailingComma() { - if (!inArrowFunction || !requiresGenericDeclarationDisambiguation) { - return false; - } - // Only () => {} would need trailing comma - return (node.parent.params.length === - 1 && - context.sourceCode.getTokensAfter(node)[0].value !== ',' && - !node.default); - } - if (constraint) { - context.report({ - data: { - constraint, - name: node.name.name, - }, - suggest: [ - { - messageId: 'removeUnnecessaryConstraint', - data: { - constraint, - }, - fix(fixer) { - return fixer.replaceTextRange([node.name.range[1], node.constraint.range[1]], shouldAddTrailingComma() ? ',' : ''); - }, - }, - ], - messageId: 'unnecessaryConstraint', - node, - }); - } - }; - return { - ':not(ArrowFunctionExpression) > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { - checkNode(node, false); - }, - 'ArrowFunctionExpression > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { - checkNode(node, true); - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-type-constraint.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map deleted file mode 100644 index 0d1d5d9c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-constraint.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-constraint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+BAA+B;AAC/B,+CAAiC;AAGjC,kCAAqC;AAOrC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC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C;gBAC7C,OAAO,CACJ,IAAI,CAAC,MAA8C,CAAC,MAAM,CAAC,MAAM;oBAChE,CAAC;oBACH,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,GAAG;oBACxD,CAAC,IAAI,CAAC,OAAO,CACd,CAAC;YACJ,CAAC;YAED,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE;wBACJ,UAAU;wBACV,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;qBACrB;oBACD,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,6BAA6B;4BACxC,IAAI,EAAE;gCACJ,UAAU;6BACX;4BACD,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,gBAAgB,CAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACpC,CAAC;4BACJ,CAAC;yBACF;qBACF;oBACD,SAAS,EAAE,uBAAuB;oBAClC,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;QAEF,OAAO;YACL,0FAA0F,CACxF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACzB,CAAC;YACD,oFAAoF,CAClF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js deleted file mode 100644 index e684f0a4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +++ /dev/null @@ -1,322 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - defaultOptions: [], - meta: { - docs: { - description: "Disallow type parameters that aren't used multiple times", - requiresTypeChecking: true, - recommended: 'strict', - }, - messages: { - sole: 'Type parameter {{name}} is {{uses}} in the {{descriptor}} signature.', - }, - schema: [], - type: 'problem', - }, - name: 'no-unnecessary-type-parameters', - create(context) { - const parserServices = (0, util_1.getParserServices)(context); - function checkNode(node, descriptor) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const checker = parserServices.program.getTypeChecker(); - let counts; - for (const typeParameter of tsNode.typeParameters) { - const esTypeParameter = parserServices.tsNodeToESTreeNodeMap.get(typeParameter); - const scope = context.sourceCode.getScope(esTypeParameter); - // Quick path: if the type parameter is used multiple times in the AST, - // we don't need to dip into types to know it's repeated. - if (isTypeParameterRepeatedInAST(esTypeParameter, scope.references, node.body?.range[0] ?? node.returnType?.range[1])) { - continue; - } - // For any inferred types, we have to dip into type checking. - counts ??= countTypeParameterUsage(checker, tsNode); - const identifierCounts = counts.get(typeParameter.name); - if (!identifierCounts || identifierCounts > 2) { - continue; - } - context.report({ - data: { - descriptor, - uses: identifierCounts === 1 ? 'never used' : 'used only once', - name: typeParameter.name.text, - }, - node: esTypeParameter, - messageId: 'sole', - }); - } - } - return { - [[ - 'ArrowFunctionExpression[typeParameters]', - 'FunctionDeclaration[typeParameters]', - 'FunctionExpression[typeParameters]', - 'TSCallSignatureDeclaration[typeParameters]', - 'TSConstructorType[typeParameters]', - 'TSDeclareFunction[typeParameters]', - 'TSEmptyBodyFunctionExpression[typeParameters]', - 'TSFunctionType[typeParameters]', - 'TSMethodSignature[typeParameters]', - ].join(', ')](node) { - checkNode(node, 'function'); - }, - [[ - 'ClassDeclaration[typeParameters]', - 'ClassExpression[typeParameters]', - ].join(', ')](node) { - checkNode(node, 'class'); - }, - }; - }, -}); -function isTypeParameterRepeatedInAST(node, references, startOfBody = Infinity) { - let total = 0; - for (const reference of references) { - // References inside the type parameter's definition don't count... - if (reference.identifier.range[0] < node.range[1] && - reference.identifier.range[1] > node.range[0]) { - continue; - } - // ...nor references that are outside the declaring signature. - if (reference.identifier.range[0] > startOfBody) { - continue; - } - // Neither do references that aren't to the same type parameter, - // namely value-land (non-type) identifiers of the type parameter's type, - // and references to different type parameters or values. - if (!reference.isTypeReference || - reference.identifier.name !== node.name.name) { - continue; - } - // If the type parameter is being used as a type argument, then we - // know the type parameter is being reused and can't be reported. - if (reference.identifier.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - const grandparent = skipConstituentsUpward(reference.identifier.parent.parent); - if (grandparent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && - grandparent.params.includes(reference.identifier.parent)) { - return true; - } - } - total += 1; - if (total > 2) { - return true; - } - } - return false; -} -function skipConstituentsUpward(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSUnionType: - return skipConstituentsUpward(node.parent); - default: - return node; - } -} -/** - * Count uses of type parameters in inferred return types. - * We need to resolve and analyze the inferred return type of a function - * to see whether it contains additional references to the type parameters. - * For classes, we need to do this for all their methods. - */ -function countTypeParameterUsage(checker, node) { - const counts = new Map(); - if (ts.isClassLike(node)) { - for (const typeParameter of node.typeParameters) { - collectTypeParameterUsageCounts(checker, typeParameter, counts); - } - for (const member of node.members) { - collectTypeParameterUsageCounts(checker, member, counts); - } - } - else { - collectTypeParameterUsageCounts(checker, node, counts); - } - return counts; -} -/** - * Populates {@link foundIdentifierUsages} by the number of times each type parameter - * appears in the given type by checking its uses through its type references. - * This is essentially a limited subset of the scope manager, but for types. - */ -function collectTypeParameterUsageCounts(checker, node, foundIdentifierUsages) { - const visitedSymbolLists = new Set(); - const type = checker.getTypeAtLocation(node); - const typeUsages = new Map(); - const visitedConstraints = new Set(); - let functionLikeType = false; - let visitedDefault = false; - if (ts.isCallSignatureDeclaration(node) || - ts.isConstructorDeclaration(node)) { - functionLikeType = true; - visitSignature(checker.getSignatureFromDeclaration(node)); - } - if (!functionLikeType) { - visitType(type, false); - } - function visitType(type, assumeMultipleUses) { - // Seeing the same type > (threshold=3 ** 2) times indicates a likely - // recursive type, like `type T = { [P in keyof T]: T }`. - // If it's not recursive, then heck, we've seen it enough times that any - // referenced types have been counted enough to qualify as used. - if (!type || incrementTypeUsages(type) > 9) { - return; - } - // https://github.com/JoshuaKGoldberg/ts-api-utils/issues/382 - if (tsutils.isTypeParameter(type)) { - const declaration = type.getSymbol()?.getDeclarations()?.[0]; - if (declaration) { - incrementIdentifierCount(declaration.name, assumeMultipleUses); - // Visiting the type of a constrained type parameter will recurse into - // the constraint. We avoid infinite loops by visiting each only once. - if (declaration.constraint && - !visitedConstraints.has(declaration.constraint)) { - visitedConstraints.add(declaration.constraint); - visitType(checker.getTypeAtLocation(declaration.constraint), false); - } - if (declaration.default && !visitedDefault) { - visitedDefault = true; - visitType(checker.getTypeAtLocation(declaration.default), false); - } - } - } - // Intersections and unions like `0 | 1` - else if (tsutils.isUnionOrIntersectionType(type)) { - visitTypesList(type.types, assumeMultipleUses); - } - // Index access types like `T[K]` - else if (tsutils.isIndexedAccessType(type)) { - visitType(type.objectType, assumeMultipleUses); - visitType(type.indexType, assumeMultipleUses); - } - // Tuple types like `[K, V]` - // Generic type references like `Map` - else if (tsutils.isTupleType(type) || tsutils.isTypeReference(type)) { - for (const typeArgument of type.typeArguments ?? []) { - visitType(typeArgument, true); - } - } - // Template literals like `a${T}b` - else if (tsutils.isTemplateLiteralType(type)) { - for (const subType of type.types) { - visitType(subType, assumeMultipleUses); - } - } - // Conditional types like `T extends string ? T : never` - else if (tsutils.isConditionalType(type)) { - visitType(type.checkType, assumeMultipleUses); - visitType(type.extendsType, assumeMultipleUses); - } - // Catch-all: inferred object types like `{ K: V }`. - // These catch-alls should be _after_ more specific checks like - // `isTypeReference` to avoid descending into all the properties of a - // generic interface/class, e.g. `Map`. - else if (tsutils.isObjectType(type)) { - const properties = type.getProperties(); - visitSymbolsListOnce(properties, false); - if (isMappedType(type)) { - visitType(type.typeParameter, false); - if (properties.length === 0) { - // TS treats mapped types like `{[k in "a"]: T}` like `{a: T}`. - // They have properties, so we need to avoid double-counting. - visitType(type.templateType, false); - } - } - for (const typeArgument of type.aliasTypeArguments ?? []) { - visitType(typeArgument, true); - } - visitType(type.getNumberIndexType(), true); - visitType(type.getStringIndexType(), true); - type.getCallSignatures().forEach(signature => { - functionLikeType = true; - visitSignature(signature); - }); - type.getConstructSignatures().forEach(signature => { - functionLikeType = true; - visitSignature(signature); - }); - } - // Catch-all: operator types like `keyof T` - else if (isOperatorType(type)) { - visitType(type.type, assumeMultipleUses); - } - // Catch-all: generic type references like `Exclude` - else if (type.aliasTypeArguments) { - visitTypesList(type.aliasTypeArguments, true); - } - } - function incrementIdentifierCount(id, assumeMultipleUses) { - const identifierCount = foundIdentifierUsages.get(id) ?? 0; - const value = assumeMultipleUses ? 2 : 1; - foundIdentifierUsages.set(id, identifierCount + value); - } - function incrementTypeUsages(type) { - const count = (typeUsages.get(type) ?? 0) + 1; - typeUsages.set(type, count); - return count; - } - function visitSignature(signature) { - if (!signature) { - return; - } - if (signature.thisParameter) { - visitType(checker.getTypeOfSymbol(signature.thisParameter), false); - } - for (const parameter of signature.parameters) { - visitType(checker.getTypeOfSymbol(parameter), false); - } - for (const typeParameter of signature.getTypeParameters() ?? []) { - visitType(typeParameter, false); - } - visitType(checker.getTypePredicateOfSignature(signature)?.type ?? - signature.getReturnType(), false); - } - function visitSymbolsListOnce(symbols, assumeMultipleUses) { - if (visitedSymbolLists.has(symbols)) { - return; - } - visitedSymbolLists.add(symbols); - for (const symbol of symbols) { - visitType(checker.getTypeOfSymbol(symbol), assumeMultipleUses); - } - } - function visitTypesList(types, assumeMultipleUses) { - for (const type of types) { - visitType(type, assumeMultipleUses); - } - } -} -function isMappedType(type) { - return 'typeParameter' in type; -} -function isOperatorType(type) { - return 'type' in type && !!type.type; -} -//# sourceMappingURL=no-unnecessary-type-parameters.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map deleted file mode 100644 index f407a32f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-parameters.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAGjC,kCAAwD;AAOxD,kBAAe,IAAA,iBAAU,EAAC;IACxB,cAAc,EAAE,EAAE;IAClB,IAAI,EAAE;QACJ,I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B,kBAA2B;QAE3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;AACH,CAAC;AAQD,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,eAAe,IAAI,IAAI,CAAC;AACjC,CAAC;AAMD,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js deleted file mode 100644 index 85c5083d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -class FunctionSignature { - paramTypes; - restType; - parameterTypeIndex = 0; - static create(checker, tsNode) { - const signature = checker.getResolvedSignature(tsNode); - if (!signature) { - return null; - } - const paramTypes = []; - let restType = null; - const parameters = signature.getParameters(); - for (let i = 0; i < parameters.length; i += 1) { - const param = parameters[i]; - const type = checker.getTypeOfSymbolAtLocation(param, tsNode); - const decl = param.getDeclarations()?.[0]; - if (decl && (0, util_1.isRestParameterDeclaration)(decl)) { - // is a rest param - if (checker.isArrayType(type)) { - restType = { - type: checker.getTypeArguments(type)[0], - kind: 0 /* RestTypeKind.Array */, - index: i, - }; - } - else if (checker.isTupleType(type)) { - restType = { - typeArguments: checker.getTypeArguments(type), - kind: 1 /* RestTypeKind.Tuple */, - index: i, - }; - } - else { - restType = { - type, - kind: 2 /* RestTypeKind.Other */, - index: i, - }; - } - break; - } - paramTypes.push(type); - } - return new this(paramTypes, restType); - } - hasConsumedArguments = false; - constructor(paramTypes, restType) { - this.paramTypes = paramTypes; - this.restType = restType; - } - getNextParameterType() { - const index = this.parameterTypeIndex; - this.parameterTypeIndex += 1; - if (index >= this.paramTypes.length || this.hasConsumedArguments) { - if (this.restType == null) { - return null; - } - switch (this.restType.kind) { - case 1 /* RestTypeKind.Tuple */: { - const typeArguments = this.restType.typeArguments; - if (this.hasConsumedArguments) { - // all types consumed by a rest - just assume it's the last type - // there is one edge case where this is wrong, but we ignore it because - // it's rare and really complicated to handle - // eg: function foo(...a: [number, ...string[], number]) - return typeArguments[typeArguments.length - 1]; - } - const typeIndex = index - this.restType.index; - if (typeIndex >= typeArguments.length) { - return typeArguments[typeArguments.length - 1]; - } - return typeArguments[typeIndex]; - } - case 0 /* RestTypeKind.Array */: - case 2 /* RestTypeKind.Other */: - return this.restType.type; - } - } - return this.paramTypes[index]; - } - consumeRemainingArguments() { - this.hasConsumedArguments = true; - } -} -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-argument', - meta: { - type: 'problem', - docs: { - description: 'Disallow calling a function with a value with type `any`', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unsafeArgument: 'Unsafe argument of type `{{sender}}` assigned to a parameter of type `{{receiver}}`.', - unsafeTupleSpread: 'Unsafe spread of a tuple type. The argument is of type `{{sender}}` and is assigned to a parameter of type `{{receiver}}`.', - unsafeArraySpread: 'Unsafe spread of an `any` array type.', - unsafeSpread: 'Unsafe spread of an `any` type.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function checkUnsafeArguments(args, callee, node) { - if (args.length === 0) { - return; - } - // ignore any-typed calls as these are caught by no-unsafe-call - if ((0, util_1.isTypeAnyType)(services.getTypeAtLocation(callee))) { - return; - } - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - const signature = (0, util_1.nullThrows)(FunctionSignature.create(checker, tsNode), 'Expected to a signature resolved'); - if (node.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - // Consumes the first parameter (TemplateStringsArray) of the function called with TaggedTemplateExpression. - signature.getNextParameterType(); - } - for (const argument of args) { - switch (argument.type) { - // spreads consume - case utils_1.AST_NODE_TYPES.SpreadElement: { - const spreadArgType = services.getTypeAtLocation(argument.argument); - if ((0, util_1.isTypeAnyType)(spreadArgType)) { - // foo(...any) - context.report({ - node: argument, - messageId: 'unsafeSpread', - }); - } - else if ((0, util_1.isTypeAnyArrayType)(spreadArgType, checker)) { - // foo(...any[]) - // TODO - we could break down the spread and compare the array type against each argument - context.report({ - node: argument, - messageId: 'unsafeArraySpread', - }); - } - else if (checker.isTupleType(spreadArgType)) { - // foo(...[tuple1, tuple2]) - const spreadTypeArguments = checker.getTypeArguments(spreadArgType); - for (const tupleType of spreadTypeArguments) { - const parameterType = signature.getNextParameterType(); - if (parameterType == null) { - continue; - } - const result = (0, util_1.isUnsafeAssignment)(tupleType, parameterType, checker, - // we can't pass the individual tuple members in here as this will most likely be a spread variable - // not a spread array - null); - if (result) { - context.report({ - node: argument, - messageId: 'unsafeTupleSpread', - data: { - sender: checker.typeToString(tupleType), - receiver: checker.typeToString(parameterType), - }, - }); - } - } - if (spreadArgType.target.hasRestElement) { - // the last element was a rest - so all remaining defined arguments can be considered "consumed" - // all remaining arguments should be compared against the rest type (if one exists) - signature.consumeRemainingArguments(); - } - } - else { - // something that's iterable - // handling this will be pretty complex - so we ignore it for now - // TODO - handle generic iterable case - } - break; - } - default: { - const parameterType = signature.getNextParameterType(); - if (parameterType == null) { - continue; - } - const argumentType = services.getTypeAtLocation(argument); - const result = (0, util_1.isUnsafeAssignment)(argumentType, parameterType, checker, argument); - if (result) { - context.report({ - node: argument, - messageId: 'unsafeArgument', - data: { - sender: checker.typeToString(argumentType), - receiver: checker.typeToString(parameterType), - }, - }); - } - } - } - } - } - return { - 'CallExpression, NewExpression'(node) { - checkUnsafeArguments(node.arguments, node.callee, node); - }, - TaggedTemplateExpression(node) { - checkUnsafeArguments(node.quasi.expressions, node.tag, node); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-argument.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map deleted file mode 100644 index 4016903f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-argument.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-argument.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAG1D,kCAQiB;AA8BjB,MAAM,iBAAiB;IAsDX;IACA;IAtDF,kBAAkB,GAAG,CAAC,CAAC;IAExB,MAAM,CAAC,MAAM,CAClB,OAAuB,EACvB,MAA6B;QAE7B,MAAM,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,UAAU,GAAc,EAAE,CAAC;QACjC,IAAI,QAAQ,GAAoB,IAAI,CAAC;QAErC,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;YAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAE9D,MAAM,IAAI,GAAG,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,IAAI,IAAI,IAAA,iCAA0B,EAAC,IAAI,CAAC,EAAE,CAAC;gBAC7C,kBAAkB;gBAClB,IAAI,OAAO,CAAC,WAAW,CA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AED,MAAM,YAAY,GAAG,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;wBAC1D,MAAM,MAAM,GAAG,IAAA,yBAAkB,EAC/B,YAAY,EACZ,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;wBACF,IAAI,MAAM,EAAE,CAAC;4BACX,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,gBAAgB;gCAC3B,IAAI,EAAE;oCACJ,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;oCAC1C,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;iCAC9C;6BACF,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,+BAA+B,CAC7B,IAAsD;gBAEtD,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAC1D,CAAC;YACD,wBAAwB,CAAC,IAAuC;gBAC9D,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js deleted file mode 100644 index 4b5628e5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +++ /dev/null @@ -1,297 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-assignment', - meta: { - type: 'problem', - docs: { - description: 'Disallow assigning a value with type `any` to variables and properties', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - anyAssignment: 'Unsafe assignment of an {{sender}} value.', - anyAssignmentThis: [ - 'Unsafe assignment of an {{sender}} value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeArrayPattern: 'Unsafe array destructuring of an {{sender}} array value.', - unsafeArrayPatternFromTuple: 'Unsafe array destructuring of a tuple element with an {{sender}} value.', - unsafeAssignment: 'Unsafe assignment of type {{sender}} to a variable of type {{receiver}}.', - unsafeArraySpread: 'Unsafe spread of an {{sender}} value in an array.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - // returns true if the assignment reported - function checkArrayDestructureHelper(receiverNode, senderNode) { - if (receiverNode.type !== utils_1.AST_NODE_TYPES.ArrayPattern) { - return false; - } - const senderTsNode = services.esTreeNodeToTSNodeMap.get(senderNode); - const senderType = services.getTypeAtLocation(senderNode); - return checkArrayDestructure(receiverNode, senderType, senderTsNode); - } - // returns true if the assignment reported - function checkArrayDestructure(receiverNode, senderType, senderNode) { - // any array - // const [x] = ([] as any[]); - if ((0, util_1.isTypeAnyArrayType)(senderType, checker)) { - context.report({ - node: receiverNode, - messageId: 'unsafeArrayPattern', - data: createData(senderType), - }); - return false; - } - if (!checker.isTupleType(senderType)) { - return true; - } - const tupleElements = checker.getTypeArguments(senderType); - // tuple with any - // const [x] = [1 as any]; - let didReport = false; - for (let receiverIndex = 0; receiverIndex < receiverNode.elements.length; receiverIndex += 1) { - const receiverElement = receiverNode.elements[receiverIndex]; - if (!receiverElement) { - continue; - } - if (receiverElement.type === utils_1.AST_NODE_TYPES.RestElement) { - // don't handle rests as they're not a 1:1 assignment - continue; - } - const senderType = tupleElements[receiverIndex]; - if (!senderType) { - continue; - } - // check for the any type first so we can handle [[[x]]] = [any] - if ((0, util_1.isTypeAnyType)(senderType)) { - context.report({ - node: receiverElement, - messageId: 'unsafeArrayPatternFromTuple', - data: createData(senderType), - }); - // we want to report on every invalid element in the tuple - didReport = true; - } - else if (receiverElement.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - didReport = checkArrayDestructure(receiverElement, senderType, senderNode); - } - else if (receiverElement.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - didReport = checkObjectDestructure(receiverElement, senderType, senderNode); - } - } - return didReport; - } - // returns true if the assignment reported - function checkObjectDestructureHelper(receiverNode, senderNode) { - if (receiverNode.type !== utils_1.AST_NODE_TYPES.ObjectPattern) { - return false; - } - const senderTsNode = services.esTreeNodeToTSNodeMap.get(senderNode); - const senderType = services.getTypeAtLocation(senderNode); - return checkObjectDestructure(receiverNode, senderType, senderTsNode); - } - // returns true if the assignment reported - function checkObjectDestructure(receiverNode, senderType, senderNode) { - const properties = new Map(senderType - .getProperties() - .map(property => [ - property.getName(), - checker.getTypeOfSymbolAtLocation(property, senderNode), - ])); - let didReport = false; - for (const receiverProperty of receiverNode.properties) { - if (receiverProperty.type === utils_1.AST_NODE_TYPES.RestElement) { - // don't bother checking rest - continue; - } - let key; - if (!receiverProperty.computed) { - key = - receiverProperty.key.type === utils_1.AST_NODE_TYPES.Identifier - ? receiverProperty.key.name - : String(receiverProperty.key.value); - } - else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.Literal) { - key = String(receiverProperty.key.value); - } - else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - receiverProperty.key.quasis.length === 1) { - key = String(receiverProperty.key.quasis[0].value.cooked); - } - else { - // can't figure out the name, so skip it - continue; - } - const senderType = properties.get(key); - if (!senderType) { - continue; - } - // check for the any type first so we can handle {x: {y: z}} = {x: any} - if ((0, util_1.isTypeAnyType)(senderType)) { - context.report({ - node: receiverProperty.value, - messageId: 'unsafeArrayPatternFromTuple', - data: createData(senderType), - }); - didReport = true; - } - else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - didReport = checkArrayDestructure(receiverProperty.value, senderType, senderNode); - } - else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - didReport = checkObjectDestructure(receiverProperty.value, senderType, senderNode); - } - } - return didReport; - } - // returns true if the assignment reported - function checkAssignment(receiverNode, senderNode, reportingNode, comparisonType) { - const receiverTsNode = services.esTreeNodeToTSNodeMap.get(receiverNode); - const receiverType = comparisonType === 2 /* ComparisonType.Contextual */ - ? (0, util_1.getContextualType)(checker, receiverTsNode) ?? - services.getTypeAtLocation(receiverNode) - : services.getTypeAtLocation(receiverNode); - const senderType = services.getTypeAtLocation(senderNode); - if ((0, util_1.isTypeAnyType)(senderType)) { - // handle cases when we assign any ==> unknown. - if ((0, util_1.isTypeUnknownType)(receiverType)) { - return false; - } - let messageId = 'anyAssignment'; - if (!isNoImplicitThis) { - // `var foo = this` - const thisExpression = (0, util_1.getThisExpression)(senderNode); - if (thisExpression && - (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { - messageId = 'anyAssignmentThis'; - } - } - context.report({ - node: reportingNode, - messageId, - data: createData(senderType), - }); - return true; - } - if (comparisonType === 0 /* ComparisonType.None */) { - return false; - } - const result = (0, util_1.isUnsafeAssignment)(senderType, receiverType, checker, senderNode); - if (!result) { - return false; - } - const { sender, receiver } = result; - context.report({ - node: reportingNode, - messageId: 'unsafeAssignment', - data: createData(sender, receiver), - }); - return true; - } - function getComparisonType(typeAnnotation) { - return typeAnnotation - ? // if there's a type annotation, we can do a comparison - 1 /* ComparisonType.Basic */ - : // no type annotation means the variable's type will just be inferred, thus equal - 0 /* ComparisonType.None */; - } - function createData(senderType, receiverType) { - if (receiverType) { - return { - sender: '`' + checker.typeToString(senderType) + '`', - receiver: '`' + checker.typeToString(receiverType) + '`', - }; - } - return { - sender: tsutils.isIntrinsicErrorType(senderType) - ? 'error typed' - : '`any`', - }; - } - return { - 'VariableDeclarator[init != null]'(node) { - const init = (0, util_1.nullThrows)(node.init, util_1.NullThrowsReasons.MissingToken(node.type, 'init')); - let didReport = checkAssignment(node.id, init, node, getComparisonType(node.id.typeAnnotation)); - if (!didReport) { - didReport = checkArrayDestructureHelper(node.id, init); - } - if (!didReport) { - checkObjectDestructureHelper(node.id, init); - } - }, - 'PropertyDefinition[value != null]'(node) { - checkAssignment(node.key, node.value, node, getComparisonType(node.typeAnnotation)); - }, - 'AssignmentExpression[operator = "="], AssignmentPattern'(node) { - let didReport = checkAssignment(node.left, node.right, node, 1 /* ComparisonType.Basic */); - if (!didReport) { - didReport = checkArrayDestructureHelper(node.left, node.right); - } - if (!didReport) { - checkObjectDestructureHelper(node.left, node.right); - } - }, - // object pattern props are checked via assignments - ':not(ObjectPattern) > Property'(node) { - if (node.value.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - // handled by other selector - return; - } - checkAssignment(node.key, node.value, node, 2 /* ComparisonType.Contextual */); - }, - 'ArrayExpression > SpreadElement'(node) { - const restType = services.getTypeAtLocation(node.argument); - if ((0, util_1.isTypeAnyType)(restType) || (0, util_1.isTypeAnyArrayType)(restType, checker)) { - context.report({ - node: node, - messageId: 'unsafeArraySpread', - data: createData(restType), - }); - } - }, - 'JSXAttribute[value != null]'(node) { - const value = (0, util_1.nullThrows)(node.value, util_1.NullThrowsReasons.MissingToken(node.type, 'value')); - if (value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer || - value.expression.type === utils_1.AST_NODE_TYPES.JSXEmptyExpression) { - return; - } - checkAssignment(node.name, value.expression, value.expression, 2 /* ComparisonType.Contextual */); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-assignment.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map deleted file mode 100644 index 73c2bf07..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-assignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAYiB;AAWjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,wEAAwE;YAC1E,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,2CAA2C;YAC1D,iBAAiB,EAAE;gBACjB,qEAAqE;gBACrE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,kBAAkB,EAChB,0DAA0D;YAC5D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C;gBAED,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,oCAA4B,CAAC;YACzE,CAAC;YACD,iCAAiC,CAAC,IAA4B;gBAC5D,MAAM,QAAQ,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC3D,IAAI,IAAA,oBAAa,EAAC,QAAQ,CAAC,IAAI,IAAA,yBAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC;oBACrE,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,IAAI;wBACV,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;qBAC3B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,6BAA6B,CAAC,IAA2B;gBACvD,MAAM,KAAK,GAAG,IAAA,iBAAU,EACtB,IAAI,CAAC,KAAK,EACV,wBAAiB,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CACnD,CAAC;gBACF,IACE,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;oBACpD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC3D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,eAAe,CACb,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,oCAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js deleted file mode 100644 index 8af5fc99..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-call', - meta: { - type: 'problem', - docs: { - description: 'Disallow calling a value with type `any`', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unsafeCall: 'Unsafe call of an {{type}} typed value.', - unsafeCallThis: [ - 'Unsafe call of an `any` typed value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeNew: 'Unsafe construction of an any type value.', - unsafeTemplateTag: 'Unsafe any typed template tag.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const compilerOptions = services.program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - function checkCall(node, reportingNode, messageId) { - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - if ((0, util_1.isTypeAnyType)(type)) { - if (!isNoImplicitThis) { - // `this()` or `this.foo()` or `this.foo[bar]()` - const thisExpression = (0, util_1.getThisExpression)(node); - if (thisExpression && - (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { - messageId = 'unsafeCallThis'; - } - } - const isErrorType = tsutils.isIntrinsicErrorType(type); - context.report({ - node: reportingNode, - messageId: messageId, - data: { - type: isErrorType ? '`error` type' : '`any`', - }, - }); - } - } - return { - 'CallExpression > *.callee'(node) { - checkCall(node, node, 'unsafeCall'); - }, - NewExpression(node) { - checkCall(node.callee, node, 'unsafeNew'); - }, - 'TaggedTemplateExpression > *.tag'(node) { - checkCall(node, node, 'unsafeTemplateTag'); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-call.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map deleted file mode 100644 index 158f6862..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,kCAMiB;AAQjB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,yCAAyC;YACrD,cAAc,EAAE;gBACd,gEAAgE;gBAChE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,2CAA2C;YACtD,iBAAiB,EAAE,gCAAgC;SACpD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,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C,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js deleted file mode 100644 index 8781f538..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-declaration-merging', - meta: { - type: 'problem', - docs: { - description: 'Disallow unsafe declaration merging', - recommended: 'recommended', - requiresTypeChecking: false, - }, - messages: { - unsafeMerging: 'Unsafe declaration merging between classes and interfaces.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function checkUnsafeDeclaration(scope, node, unsafeKind) { - const variable = scope.set.get(node.name); - if (!variable) { - return; - } - const defs = variable.defs; - if (defs.length <= 1) { - return; - } - if (defs.some(def => def.node.type === unsafeKind)) { - context.report({ - node, - messageId: 'unsafeMerging', - }); - } - } - return { - ClassDeclaration(node) { - if (node.id) { - // by default eslint returns the inner class scope for the ClassDeclaration node - // but we want the outer scope within which merged variables will sit - const currentScope = context.sourceCode.getScope(node).upper; - if (currentScope == null) { - return; - } - checkUnsafeDeclaration(currentScope, node.id, utils_1.AST_NODE_TYPES.TSInterfaceDeclaration); - } - }, - TSInterfaceDeclaration(node) { - checkUnsafeDeclaration(context.sourceCode.getScope(node), node.id, utils_1.AST_NODE_TYPES.ClassDeclaration); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-declaration-merging.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map deleted file mode 100644 index cd773725..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-declaration-merging.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-declaration-merging.ts"],"names":[],"mappings":";;AAEA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,KAAK;SAC5B;QACD,QAAQ,EAAE;YACR,aAAa,EACX,4DAA4D;SAC/D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,sBAAsB,CAC7B,KAAY,EACZ,IAAyB,EACzB,UAA0B;YAE1B,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,OAAO;YACT,CAAC;YAED,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;YAC3B,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACrB,OAAO;YACT,CAAC;YAED,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,EAAE,CAAC;gBACnD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,eAAe;iBAC3B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,gBAAgB,CAAC,IAAI;gBACnB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;oBACZ,gFAAgF;oBAChF,qEAAqE;oBACrE,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;oBAC7D,IAAI,YAAY,IAAI,IAAI,EAAE,CAAC;wBACzB,OAAO;oBACT,CAAC;oBAED,sBAAsB,CACpB,YAAY,EACZ,IAAI,CAAC,EAAE,EACP,sBAAc,CAAC,sBAAsB,CACtC,CAAC;gBACJ,CAAC;YACH,CAAC;YACD,sBAAsB,CAAC,IAAI;gBACzB,sBAAsB,CACpB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EACjC,IAAI,CAAC,EAAE,EACP,sBAAc,CAAC,gBAAgB,CAChC,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js deleted file mode 100644 index 77038d15..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +++ /dev/null @@ -1,164 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const shared_1 = require("./enum-utils/shared"); -/** - * @returns Whether the right type is an unsafe comparison against any left type. - */ -function typeViolates(leftTypeParts, right) { - const leftValueKinds = new Set(leftTypeParts.map(getEnumValueType)); - return ((leftValueKinds.has(ts.TypeFlags.Number) && - tsutils.isTypeFlagSet(right, ts.TypeFlags.Number | ts.TypeFlags.NumberLike)) || - (leftValueKinds.has(ts.TypeFlags.String) && - tsutils.isTypeFlagSet(right, ts.TypeFlags.String | ts.TypeFlags.StringLike))); -} -/** - * @returns What type a type's enum value is (number or string), if either. - */ -function getEnumValueType(type) { - return tsutils.isTypeFlagSet(type, ts.TypeFlags.EnumLike) - ? tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLiteral) - ? ts.TypeFlags.Number - : ts.TypeFlags.String - : undefined; -} -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-enum-comparison', - meta: { - hasSuggestions: true, - type: 'suggestion', - docs: { - description: 'Disallow comparing an enum value with a non-enum value', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - mismatchedCase: 'The case statement does not have a shared enum type with the switch predicate.', - mismatchedCondition: 'The two values in this comparison do not have a shared enum type.', - replaceValueWithEnum: 'Replace with an enum value comparison.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const parserServices = (0, util_1.getParserServices)(context); - const typeChecker = parserServices.program.getTypeChecker(); - function isMismatchedComparison(leftType, rightType) { - // Allow comparisons that don't have anything to do with enums: - // - // ```ts - // 1 === 2; - // ``` - const leftEnumTypes = (0, shared_1.getEnumTypes)(typeChecker, leftType); - const rightEnumTypes = new Set((0, shared_1.getEnumTypes)(typeChecker, rightType)); - if (leftEnumTypes.length === 0 && rightEnumTypes.size === 0) { - return false; - } - // Allow comparisons that share an enum type: - // - // ```ts - // Fruit.Apple === Fruit.Banana; - // ``` - for (const leftEnumType of leftEnumTypes) { - if (rightEnumTypes.has(leftEnumType)) { - return false; - } - } - const leftTypeParts = tsutils.unionTypeParts(leftType); - const rightTypeParts = tsutils.unionTypeParts(rightType); - // If a type exists in both sides, we consider this comparison safe: - // - // ```ts - // declare const fruit: Fruit.Apple | 0; - // fruit === 0; - // ``` - for (const leftTypePart of leftTypeParts) { - if (rightTypeParts.includes(leftTypePart)) { - return false; - } - } - return (typeViolates(leftTypeParts, rightType) || - typeViolates(rightTypeParts, leftType)); - } - return { - 'BinaryExpression[operator=/^[<>!=]?={0,2}$/]'(node) { - const leftType = parserServices.getTypeAtLocation(node.left); - const rightType = parserServices.getTypeAtLocation(node.right); - if (isMismatchedComparison(leftType, rightType)) { - context.report({ - messageId: 'mismatchedCondition', - node, - suggest: [ - { - messageId: 'replaceValueWithEnum', - fix(fixer) { - // Replace the right side with an enum key if possible: - // - // ```ts - // Fruit.Apple === 'apple'; // Fruit.Apple === Fruit.Apple - // ``` - const leftEnumKey = (0, shared_1.getEnumKeyForLiteral)((0, shared_1.getEnumLiterals)(leftType), (0, util_1.getStaticValue)(node.right)?.value); - if (leftEnumKey) { - return fixer.replaceText(node.right, leftEnumKey); - } - // Replace the left side with an enum key if possible: - // - // ```ts - // declare const fruit: Fruit; - // 'apple' === Fruit.Apple; // Fruit.Apple === Fruit.Apple - // ``` - const rightEnumKey = (0, shared_1.getEnumKeyForLiteral)((0, shared_1.getEnumLiterals)(rightType), (0, util_1.getStaticValue)(node.left)?.value); - if (rightEnumKey) { - return fixer.replaceText(node.left, rightEnumKey); - } - return null; - }, - }, - ], - }); - } - }, - SwitchCase(node) { - // Ignore `default` cases. - if (node.test == null) { - return; - } - const { parent } = node; - const leftType = parserServices.getTypeAtLocation(parent.discriminant); - const rightType = parserServices.getTypeAtLocation(node.test); - if (isMismatchedComparison(leftType, rightType)) { - context.report({ - messageId: 'mismatchedCase', - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-enum-comparison.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map deleted file mode 100644 index 9d72f33c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-enum-comparison.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-enum-comparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwE;AACxE,gDAI6B;AAE7B;;GAEG;AACH,SAAS,YAAY,CAAC,aAAwB,EAAE,KAAc;IAC5D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QACtC,OAAO,CAAC,aAAa,CACnB,KAAK,EACL,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC;QACJ,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;YACtC,OAAO,CAAC,aAAa,CACnB,KAAK,EACL,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC,CACL,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,IAAa;IACrC,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,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modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js deleted file mode 100644 index 84c60c03..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-function-type', - meta: { - type: 'problem', - docs: { - description: 'Disallow using the unsafe built-in Function type', - recommended: 'recommended', - }, - fixable: 'code', - messages: { - bannedFunctionType: [ - 'The `Function` type accepts any function-like value.', - 'Prefer explicitly defining any function parameters and return type.', - ].join('\n'), - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function checkBannedTypes(node) { - if (node.type === utils_1.AST_NODE_TYPES.Identifier && - node.name === 'Function' && - (0, util_1.isReferenceToGlobalFunction)('Function', node, context.sourceCode)) { - context.report({ - node, - messageId: 'bannedFunctionType', - }); - } - } - return { - TSClassImplements(node) { - checkBannedTypes(node.expression); - }, - TSInterfaceHeritage(node) { - checkBannedTypes(node.expression); - }, - TSTypeReference(node) { - checkBannedTypes(node.typeName); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-function-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map deleted file mode 100644 index c0c90904..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-function-type.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-function-type.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAkE;AAElE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,kBAAkB,EAAE;gBAClB,sDAAsD;gBACtD,qEAAqE;aACtE,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,gBAAgB,CAAC,IAAmB;YAC3C,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACvC,IAAI,CAAC,IAAI,KAAK,UAAU;gBACxB,IAAA,kCAA2B,EAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACjE,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,oBAAoB;iBAChC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpC,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js deleted file mode 100644 index 470b1e5a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -function createDataType(type) { - const isErrorType = tsutils.isIntrinsicErrorType(type); - return isErrorType ? '`error` typed' : '`any`'; -} -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-member-access', - meta: { - type: 'problem', - docs: { - description: 'Disallow member access on a value with type `any`', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unsafeMemberExpression: 'Unsafe member access {{property}} on an {{type}} value.', - unsafeThisMemberExpression: [ - 'Unsafe member access {{property}} on an `any` value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeComputedMemberAccess: 'Computed name {{property}} resolves to an {{type}} value.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const compilerOptions = services.program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - const stateCache = new Map(); - function checkMemberExpression(node) { - const cachedState = stateCache.get(node); - if (cachedState) { - return cachedState; - } - if (node.object.type === utils_1.AST_NODE_TYPES.MemberExpression) { - const objectState = checkMemberExpression(node.object); - if (objectState === 1 /* State.Unsafe */) { - // if the object is unsafe, we know this will be unsafe as well - // we don't need to report, as we have already reported on the inner member expr - stateCache.set(node, objectState); - return objectState; - } - } - const type = services.getTypeAtLocation(node.object); - const state = (0, util_1.isTypeAnyType)(type) ? 1 /* State.Unsafe */ : 2 /* State.Safe */; - stateCache.set(node, state); - if (state === 1 /* State.Unsafe */) { - const propertyName = context.sourceCode.getText(node.property); - let messageId = 'unsafeMemberExpression'; - if (!isNoImplicitThis) { - // `this.foo` or `this.foo[bar]` - const thisExpression = (0, util_1.getThisExpression)(node); - if (thisExpression && - (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { - messageId = 'unsafeThisMemberExpression'; - } - } - context.report({ - node: node.property, - messageId, - data: { - property: node.computed ? `[${propertyName}]` : `.${propertyName}`, - type: createDataType(type), - }, - }); - } - return state; - } - return { - // ignore MemberExpressions with ancestors of type `TSClassImplements` or `TSInterfaceHeritage` - 'MemberExpression:not(TSClassImplements MemberExpression, TSInterfaceHeritage MemberExpression)': checkMemberExpression, - 'MemberExpression[computed = true] > *.property'(node) { - if ( - // x[1] - node.type === utils_1.AST_NODE_TYPES.Literal || - // x[1++] x[++x] etc - // FUN FACT - **all** update expressions return type number, regardless of the argument's type, - // because JS engines return NaN if there the argument is not a number. - node.type === utils_1.AST_NODE_TYPES.UpdateExpression) { - // perf optimizations - literals can obviously never be `any` - return; - } - const type = services.getTypeAtLocation(node); - if ((0, util_1.isTypeAnyType)(type)) { - const propertyName = context.sourceCode.getText(node); - context.report({ - node, - messageId: 'unsafeComputedMemberAccess', - data: { - property: `[${propertyName}]`, - type: createDataType(type), - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-member-access.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map deleted file mode 100644 index 805fa022..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAMiB;AAOjB,SAAS,cAAc,CAAC,IAAa;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,sBAAsB,EACpB,yDAAyD;YAC3D,0BAA0B,EAAE;gBAC1B,gFAAgF;gBAChF,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,0BAA0B,EACxB,2DAA2D;SAC9D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,gBAAgB,GAAG,OAAO,CAAC,6BAA6B,CAC5D,eAAe,EACf,gBAAgB,CACjB,CAAC;QAEF,MAAM,UAA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BAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,QAAQ;oBACnB,SAAS;oBACT,IAAI,EAAE;wBACJ,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,IAAI,YAAY,EAAE;wBAClE,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;qBAC3B;iBACF,CAAC,CAAC;YACL,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,+FAA+F;YAC/F,gGAAgG,EAC9F,qBAAqB;YACvB,gDAAgD,CAC9C,IAAyB;gBAEzB;gBACE,OAAO;gBACP,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;oBACpC,oBAAoB;oBACpB,+FAA+F;oBAC/F,uEAAuE;oBACvE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC7C,CAAC;oBACD,6DAA6D;oBAC7D,OAAO;gBACT,CAAC;gBAED,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAE9C,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACtD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,QAAQ,EAAE,IAAI,YAAY,GAAG;4BAC7B,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;yBAC3B;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js deleted file mode 100644 index a943b6bc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +++ /dev/null @@ -1,190 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-unsafe-return', - meta: { - type: 'problem', - docs: { - description: 'Disallow returning a value with type `any` from a function', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unsafeReturn: 'Unsafe return of a value of type {{type}}.', - unsafeReturnThis: [ - 'Unsafe return of a value of type `{{type}}`. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeReturnAssignment: 'Unsafe return of type `{{sender}}` from function with return type `{{receiver}}`.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - function getParentFunctionNode(node) { - let current = node.parent; - while (current) { - if (current.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - current.type === utils_1.AST_NODE_TYPES.FunctionDeclaration || - current.type === utils_1.AST_NODE_TYPES.FunctionExpression) { - return current; - } - current = current.parent; - } - // this shouldn't happen in correct code, but someone may attempt to parse bad code - // the parser won't error, so we shouldn't throw here - /* istanbul ignore next */ return null; - } - function checkReturn(returnNode, reportingNode = returnNode) { - const tsNode = services.esTreeNodeToTSNodeMap.get(returnNode); - const type = checker.getTypeAtLocation(tsNode); - const anyType = (0, util_1.discriminateAnyType)(type, checker, services.program, tsNode); - const functionNode = getParentFunctionNode(returnNode); - /* istanbul ignore if */ if (!functionNode) { - return; - } - // function has an explicit return type, so ensure it's a safe return - const returnNodeType = (0, util_1.getConstrainedTypeAtLocation)(services, returnNode); - const functionTSNode = services.esTreeNodeToTSNodeMap.get(functionNode); - // function expressions will not have their return type modified based on receiver typing - // so we have to use the contextual typing in these cases, i.e. - // const foo1: () => Set = () => new Set(); - // the return type of the arrow function is Set even though the variable is typed as Set - let functionType = ts.isFunctionExpression(functionTSNode) || - ts.isArrowFunction(functionTSNode) - ? (0, util_1.getContextualType)(checker, functionTSNode) - : services.getTypeAtLocation(functionNode); - if (!functionType) { - functionType = services.getTypeAtLocation(functionNode); - } - const callSignatures = tsutils.getCallSignaturesOfType(functionType); - // If there is an explicit type annotation *and* that type matches the actual - // function return type, we shouldn't complain (it's intentional, even if unsafe) - if (functionTSNode.type) { - for (const signature of callSignatures) { - const signatureReturnType = signature.getReturnType(); - if (returnNodeType === signatureReturnType || - (0, util_1.isTypeFlagSet)(signatureReturnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return; - } - if (functionNode.async) { - const awaitedSignatureReturnType = checker.getAwaitedType(signatureReturnType); - const awaitedReturnNodeType = checker.getAwaitedType(returnNodeType); - if (awaitedReturnNodeType === awaitedSignatureReturnType || - (awaitedSignatureReturnType && - (0, util_1.isTypeFlagSet)(awaitedSignatureReturnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown))) { - return; - } - } - } - } - if (anyType !== util_1.AnyType.Safe) { - // Allow cases when the declared return type of the function is either unknown or unknown[] - // and the function is returning any or any[]. - for (const signature of callSignatures) { - const functionReturnType = signature.getReturnType(); - if (anyType === util_1.AnyType.Any && - (0, util_1.isTypeUnknownType)(functionReturnType)) { - return; - } - if (anyType === util_1.AnyType.AnyArray && - (0, util_1.isTypeUnknownArrayType)(functionReturnType, checker)) { - return; - } - const awaitedType = checker.getAwaitedType(functionReturnType); - if (awaitedType && - anyType === util_1.AnyType.PromiseAny && - (0, util_1.isTypeUnknownType)(awaitedType)) { - return; - } - } - if (anyType === util_1.AnyType.PromiseAny && !functionNode.async) { - return; - } - let messageId = 'unsafeReturn'; - const isErrorType = tsutils.isIntrinsicErrorType(returnNodeType); - if (!isNoImplicitThis) { - // `return this` - const thisExpression = (0, util_1.getThisExpression)(returnNode); - if (thisExpression && - (0, util_1.isTypeAnyType)((0, util_1.getConstrainedTypeAtLocation)(services, thisExpression))) { - messageId = 'unsafeReturnThis'; - } - } - // If the function return type was not unknown/unknown[], mark usage as unsafeReturn. - return context.report({ - node: reportingNode, - messageId, - data: { - type: isErrorType - ? 'error' - : anyType === util_1.AnyType.Any - ? '`any`' - : anyType === util_1.AnyType.PromiseAny - ? '`Promise`' - : '`any[]`', - }, - }); - } - const signature = functionType.getCallSignatures().at(0); - if (signature) { - const functionReturnType = signature.getReturnType(); - const result = (0, util_1.isUnsafeAssignment)(returnNodeType, functionReturnType, checker, returnNode); - if (!result) { - return; - } - const { sender, receiver } = result; - return context.report({ - node: reportingNode, - messageId: 'unsafeReturnAssignment', - data: { - sender: checker.typeToString(sender), - receiver: checker.typeToString(receiver), - }, - }); - } - } - return { - ReturnStatement(node) { - const argument = node.argument; - if (!argument) { - return; - } - checkReturn(argument, node); - }, - 'ArrowFunctionExpression > :not(BlockStatement).body': checkReturn, - }; - }, -}); -//# sourceMappingURL=no-unsafe-return.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map deleted file mode 100644 index b3a26626..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAaiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,4CAA4C;YAC1D,gBAAgB,EAAE;gBAChB,wEAAwE;gBACxE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,sBAAsB,EACpB,mFAAmF;SACtF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAClD,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,gBAAgB,GAAG,OAAO,CAAC,6BAA6B,CAC5D,eAAe,EACf,gBAAgB,CACjB,CAAC;QAEF,SAAS,qBAAqB,CAC5B,IAAmB;YAMnB,I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O;gCACT,CAAC,CAAC,OAAO,KAAK,cAAO,CAAC,UAAU;oCAC9B,CAAC,CAAC,gBAAgB;oCAClB,CAAC,CAAC,SAAS;qBAClB;iBACF,CAAC,CAAC;YACL,CAAC;YAED,MAAM,SAAS,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACzD,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,kBAAkB,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;gBACrD,MAAM,MAAM,GAAG,IAAA,yBAAkB,EAC/B,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,UAAU,CACX,CAAC;gBACF,IAAI,CAAC,MAAM,EAAE,CAAC;oBACZ,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;gBACpC,OAAO,OAAO,CAAC,MAAM,CAAC;oBACpB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE;wBACJ,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC;wBACpC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;qBACzC;iBACF,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;gBAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,OAAO;gBACT,CAAC;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,qDAAqD,EAAE,WAAW;SACnE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js deleted file mode 100644 index a4ad5598..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unsafe-unary-minus', - meta: { - type: 'problem', - docs: { - description: 'Require unary negation to take a number', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unaryMinus: 'Argument of unary negation should be assignable to number | bigint but is {{type}} instead.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - UnaryExpression(node) { - if (node.operator !== '-') { - return; - } - const services = util.getParserServices(context); - const argType = util.getConstrainedTypeAtLocation(services, node.argument); - const checker = services.program.getTypeChecker(); - if (tsutils - .unionTypeParts(argType) - .some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | - ts.TypeFlags.Never | - ts.TypeFlags.BigIntLike | - ts.TypeFlags.NumberLike))) { - context.report({ - messageId: 'unaryMinus', - node, - data: { type: checker.typeToString(argType) }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-unary-minus.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map deleted file mode 100644 index 7a8cb9c1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-unary-minus.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-unary-minus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,+CAAiC;AAEjC,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yCAAyC;YACtD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EACR,6FAA6F;SAChG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC;oBAC1B,OAAO;gBACT,CAAC;gBACD,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAM,OAAO,GAAG,IAAI,CAAC,4BAA4B,CAC/C,QAAQ,EACR,IAAI,CAAC,QAAQ,CACd,CAAC;gBACF,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBAClD,IACE,OAAO;qBACJ,cAAc,CAAC,OAAO,CAAC;qBACvB,IAAI,CACH,IAAI,CAAC,EAAE,CACL,CAAC,OAAO,CAAC,aAAa,CACpB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;oBACd,EAAE,CAAC,SAAS,CAAC,KAAK;oBAClB,EAAE,CAAC,SAAS,CAAC,UAAU;oBACvB,EAAE,CAAC,SAAS,CAAC,UAAU,CAC1B,CACJ,EACH,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,YAAY;wBACvB,IAAI;wBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;qBAC9C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js deleted file mode 100644 index a33c768e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-unused-expressions'); -exports.default = (0, util_1.createRule)({ - name: 'no-unused-expressions', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow unused expressions', - extendsBaseRule: true, - recommended: 'recommended', - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - allowShortCircuit: false, - allowTernary: false, - allowTaggedTemplates: false, - }, - ], - create(context, [{ allowShortCircuit = false, allowTernary = false }]) { - const rules = baseRule.create(context); - function isValidExpression(node) { - if (allowShortCircuit && node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - return isValidExpression(node.right); - } - if (allowTernary && node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - return (isValidExpression(node.alternate) && - isValidExpression(node.consequent)); - } - return ((node.type === utils_1.AST_NODE_TYPES.ChainExpression && - node.expression.type === utils_1.AST_NODE_TYPES.CallExpression) || - node.type === utils_1.AST_NODE_TYPES.ImportExpression); - } - return { - ExpressionStatement(node) { - if (node.directive || isValidExpression(node.expression)) { - return; - } - const expressionType = node.expression.type; - if (expressionType === - utils_1.TSESTree.AST_NODE_TYPES.TSInstantiationExpression || - expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSAsExpression || - expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSNonNullExpression || - expressionType === utils_1.TSESTree.AST_NODE_TYPES.TSTypeAssertion) { - rules.ExpressionStatement({ - ...node, - expression: node.expression.expression, - }); - return; - } - rules.ExpressionStatement(node); - }, - }; - }, -}); -//# sourceMappingURL=no-unused-expressions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map deleted file mode 100644 index 914c214d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unused-expressions.js","sourceRoot":"","sources":["../../src/rules/no-unused-expressions.ts"],"names":[],"mappings":";;AAAA,oDAAoE;AAMpE,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6BAA6B;YAC1C,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,aAAa;SAC3B;QACD,cAAc,EAAE,QAAQ,C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C,IACE,cAAc;oBACZ,gBAAQ,CAAC,cAAc,CAAC,yBAAyB;oBACnD,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,cAAc;oBACzD,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,mBAAmB;oBAC9D,cAAc,KAAK,gBAAQ,CAAC,cAAc,CAAC,eAAe,EAC1D,CAAC;oBACD,KAAK,CAAC,mBAAmB,CAAC;wBACxB,GAAG,IAAI;wBACP,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;qBACvC,CAAC,CAAC;oBACH,OAAO;gBACT,CAAC;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js deleted file mode 100644 index 39f8deb6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +++ /dev/null @@ -1,621 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const referenceContainsTypeQuery_1 = require("../util/referenceContainsTypeQuery"); -exports.default = (0, util_1.createRule)({ - name: 'no-unused-vars', - meta: { - type: 'problem', - docs: { - description: 'Disallow unused variables', - recommended: 'recommended', - extendsBaseRule: true, - }, - schema: [ - { - oneOf: [ - { - type: 'string', - enum: ['all', 'local'], - }, - { - type: 'object', - properties: { - vars: { - type: 'string', - enum: ['all', 'local'], - }, - varsIgnorePattern: { - type: 'string', - }, - args: { - type: 'string', - enum: ['all', 'after-used', 'none'], - }, - ignoreRestSiblings: { - type: 'boolean', - }, - argsIgnorePattern: { - type: 'string', - }, - caughtErrors: { - type: 'string', - enum: ['all', 'none'], - }, - caughtErrorsIgnorePattern: { - type: 'string', - }, - destructuredArrayIgnorePattern: { - type: 'string', - }, - ignoreClassWithStaticInitBlock: { - type: 'boolean', - }, - reportUsedIgnorePattern: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - ], - messages: { - unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.", - usedIgnoredVar: "'{{varName}}' is marked as ignored but is used{{additional}}.", - usedOnlyAsType: "'{{varName}}' is {{action}} but only used as a type{{additional}}.", - }, - }, - defaultOptions: [{}], - create(context, [firstOption]) { - const MODULE_DECL_CACHE = new Map(); - const options = (() => { - const options = { - vars: 'all', - args: 'after-used', - ignoreRestSiblings: false, - caughtErrors: 'all', - ignoreClassWithStaticInitBlock: false, - reportUsedIgnorePattern: false, - }; - if (typeof firstOption === 'string') { - options.vars = firstOption; - } - else { - options.vars = firstOption.vars ?? options.vars; - options.args = firstOption.args ?? options.args; - options.ignoreRestSiblings = - firstOption.ignoreRestSiblings ?? options.ignoreRestSiblings; - options.caughtErrors = firstOption.caughtErrors ?? options.caughtErrors; - options.ignoreClassWithStaticInitBlock = - firstOption.ignoreClassWithStaticInitBlock ?? - options.ignoreClassWithStaticInitBlock; - options.reportUsedIgnorePattern = - firstOption.reportUsedIgnorePattern ?? - options.reportUsedIgnorePattern; - if (firstOption.varsIgnorePattern) { - options.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern, 'u'); - } - if (firstOption.argsIgnorePattern) { - options.argsIgnorePattern = new RegExp(firstOption.argsIgnorePattern, 'u'); - } - if (firstOption.caughtErrorsIgnorePattern) { - options.caughtErrorsIgnorePattern = new RegExp(firstOption.caughtErrorsIgnorePattern, 'u'); - } - if (firstOption.destructuredArrayIgnorePattern) { - options.destructuredArrayIgnorePattern = new RegExp(firstOption.destructuredArrayIgnorePattern, 'u'); - } - } - return options; - })(); - /** - * Determines what variable type a def is. - * @param def the declaration to check - * @returns a simple name for the types of variables that this rule supports - */ - function defToVariableType(def) { - /* - * This `destructuredArrayIgnorePattern` error report works differently from the catch - * clause and parameter error reports. _Both_ the `varsIgnorePattern` and the - * `destructuredArrayIgnorePattern` will be checked for array destructuring. However, - * for the purposes of the report, the currently defined behavior is to only inform the - * user of the `destructuredArrayIgnorePattern` if it's present (regardless of the fact - * that the `varsIgnorePattern` would also apply). If it's not present, the user will be - * informed of the `varsIgnorePattern`, assuming that's present. - */ - if (options.destructuredArrayIgnorePattern && - def.name.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - return 'array-destructure'; - } - switch (def.type) { - case scope_manager_1.DefinitionType.CatchClause: - return 'catch-clause'; - case scope_manager_1.DefinitionType.Parameter: - return 'parameter'; - default: - return 'variable'; - } - } - /** - * Gets a given variable's description and configured ignore pattern - * based on the provided variableType - * @param variableType a simple name for the types of variables that this rule supports - * @returns the given variable's description and - * ignore pattern - */ - function getVariableDescription(variableType) { - switch (variableType) { - case 'array-destructure': - return { - pattern: options.destructuredArrayIgnorePattern?.toString(), - variableDescription: 'elements of array destructuring', - }; - case 'catch-clause': - return { - pattern: options.caughtErrorsIgnorePattern?.toString(), - variableDescription: 'caught errors', - }; - case 'parameter': - return { - pattern: options.argsIgnorePattern?.toString(), - variableDescription: 'args', - }; - case 'variable': - return { - pattern: options.varsIgnorePattern?.toString(), - variableDescription: 'vars', - }; - } - } - /** - * Generates the message data about the variable being defined and unused, - * including the ignore pattern if configured. - * @param unusedVar eslint-scope variable object. - * @returns The message data to be used with this unused variable. - */ - function getDefinedMessageData(unusedVar) { - const def = unusedVar.defs.at(0); - let additionalMessageData = ''; - if (def) { - const { variableDescription, pattern } = getVariableDescription(defToVariableType(def)); - if (pattern && variableDescription) { - additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; - } - } - return { - varName: unusedVar.name, - action: 'defined', - additional: additionalMessageData, - }; - } - /** - * Generate the warning message about the variable being - * assigned and unused, including the ignore pattern if configured. - * @param unusedVar eslint-scope variable object. - * @returns The message data to be used with this unused variable. - */ - function getAssignedMessageData(unusedVar) { - const def = unusedVar.defs.at(0); - let additionalMessageData = ''; - if (def) { - const { variableDescription, pattern } = getVariableDescription(defToVariableType(def)); - if (pattern && variableDescription) { - additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; - } - } - return { - varName: unusedVar.name, - action: 'assigned a value', - additional: additionalMessageData, - }; - } - /** - * Generate the warning message about a variable being used even though - * it is marked as being ignored. - * @param variable eslint-scope variable object - * @param variableType a simple name for the types of variables that this rule supports - * @returns The message data to be used with this used ignored variable. - */ - function getUsedIgnoredMessageData(variable, variableType) { - const { variableDescription, pattern } = getVariableDescription(variableType); - let additionalMessageData = ''; - if (pattern && variableDescription) { - additionalMessageData = `. Used ${variableDescription} must not match ${pattern}`; - } - return { - varName: variable.name, - additional: additionalMessageData, - }; - } - function collectUnusedVariables() { - /** - * Checks whether a node is a sibling of the rest property or not. - * @param node a node to check - * @returns True if the node is a sibling of the rest property, otherwise false. - */ - function hasRestSibling(node) { - return (node.type === utils_1.AST_NODE_TYPES.Property && - node.parent.type === utils_1.AST_NODE_TYPES.ObjectPattern && - node.parent.properties[node.parent.properties.length - 1].type === - utils_1.AST_NODE_TYPES.RestElement); - } - /** - * Determines if a variable has a sibling rest property - * @param variable eslint-scope variable object. - * @returns True if the variable is exported, false if not. - */ - function hasRestSpreadSibling(variable) { - if (options.ignoreRestSiblings) { - const hasRestSiblingDefinition = variable.defs.some(def => hasRestSibling(def.name.parent)); - const hasRestSiblingReference = variable.references.some(ref => hasRestSibling(ref.identifier.parent)); - return hasRestSiblingDefinition || hasRestSiblingReference; - } - return false; - } - /** - * Checks whether the given variable is after the last used parameter. - * @param variable The variable to check. - * @returns `true` if the variable is defined after the last used parameter. - */ - function isAfterLastUsedArg(variable) { - const def = variable.defs[0]; - const params = context.sourceCode.getDeclaredVariables(def.node); - const posteriorParams = params.slice(params.indexOf(variable) + 1); - // If any used parameters occur after this parameter, do not report. - return !posteriorParams.some(v => v.references.length > 0 || v.eslintUsed); - } - const analysisResults = (0, util_1.collectVariables)(context); - const variables = [ - ...Array.from(analysisResults.unusedVariables, variable => ({ - used: false, - variable, - })), - ...Array.from(analysisResults.usedVariables, variable => ({ - used: true, - variable, - })), - ]; - const unusedVariablesReturn = []; - for (const { used, variable } of variables) { - // explicit global variables don't have definitions. - if (variable.defs.length === 0) { - if (!used) { - unusedVariablesReturn.push(variable); - } - continue; - } - const def = variable.defs[0]; - if (variable.scope.type === utils_1.TSESLint.Scope.ScopeType.global && - options.vars === 'local') { - // skip variables in the global scope if configured to - continue; - } - const refUsedInArrayPatterns = variable.references.some(ref => ref.identifier.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern); - // skip elements of array destructuring patterns - if ((def.name.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern || - refUsedInArrayPatterns) && - def.name.type === utils_1.AST_NODE_TYPES.Identifier && - options.destructuredArrayIgnorePattern?.test(def.name.name)) { - if (options.reportUsedIgnorePattern && used) { - context.report({ - node: def.name, - messageId: 'usedIgnoredVar', - data: getUsedIgnoredMessageData(variable, 'array-destructure'), - }); - } - continue; - } - if (def.type === utils_1.TSESLint.Scope.DefinitionType.ClassName) { - const hasStaticBlock = def.node.body.body.some(node => node.type === utils_1.AST_NODE_TYPES.StaticBlock); - if (options.ignoreClassWithStaticInitBlock && hasStaticBlock) { - continue; - } - } - // skip catch variables - if (def.type === utils_1.TSESLint.Scope.DefinitionType.CatchClause) { - if (options.caughtErrors === 'none') { - continue; - } - // skip ignored parameters - if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && - options.caughtErrorsIgnorePattern?.test(def.name.name)) { - if (options.reportUsedIgnorePattern && used) { - context.report({ - node: def.name, - messageId: 'usedIgnoredVar', - data: getUsedIgnoredMessageData(variable, 'catch-clause'), - }); - } - continue; - } - } - else if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - // if "args" option is "none", skip any parameter - if (options.args === 'none') { - continue; - } - // skip ignored parameters - if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && - options.argsIgnorePattern?.test(def.name.name)) { - if (options.reportUsedIgnorePattern && used) { - context.report({ - node: def.name, - messageId: 'usedIgnoredVar', - data: getUsedIgnoredMessageData(variable, 'parameter'), - }); - } - continue; - } - // if "args" option is "after-used", skip used variables - if (options.args === 'after-used' && - (0, util_1.isFunction)(def.name.parent) && - !isAfterLastUsedArg(variable)) { - continue; - } - } - // skip ignored variables - else if (def.name.type === utils_1.AST_NODE_TYPES.Identifier && - options.varsIgnorePattern?.test(def.name.name)) { - if (options.reportUsedIgnorePattern && used) { - context.report({ - node: def.name, - messageId: 'usedIgnoredVar', - data: getUsedIgnoredMessageData(variable, 'variable'), - }); - } - continue; - } - if (hasRestSpreadSibling(variable)) { - continue; - } - // in case another rule has run and used the collectUnusedVariables, - // we want to ensure our selectors that marked variables as used are respected - if (variable.eslintUsed) { - continue; - } - if (!used) { - unusedVariablesReturn.push(variable); - } - } - return unusedVariablesReturn; - } - return { - // declaration file handling - [ambientDeclarationSelector(utils_1.AST_NODE_TYPES.Program, true)](node) { - if (!(0, util_1.isDefinitionFile)(context.filename)) { - return; - } - markDeclarationChildAsUsed(node); - }, - // children of a namespace that is a child of a declared namespace are auto-exported - [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock', false)](node) { - markDeclarationChildAsUsed(node); - }, - // declared namespace handling - [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock', false)](node) { - const moduleDecl = (0, util_1.nullThrows)(node.parent.parent, util_1.NullThrowsReasons.MissingParent); - // declared ambient modules with an `export =` statement will only export that one thing - // all other statements are not automatically exported in this case - if (moduleDecl.id.type === utils_1.AST_NODE_TYPES.Literal && - checkModuleDeclForExportEquals(moduleDecl)) { - return; - } - markDeclarationChildAsUsed(node); - }, - // collect - 'Program:exit'(programNode) { - const unusedVars = collectUnusedVariables(); - for (const unusedVar of unusedVars) { - // Report the first declaration. - if (unusedVar.defs.length > 0) { - const usedOnlyAsType = unusedVar.references.some(ref => (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(ref.identifier)); - const isImportUsedOnlyAsType = usedOnlyAsType && - unusedVar.defs.some(def => def.type === scope_manager_1.DefinitionType.ImportBinding); - if (isImportUsedOnlyAsType) { - continue; - } - const writeReferences = unusedVar.references.filter(ref => ref.isWrite() && - ref.from.variableScope === unusedVar.scope.variableScope); - const id = writeReferences.length - ? writeReferences[writeReferences.length - 1].identifier - : unusedVar.identifiers[0]; - const messageId = usedOnlyAsType ? 'usedOnlyAsType' : 'unusedVar'; - const { start } = id.loc; - const idLength = id.name.length; - const loc = { - start, - end: { - line: start.line, - column: start.column + idLength, - }, - }; - context.report({ - loc, - messageId, - data: unusedVar.references.some(ref => ref.isWrite()) - ? getAssignedMessageData(unusedVar) - : getDefinedMessageData(unusedVar), - }); - // If there are no regular declaration, report the first `/*globals*/` comment directive. - } - else if ('eslintExplicitGlobalComments' in unusedVar && - unusedVar.eslintExplicitGlobalComments) { - const directiveComment = unusedVar.eslintExplicitGlobalComments[0]; - context.report({ - node: programNode, - loc: (0, util_1.getNameLocationInGlobalDirectiveComment)(context.sourceCode, directiveComment, unusedVar.name), - messageId: 'unusedVar', - data: getDefinedMessageData(unusedVar), - }); - } - } - }, - }; - function checkModuleDeclForExportEquals(node) { - const cached = MODULE_DECL_CACHE.get(node); - if (cached != null) { - return cached; - } - if (node.body) { - for (const statement of node.body.body) { - if (statement.type === utils_1.AST_NODE_TYPES.TSExportAssignment) { - MODULE_DECL_CACHE.set(node, true); - return true; - } - } - } - MODULE_DECL_CACHE.set(node, false); - return false; - } - function ambientDeclarationSelector(parent, childDeclare) { - return [ - // Types are ambiently exported - `${parent} > :matches(${[ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - ].join(', ')})`, - // Value things are ambiently exported if they are "declare"d - `${parent} > :matches(${[ - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSEnumDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.VariableDeclaration, - ].join(', ')})${childDeclare ? '[declare = true]' : ''}`, - ].join(', '); - } - function markDeclarationChildAsUsed(node) { - const identifiers = []; - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSInterfaceDeclaration: - case utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration: - case utils_1.AST_NODE_TYPES.ClassDeclaration: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - case utils_1.AST_NODE_TYPES.TSDeclareFunction: - case utils_1.AST_NODE_TYPES.TSEnumDeclaration: - case utils_1.AST_NODE_TYPES.TSModuleDeclaration: - if (node.id?.type === utils_1.AST_NODE_TYPES.Identifier) { - identifiers.push(node.id); - } - break; - case utils_1.AST_NODE_TYPES.VariableDeclaration: - for (const declaration of node.declarations) { - visitPattern(declaration, pattern => { - identifiers.push(pattern); - }); - } - break; - } - let scope = context.sourceCode.getScope(node); - const shouldUseUpperScope = [ - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - ].includes(node.type); - if (scope.variableScope !== scope) { - scope = scope.variableScope; - } - else if (shouldUseUpperScope && scope.upper) { - scope = scope.upper; - } - for (const id of identifiers) { - const superVar = scope.set.get(id.name); - if (superVar) { - superVar.eslintUsed = true; - } - } - } - function visitPattern(node, cb) { - const visitor = new scope_manager_1.PatternVisitor({}, node, cb); - visitor.visit(node); - } - }, -}); -/* - -###### TODO ###### - -Edge cases that aren't currently handled due to laziness and them being super edgy edge cases - - ---- function params referenced in typeof type refs in the function declaration --- ---- NOTE - TS gets these cases wrong - -function _foo( - arg: number // arg should be unused -): typeof arg { - return 1 as any; -} - -function _bar( - arg: number, // arg should be unused - _arg2: typeof arg, -) {} - - ---- function names referenced in typeof type refs in the function declaration --- ---- NOTE - TS gets these cases right - -function foo( // foo should be unused -): typeof foo { - return 1 as any; -} - -function bar( // bar should be unused - _arg: typeof bar -) {} - - ---- if an interface is merged into a namespace --- ---- NOTE - TS gets these cases wrong - -namespace Test { - interface Foo { // Foo should be unused here - a: string; - } - export namespace Foo { - export type T = 'b'; - } -} -type T = Test.Foo; // Error: Namespace 'Test' has no exported member 'Foo'. - - -namespace Test { - export interface Foo { - a: string; - } - namespace Foo { // Foo should be unused here - export type T = 'b'; - } -} -type T = Test.Foo.T; // Error: Namespace 'Test' has no exported member 'Foo'. - ---- - -These cases are mishandled because the base rule assumes that each variable has one def, but type-value shadowing -creates a variable with two defs - ---- type-only or value-only references to type/value shadowed variables --- ---- NOTE - TS gets these cases wrong - -type T = 1; -const T = 2; // this T should be unused - -type U = T; // this U should be unused -const U = 3; - -const _V = U; - - ---- partially exported type/value shadowed variables --- ---- NOTE - TS gets these cases wrong - -export interface Foo {} -const Foo = 1; // this Foo should be unused - -interface Bar {} // this Bar should be unused -export const Bar = 1; - -*/ -//# sourceMappingURL=no-unused-vars.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map deleted file mode 100644 index 2778bc25..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unused-vars.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars.ts"],"names":[],"mappings":";;AAIA,oEAG0C;AAE1C,oDAAoE;AAEpE,kCAQiB;AACjB,mFAAgF;AAuChF,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2BAA2B;YACxC,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;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AK,CAAC,aAAa,KAAK,KAAK,EAAE,CAAC;gBAClC,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC;YAC9B,CAAC;iBAAM,IAAI,mBAAmB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;gBAC9C,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACtB,CAAC;YAED,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE,CAAC;gBAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,QAAQ,EAAE,CAAC;oBACb,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;gBAC7B,CAAC;YACH,CAAC;QACH,CAAC;QAED,SAAS,YAAY,CACnB,IAAmB,EACnB,EAAuC;YAEvC,MAAM,OAAO,GAAG,IAAI,8BAAc,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFE"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js deleted file mode 100644 index 3930b764..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +++ /dev/null @@ -1,282 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const referenceContainsTypeQuery_1 = require("../util/referenceContainsTypeQuery"); -const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/; -/** - * Parses a given value as options. - */ -function parseOptions(options) { - let functions = true; - let classes = true; - let enums = true; - let variables = true; - let typedefs = true; - let ignoreTypeReferences = true; - let allowNamedExports = false; - if (typeof options === 'string') { - functions = options !== 'nofunc'; - } - else if (typeof options === 'object' && options != null) { - functions = options.functions !== false; - classes = options.classes !== false; - enums = options.enums !== false; - variables = options.variables !== false; - typedefs = options.typedefs !== false; - ignoreTypeReferences = options.ignoreTypeReferences !== false; - allowNamedExports = options.allowNamedExports !== false; - } - return { - functions, - classes, - enums, - variables, - typedefs, - ignoreTypeReferences, - allowNamedExports, - }; -} -/** - * Checks whether or not a given variable is a function declaration. - */ -function isFunction(variable) { - return variable.defs[0].type === scope_manager_1.DefinitionType.FunctionName; -} -/** - * Checks whether or not a given variable is a type declaration. - */ -function isTypedef(variable) { - return variable.defs[0].type === scope_manager_1.DefinitionType.Type; -} -/** - * Checks whether or not a given variable is a enum declaration. - */ -function isOuterEnum(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.TSEnumName && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given variable is a class declaration in an upper function scope. - */ -function isOuterClass(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.ClassName && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given variable is a variable declaration in an upper function scope. - */ -function isOuterVariable(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.Variable && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given reference is a export reference. - */ -function isNamedExports(reference) { - const { identifier } = reference; - return (identifier.parent.type === utils_1.AST_NODE_TYPES.ExportSpecifier && - identifier.parent.local === identifier); -} -/** - * Checks whether or not a given reference is a type reference. - */ -function isTypeReference(reference) { - return (reference.isTypeReference || - (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(reference.identifier)); -} -/** - * Checks whether or not a given location is inside of the range of a given node. - */ -function isInRange(node, location) { - return !!node && node.range[0] <= location && location <= node.range[1]; -} -/** - * Decorators are transpiled such that the decorator is placed after the class declaration - * So it is considered safe - */ -function isClassRefInClassDecorator(variable, reference) { - if (variable.defs[0].type !== scope_manager_1.DefinitionType.ClassName || - variable.defs[0].node.decorators.length === 0) { - return false; - } - for (const deco of variable.defs[0].node.decorators) { - if (reference.identifier.range[0] >= deco.range[0] && - reference.identifier.range[1] <= deco.range[1]) { - return true; - } - } - return false; -} -/** - * Checks whether or not a given reference is inside of the initializers of a given variable. - * - * @returns `true` in the following cases: - * - var a = a - * - var [a = a] = list - * - var {a = a} = obj - * - for (var a in a) {} - * - for (var a of a) {} - */ -function isInInitializer(variable, reference) { - if (variable.scope !== reference.from) { - return false; - } - let node = variable.identifiers[0].parent; - const location = reference.identifier.range[1]; - while (node) { - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - if (isInRange(node.init, location)) { - return true; - } - if ((node.parent.parent.type === utils_1.AST_NODE_TYPES.ForInStatement || - node.parent.parent.type === utils_1.AST_NODE_TYPES.ForOfStatement) && - isInRange(node.parent.parent.right, location)) { - return true; - } - break; - } - else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - if (isInRange(node.right, location)) { - return true; - } - } - else if (SENTINEL_TYPE.test(node.type)) { - break; - } - node = node.parent; - } - return false; -} -exports.default = (0, util_1.createRule)({ - name: 'no-use-before-define', - meta: { - type: 'problem', - docs: { - description: 'Disallow the use of variables before they are defined', - extendsBaseRule: true, - }, - messages: { - noUseBeforeDefine: "'{{name}}' was used before it was defined.", - }, - schema: [ - { - oneOf: [ - { - type: 'string', - enum: ['nofunc'], - }, - { - type: 'object', - properties: { - functions: { type: 'boolean' }, - classes: { type: 'boolean' }, - enums: { type: 'boolean' }, - variables: { type: 'boolean' }, - typedefs: { type: 'boolean' }, - ignoreTypeReferences: { type: 'boolean' }, - allowNamedExports: { type: 'boolean' }, - }, - additionalProperties: false, - }, - ], - }, - ], - }, - defaultOptions: [ - { - functions: true, - classes: true, - enums: true, - variables: true, - typedefs: true, - ignoreTypeReferences: true, - allowNamedExports: false, - }, - ], - create(context, optionsWithDefault) { - const options = parseOptions(optionsWithDefault[0]); - /** - * Determines whether a given use-before-define case should be reported according to the options. - * @param variable The variable that gets used before being defined - * @param reference The reference to the variable - */ - function isForbidden(variable, reference) { - if (options.ignoreTypeReferences && isTypeReference(reference)) { - return false; - } - if (isFunction(variable)) { - return options.functions; - } - if (isOuterClass(variable, reference)) { - return options.classes; - } - if (isOuterVariable(variable, reference)) { - return options.variables; - } - if (isOuterEnum(variable, reference)) { - return options.enums; - } - if (isTypedef(variable)) { - return options.typedefs; - } - return true; - } - function isDefinedBeforeUse(variable, reference) { - return (variable.identifiers[0].range[1] <= reference.identifier.range[1] && - !(reference.isValueReference && isInInitializer(variable, reference))); - } - /** - * Finds and validates all variables in a given scope. - */ - function findVariablesInScope(scope) { - scope.references.forEach(reference => { - const variable = reference.resolved; - function report() { - context.report({ - node: reference.identifier, - messageId: 'noUseBeforeDefine', - data: { - name: reference.identifier.name, - }, - }); - } - // Skips when the reference is: - // - initializations. - // - referring to an undefined variable. - // - referring to a global environment variable (there're no identifiers). - // - located preceded by the variable (except in initializers). - // - allowed by options. - if (reference.init) { - return; - } - if (!options.allowNamedExports && isNamedExports(reference)) { - if (!variable || !isDefinedBeforeUse(variable, reference)) { - report(); - } - return; - } - if (!variable) { - return; - } - if (variable.identifiers.length === 0 || - isDefinedBeforeUse(variable, reference) || - !isForbidden(variable, reference) || - isClassRefInClassDecorator(variable, reference) || - reference.from.type === utils_1.TSESLint.Scope.ScopeType.functionType) { - return; - } - // Reports. - report(); - }); - scope.childScopes.forEach(findVariablesInScope); - } - return { - Program(node) { - findVariablesInScope(context.sourceCode.getScope(node)); - }, - }; - }, -}); -//# sourceMappingURL=no-use-before-define.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map deleted file mode 100644 index f088b0b1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-use-before-define.js","sourceRoot":"","sources":["../../src/rules/no-use-before-define.ts"],"names":[],"mappings":";;AAAA,oEAAkE;AAElE,oDAAoE;AAEpE,kCAAqC;AACrC,mFAAgF;AAEhF,MAAM,aAAa,GACjB,iIAAiI,CAAC;AAEpI;;GAEG;AACH,SAAS,YAAY,CAAC,OAA+B;IACnD,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,IAAI,oBAAoB,GAAG,IAAI,CAAC;IAChC,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAE9B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,SAAS,GAAG,OAAO,KAAK,QAAQ,CAAC;IACnC,CAAC;SAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QAC1D,SAAS,GAAG,OAAO,CAAC,SAAS,KAAK,KAAK,CAAC;QACxC,OAAO,GAAG,OAAO,CAAC,OAAO,KAAK,KAAK,CAAC;QACpC,KAAK,GAAG,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC;QAChC,SAAS,GAAG,OAAO,CAAC,SAAS,KAAK,KAAK,CAAC;QACxC,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,KAAK,CAAC;QACtC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,KAAK,KAAK,CAAC;QAC9D,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,KAAK,KAAK,CAAC;IAC1D,CAAC;IAED,OA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qBACF,CAAC,CAAC;gBACL,CAAC;gBAED,+BAA+B;gBAC/B,qBAAqB;gBACrB,wCAAwC;gBACxC,0EAA0E;gBAC1E,+DAA+D;gBAC/D,wBAAwB;gBACxB,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;oBACnB,OAAO;gBACT,CAAC;gBAED,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC5D,IAAI,CAAC,QAAQ,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;wBAC1D,MAAM,EAAE,CAAC;oBACX,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,OAAO;gBACT,CAAC;gBAED,IACE,QAAQ,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;oBACjC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACvC,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACjC,0BAA0B,CAAC,QAAQ,EAAE,SAAS,CAAC;oBAC/C,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,EAC7D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,WAAW;gBACX,MAAM,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClD,CAAC;QAED,OAAO;YACL,OAAO,CAAC,IAAI;gBACV,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js deleted file mode 100644 index 4e3e35c8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-useless-constructor'); -/** - * Check if method with accessibility is not useless - */ -function checkAccessibility(node) { - switch (node.accessibility) { - case 'protected': - case 'private': - return false; - case 'public': - if (node.parent.parent.superClass) { - return false; - } - break; - } - return true; -} -/** - * Check if method is not useless due to typescript parameter properties and decorators - */ -function checkParams(node) { - return !node.value.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty || - param.decorators.length); -} -exports.default = (0, util_1.createRule)({ - name: 'no-useless-constructor', - meta: { - type: 'problem', - docs: { - description: 'Disallow unnecessary constructors', - recommended: 'strict', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - return { - MethodDefinition(node) { - if (node.value.type === utils_1.AST_NODE_TYPES.FunctionExpression && - checkAccessibility(node) && - checkParams(node)) { - rules.MethodDefinition(node); - } - }, - }; - }, -}); -//# sourceMappingURL=no-useless-constructor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map deleted file mode 100644 index 976c37ba..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-useless-constructor.js","sourceRoot":"","sources":["../../src/rules/no-useless-constructor.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D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AC,kBAAkB;oBACrD,kBAAkB,CAAC,IAAI,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,EACjB,CAAC;oBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js deleted file mode 100644 index 2aff12af..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -function isEmptyExport(node) { - return (node.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && - node.specifiers.length === 0 && - !node.declaration); -} -const exportOrImportNodeTypes = new Set([ - utils_1.AST_NODE_TYPES.ExportAllDeclaration, - utils_1.AST_NODE_TYPES.ExportDefaultDeclaration, - utils_1.AST_NODE_TYPES.ExportNamedDeclaration, - utils_1.AST_NODE_TYPES.ExportSpecifier, - utils_1.AST_NODE_TYPES.ImportDeclaration, - utils_1.AST_NODE_TYPES.TSExportAssignment, - utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration, -]); -exports.default = (0, util_1.createRule)({ - name: 'no-useless-empty-export', - meta: { - docs: { - description: "Disallow empty exports that don't change anything in a module file", - }, - fixable: 'code', - hasSuggestions: false, - messages: { - uselessExport: 'Empty export does nothing and can be removed.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - // In a definition file, export {} is necessary to make the module properly - // encapsulated, even when there are other exports - // https://github.com/typescript-eslint/typescript-eslint/issues/4975 - if ((0, util_1.isDefinitionFile)(context.filename)) { - return {}; - } - function checkNode(node) { - if (!Array.isArray(node.body)) { - return; - } - const emptyExports = []; - let foundOtherExport = false; - for (const statement of node.body) { - if (isEmptyExport(statement)) { - emptyExports.push(statement); - } - else if (exportOrImportNodeTypes.has(statement.type)) { - foundOtherExport = true; - } - } - if (foundOtherExport) { - for (const emptyExport of emptyExports) { - context.report({ - fix: fixer => fixer.remove(emptyExport), - messageId: 'uselessExport', - node: emptyExport, - }); - } - } - } - return { - Program: checkNode, - TSModuleDeclaration: checkNode, - }; - }, -}); -//# sourceMappingURL=no-useless-empty-export.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map deleted file mode 100644 index 42d26ebb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-useless-empty-export.js","sourceRoot":"","sources":["../../src/rules/no-useless-empty-export.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAuD;AAEvD,SAAS,aAAa,CACpB,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;QACnD,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,IAAI,CAAC,WAAW,CAClB,CAAC;AACJ,CAAC;AAED,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,sBAAc,CAAC,oBAAoB;IACnC,sBAAc,CAAC,wBAAwB;IACvC,sBAAc,CAAC,sBAAsB;IACrC,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,iBAAiB;IAChC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,yBAAyB;CACzC,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,oEAAo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C/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js deleted file mode 100644 index e76f54dc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'no-var-requires', - meta: { - deprecated: true, - replacedBy: ['@typescript-eslint/no-require-imports'], - type: 'problem', - docs: { - description: 'Disallow `require` statements except in import statements', - }, - messages: { - noVarReqs: 'Require statement not part of import statement.', - }, - schema: [ - { - type: 'object', - properties: { - allow: { - type: 'array', - items: { type: 'string' }, - description: 'Patterns of import paths to allow requiring from.', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{ allow: [] }], - create(context, options) { - const allowPatterns = options[0].allow.map(pattern => new RegExp(pattern, 'u')); - function isImportPathAllowed(importPath) { - return allowPatterns.some(pattern => importPath.match(pattern)); - } - function isStringOrTemplateLiteral(node) { - return ((node.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.value === 'string') || - node.type === utils_1.AST_NODE_TYPES.TemplateLiteral); - } - return { - 'CallExpression[callee.name="require"]'(node) { - if (node.arguments[0] && isStringOrTemplateLiteral(node.arguments[0])) { - const argValue = (0, util_1.getStaticStringValue)(node.arguments[0]); - if (typeof argValue === 'string' && isImportPathAllowed(argValue)) { - return; - } - } - const parent = node.parent.type === utils_1.AST_NODE_TYPES.ChainExpression - ? node.parent.parent - : node.parent; - if ([ - utils_1.AST_NODE_TYPES.CallExpression, - utils_1.AST_NODE_TYPES.MemberExpression, - utils_1.AST_NODE_TYPES.NewExpression, - utils_1.AST_NODE_TYPES.TSAsExpression, - utils_1.AST_NODE_TYPES.TSTypeAssertion, - utils_1.AST_NODE_TYPES.VariableDeclarator, - ].includes(parent.type)) { - const variable = utils_1.ASTUtils.findVariable(context.sourceCode.getScope(node), 'require'); - if (!variable?.identifiers.length) { - context.report({ - node, - messageId: 'noVarReqs', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-var-requires.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map deleted file mode 100644 index 3913ca0d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-var-requires.js","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":";;AACA,oDAAoE;AAEpE,kCAA2D;AAS3D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,uCAAuC,CAAC;QACrD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;SACzE;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,iDAAiD;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACzB,WAAW,EAAE,mDAAmD;qBACjE;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO;QACrB,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CACxC,OAAO,CAA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vB,CAAC;oBACD,MAAM,QAAQ,GAAG,gBAAQ,CAAC,YAAY,CACpC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EACjC,SAAS,CACV,CAAC;oBAEF,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;wBAClC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,WAAW;yBACvB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js deleted file mode 100644 index de1e7e10..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const classNames = new Set([ - 'BigInt', - // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum - 'Boolean', - 'Number', - 'Object', - // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum - 'String', - 'Symbol', -]); -exports.default = (0, util_1.createRule)({ - name: 'no-wrapper-object-types', - meta: { - type: 'problem', - docs: { - description: 'Disallow using confusing built-in primitive class wrappers', - recommended: 'recommended', - }, - fixable: 'code', - messages: { - bannedClassType: 'Prefer using the primitive `{{preferred}}` as a type name, rather than the upper-cased `{{typeName}}`.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function checkBannedTypes(node, includeFix) { - const typeName = node.type === utils_1.AST_NODE_TYPES.Identifier && node.name; - if (!typeName || - !classNames.has(typeName) || - !(0, util_1.isReferenceToGlobalFunction)(typeName, node, context.sourceCode)) { - return; - } - const preferred = typeName.toLowerCase(); - context.report({ - data: { typeName, preferred }, - fix: includeFix - ? (fixer) => fixer.replaceText(node, preferred) - : undefined, - messageId: 'bannedClassType', - node, - }); - } - return { - TSClassImplements(node) { - checkBannedTypes(node.expression, false); - }, - TSInterfaceHeritage(node) { - checkBannedTypes(node.expression, false); - }, - TSTypeReference(node) { - checkBannedTypes(node.typeName, true); - }, - }; - }, -}); -//# sourceMappingURL=no-wrapper-object-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map deleted file mode 100644 index 9d8661e0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-wrapper-object-types.js","sourceRoot":"","sources":["../../src/rules/no-wrapper-object-types.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAkE;AAElE,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,QAAQ;IACR,6EAA6E;IAC7E,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,6EAA6E;IAC7E,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,eAAe,EACb,wGAAwG;SAC3G;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,gBAAgB,CACvB,IAA+C,EAC/C,UAAmB;YAEnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC;YACtE,IACE,CAAC,QAAQ;gBACT,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC;gBACzB,CAAC,IAAA,kCAA2B,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EAChE,CAAC;gBACD,OAAO;YACT,CAAC;YAED,MAAM,SAAS,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;YAEzC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;gBAC7B,GAAG,EAAE,UAAU;oBACb,CAAC,CAAC,CAAC,KAAK,EAAoB,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC;oBACjE,CAAC,CAAC,SAAS;gBACb,SAAS,EAAE,iBAAiB;gBAC5B,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB,CAAC,IAAI;gBACpB,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC3C,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC3C,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACxC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js deleted file mode 100644 index 694e6f5f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'non-nullable-type-assertion-style', - meta: { - docs: { - description: 'Enforce non-null assertions over explicit type casts', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferNonNullAssertion: 'Use a ! assertion to more succinctly remove null and undefined from the type.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const getTypesIfNotLoose = (node) => { - const type = services.getTypeAtLocation(node); - if (tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return undefined; - } - return tsutils.unionTypeParts(type); - }; - const couldBeNullish = (type) => { - if (type.flags & ts.TypeFlags.TypeParameter) { - const constraint = type.getConstraint(); - return constraint == null || couldBeNullish(constraint); - } - else if (tsutils.isUnionType(type)) { - for (const part of type.types) { - if (couldBeNullish(part)) { - return true; - } - } - return false; - } - return (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0; - }; - const sameTypeWithoutNullish = (assertedTypes, originalTypes) => { - const nonNullishOriginalTypes = originalTypes.filter(type => (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) === 0); - if (nonNullishOriginalTypes.length === originalTypes.length) { - return false; - } - for (const assertedType of assertedTypes) { - if (couldBeNullish(assertedType) || - !nonNullishOriginalTypes.includes(assertedType)) { - return false; - } - } - for (const originalType of nonNullishOriginalTypes) { - if (!assertedTypes.includes(originalType)) { - return false; - } - } - return true; - }; - const isConstAssertion = (node) => { - return (node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeAnnotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeAnnotation.typeName.name === 'const'); - }; - return { - 'TSAsExpression, TSTypeAssertion'(node) { - if (isConstAssertion(node)) { - return; - } - const originalTypes = getTypesIfNotLoose(node.expression); - if (!originalTypes) { - return; - } - const assertedTypes = getTypesIfNotLoose(node.typeAnnotation); - if (!assertedTypes) { - return; - } - if (sameTypeWithoutNullish(assertedTypes, originalTypes)) { - const expressionSourceCode = context.sourceCode.getText(node.expression); - const higherPrecedenceThanUnary = (0, util_1.getOperatorPrecedence)(services.esTreeNodeToTSNodeMap.get(node.expression).kind, ts.SyntaxKind.Unknown) > util_1.OperatorPrecedence.Unary; - context.report({ - fix(fixer) { - return fixer.replaceText(node, higherPrecedenceThanUnary - ? `${expressionSourceCode}!` - : `(${expressionSourceCode})!`); - }, - messageId: 'preferNonNullAssertion', - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=non-nullable-type-assertion-style.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map deleted file mode 100644 index 50123623..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"non-nullable-type-assertion-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BACL,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js deleted file mode 100644 index 7554bc27..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'only-throw-error', - meta: { - type: 'problem', - docs: { - description: 'Disallow throwing non-`Error` values as exceptions', - recommended: 'recommended', - extendsBaseRule: 'no-throw-literal', - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowThrowingAny: { - type: 'boolean', - }, - allowThrowingUnknown: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - object: 'Expected an error object to be thrown.', - undef: 'Do not throw undefined.', - }, - }, - defaultOptions: [ - { - allowThrowingAny: true, - allowThrowingUnknown: true, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - function checkThrowArgument(node) { - if (node.type === utils_1.AST_NODE_TYPES.AwaitExpression || - node.type === utils_1.AST_NODE_TYPES.YieldExpression) { - return; - } - const type = services.getTypeAtLocation(node); - if (type.flags & ts.TypeFlags.Undefined) { - context.report({ node, messageId: 'undef' }); - return; - } - if (options.allowThrowingAny && (0, util_1.isTypeAnyType)(type)) { - return; - } - if (options.allowThrowingUnknown && (0, util_1.isTypeUnknownType)(type)) { - return; - } - if ((0, util_1.isErrorLike)(services.program, type)) { - return; - } - context.report({ node, messageId: 'object' }); - } - return { - ThrowStatement(node) { - if (node.argument) { - checkThrowArgument(node.argument); - } - }, - }; - }, -}); -//# sourceMappingURL=only-throw-error.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map deleted file mode 100644 index 39cb5e6e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"only-throw-error.js","sourceRoot":"","sources":["../../src/rules/only-throw-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAMiB;AAWjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,WAAW,EAAE,aAAa;YAC1B,eAAe,EAAE,kBAAkB;YACnC,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBA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,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAClB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js deleted file mode 100644 index 8e27f9a6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +++ /dev/null @@ -1,169 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'parameter-properties', - meta: { - type: 'problem', - docs: { - description: 'Require or disallow parameter properties in class constructors', - }, - messages: { - preferClassProperty: 'Property {{parameter}} should be declared as a class property.', - preferParameterProperty: 'Property {{parameter}} should be declared as a parameter property.', - }, - schema: [ - { - $defs: { - modifier: { - type: 'string', - enum: [ - 'readonly', - 'private', - 'protected', - 'public', - 'private readonly', - 'protected readonly', - 'public readonly', - ], - }, - }, - type: 'object', - properties: { - allow: { - type: 'array', - items: { - $ref: '#/items/0/$defs/modifier', - }, - }, - prefer: { - type: 'string', - enum: ['class-property', 'parameter-property'], - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allow: [], - prefer: 'class-property', - }, - ], - create(context, [{ allow = [], prefer = 'class-property' }]) { - /** - * Gets the modifiers of `node`. - * @param node the node to be inspected. - */ - function getModifiers(node) { - const modifiers = []; - if (node.accessibility) { - modifiers.push(node.accessibility); - } - if (node.readonly) { - modifiers.push('readonly'); - } - return modifiers.filter(Boolean).join(' '); - } - if (prefer === 'class-property') { - return { - TSParameterProperty(node) { - const modifiers = getModifiers(node); - if (!allow.includes(modifiers)) { - // HAS to be an identifier or assignment or TSC will throw - if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && - node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - return; - } - const name = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier - ? node.parameter.name - : // has to be an Identifier or TSC will throw an error - node.parameter.left.name; - context.report({ - node, - messageId: 'preferClassProperty', - data: { - parameter: name, - }, - }); - } - }, - }; - } - const propertyNodesByNameStack = []; - function getNodesByName(name) { - const propertyNodesByName = propertyNodesByNameStack[propertyNodesByNameStack.length - 1]; - const existing = propertyNodesByName.get(name); - if (existing) { - return existing; - } - const created = {}; - propertyNodesByName.set(name, created); - return created; - } - function typeAnnotationsMatch(classProperty, constructorParameter) { - if (!classProperty.typeAnnotation || - !constructorParameter.typeAnnotation) { - return (classProperty.typeAnnotation === constructorParameter.typeAnnotation); - } - return (context.sourceCode.getText(classProperty.typeAnnotation) === - context.sourceCode.getText(constructorParameter.typeAnnotation)); - } - return { - 'ClassDeclaration, ClassExpression'() { - propertyNodesByNameStack.push(new Map()); - }, - ':matches(ClassDeclaration, ClassExpression):exit'() { - const propertyNodesByName = (0, util_1.nullThrows)(propertyNodesByNameStack.pop(), 'Stack should exist on class exit'); - for (const [name, nodes] of propertyNodesByName) { - if (nodes.classProperty && - nodes.constructorAssignment && - nodes.constructorParameter && - typeAnnotationsMatch(nodes.classProperty, nodes.constructorParameter)) { - context.report({ - data: { - parameter: name, - }, - messageId: 'preferParameterProperty', - node: nodes.classProperty, - }); - } - } - }, - ClassBody(node) { - for (const element of node.body) { - if (element.type === utils_1.AST_NODE_TYPES.PropertyDefinition && - element.key.type === utils_1.AST_NODE_TYPES.Identifier && - !element.value && - !allow.includes(getModifiers(element))) { - getNodesByName(element.key.name).classProperty = element; - } - } - }, - 'MethodDefinition[kind="constructor"]'(node) { - for (const parameter of node.value.params) { - if (parameter.type === utils_1.AST_NODE_TYPES.Identifier) { - getNodesByName(parameter.name).constructorParameter = parameter; - } - } - for (const statement of node.value.body?.body ?? []) { - if (statement.type !== utils_1.AST_NODE_TYPES.ExpressionStatement || - statement.expression.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || - statement.expression.left.type !== - utils_1.AST_NODE_TYPES.MemberExpression || - statement.expression.left.object.type !== - utils_1.AST_NODE_TYPES.ThisExpression || - statement.expression.left.property.type !== - utils_1.AST_NODE_TYPES.Identifier || - statement.expression.right.type !== utils_1.AST_NODE_TYPES.Identifier) { - break; - } - getNodesByName(statement.expression.right.name).constructorAssignment = statement.expression; - } - }, - }; - }, -}); -//# sourceMappingURL=parameter-properties.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map deleted file mode 100644 index b6308dcc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameter-properties.js","sourceRoot":"","sources":["../../src/rules/parameter-properties.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAiD;AAsBjD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;SACnE;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,gEAAgE;YAClE,uBAAuB,EACrB,oEAAoE;SACvE;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE;4BACJ,UAAU;4BACV,SAAS;4BACT,WAAW;4BACX,QAAQ;4BACR,kBAAkB;4BAClB,oBAAoB;4BACpB,iBAAiB;yBAClB;qBACF;iBACF;gBACD,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,KAAK,E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C;wBACjD,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,oBAAoB,GAAG,SAAS,CAAC;oBAClE,CAAC;gBACH,CAAC;gBAED,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;oBACpD,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;wBACrD,SAAS,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,oBAAoB;wBACjE,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI;4BAC5B,sBAAc,CAAC,gBAAgB;wBACjC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;4BACnC,sBAAc,CAAC,cAAc;wBAC/B,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI;4BACrC,sBAAc,CAAC,UAAU;wBAC3B,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAC7D,CAAC;wBACD,MAAM;oBACR,CAAC;oBAED,cAAc,CACZ,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAChC,CAAC,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC;gBACjD,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js deleted file mode 100644 index 54e3762d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-as-const', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce the use of `as const` over literal type', - recommended: 'recommended', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - preferConstAssertion: 'Expected a `const` instead of a literal type assertion.', - variableConstAssertion: 'Expected a `const` assertion instead of a literal type annotation.', - variableSuggest: 'You should use `as const` instead of type annotation.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function compareTypes(valueNode, typeNode, canFix) { - if (valueNode.type === utils_1.AST_NODE_TYPES.Literal && - typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && - typeNode.literal.type === utils_1.AST_NODE_TYPES.Literal && - valueNode.raw === typeNode.literal.raw) { - if (canFix) { - context.report({ - node: typeNode, - messageId: 'preferConstAssertion', - fix: fixer => fixer.replaceText(typeNode, 'const'), - }); - } - else { - context.report({ - node: typeNode, - messageId: 'variableConstAssertion', - suggest: [ - { - messageId: 'variableSuggest', - fix: (fixer) => [ - fixer.remove(typeNode.parent), - fixer.insertTextAfter(valueNode, ' as const'), - ], - }, - ], - }); - } - } - } - return { - TSAsExpression(node) { - compareTypes(node.expression, node.typeAnnotation, true); - }, - TSTypeAssertion(node) { - compareTypes(node.expression, node.typeAnnotation, true); - }, - PropertyDefinition(node) { - if (node.value && node.typeAnnotation) { - compareTypes(node.value, node.typeAnnotation.typeAnnotation, false); - } - }, - VariableDeclarator(node) { - if (node.init && node.id.typeAnnotation) { - compareTypes(node.init, node.id.typeAnnotation.typeAnnotation, false); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-as-const.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map deleted file mode 100644 index 84451999..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-as-const.js","sourceRoot":"","sources":["../../src/rules/prefer-as-const.ts"],"names":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AAM,CAAC;oCAC7B,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,WAAW,CAAC;iCAC9C;6BACF;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,kBAAkB,CAAC,IAAI;gBACrB,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;oBACtC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;gBACtE,CAAC;YACH,CAAC;YACD,kBAAkB,CAAC,IAAI;gBACrB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC;oBACxC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js deleted file mode 100644 index e0b0f8fc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +++ /dev/null @@ -1,202 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('prefer-destructuring'); -const destructuringTypeConfig = { - type: 'object', - properties: { - array: { - type: 'boolean', - }, - object: { - type: 'boolean', - }, - }, - additionalProperties: false, -}; -const schema = [ - { - oneOf: [ - { - type: 'object', - properties: { - VariableDeclarator: destructuringTypeConfig, - AssignmentExpression: destructuringTypeConfig, - }, - additionalProperties: false, - }, - destructuringTypeConfig, - ], - }, - { - type: 'object', - properties: { - enforceForRenamedProperties: { - type: 'boolean', - }, - enforceForDeclarationWithTypeAnnotation: { - type: 'boolean', - }, - }, - }, -]; -exports.default = (0, util_1.createRule)({ - name: 'prefer-destructuring', - meta: { - type: 'suggestion', - docs: { - description: 'Require destructuring from arrays and/or objects', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - schema, - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - VariableDeclarator: { - array: true, - object: true, - }, - AssignmentExpression: { - array: true, - object: true, - }, - }, - {}, - ], - create(context, [enabledTypes, options]) { - const { enforceForRenamedProperties = false, enforceForDeclarationWithTypeAnnotation = false, } = options; - const { program, esTreeNodeToTSNodeMap } = (0, util_1.getParserServices)(context); - const typeChecker = program.getTypeChecker(); - const baseRules = baseRule.create(context); - let baseRulesWithoutFixCache = null; - return { - VariableDeclarator(node) { - performCheck(node.id, node.init, node); - }, - AssignmentExpression(node) { - if (node.operator !== '=') { - return; - } - performCheck(node.left, node.right, node); - }, - }; - function performCheck(leftNode, rightNode, reportNode) { - const rules = leftNode.type === utils_1.AST_NODE_TYPES.Identifier && - leftNode.typeAnnotation === undefined - ? baseRules - : baseRulesWithoutFix(); - if ((leftNode.type === utils_1.AST_NODE_TYPES.ArrayPattern || - leftNode.type === utils_1.AST_NODE_TYPES.Identifier || - leftNode.type === utils_1.AST_NODE_TYPES.ObjectPattern) && - leftNode.typeAnnotation !== undefined && - !enforceForDeclarationWithTypeAnnotation) { - return; - } - if (rightNode != null && - isArrayLiteralIntegerIndexAccess(rightNode) && - rightNode.object.type !== utils_1.AST_NODE_TYPES.Super) { - const tsObj = esTreeNodeToTSNodeMap.get(rightNode.object); - const objType = typeChecker.getTypeAtLocation(tsObj); - if (!isTypeAnyOrIterableType(objType, typeChecker)) { - if (!enforceForRenamedProperties || - !getNormalizedEnabledType(reportNode.type, 'object')) { - return; - } - context.report({ - node: reportNode, - messageId: 'preferDestructuring', - data: { type: 'object' }, - }); - return; - } - } - if (reportNode.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { - rules.AssignmentExpression(reportNode); - } - else { - rules.VariableDeclarator(reportNode); - } - } - function getNormalizedEnabledType(nodeType, destructuringType) { - if ('object' in enabledTypes || 'array' in enabledTypes) { - return enabledTypes[destructuringType]; - } - return enabledTypes[nodeType][destructuringType]; - } - function baseRulesWithoutFix() { - baseRulesWithoutFixCache ??= baseRule.create(noFixContext(context)); - return baseRulesWithoutFixCache; - } - }, -}); -function noFixContext(context) { - const customContext = { - report: (descriptor) => { - context.report({ - ...descriptor, - fix: undefined, - }); - }, - }; - // we can't directly proxy `context` because its `report` property is non-configurable - // and non-writable. So we proxy `customContext` and redirect all - // property access to the original context except for `report` - return new Proxy(customContext, { - get(target, path, receiver) { - if (path !== 'report') { - return Reflect.get(context, path, receiver); - } - return Reflect.get(target, path, receiver); - }, - }); -} -function isTypeAnyOrIterableType(type, typeChecker) { - if ((0, util_1.isTypeAnyType)(type)) { - return true; - } - if (!type.isUnion()) { - const iterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'iterator', typeChecker); - return iterator !== undefined; - } - return type.types.every(t => isTypeAnyOrIterableType(t, typeChecker)); -} -function isArrayLiteralIntegerIndexAccess(node) { - if (node.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - return false; - } - if (node.property.type !== utils_1.AST_NODE_TYPES.Literal) { - return false; - } - return Number.isInteger(node.property.value); -} -//# sourceMappingURL=prefer-destructuring.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map deleted file mode 100644 index eeb78b4a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-destructuring.js","sourceRoot":"","sources":["../../src/rules/prefer-destructuring.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,sDAAwC;AAOxC,kCAAuE;AACvE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAU3D,MAAM,uBAAuB,GAAgB;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;SAChB;KACF;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,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 No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js deleted file mode 100644 index 39f8b7e2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-enum-initializers', - meta: { - type: 'suggestion', - docs: { - description: 'Require each enum member value to be explicitly initialized', - }, - hasSuggestions: true, - messages: { - defineInitializer: "The value of the member '{{ name }}' should be explicitly defined.", - defineInitializerSuggestion: 'Can be fixed to {{ name }} = {{ suggested }}', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function TSEnumDeclaration(node) { - const { members } = node.body; - members.forEach((member, index) => { - if (member.initializer == null) { - const name = context.sourceCode.getText(member); - context.report({ - node: member, - messageId: 'defineInitializer', - data: { - name, - }, - suggest: [ - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: index }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = ${index}`); - }, - }, - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: index + 1 }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = ${index + 1}`); - }, - }, - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: `'${name}'` }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = '${name}'`); - }, - }, - ], - }); - } - }); - } - return { - TSEnumDeclaration, - }; - }, -}); -//# sourceMappingURL=prefer-enum-initializers.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map deleted file mode 100644 index 010631a0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-enum-initializers.js","sourceRoot":"","sources":["../../src/rules/prefer-enum-initializers.ts"],"names":[],"mappings":";;AAEA,kCAAqC;AAIrC,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;SAChE;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,oEAAoE;YACtE,2BAA2B,EACzB,8CAA8C;SACjD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,iBAAiB,CAAC,IAAgC;YACzD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;YAE9B,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAChC,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;oBAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;oBAChD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,MAAM;wBACZ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE;4BACJ,IAAI;yBACL;wBACD,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE;gCAChC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,MAAM,KAAK,EAAE,CAAC,CAAC;gCACzD,CAAC;6BACF;4BACD;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,GAAG,CAAC,EAAE;gCACpC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,MAAM,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC;gCAC7D,CAAC;6BACF;4BACD;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,IAAI,GAAG,EAAE;gCACtC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,OAAO,IAAI,GAAG,CAAC,CAAC;gCAC1D,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB;SAClB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js deleted file mode 100644 index b13128e4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +++ /dev/null @@ -1,255 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-find', - meta: { - docs: { - description: 'Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - messages: { - preferFind: 'Prefer .find(...) instead of .filter(...)[0].', - preferFindSuggestion: 'Use .find(...) instead of .filter(...)[0].', - }, - schema: [], - type: 'suggestion', - hasSuggestions: true, - }, - defaultOptions: [], - create(context) { - const globalScope = context.sourceCode.getScope(context.sourceCode.ast); - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function parseArrayFilterExpressions(expression) { - if (expression.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - // Only the last expression in (a, b, [1, 2, 3].filter(condition))[0] matters - const lastExpression = (0, util_1.nullThrows)(expression.expressions.at(-1), 'Expected to have more than zero expressions in a sequence expression'); - return parseArrayFilterExpressions(lastExpression); - } - if (expression.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return parseArrayFilterExpressions(expression.expression); - } - // This is the only reason we're returning a list rather than a single value. - if (expression.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - // Both branches of the ternary _must_ return results. - const consequentResult = parseArrayFilterExpressions(expression.consequent); - if (consequentResult.length === 0) { - return []; - } - const alternateResult = parseArrayFilterExpressions(expression.alternate); - if (alternateResult.length === 0) { - return []; - } - // Accumulate the results from both sides and pass up the chain. - return [...consequentResult, ...alternateResult]; - } - // Check if it looks like <>(...), but not <>?.(...) - if (expression.type === utils_1.AST_NODE_TYPES.CallExpression && - !expression.optional) { - const callee = expression.callee; - // Check if it looks like <>.filter(...) or <>['filter'](...), - // or the optional chaining variants. - if (callee.type === utils_1.AST_NODE_TYPES.MemberExpression) { - const isBracketSyntaxForFilter = callee.computed; - if (isStaticMemberAccessOfValue(callee, 'filter', globalScope)) { - const filterNode = callee.property; - const filteredObjectType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); - // As long as the object is a (possibly nullable) array, - // this is an Array.prototype.filter expression. - if (isArrayish(filteredObjectType)) { - return [ - { - isBracketSyntaxForFilter, - filterNode, - }, - ]; - } - } - } - } - // not a filter expression. - return []; - } - /** - * Tells whether the type is a possibly nullable array/tuple or union thereof. - */ - function isArrayish(type) { - let isAtLeastOneArrayishComponent = false; - for (const unionPart of tsutils.unionTypeParts(type)) { - if (tsutils.isIntrinsicNullType(unionPart) || - tsutils.isIntrinsicUndefinedType(unionPart)) { - continue; - } - // apparently checker.isArrayType(T[] & S[]) => false. - // so we need to check the intersection parts individually. - const isArrayOrIntersectionThereof = tsutils - .intersectionTypeParts(unionPart) - .every(intersectionPart => checker.isArrayType(intersectionPart) || - checker.isTupleType(intersectionPart)); - if (!isArrayOrIntersectionThereof) { - // There is a non-array, non-nullish type component, - // so it's not an array. - return false; - } - isAtLeastOneArrayishComponent = true; - } - return isAtLeastOneArrayishComponent; - } - function getObjectIfArrayAtZeroExpression(node) { - // .at() should take exactly one argument. - if (node.arguments.length !== 1) { - return undefined; - } - const callee = node.callee; - if (callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - !callee.optional && - isStaticMemberAccessOfValue(callee, 'at', globalScope)) { - const atArgument = (0, util_1.getStaticValue)(node.arguments[0], globalScope); - if (atArgument != null && isTreatedAsZeroByArrayAt(atArgument.value)) { - return callee.object; - } - } - return undefined; - } - /** - * Implements the algorithm for array indexing by `.at()` method. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#parameters - */ - function isTreatedAsZeroByArrayAt(value) { - // This would cause the number constructor coercion to throw. Other static - // values are safe. - if (typeof value === 'symbol') { - return false; - } - const asNumber = Number(value); - if (isNaN(asNumber)) { - return true; - } - return Math.trunc(asNumber) === 0; - } - function isMemberAccessOfZero(node) { - const property = (0, util_1.getStaticValue)(node.property, globalScope); - // Check if it looks like <>[0] or <>['0'], but not <>?.[0] - return (!node.optional && - property != null && - isTreatedAsZeroByMemberAccess(property.value)); - } - /** - * Implements the algorithm for array indexing by member operator. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#array_indices - */ - function isTreatedAsZeroByMemberAccess(value) { - return String(value) === '0'; - } - function generateFixToRemoveArrayElementAccess(fixer, arrayNode, wholeExpressionBeingFlagged) { - const tokenToStartDeletingFrom = (0, util_1.nullThrows)( - // The next `.` or `[` is what we're looking for. - // think of (...).at(0) or (...)[0] or even (...)["at"](0). - context.sourceCode.getTokenAfter(arrayNode, token => token.value === '.' || token.value === '['), 'Expected to find a member access token!'); - return fixer.removeRange([ - tokenToStartDeletingFrom.range[0], - wholeExpressionBeingFlagged.range[1], - ]); - } - function generateFixToReplaceFilterWithFind(fixer, filterExpression) { - return fixer.replaceText(filterExpression.filterNode, filterExpression.isBracketSyntaxForFilter ? '"find"' : 'find'); - } - return { - // This query will be used to find things like `filteredResults.at(0)`. - CallExpression(node) { - const object = getObjectIfArrayAtZeroExpression(node); - if (object) { - const filterExpressions = parseArrayFilterExpressions(object); - if (filterExpressions.length !== 0) { - context.report({ - node, - messageId: 'preferFind', - suggest: [ - { - messageId: 'preferFindSuggestion', - fix: (fixer) => { - return [ - ...filterExpressions.map(filterExpression => generateFixToReplaceFilterWithFind(fixer, filterExpression)), - // Get rid of the .at(0) or ['at'](0). - generateFixToRemoveArrayElementAccess(fixer, object, node), - ]; - }, - }, - ], - }); - } - } - }, - // This query will be used to find things like `filteredResults[0]`. - // - // Note: we're always looking for array member access to be "computed", - // i.e. `filteredResults[0]`, since `filteredResults.0` isn't a thing. - 'MemberExpression[computed=true]'(node) { - if (isMemberAccessOfZero(node)) { - const object = node.object; - const filterExpressions = parseArrayFilterExpressions(object); - if (filterExpressions.length !== 0) { - context.report({ - node, - messageId: 'preferFind', - suggest: [ - { - messageId: 'preferFindSuggestion', - fix: (fixer) => { - return [ - ...filterExpressions.map(filterExpression => generateFixToReplaceFilterWithFind(fixer, filterExpression)), - // Get rid of the [0]. - generateFixToRemoveArrayElementAccess(fixer, object, node), - ]; - }, - }, - ], - }); - } - } - }, - }; - }, -}); -/** - * Answers whether the member expression looks like - * `x.memberName`, `x['memberName']`, - * or even `const mn = 'memberName'; x[mn]` (or optional variants thereof). - */ -function isStaticMemberAccessOfValue(memberExpression, value, scope) { - if (!memberExpression.computed) { - // x.memberName case. - return memberExpression.property.name === value; - } - // x['memberName'] cases. - const staticValueResult = (0, util_1.getStaticValue)(memberExpression.property, scope); - return staticValueResult != null && value === staticValueResult.value; -} -//# sourceMappingURL=prefer-find.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map deleted file mode 100644 index 4f09deec..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-find.js","sourceRoot":"","sources":["../../src/rules/prefer-find.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,sDAAwC;AAGxC,kCAMiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,0HAA0H;YAC5H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,+CAA+C;YAC3D,oBAAoB,EAAE,4CAA4C;SACnE;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,IAAI;KACrB;IAED,cAAc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CAAqC,CACnC,KAAK,EACL,MAAM,EACN,IAAI,CACL;yCACF,CAAC;oCACJ,CAAC;iCACF;6BACF;yBACF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH;;;;GAIG;AACH,SAAS,2BAA2B,CAClC,gBAE4C,EAC5C,KAAa,EACb,KAA+B;IAE/B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;QAC/B,qBAAqB;QACrB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC;IAClD,CAAC;IAED,yBAAyB;IACzB,MAAM,iBAAiB,GAAG,IAAA,qBAAc,EAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3E,OAAO,iBAAiB,IAAI,IAAI,IAAI,KAAK,KAAK,iBAAiB,CAAC,KAAK,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js deleted file mode 100644 index 00b92a04..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-for-of', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce the use of `for-of` loop over the standard `for` loop where possible', - recommended: 'stylistic', - }, - messages: { - preferForOf: 'Expected a `for-of` loop instead of a `for` loop with this simple iteration.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function isSingleVariableDeclaration(node) { - return (node?.type === utils_1.AST_NODE_TYPES.VariableDeclaration && - node.kind !== 'const' && - node.declarations.length === 1); - } - function isLiteral(node, value) { - return node.type === utils_1.AST_NODE_TYPES.Literal && node.value === value; - } - function isZeroInitialized(node) { - return node.init != null && isLiteral(node.init, 0); - } - function isMatchingIdentifier(node, name) { - return node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === name; - } - function isLessThanLengthExpression(node, name) { - if (node?.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '<' && - isMatchingIdentifier(node.left, name) && - node.right.type === utils_1.AST_NODE_TYPES.MemberExpression && - isMatchingIdentifier(node.right.property, 'length')) { - return node.right.object; - } - return null; - } - function isIncrement(node, name) { - if (!node) { - return false; - } - switch (node.type) { - case utils_1.AST_NODE_TYPES.UpdateExpression: - // x++ or ++x - return (node.operator === '++' && isMatchingIdentifier(node.argument, name)); - case utils_1.AST_NODE_TYPES.AssignmentExpression: - if (isMatchingIdentifier(node.left, name)) { - if (node.operator === '+=') { - // x += 1 - return isLiteral(node.right, 1); - } - else if (node.operator === '=') { - // x = x + 1 or x = 1 + x - const expr = node.right; - return (expr.type === utils_1.AST_NODE_TYPES.BinaryExpression && - expr.operator === '+' && - ((isMatchingIdentifier(expr.left, name) && - isLiteral(expr.right, 1)) || - (isLiteral(expr.left, 1) && - isMatchingIdentifier(expr.right, name)))); - } - } - } - return false; - } - function contains(outer, inner) { - return (outer.range[0] <= inner.range[0] && outer.range[1] >= inner.range[1]); - } - function isIndexOnlyUsedWithArray(body, indexVar, arrayExpression) { - const arrayText = context.sourceCode.getText(arrayExpression); - return indexVar.references.every(reference => { - const id = reference.identifier; - const node = id.parent; - return (!contains(body, id) || - (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type !== utils_1.AST_NODE_TYPES.ThisExpression && - node.property === id && - context.sourceCode.getText(node.object) === arrayText && - !(0, util_1.isAssignee)(node))); - }); - } - return { - 'ForStatement:exit'(node) { - if (!isSingleVariableDeclaration(node.init)) { - return; - } - const declarator = node.init.declarations[0]; - if (!declarator || - !isZeroInitialized(declarator) || - declarator.id.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const indexName = declarator.id.name; - const arrayExpression = isLessThanLengthExpression(node.test, indexName); - if (!arrayExpression) { - return; - } - const [indexVar] = context.sourceCode.getDeclaredVariables(node.init); - if (isIncrement(node.update, indexName) && - isIndexOnlyUsedWithArray(node.body, indexVar, arrayExpression)) { - context.report({ - node, - messageId: 'preferForOf', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-for-of.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map deleted file mode 100644 index 8691755c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAiD;AAEjD,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE,WAAW;SACzB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,2BAA2B,CAClC,IAA0B;YAE1B,OAAO,CACL,IAAI,EAAE,IAAI,KAAK,sBAAc,CAAC,mBAAmB;gBACjD,IAAI,CAAC,IAAI,KAAK,OAAO;gBACrB,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAC/B,CAAC;QACJ,CAAC;QAED,SAAS,SAAS,CAChB,IAAsD,EACtD,KAAa;YAEb,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QAC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;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js deleted file mode 100644 index 75afd66c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +++ /dev/null @@ -1,188 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.phrases = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.phrases = { - [utils_1.AST_NODE_TYPES.TSTypeLiteral]: 'Type literal', - [utils_1.AST_NODE_TYPES.TSInterfaceDeclaration]: 'Interface', -}; -exports.default = (0, util_1.createRule)({ - name: 'prefer-function-type', - meta: { - docs: { - description: 'Enforce using function types instead of interfaces with call signatures', - recommended: 'stylistic', - }, - fixable: 'code', - messages: { - functionTypeOverCallableType: '{{ literalOrInterface }} only has a call signature, you should use a function type instead.', - unexpectedThisOnFunctionOnlyInterface: "`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `(this: Self, ...) => Self` instead?", - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - /** - * Checks if there the interface has exactly one supertype that isn't named 'Function' - * @param node The node being checked - */ - function hasOneSupertype(node) { - if (node.extends.length === 0) { - return false; - } - if (node.extends.length !== 1) { - return true; - } - const expr = node.extends[0].expression; - return (expr.type !== utils_1.AST_NODE_TYPES.Identifier || expr.name !== 'Function'); - } - /** - * @param parent The parent of the call signature causing the diagnostic - */ - function shouldWrapSuggestion(parent) { - if (!parent) { - return false; - } - switch (parent.type) { - case utils_1.AST_NODE_TYPES.TSUnionType: - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSArrayType: - return true; - default: - return false; - } - } - /** - * @param member The TypeElement being checked - * @param node The parent of member being checked - */ - function checkMember(member, node, tsThisTypes = null) { - if ((member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration || - member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration) && - member.returnType !== undefined) { - if (tsThisTypes?.length && - node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { - // the message can be confusing if we don't point directly to the `this` node instead of the whole member - // and in favour of generating at most one error we'll only report the first occurrence of `this` if there are multiple - context.report({ - node: tsThisTypes[0], - messageId: 'unexpectedThisOnFunctionOnlyInterface', - data: { - interfaceName: node.id.name, - }, - }); - return; - } - const fixable = node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration; - const fix = fixable - ? null - : (fixer) => { - const fixes = []; - const start = member.range[0]; - // https://github.com/microsoft/TypeScript/pull/56908 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const colonPos = member.returnType.range[0] - start; - const text = context.sourceCode - .getText() - .slice(start, member.range[1]); - const comments = context.sourceCode - .getCommentsBefore(member) - .concat(context.sourceCode.getCommentsAfter(member)); - let suggestion = `${text.slice(0, colonPos)} =>${text.slice(colonPos + 1)}`; - const lastChar = suggestion.endsWith(';') ? ';' : ''; - if (lastChar) { - suggestion = suggestion.slice(0, -1); - } - if (shouldWrapSuggestion(node.parent)) { - suggestion = `(${suggestion})`; - } - if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { - if (node.typeParameters !== undefined) { - suggestion = `type ${context.sourceCode - .getText() - .slice(node.id.range[0], node.typeParameters.range[1])} = ${suggestion}${lastChar}`; - } - else { - suggestion = `type ${node.id.name} = ${suggestion}${lastChar}`; - } - } - const isParentExported = node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration; - if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && - isParentExported) { - const commentsText = comments.reduce((text, comment) => { - return (text + - (comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${comment.value}` - : `/*${comment.value}*/`) + - '\n'); - }, ''); - // comments should move before export and not between export and interface declaration - fixes.push(fixer.insertTextBefore(node.parent, commentsText)); - } - else { - comments.forEach(comment => { - let commentText = comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${comment.value}` - : `/*${comment.value}*/`; - const isCommentOnTheSameLine = comment.loc.start.line === member.loc.start.line; - if (!isCommentOnTheSameLine) { - commentText += '\n'; - } - else { - commentText += ' '; - } - suggestion = commentText + suggestion; - }); - } - const fixStart = node.range[0]; - fixes.push(fixer.replaceTextRange([fixStart, node.range[1]], suggestion)); - return fixes; - }; - context.report({ - node: member, - messageId: 'functionTypeOverCallableType', - data: { - literalOrInterface: exports.phrases[node.type], - }, - fix, - }); - } - } - let tsThisTypes = null; - let literalNesting = 0; - return { - TSInterfaceDeclaration() { - // when entering an interface reset the count of `this`s to empty. - tsThisTypes = []; - }, - 'TSInterfaceDeclaration TSThisType'(node) { - // inside an interface keep track of all ThisType references. - // unless it's inside a nested type literal in which case it's invalid code anyway - // we don't want to incorrectly say "it refers to name" while typescript says it's completely invalid. - if (literalNesting === 0 && tsThisTypes != null) { - tsThisTypes.push(node); - } - }, - 'TSInterfaceDeclaration:exit'(node) { - if (!hasOneSupertype(node) && node.body.body.length === 1) { - checkMember(node.body.body[0], node, tsThisTypes); - } - // on exit check member and reset the array to nothing. - tsThisTypes = null; - }, - // keep track of nested literals to avoid complaining about invalid `this` uses - 'TSInterfaceDeclaration TSTypeLiteral'() { - literalNesting += 1; - }, - 'TSInterfaceDeclaration TSTypeLiteral:exit'() { - literalNesting -= 1; - }, - 'TSTypeLiteral[members.length = 1]'(node) { - checkMember(node.members[0], node); - }, - }; - }, -}); -//# sourceMappingURL=prefer-function-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map deleted file mode 100644 index 1c7f6b6a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-function-type.js","sourceRoot":"","sources":["../../src/rules/prefer-function-type.ts"],"names":[],"mappings":";;;AACA,oDAA2E;AAE3E,kCAAqC;AAExB,QAAA,OAAO,GAAG;IACrB,CAAC,sBAAc,CAAC,aAAa,CAAC,EAAE,cAAc;IAC9C,CAAC,sBAAc,CAAC,sBAAsB,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEX,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,yEAAyE;YAC3E,WAAW,EAAE,WAAW;SACzB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,4BAA4B,EAC1B,6FAA6F;YAC/F,qCAAqC,EACnC,4JAA4J;SAC/J;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,eAAe,CAAC,IAAqC;YAC5D,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAExC,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CACpE,CAAC;QACJ,CAAC;QAED;;WAEG;QACH,SAAS,oBAAoB,CAAC,MAAiC;YAC7D,I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E,WAAW,CAAC,CAAC;gBACpD,CAAC;gBACD,uDAAuD;gBACvD,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;YACD,+EAA+E;YAC/E,sCAAsC;gBACpC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,2CAA2C;gBACzC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,mCAAmC,CAAC,IAA4B;gBAC9D,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js deleted file mode 100644 index e6009c2a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +++ /dev/null @@ -1,230 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexpp_1 = require("@eslint-community/regexpp"); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-includes', - defaultOptions: [], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce `includes` method over `indexOf` method', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferIncludes: "Use 'includes()' method instead.", - preferStringIncludes: 'Use `String#includes()` method with a string instead.', - }, - schema: [], - }, - create(context) { - const globalScope = context.sourceCode.getScope(context.sourceCode.ast); - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function isNumber(node, value) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value === value; - } - function isPositiveCheck(node) { - switch (node.operator) { - case '!==': - case '!=': - case '>': - return isNumber(node.right, -1); - case '>=': - return isNumber(node.right, 0); - default: - return false; - } - } - function isNegativeCheck(node) { - switch (node.operator) { - case '===': - case '==': - case '<=': - return isNumber(node.right, -1); - case '<': - return isNumber(node.right, 0); - default: - return false; - } - } - function hasSameParameters(nodeA, nodeB) { - if (!ts.isFunctionLike(nodeA) || !ts.isFunctionLike(nodeB)) { - return false; - } - const paramsA = nodeA.parameters; - const paramsB = nodeB.parameters; - if (paramsA.length !== paramsB.length) { - return false; - } - for (let i = 0; i < paramsA.length; ++i) { - const paramA = paramsA[i]; - const paramB = paramsB[i]; - // Check name, type, and question token once. - if (paramA.getText() !== paramB.getText()) { - return false; - } - } - return true; - } - /** - * Parse a given node if it's a `RegExp` instance. - * @param node The node to parse. - */ - function parseRegExp(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - if (evaluated == null || !(evaluated.value instanceof RegExp)) { - return null; - } - const { pattern, flags } = (0, regexpp_1.parseRegExpLiteral)(evaluated.value); - if (pattern.alternatives.length !== 1 || - flags.ignoreCase || - flags.global) { - return null; - } - // Check if it can determine a unique string. - const chars = pattern.alternatives[0].elements; - if (!chars.every(c => c.type === 'Character')) { - return null; - } - // To string. - return String.fromCodePoint(...chars.map(c => c.value)); - } - function escapeString(str) { - const EscapeMap = { - '\0': '\\0', - "'": "\\'", - '\\': '\\\\', - '\n': '\\n', - '\r': '\\r', - '\v': '\\v', - '\t': '\\t', - '\f': '\\f', - // "\b" cause unexpected replacements - // '\b': '\\b', - }; - const replaceRegex = new RegExp(Object.values(EscapeMap).join('|'), 'g'); - return str.replace(replaceRegex, char => EscapeMap[char]); - } - function checkArrayIndexOf(node, allowFixing) { - // Check if the comparison is equivalent to `includes()`. - const callNode = node.parent; - const compareNode = (callNode.parent.type === utils_1.AST_NODE_TYPES.ChainExpression - ? callNode.parent.parent - : callNode.parent); - const negative = isNegativeCheck(compareNode); - if (!negative && !isPositiveCheck(compareNode)) { - return; - } - // Get the symbol of `indexOf` method. - const indexofMethodDeclarations = services - .getSymbolAtLocation(node.property) - ?.getDeclarations(); - if (indexofMethodDeclarations == null || - indexofMethodDeclarations.length === 0) { - return; - } - // Check if every declaration of `indexOf` method has `includes` method - // and the two methods have the same parameters. - for (const instanceofMethodDecl of indexofMethodDeclarations) { - const typeDecl = instanceofMethodDecl.parent; - const type = checker.getTypeAtLocation(typeDecl); - const includesMethodDecl = type - .getProperty('includes') - ?.getDeclarations(); - if (!includesMethodDecl?.some(includesMethodDecl => hasSameParameters(includesMethodDecl, instanceofMethodDecl))) { - return; - } - } - // Report it. - context.report({ - node: compareNode, - messageId: 'preferIncludes', - ...(allowFixing && { - *fix(fixer) { - if (negative) { - yield fixer.insertTextBefore(callNode, '!'); - } - yield fixer.replaceText(node.property, 'includes'); - yield fixer.removeRange([callNode.range[1], compareNode.range[1]]); - }, - }), - }); - } - return { - // a.indexOf(b) !== 1 - "BinaryExpression > CallExpression.left > MemberExpression.callee[property.name='indexOf'][computed=false]"(node) { - checkArrayIndexOf(node, /* allowFixing */ true); - }, - // a?.indexOf(b) !== 1 - "BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name='indexOf'][computed=false]"(node) { - checkArrayIndexOf(node, /* allowFixing */ false); - }, - // /bar/.test(foo) - 'CallExpression[arguments.length=1] > MemberExpression.callee[property.name="test"][computed=false]'(node) { - const callNode = node.parent; - const text = parseRegExp(node.object); - if (text == null) { - return; - } - //check the argument type of test methods - const argument = callNode.arguments[0]; - const type = (0, util_1.getConstrainedTypeAtLocation)(services, argument); - const includesMethodDecl = type - .getProperty('includes') - ?.getDeclarations(); - if (includesMethodDecl == null) { - return; - } - context.report({ - node: callNode, - messageId: 'preferStringIncludes', - *fix(fixer) { - const argNode = callNode.arguments[0]; - const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && - argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && - argNode.type !== utils_1.AST_NODE_TYPES.Identifier && - argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && - argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; - yield fixer.removeRange([callNode.range[0], argNode.range[0]]); - yield fixer.removeRange([argNode.range[1], callNode.range[1]]); - if (needsParen) { - yield fixer.insertTextBefore(argNode, '('); - yield fixer.insertTextAfter(argNode, ')'); - } - yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}includes('${escapeString(text)}')`); - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-includes.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map deleted file mode 100644 index 28a7cfdb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA+D;AAE/D,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAKiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,cAAc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at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js deleted file mode 100644 index 51c096d5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-literal-enum-member', - meta: { - type: 'suggestion', - docs: { - description: 'Require all enum members to be literal values', - recommended: 'strict', - requiresTypeChecking: false, - }, - messages: { - notLiteral: `Explicit enum value must only be a literal value (string, number, boolean, etc).`, - }, - schema: [ - { - type: 'object', - properties: { - allowBitwiseExpressions: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowBitwiseExpressions: false, - }, - ], - create(context, [{ allowBitwiseExpressions }]) { - function isIdentifierWithName(node, name) { - return node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === name; - } - function hasEnumMember(decl, name) { - return decl.body.members.some(member => isIdentifierWithName(member.id, name) || - (member.id.type === utils_1.AST_NODE_TYPES.Literal && - (0, util_1.getStaticStringValue)(member.id) === name)); - } - function isSelfEnumMember(decl, node) { - if (node.type === utils_1.AST_NODE_TYPES.Identifier) { - return hasEnumMember(decl, node.name); - } - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - isIdentifierWithName(node.object, decl.id.name)) { - if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { - return hasEnumMember(decl, node.property.name); - } - if (node.computed) { - const propertyName = (0, util_1.getStaticStringValue)(node.property); - if (propertyName) { - return hasEnumMember(decl, propertyName); - } - } - } - return false; - } - function isAllowedBitwiseOperand(decl, node) { - return (node.type === utils_1.AST_NODE_TYPES.Literal || isSelfEnumMember(decl, node)); - } - return { - TSEnumMember(node) { - // If there is no initializer, then this node is just the name of the member, so ignore. - if (node.initializer == null) { - return; - } - // any old literal - if (node.initializer.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - // TemplateLiteral without expressions - if (node.initializer.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - node.initializer.expressions.length === 0) { - return; - } - const declaration = node.parent.parent; - // -1 and +1 - if (node.initializer.type === utils_1.AST_NODE_TYPES.UnaryExpression) { - if (node.initializer.argument.type === utils_1.AST_NODE_TYPES.Literal && - ['+', '-'].includes(node.initializer.operator)) { - return; - } - if (allowBitwiseExpressions && - node.initializer.operator === '~' && - isAllowedBitwiseOperand(declaration, node.initializer.argument)) { - return; - } - } - if (node.initializer.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.initializer.argument.type === utils_1.AST_NODE_TYPES.Literal && - (['+', '-'].includes(node.initializer.operator) || - (allowBitwiseExpressions && node.initializer.operator === '~'))) { - return; - } - if (allowBitwiseExpressions && - node.initializer.type === utils_1.AST_NODE_TYPES.BinaryExpression && - ['|', '&', '^', '<<', '>>', '>>>'].includes(node.initializer.operator) && - isAllowedBitwiseOperand(declaration, node.initializer.left) && - isAllowedBitwiseOperand(declaration, node.initializer.right)) { - return; - } - context.report({ - node: node.id, - messageId: 'notLiteral', - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-literal-enum-member.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map deleted file mode 100644 index c7f9b337..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-literal-enum-member.js","sourceRoot":"","sources":["../../src/rules/prefer-literal-enum-member.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAA2D;AAE3D,kBAAe,IAAA,iBAAU,EAAC;IACxB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C,EAC5D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,SAAS,EAAE,YAAY;iBACxB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js deleted file mode 100644 index c127c60e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-namespace-keyword', - meta: { - type: 'suggestion', - docs: { - description: 'Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules', - recommended: 'recommended', - }, - fixable: 'code', - messages: { - useNamespace: "Use 'namespace' instead of 'module' to declare custom TypeScript modules.", - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - TSModuleDeclaration(node) { - // Do nothing if the name is a string. - if (node.id.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - // Get tokens of the declaration header. - const moduleType = context.sourceCode.getTokenBefore(node.id); - if (moduleType && - moduleType.type === utils_1.AST_TOKEN_TYPES.Identifier && - moduleType.value === 'module') { - context.report({ - node, - messageId: 'useNamespace', - fix(fixer) { - return fixer.replaceText(moduleType, 'namespace'); - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-namespace-keyword.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map deleted file mode 100644 index d2f134c5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-namespace-keyword.js","sourceRoot":"","sources":["../../src/rules/prefer-namespace-keyword.ts"],"names":[],"mappings":";;AAAA,oDAA2E;AAE3E,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE,aAAa;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EACV,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;oBAC5C,OAAO;gBACT,CAAC;gBACD,wCAAwC;gBACxC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAE9D,IACE,UAAU;oBACV,UAAU,CAAC,IAAI,KAAK,uBAAe,CAAC,UAAU;oBAC9C,UAAU,CAAC,KAAK,KAAK,QAAQ,EAC7B,CAAC;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,cAAc;wBACzB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;wBACpD,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js deleted file mode 100644 index 0b664697..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +++ /dev/null @@ -1,351 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-nullish-coalescing', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using the nullish coalescing operator instead of logical assignments or chaining', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - hasSuggestions: true, - messages: { - preferNullishOverOr: 'Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.', - preferNullishOverTernary: 'Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read.', - suggestNullish: 'Fix to nullish coalescing operator (`??`).', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - }, - schema: [ - { - type: 'object', - properties: { - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - type: 'boolean', - }, - ignoreConditionalTests: { - type: 'boolean', - }, - ignoreMixedLogicalExpressions: { - type: 'boolean', - }, - ignorePrimitives: { - oneOf: [ - { - type: 'object', - properties: { - bigint: { type: 'boolean' }, - boolean: { type: 'boolean' }, - number: { type: 'boolean' }, - string: { type: 'boolean' }, - }, - }, - { - type: 'boolean', - enum: [true], - }, - ], - }, - ignoreTernaryTests: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - ignoreConditionalTests: true, - ignoreTernaryTests: false, - ignoreMixedLogicalExpressions: false, - ignorePrimitives: { - bigint: false, - boolean: false, - number: false, - string: false, - }, - }, - ], - create(context, [{ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, ignoreConditionalTests, ignoreMixedLogicalExpressions, ignorePrimitives, ignoreTernaryTests, },]) { - const parserServices = (0, util_1.getParserServices)(context); - const compilerOptions = parserServices.program.getCompilerOptions(); - const checker = parserServices.program.getTypeChecker(); - const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - return { - ConditionalExpression(node) { - if (ignoreTernaryTests) { - return; - } - let operator; - let nodesInsideTestExpression = []; - if (node.test.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - nodesInsideTestExpression = [node.test.left, node.test.right]; - if (node.test.operator === '==' || - node.test.operator === '!=' || - node.test.operator === '===' || - node.test.operator === '!==') { - operator = node.test.operator; - } - } - else if (node.test.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.test.left.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.test.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - nodesInsideTestExpression = [ - node.test.left.left, - node.test.left.right, - node.test.right.left, - node.test.right.right, - ]; - if (node.test.operator === '||') { - if (node.test.left.operator === '===' && - node.test.right.operator === '===') { - operator = '==='; - } - else if (((node.test.left.operator === '===' || - node.test.right.operator === '===') && - (node.test.left.operator === '==' || - node.test.right.operator === '==')) || - (node.test.left.operator === '==' && - node.test.right.operator === '==')) { - operator = '=='; - } - } - else if (node.test.operator === '&&') { - if (node.test.left.operator === '!==' && - node.test.right.operator === '!==') { - operator = '!=='; - } - else if (((node.test.left.operator === '!==' || - node.test.right.operator === '!==') && - (node.test.left.operator === '!=' || - node.test.right.operator === '!=')) || - (node.test.left.operator === '!=' && - node.test.right.operator === '!=')) { - operator = '!='; - } - } - } - if (!operator) { - return; - } - let identifier; - let hasUndefinedCheck = false; - let hasNullCheck = false; - // we check that the test only contains null, undefined and the identifier - for (const testNode of nodesInsideTestExpression) { - if ((0, util_1.isNullLiteral)(testNode)) { - hasNullCheck = true; - } - else if ((0, util_1.isUndefinedIdentifier)(testNode)) { - hasUndefinedCheck = true; - } - else if ((operator === '!==' || operator === '!=') && - (0, util_1.isNodeEqual)(testNode, node.consequent)) { - identifier = testNode; - } - else if ((operator === '===' || operator === '==') && - (0, util_1.isNodeEqual)(testNode, node.alternate)) { - identifier = testNode; - } - else { - return; - } - } - if (!identifier) { - return; - } - const isFixable = (() => { - // it is fixable if we check for both null and undefined, or not if neither - if (hasUndefinedCheck === hasNullCheck) { - return hasUndefinedCheck; - } - // it is fixable if we loosely check for either null or undefined - if (operator === '==' || operator === '!=') { - return true; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(identifier); - const type = checker.getTypeAtLocation(tsNode); - const flags = (0, util_1.getTypeFlags)(type); - if (flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return false; - } - const hasNullType = (flags & ts.TypeFlags.Null) !== 0; - // it is fixable if we check for undefined and the type is not nullable - if (hasUndefinedCheck && !hasNullType) { - return true; - } - const hasUndefinedType = (flags & ts.TypeFlags.Undefined) !== 0; - // it is fixable if we check for null and the type can't be undefined - return hasNullCheck && !hasUndefinedType; - })(); - if (isFixable) { - context.report({ - node, - messageId: 'preferNullishOverTernary', - suggest: [ - { - messageId: 'suggestNullish', - fix(fixer) { - const [left, right] = operator === '===' || operator === '==' - ? [node.alternate, node.consequent] - : [node.consequent, node.alternate]; - return fixer.replaceText(node, `${(0, util_1.getTextWithParentheses)(context.sourceCode, left)} ?? ${(0, util_1.getTextWithParentheses)(context.sourceCode, right)}`); - }, - }, - ], - }); - } - }, - 'LogicalExpression[operator = "||"]'(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(tsNode.left); - if (!(0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined)) { - return; - } - if (ignoreConditionalTests === true && isConditionalTest(node)) { - return; - } - const isMixedLogical = isMixedLogicalExpression(node); - if (ignoreMixedLogicalExpressions === true && isMixedLogical) { - return; - } - // https://github.com/typescript-eslint/typescript-eslint/issues/5439 - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - const ignorableFlags = [ - (ignorePrimitives === true || ignorePrimitives.bigint) && - ts.TypeFlags.BigIntLike, - (ignorePrimitives === true || ignorePrimitives.boolean) && - ts.TypeFlags.BooleanLike, - (ignorePrimitives === true || ignorePrimitives.number) && - ts.TypeFlags.NumberLike, - (ignorePrimitives === true || ignorePrimitives.string) && - ts.TypeFlags.StringLike, - ] - .filter((flag) => typeof flag === 'number') - .reduce((previous, flag) => previous | flag, 0); - if (type.flags !== ts.TypeFlags.Null && - type.flags !== ts.TypeFlags.Undefined && - type.types.some(t => tsutils - .intersectionTypeParts(t) - .some(t => tsutils.isTypeFlagSet(t, ignorableFlags)))) { - return; - } - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - const barBarOperator = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.left, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && - token.value === node.operator), util_1.NullThrowsReasons.MissingToken('operator', node.type)); - function* fix(fixer) { - if ((0, util_1.isLogicalOrOperator)(node.parent)) { - // '&&' and '??' operations cannot be mixed without parentheses (e.g. a && b ?? c) - if (node.left.type === utils_1.AST_NODE_TYPES.LogicalExpression && - !(0, util_1.isLogicalOrOperator)(node.left.left)) { - yield fixer.insertTextBefore(node.left.right, '('); - } - else { - yield fixer.insertTextBefore(node.left, '('); - } - yield fixer.insertTextAfter(node.right, ')'); - } - yield fixer.replaceText(barBarOperator, '??'); - } - context.report({ - node: barBarOperator, - messageId: 'preferNullishOverOr', - suggest: [ - { - messageId: 'suggestNullish', - fix, - }, - ], - }); - }, - }; - }, -}); -function isConditionalTest(node) { - const parents = new Set([node]); - let current = node.parent; - while (current) { - parents.add(current); - if ((current.type === utils_1.AST_NODE_TYPES.ConditionalExpression || - current.type === utils_1.AST_NODE_TYPES.DoWhileStatement || - current.type === utils_1.AST_NODE_TYPES.IfStatement || - current.type === utils_1.AST_NODE_TYPES.ForStatement || - current.type === utils_1.AST_NODE_TYPES.WhileStatement) && - parents.has(current.test)) { - return true; - } - if ([ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionExpression, - ].includes(current.type)) { - /** - * This is a weird situation like: - * `if (() => a || b) {}` - * `if (function () { return a || b }) {}` - */ - return false; - } - current = current.parent; - } - return false; -} -function isMixedLogicalExpression(node) { - const seen = new Set(); - const queue = [node.parent, node.left, node.right]; - for (const current of queue) { - if (seen.has(current)) { - continue; - } - seen.add(current); - if (current.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (current.operator === '&&') { - return true; - } - else if (current.operator === '||') { - // check the pieces of the node to catch cases like `a || b || c && d` - queue.push(current.parent, current.left, current.right); - } - } - } - return false; -} -//# sourceMappingURL=prefer-nullish-coalescing.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map deleted file mode 100644 index e48de572..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,sDAAwC;AACxC,+CAAiC;AAEjC,kCAYiB;AAyBjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,0FAA0F;YAC5F,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,mBAAmB,EACjB,4GAA4G;YAC9G,wBAAwB,EACtB,4GAA4G;YAC9G,cAAc,EAAE,4CAA4C;YAC5D,iBAAiB,EACf,kGAAkG;SACrG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,sDAAsD,EAAE;wBACtD,IAAI,EAAE,SAAS;qBAChB;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;qBAChB;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;qBAChB;oBACD,gBAAgB,EAAE;wBAChB,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,QAAQ;gCACd,UAAU,EAAE;oCACV,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oCAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oCAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oCAC3B,MAAM,EAAE,EAAE,IA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-utils/PreferOptionalChainOptions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js deleted file mode 100644 index 9dec4475..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PreferOptionalChainOptions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map deleted file mode 100644 index 163a6d7a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PreferOptionalChainOptions.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js deleted file mode 100644 index cd80928f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +++ /dev/null @@ -1,457 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.analyzeChain = analyzeChain; -const utils_1 = require("@typescript-eslint/utils"); -const ts_api_utils_1 = require("ts-api-utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../../util"); -const checkNullishAndReport_1 = require("./checkNullishAndReport"); -const compareNodes_1 = require("./compareNodes"); -function includesType(parserServices, node, typeFlagIn) { - const typeFlag = typeFlagIn | ts.TypeFlags.Any | ts.TypeFlags.Unknown; - const types = (0, ts_api_utils_1.unionTypeParts)(parserServices.getTypeAtLocation(node)); - for (const type of types) { - if ((0, util_1.isTypeFlagSet)(type, typeFlag)) { - return true; - } - } - return false; -} -const analyzeAndChainOperand = (parserServices, operand, index, chain) => { - switch (operand.comparisonType) { - case "Boolean" /* NullishComparisonType.Boolean */: { - const nextOperand = chain.at(index + 1); - if (nextOperand?.comparisonType === - "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ && - operand.comparedName.type === utils_1.AST_NODE_TYPES.Identifier) { - return null; - } - return [operand]; - } - case "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */: - return [operand]; - case "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */: { - // handle `x !== null && x !== undefined` - const nextOperand = chain.at(index + 1); - if (nextOperand?.comparisonType === - "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ && - (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === - "Equal" /* NodeComparisonResult.Equal */) { - return [operand, nextOperand]; - } - if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Undefined)) { - // we know the next operand is not an `undefined` check and that this - // operand includes `undefined` - which means that making this an - // optional chain would change the runtime behavior of the expression - return null; - } - return [operand]; - } - case "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */: { - // handle `x !== undefined && x !== null` - const nextOperand = chain.at(index + 1); - if (nextOperand?.comparisonType === - "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ && - (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === - "Equal" /* NodeComparisonResult.Equal */) { - return [operand, nextOperand]; - } - if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Null)) { - // we know the next operand is not a `null` check and that this - // operand includes `null` - which means that making this an - // optional chain would change the runtime behavior of the expression - return null; - } - return [operand]; - } - default: - return null; - } -}; -const analyzeOrChainOperand = (parserServices, operand, index, chain) => { - switch (operand.comparisonType) { - case "NotBoolean" /* NullishComparisonType.NotBoolean */: - case "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */: - return [operand]; - case "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */: { - // handle `x === null || x === undefined` - const nextOperand = chain.at(index + 1); - if (nextOperand?.comparisonType === - "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */ && - (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === - "Equal" /* NodeComparisonResult.Equal */) { - return [operand, nextOperand]; - } - if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Undefined)) { - // we know the next operand is not an `undefined` check and that this - // operand includes `undefined` - which means that making this an - // optional chain would change the runtime behavior of the expression - return null; - } - return [operand]; - } - case "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */: { - // handle `x === undefined || x === null` - const nextOperand = chain.at(index + 1); - if (nextOperand?.comparisonType === "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */ && - (0, compareNodes_1.compareNodes)(operand.comparedName, nextOperand.comparedName) === - "Equal" /* NodeComparisonResult.Equal */) { - return [operand, nextOperand]; - } - if (includesType(parserServices, operand.comparedName, ts.TypeFlags.Null)) { - // we know the next operand is not a `null` check and that this - // operand includes `null` - which means that making this an - // optional chain would change the runtime behavior of the expression - return null; - } - return [operand]; - } - default: - return null; - } -}; -/** - * Returns the range that needs to be reported from the chain. - * @param chain The chain of logical expressions. - * @param boundary The boundary range that the range to report cannot fall outside. - * @param sourceCode The source code to get tokens. - * @returns The range to report. - */ -function getReportRange(chain, boundary, sourceCode) { - const leftNode = chain[0].node; - const rightNode = chain[chain.length - 1].node; - let leftMost = (0, util_1.nullThrows)(sourceCode.getFirstToken(leftNode), util_1.NullThrowsReasons.MissingToken('any token', leftNode.type)); - let rightMost = (0, util_1.nullThrows)(sourceCode.getLastToken(rightNode), util_1.NullThrowsReasons.MissingToken('any token', rightNode.type)); - while (leftMost.range[0] > boundary[0]) { - const token = sourceCode.getTokenBefore(leftMost); - if (!token || !(0, util_1.isOpeningParenToken)(token) || token.range[0] < boundary[0]) { - break; - } - leftMost = token; - } - while (rightMost.range[1] < boundary[1]) { - const token = sourceCode.getTokenAfter(rightMost); - if (!token || !(0, util_1.isClosingParenToken)(token) || token.range[1] > boundary[1]) { - break; - } - rightMost = token; - } - return [leftMost.range[0], rightMost.range[1]]; -} -function getReportDescriptor(sourceCode, parserServices, node, operator, options, chain) { - const lastOperand = chain[chain.length - 1]; - let useSuggestionFixer; - if (options.allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing === - true) { - // user has opted-in to the unsafe behavior - useSuggestionFixer = false; - } - // optional chain specifically will union `undefined` into the final type - // so we need to make sure that there is at least one operand that includes - // `undefined`, or else we're going to change the final type - which is - // unsafe and might cause downstream type errors. - else if (lastOperand.comparisonType === "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */ || - lastOperand.comparisonType === - "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */ || - lastOperand.comparisonType === "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */ || - lastOperand.comparisonType === - "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ || - (operator === '||' && - lastOperand.comparisonType === "NotBoolean" /* NullishComparisonType.NotBoolean */)) { - // we know the last operand is an equality check - so the change in types - // DOES NOT matter and will not change the runtime result or cause a type - // check error - useSuggestionFixer = false; - } - else { - useSuggestionFixer = true; - for (const operand of chain) { - if (includesType(parserServices, operand.node, ts.TypeFlags.Undefined)) { - useSuggestionFixer = false; - break; - } - } - // TODO - we could further reduce the false-positive rate of this check by - // checking for cases where the change in types don't matter like - // the test location of an if/while/etc statement. - // but it's quite complex to do this without false-negatives, so - // for now we'll just be over-eager with our matching. - // - // it's MUCH better to false-positive here and only provide a - // suggestion fixer, rather than false-negative and autofix to - // broken code. - } - // In its most naive form we could just slap `?.` for every single part of the - // chain. However this would be undesirable because it'd create unnecessary - // conditions in the user's code where there were none before - and it would - // cause errors with rules like our `no-unnecessary-condition`. - // - // Instead we want to include the minimum number of `?.` required to correctly - // unify the code into a single chain. Naively you might think that we can - // just take the final operand add `?.` after the locations from the previous - // operands - however this won't be correct either because earlier operands - // can include a necessary `?.` that's not needed or included in a later - // operand. - // - // So instead what we need to do is to start at the first operand and - // iteratively diff it against the next operand, and add the difference to the - // first operand. - // - // eg - // `foo && foo.bar && foo.bar.baz?.bam && foo.bar.baz.bam()` - // 1) `foo` - // 2) diff(`foo`, `foo.bar`) = `.bar` - // 3) result = `foo?.bar` - // 4) diff(`foo.bar`, `foo.bar.baz?.bam`) = `.baz?.bam` - // 5) result = `foo?.bar?.baz?.bam` - // 6) diff(`foo.bar.baz?.bam`, `foo.bar.baz.bam()`) = `()` - // 7) result = `foo?.bar?.baz?.bam?.()` - const parts = []; - for (const current of chain) { - const nextOperand = flattenChainExpression(sourceCode, current.comparedName); - const diff = nextOperand.slice(parts.length); - if (diff.length > 0) { - if (parts.length > 0) { - // we need to make the first operand of the diff optional so it matches the - // logic before merging - // foo.bar && foo.bar.baz - // diff = .baz - // result = foo.bar?.baz - diff[0].optional = true; - } - parts.push(...diff); - } - } - let newCode = parts - .map(part => { - let str = ''; - if (part.optional) { - str += '?.'; - } - else { - if (part.nonNull) { - str += '!'; - } - if (part.requiresDot) { - str += '.'; - } - } - if (part.precedence !== util_1.OperatorPrecedence.Invalid && - part.precedence < util_1.OperatorPrecedence.Member) { - str += `(${part.text})`; - } - else { - str += part.text; - } - return str; - }) - .join(''); - if (lastOperand.node.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - // retain the ending comparison for cases like - // x && x.a != null - // x && typeof x.a !== 'undefined' - const operator = lastOperand.node.operator; - const { left, right } = (() => { - if (lastOperand.isYoda) { - const unaryOperator = lastOperand.node.right.type === utils_1.AST_NODE_TYPES.UnaryExpression - ? lastOperand.node.right.operator + ' ' - : ''; - return { - left: sourceCode.getText(lastOperand.node.left), - right: unaryOperator + newCode, - }; - } - const unaryOperator = lastOperand.node.left.type === utils_1.AST_NODE_TYPES.UnaryExpression - ? lastOperand.node.left.operator + ' ' - : ''; - return { - left: unaryOperator + newCode, - right: sourceCode.getText(lastOperand.node.right), - }; - })(); - newCode = `${left} ${operator} ${right}`; - } - else if (lastOperand.comparisonType === "NotBoolean" /* NullishComparisonType.NotBoolean */) { - newCode = `!${newCode}`; - } - const reportRange = getReportRange(chain, node.range, sourceCode); - const fix = fixer => fixer.replaceTextRange(reportRange, newCode); - return { - messageId: 'preferOptionalChain', - loc: { - start: sourceCode.getLocFromIndex(reportRange[0]), - end: sourceCode.getLocFromIndex(reportRange[1]), - }, - ...(0, util_1.getFixOrSuggest)({ - useFix: !useSuggestionFixer, - suggestion: { - messageId: 'optionalChainSuggest', - fix, - }, - }), - }; - function flattenChainExpression(sourceCode, node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.ChainExpression: - return flattenChainExpression(sourceCode, node.expression); - case utils_1.AST_NODE_TYPES.CallExpression: { - const argumentsText = (() => { - const closingParenToken = (0, util_1.nullThrows)(sourceCode.getLastToken(node), util_1.NullThrowsReasons.MissingToken('closing parenthesis', node.type)); - const openingParenToken = (0, util_1.nullThrows)(sourceCode.getFirstTokenBetween(node.typeArguments ?? node.callee, closingParenToken, util_1.isOpeningParenToken), util_1.NullThrowsReasons.MissingToken('opening parenthesis', node.type)); - return sourceCode.text.substring(openingParenToken.range[0], closingParenToken.range[1]); - })(); - const typeArgumentsText = (() => { - if (node.typeArguments == null) { - return ''; - } - return sourceCode.getText(node.typeArguments); - })(); - return [ - ...flattenChainExpression(sourceCode, node.callee), - { - nonNull: false, - optional: node.optional, - // no precedence for this - precedence: util_1.OperatorPrecedence.Invalid, - requiresDot: false, - text: typeArgumentsText + argumentsText, - }, - ]; - } - case utils_1.AST_NODE_TYPES.MemberExpression: { - const propertyText = sourceCode.getText(node.property); - return [ - ...flattenChainExpression(sourceCode, node.object), - { - nonNull: node.object.type === utils_1.AST_NODE_TYPES.TSNonNullExpression, - optional: node.optional, - precedence: node.computed - ? // computed is already wrapped in [] so no need to wrap in () as well - util_1.OperatorPrecedence.Invalid - : (0, util_1.getOperatorPrecedenceForNode)(node.property), - requiresDot: !node.computed, - text: node.computed ? `[${propertyText}]` : propertyText, - }, - ]; - } - case utils_1.AST_NODE_TYPES.TSNonNullExpression: - return flattenChainExpression(sourceCode, node.expression); - default: - return [ - { - nonNull: false, - optional: false, - precedence: (0, util_1.getOperatorPrecedenceForNode)(node), - requiresDot: false, - text: sourceCode.getText(node), - }, - ]; - } - } -} -function analyzeChain(context, parserServices, options, node, operator, chain) { - // need at least 2 operands in a chain for it to be a chain - if (chain.length <= 1 || - /* istanbul ignore next -- previous checks make this unreachable, but keep it for exhaustiveness check */ - operator === '??') { - return; - } - const analyzeOperand = (() => { - switch (operator) { - case '&&': - return analyzeAndChainOperand; - case '||': - return analyzeOrChainOperand; - } - })(); - // Things like x !== null && x !== undefined have two nodes, but they are - // one logical unit here, so we'll allow them to be grouped. - let subChain = []; - const maybeReportThenReset = (newChainSeed) => { - if (subChain.length > 1) { - const subChainFlat = subChain.flat(); - (0, checkNullishAndReport_1.checkNullishAndReport)(context, parserServices, options, subChainFlat.slice(0, -1).map(({ node }) => node), getReportDescriptor(context.sourceCode, parserServices, node, operator, options, subChainFlat)); - } - // we've reached the end of a chain of logical expressions - // i.e. the current operand doesn't belong to the previous chain. - // - // we don't want to throw away the current operand otherwise we will skip it - // and that can cause us to miss chains. So instead we seed the new chain - // with the current operand - // - // eg this means we can catch cases like: - // unrelated != null && foo != null && foo.bar != null; - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ first "chain" - // ^^^^^^^^^^^ newChainSeed - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ second chain - subChain = newChainSeed ? [newChainSeed] : []; - }; - for (let i = 0; i < chain.length; i += 1) { - const lastOperand = subChain.flat().at(-1); - const operand = chain[i]; - const validatedOperands = analyzeOperand(parserServices, operand, i, chain); - if (!validatedOperands) { - // TODO - #7170 - // check if the name is a superset/equal - if it is, then it likely - // intended to be part of the chain and something we should include in the - // report, eg - // foo == null || foo.bar; - // ^^^^^^^^^^^ valid OR chain - // ^^^^^^^ invalid OR chain logical, but still part of - // the chain for combination purposes - maybeReportThenReset(); - continue; - } - // in case multiple operands were consumed - make sure to correctly increment the index - i += validatedOperands.length - 1; - const currentOperand = validatedOperands[0]; - if (lastOperand) { - const comparisonResult = (0, compareNodes_1.compareNodes)(lastOperand.comparedName, - // purposely inspect and push the last operand because the prior operands don't matter - // this also means we won't false-positive in cases like - // foo !== null && foo !== undefined - validatedOperands[validatedOperands.length - 1].comparedName); - if (comparisonResult === "Subset" /* NodeComparisonResult.Subset */) { - // the operands are comparable, so we can continue searching - subChain.push(currentOperand); - } - else if (comparisonResult === "Invalid" /* NodeComparisonResult.Invalid */) { - maybeReportThenReset(validatedOperands); - } - else { - // purposely don't push this case because the node is a no-op and if - // we consider it then we might report on things like - // foo && foo - } - } - else { - subChain.push(currentOperand); - } - } - // check the leftovers - maybeReportThenReset(); -} -//# sourceMappingURL=analyzeChain.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map deleted file mode 100644 index d65498cb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyzeChain.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/analyzeChain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA+fA,oCAoHC;AA/mBD,oDAA0D;AAO1D,+CAA8C;AAC9C,+CAAiC;AAEjC,qCASoB;AACpB,mEAAgE;AAChE,iDAAoE;AAQpE,SAAS,YAAY,CACnB,cAAiD,EACjD,IAAmB,EACnB,UAAwB;IAExB,MAAM,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IACtE,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAYD,MAAM,sBAAsB,GAAoB,CAC9C,cAAc,EACd,OAAO,EACP,KAAK,EACL,KAAK,EACL,EAAE;IACF,QAAQ,OAAO,CAAC,cAAc,EAAE,CAAC;QAC/B,kDAAkC,CAAC,CAAC,CAAC;YACnC,MAAM,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;YACxC,IACE,WAAW,EAAE,c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Ac,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,oBAAoB,EAAE,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js deleted file mode 100644 index fe50be13..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkNullishAndReport = checkNullishAndReport; -const type_utils_1 = require("@typescript-eslint/type-utils"); -const ts_api_utils_1 = require("ts-api-utils"); -const ts = __importStar(require("typescript")); -function checkNullishAndReport(context, parserServices, { requireNullish }, maybeNullishNodes, descriptor) { - if (!requireNullish || - maybeNullishNodes.some(node => (0, ts_api_utils_1.unionTypeParts)(parserServices.getTypeAtLocation(node)).some(t => (0, type_utils_1.isTypeFlagSet)(t, ts.TypeFlags.Null | ts.TypeFlags.Undefined)))) { - context.report(descriptor); - } -} -//# sourceMappingURL=checkNullishAndReport.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map deleted file mode 100644 index 5ea7b747..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkNullishAndReport.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/checkNullishAndReport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,sDAoBC;AArCD,8DAA8D;AAS9D,+CAA8C;AAC9C,+CAAiC;AAOjC,SAAgB,qBAAqB,CACnC,OAGC,EACD,cAAiD,EACjD,EAAE,cAAc,EAA8B,EAC9C,iBAAwC,EACxC,UAA2D;IAE3D,IACE,CAAC,cAAc;QACf,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5B,IAAA,6BAAc,EAAC,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAA,0BAAa,EAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAC7D,CACF,EACD,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js deleted file mode 100644 index 8c1bfebd..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +++ /dev/null @@ -1,317 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.compareNodes = compareNodes; -const utils_1 = require("@typescript-eslint/utils"); -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -function compareArrays(arrayA, arrayB) { - if (arrayA.length !== arrayB.length) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - const result = arrayA.every((elA, idx) => { - const elB = arrayB[idx]; - if (elA == null || elB == null) { - return elA === elB; - } - return compareUnknownValues(elA, elB) === "Equal" /* NodeComparisonResult.Equal */; - }); - if (result) { - return "Equal" /* NodeComparisonResult.Equal */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; -} -function isValidNode(x) { - return (typeof x === 'object' && - x != null && - 'type' in x && - typeof x.type === 'string'); -} -function isValidChainExpressionToLookThrough(node) { - return (!(node.parent?.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.parent.object === node) && - !(node.parent?.type === utils_1.AST_NODE_TYPES.CallExpression && - node.parent.callee === node) && - node.type === utils_1.AST_NODE_TYPES.ChainExpression); -} -function compareUnknownValues(valueA, valueB) { - /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ - if (valueA == null || valueB == null) { - if (valueA !== valueB) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - return "Equal" /* NodeComparisonResult.Equal */; - } - /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ - if (!isValidNode(valueA) || !isValidNode(valueB)) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - return compareNodes(valueA, valueB); -} -function compareByVisiting(nodeA, nodeB) { - const currentVisitorKeys = visitor_keys_1.visitorKeys[nodeA.type]; - /* istanbul ignore if -- not possible for us to test this - it's just a sanity safeguard */ - if (currentVisitorKeys == null) { - // we don't know how to visit this node, so assume it's invalid to avoid false-positives / broken fixers - return "Invalid" /* NodeComparisonResult.Invalid */; - } - if (currentVisitorKeys.length === 0) { - // assume nodes with no keys are constant things like keywords - return "Equal" /* NodeComparisonResult.Equal */; - } - for (const key of currentVisitorKeys) { - // @ts-expect-error - dynamic access but it's safe - const nodeAChildOrChildren = nodeA[key]; - // @ts-expect-error - dynamic access but it's safe - const nodeBChildOrChildren = nodeB[key]; - if (Array.isArray(nodeAChildOrChildren)) { - const arrayA = nodeAChildOrChildren; - const arrayB = nodeBChildOrChildren; - const result = compareArrays(arrayA, arrayB); - if (result !== "Equal" /* NodeComparisonResult.Equal */) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // fallthrough to the next key as the key was "equal" - } - else { - const result = compareUnknownValues(nodeAChildOrChildren, nodeBChildOrChildren); - if (result !== "Equal" /* NodeComparisonResult.Equal */) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // fallthrough to the next key as the key was "equal" - } - } - return "Equal" /* NodeComparisonResult.Equal */; -} -function compareNodesUncached(nodeA, nodeB) { - if (nodeA.type !== nodeB.type) { - // special cases where nodes are allowed to be non-equal - // look through a chain expression node at the top-level because it only - // exists to delimit the end of an optional chain - // - // a?.b && a.b.c - // ^^^^ ChainExpression, MemberExpression - // ^^^^^ MemberExpression - // - // except for in this class of cases - // (a?.b).c && a.b.c - // because the parentheses have runtime meaning (sad face) - if (isValidChainExpressionToLookThrough(nodeA)) { - return compareNodes(nodeA.expression, nodeB); - } - if (isValidChainExpressionToLookThrough(nodeB)) { - return compareNodes(nodeA, nodeB.expression); - } - // look through the type-only non-null assertion because its existence could - // possibly be replaced by an optional chain instead - // - // a.b! && a.b.c - // ^^^^ TSNonNullExpression - if (nodeA.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { - return compareNodes(nodeA.expression, nodeB); - } - if (nodeB.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { - return compareNodes(nodeA, nodeB.expression); - } - // special case for subset optional chains where the node types don't match, - // but we want to try comparing by discarding the "extra" code - // - // a && a.b - // ^ compare this - // a && a() - // ^ compare this - // a.b && a.b() - // ^^^ compare this - // a() && a().b - // ^^^ compare this - // import.meta && import.meta.b - // ^^^^^^^^^^^ compare this - if (nodeA.type === utils_1.AST_NODE_TYPES.CallExpression || - nodeA.type === utils_1.AST_NODE_TYPES.Identifier || - nodeA.type === utils_1.AST_NODE_TYPES.MemberExpression || - nodeA.type === utils_1.AST_NODE_TYPES.MetaProperty) { - switch (nodeB.type) { - case utils_1.AST_NODE_TYPES.MemberExpression: - if (nodeB.property.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - // Private identifiers in optional chaining is not currently allowed - // TODO - handle this once TS supports it (https://github.com/microsoft/TypeScript/issues/42734) - return "Invalid" /* NodeComparisonResult.Invalid */; - } - if (compareNodes(nodeA, nodeB.object) !== "Invalid" /* NodeComparisonResult.Invalid */) { - return "Subset" /* NodeComparisonResult.Subset */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - case utils_1.AST_NODE_TYPES.CallExpression: - if (compareNodes(nodeA, nodeB.callee) !== "Invalid" /* NodeComparisonResult.Invalid */) { - return "Subset" /* NodeComparisonResult.Subset */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - default: - return "Invalid" /* NodeComparisonResult.Invalid */; - } - } - return "Invalid" /* NodeComparisonResult.Invalid */; - } - switch (nodeA.type) { - // these expressions create a new instance each time - so it makes no sense to compare the chain - case utils_1.AST_NODE_TYPES.ArrayExpression: - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.ClassExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.JSXElement: - case utils_1.AST_NODE_TYPES.JSXFragment: - case utils_1.AST_NODE_TYPES.NewExpression: - case utils_1.AST_NODE_TYPES.ObjectExpression: - return "Invalid" /* NodeComparisonResult.Invalid */; - // chaining from assignments could change the value irrevocably - so it makes no sense to compare the chain - case utils_1.AST_NODE_TYPES.AssignmentExpression: - return "Invalid" /* NodeComparisonResult.Invalid */; - case utils_1.AST_NODE_TYPES.CallExpression: { - const nodeBCall = nodeB; - // check for cases like - // foo() && foo()(bar) - // ^^^^^ nodeA - // ^^^^^^^^^^ nodeB - // we don't want to check the arguments in this case - const aSubsetOfB = compareNodes(nodeA, nodeBCall.callee); - if (aSubsetOfB !== "Invalid" /* NodeComparisonResult.Invalid */) { - return "Subset" /* NodeComparisonResult.Subset */; - } - const calleeCompare = compareNodes(nodeA.callee, nodeBCall.callee); - if (calleeCompare !== "Equal" /* NodeComparisonResult.Equal */) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // NOTE - we purposely ignore optional flag because for our purposes - // foo?.bar() && foo.bar?.()?.baz - // or - // foo.bar() && foo?.bar?.()?.baz - // are going to be exactly the same - const argumentCompare = compareArrays(nodeA.arguments, nodeBCall.arguments); - if (argumentCompare !== "Equal" /* NodeComparisonResult.Equal */) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - const typeParamCompare = compareNodes(nodeA.typeArguments, nodeBCall.typeArguments); - if (typeParamCompare === "Equal" /* NodeComparisonResult.Equal */) { - return "Equal" /* NodeComparisonResult.Equal */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - } - case utils_1.AST_NODE_TYPES.ChainExpression: - // special case handling for ChainExpression because it's allowed to be a subset - return compareNodes(nodeA, nodeB.expression); - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.PrivateIdentifier: - if (nodeA.name === nodeB.name) { - return "Equal" /* NodeComparisonResult.Equal */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - case utils_1.AST_NODE_TYPES.Literal: { - const nodeBLiteral = nodeB; - if (nodeA.raw === nodeBLiteral.raw && - nodeA.value === nodeBLiteral.value) { - return "Equal" /* NodeComparisonResult.Equal */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - } - case utils_1.AST_NODE_TYPES.MemberExpression: { - const nodeBMember = nodeB; - if (nodeBMember.property.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - // Private identifiers in optional chaining is not currently allowed - // TODO - handle this once TS supports it (https://github.com/microsoft/TypeScript/issues/42734) - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // check for cases like - // foo.bar && foo.bar.baz - // ^^^^^^^ nodeA - // ^^^^^^^^^^^ nodeB - // result === Equal - // - // foo.bar && foo.bar.baz.bam - // ^^^^^^^ nodeA - // ^^^^^^^^^^^^^^^ nodeB - // result === Subset - // - // we don't want to check the property in this case - const aSubsetOfB = compareNodes(nodeA, nodeBMember.object); - if (aSubsetOfB !== "Invalid" /* NodeComparisonResult.Invalid */) { - return "Subset" /* NodeComparisonResult.Subset */; - } - if (nodeA.computed !== nodeBMember.computed) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // NOTE - we purposely ignore optional flag because for our purposes - // foo?.bar && foo.bar?.baz - // or - // foo.bar && foo?.bar?.baz - // are going to be exactly the same - const objectCompare = compareNodes(nodeA.object, nodeBMember.object); - if (objectCompare !== "Equal" /* NodeComparisonResult.Equal */) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - return compareNodes(nodeA.property, nodeBMember.property); - } - case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: - case utils_1.AST_NODE_TYPES.TemplateLiteral: { - const nodeBTemplate = nodeB; - const areQuasisEqual = nodeA.quasis.length === nodeBTemplate.quasis.length && - nodeA.quasis.every((elA, idx) => { - const elB = nodeBTemplate.quasis[idx]; - return elA.value.cooked === elB.value.cooked; - }); - if (!areQuasisEqual) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - return "Equal" /* NodeComparisonResult.Equal */; - } - case utils_1.AST_NODE_TYPES.TemplateElement: { - const nodeBElement = nodeB; - if (nodeA.value.cooked === nodeBElement.value.cooked) { - return "Equal" /* NodeComparisonResult.Equal */; - } - return "Invalid" /* NodeComparisonResult.Invalid */; - } - // these aren't actually valid expressions. - // https://github.com/typescript-eslint/typescript-eslint/blob/20d7caee35ab84ae6381fdf04338c9e2b9e2bc48/packages/ast-spec/src/unions/Expression.ts#L37-L43 - case utils_1.AST_NODE_TYPES.ArrayPattern: - case utils_1.AST_NODE_TYPES.ObjectPattern: - /* istanbul ignore next */ - return "Invalid" /* NodeComparisonResult.Invalid */; - // update expression returns a number and also changes the value each time - so it makes no sense to compare the chain - case utils_1.AST_NODE_TYPES.UpdateExpression: - return "Invalid" /* NodeComparisonResult.Invalid */; - // yield returns the value passed to the `next` function, so it may not be the same each time - so it makes no sense to compare the chain - case utils_1.AST_NODE_TYPES.YieldExpression: - return "Invalid" /* NodeComparisonResult.Invalid */; - // general-case automatic handling of nodes to save us implementing every - // single case by hand. This just iterates the visitor keys to recursively - // check the children. - // - // Any specific logic cases or short-circuits should be listed as separate - // cases so that they don't fall into this generic handling - default: - return compareByVisiting(nodeA, nodeB); - } -} -const COMPARE_NODES_CACHE = new WeakMap(); -/** - * Compares two nodes' ASTs to determine if the A is equal to or a subset of B - */ -function compareNodes(nodeA, nodeB) { - if (nodeA == null || nodeB == null) { - if (nodeA !== nodeB) { - return "Invalid" /* NodeComparisonResult.Invalid */; - } - return "Equal" /* NodeComparisonResult.Equal */; - } - const cached = COMPARE_NODES_CACHE.get(nodeA)?.get(nodeB); - if (cached) { - return cached; - } - const result = compareNodesUncached(nodeA, nodeB); - let mapA = COMPARE_NODES_CACHE.get(nodeA); - if (mapA == null) { - mapA = new WeakMap(); - COMPARE_NODES_CACHE.set(nodeA, mapA); - } - mapA.set(nodeB, result); - return result; -} -//# sourceMappingURL=compareNodes.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map deleted file mode 100644 index 22f92cd5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compareNodes.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/compareNodes.ts"],"names":[],"mappings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3B,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QACnC,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;YACpB,oDAAoC;QACtC,CAAC;QACD,gDAAkC;IACpC,CAAC;IAED,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1D,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,IAAI,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,IAAI,GAAG,IAAI,OAAO,EAAE,CAAC;QACrB,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACxB,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js deleted file mode 100644 index c1677873..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +++ /dev/null @@ -1,281 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.gatherLogicalOperands = gatherLogicalOperands; -const utils_1 = require("@typescript-eslint/utils"); -const ts_api_utils_1 = require("ts-api-utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../../util"); -const NULLISH_FLAGS = ts.TypeFlags.Null | ts.TypeFlags.Undefined; -function isValidFalseBooleanCheckType(node, disallowFalseyLiteral, parserServices, options) { - const type = parserServices.getTypeAtLocation(node); - const types = (0, ts_api_utils_1.unionTypeParts)(type); - if (disallowFalseyLiteral) { - /* - ``` - declare const x: false | {a: string}; - x && x.a; - !x || x.a; - ``` - - We don't want to consider these two cases because the boolean expression - narrows out the non-nullish falsy cases - so converting the chain to `x?.a` - would introduce a build error - */ - if (types.some(t => (0, ts_api_utils_1.isBooleanLiteralType)(t) && t.intrinsicName === 'false') || - types.some(t => (0, ts_api_utils_1.isStringLiteralType)(t) && t.value === '') || - types.some(t => (0, ts_api_utils_1.isNumberLiteralType)(t) && t.value === 0) || - types.some(t => (0, ts_api_utils_1.isBigIntLiteralType)(t) && t.value.base10Value === '0')) { - return false; - } - } - let allowedFlags = NULLISH_FLAGS | ts.TypeFlags.Object; - if (options.checkAny === true) { - allowedFlags |= ts.TypeFlags.Any; - } - if (options.checkUnknown === true) { - allowedFlags |= ts.TypeFlags.Unknown; - } - if (options.checkString === true) { - allowedFlags |= ts.TypeFlags.StringLike; - } - if (options.checkNumber === true) { - allowedFlags |= ts.TypeFlags.NumberLike; - } - if (options.checkBoolean === true) { - allowedFlags |= ts.TypeFlags.BooleanLike; - } - if (options.checkBigInt === true) { - allowedFlags |= ts.TypeFlags.BigIntLike; - } - return types.every(t => (0, util_1.isTypeFlagSet)(t, allowedFlags)); -} -function gatherLogicalOperands(node, parserServices, sourceCode, options) { - const result = []; - const { operands, newlySeenLogicals } = flattenLogicalOperands(node); - for (const operand of operands) { - const areMoreOperands = operand !== operands.at(-1); - switch (operand.type) { - case utils_1.AST_NODE_TYPES.BinaryExpression: { - // check for "yoda" style logical: null != x - const { comparedExpression, comparedValue, isYoda } = (() => { - // non-yoda checks are by far the most common, so check for them first - const comparedValueRight = getComparisonValueType(operand.right); - if (comparedValueRight) { - return { - comparedExpression: operand.left, - comparedValue: comparedValueRight, - isYoda: false, - }; - } - return { - comparedExpression: operand.right, - comparedValue: getComparisonValueType(operand.left), - isYoda: true, - }; - })(); - if (comparedValue === "UndefinedStringLiteral" /* ComparisonValueType.UndefinedStringLiteral */) { - if (comparedExpression.type === utils_1.AST_NODE_TYPES.UnaryExpression && - comparedExpression.operator === 'typeof') { - const argument = comparedExpression.argument; - if (argument.type === utils_1.AST_NODE_TYPES.Identifier && - // typeof window === 'undefined' - (0, util_1.isReferenceToGlobalFunction)(argument.name, argument, sourceCode)) { - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - } - // typeof x.y === 'undefined' - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName: comparedExpression.argument, - comparisonType: operand.operator.startsWith('!') - ? "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ - : "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */, - isYoda, - node: operand, - }); - continue; - } - // y === 'undefined' - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - } - switch (operand.operator) { - case '!=': - case '==': - if (comparedValue === "Null" /* ComparisonValueType.Null */ || - comparedValue === "Undefined" /* ComparisonValueType.Undefined */) { - // x == null, x == undefined - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName: comparedExpression, - comparisonType: operand.operator.startsWith('!') - ? "NotEqualNullOrUndefined" /* NullishComparisonType.NotEqualNullOrUndefined */ - : "EqualNullOrUndefined" /* NullishComparisonType.EqualNullOrUndefined */, - isYoda, - node: operand, - }); - continue; - } - // x == something :( - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - case '!==': - case '===': { - const comparedName = comparedExpression; - switch (comparedValue) { - case "Null" /* ComparisonValueType.Null */: - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName, - comparisonType: operand.operator.startsWith('!') - ? "NotStrictEqualNull" /* NullishComparisonType.NotStrictEqualNull */ - : "StrictEqualNull" /* NullishComparisonType.StrictEqualNull */, - isYoda, - node: operand, - }); - continue; - case "Undefined" /* ComparisonValueType.Undefined */: - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName, - comparisonType: operand.operator.startsWith('!') - ? "NotStrictEqualUndefined" /* NullishComparisonType.NotStrictEqualUndefined */ - : "StrictEqualUndefined" /* NullishComparisonType.StrictEqualUndefined */, - isYoda, - node: operand, - }); - continue; - default: - // x === something :( - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - } - } - } - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - } - case utils_1.AST_NODE_TYPES.UnaryExpression: - if (operand.operator === '!' && - isValidFalseBooleanCheckType(operand.argument, areMoreOperands && node.operator === '||', parserServices, options)) { - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName: operand.argument, - comparisonType: "NotBoolean" /* NullishComparisonType.NotBoolean */, - isYoda: false, - node: operand, - }); - continue; - } - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - case utils_1.AST_NODE_TYPES.LogicalExpression: - // explicitly ignore the mixed logical expression cases - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - continue; - default: - if (isValidFalseBooleanCheckType(operand, areMoreOperands && node.operator === '&&', parserServices, options)) { - result.push({ - type: "Valid" /* OperandValidity.Valid */, - comparedName: operand, - comparisonType: "Boolean" /* NullishComparisonType.Boolean */, - isYoda: false, - node: operand, - }); - } - else { - result.push({ type: "Invalid" /* OperandValidity.Invalid */ }); - } - continue; - } - } - return { - operands: result, - newlySeenLogicals, - }; - /* - The AST is always constructed such the first element is always the deepest element. - I.e. for this code: `foo && foo.bar && foo.bar.baz && foo.bar.baz.buzz` - The AST will look like this: - { - left: { - left: { - left: foo - right: foo.bar - } - right: foo.bar.baz - } - right: foo.bar.baz.buzz - } - - So given any logical expression, we can perform a depth-first traversal to get - the operands in order. - - Note that this function purposely does not inspect mixed logical expressions - like `foo || foo.bar && foo.bar.baz` - separate selector - */ - function flattenLogicalOperands(node) { - const operands = []; - const newlySeenLogicals = new Set([node]); - const stack = [node.right, node.left]; - let current; - while ((current = stack.pop())) { - if (current.type === utils_1.AST_NODE_TYPES.LogicalExpression && - current.operator === node.operator) { - newlySeenLogicals.add(current); - stack.push(current.right); - stack.push(current.left); - } - else { - operands.push(current); - } - } - return { - operands, - newlySeenLogicals, - }; - } - function getComparisonValueType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.Literal: - // eslint-disable-next-line eqeqeq -- intentional exact comparison against null - if (node.value === null && node.raw === 'null') { - return "Null" /* ComparisonValueType.Null */; - } - if (node.value === 'undefined') { - return "UndefinedStringLiteral" /* ComparisonValueType.UndefinedStringLiteral */; - } - return null; - case utils_1.AST_NODE_TYPES.Identifier: - if (node.name === 'undefined') { - return "Undefined" /* ComparisonValueType.Undefined */; - } - return null; - } - return null; - } -} -//# sourceMappingURL=gatherLogicalOperands.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map deleted file mode 100644 index 3f5185ff..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gatherLogicalOperands.js","sourceRoot":"","sources":["../../../src/rules/prefer-optional-chain-utils/gatherLogicalOperands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkHA,sDAkQC;AAhXD,oDAA0D;AAE1D,+CAMsB;AACtB,+CAAiC;AAEjC,qCAAwE;AA6CxE,MAAM,aAAa,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;AACjE,SAAS,4BAA4B,CACnC,IAAmB,EACnB,qBAA8B,EAC9B,cAAiD,EACjD,OAAmC;IAEnC,MAAM,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,IAAI,qBAAqB,EAAE,CAAC;QAC1B;;;;;;;;;;UAUE;QACF,IACE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,mCAAoB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,KAAK,OAAO,CAAC;YACvE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;YACxD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,kCAAmB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,KAAK,GAAG,CAAC,EACtE,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,IAAI,YAAY,GAAG,aAAa,GAAG,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EAA+E;gBAC/E,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;oBAC/C,6CAAgC;gBAClC,CAAC;gBACD,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;oBAC/B,iFAAkD;gBACpD,CAAC;gBACD,OAAO,IAAI,CAAC;YAEd,KAAK,sBAAc,CAAC,UAAU;gBAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;oBAC9B,uDAAqC;gBACvC,CAAC;gBACD,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js deleted file mode 100644 index 73a8d4f5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const analyzeChain_1 = require("./prefer-optional-chain-utils/analyzeChain"); -const checkNullishAndReport_1 = require("./prefer-optional-chain-utils/checkNullishAndReport"); -const gatherLogicalOperands_1 = require("./prefer-optional-chain-utils/gatherLogicalOperands"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-optional-chain', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - preferOptionalChain: "Prefer using an optional chain expression instead, as it's more concise and easier to read.", - optionalChainSuggest: 'Change to an optional chain.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - checkAny: { - type: 'boolean', - description: 'Check operands that are typed as `any` when inspecting "loose boolean" operands.', - }, - checkUnknown: { - type: 'boolean', - description: 'Check operands that are typed as `unknown` when inspecting "loose boolean" operands.', - }, - checkString: { - type: 'boolean', - description: 'Check operands that are typed as `string` when inspecting "loose boolean" operands.', - }, - checkNumber: { - type: 'boolean', - description: 'Check operands that are typed as `number` when inspecting "loose boolean" operands.', - }, - checkBoolean: { - type: 'boolean', - description: 'Check operands that are typed as `boolean` when inspecting "loose boolean" operands.', - }, - checkBigInt: { - type: 'boolean', - description: 'Check operands that are typed as `bigint` when inspecting "loose boolean" operands.', - }, - requireNullish: { - type: 'boolean', - description: 'Skip operands that are not typed with `null` and/or `undefined` when inspecting "loose boolean" operands.', - }, - allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: { - type: 'boolean', - description: 'Allow autofixers that will change the return type of the expression. This option is considered unsafe as it may break the build.', - }, - }, - }, - ], - }, - defaultOptions: [ - { - checkAny: true, - checkUnknown: true, - checkString: true, - checkNumber: true, - checkBoolean: true, - checkBigInt: true, - requireNullish: false, - allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false, - }, - ], - create(context, [options]) { - const parserServices = (0, util_1.getParserServices)(context); - const seenLogicals = new Set(); - return { - // specific handling for `(foo ?? {}).bar` / `(foo || {}).bar` - 'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(node) { - const leftNode = node.left; - const rightNode = node.right; - const parentNode = node.parent; - const isRightNodeAnEmptyObjectLiteral = rightNode.type === utils_1.AST_NODE_TYPES.ObjectExpression && - rightNode.properties.length === 0; - if (!isRightNodeAnEmptyObjectLiteral || - parentNode.type !== utils_1.AST_NODE_TYPES.MemberExpression || - parentNode.optional) { - return; - } - seenLogicals.add(node); - function isLeftSideLowerPrecedence() { - const logicalTsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const leftTsNode = parserServices.esTreeNodeToTSNodeMap.get(leftNode); - const operator = ts.isBinaryExpression(logicalTsNode) - ? logicalTsNode.operatorToken.kind - : ts.SyntaxKind.Unknown; - const leftPrecedence = (0, util_1.getOperatorPrecedence)(leftTsNode.kind, operator); - return leftPrecedence < util_1.OperatorPrecedence.LeftHandSide; - } - (0, checkNullishAndReport_1.checkNullishAndReport)(context, parserServices, options, [leftNode], { - messageId: 'preferOptionalChain', - node: parentNode, - suggest: [ - { - messageId: 'optionalChainSuggest', - fix: (fixer) => { - const leftNodeText = context.sourceCode.getText(leftNode); - // Any node that is made of an operator with higher or equal precedence, - const maybeWrappedLeftNode = isLeftSideLowerPrecedence() - ? `(${leftNodeText})` - : leftNodeText; - const propertyToBeOptionalText = context.sourceCode.getText(parentNode.property); - const maybeWrappedProperty = parentNode.computed - ? `[${propertyToBeOptionalText}]` - : propertyToBeOptionalText; - return fixer.replaceTextRange(parentNode.range, `${maybeWrappedLeftNode}?.${maybeWrappedProperty}`); - }, - }, - ], - }); - }, - 'LogicalExpression[operator!="??"]'(node) { - if (seenLogicals.has(node)) { - return; - } - const { operands, newlySeenLogicals } = (0, gatherLogicalOperands_1.gatherLogicalOperands)(node, parserServices, context.sourceCode, options); - for (const logical of newlySeenLogicals) { - seenLogicals.add(logical); - } - let currentChain = []; - for (const operand of operands) { - if (operand.type === "Invalid" /* OperandValidity.Invalid */) { - (0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain); - currentChain = []; - } - else { - currentChain.push(operand); - } - } - // make sure to check whatever's left - if (currentChain.length > 0) { - (0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-optional-chain.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map deleted file mode 100644 index 6d1df18b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-optional-chain.js","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,+CAAiC;AAEjC,kCAKiB;AACjB,6EAA0E;AAC1E,+FAA4F;AAE5F,+FAG6D;AAM7D,kBAAe,IAAA,iBAAU,EAGvB;IACA,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yHAAyH;YAC3H,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,mBAAmB,EACjB,6FAA6F;YAC/F,oBAAoB,EAAE,8BAA8B;SACrD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,WA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OAAO,EACP,IAAI,EACJ,IAAI,CAAC,QAAQ,EACb,YAAY,CACb,CAAC;gBACJ,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js deleted file mode 100644 index dd46a3d5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-promise-reject-errors', - meta: { - type: 'suggestion', - docs: { - description: 'Require using Error objects as Promise rejection reasons', - recommended: 'recommended', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowEmptyReject: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - rejectAnError: 'Expected the Promise rejection reason to be an Error.', - }, - }, - defaultOptions: [ - { - allowEmptyReject: false, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - function checkRejectCall(callExpression) { - const argument = callExpression.arguments.at(0); - if (argument) { - const type = services.getTypeAtLocation(argument); - if ((0, util_1.isErrorLike)(services.program, type) || - (0, util_1.isReadonlyErrorLike)(services.program, type)) { - return; - } - } - else if (options.allowEmptyReject) { - return; - } - context.report({ - node: callExpression, - messageId: 'rejectAnError', - }); - } - function skipChainExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.ChainExpression - ? node.expression - : node; - } - function typeAtLocationIsLikePromise(node) { - const type = services.getTypeAtLocation(node); - return ((0, util_1.isPromiseConstructorLike)(services.program, type) || - (0, util_1.isPromiseLike)(services.program, type)); - } - return { - CallExpression(node) { - const callee = skipChainExpression(node.callee); - if (callee.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - return; - } - const rejectMethodCalled = callee.computed - ? callee.property.type === utils_1.AST_NODE_TYPES.Literal && - callee.property.value === 'reject' - : callee.property.name === 'reject'; - if (!rejectMethodCalled || - !typeAtLocationIsLikePromise(callee.object)) { - return; - } - checkRejectCall(node); - }, - NewExpression(node) { - const callee = skipChainExpression(node.callee); - if (!(0, util_1.isPromiseConstructorLike)(services.program, services.getTypeAtLocation(callee))) { - return; - } - const executor = node.arguments.at(0); - if (!executor || !(0, util_1.isFunction)(executor)) { - return; - } - const rejectParamNode = executor.params.at(1); - if (!rejectParamNode || !(0, util_1.isIdentifier)(rejectParamNode)) { - return; - } - // reject param is always present in variables declared by executor - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const rejectVariable = context.sourceCode - .getDeclaredVariables(executor) - .find(variable => variable.identifiers.includes(rejectParamNode)); - rejectVariable.references.forEach(ref => { - if (ref.identifier.parent.type !== utils_1.AST_NODE_TYPES.CallExpression || - ref.identifier !== ref.identifier.parent.callee) { - return; - } - checkRejectCall(ref.identifier.parent); - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-promise-reject-errors.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map deleted file mode 100644 index 697b0489..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-promise-reject-errors.js","sourceRoot":"","sources":["../../src/rules/prefer-promise-reject-errors.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCASiB;AAUjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE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EAAC,QAAQ,CAAC,EAAE,CAAC;oBACvC,OAAO;gBACT,CAAC;gBACD,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC9C,IAAI,CAAC,eAAe,IAAI,CAAC,IAAA,mBAAY,EAAC,eAAe,CAAC,EAAE,CAAC;oBACvD,OAAO;gBACT,CAAC;gBAED,mEAAmE;gBACnE,oEAAoE;gBACpE,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU;qBACtC,oBAAoB,CAAC,QAAQ,CAAC;qBAC9B,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAE,CAAC;gBAErE,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACtC,IACE,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;wBAC5D,GAAG,CAAC,UAAU,KAAK,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAC/C,CAAC;wBACD,OAAO;oBACT,CAAC;oBAED,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;gBACzC,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js deleted file mode 100644 index 324bb193..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-readonly-parameter-types', - meta: { - type: 'suggestion', - docs: { - description: 'Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs', - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allow: util_1.readonlynessOptionsSchema.properties.allow, - checkParameterProperties: { - type: 'boolean', - }, - ignoreInferredTypes: { - type: 'boolean', - }, - treatMethodsAsReadonly: util_1.readonlynessOptionsSchema.properties.treatMethodsAsReadonly, - }, - }, - ], - messages: { - shouldBeReadonly: 'Parameter should be a read only type.', - }, - }, - defaultOptions: [ - { - allow: util_1.readonlynessOptionsDefaults.allow, - checkParameterProperties: true, - ignoreInferredTypes: false, - treatMethodsAsReadonly: util_1.readonlynessOptionsDefaults.treatMethodsAsReadonly, - }, - ], - create(context, [{ allow, checkParameterProperties, ignoreInferredTypes, treatMethodsAsReadonly, },]) { - const services = (0, util_1.getParserServices)(context); - return { - [[ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSMethodSignature, - ].join(', ')](node) { - for (const param of node.params) { - if (!checkParameterProperties && - param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { - continue; - } - const actualParam = param.type === utils_1.AST_NODE_TYPES.TSParameterProperty - ? param.parameter - : param; - if (ignoreInferredTypes && actualParam.typeAnnotation == null) { - continue; - } - const type = services.getTypeAtLocation(actualParam); - const isReadOnly = (0, util_1.isTypeReadonly)(services.program, type, { - treatMethodsAsReadonly: !!treatMethodsAsReadonly, - allow, - }); - if (!isReadOnly) { - context.report({ - node: actualParam, - messageId: 'shouldBeReadonly', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-readonly-parameter-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map deleted file mode 100644 index dedf3076..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-readonly-parameter-types.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly-parameter-types.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAG1D,kCAMiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,gGAAgG;YAClG,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE,gCAAyB,CAAC,UAAU,CAAC,KAAK;oBACjD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,SAAS;qBAChB;oBACD,sBAAsB,EACpB,gCAAyB,CAAC,UAAU,CAAC,sBAAsB;iBAC9D;aACF;SACF;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,uCAAuC;SAC1D;KACF;IACD,cAAc,EAAE;QACd;YACE,KAAK,EAAE,kCAA2B,CAAC,KAAK;YACxC,wBAAwB,EAAE,IAAI;YAC9B,mBAAmB,EAAE,KAAK;YAC1B,sBAAsB,EACpB,kCAA2B,CAAC,sBAAsB;SACrD;KACF;IACD,MAAM,CACJ,OAAO,EACP,CACE,EACE,KAAK,EACL,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB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CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js deleted file mode 100644 index 2ffc4c97..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +++ /dev/null @@ -1,325 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getMemberHeadLoc_1 = require("../util/getMemberHeadLoc"); -const functionScopeBoundaries = [ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.MethodDefinition, -].join(', '); -exports.default = (0, util_1.createRule)({ - name: 'prefer-readonly', - meta: { - docs: { - description: "Require private members to be marked as `readonly` if they're never modified outside of the constructor", - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferReadonly: "Member '{{name}}' is never reassigned; mark it as `readonly`.", - }, - schema: [ - { - additionalProperties: false, - properties: { - onlyInlineLambdas: { - type: 'boolean', - }, - }, - type: 'object', - }, - ], - type: 'suggestion', - }, - defaultOptions: [{ onlyInlineLambdas: false }], - create(context, [{ onlyInlineLambdas }]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const classScopeStack = []; - function handlePropertyAccessExpression(node, parent, classScope) { - if (ts.isBinaryExpression(parent)) { - handleParentBinaryExpression(node, parent, classScope); - return; - } - if (ts.isDeleteExpression(parent) || isDestructuringAssignment(node)) { - classScope.addVariableModification(node); - return; - } - if (ts.isPostfixUnaryExpression(parent) || - ts.isPrefixUnaryExpression(parent)) { - handleParentPostfixOrPrefixUnaryExpression(parent, classScope); - } - } - function handleParentBinaryExpression(node, parent, classScope) { - if (parent.left === node && - tsutils.isAssignmentKind(parent.operatorToken.kind)) { - classScope.addVariableModification(node); - } - } - function handleParentPostfixOrPrefixUnaryExpression(node, classScope) { - if (node.operator === ts.SyntaxKind.PlusPlusToken || - node.operator === ts.SyntaxKind.MinusMinusToken) { - classScope.addVariableModification(node.operand); - } - } - function isDestructuringAssignment(node) { - let current = node.parent; - while (current) { - const parent = current.parent; - if (ts.isObjectLiteralExpression(parent) || - ts.isArrayLiteralExpression(parent) || - ts.isSpreadAssignment(parent) || - (ts.isSpreadElement(parent) && - ts.isArrayLiteralExpression(parent.parent))) { - current = parent; - } - else if (ts.isBinaryExpression(parent) && - !ts.isPropertyAccessExpression(current)) { - return (parent.left === current && - parent.operatorToken.kind === ts.SyntaxKind.EqualsToken); - } - else { - break; - } - } - return false; - } - function isFunctionScopeBoundaryInStack(node) { - if (classScopeStack.length === 0) { - return false; - } - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - if (ts.isConstructorDeclaration(tsNode)) { - return false; - } - return tsutils.isFunctionScopeBoundary(tsNode); - } - function getEsNodesFromViolatingNode(violatingNode) { - return { - esNode: services.tsNodeToESTreeNodeMap.get(violatingNode), - nameNode: services.tsNodeToESTreeNodeMap.get(violatingNode.name), - }; - } - return { - 'ClassDeclaration, ClassExpression'(node) { - classScopeStack.push(new ClassScope(checker, services.esTreeNodeToTSNodeMap.get(node), onlyInlineLambdas)); - }, - 'ClassDeclaration, ClassExpression:exit'() { - const finalizedClassScope = (0, util_1.nullThrows)(classScopeStack.pop(), 'Stack should exist on class exit'); - for (const violatingNode of finalizedClassScope.finalizeUnmodifiedPrivateNonReadonlys()) { - const { esNode, nameNode } = getEsNodesFromViolatingNode(violatingNode); - const reportNodeOrLoc = (() => { - switch (esNode.type) { - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - return { loc: (0, getMemberHeadLoc_1.getMemberHeadLoc)(context.sourceCode, esNode) }; - case utils_1.AST_NODE_TYPES.TSParameterProperty: - return { - loc: (0, getMemberHeadLoc_1.getParameterPropertyHeadLoc)(context.sourceCode, esNode, nameNode.name), - }; - default: - return { node: esNode }; - } - })(); - context.report({ - ...reportNodeOrLoc, - data: { - name: context.sourceCode.getText(nameNode), - }, - fix: fixer => fixer.insertTextBefore(nameNode, 'readonly '), - messageId: 'preferReadonly', - }); - } - }, - MemberExpression(node) { - if (classScopeStack.length !== 0 && !node.computed) { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - handlePropertyAccessExpression(tsNode, tsNode.parent, classScopeStack[classScopeStack.length - 1]); - } - }, - [functionScopeBoundaries](node) { - if (utils_1.ASTUtils.isConstructor(node)) { - classScopeStack[classScopeStack.length - 1].enterConstructor(services.esTreeNodeToTSNodeMap.get(node)); - } - else if (isFunctionScopeBoundaryInStack(node)) { - classScopeStack[classScopeStack.length - 1].enterNonConstructor(); - } - }, - [`${functionScopeBoundaries}:exit`](node) { - if (utils_1.ASTUtils.isConstructor(node)) { - classScopeStack[classScopeStack.length - 1].exitConstructor(); - } - else if (isFunctionScopeBoundaryInStack(node)) { - classScopeStack[classScopeStack.length - 1].exitNonConstructor(); - } - }, - }; - }, -}); -const OUTSIDE_CONSTRUCTOR = -1; -const DIRECTLY_INSIDE_CONSTRUCTOR = 0; -var TypeToClassRelation; -(function (TypeToClassRelation) { - TypeToClassRelation[TypeToClassRelation["ClassAndInstance"] = 0] = "ClassAndInstance"; - TypeToClassRelation[TypeToClassRelation["Class"] = 1] = "Class"; - TypeToClassRelation[TypeToClassRelation["Instance"] = 2] = "Instance"; - TypeToClassRelation[TypeToClassRelation["None"] = 3] = "None"; -})(TypeToClassRelation || (TypeToClassRelation = {})); -class ClassScope { - checker; - onlyInlineLambdas; - privateModifiableMembers = new Map(); - privateModifiableStatics = new Map(); - memberVariableModifications = new Set(); - staticVariableModifications = new Set(); - classType; - constructorScopeDepth = OUTSIDE_CONSTRUCTOR; - constructor(checker, classNode, onlyInlineLambdas) { - this.checker = checker; - this.onlyInlineLambdas = onlyInlineLambdas; - const classType = checker.getTypeAtLocation(classNode); - if (tsutils.isIntersectionType(classType)) { - this.classType = classType.types[0]; - } - else { - this.classType = classType; - } - for (const member of classNode.members) { - if (ts.isPropertyDeclaration(member)) { - this.addDeclaredVariable(member); - } - } - } - addDeclaredVariable(node) { - if (!(tsutils.isModifierFlagSet(node, ts.ModifierFlags.Private) || - node.name.kind === ts.SyntaxKind.PrivateIdentifier) || - tsutils.isModifierFlagSet(node, ts.ModifierFlags.Accessor | ts.ModifierFlags.Readonly) || - ts.isComputedPropertyName(node.name)) { - return; - } - if (this.onlyInlineLambdas && - node.initializer !== undefined && - !ts.isArrowFunction(node.initializer)) { - return; - } - (tsutils.isModifierFlagSet(node, ts.ModifierFlags.Static) - ? this.privateModifiableStatics - : this.privateModifiableMembers).set(node.name.getText(), node); - } - getTypeToClassRelation(type) { - if (type.isIntersection()) { - let result = TypeToClassRelation.None; - for (const subType of type.types) { - const subTypeResult = this.getTypeToClassRelation(subType); - switch (subTypeResult) { - case TypeToClassRelation.Class: - if (result === TypeToClassRelation.Instance) { - return TypeToClassRelation.ClassAndInstance; - } - result = TypeToClassRelation.Class; - break; - case TypeToClassRelation.Instance: - if (result === TypeToClassRelation.Class) { - return TypeToClassRelation.ClassAndInstance; - } - result = TypeToClassRelation.Instance; - break; - } - } - return result; - } - if (type.isUnion()) { - // any union of class/instance and something else will prevent access to - // private members, so we assume that union consists only of classes - // or class instances, because otherwise tsc will report an error - return this.getTypeToClassRelation(type.types[0]); - } - if (!type.getSymbol() || !(0, util_1.typeIsOrHasBaseType)(type, this.classType)) { - return TypeToClassRelation.None; - } - const typeIsClass = tsutils.isObjectType(type) && - tsutils.isObjectFlagSet(type, ts.ObjectFlags.Anonymous); - if (typeIsClass) { - return TypeToClassRelation.Class; - } - return TypeToClassRelation.Instance; - } - addVariableModification(node) { - const modifierType = this.checker.getTypeAtLocation(node.expression); - const relationOfModifierTypeToClass = this.getTypeToClassRelation(modifierType); - if (relationOfModifierTypeToClass === TypeToClassRelation.Instance && - this.constructorScopeDepth === DIRECTLY_INSIDE_CONSTRUCTOR) { - return; - } - if (relationOfModifierTypeToClass === TypeToClassRelation.Instance || - relationOfModifierTypeToClass === TypeToClassRelation.ClassAndInstance) { - this.memberVariableModifications.add(node.name.text); - } - if (relationOfModifierTypeToClass === TypeToClassRelation.Class || - relationOfModifierTypeToClass === TypeToClassRelation.ClassAndInstance) { - this.staticVariableModifications.add(node.name.text); - } - } - enterConstructor(node) { - this.constructorScopeDepth = DIRECTLY_INSIDE_CONSTRUCTOR; - for (const parameter of node.parameters) { - if (tsutils.isModifierFlagSet(parameter, ts.ModifierFlags.Private)) { - this.addDeclaredVariable(parameter); - } - } - } - exitConstructor() { - this.constructorScopeDepth = OUTSIDE_CONSTRUCTOR; - } - enterNonConstructor() { - if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { - this.constructorScopeDepth += 1; - } - } - exitNonConstructor() { - if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { - this.constructorScopeDepth -= 1; - } - } - finalizeUnmodifiedPrivateNonReadonlys() { - this.memberVariableModifications.forEach(variableName => { - this.privateModifiableMembers.delete(variableName); - }); - this.staticVariableModifications.forEach(variableName => { - this.privateModifiableStatics.delete(variableName); - }); - return [ - ...Array.from(this.privateModifiableMembers.values()), - ...Array.from(this.privateModifiableStatics.values()), - ]; - } -} -//# sourceMappingURL=prefer-readonly.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map deleted file mode 100644 index 28b28ad2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAoE;AACpE,sDAAwC;AACxC,+CAAiC;AAEjC,kCAKiB;AACjB,+DAGkC;AASlC,MAAM,uBAAuB,GAAG;IAC9B,sBAAc,CAAC,uBAAuB;IACtC,sBAAc,CAAC,mBAAmB;IAClC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,gBAAgB;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,yGAAyG;YAC3G,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,IAAI,EAAE,QAAQ;aACf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AC,qBAAqB,KAAK,mBAAmB,EAAE,CAAC;YACvD,IAAI,CAAC,qBAAqB,IAAI,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEM,kBAAkB;QACvB,IAAI,IAAI,CAAC,qBAAqB,KAAK,mBAAmB,EAAE,CAAC;YACvD,IAAI,CAAC,qBAAqB,IAAI,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEM,qCAAqC;QAC1C,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACtD,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACtD,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;YACrD,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;SACtD,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js deleted file mode 100644 index 23ea307f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -const getMemberExpressionName = (member) => { - if (!member.computed) { - return member.property.name; - } - if (member.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof member.property.value === 'string') { - return member.property.value; - } - return null; -}; -exports.default = (0, util_1.createRule)({ - name: 'prefer-reduce-type-parameter', - meta: { - type: 'problem', - docs: { - description: 'Enforce using type parameter when calling `Array#reduce` instead of casting', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - preferTypeParameter: 'Unnecessary cast: Array#reduce accepts a type parameter for the default value.', - }, - fixable: 'code', - schema: [], - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function isArrayType(type) { - return tsutils - .unionTypeParts(type) - .every(unionPart => tsutils - .intersectionTypeParts(unionPart) - .every(t => checker.isArrayType(t) || checker.isTupleType(t))); - } - return { - 'CallExpression > MemberExpression.callee'(callee) { - if (getMemberExpressionName(callee) !== 'reduce') { - return; - } - const [, secondArg] = callee.parent.arguments; - if (callee.parent.arguments.length < 2 || !(0, util_1.isTypeAssertion)(secondArg)) { - return; - } - // Get the symbol of the `reduce` method. - const calleeObjType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); - // Check the owner type of the `reduce` method. - if (isArrayType(calleeObjType)) { - context.report({ - messageId: 'preferTypeParameter', - node: secondArg, - fix: fixer => { - const fixes = [ - fixer.removeRange([ - secondArg.range[0], - secondArg.expression.range[0], - ]), - fixer.removeRange([ - secondArg.expression.range[1], - secondArg.range[1], - ]), - ]; - if (!callee.parent.typeArguments) { - fixes.push(fixer.insertTextAfter(callee, `<${context.sourceCode.getText(secondArg.typeAnnotation)}>`)); - } - return fixes; - }, - }); - return; - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-reduce-type-parameter.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map deleted file mode 100644 index ecb851a5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAKiB;AAMjB,MAAM,uBAAuB,GAAG,CAC9B,MAAiC,EAClB,EAAE;IACjB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,EACzC,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC/B,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6E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,qBAAqB;wBAChC,IAAI,EAAE,SAAS;wBACf,GAAG,EAAE,KAAK,CAAC,EAAE;4BACX,MAAM,KAAK,GAAG;gCACZ,KAAK,CAAC,WAAW,CAAC;oCAChB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oCAClB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;iCAC9B,CAAC;gCACF,KAAK,CAAC,WAAW,CAAC;oCAChB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;oCAC7B,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;iCACnB,CAAC;6BACH,CAAC;4BAEF,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;gCACjC,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,eAAe,CACnB,MAAM,EACN,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CAC5D,CACF,CAAC;4BACJ,CAAC;4BAED,OAAO,KAAK,CAAC;wBACf,CAAC;qBACF,CAAC,CAAC;oBAEH,OAAO;gBACT,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js deleted file mode 100644 index 13437968..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +++ /dev/null @@ -1,166 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -var ArgumentType; -(function (ArgumentType) { - ArgumentType[ArgumentType["Other"] = 0] = "Other"; - ArgumentType[ArgumentType["String"] = 1] = "String"; - ArgumentType[ArgumentType["RegExp"] = 2] = "RegExp"; - ArgumentType[ArgumentType["Both"] = 3] = "Both"; -})(ArgumentType || (ArgumentType = {})); -exports.default = (0, util_1.createRule)({ - name: 'prefer-regexp-exec', - defaultOptions: [], - meta: { - type: 'suggestion', - fixable: 'code', - docs: { - description: 'Enforce `RegExp#exec` over `String#match` if no global flag is provided', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - messages: { - regExpExecOverStringMatch: 'Use the `RegExp#exec()` method instead.', - }, - schema: [], - }, - create(context) { - const globalScope = context.sourceCode.getScope(context.sourceCode.ast); - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - /** - * Check if a given node type is a string. - * @param type The node type to check. - */ - function isStringType(type) { - return (0, util_1.getTypeName)(checker, type) === 'string'; - } - /** - * Check if a given node type is a RegExp. - * @param type The node type to check. - */ - function isRegExpType(type) { - return (0, util_1.getTypeName)(checker, type) === 'RegExp'; - } - function collectArgumentTypes(types) { - let result = ArgumentType.Other; - for (const type of types) { - if (isRegExpType(type)) { - result |= ArgumentType.RegExp; - } - else if (isStringType(type)) { - result |= ArgumentType.String; - } - } - return result; - } - /** - * Returns true if and only if we have syntactic proof that the /g flag is - * absent. Returns false in all other cases (i.e. it still might or might - * not contain the global flag). - */ - function definitelyDoesNotContainGlobalFlag(node) { - if ((node.type === utils_1.AST_NODE_TYPES.CallExpression || - node.type === utils_1.AST_NODE_TYPES.NewExpression) && - node.callee.type === utils_1.AST_NODE_TYPES.Identifier && - node.callee.name === 'RegExp') { - const flags = node.arguments.at(1); - return !(flags?.type === utils_1.AST_NODE_TYPES.Literal && - typeof flags.value === 'string' && - flags.value.includes('g')); - } - return false; - } - return { - "CallExpression[arguments.length=1] > MemberExpression.callee[property.name='match'][computed=false]"(memberNode) { - const objectNode = memberNode.object; - const callNode = memberNode.parent; - const [argumentNode] = callNode.arguments; - const argumentValue = (0, util_1.getStaticValue)(argumentNode, globalScope); - if (!isStringType(services.getTypeAtLocation(objectNode))) { - return; - } - // Don't report regular expressions with global flag. - if ((!argumentValue && - !definitelyDoesNotContainGlobalFlag(argumentNode)) || - (argumentValue && - argumentValue.value instanceof RegExp && - argumentValue.value.flags.includes('g'))) { - return; - } - if (argumentNode.type === utils_1.AST_NODE_TYPES.Literal && - typeof argumentNode.value === 'string') { - let regExp; - try { - regExp = RegExp(argumentNode.value); - } - catch { - return; - } - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: callNode, - innerNode: [objectNode], - wrap: objectCode => `${regExp.toString()}.exec(${objectCode})`, - }), - }); - } - const argumentType = services.getTypeAtLocation(argumentNode); - const argumentTypes = collectArgumentTypes(tsutils.unionTypeParts(argumentType)); - switch (argumentTypes) { - case ArgumentType.RegExp: - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: callNode, - innerNode: [objectNode, argumentNode], - wrap: (objectCode, argumentCode) => `${argumentCode}.exec(${objectCode})`, - }), - }); - case ArgumentType.String: - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: callNode, - innerNode: [objectNode, argumentNode], - wrap: (objectCode, argumentCode) => `RegExp(${argumentCode}).exec(${objectCode})`, - }), - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-regexp-exec.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map deleted file mode 100644 index 5b1e4720..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAMiB;AAEjB,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,iDAAS,CAAA;IACT,mDAAe,CAAA;IACf,mDAAe,CAAA;IACf,+CAAsB,CAAA;AACxB,CAAC,EALI,YAAY,KAAZ,YAAY,QAKhB;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE;YACJ,WAAW,EACT,yEAAyE;YAC3E,WAAW,EAAE,WAAW;YACxB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,yBAAyB,EAAE,yCAAyC;SACrE;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAA,wBA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ACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js deleted file mode 100644 index 1b6d74ef..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-return-this-type', - defaultOptions: [], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce that `this` is used when only `this` type is returned', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - useThisType: 'Use `this` type instead.', - }, - schema: [], - fixable: 'code', - }, - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function tryGetNameInType(name, typeNode) { - if (typeNode.type === utils_1.AST_NODE_TYPES.TSTypeReference && - typeNode.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - typeNode.typeName.name === name) { - return typeNode; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { - for (const type of typeNode.types) { - const found = tryGetNameInType(name, type); - if (found) { - return found; - } - } - } - return undefined; - } - function isThisSpecifiedInParameters(originalFunc) { - const firstArg = originalFunc.params.at(0); - return !!(firstArg?.type === utils_1.AST_NODE_TYPES.Identifier && firstArg.name === 'this'); - } - function isFunctionReturningThis(originalFunc, originalClass) { - if (isThisSpecifiedInParameters(originalFunc)) { - return false; - } - const func = services.esTreeNodeToTSNodeMap.get(originalFunc); - if (!func.body) { - return false; - } - const classType = services.getTypeAtLocation(originalClass); - if (func.body.kind !== ts.SyntaxKind.Block) { - const type = checker.getTypeAtLocation(func.body); - return classType.thisType === type; - } - let hasReturnThis = false; - let hasReturnClassType = false; - (0, util_1.forEachReturnStatement)(func.body, stmt => { - const expr = stmt.expression; - if (!expr) { - return; - } - // fast check - if (expr.kind === ts.SyntaxKind.ThisKeyword) { - hasReturnThis = true; - return; - } - const type = checker.getTypeAtLocation(expr); - if (classType === type) { - hasReturnClassType = true; - return true; - } - if (classType.thisType === type) { - hasReturnThis = true; - return; - } - return; - }); - return !hasReturnClassType && hasReturnThis; - } - function checkFunction(originalFunc, originalClass) { - const className = originalClass.id?.name; - if (!className || !originalFunc.returnType) { - return; - } - const node = tryGetNameInType(className, originalFunc.returnType.typeAnnotation); - if (!node) { - return; - } - if (isFunctionReturningThis(originalFunc, originalClass)) { - context.report({ - node, - messageId: 'useThisType', - fix: fixer => fixer.replaceText(node, 'this'), - }); - } - } - return { - 'ClassBody > MethodDefinition'(node) { - checkFunction(node.value, node.parent.parent); - }, - 'ClassBody > PropertyDefinition'(node) { - if (!(node.value?.type === utils_1.AST_NODE_TYPES.FunctionExpression || - node.value?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { - return; - } - checkFunction(node.value, node.parent.parent); - }, - }; - }, -}); -//# sourceMappingURL=prefer-return-this-type.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map deleted file mode 100644 index ed9b2716..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-return-this-type.js","sourceRoot":"","sources":["../../src/rules/prefer-return-this-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAgF;AAUhF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,0BAA0B;SACxC;QACD,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,MAAM;KAChB;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD,SAAS,gBAAgB,CACvB,IAAY,EACZ,QAA2B;YAE3B,IACE,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAChD,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBACpD,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI,EAC/B,CAAC;gBACD,OAAO,QAAQ,CAAC;YAClB,CAAC;YAED,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,EAAE,CAAC;gBACjD,KAAK,MA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iBAC9C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,8BAA8B,CAAC,IAA+B;gBAC5D,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;YACD,gCAAgC,CAC9B,IAAiC;gBAEjC,IACE,CAAC,CACC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,kBAAkB;oBACtD,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB,CAC5D,EACD,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAA8B,CAAC,CAAC;YACxE,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js deleted file mode 100644 index 14f443b0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +++ /dev/null @@ -1,522 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexpp_1 = require("@eslint-community/regexpp"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const EQ_OPERATORS = /^[=!]=/; -const regexpp = new regexpp_1.RegExpParser(); -exports.default = (0, util_1.createRule)({ - name: 'prefer-string-starts-ends-with', - defaultOptions: [{ allowSingleElementEquality: 'never' }], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings', - recommended: 'stylistic', - requiresTypeChecking: true, - }, - messages: { - preferStartsWith: "Use 'String#startsWith' method instead.", - preferEndsWith: "Use the 'String#endsWith' method instead.", - }, - schema: [ - { - additionalProperties: false, - properties: { - allowSingleElementEquality: { - description: 'Whether to allow equality checks against the first or last element of a string.', - enum: ['always', 'never'], - type: 'string', - }, - }, - type: 'object', - }, - ], - fixable: 'code', - }, - create(context, [{ allowSingleElementEquality }]) { - const globalScope = context.sourceCode.getScope(context.sourceCode.ast); - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - /** - * Check if a given node is a string. - * @param node The node to check. - */ - function isStringType(node) { - const objectType = services.getTypeAtLocation(node); - return (0, util_1.getTypeName)(checker, objectType) === 'string'; - } - /** - * Check if a given node is a `Literal` node that is null. - * @param node The node to check. - */ - function isNull(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value == null; - } - /** - * Check if a given node is a `Literal` node that is a given value. - * @param node The node to check. - * @param value The expected value of the `Literal` node. - */ - function isNumber(node, value) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value === value; - } - /** - * Check if a given node is a `Literal` node that is a character. - * @param node The node to check. - */ - function isCharacter(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return (evaluated != null && - typeof evaluated.value === 'string' && - // checks if the string is a character long - evaluated.value[0] === evaluated.value); - } - /** - * Check if a given node is `==`, `===`, `!=`, or `!==`. - * @param node The node to check. - */ - function isEqualityComparison(node) { - return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - EQ_OPERATORS.test(node.operator)); - } - /** - * Check if two given nodes are the same meaning. - * @param node1 A node to compare. - * @param node2 Another node to compare. - */ - function isSameTokens(node1, node2) { - const tokens1 = context.sourceCode.getTokens(node1); - const tokens2 = context.sourceCode.getTokens(node2); - if (tokens1.length !== tokens2.length) { - return false; - } - for (let i = 0; i < tokens1.length; ++i) { - const token1 = tokens1[i]; - const token2 = tokens2[i]; - if (token1.type !== token2.type || token1.value !== token2.value) { - return false; - } - } - return true; - } - /** - * Check if a given node is the expression of the length of a string. - * - * - If `length` property access of `expectedObjectNode`, it's `true`. - * E.g., `foo` → `foo.length` / `"foo"` → `"foo".length` - * - If `expectedObjectNode` is a string literal, `node` can be a number. - * E.g., `"foo"` → `3` - * - * @param node The node to check. - * @param expectedObjectNode The node which is expected as the receiver of `length` property. - */ - function isLengthExpression(node, expectedObjectNode) { - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { - return ((0, util_1.getPropertyName)(node, globalScope) === 'length' && - isSameTokens(node.object, expectedObjectNode)); - } - const evaluatedLength = (0, util_1.getStaticValue)(node, globalScope); - const evaluatedString = (0, util_1.getStaticValue)(expectedObjectNode, globalScope); - return (evaluatedLength != null && - evaluatedString != null && - typeof evaluatedLength.value === 'number' && - typeof evaluatedString.value === 'string' && - evaluatedLength.value === evaluatedString.value.length); - } - /** - * Returns true if `node` is `-substring.length` or - * `parentString.length - substring.length` - */ - function isLengthAheadOfEnd(node, substring, parentString) { - return ((node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === '-' && - isLengthExpression(node.argument, substring)) || - (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '-' && - isLengthExpression(node.left, parentString) && - isLengthExpression(node.right, substring))); - } - /** - * Check if a given node is the expression of the last index. - * - * E.g. `foo.length - 1` - * - * @param node The node to check. - * @param expectedObjectNode The node which is expected as the receiver of `length` property. - */ - function isLastIndexExpression(node, expectedObjectNode) { - return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '-' && - isLengthExpression(node.left, expectedObjectNode) && - isNumber(node.right, 1)); - } - /** - * Get the range of the property of a given `MemberExpression` node. - * - * - `obj[foo]` → the range of `[foo]` - * - `obf.foo` → the range of `.foo` - * - `(obj).foo` → the range of `.foo` - * - * @param node The member expression node to get. - */ - function getPropertyRange(node) { - const dotOrOpenBracket = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.object, util_1.isNotClosingParenToken), util_1.NullThrowsReasons.MissingToken('closing parenthesis', 'member')); - return [dotOrOpenBracket.range[0], node.range[1]]; - } - /** - * Parse a given `RegExp` pattern to that string if it's a static string. - * @param pattern The RegExp pattern text to parse. - * @param unicode Whether the RegExp is unicode. - */ - function parseRegExpText(pattern, unicode) { - // Parse it. - const ast = regexpp.parsePattern(pattern, undefined, undefined, { - unicode, - }); - if (ast.alternatives.length !== 1) { - return null; - } - // Drop `^`/`$` assertion. - const chars = ast.alternatives[0].elements; - const first = chars[0]; - if (first.type === 'Assertion' && first.kind === 'start') { - chars.shift(); - } - else { - chars.pop(); - } - // Check if it can determine a unique string. - if (!chars.every(c => c.type === 'Character')) { - return null; - } - // To string. - return String.fromCodePoint(...chars.map(c => c.value)); - } - /** - * Parse a given node if it's a `RegExp` instance. - * @param node The node to parse. - */ - function parseRegExp(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - if (evaluated == null || !(evaluated.value instanceof RegExp)) { - return null; - } - const { source, flags } = evaluated.value; - const isStartsWith = source.startsWith('^'); - const isEndsWith = source.endsWith('$'); - if (isStartsWith === isEndsWith || - flags.includes('i') || - flags.includes('m')) { - return null; - } - const text = parseRegExpText(source, flags.includes('u')); - if (text == null) { - return null; - } - return { isEndsWith, isStartsWith, text }; - } - function getLeftNode(node) { - if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return getLeftNode(node.expression); - } - let leftNode; - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - leftNode = node.callee; - } - else { - leftNode = node; - } - if (leftNode.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - throw new Error(`Expected a MemberExpression, got ${leftNode.type}`); - } - return leftNode; - } - /** - * Fix code with using the right operand as the search string. - * For example: `foo.slice(0, 3) === 'bar'` → `foo.startsWith('bar')` - * @param fixer The rule fixer. - * @param node The node which was reported. - * @param kind The kind of the report. - * @param isNegative The flag to fix to negative condition. - */ - function* fixWithRightOperand(fixer, node, kind, isNegative, isOptional) { - // left is CallExpression or MemberExpression. - const leftNode = getLeftNode(node.left); - const propertyRange = getPropertyRange(leftNode); - if (isNegative) { - yield fixer.insertTextBefore(node, '!'); - } - yield fixer.replaceTextRange([propertyRange[0], node.right.range[0]], `${isOptional ? '?.' : '.'}${kind}sWith(`); - yield fixer.replaceTextRange([node.right.range[1], node.range[1]], ')'); - } - /** - * Fix code with using the first argument as the search string. - * For example: `foo.indexOf('bar') === 0` → `foo.startsWith('bar')` - * @param fixer The rule fixer. - * @param node The node which was reported. - * @param kind The kind of the report. - * @param negative The flag to fix to negative condition. - */ - function* fixWithArgument(fixer, node, callNode, calleeNode, kind, negative, isOptional) { - if (negative) { - yield fixer.insertTextBefore(node, '!'); - } - yield fixer.replaceTextRange(getPropertyRange(calleeNode), `${isOptional ? '?.' : '.'}${kind}sWith`); - yield fixer.removeRange([callNode.range[1], node.range[1]]); - } - function getParent(node) { - return (0, util_1.nullThrows)(node.parent?.type === utils_1.AST_NODE_TYPES.ChainExpression - ? node.parent.parent - : node.parent, util_1.NullThrowsReasons.MissingParent); - } - return { - // foo[0] === "a" - // foo.charAt(0) === "a" - // foo[foo.length - 1] === "a" - // foo.charAt(foo.length - 1) === "a" - [[ - 'BinaryExpression > MemberExpression.left[computed=true]', - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false]', - 'BinaryExpression > ChainExpression.left > MemberExpression[computed=true]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]', - ].join(', ')](node) { - let parentNode = getParent(node); - let indexNode = null; - if (parentNode.type === utils_1.AST_NODE_TYPES.CallExpression) { - if (parentNode.arguments.length === 1) { - indexNode = parentNode.arguments[0]; - } - parentNode = getParent(parentNode); - } - else { - indexNode = node.property; - } - if (indexNode == null || - !isEqualityComparison(parentNode) || - !isStringType(node.object)) { - return; - } - const isEndsWith = isLastIndexExpression(indexNode, node.object); - if (allowSingleElementEquality === 'always' && isEndsWith) { - return; - } - const isStartsWith = !isEndsWith && isNumber(indexNode, 0); - if ((allowSingleElementEquality === 'always' && isStartsWith) || - (!isStartsWith && !isEndsWith)) { - return; - } - const eqNode = parentNode; - context.report({ - node: parentNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - fix(fixer) { - // Don't fix if it can change the behavior. - if (!isCharacter(eqNode.right)) { - return null; - } - return fixWithRightOperand(fixer, eqNode, isStartsWith ? 'start' : 'end', eqNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.indexOf('bar') === 0 - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (callNode.arguments.length !== 1 || - !isEqualityComparison(parentNode) || - !isNumber(parentNode.right, 0) || - !isStringType(node.object)) { - return; - } - context.report({ - node: parentNode, - messageId: 'preferStartsWith', - fix(fixer) { - return fixWithArgument(fixer, parentNode, callNode, node, 'start', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.lastIndexOf('bar') === foo.length - 3 - // foo.lastIndexOf(bar) === foo.length - bar.length - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (callNode.arguments.length !== 1 || - !isEqualityComparison(parentNode) || - parentNode.right.type !== utils_1.AST_NODE_TYPES.BinaryExpression || - parentNode.right.operator !== '-' || - !isLengthExpression(parentNode.right.left, node.object) || - !isLengthExpression(parentNode.right.right, callNode.arguments[0]) || - !isStringType(node.object)) { - return; - } - context.report({ - node: parentNode, - messageId: 'preferEndsWith', - fix(fixer) { - return fixWithArgument(fixer, parentNode, callNode, node, 'end', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.match(/^bar/) === null - // foo.match(/bar$/) === null - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (!isEqualityComparison(parentNode) || - !isNull(parentNode.right) || - !isStringType(node.object)) { - return; - } - const parsed = callNode.arguments.length === 1 - ? parseRegExp(callNode.arguments[0]) - : null; - if (parsed == null) { - return; - } - const { isStartsWith, text } = parsed; - context.report({ - node: callNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - *fix(fixer) { - if (!parentNode.operator.startsWith('!')) { - yield fixer.insertTextBefore(parentNode, '!'); - } - yield fixer.replaceTextRange(getPropertyRange(node), `${node.optional ? '?.' : '.'}${isStartsWith ? 'start' : 'end'}sWith`); - yield fixer.replaceText(callNode.arguments[0], JSON.stringify(text)); - yield fixer.removeRange([callNode.range[1], parentNode.range[1]]); - }, - }); - }, - // foo.slice(0, 3) === 'bar' - // foo.slice(-3) === 'bar' - // foo.slice(-3, foo.length) === 'bar' - // foo.substring(0, 3) === 'bar' - // foo.substring(foo.length - 3) === 'bar' - // foo.substring(foo.length - 3, foo.length) === 'bar' - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false]', - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (!isEqualityComparison(parentNode) || !isStringType(node.object)) { - return; - } - let isEndsWith = false; - let isStartsWith = false; - if (callNode.arguments.length === 1) { - if ( - // foo.slice(-bar.length) === bar - // foo.slice(foo.length - bar.length) === bar - isLengthAheadOfEnd(callNode.arguments[0], parentNode.right, node.object)) { - isEndsWith = true; - } - } - else if (callNode.arguments.length === 2) { - if ( - // foo.slice(0, bar.length) === bar - isNumber(callNode.arguments[0], 0) && - isLengthExpression(callNode.arguments[1], parentNode.right)) { - isStartsWith = true; - } - else if ( - // foo.slice(foo.length - bar.length, foo.length) === bar - // foo.slice(foo.length - bar.length, 0) === bar - // foo.slice(-bar.length, foo.length) === bar - // foo.slice(-bar.length, 0) === bar - (isLengthExpression(callNode.arguments[1], node.object) || - isNumber(callNode.arguments[1], 0)) && - isLengthAheadOfEnd(callNode.arguments[0], parentNode.right, node.object)) { - isEndsWith = true; - } - } - if (!isStartsWith && !isEndsWith) { - return; - } - const eqNode = parentNode; - const negativeIndexSupported = node.property.name === 'slice'; - context.report({ - node: parentNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - fix(fixer) { - // Don't fix if it can change the behavior. - if (eqNode.operator.length === 2 && - (eqNode.right.type !== utils_1.AST_NODE_TYPES.Literal || - typeof eqNode.right.value !== 'string')) { - return null; - } - // code being checked is likely mistake: - // unequal length of strings being checked for equality - // or reliant on behavior of substring (negative indices interpreted as 0) - if (isStartsWith) { - if (!isLengthExpression(callNode.arguments[1], eqNode.right)) { - return null; - } - } - else { - const posNode = callNode.arguments[0]; - const posNodeIsAbsolutelyValid = (posNode.type === utils_1.AST_NODE_TYPES.BinaryExpression && - posNode.operator === '-' && - isLengthExpression(posNode.left, node.object) && - isLengthExpression(posNode.right, eqNode.right)) || - (negativeIndexSupported && - posNode.type === utils_1.AST_NODE_TYPES.UnaryExpression && - posNode.operator === '-' && - isLengthExpression(posNode.argument, eqNode.right)); - if (!posNodeIsAbsolutelyValid) { - return null; - } - } - return fixWithRightOperand(fixer, parentNode, isStartsWith ? 'start' : 'end', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // /^bar/.test(foo) - // /bar$/.test(foo) - 'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(node) { - const callNode = getParent(node); - const parsed = callNode.arguments.length === 1 ? parseRegExp(node.object) : null; - if (parsed == null) { - return; - } - const { isStartsWith, text } = parsed; - const messageId = isStartsWith ? 'preferStartsWith' : 'preferEndsWith'; - const methodName = isStartsWith ? 'startsWith' : 'endsWith'; - context.report({ - node: callNode, - messageId, - *fix(fixer) { - const argNode = callNode.arguments[0]; - const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && - argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && - argNode.type !== utils_1.AST_NODE_TYPES.Identifier && - argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && - argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; - yield fixer.removeRange([callNode.range[0], argNode.range[0]]); - if (needsParen) { - yield fixer.insertTextBefore(argNode, '('); - yield fixer.insertTextAfter(argNode, ')'); - } - yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}${methodName}(${JSON.stringify(text)}`); - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-string-starts-ends-with.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map deleted file mode 100644 index 356671df..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AAAA,uDAAyD;AAEzD,oDAA0D;AAE1D,kCASiB;AAEjB,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,OAAO,GAAG,IAAI,sBAAY,EAAE,CAAC;AAYnC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,gCAAgC;IACtC,cAAc,EAAE,CAAC,EAAE,0BAA0B,EAAE,OAAO,EAAE,CAAC;IAEzD,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8GAA8G;YAChH,WAAW,EAAE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end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js deleted file mode 100644 index 409033e0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-ts-expect-error', - meta: { - type: 'problem', - deprecated: true, - replacedBy: ['@typescript-eslint/ban-ts-comment'], - docs: { - description: 'Enforce using `@ts-expect-error` over `@ts-ignore`', - }, - fixable: 'code', - messages: { - preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/; - const tsIgnoreRegExpMultiLine = /^\s*(?:\/|\*)*\s*@ts-ignore/; - function isLineComment(comment) { - return comment.type === utils_1.AST_TOKEN_TYPES.Line; - } - function getLastCommentLine(comment) { - if (isLineComment(comment)) { - return comment.value; - } - // For multiline comments - we look at only the last line. - const commentlines = comment.value.split('\n'); - return commentlines[commentlines.length - 1]; - } - function isValidTsIgnorePresent(comment) { - const line = getLastCommentLine(comment); - return isLineComment(comment) - ? tsIgnoreRegExpSingleLine.test(line) - : tsIgnoreRegExpMultiLine.test(line); - } - return { - Program() { - const comments = context.sourceCode.getAllComments(); - comments.forEach(comment => { - if (isValidTsIgnorePresent(comment)) { - const lineCommentRuleFixer = (fixer) => fixer.replaceText(comment, `//${comment.value.replace('@ts-ignore', '@ts-expect-error')}`); - const blockCommentRuleFixer = (fixer) => fixer.replaceText(comment, `/*${comment.value.replace('@ts-ignore', '@ts-expect-error')}*/`); - context.report({ - node: comment, - messageId: 'preferExpectErrorComment', - fix: isLineComment(comment) - ? lineCommentRuleFixer - : blockCommentRuleFixer, - }); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-ts-expect-error.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map deleted file mode 100644 index 47034800..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-ts-expect-error.js","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":";;AACA,oDAA2D;AAG3D,kCAAqC;AAIrC,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mCAAmC,CAAC;QACjD,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;SAClE;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,yEAAyE;SAC5E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;QACxD,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;QAE9D,SAAS,aAAa,CAAC,OAAyB;YAC9C,OAAO,OAAO,CAAC,IAAI,KAAK,uBAAe,CAAC,IAAI,CAAC;QAC/C,CAAC;QAED,SAAS,kBAAkB,CAAC,OAAyB;YACnD,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3B,OAAO,OAAO,CAAC,KAAK,CAAC;YACvB,CAAC;YAED,0DAA0D;YAC1D,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;Y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ist/rules/promise-function-async.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js deleted file mode 100644 index b40fa4c6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +++ /dev/null @@ -1,184 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'promise-function-async', - meta: { - type: 'suggestion', - fixable: 'code', - docs: { - description: 'Require any function or method that returns a Promise to be marked async', - requiresTypeChecking: true, - }, - messages: { - missingAsync: 'Functions that return promises must be async.', - }, - schema: [ - { - type: 'object', - properties: { - allowAny: { - description: 'Whether to consider `any` and `unknown` to be Promises.', - type: 'boolean', - }, - allowedPromiseNames: { - description: 'Any extra names of classes or interfaces to be considered Promises.', - type: 'array', - items: { - type: 'string', - }, - }, - checkArrowFunctions: { - type: 'boolean', - }, - checkFunctionDeclarations: { - type: 'boolean', - }, - checkFunctionExpressions: { - type: 'boolean', - }, - checkMethodDeclarations: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowAny: true, - allowedPromiseNames: [], - checkArrowFunctions: true, - checkFunctionDeclarations: true, - checkFunctionExpressions: true, - checkMethodDeclarations: true, - }, - ], - create(context, [{ allowAny, allowedPromiseNames, checkArrowFunctions, checkFunctionDeclarations, checkFunctionExpressions, checkMethodDeclarations, },]) { - const allAllowedPromiseNames = new Set([ - 'Promise', - // https://github.com/typescript-eslint/typescript-eslint/issues/5439 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - ...allowedPromiseNames, - ]); - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function validateNode(node) { - const signatures = services.getTypeAtLocation(node).getCallSignatures(); - if (!signatures.length) { - return; - } - const returnType = checker.getReturnTypeOfSignature(signatures[0]); - if (!(0, util_1.containsAllTypesByName)(returnType, - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - allowAny, allAllowedPromiseNames, - // If no return type is explicitly set, we check if any parts of the return type match a Promise (instead of requiring all to match). - node.returnType == null)) { - // Return type is not a promise - return; - } - if (node.parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition) { - // Abstract method can't be async - return; - } - if ((node.parent.type === utils_1.AST_NODE_TYPES.Property || - node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) && - (node.parent.kind === 'get' || node.parent.kind === 'set')) { - // Getters and setters can't be async - return; - } - if ((0, util_1.isTypeFlagSet)(returnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - // Report without auto fixer because the return type is unknown - return context.report({ - messageId: 'missingAsync', - node, - loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), - }); - } - context.report({ - messageId: 'missingAsync', - node, - loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), - fix: fixer => { - if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || - (node.parent.type === utils_1.AST_NODE_TYPES.Property && node.parent.method)) { - // this function is a class method or object function property shorthand - const method = node.parent; - // the token to put `async` before - let keyToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(method), util_1.NullThrowsReasons.MissingToken('key token', 'method')); - // if there are decorators then skip past them - if (method.type === utils_1.AST_NODE_TYPES.MethodDefinition && - method.decorators.length) { - const lastDecorator = method.decorators[method.decorators.length - 1]; - keyToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(lastDecorator), util_1.NullThrowsReasons.MissingToken('key token', 'last decorator')); - } - // if current token is a keyword like `static` or `public` then skip it - while (keyToken.type === utils_1.AST_TOKEN_TYPES.Keyword && - keyToken.range[0] < method.key.range[0]) { - keyToken = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(keyToken), util_1.NullThrowsReasons.MissingToken('token', 'keyword')); - } - // check if there is a space between key and previous token - const insertSpace = !context.sourceCode.isSpaceBetween((0, util_1.nullThrows)(context.sourceCode.getTokenBefore(keyToken), util_1.NullThrowsReasons.MissingToken('token', 'keyword')), keyToken); - let code = 'async '; - if (insertSpace) { - code = ` ${code}`; - } - return fixer.insertTextBefore(keyToken, code); - } - return fixer.insertTextBefore(node, 'async '); - }, - }); - } - return { - ...(checkArrowFunctions && { - 'ArrowFunctionExpression[async = false]'(node) { - validateNode(node); - }, - }), - ...(checkFunctionDeclarations && { - 'FunctionDeclaration[async = false]'(node) { - validateNode(node); - }, - }), - 'FunctionExpression[async = false]'(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.kind === 'method') { - if (checkMethodDeclarations) { - validateNode(node); - } - return; - } - if (checkFunctionExpressions) { - validateNode(node); - } - }, - }; - }, -}); -//# sourceMappingURL=promise-function-async.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map deleted file mode 100644 index a5688f71..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,+CAAiC;AAEjC,kCAQiB;AAcjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,+CAA+C;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,WAAW,EACT,yDAAyD;wBAC3D,IAAI,EAAE,SAAS;qBAChB;oBACD,mBAAmB,EAAE;wBACnB,WAAW,EACT,qEAAqE;wBACvE,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,QAAQ,EAAE,IAAI;YACd,mBAAmB,EAAE,EAAE;YACvB,mBAAmB,EAAE,IAAI;YACzB,yBAAyB,EAAE,IAAI;YAC/B,wBAAwB,EAAE,IAAI;YAC9B,uBAAuB,EAAE,IAAI;SAC9B;KACF;IACD,MAAM,CACJ,OAAO,EACP,CACE,EACE,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB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,mCAAmC,CACjC,IAAiC;gBAEjC,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAC7B,CAAC;oBACD,IAAI,uBAAuB,EAAE,CAAC;wBAC5B,YAAY,CAAC,IAAI,CAAC,CAAC;oBACrB,CAAC;oBACD,OAAO;gBACT,CAAC;gBACD,IAAI,wBAAwB,EAAE,CAAC;oBAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js deleted file mode 100644 index 5b2f675a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'require-array-sort-compare', - defaultOptions: [ - { - ignoreStringArrays: true, - }, - ], - meta: { - type: 'problem', - docs: { - description: 'Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`', - requiresTypeChecking: true, - }, - messages: { - requireCompare: "Require 'compare' argument.", - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - ignoreStringArrays: { - description: 'Whether to ignore arrays in which all elements are strings.', - type: 'boolean', - }, - }, - }, - ], - }, - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - /** - * Check if a given node is an array which all elements are string. - */ - function isStringArrayNode(node) { - const type = services.getTypeAtLocation(node); - if (checker.isArrayType(type) || checker.isTupleType(type)) { - const typeArgs = checker.getTypeArguments(type); - return typeArgs.every(arg => (0, util_1.getTypeName)(checker, arg) === 'string'); - } - return false; - } - function checkSortArgument(callee) { - const calleeObjType = (0, util_1.getConstrainedTypeAtLocation)(services, callee.object); - if (options.ignoreStringArrays && isStringArrayNode(callee.object)) { - return; - } - if ((0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(calleeObjType, checker)) { - context.report({ node: callee.parent, messageId: 'requireCompare' }); - } - } - return { - "CallExpression[arguments.length=0] > MemberExpression[property.name='sort'][computed=false]": checkSortArgument, - "CallExpression[arguments.length=0] > MemberExpression[property.name='toSorted'][computed=false]": checkSortArgument, - }; - }, -}); -//# sourceMappingURL=require-array-sort-compare.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map deleted file mode 100644 index 6742e553..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"require-array-sort-compare.js","sourceRoot":"","sources":["../../src/rules/require-array-sort-compare.ts"],"names":[],"mappings":";;AAEA,kCAMiB;AASjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,4BAA4B;IAClC,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,IAAI;SACzB;KACF;IAED,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,uFAAuF;YACzF,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,6BAA6B;SAC9C;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,WAAW,EACT,6DAA6D;wBAC/D,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAElD;;WAEG;QACH,SAAS,iBAAiB,CAAC,IAAyB;YAClD,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAE9C,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBAChD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,kBAAW,EAAC,OAAO,EAAE,GAAG,CAAC,KAAK,QAAQ,CAAC,CAAC;YACvE,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,SAAS,iBAAiB,CAAC,MAAiC;YAC1D,MAAM,aAAa,GAAG,IAAA,mCAA4B,EAChD,QAAQ,EACR,MAAM,CAAC,MAAM,CACd,CAAC;YAEF,IAAI,OAAO,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnE,OAAO;YACT,CAAC;YAED,IAAI,IAAA,yCAAkC,EAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CAAC;gBAC/D,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;YACvE,CAAC;QACH,CAAC;QAED,OAAO;YACL,6FAA6F,EAC3F,iBAAiB;YACnB,iGAAiG,EAC/F,iBAAiB;SACpB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js deleted file mode 100644 index 80732aaa..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'require-await', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow async functions which do not return promises and have no `await` expression', - recommended: 'recommended', - requiresTypeChecking: true, - extendsBaseRule: true, - }, - schema: [], - messages: { - missingAwait: "{{name}} has no 'await' expression.", - }, - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - let scopeInfo = null; - /** - * Push the scope info object to the stack. - */ - function enterFunction(node) { - scopeInfo = { - upper: scopeInfo, - hasAwait: false, - hasAsync: node.async, - isGen: node.generator || false, - isAsyncYield: false, - }; - } - /** - * Pop the top scope info object from the stack. - * Also, it reports the function if needed. - */ - function exitFunction(node) { - /* istanbul ignore if */ if (!scopeInfo) { - // this shouldn't ever happen, as we have to exit a function after we enter it - return; - } - if (node.async && - !scopeInfo.hasAwait && - !isEmptyFunction(node) && - !(scopeInfo.isGen && scopeInfo.isAsyncYield)) { - context.report({ - node, - loc: (0, util_1.getFunctionHeadLoc)(node, context.sourceCode), - messageId: 'missingAwait', - data: { - name: (0, util_1.upperCaseFirst)((0, util_1.getFunctionNameWithKind)(node)), - }, - }); - } - scopeInfo = scopeInfo.upper; - } - /** - * Checks if the node returns a thenable type - */ - function isThenableType(node) { - const type = checker.getTypeAtLocation(node); - return tsutils.isThenableType(checker, node, type); - } - /** - * Marks the current scope as having an await - */ - function markAsHasAwait() { - if (!scopeInfo) { - return; - } - scopeInfo.hasAwait = true; - } - /** - * Mark `scopeInfo.isAsyncYield` to `true` if it - * 1) delegates async generator function - * or - * 2) yields thenable type - */ - function visitYieldExpression(node) { - if (!scopeInfo?.isGen || !node.argument) { - return; - } - if (node.argument.type === utils_1.AST_NODE_TYPES.Literal) { - // ignoring this as for literals we don't need to check the definition - // eg : async function* run() { yield* 1 } - return; - } - if (!node.delegate) { - if (isThenableType(services.esTreeNodeToTSNodeMap.get(node.argument))) { - scopeInfo.isAsyncYield = true; - } - return; - } - const type = services.getTypeAtLocation(node.argument); - const typesToCheck = expandUnionOrIntersectionType(type); - for (const type of typesToCheck) { - const asyncIterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'asyncIterator', checker); - if (asyncIterator !== undefined) { - scopeInfo.isAsyncYield = true; - break; - } - } - } - return { - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction, - 'FunctionDeclaration:exit': exitFunction, - 'FunctionExpression:exit': exitFunction, - 'ArrowFunctionExpression:exit': exitFunction, - AwaitExpression: markAsHasAwait, - 'VariableDeclaration[kind = "await using"]': markAsHasAwait, - 'ForOfStatement[await = true]': markAsHasAwait, - YieldExpression: visitYieldExpression, - // check body-less async arrow function. - // ignore `async () => await foo` because it's obviously correct - 'ArrowFunctionExpression[async = true] > :not(BlockStatement, AwaitExpression)'(node) { - const expression = services.esTreeNodeToTSNodeMap.get(node); - if (isThenableType(expression)) { - markAsHasAwait(); - } - }, - ReturnStatement(node) { - // short circuit early to avoid unnecessary type checks - if (!scopeInfo || scopeInfo.hasAwait || !scopeInfo.hasAsync) { - return; - } - const { expression } = services.esTreeNodeToTSNodeMap.get(node); - if (expression && isThenableType(expression)) { - markAsHasAwait(); - } - }, - }; - }, -}); -function isEmptyFunction(node) { - return (node.body.type === utils_1.AST_NODE_TYPES.BlockStatement && - node.body.body.length === 0); -} -function expandUnionOrIntersectionType(type) { - if (type.isUnionOrIntersection()) { - return type.types.flatMap(expandUnionOrIntersectionType); - } - return [type]; -} -//# sourceMappingURL=require-await.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map deleted file mode 100644 index 474c0351..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAMiB;AAcjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sFAAsF;YACxF,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,YAAY,EAAE,qCAAqC;SACpD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CA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eAAe,EAAE,cAAc;YAC/B,2CAA2C,EAAE,cAAc;YAC3D,8BAA8B,EAAE,cAAc;YAC9C,eAAe,EAAE,oBAAoB;YAErC,wCAAwC;YACxC,gEAAgE;YAChE,+EAA+E,CAC7E,IAGC;gBAED,MAAM,UAAU,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC5D,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC/B,cAAc,EAAE,CAAC;gBACnB,CAAC;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,uDAAuD;gBACvD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;oBAC5D,OAAO;gBACT,CAAC;gBAED,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAChE,IAAI,UAAU,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC7C,cAAc,EAAE,CAAC;gBACnB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,eAAe,CAAC,IAAkB;IACzC,OAAO,CACL,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAChD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CAAC,IAAa;IAClD,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js deleted file mode 100644 index 63df9cd3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +++ /dev/null @@ -1,222 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'restrict-plus-operands', - meta: { - type: 'problem', - docs: { - description: 'Require both operands of addition to be the same type and be `bigint`, `number`, or `string`', - recommended: { - recommended: true, - strict: [ - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumberAndString: false, - allowRegExp: false, - }, - ], - }, - requiresTypeChecking: true, - }, - messages: { - bigintAndNumber: "Numeric '+' operations must either be both bigints or both numbers. Got `{{left}}` + `{{right}}`.", - invalid: "Invalid operand for a '+' operation. Operands must each be a number or {{stringLike}}. Got `{{type}}`.", - mismatched: "Operands of '+' operations must be a number or {{stringLike}}. Got `{{left}}` + `{{right}}`.", - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowAny: { - description: 'Whether to allow `any` typed values.', - type: 'boolean', - }, - allowBoolean: { - description: 'Whether to allow `boolean` typed values.', - type: 'boolean', - }, - allowNullish: { - description: 'Whether to allow potentially `null` or `undefined` typed values.', - type: 'boolean', - }, - allowNumberAndString: { - description: 'Whether to allow `bigint`/`number` typed values and `string` typed values to be added together.', - type: 'boolean', - }, - allowRegExp: { - description: 'Whether to allow `regexp` typed values.', - type: 'boolean', - }, - skipCompoundAssignments: { - description: 'Whether to skip compound assignments such as `+=`.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowAny: true, - allowBoolean: true, - allowNullish: true, - allowNumberAndString: true, - allowRegExp: true, - skipCompoundAssignments: false, - }, - ], - create(context, [{ allowAny, allowBoolean, allowNullish, allowNumberAndString, allowRegExp, skipCompoundAssignments, },]) { - const services = (0, util_1.getParserServices)(context); - const typeChecker = services.program.getTypeChecker(); - const stringLikes = [ - allowAny && '`any`', - allowBoolean && '`boolean`', - allowNullish && '`null`', - allowRegExp && '`RegExp`', - allowNullish && '`undefined`', - ].filter((value) => typeof value === 'string'); - const stringLike = stringLikes.length - ? stringLikes.length === 1 - ? `string, allowing a string + ${stringLikes[0]}` - : `string, allowing a string + any of: ${stringLikes.join(', ')}` - : 'string'; - function getTypeConstrained(node) { - return typeChecker.getBaseTypeOfLiteralType((0, util_1.getConstrainedTypeAtLocation)(services, node)); - } - function checkPlusOperands(node) { - const leftType = getTypeConstrained(node.left); - const rightType = getTypeConstrained(node.right); - if (leftType === rightType && - tsutils.isTypeFlagSet(leftType, ts.TypeFlags.BigIntLike | - ts.TypeFlags.NumberLike | - ts.TypeFlags.StringLike)) { - return; - } - let hadIndividualComplaint = false; - for (const [baseNode, baseType, otherType] of [ - [node.left, leftType, rightType], - [node.right, rightType, leftType], - ]) { - if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.ESSymbolLike | - ts.TypeFlags.Never | - ts.TypeFlags.Unknown) || - (!allowAny && isTypeFlagSetInUnion(baseType, ts.TypeFlags.Any)) || - (!allowBoolean && - isTypeFlagSetInUnion(baseType, ts.TypeFlags.BooleanLike)) || - (!allowNullish && - (0, util_1.isTypeFlagSet)(baseType, ts.TypeFlags.Null | ts.TypeFlags.Undefined))) { - context.report({ - data: { - stringLike, - type: typeChecker.typeToString(baseType), - }, - messageId: 'invalid', - node: baseNode, - }); - hadIndividualComplaint = true; - continue; - } - // RegExps also contain ts.TypeFlags.Any & ts.TypeFlags.Object - for (const subBaseType of tsutils.unionTypeParts(baseType)) { - const typeName = (0, util_1.getTypeName)(typeChecker, subBaseType); - if (typeName === 'RegExp' - ? !allowRegExp || - tsutils.isTypeFlagSet(otherType, ts.TypeFlags.NumberLike) - : (!allowAny && (0, util_1.isTypeAnyType)(subBaseType)) || - isDeeplyObjectType(subBaseType)) { - context.report({ - data: { - stringLike, - type: typeChecker.typeToString(subBaseType), - }, - messageId: 'invalid', - node: baseNode, - }); - hadIndividualComplaint = true; - continue; - } - } - } - if (hadIndividualComplaint) { - return; - } - for (const [baseType, otherType] of [ - [leftType, rightType], - [rightType, leftType], - ]) { - if (!allowNumberAndString && - isTypeFlagSetInUnion(baseType, ts.TypeFlags.StringLike) && - isTypeFlagSetInUnion(otherType, ts.TypeFlags.NumberLike)) { - return context.report({ - data: { - stringLike, - left: typeChecker.typeToString(leftType), - right: typeChecker.typeToString(rightType), - }, - messageId: 'mismatched', - node, - }); - } - if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.NumberLike) && - isTypeFlagSetInUnion(otherType, ts.TypeFlags.BigIntLike)) { - return context.report({ - data: { - left: typeChecker.typeToString(leftType), - right: typeChecker.typeToString(rightType), - }, - messageId: 'bigintAndNumber', - node, - }); - } - } - } - return { - "BinaryExpression[operator='+']": checkPlusOperands, - ...(!skipCompoundAssignments && { - "AssignmentExpression[operator='+=']"(node) { - checkPlusOperands(node); - }, - }), - }; - }, -}); -function isDeeplyObjectType(type) { - return type.isIntersection() - ? tsutils.intersectionTypeParts(type).every(tsutils.isObjectType) - : tsutils.unionTypeParts(type).every(tsutils.isObjectType); -} -function isTypeFlagSetInUnion(type, flag) { - return tsutils - .unionTypeParts(type) - .some(subType => tsutils.isTypeFlagSet(subType, flag)); -} -//# sourceMappingURL=restrict-plus-operands.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map deleted file mode 100644 index 7cae9353..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AACxC,+CAAiC;AAEjC,kCAOiB;AAejB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE;gBACX,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE;oBACN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AAW,CAAC,YAAY,CAAC,QAAQ,CAAC;4BACxC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC;yBAC3C;wBACD,SAAS,EAAE,iBAAiB;wBAC5B,IAAI;qBACL,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,gCAAgC,EAAE,iBAAiB;YACnD,GAAG,CAAC,CAAC,uBAAuB,IAAI;gBAC9B,qCAAqC,CAAC,IAAI;oBACxC,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,kBAAkB,CAAC,IAAa;IACvC,OAAO,IAAI,CAAC,cAAc,EAAE;QAC1B,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;QACjE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAa,EAAE,IAAkB;IAC7D,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js deleted file mode 100644 index aff5270c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const typescript_1 = require("typescript"); -const util_1 = require("../util"); -const testTypeFlag = (flagsToCheck) => type => (0, util_1.isTypeFlagSet)(type, flagsToCheck); -const optionTesters = [ - ['Any', util_1.isTypeAnyType], - [ - 'Array', - (type, checker, recursivelyCheckType) => (checker.isArrayType(type) || checker.isTupleType(type)) && - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - recursivelyCheckType(type.getNumberIndexType()), - ], - // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum - ['Boolean', testTypeFlag(typescript_1.TypeFlags.BooleanLike)], - ['Nullish', testTypeFlag(typescript_1.TypeFlags.Null | typescript_1.TypeFlags.Undefined)], - ['Number', testTypeFlag(typescript_1.TypeFlags.NumberLike | typescript_1.TypeFlags.BigIntLike)], - [ - 'RegExp', - (type, checker) => (0, util_1.getTypeName)(checker, type) === 'RegExp', - ], - ['Never', util_1.isTypeNeverType], -].map(([type, tester]) => ({ - type, - option: `allow${type}`, - tester, -})); -exports.default = (0, util_1.createRule)({ - name: 'restrict-template-expressions', - meta: { - type: 'problem', - docs: { - description: 'Enforce template literal expressions to be of `string` type', - recommended: { - recommended: true, - strict: [ - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumber: false, - allowRegExp: false, - allowNever: false, - }, - ], - }, - requiresTypeChecking: true, - }, - messages: { - invalidType: 'Invalid type "{{type}}" of template literal expression.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: Object.fromEntries(optionTesters.map(({ option, type }) => [ - option, - { - description: `Whether to allow \`${type.toLowerCase()}\` typed values in template expressions.`, - type: 'boolean', - }, - ])), - }, - ], - }, - defaultOptions: [ - { - allowAny: true, - allowBoolean: true, - allowNullish: true, - allowNumber: true, - allowRegExp: true, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const enabledOptionTesters = optionTesters.filter(({ option }) => options[option]); - return { - TemplateLiteral(node) { - // don't check tagged template literals - if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - return; - } - for (const expression of node.expressions) { - const expressionType = (0, util_1.getConstrainedTypeAtLocation)(services, expression); - if (!recursivelyCheckType(expressionType)) { - context.report({ - node: expression, - messageId: 'invalidType', - data: { type: checker.typeToString(expressionType) }, - }); - } - } - }, - }; - function recursivelyCheckType(innerType) { - if (innerType.isUnion()) { - return innerType.types.every(recursivelyCheckType); - } - if (innerType.isIntersection()) { - return innerType.types.some(recursivelyCheckType); - } - return ((0, util_1.isTypeFlagSet)(innerType, typescript_1.TypeFlags.StringLike) || - enabledOptionTesters.some(({ tester }) => tester(innerType, checker, recursivelyCheckType))); - } - }, -}); -//# sourceMappingURL=restrict-template-expressions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map deleted file mode 100644 index dbe8ce25..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,2CAAuC;AAEvC,kCAQiB;AAQjB,MAAM,YAAY,GAChB,CAAC,YAAuB,EAAgB,EAAE,CAC1C,IAAI,CAAC,EAAE,CACL,IAAA,oBAAa,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AAEtC,MAAM,aAAa,GACjB;IACE,CAAC,KAAK,EAAE,oBAAa,CAAC;IACtB;QACE,OAAO;QACP,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAW,EAAE,CAC/C,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACxD,oEAAoE;YACpE,oBAAoB,CAAC,IAAI,CAAC,kBAAkB,EAAG,CAAC;KACnD;IACD,6EAA6E;IAC7E,CAAC,SAA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AI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;gBACxB,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC/B,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,CACL,IAAA,oBAAa,EAAC,SAAS,EAAE,sBAAS,CAAC,UAAU,CAAC;gBAC9C,oBAAoB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACvC,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,CACjD,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js deleted file mode 100644 index af735ef7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +++ /dev/null @@ -1,347 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getOperatorPrecedence_1 = require("../util/getOperatorPrecedence"); -exports.default = (0, util_1.createRule)({ - name: 'return-await', - meta: { - docs: { - description: 'Enforce consistent awaiting of returned promises', - requiresTypeChecking: true, - extendsBaseRule: 'no-return-await', - recommended: { - strict: ['error-handling-correctness-only'], - }, - }, - fixable: 'code', - hasSuggestions: true, - type: 'problem', - messages: { - nonPromiseAwait: 'Returning an awaited value that is not a promise is not allowed.', - disallowedPromiseAwait: 'Returning an awaited promise is not allowed in this context.', - requiredPromiseAwait: 'Returning an awaited promise is required in this context.', - requiredPromiseAwaitSuggestion: 'Add `await` before the expression. Use caution as this may impact control flow.', - disallowedPromiseAwaitSuggestion: 'Remove `await` before the expression. Use caution as this may impact control flow.', - }, - schema: [ - { - type: 'string', - enum: [ - 'in-try-catch', - 'always', - 'never', - 'error-handling-correctness-only', - ], - }, - ], - }, - defaultOptions: ['in-try-catch'], - create(context, [option]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const scopeInfoStack = []; - function enterFunction(node) { - scopeInfoStack.push({ - hasAsync: node.async, - owningFunc: node, - }); - } - function exitFunction() { - scopeInfoStack.pop(); - } - function affectsExplicitResourceManagement(node) { - // just need to determine if there is a `using` declaration in scope. - let scope = context.sourceCode.getScope(node); - const functionScope = scope.variableScope; - while (true) { - for (const variable of scope.variables) { - if (variable.defs.length !== 1) { - // This can't be the case for `using` or `await using` since it's - // an error to redeclare those more than once in the same scope, - // unlike, say, `var` declarations. - continue; - } - const declaration = variable.defs[0]; - const declaratorNode = declaration.node; - const declarationNode = declaratorNode.parent; - // if it's a using/await using declaration, and it comes _before_ the - // node we're checking, it affects control flow for that node. - if (['using', 'await using'].includes(declarationNode.kind) && - declaratorNode.range[1] < node.range[0]) { - return true; - } - } - if (scope === functionScope) { - // We've checked all the relevant scopes - break; - } - // This should always exist, since the rule should only be checking - // contexts in which `return` statements are legal, which should always - // be inside a function. - scope = (0, util_1.nullThrows)(scope.upper, 'Expected parent scope to exist. return-await should only operate on return statements within functions'); - } - return false; - } - /** - * Tests whether a node is inside of an explicit error handling context - * (try/catch/finally) in a way that throwing an exception will have an - * impact on the program's control flow. - */ - function affectsExplicitErrorHandling(node) { - // If an error-handling block is followed by another error-handling block, - // control flow is affected by whether promises in it are awaited or not. - // Otherwise, we need to check recursively for nested try statements until - // we get to the top level of a function or the program. If by then, - // there's no offending error-handling blocks, it doesn't affect control - // flow. - const tryAncestorResult = findContainingTryStatement(node); - if (tryAncestorResult == null) { - return false; - } - const { tryStatement, block } = tryAncestorResult; - switch (block) { - case 'try': - // Try blocks are always followed by either a catch or finally, - // so exceptions thrown here always affect control flow. - return true; - case 'catch': - // Exceptions thrown in catch blocks followed by a finally block affect - // control flow. - if (tryStatement.finallyBlock != null) { - return true; - } - // Otherwise recurse. - return affectsExplicitErrorHandling(tryStatement); - case 'finally': - return affectsExplicitErrorHandling(tryStatement); - default: { - const __never = block; - throw new Error(`Unexpected block type: ${String(__never)}`); - } - } - } - /** - * A try _statement_ is the whole thing that encompasses try block, - * catch clause, and finally block. This function finds the nearest - * enclosing try statement (if present) for a given node, and reports which - * part of the try statement the node is in. - */ - function findContainingTryStatement(node) { - let child = node; - let ancestor = node.parent; - while (ancestor && !ts.isFunctionLike(ancestor)) { - if (ts.isTryStatement(ancestor)) { - let block; - if (child === ancestor.tryBlock) { - block = 'try'; - } - else if (child === ancestor.catchClause) { - block = 'catch'; - } - else if (child === ancestor.finallyBlock) { - block = 'finally'; - } - return { - tryStatement: ancestor, - block: (0, util_1.nullThrows)(block, 'Child of a try statement must be a try block, catch clause, or finally block'), - }; - } - child = ancestor; - ancestor = ancestor.parent; - } - return undefined; - } - function removeAwait(fixer, node) { - // Should always be an await node; but let's be safe. - /* istanbul ignore if */ if (!(0, util_1.isAwaitExpression)(node)) { - return null; - } - const awaitToken = context.sourceCode.getFirstToken(node, util_1.isAwaitKeyword); - // Should always be the case; but let's be safe. - /* istanbul ignore if */ if (!awaitToken) { - return null; - } - const startAt = awaitToken.range[0]; - let endAt = awaitToken.range[1]; - // Also remove any extraneous whitespace after `await`, if there is any. - const nextToken = context.sourceCode.getTokenAfter(awaitToken, { - includeComments: true, - }); - if (nextToken) { - endAt = nextToken.range[0]; - } - return fixer.removeRange([startAt, endAt]); - } - function insertAwait(fixer, node, isHighPrecendence) { - if (isHighPrecendence) { - return fixer.insertTextBefore(node, 'await '); - } - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfter(node, ')'), - ]; - } - function isHigherPrecedenceThanAwait(node) { - const operator = ts.isBinaryExpression(node) - ? node.operatorToken.kind - : ts.SyntaxKind.Unknown; - const nodePrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(node.kind, operator); - const awaitPrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(ts.SyntaxKind.AwaitExpression, ts.SyntaxKind.Unknown); - return nodePrecedence > awaitPrecedence; - } - function test(node, expression) { - let child; - const isAwait = ts.isAwaitExpression(expression); - if (isAwait) { - child = expression.getChildAt(1); - } - else { - child = expression; - } - const type = checker.getTypeAtLocation(child); - const isThenable = tsutils.isThenableType(checker, expression, type); - // handle awaited _non_thenables - if (!isThenable) { - if (isAwait) { - // any/unknown could be thenable; do not auto-fix - const useAutoFix = !((0, util_1.isTypeAnyType)(type) || (0, util_1.isTypeUnknownType)(type)); - context.report({ - messageId: 'nonPromiseAwait', - node, - ...fixOrSuggest(useAutoFix, { - messageId: 'nonPromiseAwait', - fix: fixer => removeAwait(fixer, node), - }), - }); - } - return; - } - // At this point it's definitely a thenable. - const affectsErrorHandling = affectsExplicitErrorHandling(expression) || - affectsExplicitResourceManagement(node); - const useAutoFix = !affectsErrorHandling; - const ruleConfiguration = getConfiguration(option); - const shouldAwaitInCurrentContext = affectsErrorHandling - ? ruleConfiguration.errorHandlingContext - : ruleConfiguration.ordinaryContext; - switch (shouldAwaitInCurrentContext) { - case "don't-care": - break; - case 'await': - if (!isAwait) { - context.report({ - messageId: 'requiredPromiseAwait', - node, - ...fixOrSuggest(useAutoFix, { - messageId: 'requiredPromiseAwaitSuggestion', - fix: fixer => insertAwait(fixer, node, isHigherPrecedenceThanAwait(expression)), - }), - }); - } - break; - case 'no-await': - if (isAwait) { - context.report({ - messageId: 'disallowedPromiseAwait', - node, - ...fixOrSuggest(useAutoFix, { - messageId: 'disallowedPromiseAwaitSuggestion', - fix: fixer => removeAwait(fixer, node), - }), - }); - } - break; - } - } - function findPossiblyReturnedNodes(node) { - if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - return [ - ...findPossiblyReturnedNodes(node.alternate), - ...findPossiblyReturnedNodes(node.consequent), - ]; - } - return [node]; - } - return { - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction, - 'FunctionDeclaration:exit': exitFunction, - 'FunctionExpression:exit': exitFunction, - 'ArrowFunctionExpression:exit': exitFunction, - // executes after less specific handler, so exitFunction is called - 'ArrowFunctionExpression[async = true]:exit'(node) { - if (node.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - findPossiblyReturnedNodes(node.body).forEach(node => { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - test(node, tsNode); - }); - } - }, - ReturnStatement(node) { - const scopeInfo = scopeInfoStack.at(-1); - if (!scopeInfo?.hasAsync || !node.argument) { - return; - } - findPossiblyReturnedNodes(node.argument).forEach(node => { - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - test(node, tsNode); - }); - }, - }; - }, -}); -function getConfiguration(option) { - switch (option) { - case 'always': - return { - ordinaryContext: 'await', - errorHandlingContext: 'await', - }; - case 'never': - return { - ordinaryContext: 'no-await', - errorHandlingContext: 'no-await', - }; - case 'error-handling-correctness-only': - return { - ordinaryContext: "don't-care", - errorHandlingContext: 'await', - }; - case 'in-try-catch': - return { - ordinaryContext: 'no-await', - errorHandlingContext: 'await', - }; - } -} -function fixOrSuggest(useFix, suggestion) { - return useFix ? { fix: suggestion.fix } : { suggest: [suggestion] }; -} -//# sourceMappingURL=return-await.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map deleted file mode 100644 index 40307ced..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAQiB;AACjB,yEAAsE;AAkBtE,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,iBAAiB;YAClC,WAAW,EAAE;gBACX,MAAM,EAAE,CAAC,iCAAiC,CAAC;aAC5C;SACF;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,eAAe,EACb,kEAAkE;YACpE,sBAAsB,EACpB,8DAA8D;YAChE,oBAAoB,EAClB,2DAA2D;YAC7D,8BAA8B,EAC5B,iFAAiF;YACnF,gCAAgC,EAC9B,oFAAoF;SACvF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,cAAc;oBACd,QAAQ;oBACR,OAAO;oBACP,iCAAiC;iBACf;aACrB;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,CAAC;IAEhC,MAAM,CAAC,OAAO,EAAE,CAA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ACJ,KAAK,cAAc;YACjB,OAAO;gBACL,eAAe,EAAE,UAAU;gBAC3B,oBAAoB,EAAE,OAAO;aAC9B,CAAC;IACN,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CACnB,MAAe,EACf,UAA0D;IAI1D,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AACtE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js deleted file mode 100644 index d9b89555..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +++ /dev/null @@ -1,248 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -var Group; -(function (Group) { - Group["conditional"] = "conditional"; - Group["function"] = "function"; - Group["import"] = "import"; - Group["intersection"] = "intersection"; - Group["keyword"] = "keyword"; - Group["nullish"] = "nullish"; - Group["literal"] = "literal"; - Group["named"] = "named"; - Group["object"] = "object"; - Group["operator"] = "operator"; - Group["tuple"] = "tuple"; - Group["union"] = "union"; -})(Group || (Group = {})); -function getGroup(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSConditionalType: - return Group.conditional; - case utils_1.AST_NODE_TYPES.TSConstructorType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - return Group.function; - case utils_1.AST_NODE_TYPES.TSImportType: - return Group.import; - case utils_1.AST_NODE_TYPES.TSIntersectionType: - return Group.intersection; - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: - return Group.keyword; - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - return Group.nullish; - case utils_1.AST_NODE_TYPES.TSLiteralType: - case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: - return Group.literal; - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSIndexedAccessType: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSTypeReference: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - return Group.named; - case utils_1.AST_NODE_TYPES.TSMappedType: - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return Group.object; - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return Group.operator; - case utils_1.AST_NODE_TYPES.TSTupleType: - return Group.tuple; - case utils_1.AST_NODE_TYPES.TSUnionType: - return Group.union; - // These types should never occur as part of a union/intersection - case utils_1.AST_NODE_TYPES.TSAbstractKeyword: - case utils_1.AST_NODE_TYPES.TSAsyncKeyword: - case utils_1.AST_NODE_TYPES.TSDeclareKeyword: - case utils_1.AST_NODE_TYPES.TSExportKeyword: - case utils_1.AST_NODE_TYPES.TSNamedTupleMember: - case utils_1.AST_NODE_TYPES.TSOptionalType: - case utils_1.AST_NODE_TYPES.TSPrivateKeyword: - case utils_1.AST_NODE_TYPES.TSProtectedKeyword: - case utils_1.AST_NODE_TYPES.TSPublicKeyword: - case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: - case utils_1.AST_NODE_TYPES.TSRestType: - case utils_1.AST_NODE_TYPES.TSStaticKeyword: - case utils_1.AST_NODE_TYPES.TSTypePredicate: - /* istanbul ignore next */ - throw new Error(`Unexpected Type ${node.type}`); - } -} -function caseSensitiveSort(a, b) { - if (a < b) { - return -1; - } - else if (a > b) { - return 1; - } - return 0; -} -exports.default = (0, util_1.createRule)({ - name: 'sort-type-constituents', - meta: { - deprecated: true, - replacedBy: [ - 'perfectionist/sort-intersection-types', - 'perfectionist/sort-union-types', - ], - type: 'suggestion', - docs: { - description: 'Enforce constituents of a type union/intersection to be sorted alphabetically', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - notSorted: '{{type}} type constituents must be sorted.', - notSortedNamed: '{{type}} type {{name}} constituents must be sorted.', - suggestFix: 'Sort constituents of type (removes all comments).', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - checkIntersections: { - description: 'Whether to check intersection types.', - type: 'boolean', - }, - checkUnions: { - description: 'Whether to check union types.', - type: 'boolean', - }, - caseSensitive: { - description: 'Whether to sort using case sensitive sorting.', - type: 'boolean', - }, - groupOrder: { - description: 'Ordering of the groups.', - type: 'array', - items: { - type: 'string', - enum: (0, util_1.getEnumNames)(Group), - }, - }, - }, - }, - ], - }, - defaultOptions: [ - { - checkIntersections: true, - checkUnions: true, - caseSensitive: false, - groupOrder: [ - Group.named, - Group.keyword, - Group.operator, - Group.literal, - Group.function, - Group.import, - Group.conditional, - Group.object, - Group.tuple, - Group.intersection, - Group.union, - Group.nullish, - ], - }, - ], - create(context, [{ checkIntersections, checkUnions, caseSensitive, groupOrder }]) { - const collator = new Intl.Collator('en', { - sensitivity: 'base', - numeric: true, - }); - function checkSorting(node) { - const sourceOrder = node.types.map(type => { - const group = groupOrder?.indexOf(getGroup(type)) ?? -1; - return { - group: group === -1 ? Number.MAX_SAFE_INTEGER : group, - node: type, - text: context.sourceCode.getText(type), - }; - }); - const expectedOrder = [...sourceOrder].sort((a, b) => { - if (a.group !== b.group) { - return a.group - b.group; - } - if (caseSensitive) { - return caseSensitiveSort(a.text, b.text); - } - return (collator.compare(a.text, b.text) || - (a.text < b.text ? -1 : a.text > b.text ? 1 : 0)); - }); - const hasComments = node.types.some(type => { - const count = context.sourceCode.getCommentsBefore(type).length + - context.sourceCode.getCommentsAfter(type).length; - return count > 0; - }); - for (let i = 0; i < expectedOrder.length; i += 1) { - if (expectedOrder[i].node !== sourceOrder[i].node) { - let messageId = 'notSorted'; - const data = { - name: '', - type: node.type === utils_1.AST_NODE_TYPES.TSIntersectionType - ? 'Intersection' - : 'Union', - }; - if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - messageId = 'notSortedNamed'; - data.name = node.parent.id.name; - } - const fix = fixer => { - const sorted = expectedOrder - .map(t => (0, util_1.typeNodeRequiresParentheses)(t.node, t.text) || - (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && - t.node.type === utils_1.AST_NODE_TYPES.TSUnionType) - ? `(${t.text})` - : t.text) - .join(node.type === utils_1.AST_NODE_TYPES.TSIntersectionType ? ' & ' : ' | '); - return fixer.replaceText(node, sorted); - }; - return context.report({ - node, - messageId, - data, - // don't autofix if any of the types have leading/trailing comments - // the logic for preserving them correctly is a pain - we may implement this later - ...(hasComments - ? { - suggest: [ - { - messageId: 'suggestFix', - fix, - }, - ], - } - : { fix }), - }); - } - } - } - return { - ...(checkIntersections && { - TSIntersectionType(node) { - checkSorting(node); - }, - }), - ...(checkUnions && { - TSUnionType(node) { - checkSorting(node); - }, - }), - }; - }, -}); -//# sourceMappingURL=sort-type-constituents.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map deleted file mode 100644 index ae26e31f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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P;wCACE,SAAS,EAAE,YAAY;wCACvB,GAAG;qCACJ;iCACF;6BACF;4BACH,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO;YACL,GAAG,CAAC,kBAAkB,IAAI;gBACxB,kBAAkB,CAAC,IAAI;oBACrB,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,GAAG,CAAC,WAAW,IAAI;gBACjB,WAAW,CAAC,IAAI;oBACd,YAAY,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;aACF,CAAC;SACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js deleted file mode 100644 index 87b3707c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +++ /dev/null @@ -1,905 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'strict-boolean-expressions', - meta: { - type: 'suggestion', - fixable: 'code', - hasSuggestions: true, - docs: { - description: 'Disallow certain types in boolean expressions', - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowString: { type: 'boolean' }, - allowNumber: { type: 'boolean' }, - allowNullableObject: { type: 'boolean' }, - allowNullableBoolean: { type: 'boolean' }, - allowNullableString: { type: 'boolean' }, - allowNullableNumber: { type: 'boolean' }, - allowNullableEnum: { type: 'boolean' }, - allowAny: { type: 'boolean' }, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - conditionErrorOther: 'Unexpected value in conditional. ' + - 'A boolean expression is required.', - conditionErrorAny: 'Unexpected any value in conditional. ' + - 'An explicit comparison or type cast is required.', - conditionErrorNullish: 'Unexpected nullish value in conditional. ' + - 'The condition is always false.', - conditionErrorNullableBoolean: 'Unexpected nullable boolean value in conditional. ' + - 'Please handle the nullish case explicitly.', - conditionErrorString: 'Unexpected string value in conditional. ' + - 'An explicit empty string check is required.', - conditionErrorNullableString: 'Unexpected nullable string value in conditional. ' + - 'Please handle the nullish/empty cases explicitly.', - conditionErrorNumber: 'Unexpected number value in conditional. ' + - 'An explicit zero/NaN check is required.', - conditionErrorNullableNumber: 'Unexpected nullable number value in conditional. ' + - 'Please handle the nullish/zero/NaN cases explicitly.', - conditionErrorObject: 'Unexpected object value in conditional. ' + - 'The condition is always true.', - conditionErrorNullableObject: 'Unexpected nullable object value in conditional. ' + - 'An explicit null check is required.', - conditionErrorNullableEnum: 'Unexpected nullable enum value in conditional. ' + - 'Please handle the nullish/zero/NaN cases explicitly.', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - conditionFixDefaultFalse: 'Explicitly treat nullish value the same as false (`value ?? false`)', - conditionFixDefaultEmptyString: 'Explicitly treat nullish value the same as an empty string (`value ?? ""`)', - conditionFixDefaultZero: 'Explicitly treat nullish value the same as 0 (`value ?? 0`)', - conditionFixCompareNullish: 'Change condition to check for null/undefined (`value != null`)', - conditionFixCastBoolean: 'Explicitly cast value to a boolean (`Boolean(value)`)', - conditionFixCompareTrue: 'Change condition to check if true (`value === true`)', - conditionFixCompareFalse: 'Change condition to check if false (`value === false`)', - conditionFixCompareStringLength: "Change condition to check string's length (`value.length !== 0`)", - conditionFixCompareEmptyString: 'Change condition to check for empty string (`value !== ""`)', - conditionFixCompareZero: 'Change condition to check for 0 (`value !== 0`)', - conditionFixCompareNaN: 'Change condition to check for NaN (`!Number.isNaN(value)`)', - }, - }, - defaultOptions: [ - { - allowString: true, - allowNumber: true, - allowNullableObject: true, - allowNullableBoolean: false, - allowNullableString: false, - allowNullableNumber: false, - allowNullableEnum: false, - allowAny: false, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - }, - ], - create(context, [options]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - options.allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - const traversedNodes = new Set(); - return { - ConditionalExpression: traverseTestExpression, - DoWhileStatement: traverseTestExpression, - ForStatement: traverseTestExpression, - IfStatement: traverseTestExpression, - WhileStatement: traverseTestExpression, - 'LogicalExpression[operator!="??"]': traverseLogicalExpression, - 'UnaryExpression[operator="!"]': traverseUnaryLogicalExpression, - CallExpression: traverseCallExpression, - }; - /** - * Inspects condition of a test expression. (`if`, `while`, `for`, etc.) - */ - function traverseTestExpression(node) { - if (node.test == null) { - return; - } - traverseNode(node.test, true); - } - /** - * Inspects the argument of a unary logical expression (`!`). - */ - function traverseUnaryLogicalExpression(node) { - traverseNode(node.argument, true); - } - /** - * Inspects the arguments of a logical expression (`&&`, `||`). - * - * If the logical expression is a descendant of a test expression, - * the `isCondition` flag should be set to true. - * Otherwise, if the logical expression is there on it's own, - * it's used for control flow and is not a condition itself. - */ - function traverseLogicalExpression(node, isCondition = false) { - // left argument is always treated as a condition - traverseNode(node.left, true); - // if the logical expression is used for control flow, - // then its right argument is used for its side effects only - traverseNode(node.right, isCondition); - } - function traverseCallExpression(node) { - const assertedArgument = findAssertedArgument(node); - if (assertedArgument != null) { - traverseNode(assertedArgument, true); - } - } - /** - * Inspect a call expression to see if it's a call to an assertion function. - * If it is, return the node of the argument that is asserted. - */ - function findAssertedArgument(node) { - // If the call looks like `assert(expr1, expr2, ...c, d, e, f)`, then we can - // only care if `expr1` or `expr2` is asserted, since anything that happens - // within or after a spread argument is out of scope to reason about. - const checkableArguments = []; - for (const argument of node.arguments) { - if (argument.type === utils_1.AST_NODE_TYPES.SpreadElement) { - break; - } - checkableArguments.push(argument); - } - // nothing to do - if (checkableArguments.length === 0) { - return undefined; - } - // Game plan: we're going to check the type of the callee. If it has call - // signatures and they _ALL_ agree that they assert on a parameter at the - // _SAME_ position, we'll consider the argument in that position to be an - // asserted argument. - const calleeType = (0, util_1.getConstrainedTypeAtLocation)(services, node.callee); - const callSignatures = tsutils.getCallSignaturesOfType(calleeType); - let assertedParameterIndex = undefined; - for (const signature of callSignatures) { - const declaration = signature.getDeclaration(); - const returnTypeAnnotation = declaration.type; - // Be sure we're dealing with a truthiness assertion function. - if (!(returnTypeAnnotation != null && - ts.isTypePredicateNode(returnTypeAnnotation) && - // This eliminates things like `x is string` and `asserts x is T` - // leaving us with just the `asserts x` cases. - returnTypeAnnotation.type == null && - // I think this is redundant but, still, it needs to be true - returnTypeAnnotation.assertsModifier != null)) { - return undefined; - } - const assertionTarget = returnTypeAnnotation.parameterName; - if (assertionTarget.kind !== ts.SyntaxKind.Identifier) { - // This can happen when asserting on `this`. Ignore! - return undefined; - } - // If the first parameter is `this`, skip it, so that our index matches - // the index of the argument at the call site. - const firstParameter = declaration.parameters.at(0); - const nonThisParameters = firstParameter?.name.kind === ts.SyntaxKind.Identifier && - firstParameter.name.text === 'this' - ? declaration.parameters.slice(1) - : declaration.parameters; - // Don't bother inspecting parameters past the number of - // arguments we have at the call site. - const checkableNonThisParameters = nonThisParameters.slice(0, checkableArguments.length); - let assertedParameterIndexForThisSignature; - for (const [index, parameter] of checkableNonThisParameters.entries()) { - if (parameter.dotDotDotToken != null) { - // Cannot assert a rest parameter, and can't have a rest parameter - // before the asserted parameter. It's not only a TS error, it's - // not something we can logically make sense of, so give up here. - return undefined; - } - if (parameter.name.kind !== ts.SyntaxKind.Identifier) { - // Only identifiers are valid for assertion targets, so skip over - // anything like `{ destructuring: parameter }: T` - continue; - } - // we've found a match between the "target"s in - // `function asserts(target: T): asserts target;` - if (parameter.name.text === assertionTarget.text) { - assertedParameterIndexForThisSignature = index; - break; - } - } - if (assertedParameterIndexForThisSignature == null) { - // Didn't find an assertion target in this signature that could match - // the call site. - return undefined; - } - if (assertedParameterIndex != null && - assertedParameterIndex !== assertedParameterIndexForThisSignature) { - // The asserted parameter we found for this signature didn't match - // previous signatures. - return undefined; - } - assertedParameterIndex = assertedParameterIndexForThisSignature; - } - // Didn't find a unique assertion index. - if (assertedParameterIndex == null) { - return undefined; - } - return checkableArguments[assertedParameterIndex]; - } - /** - * Inspects any node. - * - * If it's a logical expression then it recursively traverses its arguments. - * If it's any other kind of node then it's type is finally checked against the rule, - * unless `isCondition` flag is set to false, in which case - * it's assumed to be used for side effects only and is skipped. - */ - function traverseNode(node, isCondition) { - // prevent checking the same node multiple times - if (traversedNodes.has(node)) { - return; - } - traversedNodes.add(node); - // for logical operator, we check its operands - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.operator !== '??') { - traverseLogicalExpression(node, isCondition); - return; - } - // skip if node is not a condition - if (!isCondition) { - return; - } - checkNode(node); - } - /** - * This function does the actual type check on a node. - * It analyzes the type of a node and checks if it is allowed in a boolean context. - */ - function checkNode(node) { - const type = (0, util_1.getConstrainedTypeAtLocation)(services, node); - const types = inspectVariantTypes(tsutils.unionTypeParts(type)); - const is = (...wantedTypes) => types.size === wantedTypes.length && - wantedTypes.every(type => types.has(type)); - // boolean - if (is('boolean') || is('truthy boolean')) { - // boolean is always okay - return; - } - // never - if (is('never')) { - // never is always okay - return; - } - // nullish - if (is('nullish')) { - // condition is always false - context.report({ node, messageId: 'conditionErrorNullish' }); - return; - } - // Known edge case: boolean `true` and nullish values are always valid boolean expressions - if (is('nullish', 'truthy boolean')) { - return; - } - // nullable boolean - if (is('nullish', 'boolean')) { - if (!options.allowNullableBoolean) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableBoolean) - context.report({ - node, - messageId: 'conditionErrorNullableBoolean', - suggest: [ - { - messageId: 'conditionFixDefaultFalse', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? false`, - }), - }, - { - messageId: 'conditionFixCompareFalse', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === false`, - }), - }, - ], - }); - } - else { - // if (nullableBoolean) - context.report({ - node, - messageId: 'conditionErrorNullableBoolean', - suggest: [ - { - messageId: 'conditionFixDefaultFalse', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? false`, - }), - }, - { - messageId: 'conditionFixCompareTrue', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} === true`, - }), - }, - ], - }); - } - } - return; - } - // Known edge case: truthy primitives and nullish values are always valid boolean expressions - if ((options.allowNumber && is('nullish', 'truthy number')) || - (options.allowString && is('nullish', 'truthy string'))) { - return; - } - // string - if (is('string') || is('truthy string')) { - if (!options.allowString) { - if (isLogicalNegationExpression(node.parent)) { - // if (!string) - context.report({ - node, - messageId: 'conditionErrorString', - suggest: [ - { - messageId: 'conditionFixCompareStringLength', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code}.length === 0`, - }), - }, - { - messageId: 'conditionFixCompareEmptyString', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (string) - context.report({ - node, - messageId: 'conditionErrorString', - suggest: [ - { - messageId: 'conditionFixCompareStringLength', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code}.length > 0`, - }), - }, - { - messageId: 'conditionFixCompareEmptyString', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} !== ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // nullable string - if (is('nullish', 'string')) { - if (!options.allowNullableString) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableString) - context.report({ - node, - messageId: 'conditionErrorNullableString', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }, - { - messageId: 'conditionFixDefaultEmptyString', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (nullableString) - context.report({ - node, - messageId: 'conditionErrorNullableString', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} != null`, - }), - }, - { - messageId: 'conditionFixDefaultEmptyString', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // number - if (is('number') || is('truthy number')) { - if (!options.allowNumber) { - if (isArrayLengthExpression(node, checker, services)) { - if (isLogicalNegationExpression(node.parent)) { - // if (!array.length) - context.report({ - node, - messageId: 'conditionErrorNumber', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === 0`, - }), - }); - } - else { - // if (array.length) - context.report({ - node, - messageId: 'conditionErrorNumber', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} > 0`, - }), - }); - } - } - else if (isLogicalNegationExpression(node.parent)) { - // if (!number) - context.report({ - node, - messageId: 'conditionErrorNumber', - suggest: [ - { - messageId: 'conditionFixCompareZero', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - // TODO: we have to compare to 0n if the type is bigint - wrap: code => `${code} === 0`, - }), - }, - { - // TODO: don't suggest this for bigint because it can't be NaN - messageId: 'conditionFixCompareNaN', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `Number.isNaN(${code})`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (number) - context.report({ - node, - messageId: 'conditionErrorNumber', - suggest: [ - { - messageId: 'conditionFixCompareZero', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} !== 0`, - }), - }, - { - messageId: 'conditionFixCompareNaN', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `!Number.isNaN(${code})`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // nullable number - if (is('nullish', 'number')) { - if (!options.allowNullableNumber) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableNumber) - context.report({ - node, - messageId: 'conditionErrorNullableNumber', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }, - { - messageId: 'conditionFixDefaultZero', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? 0`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (nullableNumber) - context.report({ - node, - messageId: 'conditionErrorNullableNumber', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} != null`, - }), - }, - { - messageId: 'conditionFixDefaultZero', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} ?? 0`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // object - if (is('object')) { - // condition is always true - context.report({ node, messageId: 'conditionErrorObject' }); - return; - } - // nullable object - if (is('nullish', 'object')) { - if (!options.allowNullableObject) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableObject) - context.report({ - node, - messageId: 'conditionErrorNullableObject', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }, - ], - }); - } - else { - // if (nullableObject) - context.report({ - node, - messageId: 'conditionErrorNullableObject', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} != null`, - }), - }, - ], - }); - } - } - return; - } - // nullable enum - if (is('nullish', 'number', 'enum') || - is('nullish', 'string', 'enum') || - is('nullish', 'truthy number', 'enum') || - is('nullish', 'truthy string', 'enum') || - // mixed enums - is('nullish', 'truthy number', 'truthy string', 'enum') || - is('nullish', 'truthy number', 'string', 'enum') || - is('nullish', 'truthy string', 'number', 'enum') || - is('nullish', 'number', 'string', 'enum')) { - if (!options.allowNullableEnum) { - if (isLogicalNegationExpression(node.parent)) { - context.report({ - node, - messageId: 'conditionErrorNullableEnum', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }); - } - else { - context.report({ - node, - messageId: 'conditionErrorNullableEnum', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `${code} != null`, - }), - }); - } - } - return; - } - // any - if (is('any')) { - if (!options.allowAny) { - context.report({ - node, - messageId: 'conditionErrorAny', - suggest: [ - { - messageId: 'conditionFixCastBoolean', - fix: (0, util_1.getWrappingFixer)({ - sourceCode: context.sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - return; - } - // other - context.report({ node, messageId: 'conditionErrorOther' }); - } - /** - * Check union variants for the types we care about - */ - function inspectVariantTypes(types) { - const variantTypes = new Set(); - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined | ts.TypeFlags.VoidLike))) { - variantTypes.add('nullish'); - } - const booleans = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.BooleanLike)); - // If incoming type is either "true" or "false", there will be one type - // object with intrinsicName set accordingly - // If incoming type is boolean, there will be two type objects with - // intrinsicName set "true" and "false" each because of ts-api-utils.unionTypeParts() - if (booleans.length === 1) { - variantTypes.add(tsutils.isTrueLiteralType(booleans[0]) ? 'truthy boolean' : 'boolean'); - } - else if (booleans.length === 2) { - variantTypes.add('boolean'); - } - const strings = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.StringLike)); - if (strings.length) { - if (strings.every(type => type.isStringLiteral() && type.value !== '')) { - variantTypes.add('truthy string'); - } - else { - variantTypes.add('string'); - } - } - const numbers = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike)); - if (numbers.length) { - if (numbers.every(type => type.isNumberLiteral() && type.value !== 0)) { - variantTypes.add('truthy number'); - } - else { - variantTypes.add('number'); - } - } - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.EnumLike))) { - variantTypes.add('enum'); - } - if (types.some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | - ts.TypeFlags.Undefined | - ts.TypeFlags.VoidLike | - ts.TypeFlags.BooleanLike | - ts.TypeFlags.StringLike | - ts.TypeFlags.NumberLike | - ts.TypeFlags.BigIntLike | - ts.TypeFlags.TypeParameter | - ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.Never))) { - variantTypes.add(types.some(isBrandedBoolean) ? 'boolean' : 'object'); - } - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.TypeParameter | - ts.TypeFlags.Any | - ts.TypeFlags.Unknown))) { - variantTypes.add('any'); - } - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Never))) { - variantTypes.add('never'); - } - return variantTypes; - } - }, -}); -function isLogicalNegationExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.UnaryExpression && node.operator === '!'; -} -function isArrayLengthExpression(node, typeChecker, services) { - if (node.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - return false; - } - if (node.computed) { - return false; - } - if (node.property.name !== 'length') { - return false; - } - const objectType = (0, util_1.getConstrainedTypeAtLocation)(services, node.object); - return (0, util_1.isTypeArrayTypeOrUnionOfArrayTypes)(objectType, typeChecker); -} -/** - * Verify is the type is a branded boolean (e.g. `type Foo = boolean & { __brand: 'Foo' }`) - * - * @param type The type checked - */ -function isBrandedBoolean(type) { - return (type.isIntersection() && - type.types.some(childType => tsutils.isTypeFlagSet(childType, ts.TypeFlags.BooleanLiteral | ts.TypeFlags.Boolean))); -} -//# sourceMappingURL=strict-boolean-expressions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map deleted file mode 100644 index 51f2927c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAMiB;AAyCjB,kBAAe,IAAA,iBAAU,EAAqB;IAC5C,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACp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C;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,UAAU,GAAG,IAAA,mCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACvE,OAAO,IAAA,yCAAkC,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,IAAa;IACrC,OAAO,CACL,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAC1B,OAAO,CAAC,aAAa,CACnB,SAAS,EACT,EAAE,CAAC,SAAS,CAAC,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CACnD,CACF,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js deleted file mode 100644 index bc969415..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +++ /dev/null @@ -1,239 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'switch-exhaustiveness-check', - meta: { - type: 'suggestion', - docs: { - description: 'Require switch-case statements to be exhaustive', - requiresTypeChecking: true, - }, - hasSuggestions: true, - schema: [ - { - type: 'object', - properties: { - allowDefaultCaseForExhaustiveSwitch: { - description: `If 'true', allow 'default' cases on switch statements with exhaustive cases.`, - type: 'boolean', - }, - requireDefaultForNonUnion: { - description: `If 'true', require a 'default' clause for switches on non-union types.`, - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - switchIsNotExhaustive: 'Switch is not exhaustive. Cases not matched: {{missingBranches}}', - dangerousDefaultCase: 'The switch statement is exhaustive, so the default case is unnecessary.', - addMissingCases: 'Add branches for missing cases.', - }, - }, - defaultOptions: [ - { - allowDefaultCaseForExhaustiveSwitch: true, - requireDefaultForNonUnion: false, - }, - ], - create(context, [{ allowDefaultCaseForExhaustiveSwitch, requireDefaultForNonUnion }]) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - const compilerOptions = services.program.getCompilerOptions(); - function getSwitchMetadata(node) { - const defaultCase = node.cases.find(switchCase => switchCase.test == null); - const discriminantType = (0, util_1.getConstrainedTypeAtLocation)(services, node.discriminant); - const symbolName = discriminantType.getSymbol()?.escapedName; - const containsNonLiteralType = doesTypeContainNonLiteralType(discriminantType); - const caseTypes = new Set(); - for (const switchCase of node.cases) { - // If the `test` property of the switch case is `null`, then we are on a - // `default` case. - if (switchCase.test == null) { - continue; - } - const caseType = (0, util_1.getConstrainedTypeAtLocation)(services, switchCase.test); - caseTypes.add(caseType); - } - const missingLiteralBranchTypes = []; - for (const unionPart of tsutils.unionTypeParts(discriminantType)) { - for (const intersectionPart of tsutils.intersectionTypeParts(unionPart)) { - if (caseTypes.has(intersectionPart) || - !isTypeLiteralLikeType(intersectionPart)) { - continue; - } - missingLiteralBranchTypes.push(intersectionPart); - } - } - return { - symbolName, - missingLiteralBranchTypes, - defaultCase, - containsNonLiteralType, - }; - } - function checkSwitchExhaustive(node, switchMetadata) { - const { missingLiteralBranchTypes, symbolName, defaultCase } = switchMetadata; - // We only trigger the rule if a `default` case does not exist, since that - // would disqualify the switch statement from having cases that exactly - // match the members of a union. - if (missingLiteralBranchTypes.length > 0 && defaultCase === undefined) { - context.report({ - node: node.discriminant, - messageId: 'switchIsNotExhaustive', - data: { - missingBranches: missingLiteralBranchTypes - .map(missingType => tsutils.isTypeFlagSet(missingType, ts.TypeFlags.ESSymbolLike) - ? `typeof ${missingType.getSymbol()?.escapedName}` - : checker.typeToString(missingType)) - .join(' | '), - }, - suggest: [ - { - messageId: 'addMissingCases', - fix(fixer) { - return fixSwitch(fixer, node, missingLiteralBranchTypes, symbolName?.toString()); - }, - }, - ], - }); - } - } - function fixSwitch(fixer, node, missingBranchTypes, // null means default branch - symbolName) { - const lastCase = node.cases.length > 0 ? node.cases[node.cases.length - 1] : null; - const caseIndent = lastCase - ? ' '.repeat(lastCase.loc.start.column) - : // If there are no cases, use indentation of the switch statement and - // leave it to the user to format it correctly. - ' '.repeat(node.loc.start.column); - const missingCases = []; - for (const missingBranchType of missingBranchTypes) { - if (missingBranchType == null) { - missingCases.push(`default: { throw new Error('default case') }`); - continue; - } - const missingBranchName = missingBranchType.getSymbol()?.escapedName; - let caseTest = tsutils.isTypeFlagSet(missingBranchType, ts.TypeFlags.ESSymbolLike) - ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - missingBranchName - : checker.typeToString(missingBranchType); - if (symbolName && - (missingBranchName || missingBranchName === '') && - (0, util_1.requiresQuoting)(missingBranchName.toString(), compilerOptions.target)) { - const escapedBranchName = missingBranchName - .replaceAll("'", "\\'") - .replaceAll('\n', '\\n') - .replaceAll('\r', '\\r'); - caseTest = `${symbolName}['${escapedBranchName}']`; - } - missingCases.push(`case ${caseTest}: { throw new Error('Not implemented yet: ${caseTest - .replaceAll('\\', '\\\\') - .replaceAll("'", "\\'")} case') }`); - } - const fixString = missingCases - .map(code => `${caseIndent}${code}`) - .join('\n'); - if (lastCase) { - return fixer.insertTextAfter(lastCase, `\n${fixString}`); - } - // There were no existing cases. - const openingBrace = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.discriminant, util_1.isOpeningBraceToken), util_1.NullThrowsReasons.MissingToken('{', 'discriminant')); - const closingBrace = (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(node.discriminant, util_1.isClosingBraceToken), util_1.NullThrowsReasons.MissingToken('}', 'discriminant')); - return fixer.replaceTextRange([openingBrace.range[0], closingBrace.range[1]], ['{', fixString, `${caseIndent}}`].join('\n')); - } - function checkSwitchUnnecessaryDefaultCase(switchMetadata) { - if (allowDefaultCaseForExhaustiveSwitch) { - return; - } - const { missingLiteralBranchTypes, defaultCase, containsNonLiteralType } = switchMetadata; - if (missingLiteralBranchTypes.length === 0 && - defaultCase !== undefined && - !containsNonLiteralType) { - context.report({ - node: defaultCase, - messageId: 'dangerousDefaultCase', - }); - } - } - function checkSwitchNoUnionDefaultCase(node, switchMetadata) { - if (!requireDefaultForNonUnion) { - return; - } - const { defaultCase, containsNonLiteralType } = switchMetadata; - if (containsNonLiteralType && defaultCase === undefined) { - context.report({ - node: node.discriminant, - messageId: 'switchIsNotExhaustive', - data: { missingBranches: 'default' }, - suggest: [ - { - messageId: 'addMissingCases', - fix(fixer) { - return fixSwitch(fixer, node, [null]); - }, - }, - ], - }); - } - } - return { - SwitchStatement(node) { - const switchMetadata = getSwitchMetadata(node); - checkSwitchExhaustive(node, switchMetadata); - checkSwitchUnnecessaryDefaultCase(switchMetadata); - checkSwitchNoUnionDefaultCase(node, switchMetadata); - }, - }; - }, -}); -function isTypeLiteralLikeType(type) { - return tsutils.isTypeFlagSet(type, ts.TypeFlags.Literal | - ts.TypeFlags.Undefined | - ts.TypeFlags.Null | - ts.TypeFlags.UniqueESSymbol); -} -/** - * For example: - * - * - `"foo" | "bar"` is a type with all literal types. - * - `"foo" | number` is a type that contains non-literal types. - * - `"foo" & { bar: 1 }` is a type that contains non-literal types. - * - * Default cases are never superfluous in switches with non-literal types. - */ -function doesTypeContainNonLiteralType(type) { - return tsutils - .unionTypeParts(type) - .some(type => tsutils - .intersectionTypeParts(type) - .every(subType => !isTypeLiteralLikeType(subType))); -} -//# sourceMappingURL=switch-exhaustiveness-check.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map deleted file mode 100644 index 5c530aa3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AACxC,+CAAiC;AAEjC,kCASiB;AAiCjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,mCAAmC,EAAE;wBACnC,WAAW,EAAE,8EAA8E;wBAC3F,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,WAAW,EAAE,wEAAwE;wBACrF,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBA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ACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAE/C,qBAAqB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;gBAC5C,iCAAiC,CAAC,cAAc,CAAC,CAAC;gBAClD,6BAA6B,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAAC,IAAa;IAC1C,OAAO,OAAO,CAAC,aAAa,CAC1B,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,OAAO;QAClB,EAAE,CAAC,SAAS,CAAC,SAAS;QACtB,EAAE,CAAC,SAAS,CAAC,IAAI;QACjB,EAAE,CAAC,SAAS,CAAC,cAAc,CAC9B,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,6BAA6B,CAAC,IAAa;IAClD,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,IAAI,CAAC,EAAE,CACX,OAAO;SACJ,qBAAqB,CAAC,IAAI,CAAC;SAC3B,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js deleted file mode 100644 index 544b9950..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'triple-slash-reference', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow certain triple slash directives in favor of ES6-style import declarations', - recommended: 'recommended', - }, - messages: { - tripleSlashReference: 'Do not use a triple slash reference for {{module}}, use `import` style instead.', - }, - schema: [ - { - type: 'object', - properties: { - lib: { - type: 'string', - enum: ['always', 'never'], - }, - path: { - type: 'string', - enum: ['always', 'never'], - }, - types: { - type: 'string', - enum: ['always', 'never', 'prefer-import'], - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - lib: 'always', - path: 'never', - types: 'prefer-import', - }, - ], - create(context, [{ lib, path, types }]) { - let programNode; - const references = []; - function hasMatchingReference(source) { - references.forEach(reference => { - if (reference.importName === source.value) { - context.report({ - node: reference.comment, - messageId: 'tripleSlashReference', - data: { - module: reference.importName, - }, - }); - } - }); - } - return { - ImportDeclaration(node) { - if (programNode) { - hasMatchingReference(node.source); - } - }, - TSImportEqualsDeclaration(node) { - if (programNode) { - const reference = node.moduleReference; - if (reference.type === utils_1.AST_NODE_TYPES.TSExternalModuleReference) { - hasMatchingReference(reference.expression); - } - } - }, - Program(node) { - if (lib === 'always' && path === 'always' && types === 'always') { - return; - } - programNode = node; - const referenceRegExp = /^\/\s* { - if (comment.type !== utils_1.AST_TOKEN_TYPES.Line) { - return; - } - const referenceResult = referenceRegExp.exec(comment.value); - if (referenceResult) { - if ((referenceResult[1] === 'types' && types === 'never') || - (referenceResult[1] === 'path' && path === 'never') || - (referenceResult[1] === 'lib' && lib === 'never')) { - context.report({ - node: comment, - messageId: 'tripleSlashReference', - data: { - module: referenceResult[2], - }, - }); - return; - } - if (referenceResult[1] === 'types' && types === 'prefer-import') { - references.push({ comment, importName: referenceResult[2] }); - } - } - }); - }, - }; - }, -}); -//# sourceMappingURL=triple-slash-reference.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map deleted file mode 100644 index e2fa937f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triple-slash-reference.js","sourceRoot":"","sources":["../../src/rules/triple-slash-reference.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAE3E,kCAAqC;AAWrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,oFAAoF;YACtF,WAAW,EAAE,aAAa;SAC3B;QACD,QAAQ,EAAE;YACR,oBAAoB,EAClB,iFAAiF;SACpF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,GAAG,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,CAAC;qBAC3C;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,GAAG,EAAE,QAAQ;YACb,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,eAAe;SACvB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACpC,IAAI,WAAsC,CAAC;QAE3C,MAAM,UAAU,GAGV,EAAE,CAAC;QAET,SAAS,oBAAoB,CAAC,MAAwB;YACpD,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBAC7B,IAAI,SAAS,CAAC,UAAU,KAAK,MAAM,CAAC,KAAK,EAAE,CAAC;oBA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,OAAO,IAAI,KAAK,KAAK,OAAO,CAAC;4BACrD,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO,CAAC;4BACnD,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,OAAO,CAAC,EACjD,CAAC;4BACD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,sBAAsB;gCACjC,IAAI,EAAE;oCACJ,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;iCAC3B;6BACF,CAAC,CAAC;4BACH,OAAO;wBACT,CAAC;wBACD,IAAI,eAAe,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,KAAK,KAAK,eAAe,EAAE,CAAC;4BAChE,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;wBAC/D,CAAC;oBACH,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js deleted file mode 100644 index 53ddedd0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'typedef', - meta: { - docs: { - description: 'Require type annotations in certain places', - }, - messages: { - expectedTypedef: 'Expected a type annotation.', - expectedTypedefNamed: 'Expected {{name}} to have a type annotation.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: { type: 'boolean' }, - ["arrowParameter" /* OptionKeys.ArrowParameter */]: { type: 'boolean' }, - ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: { type: 'boolean' }, - ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: { type: 'boolean' }, - ["parameter" /* OptionKeys.Parameter */]: { type: 'boolean' }, - ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: { type: 'boolean' }, - ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: { type: 'boolean' }, - ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: { type: 'boolean' }, - }, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: false, - ["arrowParameter" /* OptionKeys.ArrowParameter */]: false, - ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: false, - ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: false, - ["parameter" /* OptionKeys.Parameter */]: false, - ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: false, - ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: false, - ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: false, - }, - ], - create(context, [{ arrayDestructuring, arrowParameter, memberVariableDeclaration, objectDestructuring, parameter, propertyDeclaration, variableDeclaration, variableDeclarationIgnoreFunction, },]) { - function report(location, name) { - context.report({ - node: location, - messageId: name ? 'expectedTypedefNamed' : 'expectedTypedef', - data: { name }, - }); - } - function getNodeName(node) { - return node.type === utils_1.AST_NODE_TYPES.Identifier ? node.name : undefined; - } - function isForOfStatementContext(node) { - let current = node.parent; - while (current) { - switch (current.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: - case utils_1.AST_NODE_TYPES.VariableDeclaration: - case utils_1.AST_NODE_TYPES.ObjectPattern: - case utils_1.AST_NODE_TYPES.ArrayPattern: - case utils_1.AST_NODE_TYPES.Property: - current = current.parent; - break; - case utils_1.AST_NODE_TYPES.ForOfStatement: - return true; - default: - current = undefined; - } - } - return false; - } - function checkParameters(params) { - for (const param of params) { - let annotationNode; - switch (param.type) { - case utils_1.AST_NODE_TYPES.AssignmentPattern: - annotationNode = param.left; - break; - case utils_1.AST_NODE_TYPES.TSParameterProperty: - annotationNode = param.parameter; - // Check TS parameter property with default value like `constructor(private param: string = 'something') {}` - if (annotationNode.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - annotationNode = annotationNode.left; - } - break; - default: - annotationNode = param; - break; - } - if (!annotationNode.typeAnnotation) { - report(param, getNodeName(param)); - } - } - } - function isVariableDeclarationIgnoreFunction(node) { - return (variableDeclarationIgnoreFunction === true && - (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.type === utils_1.AST_NODE_TYPES.FunctionExpression)); - } - function isAncestorHasTypeAnnotation(node) { - let ancestor = node.parent; - while (ancestor) { - if ((ancestor.type === utils_1.AST_NODE_TYPES.ObjectPattern || - ancestor.type === utils_1.AST_NODE_TYPES.ArrayPattern) && - ancestor.typeAnnotation) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - return { - ...(arrayDestructuring && { - ArrayPattern(node) { - if (node.parent.type === utils_1.AST_NODE_TYPES.RestElement && - node.parent.typeAnnotation) { - return; - } - if (!node.typeAnnotation && - !isForOfStatementContext(node) && - !isAncestorHasTypeAnnotation(node) && - node.parent.type !== utils_1.AST_NODE_TYPES.AssignmentExpression) { - report(node); - } - }, - }), - ...(arrowParameter && { - ArrowFunctionExpression(node) { - checkParameters(node.params); - }, - }), - ...(memberVariableDeclaration && { - PropertyDefinition(node) { - if (!(node.value && isVariableDeclarationIgnoreFunction(node.value)) && - !node.typeAnnotation) { - report(node, node.key.type === utils_1.AST_NODE_TYPES.Identifier - ? node.key.name - : undefined); - } - }, - }), - ...(parameter && { - 'FunctionDeclaration, FunctionExpression'(node) { - checkParameters(node.params); - }, - }), - ...(objectDestructuring && { - ObjectPattern(node) { - if (!node.typeAnnotation && - !isForOfStatementContext(node) && - !isAncestorHasTypeAnnotation(node)) { - report(node); - } - }, - }), - ...(propertyDeclaration && { - 'TSIndexSignature, TSPropertySignature'(node) { - if (!node.typeAnnotation) { - report(node, node.type === utils_1.AST_NODE_TYPES.TSPropertySignature - ? getNodeName(node.key) - : undefined); - } - }, - }), - VariableDeclarator(node) { - if (!variableDeclaration || - node.id.typeAnnotation || - (node.id.type === utils_1.AST_NODE_TYPES.ArrayPattern && - !arrayDestructuring) || - (node.id.type === utils_1.AST_NODE_TYPES.ObjectPattern && - !objectDestructuring) || - (node.init && isVariableDeclarationIgnoreFunction(node.init))) { - return; - } - let current = node.parent; - while (current) { - switch (current.type) { - case utils_1.AST_NODE_TYPES.VariableDeclaration: - // Keep looking upwards - current = current.parent; - break; - case utils_1.AST_NODE_TYPES.ForOfStatement: - case utils_1.AST_NODE_TYPES.ForInStatement: - // Stop traversing and don't report an error - return; - default: - // Stop traversing - current = undefined; - break; - } - } - report(node, getNodeName(node.id)); - }, - }; - }, -}); -//# sourceMappingURL=typedef.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map deleted file mode 100644 index 1ceb072a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typedef.js","sourceRoot":"","sources":["../../src/rules/typedef.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAiBrC,kBAAe,IAAA,iBAAU,EAAwB;IAC/C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,4CAA4C;SAC1D;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,6BAA6B;YAC9C,oBAAoB,EAAE,8CAA8C;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3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,EAAE,CAAC,cAAc;oBACtB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY;wBAC3C,CAAC,kBAAkB,CAAC;oBACtB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa;wBAC5C,CAAC,mBAAmB,CAAC;oBACvB,CAAC,IAAI,CAAC,IAAI,IAAI,mCAAmC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAC7D,CAAC;oBACD,OAAO;gBACT,CAAC;gBAED,IAAI,OAAO,GAA8B,IAAI,CAAC,MAAM,CAAC;gBACrD,OAAO,OAAO,EAAE,CAAC;oBACf,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;wBACrB,KAAK,sBAAc,CAAC,mBAAmB;4BACrC,uBAAuB;4BACvB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;4BACzB,MAAM;wBACR,KAAK,sBAAc,CAAC,cAAc,CAAC;wBACnC,KAAK,sBAAc,CAAC,cAAc;4BAChC,4CAA4C;4BAC5C,OAAO;wBACT;4BACE,kBAAkB;4BAClB,OAAO,GAAG,SAAS,CAAC;4BACpB,MAAM;oBACV,CAAC;gBACH,CAAC;gBAED,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js deleted file mode 100644 index 8315a0c2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +++ /dev/null @@ -1,324 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -/** - * Static methods on these globals are either not `this`-aware or supported being - * called without `this`. - * - * - `Promise` is not in the list because it supports subclassing by using `this` - * - `Array` is in the list because although it supports subclassing, the `this` - * value defaults to `Array` when unbound - * - * This is now a language-design invariant: static methods are never `this`-aware - * because TC39 wants to make `array.map(Class.method)` work! - */ -const SUPPORTED_GLOBALS = [ - 'Number', - 'Object', - 'String', // eslint-disable-line @typescript-eslint/internal/prefer-ast-types-enum - 'RegExp', - 'Symbol', - 'Array', - 'Proxy', - 'Date', - 'Atomics', - 'Reflect', - 'console', - 'Math', - 'JSON', - 'Intl', -]; -const nativelyBoundMembers = new Set(SUPPORTED_GLOBALS.flatMap(namespace => { - if (!(namespace in global)) { - // node.js might not have namespaces like Intl depending on compilation options - // https://nodejs.org/api/intl.html#intl_options_for_building_node_js - return []; - } - const object = global[namespace]; - return Object.getOwnPropertyNames(object) - .filter(name => !name.startsWith('_') && - typeof object[name] === 'function') - .map(name => `${namespace}.${name}`); -})); -const SUPPORTED_GLOBAL_TYPES = [ - 'NumberConstructor', - 'ObjectConstructor', - 'StringConstructor', - 'SymbolConstructor', - 'ArrayConstructor', - 'Array', - 'ProxyConstructor', - 'Console', - 'DateConstructor', - 'Atomics', - 'Math', - 'JSON', -]; -const isNotImported = (symbol, currentSourceFile) => { - const { valueDeclaration } = symbol; - if (!valueDeclaration) { - // working around https://github.com/microsoft/TypeScript/issues/31294 - return false; - } - return (!!currentSourceFile && - currentSourceFile !== valueDeclaration.getSourceFile()); -}; -const BASE_MESSAGE = 'Avoid referencing unbound methods which may cause unintentional scoping of `this`.'; -exports.default = (0, util_1.createRule)({ - name: 'unbound-method', - meta: { - docs: { - description: 'Enforce unbound methods are called with their expected scope', - recommended: 'recommended', - requiresTypeChecking: true, - }, - messages: { - unbound: BASE_MESSAGE, - unboundWithoutThisAnnotation: BASE_MESSAGE + - '\n' + - 'If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreStatic: { - description: 'Whether to skip checking whether `static` methods are correctly bound.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - ignoreStatic: false, - }, - ], - create(context, [{ ignoreStatic }]) { - const services = (0, util_1.getParserServices)(context); - const currentSourceFile = services.program.getSourceFile(context.filename); - function checkIfMethodAndReport(node, symbol) { - if (!symbol) { - return false; - } - const { dangerous, firstParamIsThis } = checkIfMethod(symbol, ignoreStatic); - if (dangerous) { - context.report({ - messageId: firstParamIsThis === false - ? 'unboundWithoutThisAnnotation' - : 'unbound', - node, - }); - return true; - } - return false; - } - function isNativelyBound(object, property) { - // We can't rely entirely on the type-level checks made at the end of this - // function, because sometimes type declarations don't come from the - // default library, but come from, for example, "@types/node". And we can't - // tell if a method is unbound just by looking at its signature declared in - // the interface. - // - // See related discussion https://github.com/typescript-eslint/typescript-eslint/pull/8952#discussion_r1576543310 - if (object.type === utils_1.AST_NODE_TYPES.Identifier && - property.type === utils_1.AST_NODE_TYPES.Identifier) { - const objectSymbol = services.getSymbolAtLocation(object); - const notImported = objectSymbol != null && - isNotImported(objectSymbol, currentSourceFile); - if (notImported && - nativelyBoundMembers.has(`${object.name}.${property.name}`)) { - return true; - } - } - // if `${object.name}.${property.name}` doesn't match any of - // the nativelyBoundMembers, then we fallback to type-level checks - return ((0, util_1.isBuiltinSymbolLike)(services.program, services.getTypeAtLocation(object), SUPPORTED_GLOBAL_TYPES) && - (0, util_1.isSymbolFromDefaultLibrary)(services.program, services.getTypeAtLocation(property).getSymbol())); - } - return { - MemberExpression(node) { - if (isSafeUse(node) || isNativelyBound(node.object, node.property)) { - return; - } - checkIfMethodAndReport(node, services.getSymbolAtLocation(node)); - }, - ObjectPattern(node) { - if (isNodeInsideTypeDeclaration(node)) { - return; - } - let initNode = null; - if (node.parent.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - initNode = node.parent.init; - } - else if (node.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { - initNode = node.parent.right; - } - for (const property of node.properties) { - if (property.type !== utils_1.AST_NODE_TYPES.Property || - property.key.type !== utils_1.AST_NODE_TYPES.Identifier) { - continue; - } - if (initNode) { - if (!isNativelyBound(initNode, property.key)) { - const reported = checkIfMethodAndReport(property.key, services - .getTypeAtLocation(initNode) - .getProperty(property.key.name)); - if (reported) { - continue; - } - // In assignment patterns, we should also check the type of - // Foo's nativelyBound method because initNode might be used as - // default value: - // function ({ nativelyBound }: Foo = NativeObject) {} - } - else if (node.parent.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - continue; - } - } - for (const intersectionPart of tsutils - .unionTypeParts(services.getTypeAtLocation(node)) - .flatMap(unionPart => tsutils.intersectionTypeParts(unionPart))) { - const reported = checkIfMethodAndReport(property.key, intersectionPart.getProperty(property.key.name)); - if (reported) { - break; - } - } - } - }, - }; - }, -}); -function isNodeInsideTypeDeclaration(node) { - let parent = node; - while ((parent = parent.parent)) { - if ((parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration && parent.declare) || - parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - parent.type === utils_1.AST_NODE_TYPES.TSDeclareFunction || - parent.type === utils_1.AST_NODE_TYPES.TSFunctionType || - parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration || - parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration || - (parent.type === utils_1.AST_NODE_TYPES.VariableDeclaration && parent.declare)) { - return true; - } - } - return false; -} -function checkIfMethod(symbol, ignoreStatic) { - const { valueDeclaration } = symbol; - if (!valueDeclaration) { - // working around https://github.com/microsoft/TypeScript/issues/31294 - return { dangerous: false }; - } - switch (valueDeclaration.kind) { - case ts.SyntaxKind.PropertyDeclaration: - return { - dangerous: valueDeclaration.initializer?.kind === - ts.SyntaxKind.FunctionExpression, - }; - case ts.SyntaxKind.PropertyAssignment: { - const assignee = valueDeclaration.initializer; - if (assignee.kind !== ts.SyntaxKind.FunctionExpression) { - return { - dangerous: false, - }; - } - return checkMethod(assignee, ignoreStatic); - } - case ts.SyntaxKind.MethodDeclaration: - case ts.SyntaxKind.MethodSignature: { - return checkMethod(valueDeclaration, ignoreStatic); - } - } - return { dangerous: false }; -} -function checkMethod(valueDeclaration, ignoreStatic) { - const firstParam = valueDeclaration.parameters.at(0); - const firstParamIsThis = firstParam?.name.kind === ts.SyntaxKind.Identifier && - // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison - firstParam.name.escapedText === 'this'; - const thisArgIsVoid = firstParamIsThis && firstParam.type?.kind === ts.SyntaxKind.VoidKeyword; - return { - dangerous: !thisArgIsVoid && - !(ignoreStatic && - tsutils.includesModifier((0, util_1.getModifiers)(valueDeclaration), ts.SyntaxKind.StaticKeyword)), - firstParamIsThis, - }; -} -function isSafeUse(node) { - const parent = node.parent; - switch (parent?.type) { - case utils_1.AST_NODE_TYPES.IfStatement: - case utils_1.AST_NODE_TYPES.ForStatement: - case utils_1.AST_NODE_TYPES.MemberExpression: - case utils_1.AST_NODE_TYPES.SwitchStatement: - case utils_1.AST_NODE_TYPES.UpdateExpression: - case utils_1.AST_NODE_TYPES.WhileStatement: - return true; - case utils_1.AST_NODE_TYPES.CallExpression: - return parent.callee === node; - case utils_1.AST_NODE_TYPES.ConditionalExpression: - return parent.test === node; - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - return parent.tag === node; - case utils_1.AST_NODE_TYPES.UnaryExpression: - // the first case is safe for obvious - // reasons. The second one is also fine - // since we're returning something falsy - return ['typeof', '!', 'void', 'delete'].includes(parent.operator); - case utils_1.AST_NODE_TYPES.BinaryExpression: - return ['instanceof', '==', '!=', '===', '!=='].includes(parent.operator); - case utils_1.AST_NODE_TYPES.AssignmentExpression: - return (parent.operator === '=' && - (node === parent.left || - (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type === utils_1.AST_NODE_TYPES.Super && - parent.left.type === utils_1.AST_NODE_TYPES.MemberExpression && - parent.left.object.type === utils_1.AST_NODE_TYPES.ThisExpression))); - case utils_1.AST_NODE_TYPES.ChainExpression: - case utils_1.AST_NODE_TYPES.TSNonNullExpression: - case utils_1.AST_NODE_TYPES.TSAsExpression: - case utils_1.AST_NODE_TYPES.TSTypeAssertion: - return isSafeUse(parent); - case utils_1.AST_NODE_TYPES.LogicalExpression: - if (parent.operator === '&&' && parent.left === node) { - // this is safe, as && will return the left if and only if it's falsy - return true; - } - // in all other cases, it's likely the logical expression will return the method ref - // so make sure the parent is a safe usage - return isSafeUse(parent); - } - return false; -} -//# sourceMappingURL=unbound-method.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map deleted file mode 100644 index 3381b4ce..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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AM,CAAC,QAAQ,CAAC,CAAC;QAErE,KAAK,sBAAc,CAAC,gBAAgB;YAClC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE5E,KAAK,sBAAc,CAAC,oBAAoB;YACtC,OAAO,CACL,MAAM,CAAC,QAAQ,KAAK,GAAG;gBACvB,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI;oBACnB,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,KAAK;wBACzC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;wBACpD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC,CAAC,CAChE,CAAC;QAEJ,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,mBAAmB,CAAC;QACxC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;gBACrD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js deleted file mode 100644 index 2205618e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +++ /dev/null @@ -1,399 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'unified-signatures', - meta: { - docs: { - description: 'Disallow two overloads that could be unified into one with a union or an optional/rest parameter', - // too opinionated to be recommended - recommended: 'strict', - }, - type: 'suggestion', - messages: { - omittingRestParameter: '{{failureStringStart}} with a rest parameter.', - omittingSingleParameter: '{{failureStringStart}} with an optional parameter.', - singleParameterDifference: '{{failureStringStart}} taking `{{type1}} | {{type2}}`.', - }, - schema: [ - { - additionalProperties: false, - properties: { - ignoreDifferentlyNamedParameters: { - description: 'Whether two parameters with different names at the same index should be considered different even if their types are the same.', - type: 'boolean', - }, - }, - type: 'object', - }, - ], - }, - defaultOptions: [ - { - ignoreDifferentlyNamedParameters: false, - }, - ], - create(context, [{ ignoreDifferentlyNamedParameters }]) { - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - function failureStringStart(otherLine) { - // For only 2 overloads we don't need to specify which is the other one. - const overloads = otherLine === undefined - ? 'These overloads' - : `This overload and the one on line ${otherLine}`; - return `${overloads} can be combined into one signature`; - } - function addFailures(failures) { - for (const failure of failures) { - const { unify, only2 } = failure; - switch (unify.kind) { - case 'single-parameter-difference': { - const { p0, p1 } = unify; - const lineOfOtherOverload = only2 ? undefined : p0.loc.start.line; - const typeAnnotation0 = isTSParameterProperty(p0) - ? p0.parameter.typeAnnotation - : p0.typeAnnotation; - const typeAnnotation1 = isTSParameterProperty(p1) - ? p1.parameter.typeAnnotation - : p1.typeAnnotation; - context.report({ - loc: p1.loc, - messageId: 'singleParameterDifference', - data: { - failureStringStart: failureStringStart(lineOfOtherOverload), - type1: context.sourceCode.getText(typeAnnotation0?.typeAnnotation), - type2: context.sourceCode.getText(typeAnnotation1?.typeAnnotation), - }, - node: p1, - }); - break; - } - case 'extra-parameter': { - const { extraParameter, otherSignature } = unify; - const lineOfOtherOverload = only2 - ? undefined - : otherSignature.loc.start.line; - context.report({ - loc: extraParameter.loc, - messageId: extraParameter.type === utils_1.AST_NODE_TYPES.RestElement - ? 'omittingRestParameter' - : 'omittingSingleParameter', - data: { - failureStringStart: failureStringStart(lineOfOtherOverload), - }, - node: extraParameter, - }); - } - } - } - } - function checkOverloads(signatures, typeParameters) { - const result = []; - const isTypeParameter = getIsTypeParameter(typeParameters); - for (const overloads of signatures) { - forEachPair(overloads, (a, b) => { - const signature0 = a.value ?? a; - const signature1 = b.value ?? b; - const unify = compareSignatures(signature0, signature1, isTypeParameter); - if (unify !== undefined) { - result.push({ unify, only2: overloads.length === 2 }); - } - }); - } - return result; - } - function compareSignatures(a, b, isTypeParameter) { - if (!signaturesCanBeUnified(a, b, isTypeParameter)) { - return undefined; - } - return a.params.length === b.params.length - ? signaturesDifferBySingleParameter(a.params, b.params) - : signaturesDifferByOptionalOrRestParameter(a, b); - } - function signaturesCanBeUnified(a, b, isTypeParameter) { - // Must return the same type. - const aTypeParams = a.typeParameters !== undefined ? a.typeParameters.params : undefined; - const bTypeParams = b.typeParameters !== undefined ? b.typeParameters.params : undefined; - if (ignoreDifferentlyNamedParameters) { - const commonParamsLength = Math.min(a.params.length, b.params.length); - for (let i = 0; i < commonParamsLength; i += 1) { - if (a.params[i].type === b.params[i].type && - getStaticParameterName(a.params[i]) !== - getStaticParameterName(b.params[i])) { - return false; - } - } - } - return (typesAreEqual(a.returnType, b.returnType) && - // Must take the same type parameters. - // If one uses a type parameter (from outside) and the other doesn't, they shouldn't be joined. - (0, util_1.arraysAreEqual)(aTypeParams, bTypeParams, typeParametersAreEqual) && - signatureUsesTypeParameter(a, isTypeParameter) === - signatureUsesTypeParameter(b, isTypeParameter)); - } - /** Detect `a(x: number, y: number, z: number)` and `a(x: number, y: string, z: number)`. */ - function signaturesDifferBySingleParameter(types1, types2) { - const index = getIndexOfFirstDifference(types1, types2, parametersAreEqual); - if (index === undefined) { - return undefined; - } - // If remaining arrays are equal, the signatures differ by just one parameter type - if (!(0, util_1.arraysAreEqual)(types1.slice(index + 1), types2.slice(index + 1), parametersAreEqual)) { - return undefined; - } - const a = types1[index]; - const b = types2[index]; - // Can unify `a?: string` and `b?: number`. Can't unify `...args: string[]` and `...args: number[]`. - // See https://github.com/Microsoft/TypeScript/issues/5077 - return parametersHaveEqualSigils(a, b) && - a.type !== utils_1.AST_NODE_TYPES.RestElement - ? { kind: 'single-parameter-difference', p0: a, p1: b } - : undefined; - } - /** - * Detect `a(): void` and `a(x: number): void`. - * Returns the parameter declaration (`x: number` in this example) that should be optional/rest, and overload it's a part of. - */ - function signaturesDifferByOptionalOrRestParameter(a, b) { - const sig1 = a.params; - const sig2 = b.params; - const minLength = Math.min(sig1.length, sig2.length); - const longer = sig1.length < sig2.length ? sig2 : sig1; - const shorter = sig1.length < sig2.length ? sig1 : sig2; - const shorterSig = sig1.length < sig2.length ? a : b; - // If one is has 2+ parameters more than the other, they must all be optional/rest. - // Differ by optional parameters: f() and f(x), f() and f(x, ?y, ...z) - // Not allowed: f() and f(x, y) - for (let i = minLength + 1; i < longer.length; i++) { - if (!parameterMayBeMissing(longer[i])) { - return undefined; - } - } - for (let i = 0; i < minLength; i++) { - const sig1i = sig1[i]; - const sig2i = sig2[i]; - const typeAnnotation1 = isTSParameterProperty(sig1i) - ? sig1i.parameter.typeAnnotation - : sig1i.typeAnnotation; - const typeAnnotation2 = isTSParameterProperty(sig2i) - ? sig2i.parameter.typeAnnotation - : sig2i.typeAnnotation; - if (!typesAreEqual(typeAnnotation1, typeAnnotation2)) { - return undefined; - } - } - if (minLength > 0 && - shorter[minLength - 1].type === utils_1.AST_NODE_TYPES.RestElement) { - return undefined; - } - return { - extraParameter: longer[longer.length - 1], - kind: 'extra-parameter', - otherSignature: shorterSig, - }; - } - /** Given type parameters, returns a function to test whether a type is one of those parameters. */ - function getIsTypeParameter(typeParameters) { - if (typeParameters === undefined) { - return (() => false); - } - const set = new Set(); - for (const t of typeParameters.params) { - set.add(t.name.name); - } - return (typeName => set.has(typeName)); - } - /** True if any of the outer type parameters are used in a signature. */ - function signatureUsesTypeParameter(sig, isTypeParameter) { - return sig.params.some((p) => typeContainsTypeParameter(isTSParameterProperty(p) - ? p.parameter.typeAnnotation - : p.typeAnnotation)); - function typeContainsTypeParameter(type) { - if (!type) { - return false; - } - if (type.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - const typeName = type.typeName; - if (isIdentifier(typeName) && isTypeParameter(typeName.name)) { - return true; - } - } - return typeContainsTypeParameter(type.typeAnnotation ?? - type.elementType); - } - } - function isTSParameterProperty(node) { - return node.type === utils_1.AST_NODE_TYPES.TSParameterProperty; - } - function parametersAreEqual(a, b) { - const typeAnnotationA = isTSParameterProperty(a) - ? a.parameter.typeAnnotation - : a.typeAnnotation; - const typeAnnotationB = isTSParameterProperty(b) - ? b.parameter.typeAnnotation - : b.typeAnnotation; - return (parametersHaveEqualSigils(a, b) && - typesAreEqual(typeAnnotationA, typeAnnotationB)); - } - /** True for optional/rest parameters. */ - function parameterMayBeMissing(p) { - const optional = isTSParameterProperty(p) - ? p.parameter.optional - : p.optional; - return p.type === utils_1.AST_NODE_TYPES.RestElement || optional; - } - /** False if one is optional and the other isn't, or one is a rest parameter and the other isn't. */ - function parametersHaveEqualSigils(a, b) { - const optionalA = isTSParameterProperty(a) - ? a.parameter.optional - : a.optional; - const optionalB = isTSParameterProperty(b) - ? b.parameter.optional - : b.optional; - return ((a.type === utils_1.AST_NODE_TYPES.RestElement) === - (b.type === utils_1.AST_NODE_TYPES.RestElement) && optionalA === optionalB); - } - function typeParametersAreEqual(a, b) { - return (a.name.name === b.name.name && - constraintsAreEqual(a.constraint, b.constraint)); - } - function typesAreEqual(a, b) { - return (a === b || - (a !== undefined && - b !== undefined && - context.sourceCode.getText(a.typeAnnotation) === - context.sourceCode.getText(b.typeAnnotation))); - } - function constraintsAreEqual(a, b) { - return (a === b || (a !== undefined && b !== undefined && a.type === b.type)); - } - /* Returns the first index where `a` and `b` differ. */ - function getIndexOfFirstDifference(a, b, equal) { - for (let i = 0; i < a.length && i < b.length; i++) { - if (!equal(a[i], b[i])) { - return i; - } - } - return undefined; - } - /** Calls `action` for every pair of values in `values`. */ - function forEachPair(values, action) { - for (let i = 0; i < values.length; i++) { - for (let j = i + 1; j < values.length; j++) { - action(values[i], values[j]); - } - } - } - const scopes = []; - let currentScope = { - overloads: new Map(), - }; - function createScope(parent, typeParameters) { - if (currentScope) { - scopes.push(currentScope); - } - currentScope = { - overloads: new Map(), - parent, - typeParameters, - }; - } - function checkScope() { - const scope = (0, util_1.nullThrows)(currentScope, 'checkScope() called without a current scope'); - const failures = checkOverloads(Array.from(scope.overloads.values()), scope.typeParameters); - addFailures(failures); - currentScope = scopes.pop(); - } - function addOverload(signature, key, containingNode) { - key ??= getOverloadKey(signature); - if (currentScope && - (containingNode ?? signature).parent === currentScope.parent) { - const overloads = currentScope.overloads.get(key); - if (overloads !== undefined) { - overloads.push(signature); - } - else { - currentScope.overloads.set(key, [signature]); - } - } - } - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - return { - Program: createScope, - TSModuleBlock: createScope, - TSInterfaceDeclaration(node) { - createScope(node.body, node.typeParameters); - }, - ClassDeclaration(node) { - createScope(node.body, node.typeParameters); - }, - TSTypeLiteral: createScope, - // collect overloads - TSDeclareFunction(node) { - const exportingNode = getExportingNode(node); - addOverload(node, node.id?.name ?? exportingNode?.type, exportingNode); - }, - TSCallSignatureDeclaration: addOverload, - TSConstructSignatureDeclaration: addOverload, - TSMethodSignature: addOverload, - TSAbstractMethodDefinition(node) { - if (!node.value.body) { - addOverload(node); - } - }, - MethodDefinition(node) { - if (!node.value.body) { - addOverload(node); - } - }, - // validate scopes - 'Program:exit': checkScope, - 'TSModuleBlock:exit': checkScope, - 'TSInterfaceDeclaration:exit': checkScope, - 'ClassDeclaration:exit': checkScope, - 'TSTypeLiteral:exit': checkScope, - }; - }, -}); -function getExportingNode(node) { - return node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration || - node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration - ? node.parent - : undefined; -} -function getOverloadKey(node) { - const info = getOverloadInfo(node); - return ((node.computed ? '0' : '1') + - (node.static ? '0' : '1') + - info); -} -function getOverloadInfo(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'constructor'; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return '()'; - default: { - const { key } = node; - return isIdentifier(key) ? key.name : key.raw; - } - } -} -function getStaticParameterName(param) { - switch (param.type) { - case utils_1.AST_NODE_TYPES.Identifier: - return param.name; - case utils_1.AST_NODE_TYPES.RestElement: - return getStaticParameterName(param.argument); - default: - return undefined; - } -} -function isIdentifier(node) { - return node.type === utils_1.AST_NODE_TYPES.Identifier; -} -//# sourceMappingURL=unified-signatures.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map deleted file mode 100644 index fd403eeb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unified-signatures.js","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAG1D,kCAAiE;AA4DjE,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kGAAkG;YACpG,oCAAoC;YACpC,WAAW,EAAE,QAAQ;SACtB;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,qBAAqB,EAAE,+CAA+C;YACtE,uBAAuB,EACrB,oDAAoD;YACtD,yBAAyB,EACvB,wDAAwD;SAC3D;Q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AU;YAC5B,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,sBAAc,CAAC,WAAW;YAC7B,OAAO,sBAAsB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChD;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AACD,SAAS,YAAY,CAAC,IAAmB;IACvC,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js deleted file mode 100644 index e8dfba7d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +++ /dev/null @@ -1,283 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const util_1 = require("../util"); -const useUnknownMessageBase = 'Prefer the safe `: unknown` for a catch callback variable.'; -exports.default = (0, util_1.createRule)({ - name: 'use-unknown-in-catch-callback-variable', - meta: { - docs: { - description: 'Enforce typing arguments in `.catch()` callbacks as `unknown`', - requiresTypeChecking: true, - recommended: 'strict', - }, - type: 'suggestion', - messages: { - useUnknown: useUnknownMessageBase, - useUnknownArrayDestructuringPattern: useUnknownMessageBase + ' The thrown error may not be iterable.', - useUnknownObjectDestructuringPattern: useUnknownMessageBase + - ' The thrown error may be nullable, or may not have the expected shape.', - useUnknownSpreadArgs: useUnknownMessageBase + - ' The argument list may contain a handler that does not use `unknown` for the catch callback variable.', - addUnknownTypeAnnotationSuggestion: 'Add an explicit `: unknown` type annotation to the catch variable.', - addUnknownRestTypeAnnotationSuggestion: 'Add an explicit `: [unknown]` type annotation to the catch rest variable.', - wrongTypeAnnotationSuggestion: 'Change existing type annotation to `: unknown`.', - wrongRestTypeAnnotationSuggestion: 'Change existing type annotation to `: [unknown]`.', - }, - fixable: 'code', - schema: [], - hasSuggestions: true, - }, - defaultOptions: [], - create(context) { - const services = (0, util_1.getParserServices)(context); - const checker = services.program.getTypeChecker(); - function isPromiseCatchAccess(node) { - if (!(node.type === utils_1.AST_NODE_TYPES.MemberExpression && - isStaticMemberAccessOfValue(node, 'catch'))) { - return false; - } - const objectTsNode = services.esTreeNodeToTSNodeMap.get(node.object); - const tsNode = services.esTreeNodeToTSNodeMap.get(node); - return tsutils.isThenableType(checker, tsNode, checker.getTypeAtLocation(objectTsNode)); - } - function isFlaggableHandlerType(type) { - for (const unionPart of tsutils.unionTypeParts(type)) { - const callSignatures = tsutils.getCallSignaturesOfType(unionPart); - if (callSignatures.length === 0) { - // Ignore any non-function components to the type. Those are not this rule's problem. - continue; - } - for (const callSignature of callSignatures) { - const firstParam = callSignature.parameters.at(0); - if (!firstParam) { - // it's not an issue if there's no catch variable at all. - continue; - } - let firstParamType = checker.getTypeOfSymbol(firstParam); - const decl = firstParam.valueDeclaration; - if (decl != null && (0, util_1.isRestParameterDeclaration)(decl)) { - if (checker.isArrayType(firstParamType)) { - firstParamType = checker.getTypeArguments(firstParamType)[0]; - } - else if (checker.isTupleType(firstParamType)) { - firstParamType = checker.getTypeArguments(firstParamType)[0]; - } - else { - // a rest arg that's not an array or tuple should definitely be flagged. - return true; - } - } - if (!tsutils.isIntrinsicUnknownType(firstParamType)) { - return true; - } - } - } - return false; - } - /** - * If passed an ordinary expression, this will check it as expected. - * - * If passed a spread element, it treats it as the union of unwrapped array/tuple type. - */ - function shouldFlagArgument(node) { - const argument = services.esTreeNodeToTSNodeMap.get(node); - const typeOfArgument = checker.getTypeAtLocation(argument); - return isFlaggableHandlerType(typeOfArgument); - } - function shouldFlagMultipleSpreadArgs(argumentsList) { - // One could try to be clever about unpacking fixed length tuples and stuff - // like that, but there's no need, since this is all invalid use of `.catch` - // anyway at the end of the day. Instead, we'll just check whether any of the - // possible args types would violate the rule on its own. - return argumentsList.some(argument => shouldFlagArgument(argument)); - } - function shouldFlagSingleSpreadArg(node) { - const spreadArgs = services.esTreeNodeToTSNodeMap.get(node.argument); - const spreadArgsType = checker.getTypeAtLocation(spreadArgs); - if (checker.isArrayType(spreadArgsType)) { - const arrayType = checker.getTypeArguments(spreadArgsType)[0]; - return isFlaggableHandlerType(arrayType); - } - if (checker.isTupleType(spreadArgsType)) { - const firstType = checker.getTypeArguments(spreadArgsType).at(0); - if (!firstType) { - // empty spread args. Suspect code, but not a problem for this rule. - return false; - } - return isFlaggableHandlerType(firstType); - } - return true; - } - /** - * Analyzes the syntax of the catch argument and makes a best effort to pinpoint - * why it's reporting, and to come up with a suggested fix if possible. - * - * This function is explicitly operating under the assumption that the - * rule _is reporting_, so it is not guaranteed to be sound to call otherwise. - */ - function refineReportForNormalArgumentIfPossible(argument) { - // Only know how to be helpful if a function literal has been provided. - if (!(argument.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - argument.type === utils_1.AST_NODE_TYPES.FunctionExpression)) { - return undefined; - } - const catchVariableOuterWithIncorrectTypes = (0, util_1.nullThrows)(argument.params.at(0), 'There should have been at least one parameter for the rule to have flagged.'); - // Function expressions can't have parameter properties; those only exist in constructors. - const catchVariableOuter = catchVariableOuterWithIncorrectTypes; - const catchVariableInner = catchVariableOuter.type === utils_1.AST_NODE_TYPES.AssignmentPattern - ? catchVariableOuter.left - : catchVariableOuter; - switch (catchVariableInner.type) { - case utils_1.AST_NODE_TYPES.Identifier: { - const catchVariableTypeAnnotation = catchVariableInner.typeAnnotation; - if (catchVariableTypeAnnotation == null) { - return { - node: catchVariableOuter, - suggest: [ - { - messageId: 'addUnknownTypeAnnotationSuggestion', - fix: (fixer) => { - if (argument.type === - utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - (0, util_1.isParenlessArrowFunction)(argument, context.sourceCode)) { - return [ - fixer.insertTextBefore(catchVariableInner, '('), - fixer.insertTextAfter(catchVariableInner, ': unknown)'), - ]; - } - return [ - fixer.insertTextAfter(catchVariableInner, ': unknown'), - ]; - }, - }, - ], - }; - } - return { - node: catchVariableOuter, - suggest: [ - { - messageId: 'wrongTypeAnnotationSuggestion', - fix: (fixer) => fixer.replaceText(catchVariableTypeAnnotation, ': unknown'), - }, - ], - }; - } - case utils_1.AST_NODE_TYPES.ArrayPattern: { - return { - node: catchVariableOuter, - messageId: 'useUnknownArrayDestructuringPattern', - }; - } - case utils_1.AST_NODE_TYPES.ObjectPattern: { - return { - node: catchVariableOuter, - messageId: 'useUnknownObjectDestructuringPattern', - }; - } - case utils_1.AST_NODE_TYPES.RestElement: { - const catchVariableTypeAnnotation = catchVariableInner.typeAnnotation; - if (catchVariableTypeAnnotation == null) { - return { - node: catchVariableOuter, - suggest: [ - { - messageId: 'addUnknownRestTypeAnnotationSuggestion', - fix: (fixer) => fixer.insertTextAfter(catchVariableInner, ': [unknown]'), - }, - ], - }; - } - return { - node: catchVariableOuter, - suggest: [ - { - messageId: 'wrongRestTypeAnnotationSuggestion', - fix: (fixer) => fixer.replaceText(catchVariableTypeAnnotation, ': [unknown]'), - }, - ], - }; - } - } - } - return { - CallExpression(node) { - if (node.arguments.length === 0 || !isPromiseCatchAccess(node.callee)) { - return; - } - const firstArgument = node.arguments[0]; - // Deal with some special cases around spread element args. - // promise.catch(...handlers), promise.catch(...handlers, ...moreHandlers). - if (firstArgument.type === utils_1.AST_NODE_TYPES.SpreadElement) { - if (node.arguments.length === 1) { - if (shouldFlagSingleSpreadArg(firstArgument)) { - context.report({ - node: firstArgument, - messageId: 'useUnknown', - }); - } - } - else if (shouldFlagMultipleSpreadArgs(node.arguments)) { - context.report({ - node, - messageId: 'useUnknownSpreadArgs', - }); - } - return; - } - // First argument is an "ordinary" argument (i.e. not a spread argument) - // promise.catch(f), promise.catch(() => {}), promise.catch(, <>) - if (shouldFlagArgument(firstArgument)) { - // We are now guaranteed to report, but we have a bit of work to do - // to determine exactly where, and whether we can fix it. - const overrides = refineReportForNormalArgumentIfPossible(firstArgument); - context.report({ - node: firstArgument, - messageId: 'useUnknown', - ...overrides, - }); - } - }, - }; - }, -}); -/** - * Answers whether the member expression looks like - * `x.memberName`, `x['memberName']`, - * or even `const mn = 'memberName'; x[mn]` (or optional variants thereof). - */ -function isStaticMemberAccessOfValue(memberExpression, value, scope) { - if (!memberExpression.computed) { - // x.memberName case. - return memberExpression.property.name === value; - } - // x['memberName'] cases. - const staticValueResult = (0, util_1.getStaticValue)(memberExpression.property, scope); - return staticValueResult != null && value === staticValueResult.value; -} -//# sourceMappingURL=use-unknown-in-catch-callback-variable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map deleted file mode 100644 index 8895ac22..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"use-unknown-in-catch-callback-variable.js","sourceRoot":"","sources":["../../src/rules/use-unknown-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S;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH;;;;GAIG;AACH,SAAS,2BAA2B,CAClC,gBAE4C,EAC5C,KAAa,EACb,KAA+B;IAE/B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;QAC/B,qBAAqB;QACrB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC;IAClD,CAAC;IAED,yBAAyB;IACzB,MAAM,iBAAiB,GAAG,IAAA,qBAAc,EAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3E,OAAO,iBAAiB,IAAI,IAAI,IAAI,KAAK,KAAK,iBAAiB,CAAC,KAAK,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js deleted file mode 100644 index c911b555..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getNameLocationInGlobalDirectiveComment = getNameLocationInGlobalDirectiveComment; -exports.forEachReturnStatement = forEachReturnStatement; -const ts = __importStar(require("typescript")); -const escapeRegExp_1 = require("./escapeRegExp"); -// deeply re-export, for convenience -__exportStar(require("@typescript-eslint/utils/ast-utils"), exports); -// The following is copied from `eslint`'s source code since it doesn't exist in eslint@5. -// https://github.com/eslint/eslint/blob/145aec1ab9052fbca96a44d04927c595951b1536/lib/rules/utils/ast-utils.js#L1751-L1779 -// Could be export { getNameLocationInGlobalDirectiveComment } from 'eslint/lib/rules/utils/ast-utils' -/** - * Get the `loc` object of a given name in a `/*globals` directive comment. - * @param sourceCode The source code to convert index to loc. - * @param comment The `/*globals` directive comment which include the name. - * @param name The name to find. - * @returns The `loc` object. - */ -function getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) { - const namePattern = new RegExp(`[\\s,]${(0, escapeRegExp_1.escapeRegExp)(name)}(?:$|[\\s,:])`, 'gu'); - // To ignore the first text "global". - namePattern.lastIndex = comment.value.indexOf('global') + 6; - // Search a given variable name. - const match = namePattern.exec(comment.value); - // Convert the index to loc. - const start = sourceCode.getLocFromIndex(comment.range[0] + '/*'.length + (match ? match.index + 1 : 0)); - const end = { - line: start.line, - column: start.column + (match ? name.length : 1), - }; - return { start, end }; -} -// Copied from typescript https://github.com/microsoft/TypeScript/blob/42b0e3c4630c129ca39ce0df9fff5f0d1b4dd348/src/compiler/utilities.ts#L1335 -// Warning: This has the same semantics as the forEach family of functions, -// in that traversal terminates in the event that 'visitor' supplies a truthy value. -function forEachReturnStatement(body, visitor) { - return traverse(body); - function traverse(node) { - switch (node.kind) { - case ts.SyntaxKind.ReturnStatement: - return visitor(node); - case ts.SyntaxKind.CaseBlock: - case ts.SyntaxKind.Block: - case ts.SyntaxKind.IfStatement: - case ts.SyntaxKind.DoStatement: - case ts.SyntaxKind.WhileStatement: - case ts.SyntaxKind.ForStatement: - case ts.SyntaxKind.ForInStatement: - case ts.SyntaxKind.ForOfStatement: - case ts.SyntaxKind.WithStatement: - case ts.SyntaxKind.SwitchStatement: - case ts.SyntaxKind.CaseClause: - case ts.SyntaxKind.DefaultClause: - case ts.SyntaxKind.LabeledStatement: - case ts.SyntaxKind.TryStatement: - case ts.SyntaxKind.CatchClause: - return ts.forEachChild(node, traverse); - } - return undefined; - } -} -//# sourceMappingURL=astUtils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map deleted file mode 100644 index 3dfc528e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../src/util/astUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,0FA0BC;AAKD,wDA8BC;AA9ED,+CAAiC;AAEjC,iDAA8C;AAE9C,oCAAoC;AACpC,qEAAmD;AAEnD,0FAA0F;AAC1F,0HAA0H;AAC1H,sGAAsG;AACtG;;;;;;GAMG;AACH,SAAgB,uCAAuC,CACrD,UAA+B,EAC/B,OAAyB,EACzB,IAAY;IAEZ,MAAM,WAAW,GAAG,IAAI,MAAM,CAC5B,SAAS,IAAA,2BAAY,EAAC,IAAI,CAAC,eAAe,EAC1C,IAAI,CACL,CAAC;IAEF,qCAAqC;IACrC,WAAW,CAAC,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE5D,gCAAgC;IAChC,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC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K,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC;YACnC,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;YAC9B,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;YACjC,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC;YACpC,KAAK,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;YAChC,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js deleted file mode 100644 index e6d54573..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +++ /dev/null @@ -1,605 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.collectVariables = collectVariables; -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const isTypeImport_1 = require("./isTypeImport"); -const referenceContainsTypeQuery_1 = require("./referenceContainsTypeQuery"); -/** - * This class leverages an AST visitor to mark variables as used via the - * `eslintUsed` property. - */ -class UnusedVarsVisitor extends scope_manager_1.Visitor { - /** - * We keep a weak cache so that multiple rules can share the calculation - */ - static RESULTS_CACHE = new WeakMap(); - #scopeManager; - constructor(scopeManager) { - super({ - visitChildrenEvenIfSelectorExists: true, - }); - this.#scopeManager = scopeManager; - } - static collectUnusedVariables(program, scopeManager) { - const cached = this.RESULTS_CACHE.get(program); - if (cached) { - return cached; - } - const visitor = new this(scopeManager); - visitor.visit(program); - const unusedVars = visitor.collectUnusedVariables(visitor.getScope(program)); - this.RESULTS_CACHE.set(program, unusedVars); - return unusedVars; - } - collectUnusedVariables(scope, variables = { - unusedVariables: new Set(), - usedVariables: new Set(), - }) { - if ( - // skip function expression names - // this scope is created just to house the variable that allows a function - // expression to self-reference if it has a name defined - !scope.functionExpressionScope) { - for (const variable of scope.variables) { - // cases that we don't want to treat as used or unused - if ( - // implicit lib variables (from @typescript-eslint/scope-manager) - // these aren't variables that should be checked ever - variable instanceof scope_manager_1.ImplicitLibVariable) { - continue; - } - if ( - // variables marked with markVariableAsUsed() - variable.eslintUsed || - // basic exported variables - isExported(variable) || - // variables implicitly exported via a merged declaration - isMergableExported(variable) || - // used variables - isUsedVariable(variable)) { - variables.usedVariables.add(variable); - } - else { - variables.unusedVariables.add(variable); - } - } - } - for (const childScope of scope.childScopes) { - this.collectUnusedVariables(childScope, variables); - } - return variables; - } - //#region HELPERS - getScope(currentNode) { - // On Program node, get the outermost scope to avoid return Node.js special function scope or ES modules scope. - const inner = currentNode.type !== utils_1.AST_NODE_TYPES.Program; - let node = currentNode; - while (node) { - const scope = this.#scopeManager.acquire(node, inner); - if (scope) { - if (scope.type === scope_manager_1.ScopeType.functionExpressionName) { - return scope.childScopes[0]; - } - return scope; - } - node = node.parent; - } - return this.#scopeManager.scopes[0]; - } - markVariableAsUsed(variableOrIdentifierOrName, parent) { - if (typeof variableOrIdentifierOrName !== 'string' && - !('type' in variableOrIdentifierOrName)) { - variableOrIdentifierOrName.eslintUsed = true; - return; - } - let name; - let node; - if (typeof variableOrIdentifierOrName === 'string') { - name = variableOrIdentifierOrName; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - node = parent; - } - else { - name = variableOrIdentifierOrName.name; - node = variableOrIdentifierOrName; - } - let currentScope = this.getScope(node); - while (currentScope) { - const variable = currentScope.variables.find(scopeVar => scopeVar.name === name); - if (variable) { - variable.eslintUsed = true; - return; - } - currentScope = currentScope.upper; - } - } - visitClass(node) { - // skip a variable of class itself name in the class scope - const scope = this.getScope(node); - for (const variable of scope.variables) { - if (variable.identifiers[0] === scope.block.id) { - this.markVariableAsUsed(variable); - return; - } - } - } - visitFunction(node) { - const scope = this.getScope(node); - // skip implicit "arguments" variable - const variable = scope.set.get('arguments'); - if (variable?.defs.length === 0) { - this.markVariableAsUsed(variable); - } - } - visitFunctionTypeSignature(node) { - // function type signature params create variables because they can be referenced within the signature, - // but they obviously aren't unused variables for the purposes of this rule. - for (const param of node.params) { - this.visitPattern(param, name => { - this.markVariableAsUsed(name); - }); - } - } - visitSetter(node) { - if (node.kind === 'set') { - // ignore setter parameters because they're syntactically required to exist - for (const param of node.value.params) { - this.visitPattern(param, id => { - this.markVariableAsUsed(id); - }); - } - } - } - visitForInForOf(node) { - /** - * (Brad Zacher): I hate that this has to exist. - * But it is required for compat with the base ESLint rule. - * - * In 2015, ESLint decided to add an exception for these two specific cases - * ``` - * for (var key in object) return; - * - * var key; - * for (key in object) return; - * ``` - * - * I disagree with it, but what are you going to do... - * - * https://github.com/eslint/eslint/issues/2342 - */ - let idOrVariable; - if (node.left.type === utils_1.AST_NODE_TYPES.VariableDeclaration) { - const variable = this.#scopeManager.getDeclaredVariables(node.left).at(0); - if (!variable) { - return; - } - idOrVariable = variable; - } - if (node.left.type === utils_1.AST_NODE_TYPES.Identifier) { - idOrVariable = node.left; - } - if (idOrVariable == null) { - return; - } - let body = node.body; - if (node.body.type === utils_1.AST_NODE_TYPES.BlockStatement) { - if (node.body.body.length !== 1) { - return; - } - body = node.body.body[0]; - } - if (body.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { - return; - } - this.markVariableAsUsed(idOrVariable); - } - //#endregion HELPERS - //#region VISITORS - // NOTE - This is a simple visitor - meaning it does not support selectors - ClassDeclaration = this.visitClass; - ClassExpression = this.visitClass; - FunctionDeclaration = this.visitFunction; - FunctionExpression = this.visitFunction; - ForInStatement = this.visitForInForOf; - ForOfStatement = this.visitForInForOf; - Identifier(node) { - const scope = this.getScope(node); - if (scope.type === utils_1.TSESLint.Scope.ScopeType.function && - node.name === 'this') { - // this parameters should always be considered used as they're pseudo-parameters - if ('params' in scope.block && scope.block.params.includes(node)) { - this.markVariableAsUsed(node); - } - } - } - MethodDefinition = this.visitSetter; - Property = this.visitSetter; - TSCallSignatureDeclaration = this.visitFunctionTypeSignature; - TSConstructorType = this.visitFunctionTypeSignature; - TSConstructSignatureDeclaration = this.visitFunctionTypeSignature; - TSDeclareFunction = this.visitFunctionTypeSignature; - TSEmptyBodyFunctionExpression = this.visitFunctionTypeSignature; - TSEnumDeclaration(node) { - // enum members create variables because they can be referenced within the enum, - // but they obviously aren't unused variables for the purposes of this rule. - const scope = this.getScope(node); - for (const variable of scope.variables) { - this.markVariableAsUsed(variable); - } - } - TSFunctionType = this.visitFunctionTypeSignature; - TSMappedType(node) { - // mapped types create a variable for their type name, but it's not necessary to reference it, - // so we shouldn't consider it as unused for the purpose of this rule. - this.markVariableAsUsed(node.key); - } - TSMethodSignature = this.visitFunctionTypeSignature; - TSModuleDeclaration(node) { - // -- global augmentation can be in any file, and they do not need exports - if (node.kind === 'global') { - this.markVariableAsUsed('global', node.parent); - } - } - TSParameterProperty(node) { - let identifier = null; - switch (node.parameter.type) { - case utils_1.AST_NODE_TYPES.AssignmentPattern: - if (node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier) { - identifier = node.parameter.left; - } - break; - case utils_1.AST_NODE_TYPES.Identifier: - identifier = node.parameter; - break; - } - if (identifier) { - this.markVariableAsUsed(identifier); - } - } -} -//#region private helpers -/** - * Checks the position of given nodes. - * @param inner A node which is expected as inside. - * @param outer A node which is expected as outside. - * @returns `true` if the `inner` node exists in the `outer` node. - */ -function isInside(inner, outer) { - return inner.range[0] >= outer.range[0] && inner.range[1] <= outer.range[1]; -} -/** - * Determine if an identifier is referencing an enclosing name. - * This only applies to declarations that create their own scope (modules, functions, classes) - * @param ref The reference to check. - * @param nodes The candidate function nodes. - * @returns True if it's a self-reference, false if not. - */ -function isSelfReference(ref, nodes) { - let scope = ref.from; - while (scope) { - if (nodes.has(scope.block)) { - return true; - } - scope = scope.upper; - } - return false; -} -const MERGABLE_TYPES = new Set([ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.FunctionDeclaration, -]); -/** - * Determine if the variable is directly exported - * @param variable the variable to check - */ -function isMergableExported(variable) { - // If all of the merged things are of the same type, TS will error if not all of them are exported - so we only need to find one - for (const def of variable.defs) { - // parameters can never be exported. - // their `node` prop points to the function decl, which can be exported - // so we need to special case them - if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - continue; - } - if ((MERGABLE_TYPES.has(def.node.type) && - def.node.parent?.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) || - def.node.parent?.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { - return true; - } - } - return false; -} -/** - * Determines if a given variable is being exported from a module. - * @param variable eslint-scope variable object. - * @returns True if the variable is exported, false if not. - */ -function isExported(variable) { - return variable.defs.some(definition => { - let node = definition.node; - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - node = node.parent; - } - else if (definition.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - return false; - } - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return node.parent.type.startsWith('Export'); - }); -} -const LOGICAL_ASSIGNMENT_OPERATORS = new Set(['&&=', '||=', '??=']); -/** - * Determines if the variable is used. - * @param variable The variable to check. - * @returns True if the variable is used - */ -function isUsedVariable(variable) { - /** - * Gets a list of function definitions for a specified variable. - * @param variable eslint-scope variable object. - * @returns Function nodes. - */ - function getFunctionDefinitions(variable) { - const functionDefinitions = new Set(); - variable.defs.forEach(def => { - // FunctionDeclarations - if (def.type === utils_1.TSESLint.Scope.DefinitionType.FunctionName) { - functionDefinitions.add(def.node); - } - // FunctionExpressions - if (def.type === utils_1.TSESLint.Scope.DefinitionType.Variable && - (def.node.init?.type === utils_1.AST_NODE_TYPES.FunctionExpression || - def.node.init?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { - functionDefinitions.add(def.node.init); - } - }); - return functionDefinitions; - } - function getTypeDeclarations(variable) { - const nodes = new Set(); - variable.defs.forEach(def => { - if (def.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration || - def.node.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - nodes.add(def.node); - } - }); - return nodes; - } - function getModuleDeclarations(variable) { - const nodes = new Set(); - variable.defs.forEach(def => { - if (def.node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { - nodes.add(def.node); - } - }); - return nodes; - } - function getEnumDeclarations(variable) { - const nodes = new Set(); - variable.defs.forEach(def => { - if (def.node.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration) { - nodes.add(def.node); - } - }); - return nodes; - } - /** - * Checks if the ref is contained within one of the given nodes - */ - function isInsideOneOf(ref, nodes) { - for (const node of nodes) { - if (isInside(ref.identifier, node)) { - return true; - } - } - return false; - } - /** - * Checks whether a given node is unused expression or not. - * @param node The node itself - * @returns The node is an unused expression. - */ - function isUnusedExpression(node) { - const parent = node.parent; - if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - return true; - } - if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - const isLastExpression = parent.expressions[parent.expressions.length - 1] === node; - if (!isLastExpression) { - return true; - } - return isUnusedExpression(parent); - } - return false; - } - /** - * If a given reference is left-hand side of an assignment, this gets - * the right-hand side node of the assignment. - * - * In the following cases, this returns null. - * - * - The reference is not the LHS of an assignment expression. - * - The reference is inside of a loop. - * - The reference is inside of a function scope which is different from - * the declaration. - * @param ref A reference to check. - * @param prevRhsNode The previous RHS node. - * @returns The RHS node or null. - */ - function getRhsNode(ref, prevRhsNode) { - /** - * Checks whether the given node is in a loop or not. - * @param node The node to check. - * @returns `true` if the node is in a loop. - */ - function isInLoop(node) { - let currentNode = node; - while (currentNode) { - if (utils_1.ASTUtils.isFunction(currentNode)) { - break; - } - if (utils_1.ASTUtils.isLoop(currentNode)) { - return true; - } - currentNode = currentNode.parent; - } - return false; - } - const id = ref.identifier; - const parent = id.parent; - const refScope = ref.from.variableScope; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const varScope = ref.resolved.scope.variableScope; - const canBeUsedLater = refScope !== varScope || isInLoop(id); - /* - * Inherits the previous node if this reference is in the node. - * This is for `a = a + a`-like code. - */ - if (prevRhsNode && isInside(id, prevRhsNode)) { - return prevRhsNode; - } - if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - isUnusedExpression(parent) && - id === parent.left && - !canBeUsedLater) { - return parent.right; - } - return null; - } - /** - * Checks whether a given reference is a read to update itself or not. - * @param ref A reference to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns The reference is a read to update itself. - */ - function isReadForItself(ref, rhsNode) { - /** - * Checks whether a given Identifier node exists inside of a function node which can be used later. - * - * "can be used later" means: - * - the function is assigned to a variable. - * - the function is bound to a property and the object can be used later. - * - the function is bound as an argument of a function call. - * - * If a reference exists in a function which can be used later, the reference is read when the function is called. - * @param id An Identifier node to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns `true` if the `id` node exists inside of a function node which can be used later. - */ - function isInsideOfStorableFunction(id, rhsNode) { - /** - * Finds a function node from ancestors of a node. - * @param node A start node to find. - * @returns A found function node. - */ - function getUpperFunction(node) { - let currentNode = node; - while (currentNode) { - if (utils_1.ASTUtils.isFunction(currentNode)) { - return currentNode; - } - currentNode = currentNode.parent; - } - return null; - } - /** - * Checks whether a given function node is stored to somewhere or not. - * If the function node is stored, the function can be used later. - * @param funcNode A function node to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns `true` if under the following conditions: - * - the funcNode is assigned to a variable. - * - the funcNode is bound as an argument of a function call. - * - the function is bound to a property and the object satisfies above conditions. - */ - function isStorableFunction(funcNode, rhsNode) { - let node = funcNode; - let parent = funcNode.parent; - while (parent && isInside(parent, rhsNode)) { - switch (parent.type) { - case utils_1.AST_NODE_TYPES.SequenceExpression: - if (parent.expressions[parent.expressions.length - 1] !== node) { - return false; - } - break; - case utils_1.AST_NODE_TYPES.CallExpression: - case utils_1.AST_NODE_TYPES.NewExpression: - return parent.callee !== node; - case utils_1.AST_NODE_TYPES.AssignmentExpression: - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - case utils_1.AST_NODE_TYPES.YieldExpression: - return true; - default: - if (parent.type.endsWith('Statement') || - parent.type.endsWith('Declaration')) { - /* - * If it encountered statements, this is a complex pattern. - * Since analyzing complex patterns is hard, this returns `true` to avoid false positive. - */ - return true; - } - } - node = parent; - parent = parent.parent; - } - return false; - } - const funcNode = getUpperFunction(id); - return (!!funcNode && - isInside(funcNode, rhsNode) && - isStorableFunction(funcNode, rhsNode)); - } - const id = ref.identifier; - const parent = id.parent; - return (ref.isRead() && // in RHS of an assignment for itself. e.g. `a = a + 1` - // self update. e.g. `a += 1`, `a++` - ((parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - !LOGICAL_ASSIGNMENT_OPERATORS.has(parent.operator) && - isUnusedExpression(parent) && - parent.left === id) || - (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && - isUnusedExpression(parent)) || - (!!rhsNode && - isInside(id, rhsNode) && - !isInsideOfStorableFunction(id, rhsNode)))); - } - const functionNodes = getFunctionDefinitions(variable); - const isFunctionDefinition = functionNodes.size > 0; - const typeDeclNodes = getTypeDeclarations(variable); - const isTypeDecl = typeDeclNodes.size > 0; - const moduleDeclNodes = getModuleDeclarations(variable); - const isModuleDecl = moduleDeclNodes.size > 0; - const enumDeclNodes = getEnumDeclarations(variable); - const isEnumDecl = enumDeclNodes.size > 0; - const isImportedAsType = variable.defs.every(isTypeImport_1.isTypeImport); - let rhsNode = null; - return variable.references.some(ref => { - const forItself = isReadForItself(ref, rhsNode); - rhsNode = getRhsNode(ref, rhsNode); - return (ref.isRead() && - !forItself && - !(!isImportedAsType && (0, referenceContainsTypeQuery_1.referenceContainsTypeQuery)(ref.identifier)) && - !(isFunctionDefinition && isSelfReference(ref, functionNodes)) && - !(isTypeDecl && isInsideOneOf(ref, typeDeclNodes)) && - !(isModuleDecl && isSelfReference(ref, moduleDeclNodes)) && - !(isEnumDecl && isSelfReference(ref, enumDeclNodes))); - }); -} -//#endregion private helpers -/** - * Collects the set of unused variables for a given context. - * - * Due to complexity, this does not take into consideration: - * - variables within declaration files - * - variables within ambient module declarations - */ -function collectVariables(context) { - return UnusedVarsVisitor.collectUnusedVariables(context.sourceCode.ast, utils_1.ESLintUtils.nullThrows(context.sourceCode.scopeManager, 'Missing required scope manager')); -} -//# sourceMappingURL=collectUnusedVariables.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map deleted file mode 100644 index 1fe283cc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collectUnusedVariables.js","sourceRoot":"","sources":["../../src/util/collectUnusedVariables.ts"],"names":[],"mappings":";;AAk0BS,4CAAgB;AA9zBzB,oEAI0C;AAE1C,oDAKkC;AAElC,iDAA8C;AAC9C,6EAA0E;AAW1E;;;GAGG;AACH,MAAM,iBAAkB,SAAQ,uBAAO;IACrC;;OAEG;IACK,MAAM,CAAU,aAAa,GAAG,IAAI,OAAO,EAGhD,CAAC;IAEK,aAAa,CAA8B;IAEpD,YAAoB,YAA0B;QAC5C,KAAK,CAAC;YACJ,iCAAiC,EAAE,IAAI;SACxC,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAClC,OAAyB,EACzB,YAA0B;QAE1B,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC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sB,CAC7C,OAAO,CAAC,UAAU,CAAC,GAAG,EACtB,mBAAW,CAAC,UAAU,CACpB,OAAO,CAAC,UAAU,CAAC,YAAY,EAC/B,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js deleted file mode 100644 index a0ee97b4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRule = void 0; -const utils_1 = require("@typescript-eslint/utils"); -exports.createRule = utils_1.ESLintUtils.RuleCreator(name => `https://typescript-eslint.io/rules/${name}`); -//# sourceMappingURL=createRule.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map deleted file mode 100644 index d50ed381..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAI1C,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CAAC,sCAAsC,IAAI,EAAE,CACrD,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js deleted file mode 100644 index 786ab0a5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.escapeRegExp = escapeRegExp; -/** - * Lodash - * Released under MIT license - */ -const reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -const reHasRegExpChar = RegExp(reRegExpChar.source); -function escapeRegExp(string = '') { - return string && reHasRegExpChar.test(string) - ? string.replace(reRegExpChar, '\\$&') - : string; -} -//# sourceMappingURL=escapeRegExp.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map deleted file mode 100644 index c8362b5b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"escapeRegExp.js","sourceRoot":"","sources":["../../src/util/escapeRegExp.ts"],"names":[],"mappings":";;AAOA,oCAIC;AAXD;;;GAGG;AACH,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpD,SAAgB,YAAY,CAAC,MAAM,GAAG,EAAE;IACtC,OAAO,MAAM,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3C,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC;QACtC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js deleted file mode 100644 index af16d974..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +++ /dev/null @@ -1,236 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkFunctionExpressionReturnType = checkFunctionExpressionReturnType; -exports.checkFunctionReturnType = checkFunctionReturnType; -exports.doesImmediatelyReturnFunctionExpression = doesImmediatelyReturnFunctionExpression; -exports.isTypedFunctionExpression = isTypedFunctionExpression; -exports.isValidFunctionExpressionReturnType = isValidFunctionExpressionReturnType; -exports.ancestorHasReturnType = ancestorHasReturnType; -const utils_1 = require("@typescript-eslint/utils"); -const astUtils_1 = require("./astUtils"); -const getFunctionHeadLoc_1 = require("./getFunctionHeadLoc"); -/** - * Checks if a node is a variable declarator with a type annotation. - * ``` - * const x: Foo = ... - * ``` - */ -function isVariableDeclaratorWithTypeAnnotation(node) { - return (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator && !!node.id.typeAnnotation); -} -/** - * Checks if a node is a class property with a type annotation. - * ``` - * public x: Foo = ... - * ``` - */ -function isPropertyDefinitionWithTypeAnnotation(node) { - return (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && !!node.typeAnnotation); -} -/** - * Checks if a node belongs to: - * ``` - * foo(() => 1) - * ``` - */ -function isFunctionArgument(parent, callee) { - return (parent.type === utils_1.AST_NODE_TYPES.CallExpression && - // make sure this isn't an IIFE - parent.callee !== callee); -} -/** - * Checks if a node is type-constrained in JSX - * ``` - * {}} /> - * {() => {}} - * - * ``` - */ -function isTypedJSX(node) { - return (node.type === utils_1.AST_NODE_TYPES.JSXExpressionContainer || - node.type === utils_1.AST_NODE_TYPES.JSXSpreadAttribute); -} -function isTypedParent(parent, callee) { - return ((0, astUtils_1.isTypeAssertion)(parent) || - isVariableDeclaratorWithTypeAnnotation(parent) || - isDefaultFunctionParameterWithTypeAnnotation(parent) || - isPropertyDefinitionWithTypeAnnotation(parent) || - isFunctionArgument(parent, callee) || - isTypedJSX(parent)); -} -function isDefaultFunctionParameterWithTypeAnnotation(node) { - return (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - node.left.typeAnnotation != null); -} -/** - * Checks if a node belongs to: - * ``` - * new Foo(() => {}) - * ^^^^^^^^ - * ``` - */ -function isConstructorArgument(node) { - return node.type === utils_1.AST_NODE_TYPES.NewExpression; -} -/** - * Checks if a node is a property or a nested property of a typed object: - * ``` - * const x: Foo = { prop: () => {} } - * const x = { prop: () => {} } as Foo - * const x = { prop: () => {} } - * const x: Foo = { bar: { prop: () => {} } } - * ``` - */ -function isPropertyOfObjectWithType(property) { - if (!property || property.type !== utils_1.AST_NODE_TYPES.Property) { - return false; - } - const objectExpr = property.parent; - if (objectExpr.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { - return false; - } - const parent = objectExpr.parent; - return isTypedParent(parent) || isPropertyOfObjectWithType(parent); -} -/** - * Checks if a function belongs to: - * ``` - * () => () => ... - * () => function () { ... } - * () => { return () => ... } - * () => { return function () { ... } } - * function fn() { return () => ... } - * function fn() { return function() { ... } } - * ``` - */ -function doesImmediatelyReturnFunctionExpression({ node, returns, }) { - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - utils_1.ASTUtils.isFunction(node.body)) { - return true; - } - if (returns.length === 0) { - return false; - } - return returns.every(node => node.argument && utils_1.ASTUtils.isFunction(node.argument)); -} -/** - * Checks if a function belongs to: - * ``` - * () => ({ action: 'xxx' } as const) - * ``` - */ -function returnsConstAssertionDirectly(node) { - const { body } = node; - if ((0, astUtils_1.isTypeAssertion)(body)) { - const { typeAnnotation } = body; - if (typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - const { typeName } = typeAnnotation; - if (typeName.type === utils_1.AST_NODE_TYPES.Identifier && - typeName.name === 'const') { - return true; - } - } - } - return false; -} -/** - * True when the provided function expression is typed. - */ -function isTypedFunctionExpression(node, options) { - const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); - if (!options.allowTypedFunctionExpressions) { - return false; - } - return (isTypedParent(parent, node) || - isPropertyOfObjectWithType(parent) || - isConstructorArgument(parent)); -} -/** - * Check whether the function expression return type is either typed or valid - * with the provided options. - */ -function isValidFunctionExpressionReturnType(node, options) { - if (isTypedFunctionExpression(node, options)) { - return true; - } - const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); - if (options.allowExpressions && - parent.type !== utils_1.AST_NODE_TYPES.VariableDeclarator && - parent.type !== utils_1.AST_NODE_TYPES.MethodDefinition && - parent.type !== utils_1.AST_NODE_TYPES.ExportDefaultDeclaration && - parent.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { - return true; - } - // https://github.com/typescript-eslint/typescript-eslint/issues/653 - return (options.allowDirectConstAssertionInArrowFunctions === true && - node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - returnsConstAssertionDirectly(node)); -} -/** - * Check that the function expression or declaration is valid. - */ -function isValidFunctionReturnType({ node, returns }, options) { - if (options.allowHigherOrderFunctions && - doesImmediatelyReturnFunctionExpression({ node, returns })) { - return true; - } - return (node.returnType != null || - (0, astUtils_1.isConstructor)(node.parent) || - (0, astUtils_1.isSetter)(node.parent)); -} -/** - * Checks if a function declaration/expression has a return type. - */ -function checkFunctionReturnType({ node, returns }, options, sourceCode, report) { - if (isValidFunctionReturnType({ node, returns }, options)) { - return; - } - report((0, getFunctionHeadLoc_1.getFunctionHeadLoc)(node, sourceCode)); -} -/** - * Checks if a function declaration/expression has a return type. - */ -function checkFunctionExpressionReturnType(info, options, sourceCode, report) { - if (isValidFunctionExpressionReturnType(info.node, options)) { - return; - } - checkFunctionReturnType(info, options, sourceCode, report); -} -/** - * Check whether any ancestor of the provided function has a valid return type. - */ -function ancestorHasReturnType(node) { - let ancestor = node.parent; - if (ancestor.type === utils_1.AST_NODE_TYPES.Property) { - ancestor = ancestor.value; - } - // if the ancestor is not a return, then this function was not returned at all, so we can exit early - const isReturnStatement = ancestor.type === utils_1.AST_NODE_TYPES.ReturnStatement; - const isBodylessArrow = ancestor.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - ancestor.body.type !== utils_1.AST_NODE_TYPES.BlockStatement; - if (!isReturnStatement && !isBodylessArrow) { - return false; - } - while (ancestor) { - switch (ancestor.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - if (ancestor.returnType) { - return true; - } - break; - // const x: Foo = () => {}; - // Assume that a typed variable types the function expression - case utils_1.AST_NODE_TYPES.VariableDeclarator: - return !!ancestor.id.typeAnnotation; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return !!ancestor.typeAnnotation; - case utils_1.AST_NODE_TYPES.ExpressionStatement: - return false; - } - ancestor = ancestor.parent; - } - return false; -} -//# sourceMappingURL=explicitReturnTypeUtils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map deleted file mode 100644 index a088b1f4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicitReturnTypeUtils.js","sourceRoot":"","sources":["../../src/util/explicitReturnTypeUtils.ts"],"names":[],"mappings":";;AA4WE,8EAAiC;AACjC,0DAAuB;AACvB,0FAAuC;AAGvC,8DAAyB;AACzB,kFAAmC;AACnC,sDAAqB;AAlXvB,oDAIkC;AAElC,yCAAsE;AACtE,6DAA0D;AAY1D;;;;;GAKG;AACH,SAAS,sCAAsC,CAC7C,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAC5E,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,sCAAsC,CAC7C,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CACzE,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CACzB,MAAqB,EACrB,MAA2B;I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sBAAc,CAAC,cAAc,CAAC;IACvD,IAAI,CAAC,iBAAiB,IAAI,CAAC,eAAe,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,EAAE,CAAC;QAChB,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtB,KAAK,sBAAc,CAAC,uBAAuB,CAAC;YAC5C,KAAK,sBAAc,CAAC,kBAAkB,CAAC;YACvC,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;oBACxB,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM;YAER,2BAA2B;YAC3B,6DAA6D;YAC7D,KAAK,sBAAc,CAAC,kBAAkB;gBACpC,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,cAAc,CAAC;YAEtC,KAAK,sBAAc,CAAC,kBAAkB;gBACpC,OAAO,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YACnC,KAAK,sBAAc,CAAC,mBAAmB;gBACrC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js deleted file mode 100644 index 48023ccb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getESLintCoreRule = void 0; -exports.maybeGetESLintCoreRule = maybeGetESLintCoreRule; -const utils_1 = require("@typescript-eslint/utils"); -const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk"); -const getESLintCoreRule = (ruleId) => utils_1.ESLintUtils.nullThrows(use_at_your_own_risk_1.builtinRules.get(ruleId), `ESLint's core rule '${ruleId}' not found.`); -exports.getESLintCoreRule = getESLintCoreRule; -function maybeGetESLintCoreRule(ruleId) { - try { - return (0, exports.getESLintCoreRule)(ruleId); - } - catch { - return null; - } -} -//# sourceMappingURL=getESLintCoreRule.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map deleted file mode 100644 index 66932014..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getESLintCoreRule.js","sourceRoot":"","sources":["../../src/util/getESLintCoreRule.ts"],"names":[],"mappings":";;;AAqCA,wDAQC;AA7CD,oDAAuD;AACvD,sEAA2D;AA8BpD,MAAM,iBAAiB,GAAG,CAAmB,MAAS,EAAc,EAAE,CAC3E,mBAAW,CAAC,UAAU,CACpB,mCAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EACxB,uBAAuB,MAAM,cAAc,CAC5C,CAAC;AAJS,QAAA,iBAAiB,qBAI1B;AAEJ,SAAgB,sBAAsB,CACpC,MAAS;IAET,IAAI,CAAC;QACH,OAAO,IAAA,yBAAiB,EAAI,MAAM,CAAC,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js deleted file mode 100644 index 9d6e6eb7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFixOrSuggest = getFixOrSuggest; -function getFixOrSuggest({ useFix, suggestion, }) { - return useFix ? { fix: suggestion.fix } : { suggest: [suggestion] }; -} -//# sourceMappingURL=getFixOrSuggest.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map deleted file mode 100644 index 5436dbf0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getFixOrSuggest.js","sourceRoot":"","sources":["../../src/util/getFixOrSuggest.ts"],"names":[],"mappings":";;AAEA,0CAUC;AAVD,SAAgB,eAAe,CAA2B,EACxD,MAAM,EACN,UAAU,GAIX;IAGC,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AACtE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js deleted file mode 100644 index 6782350c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getForStatementHeadLoc = getForStatementHeadLoc; -const eslint_utils_1 = require("@typescript-eslint/utils/eslint-utils"); -/** - * Gets the location of the head of the given for statement variant for reporting. - * - * - `for (const foo in bar) expressionOrBlock` - * ^^^^^^^^^^^^^^^^^^^^^^ - * - * - `for (const foo of bar) expressionOrBlock` - * ^^^^^^^^^^^^^^^^^^^^^^ - * - * - `for await (const foo of bar) expressionOrBlock` - * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - * - * - `for (let i = 0; i < 10; i++) expressionOrBlock` - * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - */ -function getForStatementHeadLoc(sourceCode, node) { - const closingParens = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenBefore(node.body, token => token.value === ')'), 'for statement must have a closing parenthesis.'); - return { - start: structuredClone(node.loc.start), - end: structuredClone(closingParens.loc.end), - }; -} -//# sourceMappingURL=getForStatementHeadLoc.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map deleted file mode 100644 index 529ee05e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getForStatementHeadLoc.js","sourceRoot":"","sources":["../../src/util/getForStatementHeadLoc.ts"],"names":[],"mappings":";;AAkBA,wDAeC;AAhCD,wEAAmE;AAEnE;;;;;;;;;;;;;;GAcG;AACH,SAAgB,sBAAsB,CACpC,UAA+B,EAC/B,IAGyB;IAEzB,MAAM,aAAa,GAAG,IAAA,yBAAU,EAC9B,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,GAAG,CAAC,EAClE,gDAAgD,CACjD,CAAC;IACF,OAAO;QACL,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACtC,GAAG,EAAE,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;KAC5C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js deleted file mode 100644 index 9d2b27da..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L1668-L1787 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFunctionHeadLoc = getFunctionHeadLoc; -const utils_1 = require("@typescript-eslint/utils"); -const astUtils_1 = require("./astUtils"); -/** - * Gets the `(` token of the given function node. - * @param node The function node to get. - * @param sourceCode The source code object to get tokens. - * @returns `(` token. - */ -function getOpeningParenOfParams(node, sourceCode) { - // If the node is an arrow function and doesn't have parens, this returns the identifier of the first param. - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - node.params.length === 1) { - const argToken = utils_1.ESLintUtils.nullThrows(sourceCode.getFirstToken(node.params[0]), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('parameter', 'arrow function')); - const maybeParenToken = sourceCode.getTokenBefore(argToken); - return maybeParenToken && (0, astUtils_1.isOpeningParenToken)(maybeParenToken) - ? maybeParenToken - : argToken; - } - // Otherwise, returns paren. - return node.id != null - ? utils_1.ESLintUtils.nullThrows(sourceCode.getTokenAfter(node.id, astUtils_1.isOpeningParenToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('id', 'function')) - : utils_1.ESLintUtils.nullThrows(sourceCode.getFirstToken(node, astUtils_1.isOpeningParenToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('opening parenthesis', 'function')); -} -/** - * Gets the location of the given function node for reporting. - * - * - `function foo() {}` - * ^^^^^^^^^^^^ - * - `(function foo() {})` - * ^^^^^^^^^^^^ - * - `(function() {})` - * ^^^^^^^^ - * - `function* foo() {}` - * ^^^^^^^^^^^^^ - * - `(function* foo() {})` - * ^^^^^^^^^^^^^ - * - `(function*() {})` - * ^^^^^^^^^ - * - `() => {}` - * ^^ - * - `async () => {}` - * ^^ - * - `({ foo: function foo() {} })` - * ^^^^^^^^^^^^^^^^^ - * - `({ foo: function() {} })` - * ^^^^^^^^^^^^^ - * - `({ ['foo']: function() {} })` - * ^^^^^^^^^^^^^^^^^ - * - `({ [foo]: function() {} })` - * ^^^^^^^^^^^^^^^ - * - `({ foo() {} })` - * ^^^ - * - `({ foo: function* foo() {} })` - * ^^^^^^^^^^^^^^^^^^ - * - `({ foo: function*() {} })` - * ^^^^^^^^^^^^^^ - * - `({ ['foo']: function*() {} })` - * ^^^^^^^^^^^^^^^^^^ - * - `({ [foo]: function*() {} })` - * ^^^^^^^^^^^^^^^^ - * - `({ *foo() {} })` - * ^^^^ - * - `({ foo: async function foo() {} })` - * ^^^^^^^^^^^^^^^^^^^^^^^ - * - `({ foo: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^ - * - `({ ['foo']: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^^^^^ - * - `({ [foo]: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^^^ - * - `({ async foo() {} })` - * ^^^^^^^^^ - * - `({ get foo() {} })` - * ^^^^^^^ - * - `({ set foo(a) {} })` - * ^^^^^^^ - * - `class A { constructor() {} }` - * ^^^^^^^^^^^ - * - `class A { foo() {} }` - * ^^^ - * - `class A { *foo() {} }` - * ^^^^ - * - `class A { async foo() {} }` - * ^^^^^^^^^ - * - `class A { ['foo']() {} }` - * ^^^^^^^ - * - `class A { *['foo']() {} }` - * ^^^^^^^^ - * - `class A { async ['foo']() {} }` - * ^^^^^^^^^^^^^ - * - `class A { [foo]() {} }` - * ^^^^^ - * - `class A { *[foo]() {} }` - * ^^^^^^ - * - `class A { async [foo]() {} }` - * ^^^^^^^^^^^ - * - `class A { get foo() {} }` - * ^^^^^^^ - * - `class A { set foo(a) {} }` - * ^^^^^^^ - * - `class A { static foo() {} }` - * ^^^^^^^^^^ - * - `class A { static *foo() {} }` - * ^^^^^^^^^^^ - * - `class A { static async foo() {} }` - * ^^^^^^^^^^^^^^^^ - * - `class A { static get foo() {} }` - * ^^^^^^^^^^^^^^ - * - `class A { static set foo(a) {} }` - * ^^^^^^^^^^^^^^ - * - `class A { foo = function() {} }` - * ^^^^^^^^^^^^^^ - * - `class A { static foo = function() {} }` - * ^^^^^^^^^^^^^^^^^^^^^ - * - `class A { foo = (a, b) => {} }` - * ^^^^^^ - * @param node The function node to get. - * @param sourceCode The source code object to get tokens. - * @returns The location of the function node for reporting. - */ -function getFunctionHeadLoc(node, sourceCode) { - const parent = node.parent; - let start = null; - let end = null; - if (parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || - parent.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { - // the decorator's range is included within the member - // however it's usually irrelevant to the member itself - so we don't want - // to highlight it ever. - if (parent.decorators.length > 0) { - const lastDecorator = parent.decorators[parent.decorators.length - 1]; - const firstTokenAfterDecorator = utils_1.ESLintUtils.nullThrows(sourceCode.getTokenAfter(lastDecorator), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('modifier or member name', 'class member')); - start = firstTokenAfterDecorator.loc.start; - } - else { - start = parent.loc.start; - } - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - else if (parent.type === utils_1.AST_NODE_TYPES.Property) { - start = parent.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - else if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - const arrowToken = utils_1.ESLintUtils.nullThrows(sourceCode.getTokenBefore(node.body, astUtils_1.isArrowToken), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('arrow token', 'arrow function')); - start = arrowToken.loc.start; - end = arrowToken.loc.end; - } - else { - start = node.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - return { - start: { ...start }, - end: { ...end }, - }; -} -//# sourceMappingURL=getFunctionHeadLoc.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map deleted file mode 100644 index 71845fff..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getFunctionHeadLoc.js","sourceRoot":"","sources":["../../src/util/getFunctionHeadLoc.ts"],"names":[],"mappings":";AAAA,uIAAuI;;AAsJvI,gDAoDC;AAvMD,oDAAuE;AAEvE,yCAA+D;AAO/D;;;;;GAKG;AACH,SAAS,uBAAuB,CAC9B,IAAkB,EAClB,UAA+B;IAE/B,4GAA4G;IAC5G,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB;QACpD,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EACxB,CAAC;QACD,MAAM,QAAQ,GAAG,mBAAW,CAAC,UAAU,CACrC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EACxC,mBAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAC1E,CAAC;QACF,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAE5D,OAAO,eAAe,IAAI,IAAA,8BAAmB,EAAC,eAAe,CAAC;YAC5D,CAAC,CAAC,eAAe;YACjB,CAAC,CAAC,QAAQ,CAAC;IACf,CAAC;IAED,4BAA4B;IAC5B,OAAO,IAAI,CAAC,EAAE,IAAI,IAAI;QACpB,CAAC,CAAC,mBAAW,CAAC,UAAU,CACpB,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,8BAAmB,CAAC,EACtD,mBAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAC7D;QACH,CAAC,CAAC,mBAAW,CAAC,UAAU,CACpB,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,8BAAmB,CAAC,EACnD,mBAAW,CAAC,iBAAiB,CAAC,YAAY,CACxC,qBAAqB,EACrB,UAAU,CACX,CACF,CAAC;AACR,CAAC;AAED;;;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,CAAC,KAAK,CAAC;IAC5D,CAAC;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE,CAAC;QAChE,MAAM,UAAU,GAAG,mBAAW,CAAC,UAAU,CACvC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAY,CAAC,EAClD,mBAAW,CAAC,iBAAiB,CAAC,YAAY,CACxC,aAAa,EACb,gBAAgB,CACjB,CACF,CAAC;QAEF,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC;QAC7B,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACvB,GAAG,GAAG,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IAC5D,CAAC;IAED,OAAO;QACL,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE;QACnB,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE;KAChB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js deleted file mode 100644 index fd5ae3f3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getMemberHeadLoc = getMemberHeadLoc; -exports.getParameterPropertyHeadLoc = getParameterPropertyHeadLoc; -const eslint_utils_1 = require("@typescript-eslint/utils/eslint-utils"); -/** - * Generates report loc suitable for reporting on how a class member is - * declared, rather than how it's implemented. - * - * ```ts - * class A { - * abstract method(): void; - * ~~~~~~~~~~~~~~~ - * - * concreteMethod(): void { - * ~~~~~~~~~~~~~~ - * // code - * } - * - * abstract private property?: string; - * ~~~~~~~~~~~~~~~~~~~~~~~~~ - * - * @decorator override concreteProperty = 'value'; - * ~~~~~~~~~~~~~~~~~~~~~~~~~ - * } - * ``` - */ -function getMemberHeadLoc(sourceCode, node) { - let start; - if (node.decorators.length === 0) { - start = node.loc.start; - } - else { - const lastDecorator = node.decorators[node.decorators.length - 1]; - const nextToken = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(lastDecorator), eslint_utils_1.NullThrowsReasons.MissingToken('token', 'last decorator')); - start = nextToken.loc.start; - } - let end; - if (!node.computed) { - end = node.key.loc.end; - } - else { - const closingBracket = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(node.key, token => token.value === ']'), eslint_utils_1.NullThrowsReasons.MissingToken(']', node.type)); - end = closingBracket.loc.end; - } - return { - start: structuredClone(start), - end: structuredClone(end), - }; -} -/** - * Generates report loc suitable for reporting on how a parameter property is - * declared. - * - * ```ts - * class A { - * constructor(private property: string = 'value') { - * ~~~~~~~~~~~~~~~~ - * } - * ``` - */ -function getParameterPropertyHeadLoc(sourceCode, node, nodeName) { - // Parameter properties have a weirdly different AST structure - // than other class members. - let start; - if (node.decorators.length === 0) { - start = structuredClone(node.loc.start); - } - else { - const lastDecorator = node.decorators[node.decorators.length - 1]; - const nextToken = (0, eslint_utils_1.nullThrows)(sourceCode.getTokenAfter(lastDecorator), eslint_utils_1.NullThrowsReasons.MissingToken('token', 'last decorator')); - start = structuredClone(nextToken.loc.start); - } - const end = sourceCode.getLocFromIndex(node.parameter.range[0] + nodeName.length); - return { - start, - end, - }; -} -//# sourceMappingURL=getMemberHeadLoc.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map deleted file mode 100644 index aecea676..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js.map +++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AC,KAAK,CAAC;QAC7B,GAAG,EAAE,eAAe,CAAC,GAAG,CAAC;KAC1B,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,2BAA2B,CACzC,UAAyC,EACzC,IAAkC,EAClC,QAAgB;IAEhB,8DAA8D;IAC9D,4BAA4B;IAE5B,IAAI,KAAwB,CAAC;IAE7B,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACN,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAClE,MAAM,SAAS,GAAG,IAAA,yBAAU,EAC1B,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,EACvC,gCAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAC1D,CAAC;QACF,KAAK,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,GAAG,GAAG,UAAU,CAAC,eAAe,CACpC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAC1C,CAAC;IAEF,OAAO;QACL,KAAK;QACL,GAAG;KACJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js deleted file mode 100644 index 503446d1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +++ /dev/null @@ -1,418 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperatorPrecedence = void 0; -exports.getOperatorPrecedenceForNode = getOperatorPrecedenceForNode; -exports.getOperatorPrecedence = getOperatorPrecedence; -exports.getBinaryOperatorPrecedence = getBinaryOperatorPrecedence; -const utils_1 = require("@typescript-eslint/utils"); -const typescript_1 = require("typescript"); -var OperatorPrecedence; -(function (OperatorPrecedence) { - // Expression: - // AssignmentExpression - // Expression `,` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Comma"] = 0] = "Comma"; - // NOTE: `Spread` is higher than `Comma` due to how it is parsed in |ElementList| - // SpreadElement: - // `...` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Spread"] = 1] = "Spread"; - // AssignmentExpression: - // ConditionalExpression - // YieldExpression - // ArrowFunction - // AsyncArrowFunction - // LeftHandSideExpression `=` AssignmentExpression - // LeftHandSideExpression AssignmentOperator AssignmentExpression - // - // NOTE: AssignmentExpression is broken down into several precedences due to the requirements - // of the parenthesize rules. - // AssignmentExpression: YieldExpression - // YieldExpression: - // `yield` - // `yield` AssignmentExpression - // `yield` `*` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Yield"] = 2] = "Yield"; - // AssignmentExpression: LeftHandSideExpression `=` AssignmentExpression - // AssignmentExpression: LeftHandSideExpression AssignmentOperator AssignmentExpression - // AssignmentOperator: one of - // `*=` `/=` `%=` `+=` `-=` `<<=` `>>=` `>>>=` `&=` `^=` `|=` `**=` - OperatorPrecedence[OperatorPrecedence["Assignment"] = 3] = "Assignment"; - // NOTE: `Conditional` is considered higher than `Assignment` here, but in reality they have - // the same precedence. - // AssignmentExpression: ConditionalExpression - // ConditionalExpression: - // ShortCircuitExpression - // ShortCircuitExpression `?` AssignmentExpression `:` AssignmentExpression - // ShortCircuitExpression: - // LogicalORExpression - // CoalesceExpression - OperatorPrecedence[OperatorPrecedence["Conditional"] = 4] = "Conditional"; - // CoalesceExpression: - // CoalesceExpressionHead `??` BitwiseORExpression - // CoalesceExpressionHead: - // CoalesceExpression - // BitwiseORExpression - OperatorPrecedence[OperatorPrecedence["Coalesce"] = 4] = "Coalesce"; - // LogicalORExpression: - // LogicalANDExpression - // LogicalORExpression `||` LogicalANDExpression - OperatorPrecedence[OperatorPrecedence["LogicalOR"] = 5] = "LogicalOR"; - // LogicalANDExpression: - // BitwiseORExpression - // LogicalANDExpression `&&` BitwiseORExpression - OperatorPrecedence[OperatorPrecedence["LogicalAND"] = 6] = "LogicalAND"; - // BitwiseORExpression: - // BitwiseXORExpression - // BitwiseORExpression `^` BitwiseXORExpression - OperatorPrecedence[OperatorPrecedence["BitwiseOR"] = 7] = "BitwiseOR"; - // BitwiseXORExpression: - // BitwiseANDExpression - // BitwiseXORExpression `^` BitwiseANDExpression - OperatorPrecedence[OperatorPrecedence["BitwiseXOR"] = 8] = "BitwiseXOR"; - // BitwiseANDExpression: - // EqualityExpression - // BitwiseANDExpression `^` EqualityExpression - OperatorPrecedence[OperatorPrecedence["BitwiseAND"] = 9] = "BitwiseAND"; - // EqualityExpression: - // RelationalExpression - // EqualityExpression `==` RelationalExpression - // EqualityExpression `!=` RelationalExpression - // EqualityExpression `===` RelationalExpression - // EqualityExpression `!==` RelationalExpression - OperatorPrecedence[OperatorPrecedence["Equality"] = 10] = "Equality"; - // RelationalExpression: - // ShiftExpression - // RelationalExpression `<` ShiftExpression - // RelationalExpression `>` ShiftExpression - // RelationalExpression `<=` ShiftExpression - // RelationalExpression `>=` ShiftExpression - // RelationalExpression `instanceof` ShiftExpression - // RelationalExpression `in` ShiftExpression - // [+TypeScript] RelationalExpression `as` Type - OperatorPrecedence[OperatorPrecedence["Relational"] = 11] = "Relational"; - // ShiftExpression: - // AdditiveExpression - // ShiftExpression `<<` AdditiveExpression - // ShiftExpression `>>` AdditiveExpression - // ShiftExpression `>>>` AdditiveExpression - OperatorPrecedence[OperatorPrecedence["Shift"] = 12] = "Shift"; - // AdditiveExpression: - // MultiplicativeExpression - // AdditiveExpression `+` MultiplicativeExpression - // AdditiveExpression `-` MultiplicativeExpression - OperatorPrecedence[OperatorPrecedence["Additive"] = 13] = "Additive"; - // MultiplicativeExpression: - // ExponentiationExpression - // MultiplicativeExpression MultiplicativeOperator ExponentiationExpression - // MultiplicativeOperator: one of `*`, `/`, `%` - OperatorPrecedence[OperatorPrecedence["Multiplicative"] = 14] = "Multiplicative"; - // ExponentiationExpression: - // UnaryExpression - // UpdateExpression `**` ExponentiationExpression - OperatorPrecedence[OperatorPrecedence["Exponentiation"] = 15] = "Exponentiation"; - // UnaryExpression: - // UpdateExpression - // `delete` UnaryExpression - // `void` UnaryExpression - // `typeof` UnaryExpression - // `+` UnaryExpression - // `-` UnaryExpression - // `~` UnaryExpression - // `!` UnaryExpression - // AwaitExpression - // UpdateExpression: // TODO: Do we need to investigate the precedence here? - // `++` UnaryExpression - // `--` UnaryExpression - OperatorPrecedence[OperatorPrecedence["Unary"] = 16] = "Unary"; - // UpdateExpression: - // LeftHandSideExpression - // LeftHandSideExpression `++` - // LeftHandSideExpression `--` - OperatorPrecedence[OperatorPrecedence["Update"] = 17] = "Update"; - // LeftHandSideExpression: - // NewExpression - // CallExpression - // NewExpression: - // MemberExpression - // `new` NewExpression - OperatorPrecedence[OperatorPrecedence["LeftHandSide"] = 18] = "LeftHandSide"; - // CallExpression: - // CoverCallExpressionAndAsyncArrowHead - // SuperCall - // ImportCall - // CallExpression Arguments - // CallExpression `[` Expression `]` - // CallExpression `.` IdentifierName - // CallExpression TemplateLiteral - // MemberExpression: - // PrimaryExpression - // MemberExpression `[` Expression `]` - // MemberExpression `.` IdentifierName - // MemberExpression TemplateLiteral - // SuperProperty - // MetaProperty - // `new` MemberExpression Arguments - OperatorPrecedence[OperatorPrecedence["Member"] = 19] = "Member"; - // TODO: JSXElement? - // PrimaryExpression: - // `this` - // IdentifierReference - // Literal - // ArrayLiteral - // ObjectLiteral - // FunctionExpression - // ClassExpression - // GeneratorExpression - // AsyncFunctionExpression - // AsyncGeneratorExpression - // RegularExpressionLiteral - // TemplateLiteral - // CoverParenthesizedExpressionAndArrowParameterList - OperatorPrecedence[OperatorPrecedence["Primary"] = 20] = "Primary"; - OperatorPrecedence[OperatorPrecedence["Highest"] = 20] = "Highest"; - OperatorPrecedence[OperatorPrecedence["Lowest"] = 0] = "Lowest"; - // -1 is lower than all other precedences. Returning it will cause binary expression - // parsing to stop. - OperatorPrecedence[OperatorPrecedence["Invalid"] = -1] = "Invalid"; -})(OperatorPrecedence || (exports.OperatorPrecedence = OperatorPrecedence = {})); -function getOperatorPrecedenceForNode(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.SpreadElement: - case utils_1.AST_NODE_TYPES.RestElement: - return OperatorPrecedence.Spread; - case utils_1.AST_NODE_TYPES.YieldExpression: - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - return OperatorPrecedence.Yield; - case utils_1.AST_NODE_TYPES.ConditionalExpression: - return OperatorPrecedence.Conditional; - case utils_1.AST_NODE_TYPES.SequenceExpression: - return OperatorPrecedence.Comma; - case utils_1.AST_NODE_TYPES.AssignmentExpression: - case utils_1.AST_NODE_TYPES.BinaryExpression: - case utils_1.AST_NODE_TYPES.LogicalExpression: - switch (node.operator) { - case '==': - case '+=': - case '-=': - case '**=': - case '*=': - case '/=': - case '%=': - case '<<=': - case '>>=': - case '>>>=': - case '&=': - case '^=': - case '|=': - case '||=': - case '&&=': - case '??=': - return OperatorPrecedence.Assignment; - default: - return getBinaryOperatorPrecedence(node.operator); - } - case utils_1.AST_NODE_TYPES.TSTypeAssertion: - case utils_1.AST_NODE_TYPES.TSNonNullExpression: - case utils_1.AST_NODE_TYPES.UnaryExpression: - case utils_1.AST_NODE_TYPES.AwaitExpression: - return OperatorPrecedence.Unary; - case utils_1.AST_NODE_TYPES.UpdateExpression: - // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? - if (node.prefix) { - return OperatorPrecedence.Unary; - } - return OperatorPrecedence.Update; - case utils_1.AST_NODE_TYPES.ChainExpression: - return getOperatorPrecedenceForNode(node.expression); - case utils_1.AST_NODE_TYPES.CallExpression: - return OperatorPrecedence.LeftHandSide; - case utils_1.AST_NODE_TYPES.NewExpression: - return node.arguments.length > 0 - ? OperatorPrecedence.Member - : OperatorPrecedence.LeftHandSide; - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - case utils_1.AST_NODE_TYPES.MemberExpression: - case utils_1.AST_NODE_TYPES.MetaProperty: - return OperatorPrecedence.Member; - case utils_1.AST_NODE_TYPES.TSAsExpression: - return OperatorPrecedence.Relational; - case utils_1.AST_NODE_TYPES.ThisExpression: - case utils_1.AST_NODE_TYPES.Super: - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.PrivateIdentifier: - case utils_1.AST_NODE_TYPES.Literal: - case utils_1.AST_NODE_TYPES.ArrayExpression: - case utils_1.AST_NODE_TYPES.ObjectExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.ClassExpression: - case utils_1.AST_NODE_TYPES.TemplateLiteral: - case utils_1.AST_NODE_TYPES.JSXElement: - case utils_1.AST_NODE_TYPES.JSXFragment: - // we don't have nodes for these cases - // case SyntaxKind.ParenthesizedExpression: - // case SyntaxKind.OmittedExpression: - return OperatorPrecedence.Primary; - default: - return OperatorPrecedence.Invalid; - } -} -function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { - switch (nodeKind) { - // A list of comma-separated expressions. This node is only created by transformations. - case typescript_1.SyntaxKind.CommaListExpression: - return OperatorPrecedence.Comma; - case typescript_1.SyntaxKind.SpreadElement: - return OperatorPrecedence.Spread; - case typescript_1.SyntaxKind.YieldExpression: - return OperatorPrecedence.Yield; - case typescript_1.SyntaxKind.ConditionalExpression: - return OperatorPrecedence.Conditional; - case typescript_1.SyntaxKind.BinaryExpression: - switch (operatorKind) { - case typescript_1.SyntaxKind.CommaToken: - return OperatorPrecedence.Comma; - case typescript_1.SyntaxKind.EqualsToken: - case typescript_1.SyntaxKind.PlusEqualsToken: - case typescript_1.SyntaxKind.MinusEqualsToken: - case typescript_1.SyntaxKind.AsteriskAsteriskEqualsToken: - case typescript_1.SyntaxKind.AsteriskEqualsToken: - case typescript_1.SyntaxKind.SlashEqualsToken: - case typescript_1.SyntaxKind.PercentEqualsToken: - case typescript_1.SyntaxKind.LessThanLessThanEqualsToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanEqualsToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken: - case typescript_1.SyntaxKind.AmpersandEqualsToken: - case typescript_1.SyntaxKind.CaretEqualsToken: - case typescript_1.SyntaxKind.BarEqualsToken: - case typescript_1.SyntaxKind.BarBarEqualsToken: - case typescript_1.SyntaxKind.AmpersandAmpersandEqualsToken: - case typescript_1.SyntaxKind.QuestionQuestionEqualsToken: - return OperatorPrecedence.Assignment; - default: - return getBinaryOperatorPrecedence(operatorKind); - } - // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? - case typescript_1.SyntaxKind.TypeAssertionExpression: - case typescript_1.SyntaxKind.NonNullExpression: - case typescript_1.SyntaxKind.PrefixUnaryExpression: - case typescript_1.SyntaxKind.TypeOfExpression: - case typescript_1.SyntaxKind.VoidExpression: - case typescript_1.SyntaxKind.DeleteExpression: - case typescript_1.SyntaxKind.AwaitExpression: - return OperatorPrecedence.Unary; - case typescript_1.SyntaxKind.PostfixUnaryExpression: - return OperatorPrecedence.Update; - case typescript_1.SyntaxKind.CallExpression: - return OperatorPrecedence.LeftHandSide; - case typescript_1.SyntaxKind.NewExpression: - return hasArguments - ? OperatorPrecedence.Member - : OperatorPrecedence.LeftHandSide; - case typescript_1.SyntaxKind.TaggedTemplateExpression: - case typescript_1.SyntaxKind.PropertyAccessExpression: - case typescript_1.SyntaxKind.ElementAccessExpression: - case typescript_1.SyntaxKind.MetaProperty: - return OperatorPrecedence.Member; - case typescript_1.SyntaxKind.AsExpression: - case typescript_1.SyntaxKind.SatisfiesExpression: - return OperatorPrecedence.Relational; - case typescript_1.SyntaxKind.ThisKeyword: - case typescript_1.SyntaxKind.SuperKeyword: - case typescript_1.SyntaxKind.Identifier: - case typescript_1.SyntaxKind.PrivateIdentifier: - case typescript_1.SyntaxKind.NullKeyword: - case typescript_1.SyntaxKind.TrueKeyword: - case typescript_1.SyntaxKind.FalseKeyword: - case typescript_1.SyntaxKind.NumericLiteral: - case typescript_1.SyntaxKind.BigIntLiteral: - case typescript_1.SyntaxKind.StringLiteral: - case typescript_1.SyntaxKind.ArrayLiteralExpression: - case typescript_1.SyntaxKind.ObjectLiteralExpression: - case typescript_1.SyntaxKind.FunctionExpression: - case typescript_1.SyntaxKind.ArrowFunction: - case typescript_1.SyntaxKind.ClassExpression: - case typescript_1.SyntaxKind.RegularExpressionLiteral: - case typescript_1.SyntaxKind.NoSubstitutionTemplateLiteral: - case typescript_1.SyntaxKind.TemplateExpression: - case typescript_1.SyntaxKind.ParenthesizedExpression: - case typescript_1.SyntaxKind.OmittedExpression: - case typescript_1.SyntaxKind.JsxElement: - case typescript_1.SyntaxKind.JsxSelfClosingElement: - case typescript_1.SyntaxKind.JsxFragment: - return OperatorPrecedence.Primary; - default: - return OperatorPrecedence.Invalid; - } -} -function getBinaryOperatorPrecedence(kind) { - switch (kind) { - case typescript_1.SyntaxKind.QuestionQuestionToken: - case '??': - return OperatorPrecedence.Coalesce; - case typescript_1.SyntaxKind.BarBarToken: - case '||': - return OperatorPrecedence.LogicalOR; - case typescript_1.SyntaxKind.AmpersandAmpersandToken: - case '&&': - return OperatorPrecedence.LogicalAND; - case typescript_1.SyntaxKind.BarToken: - case '|': - return OperatorPrecedence.BitwiseOR; - case typescript_1.SyntaxKind.CaretToken: - case '^': - return OperatorPrecedence.BitwiseXOR; - case typescript_1.SyntaxKind.AmpersandToken: - case '&': - return OperatorPrecedence.BitwiseAND; - case typescript_1.SyntaxKind.EqualsEqualsToken: - case '==': - case typescript_1.SyntaxKind.ExclamationEqualsToken: - case '!=': - case typescript_1.SyntaxKind.EqualsEqualsEqualsToken: - case '===': - case typescript_1.SyntaxKind.ExclamationEqualsEqualsToken: - case '!==': - return OperatorPrecedence.Equality; - case typescript_1.SyntaxKind.LessThanToken: - case '<': - case typescript_1.SyntaxKind.GreaterThanToken: - case '>': - case typescript_1.SyntaxKind.LessThanEqualsToken: - case '<=': - case typescript_1.SyntaxKind.GreaterThanEqualsToken: - case '>=': - case typescript_1.SyntaxKind.InstanceOfKeyword: - case 'instanceof': - case typescript_1.SyntaxKind.InKeyword: - case 'in': - case typescript_1.SyntaxKind.AsKeyword: - // case 'as': -- we don't have a token for this - return OperatorPrecedence.Relational; - case typescript_1.SyntaxKind.LessThanLessThanToken: - case '<<': - case typescript_1.SyntaxKind.GreaterThanGreaterThanToken: - case '>>': - case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanToken: - case '>>>': - return OperatorPrecedence.Shift; - case typescript_1.SyntaxKind.PlusToken: - case '+': - case typescript_1.SyntaxKind.MinusToken: - case '-': - return OperatorPrecedence.Additive; - case typescript_1.SyntaxKind.AsteriskToken: - case '*': - case typescript_1.SyntaxKind.SlashToken: - case '/': - case typescript_1.SyntaxKind.PercentToken: - case '%': - return OperatorPrecedence.Multiplicative; - case typescript_1.SyntaxKind.AsteriskAsteriskToken: - case '**': - return OperatorPrecedence.Exponentiation; - } - // -1 is lower than all other precedences. Returning it will cause binary expression - // parsing to stop. - return -1; -} -//# sourceMappingURL=getOperatorPrecedence.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map deleted file mode 100644 index 95153be3..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getOperatorPrecedence.js","sourceRoot":"","sources":["../../src/util/getOperatorPrecedence.ts"],"names":[],"mappings":";;;AAuMA,oEAgGC;AAMD,sDAyGC;AAED,kEAoFC;AA1eD,oDAA0D;AAC1D,2CAAwC;AAIxC,IAAY,kBA8LX;AA9LD,WAAY,k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AAqB,CAAC;QACtC,KAAK,IAAI,CAAC;QACV,KAAK,uBAAU,CAAC,2BAA2B,CAAC;QAC5C,KAAK,IAAI,CAAC;QACV,KAAK,uBAAU,CAAC,sCAAsC,CAAC;QACvD,KAAK,KAAK;YACR,OAAO,kBAAkB,CAAC,KAAK,CAAC;QAElC,KAAK,uBAAU,CAAC,SAAS,CAAC;QAC1B,KAAK,GAAG,CAAC;QACT,KAAK,uBAAU,CAAC,UAAU,CAAC;QAC3B,KAAK,GAAG;YACN,OAAO,kBAAkB,CAAC,QAAQ,CAAC;QAErC,KAAK,uBAAU,CAAC,aAAa,CAAC;QAC9B,KAAK,GAAG,CAAC;QACT,KAAK,uBAAU,CAAC,UAAU,CAAC;QAC3B,KAAK,GAAG,CAAC;QACT,KAAK,uBAAU,CAAC,YAAY,CAAC;QAC7B,KAAK,GAAG;YACN,OAAO,kBAAkB,CAAC,cAAc,CAAC;QAE3C,KAAK,uBAAU,CAAC,qBAAqB,CAAC;QACtC,KAAK,IAAI;YACP,OAAO,kBAAkB,CAAC,cAAc,CAAC;IAC7C,CAAC;IAED,qFAAqF;IACrF,mBAAmB;IACnB,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js deleted file mode 100644 index 7c3b67b0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L191-L230 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getStaticStringValue = getStaticStringValue; -const utils_1 = require("@typescript-eslint/utils"); -const isNullLiteral_1 = require("./isNullLiteral"); -/** - * Returns the result of the string conversion applied to the evaluated value of the given expression node, - * if it can be determined statically. - * - * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only. - * In all other cases, this function returns `null`. - * @param node Expression node. - * @returns String value if it can be determined. Otherwise, `null`. - */ -function getStaticStringValue(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.Literal: - // eslint-disable-next-line eqeqeq -- intentional strict comparison for literal value - if (node.value === null) { - if ((0, isNullLiteral_1.isNullLiteral)(node)) { - return String(node.value); // "null" - } - if ('regex' in node) { - return `/${node.regex.pattern}/${node.regex.flags}`; - } - if ('bigint' in node) { - return node.bigint; - } - // Otherwise, this is an unknown literal. The function will return null. - } - else { - return String(node.value); - } - break; - case utils_1.AST_NODE_TYPES.TemplateLiteral: - if (node.expressions.length === 0 && node.quasis.length === 1) { - return node.quasis[0].value.cooked; - } - break; - // no default - } - return null; -} -//# sourceMappingURL=getStaticStringValue.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map deleted file mode 100644 index af18bbb4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getStaticStringValue.js","sourceRoot":"","sources":["../../src/util/getStaticStringValue.ts"],"names":[],"mappings":";AAAA,qIAAqI;;AAgBrI,oDAgCC;AA7CD,oDAA0D;AAE1D,mDAAgD;AAEhD;;;;;;;;GAQG;AACH,SAAgB,oBAAoB,CAAC,IAAmB;IACtD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,OAAO;YACzB,qFAAqF;YACrF,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;gBACxB,IAAI,IAAA,6BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;gBACtC,CAAC;gBACD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;oBACpB,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACtD,CAAC;gBAED,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;oBACrB,OAAO,IAAI,CAAC,MAAM,CAAC;gBACrB,CAAC;gBAED,wEAAwE;YAC1E,CAAC;iBAAM,CAAC;gBACN,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;YACD,MAAM;QAER,KAAK,sBAAc,CAAC,eAAe;YACjC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YACrC,CAAC;YACD,MAAM;QAER,aAAa;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js deleted file mode 100644 index 7154fc0e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getStringLength = getStringLength; -const graphemer_1 = __importDefault(require("graphemer")); -let splitter; -function isASCII(value) { - return /^[\u0020-\u007f]*$/u.test(value); -} -function getStringLength(value) { - if (isASCII(value)) { - return value.length; - } - splitter ??= new graphemer_1.default(); - return splitter.countGraphemes(value); -} -//# sourceMappingURL=getStringLength.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map deleted file mode 100644 index 9771cf3d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getStringLength.js","sourceRoot":"","sources":["../../src/util/getStringLength.ts"],"names":[],"mappings":";;;;;AAQA,0CAQC;AAhBD,0DAAkC;AAElC,IAAI,QAA+B,CAAC;AAEpC,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,eAAe,CAAC,KAAa;IAC3C,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,MAAM,CAAC;IACtB,CAAC;IAED,QAAQ,KAAK,IAAI,mBAAS,EAAE,CAAC;IAE7B,OAAO,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js deleted file mode 100644 index 48be26ef..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTextWithParentheses = getTextWithParentheses; -const _1 = require("."); -function getTextWithParentheses(sourceCode, node) { - // Capture parentheses before and after the node - let beforeCount = 0; - let afterCount = 0; - if ((0, _1.isParenthesized)(node, sourceCode)) { - const bodyOpeningParen = (0, _1.nullThrows)(sourceCode.getTokenBefore(node, _1.isOpeningParenToken), _1.NullThrowsReasons.MissingToken('(', 'node')); - const bodyClosingParen = (0, _1.nullThrows)(sourceCode.getTokenAfter(node, _1.isClosingParenToken), _1.NullThrowsReasons.MissingToken(')', 'node')); - beforeCount = node.range[0] - bodyOpeningParen.range[0]; - afterCount = bodyClosingParen.range[1] - node.range[1]; - } - return sourceCode.getText(node, beforeCount, afterCount); -} -//# sourceMappingURL=getTextWithParentheses.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map deleted file mode 100644 index 9da346bc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTextWithParentheses.js","sourceRoot":"","sources":["../../src/util/getTextWithParentheses.ts"],"names":[],"mappings":";;AAWA,wDAuBC;AA/BD,wBAMW;AAEX,SAAgB,sBAAsB,CACpC,UAAgC,EAChC,IAAmB;IAEnB,gDAAgD;IAChD,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,IAAI,IAAA,kBAAe,EAAC,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC;QACtC,MAAM,gBAAgB,GAAG,IAAA,aAAU,EACjC,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAmB,CAAC,EACpD,oBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAC5C,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,aAAU,EACjC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,sBAAmB,CAAC,EACnD,oBAAiB,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAC5C,CAAC;QAEF,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACxD,UAAU,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js deleted file mode 100644 index a132a598..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getThisExpression = getThisExpression; -const utils_1 = require("@typescript-eslint/utils"); -function getThisExpression(node) { - while (true) { - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - node = node.callee; - } - else if (node.type === utils_1.AST_NODE_TYPES.ThisExpression) { - return node; - } - else if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { - node = node.object; - } - else if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - node = node.expression; - } - else { - break; - } - } - return; -} -//# sourceMappingURL=getThisExpression.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map deleted file mode 100644 index f4d0cedc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getThisExpression.js","sourceRoot":"","sources":["../../src/util/getThisExpression.ts"],"names":[],"mappings":";;AAGA,8CAkBC;AApBD,oDAA0D;AAE1D,SAAgB,iBAAiB,CAC/B,IAAmB;IAEnB,OAAO,IAAI,EAAE,CAAC;QACZ,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE,CAAC;YAChD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;YACzD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAAE,CAAC;YACxD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO;AACT,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js deleted file mode 100644 index d6d05430..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getWrappedCode = getWrappedCode; -function getWrappedCode(text, nodePrecedence, parentPrecedence) { - return nodePrecedence > parentPrecedence ? text : `(${text})`; -} -//# sourceMappingURL=getWrappedCode.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map deleted file mode 100644 index 958e55f0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWrappedCode.js","sourceRoot":"","sources":["../../src/util/getWrappedCode.ts"],"names":[],"mappings":";;AAEA,wCAMC;AAND,SAAgB,cAAc,CAC5B,IAAY,EACZ,cAAkC,EAClC,gBAAoC;IAEpC,OAAO,cAAc,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC;AAChE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js deleted file mode 100644 index 370eec6f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getWrappingFixer = getWrappingFixer; -exports.isStrongPrecedenceNode = isStrongPrecedenceNode; -const utils_1 = require("@typescript-eslint/utils"); -/** - * Wraps node with some code. Adds parenthesis as necessary. - * @returns Fixer which adds the specified code and parens if necessary. - */ -function getWrappingFixer(params) { - const { sourceCode, node, innerNode = node, wrap } = params; - const innerNodes = Array.isArray(innerNode) ? innerNode : [innerNode]; - return (fixer) => { - const innerCodes = innerNodes.map(innerNode => { - let code = sourceCode.getText(innerNode); - /** - * Wrap our node in parens to prevent the following cases: - * - It has a weaker precedence than the code we are wrapping it in - * - It's gotten mistaken as block statement instead of object expression - */ - if (!isStrongPrecedenceNode(innerNode) || - isObjectExpressionInOneLineReturn(node, innerNode)) { - code = `(${code})`; - } - return code; - }); - // do the wrapping - let code = wrap(...innerCodes); - // check the outer expression's precedence - if (isWeakPrecedenceParent(node)) { - // we wrapped the node in some expression which very likely has a different precedence than original wrapped node - // let's wrap the whole expression in parens just in case - if (!utils_1.ASTUtils.isParenthesized(node, sourceCode)) { - code = `(${code})`; - } - } - // check if we need to insert semicolon - if (/^[`([]/.test(code) && isMissingSemicolonBefore(node, sourceCode)) { - code = `;${code}`; - } - return fixer.replaceText(node, code); - }; -} -/** - * Check if a node will always have the same precedence if it's parent changes. - */ -function isStrongPrecedenceNode(innerNode) { - return (innerNode.type === utils_1.AST_NODE_TYPES.Literal || - innerNode.type === utils_1.AST_NODE_TYPES.Identifier || - innerNode.type === utils_1.AST_NODE_TYPES.TSTypeReference || - innerNode.type === utils_1.AST_NODE_TYPES.TSTypeOperator || - innerNode.type === utils_1.AST_NODE_TYPES.ArrayExpression || - innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression || - innerNode.type === utils_1.AST_NODE_TYPES.MemberExpression || - innerNode.type === utils_1.AST_NODE_TYPES.CallExpression || - innerNode.type === utils_1.AST_NODE_TYPES.NewExpression || - innerNode.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression || - innerNode.type === utils_1.AST_NODE_TYPES.TSInstantiationExpression); -} -/** - * Check if a node's parent could have different precedence if the node changes. - */ -function isWeakPrecedenceParent(node) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const parent = node.parent; - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression || - parent.type === utils_1.AST_NODE_TYPES.UnaryExpression || - parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || - parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || - parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression || - parent.type === utils_1.AST_NODE_TYPES.AwaitExpression) { - return true; - } - if (parent.type === utils_1.AST_NODE_TYPES.MemberExpression && - parent.object === node) { - return true; - } - if ((parent.type === utils_1.AST_NODE_TYPES.CallExpression || - parent.type === utils_1.AST_NODE_TYPES.NewExpression) && - parent.callee === node) { - return true; - } - if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && - parent.tag === node) { - return true; - } - return false; -} -/** - * Returns true if a node is at the beginning of expression statement and the statement above doesn't end with semicolon. - * Doesn't check if the node begins with `(`, `[` or `` ` ``. - */ -function isMissingSemicolonBefore(node, sourceCode) { - for (;;) { - // https://github.com/typescript-eslint/typescript-eslint/issues/6225 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const parent = node.parent; - if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - const block = parent.parent; - if (block.type === utils_1.AST_NODE_TYPES.Program || - block.type === utils_1.AST_NODE_TYPES.BlockStatement) { - // parent is an expression statement in a block - const statementIndex = block.body.indexOf(parent); - const previousStatement = block.body[statementIndex - 1]; - if (statementIndex > 0 && - utils_1.ESLintUtils.nullThrows(sourceCode.getLastToken(previousStatement), 'Mismatched semicolon and block').value !== ';') { - return true; - } - } - } - if (!isLeftHandSide(node)) { - return false; - } - node = parent; - } -} -/** - * Checks if a node is LHS of an operator. - */ -function isLeftHandSide(node) { - // https://github.com/typescript-eslint/typescript-eslint/issues/6225 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const parent = node.parent; - // a++ - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression) { - return true; - } - // a + b - if ((parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || - parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || - parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression) && - node === parent.left) { - return true; - } - // a ? b : c - if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && - node === parent.test) { - return true; - } - // a(b) - if (parent.type === utils_1.AST_NODE_TYPES.CallExpression && node === parent.callee) { - return true; - } - // a`b` - if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && - node === parent.tag) { - return true; - } - return false; -} -/** - * Checks if a node's parent is arrow function expression and a inner node is object expression - */ -function isObjectExpressionInOneLineReturn(node, innerNode) { - return (node.parent?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - node.parent.body === node && - innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression); -} -//# sourceMappingURL=getWrappingFixer.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map deleted file mode 100644 index 0b9af816..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWrappingFixer.js","sourceRoot":"","sources":["../../src/util/getWrapp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AC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB;QAC5D,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI;QACzB,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CACnD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js deleted file mode 100644 index ac3fe8ab..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NullThrowsReasons = exports.nullThrows = exports.getParserServices = exports.isObjectNotArray = exports.deepMerge = exports.applyDefault = void 0; -const utils_1 = require("@typescript-eslint/utils"); -__exportStar(require("./astUtils"), exports); -__exportStar(require("./collectUnusedVariables"), exports); -__exportStar(require("./createRule"), exports); -__exportStar(require("./getFunctionHeadLoc"), exports); -__exportStar(require("./getOperatorPrecedence"), exports); -__exportStar(require("./getStaticStringValue"), exports); -__exportStar(require("./getStringLength"), exports); -__exportStar(require("./getTextWithParentheses"), exports); -__exportStar(require("./getThisExpression"), exports); -__exportStar(require("./getWrappingFixer"), exports); -__exportStar(require("./isNodeEqual"), exports); -__exportStar(require("./isNullLiteral"), exports); -__exportStar(require("./isUndefinedIdentifier"), exports); -__exportStar(require("./misc"), exports); -__exportStar(require("./objectIterators"), exports); -__exportStar(require("./scopeUtils"), exports); -__exportStar(require("./types"), exports); -__exportStar(require("./isAssignee"), exports); -__exportStar(require("./getFixOrSuggest"), exports); -// this is done for convenience - saves migrating all of the old rules -__exportStar(require("@typescript-eslint/type-utils"), exports); -const { applyDefault, deepMerge, isObjectNotArray, getParserServices, nullThrows, NullThrowsReasons, } = utils_1.ESLintUtils; -exports.applyDefault = applyDefault; -exports.deepMerge = deepMerge; -exports.isObjectNotArray = isObjectNotArray; -exports.getParserServices = getParserServices; -exports.nullThrows = nullThrows; -exports.NullThrowsReasons = NullThrowsReasons; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map deleted file mode 100644 index 121a9645..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD,6CAA2B;AAC3B,2DAAyC;AACzC,+CAA6B;AAC7B,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,yCAAuB;AACvB,oDAAkC;AAClC,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B;AAC7B,oDAAkC;AAElC,sEAAsE;AACtE,gEAA8C;AAC9C,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,GAAG,mBAAW,CAAC;AAMd,oCAAY;AACZ,8BAAS;AACT,4CAAgB;AAChB,8CAAiB;AACjB,gCAAU;AAGV,8CAAiB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js deleted file mode 100644 index f9483f9d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isAssignee = isAssignee; -const utils_1 = require("@typescript-eslint/utils"); -function isAssignee(node) { - const parent = node.parent; - if (!parent) { - return false; - } - // a[i] = 1, a[i] += 1, etc. - if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - parent.left === node) { - return true; - } - // delete a[i] - if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && - parent.operator === 'delete' && - parent.argument === node) { - return true; - } - // a[i]++, --a[i], etc. - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && - parent.argument === node) { - return true; - } - // [a[i]] = [0] - if (parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - return true; - } - // [...a[i]] = [0] - if (parent.type === utils_1.AST_NODE_TYPES.RestElement) { - return true; - } - // ({ foo: a[i] }) = { foo: 0 } - if (parent.type === utils_1.AST_NODE_TYPES.Property && - parent.value === node && - parent.parent.type === utils_1.AST_NODE_TYPES.ObjectExpression && - isAssignee(parent.parent)) { - return true; - } - return false; -} -//# sourceMappingURL=isAssignee.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map deleted file mode 100644 index 601422ef..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isAssignee.js","sourceRoot":"","sources":["../../src/util/isAssignee.ts"],"names":[],"mappings":";;AAGA,gCAoDC;AAtDD,oDAA0D;AAE1D,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graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js deleted file mode 100644 index 8fc4711d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNodeEqual = isNodeEqual; -const utils_1 = require("@typescript-eslint/utils"); -function isNodeEqual(a, b) { - if (a.type !== b.type) { - return false; - } - if (a.type === utils_1.AST_NODE_TYPES.ThisExpression && - b.type === utils_1.AST_NODE_TYPES.ThisExpression) { - return true; - } - if (a.type === utils_1.AST_NODE_TYPES.Literal && b.type === utils_1.AST_NODE_TYPES.Literal) { - return a.value === b.value; - } - if (a.type === utils_1.AST_NODE_TYPES.Identifier && - b.type === utils_1.AST_NODE_TYPES.Identifier) { - return a.name === b.name; - } - if (a.type === utils_1.AST_NODE_TYPES.MemberExpression && - b.type === utils_1.AST_NODE_TYPES.MemberExpression) { - return (isNodeEqual(a.property, b.property) && isNodeEqual(a.object, b.object)); - } - return false; -} -//# sourceMappingURL=isNodeEqual.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map deleted file mode 100644 index 82e8aac5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isNodeEqual.js","sourceRoot":"","sources":["../../src/util/isNodeEqual.ts"],"names":[],"mappings":";;AAGA,kCA4BC;AA9BD,oDAA0D;AAE1D,SAAgB,WAAW,CAAC,CAAgB,EAAE,CAAgB;IAC5D,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QACxC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EACxC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAC3E,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC;IAC7B,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACpC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EACpC,CAAC;QACD,OAAO,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC;IAC3B,CAAC;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1C,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC1C,CAAC;QACD,OAAO,CACL,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CACvE,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js deleted file mode 100644 index bfac97cb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNullLiteral = isNullLiteral; -const utils_1 = require("@typescript-eslint/utils"); -function isNullLiteral(i) { - return i.type === utils_1.AST_NODE_TYPES.Literal && i.value == null; -} -//# sourceMappingURL=isNullLiteral.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map deleted file mode 100644 index 24e6ba44..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isNullLiteral.js","sourceRoot":"","sources":["../../src/util/isNullLiteral.ts"],"names":[],"mappings":";;AAGA,sCAEC;AAJD,oDAA0D;AAE1D,SAAgB,aAAa,CAAC,CAAgB;IAC5C,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC;AAC9D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js deleted file mode 100644 index 6cc63dd7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTypeImport = isTypeImport; -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -/** - * Determine whether a variable definition is a type import. e.g.: - * - * ```ts - * import type { Foo } from 'foo'; - * import { type Bar } from 'bar'; - * ``` - * - * @param definition - The variable definition to check. - */ -function isTypeImport(definition) { - return (definition?.type === scope_manager_1.DefinitionType.ImportBinding && - (definition.parent.importKind === 'type' || - (definition.node.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - definition.node.importKind === 'type'))); -} -//# sourceMappingURL=isTypeImport.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map deleted file mode 100644 index ba70940b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isTypeImport.js","sourceRoot":"","sources":["../../src/util/isTypeImport.ts"],"names":[],"mappings":";;AAiBA,oCASC;AAtBD,oEAAkE;AAClE,oDAA0D;AAE1D;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,UAAuB;IAEvB,OAAO,CACL,UAAU,EAAE,IAAI,KAAK,8BAAc,CAAC,aAAa;QACjD,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,KAAK,MAAM;YACtC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBACtD,UAAU,CAAC,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC,CAAC,CAC5C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js deleted file mode 100644 index 0bbd3186..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUndefinedIdentifier = isUndefinedIdentifier; -const utils_1 = require("@typescript-eslint/utils"); -function isUndefinedIdentifier(i) { - return i.type === utils_1.AST_NODE_TYPES.Identifier && i.name === 'undefined'; -} -//# sourceMappingURL=isUndefinedIdentifier.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map deleted file mode 100644 index 554399d8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUndefinedIdentifier.js","sourceRoot":"","sources":["../../src/util/isUndefinedIdentifier.ts"],"names":[],"mappings":";;AAGA,sDAEC;AAJD,oDAA0D;AAE1D,SAAgB,qBAAqB,CAAC,CAAgB;IACpD,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js deleted file mode 100644 index 0bd820e7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +++ /dev/null @@ -1,198 +0,0 @@ -"use strict"; -/** - * @fileoverview Really small utility functions that didn't deserve their own files - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MemberNameType = void 0; -exports.arrayGroupByToMap = arrayGroupByToMap; -exports.arraysAreEqual = arraysAreEqual; -exports.findFirstResult = findFirstResult; -exports.formatWordList = formatWordList; -exports.getEnumNames = getEnumNames; -exports.getNameFromIndexSignature = getNameFromIndexSignature; -exports.getNameFromMember = getNameFromMember; -exports.isDefinitionFile = isDefinitionFile; -exports.isRestParameterDeclaration = isRestParameterDeclaration; -exports.isParenlessArrowFunction = isParenlessArrowFunction; -exports.typeNodeRequiresParentheses = typeNodeRequiresParentheses; -exports.upperCaseFirst = upperCaseFirst; -exports.findLastIndex = findLastIndex; -const type_utils_1 = require("@typescript-eslint/type-utils"); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const astUtils_1 = require("./astUtils"); -const DEFINITION_EXTENSIONS = [ - ts.Extension.Dts, - ts.Extension.Dcts, - ts.Extension.Dmts, -]; -/** - * Check if the context file name is *.d.ts or *.d.tsx - */ -function isDefinitionFile(fileName) { - const lowerFileName = fileName.toLowerCase(); - for (const definitionExt of DEFINITION_EXTENSIONS) { - if (lowerFileName.endsWith(definitionExt)) { - return true; - } - } - return false; -} -/** - * Upper cases the first character or the string - */ -function upperCaseFirst(str) { - return str[0].toUpperCase() + str.slice(1); -} -function arrayGroupByToMap(array, getKey) { - const groups = new Map(); - for (const item of array) { - const key = getKey(item); - const existing = groups.get(key); - if (existing) { - existing.push(item); - } - else { - groups.set(key, [item]); - } - } - return groups; -} -function arraysAreEqual(a, b, eq) { - return (a === b || - (a !== undefined && - b !== undefined && - a.length === b.length && - a.every((x, idx) => eq(x, b[idx])))); -} -/** Returns the first non-`undefined` result. */ -function findFirstResult(inputs, getResult) { - for (const element of inputs) { - const result = getResult(element); - if (result !== undefined) { - return result; - } - } - return undefined; -} -/** - * Gets a string representation of the name of the index signature. - */ -function getNameFromIndexSignature(node) { - const propName = node.parameters.find((parameter) => parameter.type === utils_1.AST_NODE_TYPES.Identifier); - return propName ? propName.name : '(index signature)'; -} -var MemberNameType; -(function (MemberNameType) { - MemberNameType[MemberNameType["Private"] = 1] = "Private"; - MemberNameType[MemberNameType["Quoted"] = 2] = "Quoted"; - MemberNameType[MemberNameType["Normal"] = 3] = "Normal"; - MemberNameType[MemberNameType["Expression"] = 4] = "Expression"; -})(MemberNameType || (exports.MemberNameType = MemberNameType = {})); -/** - * Gets a string name representation of the name of the given MethodDefinition - * or PropertyDefinition node, with handling for computed property names. - */ -function getNameFromMember(member, sourceCode) { - if (member.key.type === utils_1.AST_NODE_TYPES.Identifier) { - return { - type: MemberNameType.Normal, - name: member.key.name, - }; - } - if (member.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return { - type: MemberNameType.Private, - name: `#${member.key.name}`, - }; - } - if (member.key.type === utils_1.AST_NODE_TYPES.Literal) { - const name = `${member.key.value}`; - if ((0, type_utils_1.requiresQuoting)(name)) { - return { - type: MemberNameType.Quoted, - name: `"${name}"`, - }; - } - return { - type: MemberNameType.Normal, - name, - }; - } - return { - type: MemberNameType.Expression, - name: sourceCode.text.slice(...member.key.range), - }; -} -function getEnumNames(myEnum) { - return Object.keys(myEnum).filter(x => isNaN(Number(x))); -} -/** - * Given an array of words, returns an English-friendly concatenation, separated with commas, with - * the `and` clause inserted before the last item. - * - * Example: ['foo', 'bar', 'baz' ] returns the string "foo, bar, and baz". - */ -function formatWordList(words) { - if (!words.length) { - return ''; - } - if (words.length === 1) { - return words[0]; - } - return [words.slice(0, -1).join(', '), words.slice(-1)[0]].join(' and '); -} -/** - * Iterates the array in reverse and returns the index of the first element it - * finds which passes the predicate function. - * - * @returns Returns the index of the element if it finds it or -1 otherwise. - */ -function findLastIndex(members, predicate) { - let idx = members.length - 1; - while (idx >= 0) { - const valid = predicate(members[idx]); - if (valid) { - return idx; - } - idx--; - } - return -1; -} -function typeNodeRequiresParentheses(node, text) { - return (node.type === utils_1.AST_NODE_TYPES.TSFunctionType || - node.type === utils_1.AST_NODE_TYPES.TSConstructorType || - node.type === utils_1.AST_NODE_TYPES.TSConditionalType || - (node.type === utils_1.AST_NODE_TYPES.TSUnionType && text.startsWith('|')) || - (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && text.startsWith('&'))); -} -function isRestParameterDeclaration(decl) { - return ts.isParameter(decl) && decl.dotDotDotToken != null; -} -function isParenlessArrowFunction(node, sourceCode) { - return (node.params.length === 1 && !(0, astUtils_1.isParenthesized)(node.params[0], sourceCode)); -} -//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map deleted file mode 100644 index be617b37..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAyOD,8CAAiB;AACjB,wCAAc;AAGd,0CAAe;AACf,wCAAc;AACd,oCAAY;AACZ,8DAAyB;AACzB,8CAAiB;AACjB,4CAAgB;AAChB,gEAA0B;AAC1B,4DAAwB;AAGxB,kEAA2B;AAC3B,wCAAc;AACd,sCAAa;AAvPf,8DAAgE;AAEhE,oDAA0D;AAC1D,+CAAiC;AAEjC,yCAA6C;AAE7C,MAAM,qBAAqB,GAAG;IAC5B,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,IAAI;IACjB,EAAE,CAAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX;;GAEG;AACH,SAAS,gBAAgB,CAAC,QAAgB;IACxC,MAAM,aAAa,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC7C,KAAK,MAAM,aAAa,IAAI,qBAAqB,EAAE,CAAC;QAClD,IAAI,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,GAAW;IACjC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC7C,C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EZ,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAC3C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAClE,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B,CAAC,IAAoB;IACtD,OAAO,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC;AAC7D,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAsC,EACtC,UAA+B;IAE/B,OAAO,CACL,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAA,0BAAe,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CACzE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js deleted file mode 100644 index d10f56f9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.objectForEachKey = objectForEachKey; -exports.objectMapKey = objectMapKey; -exports.objectReduceKey = objectReduceKey; -function objectForEachKey(obj, callback) { - const keys = Object.keys(obj); - for (const key of keys) { - callback(key); - } -} -function objectMapKey(obj, callback) { - const values = []; - objectForEachKey(obj, key => { - values.push(callback(key)); - }); - return values; -} -function objectReduceKey(obj, callback, initial) { - let accumulator = initial; - objectForEachKey(obj, key => { - accumulator = callback(accumulator, key); - }); - return accumulator; -} -//# sourceMappingURL=objectIterators.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map deleted file mode 100644 index 3311f8e8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"objectIterators.js","sourceRoot":"","sources":["../../src/util/objectIterators.ts"],"names":[],"mappings":";;AAiCS,4CAAgB;AAAE,oCAAY;AAAE,0CAAe;AAjCxD,SAAS,gBAAgB,CACvB,GAAM,EACN,QAAgC;IAEhC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,QAAQ,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CACnB,GAAM,EACN,QAAkC;IAElC,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,eAAe,CACtB,GAAM,EACN,QAAyD,EACzD,OAAoB;IAEpB,IAAI,WAAW,GAAG,OAAO,CAAC;IAC1B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,WAAW,GAAG,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js deleted file mode 100644 index 0ae36860..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.referenceContainsTypeQuery = referenceContainsTypeQuery; -const utils_1 = require("@typescript-eslint/utils"); -/** - * Recursively checks whether a given reference has a type query declaration among its parents - */ -function referenceContainsTypeQuery(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return true; - case utils_1.AST_NODE_TYPES.TSQualifiedName: - case utils_1.AST_NODE_TYPES.Identifier: - return referenceContainsTypeQuery(node.parent); - default: - // if we find a different node, there's no chance that we're in a TSTypeQuery - return false; - } -} -//# sourceMappingURL=referenceContainsTypeQuery.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map deleted file mode 100644 index c580c038..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"referenceContainsTypeQuery.js","sourceRoot":"","sources":["../../src/util/referenceContainsTypeQuery.ts"],"names":[],"mappings":";;AAMA,gEAaC;AAlBD,oDAA0D;AAE1D;;GAEG;AACH,SAAgB,0BAA0B,CAAC,IAAmB;IAC5D,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,sBAAc,CAAC,WAAW;YAC7B,OAAO,IAAI,CAAC;QAEd,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,UAAU;YAC5B,OAAO,0BAA0B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEjD;YACE,6EAA6E;YAC7E,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js deleted file mode 100644 index 18ff6c1d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isReferenceToGlobalFunction = isReferenceToGlobalFunction; -function isReferenceToGlobalFunction(calleeName, node, sourceCode) { - const ref = sourceCode - .getScope(node) - .references.find(ref => ref.identifier.name === calleeName); - // ensure it's the "global" version - return !ref?.resolved?.defs.length; -} -//# sourceMappingURL=scopeUtils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map deleted file mode 100644 index 19b5942d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../src/util/scopeUtils.ts"],"names":[],"mappings":";;AAGA,kEAWC;AAXD,SAAgB,2BAA2B,CACzC,UAAkB,EAClB,IAAmB,EACnB,UAAsB;IAEtB,MAAM,GAAG,GAAG,UAAU;SACnB,QAAQ,CAAC,IAAI,CAAC;SACd,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IAE9D,mCAAmC;IACnC,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map b/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map deleted file mode 100644 index e7579840..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/util/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md deleted file mode 100644 index 75c5723d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/README.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: Overview -sidebar_label: Overview -pagination_next: null -pagination_prev: null -slug: / ---- - -`@typescript-eslint/eslint-plugin` includes over 100 rules that detect best practice violations, bugs, and/or stylistic issues specifically for TypeScript code. All of our rules are listed below. - -:::tip -Instead of enabling rules one by one, we recommend using one of [our pre-defined configs](/users/configs) to enable a large set of recommended rules. -::: - -## Rules - -The rules are listed in alphabetical order. You can optionally filter them based on these categories: - -import RulesTable from "@site/src/components/RulesTable"; - - - -## Filtering - -### Config Group (⚙️) - -"Config Group" refers to the [pre-defined config](/users/configs) that includes the rule. Extending from a configuration preset allow for enabling a large set of recommended rules all at once. - -### Metadata - -- `🔧 fixable` refers to whether the rule contains an [ESLint `--fix` auto-fixer](https://eslint.org/docs/latest/use/command-line-interface#--fix). -- `💡 has suggestions` refers to whether the rule contains an ESLint suggestion fixer. - - Sometimes, it is not safe to automatically fix the code with an auto-fixer. But in these cases, we often have a good guess of what the correct fix should be, and we can provide it as a suggestion to the developer. -- `💭 requires type information` refers to whether the rule requires [typed linting](/getting-started/typed-linting). -- `🧱 extension rule` means that the rule is an extension of an [core ESLint rule](https://eslint.org/docs/latest/rules) (see [Extension Rules](#extension-rules)). -- `💀 deprecated rule` means that the rule should no longer be used and will be removed from the plugin in a future version. - -## Extension Rules - -Some core ESLint rules do not support TypeScript syntax: either they crash, ignore the syntax, or falsely report against it. -In these cases, we create what we call an "extension rule": a rule within our plugin that has the same functionality, but also supports TypeScript. - -Extension rules generally completely replace the base rule from ESLint core. -If the base rule is enabled in a config you extend from, you'll need to disable the base rule: - -```js -module.exports = { - extends: ['eslint:recommended'], - rules: { - // Note: you must disable the base rule as it can report incorrect errors - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - }, -}; -``` - -[Search for `🧱 extension rule`s](?=extension#rules) in this page to see all extension rules. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md deleted file mode 100644 index 49947c33..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/TEMPLATE.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -description: '' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/RULE_NAME_REPLACEME** for documentation. - -## Examples - -To fill out: tell us more about this rule. - - - - -```ts -// To fill out: incorrect code -``` - - - - -```ts -// To fill out: correct code -``` - - - - -## When Not To Use It - -To fill out: why wouldn't you want to use this rule? -For example if this rule requires a feature released in a certain TS version. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx deleted file mode 100644 index 60f62b2f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx +++ /dev/null @@ -1,105 +0,0 @@ ---- -description: 'Require that function overload signatures be consecutive.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/adjacent-overload-signatures** for documentation. - -Function overload signatures represent multiple ways a function can be called, potentially with different return types. -It's typical for an interface or type alias describing a function to place all overload signatures next to each other. -If Signatures placed elsewhere in the type are easier to be missed by future developers reading the code. - -## Examples - - - - -```ts -declare namespace Foo { - export function foo(s: string): void; - export function foo(n: number): void; - export function bar(): void; - export function foo(sn: string | number): void; -} - -type Foo = { - foo(s: string): void; - foo(n: number): void; - bar(): void; - foo(sn: string | number): void; -}; - -interface Foo { - foo(s: string): void; - foo(n: number): void; - bar(): void; - foo(sn: string | number): void; -} - -class Foo { - foo(s: string): void; - foo(n: number): void; - bar(): void {} - foo(sn: string | number): void {} -} - -export function foo(s: string): void; -export function foo(n: number): void; -export function bar(): void; -export function foo(sn: string | number): void; -``` - - - - -```ts -declare namespace Foo { - export function foo(s: string): void; - export function foo(n: number): void; - export function foo(sn: string | number): void; - export function bar(): void; -} - -type Foo = { - foo(s: string): void; - foo(n: number): void; - foo(sn: string | number): void; - bar(): void; -}; - -interface Foo { - foo(s: string): void; - foo(n: number): void; - foo(sn: string | number): void; - bar(): void; -} - -class Foo { - foo(s: string): void; - foo(n: number): void; - foo(sn: string | number): void {} - bar(): void {} -} - -export function bar(): void; -export function foo(s: string): void; -export function foo(n: number): void; -export function foo(sn: string | number): void; -``` - - - - -## When Not To Use It - -It can sometimes be useful to place overload signatures alongside other meaningful parts of a type. -For example, if each of a function's overloads corresponds to a different property, you might wish to put each overloads next to its corresponding property. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`unified-signatures`](./unified-signatures.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx deleted file mode 100644 index d3238025..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/array-type.mdx +++ /dev/null @@ -1,126 +0,0 @@ ---- -description: 'Require consistently using either `T[]` or `Array` for arrays.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/array-type** for documentation. - -TypeScript provides two equivalent ways to define an array type: `T[]` and `Array`. -The two styles are functionally equivalent. -Using the same style consistently across your codebase makes it easier for developers to read and understand array types. - -## Options - -The default config will enforce that all mutable and readonly arrays use the `'array'` syntax. - -### `"array"` - -Always use `T[]` or `readonly T[]` for all array types. - - - - -```ts option='{ "default": "array" }' -const x: Array = ['a', 'b']; -const y: ReadonlyArray = ['a', 'b']; -``` - - - - -```ts option='{ "default": "array" }' -const x: string[] = ['a', 'b']; -const y: readonly string[] = ['a', 'b']; -``` - - - - -### `"generic"` - -Always use `Array`, `ReadonlyArray`, or `Readonly>` for all array types. -`readonly T[]` will be modified to `ReadonlyArray` and `Readonly` will be modified to `Readonly`. - - - - -```ts option='{ "default": "generic" }' -const x: string[] = ['a', 'b']; -const y: readonly string[] = ['a', 'b']; -const z: Readonly = ['a', 'b']; -``` - - - - -```ts option='{ "default": "generic" }' -const x: Array = ['a', 'b']; -const y: ReadonlyArray = ['a', 'b']; -const z: Readonly> = ['a', 'b']; -``` - - - - -### `"array-simple"` - -Use `T[]` or `readonly T[]` for simple types (i.e. types which are just primitive names or type references). -Use `Array` or `ReadonlyArray` for all other types (union types, intersection types, object types, function types, etc). - - - - -```ts option='{ "default": "array-simple" }' -const a: (string | number)[] = ['a', 'b']; -const b: { prop: string }[] = [{ prop: 'a' }]; -const c: (() => void)[] = [() => {}]; -const d: Array = ['a', 'b']; -const e: Array = ['a', 'b']; -const f: ReadonlyArray = ['a', 'b']; -``` - - - - -```ts option='{ "default": "array-simple" }' -const a: Array = ['a', 'b']; -const b: Array<{ prop: string }> = [{ prop: 'a' }]; -const c: Array<() => void> = [() => {}]; -const d: MyType[] = ['a', 'b']; -const e: string[] = ['a', 'b']; -const f: readonly string[] = ['a', 'b']; -``` - - - - -## Combination Matrix - -This matrix lists all possible option combinations and their expected results for different types of Arrays. - -| defaultOption | readonlyOption | Array with simple type | Array with non simple type | Readonly array with simple type | Readonly array with non simple type | -| -------------- | -------------- | ---------------------- | -------------------------- | ------------------------------- | ----------------------------------- | -| `array` | | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `readonly (Foo & Bar)[]` | -| `array` | `array` | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `readonly (Foo & Bar)[]` | -| `array` | `array-simple` | `number[]` | `(Foo & Bar)[]` | `readonly number[]` | `ReadonlyArray` | -| `array` | `generic` | `number[]` | `(Foo & Bar)[]` | `ReadonlyArray` | `ReadonlyArray` | -| `array-simple` | | `number[]` | `Array` | `readonly number[]` | `ReadonlyArray` | -| `array-simple` | `array` | `number[]` | `Array` | `readonly number[]` | `readonly (Foo & Bar)[]` | -| `array-simple` | `array-simple` | `number[]` | `Array` | `readonly number[]` | `ReadonlyArray` | -| `array-simple` | `generic` | `number[]` | `Array` | `ReadonlyArray` | `ReadonlyArray` | -| `generic` | | `Array` | `Array` | `ReadonlyArray` | `ReadonlyArray` | -| `generic` | `array` | `Array` | `Array` | `readonly number[]` | `readonly (Foo & Bar)[]` | -| `generic` | `array-simple` | `Array` | `Array` | `readonly number[]` | `ReadonlyArray` | -| `generic` | `generic` | `Array` | `Array` | `ReadonlyArray` | `ReadonlyArray` | - -## When Not To Use It - -This rule is purely a stylistic rule for maintaining consistency in your project. -You can turn it off if you don't want to keep a consistent style for array types. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx deleted file mode 100644 index 3ad4c18d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/await-thenable.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -description: 'Disallow awaiting a value that is not a Thenable.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/await-thenable** for documentation. - -A "Thenable" value is an object which has a `then` method, such as a Promise. -The `await` keyword is generally used to retrieve the result of calling a Thenable's `then` method. - -If the `await` keyword is used on a value that is not a Thenable, the value is directly resolved immediately. -While doing so is valid JavaScript, it is often a programmer error, such as forgetting to add parenthesis to call a function that returns a Promise. - -## Examples - - - - -```ts -await 'value'; - -const createValue = () => 'value'; -await createValue(); -``` - - - - -```ts -await Promise.resolve('value'); - -const createValue = async () => 'value'; -await createValue(); -``` - - - - -## When Not To Use It - -If you want to allow code to `await` non-Promise values. -For example, if your framework is in transition from one style of asynchronous code to another, it may be useful to include `await`s unnecessarily. -This is generally not preferred but can sometimes be useful for visual consistency. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx deleted file mode 100644 index ca36964e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.mdx +++ /dev/null @@ -1,161 +0,0 @@ ---- -description: 'Disallow `@ts-` comments or require descriptions after directives.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/ban-ts-comment** for documentation. - -TypeScript provides several directive comments that can be used to alter how it processes files. -Using these to suppress TypeScript compiler errors reduces the effectiveness of TypeScript overall. -Instead, it's generally better to correct the types of code, to make directives unnecessary. - -The directive comments supported by TypeScript are: - -```ts -// @ts-expect-error -// @ts-ignore -// @ts-nocheck -// @ts-check -``` - -This rule lets you set which directive comments you want to allow in your codebase. - -## Options - -By default, only `@ts-check` is allowed, as it enables rather than suppresses errors. - -### `ts-expect-error`, `ts-ignore`, `ts-nocheck`, `ts-check` directives - -A value of `true` for a particular directive means that this rule will report if it finds any usage of said directive. - - - - -```ts option='{ "ts-ignore": true }' -if (false) { - // @ts-ignore: Unreachable code error - console.log('hello'); -} -if (false) { - /* @ts-ignore: Unreachable code error */ - console.log('hello'); -} -``` - - - - -```ts option='{ "ts-ignore": true }' -if (false) { - // Compiler warns about unreachable code error - console.log('hello'); -} -``` - - - - -### `allow-with-description` - -A value of `'allow-with-description'` for a particular directive means that this rule will report if it finds a directive that does not have a description following the directive (on the same line). - -For example, with `{ 'ts-expect-error': 'allow-with-description' }`: - - - - -```ts option='{ "ts-expect-error": "allow-with-description" }' -if (false) { - // @ts-expect-error - console.log('hello'); -} -if (false) { - /* @ts-expect-error */ - console.log('hello'); -} -``` - - - - -```ts option='{ "ts-expect-error": "allow-with-description" }' -if (false) { - // @ts-expect-error: Unreachable code error - console.log('hello'); -} -if (false) { - /* @ts-expect-error: Unreachable code error */ - console.log('hello'); -} -``` - - - -### `descriptionFormat` - -For each directive type, you can specify a custom format in the form of a regular expression. Only description that matches the pattern will be allowed. - -For example, with `{ 'ts-expect-error': { descriptionFormat: '^: TS\\d+ because .+$' } }`: - - - - -{/* prettier-ignore */} -```ts option='{ "ts-expect-error": { "descriptionFormat": "^: TS\\\\d+ because .+$" } }' -// @ts-expect-error: the library definition is wrong -const a = doSomething('hello'); -``` - - - - -{/* prettier-ignore */} -```ts option='{ "ts-expect-error": { "descriptionFormat": "^: TS\\\\d+ because .+$" } }' -// @ts-expect-error: TS1234 because the library definition is wrong -const a = doSomething('hello'); -``` - - - - -### `minimumDescriptionLength` - -Use `minimumDescriptionLength` to set a minimum length for descriptions when using the `allow-with-description` option for a directive. - -For example, with `{ 'ts-expect-error': 'allow-with-description', minimumDescriptionLength: 10 }` the following pattern is: - - - - -```ts option='{ "ts-expect-error": "allow-with-description", "minimumDescriptionLength": 10 }' -if (false) { - // @ts-expect-error: TODO - console.log('hello'); -} -``` - - - - -```ts option='{ "ts-expect-error": "allow-with-description", "minimumDescriptionLength": 10 }' -if (false) { - // @ts-expect-error The rationale for this override is described in issue #1337 on GitLab - console.log('hello'); -} -``` - - - - -## When Not To Use It - -If your project or its dependencies were not architected with strong type safety in mind, it can be difficult to always adhere to proper TypeScript semantics. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- TypeScript [Type Checking JavaScript Files](https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx deleted file mode 100644 index c6aa3b9b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.mdx +++ /dev/null @@ -1,45 +0,0 @@ ---- -description: 'Disallow `// tslint:` comments.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/ban-tslint-comment** for documentation. - -Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations (e.g. `// tslint:disable`). - -> See the [TSLint rule flags docs](https://palantir.github.io/tslint/usage/rule-flags) for reference. - -## Examples - - - - -```ts -/* tslint:disable */ -/* tslint:enable */ -/* tslint:disable:rule1 rule2 rule3... */ -/* tslint:enable:rule1 rule2 rule3... */ -// tslint:disable-next-line -someCode(); // tslint:disable-line -// tslint:disable-next-line:rule1 rule2 rule3... -``` - - - - -```ts -// This is a comment that just happens to mention tslint -/* This is a multiline comment that just happens to mention tslint */ -someCode(); // This is a comment that just happens to mention tslint -``` - - - - -## When Not To Use It - -If you are still using TSLint alongside ESLint. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md deleted file mode 100644 index 5145957d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -The old `ban-types` rule encompassed multiple areas of functionality, and so has been split into several rules. - -**[`no-restricted-types`](./no-restricted-types.mdx)** is the new rule for banning a configurable list of type names. -It has no options enabled by default and is akin to rules like [`no-restricted-globals`](https://eslint.org/docs/latest/rules/no-restricted-globals), [`no-restricted-properties`](https://eslint.org/docs/latest/rules/no-restricted-properties), and [`no-restricted-syntax`](https://eslint.org/docs/latest/rules/no-restricted-syntax). - -The default options from `ban-types` are now covered by: - -- **[`no-empty-object-type`](./no-empty-object-type.mdx)**: banning the built-in `{}` type in confusing locations -- **[`no-unsafe-function-type`](./no-unsafe-function-type.mdx)**: banning the built-in `Function` -- **[`no-wrapper-object-types`](./no-wrapper-object-types.mdx)**: banning `Object` and built-in class wrappers such as `Number` - -`ban-types` itself is removed in typescript-eslint v8. -See [Announcing typescript-eslint v8 Beta](/blog/announcing-typescript-eslint-v8-beta) for more details. -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/block-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md deleted file mode 100644 index 5abacea9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been deprecated in favour of the [`naming-convention`](./naming-convention.mdx) rule. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx deleted file mode 100644 index d980d3b9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.mdx +++ /dev/null @@ -1,112 +0,0 @@ ---- -description: 'Enforce that literals on classes are exposed in a consistent style.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/class-literal-property-style** for documentation. - -Some TypeScript applications store literal values on classes using fields with the `readonly` modifier to prevent them from being reassigned. -When writing TypeScript libraries that could be used by JavaScript users, however, it's typically safer to expose these literals using `getter`s, since the `readonly` modifier is enforced at compile type. - -This rule aims to ensure that literals exposed by classes are done so consistently, in one of the two style described above. -By default this rule prefers the `fields` style as it means JS doesn't have to setup & teardown a function closure. - -## Options - -:::note -This rule only checks for constant _literal_ values (string, template string, number, bigint, boolean, regexp, null). It does not check objects or arrays, because a readonly field behaves differently to a getter in those cases. It also does not check functions, as it is a common pattern to use readonly fields with arrow function values as auto-bound methods. -This is because these types can be mutated and carry with them more complex implications about their usage. -::: - -### `"fields"` - -This style checks for any getter methods that return literal values, and requires them to be defined using fields with the `readonly` modifier instead. - -Examples of code with the `fields` style: - - - - -```ts option='"fields"' -class Mx { - public static get myField1() { - return 1; - } - - private get ['myField2']() { - return 'hello world'; - } -} -``` - - - - -```ts option='"fields"' -class Mx { - public readonly myField1 = 1; - - // not a literal - public readonly myField2 = [1, 2, 3]; - - private readonly ['myField3'] = 'hello world'; - - public get myField4() { - return `hello from ${window.location.href}`; - } -} -``` - - - - -### `"getters"` - -This style checks for any `readonly` fields that are assigned literal values, and requires them to be defined as getters instead. -This style pairs well with the [`@typescript-eslint/prefer-readonly`](prefer-readonly.mdx) rule, -as it will identify fields that can be `readonly`, and thus should be made into getters. - -Examples of code with the `getters` style: - - - - -```ts option='"getters"' -class Mx { - readonly myField1 = 1; - readonly myField2 = `hello world`; - private readonly myField3 = 'hello world'; -} -``` - - - - -```ts option='"getters"' -class Mx { - // no readonly modifier - public myField1 = 'hello'; - - // not a literal - public readonly myField2 = [1, 2, 3]; - - public static get myField3() { - return 1; - } - - private get ['myField4']() { - return 'hello world'; - } -} -``` - - - - -## When Not To Use It - -When you have no strong preference, or do not wish to enforce a particular style for how literal values are exposed by your classes. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx deleted file mode 100644 index dc48c042..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -description: 'Enforce that class methods utilize `this`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/class-methods-use-this** for documentation. - -This rule extends the base [`eslint/class-methods-use-this`](https://eslint.org/docs/rules/class-methods-use-this) rule. -It adds support for ignoring `override` methods or methods on classes that implement an interface. - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseClassMethodsUseThisOptions { - ignoreOverrideMethods?: boolean; - ignoreClassesThatImplementAnInterface?: boolean | 'public-fields'; -} - -const defaultOptions: Options = { - ...baseClassMethodsUseThisOptions, - ignoreOverrideMethods: false, - ignoreClassesThatImplementAnInterface: false, -}; -``` - -### `ignoreOverrideMethods` - -Makes the rule ignore any class member explicitly marked with `override`. - -Example of a correct code when `ignoreOverrideMethods` is set to `true`: - -```ts option='{ "ignoreOverrideMethods": true }' showPlaygroundButton -class X { - override method() {} - override property = () => {}; -} -``` - -### `ignoreClassesThatImplementAnInterface` - -Makes the rule ignore class members that are defined within a class that `implements` a type. -If specified, it can be either: - -- `true`: Ignore all classes that implement an interface -- `'public-fields'`: Ignore only the public fields of classes that implement an interface - -It's important to note that this option does not only apply to members defined in the interface as that would require type information. - -#### `true` - -Example of correct code when `ignoreClassesThatImplementAnInterface` is set to `true`: - -```ts option='{ "ignoreClassesThatImplementAnInterface": true }' showPlaygroundButton -class X implements Y { - method() {} - property = () => {}; -} -``` - -#### `'public-fields'` - -Example of incorrect code when `ignoreClassesThatImplementAnInterface` is set to `'public-fields'`: - - - - -```ts option='{ "ignoreClassesThatImplementAnInterface": "public-fields" }' -class X implements Y { - method() {} - property = () => {}; - - private privateMethod() {} - private privateProperty = () => {}; - - protected privateMethod() {} - protected privateProperty = () => {}; -} -``` - - - - -```ts option='{ "ignoreClassesThatImplementAnInterface": "public-fields" }' -class X implements Y { - method() {} - property = () => {}; -} -``` - - - - -## When Not To Use It - -If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx deleted file mode 100644 index 486147a0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-generic-constructors.mdx +++ /dev/null @@ -1,85 +0,0 @@ ---- -description: 'Enforce specifying generic type arguments on type annotation or constructor name of a constructor call.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-generic-constructors** for documentation. - -When constructing a generic class, you can specify the type arguments on either the left-hand side (as a type annotation) or the right-hand side (as part of the constructor call): - -```ts -// Left-hand side -const map: Map = new Map(); - -// Right-hand side -const map = new Map(); -``` - -This rule ensures that type arguments appear consistently on one side of the declaration. -Keeping to one side consistently improve code readability. - -> The rule never reports when there are type parameters on both sides, or neither sides of the declaration. -> It also doesn't report if the names of the type annotation and the constructor don't match. - -## Options - -- `constructor` _(default)_: type arguments that **only** appear on the type annotation are disallowed. -- `type-annotation`: type arguments that **only** appear on the constructor are disallowed. - -### `constructor` - - - - -```ts option='"constructor"' -const map: Map = new Map(); -const set: Set = new Set(); -``` - - - - -```ts option='"constructor"' -const map = new Map(); -const map: Map = new MyMap(); -const set = new Set(); -const set = new Set(); -const set: Set = new Set(); -``` - - - - -### `type-annotation` - - - - -```ts option='"type-annotation"' -const map = new Map(); -const set = new Set(); -``` - - - - -```ts option='"type-annotation"' -const map: Map = new Map(); -const set: Set = new Set(); -const set = new Set(); -const set: Set = new Set(); -``` - - - - -## When Not To Use It - -You can turn this rule off if you don't want to enforce one kind of generic constructor style over the other. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx deleted file mode 100644 index 7ac21461..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx +++ /dev/null @@ -1,89 +0,0 @@ ---- -description: 'Require or disallow the `Record` type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-indexed-object-style** for documentation. - -TypeScript supports defining arbitrary object keys using an index signature. TypeScript also has a builtin type named `Record` to create an empty object defining only an index signature. For example, the following types are equal: - -```ts -interface Foo { - [key: string]: unknown; -} - -type Foo = { - [key: string]: unknown; -}; - -type Foo = Record; -``` - -Using one declaration form consistently improves code readability. - -## Options - -- `"record"` _(default)_: only allow the `Record` type. -- `"index-signature"`: only allow index signatures. - -### `record` - - - - -```ts option='"record"' -interface Foo { - [key: string]: unknown; -} - -type Foo = { - [key: string]: unknown; -}; -``` - - - - -```ts option='"record"' -type Foo = Record; -``` - - - - -### `index-signature` - - - - -```ts option='"index-signature"' -type Foo = Record; -``` - - - - -```ts option='"index-signature"' -interface Foo { - [key: string]: unknown; -} - -type Foo = { - [key: string]: unknown; -}; -``` - - - - -## When Not To Use It - -This rule is purely a stylistic rule for maintaining consistency in your project. -You can turn it off if you don't want to keep a consistent style for indexed object types. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx deleted file mode 100644 index 0f56bddb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-return.mdx +++ /dev/null @@ -1,52 +0,0 @@ ---- -description: 'Require `return` statements to either always or never specify values.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-return** for documentation. - -This rule extends the base [`eslint/consistent-return`](https://eslint.org/docs/rules/consistent-return) rule. -This version adds support for functions that return `void` or `Promise`. - -:::danger warning -If possible, it is recommended to use tsconfig's `noImplicitReturns` option rather than this rule. `noImplicitReturns` is powered by TS's type information and control-flow analysis so it has better coverage than this rule. -::: - - - - -```ts -function foo(): undefined {} -function bar(flag: boolean): undefined { - if (flag) return foo(); - return; -} - -async function baz(flag: boolean): Promise { - if (flag) return; - return foo(); -} -``` - - - - -```ts -function foo(): void {} -function bar(flag: boolean): void { - if (flag) return foo(); - return; -} - -async function baz(flag: boolean): Promise { - if (flag) return 42; - return; -} -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx deleted file mode 100644 index 225c35e9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.mdx +++ /dev/null @@ -1,118 +0,0 @@ ---- -description: 'Enforce consistent usage of type assertions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-type-assertions** for documentation. - -TypeScript provides two syntaxes for "type assertions": - -- Angle brackets: `value` -- As: `value as Type` - -This rule aims to standardize the use of type assertion style across the codebase. -Keeping to one syntax consistently helps with code readability. - -:::note -Type assertions are also commonly referred as "type casting" in TypeScript. -However, that term is technically slightly different to what is understood by type casting in other languages. -Type assertions are a way to say to the TypeScript compiler, _"I know better than you, it's actually this different type!"_. -::: - -[`const` assertions](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) are always allowed by this rule. -Examples of them include `let x = "hello" as const;` and `let x = "hello";`. - -## Options - -### `assertionStyle` - -This option defines the expected assertion style. Valid values for `assertionStyle` are: - -- `as` will enforce that you always use `... as foo`. -- `angle-bracket` will enforce that you always use `...` -- `never` will enforce that you do not do any type assertions. - -Most codebases will want to enforce not using `angle-bracket` style because it conflicts with JSX syntax, and is confusing when paired with generic syntax. - -Some codebases like to go for an extra level of type safety, and ban assertions altogether via the `never` option. - -### `objectLiteralTypeAssertions` - -Always prefer `const x: T = { ... };` to `const x = { ... } as T;` (or similar with angle brackets). The type assertion in the latter case is either unnecessary or will probably hide an error. - -The compiler will warn for excess properties with this syntax, but not missing _required_ fields. For example: `const x: { foo: number } = {};` will fail to compile, but `const x = {} as { foo: number }` will succeed. - -The const assertion `const x = { foo: 1 } as const`, introduced in TypeScript 3.4, is considered beneficial and is ignored by this option. - -Assertions to `any` are also ignored by this option. - -Examples of code for `{ assertionStyle: 'as', objectLiteralTypeAssertions: 'never' }`: - - - - -```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "never" }' -const x = { foo: 1 } as T; - -function bar() { - return { foo: 1 } as T; -} -``` - - - - -```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "never" }' -const x: T = { foo: 1 }; -const y = { foo: 1 } as any; -const z = { foo: 1 } as unknown; - -function bar(): T { - return { foo: 1 }; -} -``` - - - - -Examples of code for `{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }`: - - - - -```ts option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "allow-as-parameter" }' -const x = { foo: 1 } as T; - -function bar() { - return { foo: 1 } as T; -} -``` - - - - -```tsx option='{ "assertionStyle": "as", "objectLiteralTypeAssertions": "allow-as-parameter" }' -const x: T = { foo: 1 }; -const y = { foo: 1 } as any; -const z = { foo: 1 } as unknown; -bar({ foo: 1 } as T); -new Clazz({ foo: 1 } as T); -function bar() { - throw { foo: 1 } as Foo; -} -const foo = ; -``` - - - - -## When Not To Use It - -If you do not want to enforce consistent type assertions. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx deleted file mode 100644 index 353bd1cf..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.mdx +++ /dev/null @@ -1,90 +0,0 @@ ---- -description: 'Enforce type definitions to consistently use either `interface` or `type`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-type-definitions** for documentation. - -TypeScript provides two common ways to define an object type: `interface` and `type`. - -```ts -// type alias -type T1 = { - a: string; - b: number; -}; - -// interface keyword -interface T2 { - a: string; - b: number; -} -``` - -The two are generally very similar, and can often be used interchangeably. -Using the same type declaration style consistently helps with code readability. - -## Options - -- `"interface"` _(default)_: enforce using `interface`s for object type definitions. -- `"type"`: enforce using `type`s for object type definitions. - -### `interface` - - - - -```ts option='"interface"' -type T = { x: number }; -``` - - - - -```ts option='"interface"' -type T = string; -type Foo = string | {}; - -interface T { - x: number; -} -``` - - - - -### `type` - - - - -```ts option='"type"' -interface T { - x: number; -} -``` - - - - -```ts option='"type"' -type T = { x: number }; -``` - - - - -## When Not To Use It - -If you specifically want to use an interface or type literal for stylistic reasons, you can avoid this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. - -There are also subtle differences between `Record` and `interface` that can be difficult to catch statically. -For example, if your project is a dependency of another project that relies on a specific type definition style, this rule may be counterproductive. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx deleted file mode 100644 index 7c699d10..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-exports.mdx +++ /dev/null @@ -1,96 +0,0 @@ ---- -description: 'Enforce consistent usage of type exports.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-type-exports** for documentation. - -TypeScript allows specifying a `type` keyword on exports to indicate that the export exists only in the type system, not at runtime. -This allows transpilers to drop exports without knowing the types of the dependencies. - -> See [Blog > Consistent Type Exports and Imports: Why and How](/blog/consistent-type-imports-and-exports-why-and-how) for more details. - -## Examples - - - - -```ts -interface ButtonProps { - onClick: () => void; -} - -class Button implements ButtonProps { - onClick = () => console.log('button!'); -} - -export { Button, ButtonProps }; -``` - - - - -```ts -interface ButtonProps { - onClick: () => void; -} - -class Button implements ButtonProps { - onClick = () => console.log('button!'); -} - -export { Button }; -export type { ButtonProps }; -``` - - - - -## Options - -### `fixMixedExportsWithInlineTypeSpecifier` - -When this is set to true, the rule will autofix "mixed" export cases using TS 4.5's "inline type specifier". -If you are using a TypeScript version less than 4.5, then you will not be able to use this option. - -For example the following code: - -```ts -const x = 1; -type T = number; - -export { x, T }; -``` - -With `{fixMixedExportsWithInlineTypeSpecifier: true}` will be fixed to: - -```ts -const x = 1; -type T = number; - -export { x, type T }; -``` - -With `{fixMixedExportsWithInlineTypeSpecifier: false}` will be fixed to: - -```ts -const x = 1; -type T = number; - -export type { T }; -export { x }; -``` - -## When Not To Use It - -If you use `--isolatedModules` the compiler would error if a type is not re-exported using `export type`. -This rule may be less useful in those cases. - -If you specifically want to use both export kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx deleted file mode 100644 index 8df00017..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.mdx +++ /dev/null @@ -1,136 +0,0 @@ ---- -description: 'Enforce consistent usage of type imports.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/consistent-type-imports** for documentation. - -TypeScript allows specifying a `type` keyword on imports to indicate that the export exists only in the type system, not at runtime. -This allows transpilers to drop imports without knowing the types of the dependencies. - -> See [Blog > Consistent Type Exports and Imports: Why and How](/blog/consistent-type-imports-and-exports-why-and-how) for more details. - -## Options - -### `prefer` - -This option defines the expected import kind for type-only imports. Valid values for `prefer` are: - -- `type-imports` will enforce that you always use `import type Foo from '...'` except referenced by metadata of decorators. It is the default. -- `no-type-imports` will enforce that you always use `import Foo from '...'`. - -Examples of **correct** code with `{prefer: 'type-imports'}`, and **incorrect** code with `{prefer: 'no-type-imports'}`. - -```ts option='{ "prefer": "type-imports" }' showPlaygroundButton -import type { Foo } from 'Foo'; -import type Bar from 'Bar'; -type T = Foo; -const x: Bar = 1; -``` - -Examples of **incorrect** code with `{prefer: 'type-imports'}`, and **correct** code with `{prefer: 'no-type-imports'}`. - -```ts option='{ "prefer": "type-imports" }' showPlaygroundButton -import { Foo } from 'Foo'; -import Bar from 'Bar'; -type T = Foo; -const x: Bar = 1; -``` - -### `fixStyle` - -This option defines the expected type modifier to be added when an import is detected as used only in the type position. Valid values for `fixStyle` are: - -- `separate-type-imports` will add the type keyword after the import keyword `import type { A } from '...'`. It is the default. -- `inline-type-imports` will inline the type keyword `import { type A } from '...'` and is only available in TypeScript 4.5 and onwards. See [documentation here](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names 'TypeScript 4.5 documentation on type modifiers and import names'). - - - - -```ts -import { Foo } from 'Foo'; -import Bar from 'Bar'; -type T = Foo; -const x: Bar = 1; -``` - - - - -```ts option='{ "fixStyle": "separate-type-imports" }' -import type { Foo } from 'Foo'; -import type Bar from 'Bar'; -type T = Foo; -const x: Bar = 1; -``` - - - - -```ts option='{ "fixStyle": "inline-type-imports" }' -import { type Foo } from 'Foo'; -import type Bar from 'Bar'; -type T = Foo; -const x: Bar = 1; -``` - - - - -### `disallowTypeAnnotations` - -If `true`, type imports in type annotations (`import()`) are not allowed. -Default is `true`. - -Examples of **incorrect** code with `{disallowTypeAnnotations: true}`: - -```ts option='{ "disallowTypeAnnotations": true }' showPlaygroundButton -type T = import('Foo').Foo; -const x: import('Bar') = 1; -``` - -## Caveat: `@decorators` + `experimentalDecorators: true` + `emitDecoratorMetadata: true` - -:::note -If you are using `experimentalDecorators: false` (eg [TypeScript v5.0's stable decorators](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#decorators)) then the rule will always report errors as expected. -This caveat **only** applies to `experimentalDecorators: true` -::: - -The rule will **_not_** report any errors in files _that contain decorators_ when **both** `experimentalDecorators` and `emitDecoratorMetadata` are turned on. - -> See [Blog > Changes to consistent-type-imports when used with legacy decorators and decorator metadata](/blog/changes-to-consistent-type-imports-with-decorators) for more details. - -If you are using [type-aware linting](https://typescript-eslint.io/linting/typed-linting) then we will automatically infer your setup from your tsconfig and you should not need to configure anything. -Otherwise you can explicitly tell our tooling to analyze your code as if the compiler option was turned on by setting both [`parserOptions.emitDecoratorMetadata = true`](https://typescript-eslint.io/packages/parser/#emitdecoratormetadata) and [`parserOptions.experimentalDecorators = true`](https://typescript-eslint.io/packages/parser/#experimentaldecorators). - -## Comparison with `importsNotUsedAsValues` / `verbatimModuleSyntax` - -[`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) was introduced in TypeScript v5.0 (as a replacement for `importsNotUsedAsValues`). -This rule and `verbatimModuleSyntax` _mostly_ behave in the same way. -There are a few behavior differences: -| Situation | `consistent-type-imports` (ESLint) | `verbatimModuleSyntax` (TypeScript) | -| -------------------------------------------------------------- | --------------------------------------------------------- | ----------------------------------------------------------- | -| Unused imports | Ignored (consider using [`@typescript-eslint/no-unused-vars`](/rules/no-unused-vars)) | Type error | -| Usage with `emitDecoratorMetadata` & `experimentalDecorations` | Ignores files that contain decorators | Reports on files that contain decorators | -| Failures detected | Does not fail `tsc` build; can be auto-fixed with `--fix` | Fails `tsc` build; cannot be auto-fixed on the command-line | -| `import { type T } from 'T';` | TypeScript will emit nothing (it "elides" the import) | TypeScript emits `import {} from 'T'` | - -Because there are some differences, using both this rule and `verbatimModuleSyntax` at the same time can lead to conflicting errors. -As such we recommend that you only ever use one _or_ the other -- never both. - -## When Not To Use It - -If you specifically want to use both import kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. - -## Related To - -- [`no-import-type-side-effects`](./no-import-type-side-effects.mdx) -- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md) -- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx deleted file mode 100644 index 38527abf..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: 'Enforce default parameters to be last.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/default-param-last** for documentation. - -This rule extends the base [`eslint/default-param-last`](https://eslint.org/docs/rules/default-param-last) rule. -It adds support for optional parameters. - - - - -```ts -function f(a = 0, b: number) {} -function f(a: number, b = 0, c: number) {} -function f(a: number, b?: number, c: number) {} -class Foo { - constructor( - public a = 10, - private b: number, - ) {} -} -class Foo { - constructor( - public a?: number, - private b: number, - ) {} -} -``` - - - - -```ts -function f(a = 0) {} -function f(a: number, b = 0) {} -function f(a: number, b?: number) {} -function f(a: number, b?: number, c = 0) {} -function f(a: number, b = 0, c?: number) {} -class Foo { - constructor( - public a, - private b = 0, - ) {} -} -class Foo { - constructor( - public a, - private b?: number, - ) {} -} -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx deleted file mode 100644 index ba23d98b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.mdx +++ /dev/null @@ -1,85 +0,0 @@ ---- -description: 'Enforce dot notation whenever possible.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/dot-notation** for documentation. - -This rule extends the base [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation) rule. -It adds: - -- Support for optionally ignoring computed `private` and/or `protected` member access. -- Compatibility with TypeScript's `noPropertyAccessFromIndexSignature` option. - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseDotNotationOptions { - allowPrivateClassPropertyAccess?: boolean; - allowProtectedClassPropertyAccess?: boolean; - allowIndexSignaturePropertyAccess?: boolean; -} - -const defaultOptions: Options = { - ...baseDotNotationDefaultOptions, - allowPrivateClassPropertyAccess: false, - allowProtectedClassPropertyAccess: false, - allowIndexSignaturePropertyAccess: false, -}; -``` - -If the TypeScript compiler option `noPropertyAccessFromIndexSignature` is set to `true`, then this rule always allows the use of square bracket notation to access properties of types that have a `string` index signature, even if `allowIndexSignaturePropertyAccess` is `false`. - -### `allowPrivateClassPropertyAccess` - -Example of a correct code when `allowPrivateClassPropertyAccess` is set to `true`: - -```ts option='{ "allowPrivateClassPropertyAccess": true }' showPlaygroundButton -class X { - private priv_prop = 123; -} - -const x = new X(); -x['priv_prop'] = 123; -``` - -### `allowProtectedClassPropertyAccess` - -Example of a correct code when `allowProtectedClassPropertyAccess` is set to `true`: - -```ts option='{ "allowProtectedClassPropertyAccess": true }' showPlaygroundButton -class X { - protected protected_prop = 123; -} - -const x = new X(); -x['protected_prop'] = 123; -``` - -### `allowIndexSignaturePropertyAccess` - -Example of correct code when `allowIndexSignaturePropertyAccess` is set to `true`: - -```ts option='{ "allowIndexSignaturePropertyAccess": true }' showPlaygroundButton -class X { - [key: string]: number; -} - -const x = new X(); -x['hello'] = 123; -``` - -If the TypeScript compiler option `noPropertyAccessFromIndexSignature` is set to `true`, then the above code is always allowed, even if `allowIndexSignaturePropertyAccess` is `false`. - -## When Not To Use It - -If you specifically want to use both member access kinds for stylistic reasons, or don't wish to enforce one style over the other, you can avoid this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx deleted file mode 100644 index f664314c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.mdx +++ /dev/null @@ -1,347 +0,0 @@ ---- -description: 'Require explicit return types on functions and class methods.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/explicit-function-return-type** for documentation. - -Functions in TypeScript often don't need to be given an explicit return type annotation. -Leaving off the return type is less code to read or write and allows the compiler to infer it from the contents of the function. - -However, explicit return types do make it visually more clear what type is returned by a function. -They can also speed up TypeScript type checking performance in large codebases with many large functions. - -This rule enforces that functions do have an explicit return type annotation. - -## Examples - - - - -```ts -// Should indicate that no value is returned (void) -function test() { - return; -} - -// Should indicate that a number is returned -var fn = function () { - return 1; -}; - -// Should indicate that a string is returned -var arrowFn = () => 'test'; - -class Test { - // Should indicate that no value is returned (void) - method() { - return; - } -} -``` - - - - -```ts -// No return value should be expected (void) -function test(): void { - return; -} - -// A return value of type number -var fn = function (): number { - return 1; -}; - -// A return value of type string -var arrowFn = (): string => 'test'; - -class Test { - // No return value should be expected (void) - method(): void { - return; - } -} -``` - - - - -## Options - -### Configuring in a mixed JS/TS codebase - -If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. - -```jsonc -{ - "rules": { - // disable the rule for all files - "@typescript-eslint/explicit-function-return-type": "off", - }, - "overrides": [ - { - // enable the rule specifically for TypeScript files - "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], - "rules": { - "@typescript-eslint/explicit-function-return-type": "error", - }, - }, - ], -} -``` - -### `allowExpressions` - -Examples of code for this rule with `{ allowExpressions: true }`: - - - - -```ts option='{ "allowExpressions": true }' -function test() {} - -const fn = () => {}; - -export default () => {}; -``` - - - - -```ts option='{ "allowExpressions": true }' -node.addEventListener('click', () => {}); - -node.addEventListener('click', function () {}); - -const foo = arr.map(i => i * i); -``` - - - - -### `allowTypedFunctionExpressions` - -Examples of code for this rule with `{ allowTypedFunctionExpressions: true }`: - - - - -```ts option='{ "allowTypedFunctionExpressions": true }' -let arrowFn = () => 'test'; - -let funcExpr = function () { - return 'test'; -}; - -let objectProp = { - foo: () => 1, -}; -``` - - - - -```ts option='{ "allowTypedFunctionExpressions": true }' -type FuncType = () => string; - -let arrowFn: FuncType = () => 'test'; - -let funcExpr: FuncType = function () { - return 'test'; -}; - -let asTyped = (() => '') as () => string; -let castTyped = <() => string>(() => ''); - -interface ObjectType { - foo(): number; -} -let objectProp: ObjectType = { - foo: () => 1, -}; -let objectPropAs = { - foo: () => 1, -} as ObjectType; -let objectPropCast = { - foo: () => 1, -}; - -declare function functionWithArg(arg: () => number); -functionWithArg(() => 1); - -declare function functionWithObjectArg(arg: { method: () => number }); -functionWithObjectArg({ - method() { - return 1; - }, -}); -``` - - - - -### `allowHigherOrderFunctions` - -Examples of code for this rule with `{ allowHigherOrderFunctions: true }`: - - - - -```ts option='{ "allowHigherOrderFunctions": true }' -var arrowFn = () => () => {}; - -function fn() { - return function () {}; -} -``` - - - - -```ts option='{ "allowHigherOrderFunctions": true }' -var arrowFn = () => (): void => {}; - -function fn() { - return function (): void {}; -} -``` - - - - -### `allowDirectConstAssertionInArrowFunctions` - -Examples of code for this rule with `{ allowDirectConstAssertionInArrowFunctions: true }`: - - - - -```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' -const func = (value: number) => ({ type: 'X', value }) as any; -const func = (value: number) => ({ type: 'X', value }) as Action; -``` - - - - -```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' -const func = (value: number) => ({ foo: 'bar', value }) as const; -const func = () => x as const; -``` - - - - -### `allowConciseArrowFunctionExpressionsStartingWithVoid` - -Examples of code for this rule with `{ allowConciseArrowFunctionExpressionsStartingWithVoid: true }`: - - - - -```ts option='{ "allowConciseArrowFunctionExpressionsStartingWithVoid": true }' -var join = (a: string, b: string) => `${a}${b}`; - -const log = (message: string) => { - console.log(message); -}; -``` - - - - -```ts option='{ "allowConciseArrowFunctionExpressionsStartingWithVoid": true }' -var log = (message: string) => void console.log(message); -``` - - - - -### `allowFunctionsWithoutTypeParameters` - -Examples of code for this rule with `{ allowFunctionsWithoutTypeParameters: true }`: - - - - -```ts option='{ "allowFunctionsWithoutTypeParameters": true }' -function foo(t: T) { - return t; -} - -const bar = (t: T) => t; -``` - - - - -```ts option='{ "allowFunctionsWithoutTypeParameters": true }' -function foo(t: T): T { - return t; -} - -const bar = (t: T): T => t; - -function allowedFunction(x: string) { - return x; -} - -const allowedArrow = (x: string) => x; -``` - - - - -### `allowedNames` - -You may pass function/method names you would like this rule to ignore, like so: - -```json -{ - "@typescript-eslint/explicit-function-return-type": [ - "error", - { - "allowedNames": ["ignoredFunctionName", "ignoredMethodName"] - } - ] -} -``` - -### `allowIIFEs` - -Examples of code for this rule with `{ allowIIFEs: true }`: - - - - -```ts option='{ "allowIIFEs": true }' -var func = () => 'foo'; -``` - - - - -```ts option='{ "allowIIFEs": true }' -var foo = (() => 'foo')(); - -var bar = (function () { - return 'bar'; -})(); -``` - - - - -## When Not To Use It - -If you don't find the added cost of explicitly writing function return types to be worth the visual clarity, or your project is not large enough for it to be a factor in type checking performance, then you will not need this rule. - -## Further Reading - -- TypeScript [Functions](https://www.typescriptlang.org/docs/handbook/functions.html#function-types) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx deleted file mode 100644 index 59eaa315..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.mdx +++ /dev/null @@ -1,347 +0,0 @@ ---- -description: 'Require explicit accessibility modifiers on class properties and methods.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/explicit-member-accessibility** for documentation. - -TypeScript allows placing explicit `public`, `protected`, and `private` accessibility modifiers in front of class members. -The modifiers exist solely in the type system and just serve to describe who is allowed to access those members. - -Leaving off accessibility modifiers makes for less code to read and write. -Members are `public` by default. - -However, adding in explicit accessibility modifiers can be helpful in codebases with many classes for enforcing proper privacy of members. -Some developers also find it preferable for code readability to keep member publicity explicit. - -## Examples - -This rule aims to make code more readable and explicit about who can use -which properties. - -## Options - -### Configuring in a mixed JS/TS codebase - -If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. - -```jsonc -{ - "rules": { - // disable the rule for all files - "@typescript-eslint/explicit-member-accessibility": "off", - }, - "overrides": [ - { - // enable the rule specifically for TypeScript files - "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], - "rules": { - "@typescript-eslint/explicit-member-accessibility": "error", - }, - }, - ], -} -``` - -### `accessibility` - -This rule in its default state requires no configuration and will enforce that every class member has an accessibility modifier. If you would like to allow for some implicit public members then you have the following options: - -```jsonc -{ - "accessibility": "explicit", - "overrides": { - "accessors": "explicit", - "constructors": "no-public", - "methods": "explicit", - "properties": "off", - "parameterProperties": "explicit", - }, -} -``` - -Note the above is an example of a possible configuration you could use - it is not the default configuration. - -The following patterns are considered incorrect code if no options are provided: - -```ts showPlaygroundButton -class Animal { - constructor(name) { - // No accessibility modifier - this.animalName = name; - } - animalName: string; // No accessibility modifier - get name(): string { - // No accessibility modifier - return this.animalName; - } - set name(value: string) { - // No accessibility modifier - this.animalName = value; - } - walk() { - // method - } -} -``` - -The following patterns are considered correct with the default options `{ accessibility: 'explicit' }`: - -```ts option='{ "accessibility": "explicit" }' showPlaygroundButton -class Animal { - public constructor( - public breed, - name, - ) { - // Parameter property and constructor - this.animalName = name; - } - private animalName: string; // Property - get name(): string { - // get accessor - return this.animalName; - } - set name(value: string) { - // set accessor - this.animalName = value; - } - public walk() { - // method - } -} -``` - -The following patterns are considered incorrect with the accessibility set to **no-public** `[{ accessibility: 'no-public' }]`: - -```ts option='{ "accessibility": "no-public" }' showPlaygroundButton -class Animal { - public constructor( - public breed, - name, - ) { - // Parameter property and constructor - this.animalName = name; - } - public animalName: string; // Property - public get name(): string { - // get accessor - return this.animalName; - } - public set name(value: string) { - // set accessor - this.animalName = value; - } - public walk() { - // method - } -} -``` - -The following patterns are considered correct with the accessibility set to **no-public** `[{ accessibility: 'no-public' }]`: - -```ts option='{ "accessibility": "no-public" }' showPlaygroundButton -class Animal { - constructor( - protected breed, - name, - ) { - // Parameter property and constructor - this.name = name; - } - private animalName: string; // Property - get name(): string { - // get accessor - return this.animalName; - } - private set name(value: string) { - // set accessor - this.animalName = value; - } - protected walk() { - // method - } -} -``` - -### `overrides` - -There are three ways in which an override can be used. - -- To disallow the use of public on a given member. -- To enforce explicit member accessibility when the root has allowed implicit public accessibility -- To disable any checks on given member type - -#### Disallow the use of public on a given member - -e.g. `[ { overrides: { constructors: 'no-public' } } ]` - -The following patterns are considered incorrect with the example override - -```ts option='{ "overrides": { "constructors": "no-public" } }' showPlaygroundButton -class Animal { - public constructor(protected animalName) {} - public get name() { - return this.animalName; - } -} -``` - -The following patterns are considered correct with the example override - -```ts option='{ "overrides": { "constructors": "no-public" } }' showPlaygroundButton -class Animal { - constructor(protected animalName) {} - public get name() { - return this.animalName; - } -} -``` - -#### Require explicit accessibility for a given member - -e.g. `[ { accessibility: 'no-public', overrides: { properties: 'explicit' } } ]` - -The following patterns are considered incorrect with the example override - -```ts option='{ "accessibility": "no-public", "overrides": { "properties": "explicit" } }' showPlaygroundButton -class Animal { - constructor(protected animalName) {} - get name() { - return this.animalName; - } - protected set name(value: string) { - this.animalName = value; - } - legs: number; - private hasFleas: boolean; -} -``` - -The following patterns are considered correct with the example override - -```ts option='{ "accessibility": "no-public", "overrides": { "properties": "explicit" } }' showPlaygroundButton -class Animal { - constructor(protected animalName) {} - get name() { - return this.animalName; - } - protected set name(value: string) { - this.animalName = value; - } - public legs: number; - private hasFleas: boolean; -} -``` - -e.g. `[ { accessibility: 'off', overrides: { parameterProperties: 'explicit' } } ]` - -The following code is considered incorrect with the example override - -```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "explicit" } }' showPlaygroundButton -class Animal { - constructor(readonly animalName: string) {} -} -``` - -The following code patterns are considered correct with the example override - -```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "explicit" } }' showPlaygroundButton -class Animal { - constructor(public readonly animalName: string) {} -} - -class Animal { - constructor(public animalName: string) {} -} - -class Animal { - constructor(animalName: string) {} -} -``` - -e.g. `[ { accessibility: 'off', overrides: { parameterProperties: 'no-public' } } ]` - -The following code is considered incorrect with the example override - -```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "no-public" } }' showPlaygroundButton -class Animal { - constructor(public readonly animalName: string) {} -} -``` - -The following code is considered correct with the example override - -```ts option='{ "accessibility": "off", "overrides": { "parameterProperties": "no-public" } }' showPlaygroundButton -class Animal { - constructor(public animalName: string) {} -} -``` - -#### Disable any checks on given member type - -e.g. `[{ overrides: { accessors : 'off' } } ]` - -As no checks on the overridden member type are performed all permutations of visibility are permitted for that member type - -The follow pattern is considered incorrect for the given configuration - -```ts option='{ "overrides": { "accessors" : "off" } }' showPlaygroundButton -class Animal { - constructor(protected animalName) {} - public get name() { - return this.animalName; - } - get legs() { - return this.legCount; - } -} -``` - -The following patterns are considered correct with the example override - -```ts option='{ "overrides": { "accessors" : "off" } }' showPlaygroundButton -class Animal { - public constructor(protected animalName) {} - public get name() { - return this.animalName; - } - get legs() { - return this.legCount; - } -} -``` - -### `ignoredMethodNames` - -If you want to ignore some specific methods, you can do it by specifying method names. Note that this option does not care for the context, and will ignore every method with these names, which could lead to it missing some cases. You should use this sparingly. -e.g. `[ { ignoredMethodNames: ['specificMethod', 'whateverMethod'] } ]` - -```ts option='{ "ignoredMethodNames": ["specificMethod", "whateverMethod"] }' showPlaygroundButton -class Animal { - get specificMethod() { - console.log('No error because you specified this method on option'); - } - get whateverMethod() { - console.log('No error because you specified this method on option'); - } - public get otherMethod() { - console.log('This method comply with this rule'); - } -} -``` - -## When Not To Use It - -If you think defaulting to public is a good default, then you should consider using the `no-public` setting. -If you want to mix implicit and explicit public members then you can disable this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. - -## Further Reading - -- TypeScript [Accessibility Modifiers Handbook Docs](https://www.typescriptlang.org/docs/handbook/2/classes.html#member-visibility) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx deleted file mode 100644 index 7a19ab87..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx +++ /dev/null @@ -1,267 +0,0 @@ ---- -description: "Require explicit return and argument types on exported functions' and classes' public class methods." ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/explicit-module-boundary-types** for documentation. - -Explicit types for function return values and arguments makes it clear to any calling code what is the module boundary's input and output. -Adding explicit type annotations for those types can help improve code readability. -It can also improve TypeScript type checking performance on larger codebases. - -## Examples - - - - -```ts -// Should indicate that no value is returned (void) -export function test() { - return; -} - -// Should indicate that a string is returned -export var arrowFn = () => 'test'; - -// All arguments should be typed -export var arrowFn = (arg): string => `test ${arg}`; -export var arrowFn = (arg: any): string => `test ${arg}`; - -export class Test { - // Should indicate that no value is returned (void) - method() { - return; - } -} -``` - - - - -```ts -// A function with no return value (void) -export function test(): void { - return; -} - -// A return value of type string -export var arrowFn = (): string => 'test'; - -// All arguments should be typed -export var arrowFn = (arg: string): string => `test ${arg}`; -export var arrowFn = (arg: unknown): string => `test ${arg}`; - -export class Test { - // A class method with no return value (void) - method(): void { - return; - } -} - -// The function does not apply because it is not an exported function. -function test() { - return; -} -``` - - - - -## Options - -### Configuring in a mixed JS/TS codebase - -If you are working on a codebase within which you lint non-TypeScript code (i.e. `.js`/`.mjs`/`.cjs`/`.jsx`), you should ensure that you should use [ESLint `overrides`](https://eslint.org/docs/user-guide/configuring#disabling-rules-only-for-a-group-of-files) to only enable the rule on `.ts`/`.mts`/`.cts`/`.tsx` files. If you don't, then you will get unfixable lint errors reported within `.js`/`.mjs`/`.cjs`/`.jsx` files. - -```jsonc -{ - "rules": { - // disable the rule for all files - "@typescript-eslint/explicit-module-boundary-types": "off", - }, - "overrides": [ - { - // enable the rule specifically for TypeScript files - "files": ["*.ts", "*.mts", "*.cts", "*.tsx"], - "rules": { - "@typescript-eslint/explicit-module-boundary-types": "error", - }, - }, - ], -} -``` - -### `allowArgumentsExplicitlyTypedAsAny` - -When this option is `true`, the rule ignores arguments that are explicitly typed as any. - - - - -```ts option='{ "allowArgumentsExplicitlyTypedAsAny": false }' -export const func = (value: any): number => value + 1; -``` - - - - -```ts option='{ "allowArgumentsExplicitlyTypedAsAny": true }' -export const func = (value: any): number => value + 1; -``` - - - - -### `allowDirectConstAssertionInArrowFunctions` - -When this option is `true`, the rule ignores return type annotations on body-less arrow functions that return an `as const` type assertion. - - - - -```ts option='{ "allowDirectConstAssertionInArrowFunctions": false }' -export const func = (value: number) => ({ type: 'X', value }); -export const foo = () => ({ - bar: true, -}); -export const bar = () => 1; -``` - - - - -```ts option='{ "allowDirectConstAssertionInArrowFunctions": true }' -export const func = (value: number) => ({ type: 'X', value }) as const; -export const foo = () => - ({ - bar: true, - }) as const; -export const bar = () => 1 as const; -``` - - - - -### `allowedNames` - -You may pass function/method names you would like this rule to ignore, like so: - -```json -{ - "@typescript-eslint/explicit-module-boundary-types": [ - "error", - { - "allowedNames": ["ignoredFunctionName", "ignoredMethodName"] - } - ] -} -``` - -### `allowHigherOrderFunctions` - -When this option is `true`, the rule ignores return type annotations on function, which is immediately returning another function expression. - - - - -```ts option='{ "allowHigherOrderFunctions": false }' -export const arrowFn = () => () => {}; - -export function fn() { - return function () {}; -} - -export function foo(outer: string) { - return function (inner: string) {}; -} -``` - - - - -```ts option='{ "allowHigherOrderFunctions": true }' -export const arrowFn = () => (): void => {}; - -export function fn() { - return function (): void {}; -} - -export function foo(outer: string) { - return function (inner: string): void {}; -} -``` - - - - -### `allowTypedFunctionExpressions` - -When this option is `true`, the rule ignores type annotations on the variable of a function expression. - - - - -```ts option='{ "allowTypedFunctionExpressions": false }' -export let arrowFn = () => 'test'; - -export let funcExpr = function () { - return 'test'; -}; - -export let objectProp = { - foo: () => 1, -}; - -export const foo = bar => {}; -``` - - - - -```ts option='{ "allowTypedFunctionExpressions": true }' -type FuncType = () => string; - -export let arrowFn: FuncType = () => 'test'; - -export let funcExpr: FuncType = function () { - return 'test'; -}; - -export let asTyped = (() => '') as () => string; -export let castTyped = <() => string>(() => ''); - -interface ObjectType { - foo(): number; -} -export let objectProp: ObjectType = { - foo: () => 1, -}; -export let objectPropAs = { - foo: () => 1, -} as ObjectType; -export let objectPropCast = { - foo: () => 1, -}; - -type FooType = (bar: string) => void; -export const foo: FooType = bar => {}; -``` - - - - -## When Not To Use It - -If your project is not used by downstream consumers that are sensitive to API types, you can disable this rule. - -## Further Reading - -- TypeScript [Functions](https://www.typescriptlang.org/docs/handbook/functions.html#function-types) - -## Related To - -- [explicit-function-return-type](./explicit-function-return-type.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx deleted file mode 100644 index 911aeb18..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: 'Require or disallow initialization in variable declarations.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/init-declarations** for documentation. - -This rule extends the base [`eslint/init-declarations`](https://eslint.org/docs/rules/init-declarations) rule. -It adds support for TypeScript's `declare` variables. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/key-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-around-comment.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx deleted file mode 100644 index 3e1d80bb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/max-params.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: 'Enforce a maximum number of parameters in function definitions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/max-params** for documentation. - -This rule extends the base [`eslint/max-params`](https://eslint.org/docs/rules/max-params) rule. -This version adds support for TypeScript `this` parameters so they won't be counted as a parameter. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-delimiter-style.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx deleted file mode 100644 index 82f8f84f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.mdx +++ /dev/null @@ -1,1483 +0,0 @@ ---- -description: 'Require a consistent member declaration order.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/member-ordering** for documentation. - -This rule aims to standardize the way classes, interfaces, and type literals are structured and ordered. -A consistent ordering of fields, methods and constructors can make code easier to read, navigate, and edit. - -:::note -This rule is _feature frozen_: it will no longer receive new features such as new options. -It still will accept bug and documentation fixes for its existing area of features. - -Stylistic rules that enforce naming and/or sorting conventions tend to grow incomprehensibly complex as increasingly obscure features are requested. -This rule has reached the limit of what is reasonable for the typescript-eslint project to maintain. -See [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. -::: - -## Options - -```ts -interface Options { - default?: OrderConfig; - classes?: OrderConfig; - classExpressions?: OrderConfig; - interfaces?: OrderConfig; - typeLiterals?: OrderConfig; -} - -type OrderConfig = MemberType[] | SortedOrderConfig | 'never'; - -interface SortedOrderConfig { - memberTypes?: MemberType[] | 'never'; - optionalityOrder?: 'optional-first' | 'required-first'; - order?: - | 'alphabetically' - | 'alphabetically-case-insensitive' - | 'as-written' - | 'natural' - | 'natural-case-insensitive'; -} - -// See below for the more specific MemberType strings -type MemberType = string | string[]; -``` - -You can configure `OrderConfig` options for: - -- **`default`**: all constructs (used as a fallback) -- **`classes`**?: override ordering specifically for classes -- **`classExpressions`**?: override ordering specifically for class expressions -- **`interfaces`**?: override ordering specifically for interfaces -- **`typeLiterals`**?: override ordering specifically for type literals - -The `OrderConfig` settings for each kind of construct may configure sorting on up to three levels: - -- **`memberTypes`**: organizing on member type groups such as methods vs. properties -- **`optionalityOrder`**: whether to put all optional members first or all required members first -- **`order`**: organizing based on member names, such as alphabetically - -### Groups - -You can define many different groups based on different attributes of members. -The supported member attributes are, in order: - -- **Accessibility** (`'public' | 'protected' | 'private' | '#private'`) -- **Decoration** (`'decorated'`): Whether the member has an explicit accessibility decorator -- **Kind** (`'call-signature' | 'constructor' | 'field' | 'readonly-field' | 'get' | 'method' | 'set' | 'signature' | 'readonly-signature'`) - -Member attributes may be joined with a `'-'` to combine into more specific groups. -For example, `'public-field'` would come before `'private-field'`. - -### Orders - -The `order` value specifies what order members should be within a group. -It defaults to `as-written`, meaning any order is fine. -Other allowed values are: - -- `alphabetically`: Sorted in a-z alphabetical order, directly using string `<` comparison (so `B` comes before `a`) -- `alphabetically-case-insensitive`: Sorted in a-z alphabetical order, ignoring case (so `a` comes before `B`) -- `natural`: Same as `alphabetically`, but using [`natural-compare-lite`](https://github.com/litejs/natural-compare-lite) for more friendly sorting of numbers -- `natural-case-insensitive`: Same as `alphabetically-case-insensitive`, but using [`natural-compare-lite`](https://github.com/litejs/natural-compare-lite) for more friendly sorting of numbers - -### Default configuration - -The default configuration looks as follows: - -```jsonc -{ - "default": { - "memberTypes": [ - // Index signature - "signature", - "call-signature", - - // Fields - "public-static-field", - "protected-static-field", - "private-static-field", - "#private-static-field", - - "public-decorated-field", - "protected-decorated-field", - "private-decorated-field", - - "public-instance-field", - "protected-instance-field", - "private-instance-field", - "#private-instance-field", - - "public-abstract-field", - "protected-abstract-field", - - "public-field", - "protected-field", - "private-field", - "#private-field", - - "static-field", - "instance-field", - "abstract-field", - - "decorated-field", - - "field", - - // Static initialization - "static-initialization", - - // Constructors - "public-constructor", - "protected-constructor", - "private-constructor", - - "constructor", - - // Accessors - "public-static-accessor", - "protected-static-accessor", - "private-static-accessor", - "#private-static-accessor", - - "public-decorated-accessor", - "protected-decorated-accessor", - "private-decorated-accessor", - - "public-instance-accessor", - "protected-instance-accessor", - "private-instance-accessor", - "#private-instance-accessor", - - "public-abstract-accessor", - "protected-abstract-accessor", - - "public-accessor", - "protected-accessor", - "private-accessor", - "#private-accessor", - - "static-accessor", - "instance-accessor", - "abstract-accessor", - - "decorated-accessor", - - "accessor", - - // Getters - "public-static-get", - "protected-static-get", - "private-static-get", - "#private-static-get", - - "public-decorated-get", - "protected-decorated-get", - "private-decorated-get", - - "public-instance-get", - "protected-instance-get", - "private-instance-get", - "#private-instance-get", - - "public-abstract-get", - "protected-abstract-get", - - "public-get", - "protected-get", - "private-get", - "#private-get", - - "static-get", - "instance-get", - "abstract-get", - - "decorated-get", - - "get", - - // Setters - "public-static-set", - "protected-static-set", - "private-static-set", - "#private-static-set", - - "public-decorated-set", - "protected-decorated-set", - "private-decorated-set", - - "public-instance-set", - "protected-instance-set", - "private-instance-set", - "#private-instance-set", - - "public-abstract-set", - "protected-abstract-set", - - "public-set", - "protected-set", - "private-set", - "#private-set", - - "static-set", - "instance-set", - "abstract-set", - - "decorated-set", - - "set", - - // Methods - "public-static-method", - "protected-static-method", - "private-static-method", - "#private-static-method", - - "public-decorated-method", - "protected-decorated-method", - "private-decorated-method", - - "public-instance-method", - "protected-instance-method", - "private-instance-method", - "#private-instance-method", - - "public-abstract-method", - "protected-abstract-method", - - "public-method", - "protected-method", - "private-method", - "#private-method", - - "static-method", - "instance-method", - "abstract-method", - - "decorated-method", - - "method", - ], - }, -} -``` - -:::note -The default configuration contains member group types which contain other member types. -This is intentional to provide better error messages. -::: - -:::tip -By default, the members are not sorted. -If you want to sort them alphabetically, you have to provide a custom configuration. -::: - -## Examples - -### General Order on All Constructs - -This config specifies the order for all constructs. -It ignores member types other than signatures, methods, constructors, and fields. -It also ignores accessibility and scope. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "default": ["signature", "method", "constructor", "field"] }, - ], - }, -} -``` - - - - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -interface Foo { - B: string; // -> field - - new (); // -> constructor - - A(): void; // -> method - - [Z: string]: any; // -> signature -} -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -type Foo = { - B: string; // -> field - - // no constructor - - A(): void; // -> method - - // no signature -}; -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -class Foo { - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field - - constructor() {} // -> constructor - - public static A(): void {} // -> method - public B(): void {} // -> method - - [Z: string]: any; // -> signature -} -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -const Foo = class { - private C: string; // -> field - public D: string; // -> field - - constructor() {} // -> constructor - - public static A(): void {} // -> method - public B(): void {} // -> method - - [Z: string]: any; // -> signature - - protected static E: string; // -> field -}; -``` - - - - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -interface Foo { - [Z: string]: any; // -> signature - - A(): void; // -> method - - new (); // -> constructor - - B: string; // -> field -} -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -type Foo = { - // no signature - - A(): void; // -> method - - // no constructor - - B: string; // -> field -}; -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -class Foo { - [Z: string]: any; // -> signature - - public static A(): void {} // -> method - public B(): void {} // -> method - - constructor() {} // -> constructor - - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field -} -``` - -```ts option='{ "default": ["signature", "method", "constructor", "field"] }' -const Foo = class { - [Z: string]: any; // -> signature - - public static A(): void {} // -> method - public B(): void {} // -> method - - constructor() {} // -> constructor - - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field -}; -``` - - - - -### Classes - -#### Public Instance Methods Before Public Static Fields - -This config specifies that public instance methods should come first before public static fields. -Everything else can be placed anywhere. -It doesn't apply to interfaces or type literals as accessibility and scope are not part of them. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "default": ["public-instance-method", "public-static-field"] }, - ], - }, -} -``` - - - - -```ts option='{ "default": ["public-instance-method", "public-static-field"] }' -class Foo { - private C: string; // (irrelevant) - - public D: string; // (irrelevant) - - public static E: string; // -> public static field - - constructor() {} // (irrelevant) - - public static A(): void {} // (irrelevant) - - [Z: string]: any; // (irrelevant) - - public B(): void {} // -> public instance method -} -``` - -```ts option='{ "default": ["public-instance-method", "public-static-field"] }' -const Foo = class { - private C: string; // (irrelevant) - - [Z: string]: any; // (irrelevant) - - public static E: string; // -> public static field - - public D: string; // (irrelevant) - - constructor() {} // (irrelevant) - - public static A(): void {} // (irrelevant) - - public B(): void {} // -> public instance method -}; -``` - - - - -```ts option='{ "default": ["public-instance-method", "public-static-field"] }' -class Foo { - public B(): void {} // -> public instance method - - private C: string; // (irrelevant) - - public D: string; // (irrelevant) - - public static E: string; // -> public static field - - constructor() {} // (irrelevant) - - public static A(): void {} // (irrelevant) - - [Z: string]: any; // (irrelevant) -} -``` - -```ts option='{ "default": ["public-instance-method", "public-static-field"] }' -const Foo = class { - public B(): void {} // -> public instance method - - private C: string; // (irrelevant) - - [Z: string]: any; // (irrelevant) - - public D: string; // (irrelevant) - - constructor() {} // (irrelevant) - - public static A(): void {} // (irrelevant) - - public static E: string; // -> public static field -}; -``` - - - - -#### Static Fields Before Instance Fields - -This config specifies that static fields should come before instance fields, with public static fields first. -It doesn't apply to interfaces or type literals as accessibility and scope are not part of them. - -```jsonc -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "default": ["public-static-field", "static-field", "instance-field"] }, - ], - }, -} -``` - - - - -```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' -class Foo { - private E: string; // -> instance field - - private static B: string; // -> static field - protected static C: string; // -> static field - private static D: string; // -> static field - - public static A: string; // -> public static field - - [Z: string]: any; // (irrelevant) -} -``` - -```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' -const foo = class { - public T(): void {} // method (irrelevant) - - private static B: string; // -> static field - - constructor() {} // constructor (irrelevant) - - private E: string; // -> instance field - - protected static C: string; // -> static field - private static D: string; // -> static field - - [Z: string]: any; // signature (irrelevant) - - public static A: string; // -> public static field -}; -``` - - - - -```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' -class Foo { - public static A: string; // -> public static field - - private static B: string; // -> static field - protected static C: string; // -> static field - private static D: string; // -> static field - - private E: string; // -> instance field - - [Z: string]: any; // (irrelevant) -} -``` - -```ts option='{ "default": ["public-static-field", "static-field", "instance-field"] }' -const foo = class { - [Z: string]: any; // -> signature (irrelevant) - - public static A: string; // -> public static field - - constructor() {} // -> constructor (irrelevant) - - private static B: string; // -> static field - protected static C: string; // -> static field - private static D: string; // -> static field - - private E: string; // -> instance field - - public T(): void {} // -> method (irrelevant) -}; -``` - - - - -#### Class Declarations - -This config only specifies an order for classes: methods, then the constructor, then fields. -It does not apply to class expressions (use `classExpressions` for them). -Default settings will be used for class declarations and all other syntax constructs other than class declarations. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "classes": ["method", "constructor", "field"] }, - ], - }, -} -``` - - - - -```ts option='{ "classes": ["method", "constructor", "field"] }' -class Foo { - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field - - constructor() {} // -> constructor - - public static A(): void {} // -> method - public B(): void {} // -> method -} -``` - - - - -```ts option='{ "classes": ["method", "constructor", "field"] }' -class Foo { - public static A(): void {} // -> method - public B(): void {} // -> method - - constructor() {} // -> constructor - - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field -} -``` - - - - -#### Class Expressions - -This config only specifies an order for classes expressions: methods, then the constructor, then fields. -It does not apply to class declarations (use `classes` for them). -Default settings will be used for class declarations and all other syntax constructs other than class expressions. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "classExpressions": ["method", "constructor", "field"] }, - ], - }, -} -``` - - - - -```ts option='{ "classExpressions": ["method", "constructor", "field"] }' -const foo = class { - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field - - constructor() {} // -> constructor - - public static A(): void {} // -> method - public B(): void {} // -> method -}; -``` - - - - -```ts option='{ "classExpressions": ["method", "constructor", "field"] }' -const foo = class { - public static A(): void {} // -> method - public B(): void {} // -> method - - constructor() {} // -> constructor - - private C: string; // -> field - public D: string; // -> field - protected static E: string; // -> field -}; -``` - - - - -### Interfaces - -This config only specifies an order for interfaces: signatures, then methods, then constructors, then fields. -It does not apply to type literals (use `typeLiterals` for them). -Default settings will be used for type literals and all other syntax constructs other than class expressions. - -:::note -These member types are the only ones allowed for `interfaces`. -::: - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "interfaces": ["signature", "method", "constructor", "field"] }, - ], - }, -} -``` - - - - -```ts option='{ "interfaces": ["signature", "method", "constructor", "field"] }' -interface Foo { - B: string; // -> field - - new (); // -> constructor - - A(): void; // -> method - - [Z: string]: any; // -> signature -} -``` - - - - -```ts option='{ "interfaces": ["signature", "method", "constructor", "field"] }' -interface Foo { - [Z: string]: any; // -> signature - - A(): void; // -> method - - new (); // -> constructor - - B: string; // -> field -} -``` - - - - -### Type Literals - -This config only specifies an order for type literals: signatures, then methods, then constructors, then fields. -It does not apply to interfaces (use `interfaces` for them). -Default settings will be used for interfaces and all other syntax constructs other than class expressions. - -:::note -These member types are the only ones allowed for `typeLiterals`. -::: - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "typeLiterals": ["signature", "method", "constructor", "field"] }, - ], - }, -} -``` - - - - -```ts option='{ "typeLiterals": ["signature", "method", "constructor", "field"] }' -type Foo = { - B: string; // -> field - - A(): void; // -> method - - new (); // -> constructor - - [Z: string]: any; // -> signature -}; -``` - - - - -```ts option='{ "typeLiterals": ["signature", "method", "constructor", "field"] }' -type Foo = { - [Z: string]: any; // -> signature - - A(): void; // -> method - - new (); // -> constructor - - B: string; // -> field -}; -``` - - - - -### Sorting Options - -#### Sorting Alphabetically Within Member Groups - -The default member order will be applied if `memberTypes` is not specified. -You can see the default order in [Default Configuration](#default-configuration). - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { - "default": { - "order": "alphabetically", - }, - }, - ], - }, -} -``` - - - - -```ts option='{"default":{"order":"alphabetically"}}' -interface Foo { - a: x; - B: x; - c: x; - - B(): void; - c(): void; - a(): void; -} -``` - - - - -```ts option='{"default":{"order":"alphabetically"}}' -interface Foo { - B: x; - a: x; - c: x; - - B(): void; - a(): void; - c(): void; -} -``` - - - - -#### Sorting Alphabetically Within Custom Member Groups - -This config specifies that within each custom `memberTypes` group, members are in an alphabetic case-sensitive order. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { - "default": { - "memberTypes": ["method", "field"], - "order": "alphabetically", - }, - }, - ], - }, -} -``` - - - - -```ts option='{"default":{"memberTypes":["method","field"],"order":"alphabetically"}}' -interface Foo { - B(): void; - c(): void; - a(): void; - - a: x; - B: x; - c: x; -} -``` - - - - -```ts option='{"default":{"memberTypes":["method","field"],"order":"alphabetically"}}' -interface Foo { - B(): void; - a(): void; - c(): void; - - B: x; - a: x; - c: x; -} -``` - - - - -#### Sorting Alphabetically Case Insensitive Within Member Groups - -The default member order will be applied if `memberTypes` is not specified. -You can see the default order in [Default Configuration](#default-configuration). - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { - "default": { - "order": "alphabetically-case-insensitive", - }, - }, - ], - }, -} -``` - - - - -```ts option='{"default":{"order":"alphabetically-case-insensitive"}}' -interface Foo { - B: x; - a: x; - c: x; - - B(): void; - c(): void; - a(): void; -} -``` - - - - -```ts option='{"default":{"order":"alphabetically-case-insensitive"}}' -interface Foo { - a: x; - B: x; - c: x; - - a(): void; - B(): void; - c(): void; -} -``` - - - - -#### Sorting Alphabetically Ignoring Member Groups - -This config specifies that members are all sorted in an alphabetic case-sensitive order. -It ignores any member group types completely by specifying `"never"` for `memberTypes`. - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { "default": { "memberTypes": "never", "order": "alphabetically" } }, - ], - }, -} -``` - - - - -```ts option='{ "default": { "memberTypes": "never", "order": "alphabetically" } }' -interface Foo { - b(): void; - a: boolean; - - [a: string]: number; - new (): Bar; - (): Baz; -} -``` - - - - -```ts option='{ "default": { "memberTypes": "never", "order": "alphabetically" } }' -interface Foo { - [a: string]: number; - a: boolean; - b(): void; - - (): Baz; - new (): Bar; -} -``` - - - - -#### Sorting Optional Members First or Last - -The `optionalityOrder` option may be enabled to place all optional members in a group at the beginning or end of that group. - -This config places all optional members before all required members: - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { - "default": { - "optionalityOrder": "optional-first", - "order": "alphabetically", - }, - }, - ], - }, -} -``` - - - - -```ts option='{ "default": { "optionalityOrder": "optional-first", "order": "alphabetically" } }' -interface Foo { - a: boolean; - b?: number; - c: string; -} -``` - - - - -```ts option='{ "default": { "optionalityOrder": "optional-first", "order": "alphabetically" } }' -interface Foo { - b?: number; - a: boolean; - c: string; -} -``` - - - - -This config places all required members before all optional members: - -```jsonc -// .eslintrc.json -{ - "rules": { - "@typescript-eslint/member-ordering": [ - "error", - { - "default": { - "optionalityOrder": "required-first", - "order": "alphabetically", - }, - }, - ], - }, -} -``` - - - - -```ts option='{ "default": { "optionalityOrder": "required-first", "order": "alphabetically" } }' -interface Foo { - a: boolean; - b?: number; - c: string; -} -``` - - - - -```ts option='{ "default": { "optionalityOrder": "required-first", "order": "alphabetically" } }' -interface Foo { - a: boolean; - c: string; - b?: number; -} -``` - - - - -## All Supported Options - -### Member Types (Granular Form) - -There are multiple ways to specify the member types. -The most explicit and granular form is the following: - -```jsonc -[ - // Index signature - "signature", - "readonly-signature", - - // Fields - "public-static-field", - "public-static-readonly-field", - "protected-static-field", - "protected-static-readonly-field", - "private-static-field", - "private-static-readonly-field", - "#private-static-field", - "#private-static-readonly-field", - - "public-decorated-field", - "public-decorated-readonly-field", - "protected-decorated-field", - "protected-decorated-readonly-field", - "private-decorated-field", - "private-decorated-readonly-field", - - "public-instance-field", - "public-instance-readonly-field", - "protected-instance-field", - "protected-instance-readonly-field", - "private-instance-field", - "private-instance-readonly-field", - "#private-instance-field", - "#private-instance-readonly-field", - - "public-abstract-field", - "public-abstract-readonly-field", - "protected-abstract-field", - "protected-abstract-readonly-field", - - "public-field", - "public-readonly-field", - "protected-field", - "protected-readonly-field", - "private-field", - "private-readonly-field" - "#private-field", - "#private-readonly-field" - - "static-field", - "static-readonly-field", - "instance-field", - "instance-readonly-field" - "abstract-field", - "abstract-readonly-field", - - "decorated-field", - "decorated-readonly-field", - - "field", - "readonly-field", - - // Static initialization - "static-initialization", - - // Constructors - "public-constructor", - "protected-constructor", - "private-constructor", - - // Getters - "public-static-get", - "protected-static-get", - "private-static-get", - "#private-static-get", - - "public-decorated-get", - "protected-decorated-get", - "private-decorated-get", - - "public-instance-get", - "protected-instance-get", - "private-instance-get", - "#private-instance-get", - - "public-abstract-get", - "protected-abstract-get", - - "public-get", - "protected-get", - "private-get", - "#private-get", - - "static-get", - "instance-get", - "abstract-get", - - "decorated-get", - - "get", - - // Setters - "public-static-set", - "protected-static-set", - "private-static-set", - "#private-static-set", - - "public-decorated-set", - "protected-decorated-set", - "private-decorated-set", - - "public-instance-set", - "protected-instance-set", - "private-instance-set", - "#private-instance-set", - - "public-abstract-set", - "protected-abstract-set", - - "public-set", - "protected-set", - "private-set", - - "static-set", - "instance-set", - "abstract-set", - - "decorated-set", - - "set", - - // Methods - "public-static-method", - "protected-static-method", - "private-static-method", - "#private-static-method", - "public-decorated-method", - "protected-decorated-method", - "private-decorated-method", - "public-instance-method", - "protected-instance-method", - "private-instance-method", - "#private-instance-method", - "public-abstract-method", - "protected-abstract-method" -] -``` - -:::note -If you only specify some of the possible types, the non-specified ones can have any particular order. -This means that they can be placed before, within or after the specified types and the linter won't complain about it. -::: - -### Member Group Types (With Accessibility, Ignoring Scope) - -It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope. - -```jsonc -[ - // Index signature - // No accessibility for index signature. - - // Fields - "public-field", // = ["public-static-field", "public-instance-field"] - "protected-field", // = ["protected-static-field", "protected-instance-field"] - "private-field", // = ["private-static-field", "private-instance-field"] - - // Static initialization - // No accessibility for static initialization. - - // Constructors - // Only the accessibility of constructors is configurable. See below. - - // Getters - "public-get", // = ["public-static-get", "public-instance-get"] - "protected-get", // = ["protected-static-get", "protected-instance-get"] - "private-get", // = ["private-static-get", "private-instance-get"] - - // Setters - "public-set", // = ["public-static-set", "public-instance-set"] - "protected-set", // = ["protected-static-set", "protected-instance-set"] - "private-set", // = ["private-static-set", "private-instance-set"] - - // Methods - "public-method", // = ["public-static-method", "public-instance-method"] - "protected-method", // = ["protected-static-method", "protected-instance-method"] - "private-method", // = ["private-static-method", "private-instance-method"] -] -``` - -### Member Group Types (With Accessibility and a Decorator) - -It is also possible to group methods or fields with a decorator separately, optionally specifying -their accessibility. - -```jsonc -[ - // Index signature - // No decorators for index signature. - - // Fields - "public-decorated-field", - "protected-decorated-field", - "private-decorated-field", - - "decorated-field", // = ["public-decorated-field", "protected-decorated-field", "private-decorated-field"] - - // Static initialization - // No decorators for static initialization. - - // Constructors - // There are no decorators for constructors. - - // Getters - "public-decorated-get", - "protected-decorated-get", - "private-decorated-get", - - "decorated-get", // = ["public-decorated-get", "protected-decorated-get", "private-decorated-get"] - - // Setters - "public-decorated-set", - "protected-decorated-set", - "private-decorated-set", - - "decorated-set", // = ["public-decorated-set", "protected-decorated-set", "private-decorated-set"] - - // Methods - "public-decorated-method", - "protected-decorated-method", - "private-decorated-method", - - "decorated-method", // = ["public-decorated-method", "protected-decorated-method", "private-decorated-method"] -] -``` - -### Member Group Types (With Scope, Ignoring Accessibility) - -Another option is to group the member types by their scope (`public`, `protected`, `private`), ignoring their accessibility. - -```jsonc -[ - // Index signature - // No scope for index signature. - - // Fields - "static-field", // = ["public-static-field", "protected-static-field", "private-static-field"] - "instance-field", // = ["public-instance-field", "protected-instance-field", "private-instance-field"] - "abstract-field", // = ["public-abstract-field", "protected-abstract-field"] - - // Static initialization - // No scope for static initialization. - - // Constructors - "constructor", // = ["public-constructor", "protected-constructor", "private-constructor"] - - // Getters - "static-get", // = ["public-static-get", "protected-static-get", "private-static-get"] - "instance-get", // = ["public-instance-get", "protected-instance-get", "private-instance-get"] - "abstract-get", // = ["public-abstract-get", "protected-abstract-get"] - - // Setters - "static-set", // = ["public-static-set", "protected-static-set", "private-static-set"] - "instance-set", // = ["public-instance-set", "protected-instance-set", "private-instance-set"] - "abstract-set", // = ["public-abstract-set", "protected-abstract-set"] - - // Methods - "static-method", // = ["public-static-method", "protected-static-method", "private-static-method"] - "instance-method", // = ["public-instance-method", "protected-instance-method", "private-instance-method"] - "abstract-method", // = ["public-abstract-method", "protected-abstract-method"] -] -``` - -### Member Group Types (With Scope and Accessibility) - -The third grouping option is to ignore both scope and accessibility. - -```jsonc -[ - // Index signature - // No grouping for index signature. - - // Fields - "field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", - // "public-abstract-field", "protected-abstract-field"] - - // Static initialization - // No grouping for static initialization. - - // Constructors - // Only the accessibility of constructors is configurable. - - // Getters - "get", // = ["public-static-get", "protected-static-get", "private-static-get", "public-instance-get", "protected-instance-get", "private-instance-get", - // "public-abstract-get", "protected-abstract-get"] - - // Setters - "set", // = ["public-static-set", "protected-static-set", "private-static-set", "public-instance-set", "protected-instance-set", "private-instance-set", - // "public-abstract-set", "protected-abstract-set"] - - // Methods - "method", // = ["public-static-method", "protected-static-method", "private-static-method", "public-instance-method", "protected-instance-method", "private-instance-method", - // "public-abstract-method", "protected-abstract-method"] -] -``` - -### Member Group Types (Readonly Fields) - -It is possible to group fields by their `readonly` modifiers. - -```jsonc -[ - // Index signature - "readonly-signature", - "signature", - - // Fields - "readonly-field", // = ["public-static-readonly-field", "protected-static-readonly-field", "private-static-readonly-field", "public-instance-readonly-field", "protected-instance-readonly-field", "private-instance-readonly-field", "public-abstract-readonly-field", "protected-abstract-readonly-field"] - "field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field", "public-abstract-field", "protected-abstract-field"] -] -``` - -### Grouping Different Member Types at the Same Rank - -It is also possible to group different member types at the same rank. - -```jsonc -[ - // Index signature - "signature", - - // Fields - "field", - - // Static initialization - "static-initialization", - - // Constructors - "constructor", - - // Getters and Setters at the same rank - ["get", "set"], - - // Methods - "method", -] -``` - -## When Not To Use It - -If you don't care about the general order of your members, then you will not need this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx deleted file mode 100644 index 0536bff8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -description: 'Enforce using a particular method signature syntax.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/method-signature-style** for documentation. - -TypeScript provides two ways to define an object/interface function property: - -```ts -interface Example { - // method shorthand syntax - func(arg: string): number; - - // regular property with function type - func: (arg: string) => number; -} -``` - -The two are very similar; most of the time it doesn't matter which one you use. - -A good practice is to use the TypeScript's `strict` option (which implies `strictFunctionTypes`) which enables correct typechecking for function properties only (method signatures get old behavior). - -TypeScript FAQ: - -> A method and a function property of the same type behave differently. -> Methods are always bivariant in their argument, while function properties are contravariant in their argument under `strictFunctionTypes`. - -See the reasoning behind that in the [TypeScript PR for the compiler option](https://github.com/microsoft/TypeScript/pull/18654). - -## Options - -This rule accepts one string option: - -- `"property"`: Enforce using property signature for functions. Use this to enforce maximum correctness together with TypeScript's strict mode. -- `"method"`: Enforce using method signature for functions. Use this if you aren't using TypeScript's strict mode and prefer this style. - -The default is `"property"`. - -### `property` - -Examples of code with `property` option. - - - - -```ts option='"property"' -interface T1 { - func(arg: string): number; -} -type T2 = { - func(arg: boolean): void; -}; -interface T3 { - func(arg: number): void; - func(arg: string): void; - func(arg: boolean): void; -} -``` - - - - -```ts option='"property"' -interface T1 { - func: (arg: string) => number; -} -type T2 = { - func: (arg: boolean) => void; -}; -// this is equivalent to the overload -interface T3 { - func: ((arg: number) => void) & - ((arg: string) => void) & - ((arg: boolean) => void); -} -``` - - - - -### `method` - -Examples of code with `method` option. - - - - -```ts option='"method"' -interface T1 { - func: (arg: string) => number; -} -type T2 = { - func: (arg: boolean) => void; -}; -``` - - - - -```ts option='"method"' -interface T1 { - func(arg: string): number; -} -type T2 = { - func(arg: boolean): void; -}; -``` - - - - -## When Not To Use It - -If you don't want to enforce a particular style for object/interface function types, and/or if you don't use `strictFunctionTypes`, then you don't need this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx deleted file mode 100644 index e129b443..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.mdx +++ /dev/null @@ -1,755 +0,0 @@ ---- -description: 'Enforce naming conventions for everything across a codebase.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/naming-convention** for documentation. - -Enforcing naming conventions helps keep the codebase consistent, and reduces overhead when thinking about how to name a variable. -Additionally, a well-designed style guide can help communicate intent, such as by enforcing all private properties begin with an `_`, and all global-level constants are written in `UPPER_CASE`. - -:::note -This rule is _feature frozen_: it will no longer receive new features such as new options. -It still will accept bug and documentation fixes for its existing area of features and to support new TypeScript versions. - -Stylistic rules that enforce naming and/or sorting conventions tend to grow incomprehensibly complex as increasingly obscure features are requested. -This rule has reached the limit of what is reasonable for the typescript-eslint project to maintain. -See [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. -::: - -## Examples - -This rule allows you to enforce conventions for any identifier, using granular selectors to create a fine-grained style guide. - -:::note - -This rule only needs type information in specific cases, detailed below. - -::: - -## Options - -This rule accepts an array of objects, with each object describing a different naming convention. -Each property will be described in detail below. Also see the examples section below for illustrated examples. - -```ts -type Options = { - // format options - format: - | ( - | 'camelCase' - | 'strictCamelCase' - | 'PascalCase' - | 'StrictPascalCase' - | 'snake_case' - | 'UPPER_CASE' - )[] - | null; - custom?: { - regex: string; - match: boolean; - }; - leadingUnderscore?: - | 'forbid' - | 'require' - | 'requireDouble' - | 'allow' - | 'allowDouble' - | 'allowSingleOrDouble'; - trailingUnderscore?: - | 'forbid' - | 'require' - | 'requireDouble' - | 'allow' - | 'allowDouble' - | 'allowSingleOrDouble'; - prefix?: string[]; - suffix?: string[]; - - // selector options - selector: Selector | Selector[]; - filter?: - | string - | { - regex: string; - match: boolean; - }; - // the allowed values for these are dependent on the selector - see below - modifiers?: Modifiers[]; - types?: Types[]; -}[]; - -// the default config is similar to ESLint's camelcase rule but more strict -const defaultOptions: Options = [ - { - selector: 'default', - format: ['camelCase'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - - { - selector: 'import', - format: ['camelCase', 'PascalCase'], - }, - - { - selector: 'variable', - format: ['camelCase', 'UPPER_CASE'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - - { - selector: 'typeLike', - format: ['PascalCase'], - }, -]; -``` - -### Format Options - -Every single selector can have the same set of format options. -For information about how each selector is applied, see ["How does the rule evaluate a name's format?"](#how-does-the-rule-evaluate-a-names-format). - -#### `format` - -The `format` option defines the allowed formats for the identifier. This option accepts an array of the following values, and the identifier can match any of them: - -- `camelCase` - standard camelCase format - no underscores are allowed between characters, and consecutive capitals are allowed (i.e. both `myID` and `myId` are valid). -- `PascalCase` - same as `camelCase`, except the first character must be upper-case. -- `snake_case` - standard snake_case format - all characters must be lower-case, and underscores are allowed. -- `strictCamelCase` - same as `camelCase`, but consecutive capitals are not allowed (i.e. `myId` is valid, but `myID` is not). -- `StrictPascalCase` - same as `strictCamelCase`, except the first character must be upper-case. -- `UPPER_CASE` - same as `snake_case`, except all characters must be upper-case. - -Instead of an array, you may also pass `null`. This signifies "this selector shall not have its format checked". -This can be useful if you want to enforce no particular format for a specific selector, after applying a group selector. - -#### `custom` - -The `custom` option defines a custom regex that the identifier must (or must not) match. This option allows you to have a bit more finer-grained control over identifiers, letting you ban (or force) certain patterns and substrings. -Accepts an object with the following properties: - -- `match` - true if the identifier _must_ match the `regex`, false if the identifier _must not_ match the `regex`. -- `regex` - a string that is then passed into RegExp to create a new regular expression: `new RegExp(regex)` - -#### `filter` - -The `filter` option operates similar to `custom`, accepting the same shaped object, except that it controls if the rest of the configuration should or should not be applied to an identifier. - -You can use this to include or exclude specific identifiers from specific configurations. - -Accepts an object with the following properties: - -- `match` - true if the identifier _must_ match the `regex`, false if the identifier _must not_ match the `regex`. -- `regex` - a string that is then passed into RegExp to create a new regular expression: `new RegExp(regex)` - -Alternatively, `filter` accepts a regular expression (anything accepted into `new RegExp(filter)`). In this case, it's treated as if you had passed an object with the regex and `match: true`. - -#### `leadingUnderscore` / `trailingUnderscore` - -The `leadingUnderscore` / `trailingUnderscore` options control whether leading/trailing underscores are considered valid. Accepts one of the following values: - -- `allow` - existence of a single leading/trailing underscore is not explicitly enforced. -- `allowDouble` - existence of a double leading/trailing underscore is not explicitly enforced. -- `allowSingleOrDouble` - existence of a single or a double leading/trailing underscore is not explicitly enforced. -- `forbid` - a leading/trailing underscore is not allowed at all. -- `require` - a single leading/trailing underscore must be included. -- `requireDouble` - two leading/trailing underscores must be included. - -#### `prefix` / `suffix` - -The `prefix` / `suffix` options control which prefix/suffix strings must exist for the identifier. Accepts an array of strings. - -If these are provided, the identifier must start with one of the provided values. For example, if you provide `{ prefix: ['Class', 'IFace', 'Type'] }`, then the following names are valid: `ClassBar`, `IFaceFoo`, `TypeBaz`, but the name `Bang` is not valid, as it contains none of the prefixes. - -**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, therefore PascalCase must be used to allow variables such as `isEnabled` using the prefix `is`. - -### Selector Options - -- `selector` allows you to specify what types of identifiers to target. - - Accepts one or array of selectors to define an option block that applies to one or multiple selectors. - - For example, if you provide `{ selector: ['function', 'variable'] }`, then it will apply the same option to variable and function nodes. - - See [Allowed Selectors, Modifiers and Types](#allowed-selectors-modifiers-and-types) below for the complete list of allowed selectors. -- `modifiers` allows you to specify which modifiers to granularly apply to, such as the accessibility (`#private`/`private`/`protected`/`public`), or if the thing is `static`, etc. - - The name must match _all_ of the modifiers. - - For example, if you provide `{ modifiers: ['private','readonly','static'] }`, then it will only match something that is `private static readonly`, and something that is just `private` will not match. - - The following `modifiers` are allowed: - - `abstract`,`override`,`private`,`protected`,`readonly`,`static` - matches any member explicitly declared with the given modifier. - - `async` - matches any method, function, or function variable which is async via the `async` keyword (e.g. does not match functions that return promises without using `async` keyword) - - `const` - matches a variable declared as being `const` (`const x = 1`). - - `destructured` - matches a variable declared via an object destructuring pattern (`const {x, z = 2}`). - - Note that this does not match renamed destructured properties (`const {x: y, a: b = 2}`). - - `exported` - matches anything that is exported from the module. - - `global` - matches a variable/function declared in the top-level scope. - - `#private` - matches any member with a private identifier (an identifier that starts with `#`) - - `public` - matches any member that is either explicitly declared as `public`, or has no visibility modifier (i.e. implicitly public). - - `requiresQuotes` - matches any name that requires quotes as it is not a valid identifier (i.e. has a space, a dash, etc in it). - - `unused` - matches anything that is not used. -- `types` allows you to specify which types to match. This option supports simple, primitive types only (`array`,`boolean`,`function`,`number`,`string`). - - The name must match _one_ of the types. - - **_NOTE - Using this option will require that you lint with type information._** - - For example, this lets you do things like enforce that `boolean` variables are prefixed with a verb. - - The following `types` are allowed: - - `array` matches any type assignable to `Array | null | undefined` - - `boolean` matches any type assignable to `boolean | null | undefined` - - `function` matches any type assignable to `Function | null | undefined` - - `number` matches any type assignable to `number | null | undefined` - - `string` matches any type assignable to `string | null | undefined` - -The ordering of selectors does not matter. The implementation will automatically sort the selectors to ensure they match from most-specific to least specific. It will keep checking selectors in that order until it finds one that matches the name. See ["How does the rule automatically order selectors?"](#how-does-the-rule-automatically-order-selectors) - -#### Allowed Selectors, Modifiers and Types - -There are two types of selectors, individual selectors, and grouped selectors. - -##### Individual Selectors - -Individual Selectors match specific, well-defined sets. There is no overlap between each of the individual selectors. - -- `classicAccessor` - matches any accessor. It refers to the methods attached to `get` and `set` syntax. - - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `autoAccessor` - matches any auto-accessor. An auto-accessor is just a class field starting with an `accessor` keyword. - - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `class` - matches any class declaration. - - Allowed `modifiers`: `abstract`, `exported`, `unused`. - - Allowed `types`: none. -- `classMethod` - matches any class method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. - - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `requiresQuotes`, `static`. - - Allowed `types`: none. -- `classProperty` - matches any class property. Does not match properties that have direct function expression or arrow function expression values. - - Allowed `modifiers`: `abstract`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `enum` - matches any enum declaration. - - Allowed `modifiers`: `exported`, `unused`. - - Allowed `types`: none. -- `enumMember` - matches any enum member. - - Allowed `modifiers`: `requiresQuotes`. - - Allowed `types`: none. -- `function` - matches any named function declaration or named function expression. - - Allowed `modifiers`: `async`, `exported`, `global`, `unused`. - - Allowed `types`: none. -- `import` - matches namespace imports and default imports (i.e. does not match named imports). - - Allowed `modifiers`: `default`, `namespace`. - - Allowed `types`: none. -- `interface` - matches any interface declaration. - - Allowed `modifiers`: `exported`, `unused`. - - Allowed `types`: none. -- `objectLiteralMethod` - matches any object literal method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. - - Allowed `modifiers`: `async`, `public`, `requiresQuotes`. - - Allowed `types`: none. -- `objectLiteralProperty` - matches any object literal property. Does not match properties that have direct function expression or arrow function expression values. - - Allowed `modifiers`: `public`, `requiresQuotes`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `parameter` - matches any function parameter. Does not match parameter properties. - - Allowed `modifiers`: `destructured`, `unused`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `parameterProperty` - matches any parameter property. - - Allowed `modifiers`: `private`, `protected`, `public`, `readonly`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `typeAlias` - matches any type alias declaration. - - Allowed `modifiers`: `exported`, `unused`. - - Allowed `types`: none. -- `typeMethod` - matches any object type method. Also matches properties that have direct function expression or arrow function expression values. Does not match accessors. - - Allowed `modifiers`: `public`, `requiresQuotes`. - - Allowed `types`: none. -- `typeParameter` - matches any generic type parameter declaration. - - Allowed `modifiers`: `unused`. - - Allowed `types`: none. -- `typeProperty` - matches any object type property. Does not match properties that have direct function expression or arrow function expression values. - - Allowed `modifiers`: `public`, `readonly`, `requiresQuotes`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `variable` - matches any `const` / `let` / `var` variable name. - - Allowed `modifiers`: `async`, `const`, `destructured`, `exported`, `global`, `unused`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. - -##### Group Selectors - -Group Selectors are provided for convenience, and essentially bundle up sets of individual selectors. - -- `default` - matches everything. - - Allowed `modifiers`: all modifiers. - - Allowed `types`: none. -- `accessor` - matches the same as `classicAccessor` and `autoAccessor`. - - Allowed `modifiers`: `abstract`, `override`, `private`, `protected`, `public`, `requiresQuotes`, `static`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `memberLike` - matches the same as `classicAccessor`, `autoAccessor`, `enumMember`, `method`, `parameterProperty`, `property`. - - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. - - Allowed `types`: none. -- `method` - matches the same as `classMethod`, `objectLiteralMethod`, `typeMethod`. - - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. - - Allowed `types`: none. -- `property` - matches the same as `classProperty`, `objectLiteralProperty`, `typeProperty`. - - Allowed `modifiers`: `abstract`, `async`, `override`, `#private`, `private`, `protected`, `public`, `readonly`, `requiresQuotes`, `static`. - - Allowed `types`: `array`, `boolean`, `function`, `number`, `string`. -- `typeLike` - matches the same as `class`, `enum`, `interface`, `typeAlias`, `typeParameter`. - - Allowed `modifiers`: `abstract`, `unused`. - - Allowed `types`: none. -- `variableLike` - matches the same as `function`, `parameter` and `variable`. - - Allowed `modifiers`: `async`, `unused`. - - Allowed `types`: none. - -## FAQ - -This is a big rule, and there's a lot of docs. Here are a few clarifications that people often ask about or figure out via trial-and-error. - -### How does the rule evaluate a selector? - -Each selector is checked in the following way: - -1. check the `filter` - 1. if `filter` is omitted → skip this step. - 2. if the name matches the `filter` → continue evaluating this selector. - 3. if the name does not match the `filter` → skip this selector and continue to the next selector. -2. check the `selector` - 1. if `selector` is one individual selector → the name's type must be of that type. - 2. if `selector` is a group selector → the name's type must be one of the grouped types. - 3. if `selector` is an array of selectors → apply the above for each selector in the array. -3. check the `types` - 1. if `types` is omitted → skip this step. - 2. if the name has a type in `types` → continue evaluating this selector. - 3. if the name does not have a type in `types` → skip this selector and continue to the next selector. - -A name is considered to pass the config if it: - -1. Matches one selector and passes all of that selector's format checks. -2. Matches no selectors. - -A name is considered to fail the config if it matches one selector and fails one that selector's format checks. - -### How does the rule automatically order selectors? - -Each identifier should match exactly one selector. It may match multiple group selectors - but only ever one selector. -With that in mind - the base sort order works out to be: - -1. Individual Selectors -2. Grouped Selectors -3. Default Selector - -Within each of these categories, some further sorting occurs based on what selector options are supplied: - -1. `filter` is given the highest priority above all else. -2. `types` -3. `modifiers` -4. everything else - -For example, if you provide the following config: - -```ts -[ - /* 1 */ { selector: 'default', format: ['camelCase'] }, - /* 2 */ { selector: 'variable', format: ['snake_case'] }, - /* 3 */ { selector: 'variable', types: ['boolean'], format: ['UPPER_CASE'] }, - /* 4 */ { selector: 'variableLike', format: ['PascalCase'] }, -]; -``` - -Then for the code `const x = 1`, the rule will validate the selectors in the following order: `3`, `2`, `4`, `1`. -To clearly spell it out: - -- (3) is tested first because it has `types` and is an individual selector. -- (2) is tested next because it is an individual selector. -- (4) is tested next as it is a grouped selector. -- (1) is tested last as it is the base default selector. - -Its worth noting that whilst this order is applied, all selectors may not run on a name. -This is explained in ["How does the rule evaluate a name's format?"](#how-does-the-rule-evaluate-a-names-format) - -### How does the rule evaluate a name's format? - -When the format of an identifier is checked, it is checked in the following order: - -1. validate leading underscore -1. validate trailing underscore -1. validate prefix -1. validate suffix -1. validate custom -1. validate format - -For steps 1-4, if the identifier matches the option, the matching part will be removed. -This is done so that you can apply formats like PascalCase without worrying about prefixes or underscores causing it to not match. - -One final note is that if the name were to become empty via this trimming process, it is considered to match all `format`s. An example of where this might be useful is for generic type parameters, where you want all names to be prefixed with `T`, but also want to allow for the single character `T` name. - -Here are some examples to help illustrate - -Name: `_IMyInterface` -Selector: - -```json -{ - "leadingUnderscore": "require", - "prefix": ["I"], - "format": ["UPPER_CASE", "StrictPascalCase"] -} -``` - -1. `name = _IMyInterface` -1. validate leading underscore - 1. config is provided - 1. check name → pass - 1. Trim underscore → `name = IMyInterface` -1. validate trailing underscore - 1. config is not provided → skip -1. validate prefix - 1. config is provided - 1. check name → pass - 1. Trim prefix → `name = MyInterface` -1. validate suffix - 1. config is not provided → skip -1. validate custom - 1. config is not provided → skip -1. validate format - 1. for each format... - 1. `format = 'UPPER_CASE'` - 1. check format → fail. - - Important to note that if you supply multiple formats - the name only needs to match _one_ of them! - 1. `format = 'StrictPascalCase'` - 1. check format → success. -1. **_success_** - -Name: `IMyInterface` -Selector: - -```json -{ - "format": ["StrictPascalCase"], - "trailingUnderscore": "allow", - "custom": { - "regex": "^I[A-Z]", - "match": false - } -} -``` - -1. `name = IMyInterface` -1. validate leading underscore - 1. config is not provided → skip -1. validate trailing underscore - 1. config is provided - 1. check name → pass - 1. Trim underscore → `name = IMyInterface` -1. validate prefix - 1. config is not provided → skip -1. validate suffix - 1. config is not provided → skip -1. validate custom - 1. config is provided - 1. `regex = new RegExp("^I[A-Z]")` - 1. `regex.test(name) === custom.match` - 1. **_fail_** → report and exit - -### What happens if I provide a `modifiers` to a Group Selector? - -Some group selectors accept `modifiers`. For the most part these will work exactly the same as with individual selectors. -There is one exception to this in that a modifier might not apply to all individual selectors covered by a group selector. - -For example - `memberLike` includes the `enumMember` selector, and it allows the `protected` modifier. -An `enumMember` can never ever be `protected`, which means that the following config will never match any `enumMember`: - -```json -{ - "selector": "memberLike", - "modifiers": ["protected"] -} -``` - -To help with matching, members that cannot specify an accessibility will always have the `public` modifier. This means that the following config will always match any `enumMember`: - -```json -{ - "selector": "memberLike", - "modifiers": ["public"] -} -``` - -## Examples - -### Enforce that all variables, functions and properties follow are camelCase - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { "selector": "variableLike", "format": ["camelCase"] } - ] -} -``` - -### Enforce that private members are prefixed with an underscore - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "memberLike", - "modifiers": ["private"], - "format": ["camelCase"], - "leadingUnderscore": "require" - } - ] -} -``` - -### Enforce that boolean variables are prefixed with an allowed verb - -**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, thus PascalCase must be used to allow variables such as `isEnabled`. - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "variable", - "types": ["boolean"], - "format": ["PascalCase"], - "prefix": ["is", "should", "has", "can", "did", "will"] - } - ] -} -``` - -### Enforce that all variables are either in camelCase or UPPER_CASE - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "variable", - "format": ["camelCase", "UPPER_CASE"] - } - ] -} -``` - -### Enforce that all const variables are in UPPER_CASE - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "variable", - "modifiers": ["const"], - "format": ["UPPER_CASE"] - } - ] -} -``` - -### Enforce that type parameters (generics) are prefixed with `T` - -This allows you to emulate the old `generic-type-naming` rule. - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "typeParameter", - "format": ["PascalCase"], - "prefix": ["T"] - } - ] -} -``` - -### Enforce that interface names do not begin with an `I` - -This allows you to emulate the old `interface-name-prefix` rule. - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "interface", - "format": ["PascalCase"], - "custom": { - "regex": "^I[A-Z]", - "match": false - } - } - ] -} -``` - -### Enforce that function names are either in camelCase or PascalCase - -Function names are typically camelCase, but UI library components (especially JSX, such as React and Solid) use PascalCase to distinguish them from intrinsic elements. If you are writing function components, consider allowing both camelCase and PascalCase for functions. - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "function", - "format": ["camelCase", "PascalCase"] - } - ] -} -``` - -### Enforce that variable and function names are in camelCase - -This allows you to lint multiple type with same pattern. - -```json -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": ["variable", "function"], - "format": ["camelCase"], - "leadingUnderscore": "allow" - } - ] -} -``` - -### Ignore properties that **_require_** quotes - -Sometimes you have to use a quoted name that breaks the convention (for example, HTTP headers). -If this is a common thing in your codebase, then you have a few options. - -If you simply want to allow all property names that require quotes, you can use the `requiresQuotes` modifier to match any property name that _requires_ quoting, and use `format: null` to ignore the name. - -```jsonc -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": [ - "classProperty", - "objectLiteralProperty", - "typeProperty", - "classMethod", - "objectLiteralMethod", - "typeMethod", - "accessor", - "enumMember", - ], - "format": null, - "modifiers": ["requiresQuotes"], - }, - ], -} -``` - -If you have a small and known list of exceptions, you can use the `filter` option to ignore these specific names only: - -```jsonc -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "property", - "format": ["strictCamelCase"], - "filter": { - // you can expand this regex to add more allowed names - "regex": "^(Property-Name-One|Property-Name-Two)$", - "match": false, - }, - }, - ], -} -``` - -You can use the `filter` option to ignore names with specific characters: - -```jsonc -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "property", - "format": ["strictCamelCase"], - "filter": { - // you can expand this regex as you find more cases that require quoting that you want to allow - "regex": "[- ]", - "match": false, - }, - }, - ], -} -``` - -Note that there is no way to ignore any name that is quoted - only names that are required to be quoted. -This is intentional - adding quotes around a name is not an escape hatch for proper naming. -If you want an escape hatch for a specific name - you should can use an [`eslint-disable` comment](https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments). - -### Ignore destructured names - -Sometimes you might want to allow destructured properties to retain their original name, even if it breaks your naming convention. - -You can use the `destructured` modifier to match these names, and explicitly set `format: null` to apply no formatting: - -```jsonc -{ - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "variable", - "modifiers": ["destructured"], - "format": null, - }, - ], -} -``` - -### Enforce the codebase follows ESLint's `camelcase` conventions - -```json -{ - "camelcase": "off", - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "default", - "format": ["camelCase"] - }, - - { - "selector": "variable", - "format": ["camelCase", "UPPER_CASE"] - }, - { - "selector": "parameter", - "format": ["camelCase"], - "leadingUnderscore": "allow" - }, - - { - "selector": "memberLike", - "modifiers": ["private"], - "format": ["camelCase"], - "leadingUnderscore": "require" - }, - - { - "selector": "typeLike", - "format": ["PascalCase"] - } - ] -} -``` - -## When Not To Use It - -This rule can be very strict. -If you don't have strong needs for enforcing naming conventions, we recommend using it only to flag very egregious violations of your naming standards. -Consider documenting your naming conventions and enforcing them in code review if you have processes like that. - -If you do not want to enforce naming conventions for anything, you can disable this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend that if you care about naming conventions, pick a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx deleted file mode 100644 index d2349186..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -description: 'Disallow generic `Array` constructors.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-array-constructor** for documentation. - -This rule extends the base [`eslint/no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) rule. -It adds support for the generically typed `Array` constructor (`new Array()`). - - - - -```ts -Array(0, 1, 2); -new Array(0, 1, 2); -``` - - - - -```ts -Array(0, 1, 2); -new Array(x, y, z); - -Array(500); -new Array(someOtherArray.length); -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx deleted file mode 100644 index 38e170fc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-delete.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: 'Disallow using the `delete` operator on array values.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-array-delete** for documentation. - -When using the `delete` operator with an array value, the array's `length` property is not affected, -but the element at the specified index is removed and leaves an empty slot in the array. -This is likely to lead to unexpected behavior. As mentioned in the -[MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#deleting_array_elements), -the recommended way to remove an element from an array is by using the -[`Array#splice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) method. - -## Examples - - - - -```ts -declare const arr: number[]; - -delete arr[0]; -``` - - - - -```ts -declare const arr: number[]; - -arr.splice(0, 1); -``` - - - - -## When Not To Use It - -When you want to allow the delete operator with array expressions. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx deleted file mode 100644 index f959897d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.mdx +++ /dev/null @@ -1,94 +0,0 @@ ---- -description: 'Require `.toString()` to only be called on objects which provide useful information when stringified.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-base-to-string** for documentation. - -JavaScript will call `toString()` on an object when it is converted to a string, such as when `+` adding to a string or in `${}` template literals. -The default Object `.toString()` uses the format `"[object Object]"`, which is often not what was intended. -This rule reports on stringified values that aren't primitives and don't define a more useful `.toString()` method. - -> Note that `Function` provides its own `.toString()` that returns the function's code. -> Functions are not flagged by this rule. - -## Examples - - - - -```ts -// Passing an object or class instance to string concatenation: -'' + {}; - -class MyClass {} -const value = new MyClass(); -value + ''; - -// Interpolation and manual .toString() calls too: -`Value: ${value}`; -({}).toString(); -``` - - - - -```ts -// These types all have useful .toString()s -'Text' + true; -`Value: ${123}`; -`Arrays too: ${[1, 2, 3]}`; -(() => {}).toString(); - -// Defining a custom .toString class is considered acceptable -class CustomToString { - toString() { - return 'Hello, world!'; - } -} -`Value: ${new CustomToString()}`; - -const literalWithToString = { - toString: () => 'Hello, world!', -}; - -`Value: ${literalWithToString}`; -``` - - - - -## Options - -### `ignoredTypeNames` - -A string array of type names to ignore, this is useful for types missing `toString()` (but actually has `toString()`). -There are some types missing `toString()` in old version TypeScript, like `RegExp`, `URL`, `URLSearchParams` etc. - -The following patterns are considered correct with the default options `{ ignoredTypeNames: ["RegExp"] }`: - -```ts option='{ "ignoredTypeNames": ["RegExp"] }' showPlaygroundButton -`${/regex/}`; -'' + /regex/; -/regex/.toString(); -let value = /regex/; -value.toString(); -let text = `${value}`; -``` - -## When Not To Use It - -If you don't mind a risk of `"[object Object]"` or incorrect type coercions in your values, then you will not need this rule. - -## Related To - -- [`restrict-plus-operands`](./restrict-plus-operands.mdx) -- [`restrict-template-expressions`](./restrict-template-expressions.mdx) - -## Further Reading - -- [`Object.prototype.toString()` MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx deleted file mode 100644 index 0ff48e14..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx +++ /dev/null @@ -1,62 +0,0 @@ ---- -description: 'Disallow non-null assertion in locations that may be confusing.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-confusing-non-null-assertion** for documentation. - -Using a non-null assertion (`!`) next to an assign or equals check (`=` or `==` or `===`) creates code that is confusing as it looks similar to a not equals check (`!=` `!==`). - -```typescript -a! == b; // a non-null assertions(`!`) and an equals test(`==`) -a !== b; // not equals test(`!==`) -a! === b; // a non-null assertions(`!`) and an triple equals test(`===`) -``` - -This rule flags confusing `!` assertions and suggests either removing them or wrapping the asserted expression in `()` parenthesis. - -## Examples - - - - -```ts -interface Foo { - bar?: string; - num?: number; -} - -const foo: Foo = getFoo(); -const isEqualsBar = foo.bar! == 'hello'; -const isEqualsNum = 1 + foo.num! == 2; -``` - - - - -{/* prettier-ignore */} -```ts -interface Foo { - bar?: string; - num?: number; -} - -const foo: Foo = getFoo(); -const isEqualsBar = foo.bar == 'hello'; -const isEqualsNum = (1 + foo.num!) == 2; -``` - - - - -## When Not To Use It - -If you don't care about this confusion, then you will not need this rule. - -## Further Reading - -- [`Issue: Easy misunderstanding: "! ==="`](https://github.com/microsoft/TypeScript/issues/37837) in [TypeScript repo](https://github.com/microsoft/TypeScript) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx deleted file mode 100644 index 043b0752..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -description: 'Require expressions of type void to appear in statement position.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-confusing-void-expression** for documentation. - -`void` in TypeScript refers to a function return that is meant to be ignored. -Attempting to use a `void`-typed value, such as storing the result of a called function in a variable, is often a sign of a programmer error. -`void` can also be misleading for other developers even if used correctly. - -This rule prevents `void` type expressions from being used in misleading locations such as being assigned to a variable, provided as a function argument, or returned from a function. - -## Examples - - - - -```ts -// somebody forgot that `alert` doesn't return anything -const response = alert('Are you sure?'); -console.log(alert('Are you sure?')); - -// it's not obvious whether the chained promise will contain the response (fixable) -promise.then(value => window.postMessage(value)); - -// it looks like we are returning the result of `console.error` (fixable) -function doSomething() { - if (!somethingToDo) { - return console.error('Nothing to do!'); - } - - console.log('Doing a thing...'); -} -``` - - - - -```ts -// just a regular void function in a statement position -alert('Hello, world!'); - -// this function returns a boolean value so it's ok -const response = confirm('Are you sure?'); -console.log(confirm('Are you sure?')); - -// now it's obvious that `postMessage` doesn't return any response -promise.then(value => { - window.postMessage(value); -}); - -// now it's explicit that we want to log the error and return early -function doSomething() { - if (!somethingToDo) { - console.error('Nothing to do!'); - return; - } - - console.log('Doing a thing...'); -} - -// using logical expressions for their side effects is fine -cond && console.log('true'); -cond || console.error('false'); -cond ? console.log('true') : console.error('false'); -``` - - - - -## Options - -### `ignoreArrowShorthand` - -It might be undesirable to wrap every arrow function shorthand expression with braces. -Especially when using Prettier formatter, which spreads such code across 3 lines instead of 1. - -Examples of additional **correct** code with this option enabled: - -```ts option='{ "ignoreArrowShorthand": true }' showPlaygroundButton -promise.then(value => window.postMessage(value)); -``` - -### `ignoreVoidOperator` - -It might be preferable to only use some distinct syntax -to explicitly mark the confusing but valid usage of void expressions. -This option allows void expressions which are explicitly wrapped in the `void` operator. -This can help avoid confusion among other developers as long as they are made aware of this code style. - -This option also changes the automatic fixes for common cases to use the `void` operator. -It also enables a suggestion fix to wrap the void expression with `void` operator for every problem reported. - -Examples of additional **correct** code with this option enabled: - -```ts option='{ "ignoreVoidOperator": true }' showPlaygroundButton -// now it's obvious that we don't expect any response -promise.then(value => void window.postMessage(value)); - -// now it's explicit that we don't want to return anything -function doSomething() { - if (!somethingToDo) { - return void console.error('Nothing to do!'); - } - - console.log('Doing a thing...'); -} - -// we are sure that we want to always log `undefined` -console.log(void alert('Hello, world!')); -``` - -## When Not To Use It - -The return type of a function can be inspected by going to its definition or hovering over it in an IDE. -If you don't care about being explicit about the void type in actual code then don't use this rule. -Also, if you strongly prefer a concise coding style more strongly than any fear of `void`-related bugs then you can avoid this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx deleted file mode 100644 index 804479b2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -description: 'Disallow duplicate class members.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-dupe-class-members** for documentation. - -import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; - - - -This rule extends the base [`eslint/no-dupe-class-members`](https://eslint.org/docs/rules/no-dupe-class-members) rule. -It adds support for TypeScript's method overload definitions. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx deleted file mode 100644 index 65162a62..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx +++ /dev/null @@ -1,64 +0,0 @@ ---- -description: 'Disallow duplicate enum member values.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-duplicate-enum-values** for documentation. - -Although TypeScript supports duplicate enum member values, people usually expect members to have unique values within the same enum. Duplicate values can lead to bugs that are hard to track down. - -## Examples - -This rule disallows defining an enum with multiple members initialized to the same value. - -> This rule only enforces on enum members initialized with string or number literals. -> Members without an initializer or initialized with an expression are not checked by this rule. - - - - -```ts -enum E { - A = 0, - B = 0, -} -``` - -```ts -enum E { - A = 'A', - B = 'A', -} -``` - - - - -```ts -enum E { - A = 0, - B = 1, -} -``` - -```ts -enum E { - A = 'A', - B = 'B', -} -``` - - - - -## When Not To Use It - -It can sometimes be useful to include duplicate enum members for very specific use cases. -For example, when renaming an enum member, it can sometimes be useful to keep the old name until a scheduled major breaking change. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -In general, if your project intentionally duplicates enum member values, you can avoid this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx deleted file mode 100644 index 45ec178a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-imports.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been deprecated in favour of the [`import/no-duplicates`](https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-duplicates.md) rule. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx deleted file mode 100644 index bc7be7e4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx +++ /dev/null @@ -1,76 +0,0 @@ ---- -description: 'Disallow duplicate constituents of union or intersection types.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-duplicate-type-constituents** for documentation. - -TypeScript supports types ("constituents") within union and intersection types being duplicates of each other. -However, developers typically expect each constituent to be unique within its intersection or union. -Duplicate values make the code overly verbose and generally reduce readability. - -This rule disallows duplicate union or intersection constituents. -We consider types to be duplicate if they evaluate to the same result in the type system. -For example, given `type A = string` and `type T = string | A`, this rule would flag that `A` is the same type as `string`. - - - - -```ts -type T1 = 'A' | 'A'; - -type T2 = string | string | number; - -type T3 = { a: string } & { a: string }; - -type T4 = [1, 2, 3] | [1, 2, 3]; - -type StringA = string; -type StringB = string; -type T5 = StringA | StringB; -``` - - - - -```ts -type T1 = 'A' | 'B'; - -type T2 = string | number | boolean; - -type T3 = { a: string } & { b: string }; - -type T4 = [1, 2, 3] | [1, 2, 3, 4]; - -type StringA = string; -type NumberB = number; -type T5 = StringA | NumberB; -``` - - - - -## Options - -### `ignoreIntersections` - -When set to true, duplicate checks on intersection type constituents are ignored. - -### `ignoreUnions` - -When set to true, duplicate checks on union type constituents are ignored. - -## When Not To Use It - -It can sometimes be useful for the sake of documentation to include aliases for the same type. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -> In some of those cases, [branded types](https://basarat.gitbook.io/typescript/main-1/nominaltyping#using-interfaces) might be a type-safe way to represent the underlying data types. - -## Related To - -- [no-redundant-type-constituents](./no-redundant-type-constituents.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx deleted file mode 100644 index 0bd7d414..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dynamic-delete.mdx +++ /dev/null @@ -1,64 +0,0 @@ ---- -description: 'Disallow using the `delete` operator on computed key expressions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-dynamic-delete** for documentation. - -Deleting dynamically computed keys can be dangerous and in some cases not well optimized. -Using the `delete` operator on keys that aren't runtime constants could be a sign that you're using the wrong data structures. -Consider using a `Map` or `Set` if you’re using an object as a key-value collection. - -Dynamically adding and removing keys from objects can cause occasional edge case bugs. For example, some objects use "hidden properties" (such as `__data`) for private storage, and deleting them can break the object's internal state. Furthermore, [`delete`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete) cannot remove inherited properties or non-configurable properties. This makes it interact badly with anything more complicated than a plain object: - -- The [`length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length) of an array is non-configurable, and deleting it is a runtime error. -- You can't remove properties on the prototype of an object, such as deleting methods from class instances. -- Sometimes, `delete` only removes the own property, leaving the inherited property intact. For example, deleting the [`name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property of a function only removes the own property, but there's also a `Function.prototype.name` property that remains. - -## Examples - - - - -```ts -// Dynamic, difficult-to-reason-about lookups -const name = 'name'; -delete container[name]; -delete container[name.toUpperCase()]; -``` - - - - -```ts -const container: { [i: string]: number } = { - /* ... */ -}; - -// Constant runtime lookups by string index -delete container.aaa; - -// Constants that must be accessed by [] -delete container[7]; -delete container[-1]; - -// All strings are allowed, to be compatible with the noPropertyAccessFromIndexSignature -// TS compiler option -delete container['aaa']; -delete container['Infinity']; -``` - - - - -## When Not To Use It - -When you know your keys are safe to delete, this rule can be unnecessary. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -Do not consider this rule as performance advice before profiling your code's bottlenecks. -Even repeated minor performance slowdowns likely do not significantly affect your application's general perceived speed. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx deleted file mode 100644 index 9da88ae0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.mdx +++ /dev/null @@ -1,95 +0,0 @@ ---- -description: 'Disallow empty functions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-empty-function** for documentation. - -This rule extends the base [`eslint/no-empty-function`](https://eslint.org/docs/rules/no-empty-function) rule. -It adds support for handling TypeScript specific code that would otherwise trigger the rule. - -One example of valid TypeScript specific code that would otherwise trigger the `no-empty-function` rule is the use of [parameter properties](https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties) in constructor functions. - -## Options - -This rule adds the following options: - -```ts -type AdditionalAllowOptionEntries = - | 'private-constructors' - | 'protected-constructors' - | 'decoratedFunctions' - | 'overrideMethods'; - -type AllowOptionEntries = - | BaseNoEmptyFunctionAllowOptionEntries - | AdditionalAllowOptionEntries; - -interface Options extends BaseNoEmptyFunctionOptions { - allow?: Array; -} -const defaultOptions: Options = { - ...baseNoEmptyFunctionDefaultOptions, - allow: [], -}; -``` - -### allow: `private-constructors` - -Examples of correct code for the `{ "allow": ["private-constructors"] }` option: - -```ts option='{ "allow": ["private-constructors"] }' showPlaygroundButton -class Foo { - private constructor() {} -} -``` - -### allow: `protected-constructors` - -Examples of correct code for the `{ "allow": ["protected-constructors"] }` option: - -```ts option='{ "allow": ["protected-constructors"] }' showPlaygroundButton -class Foo { - protected constructor() {} -} -``` - -### allow: `decoratedFunctions` - -Examples of correct code for the `{ "allow": ["decoratedFunctions"] }` option: - -```ts option='{ "allow": ["decoratedFunctions"] }' showPlaygroundButton -class Foo { - @decorator() - foo() {} -} -``` - -### allow: `overrideMethods` - -Examples of correct code for the `{ "allow": ["overrideMethods"] }` option: - -```ts option='{ "allow": ["overrideMethods"] }' showPlaygroundButton -abstract class Base { - protected greet(): void { - console.log('Hello!'); - } -} - -class Foo extends Base { - protected override greet(): void {} -} -``` - -## When Not To Use It - -If you are working with external APIs that require functions even if they do nothing, then you may want to avoid this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -Test code often violates this rule as well. -If your testing setup doesn't support "mock" or "spy" functions such as [`jest.fn()`](https://jestjs.io/docs/mock-functions), [`sinon.spy()`](https://sinonjs.org/releases/latest/spies), or [`vi.fn()`](https://vitest.dev/guide/mocking.html), you may wish to disable this rule in test files. -Again, if those cases aren't extremely common, you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule in test files. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx deleted file mode 100644 index 733d8b39..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-interface.mdx +++ /dev/null @@ -1,73 +0,0 @@ ---- -description: 'Disallow the declaration of empty interfaces.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-empty-interface** for documentation. - -:::danger Deprecated - -This rule has been deprecated in favour of the more comprehensive [`@typescript-eslint/no-empty-object-type`](./no-empty-object-type.mdx) rule. - -::: - -An empty interface in TypeScript does very little: any non-nullable value is assignable to `{}`. -Using an empty interface is often a sign of programmer error, such as misunderstanding the concept of `{}` or forgetting to fill in fields. - -This rule aims to ensure that only meaningful interfaces are declared in the code. - -## Examples - - - - -```ts -// an empty interface -interface Foo {} - -// an interface with only one supertype (Bar === Foo) -interface Bar extends Foo {} - -// an interface with an empty list of supertypes -interface Baz {} -``` - - - - -```ts -// an interface with any number of members -interface Foo { - name: string; -} - -// same as above -interface Bar { - age: number; -} - -// an interface with more than one supertype -// in this case the interface can be used as a replacement of an intersection type. -interface Baz extends Foo, Bar {} -``` - - - - -## Options - -### `allowSingleExtends` - -`allowSingleExtends: true` will silence warnings about extending a single interface without adding additional members - -## When Not To Use It - -If you don't care about having empty/meaningless interfaces, then you will not need this rule. - -## Related To - -- [`no-empty-object-type`](./no-empty-object-type.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx deleted file mode 100644 index 8bf941a6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-object-type.mdx +++ /dev/null @@ -1,145 +0,0 @@ ---- -description: 'Disallow accidentally using the "empty object" type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-empty-object-type** for documentation. - -The `{}`, or "empty object" type in TypeScript is a common source of confusion for developers unfamiliar with TypeScript's structural typing. -`{}` represents any _non-nullish value_, including literals like `0` and `""`: - -```ts -let anyNonNullishValue: {} = 'Intentionally allowed by TypeScript.'; -``` - -Often, developers writing `{}` actually mean either: - -- `object`: representing any _object_ value -- `unknown`: representing any value at all, including `null` and `undefined` - -In other words, the "empty object" type `{}` really means _"any value that is defined"_. -That includes arrays, class instances, functions, and primitives such as `string` and `symbol`. - -To avoid confusion around the `{}` type allowing any _non-nullish value_, this rule bans usage of the `{}` type. -That includes interfaces and object type aliases with no fields. - -:::tip -If you do have a use case for an API allowing `{}`, you can always configure the [rule's options](#options), use an [ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1), or [disable the rule in your ESLint config](https://eslint.org/docs/latest/use/configure/rules#using-configuration-files-1). -::: - -Note that this rule does not report on: - -- `{}` as a type constituent in an intersection type (e.g. types like TypeScript's built-in `type NonNullable = T & {}`), as this can be useful in type system operations. -- Interfaces that extend from multiple other interfaces. - -## Examples - - - - -```ts -let anyObject: {}; -let anyValue: {}; - -interface AnyObjectA {} -interface AnyValueA {} - -type AnyObjectB = {}; -type AnyValueB = {}; -``` - - - - -```ts -let anyObject: object; -let anyValue: unknown; - -type AnyObjectA = object; -type AnyValueA = unknown; - -type AnyObjectB = object; -type AnyValueB = unknown; - -let objectWith: { property: boolean }; - -interface InterfaceWith { - property: boolean; -} - -type TypeWith = { property: boolean }; -``` - - - - -## Options - -By default, this rule flags both interfaces and object types. - -### `allowInterfaces` - -Whether to allow empty interfaces, as one of: - -- `'always'`: to always allow interfaces with no fields -- `'never'` _(default)_: to never allow interfaces with no fields -- `'with-single-extends'`: to allow empty interfaces that `extend` from a single base interface - -Examples of **correct** code for this rule with `{ allowInterfaces: 'with-single-extends' }`: - -```ts option='{ "allowInterfaces": "with-single-extends" }' showPlaygroundButton -interface Base { - value: boolean; -} - -interface Derived extends Base {} -``` - -### `allowObjectTypes` - -Whether to allow empty object type literals, as one of: - -- `'always'`: to always allow object type literals with no fields -- `'never'` _(default)_: to never allow object type literals with no fields - -### `allowWithName` - -A stringified regular expression to allow interfaces and object type aliases with the configured name. -This can be useful if your existing code style includes a pattern of declaring empty types with `{}` instead of `object`. - -Examples of code for this rule with `{ allowWithName: 'Props$' }`: - - - - -```ts option='{ "allowWithName": "Props$" }' showPlaygroundButton -interface InterfaceValue {} - -type TypeValue = {}; -``` - - - - -```ts option='{ "allowWithName": "Props$" }' showPlaygroundButton -interface InterfaceProps {} - -type TypeProps = {}; -``` - - - - -## When Not To Use It - -If your code commonly needs to represent the _"any non-nullish value"_ type, this rule may not be for you. -Projects that extensively use type operations such as conditional types and mapped types oftentimes benefit from disabling this rule. - -## Further Reading - -- [Enhancement: [ban-types] Split the {} ban into a separate, better-phrased rule](https://github.com/typescript-eslint/typescript-eslint/issues/8700) -- [The Empty Object Type in TypeScript](https://www.totaltypescript.com/the-empty-object-type-in-typescript) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx deleted file mode 100644 index 52f7108d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.mdx +++ /dev/null @@ -1,174 +0,0 @@ ---- -description: 'Disallow the `any` type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-explicit-any** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. -This rule reports on explicit uses of the `any` keyword as a type annotation. - -Preferable alternatives to `any` include: - -- If the type is known, describing it in an `interface` or `type` -- If the type is not known, using the safer `unknown` type - -> TypeScript's `--noImplicitAny` compiler option prevents an implied `any`, but doesn't prevent `any` from being explicitly used the way this rule does. - -## Examples - - - - -```ts -const age: any = 'seventeen'; -``` - -```ts -const ages: any[] = ['seventeen']; -``` - -```ts -const ages: Array = ['seventeen']; -``` - -```ts -function greet(): any {} -``` - -```ts -function greet(): any[] {} -``` - -```ts -function greet(): Array {} -``` - -```ts -function greet(): Array> {} -``` - -```ts -function greet(param: Array): string {} -``` - -```ts -function greet(param: Array): Array {} -``` - - - - -```ts -const age: number = 17; -``` - -```ts -const ages: number[] = [17]; -``` - -```ts -const ages: Array = [17]; -``` - -```ts -function greet(): string {} -``` - -```ts -function greet(): string[] {} -``` - -```ts -function greet(): Array {} -``` - -```ts -function greet(): Array> {} -``` - -```ts -function greet(param: Array): string {} -``` - -```ts -function greet(param: Array): Array {} -``` - - - - -## Options - -### `fixToUnknown` - -By default, this rule will not provide automatic ESLint _fixes_: only opt-in _suggestions_. -Switching types to `unknown` is safer but is likely to cause additional type errors. - -Enabling `{ "fixToUnknown": true }` gives the rule an auto-fixer to replace `: any` with `: unknown`. - -### `ignoreRestArgs` - -A boolean to specify if arrays from the rest operator are considered okay. `false` by default. - -The examples below are **incorrect** when `{ignoreRestArgs: false}`, but **correct** when `{ignoreRestArgs: true}`. - -```ts option='{ "ignoreRestArgs": false }' showPlaygroundButton -function foo1(...args: any[]): void {} -function foo2(...args: readonly any[]): void {} -function foo3(...args: Array): void {} -function foo4(...args: ReadonlyArray): void {} - -declare function bar(...args: any[]): void; - -const baz = (...args: any[]) => {}; -const qux = function (...args: any[]) {}; - -type Quux = (...args: any[]) => void; -type Quuz = new (...args: any[]) => void; - -interface Grault { - (...args: any[]): void; -} -interface Corge { - new (...args: any[]): void; -} -interface Garply { - f(...args: any[]): void; -} -``` - -## When Not To Use It - -`any` is always a dangerous escape hatch. -Whenever possible, it is always safer to avoid it. -TypeScript's `unknown` is almost always preferable to `any`. - -However, there are occasional situations where it can be necessary to use `any`. -Most commonly: - -- If your project isn't fully onboarded to TypeScript yet, `any` can be temporarily used in places where types aren't yet known or representable -- If an external package doesn't yet have typings and you want to use `any` pending adding a `.d.ts` for it -- You're working with particularly complex or nuanced code that can't yet be represented in the TypeScript type system - -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-unsafe-argument`](./no-unsafe-argument.mdx) -- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) -- [`no-unsafe-call`](./no-unsafe-call.mdx) -- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) -- [`no-unsafe-return`](./no-unsafe-return.mdx) - -## Further Reading - -- TypeScript [`any` type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any) -- TypeScript's [`unknown` type](https://www.typescriptlang.org/docs/handbook/2/functions.html#unknown) -- TypeScript [`any` type documentation](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any) -- TypeScript [`unknown` type release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#new-unknown-top-type) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx deleted file mode 100644 index 5f108b7c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: 'Disallow extra non-null assertions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-extra-non-null-assertion** for documentation. - -The `!` non-null assertion operator in TypeScript is used to assert that a value's type does not include `null` or `undefined`. -Using the operator any more than once on a single value does nothing. - -## Examples - - - - -```ts -const foo: { bar: number } | null = null; -const bar = foo!!!.bar; -``` - -```ts -function foo(bar: number | undefined) { - const bar: number = bar!!!; -} -``` - -```ts -function foo(bar?: { n: number }) { - return bar!?.n; -} -``` - - - - -```ts -const foo: { bar: number } | null = null; -const bar = foo!.bar; -``` - -```ts -function foo(bar: number | undefined) { - const bar: number = bar!; -} -``` - -```ts -function foo(bar?: { n: number }) { - return bar?.n; -} -``` - - - - -{/* Intentionally Omitted: When Not To Use It */} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx deleted file mode 100644 index 0966be09..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.mdx +++ /dev/null @@ -1,329 +0,0 @@ ---- -description: 'Disallow classes used as namespaces.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-extraneous-class** for documentation. - -This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace. - -Users who come from a [OOP](https://en.wikipedia.org/wiki/Object-oriented_programming) paradigm may wrap their utility functions in an extra class, instead of putting them at the top level of an ECMAScript module. -Doing so is generally unnecessary in JavaScript and TypeScript projects. - -- Wrapper classes add extra cognitive complexity to code without adding any structural improvements - - Whatever would be put on them, such as utility functions, are already organized by virtue of being in a module. - - As an alternative, you can `import * as ...` the module to get all of them in a single object. -- IDEs can't provide as good suggestions for static class or namespace imported properties when you start typing property names -- It's more difficult to statically analyze code for unused variables, etc. when they're all on the class (see: [Finding dead code (and dead types) in TypeScript](https://effectivetypescript.com/2020/10/20/tsprune)). - -This rule also reports classes that have only a constructor and no fields. -Those classes can generally be replaced with a standalone function. - -## Examples - - - - -```ts -class StaticConstants { - static readonly version = 42; - - static isProduction() { - return process.env.NODE_ENV === 'production'; - } -} - -class HelloWorldLogger { - constructor() { - console.log('Hello, world!'); - } -} - -abstract class Foo {} -``` - - - - -```ts -export const version = 42; - -export function isProduction() { - return process.env.NODE_ENV === 'production'; -} - -function logHelloWorld() { - console.log('Hello, world!'); -} - -abstract class Foo { - abstract prop: string; -} -``` - - - - -## Alternatives - -### Individual Exports (Recommended) - -Instead of using a static utility class we recommend you individually export the utilities from your module. - - - - -```ts -export class Utilities { - static util1() { - return Utilities.util3(); - } - - static util2() { - /* ... */ - } - - static util3() { - /* ... */ - } -} -``` - - - - -```ts -export function util1() { - return util3(); -} - -export function util2() { - /* ... */ -} - -export function util3() { - /* ... */ -} -``` - - - - -### Namespace Imports (Not Recommended) - -If you strongly prefer to have all constructs from a module available as properties of a single object, you can `import * as` the module. -This is known as a "namespace import". -Namespace imports are sometimes preferable because they keep all properties nested and don't need to be changed as you start or stop using various properties from the module. - -However, namespace imports are impacted by these downsides: - -- They also don't play as well with tree shaking in modern bundlers -- They require a name prefix before each property's usage - - - - -```ts -// utilities.ts -export class Utilities { - static sayHello() { - console.log('Hello, world!'); - } -} - -// consumers.ts -import { Utilities } from './utilities'; - -Utilities.sayHello(); -``` - - - - -```ts -// utilities.ts -export function sayHello() { - console.log('Hello, world!'); -} - -// consumers.ts -import * as utilities from './utilities'; - -utilities.sayHello(); -``` - - - - -```ts -// utilities.ts -export function sayHello() { - console.log('Hello, world!'); -} - -// consumers.ts -import { sayHello } from './utilities'; - -sayHello(); -``` - - - - -### Notes on Mutating Variables - -One case you need to be careful of is exporting mutable variables. -While class properties can be mutated externally, exported variables are always constant. -This means that importers can only ever read the first value they are assigned and cannot write to the variables. - -Needing to write to an exported variable is very rare and is generally considered a code smell. -If you do need it you can accomplish it using getter and setter functions: - - - - -```ts -export class Utilities { - static mutableCount = 1; - - static incrementCount() { - Utilities.mutableCount += 1; - } -} -``` - - - - -```ts -let mutableCount = 1; - -export function getMutableCount() { - return mutableField; -} - -export function incrementCount() { - mutableField += 1; -} -``` - - - - -## Options - -This rule normally bans classes that are empty (have no constructor or fields). -The rule's options each add an exemption for a specific type of class. - -### `allowConstructorOnly` - -`allowConstructorOnly` adds an exemption for classes that have only a constructor and no fields. - - - - -```ts option='{ "allowConstructorOnly": true }' -class NoFields {} -``` - - - - -```ts option='{ "allowConstructorOnly": true }' -class NoFields { - constructor() { - console.log('Hello, world!'); - } -} -``` - - - - -### `allowEmpty` - -The `allowEmpty` option adds an exemption for classes that are entirely empty. - - - - -```ts option='{ "allowEmpty": true }' -class NoFields { - constructor() { - console.log('Hello, world!'); - } -} -``` - - - - -```ts option='{ "allowEmpty": true }' -class NoFields {} -``` - - - - -### `allowStaticOnly` - -The `allowStaticOnly` option adds an exemption for classes that only contain static members. - -:::caution -We strongly recommend against the `allowStaticOnly` exemption. -It works against this rule's primary purpose of discouraging classes used only for static members. -::: - - - - -```ts option='{ "allowStaticOnly": true }' -class EmptyClass {} -``` - - - - -```ts option='{ "allowStaticOnly": true }' -class NotEmptyClass { - static version = 42; -} -``` - - - - -### `allowWithDecorator` - -The `allowWithDecorator` option adds an exemption for classes decorated with a `@` decorator. - - - - -```ts option='{ "allowWithDecorator": true }' -class Constants { - static readonly version = 42; -} -``` - - - - -```ts option='{ "allowWithDecorator": true }' -@logOnRead() -class Constants { - static readonly version = 42; -} -``` - - - - -## When Not To Use It - -If your project was set up before modern class and namespace practices, and you don't have the time to switch over, you might not be practically able to use this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx deleted file mode 100644 index bd814ac6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx +++ /dev/null @@ -1,274 +0,0 @@ ---- -description: 'Require Promise-like statements to be handled appropriately.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-floating-promises** for documentation. - -A "floating" Promise is one that is created without any code set up to handle any errors it might throw. -Floating Promises can cause several issues, such as improperly sequenced operations, ignored Promise rejections, and more. - -This rule reports when a Promise is created and not properly handled. -Valid ways of handling a Promise-valued statement include: - -- `await`ing it -- `return`ing it -- `void`ing it -- Calling its `.then()` with two arguments -- Calling its `.catch()` with one argument - -This rule also reports when an Array containing Promises is created and not properly handled. The main way to resolve this is by using one of the Promise concurrency methods to create a single Promise, then handling that according to the procedure above. These methods include: - -- `Promise.all()` -- `Promise.allSettled()` -- `Promise.any()` -- `Promise.race()` - -:::tip -`no-floating-promises` only detects unhandled Promise _statements_. -See [`no-misused-promises`](./no-misused-promises.mdx) for detecting code that provides Promises to _logical_ locations such as if statements. -::: - -## Examples - - - - -```ts -const promise = new Promise((resolve, reject) => resolve('value')); -promise; - -async function returnsPromise() { - return 'value'; -} -returnsPromise().then(() => {}); - -Promise.reject('value').catch(); - -Promise.reject('value').finally(); - -[1, 2, 3].map(async x => x + 1); -``` - - - - -```ts -const promise = new Promise((resolve, reject) => resolve('value')); -await promise; - -async function returnsPromise() { - return 'value'; -} - -void returnsPromise(); - -returnsPromise().then( - () => {}, - () => {}, -); - -Promise.reject('value').catch(() => {}); - -await Promise.reject('value').finally(() => {}); - -await Promise.all([1, 2, 3].map(async x => x + 1)); -``` - - - - -## Options - -### `checkThenables` - -A ["Thenable"](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables) value is an object which has a `then` method, such as a `Promise`. -Other Thenables include TypeScript's built-in `PromiseLike` interface and any custom object that happens to have a `.then()`. - -The `checkThenables` option triggers `no-floating-promises` to also consider all values that satisfy the Thenable shape (a `.then()` method that takes two callback parameters), not just Promises. -This can be useful if your code works with older `Promise` polyfills instead of the native `Promise` class. - - - - -```ts option='{"checkThenables": true}' -declare function createPromiseLike(): PromiseLike; - -createPromiseLike(); - -interface MyThenable { - then(onFulfilled: () => void, onRejected: () => void): MyThenable; -} - -declare function createMyThenable(): MyThenable; - -createMyThenable(); -``` - - - - -```ts option='{"checkThenables": true}' -declare function createPromiseLike(): PromiseLike; - -await createPromiseLike(); - -interface MyThenable { - then(onFulfilled: () => void, onRejected: () => void): MyThenable; -} - -declare function createMyThenable(): MyThenable; - -await createMyThenable(); -``` - - - - -### `ignoreVoid` - -This option, which is `true` by default, allows you to stop the rule reporting promises consumed with void operator. -This can be a good way to explicitly mark a promise as intentionally not awaited. - -Examples of **correct** code for this rule with `{ ignoreVoid: true }`: - -```ts option='{ "ignoreVoid": true }' showPlaygroundButton -async function returnsPromise() { - return 'value'; -} -void returnsPromise(); - -void Promise.reject('value'); -``` - -With this option set to `true`, and if you are using `no-void`, you should turn on the [`allowAsStatement`](https://eslint.org/docs/rules/no-void#allowasstatement) option. - -### `ignoreIIFE` - -This allows you to skip checking of async IIFEs (Immediately Invoked Function Expressions). - -Examples of **correct** code for this rule with `{ ignoreIIFE: true }`: - -{/* prettier-ignore */} -```ts option='{ "ignoreIIFE": true }' showPlaygroundButton -await (async function () { - await res(1); -})(); - -(async function () { - await res(1); -})(); -``` - -### `allowForKnownSafePromises` - -This option allows marking specific types as "safe" to be floating. For example, you may need to do this in the case of libraries whose APIs return Promises whose rejections are safely handled by the library. - -This option takes an array of type specifiers to consider safe. -Each item in the array must have one of the following forms: - -- A type defined in a file (`{ from: "file", name: "Foo", path: "src/foo-file.ts" }` with `path` being an optional path relative to the project root directory) -- A type from the default library (`{ from: "lib", name: "PromiseLike" }`) -- A type from a package (`{ from: "package", name: "Foo", package: "foo-lib" }`, this also works for types defined in a typings package). - -Examples of code for this rule with: - -```json -{ - "allowForKnownSafePromises": [ - { "from": "file", "name": "SafePromise" }, - { "from": "lib", "name": "PromiseLike" }, - { "from": "package", "name": "Bar", "package": "bar-lib" } - ] -} -``` - - - - -```ts option='{"allowForKnownSafePromises":[{"from":"file","name":"SafePromise"},{"from":"lib","name":"PromiseLike"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -let promise: Promise = Promise.resolve(2); -promise; - -function returnsPromise(): Promise { - return Promise.resolve(42); -} - -returnsPromise(); -``` - - - - -```ts option='{"allowForKnownSafePromises":[{"from":"file","name":"SafePromise"},{"from":"lib","name":"PromiseLike"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -// promises can be marked as safe by using branded types -type SafePromise = Promise & { __linterBrands?: string }; - -let promise: SafePromise = Promise.resolve(2); -promise; - -function returnsSafePromise(): SafePromise { - return Promise.resolve(42); -} - -returnsSafePromise(); -``` - - - - -### `allowForKnownSafeCalls` - -This option allows marking specific functions as "safe" to be called to create floating Promises. -For example, you may need to do this in the case of libraries whose APIs may be called without handling the resultant Promises. - -This option takes the same array format as [`allowForKnownSafePromises`](#allowForKnownSafePromises). - -Examples of code for this rule with: - -```json -{ - "allowForKnownSafeCalls": [ - { "from": "file", "name": "safe", "path": "input.ts" } - ] -} -``` - - - - -```ts option='{"allowForKnownSafeCalls":[{"from":"file","name":"safe","path":"input.ts"}]}' -declare function unsafe(...args: unknown[]): Promise; - -unsafe('...', () => {}); -``` - - - - -```ts option='{"allowForKnownSafeCalls":[{"from":"file","name":"safe","path":"input.ts"}]}' skipValidation -declare function safe(...args: unknown[]): Promise; - -safe('...', () => {}); -``` - - - - -## When Not To Use It - -This rule can be difficult to enable on large existing projects that set up many floating Promises. -Alternately, if you're not worried about crashes from floating or misused Promises -such as if you have global unhandled Promise handlers registered- then in some cases it may be safe to not use this rule. -You might consider using `void`s and/or [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-misused-promises`](./no-misused-promises.mdx) - -## Further Reading - -- ["Using Promises" MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises). Note especially the sections on [Promise rejection events](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#promise_rejection_events) and [Composition](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#composition). diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx deleted file mode 100644 index d3a1b01d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-for-in-array.mdx +++ /dev/null @@ -1,67 +0,0 @@ ---- -description: 'Disallow iterating over an array with a for-in loop.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-for-in-array** for documentation. - -A for-in loop (`for (const i in o)`) iterates over the properties of an Object. -While it is legal to use for-in loops with array values, it is not common. There are several potential bugs with this: - -1. It iterates over all enumerable properties, including non-index ones and the entire prototype chain. For example, [`RegExp.prototype.exec`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec) returns an array with additional properties, and `for-in` will iterate over them. Some libraries or even your own code may add additional methods to `Array.prototype` (either as polyfill or as custom methods), and if not done properly, they may be iterated over as well. -2. It skips holes in the array. While sparse arrays are rare and advised against, they are still possible and your code should be able to handle them. -3. The "index" is returned as a string, not a number. This can be caught by TypeScript, but can still lead to subtle bugs. - -You may have confused for-in with for-of, which iterates over the elements of the array. If you actually need the index, use a regular `for` loop or the `forEach` method. - -## Examples - - - - -```ts -declare const array: string[]; - -for (const i in array) { - console.log(array[i]); -} - -for (const i in array) { - console.log(i, array[i]); -} -``` - - - - -```ts -declare const array: string[]; - -for (const value of array) { - console.log(value); -} - -for (let i = 0; i < array.length; i += 1) { - console.log(i, array[i]); -} - -array.forEach((value, i) => { - console.log(i, value); -}); - -for (const [i, value] of array.entries()) { - console.log(i, value); -} -``` - - - - -## When Not To Use It - -If your project is a rare one that intentionally loops over string indices of arrays, you can turn off this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx deleted file mode 100644 index 5019008c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -description: 'Disallow the use of `eval()`-like methods.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-implied-eval** for documentation. - -It's considered a good practice to avoid using `eval()`. There are security and performance implications involved with doing so, which is why many linters recommend disallowing `eval()`. However, there are some other ways to pass a string and have it interpreted as JavaScript code that have similar concerns. - -The first is using `setTimeout()`, `setInterval()`, `setImmediate` or `execScript()` (Internet Explorer only), all of which can accept a string of code as their first argument - -```ts -setTimeout('alert(`Hi!`);', 100); -``` - -or using `new Function()` - -```ts -const fn = new Function('a', 'b', 'return a + b'); -``` - -This is considered an implied `eval()` because a string of code is -passed in to be interpreted. The same can be done with `setInterval()`, `setImmediate()` and `execScript()`. All interpret the JavaScript code in the global scope. - -The best practice is to avoid using `new Function()` or `execScript()` and always use a function for the first argument of `setTimeout()`, `setInterval()` and `setImmediate()`. - -## Examples - -This rule aims to eliminate implied `eval()` through the use of `new Function()`, `setTimeout()`, `setInterval()`, `setImmediate()` or `execScript()`. - - - - -```ts -setTimeout('alert(`Hi!`);', 100); - -setInterval('alert(`Hi!`);', 100); - -setImmediate('alert(`Hi!`)'); - -execScript('alert(`Hi!`)'); - -window.setTimeout('count = 5', 10); - -window.setInterval('foo = bar', 10); - -const fn = '() = {}'; -setTimeout(fn, 100); - -const fn = () => { - return 'x = 10'; -}; -setTimeout(fn(), 100); - -const fn = new Function('a', 'b', 'return a + b'); -``` - - - - -```ts -setTimeout(function () { - alert('Hi!'); -}, 100); - -setInterval(function () { - alert('Hi!'); -}, 100); - -setImmediate(function () { - alert('Hi!'); -}); - -execScript(function () { - alert('Hi!'); -}); - -const fn = () => {}; -setTimeout(fn, 100); - -const foo = { - fn: function () {}, -}; -setTimeout(foo.fn, 100); -setTimeout(foo.fn.bind(this), 100); - -class Foo { - static fn = () => {}; -} - -setTimeout(Foo.fn, 100); -``` - - - - -## When Not To Use It - -If your project is a rare one that needs to allow `new Function()` or `setTimeout()`, `setInterval()`, `setImmediate()` and `execScript()` with string arguments, then you can disable this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx deleted file mode 100644 index f115b036..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-import-type-side-effects.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -description: 'Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-import-type-side-effects** for documentation. - -The [`--verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) compiler option causes TypeScript to do simple and predictable transpilation on import declarations. -Namely, it completely removes import declarations with a top-level `type` qualifier, and it removes any import specifiers with an inline `type` qualifier. - -The latter behavior does have one potentially surprising effect in that in certain cases TS can leave behind a "side effect" import at runtime: - -```ts -import { type A, type B } from 'mod'; - -// is transpiled to - -import {} from 'mod'; -// which is the same as -import 'mod'; -``` - -For the rare case of needing to import for side effects, this may be desirable - but for most cases you will not want to leave behind an unnecessary side effect import. - -## Examples - -This rule enforces that you use a top-level `type` qualifier for imports when it only imports specifiers with an inline `type` qualifier - - - - -```ts -import { type A } from 'mod'; -import { type A as AA } from 'mod'; -import { type A, type B } from 'mod'; -import { type A as AA, type B as BB } from 'mod'; -``` - - - - -```ts -import type { A } from 'mod'; -import type { A as AA } from 'mod'; -import type { A, B } from 'mod'; -import type { A as AA, B as BB } from 'mod'; - -import T from 'mod'; -import type T from 'mod'; - -import * as T from 'mod'; -import type * as T from 'mod'; - -import { T } from 'mod'; -import type { T } from 'mod'; -import { T, U } from 'mod'; -import type { T, U } from 'mod'; -import { type T, U } from 'mod'; -import { T, type U } from 'mod'; - -import type T, { U } from 'mod'; -import T, { type U } from 'mod'; -``` - - - - -## When Not To Use It - -If you're not using TypeScript 5.0's `verbatimModuleSyntax` option and your project is built with a bundler that manages import side effects for you, this rule may not be as useful for you. - -## Related To - -- [`consistent-type-imports`](./consistent-type-imports.mdx) -- [`import/consistent-type-specifier-style`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md) -- [`import/no-duplicates` with `{"prefer-inline": true}`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx deleted file mode 100644 index ff21a353..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -description: 'Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-inferrable-types** for documentation. - -TypeScript is able to infer the types of parameters, properties, and variables from their default or initial values. -There is no need to use an explicit `:` type annotation on one of those constructs initialized to a boolean, number, or string. -Doing so adds unnecessary verbosity to code -making it harder to read- and in some cases can prevent TypeScript from inferring a more specific literal type (e.g. `10`) instead of the more general primitive type (e.g. `number`) - -## Examples - - - - -```ts -const a: bigint = 10n; -const a: bigint = BigInt(10); -const a: boolean = !0; -const a: boolean = Boolean(null); -const a: boolean = true; -const a: null = null; -const a: number = 10; -const a: number = Infinity; -const a: number = NaN; -const a: number = Number('1'); -const a: RegExp = /a/; -const a: RegExp = new RegExp('a'); -const a: string = `str`; -const a: string = String(1); -const a: symbol = Symbol('a'); -const a: undefined = undefined; -const a: undefined = void someValue; - -class Foo { - prop: number = 5; -} - -function fn(a: number = 5, b: boolean = true) {} -``` - - - - -```ts -const a = 10n; -const a = BigInt(10); -const a = !0; -const a = Boolean(null); -const a = true; -const a = null; -const a = 10; -const a = Infinity; -const a = NaN; -const a = Number('1'); -const a = /a/; -const a = new RegExp('a'); -const a = `str`; -const a = String(1); -const a = Symbol('a'); -const a = undefined; -const a = void someValue; - -class Foo { - prop = 5; -} - -function fn(a = 5, b = true) {} -``` - - - - -## Options - -### `ignoreParameters` - -When set to true, the following pattern is considered valid: - -```ts option='{ "ignoreParameters": true }' showPlaygroundButton -function foo(a: number = 5, b: boolean = true) { - // ... -} -``` - -### `ignoreProperties` - -When set to true, the following pattern is considered valid: - -```ts option='{ "ignoreProperties": true }' showPlaygroundButton -class Foo { - prop: number = 5; -} -``` - -## When Not To Use It - -If you strongly prefer to have explicit types regardless of whether they can be inferred, this rule may not be for you. - -## Further Reading - -- [TypeScript Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx deleted file mode 100644 index 518b93fc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -description: 'Disallow `this` keywords outside of classes or class-like objects.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-invalid-this** for documentation. - -import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; - - - -This rule extends the base [`eslint/no-invalid-this`](https://eslint.org/docs/rules/no-invalid-this) rule. -It adds support for TypeScript's `this` parameters. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx deleted file mode 100644 index d73d0951..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.mdx +++ /dev/null @@ -1,118 +0,0 @@ ---- -description: 'Disallow `void` type outside of generic or return types.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-invalid-void-type** for documentation. - -`void` in TypeScript refers to a function return that is meant to be ignored. -Attempting to use a `void` type outside of a return type or generic type argument is often a sign of programmer error. -`void` can also be misleading for other developers even if used correctly. - -> The `void` type means cannot be mixed with any other types, other than `never`, which accepts all types. -> If you think you need this then you probably want the `undefined` type instead. - -## Examples - - - - -```ts -type PossibleValues = string | number | void; -type MorePossibleValues = string | ((number & any) | (string | void)); - -function logSomething(thing: void) {} -function printArg(arg: T) {} - -logAndReturn(undefined); - -interface Interface { - lambda: () => void; - prop: void; -} - -class MyClass { - private readonly propName: void; -} -``` - - - - -```ts -type NoOp = () => void; - -function noop(): void {} - -let trulyUndefined = void 0; - -async function promiseMeSomething(): Promise {} - -type stillVoid = void | never; -``` - - - - -## Options - -### `allowInGenericTypeArguments` - -This option lets you control if `void` can be used as a valid value for generic type parameters. - -Alternatively, you can provide an array of strings which whitelist which types may accept `void` as a generic type parameter. - -Any types considered valid by this option will be considered valid as part of a union type with `void`. - -This option is `true` by default. - -The following patterns are considered warnings with `{ allowInGenericTypeArguments: false }`: - -```ts option='{ "allowInGenericTypeArguments": false }' showPlaygroundButton -logAndReturn(undefined); - -let voidPromise: Promise = new Promise(() => {}); -let voidMap: Map = new Map(); -``` - -The following patterns are considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`: - -```ts option='{ "allowInGenericTypeArguments": ["Ex.Mx.Tx"] }' showPlaygroundButton -logAndReturn(undefined); - -type NotAllowedVoid1 = Mx.Tx; -type NotAllowedVoid2 = Tx; -type NotAllowedVoid3 = Promise; -``` - -The following patterns are not considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`: - -```ts option='{ "allowInGenericTypeArguments": ["Ex.Mx.Tx"] }' showPlaygroundButton -type AllowedVoid = Ex.Mx.Tx; -type AllowedVoidUnion = void | Ex.Mx.Tx; -``` - -### `allowAsThisParameter` - -This option allows specifying a `this` parameter of a function to be `void` when set to `true`. -This pattern can be useful to explicitly label function types that do not use a `this` argument. [See the TypeScript docs for more information](https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters-in-callbacks). - -This option is `false` by default. - -The following patterns are considered warnings with `{ allowAsThisParameter: false }` but valid with `{ allowAsThisParameter: true }`: - -```ts option='{ "allowAsThisParameter": false }' showPlaygroundButton -function doThing(this: void) {} -class Example { - static helper(this: void) {} - callback(this: void) {} -} -``` - -## When Not To Use It - -If you don't care about if `void` is used with other types, or in invalid places, then you don't need this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx deleted file mode 100644 index 0eb9ff68..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: 'Disallow function declarations that contain unsafe references inside loop statements.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-loop-func** for documentation. - -This rule extends the base [`eslint/no-loop-func`](https://eslint.org/docs/rules/no-loop-func) rule. -It adds support for TypeScript types. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx deleted file mode 100644 index 77f48255..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -description: 'Disallow literal numbers that lose precision.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-loss-of-precision** for documentation. - -:::danger Deprecated - -This rule has been deprecated because the base [`eslint/no-loss-of-precision`](https://eslint.org/docs/rules/no-loss-of-precision) rule added support for [numeric separators](https://github.com/tc39/proposal-numeric-separator). -There is no longer any need to use this extension rule. - -::: diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx deleted file mode 100644 index c8a20587..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -description: 'Disallow magic numbers.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-magic-numbers** for documentation. - -This rule extends the base [`eslint/no-magic-numbers`](https://eslint.org/docs/rules/no-magic-numbers) rule. -It adds support for: - -- numeric literal types (`type T = 1`), -- `enum` members (`enum Foo { bar = 1 }`), -- `readonly` class properties (`class Foo { readonly bar = 1 }`). - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseNoMagicNumbersOptions { - ignoreEnums?: boolean; - ignoreNumericLiteralTypes?: boolean; - ignoreReadonlyClassProperties?: boolean; - ignoreTypeIndexes?: boolean; -} - -const defaultOptions: Options = { - ...baseNoMagicNumbersDefaultOptions, - ignoreEnums: false, - ignoreNumericLiteralTypes: false, - ignoreReadonlyClassProperties: false, - ignoreTypeIndexes: false, -}; -``` - -### `ignoreEnums` - -A boolean to specify if enums used in TypeScript are considered okay. `false` by default. - -Examples of **incorrect** code for the `{ "ignoreEnums": false }` option: - -```ts option='{ "ignoreEnums": false }' showPlaygroundButton -enum foo { - SECOND = 1000, -} -``` - -Examples of **correct** code for the `{ "ignoreEnums": true }` option: - -```ts option='{ "ignoreEnums": true }' showPlaygroundButton -enum foo { - SECOND = 1000, -} -``` - -### `ignoreNumericLiteralTypes` - -A boolean to specify if numbers used in TypeScript numeric literal types are considered okay. `false` by default. - -Examples of **incorrect** code for the `{ "ignoreNumericLiteralTypes": false }` option: - -```ts option='{ "ignoreNumericLiteralTypes": false }' showPlaygroundButton -type SmallPrimes = 2 | 3 | 5 | 7 | 11; -``` - -Examples of **correct** code for the `{ "ignoreNumericLiteralTypes": true }` option: - -```ts option='{ "ignoreNumericLiteralTypes": true }' showPlaygroundButton -type SmallPrimes = 2 | 3 | 5 | 7 | 11; -``` - -### `ignoreReadonlyClassProperties` - -Examples of **incorrect** code for the `{ "ignoreReadonlyClassProperties": false }` option: - -```ts option='{ "ignoreReadonlyClassProperties": false }' showPlaygroundButton -class Foo { - readonly A = 1; - readonly B = 2; - public static readonly C = 1; - static readonly D = 1; -} -``` - -Examples of **correct** code for the `{ "ignoreReadonlyClassProperties": true }` option: - -```ts option='{ "ignoreReadonlyClassProperties": true }' showPlaygroundButton -class Foo { - readonly A = 1; - readonly B = 2; - public static readonly C = 1; - static readonly D = 1; -} -``` - -### `ignoreTypeIndexes` - -A boolean to specify if numbers used to index types are okay. `false` by default. - -Examples of **incorrect** code for the `{ "ignoreTypeIndexes": false }` option: - -```ts option='{ "ignoreTypeIndexes": false }' showPlaygroundButton -type Foo = Bar[0]; -type Baz = Parameters[2]; -``` - -Examples of **correct** code for the `{ "ignoreTypeIndexes": true }` option: - -```ts option='{ "ignoreTypeIndexes": true }' showPlaygroundButton -type Foo = Bar[0]; -type Baz = Parameters[2]; -``` - -## When Not To Use It - -If your project frequently deals with constant numbers and you don't wish to take up extra space to declare them, this rule might not be for you. -We recommend at least using descriptive comments and/or names to describe constants. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx deleted file mode 100644 index 905c7061..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -description: 'Disallow the `void` operator except when used to discard a value.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-meaningless-void-operator** for documentation. - -`void` in TypeScript refers to a function return that is meant to be ignored. -The `void` operator is a useful tool to convey the programmer's intent to discard a value. -For example, it is recommended as one way of suppressing [`@typescript-eslint/no-floating-promises`](./no-floating-promises.mdx) instead of adding `.catch()` to a promise. - -This rule helps an authors catch API changes where previously a value was being discarded at a call site, but the callee changed so it no longer returns a value. -When combined with [no-unused-expressions](https://eslint.org/docs/rules/no-unused-expressions), it also helps _readers_ of the code by ensuring consistency: a statement that looks like `void foo();` is **always** discarding a return value, and a statement that looks like `foo();` is **never** discarding a return value. -This rule reports on any `void` operator whose argument is already of type `void` or `undefined`. - -## Examples - -## Examples - - - - -```ts -void (() => {})(); - -function foo() {} -void foo(); -``` - - - - -```ts -(() => {})(); - -function foo() {} -foo(); // nothing to discard - -function bar(x: number) { - void x; // discarding a number - return 2; -} -void bar(1); // discarding a number -``` - - - - -## Options - -### `checkNever` - -`checkNever: true` will suggest removing `void` when the argument has type `never`. - -## When Not To Use It - -If you don't mind extra `void`s in your project, you can avoid this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx deleted file mode 100644 index e1e02c42..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-new.mdx +++ /dev/null @@ -1,53 +0,0 @@ ---- -description: 'Enforce valid definition of `new` and `constructor`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-misused-new** for documentation. - -JavaScript classes may define a `constructor` method that runs when a class instance is newly created. -TypeScript allows interfaces that describe a static class object to define a `new()` method (though this is rarely used in real world code). -Developers new to JavaScript classes and/or TypeScript interfaces may sometimes confuse when to use `constructor` or `new`. - -This rule reports when a class defines a method named `new` or an interface defines a method named `constructor`. - -## Examples - - - - -```ts -declare class C { - new(): C; -} - -interface I { - new (): I; - constructor(): void; -} -``` - - - - -```ts -declare class C { - constructor(); -} - -interface I { - new (): C; -} -``` - - - - -## When Not To Use It - -If you intentionally want a class with a `new` method, and you're confident nobody working in your code will mistake it with a constructor, you might not want this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx deleted file mode 100644 index 4ac2c491..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-misused-promises.mdx +++ /dev/null @@ -1,297 +0,0 @@ ---- -description: 'Disallow Promises in places not designed to handle them.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-misused-promises** for documentation. - -This rule forbids providing Promises to logical locations such as if statements in places where the TypeScript compiler allows them but they are not handled properly. -These situations can often arise due to a missing `await` keyword or just a misunderstanding of the way async -functions are handled/awaited. - -:::tip -`no-misused-promises` only detects code that provides Promises to incorrect _logical_ locations. -See [`no-floating-promises`](./no-floating-promises.mdx) for detecting unhandled Promise _statements_. -::: - -## Options - -### `checksConditionals` - -If you don't want to check conditionals, you can configure the rule with `"checksConditionals": false`: - -```json -{ - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksConditionals": false - } - ] -} -``` - -Doing so prevents the rule from looking at code like `if (somePromise)`. - -### `checksVoidReturn` - -Likewise, if you don't want to check functions that return promises where a void return is -expected, your configuration will look like this: - -```json -{ - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksVoidReturn": false - } - ] -} -``` - -You can disable selective parts of the `checksVoidReturn` option by providing an object that disables specific checks. For example, if you don't mind that passing a `() => Promise` to a `() => void` parameter or JSX attribute can lead to a floating unhandled Promise: - -```json -{ - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksVoidReturn": { - "arguments": false, - "attributes": false - } - } - ] -} -``` - -The following sub-options are supported: - -#### `arguments` - -Disables checking an asynchronous function passed as argument where the parameter type expects a function that returns `void`. - -#### `attributes` - -Disables checking an asynchronous function passed as a JSX attribute expected to be a function that returns `void`. - -#### `inheritedMethods` - -Disables checking an asynchronous method in a type that extends or implements another type expecting that method to return `void`. - -:::note -For now, `no-misused-promises` only checks _named_ methods against extended/implemented types: that is, call/construct/index signatures are ignored. Call signatures are not required in TypeScript to be consistent with one another, and construct signatures cannot be `async` in the first place. Index signature checking may be implemented in the future. -::: - -#### `properties` - -Disables checking an asynchronous function passed as an object property expected to be a function that returns `void`. - -#### `returns` - -Disables checking an asynchronous function returned in a function whose return type is a function that returns `void`. - -#### `variables` - -Disables checking an asynchronous function used as a variable whose return type is a function that returns `void`. - -### `checksSpreads` - -If you don't want to check object spreads, you can add this configuration: - -```json -{ - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksSpreads": false - } - ] -} -``` - -## Examples - -### `checksConditionals` - -Examples of code for this rule with `checksConditionals: true`: - - - - -```ts option='{ "checksConditionals": true }' -const promise = Promise.resolve('value'); - -if (promise) { - // Do something -} - -const val = promise ? 123 : 456; - -while (promise) { - // Do something -} -``` - - - - -```ts option='{ "checksConditionals": true }' -const promise = Promise.resolve('value'); - -// Always `await` the Promise in a conditional -if (await promise) { - // Do something -} - -const val = (await promise) ? 123 : 456; - -while (await promise) { - // Do something -} -``` - - - - -### `checksVoidReturn` - -Examples of code for this rule with `checksVoidReturn: true`: - - - - -```ts option='{ "checksVoidReturn": true }' -[1, 2, 3].forEach(async value => { - await fetch(`/${value}`); -}); - -new Promise(async (resolve, reject) => { - await fetch('/'); - resolve(); -}); - -document.addEventListener('click', async () => { - console.log('synchronous call'); - await fetch('/'); - console.log('synchronous call'); -}); - -interface MySyncInterface { - setThing(): void; -} -class MyClass implements MySyncInterface { - async setThing(): Promise { - this.thing = await fetchThing(); - } -} -``` - - - - -```ts option='{ "checksVoidReturn": true }' -// for-of puts `await` in outer context -for (const value of [1, 2, 3]) { - await doSomething(value); -} - -// If outer context is not `async`, handle error explicitly -Promise.all( - [1, 2, 3].map(async value => { - await doSomething(value); - }), -).catch(handleError); - -// Use an async IIFE wrapper -new Promise((resolve, reject) => { - // combine with `void` keyword to tell `no-floating-promises` rule to ignore unhandled rejection - void (async () => { - await doSomething(); - resolve(); - })(); -}); - -// Name the async wrapper to call it later -document.addEventListener('click', () => { - const handler = async () => { - await doSomething(); - otherSynchronousCall(); - }; - - try { - synchronousCall(); - } catch (err) { - handleSpecificError(err); - } - - handler().catch(handleError); -}); - -interface MyAsyncInterface { - setThing(): Promise; -} -class MyClass implements MyAsyncInterface { - async setThing(): Promise { - this.thing = await fetchThing(); - } -} -``` - - - - -### `checksSpreads` - -Examples of code for this rule with `checksSpreads: true`: - - - - -```ts option='{ "checksSpreads": true }' -const getData = () => fetch('/'); - -console.log({ foo: 42, ...getData() }); - -const awaitData = async () => { - await fetch('/'); -}; - -console.log({ foo: 42, ...awaitData() }); -``` - - - - -```ts option='{ "checksSpreads": true }' -const getData = () => fetch('/'); - -console.log({ foo: 42, ...(await getData()) }); - -const awaitData = async () => { - await fetch('/'); -}; - -console.log({ foo: 42, ...(await awaitData()) }); -``` - - - - -## When Not To Use It - -This rule can be difficult to enable on large existing projects that set up many misused Promises. -Alternately, if you're not worried about crashes from floating or misused Promises -such as if you have global unhandled Promise handlers registered- then in some cases it may be safe to not use this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [TypeScript void function assignability](https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-functions-returning-non-void-assignable-to-function-returning-void) - -## Related To - -- [`no-floating-promises`](./no-floating-promises.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx deleted file mode 100644 index 5e168336..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-mixed-enums.mdx +++ /dev/null @@ -1,96 +0,0 @@ ---- -description: 'Disallow enums from having both number and string members.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-mixed-enums** for documentation. - -TypeScript enums are allowed to assign numeric or string values to their members. -Most enums contain either all numbers or all strings, but in theory you can mix-and-match within the same enum. -Mixing enum member types is generally considered confusing and a bad practice. - -## Examples - - - - -```ts -enum Status { - Unknown, - Closed = 1, - Open = 'open', -} -``` - - - - -```ts -enum Status { - Unknown = 0, - Closed = 1, - Open = 2, -} -``` - - - - -```ts -enum Status { - Unknown, - Closed, - Open, -} -``` - - - - -```ts -enum Status { - Unknown = 'unknown', - Closed = 'closed', - Open = 'open', -} -``` - - - - -## Iteration Pitfalls of Mixed Enum Member Values - -Enum values may be iterated over using `Object.entries`/`Object.keys`/`Object.values`. - -If all enum members are strings, the number of items will match the number of enum members: - -```ts -enum Status { - Closed = 'closed', - Open = 'open', -} - -// ['closed', 'open'] -Object.values(Status); -``` - -But if the enum contains members that are initialized with numbers -including implicitly initialized numbers— then iteration over that enum will include those numbers as well: - -```ts -enum Status { - Unknown, - Closed = 1, - Open = 'open', -} - -// ["Unknown", "Closed", 0, 1, "open"] -Object.values(Status); -``` - -## When Not To Use It - -If you don't mind the confusion of mixed enum member values and don't iterate over enums, you can safely disable this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx deleted file mode 100644 index 3d4f14fe..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.mdx +++ /dev/null @@ -1,142 +0,0 @@ ---- -description: 'Disallow TypeScript namespaces.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-namespace** for documentation. - -TypeScript historically allowed a form of code organization called "custom modules" (`module Example {}`), later renamed to "namespaces" (`namespace Example`). -Namespaces are an outdated way to organize TypeScript code. -ES2015 module syntax is now preferred (`import`/`export`). - -> This rule does not report on the use of TypeScript module declarations to describe external APIs (`declare module 'foo' {}`). - -## Examples - -Examples of code with the default options: - - - - -```ts -module foo {} -namespace foo {} - -declare module foo {} -declare namespace foo {} -``` - - - - -```ts -declare module 'foo' {} - -// anything inside a d.ts file -``` - - - - -## Options - -### `allowDeclarations` - -Examples of code with the `{ "allowDeclarations": true }` option: - - - - -```ts option='{ "allowDeclarations": true }' -module foo {} -namespace foo {} -``` - - - - -```ts option='{ "allowDeclarations": true }' -declare module 'foo' {} -declare module foo {} -declare namespace foo {} - -declare global { - namespace foo {} -} - -declare module foo { - namespace foo {} -} -``` - - - - -Examples of code for the `{ "allowDeclarations": false }` option: - - - - -```ts option='{ "allowDeclarations": false }' -module foo {} -namespace foo {} -declare module foo {} -declare namespace foo {} -``` - - - - -```ts option='{ "allowDeclarations": false }' -declare module 'foo' {} -``` - - - - -### `allowDefinitionFiles` - -Examples of code for the `{ "allowDefinitionFiles": true }` option: - - - - -```ts option='{ "allowDefinitionFiles": true }' -// if outside a d.ts file -module foo {} -namespace foo {} - -// if outside a d.ts file and allowDeclarations = false -module foo {} -namespace foo {} -declare module foo {} -declare namespace foo {} -``` - - - - -```ts option='{ "allowDefinitionFiles": true }' -declare module 'foo' {} - -// anything inside a d.ts file -``` - - - - -## When Not To Use It - -If your project was architected before modern modules and namespaces, it may be difficult to migrate off of namespaces. -In that case you may not be able to use this rule for parts of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [Modules](https://www.typescriptlang.org/docs/handbook/modules.html) -- [Namespaces](https://www.typescriptlang.org/docs/handbook/namespaces.html) -- [Namespaces and Modules](https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx deleted file mode 100644 index 3c66cdc7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: 'Disallow non-null assertions in the left operand of a nullish coalescing operator.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-non-null-asserted-nullish-coalescing** for documentation. - -The `??` nullish coalescing runtime operator allows providing a default value when dealing with `null` or `undefined`. -Using a `!` non-null assertion type operator in the left operand of a nullish coalescing operator is redundant, and likely a sign of programmer error or confusion over the two operators. - -## Examples - - - - -```ts -foo! ?? bar; -foo.bazz! ?? bar; -foo!.bazz! ?? bar; -foo()! ?? bar; - -let x!: string; -x! ?? ''; - -let x: string; -x = foo(); -x! ?? ''; -``` - - - - -```ts -foo ?? bar; -foo ?? bar!; -foo!.bazz ?? bar; -foo!.bazz ?? bar!; -foo() ?? bar; - -// This is considered correct code because there's no way for the user to satisfy it. -let x: string; -x! ?? ''; -``` - - - - -## When Not To Use It - -If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) -- [Nullish Coalescing Proposal](https://github.com/tc39/proposal-nullish-coalescing) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx deleted file mode 100644 index 0a46583e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx +++ /dev/null @@ -1,46 +0,0 @@ ---- -description: 'Disallow non-null assertions after an optional chain expression.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-non-null-asserted-optional-chain** for documentation. - -`?.` optional chain expressions provide `undefined` if an object is `null` or `undefined`. -Using a `!` non-null assertion to assert the result of an `?.` optional chain expression is non-nullable is likely wrong. - -> Most of the time, either the object was not nullable and did not need the `?.` for its property lookup, or the `!` is incorrect and introducing a type safety hole. - -## Examples - - - - -```ts -foo?.bar!; -foo?.bar()!; -``` - - - - -```ts -foo?.bar; -foo?.bar(); -``` - - - - -## When Not To Use It - -If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) -- [Optional Chaining Proposal](https://github.com/tc39/proposal-optional-chaining/) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx deleted file mode 100644 index b9706331..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -description: 'Disallow non-null assertions using the `!` postfix operator.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-non-null-assertion** for documentation. - -TypeScript's `!` non-null assertion operator asserts to the type system that an expression is non-nullable, as in not `null` or `undefined`. -Using assertions to tell the type system new information is often a sign that code is not fully type-safe. -It's generally better to structure program logic so that TypeScript understands when values may be nullable. - -## Examples - - - - -```ts -interface Example { - property?: string; -} - -declare const example: Example; -const includesBaz = example.property!.includes('baz'); -``` - - - - -```ts -interface Example { - property?: string; -} - -declare const example: Example; -const includesBaz = example.property?.includes('baz') ?? false; -``` - - - - -## When Not To Use It - -If your project's types don't yet fully describe whether certain values may be nullable, such as if you're transitioning to `strictNullChecks`, this rule might create many false reports. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx deleted file mode 100644 index 4af33c69..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-parameter-properties.mdx +++ /dev/null @@ -1,16 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been deprecated in favour of the [`parameter-properties`](https://typescript-eslint.io/rules/parameter-properties/) rule. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx deleted file mode 100644 index 8c896acb..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.mdx +++ /dev/null @@ -1,78 +0,0 @@ ---- -description: 'Disallow variable redeclaration.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-redeclare** for documentation. - -import TypeScriptOverlap from '@site/src/components/TypeScriptOverlap'; - - - -This rule extends the base [`eslint/no-redeclare`](https://eslint.org/docs/rules/no-redeclare) rule. -It adds support for TypeScript function overloads, and declaration merging. - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseNoRedeclareOptions { - ignoreDeclarationMerge?: boolean; -} - -const defaultOptions: Options = { - ...baseNoRedeclareDefaultOptions, - ignoreDeclarationMerge: true, -}; -``` - -### `ignoreDeclarationMerge` - -When set to `true`, the rule will ignore declaration merges between the following sets: - -- interface + interface -- namespace + namespace -- class + interface -- class + namespace -- class + interface + namespace -- function + namespace -- enum + namespace - -Examples of **correct** code with `{ ignoreDeclarationMerge: true }`: - -```ts option='{ "ignoreDeclarationMerge": true }' showPlaygroundButton -interface A { - prop1: 1; -} -interface A { - prop2: 2; -} - -namespace Foo { - export const a = 1; -} -namespace Foo { - export const b = 2; -} - -class Bar {} -namespace Bar {} - -function Baz() {} -namespace Baz {} -``` - -**Note:** Even with this option set to true, this rule will report if you name a type and a variable the same name. **_This is intentional_**. -Declaring a variable and a type and a variable the same is usually an accident, and it can lead to hard-to-understand code. -If you have a rare case where you're intentionally naming a type the same name as a variable, use a disable comment. For example: - -```ts option='{ "ignoreDeclarationMerge": true }' showPlaygroundButton -type something = string; -// eslint-disable-next-line @typescript-eslint/no-redeclare -- intentionally naming the variable the same as the type -const something = 2; -``` diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx deleted file mode 100644 index a119ebdd..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -description: 'Disallow members of unions and intersections that do nothing or override type information.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-redundant-type-constituents** for documentation. - -Some types can override some other types ("constituents") in a union or intersection and/or be overridden by some other types. -TypeScript's set theory of types includes cases where a constituent type might be useless in the parent union or intersection. - -Within `|` unions: - -- `any` and `unknown` "override" all other union members -- `never` is dropped from unions in any position except when in a return type position -- primitive types such as `string` "override" any of their literal types such as `""` - -Within `&` intersections: - -- `any` and `never` "override" all other intersection members -- `unknown` is dropped from intersections -- literal types "override" any primitive types in an intersection -- literal types such as `""` "override" any of their primitive types such as `string` - -## Examples - - - - -```ts -type UnionAny = any | 'foo'; -type UnionUnknown = unknown | 'foo'; -type UnionNever = never | 'foo'; - -type UnionBooleanLiteral = boolean | false; -type UnionNumberLiteral = number | 1; -type UnionStringLiteral = string | 'foo'; - -type IntersectionAny = any & 'foo'; -type IntersectionUnknown = string & unknown; -type IntersectionNever = string | never; - -type IntersectionBooleanLiteral = boolean & false; -type IntersectionNumberLiteral = number & 1; -type IntersectionStringLiteral = string & 'foo'; -``` - - - - -```ts -type UnionAny = any; -type UnionUnknown = unknown; -type UnionNever = never; - -type UnionBooleanLiteral = boolean; -type UnionNumberLiteral = number; -type UnionStringLiteral = string; - -type IntersectionAny = any; -type IntersectionUnknown = string; -type IntersectionNever = string; - -type IntersectionBooleanLiteral = false; -type IntersectionNumberLiteral = 1; -type IntersectionStringLiteral = 'foo'; -``` - - - - -## Limitations - -This rule plays it safe and only works with bottom types, top types, and comparing literal types to primitive types. - -## When Not To Use It - -Some projects choose to occasionally intentionally include a redundant type constituent for documentation purposes. -For example, the following code includes `string` in a union even though the `unknown` makes it redundant: - -```ts -/** - * Normally a string name, but sometimes arbitrary unknown data. - */ -type NameOrOther = string | unknown; -``` - -If you strongly feel a preference for these unnecessary type constituents, this rule might not be for you. - -## Further Reading - -- [Union Types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) -- [Intersection Types](https://www.typescriptlang.org/docs/handbook/2/objects.html#intersection-types) -- [Bottom Types](https://en.wikipedia.org/wiki/Bottom_type) -- [Top Types](https://en.wikipedia.org/wiki/Top_type) - -## Related To - -- [no-duplicate-type-constituents](./no-duplicate-type-constituents.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx deleted file mode 100644 index 4512c269..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-require-imports.mdx +++ /dev/null @@ -1,96 +0,0 @@ ---- -description: 'Disallow invocation of `require()`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-require-imports** for documentation. - -Prefer the newer ES6-style imports over `require()`. - -## Examples - - - - -```ts -const lib1 = require('lib1'); -const { lib2 } = require('lib2'); -import lib3 = require('lib3'); -``` - - - - -```ts -import * as lib1 from 'lib1'; -import { lib2 } from 'lib2'; -import * as lib3 from 'lib3'; -``` - - - - -## Options - -### `allow` - -An array of strings. These strings will be compiled into regular expressions with the `u` flag and be used to test against the imported path. A common use case is to allow importing `package.json`. This is because `package.json` commonly lives outside of the TS root directory, so statically importing it would lead to root directory conflicts, especially with `resolveJsonModule` enabled. You can also use it to allow importing any JSON if your environment doesn't support JSON modules, or use it for other cases where `import` statements cannot work. - -With `{allow: ['/package\\.json$']}`: - - - - -```ts option='{ "allow": ["/package.json$"] }' -console.log(require('../data.json').version); -``` - - - - -```ts option='{ "allow": ["/package.json$"] }' -console.log(require('../package.json').version); -``` - - - - -### `allowAsImport` - -When set to `true`, the `import x = require(...)` declaration won't be reported. -This is useful if you use certain module options that require strict CommonJS interop semantics. - -With `{allowAsImport: true}`: - - - - -```ts option='{ "allowAsImport": true }' -var foo = require('foo'); -const foo = require('foo'); -let foo = require('foo'); -``` - - - - -```ts option='{ "allowAsImport": true }' -import foo = require('foo'); -import foo from 'foo'; -``` - - - - -## When Not To Use It - -If your project frequently uses older CommonJS `require`s, then this rule might not be applicable to you. -If only a subset of your project uses `require`s then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-var-requires`](./no-var-requires.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx deleted file mode 100644 index d74494d4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-imports.mdx +++ /dev/null @@ -1,77 +0,0 @@ ---- -description: 'Disallow specified modules when loaded by `import`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-restricted-imports** for documentation. - -This rule extends the base [`eslint/no-restricted-imports`](https://eslint.org/docs/rules/no-restricted-imports) rule. It adds support for the type import (`import type X from "..."`, `import { type X } from "..."`) and `import x = require("...")` syntaxes. - -## Options - -This rule adds the following options: - -### `allowTypeImports` - -(default: `false`) - -You can specify this option for a specific path or pattern as follows: - -```jsonc -{ - "rules": { - "@typescript-eslint/no-restricted-imports": [ - "error", - { - "paths": [ - { - "name": "import-foo", - "message": "Please use import-bar instead.", - "allowTypeImports": true, - }, - { - "name": "import-baz", - "message": "Please use import-quux instead.", - "allowTypeImports": true, - }, - ], - }, - ], - }, -} -``` - -When set to `true`, the rule will allow [Type-Only Imports](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export). - -Examples of code with the above config: - - - - -```ts option='{"paths":[{"name":"import-foo","message":"Please use import-bar instead.","allowTypeImports":true},{"name":"import-baz","message":"Please use import-quux instead.","allowTypeImports":true}]}' -import foo from 'import-foo'; -export { Foo } from 'import-foo'; - -import baz from 'import-baz'; -export { Baz } from 'import-baz'; -``` - - - - -```ts option='{"paths":[{"name":"import-foo","message":"Please use import-bar instead.","allowTypeImports":true},{"name":"import-baz","message":"Please use import-quux instead.","allowTypeImports":true}]}' -import { foo } from 'other-module'; - -import type foo from 'import-foo'; -export type { Foo } from 'import-foo'; - -import type baz from 'import-baz'; -export type { Baz } from 'import-baz'; -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx deleted file mode 100644 index 20732174..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-restricted-types.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -description: 'Disallow certain types.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-restricted-types** for documentation. - -It can sometimes be useful to ban specific types from being used in type annotations. -For example, a project might be migrating from using one type to another, and want to ban references to the old type. - -This rule can be configured to ban a list of specific types and can suggest alternatives. -Note that it does not ban the corresponding runtime objects from being used. - -## Options - -### `types` - -An object whose keys are the types you want to ban, and the values are error messages. - -The type can either be a type name literal (`OldType`) or a a type name with generic parameter instantiation(s) (`OldType`). - -The values can be: - -- A string, which is the error message to be reported; or -- `false` to specifically un-ban this type (useful when you are using `extendDefaults`); or -- An object with the following properties: - - `message: string`: the message to display when the type is matched. - - `fixWith?: string`: a string to replace the banned type with when the fixer is run. If this is omitted, no fix will be done. - - `suggest?: string[]`: a list of suggested replacements for the banned type. - -Example configuration: - -```jsonc -{ - "@typescript-eslint/no-restricted-types": [ - "error", - { - "types": { - // add a custom message to help explain why not to use it - "OldType": "Don't use OldType because it is unsafe", - - // add a custom message, and tell the plugin how to fix it - "OldAPI": { - "message": "Use NewAPI instead", - "fixWith": "NewAPI", - }, - - // add a custom message, and tell the plugin how to suggest a fix - "SoonToBeOldAPI": { - "message": "Use NewAPI instead", - "suggest": ["NewAPIOne", "NewAPITwo"], - }, - }, - }, - ], -} -``` - -## When Not To Use It - -If you have no need to ban specific types from being used in type annotations, you don't need this rule. - -## Related To - -- [`no-empty-object-type`](./no-empty-object-type.mdx) -- [`no-unsafe-function-type`](./no-unsafe-function-type.mdx) -- [`no-wrapper-object-types`](./no-wrapper-object-types.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx deleted file mode 100644 index 2e932890..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.mdx +++ /dev/null @@ -1,108 +0,0 @@ ---- -description: 'Disallow variable declarations from shadowing variables declared in the outer scope.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-shadow** for documentation. - -This rule extends the base [`eslint/no-shadow`](https://eslint.org/docs/rules/no-shadow) rule. -It adds support for TypeScript's `this` parameters and global augmentation, and adds options for TypeScript features. - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseNoShadowOptions { - ignoreTypeValueShadow?: boolean; - ignoreFunctionTypeParameterNameValueShadow?: boolean; -} - -const defaultOptions: Options = { - ...baseNoShadowDefaultOptions, - ignoreTypeValueShadow: true, - ignoreFunctionTypeParameterNameValueShadow: true, -}; -``` - -### `ignoreTypeValueShadow` - -When set to `true`, the rule will ignore the case when you name a type the same as a variable. This is generally safe because you cannot use variables in type locations without a `typeof` operator, so there's little risk of confusion. - -Examples of **correct** code with `{ ignoreTypeValueShadow: true }`: - -```ts option='{ "ignoreTypeValueShadow": true }' showPlaygroundButton -type Foo = number; -interface Bar { - prop: number; -} - -function f() { - const Foo = 1; - const Bar = 'test'; -} -``` - -:::note - -_Shadowing_ specifically refers to two identical identifiers that are in different, nested scopes. This is different from _redeclaration_, which is when two identical identifiers are in the same scope. Redeclaration is covered by the [`no-redeclare`](./no-redeclare.mdx) rule instead. - -::: - -### `ignoreFunctionTypeParameterNameValueShadow` - -When set to `true`, the rule will ignore the case when you name a parameter in a function type the same as a variable. - -Each of a function type's arguments creates a value variable within the scope of the function type. This is done so that you can reference the type later using the `typeof` operator: - -```ts -type Func = (test: string) => typeof test; - -declare const fn: Func; -const result = fn('str'); // typeof result === string -``` - -This means that function type arguments shadow value variable names in parent scopes: - -```ts -let test = 1; -type TestType = typeof test; // === number -type Func = (test: string) => typeof test; // this "test" references the argument, not the variable - -declare const fn: Func; -const result = fn('str'); // typeof result === string -``` - -If you do not use the `typeof` operator in a function type return type position, you can safely turn this option on. - -Examples of **correct** code with `{ ignoreFunctionTypeParameterNameValueShadow: true }`: - -```ts option='{ "ignoreFunctionTypeParameterNameValueShadow": true }' showPlaygroundButton -const test = 1; -type Func = (test: string) => typeof test; -``` - -## FAQ - -### Why does the rule report on enum members that share the same name as a variable in a parent scope? - -Reporting on this case isn't a bug - it is completely intentional and correct reporting! The rule reports due to a relatively unknown feature of enums - enum members create a variable within the enum scope so that they can be referenced within the enum without a qualifier. - -To illustrate this with an example: - -```ts -const A = 2; -enum Test { - A = 1, - B = A, -} - -console.log(Test.B); -// what should be logged? -``` - -Naively looking at the above code, it might look like the log should output `2`, because the outer variable `A`'s value is `2` - however, the code instead outputs `1`, which is the value of `Test.A`. This is because the unqualified code `B = A` is equivalent to the fully-qualified code `B = Test.A`. Due to this behavior, the enum member has **shadowed** the outer variable declaration. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx deleted file mode 100644 index af07e435..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.mdx +++ /dev/null @@ -1,120 +0,0 @@ ---- -description: 'Disallow aliasing `this`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-this-alias** for documentation. - -Assigning a variable to `this` instead of properly using arrow lambdas may be a symptom of pre-ES6 practices -or not managing scope well. - -## Examples - - - - -```ts -const self = this; - -setTimeout(function () { - self.doWork(); -}); -``` - - - - -```ts -setTimeout(() => { - this.doWork(); -}); -``` - - - - -## Options - -### `allowDestructuring` - -It can sometimes be useful to destructure properties from a class instance, such as retrieving multiple properties from the instance in one of its methods. -`allowDestructuring` allows those destructures and is `true` by default. -You can explicitly disallow them by setting `allowDestructuring` to `false`. - -Examples of code for the `{ "allowDestructuring": false }` option: - - - - -```ts option='{ "allowDestructuring": false }' -class ComponentLike { - props: unknown; - state: unknown; - - render() { - const { props, state } = this; - - console.log(props); - console.log(state); - } -} -``` - - - - -```ts option='{ "allowDestructuring": false }' -class ComponentLike { - props: unknown; - state: unknown; - - render() { - console.log(this.props); - console.log(this.state); - } -} -``` - - - - -### `allowedNames` - -`no-this-alias` can alternately be used to allow only a specific list of names as `this` aliases. -We recommend against this except as a transitory step towards fixing all rule violations. - -Examples of code for the `{ "allowedNames": ["self"] }` option: - - - - -```ts option='{ "allowedNames": ["self"] }' -class Example { - method() { - const that = this; - } -} -``` - - - - -```ts option='{ "allowedNames": ["self"] }' -class Example { - method() { - const self = this; - } -} -``` - - - - -## When Not To Use It - -If your project is structured in a way that it needs to assign `this` to variables, this rule is likely not for you. -If only a subset of your project assigns `this` to variables then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx deleted file mode 100644 index 11068fba..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.mdx +++ /dev/null @@ -1,626 +0,0 @@ ---- -description: 'Disallow type aliases.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-type-alias** for documentation. - -:::danger Deprecated - -This rule has been deprecated in favour of the [`@typescript-eslint/consistent-type-definitions`](./consistent-type-definitions.mdx) rule. -TypeScript type aliases are a commonly necessary language feature; banning it altogether is oftentimes counterproductive. - -::: - -:::note - -If you want to ban certain classifications of type aliases, consider using [`no-restricted-syntax`](https://eslint.org/docs/latest/rules/no-restricted-syntax). -See [Troubleshooting & FAQs](/troubleshooting/faqs/general#how-can-i-ban-specific-language-feature). - -::: - -In TypeScript, type aliases serve three purposes: - -- Aliasing other types so that we can refer to them using a simpler name. - -```ts -// this... -type Person = { - firstName: string; - lastName: string; - age: number; -}; - -function addPerson(person: Person) { - // ... -} - -// is easier to read than this... -function addPerson(person: { - firstName: string; - lastName: string; - age: number; -}) { - // ... -} -``` - -- Act sort of like an interface, providing a set of methods and properties that must exist - in the objects implementing the type. - -```ts -type Person = { - firstName: string; - lastName: string; - age: number; - walk: () => void; - talk: () => void; -}; - -// you know person will have 3 properties and 2 methods, -// because the structure has already been defined. -var person: Person = { - // ... -}; - -// so we can be sure that this will work -person.walk(); -``` - -- Act like mapping tools between types to allow quick modifications. - -```ts -type Immutable = { readonly [P in keyof T]: T[P] }; - -type Person = { - name: string; - age: number; -}; - -type ImmutablePerson = Immutable; - -var person: ImmutablePerson = { name: 'John', age: 30 }; -person.name = 'Brad'; // error, readonly property -``` - -When aliasing, the type alias does not create a new type, it just creates a new name -to refer to the original type. So aliasing primitives and other simple types, tuples, unions -or intersections can some times be redundant. - -```ts -// this doesn't make much sense -type myString = string; -``` - -On the other hand, using a type alias as an interface can limit your ability to: - -- Reuse your code: interfaces can be extended or implemented by other types. Type aliases cannot. -- Debug your code: interfaces create a new name, so is easy to identify the base type of an object - while debugging the application. - -Finally, mapping types is an advanced technique and leaving it open can quickly become a pain point -in your application. - -## Examples - -This rule disallows the use of type aliases in favor of interfaces -and simplified types (primitives, tuples, unions, intersections, etc). - -## Options - -### `allowAliases` - -This applies to primitive types and reference types. - -The setting accepts the following values: - -- `"always"` or `"never"` to active or deactivate the feature. -- `"in-unions"`, allows aliasing in union statements, e.g. `type Foo = string | string[];` -- `"in-intersections"`, allows aliasing in intersection statements, e.g. `type Foo = string & string[];` -- `"in-unions-and-intersections"`, allows aliasing in union and/or intersection statements. - -Examples of **correct** code for the `{ "allowAliases": "always" }` options: - -```ts option='{ "allowAliases": "always" }' showPlaygroundButton -// primitives -type Foo = 'a'; - -type Foo = 'a' | 'b'; - -type Foo = string; - -type Foo = string | string[]; - -type Foo = string & string[]; - -type Foo = `foo-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar; - -type Foo = Bar | Baz; - -type Foo = Bar & Baz; -``` - -Examples of **incorrect** code for the `{ "allowAliases": "in-unions" }` option: - -```ts option='{ "allowAliases": "in-unions" }' showPlaygroundButton -// primitives -type Foo = 'a'; - -type Foo = string; - -type Foo = string & string[]; - -type Foo = `foo-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar; - -type Foo = Bar & Baz; -``` - -Examples of **correct** code for the `{ "allowAliases": "in-unions" }` option: - -```ts option='{ "allowAliases": "in-unions" }' showPlaygroundButton -// primitives -type Foo = 'a' | 'b'; - -type Foo = string | string[]; - -type Foo = `a-${number}` | `b-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar | Baz; -``` - -Examples of **incorrect** code for the `{ "allowAliases": "in-intersections" }` option: - -```ts option='{ "allowAliases": "in-intersections" }' showPlaygroundButton -// primitives -type Foo = 'a'; - -type Foo = 'a' | 'b'; - -type Foo = string; - -type Foo = string | string[]; - -type Foo = `a-${number}` | `b-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar; - -type Foo = Bar | Baz; -``` - -Examples of **correct** code for the `{ "allowAliases": "in-intersections" }` option: - -```ts option='{ "allowAliases": "in-intersections" }' showPlaygroundButton -// primitives -type Foo = string & string[]; - -type Foo = `a-${number}` & `b-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar & Baz; -``` - -Examples of **incorrect** code for the `{ "allowAliases": "in-unions-and-intersections" }` option: - -```ts option='{ "allowAliases": "in-unions-and-intersections" }' showPlaygroundButton -// primitives -type Foo = 'a'; - -type Foo = string; - -type Foo = `foo-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar; -``` - -Examples of **correct** code for the `{ "allowAliases": "in-unions-and-intersections" }` option: - -```ts option='{ "allowAliases": "in-unions-and-intersections" }' showPlaygroundButton -// primitives -type Foo = 'a' | 'b'; - -type Foo = string | string[]; - -type Foo = string & string[]; - -type Foo = `a-${number}` & `b-${number}`; - -type Foo = `a-${number}` | `b-${number}`; - -// reference types -interface Bar {} -class Baz implements Bar {} - -type Foo = Bar | Baz; - -type Foo = Bar & Baz; -``` - -### `allowCallbacks` - -This applies to function types. - -The setting accepts the following values: - -- `"always"` or `"never"` to active or deactivate the feature. - -Examples of **correct** code for the `{ "allowCallbacks": "always" }` option: - -```ts option='{ "allowCallbacks": "always" }' showPlaygroundButton -type Foo = () => void; - -type Foo = (name: string) => string; - -class Person {} - -type Foo = (name: string, age: number) => string | Person; - -type Foo = (name: string, age: number) => string & Person; -``` - -### `allowConditionalTypes` - -This applies to conditional types. - -Examples of **correct** code for the `{ "allowConditionalTypes": "always" }` option: - -```ts option='{ "allowConditionalTypes": "always" }' showPlaygroundButton -type Foo = T extends number ? number : null; -``` - -### `allowConstructors` - -This applies to constructor types. - -The setting accepts the following values: - -- `"always"` or `"never"` to active or deactivate the feature. - -Examples of **correct** code for the `{ "allowConstructors": "always" }` option: - -```ts option='{ "allowConstructors": "always" }' showPlaygroundButton -type Foo = new () => void; -``` - -### `allowLiterals` - -This applies to literal types (`type Foo = { ... }`). - -The setting accepts the following options: - -- `"always"` or `"never"` to active or deactivate the feature. -- `"in-unions"`, allows literals in union statements, e.g. `type Foo = string | string[];` -- `"in-intersections"`, allows literals in intersection statements, e.g. `type Foo = string & string[];` -- `"in-unions-and-intersections"`, allows literals in union and/or intersection statements. - -Examples of **correct** code for the `{ "allowLiterals": "always" }` options: - -```ts option='{ "allowLiterals": "always" }' showPlaygroundButton -type Foo = {}; - -type Foo = { - name: string; - age: number; -}; - -type Foo = { - name: string; - age: number; - walk: (miles: number) => void; -}; - -type Foo = { name: string } | { age: number }; - -type Foo = { name: string } & { age: number }; -``` - -Examples of **incorrect** code for the `{ "allowLiterals": "in-unions" }` option: - -```ts option='{ "allowLiterals": "in-unions" }' showPlaygroundButton -type Foo = {}; - -type Foo = { - name: string; - age: number; -}; - -type Foo = { - name: string; - age: number; - walk: (miles: number) => void; -}; - -type Foo = { name: string } & { age: number }; -``` - -Examples of **correct** code for the `{ "allowLiterals": "in-unions" }` option: - -```ts option='{ "allowLiterals": "in-unions" }' showPlaygroundButton -type Foo = { name: string } | { age: number }; -``` - -Examples of **incorrect** code for the `{ "allowLiterals": "in-intersections" }` option: - -```ts option='{ "allowLiterals": "in-intersections" }' showPlaygroundButton -type Foo = {}; - -type Foo = { - name: string; - age: number; -}; - -type Foo = { - name: string; - age: number; - walk: (miles: number) => void; -}; - -type Foo = { name: string } | { age: number }; -``` - -Examples of **correct** code for the `{ "allowLiterals": "in-intersections" }` option: - -```ts option='{ "allowLiterals": "in-intersections" }' showPlaygroundButton -type Foo = { name: string } & { age: number }; -``` - -Examples of **incorrect** code for the `{ "allowLiterals": "in-unions-and-intersections" }` option: - -```ts option='{ "allowLiterals": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = {}; - -type Foo = { - name: string; - age: number; -}; - -type Foo = { - name: string; - age: number; - walk: (miles: number) => void; -}; -``` - -Examples of **correct** code for the `{ "allowLiterals": "in-unions-and-intersections" }` option: - -```ts option='{ "allowLiterals": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = { name: string } | { age: number }; - -type Foo = { name: string } & { age: number }; -``` - -### `allowMappedTypes` - -This applies to literal types. - -The setting accepts the following values: - -- `"always"` or `"never"` to active or deactivate the feature. -- `"in-unions"`, allows aliasing in union statements, e.g. `type Foo = string | string[];` -- `"in-intersections"`, allows aliasing in intersection statements, e.g. `type Foo = string & string[];` -- `"in-unions-and-intersections"`, allows aliasing in union and/or intersection statements. - -Examples of **correct** code for the `{ "allowMappedTypes": "always" }` options: - -```ts option='{ "allowMappedTypes": "always" }' showPlaygroundButton -type Foo = { readonly [P in keyof T]: T[P] }; - -type Foo = { [P in keyof T]?: T[P] }; - -type Foo = - | { readonly [P in keyof T]: T[P] } - | { readonly [P in keyof U]: U[P] }; - -type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; - -type Foo = { readonly [P in keyof T]: T[P] } & { - readonly [P in keyof U]: U[P]; -}; - -type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; -``` - -Examples of **incorrect** code for the `{ "allowMappedTypes": "in-unions" }` option: - -```ts option='{ "allowMappedTypes": "in-unions" }' showPlaygroundButton -type Foo = { readonly [P in keyof T]: T[P] }; - -type Foo = { [P in keyof T]?: T[P] }; - -type Foo = { readonly [P in keyof T]: T[P] } & { - readonly [P in keyof U]: U[P]; -}; - -type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; -``` - -Examples of **correct** code for the `{ "allowMappedTypes": "in-unions" }` option: - -```ts option='{ "allowMappedTypes": "in-unions" }' showPlaygroundButton -type Foo = - | { readonly [P in keyof T]: T[P] } - | { readonly [P in keyof U]: U[P] }; - -type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; -``` - -Examples of **incorrect** code for the `{ "allowMappedTypes": "in-intersections" }` option: - -```ts option='{ "allowMappedTypes": "in-intersections" }' showPlaygroundButton -type Foo = { readonly [P in keyof T]: T[P] }; - -type Foo = { [P in keyof T]?: T[P] }; - -type Foo = - | { readonly [P in keyof T]: T[P] } - | { readonly [P in keyof U]: U[P] }; - -type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; -``` - -Examples of **correct** code for the `{ "allowMappedTypes": "in-intersections" }` option: - -```ts option='{ "allowMappedTypes": "in-intersections" }' showPlaygroundButton -type Foo = { readonly [P in keyof T]: T[P] } & { - readonly [P in keyof U]: U[P]; -}; - -type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; -``` - -Examples of **incorrect** code for the `{ "allowMappedTypes": "in-unions-and-intersections" }` option: - -```ts option='{ "allowMappedTypes": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = { readonly [P in keyof T]: T[P] }; - -type Foo = { [P in keyof T]?: T[P] }; -``` - -Examples of **correct** code for the `{ "allowMappedTypes": "in-unions-and-intersections" }` option: - -```ts option='{ "allowMappedTypes": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = - | { readonly [P in keyof T]: T[P] } - | { readonly [P in keyof U]: U[P] }; - -type Foo = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] }; - -type Foo = { readonly [P in keyof T]: T[P] } & { - readonly [P in keyof U]: U[P]; -}; - -type Foo = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] }; -``` - -### `allowTupleTypes` - -This applies to tuple types (`type Foo = [number]`). - -The setting accepts the following options: - -- `"always"` or `"never"` to active or deactivate the feature. -- `"in-unions"`, allows tuples in union statements, e.g. `type Foo = [string] | [string, string];` -- `"in-intersections"`, allows tuples in intersection statements, e.g. `type Foo = [string] & [string, string];` -- `"in-unions-and-intersections"`, allows tuples in union and/or intersection statements. - -Examples of **correct** code for the `{ "allowTupleTypes": "always" }` options: - -```ts option='{ "allowTupleTypes": "always" }' showPlaygroundButton -type Foo = [number]; - -type Foo = [number] | [number, number]; - -type Foo = [number] & [number, number]; - -type Foo = [number] | ([number, number] & [string, string]); -``` - -Examples of **incorrect** code for the `{ "allowTupleTypes": "in-unions" }` option: - -```ts option='{ "allowTupleTypes": "in-unions" }' showPlaygroundButton -type Foo = [number]; - -type Foo = [number] & [number, number]; - -type Foo = [string] & [number]; -``` - -Examples of **correct** code for the `{ "allowTupleTypes": "in-unions" }` option: - -```ts option='{ "allowTupleTypes": "in-unions" }' showPlaygroundButton -type Foo = [number] | [number, number]; - -type Foo = [string] | [number]; -``` - -Examples of **incorrect** code for the `{ "allowTupleTypes": "in-intersections" }` option: - -```ts option='{ "allowTupleTypes": "in-intersections" }' showPlaygroundButton -type Foo = [number]; - -type Foo = [number] | [number, number]; - -type Foo = [string] | [number]; -``` - -Examples of **correct** code for the `{ "allowTupleTypes": "in-intersections" }` option: - -```ts option='{ "allowTupleTypes": "in-intersections" }' showPlaygroundButton -type Foo = [number] & [number, number]; - -type Foo = [string] & [number]; -``` - -Examples of **incorrect** code for the `{ "allowTupleTypes": "in-unions-and-intersections" }` option: - -```ts option='{ "allowTupleTypes": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = [number]; - -type Foo = [string]; -``` - -Examples of **correct** code for the `{ "allowTupleTypes": "in-unions-and-intersections" }` option: - -```ts option='{ "allowTupleTypes": "in-unions-and-intersections" }' showPlaygroundButton -type Foo = [number] & [number, number]; - -type Foo = [string] | [number]; -``` - -### `allowGenerics` - -This applies to generic types, including TypeScript provided global utility types (`type Foo = Record`). - -The setting accepts the following options: - -- `"always"` or `"never"` to active or deactivate the feature. - -Examples of **correct** code for the `{ "allowGenerics": "always" }` options: - -```ts option='{ "allowGenerics": "always" }' showPlaygroundButton -type Foo = Bar; - -type Foo = Record; - -type Foo = Readonly; - -type Foo = Partial; - -type Foo = Omit; -``` - -{/* Intentionally Omitted: When Not To Use It */} - -## Further Reading - -- [Advanced Types](https://www.typescriptlang.org/docs/handbook/advanced-types.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx deleted file mode 100644 index 51c13eec..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx +++ /dev/null @@ -1,145 +0,0 @@ ---- -description: 'Disallow unnecessary equality comparisons against boolean literals.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare** for documentation. - -Comparing boolean values to boolean literals is unnecessary: those comparisons result in the same booleans. -Using the boolean values directly, or via a unary negation (`!value`), is more concise and clearer. - -This rule ensures that you do not include unnecessary comparisons with boolean literals. -A comparison is considered unnecessary if it checks a boolean literal against any variable with just the `boolean` type. -A comparison is **_not_** considered unnecessary if the type is a union of booleans (`string | boolean`, `SomeObject | boolean`, etc.). - -## Examples - -:::note -Throughout this page, only strict equality (`===` and `!==`) are used in the examples. -However, the implementation of the rule does not distinguish between strict and loose equality. -Any example below that uses `===` would be treated the same way if `==` was used, and `!==` would be treated the same way if `!=` was used. -::: - - - - -```ts -declare const someCondition: boolean; -if (someCondition === true) { -} -``` - - - - -```ts -declare const someCondition: boolean; -if (someCondition) { -} - -declare const someObjectBoolean: boolean | Record; -if (someObjectBoolean === true) { -} - -declare const someStringBoolean: boolean | string; -if (someStringBoolean === true) { -} -``` - - - - -## Options - -This rule always checks comparisons between a boolean variable and a boolean -literal. Comparisons between nullable boolean variables and boolean literals -are **not** checked by default. - -### `allowComparingNullableBooleansToTrue` - -Examples of code for this rule with `{ allowComparingNullableBooleansToTrue: false }`: - - - - -```ts option='{ "allowComparingNullableBooleansToTrue": false }' -declare const someUndefinedCondition: boolean | undefined; -if (someUndefinedCondition === true) { -} - -declare const someNullCondition: boolean | null; -if (someNullCondition !== true) { -} -``` - - - - -```ts option='{ "allowComparingNullableBooleansToTrue": false }' -declare const someUndefinedCondition: boolean | undefined; -if (someUndefinedCondition) { -} - -declare const someNullCondition: boolean | null; -if (!someNullCondition) { -} -``` - - - - -### `allowComparingNullableBooleansToFalse` - -Examples of code for this rule with `{ allowComparingNullableBooleansToFalse: false }`: - - - - -```ts option='{ "allowComparingNullableBooleansToFalse": false }' -declare const someUndefinedCondition: boolean | undefined; -if (someUndefinedCondition === false) { -} - -declare const someNullCondition: boolean | null; -if (someNullCondition !== false) { -} -``` - - - - -```ts option='{ "allowComparingNullableBooleansToFalse": false }' -declare const someUndefinedCondition: boolean | undefined; -if (!(someUndefinedCondition ?? true)) { -} - -declare const someNullCondition: boolean | null; -if (someNullCondition ?? true) { -} -``` - - - - -## Fixer - -| Comparison | Fixer Output | Notes | -| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- | -| `booleanVar === true` | `booleanVar` | | -| `booleanVar !== true` | `!booleanVar` | | -| `booleanVar === false` | `!booleanVar` | | -| `booleanVar !== false` | `booleanVar` | | -| `nullableBooleanVar === true` | `nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` | -| `nullableBooleanVar !== true` | `!nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` | -| `nullableBooleanVar === false` | `!(nullableBooleanVar ?? true)` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` | -| `nullableBooleanVar !== false` | `nullableBooleanVar ?? true` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` | - -## When Not To Use It - -Do not use this rule when `strictNullChecks` is disabled. -ESLint is not able to distinguish between `false` and `undefined` or `null` values. -This can cause unintended code changes when using autofix. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx deleted file mode 100644 index 9124bbd4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx +++ /dev/null @@ -1,125 +0,0 @@ ---- -description: 'Disallow conditionals where the type is always truthy or always falsy.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-condition** for documentation. - -Any expression being used as a condition must be able to evaluate as truthy or falsy in order to be considered "necessary". -Conversely, any expression that always evaluates to truthy or always evaluates to falsy, as determined by the type of the expression, is considered unnecessary and will be flagged by this rule. - -The following expressions are checked: - -- Arguments to the `&&`, `||` and `?:` (ternary) operators -- Conditions for `if`, `for`, `while`, and `do-while` statements -- Base values of optional chain expressions - -## Examples - - - - -```ts -function head(items: T[]) { - // items can never be nullable, so this is unnecessary - if (items) { - return items[0].toUpperCase(); - } -} - -function foo(arg: 'bar' | 'baz') { - // arg is never nullable or empty string, so this is unnecessary - if (arg) { - } -} - -function bar(arg: string) { - // arg can never be nullish, so ?. is unnecessary - return arg?.length; -} - -// Checks array predicate return types, where possible -[ - [1, 2], - [3, 4], -].filter(t => t); // number[] is always truthy -``` - - - - -```ts -function head(items: T[]) { - // Necessary, since items.length might be 0 - if (items.length) { - return items[0].toUpperCase(); - } -} - -function foo(arg: string) { - // Necessary, since foo might be ''. - if (arg) { - } -} - -function bar(arg?: string | null) { - // Necessary, since arg might be nullish - return arg?.length; -} - -[0, 1, 2, 3].filter(t => t); // number can be truthy or falsy -``` - - - - -## Options - -### `allowConstantLoopConditions` - -Example of correct code for `{ allowConstantLoopConditions: true }`: - -```ts option='{ "allowConstantLoopConditions": true }' showPlaygroundButton -while (true) {} -for (; true; ) {} -do {} while (true); -``` - -### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` - -If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. - -Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule useless. - -You should be using `strictNullChecks` to ensure complete type-safety in your codebase. - -If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. - -## When Not To Use It - -If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -This rule has a known edge case of triggering on conditions that were modified within function calls (as side effects). -It is due to limitations of TypeScript's type narrowing. -See [#9998](https://github.com/microsoft/TypeScript/issues/9998) for details. -We recommend using a [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions) in those cases. - -```ts -let condition = false as boolean; - -const f = () => (condition = true); -f(); - -if (condition) { -} -``` - -## Related To - -- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information. -- [strict-boolean-expressions](./strict-boolean-expressions.mdx) - a more opinionated version of `no-unnecessary-condition`. `strict-boolean-expressions` enforces a specific code style, while `no-unnecessary-condition` is about correctness. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx deleted file mode 100644 index 836ac8bd..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx +++ /dev/null @@ -1,42 +0,0 @@ ---- -description: 'Disallow unnecessary assignment of constructor property parameter.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment** for documentation. - -[TypeScript's parameter properties](https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties) allow creating and initializing a member in one place. -Therefore, in most cases, it is not necessary to assign parameter properties of the same name to members within a constructor. - -## Examples - - - - -```ts -class Foo { - constructor(public bar: string) { - this.bar = bar; - } -} -``` - - - - -```ts -class Foo { - constructor(public bar: string) {} -} -``` - - - - -## When Not To Use It - -If you don't use parameter properties, you can ignore this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx deleted file mode 100644 index aaf5edb8..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -description: 'Disallow unnecessary namespace qualifiers.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-qualifier** for documentation. - -Members of TypeScript enums and namespaces are generally retrieved as qualified property lookups: e.g. `Enum.member`. -However, when accessed within their parent enum or namespace, the qualifier is unnecessary: e.g. just `member` instead of `Enum.member`. -This rule reports when an enum or namespace qualifier is unnecessary. - -## Examples - - - - -```ts -enum A { - B, - C = A.B, -} -``` - -```ts -namespace A { - export type B = number; - const x: A.B = 3; -} -``` - - - - -```ts -enum A { - B, - C = B, -} -``` - -```ts -namespace A { - export type B = number; - const x: B = 3; -} -``` - - - - -## When Not To Use It - -If you explicitly prefer to use fully qualified names, such as for explicitness, then you don't need to use this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx deleted file mode 100644 index 1fe39d41..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx +++ /dev/null @@ -1,85 +0,0 @@ ---- -description: 'Disallow unnecessary template expressions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-template-expression** for documentation. - -This rule reports template literals that contain substitution expressions (also variously referred to as embedded expressions or string interpolations) that are unnecessary and can be simplified. - -:::info[Migration from `no-useless-template-literals`] - -This rule was formerly known as [`no-useless-template-literals`](./no-useless-template-literals.mdx). -The new name is a drop-in replacement with identical functionality. - -::: - -## Examples - - - - -```ts -// Static values can be incorporated into the surrounding template. - -const ab1 = `${'a'}${'b'}`; -const ab2 = `a${'b'}`; - -const stringWithNumber = `${'1 + 1 = '}${2}`; - -const stringWithBoolean = `${'true is '}${true}`; - -// Some simple expressions that are already strings -// can be rewritten without a template at all. - -const text = 'a'; -const wrappedText = `${text}`; - -declare const intersectionWithString: string & { _brand: 'test-brand' }; -const wrappedIntersection = `${intersectionWithString}`; -``` - - - - -```ts -// Static values can be incorporated into the surrounding template. - -const ab1 = `ab`; -const ab2 = `ab`; - -const stringWithNumber = `1 + 1 = 2`; - -const stringWithBoolean = `true is true`; - -// Some simple expressions that are already strings -// can be rewritten without a template at all. - -const text = 'a'; -const wrappedText = text; - -declare const intersectionWithString: string & { _brand: 'test-brand' }; -const wrappedIntersection = intersectionWithString; -``` - - - - -:::info -This rule does not aim to flag template literals without substitution expressions that could have been written as an ordinary string. -That is to say, this rule will not help you turn `` `this` `` into `"this"`. -If you are looking for such a rule, you can configure the [`@stylistic/ts/quotes`](https://eslint.style/rules/ts/quotes) rule to do this. -::: - -## When Not To Use It - -When you want to allow string expressions inside template literals. - -## Related To - -- [`restrict-template-expressions`](./restrict-template-expressions.mdx) -- [`@stylistic/ts/quotes`](https://eslint.style/rules/ts/quotes) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx deleted file mode 100644 index 875b4f47..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx +++ /dev/null @@ -1,85 +0,0 @@ ---- -description: 'Disallow type arguments that are equal to the default.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-type-arguments** for documentation. - -Type parameters in TypeScript may specify a default value. -For example: - -```ts -function f(/* ... */) { - // ... -} -``` - -It is redundant to provide an explicit type parameter equal to that default: e.g. calling `f(...)`. -This rule reports when an explicitly specified type argument is the default for that type parameter. - -## Examples - - - - -```ts -function f() {} -f(); -``` - -```ts -function g() {} -g(); -``` - -```ts -class C {} -new C(); - -class D extends C {} -``` - -```ts -interface I {} -class Impl implements I {} -``` - - - - -```ts -function f() {} -f(); -f(); -``` - -```ts -function g() {} -g(); -g(); -``` - -```ts -class C {} -new C(); -new C(); - -class D extends C {} -class D extends C {} -``` - -```ts -interface I {} -class Impl implements I {} -``` - - - - -## When Not To Use It - -If you prefer explicitly specifying type parameters even when they are equal to the default, you can skip this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx deleted file mode 100644 index 4c34f32c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx +++ /dev/null @@ -1,87 +0,0 @@ ---- -description: 'Disallow type assertions that do not change the type of an expression.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-type-assertion** for documentation. - -TypeScript can be told an expression is a different type than expected using `as` type assertions. -Leaving `as` assertions in the codebase increases visual clutter and harms code readability, so it's generally best practice to remove them if they don't change the type of an expression. -This rule reports when a type assertion does not change the type of an expression. - -## Examples - - - - -```ts -const foo = 3; -const bar = foo!; -``` - -```ts -const foo = (3 + 5); -``` - -```ts -type Foo = number; -const foo = (3 + 5); -``` - -```ts -type Foo = number; -const foo = (3 + 5) as Foo; -``` - -```ts -const foo = 'foo' as const; -``` - -```ts -function foo(x: number): number { - return x!; // unnecessary non-null -} -``` - - - - -```ts -const foo = 3; -``` - -```ts -const foo = 3 as number; -``` - -```ts -let foo = 'foo' as const; -``` - -```ts -function foo(x: number | undefined): number { - return x!; -} -``` - - - - -## Options - -### `typesToIgnore` - -With `@typescript-eslint/no-unnecessary-type-assertion: ["error", { typesToIgnore: ['Foo'] }]`, the following is **correct** code: - -```ts option='{ "typesToIgnore": ["Foo"] }' showPlaygroundButton -type Foo = 3; -const foo: Foo = 3; -``` - -## When Not To Use It - -If you don't care about having no-op type assertions in your code, then you can turn off this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx deleted file mode 100644 index ba52d4b9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -description: 'Disallow unnecessary constraints on generic types.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-type-constraint** for documentation. - -Generic type parameters (``) in TypeScript may be "constrained" with an [`extends` keyword](https://www.typescriptlang.org/docs/handbook/generics.html#generic-constraints). -When no `extends` is provided, type parameters default a constraint to `unknown`. -It is therefore redundant to `extend` from `any` or `unknown`. - -## Examples - - - - -```ts -interface FooAny {} - -interface FooUnknown {} - -type BarAny = {}; - -type BarUnknown = {}; - -class BazAny { - quxAny() {} -} - -const QuuxAny = () => {}; - -function QuuzAny() {} -``` - - - - -```ts -interface Foo {} - -type Bar = {}; - -class Baz { - qux() {} -} - -const Quux = () => {}; - -function Quuz() {} -``` - - - - -## When Not To Use It - -If you don't care about the specific styles of your type constraints, or never use them in the first place, then you will not need this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx deleted file mode 100644 index a11969f5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx +++ /dev/null @@ -1,114 +0,0 @@ ---- -description: "Disallow type parameters that aren't used multiple times." ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unnecessary-type-parameters** for documentation. - -This rule forbids type parameters that aren't used multiple times in a function, method, or class definition. - -Type parameters relate two types. -If a type parameter is only used once, then it is not relating anything. -It can usually be replaced with explicit types such as `unknown`. - -At best unnecessary type parameters make code harder to read. -At worst they can be used to disguise unsafe type assertions. - -:::warning -This rule was recently added, and has a surprising amount of hidden complexity compared to most of our rules. If you encounter unexpected behavior with it, please check closely the [Limitations](#limitations) section below and our [issue tracker](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+no-unnecessary-type-parameters). -If you don't see your case covered, please [reach out to us](https://typescript-eslint.io/contributing/issues)! -::: - -## Examples - - - - -```ts -function second(a: A, b: B): B { - return b; -} - -function parseJSON(input: string): T { - return JSON.parse(input); -} - -function printProperty(obj: T, key: K) { - console.log(obj[key]); -} -``` - - - - -```ts -function second(a: unknown, b: B): B { - return b; -} - -function parseJSON(input: string): unknown { - return JSON.parse(input); -} - -function printProperty(obj: T, key: keyof T) { - console.log(obj[key]); -} - -// T appears twice: in the type of arg and as the return type -function identity(arg: T): T { - return arg; -} - -// T appears twice: "keyof T" and in the inferred return type (T[K]). -// K appears twice: "key: K" and in the inferred return type (T[K]). -function getProperty(obj: T, key: K) { - return obj[key]; -} -``` - - - - -## Limitations - -Note that this rule allows any type parameter that is used multiple times, even if those uses are via a type argument. -For example, the following `T` is used multiple times by virtue of being in an `Array`, even though its name only appears once after declaration: - -```ts -declare function createStateHistory(): T[]; -``` - -This is because the type parameter `T` relates multiple methods in the `T[]` together, making it used more than once. - -Therefore, this rule won't report on type parameters used as a type argument. -That includes type arguments given to global types such as `Array` (including the `T[]` shorthand and in tuples), `Map`, and `Set`. - -## When Not To Use It - -This rule will report on functions that use type parameters solely to test types, for example: - -```ts -function assertType(arg: T) {} - -assertType(123); -assertType('abc'); -// ~~~~~ -// Argument of type 'string' is not assignable to parameter of type 'number'. -``` - -If you're using this pattern then you'll want to disable this rule on files that test types. - -## Further Reading - -- TypeScript handbook: [Type Parameters Should Appear Twice](https://microsoft.github.io/TypeScript-New-Handbook/everything/#type-parameters-should-appear-twice) -- Effective TypeScript: [The Golden Rule of Generics](https://effectivetypescript.com/2020/08/12/generics-golden-rule/) - -## Related To - -- eslint-plugin-etc's [`no-misused-generics`](https://github.com/cartant/eslint-plugin-etc/blob/main/docs/rules/no-misused-generics.md) -- wotan's [`no-misused-generics`](https://github.com/fimbullinter/wotan/blob/master/packages/mimir/docs/no-misused-generics.md) -- DefinitelyTyped-tools' [`no-unnecessary-generics`](https://github.com/microsoft/DefinitelyTyped-tools/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-generics.md) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx deleted file mode 100644 index a8657500..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-argument.mdx +++ /dev/null @@ -1,97 +0,0 @@ ---- -description: 'Disallow calling a function with a value with type `any`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-argument** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. - -Despite your best intentions, the `any` type can sometimes leak into your codebase. -Calling a function with an `any` typed argument creates a potential safety hole and source of bugs. - -This rule disallows calling a function with `any` in its arguments. -That includes spreading arrays or tuples with `any` typed elements as function arguments. - -This rule also compares generic type argument types to ensure you don't pass an unsafe `any` in a generic position to a receiver that's expecting a specific type. -For example, it will error if you pass `Set` as an argument to a parameter declared as `Set`. - -## Examples - - - - -```ts -declare function foo(arg1: string, arg2: number, arg3: string): void; - -const anyTyped = 1 as any; - -foo(...anyTyped); -foo(anyTyped, 1, 'a'); - -const anyArray: any[] = []; -foo(...anyArray); - -const tuple1 = ['a', anyTyped, 'b'] as const; -foo(...tuple1); - -const tuple2 = [1] as const; -foo('a', ...tuple, anyTyped); - -declare function bar(arg1: string, arg2: number, ...rest: string[]): void; -const x = [1, 2] as [number, ...number[]]; -foo('a', ...x, anyTyped); - -declare function baz(arg1: Set, arg2: Map): void; -foo(new Set(), new Map()); -``` - - - - -```ts -declare function foo(arg1: string, arg2: number, arg3: string): void; - -foo('a', 1, 'b'); - -const tuple1 = ['a', 1, 'b'] as const; -foo(...tuple1); - -declare function bar(arg1: string, arg2: number, ...rest: string[]): void; -const array: string[] = ['a']; -bar('a', 1, ...array); - -declare function baz(arg1: Set, arg2: Map): void; -foo(new Set(), new Map()); -``` - - - - -There are cases where the rule allows passing an argument of `any` to `unknown`. - -Example of `any` to `unknown` assignment that are allowed: - -```ts showPlaygroundButton -declare function foo(arg1: unknown, arg2: Set, arg3: unknown[]): void; -foo(1 as any, new Set(), [] as any[]); -``` - -## When Not To Use It - -If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. -It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-explicit-any`](./no-explicit-any.mdx) -- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) -- [`no-unsafe-call`](./no-unsafe-call.mdx) -- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) -- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx deleted file mode 100644 index 84a1d0ee..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.mdx +++ /dev/null @@ -1,100 +0,0 @@ ---- -description: 'Disallow assigning a value with type `any` to variables and properties.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-assignment** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. - -Despite your best intentions, the `any` type can sometimes leak into your codebase. -Assigning an `any` typed value to a variable can be hard to pick up on, particularly if it leaks in from an external library. - -This rule disallows assigning `any` to a variable, and assigning `any[]` to an array destructuring. - -This rule also compares generic type argument types to ensure you don't pass an unsafe `any` in a generic position to a receiver that's expecting a specific type. -For example, it will error if you assign `Set` to a variable declared as `Set`. - -## Examples - - - - -```ts -const x = 1 as any, - y = 1 as any; -const [x] = 1 as any; -const [x] = [] as any[]; -const [x] = [1 as any]; -[x] = [1] as [any]; - -function foo(a = 1 as any) {} -class Foo { - constructor(private a = 1 as any) {} -} -class Foo { - private a = 1 as any; -} - -// generic position examples -const x: Set = new Set(); -const x: Map = new Map(); -const x: Set = new Set(); -const x: Set>> = new Set>>(); -``` - - - - -```ts -const x = 1, - y = 1; -const [x] = [1]; -[x] = [1] as [number]; - -function foo(a = 1) {} -class Foo { - constructor(private a = 1) {} -} -class Foo { - private a = 1; -} - -// generic position examples -const x: Set = new Set(); -const x: Map = new Map(); -const x: Set = new Set(); -const x: Set>> = new Set>>(); -``` - - - - -There are cases where the rule allows assignment of `any` to `unknown`. - -Example of `any` to `unknown` assignment that are allowed: - -```ts showPlaygroundButton -const x: unknown = y as any; -const x: unknown[] = y as any[]; -const x: Set = y as Set; -``` - -## When Not To Use It - -If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. -It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-explicit-any`](./no-explicit-any.mdx) -- [`no-unsafe-argument`](./no-unsafe-argument.mdx) -- [`no-unsafe-call`](./no-unsafe-call.mdx) -- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) -- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx deleted file mode 100644 index 3e56c1e0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx +++ /dev/null @@ -1,74 +0,0 @@ ---- -description: 'Disallow calling a value with type `any`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-call** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. - -Despite your best intentions, the `any` type can sometimes leak into your codebase. -Calling an `any`-typed value as a function creates a potential type safety hole and source of bugs in your codebase. - -This rule disallows calling any value that is typed as `any`. - -## Examples - - - - -```ts -declare const anyVar: any; -declare const nestedAny: { prop: any }; - -anyVar(); -anyVar.a.b(); - -nestedAny.prop(); -nestedAny.prop['a'](); - -new anyVar(); -new nestedAny.prop(); - -anyVar`foo`; -nestedAny.prop`foo`; -``` - - - - -```ts -declare const typedVar: () => void; -declare const typedNested: { prop: { a: () => void } }; - -typedVar(); -typedNested.prop.a(); - -(() => {})(); - -new Map(); - -String.raw`foo`; -``` - - - - -## When Not To Use It - -If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. -It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-explicit-any`](./no-explicit-any.mdx) -- [`no-unsafe-argument`](./no-unsafe-argument.mdx) -- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) -- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) -- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx deleted file mode 100644 index d03605f9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -description: 'Disallow unsafe declaration merging.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-declaration-merging** for documentation. - -TypeScript's "declaration merging" supports merging separate declarations with the same name. - -Declaration merging between classes and interfaces is unsafe. -The TypeScript compiler doesn't check whether properties are initialized, which can cause lead to TypeScript not detecting code that will cause runtime errors. - -```ts -interface Foo { - nums: number[]; -} - -class Foo {} - -const foo = new Foo(); - -foo.nums.push(1); // Runtime Error: Cannot read properties of undefined. -``` - -## Examples - - - - -```ts -interface Foo {} - -class Foo {} -``` - - - - -```ts -interface Foo {} -class Bar implements Foo {} - -namespace Baz {} -namespace Baz {} -enum Baz {} - -namespace Qux {} -function Qux() {} -``` - - - - -## When Not To Use It - -If your project intentionally defines classes and interfaces with unsafe declaration merging patterns, this rule might not be for you. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [Declaration Merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx deleted file mode 100644 index 7988317b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -description: 'Disallow comparing an enum value with a non-enum value.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-enum-comparison** for documentation. - -The TypeScript compiler can be surprisingly lenient when working with enums. String enums are widely considered to be safer than number enums, but even string enums have some pitfalls. For example, it is allowed to compare enum values against literals: - -```ts -enum Vegetable { - Asparagus = 'asparagus', -} - -declare const vegetable: Vegetable; - -vegetable === 'asparagus'; // No error -``` - -The above code snippet should instead be written as `vegetable === Vegetable.Asparagus`. Allowing literals in comparisons subverts the point of using enums in the first place. By enforcing comparisons with properly typed enums: - -- It makes a codebase more resilient to enum members changing values. -- It allows for code IDEs to use the "Rename Symbol" feature to quickly rename an enum. -- It aligns code to the proper enum semantics of referring to them by name and treating their values as implementation details. - -## Examples - - - - -```ts -enum Fruit { - Apple, -} - -declare let fruit: Fruit; - -fruit === 0; -``` - -```ts -enum Vegetable { - Asparagus = 'asparagus', -} - -declare let vegetable: Vegetable; - -vegetable === 'asparagus'; -``` - - - - -```ts -enum Fruit { - Apple, -} - -declare let fruit: Fruit; - -fruit === Fruit.Apple; -``` - -```ts -enum Vegetable { - Asparagus = 'asparagus', -} - -declare let vegetable: Vegetable; - -vegetable === Vegetable.Asparagus; -``` - - - - -## When Not To Use It - -If you don't mind number and/or literal string constants being compared against enums, you likely don't need this rule. - -Separately, in the rare case of relying on an third party enums that are only imported as `type`s, it may be difficult to adhere to this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx deleted file mode 100644 index ea7b6079..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -description: 'Disallow using the unsafe built-in Function type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-function-type** for documentation. - -TypeScript's built-in `Function` type allows being called with any number of arguments and returns type `any`. -`Function` also allows classes or plain objects that happen to possess all properties of the `Function` class. -It's generally better to specify function parameters and return types with the function type syntax. - -"Catch-all" function types include: - -- `() => void`: a function that has no parameters and whose return is ignored -- `(...args: never) => unknown`: a "top type" for functions that can be assigned any function type, but can't be called - -Examples of code for this rule: - - - - -```ts -let noParametersOrReturn: Function; -noParametersOrReturn = () => {}; - -let stringToNumber: Function; -stringToNumber = (text: string) => text.length; - -let identity: Function; -identity = value => value; -``` - - - - -```ts -let noParametersOrReturn: () => void; -noParametersOrReturn = () => {}; - -let stringToNumber: (text: string) => number; -stringToNumber = text => text.length; - -let identity: (value: T) => T; -identity = value => value; -``` - - - - -## When Not To Use It - -If your project is still onboarding to TypeScript, it might be difficult to fully replace all unsafe `Function` types with more precise function types. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-empty-object-type`](./no-empty-object-type.mdx) -- [`no-restricted-types`](./no-restricted-types.mdx) -- [`no-wrapper-object-types`](./no-wrapper-object-types.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx deleted file mode 100644 index 4b41fb56..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -description: 'Disallow member access on a value with type `any`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-member-access** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. - -Despite your best intentions, the `any` type can sometimes leak into your codebase. -Accessing a member of an `any`-typed value creates a potential type safety hole and source of bugs in your codebase. - -This rule disallows member access on any variable that is typed as `any`. - -## Examples - - - - -```ts -declare const anyVar: any; -declare const nestedAny: { prop: any }; - -anyVar.a; -anyVar.a.b; -anyVar['a']; -anyVar['a']['b']; - -nestedAny.prop.a; -nestedAny.prop['a']; - -const key = 'a'; -nestedAny.prop[key]; - -// Using an any to access a member is unsafe -const arr = [1, 2, 3]; -arr[anyVar]; -nestedAny[anyVar]; -``` - - - - -```ts -declare const properlyTyped: { prop: { a: string } }; - -properlyTyped.prop.a; -properlyTyped.prop['a']; - -const key = 'a'; -properlyTyped.prop[key]; - -const arr = [1, 2, 3]; -arr[1]; -let idx = 1; -arr[idx]; -arr[idx++]; -``` - - - - -## When Not To Use It - -If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. -It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-explicit-any`](./no-explicit-any.mdx) -- [`no-unsafe-argument`](./no-unsafe-argument.mdx) -- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) -- [`no-unsafe-call`](./no-unsafe-call.mdx) -- [`no-unsafe-return`](./no-unsafe-return.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx deleted file mode 100644 index 1b6170dc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.mdx +++ /dev/null @@ -1,125 +0,0 @@ ---- -description: 'Disallow returning a value with type `any` from a function.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-return** for documentation. - -The `any` type in TypeScript is a dangerous "escape hatch" from the type system. -Using `any` disables many type checking rules and is generally best used only as a last resort or when prototyping code. - -Despite your best intentions, the `any` type can sometimes leak into your codebase. -Returning an an `any`-typed value from a function creates a potential type safety hole and source of bugs in your codebase. - -This rule disallows returning `any` or `any[]` from a function and returning `Promise` from an async function. - -This rule also compares generic type argument types to ensure you don't return an unsafe `any` in a generic position to a function that's expecting a specific type. -For example, it will error if you return `Set` from a function declared as returning `Set`. - -## Examples - - - - -```ts -function foo1() { - return 1 as any; -} -function foo2() { - return Object.create(null); -} -const foo3 = () => { - return 1 as any; -}; -const foo4 = () => Object.create(null); - -function foo5() { - return [] as any[]; -} -function foo6() { - return [] as Array; -} -function foo7() { - return [] as readonly any[]; -} -function foo8() { - return [] as Readonly; -} -const foo9 = () => { - return [] as any[]; -}; -const foo10 = () => [] as any[]; - -const foo11 = (): string[] => [1, 2, 3] as any[]; - -async function foo13() { - return Promise.resolve({} as any); -} - -// generic position examples -function assignability1(): Set { - return new Set([1]); -} -type TAssign = () => Set; -const assignability2: TAssign = () => new Set([true]); -``` - - - - -```ts -function foo1() { - return 1; -} -function foo2() { - return Object.create(null) as Record; -} - -const foo3 = () => []; -const foo4 = () => ['a']; - -async function foo5() { - return Promise.resolve(1); -} - -function assignability1(): Set { - return new Set(['foo']); -} -type TAssign = () => Set; -const assignability2: TAssign = () => new Set(['foo']); -``` - - - - -There are cases where the rule allows to return `any` to `unknown`. - -Examples of `any` to `unknown` return that are allowed: - -```ts showPlaygroundButton -function foo1(): unknown { - return JSON.parse(singleObjString); // Return type for JSON.parse is any. -} - -function foo2(): unknown[] { - return [] as any[]; -} -``` - -## When Not To Use It - -If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule. -It may be easier to skip the `no-unsafe-*` rules pending increasing type safety in unsafe areas of your project. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-explicit-any`](./no-explicit-any.mdx) -- [`no-unsafe-argument`](./no-unsafe-argument.mdx) -- [`no-unsafe-assignment`](./no-unsafe-assignment.mdx) -- [`no-unsafe-call`](./no-unsafe-call.mdx) -- [`no-unsafe-member-access`](./no-unsafe-member-access.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx deleted file mode 100644 index 307914ef..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: 'Require unary negation to take a number.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unsafe-unary-minus** for documentation. - -TypeScript does not prevent you from putting a minus sign before things other than numbers: - -```ts -const s = 'hello'; -const x = -s; // x is NaN -``` - -This rule restricts the unary `-` operator to `number | bigint`. - -## Examples - - - - -```ts -declare const a: string; --a; - -declare const b: {}; --b; -``` - - - - -```ts --42; --42n; - -declare const a: number; --a; - -declare const b: number; --b; - -declare const c: number | bigint; --c; - -declare const d: any; --d; - -declare const e: 1 | 2; --e; -``` - - - - -{/* Intentionally Omitted: When Not To Use It */} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx deleted file mode 100644 index 8d185e92..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.mdx +++ /dev/null @@ -1,53 +0,0 @@ ---- -description: 'Disallow unused expressions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unused-expressions** for documentation. - -This rule extends the base [`eslint/no-unused-expressions`](https://eslint.org/docs/rules/no-unused-expressions) rule. -It supports TypeScript-specific expressions: - -- Marks directives in modules declarations (`"use strict"`, etc.) as not unused -- Marks the following expressions as unused if their wrapped value expressions are unused: - - Assertion expressions: `x as number;`, `x!;`, `x;` - - Instantiation expressions: `Set;` - -Although the type expressions never have runtime side effects (that is, `x!;` is the same as `x;`), they can be used to assert types for testing purposes. - -## Examples - - - - -```ts -Set; -1 as number; -window!; -``` - - - - -```ts -function getSet() { - return Set; -} - -// Funtion calls are allowed, so type expressions that wrap function calls are allowed -getSet(); -getSet() as Set; -getSet()!; - -// Namespaces can have directives -namespace A { - 'use strict'; -} -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx deleted file mode 100644 index 0e4fab22..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -description: 'Disallow unused variables.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-unused-vars** for documentation. - -This rule extends the base [`eslint/no-unused-vars`](https://eslint.org/docs/rules/no-unused-vars) rule. -It adds support for TypeScript features, such as types. - -## Benefits Over TypeScript - -TypeScript provides [`noUnusedLocals`](https://www.typescriptlang.org/tsconfig#noUnusedLocals) and [`noUnusedParameters`](https://www.typescriptlang.org/tsconfig#noUnusedParameters) compiler options that can report errors on unused local variables or parameters, respectively. -Those compiler options can be convenient to use if you don't want to set up ESLint and typescript-eslint. -However: - -- These lint rules are more configurable than TypeScript's compiler options. - - For example, the [`varsIgnorePattern` option](https://eslint.org/docs/latest/rules/no-unused-vars#varsignorepattern) can customize what names are always allowed to be exempted. TypeScript hardcodes its exemptions to names starting with `_`. - If you would like to emulate the TypeScript style of exempting names starting with `_`, you can use this configuration (this includes errors as well): - ```json - { - "rules": { - "@typescript-eslint/no-unused-vars": [ - "error", - { - "args": "all", - "argsIgnorePattern": "^_", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "^_", - "destructuredArrayIgnorePattern": "^_", - "varsIgnorePattern": "^_", - "ignoreRestSiblings": true - } - ] - } - } - ``` -- [ESLint can be configured](https://eslint.org/docs/latest/use/configure/rules) within lines, files, and folders. TypeScript compiler options are linked to their TSConfig file. -- Many projects configure TypeScript's reported errors to block builds more aggressively than ESLint complaints. Blocking builds on unused variables can be inconvenient. - -We generally recommend using `@typescript-eslint/no-unused-vars` to flag unused locals and parameters instead of TypeScript. - -:::tip -Editors such as VS Code will still generally "grey out" unused variables even if `noUnusedLocals` and `noUnusedParameters` are not enabled in a project. -::: - -Also see similar rules provided by ESLint: - -- [`no-unused-private-class-members`](https://eslint.org/docs/latest/rules/no-unused-private-class-members) -- [`no-unused-labels`](https://eslint.org/docs/latest/rules/no-unused-labels) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx deleted file mode 100644 index 9b431874..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -description: 'Disallow the use of variables before they are defined.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-use-before-define** for documentation. - -This rule extends the base [`eslint/no-use-before-define`](https://eslint.org/docs/rules/no-use-before-define) rule. -It adds support for `type`, `interface` and `enum` declarations. - -## Options - -This rule adds the following options: - -```ts -interface Options extends BaseNoUseBeforeDefineOptions { - enums?: boolean; - typedefs?: boolean; - ignoreTypeReferences?: boolean; -} - -const defaultOptions: Options = { - ...baseNoUseBeforeDefineDefaultOptions, - enums: true, - typedefs: true, - ignoreTypeReferences: true, -}; -``` - -### `enums` - -If this is `true`, this rule warns every reference to a enum before the enum declaration. -If this is `false`, this rule will ignore references to enums, when the reference is in a child scope. - -Examples of code for the `{ "enums": true }` option: - - - - -```ts option='{ "enums": true }' -const x = Foo.FOO; - -enum Foo { - FOO, -} -``` - - - - -```ts option='{ "enums": false }' -function foo() { - return Foo.FOO; -} - -enum Foo { - FOO, -} -``` - - - - -### `typedefs` - -If this is `true`, this rule warns every reference to a type before the type declaration. -If this is `false`, this rule will ignore references to types. - -Examples of **correct** code for the `{ "typedefs": false }` option: - -```ts option='{ "typedefs": false }' showPlaygroundButton -let myVar: StringOrNumber; -type StringOrNumber = string | number; -``` - -### `ignoreTypeReferences` - -If this is `true`, this rule ignores all type references, such as in type annotations and assertions. -If this is `false`, this will will check all type references. - -Examples of **correct** code for the `{ "ignoreTypeReferences": true }` option: - -```ts option='{ "ignoreTypeReferences": true }' showPlaygroundButton -let var1: StringOrNumber; -type StringOrNumber = string | number; - -let var2: Enum; -enum Enum {} -``` diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx deleted file mode 100644 index 4003fefc..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.mdx +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: 'Disallow unnecessary constructors.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-useless-constructor** for documentation. - -This rule extends the base [`eslint/no-useless-constructor`](https://eslint.org/docs/rules/no-useless-constructor) rule. -It adds support for: - -- constructors marked as `protected` / `private` (i.e. marking a constructor as non-public), -- `public` constructors when there is no superclass, -- constructors with only parameter properties. - -### Caveat - -This lint rule will report on constructors whose sole purpose is to change visibility of a parent constructor. -See [discussion on this rule's lack of type information](https://github.com/typescript-eslint/typescript-eslint/issues/3820#issuecomment-917821240) for context. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx deleted file mode 100644 index 27d66d9d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-empty-export.mdx +++ /dev/null @@ -1,53 +0,0 @@ ---- -description: "Disallow empty exports that don't change anything in a module file." ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-useless-empty-export** for documentation. - -An empty `export {}` statement is sometimes useful in TypeScript code to turn a file that would otherwise be a script file into a module file. -Per the [TypeScript Handbook Modules page](https://www.typescriptlang.org/docs/handbook/modules.html): - -> In TypeScript, just as in ECMAScript 2015, any file containing a top-level import or export is considered a module. -> Conversely, a file without any top-level import or export declarations is treated as a script whose contents are available in the global scope (and therefore to modules as well). - -However, an `export {}` statement does nothing if there are any other top-level import or export statements in a file. - -This rule reports an `export {}` that doesn't do anything in a file already using ES modules. - -## Examples - - - - -```ts -export const value = 'Hello, world!'; -export {}; -``` - -```ts -import 'some-other-module'; -export {}; -``` - - - - -```ts -export const value = 'Hello, world!'; -``` - -```ts -import 'some-other-module'; -``` - - - - -## When Not To Use It - -If you don't mind an empty `export {}` at the bottom of files, you likely don't need this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx deleted file mode 100644 index c255f8c7..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-template-literals.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been renamed to [`no-unnecessary-template-expression`](./no-unnecessary-template-expression.mdx). See [#8544](https://github.com/typescript-eslint/typescript-eslint/issues/8544) for more information. - -::: diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx deleted file mode 100644 index c9945304..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-var-requires.mdx +++ /dev/null @@ -1,75 +0,0 @@ ---- -description: 'Disallow `require` statements except in import statements.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-var-requires** for documentation. - -:::danger Deprecated - -This rule has been deprecated in favour of the [`@typescript-eslint/no-require-imports`](./no-require-imports.mdx) rule. - -::: - -In other words, the use of forms such as `var foo = require("foo")` are banned. Instead use ES6 style imports or `import foo = require("foo")` imports. - -## Examples - - - - -```ts -var foo = require('foo'); -const foo = require('foo'); -let foo = require('foo'); -``` - - - - -```ts -import foo = require('foo'); -require('foo'); -import foo from 'foo'; -``` - - - - -## Options - -### `allow` - -A array of strings. These strings will be compiled into regular expressions with the `u` flag and be used to test against the imported path. A common use case is to allow importing `package.json`. This is because `package.json` commonly lives outside of the TS root directory, so statically importing it would lead to root directory conflicts, especially with `resolveJsonModule` enabled. You can also use it to allow importing any JSON if your environment doesn't support JSON modules, or use it for other cases where `import` statements cannot work. - -With `{allow: ['/package\\.json$']}`: - - - - -```ts option='{ "allow": ["/package.json$"] }' -const foo = require('../data.json'); -``` - - - - -```ts option='{ "allow": ["/package.json$"] }' -const foo = require('../package.json'); -``` - - - - -## When Not To Use It - -If your project frequently uses older CommonJS `require`s, then this rule might not be applicable to you. -If only a subset of your project uses `require`s then you might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Related To - -- [`no-require-imports`](./no-require-imports.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx deleted file mode 100644 index 2d6a9337..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-wrapper-object-types.mdx +++ /dev/null @@ -1,75 +0,0 @@ ---- -description: 'Disallow using confusing built-in primitive class wrappers.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/no-wrapper-object-types** for documentation. - -TypeScript defines several confusing pairs of types that look very similar to each other, but actually mean different things: `boolean`/`Boolean`, `number`/`Number`, `string`/`String`, `bigint`/`BigInt`, `symbol`/`Symbol`, `object`/`Object`. -In general, only the lowercase variant is appropriate to use. -Therefore, this rule enforces that you only use the lowercase variant. - -JavaScript has [8 data types](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures) at runtime, and these are described in TypeScript by the lowercase types `undefined`, `null`, `boolean`, `number`, `string`, `bigint`, `symbol`, and `object`. - -As for the uppercase types, these are _structural types_ which describe JavaScript "wrapper" objects for each of the data types, such as [`Boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) and [`Number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number). -Additionally, due to the quirks of structural typing, the corresponding primitives are _also_ assignable to these uppercase types, since they have the same "shape". - -It is a universal best practice to work directly with the built-in primitives, like `0`, rather than objects that "look like" the corresponding primitive, like `new Number(0)`. - -- Primitives have the expected value semantics with `==` and `===` equality checks, whereas their object counterparts are compared by reference. - That is to say, `"str" === "str"` but `new String("str") !== new String("str")`. -- Primitives have well-known behavior around truthiness/falsiness which is common to rely on, whereas all objects are truthy, regardless of the wrapped value (e.g. `new Boolean(false)` is truthy). -- TypeScript only allows arithmetic operations (e.g. `x - y`) to be performed on numeric primitives, not objects. - -As a result, using the lowercase type names like `number` in TypeScript types instead of the uppercase names like `Number` is a better practice that describes code more accurately. - -Examples of code for this rule: - - - - -```ts -let myBigInt: BigInt; -let myBoolean: Boolean; -let myNumber: Number; -let myString: String; -let mySymbol: Symbol; - -let myObject: Object = 'allowed by TypeScript'; -``` - - - - -```ts -let myBigint: bigint; -let myBoolean: boolean; -let myNumber: number; -let myString: string; -let mySymbol: symbol; - -let myObject: object = "Type 'string' is not assignable to type 'object'."; -``` - - - - -## When Not To Use It - -If your project is a rare one that intentionally deals with the class equivalents of primitives, it might not be worthwhile to use this rule. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [MDN documentation on primitives](https://developer.mozilla.org/en-US/docs/Glossary/Primitive) -- [MDN documentation on `string` primitives and `String` objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#string_primitives_and_string_objects) - -## Related To - -- [`no-empty-object-type`](./no-empty-object-type.mdx) -- [`no-restricted-types`](./no-restricted-types.mdx) -- [`no-unsafe-function-type`](./no-unsafe-function-type.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx deleted file mode 100644 index cbb1dc0f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx +++ /dev/null @@ -1,47 +0,0 @@ ---- -description: 'Enforce non-null assertions over explicit type casts.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/non-nullable-type-assertion-style** for documentation. - -There are two common ways to assert to TypeScript that a value is its type without `null` or `undefined`: - -- `!`: Non-null assertion -- `as`: Traditional type assertion with a coincidentally equivalent type - -`!` non-null assertions are generally preferred for requiring less code and being harder to fall out of sync as types change. -This rule reports when an `as` cast is doing the same job as a `!` would, and suggests fixing the code to be an `!`. - -## Examples - - - - -```ts -const maybe: string | undefined = Math.random() > 0.5 ? '' : undefined; - -const definitely = maybe as string; -const alsoDefinitely = maybe; -``` - - - - -```ts -const maybe: string | undefined = Math.random() > 0.5 ? '' : undefined; - -const definitely = maybe!; -const alsoDefinitely = maybe!; -``` - - - - -## When Not To Use It - -If you don't mind having unnecessarily verbose type assertions, you can avoid this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/object-curly-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx deleted file mode 100644 index 8fffde42..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/only-throw-error.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -description: 'Disallow throwing non-`Error` values as exceptions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/only-throw-error** for documentation. - -It is considered good practice to only `throw` the `Error` object itself or an object using the `Error` object as base objects for user-defined exceptions. -The fundamental benefit of `Error` objects is that they automatically keep track of where they were built and originated. - -This rule restricts what can be thrown as an exception. - -:::info[Migration from `no-throw-literal`] - -This rule was formerly known as `no-throw-literal`. -The new name is a drop-in replacement with identical functionality. - -::: - -## Examples - -This rule is aimed at maintaining consistency when throwing exception by disallowing to throw literals and other expressions which cannot possibly be an `Error` object. - - - - -```ts -throw 'error'; - -throw 0; - -throw undefined; - -throw null; - -const err = new Error(); -throw 'an ' + err; - -const err = new Error(); -throw `${err}`; - -const err = ''; -throw err; - -function getError() { - return ''; -} -throw getError(); - -const foo = { - bar: '', -}; -throw foo.bar; -``` - - - - -```ts -throw new Error(); - -throw new Error('error'); - -const e = new Error('error'); -throw e; - -try { - throw new Error('error'); -} catch (e) { - throw e; -} - -const err = new Error(); -throw err; - -function getError() { - return new Error(); -} -throw getError(); - -const foo = { - bar: new Error(), -}; -throw foo.bar; - -class CustomError extends Error { - // ... -} -throw new CustomError(); -``` - - - - -## Options - -This rule adds the following options: - -```ts -interface Options { - /** - * Whether to always allow throwing values typed as `any`. - */ - allowThrowingAny?: boolean; - - /** - * Whether to always allow throwing values typed as `unknown`. - */ - allowThrowingUnknown?: boolean; -} - -const defaultOptions: Options = { - allowThrowingAny: false, - allowThrowingUnknown: false, -}; -``` - -{/* Intentionally Omitted: When Not To Use It */} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/padding-line-between-statements.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx deleted file mode 100644 index b9915dd6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/parameter-properties.mdx +++ /dev/null @@ -1,518 +0,0 @@ ---- -description: 'Require or disallow parameter properties in class constructors.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/parameter-properties** for documentation. - -TypeScript includes a "parameter properties" shorthand for declaring a class constructor parameter and class property in one location. -Parameter properties can be confusing to those new to TypeScript as they are less explicit than other ways of declaring and initializing class members. - -This rule can be configured to always disallow the use of parameter properties or enforce their usage when possible. - -## Options - -This rule, in its default state, does not require any argument and would completely disallow the use of parameter properties. -It may take an options object containing either or both of: - -- `"allow"`: allowing certain kinds of properties to be ignored -- `"prefer"`: either `"class-property"` _(default)_ or `"parameter-property"` - -### `allow` - -If you would like to ignore certain kinds of properties then you may pass an object containing `"allow"` as an array of any of the following options: - -- `allow`, an array containing one or more of the allowed modifiers. Valid values are: - - `readonly`, allows **readonly** parameter properties. - - `private`, allows **private** parameter properties. - - `protected`, allows **protected** parameter properties. - - `public`, allows **public** parameter properties. - - `private readonly`, allows **private readonly** parameter properties. - - `protected readonly`, allows **protected readonly** parameter properties. - - `public readonly`, allows **public readonly** parameter properties. - -For example, to ignore `public` properties: - -```json -{ - "@typescript-eslint/parameter-properties": [ - true, - { - "allow": ["public"] - } - ] -} -``` - -### `prefer` - -By default, the rule prefers class property (`"class-property"`). -You can switch it to instead preferring parameter property with (`"parameter-property"`). - -In `"parameter-property"` mode, the rule will issue a report when: - -- A class property and constructor parameter have the same name and type -- The constructor parameter is assigned to the class property at the beginning of the constructor - -### default - -Examples of code for this rule with no options at all: - - - - -```ts -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts -class Foo { - constructor(name: string) {} -} -``` - - - - -### readonly - -Examples of code for the `{ "allow": ["readonly"] }` options: - - - - -```ts option='{ "allow": ["readonly"] }' -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["readonly"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(readonly name: string) {} -} -``` - - - - -### private - -Examples of code for the `{ "allow": ["private"] }` options: - - - - -```ts option='{ "allow": ["private"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["private"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(private name: string) {} -} -``` - - - - -### protected - -Examples of code for the `{ "allow": ["protected"] }` options: - - - - -```ts option='{ "allow": ["protected"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["protected"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} -``` - - - - -### public - -Examples of code for the `{ "allow": ["public"] }` options: - - - - -```ts option='{ "allow": ["public"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["public"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(public name: string) {} -} -``` - - - - -### private readonly - -Examples of code for the `{ "allow": ["private readonly"] }` options: - - - - -```ts option='{ "allow": ["private readonly"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["private readonly"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} -``` - - - - -### protected readonly - -Examples of code for the `{ "allow": ["protected readonly"] }` options: - - - - -```ts option='{ "allow": ["protected readonly"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["protected readonly"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} -``` - - - - -### public readonly - -Examples of code for the `{ "allow": ["public readonly"] }` options: - - - - -```ts option='{ "allow": ["public readonly"] }' -class Foo { - constructor(readonly name: string) {} -} - -class Foo { - constructor(private name: string) {} -} - -class Foo { - constructor(protected name: string) {} -} - -class Foo { - constructor(public name: string) {} -} - -class Foo { - constructor(private readonly name: string) {} -} - -class Foo { - constructor(protected readonly name: string) {} -} -``` - - - - -```ts option='{ "allow": ["public readonly"] }' -class Foo { - constructor(name: string) {} -} - -class Foo { - constructor(public readonly name: string) {} -} -``` - - - - -### `"parameter-property"` - -Examples of code for the `{ "prefer": "parameter-property" }` option: - - - - -```ts option='{ "prefer": "parameter-property" }' -class Foo { - private name: string; - constructor(name: string) { - this.name = name; - } -} - -class Foo { - public readonly name: string; - constructor(name: string) { - this.name = name; - } -} - -class Foo { - constructor(name: string) { - this.name = name; - } - name: string; -} -``` - - - - -```ts option='{ "prefer": "parameter-property" }' -class Foo { - private differentName: string; - constructor(name: string) { - this.differentName = name; - } -} - -class Foo { - private differentType: number | undefined; - constructor(differentType: number) { - this.differentType = differentType; - } -} - -class Foo { - protected logicInConstructor: string; - constructor(logicInConstructor: string) { - console.log('Hello, world!'); - this.logicInConstructor = logicInConstructor; - } -} -``` - - - - -## When Not To Use It - -If you don't care about which style of parameter properties in constructors is used in your classes, then you will not need this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx deleted file mode 100644 index e7237661..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -description: 'Enforce the use of `as const` over literal type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-as-const** for documentation. - -There are two common ways to tell TypeScript that a literal value should be interpreted as its literal type (e.g. `2`) rather than general primitive type (e.g. `number`); - -- `as const`: telling TypeScript to infer the literal type automatically -- `as` with the literal type: explicitly telling the literal type to TypeScript - -`as const` is generally preferred, as it doesn't require re-typing the literal value. -This rule reports when an `as` with an explicit literal type can be replaced with an `as const`. - -## Examples - - - - -```ts -let bar: 2 = 2; -let foo = <'bar'>'bar'; -let foo = { bar: 'baz' as 'baz' }; -``` - - - - -```ts -let foo = 'bar'; -let foo = 'bar' as const; -let foo: 'bar' = 'bar' as const; -let bar = 'bar' as string; -let foo = 'bar'; -let foo = { bar: 'baz' }; -``` - - - - -## When Not To Use It - -If you don't care about which style of literals assertions is used in your code, then you will not need this rule. - -However, keep in mind that inconsistent style can harm readability in a project. -We recommend picking a single option for this rule that works best for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx deleted file mode 100644 index 411e376b..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-destructuring.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -description: 'Require destructuring from arrays and/or objects.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-destructuring** for documentation. - -## Examples - -This rule extends the base [`eslint/prefer-destructuring`](https://eslint.org/docs/latest/rules/prefer-destructuring) rule. -It adds support for TypeScript's type annotations in variable declarations. - - - - - -```ts -const x: string = obj.x; // This is incorrect and the auto fixer provides following untyped fix. -// const { x } = obj; -``` - - - - -```ts -const x: string = obj.x; // This is correct by default. You can also forbid this by an option. -``` - - - - -And it infers binding patterns more accurately thanks to the type checker. - - - - -```ts -const x = ['a']; -const y = x[0]; -``` - - - - -```ts -const x = { 0: 'a' }; -const y = x[0]; -``` - -It is correct when `enforceForRenamedProperties` is not true. -Valid destructuring syntax is renamed style like `{ 0: y } = x` rather than `[y] = x` because `x` is not iterable. - - - - -## Options - -This rule adds the following options: - -```ts -type Options = [ - BasePreferDestructuringOptions[0], - BasePreferDestructuringOptions[1] & { - enforceForDeclarationWithTypeAnnotation?: boolean; - }, -]; - -const defaultOptions: Options = [ - basePreferDestructuringDefaultOptions[0], - { - ...basePreferDestructuringDefaultOptions[1], - enforceForDeclarationWithTypeAnnotation: false, - }, -]; -``` - -### `enforceForDeclarationWithTypeAnnotation` - -When set to `true`, type annotated variable declarations are enforced to use destructuring assignment. - -Examples with `{ enforceForDeclarationWithTypeAnnotation: true }`: - - - - -```ts option='{ "object": true }, { "enforceForDeclarationWithTypeAnnotation": true }' -const x: string = obj.x; -``` - - - - -```ts option='{ "object": true }, { "enforceForDeclarationWithTypeAnnotation": true }' -const { x }: { x: string } = obj; -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx deleted file mode 100644 index 1c208ed4..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -description: 'Require each enum member value to be explicitly initialized.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-enum-initializers** for documentation. - -TypeScript `enum`s are a practical way to organize semantically related constant values. -Members of `enum`s that don't have explicit values are by default given sequentially increasing numbers. - -In projects where the value of `enum` members are important, allowing implicit values for enums can cause bugs if `enum`s are modified over time. - -This rule recommends having each `enum` member value explicitly initialized. - -## Examples - - - - -```ts -enum Status { - Open = 1, - Close, -} - -enum Direction { - Up, - Down, -} - -enum Color { - Red, - Green = 'Green', - Blue = 'Blue', -} -``` - - - - -```ts -enum Status { - Open = 'Open', - Close = 'Close', -} - -enum Direction { - Up = 1, - Down = 2, -} - -enum Color { - Red = 'Red', - Green = 'Green', - Blue = 'Blue', -} -``` - - - - -## When Not To Use It - -If you don't care about `enum`s having implicit values you can safely disable this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx deleted file mode 100644 index 66089f55..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-find.mdx +++ /dev/null @@ -1,45 +0,0 @@ ---- -description: 'Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-find** for documentation. - -When searching for the first item in an array matching a condition, it may be tempting to use code like `arr.filter(x => x > 0)[0]`. -However, it is simpler to use [Array.prototype.find()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find) instead, `arr.find(x => x > 0)`, which also returns the first entry matching a condition. -Because the `.find()` only needs to execute the callback until it finds a match, it's also more efficient. - -:::info - -Beware the difference in short-circuiting behavior between the approaches. -`.find()` will only execute the callback on array elements until it finds a match, whereas `.filter()` executes the callback for all array elements. -Therefore, when fixing errors from this rule, be sure that your `.filter()` callbacks do not have side effects. - -::: - - - - -```ts -[1, 2, 3].filter(x => x > 1)[0]; - -[1, 2, 3].filter(x => x > 1).at(0); -``` - - - - -```ts -[1, 2, 3].find(x => x > 1); -``` - - - - -## When Not To Use It - -If you intentionally use patterns like `.filter(callback)[0]` to execute side effects in `callback` on all array elements, you will want to avoid this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx deleted file mode 100644 index 0399c781..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-for-of.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -description: 'Enforce the use of `for-of` loop over the standard `for` loop where possible.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-for-of** for documentation. - -Many developers default to writing `for (let i = 0; i < ...` loops to iterate over arrays. -However, in many of those arrays, the loop iterator variable (e.g. `i`) is only used to access the respective element of the array. -In those cases, a `for-of` loop is easier to read and write. - -This rule recommends a for-of loop when the loop index is only used to read from an array that is being iterated. - -## Examples - - - - -```ts -declare const array: string[]; - -for (let i = 0; i < array.length; i++) { - console.log(array[i]); -} -``` - - - - -```ts -declare const array: string[]; - -for (const x of array) { - console.log(x); -} - -for (let i = 0; i < array.length; i++) { - // i is used, so for-of could not be used. - console.log(i, array[i]); -} -``` - - - - -{/* Intentionally Omitted: When Not To Use It */} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx deleted file mode 100644 index e6a69884..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.mdx +++ /dev/null @@ -1,98 +0,0 @@ ---- -description: 'Enforce using function types instead of interfaces with call signatures.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-function-type** for documentation. - -TypeScript allows for two common ways to declare a type for a function: - -- Function type: `() => string` -- Object type with a signature: `{ (): string }` - -The function type form is generally preferred when possible for being more succinct. - -This rule suggests using a function type instead of an interface or object type literal with a single call signature. - -## Examples - - - - -```ts -interface Example { - (): string; -} -``` - -```ts -function foo(example: { (): number }): number { - return example(); -} -``` - -```ts -interface ReturnsSelf { - // returns the function itself, not the `this` argument. - (arg: string): this; -} -``` - - - - -```ts -type Example = () => string; -``` - -```ts -function foo(example: () => number): number { - return bar(); -} -``` - -```ts -// returns the function itself, not the `this` argument. -type ReturnsSelf = (arg: string) => ReturnsSelf; -``` - -```ts -function foo(bar: { (): string; baz: number }): string { - return bar(); -} -``` - -```ts -interface Foo { - bar: string; -} -interface Bar extends Foo { - (): void; -} -``` - -```ts -// multiple call signatures (overloads) is allowed: -interface Overloaded { - (data: string): number; - (id: number): string; -} -// this is equivelent to Overloaded interface. -type Intersection = ((data: string) => number) & ((id: number) => string); -``` - - - - -## When Not To Use It - -If you specifically want to use an interface or type literal with a single call signature for stylistic reasons, you can avoid this rule. - -This rule has a known edge case of sometimes triggering on global augmentations such as `interface Function`. -These edge cases are rare and often symptomatic of odd code. -We recommend you use an [inline ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1). -See [#454](https://github.com/typescript-eslint/typescript-eslint/issues/454) for details. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx deleted file mode 100644 index eb79a925..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-includes.mdx +++ /dev/null @@ -1,81 +0,0 @@ ---- -description: 'Enforce `includes` method over `indexOf` method.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-includes** for documentation. - -Prior to ES2015, `Array#indexOf` and `String#indexOf` comparisons against `-1` were the standard ways to check whether a value exists in an array or string, respectively. -Alternatives that are easier to read and write now exist: ES2015 added `String#includes` and ES2016 added `Array#includes`. - -This rule reports when an `.indexOf` call can be replaced with an `.includes`. -Additionally, this rule reports the tests of simple regular expressions in favor of `String#includes`. - -> This rule will report on any receiver object of an `indexOf` method call that has an `includes` method where the two methods have the same parameters. -> Matching types include: `String`, `Array`, `ReadonlyArray`, and typed arrays. - -## Examples - - - - -```ts -const str: string; -const array: any[]; -const readonlyArray: ReadonlyArray; -const typedArray: UInt8Array; -const maybe: string; -const userDefined: { - indexOf(x: any): number; - includes(x: any): boolean; -}; - -str.indexOf(value) !== -1; -array.indexOf(value) !== -1; -readonlyArray.indexOf(value) === -1; -typedArray.indexOf(value) > -1; -maybe?.indexOf('') !== -1; -userDefined.indexOf(value) >= 0; - -/example/.test(str); -``` - - - - -```ts -const str: string; -const array: any[]; -const readonlyArray: ReadonlyArray; -const typedArray: UInt8Array; -const maybe: string; -const userDefined: { - indexOf(x: any): number; - includes(x: any): boolean; -}; - -str.includes(value); -array.includes(value); -!readonlyArray.includes(value); -typedArray.includes(value); -maybe?.includes(''); -userDefined.includes(value); - -str.includes('example'); - -// The two methods have different parameters. -declare const mismatchExample: { - indexOf(x: unknown, fromIndex?: number): number; - includes(x: unknown): boolean; -}; -mismatchExample.indexOf(value) >= 0; -``` - - - - -{/* Intentionally Omitted: When Not To Use It */} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx deleted file mode 100644 index a2088d0d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx +++ /dev/null @@ -1,110 +0,0 @@ ---- -description: 'Require all enum members to be literal values.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-literal-enum-member** for documentation. - -TypeScript allows the value of an enum member to be many different kinds of valid JavaScript expressions. -However, because enums create their own scope whereby each enum member becomes a variable in that scope, developers are often surprised at the resultant values. -For example: - -```ts -const imOutside = 2; -const b = 2; -enum Foo { - outer = imOutside, - a = 1, - b = a, - c = b, - // does c == Foo.b == Foo.c == 1? - // or does c == b == 2? -} -``` - -> The answer is that `Foo.c` will be `1` at runtime [[TypeScript playground](https://www.typescriptlang.org/play/#src=const%20imOutside%20%3D%202%3B%0D%0Aconst%20b%20%3D%202%3B%0D%0Aenum%20Foo%20%7B%0D%0A%20%20%20%20outer%20%3D%20imOutside%2C%0D%0A%20%20%20%20a%20%3D%201%2C%0D%0A%20%20%20%20b%20%3D%20a%2C%0D%0A%20%20%20%20c%20%3D%20b%2C%0D%0A%20%20%20%20%2F%2F%20does%20c%20%3D%3D%20Foo.b%20%3D%3D%20Foo.c%20%3D%3D%201%3F%0D%0A%20%20%20%20%2F%2F%20or%20does%20c%20%3D%3D%20b%20%3D%3D%202%3F%0D%0A%7D)]. - -Therefore, it's often better to prevent unexpected results in code by requiring the use of literal values as enum members. -This rule reports when an enum member is given a value that is not a literal. - -## Examples - - - - -```ts -const str = 'Test'; -enum Invalid { - A = str, // Variable assignment - B = {}, // Object assignment - C = `A template literal string`, // Template literal - D = new Set(1, 2, 3), // Constructor in assignment - E = 2 + 2, // Expression assignment -} -``` - - - - -```ts -enum Valid { - A, - B = 'TestStr', // A regular string - C = 4, // A number - D = null, - E = /some_regex/, -} -``` - - - - -## Options - -### `allowBitwiseExpressions` - -When set to `true` will allow you to use bitwise expressions in enum initializer (default: `false`). - -Examples of code for the `{ "allowBitwiseExpressions": true }` option: - - - - -```ts option='{ "allowBitwiseExpressions": true }' -const x = 1; -enum Foo { - A = x << 0, - B = x >> 0, - C = x >>> 0, - D = x | 0, - E = x & 0, - F = x ^ 0, - G = ~x, -} -``` - - - - -```ts option='{ "allowBitwiseExpressions": true }' -enum Foo { - A = 1 << 0, - B = 1 >> 0, - C = 1 >>> 0, - D = 1 | 0, - E = 1 & 0, - F = 1 ^ 0, - G = ~1, -} -``` - - - - -## When Not To Use It - -If you want use anything other than simple literals as an enum value, this rule might not be for you. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx deleted file mode 100644 index 02dc4628..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -description: 'Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-namespace-keyword** for documentation. - -TypeScript historically allowed a form of code organization called "custom modules" (`module Example {}`), later renamed to "namespaces" (`namespace Example`). - -Namespaces are an outdated way to organize TypeScript code. -ES2015 module syntax is now preferred (`import`/`export`). - -For projects still using custom modules / namespaces, it's preferred to refer to them as namespaces. -This rule reports when the `module` keyword is used instead of `namespace`. - -> This rule does not report on the use of TypeScript module declarations to describe external APIs (`declare module 'foo' {}`). - -## Examples - - - - -```ts -module Example {} -``` - - - - -```ts -namespace Example {} - -declare module 'foo' {} -``` - - - - -## When Not To Use It - -If you are not using TypeScript's older `module`/`namespace` keywords, then you will not need this rule. - -## Further Reading - -- [Modules](https://www.typescriptlang.org/docs/handbook/modules.html) -- [Namespaces](https://www.typescriptlang.org/docs/handbook/namespaces.html) -- [Namespaces and Modules](https://www.typescriptlang.org/docs/handbook/namespaces-and-modules.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx deleted file mode 100644 index 6748b588..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx +++ /dev/null @@ -1,190 +0,0 @@ ---- -description: 'Enforce using the nullish coalescing operator instead of logical assignments or chaining.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-nullish-coalescing** for documentation. - -The `??` nullish coalescing runtime operator allows providing a default value when dealing with `null` or `undefined`. -Because the nullish coalescing operator _only_ coalesces when the original value is `null` or `undefined`, it is much safer than relying upon logical OR operator chaining `||`, which coalesces on any _falsy_ value. - -This rule reports when you may consider replacing: - -- An `||` operator with `??` -- An `||=` operator with `??=` - -:::caution -This rule will not work as expected if [`strictNullChecks`](https://www.typescriptlang.org/tsconfig#strictNullChecks) is not enabled. -::: - -## Options - -### `ignoreTernaryTests` - -Setting this option to `true` will cause the rule to ignore any ternary expressions that could be simplified by using the nullish coalescing operator. This is set to `false` by default. - -Incorrect code for `ignoreTernaryTests: false`, and correct code for `ignoreTernaryTests: true`: - -```ts option='{ "ignoreTernaryTests": false }' showPlaygroundButton -const foo: any = 'bar'; -foo !== undefined && foo !== null ? foo : 'a string'; -foo === undefined || foo === null ? 'a string' : foo; -foo == undefined ? 'a string' : foo; -foo == null ? 'a string' : foo; - -const foo: string | undefined = 'bar'; -foo !== undefined ? foo : 'a string'; -foo === undefined ? 'a string' : foo; - -const foo: string | null = 'bar'; -foo !== null ? foo : 'a string'; -foo === null ? 'a string' : foo; -``` - -Correct code for `ignoreTernaryTests: false`: - -```ts option='{ "ignoreTernaryTests": false }' showPlaygroundButton -const foo: any = 'bar'; -foo ?? 'a string'; -foo ?? 'a string'; -foo ?? 'a string'; -foo ?? 'a string'; - -const foo: string | undefined = 'bar'; -foo ?? 'a string'; -foo ?? 'a string'; - -const foo: string | null = 'bar'; -foo ?? 'a string'; -foo ?? 'a string'; -``` - -### `ignoreConditionalTests` - -Setting this option to `false` will cause the rule to also check cases that are located within a conditional test. This is set to `true` by default. - -Generally expressions within conditional tests intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs. - -If you're looking to enforce stricter conditional tests, you should consider using the `strict-boolean-expressions` rule. - -Incorrect code for `ignoreConditionalTests: false`, and correct code for `ignoreConditionalTests: true`: - -```ts option='{ "ignoreConditionalTests": false }' showPlaygroundButton -declare const a: string | null; -declare const b: string | null; - -if (a || b) { -} -if ((a ||= b)) { -} -while (a || b) {} -while ((a ||= b)) {} -do {} while (a || b); -for (let i = 0; a || b; i += 1) {} -a || b ? true : false; -``` - -Correct code for `ignoreConditionalTests: false`: - -```ts option='{ "ignoreConditionalTests": false }' showPlaygroundButton -declare const a: string | null; -declare const b: string | null; - -if (a ?? b) { -} -if ((a ??= b)) { -} -while (a ?? b) {} -while ((a ??= b)) {} -do {} while (a ?? b); -for (let i = 0; a ?? b; i += 1) {} -a ?? b ? true : false; -``` - -### `ignoreMixedLogicalExpressions` - -Setting this option to `true` will cause the rule to ignore any logical or expressions that are part of a mixed logical expression (with `&&`). This is set to `false` by default. - -Generally expressions within mixed logical expressions intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs. - -If you're looking to enforce stricter conditional tests, you should consider using the `strict-boolean-expressions` rule. - -Incorrect code for `ignoreMixedLogicalExpressions: false`, and correct code for `ignoreMixedLogicalExpressions: true`: - -```ts option='{ "ignoreMixedLogicalExpressions": false }' showPlaygroundButton -declare const a: string | null; -declare const b: string | null; -declare const c: string | null; -declare const d: string | null; - -a || (b && c); -a ||= b && c; -(a && b) || c || d; -a || (b && c) || d; -a || (b && c && d); -``` - -Correct code for `ignoreMixedLogicalExpressions: false`: - -```ts option='{ "ignoreMixedLogicalExpressions": false }' showPlaygroundButton -declare const a: string | null; -declare const b: string | null; -declare const c: string | null; -declare const d: string | null; - -a ?? (b && c); -a ??= b && c; -(a && b) ?? c ?? d; -a ?? (b && c) ?? d; -a ?? (b && c && d); -``` - -**_NOTE:_** Errors for this specific case will be presented as suggestions (see below), instead of fixes. This is because it is not always safe to automatically convert `||` to `??` within a mixed logical expression, as we cannot tell the intended precedence of the operator. Note that by design, `??` requires parentheses when used with `&&` or `||` in the same expression. - -### `ignorePrimitives` - -If you would like to ignore expressions containing operands of certain primitive types that can be falsy then you may pass an object containing a boolean value for each primitive: - -- `string: true`, ignores `null` or `undefined` unions with `string` (default: false). -- `number: true`, ignores `null` or `undefined` unions with `number` (default: false). -- `bigint: true`, ignores `null` or `undefined` unions with `bigint` (default: false). -- `boolean: true`, ignores `null` or `undefined` unions with `boolean` (default: false). - -Incorrect code for `ignorePrimitives: { string: false }`, and correct code for `ignorePrimitives: { string: true }`: - -```ts option='{ "ignorePrimitives": { "string": true } }' showPlaygroundButton -const foo: string | undefined = 'bar'; -foo || 'a string'; -``` - -Correct code for both `ignorePrimitives: { string: false }` and `ignorePrimitives: { string: true }`: - -```ts option='{ "ignorePrimitives": { "string": true } }' showPlaygroundButton -const foo: string | undefined = 'bar'; -foo ?? 'a string'; -``` - -Also, if you would like to ignore all primitives types, you can set `ignorePrimitives: true`. It is equivalent to `ignorePrimitives: { string: true, number: true, bigint: true, boolean: true }`. - -### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` - -If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. - -Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule useless. - -You should be using `strictNullChecks` to ensure complete type-safety in your codebase. - -If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. - -## When Not To Use It - -If you are not using TypeScript 3.7 (or greater), then you will not be able to use this rule, as the operator is not supported. - -## Further Reading - -- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) -- [Nullish Coalescing Operator Proposal](https://github.com/tc39/proposal-nullish-coalescing/) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx deleted file mode 100644 index ee7aa6ab..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.mdx +++ /dev/null @@ -1,295 +0,0 @@ ---- -description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-optional-chain** for documentation. - -`?.` optional chain expressions provide `undefined` if an object is `null` or `undefined`. -Because the optional chain operator _only_ chains when the property value is `null` or `undefined`, it is much safer than relying upon logical AND operator chaining `&&`; which chains on any _truthy_ value. -It is also often less code to use `?.` optional chaining than `&&` truthiness checks. - -This rule reports on code where an `&&` operator can be safely replaced with `?.` optional chaining. - -## Examples - - - - -```ts -foo && foo.a && foo.a.b && foo.a.b.c; -foo && foo['a'] && foo['a'].b && foo['a'].b.c; -foo && foo.a && foo.a.b && foo.a.b.method && foo.a.b.method(); - -// With empty objects -(((foo || {}).a || {}).b || {}).c; -(((foo || {})['a'] || {}).b || {}).c; - -// With negated `or`s -!foo || !foo.bar; -!foo || !foo[bar]; -!foo || !foo.bar || !foo.bar.baz || !foo.bar.baz(); - -// this rule also supports converting chained strict nullish checks: -foo && - foo.a != null && - foo.a.b !== null && - foo.a.b.c != undefined && - foo.a.b.c.d !== undefined && - foo.a.b.c.d.e; -``` - - - - -```ts -foo?.a?.b?.c; -foo?.['a']?.b?.c; -foo?.a?.b?.method?.(); - -foo?.a?.b?.c?.d?.e; - -!foo?.bar; -!foo?.[bar]; -!foo?.bar?.baz?.(); -``` - - - - -## Options - -In the context of the descriptions below a "loose boolean" operand is any operand that implicitly coerces the value to a boolean. -Specifically the argument of the not operator (`!loose`) or a bare value in a logical expression (`loose && looser`). - -### `allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing` - -When this option is `true`, the rule will provide an auto-fixer for cases where the return type of the expression would change. For example for the expression `!foo || foo.bar` the return type of the expression is `true | T`, however for the equivalent optional chain `foo?.bar` the return type of the expression is `undefined | T`. Thus changing the code from a logical expression to an optional chain expression has altered the type of the expression. - -In some cases this distinction _may_ matter - which is why these fixers are considered unsafe - they may break the build! For example in the following code: - -```ts option='{ "allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing": true }' showPlaygroundButton -declare const foo: { bar: boolean } | null | undefined; -declare function acceptsBoolean(arg: boolean): void; - -// ✅ typechecks succesfully as the expression only returns `boolean` -acceptsBoolean(foo != null && foo.bar); - -// ❌ typechecks UNSUCCESSFULLY as the expression returns `boolean | undefined` -acceptsBoolean(foo?.bar); -``` - -This style of code isn't super common - which means having this option set to `true` _should_ be safe in most codebases. However we default it to `false` due to its unsafe nature. We have provided this option for convenience because it increases the autofix cases covered by the rule. If you set option to `true` the onus is entirely on you and your team to ensure that each fix is correct and safe and that it does not break the build. - -When this option is `false` unsafe cases will have suggestion fixers provided instead of auto-fixers - meaning you can manually apply the fix using your IDE tooling. - -### `checkAny` - -When this option is `true` the rule will check operands that are typed as `any` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "checkAny": true }' -declare const thing: any; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkAny": false }' -declare const thing: any; - -thing && thing.toString(); -``` - - - - -### `checkUnknown` - -When this option is `true` the rule will check operands that are typed as `unknown` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "checkUnknown": true }' -declare const thing: unknown; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkUnknown": false }' -declare const thing: unknown; - -thing && thing.toString(); -``` - - - - -### `checkString` - -When this option is `true` the rule will check operands that are typed as `string` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "checkString": true }' -declare const thing: string; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkString": false }' -declare const thing: string; - -thing && thing.toString(); -``` - - - - -### `checkNumber` - -When this option is `true` the rule will check operands that are typed as `number` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "checkNumber": true }' -declare const thing: number; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkNumber": false }' -declare const thing: number; - -thing && thing.toString(); -``` - - - - -### `checkBoolean` - -When this option is `true` the rule will check operands that are typed as `boolean` when inspecting "loose boolean" operands. - -:::note - -This rule intentionally ignores the following case: - -```ts -declare const x: false | { a: string }; -x && x.a; -!x || x.a; -``` - -The boolean expression narrows out the non-nullish falsy cases - so converting the chain to `x?.a` would introduce a type error. - -::: - - - - - -```ts option='{ "checkBoolean": true }' -declare const thing: true; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkBoolean": false }' -declare const thing: true; - -thing && thing.toString(); -``` - - - - -### `checkBigInt` - -When this option is `true` the rule will check operands that are typed as `bigint` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "checkBigInt": true }' -declare const thing: bigint; - -thing && thing.toString(); -``` - - - - -```ts option='{ "checkBigInt": false }' -declare const thing: bigint; - -thing && thing.toString(); -``` - - - - -### `requireNullish` - -When this option is `true` the rule will skip operands that are not typed with `null` and/or `undefined` when inspecting "loose boolean" operands. - - - - - -```ts option='{ "requireNullish": true }' -declare const thing1: string | null; -thing1 && thing1.toString(); -``` - - - - -```ts option='{ "requireNullish": true }' -declare const thing1: string | null; -thing1?.toString(); - -declare const thing2: string; -thing2 && thing2.toString(); -``` - - - - -## When Not To Use It - -If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html) -- [Optional Chaining Proposal](https://github.com/tc39/proposal-optional-chaining/) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx deleted file mode 100644 index 3a5f34dd..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -description: 'Require using Error objects as Promise rejection reasons.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-promise-reject-errors** for documentation. - -This rule extends the base [`eslint/prefer-promise-reject-errors`](https://eslint.org/docs/rules/prefer-promise-reject-errors) rule. -It uses type information to enforce that `Promise`s are only rejected with `Error` objects. - -## Examples - - - - -```ts -Promise.reject('error'); - -const err = new Error(); -Promise.reject('an ' + err); - -new Promise((resolve, reject) => reject('error')); - -new Promise((resolve, reject) => { - const err = new Error(); - reject('an ' + err); -}); -``` - - - - -```ts -Promise.reject(new Error()); - -class CustomError extends Error { - // ... -} -Promise.reject(new CustomError()); - -new Promise((resolve, reject) => reject(new Error())); - -new Promise((resolve, reject) => { - class CustomError extends Error { - // ... - } - return reject(new CustomError()); -}); -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx deleted file mode 100644 index e2ddcef2..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.mdx +++ /dev/null @@ -1,409 +0,0 @@ ---- -description: 'Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-readonly-parameter-types** for documentation. - -Mutating function arguments can lead to confusing, hard to debug behavior. -Whilst it's easy to implicitly remember to not modify function arguments, explicitly typing arguments as readonly provides clear contract to consumers. -This contract makes it easier for a consumer to reason about if a function has side-effects. - -This rule allows you to enforce that function parameters resolve to readonly types. -A type is considered readonly if: - -- it is a primitive type (`string`, `number`, `boolean`, `symbol`, or an enum), -- it is a function signature type, -- it is a readonly array type whose element type is considered readonly. -- it is a readonly tuple type whose elements are all considered readonly. -- it is an object type whose properties are all marked as readonly, and whose values are all considered readonly. - -## Examples - - - - -```ts -function array1(arg: string[]) {} // array is not readonly -function array2(arg: readonly string[][]) {} // array element is not readonly -function array3(arg: [string, number]) {} // tuple is not readonly -function array4(arg: readonly [string[], number]) {} // tuple element is not readonly -// the above examples work the same if you use ReadonlyArray instead - -function object1(arg: { prop: string }) {} // property is not readonly -function object2(arg: { readonly prop: string; prop2: string }) {} // not all properties are readonly -function object3(arg: { readonly prop: { prop2: string } }) {} // nested property is not readonly -// the above examples work the same if you use Readonly instead - -interface CustomArrayType extends ReadonlyArray { - prop: string; // note: this property is mutable -} -function custom1(arg: CustomArrayType) {} - -interface CustomFunction { - (): void; - prop: string; // note: this property is mutable -} -function custom2(arg: CustomFunction) {} - -function union(arg: string[] | ReadonlyArray) {} // not all types are readonly - -// rule also checks function types -interface Foo { - (arg: string[]): void; -} -interface Foo { - new (arg: string[]): void; -} -const x = { foo(arg: string[]): void {} }; -function foo(arg: string[]); -type Foo = (arg: string[]) => void; -interface Foo { - foo(arg: string[]): void; -} -``` - - - - -```ts -function array1(arg: readonly string[]) {} -function array2(arg: readonly (readonly string[])[]) {} -function array3(arg: readonly [string, number]) {} -function array4(arg: readonly [readonly string[], number]) {} -// the above examples work the same if you use ReadonlyArray instead - -function object1(arg: { readonly prop: string }) {} -function object2(arg: { readonly prop: string; readonly prop2: string }) {} -function object3(arg: { readonly prop: { readonly prop2: string } }) {} -// the above examples work the same if you use Readonly instead - -interface CustomArrayType extends ReadonlyArray { - readonly prop: string; -} -function custom1(arg: Readonly) {} -// interfaces that extend the array types are not considered arrays, and thus must be made readonly. - -interface CustomFunction { - (): void; - readonly prop: string; -} -function custom2(arg: CustomFunction) {} - -function union(arg: readonly string[] | ReadonlyArray) {} - -function primitive1(arg: string) {} -function primitive2(arg: number) {} -function primitive3(arg: boolean) {} -function primitive4(arg: unknown) {} -function primitive5(arg: null) {} -function primitive6(arg: undefined) {} -function primitive7(arg: any) {} -function primitive8(arg: never) {} -function primitive9(arg: string | number | undefined) {} - -function fnSig(arg: () => void) {} - -enum Foo { - a, - b, -} -function enumArg(arg: Foo) {} - -function symb1(arg: symbol) {} -const customSymbol = Symbol('a'); -function symb2(arg: typeof customSymbol) {} - -// function types -interface Foo { - (arg: readonly string[]): void; -} -interface Foo { - new (arg: readonly string[]): void; -} -const x = { foo(arg: readonly string[]): void {} }; -function foo(arg: readonly string[]); -type Foo = (arg: readonly string[]) => void; -interface Foo { - foo(arg: readonly string[]): void; -} -``` - - - - -## Options - -### `allow` - -Some complex types cannot easily be made readonly, for example the `HTMLElement` type or the `JQueryStatic` type from `@types/jquery`. This option allows you to globally disable reporting of such types. - -This option takes an array of type specifiers to ignore. -Each item in the array must have one of the following forms: - -- A type defined in a file (`{ from: "file", name: "Foo", path: "src/foo-file.ts" }` with `path` being an optional path relative to the project root directory) -- A type from the default library (`{ from: "lib", name: "Foo" }`) -- A type from a package (`{ from: "package", name: "Foo", package: "foo-lib" }`, this also works for types defined in a typings package). - -Additionally, a type may be defined just as a simple string, which then matches the type independently of its origin. - -Examples of code for this rule with: - -```json -{ - "allow": [ - "$", - { "from": "file", "name": "Foo" }, - { "from": "lib", "name": "HTMLElement" }, - { "from": "package", "name": "Bar", "package": "bar-lib" } - ] -} -``` - - - - -```ts option='{"allow":["$",{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -interface ThisIsMutable { - prop: string; -} - -interface Wrapper { - sub: ThisIsMutable; -} - -interface WrapperWithOther { - readonly sub: Foo; - otherProp: string; -} - -// Incorrect because ThisIsMutable is not readonly -function fn1(arg: ThisIsMutable) {} - -// Incorrect because Wrapper.sub is not readonly -function fn2(arg: Wrapper) {} - -// Incorrect because WrapperWithOther.otherProp is not readonly and not in the allowlist -function fn3(arg: WrapperWithOther) {} -``` - -```ts option='{"allow":["$",{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -import { Foo } from 'some-lib'; -import { Bar } from 'incorrect-lib'; - -interface HTMLElement { - prop: string; -} - -// Incorrect because Foo is not a local type -function fn1(arg: Foo) {} - -// Incorrect because HTMLElement is not from the default library -function fn2(arg: HTMLElement) {} - -// Incorrect because Bar is not from "bar-lib" -function fn3(arg: Bar) {} -``` - - - - -```ts option='{"allow":["$",{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -interface Foo { - prop: string; -} - -interface Wrapper { - readonly sub: Foo; - readonly otherProp: string; -} - -// Works because Foo is allowed -function fn1(arg: Foo) {} - -// Works even when Foo is nested somewhere in the type, with other properties still being checked -function fn2(arg: Wrapper) {} -``` - -```ts option='{"allow":["$",{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -import { Bar } from 'bar-lib'; - -interface Foo { - prop: string; -} - -// Works because Foo is a local type -function fn1(arg: Foo) {} - -// Works because HTMLElement is from the default library -function fn2(arg: HTMLElement) {} - -// Works because Bar is from "bar-lib" -function fn3(arg: Bar) {} -``` - -```ts option='{"allow":["$",{"from":"file","name":"Foo"},{"from":"lib","name":"HTMLElement"},{"from":"package","name":"Bar","package":"bar-lib"}]}' -import { Foo } from './foo'; - -// Works because Foo is still a local type - it has to be in the same package -function fn(arg: Foo) {} -``` - - - - -### `checkParameterProperties` - -This option allows you to enable or disable the checking of parameter properties. -Because parameter properties create properties on the class, it may be undesirable to force them to be readonly. - -Examples of code for this rule with `{checkParameterProperties: true}`: - - - - -```ts option='{ "checkParameterProperties": true }' -class Foo { - constructor(private paramProp: string[]) {} -} -``` - - - - -```ts option='{ "checkParameterProperties": true }' -class Foo { - constructor(private paramProp: readonly string[]) {} -} -``` - - - - -Examples of **correct** code for this rule with `{checkParameterProperties: false}`: - -```ts option='{ "checkParameterProperties": false }' showPlaygroundButton -class Foo { - constructor( - private paramProp1: string[], - private paramProp2: readonly string[], - ) {} -} -``` - -### `ignoreInferredTypes` - -This option allows you to ignore parameters which don't explicitly specify a type. This may be desirable in cases where an external dependency specifies a callback with mutable parameters, and manually annotating the callback's parameters is undesirable. - -Examples of code for this rule with `{ignoreInferredTypes: true}`: - - - - -```ts option='{ "ignoreInferredTypes": true }' skipValidation -import { acceptsCallback, CallbackOptions } from 'external-dependency'; - -acceptsCallback((options: CallbackOptions) => {}); -``` - -
-external-dependency.d.ts - -```ts option='{ "ignoreInferredTypes": true }' -export interface CallbackOptions { - prop: string; -} -type Callback = (options: CallbackOptions) => void; -type AcceptsCallback = (callback: Callback) => void; - -export const acceptsCallback: AcceptsCallback; -``` - -
- -
- - -```ts option='{ "ignoreInferredTypes": true }' -import { acceptsCallback } from 'external-dependency'; - -acceptsCallback(options => {}); -``` - -
-external-dependency.d.ts - -```ts option='{ "ignoreInferredTypes": true }' skipValidation -export interface CallbackOptions { - prop: string; -} -type Callback = (options: CallbackOptions) => void; -type AcceptsCallback = (callback: Callback) => void; - -export const acceptsCallback: AcceptsCallback; -``` - -
- -
-
- -### `treatMethodsAsReadonly` - -This option allows you to treat all mutable methods as though they were readonly. This may be desirable when you are never reassigning methods. - -Examples of code for this rule with `{treatMethodsAsReadonly: false}`: - - - - -```ts option='{ "treatMethodsAsReadonly": false }' -type MyType = { - readonly prop: string; - method(): string; // note: this method is mutable -}; -function foo(arg: MyType) {} -``` - - - - -```ts option='{ "treatMethodsAsReadonly": false }' -type MyType = Readonly<{ - prop: string; - method(): string; -}>; -function foo(arg: MyType) {} - -type MyOtherType = { - readonly prop: string; - readonly method: () => string; -}; -function bar(arg: MyOtherType) {} -``` - - - - -Examples of **correct** code for this rule with `{treatMethodsAsReadonly: true}`: - -```ts option='{ "treatMethodsAsReadonly": true }' showPlaygroundButton -type MyType = { - readonly prop: string; - method(): string; // note: this method is mutable -}; -function foo(arg: MyType) {} -``` - -## When Not To Use It - -If your project does not attempt to enforce strong immutability guarantees of parameters, you can avoid this rule. - -This rule is very strict on what it considers mutable. -Many types that describe themselves as readonly are considered mutable because they have mutable properties such as arrays or tuples. -To work around these limitations, you might need to use the rule's options. -In particular, the [`allow` option](#allow) can explicitly mark a type as readonly. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx deleted file mode 100644 index a3fe49e0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.mdx +++ /dev/null @@ -1,111 +0,0 @@ ---- -description: "Require private members to be marked as `readonly` if they're never modified outside of the constructor." ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-readonly** for documentation. - -Private member variables (whether using the `private` modifier or private `#` fields) are never permitted to be modified outside of their declaring class. -If that class never modifies their value, they may safely be marked as `readonly`. - -This rule reports on private members are marked as `readonly` if they're never modified outside of the constructor. - -## Examples - - - - -```ts -class Container { - // These member variables could be marked as readonly - private neverModifiedMember = true; - private onlyModifiedInConstructor: number; - #neverModifiedPrivateField = 3; - - public constructor( - onlyModifiedInConstructor: number, - // Private parameter properties can also be marked as readonly - private neverModifiedParameter: string, - ) { - this.onlyModifiedInConstructor = onlyModifiedInConstructor; - } -} -``` - - - - -```ts -class Container { - // Public members might be modified externally - public publicMember: boolean; - - // Protected members might be modified by child classes - protected protectedMember: number; - - // This is modified later on by the class - private modifiedLater = 'unchanged'; - - public mutate() { - this.modifiedLater = 'mutated'; - } - - // This is modified later on by the class - #modifiedLaterPrivateField = 'unchanged'; - - public mutatePrivateField() { - this.#modifiedLaterPrivateField = 'mutated'; - } -} -``` - - - - -## Options - -### `onlyInlineLambdas` - -You may pass `"onlyInlineLambdas": true` as a rule option within an object to restrict checking only to members immediately assigned a lambda value. - -```jsonc -{ - "@typescript-eslint/prefer-readonly": [ - "error", - { "onlyInlineLambdas": true }, - ], -} -``` - -Example of code for the `{ "onlyInlineLambdas": true }` options: - - - - -```ts option='{ "onlyInlineLambdas": true }' -class Container { - private onClick = () => { - /* ... */ - }; -} -``` - - - - -```ts option='{ "onlyInlineLambdas": true }' -class Container { - private neverModifiedPrivate = 'unchanged'; -} -``` - - - - -## When Not To Use It - -If you aren't trying to enforce strong immutability guarantees, this rule may be too restrictive for your project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx deleted file mode 100644 index eff53ee9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx +++ /dev/null @@ -1,66 +0,0 @@ ---- -description: 'Enforce using type parameter when calling `Array#reduce` instead of casting.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-reduce-type-parameter** for documentation. - -It's common to call `Array#reduce` with a generic type, such as an array or object, as the initial value. -Since these values are empty, their types are not usable: - -- `[]` has type `never[]`, which can't have items pushed into it as nothing is type `never` -- `{}` has type `{}`, which doesn't have an index signature and so can't have properties added to it - -A common solution to this problem is to use an `as` assertion on the initial value. -While this will work, it's not the most optimal solution as type assertions have subtle effects on the underlying types that can allow bugs to slip in. - -A better solution is to pass the type in as a generic type argument to `Array#reduce` explicitly. -This means that TypeScript doesn't have to try to infer the type, and avoids the common pitfalls that come with casting. - -This rule looks for calls to `Array#reduce`, and reports if an initial value is being passed & asserted. -It will suggest instead pass the asserted type to `Array#reduce` as a generic type argument. - -## Examples - - - - -```ts -[1, 2, 3].reduce((arr, num) => arr.concat(num * 2), [] as number[]); - -['a', 'b'].reduce( - (accum, name) => ({ - ...accum, - [name]: true, - }), - {} as Record, -); -``` - - - - -```ts -[1, 2, 3].reduce((arr, num) => arr.concat(num * 2), []); - -['a', 'b'].reduce>( - (accum, name) => ({ - ...accum, - [name]: true, - }), - {}, -); -``` - - - - -## When Not To Use It - -This rule can sometimes be difficult to work around when creating objects using a `.reduce`. -See [[prefer-reduce-type-parameter] unfixable reporting #3440](https://github.com/typescript-eslint/typescript-eslint/issues/3440) for more details. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx deleted file mode 100644 index 1536638f..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-regexp-exec.mdx +++ /dev/null @@ -1,52 +0,0 @@ ---- -description: 'Enforce `RegExp#exec` over `String#match` if no global flag is provided.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-regexp-exec** for documentation. - -`String#match` is defined to work the same as `RegExp#exec` when the regular expression does not include the `g` flag. -Keeping to consistently using one of the two can help improve code readability. - -This rule reports when a `String#match` call can be replaced with an equivalent `RegExp#exec`. - -> `RegExp#exec` may also be slightly faster than `String#match`; this is the reason to choose it as the preferred usage. - -## Examples - - - - -```ts -'something'.match(/thing/); - -'some things are just things'.match(/thing/); - -const text = 'something'; -const search = /thing/; -text.match(search); -``` - - - - -```ts -/thing/.exec('something'); - -'some things are just things'.match(/thing/g); - -const text = 'something'; -const search = /thing/; -search.exec(text); -``` - - - - -## When Not To Use It - -If you prefer consistent use of `String#match` for both with `g` flag and without it, you can turn this rule off. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx deleted file mode 100644 index 1c45bf8c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-return-this-type.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -description: 'Enforce that `this` is used when only `this` type is returned.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-return-this-type** for documentation. - -[Method chaining](https://en.wikipedia.org/wiki/Method_chaining) is a common pattern in OOP languages and TypeScript provides a special [polymorphic `this` type](https://www.typescriptlang.org/docs/handbook/2/classes.html#this-types) to facilitate it. -Class methods that explicitly declare a return type of the class name instead of `this` make it harder for extending classes to call that method: the returned object will be typed as the base class, not the derived class. - -This rule reports when a class method declares a return type of that class name instead of `this`. - -```ts -class Animal { - eat(): Animal { - // ~~~~~~ - // Either removing this type annotation or replacing - // it with `this` would remove the type error below. - console.log("I'm moving!"); - return this; - } -} - -class Cat extends Animal { - meow(): Cat { - console.log('Meow~'); - return this; - } -} - -const cat = new Cat(); -cat.eat().meow(); -// ~~~~ -// Error: Property 'meow' does not exist on type 'Animal'. -// because `eat` returns `Animal` and not all animals meow. -``` - -## Examples - - - - -```ts -class Foo { - f1(): Foo { - return this; - } - f2 = (): Foo => { - return this; - }; - f3(): Foo | undefined { - return Math.random() > 0.5 ? this : undefined; - } -} -``` - - - - -```ts -class Foo { - f1(): this { - return this; - } - f2() { - return this; - } - f3 = (): this => { - return this; - }; - f4 = () => { - return this; - }; -} - -class Base {} -class Derived extends Base { - f(): Base { - return this; - } -} -``` - - - - -## When Not To Use It - -If you don't use method chaining or explicit return values, you can safely turn this rule off. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx deleted file mode 100644 index cae79c26..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx +++ /dev/null @@ -1,82 +0,0 @@ ---- -description: 'Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-string-starts-ends-with** for documentation. - -There are multiple ways to verify if a string starts or ends with a specific string, such as `foo.indexOf('bar') === 0`. -As of ES2015, the most common way in JavaScript is to use `String#startsWith` and `String#endsWith`. -Keeping to those methods consistently helps with code readability. - -This rule reports when a string method can be replaced safely with `String#startsWith` or `String#endsWith`. - -## Examples - - - - -```ts -declare const foo: string; - -// starts with -foo[0] === 'b'; -foo.charAt(0) === 'b'; -foo.indexOf('bar') === 0; -foo.slice(0, 3) === 'bar'; -foo.substring(0, 3) === 'bar'; -foo.match(/^bar/) != null; -/^bar/.test(foo); - -// ends with -foo[foo.length - 1] === 'b'; -foo.charAt(foo.length - 1) === 'b'; -foo.lastIndexOf('bar') === foo.length - 3; -foo.slice(-3) === 'bar'; -foo.substring(foo.length - 3) === 'bar'; -foo.match(/bar$/) != null; -/bar$/.test(foo); -``` - - - - -```ts -declare const foo: string; - -// starts with -foo.startsWith('bar'); - -// ends with -foo.endsWith('bar'); -``` - - - - -## Options - -### `allowSingleElementEquality` - -If switched to `'always'`, the rule will allow equality checks against the first or last character in a string. -This can be preferable in projects that don't deal with special character encodings and prefer a more succinct style. - -The following code is considered incorrect by default, but is allowed with `allowSingleElementEquality: 'always'`: - -```ts option='{ "allowSingleElementEquality": "always" }' showPlaygroundButton -declare const text: string; - -text[0] === 'a'; -text[0] === text[0].toUpperCase(); -text[0] === text[1]; -text[text.length - 1] === 'b'; -``` - -## When Not To Use It - -If you don't mind which style of string checking is used, you can turn this rule off safely. -However, keep in mind that inconsistent style can harm readability in a project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx deleted file mode 100644 index 1d0614fa..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -description: 'Enforce using `@ts-expect-error` over `@ts-ignore`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/prefer-ts-expect-error** for documentation. - -:::danger Deprecated - -This rule has been deprecated in favor of [`@typescript-eslint/ban-ts-comment`](./ban-ts-comment.mdx). -This rule (`@typescript-eslint/prefer-ts-expect-error`) will be removed in a future major version of typescript-eslint. - -When it was first created, `@typescript-eslint/ban-ts-comment` rule was only responsible for suggesting to remove `@ts-ignore` directive. -It was later updated to suggest replacing `@ts-ignore` with `@ts-expect-error` directive, so that it replaces `@typescript-eslint/prefer-ts-expect-error` entirely. - -::: - -TypeScript allows you to suppress all errors on a line by placing a comment starting with `@ts-ignore` or `@ts-expect-error` immediately before the erroring line. -The two directives work the same, except `@ts-expect-error` causes a type error if placed before a line that's not erroring in the first place. - -This means it's easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed. -This is dangerous, as if a new error arises on that line it'll be suppressed by the forgotten about `@ts-ignore`, and so be missed. - -## Examples - -This rule reports any usage of `@ts-ignore`, including a fixer to replace with `@ts-expect-error`. - - - - -```ts -// @ts-ignore -const str: string = 1; - -/** - * Explaining comment - * - * @ts-ignore */ -const multiLine: number = 'value'; - -/** @ts-ignore */ -const block: string = 1; - -const isOptionEnabled = (key: string): boolean => { - // @ts-ignore: if key isn't in globalOptions it'll be undefined which is false - return !!globalOptions[key]; -}; -``` - - - - -```ts -// @ts-expect-error -const str: string = 1; - -/** - * Explaining comment - * - * @ts-expect-error */ -const multiLine: number = 'value'; - -/** @ts-expect-error */ -const block: string = 1; - -const isOptionEnabled = (key: string): boolean => { - // @ts-expect-error: if key isn't in globalOptions it'll be undefined which is false - return !!globalOptions[key]; -}; -``` - - - - -## When Not To Use It - -If you are compiling against multiple versions of TypeScript and using `@ts-ignore` to ignore version-specific type errors, this rule might get in your way. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## Further Reading - -- [Original Implementing PR](https://github.com/microsoft/TypeScript/pull/36014) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx deleted file mode 100644 index bb506ad0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/promise-function-async.mdx +++ /dev/null @@ -1,144 +0,0 @@ ---- -description: 'Require any function or method that returns a Promise to be marked async.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/promise-function-async** for documentation. - -Ensures that each function is only capable of: - -- returning a rejected promise, or -- throwing an Error object. - -In contrast, non-`async`, `Promise`-returning functions are technically capable of either. -Code that handles the results of those functions will often need to handle both cases, which can get complex. -This rule's practice removes a requirement for creating code to handle both cases. - -> When functions return unions of `Promise` and non-`Promise` types implicitly, it is usually a mistake—this rule flags those cases. If it is intentional, make the return type explicitly to allow the rule to pass. - -## Examples - -Examples of code for this rule - - - - -```ts -const arrowFunctionReturnsPromise = () => Promise.resolve('value'); - -function functionReturnsPromise() { - return Promise.resolve('value'); -} - -function functionReturnsUnionWithPromiseImplicitly(p: boolean) { - return p ? 'value' : Promise.resolve('value'); -} -``` - - - - -```ts -const arrowFunctionReturnsPromise = async () => Promise.resolve('value'); - -async function functionReturnsPromise() { - return Promise.resolve('value'); -} - -// An explicit return type that is not Promise means this function cannot be made async, so it is ignored by the rule -function functionReturnsUnionWithPromiseExplicitly( - p: boolean, -): string | Promise { - return p ? 'value' : Promise.resolve('value'); -} - -async function functionReturnsUnionWithPromiseImplicitly(p: boolean) { - return p ? 'value' : Promise.resolve('value'); -} -``` - - - - -## Options - -### `allowAny` - -Whether to ignore functions that return `any` and `unknown`. -If you want additional safety, consider turning this option off, as it makes the rule less able to catch incorrect Promise behaviors. - -Examples of code with `{ "allowAny": false }`: - - - - -```ts option='{ "allowAny": false }' -const returnsAny = () => ({}) as any; -``` - - - - -```ts option='{ "allowAny": false }' -const returnsAny = async () => ({}) as any; -``` - - - - -### `allowedPromiseNames` - -For projects that use constructs other than the global built-in `Promise` for asynchronous code. -This option allows specifying string names of classes or interfaces that cause a function to be checked as well. - -Examples of code with `{ "allowedPromiseNames": ["Bluebird"] }`: - - - - -```ts option='{ "allowedPromiseNames": ["Bluebird"] }' -class Bluebird {} - -const returnsBluebird = () => new Bluebird(() => {}); -``` - - - - -```ts option='{ "allowedPromiseNames": ["Bluebird"] }' -class Bluebird {} - -const returnsBluebird = async () => new Bluebird(() => {}); -``` - - - - -### `checkArrowFunctions` - -Whether to check arrow functions. -`true` by default, but can be set to `false` to ignore them. - -### `checkFunctionDeclarations` - -Whether to check standalone function declarations. -`true` by default, but can be set to `false` to ignore them. - -### `checkFunctionExpressions` - -Whether to check inline function expressions. -`true` by default, but can be set to `false` to ignore them. - -### `checkMethodDeclarations` - -Whether to check methods on classes and object literals -`true` by default, but can be set to `false` to ignore them. - -## When Not To Use It - -This rule can be difficult to enable on projects that use APIs which require functions to always be `async`. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) along with filing issues on your dependencies for those specific situations instead of completely disabling this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx deleted file mode 100644 index 5c23955c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.mdx +++ /dev/null @@ -1,87 +0,0 @@ ---- -description: 'Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/require-array-sort-compare** for documentation. - -When called without a compare function, `Array#sort()` and `Array#toSorted()` converts all non-undefined array elements into strings and then compares said strings based off their UTF-16 code units [[ECMA specification](https://www.ecma-international.org/ecma-262/9.0/#sec-sortcompare)]. - -The result is that elements are sorted alphabetically, regardless of their type. -For example, when sorting numbers, this results in a "10 before 2" order: - -```ts -[1, 2, 3, 10, 20, 30].sort(); //→ [1, 10, 2, 20, 3, 30] -``` - -This rule reports on any call to the sort methods that do not provide a `compare` argument. - -## Examples - -This rule aims to ensure all calls of the native sort methods provide a `compareFunction`, while ignoring calls to user-defined methods. - - - - -```ts -const array: any[]; -const stringArray: string[]; - -array.sort(); - -// String arrays should be sorted using `String#localeCompare`. -stringArray.sort(); -``` - - - - -```ts -const array: any[]; -const userDefinedType: { sort(): void }; - -array.sort((a, b) => a - b); -array.sort((a, b) => a.localeCompare(b)); - -userDefinedType.sort(); -``` - - - - -## Options - -### `ignoreStringArrays` - -Examples of code for this rule with `{ ignoreStringArrays: true }`: - - - - -```ts option='{ "ignoreStringArrays": true }' -const one = 1; -const two = 2; -const three = 3; -[one, two, three].sort(); -``` - - - - -```ts option='{ "ignoreStringArrays": true }' -const one = '1'; -const two = '2'; -const three = '3'; -[one, two, three].sort(); -``` - - - - -## When Not To Use It - -If you intentionally want your arrays to be always sorted in a string-like manner, you can turn this rule off safely. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx deleted file mode 100644 index 5a88e501..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.mdx +++ /dev/null @@ -1,25 +0,0 @@ ---- -description: 'Disallow async functions which do not return promises and have no `await` expression.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/require-await** for documentation. - -This rule extends the base [`eslint/require-await`](https://eslint.org/docs/rules/require-await) rule. -It uses type information to allow promise-returning functions to be marked as `async` without containing an `await` expression. - -## Examples - -Examples of **correct** code for this rule: - -```ts -async function returnsPromise1() { - return Promise.resolve(1); -} - -const returnsPromise2 = () => returnsPromise1(); -``` diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx deleted file mode 100644 index c96c8aa1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-plus-operands.mdx +++ /dev/null @@ -1,232 +0,0 @@ ---- -description: 'Require both operands of addition to be the same type and be `bigint`, `number`, or `string`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/restrict-plus-operands** for documentation. - -TypeScript allows `+` adding together two values of any type(s). -However, adding values that are not the same type and/or are not the same primitive type is often a sign of programmer error. - -This rule reports when a `+` operation combines two values of different types, or a type that is not `bigint`, `number`, or `string`. - -## Examples - - - - -```ts -let foo = 1n + 1; -let fn = (a: string, b: never) => a + b; -``` - - - - -```ts -let foo = 1n + 1n; -let fn = (a: string, b: string) => a + b; -``` - - - - -## Options - -:::caution -We generally recommend against using these options, as they limit which varieties of incorrect `+` usage can be checked. -This in turn severely limits the validation that the rule can do to ensure that resulting strings and numbers are correct. - -Safer alternatives to using the `allow*` options include: - -- Using variadic forms of logging APIs to avoid needing to `+` values. - ```ts - // Remove this line - console.log('The result is ' + true); - // Add this line - console.log('The result is', true); - ``` -- Using `.toFixed()` to coerce numbers to well-formed string representations: - ```ts - const number = 1.123456789; - const result = 'The number is ' + number.toFixed(2); - // result === 'The number is 1.12' - ``` -- Calling `.toString()` on other types to mark explicit and intentional string coercion: - ```ts - const arg = '11'; - const regex = /[0-9]/; - const result = - 'The result of ' + - regex.toString() + - '.test("' + - arg + - '") is ' + - regex.test(arg).toString(); - // result === 'The result of /[0-9]/.test("11") is true' - ``` - -::: - -### `allowAny` - -Examples of code for this rule with `{ allowAny: true }`: - - - - -```ts option='{ "allowAny": true }' -let fn = (a: number, b: []) => a + b; -let fn = (a: string, b: []) => a + b; -``` - - - - -```ts option='{ "allowAny": true }' -let fn = (a: number, b: any) => a + b; -let fn = (a: string, b: any) => a + b; -``` - - - - -### `allowBoolean` - -Examples of code for this rule with `{ allowBoolean: true }`: - - - - -```ts option='{ "allowBoolean": true }' -let fn = (a: number, b: unknown) => a + b; -let fn = (a: string, b: unknown) => a + b; -``` - - - - -```ts option='{ "allowBoolean": true }' -let fn = (a: number, b: boolean) => a + b; -let fn = (a: string, b: boolean) => a + b; -``` - - - - -### `allowNullish` - -Examples of code for this rule with `{ allowNullish: true }`: - - - - -```ts option='{ "allowNullish": true }' -let fn = (a: number, b: unknown) => a + b; -let fn = (a: number, b: never) => a + b; -let fn = (a: string, b: unknown) => a + b; -let fn = (a: string, b: never) => a + b; -``` - - - - -```ts option='{ "allowNullish": true }' -let fn = (a: number, b: undefined) => a + b; -let fn = (a: number, b: null) => a + b; -let fn = (a: string, b: undefined) => a + b; -let fn = (a: string, b: null) => a + b; -``` - - - - -### `allowNumberAndString` - -Examples of code for this rule with `{ allowNumberAndString: true }`: - - - - -```ts option='{ "allowNumberAndString": true }' -let fn = (a: number, b: unknown) => a + b; -let fn = (a: number, b: never) => a + b; -``` - - - - -```ts option='{ "allowNumberAndString": true }' -let fn = (a: number, b: string) => a + b; -let fn = (a: number, b: number | string) => a + b; -``` - - - - -### `allowRegExp` - -Examples of code for this rule with `{ allowRegExp: true }`: - - - - -```ts option='{ "allowRegExp": true }' -let fn = (a: number, b: RegExp) => a + b; -``` - - - - -```ts option='{ "allowRegExp": true }' -let fn = (a: string, b: RegExp) => a + b; -``` - - - - -### `skipCompoundAssignments` - -Examples of code for this rule with `{ skipCompoundAssignments: false }`: - - - - -```ts option='{ "skipCompoundAssignments": false }' -let foo: bigint = 0n; -foo += 1; - -let bar: number[] = [1]; -bar += 1; -``` - - - - -```ts option='{ "skipCompoundAssignments": false }' -let foo: bigint = 0n; -foo += 1n; - -let bar: number = 1; -bar += 1; -``` - - - - -## When Not To Use It - -If you don't mind a risk of `"[object Object]"` or incorrect type coercions in your values, then you will not need this rule. - -## Related To - -- [`no-base-to-string`](./no-base-to-string.mdx) -- [`restrict-template-expressions`](./restrict-template-expressions.mdx) - -## Further Reading - -- [`Object.prototype.toString()` MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx deleted file mode 100644 index f99cb0ab..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.mdx +++ /dev/null @@ -1,136 +0,0 @@ ---- -description: 'Enforce template literal expressions to be of `string` type.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/restrict-template-expressions** for documentation. - -JavaScript automatically [converts an object to a string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#string_coercion) in a string context, such as when concatenating it with a string using `+` or embedding it in a template literal using `${}`. -The default `toString()` method of objects uses the format `"[object Object]"`, which is often not what was intended. -This rule reports on values used in a template literal string that aren't strings, optionally allowing other data types that provide useful stringification results. - -:::note - -The default settings of this rule intentionally do not allow objects with a custom `toString()` method to be used in template literals, because the stringification result may not be user-friendly. - -For example, arrays have a custom [`toString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString) method, which only calls `join()` internally, which joins the array elements with commas. This means that (1) array elements are not necessarily stringified to useful results (2) the commas don't have spaces after them, making the result not user-friendly. The best way to format arrays is to use [`Intl.ListFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat), which even supports adding the "and" conjunction where necessary. -You must explicitly call `object.toString()` if you want to use this object in a template literal, or turn on the `allowArray` option to specifically allow arrays. -The [`no-base-to-string`](./no-base-to-string.mdx) rule can be used to guard this case against producing `"[object Object]"` by accident. - -::: - -## Examples - - - - -```ts -const arg1 = [1, 2]; -const msg1 = `arg1 = ${arg1}`; - -const arg2 = { name: 'Foo' }; -const msg2 = `arg2 = ${arg2 || null}`; -``` - - - - -```ts -const arg = 'foo'; -const msg1 = `arg = ${arg}`; -const msg2 = `arg = ${arg || 'default'}`; - -const stringWithKindProp: string & { _kind?: 'MyString' } = 'foo'; -const msg3 = `stringWithKindProp = ${stringWithKindProp}`; -``` - - - - -## Options - -### `allowNumber` - -Examples of additional **correct** code for this rule with `{ allowNumber: true }`: - -```ts option='{ "allowNumber": true }' showPlaygroundButton -const arg = 123; -const msg1 = `arg = ${arg}`; -const msg2 = `arg = ${arg || 'zero'}`; -``` - -This option controls both numbers and BigInts. - -### `allowBoolean` - -Examples of additional **correct** code for this rule with `{ allowBoolean: true }`: - -```ts option='{ "allowBoolean": true }' showPlaygroundButton -const arg = true; -const msg1 = `arg = ${arg}`; -const msg2 = `arg = ${arg || 'not truthy'}`; -``` - -### `allowAny` - -Examples of additional **correct** code for this rule with `{ allowAny: true }`: - -```ts option='{ "allowAny": true }' showPlaygroundButton -const user = JSON.parse('{ "name": "foo" }'); -const msg1 = `arg = ${user.name}`; -const msg2 = `arg = ${user.name || 'the user with no name'}`; -``` - -### `allowNullish` - -Examples of additional **correct** code for this rule with `{ allowNullish: true }`: - -```ts option='{ "allowNullish": true }' showPlaygroundButton -const arg = condition ? 'ok' : null; -const msg1 = `arg = ${arg}`; -``` - -### `allowRegExp` - -Examples of additional **correct** code for this rule with `{ allowRegExp: true }`: - -```ts option='{ "allowRegExp": true }' showPlaygroundButton -const arg = new RegExp('foo'); -const msg1 = `arg = ${arg}`; -``` - -```ts option='{ "allowRegExp": true }' showPlaygroundButton -const arg = /foo/; -const msg1 = `arg = ${arg}`; -``` - -### `allowNever` - -Examples of additional **correct** code for this rule with `{ allowNever: true }`: - -```ts option='{ "allowNever": true }' showPlaygroundButton -const arg = 'something'; -const msg1 = typeof arg === 'string' ? arg : `arg = ${arg}`; -``` - -### `allowArray` - -Examples of additional **correct** code for this rule with `{ allowArray: true }`: - -```ts option='{ "allowArray": true }' showPlaygroundButton -const arg = ['foo', 'bar']; -const msg1 = `arg = ${arg}`; -``` - -## When Not To Use It - -If you're not worried about incorrectly stringifying non-string values in template literals, then you likely don't need this rule. - -## Related To - -- [`no-base-to-string`](./no-base-to-string.mdx) -- [`restrict-plus-operands`](./restrict-plus-operands.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx deleted file mode 100644 index 9be63cc9..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.mdx +++ /dev/null @@ -1,324 +0,0 @@ ---- -description: 'Enforce consistent awaiting of returned promises.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/return-await** for documentation. - -This rule builds on top of the [`eslint/no-return-await`](https://eslint.org/docs/rules/no-return-await) rule. -It expands upon the base rule to add support for optionally requiring `return await` in certain cases. - -The extended rule is named `return-await` instead of `no-return-await` because the extended rule can enforce the positive or the negative. Additionally, while the core rule is now deprecated, the extended rule is still useful in many contexts: - -- Returning an awaited promise [improves stack trace information](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#improving_stack_trace). -- When the `return` statement is in `try...catch`, awaiting the promise also allows the promise's rejection to be caught instead of leaving the error to the caller. -- Contrary to popular belief, `return await promise;` is [at least as fast as directly returning the promise](https://github.com/tc39/proposal-faster-promise-adoption). - -## Options - -```ts -type Options = - | 'in-try-catch' - | 'always' - | 'error-handling-correctness-only' - | 'never'; - -const defaultOptions: Options = 'in-try-catch'; -``` - -The options in this rule distinguish between "ordinary contexts" and "error-handling contexts". -An error-handling context is anywhere where returning an unawaited promise would cause unexpected control flow regarding exceptions/rejections. -See detailed examples in the sections for each option. - -- If you return a promise within a `try` block, it should be awaited in order to trigger subsequent `catch` or `finally` blocks as expected. -- If you return a promise within a `catch` block, and there _is_ a `finally` block, it should be awaited in order to trigger the `finally` block as expected. -- If you return a promise between a `using` or `await using` declaration and the end of its scope, it should be awaited, since it behaves equivalently to code wrapped in a `try` block followed by a `finally`. - -Ordinary contexts are anywhere else a promise may be returned. -The choice of whether to await a returned promise in an ordinary context is mostly stylistic. - -With these terms defined, the options may be summarized as follows: - -| Option | Ordinary Context
(stylistic preference 🎨) | Error-Handling Context
(catches bugs 🐛) | Should I use this option? | -| :-------------------------------: | :----------------------------------------------: | :----------------------------------------------------------: | :--------------------------------------------------------: | -| `always` | `return await promise;` | `return await promise;` | ✅ Yes! | -| `in-try-catch` | `return promise;` | `return await promise;` | ✅ Yes! | -| `error-handling-correctness-only` | don't care 🤷 | `return await promise;` | 🟡 Okay to use, but the above options would be preferable. | -| `never` | `return promise;` | `return promise;`
(⚠️ This behavior may be harmful ⚠️) | ❌ No. This option is deprecated. | - -### `in-try-catch` - -In error-handling contexts, the rule enforces that returned promises must be awaited. -In ordinary contexts, the rule enforces that returned promises _must not_ be awaited. - -This is a good option if you prefer the shorter `return promise` form for stylistic reasons, wherever it's safe to use. - -Examples of code with `in-try-catch`: - - - - -```ts option='"in-try-catch"' -async function invalidInTryCatch1() { - try { - return Promise.reject('try'); - } catch (e) { - // Doesn't execute due to missing await. - } -} - -async function invalidInTryCatch2() { - try { - throw new Error('error'); - } catch (e) { - // Unnecessary await; rejections here don't impact control flow. - return await Promise.reject('catch'); - } -} - -// Prints 'starting async work', 'cleanup', 'async work done'. -async function invalidInTryCatch3() { - async function doAsyncWork(): Promise { - console.log('starting async work'); - await new Promise(resolve => setTimeout(resolve, 1000)); - console.log('async work done'); - } - - try { - throw new Error('error'); - } catch (e) { - // Missing await. - return doAsyncWork(); - } finally { - console.log('cleanup'); - } -} - -async function invalidInTryCatch4() { - try { - throw new Error('error'); - } catch (e) { - throw new Error('error2'); - } finally { - // Unnecessary await; rejections here don't impact control flow. - return await Promise.reject('finally'); - } -} - -async function invalidInTryCatch5() { - return await Promise.resolve('try'); -} - -async function invalidInTryCatch6() { - return await 'value'; -} - -async function invalidInTryCatch7() { - using x = createDisposable(); - return Promise.reject('using in scope'); -} -``` - - - - -```ts option='"in-try-catch"' -async function validInTryCatch1() { - try { - return await Promise.reject('try'); - } catch (e) { - // Executes as expected. - } -} - -async function validInTryCatch2() { - try { - throw new Error('error'); - } catch (e) { - return Promise.reject('catch'); - } -} - -// Prints 'starting async work', 'async work done', 'cleanup'. -async function validInTryCatch3() { - async function doAsyncWork(): Promise { - console.log('starting async work'); - await new Promise(resolve => setTimeout(resolve, 1000)); - console.log('async work done'); - } - - try { - throw new Error('error'); - } catch (e) { - return await doAsyncWork(); - } finally { - console.log('cleanup'); - } -} - -async function validInTryCatch4() { - try { - throw new Error('error'); - } catch (e) { - throw new Error('error2'); - } finally { - return Promise.reject('finally'); - } -} - -async function validInTryCatch5() { - return Promise.resolve('try'); -} - -async function validInTryCatch6() { - return 'value'; -} - -async function validInTryCatch7() { - using x = createDisposable(); - return await Promise.reject('using in scope'); -} -``` - - - - -### `always` - -Requires that all returned promises be awaited. - -This is a good option if you like the consistency of simply always awaiting promises, or prefer not having to consider the distinction between error-handling contexts and ordinary contexts. - -Examples of code with `always`: - - - - -```ts option='"always"' -async function invalidAlways1() { - try { - return Promise.resolve('try'); - } catch (e) {} -} - -async function invalidAlways2() { - return Promise.resolve('try'); -} - -async function invalidAlways3() { - return await 'value'; -} -``` - - - - -```ts option='"always"' -async function validAlways1() { - try { - return await Promise.resolve('try'); - } catch (e) {} -} - -async function validAlways2() { - return await Promise.resolve('try'); -} - -async function validAlways3() { - return 'value'; -} -``` - - - - -### `error-handling-correctness-only` - -In error-handling contexts, the rule enforces that returned promises must be awaited. -In ordinary contexts, the rule does not enforce any particular behavior around whether returned promises are awaited. - -This is a good option if you only want to benefit from rule's ability to catch control flow bugs in error-handling contexts, but don't want to enforce a particular style otherwise. - -:::info -We recommend you configure either `in-try-catch` or `always` instead of this option. -While the choice of whether to await promises outside of error-handling contexts is mostly stylistic, it's generally best to be consistent. -::: - -Examples of additional correct code with `error-handling-correctness-only`: - - - - -```ts option='"error-handling-correctness-only"' -async function asyncFunction(): Promise { - if (Math.random() < 0.5) { - return await Promise.resolve(); - } else { - return Promise.resolve(); - } -} -``` - - - - -### `never` - -Disallows awaiting any returned promises. - -:::warning - -This option is deprecated and will be removed in a future major version of typescript-eslint. - -The `never` option introduces undesirable behavior in error-handling contexts. -If you prefer to minimize returning awaited promises, consider instead using `in-try-catch` instead, which also generally bans returning awaited promises, but only where it is _safe_ not to await a promise. - -See more details at [typescript-eslint#9433](https://github.com/typescript-eslint/typescript-eslint/issues/9433). -::: - -Examples of code with `never`: - - - - -```ts option='"never"' -async function invalidNever1() { - try { - return await Promise.resolve('try'); - } catch (e) {} -} - -async function invalidNever2() { - return await Promise.resolve('try'); -} - -async function invalidNever3() { - return await 'value'; -} -``` - - - - -```ts option='"never"' -async function validNever1() { - try { - return Promise.resolve('try'); - } catch (e) {} -} - -async function validNever2() { - return Promise.resolve('try'); -} - -async function validNever3() { - return 'value'; -} -``` - - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx deleted file mode 100644 index 9ce8157d..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-constituents.mdx +++ /dev/null @@ -1,207 +0,0 @@ ---- -description: 'Enforce constituents of a type union/intersection to be sorted alphabetically.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/sort-type-constituents** for documentation. - -:::danger Deprecated -This rule has been deprecated in favor of the [`perfectionist/sort-intersection-types`](https://perfectionist.dev/rules/sort-intersection-types) and [`perfectionist/sort-union-types`](https://perfectionist.dev/rules/sort-union-types) rules. - -See [Docs: Deprecate sort-type-constituents in favor of eslint-plugin-perfectionist](https://github.com/typescript-eslint/typescript-eslint/issues/8915) and [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information. -::: - -Sorting union (`|`) and intersection (`&`) types can help: - -- keep your codebase standardized -- find repeated types -- reduce diff churn - -This rule reports on any types that aren't sorted alphabetically. - -> Types are sorted case-insensitively and treating numbers like a human would, falling back to character code sorting in case of ties. - -## Examples - - - - -```ts -type T1 = B | A; - -type T2 = { b: string } & { a: string }; - -type T3 = [1, 2, 4] & [1, 2, 3]; - -type T4 = - | [1, 2, 4] - | [1, 2, 3] - | { b: string } - | { a: string } - | (() => void) - | (() => string) - | 'b' - | 'a' - | 'b' - | 'a' - | readonly string[] - | readonly number[] - | string[] - | number[] - | B - | A - | string - | any; -``` - - - - -```ts -type T1 = A | B; - -type T2 = { a: string } & { b: string }; - -type T3 = [1, 2, 3] & [1, 2, 4]; - -type T4 = - | A - | B - | number[] - | string[] - | any - | string - | readonly number[] - | readonly string[] - | 'a' - | 'a' - | 'b' - | 'b' - | (() => string) - | (() => void) - | { a: string } - | { b: string } - | [1, 2, 3] - | [1, 2, 4]; -``` - - - - -## Options - -### `caseSensitive` - -Whether to sort using case sensitive string comparisons. - -Examples of code with `{ "caseSensitive": true }`: - - - - -```ts option='{ "caseSensitive": true }' -type T = 'DeletedAt' | 'DeleteForever'; -``` - - - - -```ts option='{ "caseSensitive": true }' -type T = 'DeleteForever' | 'DeletedAt'; -``` - - - - -### `checkIntersections` - -Whether to check intersection types (`&`). - -Examples of code with `{ "checkIntersections": true }` (the default): - - - - -```ts option='{ "checkIntersections": true }' -type ExampleIntersection = B & A; -``` - - - - -```ts option='{ "checkIntersections": true }' -type ExampleIntersection = A & B; -``` - - - - -### `checkUnions` - -Whether to check union types (`|`). - -Examples of code with `{ "checkUnions": true }` (the default): - - - - -```ts option='{ "checkUnions": true }' -type ExampleUnion = B | A; -``` - - - - -```ts option='{ "checkUnions": true }' -type ExampleUnion = A | B; -``` - - - - -### `groupOrder` - -Each constituent of the type is placed into a group, and then the rule sorts alphabetically within each group. -The ordering of groups is determined by this option. - -- `conditional` - Conditional types (`A extends B ? C : D`) -- `function` - Function and constructor types (`() => void`, `new () => type`) -- `import` - Import types (`import('path')`) -- `intersection` - Intersection types (`A & B`) -- `keyword` - Keyword types (`any`, `string`, etc) -- `literal` - Literal types (`1`, `'b'`, `true`, etc) -- `named` - Named types (`A`, `A['prop']`, `B[]`, `Array`) -- `object` - Object types (`{ a: string }`, `{ [key: string]: number }`) -- `operator` - Operator types (`keyof A`, `typeof B`, `readonly C[]`) -- `tuple` - Tuple types (`[A, B, C]`) -- `union` - Union types (`A | B`) -- `nullish` - `null` and `undefined` - -For example, configuring the rule with `{ "groupOrder": ["literal", "nullish" ]}`: - - - - -```ts option='{ "groupOrder": ["literal", "nullish" ]}' -type ExampleGroup = null | 123; -``` - - - - -```ts option='{ "groupOrder": ["literal", "nullish" ]}' -type ExampleGroup = 123 | null; -``` - - - - -## When Not To Use It - -This rule is purely a stylistic rule for maintaining consistency in your project. -You can turn it off if you don't want to keep a consistent, predictable order for intersection and union types. -However, keep in mind that inconsistent style can harm readability in a project. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx deleted file mode 100644 index af5afd1c..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/sort-type-union-intersection-members.mdx +++ /dev/null @@ -1,16 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been renamed to [`sort-type-constituents`](https://typescript-eslint.io/rules/sort-type-constituents). - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-blocks.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-infix-ops.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx deleted file mode 100644 index 8c5b27e0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.mdx +++ /dev/null @@ -1,196 +0,0 @@ ---- -description: 'Disallow certain types in boolean expressions.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/strict-boolean-expressions** for documentation. - -Forbids usage of non-boolean types in expressions where a boolean is expected. -`boolean` and `never` types are always allowed. -Additional types which are considered safe in a boolean context can be configured via options. - -The following nodes are considered boolean expressions and their type is checked: - -- Argument to the logical negation operator (`!arg`). -- The condition in a conditional expression (`cond ? x : y`). -- Conditions for `if`, `for`, `while`, and `do-while` statements. -- Operands of logical binary operators (`lhs || rhs` and `lhs && rhs`). - - Right-hand side operand is ignored when it's not a descendant of another boolean expression. - This is to allow usage of boolean operators for their short-circuiting behavior. -- Asserted argument of an assertion function (`assert(arg)`). - -## Examples - - - - -```ts -// nullable numbers are considered unsafe by default -declare const num: number | undefined; -if (num) { - console.log('num is defined'); -} - -// nullable strings are considered unsafe by default -declare const str: string | null; -if (!str) { - console.log('str is empty'); -} - -// nullable booleans are considered unsafe by default -function foo(bool?: boolean) { - if (bool) { - bar(); - } -} - -// `any`, unconstrained generics and unions of more than one primitive type are disallowed -const foo = (arg: T) => (arg ? 1 : 0); - -// always-truthy and always-falsy types are disallowed -let obj = {}; -while (obj) { - obj = getObj(); -} - -// assertion functions without an `is` are boolean contexts. -declare function assert(value: unknown): asserts value; -let maybeString = Math.random() > 0.5 ? '' : undefined; -assert(maybeString); -``` - - - - -```tsx -// nullable values should be checked explicitly against null or undefined -let num: number | undefined = 0; -if (num != null) { - console.log('num is defined'); -} - -let str: string | null = null; -if (str != null && !str) { - console.log('str is empty'); -} - -function foo(bool?: boolean) { - if (bool ?? false) { - bar(); - } -} - -// `any` types should be cast to boolean explicitly -const foo = (arg: any) => (Boolean(arg) ? 1 : 0); -``` - - - - -## Options - -### `allowString` - -Allows `string` in a boolean context. -This is safe because strings have only one falsy value (`""`). -Set this to `false` if you prefer the explicit `str != ""` or `str.length > 0` style. - -### `allowNumber` - -Allows `number` in a boolean context. -This is safe because numbers have only two falsy values (`0` and `NaN`). -Set this to `false` if you prefer the explicit `num != 0` and `!Number.isNaN(num)` style. - -### `allowNullableObject` - -Allows `object | function | symbol | null | undefined` in a boolean context. -This is safe because objects, functions and symbols don't have falsy values. -Set this to `false` if you prefer the explicit `obj != null` style. - -### `allowNullableBoolean` - -Allows `boolean | null | undefined` in a boolean context. -This is unsafe because nullable booleans can be either `false` or nullish. -Set this to `false` if you want to enforce explicit `bool ?? false` or `bool ?? true` style. -Set this to `true` if you don't mind implicitly treating false the same as a nullish value. - -### `allowNullableString` - -Allows `string | null | undefined` in a boolean context. -This is unsafe because nullable strings can be either an empty string or nullish. -Set this to `true` if you don't mind implicitly treating an empty string the same as a nullish value. - -### `allowNullableNumber` - -Allows `number | null | undefined` in a boolean context. -This is unsafe because nullable numbers can be either a falsy number or nullish. -Set this to `true` if you don't mind implicitly treating zero or NaN the same as a nullish value. - -### `allowNullableEnum` - -Allows `enum | null | undefined` in a boolean context. -This is unsafe because nullable enums can be either a falsy number or nullish. -Set this to `true` if you don't mind implicitly treating an enum whose value is zero the same as a nullish value. - -### `allowAny` - -Allows `any` in a boolean context. -This is unsafe for obvious reasons. -Set this to `true` at your own risk. - -### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing` - -If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`. - -Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule a lot less useful. - -You should be using `strictNullChecks` to ensure complete type-safety in your codebase. - -If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option. - -## Fixes and Suggestions - -This rule provides following fixes and suggestions for particular types in boolean context: - -- `boolean` - Always allowed - no fix needed. -- `string` - (when `allowString` is `false`) - Provides following suggestions: - - Change condition to check string's length (`str` → `str.length > 0`) - - Change condition to check for empty string (`str` → `str !== ""`) - - Explicitly cast value to a boolean (`str` → `Boolean(str)`) -- `number` - (when `allowNumber` is `false`): - - For `array.length` - Provides **autofix**: - - Change condition to check for 0 (`array.length` → `array.length > 0`) - - For other number values - Provides following suggestions: - - Change condition to check for 0 (`num` → `num !== 0`) - - Change condition to check for NaN (`num` → `!Number.isNaN(num)`) - - Explicitly cast value to a boolean (`num` → `Boolean(num)`) -- `object | null | undefined` - (when `allowNullableObject` is `false`) - Provides **autofix**: - - Change condition to check for null/undefined (`maybeObj` → `maybeObj != null`) -- `boolean | null | undefined` - Provides following suggestions: - - Explicitly treat nullish value the same as false (`maybeBool` → `maybeBool ?? false`) - - Change condition to check for true/false (`maybeBool` → `maybeBool === true`) -- `string | null | undefined` - Provides following suggestions: - - Change condition to check for null/undefined (`maybeStr` → `maybeStr != null`) - - Explicitly treat nullish value the same as an empty string (`maybeStr` → `maybeStr ?? ""`) - - Explicitly cast value to a boolean (`maybeStr` → `Boolean(maybeStr)`) -- `number | null | undefined` - Provides following suggestions: - - Change condition to check for null/undefined (`maybeNum` → `maybeNum != null`) - - Explicitly treat nullish value the same as 0 (`maybeNum` → `maybeNum ?? 0`) - - Explicitly cast value to a boolean (`maybeNum` → `Boolean(maybeNum)`) -- `any` and `unknown` - Provides following suggestions: - - Explicitly cast value to a boolean (`value` → `Boolean(value)`) - -## When Not To Use It - -If your project isn't likely to experience bugs from falsy non-boolean values being used in logical conditions, you can skip enabling this rule. - -Otherwise, this rule can be quite strict around requiring exact comparisons in logical checks. -If you prefer more succinct checks over more precise boolean logic, this rule might not be for you. - -## Related To - -- [no-unnecessary-condition](./no-unnecessary-condition.mdx) - Similar rule which reports always-truthy and always-falsy values in conditions diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx deleted file mode 100644 index f629d8ee..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx +++ /dev/null @@ -1,230 +0,0 @@ ---- -description: 'Require switch-case statements to be exhaustive.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/switch-exhaustiveness-check** for documentation. - -When working with union types or enums in TypeScript, it's common to want to write a `switch` statement intended to contain a `case` for each possible type in the union or the enum. -However, if the union type or the enum changes, it's easy to forget to modify the cases to account for any new types. - -This rule reports when a `switch` statement over a value typed as a union of literals or as an enum is missing a case for any of those literal types and does not have a `default` clause. - -## Options - -### `allowDefaultCaseForExhaustiveSwitch` - -Defaults to true. If set to false, this rule will also report when a `switch` statement has a case for everything in a union and _also_ contains a `default` case. Thus, by setting this option to false, the rule becomes stricter. - -When a `switch` statement over a union type is exhaustive, a final `default` case would be a form of dead code. -Additionally, if a new value is added to the union type, a `default` would prevent the `switch-exhaustiveness-check` rule from reporting on the new case not being handled in the `switch` statement. - -#### `allowDefaultCaseForExhaustiveSwitch` Caveats - -It can sometimes be useful to include a redundant `default` case on an exhaustive `switch` statement if it's possible for values to have types not represented by the union type. -For example, in applications that can have version mismatches between clients and servers, it's possible for a server running a newer software version to send a value not recognized by the client's older typings. - -If your project has a small number of intentionally redundant `default` cases, you might want to use an [inline ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for each of them. - -If your project has many intentionally redundant `default` cases, you may want to disable `allowDefaultCaseForExhaustiveSwitch` and use the [`default-case` core ESLint rule](https://eslint.org/docs/latest/rules/default-case) along with [a `satisfies never` check](https://www.typescriptlang.org/play?#code/C4TwDgpgBAYgTgVwJbCgXigcgIZjAGwkygB8sAjbAO2u0wG4AoRgMwSoGNgkB7KqBAGcI8ZMAAULRCgBcsacACUcwcDhIqAcygBvRlCiCA7ig4ALKJIWLd+g1A7ZhWXASJy99+3AjAEcfhw8QgApZA4iJi8AX2YvR2dMShoaTA87Lx8-AIpaGjCkCIYMqFiSgBMIFmwEfGB0rwMpMUNsbkEWJAhBKCoIADcIOCjGrP9A9gBrKh4jKgKikYNY5cZYoA). - -### `requireDefaultForNonUnion` - -Defaults to false. If set to true, this rule will also report when a `switch` statement switches over a non-union type (like a `number` or `string`, for example) and that `switch` statement does not have a `default` case. Thus, by setting this option to true, the rule becomes stricter. - -This is generally desirable so that `number` and `string` switches will be subject to the same exhaustive checks that your other switches are. - -Examples of additional **incorrect** code for this rule with `{ requireDefaultForNonUnion: true }`: - -```ts option='{ "requireDefaultForNonUnion": true }' showPlaygroundButton -const value: number = Math.floor(Math.random() * 3); - -switch (value) { - case 0: - return 0; - case 1: - return 1; -} -``` - -Since `value` is a non-union type it requires the switch case to have a default clause only with `requireDefaultForNonUnion` enabled. - -## Examples - -When the switch doesn't have exhaustive cases, either filling them all out or adding a default will correct the rule's complaint. - -Here are some examples of code working with a union of literals: - - - - -```ts -type Day = - | 'Monday' - | 'Tuesday' - | 'Wednesday' - | 'Thursday' - | 'Friday' - | 'Saturday' - | 'Sunday'; - -declare const day: Day; -let result = 0; - -switch (day) { - case 'Monday': - result = 1; - break; -} -``` - - - - -```ts -type Day = - | 'Monday' - | 'Tuesday' - | 'Wednesday' - | 'Thursday' - | 'Friday' - | 'Saturday' - | 'Sunday'; - -declare const day: Day; -let result = 0; - -switch (day) { - case 'Monday': - result = 1; - break; - case 'Tuesday': - result = 2; - break; - case 'Wednesday': - result = 3; - break; - case 'Thursday': - result = 4; - break; - case 'Friday': - result = 5; - break; - case 'Saturday': - result = 6; - break; - case 'Sunday': - result = 7; - break; -} -``` - - - - -```ts -type Day = - | 'Monday' - | 'Tuesday' - | 'Wednesday' - | 'Thursday' - | 'Friday' - | 'Saturday' - | 'Sunday'; - -declare const day: Day; -let result = 0; - -switch (day) { - case 'Monday': - result = 1; - break; - default: - result = 42; -} -``` - - - - -Likewise, here are some examples of code working with an enum: - - - - -```ts -enum Fruit { - Apple, - Banana, - Cherry, -} - -declare const fruit: Fruit; - -switch (fruit) { - case Fruit.Apple: - console.log('an apple'); - break; -} -``` - - - - -```ts -enum Fruit { - Apple, - Banana, - Cherry, -} - -declare const fruit: Fruit; - -switch (fruit) { - case Fruit.Apple: - console.log('an apple'); - break; - - case Fruit.Banana: - console.log('a banana'); - break; - - case Fruit.Cherry: - console.log('a cherry'); - break; -} -``` - - - - -```ts -enum Fruit { - Apple, - Banana, - Cherry, -} - -declare const fruit: Fruit; - -switch (fruit) { - case Fruit.Apple: - console.log('an apple'); - break; - - default: - console.log('a fruit'); - break; -} -``` - - - - -## When Not To Use It - -If you don't frequently `switch` over union types or enums with many parts, or intentionally wish to leave out some parts, this rule may not be for you. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx deleted file mode 100644 index 43a04367..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/triple-slash-reference.mdx +++ /dev/null @@ -1,123 +0,0 @@ ---- -description: 'Disallow certain triple slash directives in favor of ES6-style import declarations.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/triple-slash-reference** for documentation. - -TypeScript's `///` triple-slash references are a way to indicate that types from another module are available in a file. -Use of triple-slash reference type directives is generally discouraged in favor of ECMAScript Module `import`s. -This rule reports on the use of `/// `, `/// `, or `/// ` directives. - -## Options - -Any number of the three kinds of references can be specified as an option. -Specifying `'always'` disables this lint rule for that kind of reference. - -### `lib` - -When set to `'never'`, bans `/// ` and enforces using an `import` instead: - - - - -```ts option='{ "lib": "never" }' -/// - -globalThis.value; -``` - - - - -```ts option='{ "lib": "never" }' -import { value } from 'code'; -``` - - - - -### `path` - -When set to `'never'`, bans `/// ` and enforces using an `import` instead: - - - - -```ts option='{ "path": "never" }' -/// - -globalThis.value; -``` - - - - -```ts option='{ "path": "never" }' -import { value } from 'code'; -``` - - - - -### `types` - -When set to `'never'`, bans `/// ` and enforces using an `import` instead: - - - - -```ts option='{ "types": "never" }' -/// - -globalThis.value; -``` - - - - -```ts option='{ "types": "never" }' -import { value } from 'code'; -``` - - - - -The `types` option may alternately be given a `"prefer-import"` value. -Doing so indicates the rule should only report if there is already an `import` from the same location: - - - - -```ts option='{ "types": "prefer-import" }' -/// - -import { valueA } from 'code'; - -globalThis.valueB; -``` - - - - -```ts option='{ "types": "prefer-import" }' -import { valueA, valueB } from 'code'; -``` - - - - -## When Not To Use It - -Most modern TypeScript projects generally use `import` statements to bring in types. -It's rare to need a `///` triple-slash reference outside of auto-generated code. -If your project is a rare one with one of those use cases, this rule might not be for you. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -## When Not To Use It - -If you want to use all flavors of triple slash reference directives. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md deleted file mode 100644 index 039ef6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -displayed_sidebar: rulesSidebar ---- - -:::danger Deprecated - -This rule has been moved to the [ESLint stylistic plugin](https://eslint.style). -See [#8072](https://github.com/typescript-eslint/typescript-eslint/issues/8072) and [#8074](https://github.com/typescript-eslint/typescript-eslint/issues/8074) for more information. - -::: - - diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx deleted file mode 100644 index cfbe5fa1..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.mdx +++ /dev/null @@ -1,347 +0,0 @@ ---- -description: 'Require type annotations in certain places.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/typedef** for documentation. - -TypeScript cannot always infer types for all places in code. -Some locations require type annotations for their types to be inferred. - -This rule can enforce type annotations in locations regardless of whether they're required. -This is typically used to maintain consistency for element types that sometimes require them. - -```ts -class ContainsText { - // There must be a type annotation here to infer the type - delayedText: string; - - // `typedef` requires a type annotation here to maintain consistency - immediateTextExplicit: string = 'text'; - - // This is still a string type because of its initial value - immediateTextImplicit = 'text'; -} -``` - -> To enforce type definitions existing on call signatures, use [`explicit-function-return-type`](./explicit-function-return-type.mdx), or [`explicit-module-boundary-types`](./explicit-module-boundary-types.mdx). - -:::caution - -Requiring type annotations unnecessarily can be cumbersome to maintain and generally reduces code readability. -TypeScript is often better at inferring types than easily written type annotations would allow. - -**Instead of enabling `typedef`, it is generally recommended to use the `--noImplicitAny` and `--strictPropertyInitialization` compiler options to enforce type annotations only when useful.** - -::: - -## Options - -For example, with the following configuration: - -```json -{ - "rules": { - "@typescript-eslint/typedef": [ - "error", - { - "arrowParameter": true, - "variableDeclaration": true - } - ] - } -} -``` - -- Type annotations on arrow function parameters are required -- Type annotations on variables are required - -### `arrayDestructuring` - -Whether to enforce type annotations on variables declared using array destructuring. - -Examples of code with `{ "arrayDestructuring": true }`: - - - - -```ts option='{ "arrayDestructuring": true }' -const [a] = [1]; -const [b, c] = [1, 2]; -``` - - - - -```ts option='{ "arrayDestructuring": true }' -const [a]: number[] = [1]; -const [b]: [number] = [2]; -const [c, d]: [boolean, string] = [true, 'text']; - -for (const [key, val] of new Map([['key', 1]])) { -} -``` - - - - -### `arrowParameter` - -Whether to enforce type annotations for parameters of arrow functions. - -Examples of code with `{ "arrowParameter": true }`: - - - - -```ts option='{ "arrowParameter": true }' -const logsSize = size => console.log(size); - -['hello', 'world'].map(text => text.length); - -const mapper = { - map: text => text + '...', -}; -``` - - - - -```ts option='{ "arrowParameter": true }' -const logsSize = (size: number) => console.log(size); - -['hello', 'world'].map((text: string) => text.length); - -const mapper = { - map: (text: string) => text + '...', -}; -``` - - - - -### `memberVariableDeclaration` - -Whether to enforce type annotations on member variables of classes. - -Examples of code with `{ "memberVariableDeclaration": true }`: - - - - -```ts option='{ "memberVariableDeclaration": true }' -class ContainsText { - delayedText; - immediateTextImplicit = 'text'; -} -``` - - - - -```ts option='{ "memberVariableDeclaration": true }' -class ContainsText { - delayedText: string; - immediateTextImplicit: string = 'text'; -} -``` - - - - -### `objectDestructuring` - -Whether to enforce type annotations on variables declared using object destructuring. - -Examples of code with `{ "objectDestructuring": true }`: - - - - -```ts option='{ "objectDestructuring": true }' -const { length } = 'text'; -const [b, c] = Math.random() ? [1, 2] : [3, 4]; -``` - - - - -```ts option='{ "objectDestructuring": true }' -const { length }: { length: number } = 'text'; -const [b, c]: [number, number] = Math.random() ? [1, 2] : [3, 4]; - -for (const { key, val } of [{ key: 'key', val: 1 }]) { -} -``` - - - - -### `parameter` - -Whether to enforce type annotations for parameters of functions and methods. - -Examples of code with `{ "parameter": true }`: - - - - -```ts option='{ "parameter": true }' -function logsSize(size): void { - console.log(size); -} - -const doublesSize = function (size): number { - return size * 2; -}; - -const divider = { - curriesSize(size): number { - return size; - }, - dividesSize: function (size): number { - return size / 2; - }, -}; - -class Logger { - log(text): boolean { - console.log('>', text); - return true; - } -} -``` - - - - -```ts option='{ "parameter": true }' -function logsSize(size: number): void { - console.log(size); -} - -const doublesSize = function (size: number): number { - return size * 2; -}; - -const divider = { - curriesSize(size: number): number { - return size; - }, - dividesSize: function (size: number): number { - return size / 2; - }, -}; - -class Logger { - log(text: boolean): boolean { - console.log('>', text); - return true; - } -} -``` - - - - -### `propertyDeclaration` - -Whether to enforce type annotations for properties of interfaces and types. - -Examples of code with `{ "propertyDeclaration": true }`: - - - - -```ts option='{ "propertyDeclaration": true }' -type Members = { - member; - otherMember; -}; -``` - - - - -```ts option='{ "propertyDeclaration": true }' -type Members = { - member: boolean; - otherMember: string; -}; -``` - - - - -### `variableDeclaration` - -Whether to enforce type annotations for variable declarations, excluding array and object destructuring. - -Examples of code with `{ "variableDeclaration": true }`: - - - - -```ts option='{ "variableDeclaration": true }' -const text = 'text'; -let initialText = 'text'; -let delayedText; -``` - - - - -```ts option='{ "variableDeclaration": true }' -const text: string = 'text'; -let initialText: string = 'text'; -let delayedText: string; -``` - - - - -### `variableDeclarationIgnoreFunction` - -Ignore variable declarations for non-arrow and arrow functions. - -Examples of code with `{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }`: - - - - -```ts option='{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }' -const text = 'text'; -``` - - - - -```ts option='{ "variableDeclaration": true, "variableDeclarationIgnoreFunction": true }' -const a = (): void => {}; -const b = function (): void {}; -const c: () => void = (): void => {}; - -class Foo { - a = (): void => {}; - b = function (): void {}; - c: () => void = (): void => {}; -} -``` - - - - -## When Not To Use It - -If you are using stricter TypeScript compiler options, particularly `--noImplicitAny` and/or `--strictPropertyInitialization`, you likely don't need this rule. - -In general, if you do not consider the cost of writing unnecessary type annotations reasonable, then do not use this rule. - -## Further Reading - -- [TypeScript Type System](https://basarat.gitbooks.io/typescript/docs/types/type-system.html) -- [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx deleted file mode 100644 index 7dd2d5aa..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unbound-method.mdx +++ /dev/null @@ -1,112 +0,0 @@ ---- -description: 'Enforce unbound methods are called with their expected scope.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/unbound-method** for documentation. - -Class method functions don't preserve the class scope when passed as standalone variables ("unbound"). -If your function does not access `this`, [you can annotate it with `this: void`](https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function), or consider using an arrow function instead. -Otherwise, passing class methods around as values can remove type safety by failing to capture `this`. - -This rule reports when a class method is referenced in an unbound manner. - -:::note Tip -If you're working with `jest`, you can use [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md) to lint your test files, which knows when it's ok to pass an unbound method to `expect` calls. -::: - -## Examples - - - - -```ts -class MyClass { - public log(): void { - console.log(this); - } -} - -const instance = new MyClass(); - -// This logs the global scope (`window`/`global`), not the class instance -const myLog = instance.log; -myLog(); - -// This log might later be called with an incorrect scope -const { log } = instance; - -// arith.double may refer to `this` internally -const arith = { - double(x: number): number { - return x * 2; - }, -}; -const { double } = arith; -``` - - - - -```ts -class MyClass { - public logUnbound(): void { - console.log(this); - } - - public logBound = () => console.log(this); -} - -const instance = new MyClass(); - -// logBound will always be bound with the correct scope -const { logBound } = instance; -logBound(); - -// .bind and lambdas will also add a correct scope -const dotBindLog = instance.logUnbound.bind(instance); -const innerLog = () => instance.logUnbound(); - -// arith.double explicitly declares that it does not refer to `this` internally -const arith = { - double(this: void, x: number): number { - return x * 2; - }, -}; -const { double } = arith; -``` - - - - -## Options - -### `ignoreStatic` - -Examples of **correct** code for this rule with `{ ignoreStatic: true }`: - -```ts option='{ "ignoreStatic": true }' showPlaygroundButton -class OtherClass { - static log() { - console.log(OtherClass); - } -} - -// With `ignoreStatic`, statics are assumed to not rely on a particular scope -const { log } = OtherClass; - -log(); -``` - -## When Not To Use It - -If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use. -For example, some functions have an additional parameter for specifying the `this` context, such as `Reflect.apply`, and array methods like `Array.prototype.map`. -This semantic is not easily expressed by TypeScript. -You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule. - -If you're wanting to use `toBeCalled` and similar matches in `jest` tests, you can disable this rule for your test files in favor of [`eslint-plugin-jest`'s version of this rule](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.mdx). diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx deleted file mode 100644 index 6e2fd8d5..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/unified-signatures.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -description: 'Disallow two overloads that could be unified into one with a union or an optional/rest parameter.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/unified-signatures** for documentation. - -Function overload signatures are a TypeScript way to define a function that can be called in multiple very different ways. -Overload signatures add syntax and theoretical bloat, so it's generally best to avoid using them when possible. -Switching to union types and/or optional or rest parameters can often avoid the need for overload signatures. - -This rule reports when function overload signatures can be replaced by a single function signature. - -## Examples - - - - -```ts -function x(x: number): void; -function x(x: string): void; -``` - -```ts -function y(): void; -function y(...x: number[]): void; -``` - - - - -```ts -function x(x: number | string): void; -``` - -```ts -function y(...x: number[]): void; -``` - -```ts -// This rule won't check overload signatures with different rest parameter types. -// See https://github.com/microsoft/TypeScript/issues/5077 -function f(...a: number[]): void; -function f(...a: string[]): void; -``` - - - - -## Options - -### `ignoreDifferentlyNamedParameters` - -Examples of code for this rule with `ignoreDifferentlyNamedParameters`: - - - - -```ts option='{ "ignoreDifferentlyNamedParameters": true }' -function f(a: number): void; -function f(a: string): void; -``` - - - - -```ts option='{ "ignoreDifferentlyNamedParameters": true }' -function f(a: number): void; -function f(b: string): void; -``` - - - - -## When Not To Use It - -This is purely a stylistic rule to help with readability of function signature overloads. -You can turn it off if you don't want to consistently keep them next to each other and unified. - -## Related To - -- [`adjacent-overload-signatures`](./adjacent-overload-signatures.mdx) diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx b/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx deleted file mode 100644 index 8192950a..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx +++ /dev/null @@ -1,84 +0,0 @@ ---- -description: 'Enforce typing arguments in `.catch()` callbacks as `unknown`.' ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -> 🛑 This file is source code, not the primary documentation location! 🛑 -> -> See **https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable** for documentation. - -This rule enforces that you always use the `unknown` type for the parameter of a `Promise.prototype.catch()` callback. - - - - -```ts -Promise.reject(new Error('I will reject!')).catch(err => { - console.log(err); -}); - -Promise.reject(new Error('I will reject!')).catch((err: any) => { - console.log(err); -}); - -Promise.reject(new Error('I will reject!')).catch((err: Error) => { - console.log(err); -}); -``` - - - - -```ts -Promise.reject(new Error('I will reject!')).catch((err: unknown) => { - console.log(err); -}); -``` - - - - -The reason for this rule is to enable programmers to impose constraints on `Promise` error handling analogously to what TypeScript provides for ordinary exception handling. - -For ordinary exceptions, TypeScript treats the `catch` variable as `any` by default. However, `unknown` would be a more accurate type, so TypeScript [introduced the `useUnknownInCatchVariables` compiler option](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#defaulting-to-the-unknown-type-in-catch-variables---useunknownincatchvariables) to treat the `catch` variable as `unknown` instead. - -```ts -try { - throw x; -} catch (err) { - // err has type 'any' with useUnknownInCatchVariables: false - // err has type 'unknown' with useUnknownInCatchVariables: true -} -``` - -The Promise analog of the `try-catch` block, [`Promise.prototype.catch()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch), is not affected by the `useUnknownInCatchVariables` compiler option, and its "`catch` variable" will always have the type `any`. - -```ts -Promise.reject(x).catch(err => { - // err has type 'any' regardless of `useUnknownInCatchVariables` -}); -``` - -However, you can still provide an explicit type annotation, which lets you achieve the same effect as the `useUnknownInCatchVariables` option does for synchronous `catch` variables. - -```ts -Promise.reject(x).catch((err: unknown) => { - // err has type 'unknown' -}); -``` - -:::info -There is actually a way to have the `catch()` callback variable use the `unknown` type _without_ an explicit type annotation at the call sites, but it has the drawback that it involves overriding global type declarations. -For example, the library [better-TypeScript-lib](https://github.com/uhyo/better-typescript-lib) sets this up globally for your project (see [the relevant lines in the better-TypeScript-lib source code](https://github.com/uhyo/better-typescript-lib/blob/c294e177d1cc2b1d1803febf8192a4c83a1fe028/lib/lib.es5.d.ts#L635) for details on how). - -For further reading on this, you may also want to look into -[the discussion in the proposal for this rule](https://github.com/typescript-eslint/typescript-eslint/issues/7526#issuecomment-1690600813) and [this TypeScript issue on typing catch callback variables as unknown](https://github.com/microsoft/TypeScript/issues/45602). -::: - -## When Not To Use It - -If your codebase is not yet able to enable `useUnknownInCatchVariables`, it likely would be similarly difficult to enable this rule. - -If you have modified the global type declarations in order to make `catch()` callbacks use the `unknown` type without an explicit type annotation, you do not need this rule. diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/index.d.ts b/graphql/node_modules/@typescript-eslint/eslint-plugin/index.d.ts deleted file mode 100644 index 756a025e..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { - ClassicConfig, - FlatConfig, -} from '@typescript-eslint/utils/ts-eslint'; - -import type rules from './rules'; - -declare const cjsExport: { - configs: Record; - meta: FlatConfig.PluginMeta; - rules: typeof rules; -}; -export = cjsExport; diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/package.json b/graphql/node_modules/@typescript-eslint/eslint-plugin/package.json deleted file mode 100644 index ce6950b0..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "name": "@typescript-eslint/eslint-plugin", - "version": "8.1.0", - "description": "TypeScript plugin for ESLint", - "files": [ - "dist", - "docs", - "index.d.ts", - "rules.d.ts", - "package.json", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json", - "./use-at-your-own-risk/rules": { - "types": "./rules.d.ts", - "default": "./dist/rules/index.js" - }, - "./use-at-your-own-risk/eslint-recommended-raw": { - "types": "./eslint-recommended-raw.d.ts", - "default": "./dist/configs/eslint-recommended-raw.js" - } - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/eslint-plugin" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io/packages/eslint-plugin", - "license": "MIT", - "keywords": [ - "eslint", - "eslintplugin", - "eslint-plugin", - "typescript" - ], - "scripts": { - "build": "tsc -b tsconfig.build.json", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rimraf dist && rimraf coverage", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "generate:breaking-changes": "tsx tools/generate-breaking-changes.mts", - "generate:configs": "npx nx generate-configs repo", - "lint": "npx nx lint", - "test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage --logHeapUsage", - "test-single": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --no-coverage", - "typecheck": "tsc --noEmit" - }, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.1.0", - "@typescript-eslint/type-utils": "8.1.0", - "@typescript-eslint/utils": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "devDependencies": { - "@jest/types": "29.6.3", - "@types/marked": "^5.0.2", - "@types/mdast": "^4.0.3", - "@types/natural-compare": "*", - "@typescript-eslint/rule-schema-to-typescript-types": "8.1.0", - "@typescript-eslint/rule-tester": "8.1.0", - "ajv": "^6.12.6", - "cross-env": "^7.0.3", - "cross-fetch": "*", - "eslint": "*", - "jest": "29.7.0", - "jest-specific-snapshot": "^8.0.0", - "json-schema": "*", - "markdown-table": "^3.0.3", - "marked": "^5.1.2", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-mdx": "^3.0.0", - "micromark-extension-mdxjs": "^3.0.0", - "prettier": "^3.2.5", - "rimraf": "*", - "title-case": "^3.0.3", - "tsx": "*", - "typescript": "*", - "unist-util-visit": "^5.0.0" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } -} diff --git a/graphql/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts b/graphql/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts deleted file mode 100644 index d6625d09..00000000 --- a/graphql/node_modules/@typescript-eslint/eslint-plugin/rules.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* -We purposely don't generate types for our plugin because TL;DR: -1) there's no real reason that anyone should do a typed import of our rules, -2) it would require us to change our code so there aren't as many inferred types - -This type declaration exists as a hacky way to add a type to the export for our -internal packages that require it. - -*** Long reason *** - -When you turn on declaration files, TS requires all types to be "fully resolvable" -without changes to the code. -All of our lint rules `export default createRule(...)`, which means they all -implicitly reference the `TSESLint.Rule` type for the export. - -TS wants to transpile each rule file to this `.d.ts` file: - -```ts -import type { TSESLint } from '@typescript-eslint/utils'; -declare const _default: TSESLint.RuleModule; -export default _default; -``` - -Because we don't import `TSESLint` in most files, it means that TS would have to -insert a new import during the declaration emit to make this work. -However TS wants to avoid adding new imports to the file because a new module -could have type side-effects (like global augmentation) which could cause weird -type side-effects in the decl file that wouldn't exist in source TS file. - -So TS errors on most of our rules with the following error: -``` -The inferred type of 'default' cannot be named without a reference to -'../../../../node_modules/@typescript-eslint/utils/src/ts-eslint/Rule'. -This is likely not portable. A type annotation is necessary. ts(2742) -``` -*/ - -import type { - RuleModuleWithMetaDocs, - RuleRecommendation, - RuleRecommendationAcrossConfigs, -} from '@typescript-eslint/utils/ts-eslint'; - -export interface ESLintPluginDocs { - /** - * Does the rule extend (or is it based off of) an ESLint code rule? - * Alternately accepts the name of the base rule, in case the rule has been renamed. - * This is only used for documentation purposes. - */ - extendsBaseRule?: boolean | string; - - /** - * If a string config name, which starting config this rule is enabled in. - * If an object, which settings it has enabled in each of those configs. - */ - recommended?: RuleRecommendation | RuleRecommendationAcrossConfigs; - - /** - * Does the rule require us to create a full TypeScript Program in order for it - * to type-check code. This is only used for documentation purposes. - */ - requiresTypeChecking?: boolean; -} - -export type ESLintPluginRuleModule = RuleModuleWithMetaDocs< - string, - readonly unknown[], - ESLintPluginDocs ->; - -export type TypeScriptESLintRules = Record< - string, - RuleModuleWithMetaDocs ->; - -declare const rules: TypeScriptESLintRules; -export default rules; diff --git a/graphql/node_modules/@typescript-eslint/parser/LICENSE b/graphql/node_modules/@typescript-eslint/parser/LICENSE deleted file mode 100644 index dc04d8c9..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -TypeScript ESLint Parser -Copyright JS Foundation and other contributors, https://js.foundation - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -- Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/@typescript-eslint/parser/README.md b/graphql/node_modules/@typescript-eslint/parser/README.md deleted file mode 100644 index 56ee655a..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `@typescript-eslint/parser` - -> An ESLint parser which leverages TypeScript ESTree to allow for ESLint to lint TypeScript source code. - -[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser) -[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser) - -👉 See **https://typescript-eslint.io/packages/parser** for documentation on this package. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts deleted file mode 100644 index 6e88e737..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { parse, parseForESLint, ParserOptions } from './parser'; -export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, clearCaches, createProgram, withoutProjectParserOptions, } from '@typescript-eslint/typescript-estree'; -export declare const version: string; -export declare const meta: { - name: string; - version: string; -}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts.map deleted file mode 100644 index 75d38c3e..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EACL,cAAc,EACd,iCAAiC,EACjC,oCAAoC,EACpC,WAAW,EACX,aAAa,EACb,2BAA2B,GAC5B,MAAM,sCAAsC,CAAC;AAI9C,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC;AAElE,eAAO,MAAM,IAAI;;;CAGhB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/index.js b/graphql/node_modules/@typescript-eslint/parser/dist/index.js deleted file mode 100644 index 14cbb742..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.meta = exports.version = exports.withoutProjectParserOptions = exports.createProgram = exports.clearCaches = exports.parseForESLint = exports.parse = void 0; -var parser_1 = require("./parser"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); -Object.defineProperty(exports, "parseForESLint", { enumerable: true, get: function () { return parser_1.parseForESLint; } }); -var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -Object.defineProperty(exports, "clearCaches", { enumerable: true, get: function () { return typescript_estree_1.clearCaches; } }); -Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return typescript_estree_1.createProgram; } }); -Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return typescript_estree_1.withoutProjectParserOptions; } }); -// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access -exports.version = require('../package.json').version; -exports.meta = { - name: 'typescript-eslint/parser', - version: exports.version, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/index.js.map b/graphql/node_modules/@typescript-eslint/parser/dist/index.js.map deleted file mode 100644 index db5125b7..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAgE;AAAvD,+FAAA,KAAK,OAAA;AAAE,wGAAA,cAAc,OAAA;AAC9B,0EAO8C;AAH5C,gHAAA,WAAW,OAAA;AACX,kHAAA,aAAa,OAAA;AACb,gIAAA,2BAA2B,OAAA;AAG7B,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;AAErD,QAAA,IAAI,GAAG;IAClB,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAP,eAAO;CACR,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts b/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts deleted file mode 100644 index b99aae09..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { ScopeManager } from '@typescript-eslint/scope-manager'; -import type { TSESTree } from '@typescript-eslint/types'; -import { ParserOptions } from '@typescript-eslint/types'; -import type { AST, ParserServices } from '@typescript-eslint/typescript-estree'; -import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; -import type * as ts from 'typescript'; -interface ESLintProgram extends AST<{ - comment: true; - tokens: true; -}> { - comments: TSESTree.Comment[]; - range: [number, number]; - tokens: TSESTree.Token[]; -} -interface ParseForESLintResult { - ast: ESLintProgram; - services: ParserServices; - visitorKeys: VisitorKeys; - scopeManager: ScopeManager; -} -declare function parse(code: ts.SourceFile | string, options?: ParserOptions): ParseForESLintResult['ast']; -declare function parseForESLint(code: ts.SourceFile | string, parserOptions?: ParserOptions | null): ParseForESLintResult; -export { parse, parseForESLint, ParserOptions }; -//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map b/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map deleted file mode 100644 index fdbf38db..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAO,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,GAAG,EACH,cAAc,EAEf,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,UAAU,aAAc,SAAQ,GAAG,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;IAClE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;CAC1B;AAED,UAAU,oBAAoB;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAmDD,iBAAS,KAAK,CACZ,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,EAC5B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,KAAK,CAAC,CAE7B;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,EAC5B,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GACnC,oBAAoB,CA8FtB;AAED,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/parser.js b/graphql/node_modules/@typescript-eslint/parser/dist/parser.js deleted file mode 100644 index ff2f2d56..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/parser.js +++ /dev/null @@ -1,135 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parse = parse; -exports.parseForESLint = parseForESLint; -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -const debug_1 = __importDefault(require("debug")); -const typescript_1 = require("typescript"); -const log = (0, debug_1.default)('typescript-eslint:parser:parser'); -function validateBoolean(value, fallback = false) { - if (typeof value !== 'boolean') { - return fallback; - } - return value; -} -const LIB_FILENAME_REGEX = /lib\.(.+)\.d\.[cm]?ts$/; -function getLib(compilerOptions) { - if (compilerOptions.lib) { - return compilerOptions.lib.reduce((acc, lib) => { - const match = LIB_FILENAME_REGEX.exec(lib.toLowerCase()); - if (match) { - acc.push(match[1]); - } - return acc; - }, []); - } - const target = compilerOptions.target ?? typescript_1.ScriptTarget.ES5; - // https://github.com/microsoft/TypeScript/blob/ae582a22ee1bb052e19b7c1bc4cac60509b574e0/src/compiler/utilitiesPublic.ts#L13-L36 - switch (target) { - case typescript_1.ScriptTarget.ESNext: - return ['esnext.full']; - case typescript_1.ScriptTarget.ES2022: - return ['es2022.full']; - case typescript_1.ScriptTarget.ES2021: - return ['es2021.full']; - case typescript_1.ScriptTarget.ES2020: - return ['es2020.full']; - case typescript_1.ScriptTarget.ES2019: - return ['es2019.full']; - case typescript_1.ScriptTarget.ES2018: - return ['es2018.full']; - case typescript_1.ScriptTarget.ES2017: - return ['es2017.full']; - case typescript_1.ScriptTarget.ES2016: - return ['es2016.full']; - case typescript_1.ScriptTarget.ES2015: - return ['es6']; - default: - return ['lib']; - } -} -function parse(code, options) { - return parseForESLint(code, options).ast; -} -function parseForESLint(code, parserOptions) { - if (!parserOptions || typeof parserOptions !== 'object') { - parserOptions = {}; - } - else { - parserOptions = { ...parserOptions }; - } - // https://eslint.org/docs/user-guide/configuring#specifying-parser-options - // if sourceType is not provided by default eslint expect that it will be set to "script" - if (parserOptions.sourceType !== 'module' && - parserOptions.sourceType !== 'script') { - parserOptions.sourceType = 'script'; - } - if (typeof parserOptions.ecmaFeatures !== 'object') { - parserOptions.ecmaFeatures = {}; - } - /** - * Allow the user to suppress the warning from typescript-estree if they are using an unsupported - * version of TypeScript - */ - const warnOnUnsupportedTypeScriptVersion = validateBoolean(parserOptions.warnOnUnsupportedTypeScriptVersion, true); - const tsestreeOptions = { - jsx: validateBoolean(parserOptions.ecmaFeatures.jsx), - ...(!warnOnUnsupportedTypeScriptVersion && { loggerFn: false }), - ...parserOptions, - // Override errorOnTypeScriptSyntacticAndSemanticIssues and set it to false to prevent use from user config - // https://github.com/typescript-eslint/typescript-eslint/issues/8681#issuecomment-2000411834 - errorOnTypeScriptSyntacticAndSemanticIssues: false, - // comment, loc, range, and tokens should always be set for ESLint usage - // https://github.com/typescript-eslint/typescript-eslint/issues/8347 - comment: true, - loc: true, - range: true, - tokens: true, - }; - const analyzeOptions = { - globalReturn: parserOptions.ecmaFeatures.globalReturn, - jsxPragma: parserOptions.jsxPragma, - jsxFragmentName: parserOptions.jsxFragmentName, - lib: parserOptions.lib, - sourceType: parserOptions.sourceType, - }; - const { ast, services } = (0, typescript_estree_1.parseAndGenerateServices)(code, tsestreeOptions); - ast.sourceType = parserOptions.sourceType; - if (services.program) { - // automatically apply the options configured for the program - const compilerOptions = services.program.getCompilerOptions(); - if (analyzeOptions.lib == null) { - analyzeOptions.lib = getLib(compilerOptions); - log('Resolved libs from program: %o', analyzeOptions.lib); - } - if (analyzeOptions.jsxPragma === undefined && - compilerOptions.jsxFactory != null) { - // in case the user has specified something like "preact.h" - const factory = compilerOptions.jsxFactory.split('.')[0].trim(); - analyzeOptions.jsxPragma = factory; - log('Resolved jsxPragma from program: %s', analyzeOptions.jsxPragma); - } - if (analyzeOptions.jsxFragmentName === undefined && - compilerOptions.jsxFragmentFactory != null) { - // in case the user has specified something like "preact.Fragment" - const fragFactory = compilerOptions.jsxFragmentFactory - .split('.')[0] - .trim(); - analyzeOptions.jsxFragmentName = fragFactory; - log('Resolved jsxFragmentName from program: %s', analyzeOptions.jsxFragmentName); - } - } - const scopeManager = (0, scope_manager_1.analyze)(ast, analyzeOptions); - // if not defined - override from the parserOptions - services.emitDecoratorMetadata ??= - parserOptions.emitDecoratorMetadata === true; - services.experimentalDecorators ??= - parserOptions.experimentalDecorators === true; - return { ast, services, scopeManager, visitorKeys: visitor_keys_1.visitorKeys }; -} -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/dist/parser.js.map b/graphql/node_modules/@typescript-eslint/parser/dist/parser.js.map deleted file mode 100644 index 080c8865..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/dist/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AA6LS,sBAAK;AAAE,wCAAc;AAzL9B,oEAA2D;AAQ3D,4EAAgF;AAEhF,kEAA8D;AAC9D,kDAA0B;AAE1B,2CAA0C;AAE1C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,iCAAiC,CAAC,CAAC;AAerD,SAAS,eAAe,CACtB,KAA0B,EAC1B,QAAQ,GAAG,KAAK;IAEhB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,SAAS,MAAM,CAAC,eAAmC;IACjD,IAAI,eAAe,CAAC,GAAG,EAAE,CAAC;QACxB,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACpD,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;YACzD,IAAI,KAAK,EAAE,CAAC;gBACV,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAQ,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,IAAI,yBAAY,CAAC,GAAG,CAAC;IAC1D,gIAAgI;IAChI,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,yBAAY,CAAC,MAAM;YACtB,OAAO,C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AC,SAAS,KAAK,SAAS;YACtC,eAAe,CAAC,UAAU,IAAI,IAAI,EAClC,CAAC;YACD,2DAA2D;YAC3D,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAChE,cAAc,CAAC,SAAS,GAAG,OAAO,CAAC;YACnC,GAAG,CAAC,qCAAqC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACvE,CAAC;QACD,IACE,cAAc,CAAC,eAAe,KAAK,SAAS;YAC5C,eAAe,CAAC,kBAAkB,IAAI,IAAI,EAC1C,CAAC;YACD,kEAAkE;YAClE,MAAM,WAAW,GAAG,eAAe,CAAC,kBAAkB;iBACnD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;iBACb,IAAI,EAAE,CAAC;YACV,cAAc,CAAC,eAAe,GAAG,WAAW,CAAC;YAC7C,GAAG,CACD,2CAA2C,EAC3C,cAAc,CAAC,eAAe,CAC/B,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,uBAAO,EAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAElD,mDAAmD;IACnD,QAAQ,CAAC,qBAAqB;QAC5B,aAAa,CAAC,qBAAqB,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,sBAAsB;QAC7B,aAAa,CAAC,sBAAsB,KAAK,IAAI,CAAC;IAEhD,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAX,0BAAW,EAAE,CAAC;AACtD,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/parser/package.json b/graphql/node_modules/@typescript-eslint/parser/package.json deleted file mode 100644 index b7bf12aa..00000000 --- a/graphql/node_modules/@typescript-eslint/parser/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "@typescript-eslint/parser", - "version": "8.1.0", - "description": "An ESLint custom parser which leverages TypeScript ESTree", - "files": [ - "dist", - "_ts4.3", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/parser" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io/packages/parser", - "license": "BSD-2-Clause", - "keywords": [ - "ast", - "ecmascript", - "javascript", - "typescript", - "parser", - "syntax", - "eslint" - ], - "scripts": { - "build": "tsc -b tsconfig.build.json", - "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "lint": "npx nx lint", - "test": "jest --coverage", - "typecheck": "tsc --noEmit" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" - }, - "dependencies": { - "@typescript-eslint/scope-manager": "8.1.0", - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/typescript-estree": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0", - "debug": "^4.3.4" - }, - "devDependencies": { - "@jest/types": "29.6.3", - "@types/glob": "*", - "downlevel-dts": "*", - "glob": "*", - "jest": "29.7.0", - "prettier": "^3.2.5", - "rimraf": "*", - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "typesVersions": { - "<4.7": { - "*": [ - "_ts4.3/*" - ] - } - } -} diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/LICENSE b/graphql/node_modules/@typescript-eslint/scope-manager/LICENSE deleted file mode 100644 index a1164108..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/README.md b/graphql/node_modules/@typescript-eslint/scope-manager/README.md deleted file mode 100644 index b730e9d8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# `@typescript-eslint/scope-manager` - -[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) -[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager) - -👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts deleted file mode 100644 index 679109f2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare function createIdGenerator(): () => number; -declare function resetIds(): void; -export { createIdGenerator, resetIds }; -//# sourceMappingURL=ID.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map deleted file mode 100644 index 2c9c0fd0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js deleted file mode 100644 index de2f32af..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createIdGenerator = createIdGenerator; -exports.resetIds = resetIds; -const ID_CACHE = new Map(); -let NEXT_KEY = 0; -function createIdGenerator() { - const key = (NEXT_KEY += 1); - ID_CACHE.set(key, 0); - return () => { - const current = ID_CACHE.get(key) ?? 0; - const next = current + 1; - ID_CACHE.set(key, next); - return next; - }; -} -function resetIds() { - ID_CACHE.clear(); -} -//# sourceMappingURL=ID.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map deleted file mode 100644 index e880ddeb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;AAmBS,8CAAiB;AAAE,4BAAQ;AAnBpC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;QAClB,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts deleted file mode 100644 index 9a2c0f58..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { SourceType, TSESTree } from '@typescript-eslint/types'; -import type { Scope } from './scope'; -import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope'; -import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope'; -import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope'; -import type { Variable } from './variable'; -interface ScopeManagerOptions { - globalReturn?: boolean; - impliedStrict?: boolean; - sourceType?: SourceType; -} -/** - * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface - */ -declare class ScopeManager { - #private; - currentScope: Scope | null; - readonly declaredVariables: WeakMap; - /** - * The root scope - */ - globalScope: GlobalScope | null; - readonly nodeToScope: WeakMap; - /** - * All scopes - * @public - */ - readonly scopes: Scope[]; - get variables(): Variable[]; - constructor(options: ScopeManagerOptions); - isGlobalReturn(): boolean; - isModule(): boolean; - isImpliedStrict(): boolean; - isStrictModeSupported(): boolean; - isES6(): boolean; - /** - * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. - * If the node does not define any variable, this returns an empty array. - * @param node An AST node to get their variables. - */ - getDeclaredVariables(node: TSESTree.Node): Variable[]; - /** - * Get the scope of a given AST node. The gotten scope's `block` property is the node. - * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. - * - * @param node An AST node to get their scope. - * @param inner If the node has multiple scopes, this returns the outermost scope normally. - * If `inner` is `true` then this returns the innermost scope. - */ - acquire(node: TSESTree.Node, inner?: boolean): Scope | null; - protected nestScope(scope: T): T; - nestBlockScope(node: BlockScope['block']): BlockScope; - nestCatchScope(node: CatchScope['block']): CatchScope; - nestClassScope(node: ClassScope['block']): ClassScope; - nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope; - nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope; - nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope; - nestForScope(node: ForScope['block']): ForScope; - nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope; - nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope; - nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope; - nestGlobalScope(node: GlobalScope['block']): GlobalScope; - nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope; - nestModuleScope(node: ModuleScope['block']): ModuleScope; - nestSwitchScope(node: SwitchScope['block']): SwitchScope; - nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope; - nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope; - nestTypeScope(node: TypeScope['block']): TypeScope; - nestWithScope(node: WithScope['block']): WithScope; -} -export { ScopeManager }; -//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map deleted file mode 100644 index fec699cc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGrE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,WAAW,EAEX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU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,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAClC,oBAAoB;IAOhB,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ;IAK/C,+BAA+B,CACpC,IAAI,EAAE,2BAA2B,CAAC,OAAO,CAAC,GACzC,2BAA2B;IAOvB,iBAAiB,CACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,kBAAkB,EAAE,OAAO,GAC1B,aAAa;IAOT,qBAAqB,CAC1B,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAC/B,iBAAiB;IAKb,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAIxD,mBAAmB,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe;IAKpE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa;IAK9D,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAKlD,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;CAI1D;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js deleted file mode 100644 index 6599514f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeManager = void 0; -const assert_1 = require("./assert"); -const scope_1 = require("./scope"); -const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope"); -const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope"); -/** - * @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface - */ -class ScopeManager { - currentScope; - declaredVariables; - /** - * The root scope - */ - globalScope; - nodeToScope; - #options; - /** - * All scopes - * @public - */ - scopes; - get variables() { - const variables = new Set(); - function recurse(scope) { - scope.variables.forEach(v => variables.add(v)); - scope.childScopes.forEach(recurse); - } - this.scopes.forEach(recurse); - return Array.from(variables).sort((a, b) => a.$id - b.$id); - } - constructor(options) { - this.scopes = []; - this.globalScope = null; - this.nodeToScope = new WeakMap(); - this.currentScope = null; - this.#options = options; - this.declaredVariables = new WeakMap(); - } - isGlobalReturn() { - return this.#options.globalReturn === true; - } - isModule() { - return this.#options.sourceType === 'module'; - } - isImpliedStrict() { - return this.#options.impliedStrict === true; - } - isStrictModeSupported() { - return true; - } - isES6() { - return true; - } - /** - * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. - * If the node does not define any variable, this returns an empty array. - * @param node An AST node to get their variables. - */ - getDeclaredVariables(node) { - return this.declaredVariables.get(node) ?? []; - } - /** - * Get the scope of a given AST node. The gotten scope's `block` property is the node. - * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. - * - * @param node An AST node to get their scope. - * @param inner If the node has multiple scopes, this returns the outermost scope normally. - * If `inner` is `true` then this returns the innermost scope. - */ - acquire(node, inner = false) { - function predicate(testScope) { - if (testScope.type === scope_1.ScopeType.function && - testScope.functionExpressionScope) { - return false; - } - return true; - } - const scopes = this.nodeToScope.get(node); - if (!scopes || scopes.length === 0) { - return null; - } - // Heuristic selection from all scopes. - // If you would like to get all scopes, please use ScopeManager#acquireAll. - if (scopes.length === 1) { - return scopes[0]; - } - if (inner) { - for (let i = scopes.length - 1; i >= 0; --i) { - const scope = scopes[i]; - if (predicate(scope)) { - return scope; - } - } - return null; - } - return scopes.find(predicate) ?? null; - } - nestScope(scope) { - if (scope instanceof scope_1.GlobalScope) { - (0, assert_1.assert)(this.currentScope == null); - this.globalScope = scope; - } - this.currentScope = scope; - return scope; - } - nestBlockScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node)); - } - nestCatchScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node)); - } - nestClassScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node)); - } - nestClassFieldInitializerScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node)); - } - nestClassStaticBlockScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node)); - } - nestConditionalTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node)); - } - nestForScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ForScope(this, this.currentScope, node)); - } - nestFunctionExpressionNameScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node)); - } - nestFunctionScope(node, isMethodDefinition) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition)); - } - nestFunctionTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node)); - } - nestGlobalScope(node) { - return this.nestScope(new scope_1.GlobalScope(this, node)); - } - nestMappedTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node)); - } - nestModuleScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node)); - } - nestSwitchScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node)); - } - nestTSEnumScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node)); - } - nestTSModuleScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node)); - } - nestTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node)); - } - nestWithScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.WithScope(this, this.currentScope, node)); - } -} -exports.ScopeManager = ScopeManager; -//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map deleted file mode 100644 index d487e219..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":";;;AAEA,qCAAkC;AAElC,mCAkBiB;AACjB,mFAAgF;AAChF,yEAAsE;AAStE;;GAEG;AACH,MAAM,YAAY;IACT,YAAY,CAAe;IAClB,iBAAiB,CAAqC;IACtE;;OAEG;IACI,WAAW,CAAqB;IACvB,WAAW,CAAkC;IACpD,QAAQ,CAAsB;IACvC;;;OAGG;IACa,MAAM,CAAU;IAEhC,IAAW,SAAS;QAClB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAY,CAAC;QACtC,SAAS,OAAO,CAAC,KAAY;YAC3B,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/C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_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts deleted file mode 100644 index 61226934..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types'; -import type { ReferencerOptions } from './referencer'; -import { ScopeManager } from './ScopeManager'; -interface AnalyzeOptions { - /** - * Known visitor keys. - */ - childVisitorKeys?: ReferencerOptions['childVisitorKeys']; - /** - * Whether the whole script is executed under node.js environment. - * When enabled, the scope manager adds a function scope immediately following the global scope. - * Defaults to `false`. - */ - globalReturn?: boolean; - /** - * Implied strict mode. - * Defaults to `false`. - */ - impliedStrict?: boolean; - /** - * The identifier that's used for JSX Element creation (after transpilation). - * This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement"). - * Defaults to `"React"`. - */ - jsxPragma?: string | null; - /** - * The identifier that's used for JSX fragment elements (after transpilation). - * If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment). - * This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment"). - * Defaults to `null`. - */ - jsxFragmentName?: string | null; - /** - * The lib used by the project. - * This automatically defines a type variable for any types provided by the configured TS libs. - * Defaults to ['esnext']. - * - * https://www.typescriptlang.org/tsconfig#lib - */ - lib?: Lib[]; - /** - * The source type of the script. - */ - sourceType?: SourceType; - /** - * @deprecated This option never did what it was intended for and will be removed in a future major release. - */ - emitDecoratorMetadata?: boolean; -} -/** - * Takes an AST and returns the analyzed scopes. - */ -declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager; -export { analyze, AnalyzeOptions }; -//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map deleted file mode 100644 index 840b0665..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAG1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA2Bd;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js deleted file mode 100644 index e55daa06..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.analyze = analyze; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -const referencer_1 = require("./referencer"); -const ScopeManager_1 = require("./ScopeManager"); -const DEFAULT_OPTIONS = { - childVisitorKeys: visitor_keys_1.visitorKeys, - globalReturn: false, - impliedStrict: false, - jsxPragma: 'React', - jsxFragmentName: null, - lib: ['es2018'], - sourceType: 'script', - emitDecoratorMetadata: false, -}; -/** - * Takes an AST and returns the analyzed scopes. - */ -function analyze(tree, providedOptions) { - const options = { - childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys, - globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn, - impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict, - jsxPragma: providedOptions?.jsxPragma === undefined - ? DEFAULT_OPTIONS.jsxPragma - : providedOptions.jsxPragma, - jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName, - sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType, - lib: providedOptions?.lib ?? ['esnext'], - emitDecoratorMetadata: false, - }; - // ensure the option is lower cased - options.lib = options.lib.map(l => l.toLowerCase()); - const scopeManager = new ScopeManager_1.ScopeManager(options); - const referencer = new referencer_1.Referencer(options, scopeManager); - referencer.visit(tree); - return scopeManager; -} -//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map deleted file mode 100644 index 43a98dea..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;AAgHS,0BAAO;AA/GhB,kEAA8D;AAG9D,6CAA0C;AAC1C,iDAA8C;AA6D9C,MAAM,eAAe,GAA6B;IAChD,gBAAgB,EAAE,0BAAW;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ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts deleted file mode 100644 index bd40c9e2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function assert(value: unknown, message?: string): asserts value; -export { assert }; -//# sourceMappingURL=assert.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map deleted file mode 100644 index 72f278dd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js deleted file mode 100644 index a6dd9463..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assert = assert; -// the base assert module doesn't use ts assertion syntax -function assert(value, message) { - if (value == null) { - throw new Error(message); - } -} -//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map deleted file mode 100644 index 6ea63863..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;AAOS,wBAAM;AAPf,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts deleted file mode 100644 index a90f8b67..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class CatchClauseDefinition extends DefinitionBase { - constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { CatchClauseDefinition }; -//# sourceMappingURL=CatchClauseDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map deleted file mode 100644 index 368d7928..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;gBACa,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js deleted file mode 100644 index 38f823aa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CatchClauseDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.CatchClause, name, node, null); - } - isTypeDefinition = false; - isVariableDefinition = true; -} -exports.CatchClauseDefinition = CatchClauseDefinition; -//# sourceMappingURL=CatchClauseDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map deleted file mode 100644 index a333913b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACC,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAEe,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts deleted file mode 100644 index 0bbea30e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ClassNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { ClassNameDefinition }; -//# sourceMappingURL=ClassNameDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map deleted file mode 100644 index 6e78e38b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;IAIxE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js deleted file mode 100644 index 4109fd0c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ClassNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.ClassName, name, node, null); - } - isTypeDefinition = true; - isVariableDefinition = true; -} -exports.ClassNameDefinition = ClassNameDefinition; -//# sourceMappingURL=ClassNameDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map deleted file mode 100644 index 573da3b2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACC,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts deleted file mode 100644 index fa6c9fdd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { CatchClauseDefinition } from './CatchClauseDefinition'; -import type { ClassNameDefinition } from './ClassNameDefinition'; -import type { FunctionNameDefinition } from './FunctionNameDefinition'; -import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition'; -import type { ImportBindingDefinition } from './ImportBindingDefinition'; -import type { ParameterDefinition } from './ParameterDefinition'; -import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition'; -import type { TSEnumNameDefinition } from './TSEnumNameDefinition'; -import type { TSModuleNameDefinition } from './TSModuleNameDefinition'; -import type { TypeDefinition } from './TypeDefinition'; -import type { VariableDefinition } from './VariableDefinition'; -type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition; -export { Definition }; -//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map deleted file mode 100644 index 543ca27a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js deleted file mode 100644 index 0d4aab95..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map deleted file mode 100644 index be4a7fb3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts deleted file mode 100644 index 962ffed4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { DefinitionType } from './DefinitionType'; -declare abstract class DefinitionBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - readonly type: Type; - /** - * The `Identifier` node of this definition - * @public - */ - readonly name: Name; - /** - * The enclosing node of the name. - * @public - */ - readonly node: Node; - /** - * the enclosing statement node of the identifier. - * @public - */ - readonly parent: Parent; - constructor(type: Type, name: Name, node: Node, parent: Parent); - /** - * `true` if the variable is valid in a type context, false otherwise - */ - abstract readonly isTypeDefinition: boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - */ - abstract readonly isVariableDefinition: boolean; -} -export { DefinitionBase }; -//# sourceMappingURL=DefinitionBase.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map deleted file mode 100644 index c259eb9d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,uBAAe,cAAc,CAC3B,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js deleted file mode 100644 index 41c74847..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefinitionBase = void 0; -const ID_1 = require("../ID"); -const generator = (0, ID_1.createIdGenerator)(); -class DefinitionBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - $id = generator(); - type; - /** - * The `Identifier` node of this definition - * @public - */ - name; - /** - * The enclosing node of the name. - * @public - */ - node; - /** - * the enclosing statement node of the identifier. - * @public - */ - parent; - constructor(type, name, node, parent) { - this.type = type; - this.name = name; - this.node = node; - this.parent = parent; - } -} -exports.DefinitionBase = DefinitionBase; -//# sourceMappingURL=DefinitionBase.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map deleted file mode 100644 index c415f011..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAEA,8BAA0C;AAG1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAM3B;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1B,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,IAAI,CAAO;IAE3B;;;OAGG;IACa,MAAM,CAAS;IAE/B,YAAY,IAAU,EAAE,IAAU,EAAE,IAAU,EAAE,MAAc;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts deleted file mode 100644 index d86220d8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -declare enum DefinitionType { - CatchClause = "CatchClause", - ClassName = "ClassName", - FunctionName = "FunctionName", - ImplicitGlobalVariable = "ImplicitGlobalVariable", - ImportBinding = "ImportBinding", - Parameter = "Parameter", - TSEnumName = "TSEnumName", - TSEnumMember = "TSEnumMemberName", - TSModuleName = "TSModuleName", - Type = "Type", - Variable = "Variable" -} -export { DefinitionType }; -//# sourceMappingURL=DefinitionType.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map deleted file mode 100644 index c3614a6b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js deleted file mode 100644 index 07cc9afa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefinitionType = void 0; -var DefinitionType; -(function (DefinitionType) { - DefinitionType["CatchClause"] = "CatchClause"; - DefinitionType["ClassName"] = "ClassName"; - DefinitionType["FunctionName"] = "FunctionName"; - DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable"; - DefinitionType["ImportBinding"] = "ImportBinding"; - DefinitionType["Parameter"] = "Parameter"; - DefinitionType["TSEnumName"] = "TSEnumName"; - DefinitionType["TSEnumMember"] = "TSEnumMemberName"; - DefinitionType["TSModuleName"] = "TSModuleName"; - DefinitionType["Type"] = "Type"; - DefinitionType["Variable"] = "Variable"; -})(DefinitionType || (exports.DefinitionType = DefinitionType = {})); -//# sourceMappingURL=DefinitionType.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map deleted file mode 100644 index 042fd302..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts deleted file mode 100644 index 9cd99201..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class FunctionNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { FunctionNameDefinition }; -//# sourceMappingURL=FunctionNameDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map deleted file mode 100644 index ffe1b2fb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js deleted file mode 100644 index e5b6b14b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.FunctionName, name, node, null); - } - isTypeDefinition = false; - isVariableDefinition = true; -} -exports.FunctionNameDefinition = FunctionNameDefinition; -//# sourceMappingURL=FunctionNameDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map deleted file mode 100644 index b5b7afa9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACC,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAEe,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts deleted file mode 100644 index c1b190b8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ImplicitGlobalVariableDefinition extends DefinitionBase { - constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { ImplicitGlobalVariableDefinition }; -//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map deleted file mode 100644 index 151b3647..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;gBAEG,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;IAKhD,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js deleted file mode 100644 index 65876cac..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImplicitGlobalVariableDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null); - } - isTypeDefinition = false; - isVariableDefinition = true; -} -exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition; -//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map deleted file mode 100644 index eba0a9f9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACC,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAEe,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,4EAAgC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts deleted file mode 100644 index 49510d6d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ImportBindingDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration); - constructor(name: TSESTree.Identifier, node: Exclude, decl: TSESTree.ImportDeclaration); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { ImportBindingDefinition }; -//# sourceMappingURL=ImportBindingDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map deleted file mode 100644 index fa3e5881..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;IAUlC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js deleted file mode 100644 index 80010dfa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImportBindingDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node, decl) { - super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl); - } - isTypeDefinition = true; - isVariableDefinition = true; -} -exports.ImportBindingDefinition = ImportBindingDefinition; -//# sourceMappingURL=ImportBindingDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map deleted file mode 100644 index b479bbf8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IAcC,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,0DAAuB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts deleted file mode 100644 index dd132e95..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ParameterDefinition extends DefinitionBase { - /** - * Whether the parameter definition is a part of a rest parameter. - */ - readonly rest: boolean; - constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { ParameterDefinition }; -//# sourceMappingURL=ParameterDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map deleted file mode 100644 index 587d8a96..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAE5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;IAMf,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js deleted file mode 100644 index 254c721e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ParameterDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ParameterDefinition extends DefinitionBase_1.DefinitionBase { - /** - * Whether the parameter definition is a part of a rest parameter. - */ - rest; - constructor(name, node, rest) { - super(DefinitionType_1.DefinitionType.Parameter, name, node, null); - this.rest = rest; - } - isTypeDefinition = false; - isVariableDefinition = true; -} -exports.ParameterDefinition = ParameterDefinition; -//# sourceMappingURL=ParameterDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map deleted file mode 100644 index b7ba8f43..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParameterDefinition.js","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAcjC;IACC;;OAEG;IACa,IAAI,CAAU;IAC9B,YACE,IAA0B,EAC1B,IAAiC,EACjC,IAAa;QAEb,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEe,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts deleted file mode 100644 index b721e748..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSEnumMemberDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSEnumMemberDefinition }; -//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map deleted file mode 100644 index 0f7e7484..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAKtC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js deleted file mode 100644 index 856aa2cd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumMemberDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null); - } - isTypeDefinition = true; - isVariableDefinition = true; -} -exports.TSEnumMemberDefinition = TSEnumMemberDefinition; -//# sourceMappingURL=TSEnumMemberDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map deleted file mode 100644 index 5f5d423c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumMemberDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACC,YACE,IAAkD,EAClD,IAAoC;QAEpC,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts deleted file mode 100644 index 229ec5d9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSEnumNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSEnumNameDefinition }; -//# sourceMappingURL=TSEnumNameDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map deleted file mode 100644 index af93b730..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,oBAAqB,SAAQ,cAAc,CAC/C,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;IAIzE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js deleted file mode 100644 index 8fc6fe22..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null); - } - isTypeDefinition = true; - isVariableDefinition = true; -} -exports.TSEnumNameDefinition = TSEnumNameDefinition; -//# sourceMappingURL=TSEnumNameDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map deleted file mode 100644 index 5a786f64..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,oBAAqB,SAAQ,+BAKlC;IACC,YAAY,IAAyB,EAAE,IAAkC;QACvE,KAAK,CAAC,+BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts deleted file mode 100644 index 59556e02..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSModuleNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSModuleNameDefinition }; -//# sourceMappingURL=TSModuleNameDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map deleted file mode 100644 index 6f7a624f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js deleted file mode 100644 index 3cb1e6e5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSModuleNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null); - } - isTypeDefinition = true; - isVariableDefinition = true; -} -exports.TSModuleNameDefinition = TSModuleNameDefinition; -//# sourceMappingURL=TSModuleNameDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map deleted file mode 100644 index 79c01ea1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACC,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts deleted file mode 100644 index fda4d738..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TypeDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TypeDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = false; -} -export { TypeDefinition }; -//# sourceMappingURL=TypeDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map deleted file mode 100644 index 048e4a2a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,cAAe,SAAQ,cAAc,CACzC,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IAInE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;CAC9C;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js deleted file mode 100644 index b25f899c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TypeDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.Type, name, node, null); - } - isTypeDefinition = true; - isVariableDefinition = false; -} -exports.TypeDefinition = TypeDefinition; -//# sourceMappingURL=TypeDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map deleted file mode 100644 index a8e6c391..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeDefinition.js","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,cAAe,SAAQ,+BAQ5B;IACC,YAAY,IAAyB,EAAE,IAA4B;QACjE,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAEe,gBAAgB,GAAG,IAAI,CAAC;IACxB,oBAAoB,GAAG,KAAK,CAAC;CAC9C;AAEQ,wCAAc"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts deleted file mode 100644 index 3540edb2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class VariableDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { VariableDefinition }; -//# sourceMappingURL=VariableDefinition.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map deleted file mode 100644 index 207365ae..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,cAAc,CAC7C,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;IAKpC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js deleted file mode 100644 index 71c73415..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VariableDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class VariableDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node, decl) { - super(DefinitionType_1.DefinitionType.Variable, name, node, decl); - } - isTypeDefinition = false; - isVariableDefinition = true; -} -exports.VariableDefinition = VariableDefinition; -//# sourceMappingURL=VariableDefinition.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map deleted file mode 100644 index 4cb1d154..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableDefinition.js","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,kBAAmB,SAAQ,+BAKhC;IACC,YACE,IAAyB,EACzB,IAAgC,EAChC,IAAkC;QAElC,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnD,CAAC;IAEe,gBAAgB,GAAG,KAAK,CAAC;IACzB,oBAAoB,GAAG,IAAI,CAAC;CAC7C;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts deleted file mode 100644 index 2be95a12..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './CatchClauseDefinition'; -export * from './ClassNameDefinition'; -export * from './Definition'; -export * from './DefinitionType'; -export * from './FunctionNameDefinition'; -export * from './ImplicitGlobalVariableDefinition'; -export * from './ImportBindingDefinition'; -export * from './ParameterDefinition'; -export * from './TSEnumMemberDefinition'; -export * from './TSEnumNameDefinition'; -export * from './TSModuleNameDefinition'; -export * from './TypeDefinition'; -export * from './VariableDefinition'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map deleted file mode 100644 index dfd43be8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js deleted file mode 100644 index 71d1559d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./CatchClauseDefinition"), exports); -__exportStar(require("./ClassNameDefinition"), exports); -__exportStar(require("./Definition"), exports); -__exportStar(require("./DefinitionType"), exports); -__exportStar(require("./FunctionNameDefinition"), exports); -__exportStar(require("./ImplicitGlobalVariableDefinition"), exports); -__exportStar(require("./ImportBindingDefinition"), exports); -__exportStar(require("./ParameterDefinition"), exports); -__exportStar(require("./TSEnumMemberDefinition"), exports); -__exportStar(require("./TSEnumNameDefinition"), exports); -__exportStar(require("./TSModuleNameDefinition"), exports); -__exportStar(require("./TypeDefinition"), exports); -__exportStar(require("./VariableDefinition"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map deleted file mode 100644 index 136726cd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts deleted file mode 100644 index 23ee2461..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { analyze, AnalyzeOptions } from './analyze'; -export * from './definition'; -export { Reference } from './referencer/Reference'; -export { Visitor } from './referencer/Visitor'; -export { PatternVisitor, PatternVisitorCallback, PatternVisitorOptions, } from './referencer/PatternVisitor'; -export * from './scope'; -export { ScopeManager } from './ScopeManager'; -export * from './variable'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map deleted file mode 100644 index 17ddbf57..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js deleted file mode 100644 index df3bdf75..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeManager = exports.PatternVisitor = exports.Visitor = exports.Reference = exports.analyze = void 0; -var analyze_1 = require("./analyze"); -Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } }); -__exportStar(require("./definition"), exports); -var Reference_1 = require("./referencer/Reference"); -Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } }); -var Visitor_1 = require("./referencer/Visitor"); -Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } }); -var PatternVisitor_1 = require("./referencer/PatternVisitor"); -Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } }); -__exportStar(require("./scope"), exports); -var ScopeManager_1 = require("./ScopeManager"); -Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } }); -__exportStar(require("./variable"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js.map deleted file mode 100644 index f09b9d0c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoD;AAA3C,kGAAA,OAAO,OAAA;AAChB,+CAA6B;AAC7B,oDAAmD;AAA1C,sGAAA,SAAS,OAAA;AAClB,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,8DAIqC;AAHnC,gHAAA,cAAc,OAAA;AAIhB,0CAAwB;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA2B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts deleted file mode 100644 index 6b2fddaa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare const TYPE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: true; - isValueVariable: false; -}>; -export declare const VALUE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: false; - isValueVariable: true; -}>; -export declare const TYPE_VALUE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: true; - isValueVariable: true; -}>; -//# sourceMappingURL=base-config.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map deleted file mode 100644 index 632981a2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js deleted file mode 100644 index e0526301..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0; -exports.TYPE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, -}); -exports.VALUE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: false, - isValueVariable: true, -}); -exports.TYPE_VALUE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, -}); -//# sourceMappingURL=base-config.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map deleted file mode 100644 index b99400cf..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base-config.js","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAEd,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;CACvB,CAAC,CAAC;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts deleted file mode 100644 index 288f0524..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const decorators: Record; -//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map deleted file mode 100644 index 90821a50..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,UAAU,EAalB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js deleted file mode 100644 index cdb07cae..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorators = void 0; -const base_config_1 = require("./base-config"); -exports.decorators = { - ClassMemberDecoratorContext: base_config_1.TYPE, - DecoratorContext: base_config_1.TYPE, - DecoratorMetadataObject: base_config_1.TYPE, - DecoratorMetadata: base_config_1.TYPE, - ClassDecoratorContext: base_config_1.TYPE, - ClassMethodDecoratorContext: base_config_1.TYPE, - ClassGetterDecoratorContext: base_config_1.TYPE, - ClassSetterDecoratorContext: base_config_1.TYPE, - ClassAccessorDecoratorContext: base_config_1.TYPE, - ClassAccessorDecoratorTarget: base_config_1.TYPE, - ClassAccessorDecoratorResult: base_config_1.TYPE, - ClassFieldDecoratorContext: base_config_1.TYPE, -}; -//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map deleted file mode 100644 index 4696949c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,UAAU,GAAG;IACxB,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,uBAAuB,EAAE,kBAAI;IAC7B,iBAAiB,EAAE,kBAAI;IACvB,qBAAqB,EAAE,kBAAI;IAC3B,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,6BAA6B,EAAE,kBAAI;IACnC,4BAA4B,EAAE,kBAAI;IAClC,4BAA4B,EAAE,kBAAI;IAClC,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts deleted file mode 100644 index a7363bd8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const decorators_legacy: Record; -//# sourceMappingURL=decorators.legacy.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map deleted file mode 100644 index d44cbce7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.legacy.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js deleted file mode 100644 index 617c030b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorators_legacy = void 0; -const base_config_1 = require("./base-config"); -exports.decorators_legacy = { - ClassDecorator: base_config_1.TYPE, - PropertyDecorator: base_config_1.TYPE, - MethodDecorator: base_config_1.TYPE, - ParameterDecorator: base_config_1.TYPE, -}; -//# sourceMappingURL=decorators.legacy.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map deleted file mode 100644 index 0663e674..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.legacy.js","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,kBAAI;IACvB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts deleted file mode 100644 index cfd2ea00..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const dom_asynciterable: Record; -//# sourceMappingURL=dom.asynciterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map deleted file mode 100644 index cd5cb907..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAGzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js deleted file mode 100644 index 7e3c30a0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dom_asynciterable = void 0; -const base_config_1 = require("./base-config"); -exports.dom_asynciterable = { - FileSystemDirectoryHandle: base_config_1.TYPE, - ReadableStream: base_config_1.TYPE, -}; -//# sourceMappingURL=dom.asynciterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map deleted file mode 100644 index 32850b6f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.asynciterable.js","sourceRoot":"","sources":["../../src/lib/dom.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,yBAAyB,EAAE,kBAAI;IAC/B,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts deleted file mode 100644 index f76da8eb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const dom: Record; -//# sourceMappingURL=dom.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map deleted file mode 100644 index 84fa9739..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,GAAG,EA85CX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts deleted file mode 100644 index 94f9807e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const dom_iterable: Record; -//# sourceMappingURL=dom.iterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map deleted file mode 100644 index f4e066d9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAqEpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js deleted file mode 100644 index a20e5e4f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dom_iterable = void 0; -const base_config_1 = require("./base-config"); -exports.dom_iterable = { - AbortSignal: base_config_1.TYPE, - AudioParam: base_config_1.TYPE, - AudioParamMap: base_config_1.TYPE, - BaseAudioContext: base_config_1.TYPE, - CSSKeyframesRule: base_config_1.TYPE, - CSSNumericArray: base_config_1.TYPE, - CSSRuleList: base_config_1.TYPE, - CSSStyleDeclaration: base_config_1.TYPE, - CSSTransformValue: base_config_1.TYPE, - CSSUnparsedValue: base_config_1.TYPE, - Cache: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - CustomStateSet: base_config_1.TYPE, - DOMRectList: base_config_1.TYPE, - DOMStringList: base_config_1.TYPE, - DOMTokenList: base_config_1.TYPE, - DataTransferItemList: base_config_1.TYPE, - EventCounts: base_config_1.TYPE, - FileList: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE, - FormData: base_config_1.TYPE, - HTMLAllCollection: base_config_1.TYPE, - HTMLCollectionBase: base_config_1.TYPE, - HTMLCollectionOf: base_config_1.TYPE, - HTMLFormElement: base_config_1.TYPE, - HTMLSelectElement: base_config_1.TYPE, - Headers: base_config_1.TYPE, - Highlight: base_config_1.TYPE, - HighlightRegistry: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE, - IDBObjectStore: base_config_1.TYPE, - MIDIInputMap: base_config_1.TYPE, - MIDIOutput: base_config_1.TYPE, - MIDIOutputMap: base_config_1.TYPE, - MediaKeyStatusMap: base_config_1.TYPE, - MediaList: base_config_1.TYPE, - MessageEvent: base_config_1.TYPE, - MimeTypeArray: base_config_1.TYPE, - NamedNodeMap: base_config_1.TYPE, - Navigator: base_config_1.TYPE, - NodeList: base_config_1.TYPE, - NodeListOf: base_config_1.TYPE, - Plugin: base_config_1.TYPE, - PluginArray: base_config_1.TYPE, - RTCRtpTransceiver: base_config_1.TYPE, - RTCStatsReport: base_config_1.TYPE, - SVGLengthList: base_config_1.TYPE, - SVGNumberList: base_config_1.TYPE, - SVGPointList: base_config_1.TYPE, - SVGStringList: base_config_1.TYPE, - SVGTransformList: base_config_1.TYPE, - SourceBufferList: base_config_1.TYPE, - SpeechRecognitionResult: base_config_1.TYPE, - SpeechRecognitionResultList: base_config_1.TYPE, - StylePropertyMapReadOnly: base_config_1.TYPE, - StyleSheetList: base_config_1.TYPE, - SubtleCrypto: base_config_1.TYPE, - TextTrackCueList: base_config_1.TYPE, - TextTrackList: base_config_1.TYPE, - TouchList: base_config_1.TYPE, - URLSearchParams: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, -}; -//# sourceMappingURL=dom.iterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map deleted file mode 100644 index 3d0cd606..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.iterable.js","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,WAAW,EAAE,kBAAI;IACjB,mBAAmB,EAAE,kBAAI;IACzB,iBAAiB,EAAE,kBAAI;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c,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js deleted file mode 100644 index 40021370..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +++ /dev/null @@ -1,1448 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dom = void 0; -const base_config_1 = require("./base-config"); -exports.dom = { - AddEventListenerOptions: base_config_1.TYPE, - AesCbcParams: base_config_1.TYPE, - AesCtrParams: base_config_1.TYPE, - AesDerivedKeyParams: base_config_1.TYPE, - AesGcmParams: base_config_1.TYPE, - AesKeyAlgorithm: base_config_1.TYPE, - AesKeyGenParams: base_config_1.TYPE, - Algorithm: base_config_1.TYPE, - AnalyserOptions: base_config_1.TYPE, - AnimationEventInit: base_config_1.TYPE, - AnimationPlaybackEventInit: base_config_1.TYPE, - AssignedNodesOptions: base_config_1.TYPE, - AudioBufferOptions: base_config_1.TYPE, - AudioBufferSourceOptions: base_config_1.TYPE, - AudioConfiguration: base_config_1.TYPE, - AudioContextOptions: base_config_1.TYPE, - AudioNodeOptions: base_config_1.TYPE, - AudioProcessingEventInit: base_config_1.TYPE, - AudioTimestamp: base_config_1.TYPE, - AudioWorkletNodeOptions: base_config_1.TYPE, - AuthenticationExtensionsClientInputs: base_config_1.TYPE, - AuthenticationExtensionsClientOutputs: base_config_1.TYPE, - AuthenticatorSelectionCriteria: base_config_1.TYPE, - AvcEncoderConfig: base_config_1.TYPE, - BiquadFilterOptions: base_config_1.TYPE, - BlobEventInit: base_config_1.TYPE, - BlobPropertyBag: base_config_1.TYPE, - CSSMatrixComponentOptions: base_config_1.TYPE, - CSSNumericType: base_config_1.TYPE, - CSSStyleSheetInit: base_config_1.TYPE, - CacheQueryOptions: base_config_1.TYPE, - CanvasRenderingContext2DSettings: base_config_1.TYPE, - ChannelMergerOptions: base_config_1.TYPE, - ChannelSplitterOptions: base_config_1.TYPE, - CheckVisibilityOptions: base_config_1.TYPE, - ClientQueryOptions: base_config_1.TYPE, - ClipboardEventInit: base_config_1.TYPE, - ClipboardItemOptions: base_config_1.TYPE, - CloseEventInit: base_config_1.TYPE, - CompositionEventInit: base_config_1.TYPE, - ComputedEffectTiming: base_config_1.TYPE, - ComputedKeyframe: base_config_1.TYPE, - ConstantSourceOptions: base_config_1.TYPE, - ConstrainBooleanParameters: base_config_1.TYPE, - ConstrainDOMStringParameters: base_config_1.TYPE, - ConstrainDoubleRange: base_config_1.TYPE, - ConstrainULongRange: base_config_1.TYPE, - ContentVisibilityAutoStateChangeEventInit: base_config_1.TYPE, - ConvolverOptions: base_config_1.TYPE, - CredentialCreationOptions: base_config_1.TYPE, - CredentialPropertiesOutput: base_config_1.TYPE, - CredentialRequestOptions: base_config_1.TYPE, - CryptoKeyPair: base_config_1.TYPE, - CustomEventInit: base_config_1.TYPE, - DOMMatrix2DInit: base_config_1.TYPE, - DOMMatrixInit: base_config_1.TYPE, - DOMPointInit: base_config_1.TYPE, - DOMQuadInit: base_config_1.TYPE, - DOMRectInit: base_config_1.TYPE, - DelayOptions: base_config_1.TYPE, - DeviceMotionEventAccelerationInit: base_config_1.TYPE, - DeviceMotionEventInit: base_config_1.TYPE, - DeviceMotionEventRotationRateInit: base_config_1.TYPE, - DeviceOrientationEventInit: base_config_1.TYPE, - DisplayMediaStreamOptions: base_config_1.TYPE, - DocumentTimelineOptions: base_config_1.TYPE, - DoubleRange: base_config_1.TYPE, - DragEventInit: base_config_1.TYPE, - DynamicsCompressorOptions: base_config_1.TYPE, - EcKeyAlgorithm: base_config_1.TYPE, - EcKeyGenParams: base_config_1.TYPE, - EcKeyImportParams: base_config_1.TYPE, - EcdhKeyDeriveParams: base_config_1.TYPE, - EcdsaParams: base_config_1.TYPE, - EffectTiming: base_config_1.TYPE, - ElementCreationOptions: base_config_1.TYPE, - ElementDefinitionOptions: base_config_1.TYPE, - EncodedVideoChunkInit: base_config_1.TYPE, - EncodedVideoChunkMetadata: base_config_1.TYPE, - ErrorEventInit: base_config_1.TYPE, - EventInit: base_config_1.TYPE, - EventListenerOptions: base_config_1.TYPE, - EventModifierInit: base_config_1.TYPE, - EventSourceInit: base_config_1.TYPE, - FilePropertyBag: base_config_1.TYPE, - FileSystemCreateWritableOptions: base_config_1.TYPE, - FileSystemFlags: base_config_1.TYPE, - FileSystemGetDirectoryOptions: base_config_1.TYPE, - FileSystemGetFileOptions: base_config_1.TYPE, - FileSystemRemoveOptions: base_config_1.TYPE, - FocusEventInit: base_config_1.TYPE, - FocusOptions: base_config_1.TYPE, - FontFaceDescriptors: base_config_1.TYPE, - FontFaceSetLoadEventInit: base_config_1.TYPE, - FormDataEventInit: base_config_1.TYPE, - FullscreenOptions: base_config_1.TYPE, - GainOptions: base_config_1.TYPE, - GamepadEffectParameters: base_config_1.TYPE, - GamepadEventInit: base_config_1.TYPE, - GetAnimationsOptions: base_config_1.TYPE, - GetNotificationOptions: base_config_1.TYPE, - GetRootNodeOptions: base_config_1.TYPE, - HashChangeEventInit: base_config_1.TYPE, - HkdfParams: base_config_1.TYPE, - HmacImportParams: base_config_1.TYPE, - HmacKeyAlgorithm: base_config_1.TYPE, - HmacKeyGenParams: base_config_1.TYPE, - IDBDatabaseInfo: base_config_1.TYPE, - IDBIndexParameters: base_config_1.TYPE, - IDBObjectStoreParameters: base_config_1.TYPE, - IDBTransactionOptions: base_config_1.TYPE, - IDBVersionChangeEventInit: base_config_1.TYPE, - IIRFilterOptions: base_config_1.TYPE, - IdleRequestOptions: base_config_1.TYPE, - ImageBitmapOptions: base_config_1.TYPE, - ImageBitmapRenderingContextSettings: base_config_1.TYPE, - ImageDataSettings: base_config_1.TYPE, - ImageEncodeOptions: base_config_1.TYPE, - ImportMeta: base_config_1.TYPE, - InputEventInit: base_config_1.TYPE, - IntersectionObserverEntryInit: base_config_1.TYPE, - IntersectionObserverInit: base_config_1.TYPE, - JsonWebKey: base_config_1.TYPE, - KeyAlgorithm: base_config_1.TYPE, - KeyboardEventInit: base_config_1.TYPE, - Keyframe: base_config_1.TYPE, - KeyframeAnimationOptions: base_config_1.TYPE, - KeyframeEffectOptions: base_config_1.TYPE, - LockInfo: base_config_1.TYPE, - LockManagerSnapshot: base_config_1.TYPE, - LockOptions: base_config_1.TYPE, - MIDIConnectionEventInit: base_config_1.TYPE, - MIDIMessageEventInit: base_config_1.TYPE, - MIDIOptions: base_config_1.TYPE, - MediaCapabilitiesDecodingInfo: base_config_1.TYPE, - MediaCapabilitiesEncodingInfo: base_config_1.TYPE, - MediaCapabilitiesInfo: base_config_1.TYPE, - MediaConfiguration: base_config_1.TYPE, - MediaDecodingConfiguration: base_config_1.TYPE, - MediaElementAudioSourceOptions: base_config_1.TYPE, - MediaEncodingConfiguration: base_config_1.TYPE, - MediaEncryptedEventInit: base_config_1.TYPE, - MediaImage: base_config_1.TYPE, - MediaKeyMessageEventInit: base_config_1.TYPE, - MediaKeySystemConfiguration: base_config_1.TYPE, - MediaKeySystemMediaCapability: base_config_1.TYPE, - MediaMetadataInit: base_config_1.TYPE, - MediaPositionState: base_config_1.TYPE, - MediaQueryListEventInit: base_config_1.TYPE, - MediaRecorderOptions: base_config_1.TYPE, - MediaSessionActionDetails: base_config_1.TYPE, - MediaStreamAudioSourceOptions: base_config_1.TYPE, - MediaStreamConstraints: base_config_1.TYPE, - MediaStreamTrackEventInit: base_config_1.TYPE, - MediaTrackCapabilities: base_config_1.TYPE, - MediaTrackConstraintSet: base_config_1.TYPE, - MediaTrackConstraints: base_config_1.TYPE, - MediaTrackSettings: base_config_1.TYPE, - MediaTrackSupportedConstraints: base_config_1.TYPE, - MessageEventInit: base_config_1.TYPE, - MouseEventInit: base_config_1.TYPE, - MultiCacheQueryOptions: base_config_1.TYPE, - MutationObserverInit: base_config_1.TYPE, - NavigationPreloadState: base_config_1.TYPE, - NotificationOptions: base_config_1.TYPE, - OfflineAudioCompletionEventInit: base_config_1.TYPE, - OfflineAudioContextOptions: base_config_1.TYPE, - OptionalEffectTiming: base_config_1.TYPE, - OscillatorOptions: base_config_1.TYPE, - PageTransitionEventInit: base_config_1.TYPE, - PannerOptions: base_config_1.TYPE, - PaymentCurrencyAmount: base_config_1.TYPE, - PaymentDetailsBase: base_config_1.TYPE, - PaymentDetailsInit: base_config_1.TYPE, - PaymentDetailsModifier: base_config_1.TYPE, - PaymentDetailsUpdate: base_config_1.TYPE, - PaymentItem: base_config_1.TYPE, - PaymentMethodChangeEventInit: base_config_1.TYPE, - PaymentMethodData: base_config_1.TYPE, - PaymentRequestUpdateEventInit: base_config_1.TYPE, - PaymentValidationErrors: base_config_1.TYPE, - Pbkdf2Params: base_config_1.TYPE, - PerformanceMarkOptions: base_config_1.TYPE, - PerformanceMeasureOptions: base_config_1.TYPE, - PerformanceObserverInit: base_config_1.TYPE, - PeriodicWaveConstraints: base_config_1.TYPE, - PeriodicWaveOptions: base_config_1.TYPE, - PermissionDescriptor: base_config_1.TYPE, - PictureInPictureEventInit: base_config_1.TYPE, - PlaneLayout: base_config_1.TYPE, - PointerEventInit: base_config_1.TYPE, - PopStateEventInit: base_config_1.TYPE, - PositionOptions: base_config_1.TYPE, - ProgressEventInit: base_config_1.TYPE, - PromiseRejectionEventInit: base_config_1.TYPE, - PropertyDefinition: base_config_1.TYPE, - PropertyIndexedKeyframes: base_config_1.TYPE, - PublicKeyCredentialCreationOptions: base_config_1.TYPE, - PublicKeyCredentialDescriptor: base_config_1.TYPE, - PublicKeyCredentialEntity: base_config_1.TYPE, - PublicKeyCredentialParameters: base_config_1.TYPE, - PublicKeyCredentialRequestOptions: base_config_1.TYPE, - PublicKeyCredentialRpEntity: base_config_1.TYPE, - PublicKeyCredentialUserEntity: base_config_1.TYPE, - PushSubscriptionJSON: base_config_1.TYPE, - PushSubscriptionOptionsInit: base_config_1.TYPE, - QueuingStrategy: base_config_1.TYPE, - QueuingStrategyInit: base_config_1.TYPE, - RTCAnswerOptions: base_config_1.TYPE, - RTCCertificateExpiration: base_config_1.TYPE, - RTCConfiguration: base_config_1.TYPE, - RTCDTMFToneChangeEventInit: base_config_1.TYPE, - RTCDataChannelEventInit: base_config_1.TYPE, - RTCDataChannelInit: base_config_1.TYPE, - RTCDtlsFingerprint: base_config_1.TYPE, - RTCEncodedAudioFrameMetadata: base_config_1.TYPE, - RTCEncodedVideoFrameMetadata: base_config_1.TYPE, - RTCErrorEventInit: base_config_1.TYPE, - RTCErrorInit: base_config_1.TYPE, - RTCIceCandidateInit: base_config_1.TYPE, - RTCIceCandidatePair: base_config_1.TYPE, - RTCIceCandidatePairStats: base_config_1.TYPE, - RTCIceServer: base_config_1.TYPE, - RTCInboundRtpStreamStats: base_config_1.TYPE, - RTCLocalSessionDescriptionInit: base_config_1.TYPE, - RTCOfferAnswerOptions: base_config_1.TYPE, - RTCOfferOptions: base_config_1.TYPE, - RTCOutboundRtpStreamStats: base_config_1.TYPE, - RTCPeerConnectionIceErrorEventInit: base_config_1.TYPE, - RTCPeerConnectionIceEventInit: base_config_1.TYPE, - RTCReceivedRtpStreamStats: base_config_1.TYPE, - RTCRtcpParameters: base_config_1.TYPE, - RTCRtpCapabilities: base_config_1.TYPE, - RTCRtpCodec: base_config_1.TYPE, - RTCRtpCodecCapability: base_config_1.TYPE, - RTCRtpCodecParameters: base_config_1.TYPE, - RTCRtpCodingParameters: base_config_1.TYPE, - RTCRtpContributingSource: base_config_1.TYPE, - RTCRtpEncodingParameters: base_config_1.TYPE, - RTCRtpHeaderExtensionCapability: base_config_1.TYPE, - RTCRtpHeaderExtensionParameters: base_config_1.TYPE, - RTCRtpParameters: base_config_1.TYPE, - RTCRtpReceiveParameters: base_config_1.TYPE, - RTCRtpSendParameters: base_config_1.TYPE, - RTCRtpStreamStats: base_config_1.TYPE, - RTCRtpSynchronizationSource: base_config_1.TYPE, - RTCRtpTransceiverInit: base_config_1.TYPE, - RTCSentRtpStreamStats: base_config_1.TYPE, - RTCSessionDescriptionInit: base_config_1.TYPE, - RTCSetParameterOptions: base_config_1.TYPE, - RTCStats: base_config_1.TYPE, - RTCTrackEventInit: base_config_1.TYPE, - RTCTransportStats: base_config_1.TYPE, - ReadableStreamGetReaderOptions: base_config_1.TYPE, - ReadableStreamIteratorOptions: base_config_1.TYPE, - ReadableStreamReadDoneResult: base_config_1.TYPE, - ReadableStreamReadValueResult: base_config_1.TYPE, - ReadableWritablePair: base_config_1.TYPE, - RegistrationOptions: base_config_1.TYPE, - ReportingObserverOptions: base_config_1.TYPE, - RequestInit: base_config_1.TYPE, - ResizeObserverOptions: base_config_1.TYPE, - ResponseInit: base_config_1.TYPE, - RsaHashedImportParams: base_config_1.TYPE, - RsaHashedKeyAlgorithm: base_config_1.TYPE, - RsaHashedKeyGenParams: base_config_1.TYPE, - RsaKeyAlgorithm: base_config_1.TYPE, - RsaKeyGenParams: base_config_1.TYPE, - RsaOaepParams: base_config_1.TYPE, - RsaOtherPrimesInfo: base_config_1.TYPE, - RsaPssParams: base_config_1.TYPE, - SVGBoundingBoxOptions: base_config_1.TYPE, - ScrollIntoViewOptions: base_config_1.TYPE, - ScrollOptions: base_config_1.TYPE, - ScrollToOptions: base_config_1.TYPE, - SecurityPolicyViolationEventInit: base_config_1.TYPE, - ShadowRootInit: base_config_1.TYPE, - ShareData: base_config_1.TYPE, - SpeechSynthesisErrorEventInit: base_config_1.TYPE, - SpeechSynthesisEventInit: base_config_1.TYPE, - StaticRangeInit: base_config_1.TYPE, - StereoPannerOptions: base_config_1.TYPE, - StorageEstimate: base_config_1.TYPE, - StorageEventInit: base_config_1.TYPE, - StreamPipeOptions: base_config_1.TYPE, - StructuredSerializeOptions: base_config_1.TYPE, - SubmitEventInit: base_config_1.TYPE, - TextDecodeOptions: base_config_1.TYPE, - TextDecoderOptions: base_config_1.TYPE, - TextEncoderEncodeIntoResult: base_config_1.TYPE, - ToggleEventInit: base_config_1.TYPE, - TouchEventInit: base_config_1.TYPE, - TouchInit: base_config_1.TYPE, - TrackEventInit: base_config_1.TYPE, - Transformer: base_config_1.TYPE, - TransitionEventInit: base_config_1.TYPE, - UIEventInit: base_config_1.TYPE, - ULongRange: base_config_1.TYPE, - UnderlyingByteSource: base_config_1.TYPE, - UnderlyingDefaultSource: base_config_1.TYPE, - UnderlyingSink: base_config_1.TYPE, - UnderlyingSource: base_config_1.TYPE, - ValidityStateFlags: base_config_1.TYPE, - VideoColorSpaceInit: base_config_1.TYPE, - VideoConfiguration: base_config_1.TYPE, - VideoDecoderConfig: base_config_1.TYPE, - VideoDecoderInit: base_config_1.TYPE, - VideoDecoderSupport: base_config_1.TYPE, - VideoEncoderConfig: base_config_1.TYPE, - VideoEncoderEncodeOptions: base_config_1.TYPE, - VideoEncoderInit: base_config_1.TYPE, - VideoEncoderSupport: base_config_1.TYPE, - VideoFrameBufferInit: base_config_1.TYPE, - VideoFrameCallbackMetadata: base_config_1.TYPE, - VideoFrameCopyToOptions: base_config_1.TYPE, - VideoFrameInit: base_config_1.TYPE, - WaveShaperOptions: base_config_1.TYPE, - WebGLContextAttributes: base_config_1.TYPE, - WebGLContextEventInit: base_config_1.TYPE, - WebTransportCloseInfo: base_config_1.TYPE, - WebTransportErrorOptions: base_config_1.TYPE, - WebTransportHash: base_config_1.TYPE, - WebTransportOptions: base_config_1.TYPE, - WebTransportSendStreamOptions: base_config_1.TYPE, - WheelEventInit: base_config_1.TYPE, - WindowPostMessageOptions: base_config_1.TYPE, - WorkerOptions: base_config_1.TYPE, - WorkletOptions: base_config_1.TYPE, - WriteParams: base_config_1.TYPE, - NodeFilter: base_config_1.TYPE_VALUE, - XPathNSResolver: base_config_1.TYPE, - ANGLE_instanced_arrays: base_config_1.TYPE, - ARIAMixin: base_config_1.TYPE, - AbortController: base_config_1.TYPE_VALUE, - AbortSignalEventMap: base_config_1.TYPE, - AbortSignal: base_config_1.TYPE_VALUE, - AbstractRange: base_config_1.TYPE_VALUE, - AbstractWorkerEventMap: base_config_1.TYPE, - AbstractWorker: base_config_1.TYPE, - AnalyserNode: base_config_1.TYPE_VALUE, - Animatable: base_config_1.TYPE, - AnimationEventMap: base_config_1.TYPE, - Animation: base_config_1.TYPE_VALUE, - AnimationEffect: base_config_1.TYPE_VALUE, - AnimationEvent: base_config_1.TYPE_VALUE, - AnimationFrameProvider: base_config_1.TYPE, - AnimationPlaybackEvent: base_config_1.TYPE_VALUE, - AnimationTimeline: base_config_1.TYPE_VALUE, - Attr: base_config_1.TYPE_VALUE, - AudioBuffer: base_config_1.TYPE_VALUE, - AudioBufferSourceNode: base_config_1.TYPE_VALUE, - AudioContext: base_config_1.TYPE_VALUE, - AudioDestinationNode: base_config_1.TYPE_VALUE, - AudioListener: base_config_1.TYPE_VALUE, - AudioNode: base_config_1.TYPE_VALUE, - AudioParam: base_config_1.TYPE_VALUE, - AudioParamMap: base_config_1.TYPE_VALUE, - AudioProcessingEvent: base_config_1.TYPE_VALUE, - AudioScheduledSourceNodeEventMap: base_config_1.TYPE, - AudioScheduledSourceNode: base_config_1.TYPE_VALUE, - AudioWorklet: base_config_1.TYPE_VALUE, - AudioWorkletNodeEventMap: base_config_1.TYPE, - AudioWorkletNode: base_config_1.TYPE_VALUE, - AuthenticatorAssertionResponse: base_config_1.TYPE_VALUE, - AuthenticatorAttestationResponse: base_config_1.TYPE_VALUE, - AuthenticatorResponse: base_config_1.TYPE_VALUE, - BarProp: base_config_1.TYPE_VALUE, - BaseAudioContextEventMap: base_config_1.TYPE, - BaseAudioContext: base_config_1.TYPE_VALUE, - BeforeUnloadEvent: base_config_1.TYPE_VALUE, - BiquadFilterNode: base_config_1.TYPE_VALUE, - Blob: base_config_1.TYPE_VALUE, - BlobEvent: base_config_1.TYPE_VALUE, - Body: base_config_1.TYPE, - BroadcastChannelEventMap: base_config_1.TYPE, - BroadcastChannel: base_config_1.TYPE_VALUE, - ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, - CDATASection: base_config_1.TYPE_VALUE, - CSSAnimation: base_config_1.TYPE_VALUE, - CSSConditionRule: base_config_1.TYPE_VALUE, - CSSContainerRule: base_config_1.TYPE_VALUE, - CSSCounterStyleRule: base_config_1.TYPE_VALUE, - CSSFontFaceRule: base_config_1.TYPE_VALUE, - CSSFontFeatureValuesRule: base_config_1.TYPE_VALUE, - CSSFontPaletteValuesRule: base_config_1.TYPE_VALUE, - CSSGroupingRule: base_config_1.TYPE_VALUE, - CSSImageValue: base_config_1.TYPE_VALUE, - CSSImportRule: base_config_1.TYPE_VALUE, - CSSKeyframeRule: base_config_1.TYPE_VALUE, - CSSKeyframesRule: base_config_1.TYPE_VALUE, - CSSKeywordValue: base_config_1.TYPE_VALUE, - CSSLayerBlockRule: base_config_1.TYPE_VALUE, - CSSLayerStatementRule: base_config_1.TYPE_VALUE, - CSSMathClamp: base_config_1.TYPE_VALUE, - CSSMathInvert: base_config_1.TYPE_VALUE, - CSSMathMax: base_config_1.TYPE_VALUE, - CSSMathMin: base_config_1.TYPE_VALUE, - CSSMathNegate: base_config_1.TYPE_VALUE, - CSSMathProduct: base_config_1.TYPE_VALUE, - CSSMathSum: base_config_1.TYPE_VALUE, - CSSMathValue: base_config_1.TYPE_VALUE, - CSSMatrixComponent: base_config_1.TYPE_VALUE, - CSSMediaRule: base_config_1.TYPE_VALUE, - CSSNamespaceRule: base_config_1.TYPE_VALUE, - CSSNumericArray: base_config_1.TYPE_VALUE, - CSSNumericValue: base_config_1.TYPE_VALUE, - CSSPageRule: base_config_1.TYPE_VALUE, - CSSPerspective: base_config_1.TYPE_VALUE, - CSSPropertyRule: base_config_1.TYPE_VALUE, - CSSRotate: base_config_1.TYPE_VALUE, - CSSRule: base_config_1.TYPE_VALUE, - CSSRuleList: base_config_1.TYPE_VALUE, - CSSScale: base_config_1.TYPE_VALUE, - CSSScopeRule: base_config_1.TYPE_VALUE, - CSSSkew: base_config_1.TYPE_VALUE, - CSSSkewX: base_config_1.TYPE_VALUE, - CSSSkewY: base_config_1.TYPE_VALUE, - CSSStartingStyleRule: base_config_1.TYPE_VALUE, - CSSStyleDeclaration: base_config_1.TYPE_VALUE, - CSSStyleRule: base_config_1.TYPE_VALUE, - CSSStyleSheet: base_config_1.TYPE_VALUE, - CSSStyleValue: base_config_1.TYPE_VALUE, - CSSSupportsRule: base_config_1.TYPE_VALUE, - CSSTransformComponent: base_config_1.TYPE_VALUE, - CSSTransformValue: base_config_1.TYPE_VALUE, - CSSTransition: base_config_1.TYPE_VALUE, - CSSTranslate: base_config_1.TYPE_VALUE, - CSSUnitValue: base_config_1.TYPE_VALUE, - CSSUnparsedValue: base_config_1.TYPE_VALUE, - CSSVariableReferenceValue: base_config_1.TYPE_VALUE, - Cache: base_config_1.TYPE_VALUE, - CacheStorage: base_config_1.TYPE_VALUE, - CanvasCaptureMediaStreamTrack: base_config_1.TYPE_VALUE, - CanvasCompositing: base_config_1.TYPE, - CanvasDrawImage: base_config_1.TYPE, - CanvasDrawPath: base_config_1.TYPE, - CanvasFillStrokeStyles: base_config_1.TYPE, - CanvasFilters: base_config_1.TYPE, - CanvasGradient: base_config_1.TYPE_VALUE, - CanvasImageData: base_config_1.TYPE, - CanvasImageSmoothing: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - CanvasPattern: base_config_1.TYPE_VALUE, - CanvasRect: base_config_1.TYPE, - CanvasRenderingContext2D: base_config_1.TYPE_VALUE, - CanvasShadowStyles: base_config_1.TYPE, - CanvasState: base_config_1.TYPE, - CanvasText: base_config_1.TYPE, - CanvasTextDrawingStyles: base_config_1.TYPE, - CanvasTransform: base_config_1.TYPE, - CanvasUserInterface: base_config_1.TYPE, - ChannelMergerNode: base_config_1.TYPE_VALUE, - ChannelSplitterNode: base_config_1.TYPE_VALUE, - CharacterData: base_config_1.TYPE_VALUE, - ChildNode: base_config_1.TYPE, - ClientRect: base_config_1.TYPE, - Clipboard: base_config_1.TYPE_VALUE, - ClipboardEvent: base_config_1.TYPE_VALUE, - ClipboardItem: base_config_1.TYPE_VALUE, - CloseEvent: base_config_1.TYPE_VALUE, - Comment: base_config_1.TYPE_VALUE, - CompositionEvent: base_config_1.TYPE_VALUE, - CompressionStream: base_config_1.TYPE_VALUE, - ConstantSourceNode: base_config_1.TYPE_VALUE, - ContentVisibilityAutoStateChangeEvent: base_config_1.TYPE_VALUE, - ConvolverNode: base_config_1.TYPE_VALUE, - CountQueuingStrategy: base_config_1.TYPE_VALUE, - Credential: base_config_1.TYPE_VALUE, - CredentialsContainer: base_config_1.TYPE_VALUE, - Crypto: base_config_1.TYPE_VALUE, - CryptoKey: base_config_1.TYPE_VALUE, - CustomElementRegistry: base_config_1.TYPE_VALUE, - CustomEvent: base_config_1.TYPE_VALUE, - CustomStateSet: base_config_1.TYPE_VALUE, - DOMException: base_config_1.TYPE_VALUE, - DOMImplementation: base_config_1.TYPE_VALUE, - DOMMatrix: base_config_1.TYPE_VALUE, - SVGMatrix: base_config_1.TYPE_VALUE, - WebKitCSSMatrix: base_config_1.TYPE_VALUE, - DOMMatrixReadOnly: base_config_1.TYPE_VALUE, - DOMParser: base_config_1.TYPE_VALUE, - DOMPoint: base_config_1.TYPE_VALUE, - SVGPoint: base_config_1.TYPE_VALUE, - DOMPointReadOnly: base_config_1.TYPE_VALUE, - DOMQuad: base_config_1.TYPE_VALUE, - DOMRect: base_config_1.TYPE_VALUE, - SVGRect: base_config_1.TYPE_VALUE, - DOMRectList: base_config_1.TYPE_VALUE, - DOMRectReadOnly: base_config_1.TYPE_VALUE, - DOMStringList: base_config_1.TYPE_VALUE, - DOMStringMap: base_config_1.TYPE_VALUE, - DOMTokenList: base_config_1.TYPE_VALUE, - DataTransfer: base_config_1.TYPE_VALUE, - DataTransferItem: base_config_1.TYPE_VALUE, - DataTransferItemList: base_config_1.TYPE_VALUE, - DecompressionStream: base_config_1.TYPE_VALUE, - DelayNode: base_config_1.TYPE_VALUE, - DeviceMotionEvent: base_config_1.TYPE_VALUE, - DeviceMotionEventAcceleration: base_config_1.TYPE, - DeviceMotionEventRotationRate: base_config_1.TYPE, - DeviceOrientationEvent: base_config_1.TYPE_VALUE, - DocumentEventMap: base_config_1.TYPE, - Document: base_config_1.TYPE_VALUE, - DocumentFragment: base_config_1.TYPE_VALUE, - DocumentOrShadowRoot: base_config_1.TYPE, - DocumentTimeline: base_config_1.TYPE_VALUE, - DocumentType: base_config_1.TYPE_VALUE, - DragEvent: base_config_1.TYPE_VALUE, - DynamicsCompressorNode: base_config_1.TYPE_VALUE, - EXT_blend_minmax: base_config_1.TYPE, - EXT_color_buffer_float: base_config_1.TYPE, - EXT_color_buffer_half_float: base_config_1.TYPE, - EXT_float_blend: base_config_1.TYPE, - EXT_frag_depth: base_config_1.TYPE, - EXT_sRGB: base_config_1.TYPE, - EXT_shader_texture_lod: base_config_1.TYPE, - EXT_texture_compression_bptc: base_config_1.TYPE, - EXT_texture_compression_rgtc: base_config_1.TYPE, - EXT_texture_filter_anisotropic: base_config_1.TYPE, - EXT_texture_norm16: base_config_1.TYPE, - ElementEventMap: base_config_1.TYPE, - Element: base_config_1.TYPE_VALUE, - ElementCSSInlineStyle: base_config_1.TYPE, - ElementContentEditable: base_config_1.TYPE, - ElementInternals: base_config_1.TYPE_VALUE, - EncodedVideoChunk: base_config_1.TYPE_VALUE, - ErrorEvent: base_config_1.TYPE_VALUE, - Event: base_config_1.TYPE_VALUE, - EventCounts: base_config_1.TYPE_VALUE, - EventListener: base_config_1.TYPE, - EventListenerObject: base_config_1.TYPE, - EventSourceEventMap: base_config_1.TYPE, - EventSource: base_config_1.TYPE_VALUE, - EventTarget: base_config_1.TYPE_VALUE, - External: base_config_1.TYPE_VALUE, - File: base_config_1.TYPE_VALUE, - FileList: base_config_1.TYPE_VALUE, - FileReaderEventMap: base_config_1.TYPE, - FileReader: base_config_1.TYPE_VALUE, - FileSystem: base_config_1.TYPE_VALUE, - FileSystemDirectoryEntry: base_config_1.TYPE_VALUE, - FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, - FileSystemDirectoryReader: base_config_1.TYPE_VALUE, - FileSystemEntry: base_config_1.TYPE_VALUE, - FileSystemFileEntry: base_config_1.TYPE_VALUE, - FileSystemFileHandle: base_config_1.TYPE_VALUE, - FileSystemHandle: base_config_1.TYPE_VALUE, - FileSystemWritableFileStream: base_config_1.TYPE_VALUE, - FocusEvent: base_config_1.TYPE_VALUE, - FontFace: base_config_1.TYPE_VALUE, - FontFaceSetEventMap: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE_VALUE, - FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, - FontFaceSource: base_config_1.TYPE, - FormData: base_config_1.TYPE_VALUE, - FormDataEvent: base_config_1.TYPE_VALUE, - GainNode: base_config_1.TYPE_VALUE, - Gamepad: base_config_1.TYPE_VALUE, - GamepadButton: base_config_1.TYPE_VALUE, - GamepadEvent: base_config_1.TYPE_VALUE, - GamepadHapticActuator: base_config_1.TYPE_VALUE, - GenericTransformStream: base_config_1.TYPE, - Geolocation: base_config_1.TYPE_VALUE, - GeolocationCoordinates: base_config_1.TYPE_VALUE, - GeolocationPosition: base_config_1.TYPE_VALUE, - GeolocationPositionError: base_config_1.TYPE_VALUE, - GlobalEventHandlersEventMap: base_config_1.TYPE, - GlobalEventHandlers: base_config_1.TYPE, - HTMLAllCollection: base_config_1.TYPE_VALUE, - HTMLAnchorElement: base_config_1.TYPE_VALUE, - HTMLAreaElement: base_config_1.TYPE_VALUE, - HTMLAudioElement: base_config_1.TYPE_VALUE, - HTMLBRElement: base_config_1.TYPE_VALUE, - HTMLBaseElement: base_config_1.TYPE_VALUE, - HTMLBodyElementEventMap: base_config_1.TYPE, - HTMLBodyElement: base_config_1.TYPE_VALUE, - HTMLButtonElement: base_config_1.TYPE_VALUE, - HTMLCanvasElement: base_config_1.TYPE_VALUE, - HTMLCollectionBase: base_config_1.TYPE, - HTMLCollection: base_config_1.TYPE_VALUE, - HTMLCollectionOf: base_config_1.TYPE, - HTMLDListElement: base_config_1.TYPE_VALUE, - HTMLDataElement: base_config_1.TYPE_VALUE, - HTMLDataListElement: base_config_1.TYPE_VALUE, - HTMLDetailsElement: base_config_1.TYPE_VALUE, - HTMLDialogElement: base_config_1.TYPE_VALUE, - HTMLDirectoryElement: base_config_1.TYPE_VALUE, - HTMLDivElement: base_config_1.TYPE_VALUE, - HTMLDocument: base_config_1.TYPE_VALUE, - HTMLElementEventMap: base_config_1.TYPE, - HTMLElement: base_config_1.TYPE_VALUE, - HTMLEmbedElement: base_config_1.TYPE_VALUE, - HTMLFieldSetElement: base_config_1.TYPE_VALUE, - HTMLFontElement: base_config_1.TYPE_VALUE, - HTMLFormControlsCollection: base_config_1.TYPE_VALUE, - HTMLFormElement: base_config_1.TYPE_VALUE, - HTMLFrameElement: base_config_1.TYPE_VALUE, - HTMLFrameSetElementEventMap: base_config_1.TYPE, - HTMLFrameSetElement: base_config_1.TYPE_VALUE, - HTMLHRElement: base_config_1.TYPE_VALUE, - HTMLHeadElement: base_config_1.TYPE_VALUE, - HTMLHeadingElement: base_config_1.TYPE_VALUE, - HTMLHtmlElement: base_config_1.TYPE_VALUE, - HTMLHyperlinkElementUtils: base_config_1.TYPE, - HTMLIFrameElement: base_config_1.TYPE_VALUE, - HTMLImageElement: base_config_1.TYPE_VALUE, - HTMLInputElement: base_config_1.TYPE_VALUE, - HTMLLIElement: base_config_1.TYPE_VALUE, - HTMLLabelElement: base_config_1.TYPE_VALUE, - HTMLLegendElement: base_config_1.TYPE_VALUE, - HTMLLinkElement: base_config_1.TYPE_VALUE, - HTMLMapElement: base_config_1.TYPE_VALUE, - HTMLMarqueeElement: base_config_1.TYPE_VALUE, - HTMLMediaElementEventMap: base_config_1.TYPE, - HTMLMediaElement: base_config_1.TYPE_VALUE, - HTMLMenuElement: base_config_1.TYPE_VALUE, - HTMLMetaElement: base_config_1.TYPE_VALUE, - HTMLMeterElement: base_config_1.TYPE_VALUE, - HTMLModElement: base_config_1.TYPE_VALUE, - HTMLOListElement: base_config_1.TYPE_VALUE, - HTMLObjectElement: base_config_1.TYPE_VALUE, - HTMLOptGroupElement: base_config_1.TYPE_VALUE, - HTMLOptionElement: base_config_1.TYPE_VALUE, - HTMLOptionsCollection: base_config_1.TYPE_VALUE, - HTMLOrSVGElement: base_config_1.TYPE, - HTMLOutputElement: base_config_1.TYPE_VALUE, - HTMLParagraphElement: base_config_1.TYPE_VALUE, - HTMLParamElement: base_config_1.TYPE_VALUE, - HTMLPictureElement: base_config_1.TYPE_VALUE, - HTMLPreElement: base_config_1.TYPE_VALUE, - HTMLProgressElement: base_config_1.TYPE_VALUE, - HTMLQuoteElement: base_config_1.TYPE_VALUE, - HTMLScriptElement: base_config_1.TYPE_VALUE, - HTMLSelectElement: base_config_1.TYPE_VALUE, - HTMLSlotElement: base_config_1.TYPE_VALUE, - HTMLSourceElement: base_config_1.TYPE_VALUE, - HTMLSpanElement: base_config_1.TYPE_VALUE, - HTMLStyleElement: base_config_1.TYPE_VALUE, - HTMLTableCaptionElement: base_config_1.TYPE_VALUE, - HTMLTableCellElement: base_config_1.TYPE_VALUE, - HTMLTableColElement: base_config_1.TYPE_VALUE, - HTMLTableDataCellElement: base_config_1.TYPE, - HTMLTableElement: base_config_1.TYPE_VALUE, - HTMLTableHeaderCellElement: base_config_1.TYPE, - HTMLTableRowElement: base_config_1.TYPE_VALUE, - HTMLTableSectionElement: base_config_1.TYPE_VALUE, - HTMLTemplateElement: base_config_1.TYPE_VALUE, - HTMLTextAreaElement: base_config_1.TYPE_VALUE, - HTMLTimeElement: base_config_1.TYPE_VALUE, - HTMLTitleElement: base_config_1.TYPE_VALUE, - HTMLTrackElement: base_config_1.TYPE_VALUE, - HTMLUListElement: base_config_1.TYPE_VALUE, - HTMLUnknownElement: base_config_1.TYPE_VALUE, - HTMLVideoElementEventMap: base_config_1.TYPE, - HTMLVideoElement: base_config_1.TYPE_VALUE, - HashChangeEvent: base_config_1.TYPE_VALUE, - Headers: base_config_1.TYPE_VALUE, - Highlight: base_config_1.TYPE_VALUE, - HighlightRegistry: base_config_1.TYPE_VALUE, - History: base_config_1.TYPE_VALUE, - IDBCursor: base_config_1.TYPE_VALUE, - IDBCursorWithValue: base_config_1.TYPE_VALUE, - IDBDatabaseEventMap: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE_VALUE, - IDBFactory: base_config_1.TYPE_VALUE, - IDBIndex: base_config_1.TYPE_VALUE, - IDBKeyRange: base_config_1.TYPE_VALUE, - IDBObjectStore: base_config_1.TYPE_VALUE, - IDBOpenDBRequestEventMap: base_config_1.TYPE, - IDBOpenDBRequest: base_config_1.TYPE_VALUE, - IDBRequestEventMap: base_config_1.TYPE, - IDBRequest: base_config_1.TYPE_VALUE, - IDBTransactionEventMap: base_config_1.TYPE, - IDBTransaction: base_config_1.TYPE_VALUE, - IDBVersionChangeEvent: base_config_1.TYPE_VALUE, - IIRFilterNode: base_config_1.TYPE_VALUE, - IdleDeadline: base_config_1.TYPE_VALUE, - ImageBitmap: base_config_1.TYPE_VALUE, - ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, - ImageData: base_config_1.TYPE_VALUE, - InnerHTML: base_config_1.TYPE, - InputDeviceInfo: base_config_1.TYPE_VALUE, - InputEvent: base_config_1.TYPE_VALUE, - IntersectionObserver: base_config_1.TYPE_VALUE, - IntersectionObserverEntry: base_config_1.TYPE_VALUE, - KHR_parallel_shader_compile: base_config_1.TYPE, - KeyboardEvent: base_config_1.TYPE_VALUE, - KeyframeEffect: base_config_1.TYPE_VALUE, - LargestContentfulPaint: base_config_1.TYPE_VALUE, - LinkStyle: base_config_1.TYPE, - Location: base_config_1.TYPE_VALUE, - Lock: base_config_1.TYPE_VALUE, - LockManager: base_config_1.TYPE_VALUE, - MIDIAccessEventMap: base_config_1.TYPE, - MIDIAccess: base_config_1.TYPE_VALUE, - MIDIConnectionEvent: base_config_1.TYPE_VALUE, - MIDIInputEventMap: base_config_1.TYPE, - MIDIInput: base_config_1.TYPE_VALUE, - MIDIInputMap: base_config_1.TYPE_VALUE, - MIDIMessageEvent: base_config_1.TYPE_VALUE, - MIDIOutput: base_config_1.TYPE_VALUE, - MIDIOutputMap: base_config_1.TYPE_VALUE, - MIDIPortEventMap: base_config_1.TYPE, - MIDIPort: base_config_1.TYPE_VALUE, - MathMLElementEventMap: base_config_1.TYPE, - MathMLElement: base_config_1.TYPE_VALUE, - MediaCapabilities: base_config_1.TYPE_VALUE, - MediaDeviceInfo: base_config_1.TYPE_VALUE, - MediaDevicesEventMap: base_config_1.TYPE, - MediaDevices: base_config_1.TYPE_VALUE, - MediaElementAudioSourceNode: base_config_1.TYPE_VALUE, - MediaEncryptedEvent: base_config_1.TYPE_VALUE, - MediaError: base_config_1.TYPE_VALUE, - MediaKeyMessageEvent: base_config_1.TYPE_VALUE, - MediaKeySessionEventMap: base_config_1.TYPE, - MediaKeySession: base_config_1.TYPE_VALUE, - MediaKeyStatusMap: base_config_1.TYPE_VALUE, - MediaKeySystemAccess: base_config_1.TYPE_VALUE, - MediaKeys: base_config_1.TYPE_VALUE, - MediaList: base_config_1.TYPE_VALUE, - MediaMetadata: base_config_1.TYPE_VALUE, - MediaQueryListEventMap: base_config_1.TYPE, - MediaQueryList: base_config_1.TYPE_VALUE, - MediaQueryListEvent: base_config_1.TYPE_VALUE, - MediaRecorderEventMap: base_config_1.TYPE, - MediaRecorder: base_config_1.TYPE_VALUE, - MediaSession: base_config_1.TYPE_VALUE, - MediaSourceEventMap: base_config_1.TYPE, - MediaSource: base_config_1.TYPE_VALUE, - MediaStreamEventMap: base_config_1.TYPE, - MediaStream: base_config_1.TYPE_VALUE, - MediaStreamAudioDestinationNode: base_config_1.TYPE_VALUE, - MediaStreamAudioSourceNode: base_config_1.TYPE_VALUE, - MediaStreamTrackEventMap: base_config_1.TYPE, - MediaStreamTrack: base_config_1.TYPE_VALUE, - MediaStreamTrackEvent: base_config_1.TYPE_VALUE, - MessageChannel: base_config_1.TYPE_VALUE, - MessageEvent: base_config_1.TYPE_VALUE, - MessagePortEventMap: base_config_1.TYPE, - MessagePort: base_config_1.TYPE_VALUE, - MimeType: base_config_1.TYPE_VALUE, - MimeTypeArray: base_config_1.TYPE_VALUE, - MouseEvent: base_config_1.TYPE_VALUE, - MutationEvent: base_config_1.TYPE_VALUE, - MutationObserver: base_config_1.TYPE_VALUE, - MutationRecord: base_config_1.TYPE_VALUE, - NamedNodeMap: base_config_1.TYPE_VALUE, - NavigationPreloadManager: base_config_1.TYPE_VALUE, - Navigator: base_config_1.TYPE_VALUE, - NavigatorAutomationInformation: base_config_1.TYPE, - NavigatorBadge: base_config_1.TYPE, - NavigatorConcurrentHardware: base_config_1.TYPE, - NavigatorContentUtils: base_config_1.TYPE, - NavigatorCookies: base_config_1.TYPE, - NavigatorID: base_config_1.TYPE, - NavigatorLanguage: base_config_1.TYPE, - NavigatorLocks: base_config_1.TYPE, - NavigatorOnLine: base_config_1.TYPE, - NavigatorPlugins: base_config_1.TYPE, - NavigatorStorage: base_config_1.TYPE, - Node: base_config_1.TYPE_VALUE, - NodeIterator: base_config_1.TYPE_VALUE, - NodeList: base_config_1.TYPE_VALUE, - NodeListOf: base_config_1.TYPE, - NonDocumentTypeChildNode: base_config_1.TYPE, - NonElementParentNode: base_config_1.TYPE, - NotificationEventMap: base_config_1.TYPE, - Notification: base_config_1.TYPE_VALUE, - OES_draw_buffers_indexed: base_config_1.TYPE, - OES_element_index_uint: base_config_1.TYPE, - OES_fbo_render_mipmap: base_config_1.TYPE, - OES_standard_derivatives: base_config_1.TYPE, - OES_texture_float: base_config_1.TYPE, - OES_texture_float_linear: base_config_1.TYPE, - OES_texture_half_float: base_config_1.TYPE, - OES_texture_half_float_linear: base_config_1.TYPE, - OES_vertex_array_object: base_config_1.TYPE, - OVR_multiview2: base_config_1.TYPE, - OfflineAudioCompletionEvent: base_config_1.TYPE_VALUE, - OfflineAudioContextEventMap: base_config_1.TYPE, - OfflineAudioContext: base_config_1.TYPE_VALUE, - OffscreenCanvasEventMap: base_config_1.TYPE, - OffscreenCanvas: base_config_1.TYPE_VALUE, - OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, - OscillatorNode: base_config_1.TYPE_VALUE, - OverconstrainedError: base_config_1.TYPE_VALUE, - PageTransitionEvent: base_config_1.TYPE_VALUE, - PannerNode: base_config_1.TYPE_VALUE, - ParentNode: base_config_1.TYPE, - Path2D: base_config_1.TYPE_VALUE, - PaymentMethodChangeEvent: base_config_1.TYPE_VALUE, - PaymentRequestEventMap: base_config_1.TYPE, - PaymentRequest: base_config_1.TYPE_VALUE, - PaymentRequestUpdateEvent: base_config_1.TYPE_VALUE, - PaymentResponse: base_config_1.TYPE_VALUE, - PerformanceEventMap: base_config_1.TYPE, - Performance: base_config_1.TYPE_VALUE, - PerformanceEntry: base_config_1.TYPE_VALUE, - PerformanceEventTiming: base_config_1.TYPE_VALUE, - PerformanceMark: base_config_1.TYPE_VALUE, - PerformanceMeasure: base_config_1.TYPE_VALUE, - PerformanceNavigation: base_config_1.TYPE_VALUE, - PerformanceNavigationTiming: base_config_1.TYPE_VALUE, - PerformanceObserver: base_config_1.TYPE_VALUE, - PerformanceObserverEntryList: base_config_1.TYPE_VALUE, - PerformancePaintTiming: base_config_1.TYPE_VALUE, - PerformanceResourceTiming: base_config_1.TYPE_VALUE, - PerformanceServerTiming: base_config_1.TYPE_VALUE, - PerformanceTiming: base_config_1.TYPE_VALUE, - PeriodicWave: base_config_1.TYPE_VALUE, - PermissionStatusEventMap: base_config_1.TYPE, - PermissionStatus: base_config_1.TYPE_VALUE, - Permissions: base_config_1.TYPE_VALUE, - PictureInPictureEvent: base_config_1.TYPE_VALUE, - PictureInPictureWindowEventMap: base_config_1.TYPE, - PictureInPictureWindow: base_config_1.TYPE_VALUE, - Plugin: base_config_1.TYPE_VALUE, - PluginArray: base_config_1.TYPE_VALUE, - PointerEvent: base_config_1.TYPE_VALUE, - PopStateEvent: base_config_1.TYPE_VALUE, - PopoverInvokerElement: base_config_1.TYPE, - ProcessingInstruction: base_config_1.TYPE_VALUE, - ProgressEvent: base_config_1.TYPE_VALUE, - PromiseRejectionEvent: base_config_1.TYPE_VALUE, - PublicKeyCredential: base_config_1.TYPE_VALUE, - PushManager: base_config_1.TYPE_VALUE, - PushSubscription: base_config_1.TYPE_VALUE, - PushSubscriptionOptions: base_config_1.TYPE_VALUE, - RTCCertificate: base_config_1.TYPE_VALUE, - RTCDTMFSenderEventMap: base_config_1.TYPE, - RTCDTMFSender: base_config_1.TYPE_VALUE, - RTCDTMFToneChangeEvent: base_config_1.TYPE_VALUE, - RTCDataChannelEventMap: base_config_1.TYPE, - RTCDataChannel: base_config_1.TYPE_VALUE, - RTCDataChannelEvent: base_config_1.TYPE_VALUE, - RTCDtlsTransportEventMap: base_config_1.TYPE, - RTCDtlsTransport: base_config_1.TYPE_VALUE, - RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, - RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, - RTCError: base_config_1.TYPE_VALUE, - RTCErrorEvent: base_config_1.TYPE_VALUE, - RTCIceCandidate: base_config_1.TYPE_VALUE, - RTCIceTransportEventMap: base_config_1.TYPE, - RTCIceTransport: base_config_1.TYPE_VALUE, - RTCPeerConnectionEventMap: base_config_1.TYPE, - RTCPeerConnection: base_config_1.TYPE_VALUE, - RTCPeerConnectionIceErrorEvent: base_config_1.TYPE_VALUE, - RTCPeerConnectionIceEvent: base_config_1.TYPE_VALUE, - RTCRtpReceiver: base_config_1.TYPE_VALUE, - RTCRtpScriptTransform: base_config_1.TYPE_VALUE, - RTCRtpSender: base_config_1.TYPE_VALUE, - RTCRtpTransceiver: base_config_1.TYPE_VALUE, - RTCSctpTransportEventMap: base_config_1.TYPE, - RTCSctpTransport: base_config_1.TYPE_VALUE, - RTCSessionDescription: base_config_1.TYPE_VALUE, - RTCStatsReport: base_config_1.TYPE_VALUE, - RTCTrackEvent: base_config_1.TYPE_VALUE, - RadioNodeList: base_config_1.TYPE_VALUE, - Range: base_config_1.TYPE_VALUE, - ReadableByteStreamController: base_config_1.TYPE_VALUE, - ReadableStream: base_config_1.TYPE_VALUE, - ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, - ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, - ReadableStreamDefaultController: base_config_1.TYPE_VALUE, - ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, - ReadableStreamGenericReader: base_config_1.TYPE, - RemotePlaybackEventMap: base_config_1.TYPE, - RemotePlayback: base_config_1.TYPE_VALUE, - Report: base_config_1.TYPE_VALUE, - ReportBody: base_config_1.TYPE_VALUE, - ReportingObserver: base_config_1.TYPE_VALUE, - Request: base_config_1.TYPE_VALUE, - ResizeObserver: base_config_1.TYPE_VALUE, - ResizeObserverEntry: base_config_1.TYPE_VALUE, - ResizeObserverSize: base_config_1.TYPE_VALUE, - Response: base_config_1.TYPE_VALUE, - SVGAElement: base_config_1.TYPE_VALUE, - SVGAngle: base_config_1.TYPE_VALUE, - SVGAnimateElement: base_config_1.TYPE_VALUE, - SVGAnimateMotionElement: base_config_1.TYPE_VALUE, - SVGAnimateTransformElement: base_config_1.TYPE_VALUE, - SVGAnimatedAngle: base_config_1.TYPE_VALUE, - SVGAnimatedBoolean: base_config_1.TYPE_VALUE, - SVGAnimatedEnumeration: base_config_1.TYPE_VALUE, - SVGAnimatedInteger: base_config_1.TYPE_VALUE, - SVGAnimatedLength: base_config_1.TYPE_VALUE, - SVGAnimatedLengthList: base_config_1.TYPE_VALUE, - SVGAnimatedNumber: base_config_1.TYPE_VALUE, - SVGAnimatedNumberList: base_config_1.TYPE_VALUE, - SVGAnimatedPoints: base_config_1.TYPE, - SVGAnimatedPreserveAspectRatio: base_config_1.TYPE_VALUE, - SVGAnimatedRect: base_config_1.TYPE_VALUE, - SVGAnimatedString: base_config_1.TYPE_VALUE, - SVGAnimatedTransformList: base_config_1.TYPE_VALUE, - SVGAnimationElement: base_config_1.TYPE_VALUE, - SVGCircleElement: base_config_1.TYPE_VALUE, - SVGClipPathElement: base_config_1.TYPE_VALUE, - SVGComponentTransferFunctionElement: base_config_1.TYPE_VALUE, - SVGDefsElement: base_config_1.TYPE_VALUE, - SVGDescElement: base_config_1.TYPE_VALUE, - SVGElementEventMap: base_config_1.TYPE, - SVGElement: base_config_1.TYPE_VALUE, - SVGEllipseElement: base_config_1.TYPE_VALUE, - SVGFEBlendElement: base_config_1.TYPE_VALUE, - SVGFEColorMatrixElement: base_config_1.TYPE_VALUE, - SVGFEComponentTransferElement: base_config_1.TYPE_VALUE, - SVGFECompositeElement: base_config_1.TYPE_VALUE, - SVGFEConvolveMatrixElement: base_config_1.TYPE_VALUE, - SVGFEDiffuseLightingElement: base_config_1.TYPE_VALUE, - SVGFEDisplacementMapElement: base_config_1.TYPE_VALUE, - SVGFEDistantLightElement: base_config_1.TYPE_VALUE, - SVGFEDropShadowElement: base_config_1.TYPE_VALUE, - SVGFEFloodElement: base_config_1.TYPE_VALUE, - SVGFEFuncAElement: base_config_1.TYPE_VALUE, - SVGFEFuncBElement: base_config_1.TYPE_VALUE, - SVGFEFuncGElement: base_config_1.TYPE_VALUE, - SVGFEFuncRElement: base_config_1.TYPE_VALUE, - SVGFEGaussianBlurElement: base_config_1.TYPE_VALUE, - SVGFEImageElement: base_config_1.TYPE_VALUE, - SVGFEMergeElement: base_config_1.TYPE_VALUE, - SVGFEMergeNodeElement: base_config_1.TYPE_VALUE, - SVGFEMorphologyElement: base_config_1.TYPE_VALUE, - SVGFEOffsetElement: base_config_1.TYPE_VALUE, - SVGFEPointLightElement: base_config_1.TYPE_VALUE, - SVGFESpecularLightingElement: base_config_1.TYPE_VALUE, - SVGFESpotLightElement: base_config_1.TYPE_VALUE, - SVGFETileElement: base_config_1.TYPE_VALUE, - SVGFETurbulenceElement: base_config_1.TYPE_VALUE, - SVGFilterElement: base_config_1.TYPE_VALUE, - SVGFilterPrimitiveStandardAttributes: base_config_1.TYPE, - SVGFitToViewBox: base_config_1.TYPE, - SVGForeignObjectElement: base_config_1.TYPE_VALUE, - SVGGElement: base_config_1.TYPE_VALUE, - SVGGeometryElement: base_config_1.TYPE_VALUE, - SVGGradientElement: base_config_1.TYPE_VALUE, - SVGGraphicsElement: base_config_1.TYPE_VALUE, - SVGImageElement: base_config_1.TYPE_VALUE, - SVGLength: base_config_1.TYPE_VALUE, - SVGLengthList: base_config_1.TYPE_VALUE, - SVGLineElement: base_config_1.TYPE_VALUE, - SVGLinearGradientElement: base_config_1.TYPE_VALUE, - SVGMPathElement: base_config_1.TYPE_VALUE, - SVGMarkerElement: base_config_1.TYPE_VALUE, - SVGMaskElement: base_config_1.TYPE_VALUE, - SVGMetadataElement: base_config_1.TYPE_VALUE, - SVGNumber: base_config_1.TYPE_VALUE, - SVGNumberList: base_config_1.TYPE_VALUE, - SVGPathElement: base_config_1.TYPE_VALUE, - SVGPatternElement: base_config_1.TYPE_VALUE, - SVGPointList: base_config_1.TYPE_VALUE, - SVGPolygonElement: base_config_1.TYPE_VALUE, - SVGPolylineElement: base_config_1.TYPE_VALUE, - SVGPreserveAspectRatio: base_config_1.TYPE_VALUE, - SVGRadialGradientElement: base_config_1.TYPE_VALUE, - SVGRectElement: base_config_1.TYPE_VALUE, - SVGSVGElementEventMap: base_config_1.TYPE, - SVGSVGElement: base_config_1.TYPE_VALUE, - SVGScriptElement: base_config_1.TYPE_VALUE, - SVGSetElement: base_config_1.TYPE_VALUE, - SVGStopElement: base_config_1.TYPE_VALUE, - SVGStringList: base_config_1.TYPE_VALUE, - SVGStyleElement: base_config_1.TYPE_VALUE, - SVGSwitchElement: base_config_1.TYPE_VALUE, - SVGSymbolElement: base_config_1.TYPE_VALUE, - SVGTSpanElement: base_config_1.TYPE_VALUE, - SVGTests: base_config_1.TYPE, - SVGTextContentElement: base_config_1.TYPE_VALUE, - SVGTextElement: base_config_1.TYPE_VALUE, - SVGTextPathElement: base_config_1.TYPE_VALUE, - SVGTextPositioningElement: base_config_1.TYPE_VALUE, - SVGTitleElement: base_config_1.TYPE_VALUE, - SVGTransform: base_config_1.TYPE_VALUE, - SVGTransformList: base_config_1.TYPE_VALUE, - SVGURIReference: base_config_1.TYPE, - SVGUnitTypes: base_config_1.TYPE_VALUE, - SVGUseElement: base_config_1.TYPE_VALUE, - SVGViewElement: base_config_1.TYPE_VALUE, - Screen: base_config_1.TYPE_VALUE, - ScreenOrientationEventMap: base_config_1.TYPE, - ScreenOrientation: base_config_1.TYPE_VALUE, - ScriptProcessorNodeEventMap: base_config_1.TYPE, - ScriptProcessorNode: base_config_1.TYPE_VALUE, - SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, - Selection: base_config_1.TYPE_VALUE, - ServiceWorkerEventMap: base_config_1.TYPE, - ServiceWorker: base_config_1.TYPE_VALUE, - ServiceWorkerContainerEventMap: base_config_1.TYPE, - ServiceWorkerContainer: base_config_1.TYPE_VALUE, - ServiceWorkerRegistrationEventMap: base_config_1.TYPE, - ServiceWorkerRegistration: base_config_1.TYPE_VALUE, - ShadowRootEventMap: base_config_1.TYPE, - ShadowRoot: base_config_1.TYPE_VALUE, - SharedWorker: base_config_1.TYPE_VALUE, - Slottable: base_config_1.TYPE, - SourceBufferEventMap: base_config_1.TYPE, - SourceBuffer: base_config_1.TYPE_VALUE, - SourceBufferListEventMap: base_config_1.TYPE, - SourceBufferList: base_config_1.TYPE_VALUE, - SpeechRecognitionAlternative: base_config_1.TYPE_VALUE, - SpeechRecognitionResult: base_config_1.TYPE_VALUE, - SpeechRecognitionResultList: base_config_1.TYPE_VALUE, - SpeechSynthesisEventMap: base_config_1.TYPE, - SpeechSynthesis: base_config_1.TYPE_VALUE, - SpeechSynthesisErrorEvent: base_config_1.TYPE_VALUE, - SpeechSynthesisEvent: base_config_1.TYPE_VALUE, - SpeechSynthesisUtteranceEventMap: base_config_1.TYPE, - SpeechSynthesisUtterance: base_config_1.TYPE_VALUE, - SpeechSynthesisVoice: base_config_1.TYPE_VALUE, - StaticRange: base_config_1.TYPE_VALUE, - StereoPannerNode: base_config_1.TYPE_VALUE, - Storage: base_config_1.TYPE_VALUE, - StorageEvent: base_config_1.TYPE_VALUE, - StorageManager: base_config_1.TYPE_VALUE, - StyleMedia: base_config_1.TYPE, - StylePropertyMap: base_config_1.TYPE_VALUE, - StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, - StyleSheet: base_config_1.TYPE_VALUE, - StyleSheetList: base_config_1.TYPE_VALUE, - SubmitEvent: base_config_1.TYPE_VALUE, - SubtleCrypto: base_config_1.TYPE_VALUE, - Text: base_config_1.TYPE_VALUE, - TextDecoder: base_config_1.TYPE_VALUE, - TextDecoderCommon: base_config_1.TYPE, - TextDecoderStream: base_config_1.TYPE_VALUE, - TextEncoder: base_config_1.TYPE_VALUE, - TextEncoderCommon: base_config_1.TYPE, - TextEncoderStream: base_config_1.TYPE_VALUE, - TextMetrics: base_config_1.TYPE_VALUE, - TextTrackEventMap: base_config_1.TYPE, - TextTrack: base_config_1.TYPE_VALUE, - TextTrackCueEventMap: base_config_1.TYPE, - TextTrackCue: base_config_1.TYPE_VALUE, - TextTrackCueList: base_config_1.TYPE_VALUE, - TextTrackListEventMap: base_config_1.TYPE, - TextTrackList: base_config_1.TYPE_VALUE, - TimeRanges: base_config_1.TYPE_VALUE, - ToggleEvent: base_config_1.TYPE_VALUE, - Touch: base_config_1.TYPE_VALUE, - TouchEvent: base_config_1.TYPE_VALUE, - TouchList: base_config_1.TYPE_VALUE, - TrackEvent: base_config_1.TYPE_VALUE, - TransformStream: base_config_1.TYPE_VALUE, - TransformStreamDefaultController: base_config_1.TYPE_VALUE, - TransitionEvent: base_config_1.TYPE_VALUE, - TreeWalker: base_config_1.TYPE_VALUE, - UIEvent: base_config_1.TYPE_VALUE, - URL: base_config_1.TYPE_VALUE, - webkitURL: base_config_1.TYPE_VALUE, - URLSearchParams: base_config_1.TYPE_VALUE, - UserActivation: base_config_1.TYPE_VALUE, - VTTCue: base_config_1.TYPE_VALUE, - VTTRegion: base_config_1.TYPE_VALUE, - ValidityState: base_config_1.TYPE_VALUE, - VideoColorSpace: base_config_1.TYPE_VALUE, - VideoDecoderEventMap: base_config_1.TYPE, - VideoDecoder: base_config_1.TYPE_VALUE, - VideoEncoderEventMap: base_config_1.TYPE, - VideoEncoder: base_config_1.TYPE_VALUE, - VideoFrame: base_config_1.TYPE_VALUE, - VideoPlaybackQuality: base_config_1.TYPE_VALUE, - VisualViewportEventMap: base_config_1.TYPE, - VisualViewport: base_config_1.TYPE_VALUE, - WEBGL_color_buffer_float: base_config_1.TYPE, - WEBGL_compressed_texture_astc: base_config_1.TYPE, - WEBGL_compressed_texture_etc: base_config_1.TYPE, - WEBGL_compressed_texture_etc1: base_config_1.TYPE, - WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, - WEBGL_debug_renderer_info: base_config_1.TYPE, - WEBGL_debug_shaders: base_config_1.TYPE, - WEBGL_depth_texture: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_lose_context: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WakeLock: base_config_1.TYPE_VALUE, - WakeLockSentinelEventMap: base_config_1.TYPE, - WakeLockSentinel: base_config_1.TYPE_VALUE, - WaveShaperNode: base_config_1.TYPE_VALUE, - WebGL2RenderingContext: base_config_1.TYPE_VALUE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLActiveInfo: base_config_1.TYPE_VALUE, - WebGLBuffer: base_config_1.TYPE_VALUE, - WebGLContextEvent: base_config_1.TYPE_VALUE, - WebGLFramebuffer: base_config_1.TYPE_VALUE, - WebGLProgram: base_config_1.TYPE_VALUE, - WebGLQuery: base_config_1.TYPE_VALUE, - WebGLRenderbuffer: base_config_1.TYPE_VALUE, - WebGLRenderingContext: base_config_1.TYPE_VALUE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, - WebGLSampler: base_config_1.TYPE_VALUE, - WebGLShader: base_config_1.TYPE_VALUE, - WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, - WebGLSync: base_config_1.TYPE_VALUE, - WebGLTexture: base_config_1.TYPE_VALUE, - WebGLTransformFeedback: base_config_1.TYPE_VALUE, - WebGLUniformLocation: base_config_1.TYPE_VALUE, - WebGLVertexArrayObject: base_config_1.TYPE_VALUE, - WebGLVertexArrayObjectOES: base_config_1.TYPE, - WebSocketEventMap: base_config_1.TYPE, - WebSocket: base_config_1.TYPE_VALUE, - WebTransport: base_config_1.TYPE_VALUE, - WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, - WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, - WebTransportError: base_config_1.TYPE_VALUE, - WheelEvent: base_config_1.TYPE_VALUE, - WindowEventMap: base_config_1.TYPE, - Window: base_config_1.TYPE_VALUE, - WindowEventHandlersEventMap: base_config_1.TYPE, - WindowEventHandlers: base_config_1.TYPE, - WindowLocalStorage: base_config_1.TYPE, - WindowOrWorkerGlobalScope: base_config_1.TYPE, - WindowSessionStorage: base_config_1.TYPE, - WorkerEventMap: base_config_1.TYPE, - Worker: base_config_1.TYPE_VALUE, - Worklet: base_config_1.TYPE_VALUE, - WritableStream: base_config_1.TYPE_VALUE, - WritableStreamDefaultController: base_config_1.TYPE_VALUE, - WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, - XMLDocument: base_config_1.TYPE_VALUE, - XMLHttpRequestEventMap: base_config_1.TYPE, - XMLHttpRequest: base_config_1.TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, - XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, - XMLHttpRequestUpload: base_config_1.TYPE_VALUE, - XMLSerializer: base_config_1.TYPE_VALUE, - XPathEvaluator: base_config_1.TYPE_VALUE, - XPathEvaluatorBase: base_config_1.TYPE, - XPathExpression: base_config_1.TYPE_VALUE, - XPathResult: base_config_1.TYPE_VALUE, - XSLTProcessor: base_config_1.TYPE_VALUE, - Console: base_config_1.TYPE, - CSS: base_config_1.TYPE_VALUE, - WebAssembly: base_config_1.TYPE_VALUE, - BlobCallback: base_config_1.TYPE, - CustomElementConstructor: base_config_1.TYPE, - DecodeErrorCallback: base_config_1.TYPE, - DecodeSuccessCallback: base_config_1.TYPE, - EncodedVideoChunkOutputCallback: base_config_1.TYPE, - ErrorCallback: base_config_1.TYPE, - FileCallback: base_config_1.TYPE, - FileSystemEntriesCallback: base_config_1.TYPE, - FileSystemEntryCallback: base_config_1.TYPE, - FrameRequestCallback: base_config_1.TYPE, - FunctionStringCallback: base_config_1.TYPE, - IdleRequestCallback: base_config_1.TYPE, - IntersectionObserverCallback: base_config_1.TYPE, - LockGrantedCallback: base_config_1.TYPE, - MediaSessionActionHandler: base_config_1.TYPE, - MutationCallback: base_config_1.TYPE, - NotificationPermissionCallback: base_config_1.TYPE, - OnBeforeUnloadEventHandlerNonNull: base_config_1.TYPE, - OnErrorEventHandlerNonNull: base_config_1.TYPE, - PerformanceObserverCallback: base_config_1.TYPE, - PositionCallback: base_config_1.TYPE, - PositionErrorCallback: base_config_1.TYPE, - QueuingStrategySize: base_config_1.TYPE, - RTCPeerConnectionErrorCallback: base_config_1.TYPE, - RTCSessionDescriptionCallback: base_config_1.TYPE, - RemotePlaybackAvailabilityCallback: base_config_1.TYPE, - ReportingObserverCallback: base_config_1.TYPE, - ResizeObserverCallback: base_config_1.TYPE, - TransformerFlushCallback: base_config_1.TYPE, - TransformerStartCallback: base_config_1.TYPE, - TransformerTransformCallback: base_config_1.TYPE, - UnderlyingSinkAbortCallback: base_config_1.TYPE, - UnderlyingSinkCloseCallback: base_config_1.TYPE, - UnderlyingSinkStartCallback: base_config_1.TYPE, - UnderlyingSinkWriteCallback: base_config_1.TYPE, - UnderlyingSourceCancelCallback: base_config_1.TYPE, - UnderlyingSourcePullCallback: base_config_1.TYPE, - UnderlyingSourceStartCallback: base_config_1.TYPE, - VideoFrameOutputCallback: base_config_1.TYPE, - VideoFrameRequestCallback: base_config_1.TYPE, - VoidFunction: base_config_1.TYPE, - WebCodecsErrorCallback: base_config_1.TYPE, - HTMLElementTagNameMap: base_config_1.TYPE, - HTMLElementDeprecatedTagNameMap: base_config_1.TYPE, - SVGElementTagNameMap: base_config_1.TYPE, - MathMLElementTagNameMap: base_config_1.TYPE, - ElementTagNameMap: base_config_1.TYPE, - AlgorithmIdentifier: base_config_1.TYPE, - AllowSharedBufferSource: base_config_1.TYPE, - AutoFill: base_config_1.TYPE, - AutoFillField: base_config_1.TYPE, - AutoFillSection: base_config_1.TYPE, - BigInteger: base_config_1.TYPE, - BinaryData: base_config_1.TYPE, - BlobPart: base_config_1.TYPE, - BodyInit: base_config_1.TYPE, - BufferSource: base_config_1.TYPE, - COSEAlgorithmIdentifier: base_config_1.TYPE, - CSSKeywordish: base_config_1.TYPE, - CSSNumberish: base_config_1.TYPE, - CSSPerspectiveValue: base_config_1.TYPE, - CSSUnparsedSegment: base_config_1.TYPE, - CanvasImageSource: base_config_1.TYPE, - ClipboardItemData: base_config_1.TYPE, - ClipboardItems: base_config_1.TYPE, - ConstrainBoolean: base_config_1.TYPE, - ConstrainDOMString: base_config_1.TYPE, - ConstrainDouble: base_config_1.TYPE, - ConstrainULong: base_config_1.TYPE, - DOMHighResTimeStamp: base_config_1.TYPE, - EpochTimeStamp: base_config_1.TYPE, - EventListenerOrEventListenerObject: base_config_1.TYPE, - FileSystemWriteChunkType: base_config_1.TYPE, - Float32List: base_config_1.TYPE, - FormDataEntryValue: base_config_1.TYPE, - GLbitfield: base_config_1.TYPE, - GLboolean: base_config_1.TYPE, - GLclampf: base_config_1.TYPE, - GLenum: base_config_1.TYPE, - GLfloat: base_config_1.TYPE, - GLint: base_config_1.TYPE, - GLint64: base_config_1.TYPE, - GLintptr: base_config_1.TYPE, - GLsizei: base_config_1.TYPE, - GLsizeiptr: base_config_1.TYPE, - GLuint: base_config_1.TYPE, - GLuint64: base_config_1.TYPE, - HTMLOrSVGImageElement: base_config_1.TYPE, - HTMLOrSVGScriptElement: base_config_1.TYPE, - HashAlgorithmIdentifier: base_config_1.TYPE, - HeadersInit: base_config_1.TYPE, - IDBValidKey: base_config_1.TYPE, - ImageBitmapSource: base_config_1.TYPE, - Int32List: base_config_1.TYPE, - LineAndPositionSetting: base_config_1.TYPE, - MediaProvider: base_config_1.TYPE, - MessageEventSource: base_config_1.TYPE, - MutationRecordType: base_config_1.TYPE, - NamedCurve: base_config_1.TYPE, - OffscreenRenderingContext: base_config_1.TYPE, - OnBeforeUnloadEventHandler: base_config_1.TYPE, - OnErrorEventHandler: base_config_1.TYPE, - OptionalPostfixToken: base_config_1.TYPE, - OptionalPrefixToken: base_config_1.TYPE, - PerformanceEntryList: base_config_1.TYPE, - RTCRtpTransform: base_config_1.TYPE, - ReadableStreamController: base_config_1.TYPE, - ReadableStreamReadResult: base_config_1.TYPE, - ReadableStreamReader: base_config_1.TYPE, - RenderingContext: base_config_1.TYPE, - ReportList: base_config_1.TYPE, - RequestInfo: base_config_1.TYPE, - TexImageSource: base_config_1.TYPE, - TimerHandler: base_config_1.TYPE, - Transferable: base_config_1.TYPE, - Uint32List: base_config_1.TYPE, - VibratePattern: base_config_1.TYPE, - WindowProxy: base_config_1.TYPE, - XMLHttpRequestBodyInit: base_config_1.TYPE, - AlignSetting: base_config_1.TYPE, - AlphaOption: base_config_1.TYPE, - AnimationPlayState: base_config_1.TYPE, - AnimationReplaceState: base_config_1.TYPE, - AppendMode: base_config_1.TYPE, - AttestationConveyancePreference: base_config_1.TYPE, - AudioContextLatencyCategory: base_config_1.TYPE, - AudioContextState: base_config_1.TYPE, - AuthenticatorAttachment: base_config_1.TYPE, - AuthenticatorTransport: base_config_1.TYPE, - AutoFillAddressKind: base_config_1.TYPE, - AutoFillBase: base_config_1.TYPE, - AutoFillContactField: base_config_1.TYPE, - AutoFillContactKind: base_config_1.TYPE, - AutoFillCredentialField: base_config_1.TYPE, - AutoFillNormalField: base_config_1.TYPE, - AutoKeyword: base_config_1.TYPE, - AutomationRate: base_config_1.TYPE, - AvcBitstreamFormat: base_config_1.TYPE, - BinaryType: base_config_1.TYPE, - BiquadFilterType: base_config_1.TYPE, - CSSMathOperator: base_config_1.TYPE, - CSSNumericBaseType: base_config_1.TYPE, - CanPlayTypeResult: base_config_1.TYPE, - CanvasDirection: base_config_1.TYPE, - CanvasFillRule: base_config_1.TYPE, - CanvasFontKerning: base_config_1.TYPE, - CanvasFontStretch: base_config_1.TYPE, - CanvasFontVariantCaps: base_config_1.TYPE, - CanvasLineCap: base_config_1.TYPE, - CanvasLineJoin: base_config_1.TYPE, - CanvasTextAlign: base_config_1.TYPE, - CanvasTextBaseline: base_config_1.TYPE, - CanvasTextRendering: base_config_1.TYPE, - ChannelCountMode: base_config_1.TYPE, - ChannelInterpretation: base_config_1.TYPE, - ClientTypes: base_config_1.TYPE, - CodecState: base_config_1.TYPE, - ColorGamut: base_config_1.TYPE, - ColorSpaceConversion: base_config_1.TYPE, - CompositeOperation: base_config_1.TYPE, - CompositeOperationOrAuto: base_config_1.TYPE, - CompressionFormat: base_config_1.TYPE, - CredentialMediationRequirement: base_config_1.TYPE, - DOMParserSupportedType: base_config_1.TYPE, - DirectionSetting: base_config_1.TYPE, - DisplayCaptureSurfaceType: base_config_1.TYPE, - DistanceModelType: base_config_1.TYPE, - DocumentReadyState: base_config_1.TYPE, - DocumentVisibilityState: base_config_1.TYPE, - EncodedVideoChunkType: base_config_1.TYPE, - EndOfStreamError: base_config_1.TYPE, - EndingType: base_config_1.TYPE, - FileSystemHandleKind: base_config_1.TYPE, - FillMode: base_config_1.TYPE, - FontDisplay: base_config_1.TYPE, - FontFaceLoadStatus: base_config_1.TYPE, - FontFaceSetLoadStatus: base_config_1.TYPE, - FullscreenNavigationUI: base_config_1.TYPE, - GamepadHapticEffectType: base_config_1.TYPE, - GamepadHapticsResult: base_config_1.TYPE, - GamepadMappingType: base_config_1.TYPE, - GlobalCompositeOperation: base_config_1.TYPE, - HardwareAcceleration: base_config_1.TYPE, - HdrMetadataType: base_config_1.TYPE, - HighlightType: base_config_1.TYPE, - IDBCursorDirection: base_config_1.TYPE, - IDBRequestReadyState: base_config_1.TYPE, - IDBTransactionDurability: base_config_1.TYPE, - IDBTransactionMode: base_config_1.TYPE, - ImageOrientation: base_config_1.TYPE, - ImageSmoothingQuality: base_config_1.TYPE, - InsertPosition: base_config_1.TYPE, - IterationCompositeOperation: base_config_1.TYPE, - KeyFormat: base_config_1.TYPE, - KeyType: base_config_1.TYPE, - KeyUsage: base_config_1.TYPE, - LatencyMode: base_config_1.TYPE, - LineAlignSetting: base_config_1.TYPE, - LockMode: base_config_1.TYPE, - MIDIPortConnectionState: base_config_1.TYPE, - MIDIPortDeviceState: base_config_1.TYPE, - MIDIPortType: base_config_1.TYPE, - MediaDecodingType: base_config_1.TYPE, - MediaDeviceKind: base_config_1.TYPE, - MediaEncodingType: base_config_1.TYPE, - MediaKeyMessageType: base_config_1.TYPE, - MediaKeySessionClosedReason: base_config_1.TYPE, - MediaKeySessionType: base_config_1.TYPE, - MediaKeyStatus: base_config_1.TYPE, - MediaKeysRequirement: base_config_1.TYPE, - MediaSessionAction: base_config_1.TYPE, - MediaSessionPlaybackState: base_config_1.TYPE, - MediaStreamTrackState: base_config_1.TYPE, - NavigationTimingType: base_config_1.TYPE, - NotificationDirection: base_config_1.TYPE, - NotificationPermission: base_config_1.TYPE, - OffscreenRenderingContextId: base_config_1.TYPE, - OrientationType: base_config_1.TYPE, - OscillatorType: base_config_1.TYPE, - OverSampleType: base_config_1.TYPE, - PanningModelType: base_config_1.TYPE, - PaymentComplete: base_config_1.TYPE, - PermissionName: base_config_1.TYPE, - PermissionState: base_config_1.TYPE, - PlaybackDirection: base_config_1.TYPE, - PositionAlignSetting: base_config_1.TYPE, - PredefinedColorSpace: base_config_1.TYPE, - PremultiplyAlpha: base_config_1.TYPE, - PresentationStyle: base_config_1.TYPE, - PublicKeyCredentialType: base_config_1.TYPE, - PushEncryptionKeyName: base_config_1.TYPE, - RTCBundlePolicy: base_config_1.TYPE, - RTCDataChannelState: base_config_1.TYPE, - RTCDegradationPreference: base_config_1.TYPE, - RTCDtlsTransportState: base_config_1.TYPE, - RTCEncodedVideoFrameType: base_config_1.TYPE, - RTCErrorDetailType: base_config_1.TYPE, - RTCIceCandidateType: base_config_1.TYPE, - RTCIceComponent: base_config_1.TYPE, - RTCIceConnectionState: base_config_1.TYPE, - RTCIceGathererState: base_config_1.TYPE, - RTCIceGatheringState: base_config_1.TYPE, - RTCIceProtocol: base_config_1.TYPE, - RTCIceTcpCandidateType: base_config_1.TYPE, - RTCIceTransportPolicy: base_config_1.TYPE, - RTCIceTransportState: base_config_1.TYPE, - RTCPeerConnectionState: base_config_1.TYPE, - RTCPriorityType: base_config_1.TYPE, - RTCRtcpMuxPolicy: base_config_1.TYPE, - RTCRtpTransceiverDirection: base_config_1.TYPE, - RTCSctpTransportState: base_config_1.TYPE, - RTCSdpType: base_config_1.TYPE, - RTCSignalingState: base_config_1.TYPE, - RTCStatsIceCandidatePairState: base_config_1.TYPE, - RTCStatsType: base_config_1.TYPE, - ReadableStreamReaderMode: base_config_1.TYPE, - ReadableStreamType: base_config_1.TYPE, - ReadyState: base_config_1.TYPE, - RecordingState: base_config_1.TYPE, - ReferrerPolicy: base_config_1.TYPE, - RemotePlaybackState: base_config_1.TYPE, - RequestCache: base_config_1.TYPE, - RequestCredentials: base_config_1.TYPE, - RequestDestination: base_config_1.TYPE, - RequestMode: base_config_1.TYPE, - RequestPriority: base_config_1.TYPE, - RequestRedirect: base_config_1.TYPE, - ResidentKeyRequirement: base_config_1.TYPE, - ResizeObserverBoxOptions: base_config_1.TYPE, - ResizeQuality: base_config_1.TYPE, - ResponseType: base_config_1.TYPE, - ScrollBehavior: base_config_1.TYPE, - ScrollLogicalPosition: base_config_1.TYPE, - ScrollRestoration: base_config_1.TYPE, - ScrollSetting: base_config_1.TYPE, - SecurityPolicyViolationEventDisposition: base_config_1.TYPE, - SelectionMode: base_config_1.TYPE, - ServiceWorkerState: base_config_1.TYPE, - ServiceWorkerUpdateViaCache: base_config_1.TYPE, - ShadowRootMode: base_config_1.TYPE, - SlotAssignmentMode: base_config_1.TYPE, - SpeechSynthesisErrorCode: base_config_1.TYPE, - TextTrackKind: base_config_1.TYPE, - TextTrackMode: base_config_1.TYPE, - TouchType: base_config_1.TYPE, - TransferFunction: base_config_1.TYPE, - UserVerificationRequirement: base_config_1.TYPE, - VideoColorPrimaries: base_config_1.TYPE, - VideoEncoderBitrateMode: base_config_1.TYPE, - VideoFacingModeEnum: base_config_1.TYPE, - VideoMatrixCoefficients: base_config_1.TYPE, - VideoPixelFormat: base_config_1.TYPE, - VideoTransferCharacteristics: base_config_1.TYPE, - WakeLockType: base_config_1.TYPE, - WebGLPowerPreference: base_config_1.TYPE, - WebTransportCongestionControl: base_config_1.TYPE, - WebTransportErrorSource: base_config_1.TYPE, - WorkerType: base_config_1.TYPE, - WriteCommandType: base_config_1.TYPE, - XMLHttpRequestResponseType: base_config_1.TYPE, -}; -//# sourceMappingURL=dom.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map deleted file mode 100644 index 79ce75cd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":";AAAA,wCAAwC;AAC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ACjB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,sBAAsB,EAAE,kBAAI;IAC5B,wBAAwB,EAAE,kBAAI;IAC9B,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,cAAc,EAAE,kBAAI;IACpB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,uCAAuC,EAAE,kBAAI;IAC7C,aAAa,EAAE,kBAAI;IACnB,kBAAkB,EAAE,kBAAI;IACxB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,kBAAI;IACpB,kBAAkB,EAAE,kBAAI;IACxB,wBAAwB,EAAE,kBAAI;IAC9B,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,gBAAgB,EAAE,kBAAI;IACtB,2BAA2B,EAAE,kBAAI;IACjC,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,gBAAgB,EAAE,kBAAI;IACtB,4BAA4B,EAAE,kBAAI;IAClC,YAAY,EAAE,kBAAI;IAClB,oBAAoB,EAAE,kBAAI;IAC1B,6BAA6B,EAAE,kBAAI;IACnC,uBAAuB,EAAE,kBAAI;IAC7B,UAAU,EAAE,kBAAI;IAChB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts deleted file mode 100644 index 8bc3c49f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_collection: Record; -//# sourceMappingURL=es2015.collection.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map deleted file mode 100644 index 1cea823b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAWzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js deleted file mode 100644 index 8c4c6692..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_collection = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_collection = { - Map: base_config_1.TYPE_VALUE, - MapConstructor: base_config_1.TYPE, - ReadonlyMap: base_config_1.TYPE, - WeakMap: base_config_1.TYPE_VALUE, - WeakMapConstructor: base_config_1.TYPE, - Set: base_config_1.TYPE_VALUE, - SetConstructor: base_config_1.TYPE, - ReadonlySet: base_config_1.TYPE, - WeakSet: base_config_1.TYPE_VALUE, - WeakSetConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.collection.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map deleted file mode 100644 index 5cb435ca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.collection.js","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts deleted file mode 100644 index c309d52d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_core: Record; -//# sourceMappingURL=es2015.core.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map deleted file mode 100644 index 8e6ff9ef..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.core.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAsBnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js deleted file mode 100644 index 6278dd70..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_core = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_core = { - Array: base_config_1.TYPE, - ArrayConstructor: base_config_1.TYPE, - DateConstructor: base_config_1.TYPE, - Function: base_config_1.TYPE, - Math: base_config_1.TYPE, - NumberConstructor: base_config_1.TYPE, - ObjectConstructor: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, - RegExpConstructor: base_config_1.TYPE, - String: base_config_1.TYPE, - StringConstructor: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.core.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map deleted file mode 100644 index 2e0a6bfe..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.core.js","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,kBAAI;IACV,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts deleted file mode 100644 index 7f7de237..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015: Record; -//# sourceMappingURL=es2015.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map deleted file mode 100644 index 3f4718a4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,EAWd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts deleted file mode 100644 index cb5ce5da..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_generator: Record; -//# sourceMappingURL=es2015.generator.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map deleted file mode 100644 index 35fefc60..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.generator.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAKxB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js deleted file mode 100644 index 1449b264..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_generator = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2015_generator = { - ...es2015_iterable_1.es2015_iterable, - Generator: base_config_1.TYPE, - GeneratorFunction: base_config_1.TYPE, - GeneratorFunctionConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.generator.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map deleted file mode 100644 index b491c4c2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.generator.js","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,SAAS,EAAE,kBAAI;IACf,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;CACW,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts deleted file mode 100644 index 9daa14ef..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_iterable: Record; -//# sourceMappingURL=es2015.iterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map deleted file mode 100644 index e2b4677e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,eAAe,EA4CvB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js deleted file mode 100644 index 3e918b1b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_iterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2015_iterable = { - ...es2015_symbol_1.es2015_symbol, - SymbolConstructor: base_config_1.TYPE, - IteratorYieldResult: base_config_1.TYPE, - IteratorReturnResult: base_config_1.TYPE, - IteratorResult: base_config_1.TYPE, - Iterator: base_config_1.TYPE, - Iterable: base_config_1.TYPE, - IterableIterator: base_config_1.TYPE, - Array: base_config_1.TYPE, - ArrayConstructor: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - IArguments: base_config_1.TYPE, - Map: base_config_1.TYPE, - ReadonlyMap: base_config_1.TYPE, - MapConstructor: base_config_1.TYPE, - WeakMap: base_config_1.TYPE, - WeakMapConstructor: base_config_1.TYPE, - Set: base_config_1.TYPE, - ReadonlySet: base_config_1.TYPE, - SetConstructor: base_config_1.TYPE, - WeakSet: base_config_1.TYPE, - WeakSetConstructor: base_config_1.TYPE, - Promise: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, - String: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Int8ArrayConstructor: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ArrayConstructor: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Uint8ClampedArrayConstructor: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Int16ArrayConstructor: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Uint16ArrayConstructor: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Int32ArrayConstructor: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Uint32ArrayConstructor: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float32ArrayConstructor: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - Float64ArrayConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.iterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map deleted file mode 100644 index c1a3ff46..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.iterable.js","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,eAAe,GAAG;IAC7B,GAAG,6BAAa;IAChB,iBAAiB,EAAE,kBAAI;IACvB,mBAAmB,EAAE,kBAAI;IACzB,oBAAoB,EAAE,kBAAI;IAC1B,cAAc,EAAE,kBAAI;IACpB,QAAQ,EAAE,kBAAI;IACd,QAAQ,EAAE,kBAAI;IACd,gBAAgB,EAAE,kBAAI;IACtB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,UAAU,EAAE,kBAAI;IAChB,GAAG,EAAE,kBAAI;IACT,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,GAAG,EAAE,kBAAI;IACT,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,MAAM,EAAE,kBAAI;IACZ,SAAS,EAAE,kBAAI;IACf,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,kBAAI;IACvB,4BAA4B,EAAE,kBAAI;IAClC,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,UAAU,EAAE,kBAAI;IAChB,qBAAqB,EAAE,kBAAI;IAC3B,WAAW,EAAE,kBAAI;IACjB,sBAAsB,EAAE,kBAAI;IAC5B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js deleted file mode 100644 index 6144de8d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015 = void 0; -const es5_1 = require("./es5"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es2015 = { - ...es5_1.es5, - ...es2015_core_1.es2015_core, - ...es2015_collection_1.es2015_collection, - ...es2015_iterable_1.es2015_iterable, - ...es2015_generator_1.es2015_generator, - ...es2015_promise_1.es2015_promise, - ...es2015_proxy_1.es2015_proxy, - ...es2015_reflect_1.es2015_reflect, - ...es2015_symbol_1.es2015_symbol, - ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, -}; -//# sourceMappingURL=es2015.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map deleted file mode 100644 index 5e4f6a0d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.js","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts deleted file mode 100644 index 4b0b7d19..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_promise: Record; -//# sourceMappingURL=es2015.promise.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map deleted file mode 100644 index a6de5057..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js deleted file mode 100644 index 93baf9f0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_promise = { - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.promise.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map deleted file mode 100644 index 974d5e1c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.promise.js","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts deleted file mode 100644 index a2a87c0f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_proxy: Record; -//# sourceMappingURL=es2015.proxy.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map deleted file mode 100644 index b6e0ef54..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.proxy.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAGpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js deleted file mode 100644 index 8a091e8d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_proxy = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_proxy = { - ProxyHandler: base_config_1.TYPE, - ProxyConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.proxy.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map deleted file mode 100644 index c7184658..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.proxy.js","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,kBAAI;IAClB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts deleted file mode 100644 index 7e94f32c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_reflect: Record; -//# sourceMappingURL=es2015.reflect.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map deleted file mode 100644 index cee2d584..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.reflect.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js deleted file mode 100644 index c8d8b044..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_reflect = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_reflect = { - Reflect: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2015.reflect.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map deleted file mode 100644 index 9d33e8be..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.reflect.js","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts deleted file mode 100644 index e78a6670..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_symbol: Record; -//# sourceMappingURL=es2015.symbol.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map deleted file mode 100644 index a1cb0d44..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js deleted file mode 100644 index 62876aa5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_symbol = { - SymbolConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.symbol.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map deleted file mode 100644 index 5b332411..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts deleted file mode 100644 index 7b18f41c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_symbol_wellknown: Record; -//# sourceMappingURL=es2015.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map deleted file mode 100644 index 3974b569..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,uBAAuB,EAmC/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js deleted file mode 100644 index 339800e1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_symbol_wellknown = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2015_symbol_wellknown = { - ...es2015_symbol_1.es2015_symbol, - SymbolConstructor: base_config_1.TYPE, - Symbol: base_config_1.TYPE, - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Date: base_config_1.TYPE, - Map: base_config_1.TYPE, - WeakMap: base_config_1.TYPE, - Set: base_config_1.TYPE, - WeakSet: base_config_1.TYPE, - JSON: base_config_1.TYPE, - Function: base_config_1.TYPE, - GeneratorFunction: base_config_1.TYPE, - Math: base_config_1.TYPE, - Promise: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, - RegExp: base_config_1.TYPE, - RegExpConstructor: base_config_1.TYPE, - String: base_config_1.TYPE, - ArrayBuffer: base_config_1.TYPE, - DataView: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - ArrayConstructor: base_config_1.TYPE, - MapConstructor: base_config_1.TYPE, - SetConstructor: base_config_1.TYPE, - ArrayBufferConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.symbol.wellknown.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map deleted file mode 100644 index 8dec1d57..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,6BAAa;IAChB,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,IAAI,EAAE,kBAAI;IACV,GAAG,EAAE,kBAAI;IACT,OAAO,EAAE,kBAAI;IACb,GAAG,EAAE,kBAAI;IACT,OAAO,EAAE,kBAAI;IACb,IAAI,EAAE,kBAAI;IACV,QAAQ,EAAE,kBAAI;IACd,iBAAiB,EAAE,kBAAI;IACvB,IAAI,EAAE,kBAAI;IACV,OAAO,EAAE,kBAAI;IACb,kBAAkB,EAAE,kBAAI;IACxB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,gBAAgB,EAAE,kBAAI;IACtB,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;CACiB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts deleted file mode 100644 index 7e6c8903..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016_array_include: Record; -//# sourceMappingURL=es2016.array.include.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map deleted file mode 100644 index 7ec46bea..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.array.include.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,oBAAoB,EAY5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js deleted file mode 100644 index 21f59597..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016_array_include = void 0; -const base_config_1 = require("./base-config"); -exports.es2016_array_include = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2016.array.include.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map deleted file mode 100644 index d9e4760f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.array.include.js","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts deleted file mode 100644 index 2049c83e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016: Record; -//# sourceMappingURL=es2016.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map deleted file mode 100644 index ec558a4e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,MAAM,EAId,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts deleted file mode 100644 index f940014b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016_full: Record; -//# sourceMappingURL=es2016.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map deleted file mode 100644 index 775c3dc2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js deleted file mode 100644 index 75156509..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2016_1 = require("./es2016"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2016_full = { - ...es2016_1.es2016, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, -}; -//# sourceMappingURL=es2016.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map deleted file mode 100644 index b4b90455..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.full.js","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts deleted file mode 100644 index c5567ffb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016_intl: Record; -//# sourceMappingURL=es2016.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map deleted file mode 100644 index e757d55a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js deleted file mode 100644 index c63368d9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2016_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2016.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map deleted file mode 100644 index 4b41bb12..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.intl.js","sourceRoot":"","sources":["../../src/lib/es2016.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js deleted file mode 100644 index 65d6ace4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016 = void 0; -const es2015_1 = require("./es2015"); -const es2016_array_include_1 = require("./es2016.array.include"); -const es2016_intl_1 = require("./es2016.intl"); -exports.es2016 = { - ...es2015_1.es2015, - ...es2016_array_include_1.es2016_array_include, - ...es2016_intl_1.es2016_intl, -}; -//# sourceMappingURL=es2016.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map deleted file mode 100644 index bbe007cd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.js","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts deleted file mode 100644 index 7c40c712..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017: Record; -//# sourceMappingURL=es2017.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map deleted file mode 100644 index 3f2cc79d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAS9D,eAAO,MAAM,MAAM,EAQd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts deleted file mode 100644 index 68d2c05e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_date: Record; -//# sourceMappingURL=es2017.date.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map deleted file mode 100644 index 81f4bc1c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js deleted file mode 100644 index 6184d2a4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_date = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_date = { - DateConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.date.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map deleted file mode 100644 index c559eeab..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.date.js","sourceRoot":"","sources":["../../src/lib/es2017.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,eAAe,EAAE,kBAAI;CACwB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts deleted file mode 100644 index 385bd1c3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_full: Record; -//# sourceMappingURL=es2017.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map deleted file mode 100644 index 815ec8fc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,EAMnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js deleted file mode 100644 index 5d478b96..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2017_1 = require("./es2017"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2017_full = { - ...es2017_1.es2017, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, -}; -//# sourceMappingURL=es2017.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map deleted file mode 100644 index f12cfc89..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.full.js","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;CAC8B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts deleted file mode 100644 index 4db70db8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_intl: Record; -//# sourceMappingURL=es2017.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map deleted file mode 100644 index 9c69689a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js deleted file mode 100644 index 2115eda7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2017.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map deleted file mode 100644 index abc15d2e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.intl.js","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js deleted file mode 100644 index 545b3399..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017 = void 0; -const es2016_1 = require("./es2016"); -const es2017_date_1 = require("./es2017.date"); -const es2017_intl_1 = require("./es2017.intl"); -const es2017_object_1 = require("./es2017.object"); -const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); -const es2017_string_1 = require("./es2017.string"); -const es2017_typedarrays_1 = require("./es2017.typedarrays"); -exports.es2017 = { - ...es2016_1.es2016, - ...es2017_object_1.es2017_object, - ...es2017_sharedmemory_1.es2017_sharedmemory, - ...es2017_string_1.es2017_string, - ...es2017_intl_1.es2017_intl, - ...es2017_typedarrays_1.es2017_typedarrays, - ...es2017_date_1.es2017_date, -}; -//# sourceMappingURL=es2017.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map deleted file mode 100644 index cc0d41a9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.js","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAE7C,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,yBAAW;IACd,GAAG,uCAAkB;IACrB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts deleted file mode 100644 index 268df74f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_object: Record; -//# sourceMappingURL=es2017.object.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map deleted file mode 100644 index 117bad62..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js deleted file mode 100644 index 1aa0ee7b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_object = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_object = { - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.object.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map deleted file mode 100644 index b1a9a1f9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.object.js","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts deleted file mode 100644 index e647026b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_sharedmemory: Record; -//# sourceMappingURL=es2017.sharedmemory.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map deleted file mode 100644 index e7269e2a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAO3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js deleted file mode 100644 index fccf405a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es2017_sharedmemory = { - ...es2015_symbol_1.es2015_symbol, - ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, - SharedArrayBuffer: base_config_1.TYPE_VALUE, - SharedArrayBufferConstructor: base_config_1.TYPE, - ArrayBufferTypes: base_config_1.TYPE, - Atomics: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2017.sharedmemory.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map deleted file mode 100644 index 45a45a65..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AACjD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,mBAAmB,GAAG;IACjC,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,iBAAiB,EAAE,wBAAU;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,gBAAgB,EAAE,kBAAI;IACtB,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts deleted file mode 100644 index effb6ad8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_string: Record; -//# sourceMappingURL=es2017.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map deleted file mode 100644 index f8fa292c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js deleted file mode 100644 index 9ab29367..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map deleted file mode 100644 index 02ae38b4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.string.js","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts deleted file mode 100644 index 97b9cce1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_typedarrays: Record; -//# sourceMappingURL=es2017.typedarrays.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map deleted file mode 100644 index 95559fb8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.typedarrays.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAU1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js deleted file mode 100644 index ba91797f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_typedarrays = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_typedarrays = { - Int8ArrayConstructor: base_config_1.TYPE, - Uint8ArrayConstructor: base_config_1.TYPE, - Uint8ClampedArrayConstructor: base_config_1.TYPE, - Int16ArrayConstructor: base_config_1.TYPE, - Uint16ArrayConstructor: base_config_1.TYPE, - Int32ArrayConstructor: base_config_1.TYPE, - Uint32ArrayConstructor: base_config_1.TYPE, - Float32ArrayConstructor: base_config_1.TYPE, - Float64ArrayConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.typedarrays.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map deleted file mode 100644 index c49612d0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.typedarrays.js","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,4BAA4B,EAAE,kBAAI;IAClC,qBAAqB,EAAE,kBAAI;IAC3B,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts deleted file mode 100644 index 1c0ad385..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_asyncgenerator: Record; -//# sourceMappingURL=es2018.asyncgenerator.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map deleted file mode 100644 index adda081c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asyncgenerator.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,qBAAqB,EAK7B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js deleted file mode 100644 index 9e7f03f2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_asyncgenerator = void 0; -const base_config_1 = require("./base-config"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -exports.es2018_asyncgenerator = { - ...es2018_asynciterable_1.es2018_asynciterable, - AsyncGenerator: base_config_1.TYPE, - AsyncGeneratorFunction: base_config_1.TYPE, - AsyncGeneratorFunctionConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.asyncgenerator.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map deleted file mode 100644 index 1acc35bb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asyncgenerator.js","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,iEAA8D;AAEjD,QAAA,qBAAqB,GAAG;IACnC,GAAG,2CAAoB;IACvB,cAAc,EAAE,kBAAI;IACpB,sBAAsB,EAAE,kBAAI;IAC5B,iCAAiC,EAAE,kBAAI;CACM,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts deleted file mode 100644 index 441e1b4a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_asynciterable: Record; -//# sourceMappingURL=es2018.asynciterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map deleted file mode 100644 index cd4b9e63..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAO5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js deleted file mode 100644 index 69f27995..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_asynciterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2018_asynciterable = { - ...es2015_symbol_1.es2015_symbol, - ...es2015_iterable_1.es2015_iterable, - SymbolConstructor: base_config_1.TYPE, - AsyncIterator: base_config_1.TYPE, - AsyncIterable: base_config_1.TYPE, - AsyncIterableIterator: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.asynciterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map deleted file mode 100644 index 405ade78..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asynciterable.js","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;CACkB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts deleted file mode 100644 index d6a57e0b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018: Record; -//# sourceMappingURL=es2018.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map deleted file mode 100644 index 70c0fbf3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts deleted file mode 100644 index def2b62d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_full: Record; -//# sourceMappingURL=es2018.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map deleted file mode 100644 index 0f810184..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js deleted file mode 100644 index 65c7681b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2018_1 = require("./es2018"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2018_full = { - ...es2018_1.es2018, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2018.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map deleted file mode 100644 index 960349dc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.full.js","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts deleted file mode 100644 index e80a6793..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_intl: Record; -//# sourceMappingURL=es2018.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map deleted file mode 100644 index 562ec3df..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js deleted file mode 100644 index d3553a73..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2018.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map deleted file mode 100644 index 6408bac2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.intl.js","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js deleted file mode 100644 index 307a6d47..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018 = void 0; -const es2017_1 = require("./es2017"); -const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -const es2018_intl_1 = require("./es2018.intl"); -const es2018_promise_1 = require("./es2018.promise"); -const es2018_regexp_1 = require("./es2018.regexp"); -exports.es2018 = { - ...es2017_1.es2017, - ...es2018_asynciterable_1.es2018_asynciterable, - ...es2018_asyncgenerator_1.es2018_asyncgenerator, - ...es2018_promise_1.es2018_promise, - ...es2018_regexp_1.es2018_regexp, - ...es2018_intl_1.es2018_intl, -}; -//# sourceMappingURL=es2018.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map deleted file mode 100644 index 565ac2ca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.js","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,6CAAqB;IACxB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts deleted file mode 100644 index 2ff021b6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_promise: Record; -//# sourceMappingURL=es2018.promise.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map deleted file mode 100644 index 02c74e18..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAEtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js deleted file mode 100644 index 7d0b41e8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_promise = { - Promise: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.promise.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map deleted file mode 100644 index 76306866..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.promise.js","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts deleted file mode 100644 index 2e69d45a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_regexp: Record; -//# sourceMappingURL=es2018.regexp.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map deleted file mode 100644 index d016e96f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAIrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js deleted file mode 100644 index 79237cdc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_regexp = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_regexp = { - RegExpMatchArray: base_config_1.TYPE, - RegExpExecArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.regexp.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map deleted file mode 100644 index 8deeb21f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.regexp.js","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts deleted file mode 100644 index 845c62f7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_array: Record; -//# sourceMappingURL=es2019.array.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map deleted file mode 100644 index f8a023aa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAIpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js deleted file mode 100644 index 20434a2a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_array = { - FlatArray: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.array.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map deleted file mode 100644 index 194bba6a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.array.js","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,kBAAI;IACf,aAAa,EAAE,kBAAI;IACnB,KAAK,EAAE,kBAAI;CACkC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts deleted file mode 100644 index 1d01d51d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019: Record; -//# sourceMappingURL=es2019.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map deleted file mode 100644 index a11793c8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,EAOd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts deleted file mode 100644 index d43d283b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_full: Record; -//# sourceMappingURL=es2019.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map deleted file mode 100644 index 4a0f848c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js deleted file mode 100644 index 548e3842..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2019_1 = require("./es2019"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2019_full = { - ...es2019_1.es2019, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2019.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map deleted file mode 100644 index 9cdb1ca9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.full.js","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts deleted file mode 100644 index c560ab4a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_intl: Record; -//# sourceMappingURL=es2019.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map deleted file mode 100644 index 397e272b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js deleted file mode 100644 index 32e3360c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2019.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map deleted file mode 100644 index 05b740b2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.intl.js","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js deleted file mode 100644 index af8b4ab3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019 = void 0; -const es2018_1 = require("./es2018"); -const es2019_array_1 = require("./es2019.array"); -const es2019_intl_1 = require("./es2019.intl"); -const es2019_object_1 = require("./es2019.object"); -const es2019_string_1 = require("./es2019.string"); -const es2019_symbol_1 = require("./es2019.symbol"); -exports.es2019 = { - ...es2018_1.es2018, - ...es2019_array_1.es2019_array, - ...es2019_object_1.es2019_object, - ...es2019_string_1.es2019_string, - ...es2019_symbol_1.es2019_symbol, - ...es2019_intl_1.es2019_intl, -}; -//# sourceMappingURL=es2019.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map deleted file mode 100644 index 8bee0588..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.js","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,6BAAa;IAChB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts deleted file mode 100644 index 317dc348..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_object: Record; -//# sourceMappingURL=es2019.object.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map deleted file mode 100644 index 9e2bdd22..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js deleted file mode 100644 index 2d3f9c8e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_object = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2019_object = { - ...es2015_iterable_1.es2015_iterable, - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.object.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map deleted file mode 100644 index 0814261b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.object.js","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts deleted file mode 100644 index 6400ddca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_string: Record; -//# sourceMappingURL=es2019.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map deleted file mode 100644 index 974a6617..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js deleted file mode 100644 index cd44d0d9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map deleted file mode 100644 index 48f8ab07..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.string.js","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts deleted file mode 100644 index 66073bcd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_symbol: Record; -//# sourceMappingURL=es2019.symbol.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map deleted file mode 100644 index 32c2adbc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js deleted file mode 100644 index 5bb7979f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_symbol = { - Symbol: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.symbol.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map deleted file mode 100644 index 191e94f4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.symbol.js","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts deleted file mode 100644 index 05bbb19e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_bigint: Record; -//# sourceMappingURL=es2020.bigint.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map deleted file mode 100644 index b9b10119..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js deleted file mode 100644 index 3cc6dfb0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_bigint = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_bigint = { - ...es2020_intl_1.es2020_intl, - BigIntToLocaleStringOptions: base_config_1.TYPE, - BigInt: base_config_1.TYPE_VALUE, - BigIntConstructor: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE_VALUE, - BigInt64ArrayConstructor: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE_VALUE, - BigUint64ArrayConstructor: base_config_1.TYPE, - DataView: base_config_1.TYPE, - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2020.bigint.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map deleted file mode 100644 index a9e06fa1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.bigint.js","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,2BAA2B,EAAE,kBAAI;IACjC,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts deleted file mode 100644 index 9786e11e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020: Record; -//# sourceMappingURL=es2020.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map deleted file mode 100644 index 234b6381..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,EAUd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts deleted file mode 100644 index e7ee0517..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_date: Record; -//# sourceMappingURL=es2020.date.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map deleted file mode 100644 index 9493e9f2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js deleted file mode 100644 index bcfa2ee6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_date = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_date = { - ...es2020_intl_1.es2020_intl, - Date: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.date.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map deleted file mode 100644 index b8a23fff..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.date.js","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts deleted file mode 100644 index 67ce5201..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_full: Record; -//# sourceMappingURL=es2020.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map deleted file mode 100644 index bb617e66..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js deleted file mode 100644 index 15fabbc3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2020_1 = require("./es2020"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2020_full = { - ...es2020_1.es2020, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2020.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map deleted file mode 100644 index d0812aa8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.full.js","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts deleted file mode 100644 index 6fe292a7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_intl: Record; -//# sourceMappingURL=es2020.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map deleted file mode 100644 index 35123eb5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,EAGnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js deleted file mode 100644 index f934de56..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_intl = void 0; -const base_config_1 = require("./base-config"); -const es2018_intl_1 = require("./es2018.intl"); -exports.es2020_intl = { - ...es2018_intl_1.es2018_intl, - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2020.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map deleted file mode 100644 index bfa64107..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.intl.js","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAC3C,+CAA4C;AAE/B,QAAA,WAAW,GAAG;IACzB,GAAG,yBAAW;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js deleted file mode 100644 index 57b30c03..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020 = void 0; -const es2019_1 = require("./es2019"); -const es2020_bigint_1 = require("./es2020.bigint"); -const es2020_date_1 = require("./es2020.date"); -const es2020_intl_1 = require("./es2020.intl"); -const es2020_number_1 = require("./es2020.number"); -const es2020_promise_1 = require("./es2020.promise"); -const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); -const es2020_string_1 = require("./es2020.string"); -const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); -exports.es2020 = { - ...es2019_1.es2019, - ...es2020_bigint_1.es2020_bigint, - ...es2020_date_1.es2020_date, - ...es2020_number_1.es2020_number, - ...es2020_promise_1.es2020_promise, - ...es2020_sharedmemory_1.es2020_sharedmemory, - ...es2020_string_1.es2020_string, - ...es2020_symbol_wellknown_1.es2020_symbol_wellknown, - ...es2020_intl_1.es2020_intl, -}; -//# sourceMappingURL=es2020.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map deleted file mode 100644 index e3e58ade..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.js","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,6BAAa;IAChB,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;IAC1B,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts deleted file mode 100644 index dff240d7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_number: Record; -//# sourceMappingURL=es2020.number.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map deleted file mode 100644 index a56e648c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.number.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js deleted file mode 100644 index 8f50949b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_number = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_number = { - ...es2020_intl_1.es2020_intl, - Number: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.number.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map deleted file mode 100644 index 7f2fc522..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.number.js","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts deleted file mode 100644 index b45f2053..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_promise: Record; -//# sourceMappingURL=es2020.promise.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map deleted file mode 100644 index 8a47569a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js deleted file mode 100644 index 7a57c476..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2020_promise = { - PromiseFulfilledResult: base_config_1.TYPE, - PromiseRejectedResult: base_config_1.TYPE, - PromiseSettledResult: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.promise.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map deleted file mode 100644 index b1f54fab..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.promise.js","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,oBAAoB,EAAE,kBAAI;IAC1B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts deleted file mode 100644 index ebbb06c0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_sharedmemory: Record; -//# sourceMappingURL=es2020.sharedmemory.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map deleted file mode 100644 index 364d84f2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,mBAAmB,EAE3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js deleted file mode 100644 index f452550a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -exports.es2020_sharedmemory = { - Atomics: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.sharedmemory.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map deleted file mode 100644 index dd5f1c59..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts deleted file mode 100644 index 2d116e7d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_string: Record; -//# sourceMappingURL=es2020.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map deleted file mode 100644 index a686717e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAGrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js deleted file mode 100644 index 507cb6a1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_string = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2020_string = { - ...es2015_iterable_1.es2015_iterable, - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map deleted file mode 100644 index 18b50f9f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.string.js","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B,GAAG,iCAAe;IAClB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts deleted file mode 100644 index 682c705a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_symbol_wellknown: Record; -//# sourceMappingURL=es2020.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map deleted file mode 100644 index 28e8e636..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,uBAAuB,EAK/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js deleted file mode 100644 index 7e1f4e5f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_symbol_wellknown = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2020_symbol_wellknown = { - ...es2015_iterable_1.es2015_iterable, - ...es2015_symbol_1.es2015_symbol, - SymbolConstructor: base_config_1.TYPE, - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.symbol.wellknown.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map deleted file mode 100644 index 27c14f1a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG;IACrC,GAAG,iCAAe;IAClB,GAAG,6BAAa;IAChB,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts deleted file mode 100644 index c9ff9f6b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021: Record; -//# sourceMappingURL=es2021.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map deleted file mode 100644 index e37f064b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,MAAM,EAMd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts deleted file mode 100644 index 31fc0ef7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_full: Record; -//# sourceMappingURL=es2021.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map deleted file mode 100644 index 923d0ddc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js deleted file mode 100644 index 2465a4b0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2021_1 = require("./es2021"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2021_full = { - ...es2021_1.es2021, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2021.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map deleted file mode 100644 index bbea5142..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.full.js","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts deleted file mode 100644 index 4435689d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_intl: Record; -//# sourceMappingURL=es2021.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map deleted file mode 100644 index a0a539e0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js deleted file mode 100644 index d5c1956a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2021.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map deleted file mode 100644 index d2731246..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.intl.js","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js deleted file mode 100644 index 86b11bb8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021 = void 0; -const es2020_1 = require("./es2020"); -const es2021_intl_1 = require("./es2021.intl"); -const es2021_promise_1 = require("./es2021.promise"); -const es2021_string_1 = require("./es2021.string"); -const es2021_weakref_1 = require("./es2021.weakref"); -exports.es2021 = { - ...es2020_1.es2020, - ...es2021_promise_1.es2021_promise, - ...es2021_string_1.es2021_string, - ...es2021_weakref_1.es2021_weakref, - ...es2021_intl_1.es2021_intl, -}; -//# sourceMappingURL=es2021.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map deleted file mode 100644 index c1561caa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.js","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,+BAAc;IACjB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts deleted file mode 100644 index 8eb9e9ec..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_promise: Record; -//# sourceMappingURL=es2021.promise.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map deleted file mode 100644 index 5538bf5d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAItB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js deleted file mode 100644 index 85ed0f14..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_promise = { - AggregateError: base_config_1.TYPE_VALUE, - AggregateErrorConstructor: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.promise.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map deleted file mode 100644 index 5a79aa62..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.promise.js","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts deleted file mode 100644 index f54d34a0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_string: Record; -//# sourceMappingURL=es2021.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map deleted file mode 100644 index 533d39e1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js deleted file mode 100644 index f6c16c75..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map deleted file mode 100644 index 671e3936..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.string.js","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts deleted file mode 100644 index d7f5b674..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_weakref: Record; -//# sourceMappingURL=es2021.weakref.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map deleted file mode 100644 index 24ef9477..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js deleted file mode 100644 index 7fd94f9b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_weakref = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_weakref = { - WeakRef: base_config_1.TYPE_VALUE, - WeakRefConstructor: base_config_1.TYPE, - FinalizationRegistry: base_config_1.TYPE_VALUE, - FinalizationRegistryConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.weakref.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map deleted file mode 100644 index ef88357c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.weakref.js","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;CACQ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts deleted file mode 100644 index b9d87cde..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_array: Record; -//# sourceMappingURL=es2022.array.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map deleted file mode 100644 index 8a61a183..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js deleted file mode 100644 index 084c86e0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_array = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.array.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map deleted file mode 100644 index 400e9a50..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.array.js","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts deleted file mode 100644 index 12bc2fb9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022: Record; -//# sourceMappingURL=es2022.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map deleted file mode 100644 index 5c4231b3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,EASd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts deleted file mode 100644 index 6619e107..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_error: Record; -//# sourceMappingURL=es2022.error.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map deleted file mode 100644 index a7a06e56..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.error.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAWpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js deleted file mode 100644 index c1cd5ba6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_error = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_error = { - ErrorOptions: base_config_1.TYPE, - Error: base_config_1.TYPE, - ErrorConstructor: base_config_1.TYPE, - EvalErrorConstructor: base_config_1.TYPE, - RangeErrorConstructor: base_config_1.TYPE, - ReferenceErrorConstructor: base_config_1.TYPE, - SyntaxErrorConstructor: base_config_1.TYPE, - TypeErrorConstructor: base_config_1.TYPE, - URIErrorConstructor: base_config_1.TYPE, - AggregateErrorConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.error.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map deleted file mode 100644 index 4f03cf66..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.error.js","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,kBAAI;IAClB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,yBAAyB,EAAE,kBAAI;IAC/B,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;IACzB,yBAAyB,EAAE,kBAAI;CACc,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts deleted file mode 100644 index df141b03..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_full: Record; -//# sourceMappingURL=es2022.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map deleted file mode 100644 index 5e745599..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js deleted file mode 100644 index aab18ad6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2022_1 = require("./es2022"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2022_full = { - ...es2022_1.es2022, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2022.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map deleted file mode 100644 index 03ef0348..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.full.js","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts deleted file mode 100644 index 2b2c0813..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_intl: Record; -//# sourceMappingURL=es2022.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map deleted file mode 100644 index 521dc464..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js deleted file mode 100644 index 8c9373a5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2022.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map deleted file mode 100644 index ec8361fb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.intl.js","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js deleted file mode 100644 index 64c36ace..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022 = void 0; -const es2021_1 = require("./es2021"); -const es2022_array_1 = require("./es2022.array"); -const es2022_error_1 = require("./es2022.error"); -const es2022_intl_1 = require("./es2022.intl"); -const es2022_object_1 = require("./es2022.object"); -const es2022_regexp_1 = require("./es2022.regexp"); -const es2022_sharedmemory_1 = require("./es2022.sharedmemory"); -const es2022_string_1 = require("./es2022.string"); -exports.es2022 = { - ...es2021_1.es2021, - ...es2022_array_1.es2022_array, - ...es2022_error_1.es2022_error, - ...es2022_intl_1.es2022_intl, - ...es2022_object_1.es2022_object, - ...es2022_sharedmemory_1.es2022_sharedmemory, - ...es2022_string_1.es2022_string, - ...es2022_regexp_1.es2022_regexp, -}; -//# sourceMappingURL=es2022.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map deleted file mode 100644 index 9e5e552f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.js","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,2BAAY;IACf,GAAG,yBAAW;IACd,GAAG,6BAAa;IAChB,GAAG,yCAAmB;IACtB,GAAG,6BAAa;IAChB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts deleted file mode 100644 index ffbb45d9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_object: Record; -//# sourceMappingURL=es2022.object.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map deleted file mode 100644 index 9595fdea..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js deleted file mode 100644 index a03f8695..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_object = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_object = { - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.object.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map deleted file mode 100644 index 3fb06678..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.object.js","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts deleted file mode 100644 index 1501510d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_regexp: Record; -//# sourceMappingURL=es2022.regexp.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map deleted file mode 100644 index 0637c9b0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAKrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js deleted file mode 100644 index 80df48d7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_regexp = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_regexp = { - RegExpMatchArray: base_config_1.TYPE, - RegExpExecArray: base_config_1.TYPE, - RegExpIndicesArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.regexp.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map deleted file mode 100644 index 3109f7c7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.regexp.js","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts deleted file mode 100644 index 5d547efe..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_sharedmemory: Record; -//# sourceMappingURL=es2022.sharedmemory.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map deleted file mode 100644 index 47213f6a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,mBAAmB,EAE3B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js deleted file mode 100644 index 00b0feb2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_sharedmemory = { - Atomics: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.sharedmemory.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map deleted file mode 100644 index 5501cf3d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2022.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts deleted file mode 100644 index d1284cd4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_string: Record; -//# sourceMappingURL=es2022.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map deleted file mode 100644 index 77ea8afa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js deleted file mode 100644 index 18621ed2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map deleted file mode 100644 index 486e6781..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.string.js","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts deleted file mode 100644 index ef56316f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_array: Record; -//# sourceMappingURL=es2023.array.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map deleted file mode 100644 index e6d18f35..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAcpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js deleted file mode 100644 index 250606e8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2023_array = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2023.array.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map deleted file mode 100644 index 89787e58..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.array.js","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts deleted file mode 100644 index 4f773c89..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_collection: Record; -//# sourceMappingURL=es2023.collection.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map deleted file mode 100644 index d8315657..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAEzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js deleted file mode 100644 index 66c80e60..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_collection = void 0; -const base_config_1 = require("./base-config"); -exports.es2023_collection = { - WeakKeyTypes: base_config_1.TYPE, -}; -//# sourceMappingURL=es2023.collection.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map deleted file mode 100644 index bd539ca5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.collection.js","sourceRoot":"","sources":["../../src/lib/es2023.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts deleted file mode 100644 index 17e3cf0d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023: Record; -//# sourceMappingURL=es2023.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map deleted file mode 100644 index 345561ee..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,MAAM,EAKd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts deleted file mode 100644 index ac43b5cf..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_full: Record; -//# sourceMappingURL=es2023.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map deleted file mode 100644 index 3d6ac937..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js deleted file mode 100644 index 1c7ecc7a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es2023_1 = require("./es2023"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2023_full = { - ...es2023_1.es2023, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=es2023.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map deleted file mode 100644 index 32389be9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.full.js","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts deleted file mode 100644 index e8581d3d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_intl: Record; -//# sourceMappingURL=es2023.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map deleted file mode 100644 index 9ca8fd07..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js deleted file mode 100644 index c6a2c6ff..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2023_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2023.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map deleted file mode 100644 index a0804072..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.intl.js","sourceRoot":"","sources":["../../src/lib/es2023.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js deleted file mode 100644 index 1cc68e47..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023 = void 0; -const es2022_1 = require("./es2022"); -const es2023_array_1 = require("./es2023.array"); -const es2023_collection_1 = require("./es2023.collection"); -const es2023_intl_1 = require("./es2023.intl"); -exports.es2023 = { - ...es2022_1.es2022, - ...es2023_array_1.es2023_array, - ...es2023_collection_1.es2023_collection, - ...es2023_intl_1.es2023_intl, -}; -//# sourceMappingURL=es2023.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map deleted file mode 100644 index 2dade493..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.js","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,+CAA4C;AAE/B,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,2BAAY;IACf,GAAG,qCAAiB;IACpB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts deleted file mode 100644 index 24dc6090..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es5: Record; -//# sourceMappingURL=es5.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map deleted file mode 100644 index 358f46a5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es5.d.ts","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,GAAG,EA0GX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js deleted file mode 100644 index c4220047..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es5 = void 0; -const base_config_1 = require("./base-config"); -const decorators_1 = require("./decorators"); -const decorators_legacy_1 = require("./decorators.legacy"); -exports.es5 = { - ...decorators_1.decorators, - ...decorators_legacy_1.decorators_legacy, - Symbol: base_config_1.TYPE, - PropertyKey: base_config_1.TYPE, - PropertyDescriptor: base_config_1.TYPE, - PropertyDescriptorMap: base_config_1.TYPE, - Object: base_config_1.TYPE_VALUE, - ObjectConstructor: base_config_1.TYPE, - Function: base_config_1.TYPE_VALUE, - FunctionConstructor: base_config_1.TYPE, - ThisParameterType: base_config_1.TYPE, - OmitThisParameter: base_config_1.TYPE, - CallableFunction: base_config_1.TYPE, - NewableFunction: base_config_1.TYPE, - IArguments: base_config_1.TYPE, - String: base_config_1.TYPE_VALUE, - StringConstructor: base_config_1.TYPE, - Boolean: base_config_1.TYPE_VALUE, - BooleanConstructor: base_config_1.TYPE, - Number: base_config_1.TYPE_VALUE, - NumberConstructor: base_config_1.TYPE, - TemplateStringsArray: base_config_1.TYPE, - ImportMeta: base_config_1.TYPE, - ImportCallOptions: base_config_1.TYPE, - ImportAssertions: base_config_1.TYPE, - ImportAttributes: base_config_1.TYPE, - Math: base_config_1.TYPE_VALUE, - Date: base_config_1.TYPE_VALUE, - DateConstructor: base_config_1.TYPE, - RegExpMatchArray: base_config_1.TYPE, - RegExpExecArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE_VALUE, - RegExpConstructor: base_config_1.TYPE, - Error: base_config_1.TYPE_VALUE, - ErrorConstructor: base_config_1.TYPE, - EvalError: base_config_1.TYPE_VALUE, - EvalErrorConstructor: base_config_1.TYPE, - RangeError: base_config_1.TYPE_VALUE, - RangeErrorConstructor: base_config_1.TYPE, - ReferenceError: base_config_1.TYPE_VALUE, - ReferenceErrorConstructor: base_config_1.TYPE, - SyntaxError: base_config_1.TYPE_VALUE, - SyntaxErrorConstructor: base_config_1.TYPE, - TypeError: base_config_1.TYPE_VALUE, - TypeErrorConstructor: base_config_1.TYPE, - URIError: base_config_1.TYPE_VALUE, - URIErrorConstructor: base_config_1.TYPE, - JSON: base_config_1.TYPE_VALUE, - ReadonlyArray: base_config_1.TYPE, - ConcatArray: base_config_1.TYPE, - Array: base_config_1.TYPE_VALUE, - ArrayConstructor: base_config_1.TYPE, - TypedPropertyDescriptor: base_config_1.TYPE, - PromiseConstructorLike: base_config_1.TYPE, - PromiseLike: base_config_1.TYPE, - Promise: base_config_1.TYPE, - Awaited: base_config_1.TYPE, - ArrayLike: base_config_1.TYPE, - Partial: base_config_1.TYPE, - Required: base_config_1.TYPE, - Readonly: base_config_1.TYPE, - Pick: base_config_1.TYPE, - Record: base_config_1.TYPE, - Exclude: base_config_1.TYPE, - Extract: base_config_1.TYPE, - Omit: base_config_1.TYPE, - NonNullable: base_config_1.TYPE, - Parameters: base_config_1.TYPE, - ConstructorParameters: base_config_1.TYPE, - ReturnType: base_config_1.TYPE, - InstanceType: base_config_1.TYPE, - Uppercase: base_config_1.TYPE, - Lowercase: base_config_1.TYPE, - Capitalize: base_config_1.TYPE, - Uncapitalize: base_config_1.TYPE, - NoInfer: base_config_1.TYPE, - ThisType: base_config_1.TYPE, - WeakKeyTypes: base_config_1.TYPE, - WeakKey: base_config_1.TYPE, - ArrayBuffer: base_config_1.TYPE_VALUE, - ArrayBufferTypes: base_config_1.TYPE, - ArrayBufferLike: base_config_1.TYPE, - ArrayBufferConstructor: base_config_1.TYPE, - ArrayBufferView: base_config_1.TYPE, - DataView: base_config_1.TYPE_VALUE, - DataViewConstructor: base_config_1.TYPE, - Int8Array: base_config_1.TYPE_VALUE, - Int8ArrayConstructor: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE_VALUE, - Uint8ArrayConstructor: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE_VALUE, - Uint8ClampedArrayConstructor: base_config_1.TYPE, - Int16Array: base_config_1.TYPE_VALUE, - Int16ArrayConstructor: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE_VALUE, - Uint16ArrayConstructor: base_config_1.TYPE, - Int32Array: base_config_1.TYPE_VALUE, - Int32ArrayConstructor: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE_VALUE, - Uint32ArrayConstructor: base_config_1.TYPE, - Float32Array: base_config_1.TYPE_VALUE, - Float32ArrayConstructor: base_config_1.TYPE, - Float64Array: base_config_1.TYPE_VALUE, - Float64ArrayConstructor: base_config_1.TYPE, - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es5.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map deleted file mode 100644 index fcca87a2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es5.js","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AACjD,6CAA0C;AAC1C,2DAAwD;AAE3C,QAAA,GAAG,GAAG;IACjB,GAAG,uBAAU;IACb,GAAG,qCAAiB;IACpB,MAAM,EAAE,kBAAI;IACZ,WAAW,EAAE,kBAAI;IACjB,kBAAkB,EAAE,kBAAI;IACxB,qBAAqB,EAAE,kBAAI;IAC3B,MAAM,EAAE,wBAAU;IAClB,iBAAi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B,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,wBAAU;IACxB,uBAAuB,EAAE,kBAAI;IAC7B,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts deleted file mode 100644 index b0fc22fa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es6: Record; -//# sourceMappingURL=es6.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map deleted file mode 100644 index 7b67b498..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es6.d.ts","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,GAAG,EAWX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js deleted file mode 100644 index da4ad08c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es6 = void 0; -const es5_1 = require("./es5"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es6 = { - ...es5_1.es5, - ...es2015_core_1.es2015_core, - ...es2015_collection_1.es2015_collection, - ...es2015_iterable_1.es2015_iterable, - ...es2015_generator_1.es2015_generator, - ...es2015_promise_1.es2015_promise, - ...es2015_proxy_1.es2015_proxy, - ...es2015_reflect_1.es2015_reflect, - ...es2015_symbol_1.es2015_symbol, - ...es2015_symbol_wellknown_1.es2015_symbol_wellknown, -}; -//# sourceMappingURL=es6.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map deleted file mode 100644 index 44a1d4df..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,iCAAe;IAClB,GAAG,mCAAgB;IACnB,GAAG,+BAAc;IACjB,GAAG,2BAAY;IACf,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,iDAAuB;CACmB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts deleted file mode 100644 index 474bbd1e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es7: Record; -//# sourceMappingURL=es7.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map deleted file mode 100644 index 6c8dce0d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es7.d.ts","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,GAAG,EAIX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js deleted file mode 100644 index 9f60737d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es7 = void 0; -const es2015_1 = require("./es2015"); -const es2016_array_include_1 = require("./es2016.array.include"); -const es2016_intl_1 = require("./es2016.intl"); -exports.es7 = { - ...es2015_1.es2015, - ...es2016_array_include_1.es2016_array_include, - ...es2016_intl_1.es2016_intl, -}; -//# sourceMappingURL=es7.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map deleted file mode 100644 index 9c14d6dd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es7.js","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAE/B,QAAA,GAAG,GAAG;IACjB,GAAG,eAAM;IACT,GAAG,2CAAoB;IACvB,GAAG,yBAAW;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts deleted file mode 100644 index 779fb649..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_array: Record; -//# sourceMappingURL=esnext.array.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map deleted file mode 100644 index 96ffea10..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.array.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,EAEpB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js deleted file mode 100644 index dd322261..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_array = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_array = { - ArrayConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.array.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map deleted file mode 100644 index b18657a5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.array.js","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts deleted file mode 100644 index 0cb2d185..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_asynciterable: Record; -//# sourceMappingURL=esnext.asynciterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map deleted file mode 100644 index 73215c8e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAO5B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js deleted file mode 100644 index 09436911..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_asynciterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.esnext_asynciterable = { - ...es2015_symbol_1.es2015_symbol, - ...es2015_iterable_1.es2015_iterable, - SymbolConstructor: base_config_1.TYPE, - AsyncIterator: base_config_1.TYPE, - AsyncIterable: base_config_1.TYPE, - AsyncIterableIterator: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.asynciterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map deleted file mode 100644 index 41417c09..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.asynciterable.js","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG;IAClC,GAAG,6BAAa;IAChB,GAAG,iCAAe;IAClB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,qBAAqB,EAAE,kBAAI;CACkB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts deleted file mode 100644 index d879c0e7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_bigint: Record; -//# sourceMappingURL=esnext.bigint.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map deleted file mode 100644 index 58d39f91..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,EAWrB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js deleted file mode 100644 index 1a9d589b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_bigint = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.esnext_bigint = { - ...es2020_intl_1.es2020_intl, - BigIntToLocaleStringOptions: base_config_1.TYPE, - BigInt: base_config_1.TYPE_VALUE, - BigIntConstructor: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE_VALUE, - BigInt64ArrayConstructor: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE_VALUE, - BigUint64ArrayConstructor: base_config_1.TYPE, - DataView: base_config_1.TYPE, - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=esnext.bigint.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map deleted file mode 100644 index c5dc418b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.bigint.js","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG;IAC3B,GAAG,yBAAW;IACd,2BAA2B,EAAE,kBAAI;IACjC,MAAM,EAAE,wBAAU;IAClB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,wBAAU;IACzB,wBAAwB,EAAE,kBAAI;IAC9B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts deleted file mode 100644 index 94de9e18..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_collection: Record; -//# sourceMappingURL=esnext.collection.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map deleted file mode 100644 index c581770e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.collection.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js deleted file mode 100644 index 0ee50437..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_collection = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_collection = { - MapConstructor: base_config_1.TYPE, - ReadonlySetLike: base_config_1.TYPE, - Set: base_config_1.TYPE, - ReadonlySet: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.collection.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map deleted file mode 100644 index aab59b01..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.collection.js","sourceRoot":"","sources":["../../src/lib/esnext.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,eAAe,EAAE,kBAAI;IACrB,GAAG,EAAE,kBAAI;IACT,WAAW,EAAE,kBAAI;CAC4B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts deleted file mode 100644 index 30897cb1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext: Record; -//# sourceMappingURL=esnext.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map deleted file mode 100644 index f498f3da..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,EAWd,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts deleted file mode 100644 index b9cd30ca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_decorators: Record; -//# sourceMappingURL=esnext.decorators.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map deleted file mode 100644 index 276e4483..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.decorators.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAKzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js deleted file mode 100644 index 0b7f44c9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_decorators = void 0; -const base_config_1 = require("./base-config"); -const decorators_1 = require("./decorators"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.esnext_decorators = { - ...es2015_symbol_1.es2015_symbol, - ...decorators_1.decorators, - SymbolConstructor: base_config_1.TYPE, - Function: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.decorators.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map deleted file mode 100644 index 0ad0f577..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.decorators.js","sourceRoot":"","sources":["../../src/lib/esnext.decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AACrC,6CAA0C;AAC1C,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,GAAG,uBAAU;IACb,iBAAiB,EAAE,kBAAI;IACvB,QAAQ,EAAE,kBAAI;CAC+B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts deleted file mode 100644 index 86f4a6e6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_disposable: Record; -//# sourceMappingURL=esnext.disposable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map deleted file mode 100644 index 91ae9e51..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.disposable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAWzB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js deleted file mode 100644 index ebd501d8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_disposable = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.esnext_disposable = { - ...es2015_symbol_1.es2015_symbol, - SymbolConstructor: base_config_1.TYPE, - Disposable: base_config_1.TYPE, - AsyncDisposable: base_config_1.TYPE, - SuppressedError: base_config_1.TYPE_VALUE, - SuppressedErrorConstructor: base_config_1.TYPE, - DisposableStack: base_config_1.TYPE_VALUE, - DisposableStackConstructor: base_config_1.TYPE, - AsyncDisposableStack: base_config_1.TYPE_VALUE, - AsyncDisposableStackConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.disposable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map deleted file mode 100644 index e1a19adf..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.disposable.js","sourceRoot":"","sources":["../../src/lib/esnext.disposable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AACjD,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,6BAAa;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,eAAe,EAAE,wBAAU;IAC3B,0BAA0B,EAAE,kBAAI;IAChC,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;CACQ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts deleted file mode 100644 index 6c0fb48d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_full: Record; -//# sourceMappingURL=esnext.full.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map deleted file mode 100644 index 696b420a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.full.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,WAAW,EAOnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js deleted file mode 100644 index 60077f5f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_full = void 0; -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const esnext_1 = require("./esnext"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.esnext_full = { - ...esnext_1.esnext, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, - ...dom_iterable_1.dom_iterable, - ...dom_asynciterable_1.dom_asynciterable, -}; -//# sourceMappingURL=esnext.full.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map deleted file mode 100644 index c783aff7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.full.js","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG;IACzB,GAAG,eAAM;IACT,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;IACb,GAAG,2BAAY;IACf,GAAG,qCAAiB;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts deleted file mode 100644 index 892587a4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_intl: Record; -//# sourceMappingURL=esnext.intl.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map deleted file mode 100644 index e6e7cb26..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.intl.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,EAEnB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js deleted file mode 100644 index cc49679a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_intl = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=esnext.intl.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map deleted file mode 100644 index 755bf870..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.intl.js","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js deleted file mode 100644 index 7ede84b0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext = void 0; -const es2023_1 = require("./es2023"); -const esnext_array_1 = require("./esnext.array"); -const esnext_collection_1 = require("./esnext.collection"); -const esnext_decorators_1 = require("./esnext.decorators"); -const esnext_disposable_1 = require("./esnext.disposable"); -const esnext_intl_1 = require("./esnext.intl"); -const esnext_object_1 = require("./esnext.object"); -const esnext_promise_1 = require("./esnext.promise"); -const esnext_regexp_1 = require("./esnext.regexp"); -const esnext_string_1 = require("./esnext.string"); -exports.esnext = { - ...es2023_1.es2023, - ...esnext_intl_1.esnext_intl, - ...esnext_decorators_1.esnext_decorators, - ...esnext_disposable_1.esnext_disposable, - ...esnext_promise_1.esnext_promise, - ...esnext_object_1.esnext_object, - ...esnext_collection_1.esnext_collection, - ...esnext_array_1.esnext_array, - ...esnext_regexp_1.esnext_regexp, - ...esnext_string_1.esnext_string, -}; -//# sourceMappingURL=esnext.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map deleted file mode 100644 index 894bf16c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.js","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,qCAAkC;AAClC,iDAA8C;AAC9C,2DAAwD;AACxD,2DAAwD;AACxD,2DAAwD;AACxD,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG;IACpB,GAAG,eAAM;IACT,GAAG,yBAAW;IACd,GAAG,qCAAiB;IACpB,GAAG,qCAAiB;IACpB,GAAG,+BAAc;IACjB,GAAG,6BAAa;IAChB,GAAG,qCAAiB;IACpB,GAAG,2BAAY;IACf,GAAG,6BAAa;IAChB,GAAG,6BAAa;CAC6B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts deleted file mode 100644 index 3e43e0b1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_object: Record; -//# sourceMappingURL=esnext.object.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map deleted file mode 100644 index e016701c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.object.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js deleted file mode 100644 index 8e180d68..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_object = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_object = { - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.object.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map deleted file mode 100644 index ea1d47ae..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.object.js","sourceRoot":"","sources":["../../src/lib/esnext.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts deleted file mode 100644 index aae1ed13..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_promise: Record; -//# sourceMappingURL=esnext.promise.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map deleted file mode 100644 index 17ef5944..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.promise.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAGtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js deleted file mode 100644 index 78101a3b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_promise = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_promise = { - PromiseWithResolvers: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.promise.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map deleted file mode 100644 index 83435b94..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.promise.js","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts deleted file mode 100644 index acc6dda4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_regexp: Record; -//# sourceMappingURL=esnext.regexp.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map deleted file mode 100644 index 002c89b0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js deleted file mode 100644 index 819aa882..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_regexp = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_regexp = { - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.regexp.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map deleted file mode 100644 index 8eb2bbe0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.regexp.js","sourceRoot":"","sources":["../../src/lib/esnext.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts deleted file mode 100644 index 238f2890..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_string: Record; -//# sourceMappingURL=esnext.string.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map deleted file mode 100644 index c79c16e5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.string.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js deleted file mode 100644 index 0aab283d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_string = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.string.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map deleted file mode 100644 index 4d9077bb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.string.js","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts deleted file mode 100644 index a09a2927..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_symbol: Record; -//# sourceMappingURL=esnext.symbol.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map deleted file mode 100644 index ed2ec0be..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,EAErB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js deleted file mode 100644 index df46aa26..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_symbol = { - Symbol: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.symbol.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map deleted file mode 100644 index 8c7a7b9f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.symbol.js","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts deleted file mode 100644 index 1f2b6727..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_weakref: Record; -//# sourceMappingURL=esnext.weakref.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map deleted file mode 100644 index a48f1aca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,EAKtB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js deleted file mode 100644 index ca52f660..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_weakref = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_weakref = { - WeakRef: base_config_1.TYPE_VALUE, - WeakRefConstructor: base_config_1.TYPE, - FinalizationRegistry: base_config_1.TYPE_VALUE, - FinalizationRegistryConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.weakref.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map deleted file mode 100644 index 5b0686ea..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.weakref.js","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;CACQ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts deleted file mode 100644 index 90de4a23..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -declare const lib: { - readonly es5: Record; - readonly es6: Record; - readonly es2015: Record; - readonly es7: Record; - readonly es2016: Record; - readonly es2017: Record; - readonly es2018: Record; - readonly es2019: Record; - readonly es2020: Record; - readonly es2021: Record; - readonly es2022: Record; - readonly es2023: Record; - readonly esnext: Record; - readonly dom: Record; - readonly 'dom.iterable': Record; - readonly 'dom.asynciterable': Record; - readonly webworker: Record; - readonly 'webworker.importscripts': Record; - readonly 'webworker.iterable': Record; - readonly 'webworker.asynciterable': Record; - readonly scripthost: Record; - readonly 'es2015.core': Record; - readonly 'es2015.collection': Record; - readonly 'es2015.generator': Record; - readonly 'es2015.iterable': Record; - readonly 'es2015.promise': Record; - readonly 'es2015.proxy': Record; - readonly 'es2015.reflect': Record; - readonly 'es2015.symbol': Record; - readonly 'es2015.symbol.wellknown': Record; - readonly 'es2016.array.include': Record; - readonly 'es2016.intl': Record; - readonly 'es2017.date': Record; - readonly 'es2017.object': Record; - readonly 'es2017.sharedmemory': Record; - readonly 'es2017.string': Record; - readonly 'es2017.intl': Record; - readonly 'es2017.typedarrays': Record; - readonly 'es2018.asyncgenerator': Record; - readonly 'es2018.asynciterable': Record; - readonly 'es2018.intl': Record; - readonly 'es2018.promise': Record; - readonly 'es2018.regexp': Record; - readonly 'es2019.array': Record; - readonly 'es2019.object': Record; - readonly 'es2019.string': Record; - readonly 'es2019.symbol': Record; - readonly 'es2019.intl': Record; - readonly 'es2020.bigint': Record; - readonly 'es2020.date': Record; - readonly 'es2020.promise': Record; - readonly 'es2020.sharedmemory': Record; - readonly 'es2020.string': Record; - readonly 'es2020.symbol.wellknown': Record; - readonly 'es2020.intl': Record; - readonly 'es2020.number': Record; - readonly 'es2021.promise': Record; - readonly 'es2021.string': Record; - readonly 'es2021.weakref': Record; - readonly 'es2021.intl': Record; - readonly 'es2022.array': Record; - readonly 'es2022.error': Record; - readonly 'es2022.intl': Record; - readonly 'es2022.object': Record; - readonly 'es2022.sharedmemory': Record; - readonly 'es2022.string': Record; - readonly 'es2022.regexp': Record; - readonly 'es2023.array': Record; - readonly 'es2023.collection': Record; - readonly 'es2023.intl': Record; - readonly 'esnext.array': Record; - readonly 'esnext.collection': Record; - readonly 'esnext.symbol': Record; - readonly 'esnext.asynciterable': Record; - readonly 'esnext.intl': Record; - readonly 'esnext.disposable': Record; - readonly 'esnext.bigint': Record; - readonly 'esnext.string': Record; - readonly 'esnext.promise': Record; - readonly 'esnext.weakref': Record; - readonly 'esnext.decorators': Record; - readonly 'esnext.object': Record; - readonly 'esnext.regexp': Record; - readonly decorators: Record; - readonly 'decorators.legacy': Record; - readonly 'es2016.full': Record; - readonly 'es2017.full': Record; - readonly 'es2018.full': Record; - readonly 'es2019.full': Record; - readonly 'es2020.full': Record; - readonly 'es2021.full': Record; - readonly 'es2022.full': Record; - readonly 'es2023.full': Record; - readonly 'esnext.full': Record; - readonly lib: Record; -}; -export { lib }; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map deleted file mode 100644 index 95b63768..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAqGA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGC,CAAC;AAEX,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js deleted file mode 100644 index 276ba144..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lib = void 0; -const decorators_1 = require("./decorators"); -const decorators_legacy_1 = require("./decorators.legacy"); -const dom_1 = require("./dom"); -const dom_asynciterable_1 = require("./dom.asynciterable"); -const dom_iterable_1 = require("./dom.iterable"); -const es5_1 = require("./es5"); -const es6_1 = require("./es6"); -const es7_1 = require("./es7"); -const es2015_1 = require("./es2015"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -const es2016_1 = require("./es2016"); -const es2016_array_include_1 = require("./es2016.array.include"); -const es2016_full_1 = require("./es2016.full"); -const es2016_intl_1 = require("./es2016.intl"); -const es2017_1 = require("./es2017"); -const es2017_date_1 = require("./es2017.date"); -const es2017_full_1 = require("./es2017.full"); -const es2017_intl_1 = require("./es2017.intl"); -const es2017_object_1 = require("./es2017.object"); -const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); -const es2017_string_1 = require("./es2017.string"); -const es2017_typedarrays_1 = require("./es2017.typedarrays"); -const es2018_1 = require("./es2018"); -const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -const es2018_full_1 = require("./es2018.full"); -const es2018_intl_1 = require("./es2018.intl"); -const es2018_promise_1 = require("./es2018.promise"); -const es2018_regexp_1 = require("./es2018.regexp"); -const es2019_1 = require("./es2019"); -const es2019_array_1 = require("./es2019.array"); -const es2019_full_1 = require("./es2019.full"); -const es2019_intl_1 = require("./es2019.intl"); -const es2019_object_1 = require("./es2019.object"); -const es2019_string_1 = require("./es2019.string"); -const es2019_symbol_1 = require("./es2019.symbol"); -const es2020_1 = require("./es2020"); -const es2020_bigint_1 = require("./es2020.bigint"); -const es2020_date_1 = require("./es2020.date"); -const es2020_full_1 = require("./es2020.full"); -const es2020_intl_1 = require("./es2020.intl"); -const es2020_number_1 = require("./es2020.number"); -const es2020_promise_1 = require("./es2020.promise"); -const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); -const es2020_string_1 = require("./es2020.string"); -const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); -const es2021_1 = require("./es2021"); -const es2021_full_1 = require("./es2021.full"); -const es2021_intl_1 = require("./es2021.intl"); -const es2021_promise_1 = require("./es2021.promise"); -const es2021_string_1 = require("./es2021.string"); -const es2021_weakref_1 = require("./es2021.weakref"); -const es2022_1 = require("./es2022"); -const es2022_array_1 = require("./es2022.array"); -const es2022_error_1 = require("./es2022.error"); -const es2022_full_1 = require("./es2022.full"); -const es2022_intl_1 = require("./es2022.intl"); -const es2022_object_1 = require("./es2022.object"); -const es2022_regexp_1 = require("./es2022.regexp"); -const es2022_sharedmemory_1 = require("./es2022.sharedmemory"); -const es2022_string_1 = require("./es2022.string"); -const es2023_1 = require("./es2023"); -const es2023_array_1 = require("./es2023.array"); -const es2023_collection_1 = require("./es2023.collection"); -const es2023_full_1 = require("./es2023.full"); -const es2023_intl_1 = require("./es2023.intl"); -const esnext_1 = require("./esnext"); -const esnext_array_1 = require("./esnext.array"); -const esnext_asynciterable_1 = require("./esnext.asynciterable"); -const esnext_bigint_1 = require("./esnext.bigint"); -const esnext_collection_1 = require("./esnext.collection"); -const esnext_decorators_1 = require("./esnext.decorators"); -const esnext_disposable_1 = require("./esnext.disposable"); -const esnext_full_1 = require("./esnext.full"); -const esnext_intl_1 = require("./esnext.intl"); -const esnext_object_1 = require("./esnext.object"); -const esnext_promise_1 = require("./esnext.promise"); -const esnext_regexp_1 = require("./esnext.regexp"); -const esnext_string_1 = require("./esnext.string"); -const esnext_symbol_1 = require("./esnext.symbol"); -const esnext_weakref_1 = require("./esnext.weakref"); -const lib_1 = require("./lib"); -const scripthost_1 = require("./scripthost"); -const webworker_1 = require("./webworker"); -const webworker_asynciterable_1 = require("./webworker.asynciterable"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -const webworker_iterable_1 = require("./webworker.iterable"); -const lib = { - es5: es5_1.es5, - es6: es6_1.es6, - es2015: es2015_1.es2015, - es7: es7_1.es7, - es2016: es2016_1.es2016, - es2017: es2017_1.es2017, - es2018: es2018_1.es2018, - es2019: es2019_1.es2019, - es2020: es2020_1.es2020, - es2021: es2021_1.es2021, - es2022: es2022_1.es2022, - es2023: es2023_1.es2023, - esnext: esnext_1.esnext, - dom: dom_1.dom, - 'dom.iterable': dom_iterable_1.dom_iterable, - 'dom.asynciterable': dom_asynciterable_1.dom_asynciterable, - webworker: webworker_1.webworker, - 'webworker.importscripts': webworker_importscripts_1.webworker_importscripts, - 'webworker.iterable': webworker_iterable_1.webworker_iterable, - 'webworker.asynciterable': webworker_asynciterable_1.webworker_asynciterable, - scripthost: scripthost_1.scripthost, - 'es2015.core': es2015_core_1.es2015_core, - 'es2015.collection': es2015_collection_1.es2015_collection, - 'es2015.generator': es2015_generator_1.es2015_generator, - 'es2015.iterable': es2015_iterable_1.es2015_iterable, - 'es2015.promise': es2015_promise_1.es2015_promise, - 'es2015.proxy': es2015_proxy_1.es2015_proxy, - 'es2015.reflect': es2015_reflect_1.es2015_reflect, - 'es2015.symbol': es2015_symbol_1.es2015_symbol, - 'es2015.symbol.wellknown': es2015_symbol_wellknown_1.es2015_symbol_wellknown, - 'es2016.array.include': es2016_array_include_1.es2016_array_include, - 'es2016.intl': es2016_intl_1.es2016_intl, - 'es2017.date': es2017_date_1.es2017_date, - 'es2017.object': es2017_object_1.es2017_object, - 'es2017.sharedmemory': es2017_sharedmemory_1.es2017_sharedmemory, - 'es2017.string': es2017_string_1.es2017_string, - 'es2017.intl': es2017_intl_1.es2017_intl, - 'es2017.typedarrays': es2017_typedarrays_1.es2017_typedarrays, - 'es2018.asyncgenerator': es2018_asyncgenerator_1.es2018_asyncgenerator, - 'es2018.asynciterable': es2018_asynciterable_1.es2018_asynciterable, - 'es2018.intl': es2018_intl_1.es2018_intl, - 'es2018.promise': es2018_promise_1.es2018_promise, - 'es2018.regexp': es2018_regexp_1.es2018_regexp, - 'es2019.array': es2019_array_1.es2019_array, - 'es2019.object': es2019_object_1.es2019_object, - 'es2019.string': es2019_string_1.es2019_string, - 'es2019.symbol': es2019_symbol_1.es2019_symbol, - 'es2019.intl': es2019_intl_1.es2019_intl, - 'es2020.bigint': es2020_bigint_1.es2020_bigint, - 'es2020.date': es2020_date_1.es2020_date, - 'es2020.promise': es2020_promise_1.es2020_promise, - 'es2020.sharedmemory': es2020_sharedmemory_1.es2020_sharedmemory, - 'es2020.string': es2020_string_1.es2020_string, - 'es2020.symbol.wellknown': es2020_symbol_wellknown_1.es2020_symbol_wellknown, - 'es2020.intl': es2020_intl_1.es2020_intl, - 'es2020.number': es2020_number_1.es2020_number, - 'es2021.promise': es2021_promise_1.es2021_promise, - 'es2021.string': es2021_string_1.es2021_string, - 'es2021.weakref': es2021_weakref_1.es2021_weakref, - 'es2021.intl': es2021_intl_1.es2021_intl, - 'es2022.array': es2022_array_1.es2022_array, - 'es2022.error': es2022_error_1.es2022_error, - 'es2022.intl': es2022_intl_1.es2022_intl, - 'es2022.object': es2022_object_1.es2022_object, - 'es2022.sharedmemory': es2022_sharedmemory_1.es2022_sharedmemory, - 'es2022.string': es2022_string_1.es2022_string, - 'es2022.regexp': es2022_regexp_1.es2022_regexp, - 'es2023.array': es2023_array_1.es2023_array, - 'es2023.collection': es2023_collection_1.es2023_collection, - 'es2023.intl': es2023_intl_1.es2023_intl, - 'esnext.array': esnext_array_1.esnext_array, - 'esnext.collection': esnext_collection_1.esnext_collection, - 'esnext.symbol': esnext_symbol_1.esnext_symbol, - 'esnext.asynciterable': esnext_asynciterable_1.esnext_asynciterable, - 'esnext.intl': esnext_intl_1.esnext_intl, - 'esnext.disposable': esnext_disposable_1.esnext_disposable, - 'esnext.bigint': esnext_bigint_1.esnext_bigint, - 'esnext.string': esnext_string_1.esnext_string, - 'esnext.promise': esnext_promise_1.esnext_promise, - 'esnext.weakref': esnext_weakref_1.esnext_weakref, - 'esnext.decorators': esnext_decorators_1.esnext_decorators, - 'esnext.object': esnext_object_1.esnext_object, - 'esnext.regexp': esnext_regexp_1.esnext_regexp, - decorators: decorators_1.decorators, - 'decorators.legacy': decorators_legacy_1.decorators_legacy, - 'es2016.full': es2016_full_1.es2016_full, - 'es2017.full': es2017_full_1.es2017_full, - 'es2018.full': es2018_full_1.es2018_full, - 'es2019.full': es2019_full_1.es2019_full, - 'es2020.full': es2020_full_1.es2020_full, - 'es2021.full': es2021_full_1.es2021_full, - 'es2022.full': es2022_full_1.es2022_full, - 'es2023.full': es2023_full_1.es2023_full, - 'esnext.full': esnext_full_1.esnext_full, - lib: lib_1.lib, -}; -exports.lib = lib; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map deleted file mode 100644 index 904231a7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAE3B,6CAA0C;AAC1C,2DAAwD;AACxD,+BAA4B;AAC5B,2DAAwD;AACxD,iDAA8C;AAC9C,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,qCAAkC;AAClC,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AACpE,qCAAkC;AAClC,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qCAAkC;AAClC,+CAA4C;AAC5C,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAC1D,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,+CAA4C;A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B,aAAa,EAAE,yBAAW;IAC1B,eAAe,EAAE,6BAAa;IAC9B,qBAAqB,EAAE,yCAAmB;IAC1C,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,cAAc,EAAE,2BAAY;IAC5B,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,cAAc,EAAE,2BAAY;IAC5B,mBAAmB,EAAE,qCAAiB;IACtC,eAAe,EAAE,6BAAa;IAC9B,sBAAsB,EAAE,2CAAoB;IAC5C,aAAa,EAAE,yBAAW;IAC1B,mBAAmB,EAAE,qCAAiB;IACtC,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,gBAAgB,EAAE,+BAAc;IAChC,gBAAgB,EAAE,+BAAc;IAChC,mBAAmB,EAAE,qCAAiB;IACtC,eAAe,EAAE,6BAAa;IAC9B,eAAe,EAAE,6BAAa;IAC9B,UAAU,EAAV,uBAAU;IACV,mBAAmB,EAAE,qCAAiB;IACtC,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,aAAa,EAAE,yBAAW;IAC1B,GAAG,EAAE,SAAO;CACJ,CAAC;AAEF,kBAAG"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts deleted file mode 100644 index a6b2263d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const lib: Record; -//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map deleted file mode 100644 index 4078f486..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,EAKX,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js deleted file mode 100644 index 566b4a72..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lib = void 0; -const dom_1 = require("./dom"); -const es5_1 = require("./es5"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.lib = { - ...es5_1.es5, - ...dom_1.dom, - ...webworker_importscripts_1.webworker_importscripts, - ...scripthost_1.scripthost, -}; -//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map deleted file mode 100644 index 6b0e9ad0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+BAA4B;AAC5B,+BAA4B;AAC5B,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,GAAG,GAAG;IACjB,GAAG,SAAG;IACN,GAAG,SAAG;IACN,GAAG,iDAAuB;IAC1B,GAAG,uBAAU;CACgC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts deleted file mode 100644 index 4e066f50..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const scripthost: Record; -//# sourceMappingURL=scripthost.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map deleted file mode 100644 index 1c735239..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scripthost.d.ts","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,UAAU,EAclB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js deleted file mode 100644 index 16fc8e54..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scripthost = void 0; -const base_config_1 = require("./base-config"); -exports.scripthost = { - ActiveXObject: base_config_1.TYPE_VALUE, - ITextWriter: base_config_1.TYPE, - TextStreamBase: base_config_1.TYPE, - TextStreamWriter: base_config_1.TYPE, - TextStreamReader: base_config_1.TYPE, - SafeArray: base_config_1.TYPE_VALUE, - Enumerator: base_config_1.TYPE_VALUE, - EnumeratorConstructor: base_config_1.TYPE, - VBArray: base_config_1.TYPE_VALUE, - VBArrayConstructor: base_config_1.TYPE, - VarDate: base_config_1.TYPE_VALUE, - DateConstructor: base_config_1.TYPE, - Date: base_config_1.TYPE, -}; -//# sourceMappingURL=scripthost.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map deleted file mode 100644 index d408a3fd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scripthost.js","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,wBAAU;IACzB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,wBAAU;IACrB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,wBAAU;IACnB,eAAe,EAAE,kBAAI;IACrB,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts deleted file mode 100644 index d8da1baa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker_asynciterable: Record; -//# sourceMappingURL=webworker.asynciterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map deleted file mode 100644 index 7633e487..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,uBAAuB,EAG/B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js deleted file mode 100644 index 25d8c823..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker_asynciterable = void 0; -const base_config_1 = require("./base-config"); -exports.webworker_asynciterable = { - FileSystemDirectoryHandle: base_config_1.TYPE, - ReadableStream: base_config_1.TYPE, -}; -//# sourceMappingURL=webworker.asynciterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map deleted file mode 100644 index a193fdf2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.asynciterable.js","sourceRoot":"","sources":["../../src/lib/webworker.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,uBAAuB,GAAG;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts deleted file mode 100644 index 87c0e941..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker: Record; -//# sourceMappingURL=webworker.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map deleted file mode 100644 index 1bc18b68..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,SAAS,EAqkBjB,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts deleted file mode 100644 index c042e506..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker_importscripts: Record; -//# sourceMappingURL=webworker.importscripts.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map deleted file mode 100644 index 1885ad20..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.importscripts.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAS,MAAM,CACjD,MAAM,EACN,0BAA0B,CAC3B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js deleted file mode 100644 index 06726a77..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker_importscripts = void 0; -exports.webworker_importscripts = {}; -//# sourceMappingURL=webworker.importscripts.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map deleted file mode 100644 index 4c4f6774..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.importscripts.js","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAId,QAAA,uBAAuB,GAAG,EAGtC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts deleted file mode 100644 index 207cf1f7..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker_iterable: Record; -//# sourceMappingURL=webworker.iterable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map deleted file mode 100644 index 156d6773..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAyB1B,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js deleted file mode 100644 index bea077b4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker_iterable = void 0; -const base_config_1 = require("./base-config"); -exports.webworker_iterable = { - AbortSignal: base_config_1.TYPE, - CSSNumericArray: base_config_1.TYPE, - CSSTransformValue: base_config_1.TYPE, - CSSUnparsedValue: base_config_1.TYPE, - Cache: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - DOMStringList: base_config_1.TYPE, - FileList: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE, - FormData: base_config_1.TYPE, - Headers: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE, - IDBObjectStore: base_config_1.TYPE, - MessageEvent: base_config_1.TYPE, - StylePropertyMapReadOnly: base_config_1.TYPE, - SubtleCrypto: base_config_1.TYPE, - URLSearchParams: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, -}; -//# sourceMappingURL=webworker.iterable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map deleted file mode 100644 index a9049e87..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.iterable.js","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,gBAAgB,EAAE,kBAAI;IACtB,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,aAAa,EAAE,kBAAI;IACnB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,OAAO,EAAE,kBAAI;IACb,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,wBAAwB,EAAE,kBAAI;IAC9B,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js deleted file mode 100644 index a4880146..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +++ /dev/null @@ -1,591 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker = void 0; -const base_config_1 = require("./base-config"); -exports.webworker = { - AddEventListenerOptions: base_config_1.TYPE, - AesCbcParams: base_config_1.TYPE, - AesCtrParams: base_config_1.TYPE, - AesDerivedKeyParams: base_config_1.TYPE, - AesGcmParams: base_config_1.TYPE, - AesKeyAlgorithm: base_config_1.TYPE, - AesKeyGenParams: base_config_1.TYPE, - Algorithm: base_config_1.TYPE, - AudioConfiguration: base_config_1.TYPE, - AvcEncoderConfig: base_config_1.TYPE, - BlobPropertyBag: base_config_1.TYPE, - CSSMatrixComponentOptions: base_config_1.TYPE, - CSSNumericType: base_config_1.TYPE, - CacheQueryOptions: base_config_1.TYPE, - ClientQueryOptions: base_config_1.TYPE, - CloseEventInit: base_config_1.TYPE, - CryptoKeyPair: base_config_1.TYPE, - CustomEventInit: base_config_1.TYPE, - DOMMatrix2DInit: base_config_1.TYPE, - DOMMatrixInit: base_config_1.TYPE, - DOMPointInit: base_config_1.TYPE, - DOMQuadInit: base_config_1.TYPE, - DOMRectInit: base_config_1.TYPE, - EcKeyGenParams: base_config_1.TYPE, - EcKeyImportParams: base_config_1.TYPE, - EcdhKeyDeriveParams: base_config_1.TYPE, - EcdsaParams: base_config_1.TYPE, - EncodedVideoChunkInit: base_config_1.TYPE, - EncodedVideoChunkMetadata: base_config_1.TYPE, - ErrorEventInit: base_config_1.TYPE, - EventInit: base_config_1.TYPE, - EventListenerOptions: base_config_1.TYPE, - EventSourceInit: base_config_1.TYPE, - ExtendableEventInit: base_config_1.TYPE, - ExtendableMessageEventInit: base_config_1.TYPE, - FetchEventInit: base_config_1.TYPE, - FilePropertyBag: base_config_1.TYPE, - FileSystemCreateWritableOptions: base_config_1.TYPE, - FileSystemGetDirectoryOptions: base_config_1.TYPE, - FileSystemGetFileOptions: base_config_1.TYPE, - FileSystemReadWriteOptions: base_config_1.TYPE, - FileSystemRemoveOptions: base_config_1.TYPE, - FontFaceDescriptors: base_config_1.TYPE, - FontFaceSetLoadEventInit: base_config_1.TYPE, - GetNotificationOptions: base_config_1.TYPE, - HkdfParams: base_config_1.TYPE, - HmacImportParams: base_config_1.TYPE, - HmacKeyGenParams: base_config_1.TYPE, - IDBDatabaseInfo: base_config_1.TYPE, - IDBIndexParameters: base_config_1.TYPE, - IDBObjectStoreParameters: base_config_1.TYPE, - IDBTransactionOptions: base_config_1.TYPE, - IDBVersionChangeEventInit: base_config_1.TYPE, - ImageBitmapOptions: base_config_1.TYPE, - ImageBitmapRenderingContextSettings: base_config_1.TYPE, - ImageDataSettings: base_config_1.TYPE, - ImageEncodeOptions: base_config_1.TYPE, - ImportMeta: base_config_1.TYPE, - JsonWebKey: base_config_1.TYPE, - KeyAlgorithm: base_config_1.TYPE, - LockInfo: base_config_1.TYPE, - LockManagerSnapshot: base_config_1.TYPE, - LockOptions: base_config_1.TYPE, - MediaCapabilitiesDecodingInfo: base_config_1.TYPE, - MediaCapabilitiesEncodingInfo: base_config_1.TYPE, - MediaCapabilitiesInfo: base_config_1.TYPE, - MediaConfiguration: base_config_1.TYPE, - MediaDecodingConfiguration: base_config_1.TYPE, - MediaEncodingConfiguration: base_config_1.TYPE, - MessageEventInit: base_config_1.TYPE, - MultiCacheQueryOptions: base_config_1.TYPE, - NavigationPreloadState: base_config_1.TYPE, - NotificationEventInit: base_config_1.TYPE, - NotificationOptions: base_config_1.TYPE, - Pbkdf2Params: base_config_1.TYPE, - PerformanceMarkOptions: base_config_1.TYPE, - PerformanceMeasureOptions: base_config_1.TYPE, - PerformanceObserverInit: base_config_1.TYPE, - PermissionDescriptor: base_config_1.TYPE, - PlaneLayout: base_config_1.TYPE, - ProgressEventInit: base_config_1.TYPE, - PromiseRejectionEventInit: base_config_1.TYPE, - PushEventInit: base_config_1.TYPE, - PushSubscriptionJSON: base_config_1.TYPE, - PushSubscriptionOptionsInit: base_config_1.TYPE, - QueuingStrategy: base_config_1.TYPE, - QueuingStrategyInit: base_config_1.TYPE, - RTCEncodedAudioFrameMetadata: base_config_1.TYPE, - RTCEncodedVideoFrameMetadata: base_config_1.TYPE, - ReadableStreamGetReaderOptions: base_config_1.TYPE, - ReadableStreamIteratorOptions: base_config_1.TYPE, - ReadableStreamReadDoneResult: base_config_1.TYPE, - ReadableStreamReadValueResult: base_config_1.TYPE, - ReadableWritablePair: base_config_1.TYPE, - RegistrationOptions: base_config_1.TYPE, - ReportingObserverOptions: base_config_1.TYPE, - RequestInit: base_config_1.TYPE, - ResponseInit: base_config_1.TYPE, - RsaHashedImportParams: base_config_1.TYPE, - RsaHashedKeyGenParams: base_config_1.TYPE, - RsaKeyGenParams: base_config_1.TYPE, - RsaOaepParams: base_config_1.TYPE, - RsaOtherPrimesInfo: base_config_1.TYPE, - RsaPssParams: base_config_1.TYPE, - SecurityPolicyViolationEventInit: base_config_1.TYPE, - StorageEstimate: base_config_1.TYPE, - StreamPipeOptions: base_config_1.TYPE, - StructuredSerializeOptions: base_config_1.TYPE, - TextDecodeOptions: base_config_1.TYPE, - TextDecoderOptions: base_config_1.TYPE, - TextEncoderEncodeIntoResult: base_config_1.TYPE, - Transformer: base_config_1.TYPE, - UnderlyingByteSource: base_config_1.TYPE, - UnderlyingDefaultSource: base_config_1.TYPE, - UnderlyingSink: base_config_1.TYPE, - UnderlyingSource: base_config_1.TYPE, - VideoColorSpaceInit: base_config_1.TYPE, - VideoConfiguration: base_config_1.TYPE, - VideoDecoderConfig: base_config_1.TYPE, - VideoDecoderInit: base_config_1.TYPE, - VideoDecoderSupport: base_config_1.TYPE, - VideoEncoderConfig: base_config_1.TYPE, - VideoEncoderEncodeOptions: base_config_1.TYPE, - VideoEncoderInit: base_config_1.TYPE, - VideoEncoderSupport: base_config_1.TYPE, - VideoFrameBufferInit: base_config_1.TYPE, - VideoFrameCopyToOptions: base_config_1.TYPE, - VideoFrameInit: base_config_1.TYPE, - WebGLContextAttributes: base_config_1.TYPE, - WebGLContextEventInit: base_config_1.TYPE, - WebTransportCloseInfo: base_config_1.TYPE, - WebTransportErrorOptions: base_config_1.TYPE, - WebTransportHash: base_config_1.TYPE, - WebTransportOptions: base_config_1.TYPE, - WebTransportSendStreamOptions: base_config_1.TYPE, - WorkerOptions: base_config_1.TYPE, - WriteParams: base_config_1.TYPE, - ANGLE_instanced_arrays: base_config_1.TYPE, - AbortController: base_config_1.TYPE_VALUE, - AbortSignalEventMap: base_config_1.TYPE, - AbortSignal: base_config_1.TYPE_VALUE, - AbstractWorkerEventMap: base_config_1.TYPE, - AbstractWorker: base_config_1.TYPE, - AnimationFrameProvider: base_config_1.TYPE, - Blob: base_config_1.TYPE_VALUE, - Body: base_config_1.TYPE, - BroadcastChannelEventMap: base_config_1.TYPE, - BroadcastChannel: base_config_1.TYPE_VALUE, - ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, - CSSImageValue: base_config_1.TYPE_VALUE, - CSSKeywordValue: base_config_1.TYPE_VALUE, - CSSMathClamp: base_config_1.TYPE_VALUE, - CSSMathInvert: base_config_1.TYPE_VALUE, - CSSMathMax: base_config_1.TYPE_VALUE, - CSSMathMin: base_config_1.TYPE_VALUE, - CSSMathNegate: base_config_1.TYPE_VALUE, - CSSMathProduct: base_config_1.TYPE_VALUE, - CSSMathSum: base_config_1.TYPE_VALUE, - CSSMathValue: base_config_1.TYPE_VALUE, - CSSMatrixComponent: base_config_1.TYPE_VALUE, - CSSNumericArray: base_config_1.TYPE_VALUE, - CSSNumericValue: base_config_1.TYPE_VALUE, - CSSPerspective: base_config_1.TYPE_VALUE, - CSSRotate: base_config_1.TYPE_VALUE, - CSSScale: base_config_1.TYPE_VALUE, - CSSSkew: base_config_1.TYPE_VALUE, - CSSSkewX: base_config_1.TYPE_VALUE, - CSSSkewY: base_config_1.TYPE_VALUE, - CSSStyleValue: base_config_1.TYPE_VALUE, - CSSTransformComponent: base_config_1.TYPE_VALUE, - CSSTransformValue: base_config_1.TYPE_VALUE, - CSSTranslate: base_config_1.TYPE_VALUE, - CSSUnitValue: base_config_1.TYPE_VALUE, - CSSUnparsedValue: base_config_1.TYPE_VALUE, - CSSVariableReferenceValue: base_config_1.TYPE_VALUE, - Cache: base_config_1.TYPE_VALUE, - CacheStorage: base_config_1.TYPE_VALUE, - CanvasCompositing: base_config_1.TYPE, - CanvasDrawImage: base_config_1.TYPE, - CanvasDrawPath: base_config_1.TYPE, - CanvasFillStrokeStyles: base_config_1.TYPE, - CanvasFilters: base_config_1.TYPE, - CanvasGradient: base_config_1.TYPE_VALUE, - CanvasImageData: base_config_1.TYPE, - CanvasImageSmoothing: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - CanvasPattern: base_config_1.TYPE_VALUE, - CanvasRect: base_config_1.TYPE, - CanvasShadowStyles: base_config_1.TYPE, - CanvasState: base_config_1.TYPE, - CanvasText: base_config_1.TYPE, - CanvasTextDrawingStyles: base_config_1.TYPE, - CanvasTransform: base_config_1.TYPE, - Client: base_config_1.TYPE_VALUE, - Clients: base_config_1.TYPE_VALUE, - CloseEvent: base_config_1.TYPE_VALUE, - CompressionStream: base_config_1.TYPE_VALUE, - CountQueuingStrategy: base_config_1.TYPE_VALUE, - Crypto: base_config_1.TYPE_VALUE, - CryptoKey: base_config_1.TYPE_VALUE, - CustomEvent: base_config_1.TYPE_VALUE, - DOMException: base_config_1.TYPE_VALUE, - DOMMatrix: base_config_1.TYPE_VALUE, - DOMMatrixReadOnly: base_config_1.TYPE_VALUE, - DOMPoint: base_config_1.TYPE_VALUE, - DOMPointReadOnly: base_config_1.TYPE_VALUE, - DOMQuad: base_config_1.TYPE_VALUE, - DOMRect: base_config_1.TYPE_VALUE, - DOMRectReadOnly: base_config_1.TYPE_VALUE, - DOMStringList: base_config_1.TYPE_VALUE, - DecompressionStream: base_config_1.TYPE_VALUE, - DedicatedWorkerGlobalScopeEventMap: base_config_1.TYPE, - DedicatedWorkerGlobalScope: base_config_1.TYPE_VALUE, - EXT_blend_minmax: base_config_1.TYPE, - EXT_color_buffer_float: base_config_1.TYPE, - EXT_color_buffer_half_float: base_config_1.TYPE, - EXT_float_blend: base_config_1.TYPE, - EXT_frag_depth: base_config_1.TYPE, - EXT_sRGB: base_config_1.TYPE, - EXT_shader_texture_lod: base_config_1.TYPE, - EXT_texture_compression_bptc: base_config_1.TYPE, - EXT_texture_compression_rgtc: base_config_1.TYPE, - EXT_texture_filter_anisotropic: base_config_1.TYPE, - EXT_texture_norm16: base_config_1.TYPE, - EncodedVideoChunk: base_config_1.TYPE_VALUE, - ErrorEvent: base_config_1.TYPE_VALUE, - Event: base_config_1.TYPE_VALUE, - EventListener: base_config_1.TYPE, - EventListenerObject: base_config_1.TYPE, - EventSourceEventMap: base_config_1.TYPE, - EventSource: base_config_1.TYPE_VALUE, - EventTarget: base_config_1.TYPE_VALUE, - ExtendableEvent: base_config_1.TYPE_VALUE, - ExtendableMessageEvent: base_config_1.TYPE_VALUE, - FetchEvent: base_config_1.TYPE_VALUE, - File: base_config_1.TYPE_VALUE, - FileList: base_config_1.TYPE_VALUE, - FileReaderEventMap: base_config_1.TYPE, - FileReader: base_config_1.TYPE_VALUE, - FileReaderSync: base_config_1.TYPE_VALUE, - FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, - FileSystemFileHandle: base_config_1.TYPE_VALUE, - FileSystemHandle: base_config_1.TYPE_VALUE, - FileSystemSyncAccessHandle: base_config_1.TYPE_VALUE, - FileSystemWritableFileStream: base_config_1.TYPE_VALUE, - FontFace: base_config_1.TYPE_VALUE, - FontFaceSetEventMap: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE_VALUE, - FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, - FontFaceSource: base_config_1.TYPE, - FormData: base_config_1.TYPE_VALUE, - GenericTransformStream: base_config_1.TYPE, - Headers: base_config_1.TYPE_VALUE, - IDBCursor: base_config_1.TYPE_VALUE, - IDBCursorWithValue: base_config_1.TYPE_VALUE, - IDBDatabaseEventMap: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE_VALUE, - IDBFactory: base_config_1.TYPE_VALUE, - IDBIndex: base_config_1.TYPE_VALUE, - IDBKeyRange: base_config_1.TYPE_VALUE, - IDBObjectStore: base_config_1.TYPE_VALUE, - IDBOpenDBRequestEventMap: base_config_1.TYPE, - IDBOpenDBRequest: base_config_1.TYPE_VALUE, - IDBRequestEventMap: base_config_1.TYPE, - IDBRequest: base_config_1.TYPE_VALUE, - IDBTransactionEventMap: base_config_1.TYPE, - IDBTransaction: base_config_1.TYPE_VALUE, - IDBVersionChangeEvent: base_config_1.TYPE_VALUE, - ImageBitmap: base_config_1.TYPE_VALUE, - ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, - ImageData: base_config_1.TYPE_VALUE, - KHR_parallel_shader_compile: base_config_1.TYPE, - Lock: base_config_1.TYPE_VALUE, - LockManager: base_config_1.TYPE_VALUE, - MediaCapabilities: base_config_1.TYPE_VALUE, - MessageChannel: base_config_1.TYPE_VALUE, - MessageEvent: base_config_1.TYPE_VALUE, - MessagePortEventMap: base_config_1.TYPE, - MessagePort: base_config_1.TYPE_VALUE, - NavigationPreloadManager: base_config_1.TYPE_VALUE, - NavigatorBadge: base_config_1.TYPE, - NavigatorConcurrentHardware: base_config_1.TYPE, - NavigatorID: base_config_1.TYPE, - NavigatorLanguage: base_config_1.TYPE, - NavigatorLocks: base_config_1.TYPE, - NavigatorOnLine: base_config_1.TYPE, - NavigatorStorage: base_config_1.TYPE, - NotificationEventMap: base_config_1.TYPE, - Notification: base_config_1.TYPE_VALUE, - NotificationEvent: base_config_1.TYPE_VALUE, - OES_draw_buffers_indexed: base_config_1.TYPE, - OES_element_index_uint: base_config_1.TYPE, - OES_fbo_render_mipmap: base_config_1.TYPE, - OES_standard_derivatives: base_config_1.TYPE, - OES_texture_float: base_config_1.TYPE, - OES_texture_float_linear: base_config_1.TYPE, - OES_texture_half_float: base_config_1.TYPE, - OES_texture_half_float_linear: base_config_1.TYPE, - OES_vertex_array_object: base_config_1.TYPE, - OVR_multiview2: base_config_1.TYPE, - OffscreenCanvasEventMap: base_config_1.TYPE, - OffscreenCanvas: base_config_1.TYPE_VALUE, - OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, - Path2D: base_config_1.TYPE_VALUE, - PerformanceEventMap: base_config_1.TYPE, - Performance: base_config_1.TYPE_VALUE, - PerformanceEntry: base_config_1.TYPE_VALUE, - PerformanceMark: base_config_1.TYPE_VALUE, - PerformanceMeasure: base_config_1.TYPE_VALUE, - PerformanceObserver: base_config_1.TYPE_VALUE, - PerformanceObserverEntryList: base_config_1.TYPE_VALUE, - PerformanceResourceTiming: base_config_1.TYPE_VALUE, - PerformanceServerTiming: base_config_1.TYPE_VALUE, - PermissionStatusEventMap: base_config_1.TYPE, - PermissionStatus: base_config_1.TYPE_VALUE, - Permissions: base_config_1.TYPE_VALUE, - ProgressEvent: base_config_1.TYPE_VALUE, - PromiseRejectionEvent: base_config_1.TYPE_VALUE, - PushEvent: base_config_1.TYPE_VALUE, - PushManager: base_config_1.TYPE_VALUE, - PushMessageData: base_config_1.TYPE_VALUE, - PushSubscription: base_config_1.TYPE_VALUE, - PushSubscriptionOptions: base_config_1.TYPE_VALUE, - RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, - RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, - RTCRtpScriptTransformer: base_config_1.TYPE_VALUE, - RTCTransformEvent: base_config_1.TYPE_VALUE, - ReadableByteStreamController: base_config_1.TYPE_VALUE, - ReadableStream: base_config_1.TYPE_VALUE, - ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, - ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, - ReadableStreamDefaultController: base_config_1.TYPE_VALUE, - ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, - ReadableStreamGenericReader: base_config_1.TYPE, - Report: base_config_1.TYPE_VALUE, - ReportBody: base_config_1.TYPE_VALUE, - ReportingObserver: base_config_1.TYPE_VALUE, - Request: base_config_1.TYPE_VALUE, - Response: base_config_1.TYPE_VALUE, - SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, - ServiceWorkerEventMap: base_config_1.TYPE, - ServiceWorker: base_config_1.TYPE_VALUE, - ServiceWorkerContainerEventMap: base_config_1.TYPE, - ServiceWorkerContainer: base_config_1.TYPE_VALUE, - ServiceWorkerGlobalScopeEventMap: base_config_1.TYPE, - ServiceWorkerGlobalScope: base_config_1.TYPE_VALUE, - ServiceWorkerRegistrationEventMap: base_config_1.TYPE, - ServiceWorkerRegistration: base_config_1.TYPE_VALUE, - SharedWorkerGlobalScopeEventMap: base_config_1.TYPE, - SharedWorkerGlobalScope: base_config_1.TYPE_VALUE, - StorageManager: base_config_1.TYPE_VALUE, - StylePropertyMapReadOnly: base_config_1.TYPE_VALUE, - SubtleCrypto: base_config_1.TYPE_VALUE, - TextDecoder: base_config_1.TYPE_VALUE, - TextDecoderCommon: base_config_1.TYPE, - TextDecoderStream: base_config_1.TYPE_VALUE, - TextEncoder: base_config_1.TYPE_VALUE, - TextEncoderCommon: base_config_1.TYPE, - TextEncoderStream: base_config_1.TYPE_VALUE, - TextMetrics: base_config_1.TYPE_VALUE, - TransformStream: base_config_1.TYPE_VALUE, - TransformStreamDefaultController: base_config_1.TYPE_VALUE, - URL: base_config_1.TYPE_VALUE, - URLSearchParams: base_config_1.TYPE_VALUE, - VideoColorSpace: base_config_1.TYPE_VALUE, - VideoDecoderEventMap: base_config_1.TYPE, - VideoDecoder: base_config_1.TYPE_VALUE, - VideoEncoderEventMap: base_config_1.TYPE, - VideoEncoder: base_config_1.TYPE_VALUE, - VideoFrame: base_config_1.TYPE_VALUE, - WEBGL_color_buffer_float: base_config_1.TYPE, - WEBGL_compressed_texture_astc: base_config_1.TYPE, - WEBGL_compressed_texture_etc: base_config_1.TYPE, - WEBGL_compressed_texture_etc1: base_config_1.TYPE, - WEBGL_compressed_texture_pvrtc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, - WEBGL_debug_renderer_info: base_config_1.TYPE, - WEBGL_debug_shaders: base_config_1.TYPE, - WEBGL_depth_texture: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_lose_context: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContext: base_config_1.TYPE_VALUE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLActiveInfo: base_config_1.TYPE_VALUE, - WebGLBuffer: base_config_1.TYPE_VALUE, - WebGLContextEvent: base_config_1.TYPE_VALUE, - WebGLFramebuffer: base_config_1.TYPE_VALUE, - WebGLProgram: base_config_1.TYPE_VALUE, - WebGLQuery: base_config_1.TYPE_VALUE, - WebGLRenderbuffer: base_config_1.TYPE_VALUE, - WebGLRenderingContext: base_config_1.TYPE_VALUE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, - WebGLSampler: base_config_1.TYPE_VALUE, - WebGLShader: base_config_1.TYPE_VALUE, - WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, - WebGLSync: base_config_1.TYPE_VALUE, - WebGLTexture: base_config_1.TYPE_VALUE, - WebGLTransformFeedback: base_config_1.TYPE_VALUE, - WebGLUniformLocation: base_config_1.TYPE_VALUE, - WebGLVertexArrayObject: base_config_1.TYPE_VALUE, - WebGLVertexArrayObjectOES: base_config_1.TYPE, - WebSocketEventMap: base_config_1.TYPE, - WebSocket: base_config_1.TYPE_VALUE, - WebTransport: base_config_1.TYPE_VALUE, - WebTransportBidirectionalStream: base_config_1.TYPE_VALUE, - WebTransportDatagramDuplexStream: base_config_1.TYPE_VALUE, - WebTransportError: base_config_1.TYPE_VALUE, - WindowClient: base_config_1.TYPE_VALUE, - WindowOrWorkerGlobalScope: base_config_1.TYPE, - WorkerEventMap: base_config_1.TYPE, - Worker: base_config_1.TYPE_VALUE, - WorkerGlobalScopeEventMap: base_config_1.TYPE, - WorkerGlobalScope: base_config_1.TYPE_VALUE, - WorkerLocation: base_config_1.TYPE_VALUE, - WorkerNavigator: base_config_1.TYPE_VALUE, - WritableStream: base_config_1.TYPE_VALUE, - WritableStreamDefaultController: base_config_1.TYPE_VALUE, - WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, - XMLHttpRequestEventMap: base_config_1.TYPE, - XMLHttpRequest: base_config_1.TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, - XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, - XMLHttpRequestUpload: base_config_1.TYPE_VALUE, - Console: base_config_1.TYPE, - WebAssembly: base_config_1.TYPE_VALUE, - EncodedVideoChunkOutputCallback: base_config_1.TYPE, - FrameRequestCallback: base_config_1.TYPE, - LockGrantedCallback: base_config_1.TYPE, - OnErrorEventHandlerNonNull: base_config_1.TYPE, - PerformanceObserverCallback: base_config_1.TYPE, - QueuingStrategySize: base_config_1.TYPE, - ReportingObserverCallback: base_config_1.TYPE, - TransformerFlushCallback: base_config_1.TYPE, - TransformerStartCallback: base_config_1.TYPE, - TransformerTransformCallback: base_config_1.TYPE, - UnderlyingSinkAbortCallback: base_config_1.TYPE, - UnderlyingSinkCloseCallback: base_config_1.TYPE, - UnderlyingSinkStartCallback: base_config_1.TYPE, - UnderlyingSinkWriteCallback: base_config_1.TYPE, - UnderlyingSourceCancelCallback: base_config_1.TYPE, - UnderlyingSourcePullCallback: base_config_1.TYPE, - UnderlyingSourceStartCallback: base_config_1.TYPE, - VideoFrameOutputCallback: base_config_1.TYPE, - VoidFunction: base_config_1.TYPE, - WebCodecsErrorCallback: base_config_1.TYPE, - AlgorithmIdentifier: base_config_1.TYPE, - AllowSharedBufferSource: base_config_1.TYPE, - BigInteger: base_config_1.TYPE, - BinaryData: base_config_1.TYPE, - BlobPart: base_config_1.TYPE, - BodyInit: base_config_1.TYPE, - BufferSource: base_config_1.TYPE, - CSSKeywordish: base_config_1.TYPE, - CSSNumberish: base_config_1.TYPE, - CSSPerspectiveValue: base_config_1.TYPE, - CSSUnparsedSegment: base_config_1.TYPE, - CanvasImageSource: base_config_1.TYPE, - DOMHighResTimeStamp: base_config_1.TYPE, - EpochTimeStamp: base_config_1.TYPE, - EventListenerOrEventListenerObject: base_config_1.TYPE, - FileSystemWriteChunkType: base_config_1.TYPE, - Float32List: base_config_1.TYPE, - FormDataEntryValue: base_config_1.TYPE, - GLbitfield: base_config_1.TYPE, - GLboolean: base_config_1.TYPE, - GLclampf: base_config_1.TYPE, - GLenum: base_config_1.TYPE, - GLfloat: base_config_1.TYPE, - GLint: base_config_1.TYPE, - GLint64: base_config_1.TYPE, - GLintptr: base_config_1.TYPE, - GLsizei: base_config_1.TYPE, - GLsizeiptr: base_config_1.TYPE, - GLuint: base_config_1.TYPE, - GLuint64: base_config_1.TYPE, - HashAlgorithmIdentifier: base_config_1.TYPE, - HeadersInit: base_config_1.TYPE, - IDBValidKey: base_config_1.TYPE, - ImageBitmapSource: base_config_1.TYPE, - Int32List: base_config_1.TYPE, - MessageEventSource: base_config_1.TYPE, - NamedCurve: base_config_1.TYPE, - OffscreenRenderingContext: base_config_1.TYPE, - OnErrorEventHandler: base_config_1.TYPE, - PerformanceEntryList: base_config_1.TYPE, - PushMessageDataInit: base_config_1.TYPE, - ReadableStreamController: base_config_1.TYPE, - ReadableStreamReadResult: base_config_1.TYPE, - ReadableStreamReader: base_config_1.TYPE, - ReportList: base_config_1.TYPE, - RequestInfo: base_config_1.TYPE, - TexImageSource: base_config_1.TYPE, - TimerHandler: base_config_1.TYPE, - Transferable: base_config_1.TYPE, - Uint32List: base_config_1.TYPE, - XMLHttpRequestBodyInit: base_config_1.TYPE, - AlphaOption: base_config_1.TYPE, - AvcBitstreamFormat: base_config_1.TYPE, - BinaryType: base_config_1.TYPE, - CSSMathOperator: base_config_1.TYPE, - CSSNumericBaseType: base_config_1.TYPE, - CanvasDirection: base_config_1.TYPE, - CanvasFillRule: base_config_1.TYPE, - CanvasFontKerning: base_config_1.TYPE, - CanvasFontStretch: base_config_1.TYPE, - CanvasFontVariantCaps: base_config_1.TYPE, - CanvasLineCap: base_config_1.TYPE, - CanvasLineJoin: base_config_1.TYPE, - CanvasTextAlign: base_config_1.TYPE, - CanvasTextBaseline: base_config_1.TYPE, - CanvasTextRendering: base_config_1.TYPE, - ClientTypes: base_config_1.TYPE, - CodecState: base_config_1.TYPE, - ColorGamut: base_config_1.TYPE, - ColorSpaceConversion: base_config_1.TYPE, - CompressionFormat: base_config_1.TYPE, - DocumentVisibilityState: base_config_1.TYPE, - EncodedVideoChunkType: base_config_1.TYPE, - EndingType: base_config_1.TYPE, - FileSystemHandleKind: base_config_1.TYPE, - FontDisplay: base_config_1.TYPE, - FontFaceLoadStatus: base_config_1.TYPE, - FontFaceSetLoadStatus: base_config_1.TYPE, - FrameType: base_config_1.TYPE, - GlobalCompositeOperation: base_config_1.TYPE, - HardwareAcceleration: base_config_1.TYPE, - HdrMetadataType: base_config_1.TYPE, - IDBCursorDirection: base_config_1.TYPE, - IDBRequestReadyState: base_config_1.TYPE, - IDBTransactionDurability: base_config_1.TYPE, - IDBTransactionMode: base_config_1.TYPE, - ImageOrientation: base_config_1.TYPE, - ImageSmoothingQuality: base_config_1.TYPE, - KeyFormat: base_config_1.TYPE, - KeyType: base_config_1.TYPE, - KeyUsage: base_config_1.TYPE, - LatencyMode: base_config_1.TYPE, - LockMode: base_config_1.TYPE, - MediaDecodingType: base_config_1.TYPE, - MediaEncodingType: base_config_1.TYPE, - NotificationDirection: base_config_1.TYPE, - NotificationPermission: base_config_1.TYPE, - OffscreenRenderingContextId: base_config_1.TYPE, - PermissionName: base_config_1.TYPE, - PermissionState: base_config_1.TYPE, - PredefinedColorSpace: base_config_1.TYPE, - PremultiplyAlpha: base_config_1.TYPE, - PushEncryptionKeyName: base_config_1.TYPE, - RTCEncodedVideoFrameType: base_config_1.TYPE, - ReadableStreamReaderMode: base_config_1.TYPE, - ReadableStreamType: base_config_1.TYPE, - ReferrerPolicy: base_config_1.TYPE, - RequestCache: base_config_1.TYPE, - RequestCredentials: base_config_1.TYPE, - RequestDestination: base_config_1.TYPE, - RequestMode: base_config_1.TYPE, - RequestPriority: base_config_1.TYPE, - RequestRedirect: base_config_1.TYPE, - ResizeQuality: base_config_1.TYPE, - ResponseType: base_config_1.TYPE, - SecurityPolicyViolationEventDisposition: base_config_1.TYPE, - ServiceWorkerState: base_config_1.TYPE, - ServiceWorkerUpdateViaCache: base_config_1.TYPE, - TransferFunction: base_config_1.TYPE, - VideoColorPrimaries: base_config_1.TYPE, - VideoEncoderBitrateMode: base_config_1.TYPE, - VideoMatrixCoefficients: base_config_1.TYPE, - VideoPixelFormat: base_config_1.TYPE, - VideoTransferCharacteristics: base_config_1.TYPE, - WebGLPowerPreference: base_config_1.TYPE, - WebTransportCongestionControl: base_config_1.TYPE, - WebTransportErrorSource: base_config_1.TYPE, - WorkerType: base_config_1.TYPE, - WriteCommandType: base_config_1.TYPE, - XMLHttpRequestResponseType: base_config_1.TYPE, -}; -//# sourceMappingURL=webworker.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map deleted file mode 100644 index 9c98c5e1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.js","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B;;;AAG3B,+CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI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AI;IAC9B,wBAAwB,EAAE,kBAAI;IAC9B,kBAAkB,EAAE,kBAAI;IACxB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,kBAAkB,EAAE,kBAAI;IACxB,kBAAkB,EAAE,kBAAI;IACxB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,uCAAuC,EAAE,kBAAI;IAC7C,kBAAkB,EAAE,kBAAI;IACxB,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;IAC7B,gBAAgB,EAAE,kBAAI;IACtB,4BAA4B,EAAE,kBAAI;IAClC,oBAAoB,EAAE,kBAAI;IAC1B,6BAA6B,EAAE,kBAAI;IACnC,uBAAuB,EAAE,kBAAI;IAC7B,UAAU,EAAE,kBAAI;IAChB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts deleted file mode 100644 index 763b818a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class ClassVisitor extends Visitor { - #private; - constructor(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression); - static visit(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; - visit(node: TSESTree.Node | null | undefined): void; - protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; - protected visitPropertyDefinition(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition): void; - protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; - protected visitMethodFunction(node: TSESTree.FunctionExpression, methodNode: TSESTree.MethodDefinition): void; - protected visitPropertyBase(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition): void; - protected visitMethod(node: TSESTree.MethodDefinition): void; - protected visitType(node: TSESTree.Node | null | undefined): void; - protected AccessorProperty(node: TSESTree.AccessorProperty): void; - protected ClassBody(node: TSESTree.ClassBody): void; - protected PropertyDefinition(node: TSESTree.PropertyDefinition): void; - protected MethodDefinition(node: TSESTree.MethodDefinition): void; - protected TSAbstractAccessorProperty(node: TSESTree.TSAbstractAccessorProperty): void; - protected TSAbstractPropertyDefinition(node: TSESTree.TSAbstractPropertyDefinition): void; - protected TSAbstractMethodDefinition(node: TSESTree.TSAbstractMethodDefinition): void; - protected Identifier(node: TSESTree.Identifier): void; - protected PrivateIdentifier(): void; - protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; - protected StaticBlock(node: TSESTree.StaticBlock): void; -} -export { ClassVisitor }; -//# sourceMappingURL=ClassVisitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map deleted file mode 100644 index c7de73e4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,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AAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAWjE,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI;IAMnD,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAIrE,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,4BAA4B,CACpC,IAAI,EAAE,QAAQ,CAAC,4BAA4B,GAC1C,IAAI;IAIP,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAIrD,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAInC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;CAOxD;AAsCD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js deleted file mode 100644 index fe105eb4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +++ /dev/null @@ -1,266 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const definition_1 = require("../definition"); -const TypeVisitor_1 = require("./TypeVisitor"); -const Visitor_1 = require("./Visitor"); -class ClassVisitor extends Visitor_1.Visitor { - #classNode; - #referencer; - constructor(referencer, node) { - super(referencer); - this.#referencer = referencer; - this.#classNode = node; - } - static visit(referencer, node) { - const classVisitor = new ClassVisitor(referencer, node); - classVisitor.visitClass(node); - } - visit(node) { - // make sure we only handle the nodes we are designed to handle - if (node && node.type in this) { - super.visit(node); - } - else { - this.#referencer.visit(node); - } - } - /////////////////// - // Visit helpers // - /////////////////// - visitClass(node) { - if (node.type === types_1.AST_NODE_TYPES.ClassDeclaration && node.id) { - this.#referencer - .currentScope() - .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); - } - node.decorators.forEach(d => this.#referencer.visit(d)); - this.#referencer.scopeManager.nestClassScope(node); - if (node.id) { - // define the class name again inside the new scope - // references to the class should not resolve directly to the parent class - this.#referencer - .currentScope() - .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); - } - this.#referencer.visit(node.superClass); - // visit the type param declarations - this.visitType(node.typeParameters); - // then the usages - this.visitType(node.superTypeArguments); - node.implements.forEach(imp => this.visitType(imp)); - this.visit(node.body); - this.#referencer.close(node); - } - visitPropertyDefinition(node) { - this.visitPropertyBase(node); - /** - * class A { - * @meta // <--- check this - * foo: Type; - * } - */ - this.visitType(node.typeAnnotation); - } - visitFunctionParameterTypeAnnotation(node) { - switch (node.type) { - case types_1.AST_NODE_TYPES.AssignmentPattern: - this.visitType(node.left.typeAnnotation); - break; - case types_1.AST_NODE_TYPES.TSParameterProperty: - this.visitFunctionParameterTypeAnnotation(node.parameter); - break; - default: - this.visitType(node.typeAnnotation); - } - } - visitMethodFunction(node, methodNode) { - if (node.id) { - // FunctionExpression with name creates its special scope; - // FunctionExpressionNameScope. - this.#referencer.scopeManager.nestFunctionExpressionNameScope(node); - } - // Consider this function is in the MethodDefinition. - this.#referencer.scopeManager.nestFunctionScope(node, true); - /** - * class A { - * @meta // <--- check this - * foo(a: Type) {} - * - * @meta // <--- check this - * foo(): Type {} - * } - */ - let withMethodDecorators = !!methodNode.decorators.length; - /** - * class A { - * foo( - * @meta // <--- check this - * a: Type - * ) {} - * - * set foo( - * @meta // <--- EXCEPT this. TS do nothing for this - * a: Type - * ) {} - * } - */ - withMethodDecorators ||= - methodNode.kind !== 'set' && - node.params.some(param => param.decorators.length); - if (!withMethodDecorators && methodNode.kind === 'set') { - const keyName = getLiteralMethodKeyName(methodNode); - /** - * class A { - * @meta // <--- check this - * get a() {} - * set ['a'](v: Type) {} - * } - */ - if (keyName != null && - this.#classNode.body.body.find((node) => node !== methodNode && - node.type === types_1.AST_NODE_TYPES.MethodDefinition && - // Node must both be static or not - node.static === methodNode.static && - getLiteralMethodKeyName(node) === keyName)?.decorators.length) { - withMethodDecorators = true; - } - } - /** - * @meta // <--- check this - * class A { - * constructor(a: Type) {} - * } - */ - if (!withMethodDecorators && - methodNode.kind === 'constructor' && - this.#classNode.decorators.length) { - withMethodDecorators = true; - } - // Process parameter declarations. - for (const param of node.params) { - this.visitPattern(param, (pattern, info) => { - this.#referencer - .currentScope() - .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - this.#referencer.referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - this.visitFunctionParameterTypeAnnotation(param); - param.decorators.forEach(d => this.visit(d)); - } - this.visitType(node.returnType); - this.visitType(node.typeParameters); - this.#referencer.visitChildren(node.body); - this.#referencer.close(node); - } - visitPropertyBase(node) { - if (node.computed) { - this.#referencer.visit(node.key); - } - if (node.value) { - if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || - node.type === types_1.AST_NODE_TYPES.AccessorProperty) { - this.#referencer.scopeManager.nestClassFieldInitializerScope(node.value); - } - this.#referencer.visit(node.value); - if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || - node.type === types_1.AST_NODE_TYPES.AccessorProperty) { - this.#referencer.close(node.value); - } - } - node.decorators.forEach(d => this.#referencer.visit(d)); - } - visitMethod(node) { - if (node.computed) { - this.#referencer.visit(node.key); - } - if (node.value.type === types_1.AST_NODE_TYPES.FunctionExpression) { - this.visitMethodFunction(node.value, node); - } - else { - this.#referencer.visit(node.value); - } - node.decorators.forEach(d => this.#referencer.visit(d)); - } - visitType(node) { - if (!node) { - return; - } - TypeVisitor_1.TypeVisitor.visit(this.#referencer, node); - } - ///////////////////// - // Visit selectors // - ///////////////////// - AccessorProperty(node) { - this.visitPropertyDefinition(node); - } - ClassBody(node) { - // this is here on purpose so that this visitor explicitly declares visitors - // for all nodes it cares about (see the instance visit method above) - this.visitChildren(node); - } - PropertyDefinition(node) { - this.visitPropertyDefinition(node); - } - MethodDefinition(node) { - this.visitMethod(node); - } - TSAbstractAccessorProperty(node) { - this.visitPropertyDefinition(node); - } - TSAbstractPropertyDefinition(node) { - this.visitPropertyDefinition(node); - } - TSAbstractMethodDefinition(node) { - this.visitPropertyBase(node); - } - Identifier(node) { - this.#referencer.visit(node); - } - PrivateIdentifier() { - // intentionally skip - } - TSIndexSignature(node) { - this.visitType(node); - } - StaticBlock(node) { - this.#referencer.scopeManager.nestClassStaticBlockScope(node); - node.body.forEach(b => this.visit(b)); - this.#referencer.close(node); - } -} -exports.ClassVisitor = ClassVisitor; -/** - * Only if key is one of [identifier, string, number], ts will combine metadata of accessors . - * class A { - * get a() {} - * set ['a'](v: Type) {} - * - * get [1]() {} - * set [1](v: Type) {} - * - * // Following won't be combined - * get [key]() {} - * set [key](v: Type) {} - * - * get [true]() {} - * set [true](v: Type) {} - * - * get ['a'+'b']() {} - * set ['a'+'b']() {} - * } - */ -function getLiteralMethodKeyName(node) { - if (node.computed && node.key.type === types_1.AST_NODE_TYPES.Literal) { - if (typeof node.key.value === 'string' || - typeof node.key.value === 'number') { - return node.key.value; - } - } - else if (!node.computed && node.key.type === types_1.AST_NODE_TYPES.Identifier) { - return node.key.name; - } - return null; -} -//# sourceMappingURL=ClassVisitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map deleted file mode 100644 index 0e6f1630..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,8CAAyE;AAEzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IACvB,UAAU,CAAuD;IACjE,WAAW,CAAa;IAEjC,YACE,UAAsB,EACtB,IAA0D;QAE1D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,IAA0D;QAE1D,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACxD,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAsC;QAC1C,+DAA+D;QAC/D,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IAET,UAAU,CAClB,IAA0D;QAE1D,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YAC7D,IAAI,CAAC,WAAW;iBACb,YAAY,EAAE;iBACd,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AC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAES,iBAAiB;QACzB,qBAAqB;IACvB,CAAC;IAES,gBAAgB,CAAC,IAA+B;QACxD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAES,WAAW,CAAC,IAA0B;QAC9C,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QAE9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AAsCQ,oCAAY;AApCrB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,uBAAuB,CAC9B,IAA+B;IAE/B,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;QAC9D,IACE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ;YAClC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,QAAQ,EAClC,CAAC;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACxB,CAAC;IACH,CAAC;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;IACvB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts deleted file mode 100644 index 8d09c2ae..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -type ExportNode = TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration; -declare class ExportVisitor extends Visitor { - #private; - constructor(node: ExportNode, referencer: Referencer); - static visit(referencer: Referencer, node: ExportNode): void; - protected Identifier(node: TSESTree.Identifier): void; - protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; - protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; - protected ExportSpecifier(node: TSESTree.ExportSpecifier): void; -} -export { ExportVisitor }; -//# sourceMappingURL=ExportVisitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map deleted file mode 100644 index 47a0fc6e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GACX,QAAQ,CAAC,oBAAoB,GAC7B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,sBAAsB,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAMpD,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAK5D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUrD,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAaP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAgBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;CAYhE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js deleted file mode 100644 index 7cd3053d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExportVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const Visitor_1 = require("./Visitor"); -class ExportVisitor extends Visitor_1.Visitor { - #referencer; - #exportNode; - constructor(node, referencer) { - super(referencer); - this.#exportNode = node; - this.#referencer = referencer; - } - static visit(referencer, node) { - const exportReferencer = new ExportVisitor(node, referencer); - exportReferencer.visit(node); - } - Identifier(node) { - if (this.#exportNode.exportKind === 'type') { - // export type { T }; - // type exports can only reference types - this.#referencer.currentScope().referenceType(node); - } - else { - this.#referencer.currentScope().referenceDualValueType(node); - } - } - ExportDefaultDeclaration(node) { - if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { - // export default A; - // this could be a type or a variable - this.visit(node.declaration); - } - else { - // export const a = 1; - // export something(); - // etc - // these not included in the scope of this visitor as they are all guaranteed to be values or declare variables - } - } - ExportNamedDeclaration(node) { - if (node.source) { - // export ... from 'foo'; - // these are external identifiers so there shouldn't be references or defs - return; - } - if (!node.declaration) { - // export { x }; - this.visitChildren(node); - } - else { - // export const x = 1; - // this is not included in the scope of this visitor as it creates a variable - } - } - ExportSpecifier(node) { - if (node.exportKind === 'type') { - // export { type T }; - // type exports can only reference types - // - // we can't let this fall through to the Identifier selector because the exportKind is on this node - // and we don't have access to the `.parent` during scope analysis - this.#referencer.currentScope().referenceType(node.local); - } - else { - this.visit(node.local); - } - } -} -exports.ExportVisitor = ExportVisitor; -//# sourceMappingURL=ExportVisitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map deleted file mode 100644 index e9ea2766..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAG1D,uCAAoC;AAOpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,WAAW,CAAa;IACxB,WAAW,CAAa;IAEjC,YAAY,IAAgB,EAAE,UAAsB;QAClD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAgB;QACnD,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7D,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAES,UAAU,CAAC,IAAyB;QAC5C,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC3C,qBAAqB;YACrB,wCAAwC;YACxC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YACxD,oBAAoB;YACpB,qCAAqC;YACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC;aAAM,CAAC;YACN,sBAAsB;YACtB,sBAAsB;YACtB,MAAM;YACN,+GAA+G;QACjH,CAAC;IACH,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,yBAAyB;YACzB,0EAA0E;YAC1E,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,gBAAgB;YAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,sBAAsB;YACtB,6EAA6E;QAC/E,CAAC;IACH,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;YAC/B,qBAAqB;YACrB,wCAAwC;YACxC,EAAE;YACF,mGAAmG;YACnG,kEAAkE;YAClE,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts deleted file mode 100644 index 78d1efc3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class ImportVisitor extends Visitor { - #private; - constructor(declaration: TSESTree.ImportDeclaration, referencer: Referencer); - static visit(referencer: Referencer, declaration: TSESTree.ImportDeclaration): void; - protected visitImport(id: TSESTree.Identifier, specifier: TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier): void; - protected ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void; - protected ImportDefaultSpecifier(node: TSESTree.ImportDefaultSpecifier): void; - protected ImportSpecifier(node: TSESTree.ImportSpecifier): void; -} -export { ImportVisitor }; -//# sourceMappingURL=ImportVisitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map deleted file mode 100644 index 7c8c5cff..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU;IAM3E,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,GACtC,IAAI;IAKP,SAAS,CAAC,WAAW,CACnB,EAAE,EAAE,QAAQ,CAAC,UAAU,EACvB,SAAS,EACL,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GAC3B,IAAI;IASP,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAKP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;CAIhE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js deleted file mode 100644 index 8c2d5fc6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImportVisitor = void 0; -const definition_1 = require("../definition"); -const Visitor_1 = require("./Visitor"); -class ImportVisitor extends Visitor_1.Visitor { - #declaration; - #referencer; - constructor(declaration, referencer) { - super(referencer); - this.#declaration = declaration; - this.#referencer = referencer; - } - static visit(referencer, declaration) { - const importReferencer = new ImportVisitor(declaration, referencer); - importReferencer.visit(declaration); - } - visitImport(id, specifier) { - this.#referencer - .currentScope() - .defineIdentifier(id, new definition_1.ImportBindingDefinition(id, specifier, this.#declaration)); - } - ImportNamespaceSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } - ImportDefaultSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } - ImportSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } -} -exports.ImportVisitor = ImportVisitor; -//# sourceMappingURL=ImportVisitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map deleted file mode 100644 index dac1177a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":";;;AAEA,8CAAwD;AAExD,uCAAoC;AAEpC,MAAM,aAAc,SAAQ,iBAAO;IACxB,YAAY,CAA6B;IACzC,WAAW,CAAa;IAEjC,YAAY,WAAuC,EAAE,UAAsB;QACzE,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,WAAuC;QAEvC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACpE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAES,WAAW,CACnB,EAAuB,EACvB,SAG4B;QAE5B,IAAI,CAAC,WAAW;aACb,YAAY,EAAE;aACd,gBAAgB,CACf,EAAE,EACF,IAAI,oCAAuB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAC9D,CAAC;IACN,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts deleted file mode 100644 index 53cfd21d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { VisitorOptions } from './VisitorBase'; -import { VisitorBase } from './VisitorBase'; -type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { - assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[]; - rest: boolean; - topLevel: boolean; -}) => void; -type PatternVisitorOptions = VisitorOptions; -declare class PatternVisitor extends VisitorBase { - #private; - static isPattern(node: TSESTree.Node): node is TSESTree.ArrayPattern | TSESTree.AssignmentPattern | TSESTree.Identifier | TSESTree.ObjectPattern | TSESTree.RestElement | TSESTree.SpreadElement; - readonly rightHandNodes: TSESTree.Node[]; - constructor(options: PatternVisitorOptions, rootPattern: TSESTree.Node, callback: PatternVisitorCallback); - protected ArrayExpression(node: TSESTree.ArrayExpression): void; - protected ArrayPattern(pattern: TSESTree.ArrayPattern): void; - protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; - protected AssignmentPattern(pattern: TSESTree.AssignmentPattern): void; - protected CallExpression(node: TSESTree.CallExpression): void; - protected Decorator(): void; - protected Identifier(pattern: TSESTree.Identifier): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected Property(property: TSESTree.Property): void; - protected RestElement(pattern: TSESTree.RestElement): void; - protected SpreadElement(node: TSESTree.SpreadElement): void; - protected TSTypeAnnotation(): void; -} -export { PatternVisitor, PatternVisitorCallback, PatternVisitorOptions }; -//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map deleted file mode 100644 index ca4e21e3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,WAAW,EAAE,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAC5E,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,KACE,IAAI,CAAC;AAEV,KAAK,qBAAqB,GAAG,cAAc,CAAC;AAC5C,cAAM,cAAe,SAAQ,WAAW;;WACxB,SAAS,CACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,IAAI,IACH,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,UAAU,GACnB,QAAQ,CAAC,aAAa,GACtB,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,aAAa;IAmB1B,SAAgB,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAM;gBAInD,OAAO,EAAE,qBAAqB,EAC9B,WAAW,EAAE,QAAQ,CAAC,IAAI,EAC1B,QAAQ,EAAE,sBAAsB;IAOlC,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,YAAY,GAAG,IAAI;IAM5D,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,oBAAoB,GAAG,IAAI;IAOzE,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAOtE,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,GAAG,IAAI;IAQ7D,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUxD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAUjE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI;IAYrD,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAM1D,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAI3D,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC;AAED,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js deleted file mode 100644 index 21dabda5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PatternVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const VisitorBase_1 = require("./VisitorBase"); -class PatternVisitor extends VisitorBase_1.VisitorBase { - static isPattern(node) { - const nodeType = node.type; - return (nodeType === types_1.AST_NODE_TYPES.Identifier || - nodeType === types_1.AST_NODE_TYPES.ObjectPattern || - nodeType === types_1.AST_NODE_TYPES.ArrayPattern || - nodeType === types_1.AST_NODE_TYPES.SpreadElement || - nodeType === types_1.AST_NODE_TYPES.RestElement || - nodeType === types_1.AST_NODE_TYPES.AssignmentPattern); - } - #rootPattern; - #callback; - #assignments = []; - rightHandNodes = []; - #restElements = []; - constructor(options, rootPattern, callback) { - super(options); - this.#rootPattern = rootPattern; - this.#callback = callback; - } - ArrayExpression(node) { - node.elements.forEach(this.visit, this); - } - ArrayPattern(pattern) { - for (const element of pattern.elements) { - this.visit(element); - } - } - AssignmentExpression(node) { - this.#assignments.push(node); - this.visit(node.left); - this.rightHandNodes.push(node.right); - this.#assignments.pop(); - } - AssignmentPattern(pattern) { - this.#assignments.push(pattern); - this.visit(pattern.left); - this.rightHandNodes.push(pattern.right); - this.#assignments.pop(); - } - CallExpression(node) { - // arguments are right hand nodes. - node.arguments.forEach(a => { - this.rightHandNodes.push(a); - }); - this.visit(node.callee); - } - Decorator() { - // don't visit any decorators when exploring a pattern - } - Identifier(pattern) { - const lastRestElement = this.#restElements.at(-1); - this.#callback(pattern, { - topLevel: pattern === this.#rootPattern, - rest: lastRestElement?.argument === pattern, - assignments: this.#assignments, - }); - } - MemberExpression(node) { - // Computed property's key is a right hand node. - if (node.computed) { - this.rightHandNodes.push(node.property); - } - // the object is only read, write to its property. - this.rightHandNodes.push(node.object); - } - Property(property) { - // Computed property's key is a right hand node. - if (property.computed) { - this.rightHandNodes.push(property.key); - } - // If it's shorthand, its key is same as its value. - // If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern). - // If it's not shorthand, the name of new variable is its value's. - this.visit(property.value); - } - RestElement(pattern) { - this.#restElements.push(pattern); - this.visit(pattern.argument); - this.#restElements.pop(); - } - SpreadElement(node) { - this.visit(node.argument); - } - TSTypeAnnotation() { - // we don't want to visit types - } -} -exports.PatternVisitor = PatternVisitor; -//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map deleted file mode 100644 index 3f00c150..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAG1D,+CAA4C;AAY5C,MAAM,cAAe,SAAQ,yBAAW;IAC/B,MAAM,CAAC,SAAS,CACrB,IAAmB;QAQnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,OAAO,CACL,QAAQ,KAAK,sBAAc,CAAC,UAAU;YACtC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,YAAY;YACxC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,WAAW;YACvC,QAAQ,KAAK,sBAAc,CAAC,iBAAiB,CAC9C,CAAC;IACJ,CAAC;IAEQ,YAAY,CAAgB;IAC5B,SAAS,CAAyB;IAClC,YAAY,GAGf,EAAE,CAAC;IACO,cAAc,GAAoB,EAAE,CAAC;IAC5C,aAAa,GAA2B,EAAE,CAAC;IAEpD,YACE,OAA8B,EAC9B,WAA0B,EAC1B,QAAgC;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAES,eAAe,CAAC,IAA8B;Q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CAAC,SAAS,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY;YACvC,IAAI,EAAE,eAAe,EAAE,QAAQ,KAAK,OAAO;YAC3C,WAAW,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC,CAAC;IACL,CAAC;IAES,gBAAgB,CAAC,IAA+B;QACxD,gDAAgD;QAChD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;QAED,kDAAkD;QAClD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAES,QAAQ,CAAC,QAA2B;QAC5C,gDAAgD;QAChD,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;QAED,mDAAmD;QACnD,mHAAmH;QACnH,kEAAkE;QAClE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAES,WAAW,CAAC,OAA6B;QACjD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;IAC3B,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,+BAA+B;IACjC,CAAC;CACF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts deleted file mode 100644 index 2ec30e3e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Scope } from '../scope'; -import type { Variable } from '../variable'; -declare enum ReferenceFlag { - Read = 1, - Write = 2, - ReadWrite = 3 -} -interface ReferenceImplicitGlobal { - node: TSESTree.Node; - pattern: TSESTree.BindingName; - ref?: Reference; -} -declare enum ReferenceTypeFlag { - Value = 1, - Type = 2 -} -/** - * A Reference represents a single occurrence of an identifier in code. - */ -declare class Reference { - #private; - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * Reference to the enclosing Scope. - * @public - */ - readonly from: Scope; - /** - * Identifier syntax node. - * @public - */ - readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; - /** - * `true` if this writing reference is a variable initializer or a default value. - * @public - */ - readonly init?: boolean; - /** - * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. - * @public - */ - resolved: Variable | null; - /** - * If reference is writeable, this is the node being written to it. - * @public - */ - readonly writeExpr?: TSESTree.Node | null; - readonly maybeImplicitGlobal?: ReferenceImplicitGlobal | null; - /** - * True if this reference can reference types - */ - get isTypeReference(): boolean; - /** - * True if this reference can reference values - */ - get isValueReference(): boolean; - constructor(identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag); - /** - * Whether the reference is writeable. - * @public - */ - isWrite(): boolean; - /** - * Whether the reference is readable. - * @public - */ - isRead(): boolean; - /** - * Whether the reference is read-only. - * @public - */ - isReadOnly(): boolean; - /** - * Whether the reference is write-only. - * @public - */ - isWriteOnly(): boolean; - /** - * Whether the reference is read-write. - * @public - */ - isReadWrite(): boolean; -} -export { Reference, ReferenceFlag, ReferenceTypeFlag, ReferenceImplicitGlobal }; -//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map deleted file mode 100644 index 31505e34..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,aAAK,aAAa;IAChB,IAAI,IAAM;IACV,KAAK,IAAM;IACX,SAAS,IAAM;CAChB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAID,aAAK,iBAAiB;IACpB,KAAK,IAAM;IACX,IAAI,IAAM;CACX;AAED;;GAEG;AACH,cAAM,SAAS;;IACb;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAK1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAC5B;;;OAGG;IACH,SAAgB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC;IACzE;;;OAGG;IACH,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACI,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAgB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAEjD,SAAgB,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAOrE;;OAEG;IACH,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;gBAGC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EACxD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,aAAa,EACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAChC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,CAAC,EAAE,OAAO,EACd,aAAa,oBAA0B;IAgBzC;;;OAGG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;;OAGG;IACI,UAAU,IAAI,OAAO;IAI5B;;;OAGG;IACI,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,WAAW,IAAI,OAAO;CAG9B;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js deleted file mode 100644 index fbc28ec6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +++ /dev/null @@ -1,120 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReferenceTypeFlag = exports.ReferenceFlag = exports.Reference = void 0; -const ID_1 = require("../ID"); -var ReferenceFlag; -(function (ReferenceFlag) { - ReferenceFlag[ReferenceFlag["Read"] = 1] = "Read"; - ReferenceFlag[ReferenceFlag["Write"] = 2] = "Write"; - ReferenceFlag[ReferenceFlag["ReadWrite"] = 3] = "ReadWrite"; -})(ReferenceFlag || (exports.ReferenceFlag = ReferenceFlag = {})); -const generator = (0, ID_1.createIdGenerator)(); -var ReferenceTypeFlag; -(function (ReferenceTypeFlag) { - ReferenceTypeFlag[ReferenceTypeFlag["Value"] = 1] = "Value"; - ReferenceTypeFlag[ReferenceTypeFlag["Type"] = 2] = "Type"; -})(ReferenceTypeFlag || (exports.ReferenceTypeFlag = ReferenceTypeFlag = {})); -/** - * A Reference represents a single occurrence of an identifier in code. - */ -class Reference { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - $id = generator(); - /** - * The read-write mode of the reference. - */ - #flag; - /** - * Reference to the enclosing Scope. - * @public - */ - from; - /** - * Identifier syntax node. - * @public - */ - identifier; - /** - * `true` if this writing reference is a variable initializer or a default value. - * @public - */ - init; - /** - * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. - * @public - */ - resolved; - /** - * If reference is writeable, this is the node being written to it. - * @public - */ - writeExpr; - maybeImplicitGlobal; - /** - * In some cases, a reference may be a type, value or both a type and value reference. - */ - #referenceType; - /** - * True if this reference can reference types - */ - get isTypeReference() { - return (this.#referenceType & ReferenceTypeFlag.Type) !== 0; - } - /** - * True if this reference can reference values - */ - get isValueReference() { - return (this.#referenceType & ReferenceTypeFlag.Value) !== 0; - } - constructor(identifier, scope, flag, writeExpr, maybeImplicitGlobal, init, referenceType = ReferenceTypeFlag.Value) { - this.identifier = identifier; - this.from = scope; - this.resolved = null; - this.#flag = flag; - if (this.isWrite()) { - this.writeExpr = writeExpr; - this.init = init; - } - this.maybeImplicitGlobal = maybeImplicitGlobal; - this.#referenceType = referenceType; - } - /** - * Whether the reference is writeable. - * @public - */ - isWrite() { - return !!(this.#flag & ReferenceFlag.Write); - } - /** - * Whether the reference is readable. - * @public - */ - isRead() { - return !!(this.#flag & ReferenceFlag.Read); - } - /** - * Whether the reference is read-only. - * @public - */ - isReadOnly() { - return this.#flag === ReferenceFlag.Read; - } - /** - * Whether the reference is write-only. - * @public - */ - isWriteOnly() { - return this.#flag === ReferenceFlag.Write; - } - /** - * Whether the reference is read-write. - * @public - */ - isReadWrite() { - return this.#flag === ReferenceFlag.ReadWrite; - } -} -exports.Reference = Reference; -//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map deleted file mode 100644 index 5c43ff05..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":";;;AAEA,8BAA0C;AAI1C,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,iDAAU,CAAA;IACV,mDAAW,CAAA;IACX,2DAAe,CAAA;AACjB,CAAC,EAJI,aAAa,6BAAb,aAAa,QAIjB;AAQD,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,IAAK,iBAGJ;AAHD,WAAK,iBAAiB;IACpB,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EAHI,iBAAiB,iCAAjB,iBAAiB,QAGrB;AAED;;GAEG;AACH,MAAM,SAAS;IACb;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAC1C;;OAEG;IACM,KAAK,CAAgB;IAC9B;;;OAGG;IACa,IAAI,CAAQ;IAC5B;;;OAGG;IACa,UAAU,CAA+C;IACzE;;;OAGG;IACa,IAAI,CAAW;IAC/B;;;OAGG;IACI,QAAQ,CAAkB;IACjC;;;OAGG;IACa,SAAS,CAAwB;IAEjC,mBAAmB,CAAkC;IAErE;;OAEG;IACM,cAAc,CAAoB;IAE3C;;OAEG;IACH,IAAW,eAAe;QACxB,OAAO,CAAC,IAAI,CAAC,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAW,gBAAgB;QACzB,OAAO,CAAC,IAAI,CAAC,cAAc,GAAG,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED,YACE,UAAwD,EACxD,KAAY,EACZ,IAAmB,EACnB,SAAgC,EAChC,mBAAoD,EACpD,IAAc,EACd,aAAa,GAAG,iBAAiB,CAAC,KAAK;QAEvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAElB,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,OAAO;QACZ,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,MAAM;QACX,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACI,UAAU;QACf,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,IAAI,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,SAAS,CAAC;IAChD,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts deleted file mode 100644 index 7d3a3844..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -import type { Lib, TSESTree } from '@typescript-eslint/types'; -import type { Scope } from '../scope'; -import type { ScopeManager } from '../ScopeManager'; -import type { ReferenceImplicitGlobal } from './Reference'; -import type { VisitorOptions } from './Visitor'; -import { Visitor } from './Visitor'; -interface ReferencerOptions extends VisitorOptions { - jsxPragma: string | null; - jsxFragmentName: string | null; - lib: Lib[]; -} -declare class Referencer extends Visitor { - #private; - readonly scopeManager: ScopeManager; - constructor(options: ReferencerOptions, scopeManager: ScopeManager); - currentScope(): Scope; - currentScope(throwOnNull: true): Scope | null; - close(node: TSESTree.Node): void; - referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void; - private populateGlobalsFromLib; - /** - * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself - */ - private referenceInSomeUpperScope; - private referenceJsxPragma; - private referenceJsxFragment; - protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; - protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void; - protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; - protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void; - protected visitProperty(node: TSESTree.Property): void; - protected visitType(node: TSESTree.Node | null | undefined): void; - protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion): void; - protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void; - protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; - protected BlockStatement(node: TSESTree.BlockStatement): void; - protected BreakStatement(): void; - protected CallExpression(node: TSESTree.CallExpression): void; - protected CatchClause(node: TSESTree.CatchClause): void; - protected ClassExpression(node: TSESTree.ClassExpression): void; - protected ClassDeclaration(node: TSESTree.ClassDeclaration): void; - protected ContinueStatement(): void; - protected ExportAllDeclaration(): void; - protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; - protected TSExportAssignment(node: TSESTree.TSExportAssignment): void; - protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; - protected ForInStatement(node: TSESTree.ForInStatement): void; - protected ForOfStatement(node: TSESTree.ForOfStatement): void; - protected ForStatement(node: TSESTree.ForStatement): void; - protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void; - protected FunctionExpression(node: TSESTree.FunctionExpression): void; - protected Identifier(node: TSESTree.Identifier): void; - protected ImportDeclaration(node: TSESTree.ImportDeclaration): void; - protected JSXAttribute(node: TSESTree.JSXAttribute): void; - protected JSXClosingElement(): void; - protected JSXFragment(node: TSESTree.JSXFragment): void; - protected JSXIdentifier(node: TSESTree.JSXIdentifier): void; - protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void; - protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void; - protected LabeledStatement(node: TSESTree.LabeledStatement): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected MetaProperty(): void; - protected NewExpression(node: TSESTree.NewExpression): void; - protected PrivateIdentifier(): void; - protected Program(node: TSESTree.Program): void; - protected Property(node: TSESTree.Property): void; - protected SwitchStatement(node: TSESTree.SwitchStatement): void; - protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void; - protected TSAsExpression(node: TSESTree.TSAsExpression): void; - protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void; - protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void; - protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void; - protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void; - protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void; - protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; - protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void; - protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void; - protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; - protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void; - protected UpdateExpression(node: TSESTree.UpdateExpression): void; - protected VariableDeclaration(node: TSESTree.VariableDeclaration): void; - protected WithStatement(node: TSESTree.WithStatement): void; - protected ImportAttribute(): void; -} -export { Referencer, ReferencerOptions }; -//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map deleted file mode 100644 index fda9f37f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAe9D,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,UAAU,iBAAkB,SAAQ,cAAc;IAChD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,GAAG,EAAE,CAAC;C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,CAAC,aAAa,GAAG,IAAI;IAW3D,SAAS,CAAC,eAAe,IAAI,IAAI;CAGlC;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js deleted file mode 100644 index c8681e48..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +++ /dev/null @@ -1,534 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Referencer = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const definition_1 = require("../definition"); -const lib_1 = require("../lib"); -const ClassVisitor_1 = require("./ClassVisitor"); -const ExportVisitor_1 = require("./ExportVisitor"); -const ImportVisitor_1 = require("./ImportVisitor"); -const PatternVisitor_1 = require("./PatternVisitor"); -const Reference_1 = require("./Reference"); -const TypeVisitor_1 = require("./TypeVisitor"); -const Visitor_1 = require("./Visitor"); -// Referencing variables and creating bindings. -class Referencer extends Visitor_1.Visitor { - #jsxPragma; - #jsxFragmentName; - #hasReferencedJsxFactory = false; - #hasReferencedJsxFragmentFactory = false; - #lib; - scopeManager; - constructor(options, scopeManager) { - super(options); - this.scopeManager = scopeManager; - this.#jsxPragma = options.jsxPragma; - this.#jsxFragmentName = options.jsxFragmentName; - this.#lib = options.lib; - } - currentScope(dontThrowOnNull) { - if (!dontThrowOnNull) { - (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa'); - } - return this.scopeManager.currentScope; - } - close(node) { - while (this.currentScope(true) && node === this.currentScope().block) { - this.scopeManager.currentScope = this.currentScope().close(this.scopeManager); - } - } - referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { - assignments.forEach(assignment => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, assignment.right, maybeImplicitGlobal, init); - }); - } - populateGlobalsFromLib(globalScope) { - for (const lib of this.#lib) { - const variables = lib_1.lib[lib]; - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - /* istanbul ignore if */ if (!variables) { - throw new Error(`Invalid value for lib provided: ${lib}`); - } - for (const [name, variable] of Object.entries(variables)) { - globalScope.defineImplicitVariable(name, variable); - } - } - // for const assertions (`{} as const` / `{}`) - globalScope.defineImplicitVariable('const', { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - }); - } - /** - * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself - */ - referenceInSomeUpperScope(name) { - let scope = this.scopeManager.currentScope; - while (scope) { - const variable = scope.set.get(name); - if (!variable) { - scope = scope.upper; - continue; - } - scope.referenceValue(variable.identifiers[0]); - return true; - } - return false; - } - referenceJsxPragma() { - if (this.#jsxPragma == null || this.#hasReferencedJsxFactory) { - return; - } - this.#hasReferencedJsxFactory = this.referenceInSomeUpperScope(this.#jsxPragma); - } - referenceJsxFragment() { - if (this.#jsxFragmentName == null || - this.#hasReferencedJsxFragmentFactory) { - return; - } - this.#hasReferencedJsxFragmentFactory = this.referenceInSomeUpperScope(this.#jsxFragmentName); - } - /////////////////// - // Visit helpers // - /////////////////// - visitClass(node) { - ClassVisitor_1.ClassVisitor.visit(this, node); - } - visitForIn(node) { - if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration && - node.left.kind !== 'var') { - this.scopeManager.nestForScope(node); - } - if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration) { - this.visit(node.left); - this.visitPattern(node.left.declarations[0].id, pattern => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, null, true); - }); - } - else { - this.visitPattern(node.left, (pattern, info) => { - const maybeImplicitGlobal = !this.currentScope().isStrict - ? { - pattern, - node, - } - : null; - this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); - }, { processRightHandNodes: true }); - } - this.visit(node.right); - this.visit(node.body); - this.close(node); - } - visitFunctionParameterTypeAnnotation(node) { - switch (node.type) { - case types_1.AST_NODE_TYPES.AssignmentPattern: - this.visitType(node.left.typeAnnotation); - break; - case types_1.AST_NODE_TYPES.TSParameterProperty: - this.visitFunctionParameterTypeAnnotation(node.parameter); - break; - default: - this.visitType(node.typeAnnotation); - break; - } - } - visitFunction(node) { - // FunctionDeclaration name is defined in upper scope - // NOTE: Not referring variableScope. It is intended. - // Since - // in ES5, FunctionDeclaration should be in FunctionBody. - // in ES6, FunctionDeclaration should be block scoped. - if (node.type === types_1.AST_NODE_TYPES.FunctionExpression) { - if (node.id) { - // FunctionExpression with name creates its special scope; - // FunctionExpressionNameScope. - this.scopeManager.nestFunctionExpressionNameScope(node); - } - } - else if (node.id) { - // id is defined in upper scope - this.currentScope().defineIdentifier(node.id, new definition_1.FunctionNameDefinition(node.id, node)); - } - // Consider this function is in the MethodDefinition. - this.scopeManager.nestFunctionScope(node, false); - // Process parameter declarations. - for (const param of node.params) { - this.visitPattern(param, (pattern, info) => { - this.currentScope().defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - this.visitFunctionParameterTypeAnnotation(param); - param.decorators.forEach(d => this.visit(d)); - } - this.visitType(node.returnType); - this.visitType(node.typeParameters); - // In TypeScript there are a number of function-like constructs which have no body, - // so check it exists before traversing - if (node.body) { - // Skip BlockStatement to prevent creating BlockStatement scope. - if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { - this.visitChildren(node.body); - } - else { - this.visit(node.body); - } - } - this.close(node); - } - visitProperty(node) { - if (node.computed) { - this.visit(node.key); - } - this.visit(node.value); - } - visitType(node) { - if (!node) { - return; - } - TypeVisitor_1.TypeVisitor.visit(this, node); - } - visitTypeAssertion(node) { - this.visit(node.expression); - this.visitType(node.typeAnnotation); - } - ///////////////////// - // Visit selectors // - ///////////////////// - ArrowFunctionExpression(node) { - this.visitFunction(node); - } - AssignmentExpression(node) { - let left = node.left; - switch (left.type) { - case types_1.AST_NODE_TYPES.TSAsExpression: - case types_1.AST_NODE_TYPES.TSTypeAssertion: - // explicitly visit the type annotation - this.visitType(left.typeAnnotation); - // intentional fallthrough - case types_1.AST_NODE_TYPES.TSNonNullExpression: - // unwrap the expression - left = left.expression; - } - if (PatternVisitor_1.PatternVisitor.isPattern(left)) { - if (node.operator === '=') { - this.visitPattern(left, (pattern, info) => { - const maybeImplicitGlobal = !this.currentScope().isStrict - ? { - pattern, - node, - } - : null; - this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); - }, { processRightHandNodes: true }); - } - else if (left.type === types_1.AST_NODE_TYPES.Identifier) { - this.currentScope().referenceValue(left, Reference_1.ReferenceFlag.ReadWrite, node.right); - } - } - else { - this.visit(left); - } - this.visit(node.right); - } - BlockStatement(node) { - this.scopeManager.nestBlockScope(node); - this.visitChildren(node); - this.close(node); - } - BreakStatement() { - // don't reference the break statement's label - } - CallExpression(node) { - this.visitChildren(node, ['typeArguments']); - this.visitType(node.typeArguments); - } - CatchClause(node) { - this.scopeManager.nestCatchScope(node); - if (node.param) { - const param = node.param; - this.visitPattern(param, (pattern, info) => { - this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - } - this.visit(node.body); - this.close(node); - } - ClassExpression(node) { - this.visitClass(node); - } - ClassDeclaration(node) { - this.visitClass(node); - } - ContinueStatement() { - // don't reference the continue statement's label - } - ExportAllDeclaration() { - // this defines no local variables - } - ExportDefaultDeclaration(node) { - if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { - ExportVisitor_1.ExportVisitor.visit(this, node); - } - else { - this.visit(node.declaration); - } - } - TSExportAssignment(node) { - if (node.expression.type === types_1.AST_NODE_TYPES.Identifier) { - // this is a special case - you can `export = T` where `T` is a type OR a - // value however `T[U]` is illegal when `T` is a type and `T.U` is illegal - // when `T.U` is a type - // i.e. if the expression is JUST an Identifier - it could be either ref - // kind; otherwise the standard rules apply - this.currentScope().referenceDualValueType(node.expression); - } - else { - this.visit(node.expression); - } - } - ExportNamedDeclaration(node) { - if (node.declaration) { - this.visit(node.declaration); - } - else { - ExportVisitor_1.ExportVisitor.visit(this, node); - } - } - ForInStatement(node) { - this.visitForIn(node); - } - ForOfStatement(node) { - this.visitForIn(node); - } - ForStatement(node) { - // Create ForStatement declaration. - // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is - // a static analyzer, we only generate one scope for ForStatement. - if (node.init && - node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && - node.init.kind !== 'var') { - this.scopeManager.nestForScope(node); - } - this.visitChildren(node); - this.close(node); - } - FunctionDeclaration(node) { - this.visitFunction(node); - } - FunctionExpression(node) { - this.visitFunction(node); - } - Identifier(node) { - this.currentScope().referenceValue(node); - this.visitType(node.typeAnnotation); - } - ImportDeclaration(node) { - (0, assert_1.assert)(this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); - ImportVisitor_1.ImportVisitor.visit(this, node); - } - JSXAttribute(node) { - this.visit(node.value); - } - JSXClosingElement() { - // should not be counted as a reference - } - JSXFragment(node) { - this.referenceJsxPragma(); - this.referenceJsxFragment(); - this.visitChildren(node); - } - JSXIdentifier(node) { - this.currentScope().referenceValue(node); - } - JSXMemberExpression(node) { - if (node.object.type !== types_1.AST_NODE_TYPES.JSXIdentifier) { - this.visit(node.object); - } - else if (node.object.name !== 'this') { - this.visit(node.object); - } - // we don't ever reference the property as it's always going to be a property on the thing - } - JSXOpeningElement(node) { - this.referenceJsxPragma(); - if (node.name.type === types_1.AST_NODE_TYPES.JSXIdentifier) { - if (node.name.name[0].toUpperCase() === node.name.name[0] || - node.name.name === 'this') { - // lower cased component names are always treated as "intrinsic" names, and are converted to a string, - // not a variable by JSX transforms: - //
=> React.createElement("div", null) - // the only case we want to visit a lower-cased component has its name as "this", - this.visit(node.name); - } - } - else { - this.visit(node.name); - } - this.visitType(node.typeArguments); - for (const attr of node.attributes) { - this.visit(attr); - } - } - LabeledStatement(node) { - this.visit(node.body); - } - MemberExpression(node) { - this.visit(node.object); - if (node.computed) { - this.visit(node.property); - } - } - MetaProperty() { - // meta properties all builtin globals - } - NewExpression(node) { - this.visitChildren(node, ['typeArguments']); - this.visitType(node.typeArguments); - } - PrivateIdentifier() { - // private identifiers are members on classes and thus have no variables to to reference - } - Program(node) { - const globalScope = this.scopeManager.nestGlobalScope(node); - this.populateGlobalsFromLib(globalScope); - if (this.scopeManager.isGlobalReturn()) { - // Force strictness of GlobalScope to false when using node.js scope. - this.currentScope().isStrict = false; - this.scopeManager.nestFunctionScope(node, false); - } - if (this.scopeManager.isModule()) { - this.scopeManager.nestModuleScope(node); - } - if (this.scopeManager.isImpliedStrict()) { - this.currentScope().isStrict = true; - } - this.visitChildren(node); - this.close(node); - } - Property(node) { - this.visitProperty(node); - } - SwitchStatement(node) { - this.visit(node.discriminant); - this.scopeManager.nestSwitchScope(node); - for (const switchCase of node.cases) { - this.visit(switchCase); - } - this.close(node); - } - TaggedTemplateExpression(node) { - this.visit(node.tag); - this.visit(node.quasi); - this.visitType(node.typeArguments); - } - TSAsExpression(node) { - this.visitTypeAssertion(node); - } - TSDeclareFunction(node) { - this.visitFunction(node); - } - TSImportEqualsDeclaration(node) { - this.currentScope().defineIdentifier(node.id, new definition_1.ImportBindingDefinition(node.id, node, node)); - if (node.moduleReference.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - this.visit(node.moduleReference.left); - } - else { - this.visit(node.moduleReference); - } - } - TSEmptyBodyFunctionExpression(node) { - this.visitFunction(node); - } - TSEnumDeclaration(node) { - this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); - // enum members can be referenced within the enum body - this.scopeManager.nestTSEnumScope(node); - for (const member of node.body.members) { - // TS resolves literal named members to be actual names - // enum Foo { - // 'a' = 1, - // b = a, // this references the 'a' member - // } - if (member.id.type === types_1.AST_NODE_TYPES.Literal && - typeof member.id.value === 'string') { - const name = member.id; - this.currentScope().defineLiteralIdentifier(name, new definition_1.TSEnumMemberDefinition(name, member)); - } - else if (!member.computed && - member.id.type === types_1.AST_NODE_TYPES.Identifier) { - this.currentScope().defineIdentifier(member.id, new definition_1.TSEnumMemberDefinition(member.id, member)); - } - this.visit(member.initializer); - } - this.close(node); - } - TSInstantiationExpression(node) { - this.visitChildren(node, ['typeArguments']); - this.visitType(node.typeArguments); - } - TSInterfaceDeclaration(node) { - this.visitType(node); - } - TSModuleDeclaration(node) { - if (node.id.type === types_1.AST_NODE_TYPES.Identifier && node.kind !== 'global') { - this.currentScope().defineIdentifier(node.id, new definition_1.TSModuleNameDefinition(node.id, node)); - } - this.scopeManager.nestTSModuleScope(node); - this.visit(node.body); - this.close(node); - } - TSSatisfiesExpression(node) { - this.visitTypeAssertion(node); - } - TSTypeAliasDeclaration(node) { - this.visitType(node); - } - TSTypeAssertion(node) { - this.visitTypeAssertion(node); - } - UpdateExpression(node) { - if (PatternVisitor_1.PatternVisitor.isPattern(node.argument)) { - this.visitPattern(node.argument, pattern => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.ReadWrite, null); - }); - } - else { - this.visitChildren(node); - } - } - VariableDeclaration(node) { - const variableTargetScope = node.kind === 'var' - ? this.currentScope().variableScope - : this.currentScope(); - for (const decl of node.declarations) { - const init = decl.init; - this.visitPattern(decl.id, (pattern, info) => { - variableTargetScope.defineIdentifier(pattern, new definition_1.VariableDefinition(pattern, decl, node)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - if (init) { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, init, null, true); - } - }, { processRightHandNodes: true }); - this.visit(decl.init); - this.visitType(decl.id.typeAnnotation); - } - } - WithStatement(node) { - this.visit(node.object); - // Then nest scope for WithStatement. - this.scopeManager.nestWithScope(node); - this.visit(node.body); - this.close(node); - } - ImportAttribute() { - // import assertions are module metadata and thus have no variables to reference - } -} -exports.Referencer = Referencer; -//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map deleted file mode 100644 index ee6a5c8f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,sCAAmC;AACnC,8CASuB;AACvB,gCAA4C;AAG5C,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,qDAAkD;AAElD,2CAA4C;AAC5C,+CAA4C;AAE5C,uCAAoC;AAQpC,+CAA+C;AAC/C,MAAM,UAAW,SAAQ,iBAAO;IAC9B,UAAU,CAAgB;IAC1B,gBAAgB,CAAgB;IAChC,wBAAwB,GAAG,KAAK,CAAC;IACjC,gCAAgC,GAAG,KAAK,CAAC;IACzC,IAAI,CAAQ;IACI,YAAY,CAAe;IAE3C,YAAY,OAA0B,EAAE,YAA0B;QAChE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC;IAC1B,CAAC;IAIM,YAAY,CAAC,eAAsB;QACxC,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;Q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I,EAAE,IAAI,CAAC,CAAC;gBACpE,IAAI,IAAI,EAAE,CAAC;oBACT,IAAI,CAAC,YAAY,EAAE,CAAC,cAAc,CAChC,OAAO,EACP,yBAAa,CAAC,KAAK,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,CACL,CAAC;gBACJ,CAAC;YACH,CAAC,EACD,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAChC,CAAC;YAEF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAExB,qCAAqC;QACrC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAEtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAES,eAAe;QACvB,gFAAgF;IAClF,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts deleted file mode 100644 index 5a0dafa3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class TypeVisitor extends Visitor { - #private; - constructor(referencer: Referencer); - static visit(referencer: Referencer, node: TSESTree.Node): void; - protected visitFunctionType(node: TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSFunctionType | TSESTree.TSMethodSignature): void; - protected visitPropertyKey(node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature): void; - protected Identifier(node: TSESTree.Identifier): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected TSCallSignatureDeclaration(node: TSESTree.TSCallSignatureDeclaration): void; - protected TSConditionalType(node: TSESTree.TSConditionalType): void; - protected TSConstructorType(node: TSESTree.TSConstructorType): void; - protected TSConstructSignatureDeclaration(node: TSESTree.TSConstructSignatureDeclaration): void; - protected TSFunctionType(node: TSESTree.TSFunctionType): void; - protected TSImportType(node: TSESTree.TSImportType): void; - protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; - protected TSInferType(node: TSESTree.TSInferType): void; - protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; - protected TSMappedType(node: TSESTree.TSMappedType): void; - protected TSMethodSignature(node: TSESTree.TSMethodSignature): void; - protected TSNamedTupleMember(node: TSESTree.TSNamedTupleMember): void; - protected TSPropertySignature(node: TSESTree.TSPropertySignature): void; - protected TSQualifiedName(node: TSESTree.TSQualifiedName): void; - protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; - protected TSTypeParameter(node: TSESTree.TSTypeParameter): void; - protected TSTypePredicate(node: TSESTree.TSTypePredicate): void; - protected TSTypeQuery(node: TSESTree.TSTypeQuery): void; - protected TSTypeAnnotation(node: TSESTree.TSTypeAnnotation): void; -} -export { TypeVisitor }; -//# sourceMappingURL=TypeVisitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map deleted file mode 100644 index 9a2f9c55..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.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,YAAY,GAAG,IAAI;IAMzD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IASjE,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAwCvD,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAmBP,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,GAAG,IAAI;IAYzD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;IAKnE,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAKrE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAKvE,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAK/D,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAkBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAS/D,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAQ/D,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;IAyBvD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;CAIlE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js deleted file mode 100644 index a720a368..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +++ /dev/null @@ -1,222 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const definition_1 = require("../definition"); -const scope_1 = require("../scope"); -const Visitor_1 = require("./Visitor"); -class TypeVisitor extends Visitor_1.Visitor { - #referencer; - constructor(referencer) { - super(referencer); - this.#referencer = referencer; - } - static visit(referencer, node) { - const typeReferencer = new TypeVisitor(referencer); - typeReferencer.visit(node); - } - /////////////////// - // Visit helpers // - /////////////////// - visitFunctionType(node) { - // arguments and type parameters can only be referenced from within the function - this.#referencer.scopeManager.nestFunctionTypeScope(node); - this.visit(node.typeParameters); - for (const param of node.params) { - let didVisitAnnotation = false; - this.visitPattern(param, (pattern, info) => { - // a parameter name creates a value type variable which can be referenced later via typeof arg - this.#referencer - .currentScope() - .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - if (pattern.typeAnnotation) { - this.visit(pattern.typeAnnotation); - didVisitAnnotation = true; - } - }); - // there are a few special cases where the type annotation is owned by the parameter, not the pattern - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (!didVisitAnnotation && 'typeAnnotation' in param) { - this.visit(param.typeAnnotation); - } - } - this.visit(node.returnType); - this.#referencer.close(node); - } - visitPropertyKey(node) { - if (!node.computed) { - return; - } - // computed members are treated as value references, and TS expects they have a literal type - this.#referencer.visit(node.key); - } - ///////////////////// - // Visit selectors // - ///////////////////// - Identifier(node) { - this.#referencer.currentScope().referenceType(node); - } - MemberExpression(node) { - this.visit(node.object); - // don't visit the property - } - TSCallSignatureDeclaration(node) { - this.visitFunctionType(node); - } - TSConditionalType(node) { - // conditional types can define inferred type parameters - // which are only accessible from inside the conditional parameter - this.#referencer.scopeManager.nestConditionalTypeScope(node); - // type parameters inferred in the condition clause are not accessible within the false branch - this.visitChildren(node, ['falseType']); - this.#referencer.close(node); - this.visit(node.falseType); - } - TSConstructorType(node) { - this.visitFunctionType(node); - } - TSConstructSignatureDeclaration(node) { - this.visitFunctionType(node); - } - TSFunctionType(node) { - this.visitFunctionType(node); - } - TSImportType(node) { - // the TS parser allows any type to be the parameter, but it's a syntax error - so we can ignore it - this.visit(node.typeArguments); - // the qualifier is just part of a standard EntityName, so it should not be visited - } - TSIndexSignature(node) { - for (const param of node.parameters) { - if (param.type === types_1.AST_NODE_TYPES.Identifier) { - this.visit(param.typeAnnotation); - } - } - this.visit(node.typeAnnotation); - } - TSInferType(node) { - const typeParameter = node.typeParameter; - let scope = this.#referencer.currentScope(); - /* - In cases where there is a sub-type scope created within a conditional type, then the generic should be defined in the - conditional type's scope, not the child type scope. - If we define it within the child type's scope then it won't be able to be referenced outside the child type - */ - if (scope.type === scope_1.ScopeType.functionType || - scope.type === scope_1.ScopeType.mappedType) { - // search up the scope tree to figure out if we're in a nested type scope - let currentScope = scope.upper; - while (currentScope) { - if (currentScope.type === scope_1.ScopeType.functionType || - currentScope.type === scope_1.ScopeType.mappedType) { - // ensure valid type parents only - currentScope = currentScope.upper; - continue; - } - if (currentScope.type === scope_1.ScopeType.conditionalType) { - scope = currentScope; - break; - } - break; - } - } - scope.defineIdentifier(typeParameter.name, new definition_1.TypeDefinition(typeParameter.name, typeParameter)); - this.visit(typeParameter.constraint); - } - TSInterfaceDeclaration(node) { - this.#referencer - .currentScope() - .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); - if (node.typeParameters) { - // type parameters cannot be referenced from outside their current scope - this.#referencer.scopeManager.nestTypeScope(node); - this.visit(node.typeParameters); - } - node.extends.forEach(this.visit, this); - this.visit(node.body); - if (node.typeParameters) { - this.#referencer.close(node); - } - } - TSMappedType(node) { - // mapped types key can only be referenced within their return value - this.#referencer.scopeManager.nestMappedTypeScope(node); - this.#referencer - .currentScope() - .defineIdentifier(node.key, new definition_1.TypeDefinition(node.key, node)); - this.visit(node.constraint); - this.visit(node.nameType); - this.visit(node.typeAnnotation); - this.#referencer.close(node); - } - TSMethodSignature(node) { - this.visitPropertyKey(node); - this.visitFunctionType(node); - } - TSNamedTupleMember(node) { - this.visit(node.elementType); - // we don't visit the label as the label only exists for the purposes of documentation - } - TSPropertySignature(node) { - this.visitPropertyKey(node); - this.visit(node.typeAnnotation); - } - TSQualifiedName(node) { - this.visit(node.left); - // we don't visit the right as it a name on the thing, not a name to reference - } - TSTypeAliasDeclaration(node) { - this.#referencer - .currentScope() - .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); - if (node.typeParameters) { - // type parameters cannot be referenced from outside their current scope - this.#referencer.scopeManager.nestTypeScope(node); - this.visit(node.typeParameters); - } - this.visit(node.typeAnnotation); - if (node.typeParameters) { - this.#referencer.close(node); - } - } - TSTypeParameter(node) { - this.#referencer - .currentScope() - .defineIdentifier(node.name, new definition_1.TypeDefinition(node.name, node)); - this.visit(node.constraint); - this.visit(node.default); - } - TSTypePredicate(node) { - if (node.parameterName.type !== types_1.AST_NODE_TYPES.TSThisType) { - this.#referencer.currentScope().referenceValue(node.parameterName); - } - this.visit(node.typeAnnotation); - } - // a type query `typeof foo` is a special case that references a _non-type_ variable, - TSTypeQuery(node) { - let entityName; - if (node.exprName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - let iter = node.exprName; - while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - iter = iter.left; - } - entityName = iter.left; - } - else { - entityName = node.exprName; - if (node.exprName.type === types_1.AST_NODE_TYPES.TSImportType) { - this.visit(node.exprName); - } - } - if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { - this.#referencer.currentScope().referenceValue(entityName); - } - this.visit(node.typeArguments); - } - TSTypeAnnotation(node) { - // check - this.visitChildren(node); - } -} -exports.TypeVisitor = TypeVisitor; -//# sourceMappingURL=TypeVisitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map deleted file mode 100644 index 85fb241a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeVisitor.js","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,8CAAoE;AAEpE,oCAAqC;AAErC,uCAAoC;AAEpC,MAAM,WAAY,SAAQ,iBAAO;IACtB,WAAW,CAAa;IAEjC,YAAY,UAAsB;QAChC,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAmB;QACtD,MAAM,cAAc,GAAG,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;QACnD,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IAET,iBAAiB,CACzB,IAK8B;QAE9B,gFAAgF;QAChF,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEhC,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChC,IAAI,kBAAkB,GAAG,KAAK,CAAC;YAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;gBACzC,8FAA8F;gBAC9F,IAAI,CAAC,WAAW;qBACb,YAAY,EAAE;qBACd,gBAAgB,CACf,OAAO,EACP,IAAI,gCAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;gBAEJ,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;oBAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,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CAAC,IAAI,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC;YAE3B,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY,EAAE,CAAC;gBACvD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;IAES,gBAAgB,CAAC,IAA+B;QACxD,QAAQ;QACR,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts deleted file mode 100644 index 728a0427..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { PatternVisitorCallback, PatternVisitorOptions } from './PatternVisitor'; -import { VisitorBase, VisitorOptions } from './VisitorBase'; -interface VisitPatternOptions extends PatternVisitorOptions { - processRightHandNodes?: boolean; -} -declare class Visitor extends VisitorBase { - #private; - constructor(optionsOrVisitor: Visitor | VisitorOptions); - protected visitPattern(node: TSESTree.Node, callback: PatternVisitorCallback, options?: VisitPatternOptions): void; -} -export { Visitor, VisitorBase, VisitorOptions }; -//# sourceMappingURL=Visitor.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map deleted file mode 100644 index 4aa27184..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE5D,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AACD,cAAM,OAAQ,SAAQ,WAAW;;gBAEnB,gBAAgB,EAAE,OAAO,GAAG,cAAc;IAatD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,mBAAsD,GAC9D,IAAI;CAWR;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js deleted file mode 100644 index ea48309e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VisitorBase = exports.Visitor = void 0; -const PatternVisitor_1 = require("./PatternVisitor"); -const VisitorBase_1 = require("./VisitorBase"); -Object.defineProperty(exports, "VisitorBase", { enumerable: true, get: function () { return VisitorBase_1.VisitorBase; } }); -class Visitor extends VisitorBase_1.VisitorBase { - #options; - constructor(optionsOrVisitor) { - super(optionsOrVisitor instanceof Visitor - ? optionsOrVisitor.#options - : optionsOrVisitor); - this.#options = - optionsOrVisitor instanceof Visitor - ? optionsOrVisitor.#options - : optionsOrVisitor; - } - visitPattern(node, callback, options = { processRightHandNodes: false }) { - // Call the callback at left hand identifier nodes, and Collect right hand nodes. - const visitor = new PatternVisitor_1.PatternVisitor(this.#options, node, callback); - visitor.visit(node); - // Process the right hand nodes recursively. - if (options.processRightHandNodes) { - visitor.rightHandNodes.forEach(this.visit, this); - } - } -} -exports.Visitor = Visitor; -//# sourceMappingURL=Visitor.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map deleted file mode 100644 index 4c36949a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":";;;AAMA,qDAAkD;AAClD,+CAA4D;AAqC1C,4FArCT,yBAAW,OAqCS;AAhC7B,MAAM,OAAQ,SAAQ,yBAAW;IACtB,QAAQ,CAAiB;IAClC,YAAY,gBAA0C;QACpD,KAAK,CACH,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;YAC3B,CAAC,CAAC,gBAAgB,CACrB,CAAC;QAEF,IAAI,CAAC,QAAQ;YACX,gBAAgB,YAAY,OAAO;gBACjC,CAAC,CAAC,gBAAgB,CAAC,QAAQ;gBAC3B,CAAC,CAAC,gBAAgB,CAAC;IACzB,CAAC;IAES,YAAY,CACpB,IAAmB,EACnB,QAAgC,EAChC,UAA+B,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAE/D,iFAAiF;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAElE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpB,4CAA4C;QAC5C,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAClC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;CACF;AAEQ,0BAAO"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts deleted file mode 100644 index f5da5c73..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { VisitorKeys } from '@typescript-eslint/visitor-keys'; -interface VisitorOptions { - childVisitorKeys?: VisitorKeys | null; - visitChildrenEvenIfSelectorExists?: boolean; -} -declare abstract class VisitorBase { - #private; - constructor(options: VisitorOptions); - /** - * Default method for visiting children. - * @param node the node whose children should be visited - * @param excludeArr a list of keys to not visit - */ - visitChildren(node: T | null | undefined, excludeArr?: (keyof T)[]): void; - /** - * Dispatching node. - */ - visit(node: TSESTree.Node | null | undefined): void; -} -export { VisitorBase, VisitorOptions, VisitorKeys }; -//# sourceMappingURL=VisitorBase.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map deleted file mode 100644 index 8423d85c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VisitorBase.d.ts","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAe,MAAM,iCAAiC,CAAC;AAE3E,UAAU,cAAc;IACtB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C;AAaD,uBAAe,WAAW;;gBAGZ,OAAO,EAAE,cAAc;IAMnC;;;;OAIG;IACH,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,UAAU,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAC3B,IAAI;IA6BP;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAepD;AAED,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js deleted file mode 100644 index 22d9d258..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VisitorBase = void 0; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -function isObject(obj) { - return typeof obj === 'object' && obj != null; -} -function isNode(node) { - return isObject(node) && typeof node.type === 'string'; -} -class VisitorBase { - #childVisitorKeys; - #visitChildrenEvenIfSelectorExists; - constructor(options) { - this.#childVisitorKeys = options.childVisitorKeys ?? visitor_keys_1.visitorKeys; - this.#visitChildrenEvenIfSelectorExists = - options.visitChildrenEvenIfSelectorExists ?? false; - } - /** - * Default method for visiting children. - * @param node the node whose children should be visited - * @param excludeArr a list of keys to not visit - */ - visitChildren(node, excludeArr = []) { - if (node?.type == null) { - return; - } - const exclude = new Set([...excludeArr, 'parent']); - const children = this.#childVisitorKeys[node.type] ?? Object.keys(node); - for (const key of children) { - if (exclude.has(key)) { - continue; - } - const child = node[key]; - if (!child) { - continue; - } - if (Array.isArray(child)) { - for (const subChild of child) { - if (isNode(subChild)) { - this.visit(subChild); - } - } - } - else if (isNode(child)) { - this.visit(child); - } - } - } - /** - * Dispatching node. - */ - visit(node) { - if (node?.type == null) { - return; - } - const visitor = this[node.type]; - if (visitor) { - visitor.call(this, node); - if (!this.#visitChildrenEvenIfSelectorExists) { - return; - } - } - this.visitChildren(node); - } -} -exports.VisitorBase = VisitorBase; -//# sourceMappingURL=VisitorBase.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map deleted file mode 100644 index 3d759ae1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VisitorBase.js","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":";;;AACA,kEAA2E;AAO3E,SAAS,QAAQ,CAAC,GAAY;IAC5B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,CAAC;AAChD,CAAC;AACD,SAAS,MAAM,CAAC,IAAa;IAC3B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;AACzD,CAAC;AAMD,MAAe,WAAW;IACf,iBAAiB,CAAc;IAC/B,kCAAkC,CAAU;IACrD,YAAY,OAAuB;QACjC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,IAAI,0BAAW,CAAC;QACjE,IAAI,CAAC,kCAAkC;YACrC,OAAO,CAAC,iCAAiC,IAAI,KAAK,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,IAA0B,EAC1B,a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AC,kCAAkC,EAAE,CAAC;gBAC7C,OAAO;YACT,CAAC;QACH,CAAC;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts deleted file mode 100644 index d2a8121c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Referencer, ReferencerOptions } from './Referencer'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map deleted file mode 100644 index 5b48579f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js deleted file mode 100644 index 16625137..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Referencer = void 0; -var Referencer_1 = require("./Referencer"); -Object.defineProperty(exports, "Referencer", { enumerable: true, get: function () { return Referencer_1.Referencer; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map deleted file mode 100644 index aa5dc621..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":";;;AAAA,2CAA6D;AAApD,wGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts deleted file mode 100644 index 66f2713f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class BlockScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']); -} -export { BlockScope }; -//# sourceMappingURL=BlockScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map deleted file mode 100644 index 74e95a89..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,cAAc,EACvB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js deleted file mode 100644 index 0fc34d61..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BlockScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class BlockScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.block, upperScope, block, false); - } -} -exports.BlockScope = BlockScope; -//# sourceMappingURL=BlockScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map deleted file mode 100644 index 9934c6c8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BlockScope.js","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts deleted file mode 100644 index 59532d23..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class CatchScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']); -} -export { CatchScope }; -//# sourceMappingURL=CatchScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map deleted file mode 100644 index de507516..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchScope.d.ts","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js deleted file mode 100644 index dbb630f2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CatchScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class CatchScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.catch, upperScope, block, false); - } -} -exports.CatchScope = CatchScope; -//# sourceMappingURL=CatchScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map deleted file mode 100644 index e13f07e3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchScope.js","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts deleted file mode 100644 index a6467363..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassFieldInitializerScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']); -} -export { ClassFieldInitializerScope }; -//# sourceMappingURL=ClassFieldInitializerScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map deleted file mode 100644 index c625a6b6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassFieldInitializerScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,0BAA2B,SAAQ,SAAS,CAChD,SAAS,CAAC,qBAAqB,EAE/B,QAAQ,CAAC,UAAU,EACnB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAU7C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js deleted file mode 100644 index 5d3bb691..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassFieldInitializerScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassFieldInitializerScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.classFieldInitializer, upperScope, block, false); - } -} -exports.ClassFieldInitializerScope = ClassFieldInitializerScope; -//# sourceMappingURL=ClassFieldInitializerScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map deleted file mode 100644 index c14cc0f1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassFieldInitializerScope.js","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,0BAA2B,SAAQ,qBAKxC;IACC,YACE,YAA0B,EAC1B,UAA+C,EAC/C,KAA0C;QAE1C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,qBAAqB,EAC/B,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,gEAA0B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts deleted file mode 100644 index c31a3364..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']); -} -export { ClassScope }; -//# sourceMappingURL=ClassScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map deleted file mode 100644 index 540877e5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js deleted file mode 100644 index 003e214f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.class, upperScope, block, false); - } -} -exports.ClassScope = ClassScope; -//# sourceMappingURL=ClassScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map deleted file mode 100644 index 3ba1ca90..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassScope.js","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts deleted file mode 100644 index 7d7e81b0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassStaticBlockScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']); -} -export { ClassStaticBlockScope }; -//# sourceMappingURL=ClassStaticBlockScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map deleted file mode 100644 index 1bdcd785..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassStaticBlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,qBAAsB,SAAQ,SAAS,CAC3C,SAAS,CAAC,gBAAgB,EAC1B,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAC1C,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC;CAIxC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js deleted file mode 100644 index 3f23aa68..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassStaticBlockScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassStaticBlockScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false); - } -} -exports.ClassStaticBlockScope = ClassStaticBlockScope; -//# sourceMappingURL=ClassStaticBlockScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map deleted file mode 100644 index 8456365f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassStaticBlockScope.js","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,qBAAsB,SAAQ,qBAInC;IACC,YACE,YAA0B,EAC1B,UAA0C,EAC1C,KAAqC;QAErC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts deleted file mode 100644 index 6d35e6ec..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ConditionalTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']); -} -export { ConditionalTypeScope }; -//# sourceMappingURL=ConditionalTypeScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map deleted file mode 100644 index 44f849aa..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConditionalTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,oBAAqB,SAAQ,SAAS,CAC1C,SAAS,CAAC,eAAe,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAIvC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js deleted file mode 100644 index 8fbd7c50..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConditionalTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ConditionalTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.conditionalType, upperScope, block, false); - } -} -exports.ConditionalTypeScope = ConditionalTypeScope; -//# sourceMappingURL=ConditionalTypeScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map deleted file mode 100644 index 0b60bfee..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConditionalTypeScope.js","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,oBAAqB,SAAQ,qBAIlC;IACC,YACE,YAA0B,EAC1B,UAAyC,EACzC,KAAoC;QAEpC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts deleted file mode 100644 index ed2f2245..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ForScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']); -} -export { ForScope }; -//# sourceMappingURL=ForScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map deleted file mode 100644 index fb1348fe..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ForScope.d.ts","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,QAAS,SAAQ,SAAS,CAC9B,SAAS,CAAC,GAAG,EACb,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,EACzE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;CAI3B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js deleted file mode 100644 index cd27683e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ForScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ForScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.for, upperScope, block, false); - } -} -exports.ForScope = ForScope; -//# sourceMappingURL=ForScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map deleted file mode 100644 index d8f8e8ea..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ForScope.js","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,QAAS,SAAQ,qBAItB;IACC,YACE,YAA0B,EAC1B,UAA6B,EAC7B,KAAwB;QAExB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts deleted file mode 100644 index 2f5044ca..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionExpressionNameScope extends ScopeBase { - readonly functionExpressionScope: true; - constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']); -} -export { FunctionExpressionNameScope }; -//# sourceMappingURL=FunctionExpressionNameScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map deleted file mode 100644 index 89161c4f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionExpressionNameScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,2BAA4B,SAAQ,SAAS,CACjD,SAAS,CAAC,sBAAsB,EAChC,QAAQ,CAAC,kBAAkB,EAC3B,KAAK,CACN;IACC,SAAgB,uBAAuB,EAAE,IAAI,CAAC;gBAE5C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAChD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC;CAiB9C;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js deleted file mode 100644 index ed1f061b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionExpressionNameScope = void 0; -const definition_1 = require("../definition"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionExpressionNameScope extends ScopeBase_1.ScopeBase { - functionExpressionScope; - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.functionExpressionName, upperScope, block, false); - if (block.id) { - this.defineIdentifier(block.id, new definition_1.FunctionNameDefinition(block.id, block)); - } - this.functionExpressionScope = true; - } -} -exports.FunctionExpressionNameScope = FunctionExpressionNameScope; -//# sourceMappingURL=FunctionExpressionNameScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map deleted file mode 100644 index 8996d857..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionExpressionNameScope.js","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":";;;AAEA,8CAAuD;AAGvD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,2BAA4B,SAAQ,qBAIzC;IACiB,uBAAuB,CAAO;IAC9C,YACE,YAA0B,EAC1B,UAAgD,EAChD,KAA2C;QAE3C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,sBAAsB,EAChC,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;QACF,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACb,IAAI,CAAC,gBAAgB,CACnB,KAAK,CAAC,EAAE,EACR,IAAI,mCAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAC5C,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;CACF;AAEQ,kEAA2B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts deleted file mode 100644 index f1bf5e11..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Reference } from '../referencer/Reference'; -import type { ScopeManager } from '../ScopeManager'; -import type { Variable } from '../variable'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean); - protected isValidResolution(ref: Reference, variable: Variable): boolean; -} -export { FunctionScope }; -//# sourceMappingURL=FunctionScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map deleted file mode 100644 index 40eaaaa1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAChB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,OAAO,GAChB,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,kBAAkB,EAAE,OAAO;IAuB7B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAiBzE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js deleted file mode 100644 index a45b74f0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionScope = void 0; -const types_1 = require("@typescript-eslint/types"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block, isMethodDefinition) { - super(scopeManager, ScopeType_1.ScopeType.function, upperScope, block, isMethodDefinition); - // section 9.2.13, FunctionDeclarationInstantiation. - // NOTE Arrow functions never have an arguments objects. - if (this.block.type !== types_1.AST_NODE_TYPES.ArrowFunctionExpression) { - this.defineVariable('arguments', this.set, this.variables, null, null); - } - } - // References in default parameters isn't resolved to variables which are in their function body. - // const x = 1 - // function f(a = x) { // This `x` is resolved to the `x` in the outer scope. - // const x = 2 - // console.log(a) - // } - isValidResolution(ref, variable) { - // If `options.globalReturn` is true, `this.block` becomes a Program node. - if (this.block.type === types_1.AST_NODE_TYPES.Program) { - return true; - } - const bodyStart = this.block.body?.range[0] ?? -1; - // It's invalid resolution in the following case: - return !((variable.scope === this && - ref.identifier.range[0] < bodyStart && // the reference is in the parameter part. - variable.defs.every(d => d.name.range[0] >= bodyStart)) // the variable is in the body. - ); - } -} -exports.FunctionScope = FunctionScope; -//# sourceMappingURL=FunctionScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map deleted file mode 100644 index f66428f3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionScope.js","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAM1D,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAS3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B,EAC7B,kBAA2B;QAE3B,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,QAAQ,EAClB,UAAU,EACV,KAAK,EACL,kBAAkB,CACnB,CAAC;QAEF,oDAAoD;QACpD,wDAAwD;QACxD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE,CAAC;YAC/D,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED,iGAAiG;IACjG,kBAAkB;IAClB,iFAAiF;IACjF,sBAAsB;IACtB,yBAAyB;IACzB,QAAQ;IACE,iBAAiB,CAAC,GAAc,EAAE,QAAkB;QAC5D,0EAA0E;QAC1E,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAElD,iDAAiD;QACjD,OAAO,CAAC,CACN,CACE,QAAQ,CAAC,KAAK,KAAK,IAAI;YACvB,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,0CAA0C;YACjF,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CACvD,CAAC,+BAA+B;SAClC,CAAC;IACJ,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts deleted file mode 100644 index 5cdeb57f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']); -} -export { FunctionTypeScope }; -//# sourceMappingURL=FunctionTypeScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map deleted file mode 100644 index fa77ec34..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,iBAAkB,SAAQ,SAAS,CACvC,SAAS,CAAC,YAAY,EACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC;CAIpC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js deleted file mode 100644 index 3d7fe797..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.functionType, upperScope, block, false); - } -} -exports.FunctionTypeScope = FunctionTypeScope; -//# sourceMappingURL=FunctionTypeScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map deleted file mode 100644 index 6bb883e2..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionTypeScope.js","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,iBAAkB,SAAQ,qBAQ/B;IACC,YACE,YAA0B,EAC1B,UAAsC,EACtC,KAAiC;QAEjC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;CACF;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts deleted file mode 100644 index aab46334..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { ImplicitLibVariableOptions } from '../variable'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class GlobalScope extends ScopeBase { - private readonly implicit; - constructor(scopeManager: ScopeManager, block: GlobalScope['block']); - defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void; - close(scopeManager: ScopeManager): Scope | null; -} -export { GlobalScope }; -//# sourceMappingURL=GlobalScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map deleted file mode 100644 index 129515e8..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GlobalScope.d.ts","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAY,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,OAAO;AAChB;;GAEG;AACH,IAAI,CACL;IAEC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;gBAEU,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAS5D,sBAAsB,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI;IAUA,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAuBvD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js deleted file mode 100644 index 279fd16c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GlobalScope = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const ImplicitGlobalVariableDefinition_1 = require("../definition/ImplicitGlobalVariableDefinition"); -const variable_1 = require("../variable"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class GlobalScope extends ScopeBase_1.ScopeBase { - // note this is accessed in used in the legacy eslint-scope tests, so it can't be true private - implicit; - constructor(scopeManager, block) { - super(scopeManager, ScopeType_1.ScopeType.global, null, block, false); - this.implicit = { - set: new Map(), - variables: [], - leftToBeResolved: [], - }; - } - defineImplicitVariable(name, options) { - this.defineVariable(new variable_1.ImplicitLibVariable(this, name, options), this.set, this.variables, null, null); - } - close(scopeManager) { - (0, assert_1.assert)(this.leftToResolve); - for (const ref of this.leftToResolve) { - if (ref.maybeImplicitGlobal && !this.set.has(ref.identifier.name)) { - // create an implicit global variable from assignment expression - const info = ref.maybeImplicitGlobal; - const node = info.pattern; - if (node.type === types_1.AST_NODE_TYPES.Identifier) { - this.defineVariable(node.name, this.implicit.set, this.implicit.variables, node, new ImplicitGlobalVariableDefinition_1.ImplicitGlobalVariableDefinition(info.pattern, info.node)); - } - } - } - this.implicit.leftToBeResolved = this.leftToResolve; - return super.close(scopeManager); - } -} -exports.GlobalScope = GlobalScope; -//# sourceMappingURL=GlobalScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map deleted file mode 100644 index 1e3aed15..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":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,CAAC,QAAQ,CAAC,GAAG,EACjB,IAAI,CAAC,QAAQ,CAAC,SAAS,EACvB,IAAI,EACJ,IAAI,mEAAgC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts deleted file mode 100644 index b8ee01c0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class MappedTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']); -} -export { MappedTypeScope }; -//# sourceMappingURL=MappedTypeScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map deleted file mode 100644 index 727fa23f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MappedTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,eAAgB,SAAQ,SAAS,CACrC,SAAS,CAAC,UAAU,EACpB,QAAQ,CAAC,YAAY,EACrB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,CAAC,OAAO,CAAC,EACpC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;CAIlC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js deleted file mode 100644 index 81879c5f..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MappedTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class MappedTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.mappedType, upperScope, block, false); - } -} -exports.MappedTypeScope = MappedTypeScope; -//# sourceMappingURL=MappedTypeScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map deleted file mode 100644 index f33fab4d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MappedTypeScope.js","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAI7B;IACC,YACE,YAA0B,EAC1B,UAAoC,EACpC,KAA+B;QAE/B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,0CAAe"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts deleted file mode 100644 index ac537d89..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ModuleScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']); -} -export { ModuleScope }; -//# sourceMappingURL=ModuleScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map deleted file mode 100644 index 448b9b68..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;gBAE1E,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js deleted file mode 100644 index 9d84e34a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModuleScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ModuleScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.module, upperScope, block, false); - } -} -exports.ModuleScope = ModuleScope; -//# sourceMappingURL=ModuleScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map deleted file mode 100644 index 05ded0c5..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModuleScope.js","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAAoD;IAC5E,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts deleted file mode 100644 index 7f475b16..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { BlockScope } from './BlockScope'; -import type { CatchScope } from './CatchScope'; -import type { ClassFieldInitializerScope } from './ClassFieldInitializerScope'; -import type { ClassScope } from './ClassScope'; -import type { ClassStaticBlockScope } from './ClassStaticBlockScope'; -import type { ConditionalTypeScope } from './ConditionalTypeScope'; -import type { ForScope } from './ForScope'; -import type { FunctionExpressionNameScope } from './FunctionExpressionNameScope'; -import type { FunctionScope } from './FunctionScope'; -import type { FunctionTypeScope } from './FunctionTypeScope'; -import type { GlobalScope } from './GlobalScope'; -import type { MappedTypeScope } from './MappedTypeScope'; -import type { ModuleScope } from './ModuleScope'; -import type { SwitchScope } from './SwitchScope'; -import type { TSEnumScope } from './TSEnumScope'; -import type { TSModuleScope } from './TSModuleScope'; -import type { TypeScope } from './TypeScope'; -import type { WithScope } from './WithScope'; -type Scope = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope; -export { Scope }; -//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map deleted file mode 100644 index 04701f4b..00000000 --- a/graphql/node_modules/@typescript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oBAAoB,GACpB,QAAQ,GACR,2BAA2B,GAC3B,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js deleted file mode 100644 index 676430c1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map deleted file mode 100644 index 03b04c83..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts deleted file mode 100644 index 2967513e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Definition } from '../definition'; -import type { ReferenceImplicitGlobal } from '../referencer/Reference'; -import { Reference, ReferenceFlag } from '../referencer/Reference'; -import type { ScopeManager } from '../ScopeManager'; -import { Variable } from '../variable'; -import type { FunctionScope } from './FunctionScope'; -import type { GlobalScope } from './GlobalScope'; -import type { ModuleScope } from './ModuleScope'; -import type { Scope } from './Scope'; -import { ScopeType } from './ScopeType'; -import type { TSModuleScope } from './TSModuleScope'; -type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope; -declare abstract class ScopeBase { - #private; - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * The AST node which created this scope. - * @public - */ - readonly block: Block; - /** - * The array of child scopes. This does not include grandchild scopes. - * @public - */ - readonly childScopes: Scope[]; - /** - * Whether this scope is created by a FunctionExpression. - * @public - */ - readonly functionExpressionScope: boolean; - /** - * Whether 'use strict' is in effect in this scope. - * @public - */ - isStrict: boolean; - /** - * List of {@link Reference}s that are left to be resolved (i.e. which - * need to be linked to the variable they refer to). - */ - protected leftToResolve: Reference[] | null; - /** - * Any variable {@link Reference} found in this scope. - * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). - * For local variables this also includes defining occurrences (like in a 'var' statement). - * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. - * @public - */ - readonly references: Reference[]; - /** - * The map from variable names to variable objects. - * @public - */ - readonly set: Map; - /** - * The {@link Reference}s that are not resolved with this scope. - * @public - */ - readonly through: Reference[]; - readonly type: Type; - /** - * Reference to the parent {@link Scope}. - * @public - */ - readonly upper: Upper; - /** - * The scoped {@link Variable}s of this scope. - * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well - * as all further formal arguments. - * This does not include variables which are defined in child scopes. - * @public - */ - readonly variables: Variable[]; - /** - * For scopes that can contain variable declarations, this is a self-reference. - * For other scope types this is the *variableScope* value of the parent scope. - * @public - */ - readonly variableScope: VariableScope; - constructor(scopeManager: ScopeManager, type: Type, upperScope: Upper, block: Block, isMethodDefinition: boolean); - private isVariableScope; - shouldStaticallyClose(): boolean; - private shouldStaticallyCloseForGlobal; - close(scopeManager: ScopeManager): Scope | null; - /** - * To override by function scopes. - * References in default parameters isn't resolved to variables which are in their function body. - */ - protected isValidResolution(_ref: Reference, _variable: Variable): boolean; - protected delegateToUpperScope(ref: Reference): void; - private addDeclaredVariablesOfNode; - protected defineVariable(nameOrVariable: Variable | string, set: Map, variables: Variable[], node: TSESTree.Identifier | null, def: Definition | null): void; - defineIdentifier(node: TSESTree.Identifier, def: Definition): void; - defineLiteralIdentifier(node: TSESTree.StringLiteral, def: Definition): void; - referenceValue(node: TSESTree.Identifier | TSESTree.JSXIdentifier, assign?: ReferenceFlag, writeExpr?: TSESTree.Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void; - referenceType(node: TSESTree.Identifier): void; - referenceDualValueType(node: TSESTree.Identifier): void; -} -export { ScopeBase }; -//# sourceMappingURL=ScopeBase.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map deleted file mode 100644 index 490bfc85..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeBase.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,SAAS,EACT,aAAa,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SA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,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;IAmBtD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,OAAO;IAI1E,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAKpD,OAAO,CAAC,0BAA0B;IAmBlC,SAAS,CAAC,cAAc,CACtB,cAAc,EAAE,QAAQ,GAAG,MAAM,EACjC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC1B,SAAS,EAAE,QAAQ,EAAE,EACrB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EAChC,GAAG,EAAE,UAAU,GAAG,IAAI,GACrB,IAAI;IAuBA,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAIlE,uBAAuB,CAC5B,IAAI,EAAE,QAAQ,CAAC,aAAa,EAC5B,GAAG,EAAE,UAAU,GACd,IAAI;IAIA,cAAc,CACnB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,MAAM,GAAE,aAAkC,EAC1C,SAAS,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EACtC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,UAAQ,GACX,IAAI;IAeA,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAe9C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAc/D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js deleted file mode 100644 index 1b9beb98..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +++ /dev/null @@ -1,361 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeBase = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const definition_1 = require("../definition"); -const ID_1 = require("../ID"); -const Reference_1 = require("../referencer/Reference"); -const variable_1 = require("../variable"); -const ScopeType_1 = require("./ScopeType"); -/** - * Test if scope is strict - */ -function isStrictScope(scope, block, isMethodDefinition) { - let body; - // When upper scope is exists and strict, inner scope is also strict. - if (scope.upper?.isStrict) { - return true; - } - if (isMethodDefinition) { - return true; - } - if (scope.type === ScopeType_1.ScopeType.class || - scope.type === ScopeType_1.ScopeType.conditionalType || - scope.type === ScopeType_1.ScopeType.functionType || - scope.type === ScopeType_1.ScopeType.mappedType || - scope.type === ScopeType_1.ScopeType.module || - scope.type === ScopeType_1.ScopeType.tsEnum || - scope.type === ScopeType_1.ScopeType.tsModule || - scope.type === ScopeType_1.ScopeType.type) { - return true; - } - if (scope.type === ScopeType_1.ScopeType.block || scope.type === ScopeType_1.ScopeType.switch) { - return false; - } - if (scope.type === ScopeType_1.ScopeType.function) { - const functionBody = block; - switch (functionBody.type) { - case types_1.AST_NODE_TYPES.ArrowFunctionExpression: - if (functionBody.body.type !== types_1.AST_NODE_TYPES.BlockStatement) { - return false; - } - body = functionBody.body; - break; - case types_1.AST_NODE_TYPES.Program: - body = functionBody; - break; - default: - body = functionBody.body; - } - if (!body) { - return false; - } - } - else if (scope.type === ScopeType_1.ScopeType.global) { - body = block; - } - else { - return false; - } - // Search 'use strict' directive. - for (const stmt of body.body) { - if (stmt.type !== types_1.AST_NODE_TYPES.ExpressionStatement) { - break; - } - if (stmt.directive === 'use strict') { - return true; - } - const expr = stmt.expression; - if (expr.type !== types_1.AST_NODE_TYPES.Literal) { - break; - } - if (expr.raw === '"use strict"' || expr.raw === "'use strict'") { - return true; - } - if (expr.value === 'use strict') { - return true; - } - } - return false; -} -function registerScope(scopeManager, scope) { - scopeManager.scopes.push(scope); - const scopes = scopeManager.nodeToScope.get(scope.block); - if (scopes) { - scopes.push(scope); - } - else { - scopeManager.nodeToScope.set(scope.block, [scope]); - } -} -const generator = (0, ID_1.createIdGenerator)(); -const VARIABLE_SCOPE_TYPES = new Set([ - ScopeType_1.ScopeType.classFieldInitializer, - ScopeType_1.ScopeType.classStaticBlock, - ScopeType_1.ScopeType.function, - ScopeType_1.ScopeType.global, - ScopeType_1.ScopeType.module, - ScopeType_1.ScopeType.tsModule, -]); -class ScopeBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - $id = generator(); - /** - * The AST node which created this scope. - * @public - */ - block; - /** - * The array of child scopes. This does not include grandchild scopes. - * @public - */ - childScopes = []; - /** - * A map of the variables for each node in this scope. - * This is map is a pointer to the one in the parent ScopeManager instance - */ - #declaredVariables; - /** - * Generally, through the lexical scoping of JS you can always know which variable an identifier in the source code - * refers to. There are a few exceptions to this rule. With `global` and `with` scopes you can only decide at runtime - * which variable a reference refers to. - * All those scopes are considered "dynamic". - */ - #dynamic; - /** - * Whether this scope is created by a FunctionExpression. - * @public - */ - functionExpressionScope = false; - /** - * Whether 'use strict' is in effect in this scope. - * @public - */ - isStrict; - /** - * List of {@link Reference}s that are left to be resolved (i.e. which - * need to be linked to the variable they refer to). - */ - leftToResolve = []; - /** - * Any variable {@link Reference} found in this scope. - * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). - * For local variables this also includes defining occurrences (like in a 'var' statement). - * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. - * @public - */ - references = []; - /** - * The map from variable names to variable objects. - * @public - */ - set = new Map(); - /** - * The {@link Reference}s that are not resolved with this scope. - * @public - */ - through = []; - type; - /** - * Reference to the parent {@link Scope}. - * @public - */ - upper; - /** - * The scoped {@link Variable}s of this scope. - * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well - * as all further formal arguments. - * This does not include variables which are defined in child scopes. - * @public - */ - variables = []; - /** - * For scopes that can contain variable declarations, this is a self-reference. - * For other scope types this is the *variableScope* value of the parent scope. - * @public - */ - variableScope; - constructor(scopeManager, type, upperScope, block, isMethodDefinition) { - const upperScopeAsScopeBase = upperScope; - this.type = type; - this.#dynamic = - this.type === ScopeType_1.ScopeType.global || this.type === ScopeType_1.ScopeType.with; - this.block = block; - this.variableScope = this.isVariableScope() - ? this - : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - upperScopeAsScopeBase.variableScope; - this.upper = upperScope; - /** - * Whether 'use strict' is in effect in this scope. - * @member {boolean} Scope#isStrict - */ - this.isStrict = isStrictScope(this, block, isMethodDefinition); - // this is guaranteed to be correct at runtime - upperScopeAsScopeBase?.childScopes.push(this); - this.#declaredVariables = scopeManager.declaredVariables; - registerScope(scopeManager, this); - } - isVariableScope() { - return VARIABLE_SCOPE_TYPES.has(this.type); - } - shouldStaticallyClose() { - return !this.#dynamic; - } - shouldStaticallyCloseForGlobal(ref, scopeManager) { - // On global scope, let/const/class declarations should be resolved statically. - const name = ref.identifier.name; - const variable = this.set.get(name); - if (!variable) { - return false; - } - // variable exists on the scope - // in module mode, we can statically resolve everything, regardless of its decl type - if (scopeManager.isModule()) { - return true; - } - // in script mode, only certain cases should be statically resolved - // Example: - // a `var` decl is ignored by the runtime if it clashes with a global name - // this means that we should not resolve the reference to the variable - const defs = variable.defs; - return (defs.length > 0 && - defs.every(def => { - if (def.type === definition_1.DefinitionType.Variable && def.parent.kind === 'var') { - return false; - } - return true; - })); - } - #staticCloseRef = (ref) => { - const resolve = () => { - const name = ref.identifier.name; - const variable = this.set.get(name); - if (!variable) { - return false; - } - if (!this.isValidResolution(ref, variable)) { - return false; - } - // make sure we don't match a type reference to a value variable - const isValidTypeReference = ref.isTypeReference && variable.isTypeVariable; - const isValidValueReference = ref.isValueReference && variable.isValueVariable; - if (!isValidTypeReference && !isValidValueReference) { - return false; - } - variable.references.push(ref); - ref.resolved = variable; - return true; - }; - if (!resolve()) { - this.delegateToUpperScope(ref); - } - }; - #dynamicCloseRef = (ref) => { - // notify all names are through to global - let current = this; - do { - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - current.through.push(ref); - current = current.upper; - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - } while (current); - }; - #globalCloseRef = (ref, scopeManager) => { - // let/const/class declarations should be resolved statically. - // others should be resolved dynamically. - if (this.shouldStaticallyCloseForGlobal(ref, scopeManager)) { - this.#staticCloseRef(ref); - } - else { - this.#dynamicCloseRef(ref); - } - }; - close(scopeManager) { - let closeRef; - if (this.shouldStaticallyClose()) { - closeRef = this.#staticCloseRef; - } - else if (this.type !== 'global') { - closeRef = this.#dynamicCloseRef; - } - else { - closeRef = this.#globalCloseRef; - } - // Try Resolving all references in this scope. - (0, assert_1.assert)(this.leftToResolve); - this.leftToResolve.forEach(ref => closeRef(ref, scopeManager)); - this.leftToResolve = null; - return this.upper; - } - /** - * To override by function scopes. - * References in default parameters isn't resolved to variables which are in their function body. - */ - isValidResolution(_ref, _variable) { - return true; - } - delegateToUpperScope(ref) { - this.upper?.leftToResolve?.push(ref); - this.through.push(ref); - } - addDeclaredVariablesOfNode(variable, node) { - if (node == null) { - return; - } - let variables = this.#declaredVariables.get(node); - if (variables == null) { - variables = []; - this.#declaredVariables.set(node, variables); - } - if (!variables.includes(variable)) { - variables.push(variable); - } - } - defineVariable(nameOrVariable, set, variables, node, def) { - const name = typeof nameOrVariable === 'string' ? nameOrVariable : nameOrVariable.name; - let variable = set.get(name); - if (!variable) { - variable = - typeof nameOrVariable === 'string' - ? new variable_1.Variable(name, this) - : nameOrVariable; - set.set(name, variable); - variables.push(variable); - } - if (def) { - variable.defs.push(def); - this.addDeclaredVariablesOfNode(variable, def.node); - this.addDeclaredVariablesOfNode(variable, def.parent); - } - if (node) { - variable.identifiers.push(node); - } - } - defineIdentifier(node, def) { - this.defineVariable(node.name, this.set, this.variables, node, def); - } - defineLiteralIdentifier(node, def) { - this.defineVariable(node.value, this.set, this.variables, null, def); - } - referenceValue(node, assign = Reference_1.ReferenceFlag.Read, writeExpr, maybeImplicitGlobal, init = false) { - const ref = new Reference_1.Reference(node, this, assign, writeExpr, maybeImplicitGlobal, init, Reference_1.ReferenceTypeFlag.Value); - this.references.push(ref); - this.leftToResolve?.push(ref); - } - referenceType(node) { - const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type); - this.references.push(ref); - this.leftToResolve?.push(ref); - } - referenceDualValueType(node) { - const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type | Reference_1.ReferenceTypeFlag.Value); - this.references.push(ref); - this.leftToResolve?.push(ref); - } -} -exports.ScopeBase = ScopeBase; -//# sourceMappingURL=ScopeBase.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map deleted file mode 100644 index ef52cb53..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeBase.js","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,sCAAmC;AAEnC,8CAA+C;AAC/C,8BAA0C;AAE1C,uDAIiC;AAEjC,0CAAuC;AAKvC,2CAAwC;AAGxC;;GAEG;AACH,SAAS,aAAa,CACpB,KAAY,EACZ,KAAoB,EACpB,kBAA2B;IAE3B,IAAI,IAAmE,CAAC;IAExE,qEAAqE;IACrE,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK;QAC9B,KAAK,CAA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,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,sBAAsB,CAAC,IAAyB;QACrD,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,yBAAa,CAAC,IAAI,EAClB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,6BAAiB,CAAC,IAAI,GAAG,6BAAiB,CAAC,KAAK,CACjD,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts deleted file mode 100644 index 8b5dea31..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare enum ScopeType { - block = "block", - catch = "catch", - class = "class", - classFieldInitializer = "class-field-initializer", - classStaticBlock = "class-static-block", - conditionalType = "conditionalType", - for = "for", - function = "function", - functionExpressionName = "function-expression-name", - functionType = "functionType", - global = "global", - mappedType = "mappedType", - module = "module", - switch = "switch", - tsEnum = "tsEnum", - tsModule = "tsModule", - type = "type", - with = "with" -} -export { ScopeType }; -//# sourceMappingURL=ScopeType.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map deleted file mode 100644 index 7201b33a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeType.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACZ,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,sBAAsB,6BAA6B;IACnD,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js deleted file mode 100644 index 93dab0eb..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeType = void 0; -var ScopeType; -(function (ScopeType) { - ScopeType["block"] = "block"; - ScopeType["catch"] = "catch"; - ScopeType["class"] = "class"; - ScopeType["classFieldInitializer"] = "class-field-initializer"; - ScopeType["classStaticBlock"] = "class-static-block"; - ScopeType["conditionalType"] = "conditionalType"; - ScopeType["for"] = "for"; - ScopeType["function"] = "function"; - ScopeType["functionExpressionName"] = "function-expression-name"; - ScopeType["functionType"] = "functionType"; - ScopeType["global"] = "global"; - ScopeType["mappedType"] = "mappedType"; - ScopeType["module"] = "module"; - ScopeType["switch"] = "switch"; - ScopeType["tsEnum"] = "tsEnum"; - ScopeType["tsModule"] = "tsModule"; - ScopeType["type"] = "type"; - ScopeType["with"] = "with"; -})(ScopeType || (exports.ScopeType = ScopeType = {})); -//# sourceMappingURL=ScopeType.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map deleted file mode 100644 index 6481f328..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeType.js","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAnBI,SAAS,yBAAT,SAAS,QAmBb"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts deleted file mode 100644 index fe4c0dc1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class SwitchScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']); -} -export { SwitchScope }; -//# sourceMappingURL=SwitchScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map deleted file mode 100644 index 1e9368bc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwitchScope.d.ts","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,eAAe,EACxB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js deleted file mode 100644 index 9229e4ed..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwitchScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class SwitchScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.switch, upperScope, block, false); - } -} -exports.SwitchScope = SwitchScope; -//# sourceMappingURL=SwitchScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map deleted file mode 100644 index 6f65580e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwitchScope.js","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts deleted file mode 100644 index 38c09ea9..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TSEnumScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']); -} -export { TSEnumScope }; -//# sourceMappingURL=TSEnumScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map deleted file mode 100644 index 3f589e4a..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js deleted file mode 100644 index 1f51bfb1..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TSEnumScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.tsEnum, upperScope, block, false); - } -} -exports.TSEnumScope = TSEnumScope; -//# sourceMappingURL=TSEnumScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map deleted file mode 100644 index 816eb2f6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumScope.js","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts deleted file mode 100644 index 386180a0..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TSModuleScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']); -} -export { TSModuleScope }; -//# sourceMappingURL=TSModuleScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map deleted file mode 100644 index d4694253..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAClB,QAAQ,CAAC,mBAAmB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;CAIhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js deleted file mode 100644 index 86279082..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSModuleScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TSModuleScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.tsModule, upperScope, block, false); - } -} -exports.TSModuleScope = TSModuleScope; -//# sourceMappingURL=TSModuleScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map deleted file mode 100644 index 210e9862..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleScope.js","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAI3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B;QAE7B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts deleted file mode 100644 index bde4d536..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']); -} -export { TypeScope }; -//# sourceMappingURL=TypeScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map deleted file mode 100644 index 721d8588..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,EACjE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CAI5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js deleted file mode 100644 index ebbf5fe6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.type, upperScope, block, false); - } -} -exports.TypeScope = TypeScope; -//# sourceMappingURL=TypeScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map deleted file mode 100644 index a328ea3d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeScope.js","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts deleted file mode 100644 index 1eaa4854..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class WithScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']); - close(scopeManager: ScopeManager): Scope | null; -} -export { WithScope }; -//# sourceMappingURL=WithScope.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map deleted file mode 100644 index e2943c8d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithScope.d.ts","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,aAAa,EACtB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAI3B,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAShD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js deleted file mode 100644 index 734034d6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WithScope = void 0; -const assert_1 = require("../assert"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class WithScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false); - } - close(scopeManager) { - if (this.shouldStaticallyClose()) { - return super.close(scopeManager); - } - (0, assert_1.assert)(this.leftToResolve); - this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref)); - this.leftToResolve = null; - return this.upper; - } -} -exports.WithScope = WithScope; -//# sourceMappingURL=WithScope.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map deleted file mode 100644 index 660767cc..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithScope.js","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":";;;AAEA,sCAAmC;AAGnC,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,CAAC,YAA0B;QAC9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;QACD,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts deleted file mode 100644 index 7bf60717..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export * from './BlockScope'; -export * from './CatchScope'; -export * from './ClassFieldInitializerScope'; -export * from './ClassScope'; -export * from './ConditionalTypeScope'; -export * from './ForScope'; -export * from './FunctionExpressionNameScope'; -export * from './FunctionScope'; -export * from './FunctionTypeScope'; -export * from './GlobalScope'; -export * from './MappedTypeScope'; -export * from './ModuleScope'; -export * from './Scope'; -export * from './ScopeType'; -export * from './SwitchScope'; -export * from './TSEnumScope'; -export * from './TSModuleScope'; -export * from './TypeScope'; -export * from './WithScope'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map deleted file mode 100644 index 43f10ba3..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js deleted file mode 100644 index 22187136..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./BlockScope"), exports); -__exportStar(require("./CatchScope"), exports); -__exportStar(require("./ClassFieldInitializerScope"), exports); -__exportStar(require("./ClassScope"), exports); -__exportStar(require("./ConditionalTypeScope"), exports); -__exportStar(require("./ForScope"), exports); -__exportStar(require("./FunctionExpressionNameScope"), exports); -__exportStar(require("./FunctionScope"), exports); -__exportStar(require("./FunctionTypeScope"), exports); -__exportStar(require("./GlobalScope"), exports); -__exportStar(require("./MappedTypeScope"), exports); -__exportStar(require("./ModuleScope"), exports); -__exportStar(require("./Scope"), exports); -__exportStar(require("./ScopeType"), exports); -__exportStar(require("./SwitchScope"), exports); -__exportStar(require("./TSEnumScope"), exports); -__exportStar(require("./TSModuleScope"), exports); -__exportStar(require("./TypeScope"), exports); -__exportStar(require("./WithScope"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map deleted file mode 100644 index 2ceff644..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts deleted file mode 100644 index fd5e08be..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { VariableBase } from './VariableBase'; -/** - * ESLint defines global variables using the eslint-scope Variable class - * This is declared her for consumers to use - */ -declare class ESLintScopeVariable extends VariableBase { - /** - * Written to by ESLint. - * If this key exists, this variable is a global variable added by ESLint. - * If this is `true`, this variable can be assigned arbitrary values. - * If this is `false`, this variable is readonly. - */ - writeable?: boolean; - /** - * Written to by ESLint. - * This property is undefined if there are no globals directive comments. - * The array of globals directive comments which defined this global variable in the source code file. - */ - eslintExplicitGlobal?: boolean; - /** - * Written to by ESLint. - * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. - */ - eslintImplicitGlobalSetting?: 'readonly' | 'writable'; - /** - * Written to by ESLint. - * If this key exists, it is a global variable added by ESLint. - * If `true`, this global variable was defined by a globals directive comment in the source code file. - */ - eslintExplicitGlobalComments?: TSESTree.Comment[]; -} -export { ESLintScopeVariable }; -//# sourceMappingURL=ESLintScopeVariable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map deleted file mode 100644 index b544931c..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLintScopeVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACI,2BAA2B,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE7D;;;;OAIG;IACI,4BAA4B,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC1D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js deleted file mode 100644 index d36def70..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ESLintScopeVariable = void 0; -const VariableBase_1 = require("./VariableBase"); -/** - * ESLint defines global variables using the eslint-scope Variable class - * This is declared her for consumers to use - */ -class ESLintScopeVariable extends VariableBase_1.VariableBase { - /** - * Written to by ESLint. - * If this key exists, this variable is a global variable added by ESLint. - * If this is `true`, this variable can be assigned arbitrary values. - * If this is `false`, this variable is readonly. - */ - writeable; // note that this isn't a typo - ESlint uses this spelling here - /** - * Written to by ESLint. - * This property is undefined if there are no globals directive comments. - * The array of globals directive comments which defined this global variable in the source code file. - */ - eslintExplicitGlobal; - /** - * Written to by ESLint. - * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. - */ - eslintImplicitGlobalSetting; - /** - * Written to by ESLint. - * If this key exists, it is a global variable added by ESLint. - * If `true`, this global variable was defined by a globals directive comment in the source code file. - */ - eslintExplicitGlobalComments; -} -exports.ESLintScopeVariable = ESLintScopeVariable; -//# sourceMappingURL=ESLintScopeVariable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map deleted file mode 100644 index 973b7314..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLintScopeVariable.js","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C;;;GAGG;AACH,MAAM,mBAAoB,SAAQ,2BAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAW,CAAC,+DAA+D;IAE3F;;;;OAIG;IACI,oBAAoB,CAAW;IAEtC;;;OAGG;IACI,2BAA2B,CAA2B;IAE7D;;;;OAIG;IACI,4BAA4B,CAAsB;CAC1D;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts deleted file mode 100644 index ad6ba004..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Scope } from '../scope'; -import { ESLintScopeVariable } from './ESLintScopeVariable'; -import type { Variable } from './Variable'; -interface ImplicitLibVariableOptions { - readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting']; - readonly isTypeVariable?: boolean; - readonly isValueVariable?: boolean; - readonly writeable?: boolean; -} -/** - * An variable implicitly defined by the TS Lib - */ -declare class ImplicitLibVariable extends ESLintScopeVariable implements Variable { - /** - * `true` if the variable is valid in a type context, false otherwise - */ - readonly isTypeVariable: boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - */ - readonly isValueVariable: boolean; - constructor(scope: Scope, name: string, { isTypeVariable, isValueVariable, writeable, eslintImplicitGlobalSetting, }: ImplicitLibVariableOptions); -} -export { ImplicitLibVariable, ImplicitLibVariableOptions }; -//# sourceMappingURL=ImplicitLibVariable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map deleted file mode 100644 index 1fbb27da..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitLibVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,0BAA0B;IAClC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,cAAM,mBAAoB,SAAQ,mBAAoB,YAAW,QAAQ;IACvE;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;gBAGvC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,2BAA2B,GAC5B,EAAE,0BAA0B;CAShC;AAED,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js deleted file mode 100644 index 8b6f7164..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImplicitLibVariable = void 0; -const ESLintScopeVariable_1 = require("./ESLintScopeVariable"); -/** - * An variable implicitly defined by the TS Lib - */ -class ImplicitLibVariable extends ESLintScopeVariable_1.ESLintScopeVariable { - /** - * `true` if the variable is valid in a type context, false otherwise - */ - isTypeVariable; - /** - * `true` if the variable is valid in a value context, false otherwise - */ - isValueVariable; - constructor(scope, name, { isTypeVariable, isValueVariable, writeable, eslintImplicitGlobalSetting, }) { - super(name, scope); - this.isTypeVariable = isTypeVariable ?? false; - this.isValueVariable = isValueVariable ?? false; - this.writeable = writeable ?? false; - this.eslintImplicitGlobalSetting = - eslintImplicitGlobalSetting ?? 'readonly'; - } -} -exports.ImplicitLibVariable = ImplicitLibVariable; -//# sourceMappingURL=ImplicitLibVariable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map deleted file mode 100644 index 58f34055..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitLibVariable.js","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":";;;AACA,+DAA4D;AAU5D;;GAEG;AACH,MAAM,mBAAoB,SAAQ,yCAAmB;IACnD;;OAEG;IACa,cAAc,CAAU;IAExC;;OAEG;IACa,eAAe,CAAU;IAEzC,YACE,KAAY,EACZ,IAAY,EACZ,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,2BAA2B,GACA;QAE7B,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,cAAc,IAAI,KAAK,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,KAAK,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,KAAK,CAAC;QACpC,IAAI,CAAC,2BAA2B;YAC9B,2BAA2B,IAAI,UAAU,CAAC;IAC9C,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts deleted file mode 100644 index 83754b17..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { VariableBase } from './VariableBase'; -/** - * A Variable represents a locally scoped identifier. These include arguments to functions. - */ -declare class Variable extends VariableBase { - /** - * `true` if the variable is valid in a type context, false otherwise - * @public - */ - get isTypeVariable(): boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - * @public - */ - get isValueVariable(): boolean; -} -export { Variable }; -//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map deleted file mode 100644 index 9b56c4f4..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,cAAM,QAAS,SAAQ,YAAY;IACjC;;;OAGG;IACH,IAAW,cAAc,IAAI,OAAO,CAOnC;IAED;;;OAGG;IACH,IAAW,eAAe,IAAI,OAAO,CAOpC;CACF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js deleted file mode 100644 index 8b72550e..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Variable = void 0; -const VariableBase_1 = require("./VariableBase"); -/** - * A Variable represents a locally scoped identifier. These include arguments to functions. - */ -class Variable extends VariableBase_1.VariableBase { - /** - * `true` if the variable is valid in a type context, false otherwise - * @public - */ - get isTypeVariable() { - if (this.defs.length === 0) { - // we don't statically know whether this is a type or a value - return true; - } - return this.defs.some(def => def.isTypeDefinition); - } - /** - * `true` if the variable is valid in a value context, false otherwise - * @public - */ - get isValueVariable() { - if (this.defs.length === 0) { - // we don't statically know whether this is a type or a value - return true; - } - return this.defs.some(def => def.isVariableDefinition); - } -} -exports.Variable = Variable; -//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map deleted file mode 100644 index ba767144..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C;;GAEG;AACH,MAAM,QAAS,SAAQ,2BAAY;IACjC;;;OAGG;IACH,IAAW,cAAc;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts deleted file mode 100644 index c74c7a38..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Definition } from '../definition'; -import type { Reference } from '../referencer/Reference'; -import type { Scope } from '../scope'; -declare class VariableBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * The array of the definitions of this variable. - * @public - */ - readonly defs: Definition[]; - /** - * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. - * @public - */ - eslintUsed: boolean; - /** - * The array of `Identifier` nodes which define this variable. - * If this variable is redeclared, this array includes two or more nodes. - * @public - */ - readonly identifiers: TSESTree.Identifier[]; - /** - * The variable name, as given in the source code. - * @public - */ - readonly name: string; - /** - * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. - * For defining occurrences only see {@link Variable#defs}. - * @public - */ - readonly references: Reference[]; - /** - * Reference to the enclosing Scope. - */ - readonly scope: Scope; - constructor(name: string, scope: Scope); -} -export { VariableBase }; -//# sourceMappingURL=VariableBase.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map deleted file mode 100644 index b830e835..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableBase.d.ts","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,cAAM,YAAY;IAChB;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,UAAU,EAAE,CAAM;IACxC;;;OAGG;IACI,UAAU,UAAS;IAC1B;;;;OAIG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAM;IACxD;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7C;;OAEG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAIvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js deleted file mode 100644 index 911cb766..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VariableBase = void 0; -const ID_1 = require("../ID"); -const generator = (0, ID_1.createIdGenerator)(); -class VariableBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - $id = generator(); - /** - * The array of the definitions of this variable. - * @public - */ - defs = []; - /** - * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. - * @public - */ - eslintUsed = false; - /** - * The array of `Identifier` nodes which define this variable. - * If this variable is redeclared, this array includes two or more nodes. - * @public - */ - identifiers = []; - /** - * The variable name, as given in the source code. - * @public - */ - name; - /** - * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. - * For defining occurrences only see {@link Variable#defs}. - * @public - */ - references = []; - /** - * Reference to the enclosing Scope. - */ - scope; - constructor(name, scope) { - this.name = name; - this.scope = scope; - } -} -exports.VariableBase = VariableBase; -//# sourceMappingURL=VariableBase.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map deleted file mode 100644 index a2527727..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableBase.js","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":";;;AAGA,8BAA0C;AAI1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAM,YAAY;IAChB;;OAEG;IACa,GAAG,GAAW,SAAS,EAAE,CAAC;IAE1C;;;OAGG;IACa,IAAI,GAAiB,EAAE,CAAC;IACxC;;;OAGG;IACI,UAAU,GAAG,KAAK,CAAC;IAC1B;;;;OAIG;IACa,WAAW,GAA0B,EAAE,CAAC;IACxD;;;OAGG;IACa,IAAI,CAAS;IAC7B;;;;OAIG;IACa,UAAU,GAAgB,EAAE,CAAC;IAC7C;;OAEG;IACa,KAAK,CAAQ;IAE7B,YAAY,IAAY,EAAE,KAAY;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts deleted file mode 100644 index 4e5529bd..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ESLintScopeVariable } from './ESLintScopeVariable'; -import type { Variable } from './Variable'; -export { ESLintScopeVariable } from './ESLintScopeVariable'; -export { ImplicitLibVariable, ImplicitLibVariableOptions, } from './ImplicitLibVariable'; -export { Variable } from './Variable'; -export type ScopeVariable = Variable | ESLintScopeVariable; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map deleted file mode 100644 index ab02d05d..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,mBAAmB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js deleted file mode 100644 index 1e36582b..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Variable = exports.ImplicitLibVariable = exports.ESLintScopeVariable = void 0; -var ESLintScopeVariable_1 = require("./ESLintScopeVariable"); -Object.defineProperty(exports, "ESLintScopeVariable", { enumerable: true, get: function () { return ESLintScopeVariable_1.ESLintScopeVariable; } }); -var ImplicitLibVariable_1 = require("./ImplicitLibVariable"); -Object.defineProperty(exports, "ImplicitLibVariable", { enumerable: true, get: function () { return ImplicitLibVariable_1.ImplicitLibVariable; } }); -var Variable_1 = require("./Variable"); -Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map b/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map deleted file mode 100644 index 51902f54..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":";;;AAGA,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,6DAG+B;AAF7B,0HAAA,mBAAmB,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/scope-manager/package.json b/graphql/node_modules/@typescript-eslint/scope-manager/package.json deleted file mode 100644 index ffb256d6..00000000 --- a/graphql/node_modules/@typescript-eslint/scope-manager/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "@typescript-eslint/scope-manager", - "version": "8.1.0", - "description": "TypeScript scope analyser for ESLint", - "files": [ - "dist", - "package.json", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "types": "./dist/index.d.ts", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/scope-manager" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io/packages/scope-manager", - "license": "MIT", - "keywords": [ - "eslint", - "typescript", - "estree" - ], - "scripts": { - "build": "npx nx build", - "clean": "npx nx clean", - "clean-fixtures": "npx nx clean-fixtures", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "generate-lib": "npx nx generate-lib repo", - "lint": "npx nx lint", - "test": "npx nx test --code-coverage", - "typecheck": "npx nx typecheck" - }, - "dependencies": { - "@typescript-eslint/types": "8.1.0", - "@typescript-eslint/visitor-keys": "8.1.0" - }, - "devDependencies": { - "@jest/types": "29.6.3", - "@types/glob": "*", - "@typescript-eslint/typescript-estree": "8.1.0", - "glob": "*", - "jest-specific-snapshot": "*", - "make-dir": "*", - "pretty-format": "*", - "typescript": "*" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "typesVersions": { - "<4.7": { - "*": [ - "_ts4.3/*" - ] - } - } -} diff --git a/graphql/node_modules/@typescript-eslint/type-utils/LICENSE b/graphql/node_modules/@typescript-eslint/type-utils/LICENSE deleted file mode 100644 index dabd464a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/type-utils/README.md b/graphql/node_modules/@typescript-eslint/type-utils/README.md deleted file mode 100644 index c5d32797..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `@typescript-eslint/type-utils` - -> Type utilities for working with TypeScript within ESLint rules. - -[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) -[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) - -The utilities in this package are separated from `@typescript-eslint/utils` so that that package does not require a dependency on `typescript`. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts deleted file mode 100644 index 893858ad..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema'; -import type * as ts from 'typescript'; -export interface FileSpecifier { - from: 'file'; - name: string[] | string; - path?: string; -} -export interface LibSpecifier { - from: 'lib'; - name: string[] | string; -} -export interface PackageSpecifier { - from: 'package'; - name: string[] | string; - package: string; -} -export type TypeOrValueSpecifier = FileSpecifier | LibSpecifier | PackageSpecifier | string; -export declare const typeOrValueSpecifierSchema: JSONSchema4; -export declare function typeMatchesSpecifier(type: ts.Type, specifier: TypeOrValueSpecifier, program: ts.Program): boolean; -//# sourceMappingURL=TypeOrValueSpecifier.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map deleted file mode 100644 index e70152c6..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeOrValueSpecifier.d.ts","sourceRoot":"","sources":["../src/TypeOrValueSpecifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAOtC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,MAAM,CAAC;AAEX,eAAO,MAAM,0BAA0B,EAAE,WA0FxC,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CA4BT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js deleted file mode 100644 index 5d4d5e46..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeOrValueSpecifierSchema = void 0; -exports.typeMatchesSpecifier = typeMatchesSpecifier; -const tsutils = __importStar(require("ts-api-utils")); -const specifierNameMatches_1 = require("./typeOrValueSpecifiers/specifierNameMatches"); -const typeDeclaredInFile_1 = require("./typeOrValueSpecifiers/typeDeclaredInFile"); -const typeDeclaredInLib_1 = require("./typeOrValueSpecifiers/typeDeclaredInLib"); -const typeDeclaredInPackageDeclarationFile_1 = require("./typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile"); -exports.typeOrValueSpecifierSchema = { - oneOf: [ - { - type: 'string', - }, - { - type: 'object', - additionalProperties: false, - properties: { - from: { - type: 'string', - enum: ['file'], - }, - name: { - oneOf: [ - { - type: 'string', - }, - { - type: 'array', - minItems: 1, - uniqueItems: true, - items: { - type: 'string', - }, - }, - ], - }, - path: { - type: 'string', - }, - }, - required: ['from', 'name'], - }, - { - type: 'object', - additionalProperties: false, - properties: { - from: { - type: 'string', - enum: ['lib'], - }, - name: { - oneOf: [ - { - type: 'string', - }, - { - type: 'array', - minItems: 1, - uniqueItems: true, - items: { - type: 'string', - }, - }, - ], - }, - }, - required: ['from', 'name'], - }, - { - type: 'object', - additionalProperties: false, - properties: { - from: { - type: 'string', - enum: ['package'], - }, - name: { - oneOf: [ - { - type: 'string', - }, - { - type: 'array', - minItems: 1, - uniqueItems: true, - items: { - type: 'string', - }, - }, - ], - }, - package: { - type: 'string', - }, - }, - required: ['from', 'name', 'package'], - }, - ], -}; -function typeMatchesSpecifier(type, specifier, program) { - if (tsutils.isIntrinsicErrorType(type)) { - return false; - } - if (typeof specifier === 'string') { - return (0, specifierNameMatches_1.specifierNameMatches)(type, specifier); - } - if (!(0, specifierNameMatches_1.specifierNameMatches)(type, specifier.name)) { - return false; - } - const symbol = type.getSymbol() ?? type.aliasSymbol; - const declarations = symbol?.getDeclarations() ?? []; - const declarationFiles = declarations.map(declaration => declaration.getSourceFile()); - switch (specifier.from) { - case 'file': - return (0, typeDeclaredInFile_1.typeDeclaredInFile)(specifier.path, declarationFiles, program); - case 'lib': - return (0, typeDeclaredInLib_1.typeDeclaredInLib)(declarationFiles, program); - case 'package': - return (0, typeDeclaredInPackageDeclarationFile_1.typeDeclaredInPackageDeclarationFile)(specifier.package, declarations, declarationFiles, program); - } -} -//# sourceMappingURL=TypeOrValueSpecifier.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map deleted file mode 100644 index e018cd06..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeOrValueSpecifier.js","sourceRoot":"","sources":["../src/TypeOrValueSpecifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA,oDAgCC;AA3JD,sDAAwC;AAGxC,uFAAoF;AACpF,mFAAgF;AAChF,iFAA8E;AAC9E,uHAAoH;AAyBvG,QAAA,0BAA0B,GAAgB;IACrD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,QAAQ;SACf;QACD;YACE,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,MAAM,CAAC;iBACf;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;yBACf;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE,CAAC;4BACX,WAAW,EAAE,IAAI;4BACjB,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,CAAC;iBACd;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;yBACf;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE,CAAC;4BACX,WAAW,EAAE,IAAI;4BACjB,KAAK,EAAE;g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AAC,EAAE,CACtD,WAAW,CAAC,aAAa,EAAE,CAC5B,CAAC;IACF,QAAQ,SAAS,CAAC,IAAI,EAAE,CAAC;QACvB,KAAK,MAAM;YACT,OAAO,IAAA,uCAAkB,EAAC,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACvE,KAAK,KAAK;YACR,OAAO,IAAA,qCAAiB,EAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACtD,KAAK,SAAS;YACZ,OAAO,IAAA,2EAAoC,EACzC,SAAS,CAAC,OAAO,EACjB,YAAY,EACZ,gBAAgB,EAChB,OAAO,CACR,CAAC;IACN,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts deleted file mode 100644 index b68bef31..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import * as ts from 'typescript'; -/** - * @example - * ```ts - * class DerivedClass extends Promise {} - * DerivedClass.reject - * // ^ PromiseLike - * ``` - */ -export declare function isPromiseLike(program: ts.Program, type: ts.Type): boolean; -/** - * @example - * ```ts - * const value = Promise - * value.reject - * // ^ PromiseConstructorLike - * ``` - */ -export declare function isPromiseConstructorLike(program: ts.Program, type: ts.Type): boolean; -/** - * @example - * ```ts - * class Foo extends Error {} - * new Foo() - * // ^ ErrorLike - * ``` - */ -export declare function isErrorLike(program: ts.Program, type: ts.Type): boolean; -/** - * @example - * ```ts - * type T = Readonly - * // ^ ReadonlyErrorLike - * ``` - */ -export declare function isReadonlyErrorLike(program: ts.Program, type: ts.Type): boolean; -/** - * @example - * ```ts - * type T = Readonly<{ foo: 'bar' }> - * // ^ ReadonlyTypeLike - * ``` - */ -export declare function isReadonlyTypeLike(program: ts.Program, type: ts.Type, predicate?: (subType: ts.Type & { - aliasSymbol: ts.Symbol; - aliasTypeArguments: readonly ts.Type[]; -}) => boolean): boolean; -export declare function isBuiltinTypeAliasLike(program: ts.Program, type: ts.Type, predicate: (subType: ts.Type & { - aliasSymbol: ts.Symbol; - aliasTypeArguments: readonly ts.Type[]; -}) => boolean): boolean; -export declare function isBuiltinSymbolLike(program: ts.Program, type: ts.Type, symbolName: string | string[]): boolean; -export declare function isBuiltinSymbolLikeRecurser(program: ts.Program, type: ts.Type, predicate: (subType: ts.Type) => boolean | null): boolean; -//# sourceMappingURL=builtinSymbolLikes.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map deleted file mode 100644 index 04f36984..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"builtinSymbolLikes.d.ts","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEzE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAET;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAEvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAQT;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG;IACjB,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC;IACvB,kBAAkB,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,KACE,OAAO,GACX,OAAO,CAMT;AACD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CACT,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG;IACjB,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC;IACvB,kBAAkB,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC;CACxC,KACE,OAAO,GACX,OAAO,CAsBT;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,GAC5B,OAAO,CAoBT;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,GAAG,IAAI,GAC9C,OAAO,CA8BT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js deleted file mode 100644 index 7cfe2e9a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isPromiseLike = isPromiseLike; -exports.isPromiseConstructorLike = isPromiseConstructorLike; -exports.isErrorLike = isErrorLike; -exports.isReadonlyErrorLike = isReadonlyErrorLike; -exports.isReadonlyTypeLike = isReadonlyTypeLike; -exports.isBuiltinTypeAliasLike = isBuiltinTypeAliasLike; -exports.isBuiltinSymbolLike = isBuiltinSymbolLike; -exports.isBuiltinSymbolLikeRecurser = isBuiltinSymbolLikeRecurser; -const ts = __importStar(require("typescript")); -const isSymbolFromDefaultLibrary_1 = require("./isSymbolFromDefaultLibrary"); -/** - * @example - * ```ts - * class DerivedClass extends Promise {} - * DerivedClass.reject - * // ^ PromiseLike - * ``` - */ -function isPromiseLike(program, type) { - return isBuiltinSymbolLike(program, type, 'Promise'); -} -/** - * @example - * ```ts - * const value = Promise - * value.reject - * // ^ PromiseConstructorLike - * ``` - */ -function isPromiseConstructorLike(program, type) { - return isBuiltinSymbolLike(program, type, 'PromiseConstructor'); -} -/** - * @example - * ```ts - * class Foo extends Error {} - * new Foo() - * // ^ ErrorLike - * ``` - */ -function isErrorLike(program, type) { - return isBuiltinSymbolLike(program, type, 'Error'); -} -/** - * @example - * ```ts - * type T = Readonly - * // ^ ReadonlyErrorLike - * ``` - */ -function isReadonlyErrorLike(program, type) { - return isReadonlyTypeLike(program, type, subtype => { - const [typeArgument] = subtype.aliasTypeArguments; - return (isErrorLike(program, typeArgument) || - isReadonlyErrorLike(program, typeArgument)); - }); -} -/** - * @example - * ```ts - * type T = Readonly<{ foo: 'bar' }> - * // ^ ReadonlyTypeLike - * ``` - */ -function isReadonlyTypeLike(program, type, predicate) { - return isBuiltinTypeAliasLike(program, type, subtype => { - return (subtype.aliasSymbol.getName() === 'Readonly' && !!predicate?.(subtype)); - }); -} -function isBuiltinTypeAliasLike(program, type, predicate) { - return isBuiltinSymbolLikeRecurser(program, type, subtype => { - const { aliasSymbol, aliasTypeArguments } = subtype; - if (!aliasSymbol || !aliasTypeArguments) { - return false; - } - if ((0, isSymbolFromDefaultLibrary_1.isSymbolFromDefaultLibrary)(program, aliasSymbol) && - predicate(subtype)) { - return true; - } - return null; - }); -} -function isBuiltinSymbolLike(program, type, symbolName) { - return isBuiltinSymbolLikeRecurser(program, type, subType => { - const symbol = subType.getSymbol(); - if (!symbol) { - return false; - } - const actualSymbolName = symbol.getName(); - if ((Array.isArray(symbolName) - ? symbolName.some(name => actualSymbolName === name) - : actualSymbolName === symbolName) && - (0, isSymbolFromDefaultLibrary_1.isSymbolFromDefaultLibrary)(program, symbol)) { - return true; - } - return null; - }); -} -function isBuiltinSymbolLikeRecurser(program, type, predicate) { - if (type.isIntersection()) { - return type.types.some(t => isBuiltinSymbolLikeRecurser(program, t, predicate)); - } - if (type.isUnion()) { - return type.types.every(t => isBuiltinSymbolLikeRecurser(program, t, predicate)); - } - const predicateResult = predicate(type); - if (typeof predicateResult === 'boolean') { - return predicateResult; - } - const symbol = type.getSymbol(); - if (symbol && - symbol.flags & (ts.SymbolFlags.Class | ts.SymbolFlags.Interface)) { - const checker = program.getTypeChecker(); - for (const baseType of checker.getBaseTypes(type)) { - if (isBuiltinSymbolLikeRecurser(program, baseType, predicate)) { - return true; - } - } - } - return false; -} -//# sourceMappingURL=builtinSymbolLikes.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map deleted file mode 100644 index 3f76e60a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"builtinSymbolLikes.js","sourceRoot":"","sources":["../src/builtinSymbolLikes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,sCAEC;AAUD,4DAKC;AAUD,kCAEC;AASD,kDAWC;AASD,gDAeC;AACD,wDA+BC;AAED,kDAwBC;AAED,kEAkCC;AAnLD,+CAAiC;AAEjC,6EAA0E;AAE1E;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,OAAmB,EAAE,IAAa;IAC9D,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,wBAAwB,CACtC,OAAmB,EACnB,IAAa;IAEb,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,OAAmB,EAAE,IAAa;IAC5D,OAAO,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,OAAmB,EACnB,IAAa;IAEb,OAAO,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE;QACjD,MAAM,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QAClD,OAAO,CACL,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC;YAClC,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,CAC3C,CAAC;IACJ,CAAC,CA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C;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts deleted file mode 100644 index d40e2047..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as ts from 'typescript'; -/** - * @param type Type being checked by name. - * @param allowAny Whether to consider `any` and `unknown` to match. - * @param allowedNames Symbol names checking on the type. - * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. - * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). - */ -export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set, matchAnyInstead?: boolean): boolean; -//# sourceMappingURL=containsAllTypesByName.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map deleted file mode 100644 index d043e638..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"containsAllTypesByName.d.ts","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,eAAe,UAAQ,GACtB,OAAO,CA+BT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js deleted file mode 100644 index fef4efd7..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.containsAllTypesByName = containsAllTypesByName; -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const typeFlagUtils_1 = require("./typeFlagUtils"); -/** - * @param type Type being checked by name. - * @param allowAny Whether to consider `any` and `unknown` to match. - * @param allowedNames Symbol names checking on the type. - * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. - * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). - */ -function containsAllTypesByName(type, allowAny, allowedNames, matchAnyInstead = false) { - if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return !allowAny; - } - if (tsutils.isTypeReference(type)) { - type = type.target; - } - const symbol = type.getSymbol(); - if (symbol && allowedNames.has(symbol.name)) { - return true; - } - const predicate = (t) => containsAllTypesByName(t, allowAny, allowedNames, matchAnyInstead); - if (tsutils.isUnionOrIntersectionType(type)) { - return matchAnyInstead - ? type.types.some(predicate) - : type.types.every(predicate); - } - const bases = type.getBaseTypes(); - return (bases !== undefined && - (matchAnyInstead - ? bases.some(predicate) - : bases.length > 0 && bases.every(predicate))); -} -//# sourceMappingURL=containsAllTypesByName.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map deleted file mode 100644 index ec246df9..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wDAoCC;AAhDD,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,IAAa,EACb,QAAiB,EACjB,YAAyB,EACzB,eAAe,GAAG,KAAK;IAEvB,IAAI,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACjE,OAAO,CAAC,QAAQ,CAAC;IACnB,CAAC;IAED,IAAI,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IAAI,MAAM,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,SAAS,GAAG,CAAC,CAAU,EAAW,EAAE,CACxC,sBAAsB,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;IAErE,IAAI,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,OAAO,eAAe;YACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YAC5B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAElC,OAAO,CACL,KAAK,KAAK,SAAS;QACnB,CAAC,eAAe;YACd,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts deleted file mode 100644 index 88c2d48d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree'; -import type * as ts from 'typescript'; -/** - * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. - */ -export declare function getConstrainedTypeAtLocation(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Type; -//# sourceMappingURL=getConstrainedTypeAtLocation.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map deleted file mode 100644 index 57b85997..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getConstrainedTypeAtLocation.d.ts","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,QAAQ,EACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,iCAAiC,EAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,EAAE,CAAC,IAAI,CAOT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js deleted file mode 100644 index 2bb33280..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getConstrainedTypeAtLocation = getConstrainedTypeAtLocation; -/** - * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. - */ -function getConstrainedTypeAtLocation(services, node) { - const nodeType = services.getTypeAtLocation(node); - const constrained = services.program - .getTypeChecker() - .getBaseConstraintOfType(nodeType); - return constrained ?? nodeType; -} -//# sourceMappingURL=getConstrainedTypeAtLocation.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map deleted file mode 100644 index 3080507b..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getConstrainedTypeAtLocation.js","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":";;AASA,oEAUC;AAbD;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,QAA2C,EAC3C,IAAmB;IAEnB,MAAM,QAAQ,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO;SACjC,cAAc,EAAE;SAChB,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAErC,OAAO,WAAW,IAAI,QAAQ,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts deleted file mode 100644 index cfd2c83a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Returns the contextual type of a given node. - * Contextual type is the type of the target the node is going into. - * i.e. the type of a called function's parameter, or the defined type of a variable declaration - */ -export declare function getContextualType(checker: ts.TypeChecker, node: ts.Expression): ts.Type | undefined; -//# sourceMappingURL=getContextualType.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map deleted file mode 100644 index 4f66d460..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getContextualType.d.ts","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,UAAU,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAwCrB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js deleted file mode 100644 index f22c6979..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getContextualType = getContextualType; -const ts = __importStar(require("typescript")); -/** - * Returns the contextual type of a given node. - * Contextual type is the type of the target the node is going into. - * i.e. the type of a called function's parameter, or the defined type of a variable declaration - */ -function getContextualType(checker, node) { - const parent = node.parent; - if (ts.isCallExpression(parent) || ts.isNewExpression(parent)) { - if (node === parent.expression) { - // is the callee, so has no contextual type - return; - } - } - else if (ts.isVariableDeclaration(parent) || - ts.isPropertyDeclaration(parent) || - ts.isParameter(parent)) { - return parent.type ? checker.getTypeFromTypeNode(parent.type) : undefined; - } - else if (ts.isJsxExpression(parent)) { - return checker.getContextualType(parent); - } - else if (ts.isIdentifier(node) && - (ts.isPropertyAssignment(parent) || - ts.isShorthandPropertyAssignment(parent))) { - return checker.getContextualType(node); - } - else if (ts.isBinaryExpression(parent) && - parent.operatorToken.kind === ts.SyntaxKind.EqualsToken && - parent.right === node) { - // is RHS of assignment - return checker.getTypeAtLocation(parent.left); - } - else if (![ts.SyntaxKind.TemplateSpan, ts.SyntaxKind.JsxExpression].includes(parent.kind)) { - // parent is not something we know we can get the contextual type of - return; - } - // TODO - support return statement checking - return checker.getContextualType(node); -} -//# sourceMappingURL=getContextualType.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map deleted file mode 100644 index 8c5510c6..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getContextualType.js","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,8CA2CC;AAlDD,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,OAAuB,EACvB,IAAmB;IAEnB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAE3B,IAAI,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9D,IAAI,IAAI,KAAK,MAAM,CAAC,UAAU,EAAE,CAAC;YAC/B,2CAA2C;YAC3C,OAAO;QACT,CAAC;IACH,CAAC;SAAM,IACL,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC;QAChC,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC;QAChC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,EACtB,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,CAAC;SAAM,IAAI,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;SAAM,IACL,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;QACrB,CAAC,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC;YAC9B,EAAE,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC,EAC3C,CAAC;QACD,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;SAAM,IACL,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC;QAC7B,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,WAAW;QACvD,MAAM,CAAC,KAAK,KAAK,IAAI,EACrB,CAAC;QACD,uBAAuB;QACvB,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;SAAM,IACL,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD,CAAC;QACD,oEAAoE;QACpE,OAAO;IACT,CAAC;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts deleted file mode 100644 index 072056b3..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree'; -import type * as ts from 'typescript'; -/** - * Gets the declaration for the given variable - */ -export declare function getDeclaration(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Declaration | null; -//# sourceMappingURL=getDeclaration.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map deleted file mode 100644 index 369214d8..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getDeclaration.d.ts","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,QAAQ,EACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,iCAAiC,EAC3C,IAAI,EAAE,QAAQ,CAAC,IAAI,GAClB,EAAE,CAAC,WAAW,GAAG,IAAI,CAOvB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js deleted file mode 100644 index 43d60b08..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDeclaration = getDeclaration; -/** - * Gets the declaration for the given variable - */ -function getDeclaration(services, node) { - const symbol = services.getSymbolAtLocation(node); - if (!symbol) { - return null; - } - const declarations = symbol.getDeclarations(); - return declarations?.[0] ?? null; -} -//# sourceMappingURL=getDeclaration.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map deleted file mode 100644 index 6e1599f3..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getDeclaration.js","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":";;AASA,wCAUC;AAbD;;GAEG;AACH,SAAgB,cAAc,CAC5B,QAA2C,EAC3C,IAAmB;IAEnB,MAAM,MAAM,GAAG,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,CAAC;IAC9C,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts deleted file mode 100644 index 2eb4a7cf..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets the source file for a given node - */ -export declare function getSourceFileOfNode(node: ts.Node): ts.SourceFile; -//# sourceMappingURL=getSourceFileOfNode.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map deleted file mode 100644 index 4b992bd8..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getSourceFileOfNode.d.ts","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,UAAU,CAKhE"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js deleted file mode 100644 index bbb0fc6f..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSourceFileOfNode = getSourceFileOfNode; -const ts = __importStar(require("typescript")); -/** - * Gets the source file for a given node - */ -function getSourceFileOfNode(node) { - while (node.kind !== ts.SyntaxKind.SourceFile) { - node = node.parent; - } - return node; -} -//# sourceMappingURL=getSourceFileOfNode.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map deleted file mode 100644 index ba485902..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getSourceFileOfNode.js","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,kDAKC;AAVD,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAa;IAC/C,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QAC9C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,IAAqB,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts deleted file mode 100644 index 0d7b92ae..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Get the type name of a given type. - * @param typeChecker The context sensitive TypeScript TypeChecker. - * @param type The type to get the name of. - */ -export declare function getTypeName(typeChecker: ts.TypeChecker, type: ts.Type): string; -//# sourceMappingURL=getTypeName.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map deleted file mode 100644 index a0451233..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeName.d.ts","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,EAAE,CAAC,WAAW,EAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,MAAM,CAoDR"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js deleted file mode 100644 index 9a06a0ec..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeName = getTypeName; -const ts = __importStar(require("typescript")); -/** - * Get the type name of a given type. - * @param typeChecker The context sensitive TypeScript TypeChecker. - * @param type The type to get the name of. - */ -function getTypeName(typeChecker, type) { - // It handles `string` and string literal types as string. - if ((type.flags & ts.TypeFlags.StringLike) !== 0) { - return 'string'; - } - // If the type is a type parameter which extends primitive string types, - // but it was not recognized as a string like. So check the constraint - // type of the type parameter. - if ((type.flags & ts.TypeFlags.TypeParameter) !== 0) { - // `type.getConstraint()` method doesn't return the constraint type of - // the type parameter for some reason. So this gets the constraint type - // via AST. - const symbol = type.getSymbol(); - const decls = symbol?.getDeclarations(); - const typeParamDecl = decls?.[0]; - if (ts.isTypeParameterDeclaration(typeParamDecl) && - typeParamDecl.constraint != null) { - return getTypeName(typeChecker, typeChecker.getTypeFromTypeNode(typeParamDecl.constraint)); - } - } - // If the type is a union and all types in the union are string like, - // return `string`. For example: - // - `"a" | "b"` is string. - // - `string | string[]` is not string. - if (type.isUnion() && - type.types - .map(value => getTypeName(typeChecker, value)) - .every(t => t === 'string')) { - return 'string'; - } - // If the type is an intersection and a type in the intersection is string - // like, return `string`. For example: `string & {__htmlEscaped: void}` - if (type.isIntersection() && - type.types - .map(value => getTypeName(typeChecker, value)) - .some(t => t === 'string')) { - return 'string'; - } - return typeChecker.typeToString(type); -} -//# sourceMappingURL=getTypeName.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map deleted file mode 100644 index 0ad8cdf9..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeName.js","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,kCAuDC;AA9DD,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,WAAW,CACzB,WAA2B,EAC3B,IAAa;IAEb,0DAA0D;IAC1D,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,wEAAwE;IACxE,sEAAsE;IACtE,8BAA8B;IAC9B,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACpD,sEAAsE;QACtE,uEAAuE;QACvE,WAAW;QACX,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,MAAM,EAAE,eAAe,EAAE,CAAC;QACxC,MAAM,aAAa,GAAG,KAAK,EAAE,CAAC,CAAC,CAAgC,CAAC;QAChE,IACE,EAAE,CAAC,0BAA0B,CAAC,aAAa,CAAC;YAC5C,aAAa,CAAC,UAAU,IAAI,IAAI,EAChC,CAAC;YACD,OAAO,WAAW,CAChB,WAAW,EACX,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,UAAU,CAAC,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,qEAAqE;IACrE,gCAAgC;IAChC,2BAA2B;IAC3B,uCAAuC;IACvC,IACE,IAAI,CAAC,OAAO,EAAE;QACd,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC7B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,0EAA0E;IAC1E,uEAAuE;IACvE,IACE,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC5B,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts deleted file mode 100644 index 9bd1cf5e..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export * from './builtinSymbolLikes'; -export * from './containsAllTypesByName'; -export * from './getConstrainedTypeAtLocation'; -export * from './getContextualType'; -export * from './getDeclaration'; -export * from './getSourceFileOfNode'; -export * from './getTypeName'; -export * from './isSymbolFromDefaultLibrary'; -export * from './isTypeReadonly'; -export * from './isUnsafeAssignment'; -export * from './predicates'; -export * from './propertyTypes'; -export * from './requiresQuoting'; -export * from './TypeOrValueSpecifier'; -export * from './typeFlagUtils'; -export { getDecorators, getModifiers, typescriptVersionIsAtLeast, } from '@typescript-eslint/typescript-estree'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map deleted file mode 100644 index b212b75b..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js deleted file mode 100644 index 7f52ff5d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typescriptVersionIsAtLeast = exports.getModifiers = exports.getDecorators = void 0; -__exportStar(require("./builtinSymbolLikes"), exports); -__exportStar(require("./containsAllTypesByName"), exports); -__exportStar(require("./getConstrainedTypeAtLocation"), exports); -__exportStar(require("./getContextualType"), exports); -__exportStar(require("./getDeclaration"), exports); -__exportStar(require("./getSourceFileOfNode"), exports); -__exportStar(require("./getTypeName"), exports); -__exportStar(require("./isSymbolFromDefaultLibrary"), exports); -__exportStar(require("./isTypeReadonly"), exports); -__exportStar(require("./isUnsafeAssignment"), exports); -__exportStar(require("./predicates"), exports); -__exportStar(require("./propertyTypes"), exports); -__exportStar(require("./requiresQuoting"), exports); -__exportStar(require("./TypeOrValueSpecifier"), exports); -__exportStar(require("./typeFlagUtils"), exports); -var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -Object.defineProperty(exports, "getDecorators", { enumerable: true, get: function () { return typescript_estree_1.getDecorators; } }); -Object.defineProperty(exports, "getModifiers", { enumerable: true, get: function () { return typescript_estree_1.getModifiers; } }); -Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return typescript_estree_1.typescriptVersionIsAtLeast; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js.map deleted file mode 100644 index 1ef19969..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,iEAA+C;AAC/C,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,gDAA8B;AAC9B,+DAA6C;AAC7C,mDAAiC;AACjC,uDAAqC;AACrC,+CAA6B;AAC7B,kDAAgC;AAChC,oDAAkC;AAClC,yDAAuC;AACvC,kDAAgC;AAChC,0EAI8C;AAH5C,kHAAA,aAAa,OAAA;AACb,iHAAA,YAAY,OAAA;AACZ,+HAAA,0BAA0B,OAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts deleted file mode 100644 index e620443e..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as ts from 'typescript'; -export declare function isSymbolFromDefaultLibrary(program: ts.Program, symbol: ts.Symbol | undefined): boolean; -//# sourceMappingURL=isSymbolFromDefaultLibrary.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map deleted file mode 100644 index 9e4009e3..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isSymbolFromDefaultLibrary.d.ts","sourceRoot":"","sources":["../src/isSymbolFromDefaultLibrary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,MAAM,EAAE,EAAE,CAAC,MAAM,GAAG,SAAS,GAC5B,OAAO,CAcT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js deleted file mode 100644 index 7a074105..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSymbolFromDefaultLibrary = isSymbolFromDefaultLibrary; -function isSymbolFromDefaultLibrary(program, symbol) { - if (!symbol) { - return false; - } - const declarations = symbol.getDeclarations() ?? []; - for (const declaration of declarations) { - const sourceFile = declaration.getSourceFile(); - if (program.isSourceFileDefaultLibrary(sourceFile)) { - return true; - } - } - return false; -} -//# sourceMappingURL=isSymbolFromDefaultLibrary.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map deleted file mode 100644 index e754ef01..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isSymbolFromDefaultLibrary.js","sourceRoot":"","sources":["../src/isSymbolFromDefaultLibrary.ts"],"names":[],"mappings":";;AAEA,gEAiBC;AAjBD,SAAgB,0BAA0B,CACxC,OAAmB,EACnB,MAA6B;IAE7B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;IACpD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;QAC/C,IAAI,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts deleted file mode 100644 index 2eb73b64..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema'; -import * as ts from 'typescript'; -import type { TypeOrValueSpecifier } from './TypeOrValueSpecifier'; -export interface ReadonlynessOptions { - readonly treatMethodsAsReadonly?: boolean; - readonly allow?: TypeOrValueSpecifier[]; -} -export declare const readonlynessOptionsSchema: { - type: "object"; - additionalProperties: false; - properties: { - treatMethodsAsReadonly: { - type: "boolean"; - }; - allow: { - type: "array"; - items: JSONSchema4; - }; - }; -}; -export declare const readonlynessOptionsDefaults: ReadonlynessOptions; -/** - * Checks if the given type is readonly - */ -declare function isTypeReadonly(program: ts.Program, type: ts.Type, options?: ReadonlynessOptions): boolean; -export { isTypeReadonly }; -//# sourceMappingURL=isTypeReadonly.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map deleted file mode 100644 index 6bdb7985..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isTypeReadonly.d.ts","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAenE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACzC;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAYf,CAAC;AAExB,eAAO,MAAM,2BAA2B,EAAE,mBAGzC,CAAC;AAoSF;;GAEG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,EAAE,CAAC,OAAO,EACnB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,GAAE,mBAAiD,GACzD,OAAO,CAKT;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js deleted file mode 100644 index 118deb00..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +++ /dev/null @@ -1,226 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0; -exports.isTypeReadonly = isTypeReadonly; -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const propertyTypes_1 = require("./propertyTypes"); -const TypeOrValueSpecifier_1 = require("./TypeOrValueSpecifier"); -exports.readonlynessOptionsSchema = { - type: 'object', - additionalProperties: false, - properties: { - treatMethodsAsReadonly: { - type: 'boolean', - }, - allow: { - type: 'array', - items: TypeOrValueSpecifier_1.typeOrValueSpecifierSchema, - }, - }, -}; -exports.readonlynessOptionsDefaults = { - treatMethodsAsReadonly: false, - allow: [], -}; -function hasSymbol(node) { - return Object.hasOwn(node, 'symbol'); -} -function isTypeReadonlyArrayOrTuple(program, type, options, seenTypes) { - const checker = program.getTypeChecker(); - function checkTypeArguments(arrayType) { - const typeArguments = checker.getTypeArguments(arrayType); - // this shouldn't happen in reality as: - // - tuples require at least 1 type argument - // - ReadonlyArray requires at least 1 type argument - /* istanbul ignore if */ if (typeArguments.length === 0) { - return 3 /* Readonlyness.Readonly */; - } - // validate the element types are also readonly - if (typeArguments.some(typeArg => isTypeReadonlyRecurser(program, typeArg, options, seenTypes) === - 2 /* Readonlyness.Mutable */)) { - return 2 /* Readonlyness.Mutable */; - } - return 3 /* Readonlyness.Readonly */; - } - if (checker.isArrayType(type)) { - const symbol = utils_1.ESLintUtils.nullThrows(type.getSymbol(), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type')); - const escapedName = symbol.getEscapedName(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison - if (escapedName === 'Array') { - return 2 /* Readonlyness.Mutable */; - } - return checkTypeArguments(type); - } - if (checker.isTupleType(type)) { - if (!type.target.readonly) { - return 2 /* Readonlyness.Mutable */; - } - return checkTypeArguments(type); - } - return 1 /* Readonlyness.UnknownType */; -} -function isTypeReadonlyObject(program, type, options, seenTypes) { - const checker = program.getTypeChecker(); - function checkIndexSignature(kind) { - const indexInfo = checker.getIndexInfoOfType(type, kind); - if (indexInfo) { - if (!indexInfo.isReadonly) { - return 2 /* Readonlyness.Mutable */; - } - if (indexInfo.type === type || seenTypes.has(indexInfo.type)) { - return 3 /* Readonlyness.Readonly */; - } - return isTypeReadonlyRecurser(program, indexInfo.type, options, seenTypes); - } - return 1 /* Readonlyness.UnknownType */; - } - const properties = type.getProperties(); - if (properties.length) { - // ensure the properties are marked as readonly - for (const property of properties) { - if (options.treatMethodsAsReadonly) { - if (property.valueDeclaration !== undefined && - hasSymbol(property.valueDeclaration) && - tsutils.isSymbolFlagSet(property.valueDeclaration.symbol, ts.SymbolFlags.Method)) { - continue; - } - const declarations = property.getDeclarations(); - const lastDeclaration = declarations !== undefined && declarations.length > 0 - ? declarations[declarations.length - 1] - : undefined; - if (lastDeclaration !== undefined && - hasSymbol(lastDeclaration) && - tsutils.isSymbolFlagSet(lastDeclaration.symbol, ts.SymbolFlags.Method)) { - continue; - } - } - if (tsutils.isPropertyReadonlyInType(type, property.getEscapedName(), checker)) { - continue; - } - const name = ts.getNameOfDeclaration(property.valueDeclaration); - if (name && ts.isPrivateIdentifier(name)) { - continue; - } - return 2 /* Readonlyness.Mutable */; - } - // all properties were readonly - // now ensure that all of the values are readonly also. - // do this after checking property readonly-ness as a perf optimization, - // as we might be able to bail out early due to a mutable property before - // doing this deep, potentially expensive check. - for (const property of properties) { - const propertyType = utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type')); - // handle recursive types. - // we only need this simple check, because a mutable recursive type will break via the above prop readonly check - if (seenTypes.has(propertyType)) { - continue; - } - if (isTypeReadonlyRecurser(program, propertyType, options, seenTypes) === - 2 /* Readonlyness.Mutable */) { - return 2 /* Readonlyness.Mutable */; - } - } - } - const isStringIndexSigReadonly = checkIndexSignature(ts.IndexKind.String); - if (isStringIndexSigReadonly === 2 /* Readonlyness.Mutable */) { - return isStringIndexSigReadonly; - } - const isNumberIndexSigReadonly = checkIndexSignature(ts.IndexKind.Number); - if (isNumberIndexSigReadonly === 2 /* Readonlyness.Mutable */) { - return isNumberIndexSigReadonly; - } - return 3 /* Readonlyness.Readonly */; -} -// a helper function to ensure the seenTypes map is always passed down, except by the external caller -function isTypeReadonlyRecurser(program, type, options, seenTypes) { - const checker = program.getTypeChecker(); - seenTypes.add(type); - if (options.allow?.some(specifier => (0, TypeOrValueSpecifier_1.typeMatchesSpecifier)(type, specifier, program))) { - return 3 /* Readonlyness.Readonly */; - } - if (tsutils.isUnionType(type)) { - // all types in the union must be readonly - const result = tsutils - .unionTypeParts(type) - .every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(program, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - return readonlyness; - } - if (tsutils.isIntersectionType(type)) { - // Special case for handling arrays/tuples (as readonly arrays/tuples always have mutable methods). - if (type.types.some(t => checker.isArrayType(t) || checker.isTupleType(t))) { - const allReadonlyParts = type.types.every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(program, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - return allReadonlyParts ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - } - // Normal case. - const isReadonlyObject = isTypeReadonlyObject(program, type, options, seenTypes); - if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyObject; - } - } - if (tsutils.isConditionalType(type)) { - const result = [type.root.node.trueType, type.root.node.falseType] - .map(checker.getTypeFromTypeNode) - .every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(program, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - return readonlyness; - } - // all non-object, non-intersection types are readonly. - // this should only be primitive types - if (!tsutils.isObjectType(type)) { - return 3 /* Readonlyness.Readonly */; - } - // pure function types are readonly - if (type.getCallSignatures().length > 0 && - type.getProperties().length === 0) { - return 3 /* Readonlyness.Readonly */; - } - const isReadonlyArray = isTypeReadonlyArrayOrTuple(program, type, options, seenTypes); - if (isReadonlyArray !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyArray; - } - const isReadonlyObject = isTypeReadonlyObject(program, type, options, seenTypes); - /* istanbul ignore else */ if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyObject; - } - throw new Error('Unhandled type'); -} -/** - * Checks if the given type is readonly - */ -function isTypeReadonly(program, type, options = exports.readonlynessOptionsDefaults) { - return (isTypeReadonlyRecurser(program, type, options, new Set()) === - 3 /* Readonlyness.Readonly */); -} -//# sourceMappingURL=isTypeReadonly.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map deleted file mode 100644 index 59b47075..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6VS,wCAAc;AA7VvB,oDAAuD;AAEvD,sDAAwC;AACxC,+CAAiC;AAEjC,mDAA0D;AAE1D,iEAGgC;AAgBnB,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,iDAA0B;SAClC;KACF;CACoB,CAAC;AAEX,QAAA,2BAA2B,GAAwB;IAC9D,sBAAsB,EAAE,KAAK;IAC7B,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAmB,EACnB,IAAa,E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AC,aAAa,EAAE,CAAC,MAAM,KAAK,CAAC,EACjC,CAAC;QACD,qCAA6B;IAC/B,CAAC;IAED,MAAM,eAAe,GAAG,0BAA0B,CAChD,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,qCAA6B,EAAE,CAAC;QACjD,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAmB,EACnB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts deleted file mode 100644 index 67bef348..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/utils'; -import type * as ts from 'typescript'; -/** - * Does a simple check to see if there is an any being assigned to a non-any type. - * - * This also checks generic positions to ensure there's no unsafe sub-assignments. - * Note: in the case of generic positions, it makes the assumption that the two types are the same. - * - * @example See tests for examples - * - * @returns false if it's safe, or an object with the two types if it's unsafe - */ -export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): false | { - sender: ts.Type; - receiver: ts.Type; -}; -//# sourceMappingURL=isUnsafeAssignment.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map deleted file mode 100644 index 05dd1535..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnsafeAssignment.d.ts","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,IAAI,EACjB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAC/B,KAAK,GAAG;IAAE,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAA;CAAE,CAQhD"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js deleted file mode 100644 index bcd0f29e..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUnsafeAssignment = isUnsafeAssignment; -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("ts-api-utils")); -const predicates_1 = require("./predicates"); -/** - * Does a simple check to see if there is an any being assigned to a non-any type. - * - * This also checks generic positions to ensure there's no unsafe sub-assignments. - * Note: in the case of generic positions, it makes the assumption that the two types are the same. - * - * @example See tests for examples - * - * @returns false if it's safe, or an object with the two types if it's unsafe - */ -function isUnsafeAssignment(type, receiver, checker, senderNode) { - return isUnsafeAssignmentWorker(type, receiver, checker, senderNode, new Map()); -} -function isUnsafeAssignmentWorker(type, receiver, checker, senderNode, visited) { - if ((0, predicates_1.isTypeAnyType)(type)) { - // Allow assignment of any ==> unknown. - if ((0, predicates_1.isTypeUnknownType)(receiver)) { - return false; - } - if (!(0, predicates_1.isTypeAnyType)(receiver)) { - return { sender: type, receiver }; - } - } - const typeAlreadyVisited = visited.get(type); - if (typeAlreadyVisited) { - if (typeAlreadyVisited.has(receiver)) { - return false; - } - typeAlreadyVisited.add(receiver); - } - else { - visited.set(type, new Set([receiver])); - } - if (tsutils.isTypeReference(type) && tsutils.isTypeReference(receiver)) { - // TODO - figure out how to handle cases like this, - // where the types are assignable, but not the same type - /* - function foo(): ReadonlySet { return new Set(); } - - // and - - type Test = { prop: T } - type Test2 = { prop: string } - declare const a: Test; - const b: Test2 = a; - */ - if (type.target !== receiver.target) { - // if the type references are different, assume safe, as we won't know how to compare the two types - // the generic positions might not be equivalent for both types - return false; - } - if (senderNode?.type === utils_1.AST_NODE_TYPES.NewExpression && - senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier && - senderNode.callee.name === 'Map' && - senderNode.arguments.length === 0 && - senderNode.typeArguments == null) { - // special case to handle `new Map()` - // unfortunately Map's default empty constructor is typed to return `Map` :( - // https://github.com/typescript-eslint/typescript-eslint/issues/2109#issuecomment-634144396 - return false; - } - const typeArguments = type.typeArguments ?? []; - const receiverTypeArguments = receiver.typeArguments ?? []; - for (let i = 0; i < typeArguments.length; i += 1) { - const arg = typeArguments[i]; - const receiverArg = receiverTypeArguments[i]; - const unsafe = isUnsafeAssignmentWorker(arg, receiverArg, checker, senderNode, visited); - if (unsafe) { - return { sender: type, receiver }; - } - } - return false; - } - return false; -} -//# sourceMappingURL=isUnsafeAssignment.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map deleted file mode 100644 index aa0a6ddb..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,gDAaC;AA7BD,oDAA0D;AAC1D,sDAAwC;AAGxC,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;IAEhC,OAAO,wBAAwB,CAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,UAAU,EACV,IAAI,GAAG,EAAE,CACV,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAC/B,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC,EAChC,OAAmC;IAEnC,IAAI,IAAA,0BAAa,EAAC,IAAI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4FAA4F;YAC5F,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,IAAI,EAAE,CAAC;QAC/C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC;QAE3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACjD,MAAM,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,wBAAwB,CACrC,GAAG,EACH,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,CACR,CAAC;YACF,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts deleted file mode 100644 index bc420c5a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import * as ts from 'typescript'; -/** - * Checks if the given type is (or accepts) nullable - */ -export declare function isNullableType(type: ts.Type): boolean; -/** - * Checks if the given type is either an array type, - * or a union made up solely of array types. - */ -export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `never` - */ -export declare function isTypeNeverType(type: ts.Type): boolean; -/** - * @returns true if the type is `unknown` - */ -export declare function isTypeUnknownType(type: ts.Type): boolean; -export declare function isTypeReferenceType(type: ts.Type): type is ts.TypeReference; -/** - * @returns true if the type is `any` - */ -export declare function isTypeAnyType(type: ts.Type): boolean; -/** - * @returns true if the type is `any[]` - */ -export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `unknown[]` - */ -export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -export declare enum AnyType { - Any = 0, - PromiseAny = 1, - AnyArray = 2, - Safe = 3 -} -/** - * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, `AnyType.PromiseAny` if the type is `Promise`, - * otherwise it returns `AnyType.Safe`. - */ -export declare function discriminateAnyType(type: ts.Type, checker: ts.TypeChecker, program: ts.Program, tsNode: ts.Node): AnyType; -/** - * @returns Whether a type is an instance of the parent type, including for the parent's base types. - */ -export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean; -export declare function isTypeBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; -export declare function isTypeTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; -//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map deleted file mode 100644 index 2c6edee3..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAQrD;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EA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/predicates.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js deleted file mode 100644 index 3b1262fc..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js +++ /dev/null @@ -1,180 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AnyType = void 0; -exports.isNullableType = isNullableType; -exports.isTypeArrayTypeOrUnionOfArrayTypes = isTypeArrayTypeOrUnionOfArrayTypes; -exports.isTypeNeverType = isTypeNeverType; -exports.isTypeUnknownType = isTypeUnknownType; -exports.isTypeReferenceType = isTypeReferenceType; -exports.isTypeAnyType = isTypeAnyType; -exports.isTypeAnyArrayType = isTypeAnyArrayType; -exports.isTypeUnknownArrayType = isTypeUnknownArrayType; -exports.discriminateAnyType = discriminateAnyType; -exports.typeIsOrHasBaseType = typeIsOrHasBaseType; -exports.isTypeBigIntLiteralType = isTypeBigIntLiteralType; -exports.isTypeTemplateLiteralType = isTypeTemplateLiteralType; -const debug_1 = __importDefault(require("debug")); -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const typeFlagUtils_1 = require("./typeFlagUtils"); -const log = (0, debug_1.default)('typescript-eslint:eslint-plugin:utils:types'); -/** - * Checks if the given type is (or accepts) nullable - */ -function isNullableType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.Null | - ts.TypeFlags.Undefined); -} -/** - * Checks if the given type is either an array type, - * or a union made up solely of array types. - */ -function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) { - for (const t of tsutils.unionTypeParts(type)) { - if (!checker.isArrayType(t)) { - return false; - } - } - return true; -} -/** - * @returns true if the type is `never` - */ -function isTypeNeverType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Never); -} -/** - * @returns true if the type is `unknown` - */ -function isTypeUnknownType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Unknown); -} -// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5157 -const Nullable = ts.TypeFlags.Undefined | ts.TypeFlags.Null; -// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5187 -const ObjectFlagsType = ts.TypeFlags.Any | - Nullable | - ts.TypeFlags.Never | - ts.TypeFlags.Object | - ts.TypeFlags.Union | - ts.TypeFlags.Intersection; -function isTypeReferenceType(type) { - if ((type.flags & ObjectFlagsType) === 0) { - return false; - } - const objectTypeFlags = type.objectFlags; - return (objectTypeFlags & ts.ObjectFlags.Reference) !== 0; -} -/** - * @returns true if the type is `any` - */ -function isTypeAnyType(type) { - if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any)) { - if (type.intrinsicName === 'error') { - log('Found an "error" any type'); - } - return true; - } - return false; -} -/** - * @returns true if the type is `any[]` - */ -function isTypeAnyArrayType(type, checker) { - return (checker.isArrayType(type) && - isTypeAnyType(checker.getTypeArguments(type)[0])); -} -/** - * @returns true if the type is `unknown[]` - */ -function isTypeUnknownArrayType(type, checker) { - return (checker.isArrayType(type) && - isTypeUnknownType(checker.getTypeArguments(type)[0])); -} -var AnyType; -(function (AnyType) { - AnyType[AnyType["Any"] = 0] = "Any"; - AnyType[AnyType["PromiseAny"] = 1] = "PromiseAny"; - AnyType[AnyType["AnyArray"] = 2] = "AnyArray"; - AnyType[AnyType["Safe"] = 3] = "Safe"; -})(AnyType || (exports.AnyType = AnyType = {})); -/** - * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, `AnyType.PromiseAny` if the type is `Promise`, - * otherwise it returns `AnyType.Safe`. - */ -function discriminateAnyType(type, checker, program, tsNode) { - if (isTypeAnyType(type)) { - return AnyType.Any; - } - if (isTypeAnyArrayType(type, checker)) { - return AnyType.AnyArray; - } - for (const part of tsutils.typeParts(type)) { - if (tsutils.isThenableType(checker, tsNode, type)) { - const awaitedType = checker.getAwaitedType(part); - if (awaitedType) { - const awaitedAnyType = discriminateAnyType(awaitedType, checker, program, tsNode); - if (awaitedAnyType === AnyType.Any) { - return AnyType.PromiseAny; - } - } - } - } - return AnyType.Safe; -} -/** - * @returns Whether a type is an instance of the parent type, including for the parent's base types. - */ -function typeIsOrHasBaseType(type, parentType) { - const parentSymbol = parentType.getSymbol(); - if (!type.getSymbol() || !parentSymbol) { - return false; - } - const typeAndBaseTypes = [type]; - const ancestorTypes = type.getBaseTypes(); - if (ancestorTypes) { - typeAndBaseTypes.push(...ancestorTypes); - } - for (const baseType of typeAndBaseTypes) { - const baseSymbol = baseType.getSymbol(); - if (baseSymbol && baseSymbol.name === parentSymbol.name) { - return true; - } - } - return false; -} -function isTypeBigIntLiteralType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.BigIntLiteral); -} -function isTypeTemplateLiteralType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.TemplateLiteral); -} -//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map deleted file mode 100644 index cbff86b6..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCAQC;AAMD,gFAWC;AAKD,0CAEC;AAKD,8CAEC;AAYD,kDAMC;AAKD,sCAQC;AAKD,gDAQC;AAKD,wDAQC;AAYD,kDA8BC;AAKD,kDAwBC;AAED,0DAIC;AAED,8DAIC;AA9LD,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAa;IAC1C,OAAO,IAAA,6BAAa,EAClB,IAAI,EACJ,EAAE,CAAC,SAAS,CAAC,GAAG;QACd,EAAE,CAAC,SAAS,CAAC,OAAO;QACpB,EAAE,CAAC,SAAS,CAAC,IAAI;QACjB,EAAE,CAAC,SAAS,CAAC,SAAS,CACzB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,kCAAkC,CAChD,IAAa,EACb,OAAuB;IAEvB,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAa;IAC3C,OAAO,IAAA,6BAAa,EAAC,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AAC;gBAC5B,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC,IAAI,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CACjC,IAAa,EACb,UAAmB;IAEnB,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;IAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAE1C,IAAI,aAAa,EAAE,CAAC;QAClB,gBAAgB,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxC,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,CAAC;YACxD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts deleted file mode 100644 index 068d208e..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type * as ts from 'typescript'; -export declare function getTypeOfPropertyOfName(checker: ts.TypeChecker, type: ts.Type, name: string, escapedName?: ts.__String): ts.Type | undefined; -export declare function getTypeOfPropertyOfType(checker: ts.TypeChecker, type: ts.Type, property: ts.Symbol): ts.Type | undefined; -//# sourceMappingURL=propertyTypes.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map deleted file mode 100644 index 214952c1..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyTypes.d.ts","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,EAAE,CAAC,QAAQ,GACxB,EAAE,CAAC,IAAI,GAAG,SAAS,CAerB;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,MAAM,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAOrB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js deleted file mode 100644 index 042af450..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeOfPropertyOfName = getTypeOfPropertyOfName; -exports.getTypeOfPropertyOfType = getTypeOfPropertyOfType; -function getTypeOfPropertyOfName(checker, type, name, escapedName) { - // Most names are directly usable in the checker and aren't different from escaped names - if (!escapedName || !isSymbol(escapedName)) { - return checker.getTypeOfPropertyOfType(type, name); - } - // Symbolic names may differ in their escaped name compared to their human-readable name - // https://github.com/typescript-eslint/typescript-eslint/issues/2143 - const escapedProperty = type - .getProperties() - .find(property => property.escapedName === escapedName); - return escapedProperty - ? checker.getDeclaredTypeOfSymbol(escapedProperty) - : undefined; -} -function getTypeOfPropertyOfType(checker, type, property) { - return getTypeOfPropertyOfName(checker, type, property.getName(), property.getEscapedName()); -} -// Symbolic names need to be specially handled because TS api is not sufficient for these cases. -// Source based on: -// https://github.com/microsoft/TypeScript/blob/0043abe982aae0d35f8df59f9715be6ada758ff7/src/compiler/utilities.ts#L3388-L3402 -function isSymbol(escapedName) { - return isKnownSymbol(escapedName) || isPrivateIdentifierSymbol(escapedName); -} -// case for escapedName: "__@foo@10", name: "__@foo@10" -function isKnownSymbol(escapedName) { - return escapedName.startsWith('__@'); -} -// case for escapedName: "__#1@#foo", name: "#foo" -function isPrivateIdentifierSymbol(escapedName) { - return escapedName.startsWith('__#'); -} -//# sourceMappingURL=propertyTypes.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map deleted file mode 100644 index b2776a26..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyTypes.js","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":";;AAEA,0DAoBC;AAED,0DAWC;AAjCD,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,IAAY,EACZ,WAAyB;IAEzB,wFAAwF;IACxF,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC3C,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,wFAAwF;IACxF,qEAAqE;IACrE,MAAM,eAAe,GAAG,IAAI;SACzB,aAAa,EAAE;SACf,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAE1D,OAAO,eAAe;QACpB,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,QAAmB;IAEnB,OAAO,uBAAuB,CAC5B,OAAO,EACP,IAAI,EACJ,QAAQ,CAAC,OAAO,EAAE,EAClB,QAAQ,CAAC,cAAc,EAAE,CAC1B,CAAC;AACJ,CAAC;AAED,gGAAgG;AAChG,mBAAmB;AACnB,8HAA8H;AAC9H,SAAS,QAAQ,CAAC,WAAmB;IACnC,OAAO,aAAa,CAAC,WAAW,CAAC,IAAI,yBAAyB,CAAC,WAAW,CAAC,CAAC;AAC9E,CAAC;AAED,uDAAuD;AACvD,SAAS,aAAa,CAAC,WAAmB;IACxC,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,kDAAkD;AAClD,SAAS,yBAAyB,CAAC,WAAmB;IACpD,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts deleted file mode 100644 index 3cd43b30..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -/*** Indicates whether identifiers require the use of quotation marks when accessing property definitions and dot notation. */ -declare function requiresQuoting(name: string, target?: ts.ScriptTarget): boolean; -export { requiresQuoting }; -//# sourceMappingURL=requiresQuoting.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map deleted file mode 100644 index 118fb3c4..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"requiresQuoting.d.ts","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,8HAA8H;AAC9H,iBAAS,eAAe,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,EAAE,CAAC,YAAqC,GAC/C,OAAO,CAgBT;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js deleted file mode 100644 index 8040c043..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.requiresQuoting = requiresQuoting; -const ts = __importStar(require("typescript")); -/*** Indicates whether identifiers require the use of quotation marks when accessing property definitions and dot notation. */ -function requiresQuoting(name, target = ts.ScriptTarget.ESNext) { - if (name.length === 0) { - return true; - } - if (!ts.isIdentifierStart(name.charCodeAt(0), target)) { - return true; - } - for (let i = 1; i < name.length; i += 1) { - if (!ts.isIdentifierPart(name.charCodeAt(i), target)) { - return true; - } - } - return false; -} -//# sourceMappingURL=requiresQuoting.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map deleted file mode 100644 index e1af80c7..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuBS,0CAAe;AAvBxB,+CAAiC;AACjC,8HAA8H;AAC9H,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YACrD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts deleted file mode 100644 index b2e4757f..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets all of the type flags in a type, iterating through unions automatically. - */ -export declare function getTypeFlags(type: ts.Type): ts.TypeFlags; -/** - * @param flagsToCheck The composition of one or more `ts.TypeFlags`. - * @param isReceiver Whether the type is a receiving type (e.g. the type of a - * called function's parameter). - * @remarks - * Note that if the type is a union, this function will decompose it into the - * parts and get the flags of every union constituent. If this is not desired, - * use the `isTypeFlag` function from tsutils. - */ -export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags, -/** @deprecated This params is not used and will be removed in the future.*/ -isReceiver?: boolean): boolean; -//# sourceMappingURL=typeFlagUtils.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map deleted file mode 100644 index 44c0c484..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAOxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS;AAC1B,4EAA4E;AAC5E,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAST"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js deleted file mode 100644 index 84124965..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeFlags = getTypeFlags; -exports.isTypeFlagSet = isTypeFlagSet; -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const ANY_OR_UNKNOWN = ts.TypeFlags.Any | ts.TypeFlags.Unknown; -/** - * Gets all of the type flags in a type, iterating through unions automatically. - */ -function getTypeFlags(type) { - // @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags. - let flags = 0; - for (const t of tsutils.unionTypeParts(type)) { - flags |= t.flags; - } - return flags; -} -/** - * @param flagsToCheck The composition of one or more `ts.TypeFlags`. - * @param isReceiver Whether the type is a receiving type (e.g. the type of a - * called function's parameter). - * @remarks - * Note that if the type is a union, this function will decompose it into the - * parts and get the flags of every union constituent. If this is not desired, - * use the `isTypeFlag` function from tsutils. - */ -function isTypeFlagSet(type, flagsToCheck, -/** @deprecated This params is not used and will be removed in the future.*/ -isReceiver) { - const flags = getTypeFlags(type); - // eslint-disable-next-line deprecation/deprecation -- not used - if (isReceiver && flags & ANY_OR_UNKNOWN) { - return true; - } - return (flags & flagsToCheck) !== 0; -} -//# sourceMappingURL=typeFlagUtils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map deleted file mode 100644 index f2807ad7..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,oCAOC;AAWD,sCAcC;AAxCD,sDAAwC;AACxC,+CAAiC;AAEjC,MAAM,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;AAE/D;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B;AAC1B,4EAA4E;AAC5E,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,+DAA+D;IAC/D,IAAI,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts deleted file mode 100644 index 150fc78d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as ts from 'typescript'; -export declare function specifierNameMatches(type: ts.Type, names: string[] | string): boolean; -//# sourceMappingURL=specifierNameMatches.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map deleted file mode 100644 index bd9a6a7d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"specifierNameMatches.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,GACvB,OAAO,CAmBT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js deleted file mode 100644 index 0f28f956..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.specifierNameMatches = specifierNameMatches; -const tsutils = __importStar(require("ts-api-utils")); -function specifierNameMatches(type, names) { - if (typeof names === 'string') { - names = [names]; - } - const symbol = type.aliasSymbol ?? type.getSymbol(); - const candidateNames = symbol - ? [symbol.escapedName, type.intrinsicName] - : [type.intrinsicName]; - if (names.some(item => candidateNames.includes(item))) { - return true; - } - if (tsutils.isIntersectionType(type)) { - return type.types.some(subType => specifierNameMatches(subType, names)); - } - return false; -} -//# sourceMappingURL=specifierNameMatches.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map deleted file mode 100644 index 62a88226..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"specifierNameMatches.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/specifierNameMatches.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oDAsBC;AAzBD,sDAAwC;AAGxC,SAAgB,oBAAoB,CAClC,IAAa,EACb,KAAwB;IAExB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACpD,MAAM,cAAc,GAAG,MAAM;QAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,WAAqB,EAAE,IAAI,CAAC,aAAa,CAAC;QACpD,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEzB,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts deleted file mode 100644 index 26166c7f..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as ts from 'typescript'; -export declare function typeDeclaredInFile(relativePath: string | undefined, declarationFiles: ts.SourceFile[], program: ts.Program): boolean; -//# sourceMappingURL=typeDeclaredInFile.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map deleted file mode 100644 index 35c18d2d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInFile.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAaT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js deleted file mode 100644 index 473bb9b0..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeDeclaredInFile = typeDeclaredInFile; -const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -const path_1 = __importDefault(require("path")); -function typeDeclaredInFile(relativePath, declarationFiles, program) { - if (relativePath === undefined) { - const cwd = (0, typescript_estree_1.getCanonicalFileName)(program.getCurrentDirectory()); - return declarationFiles.some(declaration => (0, typescript_estree_1.getCanonicalFileName)(declaration.fileName).startsWith(cwd)); - } - const absolutePath = (0, typescript_estree_1.getCanonicalFileName)(path_1.default.join(program.getCurrentDirectory(), relativePath)); - return declarationFiles.some(declaration => (0, typescript_estree_1.getCanonicalFileName)(declaration.fileName) === absolutePath); -} -//# sourceMappingURL=typeDeclaredInFile.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map deleted file mode 100644 index 1862df80..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInFile.ts"],"names":[],"mappings":";;;;;AAIA,gDAiBC;AArBD,4EAA4E;AAC5E,gDAAwB;AAGxB,SAAgB,kBAAkB,CAChC,YAAgC,EAChC,gBAAiC,EACjC,OAAmB;IAEnB,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,GAAG,GAAG,IAAA,wCAAoB,EAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;QAChE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CACzC,IAAA,wCAAoB,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAC3D,CAAC;IACJ,CAAC;IACD,MAAM,YAAY,GAAG,IAAA,wCAAoB,EACvC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,YAAY,CAAC,CACvD,CAAC;IACF,OAAO,gBAAgB,CAAC,IAAI,CAC1B,WAAW,CAAC,EAAE,CAAC,IAAA,wCAAoB,EAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,YAAY,CAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts deleted file mode 100644 index ed49ac54..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as ts from 'typescript'; -export declare function typeDeclaredInLib(declarationFiles: ts.SourceFile[], program: ts.Program): boolean; -//# sourceMappingURL=typeDeclaredInLib.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map deleted file mode 100644 index 09f2826d..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInLib.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInLib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAUT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js deleted file mode 100644 index 9feb9d9e..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeDeclaredInLib = typeDeclaredInLib; -function typeDeclaredInLib(declarationFiles, program) { - // Assertion: The type is not an error type. - // Intrinsic type (i.e. string, number, boolean, etc) - Treat it as if it's from lib. - if (declarationFiles.length === 0) { - return true; - } - return declarationFiles.some(declaration => program.isSourceFileDefaultLibrary(declaration)); -} -//# sourceMappingURL=typeDeclaredInLib.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map deleted file mode 100644 index a5b0080a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInLib.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInLib.ts"],"names":[],"mappings":";;AAEA,8CAaC;AAbD,SAAgB,iBAAiB,CAC/B,gBAAiC,EACjC,OAAmB;IAEnB,4CAA4C;IAE5C,qFAAqF;IACrF,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CACzC,OAAO,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts deleted file mode 100644 index 9e19df40..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ts from 'typescript'; -export declare function typeDeclaredInPackageDeclarationFile(packageName: string, declarations: ts.Node[], declarationFiles: ts.SourceFile[], program: ts.Program): boolean; -//# sourceMappingURL=typeDeclaredInPackageDeclarationFile.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map deleted file mode 100644 index 1e797bd0..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInPackageDeclarationFile.d.ts","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AA8CjC,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,EAAE,CAAC,IAAI,EAAE,EACvB,gBAAgB,EAAE,EAAE,CAAC,UAAU,EAAE,EACjC,OAAO,EAAE,EAAE,CAAC,OAAO,GAClB,OAAO,CAKT"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js deleted file mode 100644 index 0e821b49..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typeDeclaredInPackageDeclarationFile = typeDeclaredInPackageDeclarationFile; -const ts = __importStar(require("typescript")); -function findParentModuleDeclaration(node) { - switch (node.kind) { - case ts.SyntaxKind.ModuleDeclaration: - return ts.isStringLiteral(node.name) - ? node - : undefined; - case ts.SyntaxKind.SourceFile: - return undefined; - default: - return findParentModuleDeclaration(node.parent); - } -} -function typeDeclaredInDeclareModule(packageName, declarations) { - return declarations.some(declaration => findParentModuleDeclaration(declaration)?.name.text === packageName); -} -function typeDeclaredInDeclarationFile(packageName, declarationFiles, program) { - // Handle scoped packages: if the name starts with @, remove it and replace / with __ - const typesPackageName = packageName.replace(/^@([^/]+)\//, '$1__'); - const matcher = new RegExp(`${packageName}|${typesPackageName}`); - return declarationFiles.some(declaration => { - const packageIdName = program.sourceFileToPackageName.get(declaration.path); - return (packageIdName !== undefined && - matcher.test(packageIdName) && - program.isSourceFileFromExternalLibrary(declaration)); - }); -} -function typeDeclaredInPackageDeclarationFile(packageName, declarations, declarationFiles, program) { - return (typeDeclaredInDeclareModule(packageName, declarations) || - typeDeclaredInDeclarationFile(packageName, declarationFiles, program)); -} -//# sourceMappingURL=typeDeclaredInPackageDeclarationFile.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map b/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map deleted file mode 100644 index 27eee78a..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeDeclaredInPackageDeclarationFile.js","sourceRoot":"","sources":["../../src/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,oFAUC;AAxDD,+CAAiC;AAEjC,SAAS,2BAA2B,CAClC,IAAa;IAEb,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QAClB,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB;YAClC,OAAO,EAAE,CAAC,eAAe,CAAE,IAA6B,CAAC,IAAI,CAAC;gBAC5D,CAAC,CAAE,IAA6B;gBAChC,CAAC,CAAC,SAAS,CAAC;QAChB,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;YAC3B,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAClC,WAAmB,EACnB,YAAuB;IAEvB,OAAO,YAAY,CAAC,IAAI,CACtB,WAAW,CAAC,EAAE,CACZ,2BAA2B,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW,CACtE,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CACpC,WAAmB,EACnB,gBAAiC,EACjC,OAAmB;IAEnB,qFAAqF;IACrF,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEpE,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,WAAW,IAAI,gBAAgB,EAAE,CAAC,CAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;QACzC,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC5E,OAAO,CACL,aAAa,KAAK,SAAS;YAC3B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;YAC3B,OAAO,CAAC,+BAA+B,CAAC,WAAW,CAAC,CACrD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,oCAAoC,CAClD,WAAmB,EACnB,YAAuB,EACvB,gBAAiC,EACjC,OAAmB;IAEnB,OAAO,CACL,2BAA2B,CAAC,WAAW,EAAE,YAAY,CAAC;QACtD,6BAA6B,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,CAAC,CACtE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/type-utils/package.json b/graphql/node_modules/@typescript-eslint/type-utils/package.json deleted file mode 100644 index ea0b3c61..00000000 --- a/graphql/node_modules/@typescript-eslint/type-utils/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "name": "@typescript-eslint/type-utils", - "version": "8.1.0", - "description": "Type utilities for working with TypeScript + ESLint together", - "files": [ - "dist", - "_ts4.3", - "package.json", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/type-utils" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io", - "license": "MIT", - "keywords": [ - "eslint", - "typescript", - "estree" - ], - "scripts": { - "build": "tsc -b tsconfig.build.json", - "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "lint": "npx nx lint", - "test": "jest --coverage", - "typecheck": "tsc --noEmit" - }, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.1.0", - "@typescript-eslint/utils": "8.1.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "devDependencies": { - "@jest/types": "29.6.3", - "@typescript-eslint/parser": "8.1.0", - "ajv": "^6.12.6", - "downlevel-dts": "*", - "jest": "29.7.0", - "prettier": "^3.2.5", - "rimraf": "*", - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "typesVersions": { - "<4.7": { - "*": [ - "_ts4.3/*" - ] - } - } -} diff --git a/graphql/node_modules/@typescript-eslint/types/LICENSE b/graphql/node_modules/@typescript-eslint/types/LICENSE deleted file mode 100644 index a1164108..00000000 --- a/graphql/node_modules/@typescript-eslint/types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/types/README.md b/graphql/node_modules/@typescript-eslint/types/README.md deleted file mode 100644 index 7a3008bb..00000000 --- a/graphql/node_modules/@typescript-eslint/types/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `@typescript-eslint/types` - -> Types for the TypeScript-ESTree AST spec - -This package exists to help us reduce cycles and provide lighter-weight packages at runtime. - -## ✋ Internal Package - -This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint). -You likely don't want to use it directly. - -👉 See **https://typescript-eslint.io** for docs on typescript-eslint. diff --git a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts b/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts deleted file mode 100644 index 00d42eeb..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +++ /dev/null @@ -1,2134 +0,0 @@ -/********************************************** - * DO NOT MODIFY THIS FILE MANUALLY * - * * - * THIS FILE HAS BEEN COPIED FROM ast-spec. * - * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * - * * - * MAKE CHANGES TO ast-spec AND THEN RUN * - * yarn build * - **********************************************/ -import type { SyntaxKind } from 'typescript'; -export declare type Accessibility = 'private' | 'protected' | 'public'; -export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; -export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface ArrayExpression extends BaseNode { - type: AST_NODE_TYPES.ArrayExpression; - /** - * an element will be `null` in the case of a sparse array: `[1, ,3]` - */ - elements: (Expression | SpreadElement | null)[]; -} -export declare interface ArrayPattern extends BaseNode { - type: AST_NODE_TYPES.ArrayPattern; - elements: (DestructuringPattern | null)[]; - typeAnnotation: TSTypeAnnotation | undefined; - optional: boolean; - decorators: Decorator[]; -} -export declare interface ArrowFunctionExpression extends BaseNode { - type: AST_NODE_TYPES.ArrowFunctionExpression; - generator: boolean; - id: null; - params: Parameter[]; - body: BlockStatement | Expression; - async: boolean; - expression: boolean; - returnType: TSTypeAnnotation | undefined; - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface AssignmentExpression extends BaseNode { - type: AST_NODE_TYPES.AssignmentExpression; - operator: ValueOf; - left: Expression; - right: Expression; -} -export declare interface AssignmentOperatorToText { - [SyntaxKind.EqualsToken]: '='; - [SyntaxKind.PlusEqualsToken]: '+='; - [SyntaxKind.MinusEqualsToken]: '-='; - [SyntaxKind.AsteriskEqualsToken]: '*='; - [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; - [SyntaxKind.SlashEqualsToken]: '/='; - [SyntaxKind.PercentEqualsToken]: '%='; - [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; - [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; - [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; - [SyntaxKind.AmpersandEqualsToken]: '&='; - [SyntaxKind.BarEqualsToken]: '|='; - [SyntaxKind.BarBarEqualsToken]: '||='; - [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; - [SyntaxKind.QuestionQuestionEqualsToken]: '??='; - [SyntaxKind.CaretEqualsToken]: '^='; -} -export declare interface AssignmentPattern extends BaseNode { - type: AST_NODE_TYPES.AssignmentPattern; - left: BindingName; - right: Expression; - typeAnnotation: TSTypeAnnotation | undefined; - optional: boolean; - decorators: Decorator[]; -} -export declare enum AST_NODE_TYPES { - AccessorProperty = "AccessorProperty", - ArrayExpression = "ArrayExpression", - ArrayPattern = "ArrayPattern", - ArrowFunctionExpression = "ArrowFunctionExpression", - AssignmentExpression = "AssignmentExpression", - AssignmentPattern = "AssignmentPattern", - AwaitExpression = "AwaitExpression", - BinaryExpression = "BinaryExpression", - BlockStatement = "BlockStatement", - BreakStatement = "BreakStatement", - CallExpression = "CallExpression", - CatchClause = "CatchClause", - ChainExpression = "ChainExpression", - ClassBody = "ClassBody", - ClassDeclaration = "ClassDeclaration", - ClassExpression = "ClassExpression", - ConditionalExpression = "ConditionalExpression", - ContinueStatement = "ContinueStatement", - DebuggerStatement = "DebuggerStatement", - Decorator = "Decorator", - DoWhileStatement = "DoWhileStatement", - EmptyStatement = "EmptyStatement", - ExportAllDeclaration = "ExportAllDeclaration", - ExportDefaultDeclaration = "ExportDefaultDeclaration", - ExportNamedDeclaration = "ExportNamedDeclaration", - ExportSpecifier = "ExportSpecifier", - ExpressionStatement = "ExpressionStatement", - ForInStatement = "ForInStatement", - ForOfStatement = "ForOfStatement", - ForStatement = "ForStatement", - FunctionDeclaration = "FunctionDeclaration", - FunctionExpression = "FunctionExpression", - Identifier = "Identifier", - IfStatement = "IfStatement", - ImportAttribute = "ImportAttribute", - ImportDeclaration = "ImportDeclaration", - ImportDefaultSpecifier = "ImportDefaultSpecifier", - ImportExpression = "ImportExpression", - ImportNamespaceSpecifier = "ImportNamespaceSpecifier", - ImportSpecifier = "ImportSpecifier", - JSXAttribute = "JSXAttribute", - JSXClosingElement = "JSXClosingElement", - JSXClosingFragment = "JSXClosingFragment", - JSXElement = "JSXElement", - JSXEmptyExpression = "JSXEmptyExpression", - JSXExpressionContainer = "JSXExpressionContainer", - JSXFragment = "JSXFragment", - JSXIdentifier = "JSXIdentifier", - JSXMemberExpression = "JSXMemberExpression", - JSXNamespacedName = "JSXNamespacedName", - JSXOpeningElement = "JSXOpeningElement", - JSXOpeningFragment = "JSXOpeningFragment", - JSXSpreadAttribute = "JSXSpreadAttribute", - JSXSpreadChild = "JSXSpreadChild", - JSXText = "JSXText", - LabeledStatement = "LabeledStatement", - Literal = "Literal", - LogicalExpression = "LogicalExpression", - MemberExpression = "MemberExpression", - MetaProperty = "MetaProperty", - MethodDefinition = "MethodDefinition", - NewExpression = "NewExpression", - ObjectExpression = "ObjectExpression", - ObjectPattern = "ObjectPattern", - PrivateIdentifier = "PrivateIdentifier", - Program = "Program", - Property = "Property", - PropertyDefinition = "PropertyDefinition", - RestElement = "RestElement", - ReturnStatement = "ReturnStatement", - SequenceExpression = "SequenceExpression", - SpreadElement = "SpreadElement", - StaticBlock = "StaticBlock", - Super = "Super", - SwitchCase = "SwitchCase", - SwitchStatement = "SwitchStatement", - TaggedTemplateExpression = "TaggedTemplateExpression", - TemplateElement = "TemplateElement", - TemplateLiteral = "TemplateLiteral", - ThisExpression = "ThisExpression", - ThrowStatement = "ThrowStatement", - TryStatement = "TryStatement", - UnaryExpression = "UnaryExpression", - UpdateExpression = "UpdateExpression", - VariableDeclaration = "VariableDeclaration", - VariableDeclarator = "VariableDeclarator", - WhileStatement = "WhileStatement", - WithStatement = "WithStatement", - YieldExpression = "YieldExpression", - TSAbstractAccessorProperty = "TSAbstractAccessorProperty", - TSAbstractKeyword = "TSAbstractKeyword", - TSAbstractMethodDefinition = "TSAbstractMethodDefinition", - TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", - TSAnyKeyword = "TSAnyKeyword", - TSArrayType = "TSArrayType", - TSAsExpression = "TSAsExpression", - TSAsyncKeyword = "TSAsyncKeyword", - TSBigIntKeyword = "TSBigIntKeyword", - TSBooleanKeyword = "TSBooleanKeyword", - TSCallSignatureDeclaration = "TSCallSignatureDeclaration", - TSClassImplements = "TSClassImplements", - TSConditionalType = "TSConditionalType", - TSConstructorType = "TSConstructorType", - TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", - TSDeclareFunction = "TSDeclareFunction", - TSDeclareKeyword = "TSDeclareKeyword", - TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", - TSEnumDeclaration = "TSEnumDeclaration", - TSEnumBody = "TSEnumBody", - TSEnumMember = "TSEnumMember", - TSExportAssignment = "TSExportAssignment", - TSExportKeyword = "TSExportKeyword", - TSExternalModuleReference = "TSExternalModuleReference", - TSFunctionType = "TSFunctionType", - TSInstantiationExpression = "TSInstantiationExpression", - TSImportEqualsDeclaration = "TSImportEqualsDeclaration", - TSImportType = "TSImportType", - TSIndexedAccessType = "TSIndexedAccessType", - TSIndexSignature = "TSIndexSignature", - TSInferType = "TSInferType", - TSInterfaceBody = "TSInterfaceBody", - TSInterfaceDeclaration = "TSInterfaceDeclaration", - TSInterfaceHeritage = "TSInterfaceHeritage", - TSIntersectionType = "TSIntersectionType", - TSIntrinsicKeyword = "TSIntrinsicKeyword", - TSLiteralType = "TSLiteralType", - TSMappedType = "TSMappedType", - TSMethodSignature = "TSMethodSignature", - TSModuleBlock = "TSModuleBlock", - TSModuleDeclaration = "TSModuleDeclaration", - TSNamedTupleMember = "TSNamedTupleMember", - TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", - TSNeverKeyword = "TSNeverKeyword", - TSNonNullExpression = "TSNonNullExpression", - TSNullKeyword = "TSNullKeyword", - TSNumberKeyword = "TSNumberKeyword", - TSObjectKeyword = "TSObjectKeyword", - TSOptionalType = "TSOptionalType", - TSParameterProperty = "TSParameterProperty", - TSPrivateKeyword = "TSPrivateKeyword", - TSPropertySignature = "TSPropertySignature", - TSProtectedKeyword = "TSProtectedKeyword", - TSPublicKeyword = "TSPublicKeyword", - TSQualifiedName = "TSQualifiedName", - TSReadonlyKeyword = "TSReadonlyKeyword", - TSRestType = "TSRestType", - TSSatisfiesExpression = "TSSatisfiesExpression", - TSStaticKeyword = "TSStaticKeyword", - TSStringKeyword = "TSStringKeyword", - TSSymbolKeyword = "TSSymbolKeyword", - TSTemplateLiteralType = "TSTemplateLiteralType", - TSThisType = "TSThisType", - TSTupleType = "TSTupleType", - TSTypeAliasDeclaration = "TSTypeAliasDeclaration", - TSTypeAnnotation = "TSTypeAnnotation", - TSTypeAssertion = "TSTypeAssertion", - TSTypeLiteral = "TSTypeLiteral", - TSTypeOperator = "TSTypeOperator", - TSTypeParameter = "TSTypeParameter", - TSTypeParameterDeclaration = "TSTypeParameterDeclaration", - TSTypeParameterInstantiation = "TSTypeParameterInstantiation", - TSTypePredicate = "TSTypePredicate", - TSTypeQuery = "TSTypeQuery", - TSTypeReference = "TSTypeReference", - TSUndefinedKeyword = "TSUndefinedKeyword", - TSUnionType = "TSUnionType", - TSUnknownKeyword = "TSUnknownKeyword", - TSVoidKeyword = "TSVoidKeyword" -} -export declare enum AST_TOKEN_TYPES { - Boolean = "Boolean", - Identifier = "Identifier", - JSXIdentifier = "JSXIdentifier", - JSXText = "JSXText", - Keyword = "Keyword", - Null = "Null", - Numeric = "Numeric", - Punctuator = "Punctuator", - RegularExpression = "RegularExpression", - String = "String", - Template = "Template", - Block = "Block", - Line = "Line" -} -export declare interface AwaitExpression extends BaseNode { - type: AST_NODE_TYPES.AwaitExpression; - argument: Expression; -} -export declare interface BaseNode extends NodeOrTokenData { - type: AST_NODE_TYPES; -} -declare interface BaseToken extends NodeOrTokenData { - type: AST_TOKEN_TYPES; - value: string; -} -export declare interface BigIntLiteral extends LiteralBase { - value: bigint | null; - bigint: string; -} -export declare interface BinaryExpression extends BaseNode { - type: AST_NODE_TYPES.BinaryExpression; - operator: ValueOf; - left: Expression | PrivateIdentifier; - right: Expression; -} -export declare interface BinaryOperatorToText { - [SyntaxKind.InstanceOfKeyword]: 'instanceof'; - [SyntaxKind.InKeyword]: 'in'; - [SyntaxKind.AsteriskAsteriskToken]: '**'; - [SyntaxKind.AsteriskToken]: '*'; - [SyntaxKind.SlashToken]: '/'; - [SyntaxKind.PercentToken]: '%'; - [SyntaxKind.PlusToken]: '+'; - [SyntaxKind.MinusToken]: '-'; - [SyntaxKind.AmpersandToken]: '&'; - [SyntaxKind.BarToken]: '|'; - [SyntaxKind.CaretToken]: '^'; - [SyntaxKind.LessThanLessThanToken]: '<<'; - [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; - [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; - [SyntaxKind.AmpersandAmpersandToken]: '&&'; - [SyntaxKind.BarBarToken]: '||'; - [SyntaxKind.LessThanToken]: '<'; - [SyntaxKind.LessThanEqualsToken]: '<='; - [SyntaxKind.GreaterThanToken]: '>'; - [SyntaxKind.GreaterThanEqualsToken]: '>='; - [SyntaxKind.EqualsEqualsToken]: '=='; - [SyntaxKind.EqualsEqualsEqualsToken]: '==='; - [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; - [SyntaxKind.ExclamationEqualsToken]: '!='; -} -export declare type BindingName = BindingPattern | Identifier; -export declare type BindingPattern = ArrayPattern | ObjectPattern; -export declare interface BlockComment extends BaseToken { - type: AST_TOKEN_TYPES.Block; -} -export declare interface BlockStatement extends BaseNode { - type: AST_NODE_TYPES.BlockStatement; - body: Statement[]; -} -export declare interface BooleanLiteral extends LiteralBase { - value: boolean; - raw: 'false' | 'true'; -} -export declare interface BooleanToken extends BaseToken { - type: AST_TOKEN_TYPES.Boolean; -} -export declare interface BreakStatement extends BaseNode { - type: AST_NODE_TYPES.BreakStatement; - label: Identifier | null; -} -export declare interface CallExpression extends BaseNode { - type: AST_NODE_TYPES.CallExpression; - callee: Expression; - arguments: CallExpressionArgument[]; - typeArguments: TSTypeParameterInstantiation | undefined; - optional: boolean; -} -export declare type CallExpressionArgument = Expression | SpreadElement; -export declare interface CatchClause extends BaseNode { - type: AST_NODE_TYPES.CatchClause; - param: BindingName | null; - body: BlockStatement; -} -export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; -export declare interface ChainExpression extends BaseNode { - type: AST_NODE_TYPES.ChainExpression; - expression: ChainElement; -} -declare interface ClassBase extends BaseNode { - /** - * Whether the class is an abstract class. - * @example - * ```ts - * abstract class Foo {} - * ``` - */ - abstract: boolean; - /** - * The class body. - */ - body: ClassBody; - /** - * Whether the class has been `declare`d: - * @example - * ```ts - * declare class Foo {} - * ``` - */ - declare: boolean; - /** - * The decorators declared for the class. - * @example - * ```ts - * @deco - * class Foo {} - * ``` - */ - decorators: Decorator[]; - /** - * The class's name. - * - For a `ClassExpression` this may be `null` if the name is omitted. - * - For a `ClassDeclaration` this may be `null` if and only if the parent is - * an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The implemented interfaces for the class. - */ - implements: TSClassImplements[]; - /** - * The super class this class extends. - */ - superClass: LeftHandSideExpression | null; - /** - * The generic type parameters passed to the superClass. - */ - superTypeArguments: TSTypeParameterInstantiation | undefined; - /** - * The generic type parameters declared for the class. - */ - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface ClassBody extends BaseNode { - type: AST_NODE_TYPES.ClassBody; - body: ClassElement[]; -} -export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; -declare interface ClassDeclarationBase extends ClassBase { - type: AST_NODE_TYPES.ClassDeclaration; -} -/** - * A normal class declaration: - * ``` - * class A {} - * ``` - */ -export declare interface ClassDeclarationWithName extends ClassDeclarationBase { - id: Identifier; -} -/** - * Default-exported class declarations have optional names: - * ``` - * export default class {} - * ``` - */ -export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { - id: Identifier | null; -} -export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; -export declare interface ClassExpression extends ClassBase { - type: AST_NODE_TYPES.ClassExpression; - abstract: false; - declare: false; -} -declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; -export declare type Comment = BlockComment | LineComment; -export declare interface ConditionalExpression extends BaseNode { - type: AST_NODE_TYPES.ConditionalExpression; - test: Expression; - consequent: Expression; - alternate: Expression; -} -export declare interface ConstDeclaration extends LetOrConstOrVarDeclarationBase { - kind: 'const'; - /** - * In a `declare const` declaration, the declarators may have initializers, but - * not definite assignment assertions. Each declarator cannot have both an - * initializer and a type annotation. - * - * Even if the declaration has no `declare`, it may still be ambient and have - * no initializer. - */ - declarations: VariableDeclaratorMaybeInit[]; -} -export declare interface ContinueStatement extends BaseNode { - type: AST_NODE_TYPES.ContinueStatement; - label: Identifier | null; -} -export declare interface DebuggerStatement extends BaseNode { - type: AST_NODE_TYPES.DebuggerStatement; -} -/** - * @deprecated - * Note that this is neither up to date nor fully correct. - */ -export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; -export declare interface Decorator extends BaseNode { - type: AST_NODE_TYPES.Decorator; - expression: LeftHandSideExpression; -} -export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; -export declare interface DoWhileStatement extends BaseNode { - type: AST_NODE_TYPES.DoWhileStatement; - test: Expression; - body: Statement; -} -export declare interface EmptyStatement extends BaseNode { - type: AST_NODE_TYPES.EmptyStatement; -} -export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; -export declare interface ExportAllDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportAllDeclaration; - /** - * The assertions declared for the export. - * @example - * ```ts - * export * from 'mod' assert \{ type: 'json' \}; - * ``` - * @deprecated Replaced with {@link `attributes`}. - */ - assertions: ImportAttribute[]; - /** - * The attributes declared for the export. - * @example - * ```ts - * export * from 'mod' with \{ type: 'json' \}; - * ``` - */ - attributes: ImportAttribute[]; - /** - * The name for the exported items (`as X`). `null` if no name is assigned. - */ - exported: Identifier | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral; -} -declare type ExportAndImportKind = 'type' | 'value'; -export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; -export declare interface ExportDefaultDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportDefaultDeclaration; - /** - * The declaration being exported. - */ - declaration: DefaultExportDeclarations; - /** - * The kind of the export. Always `value` for default exports. - */ - exportKind: 'value'; -} -declare type ExportKind = ExportAndImportKind; -export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; -declare interface ExportNamedDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.ExportNamedDeclaration; - /** - * The assertions declared for the export. - * @example - * ```ts - * export { foo } from 'mod' assert \{ type: 'json' \}; - * ``` - * This will be an empty array if `source` is `null` - * @deprecated Replaced with {@link `attributes`}. - */ - assertions: ImportAttribute[]; - /** - * The attributes declared for the export. - * @example - * ```ts - * export { foo } from 'mod' with \{ type: 'json' \}; - * ``` - * This will be an empty array if `source` is `null` - */ - attributes: ImportAttribute[]; - /** - * The exported declaration. - * @example - * ```ts - * export const x = 1; - * ``` - * This will be `null` if `source` is not `null`, or if there are `specifiers` - */ - declaration: NamedExportDeclarations | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral | null; - /** - * The specifiers being exported. - * @example - * ```ts - * export { a, b }; - * ``` - * This will be an empty array if `declaration` is not `null` - */ - specifiers: ExportSpecifier[]; -} -/** - * Exporting names from the current module. - * ``` - * export {}; - * export { a, b }; - * ``` - */ -export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { - /** - * This will always be an empty array. - * @deprecated Replaced with {@link `attributes`}. - */ - assertions: ImportAttribute[]; - /** - * This will always be an empty array. - */ - attributes: ImportAttribute[]; - declaration: null; - source: null; -} -/** - * Exporting a single named declaration. - * ``` - * export const x = 1; - * ``` - */ -export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { - /** - * This will always be an empty array. - * @deprecated Replaced with {@link `attributes`}. - */ - assertions: ImportAttribute[]; - /** - * This will always be an empty array. - */ - attributes: ImportAttribute[]; - declaration: NamedExportDeclarations; - source: null; - /** - * This will always be an empty array. - */ - specifiers: ExportSpecifier[]; -} -/** - * Export names from another module. - * ``` - * export { a, b } from 'mod'; - * ``` - */ -export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { - declaration: null; - source: StringLiteral; -} -export declare interface ExportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ExportSpecifier; - local: Identifier; - exported: Identifier; - exportKind: ExportKind; -} -export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; -export declare interface ExpressionStatement extends BaseNode { - type: AST_NODE_TYPES.ExpressionStatement; - expression: Expression; - directive: string | undefined; -} -export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration; -export declare interface ForInStatement extends BaseNode { - type: AST_NODE_TYPES.ForInStatement; - left: ForInitialiser; - right: Expression; - body: Statement; -} -declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration; -export declare interface ForOfStatement extends BaseNode { - type: AST_NODE_TYPES.ForOfStatement; - left: ForOfInitialiser; - right: Expression; - body: Statement; - await: boolean; -} -export declare interface ForStatement extends BaseNode { - type: AST_NODE_TYPES.ForStatement; - init: Expression | ForInitialiser | null; - test: Expression | null; - update: Expression | null; - body: Statement; -} -declare interface FunctionBase extends BaseNode { - /** - * Whether the function is async: - * ``` - * async function foo() {} - * const x = async function () {} - * const x = async () => {} - * ``` - */ - async: boolean; - /** - * The body of the function. - * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. - * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`. - * - For a `TSDeclareFunction` this is always `undefined`. - * - For a `TSEmptyBodyFunctionExpression` this is always `null`. - */ - body: BlockStatement | Expression | null | undefined; - /** - * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: - * ``` - * declare function foo() {} - * ``` - */ - declare: boolean; - /** - * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body - * is an expression: - * ``` - * (() => 1) - * ``` - */ - expression: boolean; - /** - * Whether the function is a generator function: - * ``` - * function *foo() {} - * const x = function *() {} - * ``` - * This is always `false` for arrow functions as they cannot be generators. - */ - generator: boolean; - /** - * The function's name. - * - For an `ArrowFunctionExpression` this is always `null`. - * - For a `FunctionExpression` this may be `null` if the name is omitted. - * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if - * and only if the parent is an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The list of parameters declared for the function. - */ - params: Parameter[]; - /** - * The return type annotation for the function. - */ - returnType: TSTypeAnnotation | undefined; - /** - * The generic type parameter declaration for the function. - */ - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; -declare interface FunctionDeclarationBase extends FunctionBase { - type: AST_NODE_TYPES.FunctionDeclaration; - body: BlockStatement; - declare: false; - expression: false; -} -/** - * A normal function declaration: - * ``` - * function f() {} - * ``` - */ -export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { - id: Identifier; -} -/** - * Default-exported function declarations have optional names: - * ``` - * export default function () {} - * ``` - */ -export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { - id: Identifier | null; -} -export declare interface FunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.FunctionExpression; - body: BlockStatement; - expression: false; -} -export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; -export declare interface Identifier extends BaseNode { - type: AST_NODE_TYPES.Identifier; - name: string; - typeAnnotation: TSTypeAnnotation | undefined; - optional: boolean; - decorators: Decorator[]; -} -export declare interface IdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.Identifier; -} -export declare interface IfStatement extends BaseNode { - type: AST_NODE_TYPES.IfStatement; - test: Expression; - consequent: Statement; - alternate: Statement | null; -} -export declare interface ImportAttribute extends BaseNode { - type: AST_NODE_TYPES.ImportAttribute; - key: Identifier | Literal; - value: Literal; -} -export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; -export declare interface ImportDeclaration extends BaseNode { - type: AST_NODE_TYPES.ImportDeclaration; - /** - * The assertions declared for the export. - * @example - * ```ts - * import * from 'mod' assert \{ type: 'json' \}; - * ``` - * @deprecated Replaced with {@link `attributes`}. - */ - assertions: ImportAttribute[]; - /** - * The attributes declared for the export. - * @example - * ```ts - * import * from 'mod' with \{ type: 'json' \}; - * ``` - */ - attributes: ImportAttribute[]; - /** - * The kind of the import. - */ - importKind: ImportKind; - /** - * The source module being imported from. - */ - source: StringLiteral; - /** - * The specifiers being imported. - * If this is an empty array then either there are no specifiers: - * ``` - * import {} from 'mod'; - * ``` - * Or it is a side-effect import: - * ``` - * import 'mod'; - * ``` - */ - specifiers: ImportClause[]; -} -export declare interface ImportDefaultSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportDefaultSpecifier; - local: Identifier; -} -export declare interface ImportExpression extends BaseNode { - type: AST_NODE_TYPES.ImportExpression; - source: Expression; - attributes: Expression | null; -} -declare type ImportKind = ExportAndImportKind; -export declare interface ImportNamespaceSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportNamespaceSpecifier; - local: Identifier; -} -export declare interface ImportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportSpecifier; - local: Identifier; - imported: Identifier; - importKind: ImportKind; -} -export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; -export declare interface JSXAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXAttribute; - name: JSXIdentifier | JSXNamespacedName; - value: JSXElement | JSXExpression | Literal | null; -} -export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; -export declare interface JSXClosingElement extends BaseNode { - type: AST_NODE_TYPES.JSXClosingElement; - name: JSXTagNameExpression; -} -export declare interface JSXClosingFragment extends BaseNode { - type: AST_NODE_TYPES.JSXClosingFragment; -} -export declare interface JSXElement extends BaseNode { - type: AST_NODE_TYPES.JSXElement; - openingElement: JSXOpeningElement; - closingElement: JSXClosingElement | null; - children: JSXChild[]; -} -export declare interface JSXEmptyExpression extends BaseNode { - type: AST_NODE_TYPES.JSXEmptyExpression; -} -export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; -export declare interface JSXExpressionContainer extends BaseNode { - type: AST_NODE_TYPES.JSXExpressionContainer; - expression: Expression | JSXEmptyExpression; -} -export declare interface JSXFragment extends BaseNode { - type: AST_NODE_TYPES.JSXFragment; - openingFragment: JSXOpeningFragment; - closingFragment: JSXClosingFragment; - children: JSXChild[]; -} -export declare interface JSXIdentifier extends BaseNode { - type: AST_NODE_TYPES.JSXIdentifier; - name: string; -} -export declare interface JSXIdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXIdentifier; -} -export declare interface JSXMemberExpression extends BaseNode { - type: AST_NODE_TYPES.JSXMemberExpression; - object: JSXTagNameExpression; - property: JSXIdentifier; -} -export declare interface JSXNamespacedName extends BaseNode { - type: AST_NODE_TYPES.JSXNamespacedName; - namespace: JSXIdentifier; - name: JSXIdentifier; -} -export declare interface JSXOpeningElement extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningElement; - typeArguments: TSTypeParameterInstantiation | undefined; - selfClosing: boolean; - name: JSXTagNameExpression; - attributes: (JSXAttribute | JSXSpreadAttribute)[]; -} -export declare interface JSXOpeningFragment extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningFragment; -} -export declare interface JSXSpreadAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadAttribute; - argument: Expression; -} -export declare interface JSXSpreadChild extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadChild; - expression: Expression | JSXEmptyExpression; -} -export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; -export declare interface JSXText extends BaseNode { - type: AST_NODE_TYPES.JSXText; - value: string; - raw: string; -} -export declare interface JSXTextToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXText; -} -export declare interface KeywordToken extends BaseToken { - type: AST_TOKEN_TYPES.Keyword; -} -export declare interface LabeledStatement extends BaseNode { - type: AST_NODE_TYPES.LabeledStatement; - label: Identifier; - body: Statement; -} -export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; -export declare type LetOrConstOrVarDeclaration = ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration; -declare interface LetOrConstOrVarDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.VariableDeclaration; - /** - * The variables declared by this declaration. - * Always non-empty. - * @example - * ```ts - * let x; - * let y, z; - * ``` - */ - declarations: LetOrConstOrVarDeclarator[]; - /** - * Whether the declaration is `declare`d - * @example - * ```ts - * declare const x = 1; - * ``` - */ - declare: boolean; - /** - * The keyword used to declare the variable(s) - * @example - * ```ts - * const x = 1; - * let y = 2; - * var z = 3; - * ``` - */ - kind: 'const' | 'let' | 'var'; -} -export declare type LetOrConstOrVarDeclarator = VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit; -export declare interface LetOrVarDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { - kind: 'let' | 'var'; - declare: true; - /** - * In a `declare let` declaration, the declarators must not have definite assignment - * assertions or initializers. - * - * @example - * ```ts - * using x = 1; - * using y =1, z = 2; - * ``` - */ - declarations: VariableDeclaratorNoInit[]; -} -export declare interface LetOrVarNonDeclaredDeclaration extends LetOrConstOrVarDeclarationBase { - kind: 'let' | 'var'; - declare: false; - /** - * In a `let`/`var` declaration, the declarators may have definite assignment - * assertions or initializers, but not both. - */ - declarations: (VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit)[]; -} -export declare interface LineComment extends BaseToken { - type: AST_TOKEN_TYPES.Line; -} -export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; -declare interface LiteralBase extends BaseNode { - type: AST_NODE_TYPES.Literal; - raw: string; - value: RegExp | bigint | boolean | number | string | null; -} -export declare type LiteralExpression = Literal | TemplateLiteral; -export declare interface LogicalExpression extends BaseNode { - type: AST_NODE_TYPES.LogicalExpression; - operator: '??' | '&&' | '||'; - left: Expression; - right: Expression; -} -export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; -declare interface MemberExpressionBase extends BaseNode { - object: Expression; - property: Expression | Identifier | PrivateIdentifier; - computed: boolean; - optional: boolean; -} -export declare interface MemberExpressionComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Expression; - computed: true; -} -export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Identifier | PrivateIdentifier; - computed: false; -} -export declare interface MetaProperty extends BaseNode { - type: AST_NODE_TYPES.MetaProperty; - meta: Identifier; - property: Identifier; -} -export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; -/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ -declare interface MethodDefinitionBase extends BaseNode { - key: PropertyName; - value: FunctionExpression | TSEmptyBodyFunctionExpression; - computed: boolean; - static: boolean; - kind: 'constructor' | 'get' | 'method' | 'set'; - optional: boolean; - decorators: Decorator[]; - accessibility: Accessibility | undefined; - override: boolean; -} -export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare interface NewExpression extends BaseNode { - type: AST_NODE_TYPES.NewExpression; - callee: Expression; - arguments: CallExpressionArgument[]; - typeArguments: TSTypeParameterInstantiation | undefined; -} -export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; -export declare interface NodeOrTokenData { - /** - * The source location information of the node. - * - * The loc property is defined as nullable by ESTree, but ESLint requires this property. - */ - loc: SourceLocation; - range: Range; - type: string; -} -export declare interface NullLiteral extends LiteralBase { - value: null; - raw: 'null'; -} -export declare interface NullToken extends BaseToken { - type: AST_TOKEN_TYPES.Null; -} -export declare interface NumberLiteral extends LiteralBase { - value: number; -} -export declare interface NumericToken extends BaseToken { - type: AST_TOKEN_TYPES.Numeric; -} -export declare interface ObjectExpression extends BaseNode { - type: AST_NODE_TYPES.ObjectExpression; - properties: ObjectLiteralElement[]; -} -export declare type ObjectLiteralElement = Property | SpreadElement; -export declare type ObjectLiteralElementLike = ObjectLiteralElement; -export declare interface ObjectPattern extends BaseNode { - type: AST_NODE_TYPES.ObjectPattern; - properties: (Property | RestElement)[]; - typeAnnotation: TSTypeAnnotation | undefined; - optional: boolean; - decorators: Decorator[]; -} -export declare type OptionalRangeAndLoc = Pick> & { - range?: Range; - loc?: SourceLocation; -}; -export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; -export declare interface Position { - /** - * Line number (1-indexed) - */ - line: number; - /** - * Column number on the line (0-indexed) - */ - column: number; -} -export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; -export declare interface PrivateIdentifier extends BaseNode { - type: AST_NODE_TYPES.PrivateIdentifier; - name: string; -} -export declare interface Program extends NodeOrTokenData { - type: AST_NODE_TYPES.Program; - body: ProgramStatement[]; - sourceType: 'module' | 'script'; - comments: Comment[] | undefined; - tokens: Token[] | undefined; -} -export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; -export declare type Property = PropertyComputedName | PropertyNonComputedName; -declare interface PropertyBase extends BaseNode { - type: AST_NODE_TYPES.Property; - key: PropertyName; - value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; - computed: boolean; - method: boolean; - shorthand: boolean; - optional: boolean; - kind: 'get' | 'init' | 'set'; -} -export declare interface PropertyComputedName extends PropertyBase { - key: PropertyNameComputed; - computed: true; -} -export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; -declare interface PropertyDefinitionBase extends BaseNode { - key: PropertyName; - value: Expression | null; - computed: boolean; - static: boolean; - declare: boolean; - readonly: boolean; - decorators: Decorator[]; - accessibility: Accessibility | undefined; - optional: boolean; - definite: boolean; - typeAnnotation: TSTypeAnnotation | undefined; - override: boolean; -} -export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; -export declare type PropertyNameComputed = Expression; -export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; -export declare interface PropertyNonComputedName extends PropertyBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface PunctuatorToken extends BaseToken { - type: AST_TOKEN_TYPES.Punctuator; - value: ValueOf; -} -export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { - [SyntaxKind.OpenBraceToken]: '{'; - [SyntaxKind.CloseBraceToken]: '}'; - [SyntaxKind.OpenParenToken]: '('; - [SyntaxKind.CloseParenToken]: ')'; - [SyntaxKind.OpenBracketToken]: '['; - [SyntaxKind.CloseBracketToken]: ']'; - [SyntaxKind.DotToken]: '.'; - [SyntaxKind.DotDotDotToken]: '...'; - [SyntaxKind.SemicolonToken]: ';'; - [SyntaxKind.CommaToken]: ','; - [SyntaxKind.QuestionDotToken]: '?.'; - [SyntaxKind.LessThanToken]: '<'; - [SyntaxKind.LessThanSlashToken]: ''; - [SyntaxKind.LessThanEqualsToken]: '<='; - [SyntaxKind.GreaterThanEqualsToken]: '>='; - [SyntaxKind.EqualsEqualsToken]: '=='; - [SyntaxKind.ExclamationEqualsToken]: '!='; - [SyntaxKind.EqualsEqualsEqualsToken]: '==='; - [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; - [SyntaxKind.EqualsGreaterThanToken]: '=>'; - [SyntaxKind.PlusToken]: '+'; - [SyntaxKind.MinusToken]: '-'; - [SyntaxKind.AsteriskToken]: '*'; - [SyntaxKind.AsteriskAsteriskToken]: '**'; - [SyntaxKind.SlashToken]: '/'; - [SyntaxKind.PercentToken]: '%'; - [SyntaxKind.PlusPlusToken]: '++'; - [SyntaxKind.MinusMinusToken]: '--'; - [SyntaxKind.LessThanLessThanToken]: '<<'; - [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; - [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; - [SyntaxKind.AmpersandToken]: '&'; - [SyntaxKind.BarToken]: '|'; - [SyntaxKind.CaretToken]: '^'; - [SyntaxKind.ExclamationToken]: '!'; - [SyntaxKind.TildeToken]: '~'; - [SyntaxKind.AmpersandAmpersandToken]: '&&'; - [SyntaxKind.BarBarToken]: '||'; - [SyntaxKind.QuestionToken]: '?'; - [SyntaxKind.ColonToken]: ':'; - [SyntaxKind.AtToken]: '@'; - [SyntaxKind.QuestionQuestionToken]: '??'; - [SyntaxKind.BacktickToken]: '`'; - [SyntaxKind.HashToken]: '#'; -} -/** - * An array of two numbers. - * Both numbers are a 0-based index which is the position in the array of source code characters. - * The first is the start position of the node, the second is the end position of the node. - */ -export declare type Range = [number, number]; -export declare interface RegExpLiteral extends LiteralBase { - value: RegExp | null; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RegularExpressionToken extends BaseToken { - type: AST_TOKEN_TYPES.RegularExpression; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RestElement extends BaseNode { - type: AST_NODE_TYPES.RestElement; - argument: DestructuringPattern; - typeAnnotation: TSTypeAnnotation | undefined; - optional: boolean; - value: AssignmentPattern | undefined; - decorators: Decorator[]; -} -export declare interface ReturnStatement extends BaseNode { - type: AST_NODE_TYPES.ReturnStatement; - argument: Expression | null; -} -export declare interface SequenceExpression extends BaseNode { - type: AST_NODE_TYPES.SequenceExpression; - expressions: Expression[]; -} -export declare interface SourceLocation { - /** - * The position of the first character of the parsed source region - */ - start: Position; - /** - * The position of the first character after the parsed source region - */ - end: Position; -} -export declare interface SpreadElement extends BaseNode { - type: AST_NODE_TYPES.SpreadElement; - argument: Expression; -} -export declare type Statement = BlockStatement | BreakStatement | ClassDeclarationWithName | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclarationWithName | IfStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | TSDeclareFunction | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration | VariableDeclaration | WhileStatement | WithStatement; -export declare interface StaticBlock extends BaseNode { - type: AST_NODE_TYPES.StaticBlock; - body: Statement[]; -} -export declare interface StringLiteral extends LiteralBase { - value: string; -} -export declare interface StringToken extends BaseToken { - type: AST_TOKEN_TYPES.String; -} -export declare interface Super extends BaseNode { - type: AST_NODE_TYPES.Super; -} -export declare interface SwitchCase extends BaseNode { - type: AST_NODE_TYPES.SwitchCase; - test: Expression | null; - consequent: Statement[]; -} -export declare interface SwitchStatement extends BaseNode { - type: AST_NODE_TYPES.SwitchStatement; - discriminant: Expression; - cases: SwitchCase[]; -} -export declare interface TaggedTemplateExpression extends BaseNode { - quasi: TemplateLiteral; - tag: Expression; - type: AST_NODE_TYPES.TaggedTemplateExpression; - typeArguments: TSTypeParameterInstantiation | undefined; -} -export declare interface TemplateElement extends BaseNode { - type: AST_NODE_TYPES.TemplateElement; - value: { - raw: string; - cooked: string; - }; - tail: boolean; -} -export declare interface TemplateLiteral extends BaseNode { - type: AST_NODE_TYPES.TemplateLiteral; - quasis: TemplateElement[]; - expressions: Expression[]; -} -export declare interface TemplateToken extends BaseToken { - type: AST_TOKEN_TYPES.Template; -} -export declare interface ThisExpression extends BaseNode { - type: AST_NODE_TYPES.ThisExpression; -} -export declare interface ThrowStatement extends BaseNode { - type: AST_NODE_TYPES.ThrowStatement; - argument: Statement | TSAsExpression | null; -} -export declare type Token = BooleanToken | Comment | IdentifierToken | JSXIdentifierToken | JSXTextToken | KeywordToken | NullToken | NumericToken | PunctuatorToken | RegularExpressionToken | StringToken | TemplateToken; -export declare interface TryStatement extends BaseNode { - type: AST_NODE_TYPES.TryStatement; - block: BlockStatement; - handler: CatchClause | null; - finalizer: BlockStatement | null; -} -export declare type TSAbstractAccessorProperty = TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName; -export declare interface TSAbstractAccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractAccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAbstractKeyword; -} -export declare type TSAbstractMethodDefinition = TSAbstractMethodDefinitionComputedName | TSAbstractMethodDefinitionNonComputedName; -export declare interface TSAbstractMethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare interface TSAbstractMethodDefinitionNonComputedName extends MethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare type TSAbstractPropertyDefinition = TSAbstractPropertyDefinitionComputedName | TSAbstractPropertyDefinitionNonComputedName; -export declare interface TSAbstractPropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAbstractPropertyDefinitionNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAnyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAnyKeyword; -} -export declare interface TSArrayType extends BaseNode { - type: AST_NODE_TYPES.TSArrayType; - elementType: TypeNode; -} -export declare interface TSAsExpression extends BaseNode { - type: AST_NODE_TYPES.TSAsExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSAsyncKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAsyncKeyword; -} -export declare interface TSBigIntKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBigIntKeyword; -} -export declare interface TSBooleanKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBooleanKeyword; -} -export declare interface TSCallSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSCallSignatureDeclaration; -} -export declare interface TSClassImplements extends TSHeritageBase { - type: AST_NODE_TYPES.TSClassImplements; -} -export declare interface TSConditionalType extends BaseNode { - type: AST_NODE_TYPES.TSConditionalType; - checkType: TypeNode; - extendsType: TypeNode; - trueType: TypeNode; - falseType: TypeNode; -} -export declare interface TSConstructorType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructorType; - abstract: boolean; -} -export declare interface TSConstructSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructSignatureDeclaration; -} -export declare type TSDeclareFunction = TSDeclareFunctionNoDeclare | TSDeclareFunctionWithDeclare; -declare interface TSDeclareFunctionBase extends FunctionBase { - type: AST_NODE_TYPES.TSDeclareFunction; - /** - * TS1183: An implementation cannot be declared in ambient contexts. - */ - body: undefined; - /** - * Whether the declaration has `declare` modifier. - */ - declare: boolean; - expression: false; -} -/** - * Function declaration without the `declare` keyword: - * ``` - * function foo(): void; - * ``` - * This can either be an overload signature or a declaration in an ambient context - * (e.g. `declare module`) - */ -export declare interface TSDeclareFunctionNoDeclare extends TSDeclareFunctionBase { - declare: false; - /** - * - TS1221: Generators are not allowed in an ambient context. - * - TS1222: An overload signature cannot be declared as a generator. - */ - generator: false; -} -/** - * Function declaration with the `declare` keyword: - * ``` - * declare function foo(): void; - * ``` - */ -export declare interface TSDeclareFunctionWithDeclare extends TSDeclareFunctionBase { - /** - * TS1040: 'async' modifier cannot be used in an ambient context. - */ - async: false; - declare: true; - /** - * TS1221: Generators are not allowed in an ambient context. - */ - generator: false; -} -export declare interface TSDeclareKeyword extends BaseNode { - type: AST_NODE_TYPES.TSDeclareKeyword; -} -export declare interface TSEmptyBodyFunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression; - body: null; - id: null; -} -export declare interface TSEnumBody extends BaseNode { - type: AST_NODE_TYPES.TSEnumBody; - members: TSEnumMember[]; -} -export declare interface TSEnumDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSEnumDeclaration; - /** - * The body of the enum. - */ - body: TSEnumBody; - /** - * Whether this is a `const` enum. - * @example - * ```ts - * const enum Foo {} - * ``` - */ - const: boolean; - /** - * Whether this is a `declare`d enum. - * @example - * ```ts - * declare enum Foo {} - * ``` - */ - declare: boolean; - /** - * The enum name. - */ - id: Identifier; - /** - * The enum members. - * @deprecated Use {@link body} instead. - */ - members: TSEnumMember[]; -} -export declare type TSEnumMember = TSEnumMemberComputedName | TSEnumMemberNonComputedName; -declare interface TSEnumMemberBase extends BaseNode { - type: AST_NODE_TYPES.TSEnumMember; - id: PropertyNameComputed | PropertyNameNonComputed; - initializer: Expression | undefined; - computed: boolean; -} -/** - * this should only really happen in semantically invalid code (errors 1164 and 2452) - * - * @example - * ```ts - * // VALID: - * enum Foo { ['a'] } - * - * // INVALID: - * const x = 'a'; - * enum Foo { [x] } - * enum Bar { ['a' + 'b'] } - * ``` - */ -export declare interface TSEnumMemberComputedName extends TSEnumMemberBase { - id: PropertyNameComputed; - computed: true; -} -export declare interface TSEnumMemberNonComputedName extends TSEnumMemberBase { - id: PropertyNameNonComputed; - computed: false; -} -export declare interface TSExportAssignment extends BaseNode { - type: AST_NODE_TYPES.TSExportAssignment; - expression: Expression; -} -export declare interface TSExportKeyword extends BaseNode { - type: AST_NODE_TYPES.TSExportKeyword; -} -export declare interface TSExternalModuleReference extends BaseNode { - type: AST_NODE_TYPES.TSExternalModuleReference; - expression: StringLiteral; -} -declare interface TSFunctionSignatureBase extends BaseNode { - params: Parameter[]; - returnType: TSTypeAnnotation | undefined; - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface TSFunctionType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSFunctionType; -} -declare interface TSHeritageBase extends BaseNode { - expression: Expression; - typeArguments: TSTypeParameterInstantiation | undefined; -} -export declare type TSImportEqualsDeclaration = TSImportEqualsNamespaceDeclaration | TSImportEqualsRequireDeclaration; -declare interface TSImportEqualsDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.TSImportEqualsDeclaration; - /** - * The locally imported name. - */ - id: Identifier; - /** - * The value being aliased. - * @example - * ```ts - * import F1 = A; - * import F2 = A.B.C; - * import F3 = require('mod'); - * ``` - */ - moduleReference: Identifier | TSExternalModuleReference | TSQualifiedName; - /** - * The kind of the import. Always `'value'` unless `moduleReference` is a - * `TSExternalModuleReference`. - */ - importKind: ImportKind; -} -export declare interface TSImportEqualsNamespaceDeclaration extends TSImportEqualsDeclarationBase { - /** - * The value being aliased. - * ``` - * import F1 = A; - * import F2 = A.B.C; - * ``` - */ - moduleReference: Identifier | TSQualifiedName; - /** - * The kind of the import. - */ - importKind: 'value'; -} -export declare interface TSImportEqualsRequireDeclaration extends TSImportEqualsDeclarationBase { - /** - * The value being aliased. - * ``` - * import F3 = require('mod'); - * ``` - */ - moduleReference: TSExternalModuleReference; - /** - * The kind of the import. - */ - importKind: ImportKind; -} -export declare interface TSImportType extends BaseNode { - type: AST_NODE_TYPES.TSImportType; - argument: TypeNode; - qualifier: EntityName | null; - typeArguments: TSTypeParameterInstantiation | null; -} -export declare interface TSIndexedAccessType extends BaseNode { - type: AST_NODE_TYPES.TSIndexedAccessType; - objectType: TypeNode; - indexType: TypeNode; -} -export declare interface TSIndexSignature extends BaseNode { - type: AST_NODE_TYPES.TSIndexSignature; - parameters: Parameter[]; - typeAnnotation: TSTypeAnnotation | undefined; - readonly: boolean; - accessibility: Accessibility | undefined; - static: boolean; -} -export declare interface TSInferType extends BaseNode { - type: AST_NODE_TYPES.TSInferType; - typeParameter: TSTypeParameter; -} -export declare interface TSInstantiationExpression extends BaseNode { - type: AST_NODE_TYPES.TSInstantiationExpression; - expression: Expression; - typeArguments: TSTypeParameterInstantiation; -} -export declare interface TSInterfaceBody extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceBody; - body: TypeElement[]; -} -export declare interface TSInterfaceDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceDeclaration; - /** - * The body of the interface - */ - body: TSInterfaceBody; - /** - * Whether the interface was `declare`d - */ - declare: boolean; - /** - * The types this interface `extends` - */ - extends: TSInterfaceHeritage[]; - /** - * The name of this interface - */ - id: Identifier; - /** - * The generic type parameters declared for the interface. Empty declaration - * (`<>`) is different from no declaration. - */ - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface TSInterfaceHeritage extends TSHeritageBase { - type: AST_NODE_TYPES.TSInterfaceHeritage; -} -export declare interface TSIntersectionType extends BaseNode { - type: AST_NODE_TYPES.TSIntersectionType; - types: TypeNode[]; -} -export declare interface TSIntrinsicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSIntrinsicKeyword; -} -export declare interface TSLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSLiteralType; - literal: LiteralExpression | UnaryExpression | UpdateExpression; -} -export declare interface TSMappedType extends BaseNode { - type: AST_NODE_TYPES.TSMappedType; - /** @deprecated Use {@link `constraint`} and {@link `key`} instead. */ - typeParameter: TSTypeParameter; - constraint: TypeNode; - key: Identifier; - readonly: boolean | '-' | '+' | undefined; - optional: boolean | '-' | '+' | undefined; - typeAnnotation: TypeNode | undefined; - nameType: TypeNode | null; -} -export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; -declare interface TSMethodSignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSMethodSignature; - accessibility: Accessibility | undefined; - computed: boolean; - key: PropertyName; - kind: 'get' | 'method' | 'set'; - optional: boolean; - params: Parameter[]; - readonly: boolean; - returnType: TSTypeAnnotation | undefined; - static: boolean; - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSModuleBlock extends BaseNode { - type: AST_NODE_TYPES.TSModuleBlock; - body: ProgramStatement[]; -} -export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; -declare interface TSModuleDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.TSModuleDeclaration; - /** - * The name of the module - * ``` - * namespace A {} - * namespace A.B.C {} - * module 'a' {} - * ``` - */ - id: Identifier | Literal | TSQualifiedName; - /** - * The body of the module. - * This can only be `undefined` for the code `declare module 'mod';` - */ - body?: TSModuleBlock; - /** - * Whether this is a global declaration - * @example - * ```ts - * declare global {} - * ``` - * - * @deprecated Use {@link kind} instead - */ - global: boolean; - /** - * Whether the module is `declare`d - * @example - * ```ts - * declare namespace F {} - * ``` - */ - declare: boolean; - /** - * The keyword used to define this module declaration - * @example - * ```ts - * namespace Foo {} - * ^^^^^^^^^ - * - * module 'foo' {} - * ^^^^^^ - * - * global {} - * ^^^^^^ - * ``` - */ - kind: TSModuleDeclarationKind; -} -export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { - kind: 'global'; - /** - * This will always be an Identifier with name `global` - */ - id: Identifier; - body: TSModuleBlock; -} -export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; -export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; -declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { - kind: 'module'; -} -/** - * The legacy module declaration, replaced with namespace declarations. - * ``` - * module A {} - * ``` - */ -export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: Identifier; - body: TSModuleBlock; -} -export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; -/** - * A string module declaration that is declared: - * ``` - * declare module 'foo' {} - * declare module 'foo'; - * ``` - */ -export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: true; - body?: TSModuleBlock; -} -/** - * A string module declaration that is not declared: - * ``` - * module 'foo' {} - * ``` - */ -export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: false; - body: TSModuleBlock; -} -export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { - kind: 'namespace'; - id: Identifier | TSQualifiedName; - body: TSModuleBlock; -} -export declare interface TSNamedTupleMember extends BaseNode { - type: AST_NODE_TYPES.TSNamedTupleMember; - elementType: TypeNode; - label: Identifier; - optional: boolean; -} -/** - * For the following declaration: - * ``` - * export as namespace X; - * ``` - */ -export declare interface TSNamespaceExportDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSNamespaceExportDeclaration; - /** - * The name of the global variable that's exported as namespace - */ - id: Identifier; -} -export declare interface TSNeverKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNeverKeyword; -} -export declare interface TSNonNullExpression extends BaseNode { - type: AST_NODE_TYPES.TSNonNullExpression; - expression: Expression; -} -export declare interface TSNullKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNullKeyword; -} -export declare interface TSNumberKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNumberKeyword; -} -export declare interface TSObjectKeyword extends BaseNode { - type: AST_NODE_TYPES.TSObjectKeyword; -} -export declare interface TSOptionalType extends BaseNode { - type: AST_NODE_TYPES.TSOptionalType; - typeAnnotation: TypeNode; -} -export declare interface TSParameterProperty extends BaseNode { - type: AST_NODE_TYPES.TSParameterProperty; - accessibility: Accessibility | undefined; - readonly: boolean; - static: boolean; - override: boolean; - parameter: AssignmentPattern | BindingName | RestElement; - decorators: Decorator[]; -} -export declare interface TSPrivateKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPrivateKeyword; -} -export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; -declare interface TSPropertySignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSPropertySignature; - key: PropertyName; - optional: boolean; - computed: boolean; - typeAnnotation: TSTypeAnnotation | undefined; - readonly: boolean; - static: boolean; - accessibility: Accessibility | undefined; -} -export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSProtectedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSProtectedKeyword; -} -export declare interface TSPublicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPublicKeyword; -} -export declare interface TSQualifiedName extends BaseNode { - type: AST_NODE_TYPES.TSQualifiedName; - left: EntityName; - right: Identifier; -} -export declare interface TSReadonlyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSReadonlyKeyword; -} -export declare interface TSRestType extends BaseNode { - type: AST_NODE_TYPES.TSRestType; - typeAnnotation: TypeNode; -} -export declare interface TSSatisfiesExpression extends BaseNode { - type: AST_NODE_TYPES.TSSatisfiesExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSStaticKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStaticKeyword; -} -export declare interface TSStringKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStringKeyword; -} -export declare interface TSSymbolKeyword extends BaseNode { - type: AST_NODE_TYPES.TSSymbolKeyword; -} -export declare interface TSTemplateLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSTemplateLiteralType; - quasis: TemplateElement[]; - types: TypeNode[]; -} -export declare interface TSThisType extends BaseNode { - type: AST_NODE_TYPES.TSThisType; -} -export declare interface TSTupleType extends BaseNode { - type: AST_NODE_TYPES.TSTupleType; - elementTypes: TypeNode[]; -} -export declare interface TSTypeAliasDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeAliasDeclaration; - /** - * Whether the type was `declare`d. - * @example - * ```ts - * declare type T = 1; - * ``` - */ - declare: boolean; - /** - * The name of the type. - */ - id: Identifier; - /** - * The "value" (type) of the declaration - */ - typeAnnotation: TypeNode; - /** - * The generic type parameters declared for the type. Empty declaration - * (`<>`) is different from no declaration. - */ - typeParameters: TSTypeParameterDeclaration | undefined; -} -export declare interface TSTypeAnnotation extends BaseNode { - type: AST_NODE_TYPES.TSTypeAnnotation; - typeAnnotation: TypeNode; -} -export declare interface TSTypeAssertion extends BaseNode { - type: AST_NODE_TYPES.TSTypeAssertion; - typeAnnotation: TypeNode; - expression: Expression; -} -export declare interface TSTypeLiteral extends BaseNode { - type: AST_NODE_TYPES.TSTypeLiteral; - members: TypeElement[]; -} -export declare interface TSTypeOperator extends BaseNode { - type: AST_NODE_TYPES.TSTypeOperator; - operator: 'keyof' | 'readonly' | 'unique'; - typeAnnotation: TypeNode | undefined; -} -export declare interface TSTypeParameter extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameter; - name: Identifier; - constraint: TypeNode | undefined; - default: TypeNode | undefined; - in: boolean; - out: boolean; - const: boolean; -} -export declare interface TSTypeParameterDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterDeclaration; - params: TSTypeParameter[]; -} -export declare interface TSTypeParameterInstantiation extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterInstantiation; - params: TypeNode[]; -} -export declare interface TSTypePredicate extends BaseNode { - type: AST_NODE_TYPES.TSTypePredicate; - asserts: boolean; - parameterName: Identifier | TSThisType; - typeAnnotation: TSTypeAnnotation | null; -} -export declare interface TSTypeQuery extends BaseNode { - type: AST_NODE_TYPES.TSTypeQuery; - exprName: EntityName | TSImportType; - typeArguments: TSTypeParameterInstantiation | undefined; -} -export declare interface TSTypeReference extends BaseNode { - type: AST_NODE_TYPES.TSTypeReference; - typeArguments: TSTypeParameterInstantiation | undefined; - typeName: EntityName; -} -export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; -export declare interface TSUndefinedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUndefinedKeyword; -} -export declare interface TSUnionType extends BaseNode { - type: AST_NODE_TYPES.TSUnionType; - types: TypeNode[]; -} -export declare interface TSUnknownKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUnknownKeyword; -} -export declare interface TSVoidKeyword extends BaseNode { - type: AST_NODE_TYPES.TSVoidKeyword; -} -export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; -export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; -export declare interface UnaryExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UnaryExpression; - operator: '-' | '!' | '+' | '~' | 'delete' | 'typeof' | 'void'; -} -declare interface UnaryExpressionBase extends BaseNode { - operator: string; - prefix: boolean; - argument: Expression; -} -export declare interface UpdateExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UpdateExpression; - operator: '--' | '++'; -} -export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNormalContextDeclaration; -declare interface UsingDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.VariableDeclaration; - /** - * This value will always be `false` - * because 'declare' modifier cannot appear on a 'using' declaration. - */ - declare: false; - /** - * The keyword used to declare the variable(s) - * @example - * ```ts - * using x = 1; - * await using y = 2; - * ``` - */ - kind: 'await using' | 'using'; -} -export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNormalContextDeclarator; -export declare interface UsingInForOfDeclaration extends UsingDeclarationBase { - /** - * The variables declared by this declaration. - * Always has exactly one element. - * @example - * ```ts - * for (using x of y) {} - * ``` - */ - declarations: [UsingInForOfDeclarator]; -} -export declare interface UsingInForOfDeclarator extends VariableDeclaratorBase { - id: Identifier; - init: null; - definite: false; -} -export declare interface UsingInNormalContextDeclaration extends UsingDeclarationBase { - /** - * The variables declared by this declaration. - * Always non-empty. - * @example - * ```ts - * using x = 1; - * using y = 1, z = 2; - * ``` - */ - declarations: UsingInNormalContextDeclarator[]; -} -export declare interface UsingInNormalContextDeclarator extends VariableDeclaratorBase { - id: Identifier; - init: Expression; - definite: false; -} -declare type ValueOf = T[keyof T]; -export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration; -export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator; -declare interface VariableDeclaratorBase extends BaseNode { - type: AST_NODE_TYPES.VariableDeclarator; - /** - * The name(s) of the variable(s). - */ - id: BindingName; - /** - * The initializer expression of the variable. Must be present for `const` unless - * in a `declare const`. - */ - init: Expression | null; - /** - * Whether there's definite assignment assertion (`let x!: number`). - * If `true`, then: `id` must be an identifier with a type annotation, - * `init` must be `null`, and the declarator must be a `var`/`let` declarator. - */ - definite: boolean; -} -export declare interface VariableDeclaratorDefiniteAssignment extends VariableDeclaratorBase { - /** - * The name of the variable. Must have a type annotation. - */ - id: Identifier; - init: null; - definite: true; -} -export declare interface VariableDeclaratorMaybeInit extends VariableDeclaratorBase { - definite: false; -} -export declare interface VariableDeclaratorNoInit extends VariableDeclaratorBase { - init: null; - definite: false; -} -export declare interface WhileStatement extends BaseNode { - type: AST_NODE_TYPES.WhileStatement; - test: Expression; - body: Statement; -} -export declare interface WithStatement extends BaseNode { - type: AST_NODE_TYPES.WithStatement; - object: Expression; - body: Statement; -} -export declare interface YieldExpression extends BaseNode { - type: AST_NODE_TYPES.YieldExpression; - delegate: boolean; - argument: Expression | undefined; -} -export {}; -//# sourceMappingURL=ast-spec.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map b/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map deleted file mode 100644 index d0ed454f..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-spec.d.ts","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;gDAQgD;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvE,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAChC,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,4BACvB,SAAQ,kCAAkC;IAC1C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,+BACvB,SAAQ,qCAAqC;IAC7C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC;;OAEG;IACH,QAAQ,EAAE,CAAC,UAAU,GAAG,aAAa,GAAG,IAAI,CAAC,EAAE,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,YAAa,SAAQ,QAAQ;IACpD,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC;IAClC,QAAQ,EAAE,CAAC,oBAAoB,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,cAAc,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,QAAQ;IAC/D,I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D,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC;IACpC,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAc,SAAQ,QAAQ;IACrD,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;CAClC;AAED,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js b/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js deleted file mode 100644 index eb3d6a38..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; -/********************************************** - * DO NOT MODIFY THIS FILE MANUALLY * - * * - * THIS FILE HAS BEEN COPIED FROM ast-spec. * - * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * - * * - * MAKE CHANGES TO ast-spec AND THEN RUN * - * yarn build * - **********************************************/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -var AST_NODE_TYPES; -(function (AST_NODE_TYPES) { - AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty"; - AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression"; - AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern"; - AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression"; - AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression"; - AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern"; - AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression"; - AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression"; - AST_NODE_TYPES["BlockStatement"] = "BlockStatement"; - AST_NODE_TYPES["BreakStatement"] = "BreakStatement"; - AST_NODE_TYPES["CallExpression"] = "CallExpression"; - AST_NODE_TYPES["CatchClause"] = "CatchClause"; - AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; - AST_NODE_TYPES["ClassBody"] = "ClassBody"; - AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; - AST_NODE_TYPES["ClassExpression"] = "ClassExpression"; - AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression"; - AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement"; - AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement"; - AST_NODE_TYPES["Decorator"] = "Decorator"; - AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement"; - AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement"; - AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration"; - AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; - AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration"; - AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier"; - AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement"; - AST_NODE_TYPES["ForInStatement"] = "ForInStatement"; - AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement"; - AST_NODE_TYPES["ForStatement"] = "ForStatement"; - AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration"; - AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression"; - AST_NODE_TYPES["Identifier"] = "Identifier"; - AST_NODE_TYPES["IfStatement"] = "IfStatement"; - AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute"; - AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration"; - AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; - AST_NODE_TYPES["ImportExpression"] = "ImportExpression"; - AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; - AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier"; - AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute"; - AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement"; - AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment"; - AST_NODE_TYPES["JSXElement"] = "JSXElement"; - AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression"; - AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer"; - AST_NODE_TYPES["JSXFragment"] = "JSXFragment"; - AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier"; - AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression"; - AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName"; - AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement"; - AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment"; - AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute"; - AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild"; - AST_NODE_TYPES["JSXText"] = "JSXText"; - AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement"; - AST_NODE_TYPES["Literal"] = "Literal"; - AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression"; - AST_NODE_TYPES["MemberExpression"] = "MemberExpression"; - AST_NODE_TYPES["MetaProperty"] = "MetaProperty"; - AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition"; - AST_NODE_TYPES["NewExpression"] = "NewExpression"; - AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression"; - AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; - AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier"; - AST_NODE_TYPES["Program"] = "Program"; - AST_NODE_TYPES["Property"] = "Property"; - AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition"; - AST_NODE_TYPES["RestElement"] = "RestElement"; - AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement"; - AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression"; - AST_NODE_TYPES["SpreadElement"] = "SpreadElement"; - AST_NODE_TYPES["StaticBlock"] = "StaticBlock"; - AST_NODE_TYPES["Super"] = "Super"; - AST_NODE_TYPES["SwitchCase"] = "SwitchCase"; - AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement"; - AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression"; - AST_NODE_TYPES["TemplateElement"] = "TemplateElement"; - AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral"; - AST_NODE_TYPES["ThisExpression"] = "ThisExpression"; - AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement"; - AST_NODE_TYPES["TryStatement"] = "TryStatement"; - AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression"; - AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression"; - AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration"; - AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator"; - AST_NODE_TYPES["WhileStatement"] = "WhileStatement"; - AST_NODE_TYPES["WithStatement"] = "WithStatement"; - AST_NODE_TYPES["YieldExpression"] = "YieldExpression"; - AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; - AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword"; - AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; - AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; - AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword"; - AST_NODE_TYPES["TSArrayType"] = "TSArrayType"; - AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression"; - AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; - AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; - AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; - AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; - AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; - AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; - AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; - AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; - AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; - AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; - AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; - AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; - AST_NODE_TYPES["TSEnumBody"] = "TSEnumBody"; - AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember"; - AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment"; - AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword"; - AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; - AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; - AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression"; - AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; - AST_NODE_TYPES["TSImportType"] = "TSImportType"; - AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; - AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; - AST_NODE_TYPES["TSInferType"] = "TSInferType"; - AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; - AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; - AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; - AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; - AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; - AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; - AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; - AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; - AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; - AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; - AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; - AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; - AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; - AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; - AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; - AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; - AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; - AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; - AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; - AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; - AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; - AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword"; - AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword"; - AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName"; - AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword"; - AST_NODE_TYPES["TSRestType"] = "TSRestType"; - AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression"; - AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword"; - AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword"; - AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword"; - AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType"; - AST_NODE_TYPES["TSThisType"] = "TSThisType"; - AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; - AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; - AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; - AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; - AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; - AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator"; - AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter"; - AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; - AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; - AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; - AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; - AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; - AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; - AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; - AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; - AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; -})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {})); -var AST_TOKEN_TYPES; -(function (AST_TOKEN_TYPES) { - AST_TOKEN_TYPES["Boolean"] = "Boolean"; - AST_TOKEN_TYPES["Identifier"] = "Identifier"; - AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier"; - AST_TOKEN_TYPES["JSXText"] = "JSXText"; - AST_TOKEN_TYPES["Keyword"] = "Keyword"; - AST_TOKEN_TYPES["Null"] = "Null"; - AST_TOKEN_TYPES["Numeric"] = "Numeric"; - AST_TOKEN_TYPES["Punctuator"] = "Punctuator"; - AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression"; - AST_TOKEN_TYPES["String"] = "String"; - AST_TOKEN_TYPES["Template"] = "Template"; - AST_TOKEN_TYPES["Block"] = "Block"; - AST_TOKEN_TYPES["Line"] = "Line"; -})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); -//# sourceMappingURL=ast-spec.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map b/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map deleted file mode 100644 index a4e973ff..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cAyKX;AAzKD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,+DAA6C,CAAA;IAC7C,uEAAqD,CAAA;IACrD,mEAAiD,CAAA;IACjD,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yDAAuC,CAAA;IACvC,mEAAiD,CAAA;IACjD,uDAAqC,CAAA;IACrC,uEAAqD,CAAA;IACrD,qD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;IACjC,qDAAmC,CAAA;IACnC,2EAAyD,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EAzKW,cAAc,8BAAd,cAAc,QAyKzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts deleted file mode 100644 index 3d39147f..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; -export * from './lib'; -export * from './parser-options'; -export * from './ts-estree'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts.map deleted file mode 100644 index 6a86c537..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/index.js b/graphql/node_modules/@typescript-eslint/types/dist/index.js deleted file mode 100644 index 00ff6a17..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -var ast_spec_1 = require("./generated/ast-spec"); -Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } }); -Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } }); -__exportStar(require("./lib"), exports); -__exportStar(require("./parser-options"), exports); -__exportStar(require("./ts-estree"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/index.js.map b/graphql/node_modules/@typescript-eslint/types/dist/index.js.map deleted file mode 100644 index 075ac156..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts b/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts deleted file mode 100644 index 51626efb..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'dom.asynciterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'webworker.asynciterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2016.intl' | 'es2017.date' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'es2023.collection' | 'es2023.intl' | 'esnext.array' | 'esnext.collection' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.disposable' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'esnext.decorators' | 'esnext.object' | 'esnext.regexp' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib'; -export { Lib }; -//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts.map b/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts.map deleted file mode 100644 index 83d43253..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,cAAc,GACd,mBAAmB,GACnB,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,yBAAyB,GACzB,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,KAAK,CAAC;AAEV,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/lib.js b/graphql/node_modules/@typescript-eslint/types/dist/lib.js deleted file mode 100644 index 6d09838c..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/lib.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib repo -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/lib.js.map b/graphql/node_modules/@typescript-eslint/types/dist/lib.js.map deleted file mode 100644 index 3ee438a9..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/lib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,2BAA2B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts b/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts deleted file mode 100644 index e4ffaedc..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import type { Program } from 'typescript'; -import type { Lib } from './lib'; -type DebugLevel = ('eslint' | 'typescript-eslint' | 'typescript')[] | boolean; -type CacheDurationSeconds = number | 'Infinity'; -type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 'latest' | undefined; -type SourceTypeClassic = 'module' | 'script'; -type SourceType = SourceTypeClassic | 'commonjs'; -type JSDocParsingMode = 'all' | 'none' | 'type-info'; -/** - * Granular options to configure the project service. - */ -interface ProjectServiceOptions { - /** - * Globs of files to allow running with the default project compiler options - * despite not being matched by the project service. - */ - allowDefaultProject?: string[]; - /** - * Path to a TSConfig to use instead of TypeScript's default project configuration. - */ - defaultProject?: string; - /** - * The maximum number of files {@link allowDefaultProject} may match. - * Each file match slows down linting, so if you do need to use this, please - * file an informative issue on typescript-eslint explaining why - so we can - * help you avoid using it! - * @default 8 - */ - maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number; -} -interface ParserOptions { - ecmaFeatures?: { - globalReturn?: boolean | undefined; - jsx?: boolean | undefined; - [key: string]: unknown; - } | undefined; - ecmaVersion?: EcmaVersion; - jsxPragma?: string | null; - jsxFragmentName?: string | null; - lib?: Lib[]; - emitDecoratorMetadata?: boolean; - experimentalDecorators?: boolean; - debugLevel?: DebugLevel; - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - errorOnUnknownASTType?: boolean; - extraFileExtensions?: string[]; - filePath?: string; - jsDocParsingMode?: JSDocParsingMode; - programs?: Program[] | null; - project?: string[] | string | boolean | null; - projectFolderIgnoreList?: string[]; - projectService?: boolean | ProjectServiceOptions; - range?: boolean; - sourceType?: SourceType | undefined; - tokens?: boolean; - tsconfigRootDir?: string; - warnOnUnsupportedTypeScriptVersion?: boolean; - cacheLifetime?: { - glob?: CacheDurationSeconds; - }; - [additionalProperties: string]: unknown; -} -export { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, ProjectServiceOptions, SourceType, }; -//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map b/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map deleted file mode 100644 index f8d16989..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,CAAC,QAAQ,GAAG,mBAAmB,GAAG,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,SAAS,CAAC;AAEd,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,KAAK,UAAU,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjD,KAAK,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAErD;;GAEG;AACH,UAAU,qBAAqB;IAC7B;;;OAGG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,MAAM,CAAC;IACzB,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C,aAAa,CAAC,EAAE;QACd,IAAI,CAAC,EAAE,oBAAoB,CAAC;KAC7B,CAAC;IAEF,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC;AAED,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,UAAU,GACX,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js b/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js deleted file mode 100644 index 66f40a29..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js.map b/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js.map deleted file mode 100644 index 22b7b8ab..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/parser-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts b/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts deleted file mode 100644 index b2d8c122..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -import type * as TSESTree from './generated/ast-spec'; -declare module './generated/ast-spec' { - interface BaseNode { - parent: TSESTree.Node; - } - interface Program { - /** - * @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly. - */ - parent?: never; - } - interface AccessorPropertyComputedName { - parent: TSESTree.ClassBody; - } - interface AccessorPropertyNonComputedName { - parent: TSESTree.ClassBody; - } - interface VariableDeclaratorDefiniteAssignment { - parent: TSESTree.VariableDeclaration; - } - interface VariableDeclaratorMaybeInit { - parent: TSESTree.VariableDeclaration; - } - interface VariableDeclaratorNoInit { - parent: TSESTree.VariableDeclaration; - } - interface UsingInForOfDeclarator { - parent: TSESTree.VariableDeclaration; - } - interface UsingInNormalContextDeclarator { - parent: TSESTree.VariableDeclaration; - } - interface TSAbstractAccessorPropertyComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractAccessorPropertyNonComputedName { - parent: TSESTree.ClassBody; - } - interface CatchClause { - parent: TSESTree.TryStatement; - } - interface ClassBody { - parent: TSESTree.ClassExpression | TSESTree.ClassDeclaration; - } - interface ExportSpecifier { - parent: TSESTree.ExportNamedDeclaration; - } - interface ImportAttribute { - parent: TSESTree.ImportDeclaration | TSESTree.ImportExpression; - } - interface ImportDefaultSpecifier { - parent: TSESTree.ImportDeclaration; - } - interface ImportNamespaceSpecifier { - parent: TSESTree.ImportDeclaration; - } - interface ImportSpecifier { - parent: TSESTree.ExportAllDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ImportDeclaration; - } - interface JSXAttribute { - parent: TSESTree.JSXOpeningElement; - } - interface JSXClosingElement { - parent: TSESTree.JSXElement; - } - interface JSXClosingFragment { - parent: TSESTree.JSXFragment; - } - interface JSXOpeningElement { - parent: TSESTree.JSXElement; - } - interface JSXOpeningFragment { - parent: TSESTree.JSXFragment; - } - interface JSXSpreadAttribute { - parent: TSESTree.JSXOpeningElement; - } - interface MethodDefinitionComputedName { - parent: TSESTree.ClassBody; - } - interface MethodDefinitionNonComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractMethodDefinitionComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractMethodDefinitionNonComputedName { - parent: TSESTree.ClassBody; - } - interface PropertyComputedName { - parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; - } - interface PropertyNonComputedName { - parent: TSESTree.ObjectExpression | TSESTree.ObjectPattern; - } - interface PropertyDefinitionComputedName { - parent: TSESTree.ClassBody; - } - interface PropertyDefinitionNonComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractPropertyDefinitionComputedName { - parent: TSESTree.ClassBody; - } - interface TSAbstractPropertyDefinitionNonComputedName { - parent: TSESTree.ClassBody; - } - interface SpreadElement { - parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.ObjectExpression; - } - interface StaticBlock { - parent: TSESTree.ClassBody; - } - interface SwitchCase { - parent: TSESTree.SwitchStatement; - } - interface TemplateElement { - parent: TSESTree.TemplateLiteral | TSESTree.TSTemplateLiteralType; - } - interface TSCallSignatureDeclaration { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSConstructSignatureDeclaration { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSClassImplements { - parent: TSESTree.ClassDeclaration | TSESTree.ClassExpression; - } - interface TSEnumBody { - parent: TSESTree.TSEnumDeclaration; - } - interface TSEnumMemberComputedName { - parent: TSESTree.TSEnumBody; - } - interface TSEnumMemberNonComputedName { - parent: TSESTree.TSEnumBody; - } - interface TSIndexSignature { - parent: TSESTree.ClassBody | TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSInterfaceBody { - parent: TSESTree.TSInterfaceDeclaration; - } - interface TSInterfaceHeritage { - parent: TSESTree.TSInterfaceBody; - } - interface TSMethodSignatureComputedName { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSMethodSignatureNonComputedName { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSModuleBlock { - parent: TSESTree.TSModuleDeclaration; - } - interface TSParameterProperty { - parent: TSESTree.FunctionLike; - } - interface TSPropertySignatureComputedName { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSPropertySignatureNonComputedName { - parent: TSESTree.TSInterfaceBody | TSESTree.TSTypeLiteral; - } - interface TSTypeParameter { - parent: TSESTree.TSInferType | TSESTree.TSTypeParameterDeclaration | TSESTree.TSMappedType; - } -} -export * as TSESTree from './generated/ast-spec'; -//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map b/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map deleted file mode 100644 index 7e0c26e1..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;IAED,UAAU,4BAA4B;QACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IAED,UAAU,oCAAoC;QAC5C,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,2BAA2B;QACnC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,wBAAwB;QAChC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,sBAAsB;QAC9B,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,8BAA8B;QACtC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,sCAAsC;QAC9C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,yCAAyC;QACjD,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;K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BAAiB,CAAC;KACpC;IAED,UAAU,wBAAwB;QAChC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC;KAC7B;IACD,UAAU,2BAA2B;QACnC,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC;KAC7B;IAED,UAAU,gBAAgB;QACxB,MAAM,EACF,QAAQ,CAAC,SAAS,GAClB,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,aAAa,CAAC;KAC5B;IAED,UAAU,eAAe;QACvB,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC;KACzC;IAED,UAAU,mBAAmB;QAC3B,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC;KAClC;IAED,UAAU,6BAA6B;QACrC,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IACD,UAAU,gCAAgC;QACxC,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IAED,UAAU,aAAa;QACrB,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,mBAAmB;QAC3B,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC;KAC/B;IAED,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IACD,UAAU,kCAAkC;QAC1C,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IAED,UAAU,eAAe;QACvB,MAAM,EACF,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,YAAY,CAAC;KAC3B;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js b/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js deleted file mode 100644 index e0dc7c61..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESTree = void 0; -exports.TSESTree = __importStar(require("./generated/ast-spec")); -//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js.map b/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js.map deleted file mode 100644 index 86a3bfb6..00000000 --- a/graphql/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA+NA,iEAAiD"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/types/package.json b/graphql/node_modules/@typescript-eslint/types/package.json deleted file mode 100644 index ec266c9c..00000000 --- a/graphql/node_modules/@typescript-eslint/types/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "name": "@typescript-eslint/types", - "version": "8.1.0", - "description": "Types for the TypeScript-ESTree AST spec", - "files": [ - "dist", - "_ts4.3", - "package.json", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "types": "./dist/index.d.ts", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/types" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io", - "license": "MIT", - "keywords": [ - "eslint", - "typescript", - "estree" - ], - "scripts": { - "copy-ast-spec": "tsx ./tools/copy-ast-spec.ts", - "build": "tsc -b tsconfig.build.json", - "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "generate-lib": "npx nx run scope-manager:generate-lib", - "lint": "npx nx lint", - "typecheck": "tsc --noEmit" - }, - "nx": { - "targets": { - "copy-ast-spec": { - "dependsOn": [ - "^build" - ], - "outputs": [ - "{projectRoot}/src/generated" - ], - "cache": true - }, - "build": { - "dependsOn": [ - "^build", - "copy-ast-spec" - ] - } - } - }, - "devDependencies": { - "@jest/types": "29.6.3", - "downlevel-dts": "*", - "prettier": "^3.2.5", - "rimraf": "*", - "tsx": "*", - "typescript": "*" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "typesVersions": { - "<4.7": { - "*": [ - "_ts4.3/*" - ] - } - } -} diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/LICENSE b/graphql/node_modules/@typescript-eslint/typescript-estree/LICENSE deleted file mode 100644 index f6d73403..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -TypeScript ESTree - -Originally extracted from: - -TypeScript ESLint Parser -Copyright JS Foundation and other contributors, https://js.foundation - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -- Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/README.md b/graphql/node_modules/@typescript-eslint/typescript-estree/README.md deleted file mode 100644 index c98838da..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# `@typescript-eslint/typescript-estree` - -> A parser that produces an ESTree-compatible AST for TypeScript code. - -[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) -[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils) - -## Contributing - -👉 See **https://typescript-eslint.io/packages/typescript-estree** for documentation on this package. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts deleted file mode 100644 index 3c812c65..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { SourceFile } from 'typescript'; -import type { ASTMaps } from './convert'; -import type { ParseSettings } from './parseSettings'; -import type { TSESTree } from './ts-estree'; -export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { - estree: TSESTree.Program; - astMaps: ASTMaps; -}; -//# sourceMappingURL=ast-converter.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map deleted file mode 100644 index 94b20cd8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CA4DhD"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js deleted file mode 100644 index b393a62d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.astConverter = astConverter; -const convert_1 = require("./convert"); -const convert_comments_1 = require("./convert-comments"); -const node_utils_1 = require("./node-utils"); -const simple_traverse_1 = require("./simple-traverse"); -function astConverter(ast, parseSettings, shouldPreserveNodeMaps) { - /** - * The TypeScript compiler produced fundamental parse errors when parsing the - * source. - */ - const { parseDiagnostics } = ast; - if (parseDiagnostics.length) { - throw (0, convert_1.convertError)(parseDiagnostics[0]); - } - /** - * Recursively convert the TypeScript AST into an ESTree-compatible AST - */ - const instance = new convert_1.Converter(ast, { - allowInvalidAST: parseSettings.allowInvalidAST, - errorOnUnknownASTType: parseSettings.errorOnUnknownASTType, - shouldPreserveNodeMaps, - suppressDeprecatedPropertyWarnings: parseSettings.suppressDeprecatedPropertyWarnings, - }); - const estree = instance.convertProgram(); - /** - * Optionally remove range and loc if specified - */ - if (!parseSettings.range || !parseSettings.loc) { - (0, simple_traverse_1.simpleTraverse)(estree, { - enter: node => { - if (!parseSettings.range) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional - // @ts-expect-error - delete node.range; - } - if (!parseSettings.loc) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional - // @ts-expect-error - delete node.loc; - } - }, - }); - } - /** - * Optionally convert and include all tokens in the AST - */ - if (parseSettings.tokens) { - estree.tokens = (0, node_utils_1.convertTokens)(ast); - } - /** - * Optionally convert and include all comments in the AST - */ - if (parseSettings.comment) { - estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.codeFullText); - } - const astMaps = instance.getASTMaps(); - return { estree, astMaps }; -} -//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map deleted file mode 100644 index 16274fe3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":";;AAUA,oCAgEC;AAvED,uCAAoD;AACpD,yDAAqD;AACrD,6CAA6C;AAE7C,uDAAmD;AAGnD,SAAgB,YAAY,CAC1B,GAAe,EACf,aAA4B,EAC5B,sBAA+B;IAE/B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;QAC5B,MAAM,IAAA,sBAAY,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,MAAM,QAAQ,GAAG,IAAI,mBAAS,CAAC,GAAG,EAAE;QAClC,eAAe,EAAE,aAAa,CAAC,eAAe;QAC9C,qBAAqB,EAAE,aAAa,CAAC,qBAAqB;QAC1D,sBAAsB;QACtB,kCAAkC,EAChC,aAAa,CAAC,kCAAkC;KACnD,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QAC/C,IAAA,gCAAc,EAAC,MAAM,EAAE;YACrB,KAAK,EAAE,IAAI,CAAC,EAAE;gBACZ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;oBACzB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,KAAK,CAAC;gBACpB,CAAC;gBACD,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;oBACvB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,GAAG,CAAC;gBAClB,CAAC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACzB,MAAM,CAAC,MAAM,GAAG,IAAA,0BAAa,EAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,MAAM,CAAC,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts deleted file mode 100644 index 18457024..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Clears all of the internal caches. - * Generally you shouldn't need or want to use this. - * Examples of intended uses: - * - In tests to reset parser state to keep tests isolated. - * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. - */ -export declare function clearCaches(): void; -export declare const clearProgramCache: typeof clearCaches; -//# sourceMappingURL=clear-caches.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map deleted file mode 100644 index eeec191b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js deleted file mode 100644 index e8b8c7df..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearProgramCache = void 0; -exports.clearCaches = clearCaches; -const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); -const parser_1 = require("./parser"); -const createParseSettings_1 = require("./parseSettings/createParseSettings"); -const resolveProjectList_1 = require("./parseSettings/resolveProjectList"); -/** - * Clears all of the internal caches. - * Generally you shouldn't need or want to use this. - * Examples of intended uses: - * - In tests to reset parser state to keep tests isolated. - * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. - */ -function clearCaches() { - (0, parser_1.clearDefaultProjectMatchedFiles)(); - (0, parser_1.clearProgramCache)(); - (0, getWatchProgramsForProjects_1.clearWatchCaches)(); - (0, createParseSettings_1.clearTSConfigMatchCache)(); - (0, createParseSettings_1.clearTSServerProjectService)(); - (0, resolveProjectList_1.clearGlobCache)(); -} -// TODO - delete this in next major -exports.clearProgramCache = clearCaches; -//# sourceMappingURL=clear-caches.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map deleted file mode 100644 index eacff3a6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAkBA,kCAOC;AAzBD,8FAAgF;AAChF,qCAGkB;AAClB,6EAG6C;AAC7C,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,wCAA+B,GAAE,CAAC;IAClC,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,iDAA2B,GAAE,CAAC;IAC9B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts deleted file mode 100644 index bdf93691..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as ts from 'typescript'; -import type { TSESTree } from './ts-estree'; -/** - * Convert all comments for the given AST. - * @param ast the AST object - * @param code the TypeScript code - * @returns the converted ESTreeComment - * @private - */ -export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; -//# sourceMappingURL=convert-comments.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map deleted file mode 100644 index 68878b68..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js deleted file mode 100644 index a79ea673..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertComments = convertComments; -const tsutils = __importStar(require("ts-api-utils")); -const ts = __importStar(require("typescript")); -const node_utils_1 = require("./node-utils"); -const ts_estree_1 = require("./ts-estree"); -/** - * Convert all comments for the given AST. - * @param ast the AST object - * @param code the TypeScript code - * @returns the converted ESTreeComment - * @private - */ -function convertComments(ast, code) { - const comments = []; - tsutils.forEachComment(ast, (_, comment) => { - const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia - ? ts_estree_1.AST_TOKEN_TYPES.Line - : ts_estree_1.AST_TOKEN_TYPES.Block; - const range = [comment.pos, comment.end]; - const loc = (0, node_utils_1.getLocFor)(range, ast); - // both comments start with 2 characters - /* or // - const textStart = range[0] + 2; - const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia - ? // single line comments end at the end - range[1] - textStart - : // multiline comments end 2 characters early - range[1] - textStart - 2; - comments.push({ - type, - value: code.slice(textStart, textStart + textEnd), - range, - loc, - }); - }, ast); - return comments; -} -//# sourceMappingURL=convert-comments.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map deleted file mode 100644 index 309c9519..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert-comments.js","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA,0CAmCC;AAjDD,sDAAwC;AACxC,+CAAiC;AAEjC,6CAAyC;AAEzC,2CAA8C;AAE9C;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,GAAkB,EAClB,IAAY;IAEZ,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,OAAO,CAAC,cAAc,CACpB,GAAG,EACH,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACb,MAAM,IAAI,GACR,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,2BAAe,CAAC,IAAI;YACtB,CAAC,CAAC,2BAAe,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,GAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAA,sBAAS,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,mDAAmD;QACnD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,sCAAsC;gBACtC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS;YACtB,CAAC,CAAC,4CAA4C;gBAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI;YACJ,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;YACjD,KAAK;YACL,GAAG;SACJ,CAAC,CAAC;IACL,CAAC,EACD,GAAG,CACJ,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts deleted file mode 100644 index f4cfdf34..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -import * as ts from 'typescript'; -import type { TSError } from './node-utils'; -import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; -import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; -import type { TSESTree, TSNode } from './ts-estree'; -export interface ConverterOptions { - allowInvalidAST?: boolean; - errorOnUnknownASTType?: boolean; - shouldPreserveNodeMaps?: boolean; - suppressDeprecatedPropertyWarnings?: boolean; -} -/** - * Extends and formats a given error object - * @param error the error object - * @returns converted error object - */ -export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError; -export interface ASTMaps { - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; -} -export declare class Converter { - #private; - private readonly ast; - private readonly options; - private readonly esTreeNodeToTSNodeMap; - private readonly tsNodeToESTreeNodeMap; - private allowPattern; - /** - * Converts a TypeScript node into an ESTree node - * @param ast the full TypeScript AST - * @param options additional options for the conversion - * @returns the converted ESTreeNode - */ - constructor(ast: ts.SourceFile, options?: ConverterOptions); - getASTMaps(): ASTMaps; - convertProgram(): TSESTree.Program; - /** - * Converts a TypeScript node into an ESTree node. - * @param node the child ts.Node - * @param parent parentNode - * @param allowPattern flag to determine if patterns are allowed - * @returns the converted ESTree node - */ - private converter; - /** - * Fixes the exports of the given ts.Node - * @returns the ESTreeNode with fixed exports - */ - private fixExports; - /** - * Register specific TypeScript node into map with first ESTree node provided - */ - private registerTSNodeInNodeMap; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertPattern; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertChild; - private createNode; - private convertBindingNameWithTypeAnnotation; - /** - * Converts a child into a type annotation. This creates an intermediary - * TypeAnnotation node to match what Flow does. - * @param child The TypeScript AST node to convert. - * @param parent parentNode - * @returns The type annotation node. - */ - private convertTypeAnnotation; - /** - * Coverts body Nodes and add a directive field to StringLiterals - * @param nodes of ts.Node - * @param parent parentNode - * @returns Array of body statements - */ - private convertBodyExpressions; - /** - * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node - * @param typeArguments ts.NodeArray typeArguments - * @param node parent used to create this node - * @returns TypeParameterInstantiation node - */ - private convertTypeArgumentsToTypeParameterInstantiation; - /** - * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node - * @param typeParameters ts.Node typeParameters - * @returns TypeParameterDeclaration node - */ - private convertTSTypeParametersToTypeParametersDeclaration; - /** - * Converts an array of ts.Node parameters into an array of ESTreeNode params - * @param parameters An array of ts.Node params to be converted - * @returns an array of converted ESTreeNode params - */ - private convertParameters; - private convertChainExpression; - /** - * For nodes that are copied directly from the TypeScript AST into - * ESTree mostly as-is. The only difference is the addition of a type - * property instead of a kind property. Recursively copies all children. - */ - private deeplyCopy; - private convertJSXIdentifier; - private convertJSXNamespaceOrIdentifier; - /** - * Converts a TypeScript JSX node.tagName into an ESTree node.name - * @param node the tagName object from a JSX ts.Node - * @returns the converted ESTree name object - */ - private convertJSXTagName; - private convertMethodSignature; - private convertImportAttributes; - /** - * Uses the provided range location to adjust the location data of the given Node - * @param result The node that will have its location data mutated - * @param childRange The child node range used to expand location - */ - private fixParentLocation; - private assertModuleSpecifier; - /** - * Converts a TypeScript node into an ESTree node. - * The core of the conversion logic: - * Identify and convert each relevant TypeScript SyntaxKind - * @returns the converted ESTree node - */ - private convertNode; -} -//# sourceMappingURL=convert.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map deleted file mode 100644 index 82ef2282..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA6B5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAKtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,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ACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B,OAAO,CAAC,uBAAuB;IAQ/B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,WAAW;CAq1FpB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js deleted file mode 100644 index d40a3d0a..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +++ /dev/null @@ -1,2664 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Converter = void 0; -exports.convertError = convertError; -// There's lots of funny stuff due to the typing of ts.Node -/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */ -const ts = __importStar(require("typescript")); -const getModifiers_1 = require("./getModifiers"); -const node_utils_1 = require("./node-utils"); -const ts_estree_1 = require("./ts-estree"); -const SyntaxKind = ts.SyntaxKind; -/** - * Extends and formats a given error object - * @param error the error object - * @returns converted error object - */ -function convertError(error) { - return (0, node_utils_1.createError)(('message' in error && error.message) || error.messageText, error.file, error.start); -} -class Converter { - ast; - options; - esTreeNodeToTSNodeMap = new WeakMap(); - tsNodeToESTreeNodeMap = new WeakMap(); - allowPattern = false; - /** - * Converts a TypeScript node into an ESTree node - * @param ast the full TypeScript AST - * @param options additional options for the conversion - * @returns the converted ESTreeNode - */ - constructor(ast, options) { - this.ast = ast; - this.options = { ...options }; - } - getASTMaps() { - return { - esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, - tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap, - }; - } - convertProgram() { - return this.converter(this.ast); - } - /** - * Converts a TypeScript node into an ESTree node. - * @param node the child ts.Node - * @param parent parentNode - * @param allowPattern flag to determine if patterns are allowed - * @returns the converted ESTree node - */ - converter(node, parent, allowPattern) { - /** - * Exit early for null and undefined - */ - if (!node) { - return null; - } - this.#checkModifiers(node); - const pattern = this.allowPattern; - if (allowPattern !== undefined) { - this.allowPattern = allowPattern; - } - const result = this.convertNode(node, (parent ?? node.parent)); - this.registerTSNodeInNodeMap(node, result); - this.allowPattern = pattern; - return result; - } - /** - * Fixes the exports of the given ts.Node - * @returns the ESTreeNode with fixed exports - */ - fixExports(node, result) { - const isNamespaceNode = ts.isModuleDeclaration(node) && - Boolean(node.flags & ts.NodeFlags.Namespace); - const modifiers = isNamespaceNode - ? (0, node_utils_1.getNamespaceModifiers)(node) - : (0, getModifiers_1.getModifiers)(node); - if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { - /** - * Make sure that original node is registered instead of export - */ - this.registerTSNodeInNodeMap(node, result); - const exportKeyword = modifiers[0]; - const nextModifier = modifiers[1]; - const declarationIsDefault = nextModifier?.kind === SyntaxKind.DefaultKeyword; - const varToken = declarationIsDefault - ? (0, node_utils_1.findNextToken)(nextModifier, this.ast, this.ast) - : (0, node_utils_1.findNextToken)(exportKeyword, this.ast, this.ast); - result.range[0] = varToken.getStart(this.ast); - result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); - if (declarationIsDefault) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, - declaration: result, - range: [exportKeyword.getStart(this.ast), result.range[1]], - exportKind: 'value', - }); - } - const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || - result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; - const isDeclare = 'declare' in result && result.declare; - return this.createNode(node, - // @ts-expect-error - TODO, narrow the types here - this.#withDeprecatedAliasGetter({ - type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, - declaration: result, - specifiers: [], - source: null, - exportKind: isType || isDeclare ? 'type' : 'value', - range: [exportKeyword.getStart(this.ast), result.range[1]], - attributes: [], - }, 'assertions', 'attributes', true)); - } - return result; - } - /** - * Register specific TypeScript node into map with first ESTree node provided - */ - registerTSNodeInNodeMap(node, result) { - if (result && this.options.shouldPreserveNodeMaps) { - if (!this.tsNodeToESTreeNodeMap.has(node)) { - this.tsNodeToESTreeNodeMap.set(node, result); - } - } - } - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertPattern(child, parent) { - return this.converter(child, parent, true); - } - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertChild(child, parent) { - return this.converter(child, parent, false); - } - createNode( - // The 'parent' property will be added later if specified - node, data) { - const result = data; - result.range ??= (0, node_utils_1.getRange)(node, this.ast); - result.loc ??= (0, node_utils_1.getLocFor)(result.range, this.ast); - if (result && this.options.shouldPreserveNodeMaps) { - this.esTreeNodeToTSNodeMap.set(result, node); - } - return result; - } - convertBindingNameWithTypeAnnotation(name, tsType, parent) { - const id = this.convertPattern(name); - if (tsType) { - id.typeAnnotation = this.convertTypeAnnotation(tsType, parent); - this.fixParentLocation(id, id.typeAnnotation.range); - } - return id; - } - /** - * Converts a child into a type annotation. This creates an intermediary - * TypeAnnotation node to match what Flow does. - * @param child The TypeScript AST node to convert. - * @param parent parentNode - * @returns The type annotation node. - */ - convertTypeAnnotation(child, parent) { - // in FunctionType and ConstructorType typeAnnotation has 2 characters `=>` and in other places is just colon - const offset = parent?.kind === SyntaxKind.FunctionType || - parent?.kind === SyntaxKind.ConstructorType - ? 2 - : 1; - const annotationStartCol = child.getFullStart() - offset; - const range = [annotationStartCol, child.end]; - const loc = (0, node_utils_1.getLocFor)(range, this.ast); - return { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAnnotation, - loc, - range, - typeAnnotation: this.convertChild(child), - }; - } - /** - * Coverts body Nodes and add a directive field to StringLiterals - * @param nodes of ts.Node - * @param parent parentNode - * @returns Array of body statements - */ - convertBodyExpressions(nodes, parent) { - let allowDirectives = (0, node_utils_1.canContainDirective)(parent); - return (nodes - .map(statement => { - const child = this.convertChild(statement); - if (allowDirectives) { - if (child?.expression && - ts.isExpressionStatement(statement) && - ts.isStringLiteral(statement.expression)) { - const raw = child.expression.raw; - child.directive = raw.slice(1, -1); - return child; // child can be null, but it's filtered below - } - allowDirectives = false; - } - return child; // child can be null, but it's filtered below - }) - // filter out unknown nodes for now - .filter(statement => statement)); - } - /** - * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node - * @param typeArguments ts.NodeArray typeArguments - * @param node parent used to create this node - * @returns TypeParameterInstantiation node - */ - convertTypeArgumentsToTypeParameterInstantiation(typeArguments, node) { - const greaterThanToken = (0, node_utils_1.findNextToken)(typeArguments, this.ast, this.ast); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterInstantiation, - range: [typeArguments.pos - 1, greaterThanToken.end], - params: typeArguments.map(typeArgument => this.convertChild(typeArgument)), - }); - } - /** - * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node - * @param typeParameters ts.Node typeParameters - * @returns TypeParameterDeclaration node - */ - convertTSTypeParametersToTypeParametersDeclaration(typeParameters) { - const greaterThanToken = (0, node_utils_1.findNextToken)(typeParameters, this.ast, this.ast); - const range = [ - typeParameters.pos - 1, - greaterThanToken.end, - ]; - return { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterDeclaration, - range, - loc: (0, node_utils_1.getLocFor)(range, this.ast), - params: typeParameters.map(typeParameter => this.convertChild(typeParameter)), - }; - } - /** - * Converts an array of ts.Node parameters into an array of ESTreeNode params - * @param parameters An array of ts.Node params to be converted - * @returns an array of converted ESTreeNode params - */ - convertParameters(parameters) { - if (!parameters?.length) { - return []; - } - return parameters.map(param => { - const convertedParam = this.convertChild(param); - convertedParam.decorators = - (0, getModifiers_1.getDecorators)(param)?.map(el => this.convertChild(el)) ?? []; - return convertedParam; - }); - } - convertChainExpression(node, tsNode) { - const { child, isOptional } = (() => { - if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { - return { child: node.object, isOptional: node.optional }; - } - if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { - return { child: node.callee, isOptional: node.optional }; - } - return { child: node.expression, isOptional: false }; - })(); - const isChildUnwrappable = (0, node_utils_1.isChildUnwrappableOptionalChain)(tsNode, child); - if (!isChildUnwrappable && !isOptional) { - return node; - } - if (isChildUnwrappable && (0, node_utils_1.isChainExpression)(child)) { - // unwrap the chain expression child - const newChild = child.expression; - if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { - node.object = newChild; - } - else if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { - node.callee = newChild; - } - else { - node.expression = newChild; - } - } - return this.createNode(tsNode, { - type: ts_estree_1.AST_NODE_TYPES.ChainExpression, - expression: node, - }); - } - /** - * For nodes that are copied directly from the TypeScript AST into - * ESTree mostly as-is. The only difference is the addition of a type - * property instead of a kind property. Recursively copies all children. - */ - deeplyCopy(node) { - if (node.kind === ts.SyntaxKind.JSDocFunctionType) { - this.#throwError(node, 'JSDoc types can only be used inside documentation comments.'); - } - const customType = `TS${SyntaxKind[node.kind]}`; - /** - * If the "errorOnUnknownASTType" option is set to true, throw an error, - * otherwise fallback to just including the unknown type as-is. - */ - if (this.options.errorOnUnknownASTType && !ts_estree_1.AST_NODE_TYPES[customType]) { - throw new Error(`Unknown AST_NODE_TYPE: "${customType}"`); - } - const result = this.createNode(node, { - type: customType, - }); - if ('type' in node) { - result.typeAnnotation = - node.type && 'kind' in node.type && ts.isTypeNode(node.type) - ? this.convertTypeAnnotation(node.type, node) - : null; - } - if ('typeArguments' in node) { - result.typeArguments = - node.typeArguments && 'pos' in node.typeArguments - ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) - : null; - } - if ('typeParameters' in node) { - result.typeParameters = - node.typeParameters && 'pos' in node.typeParameters - ? this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters) - : null; - } - const decorators = (0, getModifiers_1.getDecorators)(node); - if (decorators?.length) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - // keys we never want to clone from the base typescript node as they - // introduce garbage into our AST - const KEYS_TO_NOT_COPY = new Set([ - '_children', - 'decorators', - 'end', - 'flags', - 'illegalDecorators', - 'heritageClauses', - 'locals', - 'localSymbol', - 'jsDoc', - 'kind', - 'modifierFlagsCache', - 'modifiers', - 'nextContainer', - 'parent', - 'pos', - 'symbol', - 'transformFlags', - 'type', - 'typeArguments', - 'typeParameters', - ]); - Object.entries(node) - .filter(([key]) => !KEYS_TO_NOT_COPY.has(key)) - .forEach(([key, value]) => { - if (Array.isArray(value)) { - result[key] = value.map(el => this.convertChild(el)); - } - else if (value && typeof value === 'object' && value.kind) { - // need to check node[key].kind to ensure we don't try to convert a symbol - result[key] = this.convertChild(value); - } - else { - result[key] = value; - } - }); - return result; - } - convertJSXIdentifier(node) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.getText(), - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - convertJSXNamespaceOrIdentifier(node) { - // TypeScript@5.1 added in ts.JsxNamespacedName directly - // We prefer using that if it's relevant for this node type - if (node.kind === ts.SyntaxKind.JsxNamespacedName) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, - namespace: this.createNode(node.namespace, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.namespace.text, - }), - name: this.createNode(node.name, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.name.text, - }), - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - // TypeScript@<5.1 has to manually parse the JSX attributes - const text = node.getText(); - const colonIndex = text.indexOf(':'); - // this is intentional we can ignore conversion if `:` is in first character - if (colonIndex > 0) { - const range = (0, node_utils_1.getRange)(node, this.ast); - // @ts-expect-error -- TypeScript@<5.1 doesn't have ts.JsxNamespacedName - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, - namespace: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: text.slice(0, colonIndex), - range: [range[0], range[0] + colonIndex], - }), - name: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: text.slice(colonIndex + 1), - range: [range[0] + colonIndex + 1, range[1]], - }), - range, - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - return this.convertJSXIdentifier(node); - } - /** - * Converts a TypeScript JSX node.tagName into an ESTree node.name - * @param node the tagName object from a JSX ts.Node - * @returns the converted ESTree name object - */ - convertJSXTagName(node, parent) { - let result; - switch (node.kind) { - case SyntaxKind.PropertyAccessExpression: - if (node.name.kind === SyntaxKind.PrivateIdentifier) { - // This is one of the few times where TS explicitly errors, and doesn't even gracefully handle the syntax. - // So we shouldn't ever get into this state to begin with. - this.#throwError(node.name, 'Non-private identifier expected.'); - } - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXMemberExpression, - object: this.convertJSXTagName(node.expression, parent), - property: this.convertJSXIdentifier(node.name), - }); - break; - case SyntaxKind.ThisKeyword: - case SyntaxKind.Identifier: - default: - return this.convertJSXNamespaceOrIdentifier(node); - } - this.registerTSNodeInNodeMap(node, result); - return result; - } - convertMethodSignature(node) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSMethodSignature, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - computed: (0, node_utils_1.isComputedProperty)(node.name), - key: this.convertChild(node.name), - kind: (() => { - switch (node.kind) { - case SyntaxKind.GetAccessor: - return 'get'; - case SyntaxKind.SetAccessor: - return 'set'; - case SyntaxKind.MethodSignature: - return 'method'; - } - })(), - optional: (0, node_utils_1.isOptional)(node), - params: this.convertParameters(node.parameters), - returnType: node.type && this.convertTypeAnnotation(node.type, node), - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - } - convertImportAttributes(node) { - return node === undefined - ? [] - : node.elements.map(element => this.convertChild(element)); - } - /** - * Uses the provided range location to adjust the location data of the given Node - * @param result The node that will have its location data mutated - * @param childRange The child node range used to expand location - */ - fixParentLocation(result, childRange) { - if (childRange[0] < result.range[0]) { - result.range[0] = childRange[0]; - result.loc.start = (0, node_utils_1.getLineAndCharacterFor)(result.range[0], this.ast); - } - if (childRange[1] > result.range[1]) { - result.range[1] = childRange[1]; - result.loc.end = (0, node_utils_1.getLineAndCharacterFor)(result.range[1], this.ast); - } - } - assertModuleSpecifier(node, allowNull) { - if (!allowNull && node.moduleSpecifier == null) { - this.#throwUnlessAllowInvalidAST(node, 'Module specifier must be a string literal.'); - } - if (node.moduleSpecifier && - node.moduleSpecifier?.kind !== SyntaxKind.StringLiteral) { - this.#throwUnlessAllowInvalidAST(node.moduleSpecifier, 'Module specifier must be a string literal.'); - } - } - /** - * Converts a TypeScript node into an ESTree node. - * The core of the conversion logic: - * Identify and convert each relevant TypeScript SyntaxKind - * @returns the converted ESTree node - */ - convertNode(node, parent) { - switch (node.kind) { - case SyntaxKind.SourceFile: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Program, - body: this.convertBodyExpressions(node.statements, node), - comments: undefined, - range: [node.getStart(this.ast), node.endOfFileToken.end], - sourceType: node.externalModuleIndicator ? 'module' : 'script', - tokens: undefined, - }); - } - case SyntaxKind.Block: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.BlockStatement, - body: this.convertBodyExpressions(node.statements, node), - }); - } - case SyntaxKind.Identifier: { - if ((0, node_utils_1.isThisInTypeQuery)(node)) { - // special case for `typeof this.foo` - TS emits an Identifier for `this` - // but we want to treat it as a ThisExpression for consistency - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThisExpression, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - decorators: [], - name: node.text, - optional: false, - typeAnnotation: undefined, - }); - } - case SyntaxKind.PrivateIdentifier: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.PrivateIdentifier, - // typescript includes the `#` in the text - name: node.text.slice(1), - }); - } - case SyntaxKind.WithStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.WithStatement, - object: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - // Control Flow - case SyntaxKind.ReturnStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ReturnStatement, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.LabeledStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.LabeledStatement, - label: this.convertChild(node.label), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ContinueStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ContinueStatement, - label: this.convertChild(node.label), - }); - case SyntaxKind.BreakStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.BreakStatement, - label: this.convertChild(node.label), - }); - // Choice - case SyntaxKind.IfStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.IfStatement, - test: this.convertChild(node.expression), - consequent: this.convertChild(node.thenStatement), - alternate: this.convertChild(node.elseStatement), - }); - case SyntaxKind.SwitchStatement: - if (node.caseBlock.clauses.filter(switchCase => switchCase.kind === SyntaxKind.DefaultClause).length > 1) { - this.#throwError(node, "A 'default' clause cannot appear more than once in a 'switch' statement."); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SwitchStatement, - discriminant: this.convertChild(node.expression), - cases: node.caseBlock.clauses.map(el => this.convertChild(el)), - }); - case SyntaxKind.CaseClause: - case SyntaxKind.DefaultClause: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SwitchCase, - // expression is present in case only - test: node.kind === SyntaxKind.CaseClause - ? this.convertChild(node.expression) - : null, - consequent: node.statements.map(el => this.convertChild(el)), - }); - // Exceptions - case SyntaxKind.ThrowStatement: - if (node.expression.end === node.expression.pos) { - this.#throwUnlessAllowInvalidAST(node, 'A throw statement must throw an expression.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThrowStatement, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TryStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TryStatement, - block: this.convertChild(node.tryBlock), - handler: this.convertChild(node.catchClause), - finalizer: this.convertChild(node.finallyBlock), - }); - case SyntaxKind.CatchClause: - if (node.variableDeclaration?.initializer) { - this.#throwError(node.variableDeclaration.initializer, 'Catch clause variable cannot have an initializer.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.CatchClause, - param: node.variableDeclaration - ? this.convertBindingNameWithTypeAnnotation(node.variableDeclaration.name, node.variableDeclaration.type) - : null, - body: this.convertChild(node.block), - }); - // Loops - case SyntaxKind.WhileStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.WhileStatement, - test: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - /** - * Unlike other parsers, TypeScript calls a "DoWhileStatement" - * a "DoStatement" - */ - case SyntaxKind.DoStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.DoWhileStatement, - test: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForStatement, - init: this.convertChild(node.initializer), - test: this.convertChild(node.condition), - update: this.convertChild(node.incrementor), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForInStatement: - this.#checkForStatementDeclaration(node.initializer, node.kind); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForInStatement, - left: this.convertPattern(node.initializer), - right: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForOfStatement: { - this.#checkForStatementDeclaration(node.initializer, node.kind); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForOfStatement, - left: this.convertPattern(node.initializer), - right: this.convertChild(node.expression), - body: this.convertChild(node.statement), - await: Boolean(node.awaitModifier && - node.awaitModifier.kind === SyntaxKind.AwaitKeyword), - }); - } - // Declarations - case SyntaxKind.FunctionDeclaration: { - const isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); - const isAsync = (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node); - const isGenerator = !!node.asteriskToken; - if (isDeclare) { - if (node.body) { - this.#throwError(node, 'An implementation cannot be declared in ambient contexts.'); - } - else if (isAsync) { - this.#throwError(node, "'async' modifier cannot be used in an ambient context."); - } - else if (isGenerator) { - this.#throwError(node, 'Generators are not allowed in an ambient context.'); - } - } - else if (!node.body && isGenerator) { - this.#throwError(node, 'A function signature cannot be declared as a generator.'); - } - const result = this.createNode(node, { - // declare implies no body due to the invariant above - type: !node.body - ? ts_estree_1.AST_NODE_TYPES.TSDeclareFunction - : ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, - async: isAsync, - body: this.convertChild(node.body) || undefined, - declare: isDeclare, - expression: false, - generator: isGenerator, - id: this.convertChild(node.name), - params: this.convertParameters(node.parameters), - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - return this.fixExports(node, result); - } - case SyntaxKind.VariableDeclaration: { - const definite = !!node.exclamationToken; - const init = this.convertChild(node.initializer); - const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node); - if (definite) { - if (init) { - this.#throwError(node, 'Declarations with initializers cannot also have definite assignment assertions.'); - } - else if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier || - !id.typeAnnotation) { - this.#throwError(node, 'Declarations with definite assignment assertions must also have type annotations.'); - } - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator, - definite, - id, - init, - }); - } - case SyntaxKind.VariableStatement: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, - declarations: node.declarationList.declarations.map(el => this.convertChild(el)), - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - kind: (0, node_utils_1.getDeclarationKind)(node.declarationList), - }); - if (!result.declarations.length) { - this.#throwUnlessAllowInvalidAST(node, 'A variable declaration list must have at least one variable declarator.'); - } - if (result.kind === 'using' || result.kind === 'await using') { - node.declarationList.declarations.forEach((declaration, i) => { - if (result.declarations[i].init == null) { - this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`); - } - if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { - this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); - } - }); - } - // Definite assignment only allowed for non-declare let and var - if (result.declare || - ['using', 'await using', 'const'].includes(result.kind)) { - node.declarationList.declarations.forEach((declaration, i) => { - if (result.declarations[i].definite) { - this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`); - } - }); - } - if (result.declare) { - node.declarationList.declarations.forEach((declaration, i) => { - if (result.declarations[i].init && - (['let', 'var'].includes(result.kind) || - result.declarations[i].id.typeAnnotation)) { - this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`); - } - }); - // Theoretically, only certain initializers are allowed for declare const, - // (TS1254: A 'const' initializer in an ambient context must be a string - // or numeric literal or literal enum reference.) but we just allow - // all expressions - } - // Note! No-declare does not mean the variable is not ambient, because - // it can be further nested in other declare contexts. Therefore we cannot - // check for const initializers. - /** - * Semantically, decorators are not allowed on variable declarations, - * Pre 4.8 TS would include them in the AST, so we did as well. - * However as of 4.8 TS no longer includes it (as it is, well, invalid). - * - * So for consistency across versions, we no longer include it either. - */ - return this.fixExports(node, result); - } - // mostly for for-of, for-in - case SyntaxKind.VariableDeclarationList: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, - declarations: node.declarations.map(el => this.convertChild(el)), - declare: false, - kind: (0, node_utils_1.getDeclarationKind)(node), - }); - if (result.kind === 'using' || result.kind === 'await using') { - node.declarations.forEach((declaration, i) => { - if (result.declarations[i].init != null) { - this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`); - } - if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { - this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`); - } - }); - } - return result; - } - // Expressions - case SyntaxKind.ExpressionStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExpressionStatement, - directive: undefined, - expression: this.convertChild(node.expression), - }); - case SyntaxKind.ThisKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThisExpression, - }); - case SyntaxKind.ArrayLiteralExpression: { - // TypeScript uses ArrayLiteralExpression in destructuring assignment, too - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, - decorators: [], - elements: node.elements.map(el => this.convertPattern(el)), - optional: false, - typeAnnotation: undefined, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, - elements: node.elements.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.ObjectLiteralExpression: { - // TypeScript uses ObjectLiteralExpression in destructuring assignment, too - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, - decorators: [], - optional: false, - properties: node.properties.map(el => this.convertPattern(el)), - typeAnnotation: undefined, - }); - } - const properties = []; - for (const property of node.properties) { - if ((property.kind === SyntaxKind.GetAccessor || - property.kind === SyntaxKind.SetAccessor || - property.kind === SyntaxKind.MethodDeclaration) && - !property.body) { - this.#throwUnlessAllowInvalidAST(property.end - 1, "'{' expected."); - } - properties.push(this.convertChild(property)); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectExpression, - properties, - }); - } - case SyntaxKind.PropertyAssignment: { - // eslint-disable-next-line deprecation/deprecation - const { questionToken, exclamationToken } = node; - if (questionToken) { - this.#throwError(questionToken, 'A property assignment cannot have a question token.'); - } - if (exclamationToken) { - this.#throwError(exclamationToken, 'A property assignment cannot have an exclamation token.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: this.converter(node.initializer, node, this.allowPattern), - computed: (0, node_utils_1.isComputedProperty)(node.name), - method: false, - optional: false, - shorthand: false, - kind: 'init', - }); - } - case SyntaxKind.ShorthandPropertyAssignment: { - // eslint-disable-next-line deprecation/deprecation - const { modifiers, questionToken, exclamationToken } = node; - if (modifiers) { - this.#throwError(modifiers[0], 'A shorthand property assignment cannot have modifiers.'); - } - if (questionToken) { - this.#throwError(questionToken, 'A shorthand property assignment cannot have a question token.'); - } - if (exclamationToken) { - this.#throwError(exclamationToken, 'A shorthand property assignment cannot have an exclamation token.'); - } - if (node.objectAssignmentInitializer) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: this.convertPattern(node.name), - optional: false, - right: this.convertChild(node.objectAssignmentInitializer), - typeAnnotation: undefined, - }), - computed: false, - method: false, - optional: false, - shorthand: true, - kind: 'init', - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - computed: false, - key: this.convertChild(node.name), - kind: 'init', - method: false, - optional: false, - shorthand: true, - value: this.convertChild(node.name), - }); - } - case SyntaxKind.ComputedPropertyName: - return this.convertChild(node.expression); - case SyntaxKind.PropertyDeclaration: { - const isAbstract = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node); - if (isAbstract && node.initializer) { - this.#throwError(node.initializer, `Abstract property cannot have an initializer.`); - } - const isAccessor = (0, node_utils_1.hasModifier)(SyntaxKind.AccessorKeyword, node); - const type = (() => { - if (isAccessor) { - if (isAbstract) { - return ts_estree_1.AST_NODE_TYPES.TSAbstractAccessorProperty; - } - return ts_estree_1.AST_NODE_TYPES.AccessorProperty; - } - if (isAbstract) { - return ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition; - } - return ts_estree_1.AST_NODE_TYPES.PropertyDefinition; - })(); - const key = this.convertChild(node.name); - return this.createNode(node, { - type, - key, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - value: isAbstract ? null : this.convertChild(node.initializer), - computed: (0, node_utils_1.isComputedProperty)(node.name), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), - decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), - typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), - optional: (key.type === ts_estree_1.AST_NODE_TYPES.Literal || - node.name.kind === SyntaxKind.Identifier || - node.name.kind === SyntaxKind.ComputedPropertyName || - node.name.kind === SyntaxKind.PrivateIdentifier) && - !!node.questionToken, - definite: !!node.exclamationToken, - }); - } - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: { - if (node.parent.kind === SyntaxKind.InterfaceDeclaration || - node.parent.kind === SyntaxKind.TypeLiteral) { - return this.convertMethodSignature(node); - } - } - // otherwise, it is a non-type accessor - intentional fallthrough - case SyntaxKind.MethodDeclaration: { - const method = this.createNode(node, { - type: !node.body - ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression - : ts_estree_1.AST_NODE_TYPES.FunctionExpression, - id: null, - generator: !!node.asteriskToken, - expression: false, // ESTreeNode as ESTreeNode here - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - body: this.convertChild(node.body), - declare: false, - range: [node.parameters.pos - 1, node.end], - params: [], - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - if (method.typeParameters) { - this.fixParentLocation(method, method.typeParameters.range); - } - let result; - if (parent.kind === SyntaxKind.ObjectLiteralExpression) { - method.params = node.parameters.map(el => this.convertChild(el)); - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: method, - computed: (0, node_utils_1.isComputedProperty)(node.name), - optional: !!node.questionToken, - method: node.kind === SyntaxKind.MethodDeclaration, - shorthand: false, - kind: 'init', - }); - } - else { - // class - /** - * Unlike in object literal methods, class method params can have decorators - */ - method.params = this.convertParameters(node.parameters); - /** - * TypeScript class methods can be defined as "abstract" - */ - const methodDefinitionType = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) - ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition - : ts_estree_1.AST_NODE_TYPES.MethodDefinition; - result = this.createNode(node, { - type: methodDefinitionType, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - computed: (0, node_utils_1.isComputedProperty)(node.name), - decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], - key: this.convertChild(node.name), - kind: 'method', - optional: !!node.questionToken, - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - value: method, - }); - } - if (node.kind === SyntaxKind.GetAccessor) { - result.kind = 'get'; - } - else if (node.kind === SyntaxKind.SetAccessor) { - result.kind = 'set'; - } - else if (!result.static && - node.name.kind === SyntaxKind.StringLiteral && - node.name.text === 'constructor' && - result.type !== ts_estree_1.AST_NODE_TYPES.Property) { - result.kind = 'constructor'; - } - return result; - } - // TypeScript uses this even for static methods named "constructor" - case SyntaxKind.Constructor: { - const lastModifier = (0, node_utils_1.getLastModifier)(node); - const constructorToken = (lastModifier && (0, node_utils_1.findNextToken)(lastModifier, node, this.ast)) ?? - node.getFirstToken(); - const constructor = this.createNode(node, { - type: !node.body - ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression - : ts_estree_1.AST_NODE_TYPES.FunctionExpression, - async: false, - body: this.convertChild(node.body), - declare: false, - expression: false, // is not present in ESTreeNode - generator: false, - id: null, - params: this.convertParameters(node.parameters), - range: [node.parameters.pos - 1, node.end], - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - if (constructor.typeParameters) { - this.fixParentLocation(constructor, constructor.typeParameters.range); - } - const constructorKey = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - decorators: [], - name: 'constructor', - optional: false, - range: [constructorToken.getStart(this.ast), constructorToken.end], - typeAnnotation: undefined, - }); - const isStatic = (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node); - return this.createNode(node, { - type: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) - ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition - : ts_estree_1.AST_NODE_TYPES.MethodDefinition, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - computed: false, - decorators: [], - optional: false, - key: constructorKey, - kind: isStatic ? 'method' : 'constructor', - override: false, - static: isStatic, - value: constructor, - }); - } - case SyntaxKind.FunctionExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.FunctionExpression, - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - body: this.convertChild(node.body), - declare: false, - expression: false, - generator: !!node.asteriskToken, - id: this.convertChild(node.name), - params: this.convertParameters(node.parameters), - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - } - case SyntaxKind.SuperKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Super, - }); - case SyntaxKind.ArrayBindingPattern: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, - decorators: [], - elements: node.elements.map(el => this.convertPattern(el)), - optional: false, - typeAnnotation: undefined, - }); - // occurs with missing array elements like [,] - case SyntaxKind.OmittedExpression: - return null; - case SyntaxKind.ObjectBindingPattern: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, - decorators: [], - optional: false, - properties: node.elements.map(el => this.convertPattern(el)), - typeAnnotation: undefined, - }); - case SyntaxKind.BindingElement: { - if (parent.kind === SyntaxKind.ArrayBindingPattern) { - const arrayItem = this.convertChild(node.name, parent); - if (node.initializer) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: arrayItem, - optional: false, - right: this.convertChild(node.initializer), - typeAnnotation: undefined, - }); - } - else if (node.dotDotDotToken) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: arrayItem, - decorators: [], - optional: false, - typeAnnotation: undefined, - value: undefined, - }); - } - return arrayItem; - } - let result; - if (node.dotDotDotToken) { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertChild(node.propertyName ?? node.name), - decorators: [], - optional: false, - typeAnnotation: undefined, - value: undefined, - }); - } - else { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.propertyName ?? node.name), - value: this.convertChild(node.name), - computed: Boolean(node.propertyName && - node.propertyName.kind === SyntaxKind.ComputedPropertyName), - method: false, - optional: false, - shorthand: !node.propertyName, - kind: 'init', - }); - } - if (node.initializer) { - result.value = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: this.convertChild(node.name), - optional: false, - range: [node.name.getStart(this.ast), node.initializer.end], - right: this.convertChild(node.initializer), - typeAnnotation: undefined, - }); - } - return result; - } - case SyntaxKind.ArrowFunction: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, - generator: false, - id: null, - params: this.convertParameters(node.parameters), - body: this.convertChild(node.body), - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - expression: node.body.kind !== SyntaxKind.Block, - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - } - case SyntaxKind.YieldExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.YieldExpression, - delegate: !!node.asteriskToken, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.AwaitExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AwaitExpression, - argument: this.convertChild(node.expression), - }); - // Template Literals - case SyntaxKind.NoSubstitutionTemplateLiteral: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, - quasis: [ - this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateElement, - value: { - raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - 1), - cooked: node.text, - }, - tail: true, - }), - ], - expressions: [], - }); - case SyntaxKind.TemplateExpression: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, - quasis: [this.convertChild(node.head)], - expressions: [], - }); - node.templateSpans.forEach(templateSpan => { - result.expressions.push(this.convertChild(templateSpan.expression)); - result.quasis.push(this.convertChild(templateSpan.literal)); - }); - return result; - } - case SyntaxKind.TaggedTemplateExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TaggedTemplateExpression, - typeArguments: node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), - tag: this.convertChild(node.tag), - quasi: this.convertChild(node.template), - }); - case SyntaxKind.TemplateHead: - case SyntaxKind.TemplateMiddle: - case SyntaxKind.TemplateTail: { - const tail = node.kind === SyntaxKind.TemplateTail; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateElement, - value: { - raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - (tail ? 1 : 2)), - cooked: node.text, - }, - tail, - }); - } - // Patterns - case SyntaxKind.SpreadAssignment: - case SyntaxKind.SpreadElement: { - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertPattern(node.expression), - decorators: [], - optional: false, - typeAnnotation: undefined, - value: undefined, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SpreadElement, - argument: this.convertChild(node.expression), - }); - } - case SyntaxKind.Parameter: { - let parameter; - let result; - if (node.dotDotDotToken) { - parameter = result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertChild(node.name), - decorators: [], - optional: false, - typeAnnotation: undefined, - value: undefined, - }); - } - else if (node.initializer) { - parameter = this.convertChild(node.name); - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: parameter, - optional: false, - right: this.convertChild(node.initializer), - typeAnnotation: undefined, - }); - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers) { - // AssignmentPattern should not contain modifiers in range - result.range[0] = parameter.range[0]; - result.loc = (0, node_utils_1.getLocFor)(result.range, this.ast); - } - } - else { - parameter = result = this.convertChild(node.name, parent); - } - if (node.type) { - parameter.typeAnnotation = this.convertTypeAnnotation(node.type, node); - this.fixParentLocation(parameter, parameter.typeAnnotation.range); - } - if (node.questionToken) { - if (node.questionToken.end > parameter.range[1]) { - parameter.range[1] = node.questionToken.end; - parameter.loc.end = (0, node_utils_1.getLineAndCharacterFor)(parameter.range[1], this.ast); - } - parameter.optional = true; - } - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSParameterProperty, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - decorators: [], - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), - parameter: result, - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - }); - } - return result; - } - // Classes - case SyntaxKind.ClassDeclaration: - if (!node.name && - (!(0, node_utils_1.hasModifier)(ts.SyntaxKind.ExportKeyword, node) || - !(0, node_utils_1.hasModifier)(ts.SyntaxKind.DefaultKeyword, node))) { - this.#throwUnlessAllowInvalidAST(node, "A class declaration without the 'default' modifier must have a name."); - } - /* intentional fallthrough */ - case SyntaxKind.ClassExpression: { - const heritageClauses = node.heritageClauses ?? []; - const classNodeType = node.kind === SyntaxKind.ClassDeclaration - ? ts_estree_1.AST_NODE_TYPES.ClassDeclaration - : ts_estree_1.AST_NODE_TYPES.ClassExpression; - let extendsClause; - let implementsClause; - for (const heritageClause of heritageClauses) { - const { token, types } = heritageClause; - if (types.length === 0) { - this.#throwUnlessAllowInvalidAST(heritageClause, `'${ts.tokenToString(token)}' list cannot be empty.`); - } - if (token === SyntaxKind.ExtendsKeyword) { - if (extendsClause) { - this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause already seen."); - } - if (implementsClause) { - this.#throwUnlessAllowInvalidAST(heritageClause, "'extends' clause must precede 'implements' clause."); - } - if (types.length > 1) { - this.#throwUnlessAllowInvalidAST(types[1], 'Classes can only extend a single class.'); - } - extendsClause ??= heritageClause; - } - else if (token === SyntaxKind.ImplementsKeyword) { - if (implementsClause) { - this.#throwUnlessAllowInvalidAST(heritageClause, "'implements' clause already seen."); - } - implementsClause ??= heritageClause; - } - } - const result = this.createNode(node, { - type: classNodeType, - abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), - body: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ClassBody, - body: node.members - .filter(node_utils_1.isESTreeClassMember) - .map(el => this.convertChild(el)), - range: [node.members.pos - 1, node.end], - }), - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - decorators: (0, getModifiers_1.getDecorators)(node)?.map(el => this.convertChild(el)) ?? [], - id: this.convertChild(node.name), - implements: implementsClause?.types.map(el => this.convertChild(el)) ?? [], - superClass: extendsClause?.types[0] - ? this.convertChild(extendsClause.types[0].expression) - : null, - superTypeArguments: undefined, - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - if (extendsClause?.types[0]?.typeArguments) { - result.superTypeArguments = - this.convertTypeArgumentsToTypeParameterInstantiation(extendsClause.types[0].typeArguments, extendsClause.types[0]); - } - return this.fixExports(node, result); - } - // Modules - case SyntaxKind.ModuleBlock: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSModuleBlock, - body: this.convertBodyExpressions(node.statements, node), - }); - case SyntaxKind.ImportDeclaration: { - this.assertModuleSpecifier(node, false); - const result = this.createNode(node, this.#withDeprecatedAliasGetter({ - type: ts_estree_1.AST_NODE_TYPES.ImportDeclaration, - source: this.convertChild(node.moduleSpecifier), - specifiers: [], - importKind: 'value', - attributes: this.convertImportAttributes( - // eslint-disable-next-line deprecation/deprecation -- TS <5.3 - node.attributes ?? node.assertClause), - }, 'assertions', 'attributes', true)); - if (node.importClause) { - if (node.importClause.isTypeOnly) { - result.importKind = 'type'; - } - if (node.importClause.name) { - result.specifiers.push(this.convertChild(node.importClause)); - } - if (node.importClause.namedBindings) { - switch (node.importClause.namedBindings.kind) { - case SyntaxKind.NamespaceImport: - result.specifiers.push(this.convertChild(node.importClause.namedBindings)); - break; - case SyntaxKind.NamedImports: - result.specifiers = result.specifiers.concat(node.importClause.namedBindings.elements.map(el => this.convertChild(el))); - break; - } - } - } - return result; - } - case SyntaxKind.NamespaceImport: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportNamespaceSpecifier, - local: this.convertChild(node.name), - }); - case SyntaxKind.ImportSpecifier: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportSpecifier, - local: this.convertChild(node.name), - imported: this.convertChild(node.propertyName ?? node.name), - importKind: node.isTypeOnly ? 'type' : 'value', - }); - case SyntaxKind.ImportClause: { - const local = this.convertChild(node.name); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportDefaultSpecifier, - local, - range: local.range, - }); - } - case SyntaxKind.ExportDeclaration: { - if (node.exportClause?.kind === SyntaxKind.NamedExports) { - this.assertModuleSpecifier(node, true); - return this.createNode(node, this.#withDeprecatedAliasGetter({ - type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, - source: this.convertChild(node.moduleSpecifier), - specifiers: node.exportClause.elements.map(el => this.convertChild(el)), - exportKind: node.isTypeOnly ? 'type' : 'value', - declaration: null, - attributes: this.convertImportAttributes( - // eslint-disable-next-line deprecation/deprecation -- TS <5.3 - node.attributes ?? node.assertClause), - }, 'assertions', 'attributes', true)); - } - this.assertModuleSpecifier(node, false); - return this.createNode(node, this.#withDeprecatedAliasGetter({ - type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, - source: this.convertChild(node.moduleSpecifier), - exportKind: node.isTypeOnly ? 'type' : 'value', - exported: node.exportClause?.kind === SyntaxKind.NamespaceExport - ? this.convertChild(node.exportClause.name) - : null, - attributes: this.convertImportAttributes( - // eslint-disable-next-line deprecation/deprecation -- TS <5.3 - node.attributes ?? node.assertClause), - }, 'assertions', 'attributes', true)); - } - case SyntaxKind.ExportSpecifier: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportSpecifier, - local: this.convertChild(node.propertyName ?? node.name), - exported: this.convertChild(node.name), - exportKind: node.isTypeOnly ? 'type' : 'value', - }); - case SyntaxKind.ExportAssignment: - if (node.isExportEquals) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSExportAssignment, - expression: this.convertChild(node.expression), - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, - declaration: this.convertChild(node.expression), - exportKind: 'value', - }); - // Unary Operations - case SyntaxKind.PrefixUnaryExpression: - case SyntaxKind.PostfixUnaryExpression: { - const operator = (0, node_utils_1.getTextForTokenKind)(node.operator); - /** - * ESTree uses UpdateExpression for ++/-- - */ - if (operator === '++' || operator === '--') { - if (!(0, node_utils_1.isValidAssignmentTarget)(node.operand)) { - this.#throwUnlessAllowInvalidAST(node.operand, 'Invalid left-hand side expression in unary operation'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UpdateExpression, - operator, - prefix: node.kind === SyntaxKind.PrefixUnaryExpression, - argument: this.convertChild(node.operand), - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator, - prefix: node.kind === SyntaxKind.PrefixUnaryExpression, - argument: this.convertChild(node.operand), - }); - } - case SyntaxKind.DeleteExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'delete', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.VoidExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'void', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TypeOfExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'typeof', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TypeOperator: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeOperator, - operator: (0, node_utils_1.getTextForTokenKind)(node.operator), - typeAnnotation: this.convertChild(node.type), - }); - // Binary Operations - case SyntaxKind.BinaryExpression: { - // TypeScript uses BinaryExpression for sequences as well - if ((0, node_utils_1.isComma)(node.operatorToken)) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SequenceExpression, - expressions: [], - }); - const left = this.convertChild(node.left); - if (left.type === ts_estree_1.AST_NODE_TYPES.SequenceExpression && - node.left.kind !== SyntaxKind.ParenthesizedExpression) { - result.expressions = result.expressions.concat(left.expressions); - } - else { - result.expressions.push(left); - } - result.expressions.push(this.convertChild(node.right)); - return result; - } - const expressionType = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); - if (this.allowPattern && - expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - decorators: [], - left: this.convertPattern(node.left, node), - optional: false, - right: this.convertChild(node.right), - typeAnnotation: undefined, - }); - } - return this.createNode(node, { - ...expressionType, - left: this.converter(node.left, node, expressionType.type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), - right: this.convertChild(node.right), - }); - } - case SyntaxKind.PropertyAccessExpression: { - const object = this.convertChild(node.expression); - const property = this.convertChild(node.name); - const computed = false; - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MemberExpression, - object, - property, - computed, - optional: node.questionDotToken !== undefined, - }); - return this.convertChainExpression(result, node); - } - case SyntaxKind.ElementAccessExpression: { - const object = this.convertChild(node.expression); - const property = this.convertChild(node.argumentExpression); - const computed = true; - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MemberExpression, - object, - property, - computed, - optional: node.questionDotToken !== undefined, - }); - return this.convertChainExpression(result, node); - } - case SyntaxKind.CallExpression: { - if (node.expression.kind === SyntaxKind.ImportKeyword) { - if (node.arguments.length !== 1 && node.arguments.length !== 2) { - this.#throwUnlessAllowInvalidAST(node.arguments[2] ?? node, 'Dynamic import requires exactly one or two arguments.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportExpression, - source: this.convertChild(node.arguments[0]), - attributes: node.arguments[1] - ? this.convertChild(node.arguments[1]) - : null, - }); - } - const callee = this.convertChild(node.expression); - const args = node.arguments.map(el => this.convertChild(el)); - const typeArguments = node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.CallExpression, - callee, - arguments: args, - optional: node.questionDotToken !== undefined, - typeArguments, - }); - return this.convertChainExpression(result, node); - } - case SyntaxKind.NewExpression: { - const typeArguments = node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node); - // NOTE - NewExpression cannot have an optional chain in it - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.NewExpression, - arguments: node.arguments - ? node.arguments.map(el => this.convertChild(el)) - : [], - callee: this.convertChild(node.expression), - typeArguments, - }); - } - case SyntaxKind.ConditionalExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ConditionalExpression, - test: this.convertChild(node.condition), - consequent: this.convertChild(node.whenTrue), - alternate: this.convertChild(node.whenFalse), - }); - case SyntaxKind.MetaProperty: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MetaProperty, - meta: this.createNode( - // TODO: do we really want to convert it to Token? - node.getFirstToken(), { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - decorators: [], - name: (0, node_utils_1.getTextForTokenKind)(node.keywordToken), - optional: false, - typeAnnotation: undefined, - }), - property: this.convertChild(node.name), - }); - } - case SyntaxKind.Decorator: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Decorator, - expression: this.convertChild(node.expression), - }); - } - // Literals - case SyntaxKind.StringLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: parent.kind === SyntaxKind.JsxAttribute - ? (0, node_utils_1.unescapeStringLiteralText)(node.text) - : node.text, - raw: node.getText(), - }); - } - case SyntaxKind.NumericLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: Number(node.text), - raw: node.getText(), - }); - } - case SyntaxKind.BigIntLiteral: { - const range = (0, node_utils_1.getRange)(node, this.ast); - const rawValue = this.ast.text.slice(range[0], range[1]); - const bigint = rawValue - // remove suffix `n` - .slice(0, -1) - // `BigInt` doesn't accept numeric separator - // and `bigint` property should not include numeric separator - .replace(/_/g, ''); - const value = typeof BigInt !== 'undefined' ? BigInt(bigint) : null; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - raw: rawValue, - value: value, - bigint: value == null ? bigint : String(value), - range, - }); - } - case SyntaxKind.RegularExpressionLiteral: { - const pattern = node.text.slice(1, node.text.lastIndexOf('/')); - const flags = node.text.slice(node.text.lastIndexOf('/') + 1); - let regex = null; - try { - regex = new RegExp(pattern, flags); - } - catch { - // Intentionally blank, so regex stays null - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: regex, - raw: node.text, - regex: { - pattern, - flags, - }, - }); - } - case SyntaxKind.TrueKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: true, - raw: 'true', - }); - case SyntaxKind.FalseKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: false, - raw: 'false', - }); - case SyntaxKind.NullKeyword: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: null, - raw: 'null', - }); - } - case SyntaxKind.EmptyStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.EmptyStatement, - }); - case SyntaxKind.DebuggerStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.DebuggerStatement, - }); - // JSX - case SyntaxKind.JsxElement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXElement, - openingElement: this.convertChild(node.openingElement), - closingElement: this.convertChild(node.closingElement), - children: node.children.map(el => this.convertChild(el)), - }); - case SyntaxKind.JsxFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXFragment, - openingFragment: this.convertChild(node.openingFragment), - closingFragment: this.convertChild(node.closingFragment), - children: node.children.map(el => this.convertChild(el)), - }); - case SyntaxKind.JsxSelfClosingElement: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXElement, - /** - * Convert SyntaxKind.JsxSelfClosingElement to SyntaxKind.JsxOpeningElement, - * TypeScript does not seem to have the idea of openingElement when tag is self-closing - */ - openingElement: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, - typeArguments: node.typeArguments - ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) - : undefined, - selfClosing: true, - name: this.convertJSXTagName(node.tagName, node), - attributes: node.attributes.properties.map(el => this.convertChild(el)), - range: (0, node_utils_1.getRange)(node, this.ast), - }), - closingElement: null, - children: [], - }); - } - case SyntaxKind.JsxOpeningElement: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, - typeArguments: node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), - selfClosing: false, - name: this.convertJSXTagName(node.tagName, node), - attributes: node.attributes.properties.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.JsxClosingElement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXClosingElement, - name: this.convertJSXTagName(node.tagName, node), - }); - case SyntaxKind.JsxOpeningFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningFragment, - }); - case SyntaxKind.JsxClosingFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXClosingFragment, - }); - case SyntaxKind.JsxExpression: { - const expression = node.expression - ? this.convertChild(node.expression) - : this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXEmptyExpression, - range: [node.getStart(this.ast) + 1, node.getEnd() - 1], - }); - if (node.dotDotDotToken) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXSpreadChild, - expression, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, - expression, - }); - } - case SyntaxKind.JsxAttribute: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXAttribute, - name: this.convertJSXNamespaceOrIdentifier(node.name), - value: this.convertChild(node.initializer), - }); - } - case SyntaxKind.JsxText: { - const start = node.getFullStart(); - const end = node.getEnd(); - const text = this.ast.text.slice(start, end); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXText, - value: (0, node_utils_1.unescapeStringLiteralText)(text), - raw: text, - range: [start, end], - }); - } - case SyntaxKind.JsxSpreadAttribute: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXSpreadAttribute, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.QualifiedName: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, - left: this.convertChild(node.left), - right: this.convertChild(node.right), - }); - } - // TypeScript specific - case SyntaxKind.TypeReference: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeReference, - typeName: this.convertChild(node.typeName), - typeArguments: node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), - }); - case SyntaxKind.TypeParameter: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameter, - name: this.convertChild(node.name), - constraint: node.constraint && this.convertChild(node.constraint), - default: node.default ? this.convertChild(node.default) : undefined, - in: (0, node_utils_1.hasModifier)(SyntaxKind.InKeyword, node), - out: (0, node_utils_1.hasModifier)(SyntaxKind.OutKeyword, node), - const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), - }); - } - case SyntaxKind.ThisType: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSThisType, - }); - case SyntaxKind.AnyKeyword: - case SyntaxKind.BigIntKeyword: - case SyntaxKind.BooleanKeyword: - case SyntaxKind.NeverKeyword: - case SyntaxKind.NumberKeyword: - case SyntaxKind.ObjectKeyword: - case SyntaxKind.StringKeyword: - case SyntaxKind.SymbolKeyword: - case SyntaxKind.UnknownKeyword: - case SyntaxKind.VoidKeyword: - case SyntaxKind.UndefinedKeyword: - case SyntaxKind.IntrinsicKeyword: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`], - }); - } - case SyntaxKind.NonNullExpression: { - const nnExpr = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNonNullExpression, - expression: this.convertChild(node.expression), - }); - return this.convertChainExpression(nnExpr, node); - } - case SyntaxKind.TypeLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeLiteral, - members: node.members.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.ArrayType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSArrayType, - elementType: this.convertChild(node.elementType), - }); - } - case SyntaxKind.IndexedAccessType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIndexedAccessType, - objectType: this.convertChild(node.objectType), - indexType: this.convertChild(node.indexType), - }); - } - case SyntaxKind.ConditionalType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSConditionalType, - checkType: this.convertChild(node.checkType), - extendsType: this.convertChild(node.extendsType), - trueType: this.convertChild(node.trueType), - falseType: this.convertChild(node.falseType), - }); - } - case SyntaxKind.TypeQuery: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, - exprName: this.convertChild(node.exprName), - typeArguments: node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), - }); - case SyntaxKind.MappedType: { - if (node.members && node.members.length > 0) { - this.#throwUnlessAllowInvalidAST(node.members[0], 'A mapped type may not declare properties or methods.'); - } - return this.createNode(node, this.#withDeprecatedGetter({ - type: ts_estree_1.AST_NODE_TYPES.TSMappedType, - constraint: this.convertChild(node.typeParameter.constraint), - key: this.convertChild(node.typeParameter.name), - nameType: this.convertChild(node.nameType) ?? null, - optional: node.questionToken && - (node.questionToken.kind === SyntaxKind.QuestionToken || - (0, node_utils_1.getTextForTokenKind)(node.questionToken.kind)), - readonly: node.readonlyToken && - (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword || - (0, node_utils_1.getTextForTokenKind)(node.readonlyToken.kind)), - typeAnnotation: node.type && this.convertChild(node.type), - }, 'typeParameter', "'constraint' and 'key'", this.convertChild(node.typeParameter))); - } - case SyntaxKind.ParenthesizedExpression: - return this.convertChild(node.expression, parent); - case SyntaxKind.TypeAliasDeclaration: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - id: this.convertChild(node.name), - typeAnnotation: this.convertChild(node.type), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - return this.fixExports(node, result); - } - case SyntaxKind.MethodSignature: { - return this.convertMethodSignature(node); - } - case SyntaxKind.PropertySignature: { - // eslint-disable-next-line deprecation/deprecation - const { initializer } = node; - if (initializer) { - this.#throwError(initializer, 'A property signature cannot have an initializer.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSPropertySignature, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - computed: (0, node_utils_1.isComputedProperty)(node.name), - key: this.convertChild(node.name), - optional: (0, node_utils_1.isOptional)(node), - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), - }); - } - case SyntaxKind.IndexSignature: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIndexSignature, - accessibility: (0, node_utils_1.getTSNodeAccessibility)(node), - parameters: node.parameters.map(el => this.convertChild(el)), - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - typeAnnotation: node.type && this.convertTypeAnnotation(node.type, node), - }); - } - case SyntaxKind.ConstructorType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSConstructorType, - abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), - params: this.convertParameters(node.parameters), - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - } - case SyntaxKind.FunctionType: { - // eslint-disable-next-line deprecation/deprecation - const { modifiers } = node; - if (modifiers) { - this.#throwError(modifiers[0], 'A function type cannot have modifiers.'); - } - } - // intentional fallthrough - case SyntaxKind.ConstructSignature: - case SyntaxKind.CallSignature: { - const type = node.kind === SyntaxKind.ConstructSignature - ? ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration - : node.kind === SyntaxKind.CallSignature - ? ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration - : ts_estree_1.AST_NODE_TYPES.TSFunctionType; - return this.createNode(node, { - type, - params: this.convertParameters(node.parameters), - returnType: node.type && this.convertTypeAnnotation(node.type, node), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - } - case SyntaxKind.ExpressionWithTypeArguments: { - const parentKind = parent.kind; - const type = parentKind === SyntaxKind.InterfaceDeclaration - ? ts_estree_1.AST_NODE_TYPES.TSInterfaceHeritage - : parentKind === SyntaxKind.HeritageClause - ? ts_estree_1.AST_NODE_TYPES.TSClassImplements - : ts_estree_1.AST_NODE_TYPES.TSInstantiationExpression; - return this.createNode(node, { - type, - expression: this.convertChild(node.expression), - typeArguments: node.typeArguments && - this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node), - }); - } - case SyntaxKind.InterfaceDeclaration: { - const interfaceHeritageClauses = node.heritageClauses ?? []; - const interfaceExtends = []; - for (const heritageClause of interfaceHeritageClauses) { - if (heritageClause.token !== SyntaxKind.ExtendsKeyword) { - this.#throwError(heritageClause, heritageClause.token === SyntaxKind.ImplementsKeyword - ? "Interface declaration cannot have 'implements' clause." - : 'Unexpected token.'); - } - for (const heritageType of heritageClause.types) { - interfaceExtends.push(this.convertChild(heritageType, node)); - } - } - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration, - body: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInterfaceBody, - body: node.members.map(member => this.convertChild(member)), - range: [node.members.pos - 1, node.end], - }), - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - extends: interfaceExtends, - id: this.convertChild(node.name), - typeParameters: node.typeParameters && - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters), - }); - return this.fixExports(node, result); - } - case SyntaxKind.TypePredicate: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypePredicate, - asserts: node.assertsModifier !== undefined, - parameterName: this.convertChild(node.parameterName), - typeAnnotation: null, - }); - /** - * Specific fix for type-guard location data - */ - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - result.typeAnnotation.loc = result.typeAnnotation.typeAnnotation.loc; - result.typeAnnotation.range = - result.typeAnnotation.typeAnnotation.range; - } - return result; - } - case SyntaxKind.ImportType: { - const range = (0, node_utils_1.getRange)(node, this.ast); - if (node.isTypeOf) { - const token = (0, node_utils_1.findNextToken)(node.getFirstToken(), node, this.ast); - range[0] = token.getStart(this.ast); - } - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSImportType, - argument: this.convertChild(node.argument), - qualifier: this.convertChild(node.qualifier), - typeArguments: node.typeArguments - ? this.convertTypeArgumentsToTypeParameterInstantiation(node.typeArguments, node) - : null, - range: range, - }); - if (node.isTypeOf) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, - exprName: result, - typeArguments: undefined, - }); - } - return result; - } - case SyntaxKind.EnumDeclaration: { - const members = node.members.map(el => this.convertChild(el)); - const result = this.createNode(node, this.#withDeprecatedGetter({ - type: ts_estree_1.AST_NODE_TYPES.TSEnumDeclaration, - body: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSEnumBody, - members, - range: [node.members.pos - 1, node.end], - }), - const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - id: this.convertChild(node.name), - }, 'members', `'body.members'`, node.members.map(el => this.convertChild(el)))); - return this.fixExports(node, result); - } - case SyntaxKind.EnumMember: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSEnumMember, - computed: node.name.kind === ts.SyntaxKind.ComputedPropertyName, - id: this.convertChild(node.name), - initializer: node.initializer && this.convertChild(node.initializer), - }); - } - case SyntaxKind.ModuleDeclaration: { - let isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration, - ...(() => { - // the constraints checked by this function are syntactically enforced by TS - // the checks mostly exist for type's sake - if (node.flags & ts.NodeFlags.GlobalAugmentation) { - const id = this.convertChild(node.name); - const body = this.convertChild(node.body); - if (body == null || - body.type === ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration) { - this.#throwUnlessAllowInvalidAST(node.body ?? node, 'Expected a valid module body'); - } - if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { - this.#throwUnlessAllowInvalidAST(node.name, 'global module augmentation must have an Identifier id'); - } - return { - kind: 'global', - body: body, - declare: false, - global: false, - id, - }; - } - if (!(node.flags & ts.NodeFlags.Namespace)) { - const body = this.convertChild(node.body); - return { - kind: 'module', - ...(body != null ? { body } : {}), - declare: false, - global: false, - id: this.convertChild(node.name), - }; - } - // Nested module declarations are stored in TypeScript as nested tree nodes. - // We "unravel" them here by making our own nested TSQualifiedName, - // with the innermost node's body as the actual node body. - if (node.body == null) { - this.#throwUnlessAllowInvalidAST(node, 'Expected a module body'); - } - if (node.name.kind !== ts.SyntaxKind.Identifier) { - this.#throwUnlessAllowInvalidAST(node.name, '`namespace`s must have an Identifier id'); - } - let name = this.createNode(node.name, { - decorators: [], - name: node.name.text, - optional: false, - range: [node.name.getStart(this.ast), node.name.getEnd()], - type: ts_estree_1.AST_NODE_TYPES.Identifier, - typeAnnotation: undefined, - }); - while (node.body && - ts.isModuleDeclaration(node.body) && - node.body.name) { - node = node.body; - isDeclare ||= (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); - const nextName = node.name; - const right = this.createNode(nextName, { - decorators: [], - name: nextName.text, - optional: false, - range: [nextName.getStart(this.ast), nextName.getEnd()], - type: ts_estree_1.AST_NODE_TYPES.Identifier, - typeAnnotation: undefined, - }); - name = this.createNode(nextName, { - left: name, - right: right, - range: [name.range[0], right.range[1]], - type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, - }); - } - return { - kind: 'namespace', - body: this.convertChild(node.body), - declare: false, - global: false, - id: name, - }; - })(), - }); - result.declare = isDeclare; - if (node.flags & ts.NodeFlags.GlobalAugmentation) { - // eslint-disable-next-line deprecation/deprecation - result.global = true; - } - return this.fixExports(node, result); - } - // TypeScript specific types - case SyntaxKind.ParenthesizedType: { - return this.convertChild(node.type); - } - case SyntaxKind.UnionType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSUnionType, - types: node.types.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.IntersectionType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIntersectionType, - types: node.types.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.AsExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSAsExpression, - expression: this.convertChild(node.expression), - typeAnnotation: this.convertChild(node.type), - }); - } - case SyntaxKind.InferType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInferType, - typeParameter: this.convertChild(node.typeParameter), - }); - } - case SyntaxKind.LiteralType: { - if (node.literal.kind === SyntaxKind.NullKeyword) { - // 4.0 started nesting null types inside a LiteralType node - // but our AST is designed around the old way of null being a keyword - return this.createNode(node.literal, { - type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, - literal: this.convertChild(node.literal), - }); - } - case SyntaxKind.TypeAssertionExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, - typeAnnotation: this.convertChild(node.type), - expression: this.convertChild(node.expression), - }); - } - case SyntaxKind.ImportEqualsDeclaration: { - return this.fixExports(node, this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSImportEqualsDeclaration, - id: this.convertChild(node.name), - importKind: node.isTypeOnly ? 'type' : 'value', - moduleReference: this.convertChild(node.moduleReference), - })); - } - case SyntaxKind.ExternalModuleReference: { - if (node.expression.kind !== SyntaxKind.StringLiteral) { - this.#throwError(node.expression, 'String literal expected.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSExternalModuleReference, - expression: this.convertChild(node.expression), - }); - } - case SyntaxKind.NamespaceExportDeclaration: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNamespaceExportDeclaration, - id: this.convertChild(node.name), - }); - } - case SyntaxKind.AbstractKeyword: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSAbstractKeyword, - }); - } - // Tuple - case SyntaxKind.TupleType: { - const elementTypes = node.elements.map(el => this.convertChild(el)); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTupleType, - elementTypes, - }); - } - case SyntaxKind.NamedTupleMember: { - const member = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNamedTupleMember, - elementType: this.convertChild(node.type, node), - label: this.convertChild(node.name, node), - optional: node.questionToken != null, - }); - if (node.dotDotDotToken) { - // adjust the start to account for the "..." - member.range[0] = member.label.range[0]; - member.loc.start = member.label.loc.start; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSRestType, - typeAnnotation: member, - }); - } - return member; - } - case SyntaxKind.OptionalType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSOptionalType, - typeAnnotation: this.convertChild(node.type), - }); - } - case SyntaxKind.RestType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSRestType, - typeAnnotation: this.convertChild(node.type), - }); - } - // Template Literal Types - case SyntaxKind.TemplateLiteralType: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTemplateLiteralType, - quasis: [this.convertChild(node.head)], - types: [], - }); - node.templateSpans.forEach(templateSpan => { - result.types.push(this.convertChild(templateSpan.type)); - result.quasis.push(this.convertChild(templateSpan.literal)); - }); - return result; - } - case SyntaxKind.ClassStaticBlockDeclaration: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.StaticBlock, - body: this.convertBodyExpressions(node.body.statements, node), - }); - } - // eslint-disable-next-line deprecation/deprecation -- required for backwards-compatibility - case SyntaxKind.AssertEntry: - case SyntaxKind.ImportAttribute: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportAttribute, - key: this.convertChild(node.name), - value: this.convertChild(node.value), - }); - } - case SyntaxKind.SatisfiesExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSSatisfiesExpression, - expression: this.convertChild(node.expression), - typeAnnotation: this.convertChild(node.type), - }); - } - default: - return this.deeplyCopy(node); - } - } - #checkModifiers(node) { - if (this.options.allowInvalidAST) { - return; - } - // typescript<5.0.0 - if ((0, node_utils_1.nodeHasIllegalDecorators)(node)) { - this.#throwError(node.illegalDecorators[0], 'Decorators are not valid here.'); - } - for (const decorator of (0, getModifiers_1.getDecorators)(node, - /* includeIllegalDecorators */ true) ?? []) { - // `checkGrammarModifiers` function in typescript - if (!(0, node_utils_1.nodeCanBeDecorated)(node)) { - if (ts.isMethodDeclaration(node) && !(0, node_utils_1.nodeIsPresent)(node.body)) { - this.#throwError(decorator, 'A decorator can only decorate a method implementation, not an overload.'); - } - else { - this.#throwError(decorator, 'Decorators are not valid here.'); - } - } - } - for (const modifier of (0, getModifiers_1.getModifiers)(node, - /* includeIllegalModifiers */ true) ?? []) { - if (modifier.kind !== SyntaxKind.ReadonlyKeyword) { - if (node.kind === SyntaxKind.PropertySignature || - node.kind === SyntaxKind.MethodSignature) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type member`); - } - if (node.kind === SyntaxKind.IndexSignature && - (modifier.kind !== SyntaxKind.StaticKeyword || - !ts.isClassLike(node.parent))) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on an index signature`); - } - } - if (modifier.kind !== SyntaxKind.InKeyword && - modifier.kind !== SyntaxKind.OutKeyword && - modifier.kind !== SyntaxKind.ConstKeyword && - node.kind === SyntaxKind.TypeParameter) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a type parameter`); - } - if ((modifier.kind === SyntaxKind.InKeyword || - modifier.kind === SyntaxKind.OutKeyword) && - (node.kind !== SyntaxKind.TypeParameter || - !(ts.isInterfaceDeclaration(node.parent) || - ts.isClassLike(node.parent) || - ts.isTypeAliasDeclaration(node.parent)))) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`); - } - if (modifier.kind === SyntaxKind.ReadonlyKeyword && - node.kind !== SyntaxKind.PropertyDeclaration && - node.kind !== SyntaxKind.PropertySignature && - node.kind !== SyntaxKind.IndexSignature && - node.kind !== SyntaxKind.Parameter) { - this.#throwError(modifier, "'readonly' modifier can only appear on a property declaration or index signature."); - } - if (modifier.kind === SyntaxKind.DeclareKeyword && - ts.isClassLike(node.parent) && - !ts.isPropertyDeclaration(node)) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on class elements of this kind.`); - } - if (modifier.kind === SyntaxKind.DeclareKeyword && - ts.isVariableStatement(node)) { - const declarationKind = (0, node_utils_1.getDeclarationKind)(node.declarationList); - if (declarationKind === 'using' || declarationKind === 'await using') { - this.#throwError(modifier, `'declare' modifier cannot appear on a '${declarationKind}' declaration.`); - } - } - if (modifier.kind === SyntaxKind.AbstractKeyword && - node.kind !== SyntaxKind.ClassDeclaration && - node.kind !== SyntaxKind.ConstructorType && - node.kind !== SyntaxKind.MethodDeclaration && - node.kind !== SyntaxKind.PropertyDeclaration && - node.kind !== SyntaxKind.GetAccessor && - node.kind !== SyntaxKind.SetAccessor) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`); - } - if ((modifier.kind === SyntaxKind.StaticKeyword || - modifier.kind === SyntaxKind.PublicKeyword || - modifier.kind === SyntaxKind.ProtectedKeyword || - modifier.kind === SyntaxKind.PrivateKeyword) && - (node.parent.kind === SyntaxKind.ModuleBlock || - node.parent.kind === SyntaxKind.SourceFile)) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a module or namespace element.`); - } - if (modifier.kind === SyntaxKind.AccessorKeyword && - node.kind !== SyntaxKind.PropertyDeclaration) { - this.#throwError(modifier, "'accessor' modifier can only appear on a property declaration."); - } - // `checkGrammarAsyncModifier` function in `typescript` - if (modifier.kind === SyntaxKind.AsyncKeyword && - node.kind !== SyntaxKind.MethodDeclaration && - node.kind !== SyntaxKind.FunctionDeclaration && - node.kind !== SyntaxKind.FunctionExpression && - node.kind !== SyntaxKind.ArrowFunction) { - this.#throwError(modifier, "'async' modifier cannot be used here."); - } - // `checkGrammarModifiers` function in `typescript` - if (node.kind === SyntaxKind.Parameter && - (modifier.kind === SyntaxKind.StaticKeyword || - modifier.kind === SyntaxKind.ExportKeyword || - modifier.kind === SyntaxKind.DeclareKeyword || - modifier.kind === SyntaxKind.AsyncKeyword)) { - this.#throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on a parameter.`); - } - // `checkGrammarModifiers` function in `typescript` - if (modifier.kind === SyntaxKind.PublicKeyword || - modifier.kind === SyntaxKind.ProtectedKeyword || - modifier.kind === SyntaxKind.PrivateKeyword) { - for (const anotherModifier of (0, getModifiers_1.getModifiers)(node) ?? []) { - if (anotherModifier !== modifier && - (anotherModifier.kind === SyntaxKind.PublicKeyword || - anotherModifier.kind === SyntaxKind.ProtectedKeyword || - anotherModifier.kind === SyntaxKind.PrivateKeyword)) { - this.#throwError(anotherModifier, `Accessibility modifier already seen.`); - } - } - } - // `checkParameter` function in `typescript` - if (node.kind === SyntaxKind.Parameter && - // In `typescript` package, it's `ts.hasSyntacticModifier(node, ts.ModifierFlags.ParameterPropertyModifier)` - // https://github.com/typescript-eslint/typescript-eslint/pull/6615#discussion_r1136489935 - (modifier.kind === SyntaxKind.PublicKeyword || - modifier.kind === SyntaxKind.PrivateKeyword || - modifier.kind === SyntaxKind.ProtectedKeyword || - modifier.kind === SyntaxKind.ReadonlyKeyword || - modifier.kind === SyntaxKind.OverrideKeyword)) { - const func = (0, node_utils_1.getContainingFunction)(node); - if (!(func.kind === SyntaxKind.Constructor && (0, node_utils_1.nodeIsPresent)(func.body))) { - this.#throwError(modifier, 'A parameter property is only allowed in a constructor implementation.'); - } - } - } - } - #throwUnlessAllowInvalidAST(node, message) { - if (!this.options.allowInvalidAST) { - this.#throwError(node, message); - } - } - /** - * Creates a getter for a property under aliasKey that returns the value under - * valueKey. If suppressDeprecatedPropertyWarnings is not enabled, the - * getter also console warns about the deprecation. - * - * @see https://github.com/typescript-eslint/typescript-eslint/issues/6469 - */ - #withDeprecatedAliasGetter(node, aliasKey, valueKey, suppressWarnings = false) { - let warned = suppressWarnings; - Object.defineProperty(node, aliasKey, { - configurable: true, - get: this.options.suppressDeprecatedPropertyWarnings - ? () => node[valueKey] - : () => { - if (!warned) { - process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); - warned = true; - } - return node[valueKey]; - }, - set(value) { - Object.defineProperty(node, aliasKey, { - enumerable: true, - writable: true, - value, - }); - }, - }); - return node; - } - #withDeprecatedGetter(node, deprecatedKey, preferredKey, value) { - let warned = false; - Object.defineProperty(node, deprecatedKey, { - configurable: true, - get: this.options.suppressDeprecatedPropertyWarnings - ? () => value - : () => { - if (!warned) { - process.emitWarning(`The '${deprecatedKey}' property is deprecated on ${node.type} nodes. Use ${preferredKey} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, 'DeprecationWarning'); - warned = true; - } - return value; - }, - set(value) { - Object.defineProperty(node, deprecatedKey, { - enumerable: true, - writable: true, - value, - }); - }, - }); - return node; - } - #throwError(node, message) { - let start; - let end; - if (typeof node === 'number') { - start = end = node; - } - else { - start = node.getStart(this.ast); - end = node.getEnd(); - } - throw (0, node_utils_1.createError)(message, this.ast, start, end); - } - #checkForStatementDeclaration(initializer, kind) { - const loop = kind === ts.SyntaxKind.ForInStatement ? 'for...in' : 'for...of'; - if (ts.isVariableDeclarationList(initializer)) { - if (initializer.declarations.length !== 1) { - this.#throwError(initializer, `Only a single variable declaration is allowed in a '${loop}' statement.`); - } - const declaration = initializer.declarations[0]; - if (declaration.initializer) { - this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have an initializer.`); - } - else if (declaration.type) { - this.#throwError(declaration, `The variable declaration of a '${loop}' statement cannot have a type annotation.`); - } - if (kind === ts.SyntaxKind.ForInStatement && - initializer.flags & ts.NodeFlags.Using) { - this.#throwError(initializer, "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."); - } - } - else if (!(0, node_utils_1.isValidAssignmentTarget)(initializer) && - initializer.kind !== ts.SyntaxKind.ObjectLiteralExpression && - initializer.kind !== ts.SyntaxKind.ArrayLiteralExpression) { - this.#throwError(initializer, `The left-hand side of a '${loop}' statement must be a variable or a property access.`); - } - } -} -exports.Converter = Converter; -//# sourceMappingURL=convert.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map deleted file mode 100644 index c73eba48..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,oCAQC;AAhED,2DAA2D;AAC3D,2SAA2S;AAC3S,+CAAiC;AAEjC,iDAA6D;AAE7D,6CA2BsB;AAOtB,2CAA6C;AAE7C,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AASjC;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,KAA2D;IAE3D,OAAO,IAAA,wBAAW,EAChB,CAAC,SAAS,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,IAAK,KAAK,CAAC,WAAsB,EACtE,KAAK,CAAC,IAAK,EACX,KAAK,CAAC,KAAM,CACb,CAAC;AACJ,CAAC;AAOD,MAAa,SAAS;IACH,GAAG,CAAgB;IACnB,OAAO,CAAmB;IAC1B,qBAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;IACtC,qBAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;IAE/C,YAAY,GAAG,KAAK,CAAC;IAE7B;;;;;OAKG;IACH,YAAY,GAAkB,EAAE,OAA0B;QACxD,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;YACJ,CAAC;QACH,CAAC;aAAM,IACL,CAAC,IAAA,oCAAuB,EAAC,WAAW,CAAC;YACrC,WAAW,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YAC1D,WAAW,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,sBAAsB,EACzD,CAAC;YACD,IAAI,CAAC,WAAW,CACd,WAAW,EACX,4BAA4B,IAAI,sDAAsD,CACvF,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAx/GD,8BAw/GC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts deleted file mode 100644 index bc0e84ed..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as ts from 'typescript'; -interface DirectoryStructureHost { - readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; -} -interface CachedDirectoryStructureHost extends DirectoryStructureHost { - readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; -} -interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { - onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; - extraFileExtensions?: readonly ts.FileExtensionInfo[]; -} -export { WatchCompilerHostOfConfigFile }; -//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map deleted file mode 100644 index 9dc5bfee..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;IACR,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;CACvD;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js deleted file mode 100644 index dcb07129..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -// These types are internal to TS. -// They have been trimmed down to only include the relevant bits -// We use some special internal TS apis to help us do our parsing flexibly -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map deleted file mode 100644 index 757e885c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts deleted file mode 100644 index b39194d9..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndDefiniteProgram } from './shared'; -/** - * @returns Returns a new source file and program corresponding to the linted code - */ -declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram; -export { createIsolatedProgram }; -//# sourceMappingURL=createIsolatedProgram.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map deleted file mode 100644 index bdbe6ed3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createIsolatedProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKtD;;GAEG;AACH,iBAAS,qBAAqB,CAC5B,aAAa,EAAE,aAAa,GAC3B,qBAAqB,CAoEvB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js deleted file mode 100644 index b1735e34..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createIsolatedProgram = createIsolatedProgram; -const debug_1 = __importDefault(require("debug")); -const ts = __importStar(require("typescript")); -const getScriptKind_1 = require("./getScriptKind"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createIsolatedProgram'); -/** - * @returns Returns a new source file and program corresponding to the linted code - */ -function createIsolatedProgram(parseSettings) { - log('Getting isolated program in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); - const compilerHost = { - fileExists() { - return true; - }, - getCanonicalFileName() { - return parseSettings.filePath; - }, - getCurrentDirectory() { - return ''; - }, - getDirectories() { - return []; - }, - getDefaultLibFileName() { - return 'lib.d.ts'; - }, - // TODO: Support Windows CRLF - getNewLine() { - return '\n'; - }, - getSourceFile(filename) { - return ts.createSourceFile(filename, parseSettings.codeFullText, ts.ScriptTarget.Latest, - /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); - }, - readFile() { - return undefined; - }, - useCaseSensitiveFileNames() { - return true; - }, - writeFile() { - return null; - }, - }; - const program = ts.createProgram([parseSettings.filePath], { - jsDocParsingMode: parseSettings.jsDocParsingMode, - noResolve: true, - target: ts.ScriptTarget.Latest, - jsx: parseSettings.jsx ? ts.JsxEmit.Preserve : undefined, - ...(0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), - }, compilerHost); - const ast = program.getSourceFile(parseSettings.filePath); - if (!ast) { - throw new Error('Expected an ast to be returned for the single-file isolated program.'); - } - return { ast, program }; -} -//# sourceMappingURL=createIsolatedProgram.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map deleted file mode 100644 index 5ea47812..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createIsolatedProgram.js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AQ,CAAC,EACxB;QACE,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;QAChD,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;QAC9B,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;QACxD,GAAG,IAAA,8CAAqC,EAAC,aAAa,CAAC;KACxD,EACD,YAAY,CACb,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts deleted file mode 100644 index 4b2df1b4..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndDefiniteProgram } from './shared'; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, the source file corresponding to the code and the containing program - */ -declare function createProjectProgram(parseSettings: ParseSettings, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram; -export { createProjectProgram }; -//# sourceMappingURL=createProjectProgram.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map deleted file mode 100644 index f46ad234..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAgBtD;;;GAGG;AACH,iBAAS,oBAAoB,CAC3B,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GACzC,qBAAqB,CA+EvB;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js deleted file mode 100644 index 162a0c57..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createProjectProgram = createProjectProgram; -const debug_1 = __importDefault(require("debug")); -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -const node_utils_1 = require("../node-utils"); -const describeFilePath_1 = require("./describeFilePath"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectProgram'); -const DEFAULT_EXTRA_FILE_EXTENSIONS = [ - ts.Extension.Ts, - ts.Extension.Tsx, - ts.Extension.Js, - ts.Extension.Jsx, - ts.Extension.Mjs, - ts.Extension.Mts, - ts.Extension.Cjs, - ts.Extension.Cts, -]; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, the source file corresponding to the code and the containing program - */ -function createProjectProgram(parseSettings, programsForProjects) { - log('Creating project program for: %s', parseSettings.filePath); - const astAndProgram = (0, node_utils_1.firstDefined)(programsForProjects, currentProgram => (0, shared_1.getAstFromProgram)(currentProgram, parseSettings.filePath)); - // The file was matched within the tsconfig - if (astAndProgram) { - return astAndProgram; - } - const describeProjectFilePath = (projectFile) => (0, describeFilePath_1.describeFilePath)(projectFile, parseSettings.tsconfigRootDir); - const describedFilePath = (0, describeFilePath_1.describeFilePath)(parseSettings.filePath, parseSettings.tsconfigRootDir); - const relativeProjects = Array.from(parseSettings.projects.values()).map(describeProjectFilePath); - const describedPrograms = relativeProjects.length === 1 - ? ` ${relativeProjects[0]}` - : `\n${relativeProjects.map(project => `- ${project}`).join('\n')}`; - const errorLines = [ - `ESLint was configured to run on \`${describedFilePath}\` using \`parserOptions.project\`:${describedPrograms}`, - ]; - let hasMatchedAnError = false; - const { extraFileExtensions } = parseSettings; - extraFileExtensions.forEach(extraExtension => { - if (!extraExtension.startsWith('.')) { - errorLines.push(`Found unexpected extension \`${extraExtension}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${extraExtension}\`?`); - } - if (DEFAULT_EXTRA_FILE_EXTENSIONS.includes(extraExtension)) { - errorLines.push(`You unnecessarily included the extension \`${extraExtension}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`); - } - }); - const fileExtension = path_1.default.extname(parseSettings.filePath); - if (!DEFAULT_EXTRA_FILE_EXTENSIONS.includes(fileExtension)) { - const nonStandardExt = `The extension for the file (\`${fileExtension}\`) is non-standard`; - if (extraFileExtensions.length > 0) { - if (!extraFileExtensions.includes(fileExtension)) { - errorLines.push(`${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`); - hasMatchedAnError = true; - } - } - else { - errorLines.push(`${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`); - hasMatchedAnError = true; - } - } - if (!hasMatchedAnError) { - const [describedInclusions, describedSpecifiers] = parseSettings.projects.size === 1 - ? ['that TSConfig does not', 'that TSConfig'] - : ['none of those TSConfigs', 'one of those TSConfigs']; - errorLines.push(`However, ${describedInclusions} include this file. Either:`, `- Change ESLint's list of included files to not include this file`, `- Change ${describedSpecifiers} to include this file`, `- Create a new TSConfig that includes this file and include it in your parserOptions.project`, `See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`); - } - throw new Error(errorLines.join('\n')); -} -//# sourceMappingURL=createProjectProgram.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map deleted file mode 100644 index 09516491..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectProgram.js","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GS,o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AM,CAAC;YACN,UAAU,CAAC,IAAI,CACb,GAAG,cAAc,wEAAwE,CAC1F,CAAC;YACF,iBAAiB,GAAG,IAAI,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GAC9C,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;YAC/B,CAAC,CAAC,CAAC,wBAAwB,EAAE,eAAe,CAAC;YAC7C,CAAC,CAAC,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;QAC5D,UAAU,CAAC,IAAI,CACb,YAAY,mBAAmB,6BAA6B,EAC5D,mEAAmE,EACnE,YAAY,mBAAmB,uBAAuB,EACtD,8FAA8F,EAC9F,0OAA0O,CAC3O,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts deleted file mode 100644 index d85e23cb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as ts from 'typescript/lib/tsserverlibrary'; -import type { ProjectServiceOptions } from '../parser-options'; -export type TypeScriptProjectService = ts.server.ProjectService; -export interface ProjectServiceSettings { - allowDefaultProject: string[] | undefined; - maximumDefaultProjectFileMatchCount: number; - service: TypeScriptProjectService; -} -export declare function createProjectService(optionsRaw: boolean | ProjectServiceOptions | undefined, jsDocParsingMode: ts.JSDocParsingMode | undefined): ProjectServiceSettings; -//# sourceMappingURL=createProjectService.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map deleted file mode 100644 index 0306c871..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectService.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA0B/D,MAAM,MAAM,wBAAwB,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1C,mCAAmC,EAAE,MAAM,CAAC;IAC5C,OAAO,EAAE,wBAAwB,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,EACvD,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,GAAG,SAAS,GAChD,sBAAsB,CAiHxB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js deleted file mode 100644 index dfb056e0..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createProjectService = createProjectService; -/* eslint-disable @typescript-eslint/no-empty-function -- for TypeScript APIs*/ -const node_path_1 = __importDefault(require("node:path")); -const debug_1 = __importDefault(require("debug")); -const getParsedConfigFile_1 = require("./getParsedConfigFile"); -const validateDefaultProjectForFilesGlob_1 = require("./validateDefaultProjectForFilesGlob"); -const DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD = 8; -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectService'); -const logTsserverErr = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:err'); -const logTsserverInfo = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:info'); -const logTsserverPerf = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:perf'); -const logTsserverEvent = (0, debug_1.default)('typescript-eslint:typescript-estree:tsserver:event'); -const doNothing = () => { }; -const createStubFileWatcher = () => ({ - close: doNothing, -}); -function createProjectService(optionsRaw, jsDocParsingMode) { - const options = typeof optionsRaw === 'object' ? optionsRaw : {}; - (0, validateDefaultProjectForFilesGlob_1.validateDefaultProjectForFilesGlob)(options); - // We import this lazily to avoid its cost for users who don't use the service - // TODO: Once we drop support for TS<5.3 we can import from "typescript" directly - // eslint-disable-next-line @typescript-eslint/no-require-imports - const tsserver = require('typescript/lib/tsserverlibrary'); - // TODO: see getWatchProgramsForProjects - // We don't watch the disk, we just refer to these when ESLint calls us - // there's a whole separate update pass in maybeInvalidateProgram at the bottom of getWatchProgramsForProjects - // (this "goes nuclear on TypeScript") - const system = { - ...tsserver.sys, - clearImmediate, - clearTimeout, - setImmediate, - setTimeout, - watchDirectory: createStubFileWatcher, - watchFile: createStubFileWatcher, - }; - const logger = { - close: doNothing, - endGroup: doNothing, - getLogFileName: () => undefined, - // The debug library doesn't use levels without creating a namespace for each. - // Log levels are not passed to the writer so we wouldn't be able to forward - // to a respective namespace. Supporting would require an additional flag for - // granular control. Defaulting to all levels for now. - hasLevel: () => true, - info(s) { - this.msg(s, tsserver.server.Msg.Info); - }, - loggingEnabled: () => - // if none of the debug namespaces are enabled, then don't enable logging in tsserver - logTsserverInfo.enabled || - logTsserverErr.enabled || - logTsserverPerf.enabled, - msg: (s, type) => { - switch (type) { - case tsserver.server.Msg.Err: - logTsserverErr(s); - break; - case tsserver.server.Msg.Perf: - logTsserverPerf(s); - break; - default: - logTsserverInfo(s); - } - }, - perftrc(s) { - this.msg(s, tsserver.server.Msg.Perf); - }, - startGroup: doNothing, - }; - log('Creating project service with: %o', options); - const service = new tsserver.server.ProjectService({ - host: system, - cancellationToken: { isCancellationRequested: () => false }, - useSingleInferredProject: false, - useInferredProjectPerProjectRoot: false, - logger, - eventHandler: logTsserverEvent.enabled - ? (e) => { - logTsserverEvent(e); - } - : undefined, - session: undefined, - jsDocParsingMode, - }); - service.setHostConfiguration({ - preferences: { - includePackageJsonAutoImports: 'off', - }, - }); - if (options.defaultProject) { - log('Enabling default project: %s', options.defaultProject); - let configFile; - try { - configFile = (0, getParsedConfigFile_1.getParsedConfigFile)(tsserver, options.defaultProject, node_path_1.default.dirname(options.defaultProject)); - } - catch (error) { - throw new Error(`Could not read default project '${options.defaultProject}': ${error.message}`); - } - service.setCompilerOptionsForInferredProjects( - // NOTE: The inferred projects API is not intended for source files when a tsconfig - // exists. There is no API that generates an InferredProjectCompilerOptions suggesting - // it is meant for hard coded options passed in. Hard asserting as a work around. - // See https://github.com/microsoft/TypeScript/blob/27bcd4cb5a98bce46c9cdd749752703ead021a4b/src/server/protocol.ts#L1904 - configFile.options); - } - return { - allowDefaultProject: options.allowDefaultProject, - maximumDefaultProjectFileMatchCount: options.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING ?? - DEFAULT_PROJECT_MATCHED_FILES_THRESHOLD, - service, - }; -} -//# sourceMappingURL=createProjectService.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map deleted file mode 100644 index b4f6637b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectService.js","sourceRoot":"","sources":["../../src/create-program/createProjectService.ts"],"names":[],"mappings":";;;;;AAwCA,oDAoHC;AA5J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,EAAE;gBACV,gBAAgB,CAAC,CAAC,CAAC,CAAC;YACtB,CAAC;YACH,CAAC,CAAC,SAAS;QACb,OAAO,EAAE,SAAS;QAClB,gBAAgB;KACjB,CAAC,CAAC;IAEH,OAAO,CAAC,oBAAoB,CAAC;QAC3B,WAAW,EAAE;YACX,6BAA6B,EAAE,KAAK;SACrC;KACF,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;QAC3B,GAAG,CAAC,8BAA8B,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QAC5D,IAAI,UAAgC,CAAC;QAErC,IAAI,CAAC;YACH,UAAU,GAAG,IAAA,yCAAmB,EAC9B,QAAQ,EACR,OAAO,CAAC,cAAc,EACtB,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CACrC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,mCAAmC,OAAO,CAAC,cAAc,MAAO,KAAe,CAAC,OAAO,EAAE,CAC1F,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,qCAAqC;QAC3C,mFAAmF;QACnF,uFAAuF;QACvF,iFAAiF;QACjF,yHAAyH;QACzH,UAAU,CAAC,OAA4D,CACxE,CAAC;IACJ,CAAC;IAED,OAAO;QACL,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;QAChD,mCAAmC,EACjC,OAAO,CAAC,+DAA+D;YACvE,uCAAuC;QACzC,OAAO;KACR,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts deleted file mode 100644 index c3d994d5..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndNoProgram } from './shared'; -declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; -declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram; -export { createSourceFile, createNoProgram }; -//# sourceMappingURL=createSourceFile.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map deleted file mode 100644 index 6eb4e387..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createSourceFile.d.ts","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD,iBAAS,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,UAAU,CAmBrE;AAED,iBAAS,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAKtE;AAED,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js deleted file mode 100644 index 554e2aee..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSourceFile = createSourceFile; -exports.createNoProgram = createNoProgram; -const debug_1 = __importDefault(require("debug")); -const ts = __importStar(require("typescript")); -const source_files_1 = require("../source-files"); -const getScriptKind_1 = require("./getScriptKind"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createSourceFile'); -function createSourceFile(parseSettings) { - log('Getting AST without type information in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); - return (0, source_files_1.isSourceFile)(parseSettings.code) - ? parseSettings.code - : ts.createSourceFile(parseSettings.filePath, parseSettings.codeFullText, { - languageVersion: ts.ScriptTarget.Latest, - jsDocParsingMode: parseSettings.jsDocParsingMode, - }, - /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); -} -function createNoProgram(parseSettings) { - return { - ast: createSourceFile(parseSettings), - program: null, - }; -} -//# sourceMappingURL=createSourceFile.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map deleted file mode 100644 index a6eb0e99..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createSourceFile.js","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCS,4CAAgB;AAAE,0CAAe;AAtC1C,kDAA0B;AAC1B,+CAAiC;AAGjC,kDAA+C;AAC/C,mDAAgD;AAGhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,sDAAsD,CAAC,CAAC;AAE1E,SAAS,gBAAgB,CAAC,aAA4B;IACpD,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,OAAO,IAAA,2BAAY,EAAC,aAAa,CAAC,IAAI,CAAC;QACrC,CAAC,CAAC,aAAa,CAAC,IAAI;QACpB,CAAC,CAAC,EAAE,CAAC,gBAAgB,CACjB,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,YAAY,EAC1B;YACE,eAAe,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM;YACvC,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;SACjD;QACD,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;AACR,CAAC;AAED,SAAS,eAAe,CAAC,aAA4B;IACnD,OAAO;QACL,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts deleted file mode 100644 index d46f86aa..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; -//# sourceMappingURL=describeFilePath.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map deleted file mode 100644 index 6d049bed..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"describeFilePath.d.ts","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAyBR"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js deleted file mode 100644 index b47a922e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.describeFilePath = describeFilePath; -const path_1 = __importDefault(require("path")); -function describeFilePath(filePath, tsconfigRootDir) { - // If the TSConfig root dir is a parent of the filePath, use - // `` as a prefix for the path. - const relative = path_1.default.relative(tsconfigRootDir, filePath); - if (relative && !relative.startsWith('..') && !path_1.default.isAbsolute(relative)) { - return `/${relative}`; - } - // Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't - // relative to the TSConfig root dir should be fully described. - // This avoids strings like /../../../../repo/file.ts. - // https://github.com/typescript-eslint/typescript-eslint/issues/6289 - if (/^[(\w+:)\\/~]/.test(filePath)) { - return filePath; - } - // Similarly, if the relative path would contain a lot of ../.., then - // ignore it and print the file path directly. - if (/\.\.[/\\]\.\./.test(relative)) { - return filePath; - } - // Lastly, since we've eliminated all special cases, we know the cleanest - // path to print is probably the prefixed relative one. - return `/${relative}`; -} -//# sourceMappingURL=describeFilePath.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map deleted file mode 100644 index 4d044fcd..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"describeFilePath.js","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":";;;;;AAEA,4CA4BC;AA9BD,gDAAwB;AAExB,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,eAAuB;IAEvB,4DAA4D;IAC5D,gDAAgD;IAChD,MAAM,QAAQ,GAAG,cAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,cAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzE,OAAO,qBAAqB,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IACvE,+DAA+D;IAC/D,uEAAuE;IACvE,qEAAqE;IACrE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qEAAqE;IACrE,8CAA8C;IAC9C,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,yEAAyE;IACzE,uDAAuD;IACvD,OAAO,qBAAqB,QAAQ,EAAE,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts deleted file mode 100644 index ffccd560..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as ts from 'typescript/lib/tsserverlibrary'; -/** - * Utility offered by parser to help consumers parse a config file. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -declare function getParsedConfigFile(tsserver: typeof ts, configFile: string, projectDirectory?: string): ts.ParsedCommandLine; -export { getParsedConfigFile }; -//# sourceMappingURL=getParsedConfigFile.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map deleted file mode 100644 index 192a8ff1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getParsedConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAI1D;;;;;GAKG;AACH,iBAAS,mBAAmB,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,iBAAiB,CAyCtB;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js deleted file mode 100644 index fdc1c54c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getParsedConfigFile = getParsedConfigFile; -const fs = __importStar(require("fs")); -const path = __importStar(require("path")); -const shared_1 = require("./shared"); -/** - * Utility offered by parser to help consumers parse a config file. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -function getParsedConfigFile(tsserver, configFile, projectDirectory) { - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (tsserver.sys === undefined) { - throw new Error('`getParsedConfigFile` is only supported in a Node-like environment.'); - } - const parsed = tsserver.getParsedCommandLineOfConfigFile(configFile, shared_1.CORE_COMPILER_OPTIONS, { - onUnRecoverableConfigFileDiagnostic: diag => { - throw new Error(formatDiagnostics([diag])); // ensures that `parsed` is defined. - }, - fileExists: fs.existsSync, - getCurrentDirectory, - readDirectory: tsserver.sys.readDirectory, - readFile: file => fs.readFileSync(file, 'utf-8'), - useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames, - }); - if (parsed?.errors.length) { - throw new Error(formatDiagnostics(parsed.errors)); - } - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return parsed; - function getCurrentDirectory() { - return projectDirectory ? path.resolve(projectDirectory) : process.cwd(); - } - function formatDiagnostics(diagnostics) { - return tsserver.formatDiagnostics(diagnostics, { - getCanonicalFileName: f => f, - getCurrentDirectory, - getNewLine: () => '\n', - }); - } -} -//# sourceMappingURL=getParsedConfigFile.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map deleted file mode 100644 index e0b21256..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getParsedConfigFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getParsedConfigFile.js","sourceRoot":"","sources":["../../src/create-program/getParsedConfigFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2DS,kDAAmB;AA3D5B,uCAAyB;AACzB,2CAA6B;AAG7B,qCAAiD;AAEjD;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,QAAmB,EACnB,UAAkB,EAClB,gBAAyB;IAEzB,uEAAuE;IACvE,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,gCAAgC,CACtD,UAAU,EACV,8BAAqB,EACrB;QACE,mCAAmC,EAAE,IAAI,CAAC,EAAE;YAC1C,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,oCAAoC;QAClF,CAAC;QACD,UAAU,EAAE,EAAE,CAAC,UAAU;QACzB,mBAAmB;QACnB,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,aAAa;QACzC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC;QAChD,yBAAyB,EAAE,QAAQ,CAAC,GAAG,CAAC,yBAAyB;KAClE,CACF,CAAC;IAEF,IAAI,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,oEAAoE;IACpE,OAAO,MAAO,CAAC;IAEf,SAAS,mBAAmB;QAC1B,OAAO,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC3E,CAAC;IAED,SAAS,iBAAiB,CAAC,WAA4B;QACrD,OAAO,QAAQ,CAAC,iBAAiB,CAAC,WAAW,EAAE;YAC7C,oBAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YAC5B,mBAAmB;YACnB,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts deleted file mode 100644 index 6db50587..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; -declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; -export { getScriptKind, getLanguageVariant }; -//# sourceMappingURL=getScriptKind.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map deleted file mode 100644 index a53274ef..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getScriptKind.d.ts","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,EAAE,CAAC,UAAU,CA8BpE;AAED,iBAAS,kBAAkB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAYzE;AAED,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js deleted file mode 100644 index aecc9749..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getScriptKind = getScriptKind; -exports.getLanguageVariant = getLanguageVariant; -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -function getScriptKind(filePath, jsx) { - const extension = path_1.default.extname(filePath).toLowerCase(); - // note - we only respect the user's jsx setting for unknown extensions - // this is so that we always match TS's internal script kind logic, preventing - // weird errors due to a mismatch. - // https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 - switch (extension) { - case ts.Extension.Js: - case ts.Extension.Cjs: - case ts.Extension.Mjs: - return ts.ScriptKind.JS; - case ts.Extension.Jsx: - return ts.ScriptKind.JSX; - case ts.Extension.Ts: - case ts.Extension.Cts: - case ts.Extension.Mts: - return ts.ScriptKind.TS; - case ts.Extension.Tsx: - return ts.ScriptKind.TSX; - case ts.Extension.Json: - return ts.ScriptKind.JSON; - default: - // unknown extension, force typescript to ignore the file extension, and respect the user's setting - return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; - } -} -function getLanguageVariant(scriptKind) { - // https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 - switch (scriptKind) { - case ts.ScriptKind.TSX: - case ts.ScriptKind.JSX: - case ts.ScriptKind.JS: - case ts.ScriptKind.JSON: - return ts.LanguageVariant.JSX; - default: - return ts.LanguageVariant.Standard; - } -} -//# sourceMappingURL=getScriptKind.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map deleted file mode 100644 index dc922455..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.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;AAED,SAAS,kBAAkB,CAAC,UAAyB;IACnD,8HAA8H;IAC9H,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QACtB,KAAK,EAAE,CAAC,UAAU,CAAC,IAAI;YACrB,OAAO,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC;QAEhC;YACE,OAAO,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC;IACvC,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts deleted file mode 100644 index 621d9bd6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -/** - * Clear all of the parser caches. - * This should only be used in testing to ensure the parser is clean between tests. - */ -declare function clearWatchCaches(): void; -/** - * Calculate project environments using options provided by consumer and paths from config - * @param parseSettings Internal settings for parsing the file - * @returns The programs corresponding to the supplied tsconfig paths - */ -declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; -export { clearWatchCaches, getWatchProgramsForProjects }; -//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map deleted file mode 100644 index 90961e84..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AA4DD;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CA8Gd;AA6PD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js deleted file mode 100644 index 2ca94042..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +++ /dev/null @@ -1,371 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearWatchCaches = clearWatchCaches; -exports.getWatchProgramsForProjects = getWatchProgramsForProjects; -const debug_1 = __importDefault(require("debug")); -const fs_1 = __importDefault(require("fs")); -const ts = __importStar(require("typescript")); -const source_files_1 = require("../source-files"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createWatchProgram'); -/** - * Maps tsconfig paths to their corresponding file contents and resulting watches - */ -const knownWatchProgramMap = new Map(); -/** - * Maps file/folder paths to their set of corresponding watch callbacks - * There may be more than one per file/folder if a file/folder is shared between projects - */ -const fileWatchCallbackTrackingMap = new Map(); -const folderWatchCallbackTrackingMap = new Map(); -/** - * Stores the list of known files for each program - */ -const programFileListCache = new Map(); -/** - * Caches the last modified time of the tsconfig files - */ -const tsconfigLastModifiedTimestampCache = new Map(); -const parsedFilesSeenHash = new Map(); -/** - * Clear all of the parser caches. - * This should only be used in testing to ensure the parser is clean between tests. - */ -function clearWatchCaches() { - knownWatchProgramMap.clear(); - fileWatchCallbackTrackingMap.clear(); - folderWatchCallbackTrackingMap.clear(); - parsedFilesSeenHash.clear(); - programFileListCache.clear(); - tsconfigLastModifiedTimestampCache.clear(); -} -function saveWatchCallback(trackingMap) { - return (fileName, callback) => { - const normalizedFileName = (0, shared_1.getCanonicalFileName)(fileName); - const watchers = (() => { - let watchers = trackingMap.get(normalizedFileName); - if (!watchers) { - watchers = new Set(); - trackingMap.set(normalizedFileName, watchers); - } - return watchers; - })(); - watchers.add(callback); - return { - close: () => { - watchers.delete(callback); - }, - }; - }; -} -/** - * Holds information about the file currently being linted - */ -const currentLintOperationState = { - code: '', - filePath: '', -}; -/** - * Appropriately report issues found when reading a config file - * @param diagnostic The diagnostic raised when creating a program - */ -function diagnosticReporter(diagnostic) { - throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine)); -} -function updateCachedFileList(tsconfigPath, program) { - const fileList = new Set(program.getRootFileNames().map(f => (0, shared_1.getCanonicalFileName)(f))); - programFileListCache.set(tsconfigPath, fileList); - return fileList; -} -/** - * Calculate project environments using options provided by consumer and paths from config - * @param parseSettings Internal settings for parsing the file - * @returns The programs corresponding to the supplied tsconfig paths - */ -function getWatchProgramsForProjects(parseSettings) { - const filePath = (0, shared_1.getCanonicalFileName)(parseSettings.filePath); - const results = []; - // preserve reference to code and file being linted - currentLintOperationState.code = parseSettings.code; - currentLintOperationState.filePath = filePath; - // Update file version if necessary - const fileWatchCallbacks = fileWatchCallbackTrackingMap.get(filePath); - const codeHash = (0, shared_1.createHash)((0, source_files_1.getCodeText)(parseSettings.code)); - if (parsedFilesSeenHash.get(filePath) !== codeHash && - fileWatchCallbacks && - fileWatchCallbacks.size > 0) { - fileWatchCallbacks.forEach(cb => cb(filePath, ts.FileWatcherEventKind.Changed)); - } - const currentProjectsFromSettings = new Map(parseSettings.projects); - /* - * before we go into the process of attempting to find and update every program - * see if we know of a program that contains this file - */ - for (const [tsconfigPath, existingWatch] of knownWatchProgramMap.entries()) { - if (!currentProjectsFromSettings.has(tsconfigPath)) { - // the current parser run doesn't specify this tsconfig in parserOptions.project - // so we don't want to consider it for caching purposes. - // - // if we did consider it we might return a program for a project - // that wasn't specified in the current parser run (which is obv bad!). - continue; - } - let fileList = programFileListCache.get(tsconfigPath); - let updatedProgram = null; - if (!fileList) { - updatedProgram = existingWatch.getProgram().getProgram(); - fileList = updateCachedFileList(tsconfigPath, updatedProgram); - } - if (fileList.has(filePath)) { - log('Found existing program for file. %s', filePath); - updatedProgram ??= existingWatch.getProgram().getProgram(); - // sets parent pointers in source files - updatedProgram.getTypeChecker(); - return [updatedProgram]; - } - } - log('File did not belong to any existing programs, moving to create/update. %s', filePath); - /* - * We don't know of a program that contains the file, this means that either: - * - the required program hasn't been created yet, or - * - the file is new/renamed, and the program hasn't been updated. - */ - for (const tsconfigPath of parseSettings.projects) { - const existingWatch = knownWatchProgramMap.get(tsconfigPath[0]); - if (existingWatch) { - const updatedProgram = maybeInvalidateProgram(existingWatch, filePath, tsconfigPath[0]); - if (!updatedProgram) { - continue; - } - // sets parent pointers in source files - updatedProgram.getTypeChecker(); - // cache and check the file list - const fileList = updateCachedFileList(tsconfigPath[0], updatedProgram); - if (fileList.has(filePath)) { - log('Found updated program for file. %s', filePath); - // we can return early because we know this program contains the file - return [updatedProgram]; - } - results.push(updatedProgram); - continue; - } - const programWatch = createWatchProgram(tsconfigPath[1], parseSettings); - knownWatchProgramMap.set(tsconfigPath[0], programWatch); - const program = programWatch.getProgram().getProgram(); - // sets parent pointers in source files - program.getTypeChecker(); - // cache and check the file list - const fileList = updateCachedFileList(tsconfigPath[0], program); - if (fileList.has(filePath)) { - log('Found program for file. %s', filePath); - // we can return early because we know this program contains the file - return [program]; - } - results.push(program); - } - return results; -} -function createWatchProgram(tsconfigPath, parseSettings) { - log('Creating watch program for %s.', tsconfigPath); - // create compiler host - const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter, - // TODO: file issue on TypeScript to suggest making optional? - // eslint-disable-next-line @typescript-eslint/no-empty-function - /*reportWatchStatus*/ () => { }); - watchCompilerHost.jsDocParsingMode = parseSettings.jsDocParsingMode; - // ensure readFile reads the code being linted instead of the copy on disk - const oldReadFile = watchCompilerHost.readFile; - watchCompilerHost.readFile = (filePathIn, encoding) => { - const filePath = (0, shared_1.getCanonicalFileName)(filePathIn); - const fileContent = filePath === currentLintOperationState.filePath - ? (0, source_files_1.getCodeText)(currentLintOperationState.code) - : oldReadFile(filePath, encoding); - if (fileContent !== undefined) { - parsedFilesSeenHash.set(filePath, (0, shared_1.createHash)(fileContent)); - } - return fileContent; - }; - // ensure process reports error on failure instead of exiting process immediately - watchCompilerHost.onUnRecoverableConfigFileDiagnostic = diagnosticReporter; - // ensure process doesn't emit programs - watchCompilerHost.afterProgramCreate = (program) => { - // report error if there are any errors in the config file - const configFileDiagnostics = program - .getConfigFileParsingDiagnostics() - .filter(diag => diag.category === ts.DiagnosticCategory.Error && diag.code !== 18003); - if (configFileDiagnostics.length > 0) { - diagnosticReporter(configFileDiagnostics[0]); - } - }; - /* - * From the CLI, the file watchers won't matter, as the files will be parsed once and then forgotten. - * When running from an IDE, these watchers will let us tell typescript about changes. - * - * ESLint IDE plugins will send us unfinished file content as the user types (before it's saved to disk). - * We use the file watchers to tell typescript about this latest file content. - * - * When files are created (or renamed), we won't know about them because we have no filesystem watchers attached. - * We use the folder watchers to tell typescript it needs to go and find new files in the project folders. - */ - watchCompilerHost.watchFile = saveWatchCallback(fileWatchCallbackTrackingMap); - watchCompilerHost.watchDirectory = saveWatchCallback(folderWatchCallbackTrackingMap); - // allow files with custom extensions to be included in program (uses internal ts api) - const oldOnDirectoryStructureHostCreate = watchCompilerHost.onCachedDirectoryStructureHostCreate; - watchCompilerHost.onCachedDirectoryStructureHostCreate = (host) => { - const oldReadDirectory = host.readDirectory; - host.readDirectory = (path, extensions, exclude, include, depth) => oldReadDirectory(path, !extensions - ? undefined - : extensions.concat(parseSettings.extraFileExtensions), exclude, include, depth); - oldOnDirectoryStructureHostCreate(host); - }; - // This works only on 3.9 - watchCompilerHost.extraFileExtensions = parseSettings.extraFileExtensions.map(extension => ({ - extension, - isMixedContent: true, - scriptKind: ts.ScriptKind.Deferred, - })); - watchCompilerHost.trace = log; - // Since we don't want to asynchronously update program we want to disable timeout methods - // So any changes in the program will be delayed and updated when getProgram is called on watch - watchCompilerHost.setTimeout = undefined; - watchCompilerHost.clearTimeout = undefined; - return ts.createWatchProgram(watchCompilerHost); -} -function hasTSConfigChanged(tsconfigPath) { - const stat = fs_1.default.statSync(tsconfigPath); - const lastModifiedAt = stat.mtimeMs; - const cachedLastModifiedAt = tsconfigLastModifiedTimestampCache.get(tsconfigPath); - tsconfigLastModifiedTimestampCache.set(tsconfigPath, lastModifiedAt); - if (cachedLastModifiedAt === undefined) { - return false; - } - return Math.abs(cachedLastModifiedAt - lastModifiedAt) > Number.EPSILON; -} -function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) { - /* - * By calling watchProgram.getProgram(), it will trigger a resync of the program based on - * whatever new file content we've given it from our input. - */ - let updatedProgram = existingWatch.getProgram().getProgram(); - // In case this change causes problems in larger real world codebases - // Provide an escape hatch so people don't _have_ to revert to an older version - if (process.env.TSESTREE_NO_INVALIDATION === 'true') { - return updatedProgram; - } - if (hasTSConfigChanged(tsconfigPath)) { - /* - * If the stat of the tsconfig has changed, that could mean the include/exclude/files lists has changed - * We need to make sure typescript knows this so it can update appropriately - */ - log('tsconfig has changed - triggering program update. %s', tsconfigPath); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - fileWatchCallbackTrackingMap - .get(tsconfigPath) - .forEach(cb => cb(tsconfigPath, ts.FileWatcherEventKind.Changed)); - // tsconfig change means that the file list more than likely changed, so clear the cache - programFileListCache.delete(tsconfigPath); - } - let sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - /* - * Missing source file means our program's folder structure might be out of date. - * So we need to tell typescript it needs to update the correct folder. - */ - log('File was not found in program - triggering folder update. %s', filePath); - // Find the correct directory callback by climbing the folder tree - const currentDir = (0, shared_1.canonicalDirname)(filePath); - let current = null; - let next = currentDir; - let hasCallback = false; - while (current !== next) { - current = next; - const folderWatchCallbacks = folderWatchCallbackTrackingMap.get(current); - if (folderWatchCallbacks) { - for (const cb of folderWatchCallbacks) { - if (currentDir !== current) { - cb(currentDir, ts.FileWatcherEventKind.Changed); - } - cb(current, ts.FileWatcherEventKind.Changed); - } - hasCallback = true; - } - next = (0, shared_1.canonicalDirname)(current); - } - if (!hasCallback) { - /* - * No callback means the paths don't matchup - so no point returning any program - * this will signal to the caller to skip this program - */ - log('No callback found for file, not part of this program. %s', filePath); - return null; - } - // directory update means that the file list more than likely changed, so clear the cache - programFileListCache.delete(tsconfigPath); - // force the immediate resync - updatedProgram = existingWatch.getProgram().getProgram(); - sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - /* - * At this point we're in one of two states: - * - The file isn't supposed to be in this program due to exclusions - * - The file is new, and was renamed from an old, included filename - * - * For the latter case, we need to tell typescript that the old filename is now deleted - */ - log('File was still not found in program after directory update - checking file deletions. %s', filePath); - const rootFilenames = updatedProgram.getRootFileNames(); - // use find because we only need to "delete" one file to cause typescript to do a full resync - const deletedFile = rootFilenames.find(file => !fs_1.default.existsSync(file)); - if (!deletedFile) { - // There are no deleted files, so it must be the former case of the file not belonging to this program - return null; - } - const fileWatchCallbacks = fileWatchCallbackTrackingMap.get((0, shared_1.getCanonicalFileName)(deletedFile)); - if (!fileWatchCallbacks) { - // shouldn't happen, but just in case - log('Could not find watch callbacks for root file. %s', deletedFile); - return updatedProgram; - } - log('Marking file as deleted. %s', deletedFile); - fileWatchCallbacks.forEach(cb => cb(deletedFile, ts.FileWatcherEventKind.Deleted)); - // deleted files means that the file list _has_ changed, so clear the cache - programFileListCache.delete(tsconfigPath); - updatedProgram = existingWatch.getProgram().getProgram(); - sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath); - return null; -} -//# sourceMappingURL=getWatchProgramsForProjects.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map deleted file mode 100644 index 60a6716b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2eS,4CAAgB;AAAE,kEAA2B;AA3etD,kDAA0B;AAC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AAM,CAAC,YAAY,CAAC,CAAC;IAE1C,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC;IACzD,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts deleted file mode 100644 index d49a59a2..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { Program } from 'typescript'; -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -interface ASTAndNoProgram { - ast: ts.SourceFile; - program: null; -} -interface ASTAndDefiniteProgram { - ast: ts.SourceFile; - program: ts.Program; -} -type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram; -/** - * Compiler options required to avoid critical functionality issues - */ -declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; -declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; -type CanonicalPath = string & { - __brand: unknown; -}; -declare function getCanonicalFileName(filePath: string): CanonicalPath; -declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; -declare function canonicalDirname(p: CanonicalPath): CanonicalPath; -declare function getAstFromProgram(currentProgram: Program, filePath: string): ASTAndDefiniteProgram | undefined; -/** - * Hash content for compare content. - * @param content hashed contend - * @returns hashed result - */ -declare function createHash(content: string): string; -export { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, }; -//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map deleted file mode 100644 index aed1fd9e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,eAAe;IACvB,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC;CACf;AACD,UAAU,qBAAqB;IAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;CACrB;AACD,KAAK,aAAa,GAAG,qBAAqB,GAAG,eAAe,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,eAQ/B,CAAC;AAYF,iBAAS,qCAAqC,CAC5C,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,eAAe,CASpB;AAGD,KAAK,aAAa,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAUnD,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAM7D;AAED,iBAAS,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,iBAAS,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAEzD;AAmBD,iBAAS,iBAAiB,CACxB,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,MAAM,GACf,qBAAqB,GAAG,SAAS,CAWnC;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAO3C;AAED,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,qCAAqC,EACrC,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js deleted file mode 100644 index 6498d31f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CORE_COMPILER_OPTIONS = void 0; -exports.canonicalDirname = canonicalDirname; -exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; -exports.createHash = createHash; -exports.ensureAbsolutePath = ensureAbsolutePath; -exports.getCanonicalFileName = getCanonicalFileName; -exports.getAstFromProgram = getAstFromProgram; -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -/** - * Compiler options required to avoid critical functionality issues - */ -const CORE_COMPILER_OPTIONS = { - noEmit: true, // required to avoid parse from causing emit to occur - /** - * Flags required to make no-unused-vars work - */ - noUnusedLocals: true, - noUnusedParameters: true, -}; -exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; -/** - * Default compiler options for program generation - */ -const DEFAULT_COMPILER_OPTIONS = { - ...CORE_COMPILER_OPTIONS, - allowNonTsExtensions: true, - allowJs: true, - checkJs: true, -}; -function createDefaultCompilerOptionsFromExtra(parseSettings) { - if (parseSettings.debugLevel.has('typescript')) { - return { - ...DEFAULT_COMPILER_OPTIONS, - extendedDiagnostics: true, - }; - } - return DEFAULT_COMPILER_OPTIONS; -} -// typescript doesn't provide a ts.sys implementation for browser environments -const useCaseSensitiveFileNames = -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -ts.sys !== undefined ? ts.sys.useCaseSensitiveFileNames : true; -const correctPathCasing = useCaseSensitiveFileNames - ? (filePath) => filePath - : (filePath) => filePath.toLowerCase(); -function getCanonicalFileName(filePath) { - let normalized = path_1.default.normalize(filePath); - if (normalized.endsWith(path_1.default.sep)) { - normalized = normalized.slice(0, -1); - } - return correctPathCasing(normalized); -} -function ensureAbsolutePath(p, tsconfigRootDir) { - return path_1.default.isAbsolute(p) - ? p - : path_1.default.join(tsconfigRootDir || process.cwd(), p); -} -function canonicalDirname(p) { - return path_1.default.dirname(p); -} -const DEFINITION_EXTENSIONS = [ - ts.Extension.Dts, - ts.Extension.Dcts, - ts.Extension.Dmts, -]; -function getExtension(fileName) { - if (!fileName) { - return null; - } - return (DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt)) ?? path_1.default.extname(fileName)); -} -function getAstFromProgram(currentProgram, filePath) { - const ast = currentProgram.getSourceFile(filePath); - // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573 - const expectedExt = getExtension(filePath); - const returnedExt = getExtension(ast?.fileName); - if (expectedExt !== returnedExt) { - return undefined; - } - return ast && { ast, program: currentProgram }; -} -/** - * Hash content for compare content. - * @param content hashed contend - * @returns hashed result - */ -function createHash(content) { - // No ts.sys in browser environments. - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (ts.sys?.createHash) { - return ts.sys.createHash(content); - } - return content; -} -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map deleted file mode 100644 index 730903b9..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIE,4CAAgB;AAEhB,sFAAqC;AACrC,gCAAU;AACV,gDAAkB;AAClB,oDAAoB;AACpB,8CAAiB;AA3InB,gDAAwB;AAExB,+CAAiC;AAcjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI,EAAE,qDAAqD;IAEnE;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAyGA,sDAAqB;AAvGvB;;GAEG;AACH,MAAM,wBAAwB,GAAuB;IACnD,GAAG,qBAAqB;IACxB,oBAAoB,EAAE,IAAI;IAC1B,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,SAAS,qCAAqC,CAC5C,aAA4B;IAE5B,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;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AAC,SAAS,CAAC,IAAI;CACT,CAAC;AACX,SAAS,YAAY,CAAC,QAA4B;IAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,qBAAqB,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CACzC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CACjC,IAAI,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,cAAuB,EACvB,QAAgB;IAEhB,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEnD,oFAAoF;IACpF,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAe;IACjC,qCAAqC;IACrC,uEAAuE;IACvE,IAAI,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts deleted file mode 100644 index 76435e30..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndDefiniteProgram } from './shared'; -declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined; -/** - * Utility offered by parser to help consumers construct their own program instance. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; -export { useProvidedPrograms, createProgramFromConfigFile }; -//# sourceMappingURL=useProvidedPrograms.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map deleted file mode 100644 index 16dc240d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKtD,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,GAAG,SAAS,CAoCnC;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CAIZ;AAED,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js deleted file mode 100644 index f82362c3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.useProvidedPrograms = useProvidedPrograms; -exports.createProgramFromConfigFile = createProgramFromConfigFile; -const debug_1 = __importDefault(require("debug")); -const path = __importStar(require("path")); -const ts = __importStar(require("typescript")); -const getParsedConfigFile_1 = require("./getParsedConfigFile"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram'); -function useProvidedPrograms(programInstances, parseSettings) { - log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath); - let astAndProgram; - for (const programInstance of programInstances) { - astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings.filePath); - // Stop at the first applicable program instance - if (astAndProgram) { - break; - } - } - if (astAndProgram) { - astAndProgram.program.getTypeChecker(); // ensure parent pointers are set in source files - return astAndProgram; - } - const relativeFilePath = path.relative(parseSettings.tsconfigRootDir, parseSettings.filePath); - const [typeSource, typeSources] = parseSettings.projects.size > 0 - ? ['project', 'project(s)'] - : ['programs', 'program instance(s)']; - const errorLines = [ - `"parserOptions.${typeSource}" has been provided for @typescript-eslint/parser.`, - `The file was not found in any of the provided ${typeSources}: ${relativeFilePath}`, - ]; - throw new Error(errorLines.join('\n')); -} -/** - * Utility offered by parser to help consumers construct their own program instance. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -function createProgramFromConfigFile(configFile, projectDirectory) { - const parsed = (0, getParsedConfigFile_1.getParsedConfigFile)(ts, configFile, projectDirectory); - const host = ts.createCompilerHost(parsed.options, true); - return ts.createProgram(parsed.fileNames, parsed.options, host); -} -//# sourceMappingURL=useProvidedPrograms.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map deleted file mode 100644 index 84db8370..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmES,kDAAmB;AAAE,kEAA2B;AAnEzD,kDAA0B;AAC1B,2CAA6B;AAC7B,+CAAiC;AAGjC,+DAA4D;AAE5D,qCAA6C;AAE7C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E,SAAS,mBAAmB,CAC1B,gBAAsC,EACtC,aAA4B;IAE5B,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,I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of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts deleted file mode 100644 index c9e26910..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ProjectServiceOptions } from '../parser-options'; -export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide\n"; -export declare function validateDefaultProjectForFilesGlob(options: ProjectServiceOptions): void; -//# sourceMappingURL=validateDefaultProjectForFilesGlob.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map deleted file mode 100644 index 685899d8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validateDefaultProjectForFilesGlob.d.ts","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,uCAAuC,yNAKnD,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,qBAAqB,GAC7B,IAAI,CAiBN"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js deleted file mode 100644 index 31493159..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = void 0; -exports.validateDefaultProjectForFilesGlob = validateDefaultProjectForFilesGlob; -exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = ` - -Having many files run with the default project is known to cause performance issues and slow down linting. - -See https://typescript-eslint.io/troubleshooting/typed-linting#allowdefaultproject-glob-too-wide -`; -function validateDefaultProjectForFilesGlob(options) { - if (!options.allowDefaultProject?.length) { - return; - } - for (const glob of options.allowDefaultProject) { - if (glob === '*') { - throw new Error(`allowDefaultProject contains the overly wide '*'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); - } - if (glob.includes('**')) { - throw new Error(`allowDefaultProject glob '${glob}' contains a disallowed '**'.${exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION}`); - } - } -} -//# sourceMappingURL=validateDefaultProjectForFilesGlob.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map deleted file mode 100644 index f1a90921..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validateDefaultProjectForFilesGlob.js","sourceRoot":"","sources":["../../src/create-program/validateDefaultProjectForFilesGlob.ts"],"names":[],"mappings":";;;AASA,gFAmBC;AA1BY,QAAA,uCAAuC,GAAG;;;;;CAKtD,CAAC;AAEF,SAAgB,kCAAkC,CAChD,OAA8B;IAE9B,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACzC,OAAO;IACT,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;QAC/C,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACb,oDAAoD,+CAAuC,EAAE,CAC9F,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CACb,6BAA6B,IAAI,gCAAgC,+CAAuC,EAAE,CAC3G,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts deleted file mode 100644 index 28b98fe8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type * as ts from 'typescript'; -import type { ASTMaps } from './convert'; -import type { ParserServices } from './parser-options'; -export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices; -//# sourceMappingURL=createParserServices.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map deleted file mode 100644 index 69157f26..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParserServices.d.ts","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,IAAI,GACzB,cAAc,CA2BhB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js deleted file mode 100644 index fd5ddeb8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createParserServices = createParserServices; -function createParserServices(astMaps, program) { - if (!program) { - return { - program, - emitDecoratorMetadata: undefined, - experimentalDecorators: undefined, - // we always return the node maps because - // (a) they don't require type info and - // (b) they can be useful when using some of TS's internal non-type-aware AST utils - ...astMaps, - }; - } - const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); - return { - program, - // not set in the config is the same as off - emitDecoratorMetadata: compilerOptions.emitDecoratorMetadata ?? false, - experimentalDecorators: compilerOptions.experimentalDecorators ?? false, - ...astMaps, - getSymbolAtLocation: node => checker.getSymbolAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), - getTypeAtLocation: node => checker.getTypeAtLocation(astMaps.esTreeNodeToTSNodeMap.get(node)), - }; -} -//# sourceMappingURL=createParserServices.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map deleted file mode 100644 index 86158d47..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParserServices.js","sourceRoot":"","sources":["../src/createParserServices.ts"],"names":[],"mappings":";;AAKA,oDA8BC;AA9BD,SAAgB,oBAAoB,CAClC,OAAgB,EAChB,OAA0B;IAE1B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;YACL,OAAO;YACP,qBAAqB,EAAE,SAAS;YAChC,sBAAsB,EAAE,SAAS;YACjC,yCAAyC;YACzC,uCAAuC;YACvC,mFAAmF;YACnF,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAErD,OAAO;QACL,OAAO;QACP,2CAA2C;QAC3C,qBAAqB,EAAE,eAAe,CAAC,qBAAqB,IAAI,KAAK;QACrE,sBAAsB,EAAE,eAAe,CAAC,sBAAsB,IAAI,KAAK;QACvE,GAAG,OAAO;QACV,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAC1B,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACtE,iBAAiB,EAAE,IAAI,CAAC,EAAE,CACxB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACrE,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts deleted file mode 100644 index c312b154..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined; -export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined; -//# sourceMappingURL=getModifiers.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map deleted file mode 100644 index a67408e6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getModifiers.d.ts","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,uBAAuB,UAAQ,GAC9B,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAsB3B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAChC,wBAAwB,UAAQ,GAC/B,EAAE,CAAC,SAAS,EAAE,GAAG,SAAS,CAoB5B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js deleted file mode 100644 index 5731c09d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getModifiers = getModifiers; -exports.getDecorators = getDecorators; -const ts = __importStar(require("typescript")); -const version_check_1 = require("./version-check"); -const isAtLeast48 = version_check_1.typescriptVersionIsAtLeast['4.8']; -function getModifiers(node, includeIllegalModifiers = false) { - if (node == null) { - return undefined; - } - if (isAtLeast48) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - if (includeIllegalModifiers || ts.canHaveModifiers(node)) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - const modifiers = ts.getModifiers(node); - return modifiers ? Array.from(modifiers) : undefined; - } - return undefined; - } - return ( - // @ts-expect-error intentional fallback for older TS versions - node.modifiers?.filter((m) => !ts.isDecorator(m))); -} -function getDecorators(node, includeIllegalDecorators = false) { - if (node == null) { - return undefined; - } - if (isAtLeast48) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - if (includeIllegalDecorators || ts.canHaveDecorators(node)) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - const decorators = ts.getDecorators(node); - return decorators ? Array.from(decorators) : undefined; - } - return undefined; - } - return ( - // @ts-expect-error intentional fallback for older TS versions - node.decorators?.filter(ts.isDecorator)); -} -//# sourceMappingURL=getModifiers.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map deleted file mode 100644 index 92f61adb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getModifiers.js","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,oCAyBC;AAED,sCAuBC;AAxDD,+CAAiC;AAEjC,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,SAAgB,YAAY,CAC1B,IAAgC,EAChC,uBAAuB,GAAG,KAAK;IAE/B,IAAI,IA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-eslint/typescript-estree/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts deleted file mode 100644 index 7905430b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, } from './parser'; -export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, TSESTreeOptions, } from './parser-options'; -export { simpleTraverse } from './simple-traverse'; -export * from './ts-estree'; -export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; -export * from './create-program/getScriptKind'; -export { getCanonicalFileName } from './create-program/shared'; -export { typescriptVersionIsAtLeast } from './version-check'; -export * from './getModifiers'; -export { TSError } from './node-utils'; -export * from './clear-caches'; -export { withoutProjectParserOptions } from './withoutProjectParserOptions'; -export declare const version: string; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map deleted file mode 100644 index 83e163d0..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,iCAAiC,EACjC,oCAAoC,EACpC,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAI5E,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js deleted file mode 100644 index ea04bf9d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = exports.withoutProjectParserOptions = exports.TSError = exports.typescriptVersionIsAtLeast = exports.getCanonicalFileName = exports.createProgram = exports.simpleTraverse = exports.parseAndGenerateServices = exports.parse = void 0; -var parser_1 = require("./parser"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); -Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } }); -var simple_traverse_1 = require("./simple-traverse"); -Object.defineProperty(exports, "simpleTraverse", { enumerable: true, get: function () { return simple_traverse_1.simpleTraverse; } }); -__exportStar(require("./ts-estree"), exports); -var useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); -Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return useProvidedPrograms_1.createProgramFromConfigFile; } }); -__exportStar(require("./create-program/getScriptKind"), exports); -var shared_1 = require("./create-program/shared"); -Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); -var version_check_1 = require("./version-check"); -Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); -__exportStar(require("./getModifiers"), exports); -var node_utils_1 = require("./node-utils"); -Object.defineProperty(exports, "TSError", { enumerable: true, get: function () { return node_utils_1.TSError; } }); -__exportStar(require("./clear-caches"), exports); -var withoutProjectParserOptions_1 = require("./withoutProjectParserOptions"); -Object.defineProperty(exports, "withoutProjectParserOptions", { enumerable: true, get: function () { return withoutProjectParserOptions_1.withoutProjectParserOptions; } }); -// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access -exports.version = require('../package.json').version; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map deleted file mode 100644 index 64016717..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAKkB;AAHhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AAS1B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iEAA+C;AAC/C,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA;AAC7B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,iDAA+B;AAC/B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,iDAA+B;AAC/B,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AAEpC,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts deleted file mode 100644 index 7953cc6f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const xhtmlEntities: Record; -//# sourceMappingURL=xhtml-entities.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map deleted file mode 100644 index ce45e83d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xhtml-entities.d.ts","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8PhD,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js deleted file mode 100644 index bf58e965..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +++ /dev/null @@ -1,259 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xhtmlEntities = void 0; -exports.xhtmlEntities = { - quot: '\u0022', - amp: '&', - apos: '\u0027', - lt: '<', - gt: '>', - nbsp: '\u00A0', - iexcl: '\u00A1', - cent: '\u00A2', - pound: '\u00A3', - curren: '\u00A4', - yen: '\u00A5', - brvbar: '\u00A6', - sect: '\u00A7', - uml: '\u00A8', - copy: '\u00A9', - ordf: '\u00AA', - laquo: '\u00AB', - not: '\u00AC', - shy: '\u00AD', - reg: '\u00AE', - macr: '\u00AF', - deg: '\u00B0', - plusmn: '\u00B1', - sup2: '\u00B2', - sup3: '\u00B3', - acute: '\u00B4', - micro: '\u00B5', - para: '\u00B6', - middot: '\u00B7', - cedil: '\u00B8', - sup1: '\u00B9', - ordm: '\u00BA', - raquo: '\u00BB', - frac14: '\u00BC', - frac12: '\u00BD', - frac34: '\u00BE', - iquest: '\u00BF', - Agrave: '\u00C0', - Aacute: '\u00C1', - Acirc: '\u00C2', - Atilde: '\u00C3', - Auml: '\u00C4', - Aring: '\u00C5', - AElig: '\u00C6', - Ccedil: '\u00C7', - Egrave: '\u00C8', - Eacute: '\u00C9', - Ecirc: '\u00CA', - Euml: '\u00CB', - Igrave: '\u00CC', - Iacute: '\u00CD', - Icirc: '\u00CE', - Iuml: '\u00CF', - ETH: '\u00D0', - Ntilde: '\u00D1', - Ograve: '\u00D2', - Oacute: '\u00D3', - Ocirc: '\u00D4', - Otilde: '\u00D5', - Ouml: '\u00D6', - times: '\u00D7', - Oslash: '\u00D8', - Ugrave: '\u00D9', - Uacute: '\u00DA', - Ucirc: '\u00DB', - Uuml: '\u00DC', - Yacute: '\u00DD', - THORN: '\u00DE', - szlig: '\u00DF', - agrave: '\u00E0', - aacute: '\u00E1', - acirc: '\u00E2', - atilde: '\u00E3', - auml: '\u00E4', - aring: '\u00E5', - aelig: '\u00E6', - ccedil: '\u00E7', - egrave: '\u00E8', - eacute: '\u00E9', - ecirc: '\u00EA', - euml: '\u00EB', - igrave: '\u00EC', - iacute: '\u00ED', - icirc: '\u00EE', - iuml: '\u00EF', - eth: '\u00F0', - ntilde: '\u00F1', - ograve: '\u00F2', - oacute: '\u00F3', - ocirc: '\u00F4', - otilde: '\u00F5', - ouml: '\u00F6', - divide: '\u00F7', - oslash: '\u00F8', - ugrave: '\u00F9', - uacute: '\u00FA', - ucirc: '\u00FB', - uuml: '\u00FC', - yacute: '\u00FD', - thorn: '\u00FE', - yuml: '\u00FF', - OElig: '\u0152', - oelig: '\u0153', - Scaron: '\u0160', - scaron: '\u0161', - Yuml: '\u0178', - fnof: '\u0192', - circ: '\u02C6', - tilde: '\u02DC', - Alpha: '\u0391', - Beta: '\u0392', - Gamma: '\u0393', - Delta: '\u0394', - Epsilon: '\u0395', - Zeta: '\u0396', - Eta: '\u0397', - Theta: '\u0398', - Iota: '\u0399', - Kappa: '\u039A', - Lambda: '\u039B', - Mu: '\u039C', - Nu: '\u039D', - Xi: '\u039E', - Omicron: '\u039F', - Pi: '\u03A0', - Rho: '\u03A1', - Sigma: '\u03A3', - Tau: '\u03A4', - Upsilon: '\u03A5', - Phi: '\u03A6', - Chi: '\u03A7', - Psi: '\u03A8', - Omega: '\u03A9', - alpha: '\u03B1', - beta: '\u03B2', - gamma: '\u03B3', - delta: '\u03B4', - epsilon: '\u03B5', - zeta: '\u03B6', - eta: '\u03B7', - theta: '\u03B8', - iota: '\u03B9', - kappa: '\u03BA', - lambda: '\u03BB', - mu: '\u03BC', - nu: '\u03BD', - xi: '\u03BE', - omicron: '\u03BF', - pi: '\u03C0', - rho: '\u03C1', - sigmaf: '\u03C2', - sigma: '\u03C3', - tau: '\u03C4', - upsilon: '\u03C5', - phi: '\u03C6', - chi: '\u03C7', - psi: '\u03C8', - omega: '\u03C9', - thetasym: '\u03D1', - upsih: '\u03D2', - piv: '\u03D6', - ensp: '\u2002', - emsp: '\u2003', - thinsp: '\u2009', - zwnj: '\u200C', - zwj: '\u200D', - lrm: '\u200E', - rlm: '\u200F', - ndash: '\u2013', - mdash: '\u2014', - lsquo: '\u2018', - rsquo: '\u2019', - sbquo: '\u201A', - ldquo: '\u201C', - rdquo: '\u201D', - bdquo: '\u201E', - dagger: '\u2020', - Dagger: '\u2021', - bull: '\u2022', - hellip: '\u2026', - permil: '\u2030', - prime: '\u2032', - Prime: '\u2033', - lsaquo: '\u2039', - rsaquo: '\u203A', - oline: '\u203E', - frasl: '\u2044', - euro: '\u20AC', - image: '\u2111', - weierp: '\u2118', - real: '\u211C', - trade: '\u2122', - alefsym: '\u2135', - larr: '\u2190', - uarr: '\u2191', - rarr: '\u2192', - darr: '\u2193', - harr: '\u2194', - crarr: '\u21B5', - lArr: '\u21D0', - uArr: '\u21D1', - rArr: '\u21D2', - dArr: '\u21D3', - hArr: '\u21D4', - forall: '\u2200', - part: '\u2202', - exist: '\u2203', - empty: '\u2205', - nabla: '\u2207', - isin: '\u2208', - notin: '\u2209', - ni: '\u220B', - prod: '\u220F', - sum: '\u2211', - minus: '\u2212', - lowast: '\u2217', - radic: '\u221A', - prop: '\u221D', - infin: '\u221E', - ang: '\u2220', - and: '\u2227', - or: '\u2228', - cap: '\u2229', - cup: '\u222A', - int: '\u222B', - there4: '\u2234', - sim: '\u223C', - cong: '\u2245', - asymp: '\u2248', - ne: '\u2260', - equiv: '\u2261', - le: '\u2264', - ge: '\u2265', - sub: '\u2282', - sup: '\u2283', - nsub: '\u2284', - sube: '\u2286', - supe: '\u2287', - oplus: '\u2295', - otimes: '\u2297', - perp: '\u22A5', - sdot: '\u22C5', - lceil: '\u2308', - rceil: '\u2309', - lfloor: '\u230A', - rfloor: '\u230B', - lang: '\u2329', - rang: '\u232A', - loz: '\u25CA', - spades: '\u2660', - clubs: '\u2663', - hearts: '\u2665', - diams: '\u2666', -}; -//# sourceMappingURL=xhtml-entities.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map deleted file mode 100644 index 30c14ec7..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xhtml-entities.js","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAA2B;IACnD,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,QAAQ;IACd,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf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AAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts deleted file mode 100644 index d6b12545..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts +++ /dev/null @@ -1,249 +0,0 @@ -import * as ts from 'typescript'; -import type { TSESTree, TSNode } from './ts-estree'; -import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; -declare const SyntaxKind: typeof ts.SyntaxKind; -type LogicalOperatorKind = ts.SyntaxKind.AmpersandAmpersandToken | ts.SyntaxKind.BarBarToken | ts.SyntaxKind.QuestionQuestionToken; -interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOperatorToText { - [SyntaxKind.ImportKeyword]: 'import'; - [SyntaxKind.NewKeyword]: 'new'; - [SyntaxKind.KeyOfKeyword]: 'keyof'; - [SyntaxKind.ReadonlyKeyword]: 'readonly'; - [SyntaxKind.UniqueKeyword]: 'unique'; -} -type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText; -type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText; -type DeclarationKind = TSESTree.VariableDeclaration['kind']; -/** - * Returns true if the given ts.Token is a logical operator - * @param operator the operator token - * @returns is a logical operator - */ -export declare function isLogicalOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; -export declare function isESTreeBinaryOperator(operator: ts.BinaryOperatorToken): operator is ts.Token; -type TokenForTokenKind = T extends keyof TokenToText ? TokenToText[T] : string | undefined; -/** - * Returns the string form of the given TSToken SyntaxKind - * @param kind the token's SyntaxKind - * @returns the token applicable token as a string - */ -export declare function getTextForTokenKind(kind: T): TokenForTokenKind; -/** - * Returns true if the given ts.Node is a valid ESTree class member - * @param node TypeScript AST node - * @returns is valid ESTree class member - */ -export declare function isESTreeClassMember(node: ts.Node): boolean; -/** - * Checks if a ts.Node has a modifier - * @param modifierKind TypeScript SyntaxKind modifier - * @param node TypeScript AST node - * @returns has the modifier specified - */ -export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; -/** - * Get last last modifier in ast - * @param node TypeScript AST node - * @returns returns last modifier if present or null - */ -export declare function getLastModifier(node: ts.Node): ts.Modifier | null; -/** - * Returns true if the given ts.Token is a comma - * @param token the TypeScript token - * @returns is comma - */ -export declare function isComma(token: ts.Node): token is ts.Token; -/** - * Returns true if the given ts.Node is a comment - * @param node the TypeScript node - * @returns is comment - */ -export declare function isComment(node: ts.Node): boolean; -/** - * Returns the binary expression type of the given ts.Token - * @param operator the operator token - * @returns the binary expression type - */ -export declare function getBinaryExpressionType(operator: ts.BinaryOperatorToken): { - type: AST_NODE_TYPES.AssignmentExpression; - operator: TokenForTokenKind; -} | { - type: AST_NODE_TYPES.BinaryExpression; - operator: TokenForTokenKind; -} | { - type: AST_NODE_TYPES.LogicalExpression; - operator: TokenForTokenKind; -}; -/** - * Returns line and column data for the given positions, - * @param pos position to check - * @param ast the AST object - * @returns line and column - */ -export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; -/** - * Returns line and column data for the given start and end positions, - * for the given AST - * @param range start end data - * @param ast the AST object - * @returns the loc data - */ -export declare function getLocFor(range: TSESTree.Range, ast: ts.SourceFile): TSESTree.SourceLocation; -/** - * Check whatever node can contain directive - * @returns returns true if node can contain directive - */ -export declare function canContainDirective(node: ts.Block | ts.ClassStaticBlockDeclaration | ts.ModuleBlock | ts.SourceFile): boolean; -/** - * Returns range for the given ts.Node - * @param node the ts.Node or ts.Token - * @param ast the AST object - * @returns the range data - */ -export declare function getRange(node: Pick, ast: ts.SourceFile): [number, number]; -/** - * Returns true if a given ts.Node is a JSX token - * @param node ts.Node to be checked - * @returns is a JSX token - */ -export declare function isJSXToken(node: ts.Node): boolean; -/** - * Returns the declaration kind of the given ts.Node - * @param node TypeScript AST node - * @returns declaration kind - */ -export declare function getDeclarationKind(node: ts.VariableDeclarationList): DeclarationKind; -/** - * Gets a ts.Node's accessibility level - * @param node The ts.Node - * @returns accessibility "public", "protected", "private", or null - */ -export declare function getTSNodeAccessibility(node: ts.Node): 'private' | 'protected' | 'public' | undefined; -/** - * Finds the next token based on the previous one and its parent - * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren - * @param previousToken The previous TSToken - * @param parent The parent TSNode - * @param ast The TS AST - * @returns the next TSToken - */ -export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; -/** - * Find the first matching ancestor based on the given predicate function. - * @param node The current ts.Node - * @param predicate The predicate function to apply to each checked ancestor - * @returns a matching parent ts.Node - */ -export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; -/** - * Returns true if a given ts.Node has a JSX token within its hierarchy - * @param node ts.Node to be checked - * @returns has JSX ancestor - */ -export declare function hasJSXAncestor(node: ts.Node): boolean; -/** - * Unescape the text content of string literals, e.g. & -> & - * @param text The escaped string literal text. - * @returns The unescaped string literal text. - */ -export declare function unescapeStringLiteralText(text: string): string; -/** - * Returns true if a given ts.Node is a computed property - * @param node ts.Node to be checked - * @returns is Computed Property - */ -export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; -/** - * Returns true if a given ts.Node is optional (has QuestionToken) - * @param node ts.Node to be checked - * @returns is Optional - */ -export declare function isOptional(node: { - questionToken?: ts.QuestionToken; -}): boolean; -/** - * Returns true if the node is an optional chain node - */ -export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; -/** - * Returns true of the child of property access expression is an optional chain - */ -export declare function isChildUnwrappableOptionalChain(node: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression, child: TSESTree.Node): boolean; -/** - * Returns the type of a given ts.Token - * @param token the ts.Token - * @returns the token type - */ -export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; -/** - * Extends and formats a given ts.Token, for a given AST - * @param token the ts.Token - * @param ast the AST object - * @returns the converted Token - */ -export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; -/** - * Converts all tokens for the given AST - * @param ast the AST object - * @returns the converted Tokens - */ -export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; -export declare class TSError extends Error { - readonly fileName: string; - readonly location: { - start: { - line: number; - column: number; - offset: number; - }; - end: { - line: number; - column: number; - offset: number; - }; - }; - constructor(message: string, fileName: string, location: { - start: { - line: number; - column: number; - offset: number; - }; - end: { - line: number; - column: number; - offset: number; - }; - }); - get index(): number; - get lineNumber(): number; - get column(): number; -} -/** - * @param message the error message - * @param ast the AST object - * @param startIndex the index at which the error starts - * @param endIndex the index at which the error ends - * @returns converted error object - */ -export declare function createError(message: string, ast: ts.SourceFile, startIndex: number, endIndex?: number): TSError; -export declare function nodeHasIllegalDecorators(node: ts.Node): node is ts.Node & { - illegalDecorators: ts.Node[]; -}; -/** - * @param n the TSNode - * @param ast the TS AST - */ -export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; -/** - * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). - */ -export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; -export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; -export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; -export declare function isThisInTypeQuery(node: ts.Node): boolean; -export declare function nodeIsPresent(node: ts.Node | undefined): node is ts.Node; -export declare function getContainingFunction(node: ts.Node): ts.SignatureDeclaration | undefined; -export declare function nodeCanBeDecorated(node: TSNode): boolean; -export declare function isValidAssignmentTarget(node: ts.Node): boolean; -export declare function getNamespaceModifiers(node: ts.ModuleDeclaration): ts.Modifier[] | undefined; -export {}; -//# sourceMappingURL=node-utils.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map deleted file mode 100644 index 0cd61d47..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-utils.d.ts","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,UAAU,sBAAgB,CAAC;AAEjC,KAAK,mBAAmB,GACpB,EAAE,CAAC,UAAU,CAAC,uBAAuB,GACrC,EAAE,CAAC,UAAU,CAAC,WAAW,GACzB,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC;AAOxC,UAAU,WACR,SAAQ,QAAQ,CAAC,qBAAqB,EACpC,QAAQ,CAAC,oBAAoB;IAC/B,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IACrC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC/B,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IACnC,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;CACtC;AAED,KAAK,sBAAsB,GAAG,MAAM,QAAQ,CAAC,wBAAwB,CAAC;AAoBtE,KAAK,kBAAkB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAAC;AA4B9D,KAAK,eAAe,GAAG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OAAO,CA6B9D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,EAAE,CAAC,iBAAiB,GACzB,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAgB3B"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js deleted file mode 100644 index fc438408..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +++ /dev/null @@ -1,790 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSError = void 0; -exports.isLogicalOperator = isLogicalOperator; -exports.isESTreeBinaryOperator = isESTreeBinaryOperator; -exports.getTextForTokenKind = getTextForTokenKind; -exports.isESTreeClassMember = isESTreeClassMember; -exports.hasModifier = hasModifier; -exports.getLastModifier = getLastModifier; -exports.isComma = isComma; -exports.isComment = isComment; -exports.getBinaryExpressionType = getBinaryExpressionType; -exports.getLineAndCharacterFor = getLineAndCharacterFor; -exports.getLocFor = getLocFor; -exports.canContainDirective = canContainDirective; -exports.getRange = getRange; -exports.isJSXToken = isJSXToken; -exports.getDeclarationKind = getDeclarationKind; -exports.getTSNodeAccessibility = getTSNodeAccessibility; -exports.findNextToken = findNextToken; -exports.findFirstMatchingAncestor = findFirstMatchingAncestor; -exports.hasJSXAncestor = hasJSXAncestor; -exports.unescapeStringLiteralText = unescapeStringLiteralText; -exports.isComputedProperty = isComputedProperty; -exports.isOptional = isOptional; -exports.isChainExpression = isChainExpression; -exports.isChildUnwrappableOptionalChain = isChildUnwrappableOptionalChain; -exports.getTokenType = getTokenType; -exports.convertToken = convertToken; -exports.convertTokens = convertTokens; -exports.createError = createError; -exports.nodeHasIllegalDecorators = nodeHasIllegalDecorators; -exports.nodeHasTokens = nodeHasTokens; -exports.firstDefined = firstDefined; -exports.identifierIsThisKeyword = identifierIsThisKeyword; -exports.isThisIdentifier = isThisIdentifier; -exports.isThisInTypeQuery = isThisInTypeQuery; -exports.nodeIsPresent = nodeIsPresent; -exports.getContainingFunction = getContainingFunction; -exports.nodeCanBeDecorated = nodeCanBeDecorated; -exports.isValidAssignmentTarget = isValidAssignmentTarget; -exports.getNamespaceModifiers = getNamespaceModifiers; -const ts = __importStar(require("typescript")); -const getModifiers_1 = require("./getModifiers"); -const xhtml_entities_1 = require("./jsx/xhtml-entities"); -const ts_estree_1 = require("./ts-estree"); -const version_check_1 = require("./version-check"); -const isAtLeast50 = version_check_1.typescriptVersionIsAtLeast['5.0']; -const SyntaxKind = ts.SyntaxKind; -const LOGICAL_OPERATORS = new Set([ - SyntaxKind.BarBarToken, - SyntaxKind.AmpersandAmpersandToken, - SyntaxKind.QuestionQuestionToken, -]); -const ASSIGNMENT_OPERATORS = new Set([ - ts.SyntaxKind.EqualsToken, - ts.SyntaxKind.PlusEqualsToken, - ts.SyntaxKind.MinusEqualsToken, - ts.SyntaxKind.AsteriskEqualsToken, - ts.SyntaxKind.AsteriskAsteriskEqualsToken, - ts.SyntaxKind.SlashEqualsToken, - ts.SyntaxKind.PercentEqualsToken, - ts.SyntaxKind.LessThanLessThanEqualsToken, - ts.SyntaxKind.GreaterThanGreaterThanEqualsToken, - ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken, - ts.SyntaxKind.AmpersandEqualsToken, - ts.SyntaxKind.BarEqualsToken, - ts.SyntaxKind.BarBarEqualsToken, - ts.SyntaxKind.AmpersandAmpersandEqualsToken, - ts.SyntaxKind.QuestionQuestionEqualsToken, - ts.SyntaxKind.CaretEqualsToken, -]); -const BINARY_OPERATORS = new Set([ - SyntaxKind.InstanceOfKeyword, - SyntaxKind.InKeyword, - SyntaxKind.AsteriskAsteriskToken, - SyntaxKind.AsteriskToken, - SyntaxKind.SlashToken, - SyntaxKind.PercentToken, - SyntaxKind.PlusToken, - SyntaxKind.MinusToken, - SyntaxKind.AmpersandToken, - SyntaxKind.BarToken, - SyntaxKind.CaretToken, - SyntaxKind.LessThanLessThanToken, - SyntaxKind.GreaterThanGreaterThanToken, - SyntaxKind.GreaterThanGreaterThanGreaterThanToken, - SyntaxKind.AmpersandAmpersandToken, - SyntaxKind.BarBarToken, - SyntaxKind.LessThanToken, - SyntaxKind.LessThanEqualsToken, - SyntaxKind.GreaterThanToken, - SyntaxKind.GreaterThanEqualsToken, - SyntaxKind.EqualsEqualsToken, - SyntaxKind.EqualsEqualsEqualsToken, - SyntaxKind.ExclamationEqualsEqualsToken, - SyntaxKind.ExclamationEqualsToken, -]); -/** - * Returns true if the given ts.Token is the assignment operator - * @param operator the operator token - */ -function isAssignmentOperator(operator) { - return ASSIGNMENT_OPERATORS.has(operator.kind); -} -/** - * Returns true if the given ts.Token is a logical operator - * @param operator the operator token - * @returns is a logical operator - */ -function isLogicalOperator(operator) { - return LOGICAL_OPERATORS.has(operator.kind); -} -function isESTreeBinaryOperator(operator) { - return BINARY_OPERATORS.has(operator.kind); -} -/** - * Returns the string form of the given TSToken SyntaxKind - * @param kind the token's SyntaxKind - * @returns the token applicable token as a string - */ -function getTextForTokenKind(kind) { - return ts.tokenToString(kind); -} -/** - * Returns true if the given ts.Node is a valid ESTree class member - * @param node TypeScript AST node - * @returns is valid ESTree class member - */ -function isESTreeClassMember(node) { - return node.kind !== SyntaxKind.SemicolonClassElement; -} -/** - * Checks if a ts.Node has a modifier - * @param modifierKind TypeScript SyntaxKind modifier - * @param node TypeScript AST node - * @returns has the modifier specified - */ -function hasModifier(modifierKind, node) { - const modifiers = (0, getModifiers_1.getModifiers)(node); - return modifiers?.some(modifier => modifier.kind === modifierKind) === true; -} -/** - * Get last last modifier in ast - * @param node TypeScript AST node - * @returns returns last modifier if present or null - */ -function getLastModifier(node) { - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers == null) { - return null; - } - return modifiers[modifiers.length - 1] ?? null; -} -/** - * Returns true if the given ts.Token is a comma - * @param token the TypeScript token - * @returns is comma - */ -function isComma(token) { - return token.kind === SyntaxKind.CommaToken; -} -/** - * Returns true if the given ts.Node is a comment - * @param node the TypeScript node - * @returns is comment - */ -function isComment(node) { - return (node.kind === SyntaxKind.SingleLineCommentTrivia || - node.kind === SyntaxKind.MultiLineCommentTrivia); -} -/** - * Returns true if the given ts.Node is a JSDoc comment - * @param node the TypeScript node - */ -function isJSDocComment(node) { - // eslint-disable-next-line deprecation/deprecation -- SyntaxKind.JSDoc was only added in TS4.7 so we can't use it yet - return node.kind === SyntaxKind.JSDocComment; -} -/** - * Returns the binary expression type of the given ts.Token - * @param operator the operator token - * @returns the binary expression type - */ -function getBinaryExpressionType(operator) { - if (isAssignmentOperator(operator)) { - return { - type: ts_estree_1.AST_NODE_TYPES.AssignmentExpression, - operator: getTextForTokenKind(operator.kind), - }; - } - else if (isLogicalOperator(operator)) { - return { - type: ts_estree_1.AST_NODE_TYPES.LogicalExpression, - operator: getTextForTokenKind(operator.kind), - }; - } - else if (isESTreeBinaryOperator(operator)) { - return { - type: ts_estree_1.AST_NODE_TYPES.BinaryExpression, - operator: getTextForTokenKind(operator.kind), - }; - } - throw new Error(`Unexpected binary operator ${ts.tokenToString(operator.kind)}`); -} -/** - * Returns line and column data for the given positions, - * @param pos position to check - * @param ast the AST object - * @returns line and column - */ -function getLineAndCharacterFor(pos, ast) { - const loc = ast.getLineAndCharacterOfPosition(pos); - return { - line: loc.line + 1, - column: loc.character, - }; -} -/** - * Returns line and column data for the given start and end positions, - * for the given AST - * @param range start end data - * @param ast the AST object - * @returns the loc data - */ -function getLocFor(range, ast) { - const [start, end] = range.map(pos => getLineAndCharacterFor(pos, ast)); - return { start, end }; -} -/** - * Check whatever node can contain directive - * @returns returns true if node can contain directive - */ -function canContainDirective(node) { - if (node.kind === ts.SyntaxKind.Block) { - switch (node.parent.kind) { - case ts.SyntaxKind.Constructor: - case ts.SyntaxKind.GetAccessor: - case ts.SyntaxKind.SetAccessor: - case ts.SyntaxKind.ArrowFunction: - case ts.SyntaxKind.FunctionExpression: - case ts.SyntaxKind.FunctionDeclaration: - case ts.SyntaxKind.MethodDeclaration: - return true; - default: - return false; - } - } - return true; -} -/** - * Returns range for the given ts.Node - * @param node the ts.Node or ts.Token - * @param ast the AST object - * @returns the range data - */ -function getRange(node, ast) { - return [node.getStart(ast), node.getEnd()]; -} -/** - * Returns true if a given ts.Node is a token - * @param node the ts.Node - * @returns is a token - */ -function isToken(node) { - return (node.kind >= SyntaxKind.FirstToken && node.kind <= SyntaxKind.LastToken); -} -/** - * Returns true if a given ts.Node is a JSX token - * @param node ts.Node to be checked - * @returns is a JSX token - */ -function isJSXToken(node) { - return (node.kind >= SyntaxKind.JsxElement && node.kind <= SyntaxKind.JsxAttribute); -} -/** - * Returns the declaration kind of the given ts.Node - * @param node TypeScript AST node - * @returns declaration kind - */ -function getDeclarationKind(node) { - if (node.flags & ts.NodeFlags.Let) { - return 'let'; - } - // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison - if ((node.flags & ts.NodeFlags.AwaitUsing) === ts.NodeFlags.AwaitUsing) { - return 'await using'; - } - if (node.flags & ts.NodeFlags.Const) { - return 'const'; - } - if (node.flags & ts.NodeFlags.Using) { - return 'using'; - } - return 'var'; -} -/** - * Gets a ts.Node's accessibility level - * @param node The ts.Node - * @returns accessibility "public", "protected", "private", or null - */ -function getTSNodeAccessibility(node) { - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers == null) { - return undefined; - } - for (const modifier of modifiers) { - switch (modifier.kind) { - case SyntaxKind.PublicKeyword: - return 'public'; - case SyntaxKind.ProtectedKeyword: - return 'protected'; - case SyntaxKind.PrivateKeyword: - return 'private'; - default: - break; - } - } - return undefined; -} -/** - * Finds the next token based on the previous one and its parent - * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren - * @param previousToken The previous TSToken - * @param parent The parent TSNode - * @param ast The TS AST - * @returns the next TSToken - */ -function findNextToken(previousToken, parent, ast) { - return find(parent); - function find(n) { - if (ts.isToken(n) && n.pos === previousToken.end) { - // this is token that starts at the end of previous token - return it - return n; - } - return firstDefined(n.getChildren(ast), (child) => { - const shouldDiveInChildNode = - // previous token is enclosed somewhere in the child - (child.pos <= previousToken.pos && child.end > previousToken.end) || - // previous token ends exactly at the beginning of child - child.pos === previousToken.end; - return shouldDiveInChildNode && nodeHasTokens(child, ast) - ? find(child) - : undefined; - }); - } -} -/** - * Find the first matching ancestor based on the given predicate function. - * @param node The current ts.Node - * @param predicate The predicate function to apply to each checked ancestor - * @returns a matching parent ts.Node - */ -function findFirstMatchingAncestor(node, predicate) { - let current = node; - while (current) { - if (predicate(current)) { - return current; - } - current = current.parent; - } - return undefined; -} -/** - * Returns true if a given ts.Node has a JSX token within its hierarchy - * @param node ts.Node to be checked - * @returns has JSX ancestor - */ -function hasJSXAncestor(node) { - return !!findFirstMatchingAncestor(node, isJSXToken); -} -/** - * Unescape the text content of string literals, e.g. & -> & - * @param text The escaped string literal text. - * @returns The unescaped string literal text. - */ -function unescapeStringLiteralText(text) { - return text.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, entity => { - const item = entity.slice(1, -1); - if (item[0] === '#') { - const codePoint = item[1] === 'x' - ? parseInt(item.slice(2), 16) - : parseInt(item.slice(1), 10); - return codePoint > 0x10ffff // RangeError: Invalid code point - ? entity - : String.fromCodePoint(codePoint); - } - return xhtml_entities_1.xhtmlEntities[item] || entity; - }); -} -/** - * Returns true if a given ts.Node is a computed property - * @param node ts.Node to be checked - * @returns is Computed Property - */ -function isComputedProperty(node) { - return node.kind === SyntaxKind.ComputedPropertyName; -} -/** - * Returns true if a given ts.Node is optional (has QuestionToken) - * @param node ts.Node to be checked - * @returns is Optional - */ -function isOptional(node) { - return !!node.questionToken; -} -/** - * Returns true if the node is an optional chain node - */ -function isChainExpression(node) { - return node.type === ts_estree_1.AST_NODE_TYPES.ChainExpression; -} -/** - * Returns true of the child of property access expression is an optional chain - */ -function isChildUnwrappableOptionalChain(node, child) { - return (isChainExpression(child) && - // (x?.y).z is semantically different, and as such .z is no longer optional - node.expression.kind !== ts.SyntaxKind.ParenthesizedExpression); -} -/** - * Returns the type of a given ts.Token - * @param token the ts.Token - * @returns the token type - */ -function getTokenType(token) { - let keywordKind; - if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { - keywordKind = ts.identifierToKeywordKind(token); - } - else if ('originalKeywordKind' in token) { - // @ts-expect-error -- intentional fallback for older TS versions <=4.9 - keywordKind = token.originalKeywordKind; - } - if (keywordKind) { - if (keywordKind === SyntaxKind.NullKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Null; - } - else if (keywordKind >= SyntaxKind.FirstFutureReservedWord && - keywordKind <= SyntaxKind.LastKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Identifier; - } - return ts_estree_1.AST_TOKEN_TYPES.Keyword; - } - if (token.kind >= SyntaxKind.FirstKeyword && - token.kind <= SyntaxKind.LastFutureReservedWord) { - if (token.kind === SyntaxKind.FalseKeyword || - token.kind === SyntaxKind.TrueKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Boolean; - } - return ts_estree_1.AST_TOKEN_TYPES.Keyword; - } - if (token.kind >= SyntaxKind.FirstPunctuation && - token.kind <= SyntaxKind.LastPunctuation) { - return ts_estree_1.AST_TOKEN_TYPES.Punctuator; - } - if (token.kind >= SyntaxKind.NoSubstitutionTemplateLiteral && - token.kind <= SyntaxKind.TemplateTail) { - return ts_estree_1.AST_TOKEN_TYPES.Template; - } - switch (token.kind) { - case SyntaxKind.NumericLiteral: - return ts_estree_1.AST_TOKEN_TYPES.Numeric; - case SyntaxKind.JsxText: - return ts_estree_1.AST_TOKEN_TYPES.JSXText; - case SyntaxKind.StringLiteral: - // A TypeScript-StringLiteral token with a TypeScript-JsxAttribute or TypeScript-JsxElement parent, - // must actually be an ESTree-JSXText token - if (token.parent.kind === SyntaxKind.JsxAttribute || - token.parent.kind === SyntaxKind.JsxElement) { - return ts_estree_1.AST_TOKEN_TYPES.JSXText; - } - return ts_estree_1.AST_TOKEN_TYPES.String; - case SyntaxKind.RegularExpressionLiteral: - return ts_estree_1.AST_TOKEN_TYPES.RegularExpression; - case SyntaxKind.Identifier: - case SyntaxKind.ConstructorKeyword: - case SyntaxKind.GetKeyword: - case SyntaxKind.SetKeyword: - // intentional fallthrough - default: - } - // Some JSX tokens have to be determined based on their parent - if (token.kind === SyntaxKind.Identifier) { - if (isJSXToken(token.parent)) { - return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; - } - if (token.parent.kind === SyntaxKind.PropertyAccessExpression && - hasJSXAncestor(token)) { - return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; - } - } - return ts_estree_1.AST_TOKEN_TYPES.Identifier; -} -/** - * Extends and formats a given ts.Token, for a given AST - * @param token the ts.Token - * @param ast the AST object - * @returns the converted Token - */ -function convertToken(token, ast) { - const start = token.kind === SyntaxKind.JsxText - ? token.getFullStart() - : token.getStart(ast); - const end = token.getEnd(); - const value = ast.text.slice(start, end); - const tokenType = getTokenType(token); - const range = [start, end]; - const loc = getLocFor(range, ast); - if (tokenType === ts_estree_1.AST_TOKEN_TYPES.RegularExpression) { - return { - type: tokenType, - value, - range, - loc, - regex: { - pattern: value.slice(1, value.lastIndexOf('/')), - flags: value.slice(value.lastIndexOf('/') + 1), - }, - }; - } - // @ts-expect-error TS is complaining about `value` not being the correct - // type but it is - return { - type: tokenType, - value, - range, - loc, - }; -} -/** - * Converts all tokens for the given AST - * @param ast the AST object - * @returns the converted Tokens - */ -function convertTokens(ast) { - const result = []; - /** - * @param node the ts.Node - */ - function walk(node) { - // TypeScript generates tokens for types in JSDoc blocks. Comment tokens - // and their children should not be walked or added to the resulting tokens list. - if (isComment(node) || isJSDocComment(node)) { - return; - } - if (isToken(node) && node.kind !== SyntaxKind.EndOfFileToken) { - result.push(convertToken(node, ast)); - } - else { - node.getChildren(ast).forEach(walk); - } - } - walk(ast); - return result; -} -class TSError extends Error { - fileName; - location; - constructor(message, fileName, location) { - super(message); - this.fileName = fileName; - this.location = location; - Object.defineProperty(this, 'name', { - value: new.target.name, - enumerable: false, - configurable: true, - }); - } - // For old version of ESLint https://github.com/typescript-eslint/typescript-eslint/pull/6556#discussion_r1123237311 - get index() { - return this.location.start.offset; - } - // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L853 - get lineNumber() { - return this.location.start.line; - } - // https://github.com/eslint/eslint/blob/b09a512107249a4eb19ef5a37b0bd672266eafdb/lib/linter/linter.js#L854 - get column() { - return this.location.start.column; - } -} -exports.TSError = TSError; -/** - * @param message the error message - * @param ast the AST object - * @param startIndex the index at which the error starts - * @param endIndex the index at which the error ends - * @returns converted error object - */ -function createError(message, ast, startIndex, endIndex = startIndex) { - const [start, end] = [startIndex, endIndex].map(offset => { - const { line, character: column } = ast.getLineAndCharacterOfPosition(offset); - return { line: line + 1, column, offset }; - }); - return new TSError(message, ast.fileName, { start, end }); -} -function nodeHasIllegalDecorators(node) { - return !!('illegalDecorators' in node && - node.illegalDecorators?.length); -} -/** - * @param n the TSNode - * @param ast the TS AST - */ -function nodeHasTokens(n, ast) { - // If we have a token or node that has a non-zero width, it must have tokens. - // Note: getWidth() does not take trivia into account. - return n.kind === SyntaxKind.EndOfFileToken - ? !!n.jsDoc - : n.getWidth(ast) !== 0; -} -/** - * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). - */ -function firstDefined(array, callback) { - if (array === undefined) { - return undefined; - } - for (let i = 0; i < array.length; i++) { - const result = callback(array[i], i); - if (result !== undefined) { - return result; - } - } - return undefined; -} -function identifierIsThisKeyword(id) { - return ((isAtLeast50 - ? ts.identifierToKeywordKind(id) - : // @ts-expect-error -- intentional fallback for older TS versions <=4.9 - id.originalKeywordKind) === SyntaxKind.ThisKeyword); -} -function isThisIdentifier(node) { - return (!!node && - node.kind === SyntaxKind.Identifier && - identifierIsThisKeyword(node)); -} -function isThisInTypeQuery(node) { - if (!isThisIdentifier(node)) { - return false; - } - while (ts.isQualifiedName(node.parent) && node.parent.left === node) { - node = node.parent; - } - return node.parent.kind === SyntaxKind.TypeQuery; -} -// `ts.nodeIsMissing` -function nodeIsMissing(node) { - if (node === undefined) { - return true; - } - return (node.pos === node.end && - node.pos >= 0 && - node.kind !== SyntaxKind.EndOfFileToken); -} -// `ts.nodeIsPresent` -function nodeIsPresent(node) { - return !nodeIsMissing(node); -} -// `ts.getContainingFunction` -function getContainingFunction(node) { - return ts.findAncestor(node.parent, ts.isFunctionLike); -} -// `ts.hasAbstractModifier` -function hasAbstractModifier(node) { - return hasModifier(SyntaxKind.AbstractKeyword, node); -} -// `ts.getThisParameter` -function getThisParameter(signature) { - if (signature.parameters.length && !ts.isJSDocSignature(signature)) { - const thisParameter = signature.parameters[0]; - if (parameterIsThisKeyword(thisParameter)) { - return thisParameter; - } - } - return null; -} -// `ts.parameterIsThisKeyword` -function parameterIsThisKeyword(parameter) { - return isThisIdentifier(parameter.name); -} -// Rewrite version of `ts.nodeCanBeDecorated` -// Returns `true` for both `useLegacyDecorators: true` and `useLegacyDecorators: false` -function nodeCanBeDecorated(node) { - switch (node.kind) { - case SyntaxKind.ClassDeclaration: - return true; - case SyntaxKind.ClassExpression: - // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: true` - return true; - case SyntaxKind.PropertyDeclaration: { - const { parent } = node; - // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: true` - if (ts.isClassDeclaration(parent)) { - return true; - } - // `ts.nodeCanBeDecorated` uses this if `useLegacyDecorators: false` - if (ts.isClassLike(parent) && !hasAbstractModifier(node)) { - return true; - } - return false; - } - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: - case SyntaxKind.MethodDeclaration: { - const { parent } = node; - // In `ts.nodeCanBeDecorated` - // when `useLegacyDecorators: true` uses `ts.isClassDeclaration` - // when `useLegacyDecorators: true` uses `ts.isClassLike` - return (Boolean(node.body) && - (ts.isClassDeclaration(parent) || ts.isClassLike(parent))); - } - case SyntaxKind.Parameter: { - // `ts.nodeCanBeDecorated` returns `false` if `useLegacyDecorators: false` - const { parent } = node; - const grandparent = parent.parent; - return (Boolean(parent) && - 'body' in parent && - Boolean(parent.body) && - (parent.kind === SyntaxKind.Constructor || - parent.kind === SyntaxKind.MethodDeclaration || - parent.kind === SyntaxKind.SetAccessor) && - getThisParameter(parent) !== node && - Boolean(grandparent) && - grandparent.kind === SyntaxKind.ClassDeclaration); - } - } - return false; -} -function isValidAssignmentTarget(node) { - switch (node.kind) { - case SyntaxKind.Identifier: - return true; - case SyntaxKind.PropertyAccessExpression: - case SyntaxKind.ElementAccessExpression: - if (node.flags & ts.NodeFlags.OptionalChain) { - return false; - } - return true; - case SyntaxKind.ParenthesizedExpression: - case SyntaxKind.TypeAssertionExpression: - case SyntaxKind.AsExpression: - case SyntaxKind.SatisfiesExpression: - case SyntaxKind.ExpressionWithTypeArguments: - case SyntaxKind.NonNullExpression: - return isValidAssignmentTarget(node.expression); - default: - return false; - } -} -function getNamespaceModifiers(node) { - // For following nested namespaces, use modifiers given to the topmost namespace - // export declare namespace foo.bar.baz {} - let modifiers = (0, getModifiers_1.getModifiers)(node); - let moduleDeclaration = node; - while ((!modifiers || modifiers.length === 0) && - ts.isModuleDeclaration(moduleDeclaration.parent)) { - const parentModifiers = (0, getModifiers_1.getModifiers)(moduleDeclaration.parent); - if (parentModifiers?.length) { - modifiers = parentModifiers; - } - moduleDeclaration = moduleDeclaration.parent; - } - return modifiers; -} -//# sourceMappingURL=node-utils.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map deleted file mode 100644 index d518c77c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAmGA,8CAIC;AAED,wDAIC;AAUD,kDAMC;AAOD,kDAEC;AAQD,kCAMC;AAOD,0CAMC;AAOD,0BAIC;AAOD,8BAKC;AAgBD,0DAiCC;AAQD,wDASC;AASD,8BAMC;AAMD,kDAsBC;AAQD,4BAKC;AAkBD,gCAIC;AAOD,gDAiBC;AAOD,wDAoBC;AAUD,sCAuBC;AAQD,8DAYC;AAOD,wCAEC;AAOD,8DAcC;AAOD,gDAIC;AAOD,gCAIC;AAKD,8CAIC;AAKD,0EAaC;AAOD,oCAgGC;AAQD,oCAkCC;AAOD,sCAoBC;AAkDD,kCAYC;AAED,4DAOC;AAMD,sCAMC;AAKD,oCAeC;AAED,0DAOC;AAED,4CAQC;AAED,8CAUC;AAeD,sCAEC;AAGD,sDAIC;AA4BD,gDAuDC;AAED,0DA6BC;AAED,sDAkBC;AA/8BD,+CAAiC;AAEjC,iDAA8C;AAC9C,yDAAqD;AAErD,2CAA8D;AAC9D,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAMjC,MAAM,iBAAiB,GAAqC,IAAI,GAAG,CAAC;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AAiB,GAAG,IAAI,CAAC;IAC7B,OACE,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;QACtC,EAAE,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAChD,CAAC;QACD,MAAM,eAAe,GAAG,IAAA,2BAAY,EAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,eAAe,EAAE,MAAM,EAAE,CAAC;YAC5B,SAAS,GAAG,eAAe,CAAC;QAC9B,CAAC;QACD,iBAAiB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IAC/C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts deleted file mode 100644 index 20993107..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { CacheDurationSeconds } from '@typescript-eslint/types'; -export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; -export interface CacheLike { - get(key: Key): Value | undefined; - set(key: Key, value: Value): this; -} -/** - * A map with key-level expiration. - */ -export declare class ExpiringCache implements CacheLike { - #private; - constructor(cacheDurationSeconds: CacheDurationSeconds); - set(key: Key, value: Value): this; - get(key: Key): Value | undefined; - clear(): void; -} -//# sourceMappingURL=ExpiringCache.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map deleted file mode 100644 index ddbd63c4..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,GAAG,EAAE,KAAK,CAAE,YAAW,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC;;gBAWzD,oBAAoB,EAAE,oBAAoB;IAItD,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAYjC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,SAAS;IAmBhC,KAAK,IAAI,IAAI;CAGd"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js deleted file mode 100644 index 4e8e0d9e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0; -exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; -const ZERO_HR_TIME = [0, 0]; -/** - * A map with key-level expiration. - */ -class ExpiringCache { - #cacheDurationSeconds; - #map = new Map(); - constructor(cacheDurationSeconds) { - this.#cacheDurationSeconds = cacheDurationSeconds; - } - set(key, value) { - this.#map.set(key, { - value, - lastSeen: this.#cacheDurationSeconds === 'Infinity' - ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry - ZERO_HR_TIME - : process.hrtime(), - }); - return this; - } - get(key) { - const entry = this.#map.get(key); - if (entry?.value != null) { - if (this.#cacheDurationSeconds === 'Infinity') { - return entry.value; - } - const ageSeconds = process.hrtime(entry.lastSeen)[0]; - if (ageSeconds < this.#cacheDurationSeconds) { - // cache hit woo! - return entry.value; - } - // key has expired - clean it up to free up memory - this.#map.delete(key); - } - // no hit :'( - return undefined; - } - clear() { - this.#map.clear(); - } -} -exports.ExpiringCache = ExpiringCache; -//# sourceMappingURL=ExpiringCache.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map deleted file mode 100644 index e363cd05..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExpiringCache.js","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":";;;AAEa,QAAA,uCAAuC,GAAG,EAAE,CAAC;AAC1D,MAAM,YAAY,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAO9C;;GAEG;AACH,MAAa,aAAa;IACf,qBAAqB,CAAuB;IAE5C,IAAI,GAAG,IAAI,GAAG,EAMpB,CAAC;IAEJ,YAAY,oBAA0C;QACpD,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,GAAQ,EAAE,KAAY;QACxB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,KAAK;YACL,QAAQ,EACN,IAAI,CAAC,qBAAqB,KAAK,UAAU;gBACvC,CAAC,CAAC,qFAAqF;oBACrF,YAAY;gBACd,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,GAAG,CAAC,GAAQ;QACV,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,IAAI,CAAC,qBAAqB,KAAK,UAAU,EAAE,CAAC;gBAC9C,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,UAAU,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC5C,iBAAiB;gBACjB,OAAO,KAAK,CAAC,KAAK,CAAC;YACrB,CAAC;YACD,kDAAkD;YAClD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC;QACD,aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AAjDD,sCAiDC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts deleted file mode 100644 index 855b5c9b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as ts from 'typescript'; -import type { TSESTreeOptions } from '../parser-options'; -import type { MutableParseSettings } from './index'; -export declare function createParseSettings(code: ts.SourceFile | string, tsestreeOptions?: Partial): MutableParseSettings; -export declare function clearTSConfigMatchCache(): void; -export declare function clearTSServerProjectService(): void; -//# sourceMappingURL=createParseSettings.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map deleted file mode 100644 index 1673d781..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAKjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAwBpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,EAC5B,eAAe,GAAE,OAAO,CAAC,eAAe,CAAM,GAC7C,oBAAoB,CA8ItB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAElD"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js deleted file mode 100644 index 4c8b40ae..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +++ /dev/null @@ -1,192 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createParseSettings = createParseSettings; -exports.clearTSConfigMatchCache = clearTSConfigMatchCache; -exports.clearTSServerProjectService = clearTSServerProjectService; -const debug_1 = __importDefault(require("debug")); -const ts = __importStar(require("typescript")); -const createProjectService_1 = require("../create-program/createProjectService"); -const shared_1 = require("../create-program/shared"); -const source_files_1 = require("../source-files"); -const ExpiringCache_1 = require("./ExpiringCache"); -const getProjectConfigFiles_1 = require("./getProjectConfigFiles"); -const inferSingleRun_1 = require("./inferSingleRun"); -const resolveProjectList_1 = require("./resolveProjectList"); -const warnAboutTSVersion_1 = require("./warnAboutTSVersion"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings'); -let TSCONFIG_MATCH_CACHE; -let TSSERVER_PROJECT_SERVICE = null; -// NOTE - we intentionally use "unnecessary" `?.` here because in TS<5.3 this enum doesn't exist -// This object exists so we can centralize these for tracking and so we don't proliferate these across the file -// https://github.com/microsoft/TypeScript/issues/56579 -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ -const JSDocParsingMode = { - ParseAll: ts.JSDocParsingMode?.ParseAll, - ParseNone: ts.JSDocParsingMode?.ParseNone, - ParseForTypeErrors: ts.JSDocParsingMode?.ParseForTypeErrors, - ParseForTypeInfo: ts.JSDocParsingMode?.ParseForTypeInfo, -}; -/* eslint-enable @typescript-eslint/no-unnecessary-condition */ -function createParseSettings(code, tsestreeOptions = {}) { - const codeFullText = enforceCodeString(code); - const singleRun = (0, inferSingleRun_1.inferSingleRun)(tsestreeOptions); - const tsconfigRootDir = typeof tsestreeOptions.tsconfigRootDir === 'string' - ? tsestreeOptions.tsconfigRootDir - : process.cwd(); - const passedLoggerFn = typeof tsestreeOptions.loggerFn === 'function'; - const jsDocParsingMode = (() => { - switch (tsestreeOptions.jsDocParsingMode) { - case 'all': - return JSDocParsingMode.ParseAll; - case 'none': - return JSDocParsingMode.ParseNone; - case 'type-info': - return JSDocParsingMode.ParseForTypeInfo; - default: - return JSDocParsingMode.ParseAll; - } - })(); - const parseSettings = { - allowInvalidAST: tsestreeOptions.allowInvalidAST === true, - code, - codeFullText, - comment: tsestreeOptions.comment === true, - comments: [], - debugLevel: tsestreeOptions.debugLevel === true - ? new Set(['typescript-eslint']) - : Array.isArray(tsestreeOptions.debugLevel) - ? new Set(tsestreeOptions.debugLevel) - : new Set(), - errorOnTypeScriptSyntacticAndSemanticIssues: false, - errorOnUnknownASTType: tsestreeOptions.errorOnUnknownASTType === true, - extraFileExtensions: Array.isArray(tsestreeOptions.extraFileExtensions) && - tsestreeOptions.extraFileExtensions.every(ext => typeof ext === 'string') - ? tsestreeOptions.extraFileExtensions - : [], - filePath: (0, shared_1.ensureAbsolutePath)(typeof tsestreeOptions.filePath === 'string' && - tsestreeOptions.filePath !== '' - ? tsestreeOptions.filePath - : getFileName(tsestreeOptions.jsx), tsconfigRootDir), - jsDocParsingMode, - jsx: tsestreeOptions.jsx === true, - loc: tsestreeOptions.loc === true, - log: typeof tsestreeOptions.loggerFn === 'function' - ? tsestreeOptions.loggerFn - : tsestreeOptions.loggerFn === false - ? () => { } // eslint-disable-line @typescript-eslint/no-empty-function - : console.log, // eslint-disable-line no-console - preserveNodeMaps: tsestreeOptions.preserveNodeMaps !== false, - programs: Array.isArray(tsestreeOptions.programs) - ? tsestreeOptions.programs - : null, - projects: new Map(), - projectService: tsestreeOptions.projectService || - (tsestreeOptions.project && - tsestreeOptions.projectService !== false && - process.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE === 'true') - ? (TSSERVER_PROJECT_SERVICE ??= (0, createProjectService_1.createProjectService)(tsestreeOptions.projectService, jsDocParsingMode)) - : undefined, - range: tsestreeOptions.range === true, - singleRun, - suppressDeprecatedPropertyWarnings: tsestreeOptions.suppressDeprecatedPropertyWarnings ?? - process.env.NODE_ENV !== 'test', - tokens: tsestreeOptions.tokens === true ? [] : null, - tsconfigMatchCache: (TSCONFIG_MATCH_CACHE ??= new ExpiringCache_1.ExpiringCache(singleRun - ? 'Infinity' - : tsestreeOptions.cacheLifetime?.glob ?? - ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)), - tsconfigRootDir, - }; - // debug doesn't support multiple `enable` calls, so have to do it all at once - if (parseSettings.debugLevel.size > 0) { - const namespaces = []; - if (parseSettings.debugLevel.has('typescript-eslint')) { - namespaces.push('typescript-eslint:*'); - } - if (parseSettings.debugLevel.has('eslint') || - // make sure we don't turn off the eslint debug if it was enabled via --debug - debug_1.default.enabled('eslint:*,-eslint:code-path')) { - // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25 - namespaces.push('eslint:*,-eslint:code-path'); - } - debug_1.default.enable(namespaces.join(',')); - } - if (Array.isArray(tsestreeOptions.programs)) { - if (!tsestreeOptions.programs.length) { - throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`); - } - log('parserOptions.programs was provided, so parserOptions.project will be ignored.'); - } - // Providing a program or project service overrides project resolution - if (!parseSettings.programs && !parseSettings.projectService) { - parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({ - cacheLifetime: tsestreeOptions.cacheLifetime, - project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, tsestreeOptions.project), - projectFolderIgnoreList: tsestreeOptions.projectFolderIgnoreList, - singleRun: parseSettings.singleRun, - tsconfigRootDir: tsconfigRootDir, - }); - } - // No type-aware linting which means that cross-file (or even same-file) JSDoc is useless - // So in this specific case we default to 'none' if no value was provided - if (tsestreeOptions.jsDocParsingMode == null && - parseSettings.projects.size === 0 && - parseSettings.programs == null && - parseSettings.projectService == null) { - parseSettings.jsDocParsingMode = JSDocParsingMode.ParseNone; - } - (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings, passedLoggerFn); - return parseSettings; -} -function clearTSConfigMatchCache() { - TSCONFIG_MATCH_CACHE?.clear(); -} -function clearTSServerProjectService() { - TSSERVER_PROJECT_SERVICE = null; -} -/** - * Ensures source code is a string. - */ -function enforceCodeString(code) { - return (0, source_files_1.isSourceFile)(code) - ? code.getFullText(code) - : typeof code === 'string' - ? code - : String(code); -} -/** - * Compute the filename based on the parser options. - * - * Even if jsx option is set in typescript compiler, filename still has to - * contain .tsx file extension. - */ -function getFileName(jsx) { - return jsx ? 'estree.tsx' : 'estree.ts'; -} -//# sourceMappingURL=createParseSettings.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map deleted file mode 100644 index 24facae3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,kDAiJC;AAED,0DAEC;AAED,kEAEC;AA9LD,kDAA0B;AAC1B,+CAAiC;AAGjC,iFAA8E;AAC9E,qDAA8D;AAE9D,kDAA+C;AAC/C,mDAGyB;AACzB,mEAAgE;AAEhE,qDAAkD;AAClD,6DAA0D;AAC1D,6DAA0D;AAE1D,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,8EAA8E,CAC/E,CAAC;AAEF,IAAI,oBAA0D,CAAC;AAC/D,IAAI,wBAAwB,GAAk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;AACvB,CAAC;AAED,SAAgB,uBAAuB;IACrC,oBAAoB,EAAE,KAAK,EAAE,CAAC;AAChC,CAAC;AAED,SAAgB,2BAA2B;IACzC,wBAAwB,GAAG,IAAI,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,IAAa;IACtC,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC;QACvB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACxB,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;YACxB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,WAAW,CAAC,GAAa;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts deleted file mode 100644 index 76103cf8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TSESTreeOptions } from '../parser-options'; -import type { ParseSettings } from './index'; -/** - * Checks for a matching TSConfig to a file including its parent directories, - * permanently caching results under each directory it checks. - * - * @remarks - * We don't (yet!) have a way to attach file watchers on disk, but still need to - * cache file checks for rapid subsequent calls to fs.existsSync. See discussion - * in https://github.com/typescript-eslint/typescript-eslint/issues/101. - */ -export declare function getProjectConfigFiles(parseSettings: Pick, project: TSESTreeOptions['project']): string[] | null; -//# sourceMappingURL=getProjectConfigFiles.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map deleted file mode 100644 index bf99e5dd..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GAClC,MAAM,EAAE,GAAG,IAAI,CAuCjB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js deleted file mode 100644 index ab0ada1c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getProjectConfigFiles = getProjectConfigFiles; -const debug_1 = __importDefault(require("debug")); -const fs = __importStar(require("fs")); -const path = __importStar(require("path")); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles'); -/** - * Checks for a matching TSConfig to a file including its parent directories, - * permanently caching results under each directory it checks. - * - * @remarks - * We don't (yet!) have a way to attach file watchers on disk, but still need to - * cache file checks for rapid subsequent calls to fs.existsSync. See discussion - * in https://github.com/typescript-eslint/typescript-eslint/issues/101. - */ -function getProjectConfigFiles(parseSettings, project) { - if (project !== true) { - if (project == null || project === false) { - return null; - } - if (Array.isArray(project)) { - return project; - } - return [project]; - } - log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath); - let directory = path.dirname(parseSettings.filePath); - const checkedDirectories = [directory]; - do { - log('Checking tsconfig.json path: %s', directory); - const tsconfigPath = path.join(directory, 'tsconfig.json'); - const cached = parseSettings.tsconfigMatchCache.get(directory) ?? - (fs.existsSync(tsconfigPath) && tsconfigPath); - if (cached) { - for (const directory of checkedDirectories) { - parseSettings.tsconfigMatchCache.set(directory, cached); - } - return [cached]; - } - directory = path.dirname(directory); - checkedDirectories.push(directory); - } while (directory.length > 1 && - directory.length >= parseSettings.tsconfigRootDir.length); - throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`); -} -//# sourceMappingURL=getProjectConfigFiles.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map deleted file mode 100644 index 53ca724a..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getProjectConfigFiles.js","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sDA6CC;AA/DD,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAK7B,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,aAGC,EACD,OAAmC;IAEnC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;YACzC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3B,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;IAED,GAAG,CAAC,gDAAgD,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9E,IAAI,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,CAAC,SAAS,CAAC,CAAC;IAEvC,GAAG,CAAC;QACF,GAAG,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GACV,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC;YAC/C,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,CAAC;QAEhD,IAAI,MAAM,EAAE,CAAC;YACX,KAAK,MAAM,SAAS,IAAI,kBAAkB,EAAE,CAAC;gBAC3C,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC;QAED,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACpC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC,QACC,SAAS,CAAC,MAAM,GAAG,CAAC;QACpB,SAAS,CAAC,MAAM,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts deleted file mode 100644 index 3ea1fdfb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import type * as ts from 'typescript'; -import type { ProjectServiceSettings } from '../create-program/createProjectService'; -import type { CanonicalPath } from '../create-program/shared'; -import type { TSESTree } from '../ts-estree'; -import type { CacheLike } from './ExpiringCache'; -type DebugModule = 'eslint' | 'typescript-eslint' | 'typescript'; -declare module 'typescript' { - enum JSDocParsingMode { - } -} -declare module 'typescript/lib/tsserverlibrary' { - enum JSDocParsingMode { - } -} -/** - * Internal settings used by the parser to run on a file. - */ -export interface MutableParseSettings { - /** - * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. - */ - allowInvalidAST: boolean; - /** - * Code of the file being parsed, or raw source file containing it. - */ - code: ts.SourceFile | string; - /** - * Full text of the file being parsed. - */ - codeFullText: string; - /** - * Whether the `comment` parse option is enabled. - */ - comment: boolean; - /** - * If the `comment` parse option is enabled, retrieved comments. - */ - comments: TSESTree.Comment[]; - /** - * Which debug areas should be logged. - */ - debugLevel: Set; - /** - * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. - */ - errorOnTypeScriptSyntacticAndSemanticIssues: boolean; - /** - * Whether to error if an unknown AST node type is encountered. - */ - errorOnUnknownASTType: boolean; - /** - * Any non-standard file extensions which will be parsed. - */ - extraFileExtensions: string[]; - /** - * Path of the file being parsed. - */ - filePath: string; - /** - * JSDoc parsing style to pass through to TypeScript - */ - jsDocParsingMode: ts.JSDocParsingMode; - /** - * Whether parsing of JSX is enabled. - * - * @remarks The applicable file extension is still required. - */ - jsx: boolean; - /** - * Whether to add `loc` information to each node. - */ - loc: boolean; - /** - * Log function, if not `console.log`. - */ - log: (message: string) => void; - /** - * Whether two-way AST node maps are preserved during the AST conversion process. - */ - preserveNodeMaps?: boolean; - /** - * One or more instances of TypeScript Program objects to be used for type information. - */ - programs: Iterable | null; - /** - * Normalized paths to provided project paths. - */ - projects: ReadonlyMap; - /** - * TypeScript server to power program creation. - */ - projectService: ProjectServiceSettings | undefined; - /** - * Whether to add the `range` property to AST nodes. - */ - range: boolean; - /** - * Whether this is part of a single run, rather than a long-running process. - */ - singleRun: boolean; - /** - * Whether deprecated AST properties should skip calling console.warn on accesses. - */ - suppressDeprecatedPropertyWarnings: boolean; - /** - * If the `tokens` parse option is enabled, retrieved tokens. - */ - tokens: TSESTree.Token[] | null; - /** - * Caches searches for TSConfigs from project directories. - */ - tsconfigMatchCache: CacheLike; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir: string; -} -export type ParseSettings = Readonly; -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map deleted file mode 100644 index 96518bf5..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-est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,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAE7C;;OAEG;IACH,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEnD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,kCAAkC,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js deleted file mode 100644 index aa219d8f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map deleted file mode 100644 index 66056421..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts deleted file mode 100644 index 1b28697f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { TSESTreeOptions } from '../parser-options'; -/** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. We therefore use the following logic to figure out which - * of these contexts applies to the current execution. - * - * @returns Whether this is part of a single run, rather than a long-running process. - */ -export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; -//# sourceMappingURL=inferSingleRun.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map deleted file mode 100644 index 2fb2c691..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAoD5E"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js deleted file mode 100644 index c6b874f1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.inferSingleRun = inferSingleRun; -const path_1 = __importDefault(require("path")); -/** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. We therefore use the following logic to figure out which - * of these contexts applies to the current execution. - * - * @returns Whether this is part of a single run, rather than a long-running process. - */ -function inferSingleRun(options) { - // https://github.com/typescript-eslint/typescript-eslint/issues/9504 - // There's no support (yet?) for extraFileExtensions in single-run hosts. - // Only watch program hosts and project service can support that. - if (options?.extraFileExtensions?.length) { - return false; - } - if ( - // single-run implies type-aware linting - no projects means we can't be in single-run mode - options?.project == null || - // programs passed via options means the user should be managing the programs, so we shouldn't - // be creating our own single-run programs accidentally - options.programs != null) { - return false; - } - // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN - if (process.env.TSESTREE_SINGLE_RUN === 'false') { - return false; - } - if (process.env.TSESTREE_SINGLE_RUN === 'true') { - return true; - } - // Ideally, we'd like to try to auto-detect CI or CLI usage that lets us infer a single CLI run. - if (!options.disallowAutomaticSingleRunInference) { - const possibleEslintBinPaths = [ - 'node_modules/.bin/eslint', // npm or yarn repo - 'node_modules/eslint/bin/eslint.js', // pnpm repo - ]; - if ( - // Default to single runs for CI processes. CI=true is set by most CI providers by default. - process.env.CI === 'true' || - // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...` - possibleEslintBinPaths.some(binPath => process.argv[1].endsWith(path_1.default.normalize(binPath)))) { - return !process.argv.includes('--fix'); - } - } - /** - * We default to assuming that this run could be part of a long-running session (e.g. in an IDE) - * and watch programs will therefore be required. - * - * Unless we can reliably infer otherwise, we default to assuming that this run could be part - * of a long-running session (e.g. in an IDE) and watch programs will therefore be required - */ - return false; -} -//# sourceMappingURL=inferSingleRun.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map deleted file mode 100644 index 73263278..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;;;AAgBA,wCAoDC;AApED,gDAAwB;AAIxB;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE,qEAAqE;IACrE,yEAAyE;IACzE,iEAAiE;IACjE,IAAI,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;IACE,2FAA2F;IAC3F,OAAO,EAAE,OAAO,IAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,OAAO,CAAC,QAAQ,IAAI,IAAI,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,gGAAgG;IAChG,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,CAAC;QACjD,MAAM,sBAAsB,GAAG;YAC7B,0BAA0B,EAAE,mBAAmB;YAC/C,mCAAmC,EAAE,YAAY;SAClD,CAAC;QACF;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAClD,EACD,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts deleted file mode 100644 index 4067aec9..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { CanonicalPath } from '../create-program/shared'; -import type { TSESTreeOptions } from '../parser-options'; -export declare function clearGlobCache(): void; -/** - * Normalizes, sanitizes, resolves and filters the provided project paths - */ -export declare function resolveProjectList(options: Readonly<{ - cacheLifetime?: TSESTreeOptions['cacheLifetime']; - project: string[] | null; - projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; - singleRun: boolean; - tsconfigRootDir: string; -}>): ReadonlyMap; -/** - * Exported for testing purposes only - * @internal - */ -export declare function clearGlobResolutionCache(): void; -//# sourceMappingURL=resolveProjectList.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map deleted file mode 100644 index ff072e0b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAezD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACzB,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAgFpC;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js deleted file mode 100644 index 288f5c43..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearGlobCache = clearGlobCache; -exports.resolveProjectList = resolveProjectList; -exports.clearGlobResolutionCache = clearGlobResolutionCache; -const debug_1 = __importDefault(require("debug")); -const globby_1 = require("globby"); -const is_glob_1 = __importDefault(require("is-glob")); -const shared_1 = require("../create-program/shared"); -const ExpiringCache_1 = require("./ExpiringCache"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList'); -let RESOLUTION_CACHE = null; -function clearGlobCache() { - RESOLUTION_CACHE?.clear(); -} -/** - * Normalizes, sanitizes, resolves and filters the provided project paths - */ -function resolveProjectList(options) { - const sanitizedProjects = []; - // Normalize and sanitize the project paths - if (options.project != null) { - for (const project of options.project) { - if (typeof project === 'string') { - sanitizedProjects.push(project); - } - } - } - if (sanitizedProjects.length === 0) { - return new Map(); - } - const projectFolderIgnoreList = (options.projectFolderIgnoreList ?? ['**/node_modules/**']) - .reduce((acc, folder) => { - if (typeof folder === 'string') { - acc.push(folder); - } - return acc; - }, []) - // prefix with a ! for not match glob - .map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); - const cacheKey = getHash({ - project: sanitizedProjects, - projectFolderIgnoreList, - tsconfigRootDir: options.tsconfigRootDir, - }); - if (RESOLUTION_CACHE == null) { - // note - we initialize the global cache based on the first config we encounter. - // this does mean that you can't have multiple lifetimes set per folder - // I doubt that anyone will really bother reconfiguring this, let alone - // try to do complicated setups, so we'll deal with this later if ever. - RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun - ? 'Infinity' - : options.cacheLifetime?.glob ?? - ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS); - } - else { - const cached = RESOLUTION_CACHE.get(cacheKey); - if (cached) { - return cached; - } - } - // Transform glob patterns into paths - const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project)); - const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); - const uniqueCanonicalProjectPaths = new Map(nonGlobProjects - .concat(globProjects.length === 0 - ? [] - : (0, globby_1.sync)([...globProjects, ...projectFolderIgnoreList], { - cwd: options.tsconfigRootDir, - dot: true, - })) - .map(project => [ - (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)), - (0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir), - ])); - log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths); - RESOLUTION_CACHE.set(cacheKey, uniqueCanonicalProjectPaths); - return uniqueCanonicalProjectPaths; -} -function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) { - // create a stable representation of the config - const hashObject = { - tsconfigRootDir, - // the project order does matter and can impact the resolved globs - project, - // the ignore order won't doesn't ever matter - projectFolderIgnoreList: [...projectFolderIgnoreList].sort(), - }; - return (0, shared_1.createHash)(JSON.stringify(hashObject)); -} -/** - * Exported for testing purposes only - * @internal - */ -function clearGlobResolutionCache() { - RESOLUTION_CACHE?.clear(); - RESOLUTION_CACHE = null; -} -//# sourceMappingURL=resolveProjectList.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map deleted file mode 100644 index a49e762a..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;AAyBA,wCAEC;AAKD,gDAwFC;AA2BD,4DAGC;AAtJD,kDAA0B;AAC1B,mCAA0C;AAC1C,sDAA6B;AAG7B,qDAIkC;AAElC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAGT,IAAI,CAAC;AAEhB,SAAgB,cAAc;IAC5B,gBAAgB,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OA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,UAAU,GAAG;QACjB,eAAe;QACf,kEAAkE;QAClE,OAAO;QACP,6CAA6C;QAC7C,uBAAuB,EAAE,CAAC,GAAG,uBAAuB,CAAC,CAAC,IAAI,EAAE;KAC7D,CAAC;IAEF,OAAO,IAAA,mBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB;IACtC,gBAAgB,EAAE,KAAK,EAAE,CAAC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts deleted file mode 100644 index 9f4dbc46..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ParseSettings } from './index'; -export declare function warnAboutTSVersion(parseSettings: ParseSettings, passedLoggerFn: boolean): void; -//# sourceMappingURL=warnAboutTSVersion.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map deleted file mode 100644 index 1a8c6c68..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAsB7C,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,OAAO,GACtB,IAAI,CA0BN"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js deleted file mode 100644 index 76e94295..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.warnAboutTSVersion = warnAboutTSVersion; -const semver_1 = __importDefault(require("semver")); -const ts = __importStar(require("typescript")); -/** - * This needs to be kept in sync with package.json in the typescript-eslint monorepo - */ -const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.7.4 <5.6.0'; -/* - * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one - * List them all separately here, so we can automatically create the full string - */ -const SUPPORTED_PRERELEASE_RANGES = []; -const ACTIVE_TYPESCRIPT_VERSION = ts.version; -const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS] - .concat(SUPPORTED_PRERELEASE_RANGES) - .join(' || ')); -let warnedAboutTSVersion = false; -function warnAboutTSVersion(parseSettings, passedLoggerFn) { - if (isRunningSupportedTypeScriptVersion || warnedAboutTSVersion) { - return; - } - if (passedLoggerFn || - // See https://github.com/typescript-eslint/typescript-eslint/issues/7896 - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - (typeof process === 'undefined' ? false : process.stdout?.isTTY)) { - const border = '============='; - const versionWarning = [ - border, - 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.', - 'You may find that it works just fine, or you may not.', - `SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`, - `YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`, - 'Please only submit bug reports when using the officially supported version.', - border, - ].join('\n\n'); - parseSettings.log(versionWarning); - } - warnedAboutTSVersion = true; -} -//# sourceMappingURL=warnAboutTSVersion.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map deleted file mode 100644 index 63c739ea..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,gDA6BC;AAtDD,oDAA4B;AAC5B,+CAAiC;AAIjC;;GAEG;AACH,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,6BAA6B,CAAC;KAC5B,MAAM,CAAC,2BAA2B,CAAC;KACnC,IAAI,CAAC,MAAM,CAAC,CAChB,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAChC,aAA4B,EAC5B,cAAuB;IAEvB,IAAI,mCAAmC,IAAI,oBAAoB,EAAE,CAAC;QAChE,OAAO;IACT,CAAC;IAED,IACE,cAAc;QACd,yEAAyE;QACzE,uEAAuE;QACvE,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAChE,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC;QAC/B,MAAM,cAAc,GAAG;YACrB,MAAM;YACN,uIAAuI;YACvI,uDAAuD;YACvD,kCAAkC,6BAA6B,EAAE;YACjE,4BAA4B,yBAAyB,EAAE;YACvD,6EAA6E;YAC7E,MAAM;SACP,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEf,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,GAAG,IAAI,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts deleted file mode 100644 index 26e31235..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +++ /dev/null @@ -1,201 +0,0 @@ -import type { CacheDurationSeconds, DebugLevel, JSDocParsingMode, ProjectServiceOptions } from '@typescript-eslint/types'; -import type * as ts from 'typescript'; -import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; -export { ProjectServiceOptions } from '@typescript-eslint/types'; -interface ParseOptions { - /** - * Prevents the parser from throwing an error if it receives an invalid AST from TypeScript. - * This case only usually occurs when attempting to lint invalid code. - */ - allowInvalidAST?: boolean; - /** - * create a top-level comments array containing all comments - */ - comment?: boolean; - /** - * An array of modules to turn explicit debugging on for. - * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` - * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` - * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions - * - * For convenience, also supports a boolean: - * - true === ['typescript-eslint'] - * - false === [] - */ - debugLevel?: DebugLevel; - /** - * Cause the parser to error if it encounters an unknown AST node type (useful for testing). - * This case only usually occurs when TypeScript releases new features. - */ - errorOnUnknownASTType?: boolean; - /** - * Absolute (or relative to `cwd`) path to the file being parsed. - */ - filePath?: string; - /** - * If you are using TypeScript version >=5.3 then this option can be used as a performance optimization. - * - * The valid values for this rule are: - * - `'all'` - parse all JSDoc comments, always. - * - `'none'` - parse no JSDoc comments, ever. - * - `'type-info'` - parse just JSDoc comments that are required to provide correct type-info. TS will always parse JSDoc in non-TS files, but never in TS files. - * - * If you do not rely on JSDoc tags from the TypeScript AST, then you can safely set this to `'none'` to improve performance. - */ - jsDocParsingMode?: JSDocParsingMode; - /** - * Enable parsing of JSX. - * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html - * - * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the - * TypeScript compiler has its own internal handling for known file extensions. - * - * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx - */ - jsx?: boolean; - /** - * Controls whether the `loc` information to each node. - * The `loc` property is an object which contains the exact line/column the node starts/ends on. - * This is similar to the `range` property, except it is line/column relative. - */ - loc?: boolean; - loggerFn?: false | ((message: string) => void); - /** - * Controls whether the `range` property is included on AST nodes. - * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. - * This is similar to the `loc` property, except this is the absolute index. - */ - range?: boolean; - /** - * Set to true to create a top-level array containing all tokens from the file. - */ - tokens?: boolean; - /** - * Whether deprecated AST properties should skip calling console.warn on accesses. - */ - suppressDeprecatedPropertyWarnings?: boolean; -} -interface ParseAndGenerateServicesOptions extends ParseOptions { - /** - * Granular control of the expiry lifetime of our internal caches. - * You can specify the number of seconds as an integer number, or the string - * 'Infinity' if you never want the cache to expire. - * - * By default cache entries will be evicted after 30 seconds, or will persist - * indefinitely if `disallowAutomaticSingleRunInference = false` AND the parser - * infers that it is a single run. - */ - cacheLifetime?: { - /** - * Glob resolution for `parserOptions.project` values. - */ - glob?: CacheDurationSeconds; - }; - /** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. - * - * By default, we will use common heuristics to infer whether ESLint is being - * used as part of a single run. This option disables those heuristics, and - * therefore the performance optimizations gained by them. - * - * In other words, typescript-eslint is faster by default, and this option - * disables an automatic performance optimization. - * - * This setting's default value can be specified by setting a `TSESTREE_SINGLE_RUN` - * environment variable to `"false"` or `"true"`. - * Otherwise, the default value is `false`. - */ - disallowAutomaticSingleRunInference?: boolean; - /** - * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. - */ - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - /** - * When `project` is provided, this controls the non-standard file extensions which will be parsed. - * It accepts an array of file extensions, each preceded by a `.`. - * - * NOTE: When used with {@link projectService}, full project reloads may occur. - */ - extraFileExtensions?: string[]; - /** - * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. - * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. - */ - filePath?: string; - /** - * Allows the user to control whether or not two-way AST node maps are preserved - * during the AST conversion process. - * - * By default: the AST node maps are NOT preserved, unless `project` has been specified, - * in which case the maps are made available on the returned `parserServices`. - * - * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, - * regardless of whether or not `project` is in use. - */ - preserveNodeMaps?: boolean; - /** - * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), - * or `true` to find the nearest tsconfig.json to the file. - * If this is provided, type information will be returned. - * - * If set to `false`, `null` or `undefined` type information will not be returned. - * - * Note that {@link projectService} is now preferred. - */ - project?: string[] | string | boolean | null; - /** - * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from - * being matched by the globs. - * This accepts an array of globs to ignore. - * - * By default, this is set to ["**\/node_modules/**"] - */ - projectFolderIgnoreList?: string[]; - /** - * Whether to create a shared TypeScript project service to power program creation. - */ - projectService?: boolean | ProjectServiceOptions; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir?: string; - /** - * An array of one or more instances of TypeScript Program objects to be used for type information. - * This overrides any program or programs that would have been computed from the `project` option. - * All linted files must be part of the provided program(s). - */ - programs?: ts.Program[] | null; -} -export type TSESTreeOptions = ParseAndGenerateServicesOptions; -export interface ParserWeakMap { - get(key: Key): Value; - has(key: unknown): boolean; -} -export interface ParserWeakMapESTreeToTSNode { - get(key: KeyBase): TSESTreeToTSNode; - has(key: unknown): boolean; -} -export interface ParserServicesBase { - emitDecoratorMetadata: boolean | undefined; - experimentalDecorators: boolean | undefined; -} -export interface ParserServicesNodeMaps { - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; -} -export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { - program: ts.Program; - getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined; - getTypeAtLocation: (node: TSESTree.Node) => ts.Type; -} -export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase { - program: null; -} -export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation; -//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map deleted file mode 100644 index a65d23db..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,UAAU,YAAY;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAOd,QAAQ,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;IAE/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,kCAAkC,CAAC,EAAE,OAAO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AC;IAClE,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C;AACD,MAAM,WAAW,sBAAsB;IACrC,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,GAAG,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CACvE;AACD,MAAM,WAAW,iCACf,SAAQ,sBAAsB,EAC5B,kBAAkB;IACpB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IACpB,mBAAmB,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC;IACpE,iBAAiB,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI,CAAC;CACrD;AACD,MAAM,WAAW,oCACf,SAAQ,sBAAsB,EAC5B,kBAAkB;IACpB,OAAO,EAAE,IAAI,CAAC;CACf;AACD,MAAM,MAAM,cAAc,GACtB,oCAAoC,GACpC,iCAAiC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js deleted file mode 100644 index 66f40a29..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map deleted file mode 100644 index 22b7b8ab..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts deleted file mode 100644 index 4c8f4250..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type * as ts from 'typescript'; -import type { ParserServices, TSESTreeOptions } from './parser-options'; -import type { TSESTree } from './ts-estree'; -declare function clearProgramCache(): void; -declare function clearDefaultProjectMatchedFiles(): void; -type AST = TSESTree.Program & (T['comment'] extends true ? { - comments: TSESTree.Comment[]; -} : {}) & (T['tokens'] extends true ? { - tokens: TSESTree.Token[]; -} : {}); -interface ParseAndGenerateServicesResult { - ast: AST; - services: ParserServices; -} -declare function parse(code: string, options?: T): AST; -declare function clearParseAndGenerateServicesCalls(): void; -declare function parseAndGenerateServices(code: ts.SourceFile | string, tsestreeOptions: T): ParseAndGenerateServicesResult; -export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, clearDefaultProjectMatchedFiles, clearProgramCache, clearParseAndGenerateServicesCalls, }; -//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map deleted file mode 100644 index eeebc2e6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAiBtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAW5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAGD,iBAAS,+BAA+B,IAAI,IAAI,CAE/C;AA8CD,KAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,QAAQ,CAAC,OAAO,GACpD,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,GACnE,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,CAAC;AAGjE,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA4CD,iBAAS,kCAAkC,IAAI,IAAI,CAElD;AAED,iBAAS,wBAAwB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3E,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,EAC5B,eAAe,EAAE,CAAC,GACjB,8BAA8B,CAAC,CAAC,CAAC,CA+GnC;AAED,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,iBAAiB,EACjB,kCAAkC,GACnC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js deleted file mode 100644 index 183d7e36..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parse = parse; -exports.parseAndGenerateServices = parseAndGenerateServices; -exports.clearDefaultProjectMatchedFiles = clearDefaultProjectMatchedFiles; -exports.clearProgramCache = clearProgramCache; -exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; -const debug_1 = __importDefault(require("debug")); -const ast_converter_1 = require("./ast-converter"); -const convert_1 = require("./convert"); -const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram"); -const createProjectProgram_1 = require("./create-program/createProjectProgram"); -const createSourceFile_1 = require("./create-program/createSourceFile"); -const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); -const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); -const createParserServices_1 = require("./createParserServices"); -const createParseSettings_1 = require("./parseSettings/createParseSettings"); -const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors"); -const useProgramFromProjectService_1 = require("./useProgramFromProjectService"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser'); -/** - * Cache existing programs for the single run use-case. - * - * clearProgramCache() is only intended to be used in testing to ensure the parser is clean between tests. - */ -const existingPrograms = new Map(); -function clearProgramCache() { - existingPrograms.clear(); -} -const defaultProjectMatchedFiles = new Set(); -function clearDefaultProjectMatchedFiles() { - defaultProjectMatchedFiles.clear(); -} -/** - * @param parseSettings Internal settings for parsing the file - * @param hasFullTypeInformation True if the program should be attempted to be calculated from provided tsconfig files - * @returns Returns a source file and program corresponding to the linted code - */ -function getProgramAndAST(parseSettings, hasFullTypeInformation) { - if (parseSettings.projectService) { - const fromProjectService = (0, useProgramFromProjectService_1.useProgramFromProjectService)(parseSettings.projectService, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles); - if (fromProjectService) { - return fromProjectService; - } - } - if (parseSettings.programs) { - const fromProvidedPrograms = (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings); - if (fromProvidedPrograms) { - return fromProvidedPrograms; - } - } - // no need to waste time creating a program as the caller didn't want parser services - // so we can save time and just create a lonesome source file - if (!hasFullTypeInformation) { - return (0, createSourceFile_1.createNoProgram)(parseSettings); - } - return (0, createProjectProgram_1.createProjectProgram)(parseSettings, (0, getWatchProgramsForProjects_1.getWatchProgramsForProjects)(parseSettings)); -} -function parse(code, options) { - const { ast } = parseWithNodeMapsInternal(code, options, false); - return ast; -} -function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) { - /** - * Reset the parse configuration - */ - const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); - /** - * Ensure users do not attempt to use parse() when they need parseAndGenerateServices() - */ - if (options?.errorOnTypeScriptSyntacticAndSemanticIssues) { - throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`); - } - /** - * Create a ts.SourceFile directly, no ts.Program is needed for a simple parse - */ - const ast = (0, createSourceFile_1.createSourceFile)(parseSettings); - /** - * Convert the TypeScript AST to an ESTree-compatible one - */ - const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); - return { - ast: estree, - esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, - tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, - }; -} -let parseAndGenerateServicesCalls = {}; -// Privately exported utility intended for use in typescript-eslint unit tests only -function clearParseAndGenerateServicesCalls() { - parseAndGenerateServicesCalls = {}; -} -function parseAndGenerateServices(code, tsestreeOptions) { - /** - * Reset the parse configuration - */ - const parseSettings = (0, createParseSettings_1.createParseSettings)(code, tsestreeOptions); - /** - * If this is a single run in which the user has not provided any existing programs but there - * are programs which need to be created from the provided "project" option, - * create an Iterable which will lazily create the programs as needed by the iteration logic - */ - if (parseSettings.singleRun && - !parseSettings.programs && - parseSettings.projects.size > 0) { - parseSettings.programs = { - *[Symbol.iterator]() { - for (const configFile of parseSettings.projects) { - const existingProgram = existingPrograms.get(configFile[0]); - if (existingProgram) { - yield existingProgram; - } - else { - log('Detected single-run/CLI usage, creating Program once ahead of time for project: %s', configFile); - const newProgram = (0, useProvidedPrograms_1.createProgramFromConfigFile)(configFile[1]); - existingPrograms.set(configFile[0], newProgram); - yield newProgram; - } - } - }, - }; - } - const hasFullTypeInformation = parseSettings.programs != null || - parseSettings.projects.size > 0 || - !!parseSettings.projectService; - if (typeof tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues === - 'boolean' && - tsestreeOptions.errorOnTypeScriptSyntacticAndSemanticIssues) { - parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true; - } - if (parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues && - !hasFullTypeInformation) { - throw new Error('Cannot calculate TypeScript semantic issues without a valid project.'); - } - /** - * If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file, - * it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional - * 10 times in order to apply all possible fixes for the file). - * - * In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source - * with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source. - */ - if (parseSettings.singleRun && tsestreeOptions.filePath) { - parseAndGenerateServicesCalls[tsestreeOptions.filePath] = - (parseAndGenerateServicesCalls[tsestreeOptions.filePath] || 0) + 1; - } - const { ast, program } = parseSettings.singleRun && - tsestreeOptions.filePath && - parseAndGenerateServicesCalls[tsestreeOptions.filePath] > 1 - ? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings) - : getProgramAndAST(parseSettings, hasFullTypeInformation); - /** - * Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve - * mappings between converted and original AST nodes - */ - const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean' - ? parseSettings.preserveNodeMaps - : true; - const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); - /** - * Even if TypeScript parsed the source code ok, and we had no problems converting the AST, - * there may be other syntactic or semantic issues in the code that we can optionally report on. - */ - if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) { - const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast); - if (error) { - throw (0, convert_1.convertError)(error); - } - } - /** - * Return the converted AST and additional parser services - */ - return { - ast: estree, - services: (0, createParserServices_1.createParserServices)(astMaps, program), - }; -} -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map deleted file mode 100644 index d680300b..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;AAoRE,sBAAK;AACL,4DAAwB;AAExB,0EAA+B;AAC/B,8CAAiB;AACjB,gFAAkC;AAzRpC,kDAA0B;AAG1B,mDAA+C;AAC/C,uCAAyC;AACzC,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAG2C;AAC3C,8FAA2F;AAE3F,8EAG8C;AAC9C,iEAA8D;AAO9D,6EAA0E;AAC1E,iFAAkF;AAElF,iFAA8E;AAE9E,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;AACrD,SAAS,+BAA+B;IACtC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,sBAA+B;IAE/B,IAAI,aAA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M,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,OAAO,CAAC;KACjD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts deleted file mode 100644 index bd35968c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Diagnostic, Program, SourceFile } from 'typescript'; -export interface SemanticOrSyntacticError extends Diagnostic { - message: string; -} -/** - * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether - * they are related to generic ECMAScript standards, or TypeScript-specific constructs. - * - * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when - * the user opts in to throwing errors on semantic issues. - */ -export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; -//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map deleted file mode 100644 index d17a7ae6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"semantic-or-syntactic-errors.d.ts","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,OAAO,EACP,UAAU,EACX,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,GACd,wBAAwB,GAAG,SAAS,CAmCtC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js deleted file mode 100644 index e7573de2..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFirstSemanticOrSyntacticError = getFirstSemanticOrSyntacticError; -const typescript_1 = require("typescript"); -/** - * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether - * they are related to generic ECMAScript standards, or TypeScript-specific constructs. - * - * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when - * the user opts in to throwing errors on semantic issues. - */ -function getFirstSemanticOrSyntacticError(program, ast) { - try { - const supportedSyntacticDiagnostics = allowlistSupportedDiagnostics(program.getSyntacticDiagnostics(ast)); - if (supportedSyntacticDiagnostics.length > 0) { - return convertDiagnosticToSemanticOrSyntacticError(supportedSyntacticDiagnostics[0]); - } - const supportedSemanticDiagnostics = allowlistSupportedDiagnostics(program.getSemanticDiagnostics(ast)); - if (supportedSemanticDiagnostics.length > 0) { - return convertDiagnosticToSemanticOrSyntacticError(supportedSemanticDiagnostics[0]); - } - return undefined; - } - catch (e) { - /** - * TypeScript compiler has certain Debug.fail() statements in, which will cause the diagnostics - * retrieval above to throw. - * - * E.g. from ast-alignment-tests - * "Debug Failure. Shouldn't ever directly check a JsxOpeningElement" - * - * For our current use-cases this is undesired behavior, so we just suppress it - * and log a a warning. - */ - /* istanbul ignore next */ - console.warn(`Warning From TSC: "${e.message}`); // eslint-disable-line no-console - /* istanbul ignore next */ - return undefined; - } -} -function allowlistSupportedDiagnostics(diagnostics) { - return diagnostics.filter(diagnostic => { - switch (diagnostic.code) { - case 1013: // "A rest parameter or binding pattern may not have a trailing comma." - case 1014: // "A rest parameter must be last in a parameter list." - case 1044: // "'{0}' modifier cannot appear on a module or namespace element." - case 1045: // "A '{0}' modifier cannot be used with an interface declaration." - case 1048: // "A rest parameter cannot have an initializer." - case 1049: // "A 'set' accessor must have exactly one parameter." - case 1070: // "'{0}' modifier cannot appear on a type member." - case 1071: // "'{0}' modifier cannot appear on an index signature." - case 1085: // "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'." - case 1090: // "'{0}' modifier cannot appear on a parameter." - case 1096: // "An index signature must have exactly one parameter." - case 1097: // "'{0}' list cannot be empty." - case 1098: // "Type parameter list cannot be empty." - case 1099: // "Type argument list cannot be empty." - case 1117: // "An object literal cannot have multiple properties with the same name in strict mode." - case 1121: // "Octal literals are not allowed in strict mode." - case 1123: // "Variable declaration list cannot be empty." - case 1141: // "String literal expected." - case 1162: // "An object member cannot be declared optional." - case 1164: // "Computed property names are not allowed in enums." - case 1172: // "'extends' clause already seen." - case 1173: // "'extends' clause must precede 'implements' clause." - case 1175: // "'implements' clause already seen." - case 1176: // "Interface declaration cannot have 'implements' clause." - case 1190: // "The variable declaration of a 'for...of' statement cannot have an initializer." - case 1196: // "Catch clause variable type annotation must be 'any' or 'unknown' if specified." - case 1200: // "Line terminator not permitted before arrow." - case 1206: // "Decorators are not valid here." - case 1211: // "A class declaration without the 'default' modifier must have a name." - case 1242: // "'abstract' modifier can only appear on a class, method, or property declaration." - case 1246: // "An interface property cannot have an initializer." - case 1255: // "A definite assignment assertion '!' is not permitted in this context." - case 1308: // "'await' expression is only allowed within an async function." - case 2364: // "The left-hand side of an assignment expression must be a variable or a property access." - case 2369: // "A parameter property is only allowed in a constructor implementation." - case 2452: // "An enum member cannot have a numeric name." - case 2462: // "A rest element must be last in a destructuring pattern." - case 8017: // "Octal literal types must use ES2015 syntax. Use the syntax '{0}'." - case 17012: // "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?" - case 17013: // "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor." - return true; - } - return false; - }); -} -function convertDiagnosticToSemanticOrSyntacticError(diagnostic) { - return { - ...diagnostic, - message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine), - }; -} -//# sourceMappingURL=semantic-or-syntactic-errors.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map deleted file mode 100644 index 617f7640..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"semantic-or-syntactic-errors.js","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":";;AAmBA,4EAsCC;AAnDD,2CAA+D;AAM/D;;;;;;GAMG;AACH,SAAgB,gCAAgC,CAC9C,OAAgB,EAChB,GAAe;IAEf,IAAI,CAAC;QACH,MAAM,6BAA6B,GAAG,6BAA6B,CACjE,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACrC,CAAC;QACF,IAAI,6BAA6B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,OAAO,2CAA2C,CAChD,6BAA6B,CAAC,CAAC,CAAC,CACjC,CAAC;QACJ,CAAC;QACD,MAAM,4BAA4B,GAAG,6BAA6B,CAChE,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpC,CAAC;QACF,IAAI,4BAA4B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,2CAA2C,CAChD,4BAA4B,CAAC,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CAAmC;YAC9C,KAAK,IAAI,CAAC,CAAC,uDAAuD;YAClE,KAAK,IAAI,CAAC,CAAC,sCAAsC;YACjD,KAAK,IAAI,CAAC,CAAC,2DAA2D;YACtE,KAAK,IAAI,CAAC,CAAC,mFAAmF;YAC9F,KAAK,IAAI,CAAC,CAAC,mFAAmF;YAC9F,KAAK,IAAI,CAAC,CAAC,gDAAgD;YAC3D,KAAK,IAAI,CAAC,CAAC,mCAAmC;YAC9C,KAAK,IAAI,CAAC,CAAC,yEAAyE;YACpF,KAAK,IAAI,CAAC,CAAC,qFAAqF;YAChG,KAAK,IAAI,CAAC,CAAC,sDAAsD;YACjE,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,iEAAiE;YAC5E,KAAK,IAAI,CAAC,CAAC,4FAA4F;YACvG,KAAK,IAAI,CAAC,CAAC,0EAA0E;YACrF,KAAK,IAAI,CAAC,CAAC,+CAA+C;YAC1D,KAAK,IAAI,CAAC,CAAC,4DAA4D;YACvE,KAAK,IAAI,CAAC,CAAC,sEAAsE;YACjF,KAAK,KAAK,CAAC,CAAC,8EAA8E;YAC1F,KAAK,KAAK,EAAE,oHAAoH;gBAC9H,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,UAAsB;IAEtB,OAAO;QACL,GAAG,UAAU;QACb,OAAO,EAAE,IAAA,yCAA4B,EAAC,UAAU,CAAC,WAAW,EAAE,gBAAG,CAAC,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts deleted file mode 100644 index 7a8e2763..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { VisitorKeys } from '@typescript-eslint/visitor-keys'; -import type { TSESTree } from './ts-estree'; -type SimpleTraverseOptions = Readonly<{ - visitorKeys?: Readonly; - enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; -} | { - visitorKeys?: Readonly; - visitors: Record void>; -}>; -export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; -export {}; -//# sourceMappingURL=simple-traverse.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map deleted file mode 100644 index 8716a5e1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmB5C,KAAK,qBAAqB,GAAG,QAAQ,CACjC;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE,GACD;IACE,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CACd,MAAM,EACN,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CACjE,CAAC;CACH,CACJ,CAAC;AAiDF,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js deleted file mode 100644 index 822897f3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.simpleTraverse = simpleTraverse; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -function isValidNode(x) { - return (typeof x === 'object' && - x != null && - 'type' in x && - typeof x.type === 'string'); -} -function getVisitorKeysForNode(allVisitorKeys, node) { - const keys = allVisitorKeys[node.type]; - return (keys ?? []); -} -class SimpleTraverser { - allVisitorKeys = visitor_keys_1.visitorKeys; - selectors; - setParentPointers; - constructor(selectors, setParentPointers = false) { - this.selectors = selectors; - this.setParentPointers = setParentPointers; - if (selectors.visitorKeys) { - this.allVisitorKeys = selectors.visitorKeys; - } - } - traverse(node, parent) { - if (!isValidNode(node)) { - return; - } - if (this.setParentPointers) { - node.parent = parent; - } - if ('enter' in this.selectors) { - this.selectors.enter(node, parent); - } - else if (node.type in this.selectors.visitors) { - this.selectors.visitors[node.type](node, parent); - } - const keys = getVisitorKeysForNode(this.allVisitorKeys, node); - if (keys.length < 1) { - return; - } - for (const key of keys) { - const childOrChildren = node[key]; - if (Array.isArray(childOrChildren)) { - for (const child of childOrChildren) { - this.traverse(child, node); - } - } - else { - this.traverse(childOrChildren, node); - } - } - } -} -function simpleTraverse(startingNode, options, setParentPointers = false) { - new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined); -} -//# sourceMappingURL=simple-traverse.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map deleted file mode 100644 index 41ce90cf..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-traverse.js","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":";;AAmFA,wCASC;AA3FD,kEAA8D;AAI9D,SAAS,WAAW,CAAC,CAAU;IAC7B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,IAAI,IAAI;QACT,MAAM,IAAI,CAAC;QACX,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,cAAkC,EAClC,IAAmB;IAEnB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAU,CAAC;AAC/B,CAAC;AAgBD,MAAM,eAAe;IACF,cAAc,GAA0B,0BAAW,CAAC;IACpD,SAAS,CAAwB;IACjC,iBAAiB,CAAU;IAE5C,YAAY,SAAgC,EAAE,iBAAiB,GAAG,KAAK;QACrE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;YAC1B,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,QAAQ,CAAC,IAAa,EAAE,MAAiC;QACvD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACnC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;oBACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,SAAgB,cAAc,CAC5B,YAA2B,EAC3B,OAA8B,EAC9B,iBAAiB,GAAG,KAAK;IAEzB,IAAI,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACtD,YAAY,EACZ,SAAS,CACV,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts deleted file mode 100644 index 46d2ea25..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -export declare function isSourceFile(code: unknown): code is ts.SourceFile; -export declare function getCodeText(code: ts.SourceFile | string): string; -//# sourceMappingURL=source-files.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map deleted file mode 100644 index cee19bda..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,UAAU,CAUjE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js deleted file mode 100644 index 5878380c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSourceFile = isSourceFile; -exports.getCodeText = getCodeText; -const ts = __importStar(require("typescript")); -function isSourceFile(code) { - if (typeof code !== 'object' || code == null) { - return false; - } - const maybeSourceFile = code; - return (maybeSourceFile.kind === ts.SyntaxKind.SourceFile && - typeof maybeSourceFile.getFullText === 'function'); -} -function getCodeText(code) { - return isSourceFile(code) ? code.getFullText(code) : code; -} -//# sourceMappingURL=source-files.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map deleted file mode 100644 index 5bc67641..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-files.js","sourceRoot":"","sources":["../src/source-files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oCAUC;AAED,kCAEC;AAhBD,+CAAiC;AAEjC,SAAgB,YAAY,CAAC,IAAa;IACxC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,IAA8B,CAAC;IACvD,OAAO,CACL,eAAe,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU;QACjD,OAAO,eAAe,CAAC,WAAW,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC;AAED,SAAgB,WAAW,CAAC,IAA4B;IACtD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts deleted file mode 100644 index b0ed76df..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +++ /dev/null @@ -1,179 +0,0 @@ -import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; -import type * as ts from 'typescript'; -import type { TSNode } from './ts-nodes'; -export interface EstreeToTsNodeTypes { - [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; - [AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression; - [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; - [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment; - [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; - [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.BlockStatement]: ts.Block; - [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; - [AST_NODE_TYPES.CallExpression]: ts.CallExpression; - [AST_NODE_TYPES.CatchClause]: ts.CatchClause; - [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression; - [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; - [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; - [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; - [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; - [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; - [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; - [AST_NODE_TYPES.Decorator]: ts.Decorator; - [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; - [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; - [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; - [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; - [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement; - [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; - [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; - [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; - [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; - [AST_NODE_TYPES.ForStatement]: ts.ForStatement; - [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; - [AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token; - [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; - [AST_NODE_TYPES.IfStatement]: ts.IfStatement; - [AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry; - [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; - [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; - [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; - [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; - [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; - [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; - [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; - [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; - [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; - [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; - [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; - [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; - [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; - [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; - [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; - [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; - [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; - [AST_NODE_TYPES.JSXText]: ts.JsxText; - [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; - [AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral; - [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression; - [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; - [AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.NewExpression]: ts.NewExpression; - [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; - [AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression; - [AST_NODE_TYPES.Program]: ts.SourceFile; - [AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment; - [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement; - [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; - [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement; - [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; - [AST_NODE_TYPES.Super]: ts.SuperExpression; - [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; - [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; - [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; - [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; - [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; - [AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression; - [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; - [AST_NODE_TYPES.TryStatement]: ts.TryStatement; - [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; - [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; - [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; - [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; - [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; - [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; - [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; - [AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration; - [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; - [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; - [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; - [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; - [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; - [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; - [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; - [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; - [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; - [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; - [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; - [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; - [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; - [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; - [AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; - [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; - [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; - [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; - [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; - [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; - [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; - [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; - [AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName; - [AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode; - [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; - [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; - [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; - [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; - [AST_NODE_TYPES.TSTypeAnnotation]: undefined; - [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; - [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; - [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; - [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; - [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; - [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode; - [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; - [AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode; - [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; - [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; - [AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression; - [AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression; - [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; - [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; - [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; - [AST_NODE_TYPES.WithStatement]: ts.WithStatement; - [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; - [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; - [AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral; - [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; - [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; - [AST_NODE_TYPES.TSExportKeyword]: ts.Token; - [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; - [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; - [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; - [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; - [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; -} -/** - * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). - * This mapping is based on the internal logic of the parser. - */ -export type TSESTreeToTSNode = Extract | TSNode, EstreeToTsNodeTypes[T['type']]>; -//# sourceMappingURL=estree-to-ts-node-types.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map deleted file mode 100644 index 3c4eddd0..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree-to-ts-node-types.d.ts","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC;IAC1D,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC;IAC5D,CAAC,cAAc,CAAC,YAAY,CAAC,EACzB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,sBAAsB,CAAC;IAC9B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AC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACxE,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACxE,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAC1E,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC9E,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;CAC7E;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,OAAO,CAC7E,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,MAAM,EAEzE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC/B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js deleted file mode 100644 index e92a96f2..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=estree-to-ts-node-types.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map deleted file mode 100644 index a9cfa15f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree-to-ts-node-types.js","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts deleted file mode 100644 index 37f26a39..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; -export * from './ts-nodes'; -export * from './estree-to-ts-node-types'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map deleted file mode 100644 index 6a839dc6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js deleted file mode 100644 index 6d010024..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -// for simplicity and backwards-compatibility -var types_1 = require("@typescript-eslint/types"); -Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); -Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); -Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); -__exportStar(require("./ts-nodes"), exports); -__exportStar(require("./estree-to-ts-node-types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map deleted file mode 100644 index fc698263..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA;AAEV,6CAA2B;AAC3B,4DAA0C"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts deleted file mode 100644 index e9821eed..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type * as ts from 'typescript'; -declare module 'typescript' { - interface AssertClause extends ts.ImportAttributes { - } - interface AssertEntry extends ts.ImportAttribute { - } - interface SatisfiesExpression extends ts.Node { - } - interface JsxNamespacedName extends ts.Node { - } - interface ImportAttribute extends ts.Node { - } - interface ImportAttributes extends ts.Node { - } -} -export type TSToken = ts.Token; -export type TSNode = ts.Modifier | ts.Identifier | ts.ImportAttribute | ts.ImportAttributes | ts.AssertClause | ts.AssertEntry | ts.PrivateIdentifier | ts.QualifiedName | ts.ComputedPropertyName | ts.Decorator | ts.TypeParameterDeclaration | ts.CallSignatureDeclaration | ts.ConstructSignatureDeclaration | ts.VariableDeclaration | ts.VariableDeclarationList | ts.ParameterDeclaration | ts.BindingElement | ts.PropertySignature | ts.PropertyDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment | ts.ObjectBindingPattern | ts.ArrayBindingPattern | ts.FunctionDeclaration | ts.MethodSignature | ts.MethodDeclaration | ts.ConstructorDeclaration | ts.SemicolonClassElement | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.IndexSignatureDeclaration | ts.KeywordTypeNode | ts.ImportTypeNode | ts.ThisTypeNode | ts.ClassStaticBlockDeclaration | ts.ConstructorTypeNode | ts.FunctionTypeNode | ts.TypeReferenceNode | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeLiteralNode | ts.ArrayTypeNode | ts.NamedTupleMember | ts.TupleTypeNode | ts.OptionalTypeNode | ts.RestTypeNode | ts.UnionTypeNode | ts.IntersectionTypeNode | ts.ConditionalTypeNode | ts.InferTypeNode | ts.ParenthesizedTypeNode | ts.TypeOperatorNode | ts.IndexedAccessTypeNode | ts.MappedTypeNode | ts.LiteralTypeNode | ts.StringLiteral | ts.OmittedExpression | ts.PartiallyEmittedExpression | ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.NullLiteral | ts.BooleanLiteral | ts.ThisExpression | ts.SuperExpression | ts.ImportExpression | ts.DeleteExpression | ts.TypeOfExpression | ts.VoidExpression | ts.AwaitExpression | ts.YieldExpression | ts.SyntheticExpression | ts.BinaryExpression | ts.ConditionalExpression | ts.FunctionExpression | ts.ArrowFunction | ts.RegularExpressionLiteral | ts.NoSubstitutionTemplateLiteral | ts.NumericLiteral | ts.BigIntLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail | ts.TemplateExpression | ts.TemplateSpan | ts.ParenthesizedExpression | ts.ArrayLiteralExpression | ts.SpreadElement | ts.ObjectLiteralExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.ExpressionWithTypeArguments | ts.NewExpression | ts.TaggedTemplateExpression | ts.AsExpression | ts.TypeAssertion | ts.NonNullExpression | ts.MetaProperty | ts.JsxElement | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.JsxFragment | ts.JsxOpeningFragment | ts.JsxClosingFragment | ts.JsxAttribute | ts.JsxSpreadAttribute | ts.JsxClosingElement | ts.JsxExpression | ts.JsxNamespacedName | ts.JsxText | ts.NotEmittedStatement | ts.CommaListExpression | ts.EmptyStatement | ts.DebuggerStatement | ts.MissingDeclaration | ts.Block | ts.VariableStatement | ts.ExpressionStatement | ts.IfStatement | ts.DoStatement | ts.WhileStatement | ts.ForStatement | ts.ForInStatement | ts.ForOfStatement | ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.WithStatement | ts.SwitchStatement | ts.CaseBlock | ts.CaseClause | ts.DefaultClause | ts.LabeledStatement | ts.ThrowStatement | ts.TryStatement | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.InterfaceDeclaration | ts.HeritageClause | ts.TypeAliasDeclaration | ts.EnumMember | ts.EnumDeclaration | ts.ModuleDeclaration | ts.ModuleBlock | ts.ImportEqualsDeclaration | ts.ExternalModuleReference | ts.ImportDeclaration | ts.ImportClause | ts.NamespaceImport | ts.NamespaceExportDeclaration | ts.ExportDeclaration | ts.NamedImports | ts.NamedExports | ts.ImportSpecifier | ts.ExportSpecifier | ts.ExportAssignment | ts.SourceFile | ts.Bundle | ts.JsonMinusNumericLiteral | ts.TemplateLiteralTypeNode | ts.SatisfiesExpression | ts.JSDoc | ts.JSDocTypeExpression | ts.JSDocUnknownTag | ts.JSDocAugmentsTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocThisTag | ts.JSDocTemplateTag | ts.JSDocReturnTag | ts.JSDocTypeTag | ts.JSDocTypedefTag | ts.JSDocCallbackTag | ts.JSDocSignature | ts.JSDocPropertyTag | ts.JSDocParameterTag | ts.JSDocTypeLiteral | ts.JSDocFunctionType | ts.JSDocAllType | ts.JSDocUnknownType | ts.JSDocNullableType | ts.JSDocNonNullableType | ts.JSDocOptionalType | ts.JSDocVariadicType | ts.JSDocAuthorTag; -//# sourceMappingURL=ts-nodes.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map deleted file mode 100644 index 8a695c98..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-nodes.d.ts","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,QAAQ,YAAY,CAAC;IAE1B,UAAiB,YAAa,SAAQ,EAAE,CAAC,gBAAgB;KAAG;I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AAE,CAAC,YAAY,GACf,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,cAAc,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js deleted file mode 100644 index ba99b5f1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ts-nodes.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map deleted file mode 100644 index a4fa02c4..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-nodes.js","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts deleted file mode 100644 index c8e90daf..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from './create-program/getScriptKind'; -export * from './ast-converter'; -export type { ParseSettings } from './parseSettings'; -export * from './getModifiers'; -export { typescriptVersionIsAtLeast } from './version-check'; -export { getCanonicalFileName } from './create-program/shared'; -//# sourceMappingURL=use-at-your-own-risk.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map deleted file mode 100644 index 2e545be7..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"use-at-your-own-risk.d.ts","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js deleted file mode 100644 index 69469f48..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getCanonicalFileName = exports.typescriptVersionIsAtLeast = void 0; -// required by website -__exportStar(require("./create-program/getScriptKind"), exports); -__exportStar(require("./ast-converter"), exports); -// required by packages/utils/src/ts-estree.ts -__exportStar(require("./getModifiers"), exports); -var version_check_1 = require("./version-check"); -Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); -// required by packages/type-utils -var shared_1 = require("./create-program/shared"); -Object.defineProperty(exports, "getCanonicalFileName", { enumerable: true, get: function () { return shared_1.getCanonicalFileName; } }); -//# sourceMappingURL=use-at-your-own-risk.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map deleted file mode 100644 index 8239312a..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"use-at-your-own-risk.js","sourceRoot":"","sources":["../src/use-at-your-own-risk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,iEAA+C;AAC/C,kDAAgC;AAGhC,8CAA8C;AAC9C,iDAA+B;AAC/B,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AAEnC,kCAAkC;AAClC,kDAA+D;AAAtD,8GAAA,oBAAoB,OAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts deleted file mode 100644 index 07f58e0c..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ProjectServiceSettings } from './create-program/createProjectService'; -import type { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram } from './create-program/shared'; -import type { MutableParseSettings } from './parseSettings'; -export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: boolean, defaultProjectMatchedFiles: Set): ASTAndProgram | undefined; -export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: true, defaultProjectMatchedFiles: Set): ASTAndDefiniteProgram | undefined; -export declare function useProgramFromProjectService(settings: ProjectServiceSettings, parseSettings: Readonly, hasFullTypeInformation: false, defaultProjectMatchedFiles: Set): ASTAndNoProgram | undefined; -//# sourceMappingURL=useProgramFromProjectService.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map deleted file mode 100644 index 4e16d4f9..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProgramFromProjectService.d.ts","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAEpF,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAqJ5D,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,OAAO,EAC/B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,aAAa,GAAG,SAAS,CAAC;AAC7B,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,IAAI,EAC5B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,qBAAqB,GAAG,SAAS,CAAC;AACrC,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,aAAa,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC7C,sBAAsB,EAAE,KAAK,EAC7B,0BAA0B,EAAE,GAAG,CAAC,MAAM,CAAC,GACtC,eAAe,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js deleted file mode 100644 index 977f95d3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +++ /dev/null @@ -1,148 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.useProgramFromProjectService = useProgramFromProjectService; -const node_path_1 = __importDefault(require("node:path")); -const node_util_1 = __importDefault(require("node:util")); -const debug_1 = __importDefault(require("debug")); -const minimatch_1 = require("minimatch"); -const ts = __importStar(require("typescript")); -const createProjectProgram_1 = require("./create-program/createProjectProgram"); -const createSourceFile_1 = require("./create-program/createSourceFile"); -const validateDefaultProjectForFilesGlob_1 = require("./create-program/validateDefaultProjectForFilesGlob"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProgramFromProjectService'); -const serviceFileExtensions = new WeakMap(); -const updateExtraFileExtensions = (service, extraFileExtensions) => { - const currentServiceFileExtensions = serviceFileExtensions.get(service) ?? []; - if (!node_util_1.default.isDeepStrictEqual(currentServiceFileExtensions, extraFileExtensions)) { - log('Updating extra file extensions: before=%s: after=%s', currentServiceFileExtensions, extraFileExtensions); - service.setHostConfiguration({ - extraFileExtensions: extraFileExtensions.map(extension => ({ - extension, - isMixedContent: false, - scriptKind: ts.ScriptKind.Deferred, - })), - }); - serviceFileExtensions.set(service, extraFileExtensions); - log('Extra file extensions updated: %o', extraFileExtensions); - } -}; -function openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings) { - const opened = serviceSettings.service.openClientFile(filePathAbsolute, parseSettings.codeFullText, - /* scriptKind */ undefined, parseSettings.tsconfigRootDir); - log('Project service type information enabled; checking for file path match on: %o', serviceSettings.allowDefaultProject); - log('Default project allowed path: %s, based on config file: %s', isDefaultProjectAllowed, opened.configFileName); - if (opened.configFileName) { - if (isDefaultProjectAllowed) { - throw new Error(`${parseSettings.filePath} was included by allowDefaultProject but also was found in the project service. Consider removing it from allowDefaultProject.`); - } - } - else if (!isDefaultProjectAllowed) { - throw new Error(`${parseSettings.filePath} was not found by the project service. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`); - } - // No a configFileName indicates this file wasn't included in a TSConfig. - // That means it must get its type information from the default project. - if (!opened.configFileName) { - defaultProjectMatchedFiles.add(filePathAbsolute); - if (defaultProjectMatchedFiles.size > - serviceSettings.maximumDefaultProjectFileMatchCount) { - const filePrintLimit = 20; - const filesToPrint = Array.from(defaultProjectMatchedFiles).slice(0, filePrintLimit); - const truncatedFileCount = defaultProjectMatchedFiles.size - filesToPrint.length; - throw new Error(`Too many files (>${serviceSettings.maximumDefaultProjectFileMatchCount}) have matched the default project.${validateDefaultProjectForFilesGlob_1.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION} -Matching files: -${filesToPrint.map(file => `- ${file}`).join('\n')} -${truncatedFileCount ? `...and ${truncatedFileCount} more files\n` : ''} -If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value. -`); - } - } - return opened; -} -function createNoProgramWithProjectService(filePathAbsolute, parseSettings, service) { - log('No project service information available. Creating no program.'); - // If the project service knows about this file, this informs if of changes. - // Doing so ensures that: - // - if the file is not part of a project, we don't waste time creating a program (fast non-type-aware linting) - // - otherwise, we refresh the file in the project service (moderately fast, since the project is already loaded) - if (service.getScriptInfo(filePathAbsolute)) { - log('Script info available. Opening client file in project service.'); - service.openClientFile(filePathAbsolute, parseSettings.codeFullText, - /* scriptKind */ undefined, parseSettings.tsconfigRootDir); - } - return (0, createSourceFile_1.createNoProgram)(parseSettings); -} -function retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings) { - log('Retrieving script info and then program for: %s', filePathAbsolute); - const scriptInfo = serviceSettings.service.getScriptInfo(filePathAbsolute); - /* eslint-disable @typescript-eslint/no-non-null-assertion */ - const program = serviceSettings.service - .getDefaultProjectForFile(scriptInfo.fileName, true) - .getLanguageService(/*ensureSynchronized*/ true) - .getProgram(); - /* eslint-enable @typescript-eslint/no-non-null-assertion */ - if (!program) { - log('Could not find project service program for: %s', filePathAbsolute); - return undefined; - } - log('Found project service program for: %s', filePathAbsolute); - return (0, createProjectProgram_1.createProjectProgram)(parseSettings, [program]); -} -function useProgramFromProjectService(serviceSettings, parseSettings, hasFullTypeInformation, defaultProjectMatchedFiles) { - // NOTE: triggers a full project reload when changes are detected - updateExtraFileExtensions(serviceSettings.service, parseSettings.extraFileExtensions); - // We don't canonicalize the filename because it caused a performance regression. - // See https://github.com/typescript-eslint/typescript-eslint/issues/8519 - const filePathAbsolute = absolutify(parseSettings.filePath, serviceSettings); - log('Opening project service file for: %s at absolute path %s', parseSettings.filePath, filePathAbsolute); - const filePathRelative = node_path_1.default.relative(parseSettings.tsconfigRootDir, filePathAbsolute); - const isDefaultProjectAllowed = filePathMatchedBy(filePathRelative, serviceSettings.allowDefaultProject); - // Type-aware linting is disabled for this file. - // However, type-aware lint rules might still rely on its contents. - if (!hasFullTypeInformation && !isDefaultProjectAllowed) { - return createNoProgramWithProjectService(filePathAbsolute, parseSettings, serviceSettings.service); - } - // If type info was requested, we attempt to open it in the project service. - // By now, the file is known to be one of: - // - in the project service (valid configuration) - // - allowlisted in the default project (valid configuration) - // - neither, which openClientFileFromProjectService will throw an error for - const opened = hasFullTypeInformation && - openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultProjectAllowed, filePathAbsolute, parseSettings, serviceSettings); - log('Opened project service file: %o', opened); - return retrieveASTAndProgramFor(filePathAbsolute, parseSettings, serviceSettings); -} -function absolutify(filePath, serviceSettings) { - return node_path_1.default.isAbsolute(filePath) - ? filePath - : node_path_1.default.join(serviceSettings.service.host.getCurrentDirectory(), filePath); -} -function filePathMatchedBy(filePath, allowDefaultProject) { - return !!allowDefaultProject?.some(pattern => (0, minimatch_1.minimatch)(filePath, pattern)); -} -//# sourceMappingURL=useProgramFromProjectService.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map deleted file mode 100644 index 827117f1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProgramFromProjectService.js","sourceRoot":"","sources":["../src/useProgramFromProjectService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuLA,oEA8DC;AArPD,0DAA6B;AAC7B,0DAA6B;AAE7B,k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,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9E,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts deleted file mode 100644 index 0b8b65a3..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare const versions: readonly ["4.7", "4.8", "4.9", "5.0", "5.1", "5.2", "5.3", "5.4"]; -type Versions = typeof versions extends ArrayLike ? U : never; -declare const typescriptVersionIsAtLeast: Record; -export { typescriptVersionIsAtLeast }; -//# sourceMappingURL=version-check.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map deleted file mode 100644 index 9c6001eb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,QAAQ,mEASJ,CAAC;AACX,KAAK,QAAQ,GAAG,OAAO,QAAQ,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEvE,QAAA,MAAM,0BAA0B,EAAS,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKnE,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js deleted file mode 100644 index cfc06ca1..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typescriptVersionIsAtLeast = void 0; -const semver = __importStar(require("semver")); -const ts = __importStar(require("typescript")); -function semverCheck(version) { - return semver.satisfies(ts.version, `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, { - includePrerelease: true, - }); -} -const versions = [ - '4.7', - '4.8', - '4.9', - '5.0', - '5.1', - '5.2', - '5.3', - '5.4', -]; -const typescriptVersionIsAtLeast = {}; -exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; -for (const version of versions) { - typescriptVersionIsAtLeast[version] = semverCheck(version); -} -//# sourceMappingURL=version-check.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map deleted file mode 100644 index 8ba79e7f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,+CAAiC;AAEjC,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,MAAM,CAAC,SAAS,CACrB,EAAE,CAAC,OAAO,EACV,MAAM,OAAO,YAAY,OAAO,eAAe,OAAO,SAAS,EAC/D;QACE,iBAAiB,EAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAGX,MAAM,0BAA0B,GAAG,EAA+B,CAAC;AAK1D,gEAA0B;AAJnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;IAC/B,0BAA0B,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC7D,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts deleted file mode 100644 index 8195de9e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTreeOptions } from './parser-options'; -/** - * Removes options that prompt the parser to parse the project with type - * information. In other words, you can use this if you are invoking the parser - * directly, to ensure that one file will be parsed in isolation, which is much, - * much faster. - * - * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 - */ -export declare function withoutProjectParserOptions(opts: TSESTreeOptions): TSESTreeOptions; -//# sourceMappingURL=withoutProjectParserOptions.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map deleted file mode 100644 index 035068fa..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withoutProjectParserOptions.d.ts","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,eAAe,GACpB,eAAe,CAMjB"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js deleted file mode 100644 index 11d11940..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.withoutProjectParserOptions = withoutProjectParserOptions; -/** - * Removes options that prompt the parser to parse the project with type - * information. In other words, you can use this if you are invoking the parser - * directly, to ensure that one file will be parsed in isolation, which is much, - * much faster. - * - * @see https://github.com/typescript-eslint/typescript-eslint/issues/8428 - */ -function withoutProjectParserOptions(opts) { - // eslint-disable-next-line @typescript-eslint/no-unused-vars -- The variables are meant to be omitted - const { EXPERIMENTAL_useProjectService, project, projectService, ...rest } = opts; - return rest; -} -//# sourceMappingURL=withoutProjectParserOptions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map deleted file mode 100644 index 06ff93cb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withoutProjectParserOptions.js","sourceRoot":"","sources":["../src/withoutProjectParserOptions.ts"],"names":[],"mappings":";;AAUA,kEAQC;AAhBD;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,IAAqB;IAErB,sGAAsG;IACtG,MAAM,EAAE,8BAA8B,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GACxE,IAA+B,CAAC;IAElC,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/.github/FUNDING.yml b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/.github/FUNDING.yml deleted file mode 100644 index 79d1eafc..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -tidelift: "npm/brace-expansion" -patreon: juliangruber diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/LICENSE b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/LICENSE deleted file mode 100644 index de322667..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/README.md b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/README.md deleted file mode 100644 index e55c583d..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,135 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## Security contact information - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/index.js deleted file mode 100644 index 4af9ddee..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,203 +0,0 @@ -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m) return [str]; - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - if (/\$$/.test(m.pre)) { - for (var k = 0; k < post.length; k++) { - var expansion = pre+ '{' + m.body + '}' + post[k]; - expansions.push(expansion); - } - } else { - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = []; - - for (var j = 0; j < n.length; j++) { - N.push.apply(N, expand(n[j], false)); - } - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - } - - return expansions; -} - diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/package.json b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/package.json deleted file mode 100644 index 7097d41e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "2.0.1", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0" - }, - "devDependencies": { - "@c4312/matcha": "^1.3.1", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/LICENSE b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/LICENSE deleted file mode 100644 index 1493534e..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/README.md b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/README.md deleted file mode 100644 index 3c97a02f..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/README.md +++ /dev/null @@ -1,454 +0,0 @@ -# minimatch - -A minimal matching utility. - -This is the matching library used internally by npm. - -It works by converting glob expressions into JavaScript `RegExp` -objects. - -## Usage - -```js -// hybrid module, load with require() or import -import { minimatch } from 'minimatch' -// or: -const { minimatch } = require('minimatch') - -minimatch('bar.foo', '*.foo') // true! -minimatch('bar.foo', '*.bar') // false! -minimatch('bar.foo', '*.+(bar|foo)', { debug: true }) // true, and noisy! -``` - -## Features - -Supports these glob features: - -- Brace Expansion -- Extended glob matching -- "Globstar" `**` matching -- [Posix character - classes](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html), - like `[[:alpha:]]`, supporting the full range of Unicode - characters. For example, `[[:alpha:]]` will match against - `'é'`, though `[a-zA-Z]` will not. Collating symbol and set - matching is not supported, so `[[=e=]]` will _not_ match `'é'` - and `[[.ch.]]` will not match `'ch'` in locales where `ch` is - considered a single character. - -See: - -- `man sh` -- `man bash` [Pattern - Matching](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) -- `man 3 fnmatch` -- `man 5 gitignore` - -## Windows - -**Please only use forward-slashes in glob expressions.** - -Though windows uses either `/` or `\` as its path separator, only `/` -characters are used by this glob implementation. You must use -forward-slashes **only** in glob expressions. Back-slashes in patterns -will always be interpreted as escape characters, not path separators. - -Note that `\` or `/` _will_ be interpreted as path separators in paths on -Windows, and will match against `/` in glob expressions. - -So just always use `/` in patterns. - -### UNC Paths - -On Windows, UNC paths like `//?/c:/...` or -`//ComputerName/Share/...` are handled specially. - -- Patterns starting with a double-slash followed by some - non-slash characters will preserve their double-slash. As a - result, a pattern like `//*` will match `//x`, but not `/x`. -- Patterns staring with `//?/:` will _not_ treat - the `?` as a wildcard character. Instead, it will be treated - as a normal string. -- Patterns starting with `//?/:/...` will match - file paths starting with `:/...`, and vice versa, - as if the `//?/` was not present. This behavior only is - present when the drive letters are a case-insensitive match to - one another. The remaining portions of the path/pattern are - compared case sensitively, unless `nocase:true` is set. - -Note that specifying a UNC path using `\` characters as path -separators is always allowed in the file path argument, but only -allowed in the pattern argument when `windowsPathsNoEscape: true` -is set in the options. - -## Minimatch Class - -Create a minimatch object by instantiating the `minimatch.Minimatch` class. - -```javascript -var Minimatch = require('minimatch').Minimatch -var mm = new Minimatch(pattern, options) -``` - -### Properties - -- `pattern` The original pattern the minimatch object represents. -- `options` The options supplied to the constructor. -- `set` A 2-dimensional array of regexp or string expressions. - Each row in the - array corresponds to a brace-expanded pattern. Each item in the row - corresponds to a single path-part. For example, the pattern - `{a,b/c}/d` would expand to a set of patterns like: - - [ [ a, d ] - , [ b, c, d ] ] - - If a portion of the pattern doesn't have any "magic" in it - (that is, it's something like `"foo"` rather than `fo*o?`), then it - will be left as a string rather than converted to a regular - expression. - -- `regexp` Created by the `makeRe` method. A single regular expression - expressing the entire pattern. This is useful in cases where you wish - to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled. -- `negate` True if the pattern is negated. -- `comment` True if the pattern is a comment. -- `empty` True if the pattern is `""`. - -### Methods - -- `makeRe()` Generate the `regexp` member if necessary, and return it. - Will return `false` if the pattern is invalid. -- `match(fname)` Return true if the filename matches the pattern, or - false otherwise. -- `matchOne(fileArray, patternArray, partial)` Take a `/`-split - filename, and match it against a single row in the `regExpSet`. This - method is mainly for internal use, but is exposed so that it can be - used by a glob-walker that needs to avoid excessive filesystem calls. -- `hasMagic()` Returns true if the parsed pattern contains any - magic characters. Returns false if all comparator parts are - string literals. If the `magicalBraces` option is set on the - constructor, then it will consider brace expansions which are - not otherwise magical to be magic. If not set, then a pattern - like `a{b,c}d` will return `false`, because neither `abd` nor - `acd` contain any special glob characters. - - This does **not** mean that the pattern string can be used as a - literal filename, as it may contain magic glob characters that - are escaped. For example, the pattern `\\*` or `[*]` would not - be considered to have magic, as the matching portion parses to - the literal string `'*'` and would match a path named `'*'`, - not `'\\*'` or `'[*]'`. The `minimatch.unescape()` method may - be used to remove escape characters. - -All other methods are internal, and will be called as necessary. - -### minimatch(path, pattern, options) - -Main export. Tests a path against the pattern using the options. - -```javascript -var isJS = minimatch(file, '*.js', { matchBase: true }) -``` - -### minimatch.filter(pattern, options) - -Returns a function that tests its -supplied argument, suitable for use with `Array.filter`. Example: - -```javascript -var javascripts = fileList.filter(minimatch.filter('*.js', { matchBase: true })) -``` - -### minimatch.escape(pattern, options = {}) - -Escape all magic characters in a glob pattern, so that it will -only ever match literal strings - -If the `windowsPathsNoEscape` option is used, then characters are -escaped by wrapping in `[]`, because a magic character wrapped in -a character class can only be satisfied by that exact character. - -Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot -be escaped or unescaped. - -### minimatch.unescape(pattern, options = {}) - -Un-escape a glob string that may contain some escaped characters. - -If the `windowsPathsNoEscape` option is used, then square-brace -escapes are removed, but not backslash escapes. For example, it -will turn the string `'[*]'` into `*`, but it will not turn -`'\\*'` into `'*'`, because `\` is a path separator in -`windowsPathsNoEscape` mode. - -When `windowsPathsNoEscape` is not set, then both brace escapes -and backslash escapes are removed. - -Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot -be escaped or unescaped. - -### minimatch.match(list, pattern, options) - -Match against the list of -files, in the style of fnmatch or glob. If nothing is matched, and -options.nonull is set, then return a list containing the pattern itself. - -```javascript -var javascripts = minimatch.match(fileList, '*.js', { matchBase: true }) -``` - -### minimatch.makeRe(pattern, options) - -Make a regular expression object from the pattern. - -## Options - -All options are `false` by default. - -### debug - -Dump a ton of stuff to stderr. - -### nobrace - -Do not expand `{a,b}` and `{1..3}` brace sets. - -### noglobstar - -Disable `**` matching against multiple folder names. - -### dot - -Allow patterns to match filenames starting with a period, even if -the pattern does not explicitly have a period in that spot. - -Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot` -is set. - -### noext - -Disable "extglob" style patterns like `+(a|b)`. - -### nocase - -Perform a case-insensitive match. - -### nocaseMagicOnly - -When used with `{nocase: true}`, create regular expressions that -are case-insensitive, but leave string match portions untouched. -Has no effect when used without `{nocase: true}` - -Useful when some other form of case-insensitive matching is used, -or if the original string representation is useful in some other -way. - -### nonull - -When a match is not found by `minimatch.match`, return a list containing -the pattern itself if this option is set. When not set, an empty list -is returned if there are no matches. - -### magicalBraces - -This only affects the results of the `Minimatch.hasMagic` method. - -If the pattern contains brace expansions, such as `a{b,c}d`, but -no other magic characters, then the `Minimatch.hasMagic()` method -will return `false` by default. When this option set, it will -return `true` for brace expansion as well as other magic glob -characters. - -### matchBase - -If set, then patterns without slashes will be matched -against the basename of the path if it contains slashes. For example, -`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. - -### nocomment - -Suppress the behavior of treating `#` at the start of a pattern as a -comment. - -### nonegate - -Suppress the behavior of treating a leading `!` character as negation. - -### flipNegate - -Returns from negate expressions the same as if they were not negated. -(Ie, true on a hit, false on a miss.) - -### partial - -Compare a partial path to a pattern. As long as the parts of the path that -are present are not contradicted by the pattern, it will be treated as a -match. This is useful in applications where you're walking through a -folder structure, and don't yet have the full path, but want to ensure that -you do not walk down paths that can never be a match. - -For example, - -```js -minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d -minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d -minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a -``` - -### windowsPathsNoEscape - -Use `\\` as a path separator _only_, and _never_ as an escape -character. If set, all `\\` characters are replaced with `/` in -the pattern. Note that this makes it **impossible** to match -against paths containing literal glob pattern characters, but -allows matching with patterns constructed using `path.join()` and -`path.resolve()` on Windows platforms, mimicking the (buggy!) -behavior of earlier versions on Windows. Please use with -caution, and be mindful of [the caveat about Windows -paths](#windows). - -For legacy reasons, this is also set if -`options.allowWindowsEscape` is set to the exact value `false`. - -### windowsNoMagicRoot - -When a pattern starts with a UNC path or drive letter, and in -`nocase:true` mode, do not convert the root portions of the -pattern into a case-insensitive regular expression, and instead -leave them as strings. - -This is the default when the platform is `win32` and -`nocase:true` is set. - -### preserveMultipleSlashes - -By default, multiple `/` characters (other than the leading `//` -in a UNC path, see "UNC Paths" above) are treated as a single -`/`. - -That is, a pattern like `a///b` will match the file path `a/b`. - -Set `preserveMultipleSlashes: true` to suppress this behavior. - -### optimizationLevel - -A number indicating the level of optimization that should be done -to the pattern prior to parsing and using it for matches. - -Globstar parts `**` are always converted to `*` when `noglobstar` -is set, and multiple adjacent `**` parts are converted into a -single `**` (ie, `a/**/**/b` will be treated as `a/**/b`, as this -is equivalent in all cases). - -- `0` - Make no further changes. In this mode, `.` and `..` are - maintained in the pattern, meaning that they must also appear - in the same position in the test path string. Eg, a pattern - like `a/*/../c` will match the string `a/b/../c` but not the - string `a/c`. -- `1` - (default) Remove cases where a double-dot `..` follows a - pattern portion that is not `**`, `.`, `..`, or empty `''`. For - example, the pattern `./a/b/../*` is converted to `./a/*`, and - so it will match the path string `./a/c`, but not the path - string `./a/b/../c`. Dots and empty path portions in the - pattern are preserved. -- `2` (or higher) - Much more aggressive optimizations, suitable - for use with file-walking cases: - - - Remove cases where a double-dot `..` follows a pattern - portion that is not `**`, `.`, or empty `''`. Remove empty - and `.` portions of the pattern, where safe to do so (ie, - anywhere other than the last position, the first position, or - the second position in a pattern starting with `/`, as this - may indicate a UNC path on Windows). - - Convert patterns containing `
/**/../

/` into the - equivalent `

/{..,**}/

/`, where `

` is a - a pattern portion other than `.`, `..`, `**`, or empty - `''`. - - Dedupe patterns where a `**` portion is present in one and - omitted in another, and it is not the final path portion, and - they are otherwise equivalent. So `{a/**/b,a/b}` becomes - `a/**/b`, because `**` matches against an empty path portion. - - Dedupe patterns where a `*` portion is present in one, and a - non-dot pattern other than `**`, `.`, `..`, or `''` is in the - same position in the other. So `a/{*,x}/b` becomes `a/*/b`, - because `*` can match against `x`. - - While these optimizations improve the performance of - file-walking use cases such as [glob](http://npm.im/glob) (ie, - the reason this module exists), there are cases where it will - fail to match a literal string that would have been matched in - optimization level 1 or 0. - - Specifically, while the `Minimatch.match()` method will - optimize the file path string in the same ways, resulting in - the same matches, it will fail when tested with the regular - expression provided by `Minimatch.makeRe()`, unless the path - string is first processed with - `minimatch.levelTwoFileOptimize()` or similar. - -### platform - -When set to `win32`, this will trigger all windows-specific -behaviors (special handling for UNC paths, and treating `\` as -separators in file paths for comparison.) - -Defaults to the value of `process.platform`. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a -worthwhile goal, some discrepancies exist between minimatch and -other implementations. Some are intentional, and some are -unavoidable. - -If the pattern starts with a `!` character, then it is negated. Set the -`nonegate` flag to suppress this behavior, and treat leading `!` -characters normally. This is perhaps relevant if you wish to start the -pattern with a negative extglob pattern like `!(a|B)`. Multiple `!` -characters at the start of a pattern will negate the pattern multiple -times. - -If a pattern starts with `#`, then it is treated as a comment, and -will not match anything. Use `\#` to match a literal `#` at the -start of a line, or set the `nocomment` flag to suppress this behavior. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.1, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then minimatch.match returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. - -Negated extglob patterns are handled as closely as possible to -Bash semantics, but there are some cases with negative extglobs -which are exceedingly difficult to express in a JavaScript -regular expression. In particular the negated pattern -`!(*|)*` will in bash match anything that does -not start with ``. However, -`!(*)*` _will_ match paths starting with -``, because the empty string can match against -the negated portion. In this library, `!(*|)*` -will _not_ match any pattern starting with ``, due to a -difference in precisely which patterns are considered "greedy" in -Regular Expressions vs bash path expansion. This may be fixable, -but not without incurring some complexity and performance costs, -and the trade-off seems to not be worth pursuing. - -Note that `fnmatch(3)` in libc is an extremely naive string comparison -matcher, which does not do anything special for slashes. This library is -designed to be used in glob searching and file walkers, and so it does do -special things with `/`. Thus, `foo*` will not match `foo/bar` in this -library, even though it would in `fnmatch(3)`. diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts deleted file mode 100644 index 8e318b23..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const assertValidPattern: (pattern: any) => void; -//# sourceMappingURL=assert-valid-pattern.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map deleted file mode 100644 index c61c0310..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert-valid-pattern.d.ts","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAUlD,CAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js deleted file mode 100644 index 5fc86bbd..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assertValidPattern = void 0; -const MAX_PATTERN_LENGTH = 1024 * 64; -const assertValidPattern = (pattern) => { - if (typeof pattern !== 'string') { - throw new TypeError('invalid pattern'); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError('pattern is too long'); - } -}; -exports.assertValidPattern = assertValidPattern; -//# sourceMappingURL=assert-valid-pattern.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map deleted file mode 100644 index d43215c6..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert-valid-pattern.js","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAA;AAC7B,MAAM,kBAAkB,GAA2B,CACxD,OAAY,EACe,EAAE;IAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAA;KACvC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,kBAAkB,EAAE;QACvC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAA;KAC3C;AACH,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B","sourcesContent":["const MAX_PATTERN_LENGTH = 1024 * 64\nexport const assertValidPattern: (pattern: any) => void = (\n pattern: any\n): asserts pattern is string => {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern')\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long')\n }\n}\n"]} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts deleted file mode 100644 index b8c1e544..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { MinimatchOptions, MMRegExp } from './index.js'; -export type ExtglobType = '!' | '?' | '+' | '*' | '@'; -export declare class AST { - #private; - type: ExtglobType | null; - constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions); - get hasMagic(): boolean | undefined; - toString(): string; - push(...parts: (string | AST)[]): void; - toJSON(): any[]; - isStart(): boolean; - isEnd(): boolean; - copyIn(part: AST | string): void; - clone(parent: AST): AST; - static fromGlob(pattern: string, options?: MinimatchOptions): AST; - toMMPattern(): MMRegExp | string; - get options(): MinimatchOptions; - toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean]; -} -//# sourceMappingURL=ast.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts.map deleted file mode 100644 index 9e7bfb9a..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAwCvD,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAkCrD,qBAAa,GAAG;;IACd,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;gBAiBtB,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,CAAC,EAAE,GAAG,EACZ,OAAO,GAAE,gBAAqB;IAahC,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAUlC;IAGD,QAAQ,IAAI,MAAM;IA+ClB,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE;IAY/B,MAAM;IAgBN,OAAO,IAAI,OAAO;IAgBlB,KAAK,IAAI,OAAO;IAYhB,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM;IAKzB,KAAK,CAAC,MAAM,EAAE,GAAG;IAsIjB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB;IAQ/D,WAAW,IAAI,QAAQ,GAAG,MAAM;IA2BhC,IAAI,OAAO,qBAEV;IAuED,cAAc,CACZ,QAAQ,CAAC,EAAE,OAAO,GACjB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;CAiMjE"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js deleted file mode 100644 index 7b210962..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js +++ /dev/null @@ -1,592 +0,0 @@ -"use strict"; -// parse a single path portion -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AST = void 0; -const brace_expressions_js_1 = require("./brace-expressions.js"); -const unescape_js_1 = require("./unescape.js"); -const types = new Set(['!', '?', '+', '*', '@']); -const isExtglobType = (c) => types.has(c); -// Patterns that get prepended to bind to the start of either the -// entire string, or just a single path portion, to prevent dots -// and/or traversal patterns, when needed. -// Exts don't need the ^ or / bit, because the root binds that already. -const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))'; -const startNoDot = '(?!\\.)'; -// characters that indicate a start of pattern needs the "no dots" bit, -// because a dot *might* be matched. ( is not in the list, because in -// the case of a child extglob, it will handle the prevention itself. -const addPatternStart = new Set(['[', '.']); -// cases where traversal is A-OK, no dot prevention needed -const justDots = new Set(['..', '.']); -const reSpecials = new Set('().*{}+?[]^$\\!'); -const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -// any single thing other than / -const qmark = '[^/]'; -// * => any number of characters -const star = qmark + '*?'; -// use + when we need to ensure that *something* matches, because the * is -// the only thing in the path portion. -const starNoEmpty = qmark + '+?'; -// remove the \ chars that we added if we end up doing a nonmagic compare -// const deslash = (s: string) => s.replace(/\\(.)/g, '$1') -class AST { - type; - #root; - #hasMagic; - #uflag = false; - #parts = []; - #parent; - #parentIndex; - #negs; - #filledNegs = false; - #options; - #toString; - // set to true if it's an extglob with no children - // (which really means one child of '') - #emptyExt = false; - constructor(type, parent, options = {}) { - this.type = type; - // extglobs are inherently magical - if (type) - this.#hasMagic = true; - this.#parent = parent; - this.#root = this.#parent ? this.#parent.#root : this; - this.#options = this.#root === this ? options : this.#root.#options; - this.#negs = this.#root === this ? [] : this.#root.#negs; - if (type === '!' && !this.#root.#filledNegs) - this.#negs.push(this); - this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0; - } - get hasMagic() { - /* c8 ignore start */ - if (this.#hasMagic !== undefined) - return this.#hasMagic; - /* c8 ignore stop */ - for (const p of this.#parts) { - if (typeof p === 'string') - continue; - if (p.type || p.hasMagic) - return (this.#hasMagic = true); - } - // note: will be undefined until we generate the regexp src and find out - return this.#hasMagic; - } - // reconstructs the pattern - toString() { - if (this.#toString !== undefined) - return this.#toString; - if (!this.type) { - return (this.#toString = this.#parts.map(p => String(p)).join('')); - } - else { - return (this.#toString = - this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')'); - } - } - #fillNegs() { - /* c8 ignore start */ - if (this !== this.#root) - throw new Error('should only call on root'); - if (this.#filledNegs) - return this; - /* c8 ignore stop */ - // call toString() once to fill this out - this.toString(); - this.#filledNegs = true; - let n; - while ((n = this.#negs.pop())) { - if (n.type !== '!') - continue; - // walk up the tree, appending everthing that comes AFTER parentIndex - let p = n; - let pp = p.#parent; - while (pp) { - for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) { - for (const part of n.#parts) { - /* c8 ignore start */ - if (typeof part === 'string') { - throw new Error('string part in extglob AST??'); - } - /* c8 ignore stop */ - part.copyIn(pp.#parts[i]); - } - } - p = pp; - pp = p.#parent; - } - } - return this; - } - push(...parts) { - for (const p of parts) { - if (p === '') - continue; - /* c8 ignore start */ - if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) { - throw new Error('invalid part: ' + p); - } - /* c8 ignore stop */ - this.#parts.push(p); - } - } - toJSON() { - const ret = this.type === null - ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON())) - : [this.type, ...this.#parts.map(p => p.toJSON())]; - if (this.isStart() && !this.type) - ret.unshift([]); - if (this.isEnd() && - (this === this.#root || - (this.#root.#filledNegs && this.#parent?.type === '!'))) { - ret.push({}); - } - return ret; - } - isStart() { - if (this.#root === this) - return true; - // if (this.type) return !!this.#parent?.isStart() - if (!this.#parent?.isStart()) - return false; - if (this.#parentIndex === 0) - return true; - // if everything AHEAD of this is a negation, then it's still the "start" - const p = this.#parent; - for (let i = 0; i < this.#parentIndex; i++) { - const pp = p.#parts[i]; - if (!(pp instanceof AST && pp.type === '!')) { - return false; - } - } - return true; - } - isEnd() { - if (this.#root === this) - return true; - if (this.#parent?.type === '!') - return true; - if (!this.#parent?.isEnd()) - return false; - if (!this.type) - return this.#parent?.isEnd(); - // if not root, it'll always have a parent - /* c8 ignore start */ - const pl = this.#parent ? this.#parent.#parts.length : 0; - /* c8 ignore stop */ - return this.#parentIndex === pl - 1; - } - copyIn(part) { - if (typeof part === 'string') - this.push(part); - else - this.push(part.clone(this)); - } - clone(parent) { - const c = new AST(this.type, parent); - for (const p of this.#parts) { - c.copyIn(p); - } - return c; - } - static #parseAST(str, ast, pos, opt) { - let escaping = false; - let inBrace = false; - let braceStart = -1; - let braceNeg = false; - if (ast.type === null) { - // outside of a extglob, append until we find a start - let i = pos; - let acc = ''; - while (i < str.length) { - const c = str.charAt(i++); - // still accumulate escapes at this point, but we do ignore - // starts that are escaped - if (escaping || c === '\\') { - escaping = !escaping; - acc += c; - continue; - } - if (inBrace) { - if (i === braceStart + 1) { - if (c === '^' || c === '!') { - braceNeg = true; - } - } - else if (c === ']' && !(i === braceStart + 2 && braceNeg)) { - inBrace = false; - } - acc += c; - continue; - } - else if (c === '[') { - inBrace = true; - braceStart = i; - braceNeg = false; - acc += c; - continue; - } - if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') { - ast.push(acc); - acc = ''; - const ext = new AST(c, ast); - i = AST.#parseAST(str, ext, i, opt); - ast.push(ext); - continue; - } - acc += c; - } - ast.push(acc); - return i; - } - // some kind of extglob, pos is at the ( - // find the next | or ) - let i = pos + 1; - let part = new AST(null, ast); - const parts = []; - let acc = ''; - while (i < str.length) { - const c = str.charAt(i++); - // still accumulate escapes at this point, but we do ignore - // starts that are escaped - if (escaping || c === '\\') { - escaping = !escaping; - acc += c; - continue; - } - if (inBrace) { - if (i === braceStart + 1) { - if (c === '^' || c === '!') { - braceNeg = true; - } - } - else if (c === ']' && !(i === braceStart + 2 && braceNeg)) { - inBrace = false; - } - acc += c; - continue; - } - else if (c === '[') { - inBrace = true; - braceStart = i; - braceNeg = false; - acc += c; - continue; - } - if (isExtglobType(c) && str.charAt(i) === '(') { - part.push(acc); - acc = ''; - const ext = new AST(c, part); - part.push(ext); - i = AST.#parseAST(str, ext, i, opt); - continue; - } - if (c === '|') { - part.push(acc); - acc = ''; - parts.push(part); - part = new AST(null, ast); - continue; - } - if (c === ')') { - if (acc === '' && ast.#parts.length === 0) { - ast.#emptyExt = true; - } - part.push(acc); - acc = ''; - ast.push(...parts, part); - return i; - } - acc += c; - } - // unfinished extglob - // if we got here, it was a malformed extglob! not an extglob, but - // maybe something else in there. - ast.type = null; - ast.#hasMagic = undefined; - ast.#parts = [str.substring(pos - 1)]; - return i; - } - static fromGlob(pattern, options = {}) { - const ast = new AST(null, undefined, options); - AST.#parseAST(pattern, ast, 0, options); - return ast; - } - // returns the regular expression if there's magic, or the unescaped - // string if not. - toMMPattern() { - // should only be called on root - /* c8 ignore start */ - if (this !== this.#root) - return this.#root.toMMPattern(); - /* c8 ignore stop */ - const glob = this.toString(); - const [re, body, hasMagic, uflag] = this.toRegExpSource(); - // if we're in nocase mode, and not nocaseMagicOnly, then we do - // still need a regular expression if we have to case-insensitively - // match capital/lowercase characters. - const anyMagic = hasMagic || - this.#hasMagic || - (this.#options.nocase && - !this.#options.nocaseMagicOnly && - glob.toUpperCase() !== glob.toLowerCase()); - if (!anyMagic) { - return body; - } - const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : ''); - return Object.assign(new RegExp(`^${re}$`, flags), { - _src: re, - _glob: glob, - }); - } - get options() { - return this.#options; - } - // returns the string match, the regexp source, whether there's magic - // in the regexp (so a regular expression is required) and whether or - // not the uflag is needed for the regular expression (for posix classes) - // TODO: instead of injecting the start/end at this point, just return - // the BODY of the regexp, along with the start/end portions suitable - // for binding the start/end in either a joined full-path makeRe context - // (where we bind to (^|/), or a standalone matchPart context (where - // we bind to ^, and not /). Otherwise slashes get duped! - // - // In part-matching mode, the start is: - // - if not isStart: nothing - // - if traversal possible, but not allowed: ^(?!\.\.?$) - // - if dots allowed or not possible: ^ - // - if dots possible and not allowed: ^(?!\.) - // end is: - // - if not isEnd(): nothing - // - else: $ - // - // In full-path matching mode, we put the slash at the START of the - // pattern, so start is: - // - if first pattern: same as part-matching mode - // - if not isStart(): nothing - // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/)) - // - if dots allowed or not possible: / - // - if dots possible and not allowed: /(?!\.) - // end is: - // - if last pattern, same as part-matching mode - // - else nothing - // - // Always put the (?:$|/) on negated tails, though, because that has to be - // there to bind the end of the negated pattern portion, and it's easier to - // just stick it in now rather than try to inject it later in the middle of - // the pattern. - // - // We can just always return the same end, and leave it up to the caller - // to know whether it's going to be used joined or in parts. - // And, if the start is adjusted slightly, can do the same there: - // - if not isStart: nothing - // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$) - // - if dots allowed or not possible: (?:/|^) - // - if dots possible and not allowed: (?:/|^)(?!\.) - // - // But it's better to have a simpler binding without a conditional, for - // performance, so probably better to return both start options. - // - // Then the caller just ignores the end if it's not the first pattern, - // and the start always gets applied. - // - // But that's always going to be $ if it's the ending pattern, or nothing, - // so the caller can just attach $ at the end of the pattern when building. - // - // So the todo is: - // - better detect what kind of start is needed - // - return both flavors of starting pattern - // - attach $ at the end of the pattern when creating the actual RegExp - // - // Ah, but wait, no, that all only applies to the root when the first pattern - // is not an extglob. If the first pattern IS an extglob, then we need all - // that dot prevention biz to live in the extglob portions, because eg - // +(*|.x*) can match .xy but not .yx. - // - // So, return the two flavors if it's #root and the first child is not an - // AST, otherwise leave it to the child AST to handle it, and there, - // use the (?:^|/) style of start binding. - // - // Even simplified further: - // - Since the start for a join is eg /(?!\.) and the start for a part - // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root - // or start or whatever) and prepend ^ or / at the Regexp construction. - toRegExpSource(allowDot) { - const dot = allowDot ?? !!this.#options.dot; - if (this.#root === this) - this.#fillNegs(); - if (!this.type) { - const noEmpty = this.isStart() && this.isEnd(); - const src = this.#parts - .map(p => { - const [re, _, hasMagic, uflag] = typeof p === 'string' - ? AST.#parseGlob(p, this.#hasMagic, noEmpty) - : p.toRegExpSource(allowDot); - this.#hasMagic = this.#hasMagic || hasMagic; - this.#uflag = this.#uflag || uflag; - return re; - }) - .join(''); - let start = ''; - if (this.isStart()) { - if (typeof this.#parts[0] === 'string') { - // this is the string that will match the start of the pattern, - // so we need to protect against dots and such. - // '.' and '..' cannot match unless the pattern is that exactly, - // even if it starts with . or dot:true is set. - const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]); - if (!dotTravAllowed) { - const aps = addPatternStart; - // check if we have a possibility of matching . or .., - // and prevent that. - const needNoTrav = - // dots are allowed, and the pattern starts with [ or . - (dot && aps.has(src.charAt(0))) || - // the pattern starts with \., and then [ or . - (src.startsWith('\\.') && aps.has(src.charAt(2))) || - // the pattern starts with \.\., and then [ or . - (src.startsWith('\\.\\.') && aps.has(src.charAt(4))); - // no need to prevent dots if it can't match a dot, or if a - // sub-pattern will be preventing it anyway. - const needNoDot = !dot && !allowDot && aps.has(src.charAt(0)); - start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ''; - } - } - } - // append the "end of path portion" pattern to negation tails - let end = ''; - if (this.isEnd() && - this.#root.#filledNegs && - this.#parent?.type === '!') { - end = '(?:$|\\/)'; - } - const final = start + src + end; - return [ - final, - (0, unescape_js_1.unescape)(src), - (this.#hasMagic = !!this.#hasMagic), - this.#uflag, - ]; - } - // We need to calculate the body *twice* if it's a repeat pattern - // at the start, once in nodot mode, then again in dot mode, so a - // pattern like *(?) can match 'x.y' - const repeated = this.type === '*' || this.type === '+'; - // some kind of extglob - const start = this.type === '!' ? '(?:(?!(?:' : '(?:'; - let body = this.#partsToRegExp(dot); - if (this.isStart() && this.isEnd() && !body && this.type !== '!') { - // invalid extglob, has to at least be *something* present, if it's - // the entire path portion. - const s = this.toString(); - this.#parts = [s]; - this.type = null; - this.#hasMagic = undefined; - return [s, (0, unescape_js_1.unescape)(this.toString()), false, false]; - } - // XXX abstract out this map method - let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot - ? '' - : this.#partsToRegExp(true); - if (bodyDotAllowed === body) { - bodyDotAllowed = ''; - } - if (bodyDotAllowed) { - body = `(?:${body})(?:${bodyDotAllowed})*?`; - } - // an empty !() is exactly equivalent to a starNoEmpty - let final = ''; - if (this.type === '!' && this.#emptyExt) { - final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty; - } - else { - const close = this.type === '!' - ? // !() must match something,but !(x) can match '' - '))' + - (this.isStart() && !dot && !allowDot ? startNoDot : '') + - star + - ')' - : this.type === '@' - ? ')' - : this.type === '?' - ? ')?' - : this.type === '+' && bodyDotAllowed - ? ')' - : this.type === '*' && bodyDotAllowed - ? `)?` - : `)${this.type}`; - final = start + body + close; - } - return [ - final, - (0, unescape_js_1.unescape)(body), - (this.#hasMagic = !!this.#hasMagic), - this.#uflag, - ]; - } - #partsToRegExp(dot) { - return this.#parts - .map(p => { - // extglob ASTs should only contain parent ASTs - /* c8 ignore start */ - if (typeof p === 'string') { - throw new Error('string type in extglob ast??'); - } - /* c8 ignore stop */ - // can ignore hasMagic, because extglobs are already always magic - const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot); - this.#uflag = this.#uflag || uflag; - return re; - }) - .filter(p => !(this.isStart() && this.isEnd()) || !!p) - .join('|'); - } - static #parseGlob(glob, hasMagic, noEmpty = false) { - let escaping = false; - let re = ''; - let uflag = false; - for (let i = 0; i < glob.length; i++) { - const c = glob.charAt(i); - if (escaping) { - escaping = false; - re += (reSpecials.has(c) ? '\\' : '') + c; - continue; - } - if (c === '\\') { - if (i === glob.length - 1) { - re += '\\\\'; - } - else { - escaping = true; - } - continue; - } - if (c === '[') { - const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i); - if (consumed) { - re += src; - uflag = uflag || needUflag; - i += consumed - 1; - hasMagic = hasMagic || magic; - continue; - } - } - if (c === '*') { - if (noEmpty && glob === '*') - re += starNoEmpty; - else - re += star; - hasMagic = true; - continue; - } - if (c === '?') { - re += qmark; - hasMagic = true; - continue; - } - re += regExpEscape(c); - } - return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag]; - } -} -exports.AST = AST; -//# sourceMappingURL=ast.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map deleted file mode 100644 index 8383e433..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":";AAAA,8BAA8B;;;AAE9B,iEAAmD;AAEnD,+CAAwC;AAwCxC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,C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iBAChB;gBACD,SAAQ;aACT;YACD,IAAI,CAAC,KAAK,GAAG,EAAE;gBACb,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,IAAA,iCAAU,EAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBAC7D,IAAI,QAAQ,EAAE;oBACZ,EAAE,IAAI,GAAG,CAAA;oBACT,KAAK,GAAG,KAAK,IAAI,SAAS,CAAA;oBAC1B,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAA;oBACjB,QAAQ,GAAG,QAAQ,IAAI,KAAK,CAAA;oBAC5B,SAAQ;iBACT;aACF;YACD,IAAI,CAAC,KAAK,GAAG,EAAE;gBACb,IAAI,OAAO,IAAI,IAAI,KAAK,GAAG;oBAAE,EAAE,IAAI,WAAW,CAAA;;oBACzC,EAAE,IAAI,IAAI,CAAA;gBACf,QAAQ,GAAG,IAAI,CAAA;gBACf,SAAQ;aACT;YACD,IAAI,CAAC,KAAK,GAAG,EAAE;gBACb,EAAE,IAAI,KAAK,CAAA;gBACX,QAAQ,GAAG,IAAI,CAAA;gBACf,SAAQ;aACT;YACD,EAAE,IAAI,YAAY,CAAC,CAAC,CAAC,CAAA;SACtB;QACD,OAAO,CAAC,EAAE,EAAE,IAAA,sBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF;AA/kBD,kBA+kBC","sourcesContent":["// parse a single path portion\n\nimport { parseClass } from './brace-expressions.js'\nimport { MinimatchOptions, MMRegExp } from './index.js'\nimport { unescape } from './unescape.js'\n\n// classes [] are handled by the parseClass method\n// for positive extglobs, we sub-parse the contents, and combine,\n// with the appropriate regexp close.\n// for negative extglobs, we sub-parse the contents, but then\n// have to include the rest of the pattern, then the parent, etc.,\n// as the thing that cannot be because RegExp negative lookaheads\n// are different from globs.\n//\n// So for example:\n// a@(i|w!(x|y)z|j)b => ^a(i|w((!?(x|y)zb).*)z|j)b$\n// 1 2 3 4 5 6 1 2 3 46 5 6\n//\n// Assembling the extglob requires not just the negated patterns themselves,\n// but also anything following the negative patterns up to the boundary\n// of the current pattern, plus anything following in the parent pattern.\n//\n//\n// So, first, we parse the string into an AST of extglobs, without turning\n// anything into regexps yet.\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y']}, 'z'], ['j']]}, 'b']\n//\n// Then, for all the negative extglobs, we append whatever comes after in\n// each parent as their tail\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y'], 'z', 'b'}, 'z'], ['j']]}, 'b']\n//\n// Lastly, we turn each of these pieces into a regexp, and join\n//\n// v----- .* because there's more following,\n// v v otherwise, .+ because it must be\n// v v *something* there.\n// ['^a', {@ ['i', 'w(?:(!?(?:x|y).*zb$).*)z', 'j' ]}, 'b$']\n// copy what follows into here--^^^^^\n// ['^a', '(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)', 'b$']\n// ['^a(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)b$']\n\nexport type ExtglobType = '!' | '?' | '+' | '*' | '@'\nconst types = new Set(['!', '?', '+', '*', '@'])\nconst isExtglobType = (c: string): c is ExtglobType =>\n types.has(c as ExtglobType)\n\n// Patterns that get prepended to bind to the start of either the\n// entire string, or just a single path portion, to prevent dots\n// and/or traversal patterns, when needed.\n// Exts don't need the ^ or / bit, because the root binds that already.\nconst startNoTraversal = '(?!(?:^|/)\\\\.\\\\.?(?:$|/))'\nconst startNoDot = '(?!\\\\.)'\n\n// characters that indicate a start of pattern needs the \"no dots\" bit,\n// because a dot *might* be matched. ( is not in the list, because in\n// the case of a child extglob, it will handle the prevention itself.\nconst addPatternStart = new Set(['[', '.'])\n// cases where traversal is A-OK, no dot prevention needed\nconst justDots = new Set(['..', '.'])\nconst reSpecials = new Set('().*{}+?[]^$\\\\!')\nconst regExpEscape = (s: string) =>\n s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// any single thing other than /\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n// use + when we need to ensure that *something* matches, because the * is\n// the only thing in the path portion.\nconst starNoEmpty = qmark + '+?'\n\n// remove the \\ chars that we added if we end up doing a nonmagic compare\n// const deslash = (s: string) => s.replace(/\\\\(.)/g, '$1')\n\nexport class AST {\n type: ExtglobType | null\n readonly #root: AST\n\n #hasMagic?: boolean\n #uflag: boolean = false\n #parts: (string | AST)[] = []\n readonly #parent?: AST\n readonly #parentIndex: number\n #negs: AST[]\n #filledNegs: boolean = false\n #options: MinimatchOptions\n #toString?: string\n // set to true if it's an extglob with no children\n // (which really means one child of '')\n #emptyExt: boolean = false\n\n constructor(\n type: ExtglobType | null,\n parent?: AST,\n options: MinimatchOptions = {}\n ) {\n this.type = type\n // extglobs are inherently magical\n if (type) this.#hasMagic = true\n this.#parent = parent\n this.#root = this.#parent ? this.#parent.#root : this\n this.#options = this.#root === this ? options : this.#root.#options\n this.#negs = this.#root === this ? [] : this.#root.#negs\n if (type === '!' && !this.#root.#filledNegs) this.#negs.push(this)\n this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0\n }\n\n get hasMagic(): boolean | undefined {\n /* c8 ignore start */\n if (this.#hasMagic !== undefined) return this.#hasMagic\n /* c8 ignore stop */\n for (const p of this.#parts) {\n if (typeof p === 'string') continue\n if (p.type || p.hasMagic) return (this.#hasMagic = true)\n }\n // note: will be undefined until we generate the regexp src and find out\n return this.#hasMagic\n }\n\n // reconstructs the pattern\n toString(): string {\n if (this.#toString !== undefined) return this.#toString\n if (!this.type) {\n return (this.#toString = this.#parts.map(p => String(p)).join(''))\n } else {\n return (this.#toString =\n this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')')\n }\n }\n\n #fillNegs() {\n /* c8 ignore start */\n if (this !== this.#root) throw new Error('should only call on root')\n if (this.#filledNegs) return this\n /* c8 ignore stop */\n\n // call toString() once to fill this out\n this.toString()\n this.#filledNegs = true\n let n: AST | undefined\n while ((n = this.#negs.pop())) {\n if (n.type !== '!') continue\n // walk up the tree, appending everthing that comes AFTER parentIndex\n let p: AST | undefined = n\n let pp = p.#parent\n while (pp) {\n for (\n let i = p.#parentIndex + 1;\n !pp.type && i < pp.#parts.length;\n i++\n ) {\n for (const part of n.#parts) {\n /* c8 ignore start */\n if (typeof part === 'string') {\n throw new Error('string part in extglob AST??')\n }\n /* c8 ignore stop */\n part.copyIn(pp.#parts[i])\n }\n }\n p = pp\n pp = p.#parent\n }\n }\n return this\n }\n\n push(...parts: (string | AST)[]) {\n for (const p of parts) {\n if (p === '') continue\n /* c8 ignore start */\n if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {\n throw new Error('invalid part: ' + p)\n }\n /* c8 ignore stop */\n this.#parts.push(p)\n }\n }\n\n toJSON() {\n const ret: any[] =\n this.type === null\n ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))\n : [this.type, ...this.#parts.map(p => (p as AST).toJSON())]\n if (this.isStart() && !this.type) ret.unshift([])\n if (\n this.isEnd() &&\n (this === this.#root ||\n (this.#root.#filledNegs && this.#parent?.type === '!'))\n ) {\n ret.push({})\n }\n return ret\n }\n\n isStart(): boolean {\n if (this.#root === this) return true\n // if (this.type) return !!this.#parent?.isStart()\n if (!this.#parent?.isStart()) return false\n if (this.#parentIndex === 0) return true\n // if everything AHEAD of this is a negation, then it's still the \"start\"\n const p = this.#parent\n for (let i = 0; i < this.#parentIndex; i++) {\n const pp = p.#parts[i]\n if (!(pp instanceof AST && pp.type === '!')) {\n return false\n }\n }\n return true\n }\n\n isEnd(): boolean {\n if (this.#root === this) return true\n if (this.#parent?.type === '!') return true\n if (!this.#parent?.isEnd()) return false\n if (!this.type) return this.#parent?.isEnd()\n // if not root, it'll always have a parent\n /* c8 ignore start */\n const pl = this.#parent ? this.#parent.#parts.length : 0\n /* c8 ignore stop */\n return this.#parentIndex === pl - 1\n }\n\n copyIn(part: AST | string) {\n if (typeof part === 'string') this.push(part)\n else this.push(part.clone(this))\n }\n\n clone(parent: AST) {\n const c = new AST(this.type, parent)\n for (const p of this.#parts) {\n c.copyIn(p)\n }\n return c\n }\n\n static #parseAST(\n str: string,\n ast: AST,\n pos: number,\n opt: MinimatchOptions\n ): number {\n let escaping = false\n let inBrace = false\n let braceStart = -1\n let braceNeg = false\n if (ast.type === null) {\n // outside of a extglob, append until we find a start\n let i = pos\n let acc = ''\n while (i < str.length) {\n const c = str.charAt(i++)\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping\n acc += c\n continue\n }\n\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true\n }\n } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false\n }\n acc += c\n continue\n } else if (c === '[') {\n inBrace = true\n braceStart = i\n braceNeg = false\n acc += c\n continue\n }\n\n if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {\n ast.push(acc)\n acc = ''\n const ext = new AST(c, ast)\n i = AST.#parseAST(str, ext, i, opt)\n ast.push(ext)\n continue\n }\n acc += c\n }\n ast.push(acc)\n return i\n }\n\n // some kind of extglob, pos is at the (\n // find the next | or )\n let i = pos + 1\n let part = new AST(null, ast)\n const parts: AST[] = []\n let acc = ''\n while (i < str.length) {\n const c = str.charAt(i++)\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping\n acc += c\n continue\n }\n\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true\n }\n } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false\n }\n acc += c\n continue\n } else if (c === '[') {\n inBrace = true\n braceStart = i\n braceNeg = false\n acc += c\n continue\n }\n\n if (isExtglobType(c) && str.charAt(i) === '(') {\n part.push(acc)\n acc = ''\n const ext = new AST(c, part)\n part.push(ext)\n i = AST.#parseAST(str, ext, i, opt)\n continue\n }\n if (c === '|') {\n part.push(acc)\n acc = ''\n parts.push(part)\n part = new AST(null, ast)\n continue\n }\n if (c === ')') {\n if (acc === '' && ast.#parts.length === 0) {\n ast.#emptyExt = true\n }\n part.push(acc)\n acc = ''\n ast.push(...parts, part)\n return i\n }\n acc += c\n }\n\n // unfinished extglob\n // if we got here, it was a malformed extglob! not an extglob, but\n // maybe something else in there.\n ast.type = null\n ast.#hasMagic = undefined\n ast.#parts = [str.substring(pos - 1)]\n return i\n }\n\n static fromGlob(pattern: string, options: MinimatchOptions = {}) {\n const ast = new AST(null, undefined, options)\n AST.#parseAST(pattern, ast, 0, options)\n return ast\n }\n\n // returns the regular expression if there's magic, or the unescaped\n // string if not.\n toMMPattern(): MMRegExp | string {\n // should only be called on root\n /* c8 ignore start */\n if (this !== this.#root) return this.#root.toMMPattern()\n /* c8 ignore stop */\n const glob = this.toString()\n const [re, body, hasMagic, uflag] = this.toRegExpSource()\n // if we're in nocase mode, and not nocaseMagicOnly, then we do\n // still need a regular expression if we have to case-insensitively\n // match capital/lowercase characters.\n const anyMagic =\n hasMagic ||\n this.#hasMagic ||\n (this.#options.nocase &&\n !this.#options.nocaseMagicOnly &&\n glob.toUpperCase() !== glob.toLowerCase())\n if (!anyMagic) {\n return body\n }\n\n const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '')\n return Object.assign(new RegExp(`^${re}$`, flags), {\n _src: re,\n _glob: glob,\n })\n }\n\n get options() {\n return this.#options\n }\n\n // returns the string match, the regexp source, whether there's magic\n // in the regexp (so a regular expression is required) and whether or\n // not the uflag is needed for the regular expression (for posix classes)\n // TODO: instead of injecting the start/end at this point, just return\n // the BODY of the regexp, along with the start/end portions suitable\n // for binding the start/end in either a joined full-path makeRe context\n // (where we bind to (^|/), or a standalone matchPart context (where\n // we bind to ^, and not /). Otherwise slashes get duped!\n //\n // In part-matching mode, the start is:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: ^(?!\\.\\.?$)\n // - if dots allowed or not possible: ^\n // - if dots possible and not allowed: ^(?!\\.)\n // end is:\n // - if not isEnd(): nothing\n // - else: $\n //\n // In full-path matching mode, we put the slash at the START of the\n // pattern, so start is:\n // - if first pattern: same as part-matching mode\n // - if not isStart(): nothing\n // - if traversal possible, but not allowed: /(?!\\.\\.?(?:$|/))\n // - if dots allowed or not possible: /\n // - if dots possible and not allowed: /(?!\\.)\n // end is:\n // - if last pattern, same as part-matching mode\n // - else nothing\n //\n // Always put the (?:$|/) on negated tails, though, because that has to be\n // there to bind the end of the negated pattern portion, and it's easier to\n // just stick it in now rather than try to inject it later in the middle of\n // the pattern.\n //\n // We can just always return the same end, and leave it up to the caller\n // to know whether it's going to be used joined or in parts.\n // And, if the start is adjusted slightly, can do the same there:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: (?:/|^)(?!\\.\\.?$)\n // - if dots allowed or not possible: (?:/|^)\n // - if dots possible and not allowed: (?:/|^)(?!\\.)\n //\n // But it's better to have a simpler binding without a conditional, for\n // performance, so probably better to return both start options.\n //\n // Then the caller just ignores the end if it's not the first pattern,\n // and the start always gets applied.\n //\n // But that's always going to be $ if it's the ending pattern, or nothing,\n // so the caller can just attach $ at the end of the pattern when building.\n //\n // So the todo is:\n // - better detect what kind of start is needed\n // - return both flavors of starting pattern\n // - attach $ at the end of the pattern when creating the actual RegExp\n //\n // Ah, but wait, no, that all only applies to the root when the first pattern\n // is not an extglob. If the first pattern IS an extglob, then we need all\n // that dot prevention biz to live in the extglob portions, because eg\n // +(*|.x*) can match .xy but not .yx.\n //\n // So, return the two flavors if it's #root and the first child is not an\n // AST, otherwise leave it to the child AST to handle it, and there,\n // use the (?:^|/) style of start binding.\n //\n // Even simplified further:\n // - Since the start for a join is eg /(?!\\.) and the start for a part\n // is ^(?!\\.), we can just prepend (?!\\.) to the pattern (either root\n // or start or whatever) and prepend ^ or / at the Regexp construction.\n toRegExpSource(\n allowDot?: boolean\n ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n const dot = allowDot ?? !!this.#options.dot\n if (this.#root === this) this.#fillNegs()\n if (!this.type) {\n const noEmpty = this.isStart() && this.isEnd()\n const src = this.#parts\n .map(p => {\n const [re, _, hasMagic, uflag] =\n typeof p === 'string'\n ? AST.#parseGlob(p, this.#hasMagic, noEmpty)\n : p.toRegExpSource(allowDot)\n this.#hasMagic = this.#hasMagic || hasMagic\n this.#uflag = this.#uflag || uflag\n return re\n })\n .join('')\n\n let start = ''\n if (this.isStart()) {\n if (typeof this.#parts[0] === 'string') {\n // this is the string that will match the start of the pattern,\n // so we need to protect against dots and such.\n\n // '.' and '..' cannot match unless the pattern is that exactly,\n // even if it starts with . or dot:true is set.\n const dotTravAllowed =\n this.#parts.length === 1 && justDots.has(this.#parts[0])\n if (!dotTravAllowed) {\n const aps = addPatternStart\n // check if we have a possibility of matching . or ..,\n // and prevent that.\n const needNoTrav =\n // dots are allowed, and the pattern starts with [ or .\n (dot && aps.has(src.charAt(0))) ||\n // the pattern starts with \\., and then [ or .\n (src.startsWith('\\\\.') && aps.has(src.charAt(2))) ||\n // the pattern starts with \\.\\., and then [ or .\n (src.startsWith('\\\\.\\\\.') && aps.has(src.charAt(4)))\n // no need to prevent dots if it can't match a dot, or if a\n // sub-pattern will be preventing it anyway.\n const needNoDot = !dot && !allowDot && aps.has(src.charAt(0))\n\n start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ''\n }\n }\n }\n\n // append the \"end of path portion\" pattern to negation tails\n let end = ''\n if (\n this.isEnd() &&\n this.#root.#filledNegs &&\n this.#parent?.type === '!'\n ) {\n end = '(?:$|\\\\/)'\n }\n const final = start + src + end\n return [\n final,\n unescape(src),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ]\n }\n\n // We need to calculate the body *twice* if it's a repeat pattern\n // at the start, once in nodot mode, then again in dot mode, so a\n // pattern like *(?) can match 'x.y'\n\n const repeated = this.type === '*' || this.type === '+'\n // some kind of extglob\n const start = this.type === '!' ? '(?:(?!(?:' : '(?:'\n let body = this.#partsToRegExp(dot)\n\n if (this.isStart() && this.isEnd() && !body && this.type !== '!') {\n // invalid extglob, has to at least be *something* present, if it's\n // the entire path portion.\n const s = this.toString()\n this.#parts = [s]\n this.type = null\n this.#hasMagic = undefined\n return [s, unescape(this.toString()), false, false]\n }\n\n // XXX abstract out this map method\n let bodyDotAllowed =\n !repeated || allowDot || dot || !startNoDot\n ? ''\n : this.#partsToRegExp(true)\n if (bodyDotAllowed === body) {\n bodyDotAllowed = ''\n }\n if (bodyDotAllowed) {\n body = `(?:${body})(?:${bodyDotAllowed})*?`\n }\n\n // an empty !() is exactly equivalent to a starNoEmpty\n let final = ''\n if (this.type === '!' && this.#emptyExt) {\n final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty\n } else {\n const close =\n this.type === '!'\n ? // !() must match something,but !(x) can match ''\n '))' +\n (this.isStart() && !dot && !allowDot ? startNoDot : '') +\n star +\n ')'\n : this.type === '@'\n ? ')'\n : this.type === '?'\n ? ')?'\n : this.type === '+' && bodyDotAllowed\n ? ')'\n : this.type === '*' && bodyDotAllowed\n ? `)?`\n : `)${this.type}`\n final = start + body + close\n }\n return [\n final,\n unescape(body),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ]\n }\n\n #partsToRegExp(dot: boolean) {\n return this.#parts\n .map(p => {\n // extglob ASTs should only contain parent ASTs\n /* c8 ignore start */\n if (typeof p === 'string') {\n throw new Error('string type in extglob ast??')\n }\n /* c8 ignore stop */\n // can ignore hasMagic, because extglobs are already always magic\n const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot)\n this.#uflag = this.#uflag || uflag\n return re\n })\n .filter(p => !(this.isStart() && this.isEnd()) || !!p)\n .join('|')\n }\n\n static #parseGlob(\n glob: string,\n hasMagic: boolean | undefined,\n noEmpty: boolean = false\n ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n let escaping = false\n let re = ''\n let uflag = false\n for (let i = 0; i < glob.length; i++) {\n const c = glob.charAt(i)\n if (escaping) {\n escaping = false\n re += (reSpecials.has(c) ? '\\\\' : '') + c\n continue\n }\n if (c === '\\\\') {\n if (i === glob.length - 1) {\n re += '\\\\\\\\'\n } else {\n escaping = true\n }\n continue\n }\n if (c === '[') {\n const [src, needUflag, consumed, magic] = parseClass(glob, i)\n if (consumed) {\n re += src\n uflag = uflag || needUflag\n i += consumed - 1\n hasMagic = hasMagic || magic\n continue\n }\n }\n if (c === '*') {\n if (noEmpty && glob === '*') re += starNoEmpty\n else re += star\n hasMagic = true\n continue\n }\n if (c === '?') {\n re += qmark\n hasMagic = true\n continue\n }\n re += regExpEscape(c)\n }\n return [re, unescape(glob), !!hasMagic, uflag]\n }\n}\n"]} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts deleted file mode 100644 index b1572deb..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type ParseClassResult = [ - src: string, - uFlag: boolean, - consumed: number, - hasMagic: boolean -]; -export declare const parseClass: (glob: string, position: number) => ParseClassResult; -//# sourceMappingURL=brace-expressions.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map deleted file mode 100644 index d3949648..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brace-expressions.d.ts","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU,SACf,MAAM,YACF,MAAM,qBA8HjB,CAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js deleted file mode 100644 index 0e13eefc..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; -// translate the various posix character classes into unicode properties -// this works across all unicode locales -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseClass = void 0; -// { : [, /u flag required, negated] -const posixClasses = { - '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true], - '[:alpha:]': ['\\p{L}\\p{Nl}', true], - '[:ascii:]': ['\\x' + '00-\\x' + '7f', false], - '[:blank:]': ['\\p{Zs}\\t', true], - '[:cntrl:]': ['\\p{Cc}', true], - '[:digit:]': ['\\p{Nd}', true], - '[:graph:]': ['\\p{Z}\\p{C}', true, true], - '[:lower:]': ['\\p{Ll}', true], - '[:print:]': ['\\p{C}', true], - '[:punct:]': ['\\p{P}', true], - '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true], - '[:upper:]': ['\\p{Lu}', true], - '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true], - '[:xdigit:]': ['A-Fa-f0-9', false], -}; -// only need to escape a few things inside of brace expressions -// escapes: [ \ ] - -const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&'); -// escape all regexp magic characters -const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -// everything has already been escaped, we just have to join -const rangesToString = (ranges) => ranges.join(''); -// takes a glob string at a posix brace expression, and returns -// an equivalent regular expression source, and boolean indicating -// whether the /u flag needs to be applied, and the number of chars -// consumed to parse the character class. -// This also removes out of order ranges, and returns ($.) if the -// entire class just no good. -const parseClass = (glob, position) => { - const pos = position; - /* c8 ignore start */ - if (glob.charAt(pos) !== '[') { - throw new Error('not in a brace expression'); - } - /* c8 ignore stop */ - const ranges = []; - const negs = []; - let i = pos + 1; - let sawStart = false; - let uflag = false; - let escaping = false; - let negate = false; - let endPos = pos; - let rangeStart = ''; - WHILE: while (i < glob.length) { - const c = glob.charAt(i); - if ((c === '!' || c === '^') && i === pos + 1) { - negate = true; - i++; - continue; - } - if (c === ']' && sawStart && !escaping) { - endPos = i + 1; - break; - } - sawStart = true; - if (c === '\\') { - if (!escaping) { - escaping = true; - i++; - continue; - } - // escaped \ char, fall through and treat like normal char - } - if (c === '[' && !escaping) { - // either a posix class, a collation equivalent, or just a [ - for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) { - if (glob.startsWith(cls, i)) { - // invalid, [a-[] is fine, but not [a-[:alpha]] - if (rangeStart) { - return ['$.', false, glob.length - pos, true]; - } - i += cls.length; - if (neg) - negs.push(unip); - else - ranges.push(unip); - uflag = uflag || u; - continue WHILE; - } - } - } - // now it's just a normal character, effectively - escaping = false; - if (rangeStart) { - // throw this range away if it's not valid, but others - // can still match. - if (c > rangeStart) { - ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c)); - } - else if (c === rangeStart) { - ranges.push(braceEscape(c)); - } - rangeStart = ''; - i++; - continue; - } - // now might be the start of a range. - // can be either c-d or c-] or c] or c] at this point - if (glob.startsWith('-]', i + 1)) { - ranges.push(braceEscape(c + '-')); - i += 2; - continue; - } - if (glob.startsWith('-', i + 1)) { - rangeStart = c; - i += 2; - continue; - } - // not the start of a range, just a single character - ranges.push(braceEscape(c)); - i++; - } - if (endPos < i) { - // didn't see the end of the class, not a valid class, - // but might still be valid as a literal match. - return ['', false, 0, false]; - } - // if we got no ranges and no negates, then we have a range that - // cannot possibly match anything, and that poisons the whole glob - if (!ranges.length && !negs.length) { - return ['$.', false, glob.length - pos, true]; - } - // if we got one positive range, and it's a single character, then that's - // not actually a magic pattern, it's just that one literal character. - // we should not treat that as "magic", we should just return the literal - // character. [_] is a perfectly valid way to escape glob magic chars. - if (negs.length === 0 && - ranges.length === 1 && - /^\\?.$/.test(ranges[0]) && - !negate) { - const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]; - return [regexpEscape(r), false, endPos - pos, false]; - } - const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']'; - const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']'; - const comb = ranges.length && negs.length - ? '(' + sranges + '|' + snegs + ')' - : ranges.length - ? sranges - : snegs; - return [comb, uflag, endPos - pos, true]; -}; -exports.parseClass = parseClass; -//# sourceMappingURL=brace-expressions.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map deleted file mode 100644 index 86b04756..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brace-expressions.js","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,wCAAwC;;;AAExC,8DAA8D;AAC9D,MAAM,YAAY,GAA0D;IAC1E,WAAW,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC;IACpC,WAAW,EAAE,CAAC,KAAK,GAAG,QAAQ,GAAG,IAAI,EAAE,KAAK,CAAC;IAC7C,WAAW,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC;IACjC,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9B,WAAW,EAA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AAG,GAAG,OAAO,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG;QACnC,CAAC,CAAC,MAAM,CAAC,MAAM;YACf,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,KAAK,CAAA;IAEX,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC,CAAA;AAhIY,QAAA,UAAU,cAgItB","sourcesContent":["// translate the various posix character classes into unicode properties\n// this works across all unicode locales\n\n// { : [, /u flag required, negated]\nconst posixClasses: { [k: string]: [e: string, u: boolean, n?: boolean] } = {\n '[:alnum:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}', true],\n '[:alpha:]': ['\\\\p{L}\\\\p{Nl}', true],\n '[:ascii:]': ['\\\\x' + '00-\\\\x' + '7f', false],\n '[:blank:]': ['\\\\p{Zs}\\\\t', true],\n '[:cntrl:]': ['\\\\p{Cc}', true],\n '[:digit:]': ['\\\\p{Nd}', true],\n '[:graph:]': ['\\\\p{Z}\\\\p{C}', true, true],\n '[:lower:]': ['\\\\p{Ll}', true],\n '[:print:]': ['\\\\p{C}', true],\n '[:punct:]': ['\\\\p{P}', true],\n '[:space:]': ['\\\\p{Z}\\\\t\\\\r\\\\n\\\\v\\\\f', true],\n '[:upper:]': ['\\\\p{Lu}', true],\n '[:word:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}', true],\n '[:xdigit:]': ['A-Fa-f0-9', false],\n}\n\n// only need to escape a few things inside of brace expressions\n// escapes: [ \\ ] -\nconst braceEscape = (s: string) => s.replace(/[[\\]\\\\-]/g, '\\\\$&')\n// escape all regexp magic characters\nconst regexpEscape = (s: string) =>\n s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// everything has already been escaped, we just have to join\nconst rangesToString = (ranges: string[]): string => ranges.join('')\n\nexport type ParseClassResult = [\n src: string,\n uFlag: boolean,\n consumed: number,\n hasMagic: boolean\n]\n\n// takes a glob string at a posix brace expression, and returns\n// an equivalent regular expression source, and boolean indicating\n// whether the /u flag needs to be applied, and the number of chars\n// consumed to parse the character class.\n// This also removes out of order ranges, and returns ($.) if the\n// entire class just no good.\nexport const parseClass = (\n glob: string,\n position: number\n): ParseClassResult => {\n const pos = position\n /* c8 ignore start */\n if (glob.charAt(pos) !== '[') {\n throw new Error('not in a brace expression')\n }\n /* c8 ignore stop */\n const ranges: string[] = []\n const negs: string[] = []\n\n let i = pos + 1\n let sawStart = false\n let uflag = false\n let escaping = false\n let negate = false\n let endPos = pos\n let rangeStart = ''\n WHILE: while (i < glob.length) {\n const c = glob.charAt(i)\n if ((c === '!' || c === '^') && i === pos + 1) {\n negate = true\n i++\n continue\n }\n\n if (c === ']' && sawStart && !escaping) {\n endPos = i + 1\n break\n }\n\n sawStart = true\n if (c === '\\\\') {\n if (!escaping) {\n escaping = true\n i++\n continue\n }\n // escaped \\ char, fall through and treat like normal char\n }\n if (c === '[' && !escaping) {\n // either a posix class, a collation equivalent, or just a [\n for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {\n if (glob.startsWith(cls, i)) {\n // invalid, [a-[] is fine, but not [a-[:alpha]]\n if (rangeStart) {\n return ['$.', false, glob.length - pos, true]\n }\n i += cls.length\n if (neg) negs.push(unip)\n else ranges.push(unip)\n uflag = uflag || u\n continue WHILE\n }\n }\n }\n\n // now it's just a normal character, effectively\n escaping = false\n if (rangeStart) {\n // throw this range away if it's not valid, but others\n // can still match.\n if (c > rangeStart) {\n ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c))\n } else if (c === rangeStart) {\n ranges.push(braceEscape(c))\n }\n rangeStart = ''\n i++\n continue\n }\n\n // now might be the start of a range.\n // can be either c-d or c-] or c] or c] at this point\n if (glob.startsWith('-]', i + 1)) {\n ranges.push(braceEscape(c + '-'))\n i += 2\n continue\n }\n if (glob.startsWith('-', i + 1)) {\n rangeStart = c\n i += 2\n continue\n }\n\n // not the start of a range, just a single character\n ranges.push(braceEscape(c))\n i++\n }\n\n if (endPos < i) {\n // didn't see the end of the class, not a valid class,\n // but might still be valid as a literal match.\n return ['', false, 0, false]\n }\n\n // if we got no ranges and no negates, then we have a range that\n // cannot possibly match anything, and that poisons the whole glob\n if (!ranges.length && !negs.length) {\n return ['$.', false, glob.length - pos, true]\n }\n\n // if we got one positive range, and it's a single character, then that's\n // not actually a magic pattern, it's just that one literal character.\n // we should not treat that as \"magic\", we should just return the literal\n // character. [_] is a perfectly valid way to escape glob magic chars.\n if (\n negs.length === 0 &&\n ranges.length === 1 &&\n /^\\\\?.$/.test(ranges[0]) &&\n !negate\n ) {\n const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]\n return [regexpEscape(r), false, endPos - pos, false]\n }\n\n const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']'\n const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']'\n const comb =\n ranges.length && negs.length\n ? '(' + sranges + '|' + snegs + ')'\n : ranges.length\n ? sranges\n : snegs\n\n return [comb, uflag, endPos - pos, true]\n}\n"]} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts deleted file mode 100644 index dc3e3163..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { MinimatchOptions } from './index.js'; -/** - * Escape all magic characters in a glob pattern. - * - * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape} - * option is used, then characters are escaped by wrapping in `[]`, because - * a magic character wrapped in a character class can only be satisfied by - * that exact character. In this mode, `\` is _not_ escaped, because it is - * not interpreted as a magic character, but instead as a path separator. - */ -export declare const escape: (s: string, { windowsPathsNoEscape, }?: Pick) => string; -//# sourceMappingURL=escape.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts.map deleted file mode 100644 index 0779dae7..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,MACd,MAAM,8BAGN,KAAK,gBAAgB,EAAE,sBAAsB,CAAC,WAQlD,CAAA"} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js deleted file mode 100644 index 02a4f8a8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.escape = void 0; -/** - * Escape all magic characters in a glob pattern. - * - * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape} - * option is used, then characters are escaped by wrapping in `[]`, because - * a magic character wrapped in a character class can only be satisfied by - * that exact character. In this mode, `\` is _not_ escaped, because it is - * not interpreted as a magic character, but instead as a path separator. - */ -const escape = (s, { windowsPathsNoEscape = false, } = {}) => { - // don't need to escape +@! because we escape the parens - // that make those magic, and escaping ! as [!] isn't valid, - // because [!]] is a valid glob class meaning not ']'. - return windowsPathsNoEscape - ? s.replace(/[?*()[\]]/g, '[$&]') - : s.replace(/[?*()[\]\\]/g, '\\$&'); -}; -exports.escape = escape; -//# sourceMappingURL=escape.js.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map deleted file mode 100644 index 264b2ea5..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":";;;AACA;;;;;;;;GAQG;AACI,MAAM,MAAM,GAAG,CACpB,CAAS,EACT,EACE,oBAAoB,GAAG,KAAK,MACsB,EAAE,EACtD,EAAE;IACF,wDAAwD;IACxD,4DAA4D;IAC5D,sDAAsD;IACtD,OAAO,oBAAoB;QACzB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC;QACjC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;AACvC,CAAC,CAAA;AAZY,QAAA,MAAM,UAYlB","sourcesContent":["import { MinimatchOptions } from './index.js'\n/**\n * Escape all magic characters in a glob pattern.\n *\n * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}\n * option is used, then characters are escaped by wrapping in `[]`, because\n * a magic character wrapped in a character class can only be satisfied by\n * that exact character. In this mode, `\\` is _not_ escaped, because it is\n * not interpreted as a magic character, but instead as a path separator.\n */\nexport const escape = (\n s: string,\n {\n windowsPathsNoEscape = false,\n }: Pick = {}\n) => {\n // don't need to escape +@! because we escape the parens\n // that make those magic, and escaping ! as [!] isn't valid,\n // because [!]] is a valid glob class meaning not ']'.\n return windowsPathsNoEscape\n ? s.replace(/[?*()[\\]]/g, '[$&]')\n : s.replace(/[?*()[\\]\\\\]/g, '\\\\$&')\n}\n"]} \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts deleted file mode 100644 index 41d16a98..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { AST } from './ast.js'; -type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd'; -export interface MinimatchOptions { - nobrace?: boolean; - nocomment?: boolean; - nonegate?: boolean; - debug?: boolean; - noglobstar?: boolean; - noext?: boolean; - nonull?: boolean; - windowsPathsNoEscape?: boolean; - allowWindowsEscape?: boolean; - partial?: boolean; - dot?: boolean; - nocase?: boolean; - nocaseMagicOnly?: boolean; - magicalBraces?: boolean; - matchBase?: boolean; - flipNegate?: boolean; - preserveMultipleSlashes?: boolean; - optimizationLevel?: number; - platform?: Platform; - windowsNoMagicRoot?: boolean; -} -export declare const minimatch: { - (p: string, pattern: string, options?: MinimatchOptions): boolean; - sep: Sep; - GLOBSTAR: typeof GLOBSTAR; - filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean; - defaults: (def: MinimatchOptions) => typeof minimatch; - braceExpand: (pattern: string, options?: MinimatchOptions) => string[]; - makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp; - match: (list: string[], pattern: string, options?: MinimatchOptions) => string[]; - AST: typeof AST; - Minimatch: typeof Minimatch; - escape: (s: string, { windowsPathsNoEscape, }?: Pick) => string; - unescape: (s: string, { windowsPathsNoEscape, }?: Pick) => string; -}; -type Sep = '\\' | '/'; -export declare const sep: Sep; -export declare const GLOBSTAR: unique symbol; -export declare const filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean; -export declare const defaults: (def: MinimatchOptions) => typeof minimatch; -export declare const braceExpand: (pattern: string, options?: MinimatchOptions) => string[]; -export declare const makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp; -export declare const match: (list: string[], pattern: string, options?: MinimatchOptions) => string[]; -export type MMRegExp = RegExp & { - _src?: string; - _glob?: string; -}; -export type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR; -export type ParseReturn = ParseReturnFiltered | false; -export declare class Minimatch { - options: MinimatchOptions; - set: ParseReturnFiltered[][]; - pattern: string; - windowsPathsNoEscape: boolean; - nonegate: boolean; - negate: boolean; - comment: boolean; - empty: boolean; - preserveMultipleSlashes: boolean; - partial: boolean; - globSet: string[]; - globParts: string[][]; - nocase: boolean; - isWindows: boolean; - platform: Platform; - windowsNoMagicRoot: boolean; - regexp: false | null | MMRegExp; - constructor(pattern: string, options?: MinimatchOptions); - hasMagic(): boolean; - debug(..._: any[]): void; - make(): void; - preprocess(globParts: string[][]): string[][]; - adjascentGlobstarOptimize(globParts: string[][]): string[][]; - levelOneOptimize(globParts: string[][]): string[][]; - levelTwoFileOptimize(parts: string | string[]): string[]; - firstPhasePreProcess(globParts: string[][]): string[][]; - secondPhasePreProcess(globParts: string[][]): string[][]; - partsMatch(a: string[], b: string[], emptyGSMatch?: boolean): false | string[]; - parseNegate(): void; - matchOne(file: string[], pattern: ParseReturn[], partial?: boolean): boolean; - braceExpand(): string[]; - parse(pattern: string): ParseReturn; - makeRe(): false | MMRegExp; - slashSplit(p: string): string[]; - match(f: string, partial?: boolean): boolean; - static defaults(def: MinimatchOptions): typeof Minimatch; -} -export { AST } from './ast.js'; -export { escape } from './escape.js'; -export { unescape } from './unescape.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts.map deleted file mode 100644 index 195491d8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":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-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js deleted file mode 100644 index 64a0f1f8..00000000 --- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js +++ /dev/null @@ -1,1017 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0; -const brace_expansion_1 = __importDefault(require("brace-expansion")); -const assert_valid_pattern_js_1 = require("./assert-valid-pattern.js"); -const ast_js_1 = require("./ast.js"); -const escape_js_1 = require("./escape.js"); -const unescape_js_1 = require("./unescape.js"); -const minimatch = (p, pattern, options = {}) => { - (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false; - } - return new Minimatch(pattern, options).match(p); -}; -exports.minimatch = minimatch; -// Optimized checking for the most common glob patterns. -const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/; -const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext); -const starDotExtTestDot = (ext) => (f) => f.endsWith(ext); -const starDotExtTestNocase = (ext) => { - ext = ext.toLowerCase(); - return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext); -}; -const starDotExtTestNocaseDot = (ext) => { - ext = ext.toLowerCase(); - return (f) => f.toLowerCase().endsWith(ext); -}; -const starDotStarRE = /^\*+\.\*+$/; -const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.'); -const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.'); -const dotStarRE = /^\.\*+$/; -const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.'); -const starRE = /^\*+$/; -const starTest = (f) => f.length !== 0 && !f.startsWith('.'); -const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..'; -const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/; -const qmarksTestNocase = ([$0, ext = '']) => { - const noext = qmarksTestNoExt([$0]); - if (!ext) - return noext; - ext = ext.toLowerCase(); - return (f) => noext(f) && f.toLowerCase().endsWith(ext); -}; -const qmarksTestNocaseDot = ([$0, ext = '']) => { - const noext = qmarksTestNoExtDot([$0]); - if (!ext) - return noext; - ext = ext.toLowerCase(); - return (f) => noext(f) && f.toLowerCase().endsWith(ext); -}; -const qmarksTestDot = ([$0, ext = '']) => { - const noext = qmarksTestNoExtDot([$0]); - return !ext ? noext : (f) => noext(f) && f.endsWith(ext); -}; -const qmarksTest = ([$0, ext = '']) => { - const noext = qmarksTestNoExt([$0]); - return !ext ? noext : (f) => noext(f) && f.endsWith(ext); -}; -const qmarksTestNoExt = ([$0]) => { - const len = $0.length; - return (f) => f.length === len && !f.startsWith('.'); -}; -const qmarksTestNoExtDot = ([$0]) => { - const len = $0.length; - return (f) => f.length === len && f !== '.' && f !== '..'; -}; -/* c8 ignore start */ -const defaultPlatform = (typeof process === 'object' && process - ? (typeof process.env === 'object' && - process.env && - process.env.__MINIMATCH_TESTING_PLATFORM__) || - process.platform - : 'posix'); -const path = { - win32: { sep: '\\' }, - posix: { sep: '/' }, -}; -/* c8 ignore stop */ -exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep; -exports.minimatch.sep = exports.sep; -exports.GLOBSTAR = Symbol('globstar **'); -exports.minimatch.GLOBSTAR = exports.GLOBSTAR; -// any single thing other than / -// don't need to escape / when using new RegExp() -const qmark = '[^/]'; -// * => any number of characters -const star = qmark + '*?'; -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?'; -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?'; -const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options); -exports.filter = filter; -exports.minimatch.filter = exports.filter; -const ext = (a, b = {}) => Object.assign({}, a, b); -const defaults = (def) => { - if (!def || typeof def !== 'object' || !Object.keys(def).length) { - return exports.minimatch; - } - const orig = exports.minimatch; - const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options)); - return Object.assign(m, { - Minimatch: class Minimatch extends orig.Minimatch { - constructor(pattern, options = {}) { - super(pattern, ext(def, options)); - } - static defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - } - }, - AST: class AST extends orig.AST { - /* c8 ignore start */ - constructor(type, parent, options = {}) { - super(type, parent, ext(def, options)); - } - /* c8 ignore stop */ - static fromGlob(pattern, options = {}) { - return orig.AST.fromGlob(pattern, ext(def, options)); - } - }, - unescape: (s, options = {}) => orig.unescape(s, ext(def, options)), - escape: (s, options = {}) => orig.escape(s, ext(def, options)), - filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)), - defaults: (options) => orig.defaults(ext(def, options)), - makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)), - braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)), - match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)), - sep: orig.sep, - GLOBSTAR: exports.GLOBSTAR, - }); -}; -exports.defaults = defaults; -exports.minimatch.defaults = exports.defaults; -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -const braceExpand = (pattern, options = {}) => { - (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); - // Thanks to Yeting Li for - // improving this regexp to avoid a ReDOS vulnerability. - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - // shortcut. no need to expand. - return [pattern]; - } - return (0, brace_expansion_1.default)(pattern); -}; -exports.braceExpand = braceExpand; -exports.minimatch.braceExpand = exports.braceExpand; -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe(); -exports.makeRe = makeRe; -exports.minimatch.makeRe = exports.makeRe; -const match = (list, pattern, options = {}) => { - const mm = new Minimatch(pattern, options); - list = list.filter(f => mm.match(f)); - if (mm.options.nonull && !list.length) { - list.push(pattern); - } - return list; -}; -exports.match = match; -exports.minimatch.match = exports.match; -// replace stuff like \* with * -const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; -const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -class Minimatch { - options; - set; - pattern; - windowsPathsNoEscape; - nonegate; - negate; - comment; - empty; - preserveMultipleSlashes; - partial; - globSet; - globParts; - nocase; - isWindows; - platform; - windowsNoMagicRoot; - regexp; - constructor(pattern, options = {}) { - (0, assert_valid_pattern_js_1.assertValidPattern)(pattern); - options = options || {}; - this.options = options; - this.pattern = pattern; - this.platform = options.platform || defaultPlatform; - this.isWindows = this.platform === 'win32'; - this.windowsPathsNoEscape = - !!options.windowsPathsNoEscape || options.allowWindowsEscape === false; - if (this.windowsPathsNoEscape) { - this.pattern = this.pattern.replace(/\\/g, '/'); - } - this.preserveMultipleSlashes = !!options.preserveMultipleSlashes; - this.regexp = null; - this.negate = false; - this.nonegate = !!options.nonegate; - this.comment = false; - this.empty = false; - this.partial = !!options.partial; - this.nocase = !!this.options.nocase; - this.windowsNoMagicRoot = - options.windowsNoMagicRoot !== undefined - ? options.windowsNoMagicRoot - : !!(this.isWindows && this.nocase); - this.globSet = []; - this.globParts = []; - this.set = []; - // make the set of regexps etc. - this.make(); - } - hasMagic() { - if (this.options.magicalBraces && this.set.length > 1) { - return true; - } - for (const pattern of this.set) { - for (const part of pattern) { - if (typeof part !== 'string') - return true; - } - } - return false; - } - debug(..._) { } - make() { - const pattern = this.pattern; - const options = this.options; - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true; - return; - } - if (!pattern) { - this.empty = true; - return; - } - // step 1: figure out negation, etc. - this.parseNegate(); - // step 2: expand braces - this.globSet = [...new Set(this.braceExpand())]; - if (options.debug) { - this.debug = (...args) => console.error(...args); - } - this.debug(this.pattern, this.globSet); - // step 3: now we have a set, so turn each one into a series of - // path-portion matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - // - // First, we preprocess to make the glob pattern sets a bit simpler - // and deduped. There are some perf-killing patterns that can cause - // problems with a glob walk, but we can simplify them down a bit. - const rawGlobParts = this.globSet.map(s => this.slashSplit(s)); - this.globParts = this.preprocess(rawGlobParts); - this.debug(this.pattern, this.globParts); - // glob --> regexps - let set = this.globParts.map((s, _, __) => { - if (this.isWindows && this.windowsNoMagicRoot) { - // check if it's a drive or unc path. - const isUNC = s[0] === '' && - s[1] === '' && - (s[2] === '?' || !globMagic.test(s[2])) && - !globMagic.test(s[3]); - const isDrive = /^[a-z]:/i.test(s[0]); - if (isUNC) { - return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))]; - } - else if (isDrive) { - return [s[0], ...s.slice(1).map(ss => this.parse(ss))]; - } - } - return s.map(ss => this.parse(ss)); - }); - this.debug(this.pattern, set); - // filter out everything that didn't compile properly. - this.set = set.filter(s => s.indexOf(false) === -1); - // do not treat the ? in UNC paths as magic - if (this.isWindows) { - for (let i = 0; i < this.set.length; i++) { - const p = this.set[i]; - if (p[0] === '' && - p[1] === '' && - this.globParts[i][2] === '?' && - typeof p[3] === 'string' && - /^[a-z]:$/i.test(p[3])) { - p[2] = '?'; - } - } - } - this.debug(this.pattern, this.set); - } - // various transforms to equivalent pattern sets that are - // faster to process in a filesystem walk. The goal is to - // eliminate what we can, and push all ** patterns as far - // to the right as possible, even if it increases the number - // of patterns that we have to process. - preprocess(globParts) { - // if we're not in globstar mode, then turn all ** into * - if (this.options.noglobstar) { - for (let i = 0; i < globParts.length; i++) { - for (let j = 0; j < globParts[i].length; j++) { - if (globParts[i][j] === '**') { - globParts[i][j] = '*'; - } - } - } - } - const { optimizationLevel = 1 } = this.options; - if (optimizationLevel >= 2) { - // aggressive optimization for the purpose of fs walking - globParts = this.firstPhasePreProcess(globParts); - globParts = this.secondPhasePreProcess(globParts); - } - else if (optimizationLevel >= 1) { - // just basic optimizations to remove some .. parts - globParts = this.levelOneOptimize(globParts); - } - else { - // just collapse multiple ** portions into one - globParts = this.adjascentGlobstarOptimize(globParts); - } - return globParts; - } - // just get rid of adjascent ** portions - adjascentGlobstarOptimize(globParts) { - return globParts.map(parts => { - let gs = -1; - while (-1 !== (gs = parts.indexOf('**', gs + 1))) { - let i = gs; - while (parts[i + 1] === '**') { - i++; - } - if (i !== gs) { - parts.splice(gs, i - gs); - } - } - return parts; - }); - } - // get rid of adjascent ** and resolve .. portions - levelOneOptimize(globParts) { - return globParts.map(parts => { - parts = parts.reduce((set, part) => { - const prev = set[set.length - 1]; - if (part === '**' && prev === '**') { - return set; - } - if (part === '..') { - if (prev && prev !== '..' && prev !== '.' && prev !== '**') { - set.pop(); - return set; - } - } - set.push(part); - return set; - }, []); - return parts.length === 0 ? [''] : parts; - }); - } - levelTwoFileOptimize(parts) { - if (!Array.isArray(parts)) { - parts = this.slashSplit(parts); - } - let didSomething = false; - do { - didSomething = false; - //

// -> 
/
-            if (!this.preserveMultipleSlashes) {
-                for (let i = 1; i < parts.length - 1; i++) {
-                    const p = parts[i];
-                    // don't squeeze out UNC patterns
-                    if (i === 1 && p === '' && parts[0] === '')
-                        continue;
-                    if (p === '.' || p === '') {
-                        didSomething = true;
-                        parts.splice(i, 1);
-                        i--;
-                    }
-                }
-                if (parts[0] === '.' &&
-                    parts.length === 2 &&
-                    (parts[1] === '.' || parts[1] === '')) {
-                    didSomething = true;
-                    parts.pop();
-                }
-            }
-            // 
/

/../ ->

/
-            let dd = 0;
-            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                const p = parts[dd - 1];
-                if (p && p !== '.' && p !== '..' && p !== '**') {
-                    didSomething = true;
-                    parts.splice(dd - 1, 2);
-                    dd -= 2;
-                }
-            }
-        } while (didSomething);
-        return parts.length === 0 ? [''] : parts;
-    }
-    // First phase: single-pattern processing
-    // 
 is 1 or more portions
-    //  is 1 or more portions
-    // 

is any portion other than ., .., '', or ** - // is . or '' - // - // **/.. is *brutal* for filesystem walking performance, because - // it effectively resets the recursive walk each time it occurs, - // and ** cannot be reduced out by a .. pattern part like a regexp - // or most strings (other than .., ., and '') can be. - // - //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - //

// -> 
/
-    // 
/

/../ ->

/
-    // **/**/ -> **/
-    //
-    // **/*/ -> */**/ <== not valid because ** doesn't follow
-    // this WOULD be allowed if ** did follow symlinks, or * didn't
-    firstPhasePreProcess(globParts) {
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - for (let parts of globParts) { - let gs = -1; - while (-1 !== (gs = parts.indexOf('**', gs + 1))) { - let gss = gs; - while (parts[gss + 1] === '**') { - //

/**/**/ -> 
/**/
-                        gss++;
-                    }
-                    // eg, if gs is 2 and gss is 4, that means we have 3 **
-                    // parts, and can remove 2 of them.
-                    if (gss > gs) {
-                        parts.splice(gs + 1, gss - gs);
-                    }
-                    let next = parts[gs + 1];
-                    const p = parts[gs + 2];
-                    const p2 = parts[gs + 3];
-                    if (next !== '..')
-                        continue;
-                    if (!p ||
-                        p === '.' ||
-                        p === '..' ||
-                        !p2 ||
-                        p2 === '.' ||
-                        p2 === '..') {
-                        continue;
-                    }
-                    didSomething = true;
-                    // edit parts in place, and push the new one
-                    parts.splice(gs, 1);
-                    const other = parts.slice(0);
-                    other[gs] = '**';
-                    globParts.push(other);
-                    gs--;
-                }
-                // 
// -> 
/
-                if (!this.preserveMultipleSlashes) {
-                    for (let i = 1; i < parts.length - 1; i++) {
-                        const p = parts[i];
-                        // don't squeeze out UNC patterns
-                        if (i === 1 && p === '' && parts[0] === '')
-                            continue;
-                        if (p === '.' || p === '') {
-                            didSomething = true;
-                            parts.splice(i, 1);
-                            i--;
-                        }
-                    }
-                    if (parts[0] === '.' &&
-                        parts.length === 2 &&
-                        (parts[1] === '.' || parts[1] === '')) {
-                        didSomething = true;
-                        parts.pop();
-                    }
-                }
-                // 
/

/../ ->

/
-                let dd = 0;
-                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                    const p = parts[dd - 1];
-                    if (p && p !== '.' && p !== '..' && p !== '**') {
-                        didSomething = true;
-                        const needDot = dd === 1 && parts[dd + 1] === '**';
-                        const splin = needDot ? ['.'] : [];
-                        parts.splice(dd - 1, 2, ...splin);
-                        if (parts.length === 0)
-                            parts.push('');
-                        dd -= 2;
-                    }
-                }
-            }
-        } while (didSomething);
-        return globParts;
-    }
-    // second phase: multi-pattern dedupes
-    // {
/*/,
/

/} ->

/*/
-    // {
/,
/} -> 
/
-    // {
/**/,
/} -> 
/**/
-    //
-    // {
/**/,
/**/

/} ->

/**/
-    // ^-- not valid because ** doens't follow symlinks
-    secondPhasePreProcess(globParts) {
-        for (let i = 0; i < globParts.length - 1; i++) {
-            for (let j = i + 1; j < globParts.length; j++) {
-                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
-                if (matched) {
-                    globParts[i] = [];
-                    globParts[j] = matched;
-                    break;
-                }
-            }
-        }
-        return globParts.filter(gs => gs.length);
-    }
-    partsMatch(a, b, emptyGSMatch = false) {
-        let ai = 0;
-        let bi = 0;
-        let result = [];
-        let which = '';
-        while (ai < a.length && bi < b.length) {
-            if (a[ai] === b[bi]) {
-                result.push(which === 'b' ? b[bi] : a[ai]);
-                ai++;
-                bi++;
-            }
-            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
-                result.push(a[ai]);
-                ai++;
-            }
-            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
-                result.push(b[bi]);
-                bi++;
-            }
-            else if (a[ai] === '*' &&
-                b[bi] &&
-                (this.options.dot || !b[bi].startsWith('.')) &&
-                b[bi] !== '**') {
-                if (which === 'b')
-                    return false;
-                which = 'a';
-                result.push(a[ai]);
-                ai++;
-                bi++;
-            }
-            else if (b[bi] === '*' &&
-                a[ai] &&
-                (this.options.dot || !a[ai].startsWith('.')) &&
-                a[ai] !== '**') {
-                if (which === 'a')
-                    return false;
-                which = 'b';
-                result.push(b[bi]);
-                ai++;
-                bi++;
-            }
-            else {
-                return false;
-            }
-        }
-        // if we fall out of the loop, it means they two are identical
-        // as long as their lengths match
-        return a.length === b.length && result;
-    }
-    parseNegate() {
-        if (this.nonegate)
-            return;
-        const pattern = this.pattern;
-        let negate = false;
-        let negateOffset = 0;
-        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
-            negate = !negate;
-            negateOffset++;
-        }
-        if (negateOffset)
-            this.pattern = pattern.slice(negateOffset);
-        this.negate = negate;
-    }
-    // set partial to true to test if, for example,
-    // "/a/b" matches the start of "/*/b/*/d"
-    // Partial means, if you run out of file before you run
-    // out of pattern, then that's fine, as long as all
-    // the parts match.
-    matchOne(file, pattern, partial = false) {
-        const options = this.options;
-        // UNC paths like //?/X:/... can match X:/... and vice versa
-        // Drive letters in absolute drive or unc paths are always compared
-        // case-insensitively.
-        if (this.isWindows) {
-            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
-            const fileUNC = !fileDrive &&
-                file[0] === '' &&
-                file[1] === '' &&
-                file[2] === '?' &&
-                /^[a-z]:$/i.test(file[3]);
-            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
-            const patternUNC = !patternDrive &&
-                pattern[0] === '' &&
-                pattern[1] === '' &&
-                pattern[2] === '?' &&
-                typeof pattern[3] === 'string' &&
-                /^[a-z]:$/i.test(pattern[3]);
-            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
-            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
-            if (typeof fdi === 'number' && typeof pdi === 'number') {
-                const [fd, pd] = [file[fdi], pattern[pdi]];
-                if (fd.toLowerCase() === pd.toLowerCase()) {
-                    pattern[pdi] = fd;
-                    if (pdi > fdi) {
-                        pattern = pattern.slice(pdi);
-                    }
-                    else if (fdi > pdi) {
-                        file = file.slice(fdi);
-                    }
-                }
-            }
-        }
-        // resolve and reduce . and .. portions in the file as well.
-        // dont' need to do the second phase, because it's only one string[]
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            file = this.levelTwoFileOptimize(file);
-        }
-        this.debug('matchOne', this, { file, pattern });
-        this.debug('matchOne', file.length, pattern.length);
-        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
-            this.debug('matchOne loop');
-            var p = pattern[pi];
-            var f = file[fi];
-            this.debug(pattern, p, f);
-            // should be impossible.
-            // some invalid regexp stuff in the set.
-            /* c8 ignore start */
-            if (p === false) {
-                return false;
-            }
-            /* c8 ignore stop */
-            if (p === exports.GLOBSTAR) {
-                this.debug('GLOBSTAR', [pattern, p, f]);
-                // "**"
-                // a/**/b/**/c would match the following:
-                // a/b/x/y/z/c
-                // a/x/y/z/b/c
-                // a/b/x/b/x/c
-                // a/b/c
-                // To do this, take the rest of the pattern after
-                // the **, and see if it would match the file remainder.
-                // If so, return success.
-                // If not, the ** "swallows" a segment, and try again.
-                // This is recursively awful.
-                //
-                // a/**/b/**/c matching a/b/x/y/z/c
-                // - a matches a
-                // - doublestar
-                //   - matchOne(b/x/y/z/c, b/**/c)
-                //     - b matches b
-                //     - doublestar
-                //       - matchOne(x/y/z/c, c) -> no
-                //       - matchOne(y/z/c, c) -> no
-                //       - matchOne(z/c, c) -> no
-                //       - matchOne(c, c) yes, hit
-                var fr = fi;
-                var pr = pi + 1;
-                if (pr === pl) {
-                    this.debug('** at the end');
-                    // a ** at the end will just swallow the rest.
-                    // We have found a match.
-                    // however, it will not swallow /.x, unless
-                    // options.dot is set.
-                    // . and .. are *never* matched by **, for explosively
-                    // exponential reasons.
-                    for (; fi < fl; fi++) {
-                        if (file[fi] === '.' ||
-                            file[fi] === '..' ||
-                            (!options.dot && file[fi].charAt(0) === '.'))
-                            return false;
-                    }
-                    return true;
-                }
-                // ok, let's see if we can swallow whatever we can.
-                while (fr < fl) {
-                    var swallowee = file[fr];
-                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
-                    // XXX remove this slice.  Just pass the start index.
-                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
-                        this.debug('globstar found match!', fr, fl, swallowee);
-                        // found a match.
-                        return true;
-                    }
-                    else {
-                        // can't swallow "." or ".." ever.
-                        // can only swallow ".foo" when explicitly asked.
-                        if (swallowee === '.' ||
-                            swallowee === '..' ||
-                            (!options.dot && swallowee.charAt(0) === '.')) {
-                            this.debug('dot detected!', file, fr, pattern, pr);
-                            break;
-                        }
-                        // ** swallows a segment, and continue.
-                        this.debug('globstar swallow a segment, and continue');
-                        fr++;
-                    }
-                }
-                // no match was found.
-                // However, in partial mode, we can't say this is necessarily over.
-                /* c8 ignore start */
-                if (partial) {
-                    // ran out of file
-                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
-                    if (fr === fl) {
-                        return true;
-                    }
-                }
-                /* c8 ignore stop */
-                return false;
-            }
-            // something other than **
-            // non-magic patterns just have to match exactly
-            // patterns with magic have been turned into regexps.
-            let hit;
-            if (typeof p === 'string') {
-                hit = f === p;
-                this.debug('string match', p, f, hit);
-            }
-            else {
-                hit = p.test(f);
-                this.debug('pattern match', p, f, hit);
-            }
-            if (!hit)
-                return false;
-        }
-        // Note: ending in / means that we'll get a final ""
-        // at the end of the pattern.  This can only match a
-        // corresponding "" at the end of the file.
-        // If the file ends in /, then it can only match a
-        // a pattern that ends in /, unless the pattern just
-        // doesn't have any more for it. But, a/b/ should *not*
-        // match "a/b/*", even though "" matches against the
-        // [^/]*? pattern, except in partial mode, where it might
-        // simply not be reached yet.
-        // However, a/b/ should still satisfy a/*
-        // now either we fell off the end of the pattern, or we're done.
-        if (fi === fl && pi === pl) {
-            // ran out of pattern and filename at the same time.
-            // an exact hit!
-            return true;
-        }
-        else if (fi === fl) {
-            // ran out of file, but still had pattern left.
-            // this is ok if we're doing the match as part of
-            // a glob fs traversal.
-            return partial;
-        }
-        else if (pi === pl) {
-            // ran out of pattern, still have file left.
-            // this is only acceptable if we're on the very last
-            // empty segment of a file with a trailing slash.
-            // a/* should match a/b/
-            return fi === fl - 1 && file[fi] === '';
-            /* c8 ignore start */
-        }
-        else {
-            // should be unreachable.
-            throw new Error('wtf?');
-        }
-        /* c8 ignore stop */
-    }
-    braceExpand() {
-        return (0, exports.braceExpand)(this.pattern, this.options);
-    }
-    parse(pattern) {
-        (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
-        const options = this.options;
-        // shortcuts
-        if (pattern === '**')
-            return exports.GLOBSTAR;
-        if (pattern === '')
-            return '';
-        // far and away, the most common glob pattern parts are
-        // *, *.*, and *.  Add a fast check method for those.
-        let m;
-        let fastTest = null;
-        if ((m = pattern.match(starRE))) {
-            fastTest = options.dot ? starTestDot : starTest;
-        }
-        else if ((m = pattern.match(starDotExtRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? starDotExtTestNocaseDot
-                    : starDotExtTestNocase
-                : options.dot
-                    ? starDotExtTestDot
-                    : starDotExtTest)(m[1]);
-        }
-        else if ((m = pattern.match(qmarksRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? qmarksTestNocaseDot
-                    : qmarksTestNocase
-                : options.dot
-                    ? qmarksTestDot
-                    : qmarksTest)(m);
-        }
-        else if ((m = pattern.match(starDotStarRE))) {
-            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
-        }
-        else if ((m = pattern.match(dotStarRE))) {
-            fastTest = dotStarTest;
-        }
-        const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
-        if (fastTest && typeof re === 'object') {
-            // Avoids overriding in frozen environments
-            Reflect.defineProperty(re, 'test', { value: fastTest });
-        }
-        return re;
-    }
-    makeRe() {
-        if (this.regexp || this.regexp === false)
-            return this.regexp;
-        // at this point, this.set is a 2d array of partial
-        // pattern strings, or "**".
-        //
-        // It's better to use .match().  This function shouldn't
-        // be used, really, but it's pretty convenient sometimes,
-        // when you just want to work with a regex.
-        const set = this.set;
-        if (!set.length) {
-            this.regexp = false;
-            return this.regexp;
-        }
-        const options = this.options;
-        const twoStar = options.noglobstar
-            ? star
-            : options.dot
-                ? twoStarDot
-                : twoStarNoDot;
-        const flags = new Set(options.nocase ? ['i'] : []);
-        // regexpify non-globstar patterns
-        // if ** is only item, then we just do one twoStar
-        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
-        // if ** is last, append (\/twoStar|) to previous
-        // if ** is in the middle, append (\/|\/twoStar\/) to previous
-        // then filter out GLOBSTAR symbols
-        let re = set
-            .map(pattern => {
-            const pp = pattern.map(p => {
-                if (p instanceof RegExp) {
-                    for (const f of p.flags.split(''))
-                        flags.add(f);
-                }
-                return typeof p === 'string'
-                    ? regExpEscape(p)
-                    : p === exports.GLOBSTAR
-                        ? exports.GLOBSTAR
-                        : p._src;
-            });
-            pp.forEach((p, i) => {
-                const next = pp[i + 1];
-                const prev = pp[i - 1];
-                if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
-                    return;
-                }
-                if (prev === undefined) {
-                    if (next !== undefined && next !== exports.GLOBSTAR) {
-                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
-                    }
-                    else {
-                        pp[i] = twoStar;
-                    }
-                }
-                else if (next === undefined) {
-                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
-                }
-                else if (next !== exports.GLOBSTAR) {
-                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
-                    pp[i + 1] = exports.GLOBSTAR;
-                }
-            });
-            return pp.filter(p => p !== exports.GLOBSTAR).join('/');
-        })
-            .join('|');
-        // need to wrap in parens if we had more than one thing with |,
-        // otherwise only the first will be anchored to ^ and the last to $
-        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
-        // must match entire pattern
-        // ending in a * or ** will make it less strict.
-        re = '^' + open + re + close + '$';
-        // can match anything, as long as it's not this.
-        if (this.negate)
-            re = '^(?!' + re + ').+$';
-        try {
-            this.regexp = new RegExp(re, [...flags].join(''));
-            /* c8 ignore start */
-        }
-        catch (ex) {
-            // should be impossible
-            this.regexp = false;
-        }
-        /* c8 ignore stop */
-        return this.regexp;
-    }
-    slashSplit(p) {
-        // if p starts with // on windows, we preserve that
-        // so that UNC paths aren't broken.  Otherwise, any number of
-        // / characters are coalesced into one, unless
-        // preserveMultipleSlashes is set to true.
-        if (this.preserveMultipleSlashes) {
-            return p.split('/');
-        }
-        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
-            // add an extra '' for the one we lose
-            return ['', ...p.split(/\/+/)];
-        }
-        else {
-            return p.split(/\/+/);
-        }
-    }
-    match(f, partial = this.partial) {
-        this.debug('match', f, this.pattern);
-        // short-circuit in the case of busted things.
-        // comments, etc.
-        if (this.comment) {
-            return false;
-        }
-        if (this.empty) {
-            return f === '';
-        }
-        if (f === '/' && partial) {
-            return true;
-        }
-        const options = this.options;
-        // windows: need to use /, not \
-        if (this.isWindows) {
-            f = f.split('\\').join('/');
-        }
-        // treat the test path as a set of pathparts.
-        const ff = this.slashSplit(f);
-        this.debug(this.pattern, 'split', ff);
-        // just ONE of the pattern sets in this.set needs to match
-        // in order for it to be valid.  If negating, then just one
-        // match means that we have failed.
-        // Either way, return on the first hit.
-        const set = this.set;
-        this.debug(this.pattern, 'set', set);
-        // Find the basename of the path by looking for the last non-empty segment
-        let filename = ff[ff.length - 1];
-        if (!filename) {
-            for (let i = ff.length - 2; !filename && i >= 0; i--) {
-                filename = ff[i];
-            }
-        }
-        for (let i = 0; i < set.length; i++) {
-            const pattern = set[i];
-            let file = ff;
-            if (options.matchBase && pattern.length === 1) {
-                file = [filename];
-            }
-            const hit = this.matchOne(file, pattern, partial);
-            if (hit) {
-                if (options.flipNegate) {
-                    return true;
-                }
-                return !this.negate;
-            }
-        }
-        // didn't get any hits.  this is success if it's a negative
-        // pattern, failure otherwise.
-        if (options.flipNegate) {
-            return false;
-        }
-        return this.negate;
-    }
-    static defaults(def) {
-        return exports.minimatch.defaults(def).Minimatch;
-    }
-}
-exports.Minimatch = Minimatch;
-/* c8 ignore start */
-var ast_js_2 = require("./ast.js");
-Object.defineProperty(exports, "AST", { enumerable: true, get: function () { return ast_js_2.AST; } });
-var escape_js_2 = require("./escape.js");
-Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
-var unescape_js_2 = require("./unescape.js");
-Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
-/* c8 ignore stop */
-exports.minimatch.AST = ast_js_1.AST;
-exports.minimatch.Minimatch = Minimatch;
-exports.minimatch.escape = escape_js_1.escape;
-exports.minimatch.unescape = unescape_js_1.unescape;
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map
deleted file mode 100644
index d4f6a870..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map
+++ /dev/null
@@ -1 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Z;gBACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAA;aACpB;SACF;QAED,2DAA2D;QAC3D,8BAA8B;QAC9B,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,OAAO,KAAK,CAAA;SACb;QACD,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,GAAqB;QACnC,OAAO,iBAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,CAAA;IAC1C,CAAC;CACF;AAl4BD,8BAk4BC;AACD,qBAAqB;AACrB,mCAA8B;AAArB,6FAAA,GAAG,OAAA;AACZ,yCAAoC;AAA3B,mGAAA,MAAM,OAAA;AACf,6CAAwC;AAA/B,uGAAA,QAAQ,OAAA;AACjB,oBAAoB;AACpB,iBAAS,CAAC,GAAG,GAAG,YAAG,CAAA;AACnB,iBAAS,CAAC,SAAS,GAAG,SAAS,CAAA;AAC/B,iBAAS,CAAC,MAAM,GAAG,kBAAM,CAAA;AACzB,iBAAS,CAAC,QAAQ,GAAG,sBAAQ,CAAA","sourcesContent":["import expand from 'brace-expansion'\nimport { assertValidPattern } from './assert-valid-pattern.js'\nimport { AST, ExtglobType } from './ast.js'\nimport { escape } from './escape.js'\nimport { unescape } from './unescape.js'\n\ntype Platform =\n  | 'aix'\n  | 'android'\n  | 'darwin'\n  | 'freebsd'\n  | 'haiku'\n  | 'linux'\n  | 'openbsd'\n  | 'sunos'\n  | 'win32'\n  | 'cygwin'\n  | 'netbsd'\n\nexport interface MinimatchOptions {\n  nobrace?: boolean\n  nocomment?: boolean\n  nonegate?: boolean\n  debug?: boolean\n  noglobstar?: boolean\n  noext?: boolean\n  nonull?: boolean\n  windowsPathsNoEscape?: boolean\n  allowWindowsEscape?: boolean\n  partial?: boolean\n  dot?: boolean\n  nocase?: boolean\n  nocaseMagicOnly?: boolean\n  magicalBraces?: boolean\n  matchBase?: boolean\n  flipNegate?: boolean\n  preserveMultipleSlashes?: boolean\n  optimizationLevel?: number\n  platform?: Platform\n  windowsNoMagicRoot?: boolean\n}\n\nexport const minimatch = (\n  p: string,\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  assertValidPattern(pattern)\n\n  // shortcut: comments match nothing.\n  if (!options.nocomment && pattern.charAt(0) === '#') {\n    return false\n  }\n\n  return new Minimatch(pattern, options).match(p)\n}\n\n// Optimized checking for the most common glob patterns.\nconst starDotExtRE = /^\\*+([^+@!?\\*\\[\\(]*)$/\nconst starDotExtTest = (ext: string) => (f: string) =>\n  !f.startsWith('.') && f.endsWith(ext)\nconst starDotExtTestDot = (ext: string) => (f: string) => f.endsWith(ext)\nconst starDotExtTestNocase = (ext: string) => {\n  ext = ext.toLowerCase()\n  return (f: string) => !f.startsWith('.') && f.toLowerCase().endsWith(ext)\n}\nconst starDotExtTestNocaseDot = (ext: string) => {\n  ext = ext.toLowerCase()\n  return (f: string) => f.toLowerCase().endsWith(ext)\n}\nconst starDotStarRE = /^\\*+\\.\\*+$/\nconst starDotStarTest = (f: string) => !f.startsWith('.') && f.includes('.')\nconst starDotStarTestDot = (f: string) =>\n  f !== '.' && f !== '..' && f.includes('.')\nconst dotStarRE = /^\\.\\*+$/\nconst dotStarTest = (f: string) => f !== '.' && f !== '..' && f.startsWith('.')\nconst starRE = /^\\*+$/\nconst starTest = (f: string) => f.length !== 0 && !f.startsWith('.')\nconst starTestDot = (f: string) => f.length !== 0 && f !== '.' && f !== '..'\nconst qmarksRE = /^\\?+([^+@!?\\*\\[\\(]*)?$/\nconst qmarksTestNocase = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExt([$0])\n  if (!ext) return noext\n  ext = ext.toLowerCase()\n  return (f: string) => noext(f) && f.toLowerCase().endsWith(ext)\n}\nconst qmarksTestNocaseDot = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExtDot([$0])\n  if (!ext) return noext\n  ext = ext.toLowerCase()\n  return (f: string) => noext(f) && f.toLowerCase().endsWith(ext)\n}\nconst qmarksTestDot = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExtDot([$0])\n  return !ext ? noext : (f: string) => noext(f) && f.endsWith(ext)\n}\nconst qmarksTest = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExt([$0])\n  return !ext ? noext : (f: string) => noext(f) && f.endsWith(ext)\n}\nconst qmarksTestNoExt = ([$0]: RegExpMatchArray) => {\n  const len = $0.length\n  return (f: string) => f.length === len && !f.startsWith('.')\n}\nconst qmarksTestNoExtDot = ([$0]: RegExpMatchArray) => {\n  const len = $0.length\n  return (f: string) => f.length === len && f !== '.' && f !== '..'\n}\n\n/* c8 ignore start */\nconst defaultPlatform: Platform = (\n  typeof process === 'object' && process\n    ? (typeof process.env === 'object' &&\n        process.env &&\n        process.env.__MINIMATCH_TESTING_PLATFORM__) ||\n      process.platform\n    : 'posix'\n) as Platform\ntype Sep = '\\\\' | '/'\nconst path: { [k: string]: { sep: Sep } } = {\n  win32: { sep: '\\\\' },\n  posix: { sep: '/' },\n}\n/* c8 ignore stop */\n\nexport const sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep\nminimatch.sep = sep\n\nexport const GLOBSTAR = Symbol('globstar **')\nminimatch.GLOBSTAR = GLOBSTAR\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n\n// ** when dots are allowed.  Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nconst twoStarDot = '(?:(?!(?:\\\\/|^)(?:\\\\.{1,2})($|\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nconst twoStarNoDot = '(?:(?!(?:\\\\/|^)\\\\.).)*?'\n\nexport const filter =\n  (pattern: string, options: MinimatchOptions = {}) =>\n  (p: string) =>\n    minimatch(p, pattern, options)\nminimatch.filter = filter\n\nconst ext = (a: MinimatchOptions, b: MinimatchOptions = {}) =>\n  Object.assign({}, a, b)\n\nexport const defaults = (def: MinimatchOptions): typeof minimatch => {\n  if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n    return minimatch\n  }\n\n  const orig = minimatch\n\n  const m = (p: string, pattern: string, options: MinimatchOptions = {}) =>\n    orig(p, pattern, ext(def, options))\n\n  return Object.assign(m, {\n    Minimatch: class Minimatch extends orig.Minimatch {\n      constructor(pattern: string, options: MinimatchOptions = {}) {\n        super(pattern, ext(def, options))\n      }\n      static defaults(options: MinimatchOptions) {\n        return orig.defaults(ext(def, options)).Minimatch\n      }\n    },\n\n    AST: class AST extends orig.AST {\n      /* c8 ignore start */\n      constructor(\n        type: ExtglobType | null,\n        parent?: AST,\n        options: MinimatchOptions = {}\n      ) {\n        super(type, parent, ext(def, options))\n      }\n      /* c8 ignore stop */\n\n      static fromGlob(pattern: string, options: MinimatchOptions = {}) {\n        return orig.AST.fromGlob(pattern, ext(def, options))\n      }\n    },\n\n    unescape: (\n      s: string,\n      options: Pick = {}\n    ) => orig.unescape(s, ext(def, options)),\n\n    escape: (\n      s: string,\n      options: Pick = {}\n    ) => orig.escape(s, ext(def, options)),\n\n    filter: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.filter(pattern, ext(def, options)),\n\n    defaults: (options: MinimatchOptions) => orig.defaults(ext(def, options)),\n\n    makeRe: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.makeRe(pattern, ext(def, options)),\n\n    braceExpand: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.braceExpand(pattern, ext(def, options)),\n\n    match: (list: string[], pattern: string, options: MinimatchOptions = {}) =>\n      orig.match(list, pattern, ext(def, options)),\n\n    sep: orig.sep,\n    GLOBSTAR: GLOBSTAR as typeof GLOBSTAR,\n  })\n}\nminimatch.defaults = defaults\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nexport const braceExpand = (\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  assertValidPattern(pattern)\n\n  // Thanks to Yeting Li  for\n  // improving this regexp to avoid a ReDOS vulnerability.\n  if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n    // shortcut. no need to expand.\n    return [pattern]\n  }\n\n  return expand(pattern)\n}\nminimatch.braceExpand = braceExpand\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion.  Otherwise, any series\n// of * is equivalent to a single *.  Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\n\nexport const makeRe = (pattern: string, options: MinimatchOptions = {}) =>\n  new Minimatch(pattern, options).makeRe()\nminimatch.makeRe = makeRe\n\nexport const match = (\n  list: string[],\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  const mm = new Minimatch(pattern, options)\n  list = list.filter(f => mm.match(f))\n  if (mm.options.nonull && !list.length) {\n    list.push(pattern)\n  }\n  return list\n}\nminimatch.match = match\n\n// replace stuff like \\* with *\nconst globMagic = /[?*]|[+@!]\\(.*?\\)|\\[|\\]/\nconst regExpEscape = (s: string) =>\n  s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\nexport type MMRegExp = RegExp & {\n  _src?: string\n  _glob?: string\n}\n\nexport type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR\nexport type ParseReturn = ParseReturnFiltered | false\n\nexport class Minimatch {\n  options: MinimatchOptions\n  set: ParseReturnFiltered[][]\n  pattern: string\n\n  windowsPathsNoEscape: boolean\n  nonegate: boolean\n  negate: boolean\n  comment: boolean\n  empty: boolean\n  preserveMultipleSlashes: boolean\n  partial: boolean\n  globSet: string[]\n  globParts: string[][]\n  nocase: boolean\n\n  isWindows: boolean\n  platform: Platform\n  windowsNoMagicRoot: boolean\n\n  regexp: false | null | MMRegExp\n  constructor(pattern: string, options: MinimatchOptions = {}) {\n    assertValidPattern(pattern)\n\n    options = options || {}\n    this.options = options\n    this.pattern = pattern\n    this.platform = options.platform || defaultPlatform\n    this.isWindows = this.platform === 'win32'\n    this.windowsPathsNoEscape =\n      !!options.windowsPathsNoEscape || options.allowWindowsEscape === false\n    if (this.windowsPathsNoEscape) {\n      this.pattern = this.pattern.replace(/\\\\/g, '/')\n    }\n    this.preserveMultipleSlashes = !!options.preserveMultipleSlashes\n    this.regexp = null\n    this.negate = false\n    this.nonegate = !!options.nonegate\n    this.comment = false\n    this.empty = false\n    this.partial = !!options.partial\n    this.nocase = !!this.options.nocase\n    this.windowsNoMagicRoot =\n      options.windowsNoMagicRoot !== undefined\n        ? options.windowsNoMagicRoot\n        : !!(this.isWindows && this.nocase)\n\n    this.globSet = []\n    this.globParts = []\n    this.set = []\n\n    // make the set of regexps etc.\n    this.make()\n  }\n\n  hasMagic(): boolean {\n    if (this.options.magicalBraces && this.set.length > 1) {\n      return true\n    }\n    for (const pattern of this.set) {\n      for (const part of pattern) {\n        if (typeof part !== 'string') return true\n      }\n    }\n    return false\n  }\n\n  debug(..._: any[]) {}\n\n  make() {\n    const pattern = this.pattern\n    const options = this.options\n\n    // empty patterns and comments match nothing.\n    if (!options.nocomment && pattern.charAt(0) === '#') {\n      this.comment = true\n      return\n    }\n\n    if (!pattern) {\n      this.empty = true\n      return\n    }\n\n    // step 1: figure out negation, etc.\n    this.parseNegate()\n\n    // step 2: expand braces\n    this.globSet = [...new Set(this.braceExpand())]\n\n    if (options.debug) {\n      this.debug = (...args: any[]) => console.error(...args)\n    }\n\n    this.debug(this.pattern, this.globSet)\n\n    // step 3: now we have a set, so turn each one into a series of\n    // path-portion matching patterns.\n    // These will be regexps, except in the case of \"**\", which is\n    // set to the GLOBSTAR object for globstar behavior,\n    // and will not contain any / characters\n    //\n    // First, we preprocess to make the glob pattern sets a bit simpler\n    // and deduped.  There are some perf-killing patterns that can cause\n    // problems with a glob walk, but we can simplify them down a bit.\n    const rawGlobParts = this.globSet.map(s => this.slashSplit(s))\n    this.globParts = this.preprocess(rawGlobParts)\n    this.debug(this.pattern, this.globParts)\n\n    // glob --> regexps\n    let set = this.globParts.map((s, _, __) => {\n      if (this.isWindows && this.windowsNoMagicRoot) {\n        // check if it's a drive or unc path.\n        const isUNC =\n          s[0] === '' &&\n          s[1] === '' &&\n          (s[2] === '?' || !globMagic.test(s[2])) &&\n          !globMagic.test(s[3])\n        const isDrive = /^[a-z]:/i.test(s[0])\n        if (isUNC) {\n          return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))]\n        } else if (isDrive) {\n          return [s[0], ...s.slice(1).map(ss => this.parse(ss))]\n        }\n      }\n      return s.map(ss => this.parse(ss))\n    })\n\n    this.debug(this.pattern, set)\n\n    // filter out everything that didn't compile properly.\n    this.set = set.filter(\n      s => s.indexOf(false) === -1\n    ) as ParseReturnFiltered[][]\n\n    // do not treat the ? in UNC paths as magic\n    if (this.isWindows) {\n      for (let i = 0; i < this.set.length; i++) {\n        const p = this.set[i]\n        if (\n          p[0] === '' &&\n          p[1] === '' &&\n          this.globParts[i][2] === '?' &&\n          typeof p[3] === 'string' &&\n          /^[a-z]:$/i.test(p[3])\n        ) {\n          p[2] = '?'\n        }\n      }\n    }\n\n    this.debug(this.pattern, this.set)\n  }\n\n  // various transforms to equivalent pattern sets that are\n  // faster to process in a filesystem walk.  The goal is to\n  // eliminate what we can, and push all ** patterns as far\n  // to the right as possible, even if it increases the number\n  // of patterns that we have to process.\n  preprocess(globParts: string[][]) {\n    // if we're not in globstar mode, then turn all ** into *\n    if (this.options.noglobstar) {\n      for (let i = 0; i < globParts.length; i++) {\n        for (let j = 0; j < globParts[i].length; j++) {\n          if (globParts[i][j] === '**') {\n            globParts[i][j] = '*'\n          }\n        }\n      }\n    }\n\n    const { optimizationLevel = 1 } = this.options\n\n    if (optimizationLevel >= 2) {\n      // aggressive optimization for the purpose of fs walking\n      globParts = this.firstPhasePreProcess(globParts)\n      globParts = this.secondPhasePreProcess(globParts)\n    } else if (optimizationLevel >= 1) {\n      // just basic optimizations to remove some .. parts\n      globParts = this.levelOneOptimize(globParts)\n    } else {\n      // just collapse multiple ** portions into one\n      globParts = this.adjascentGlobstarOptimize(globParts)\n    }\n\n    return globParts\n  }\n\n  // just get rid of adjascent ** portions\n  adjascentGlobstarOptimize(globParts: string[][]) {\n    return globParts.map(parts => {\n      let gs: number = -1\n      while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n        let i = gs\n        while (parts[i + 1] === '**') {\n          i++\n        }\n        if (i !== gs) {\n          parts.splice(gs, i - gs)\n        }\n      }\n      return parts\n    })\n  }\n\n  // get rid of adjascent ** and resolve .. portions\n  levelOneOptimize(globParts: string[][]) {\n    return globParts.map(parts => {\n      parts = parts.reduce((set: string[], part) => {\n        const prev = set[set.length - 1]\n        if (part === '**' && prev === '**') {\n          return set\n        }\n        if (part === '..') {\n          if (prev && prev !== '..' && prev !== '.' && prev !== '**') {\n            set.pop()\n            return set\n          }\n        }\n        set.push(part)\n        return set\n      }, [])\n      return parts.length === 0 ? [''] : parts\n    })\n  }\n\n  levelTwoFileOptimize(parts: string | string[]) {\n    if (!Array.isArray(parts)) {\n      parts = this.slashSplit(parts)\n    }\n    let didSomething: boolean = false\n    do {\n      didSomething = false\n      // 
// -> 
/\n      if (!this.preserveMultipleSlashes) {\n        for (let i = 1; i < parts.length - 1; i++) {\n          const p = parts[i]\n          // don't squeeze out UNC patterns\n          if (i === 1 && p === '' && parts[0] === '') continue\n          if (p === '.' || p === '') {\n            didSomething = true\n            parts.splice(i, 1)\n            i--\n          }\n        }\n        if (\n          parts[0] === '.' &&\n          parts.length === 2 &&\n          (parts[1] === '.' || parts[1] === '')\n        ) {\n          didSomething = true\n          parts.pop()\n        }\n      }\n\n      // 
/

/../ ->

/\n      let dd: number = 0\n      while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n        const p = parts[dd - 1]\n        if (p && p !== '.' && p !== '..' && p !== '**') {\n          didSomething = true\n          parts.splice(dd - 1, 2)\n          dd -= 2\n        }\n      }\n    } while (didSomething)\n    return parts.length === 0 ? [''] : parts\n  }\n\n  // First phase: single-pattern processing\n  // 
 is 1 or more portions\n  //  is 1 or more portions\n  // 

is any portion other than ., .., '', or **\n // is . or ''\n //\n // **/.. is *brutal* for filesystem walking performance, because\n // it effectively resets the recursive walk each time it occurs,\n // and ** cannot be reduced out by a .. pattern part like a regexp\n // or most strings (other than .., ., and '') can be.\n //\n //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/}\n //

// -> 
/\n  // 
/

/../ ->

/\n  // **/**/ -> **/\n  //\n  // **/*/ -> */**/ <== not valid because ** doesn't follow\n  // this WOULD be allowed if ** did follow symlinks, or * didn't\n  firstPhasePreProcess(globParts: string[][]) {\n    let didSomething = false\n    do {\n      didSomething = false\n      // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/}\n for (let parts of globParts) {\n let gs: number = -1\n while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n let gss: number = gs\n while (parts[gss + 1] === '**') {\n //

/**/**/ -> 
/**/\n            gss++\n          }\n          // eg, if gs is 2 and gss is 4, that means we have 3 **\n          // parts, and can remove 2 of them.\n          if (gss > gs) {\n            parts.splice(gs + 1, gss - gs)\n          }\n\n          let next = parts[gs + 1]\n          const p = parts[gs + 2]\n          const p2 = parts[gs + 3]\n          if (next !== '..') continue\n          if (\n            !p ||\n            p === '.' ||\n            p === '..' ||\n            !p2 ||\n            p2 === '.' ||\n            p2 === '..'\n          ) {\n            continue\n          }\n          didSomething = true\n          // edit parts in place, and push the new one\n          parts.splice(gs, 1)\n          const other = parts.slice(0)\n          other[gs] = '**'\n          globParts.push(other)\n          gs--\n        }\n\n        // 
// -> 
/\n        if (!this.preserveMultipleSlashes) {\n          for (let i = 1; i < parts.length - 1; i++) {\n            const p = parts[i]\n            // don't squeeze out UNC patterns\n            if (i === 1 && p === '' && parts[0] === '') continue\n            if (p === '.' || p === '') {\n              didSomething = true\n              parts.splice(i, 1)\n              i--\n            }\n          }\n          if (\n            parts[0] === '.' &&\n            parts.length === 2 &&\n            (parts[1] === '.' || parts[1] === '')\n          ) {\n            didSomething = true\n            parts.pop()\n          }\n        }\n\n        // 
/

/../ ->

/\n        let dd: number = 0\n        while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n          const p = parts[dd - 1]\n          if (p && p !== '.' && p !== '..' && p !== '**') {\n            didSomething = true\n            const needDot = dd === 1 && parts[dd + 1] === '**'\n            const splin = needDot ? ['.'] : []\n            parts.splice(dd - 1, 2, ...splin)\n            if (parts.length === 0) parts.push('')\n            dd -= 2\n          }\n        }\n      }\n    } while (didSomething)\n\n    return globParts\n  }\n\n  // second phase: multi-pattern dedupes\n  // {
/*/,
/

/} ->

/*/\n  // {
/,
/} -> 
/\n  // {
/**/,
/} -> 
/**/\n  //\n  // {
/**/,
/**/

/} ->

/**/\n  // ^-- not valid because ** doens't follow symlinks\n  secondPhasePreProcess(globParts: string[][]): string[][] {\n    for (let i = 0; i < globParts.length - 1; i++) {\n      for (let j = i + 1; j < globParts.length; j++) {\n        const matched = this.partsMatch(\n          globParts[i],\n          globParts[j],\n          !this.preserveMultipleSlashes\n        )\n        if (matched) {\n          globParts[i] = []\n          globParts[j] = matched\n          break\n        }\n      }\n    }\n    return globParts.filter(gs => gs.length)\n  }\n\n  partsMatch(\n    a: string[],\n    b: string[],\n    emptyGSMatch: boolean = false\n  ): false | string[] {\n    let ai = 0\n    let bi = 0\n    let result: string[] = []\n    let which: string = ''\n    while (ai < a.length && bi < b.length) {\n      if (a[ai] === b[bi]) {\n        result.push(which === 'b' ? b[bi] : a[ai])\n        ai++\n        bi++\n      } else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {\n        result.push(a[ai])\n        ai++\n      } else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {\n        result.push(b[bi])\n        bi++\n      } else if (\n        a[ai] === '*' &&\n        b[bi] &&\n        (this.options.dot || !b[bi].startsWith('.')) &&\n        b[bi] !== '**'\n      ) {\n        if (which === 'b') return false\n        which = 'a'\n        result.push(a[ai])\n        ai++\n        bi++\n      } else if (\n        b[bi] === '*' &&\n        a[ai] &&\n        (this.options.dot || !a[ai].startsWith('.')) &&\n        a[ai] !== '**'\n      ) {\n        if (which === 'a') return false\n        which = 'b'\n        result.push(b[bi])\n        ai++\n        bi++\n      } else {\n        return false\n      }\n    }\n    // if we fall out of the loop, it means they two are identical\n    // as long as their lengths match\n    return a.length === b.length && result\n  }\n\n  parseNegate() {\n    if (this.nonegate) return\n\n    const pattern = this.pattern\n    let negate = false\n    let negateOffset = 0\n\n    for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {\n      negate = !negate\n      negateOffset++\n    }\n\n    if (negateOffset) this.pattern = pattern.slice(negateOffset)\n    this.negate = negate\n  }\n\n  // set partial to true to test if, for example,\n  // \"/a/b\" matches the start of \"/*/b/*/d\"\n  // Partial means, if you run out of file before you run\n  // out of pattern, then that's fine, as long as all\n  // the parts match.\n  matchOne(file: string[], pattern: ParseReturn[], partial: boolean = false) {\n    const options = this.options\n\n    // UNC paths like //?/X:/... can match X:/... and vice versa\n    // Drive letters in absolute drive or unc paths are always compared\n    // case-insensitively.\n    if (this.isWindows) {\n      const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0])\n      const fileUNC =\n        !fileDrive &&\n        file[0] === '' &&\n        file[1] === '' &&\n        file[2] === '?' &&\n        /^[a-z]:$/i.test(file[3])\n\n      const patternDrive =\n        typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0])\n      const patternUNC =\n        !patternDrive &&\n        pattern[0] === '' &&\n        pattern[1] === '' &&\n        pattern[2] === '?' &&\n        typeof pattern[3] === 'string' &&\n        /^[a-z]:$/i.test(pattern[3])\n\n      const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined\n      const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined\n      if (typeof fdi === 'number' && typeof pdi === 'number') {\n        const [fd, pd]: [string, string] = [file[fdi], pattern[pdi] as string]\n        if (fd.toLowerCase() === pd.toLowerCase()) {\n          pattern[pdi] = fd\n          if (pdi > fdi) {\n            pattern = pattern.slice(pdi)\n          } else if (fdi > pdi) {\n            file = file.slice(fdi)\n          }\n        }\n      }\n    }\n\n    // resolve and reduce . and .. portions in the file as well.\n    // dont' need to do the second phase, because it's only one string[]\n    const { optimizationLevel = 1 } = this.options\n    if (optimizationLevel >= 2) {\n      file = this.levelTwoFileOptimize(file)\n    }\n\n    this.debug('matchOne', this, { file, pattern })\n    this.debug('matchOne', file.length, pattern.length)\n\n    for (\n      var fi = 0, pi = 0, fl = file.length, pl = pattern.length;\n      fi < fl && pi < pl;\n      fi++, pi++\n    ) {\n      this.debug('matchOne loop')\n      var p = pattern[pi]\n      var f = file[fi]\n\n      this.debug(pattern, p, f)\n\n      // should be impossible.\n      // some invalid regexp stuff in the set.\n      /* c8 ignore start */\n      if (p === false) {\n        return false\n      }\n      /* c8 ignore stop */\n\n      if (p === GLOBSTAR) {\n        this.debug('GLOBSTAR', [pattern, p, f])\n\n        // \"**\"\n        // a/**/b/**/c would match the following:\n        // a/b/x/y/z/c\n        // a/x/y/z/b/c\n        // a/b/x/b/x/c\n        // a/b/c\n        // To do this, take the rest of the pattern after\n        // the **, and see if it would match the file remainder.\n        // If so, return success.\n        // If not, the ** \"swallows\" a segment, and try again.\n        // This is recursively awful.\n        //\n        // a/**/b/**/c matching a/b/x/y/z/c\n        // - a matches a\n        // - doublestar\n        //   - matchOne(b/x/y/z/c, b/**/c)\n        //     - b matches b\n        //     - doublestar\n        //       - matchOne(x/y/z/c, c) -> no\n        //       - matchOne(y/z/c, c) -> no\n        //       - matchOne(z/c, c) -> no\n        //       - matchOne(c, c) yes, hit\n        var fr = fi\n        var pr = pi + 1\n        if (pr === pl) {\n          this.debug('** at the end')\n          // a ** at the end will just swallow the rest.\n          // We have found a match.\n          // however, it will not swallow /.x, unless\n          // options.dot is set.\n          // . and .. are *never* matched by **, for explosively\n          // exponential reasons.\n          for (; fi < fl; fi++) {\n            if (\n              file[fi] === '.' ||\n              file[fi] === '..' ||\n              (!options.dot && file[fi].charAt(0) === '.')\n            )\n              return false\n          }\n          return true\n        }\n\n        // ok, let's see if we can swallow whatever we can.\n        while (fr < fl) {\n          var swallowee = file[fr]\n\n          this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n          // XXX remove this slice.  Just pass the start index.\n          if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n            this.debug('globstar found match!', fr, fl, swallowee)\n            // found a match.\n            return true\n          } else {\n            // can't swallow \".\" or \"..\" ever.\n            // can only swallow \".foo\" when explicitly asked.\n            if (\n              swallowee === '.' ||\n              swallowee === '..' ||\n              (!options.dot && swallowee.charAt(0) === '.')\n            ) {\n              this.debug('dot detected!', file, fr, pattern, pr)\n              break\n            }\n\n            // ** swallows a segment, and continue.\n            this.debug('globstar swallow a segment, and continue')\n            fr++\n          }\n        }\n\n        // no match was found.\n        // However, in partial mode, we can't say this is necessarily over.\n        /* c8 ignore start */\n        if (partial) {\n          // ran out of file\n          this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n          if (fr === fl) {\n            return true\n          }\n        }\n        /* c8 ignore stop */\n        return false\n      }\n\n      // something other than **\n      // non-magic patterns just have to match exactly\n      // patterns with magic have been turned into regexps.\n      let hit: boolean\n      if (typeof p === 'string') {\n        hit = f === p\n        this.debug('string match', p, f, hit)\n      } else {\n        hit = p.test(f)\n        this.debug('pattern match', p, f, hit)\n      }\n\n      if (!hit) return false\n    }\n\n    // Note: ending in / means that we'll get a final \"\"\n    // at the end of the pattern.  This can only match a\n    // corresponding \"\" at the end of the file.\n    // If the file ends in /, then it can only match a\n    // a pattern that ends in /, unless the pattern just\n    // doesn't have any more for it. But, a/b/ should *not*\n    // match \"a/b/*\", even though \"\" matches against the\n    // [^/]*? pattern, except in partial mode, where it might\n    // simply not be reached yet.\n    // However, a/b/ should still satisfy a/*\n\n    // now either we fell off the end of the pattern, or we're done.\n    if (fi === fl && pi === pl) {\n      // ran out of pattern and filename at the same time.\n      // an exact hit!\n      return true\n    } else if (fi === fl) {\n      // ran out of file, but still had pattern left.\n      // this is ok if we're doing the match as part of\n      // a glob fs traversal.\n      return partial\n    } else if (pi === pl) {\n      // ran out of pattern, still have file left.\n      // this is only acceptable if we're on the very last\n      // empty segment of a file with a trailing slash.\n      // a/* should match a/b/\n      return fi === fl - 1 && file[fi] === ''\n\n      /* c8 ignore start */\n    } else {\n      // should be unreachable.\n      throw new Error('wtf?')\n    }\n    /* c8 ignore stop */\n  }\n\n  braceExpand() {\n    return braceExpand(this.pattern, this.options)\n  }\n\n  parse(pattern: string): ParseReturn {\n    assertValidPattern(pattern)\n\n    const options = this.options\n\n    // shortcuts\n    if (pattern === '**') return GLOBSTAR\n    if (pattern === '') return ''\n\n    // far and away, the most common glob pattern parts are\n    // *, *.*, and *.  Add a fast check method for those.\n    let m: RegExpMatchArray | null\n    let fastTest: null | ((f: string) => boolean) = null\n    if ((m = pattern.match(starRE))) {\n      fastTest = options.dot ? starTestDot : starTest\n    } else if ((m = pattern.match(starDotExtRE))) {\n      fastTest = (\n        options.nocase\n          ? options.dot\n            ? starDotExtTestNocaseDot\n            : starDotExtTestNocase\n          : options.dot\n          ? starDotExtTestDot\n          : starDotExtTest\n      )(m[1])\n    } else if ((m = pattern.match(qmarksRE))) {\n      fastTest = (\n        options.nocase\n          ? options.dot\n            ? qmarksTestNocaseDot\n            : qmarksTestNocase\n          : options.dot\n          ? qmarksTestDot\n          : qmarksTest\n      )(m)\n    } else if ((m = pattern.match(starDotStarRE))) {\n      fastTest = options.dot ? starDotStarTestDot : starDotStarTest\n    } else if ((m = pattern.match(dotStarRE))) {\n      fastTest = dotStarTest\n    }\n\n    const re = AST.fromGlob(pattern, this.options).toMMPattern()\n    if (fastTest && typeof re === 'object') {\n      // Avoids overriding in frozen environments\n      Reflect.defineProperty(re, 'test', { value: fastTest })\n    }\n    return re\n  }\n\n  makeRe() {\n    if (this.regexp || this.regexp === false) return this.regexp\n\n    // at this point, this.set is a 2d array of partial\n    // pattern strings, or \"**\".\n    //\n    // It's better to use .match().  This function shouldn't\n    // be used, really, but it's pretty convenient sometimes,\n    // when you just want to work with a regex.\n    const set = this.set\n\n    if (!set.length) {\n      this.regexp = false\n      return this.regexp\n    }\n    const options = this.options\n\n    const twoStar = options.noglobstar\n      ? star\n      : options.dot\n      ? twoStarDot\n      : twoStarNoDot\n    const flags = new Set(options.nocase ? ['i'] : [])\n\n    // regexpify non-globstar patterns\n    // if ** is only item, then we just do one twoStar\n    // if ** is first, and there are more, prepend (\\/|twoStar\\/)? to next\n    // if ** is last, append (\\/twoStar|) to previous\n    // if ** is in the middle, append (\\/|\\/twoStar\\/) to previous\n    // then filter out GLOBSTAR symbols\n    let re = set\n      .map(pattern => {\n        const pp: (string | typeof GLOBSTAR)[] = pattern.map(p => {\n          if (p instanceof RegExp) {\n            for (const f of p.flags.split('')) flags.add(f)\n          }\n          return typeof p === 'string'\n            ? regExpEscape(p)\n            : p === GLOBSTAR\n            ? GLOBSTAR\n            : p._src\n        }) as (string | typeof GLOBSTAR)[]\n        pp.forEach((p, i) => {\n          const next = pp[i + 1]\n          const prev = pp[i - 1]\n          if (p !== GLOBSTAR || prev === GLOBSTAR) {\n            return\n          }\n          if (prev === undefined) {\n            if (next !== undefined && next !== GLOBSTAR) {\n              pp[i + 1] = '(?:\\\\/|' + twoStar + '\\\\/)?' + next\n            } else {\n              pp[i] = twoStar\n            }\n          } else if (next === undefined) {\n            pp[i - 1] = prev + '(?:\\\\/|' + twoStar + ')?'\n          } else if (next !== GLOBSTAR) {\n            pp[i - 1] = prev + '(?:\\\\/|\\\\/' + twoStar + '\\\\/)' + next\n            pp[i + 1] = GLOBSTAR\n          }\n        })\n        return pp.filter(p => p !== GLOBSTAR).join('/')\n      })\n      .join('|')\n\n    // need to wrap in parens if we had more than one thing with |,\n    // otherwise only the first will be anchored to ^ and the last to $\n    const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', '']\n    // must match entire pattern\n    // ending in a * or ** will make it less strict.\n    re = '^' + open + re + close + '$'\n\n    // can match anything, as long as it's not this.\n    if (this.negate) re = '^(?!' + re + ').+$'\n\n    try {\n      this.regexp = new RegExp(re, [...flags].join(''))\n      /* c8 ignore start */\n    } catch (ex) {\n      // should be impossible\n      this.regexp = false\n    }\n    /* c8 ignore stop */\n    return this.regexp\n  }\n\n  slashSplit(p: string) {\n    // if p starts with // on windows, we preserve that\n    // so that UNC paths aren't broken.  Otherwise, any number of\n    // / characters are coalesced into one, unless\n    // preserveMultipleSlashes is set to true.\n    if (this.preserveMultipleSlashes) {\n      return p.split('/')\n    } else if (this.isWindows && /^\\/\\/[^\\/]+/.test(p)) {\n      // add an extra '' for the one we lose\n      return ['', ...p.split(/\\/+/)]\n    } else {\n      return p.split(/\\/+/)\n    }\n  }\n\n  match(f: string, partial = this.partial) {\n    this.debug('match', f, this.pattern)\n    // short-circuit in the case of busted things.\n    // comments, etc.\n    if (this.comment) {\n      return false\n    }\n    if (this.empty) {\n      return f === ''\n    }\n\n    if (f === '/' && partial) {\n      return true\n    }\n\n    const options = this.options\n\n    // windows: need to use /, not \\\n    if (this.isWindows) {\n      f = f.split('\\\\').join('/')\n    }\n\n    // treat the test path as a set of pathparts.\n    const ff = this.slashSplit(f)\n    this.debug(this.pattern, 'split', ff)\n\n    // just ONE of the pattern sets in this.set needs to match\n    // in order for it to be valid.  If negating, then just one\n    // match means that we have failed.\n    // Either way, return on the first hit.\n\n    const set = this.set\n    this.debug(this.pattern, 'set', set)\n\n    // Find the basename of the path by looking for the last non-empty segment\n    let filename: string = ff[ff.length - 1]\n    if (!filename) {\n      for (let i = ff.length - 2; !filename && i >= 0; i--) {\n        filename = ff[i]\n      }\n    }\n\n    for (let i = 0; i < set.length; i++) {\n      const pattern = set[i]\n      let file = ff\n      if (options.matchBase && pattern.length === 1) {\n        file = [filename]\n      }\n      const hit = this.matchOne(file, pattern, partial)\n      if (hit) {\n        if (options.flipNegate) {\n          return true\n        }\n        return !this.negate\n      }\n    }\n\n    // didn't get any hits.  this is success if it's a negative\n    // pattern, failure otherwise.\n    if (options.flipNegate) {\n      return false\n    }\n    return this.negate\n  }\n\n  static defaults(def: MinimatchOptions) {\n    return minimatch.defaults(def).Minimatch\n  }\n}\n/* c8 ignore start */\nexport { AST } from './ast.js'\nexport { escape } from './escape.js'\nexport { unescape } from './unescape.js'\n/* c8 ignore stop */\nminimatch.AST = AST\nminimatch.Minimatch = Minimatch\nminimatch.escape = escape\nminimatch.unescape = unescape\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/package.json b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/package.json
deleted file mode 100644
index 5bbefffb..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  "type": "commonjs"
-}
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts
deleted file mode 100644
index 23a7b387..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { MinimatchOptions } from './index.js';
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-export declare const unescape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-//# sourceMappingURL=unescape.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts.map
deleted file mode 100644
index 7ace0701..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"unescape.d.ts","sourceRoot":"","sources":["../../src/unescape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,MAChB,MAAM,8BAGN,KAAK,gBAAgB,EAAE,sBAAsB,CAAC,WAKlD,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js
deleted file mode 100644
index 47c36bce..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.unescape = void 0;
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    return windowsPathsNoEscape
-        ? s.replace(/\[([^\/\\])\]/g, '$1')
-        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
-};
-exports.unescape = unescape;
-//# sourceMappingURL=unescape.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map
deleted file mode 100644
index 353d3aa0..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"unescape.js","sourceRoot":"","sources":["../../src/unescape.ts"],"names":[],"mappings":";;;AACA;;;;;;;;;;;;;GAaG;AACI,MAAM,QAAQ,GAAG,CACtB,CAAS,EACT,EACE,oBAAoB,GAAG,KAAK,MACsB,EAAE,EACtD,EAAE;IACF,OAAO,oBAAoB;QACzB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC;QACnC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;AAChF,CAAC,CAAA;AATY,QAAA,QAAQ,YASpB","sourcesContent":["import { MinimatchOptions } from './index.js'\n/**\n * Un-escape a string that has been escaped with {@link escape}.\n *\n * If the {@link windowsPathsNoEscape} option is used, then square-brace\n * escapes are removed, but not backslash escapes.  For example, it will turn\n * the string `'[*]'` into `*`, but it will not turn `'\\\\*'` into `'*'`,\n * becuase `\\` is a path separator in `windowsPathsNoEscape` mode.\n *\n * When `windowsPathsNoEscape` is not set, then both brace escapes and\n * backslash escapes are removed.\n *\n * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped\n * or unescaped.\n */\nexport const unescape = (\n  s: string,\n  {\n    windowsPathsNoEscape = false,\n  }: Pick = {}\n) => {\n  return windowsPathsNoEscape\n    ? s.replace(/\\[([^\\/\\\\])\\]/g, '$1')\n    : s.replace(/((?!\\\\).|^)\\[([^\\/\\\\])\\]/g, '$1$2').replace(/\\\\([^\\/])/g, '$1')\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts
deleted file mode 100644
index 8e318b23..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare const assertValidPattern: (pattern: any) => void;
-//# sourceMappingURL=assert-valid-pattern.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map
deleted file mode 100644
index c61c0310..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"assert-valid-pattern.d.ts","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAUlD,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
deleted file mode 100644
index 7b534fc3..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js
+++ /dev/null
@@ -1,10 +0,0 @@
-const MAX_PATTERN_LENGTH = 1024 * 64;
-export const assertValidPattern = (pattern) => {
-    if (typeof pattern !== 'string') {
-        throw new TypeError('invalid pattern');
-    }
-    if (pattern.length > MAX_PATTERN_LENGTH) {
-        throw new TypeError('pattern is too long');
-    }
-};
-//# sourceMappingURL=assert-valid-pattern.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
deleted file mode 100644
index b1a5a0b9..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"assert-valid-pattern.js","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAA;AACpC,MAAM,CAAC,MAAM,kBAAkB,GAA2B,CACxD,OAAY,EACe,EAAE;IAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAA;KACvC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,kBAAkB,EAAE;QACvC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAA;KAC3C;AACH,CAAC,CAAA","sourcesContent":["const MAX_PATTERN_LENGTH = 1024 * 64\nexport const assertValidPattern: (pattern: any) => void = (\n  pattern: any\n): asserts pattern is string => {\n  if (typeof pattern !== 'string') {\n    throw new TypeError('invalid pattern')\n  }\n\n  if (pattern.length > MAX_PATTERN_LENGTH) {\n    throw new TypeError('pattern is too long')\n  }\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts
deleted file mode 100644
index b8c1e544..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { MinimatchOptions, MMRegExp } from './index.js';
-export type ExtglobType = '!' | '?' | '+' | '*' | '@';
-export declare class AST {
-    #private;
-    type: ExtglobType | null;
-    constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions);
-    get hasMagic(): boolean | undefined;
-    toString(): string;
-    push(...parts: (string | AST)[]): void;
-    toJSON(): any[];
-    isStart(): boolean;
-    isEnd(): boolean;
-    copyIn(part: AST | string): void;
-    clone(parent: AST): AST;
-    static fromGlob(pattern: string, options?: MinimatchOptions): AST;
-    toMMPattern(): MMRegExp | string;
-    get options(): MinimatchOptions;
-    toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
-}
-//# sourceMappingURL=ast.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts.map
deleted file mode 100644
index 9e7bfb9a..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAwCvD,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAkCrD,qBAAa,GAAG;;IACd,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;gBAiBtB,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,CAAC,EAAE,GAAG,EACZ,OAAO,GAAE,gBAAqB;IAahC,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAUlC;IAGD,QAAQ,IAAI,MAAM;IA+ClB,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE;IAY/B,MAAM;IAgBN,OAAO,IAAI,OAAO;IAgBlB,KAAK,IAAI,OAAO;IAYhB,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM;IAKzB,KAAK,CAAC,MAAM,EAAE,GAAG;IAsIjB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB;IAQ/D,WAAW,IAAI,QAAQ,GAAG,MAAM;IA2BhC,IAAI,OAAO,qBAEV;IAuED,cAAc,CACZ,QAAQ,CAAC,EAAE,OAAO,GACjB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;CAiMjE"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js
deleted file mode 100644
index 2d2bced6..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js
+++ /dev/null
@@ -1,588 +0,0 @@
-// parse a single path portion
-import { parseClass } from './brace-expressions.js';
-import { unescape } from './unescape.js';
-const types = new Set(['!', '?', '+', '*', '@']);
-const isExtglobType = (c) => types.has(c);
-// Patterns that get prepended to bind to the start of either the
-// entire string, or just a single path portion, to prevent dots
-// and/or traversal patterns, when needed.
-// Exts don't need the ^ or / bit, because the root binds that already.
-const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
-const startNoDot = '(?!\\.)';
-// characters that indicate a start of pattern needs the "no dots" bit,
-// because a dot *might* be matched. ( is not in the list, because in
-// the case of a child extglob, it will handle the prevention itself.
-const addPatternStart = new Set(['[', '.']);
-// cases where traversal is A-OK, no dot prevention needed
-const justDots = new Set(['..', '.']);
-const reSpecials = new Set('().*{}+?[]^$\\!');
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// any single thing other than /
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// use + when we need to ensure that *something* matches, because the * is
-// the only thing in the path portion.
-const starNoEmpty = qmark + '+?';
-// remove the \ chars that we added if we end up doing a nonmagic compare
-// const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
-export class AST {
-    type;
-    #root;
-    #hasMagic;
-    #uflag = false;
-    #parts = [];
-    #parent;
-    #parentIndex;
-    #negs;
-    #filledNegs = false;
-    #options;
-    #toString;
-    // set to true if it's an extglob with no children
-    // (which really means one child of '')
-    #emptyExt = false;
-    constructor(type, parent, options = {}) {
-        this.type = type;
-        // extglobs are inherently magical
-        if (type)
-            this.#hasMagic = true;
-        this.#parent = parent;
-        this.#root = this.#parent ? this.#parent.#root : this;
-        this.#options = this.#root === this ? options : this.#root.#options;
-        this.#negs = this.#root === this ? [] : this.#root.#negs;
-        if (type === '!' && !this.#root.#filledNegs)
-            this.#negs.push(this);
-        this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
-    }
-    get hasMagic() {
-        /* c8 ignore start */
-        if (this.#hasMagic !== undefined)
-            return this.#hasMagic;
-        /* c8 ignore stop */
-        for (const p of this.#parts) {
-            if (typeof p === 'string')
-                continue;
-            if (p.type || p.hasMagic)
-                return (this.#hasMagic = true);
-        }
-        // note: will be undefined until we generate the regexp src and find out
-        return this.#hasMagic;
-    }
-    // reconstructs the pattern
-    toString() {
-        if (this.#toString !== undefined)
-            return this.#toString;
-        if (!this.type) {
-            return (this.#toString = this.#parts.map(p => String(p)).join(''));
-        }
-        else {
-            return (this.#toString =
-                this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
-        }
-    }
-    #fillNegs() {
-        /* c8 ignore start */
-        if (this !== this.#root)
-            throw new Error('should only call on root');
-        if (this.#filledNegs)
-            return this;
-        /* c8 ignore stop */
-        // call toString() once to fill this out
-        this.toString();
-        this.#filledNegs = true;
-        let n;
-        while ((n = this.#negs.pop())) {
-            if (n.type !== '!')
-                continue;
-            // walk up the tree, appending everthing that comes AFTER parentIndex
-            let p = n;
-            let pp = p.#parent;
-            while (pp) {
-                for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
-                    for (const part of n.#parts) {
-                        /* c8 ignore start */
-                        if (typeof part === 'string') {
-                            throw new Error('string part in extglob AST??');
-                        }
-                        /* c8 ignore stop */
-                        part.copyIn(pp.#parts[i]);
-                    }
-                }
-                p = pp;
-                pp = p.#parent;
-            }
-        }
-        return this;
-    }
-    push(...parts) {
-        for (const p of parts) {
-            if (p === '')
-                continue;
-            /* c8 ignore start */
-            if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
-                throw new Error('invalid part: ' + p);
-            }
-            /* c8 ignore stop */
-            this.#parts.push(p);
-        }
-    }
-    toJSON() {
-        const ret = this.type === null
-            ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
-            : [this.type, ...this.#parts.map(p => p.toJSON())];
-        if (this.isStart() && !this.type)
-            ret.unshift([]);
-        if (this.isEnd() &&
-            (this === this.#root ||
-                (this.#root.#filledNegs && this.#parent?.type === '!'))) {
-            ret.push({});
-        }
-        return ret;
-    }
-    isStart() {
-        if (this.#root === this)
-            return true;
-        // if (this.type) return !!this.#parent?.isStart()
-        if (!this.#parent?.isStart())
-            return false;
-        if (this.#parentIndex === 0)
-            return true;
-        // if everything AHEAD of this is a negation, then it's still the "start"
-        const p = this.#parent;
-        for (let i = 0; i < this.#parentIndex; i++) {
-            const pp = p.#parts[i];
-            if (!(pp instanceof AST && pp.type === '!')) {
-                return false;
-            }
-        }
-        return true;
-    }
-    isEnd() {
-        if (this.#root === this)
-            return true;
-        if (this.#parent?.type === '!')
-            return true;
-        if (!this.#parent?.isEnd())
-            return false;
-        if (!this.type)
-            return this.#parent?.isEnd();
-        // if not root, it'll always have a parent
-        /* c8 ignore start */
-        const pl = this.#parent ? this.#parent.#parts.length : 0;
-        /* c8 ignore stop */
-        return this.#parentIndex === pl - 1;
-    }
-    copyIn(part) {
-        if (typeof part === 'string')
-            this.push(part);
-        else
-            this.push(part.clone(this));
-    }
-    clone(parent) {
-        const c = new AST(this.type, parent);
-        for (const p of this.#parts) {
-            c.copyIn(p);
-        }
-        return c;
-    }
-    static #parseAST(str, ast, pos, opt) {
-        let escaping = false;
-        let inBrace = false;
-        let braceStart = -1;
-        let braceNeg = false;
-        if (ast.type === null) {
-            // outside of a extglob, append until we find a start
-            let i = pos;
-            let acc = '';
-            while (i < str.length) {
-                const c = str.charAt(i++);
-                // still accumulate escapes at this point, but we do ignore
-                // starts that are escaped
-                if (escaping || c === '\\') {
-                    escaping = !escaping;
-                    acc += c;
-                    continue;
-                }
-                if (inBrace) {
-                    if (i === braceStart + 1) {
-                        if (c === '^' || c === '!') {
-                            braceNeg = true;
-                        }
-                    }
-                    else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                        inBrace = false;
-                    }
-                    acc += c;
-                    continue;
-                }
-                else if (c === '[') {
-                    inBrace = true;
-                    braceStart = i;
-                    braceNeg = false;
-                    acc += c;
-                    continue;
-                }
-                if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
-                    ast.push(acc);
-                    acc = '';
-                    const ext = new AST(c, ast);
-                    i = AST.#parseAST(str, ext, i, opt);
-                    ast.push(ext);
-                    continue;
-                }
-                acc += c;
-            }
-            ast.push(acc);
-            return i;
-        }
-        // some kind of extglob, pos is at the (
-        // find the next | or )
-        let i = pos + 1;
-        let part = new AST(null, ast);
-        const parts = [];
-        let acc = '';
-        while (i < str.length) {
-            const c = str.charAt(i++);
-            // still accumulate escapes at this point, but we do ignore
-            // starts that are escaped
-            if (escaping || c === '\\') {
-                escaping = !escaping;
-                acc += c;
-                continue;
-            }
-            if (inBrace) {
-                if (i === braceStart + 1) {
-                    if (c === '^' || c === '!') {
-                        braceNeg = true;
-                    }
-                }
-                else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
-                    inBrace = false;
-                }
-                acc += c;
-                continue;
-            }
-            else if (c === '[') {
-                inBrace = true;
-                braceStart = i;
-                braceNeg = false;
-                acc += c;
-                continue;
-            }
-            if (isExtglobType(c) && str.charAt(i) === '(') {
-                part.push(acc);
-                acc = '';
-                const ext = new AST(c, part);
-                part.push(ext);
-                i = AST.#parseAST(str, ext, i, opt);
-                continue;
-            }
-            if (c === '|') {
-                part.push(acc);
-                acc = '';
-                parts.push(part);
-                part = new AST(null, ast);
-                continue;
-            }
-            if (c === ')') {
-                if (acc === '' && ast.#parts.length === 0) {
-                    ast.#emptyExt = true;
-                }
-                part.push(acc);
-                acc = '';
-                ast.push(...parts, part);
-                return i;
-            }
-            acc += c;
-        }
-        // unfinished extglob
-        // if we got here, it was a malformed extglob! not an extglob, but
-        // maybe something else in there.
-        ast.type = null;
-        ast.#hasMagic = undefined;
-        ast.#parts = [str.substring(pos - 1)];
-        return i;
-    }
-    static fromGlob(pattern, options = {}) {
-        const ast = new AST(null, undefined, options);
-        AST.#parseAST(pattern, ast, 0, options);
-        return ast;
-    }
-    // returns the regular expression if there's magic, or the unescaped
-    // string if not.
-    toMMPattern() {
-        // should only be called on root
-        /* c8 ignore start */
-        if (this !== this.#root)
-            return this.#root.toMMPattern();
-        /* c8 ignore stop */
-        const glob = this.toString();
-        const [re, body, hasMagic, uflag] = this.toRegExpSource();
-        // if we're in nocase mode, and not nocaseMagicOnly, then we do
-        // still need a regular expression if we have to case-insensitively
-        // match capital/lowercase characters.
-        const anyMagic = hasMagic ||
-            this.#hasMagic ||
-            (this.#options.nocase &&
-                !this.#options.nocaseMagicOnly &&
-                glob.toUpperCase() !== glob.toLowerCase());
-        if (!anyMagic) {
-            return body;
-        }
-        const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
-        return Object.assign(new RegExp(`^${re}$`, flags), {
-            _src: re,
-            _glob: glob,
-        });
-    }
-    get options() {
-        return this.#options;
-    }
-    // returns the string match, the regexp source, whether there's magic
-    // in the regexp (so a regular expression is required) and whether or
-    // not the uflag is needed for the regular expression (for posix classes)
-    // TODO: instead of injecting the start/end at this point, just return
-    // the BODY of the regexp, along with the start/end portions suitable
-    // for binding the start/end in either a joined full-path makeRe context
-    // (where we bind to (^|/), or a standalone matchPart context (where
-    // we bind to ^, and not /).  Otherwise slashes get duped!
-    //
-    // In part-matching mode, the start is:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: ^(?!\.\.?$)
-    // - if dots allowed or not possible: ^
-    // - if dots possible and not allowed: ^(?!\.)
-    // end is:
-    // - if not isEnd(): nothing
-    // - else: $
-    //
-    // In full-path matching mode, we put the slash at the START of the
-    // pattern, so start is:
-    // - if first pattern: same as part-matching mode
-    // - if not isStart(): nothing
-    // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
-    // - if dots allowed or not possible: /
-    // - if dots possible and not allowed: /(?!\.)
-    // end is:
-    // - if last pattern, same as part-matching mode
-    // - else nothing
-    //
-    // Always put the (?:$|/) on negated tails, though, because that has to be
-    // there to bind the end of the negated pattern portion, and it's easier to
-    // just stick it in now rather than try to inject it later in the middle of
-    // the pattern.
-    //
-    // We can just always return the same end, and leave it up to the caller
-    // to know whether it's going to be used joined or in parts.
-    // And, if the start is adjusted slightly, can do the same there:
-    // - if not isStart: nothing
-    // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
-    // - if dots allowed or not possible: (?:/|^)
-    // - if dots possible and not allowed: (?:/|^)(?!\.)
-    //
-    // But it's better to have a simpler binding without a conditional, for
-    // performance, so probably better to return both start options.
-    //
-    // Then the caller just ignores the end if it's not the first pattern,
-    // and the start always gets applied.
-    //
-    // But that's always going to be $ if it's the ending pattern, or nothing,
-    // so the caller can just attach $ at the end of the pattern when building.
-    //
-    // So the todo is:
-    // - better detect what kind of start is needed
-    // - return both flavors of starting pattern
-    // - attach $ at the end of the pattern when creating the actual RegExp
-    //
-    // Ah, but wait, no, that all only applies to the root when the first pattern
-    // is not an extglob. If the first pattern IS an extglob, then we need all
-    // that dot prevention biz to live in the extglob portions, because eg
-    // +(*|.x*) can match .xy but not .yx.
-    //
-    // So, return the two flavors if it's #root and the first child is not an
-    // AST, otherwise leave it to the child AST to handle it, and there,
-    // use the (?:^|/) style of start binding.
-    //
-    // Even simplified further:
-    // - Since the start for a join is eg /(?!\.) and the start for a part
-    // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
-    // or start or whatever) and prepend ^ or / at the Regexp construction.
-    toRegExpSource(allowDot) {
-        const dot = allowDot ?? !!this.#options.dot;
-        if (this.#root === this)
-            this.#fillNegs();
-        if (!this.type) {
-            const noEmpty = this.isStart() && this.isEnd();
-            const src = this.#parts
-                .map(p => {
-                const [re, _, hasMagic, uflag] = typeof p === 'string'
-                    ? AST.#parseGlob(p, this.#hasMagic, noEmpty)
-                    : p.toRegExpSource(allowDot);
-                this.#hasMagic = this.#hasMagic || hasMagic;
-                this.#uflag = this.#uflag || uflag;
-                return re;
-            })
-                .join('');
-            let start = '';
-            if (this.isStart()) {
-                if (typeof this.#parts[0] === 'string') {
-                    // this is the string that will match the start of the pattern,
-                    // so we need to protect against dots and such.
-                    // '.' and '..' cannot match unless the pattern is that exactly,
-                    // even if it starts with . or dot:true is set.
-                    const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
-                    if (!dotTravAllowed) {
-                        const aps = addPatternStart;
-                        // check if we have a possibility of matching . or ..,
-                        // and prevent that.
-                        const needNoTrav = 
-                        // dots are allowed, and the pattern starts with [ or .
-                        (dot && aps.has(src.charAt(0))) ||
-                            // the pattern starts with \., and then [ or .
-                            (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
-                            // the pattern starts with \.\., and then [ or .
-                            (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
-                        // no need to prevent dots if it can't match a dot, or if a
-                        // sub-pattern will be preventing it anyway.
-                        const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
-                        start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
-                    }
-                }
-            }
-            // append the "end of path portion" pattern to negation tails
-            let end = '';
-            if (this.isEnd() &&
-                this.#root.#filledNegs &&
-                this.#parent?.type === '!') {
-                end = '(?:$|\\/)';
-            }
-            const final = start + src + end;
-            return [
-                final,
-                unescape(src),
-                (this.#hasMagic = !!this.#hasMagic),
-                this.#uflag,
-            ];
-        }
-        // We need to calculate the body *twice* if it's a repeat pattern
-        // at the start, once in nodot mode, then again in dot mode, so a
-        // pattern like *(?) can match 'x.y'
-        const repeated = this.type === '*' || this.type === '+';
-        // some kind of extglob
-        const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
-        let body = this.#partsToRegExp(dot);
-        if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
-            // invalid extglob, has to at least be *something* present, if it's
-            // the entire path portion.
-            const s = this.toString();
-            this.#parts = [s];
-            this.type = null;
-            this.#hasMagic = undefined;
-            return [s, unescape(this.toString()), false, false];
-        }
-        // XXX abstract out this map method
-        let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
-            ? ''
-            : this.#partsToRegExp(true);
-        if (bodyDotAllowed === body) {
-            bodyDotAllowed = '';
-        }
-        if (bodyDotAllowed) {
-            body = `(?:${body})(?:${bodyDotAllowed})*?`;
-        }
-        // an empty !() is exactly equivalent to a starNoEmpty
-        let final = '';
-        if (this.type === '!' && this.#emptyExt) {
-            final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
-        }
-        else {
-            const close = this.type === '!'
-                ? // !() must match something,but !(x) can match ''
-                    '))' +
-                        (this.isStart() && !dot && !allowDot ? startNoDot : '') +
-                        star +
-                        ')'
-                : this.type === '@'
-                    ? ')'
-                    : this.type === '?'
-                        ? ')?'
-                        : this.type === '+' && bodyDotAllowed
-                            ? ')'
-                            : this.type === '*' && bodyDotAllowed
-                                ? `)?`
-                                : `)${this.type}`;
-            final = start + body + close;
-        }
-        return [
-            final,
-            unescape(body),
-            (this.#hasMagic = !!this.#hasMagic),
-            this.#uflag,
-        ];
-    }
-    #partsToRegExp(dot) {
-        return this.#parts
-            .map(p => {
-            // extglob ASTs should only contain parent ASTs
-            /* c8 ignore start */
-            if (typeof p === 'string') {
-                throw new Error('string type in extglob ast??');
-            }
-            /* c8 ignore stop */
-            // can ignore hasMagic, because extglobs are already always magic
-            const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
-            this.#uflag = this.#uflag || uflag;
-            return re;
-        })
-            .filter(p => !(this.isStart() && this.isEnd()) || !!p)
-            .join('|');
-    }
-    static #parseGlob(glob, hasMagic, noEmpty = false) {
-        let escaping = false;
-        let re = '';
-        let uflag = false;
-        for (let i = 0; i < glob.length; i++) {
-            const c = glob.charAt(i);
-            if (escaping) {
-                escaping = false;
-                re += (reSpecials.has(c) ? '\\' : '') + c;
-                continue;
-            }
-            if (c === '\\') {
-                if (i === glob.length - 1) {
-                    re += '\\\\';
-                }
-                else {
-                    escaping = true;
-                }
-                continue;
-            }
-            if (c === '[') {
-                const [src, needUflag, consumed, magic] = parseClass(glob, i);
-                if (consumed) {
-                    re += src;
-                    uflag = uflag || needUflag;
-                    i += consumed - 1;
-                    hasMagic = hasMagic || magic;
-                    continue;
-                }
-            }
-            if (c === '*') {
-                if (noEmpty && glob === '*')
-                    re += starNoEmpty;
-                else
-                    re += star;
-                hasMagic = true;
-                continue;
-            }
-            if (c === '?') {
-                re += qmark;
-                hasMagic = true;
-                continue;
-            }
-            re += regExpEscape(c);
-        }
-        return [re, unescape(glob), !!hasMagic, uflag];
-    }
-}
-//# sourceMappingURL=ast.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js.map
deleted file mode 100644
index f1f8b34c..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/ast.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAwCxC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;AAC7D,MAAM,aAAa,GAAG,CAAC,CAAS,EAAoB,EAAE,CACpD,KAAK,CAAC,GAAG,CAAC,CAAgB,CAAC,CAAA;AAE7B,iEAAiE;AACjE,gEAAgE;AAChE,0CAA0C;AAC1C,uEAAuE;AACvE,MAAM,gBAAgB,GAAG,2BAA2B,CAAA;AACpD,MAAM,UAAU,GAAG,SAAS,CAAA;AAE5B,uEAAuE;AACvE,qEAAqE;AACrE,qEAAqE;AACrE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;AAC3C,0DAA0D;AAC1D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAA;AACrC,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,iBAAiB,CAAC,CAAA;AAC7C,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,EAAE,CACjC,CAAC,CAAC,OAAO,CAAC,0BAA0B,EAAE,MAAM,CAAC,CAAA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,CAAA;gBACf,SAAQ;aACT;YACD,EAAE,IAAI,YAAY,CAAC,CAAC,CAAC,CAAA;SACtB;QACD,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF","sourcesContent":["// parse a single path portion\n\nimport { parseClass } from './brace-expressions.js'\nimport { MinimatchOptions, MMRegExp } from './index.js'\nimport { unescape } from './unescape.js'\n\n// classes [] are handled by the parseClass method\n// for positive extglobs, we sub-parse the contents, and combine,\n// with the appropriate regexp close.\n// for negative extglobs, we sub-parse the contents, but then\n// have to include the rest of the pattern, then the parent, etc.,\n// as the thing that cannot be because RegExp negative lookaheads\n// are different from globs.\n//\n// So for example:\n// a@(i|w!(x|y)z|j)b => ^a(i|w((!?(x|y)zb).*)z|j)b$\n//   1   2 3   4 5 6      1   2    3   46      5 6\n//\n// Assembling the extglob requires not just the negated patterns themselves,\n// but also anything following the negative patterns up to the boundary\n// of the current pattern, plus anything following in the parent pattern.\n//\n//\n// So, first, we parse the string into an AST of extglobs, without turning\n// anything into regexps yet.\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y']}, 'z'], ['j']]}, 'b']\n//\n// Then, for all the negative extglobs, we append whatever comes after in\n// each parent as their tail\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y'], 'z', 'b'}, 'z'], ['j']]}, 'b']\n//\n// Lastly, we turn each of these pieces into a regexp, and join\n//\n//                                 v----- .* because there's more following,\n//                                 v    v  otherwise, .+ because it must be\n//                                 v    v  *something* there.\n// ['^a', {@ ['i', 'w(?:(!?(?:x|y).*zb$).*)z', 'j' ]}, 'b$']\n//   copy what follows into here--^^^^^\n// ['^a', '(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)', 'b$']\n// ['^a(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)b$']\n\nexport type ExtglobType = '!' | '?' | '+' | '*' | '@'\nconst types = new Set(['!', '?', '+', '*', '@'])\nconst isExtglobType = (c: string): c is ExtglobType =>\n  types.has(c as ExtglobType)\n\n// Patterns that get prepended to bind to the start of either the\n// entire string, or just a single path portion, to prevent dots\n// and/or traversal patterns, when needed.\n// Exts don't need the ^ or / bit, because the root binds that already.\nconst startNoTraversal = '(?!(?:^|/)\\\\.\\\\.?(?:$|/))'\nconst startNoDot = '(?!\\\\.)'\n\n// characters that indicate a start of pattern needs the \"no dots\" bit,\n// because a dot *might* be matched. ( is not in the list, because in\n// the case of a child extglob, it will handle the prevention itself.\nconst addPatternStart = new Set(['[', '.'])\n// cases where traversal is A-OK, no dot prevention needed\nconst justDots = new Set(['..', '.'])\nconst reSpecials = new Set('().*{}+?[]^$\\\\!')\nconst regExpEscape = (s: string) =>\n  s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// any single thing other than /\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n// use + when we need to ensure that *something* matches, because the * is\n// the only thing in the path portion.\nconst starNoEmpty = qmark + '+?'\n\n// remove the \\ chars that we added if we end up doing a nonmagic compare\n// const deslash = (s: string) => s.replace(/\\\\(.)/g, '$1')\n\nexport class AST {\n  type: ExtglobType | null\n  readonly #root: AST\n\n  #hasMagic?: boolean\n  #uflag: boolean = false\n  #parts: (string | AST)[] = []\n  readonly #parent?: AST\n  readonly #parentIndex: number\n  #negs: AST[]\n  #filledNegs: boolean = false\n  #options: MinimatchOptions\n  #toString?: string\n  // set to true if it's an extglob with no children\n  // (which really means one child of '')\n  #emptyExt: boolean = false\n\n  constructor(\n    type: ExtglobType | null,\n    parent?: AST,\n    options: MinimatchOptions = {}\n  ) {\n    this.type = type\n    // extglobs are inherently magical\n    if (type) this.#hasMagic = true\n    this.#parent = parent\n    this.#root = this.#parent ? this.#parent.#root : this\n    this.#options = this.#root === this ? options : this.#root.#options\n    this.#negs = this.#root === this ? [] : this.#root.#negs\n    if (type === '!' && !this.#root.#filledNegs) this.#negs.push(this)\n    this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0\n  }\n\n  get hasMagic(): boolean | undefined {\n    /* c8 ignore start */\n    if (this.#hasMagic !== undefined) return this.#hasMagic\n    /* c8 ignore stop */\n    for (const p of this.#parts) {\n      if (typeof p === 'string') continue\n      if (p.type || p.hasMagic) return (this.#hasMagic = true)\n    }\n    // note: will be undefined until we generate the regexp src and find out\n    return this.#hasMagic\n  }\n\n  // reconstructs the pattern\n  toString(): string {\n    if (this.#toString !== undefined) return this.#toString\n    if (!this.type) {\n      return (this.#toString = this.#parts.map(p => String(p)).join(''))\n    } else {\n      return (this.#toString =\n        this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')')\n    }\n  }\n\n  #fillNegs() {\n    /* c8 ignore start */\n    if (this !== this.#root) throw new Error('should only call on root')\n    if (this.#filledNegs) return this\n    /* c8 ignore stop */\n\n    // call toString() once to fill this out\n    this.toString()\n    this.#filledNegs = true\n    let n: AST | undefined\n    while ((n = this.#negs.pop())) {\n      if (n.type !== '!') continue\n      // walk up the tree, appending everthing that comes AFTER parentIndex\n      let p: AST | undefined = n\n      let pp = p.#parent\n      while (pp) {\n        for (\n          let i = p.#parentIndex + 1;\n          !pp.type && i < pp.#parts.length;\n          i++\n        ) {\n          for (const part of n.#parts) {\n            /* c8 ignore start */\n            if (typeof part === 'string') {\n              throw new Error('string part in extglob AST??')\n            }\n            /* c8 ignore stop */\n            part.copyIn(pp.#parts[i])\n          }\n        }\n        p = pp\n        pp = p.#parent\n      }\n    }\n    return this\n  }\n\n  push(...parts: (string | AST)[]) {\n    for (const p of parts) {\n      if (p === '') continue\n      /* c8 ignore start */\n      if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {\n        throw new Error('invalid part: ' + p)\n      }\n      /* c8 ignore stop */\n      this.#parts.push(p)\n    }\n  }\n\n  toJSON() {\n    const ret: any[] =\n      this.type === null\n        ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))\n        : [this.type, ...this.#parts.map(p => (p as AST).toJSON())]\n    if (this.isStart() && !this.type) ret.unshift([])\n    if (\n      this.isEnd() &&\n      (this === this.#root ||\n        (this.#root.#filledNegs && this.#parent?.type === '!'))\n    ) {\n      ret.push({})\n    }\n    return ret\n  }\n\n  isStart(): boolean {\n    if (this.#root === this) return true\n    // if (this.type) return !!this.#parent?.isStart()\n    if (!this.#parent?.isStart()) return false\n    if (this.#parentIndex === 0) return true\n    // if everything AHEAD of this is a negation, then it's still the \"start\"\n    const p = this.#parent\n    for (let i = 0; i < this.#parentIndex; i++) {\n      const pp = p.#parts[i]\n      if (!(pp instanceof AST && pp.type === '!')) {\n        return false\n      }\n    }\n    return true\n  }\n\n  isEnd(): boolean {\n    if (this.#root === this) return true\n    if (this.#parent?.type === '!') return true\n    if (!this.#parent?.isEnd()) return false\n    if (!this.type) return this.#parent?.isEnd()\n    // if not root, it'll always have a parent\n    /* c8 ignore start */\n    const pl = this.#parent ? this.#parent.#parts.length : 0\n    /* c8 ignore stop */\n    return this.#parentIndex === pl - 1\n  }\n\n  copyIn(part: AST | string) {\n    if (typeof part === 'string') this.push(part)\n    else this.push(part.clone(this))\n  }\n\n  clone(parent: AST) {\n    const c = new AST(this.type, parent)\n    for (const p of this.#parts) {\n      c.copyIn(p)\n    }\n    return c\n  }\n\n  static #parseAST(\n    str: string,\n    ast: AST,\n    pos: number,\n    opt: MinimatchOptions\n  ): number {\n    let escaping = false\n    let inBrace = false\n    let braceStart = -1\n    let braceNeg = false\n    if (ast.type === null) {\n      // outside of a extglob, append until we find a start\n      let i = pos\n      let acc = ''\n      while (i < str.length) {\n        const c = str.charAt(i++)\n        // still accumulate escapes at this point, but we do ignore\n        // starts that are escaped\n        if (escaping || c === '\\\\') {\n          escaping = !escaping\n          acc += c\n          continue\n        }\n\n        if (inBrace) {\n          if (i === braceStart + 1) {\n            if (c === '^' || c === '!') {\n              braceNeg = true\n            }\n          } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n            inBrace = false\n          }\n          acc += c\n          continue\n        } else if (c === '[') {\n          inBrace = true\n          braceStart = i\n          braceNeg = false\n          acc += c\n          continue\n        }\n\n        if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {\n          ast.push(acc)\n          acc = ''\n          const ext = new AST(c, ast)\n          i = AST.#parseAST(str, ext, i, opt)\n          ast.push(ext)\n          continue\n        }\n        acc += c\n      }\n      ast.push(acc)\n      return i\n    }\n\n    // some kind of extglob, pos is at the (\n    // find the next | or )\n    let i = pos + 1\n    let part = new AST(null, ast)\n    const parts: AST[] = []\n    let acc = ''\n    while (i < str.length) {\n      const c = str.charAt(i++)\n      // still accumulate escapes at this point, but we do ignore\n      // starts that are escaped\n      if (escaping || c === '\\\\') {\n        escaping = !escaping\n        acc += c\n        continue\n      }\n\n      if (inBrace) {\n        if (i === braceStart + 1) {\n          if (c === '^' || c === '!') {\n            braceNeg = true\n          }\n        } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n          inBrace = false\n        }\n        acc += c\n        continue\n      } else if (c === '[') {\n        inBrace = true\n        braceStart = i\n        braceNeg = false\n        acc += c\n        continue\n      }\n\n      if (isExtglobType(c) && str.charAt(i) === '(') {\n        part.push(acc)\n        acc = ''\n        const ext = new AST(c, part)\n        part.push(ext)\n        i = AST.#parseAST(str, ext, i, opt)\n        continue\n      }\n      if (c === '|') {\n        part.push(acc)\n        acc = ''\n        parts.push(part)\n        part = new AST(null, ast)\n        continue\n      }\n      if (c === ')') {\n        if (acc === '' && ast.#parts.length === 0) {\n          ast.#emptyExt = true\n        }\n        part.push(acc)\n        acc = ''\n        ast.push(...parts, part)\n        return i\n      }\n      acc += c\n    }\n\n    // unfinished extglob\n    // if we got here, it was a malformed extglob! not an extglob, but\n    // maybe something else in there.\n    ast.type = null\n    ast.#hasMagic = undefined\n    ast.#parts = [str.substring(pos - 1)]\n    return i\n  }\n\n  static fromGlob(pattern: string, options: MinimatchOptions = {}) {\n    const ast = new AST(null, undefined, options)\n    AST.#parseAST(pattern, ast, 0, options)\n    return ast\n  }\n\n  // returns the regular expression if there's magic, or the unescaped\n  // string if not.\n  toMMPattern(): MMRegExp | string {\n    // should only be called on root\n    /* c8 ignore start */\n    if (this !== this.#root) return this.#root.toMMPattern()\n    /* c8 ignore stop */\n    const glob = this.toString()\n    const [re, body, hasMagic, uflag] = this.toRegExpSource()\n    // if we're in nocase mode, and not nocaseMagicOnly, then we do\n    // still need a regular expression if we have to case-insensitively\n    // match capital/lowercase characters.\n    const anyMagic =\n      hasMagic ||\n      this.#hasMagic ||\n      (this.#options.nocase &&\n        !this.#options.nocaseMagicOnly &&\n        glob.toUpperCase() !== glob.toLowerCase())\n    if (!anyMagic) {\n      return body\n    }\n\n    const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '')\n    return Object.assign(new RegExp(`^${re}$`, flags), {\n      _src: re,\n      _glob: glob,\n    })\n  }\n\n  get options() {\n    return this.#options\n  }\n\n  // returns the string match, the regexp source, whether there's magic\n  // in the regexp (so a regular expression is required) and whether or\n  // not the uflag is needed for the regular expression (for posix classes)\n  // TODO: instead of injecting the start/end at this point, just return\n  // the BODY of the regexp, along with the start/end portions suitable\n  // for binding the start/end in either a joined full-path makeRe context\n  // (where we bind to (^|/), or a standalone matchPart context (where\n  // we bind to ^, and not /).  Otherwise slashes get duped!\n  //\n  // In part-matching mode, the start is:\n  // - if not isStart: nothing\n  // - if traversal possible, but not allowed: ^(?!\\.\\.?$)\n  // - if dots allowed or not possible: ^\n  // - if dots possible and not allowed: ^(?!\\.)\n  // end is:\n  // - if not isEnd(): nothing\n  // - else: $\n  //\n  // In full-path matching mode, we put the slash at the START of the\n  // pattern, so start is:\n  // - if first pattern: same as part-matching mode\n  // - if not isStart(): nothing\n  // - if traversal possible, but not allowed: /(?!\\.\\.?(?:$|/))\n  // - if dots allowed or not possible: /\n  // - if dots possible and not allowed: /(?!\\.)\n  // end is:\n  // - if last pattern, same as part-matching mode\n  // - else nothing\n  //\n  // Always put the (?:$|/) on negated tails, though, because that has to be\n  // there to bind the end of the negated pattern portion, and it's easier to\n  // just stick it in now rather than try to inject it later in the middle of\n  // the pattern.\n  //\n  // We can just always return the same end, and leave it up to the caller\n  // to know whether it's going to be used joined or in parts.\n  // And, if the start is adjusted slightly, can do the same there:\n  // - if not isStart: nothing\n  // - if traversal possible, but not allowed: (?:/|^)(?!\\.\\.?$)\n  // - if dots allowed or not possible: (?:/|^)\n  // - if dots possible and not allowed: (?:/|^)(?!\\.)\n  //\n  // But it's better to have a simpler binding without a conditional, for\n  // performance, so probably better to return both start options.\n  //\n  // Then the caller just ignores the end if it's not the first pattern,\n  // and the start always gets applied.\n  //\n  // But that's always going to be $ if it's the ending pattern, or nothing,\n  // so the caller can just attach $ at the end of the pattern when building.\n  //\n  // So the todo is:\n  // - better detect what kind of start is needed\n  // - return both flavors of starting pattern\n  // - attach $ at the end of the pattern when creating the actual RegExp\n  //\n  // Ah, but wait, no, that all only applies to the root when the first pattern\n  // is not an extglob. If the first pattern IS an extglob, then we need all\n  // that dot prevention biz to live in the extglob portions, because eg\n  // +(*|.x*) can match .xy but not .yx.\n  //\n  // So, return the two flavors if it's #root and the first child is not an\n  // AST, otherwise leave it to the child AST to handle it, and there,\n  // use the (?:^|/) style of start binding.\n  //\n  // Even simplified further:\n  // - Since the start for a join is eg /(?!\\.) and the start for a part\n  // is ^(?!\\.), we can just prepend (?!\\.) to the pattern (either root\n  // or start or whatever) and prepend ^ or / at the Regexp construction.\n  toRegExpSource(\n    allowDot?: boolean\n  ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n    const dot = allowDot ?? !!this.#options.dot\n    if (this.#root === this) this.#fillNegs()\n    if (!this.type) {\n      const noEmpty = this.isStart() && this.isEnd()\n      const src = this.#parts\n        .map(p => {\n          const [re, _, hasMagic, uflag] =\n            typeof p === 'string'\n              ? AST.#parseGlob(p, this.#hasMagic, noEmpty)\n              : p.toRegExpSource(allowDot)\n          this.#hasMagic = this.#hasMagic || hasMagic\n          this.#uflag = this.#uflag || uflag\n          return re\n        })\n        .join('')\n\n      let start = ''\n      if (this.isStart()) {\n        if (typeof this.#parts[0] === 'string') {\n          // this is the string that will match the start of the pattern,\n          // so we need to protect against dots and such.\n\n          // '.' and '..' cannot match unless the pattern is that exactly,\n          // even if it starts with . or dot:true is set.\n          const dotTravAllowed =\n            this.#parts.length === 1 && justDots.has(this.#parts[0])\n          if (!dotTravAllowed) {\n            const aps = addPatternStart\n            // check if we have a possibility of matching . or ..,\n            // and prevent that.\n            const needNoTrav =\n              // dots are allowed, and the pattern starts with [ or .\n              (dot && aps.has(src.charAt(0))) ||\n              // the pattern starts with \\., and then [ or .\n              (src.startsWith('\\\\.') && aps.has(src.charAt(2))) ||\n              // the pattern starts with \\.\\., and then [ or .\n              (src.startsWith('\\\\.\\\\.') && aps.has(src.charAt(4)))\n            // no need to prevent dots if it can't match a dot, or if a\n            // sub-pattern will be preventing it anyway.\n            const needNoDot = !dot && !allowDot && aps.has(src.charAt(0))\n\n            start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : ''\n          }\n        }\n      }\n\n      // append the \"end of path portion\" pattern to negation tails\n      let end = ''\n      if (\n        this.isEnd() &&\n        this.#root.#filledNegs &&\n        this.#parent?.type === '!'\n      ) {\n        end = '(?:$|\\\\/)'\n      }\n      const final = start + src + end\n      return [\n        final,\n        unescape(src),\n        (this.#hasMagic = !!this.#hasMagic),\n        this.#uflag,\n      ]\n    }\n\n    // We need to calculate the body *twice* if it's a repeat pattern\n    // at the start, once in nodot mode, then again in dot mode, so a\n    // pattern like *(?) can match 'x.y'\n\n    const repeated = this.type === '*' || this.type === '+'\n    // some kind of extglob\n    const start = this.type === '!' ? '(?:(?!(?:' : '(?:'\n    let body = this.#partsToRegExp(dot)\n\n    if (this.isStart() && this.isEnd() && !body && this.type !== '!') {\n      // invalid extglob, has to at least be *something* present, if it's\n      // the entire path portion.\n      const s = this.toString()\n      this.#parts = [s]\n      this.type = null\n      this.#hasMagic = undefined\n      return [s, unescape(this.toString()), false, false]\n    }\n\n    // XXX abstract out this map method\n    let bodyDotAllowed =\n      !repeated || allowDot || dot || !startNoDot\n        ? ''\n        : this.#partsToRegExp(true)\n    if (bodyDotAllowed === body) {\n      bodyDotAllowed = ''\n    }\n    if (bodyDotAllowed) {\n      body = `(?:${body})(?:${bodyDotAllowed})*?`\n    }\n\n    // an empty !() is exactly equivalent to a starNoEmpty\n    let final = ''\n    if (this.type === '!' && this.#emptyExt) {\n      final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty\n    } else {\n      const close =\n        this.type === '!'\n          ? // !() must match something,but !(x) can match ''\n            '))' +\n            (this.isStart() && !dot && !allowDot ? startNoDot : '') +\n            star +\n            ')'\n          : this.type === '@'\n          ? ')'\n          : this.type === '?'\n          ? ')?'\n          : this.type === '+' && bodyDotAllowed\n          ? ')'\n          : this.type === '*' && bodyDotAllowed\n          ? `)?`\n          : `)${this.type}`\n      final = start + body + close\n    }\n    return [\n      final,\n      unescape(body),\n      (this.#hasMagic = !!this.#hasMagic),\n      this.#uflag,\n    ]\n  }\n\n  #partsToRegExp(dot: boolean) {\n    return this.#parts\n      .map(p => {\n        // extglob ASTs should only contain parent ASTs\n        /* c8 ignore start */\n        if (typeof p === 'string') {\n          throw new Error('string type in extglob ast??')\n        }\n        /* c8 ignore stop */\n        // can ignore hasMagic, because extglobs are already always magic\n        const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot)\n        this.#uflag = this.#uflag || uflag\n        return re\n      })\n      .filter(p => !(this.isStart() && this.isEnd()) || !!p)\n      .join('|')\n  }\n\n  static #parseGlob(\n    glob: string,\n    hasMagic: boolean | undefined,\n    noEmpty: boolean = false\n  ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n    let escaping = false\n    let re = ''\n    let uflag = false\n    for (let i = 0; i < glob.length; i++) {\n      const c = glob.charAt(i)\n      if (escaping) {\n        escaping = false\n        re += (reSpecials.has(c) ? '\\\\' : '') + c\n        continue\n      }\n      if (c === '\\\\') {\n        if (i === glob.length - 1) {\n          re += '\\\\\\\\'\n        } else {\n          escaping = true\n        }\n        continue\n      }\n      if (c === '[') {\n        const [src, needUflag, consumed, magic] = parseClass(glob, i)\n        if (consumed) {\n          re += src\n          uflag = uflag || needUflag\n          i += consumed - 1\n          hasMagic = hasMagic || magic\n          continue\n        }\n      }\n      if (c === '*') {\n        if (noEmpty && glob === '*') re += starNoEmpty\n        else re += star\n        hasMagic = true\n        continue\n      }\n      if (c === '?') {\n        re += qmark\n        hasMagic = true\n        continue\n      }\n      re += regExpEscape(c)\n    }\n    return [re, unescape(glob), !!hasMagic, uflag]\n  }\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts
deleted file mode 100644
index b1572deb..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export type ParseClassResult = [
-    src: string,
-    uFlag: boolean,
-    consumed: number,
-    hasMagic: boolean
-];
-export declare const parseClass: (glob: string, position: number) => ParseClassResult;
-//# sourceMappingURL=brace-expressions.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map
deleted file mode 100644
index d3949648..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"brace-expressions.d.ts","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":"AA+BA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU,SACf,MAAM,YACF,MAAM,qBA8HjB,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js
deleted file mode 100644
index c629d6ae..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js
+++ /dev/null
@@ -1,148 +0,0 @@
-// translate the various posix character classes into unicode properties
-// this works across all unicode locales
-// { : [, /u flag required, negated]
-const posixClasses = {
-    '[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}', true],
-    '[:alpha:]': ['\\p{L}\\p{Nl}', true],
-    '[:ascii:]': ['\\x' + '00-\\x' + '7f', false],
-    '[:blank:]': ['\\p{Zs}\\t', true],
-    '[:cntrl:]': ['\\p{Cc}', true],
-    '[:digit:]': ['\\p{Nd}', true],
-    '[:graph:]': ['\\p{Z}\\p{C}', true, true],
-    '[:lower:]': ['\\p{Ll}', true],
-    '[:print:]': ['\\p{C}', true],
-    '[:punct:]': ['\\p{P}', true],
-    '[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f', true],
-    '[:upper:]': ['\\p{Lu}', true],
-    '[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}', true],
-    '[:xdigit:]': ['A-Fa-f0-9', false],
-};
-// only need to escape a few things inside of brace expressions
-// escapes: [ \ ] -
-const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&');
-// escape all regexp magic characters
-const regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-// everything has already been escaped, we just have to join
-const rangesToString = (ranges) => ranges.join('');
-// takes a glob string at a posix brace expression, and returns
-// an equivalent regular expression source, and boolean indicating
-// whether the /u flag needs to be applied, and the number of chars
-// consumed to parse the character class.
-// This also removes out of order ranges, and returns ($.) if the
-// entire class just no good.
-export const parseClass = (glob, position) => {
-    const pos = position;
-    /* c8 ignore start */
-    if (glob.charAt(pos) !== '[') {
-        throw new Error('not in a brace expression');
-    }
-    /* c8 ignore stop */
-    const ranges = [];
-    const negs = [];
-    let i = pos + 1;
-    let sawStart = false;
-    let uflag = false;
-    let escaping = false;
-    let negate = false;
-    let endPos = pos;
-    let rangeStart = '';
-    WHILE: while (i < glob.length) {
-        const c = glob.charAt(i);
-        if ((c === '!' || c === '^') && i === pos + 1) {
-            negate = true;
-            i++;
-            continue;
-        }
-        if (c === ']' && sawStart && !escaping) {
-            endPos = i + 1;
-            break;
-        }
-        sawStart = true;
-        if (c === '\\') {
-            if (!escaping) {
-                escaping = true;
-                i++;
-                continue;
-            }
-            // escaped \ char, fall through and treat like normal char
-        }
-        if (c === '[' && !escaping) {
-            // either a posix class, a collation equivalent, or just a [
-            for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
-                if (glob.startsWith(cls, i)) {
-                    // invalid, [a-[] is fine, but not [a-[:alpha]]
-                    if (rangeStart) {
-                        return ['$.', false, glob.length - pos, true];
-                    }
-                    i += cls.length;
-                    if (neg)
-                        negs.push(unip);
-                    else
-                        ranges.push(unip);
-                    uflag = uflag || u;
-                    continue WHILE;
-                }
-            }
-        }
-        // now it's just a normal character, effectively
-        escaping = false;
-        if (rangeStart) {
-            // throw this range away if it's not valid, but others
-            // can still match.
-            if (c > rangeStart) {
-                ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));
-            }
-            else if (c === rangeStart) {
-                ranges.push(braceEscape(c));
-            }
-            rangeStart = '';
-            i++;
-            continue;
-        }
-        // now might be the start of a range.
-        // can be either c-d or c-] or c] or c] at this point
-        if (glob.startsWith('-]', i + 1)) {
-            ranges.push(braceEscape(c + '-'));
-            i += 2;
-            continue;
-        }
-        if (glob.startsWith('-', i + 1)) {
-            rangeStart = c;
-            i += 2;
-            continue;
-        }
-        // not the start of a range, just a single character
-        ranges.push(braceEscape(c));
-        i++;
-    }
-    if (endPos < i) {
-        // didn't see the end of the class, not a valid class,
-        // but might still be valid as a literal match.
-        return ['', false, 0, false];
-    }
-    // if we got no ranges and no negates, then we have a range that
-    // cannot possibly match anything, and that poisons the whole glob
-    if (!ranges.length && !negs.length) {
-        return ['$.', false, glob.length - pos, true];
-    }
-    // if we got one positive range, and it's a single character, then that's
-    // not actually a magic pattern, it's just that one literal character.
-    // we should not treat that as "magic", we should just return the literal
-    // character. [_] is a perfectly valid way to escape glob magic chars.
-    if (negs.length === 0 &&
-        ranges.length === 1 &&
-        /^\\?.$/.test(ranges[0]) &&
-        !negate) {
-        const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
-        return [regexpEscape(r), false, endPos - pos, false];
-    }
-    const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']';
-    const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']';
-    const comb = ranges.length && negs.length
-        ? '(' + sranges + '|' + snegs + ')'
-        : ranges.length
-            ? sranges
-            : snegs;
-    return [comb, uflag, endPos - pos, true];
-};
-//# sourceMappingURL=brace-expressions.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js.map
deleted file mode 100644
index cdba30da..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/brace-expressions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"brace-expressions.js","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wCAAwC;AAExC,8DAA8D;AAC9D,MAAM,YAAY,GAA0D;IAC1E,WAAW,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC;IAC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GAAG,CAAA;IACxE,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACpE,MAAM,IAAI,GACR,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM;QAC1B,CAAC,CAAC,GAAG,GAAG,OAAO,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG;QACnC,CAAC,CAAC,MAAM,CAAC,MAAM;YACf,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,KAAK,CAAA;IAEX,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC,CAAA","sourcesContent":["// translate the various posix character classes into unicode properties\n// this works across all unicode locales\n\n// { : [, /u flag required, negated]\nconst posixClasses: { [k: string]: [e: string, u: boolean, n?: boolean] } = {\n  '[:alnum:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}', true],\n  '[:alpha:]': ['\\\\p{L}\\\\p{Nl}', true],\n  '[:ascii:]': ['\\\\x' + '00-\\\\x' + '7f', false],\n  '[:blank:]': ['\\\\p{Zs}\\\\t', true],\n  '[:cntrl:]': ['\\\\p{Cc}', true],\n  '[:digit:]': ['\\\\p{Nd}', true],\n  '[:graph:]': ['\\\\p{Z}\\\\p{C}', true, true],\n  '[:lower:]': ['\\\\p{Ll}', true],\n  '[:print:]': ['\\\\p{C}', true],\n  '[:punct:]': ['\\\\p{P}', true],\n  '[:space:]': ['\\\\p{Z}\\\\t\\\\r\\\\n\\\\v\\\\f', true],\n  '[:upper:]': ['\\\\p{Lu}', true],\n  '[:word:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}', true],\n  '[:xdigit:]': ['A-Fa-f0-9', false],\n}\n\n// only need to escape a few things inside of brace expressions\n// escapes: [ \\ ] -\nconst braceEscape = (s: string) => s.replace(/[[\\]\\\\-]/g, '\\\\$&')\n// escape all regexp magic characters\nconst regexpEscape = (s: string) =>\n  s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// everything has already been escaped, we just have to join\nconst rangesToString = (ranges: string[]): string => ranges.join('')\n\nexport type ParseClassResult = [\n  src: string,\n  uFlag: boolean,\n  consumed: number,\n  hasMagic: boolean\n]\n\n// takes a glob string at a posix brace expression, and returns\n// an equivalent regular expression source, and boolean indicating\n// whether the /u flag needs to be applied, and the number of chars\n// consumed to parse the character class.\n// This also removes out of order ranges, and returns ($.) if the\n// entire class just no good.\nexport const parseClass = (\n  glob: string,\n  position: number\n): ParseClassResult => {\n  const pos = position\n  /* c8 ignore start */\n  if (glob.charAt(pos) !== '[') {\n    throw new Error('not in a brace expression')\n  }\n  /* c8 ignore stop */\n  const ranges: string[] = []\n  const negs: string[] = []\n\n  let i = pos + 1\n  let sawStart = false\n  let uflag = false\n  let escaping = false\n  let negate = false\n  let endPos = pos\n  let rangeStart = ''\n  WHILE: while (i < glob.length) {\n    const c = glob.charAt(i)\n    if ((c === '!' || c === '^') && i === pos + 1) {\n      negate = true\n      i++\n      continue\n    }\n\n    if (c === ']' && sawStart && !escaping) {\n      endPos = i + 1\n      break\n    }\n\n    sawStart = true\n    if (c === '\\\\') {\n      if (!escaping) {\n        escaping = true\n        i++\n        continue\n      }\n      // escaped \\ char, fall through and treat like normal char\n    }\n    if (c === '[' && !escaping) {\n      // either a posix class, a collation equivalent, or just a [\n      for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {\n        if (glob.startsWith(cls, i)) {\n          // invalid, [a-[] is fine, but not [a-[:alpha]]\n          if (rangeStart) {\n            return ['$.', false, glob.length - pos, true]\n          }\n          i += cls.length\n          if (neg) negs.push(unip)\n          else ranges.push(unip)\n          uflag = uflag || u\n          continue WHILE\n        }\n      }\n    }\n\n    // now it's just a normal character, effectively\n    escaping = false\n    if (rangeStart) {\n      // throw this range away if it's not valid, but others\n      // can still match.\n      if (c > rangeStart) {\n        ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c))\n      } else if (c === rangeStart) {\n        ranges.push(braceEscape(c))\n      }\n      rangeStart = ''\n      i++\n      continue\n    }\n\n    // now might be the start of a range.\n    // can be either c-d or c-] or c] or c] at this point\n    if (glob.startsWith('-]', i + 1)) {\n      ranges.push(braceEscape(c + '-'))\n      i += 2\n      continue\n    }\n    if (glob.startsWith('-', i + 1)) {\n      rangeStart = c\n      i += 2\n      continue\n    }\n\n    // not the start of a range, just a single character\n    ranges.push(braceEscape(c))\n    i++\n  }\n\n  if (endPos < i) {\n    // didn't see the end of the class, not a valid class,\n    // but might still be valid as a literal match.\n    return ['', false, 0, false]\n  }\n\n  // if we got no ranges and no negates, then we have a range that\n  // cannot possibly match anything, and that poisons the whole glob\n  if (!ranges.length && !negs.length) {\n    return ['$.', false, glob.length - pos, true]\n  }\n\n  // if we got one positive range, and it's a single character, then that's\n  // not actually a magic pattern, it's just that one literal character.\n  // we should not treat that as \"magic\", we should just return the literal\n  // character. [_] is a perfectly valid way to escape glob magic chars.\n  if (\n    negs.length === 0 &&\n    ranges.length === 1 &&\n    /^\\\\?.$/.test(ranges[0]) &&\n    !negate\n  ) {\n    const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]\n    return [regexpEscape(r), false, endPos - pos, false]\n  }\n\n  const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']'\n  const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']'\n  const comb =\n    ranges.length && negs.length\n      ? '(' + sranges + '|' + snegs + ')'\n      : ranges.length\n      ? sranges\n      : snegs\n\n  return [comb, uflag, endPos - pos, true]\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts
deleted file mode 100644
index dc3e3163..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { MinimatchOptions } from './index.js';
-/**
- * Escape all magic characters in a glob pattern.
- *
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
- * option is used, then characters are escaped by wrapping in `[]`, because
- * a magic character wrapped in a character class can only be satisfied by
- * that exact character.  In this mode, `\` is _not_ escaped, because it is
- * not interpreted as a magic character, but instead as a path separator.
- */
-export declare const escape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-//# sourceMappingURL=escape.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts.map
deleted file mode 100644
index 0779dae7..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,MACd,MAAM,8BAGN,KAAK,gBAAgB,EAAE,sBAAsB,CAAC,WAQlD,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js
deleted file mode 100644
index 16f7c8c7..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Escape all magic characters in a glob pattern.
- *
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
- * option is used, then characters are escaped by wrapping in `[]`, because
- * a magic character wrapped in a character class can only be satisfied by
- * that exact character.  In this mode, `\` is _not_ escaped, because it is
- * not interpreted as a magic character, but instead as a path separator.
- */
-export const escape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    // don't need to escape +@! because we escape the parens
-    // that make those magic, and escaping ! as [!] isn't valid,
-    // because [!]] is a valid glob class meaning not ']'.
-    return windowsPathsNoEscape
-        ? s.replace(/[?*()[\]]/g, '[$&]')
-        : s.replace(/[?*()[\]\\]/g, '\\$&');
-};
-//# sourceMappingURL=escape.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js.map
deleted file mode 100644
index 170fd1ad..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/escape.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,CAAS,EACT,EACE,oBAAoB,GAAG,KAAK,MACsB,EAAE,EACtD,EAAE;IACF,wDAAwD;IACxD,4DAA4D;IAC5D,sDAAsD;IACtD,OAAO,oBAAoB;QACzB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC;QACjC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;AACvC,CAAC,CAAA","sourcesContent":["import { MinimatchOptions } from './index.js'\n/**\n * Escape all magic characters in a glob pattern.\n *\n * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}\n * option is used, then characters are escaped by wrapping in `[]`, because\n * a magic character wrapped in a character class can only be satisfied by\n * that exact character.  In this mode, `\\` is _not_ escaped, because it is\n * not interpreted as a magic character, but instead as a path separator.\n */\nexport const escape = (\n  s: string,\n  {\n    windowsPathsNoEscape = false,\n  }: Pick = {}\n) => {\n  // don't need to escape +@! because we escape the parens\n  // that make those magic, and escaping ! as [!] isn't valid,\n  // because [!]] is a valid glob class meaning not ']'.\n  return windowsPathsNoEscape\n    ? s.replace(/[?*()[\\]]/g, '[$&]')\n    : s.replace(/[?*()[\\]\\\\]/g, '\\\\$&')\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts
deleted file mode 100644
index 41d16a98..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts
+++ /dev/null
@@ -1,94 +0,0 @@
-import { AST } from './ast.js';
-type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
-export interface MinimatchOptions {
-    nobrace?: boolean;
-    nocomment?: boolean;
-    nonegate?: boolean;
-    debug?: boolean;
-    noglobstar?: boolean;
-    noext?: boolean;
-    nonull?: boolean;
-    windowsPathsNoEscape?: boolean;
-    allowWindowsEscape?: boolean;
-    partial?: boolean;
-    dot?: boolean;
-    nocase?: boolean;
-    nocaseMagicOnly?: boolean;
-    magicalBraces?: boolean;
-    matchBase?: boolean;
-    flipNegate?: boolean;
-    preserveMultipleSlashes?: boolean;
-    optimizationLevel?: number;
-    platform?: Platform;
-    windowsNoMagicRoot?: boolean;
-}
-export declare const minimatch: {
-    (p: string, pattern: string, options?: MinimatchOptions): boolean;
-    sep: Sep;
-    GLOBSTAR: typeof GLOBSTAR;
-    filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
-    defaults: (def: MinimatchOptions) => typeof minimatch;
-    braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
-    makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
-    match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
-    AST: typeof AST;
-    Minimatch: typeof Minimatch;
-    escape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-    unescape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-};
-type Sep = '\\' | '/';
-export declare const sep: Sep;
-export declare const GLOBSTAR: unique symbol;
-export declare const filter: (pattern: string, options?: MinimatchOptions) => (p: string) => boolean;
-export declare const defaults: (def: MinimatchOptions) => typeof minimatch;
-export declare const braceExpand: (pattern: string, options?: MinimatchOptions) => string[];
-export declare const makeRe: (pattern: string, options?: MinimatchOptions) => false | MMRegExp;
-export declare const match: (list: string[], pattern: string, options?: MinimatchOptions) => string[];
-export type MMRegExp = RegExp & {
-    _src?: string;
-    _glob?: string;
-};
-export type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR;
-export type ParseReturn = ParseReturnFiltered | false;
-export declare class Minimatch {
-    options: MinimatchOptions;
-    set: ParseReturnFiltered[][];
-    pattern: string;
-    windowsPathsNoEscape: boolean;
-    nonegate: boolean;
-    negate: boolean;
-    comment: boolean;
-    empty: boolean;
-    preserveMultipleSlashes: boolean;
-    partial: boolean;
-    globSet: string[];
-    globParts: string[][];
-    nocase: boolean;
-    isWindows: boolean;
-    platform: Platform;
-    windowsNoMagicRoot: boolean;
-    regexp: false | null | MMRegExp;
-    constructor(pattern: string, options?: MinimatchOptions);
-    hasMagic(): boolean;
-    debug(..._: any[]): void;
-    make(): void;
-    preprocess(globParts: string[][]): string[][];
-    adjascentGlobstarOptimize(globParts: string[][]): string[][];
-    levelOneOptimize(globParts: string[][]): string[][];
-    levelTwoFileOptimize(parts: string | string[]): string[];
-    firstPhasePreProcess(globParts: string[][]): string[][];
-    secondPhasePreProcess(globParts: string[][]): string[][];
-    partsMatch(a: string[], b: string[], emptyGSMatch?: boolean): false | string[];
-    parseNegate(): void;
-    matchOne(file: string[], pattern: ParseReturn[], partial?: boolean): boolean;
-    braceExpand(): string[];
-    parse(pattern: string): ParseReturn;
-    makeRe(): false | MMRegExp;
-    slashSplit(p: string): string[];
-    match(f: string, partial?: boolean): boolean;
-    static defaults(def: MinimatchOptions): typeof Minimatch;
-}
-export { AST } from './ast.js';
-export { escape } from './escape.js';
-export { unescape } from './unescape.js';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts.map
deleted file mode 100644
index 195491d8..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAA;AAI3C,KAAK,QAAQ,GACT,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,CAAA;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAA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WAAW;IAqBX,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,GAAE,OAAe;IAiNzE,WAAW;IAIX,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAiDnC,MAAM;IAsFN,UAAU,CAAC,CAAC,EAAE,MAAM;IAepB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,UAAe;IAiEvC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,gBAAgB;CAGtC;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js
deleted file mode 100644
index 84b577b0..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js
+++ /dev/null
@@ -1,1001 +0,0 @@
-import expand from 'brace-expansion';
-import { assertValidPattern } from './assert-valid-pattern.js';
-import { AST } from './ast.js';
-import { escape } from './escape.js';
-import { unescape } from './unescape.js';
-export const minimatch = (p, pattern, options = {}) => {
-    assertValidPattern(pattern);
-    // shortcut: comments match nothing.
-    if (!options.nocomment && pattern.charAt(0) === '#') {
-        return false;
-    }
-    return new Minimatch(pattern, options).match(p);
-};
-// Optimized checking for the most common glob patterns.
-const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
-const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
-const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
-const starDotExtTestNocase = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
-};
-const starDotExtTestNocaseDot = (ext) => {
-    ext = ext.toLowerCase();
-    return (f) => f.toLowerCase().endsWith(ext);
-};
-const starDotStarRE = /^\*+\.\*+$/;
-const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
-const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
-const dotStarRE = /^\.\*+$/;
-const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
-const starRE = /^\*+$/;
-const starTest = (f) => f.length !== 0 && !f.startsWith('.');
-const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
-const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
-const qmarksTestNocase = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestNocaseDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    if (!ext)
-        return noext;
-    ext = ext.toLowerCase();
-    return (f) => noext(f) && f.toLowerCase().endsWith(ext);
-};
-const qmarksTestDot = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExtDot([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTest = ([$0, ext = '']) => {
-    const noext = qmarksTestNoExt([$0]);
-    return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
-};
-const qmarksTestNoExt = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && !f.startsWith('.');
-};
-const qmarksTestNoExtDot = ([$0]) => {
-    const len = $0.length;
-    return (f) => f.length === len && f !== '.' && f !== '..';
-};
-/* c8 ignore start */
-const defaultPlatform = (typeof process === 'object' && process
-    ? (typeof process.env === 'object' &&
-        process.env &&
-        process.env.__MINIMATCH_TESTING_PLATFORM__) ||
-        process.platform
-    : 'posix');
-const path = {
-    win32: { sep: '\\' },
-    posix: { sep: '/' },
-};
-/* c8 ignore stop */
-export const sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
-minimatch.sep = sep;
-export const GLOBSTAR = Symbol('globstar **');
-minimatch.GLOBSTAR = GLOBSTAR;
-// any single thing other than /
-// don't need to escape / when using new RegExp()
-const qmark = '[^/]';
-// * => any number of characters
-const star = qmark + '*?';
-// ** when dots are allowed.  Anything goes, except .. and .
-// not (^ or / followed by one or two dots followed by $ or /),
-// followed by anything, any number of times.
-const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
-// not a ^ or / followed by a dot,
-// followed by anything, any number of times.
-const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
-export const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
-minimatch.filter = filter;
-const ext = (a, b = {}) => Object.assign({}, a, b);
-export const defaults = (def) => {
-    if (!def || typeof def !== 'object' || !Object.keys(def).length) {
-        return minimatch;
-    }
-    const orig = minimatch;
-    const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
-    return Object.assign(m, {
-        Minimatch: class Minimatch extends orig.Minimatch {
-            constructor(pattern, options = {}) {
-                super(pattern, ext(def, options));
-            }
-            static defaults(options) {
-                return orig.defaults(ext(def, options)).Minimatch;
-            }
-        },
-        AST: class AST extends orig.AST {
-            /* c8 ignore start */
-            constructor(type, parent, options = {}) {
-                super(type, parent, ext(def, options));
-            }
-            /* c8 ignore stop */
-            static fromGlob(pattern, options = {}) {
-                return orig.AST.fromGlob(pattern, ext(def, options));
-            }
-        },
-        unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
-        escape: (s, options = {}) => orig.escape(s, ext(def, options)),
-        filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
-        defaults: (options) => orig.defaults(ext(def, options)),
-        makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
-        braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
-        match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
-        sep: orig.sep,
-        GLOBSTAR: GLOBSTAR,
-    });
-};
-minimatch.defaults = defaults;
-// Brace expansion:
-// a{b,c}d -> abd acd
-// a{b,}c -> abc ac
-// a{0..3}d -> a0d a1d a2d a3d
-// a{b,c{d,e}f}g -> abg acdfg acefg
-// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
-//
-// Invalid sets are not expanded.
-// a{2..}b -> a{2..}b
-// a{b}c -> a{b}c
-export const braceExpand = (pattern, options = {}) => {
-    assertValidPattern(pattern);
-    // Thanks to Yeting Li  for
-    // improving this regexp to avoid a ReDOS vulnerability.
-    if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
-        // shortcut. no need to expand.
-        return [pattern];
-    }
-    return expand(pattern);
-};
-minimatch.braceExpand = braceExpand;
-// parse a component of the expanded set.
-// At this point, no pattern may contain "/" in it
-// so we're going to return a 2d array, where each entry is the full
-// pattern, split on '/', and then turned into a regular expression.
-// A regexp is made at the end which joins each array with an
-// escaped /, and another full one which joins each regexp with |.
-//
-// Following the lead of Bash 4.1, note that "**" only has special meaning
-// when it is the *only* thing in a path portion.  Otherwise, any series
-// of * is equivalent to a single *.  Globstar behavior is enabled by
-// default, and can be disabled by setting options.noglobstar.
-export const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
-minimatch.makeRe = makeRe;
-export const match = (list, pattern, options = {}) => {
-    const mm = new Minimatch(pattern, options);
-    list = list.filter(f => mm.match(f));
-    if (mm.options.nonull && !list.length) {
-        list.push(pattern);
-    }
-    return list;
-};
-minimatch.match = match;
-// replace stuff like \* with *
-const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
-const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
-export class Minimatch {
-    options;
-    set;
-    pattern;
-    windowsPathsNoEscape;
-    nonegate;
-    negate;
-    comment;
-    empty;
-    preserveMultipleSlashes;
-    partial;
-    globSet;
-    globParts;
-    nocase;
-    isWindows;
-    platform;
-    windowsNoMagicRoot;
-    regexp;
-    constructor(pattern, options = {}) {
-        assertValidPattern(pattern);
-        options = options || {};
-        this.options = options;
-        this.pattern = pattern;
-        this.platform = options.platform || defaultPlatform;
-        this.isWindows = this.platform === 'win32';
-        this.windowsPathsNoEscape =
-            !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
-        if (this.windowsPathsNoEscape) {
-            this.pattern = this.pattern.replace(/\\/g, '/');
-        }
-        this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
-        this.regexp = null;
-        this.negate = false;
-        this.nonegate = !!options.nonegate;
-        this.comment = false;
-        this.empty = false;
-        this.partial = !!options.partial;
-        this.nocase = !!this.options.nocase;
-        this.windowsNoMagicRoot =
-            options.windowsNoMagicRoot !== undefined
-                ? options.windowsNoMagicRoot
-                : !!(this.isWindows && this.nocase);
-        this.globSet = [];
-        this.globParts = [];
-        this.set = [];
-        // make the set of regexps etc.
-        this.make();
-    }
-    hasMagic() {
-        if (this.options.magicalBraces && this.set.length > 1) {
-            return true;
-        }
-        for (const pattern of this.set) {
-            for (const part of pattern) {
-                if (typeof part !== 'string')
-                    return true;
-            }
-        }
-        return false;
-    }
-    debug(..._) { }
-    make() {
-        const pattern = this.pattern;
-        const options = this.options;
-        // empty patterns and comments match nothing.
-        if (!options.nocomment && pattern.charAt(0) === '#') {
-            this.comment = true;
-            return;
-        }
-        if (!pattern) {
-            this.empty = true;
-            return;
-        }
-        // step 1: figure out negation, etc.
-        this.parseNegate();
-        // step 2: expand braces
-        this.globSet = [...new Set(this.braceExpand())];
-        if (options.debug) {
-            this.debug = (...args) => console.error(...args);
-        }
-        this.debug(this.pattern, this.globSet);
-        // step 3: now we have a set, so turn each one into a series of
-        // path-portion matching patterns.
-        // These will be regexps, except in the case of "**", which is
-        // set to the GLOBSTAR object for globstar behavior,
-        // and will not contain any / characters
-        //
-        // First, we preprocess to make the glob pattern sets a bit simpler
-        // and deduped.  There are some perf-killing patterns that can cause
-        // problems with a glob walk, but we can simplify them down a bit.
-        const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
-        this.globParts = this.preprocess(rawGlobParts);
-        this.debug(this.pattern, this.globParts);
-        // glob --> regexps
-        let set = this.globParts.map((s, _, __) => {
-            if (this.isWindows && this.windowsNoMagicRoot) {
-                // check if it's a drive or unc path.
-                const isUNC = s[0] === '' &&
-                    s[1] === '' &&
-                    (s[2] === '?' || !globMagic.test(s[2])) &&
-                    !globMagic.test(s[3]);
-                const isDrive = /^[a-z]:/i.test(s[0]);
-                if (isUNC) {
-                    return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
-                }
-                else if (isDrive) {
-                    return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
-                }
-            }
-            return s.map(ss => this.parse(ss));
-        });
-        this.debug(this.pattern, set);
-        // filter out everything that didn't compile properly.
-        this.set = set.filter(s => s.indexOf(false) === -1);
-        // do not treat the ? in UNC paths as magic
-        if (this.isWindows) {
-            for (let i = 0; i < this.set.length; i++) {
-                const p = this.set[i];
-                if (p[0] === '' &&
-                    p[1] === '' &&
-                    this.globParts[i][2] === '?' &&
-                    typeof p[3] === 'string' &&
-                    /^[a-z]:$/i.test(p[3])) {
-                    p[2] = '?';
-                }
-            }
-        }
-        this.debug(this.pattern, this.set);
-    }
-    // various transforms to equivalent pattern sets that are
-    // faster to process in a filesystem walk.  The goal is to
-    // eliminate what we can, and push all ** patterns as far
-    // to the right as possible, even if it increases the number
-    // of patterns that we have to process.
-    preprocess(globParts) {
-        // if we're not in globstar mode, then turn all ** into *
-        if (this.options.noglobstar) {
-            for (let i = 0; i < globParts.length; i++) {
-                for (let j = 0; j < globParts[i].length; j++) {
-                    if (globParts[i][j] === '**') {
-                        globParts[i][j] = '*';
-                    }
-                }
-            }
-        }
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            // aggressive optimization for the purpose of fs walking
-            globParts = this.firstPhasePreProcess(globParts);
-            globParts = this.secondPhasePreProcess(globParts);
-        }
-        else if (optimizationLevel >= 1) {
-            // just basic optimizations to remove some .. parts
-            globParts = this.levelOneOptimize(globParts);
-        }
-        else {
-            // just collapse multiple ** portions into one
-            globParts = this.adjascentGlobstarOptimize(globParts);
-        }
-        return globParts;
-    }
-    // just get rid of adjascent ** portions
-    adjascentGlobstarOptimize(globParts) {
-        return globParts.map(parts => {
-            let gs = -1;
-            while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
-                let i = gs;
-                while (parts[i + 1] === '**') {
-                    i++;
-                }
-                if (i !== gs) {
-                    parts.splice(gs, i - gs);
-                }
-            }
-            return parts;
-        });
-    }
-    // get rid of adjascent ** and resolve .. portions
-    levelOneOptimize(globParts) {
-        return globParts.map(parts => {
-            parts = parts.reduce((set, part) => {
-                const prev = set[set.length - 1];
-                if (part === '**' && prev === '**') {
-                    return set;
-                }
-                if (part === '..') {
-                    if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
-                        set.pop();
-                        return set;
-                    }
-                }
-                set.push(part);
-                return set;
-            }, []);
-            return parts.length === 0 ? [''] : parts;
-        });
-    }
-    levelTwoFileOptimize(parts) {
-        if (!Array.isArray(parts)) {
-            parts = this.slashSplit(parts);
-        }
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
// -> 
/
-            if (!this.preserveMultipleSlashes) {
-                for (let i = 1; i < parts.length - 1; i++) {
-                    const p = parts[i];
-                    // don't squeeze out UNC patterns
-                    if (i === 1 && p === '' && parts[0] === '')
-                        continue;
-                    if (p === '.' || p === '') {
-                        didSomething = true;
-                        parts.splice(i, 1);
-                        i--;
-                    }
-                }
-                if (parts[0] === '.' &&
-                    parts.length === 2 &&
-                    (parts[1] === '.' || parts[1] === '')) {
-                    didSomething = true;
-                    parts.pop();
-                }
-            }
-            // 
/

/../ ->

/
-            let dd = 0;
-            while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                const p = parts[dd - 1];
-                if (p && p !== '.' && p !== '..' && p !== '**') {
-                    didSomething = true;
-                    parts.splice(dd - 1, 2);
-                    dd -= 2;
-                }
-            }
-        } while (didSomething);
-        return parts.length === 0 ? [''] : parts;
-    }
-    // First phase: single-pattern processing
-    // 
 is 1 or more portions
-    //  is 1 or more portions
-    // 

is any portion other than ., .., '', or ** - // is . or '' - // - // **/.. is *brutal* for filesystem walking performance, because - // it effectively resets the recursive walk each time it occurs, - // and ** cannot be reduced out by a .. pattern part like a regexp - // or most strings (other than .., ., and '') can be. - // - //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - //

// -> 
/
-    // 
/

/../ ->

/
-    // **/**/ -> **/
-    //
-    // **/*/ -> */**/ <== not valid because ** doesn't follow
-    // this WOULD be allowed if ** did follow symlinks, or * didn't
-    firstPhasePreProcess(globParts) {
-        let didSomething = false;
-        do {
-            didSomething = false;
-            // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/} - for (let parts of globParts) { - let gs = -1; - while (-1 !== (gs = parts.indexOf('**', gs + 1))) { - let gss = gs; - while (parts[gss + 1] === '**') { - //

/**/**/ -> 
/**/
-                        gss++;
-                    }
-                    // eg, if gs is 2 and gss is 4, that means we have 3 **
-                    // parts, and can remove 2 of them.
-                    if (gss > gs) {
-                        parts.splice(gs + 1, gss - gs);
-                    }
-                    let next = parts[gs + 1];
-                    const p = parts[gs + 2];
-                    const p2 = parts[gs + 3];
-                    if (next !== '..')
-                        continue;
-                    if (!p ||
-                        p === '.' ||
-                        p === '..' ||
-                        !p2 ||
-                        p2 === '.' ||
-                        p2 === '..') {
-                        continue;
-                    }
-                    didSomething = true;
-                    // edit parts in place, and push the new one
-                    parts.splice(gs, 1);
-                    const other = parts.slice(0);
-                    other[gs] = '**';
-                    globParts.push(other);
-                    gs--;
-                }
-                // 
// -> 
/
-                if (!this.preserveMultipleSlashes) {
-                    for (let i = 1; i < parts.length - 1; i++) {
-                        const p = parts[i];
-                        // don't squeeze out UNC patterns
-                        if (i === 1 && p === '' && parts[0] === '')
-                            continue;
-                        if (p === '.' || p === '') {
-                            didSomething = true;
-                            parts.splice(i, 1);
-                            i--;
-                        }
-                    }
-                    if (parts[0] === '.' &&
-                        parts.length === 2 &&
-                        (parts[1] === '.' || parts[1] === '')) {
-                        didSomething = true;
-                        parts.pop();
-                    }
-                }
-                // 
/

/../ ->

/
-                let dd = 0;
-                while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
-                    const p = parts[dd - 1];
-                    if (p && p !== '.' && p !== '..' && p !== '**') {
-                        didSomething = true;
-                        const needDot = dd === 1 && parts[dd + 1] === '**';
-                        const splin = needDot ? ['.'] : [];
-                        parts.splice(dd - 1, 2, ...splin);
-                        if (parts.length === 0)
-                            parts.push('');
-                        dd -= 2;
-                    }
-                }
-            }
-        } while (didSomething);
-        return globParts;
-    }
-    // second phase: multi-pattern dedupes
-    // {
/*/,
/

/} ->

/*/
-    // {
/,
/} -> 
/
-    // {
/**/,
/} -> 
/**/
-    //
-    // {
/**/,
/**/

/} ->

/**/
-    // ^-- not valid because ** doens't follow symlinks
-    secondPhasePreProcess(globParts) {
-        for (let i = 0; i < globParts.length - 1; i++) {
-            for (let j = i + 1; j < globParts.length; j++) {
-                const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
-                if (matched) {
-                    globParts[i] = [];
-                    globParts[j] = matched;
-                    break;
-                }
-            }
-        }
-        return globParts.filter(gs => gs.length);
-    }
-    partsMatch(a, b, emptyGSMatch = false) {
-        let ai = 0;
-        let bi = 0;
-        let result = [];
-        let which = '';
-        while (ai < a.length && bi < b.length) {
-            if (a[ai] === b[bi]) {
-                result.push(which === 'b' ? b[bi] : a[ai]);
-                ai++;
-                bi++;
-            }
-            else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
-                result.push(a[ai]);
-                ai++;
-            }
-            else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
-                result.push(b[bi]);
-                bi++;
-            }
-            else if (a[ai] === '*' &&
-                b[bi] &&
-                (this.options.dot || !b[bi].startsWith('.')) &&
-                b[bi] !== '**') {
-                if (which === 'b')
-                    return false;
-                which = 'a';
-                result.push(a[ai]);
-                ai++;
-                bi++;
-            }
-            else if (b[bi] === '*' &&
-                a[ai] &&
-                (this.options.dot || !a[ai].startsWith('.')) &&
-                a[ai] !== '**') {
-                if (which === 'a')
-                    return false;
-                which = 'b';
-                result.push(b[bi]);
-                ai++;
-                bi++;
-            }
-            else {
-                return false;
-            }
-        }
-        // if we fall out of the loop, it means they two are identical
-        // as long as their lengths match
-        return a.length === b.length && result;
-    }
-    parseNegate() {
-        if (this.nonegate)
-            return;
-        const pattern = this.pattern;
-        let negate = false;
-        let negateOffset = 0;
-        for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
-            negate = !negate;
-            negateOffset++;
-        }
-        if (negateOffset)
-            this.pattern = pattern.slice(negateOffset);
-        this.negate = negate;
-    }
-    // set partial to true to test if, for example,
-    // "/a/b" matches the start of "/*/b/*/d"
-    // Partial means, if you run out of file before you run
-    // out of pattern, then that's fine, as long as all
-    // the parts match.
-    matchOne(file, pattern, partial = false) {
-        const options = this.options;
-        // UNC paths like //?/X:/... can match X:/... and vice versa
-        // Drive letters in absolute drive or unc paths are always compared
-        // case-insensitively.
-        if (this.isWindows) {
-            const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
-            const fileUNC = !fileDrive &&
-                file[0] === '' &&
-                file[1] === '' &&
-                file[2] === '?' &&
-                /^[a-z]:$/i.test(file[3]);
-            const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
-            const patternUNC = !patternDrive &&
-                pattern[0] === '' &&
-                pattern[1] === '' &&
-                pattern[2] === '?' &&
-                typeof pattern[3] === 'string' &&
-                /^[a-z]:$/i.test(pattern[3]);
-            const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
-            const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
-            if (typeof fdi === 'number' && typeof pdi === 'number') {
-                const [fd, pd] = [file[fdi], pattern[pdi]];
-                if (fd.toLowerCase() === pd.toLowerCase()) {
-                    pattern[pdi] = fd;
-                    if (pdi > fdi) {
-                        pattern = pattern.slice(pdi);
-                    }
-                    else if (fdi > pdi) {
-                        file = file.slice(fdi);
-                    }
-                }
-            }
-        }
-        // resolve and reduce . and .. portions in the file as well.
-        // dont' need to do the second phase, because it's only one string[]
-        const { optimizationLevel = 1 } = this.options;
-        if (optimizationLevel >= 2) {
-            file = this.levelTwoFileOptimize(file);
-        }
-        this.debug('matchOne', this, { file, pattern });
-        this.debug('matchOne', file.length, pattern.length);
-        for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
-            this.debug('matchOne loop');
-            var p = pattern[pi];
-            var f = file[fi];
-            this.debug(pattern, p, f);
-            // should be impossible.
-            // some invalid regexp stuff in the set.
-            /* c8 ignore start */
-            if (p === false) {
-                return false;
-            }
-            /* c8 ignore stop */
-            if (p === GLOBSTAR) {
-                this.debug('GLOBSTAR', [pattern, p, f]);
-                // "**"
-                // a/**/b/**/c would match the following:
-                // a/b/x/y/z/c
-                // a/x/y/z/b/c
-                // a/b/x/b/x/c
-                // a/b/c
-                // To do this, take the rest of the pattern after
-                // the **, and see if it would match the file remainder.
-                // If so, return success.
-                // If not, the ** "swallows" a segment, and try again.
-                // This is recursively awful.
-                //
-                // a/**/b/**/c matching a/b/x/y/z/c
-                // - a matches a
-                // - doublestar
-                //   - matchOne(b/x/y/z/c, b/**/c)
-                //     - b matches b
-                //     - doublestar
-                //       - matchOne(x/y/z/c, c) -> no
-                //       - matchOne(y/z/c, c) -> no
-                //       - matchOne(z/c, c) -> no
-                //       - matchOne(c, c) yes, hit
-                var fr = fi;
-                var pr = pi + 1;
-                if (pr === pl) {
-                    this.debug('** at the end');
-                    // a ** at the end will just swallow the rest.
-                    // We have found a match.
-                    // however, it will not swallow /.x, unless
-                    // options.dot is set.
-                    // . and .. are *never* matched by **, for explosively
-                    // exponential reasons.
-                    for (; fi < fl; fi++) {
-                        if (file[fi] === '.' ||
-                            file[fi] === '..' ||
-                            (!options.dot && file[fi].charAt(0) === '.'))
-                            return false;
-                    }
-                    return true;
-                }
-                // ok, let's see if we can swallow whatever we can.
-                while (fr < fl) {
-                    var swallowee = file[fr];
-                    this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
-                    // XXX remove this slice.  Just pass the start index.
-                    if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
-                        this.debug('globstar found match!', fr, fl, swallowee);
-                        // found a match.
-                        return true;
-                    }
-                    else {
-                        // can't swallow "." or ".." ever.
-                        // can only swallow ".foo" when explicitly asked.
-                        if (swallowee === '.' ||
-                            swallowee === '..' ||
-                            (!options.dot && swallowee.charAt(0) === '.')) {
-                            this.debug('dot detected!', file, fr, pattern, pr);
-                            break;
-                        }
-                        // ** swallows a segment, and continue.
-                        this.debug('globstar swallow a segment, and continue');
-                        fr++;
-                    }
-                }
-                // no match was found.
-                // However, in partial mode, we can't say this is necessarily over.
-                /* c8 ignore start */
-                if (partial) {
-                    // ran out of file
-                    this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
-                    if (fr === fl) {
-                        return true;
-                    }
-                }
-                /* c8 ignore stop */
-                return false;
-            }
-            // something other than **
-            // non-magic patterns just have to match exactly
-            // patterns with magic have been turned into regexps.
-            let hit;
-            if (typeof p === 'string') {
-                hit = f === p;
-                this.debug('string match', p, f, hit);
-            }
-            else {
-                hit = p.test(f);
-                this.debug('pattern match', p, f, hit);
-            }
-            if (!hit)
-                return false;
-        }
-        // Note: ending in / means that we'll get a final ""
-        // at the end of the pattern.  This can only match a
-        // corresponding "" at the end of the file.
-        // If the file ends in /, then it can only match a
-        // a pattern that ends in /, unless the pattern just
-        // doesn't have any more for it. But, a/b/ should *not*
-        // match "a/b/*", even though "" matches against the
-        // [^/]*? pattern, except in partial mode, where it might
-        // simply not be reached yet.
-        // However, a/b/ should still satisfy a/*
-        // now either we fell off the end of the pattern, or we're done.
-        if (fi === fl && pi === pl) {
-            // ran out of pattern and filename at the same time.
-            // an exact hit!
-            return true;
-        }
-        else if (fi === fl) {
-            // ran out of file, but still had pattern left.
-            // this is ok if we're doing the match as part of
-            // a glob fs traversal.
-            return partial;
-        }
-        else if (pi === pl) {
-            // ran out of pattern, still have file left.
-            // this is only acceptable if we're on the very last
-            // empty segment of a file with a trailing slash.
-            // a/* should match a/b/
-            return fi === fl - 1 && file[fi] === '';
-            /* c8 ignore start */
-        }
-        else {
-            // should be unreachable.
-            throw new Error('wtf?');
-        }
-        /* c8 ignore stop */
-    }
-    braceExpand() {
-        return braceExpand(this.pattern, this.options);
-    }
-    parse(pattern) {
-        assertValidPattern(pattern);
-        const options = this.options;
-        // shortcuts
-        if (pattern === '**')
-            return GLOBSTAR;
-        if (pattern === '')
-            return '';
-        // far and away, the most common glob pattern parts are
-        // *, *.*, and *.  Add a fast check method for those.
-        let m;
-        let fastTest = null;
-        if ((m = pattern.match(starRE))) {
-            fastTest = options.dot ? starTestDot : starTest;
-        }
-        else if ((m = pattern.match(starDotExtRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? starDotExtTestNocaseDot
-                    : starDotExtTestNocase
-                : options.dot
-                    ? starDotExtTestDot
-                    : starDotExtTest)(m[1]);
-        }
-        else if ((m = pattern.match(qmarksRE))) {
-            fastTest = (options.nocase
-                ? options.dot
-                    ? qmarksTestNocaseDot
-                    : qmarksTestNocase
-                : options.dot
-                    ? qmarksTestDot
-                    : qmarksTest)(m);
-        }
-        else if ((m = pattern.match(starDotStarRE))) {
-            fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
-        }
-        else if ((m = pattern.match(dotStarRE))) {
-            fastTest = dotStarTest;
-        }
-        const re = AST.fromGlob(pattern, this.options).toMMPattern();
-        if (fastTest && typeof re === 'object') {
-            // Avoids overriding in frozen environments
-            Reflect.defineProperty(re, 'test', { value: fastTest });
-        }
-        return re;
-    }
-    makeRe() {
-        if (this.regexp || this.regexp === false)
-            return this.regexp;
-        // at this point, this.set is a 2d array of partial
-        // pattern strings, or "**".
-        //
-        // It's better to use .match().  This function shouldn't
-        // be used, really, but it's pretty convenient sometimes,
-        // when you just want to work with a regex.
-        const set = this.set;
-        if (!set.length) {
-            this.regexp = false;
-            return this.regexp;
-        }
-        const options = this.options;
-        const twoStar = options.noglobstar
-            ? star
-            : options.dot
-                ? twoStarDot
-                : twoStarNoDot;
-        const flags = new Set(options.nocase ? ['i'] : []);
-        // regexpify non-globstar patterns
-        // if ** is only item, then we just do one twoStar
-        // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
-        // if ** is last, append (\/twoStar|) to previous
-        // if ** is in the middle, append (\/|\/twoStar\/) to previous
-        // then filter out GLOBSTAR symbols
-        let re = set
-            .map(pattern => {
-            const pp = pattern.map(p => {
-                if (p instanceof RegExp) {
-                    for (const f of p.flags.split(''))
-                        flags.add(f);
-                }
-                return typeof p === 'string'
-                    ? regExpEscape(p)
-                    : p === GLOBSTAR
-                        ? GLOBSTAR
-                        : p._src;
-            });
-            pp.forEach((p, i) => {
-                const next = pp[i + 1];
-                const prev = pp[i - 1];
-                if (p !== GLOBSTAR || prev === GLOBSTAR) {
-                    return;
-                }
-                if (prev === undefined) {
-                    if (next !== undefined && next !== GLOBSTAR) {
-                        pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
-                    }
-                    else {
-                        pp[i] = twoStar;
-                    }
-                }
-                else if (next === undefined) {
-                    pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
-                }
-                else if (next !== GLOBSTAR) {
-                    pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
-                    pp[i + 1] = GLOBSTAR;
-                }
-            });
-            return pp.filter(p => p !== GLOBSTAR).join('/');
-        })
-            .join('|');
-        // need to wrap in parens if we had more than one thing with |,
-        // otherwise only the first will be anchored to ^ and the last to $
-        const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
-        // must match entire pattern
-        // ending in a * or ** will make it less strict.
-        re = '^' + open + re + close + '$';
-        // can match anything, as long as it's not this.
-        if (this.negate)
-            re = '^(?!' + re + ').+$';
-        try {
-            this.regexp = new RegExp(re, [...flags].join(''));
-            /* c8 ignore start */
-        }
-        catch (ex) {
-            // should be impossible
-            this.regexp = false;
-        }
-        /* c8 ignore stop */
-        return this.regexp;
-    }
-    slashSplit(p) {
-        // if p starts with // on windows, we preserve that
-        // so that UNC paths aren't broken.  Otherwise, any number of
-        // / characters are coalesced into one, unless
-        // preserveMultipleSlashes is set to true.
-        if (this.preserveMultipleSlashes) {
-            return p.split('/');
-        }
-        else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
-            // add an extra '' for the one we lose
-            return ['', ...p.split(/\/+/)];
-        }
-        else {
-            return p.split(/\/+/);
-        }
-    }
-    match(f, partial = this.partial) {
-        this.debug('match', f, this.pattern);
-        // short-circuit in the case of busted things.
-        // comments, etc.
-        if (this.comment) {
-            return false;
-        }
-        if (this.empty) {
-            return f === '';
-        }
-        if (f === '/' && partial) {
-            return true;
-        }
-        const options = this.options;
-        // windows: need to use /, not \
-        if (this.isWindows) {
-            f = f.split('\\').join('/');
-        }
-        // treat the test path as a set of pathparts.
-        const ff = this.slashSplit(f);
-        this.debug(this.pattern, 'split', ff);
-        // just ONE of the pattern sets in this.set needs to match
-        // in order for it to be valid.  If negating, then just one
-        // match means that we have failed.
-        // Either way, return on the first hit.
-        const set = this.set;
-        this.debug(this.pattern, 'set', set);
-        // Find the basename of the path by looking for the last non-empty segment
-        let filename = ff[ff.length - 1];
-        if (!filename) {
-            for (let i = ff.length - 2; !filename && i >= 0; i--) {
-                filename = ff[i];
-            }
-        }
-        for (let i = 0; i < set.length; i++) {
-            const pattern = set[i];
-            let file = ff;
-            if (options.matchBase && pattern.length === 1) {
-                file = [filename];
-            }
-            const hit = this.matchOne(file, pattern, partial);
-            if (hit) {
-                if (options.flipNegate) {
-                    return true;
-                }
-                return !this.negate;
-            }
-        }
-        // didn't get any hits.  this is success if it's a negative
-        // pattern, failure otherwise.
-        if (options.flipNegate) {
-            return false;
-        }
-        return this.negate;
-    }
-    static defaults(def) {
-        return minimatch.defaults(def).Minimatch;
-    }
-}
-/* c8 ignore start */
-export { AST } from './ast.js';
-export { escape } from './escape.js';
-export { unescape } from './unescape.js';
-/* c8 ignore stop */
-minimatch.AST = AST;
-minimatch.Minimatch = Minimatch;
-minimatch.escape = escape;
-minimatch.unescape = unescape;
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js.map
deleted file mode 100644
index ff82a0d3..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAsCxC,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,CAAS,EACT,OAAe,EACf,UAA4B,EAAE,EAC9B,EAAE;IACF,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAE3B,oCAAoC;IACpC,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACnD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,wDAAwD;AACxD,MAAM,YAAY,GAAG,uBAAuB,CAAA;AAC5C,MAAM,cAAc,GAAG,CAAC,GAAW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, ExtglobType } from './ast.js'\nimport { escape } from './escape.js'\nimport { unescape } from './unescape.js'\n\ntype Platform =\n  | 'aix'\n  | 'android'\n  | 'darwin'\n  | 'freebsd'\n  | 'haiku'\n  | 'linux'\n  | 'openbsd'\n  | 'sunos'\n  | 'win32'\n  | 'cygwin'\n  | 'netbsd'\n\nexport interface MinimatchOptions {\n  nobrace?: boolean\n  nocomment?: boolean\n  nonegate?: boolean\n  debug?: boolean\n  noglobstar?: boolean\n  noext?: boolean\n  nonull?: boolean\n  windowsPathsNoEscape?: boolean\n  allowWindowsEscape?: boolean\n  partial?: boolean\n  dot?: boolean\n  nocase?: boolean\n  nocaseMagicOnly?: boolean\n  magicalBraces?: boolean\n  matchBase?: boolean\n  flipNegate?: boolean\n  preserveMultipleSlashes?: boolean\n  optimizationLevel?: number\n  platform?: Platform\n  windowsNoMagicRoot?: boolean\n}\n\nexport const minimatch = (\n  p: string,\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  assertValidPattern(pattern)\n\n  // shortcut: comments match nothing.\n  if (!options.nocomment && pattern.charAt(0) === '#') {\n    return false\n  }\n\n  return new Minimatch(pattern, options).match(p)\n}\n\n// Optimized checking for the most common glob patterns.\nconst starDotExtRE = /^\\*+([^+@!?\\*\\[\\(]*)$/\nconst starDotExtTest = (ext: string) => (f: string) =>\n  !f.startsWith('.') && f.endsWith(ext)\nconst starDotExtTestDot = (ext: string) => (f: string) => f.endsWith(ext)\nconst starDotExtTestNocase = (ext: string) => {\n  ext = ext.toLowerCase()\n  return (f: string) => !f.startsWith('.') && f.toLowerCase().endsWith(ext)\n}\nconst starDotExtTestNocaseDot = (ext: string) => {\n  ext = ext.toLowerCase()\n  return (f: string) => f.toLowerCase().endsWith(ext)\n}\nconst starDotStarRE = /^\\*+\\.\\*+$/\nconst starDotStarTest = (f: string) => !f.startsWith('.') && f.includes('.')\nconst starDotStarTestDot = (f: string) =>\n  f !== '.' && f !== '..' && f.includes('.')\nconst dotStarRE = /^\\.\\*+$/\nconst dotStarTest = (f: string) => f !== '.' && f !== '..' && f.startsWith('.')\nconst starRE = /^\\*+$/\nconst starTest = (f: string) => f.length !== 0 && !f.startsWith('.')\nconst starTestDot = (f: string) => f.length !== 0 && f !== '.' && f !== '..'\nconst qmarksRE = /^\\?+([^+@!?\\*\\[\\(]*)?$/\nconst qmarksTestNocase = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExt([$0])\n  if (!ext) return noext\n  ext = ext.toLowerCase()\n  return (f: string) => noext(f) && f.toLowerCase().endsWith(ext)\n}\nconst qmarksTestNocaseDot = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExtDot([$0])\n  if (!ext) return noext\n  ext = ext.toLowerCase()\n  return (f: string) => noext(f) && f.toLowerCase().endsWith(ext)\n}\nconst qmarksTestDot = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExtDot([$0])\n  return !ext ? noext : (f: string) => noext(f) && f.endsWith(ext)\n}\nconst qmarksTest = ([$0, ext = '']: RegExpMatchArray) => {\n  const noext = qmarksTestNoExt([$0])\n  return !ext ? noext : (f: string) => noext(f) && f.endsWith(ext)\n}\nconst qmarksTestNoExt = ([$0]: RegExpMatchArray) => {\n  const len = $0.length\n  return (f: string) => f.length === len && !f.startsWith('.')\n}\nconst qmarksTestNoExtDot = ([$0]: RegExpMatchArray) => {\n  const len = $0.length\n  return (f: string) => f.length === len && f !== '.' && f !== '..'\n}\n\n/* c8 ignore start */\nconst defaultPlatform: Platform = (\n  typeof process === 'object' && process\n    ? (typeof process.env === 'object' &&\n        process.env &&\n        process.env.__MINIMATCH_TESTING_PLATFORM__) ||\n      process.platform\n    : 'posix'\n) as Platform\ntype Sep = '\\\\' | '/'\nconst path: { [k: string]: { sep: Sep } } = {\n  win32: { sep: '\\\\' },\n  posix: { sep: '/' },\n}\n/* c8 ignore stop */\n\nexport const sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep\nminimatch.sep = sep\n\nexport const GLOBSTAR = Symbol('globstar **')\nminimatch.GLOBSTAR = GLOBSTAR\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n\n// ** when dots are allowed.  Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nconst twoStarDot = '(?:(?!(?:\\\\/|^)(?:\\\\.{1,2})($|\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nconst twoStarNoDot = '(?:(?!(?:\\\\/|^)\\\\.).)*?'\n\nexport const filter =\n  (pattern: string, options: MinimatchOptions = {}) =>\n  (p: string) =>\n    minimatch(p, pattern, options)\nminimatch.filter = filter\n\nconst ext = (a: MinimatchOptions, b: MinimatchOptions = {}) =>\n  Object.assign({}, a, b)\n\nexport const defaults = (def: MinimatchOptions): typeof minimatch => {\n  if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n    return minimatch\n  }\n\n  const orig = minimatch\n\n  const m = (p: string, pattern: string, options: MinimatchOptions = {}) =>\n    orig(p, pattern, ext(def, options))\n\n  return Object.assign(m, {\n    Minimatch: class Minimatch extends orig.Minimatch {\n      constructor(pattern: string, options: MinimatchOptions = {}) {\n        super(pattern, ext(def, options))\n      }\n      static defaults(options: MinimatchOptions) {\n        return orig.defaults(ext(def, options)).Minimatch\n      }\n    },\n\n    AST: class AST extends orig.AST {\n      /* c8 ignore start */\n      constructor(\n        type: ExtglobType | null,\n        parent?: AST,\n        options: MinimatchOptions = {}\n      ) {\n        super(type, parent, ext(def, options))\n      }\n      /* c8 ignore stop */\n\n      static fromGlob(pattern: string, options: MinimatchOptions = {}) {\n        return orig.AST.fromGlob(pattern, ext(def, options))\n      }\n    },\n\n    unescape: (\n      s: string,\n      options: Pick = {}\n    ) => orig.unescape(s, ext(def, options)),\n\n    escape: (\n      s: string,\n      options: Pick = {}\n    ) => orig.escape(s, ext(def, options)),\n\n    filter: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.filter(pattern, ext(def, options)),\n\n    defaults: (options: MinimatchOptions) => orig.defaults(ext(def, options)),\n\n    makeRe: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.makeRe(pattern, ext(def, options)),\n\n    braceExpand: (pattern: string, options: MinimatchOptions = {}) =>\n      orig.braceExpand(pattern, ext(def, options)),\n\n    match: (list: string[], pattern: string, options: MinimatchOptions = {}) =>\n      orig.match(list, pattern, ext(def, options)),\n\n    sep: orig.sep,\n    GLOBSTAR: GLOBSTAR as typeof GLOBSTAR,\n  })\n}\nminimatch.defaults = defaults\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nexport const braceExpand = (\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  assertValidPattern(pattern)\n\n  // Thanks to Yeting Li  for\n  // improving this regexp to avoid a ReDOS vulnerability.\n  if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n    // shortcut. no need to expand.\n    return [pattern]\n  }\n\n  return expand(pattern)\n}\nminimatch.braceExpand = braceExpand\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion.  Otherwise, any series\n// of * is equivalent to a single *.  Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\n\nexport const makeRe = (pattern: string, options: MinimatchOptions = {}) =>\n  new Minimatch(pattern, options).makeRe()\nminimatch.makeRe = makeRe\n\nexport const match = (\n  list: string[],\n  pattern: string,\n  options: MinimatchOptions = {}\n) => {\n  const mm = new Minimatch(pattern, options)\n  list = list.filter(f => mm.match(f))\n  if (mm.options.nonull && !list.length) {\n    list.push(pattern)\n  }\n  return list\n}\nminimatch.match = match\n\n// replace stuff like \\* with *\nconst globMagic = /[?*]|[+@!]\\(.*?\\)|\\[|\\]/\nconst regExpEscape = (s: string) =>\n  s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\nexport type MMRegExp = RegExp & {\n  _src?: string\n  _glob?: string\n}\n\nexport type ParseReturnFiltered = string | MMRegExp | typeof GLOBSTAR\nexport type ParseReturn = ParseReturnFiltered | false\n\nexport class Minimatch {\n  options: MinimatchOptions\n  set: ParseReturnFiltered[][]\n  pattern: string\n\n  windowsPathsNoEscape: boolean\n  nonegate: boolean\n  negate: boolean\n  comment: boolean\n  empty: boolean\n  preserveMultipleSlashes: boolean\n  partial: boolean\n  globSet: string[]\n  globParts: string[][]\n  nocase: boolean\n\n  isWindows: boolean\n  platform: Platform\n  windowsNoMagicRoot: boolean\n\n  regexp: false | null | MMRegExp\n  constructor(pattern: string, options: MinimatchOptions = {}) {\n    assertValidPattern(pattern)\n\n    options = options || {}\n    this.options = options\n    this.pattern = pattern\n    this.platform = options.platform || defaultPlatform\n    this.isWindows = this.platform === 'win32'\n    this.windowsPathsNoEscape =\n      !!options.windowsPathsNoEscape || options.allowWindowsEscape === false\n    if (this.windowsPathsNoEscape) {\n      this.pattern = this.pattern.replace(/\\\\/g, '/')\n    }\n    this.preserveMultipleSlashes = !!options.preserveMultipleSlashes\n    this.regexp = null\n    this.negate = false\n    this.nonegate = !!options.nonegate\n    this.comment = false\n    this.empty = false\n    this.partial = !!options.partial\n    this.nocase = !!this.options.nocase\n    this.windowsNoMagicRoot =\n      options.windowsNoMagicRoot !== undefined\n        ? options.windowsNoMagicRoot\n        : !!(this.isWindows && this.nocase)\n\n    this.globSet = []\n    this.globParts = []\n    this.set = []\n\n    // make the set of regexps etc.\n    this.make()\n  }\n\n  hasMagic(): boolean {\n    if (this.options.magicalBraces && this.set.length > 1) {\n      return true\n    }\n    for (const pattern of this.set) {\n      for (const part of pattern) {\n        if (typeof part !== 'string') return true\n      }\n    }\n    return false\n  }\n\n  debug(..._: any[]) {}\n\n  make() {\n    const pattern = this.pattern\n    const options = this.options\n\n    // empty patterns and comments match nothing.\n    if (!options.nocomment && pattern.charAt(0) === '#') {\n      this.comment = true\n      return\n    }\n\n    if (!pattern) {\n      this.empty = true\n      return\n    }\n\n    // step 1: figure out negation, etc.\n    this.parseNegate()\n\n    // step 2: expand braces\n    this.globSet = [...new Set(this.braceExpand())]\n\n    if (options.debug) {\n      this.debug = (...args: any[]) => console.error(...args)\n    }\n\n    this.debug(this.pattern, this.globSet)\n\n    // step 3: now we have a set, so turn each one into a series of\n    // path-portion matching patterns.\n    // These will be regexps, except in the case of \"**\", which is\n    // set to the GLOBSTAR object for globstar behavior,\n    // and will not contain any / characters\n    //\n    // First, we preprocess to make the glob pattern sets a bit simpler\n    // and deduped.  There are some perf-killing patterns that can cause\n    // problems with a glob walk, but we can simplify them down a bit.\n    const rawGlobParts = this.globSet.map(s => this.slashSplit(s))\n    this.globParts = this.preprocess(rawGlobParts)\n    this.debug(this.pattern, this.globParts)\n\n    // glob --> regexps\n    let set = this.globParts.map((s, _, __) => {\n      if (this.isWindows && this.windowsNoMagicRoot) {\n        // check if it's a drive or unc path.\n        const isUNC =\n          s[0] === '' &&\n          s[1] === '' &&\n          (s[2] === '?' || !globMagic.test(s[2])) &&\n          !globMagic.test(s[3])\n        const isDrive = /^[a-z]:/i.test(s[0])\n        if (isUNC) {\n          return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))]\n        } else if (isDrive) {\n          return [s[0], ...s.slice(1).map(ss => this.parse(ss))]\n        }\n      }\n      return s.map(ss => this.parse(ss))\n    })\n\n    this.debug(this.pattern, set)\n\n    // filter out everything that didn't compile properly.\n    this.set = set.filter(\n      s => s.indexOf(false) === -1\n    ) as ParseReturnFiltered[][]\n\n    // do not treat the ? in UNC paths as magic\n    if (this.isWindows) {\n      for (let i = 0; i < this.set.length; i++) {\n        const p = this.set[i]\n        if (\n          p[0] === '' &&\n          p[1] === '' &&\n          this.globParts[i][2] === '?' &&\n          typeof p[3] === 'string' &&\n          /^[a-z]:$/i.test(p[3])\n        ) {\n          p[2] = '?'\n        }\n      }\n    }\n\n    this.debug(this.pattern, this.set)\n  }\n\n  // various transforms to equivalent pattern sets that are\n  // faster to process in a filesystem walk.  The goal is to\n  // eliminate what we can, and push all ** patterns as far\n  // to the right as possible, even if it increases the number\n  // of patterns that we have to process.\n  preprocess(globParts: string[][]) {\n    // if we're not in globstar mode, then turn all ** into *\n    if (this.options.noglobstar) {\n      for (let i = 0; i < globParts.length; i++) {\n        for (let j = 0; j < globParts[i].length; j++) {\n          if (globParts[i][j] === '**') {\n            globParts[i][j] = '*'\n          }\n        }\n      }\n    }\n\n    const { optimizationLevel = 1 } = this.options\n\n    if (optimizationLevel >= 2) {\n      // aggressive optimization for the purpose of fs walking\n      globParts = this.firstPhasePreProcess(globParts)\n      globParts = this.secondPhasePreProcess(globParts)\n    } else if (optimizationLevel >= 1) {\n      // just basic optimizations to remove some .. parts\n      globParts = this.levelOneOptimize(globParts)\n    } else {\n      // just collapse multiple ** portions into one\n      globParts = this.adjascentGlobstarOptimize(globParts)\n    }\n\n    return globParts\n  }\n\n  // just get rid of adjascent ** portions\n  adjascentGlobstarOptimize(globParts: string[][]) {\n    return globParts.map(parts => {\n      let gs: number = -1\n      while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n        let i = gs\n        while (parts[i + 1] === '**') {\n          i++\n        }\n        if (i !== gs) {\n          parts.splice(gs, i - gs)\n        }\n      }\n      return parts\n    })\n  }\n\n  // get rid of adjascent ** and resolve .. portions\n  levelOneOptimize(globParts: string[][]) {\n    return globParts.map(parts => {\n      parts = parts.reduce((set: string[], part) => {\n        const prev = set[set.length - 1]\n        if (part === '**' && prev === '**') {\n          return set\n        }\n        if (part === '..') {\n          if (prev && prev !== '..' && prev !== '.' && prev !== '**') {\n            set.pop()\n            return set\n          }\n        }\n        set.push(part)\n        return set\n      }, [])\n      return parts.length === 0 ? [''] : parts\n    })\n  }\n\n  levelTwoFileOptimize(parts: string | string[]) {\n    if (!Array.isArray(parts)) {\n      parts = this.slashSplit(parts)\n    }\n    let didSomething: boolean = false\n    do {\n      didSomething = false\n      // 
// -> 
/\n      if (!this.preserveMultipleSlashes) {\n        for (let i = 1; i < parts.length - 1; i++) {\n          const p = parts[i]\n          // don't squeeze out UNC patterns\n          if (i === 1 && p === '' && parts[0] === '') continue\n          if (p === '.' || p === '') {\n            didSomething = true\n            parts.splice(i, 1)\n            i--\n          }\n        }\n        if (\n          parts[0] === '.' &&\n          parts.length === 2 &&\n          (parts[1] === '.' || parts[1] === '')\n        ) {\n          didSomething = true\n          parts.pop()\n        }\n      }\n\n      // 
/

/../ ->

/\n      let dd: number = 0\n      while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n        const p = parts[dd - 1]\n        if (p && p !== '.' && p !== '..' && p !== '**') {\n          didSomething = true\n          parts.splice(dd - 1, 2)\n          dd -= 2\n        }\n      }\n    } while (didSomething)\n    return parts.length === 0 ? [''] : parts\n  }\n\n  // First phase: single-pattern processing\n  // 
 is 1 or more portions\n  //  is 1 or more portions\n  // 

is any portion other than ., .., '', or **\n // is . or ''\n //\n // **/.. is *brutal* for filesystem walking performance, because\n // it effectively resets the recursive walk each time it occurs,\n // and ** cannot be reduced out by a .. pattern part like a regexp\n // or most strings (other than .., ., and '') can be.\n //\n //

/**/../

/

/ -> {

/../

/

/,

/**/

/

/}\n //

// -> 
/\n  // 
/

/../ ->

/\n  // **/**/ -> **/\n  //\n  // **/*/ -> */**/ <== not valid because ** doesn't follow\n  // this WOULD be allowed if ** did follow symlinks, or * didn't\n  firstPhasePreProcess(globParts: string[][]) {\n    let didSomething = false\n    do {\n      didSomething = false\n      // 
/**/../

/

/ -> {

/../

/

/,

/**/

/

/}\n for (let parts of globParts) {\n let gs: number = -1\n while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n let gss: number = gs\n while (parts[gss + 1] === '**') {\n //

/**/**/ -> 
/**/\n            gss++\n          }\n          // eg, if gs is 2 and gss is 4, that means we have 3 **\n          // parts, and can remove 2 of them.\n          if (gss > gs) {\n            parts.splice(gs + 1, gss - gs)\n          }\n\n          let next = parts[gs + 1]\n          const p = parts[gs + 2]\n          const p2 = parts[gs + 3]\n          if (next !== '..') continue\n          if (\n            !p ||\n            p === '.' ||\n            p === '..' ||\n            !p2 ||\n            p2 === '.' ||\n            p2 === '..'\n          ) {\n            continue\n          }\n          didSomething = true\n          // edit parts in place, and push the new one\n          parts.splice(gs, 1)\n          const other = parts.slice(0)\n          other[gs] = '**'\n          globParts.push(other)\n          gs--\n        }\n\n        // 
// -> 
/\n        if (!this.preserveMultipleSlashes) {\n          for (let i = 1; i < parts.length - 1; i++) {\n            const p = parts[i]\n            // don't squeeze out UNC patterns\n            if (i === 1 && p === '' && parts[0] === '') continue\n            if (p === '.' || p === '') {\n              didSomething = true\n              parts.splice(i, 1)\n              i--\n            }\n          }\n          if (\n            parts[0] === '.' &&\n            parts.length === 2 &&\n            (parts[1] === '.' || parts[1] === '')\n          ) {\n            didSomething = true\n            parts.pop()\n          }\n        }\n\n        // 
/

/../ ->

/\n        let dd: number = 0\n        while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n          const p = parts[dd - 1]\n          if (p && p !== '.' && p !== '..' && p !== '**') {\n            didSomething = true\n            const needDot = dd === 1 && parts[dd + 1] === '**'\n            const splin = needDot ? ['.'] : []\n            parts.splice(dd - 1, 2, ...splin)\n            if (parts.length === 0) parts.push('')\n            dd -= 2\n          }\n        }\n      }\n    } while (didSomething)\n\n    return globParts\n  }\n\n  // second phase: multi-pattern dedupes\n  // {
/*/,
/

/} ->

/*/\n  // {
/,
/} -> 
/\n  // {
/**/,
/} -> 
/**/\n  //\n  // {
/**/,
/**/

/} ->

/**/\n  // ^-- not valid because ** doens't follow symlinks\n  secondPhasePreProcess(globParts: string[][]): string[][] {\n    for (let i = 0; i < globParts.length - 1; i++) {\n      for (let j = i + 1; j < globParts.length; j++) {\n        const matched = this.partsMatch(\n          globParts[i],\n          globParts[j],\n          !this.preserveMultipleSlashes\n        )\n        if (matched) {\n          globParts[i] = []\n          globParts[j] = matched\n          break\n        }\n      }\n    }\n    return globParts.filter(gs => gs.length)\n  }\n\n  partsMatch(\n    a: string[],\n    b: string[],\n    emptyGSMatch: boolean = false\n  ): false | string[] {\n    let ai = 0\n    let bi = 0\n    let result: string[] = []\n    let which: string = ''\n    while (ai < a.length && bi < b.length) {\n      if (a[ai] === b[bi]) {\n        result.push(which === 'b' ? b[bi] : a[ai])\n        ai++\n        bi++\n      } else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {\n        result.push(a[ai])\n        ai++\n      } else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {\n        result.push(b[bi])\n        bi++\n      } else if (\n        a[ai] === '*' &&\n        b[bi] &&\n        (this.options.dot || !b[bi].startsWith('.')) &&\n        b[bi] !== '**'\n      ) {\n        if (which === 'b') return false\n        which = 'a'\n        result.push(a[ai])\n        ai++\n        bi++\n      } else if (\n        b[bi] === '*' &&\n        a[ai] &&\n        (this.options.dot || !a[ai].startsWith('.')) &&\n        a[ai] !== '**'\n      ) {\n        if (which === 'a') return false\n        which = 'b'\n        result.push(b[bi])\n        ai++\n        bi++\n      } else {\n        return false\n      }\n    }\n    // if we fall out of the loop, it means they two are identical\n    // as long as their lengths match\n    return a.length === b.length && result\n  }\n\n  parseNegate() {\n    if (this.nonegate) return\n\n    const pattern = this.pattern\n    let negate = false\n    let negateOffset = 0\n\n    for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {\n      negate = !negate\n      negateOffset++\n    }\n\n    if (negateOffset) this.pattern = pattern.slice(negateOffset)\n    this.negate = negate\n  }\n\n  // set partial to true to test if, for example,\n  // \"/a/b\" matches the start of \"/*/b/*/d\"\n  // Partial means, if you run out of file before you run\n  // out of pattern, then that's fine, as long as all\n  // the parts match.\n  matchOne(file: string[], pattern: ParseReturn[], partial: boolean = false) {\n    const options = this.options\n\n    // UNC paths like //?/X:/... can match X:/... and vice versa\n    // Drive letters in absolute drive or unc paths are always compared\n    // case-insensitively.\n    if (this.isWindows) {\n      const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0])\n      const fileUNC =\n        !fileDrive &&\n        file[0] === '' &&\n        file[1] === '' &&\n        file[2] === '?' &&\n        /^[a-z]:$/i.test(file[3])\n\n      const patternDrive =\n        typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0])\n      const patternUNC =\n        !patternDrive &&\n        pattern[0] === '' &&\n        pattern[1] === '' &&\n        pattern[2] === '?' &&\n        typeof pattern[3] === 'string' &&\n        /^[a-z]:$/i.test(pattern[3])\n\n      const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined\n      const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined\n      if (typeof fdi === 'number' && typeof pdi === 'number') {\n        const [fd, pd]: [string, string] = [file[fdi], pattern[pdi] as string]\n        if (fd.toLowerCase() === pd.toLowerCase()) {\n          pattern[pdi] = fd\n          if (pdi > fdi) {\n            pattern = pattern.slice(pdi)\n          } else if (fdi > pdi) {\n            file = file.slice(fdi)\n          }\n        }\n      }\n    }\n\n    // resolve and reduce . and .. portions in the file as well.\n    // dont' need to do the second phase, because it's only one string[]\n    const { optimizationLevel = 1 } = this.options\n    if (optimizationLevel >= 2) {\n      file = this.levelTwoFileOptimize(file)\n    }\n\n    this.debug('matchOne', this, { file, pattern })\n    this.debug('matchOne', file.length, pattern.length)\n\n    for (\n      var fi = 0, pi = 0, fl = file.length, pl = pattern.length;\n      fi < fl && pi < pl;\n      fi++, pi++\n    ) {\n      this.debug('matchOne loop')\n      var p = pattern[pi]\n      var f = file[fi]\n\n      this.debug(pattern, p, f)\n\n      // should be impossible.\n      // some invalid regexp stuff in the set.\n      /* c8 ignore start */\n      if (p === false) {\n        return false\n      }\n      /* c8 ignore stop */\n\n      if (p === GLOBSTAR) {\n        this.debug('GLOBSTAR', [pattern, p, f])\n\n        // \"**\"\n        // a/**/b/**/c would match the following:\n        // a/b/x/y/z/c\n        // a/x/y/z/b/c\n        // a/b/x/b/x/c\n        // a/b/c\n        // To do this, take the rest of the pattern after\n        // the **, and see if it would match the file remainder.\n        // If so, return success.\n        // If not, the ** \"swallows\" a segment, and try again.\n        // This is recursively awful.\n        //\n        // a/**/b/**/c matching a/b/x/y/z/c\n        // - a matches a\n        // - doublestar\n        //   - matchOne(b/x/y/z/c, b/**/c)\n        //     - b matches b\n        //     - doublestar\n        //       - matchOne(x/y/z/c, c) -> no\n        //       - matchOne(y/z/c, c) -> no\n        //       - matchOne(z/c, c) -> no\n        //       - matchOne(c, c) yes, hit\n        var fr = fi\n        var pr = pi + 1\n        if (pr === pl) {\n          this.debug('** at the end')\n          // a ** at the end will just swallow the rest.\n          // We have found a match.\n          // however, it will not swallow /.x, unless\n          // options.dot is set.\n          // . and .. are *never* matched by **, for explosively\n          // exponential reasons.\n          for (; fi < fl; fi++) {\n            if (\n              file[fi] === '.' ||\n              file[fi] === '..' ||\n              (!options.dot && file[fi].charAt(0) === '.')\n            )\n              return false\n          }\n          return true\n        }\n\n        // ok, let's see if we can swallow whatever we can.\n        while (fr < fl) {\n          var swallowee = file[fr]\n\n          this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n          // XXX remove this slice.  Just pass the start index.\n          if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n            this.debug('globstar found match!', fr, fl, swallowee)\n            // found a match.\n            return true\n          } else {\n            // can't swallow \".\" or \"..\" ever.\n            // can only swallow \".foo\" when explicitly asked.\n            if (\n              swallowee === '.' ||\n              swallowee === '..' ||\n              (!options.dot && swallowee.charAt(0) === '.')\n            ) {\n              this.debug('dot detected!', file, fr, pattern, pr)\n              break\n            }\n\n            // ** swallows a segment, and continue.\n            this.debug('globstar swallow a segment, and continue')\n            fr++\n          }\n        }\n\n        // no match was found.\n        // However, in partial mode, we can't say this is necessarily over.\n        /* c8 ignore start */\n        if (partial) {\n          // ran out of file\n          this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n          if (fr === fl) {\n            return true\n          }\n        }\n        /* c8 ignore stop */\n        return false\n      }\n\n      // something other than **\n      // non-magic patterns just have to match exactly\n      // patterns with magic have been turned into regexps.\n      let hit: boolean\n      if (typeof p === 'string') {\n        hit = f === p\n        this.debug('string match', p, f, hit)\n      } else {\n        hit = p.test(f)\n        this.debug('pattern match', p, f, hit)\n      }\n\n      if (!hit) return false\n    }\n\n    // Note: ending in / means that we'll get a final \"\"\n    // at the end of the pattern.  This can only match a\n    // corresponding \"\" at the end of the file.\n    // If the file ends in /, then it can only match a\n    // a pattern that ends in /, unless the pattern just\n    // doesn't have any more for it. But, a/b/ should *not*\n    // match \"a/b/*\", even though \"\" matches against the\n    // [^/]*? pattern, except in partial mode, where it might\n    // simply not be reached yet.\n    // However, a/b/ should still satisfy a/*\n\n    // now either we fell off the end of the pattern, or we're done.\n    if (fi === fl && pi === pl) {\n      // ran out of pattern and filename at the same time.\n      // an exact hit!\n      return true\n    } else if (fi === fl) {\n      // ran out of file, but still had pattern left.\n      // this is ok if we're doing the match as part of\n      // a glob fs traversal.\n      return partial\n    } else if (pi === pl) {\n      // ran out of pattern, still have file left.\n      // this is only acceptable if we're on the very last\n      // empty segment of a file with a trailing slash.\n      // a/* should match a/b/\n      return fi === fl - 1 && file[fi] === ''\n\n      /* c8 ignore start */\n    } else {\n      // should be unreachable.\n      throw new Error('wtf?')\n    }\n    /* c8 ignore stop */\n  }\n\n  braceExpand() {\n    return braceExpand(this.pattern, this.options)\n  }\n\n  parse(pattern: string): ParseReturn {\n    assertValidPattern(pattern)\n\n    const options = this.options\n\n    // shortcuts\n    if (pattern === '**') return GLOBSTAR\n    if (pattern === '') return ''\n\n    // far and away, the most common glob pattern parts are\n    // *, *.*, and *.  Add a fast check method for those.\n    let m: RegExpMatchArray | null\n    let fastTest: null | ((f: string) => boolean) = null\n    if ((m = pattern.match(starRE))) {\n      fastTest = options.dot ? starTestDot : starTest\n    } else if ((m = pattern.match(starDotExtRE))) {\n      fastTest = (\n        options.nocase\n          ? options.dot\n            ? starDotExtTestNocaseDot\n            : starDotExtTestNocase\n          : options.dot\n          ? starDotExtTestDot\n          : starDotExtTest\n      )(m[1])\n    } else if ((m = pattern.match(qmarksRE))) {\n      fastTest = (\n        options.nocase\n          ? options.dot\n            ? qmarksTestNocaseDot\n            : qmarksTestNocase\n          : options.dot\n          ? qmarksTestDot\n          : qmarksTest\n      )(m)\n    } else if ((m = pattern.match(starDotStarRE))) {\n      fastTest = options.dot ? starDotStarTestDot : starDotStarTest\n    } else if ((m = pattern.match(dotStarRE))) {\n      fastTest = dotStarTest\n    }\n\n    const re = AST.fromGlob(pattern, this.options).toMMPattern()\n    if (fastTest && typeof re === 'object') {\n      // Avoids overriding in frozen environments\n      Reflect.defineProperty(re, 'test', { value: fastTest })\n    }\n    return re\n  }\n\n  makeRe() {\n    if (this.regexp || this.regexp === false) return this.regexp\n\n    // at this point, this.set is a 2d array of partial\n    // pattern strings, or \"**\".\n    //\n    // It's better to use .match().  This function shouldn't\n    // be used, really, but it's pretty convenient sometimes,\n    // when you just want to work with a regex.\n    const set = this.set\n\n    if (!set.length) {\n      this.regexp = false\n      return this.regexp\n    }\n    const options = this.options\n\n    const twoStar = options.noglobstar\n      ? star\n      : options.dot\n      ? twoStarDot\n      : twoStarNoDot\n    const flags = new Set(options.nocase ? ['i'] : [])\n\n    // regexpify non-globstar patterns\n    // if ** is only item, then we just do one twoStar\n    // if ** is first, and there are more, prepend (\\/|twoStar\\/)? to next\n    // if ** is last, append (\\/twoStar|) to previous\n    // if ** is in the middle, append (\\/|\\/twoStar\\/) to previous\n    // then filter out GLOBSTAR symbols\n    let re = set\n      .map(pattern => {\n        const pp: (string | typeof GLOBSTAR)[] = pattern.map(p => {\n          if (p instanceof RegExp) {\n            for (const f of p.flags.split('')) flags.add(f)\n          }\n          return typeof p === 'string'\n            ? regExpEscape(p)\n            : p === GLOBSTAR\n            ? GLOBSTAR\n            : p._src\n        }) as (string | typeof GLOBSTAR)[]\n        pp.forEach((p, i) => {\n          const next = pp[i + 1]\n          const prev = pp[i - 1]\n          if (p !== GLOBSTAR || prev === GLOBSTAR) {\n            return\n          }\n          if (prev === undefined) {\n            if (next !== undefined && next !== GLOBSTAR) {\n              pp[i + 1] = '(?:\\\\/|' + twoStar + '\\\\/)?' + next\n            } else {\n              pp[i] = twoStar\n            }\n          } else if (next === undefined) {\n            pp[i - 1] = prev + '(?:\\\\/|' + twoStar + ')?'\n          } else if (next !== GLOBSTAR) {\n            pp[i - 1] = prev + '(?:\\\\/|\\\\/' + twoStar + '\\\\/)' + next\n            pp[i + 1] = GLOBSTAR\n          }\n        })\n        return pp.filter(p => p !== GLOBSTAR).join('/')\n      })\n      .join('|')\n\n    // need to wrap in parens if we had more than one thing with |,\n    // otherwise only the first will be anchored to ^ and the last to $\n    const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', '']\n    // must match entire pattern\n    // ending in a * or ** will make it less strict.\n    re = '^' + open + re + close + '$'\n\n    // can match anything, as long as it's not this.\n    if (this.negate) re = '^(?!' + re + ').+$'\n\n    try {\n      this.regexp = new RegExp(re, [...flags].join(''))\n      /* c8 ignore start */\n    } catch (ex) {\n      // should be impossible\n      this.regexp = false\n    }\n    /* c8 ignore stop */\n    return this.regexp\n  }\n\n  slashSplit(p: string) {\n    // if p starts with // on windows, we preserve that\n    // so that UNC paths aren't broken.  Otherwise, any number of\n    // / characters are coalesced into one, unless\n    // preserveMultipleSlashes is set to true.\n    if (this.preserveMultipleSlashes) {\n      return p.split('/')\n    } else if (this.isWindows && /^\\/\\/[^\\/]+/.test(p)) {\n      // add an extra '' for the one we lose\n      return ['', ...p.split(/\\/+/)]\n    } else {\n      return p.split(/\\/+/)\n    }\n  }\n\n  match(f: string, partial = this.partial) {\n    this.debug('match', f, this.pattern)\n    // short-circuit in the case of busted things.\n    // comments, etc.\n    if (this.comment) {\n      return false\n    }\n    if (this.empty) {\n      return f === ''\n    }\n\n    if (f === '/' && partial) {\n      return true\n    }\n\n    const options = this.options\n\n    // windows: need to use /, not \\\n    if (this.isWindows) {\n      f = f.split('\\\\').join('/')\n    }\n\n    // treat the test path as a set of pathparts.\n    const ff = this.slashSplit(f)\n    this.debug(this.pattern, 'split', ff)\n\n    // just ONE of the pattern sets in this.set needs to match\n    // in order for it to be valid.  If negating, then just one\n    // match means that we have failed.\n    // Either way, return on the first hit.\n\n    const set = this.set\n    this.debug(this.pattern, 'set', set)\n\n    // Find the basename of the path by looking for the last non-empty segment\n    let filename: string = ff[ff.length - 1]\n    if (!filename) {\n      for (let i = ff.length - 2; !filename && i >= 0; i--) {\n        filename = ff[i]\n      }\n    }\n\n    for (let i = 0; i < set.length; i++) {\n      const pattern = set[i]\n      let file = ff\n      if (options.matchBase && pattern.length === 1) {\n        file = [filename]\n      }\n      const hit = this.matchOne(file, pattern, partial)\n      if (hit) {\n        if (options.flipNegate) {\n          return true\n        }\n        return !this.negate\n      }\n    }\n\n    // didn't get any hits.  this is success if it's a negative\n    // pattern, failure otherwise.\n    if (options.flipNegate) {\n      return false\n    }\n    return this.negate\n  }\n\n  static defaults(def: MinimatchOptions) {\n    return minimatch.defaults(def).Minimatch\n  }\n}\n/* c8 ignore start */\nexport { AST } from './ast.js'\nexport { escape } from './escape.js'\nexport { unescape } from './unescape.js'\n/* c8 ignore stop */\nminimatch.AST = AST\nminimatch.Minimatch = Minimatch\nminimatch.escape = escape\nminimatch.unescape = unescape\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/package.json b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/package.json
deleted file mode 100644
index 3dbc1ca5..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  "type": "module"
-}
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts
deleted file mode 100644
index 23a7b387..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { MinimatchOptions } from './index.js';
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-export declare const unescape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-//# sourceMappingURL=unescape.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts.map
deleted file mode 100644
index 7ace0701..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"unescape.d.ts","sourceRoot":"","sources":["../../src/unescape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,MAChB,MAAM,8BAGN,KAAK,gBAAgB,EAAE,sBAAsB,CAAC,WAKlD,CAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js
deleted file mode 100644
index 0faf9a2b..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Un-escape a string that has been escaped with {@link escape}.
- *
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
- * escapes are removed, but not backslash escapes.  For example, it will turn
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
- *
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
- * backslash escapes are removed.
- *
- * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
- * or unescaped.
- */
-export const unescape = (s, { windowsPathsNoEscape = false, } = {}) => {
-    return windowsPathsNoEscape
-        ? s.replace(/\[([^\/\\])\]/g, '$1')
-        : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2').replace(/\\([^\/])/g, '$1');
-};
-//# sourceMappingURL=unescape.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js.map b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js.map
deleted file mode 100644
index eb146c20..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/unescape.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"unescape.js","sourceRoot":"","sources":["../../src/unescape.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,CAAS,EACT,EACE,oBAAoB,GAAG,KAAK,MACsB,EAAE,EACtD,EAAE;IACF,OAAO,oBAAoB;QACzB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC;QACnC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;AAChF,CAAC,CAAA","sourcesContent":["import { MinimatchOptions } from './index.js'\n/**\n * Un-escape a string that has been escaped with {@link escape}.\n *\n * If the {@link windowsPathsNoEscape} option is used, then square-brace\n * escapes are removed, but not backslash escapes.  For example, it will turn\n * the string `'[*]'` into `*`, but it will not turn `'\\\\*'` into `'*'`,\n * becuase `\\` is a path separator in `windowsPathsNoEscape` mode.\n *\n * When `windowsPathsNoEscape` is not set, then both brace escapes and\n * backslash escapes are removed.\n *\n * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped\n * or unescaped.\n */\nexport const unescape = (\n  s: string,\n  {\n    windowsPathsNoEscape = false,\n  }: Pick = {}\n) => {\n  return windowsPathsNoEscape\n    ? s.replace(/\\[([^\\/\\\\])\\]/g, '$1')\n    : s.replace(/((?!\\\\).|^)\\[([^\\/\\\\])\\]/g, '$1$2').replace(/\\\\([^\\/])/g, '$1')\n}\n"]}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/package.json b/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/package.json
deleted file mode 100644
index 01fc48ec..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
-  "author": "Isaac Z. Schlueter  (http://blog.izs.me)",
-  "name": "minimatch",
-  "description": "a glob matcher in javascript",
-  "version": "9.0.5",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/isaacs/minimatch.git"
-  },
-  "main": "./dist/commonjs/index.js",
-  "types": "./dist/commonjs/index.d.ts",
-  "exports": {
-    "./package.json": "./package.json",
-    ".": {
-      "import": {
-        "types": "./dist/esm/index.d.ts",
-        "default": "./dist/esm/index.js"
-      },
-      "require": {
-        "types": "./dist/commonjs/index.d.ts",
-        "default": "./dist/commonjs/index.js"
-      }
-    }
-  },
-  "files": [
-    "dist"
-  ],
-  "scripts": {
-    "preversion": "npm test",
-    "postversion": "npm publish",
-    "prepublishOnly": "git push origin --follow-tags",
-    "prepare": "tshy",
-    "pretest": "npm run prepare",
-    "presnap": "npm run prepare",
-    "test": "tap",
-    "snap": "tap",
-    "format": "prettier --write . --loglevel warn",
-    "benchmark": "node benchmark/index.js",
-    "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
-  },
-  "prettier": {
-    "semi": false,
-    "printWidth": 80,
-    "tabWidth": 2,
-    "useTabs": false,
-    "singleQuote": true,
-    "jsxSingleQuote": false,
-    "bracketSameLine": true,
-    "arrowParens": "avoid",
-    "endOfLine": "lf"
-  },
-  "engines": {
-    "node": ">=16 || 14 >=14.17"
-  },
-  "dependencies": {
-    "brace-expansion": "^2.0.1"
-  },
-  "devDependencies": {
-    "@types/brace-expansion": "^1.1.0",
-    "@types/node": "^18.15.11",
-    "@types/tap": "^15.0.8",
-    "eslint-config-prettier": "^8.6.0",
-    "mkdirp": "1",
-    "prettier": "^2.8.2",
-    "tap": "^18.7.2",
-    "ts-node": "^10.9.1",
-    "tshy": "^1.12.0",
-    "typedoc": "^0.23.21",
-    "typescript": "^4.9.3"
-  },
-  "funding": {
-    "url": "https://github.com/sponsors/isaacs"
-  },
-  "license": "ISC",
-  "tshy": {
-    "exports": {
-      "./package.json": "./package.json",
-      ".": "./src/index.ts"
-    }
-  },
-  "type": "module"
-}
diff --git a/graphql/node_modules/@typescript-eslint/typescript-estree/package.json b/graphql/node_modules/@typescript-eslint/typescript-estree/package.json
deleted file mode 100644
index 70ed0cf3..00000000
--- a/graphql/node_modules/@typescript-eslint/typescript-estree/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
-  "name": "@typescript-eslint/typescript-estree",
-  "version": "8.1.0",
-  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
-  "files": [
-    "dist",
-    "_ts4.3",
-    "README.md",
-    "LICENSE"
-  ],
-  "type": "commonjs",
-  "exports": {
-    ".": {
-      "types": "./dist/index.d.ts",
-      "default": "./dist/index.js"
-    },
-    "./package.json": "./package.json",
-    "./use-at-your-own-risk": {
-      "types": "./dist/use-at-your-own-risk.d.ts",
-      "default": "./dist/use-at-your-own-risk.js"
-    }
-  },
-  "types": "./dist/index.d.ts",
-  "engines": {
-    "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/typescript-eslint/typescript-eslint.git",
-    "directory": "packages/typescript-estree"
-  },
-  "bugs": {
-    "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
-  },
-  "homepage": "https://typescript-eslint.io/packages/typescript-estree",
-  "license": "BSD-2-Clause",
-  "keywords": [
-    "ast",
-    "estree",
-    "ecmascript",
-    "javascript",
-    "typescript",
-    "parser",
-    "syntax"
-  ],
-  "scripts": {
-    "build": "tsc -b tsconfig.build.json",
-    "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
-    "clean": "tsc -b tsconfig.build.json --clean",
-    "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage",
-    "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
-    "lint": "npx nx lint",
-    "test": "jest --coverage --runInBand --verbose",
-    "typecheck": "tsc --noEmit"
-  },
-  "dependencies": {
-    "@typescript-eslint/types": "8.1.0",
-    "@typescript-eslint/visitor-keys": "8.1.0",
-    "debug": "^4.3.4",
-    "globby": "^11.1.0",
-    "is-glob": "^4.0.3",
-    "minimatch": "^9.0.4",
-    "semver": "^7.6.0",
-    "ts-api-utils": "^1.3.0"
-  },
-  "devDependencies": {
-    "@jest/types": "29.6.3",
-    "glob": "*",
-    "jest": "29.7.0",
-    "prettier": "^3.2.5",
-    "rimraf": "*",
-    "tmp": "*",
-    "typescript": "*"
-  },
-  "peerDependenciesMeta": {
-    "typescript": {
-      "optional": true
-    }
-  },
-  "funding": {
-    "type": "opencollective",
-    "url": "https://opencollective.com/typescript-eslint"
-  },
-  "typesVersions": {
-    "<4.7": {
-      "*": [
-        "_ts4.3/*"
-      ]
-    }
-  }
-}
diff --git a/graphql/node_modules/@typescript-eslint/utils/LICENSE b/graphql/node_modules/@typescript-eslint/utils/LICENSE
deleted file mode 100644
index a1164108..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2019 typescript-eslint and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/graphql/node_modules/@typescript-eslint/utils/README.md b/graphql/node_modules/@typescript-eslint/utils/README.md
deleted file mode 100644
index 7ba75009..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# `@typescript-eslint/utils`
-
-> Utilities for working with TypeScript + ESLint together.
-
-[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils)
-[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/utils.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/utils)
-
-👉 See **https://typescript-eslint.io/packages/utils** for documentation on this package.
-
-> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
-
-
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
deleted file mode 100644
index 46ee1765..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-interface PatternMatcher {
-    /**
-     * Iterate all matched parts in a given string.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall}
-     */
-    execAll(str: string): IterableIterator;
-    /**
-     * Check whether this pattern matches a given string or not.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test}
-     */
-    test(str: string): boolean;
-    /**
-     * Replace all matched parts by a given replacer.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace}
-     * @example
-     * const { PatternMatcher } = require("eslint-utils")
-     * const matcher = new PatternMatcher(/\\p{Script=Greek}/g)
-     *
-     * module.exports = {
-     *     meta: {},
-     *     create(context) {
-     *         return {
-     *             "Literal[regex]"(node) {
-     *                 const replacedPattern = node.regex.pattern.replace(
-     *                     matcher,
-     *                     "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]"
-     *                 )
-     *             },
-     *         }
-     *     },
-     * }
-     */
-    [Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string;
-}
-/**
- * The class to find a pattern in strings as handling escape sequences.
- * It ignores the found pattern if it's escaped with `\`.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
- */
-declare const PatternMatcher: new (pattern: RegExp, options?: {
-    escaped?: boolean;
-}) => PatternMatcher;
-export { PatternMatcher };
-//# sourceMappingURL=PatternMatcher.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
deleted file mode 100644
index 02387147..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;CACX;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,EAAiC,KACnD,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5B,cAAc,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js
deleted file mode 100644
index 1e2e87c8..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.PatternMatcher = void 0;
-const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
-/**
- * The class to find a pattern in strings as handling escape sequences.
- * It ignores the found pattern if it's escaped with `\`.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
- */
-const PatternMatcher = eslintUtils.PatternMatcher;
-exports.PatternMatcher = PatternMatcher;
-//# sourceMappingURL=PatternMatcher.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map
deleted file mode 100644
index 5e2bb4a4..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGhB,CAAC;AAEX,wCAAc"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
deleted file mode 100644
index b2b56ac6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-import type * as TSESLint from '../../ts-eslint';
-import type { TSESTree } from '../../ts-estree';
-declare const ReferenceTrackerREAD: unique symbol;
-declare const ReferenceTrackerCALL: unique symbol;
-declare const ReferenceTrackerCONSTRUCT: unique symbol;
-declare const ReferenceTrackerESM: unique symbol;
-interface ReferenceTracker {
-    /**
-     * Iterate the references that the given `traceMap` determined.
-     * This method starts to search from global variables.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences}
-     */
-    iterateGlobalReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>;
-    /**
-     * Iterate the references that the given `traceMap` determined.
-     * This method starts to search from `require()` expression.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences}
-     */
-    iterateCjsReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>;
-    /**
-     * Iterate the references that the given `traceMap` determined.
-     * This method starts to search from `import`/`export` declarations.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences}
-     */
-    iterateEsmReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>;
-}
-interface ReferenceTrackerStatic {
-    new (globalScope: TSESLint.Scope.Scope, options?: {
-        /**
-         * The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules.
-         * If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds
-         * CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`.
-         */
-        mode?: 'legacy' | 'strict';
-        /**
-         * The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`.
-         */
-        globalObjectNames?: readonly string[];
-    }): ReferenceTracker;
-    readonly READ: typeof ReferenceTrackerREAD;
-    readonly CALL: typeof ReferenceTrackerCALL;
-    readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT;
-    readonly ESM: typeof ReferenceTrackerESM;
-}
-declare namespace ReferenceTracker {
-    type READ = ReferenceTrackerStatic['READ'];
-    type CALL = ReferenceTrackerStatic['CALL'];
-    type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT'];
-    type ESM = ReferenceTrackerStatic['ESM'];
-    type ReferenceType = CALL | CONSTRUCT | READ;
-    type TraceMap = Record>;
-    interface TraceMapElement {
-        [ReferenceTrackerREAD]?: T;
-        [ReferenceTrackerCALL]?: T;
-        [ReferenceTrackerCONSTRUCT]?: T;
-        [ReferenceTrackerESM]?: true;
-        [key: string]: TraceMapElement;
-    }
-    interface FoundReference {
-        node: TSESTree.Node;
-        path: readonly string[];
-        type: ReferenceType;
-        info: T;
-    }
-}
-/**
- * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
- */
-declare const ReferenceTracker: ReferenceTrackerStatic;
-export { ReferenceTracker };
-//# sourceMappingURL=ReferenceTracker.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
deleted file mode 100644
index 116276c3..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,yBAAyB,EAAE,OAAO,MACA,CAAC;AACzC,QAAA,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AAE5E,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,uBAAuB,CAAC,CAAC,EACvB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,GACrC,gBAAgB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;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CAAC,CAAC;IACnE,UAAiB,eAAe,CAAC,CAAC;QAChC,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;KACnC;IAED,UAAiB,cAAc,CAAC,CAAC,GAAG,GAAG;QACrC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;QACpB,IAAI,EAAE,CAAC,CAAC;KACT;CACF;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAmC,sBAAsB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
deleted file mode 100644
index 3123c64d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ReferenceTracker = void 0;
-/* eslint-disable @typescript-eslint/no-namespace */
-const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
-const ReferenceTrackerREAD = eslintUtils.ReferenceTracker.READ;
-const ReferenceTrackerCALL = eslintUtils.ReferenceTracker.CALL;
-const ReferenceTrackerCONSTRUCT = eslintUtils.ReferenceTracker.CONSTRUCT;
-const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM;
-/**
- * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
- */
-const ReferenceTracker = eslintUtils.ReferenceTracker;
-exports.ReferenceTracker = ReferenceTracker;
-//# sourceMappingURL=ReferenceTracker.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map
deleted file mode 100644
index 77ed5341..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAgF5E;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAA0C,CAAC;AAEvE,4CAAgB"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
deleted file mode 100644
index f0eced21..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-import type * as TSESLint from '../../ts-eslint';
-import type { TSESTree } from '../../ts-estree';
-/**
- * Get the proper location of a given function node to report.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
- */
-declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation;
-/**
- * Get the name and kind of a given function node.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
- */
-declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string;
-/**
- * Get the property name of a given property node.
- * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
- * @returns The property name of the node. If the property name is not constant then it returns `null`.
- */
-declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null;
-/**
- * Get the value of a given node if it can decide the value statically.
- * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
- * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
- * not been modified.
- * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
- * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
- * static value of the node, it returns `null`.
- */
-declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => {
-    value: unknown;
-} | null;
-/**
- * Get the string value of a given node.
- * This function is a tiny wrapper of the getStaticValue function.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
- */
-declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null;
-/**
- * Check whether a given node has any side effect or not.
- * The side effect means that it may modify a certain variable or object member. This function considers the node which
- * contains the following types as the node which has side effects:
- * - `AssignmentExpression`
- * - `AwaitExpression`
- * - `CallExpression`
- * - `ImportExpression`
- * - `NewExpression`
- * - `UnaryExpression([operator = "delete"])`
- * - `UpdateExpression`
- * - `YieldExpression`
- * - When `options.considerGetters` is `true`:
- *   - `MemberExpression`
- * - When `options.considerImplicitTypeConversion` is `true`:
- *   - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`
- *   - `MemberExpression([computed = true])`
- *   - `MethodDefinition([computed = true])`
- *   - `Property([computed = true])`
- *   - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
- */
-declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: {
-    considerGetters?: boolean;
-    considerImplicitTypeConversion?: boolean;
-}) => boolean;
-declare const isParenthesized: {
-    /**
-     * Check whether a given node is parenthesized or not.
-     * This function detects it correctly even if it's parenthesized by specific syntax.
-     *
-     * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#isparenthesized}
-     * @returns `true` if the node is parenthesized.
-     * If `times` was given, it returns `true` only if the node is parenthesized the `times` times.
-     * For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`.
-     */
-    (node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
-    (times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
-};
-export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, };
-//# sourceMappingURL=astUtilities.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
deleted file mode 100644
index f21fe3db..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAA0C,CACrE,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,EAAE,QAAQ,CAAC,UAAU,KAC5B,QAAQ,CAAC,cAAc,CAAC;AAE7B;;;;GAIG;AACH,QAAA,MAAM,uBAAu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E,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAC9B,OAAO,CAAC;CACZ,CAAC;AAEF,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,GAChB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js
deleted file mode 100644
index c3a9cc01..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js
+++ /dev/null
@@ -1,99 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isParenthesized = exports.hasSideEffect = exports.getStringIfConstant = exports.getStaticValue = exports.getPropertyName = exports.getFunctionNameWithKind = exports.getFunctionHeadLocation = void 0;
-const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
-/**
- * Get the proper location of a given function node to report.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
- */
-const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation;
-exports.getFunctionHeadLocation = getFunctionHeadLocation;
-/**
- * Get the name and kind of a given function node.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
- */
-const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind;
-exports.getFunctionNameWithKind = getFunctionNameWithKind;
-/**
- * Get the property name of a given property node.
- * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
- * @returns The property name of the node. If the property name is not constant then it returns `null`.
- */
-const getPropertyName = eslintUtils.getPropertyName;
-exports.getPropertyName = getPropertyName;
-/**
- * Get the value of a given node if it can decide the value statically.
- * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
- * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
- * not been modified.
- * For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
- * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
- * static value of the node, it returns `null`.
- */
-const getStaticValue = eslintUtils.getStaticValue;
-exports.getStaticValue = getStaticValue;
-/**
- * Get the string value of a given node.
- * This function is a tiny wrapper of the getStaticValue function.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
- */
-const getStringIfConstant = eslintUtils.getStringIfConstant;
-exports.getStringIfConstant = getStringIfConstant;
-/**
- * Check whether a given node has any side effect or not.
- * The side effect means that it may modify a certain variable or object member. This function considers the node which
- * contains the following types as the node which has side effects:
- * - `AssignmentExpression`
- * - `AwaitExpression`
- * - `CallExpression`
- * - `ImportExpression`
- * - `NewExpression`
- * - `UnaryExpression([operator = "delete"])`
- * - `UpdateExpression`
- * - `YieldExpression`
- * - When `options.considerGetters` is `true`:
- *   - `MemberExpression`
- * - When `options.considerImplicitTypeConversion` is `true`:
- *   - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`
- *   - `MemberExpression([computed = true])`
- *   - `MethodDefinition([computed = true])`
- *   - `Property([computed = true])`
- *   - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
- */
-const hasSideEffect = eslintUtils.hasSideEffect;
-exports.hasSideEffect = hasSideEffect;
-const isParenthesized = eslintUtils.isParenthesized;
-exports.isParenthesized = isParenthesized;
-//# sourceMappingURL=astUtilities.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map
deleted file mode 100644
index b73d69b4..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMhB,CAAC;AA6G3B,0DAAuB;AA3GzB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMjC,CAAC;AAiGV,0DAAuB;AA/FzB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,WAAW,CAAC,eAOlB,CAAC;AAkFjB,0CAAe;AAhFjB;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGL,CAAC;AAmE7B,wCAAc;AAjEhB;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAC,mBAGtB,CAAC;AAyDjB,kDAAmB;AAvDrB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,aAAa,GAAG,WAAW,CAAC,aAOtB,CAAC;AA0BX,sCAAa;AAxBf,MAAM,eAAe,GAAG,WAAW,CAAC,eAgBnC,CAAC;AASA,0CAAe"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts
deleted file mode 100644
index 3ec74aa2..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export * from './astUtilities';
-export * from './PatternMatcher';
-export * from './predicates';
-export * from './ReferenceTracker';
-export * from './scopeAnalysis';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map
deleted file mode 100644
index e6a66720..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js
deleted file mode 100644
index 6e0fbf72..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./astUtilities"), exports);
-__exportStar(require("./PatternMatcher"), exports);
-__exportStar(require("./predicates"), exports);
-__exportStar(require("./ReferenceTracker"), exports);
-__exportStar(require("./scopeAnalysis"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map
deleted file mode 100644
index c1f12696..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts
deleted file mode 100644
index a0aebd1e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { TSESTree } from '../../ts-estree';
-type IsSpecificTokenFunction = (token: TSESTree.Token) => token is SpecificToken;
-type IsNotSpecificTokenFunction = (token: TSESTree.Token) => token is Exclude;
-type PunctuatorTokenWithValue = TSESTree.PunctuatorToken & {
-    value: Value;
-};
-type IsPunctuatorTokenWithValueFunction = IsSpecificTokenFunction>;
-type IsNotPunctuatorTokenWithValueFunction = IsNotSpecificTokenFunction>;
-declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
-declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
-declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
-declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
-declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
-declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
-declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
-declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
-declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
-declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
-declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
-declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
-declare const isCommentToken: IsSpecificTokenFunction;
-declare const isNotCommentToken: IsNotSpecificTokenFunction;
-declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
-declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
-declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
-declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
-declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
-declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
-declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
-declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
-export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, };
-//# sourceMappingURL=predicates.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
deleted file mode 100644
index 972a11aa..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACtE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,SAAS,MAAM,IAChD,QAAQ,CAAC,eAAe,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,CAAC;AAC7E,QAAA,MAAM,sBAAsB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEnF,QAAA,MAAM,qBAAqB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC/E,QAAA,MAAM,wBAAwB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAErF,QAAA,MAAM,mBAAmB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC7E,QAAA,MAAM,sBAAsB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEnF,QAAA,MAAM,gBAAgB,EACY,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC1E,QAAA,MAAM,mBAAmB,EACY,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js
deleted file mode 100644
index d5bdf567..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js
+++ /dev/null
@@ -1,72 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isSemicolonToken = exports.isOpeningParenToken = exports.isOpeningBracketToken = exports.isOpeningBraceToken = exports.isNotSemicolonToken = exports.isNotOpeningParenToken = exports.isNotOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isNotCommentToken = exports.isNotCommaToken = exports.isNotColonToken = exports.isNotClosingParenToken = exports.isNotClosingBracketToken = exports.isNotClosingBraceToken = exports.isNotArrowToken = exports.isCommentToken = exports.isCommaToken = exports.isColonToken = exports.isClosingParenToken = exports.isClosingBracketToken = exports.isClosingBraceToken = exports.isArrowToken = void 0;
-const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
-const isArrowToken = eslintUtils.isArrowToken;
-exports.isArrowToken = isArrowToken;
-const isNotArrowToken = eslintUtils.isNotArrowToken;
-exports.isNotArrowToken = isNotArrowToken;
-const isClosingBraceToken = eslintUtils.isClosingBraceToken;
-exports.isClosingBraceToken = isClosingBraceToken;
-const isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken;
-exports.isNotClosingBraceToken = isNotClosingBraceToken;
-const isClosingBracketToken = eslintUtils.isClosingBracketToken;
-exports.isClosingBracketToken = isClosingBracketToken;
-const isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken;
-exports.isNotClosingBracketToken = isNotClosingBracketToken;
-const isClosingParenToken = eslintUtils.isClosingParenToken;
-exports.isClosingParenToken = isClosingParenToken;
-const isNotClosingParenToken = eslintUtils.isNotClosingParenToken;
-exports.isNotClosingParenToken = isNotClosingParenToken;
-const isColonToken = eslintUtils.isColonToken;
-exports.isColonToken = isColonToken;
-const isNotColonToken = eslintUtils.isNotColonToken;
-exports.isNotColonToken = isNotColonToken;
-const isCommaToken = eslintUtils.isCommaToken;
-exports.isCommaToken = isCommaToken;
-const isNotCommaToken = eslintUtils.isNotCommaToken;
-exports.isNotCommaToken = isNotCommaToken;
-const isCommentToken = eslintUtils.isCommentToken;
-exports.isCommentToken = isCommentToken;
-const isNotCommentToken = eslintUtils.isNotCommentToken;
-exports.isNotCommentToken = isNotCommentToken;
-const isOpeningBraceToken = eslintUtils.isOpeningBraceToken;
-exports.isOpeningBraceToken = isOpeningBraceToken;
-const isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken;
-exports.isNotOpeningBraceToken = isNotOpeningBraceToken;
-const isOpeningBracketToken = eslintUtils.isOpeningBracketToken;
-exports.isOpeningBracketToken = isOpeningBracketToken;
-const isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken;
-exports.isNotOpeningBracketToken = isNotOpeningBracketToken;
-const isOpeningParenToken = eslintUtils.isOpeningParenToken;
-exports.isOpeningParenToken = isOpeningParenToken;
-const isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken;
-exports.isNotOpeningParenToken = isNotOpeningParenToken;
-const isSemicolonToken = eslintUtils.isSemicolonToken;
-exports.isSemicolonToken = isSemicolonToken;
-const isNotSemicolonToken = eslintUtils.isNotSemicolonToken;
-exports.isNotSemicolonToken = isNotSemicolonToken;
-//# sourceMappingURL=predicates.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map
deleted file mode 100644
index 9edca10c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map
+++ /dev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AC,sBAAoE,CAAC;AAgCjF,wDAAsB;AA9BxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,CAAC;AAkC7E,sDAAqB;AAjCvB,MAAM,wBAAwB,GAC5B,WAAW,CAAC,wBAAsE,CAAC;AA4BnF,4DAAwB;AA1B1B,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AA8B3E,kDAAmB;AA7BrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwBjF,wDAAsB;AAtBxB,MAAM,gBAAgB,GACpB,WAAW,CAAC,gBAA2D,CAAC;AA0BxE,4CAAgB;AAzBlB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAAiE,CAAC;AAoB9E,kDAAmB"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
deleted file mode 100644
index 4d2b9be4..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import type * as TSESLint from '../../ts-eslint';
-import type { TSESTree } from '../../ts-estree';
-/**
- * Get the variable of a given name.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
- */
-declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: TSESTree.Identifier | string) => TSESLint.Scope.Variable | null;
-/**
- * Get the innermost scope which contains a given node.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
- * @returns The innermost scope which contains the given node.
- * If such scope doesn't exist then it returns the 1st argument `initialScope`.
- */
-declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
-export { findVariable, getInnermostScope };
-//# sourceMappingURL=scopeAnalysis.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
deleted file mode 100644
index e8656d04..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,YAAY,EAA+B,CAC/C,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,MAAM,KACrC,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,EAAoC,CACzD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAChB,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
deleted file mode 100644
index 2cb15275..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getInnermostScope = exports.findVariable = void 0;
-const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
-/**
- * Get the variable of a given name.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
- */
-const findVariable = eslintUtils.findVariable;
-exports.findVariable = findVariable;
-/**
- * Get the innermost scope which contains a given node.
- *
- * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
- * @returns The innermost scope which contains the given node.
- * If such scope doesn't exist then it returns the 1st argument `initialScope`.
- */
-const getInnermostScope = eslintUtils.getInnermostScope;
-exports.getInnermostScope = getInnermostScope;
-//# sourceMappingURL=scopeAnalysis.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map
deleted file mode 100644
index 800ecf86..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts
deleted file mode 100644
index 0a6384e2..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree';
-export declare const isNodeOfType: (nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract;
-export declare const isNodeOfTypes: (nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract;
-export declare const isNodeOfTypeWithConditions: , Conditions extends Partial>(nodeType: NodeType, conditions: Conditions) => ((node: TSESTree.Node | null | undefined) => node is Conditions & ExtractedNode);
-export declare const isTokenOfTypeWithConditions: , Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Conditions & ExtractedToken);
-export declare const isNotTokenOfTypeWithConditions: , Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Exclude);
-//# sourceMappingURL=helpers.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map
deleted file mode 100644
index 3c13d42c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.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AE,CAAC,aAErD,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,UAAU,GAAG,cAAc,CAUxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAEvC,SAAS,SAAS,eAAe,EACjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC,cAAc,CAAC,aAE/B,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAAC,CAEN,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js
deleted file mode 100644
index 4d6bb469..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isNotTokenOfTypeWithConditions = exports.isTokenOfTypeWithConditions = exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0;
-const isNodeOfType = (nodeType) => (node) => node?.type === nodeType;
-exports.isNodeOfType = isNodeOfType;
-const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type);
-exports.isNodeOfTypes = isNodeOfTypes;
-const isNodeOfTypeWithConditions = (nodeType, conditions) => {
-    const entries = Object.entries(conditions);
-    return (node) => node?.type === nodeType &&
-        entries.every(([key, value]) => node[key] === value);
-};
-exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions;
-const isTokenOfTypeWithConditions = (tokenType, conditions) => {
-    const entries = Object.entries(conditions);
-    return (token) => token?.type === tokenType &&
-        entries.every(([key, value]) => token[key] === value);
-};
-exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions;
-const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token);
-exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions;
-//# sourceMappingURL=helpers.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map
deleted file mode 100644
index 73b2878d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":";;;AAOO,MAAM,YAAY,GACvB,CAAkC,QAAkB,EAAE,EAAE,CACxD,CACE,IAAsC,EACc,EAAE,CACtD,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC;AALf,QAAA,YAAY,gBAKG;AAErB,MAAM,aAAa,GACxB,CAA8C,SAAoB,EAAE,EAAE,CACtE,CACE,IAAsC,EACuB,EAAE,CAC/D,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAL/B,QAAA,aAAa,iBAKkB;AAErC,MAAM,0BAA0B,GAAG,CAKxC,QAAkB,EAClB,UAAsB,EAGiB,EAAE;IACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAiC,CAAC;IAE3E,OAAO,CACL,IAAsC,EACF,EAAE,CACtC,IAAI,EAAE,IAAI,KAAK,QAAQ;QACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAA0B,CAAC,KAAK,KAAK,CAAC,CAAC;AAChF,CAAC,CAAC;AAjBW,QAAA,0BAA0B,8BAiBrC;AAEK,MAAM,2BAA2B,GAAG,CAOzC,SAAoB,EACpB,UAAsB,EAGmB,EAAE;IAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAkC,CAAC;IAE5E,OAAO,CACL,KAAwC,EACF,EAAE,CACxC,KAAK,EAAE,IAAI,KAAK,SAAS;QACzB,OAAO,CAAC,KAAK,CACX,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAA2B,CAAC,KAAK,KAAK,CAC/D,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,2BAA2B,+BAqBtC;AAEK,MAAM,8BAA8B,GACzC,CAKE,SAAoB,EACpB,UAAsB,EAG4C,EAAE,CACtE,CAAC,KAAK,EAAiE,EAAE,CACvE,CAAC,IAAA,mCAA2B,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;AAZlD,QAAA,8BAA8B,kCAYoB"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts
deleted file mode 100644
index 714b9952..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export * from './eslint-utils';
-export * from './helpers';
-export * from './misc';
-export * from './predicates';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map
deleted file mode 100644
index c6f5e7f6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js
deleted file mode 100644
index 6c5b6600..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./eslint-utils"), exports);
-__exportStar(require("./helpers"), exports);
-__exportStar(require("./misc"), exports);
-__exportStar(require("./predicates"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map
deleted file mode 100644
index f373ac53..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts
deleted file mode 100644
index cbbd04bc..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { TSESTree } from '../ts-estree';
-declare const LINEBREAK_MATCHER: RegExp;
-/**
- * Determines whether two adjacent tokens are on the same line
- */
-declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean;
-export { isTokenOnSameLine, LINEBREAK_MATCHER };
-//# sourceMappingURL=misc.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map
deleted file mode 100644
index 071c0afe..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,iBAAiB,QAA4B,CAAC;AAEpD;;GAEG;AACH,iBAAS,iBAAiB,CACxB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET;AAED,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js
deleted file mode 100644
index 7aa82e80..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.LINEBREAK_MATCHER = void 0;
-exports.isTokenOnSameLine = isTokenOnSameLine;
-const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
-exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
-/**
- * Determines whether two adjacent tokens are on the same line
- */
-function isTokenOnSameLine(left, right) {
-    return left.loc.end.line === right.loc.start.line;
-}
-//# sourceMappingURL=misc.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map
deleted file mode 100644
index bf4b06fc..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;AAcS,8CAAiB;AAZ1B,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAYxB,8CAAiB;AAV7C;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts
deleted file mode 100644
index 2cfa8300..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-import type { TSESTree } from '../ts-estree';
-declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is {
-    value: "?.";
-} & TSESTree.PunctuatorToken;
-declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude;
-declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is {
-    value: "!";
-} & TSESTree.PunctuatorToken;
-declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude;
-/**
- * Returns true if and only if the node represents: foo?.() or foo.bar?.()
- */
-declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is {
-    optional: boolean;
-} & TSESTree.CallExpression;
-/**
- * Returns true if and only if the node represents logical OR
- */
-declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial & TSESTree.LogicalExpression;
-/**
- * Checks if a node is a type assertion:
- * ```
- * x as foo
- * x
- * ```
- */
-declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isFunction: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is Extract;
-declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is Extract;
-/**
- * Checks if a node is a constructor method.
- */
-declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
-/**
- * Checks if a node is a setter method.
- */
-declare function isSetter(node: TSESTree.Node | undefined): node is {
-    kind: 'set';
-} & (TSESTree.MethodDefinition | TSESTree.Property);
-declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is Extract;
-/**
- * Checks if a node represents an `await …` expression.
- */
-declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is Extract;
-/**
- * Checks if a possible token is the `await` keyword.
- */
-declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is {
-    value: "await";
-} & TSESTree.IdentifierToken;
-/**
- * Checks if a possible token is the `type` keyword.
- */
-declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is {
-    value: "type";
-} & TSESTree.IdentifierToken;
-/**
- * Checks if a possible token is the `import` keyword.
- */
-declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
-    value: "import";
-} & TSESTree.KeywordToken;
-declare const isLoop: (node: TSESTree.Node | null | undefined) => node is Extract;
-export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, };
-//# sourceMappingURL=predicates.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map
deleted file mode 100644
index 82bb4fbd..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAU7C,QAAA,MAAM,yBAAyB;;4BAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B;;6BAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;4BAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B;;6BAGpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB;;2BAK7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,sHAGxB,CAAC;AAEF;;;;;;GAMG;AACH,QAA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js b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js
deleted file mode 100644
index 3b2556fa..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js
+++ /dev/null
@@ -1,135 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0;
-exports.isSetter = isSetter;
-const ts_estree_1 = require("../ts-estree");
-const helpers_1 = require("./helpers");
-const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
-exports.isOptionalChainPunctuator = isOptionalChainPunctuator;
-const isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
-exports.isNotOptionalChainPunctuator = isNotOptionalChainPunctuator;
-const isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
-exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator;
-const isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
-exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator;
-/**
- * Returns true if and only if the node represents: foo?.() or foo.bar?.()
- */
-const isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression, 
-// this flag means the call expression itself is option
-// i.e. it is foo.bar?.() and not foo?.bar()
-{ optional: true });
-exports.isOptionalCallExpression = isOptionalCallExpression;
-/**
- * Returns true if and only if the node represents logical OR
- */
-const isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' });
-exports.isLogicalOrOperator = isLogicalOrOperator;
-/**
- * Checks if a node is a type assertion:
- * ```
- * x as foo
- * x
- * ```
- */
-const isTypeAssertion = (0, helpers_1.isNodeOfTypes)([
-    ts_estree_1.AST_NODE_TYPES.TSAsExpression,
-    ts_estree_1.AST_NODE_TYPES.TSTypeAssertion,
-]);
-exports.isTypeAssertion = isTypeAssertion;
-const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
-exports.isVariableDeclarator = isVariableDeclarator;
-const functionTypes = [
-    ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression,
-    ts_estree_1.AST_NODE_TYPES.FunctionDeclaration,
-    ts_estree_1.AST_NODE_TYPES.FunctionExpression,
-];
-const isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes);
-exports.isFunction = isFunction;
-const functionTypeTypes = [
-    ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
-    ts_estree_1.AST_NODE_TYPES.TSConstructorType,
-    ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
-    ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
-    ts_estree_1.AST_NODE_TYPES.TSFunctionType,
-    ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
-];
-const isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes);
-exports.isFunctionType = isFunctionType;
-const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([
-    ...functionTypes,
-    ...functionTypeTypes,
-]);
-exports.isFunctionOrFunctionType = isFunctionOrFunctionType;
-const isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType);
-exports.isTSFunctionType = isTSFunctionType;
-const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
-exports.isTSConstructorType = isTSConstructorType;
-const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
-    // ClassElement
-    ts_estree_1.AST_NODE_TYPES.PropertyDefinition,
-    ts_estree_1.AST_NODE_TYPES.FunctionExpression,
-    ts_estree_1.AST_NODE_TYPES.MethodDefinition,
-    ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition,
-    ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition,
-    ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
-    ts_estree_1.AST_NODE_TYPES.TSIndexSignature,
-    // TypeElement
-    ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
-    ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
-    // AST_NODE_TYPES.TSIndexSignature,
-    ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
-    ts_estree_1.AST_NODE_TYPES.TSPropertySignature,
-]);
-exports.isClassOrTypeElement = isClassOrTypeElement;
-/**
- * Checks if a node is a constructor method.
- */
-const isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' });
-exports.isConstructor = isConstructor;
-/**
- * Checks if a node is a setter method.
- */
-function isSetter(node) {
-    return (!!node &&
-        (node.type === ts_estree_1.AST_NODE_TYPES.MethodDefinition ||
-            node.type === ts_estree_1.AST_NODE_TYPES.Property) &&
-        node.kind === 'set');
-}
-const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier);
-exports.isIdentifier = isIdentifier;
-/**
- * Checks if a node represents an `await …` expression.
- */
-const isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression);
-exports.isAwaitExpression = isAwaitExpression;
-/**
- * Checks if a possible token is the `await` keyword.
- */
-const isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, {
-    value: 'await',
-});
-exports.isAwaitKeyword = isAwaitKeyword;
-/**
- * Checks if a possible token is the `type` keyword.
- */
-const isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, {
-    value: 'type',
-});
-exports.isTypeKeyword = isTypeKeyword;
-/**
- * Checks if a possible token is the `import` keyword.
- */
-const isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, {
-    value: 'import',
-});
-exports.isImportKeyword = isImportKeyword;
-const isLoop = (0, helpers_1.isNodeOfTypes)([
-    ts_estree_1.AST_NODE_TYPES.DoWhileStatement,
-    ts_estree_1.AST_NODE_TYPES.ForStatement,
-    ts_estree_1.AST_NODE_TYPES.ForInStatement,
-    ts_estree_1.AST_NODE_TYPES.ForOfStatement,
-    ts_estree_1.AST_NODE_TYPES.WhileStatement,
-]);
-exports.isLoop = isLoop;
-//# sourceMappingURL=predicates.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map
deleted file mode 100644
index 3d901453..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AAoLE,4BAAQ;AAnLV,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AA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I,KAAK,0BAAc,CAAC,gBAAgB;YAC5C,IAAI,CAAC,IAAI,KAAK,0BAAc,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,IAAI,KAAK,KAAK,CACpB,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,UAAU,CAAC,CAAC;AA4C3D,oCAAY;AA1Cd;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,eAAe,CAAC,CAAC;AAgCrE,8CAAiB;AA9BnB;;GAEG;AACH,MAAM,cAAc,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,UAAU,EAAE;IAC7E,KAAK,EAAE,OAAO;CACf,CAAC,CAAC;AA0BD,wCAAc;AAxBhB;;GAEG;AACH,MAAM,aAAa,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,UAAU,EAAE;IAC5E,KAAK,EAAE,MAAM;CACd,CAAC,CAAC;AAsCD,sCAAa;AApCf;;GAEG;AACH,MAAM,eAAe,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,OAAO,EAAE;IAC3E,KAAK,EAAE,QAAQ;CAChB,CAAC,CAAC;AAmBD,0CAAe;AAjBjB,MAAM,MAAM,GAAG,IAAA,uBAAa,EAAC;IAC3B,0BAAc,CAAC,gBAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC;AAYV,wBAAM"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts
deleted file mode 100644
index 0aa1b8d8..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
-/**
- * Uses type inference to fetch the Options type from the given RuleModule
- */
-type InferOptionsTypeFromRule = T extends RuleModule ? Options : T extends RuleCreateFunction ? Options : unknown;
-/**
- * Uses type inference to fetch the MessageIds type from the given RuleModule
- */
-type InferMessageIdsTypeFromRule = T extends RuleModule ? MessageIds : T extends RuleCreateFunction ? MessageIds : unknown;
-export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
-//# sourceMappingURL=InferTypesFromRule.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
deleted file mode 100644
index 80075d79..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAC7B,CAAC,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAClD,OAAO,GACP,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAC5D,OAAO,GACP,OAAO,CAAC;AAEhB;;GAEG;AACH,KAAK,2BAA2B,CAAC,CAAC,IAChC,CAAC,SAAS,UAAU,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GACnD,UAAU,GACV,CAAC,SAAS,kBAAkB,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GAC7D,UAAU,GACV,OAAO,CAAC;AAEhB,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
deleted file mode 100644
index 9305805b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=InferTypesFromRule.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map
deleted file mode 100644
index 99fe846c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"InferTypesFromRule.js","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts
deleted file mode 100644
index 21b3c465..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule';
-export type { RuleListener, RuleModule };
-export type NamedCreateRuleMetaDocs = Omit;
-export type NamedCreateRuleMeta = Omit, 'docs'> & {
-    docs: RuleMetaDataDocs & PluginDocs;
-};
-export interface RuleCreateAndOptions {
-    create: (context: Readonly>, optionsWithDefault: Readonly) => RuleListener;
-    defaultOptions: Readonly;
-}
-export interface RuleWithMeta extends RuleCreateAndOptions {
-    meta: RuleMetaData;
-}
-export interface RuleWithMetaAndName extends RuleCreateAndOptions {
-    meta: NamedCreateRuleMeta;
-    name: string;
-}
-/**
- * Creates reusable function to create rules with default options and docs URLs.
- *
- * @param urlCreator Creates a documentation URL for a given rule name.
- * @returns Function to create a rule with the docs URL format.
- */
-export declare function RuleCreator(urlCreator: (ruleName: string) => string): ({ name, meta, ...rule }: Readonly>) => RuleModule;
-export declare namespace RuleCreator {
-    var withoutDocs: (args: Readonly>) => RuleModule;
-}
-//# sourceMappingURL=RuleCreator.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map
deleted file mode 100644
index bf976f4b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAGzC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAEpE,MAAM,MAAM,mBAAmB,CAC7B,UAAU,SAAS,MAAM,EACzB,UAAU,GAAG,OAAO,IAClB,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IACvD,IAAI,EAAE,gBAAgB,GAAG,UAAU,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,oBAAoB,CACnC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM;IAEzB,MAAM,EAAE,CACN,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EACnD,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,KAClC,YAAY,CAAC;IAClB,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,YAAY,CAC3B,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,IAAI,GAAG,OAAO,CACd,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC;IACjD,IAAI,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB,CAClC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,IAAI,GAAG,OAAO,CACd,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC;IACjD,IAAI,EAAE,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,GAAG,OAAO,EAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,IAKtC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,2BAKxB,QAAQ,CACT,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CACrD,KAAG,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAYhD;yBA1Be,WAAW;sBA0DzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,QAEnB,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,KAChD,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
deleted file mode 100644
index 56d546cf..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
+++ /dev/null
@@ -1,46 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RuleCreator = RuleCreator;
-const applyDefault_1 = require("./applyDefault");
-/**
- * Creates reusable function to create rules with default options and docs URLs.
- *
- * @param urlCreator Creates a documentation URL for a given rule name.
- * @returns Function to create a rule with the docs URL format.
- */
-function RuleCreator(urlCreator) {
-    // This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349
-    // TODO - when the above PR lands; add type checking for the context.report `data` property
-    return function createNamedRule({ name, meta, ...rule }) {
-        return createRule({
-            meta: {
-                ...meta,
-                docs: {
-                    ...meta.docs,
-                    url: urlCreator(name),
-                },
-            },
-            ...rule,
-        });
-    };
-}
-function createRule({ create, defaultOptions, meta, }) {
-    return {
-        create(context) {
-            const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options);
-            return create(context, optionsWithDefault);
-        },
-        defaultOptions,
-        meta,
-    };
-}
-/**
- * Creates a well-typed TSESLint custom ESLint rule without a docs URL.
- *
- * @returns Well-typed TSESLint custom ESLint rule.
- * @remarks It is generally better to provide a docs URL function to RuleCreator.
- */
-RuleCreator.withoutDocs = function withoutDocs(args) {
-    return createRule(args);
-};
-//# sourceMappingURL=RuleCreator.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map
deleted file mode 100644
index 81b70d26..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;AAuDA,kCA0BC;AA1ED,iDAA8C;AA0C9C;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,UAAwC;IAExC,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,eAAe,CAG7B,EACA,IAAI,EACJ,IAAI,EACJ,GAAG,IAAI,EAGR;QACC,OAAO,UAAU,CAAkC;YACjD,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,IAAI,EAAE;oBACJ,GAAG,IAAI,CAAC,IAAI;oBACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC;iBACtB;aACF;YACD,GAAG,IAAI;SACR,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAIjB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACoD;IAKxD,OAAO;QACL,MAAM,CAAC,OAAmD;YACxD,MAAM,kBAAkB,GAAG,IAAA,2BAAY,EAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAC7C,CAAC;QACD,cAAc;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,WAAW,CAAC,WAAW,GAAG,SAAS,WAAW,CAI5C,IAAiD;IAEjD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts
deleted file mode 100644
index 81b8af4a..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Pure function - doesn't mutate either parameter!
- * Uses the default options and overrides with the options provided by the user
- * @param defaultOptions the defaults
- * @param userOptions the user opts
- * @returns the options with defaults
- */
-declare function applyDefault(defaultOptions: Readonly, userOptions: Readonly | null): Default;
-export { applyDefault };
-//# sourceMappingURL=applyDefault.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map
deleted file mode 100644
index d9756e8d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,IAAI,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,SAAS,IAAI,EACzE,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,EACjC,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GACjC,OAAO,CAyBT;AAMD,OAAO,EAAE,YAAY,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js
deleted file mode 100644
index 1b061684..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.applyDefault = applyDefault;
-const deepMerge_1 = require("./deepMerge");
-/**
- * Pure function - doesn't mutate either parameter!
- * Uses the default options and overrides with the options provided by the user
- * @param defaultOptions the defaults
- * @param userOptions the user opts
- * @returns the options with defaults
- */
-function applyDefault(defaultOptions, userOptions) {
-    // clone defaults
-    const options = JSON.parse(JSON.stringify(defaultOptions));
-    if (userOptions == null) {
-        return options;
-    }
-    // For avoiding the type error
-    //   `This expression is not callable. Type 'unknown' has no call signatures.ts(2349)`
-    options.forEach((opt, i) => {
-        if (userOptions[i] !== undefined) {
-            const userOpt = userOptions[i];
-            if ((0, deepMerge_1.isObjectNotArray)(userOpt) && (0, deepMerge_1.isObjectNotArray)(opt)) {
-                options[i] = (0, deepMerge_1.deepMerge)(opt, userOpt);
-            }
-            else {
-                options[i] = userOpt;
-            }
-        }
-    });
-    return options;
-}
-//# sourceMappingURL=applyDefault.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map
deleted file mode 100644
index 7723638c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;AA2CS,oCAAY;AA3CrB,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAiC,EACjC,WAAkC;IAElC,iBAAiB;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACT,CAAC;IAExB,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts
deleted file mode 100644
index 66047298..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-export type ObjectLike = Record;
-/**
- * Check if the variable contains an object strictly rejecting arrays
- * @returns `true` if obj is an object
- */
-declare function isObjectNotArray(obj: unknown): obj is ObjectLike;
-/**
- * Pure function - doesn't mutate either parameter!
- * Merges two objects together deeply, overwriting the properties in first with the properties in second
- * @param first The first object
- * @param second The second object
- * @returns a new object
- */
-export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record;
-export { isObjectNotArray };
-//# sourceMappingURL=deepMerge.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map
deleted file mode 100644
index 2e4a00d3..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js
deleted file mode 100644
index 033d4aa6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js
+++ /dev/null
@@ -1,46 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.deepMerge = deepMerge;
-exports.isObjectNotArray = isObjectNotArray;
-/**
- * Check if the variable contains an object strictly rejecting arrays
- * @returns `true` if obj is an object
- */
-function isObjectNotArray(obj) {
-    return typeof obj === 'object' && obj != null && !Array.isArray(obj);
-}
-/**
- * Pure function - doesn't mutate either parameter!
- * Merges two objects together deeply, overwriting the properties in first with the properties in second
- * @param first The first object
- * @param second The second object
- * @returns a new object
- */
-function deepMerge(first = {}, second = {}) {
-    // get the unique set of keys across both objects
-    const keys = new Set(Object.keys(first).concat(Object.keys(second)));
-    return Array.from(keys).reduce((acc, key) => {
-        const firstHasKey = key in first;
-        const secondHasKey = key in second;
-        const firstValue = first[key];
-        const secondValue = second[key];
-        if (firstHasKey && secondHasKey) {
-            if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) {
-                // object type
-                acc[key] = deepMerge(firstValue, secondValue);
-            }
-            else {
-                // value type
-                acc[key] = secondValue;
-            }
-        }
-        else if (firstHasKey) {
-            acc[key] = firstValue;
-        }
-        else {
-            acc[key] = secondValue;
-        }
-        return acc;
-    }, {});
-}
-//# sourceMappingURL=deepMerge.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map
deleted file mode 100644
index 225aa40c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"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,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;QACzB,CAAC;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts
deleted file mode 100644
index ea1cdab0..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import type * as TSESLint from '../ts-eslint';
-import type { ParserServices, ParserServicesWithTypeInformation } from '../ts-estree';
-/**
- * Try to retrieve type-aware parser service from context.
- * This **_will_** throw if it is not available.
- */
-declare function getParserServices(context: Readonly>): ParserServicesWithTypeInformation;
-/**
- * Try to retrieve type-aware parser service from context.
- * This **_will_** throw if it is not available.
- */
-declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: false): ParserServicesWithTypeInformation;
-/**
- * Try to retrieve type-aware parser service from context.
- * This **_will not_** throw if it is not available.
- */
-declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: true): ParserServices;
-/**
- * Try to retrieve type-aware parser service from context.
- * This may or may not throw if it is not available, depending on if `allowWithoutFullTypeInformation` is `true`
- */
-declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation: boolean): ParserServices;
-export { getParserServices };
-//# sourceMappingURL=getParserServices.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map
deleted file mode 100644
index e6e0fd52..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,iCAAiC,EAClC,MAAM,cAAc,CAAC;AAUtB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,GAC3D,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,KAAK,GACrC,iCAAiC,CAAC;AACrC;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,IAAI,GACpC,cAAc,CAAC;AAClB;;;GAGG;AACH,iBAAS,iBAAiB,CACxB,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,OAAO,GACvC,cAAc,CAAC;AAiDlB,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js
deleted file mode 100644
index 3b3020f6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getParserServices = getParserServices;
-const parserSeemsToBeTSESLint_1 = require("./parserSeemsToBeTSESLint");
-const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = 'You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.';
-const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';
-function getParserServices(context, allowWithoutFullTypeInformation = false) {
-    const parser = context.parserPath || context.languageOptions.parser?.meta?.name;
-    // This check is unnecessary if the user is using the latest version of our parser.
-    //
-    // However the world isn't perfect:
-    // - Users often use old parser versions.
-    //   Old versions of the parser would not return any parserServices unless parserOptions.project was set.
-    // - Users sometimes use parsers that aren't @typescript-eslint/parser
-    //   Other parsers won't return the parser services we expect (if they return any at all).
-    //
-    // This check allows us to handle bad user setups whilst providing a nice user-facing
-    // error message explaining the problem.
-    if (context.sourceCode.parserServices?.esTreeNodeToTSNodeMap == null ||
-        context.sourceCode.parserServices.tsNodeToESTreeNodeMap == null) {
-        throwError(parser);
-    }
-    // if a rule requires full type information, then hard fail if it doesn't exist
-    // this forces the user to supply parserOptions.project
-    if (context.sourceCode.parserServices.program == null &&
-        !allowWithoutFullTypeInformation) {
-        throwError(parser);
-    }
-    return context.sourceCode.parserServices;
-}
-/* eslint-enable @typescript-eslint/unified-signatures */
-function throwError(parser) {
-    const messages = [
-        ERROR_MESSAGE_REQUIRES_PARSER_SERVICES,
-        `Parser: ${parser || '(unknown)'}`,
-        !(0, parserSeemsToBeTSESLint_1.parserSeemsToBeTSESLint)(parser) && ERROR_MESSAGE_UNKNOWN_PARSER,
-    ].filter(Boolean);
-    throw new Error(messages.join('\n'));
-}
-//# sourceMappingURL=getParserServices.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map
deleted file mode 100644
index 93543ead..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;AAyGS,8CAAiB;AApG1B,uEAAoE;AAEpE,MAAM,sCAAsC,GAC1C,gLAAgL,CAAC;AAEnL,MAAM,4BAA4B,GAChC,mKAAmK,CAAC;AA+CtK,SAAS,iBAAiB,CACxB,OAA0D,EAC1D,+BAA+B,GAAG,KAAK;IAEvC,MAAM,MAAM,GACV,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;IAEnE,mFAAmF;IACnF,EAAE;IACF,mCAAmC;IACnC,yCAAyC;IACzC,yGAAyG;IACzG,sEAAsE;IACtE,0FAA0F;IAC1F,EAAE;IACF,qFAAqF;IACrF,wCAAwC;IACxC,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,IAAI,IAAI;QAChE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,qBAAqB,IAAI,IAAI,EAC/D,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,+EAA+E;IAC/E,uDAAuD;IACvD,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,IAAI,IAAI;QACjD,CAAC,+BAA+B,EAChC,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,OAAO,CAAC,UAAU,CAAC,cAAgC,CAAC;AAC7D,CAAC;AACD,yDAAyD;AAEzD,SAAS,UAAU,CAAC,MAA0B;IAC5C,MAAM,QAAQ,GAAG;QACf,sCAAsC;QACtC,WAAW,MAAM,IAAI,WAAW,EAAE;QAClC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,4BAA4B;KACjE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts
deleted file mode 100644
index 4f1b48a6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export * from './applyDefault';
-export * from './getParserServices';
-export * from './InferTypesFromRule';
-export * from './RuleCreator';
-export * from './deepMerge';
-export * from './nullThrows';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map
deleted file mode 100644
index 5b346d50..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
deleted file mode 100644
index 3a4064e4..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./applyDefault"), exports);
-__exportStar(require("./getParserServices"), exports);
-__exportStar(require("./InferTypesFromRule"), exports);
-__exportStar(require("./RuleCreator"), exports);
-__exportStar(require("./deepMerge"), exports);
-__exportStar(require("./nullThrows"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map
deleted file mode 100644
index b178e75e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts
deleted file mode 100644
index af919fa2..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * A set of common reasons for calling nullThrows
- */
-declare const NullThrowsReasons: {
-    readonly MissingParent: "Expected node to have a parent.";
-    readonly MissingToken: (token: string, thing: string) => string;
-};
-/**
- * Assert that a value must not be null or undefined.
- * This is a nice explicit alternative to the non-null assertion operator.
- */
-declare function nullThrows(value: T, message: string): NonNullable;
-export { nullThrows, NullThrowsReasons };
-//# sourceMappingURL=nullThrows.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map
deleted file mode 100644
index d695757d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,iBAAiB;;mCAEC,MAAM,SAAS,MAAM;CAEnC,CAAC;AAEX;;;GAGG;AACH,iBAAS,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAMhE;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js
deleted file mode 100644
index 2da6d2b1..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NullThrowsReasons = void 0;
-exports.nullThrows = nullThrows;
-/**
- * A set of common reasons for calling nullThrows
- */
-const NullThrowsReasons = {
-    MissingParent: 'Expected node to have a parent.',
-    MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`,
-};
-exports.NullThrowsReasons = NullThrowsReasons;
-/**
- * Assert that a value must not be null or undefined.
- * This is a nice explicit alternative to the non-null assertion operator.
- */
-function nullThrows(value, message) {
-    if (value == null) {
-        throw new Error(`Non-null Assertion Failed: ${message}`);
-    }
-    return value;
-}
-//# sourceMappingURL=nullThrows.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map
deleted file mode 100644
index e60696ca..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAqBS,gCAAU;AArBnB;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAcU,8CAAiB;AAZtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAAQ,EAAE,OAAe;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts
deleted file mode 100644
index ba5bebe6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare function parserSeemsToBeTSESLint(parser: string | undefined): boolean;
-//# sourceMappingURL=parserSeemsToBeTSESLint.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map
deleted file mode 100644
index 57c62220..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"parserSeemsToBeTSESLint.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js
deleted file mode 100644
index 01a05902..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint;
-function parserSeemsToBeTSESLint(parser) {
-    return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser);
-}
-//# sourceMappingURL=parserSeemsToBeTSESLint.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map
deleted file mode 100644
index bdd2e3cd..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"parserSeemsToBeTSESLint.js","sourceRoot":"","sources":["../../src/eslint-utils/parserSeemsToBeTSESLint.ts"],"names":[],"mappings":";;AAAA,0DAEC;AAFD,SAAgB,uBAAuB,CAAC,MAA0B;IAChE,OAAO,CAAC,CAAC,MAAM,IAAI,0CAA0C,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7E,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts
deleted file mode 100644
index 9a9abd1f..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import * as ASTUtils from './ast-utils';
-import * as ESLintUtils from './eslint-utils';
-import * as JSONSchema from './json-schema';
-import * as TSESLint from './ts-eslint';
-import * as TSUtils from './ts-utils';
-export { ASTUtils, ESLintUtils, JSONSchema, TSESLint, TSUtils };
-export * from './ts-estree';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts.map
deleted file mode 100644
index db0a8763..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAChE,cAAc,aAAa,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/index.js
deleted file mode 100644
index 2dc3d649..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/index.js
+++ /dev/null
@@ -1,41 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.TSUtils = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0;
-const ASTUtils = __importStar(require("./ast-utils"));
-exports.ASTUtils = ASTUtils;
-const ESLintUtils = __importStar(require("./eslint-utils"));
-exports.ESLintUtils = ESLintUtils;
-const JSONSchema = __importStar(require("./json-schema"));
-exports.JSONSchema = JSONSchema;
-const TSESLint = __importStar(require("./ts-eslint"));
-exports.TSESLint = TSESLint;
-const TSUtils = __importStar(require("./ts-utils"));
-exports.TSUtils = TSUtils;
-__exportStar(require("./ts-estree"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/index.js.map
deleted file mode 100644
index 4cb280bb..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAM/B,4BAAQ;AALjB,4DAA8C;AAK3B,kCAAW;AAJ9B,0DAA4C;AAIZ,gCAAU;AAH1C,sDAAwC;AAGI,4BAAQ;AAFpD,oDAAsC;AAEgB,0BAAO;AAC7D,8CAA4B"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts
deleted file mode 100644
index c883699f..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts
+++ /dev/null
@@ -1,388 +0,0 @@
-/**
- * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts
- * We intentionally fork this because:
- * - ESLint ***ONLY*** supports JSONSchema v4
- * - We want to provide stricter types
- */
-/**
- * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- */
-export type JSONSchema4TypeName = 'any' | 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string';
-/**
- * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5
- */
-export type JSONSchema4Type = boolean | number | string | null;
-export type JSONSchema4TypeExtended = JSONSchema4Type | JSONSchema4Array | JSONSchema4Object;
-export interface JSONSchema4Object {
-    [key: string]: JSONSchema4TypeExtended;
-}
-export interface JSONSchema4Array extends Array {
-}
-/**
- * Meta schema
- *
- * Recommended values:
- * - 'http://json-schema.org/schema#'
- * - 'http://json-schema.org/hyper-schema#'
- * - 'http://json-schema.org/draft-04/schema#'
- * - 'http://json-schema.org/draft-04/hyper-schema#'
- * - 'http://json-schema.org/draft-03/schema#'
- * - 'http://json-schema.org/draft-03/hyper-schema#'
- *
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
- */
-export type JSONSchema4Version = string;
-/**
- * JSON Schema V4
- * @see https://tools.ietf.org/html/draft-zyp-json-schema-04
- */
-export type JSONSchema4 = JSONSchema4AllOfSchema | JSONSchema4AnyOfSchema | JSONSchema4AnySchema | JSONSchema4ArraySchema | JSONSchema4BooleanSchema | JSONSchema4MultiSchema | JSONSchema4NullSchema | JSONSchema4NumberSchema | JSONSchema4ObjectSchema | JSONSchema4OneOfSchema | JSONSchema4RefSchema | JSONSchema4StringSchema;
-interface JSONSchema4Base {
-    id?: string | undefined;
-    $schema?: JSONSchema4Version | undefined;
-    /**
-     * A single type, or a union of simple types
-     */
-    type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined;
-    /**
-     * Path to a schema defined in `definitions`/`$defs` that will form the base
-     * for this schema.
-     *
-     * If you are defining an "array" schema (`schema: [ ... ]`) for your rule
-     * then you should prefix this with `items/0` so that the validator can find
-     * your definitions.
-     *
-     * eg: `'#/items/0/definitions/myDef'`
-     *
-     * Otherwise if you are defining an "object" schema (`schema: { ... }`) for
-     * your rule you can directly reference your definitions
-     *
-     * eg: `'#/definitions/myDef'`
-     */
-    $ref?: string | undefined;
-    /**
-     * This attribute is a string that provides a short description of the
-     * instance property.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21
-     */
-    title?: string | undefined;
-    /**
-     * This attribute is a string that provides a full description of the of
-     * purpose the instance property.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22
-     */
-    description?: string | undefined;
-    /**
-     * Reusable definitions that can be referenced via `$ref`
-     */
-    definitions?: Record | undefined;
-    /**
-     * Reusable definitions that can be referenced via `$ref`
-     */
-    $defs?: Record | undefined;
-    /**
-     * The value of this property MUST be another schema which will provide
-     * a base schema which the current schema will inherit from.  The
-     * inheritance rules are such that any instance that is valid according
-     * to the current schema MUST be valid according to the referenced
-     * schema.  This MAY also be an array, in which case, the instance MUST
-     * be valid for all the schemas in the array.  A schema that extends
-     * another schema MAY define additional attributes, constrain existing
-     * attributes, or add other constraints.
-     *
-     * Conceptually, the behavior of extends can be seen as validating an
-     * instance against all constraints in the extending schema as well as
-     * the extended schema(s).
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26
-     */
-    extends?: string[] | string | undefined;
-    /**
-     * The default value for the item if not present
-     */
-    default?: JSONSchema4TypeExtended | undefined;
-    /**
-     * This attribute indicates if the instance must have a value, and not
-     * be undefined. This is false by default, making the instance
-     * optional.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7
-     */
-    required?: string[] | boolean | undefined;
-    /**
-     * (NOT) Must not be valid against the given schema
-     */
-    not?: JSONSchema4 | undefined;
-    /**
-     * (AND) Must be valid against all of the sub-schemas
-     */
-    allOf?: JSONSchema4[] | undefined;
-    /**
-     * (OR) Must be valid against any of the sub-schemas
-     */
-    anyOf?: JSONSchema4[] | undefined;
-    /**
-     * (XOR) Must be valid against exactly one of the sub-schemas
-     */
-    oneOf?: JSONSchema4[] | undefined;
-}
-export interface JSONSchema4RefSchema extends JSONSchema4Base {
-    type?: undefined;
-    $ref: string;
-}
-export interface JSONSchema4AllOfSchema extends JSONSchema4Base {
-    type?: undefined;
-    allOf: JSONSchema4[];
-}
-export interface JSONSchema4AnyOfSchema extends JSONSchema4Base {
-    type?: undefined;
-    anyOf: JSONSchema4[];
-}
-export interface JSONSchema4OneOfSchema extends JSONSchema4Base {
-    type?: undefined;
-    oneOf: JSONSchema4[];
-}
-export interface JSONSchema4MultiSchema extends Omit, Omit, Omit, Omit, Omit, Omit, Omit {
-    type: JSONSchema4TypeName[];
-    /**
-     * This provides an enumeration of all possible values that are valid
-     * for the instance property. This MUST be an array, and each item in
-     * the array represents a possible value for the instance value. If
-     * this attribute is defined, the instance value MUST be one of the
-     * values in the array in order for the schema to be valid.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19
-     */
-    enum?: JSONSchema4Type[];
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/object.html
- */
-export interface JSONSchema4ObjectSchema extends JSONSchema4Base {
-    type: 'object';
-    /**
-     * This attribute defines a schema for all properties that are not
-     * explicitly defined in an object type definition. If specified, the
-     * value MUST be a schema or a boolean. If false is provided, no
-     * additional properties are allowed beyond the properties defined in
-     * the schema. The default value is an empty schema which allows any
-     * value for additional properties.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4
-     */
-    additionalProperties?: JSONSchema4 | boolean | undefined;
-    /**
-     * This attribute is an object with property definitions that define the
-     * valid values of instance object property values. When the instance
-     * value is an object, the property values of the instance object MUST
-     * conform to the property definitions in this object. In this object,
-     * each property definition's value MUST be a schema, and the property's
-     * name MUST be the name of the instance property that it defines.  The
-     * instance property value MUST be valid according to the schema from
-     * the property definition. Properties are considered unordered, the
-     * order of the instance properties MAY be in any order.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2
-     */
-    properties?: Record | undefined;
-    /**
-     * This attribute is an object that defines the schema for a set of
-     * property names of an object instance. The name of each property of
-     * this attribute's object is a regular expression pattern in the ECMA
-     * 262/Perl 5 format, while the value is a schema. If the pattern
-     * matches the name of a property on the instance object, the value of
-     * the instance's property MUST be valid against the pattern name's
-     * schema value.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3
-     */
-    patternProperties?: Record | undefined;
-    /**
-     * The `dependencies` keyword conditionally applies a sub-schema when a given
-     * property is present. This schema is applied in the same way `allOf` applies
-     * schemas. Nothing is merged or extended. Both schemas apply independently.
-     */
-    dependencies?: Record | undefined;
-    /**
-     * The maximum number of properties allowed for record-style schemas
-     */
-    maxProperties?: number | undefined;
-    /**
-     * The minimum number of properties required for record-style schemas
-     */
-    minProperties?: number | undefined;
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/array.html
- */
-export interface JSONSchema4ArraySchema extends JSONSchema4Base {
-    type: 'array';
-    /**
-     * May only be defined when "items" is defined, and is a tuple of JSONSchemas.
-     *
-     * This provides a definition for additional items in an array instance
-     * when tuple definitions of the items is provided.  This can be false
-     * to indicate additional items in the array are not allowed, or it can
-     * be a schema that defines the schema of the additional items.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6
-     */
-    additionalItems?: JSONSchema4 | boolean | undefined;
-    /**
-     * This attribute defines the allowed items in an instance array, and
-     * MUST be a schema or an array of schemas.  The default value is an
-     * empty schema which allows any value for items in the instance array.
-     *
-     * When this attribute value is a schema and the instance value is an
-     * array, then all the items in the array MUST be valid according to the
-     * schema.
-     *
-     * When this attribute value is an array of schemas and the instance
-     * value is an array, each position in the instance array MUST conform
-     * to the schema in the corresponding position for this array.  This
-     * called tuple typing.  When tuple typing is used, additional items are
-     * allowed, disallowed, or constrained by the "additionalItems"
-     * (Section 5.6) attribute using the same rules as
-     * "additionalProperties" (Section 5.4) for objects.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5
-     */
-    items?: JSONSchema4 | JSONSchema4[] | undefined;
-    /**
-     * Defines the maximum length of an array
-     */
-    maxItems?: number | undefined;
-    /**
-     * Defines the minimum length of an array
-     */
-    minItems?: number | undefined;
-    /**
-     * Enforces that all items in the array are unique
-     */
-    uniqueItems?: boolean | undefined;
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/string.html
- */
-export interface JSONSchema4StringSchema extends JSONSchema4Base {
-    type: 'string';
-    /**
-     * The maximum allowed length for the string
-     */
-    maxLength?: number | undefined;
-    /**
-     * The minimum allowed length for the string
-     */
-    minLength?: number | undefined;
-    /**
-     * The `pattern` keyword is used to restrict a string to a particular regular
-     * expression. The regular expression syntax is the one defined in JavaScript
-     * (ECMA 262 specifically) with Unicode support.
-     *
-     * When defining the regular expressions, it’s important to note that the
-     * string is considered valid if the expression matches anywhere within the
-     * string. For example, the regular expression "p" will match any string with
-     * a p in it, such as "apple" not just a string that is simply "p". Therefore,
-     * it is usually less confusing, as a matter of course, to surround the
-     * regular expression in ^...$, for example, "^p$", unless there is a good
-     * reason not to do so.
-     */
-    pattern?: string | undefined;
-    /**
-     * The `format` keyword allows for basic semantic identification of certain
-     * kinds of string values that are commonly used.
-     *
-     * For example, because JSON doesn’t have a “DateTime” type, dates need to be
-     * encoded as strings. `format` allows the schema author to indicate that the
-     * string value should be interpreted as a date.
-     *
-     * ajv v6 provides a few built-in formats - all other strings will cause AJV
-     * to throw during schema compilation
-     */
-    format?: 'date-time' | 'date' | 'email' | 'hostname' | 'ipv4' | 'ipv6' | 'json-pointer-uri-fragment' | 'json-pointer' | 'regex' | 'relative-json-pointer' | 'time' | 'uri-reference' | 'uri-template' | 'uri' | 'url' | 'uuid' | undefined;
-    enum?: string[] | undefined;
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/numeric.html
- */
-export interface JSONSchema4NumberSchema extends JSONSchema4Base {
-    type: 'integer' | 'number';
-    /**
-     * Numbers can be restricted to a multiple of a given number, using the
-     * `multipleOf` keyword. It may be set to any positive number.
-     */
-    multipleOf?: number | undefined;
-    /**
-     * The maximum allowed value for the number
-     */
-    maximum?: number | undefined;
-    /**
-     * The minimum allowed value for the number
-     */
-    minimum?: number | undefined;
-    /**
-     * The exclusive minimum allowed value for the number
-     * - `true` = `x < maximum`
-     * - `false` = `x <= maximum`
-     *
-     * Default is `false`
-     */
-    exclusiveMaximum?: boolean | undefined;
-    /**
-     * Indicates whether or not `minimum` is the inclusive or exclusive minimum
-     * - `true` = `x > minimum`
-     * - `false` = `x ≥ minimum`
-     *
-     * Default is `false`
-     */
-    exclusiveMinimum?: boolean | undefined;
-    /**
-     * This provides an enumeration of all possible values that are valid
-     * for the instance property. This MUST be an array, and each item in
-     * the array represents a possible value for the instance value. If
-     * this attribute is defined, the instance value MUST be one of the
-     * values in the array in order for the schema to be valid.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19
-     */
-    enum?: number[] | undefined;
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/boolean.html
- */
-export interface JSONSchema4BooleanSchema extends JSONSchema4Base {
-    type: 'boolean';
-    /**
-     * This provides an enumeration of all possible values that are valid
-     * for the instance property. This MUST be an array, and each item in
-     * the array represents a possible value for the instance value. If
-     * this attribute is defined, the instance value MUST be one of the
-     * values in the array in order for the schema to be valid.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19
-     */
-    enum?: boolean[] | undefined;
-}
-/**
- * @see https://json-schema.org/understanding-json-schema/reference/null.html
- */
-export interface JSONSchema4NullSchema extends JSONSchema4Base {
-    type: 'null';
-    /**
-     * This provides an enumeration of all possible values that are valid
-     * for the instance property. This MUST be an array, and each item in
-     * the array represents a possible value for the instance value. If
-     * this attribute is defined, the instance value MUST be one of the
-     * values in the array in order for the schema to be valid.
-     *
-     * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19
-     */
-    enum?: null[] | undefined;
-}
-export interface JSONSchema4AnySchema extends JSONSchema4Base {
-    type: 'any';
-}
-export {};
-//# sourceMappingURL=json-schema.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map
deleted file mode 100644
index 3446f006..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,OAAO,GACP,SAAS,GACT,SAAS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AyB,SAAQ,eAAe;IAC/D,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,IAAI,EAAE,KAAK,CAAC;CACb"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js b/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js
deleted file mode 100644
index 8597348f..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js
+++ /dev/null
@@ -1,9 +0,0 @@
-"use strict";
-/**
- * This is a fork of https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13f63c2eb8d7479caf01ab8d72f9e3683368a8f5/types/json-schema/index.d.ts
- * We intentionally fork this because:
- * - ESLint ***ONLY*** supports JSONSchema v4
- * - We want to provide stricter types
- */
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=json-schema.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js.map
deleted file mode 100644
index a088a7e9..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/json-schema.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts
deleted file mode 100644
index 6a76e35c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import type { AST_TOKEN_TYPES, TSESTree } from '../ts-estree';
-declare namespace AST {
-    type TokenType = AST_TOKEN_TYPES;
-    type Token = TSESTree.Token;
-    type SourceLocation = TSESTree.SourceLocation;
-    type Range = TSESTree.Range;
-}
-export { AST };
-//# sourceMappingURL=AST.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map
deleted file mode 100644
index c9e5db27..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AST.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9D,kBAAU,GAAG,CAAC;IACZ,KAAY,SAAS,GAAG,eAAe,CAAC;IAExC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEnC,KAAY,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAErD,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;CACpC;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js
deleted file mode 100644
index 323ed556..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=AST.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map
deleted file mode 100644
index 2aa7f04b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,oDAAoD"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts
deleted file mode 100644
index 0d9e3cd7..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts
+++ /dev/null
@@ -1,265 +0,0 @@
-import type { Parser as ParserType } from './Parser';
-import type * as ParserOptionsTypes from './ParserOptions';
-import type { Processor as ProcessorType } from './Processor';
-import type { LooseRuleDefinition, SharedConfigurationSettings } from './Rule';
-/** @internal */
-export declare namespace SharedConfig {
-    type Severity = 0 | 1 | 2;
-    type SeverityString = 'error' | 'off' | 'warn';
-    type RuleLevel = Severity | SeverityString;
-    type RuleLevelAndOptions = [RuleLevel, ...unknown[]];
-    type RuleEntry = RuleLevel | RuleLevelAndOptions;
-    type RulesRecord = Partial>;
-    type GlobalVariableOptionBase = 'off' | 'readonly' | 'writable' | /** @deprecated use `'writable'` */ 'writeable' | /** @deprecated use `'readonly'` */ 'readable';
-    type GlobalVariableOptionBoolean = /** @deprecated use `'writable'` */ true | /** @deprecated use `'readonly'` */ false;
-    type GlobalVariableOption = GlobalVariableOptionBase | GlobalVariableOptionBoolean;
-    interface GlobalsConfig {
-        [name: string]: GlobalVariableOption;
-    }
-    interface EnvironmentConfig {
-        [name: string]: boolean;
-    }
-    type ParserOptions = ParserOptionsTypes.ParserOptions;
-    interface PluginMeta {
-        /**
-         * The meta.name property should match the npm package name for your plugin.
-         */
-        name: string;
-        /**
-         * The meta.version property should match the npm package version for your plugin.
-         */
-        version: string;
-    }
-}
-export declare namespace ClassicConfig {
-    export type EnvironmentConfig = SharedConfig.EnvironmentConfig;
-    export type GlobalsConfig = SharedConfig.GlobalsConfig;
-    export type GlobalVariableOption = SharedConfig.GlobalVariableOption;
-    export type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase;
-    export type ParserOptions = SharedConfig.ParserOptions;
-    export type RuleEntry = SharedConfig.RuleEntry;
-    export type RuleLevel = SharedConfig.RuleLevel;
-    export type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions;
-    export type RulesRecord = SharedConfig.RulesRecord;
-    export type Severity = SharedConfig.Severity;
-    export type SeverityString = SharedConfig.SeverityString;
-    interface BaseConfig {
-        $schema?: string;
-        /**
-         * The environment settings.
-         */
-        env?: EnvironmentConfig;
-        /**
-         * The path to other config files or the package name of shareable configs.
-         */
-        extends?: string[] | string;
-        /**
-         * The global variable settings.
-         */
-        globals?: GlobalsConfig;
-        /**
-         * The flag that disables directive comments.
-         */
-        noInlineConfig?: boolean;
-        /**
-         * The override settings per kind of files.
-         */
-        overrides?: ConfigOverride[];
-        /**
-         * The path to a parser or the package name of a parser.
-         */
-        parser?: string | null;
-        /**
-         * The parser options.
-         */
-        parserOptions?: ParserOptions;
-        /**
-         * The plugin specifiers.
-         */
-        plugins?: string[];
-        /**
-         * The processor specifier.
-         */
-        processor?: string;
-        /**
-         * The flag to report unused `eslint-disable` comments.
-         */
-        reportUnusedDisableDirectives?: boolean;
-        /**
-         * The rule settings.
-         */
-        rules?: RulesRecord;
-        /**
-         * The shared settings.
-         */
-        settings?: SharedConfigurationSettings;
-    }
-    export interface ConfigOverride extends BaseConfig {
-        excludedFiles?: string[] | string;
-        files: string[] | string;
-    }
-    export interface Config extends BaseConfig {
-        /**
-         * The glob patterns that ignore to lint.
-         */
-        ignorePatterns?: string[] | string;
-        /**
-         * The root flag.
-         */
-        root?: boolean;
-    }
-    export {};
-}
-export declare namespace FlatConfig {
-    type EcmaVersion = ParserOptionsTypes.EcmaVersion;
-    type GlobalsConfig = SharedConfig.GlobalsConfig;
-    type Parser = ParserType.LooseParserModule;
-    type ParserOptions = SharedConfig.ParserOptions;
-    type PluginMeta = SharedConfig.PluginMeta;
-    type Processor = ProcessorType.LooseProcessorModule;
-    type RuleEntry = SharedConfig.RuleEntry;
-    type RuleLevel = SharedConfig.RuleLevel;
-    type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions;
-    type Rules = SharedConfig.RulesRecord;
-    type Settings = SharedConfigurationSettings;
-    type Severity = SharedConfig.Severity;
-    type SeverityString = SharedConfig.SeverityString;
-    type SourceType = ParserOptionsTypes.SourceType | 'commonjs';
-    interface SharedConfigs {
-        [key: string]: Config;
-    }
-    interface Plugin {
-        /**
-         * Shared configurations bundled with the plugin.
-         * Users will reference these directly in their config (i.e. `plugin.configs.recommended`).
-         */
-        configs?: SharedConfigs;
-        /**
-         * Metadata about your plugin for easier debugging and more effective caching of plugins.
-         */
-        meta?: {
-            [K in keyof PluginMeta]?: PluginMeta[K] | undefined;
-        };
-        /**
-         * The definition of plugin processors.
-         * Users can stringly reference the processor using the key in their config (i.e., `"pluginName/processorName"`).
-         */
-        processors?: Partial> | undefined;
-        /**
-         * The definition of plugin rules.
-         * The key must be the name of the rule that users will use
-         * Users can stringly reference the rule using the key they registered the plugin under combined with the rule name.
-         * i.e. for the user config `plugins: { foo: pluginReference }` - the reference would be `"foo/ruleName"`.
-         */
-        rules?: Record | undefined;
-    }
-    interface Plugins {
-        /**
-         * We intentionally omit the `configs` key from this object because it avoids
-         * type conflicts with old plugins that haven't updated their configs to flat configs yet.
-         * It's valid to reference these old plugins because ESLint won't access the
-         * `.config` property of a plugin when evaluating a flat config.
-         */
-        [pluginAlias: string]: Omit;
-    }
-    interface LinterOptions {
-        /**
-         * A Boolean value indicating if inline configuration is allowed.
-         */
-        noInlineConfig?: boolean;
-        /**
-         * A severity string indicating if and how unused disable and enable
-         * directives should be tracked and reported. For legacy compatibility, `true`
-         * is equivalent to `"warn"` and `false` is equivalent to `"off"`.
-         * @default "off"
-         */
-        reportUnusedDisableDirectives?: SharedConfig.Severity | SharedConfig.SeverityString | boolean;
-    }
-    interface LanguageOptions {
-        /**
-         * The version of ECMAScript to support.
-         * May be any year (i.e., `2022`) or version (i.e., `5`).
-         * Set to `"latest"` for the most recent supported version.
-         * @default "latest"
-         */
-        ecmaVersion?: EcmaVersion | undefined;
-        /**
-         * An object specifying additional objects that should be added to the global scope during linting.
-         */
-        globals?: GlobalsConfig | undefined;
-        /**
-         * An object containing a `parse()` method or a `parseForESLint()` method.
-         * @default
-         * ```
-         * // https://github.com/eslint/espree
-         * require('espree')
-         * ```
-         */
-        parser?: Parser | undefined;
-        /**
-         * An object specifying additional options that are passed directly to the parser.
-         * The available options are parser-dependent.
-         */
-        parserOptions?: ParserOptions | undefined;
-        /**
-         * The type of JavaScript source code.
-         * Possible values are `"script"` for traditional script files, `"module"` for ECMAScript modules (ESM), and `"commonjs"` for CommonJS files.
-         * @default
-         * ```
-         * // for `.js` and `.mjs` files
-         * "module"
-         * // for `.cjs` files
-         * "commonjs"
-         * ```
-         */
-        sourceType?: SourceType | undefined;
-    }
-    interface Config {
-        /**
-         * An string to identify the configuration object. Used in error messages and inspection tools.
-         */
-        name?: string;
-        /**
-         * An array of glob patterns indicating the files that the configuration object should apply to.
-         * If not specified, the configuration object applies to all files matched by any other configuration object.
-         */
-        files?: (string | string[])[];
-        /**
-         * An array of glob patterns indicating the files that the configuration object should not apply to.
-         * If not specified, the configuration object applies to all files matched by files.
-         */
-        ignores?: string[];
-        /**
-         * An object containing settings related to how JavaScript is configured for linting.
-         */
-        languageOptions?: LanguageOptions;
-        /**
-         * An object containing settings related to the linting process.
-         */
-        linterOptions?: LinterOptions;
-        /**
-         * An object containing a name-value mapping of plugin names to plugin objects.
-         * When `files` is specified, these plugins are only available to the matching files.
-         */
-        plugins?: Plugins;
-        /**
-         * Either an object containing `preprocess()` and `postprocess()` methods or
-         * a string indicating the name of a processor inside of a plugin
-         * (i.e., `"pluginName/processorName"`).
-         */
-        processor?: string | Processor;
-        /**
-         * An object containing the configured rules.
-         * When `files` or `ignores` are specified, these rule configurations are only available to the matching files.
-         */
-        rules?: Rules;
-        /**
-         * An object containing name-value pairs of information that should be available to all rules.
-         */
-        settings?: Settings;
-    }
-    type ConfigArray = Config[];
-    type ConfigPromise = Promise;
-    type ConfigFile = ConfigArray | ConfigPromise;
-}
-//# sourceMappingURL=Config.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map
deleted file mode 100644
index d7cfa1e6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,kBAAkB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAE/E,gBAAgB;AAChB,yBAAiB,YAAY,CAAC;IAC5B,KAAY,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,KAAY,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IACtD,KAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;IAElD,KAAY,mBAAmB,GAAG,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAE5D,KAAY,SAAS,GAAG,SAAS,GAAG,mBAAmB,CAAC;IACxD,KAAY,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,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1B,YAAY,CAAC,QAAQ,GACrB,YAAY,CAAC,cAAc,GAC3B,OAAO,CAAC;KACb;IAED,UAAiB,eAAe;QAC9B;;;;;WAKG;QACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;QACtC;;WAEG;QACH,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QACpC;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B;;;WAGG;QACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;QAC1C;;;;;;;;;;WAUG;QACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACrC;IAID,UAAiB,MAAM;QACrB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,KAAK,CAAC,EAAE,CACJ,MAAM,GAEN,MAAM,EAAE,CACX,EAAE,CAAC;QACJ;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB;;WAEG;QACH,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B;;;WAGG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC/B;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC;QACd;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;KACrB;IACD,KAAY,WAAW,GAAG,MAAM,EAAE,CAAC;IACnC,KAAY,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACjD,KAAY,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;CACtD"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js
deleted file mode 100644
index 3894b265..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-/* eslint-disable  @typescript-eslint/consistent-indexed-object-style,  @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=Config.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map
deleted file mode 100644
index 44c1df28..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/ts-eslint/Config.ts"],"names":[],"mappings":";AAAA,0GAA0G"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts
deleted file mode 100644
index 8df53094..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export { 
-/**
- * @deprecated - use ESLint instead
- */
-LegacyESLint, } from './eslint/LegacyESLint';
-export { FlatESLint } from './eslint/FlatESLint';
-export { FlatESLint as ESLint } from './eslint/FlatESLint';
-//# sourceMappingURL=ESLint.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map
deleted file mode 100644
index 1e0a5f6b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ESLint.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":"AAAA,OAAO;AAEL;;GAEG;AACH,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js
deleted file mode 100644
index cc90a1d3..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ESLint = exports.FlatESLint = exports.LegacyESLint = void 0;
-var LegacyESLint_1 = require("./eslint/LegacyESLint");
-// TODO(eslint@v10) - remove this in the next major
-/**
- * @deprecated - use ESLint instead
- */
-Object.defineProperty(exports, "LegacyESLint", { enumerable: true, get: function () { return LegacyESLint_1.LegacyESLint; } });
-var FlatESLint_1 = require("./eslint/FlatESLint");
-Object.defineProperty(exports, "FlatESLint", { enumerable: true, get: function () { return FlatESLint_1.FlatESLint; } });
-var FlatESLint_2 = require("./eslint/FlatESLint");
-Object.defineProperty(exports, "ESLint", { enumerable: true, get: function () { return FlatESLint_2.FlatESLint; } });
-//# sourceMappingURL=ESLint.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map
deleted file mode 100644
index 88fa4617..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ESLint.js","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":";;;AAAA,sDAM+B;AAL7B,mDAAmD;AACnD;;GAEG;AACH,4GAAA,YAAY,OAAA;AAEd,kDAAiD;AAAxC,wGAAA,UAAU,OAAA;AACnB,kDAA2D;AAAlD,oGAAA,UAAU,OAAU"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts
deleted file mode 100644
index 6a40e530..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts
+++ /dev/null
@@ -1,253 +0,0 @@
-import type { ClassicConfig, FlatConfig, SharedConfig } from './Config';
-import type { Parser } from './Parser';
-import type { Processor as ProcessorType } from './Processor';
-import type { AnyRuleCreateFunction, AnyRuleModule, RuleCreateFunction, RuleFix, RuleModule } from './Rule';
-import type { SourceCode } from './SourceCode';
-export type MinimalRuleModule = Partial, 'create'>> & Pick, 'create'>;
-declare class LinterBase {
-    /**
-     * Initialize the Linter.
-     * @param config the config object
-     */
-    constructor(config?: Linter.LinterOptions);
-    /**
-     * Define a new parser module
-     * @param parserId Name of the parser
-     * @param parserModule The parser object
-     */
-    defineParser(parserId: string, parserModule: Parser.LooseParserModule): void;
-    /**
-     * Defines a new linting rule.
-     * @param ruleId A unique rule identifier
-     * @param ruleModule Function from context to object mapping AST node types to event handlers
-     */
-    defineRule(ruleId: string, ruleModule: MinimalRuleModule | RuleCreateFunction): void;
-    /**
-     * Defines many new linting rules.
-     * @param rulesToDefine map from unique rule identifier to rule
-     */
-    defineRules(rulesToDefine: Record | RuleCreateFunction>): void;
-    /**
-     * Gets an object with all loaded rules.
-     * @returns All loaded rules
-     */
-    getRules(): Map>;
-    /**
-     * Gets the `SourceCode` object representing the parsed source.
-     * @returns The `SourceCode` object.
-     */
-    getSourceCode(): SourceCode;
-    /**
-     * Verifies the text against the rules specified by the second argument.
-     * @param textOrSourceCode The text to parse or a SourceCode object.
-     * @param config An ESLintConfig instance to configure everything.
-     * @param filenameOrOptions The optional filename of the file being checked.
-     *        If this is not set, the filename will default to '' in the rule context.
-     *        If this is an object, then it has "filename", "allowInlineConfig", and some properties.
-     * @returns The results as an array of messages or an empty array if no messages.
-     */
-    verify(textOrSourceCode: SourceCode | string, config: Linter.ConfigType, filenameOrOptions?: Linter.VerifyOptions | string): Linter.LintMessage[];
-    /**
-     * Performs multiple autofix passes over the text until as many fixes as possible have been applied.
-     * @param code The source text to apply fixes to.
-     * @param config The ESLint config object to use.
-     * @param options The ESLint options object to use.
-     * @returns The result of the fix operation as returned from the SourceCodeFixer.
-     */
-    verifyAndFix(code: string, config: Linter.ConfigType, options: Linter.FixOptions): Linter.FixReport;
-    /**
-     * The version from package.json.
-     */
-    readonly version: string;
-    /**
-     * The version from package.json.
-     */
-    static readonly version: string;
-}
-declare namespace Linter {
-    interface LinterOptions {
-        /**
-         * Which config format to use.
-         * @default 'flat'
-         */
-        configType?: ConfigTypeSpecifier;
-        /**
-         * path to a directory that should be considered as the current working directory.
-         */
-        cwd?: string;
-    }
-    type ConfigTypeSpecifier = 'eslintrc' | 'flat';
-    type EnvironmentConfig = SharedConfig.EnvironmentConfig;
-    type GlobalsConfig = SharedConfig.GlobalsConfig;
-    type GlobalVariableOption = SharedConfig.GlobalVariableOption;
-    type GlobalVariableOptionBase = SharedConfig.GlobalVariableOptionBase;
-    type ParserOptions = SharedConfig.ParserOptions;
-    type PluginMeta = SharedConfig.PluginMeta;
-    type RuleEntry = SharedConfig.RuleEntry;
-    type RuleLevel = SharedConfig.RuleLevel;
-    type RuleLevelAndOptions = SharedConfig.RuleLevelAndOptions;
-    type RulesRecord = SharedConfig.RulesRecord;
-    type Severity = SharedConfig.Severity;
-    type SeverityString = SharedConfig.SeverityString;
-    /** @deprecated use Linter.ConfigType instead */
-    type Config = ClassicConfig.Config;
-    type ConfigType = ClassicConfig.Config | FlatConfig.Config | FlatConfig.ConfigArray;
-    /** @deprecated use ClassicConfig.ConfigOverride instead */
-    type ConfigOverride = ClassicConfig.ConfigOverride;
-    interface VerifyOptions {
-        /**
-         * Allow/disallow inline comments' ability to change config once it is set. Defaults to true if not supplied.
-         * Useful if you want to validate JS without comments overriding rules.
-         */
-        allowInlineConfig?: boolean;
-        /**
-         * if `true` then the linter doesn't make `fix` properties into the lint result.
-         */
-        disableFixes?: boolean;
-        /**
-         * the filename of the source code.
-         */
-        filename?: string;
-        /**
-         * the predicate function that selects adopt code blocks.
-         */
-        filterCodeBlock?: (filename: string, text: string) => boolean;
-        /**
-         * postprocessor for report messages.
-         * If provided, this should accept an array of the message lists
-         * for each code block returned from the preprocessor, apply a mapping to
-         * the messages as appropriate, and return a one-dimensional array of
-         * messages.
-         */
-        postprocess?: ProcessorType.PostProcess;
-        /**
-         * preprocessor for source text.
-         * If provided, this should accept a string of source text, and return an array of code blocks to lint.
-         */
-        preprocess?: ProcessorType.PreProcess;
-        /**
-         * Adds reported errors for unused `eslint-disable` directives.
-         */
-        reportUnusedDisableDirectives?: SeverityString | boolean;
-    }
-    interface FixOptions extends VerifyOptions {
-        /**
-         * Determines whether fixes should be applied.
-         */
-        fix?: boolean;
-    }
-    interface LintSuggestion {
-        desc: string;
-        fix: RuleFix;
-        messageId?: string;
-    }
-    interface LintMessage {
-        /**
-         * The 1-based column number.
-         */
-        column: number;
-        /**
-         * The 1-based column number of the end location.
-         */
-        endColumn?: number;
-        /**
-         * The 1-based line number of the end location.
-         */
-        endLine?: number;
-        /**
-         * If `true` then this is a fatal error.
-         */
-        fatal?: true;
-        /**
-         * Information for autofix.
-         */
-        fix?: RuleFix;
-        /**
-         * The 1-based line number.
-         */
-        line: number;
-        /**
-         * The error message.
-         */
-        message: string;
-        messageId?: string;
-        nodeType: string;
-        /**
-         * The ID of the rule which makes this message.
-         */
-        ruleId: string | null;
-        /**
-         * The severity of this message.
-         */
-        severity: Severity;
-        source: string | null;
-        /**
-         * Information for suggestions
-         */
-        suggestions?: LintSuggestion[];
-    }
-    interface FixReport {
-        /**
-         * True, if the code was fixed
-         */
-        fixed: boolean;
-        /**
-         * Fixed code text (might be the same as input if no fixes were applied).
-         */
-        output: string;
-        /**
-         * Collection of all messages for the given code
-         */
-        messages: LintMessage[];
-    }
-    /** @deprecated use Parser.ParserModule */
-    type ParserModule = Parser.LooseParserModule;
-    /** @deprecated use Parser.ParseResult */
-    type ESLintParseResult = Parser.ParseResult;
-    /** @deprecated use Processor.ProcessorModule */
-    type Processor = ProcessorType.ProcessorModule;
-    interface Environment {
-        /**
-         * The definition of global variables.
-         */
-        globals?: GlobalsConfig;
-        /**
-         * The parser options that will be enabled under this environment.
-         */
-        parserOptions?: ParserOptions;
-    }
-    type LegacyPluginRules = Record;
-    type PluginRules = Record;
-    interface Plugin {
-        /**
-         * The definition of plugin configs.
-         */
-        configs?: Record;
-        /**
-         * The definition of plugin environments.
-         */
-        environments?: Record;
-        /**
-         * Metadata about your plugin for easier debugging and more effective caching of plugins.
-         */
-        meta?: PluginMeta;
-        /**
-         * The definition of plugin processors.
-         */
-        processors?: Record;
-        /**
-         * The definition of plugin rules.
-         */
-        rules?: LegacyPluginRules;
-    }
-}
-declare const Linter_base: typeof LinterBase;
-/**
- * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it
- * simply parses and reports on the code. In particular, the Linter object does not process configuration objects
- * or files.
- */
-declare class Linter extends Linter_base {
-}
-export { Linter };
-//# sourceMappingURL=Linter.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map
deleted file mode 100644
index f80ce782..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Linter.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,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a,CAAC,eAAe,CAAC,CAAC;QAC3D;;WAEG;QACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;KAC3B;CACF;;AAED;;;;GAIG;AACH,cAAM,MAAO,SAAQ,WAAmC;CAAG;AAE3D,OAAO,EAAE,MAAM,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js
deleted file mode 100644
index 4fd16f1b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Linter = void 0;
-const eslint_1 = require("eslint");
-/**
- * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it
- * simply parses and reports on the code. In particular, the Linter object does not process configuration objects
- * or files.
- */
-class Linter extends eslint_1.Linter {
-}
-exports.Linter = Linter;
-//# sourceMappingURL=Linter.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map
deleted file mode 100644
index 37f3c5d1..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAgD;AAuThD;;;;GAIG;AACH,MAAM,MAAO,SAAS,eAAkC;CAAG;AAElD,wBAAM"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts
deleted file mode 100644
index 45c82bb5..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts
+++ /dev/null
@@ -1,95 +0,0 @@
-import type { ParserServices, TSESTree } from '../ts-estree';
-import type { ParserOptions } from './ParserOptions';
-import type { Scope } from './Scope';
-export declare namespace Parser {
-    interface ParserMeta {
-        /**
-         * The unique name of the parser.
-         */
-        name: string;
-        /**
-         * The a string identifying the version of the parser.
-         */
-        version?: string;
-    }
-    /**
-     * A loose definition of the ParserModule type for use with configs
-     * This type intended to relax validation of configs so that parsers that have
-     * different AST types or scope managers can still be passed to configs
-     *
-     * @see {@link LooseRuleDefinition}, {@link LooseProcessorModule}
-     */
-    type LooseParserModule = {
-        /**
-         * Information about the parser to uniquely identify it when serializing.
-         */
-        meta?: {
-            [K in keyof ParserMeta]?: ParserMeta[K] | undefined;
-        };
-        /**
-         * Parses the given text into an ESTree AST
-         */
-        parse(text: string, options?: unknown): unknown;
-    } | {
-        /**
-         * Information about the parser to uniquely identify it when serializing.
-         */
-        meta?: {
-            [K in keyof ParserMeta]?: ParserMeta[K] | undefined;
-        };
-        /**
-         * Parses the given text into an AST
-         */
-        parseForESLint(text: string, options?: unknown): {
-            [k in keyof ParseResult]: unknown;
-        };
-    };
-    type ParserModule = {
-        /**
-         * Information about the parser to uniquely identify it when serializing.
-         */
-        meta?: ParserMeta;
-        /**
-         * Parses the given text into an ESTree AST
-         */
-        parse(text: string, options?: ParserOptions): TSESTree.Program;
-    } | {
-        /**
-         * Information about the parser to uniquely identify it when serializing.
-         */
-        meta?: ParserMeta;
-        /**
-         * Parses the given text into an AST
-         */
-        parseForESLint(text: string, options?: ParserOptions): ParseResult;
-    };
-    interface ParseResult {
-        /**
-         * The ESTree AST
-         */
-        ast: TSESTree.Program;
-        /**
-         * Any parser-dependent services (such as type checkers for nodes).
-         * The value of the services property is available to rules as `context.sourceCode.parserServices`.
-         * The default is an empty object.
-         */
-        services?: ParserServices;
-        /**
-         * A `ScopeManager` object.
-         * Custom parsers can use customized scope analysis for experimental/enhancement syntaxes.
-         * The default is the `ScopeManager` object which is created by `eslint-scope`.
-         */
-        scopeManager?: Scope.ScopeManager;
-        /**
-         * An object to customize AST traversal.
-         * The keys of the object are the type of AST nodes.
-         * Each value is an array of the property names which should be traversed.
-         * The default is `KEYS` of `eslint-visitor-keys`.
-         */
-        visitorKeys?: VisitorKeys;
-    }
-    interface VisitorKeys {
-        [nodeType: string]: readonly string[];
-    }
-}
-//# sourceMappingURL=Parser.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map
deleted file mode 100644
index 35b02bce..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Parser.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,yBAAiB,MAAM,CAAC;IACtB,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED;;;;;;OAMG;IACH,KAAY,iBAAiB,GACzB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KACjD,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAC/D;;WAEG;QACH,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,OAAO,GAChB;aAEA,CAAC,IAAI,MAAM,WAAW,GAAG,OAAO;SAClC,CAAC;KACH,CAAC;IAEN,KAAY,YAAY,GACpB;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC;KAChE,GACD;QACE;;WAEG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB;;WAEG;QACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;KACpE,CAAC;IAEN,UAAiB,WAAW;QAC1B;;WAEG;QACH,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC;QACtB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B;;;;WAIG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;QAClC;;;;;WAKG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B;IAGD,UAAiB,WAAW;QAC1B,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;KACvC;CACF"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js
deleted file mode 100644
index 10cd9ec7..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=Parser.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map
deleted file mode 100644
index 502d0474..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../../src/ts-eslint/Parser.ts"],"names":[],"mappings":";AAAA,oDAAoD"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts
deleted file mode 100644
index d864322b..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { DebugLevel, EcmaVersion, ParserOptions, SourceType, } from '@typescript-eslint/types';
-//# sourceMappingURL=ParserOptions.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map
deleted file mode 100644
index 33c6d0e0..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ParserOptions.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js
deleted file mode 100644
index 40b03dd5..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=ParserOptions.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map
deleted file mode 100644
index 7bd7a94c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ParserOptions.js","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts
deleted file mode 100644
index 845f52b4..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import type { Linter } from './Linter';
-export declare namespace Processor {
-    interface ProcessorMeta {
-        /**
-         * The unique name of the processor.
-         */
-        name: string;
-        /**
-         * The a string identifying the version of the processor.
-         */
-        version?: string;
-    }
-    type PreProcess = (text: string, filename: string) => (string | {
-        text: string;
-        filename: string;
-    })[];
-    type PostProcess = (messagesList: Linter.LintMessage[][], filename: string) => Linter.LintMessage[];
-    interface ProcessorModule {
-        /**
-         * Information about the processor to uniquely identify it when serializing.
-         */
-        meta?: ProcessorMeta;
-        /**
-         * The function to extract code blocks.
-         */
-        preprocess?: PreProcess;
-        /**
-         * The function to merge messages.
-         */
-        postprocess?: PostProcess;
-        /**
-         * If `true` then it means the processor supports autofix.
-         */
-        supportsAutofix?: boolean;
-    }
-    /**
-     * A loose definition of the ParserModule type for use with configs
-     * This type intended to relax validation of configs so that parsers that have
-     * different AST types or scope managers can still be passed to configs
-     *
-     * @see {@link LooseRuleDefinition}, {@link LooseParserModule}
-     */
-    interface LooseProcessorModule {
-        /**
-         * Information about the processor to uniquely identify it when serializing.
-         */
-        meta?: {
-            [K in keyof ProcessorMeta]?: ProcessorMeta[K] | undefined;
-        };
-        /**
-         * The function to extract code blocks.
-         */
-        preprocess?: (text: string, filename: string) => any;
-        /**
-         * The function to merge messages.
-         */
-        postprocess?: (messagesList: any, filename: string) => any;
-        /**
-         * If `true` then it means the processor supports autofix.
-         */
-        supportsAutofix?: boolean | undefined;
-    }
-}
-//# sourceMappingURL=Processor.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map
deleted file mode 100644
index b3747e22..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,yBAAiB,SAAS,CAAC;IACzB,UAAiB,aAAa;QAC5B;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED,KAAY,UAAU,GAAG,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAErD,KAAY,WAAW,GAAG,CACxB,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,EACpC,QAAQ,EAAE,MAAM,KACb,MAAM,CAAC,WAAW,EAAE,CAAC;IAE1B,UAAiB,eAAe;QAC9B;;WAEG;QACH,IAAI,CAAC,EAAE,aAAa,CAAC;QAErB;;WAEG;QACH,UAAU,CAAC,EAAE,UAAU,CAAC;QAExB;;WAEG;QACH,WAAW,CAAC,EAAE,WAAW,CAAC;QAE1B;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B;IAED;;;;;;OAMG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,IAAI,CAAC,EAAE;aAAG,CAAC,IAAI,MAAM,aAAa,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS;SAAE,CAAC;QAErE;;WAEG;QAMH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAErD;;WAEG;QAMH,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;QAE3D;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACvC;CACF"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js
deleted file mode 100644
index 4dc798a7..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=Processor.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map
deleted file mode 100644
index 1e717ae0..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Processor.js","sourceRoot":"","sources":["../../src/ts-eslint/Processor.ts"],"names":[],"mappings":";AAAA,oDAAoD"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts
deleted file mode 100644
index fed23c18..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts
+++ /dev/null
@@ -1,527 +0,0 @@
-import type { JSONSchema4 } from '../json-schema';
-import type { ParserServices, TSESTree } from '../ts-estree';
-import type { AST } from './AST';
-import type { FlatConfig } from './Config';
-import type { Linter } from './Linter';
-import type { Scope } from './Scope';
-import type { SourceCode } from './SourceCode';
-export type RuleRecommendation = 'recommended' | 'strict' | 'stylistic';
-export interface RuleRecommendationAcrossConfigs {
-    recommended?: true;
-    strict: Partial;
-}
-export interface RuleMetaDataDocs {
-    /**
-     * Concise description of the rule.
-     */
-    description: string;
-    /**
-     * The URL of the rule's docs.
-     */
-    url?: string;
-}
-export interface RuleMetaData {
-    /**
-     * True if the rule is deprecated, false otherwise
-     */
-    deprecated?: boolean;
-    /**
-     * Documentation for the rule
-     */
-    docs?: PluginDocs & RuleMetaDataDocs;
-    /**
-     * The fixer category. Omit if there is no fixer
-     */
-    fixable?: 'code' | 'whitespace';
-    /**
-     * Specifies whether rules can return suggestions. Omit if there is no suggestions
-     */
-    hasSuggestions?: boolean;
-    /**
-     * A map of messages which the rule can report.
-     * The key is the messageId, and the string is the parameterised error string.
-     * See: https://eslint.org/docs/developer-guide/working-with-rules#messageids
-     */
-    messages: Record;
-    /**
-     * The type of rule.
-     * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve.
-     * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed.
-     * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren’t specified in the AST.
-     */
-    type: 'problem' | 'suggestion' | 'layout';
-    /**
-     * The name of the rule this rule was replaced by, if it was deprecated.
-     */
-    replacedBy?: readonly string[];
-    /**
-     * The options schema. Supply an empty array if there are no options.
-     */
-    schema: JSONSchema4 | readonly JSONSchema4[];
-}
-export interface RuleMetaDataWithDocs extends RuleMetaData {
-    /**
-     * Documentation for the rule
-     */
-    docs: PluginDocs & RuleMetaDataDocs;
-}
-export interface RuleFix {
-    range: Readonly;
-    text: string;
-}
-export interface RuleFixer {
-    insertTextAfter(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix;
-    insertTextAfterRange(range: Readonly, text: string): RuleFix;
-    insertTextBefore(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix;
-    insertTextBeforeRange(range: Readonly, text: string): RuleFix;
-    remove(nodeOrToken: TSESTree.Node | TSESTree.Token): RuleFix;
-    removeRange(range: Readonly): RuleFix;
-    replaceText(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix;
-    replaceTextRange(range: Readonly, text: string): RuleFix;
-}
-export interface SuggestionReportDescriptor extends Omit, 'fix'> {
-    readonly fix: ReportFixFunction;
-}
-export type ReportFixFunction = (fixer: RuleFixer) => IterableIterator | RuleFix | readonly RuleFix[] | null;
-export type ReportSuggestionArray = SuggestionReportDescriptor[];
-export type ReportDescriptorMessageData = Readonly>;
-interface ReportDescriptorBase {
-    /**
-     * The parameters for the message string associated with `messageId`.
-     */
-    readonly data?: ReportDescriptorMessageData;
-    /**
-     * The fixer function.
-     */
-    readonly fix?: ReportFixFunction | null;
-    /**
-     * The messageId which is being reported.
-     */
-    readonly messageId: MessageIds;
-}
-interface ReportDescriptorWithSuggestion extends ReportDescriptorBase {
-    /**
-     * 6.7's Suggestions API
-     */
-    readonly suggest?: Readonly> | null;
-}
-interface ReportDescriptorNodeOptionalLoc {
-    /**
-     * The Node or AST Token which the report is being attached to
-     */
-    readonly node: TSESTree.Node | TSESTree.Token;
-    /**
-     * An override of the location of the report
-     */
-    readonly loc?: Readonly | Readonly;
-}
-interface ReportDescriptorLocOnly {
-    /**
-     * An override of the location of the report
-     */
-    loc: Readonly | Readonly;
-}
-export type ReportDescriptor = ReportDescriptorWithSuggestion & (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc);
-/**
- * Plugins can add their settings using declaration
- * merging against this interface.
- */
-export interface SharedConfigurationSettings {
-    [name: string]: unknown;
-}
-export interface RuleContext {
-    /**
-     * The rule ID.
-     */
-    id: string;
-    /**
-     * An array of the configured options for this rule.
-     * This array does not include the rule severity.
-     */
-    options: Options;
-    /**
-     * The name of the parser from configuration, if in eslintrc (legacy) config.
-     */
-    parserPath: string | undefined;
-    /**
-     * The language options configured for this run
-     */
-    languageOptions: FlatConfig.LanguageOptions;
-    /**
-     * The parser options configured for this run
-     */
-    parserOptions: Linter.ParserOptions;
-    /**
-     * An object containing parser-provided services for rules
-     *
-     * @deprecated in favor of `SourceCode#parserServices`
-     */
-    parserServices?: ParserServices;
-    /**
-     * The shared settings from configuration.
-     * We do not have any shared settings in this plugin.
-     */
-    settings: SharedConfigurationSettings;
-    /**
-     * Returns an array of the ancestors of the currently-traversed node, starting at
-     * the root of the AST and continuing through the direct parent of the current node.
-     * This array does not include the currently-traversed node itself.
-     *
-     * @deprecated in favor of `SourceCode#getAncestors`
-     */
-    getAncestors(): TSESTree.Node[];
-    /**
-     * Returns a list of variables declared by the given node.
-     * This information can be used to track references to variables.
-     *
-     * @deprecated in favor of `SourceCode#getDeclaredVariables`
-     */
-    getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[];
-    /**
-     * Returns the current working directory passed to Linter.
-     * It is a path to a directory that should be considered as the current working directory.
-     * @deprecated in favor of `RuleContext#cwd`
-     */
-    getCwd(): string;
-    /**
-     * The current working directory passed to Linter.
-     * It is a path to a directory that should be considered as the current working directory.
-     */
-    cwd: string;
-    /**
-     * Returns the filename associated with the source.
-     *
-     * @deprecated in favor of `RuleContext#filename`
-     */
-    getFilename(): string;
-    /**
-     * The filename associated with the source.
-     */
-    filename: string;
-    /**
-     * Returns the full path of the file on disk without any code block information (unlike `getFilename()`).
-     * @deprecated in favor of `RuleContext#physicalFilename`
-     */
-    getPhysicalFilename(): string;
-    /**
-     * The full path of the file on disk without any code block information (unlike `filename`).
-     */
-    physicalFilename: string;
-    /**
-     * Returns the scope of the currently-traversed node.
-     * This information can be used track references to variables.
-     *
-     * @deprecated in favor of `SourceCode#getScope`
-     */
-    getScope(): Scope.Scope;
-    /**
-     * Returns a SourceCode object that you can use to work with the source that
-     * was passed to ESLint.
-     *
-     * @deprecated in favor of `RuleContext#sourceCode`
-     */
-    getSourceCode(): Readonly;
-    /**
-     * A SourceCode object that you can use to work with the source that
-     * was passed to ESLint.
-     */
-    sourceCode: Readonly;
-    /**
-     * Marks a variable with the given name in the current scope as used.
-     * This affects the no-unused-vars rule.
-     *
-     * @deprecated in favor of `SourceCode#markVariableAsUsed`
-     */
-    markVariableAsUsed(name: string): boolean;
-    /**
-     * Reports a problem in the code.
-     */
-    report(descriptor: ReportDescriptor): void;
-}
-/**
- * Part of the code path analysis feature of ESLint:
- * https://eslint.org/docs/latest/extend/code-path-analysis
- *
- * These are used in the `onCodePath*` methods. (Note that the `node` parameter
- * of these methods is intentionally omitted.)
- *
- * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993
- */
-export interface CodePath {
-    /**
-     * A unique string. Respective rules can use `id` to save additional
-     * information for each code path.
-     */
-    id: string;
-    initialSegment: CodePathSegment;
-    /** The final segments which includes both returned and thrown. */
-    finalSegments: CodePathSegment[];
-    /** The final segments which includes only returned. */
-    returnedSegments: CodePathSegment[];
-    /** The final segments which includes only thrown. */
-    thrownSegments: CodePathSegment[];
-    /**
-     * Segments of the current traversal position.
-     *
-     * @deprecated
-     */
-    currentSegments: CodePathSegment[];
-    /** The code path of the upper function/global scope. */
-    upper: CodePath | null;
-    /** Code paths of functions this code path contains. */
-    childCodePaths: CodePath[];
-}
-/**
- * Part of the code path analysis feature of ESLint:
- * https://eslint.org/docs/latest/extend/code-path-analysis
- *
- * These are used in the `onCodePath*` methods. (Note that the `node` parameter
- * of these methods is intentionally omitted.)
- *
- * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993
- */
-export interface CodePathSegment {
-    /**
-     * A unique string. Respective rules can use `id` to save additional
-     * information for each segment.
-     */
-    id: string;
-    /**
-     * The next segments. If forking, there are two or more. If final, there is
-     * nothing.
-     */
-    nextSegments: CodePathSegment[];
-    /**
-     * The previous segments. If merging, there are two or more. If initial, there
-     * is nothing.
-     */
-    prevSegments: CodePathSegment[];
-    /**
-     * A flag which shows whether it is reachable. This becomes `false` when
-     * preceded by `return`, `throw`, `break`, or `continue`.
-     */
-    reachable: boolean;
-}
-/**
- * Part of the code path analysis feature of ESLint:
- * https://eslint.org/docs/latest/extend/code-path-analysis
- *
- * This type is unused in the `typescript-eslint` codebase since putting it on
- * the `nodeSelector` for `RuleListener` would break the existing definition.
- * However, it is exported here for the purposes of manual type-assertion.
- *
- * @see https://github.com/typescript-eslint/typescript-eslint/issues/6993
- */
-export type CodePathFunction = ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: TSESTree.Node) => void) | ((codePath: CodePath, node: TSESTree.Node) => void) | ((segment: CodePathSegment, node: TSESTree.Node) => void);
-export type RuleFunction = (node: T) => void;
-interface RuleListenerBaseSelectors {
-    AccessorProperty?: RuleFunction;
-    ArrayExpression?: RuleFunction;
-    ArrayPattern?: RuleFunction;
-    ArrowFunctionExpression?: RuleFunction;
-    AssignmentExpression?: RuleFunction;
-    AssignmentPattern?: RuleFunction;
-    AwaitExpression?: RuleFunction;
-    BigIntLiteral?: RuleFunction;
-    BinaryExpression?: RuleFunction;
-    BlockStatement?: RuleFunction;
-    BreakStatement?: RuleFunction;
-    CallExpression?: RuleFunction;
-    CatchClause?: RuleFunction;
-    ChainExpression?: RuleFunction;
-    ClassBody?: RuleFunction;
-    ClassDeclaration?: RuleFunction;
-    ClassExpression?: RuleFunction;
-    ConditionalExpression?: RuleFunction;
-    ContinueStatement?: RuleFunction;
-    DebuggerStatement?: RuleFunction;
-    Decorator?: RuleFunction;
-    DoWhileStatement?: RuleFunction;
-    EmptyStatement?: RuleFunction;
-    ExportAllDeclaration?: RuleFunction;
-    ExportDefaultDeclaration?: RuleFunction;
-    ExportNamedDeclaration?: RuleFunction;
-    ExportSpecifier?: RuleFunction;
-    ExpressionStatement?: RuleFunction;
-    ForInStatement?: RuleFunction;
-    ForOfStatement?: RuleFunction;
-    ForStatement?: RuleFunction;
-    FunctionDeclaration?: RuleFunction;
-    FunctionExpression?: RuleFunction;
-    Identifier?: RuleFunction;
-    IfStatement?: RuleFunction;
-    ImportDeclaration?: RuleFunction;
-    ImportDefaultSpecifier?: RuleFunction;
-    ImportExpression?: RuleFunction;
-    ImportNamespaceSpecifier?: RuleFunction;
-    ImportSpecifier?: RuleFunction;
-    JSXAttribute?: RuleFunction;
-    JSXClosingElement?: RuleFunction;
-    JSXClosingFragment?: RuleFunction;
-    JSXElement?: RuleFunction;
-    JSXEmptyExpression?: RuleFunction;
-    JSXExpressionContainer?: RuleFunction;
-    JSXFragment?: RuleFunction;
-    JSXIdentifier?: RuleFunction;
-    JSXMemberExpression?: RuleFunction;
-    JSXOpeningElement?: RuleFunction;
-    JSXOpeningFragment?: RuleFunction;
-    JSXSpreadAttribute?: RuleFunction;
-    JSXSpreadChild?: RuleFunction;
-    JSXText?: RuleFunction;
-    LabeledStatement?: RuleFunction;
-    Literal?: RuleFunction;
-    LogicalExpression?: RuleFunction;
-    MemberExpression?: RuleFunction;
-    MetaProperty?: RuleFunction;
-    MethodDefinition?: RuleFunction;
-    NewExpression?: RuleFunction;
-    ObjectExpression?: RuleFunction;
-    ObjectPattern?: RuleFunction;
-    Program?: RuleFunction;
-    Property?: RuleFunction;
-    PropertyDefinition?: RuleFunction;
-    RestElement?: RuleFunction;
-    ReturnStatement?: RuleFunction;
-    SequenceExpression?: RuleFunction;
-    SpreadElement?: RuleFunction;
-    Super?: RuleFunction;
-    SwitchCase?: RuleFunction;
-    SwitchStatement?: RuleFunction;
-    TaggedTemplateExpression?: RuleFunction;
-    TemplateElement?: RuleFunction;
-    TemplateLiteral?: RuleFunction;
-    ThisExpression?: RuleFunction;
-    ThrowStatement?: RuleFunction;
-    TryStatement?: RuleFunction;
-    TSAbstractKeyword?: RuleFunction;
-    TSAbstractMethodDefinition?: RuleFunction;
-    TSAbstractPropertyDefinition?: RuleFunction;
-    TSAnyKeyword?: RuleFunction;
-    TSArrayType?: RuleFunction;
-    TSAsExpression?: RuleFunction;
-    TSAsyncKeyword?: RuleFunction;
-    TSBigIntKeyword?: RuleFunction;
-    TSBooleanKeyword?: RuleFunction;
-    TSCallSignatureDeclaration?: RuleFunction;
-    TSClassImplements?: RuleFunction;
-    TSConditionalType?: RuleFunction;
-    TSConstructorType?: RuleFunction;
-    TSConstructSignatureDeclaration?: RuleFunction;
-    TSDeclareFunction?: RuleFunction;
-    TSDeclareKeyword?: RuleFunction;
-    TSEmptyBodyFunctionExpression?: RuleFunction;
-    TSEnumDeclaration?: RuleFunction;
-    TSEnumMember?: RuleFunction;
-    TSExportAssignment?: RuleFunction;
-    TSExportKeyword?: RuleFunction;
-    TSExternalModuleReference?: RuleFunction;
-    TSFunctionType?: RuleFunction;
-    TSImportEqualsDeclaration?: RuleFunction;
-    TSImportType?: RuleFunction;
-    TSIndexedAccessType?: RuleFunction;
-    TSIndexSignature?: RuleFunction;
-    TSInferType?: RuleFunction;
-    TSInterfaceBody?: RuleFunction;
-    TSInterfaceDeclaration?: RuleFunction;
-    TSInterfaceHeritage?: RuleFunction;
-    TSIntersectionType?: RuleFunction;
-    TSLiteralType?: RuleFunction;
-    TSMappedType?: RuleFunction;
-    TSMethodSignature?: RuleFunction;
-    TSModuleBlock?: RuleFunction;
-    TSModuleDeclaration?: RuleFunction;
-    TSNamespaceExportDeclaration?: RuleFunction;
-    TSNeverKeyword?: RuleFunction;
-    TSNonNullExpression?: RuleFunction;
-    TSNullKeyword?: RuleFunction;
-    TSNumberKeyword?: RuleFunction;
-    TSObjectKeyword?: RuleFunction;
-    TSOptionalType?: RuleFunction;
-    TSParameterProperty?: RuleFunction;
-    TSPrivateKeyword?: RuleFunction;
-    TSPropertySignature?: RuleFunction;
-    TSProtectedKeyword?: RuleFunction;
-    TSPublicKeyword?: RuleFunction;
-    TSQualifiedName?: RuleFunction;
-    TSReadonlyKeyword?: RuleFunction;
-    TSRestType?: RuleFunction;
-    TSStaticKeyword?: RuleFunction;
-    TSStringKeyword?: RuleFunction;
-    TSSymbolKeyword?: RuleFunction;
-    TSThisType?: RuleFunction;
-    TSTupleType?: RuleFunction;
-    TSTypeAliasDeclaration?: RuleFunction;
-    TSTypeAnnotation?: RuleFunction;
-    TSTypeAssertion?: RuleFunction;
-    TSTypeLiteral?: RuleFunction;
-    TSTypeOperator?: RuleFunction;
-    TSTypeParameter?: RuleFunction;
-    TSTypeParameterDeclaration?: RuleFunction;
-    TSTypeParameterInstantiation?: RuleFunction;
-    TSTypePredicate?: RuleFunction;
-    TSTypeQuery?: RuleFunction;
-    TSTypeReference?: RuleFunction;
-    TSUndefinedKeyword?: RuleFunction;
-    TSUnionType?: RuleFunction;
-    TSUnknownKeyword?: RuleFunction;
-    TSVoidKeyword?: RuleFunction;
-    UnaryExpression?: RuleFunction;
-    UpdateExpression?: RuleFunction;
-    VariableDeclaration?: RuleFunction;
-    VariableDeclarator?: RuleFunction;
-    WhileStatement?: RuleFunction;
-    WithStatement?: RuleFunction;
-    YieldExpression?: RuleFunction;
-}
-type RuleListenerExitSelectors = {
-    [K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K];
-};
-type RuleListenerCatchAllBaseCase = Record;
-export interface RuleListenerExtension {
-}
-export type RuleListener = RuleListenerBaseSelectors & RuleListenerCatchAllBaseCase & RuleListenerExitSelectors;
-export interface RuleModule {
-    /**
-     * Default options the rule will be run with
-     */
-    defaultOptions: Options;
-    /**
-     * Metadata about the rule
-     */
-    meta: RuleMetaData;
-    /**
-     * Function which returns an object with methods that ESLint calls to “visit”
-     * nodes while traversing the abstract syntax tree.
-     */
-    create(context: Readonly>): ExtendedRuleListener;
-}
-export type AnyRuleModule = RuleModule;
-export interface RuleModuleWithMetaDocs extends RuleModule {
-    /**
-     * Metadata about the rule
-     */
-    meta: RuleMetaDataWithDocs;
-}
-export type AnyRuleModuleWithMetaDocs = RuleModuleWithMetaDocs;
-/**
- * A loose definition of the RuleModule type for use with configs. This type is
- * intended to relax validation of types so that we can have basic validation
- * without being overly strict about nitty gritty details matching.
- *
- * For example the plugin might be declared using an old version of our types or
- * they might use the DefinitelyTyped eslint types. Ultimately we don't need
- * super strict validation in a config - a loose shape match is "good enough" to
- * help validate the config is correct.
- *
- * @see {@link LooseParserModule}, {@link LooseProcessorModule}
- */
-export type LooseRuleDefinition = LooseRuleCreateFunction | {
-    meta?: object | undefined;
-    create: LooseRuleCreateFunction;
-};
-export type LooseRuleCreateFunction = (context: any) => Record;
-export type RuleCreateFunction = (context: Readonly>) => RuleListener;
-export type AnyRuleCreateFunction = RuleCreateFunction;
-export {};
-//# sourceMappingURL=Rule.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map
deleted file mode 100644
index 85c8db42..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,E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AO,EAAE,CACV,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAE3B,uBAAuB,GACvB;IACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAMN,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK,MAAM,CAC5D,MAAM,EAON,QAAQ,GAAG,SAAS,CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAC5B,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,OAAO,SAAS,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,IAC5C,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,YAAY,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,MAAM,EACN,SAAS,OAAO,EAAE,CACnB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js
deleted file mode 100644
index 8113a7eb..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=Rule.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map
deleted file mode 100644
index 88c1f037..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts
deleted file mode 100644
index 80bd1184..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts
+++ /dev/null
@@ -1,184 +0,0 @@
-import type { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree';
-import type { ClassicConfig } from './Config';
-import type { Linter } from './Linter';
-import type { ParserOptions } from './ParserOptions';
-import type { ReportDescriptorMessageData, RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule';
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface ValidTestCase {
-    /**
-     * Name for the test case.
-     */
-    readonly name?: string;
-    /**
-     * Code for the test case.
-     */
-    readonly code: string;
-    /**
-     * Environments for the test case.
-     */
-    readonly env?: Readonly;
-    /**
-     * The fake filename for the test case. Useful for rules that make assertion about filenames.
-     */
-    readonly filename?: string;
-    /**
-     * The additional global variables.
-     */
-    readonly globals?: Readonly;
-    /**
-     * Options for the test case.
-     */
-    readonly options?: Readonly;
-    /**
-     * The absolute path for the parser.
-     */
-    readonly parser?: string;
-    /**
-     * Options for the parser.
-     */
-    readonly parserOptions?: Readonly;
-    /**
-     * Settings for the test case.
-     */
-    readonly settings?: Readonly;
-    /**
-     * Run this case exclusively for debugging in supported test frameworks.
-     */
-    readonly only?: boolean;
-}
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface SuggestionOutput {
-    /**
-     * Reported message ID.
-     */
-    readonly messageId: MessageIds;
-    /**
-     * The data used to fill the message template.
-     */
-    readonly data?: ReportDescriptorMessageData;
-    /**
-     * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes.
-     * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion.
-     */
-    readonly output: string;
-}
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface InvalidTestCase extends ValidTestCase {
-    /**
-     * Expected errors.
-     */
-    readonly errors: readonly TestCaseError[];
-    /**
-     * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested.
-     */
-    readonly output?: string | string[] | null;
-}
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface TestCaseError {
-    /**
-     * The 1-based column number of the reported start location.
-     */
-    readonly column?: number;
-    /**
-     * The data used to fill the message template.
-     */
-    readonly data?: ReportDescriptorMessageData;
-    /**
-     * The 1-based column number of the reported end location.
-     */
-    readonly endColumn?: number;
-    /**
-     * The 1-based line number of the reported end location.
-     */
-    readonly endLine?: number;
-    /**
-     * The 1-based line number of the reported start location.
-     */
-    readonly line?: number;
-    /**
-     * Reported message ID.
-     */
-    readonly messageId: MessageIds;
-    /**
-     * Reported suggestions.
-     */
-    readonly suggestions?: readonly SuggestionOutput[] | null;
-    /**
-     * The type of the reported AST node.
-     */
-    readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES;
-}
-/**
- * @param text a string describing the rule
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface RunTests {
-    readonly valid: readonly (ValidTestCase | string)[];
-    readonly invalid: readonly InvalidTestCase[];
-}
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-interface RuleTesterConfig extends ClassicConfig.Config {
-    readonly parser: string;
-    readonly parserOptions?: Readonly;
-}
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-declare class RuleTesterBase {
-    /**
-     * Creates a new instance of RuleTester.
-     * @param testerConfig extra configuration for the tester
-     */
-    constructor(testerConfig?: RuleTesterConfig);
-    /**
-     * Adds a new rule test to execute.
-     * @param ruleName The name of the rule to run.
-     * @param rule The rule to test.
-     * @param tests The collection of tests to run.
-     */
-    run(ruleName: string, rule: RuleModule, tests: RunTests): void;
-    /**
-     * If you supply a value to this property, the rule tester will call this instead of using the version defined on
-     * the global namespace.
-     */
-    static get describe(): RuleTesterTestFrameworkFunction;
-    static set describe(value: RuleTesterTestFrameworkFunction | undefined);
-    /**
-     * If you supply a value to this property, the rule tester will call this instead of using the version defined on
-     * the global namespace.
-     */
-    static get it(): RuleTesterTestFrameworkFunction;
-    static set it(value: RuleTesterTestFrameworkFunction | undefined);
-    /**
-     * If you supply a value to this property, the rule tester will call this instead of using the version defined on
-     * the global namespace.
-     */
-    static get itOnly(): RuleTesterTestFrameworkFunction;
-    static set itOnly(value: RuleTesterTestFrameworkFunction | undefined);
-    /**
-     * Define a rule for one particular run of tests.
-     */
-    defineRule(name: string, rule: RuleCreateFunction | RuleModule): void;
-}
-declare const RuleTester_base: typeof RuleTesterBase;
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-declare class RuleTester extends RuleTester_base {
-}
-export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RuleTesterTestFrameworkFunction, RunTests, TestCaseError, ValidTestCase, };
-//# sourceMappingURL=RuleTester.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map
deleted file mode 100644
index 52c983a3..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EACV,2BAA2B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AAa,GACd,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js
deleted file mode 100644
index 745e3a0e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js
+++ /dev/null
@@ -1,12 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RuleTester = void 0;
-/* eslint-disable deprecation/deprecation */
-const eslint_1 = require("eslint");
-/**
- * @deprecated Use `@typescript-eslint/rule-tester` instead.
- */
-class RuleTester extends eslint_1.RuleTester {
-}
-exports.RuleTester = RuleTester;
-//# sourceMappingURL=RuleTester.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map
deleted file mode 100644
index 7f6cd037..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,mCAAwD;AAgOxD;;GAEG;AACH,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAKrE,gCAAU"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts
deleted file mode 100644
index 50b4a749..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import * as scopeManager from '@typescript-eslint/scope-manager';
-declare namespace Scope {
-    type ScopeManager = scopeManager.ScopeManager;
-    type Reference = scopeManager.Reference;
-    type Variable = scopeManager.ScopeVariable;
-    type Scope = scopeManager.Scope;
-    const ScopeType: typeof scopeManager.ScopeType;
-    type DefinitionType = scopeManager.Definition;
-    type Definition = scopeManager.Definition;
-    const DefinitionType: typeof scopeManager.DefinitionType;
-    namespace Definitions {
-        type CatchClauseDefinition = scopeManager.CatchClauseDefinition;
-        type ClassNameDefinition = scopeManager.ClassNameDefinition;
-        type FunctionNameDefinition = scopeManager.FunctionNameDefinition;
-        type ImplicitGlobalVariableDefinition = scopeManager.ImplicitGlobalVariableDefinition;
-        type ImportBindingDefinition = scopeManager.ImportBindingDefinition;
-        type ParameterDefinition = scopeManager.ParameterDefinition;
-        type TSEnumMemberDefinition = scopeManager.TSEnumMemberDefinition;
-        type TSEnumNameDefinition = scopeManager.TSEnumNameDefinition;
-        type TSModuleNameDefinition = scopeManager.TSModuleNameDefinition;
-        type TypeDefinition = scopeManager.TypeDefinition;
-        type VariableDefinition = scopeManager.VariableDefinition;
-    }
-    namespace Scopes {
-        type BlockScope = scopeManager.BlockScope;
-        type CatchScope = scopeManager.CatchScope;
-        type ClassScope = scopeManager.ClassScope;
-        type ConditionalTypeScope = scopeManager.ConditionalTypeScope;
-        type ForScope = scopeManager.ForScope;
-        type FunctionExpressionNameScope = scopeManager.FunctionExpressionNameScope;
-        type FunctionScope = scopeManager.FunctionScope;
-        type FunctionTypeScope = scopeManager.FunctionTypeScope;
-        type GlobalScope = scopeManager.GlobalScope;
-        type MappedTypeScope = scopeManager.MappedTypeScope;
-        type ModuleScope = scopeManager.ModuleScope;
-        type SwitchScope = scopeManager.SwitchScope;
-        type TSEnumScope = scopeManager.TSEnumScope;
-        type TSModuleScope = scopeManager.TSModuleScope;
-        type TypeScope = scopeManager.TypeScope;
-        type WithScope = scopeManager.WithScope;
-    }
-}
-export { Scope };
-//# sourceMappingURL=Scope.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map
deleted file mode 100644
index 444f1d9f..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,kBAAU,KAAK,CAAC;IACd,KAAY,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IACrD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAC/C,KAAY,QAAQ,GAAG,YAAY,CAAC,aAAa,CAAC;IAClD,KAAY,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IAChC,MAAM,SAAS,+BAAyB,CAAC;IAEhD,KAAY,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC;IACrD,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;IAC1C,MAAM,cAAc,oCAA8B,CAAC;IAE1D,UAAiB,WAAW,CAAC;QAC3B,KAAY,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;QACvE,KAAY,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;QACnE,KAAY,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;QACzE,KAAY,gCAAgC,GAC1C,YAAY,CAAC,gCAAgC,CAAC;QAChD,KAAY,uBAAuB,GAAG,YAAY,CAAC,uBAAuB,CAAC;QAC3E,KAAY,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;QACnE,KAAY,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;QACzE,KAAY,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;QACrE,KAAY,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;QACzE,KAAY,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC;QACzD,KAAY,kBAAkB,GAAG,YAAY,CAAC,kBAAkB,CAAC;KAClE;IACD,UAAiB,MAAM,CAAC;QACtB,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QACjD,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QACjD,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QACjD,KAAY,oBAAoB,GAAG,YAAY,CAAC,oBAAoB,CAAC;QACrE,KAAY,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;QAC7C,KAAY,2BAA2B,GACrC,YAAY,CAAC,2BAA2B,CAAC;QAC3C,KAAY,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;QACvD,KAAY,iBAAiB,GAAG,YAAY,CAAC,iBAAiB,CAAC;QAC/D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAC3D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;QACvD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;QAC/C,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;KAChD;CACF;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js
deleted file mode 100644
index 091c76c6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Scope = void 0;
-const scopeManager = __importStar(require("@typescript-eslint/scope-manager"));
-var Scope;
-(function (Scope) {
-    Scope.ScopeType = scopeManager.ScopeType;
-    Scope.DefinitionType = scopeManager.DefinitionType;
-})(Scope || (exports.Scope = Scope = {}));
-//# sourceMappingURL=Scope.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map
deleted file mode 100644
index 478234d6..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,IAAU,KAAK,CA4Cd;AA5CD,WAAU,KAAK;IAKA,eAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAInC,oBAAc,GAAG,YAAY,CAAC,cAAc,CAAC;AAmC5D,CAAC,EA5CS,KAAK,qBAAL,KAAK,QA4Cd"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts
deleted file mode 100644
index add65a7e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts
+++ /dev/null
@@ -1,355 +0,0 @@
-import type { ParserServices, TSESTree } from '../ts-estree';
-import type { Parser } from './Parser';
-import type { Scope } from './Scope';
-declare class TokenStore {
-    /**
-     * Checks whether any comments exist or not between the given 2 nodes.
-     * @param left The node to check.
-     * @param right The node to check.
-     * @returns `true` if one or more comments exist.
-     */
-    commentsExistBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean;
-    /**
-     * Gets all comment tokens directly after the given node or token.
-     * @param nodeOrToken The AST node or token to check for adjacent comment tokens.
-     * @returns An array of comments in occurrence order.
-     */
-    getCommentsAfter(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[];
-    /**
-     * Gets all comment tokens directly before the given node or token.
-     * @param nodeOrToken The AST node or token to check for adjacent comment tokens.
-     * @returns An array of comments in occurrence order.
-     */
-    getCommentsBefore(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[];
-    /**
-     * Gets all comment tokens inside the given node.
-     * @param node The AST node to get the comments for.
-     * @returns An array of comments in occurrence order.
-     */
-    getCommentsInside(node: TSESTree.Node): TSESTree.Comment[];
-    /**
-     * Gets the first token of the given node.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns An object representing the token.
-     */
-    getFirstToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the first token between two non-overlapping nodes.
-     * @param left Node before the desired token range.
-     * @param right Node after the desired token range.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns An object representing the token.
-     */
-    getFirstTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the first `count` tokens of the given node.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     */
-    getFirstTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the first `count` tokens between two non-overlapping nodes.
-     * @param left Node before the desired token range.
-     * @param right Node after the desired token range.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     * @returns Tokens between left and right.
-     */
-    getFirstTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the last token of the given node.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns An object representing the token.
-     */
-    getLastToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the last token between two non-overlapping nodes.
-     * @param left Node before the desired token range.
-     * @param right Node after the desired token range.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns An object representing the token.
-     */
-    getLastTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the last `count` tokens of the given node.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     */
-    getLastTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the last `count` tokens between two non-overlapping nodes.
-     * @param left Node before the desired token range.
-     * @param right Node after the desired token range.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     * @returns Tokens between left and right.
-     */
-    getLastTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the token that follows a given node or token.
-     * @param node The AST node or token.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns An object representing the token.
-     */
-    getTokenAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the token that precedes a given node or token.
-     * @param node The AST node or token.
-     * @param options The option object
-     * @returns An object representing the token.
-     */
-    getTokenBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets the token starting at the specified index.
-     * @param offset Index of the start of the token's range.
-     * @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
-     * @returns The token starting at index, or null if no such token.
-     */
-    getTokenByRangeStart(offset: number, options?: T): SourceCode.ReturnTypeFromOptions | null;
-    /**
-     * Gets all tokens that are related to the given node.
-     * @param node The AST node.
-     * @param beforeCount The number of tokens before the node to retrieve.
-     * @param afterCount The number of tokens after the node to retrieve.
-     * @returns Array of objects representing tokens.
-     */
-    getTokens(node: TSESTree.Node, beforeCount?: number, afterCount?: number): TSESTree.Token[];
-    /**
-     * Gets all tokens that are related to the given node.
-     * @param node The AST node.
-     * @param options The option object. If this is a function then it's `options.filter`.
-     * @returns Array of objects representing tokens.
-     */
-    getTokens(node: TSESTree.Node, options: T): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the `count` tokens that follows a given node or token.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     */
-    getTokensAfter(node: TSESTree.Node | TSESTree.Token, options?: T | number): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets the `count` tokens that precedes a given node or token.
-     * @param node The AST node.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     */
-    getTokensBefore(node: TSESTree.Node | TSESTree.Token, options?: T | number): SourceCode.ReturnTypeFromOptions[];
-    /**
-     * Gets all of the tokens between two non-overlapping nodes.
-     * @param left Node before the desired token range.
-     * @param right Node after the desired token range.
-     * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
-     * @returns Tokens between left and right.
-     */
-    getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T | number): SourceCode.ReturnTypeFromOptions[];
-}
-declare class SourceCodeBase extends TokenStore {
-    /**
-     * Represents parsed source code.
-     * @param ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
-     */
-    constructor(text: string, ast: SourceCode.Program);
-    /**
-     * Represents parsed source code.
-     * @param config The config object.
-     */
-    constructor(config: SourceCode.SourceCodeConfig);
-    /**
-     * The parsed AST for the source code.
-     */
-    ast: SourceCode.Program;
-    applyInlineConfig(): void;
-    applyLanguageOptions(): void;
-    finalize(): void;
-    /**
-     * Retrieves an array containing all comments in the source code.
-     * @returns An array of comment nodes.
-     */
-    getAllComments(): TSESTree.Comment[];
-    /**
-     * Converts a (line, column) pair into a range index.
-     * @param location A line/column location
-     * @returns The range index of the location in the file.
-     */
-    getIndexFromLoc(location: TSESTree.Position): number;
-    /**
-     * Gets the entire source text split into an array of lines.
-     * @returns The source text as an array of lines.
-     */
-    getLines(): string[];
-    /**
-     * Converts a source text index into a (line, column) pair.
-     * @param index The index of a character in a file
-     * @returns A {line, column} location object with a 0-indexed column
-     */
-    getLocFromIndex(index: number): TSESTree.Position;
-    /**
-     * Gets the deepest node containing a range index.
-     * @param index Range index of the desired node.
-     * @returns The node if found or `null` if not found.
-     */
-    getNodeByRangeIndex(index: number): TSESTree.Node | null;
-    /**
-     * Gets the source code for the given node.
-     * @param node The AST node to get the text for.
-     * @param beforeCount The number of characters before the node to retrieve.
-     * @param afterCount The number of characters after the node to retrieve.
-     * @returns The text representing the AST node.
-     */
-    getText(node?: TSESTree.Node | TSESTree.Token, beforeCount?: number, afterCount?: number): string;
-    /**
-     * The flag to indicate that the source code has Unicode BOM.
-     */
-    hasBOM: boolean;
-    /**
-     * Determines if two nodes or tokens have at least one whitespace character
-     * between them. Order does not matter. Returns false if the given nodes or
-     * tokens overlap.
-     * @param first The first node or token to check between.
-     * @param second The second node or token to check between.
-     * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens.
-     */
-    isSpaceBetween(first: TSESTree.Node | TSESTree.Token, second: TSESTree.Node | TSESTree.Token): boolean;
-    /**
-     * Determines if two nodes or tokens have at least one whitespace character
-     * between them. Order does not matter. Returns false if the given nodes or
-     * tokens overlap.
-     * For backward compatibility, this method returns true if there are
-     * `JSXText` tokens that contain whitespace between the two.
-     * @param first The first node or token to check between.
-     * @param second The second node or token to check between.
-     * @returns {boolean} True if there is a whitespace character between
-     * any of the tokens found between the two given nodes or tokens.
-     * @deprecated in favor of isSpaceBetween
-     */
-    isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean;
-    /**
-     * Returns the scope of the given node.
-     * This information can be used track references to variables.
-     */
-    getScope(node: TSESTree.Node): Scope.Scope;
-    /**
-     * Returns an array of the ancestors of the given node, starting at
-     * the root of the AST and continuing through the direct parent of the current node.
-     * This array does not include the currently-traversed node itself.
-     */
-    getAncestors(node: TSESTree.Node): TSESTree.Node[];
-    /**
-     * Returns a list of variables declared by the given node.
-     * This information can be used to track references to variables.
-     */
-    getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[];
-    /**
-     * Marks a variable with the given name in the current scope as used.
-     * This affects the no-unused-vars rule.
-     */
-    markVariableAsUsed(name: string, node: TSESTree.Node): boolean;
-    /**
-     * The source code split into lines according to ECMA-262 specification.
-     * This is done to avoid each rule needing to do so separately.
-     */
-    lines: string[];
-    /**
-     * The indexes in `text` that each line starts
-     */
-    lineStartIndices: number[];
-    /**
-     * The parser services of this source code.
-     */
-    parserServices?: Partial;
-    /**
-     * The scope of this source code.
-     */
-    scopeManager: Scope.ScopeManager | null;
-    /**
-     * The original text source code. BOM was stripped from this text.
-     */
-    text: string;
-    /**
-     * All of the tokens and comments in the AST.
-     *
-     * TODO: rename to 'tokens'
-     */
-    tokensAndComments: TSESTree.Token[];
-    /**
-     * The visitor keys to traverse AST.
-     */
-    visitorKeys: SourceCode.VisitorKeys;
-    /**
-     * Split the source code into multiple lines based on the line delimiters.
-     * @param text Source code as a string.
-     * @returns Array of source code lines.
-     */
-    static splitLines(text: string): string[];
-}
-declare namespace SourceCode {
-    interface Program extends TSESTree.Program {
-        comments: TSESTree.Comment[];
-        tokens: TSESTree.Token[];
-    }
-    interface SourceCodeConfig {
-        /**
-         * The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped.
-         */
-        ast: Program;
-        /**
-         * The parser services.
-         */
-        parserServices: ParserServices | null;
-        /**
-         * The scope of this source code.
-         */
-        scopeManager: Scope.ScopeManager | null;
-        /**
-         * The source code text.
-         */
-        text: string;
-        /**
-         * The visitor keys to traverse AST.
-         */
-        visitorKeys: VisitorKeys | null;
-    }
-    type VisitorKeys = Parser.VisitorKeys;
-    type FilterPredicate = (token: TSESTree.Token) => boolean;
-    type GetFilterPredicate = Filter extends ((token: TSESTree.Token) => token is infer U extends TSESTree.Token) ? U : Default;
-    type GetFilterPredicateFromOptions = Options extends {
-        filter?: FilterPredicate;
-    } ? GetFilterPredicate : GetFilterPredicate;
-    type ReturnTypeFromOptions = T extends {
-        includeComments: true;
-    } ? GetFilterPredicateFromOptions : GetFilterPredicateFromOptions>;
-    type CursorWithSkipOptions = FilterPredicate | number | {
-        /**
-         * The predicate function to choose tokens.
-         */
-        filter?: FilterPredicate;
-        /**
-         * The flag to iterate comments as well.
-         */
-        includeComments?: boolean;
-        /**
-         * The count of tokens the cursor skips.
-         */
-        skip?: number;
-    };
-    type CursorWithCountOptions = FilterPredicate | number | {
-        /**
-         * The predicate function to choose tokens.
-         */
-        filter?: FilterPredicate;
-        /**
-         * The flag to iterate comments as well.
-         */
-        includeComments?: boolean;
-        /**
-         * The maximum count of tokens the cursor iterates.
-         */
-        count?: number;
-    };
-}
-declare const SourceCode_base: typeof SourceCodeBase;
-declare class SourceCode extends SourceCode_base {
-}
-export { SourceCode };
-//# sourceMappingURL=SourceCode.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map
deleted file mode 100644
index f3e1b62f..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,OAAO,UAAU;IACtB;;;;;OAKG;IACH,oBAAoB,CAClB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO;IACV;;;;OAIG;IACH,gBAAgB,CACd,WAAW,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAC1C,QAAQ,CAAC,OAAO,EAAE;IACrB;;;;OAIG;IACH,iBAAiB,CACf,WAAW,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAC1C,QAAQ,CAAC,OAAO,EAAE;IACrB;;;;OAIG;IACH,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE;IAC1D;;;;;OAKG;IACH,aAAa,CAAC,CAAC,SAAS,UAAU,CAAC,qBAAqB,EACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,OAAO,CAAC,EAAE,CAAC,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I,MAAM,CAAC,SAAS,QAAQ,CAAC,KAAK,CAAC,GACzC,CAAC,GACD,OAAO,CAAC;IACd,KAAY,6BAA6B,CAAC,OAAO,EAAE,OAAO,IACxD,OAAO,SAAS;QAAE,MAAM,CAAC,EAAE,eAAe,CAAA;KAAE,GACxC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,GAC9C,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3C,KAAY,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS;QAAE,eAAe,EAAE,IAAI,CAAA;KAAE,GACtE,6BAA6B,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,GAChD,6BAA6B,CAC3B,CAAC,EACD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAC1C,CAAC;IAEN,KAAY,qBAAqB,GAC7B,eAAe,GACf,MAAM,GACN;QACE;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEN,KAAY,sBAAsB,GAC9B,eAAe,GACf,MAAM,GACN;QACE;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACP;;AAED,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EAAE,UAAU,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js
deleted file mode 100644
index 8e029b15..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js
+++ /dev/null
@@ -1,9 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.SourceCode = void 0;
-const eslint_1 = require("eslint");
-class SourceCode extends eslint_1.SourceCode {
-}
-exports.SourceCode = SourceCode;
-//# sourceMappingURL=SourceCode.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map
deleted file mode 100644
index 485d6cdb..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAwD;AAmcxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAE9D,gCAAU"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts
deleted file mode 100644
index ad471a34..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts
+++ /dev/null
@@ -1,382 +0,0 @@
-import type { Linter } from '../Linter';
-import type { RuleMetaData } from '../Rule';
-export declare class ESLintBase> {
-    /**
-     * Creates a new instance of the main ESLint API.
-     * @param options The options for this instance.
-     */
-    constructor(options?: Options);
-    /**
-     * This method calculates the configuration for a given file, which can be useful for debugging purposes.
-     * - It resolves and merges extends and overrides settings into the top level configuration.
-     * - It resolves the parser setting to absolute paths.
-     * - It normalizes the plugins setting to align short names. (e.g., eslint-plugin-foo → foo)
-     * - It adds the processor setting if a legacy file extension processor is matched.
-     * - It doesn't interpret the env setting to the globals and parserOptions settings, so the result object contains
-     *   the env setting as is.
-     * @param filePath The path to the file whose configuration you would like to calculate. Directory paths are forbidden
-     *                 because ESLint cannot handle the overrides setting.
-     * @returns The promise that will be fulfilled with a configuration object.
-     */
-    calculateConfigForFile(filePath: string): Promise;
-    getRulesMetaForResults(results: LintResult[]): Record>>;
-    /**
-     * This method checks if a given file is ignored by your configuration.
-     * @param filePath The path to the file you want to check.
-     * @returns The promise that will be fulfilled with whether the file is ignored or not. If the file is ignored, then
-     *          it will return true.
-     */
-    isPathIgnored(filePath: string): Promise;
-    /**
-     * This method lints the files that match the glob patterns and then returns the results.
-     * @param patterns The lint target files. This can contain any of file paths, directory paths, and glob patterns.
-     * @returns The promise that will be fulfilled with an array of LintResult objects.
-     */
-    lintFiles(patterns: string[] | string): Promise;
-    /**
-     * This method lints the given source code text and then returns the results.
-     *
-     * By default, this method uses the configuration that applies to files in the current working directory (the cwd
-     * constructor option). If you want to use a different configuration, pass options.filePath, and ESLint will load the
-     * same configuration that eslint.lintFiles() would use for a file at options.filePath.
-     *
-     * If the options.filePath value is configured to be ignored, this method returns an empty array. If the
-     * options.warnIgnored option is set along with the options.filePath option, this method returns a LintResult object.
-     * In that case, the result may contain a warning that indicates the file was ignored.
-     * @param code The source code text to check.
-     * @returns The promise that will be fulfilled with an array of LintResult objects. This is an array (despite there
-     *          being only one lint result) in order to keep the interfaces between this and the eslint.lintFiles()
-     *          method similar.
-     */
-    lintText(code: string, options?: LintTextOptions): Promise;
-    /**
-     * This method loads a formatter. Formatters convert lint results to a human- or machine-readable string.
-     * @param name TThe path to the file you want to check.
-     * The following values are allowed:
-     * - undefined. In this case, loads the "stylish" built-in formatter.
-     * - A name of built-in formatters.
-     * - A name of third-party formatters. For examples:
-     * -- `foo` will load eslint-formatter-foo.
-     * -- `@foo` will load `@foo/eslint-formatter`.
-     * -- `@foo/bar` will load `@foo/eslint-formatter-bar`.
-     * - A path to the file that defines a formatter. The path must contain one or more path separators (/) in order to distinguish if it's a path or not. For example, start with ./.
-     * @returns The promise that will be fulfilled with a Formatter object.
-     */
-    loadFormatter(name?: string): Promise;
-    /**
-     * This method copies the given results and removes warnings. The returned value contains only errors.
-     * @param results The LintResult objects to filter.
-     * @returns The filtered LintResult objects.
-     */
-    static getErrorResults(results: LintResult): LintResult;
-    /**
-     * This method writes code modified by ESLint's autofix feature into its respective file. If any of the modified
-     * files don't exist, this method does nothing.
-     * @param results The LintResult objects to write.
-     * @returns The promise that will be fulfilled after all files are written.
-     */
-    static outputFixes(results: LintResult[]): Promise;
-    /**
-     * The version text.
-     */
-    static readonly version: string;
-    /**
-     * The type of configuration used by this class.
-     */
-    static readonly configType: Linter.ConfigTypeSpecifier;
-}
-export interface ESLintOptions {
-    /**
-     * If false is present, ESLint suppresses directive comments in source code.
-     * If this option is false, it overrides the noInlineConfig setting in your configurations.
-     * @default true
-     */
-    allowInlineConfig?: boolean;
-    /**
-     * Configuration object, extended by all configurations used with this instance.
-     * You can use this option to define the default settings that will be used if your configuration files don't
-     * configure it.
-     * @default null
-     */
-    baseConfig?: Config | null;
-    /**
-     * If `true` is present, the `eslint.lintFiles()` method caches lint results and uses it if each target file is not
-     * changed. Please mind that ESLint doesn't clear the cache when you upgrade ESLint plugins. In that case, you have
-     * to remove the cache file manually. The `eslint.lintText()` method doesn't use caches even if you pass the
-     * options.filePath to the method.
-     * @default false
-     */
-    cache?: boolean;
-    /**
-     * The eslint.lintFiles() method writes caches into this file.
-     * @default '.eslintcache'
-     */
-    cacheLocation?: string;
-    /**
-     * Strategy for the cache to use for detecting changed files.
-     * @default 'metadata'
-     */
-    cacheStrategy?: 'metadata' | 'content';
-    /**
-     * The working directory. This must be an absolute path.
-     * @default process.cwd()
-     */
-    cwd?: string;
-    /**
-     * Unless set to false, the `eslint.lintFiles()` method will throw an error when no target files are found.
-     * @default true
-     */
-    errorOnUnmatchedPattern?: boolean;
-    /**
-     * If `true` is present, the `eslint.lintFiles()` and `eslint.lintText()` methods work in autofix mode.
-     * If a predicate function is present, the methods pass each lint message to the function, then use only the
-     * lint messages for which the function returned true.
-     * @default false
-     */
-    fix?: boolean | ((message: LintMessage) => boolean);
-    /**
-     * The types of the rules that the `eslint.lintFiles()` and `eslint.lintText()` methods use for autofix.
-     * @default null
-     */
-    fixTypes?: ('directive' | 'problem' | 'suggestion')[] | null;
-    /**
-     * If false is present, the `eslint.lintFiles()` method doesn't interpret glob patterns.
-     * @default true
-     */
-    globInputPaths?: boolean;
-    /**
-     * Configuration object, overrides all configurations used with this instance.
-     * You can use this option to define the settings that will be used even if your configuration files configure it.
-     * @default null
-     */
-    overrideConfig?: Config | null;
-    /**
-     * When set to true, missing patterns cause the linting operation to short circuit and not report any failures.
-     * @default false
-     */
-    passOnNoPatterns?: boolean;
-    /**
-     * The plugin implementations that ESLint uses for the plugins setting of your configuration.
-     * This is a map-like object. Those keys are plugin IDs and each value is implementation.
-     * @default null
-     */
-    plugins?: Record | null;
-}
-export interface DeprecatedRuleInfo {
-    /**
-     *  The rule ID.
-     */
-    ruleId: string;
-    /**
-     *  The rule IDs that replace this deprecated rule.
-     */
-    replacedBy: string[];
-}
-/**
- * The LintResult value is the information of the linting result of each file.
- */
-export interface LintResult {
-    /**
-     * The number of errors. This includes fixable errors.
-     */
-    errorCount: number;
-    /**
-     * The number of fatal errors.
-     */
-    fatalErrorCount: number;
-    /**
-     * The absolute path to the file of this result. This is the string "" if the file path is unknown (when you
-     * didn't pass the options.filePath option to the eslint.lintText() method).
-     */
-    filePath: string;
-    /**
-     * The number of errors that can be fixed automatically by the fix constructor option.
-     */
-    fixableErrorCount: number;
-    /**
-     * The number of warnings that can be fixed automatically by the fix constructor option.
-     */
-    fixableWarningCount: number;
-    /**
-     * The array of LintMessage objects.
-     */
-    messages: LintMessage[];
-    /**
-     * The source code of the file that was linted, with as many fixes applied as possible.
-     */
-    output?: string;
-    /**
-     * The original source code text. This property is undefined if any messages didn't exist or the output
-     * property exists.
-     */
-    source?: string;
-    /**
-     * The array of SuppressedLintMessage objects.
-     */
-    suppressedMessages: SuppressedLintMessage[];
-    /**
-     * The information about the deprecated rules that were used to check this file.
-     */
-    usedDeprecatedRules: DeprecatedRuleInfo[];
-    /**
-     * The number of warnings. This includes fixable warnings.
-     */
-    warningCount: number;
-    /**
-     * Timing information of the lint run.
-     * This exists if and only if the `--stats` CLI flag was added or the `stats: true`
-     * option was passed to the ESLint class
-     * @since 9.0.0
-     */
-    stats?: LintStats;
-}
-export interface LintStats {
-    /**
-     * The number of times ESLint has applied at least one fix after linting.
-     */
-    fixPasses: number;
-    /**
-     * The times spent on (parsing, fixing, linting) a file, where the linting refers to the timing information for each rule.
-     */
-    times: {
-        passes: LintStatsTimePass[];
-    };
-}
-export interface LintStatsTimePass {
-    /**
-     * The total time that is spent when parsing a file.
-     */
-    parse: LintStatsParseTime;
-    /**
-     * The total time that is spent on a rule.
-     */
-    rules?: Record;
-    /**
-     * The total time that is spent on applying fixes to the code.
-     */
-    fix: LintStatsFixTime;
-    /**
-     * The cumulative total
-     */
-    total: number;
-}
-export interface LintStatsParseTime {
-    total: number;
-}
-export interface LintStatsRuleTime {
-    total: number;
-}
-export interface LintStatsFixTime {
-    total: number;
-}
-export interface LintTextOptions {
-    /**
-     * The path to the file of the source code text. If omitted, the result.filePath becomes the string "".
-     */
-    filePath?: string;
-    /**
-     * If true is present and the options.filePath is a file ESLint should ignore, this method returns a lint result
-     * contains a warning message.
-     */
-    warnIgnored?: boolean;
-}
-/**
- * The LintMessage value is the information of each linting error.
- */
-export interface LintMessage {
-    /**
-     * The 1-based column number of the begin point of this message.
-     */
-    column: number | undefined;
-    /**
-     * The 1-based column number of the end point of this message. This property is undefined if this message
-     * is not a range.
-     */
-    endColumn: number | undefined;
-    /**
-     * The 1-based line number of the end point of this message. This property is undefined if this
-     * message is not a range.
-     */
-    endLine: number | undefined;
-    /**
-     * `true` if this is a fatal error unrelated to a rule, like a parsing error.
-     */
-    fatal?: boolean | undefined;
-    /**
-     * The EditInfo object of autofix. This property is undefined if this message is not fixable.
-     */
-    fix: EditInfo | undefined;
-    /**
-     * The 1-based line number of the begin point of this message.
-     */
-    line: number | undefined;
-    /**
-     * The error message
-     */
-    message: string;
-    /**
-     * The rule name that generates this lint message. If this message is generated by the ESLint core rather than
-     * rules, this is null.
-     */
-    ruleId: string | null;
-    /**
-     * The severity of this message. 1 means warning and 2 means error.
-     */
-    severity: 1 | 2;
-    /**
-     * The list of suggestions. Each suggestion is the pair of a description and an EditInfo object to fix code. API
-     * users such as editor integrations can choose one of them to fix the problem of this message. This property is
-     * undefined if this message doesn't have any suggestions.
-     */
-    suggestions: {
-        desc: string;
-        fix: EditInfo;
-    }[] | undefined;
-}
-/**
- * The SuppressedLintMessage value is the information of each suppressed linting error.
- */
-export interface SuppressedLintMessage extends LintMessage {
-    /**
-     * The list of suppressions.
-     */
-    suppressions?: {
-        /**
-         * Right now, this is always `directive`
-         */
-        kind: string;
-        /**
-         * The free text description added after the `--` in the comment
-         */
-        justification: string;
-    }[];
-}
-/**
- * The EditInfo value is information to edit text.
- *
- * This edit information means replacing the range of the range property by the text property value. It's like
- * sourceCodeText.slice(0, edit.range[0]) + edit.text + sourceCodeText.slice(edit.range[1]). Therefore, it's an add
- * if the range[0] and range[1] property values are the same value, and it's removal if the text property value is
- * empty string.
- */
-export interface EditInfo {
-    /**
-     * The pair of 0-based indices in source code text to remove.
-     */
-    range: [number, number];
-    /**
-     * The text to add.
-     */
-    text: string;
-}
-/**
- * The Formatter value is the object to convert the LintResult objects to text.
- */
-export interface Formatter {
-    /**
-     * The method to convert the LintResult objects to text.
-     * Promise return supported since 8.4.0
-     */
-    format(results: LintResult[]): Promise | string;
-}
-//# sourceMappingURL=ESLintShared.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.ts.map
deleted file mode 100644
index a34d9ab1..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.d.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ript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js
deleted file mode 100644
index 09d9a311..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-//# sourceMappingURL=ESLintShared.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map
deleted file mode 100644
index 02869193..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ESLintShared.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/ESLintShared.ts"],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts
deleted file mode 100644
index 8059e638..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-import type { FlatConfig } from '../Config';
-import type * as Shared from './ESLintShared';
-declare class FlatESLintBase extends Shared.ESLintBase {
-    static readonly configType: 'flat';
-    /**
-     * Returns a configuration object for the given file based on the CLI options.
-     * This is the same logic used by the ESLint CLI executable to determine
-     * configuration for each file it processes.
-     * @param filePath The path of the file to retrieve a config object for.
-     * @returns A configuration object for the file or `undefined` if there is no configuration data for the object.
-     */
-    calculateConfigForFile(filePath: string): Promise;
-    /**
-     * Finds the config file being used by this instance based on the options
-     * passed to the constructor.
-     * @returns The path to the config file being used or `undefined` if no config file is being used.
-     */
-    findConfigFile(): Promise;
-}
-declare const FlatESLint_base: typeof FlatESLintBase;
-/**
- * The ESLint class is the primary class to use in Node.js applications.
- * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
- *
- * If you want to lint code on browsers, use the Linter class instead.
- */
-export declare class FlatESLint extends FlatESLint_base {
-}
-export declare namespace FlatESLint {
-    interface ESLintOptions extends Shared.ESLintOptions {
-        /**
-         * If false is present, the eslint.lintFiles() method doesn't respect `ignorePatterns` ignorePatterns in your configuration.
-         * @default true
-         */
-        ignore?: boolean;
-        /**
-         * Ignore file patterns to use in addition to config ignores. These patterns are relative to cwd.
-         * @default null
-         */
-        ignorePatterns?: string[] | null;
-        /**
-         * The path to a configuration file, overrides all configurations used with this instance.
-         * The options.overrideConfig option is applied after this option is applied.
-         * Searches for default config file when falsy; doesn't do any config file lookup when `true`; considered to be a config filename when a string.
-         * @default false
-         */
-        overrideConfigFile?: string | boolean;
-        /**
-         * A predicate function that filters rules to be run.
-         * This function is called with an object containing `ruleId` and `severity`, and returns `true` if the rule should be run.
-         * @default () => true
-         */
-        ruleFilter?: RuleFilter;
-        /**
-         * When set to true, additional statistics are added to the lint results.
-         * @see {@link https://eslint.org/docs/latest/extend/stats}
-         * @default false
-         */
-        stats?: boolean;
-        /**
-         * Show warnings when the file list includes ignored files.
-         * @default true
-         */
-        warnIgnored?: boolean;
-    }
-    type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo;
-    type EditInfo = Shared.EditInfo;
-    type Formatter = Shared.Formatter;
-    type LintMessage = Shared.LintMessage;
-    type LintResult = Shared.LintResult;
-    type LintStats = Shared.LintStats;
-    type LintStatsFixTime = Shared.LintStatsFixTime;
-    type LintStatsParseTime = Shared.LintStatsParseTime;
-    type LintStatsRuleTime = Shared.LintStatsRuleTime;
-    type LintStatsTimePass = Shared.LintStatsTimePass;
-    type LintTextOptions = Shared.LintTextOptions;
-    type SuppressedLintMessage = Shared.SuppressedLintMessage;
-    type RuleFilter = (rule: {
-        ruleId: string;
-        severity: number;
-    }) => boolean;
-}
-export {};
-//# sourceMappingURL=FlatESLint.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map
deleted file mode 100644
index 62e39f7d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FlatESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,cAAe,SAAQ,MAAM,CAAC,UAAU,CACpD,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,aAAa,CACzB;IACC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAEnC;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;IAEzE;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAC9C;;AAED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,eAA2C;CAAG;AAC9E,yBAAiB,UAAU,CAAC;IAC1B,UAAiB,aACf,SAAQ,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC;QACpD;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACjC;;;;;WAKG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QACtC;;;;WAIG;QACH,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB;;;;WAIG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IACD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7C,KAAY,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3C,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACvD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACzD,KAAY,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACzD,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACjE,KAAY,UAAU,GAAG,CAAC,IAAI,EAAE;QAC9B,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,KAAK,OAAO,CAAC;CACf"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js
deleted file mode 100644
index 1add2c67..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.FlatESLint = void 0;
-/* eslint-disable @typescript-eslint/no-namespace */
-const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk");
-/**
- * The ESLint class is the primary class to use in Node.js applications.
- * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
- *
- * If you want to lint code on browsers, use the Linter class instead.
- */
-class FlatESLint extends use_at_your_own_risk_1.FlatESLint {
-}
-exports.FlatESLint = FlatESLint;
-//# sourceMappingURL=FlatESLint.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map
deleted file mode 100644
index ee314e19..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FlatESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/FlatESLint.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,sEAA6E;AA6B7E;;;;;GAKG;AACH,MAAa,UAAW,SAAS,iCAA0C;CAAG;AAA9E,gCAA8E"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts
deleted file mode 100644
index 698c0120..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-import type { ClassicConfig } from '../Config';
-import type { Linter } from '../Linter';
-import type * as Shared from './ESLintShared';
-declare class LegacyESLintBase extends Shared.ESLintBase {
-    static readonly configType: 'eslintrc';
-}
-declare const LegacyESLint_base: typeof LegacyESLintBase;
-/**
- * The ESLint class is the primary class to use in Node.js applications.
- * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
- *
- * If you want to lint code on browsers, use the Linter class instead.
- */
-export declare class LegacyESLint extends LegacyESLint_base {
-}
-export declare namespace LegacyESLint {
-    interface ESLintOptions extends Shared.ESLintOptions {
-        /**
-         * If you pass directory paths to the eslint.lintFiles() method, ESLint checks the files in those directories that
-         * have the given extensions. For example, when passing the src/ directory and extensions is [".js", ".ts"], ESLint
-         * will lint *.js and *.ts files in src/. If extensions is null, ESLint checks *.js files and files that match
-         * overrides[].files patterns in your configuration.
-         * Note: This option only applies when you pass directory paths to the eslint.lintFiles() method.
-         * If you pass glob patterns, ESLint will lint all files matching the glob pattern regardless of extension.
-         */
-        extensions?: string[] | null;
-        /**
-         * If false is present, the eslint.lintFiles() method doesn't respect `.eslintignore` files in your configuration.
-         * @default true
-         */
-        ignore?: boolean;
-        /**
-         * The path to a file ESLint uses instead of `$CWD/.eslintignore`.
-         * If a path is present and the file doesn't exist, this constructor will throw an error.
-         */
-        ignorePath?: string;
-        /**
-         * The path to a configuration file, overrides all configurations used with this instance.
-         * The options.overrideConfig option is applied after this option is applied.
-         */
-        overrideConfigFile?: string | null;
-        /**
-         * The severity to report unused eslint-disable directives.
-         * If this option is a severity, it overrides the reportUnusedDisableDirectives setting in your configurations.
-         */
-        reportUnusedDisableDirectives?: Linter.SeverityString | null;
-        /**
-         * The path to a directory where plugins should be resolved from.
-         * If null is present, ESLint loads plugins from the location of the configuration file that contains the plugin
-         * setting.
-         * If a path is present, ESLint loads all plugins from there.
-         */
-        resolvePluginsRelativeTo?: string | null;
-        /**
-         * An array of paths to directories to load custom rules from.
-         */
-        rulePaths?: string[];
-        /**
-         * If false is present, ESLint doesn't load configuration files (.eslintrc.* files).
-         * Only the configuration of the constructor options is valid.
-         */
-        useEslintrc?: boolean;
-    }
-    type DeprecatedRuleInfo = Shared.DeprecatedRuleInfo;
-    type EditInfo = Shared.EditInfo;
-    type Formatter = Shared.Formatter;
-    type LintMessage = Shared.LintMessage;
-    type LintResult = Omit;
-    type LintTextOptions = Shared.LintTextOptions;
-    type SuppressedLintMessage = Shared.SuppressedLintMessage;
-}
-export {};
-//# sourceMappingURL=LegacyESLint.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map
deleted file mode 100644
index 6fd8962d..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"LegacyESLint.d.ts","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAG9C,OAAO,OAAO,gBAAiB,SAAQ,MAAM,CAAC,UAAU,CACtD,aAAa,CAAC,MAAM,EACpB,YAAY,CAAC,aAAa,CAC3B;IACC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACxC;;AAED;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,iBAA+C;CAAG;AACpF,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,aACf,SAAQ,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC;QAClD;;;;;;;WAOG;QACH,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAC7B;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC;;;WAGG;QACH,6BAA6B,CAAC,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;QAC7D;;;;;WAKG;QACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACzC;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IACD,KAAY,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAC3D,KAAY,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACzC,KAAY,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7C,KAAY,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1D,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;CAClE"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js
deleted file mode 100644
index 88f281e1..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-namespace */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.LegacyESLint = void 0;
-const use_at_your_own_risk_1 = require("eslint/use-at-your-own-risk");
-/**
- * The ESLint class is the primary class to use in Node.js applications.
- * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
- *
- * If you want to lint code on browsers, use the Linter class instead.
- */
-class LegacyESLint extends use_at_your_own_risk_1.LegacyESLint {
-}
-exports.LegacyESLint = LegacyESLint;
-//# sourceMappingURL=LegacyESLint.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map
deleted file mode 100644
index 69aa943a..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"LegacyESLint.js","sourceRoot":"","sources":["../../../src/ts-eslint/eslint/LegacyESLint.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,sEAAiF;AAcjF;;;;;GAKG;AACH,MAAa,YAAa,SAAS,mCAA8C;CAAG;AAApF,oCAAoF"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts
deleted file mode 100644
index 17edebe9..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export * from './AST';
-export * from './Config';
-export * from './ESLint';
-export * from './Linter';
-export * from './Parser';
-export * from './ParserOptions';
-export * from './Processor';
-export * from './Rule';
-export * from './RuleTester';
-export * from './Scope';
-export * from './SourceCode';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map
deleted file mode 100644
index 31ec4265..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js
deleted file mode 100644
index 85b7e5cf..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./AST"), exports);
-__exportStar(require("./Config"), exports);
-__exportStar(require("./ESLint"), exports);
-__exportStar(require("./Linter"), exports);
-__exportStar(require("./Parser"), exports);
-__exportStar(require("./ParserOptions"), exports);
-__exportStar(require("./Processor"), exports);
-__exportStar(require("./Rule"), exports);
-__exportStar(require("./RuleTester"), exports);
-__exportStar(require("./Scope"), exports);
-__exportStar(require("./SourceCode"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map
deleted file mode 100644
index b7821e91..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,8CAA4B;AAC5B,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts
deleted file mode 100644
index 38141d7c..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types';
-export type { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, } from '@typescript-eslint/typescript-estree';
-//# sourceMappingURL=ts-estree.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map
deleted file mode 100644
index 4d88befa..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,cAAc,EACd,iCAAiC,EACjC,oCAAoC,GACrC,MAAM,sCAAsC,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js
deleted file mode 100644
index 4a32e9c8..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-// for convenience's sake - export the types directly from here so consumers
-// don't need to reference/install both packages in their code
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
-var types_1 = require("@typescript-eslint/types");
-Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } });
-Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } });
-Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } });
-//# sourceMappingURL=ts-estree.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map
deleted file mode 100644
index 4806a284..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8DAA8D;;;AAE9D,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts
deleted file mode 100644
index 983075f5..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './isArray';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map
deleted file mode 100644
index 90b12be2..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js
deleted file mode 100644
index 648cb0cd..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
-    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-__exportStar(require("./isArray"), exports);
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map
deleted file mode 100644
index 7530597e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts
deleted file mode 100644
index ddefcee8..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare function isArray(arg: unknown): arg is readonly unknown[];
-//# sourceMappingURL=isArray.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map
deleted file mode 100644
index 55264f27..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"isArray.d.ts","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":"AACA,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,OAAO,EAAE,CAE/D"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js
deleted file mode 100644
index 92a7237e..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isArray = isArray;
-// https://github.com/microsoft/TypeScript/issues/17002
-function isArray(arg) {
-    return Array.isArray(arg);
-}
-//# sourceMappingURL=isArray.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map b/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map
deleted file mode 100644
index ea8aabab..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":";;AACA,0BAEC;AAHD,uDAAuD;AACvD,SAAgB,OAAO,CAAC,GAAY;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/utils/package.json b/graphql/node_modules/@typescript-eslint/utils/package.json
deleted file mode 100644
index 7beaac16..00000000
--- a/graphql/node_modules/@typescript-eslint/utils/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
-  "name": "@typescript-eslint/utils",
-  "version": "8.1.0",
-  "description": "Utilities for working with TypeScript + ESLint together",
-  "files": [
-    "dist",
-    "_ts4.3",
-    "package.json",
-    "README.md",
-    "LICENSE"
-  ],
-  "type": "commonjs",
-  "exports": {
-    ".": {
-      "types": "./dist/index.d.ts",
-      "default": "./dist/index.js"
-    },
-    "./ast-utils": {
-      "types": "./dist/ast-utils/index.d.ts",
-      "default": "./dist/ast-utils/index.js"
-    },
-    "./eslint-utils": {
-      "types": "./dist/eslint-utils/index.d.ts",
-      "default": "./dist/eslint-utils/index.js"
-    },
-    "./json-schema": {
-      "types": "./dist/json-schema.d.ts",
-      "default": "./dist/json-schema.js"
-    },
-    "./ts-eslint": {
-      "types": "./dist/ts-eslint/index.d.ts",
-      "default": "./dist/ts-eslint/index.js"
-    },
-    "./package.json": "./package.json"
-  },
-  "types": "./dist/index.d.ts",
-  "engines": {
-    "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/typescript-eslint/typescript-eslint.git",
-    "directory": "packages/utils"
-  },
-  "bugs": {
-    "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
-  },
-  "homepage": "https://typescript-eslint.io/packages/utils",
-  "license": "MIT",
-  "keywords": [
-    "eslint",
-    "typescript",
-    "estree"
-  ],
-  "scripts": {
-    "build": "tsc -b tsconfig.build.json",
-    "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
-    "clean": "tsc -b tsconfig.build.json --clean",
-    "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
-    "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
-    "lint": "npx nx lint",
-    "test": "jest --coverage",
-    "typecheck": "tsc --noEmit"
-  },
-  "dependencies": {
-    "@eslint-community/eslint-utils": "^4.4.0",
-    "@typescript-eslint/scope-manager": "8.1.0",
-    "@typescript-eslint/types": "8.1.0",
-    "@typescript-eslint/typescript-estree": "8.1.0"
-  },
-  "peerDependencies": {
-    "eslint": "^8.57.0 || ^9.0.0"
-  },
-  "devDependencies": {
-    "downlevel-dts": "*",
-    "jest": "29.7.0",
-    "prettier": "^3.2.5",
-    "rimraf": "*",
-    "typescript": "*"
-  },
-  "funding": {
-    "type": "opencollective",
-    "url": "https://opencollective.com/typescript-eslint"
-  },
-  "typesVersions": {
-    "<4.7": {
-      "*": [
-        "_ts4.3/*"
-      ]
-    }
-  }
-}
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/LICENSE b/graphql/node_modules/@typescript-eslint/visitor-keys/LICENSE
deleted file mode 100644
index a1164108..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2019 typescript-eslint and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/README.md b/graphql/node_modules/@typescript-eslint/visitor-keys/README.md
deleted file mode 100644
index 1745172a..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# `@typescript-eslint/visitor-keys`
-
-> Visitor keys used to help traverse the TypeScript-ESTree AST.
-
-## ✋ Internal Package
-
-This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint).
-You likely don't want to use it directly.
-
-👉 See **https://typescript-eslint.io** for docs on typescript-eslint.
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts
deleted file mode 100644
index 344a7c42..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import type { TSESTree } from '@typescript-eslint/types';
-declare const getKeys: (node: TSESTree.Node) => readonly string[];
-export { getKeys };
-//# sourceMappingURL=get-keys.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map
deleted file mode 100644
index 69e629d3..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"get-keys.d.ts","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,QAAA,MAAM,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS,MAAM,EAAoB,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js
deleted file mode 100644
index 309b72b9..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getKeys = void 0;
-const eslint_visitor_keys_1 = require("eslint-visitor-keys");
-const getKeys = eslint_visitor_keys_1.getKeys;
-exports.getKeys = getKeys;
-//# sourceMappingURL=get-keys.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map
deleted file mode 100644
index 153ab38c..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"get-keys.js","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":";;;AACA,6DAAiE;AAEjE,MAAM,OAAO,GAA+C,6BAAe,CAAC;AAEnE,0BAAO"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts
deleted file mode 100644
index 895ff52b..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export { getKeys } from './get-keys';
-export { visitorKeys, VisitorKeys } from './visitor-keys';
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map
deleted file mode 100644
index 393a7067..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js
deleted file mode 100644
index a5b4b62a..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.visitorKeys = exports.getKeys = void 0;
-var get_keys_1 = require("./get-keys");
-Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return get_keys_1.getKeys; } });
-var visitor_keys_1 = require("./visitor-keys");
-Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map
deleted file mode 100644
index 5f74496f..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,+CAA0D;AAAjD,2GAAA,WAAW,OAAA"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts
deleted file mode 100644
index d37b01f5..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-type VisitorKeys = Record;
-declare const visitorKeys: VisitorKeys;
-export { visitorKeys, VisitorKeys };
-//# sourceMappingURL=visitor-keys.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map
deleted file mode 100644
index 5861fcdb..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"visitor-keys.d.ts","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;AAiRjE,QAAA,MAAM,WAAW,EAAE,WAAyD,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js
deleted file mode 100644
index 0ef3a483..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js
+++ /dev/null
@@ -1,191 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    var desc = Object.getOwnPropertyDescriptor(m, k);
-    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
-      desc = { enumerable: true, get: function() { return m[k]; } };
-    }
-    Object.defineProperty(o, k2, desc);
-}) : (function(o, m, k, k2) {
-    if (k2 === undefined) k2 = k;
-    o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
-    Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
-    o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
-    __setModuleDefault(result, mod);
-    return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.visitorKeys = void 0;
-const eslintVisitorKeys = __importStar(require("eslint-visitor-keys"));
-/*
- ********************************** IMPORTANT NOTE ********************************
- *                                                                                *
- * The key arrays should be sorted in the order in which you would want to visit  *
- * the child keys.                                                                *
- *                                                                                *
- *                        DO NOT SORT THEM ALPHABETICALLY!                        *
- *                                                                                *
- * They should be sorted in the order that they appear in the source code.        *
- * For example:                                                                   *
- *                                                                                *
- * class Foo extends Bar { prop: 1 }                                              *
- * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ClassDeclaration                             *
- *       ^^^ id      ^^^ superClass                                               *
- *                       ^^^^^^^^^^^ body                                         *
- *                                                                                *
- * It would be incorrect to provide the visitor keys ['body', 'id', 'superClass'] *
- * because the body comes AFTER everything else in the source code.               *
- * Instead the correct ordering would be ['id', 'superClass', 'body'].            *
- *                                                                                *
- **********************************************************************************
- */
-const SharedVisitorKeys = (() => {
-    const FunctionType = ['typeParameters', 'params', 'returnType'];
-    const AnonymousFunction = [...FunctionType, 'body'];
-    const AbstractPropertyDefinition = [
-        'decorators',
-        'key',
-        'typeAnnotation',
-    ];
-    return {
-        AnonymousFunction,
-        Function: ['id', ...AnonymousFunction],
-        FunctionType,
-        ClassDeclaration: [
-            'decorators',
-            'id',
-            'typeParameters',
-            'superClass',
-            'superTypeArguments',
-            'implements',
-            'body',
-        ],
-        AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'],
-        PropertyDefinition: [...AbstractPropertyDefinition, 'value'],
-        TypeAssertion: ['expression', 'typeAnnotation'],
-    };
-})();
-const additionalKeys = {
-    AccessorProperty: SharedVisitorKeys.PropertyDefinition,
-    ArrayPattern: ['decorators', 'elements', 'typeAnnotation'],
-    ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction,
-    AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'],
-    CallExpression: ['callee', 'typeArguments', 'arguments'],
-    ClassDeclaration: SharedVisitorKeys.ClassDeclaration,
-    ClassExpression: SharedVisitorKeys.ClassDeclaration,
-    Decorator: ['expression'],
-    ExportAllDeclaration: ['exported', 'source', 'assertions'],
-    ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'],
-    FunctionDeclaration: SharedVisitorKeys.Function,
-    FunctionExpression: SharedVisitorKeys.Function,
-    Identifier: ['decorators', 'typeAnnotation'],
-    ImportAttribute: ['key', 'value'],
-    ImportDeclaration: ['specifiers', 'source', 'assertions'],
-    ImportExpression: ['source', 'attributes'],
-    JSXClosingFragment: [],
-    JSXOpeningElement: ['name', 'typeArguments', 'attributes'],
-    JSXOpeningFragment: [],
-    JSXSpreadChild: ['expression'],
-    MethodDefinition: ['decorators', 'key', 'value'],
-    NewExpression: ['callee', 'typeArguments', 'arguments'],
-    ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
-    PropertyDefinition: SharedVisitorKeys.PropertyDefinition,
-    RestElement: ['decorators', 'argument', 'typeAnnotation'],
-    StaticBlock: ['body'],
-    TaggedTemplateExpression: ['tag', 'typeArguments', 'quasi'],
-    TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition,
-    TSAbstractKeyword: [],
-    TSAbstractMethodDefinition: ['key', 'value'],
-    TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition,
-    TSAnyKeyword: [],
-    TSArrayType: ['elementType'],
-    TSAsExpression: SharedVisitorKeys.TypeAssertion,
-    TSAsyncKeyword: [],
-    TSBigIntKeyword: [],
-    TSBooleanKeyword: [],
-    TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType,
-    TSClassImplements: ['expression', 'typeArguments'],
-    TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'],
-    TSConstructorType: SharedVisitorKeys.FunctionType,
-    TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType,
-    TSDeclareFunction: SharedVisitorKeys.Function,
-    TSDeclareKeyword: [],
-    TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType],
-    TSEnumBody: ['members'],
-    TSEnumDeclaration: ['id', 'body'],
-    TSEnumMember: ['id', 'initializer'],
-    TSExportAssignment: ['expression'],
-    TSExportKeyword: [],
-    TSExternalModuleReference: ['expression'],
-    TSFunctionType: SharedVisitorKeys.FunctionType,
-    TSImportEqualsDeclaration: ['id', 'moduleReference'],
-    TSImportType: ['argument', 'qualifier', 'typeArguments'],
-    TSIndexedAccessType: ['indexType', 'objectType'],
-    TSIndexSignature: ['parameters', 'typeAnnotation'],
-    TSInferType: ['typeParameter'],
-    TSInstantiationExpression: ['expression', 'typeArguments'],
-    TSInterfaceBody: ['body'],
-    TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'],
-    TSInterfaceHeritage: ['expression', 'typeArguments'],
-    TSIntersectionType: ['types'],
-    TSIntrinsicKeyword: [],
-    TSLiteralType: ['literal'],
-    TSMappedType: ['key', 'constraint', 'nameType', 'typeAnnotation'],
-    TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'],
-    TSModuleBlock: ['body'],
-    TSModuleDeclaration: ['id', 'body'],
-    TSNamedTupleMember: ['label', 'elementType'],
-    TSNamespaceExportDeclaration: ['id'],
-    TSNeverKeyword: [],
-    TSNonNullExpression: ['expression'],
-    TSNullKeyword: [],
-    TSNumberKeyword: [],
-    TSObjectKeyword: [],
-    TSOptionalType: ['typeAnnotation'],
-    TSParameterProperty: ['decorators', 'parameter'],
-    TSPrivateKeyword: [],
-    TSPropertySignature: ['typeAnnotation', 'key'],
-    TSProtectedKeyword: [],
-    TSPublicKeyword: [],
-    TSQualifiedName: ['left', 'right'],
-    TSReadonlyKeyword: [],
-    TSRestType: ['typeAnnotation'],
-    TSSatisfiesExpression: [
-        // this is intentionally different to SharedVisitorKeys.TypeAssertion because
-        // the type annotation comes first in the source code
-        'typeAnnotation',
-        'expression',
-    ],
-    TSStaticKeyword: [],
-    TSStringKeyword: [],
-    TSSymbolKeyword: [],
-    TSTemplateLiteralType: ['quasis', 'types'],
-    TSThisType: [],
-    TSTupleType: ['elementTypes'],
-    TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'],
-    TSTypeAnnotation: ['typeAnnotation'],
-    TSTypeAssertion: SharedVisitorKeys.TypeAssertion,
-    TSTypeLiteral: ['members'],
-    TSTypeOperator: ['typeAnnotation'],
-    TSTypeParameter: ['name', 'constraint', 'default'],
-    TSTypeParameterDeclaration: ['params'],
-    TSTypeParameterInstantiation: ['params'],
-    TSTypePredicate: ['typeAnnotation', 'parameterName'],
-    TSTypeQuery: ['exprName', 'typeArguments'],
-    TSTypeReference: ['typeName', 'typeArguments'],
-    TSUndefinedKeyword: [],
-    TSUnionType: ['types'],
-    TSUnknownKeyword: [],
-    TSVoidKeyword: [],
-};
-const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys);
-exports.visitorKeys = visitorKeys;
-//# sourceMappingURL=visitor-keys.js.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map b/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map
deleted file mode 100644
index fde1fe0b..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uEAAyD;AA4GzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;IACzE,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,EAAE,MAAM,CAAU,C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,QAAQ,CAAC;IACxC,eAAe,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACpD,WAAW,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC1C,eAAe,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC;IAC9C,kBAAkB,EAAE,EAAE;IACtB,WAAW,EAAE,CAAC,OAAO,CAAC;IACtB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,WAAW,GAAgB,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAEpE,kCAAW"}
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/LICENSE b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/LICENSE
deleted file mode 100644
index 17a25538..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "{}"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright contributors
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/README.md b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/README.md
deleted file mode 100644
index cab81032..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/README.md
+++ /dev/null
@@ -1,105 +0,0 @@
-# eslint-visitor-keys
-
-[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys)
-[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys)
-[![Build Status](https://github.com/eslint/eslint-visitor-keys/workflows/CI/badge.svg)](https://github.com/eslint/eslint-visitor-keys/actions)
-
-Constants and utilities about visitor keys to traverse AST.
-
-## 💿 Installation
-
-Use [npm] to install.
-
-```bash
-$ npm install eslint-visitor-keys
-```
-
-### Requirements
-
-- [Node.js] `^12.22.0`, `^14.17.0`, or `>=16.0.0`
-
-
-## 📖 Usage
-
-To use in an ESM file:
-
-```js
-import * as evk from "eslint-visitor-keys"
-```
-
-To use in a CommonJS file:
-
-```js
-const evk = require("eslint-visitor-keys")
-```
-
-### evk.KEYS
-
-> type: `{ [type: string]: string[] | undefined }`
-
-Visitor keys. This keys are frozen.
-
-This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes.
-
-For example:
-
-```
-console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"]
-```
-
-### evk.getKeys(node)
-
-> type: `(node: object) => string[]`
-
-Get the visitor keys of a given AST node.
-
-This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`.
-
-This will be used to traverse unknown nodes.
-
-For example:
-
-```js
-const node = {
-    type: "AssignmentExpression",
-    left: { type: "Identifier", name: "foo" },
-    right: { type: "Literal", value: 0 }
-}
-console.log(evk.getKeys(node)) // → ["type", "left", "right"]
-```
-
-### evk.unionWith(additionalKeys)
-
-> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }`
-
-Make the union set with `evk.KEYS` and the given keys.
-
-- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that.
-- It removes duplicated keys as keeping the first one.
-
-For example:
-
-```js
-console.log(evk.unionWith({
-    MethodDefinition: ["decorators"]
-})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... }
-```
-
-## 📰 Change log
-
-See [GitHub releases](https://github.com/eslint/eslint-visitor-keys/releases).
-
-## 🍻 Contributing
-
-Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/).
-
-### Development commands
-
-- `npm test` runs tests and measures code coverage.
-- `npm run lint` checks source codes with ESLint.
-- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser.
-
-
-[npm]: https://www.npmjs.com/
-[Node.js]: https://nodejs.org/
-[ESTree]: https://github.com/estree/estree
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
deleted file mode 100644
index 00f91bcc..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
+++ /dev/null
@@ -1,384 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-/**
- * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
- */
-
-/**
- * @type {VisitorKeys}
- */
-const KEYS = {
-    ArrayExpression: [
-        "elements"
-    ],
-    ArrayPattern: [
-        "elements"
-    ],
-    ArrowFunctionExpression: [
-        "params",
-        "body"
-    ],
-    AssignmentExpression: [
-        "left",
-        "right"
-    ],
-    AssignmentPattern: [
-        "left",
-        "right"
-    ],
-    AwaitExpression: [
-        "argument"
-    ],
-    BinaryExpression: [
-        "left",
-        "right"
-    ],
-    BlockStatement: [
-        "body"
-    ],
-    BreakStatement: [
-        "label"
-    ],
-    CallExpression: [
-        "callee",
-        "arguments"
-    ],
-    CatchClause: [
-        "param",
-        "body"
-    ],
-    ChainExpression: [
-        "expression"
-    ],
-    ClassBody: [
-        "body"
-    ],
-    ClassDeclaration: [
-        "id",
-        "superClass",
-        "body"
-    ],
-    ClassExpression: [
-        "id",
-        "superClass",
-        "body"
-    ],
-    ConditionalExpression: [
-        "test",
-        "consequent",
-        "alternate"
-    ],
-    ContinueStatement: [
-        "label"
-    ],
-    DebuggerStatement: [],
-    DoWhileStatement: [
-        "body",
-        "test"
-    ],
-    EmptyStatement: [],
-    ExperimentalRestProperty: [
-        "argument"
-    ],
-    ExperimentalSpreadProperty: [
-        "argument"
-    ],
-    ExportAllDeclaration: [
-        "exported",
-        "source"
-    ],
-    ExportDefaultDeclaration: [
-        "declaration"
-    ],
-    ExportNamedDeclaration: [
-        "declaration",
-        "specifiers",
-        "source"
-    ],
-    ExportSpecifier: [
-        "exported",
-        "local"
-    ],
-    ExpressionStatement: [
-        "expression"
-    ],
-    ForInStatement: [
-        "left",
-        "right",
-        "body"
-    ],
-    ForOfStatement: [
-        "left",
-        "right",
-        "body"
-    ],
-    ForStatement: [
-        "init",
-        "test",
-        "update",
-        "body"
-    ],
-    FunctionDeclaration: [
-        "id",
-        "params",
-        "body"
-    ],
-    FunctionExpression: [
-        "id",
-        "params",
-        "body"
-    ],
-    Identifier: [],
-    IfStatement: [
-        "test",
-        "consequent",
-        "alternate"
-    ],
-    ImportDeclaration: [
-        "specifiers",
-        "source"
-    ],
-    ImportDefaultSpecifier: [
-        "local"
-    ],
-    ImportExpression: [
-        "source"
-    ],
-    ImportNamespaceSpecifier: [
-        "local"
-    ],
-    ImportSpecifier: [
-        "imported",
-        "local"
-    ],
-    JSXAttribute: [
-        "name",
-        "value"
-    ],
-    JSXClosingElement: [
-        "name"
-    ],
-    JSXClosingFragment: [],
-    JSXElement: [
-        "openingElement",
-        "children",
-        "closingElement"
-    ],
-    JSXEmptyExpression: [],
-    JSXExpressionContainer: [
-        "expression"
-    ],
-    JSXFragment: [
-        "openingFragment",
-        "children",
-        "closingFragment"
-    ],
-    JSXIdentifier: [],
-    JSXMemberExpression: [
-        "object",
-        "property"
-    ],
-    JSXNamespacedName: [
-        "namespace",
-        "name"
-    ],
-    JSXOpeningElement: [
-        "name",
-        "attributes"
-    ],
-    JSXOpeningFragment: [],
-    JSXSpreadAttribute: [
-        "argument"
-    ],
-    JSXSpreadChild: [
-        "expression"
-    ],
-    JSXText: [],
-    LabeledStatement: [
-        "label",
-        "body"
-    ],
-    Literal: [],
-    LogicalExpression: [
-        "left",
-        "right"
-    ],
-    MemberExpression: [
-        "object",
-        "property"
-    ],
-    MetaProperty: [
-        "meta",
-        "property"
-    ],
-    MethodDefinition: [
-        "key",
-        "value"
-    ],
-    NewExpression: [
-        "callee",
-        "arguments"
-    ],
-    ObjectExpression: [
-        "properties"
-    ],
-    ObjectPattern: [
-        "properties"
-    ],
-    PrivateIdentifier: [],
-    Program: [
-        "body"
-    ],
-    Property: [
-        "key",
-        "value"
-    ],
-    PropertyDefinition: [
-        "key",
-        "value"
-    ],
-    RestElement: [
-        "argument"
-    ],
-    ReturnStatement: [
-        "argument"
-    ],
-    SequenceExpression: [
-        "expressions"
-    ],
-    SpreadElement: [
-        "argument"
-    ],
-    StaticBlock: [
-        "body"
-    ],
-    Super: [],
-    SwitchCase: [
-        "test",
-        "consequent"
-    ],
-    SwitchStatement: [
-        "discriminant",
-        "cases"
-    ],
-    TaggedTemplateExpression: [
-        "tag",
-        "quasi"
-    ],
-    TemplateElement: [],
-    TemplateLiteral: [
-        "quasis",
-        "expressions"
-    ],
-    ThisExpression: [],
-    ThrowStatement: [
-        "argument"
-    ],
-    TryStatement: [
-        "block",
-        "handler",
-        "finalizer"
-    ],
-    UnaryExpression: [
-        "argument"
-    ],
-    UpdateExpression: [
-        "argument"
-    ],
-    VariableDeclaration: [
-        "declarations"
-    ],
-    VariableDeclarator: [
-        "id",
-        "init"
-    ],
-    WhileStatement: [
-        "test",
-        "body"
-    ],
-    WithStatement: [
-        "object",
-        "body"
-    ],
-    YieldExpression: [
-        "argument"
-    ]
-};
-
-// Types.
-const NODE_TYPES = Object.keys(KEYS);
-
-// Freeze the keys.
-for (const type of NODE_TYPES) {
-    Object.freeze(KEYS[type]);
-}
-Object.freeze(KEYS);
-
-/**
- * @author Toru Nagashima 
- * See LICENSE file in root directory for full license.
- */
-
-/**
- * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
- */
-
-// List to ignore keys.
-const KEY_BLACKLIST = new Set([
-    "parent",
-    "leadingComments",
-    "trailingComments"
-]);
-
-/**
- * Check whether a given key should be used or not.
- * @param {string} key The key to check.
- * @returns {boolean} `true` if the key should be used.
- */
-function filterKey(key) {
-    return !KEY_BLACKLIST.has(key) && key[0] !== "_";
-}
-
-/**
- * Get visitor keys of a given node.
- * @param {object} node The AST node to get keys.
- * @returns {readonly string[]} Visitor keys of the node.
- */
-function getKeys(node) {
-    return Object.keys(node).filter(filterKey);
-}
-
-// Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
-// eslint-disable-next-line valid-jsdoc
-/**
- * Make the union set with `KEYS` and given keys.
- * @param {VisitorKeys} additionalKeys The additional keys.
- * @returns {VisitorKeys} The union set.
- */
-function unionWith(additionalKeys) {
-    const retv = /** @type {{
-        [type: string]: ReadonlyArray
-    }} */ (Object.assign({}, KEYS));
-
-    for (const type of Object.keys(additionalKeys)) {
-        if (Object.prototype.hasOwnProperty.call(retv, type)) {
-            const keys = new Set(additionalKeys[type]);
-
-            for (const key of retv[type]) {
-                keys.add(key);
-            }
-
-            retv[type] = Object.freeze(Array.from(keys));
-        } else {
-            retv[type] = Object.freeze(Array.from(additionalKeys[type]));
-        }
-    }
-
-    return Object.freeze(retv);
-}
-
-exports.KEYS = KEYS;
-exports.getKeys = getKeys;
-exports.unionWith = unionWith;
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts
deleted file mode 100644
index c7c28ed3..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts
+++ /dev/null
@@ -1,27 +0,0 @@
-type VisitorKeys$1 = {
-    readonly [type: string]: readonly string[];
-};
-/**
- * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
- */
-/**
- * @type {VisitorKeys}
- */
-declare const KEYS: VisitorKeys$1;
-
-/**
- * Get visitor keys of a given node.
- * @param {object} node The AST node to get keys.
- * @returns {readonly string[]} Visitor keys of the node.
- */
-declare function getKeys(node: object): readonly string[];
-/**
- * Make the union set with `KEYS` and given keys.
- * @param {VisitorKeys} additionalKeys The additional keys.
- * @returns {VisitorKeys} The union set.
- */
-declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
-
-type VisitorKeys = VisitorKeys$1;
-
-export { KEYS, VisitorKeys, getKeys, unionWith };
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/index.d.ts b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/index.d.ts
deleted file mode 100644
index 46bd87e2..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/index.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Get visitor keys of a given node.
- * @param {object} node The AST node to get keys.
- * @returns {readonly string[]} Visitor keys of the node.
- */
-export function getKeys(node: object): readonly string[];
-/**
- * Make the union set with `KEYS` and given keys.
- * @param {VisitorKeys} additionalKeys The additional keys.
- * @returns {VisitorKeys} The union set.
- */
-export function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
-export { KEYS };
-export type VisitorKeys = import('./visitor-keys.js').VisitorKeys;
-import KEYS from "./visitor-keys.js";
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts
deleted file mode 100644
index 57a952c5..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export default KEYS;
-export type VisitorKeys = {
-    readonly [type: string]: readonly string[];
-};
-/**
- * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
- */
-/**
- * @type {VisitorKeys}
- */
-declare const KEYS: VisitorKeys;
-//# sourceMappingURL=visitor-keys.d.ts.map
\ No newline at end of file
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/index.js b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/index.js
deleted file mode 100644
index 3622816d..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * @author Toru Nagashima 
- * See LICENSE file in root directory for full license.
- */
-import KEYS from "./visitor-keys.js";
-
-/**
- * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
- */
-
-// List to ignore keys.
-const KEY_BLACKLIST = new Set([
-    "parent",
-    "leadingComments",
-    "trailingComments"
-]);
-
-/**
- * Check whether a given key should be used or not.
- * @param {string} key The key to check.
- * @returns {boolean} `true` if the key should be used.
- */
-function filterKey(key) {
-    return !KEY_BLACKLIST.has(key) && key[0] !== "_";
-}
-
-/**
- * Get visitor keys of a given node.
- * @param {object} node The AST node to get keys.
- * @returns {readonly string[]} Visitor keys of the node.
- */
-export function getKeys(node) {
-    return Object.keys(node).filter(filterKey);
-}
-
-// Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
-// eslint-disable-next-line valid-jsdoc
-/**
- * Make the union set with `KEYS` and given keys.
- * @param {VisitorKeys} additionalKeys The additional keys.
- * @returns {VisitorKeys} The union set.
- */
-export function unionWith(additionalKeys) {
-    const retv = /** @type {{
-        [type: string]: ReadonlyArray
-    }} */ (Object.assign({}, KEYS));
-
-    for (const type of Object.keys(additionalKeys)) {
-        if (Object.prototype.hasOwnProperty.call(retv, type)) {
-            const keys = new Set(additionalKeys[type]);
-
-            for (const key of retv[type]) {
-                keys.add(key);
-            }
-
-            retv[type] = Object.freeze(Array.from(keys));
-        } else {
-            retv[type] = Object.freeze(Array.from(additionalKeys[type]));
-        }
-    }
-
-    return Object.freeze(retv);
-}
-
-export { KEYS };
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/visitor-keys.js
deleted file mode 100644
index ccf2b1f9..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/lib/visitor-keys.js
+++ /dev/null
@@ -1,315 +0,0 @@
-/**
- * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
- */
-
-/**
- * @type {VisitorKeys}
- */
-const KEYS = {
-    ArrayExpression: [
-        "elements"
-    ],
-    ArrayPattern: [
-        "elements"
-    ],
-    ArrowFunctionExpression: [
-        "params",
-        "body"
-    ],
-    AssignmentExpression: [
-        "left",
-        "right"
-    ],
-    AssignmentPattern: [
-        "left",
-        "right"
-    ],
-    AwaitExpression: [
-        "argument"
-    ],
-    BinaryExpression: [
-        "left",
-        "right"
-    ],
-    BlockStatement: [
-        "body"
-    ],
-    BreakStatement: [
-        "label"
-    ],
-    CallExpression: [
-        "callee",
-        "arguments"
-    ],
-    CatchClause: [
-        "param",
-        "body"
-    ],
-    ChainExpression: [
-        "expression"
-    ],
-    ClassBody: [
-        "body"
-    ],
-    ClassDeclaration: [
-        "id",
-        "superClass",
-        "body"
-    ],
-    ClassExpression: [
-        "id",
-        "superClass",
-        "body"
-    ],
-    ConditionalExpression: [
-        "test",
-        "consequent",
-        "alternate"
-    ],
-    ContinueStatement: [
-        "label"
-    ],
-    DebuggerStatement: [],
-    DoWhileStatement: [
-        "body",
-        "test"
-    ],
-    EmptyStatement: [],
-    ExperimentalRestProperty: [
-        "argument"
-    ],
-    ExperimentalSpreadProperty: [
-        "argument"
-    ],
-    ExportAllDeclaration: [
-        "exported",
-        "source"
-    ],
-    ExportDefaultDeclaration: [
-        "declaration"
-    ],
-    ExportNamedDeclaration: [
-        "declaration",
-        "specifiers",
-        "source"
-    ],
-    ExportSpecifier: [
-        "exported",
-        "local"
-    ],
-    ExpressionStatement: [
-        "expression"
-    ],
-    ForInStatement: [
-        "left",
-        "right",
-        "body"
-    ],
-    ForOfStatement: [
-        "left",
-        "right",
-        "body"
-    ],
-    ForStatement: [
-        "init",
-        "test",
-        "update",
-        "body"
-    ],
-    FunctionDeclaration: [
-        "id",
-        "params",
-        "body"
-    ],
-    FunctionExpression: [
-        "id",
-        "params",
-        "body"
-    ],
-    Identifier: [],
-    IfStatement: [
-        "test",
-        "consequent",
-        "alternate"
-    ],
-    ImportDeclaration: [
-        "specifiers",
-        "source"
-    ],
-    ImportDefaultSpecifier: [
-        "local"
-    ],
-    ImportExpression: [
-        "source"
-    ],
-    ImportNamespaceSpecifier: [
-        "local"
-    ],
-    ImportSpecifier: [
-        "imported",
-        "local"
-    ],
-    JSXAttribute: [
-        "name",
-        "value"
-    ],
-    JSXClosingElement: [
-        "name"
-    ],
-    JSXClosingFragment: [],
-    JSXElement: [
-        "openingElement",
-        "children",
-        "closingElement"
-    ],
-    JSXEmptyExpression: [],
-    JSXExpressionContainer: [
-        "expression"
-    ],
-    JSXFragment: [
-        "openingFragment",
-        "children",
-        "closingFragment"
-    ],
-    JSXIdentifier: [],
-    JSXMemberExpression: [
-        "object",
-        "property"
-    ],
-    JSXNamespacedName: [
-        "namespace",
-        "name"
-    ],
-    JSXOpeningElement: [
-        "name",
-        "attributes"
-    ],
-    JSXOpeningFragment: [],
-    JSXSpreadAttribute: [
-        "argument"
-    ],
-    JSXSpreadChild: [
-        "expression"
-    ],
-    JSXText: [],
-    LabeledStatement: [
-        "label",
-        "body"
-    ],
-    Literal: [],
-    LogicalExpression: [
-        "left",
-        "right"
-    ],
-    MemberExpression: [
-        "object",
-        "property"
-    ],
-    MetaProperty: [
-        "meta",
-        "property"
-    ],
-    MethodDefinition: [
-        "key",
-        "value"
-    ],
-    NewExpression: [
-        "callee",
-        "arguments"
-    ],
-    ObjectExpression: [
-        "properties"
-    ],
-    ObjectPattern: [
-        "properties"
-    ],
-    PrivateIdentifier: [],
-    Program: [
-        "body"
-    ],
-    Property: [
-        "key",
-        "value"
-    ],
-    PropertyDefinition: [
-        "key",
-        "value"
-    ],
-    RestElement: [
-        "argument"
-    ],
-    ReturnStatement: [
-        "argument"
-    ],
-    SequenceExpression: [
-        "expressions"
-    ],
-    SpreadElement: [
-        "argument"
-    ],
-    StaticBlock: [
-        "body"
-    ],
-    Super: [],
-    SwitchCase: [
-        "test",
-        "consequent"
-    ],
-    SwitchStatement: [
-        "discriminant",
-        "cases"
-    ],
-    TaggedTemplateExpression: [
-        "tag",
-        "quasi"
-    ],
-    TemplateElement: [],
-    TemplateLiteral: [
-        "quasis",
-        "expressions"
-    ],
-    ThisExpression: [],
-    ThrowStatement: [
-        "argument"
-    ],
-    TryStatement: [
-        "block",
-        "handler",
-        "finalizer"
-    ],
-    UnaryExpression: [
-        "argument"
-    ],
-    UpdateExpression: [
-        "argument"
-    ],
-    VariableDeclaration: [
-        "declarations"
-    ],
-    VariableDeclarator: [
-        "id",
-        "init"
-    ],
-    WhileStatement: [
-        "test",
-        "body"
-    ],
-    WithStatement: [
-        "object",
-        "body"
-    ],
-    YieldExpression: [
-        "argument"
-    ]
-};
-
-// Types.
-const NODE_TYPES = Object.keys(KEYS);
-
-// Freeze the keys.
-for (const type of NODE_TYPES) {
-    Object.freeze(KEYS[type]);
-}
-Object.freeze(KEYS);
-
-export default KEYS;
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/package.json b/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/package.json
deleted file mode 100644
index b9d51ce0..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
-  "name": "eslint-visitor-keys",
-  "version": "3.4.3",
-  "description": "Constants and utilities about visitor keys to traverse AST.",
-  "type": "module",
-  "main": "dist/eslint-visitor-keys.cjs",
-  "types": "./dist/index.d.ts",
-  "exports": {
-    ".": [
-      {
-        "import": "./lib/index.js",
-        "require": "./dist/eslint-visitor-keys.cjs"
-      },
-      "./dist/eslint-visitor-keys.cjs"
-    ],
-    "./package.json": "./package.json"
-  },
-  "files": [
-    "dist/index.d.ts",
-    "dist/visitor-keys.d.ts",
-    "dist/eslint-visitor-keys.cjs",
-    "dist/eslint-visitor-keys.d.cts",
-    "lib"
-  ],
-  "engines": {
-    "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-  },
-  "devDependencies": {
-    "@types/estree": "^0.0.51",
-    "@types/estree-jsx": "^0.0.1",
-    "@typescript-eslint/parser": "^5.14.0",
-    "c8": "^7.11.0",
-    "chai": "^4.3.6",
-    "eslint": "^7.29.0",
-    "eslint-config-eslint": "^7.0.0",
-    "eslint-plugin-jsdoc": "^35.4.0",
-    "eslint-plugin-node": "^11.1.0",
-    "eslint-release": "^3.2.0",
-    "esquery": "^1.4.0",
-    "json-diff": "^0.7.3",
-    "mocha": "^9.2.1",
-    "opener": "^1.5.2",
-    "rollup": "^2.70.0",
-    "rollup-plugin-dts": "^4.2.3",
-    "tsd": "^0.19.1",
-    "typescript": "^4.6.2"
-  },
-  "scripts": {
-    "build": "npm run build:cjs && npm run build:types",
-    "build:cjs": "rollup -c",
-    "build:debug": "npm run build:cjs -- -m && npm run build:types",
-    "build:keys": "node tools/build-keys-from-ts",
-    "build:types": "tsc",
-    "lint": "eslint .",
-    "prepare": "npm run build",
-    "release:generate:latest": "eslint-generate-release",
-    "release:generate:alpha": "eslint-generate-prerelease alpha",
-    "release:generate:beta": "eslint-generate-prerelease beta",
-    "release:generate:rc": "eslint-generate-prerelease rc",
-    "release:publish": "eslint-publish-release",
-    "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types",
-    "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
-    "test:types": "tsd"
-  },
-  "repository": "eslint/eslint-visitor-keys",
-  "funding": "https://opencollective.com/eslint",
-  "keywords": [],
-  "author": "Toru Nagashima (https://github.com/mysticatea)",
-  "license": "Apache-2.0",
-  "bugs": {
-    "url": "https://github.com/eslint/eslint-visitor-keys/issues"
-  },
-  "homepage": "https://github.com/eslint/eslint-visitor-keys#readme"
-}
diff --git a/graphql/node_modules/@typescript-eslint/visitor-keys/package.json b/graphql/node_modules/@typescript-eslint/visitor-keys/package.json
deleted file mode 100644
index 5f88d3bc..00000000
--- a/graphql/node_modules/@typescript-eslint/visitor-keys/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
-  "name": "@typescript-eslint/visitor-keys",
-  "version": "8.1.0",
-  "description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
-  "files": [
-    "dist",
-    "_ts4.3",
-    "package.json",
-    "README.md",
-    "LICENSE"
-  ],
-  "type": "commonjs",
-  "exports": {
-    ".": {
-      "types": "./dist/index.d.ts",
-      "default": "./dist/index.js"
-    },
-    "./package.json": "./package.json"
-  },
-  "types": "./dist/index.d.ts",
-  "engines": {
-    "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/typescript-eslint/typescript-eslint.git",
-    "directory": "packages/visitor-keys"
-  },
-  "bugs": {
-    "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
-  },
-  "homepage": "https://typescript-eslint.io",
-  "license": "MIT",
-  "keywords": [
-    "eslint",
-    "typescript",
-    "estree"
-  ],
-  "scripts": {
-    "build": "tsc -b tsconfig.build.json",
-    "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
-    "clean": "tsc -b tsconfig.build.json --clean",
-    "postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
-    "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
-    "lint": "npx nx lint",
-    "test": "jest --coverage",
-    "typecheck": "tsc --noEmit"
-  },
-  "dependencies": {
-    "@typescript-eslint/types": "8.1.0",
-    "eslint-visitor-keys": "^3.4.3"
-  },
-  "devDependencies": {
-    "@jest/types": "29.6.3",
-    "@types/eslint-visitor-keys": "*",
-    "downlevel-dts": "*",
-    "jest": "29.7.0",
-    "prettier": "^3.2.5",
-    "rimraf": "*",
-    "typescript": "*"
-  },
-  "funding": {
-    "type": "opencollective",
-    "url": "https://opencollective.com/typescript-eslint"
-  },
-  "typesVersions": {
-    "<4.7": {
-      "*": [
-        "_ts4.3/*"
-      ]
-    }
-  }
-}
diff --git a/graphql/node_modules/acorn-jsx/LICENSE b/graphql/node_modules/acorn-jsx/LICENSE
deleted file mode 100644
index 695d4b93..00000000
--- a/graphql/node_modules/acorn-jsx/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2012-2017 by Ingvar Stepanyan
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/graphql/node_modules/acorn-jsx/README.md b/graphql/node_modules/acorn-jsx/README.md
deleted file mode 100644
index 317c3ac4..00000000
--- a/graphql/node_modules/acorn-jsx/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# Acorn-JSX
-
-[![Build Status](https://travis-ci.org/acornjs/acorn-jsx.svg?branch=master)](https://travis-ci.org/acornjs/acorn-jsx)
-[![NPM version](https://img.shields.io/npm/v/acorn-jsx.svg)](https://www.npmjs.org/package/acorn-jsx)
-
-This is plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.
-
-It was created as an experimental alternative, faster [React.js JSX](http://facebook.github.io/react/docs/jsx-in-depth.html) parser. Later, it replaced the [official parser](https://github.com/facebookarchive/esprima) and these days is used by many prominent development tools.
-
-## Transpiler
-
-Please note that this tool only parses source code to JSX AST, which is useful for various language tools and services. If you want to transpile your code to regular ES5-compliant JavaScript with source map, check out [Babel](https://babeljs.io/) and [Buble](https://buble.surge.sh/) transpilers which use `acorn-jsx` under the hood.
-
-## Usage
-
-Requiring this module provides you with an Acorn plugin that you can use like this:
-
-```javascript
-var acorn = require("acorn");
-var jsx = require("acorn-jsx");
-acorn.Parser.extend(jsx()).parse("my(, 'code');");
-```
-
-Note that official spec doesn't support mix of XML namespaces and object-style access in tag names (#27) like in ``, so it was deprecated in `acorn-jsx@3.0`. If you still want to opt-in to support of such constructions, you can pass the following option:
-
-```javascript
-acorn.Parser.extend(jsx({ allowNamespacedObjects: true }))
-```
-
-Also, since most apps use pure React transformer, a new option was introduced that allows to prohibit namespaces completely:
-
-```javascript
-acorn.Parser.extend(jsx({ allowNamespaces: false }))
-```
-
-Note that by default `allowNamespaces` is enabled for spec compliancy.
-
-## License
-
-This plugin is issued under the [MIT license](./LICENSE).
diff --git a/graphql/node_modules/acorn-jsx/index.d.ts b/graphql/node_modules/acorn-jsx/index.d.ts
deleted file mode 100644
index f37b1df4..00000000
--- a/graphql/node_modules/acorn-jsx/index.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Parser } from 'acorn' 
-
-declare const jsx: (options?: jsx.Options) => (BaseParser: typeof Parser) => typeof Parser;
-
-declare namespace jsx {
-  interface Options {
-    allowNamespacedObjects?: boolean;
-    allowNamespaces?: boolean;
-  }
-}
-
-export = jsx;
diff --git a/graphql/node_modules/acorn-jsx/index.js b/graphql/node_modules/acorn-jsx/index.js
deleted file mode 100644
index 004e0809..00000000
--- a/graphql/node_modules/acorn-jsx/index.js
+++ /dev/null
@@ -1,488 +0,0 @@
-'use strict';
-
-const XHTMLEntities = require('./xhtml');
-
-const hexNumber = /^[\da-fA-F]+$/;
-const decimalNumber = /^\d+$/;
-
-// The map to `acorn-jsx` tokens from `acorn` namespace objects.
-const acornJsxMap = new WeakMap();
-
-// Get the original tokens for the given `acorn` namespace object.
-function getJsxTokens(acorn) {
-  acorn = acorn.Parser.acorn || acorn;
-  let acornJsx = acornJsxMap.get(acorn);
-  if (!acornJsx) {
-    const tt = acorn.tokTypes;
-    const TokContext = acorn.TokContext;
-    const TokenType = acorn.TokenType;
-    const tc_oTag = new TokContext('...', true, true);
-    const tokContexts = {
-      tc_oTag: tc_oTag,
-      tc_cTag: tc_cTag,
-      tc_expr: tc_expr
-    };
-    const tokTypes = {
-      jsxName: new TokenType('jsxName'),
-      jsxText: new TokenType('jsxText', {beforeExpr: true}),
-      jsxTagStart: new TokenType('jsxTagStart', {startsExpr: true}),
-      jsxTagEnd: new TokenType('jsxTagEnd')
-    };
-
-    tokTypes.jsxTagStart.updateContext = function() {
-      this.context.push(tc_expr); // treat as beginning of JSX expression
-      this.context.push(tc_oTag); // start opening tag context
-      this.exprAllowed = false;
-    };
-    tokTypes.jsxTagEnd.updateContext = function(prevType) {
-      let out = this.context.pop();
-      if (out === tc_oTag && prevType === tt.slash || out === tc_cTag) {
-        this.context.pop();
-        this.exprAllowed = this.curContext() === tc_expr;
-      } else {
-        this.exprAllowed = true;
-      }
-    };
-
-    acornJsx = { tokContexts: tokContexts, tokTypes: tokTypes };
-    acornJsxMap.set(acorn, acornJsx);
-  }
-
-  return acornJsx;
-}
-
-// Transforms JSX element name to string.
-
-function getQualifiedJSXName(object) {
-  if (!object)
-    return object;
-
-  if (object.type === 'JSXIdentifier')
-    return object.name;
-
-  if (object.type === 'JSXNamespacedName')
-    return object.namespace.name + ':' + object.name.name;
-
-  if (object.type === 'JSXMemberExpression')
-    return getQualifiedJSXName(object.object) + '.' +
-    getQualifiedJSXName(object.property);
-}
-
-module.exports = function(options) {
-  options = options || {};
-  return function(Parser) {
-    return plugin({
-      allowNamespaces: options.allowNamespaces !== false,
-      allowNamespacedObjects: !!options.allowNamespacedObjects
-    }, Parser);
-  };
-};
-
-// This is `tokTypes` of the peer dep.
-// This can be different instances from the actual `tokTypes` this plugin uses.
-Object.defineProperty(module.exports, "tokTypes", {
-  get: function get_tokTypes() {
-    return getJsxTokens(require("acorn")).tokTypes;
-  },
-  configurable: true,
-  enumerable: true
-});
-
-function plugin(options, Parser) {
-  const acorn = Parser.acorn || require("acorn");
-  const acornJsx = getJsxTokens(acorn);
-  const tt = acorn.tokTypes;
-  const tok = acornJsx.tokTypes;
-  const tokContexts = acorn.tokContexts;
-  const tc_oTag = acornJsx.tokContexts.tc_oTag;
-  const tc_cTag = acornJsx.tokContexts.tc_cTag;
-  const tc_expr = acornJsx.tokContexts.tc_expr;
-  const isNewLine = acorn.isNewLine;
-  const isIdentifierStart = acorn.isIdentifierStart;
-  const isIdentifierChar = acorn.isIdentifierChar;
-
-  return class extends Parser {
-    // Expose actual `tokTypes` and `tokContexts` to other plugins.
-    static get acornJsx() {
-      return acornJsx;
-    }
-
-    // Reads inline JSX contents token.
-    jsx_readToken() {
-      let out = '', chunkStart = this.pos;
-      for (;;) {
-        if (this.pos >= this.input.length)
-          this.raise(this.start, 'Unterminated JSX contents');
-        let ch = this.input.charCodeAt(this.pos);
-
-        switch (ch) {
-        case 60: // '<'
-        case 123: // '{'
-          if (this.pos === this.start) {
-            if (ch === 60 && this.exprAllowed) {
-              ++this.pos;
-              return this.finishToken(tok.jsxTagStart);
-            }
-            return this.getTokenFromCode(ch);
-          }
-          out += this.input.slice(chunkStart, this.pos);
-          return this.finishToken(tok.jsxText, out);
-
-        case 38: // '&'
-          out += this.input.slice(chunkStart, this.pos);
-          out += this.jsx_readEntity();
-          chunkStart = this.pos;
-          break;
-
-        case 62: // '>'
-        case 125: // '}'
-          this.raise(
-            this.pos,
-            "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" +
-              (ch === 62 ? ">" : "}") + "` or " + "`{\"" + this.input[this.pos] + "\"}" + "`?"
-          );
-
-        default:
-          if (isNewLine(ch)) {
-            out += this.input.slice(chunkStart, this.pos);
-            out += this.jsx_readNewLine(true);
-            chunkStart = this.pos;
-          } else {
-            ++this.pos;
-          }
-        }
-      }
-    }
-
-    jsx_readNewLine(normalizeCRLF) {
-      let ch = this.input.charCodeAt(this.pos);
-      let out;
-      ++this.pos;
-      if (ch === 13 && this.input.charCodeAt(this.pos) === 10) {
-        ++this.pos;
-        out = normalizeCRLF ? '\n' : '\r\n';
-      } else {
-        out = String.fromCharCode(ch);
-      }
-      if (this.options.locations) {
-        ++this.curLine;
-        this.lineStart = this.pos;
-      }
-
-      return out;
-    }
-
-    jsx_readString(quote) {
-      let out = '', chunkStart = ++this.pos;
-      for (;;) {
-        if (this.pos >= this.input.length)
-          this.raise(this.start, 'Unterminated string constant');
-        let ch = this.input.charCodeAt(this.pos);
-        if (ch === quote) break;
-        if (ch === 38) { // '&'
-          out += this.input.slice(chunkStart, this.pos);
-          out += this.jsx_readEntity();
-          chunkStart = this.pos;
-        } else if (isNewLine(ch)) {
-          out += this.input.slice(chunkStart, this.pos);
-          out += this.jsx_readNewLine(false);
-          chunkStart = this.pos;
-        } else {
-          ++this.pos;
-        }
-      }
-      out += this.input.slice(chunkStart, this.pos++);
-      return this.finishToken(tt.string, out);
-    }
-
-    jsx_readEntity() {
-      let str = '', count = 0, entity;
-      let ch = this.input[this.pos];
-      if (ch !== '&')
-        this.raise(this.pos, 'Entity must start with an ampersand');
-      let startPos = ++this.pos;
-      while (this.pos < this.input.length && count++ < 10) {
-        ch = this.input[this.pos++];
-        if (ch === ';') {
-          if (str[0] === '#') {
-            if (str[1] === 'x') {
-              str = str.substr(2);
-              if (hexNumber.test(str))
-                entity = String.fromCharCode(parseInt(str, 16));
-            } else {
-              str = str.substr(1);
-              if (decimalNumber.test(str))
-                entity = String.fromCharCode(parseInt(str, 10));
-            }
-          } else {
-            entity = XHTMLEntities[str];
-          }
-          break;
-        }
-        str += ch;
-      }
-      if (!entity) {
-        this.pos = startPos;
-        return '&';
-      }
-      return entity;
-    }
-
-    // Read a JSX identifier (valid tag or attribute name).
-    //
-    // Optimized version since JSX identifiers can't contain
-    // escape characters and so can be read as single slice.
-    // Also assumes that first character was already checked
-    // by isIdentifierStart in readToken.
-
-    jsx_readWord() {
-      let ch, start = this.pos;
-      do {
-        ch = this.input.charCodeAt(++this.pos);
-      } while (isIdentifierChar(ch) || ch === 45); // '-'
-      return this.finishToken(tok.jsxName, this.input.slice(start, this.pos));
-    }
-
-    // Parse next token as JSX identifier
-
-    jsx_parseIdentifier() {
-      let node = this.startNode();
-      if (this.type === tok.jsxName)
-        node.name = this.value;
-      else if (this.type.keyword)
-        node.name = this.type.keyword;
-      else
-        this.unexpected();
-      this.next();
-      return this.finishNode(node, 'JSXIdentifier');
-    }
-
-    // Parse namespaced identifier.
-
-    jsx_parseNamespacedName() {
-      let startPos = this.start, startLoc = this.startLoc;
-      let name = this.jsx_parseIdentifier();
-      if (!options.allowNamespaces || !this.eat(tt.colon)) return name;
-      var node = this.startNodeAt(startPos, startLoc);
-      node.namespace = name;
-      node.name = this.jsx_parseIdentifier();
-      return this.finishNode(node, 'JSXNamespacedName');
-    }
-
-    // Parses element name in any form - namespaced, member
-    // or single identifier.
-
-    jsx_parseElementName() {
-      if (this.type === tok.jsxTagEnd) return '';
-      let startPos = this.start, startLoc = this.startLoc;
-      let node = this.jsx_parseNamespacedName();
-      if (this.type === tt.dot && node.type === 'JSXNamespacedName' && !options.allowNamespacedObjects) {
-        this.unexpected();
-      }
-      while (this.eat(tt.dot)) {
-        let newNode = this.startNodeAt(startPos, startLoc);
-        newNode.object = node;
-        newNode.property = this.jsx_parseIdentifier();
-        node = this.finishNode(newNode, 'JSXMemberExpression');
-      }
-      return node;
-    }
-
-    // Parses any type of JSX attribute value.
-
-    jsx_parseAttributeValue() {
-      switch (this.type) {
-      case tt.braceL:
-        let node = this.jsx_parseExpressionContainer();
-        if (node.expression.type === 'JSXEmptyExpression')
-          this.raise(node.start, 'JSX attributes must only be assigned a non-empty expression');
-        return node;
-
-      case tok.jsxTagStart:
-      case tt.string:
-        return this.parseExprAtom();
-
-      default:
-        this.raise(this.start, 'JSX value should be either an expression or a quoted JSX text');
-      }
-    }
-
-    // JSXEmptyExpression is unique type since it doesn't actually parse anything,
-    // and so it should start at the end of last read token (left brace) and finish
-    // at the beginning of the next one (right brace).
-
-    jsx_parseEmptyExpression() {
-      let node = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
-      return this.finishNodeAt(node, 'JSXEmptyExpression', this.start, this.startLoc);
-    }
-
-    // Parses JSX expression enclosed into curly brackets.
-
-    jsx_parseExpressionContainer() {
-      let node = this.startNode();
-      this.next();
-      node.expression = this.type === tt.braceR
-        ? this.jsx_parseEmptyExpression()
-        : this.parseExpression();
-      this.expect(tt.braceR);
-      return this.finishNode(node, 'JSXExpressionContainer');
-    }
-
-    // Parses following JSX attribute name-value pair.
-
-    jsx_parseAttribute() {
-      let node = this.startNode();
-      if (this.eat(tt.braceL)) {
-        this.expect(tt.ellipsis);
-        node.argument = this.parseMaybeAssign();
-        this.expect(tt.braceR);
-        return this.finishNode(node, 'JSXSpreadAttribute');
-      }
-      node.name = this.jsx_parseNamespacedName();
-      node.value = this.eat(tt.eq) ? this.jsx_parseAttributeValue() : null;
-      return this.finishNode(node, 'JSXAttribute');
-    }
-
-    // Parses JSX opening tag starting after '<'.
-
-    jsx_parseOpeningElementAt(startPos, startLoc) {
-      let node = this.startNodeAt(startPos, startLoc);
-      node.attributes = [];
-      let nodeName = this.jsx_parseElementName();
-      if (nodeName) node.name = nodeName;
-      while (this.type !== tt.slash && this.type !== tok.jsxTagEnd)
-        node.attributes.push(this.jsx_parseAttribute());
-      node.selfClosing = this.eat(tt.slash);
-      this.expect(tok.jsxTagEnd);
-      return this.finishNode(node, nodeName ? 'JSXOpeningElement' : 'JSXOpeningFragment');
-    }
-
-    // Parses JSX closing tag starting after '');
-        }
-      }
-      let fragmentOrElement = openingElement.name ? 'Element' : 'Fragment';
-
-      node['opening' + fragmentOrElement] = openingElement;
-      node['closing' + fragmentOrElement] = closingElement;
-      node.children = children;
-      if (this.type === tt.relational && this.value === "<") {
-        this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag");
-      }
-      return this.finishNode(node, 'JSX' + fragmentOrElement);
-    }
-
-    // Parse JSX text
-
-    jsx_parseText() {
-      let node = this.parseLiteral(this.value);
-      node.type = "JSXText";
-      return node;
-    }
-
-    // Parses entire JSX element from current position.
-
-    jsx_parseElement() {
-      let startPos = this.start, startLoc = this.startLoc;
-      this.next();
-      return this.jsx_parseElementAt(startPos, startLoc);
-    }
-
-    parseExprAtom(refShortHandDefaultPos) {
-      if (this.type === tok.jsxText)
-        return this.jsx_parseText();
-      else if (this.type === tok.jsxTagStart)
-        return this.jsx_parseElement();
-      else
-        return super.parseExprAtom(refShortHandDefaultPos);
-    }
-
-    readToken(code) {
-      let context = this.curContext();
-
-      if (context === tc_expr) return this.jsx_readToken();
-
-      if (context === tc_oTag || context === tc_cTag) {
-        if (isIdentifierStart(code)) return this.jsx_readWord();
-
-        if (code == 62) {
-          ++this.pos;
-          return this.finishToken(tok.jsxTagEnd);
-        }
-
-        if ((code === 34 || code === 39) && context == tc_oTag)
-          return this.jsx_readString(code);
-      }
-
-      if (code === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33) {
-        ++this.pos;
-        return this.finishToken(tok.jsxTagStart);
-      }
-      return super.readToken(code);
-    }
-
-    updateContext(prevType) {
-      if (this.type == tt.braceL) {
-        var curContext = this.curContext();
-        if (curContext == tc_oTag) this.context.push(tokContexts.b_expr);
-        else if (curContext == tc_expr) this.context.push(tokContexts.b_tmpl);
-        else super.updateContext(prevType);
-        this.exprAllowed = true;
-      } else if (this.type === tt.slash && prevType === tok.jsxTagStart) {
-        this.context.length -= 2; // do not consider JSX expr -> JSX open tag -> ... anymore
-        this.context.push(tc_cTag); // reconsider as closing tag context
-        this.exprAllowed = false;
-      } else {
-        return super.updateContext(prevType);
-      }
-    }
-  };
-}
diff --git a/graphql/node_modules/acorn-jsx/package.json b/graphql/node_modules/acorn-jsx/package.json
deleted file mode 100644
index 6debde9c..00000000
--- a/graphql/node_modules/acorn-jsx/package.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
-  "name": "acorn-jsx",
-  "description": "Modern, fast React.js JSX parser",
-  "homepage": "https://github.com/acornjs/acorn-jsx",
-  "version": "5.3.2",
-  "maintainers": [
-    {
-      "name": "Ingvar Stepanyan",
-      "email": "me@rreverser.com",
-      "web": "http://rreverser.com/"
-    }
-  ],
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/acornjs/acorn-jsx"
-  },
-  "license": "MIT",
-  "scripts": {
-    "test": "node test/run.js"
-  },
-  "peerDependencies": {
-    "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
-  },
-  "devDependencies": {
-    "acorn": "^8.0.1"
-  }
-}
diff --git a/graphql/node_modules/acorn-jsx/xhtml.js b/graphql/node_modules/acorn-jsx/xhtml.js
deleted file mode 100644
index c1520092..00000000
--- a/graphql/node_modules/acorn-jsx/xhtml.js
+++ /dev/null
@@ -1,255 +0,0 @@
-module.exports = {
-  quot: '\u0022',
-  amp: '&',
-  apos: '\u0027',
-  lt: '<',
-  gt: '>',
-  nbsp: '\u00A0',
-  iexcl: '\u00A1',
-  cent: '\u00A2',
-  pound: '\u00A3',
-  curren: '\u00A4',
-  yen: '\u00A5',
-  brvbar: '\u00A6',
-  sect: '\u00A7',
-  uml: '\u00A8',
-  copy: '\u00A9',
-  ordf: '\u00AA',
-  laquo: '\u00AB',
-  not: '\u00AC',
-  shy: '\u00AD',
-  reg: '\u00AE',
-  macr: '\u00AF',
-  deg: '\u00B0',
-  plusmn: '\u00B1',
-  sup2: '\u00B2',
-  sup3: '\u00B3',
-  acute: '\u00B4',
-  micro: '\u00B5',
-  para: '\u00B6',
-  middot: '\u00B7',
-  cedil: '\u00B8',
-  sup1: '\u00B9',
-  ordm: '\u00BA',
-  raquo: '\u00BB',
-  frac14: '\u00BC',
-  frac12: '\u00BD',
-  frac34: '\u00BE',
-  iquest: '\u00BF',
-  Agrave: '\u00C0',
-  Aacute: '\u00C1',
-  Acirc: '\u00C2',
-  Atilde: '\u00C3',
-  Auml: '\u00C4',
-  Aring: '\u00C5',
-  AElig: '\u00C6',
-  Ccedil: '\u00C7',
-  Egrave: '\u00C8',
-  Eacute: '\u00C9',
-  Ecirc: '\u00CA',
-  Euml: '\u00CB',
-  Igrave: '\u00CC',
-  Iacute: '\u00CD',
-  Icirc: '\u00CE',
-  Iuml: '\u00CF',
-  ETH: '\u00D0',
-  Ntilde: '\u00D1',
-  Ograve: '\u00D2',
-  Oacute: '\u00D3',
-  Ocirc: '\u00D4',
-  Otilde: '\u00D5',
-  Ouml: '\u00D6',
-  times: '\u00D7',
-  Oslash: '\u00D8',
-  Ugrave: '\u00D9',
-  Uacute: '\u00DA',
-  Ucirc: '\u00DB',
-  Uuml: '\u00DC',
-  Yacute: '\u00DD',
-  THORN: '\u00DE',
-  szlig: '\u00DF',
-  agrave: '\u00E0',
-  aacute: '\u00E1',
-  acirc: '\u00E2',
-  atilde: '\u00E3',
-  auml: '\u00E4',
-  aring: '\u00E5',
-  aelig: '\u00E6',
-  ccedil: '\u00E7',
-  egrave: '\u00E8',
-  eacute: '\u00E9',
-  ecirc: '\u00EA',
-  euml: '\u00EB',
-  igrave: '\u00EC',
-  iacute: '\u00ED',
-  icirc: '\u00EE',
-  iuml: '\u00EF',
-  eth: '\u00F0',
-  ntilde: '\u00F1',
-  ograve: '\u00F2',
-  oacute: '\u00F3',
-  ocirc: '\u00F4',
-  otilde: '\u00F5',
-  ouml: '\u00F6',
-  divide: '\u00F7',
-  oslash: '\u00F8',
-  ugrave: '\u00F9',
-  uacute: '\u00FA',
-  ucirc: '\u00FB',
-  uuml: '\u00FC',
-  yacute: '\u00FD',
-  thorn: '\u00FE',
-  yuml: '\u00FF',
-  OElig: '\u0152',
-  oelig: '\u0153',
-  Scaron: '\u0160',
-  scaron: '\u0161',
-  Yuml: '\u0178',
-  fnof: '\u0192',
-  circ: '\u02C6',
-  tilde: '\u02DC',
-  Alpha: '\u0391',
-  Beta: '\u0392',
-  Gamma: '\u0393',
-  Delta: '\u0394',
-  Epsilon: '\u0395',
-  Zeta: '\u0396',
-  Eta: '\u0397',
-  Theta: '\u0398',
-  Iota: '\u0399',
-  Kappa: '\u039A',
-  Lambda: '\u039B',
-  Mu: '\u039C',
-  Nu: '\u039D',
-  Xi: '\u039E',
-  Omicron: '\u039F',
-  Pi: '\u03A0',
-  Rho: '\u03A1',
-  Sigma: '\u03A3',
-  Tau: '\u03A4',
-  Upsilon: '\u03A5',
-  Phi: '\u03A6',
-  Chi: '\u03A7',
-  Psi: '\u03A8',
-  Omega: '\u03A9',
-  alpha: '\u03B1',
-  beta: '\u03B2',
-  gamma: '\u03B3',
-  delta: '\u03B4',
-  epsilon: '\u03B5',
-  zeta: '\u03B6',
-  eta: '\u03B7',
-  theta: '\u03B8',
-  iota: '\u03B9',
-  kappa: '\u03BA',
-  lambda: '\u03BB',
-  mu: '\u03BC',
-  nu: '\u03BD',
-  xi: '\u03BE',
-  omicron: '\u03BF',
-  pi: '\u03C0',
-  rho: '\u03C1',
-  sigmaf: '\u03C2',
-  sigma: '\u03C3',
-  tau: '\u03C4',
-  upsilon: '\u03C5',
-  phi: '\u03C6',
-  chi: '\u03C7',
-  psi: '\u03C8',
-  omega: '\u03C9',
-  thetasym: '\u03D1',
-  upsih: '\u03D2',
-  piv: '\u03D6',
-  ensp: '\u2002',
-  emsp: '\u2003',
-  thinsp: '\u2009',
-  zwnj: '\u200C',
-  zwj: '\u200D',
-  lrm: '\u200E',
-  rlm: '\u200F',
-  ndash: '\u2013',
-  mdash: '\u2014',
-  lsquo: '\u2018',
-  rsquo: '\u2019',
-  sbquo: '\u201A',
-  ldquo: '\u201C',
-  rdquo: '\u201D',
-  bdquo: '\u201E',
-  dagger: '\u2020',
-  Dagger: '\u2021',
-  bull: '\u2022',
-  hellip: '\u2026',
-  permil: '\u2030',
-  prime: '\u2032',
-  Prime: '\u2033',
-  lsaquo: '\u2039',
-  rsaquo: '\u203A',
-  oline: '\u203E',
-  frasl: '\u2044',
-  euro: '\u20AC',
-  image: '\u2111',
-  weierp: '\u2118',
-  real: '\u211C',
-  trade: '\u2122',
-  alefsym: '\u2135',
-  larr: '\u2190',
-  uarr: '\u2191',
-  rarr: '\u2192',
-  darr: '\u2193',
-  harr: '\u2194',
-  crarr: '\u21B5',
-  lArr: '\u21D0',
-  uArr: '\u21D1',
-  rArr: '\u21D2',
-  dArr: '\u21D3',
-  hArr: '\u21D4',
-  forall: '\u2200',
-  part: '\u2202',
-  exist: '\u2203',
-  empty: '\u2205',
-  nabla: '\u2207',
-  isin: '\u2208',
-  notin: '\u2209',
-  ni: '\u220B',
-  prod: '\u220F',
-  sum: '\u2211',
-  minus: '\u2212',
-  lowast: '\u2217',
-  radic: '\u221A',
-  prop: '\u221D',
-  infin: '\u221E',
-  ang: '\u2220',
-  and: '\u2227',
-  or: '\u2228',
-  cap: '\u2229',
-  cup: '\u222A',
-  'int': '\u222B',
-  there4: '\u2234',
-  sim: '\u223C',
-  cong: '\u2245',
-  asymp: '\u2248',
-  ne: '\u2260',
-  equiv: '\u2261',
-  le: '\u2264',
-  ge: '\u2265',
-  sub: '\u2282',
-  sup: '\u2283',
-  nsub: '\u2284',
-  sube: '\u2286',
-  supe: '\u2287',
-  oplus: '\u2295',
-  otimes: '\u2297',
-  perp: '\u22A5',
-  sdot: '\u22C5',
-  lceil: '\u2308',
-  rceil: '\u2309',
-  lfloor: '\u230A',
-  rfloor: '\u230B',
-  lang: '\u2329',
-  rang: '\u232A',
-  loz: '\u25CA',
-  spades: '\u2660',
-  clubs: '\u2663',
-  hearts: '\u2665',
-  diams: '\u2666'
-};
diff --git a/graphql/node_modules/acorn/CHANGELOG.md b/graphql/node_modules/acorn/CHANGELOG.md
deleted file mode 100644
index c404a235..00000000
--- a/graphql/node_modules/acorn/CHANGELOG.md
+++ /dev/null
@@ -1,910 +0,0 @@
-## 8.12.1 (2024-07-03)
-
-### Bug fixes
-
-Fix a regression that caused Acorn to no longer run on Node versions <8.10.
-
-## 8.12.0 (2024-06-14)
-
-### New features
-
-Support ES2025 duplicate capture group names in regular expressions.
-
-### Bug fixes
-
-Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.
-
-Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.
-
-Properly recognize \"use strict\" when preceded by a string with an escaped newline.
-
-Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.
-
-Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.
-
-Properly normalize line endings in raw strings of invalid template tokens.
-
-Properly track line numbers for escaped newlines in strings.
-
-Fix a bug that broke line number accounting after a template literal with invalid escape sequences.
-
-## 8.11.3 (2023-12-29)
-
-### Bug fixes
-
-Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
-
-Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
-
-Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
-
-## 8.11.2 (2023-10-27)
-
-### Bug fixes
-
-Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
-
-## 8.11.1 (2023-10-26)
-
-### Bug fixes
-
-Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
-
-## 8.11.0 (2023-10-26)
-
-### Bug fixes
-
-Fix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state.
-
-Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.
-
-### New features
-
-Upgrade to Unicode 15.1.
-
-Use a set of new, much more precise, TypeScript types.
-
-## 8.10.0 (2023-07-05)
-
-### New features
-
-Add a `checkPrivateFields` option that disables strict checking of private property use.
-
-## 8.9.0 (2023-06-16)
-
-### Bug fixes
-
-Forbid dynamic import after `new`, even when part of a member expression.
-
-### New features
-
-Add Unicode properties for ES2023.
-
-Add support for the `v` flag to regular expressions.
-
-## 8.8.2 (2023-01-23)
-
-### Bug fixes
-
-Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
-
-Fix an exception when passing no option object to `parse` or `new Parser`.
-
-Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
-
-## 8.8.1 (2022-10-24)
-
-### Bug fixes
-
-Make type for `Comment` compatible with estree types.
-
-## 8.8.0 (2022-07-21)
-
-### Bug fixes
-
-Allow parentheses around spread args in destructuring object assignment.
-
-Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
-
-### New features
-
-Support hashbang comments by default in ECMAScript 2023 and later.
-
-## 8.7.1 (2021-04-26)
-
-### Bug fixes
-
-Stop handling `"use strict"` directives in ECMAScript versions before 5.
-
-Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
-
-Add missing type for `tokTypes`.
-
-## 8.7.0 (2021-12-27)
-
-### New features
-
-Support quoted export names.
-
-Upgrade to Unicode 14.
-
-Add support for Unicode 13 properties in regular expressions.
-
-### Bug fixes
-
-Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.
-
-## 8.6.0 (2021-11-18)
-
-### Bug fixes
-
-Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.
-
-### New features
-
-Support class private fields with the `in` operator.
-
-## 8.5.0 (2021-09-06)
-
-### Bug fixes
-
-Improve context-dependent tokenization in a number of corner cases.
-
-Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
-
-Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
-
-Fix wrong end locations stored on SequenceExpression nodes.
-
-Implement restriction that `for`/`of` loop LHS can't start with `let`.
-
-### New features
-
-Add support for ES2022 class static blocks.
-
-Allow multiple input files to be passed to the CLI tool.
-
-## 8.4.1 (2021-06-24)
-
-### Bug fixes
-
-Fix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources.
-
-## 8.4.0 (2021-06-11)
-
-### New features
-
-A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
-
-## 8.3.0 (2021-05-31)
-
-### New features
-
-Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
-
-Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
-
-## 8.2.4 (2021-05-04)
-
-### Bug fixes
-
-Fix spec conformity in corner case 'for await (async of ...)'.
-
-## 8.2.3 (2021-05-04)
-
-### Bug fixes
-
-Fix an issue where the library couldn't parse 'for (async of ...)'.
-
-Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.
-
-## 8.2.2 (2021-04-29)
-
-### Bug fixes
-
-Fix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield.
-
-## 8.2.1 (2021-04-24)
-
-### Bug fixes
-
-Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.
-
-## 8.2.0 (2021-04-24)
-
-### New features
-
-Add support for ES2022 class fields and private methods.
-
-## 8.1.1 (2021-04-12)
-
-### Various
-
-Stop shipping source maps in the NPM package.
-
-## 8.1.0 (2021-03-09)
-
-### Bug fixes
-
-Fix a spurious error in nested destructuring arrays.
-
-### New features
-
-Expose `allowAwaitOutsideFunction` in CLI interface.
-
-Make `allowImportExportAnywhere` also apply to `import.meta`.
-
-## 8.0.5 (2021-01-25)
-
-### Bug fixes
-
-Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
-
-## 8.0.4 (2020-10-05)
-
-### Bug fixes
-
-Make `await x ** y` an error, following the spec.
-
-Fix potentially exponential regular expression.
-
-## 8.0.3 (2020-10-02)
-
-### Bug fixes
-
-Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
-
-## 8.0.2 (2020-09-30)
-
-### Bug fixes
-
-Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
-
-Fix another regexp/division tokenizer issue.
-
-## 8.0.1 (2020-08-12)
-
-### Bug fixes
-
-Provide the correct value in the `version` export.
-
-## 8.0.0 (2020-08-12)
-
-### Bug fixes
-
-Disallow expressions like `(a = b) = c`.
-
-Make non-octal escape sequences a syntax error in strict mode.
-
-### New features
-
-The package can now be loaded directly as an ECMAScript module in node 13+.
-
-Update to the set of Unicode properties from ES2021.
-
-### Breaking changes
-
-The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
-
-Some changes to method signatures that may be used by plugins.
-
-## 7.4.0 (2020-08-03)
-
-### New features
-
-Add support for logical assignment operators.
-
-Add support for numeric separators.
-
-## 7.3.1 (2020-06-11)
-
-### Bug fixes
-
-Make the string in the `version` export match the actual library version.
-
-## 7.3.0 (2020-06-11)
-
-### Bug fixes
-
-Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.
-
-### New features
-
-Add support for optional chaining (`?.`).
-
-## 7.2.0 (2020-05-09)
-
-### Bug fixes
-
-Fix precedence issue in parsing of async arrow functions.
-
-### New features
-
-Add support for nullish coalescing.
-
-Add support for `import.meta`.
-
-Support `export * as ...` syntax.
-
-Upgrade to Unicode 13.
-
-## 6.4.1 (2020-03-09)
-
-### Bug fixes
-
-More carefully check for valid UTF16 surrogate pairs in regexp validator.
-
-## 7.1.1 (2020-03-01)
-
-### Bug fixes
-
-Treat `\8` and `\9` as invalid escapes in template strings.
-
-Allow unicode escapes in property names that are keywords.
-
-Don't error on an exponential operator expression as argument to `await`.
-
-More carefully check for valid UTF16 surrogate pairs in regexp validator.
-
-## 7.1.0 (2019-09-24)
-
-### Bug fixes
-
-Disallow trailing object literal commas when ecmaVersion is less than 5.
-
-### New features
-
-Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
-
-## 7.0.0 (2019-08-13)
-
-### Breaking changes
-
-Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
-
-Makes 10 (ES2019) the default value for the `ecmaVersion` option.
-
-## 6.3.0 (2019-08-12)
-
-### New features
-
-`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.
-
-## 6.2.1 (2019-07-21)
-
-### Bug fixes
-
-Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
-
-Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
-
-## 6.2.0 (2019-07-04)
-
-### Bug fixes
-
-Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
-
-Disallow binding `let` in patterns.
-
-### New features
-
-Support bigint syntax with `ecmaVersion` >= 11.
-
-Support dynamic `import` syntax with `ecmaVersion` >= 11.
-
-Upgrade to Unicode version 12.
-
-## 6.1.1 (2019-02-27)
-
-### Bug fixes
-
-Fix bug that caused parsing default exports of with names to fail.
-
-## 6.1.0 (2019-02-08)
-
-### Bug fixes
-
-Fix scope checking when redefining a `var` as a lexical binding.
-
-### New features
-
-Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.
-
-## 6.0.7 (2019-02-04)
-
-### Bug fixes
-
-Check that exported bindings are defined.
-
-Don't treat `\u180e` as a whitespace character.
-
-Check for duplicate parameter names in methods.
-
-Don't allow shorthand properties when they are generators or async methods.
-
-Forbid binding `await` in async arrow function's parameter list.
-
-## 6.0.6 (2019-01-30)
-
-### Bug fixes
-
-The content of class declarations and expressions is now always parsed in strict mode.
-
-Don't allow `let` or `const` to bind the variable name `let`.
-
-Treat class declarations as lexical.
-
-Don't allow a generator function declaration as the sole body of an `if` or `else`.
-
-Ignore `"use strict"` when after an empty statement.
-
-Allow string line continuations with special line terminator characters.
-
-Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
-
-Fix bug with parsing `yield` in a `for` loop initializer.
-
-Implement special cases around scope checking for functions.
-
-## 6.0.5 (2019-01-02)
-
-### Bug fixes
-
-Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
-
-Don't treat `let` as a keyword when the next token is `{` on the next line.
-
-Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.
-
-## 6.0.4 (2018-11-05)
-
-### Bug fixes
-
-Further improvements to tokenizing regular expressions in corner cases.
-
-## 6.0.3 (2018-11-04)
-
-### Bug fixes
-
-Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
-
-Remove stray symlink in the package tarball.
-
-## 6.0.2 (2018-09-26)
-
-### Bug fixes
-
-Fix bug where default expressions could fail to parse inside an object destructuring assignment expression.
-
-## 6.0.1 (2018-09-14)
-
-### Bug fixes
-
-Fix wrong value in `version` export.
-
-## 6.0.0 (2018-09-14)
-
-### Bug fixes
-
-Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
-
-Forbid `new.target` in top-level arrow functions.
-
-Fix issue with parsing a regexp after `yield` in some contexts.
-
-### New features
-
-The package now comes with TypeScript definitions.
-
-### Breaking changes
-
-The default value of the `ecmaVersion` option is now 9 (2018).
-
-Plugins work differently, and will have to be rewritten to work with this version.
-
-The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).
-
-## 5.7.3 (2018-09-10)
-
-### Bug fixes
-
-Fix failure to tokenize regexps after expressions like `x.of`.
-
-Better error message for unterminated template literals.
-
-## 5.7.2 (2018-08-24)
-
-### Bug fixes
-
-Properly handle `allowAwaitOutsideFunction` in for statements.
-
-Treat function declarations at the top level of modules like let bindings.
-
-Don't allow async function declarations as the only statement under a label.
-
-## 5.7.0 (2018-06-15)
-
-### New features
-
-Upgraded to Unicode 11.
-
-## 5.6.0 (2018-05-31)
-
-### New features
-
-Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
-
-Allow binding-less catch statements when ECMAVersion >= 10.
-
-Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
-
-## 5.5.3 (2018-03-08)
-
-### Bug fixes
-
-A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
-
-## 5.5.2 (2018-03-08)
-
-### Bug fixes
-
-A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.
-
-## 5.5.1 (2018-03-06)
-
-### Bug fixes
-
-Fix misleading error message for octal escapes in template strings.
-
-## 5.5.0 (2018-02-27)
-
-### New features
-
-The identifier character categorization is now based on Unicode version 10.
-
-Acorn will now validate the content of regular expressions, including new ES9 features.
-
-## 5.4.0 (2018-02-01)
-
-### Bug fixes
-
-Disallow duplicate or escaped flags on regular expressions.
-
-Disallow octal escapes in strings in strict mode.
-
-### New features
-
-Add support for async iteration.
-
-Add support for object spread and rest.
-
-## 5.3.0 (2017-12-28)
-
-### Bug fixes
-
-Fix parsing of floating point literals with leading zeroes in loose mode.
-
-Allow duplicate property names in object patterns.
-
-Don't allow static class methods named `prototype`.
-
-Disallow async functions directly under `if` or `else`.
-
-Parse right-hand-side of `for`/`of` as an assignment expression.
-
-Stricter parsing of `for`/`in`.
-
-Don't allow unicode escapes in contextual keywords.
-
-### New features
-
-Parsing class members was factored into smaller methods to allow plugins to hook into it.
-
-## 5.2.1 (2017-10-30)
-
-### Bug fixes
-
-Fix a token context corruption bug.
-
-## 5.2.0 (2017-10-30)
-
-### Bug fixes
-
-Fix token context tracking for `class` and `function` in property-name position.
-
-Make sure `%*` isn't parsed as a valid operator.
-
-Allow shorthand properties `get` and `set` to be followed by default values.
-
-Disallow `super` when not in callee or object position.
-
-### New features
-
-Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.
-
-## 5.1.2 (2017-09-04)
-
-### Bug fixes
-
-Disable parsing of legacy HTML-style comments in modules.
-
-Fix parsing of async methods whose names are keywords.
-
-## 5.1.1 (2017-07-06)
-
-### Bug fixes
-
-Fix problem with disambiguating regexp and division after a class.
-
-## 5.1.0 (2017-07-05)
-
-### Bug fixes
-
-Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
-
-Parse zero-prefixed numbers with non-octal digits as decimal.
-
-Allow object/array patterns in rest parameters.
-
-Don't error when `yield` is used as a property name.
-
-Allow `async` as a shorthand object property.
-
-### New features
-
-Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.
-
-## 5.0.3 (2017-04-01)
-
-### Bug fixes
-
-Fix spurious duplicate variable definition errors for named functions.
-
-## 5.0.2 (2017-03-30)
-
-### Bug fixes
-
-A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
-
-## 5.0.0 (2017-03-28)
-
-### Bug fixes
-
-Raise an error for duplicated lexical bindings.
-
-Fix spurious error when an assignement expression occurred after a spread expression.
-
-Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
-
-Allow labels in front or `var` declarations, even in strict mode.
-
-### Breaking changes
-
-Parse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`.
-
-## 4.0.11 (2017-02-07)
-
-### Bug fixes
-
-Allow all forms of member expressions to be parenthesized as lvalue.
-
-## 4.0.10 (2017-02-07)
-
-### Bug fixes
-
-Don't expect semicolons after default-exported functions or classes, even when they are expressions.
-
-Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.
-
-## 4.0.9 (2017-02-06)
-
-### Bug fixes
-
-Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.
-
-## 4.0.8 (2017-02-03)
-
-### Bug fixes
-
-Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
-
-## 4.0.7 (2017-02-02)
-
-### Bug fixes
-
-Accept invalidly rejected code like `(x).y = 2` again.
-
-Don't raise an error when a function _inside_ strict code has a non-simple parameter list.
-
-## 4.0.6 (2017-02-02)
-
-### Bug fixes
-
-Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
-
-## 4.0.5 (2017-02-02)
-
-### Bug fixes
-
-Disallow parenthesized pattern expressions.
-
-Allow keywords as export names.
-
-Don't allow the `async` keyword to be parenthesized.
-
-Properly raise an error when a keyword contains a character escape.
-
-Allow `"use strict"` to appear after other string literal expressions.
-
-Disallow labeled declarations.
-
-## 4.0.4 (2016-12-19)
-
-### Bug fixes
-
-Fix crash when `export` was followed by a keyword that can't be
-exported.
-
-## 4.0.3 (2016-08-16)
-
-### Bug fixes
-
-Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
-
-Properly parse properties named `async` in ES2017 mode.
-
-Fix bug where reserved words were broken in ES2017 mode.
-
-## 4.0.2 (2016-08-11)
-
-### Bug fixes
-
-Don't ignore period or 'e' characters after octal numbers.
-
-Fix broken parsing for call expressions in default parameter values of arrow functions.
-
-## 4.0.1 (2016-08-08)
-
-### Bug fixes
-
-Fix false positives in duplicated export name errors.
-
-## 4.0.0 (2016-08-07)
-
-### Breaking changes
-
-The default `ecmaVersion` option value is now 7.
-
-A number of internal method signatures changed, so plugins might need to be updated.
-
-### Bug fixes
-
-The parser now raises errors on duplicated export names.
-
-`arguments` and `eval` can now be used in shorthand properties.
-
-Duplicate parameter names in non-simple argument lists now always produce an error.
-
-### New features
-
-The `ecmaVersion` option now also accepts year-style version numbers
-(2015, etc).
-
-Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
-
-Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
-
-## 3.3.0 (2016-07-25)
-
-### Bug fixes
-
-Fix bug in tokenizing of regexp operator after a function declaration.
-
-Fix parser crash when parsing an array pattern with a hole.
-
-### New features
-
-Implement check against complex argument lists in functions that enable strict mode in ES7.
-
-## 3.2.0 (2016-06-07)
-
-### Bug fixes
-
-Improve handling of lack of unicode regexp support in host
-environment.
-
-Properly reject shorthand properties whose name is a keyword.
-
-### New features
-
-Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.
-
-## 3.1.0 (2016-04-18)
-
-### Bug fixes
-
-Properly tokenize the division operator directly after a function expression.
-
-Allow trailing comma in destructuring arrays.
-
-## 3.0.4 (2016-02-25)
-
-### Fixes
-
-Allow update expressions as left-hand-side of the ES7 exponential operator.
-
-## 3.0.2 (2016-02-10)
-
-### Fixes
-
-Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
-
-## 3.0.0 (2016-02-10)
-
-### Breaking changes
-
-The default value of the `ecmaVersion` option is now 6 (used to be 5).
-
-Support for comprehension syntax (which was dropped from the draft spec) has been removed.
-
-### Fixes
-
-`let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.
-
-A parenthesized class or function expression after `export default` is now parsed correctly.
-
-### New features
-
-When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
-
-The identifier character ranges are now based on Unicode 8.0.0.
-
-Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.
-
-## 2.7.0 (2016-01-04)
-
-### Fixes
-
-Stop allowing rest parameters in setters.
-
-Disallow `y` rexexp flag in ES5.
-
-Disallow `\00` and `\000` escapes in strict mode.
-
-Raise an error when an import name is a reserved word.
-
-## 2.6.2 (2015-11-10)
-
-### Fixes
-
-Don't crash when no options object is passed.
-
-## 2.6.0 (2015-11-09)
-
-### Fixes
-
-Add `await` as a reserved word in module sources.
-
-Disallow `yield` in a parameter default value for a generator.
-
-Forbid using a comma after a rest pattern in an array destructuring.
-
-### New features
-
-Support parsing stdin in command-line tool.
-
-## 2.5.0 (2015-10-27)
-
-### Fixes
-
-Fix tokenizer support in the command-line tool.
-
-Stop allowing `new.target` outside of functions.
-
-Remove legacy `guard` and `guardedHandler` properties from try nodes.
-
-Stop allowing multiple `__proto__` properties on an object literal in strict mode.
-
-Don't allow rest parameters to be non-identifier patterns.
-
-Check for duplicate paramter names in arrow functions.
diff --git a/graphql/node_modules/acorn/LICENSE b/graphql/node_modules/acorn/LICENSE
deleted file mode 100644
index 9d71cc63..00000000
--- a/graphql/node_modules/acorn/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (C) 2012-2022 by various contributors (see AUTHORS)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/graphql/node_modules/acorn/README.md b/graphql/node_modules/acorn/README.md
deleted file mode 100644
index f7ff9662..00000000
--- a/graphql/node_modules/acorn/README.md
+++ /dev/null
@@ -1,282 +0,0 @@
-# Acorn
-
-A tiny, fast JavaScript parser written in JavaScript.
-
-## Community
-
-Acorn is open source software released under an
-[MIT license](https://github.com/acornjs/acorn/blob/master/acorn/LICENSE).
-
-You are welcome to
-[report bugs](https://github.com/acornjs/acorn/issues) or create pull
-requests on [github](https://github.com/acornjs/acorn).
-
-## Installation
-
-The easiest way to install acorn is from [`npm`](https://www.npmjs.com/):
-
-```sh
-npm install acorn
-```
-
-Alternately, you can download the source and build acorn yourself:
-
-```sh
-git clone https://github.com/acornjs/acorn.git
-cd acorn
-npm install
-```
-
-## Interface
-
-**parse**`(input, options)` is the main interface to the library. The
-`input` parameter is a string, `options` must be an object setting
-some of the options listed below. The return value will be an abstract
-syntax tree object as specified by the [ESTree
-spec](https://github.com/estree/estree).
-
-```javascript
-let acorn = require("acorn");
-console.log(acorn.parse("1 + 1", {ecmaVersion: 2020}));
-```
-
-When encountering a syntax error, the parser will raise a
-`SyntaxError` object with a meaningful message. The error object will
-have a `pos` property that indicates the string offset at which the
-error occurred, and a `loc` object that contains a `{line, column}`
-object referring to that same position.
-
-Options are provided by in a second argument, which should be an
-object containing any of these fields (only `ecmaVersion` is
-required):
-
-- **ecmaVersion**: Indicates the ECMAScript version to parse. Can be a
-  number, either in year (`2022`) or plain version number (`6`) form,
-  or `"latest"` (the latest the library supports). This influences
-  support for strict mode, the set of reserved words, and support for
-  new syntax features.
-
-  **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
-  implemented by Acorn. Other proposed new features must be
-  implemented through plugins.
-
-- **sourceType**: Indicate the mode the code should be parsed in. Can be
-  either `"script"` or `"module"`. This influences global strict mode
-  and parsing of `import` and `export` declarations.
-
-  **NOTE**: If set to `"module"`, then static `import` / `export` syntax
-  will be valid, even if `ecmaVersion` is less than 6.
-
-- **onInsertedSemicolon**: If given a callback, that callback will be
-  called whenever a missing semicolon is inserted by the parser. The
-  callback will be given the character offset of the point where the
-  semicolon is inserted as argument, and if `locations` is on, also a
-  `{line, column}` object representing this position.
-
-- **onTrailingComma**: Like `onInsertedSemicolon`, but for trailing
-  commas.
-
-- **allowReserved**: If `false`, using a reserved word will generate
-  an error. Defaults to `true` for `ecmaVersion` 3, `false` for higher
-  versions. When given the value `"never"`, reserved words and
-  keywords can also not be used as property names (as in Internet
-  Explorer's old parser).
-
-- **allowReturnOutsideFunction**: By default, a return statement at
-  the top level raises an error. Set this to `true` to accept such
-  code.
-
-- **allowImportExportEverywhere**: By default, `import` and `export`
-  declarations can only appear at a program's top level. Setting this
-  option to `true` allows them anywhere where a statement is allowed,
-  and also allows `import.meta` expressions to appear in scripts
-  (when `sourceType` is not `"module"`).
-
-- **allowAwaitOutsideFunction**: If `false`, `await` expressions can
-  only appear inside `async` functions. Defaults to `true` in modules
-  for `ecmaVersion` 2022 and later, `false` for lower versions.
-  Setting this option to `true` allows to have top-level `await`
-  expressions. They are still not allowed in non-`async` functions,
-  though.
-
-- **allowSuperOutsideMethod**: By default, `super` outside a method
-  raises an error. Set this to `true` to accept such code.
-
-- **allowHashBang**: When this is enabled, if the code starts with the
-  characters `#!` (as in a shellscript), the first line will be
-  treated as a comment. Defaults to true when `ecmaVersion` >= 2023.
-
-- **checkPrivateFields**: By default, the parser will verify that
-  private properties are only used in places where they are valid and
-  have been declared. Set this to false to turn such checks off.
-
-- **locations**: When `true`, each node has a `loc` object attached
-  with `start` and `end` subobjects, each of which contains the
-  one-based line and zero-based column numbers in `{line, column}`
-  form. Default is `false`.
-
-- **onToken**: If a function is passed for this option, each found
-  token will be passed in same format as tokens returned from
-  `tokenizer().getToken()`.
-
-  If array is passed, each found token is pushed to it.
-
-  Note that you are not allowed to call the parser from the
-  callback—that will corrupt its internal state.
-
-- **onComment**: If a function is passed for this option, whenever a
-  comment is encountered the function will be called with the
-  following parameters:
-
-  - `block`: `true` if the comment is a block comment, false if it
-    is a line comment.
-  - `text`: The content of the comment.
-  - `start`: Character offset of the start of the comment.
-  - `end`: Character offset of the end of the comment.
-
-  When the `locations` options is on, the `{line, column}` locations
-  of the comment’s start and end are passed as two additional
-  parameters.
-
-  If array is passed for this option, each found comment is pushed
-  to it as object in Esprima format:
-
-  ```javascript
-  {
-    "type": "Line" | "Block",
-    "value": "comment text",
-    "start": Number,
-    "end": Number,
-    // If `locations` option is on:
-    "loc": {
-      "start": {line: Number, column: Number}
-      "end": {line: Number, column: Number}
-    },
-    // If `ranges` option is on:
-    "range": [Number, Number]
-  }
-  ```
-
-  Note that you are not allowed to call the parser from the
-  callback—that will corrupt its internal state.
-
-- **ranges**: Nodes have their start and end characters offsets
-  recorded in `start` and `end` properties (directly on the node,
-  rather than the `loc` object, which holds line/column data. To also
-  add a
-  [semi-standardized](https://bugzilla.mozilla.org/show_bug.cgi?id=745678)
-  `range` property holding a `[start, end]` array with the same
-  numbers, set the `ranges` option to `true`.
-
-- **program**: It is possible to parse multiple files into a single
-  AST by passing the tree produced by parsing the first file as the
-  `program` option in subsequent parses. This will add the toplevel
-  forms of the parsed file to the "Program" (top) node of an existing
-  parse tree.
-
-- **sourceFile**: When the `locations` option is `true`, you can pass
-  this option to add a `source` attribute in every node’s `loc`
-  object. Note that the contents of this option are not examined or
-  processed in any way; you are free to use whatever format you
-  choose.
-
-- **directSourceFile**: Like `sourceFile`, but a `sourceFile` property
-  will be added (regardless of the `location` option) directly to the
-  nodes, rather than the `loc` object.
-
-- **preserveParens**: If this option is `true`, parenthesized expressions
-  are represented by (non-standard) `ParenthesizedExpression` nodes
-  that have a single `expression` property containing the expression
-  inside parentheses.
-
-**parseExpressionAt**`(input, offset, options)` will parse a single
-expression in a string, and return its AST. It will not complain if
-there is more of the string left after the expression.
-
-**tokenizer**`(input, options)` returns an object with a `getToken`
-method that can be called repeatedly to get the next token, a `{start,
-end, type, value}` object (with added `loc` property when the
-`locations` option is enabled and `range` property when the `ranges`
-option is enabled). When the token's type is `tokTypes.eof`, you
-should stop calling the method, since it will keep returning that same
-token forever.
-
-Note that tokenizing JavaScript without parsing it is, in modern
-versions of the language, not really possible due to the way syntax is
-overloaded in ways that can only be disambiguated by the parse
-context. This package applies a bunch of heuristics to try and do a
-reasonable job, but you are advised to use `parse` with the `onToken`
-option instead of this.
-
-In ES6 environment, returned result can be used as any other
-protocol-compliant iterable:
-
-```javascript
-for (let token of acorn.tokenizer(str)) {
-  // iterate over the tokens
-}
-
-// transform code to array of tokens:
-var tokens = [...acorn.tokenizer(str)];
-```
-
-**tokTypes** holds an object mapping names to the token type objects
-that end up in the `type` properties of tokens.
-
-**getLineInfo**`(input, offset)` can be used to get a `{line,
-column}` object for a given program string and offset.
-
-### The `Parser` class
-
-Instances of the **`Parser`** class contain all the state and logic
-that drives a parse. It has static methods `parse`,
-`parseExpressionAt`, and `tokenizer` that match the top-level
-functions by the same name.
-
-When extending the parser with plugins, you need to call these methods
-on the extended version of the class. To extend a parser with plugins,
-you can use its static `extend` method.
-
-```javascript
-var acorn = require("acorn");
-var jsx = require("acorn-jsx");
-var JSXParser = acorn.Parser.extend(jsx());
-JSXParser.parse("foo()", {ecmaVersion: 2020});
-```
-
-The `extend` method takes any number of plugin values, and returns a
-new `Parser` class that includes the extra parser logic provided by
-the plugins.
-
-## Command line interface
-
-The `bin/acorn` utility can be used to parse a file from the command
-line. It accepts as arguments its input file and the following
-options:
-
-- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|--ecma10`: Sets the ECMAScript version
-  to parse. Default is version 9.
-
-- `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise.
-
-- `--locations`: Attaches a "loc" object to each node with "start" and
-  "end" subobjects, each of which contains the one-based line and
-  zero-based column numbers in `{line, column}` form.
-
-- `--allow-hash-bang`: If the code starts with the characters #! (as
-  in a shellscript), the first line will be treated as a comment.
-
-- `--allow-await-outside-function`: Allows top-level `await` expressions.
-  See the `allowAwaitOutsideFunction` option for more information.
-
-- `--compact`: No whitespace is used in the AST output.
-
-- `--silent`: Do not output the AST, just return the exit status.
-
-- `--help`: Print the usage information and quit.
-
-The utility spits out the syntax tree as JSON data.
-
-## Existing plugins
-
- - [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)
diff --git a/graphql/node_modules/acorn/bin/acorn b/graphql/node_modules/acorn/bin/acorn
deleted file mode 100755
index 3ef3c124..00000000
--- a/graphql/node_modules/acorn/bin/acorn
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env node
-"use strict"
-
-require("../dist/bin.js")
diff --git a/graphql/node_modules/acorn/dist/acorn.d.mts b/graphql/node_modules/acorn/dist/acorn.d.mts
deleted file mode 100644
index cd204b1c..00000000
--- a/graphql/node_modules/acorn/dist/acorn.d.mts
+++ /dev/null
@@ -1,856 +0,0 @@
-export interface Node {
-  start: number
-  end: number
-  type: string
-  range?: [number, number]
-  loc?: SourceLocation | null
-}
-
-export interface SourceLocation {
-  source?: string | null
-  start: Position
-  end: Position
-}
-
-export interface Position {
-  /** 1-based */
-  line: number
-  /** 0-based */
-  column: number
-}
-
-export interface Identifier extends Node {
-  type: "Identifier"
-  name: string
-}
-
-export interface Literal extends Node {
-  type: "Literal"
-  value?: string | boolean | null | number | RegExp | bigint
-  raw?: string
-  regex?: {
-    pattern: string
-    flags: string
-  }
-  bigint?: string
-}
-
-export interface Program extends Node {
-  type: "Program"
-  body: Array
-  sourceType: "script" | "module"
-}
-
-export interface Function extends Node {
-  id?: Identifier | null
-  params: Array
-  body: BlockStatement | Expression
-  generator: boolean
-  expression: boolean
-  async: boolean
-}
-
-export interface ExpressionStatement extends Node {
-  type: "ExpressionStatement"
-  expression: Expression | Literal
-  directive?: string
-}
-
-export interface BlockStatement extends Node {
-  type: "BlockStatement"
-  body: Array
-}
-
-export interface EmptyStatement extends Node {
-  type: "EmptyStatement"
-}
-
-export interface DebuggerStatement extends Node {
-  type: "DebuggerStatement"
-}
-
-export interface WithStatement extends Node {
-  type: "WithStatement"
-  object: Expression
-  body: Statement
-}
-
-export interface ReturnStatement extends Node {
-  type: "ReturnStatement"
-  argument?: Expression | null
-}
-
-export interface LabeledStatement extends Node {
-  type: "LabeledStatement"
-  label: Identifier
-  body: Statement
-}
-
-export interface BreakStatement extends Node {
-  type: "BreakStatement"
-  label?: Identifier | null
-}
-
-export interface ContinueStatement extends Node {
-  type: "ContinueStatement"
-  label?: Identifier | null
-}
-
-export interface IfStatement extends Node {
-  type: "IfStatement"
-  test: Expression
-  consequent: Statement
-  alternate?: Statement | null
-}
-
-export interface SwitchStatement extends Node {
-  type: "SwitchStatement"
-  discriminant: Expression
-  cases: Array
-}
-
-export interface SwitchCase extends Node {
-  type: "SwitchCase"
-  test?: Expression | null
-  consequent: Array
-}
-
-export interface ThrowStatement extends Node {
-  type: "ThrowStatement"
-  argument: Expression
-}
-
-export interface TryStatement extends Node {
-  type: "TryStatement"
-  block: BlockStatement
-  handler?: CatchClause | null
-  finalizer?: BlockStatement | null
-}
-
-export interface CatchClause extends Node {
-  type: "CatchClause"
-  param?: Pattern | null
-  body: BlockStatement
-}
-
-export interface WhileStatement extends Node {
-  type: "WhileStatement"
-  test: Expression
-  body: Statement
-}
-
-export interface DoWhileStatement extends Node {
-  type: "DoWhileStatement"
-  body: Statement
-  test: Expression
-}
-
-export interface ForStatement extends Node {
-  type: "ForStatement"
-  init?: VariableDeclaration | Expression | null
-  test?: Expression | null
-  update?: Expression | null
-  body: Statement
-}
-
-export interface ForInStatement extends Node {
-  type: "ForInStatement"
-  left: VariableDeclaration | Pattern
-  right: Expression
-  body: Statement
-}
-
-export interface FunctionDeclaration extends Function {
-  type: "FunctionDeclaration"
-  id: Identifier
-  body: BlockStatement
-}
-
-export interface VariableDeclaration extends Node {
-  type: "VariableDeclaration"
-  declarations: Array
-  kind: "var" | "let" | "const"
-}
-
-export interface VariableDeclarator extends Node {
-  type: "VariableDeclarator"
-  id: Pattern
-  init?: Expression | null
-}
-
-export interface ThisExpression extends Node {
-  type: "ThisExpression"
-}
-
-export interface ArrayExpression extends Node {
-  type: "ArrayExpression"
-  elements: Array
-}
-
-export interface ObjectExpression extends Node {
-  type: "ObjectExpression"
-  properties: Array
-}
-
-export interface Property extends Node {
-  type: "Property"
-  key: Expression
-  value: Expression
-  kind: "init" | "get" | "set"
-  method: boolean
-  shorthand: boolean
-  computed: boolean
-}
-
-export interface FunctionExpression extends Function {
-  type: "FunctionExpression"
-  body: BlockStatement
-}
-
-export interface UnaryExpression extends Node {
-  type: "UnaryExpression"
-  operator: UnaryOperator
-  prefix: boolean
-  argument: Expression
-}
-
-export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"
-
-export interface UpdateExpression extends Node {
-  type: "UpdateExpression"
-  operator: UpdateOperator
-  argument: Expression
-  prefix: boolean
-}
-
-export type UpdateOperator = "++" | "--"
-
-export interface BinaryExpression extends Node {
-  type: "BinaryExpression"
-  operator: BinaryOperator
-  left: Expression | PrivateIdentifier
-  right: Expression
-}
-
-export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in" | "instanceof" | "**"
-
-export interface AssignmentExpression extends Node {
-  type: "AssignmentExpression"
-  operator: AssignmentOperator
-  left: Pattern
-  right: Expression
-}
-
-export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??="
-
-export interface LogicalExpression extends Node {
-  type: "LogicalExpression"
-  operator: LogicalOperator
-  left: Expression
-  right: Expression
-}
-
-export type LogicalOperator = "||" | "&&" | "??"
-
-export interface MemberExpression extends Node {
-  type: "MemberExpression"
-  object: Expression | Super
-  property: Expression | PrivateIdentifier
-  computed: boolean
-  optional: boolean
-}
-
-export interface ConditionalExpression extends Node {
-  type: "ConditionalExpression"
-  test: Expression
-  alternate: Expression
-  consequent: Expression
-}
-
-export interface CallExpression extends Node {
-  type: "CallExpression"
-  callee: Expression | Super
-  arguments: Array
-  optional: boolean
-}
-
-export interface NewExpression extends Node {
-  type: "NewExpression"
-  callee: Expression
-  arguments: Array
-}
-
-export interface SequenceExpression extends Node {
-  type: "SequenceExpression"
-  expressions: Array
-}
-
-export interface ForOfStatement extends Node {
-  type: "ForOfStatement"
-  left: VariableDeclaration | Pattern
-  right: Expression
-  body: Statement
-  await: boolean
-}
-
-export interface Super extends Node {
-  type: "Super"
-}
-
-export interface SpreadElement extends Node {
-  type: "SpreadElement"
-  argument: Expression
-}
-
-export interface ArrowFunctionExpression extends Function {
-  type: "ArrowFunctionExpression"
-}
-
-export interface YieldExpression extends Node {
-  type: "YieldExpression"
-  argument?: Expression | null
-  delegate: boolean
-}
-
-export interface TemplateLiteral extends Node {
-  type: "TemplateLiteral"
-  quasis: Array
-  expressions: Array
-}
-
-export interface TaggedTemplateExpression extends Node {
-  type: "TaggedTemplateExpression"
-  tag: Expression
-  quasi: TemplateLiteral
-}
-
-export interface TemplateElement extends Node {
-  type: "TemplateElement"
-  tail: boolean
-  value: {
-    cooked?: string | null
-    raw: string
-  }
-}
-
-export interface AssignmentProperty extends Node {
-  type: "Property"
-  key: Expression
-  value: Pattern
-  kind: "init"
-  method: false
-  shorthand: boolean
-  computed: boolean
-}
-
-export interface ObjectPattern extends Node {
-  type: "ObjectPattern"
-  properties: Array
-}
-
-export interface ArrayPattern extends Node {
-  type: "ArrayPattern"
-  elements: Array
-}
-
-export interface RestElement extends Node {
-  type: "RestElement"
-  argument: Pattern
-}
-
-export interface AssignmentPattern extends Node {
-  type: "AssignmentPattern"
-  left: Pattern
-  right: Expression
-}
-
-export interface Class extends Node {
-  id?: Identifier | null
-  superClass?: Expression | null
-  body: ClassBody
-}
-
-export interface ClassBody extends Node {
-  type: "ClassBody"
-  body: Array
-}
-
-export interface MethodDefinition extends Node {
-  type: "MethodDefinition"
-  key: Expression | PrivateIdentifier
-  value: FunctionExpression
-  kind: "constructor" | "method" | "get" | "set"
-  computed: boolean
-  static: boolean
-}
-
-export interface ClassDeclaration extends Class {
-  type: "ClassDeclaration"
-  id: Identifier
-}
-
-export interface ClassExpression extends Class {
-  type: "ClassExpression"
-}
-
-export interface MetaProperty extends Node {
-  type: "MetaProperty"
-  meta: Identifier
-  property: Identifier
-}
-
-export interface ImportDeclaration extends Node {
-  type: "ImportDeclaration"
-  specifiers: Array
-  source: Literal
-}
-
-export interface ImportSpecifier extends Node {
-  type: "ImportSpecifier"
-  imported: Identifier | Literal
-  local: Identifier
-}
-
-export interface ImportDefaultSpecifier extends Node {
-  type: "ImportDefaultSpecifier"
-  local: Identifier
-}
-
-export interface ImportNamespaceSpecifier extends Node {
-  type: "ImportNamespaceSpecifier"
-  local: Identifier
-}
-
-export interface ExportNamedDeclaration extends Node {
-  type: "ExportNamedDeclaration"
-  declaration?: Declaration | null
-  specifiers: Array
-  source?: Literal | null
-}
-
-export interface ExportSpecifier extends Node {
-  type: "ExportSpecifier"
-  exported: Identifier | Literal
-  local: Identifier | Literal
-}
-
-export interface AnonymousFunctionDeclaration extends Function {
-  type: "FunctionDeclaration"
-  id: null
-  body: BlockStatement
-}
-
-export interface AnonymousClassDeclaration extends Class {
-  type: "ClassDeclaration"
-  id: null
-}
-
-export interface ExportDefaultDeclaration extends Node {
-  type: "ExportDefaultDeclaration"
-  declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression
-}
-
-export interface ExportAllDeclaration extends Node {
-  type: "ExportAllDeclaration"
-  source: Literal
-  exported?: Identifier | Literal | null
-}
-
-export interface AwaitExpression extends Node {
-  type: "AwaitExpression"
-  argument: Expression
-}
-
-export interface ChainExpression extends Node {
-  type: "ChainExpression"
-  expression: MemberExpression | CallExpression
-}
-
-export interface ImportExpression extends Node {
-  type: "ImportExpression"
-  source: Expression
-}
-
-export interface ParenthesizedExpression extends Node {
-  type: "ParenthesizedExpression"
-  expression: Expression
-}
-
-export interface PropertyDefinition extends Node {
-  type: "PropertyDefinition"
-  key: Expression | PrivateIdentifier
-  value?: Expression | null
-  computed: boolean
-  static: boolean
-}
-
-export interface PrivateIdentifier extends Node {
-  type: "PrivateIdentifier"
-  name: string
-}
-
-export interface StaticBlock extends Node {
-  type: "StaticBlock"
-  body: Array
-}
-
-export type Statement = 
-| ExpressionStatement
-| BlockStatement
-| EmptyStatement
-| DebuggerStatement
-| WithStatement
-| ReturnStatement
-| LabeledStatement
-| BreakStatement
-| ContinueStatement
-| IfStatement
-| SwitchStatement
-| ThrowStatement
-| TryStatement
-| WhileStatement
-| DoWhileStatement
-| ForStatement
-| ForInStatement
-| ForOfStatement
-| Declaration
-
-export type Declaration = 
-| FunctionDeclaration
-| VariableDeclaration
-| ClassDeclaration
-
-export type Expression = 
-| Identifier
-| Literal
-| ThisExpression
-| ArrayExpression
-| ObjectExpression
-| FunctionExpression
-| UnaryExpression
-| UpdateExpression
-| BinaryExpression
-| AssignmentExpression
-| LogicalExpression
-| MemberExpression
-| ConditionalExpression
-| CallExpression
-| NewExpression
-| SequenceExpression
-| ArrowFunctionExpression
-| YieldExpression
-| TemplateLiteral
-| TaggedTemplateExpression
-| ClassExpression
-| MetaProperty
-| AwaitExpression
-| ChainExpression
-| ImportExpression
-| ParenthesizedExpression
-
-export type Pattern = 
-| Identifier
-| MemberExpression
-| ObjectPattern
-| ArrayPattern
-| RestElement
-| AssignmentPattern
-
-export type ModuleDeclaration = 
-| ImportDeclaration
-| ExportNamedDeclaration
-| ExportDefaultDeclaration
-| ExportAllDeclaration
-
-export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator
-
-export function parse(input: string, options: Options): Program
-
-export function parseExpressionAt(input: string, pos: number, options: Options): Expression
-
-export function tokenizer(input: string, options: Options): {
-  getToken(): Token
-  [Symbol.iterator](): Iterator
-}
-
-export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest"
-
-export interface Options {
-  /**
-   * `ecmaVersion` indicates the ECMAScript version to parse. Can be a
-   * number, either in year (`2022`) or plain version number (`6`) form,
-   * or `"latest"` (the latest the library supports). This influences
-   * support for strict mode, the set of reserved words, and support for
-   * new syntax features.
-   */
-  ecmaVersion: ecmaVersion
-
-  /**
-   * `sourceType` indicates the mode the code should be parsed in.
-   * Can be either `"script"` or `"module"`. This influences global
-   * strict mode and parsing of `import` and `export` declarations.
-   */
-  sourceType?: "script" | "module"
-
-  /**
-   * a callback that will be called when a semicolon is automatically inserted.
-   * @param lastTokEnd the position of the comma as an offset
-   * @param lastTokEndLoc location if {@link locations} is enabled
-   */
-  onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
-
-  /**
-   * similar to `onInsertedSemicolon`, but for trailing commas
-   * @param lastTokEnd the position of the comma as an offset
-   * @param lastTokEndLoc location if `locations` is enabled
-   */
-  onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
-
-  /**
-   * By default, reserved words are only enforced if ecmaVersion >= 5.
-   * Set `allowReserved` to a boolean value to explicitly turn this on
-   * an off. When this option has the value "never", reserved words
-   * and keywords can also not be used as property names.
-   */
-  allowReserved?: boolean | "never"
-
-  /** 
-   * When enabled, a return at the top level is not considered an error.
-   */
-  allowReturnOutsideFunction?: boolean
-
-  /**
-   * When enabled, import/export statements are not constrained to
-   * appearing at the top of the program, and an import.meta expression
-   * in a script isn't considered an error.
-   */
-  allowImportExportEverywhere?: boolean
-
-  /**
-   * By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022.
-   * When enabled, await identifiers are allowed to appear at the top-level scope,
-   * but they are still not allowed in non-async functions.
-   */
-  allowAwaitOutsideFunction?: boolean
-
-  /**
-   * When enabled, super identifiers are not constrained to
-   * appearing in methods and do not raise an error when they appear elsewhere.
-   */
-  allowSuperOutsideMethod?: boolean
-
-  /**
-   * When enabled, hashbang directive in the beginning of file is
-   * allowed and treated as a line comment. Enabled by default when
-   * {@link ecmaVersion} >= 2023.
-   */
-  allowHashBang?: boolean
-
-  /**
-   * By default, the parser will verify that private properties are
-   * only used in places where they are valid and have been declared.
-   * Set this to false to turn such checks off.
-   */
-  checkPrivateFields?: boolean
-
-  /**
-   * When `locations` is on, `loc` properties holding objects with
-   * `start` and `end` properties as {@link Position} objects will be attached to the
-   * nodes.
-   */
-  locations?: boolean
-
-  /**
-   * a callback that will cause Acorn to call that export function with object in the same
-   * format as tokens returned from `tokenizer().getToken()`. Note
-   * that you are not allowed to call the parser from the
-   * callback—that will corrupt its internal state.
-   */
-  onToken?: ((token: Token) => void) | Token[]
-
-
-  /**
-   * This takes a export function or an array.
-   * 
-   * When a export function is passed, Acorn will call that export function with `(block, text, start,
-   * end)` parameters whenever a comment is skipped. `block` is a
-   * boolean indicating whether this is a block (`/* *\/`) comment,
-   * `text` is the content of the comment, and `start` and `end` are
-   * character offsets that denote the start and end of the comment.
-   * When the {@link locations} option is on, two more parameters are
-   * passed, the full locations of {@link Position} export type of the start and
-   * end of the comments.
-   * 
-   * When a array is passed, each found comment of {@link Comment} export type is pushed to the array.
-   * 
-   * Note that you are not allowed to call the
-   * parser from the callback—that will corrupt its internal state.
-   */
-  onComment?: ((
-    isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,
-    endLoc?: Position
-  ) => void) | Comment[]
-
-  /**
-   * Nodes have their start and end characters offsets recorded in
-   * `start` and `end` properties (directly on the node, rather than
-   * the `loc` object, which holds line/column data. To also add a
-   * [semi-standardized][range] `range` property holding a `[start,
-   * end]` array with the same numbers, set the `ranges` option to
-   * `true`.
-   */
-  ranges?: boolean
-
-  /**
-   * It is possible to parse multiple files into a single AST by
-   * passing the tree produced by parsing the first file as
-   * `program` option in subsequent parses. This will add the
-   * toplevel forms of the parsed file to the `Program` (top) node
-   * of an existing parse tree.
-   */
-  program?: Node
-
-  /**
-   * When {@link locations} is on, you can pass this to record the source
-   * file in every node's `loc` object.
-   */
-  sourceFile?: string
-
-  /**
-   * This value, if given, is stored in every node, whether {@link locations} is on or off.
-   */
-  directSourceFile?: string
-
-  /**
-   * When enabled, parenthesized expressions are represented by
-   * (non-standard) ParenthesizedExpression nodes
-   */
-  preserveParens?: boolean
-}
-  
-export class Parser {
-  options: Options
-  input: string
-  
-  protected constructor(options: Options, input: string, startPos?: number)
-  parse(): Program
-  
-  static parse(input: string, options: Options): Program
-  static parseExpressionAt(input: string, pos: number, options: Options): Expression
-  static tokenizer(input: string, options: Options): {
-    getToken(): Token
-    [Symbol.iterator](): Iterator
-  }
-  static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
-}
-
-export const defaultOptions: Options
-
-export function getLineInfo(input: string, offset: number): Position
-
-export class TokenType {
-  label: string
-  keyword: string | undefined
-}
-
-export const tokTypes: {
-  num: TokenType
-  regexp: TokenType
-  string: TokenType
-  name: TokenType
-  privateId: TokenType
-  eof: TokenType
-
-  bracketL: TokenType
-  bracketR: TokenType
-  braceL: TokenType
-  braceR: TokenType
-  parenL: TokenType
-  parenR: TokenType
-  comma: TokenType
-  semi: TokenType
-  colon: TokenType
-  dot: TokenType
-  question: TokenType
-  questionDot: TokenType
-  arrow: TokenType
-  template: TokenType
-  invalidTemplate: TokenType
-  ellipsis: TokenType
-  backQuote: TokenType
-  dollarBraceL: TokenType
-
-  eq: TokenType
-  assign: TokenType
-  incDec: TokenType
-  prefix: TokenType
-  logicalOR: TokenType
-  logicalAND: TokenType
-  bitwiseOR: TokenType
-  bitwiseXOR: TokenType
-  bitwiseAND: TokenType
-  equality: TokenType
-  relational: TokenType
-  bitShift: TokenType
-  plusMin: TokenType
-  modulo: TokenType
-  star: TokenType
-  slash: TokenType
-  starstar: TokenType
-  coalesce: TokenType
-
-  _break: TokenType
-  _case: TokenType
-  _catch: TokenType
-  _continue: TokenType
-  _debugger: TokenType
-  _default: TokenType
-  _do: TokenType
-  _else: TokenType
-  _finally: TokenType
-  _for: TokenType
-  _function: TokenType
-  _if: TokenType
-  _return: TokenType
-  _switch: TokenType
-  _throw: TokenType
-  _try: TokenType
-  _var: TokenType
-  _const: TokenType
-  _while: TokenType
-  _with: TokenType
-  _new: TokenType
-  _this: TokenType
-  _super: TokenType
-  _class: TokenType
-  _extends: TokenType
-  _export: TokenType
-  _import: TokenType
-  _null: TokenType
-  _true: TokenType
-  _false: TokenType
-  _in: TokenType
-  _instanceof: TokenType
-  _typeof: TokenType
-  _void: TokenType
-  _delete: TokenType
-}
-
-export interface Comment {
-  type: "Line" | "Block"
-  value: string
-  start: number
-  end: number
-  loc?: SourceLocation
-  range?: [number, number]
-}
-
-export class Token {
-  type: TokenType
-  start: number
-  end: number
-  loc?: SourceLocation
-  range?: [number, number]
-}
-
-export const version: string
diff --git a/graphql/node_modules/acorn/dist/acorn.d.ts b/graphql/node_modules/acorn/dist/acorn.d.ts
deleted file mode 100644
index cd204b1c..00000000
--- a/graphql/node_modules/acorn/dist/acorn.d.ts
+++ /dev/null
@@ -1,856 +0,0 @@
-export interface Node {
-  start: number
-  end: number
-  type: string
-  range?: [number, number]
-  loc?: SourceLocation | null
-}
-
-export interface SourceLocation {
-  source?: string | null
-  start: Position
-  end: Position
-}
-
-export interface Position {
-  /** 1-based */
-  line: number
-  /** 0-based */
-  column: number
-}
-
-export interface Identifier extends Node {
-  type: "Identifier"
-  name: string
-}
-
-export interface Literal extends Node {
-  type: "Literal"
-  value?: string | boolean | null | number | RegExp | bigint
-  raw?: string
-  regex?: {
-    pattern: string
-    flags: string
-  }
-  bigint?: string
-}
-
-export interface Program extends Node {
-  type: "Program"
-  body: Array
-  sourceType: "script" | "module"
-}
-
-export interface Function extends Node {
-  id?: Identifier | null
-  params: Array
-  body: BlockStatement | Expression
-  generator: boolean
-  expression: boolean
-  async: boolean
-}
-
-export interface ExpressionStatement extends Node {
-  type: "ExpressionStatement"
-  expression: Expression | Literal
-  directive?: string
-}
-
-export interface BlockStatement extends Node {
-  type: "BlockStatement"
-  body: Array
-}
-
-export interface EmptyStatement extends Node {
-  type: "EmptyStatement"
-}
-
-export interface DebuggerStatement extends Node {
-  type: "DebuggerStatement"
-}
-
-export interface WithStatement extends Node {
-  type: "WithStatement"
-  object: Expression
-  body: Statement
-}
-
-export interface ReturnStatement extends Node {
-  type: "ReturnStatement"
-  argument?: Expression | null
-}
-
-export interface LabeledStatement extends Node {
-  type: "LabeledStatement"
-  label: Identifier
-  body: Statement
-}
-
-export interface BreakStatement extends Node {
-  type: "BreakStatement"
-  label?: Identifier | null
-}
-
-export interface ContinueStatement extends Node {
-  type: "ContinueStatement"
-  label?: Identifier | null
-}
-
-export interface IfStatement extends Node {
-  type: "IfStatement"
-  test: Expression
-  consequent: Statement
-  alternate?: Statement | null
-}
-
-export interface SwitchStatement extends Node {
-  type: "SwitchStatement"
-  discriminant: Expression
-  cases: Array
-}
-
-export interface SwitchCase extends Node {
-  type: "SwitchCase"
-  test?: Expression | null
-  consequent: Array
-}
-
-export interface ThrowStatement extends Node {
-  type: "ThrowStatement"
-  argument: Expression
-}
-
-export interface TryStatement extends Node {
-  type: "TryStatement"
-  block: BlockStatement
-  handler?: CatchClause | null
-  finalizer?: BlockStatement | null
-}
-
-export interface CatchClause extends Node {
-  type: "CatchClause"
-  param?: Pattern | null
-  body: BlockStatement
-}
-
-export interface WhileStatement extends Node {
-  type: "WhileStatement"
-  test: Expression
-  body: Statement
-}
-
-export interface DoWhileStatement extends Node {
-  type: "DoWhileStatement"
-  body: Statement
-  test: Expression
-}
-
-export interface ForStatement extends Node {
-  type: "ForStatement"
-  init?: VariableDeclaration | Expression | null
-  test?: Expression | null
-  update?: Expression | null
-  body: Statement
-}
-
-export interface ForInStatement extends Node {
-  type: "ForInStatement"
-  left: VariableDeclaration | Pattern
-  right: Expression
-  body: Statement
-}
-
-export interface FunctionDeclaration extends Function {
-  type: "FunctionDeclaration"
-  id: Identifier
-  body: BlockStatement
-}
-
-export interface VariableDeclaration extends Node {
-  type: "VariableDeclaration"
-  declarations: Array
-  kind: "var" | "let" | "const"
-}
-
-export interface VariableDeclarator extends Node {
-  type: "VariableDeclarator"
-  id: Pattern
-  init?: Expression | null
-}
-
-export interface ThisExpression extends Node {
-  type: "ThisExpression"
-}
-
-export interface ArrayExpression extends Node {
-  type: "ArrayExpression"
-  elements: Array
-}
-
-export interface ObjectExpression extends Node {
-  type: "ObjectExpression"
-  properties: Array
-}
-
-export interface Property extends Node {
-  type: "Property"
-  key: Expression
-  value: Expression
-  kind: "init" | "get" | "set"
-  method: boolean
-  shorthand: boolean
-  computed: boolean
-}
-
-export interface FunctionExpression extends Function {
-  type: "FunctionExpression"
-  body: BlockStatement
-}
-
-export interface UnaryExpression extends Node {
-  type: "UnaryExpression"
-  operator: UnaryOperator
-  prefix: boolean
-  argument: Expression
-}
-
-export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"
-
-export interface UpdateExpression extends Node {
-  type: "UpdateExpression"
-  operator: UpdateOperator
-  argument: Expression
-  prefix: boolean
-}
-
-export type UpdateOperator = "++" | "--"
-
-export interface BinaryExpression extends Node {
-  type: "BinaryExpression"
-  operator: BinaryOperator
-  left: Expression | PrivateIdentifier
-  right: Expression
-}
-
-export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in" | "instanceof" | "**"
-
-export interface AssignmentExpression extends Node {
-  type: "AssignmentExpression"
-  operator: AssignmentOperator
-  left: Pattern
-  right: Expression
-}
-
-export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??="
-
-export interface LogicalExpression extends Node {
-  type: "LogicalExpression"
-  operator: LogicalOperator
-  left: Expression
-  right: Expression
-}
-
-export type LogicalOperator = "||" | "&&" | "??"
-
-export interface MemberExpression extends Node {
-  type: "MemberExpression"
-  object: Expression | Super
-  property: Expression | PrivateIdentifier
-  computed: boolean
-  optional: boolean
-}
-
-export interface ConditionalExpression extends Node {
-  type: "ConditionalExpression"
-  test: Expression
-  alternate: Expression
-  consequent: Expression
-}
-
-export interface CallExpression extends Node {
-  type: "CallExpression"
-  callee: Expression | Super
-  arguments: Array
-  optional: boolean
-}
-
-export interface NewExpression extends Node {
-  type: "NewExpression"
-  callee: Expression
-  arguments: Array
-}
-
-export interface SequenceExpression extends Node {
-  type: "SequenceExpression"
-  expressions: Array
-}
-
-export interface ForOfStatement extends Node {
-  type: "ForOfStatement"
-  left: VariableDeclaration | Pattern
-  right: Expression
-  body: Statement
-  await: boolean
-}
-
-export interface Super extends Node {
-  type: "Super"
-}
-
-export interface SpreadElement extends Node {
-  type: "SpreadElement"
-  argument: Expression
-}
-
-export interface ArrowFunctionExpression extends Function {
-  type: "ArrowFunctionExpression"
-}
-
-export interface YieldExpression extends Node {
-  type: "YieldExpression"
-  argument?: Expression | null
-  delegate: boolean
-}
-
-export interface TemplateLiteral extends Node {
-  type: "TemplateLiteral"
-  quasis: Array
-  expressions: Array
-}
-
-export interface TaggedTemplateExpression extends Node {
-  type: "TaggedTemplateExpression"
-  tag: Expression
-  quasi: TemplateLiteral
-}
-
-export interface TemplateElement extends Node {
-  type: "TemplateElement"
-  tail: boolean
-  value: {
-    cooked?: string | null
-    raw: string
-  }
-}
-
-export interface AssignmentProperty extends Node {
-  type: "Property"
-  key: Expression
-  value: Pattern
-  kind: "init"
-  method: false
-  shorthand: boolean
-  computed: boolean
-}
-
-export interface ObjectPattern extends Node {
-  type: "ObjectPattern"
-  properties: Array
-}
-
-export interface ArrayPattern extends Node {
-  type: "ArrayPattern"
-  elements: Array
-}
-
-export interface RestElement extends Node {
-  type: "RestElement"
-  argument: Pattern
-}
-
-export interface AssignmentPattern extends Node {
-  type: "AssignmentPattern"
-  left: Pattern
-  right: Expression
-}
-
-export interface Class extends Node {
-  id?: Identifier | null
-  superClass?: Expression | null
-  body: ClassBody
-}
-
-export interface ClassBody extends Node {
-  type: "ClassBody"
-  body: Array
-}
-
-export interface MethodDefinition extends Node {
-  type: "MethodDefinition"
-  key: Expression | PrivateIdentifier
-  value: FunctionExpression
-  kind: "constructor" | "method" | "get" | "set"
-  computed: boolean
-  static: boolean
-}
-
-export interface ClassDeclaration extends Class {
-  type: "ClassDeclaration"
-  id: Identifier
-}
-
-export interface ClassExpression extends Class {
-  type: "ClassExpression"
-}
-
-export interface MetaProperty extends Node {
-  type: "MetaProperty"
-  meta: Identifier
-  property: Identifier
-}
-
-export interface ImportDeclaration extends Node {
-  type: "ImportDeclaration"
-  specifiers: Array
-  source: Literal
-}
-
-export interface ImportSpecifier extends Node {
-  type: "ImportSpecifier"
-  imported: Identifier | Literal
-  local: Identifier
-}
-
-export interface ImportDefaultSpecifier extends Node {
-  type: "ImportDefaultSpecifier"
-  local: Identifier
-}
-
-export interface ImportNamespaceSpecifier extends Node {
-  type: "ImportNamespaceSpecifier"
-  local: Identifier
-}
-
-export interface ExportNamedDeclaration extends Node {
-  type: "ExportNamedDeclaration"
-  declaration?: Declaration | null
-  specifiers: Array
-  source?: Literal | null
-}
-
-export interface ExportSpecifier extends Node {
-  type: "ExportSpecifier"
-  exported: Identifier | Literal
-  local: Identifier | Literal
-}
-
-export interface AnonymousFunctionDeclaration extends Function {
-  type: "FunctionDeclaration"
-  id: null
-  body: BlockStatement
-}
-
-export interface AnonymousClassDeclaration extends Class {
-  type: "ClassDeclaration"
-  id: null
-}
-
-export interface ExportDefaultDeclaration extends Node {
-  type: "ExportDefaultDeclaration"
-  declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression
-}
-
-export interface ExportAllDeclaration extends Node {
-  type: "ExportAllDeclaration"
-  source: Literal
-  exported?: Identifier | Literal | null
-}
-
-export interface AwaitExpression extends Node {
-  type: "AwaitExpression"
-  argument: Expression
-}
-
-export interface ChainExpression extends Node {
-  type: "ChainExpression"
-  expression: MemberExpression | CallExpression
-}
-
-export interface ImportExpression extends Node {
-  type: "ImportExpression"
-  source: Expression
-}
-
-export interface ParenthesizedExpression extends Node {
-  type: "ParenthesizedExpression"
-  expression: Expression
-}
-
-export interface PropertyDefinition extends Node {
-  type: "PropertyDefinition"
-  key: Expression | PrivateIdentifier
-  value?: Expression | null
-  computed: boolean
-  static: boolean
-}
-
-export interface PrivateIdentifier extends Node {
-  type: "PrivateIdentifier"
-  name: string
-}
-
-export interface StaticBlock extends Node {
-  type: "StaticBlock"
-  body: Array
-}
-
-export type Statement = 
-| ExpressionStatement
-| BlockStatement
-| EmptyStatement
-| DebuggerStatement
-| WithStatement
-| ReturnStatement
-| LabeledStatement
-| BreakStatement
-| ContinueStatement
-| IfStatement
-| SwitchStatement
-| ThrowStatement
-| TryStatement
-| WhileStatement
-| DoWhileStatement
-| ForStatement
-| ForInStatement
-| ForOfStatement
-| Declaration
-
-export type Declaration = 
-| FunctionDeclaration
-| VariableDeclaration
-| ClassDeclaration
-
-export type Expression = 
-| Identifier
-| Literal
-| ThisExpression
-| ArrayExpression
-| ObjectExpression
-| FunctionExpression
-| UnaryExpression
-| UpdateExpression
-| BinaryExpression
-| AssignmentExpression
-| LogicalExpression
-| MemberExpression
-| ConditionalExpression
-| CallExpression
-| NewExpression
-| SequenceExpression
-| ArrowFunctionExpression
-| YieldExpression
-| TemplateLiteral
-| TaggedTemplateExpression
-| ClassExpression
-| MetaProperty
-| AwaitExpression
-| ChainExpression
-| ImportExpression
-| ParenthesizedExpression
-
-export type Pattern = 
-| Identifier
-| MemberExpression
-| ObjectPattern
-| ArrayPattern
-| RestElement
-| AssignmentPattern
-
-export type ModuleDeclaration = 
-| ImportDeclaration
-| ExportNamedDeclaration
-| ExportDefaultDeclaration
-| ExportAllDeclaration
-
-export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator
-
-export function parse(input: string, options: Options): Program
-
-export function parseExpressionAt(input: string, pos: number, options: Options): Expression
-
-export function tokenizer(input: string, options: Options): {
-  getToken(): Token
-  [Symbol.iterator](): Iterator
-}
-
-export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest"
-
-export interface Options {
-  /**
-   * `ecmaVersion` indicates the ECMAScript version to parse. Can be a
-   * number, either in year (`2022`) or plain version number (`6`) form,
-   * or `"latest"` (the latest the library supports). This influences
-   * support for strict mode, the set of reserved words, and support for
-   * new syntax features.
-   */
-  ecmaVersion: ecmaVersion
-
-  /**
-   * `sourceType` indicates the mode the code should be parsed in.
-   * Can be either `"script"` or `"module"`. This influences global
-   * strict mode and parsing of `import` and `export` declarations.
-   */
-  sourceType?: "script" | "module"
-
-  /**
-   * a callback that will be called when a semicolon is automatically inserted.
-   * @param lastTokEnd the position of the comma as an offset
-   * @param lastTokEndLoc location if {@link locations} is enabled
-   */
-  onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
-
-  /**
-   * similar to `onInsertedSemicolon`, but for trailing commas
-   * @param lastTokEnd the position of the comma as an offset
-   * @param lastTokEndLoc location if `locations` is enabled
-   */
-  onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
-
-  /**
-   * By default, reserved words are only enforced if ecmaVersion >= 5.
-   * Set `allowReserved` to a boolean value to explicitly turn this on
-   * an off. When this option has the value "never", reserved words
-   * and keywords can also not be used as property names.
-   */
-  allowReserved?: boolean | "never"
-
-  /** 
-   * When enabled, a return at the top level is not considered an error.
-   */
-  allowReturnOutsideFunction?: boolean
-
-  /**
-   * When enabled, import/export statements are not constrained to
-   * appearing at the top of the program, and an import.meta expression
-   * in a script isn't considered an error.
-   */
-  allowImportExportEverywhere?: boolean
-
-  /**
-   * By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022.
-   * When enabled, await identifiers are allowed to appear at the top-level scope,
-   * but they are still not allowed in non-async functions.
-   */
-  allowAwaitOutsideFunction?: boolean
-
-  /**
-   * When enabled, super identifiers are not constrained to
-   * appearing in methods and do not raise an error when they appear elsewhere.
-   */
-  allowSuperOutsideMethod?: boolean
-
-  /**
-   * When enabled, hashbang directive in the beginning of file is
-   * allowed and treated as a line comment. Enabled by default when
-   * {@link ecmaVersion} >= 2023.
-   */
-  allowHashBang?: boolean
-
-  /**
-   * By default, the parser will verify that private properties are
-   * only used in places where they are valid and have been declared.
-   * Set this to false to turn such checks off.
-   */
-  checkPrivateFields?: boolean
-
-  /**
-   * When `locations` is on, `loc` properties holding objects with
-   * `start` and `end` properties as {@link Position} objects will be attached to the
-   * nodes.
-   */
-  locations?: boolean
-
-  /**
-   * a callback that will cause Acorn to call that export function with object in the same
-   * format as tokens returned from `tokenizer().getToken()`. Note
-   * that you are not allowed to call the parser from the
-   * callback—that will corrupt its internal state.
-   */
-  onToken?: ((token: Token) => void) | Token[]
-
-
-  /**
-   * This takes a export function or an array.
-   * 
-   * When a export function is passed, Acorn will call that export function with `(block, text, start,
-   * end)` parameters whenever a comment is skipped. `block` is a
-   * boolean indicating whether this is a block (`/* *\/`) comment,
-   * `text` is the content of the comment, and `start` and `end` are
-   * character offsets that denote the start and end of the comment.
-   * When the {@link locations} option is on, two more parameters are
-   * passed, the full locations of {@link Position} export type of the start and
-   * end of the comments.
-   * 
-   * When a array is passed, each found comment of {@link Comment} export type is pushed to the array.
-   * 
-   * Note that you are not allowed to call the
-   * parser from the callback—that will corrupt its internal state.
-   */
-  onComment?: ((
-    isBlock: boolean, text: string, start: number, end: number, startLoc?: Position,
-    endLoc?: Position
-  ) => void) | Comment[]
-
-  /**
-   * Nodes have their start and end characters offsets recorded in
-   * `start` and `end` properties (directly on the node, rather than
-   * the `loc` object, which holds line/column data. To also add a
-   * [semi-standardized][range] `range` property holding a `[start,
-   * end]` array with the same numbers, set the `ranges` option to
-   * `true`.
-   */
-  ranges?: boolean
-
-  /**
-   * It is possible to parse multiple files into a single AST by
-   * passing the tree produced by parsing the first file as
-   * `program` option in subsequent parses. This will add the
-   * toplevel forms of the parsed file to the `Program` (top) node
-   * of an existing parse tree.
-   */
-  program?: Node
-
-  /**
-   * When {@link locations} is on, you can pass this to record the source
-   * file in every node's `loc` object.
-   */
-  sourceFile?: string
-
-  /**
-   * This value, if given, is stored in every node, whether {@link locations} is on or off.
-   */
-  directSourceFile?: string
-
-  /**
-   * When enabled, parenthesized expressions are represented by
-   * (non-standard) ParenthesizedExpression nodes
-   */
-  preserveParens?: boolean
-}
-  
-export class Parser {
-  options: Options
-  input: string
-  
-  protected constructor(options: Options, input: string, startPos?: number)
-  parse(): Program
-  
-  static parse(input: string, options: Options): Program
-  static parseExpressionAt(input: string, pos: number, options: Options): Expression
-  static tokenizer(input: string, options: Options): {
-    getToken(): Token
-    [Symbol.iterator](): Iterator
-  }
-  static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser
-}
-
-export const defaultOptions: Options
-
-export function getLineInfo(input: string, offset: number): Position
-
-export class TokenType {
-  label: string
-  keyword: string | undefined
-}
-
-export const tokTypes: {
-  num: TokenType
-  regexp: TokenType
-  string: TokenType
-  name: TokenType
-  privateId: TokenType
-  eof: TokenType
-
-  bracketL: TokenType
-  bracketR: TokenType
-  braceL: TokenType
-  braceR: TokenType
-  parenL: TokenType
-  parenR: TokenType
-  comma: TokenType
-  semi: TokenType
-  colon: TokenType
-  dot: TokenType
-  question: TokenType
-  questionDot: TokenType
-  arrow: TokenType
-  template: TokenType
-  invalidTemplate: TokenType
-  ellipsis: TokenType
-  backQuote: TokenType
-  dollarBraceL: TokenType
-
-  eq: TokenType
-  assign: TokenType
-  incDec: TokenType
-  prefix: TokenType
-  logicalOR: TokenType
-  logicalAND: TokenType
-  bitwiseOR: TokenType
-  bitwiseXOR: TokenType
-  bitwiseAND: TokenType
-  equality: TokenType
-  relational: TokenType
-  bitShift: TokenType
-  plusMin: TokenType
-  modulo: TokenType
-  star: TokenType
-  slash: TokenType
-  starstar: TokenType
-  coalesce: TokenType
-
-  _break: TokenType
-  _case: TokenType
-  _catch: TokenType
-  _continue: TokenType
-  _debugger: TokenType
-  _default: TokenType
-  _do: TokenType
-  _else: TokenType
-  _finally: TokenType
-  _for: TokenType
-  _function: TokenType
-  _if: TokenType
-  _return: TokenType
-  _switch: TokenType
-  _throw: TokenType
-  _try: TokenType
-  _var: TokenType
-  _const: TokenType
-  _while: TokenType
-  _with: TokenType
-  _new: TokenType
-  _this: TokenType
-  _super: TokenType
-  _class: TokenType
-  _extends: TokenType
-  _export: TokenType
-  _import: TokenType
-  _null: TokenType
-  _true: TokenType
-  _false: TokenType
-  _in: TokenType
-  _instanceof: TokenType
-  _typeof: TokenType
-  _void: TokenType
-  _delete: TokenType
-}
-
-export interface Comment {
-  type: "Line" | "Block"
-  value: string
-  start: number
-  end: number
-  loc?: SourceLocation
-  range?: [number, number]
-}
-
-export class Token {
-  type: TokenType
-  start: number
-  end: number
-  loc?: SourceLocation
-  range?: [number, number]
-}
-
-export const version: string
diff --git a/graphql/node_modules/acorn/dist/acorn.js b/graphql/node_modules/acorn/dist/acorn.js
deleted file mode 100644
index 68bf2a71..00000000
--- a/graphql/node_modules/acorn/dist/acorn.js
+++ /dev/null
@@ -1,6065 +0,0 @@
-(function (global, factory) {
-  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
-  typeof define === 'function' && define.amd ? define(['exports'], factory) :
-  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {}));
-})(this, (function (exports) { 'use strict';
-
-  // This file was generated. Do not modify manually!
-  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
-
-  // This file was generated. Do not modify manually!
-  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
-
-  // This file was generated. Do not modify manually!
-  var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
-
-  // This file was generated. Do not modify manually!
-  var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
-
-  // These are a run-length and offset encoded representation of the
-  // >0xffff code points that are a valid part of identifiers. The
-  // offset starts at 0x10000, and each pair of numbers represents an
-  // offset to the next range, and then a size of the range.
-
-  // Reserved word lists for various dialects of the language
-
-  var reservedWords = {
-    3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
-    5: "class enum extends super const export import",
-    6: "enum",
-    strict: "implements interface let package private protected public static yield",
-    strictBind: "eval arguments"
-  };
-
-  // And the keywords
-
-  var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";
-
-  var keywords$1 = {
-    5: ecma5AndLessKeywords,
-    "5module": ecma5AndLessKeywords + " export import",
-    6: ecma5AndLessKeywords + " const class extends export import super"
-  };
-
-  var keywordRelationalOperator = /^in(stanceof)?$/;
-
-  // ## Character categories
-
-  var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
-  var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
-
-  // This has a complexity linear to the value of the code. The
-  // assumption is that looking up astral identifier characters is
-  // rare.
-  function isInAstralSet(code, set) {
-    var pos = 0x10000;
-    for (var i = 0; i < set.length; i += 2) {
-      pos += set[i];
-      if (pos > code) { return false }
-      pos += set[i + 1];
-      if (pos >= code) { return true }
-    }
-    return false
-  }
-
-  // Test whether a given character code starts an identifier.
-
-  function isIdentifierStart(code, astral) {
-    if (code < 65) { return code === 36 }
-    if (code < 91) { return true }
-    if (code < 97) { return code === 95 }
-    if (code < 123) { return true }
-    if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }
-    if (astral === false) { return false }
-    return isInAstralSet(code, astralIdentifierStartCodes)
-  }
-
-  // Test whether a given character is part of an identifier.
-
-  function isIdentifierChar(code, astral) {
-    if (code < 48) { return code === 36 }
-    if (code < 58) { return true }
-    if (code < 65) { return false }
-    if (code < 91) { return true }
-    if (code < 97) { return code === 95 }
-    if (code < 123) { return true }
-    if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }
-    if (astral === false) { return false }
-    return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)
-  }
-
-  // ## Token types
-
-  // The assignment of fine-grained, information-carrying type objects
-  // allows the tokenizer to store the information it has about a
-  // token in a way that is very cheap for the parser to look up.
-
-  // All token type variables start with an underscore, to make them
-  // easy to recognize.
-
-  // The `beforeExpr` property is used to disambiguate between regular
-  // expressions and divisions. It is set on all token types that can
-  // be followed by an expression (thus, a slash after them would be a
-  // regular expression).
-  //
-  // The `startsExpr` property is used to check if the token ends a
-  // `yield` expression. It is set on all token types that either can
-  // directly start an expression (like a quotation mark) or can
-  // continue an expression (like the body of a string).
-  //
-  // `isLoop` marks a keyword as starting a loop, which is important
-  // to know when parsing a label, in order to allow or disallow
-  // continue jumps to that label.
-
-  var TokenType = function TokenType(label, conf) {
-    if ( conf === void 0 ) conf = {};
-
-    this.label = label;
-    this.keyword = conf.keyword;
-    this.beforeExpr = !!conf.beforeExpr;
-    this.startsExpr = !!conf.startsExpr;
-    this.isLoop = !!conf.isLoop;
-    this.isAssign = !!conf.isAssign;
-    this.prefix = !!conf.prefix;
-    this.postfix = !!conf.postfix;
-    this.binop = conf.binop || null;
-    this.updateContext = null;
-  };
-
-  function binop(name, prec) {
-    return new TokenType(name, {beforeExpr: true, binop: prec})
-  }
-  var beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true};
-
-  // Map keyword names to token types.
-
-  var keywords = {};
-
-  // Succinct definitions of keyword token types
-  function kw(name, options) {
-    if ( options === void 0 ) options = {};
-
-    options.keyword = name;
-    return keywords[name] = new TokenType(name, options)
-  }
-
-  var types$1 = {
-    num: new TokenType("num", startsExpr),
-    regexp: new TokenType("regexp", startsExpr),
-    string: new TokenType("string", startsExpr),
-    name: new TokenType("name", startsExpr),
-    privateId: new TokenType("privateId", startsExpr),
-    eof: new TokenType("eof"),
-
-    // Punctuation token types.
-    bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}),
-    bracketR: new TokenType("]"),
-    braceL: new TokenType("{", {beforeExpr: true, startsExpr: true}),
-    braceR: new TokenType("}"),
-    parenL: new TokenType("(", {beforeExpr: true, startsExpr: true}),
-    parenR: new TokenType(")"),
-    comma: new TokenType(",", beforeExpr),
-    semi: new TokenType(";", beforeExpr),
-    colon: new TokenType(":", beforeExpr),
-    dot: new TokenType("."),
-    question: new TokenType("?", beforeExpr),
-    questionDot: new TokenType("?."),
-    arrow: new TokenType("=>", beforeExpr),
-    template: new TokenType("template"),
-    invalidTemplate: new TokenType("invalidTemplate"),
-    ellipsis: new TokenType("...", beforeExpr),
-    backQuote: new TokenType("`", startsExpr),
-    dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}),
-
-    // Operators. These carry several kinds of properties to help the
-    // parser use them properly (the presence of these properties is
-    // what categorizes them as operators).
-    //
-    // `binop`, when present, specifies that this operator is a binary
-    // operator, and will refer to its precedence.
-    //
-    // `prefix` and `postfix` mark the operator as a prefix or postfix
-    // unary operator.
-    //
-    // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
-    // binary operators with a very low precedence, that should result
-    // in AssignmentExpression nodes.
-
-    eq: new TokenType("=", {beforeExpr: true, isAssign: true}),
-    assign: new TokenType("_=", {beforeExpr: true, isAssign: true}),
-    incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}),
-    prefix: new TokenType("!/~", {beforeExpr: true, prefix: true, startsExpr: true}),
-    logicalOR: binop("||", 1),
-    logicalAND: binop("&&", 2),
-    bitwiseOR: binop("|", 3),
-    bitwiseXOR: binop("^", 4),
-    bitwiseAND: binop("&", 5),
-    equality: binop("==/!=/===/!==", 6),
-    relational: binop("/<=/>=", 7),
-    bitShift: binop("<>/>>>", 8),
-    plusMin: new TokenType("+/-", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}),
-    modulo: binop("%", 10),
-    star: binop("*", 10),
-    slash: binop("/", 10),
-    starstar: new TokenType("**", {beforeExpr: true}),
-    coalesce: binop("??", 1),
-
-    // Keyword token types.
-    _break: kw("break"),
-    _case: kw("case", beforeExpr),
-    _catch: kw("catch"),
-    _continue: kw("continue"),
-    _debugger: kw("debugger"),
-    _default: kw("default", beforeExpr),
-    _do: kw("do", {isLoop: true, beforeExpr: true}),
-    _else: kw("else", beforeExpr),
-    _finally: kw("finally"),
-    _for: kw("for", {isLoop: true}),
-    _function: kw("function", startsExpr),
-    _if: kw("if"),
-    _return: kw("return", beforeExpr),
-    _switch: kw("switch"),
-    _throw: kw("throw", beforeExpr),
-    _try: kw("try"),
-    _var: kw("var"),
-    _const: kw("const"),
-    _while: kw("while", {isLoop: true}),
-    _with: kw("with"),
-    _new: kw("new", {beforeExpr: true, startsExpr: true}),
-    _this: kw("this", startsExpr),
-    _super: kw("super", startsExpr),
-    _class: kw("class", startsExpr),
-    _extends: kw("extends", beforeExpr),
-    _export: kw("export"),
-    _import: kw("import", startsExpr),
-    _null: kw("null", startsExpr),
-    _true: kw("true", startsExpr),
-    _false: kw("false", startsExpr),
-    _in: kw("in", {beforeExpr: true, binop: 7}),
-    _instanceof: kw("instanceof", {beforeExpr: true, binop: 7}),
-    _typeof: kw("typeof", {beforeExpr: true, prefix: true, startsExpr: true}),
-    _void: kw("void", {beforeExpr: true, prefix: true, startsExpr: true}),
-    _delete: kw("delete", {beforeExpr: true, prefix: true, startsExpr: true})
-  };
-
-  // Matches a whole line break (where CRLF is considered a single
-  // line break). Used to count lines.
-
-  var lineBreak = /\r\n?|\n|\u2028|\u2029/;
-  var lineBreakG = new RegExp(lineBreak.source, "g");
-
-  function isNewLine(code) {
-    return code === 10 || code === 13 || code === 0x2028 || code === 0x2029
-  }
-
-  function nextLineBreak(code, from, end) {
-    if ( end === void 0 ) end = code.length;
-
-    for (var i = from; i < end; i++) {
-      var next = code.charCodeAt(i);
-      if (isNewLine(next))
-        { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 }
-    }
-    return -1
-  }
-
-  var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
-
-  var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
-
-  var ref = Object.prototype;
-  var hasOwnProperty = ref.hasOwnProperty;
-  var toString = ref.toString;
-
-  var hasOwn = Object.hasOwn || (function (obj, propName) { return (
-    hasOwnProperty.call(obj, propName)
-  ); });
-
-  var isArray = Array.isArray || (function (obj) { return (
-    toString.call(obj) === "[object Array]"
-  ); });
-
-  var regexpCache = Object.create(null);
-
-  function wordsRegexp(words) {
-    return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"))
-  }
-
-  function codePointToString(code) {
-    // UTF-16 Decoding
-    if (code <= 0xFFFF) { return String.fromCharCode(code) }
-    code -= 0x10000;
-    return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
-  }
-
-  var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
-
-  // These are used when `options.locations` is on, for the
-  // `startLoc` and `endLoc` properties.
-
-  var Position = function Position(line, col) {
-    this.line = line;
-    this.column = col;
-  };
-
-  Position.prototype.offset = function offset (n) {
-    return new Position(this.line, this.column + n)
-  };
-
-  var SourceLocation = function SourceLocation(p, start, end) {
-    this.start = start;
-    this.end = end;
-    if (p.sourceFile !== null) { this.source = p.sourceFile; }
-  };
-
-  // The `getLineInfo` function is mostly useful when the
-  // `locations` option is off (for performance reasons) and you
-  // want to find the line/column position for a given character
-  // offset. `input` should be the code string that the offset refers
-  // into.
-
-  function getLineInfo(input, offset) {
-    for (var line = 1, cur = 0;;) {
-      var nextBreak = nextLineBreak(input, cur, offset);
-      if (nextBreak < 0) { return new Position(line, offset - cur) }
-      ++line;
-      cur = nextBreak;
-    }
-  }
-
-  // A second argument must be given to configure the parser process.
-  // These options are recognized (only `ecmaVersion` is required):
-
-  var defaultOptions = {
-    // `ecmaVersion` indicates the ECMAScript version to parse. Must be
-    // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
-    // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
-    // (the latest version the library supports). This influences
-    // support for strict mode, the set of reserved words, and support
-    // for new syntax features.
-    ecmaVersion: null,
-    // `sourceType` indicates the mode the code should be parsed in.
-    // Can be either `"script"` or `"module"`. This influences global
-    // strict mode and parsing of `import` and `export` declarations.
-    sourceType: "script",
-    // `onInsertedSemicolon` can be a callback that will be called when
-    // a semicolon is automatically inserted. It will be passed the
-    // position of the inserted semicolon as an offset, and if
-    // `locations` is enabled, it is given the location as a `{line,
-    // column}` object as second argument.
-    onInsertedSemicolon: null,
-    // `onTrailingComma` is similar to `onInsertedSemicolon`, but for
-    // trailing commas.
-    onTrailingComma: null,
-    // By default, reserved words are only enforced if ecmaVersion >= 5.
-    // Set `allowReserved` to a boolean value to explicitly turn this on
-    // an off. When this option has the value "never", reserved words
-    // and keywords can also not be used as property names.
-    allowReserved: null,
-    // When enabled, a return at the top level is not considered an
-    // error.
-    allowReturnOutsideFunction: false,
-    // When enabled, import/export statements are not constrained to
-    // appearing at the top of the program, and an import.meta expression
-    // in a script isn't considered an error.
-    allowImportExportEverywhere: false,
-    // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.
-    // When enabled, await identifiers are allowed to appear at the top-level scope,
-    // but they are still not allowed in non-async functions.
-    allowAwaitOutsideFunction: null,
-    // When enabled, super identifiers are not constrained to
-    // appearing in methods and do not raise an error when they appear elsewhere.
-    allowSuperOutsideMethod: null,
-    // When enabled, hashbang directive in the beginning of file is
-    // allowed and treated as a line comment. Enabled by default when
-    // `ecmaVersion` >= 2023.
-    allowHashBang: false,
-    // By default, the parser will verify that private properties are
-    // only used in places where they are valid and have been declared.
-    // Set this to false to turn such checks off.
-    checkPrivateFields: true,
-    // When `locations` is on, `loc` properties holding objects with
-    // `start` and `end` properties in `{line, column}` form (with
-    // line being 1-based and column 0-based) will be attached to the
-    // nodes.
-    locations: false,
-    // A function can be passed as `onToken` option, which will
-    // cause Acorn to call that function with object in the same
-    // format as tokens returned from `tokenizer().getToken()`. Note
-    // that you are not allowed to call the parser from the
-    // callback—that will corrupt its internal state.
-    onToken: null,
-    // A function can be passed as `onComment` option, which will
-    // cause Acorn to call that function with `(block, text, start,
-    // end)` parameters whenever a comment is skipped. `block` is a
-    // boolean indicating whether this is a block (`/* */`) comment,
-    // `text` is the content of the comment, and `start` and `end` are
-    // character offsets that denote the start and end of the comment.
-    // When the `locations` option is on, two more parameters are
-    // passed, the full `{line, column}` locations of the start and
-    // end of the comments. Note that you are not allowed to call the
-    // parser from the callback—that will corrupt its internal state.
-    // When this option has an array as value, objects representing the
-    // comments are pushed to it.
-    onComment: null,
-    // Nodes have their start and end characters offsets recorded in
-    // `start` and `end` properties (directly on the node, rather than
-    // the `loc` object, which holds line/column data. To also add a
-    // [semi-standardized][range] `range` property holding a `[start,
-    // end]` array with the same numbers, set the `ranges` option to
-    // `true`.
-    //
-    // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
-    ranges: false,
-    // It is possible to parse multiple files into a single AST by
-    // passing the tree produced by parsing the first file as
-    // `program` option in subsequent parses. This will add the
-    // toplevel forms of the parsed file to the `Program` (top) node
-    // of an existing parse tree.
-    program: null,
-    // When `locations` is on, you can pass this to record the source
-    // file in every node's `loc` object.
-    sourceFile: null,
-    // This value, if given, is stored in every node, whether
-    // `locations` is on or off.
-    directSourceFile: null,
-    // When enabled, parenthesized expressions are represented by
-    // (non-standard) ParenthesizedExpression nodes
-    preserveParens: false
-  };
-
-  // Interpret and default an options object
-
-  var warnedAboutEcmaVersion = false;
-
-  function getOptions(opts) {
-    var options = {};
-
-    for (var opt in defaultOptions)
-      { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; }
-
-    if (options.ecmaVersion === "latest") {
-      options.ecmaVersion = 1e8;
-    } else if (options.ecmaVersion == null) {
-      if (!warnedAboutEcmaVersion && typeof console === "object" && console.warn) {
-        warnedAboutEcmaVersion = true;
-        console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.");
-      }
-      options.ecmaVersion = 11;
-    } else if (options.ecmaVersion >= 2015) {
-      options.ecmaVersion -= 2009;
-    }
-
-    if (options.allowReserved == null)
-      { options.allowReserved = options.ecmaVersion < 5; }
-
-    if (!opts || opts.allowHashBang == null)
-      { options.allowHashBang = options.ecmaVersion >= 14; }
-
-    if (isArray(options.onToken)) {
-      var tokens = options.onToken;
-      options.onToken = function (token) { return tokens.push(token); };
-    }
-    if (isArray(options.onComment))
-      { options.onComment = pushComment(options, options.onComment); }
-
-    return options
-  }
-
-  function pushComment(options, array) {
-    return function(block, text, start, end, startLoc, endLoc) {
-      var comment = {
-        type: block ? "Block" : "Line",
-        value: text,
-        start: start,
-        end: end
-      };
-      if (options.locations)
-        { comment.loc = new SourceLocation(this, startLoc, endLoc); }
-      if (options.ranges)
-        { comment.range = [start, end]; }
-      array.push(comment);
-    }
-  }
-
-  // Each scope gets a bitset that may contain these flags
-  var
-      SCOPE_TOP = 1,
-      SCOPE_FUNCTION = 2,
-      SCOPE_ASYNC = 4,
-      SCOPE_GENERATOR = 8,
-      SCOPE_ARROW = 16,
-      SCOPE_SIMPLE_CATCH = 32,
-      SCOPE_SUPER = 64,
-      SCOPE_DIRECT_SUPER = 128,
-      SCOPE_CLASS_STATIC_BLOCK = 256,
-      SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
-
-  function functionFlags(async, generator) {
-    return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)
-  }
-
-  // Used in checkLVal* and declareName to determine the type of a binding
-  var
-      BIND_NONE = 0, // Not a binding
-      BIND_VAR = 1, // Var-style binding
-      BIND_LEXICAL = 2, // Let- or const-style binding
-      BIND_FUNCTION = 3, // Function declaration
-      BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding
-      BIND_OUTSIDE = 5; // Special case for function names as bound inside the function
-
-  var Parser = function Parser(options, input, startPos) {
-    this.options = options = getOptions(options);
-    this.sourceFile = options.sourceFile;
-    this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
-    var reserved = "";
-    if (options.allowReserved !== true) {
-      reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];
-      if (options.sourceType === "module") { reserved += " await"; }
-    }
-    this.reservedWords = wordsRegexp(reserved);
-    var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict;
-    this.reservedWordsStrict = wordsRegexp(reservedStrict);
-    this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind);
-    this.input = String(input);
-
-    // Used to signal to callers of `readWord1` whether the word
-    // contained any escape sequences. This is needed because words with
-    // escape sequences must not be interpreted as keywords.
-    this.containsEsc = false;
-
-    // Set up token state
-
-    // The current position of the tokenizer in the input.
-    if (startPos) {
-      this.pos = startPos;
-      this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1;
-      this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length;
-    } else {
-      this.pos = this.lineStart = 0;
-      this.curLine = 1;
-    }
-
-    // Properties of the current token:
-    // Its type
-    this.type = types$1.eof;
-    // For tokens that include more information than their type, the value
-    this.value = null;
-    // Its start and end offset
-    this.start = this.end = this.pos;
-    // And, if locations are used, the {line, column} object
-    // corresponding to those offsets
-    this.startLoc = this.endLoc = this.curPosition();
-
-    // Position information for the previous token
-    this.lastTokEndLoc = this.lastTokStartLoc = null;
-    this.lastTokStart = this.lastTokEnd = this.pos;
-
-    // The context stack is used to superficially track syntactic
-    // context to predict whether a regular expression is allowed in a
-    // given position.
-    this.context = this.initialContext();
-    this.exprAllowed = true;
-
-    // Figure out if it's a module code.
-    this.inModule = options.sourceType === "module";
-    this.strict = this.inModule || this.strictDirective(this.pos);
-
-    // Used to signify the start of a potential arrow function
-    this.potentialArrowAt = -1;
-    this.potentialArrowInForAwait = false;
-
-    // Positions to delayed-check that yield/await does not exist in default parameters.
-    this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;
-    // Labels in scope.
-    this.labels = [];
-    // Thus-far undefined exports.
-    this.undefinedExports = Object.create(null);
-
-    // If enabled, skip leading hashbang line.
-    if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!")
-      { this.skipLineComment(2); }
-
-    // Scope tracking for duplicate variable names (see scope.js)
-    this.scopeStack = [];
-    this.enterScope(SCOPE_TOP);
-
-    // For RegExp validation
-    this.regexpState = null;
-
-    // The stack of private names.
-    // Each element has two properties: 'declared' and 'used'.
-    // When it exited from the outermost class definition, all used private names must be declared.
-    this.privateNameStack = [];
-  };
-
-  var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };
-
-  Parser.prototype.parse = function parse () {
-    var node = this.options.program || this.startNode();
-    this.nextToken();
-    return this.parseTopLevel(node)
-  };
-
-  prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };
-
-  prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };
-
-  prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };
-
-  prototypeAccessors.canAwait.get = function () {
-    for (var i = this.scopeStack.length - 1; i >= 0; i--) {
-      var scope = this.scopeStack[i];
-      if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false }
-      if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 }
-    }
-    return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction
-  };
-
-  prototypeAccessors.allowSuper.get = function () {
-    var ref = this.currentThisScope();
-      var flags = ref.flags;
-      var inClassFieldInit = ref.inClassFieldInit;
-    return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod
-  };
-
-  prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };
-
-  prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };
-
-  prototypeAccessors.allowNewDotTarget.get = function () {
-    var ref = this.currentThisScope();
-      var flags = ref.flags;
-      var inClassFieldInit = ref.inClassFieldInit;
-    return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit
-  };
-
-  prototypeAccessors.inClassStaticBlock.get = function () {
-    return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0
-  };
-
-  Parser.extend = function extend () {
-      var plugins = [], len = arguments.length;
-      while ( len-- ) plugins[ len ] = arguments[ len ];
-
-    var cls = this;
-    for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }
-    return cls
-  };
-
-  Parser.parse = function parse (input, options) {
-    return new this(options, input).parse()
-  };
-
-  Parser.parseExpressionAt = function parseExpressionAt (input, pos, options) {
-    var parser = new this(options, input, pos);
-    parser.nextToken();
-    return parser.parseExpression()
-  };
-
-  Parser.tokenizer = function tokenizer (input, options) {
-    return new this(options, input)
-  };
-
-  Object.defineProperties( Parser.prototype, prototypeAccessors );
-
-  var pp$9 = Parser.prototype;
-
-  // ## Parser utilities
-
-  var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
-  pp$9.strictDirective = function(start) {
-    if (this.options.ecmaVersion < 5) { return false }
-    for (;;) {
-      // Try to find string literal.
-      skipWhiteSpace.lastIndex = start;
-      start += skipWhiteSpace.exec(this.input)[0].length;
-      var match = literal.exec(this.input.slice(start));
-      if (!match) { return false }
-      if ((match[1] || match[2]) === "use strict") {
-        skipWhiteSpace.lastIndex = start + match[0].length;
-        var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
-        var next = this.input.charAt(end);
-        return next === ";" || next === "}" ||
-          (lineBreak.test(spaceAfter[0]) &&
-           !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "="))
-      }
-      start += match[0].length;
-
-      // Skip semicolon, if any.
-      skipWhiteSpace.lastIndex = start;
-      start += skipWhiteSpace.exec(this.input)[0].length;
-      if (this.input[start] === ";")
-        { start++; }
-    }
-  };
-
-  // Predicate that tests whether the next token is of the given
-  // type, and if yes, consumes it as a side effect.
-
-  pp$9.eat = function(type) {
-    if (this.type === type) {
-      this.next();
-      return true
-    } else {
-      return false
-    }
-  };
-
-  // Tests whether parsed token is a contextual keyword.
-
-  pp$9.isContextual = function(name) {
-    return this.type === types$1.name && this.value === name && !this.containsEsc
-  };
-
-  // Consumes contextual keyword if possible.
-
-  pp$9.eatContextual = function(name) {
-    if (!this.isContextual(name)) { return false }
-    this.next();
-    return true
-  };
-
-  // Asserts that following token is given contextual keyword.
-
-  pp$9.expectContextual = function(name) {
-    if (!this.eatContextual(name)) { this.unexpected(); }
-  };
-
-  // Test whether a semicolon can be inserted at the current position.
-
-  pp$9.canInsertSemicolon = function() {
-    return this.type === types$1.eof ||
-      this.type === types$1.braceR ||
-      lineBreak.test(this.input.slice(this.lastTokEnd, this.start))
-  };
-
-  pp$9.insertSemicolon = function() {
-    if (this.canInsertSemicolon()) {
-      if (this.options.onInsertedSemicolon)
-        { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); }
-      return true
-    }
-  };
-
-  // Consume a semicolon, or, failing that, see if we are allowed to
-  // pretend that there is a semicolon at this position.
-
-  pp$9.semicolon = function() {
-    if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); }
-  };
-
-  pp$9.afterTrailingComma = function(tokType, notNext) {
-    if (this.type === tokType) {
-      if (this.options.onTrailingComma)
-        { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); }
-      if (!notNext)
-        { this.next(); }
-      return true
-    }
-  };
-
-  // Expect a token of a given type. If found, consume it, otherwise,
-  // raise an unexpected token error.
-
-  pp$9.expect = function(type) {
-    this.eat(type) || this.unexpected();
-  };
-
-  // Raise an unexpected token error.
-
-  pp$9.unexpected = function(pos) {
-    this.raise(pos != null ? pos : this.start, "Unexpected token");
-  };
-
-  var DestructuringErrors = function DestructuringErrors() {
-    this.shorthandAssign =
-    this.trailingComma =
-    this.parenthesizedAssign =
-    this.parenthesizedBind =
-    this.doubleProto =
-      -1;
-  };
-
-  pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
-    if (!refDestructuringErrors) { return }
-    if (refDestructuringErrors.trailingComma > -1)
-      { this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); }
-    var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
-    if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); }
-  };
-
-  pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
-    if (!refDestructuringErrors) { return false }
-    var shorthandAssign = refDestructuringErrors.shorthandAssign;
-    var doubleProto = refDestructuringErrors.doubleProto;
-    if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 }
-    if (shorthandAssign >= 0)
-      { this.raise(shorthandAssign, "Shorthand property assignments are valid only in destructuring patterns"); }
-    if (doubleProto >= 0)
-      { this.raiseRecoverable(doubleProto, "Redefinition of __proto__ property"); }
-  };
-
-  pp$9.checkYieldAwaitInDefaultParams = function() {
-    if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))
-      { this.raise(this.yieldPos, "Yield expression cannot be a default value"); }
-    if (this.awaitPos)
-      { this.raise(this.awaitPos, "Await expression cannot be a default value"); }
-  };
-
-  pp$9.isSimpleAssignTarget = function(expr) {
-    if (expr.type === "ParenthesizedExpression")
-      { return this.isSimpleAssignTarget(expr.expression) }
-    return expr.type === "Identifier" || expr.type === "MemberExpression"
-  };
-
-  var pp$8 = Parser.prototype;
-
-  // ### Statement parsing
-
-  // Parse a program. Initializes the parser, reads any number of
-  // statements, and wraps them in a Program node.  Optionally takes a
-  // `program` argument.  If present, the statements will be appended
-  // to its body instead of creating a new node.
-
-  pp$8.parseTopLevel = function(node) {
-    var exports = Object.create(null);
-    if (!node.body) { node.body = []; }
-    while (this.type !== types$1.eof) {
-      var stmt = this.parseStatement(null, true, exports);
-      node.body.push(stmt);
-    }
-    if (this.inModule)
-      { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1)
-        {
-          var name = list[i];
-
-          this.raiseRecoverable(this.undefinedExports[name].start, ("Export '" + name + "' is not defined"));
-        } }
-    this.adaptDirectivePrologue(node.body);
-    this.next();
-    node.sourceType = this.options.sourceType;
-    return this.finishNode(node, "Program")
-  };
-
-  var loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"};
-
-  pp$8.isLet = function(context) {
-    if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false }
-    skipWhiteSpace.lastIndex = this.pos;
-    var skip = skipWhiteSpace.exec(this.input);
-    var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
-    // For ambiguous cases, determine if a LexicalDeclaration (or only a
-    // Statement) is allowed here. If context is not empty then only a Statement
-    // is allowed. However, `let [` is an explicit negative lookahead for
-    // ExpressionStatement, so special-case it first.
-    if (nextCh === 91 || nextCh === 92) { return true } // '[', '\'
-    if (context) { return false }
-
-    if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral
-    if (isIdentifierStart(nextCh, true)) {
-      var pos = next + 1;
-      while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }
-      if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }
-      var ident = this.input.slice(next, pos);
-      if (!keywordRelationalOperator.test(ident)) { return true }
-    }
-    return false
-  };
-
-  // check 'async [no LineTerminator here] function'
-  // - 'async /*foo*/ function' is OK.
-  // - 'async /*\n*/ function' is invalid.
-  pp$8.isAsyncFunction = function() {
-    if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
-      { return false }
-
-    skipWhiteSpace.lastIndex = this.pos;
-    var skip = skipWhiteSpace.exec(this.input);
-    var next = this.pos + skip[0].length, after;
-    return !lineBreak.test(this.input.slice(this.pos, next)) &&
-      this.input.slice(next, next + 8) === "function" &&
-      (next + 8 === this.input.length ||
-       !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))
-  };
-
-  // Parse a single statement.
-  //
-  // If expecting a statement and finding a slash operator, parse a
-  // regular expression literal. This is to handle cases like
-  // `if (foo) /blah/.exec(foo)`, where looking at the previous token
-  // does not help.
-
-  pp$8.parseStatement = function(context, topLevel, exports) {
-    var starttype = this.type, node = this.startNode(), kind;
-
-    if (this.isLet(context)) {
-      starttype = types$1._var;
-      kind = "let";
-    }
-
-    // Most types of statements are recognized by the keyword they
-    // start with. Many are trivial to parse, some require a bit of
-    // complexity.
-
-    switch (starttype) {
-    case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword)
-    case types$1._debugger: return this.parseDebuggerStatement(node)
-    case types$1._do: return this.parseDoStatement(node)
-    case types$1._for: return this.parseForStatement(node)
-    case types$1._function:
-      // Function as sole body of either an if statement or a labeled statement
-      // works, but not when it is part of a labeled statement that is the sole
-      // body of an if statement.
-      if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); }
-      return this.parseFunctionStatement(node, false, !context)
-    case types$1._class:
-      if (context) { this.unexpected(); }
-      return this.parseClass(node, true)
-    case types$1._if: return this.parseIfStatement(node)
-    case types$1._return: return this.parseReturnStatement(node)
-    case types$1._switch: return this.parseSwitchStatement(node)
-    case types$1._throw: return this.parseThrowStatement(node)
-    case types$1._try: return this.parseTryStatement(node)
-    case types$1._const: case types$1._var:
-      kind = kind || this.value;
-      if (context && kind !== "var") { this.unexpected(); }
-      return this.parseVarStatement(node, kind)
-    case types$1._while: return this.parseWhileStatement(node)
-    case types$1._with: return this.parseWithStatement(node)
-    case types$1.braceL: return this.parseBlock(true, node)
-    case types$1.semi: return this.parseEmptyStatement(node)
-    case types$1._export:
-    case types$1._import:
-      if (this.options.ecmaVersion > 10 && starttype === types$1._import) {
-        skipWhiteSpace.lastIndex = this.pos;
-        var skip = skipWhiteSpace.exec(this.input);
-        var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
-        if (nextCh === 40 || nextCh === 46) // '(' or '.'
-          { return this.parseExpressionStatement(node, this.parseExpression()) }
-      }
-
-      if (!this.options.allowImportExportEverywhere) {
-        if (!topLevel)
-          { this.raise(this.start, "'import' and 'export' may only appear at the top level"); }
-        if (!this.inModule)
-          { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
-      }
-      return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
-
-      // If the statement does not start with a statement keyword or a
-      // brace, it's an ExpressionStatement or LabeledStatement. We
-      // simply start parsing an expression, and afterwards, if the
-      // next token is a colon and the expression was a simple
-      // Identifier node, we switch to interpreting it as a label.
-    default:
-      if (this.isAsyncFunction()) {
-        if (context) { this.unexpected(); }
-        this.next();
-        return this.parseFunctionStatement(node, true, !context)
-      }
-
-      var maybeName = this.value, expr = this.parseExpression();
-      if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon))
-        { return this.parseLabeledStatement(node, maybeName, expr, context) }
-      else { return this.parseExpressionStatement(node, expr) }
-    }
-  };
-
-  pp$8.parseBreakContinueStatement = function(node, keyword) {
-    var isBreak = keyword === "break";
-    this.next();
-    if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; }
-    else if (this.type !== types$1.name) { this.unexpected(); }
-    else {
-      node.label = this.parseIdent();
-      this.semicolon();
-    }
-
-    // Verify that there is an actual destination to break or
-    // continue to.
-    var i = 0;
-    for (; i < this.labels.length; ++i) {
-      var lab = this.labels[i];
-      if (node.label == null || lab.name === node.label.name) {
-        if (lab.kind != null && (isBreak || lab.kind === "loop")) { break }
-        if (node.label && isBreak) { break }
-      }
-    }
-    if (i === this.labels.length) { this.raise(node.start, "Unsyntactic " + keyword); }
-    return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement")
-  };
-
-  pp$8.parseDebuggerStatement = function(node) {
-    this.next();
-    this.semicolon();
-    return this.finishNode(node, "DebuggerStatement")
-  };
-
-  pp$8.parseDoStatement = function(node) {
-    this.next();
-    this.labels.push(loopLabel);
-    node.body = this.parseStatement("do");
-    this.labels.pop();
-    this.expect(types$1._while);
-    node.test = this.parseParenExpression();
-    if (this.options.ecmaVersion >= 6)
-      { this.eat(types$1.semi); }
-    else
-      { this.semicolon(); }
-    return this.finishNode(node, "DoWhileStatement")
-  };
-
-  // Disambiguating between a `for` and a `for`/`in` or `for`/`of`
-  // loop is non-trivial. Basically, we have to parse the init `var`
-  // statement or expression, disallowing the `in` operator (see
-  // the second parameter to `parseExpression`), and then check
-  // whether the next token is `in` or `of`. When there is no init
-  // part (semicolon immediately after the opening parenthesis), it
-  // is a regular `for` loop.
-
-  pp$8.parseForStatement = function(node) {
-    this.next();
-    var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1;
-    this.labels.push(loopLabel);
-    this.enterScope(0);
-    this.expect(types$1.parenL);
-    if (this.type === types$1.semi) {
-      if (awaitAt > -1) { this.unexpected(awaitAt); }
-      return this.parseFor(node, null)
-    }
-    var isLet = this.isLet();
-    if (this.type === types$1._var || this.type === types$1._const || isLet) {
-      var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
-      this.next();
-      this.parseVar(init$1, true, kind);
-      this.finishNode(init$1, "VariableDeclaration");
-      if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init$1.declarations.length === 1) {
-        if (this.options.ecmaVersion >= 9) {
-          if (this.type === types$1._in) {
-            if (awaitAt > -1) { this.unexpected(awaitAt); }
-          } else { node.await = awaitAt > -1; }
-        }
-        return this.parseForIn(node, init$1)
-      }
-      if (awaitAt > -1) { this.unexpected(awaitAt); }
-      return this.parseFor(node, init$1)
-    }
-    var startsWithLet = this.isContextual("let"), isForOf = false;
-    var containsEsc = this.containsEsc;
-    var refDestructuringErrors = new DestructuringErrors;
-    var initPos = this.start;
-    var init = awaitAt > -1
-      ? this.parseExprSubscripts(refDestructuringErrors, "await")
-      : this.parseExpression(true, refDestructuringErrors);
-    if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
-      if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt)
-        if (this.type === types$1._in) { this.unexpected(awaitAt); }
-        node.await = true;
-      } else if (isForOf && this.options.ecmaVersion >= 8) {
-        if (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async") { this.unexpected(); }
-        else if (this.options.ecmaVersion >= 9) { node.await = false; }
-      }
-      if (startsWithLet && isForOf) { this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."); }
-      this.toAssignable(init, false, refDestructuringErrors);
-      this.checkLValPattern(init);
-      return this.parseForIn(node, init)
-    } else {
-      this.checkExpressionErrors(refDestructuringErrors, true);
-    }
-    if (awaitAt > -1) { this.unexpected(awaitAt); }
-    return this.parseFor(node, init)
-  };
-
-  pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
-    this.next();
-    return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)
-  };
-
-  pp$8.parseIfStatement = function(node) {
-    this.next();
-    node.test = this.parseParenExpression();
-    // allow function declarations in branches, but only in non-strict mode
-    node.consequent = this.parseStatement("if");
-    node.alternate = this.eat(types$1._else) ? this.parseStatement("if") : null;
-    return this.finishNode(node, "IfStatement")
-  };
-
-  pp$8.parseReturnStatement = function(node) {
-    if (!this.inFunction && !this.options.allowReturnOutsideFunction)
-      { this.raise(this.start, "'return' outside of function"); }
-    this.next();
-
-    // In `return` (and `break`/`continue`), the keywords with
-    // optional arguments, we eagerly look for a semicolon or the
-    // possibility to insert one.
-
-    if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; }
-    else { node.argument = this.parseExpression(); this.semicolon(); }
-    return this.finishNode(node, "ReturnStatement")
-  };
-
-  pp$8.parseSwitchStatement = function(node) {
-    this.next();
-    node.discriminant = this.parseParenExpression();
-    node.cases = [];
-    this.expect(types$1.braceL);
-    this.labels.push(switchLabel);
-    this.enterScope(0);
-
-    // Statements under must be grouped (by label) in SwitchCase
-    // nodes. `cur` is used to keep the node that we are currently
-    // adding statements to.
-
-    var cur;
-    for (var sawDefault = false; this.type !== types$1.braceR;) {
-      if (this.type === types$1._case || this.type === types$1._default) {
-        var isCase = this.type === types$1._case;
-        if (cur) { this.finishNode(cur, "SwitchCase"); }
-        node.cases.push(cur = this.startNode());
-        cur.consequent = [];
-        this.next();
-        if (isCase) {
-          cur.test = this.parseExpression();
-        } else {
-          if (sawDefault) { this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"); }
-          sawDefault = true;
-          cur.test = null;
-        }
-        this.expect(types$1.colon);
-      } else {
-        if (!cur) { this.unexpected(); }
-        cur.consequent.push(this.parseStatement(null));
-      }
-    }
-    this.exitScope();
-    if (cur) { this.finishNode(cur, "SwitchCase"); }
-    this.next(); // Closing brace
-    this.labels.pop();
-    return this.finishNode(node, "SwitchStatement")
-  };
-
-  pp$8.parseThrowStatement = function(node) {
-    this.next();
-    if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))
-      { this.raise(this.lastTokEnd, "Illegal newline after throw"); }
-    node.argument = this.parseExpression();
-    this.semicolon();
-    return this.finishNode(node, "ThrowStatement")
-  };
-
-  // Reused empty array added for node fields that are always empty.
-
-  var empty$1 = [];
-
-  pp$8.parseCatchClauseParam = function() {
-    var param = this.parseBindingAtom();
-    var simple = param.type === "Identifier";
-    this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
-    this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
-    this.expect(types$1.parenR);
-
-    return param
-  };
-
-  pp$8.parseTryStatement = function(node) {
-    this.next();
-    node.block = this.parseBlock();
-    node.handler = null;
-    if (this.type === types$1._catch) {
-      var clause = this.startNode();
-      this.next();
-      if (this.eat(types$1.parenL)) {
-        clause.param = this.parseCatchClauseParam();
-      } else {
-        if (this.options.ecmaVersion < 10) { this.unexpected(); }
-        clause.param = null;
-        this.enterScope(0);
-      }
-      clause.body = this.parseBlock(false);
-      this.exitScope();
-      node.handler = this.finishNode(clause, "CatchClause");
-    }
-    node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null;
-    if (!node.handler && !node.finalizer)
-      { this.raise(node.start, "Missing catch or finally clause"); }
-    return this.finishNode(node, "TryStatement")
-  };
-
-  pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
-    this.next();
-    this.parseVar(node, false, kind, allowMissingInitializer);
-    this.semicolon();
-    return this.finishNode(node, "VariableDeclaration")
-  };
-
-  pp$8.parseWhileStatement = function(node) {
-    this.next();
-    node.test = this.parseParenExpression();
-    this.labels.push(loopLabel);
-    node.body = this.parseStatement("while");
-    this.labels.pop();
-    return this.finishNode(node, "WhileStatement")
-  };
-
-  pp$8.parseWithStatement = function(node) {
-    if (this.strict) { this.raise(this.start, "'with' in strict mode"); }
-    this.next();
-    node.object = this.parseParenExpression();
-    node.body = this.parseStatement("with");
-    return this.finishNode(node, "WithStatement")
-  };
-
-  pp$8.parseEmptyStatement = function(node) {
-    this.next();
-    return this.finishNode(node, "EmptyStatement")
-  };
-
-  pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {
-    for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1)
-      {
-      var label = list[i$1];
-
-      if (label.name === maybeName)
-        { this.raise(expr.start, "Label '" + maybeName + "' is already declared");
-    } }
-    var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null;
-    for (var i = this.labels.length - 1; i >= 0; i--) {
-      var label$1 = this.labels[i];
-      if (label$1.statementStart === node.start) {
-        // Update information about previous labels on this node
-        label$1.statementStart = this.start;
-        label$1.kind = kind;
-      } else { break }
-    }
-    this.labels.push({name: maybeName, kind: kind, statementStart: this.start});
-    node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label");
-    this.labels.pop();
-    node.label = expr;
-    return this.finishNode(node, "LabeledStatement")
-  };
-
-  pp$8.parseExpressionStatement = function(node, expr) {
-    node.expression = expr;
-    this.semicolon();
-    return this.finishNode(node, "ExpressionStatement")
-  };
-
-  // Parse a semicolon-enclosed block of statements, handling `"use
-  // strict"` declarations when `allowStrict` is true (used for
-  // function bodies).
-
-  pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {
-    if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;
-    if ( node === void 0 ) node = this.startNode();
-
-    node.body = [];
-    this.expect(types$1.braceL);
-    if (createNewLexicalScope) { this.enterScope(0); }
-    while (this.type !== types$1.braceR) {
-      var stmt = this.parseStatement(null);
-      node.body.push(stmt);
-    }
-    if (exitStrict) { this.strict = false; }
-    this.next();
-    if (createNewLexicalScope) { this.exitScope(); }
-    return this.finishNode(node, "BlockStatement")
-  };
-
-  // Parse a regular `for` loop. The disambiguation code in
-  // `parseStatement` will already have parsed the init statement or
-  // expression.
-
-  pp$8.parseFor = function(node, init) {
-    node.init = init;
-    this.expect(types$1.semi);
-    node.test = this.type === types$1.semi ? null : this.parseExpression();
-    this.expect(types$1.semi);
-    node.update = this.type === types$1.parenR ? null : this.parseExpression();
-    this.expect(types$1.parenR);
-    node.body = this.parseStatement("for");
-    this.exitScope();
-    this.labels.pop();
-    return this.finishNode(node, "ForStatement")
-  };
-
-  // Parse a `for`/`in` and `for`/`of` loop, which are almost
-  // same from parser's perspective.
-
-  pp$8.parseForIn = function(node, init) {
-    var isForIn = this.type === types$1._in;
-    this.next();
-
-    if (
-      init.type === "VariableDeclaration" &&
-      init.declarations[0].init != null &&
-      (
-        !isForIn ||
-        this.options.ecmaVersion < 8 ||
-        this.strict ||
-        init.kind !== "var" ||
-        init.declarations[0].id.type !== "Identifier"
-      )
-    ) {
-      this.raise(
-        init.start,
-        ((isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer")
-      );
-    }
-    node.left = init;
-    node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();
-    this.expect(types$1.parenR);
-    node.body = this.parseStatement("for");
-    this.exitScope();
-    this.labels.pop();
-    return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement")
-  };
-
-  // Parse a list of variable declarations.
-
-  pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
-    node.declarations = [];
-    node.kind = kind;
-    for (;;) {
-      var decl = this.startNode();
-      this.parseVarId(decl, kind);
-      if (this.eat(types$1.eq)) {
-        decl.init = this.parseMaybeAssign(isFor);
-      } else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) {
-        this.unexpected();
-      } else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
-        this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
-      } else {
-        decl.init = null;
-      }
-      node.declarations.push(this.finishNode(decl, "VariableDeclarator"));
-      if (!this.eat(types$1.comma)) { break }
-    }
-    return node
-  };
-
-  pp$8.parseVarId = function(decl, kind) {
-    decl.id = this.parseBindingAtom();
-    this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false);
-  };
-
-  var FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4;
-
-  // Parse a function declaration or literal (depending on the
-  // `statement & FUNC_STATEMENT`).
-
-  // Remove `allowExpressionBody` for 7.0.0, as it is only called with false
-  pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {
-    this.initFunction(node);
-    if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {
-      if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT))
-        { this.unexpected(); }
-      node.generator = this.eat(types$1.star);
-    }
-    if (this.options.ecmaVersion >= 8)
-      { node.async = !!isAsync; }
-
-    if (statement & FUNC_STATEMENT) {
-      node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent();
-      if (node.id && !(statement & FUNC_HANGING_STATEMENT))
-        // If it is a regular function declaration in sloppy mode, then it is
-        // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding
-        // mode depends on properties of the current scope (see
-        // treatFunctionsAsVar).
-        { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }
-    }
-
-    var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
-    this.yieldPos = 0;
-    this.awaitPos = 0;
-    this.awaitIdentPos = 0;
-    this.enterScope(functionFlags(node.async, node.generator));
-
-    if (!(statement & FUNC_STATEMENT))
-      { node.id = this.type === types$1.name ? this.parseIdent() : null; }
-
-    this.parseFunctionParams(node);
-    this.parseFunctionBody(node, allowExpressionBody, false, forInit);
-
-    this.yieldPos = oldYieldPos;
-    this.awaitPos = oldAwaitPos;
-    this.awaitIdentPos = oldAwaitIdentPos;
-    return this.finishNode(node, (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression")
-  };
-
-  pp$8.parseFunctionParams = function(node) {
-    this.expect(types$1.parenL);
-    node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);
-    this.checkYieldAwaitInDefaultParams();
-  };
-
-  // Parse a class declaration or literal (depending on the
-  // `isStatement` parameter).
-
-  pp$8.parseClass = function(node, isStatement) {
-    this.next();
-
-    // ecma-262 14.6 Class Definitions
-    // A class definition is always strict mode code.
-    var oldStrict = this.strict;
-    this.strict = true;
-
-    this.parseClassId(node, isStatement);
-    this.parseClassSuper(node);
-    var privateNameMap = this.enterClassBody();
-    var classBody = this.startNode();
-    var hadConstructor = false;
-    classBody.body = [];
-    this.expect(types$1.braceL);
-    while (this.type !== types$1.braceR) {
-      var element = this.parseClassElement(node.superClass !== null);
-      if (element) {
-        classBody.body.push(element);
-        if (element.type === "MethodDefinition" && element.kind === "constructor") {
-          if (hadConstructor) { this.raiseRecoverable(element.start, "Duplicate constructor in the same class"); }
-          hadConstructor = true;
-        } else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) {
-          this.raiseRecoverable(element.key.start, ("Identifier '#" + (element.key.name) + "' has already been declared"));
-        }
-      }
-    }
-    this.strict = oldStrict;
-    this.next();
-    node.body = this.finishNode(classBody, "ClassBody");
-    this.exitClassBody();
-    return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression")
-  };
-
-  pp$8.parseClassElement = function(constructorAllowsSuper) {
-    if (this.eat(types$1.semi)) { return null }
-
-    var ecmaVersion = this.options.ecmaVersion;
-    var node = this.startNode();
-    var keyName = "";
-    var isGenerator = false;
-    var isAsync = false;
-    var kind = "method";
-    var isStatic = false;
-
-    if (this.eatContextual("static")) {
-      // Parse static init block
-      if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {
-        this.parseClassStaticBlock(node);
-        return node
-      }
-      if (this.isClassElementNameStart() || this.type === types$1.star) {
-        isStatic = true;
-      } else {
-        keyName = "static";
-      }
-    }
-    node.static = isStatic;
-    if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
-      if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) {
-        isAsync = true;
-      } else {
-        keyName = "async";
-      }
-    }
-    if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) {
-      isGenerator = true;
-    }
-    if (!keyName && !isAsync && !isGenerator) {
-      var lastValue = this.value;
-      if (this.eatContextual("get") || this.eatContextual("set")) {
-        if (this.isClassElementNameStart()) {
-          kind = lastValue;
-        } else {
-          keyName = lastValue;
-        }
-      }
-    }
-
-    // Parse element name
-    if (keyName) {
-      // 'async', 'get', 'set', or 'static' were not a keyword contextually.
-      // The last token is any of those. Make it the element name.
-      node.computed = false;
-      node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);
-      node.key.name = keyName;
-      this.finishNode(node.key, "Identifier");
-    } else {
-      this.parseClassElementName(node);
-    }
-
-    // Parse element value
-    if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
-      var isConstructor = !node.static && checkKeyName(node, "constructor");
-      var allowsDirectSuper = isConstructor && constructorAllowsSuper;
-      // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.
-      if (isConstructor && kind !== "method") { this.raise(node.key.start, "Constructor can't have get/set modifier"); }
-      node.kind = isConstructor ? "constructor" : kind;
-      this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);
-    } else {
-      this.parseClassField(node);
-    }
-
-    return node
-  };
-
-  pp$8.isClassElementNameStart = function() {
-    return (
-      this.type === types$1.name ||
-      this.type === types$1.privateId ||
-      this.type === types$1.num ||
-      this.type === types$1.string ||
-      this.type === types$1.bracketL ||
-      this.type.keyword
-    )
-  };
-
-  pp$8.parseClassElementName = function(element) {
-    if (this.type === types$1.privateId) {
-      if (this.value === "constructor") {
-        this.raise(this.start, "Classes can't have an element named '#constructor'");
-      }
-      element.computed = false;
-      element.key = this.parsePrivateIdent();
-    } else {
-      this.parsePropertyName(element);
-    }
-  };
-
-  pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {
-    // Check key and flags
-    var key = method.key;
-    if (method.kind === "constructor") {
-      if (isGenerator) { this.raise(key.start, "Constructor can't be a generator"); }
-      if (isAsync) { this.raise(key.start, "Constructor can't be an async method"); }
-    } else if (method.static && checkKeyName(method, "prototype")) {
-      this.raise(key.start, "Classes may not have a static property named prototype");
-    }
-
-    // Parse value
-    var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);
-
-    // Check value
-    if (method.kind === "get" && value.params.length !== 0)
-      { this.raiseRecoverable(value.start, "getter should have no params"); }
-    if (method.kind === "set" && value.params.length !== 1)
-      { this.raiseRecoverable(value.start, "setter should have exactly one param"); }
-    if (method.kind === "set" && value.params[0].type === "RestElement")
-      { this.raiseRecoverable(value.params[0].start, "Setter cannot use rest params"); }
-
-    return this.finishNode(method, "MethodDefinition")
-  };
-
-  pp$8.parseClassField = function(field) {
-    if (checkKeyName(field, "constructor")) {
-      this.raise(field.key.start, "Classes can't have a field named 'constructor'");
-    } else if (field.static && checkKeyName(field, "prototype")) {
-      this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
-    }
-
-    if (this.eat(types$1.eq)) {
-      // To raise SyntaxError if 'arguments' exists in the initializer.
-      var scope = this.currentThisScope();
-      var inClassFieldInit = scope.inClassFieldInit;
-      scope.inClassFieldInit = true;
-      field.value = this.parseMaybeAssign();
-      scope.inClassFieldInit = inClassFieldInit;
-    } else {
-      field.value = null;
-    }
-    this.semicolon();
-
-    return this.finishNode(field, "PropertyDefinition")
-  };
-
-  pp$8.parseClassStaticBlock = function(node) {
-    node.body = [];
-
-    var oldLabels = this.labels;
-    this.labels = [];
-    this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER);
-    while (this.type !== types$1.braceR) {
-      var stmt = this.parseStatement(null);
-      node.body.push(stmt);
-    }
-    this.next();
-    this.exitScope();
-    this.labels = oldLabels;
-
-    return this.finishNode(node, "StaticBlock")
-  };
-
-  pp$8.parseClassId = function(node, isStatement) {
-    if (this.type === types$1.name) {
-      node.id = this.parseIdent();
-      if (isStatement)
-        { this.checkLValSimple(node.id, BIND_LEXICAL, false); }
-    } else {
-      if (isStatement === true)
-        { this.unexpected(); }
-      node.id = null;
-    }
-  };
-
-  pp$8.parseClassSuper = function(node) {
-    node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
-  };
-
-  pp$8.enterClassBody = function() {
-    var element = {declared: Object.create(null), used: []};
-    this.privateNameStack.push(element);
-    return element.declared
-  };
-
-  pp$8.exitClassBody = function() {
-    var ref = this.privateNameStack.pop();
-    var declared = ref.declared;
-    var used = ref.used;
-    if (!this.options.checkPrivateFields) { return }
-    var len = this.privateNameStack.length;
-    var parent = len === 0 ? null : this.privateNameStack[len - 1];
-    for (var i = 0; i < used.length; ++i) {
-      var id = used[i];
-      if (!hasOwn(declared, id.name)) {
-        if (parent) {
-          parent.used.push(id);
-        } else {
-          this.raiseRecoverable(id.start, ("Private field '#" + (id.name) + "' must be declared in an enclosing class"));
-        }
-      }
-    }
-  };
-
-  function isPrivateNameConflicted(privateNameMap, element) {
-    var name = element.key.name;
-    var curr = privateNameMap[name];
-
-    var next = "true";
-    if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) {
-      next = (element.static ? "s" : "i") + element.kind;
-    }
-
-    // `class { get #a(){}; static set #a(_){} }` is also conflict.
-    if (
-      curr === "iget" && next === "iset" ||
-      curr === "iset" && next === "iget" ||
-      curr === "sget" && next === "sset" ||
-      curr === "sset" && next === "sget"
-    ) {
-      privateNameMap[name] = "true";
-      return false
-    } else if (!curr) {
-      privateNameMap[name] = next;
-      return false
-    } else {
-      return true
-    }
-  }
-
-  function checkKeyName(node, name) {
-    var computed = node.computed;
-    var key = node.key;
-    return !computed && (
-      key.type === "Identifier" && key.name === name ||
-      key.type === "Literal" && key.value === name
-    )
-  }
-
-  // Parses module export declaration.
-
-  pp$8.parseExportAllDeclaration = function(node, exports) {
-    if (this.options.ecmaVersion >= 11) {
-      if (this.eatContextual("as")) {
-        node.exported = this.parseModuleExportName();
-        this.checkExport(exports, node.exported, this.lastTokStart);
-      } else {
-        node.exported = null;
-      }
-    }
-    this.expectContextual("from");
-    if (this.type !== types$1.string) { this.unexpected(); }
-    node.source = this.parseExprAtom();
-    this.semicolon();
-    return this.finishNode(node, "ExportAllDeclaration")
-  };
-
-  pp$8.parseExport = function(node, exports) {
-    this.next();
-    // export * from '...'
-    if (this.eat(types$1.star)) {
-      return this.parseExportAllDeclaration(node, exports)
-    }
-    if (this.eat(types$1._default)) { // export default ...
-      this.checkExport(exports, "default", this.lastTokStart);
-      node.declaration = this.parseExportDefaultDeclaration();
-      return this.finishNode(node, "ExportDefaultDeclaration")
-    }
-    // export var|const|let|function|class ...
-    if (this.shouldParseExportStatement()) {
-      node.declaration = this.parseExportDeclaration(node);
-      if (node.declaration.type === "VariableDeclaration")
-        { this.checkVariableExport(exports, node.declaration.declarations); }
-      else
-        { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
-      node.specifiers = [];
-      node.source = null;
-    } else { // export { x, y as z } [from '...']
-      node.declaration = null;
-      node.specifiers = this.parseExportSpecifiers(exports);
-      if (this.eatContextual("from")) {
-        if (this.type !== types$1.string) { this.unexpected(); }
-        node.source = this.parseExprAtom();
-      } else {
-        for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
-          // check for keywords used as local names
-          var spec = list[i];
-
-          this.checkUnreserved(spec.local);
-          // check if export is defined
-          this.checkLocalExport(spec.local);
-
-          if (spec.local.type === "Literal") {
-            this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`.");
-          }
-        }
-
-        node.source = null;
-      }
-      this.semicolon();
-    }
-    return this.finishNode(node, "ExportNamedDeclaration")
-  };
-
-  pp$8.parseExportDeclaration = function(node) {
-    return this.parseStatement(null)
-  };
-
-  pp$8.parseExportDefaultDeclaration = function() {
-    var isAsync;
-    if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
-      var fNode = this.startNode();
-      this.next();
-      if (isAsync) { this.next(); }
-      return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)
-    } else if (this.type === types$1._class) {
-      var cNode = this.startNode();
-      return this.parseClass(cNode, "nullableID")
-    } else {
-      var declaration = this.parseMaybeAssign();
-      this.semicolon();
-      return declaration
-    }
-  };
-
-  pp$8.checkExport = function(exports, name, pos) {
-    if (!exports) { return }
-    if (typeof name !== "string")
-      { name = name.type === "Identifier" ? name.name : name.value; }
-    if (hasOwn(exports, name))
-      { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
-    exports[name] = true;
-  };
-
-  pp$8.checkPatternExport = function(exports, pat) {
-    var type = pat.type;
-    if (type === "Identifier")
-      { this.checkExport(exports, pat, pat.start); }
-    else if (type === "ObjectPattern")
-      { for (var i = 0, list = pat.properties; i < list.length; i += 1)
-        {
-          var prop = list[i];
-
-          this.checkPatternExport(exports, prop);
-        } }
-    else if (type === "ArrayPattern")
-      { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
-        var elt = list$1[i$1];
-
-          if (elt) { this.checkPatternExport(exports, elt); }
-      } }
-    else if (type === "Property")
-      { this.checkPatternExport(exports, pat.value); }
-    else if (type === "AssignmentPattern")
-      { this.checkPatternExport(exports, pat.left); }
-    else if (type === "RestElement")
-      { this.checkPatternExport(exports, pat.argument); }
-  };
-
-  pp$8.checkVariableExport = function(exports, decls) {
-    if (!exports) { return }
-    for (var i = 0, list = decls; i < list.length; i += 1)
-      {
-      var decl = list[i];
-
-      this.checkPatternExport(exports, decl.id);
-    }
-  };
-
-  pp$8.shouldParseExportStatement = function() {
-    return this.type.keyword === "var" ||
-      this.type.keyword === "const" ||
-      this.type.keyword === "class" ||
-      this.type.keyword === "function" ||
-      this.isLet() ||
-      this.isAsyncFunction()
-  };
-
-  // Parses a comma-separated list of module exports.
-
-  pp$8.parseExportSpecifier = function(exports) {
-    var node = this.startNode();
-    node.local = this.parseModuleExportName();
-
-    node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
-    this.checkExport(
-      exports,
-      node.exported,
-      node.exported.start
-    );
-
-    return this.finishNode(node, "ExportSpecifier")
-  };
-
-  pp$8.parseExportSpecifiers = function(exports) {
-    var nodes = [], first = true;
-    // export { x, y as z } [from '...']
-    this.expect(types$1.braceL);
-    while (!this.eat(types$1.braceR)) {
-      if (!first) {
-        this.expect(types$1.comma);
-        if (this.afterTrailingComma(types$1.braceR)) { break }
-      } else { first = false; }
-
-      nodes.push(this.parseExportSpecifier(exports));
-    }
-    return nodes
-  };
-
-  // Parses import declaration.
-
-  pp$8.parseImport = function(node) {
-    this.next();
-
-    // import '...'
-    if (this.type === types$1.string) {
-      node.specifiers = empty$1;
-      node.source = this.parseExprAtom();
-    } else {
-      node.specifiers = this.parseImportSpecifiers();
-      this.expectContextual("from");
-      node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();
-    }
-    this.semicolon();
-    return this.finishNode(node, "ImportDeclaration")
-  };
-
-  // Parses a comma-separated list of module imports.
-
-  pp$8.parseImportSpecifier = function() {
-    var node = this.startNode();
-    node.imported = this.parseModuleExportName();
-
-    if (this.eatContextual("as")) {
-      node.local = this.parseIdent();
-    } else {
-      this.checkUnreserved(node.imported);
-      node.local = node.imported;
-    }
-    this.checkLValSimple(node.local, BIND_LEXICAL);
-
-    return this.finishNode(node, "ImportSpecifier")
-  };
-
-  pp$8.parseImportDefaultSpecifier = function() {
-    // import defaultObj, { x, y as z } from '...'
-    var node = this.startNode();
-    node.local = this.parseIdent();
-    this.checkLValSimple(node.local, BIND_LEXICAL);
-    return this.finishNode(node, "ImportDefaultSpecifier")
-  };
-
-  pp$8.parseImportNamespaceSpecifier = function() {
-    var node = this.startNode();
-    this.next();
-    this.expectContextual("as");
-    node.local = this.parseIdent();
-    this.checkLValSimple(node.local, BIND_LEXICAL);
-    return this.finishNode(node, "ImportNamespaceSpecifier")
-  };
-
-  pp$8.parseImportSpecifiers = function() {
-    var nodes = [], first = true;
-    if (this.type === types$1.name) {
-      nodes.push(this.parseImportDefaultSpecifier());
-      if (!this.eat(types$1.comma)) { return nodes }
-    }
-    if (this.type === types$1.star) {
-      nodes.push(this.parseImportNamespaceSpecifier());
-      return nodes
-    }
-    this.expect(types$1.braceL);
-    while (!this.eat(types$1.braceR)) {
-      if (!first) {
-        this.expect(types$1.comma);
-        if (this.afterTrailingComma(types$1.braceR)) { break }
-      } else { first = false; }
-
-      nodes.push(this.parseImportSpecifier());
-    }
-    return nodes
-  };
-
-  pp$8.parseModuleExportName = function() {
-    if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
-      var stringLiteral = this.parseLiteral(this.value);
-      if (loneSurrogate.test(stringLiteral.value)) {
-        this.raise(stringLiteral.start, "An export name cannot include a lone surrogate.");
-      }
-      return stringLiteral
-    }
-    return this.parseIdent(true)
-  };
-
-  // Set `ExpressionStatement#directive` property for directive prologues.
-  pp$8.adaptDirectivePrologue = function(statements) {
-    for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {
-      statements[i].directive = statements[i].expression.raw.slice(1, -1);
-    }
-  };
-  pp$8.isDirectiveCandidate = function(statement) {
-    return (
-      this.options.ecmaVersion >= 5 &&
-      statement.type === "ExpressionStatement" &&
-      statement.expression.type === "Literal" &&
-      typeof statement.expression.value === "string" &&
-      // Reject parenthesized strings.
-      (this.input[statement.start] === "\"" || this.input[statement.start] === "'")
-    )
-  };
-
-  var pp$7 = Parser.prototype;
-
-  // Convert existing expression atom to assignable pattern
-  // if possible.
-
-  pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {
-    if (this.options.ecmaVersion >= 6 && node) {
-      switch (node.type) {
-      case "Identifier":
-        if (this.inAsync && node.name === "await")
-          { this.raise(node.start, "Cannot use 'await' as identifier inside an async function"); }
-        break
-
-      case "ObjectPattern":
-      case "ArrayPattern":
-      case "AssignmentPattern":
-      case "RestElement":
-        break
-
-      case "ObjectExpression":
-        node.type = "ObjectPattern";
-        if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
-        for (var i = 0, list = node.properties; i < list.length; i += 1) {
-          var prop = list[i];
-
-        this.toAssignable(prop, isBinding);
-          // Early error:
-          //   AssignmentRestProperty[Yield, Await] :
-          //     `...` DestructuringAssignmentTarget[Yield, Await]
-          //
-          //   It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.
-          if (
-            prop.type === "RestElement" &&
-            (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern")
-          ) {
-            this.raise(prop.argument.start, "Unexpected token");
-          }
-        }
-        break
-
-      case "Property":
-        // AssignmentProperty has type === "Property"
-        if (node.kind !== "init") { this.raise(node.key.start, "Object pattern can't contain getter or setter"); }
-        this.toAssignable(node.value, isBinding);
-        break
-
-      case "ArrayExpression":
-        node.type = "ArrayPattern";
-        if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
-        this.toAssignableList(node.elements, isBinding);
-        break
-
-      case "SpreadElement":
-        node.type = "RestElement";
-        this.toAssignable(node.argument, isBinding);
-        if (node.argument.type === "AssignmentPattern")
-          { this.raise(node.argument.start, "Rest elements cannot have a default value"); }
-        break
-
-      case "AssignmentExpression":
-        if (node.operator !== "=") { this.raise(node.left.end, "Only '=' operator can be used for specifying default value."); }
-        node.type = "AssignmentPattern";
-        delete node.operator;
-        this.toAssignable(node.left, isBinding);
-        break
-
-      case "ParenthesizedExpression":
-        this.toAssignable(node.expression, isBinding, refDestructuringErrors);
-        break
-
-      case "ChainExpression":
-        this.raiseRecoverable(node.start, "Optional chaining cannot appear in left-hand side");
-        break
-
-      case "MemberExpression":
-        if (!isBinding) { break }
-
-      default:
-        this.raise(node.start, "Assigning to rvalue");
-      }
-    } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }
-    return node
-  };
-
-  // Convert list of expression atoms to binding list.
-
-  pp$7.toAssignableList = function(exprList, isBinding) {
-    var end = exprList.length;
-    for (var i = 0; i < end; i++) {
-      var elt = exprList[i];
-      if (elt) { this.toAssignable(elt, isBinding); }
-    }
-    if (end) {
-      var last = exprList[end - 1];
-      if (this.options.ecmaVersion === 6 && isBinding && last && last.type === "RestElement" && last.argument.type !== "Identifier")
-        { this.unexpected(last.argument.start); }
-    }
-    return exprList
-  };
-
-  // Parses spread element.
-
-  pp$7.parseSpread = function(refDestructuringErrors) {
-    var node = this.startNode();
-    this.next();
-    node.argument = this.parseMaybeAssign(false, refDestructuringErrors);
-    return this.finishNode(node, "SpreadElement")
-  };
-
-  pp$7.parseRestBinding = function() {
-    var node = this.startNode();
-    this.next();
-
-    // RestElement inside of a function parameter must be an identifier
-    if (this.options.ecmaVersion === 6 && this.type !== types$1.name)
-      { this.unexpected(); }
-
-    node.argument = this.parseBindingAtom();
-
-    return this.finishNode(node, "RestElement")
-  };
-
-  // Parses lvalue (assignable) atom.
-
-  pp$7.parseBindingAtom = function() {
-    if (this.options.ecmaVersion >= 6) {
-      switch (this.type) {
-      case types$1.bracketL:
-        var node = this.startNode();
-        this.next();
-        node.elements = this.parseBindingList(types$1.bracketR, true, true);
-        return this.finishNode(node, "ArrayPattern")
-
-      case types$1.braceL:
-        return this.parseObj(true)
-      }
-    }
-    return this.parseIdent()
-  };
-
-  pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
-    var elts = [], first = true;
-    while (!this.eat(close)) {
-      if (first) { first = false; }
-      else { this.expect(types$1.comma); }
-      if (allowEmpty && this.type === types$1.comma) {
-        elts.push(null);
-      } else if (allowTrailingComma && this.afterTrailingComma(close)) {
-        break
-      } else if (this.type === types$1.ellipsis) {
-        var rest = this.parseRestBinding();
-        this.parseBindingListItem(rest);
-        elts.push(rest);
-        if (this.type === types$1.comma) { this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"); }
-        this.expect(close);
-        break
-      } else {
-        elts.push(this.parseAssignableListItem(allowModifiers));
-      }
-    }
-    return elts
-  };
-
-  pp$7.parseAssignableListItem = function(allowModifiers) {
-    var elem = this.parseMaybeDefault(this.start, this.startLoc);
-    this.parseBindingListItem(elem);
-    return elem
-  };
-
-  pp$7.parseBindingListItem = function(param) {
-    return param
-  };
-
-  // Parses assignment pattern around given atom if possible.
-
-  pp$7.parseMaybeDefault = function(startPos, startLoc, left) {
-    left = left || this.parseBindingAtom();
-    if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left }
-    var node = this.startNodeAt(startPos, startLoc);
-    node.left = left;
-    node.right = this.parseMaybeAssign();
-    return this.finishNode(node, "AssignmentPattern")
-  };
-
-  // The following three functions all verify that a node is an lvalue —
-  // something that can be bound, or assigned to. In order to do so, they perform
-  // a variety of checks:
-  //
-  // - Check that none of the bound/assigned-to identifiers are reserved words.
-  // - Record name declarations for bindings in the appropriate scope.
-  // - Check duplicate argument names, if checkClashes is set.
-  //
-  // If a complex binding pattern is encountered (e.g., object and array
-  // destructuring), the entire pattern is recursively checked.
-  //
-  // There are three versions of checkLVal*() appropriate for different
-  // circumstances:
-  //
-  // - checkLValSimple() shall be used if the syntactic construct supports
-  //   nothing other than identifiers and member expressions. Parenthesized
-  //   expressions are also correctly handled. This is generally appropriate for
-  //   constructs for which the spec says
-  //
-  //   > It is a Syntax Error if AssignmentTargetType of [the production] is not
-  //   > simple.
-  //
-  //   It is also appropriate for checking if an identifier is valid and not
-  //   defined elsewhere, like import declarations or function/class identifiers.
-  //
-  //   Examples where this is used include:
-  //     a += …;
-  //     import a from '…';
-  //   where a is the node to be checked.
-  //
-  // - checkLValPattern() shall be used if the syntactic construct supports
-  //   anything checkLValSimple() supports, as well as object and array
-  //   destructuring patterns. This is generally appropriate for constructs for
-  //   which the spec says
-  //
-  //   > It is a Syntax Error if [the production] is neither an ObjectLiteral nor
-  //   > an ArrayLiteral and AssignmentTargetType of [the production] is not
-  //   > simple.
-  //
-  //   Examples where this is used include:
-  //     (a = …);
-  //     const a = …;
-  //     try { … } catch (a) { … }
-  //   where a is the node to be checked.
-  //
-  // - checkLValInnerPattern() shall be used if the syntactic construct supports
-  //   anything checkLValPattern() supports, as well as default assignment
-  //   patterns, rest elements, and other constructs that may appear within an
-  //   object or array destructuring pattern.
-  //
-  //   As a special case, function parameters also use checkLValInnerPattern(),
-  //   as they also support defaults and rest constructs.
-  //
-  // These functions deliberately support both assignment and binding constructs,
-  // as the logic for both is exceedingly similar. If the node is the target of
-  // an assignment, then bindingType should be set to BIND_NONE. Otherwise, it
-  // should be set to the appropriate BIND_* constant, like BIND_VAR or
-  // BIND_LEXICAL.
-  //
-  // If the function is called with a non-BIND_NONE bindingType, then
-  // additionally a checkClashes object may be specified to allow checking for
-  // duplicate argument names. checkClashes is ignored if the provided construct
-  // is an assignment (i.e., bindingType is BIND_NONE).
-
-  pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {
-    if ( bindingType === void 0 ) bindingType = BIND_NONE;
-
-    var isBind = bindingType !== BIND_NONE;
-
-    switch (expr.type) {
-    case "Identifier":
-      if (this.strict && this.reservedWordsStrictBind.test(expr.name))
-        { this.raiseRecoverable(expr.start, (isBind ? "Binding " : "Assigning to ") + expr.name + " in strict mode"); }
-      if (isBind) {
-        if (bindingType === BIND_LEXICAL && expr.name === "let")
-          { this.raiseRecoverable(expr.start, "let is disallowed as a lexically bound name"); }
-        if (checkClashes) {
-          if (hasOwn(checkClashes, expr.name))
-            { this.raiseRecoverable(expr.start, "Argument name clash"); }
-          checkClashes[expr.name] = true;
-        }
-        if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }
-      }
-      break
-
-    case "ChainExpression":
-      this.raiseRecoverable(expr.start, "Optional chaining cannot appear in left-hand side");
-      break
-
-    case "MemberExpression":
-      if (isBind) { this.raiseRecoverable(expr.start, "Binding member expression"); }
-      break
-
-    case "ParenthesizedExpression":
-      if (isBind) { this.raiseRecoverable(expr.start, "Binding parenthesized expression"); }
-      return this.checkLValSimple(expr.expression, bindingType, checkClashes)
-
-    default:
-      this.raise(expr.start, (isBind ? "Binding" : "Assigning to") + " rvalue");
-    }
-  };
-
-  pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
-    if ( bindingType === void 0 ) bindingType = BIND_NONE;
-
-    switch (expr.type) {
-    case "ObjectPattern":
-      for (var i = 0, list = expr.properties; i < list.length; i += 1) {
-        var prop = list[i];
-
-      this.checkLValInnerPattern(prop, bindingType, checkClashes);
-      }
-      break
-
-    case "ArrayPattern":
-      for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {
-        var elem = list$1[i$1];
-
-      if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); }
-      }
-      break
-
-    default:
-      this.checkLValSimple(expr, bindingType, checkClashes);
-    }
-  };
-
-  pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
-    if ( bindingType === void 0 ) bindingType = BIND_NONE;
-
-    switch (expr.type) {
-    case "Property":
-      // AssignmentProperty has type === "Property"
-      this.checkLValInnerPattern(expr.value, bindingType, checkClashes);
-      break
-
-    case "AssignmentPattern":
-      this.checkLValPattern(expr.left, bindingType, checkClashes);
-      break
-
-    case "RestElement":
-      this.checkLValPattern(expr.argument, bindingType, checkClashes);
-      break
-
-    default:
-      this.checkLValPattern(expr, bindingType, checkClashes);
-    }
-  };
-
-  // The algorithm used to determine whether a regexp can appear at a
-  // given point in the program is loosely based on sweet.js' approach.
-  // See https://github.com/mozilla/sweet.js/wiki/design
-
-
-  var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
-    this.token = token;
-    this.isExpr = !!isExpr;
-    this.preserveSpace = !!preserveSpace;
-    this.override = override;
-    this.generator = !!generator;
-  };
-
-  var types = {
-    b_stat: new TokContext("{", false),
-    b_expr: new TokContext("{", true),
-    b_tmpl: new TokContext("${", false),
-    p_stat: new TokContext("(", false),
-    p_expr: new TokContext("(", true),
-    q_tmpl: new TokContext("`", true, true, function (p) { return p.tryReadTemplateToken(); }),
-    f_stat: new TokContext("function", false),
-    f_expr: new TokContext("function", true),
-    f_expr_gen: new TokContext("function", true, false, null, true),
-    f_gen: new TokContext("function", false, false, null, true)
-  };
-
-  var pp$6 = Parser.prototype;
-
-  pp$6.initialContext = function() {
-    return [types.b_stat]
-  };
-
-  pp$6.curContext = function() {
-    return this.context[this.context.length - 1]
-  };
-
-  pp$6.braceIsBlock = function(prevType) {
-    var parent = this.curContext();
-    if (parent === types.f_expr || parent === types.f_stat)
-      { return true }
-    if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr))
-      { return !parent.isExpr }
-
-    // The check for `tt.name && exprAllowed` detects whether we are
-    // after a `yield` or `of` construct. See the `updateContext` for
-    // `tt.name`.
-    if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed)
-      { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) }
-    if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow)
-      { return true }
-    if (prevType === types$1.braceL)
-      { return parent === types.b_stat }
-    if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name)
-      { return false }
-    return !this.exprAllowed
-  };
-
-  pp$6.inGeneratorContext = function() {
-    for (var i = this.context.length - 1; i >= 1; i--) {
-      var context = this.context[i];
-      if (context.token === "function")
-        { return context.generator }
-    }
-    return false
-  };
-
-  pp$6.updateContext = function(prevType) {
-    var update, type = this.type;
-    if (type.keyword && prevType === types$1.dot)
-      { this.exprAllowed = false; }
-    else if (update = type.updateContext)
-      { update.call(this, prevType); }
-    else
-      { this.exprAllowed = type.beforeExpr; }
-  };
-
-  // Used to handle edge cases when token context could not be inferred correctly during tokenization phase
-
-  pp$6.overrideContext = function(tokenCtx) {
-    if (this.curContext() !== tokenCtx) {
-      this.context[this.context.length - 1] = tokenCtx;
-    }
-  };
-
-  // Token-specific context update code
-
-  types$1.parenR.updateContext = types$1.braceR.updateContext = function() {
-    if (this.context.length === 1) {
-      this.exprAllowed = true;
-      return
-    }
-    var out = this.context.pop();
-    if (out === types.b_stat && this.curContext().token === "function") {
-      out = this.context.pop();
-    }
-    this.exprAllowed = !out.isExpr;
-  };
-
-  types$1.braceL.updateContext = function(prevType) {
-    this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);
-    this.exprAllowed = true;
-  };
-
-  types$1.dollarBraceL.updateContext = function() {
-    this.context.push(types.b_tmpl);
-    this.exprAllowed = true;
-  };
-
-  types$1.parenL.updateContext = function(prevType) {
-    var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;
-    this.context.push(statementParens ? types.p_stat : types.p_expr);
-    this.exprAllowed = true;
-  };
-
-  types$1.incDec.updateContext = function() {
-    // tokExprAllowed stays unchanged
-  };
-
-  types$1._function.updateContext = types$1._class.updateContext = function(prevType) {
-    if (prevType.beforeExpr && prevType !== types$1._else &&
-        !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&
-        !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&
-        !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))
-      { this.context.push(types.f_expr); }
-    else
-      { this.context.push(types.f_stat); }
-    this.exprAllowed = false;
-  };
-
-  types$1.colon.updateContext = function() {
-    if (this.curContext().token === "function") { this.context.pop(); }
-    this.exprAllowed = true;
-  };
-
-  types$1.backQuote.updateContext = function() {
-    if (this.curContext() === types.q_tmpl)
-      { this.context.pop(); }
-    else
-      { this.context.push(types.q_tmpl); }
-    this.exprAllowed = false;
-  };
-
-  types$1.star.updateContext = function(prevType) {
-    if (prevType === types$1._function) {
-      var index = this.context.length - 1;
-      if (this.context[index] === types.f_expr)
-        { this.context[index] = types.f_expr_gen; }
-      else
-        { this.context[index] = types.f_gen; }
-    }
-    this.exprAllowed = true;
-  };
-
-  types$1.name.updateContext = function(prevType) {
-    var allowed = false;
-    if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) {
-      if (this.value === "of" && !this.exprAllowed ||
-          this.value === "yield" && this.inGeneratorContext())
-        { allowed = true; }
-    }
-    this.exprAllowed = allowed;
-  };
-
-  // A recursive descent parser operates by defining functions for all
-  // syntactic elements, and recursively calling those, each function
-  // advancing the input stream and returning an AST node. Precedence
-  // of constructs (for example, the fact that `!x[1]` means `!(x[1])`
-  // instead of `(!x)[1]` is handled by the fact that the parser
-  // function that parses unary prefix operators is called first, and
-  // in turn calls the function that parses `[]` subscripts — that
-  // way, it'll receive the node for `x[1]` already parsed, and wraps
-  // *that* in the unary operator node.
-  //
-  // Acorn uses an [operator precedence parser][opp] to handle binary
-  // operator precedence, because it is much more compact than using
-  // the technique outlined above, which uses different, nesting
-  // functions to specify precedence, for all of the ten binary
-  // precedence levels that JavaScript defines.
-  //
-  // [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser
-
-
-  var pp$5 = Parser.prototype;
-
-  // Check if property name clashes with already added.
-  // Object/class getters and setters are not allowed to clash —
-  // either with each other or with an init property — and in
-  // strict mode, init properties are also not allowed to be repeated.
-
-  pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {
-    if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement")
-      { return }
-    if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))
-      { return }
-    var key = prop.key;
-    var name;
-    switch (key.type) {
-    case "Identifier": name = key.name; break
-    case "Literal": name = String(key.value); break
-    default: return
-    }
-    var kind = prop.kind;
-    if (this.options.ecmaVersion >= 6) {
-      if (name === "__proto__" && kind === "init") {
-        if (propHash.proto) {
-          if (refDestructuringErrors) {
-            if (refDestructuringErrors.doubleProto < 0) {
-              refDestructuringErrors.doubleProto = key.start;
-            }
-          } else {
-            this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
-          }
-        }
-        propHash.proto = true;
-      }
-      return
-    }
-    name = "$" + name;
-    var other = propHash[name];
-    if (other) {
-      var redefinition;
-      if (kind === "init") {
-        redefinition = this.strict && other.init || other.get || other.set;
-      } else {
-        redefinition = other.init || other[kind];
-      }
-      if (redefinition)
-        { this.raiseRecoverable(key.start, "Redefinition of property"); }
-    } else {
-      other = propHash[name] = {
-        init: false,
-        get: false,
-        set: false
-      };
-    }
-    other[kind] = true;
-  };
-
-  // ### Expression parsing
-
-  // These nest, from the most general expression type at the top to
-  // 'atomic', nondivisible expression types at the bottom. Most of
-  // the functions will simply let the function(s) below them parse,
-  // and, *if* the syntactic construct they handle is present, wrap
-  // the AST node that the inner parser gave them in another node.
-
-  // Parse a full expression. The optional arguments are used to
-  // forbid the `in` operator (in for loops initalization expressions)
-  // and provide reference for storing '=' operator inside shorthand
-  // property assignment in contexts where both object expression
-  // and object pattern might appear (so it's possible to raise
-  // delayed syntax error at correct position).
-
-  pp$5.parseExpression = function(forInit, refDestructuringErrors) {
-    var startPos = this.start, startLoc = this.startLoc;
-    var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);
-    if (this.type === types$1.comma) {
-      var node = this.startNodeAt(startPos, startLoc);
-      node.expressions = [expr];
-      while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); }
-      return this.finishNode(node, "SequenceExpression")
-    }
-    return expr
-  };
-
-  // Parse an assignment expression. This includes applications of
-  // operators like `+=`.
-
-  pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
-    if (this.isContextual("yield")) {
-      if (this.inGenerator) { return this.parseYield(forInit) }
-      // The tokenizer will assume an expression is allowed after
-      // `yield`, but this isn't that kind of yield
-      else { this.exprAllowed = false; }
-    }
-
-    var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
-    if (refDestructuringErrors) {
-      oldParenAssign = refDestructuringErrors.parenthesizedAssign;
-      oldTrailingComma = refDestructuringErrors.trailingComma;
-      oldDoubleProto = refDestructuringErrors.doubleProto;
-      refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;
-    } else {
-      refDestructuringErrors = new DestructuringErrors;
-      ownDestructuringErrors = true;
-    }
-
-    var startPos = this.start, startLoc = this.startLoc;
-    if (this.type === types$1.parenL || this.type === types$1.name) {
-      this.potentialArrowAt = this.start;
-      this.potentialArrowInForAwait = forInit === "await";
-    }
-    var left = this.parseMaybeConditional(forInit, refDestructuringErrors);
-    if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); }
-    if (this.type.isAssign) {
-      var node = this.startNodeAt(startPos, startLoc);
-      node.operator = this.value;
-      if (this.type === types$1.eq)
-        { left = this.toAssignable(left, false, refDestructuringErrors); }
-      if (!ownDestructuringErrors) {
-        refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;
-      }
-      if (refDestructuringErrors.shorthandAssign >= left.start)
-        { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly
-      if (this.type === types$1.eq)
-        { this.checkLValPattern(left); }
-      else
-        { this.checkLValSimple(left); }
-      node.left = left;
-      this.next();
-      node.right = this.parseMaybeAssign(forInit);
-      if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; }
-      return this.finishNode(node, "AssignmentExpression")
-    } else {
-      if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); }
-    }
-    if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; }
-    if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }
-    return left
-  };
-
-  // Parse a ternary conditional (`?:`) operator.
-
-  pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {
-    var startPos = this.start, startLoc = this.startLoc;
-    var expr = this.parseExprOps(forInit, refDestructuringErrors);
-    if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }
-    if (this.eat(types$1.question)) {
-      var node = this.startNodeAt(startPos, startLoc);
-      node.test = expr;
-      node.consequent = this.parseMaybeAssign();
-      this.expect(types$1.colon);
-      node.alternate = this.parseMaybeAssign(forInit);
-      return this.finishNode(node, "ConditionalExpression")
-    }
-    return expr
-  };
-
-  // Start the precedence parser.
-
-  pp$5.parseExprOps = function(forInit, refDestructuringErrors) {
-    var startPos = this.start, startLoc = this.startLoc;
-    var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);
-    if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }
-    return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)
-  };
-
-  // Parse binary operators with the operator precedence parsing
-  // algorithm. `left` is the left-hand side of the operator.
-  // `minPrec` provides context that allows the function to stop and
-  // defer further parser to one of its callers when it encounters an
-  // operator that has a lower precedence than the set it is parsing.
-
-  pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {
-    var prec = this.type.binop;
-    if (prec != null && (!forInit || this.type !== types$1._in)) {
-      if (prec > minPrec) {
-        var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND;
-        var coalesce = this.type === types$1.coalesce;
-        if (coalesce) {
-          // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.
-          // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.
-          prec = types$1.logicalAND.binop;
-        }
-        var op = this.value;
-        this.next();
-        var startPos = this.start, startLoc = this.startLoc;
-        var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);
-        var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);
-        if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) {
-          this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");
-        }
-        return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit)
-      }
-    }
-    return left
-  };
-
-  pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {
-    if (right.type === "PrivateIdentifier") { this.raise(right.start, "Private identifier can only be left side of binary expression"); }
-    var node = this.startNodeAt(startPos, startLoc);
-    node.left = left;
-    node.operator = op;
-    node.right = right;
-    return this.finishNode(node, logical ? "LogicalExpression" : "BinaryExpression")
-  };
-
-  // Parse unary operators, both prefix and postfix.
-
-  pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {
-    var startPos = this.start, startLoc = this.startLoc, expr;
-    if (this.isContextual("await") && this.canAwait) {
-      expr = this.parseAwait(forInit);
-      sawUnary = true;
-    } else if (this.type.prefix) {
-      var node = this.startNode(), update = this.type === types$1.incDec;
-      node.operator = this.value;
-      node.prefix = true;
-      this.next();
-      node.argument = this.parseMaybeUnary(null, true, update, forInit);
-      this.checkExpressionErrors(refDestructuringErrors, true);
-      if (update) { this.checkLValSimple(node.argument); }
-      else if (this.strict && node.operator === "delete" && isLocalVariableAccess(node.argument))
-        { this.raiseRecoverable(node.start, "Deleting local variable in strict mode"); }
-      else if (node.operator === "delete" && isPrivateFieldAccess(node.argument))
-        { this.raiseRecoverable(node.start, "Private fields can not be deleted"); }
-      else { sawUnary = true; }
-      expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
-    } else if (!sawUnary && this.type === types$1.privateId) {
-      if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }
-      expr = this.parsePrivateIdent();
-      // only could be private fields in 'in', such as #x in obj
-      if (this.type !== types$1._in) { this.unexpected(); }
-    } else {
-      expr = this.parseExprSubscripts(refDestructuringErrors, forInit);
-      if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }
-      while (this.type.postfix && !this.canInsertSemicolon()) {
-        var node$1 = this.startNodeAt(startPos, startLoc);
-        node$1.operator = this.value;
-        node$1.prefix = false;
-        node$1.argument = expr;
-        this.checkLValSimple(expr);
-        this.next();
-        expr = this.finishNode(node$1, "UpdateExpression");
-      }
-    }
-
-    if (!incDec && this.eat(types$1.starstar)) {
-      if (sawUnary)
-        { this.unexpected(this.lastTokStart); }
-      else
-        { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false) }
-    } else {
-      return expr
-    }
-  };
-
-  function isLocalVariableAccess(node) {
-    return (
-      node.type === "Identifier" ||
-      node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression)
-    )
-  }
-
-  function isPrivateFieldAccess(node) {
-    return (
-      node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" ||
-      node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) ||
-      node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression)
-    )
-  }
-
-  // Parse call, dot, and `[]`-subscript expressions.
-
-  pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
-    var startPos = this.start, startLoc = this.startLoc;
-    var expr = this.parseExprAtom(refDestructuringErrors, forInit);
-    if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
-      { return expr }
-    var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);
-    if (refDestructuringErrors && result.type === "MemberExpression") {
-      if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; }
-      if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; }
-      if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; }
-    }
-    return result
-  };
-
-  pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
-    var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" &&
-        this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&
-        this.potentialArrowAt === base.start;
-    var optionalChained = false;
-
-    while (true) {
-      var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);
-
-      if (element.optional) { optionalChained = true; }
-      if (element === base || element.type === "ArrowFunctionExpression") {
-        if (optionalChained) {
-          var chainNode = this.startNodeAt(startPos, startLoc);
-          chainNode.expression = element;
-          element = this.finishNode(chainNode, "ChainExpression");
-        }
-        return element
-      }
-
-      base = element;
-    }
-  };
-
-  pp$5.shouldParseAsyncArrow = function() {
-    return !this.canInsertSemicolon() && this.eat(types$1.arrow)
-  };
-
-  pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
-    return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)
-  };
-
-  pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
-    var optionalSupported = this.options.ecmaVersion >= 11;
-    var optional = optionalSupported && this.eat(types$1.questionDot);
-    if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); }
-
-    var computed = this.eat(types$1.bracketL);
-    if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) {
-      var node = this.startNodeAt(startPos, startLoc);
-      node.object = base;
-      if (computed) {
-        node.property = this.parseExpression();
-        this.expect(types$1.bracketR);
-      } else if (this.type === types$1.privateId && base.type !== "Super") {
-        node.property = this.parsePrivateIdent();
-      } else {
-        node.property = this.parseIdent(this.options.allowReserved !== "never");
-      }
-      node.computed = !!computed;
-      if (optionalSupported) {
-        node.optional = optional;
-      }
-      base = this.finishNode(node, "MemberExpression");
-    } else if (!noCalls && this.eat(types$1.parenL)) {
-      var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
-      this.yieldPos = 0;
-      this.awaitPos = 0;
-      this.awaitIdentPos = 0;
-      var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
-      if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
-        this.checkPatternErrors(refDestructuringErrors, false);
-        this.checkYieldAwaitInDefaultParams();
-        if (this.awaitIdentPos > 0)
-          { this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"); }
-        this.yieldPos = oldYieldPos;
-        this.awaitPos = oldAwaitPos;
-        this.awaitIdentPos = oldAwaitIdentPos;
-        return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)
-      }
-      this.checkExpressionErrors(refDestructuringErrors, true);
-      this.yieldPos = oldYieldPos || this.yieldPos;
-      this.awaitPos = oldAwaitPos || this.awaitPos;
-      this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;
-      var node$1 = this.startNodeAt(startPos, startLoc);
-      node$1.callee = base;
-      node$1.arguments = exprList;
-      if (optionalSupported) {
-        node$1.optional = optional;
-      }
-      base = this.finishNode(node$1, "CallExpression");
-    } else if (this.type === types$1.backQuote) {
-      if (optional || optionalChained) {
-        this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
-      }
-      var node$2 = this.startNodeAt(startPos, startLoc);
-      node$2.tag = base;
-      node$2.quasi = this.parseTemplate({isTagged: true});
-      base = this.finishNode(node$2, "TaggedTemplateExpression");
-    }
-    return base
-  };
-
-  // Parse an atomic expression — either a single token that is an
-  // expression, an expression started by a keyword like `function` or
-  // `new`, or an expression wrapped in punctuation like `()`, `[]`,
-  // or `{}`.
-
-  pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
-    // If a division operator appears in an expression position, the
-    // tokenizer got confused, and we force it to read a regexp instead.
-    if (this.type === types$1.slash) { this.readRegexp(); }
-
-    var node, canBeArrow = this.potentialArrowAt === this.start;
-    switch (this.type) {
-    case types$1._super:
-      if (!this.allowSuper)
-        { this.raise(this.start, "'super' keyword outside a method"); }
-      node = this.startNode();
-      this.next();
-      if (this.type === types$1.parenL && !this.allowDirectSuper)
-        { this.raise(node.start, "super() call outside constructor of a subclass"); }
-      // The `super` keyword can appear at below:
-      // SuperProperty:
-      //     super [ Expression ]
-      //     super . IdentifierName
-      // SuperCall:
-      //     super ( Arguments )
-      if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)
-        { this.unexpected(); }
-      return this.finishNode(node, "Super")
-
-    case types$1._this:
-      node = this.startNode();
-      this.next();
-      return this.finishNode(node, "ThisExpression")
-
-    case types$1.name:
-      var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;
-      var id = this.parseIdent(false);
-      if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function)) {
-        this.overrideContext(types.f_expr);
-        return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)
-      }
-      if (canBeArrow && !this.canInsertSemicolon()) {
-        if (this.eat(types$1.arrow))
-          { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) }
-        if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types$1.name && !containsEsc &&
-            (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) {
-          id = this.parseIdent(false);
-          if (this.canInsertSemicolon() || !this.eat(types$1.arrow))
-            { this.unexpected(); }
-          return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)
-        }
-      }
-      return id
-
-    case types$1.regexp:
-      var value = this.value;
-      node = this.parseLiteral(value.value);
-      node.regex = {pattern: value.pattern, flags: value.flags};
-      return node
-
-    case types$1.num: case types$1.string:
-      return this.parseLiteral(this.value)
-
-    case types$1._null: case types$1._true: case types$1._false:
-      node = this.startNode();
-      node.value = this.type === types$1._null ? null : this.type === types$1._true;
-      node.raw = this.type.keyword;
-      this.next();
-      return this.finishNode(node, "Literal")
-
-    case types$1.parenL:
-      var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);
-      if (refDestructuringErrors) {
-        if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))
-          { refDestructuringErrors.parenthesizedAssign = start; }
-        if (refDestructuringErrors.parenthesizedBind < 0)
-          { refDestructuringErrors.parenthesizedBind = start; }
-      }
-      return expr
-
-    case types$1.bracketL:
-      node = this.startNode();
-      this.next();
-      node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors);
-      return this.finishNode(node, "ArrayExpression")
-
-    case types$1.braceL:
-      this.overrideContext(types.b_expr);
-      return this.parseObj(false, refDestructuringErrors)
-
-    case types$1._function:
-      node = this.startNode();
-      this.next();
-      return this.parseFunction(node, 0)
-
-    case types$1._class:
-      return this.parseClass(this.startNode(), false)
-
-    case types$1._new:
-      return this.parseNew()
-
-    case types$1.backQuote:
-      return this.parseTemplate()
-
-    case types$1._import:
-      if (this.options.ecmaVersion >= 11) {
-        return this.parseExprImport(forNew)
-      } else {
-        return this.unexpected()
-      }
-
-    default:
-      return this.parseExprAtomDefault()
-    }
-  };
-
-  pp$5.parseExprAtomDefault = function() {
-    this.unexpected();
-  };
-
-  pp$5.parseExprImport = function(forNew) {
-    var node = this.startNode();
-
-    // Consume `import` as an identifier for `import.meta`.
-    // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
-    if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
-    this.next();
-
-    if (this.type === types$1.parenL && !forNew) {
-      return this.parseDynamicImport(node)
-    } else if (this.type === types$1.dot) {
-      var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
-      meta.name = "import";
-      node.meta = this.finishNode(meta, "Identifier");
-      return this.parseImportMeta(node)
-    } else {
-      this.unexpected();
-    }
-  };
-
-  pp$5.parseDynamicImport = function(node) {
-    this.next(); // skip `(`
-
-    // Parse node.source.
-    node.source = this.parseMaybeAssign();
-
-    // Verify ending.
-    if (!this.eat(types$1.parenR)) {
-      var errorPos = this.start;
-      if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
-        this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
-      } else {
-        this.unexpected(errorPos);
-      }
-    }
-
-    return this.finishNode(node, "ImportExpression")
-  };
-
-  pp$5.parseImportMeta = function(node) {
-    this.next(); // skip `.`
-
-    var containsEsc = this.containsEsc;
-    node.property = this.parseIdent(true);
-
-    if (node.property.name !== "meta")
-      { this.raiseRecoverable(node.property.start, "The only valid meta property for import is 'import.meta'"); }
-    if (containsEsc)
-      { this.raiseRecoverable(node.start, "'import.meta' must not contain escaped characters"); }
-    if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere)
-      { this.raiseRecoverable(node.start, "Cannot use 'import.meta' outside a module"); }
-
-    return this.finishNode(node, "MetaProperty")
-  };
-
-  pp$5.parseLiteral = function(value) {
-    var node = this.startNode();
-    node.value = value;
-    node.raw = this.input.slice(this.start, this.end);
-    if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); }
-    this.next();
-    return this.finishNode(node, "Literal")
-  };
-
-  pp$5.parseParenExpression = function() {
-    this.expect(types$1.parenL);
-    var val = this.parseExpression();
-    this.expect(types$1.parenR);
-    return val
-  };
-
-  pp$5.shouldParseArrow = function(exprList) {
-    return !this.canInsertSemicolon()
-  };
-
-  pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
-    var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
-    if (this.options.ecmaVersion >= 6) {
-      this.next();
-
-      var innerStartPos = this.start, innerStartLoc = this.startLoc;
-      var exprList = [], first = true, lastIsComma = false;
-      var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;
-      this.yieldPos = 0;
-      this.awaitPos = 0;
-      // Do not save awaitIdentPos to allow checking awaits nested in parameters
-      while (this.type !== types$1.parenR) {
-        first ? first = false : this.expect(types$1.comma);
-        if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) {
-          lastIsComma = true;
-          break
-        } else if (this.type === types$1.ellipsis) {
-          spreadStart = this.start;
-          exprList.push(this.parseParenItem(this.parseRestBinding()));
-          if (this.type === types$1.comma) {
-            this.raiseRecoverable(
-              this.start,
-              "Comma is not permitted after the rest element"
-            );
-          }
-          break
-        } else {
-          exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));
-        }
-      }
-      var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
-      this.expect(types$1.parenR);
-
-      if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
-        this.checkPatternErrors(refDestructuringErrors, false);
-        this.checkYieldAwaitInDefaultParams();
-        this.yieldPos = oldYieldPos;
-        this.awaitPos = oldAwaitPos;
-        return this.parseParenArrowList(startPos, startLoc, exprList, forInit)
-      }
-
-      if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }
-      if (spreadStart) { this.unexpected(spreadStart); }
-      this.checkExpressionErrors(refDestructuringErrors, true);
-      this.yieldPos = oldYieldPos || this.yieldPos;
-      this.awaitPos = oldAwaitPos || this.awaitPos;
-
-      if (exprList.length > 1) {
-        val = this.startNodeAt(innerStartPos, innerStartLoc);
-        val.expressions = exprList;
-        this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc);
-      } else {
-        val = exprList[0];
-      }
-    } else {
-      val = this.parseParenExpression();
-    }
-
-    if (this.options.preserveParens) {
-      var par = this.startNodeAt(startPos, startLoc);
-      par.expression = val;
-      return this.finishNode(par, "ParenthesizedExpression")
-    } else {
-      return val
-    }
-  };
-
-  pp$5.parseParenItem = function(item) {
-    return item
-  };
-
-  pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {
-    return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)
-  };
-
-  // New's precedence is slightly tricky. It must allow its argument to
-  // be a `[]` or dot subscript expression, but not a call — at least,
-  // not without wrapping it in parentheses. Thus, it uses the noCalls
-  // argument to parseSubscripts to prevent it from consuming the
-  // argument list.
-
-  var empty = [];
-
-  pp$5.parseNew = function() {
-    if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); }
-    var node = this.startNode();
-    this.next();
-    if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {
-      var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
-      meta.name = "new";
-      node.meta = this.finishNode(meta, "Identifier");
-      this.next();
-      var containsEsc = this.containsEsc;
-      node.property = this.parseIdent(true);
-      if (node.property.name !== "target")
-        { this.raiseRecoverable(node.property.start, "The only valid meta property for new is 'new.target'"); }
-      if (containsEsc)
-        { this.raiseRecoverable(node.start, "'new.target' must not contain escaped characters"); }
-      if (!this.allowNewDotTarget)
-        { this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"); }
-      return this.finishNode(node, "MetaProperty")
-    }
-    var startPos = this.start, startLoc = this.startLoc;
-    node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
-    if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }
-    else { node.arguments = empty; }
-    return this.finishNode(node, "NewExpression")
-  };
-
-  // Parse template expression.
-
-  pp$5.parseTemplateElement = function(ref) {
-    var isTagged = ref.isTagged;
-
-    var elem = this.startNode();
-    if (this.type === types$1.invalidTemplate) {
-      if (!isTagged) {
-        this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal");
-      }
-      elem.value = {
-        raw: this.value.replace(/\r\n?/g, "\n"),
-        cooked: null
-      };
-    } else {
-      elem.value = {
-        raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"),
-        cooked: this.value
-      };
-    }
-    this.next();
-    elem.tail = this.type === types$1.backQuote;
-    return this.finishNode(elem, "TemplateElement")
-  };
-
-  pp$5.parseTemplate = function(ref) {
-    if ( ref === void 0 ) ref = {};
-    var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;
-
-    var node = this.startNode();
-    this.next();
-    node.expressions = [];
-    var curElt = this.parseTemplateElement({isTagged: isTagged});
-    node.quasis = [curElt];
-    while (!curElt.tail) {
-      if (this.type === types$1.eof) { this.raise(this.pos, "Unterminated template literal"); }
-      this.expect(types$1.dollarBraceL);
-      node.expressions.push(this.parseExpression());
-      this.expect(types$1.braceR);
-      node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged}));
-    }
-    this.next();
-    return this.finishNode(node, "TemplateLiteral")
-  };
-
-  pp$5.isAsyncProp = function(prop) {
-    return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" &&
-      (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) &&
-      !lineBreak.test(this.input.slice(this.lastTokEnd, this.start))
-  };
-
-  // Parse an object literal or binding pattern.
-
-  pp$5.parseObj = function(isPattern, refDestructuringErrors) {
-    var node = this.startNode(), first = true, propHash = {};
-    node.properties = [];
-    this.next();
-    while (!this.eat(types$1.braceR)) {
-      if (!first) {
-        this.expect(types$1.comma);
-        if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break }
-      } else { first = false; }
-
-      var prop = this.parseProperty(isPattern, refDestructuringErrors);
-      if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); }
-      node.properties.push(prop);
-    }
-    return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression")
-  };
-
-  pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
-    var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;
-    if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {
-      if (isPattern) {
-        prop.argument = this.parseIdent(false);
-        if (this.type === types$1.comma) {
-          this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
-        }
-        return this.finishNode(prop, "RestElement")
-      }
-      // Parse argument.
-      prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);
-      // To disallow trailing comma via `this.toAssignable()`.
-      if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {
-        refDestructuringErrors.trailingComma = this.start;
-      }
-      // Finish
-      return this.finishNode(prop, "SpreadElement")
-    }
-    if (this.options.ecmaVersion >= 6) {
-      prop.method = false;
-      prop.shorthand = false;
-      if (isPattern || refDestructuringErrors) {
-        startPos = this.start;
-        startLoc = this.startLoc;
-      }
-      if (!isPattern)
-        { isGenerator = this.eat(types$1.star); }
-    }
-    var containsEsc = this.containsEsc;
-    this.parsePropertyName(prop);
-    if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
-      isAsync = true;
-      isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
-      this.parsePropertyName(prop);
-    } else {
-      isAsync = false;
-    }
-    this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
-    return this.finishNode(prop, "Property")
-  };
-
-  pp$5.parseGetterSetter = function(prop) {
-    prop.kind = prop.key.name;
-    this.parsePropertyName(prop);
-    prop.value = this.parseMethod(false);
-    var paramCount = prop.kind === "get" ? 0 : 1;
-    if (prop.value.params.length !== paramCount) {
-      var start = prop.value.start;
-      if (prop.kind === "get")
-        { this.raiseRecoverable(start, "getter should have no params"); }
-      else
-        { this.raiseRecoverable(start, "setter should have exactly one param"); }
-    } else {
-      if (prop.kind === "set" && prop.value.params[0].type === "RestElement")
-        { this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); }
-    }
-  };
-
-  pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
-    if ((isGenerator || isAsync) && this.type === types$1.colon)
-      { this.unexpected(); }
-
-    if (this.eat(types$1.colon)) {
-      prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);
-      prop.kind = "init";
-    } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) {
-      if (isPattern) { this.unexpected(); }
-      prop.kind = "init";
-      prop.method = true;
-      prop.value = this.parseMethod(isGenerator, isAsync);
-    } else if (!isPattern && !containsEsc &&
-               this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" &&
-               (prop.key.name === "get" || prop.key.name === "set") &&
-               (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
-      if (isGenerator || isAsync) { this.unexpected(); }
-      this.parseGetterSetter(prop);
-    } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
-      if (isGenerator || isAsync) { this.unexpected(); }
-      this.checkUnreserved(prop.key);
-      if (prop.key.name === "await" && !this.awaitIdentPos)
-        { this.awaitIdentPos = startPos; }
-      prop.kind = "init";
-      if (isPattern) {
-        prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
-      } else if (this.type === types$1.eq && refDestructuringErrors) {
-        if (refDestructuringErrors.shorthandAssign < 0)
-          { refDestructuringErrors.shorthandAssign = this.start; }
-        prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
-      } else {
-        prop.value = this.copyNode(prop.key);
-      }
-      prop.shorthand = true;
-    } else { this.unexpected(); }
-  };
-
-  pp$5.parsePropertyName = function(prop) {
-    if (this.options.ecmaVersion >= 6) {
-      if (this.eat(types$1.bracketL)) {
-        prop.computed = true;
-        prop.key = this.parseMaybeAssign();
-        this.expect(types$1.bracketR);
-        return prop.key
-      } else {
-        prop.computed = false;
-      }
-    }
-    return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")
-  };
-
-  // Initialize empty function node.
-
-  pp$5.initFunction = function(node) {
-    node.id = null;
-    if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }
-    if (this.options.ecmaVersion >= 8) { node.async = false; }
-  };
-
-  // Parse object or class method.
-
-  pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {
-    var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
-
-    this.initFunction(node);
-    if (this.options.ecmaVersion >= 6)
-      { node.generator = isGenerator; }
-    if (this.options.ecmaVersion >= 8)
-      { node.async = !!isAsync; }
-
-    this.yieldPos = 0;
-    this.awaitPos = 0;
-    this.awaitIdentPos = 0;
-    this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));
-
-    this.expect(types$1.parenL);
-    node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);
-    this.checkYieldAwaitInDefaultParams();
-    this.parseFunctionBody(node, false, true, false);
-
-    this.yieldPos = oldYieldPos;
-    this.awaitPos = oldAwaitPos;
-    this.awaitIdentPos = oldAwaitIdentPos;
-    return this.finishNode(node, "FunctionExpression")
-  };
-
-  // Parse arrow function expression with given parameters.
-
-  pp$5.parseArrowExpression = function(node, params, isAsync, forInit) {
-    var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;
-
-    this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW);
-    this.initFunction(node);
-    if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }
-
-    this.yieldPos = 0;
-    this.awaitPos = 0;
-    this.awaitIdentPos = 0;
-
-    node.params = this.toAssignableList(params, true);
-    this.parseFunctionBody(node, true, false, forInit);
-
-    this.yieldPos = oldYieldPos;
-    this.awaitPos = oldAwaitPos;
-    this.awaitIdentPos = oldAwaitIdentPos;
-    return this.finishNode(node, "ArrowFunctionExpression")
-  };
-
-  // Parse function body and check parameters.
-
-  pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {
-    var isExpression = isArrowFunction && this.type !== types$1.braceL;
-    var oldStrict = this.strict, useStrict = false;
-
-    if (isExpression) {
-      node.body = this.parseMaybeAssign(forInit);
-      node.expression = true;
-      this.checkParams(node, false);
-    } else {
-      var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);
-      if (!oldStrict || nonSimple) {
-        useStrict = this.strictDirective(this.end);
-        // If this is a strict mode function, verify that argument names
-        // are not repeated, and it does not try to bind the words `eval`
-        // or `arguments`.
-        if (useStrict && nonSimple)
-          { this.raiseRecoverable(node.start, "Illegal 'use strict' directive in function with non-simple parameter list"); }
-      }
-      // Start a new scope with regard to labels and the `inFunction`
-      // flag (restore them to their old value afterwards).
-      var oldLabels = this.labels;
-      this.labels = [];
-      if (useStrict) { this.strict = true; }
-
-      // Add the params to varDeclaredNames to ensure that an error is thrown
-      // if a let/const declaration in the function clashes with one of the params.
-      this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));
-      // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'
-      if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); }
-      node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);
-      node.expression = false;
-      this.adaptDirectivePrologue(node.body.body);
-      this.labels = oldLabels;
-    }
-    this.exitScope();
-  };
-
-  pp$5.isSimpleParamList = function(params) {
-    for (var i = 0, list = params; i < list.length; i += 1)
-      {
-      var param = list[i];
-
-      if (param.type !== "Identifier") { return false
-    } }
-    return true
-  };
-
-  // Checks function params for various disallowed patterns such as using "eval"
-  // or "arguments" and duplicate parameters.
-
-  pp$5.checkParams = function(node, allowDuplicates) {
-    var nameHash = Object.create(null);
-    for (var i = 0, list = node.params; i < list.length; i += 1)
-      {
-      var param = list[i];
-
-      this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);
-    }
-  };
-
-  // Parses a comma-separated list of expressions, and returns them as
-  // an array. `close` is the token type that ends the list, and
-  // `allowEmpty` can be turned on to allow subsequent commas with
-  // nothing in between them to be parsed as `null` (which is needed
-  // for array literals).
-
-  pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {
-    var elts = [], first = true;
-    while (!this.eat(close)) {
-      if (!first) {
-        this.expect(types$1.comma);
-        if (allowTrailingComma && this.afterTrailingComma(close)) { break }
-      } else { first = false; }
-
-      var elt = (void 0);
-      if (allowEmpty && this.type === types$1.comma)
-        { elt = null; }
-      else if (this.type === types$1.ellipsis) {
-        elt = this.parseSpread(refDestructuringErrors);
-        if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0)
-          { refDestructuringErrors.trailingComma = this.start; }
-      } else {
-        elt = this.parseMaybeAssign(false, refDestructuringErrors);
-      }
-      elts.push(elt);
-    }
-    return elts
-  };
-
-  pp$5.checkUnreserved = function(ref) {
-    var start = ref.start;
-    var end = ref.end;
-    var name = ref.name;
-
-    if (this.inGenerator && name === "yield")
-      { this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); }
-    if (this.inAsync && name === "await")
-      { this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function"); }
-    if (this.currentThisScope().inClassFieldInit && name === "arguments")
-      { this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer"); }
-    if (this.inClassStaticBlock && (name === "arguments" || name === "await"))
-      { this.raise(start, ("Cannot use " + name + " in class static initialization block")); }
-    if (this.keywords.test(name))
-      { this.raise(start, ("Unexpected keyword '" + name + "'")); }
-    if (this.options.ecmaVersion < 6 &&
-      this.input.slice(start, end).indexOf("\\") !== -1) { return }
-    var re = this.strict ? this.reservedWordsStrict : this.reservedWords;
-    if (re.test(name)) {
-      if (!this.inAsync && name === "await")
-        { this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function"); }
-      this.raiseRecoverable(start, ("The keyword '" + name + "' is reserved"));
-    }
-  };
-
-  // Parse the next token as an identifier. If `liberal` is true (used
-  // when parsing properties), it will also convert keywords into
-  // identifiers.
-
-  pp$5.parseIdent = function(liberal) {
-    var node = this.parseIdentNode();
-    this.next(!!liberal);
-    this.finishNode(node, "Identifier");
-    if (!liberal) {
-      this.checkUnreserved(node);
-      if (node.name === "await" && !this.awaitIdentPos)
-        { this.awaitIdentPos = node.start; }
-    }
-    return node
-  };
-
-  pp$5.parseIdentNode = function() {
-    var node = this.startNode();
-    if (this.type === types$1.name) {
-      node.name = this.value;
-    } else if (this.type.keyword) {
-      node.name = this.type.keyword;
-
-      // To fix https://github.com/acornjs/acorn/issues/575
-      // `class` and `function` keywords push new context into this.context.
-      // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.
-      // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword
-      if ((node.name === "class" || node.name === "function") &&
-        (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {
-        this.context.pop();
-      }
-      this.type = types$1.name;
-    } else {
-      this.unexpected();
-    }
-    return node
-  };
-
-  pp$5.parsePrivateIdent = function() {
-    var node = this.startNode();
-    if (this.type === types$1.privateId) {
-      node.name = this.value;
-    } else {
-      this.unexpected();
-    }
-    this.next();
-    this.finishNode(node, "PrivateIdentifier");
-
-    // For validating existence
-    if (this.options.checkPrivateFields) {
-      if (this.privateNameStack.length === 0) {
-        this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
-      } else {
-        this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
-      }
-    }
-
-    return node
-  };
-
-  // Parses yield expression inside generator.
-
-  pp$5.parseYield = function(forInit) {
-    if (!this.yieldPos) { this.yieldPos = this.start; }
-
-    var node = this.startNode();
-    this.next();
-    if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) {
-      node.delegate = false;
-      node.argument = null;
-    } else {
-      node.delegate = this.eat(types$1.star);
-      node.argument = this.parseMaybeAssign(forInit);
-    }
-    return this.finishNode(node, "YieldExpression")
-  };
-
-  pp$5.parseAwait = function(forInit) {
-    if (!this.awaitPos) { this.awaitPos = this.start; }
-
-    var node = this.startNode();
-    this.next();
-    node.argument = this.parseMaybeUnary(null, true, false, forInit);
-    return this.finishNode(node, "AwaitExpression")
-  };
-
-  var pp$4 = Parser.prototype;
-
-  // This function is used to raise exceptions on parse errors. It
-  // takes an offset integer (into the current `input`) to indicate
-  // the location of the error, attaches the position to the end
-  // of the error message, and then raises a `SyntaxError` with that
-  // message.
-
-  pp$4.raise = function(pos, message) {
-    var loc = getLineInfo(this.input, pos);
-    message += " (" + loc.line + ":" + loc.column + ")";
-    var err = new SyntaxError(message);
-    err.pos = pos; err.loc = loc; err.raisedAt = this.pos;
-    throw err
-  };
-
-  pp$4.raiseRecoverable = pp$4.raise;
-
-  pp$4.curPosition = function() {
-    if (this.options.locations) {
-      return new Position(this.curLine, this.pos - this.lineStart)
-    }
-  };
-
-  var pp$3 = Parser.prototype;
-
-  var Scope = function Scope(flags) {
-    this.flags = flags;
-    // A list of var-declared names in the current lexical scope
-    this.var = [];
-    // A list of lexically-declared names in the current lexical scope
-    this.lexical = [];
-    // A list of lexically-declared FunctionDeclaration names in the current lexical scope
-    this.functions = [];
-    // A switch to disallow the identifier reference 'arguments'
-    this.inClassFieldInit = false;
-  };
-
-  // The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.
-
-  pp$3.enterScope = function(flags) {
-    this.scopeStack.push(new Scope(flags));
-  };
-
-  pp$3.exitScope = function() {
-    this.scopeStack.pop();
-  };
-
-  // The spec says:
-  // > At the top level of a function, or script, function declarations are
-  // > treated like var declarations rather than like lexical declarations.
-  pp$3.treatFunctionsAsVarInScope = function(scope) {
-    return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)
-  };
-
-  pp$3.declareName = function(name, bindingType, pos) {
-    var redeclared = false;
-    if (bindingType === BIND_LEXICAL) {
-      var scope = this.currentScope();
-      redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;
-      scope.lexical.push(name);
-      if (this.inModule && (scope.flags & SCOPE_TOP))
-        { delete this.undefinedExports[name]; }
-    } else if (bindingType === BIND_SIMPLE_CATCH) {
-      var scope$1 = this.currentScope();
-      scope$1.lexical.push(name);
-    } else if (bindingType === BIND_FUNCTION) {
-      var scope$2 = this.currentScope();
-      if (this.treatFunctionsAsVar)
-        { redeclared = scope$2.lexical.indexOf(name) > -1; }
-      else
-        { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; }
-      scope$2.functions.push(name);
-    } else {
-      for (var i = this.scopeStack.length - 1; i >= 0; --i) {
-        var scope$3 = this.scopeStack[i];
-        if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) ||
-            !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {
-          redeclared = true;
-          break
-        }
-        scope$3.var.push(name);
-        if (this.inModule && (scope$3.flags & SCOPE_TOP))
-          { delete this.undefinedExports[name]; }
-        if (scope$3.flags & SCOPE_VAR) { break }
-      }
-    }
-    if (redeclared) { this.raiseRecoverable(pos, ("Identifier '" + name + "' has already been declared")); }
-  };
-
-  pp$3.checkLocalExport = function(id) {
-    // scope.functions must be empty as Module code is always strict.
-    if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&
-        this.scopeStack[0].var.indexOf(id.name) === -1) {
-      this.undefinedExports[id.name] = id;
-    }
-  };
-
-  pp$3.currentScope = function() {
-    return this.scopeStack[this.scopeStack.length - 1]
-  };
-
-  pp$3.currentVarScope = function() {
-    for (var i = this.scopeStack.length - 1;; i--) {
-      var scope = this.scopeStack[i];
-      if (scope.flags & SCOPE_VAR) { return scope }
-    }
-  };
-
-  // Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.
-  pp$3.currentThisScope = function() {
-    for (var i = this.scopeStack.length - 1;; i--) {
-      var scope = this.scopeStack[i];
-      if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope }
-    }
-  };
-
-  var Node = function Node(parser, pos, loc) {
-    this.type = "";
-    this.start = pos;
-    this.end = 0;
-    if (parser.options.locations)
-      { this.loc = new SourceLocation(parser, loc); }
-    if (parser.options.directSourceFile)
-      { this.sourceFile = parser.options.directSourceFile; }
-    if (parser.options.ranges)
-      { this.range = [pos, 0]; }
-  };
-
-  // Start an AST node, attaching a start offset.
-
-  var pp$2 = Parser.prototype;
-
-  pp$2.startNode = function() {
-    return new Node(this, this.start, this.startLoc)
-  };
-
-  pp$2.startNodeAt = function(pos, loc) {
-    return new Node(this, pos, loc)
-  };
-
-  // Finish an AST node, adding `type` and `end` properties.
-
-  function finishNodeAt(node, type, pos, loc) {
-    node.type = type;
-    node.end = pos;
-    if (this.options.locations)
-      { node.loc.end = loc; }
-    if (this.options.ranges)
-      { node.range[1] = pos; }
-    return node
-  }
-
-  pp$2.finishNode = function(node, type) {
-    return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)
-  };
-
-  // Finish node at given position
-
-  pp$2.finishNodeAt = function(node, type, pos, loc) {
-    return finishNodeAt.call(this, node, type, pos, loc)
-  };
-
-  pp$2.copyNode = function(node) {
-    var newNode = new Node(this, node.start, this.startLoc);
-    for (var prop in node) { newNode[prop] = node[prop]; }
-    return newNode
-  };
-
-  // This file contains Unicode properties extracted from the ECMAScript specification.
-  // The lists are extracted like so:
-  // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
-
-  // #table-binary-unicode-properties
-  var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
-  var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
-  var ecma11BinaryProperties = ecma10BinaryProperties;
-  var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
-  var ecma13BinaryProperties = ecma12BinaryProperties;
-  var ecma14BinaryProperties = ecma13BinaryProperties;
-
-  var unicodeBinaryProperties = {
-    9: ecma9BinaryProperties,
-    10: ecma10BinaryProperties,
-    11: ecma11BinaryProperties,
-    12: ecma12BinaryProperties,
-    13: ecma13BinaryProperties,
-    14: ecma14BinaryProperties
-  };
-
-  // #table-binary-unicode-properties-of-strings
-  var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
-
-  var unicodeBinaryPropertiesOfStrings = {
-    9: "",
-    10: "",
-    11: "",
-    12: "",
-    13: "",
-    14: ecma14BinaryPropertiesOfStrings
-  };
-
-  // #table-unicode-general-category-values
-  var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
-
-  // #table-unicode-script-values
-  var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
-  var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";
-  var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
-  var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
-  var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
-  var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
-
-  var unicodeScriptValues = {
-    9: ecma9ScriptValues,
-    10: ecma10ScriptValues,
-    11: ecma11ScriptValues,
-    12: ecma12ScriptValues,
-    13: ecma13ScriptValues,
-    14: ecma14ScriptValues
-  };
-
-  var data = {};
-  function buildUnicodeData(ecmaVersion) {
-    var d = data[ecmaVersion] = {
-      binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
-      binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
-      nonBinary: {
-        General_Category: wordsRegexp(unicodeGeneralCategoryValues),
-        Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
-      }
-    };
-    d.nonBinary.Script_Extensions = d.nonBinary.Script;
-
-    d.nonBinary.gc = d.nonBinary.General_Category;
-    d.nonBinary.sc = d.nonBinary.Script;
-    d.nonBinary.scx = d.nonBinary.Script_Extensions;
-  }
-
-  for (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
-    var ecmaVersion = list[i];
-
-    buildUnicodeData(ecmaVersion);
-  }
-
-  var pp$1 = Parser.prototype;
-
-  // Track disjunction structure to determine whether a duplicate
-  // capture group name is allowed because it is in a separate branch.
-  var BranchID = function BranchID(parent, base) {
-    // Parent disjunction branch
-    this.parent = parent;
-    // Identifies this set of sibling branches
-    this.base = base || this;
-  };
-
-  BranchID.prototype.separatedFrom = function separatedFrom (alt) {
-    // A branch is separate from another branch if they or any of
-    // their parents are siblings in a given disjunction
-    for (var self = this; self; self = self.parent) {
-      for (var other = alt; other; other = other.parent) {
-        if (self.base === other.base && self !== other) { return true }
-      }
-    }
-    return false
-  };
-
-  BranchID.prototype.sibling = function sibling () {
-    return new BranchID(this.parent, this.base)
-  };
-
-  var RegExpValidationState = function RegExpValidationState(parser) {
-    this.parser = parser;
-    this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
-    this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
-    this.source = "";
-    this.flags = "";
-    this.start = 0;
-    this.switchU = false;
-    this.switchV = false;
-    this.switchN = false;
-    this.pos = 0;
-    this.lastIntValue = 0;
-    this.lastStringValue = "";
-    this.lastAssertionIsQuantifiable = false;
-    this.numCapturingParens = 0;
-    this.maxBackReference = 0;
-    this.groupNames = Object.create(null);
-    this.backReferenceNames = [];
-    this.branchID = null;
-  };
-
-  RegExpValidationState.prototype.reset = function reset (start, pattern, flags) {
-    var unicodeSets = flags.indexOf("v") !== -1;
-    var unicode = flags.indexOf("u") !== -1;
-    this.start = start | 0;
-    this.source = pattern + "";
-    this.flags = flags;
-    if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
-      this.switchU = true;
-      this.switchV = true;
-      this.switchN = true;
-    } else {
-      this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
-      this.switchV = false;
-      this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
-    }
-  };
-
-  RegExpValidationState.prototype.raise = function raise (message) {
-    this.parser.raiseRecoverable(this.start, ("Invalid regular expression: /" + (this.source) + "/: " + message));
-  };
-
-  // If u flag is given, this returns the code point at the index (it combines a surrogate pair).
-  // Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).
-  RegExpValidationState.prototype.at = function at (i, forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    var s = this.source;
-    var l = s.length;
-    if (i >= l) {
-      return -1
-    }
-    var c = s.charCodeAt(i);
-    if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {
-      return c
-    }
-    var next = s.charCodeAt(i + 1);
-    return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c
-  };
-
-  RegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    var s = this.source;
-    var l = s.length;
-    if (i >= l) {
-      return l
-    }
-    var c = s.charCodeAt(i), next;
-    if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||
-        (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {
-      return i + 1
-    }
-    return i + 2
-  };
-
-  RegExpValidationState.prototype.current = function current (forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    return this.at(this.pos, forceU)
-  };
-
-  RegExpValidationState.prototype.lookahead = function lookahead (forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    return this.at(this.nextIndex(this.pos, forceU), forceU)
-  };
-
-  RegExpValidationState.prototype.advance = function advance (forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    this.pos = this.nextIndex(this.pos, forceU);
-  };
-
-  RegExpValidationState.prototype.eat = function eat (ch, forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    if (this.current(forceU) === ch) {
-      this.advance(forceU);
-      return true
-    }
-    return false
-  };
-
-  RegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {
-      if ( forceU === void 0 ) forceU = false;
-
-    var pos = this.pos;
-    for (var i = 0, list = chs; i < list.length; i += 1) {
-      var ch = list[i];
-
-        var current = this.at(pos, forceU);
-      if (current === -1 || current !== ch) {
-        return false
-      }
-      pos = this.nextIndex(pos, forceU);
-    }
-    this.pos = pos;
-    return true
-  };
-
-  /**
-   * Validate the flags part of a given RegExpLiteral.
-   *
-   * @param {RegExpValidationState} state The state to validate RegExp.
-   * @returns {void}
-   */
-  pp$1.validateRegExpFlags = function(state) {
-    var validFlags = state.validFlags;
-    var flags = state.flags;
-
-    var u = false;
-    var v = false;
-
-    for (var i = 0; i < flags.length; i++) {
-      var flag = flags.charAt(i);
-      if (validFlags.indexOf(flag) === -1) {
-        this.raise(state.start, "Invalid regular expression flag");
-      }
-      if (flags.indexOf(flag, i + 1) > -1) {
-        this.raise(state.start, "Duplicate regular expression flag");
-      }
-      if (flag === "u") { u = true; }
-      if (flag === "v") { v = true; }
-    }
-    if (this.options.ecmaVersion >= 15 && u && v) {
-      this.raise(state.start, "Invalid regular expression flag");
-    }
-  };
-
-  function hasProp(obj) {
-    for (var _ in obj) { return true }
-    return false
-  }
-
-  /**
-   * Validate the pattern part of a given RegExpLiteral.
-   *
-   * @param {RegExpValidationState} state The state to validate RegExp.
-   * @returns {void}
-   */
-  pp$1.validateRegExpPattern = function(state) {
-    this.regexp_pattern(state);
-
-    // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of
-    // parsing contains a |GroupName|, reparse with the goal symbol
-    // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*
-    // exception if _P_ did not conform to the grammar, if any elements of _P_
-    // were not matched by the parse, or if any Early Error conditions exist.
-    if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
-      state.switchN = true;
-      this.regexp_pattern(state);
-    }
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern
-  pp$1.regexp_pattern = function(state) {
-    state.pos = 0;
-    state.lastIntValue = 0;
-    state.lastStringValue = "";
-    state.lastAssertionIsQuantifiable = false;
-    state.numCapturingParens = 0;
-    state.maxBackReference = 0;
-    state.groupNames = Object.create(null);
-    state.backReferenceNames.length = 0;
-    state.branchID = null;
-
-    this.regexp_disjunction(state);
-
-    if (state.pos !== state.source.length) {
-      // Make the same messages as V8.
-      if (state.eat(0x29 /* ) */)) {
-        state.raise("Unmatched ')'");
-      }
-      if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {
-        state.raise("Lone quantifier brackets");
-      }
-    }
-    if (state.maxBackReference > state.numCapturingParens) {
-      state.raise("Invalid escape");
-    }
-    for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
-      var name = list[i];
-
-      if (!state.groupNames[name]) {
-        state.raise("Invalid named capture referenced");
-      }
-    }
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction
-  pp$1.regexp_disjunction = function(state) {
-    var trackDisjunction = this.options.ecmaVersion >= 16;
-    if (trackDisjunction) { state.branchID = new BranchID(state.branchID, null); }
-    this.regexp_alternative(state);
-    while (state.eat(0x7C /* | */)) {
-      if (trackDisjunction) { state.branchID = state.branchID.sibling(); }
-      this.regexp_alternative(state);
-    }
-    if (trackDisjunction) { state.branchID = state.branchID.parent; }
-
-    // Make the same message as V8.
-    if (this.regexp_eatQuantifier(state, true)) {
-      state.raise("Nothing to repeat");
-    }
-    if (state.eat(0x7B /* { */)) {
-      state.raise("Lone quantifier brackets");
-    }
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative
-  pp$1.regexp_alternative = function(state) {
-    while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term
-  pp$1.regexp_eatTerm = function(state) {
-    if (this.regexp_eatAssertion(state)) {
-      // Handle `QuantifiableAssertion Quantifier` alternative.
-      // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion
-      // is a QuantifiableAssertion.
-      if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {
-        // Make the same message as V8.
-        if (state.switchU) {
-          state.raise("Invalid quantifier");
-        }
-      }
-      return true
-    }
-
-    if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {
-      this.regexp_eatQuantifier(state);
-      return true
-    }
-
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion
-  pp$1.regexp_eatAssertion = function(state) {
-    var start = state.pos;
-    state.lastAssertionIsQuantifiable = false;
-
-    // ^, $
-    if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {
-      return true
-    }
-
-    // \b \B
-    if (state.eat(0x5C /* \ */)) {
-      if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {
-        return true
-      }
-      state.pos = start;
-    }
-
-    // Lookahead / Lookbehind
-    if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {
-      var lookbehind = false;
-      if (this.options.ecmaVersion >= 9) {
-        lookbehind = state.eat(0x3C /* < */);
-      }
-      if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {
-        this.regexp_disjunction(state);
-        if (!state.eat(0x29 /* ) */)) {
-          state.raise("Unterminated group");
-        }
-        state.lastAssertionIsQuantifiable = !lookbehind;
-        return true
-      }
-    }
-
-    state.pos = start;
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier
-  pp$1.regexp_eatQuantifier = function(state, noError) {
-    if ( noError === void 0 ) noError = false;
-
-    if (this.regexp_eatQuantifierPrefix(state, noError)) {
-      state.eat(0x3F /* ? */);
-      return true
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix
-  pp$1.regexp_eatQuantifierPrefix = function(state, noError) {
-    return (
-      state.eat(0x2A /* * */) ||
-      state.eat(0x2B /* + */) ||
-      state.eat(0x3F /* ? */) ||
-      this.regexp_eatBracedQuantifier(state, noError)
-    )
-  };
-  pp$1.regexp_eatBracedQuantifier = function(state, noError) {
-    var start = state.pos;
-    if (state.eat(0x7B /* { */)) {
-      var min = 0, max = -1;
-      if (this.regexp_eatDecimalDigits(state)) {
-        min = state.lastIntValue;
-        if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) {
-          max = state.lastIntValue;
-        }
-        if (state.eat(0x7D /* } */)) {
-          // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term
-          if (max !== -1 && max < min && !noError) {
-            state.raise("numbers out of order in {} quantifier");
-          }
-          return true
-        }
-      }
-      if (state.switchU && !noError) {
-        state.raise("Incomplete quantifier");
-      }
-      state.pos = start;
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Atom
-  pp$1.regexp_eatAtom = function(state) {
-    return (
-      this.regexp_eatPatternCharacters(state) ||
-      state.eat(0x2E /* . */) ||
-      this.regexp_eatReverseSolidusAtomEscape(state) ||
-      this.regexp_eatCharacterClass(state) ||
-      this.regexp_eatUncapturingGroup(state) ||
-      this.regexp_eatCapturingGroup(state)
-    )
-  };
-  pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {
-    var start = state.pos;
-    if (state.eat(0x5C /* \ */)) {
-      if (this.regexp_eatAtomEscape(state)) {
-        return true
-      }
-      state.pos = start;
-    }
-    return false
-  };
-  pp$1.regexp_eatUncapturingGroup = function(state) {
-    var start = state.pos;
-    if (state.eat(0x28 /* ( */)) {
-      if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {
-        this.regexp_disjunction(state);
-        if (state.eat(0x29 /* ) */)) {
-          return true
-        }
-        state.raise("Unterminated group");
-      }
-      state.pos = start;
-    }
-    return false
-  };
-  pp$1.regexp_eatCapturingGroup = function(state) {
-    if (state.eat(0x28 /* ( */)) {
-      if (this.options.ecmaVersion >= 9) {
-        this.regexp_groupSpecifier(state);
-      } else if (state.current() === 0x3F /* ? */) {
-        state.raise("Invalid group");
-      }
-      this.regexp_disjunction(state);
-      if (state.eat(0x29 /* ) */)) {
-        state.numCapturingParens += 1;
-        return true
-      }
-      state.raise("Unterminated group");
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom
-  pp$1.regexp_eatExtendedAtom = function(state) {
-    return (
-      state.eat(0x2E /* . */) ||
-      this.regexp_eatReverseSolidusAtomEscape(state) ||
-      this.regexp_eatCharacterClass(state) ||
-      this.regexp_eatUncapturingGroup(state) ||
-      this.regexp_eatCapturingGroup(state) ||
-      this.regexp_eatInvalidBracedQuantifier(state) ||
-      this.regexp_eatExtendedPatternCharacter(state)
-    )
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier
-  pp$1.regexp_eatInvalidBracedQuantifier = function(state) {
-    if (this.regexp_eatBracedQuantifier(state, true)) {
-      state.raise("Nothing to repeat");
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter
-  pp$1.regexp_eatSyntaxCharacter = function(state) {
-    var ch = state.current();
-    if (isSyntaxCharacter(ch)) {
-      state.lastIntValue = ch;
-      state.advance();
-      return true
-    }
-    return false
-  };
-  function isSyntaxCharacter(ch) {
-    return (
-      ch === 0x24 /* $ */ ||
-      ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||
-      ch === 0x2E /* . */ ||
-      ch === 0x3F /* ? */ ||
-      ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||
-      ch >= 0x7B /* { */ && ch <= 0x7D /* } */
-    )
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter
-  // But eat eager.
-  pp$1.regexp_eatPatternCharacters = function(state) {
-    var start = state.pos;
-    var ch = 0;
-    while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {
-      state.advance();
-    }
-    return state.pos !== start
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter
-  pp$1.regexp_eatExtendedPatternCharacter = function(state) {
-    var ch = state.current();
-    if (
-      ch !== -1 &&
-      ch !== 0x24 /* $ */ &&
-      !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&
-      ch !== 0x2E /* . */ &&
-      ch !== 0x3F /* ? */ &&
-      ch !== 0x5B /* [ */ &&
-      ch !== 0x5E /* ^ */ &&
-      ch !== 0x7C /* | */
-    ) {
-      state.advance();
-      return true
-    }
-    return false
-  };
-
-  // GroupSpecifier ::
-  //   [empty]
-  //   `?` GroupName
-  pp$1.regexp_groupSpecifier = function(state) {
-    if (state.eat(0x3F /* ? */)) {
-      if (!this.regexp_eatGroupName(state)) { state.raise("Invalid group"); }
-      var trackDisjunction = this.options.ecmaVersion >= 16;
-      var known = state.groupNames[state.lastStringValue];
-      if (known) {
-        if (trackDisjunction) {
-          for (var i = 0, list = known; i < list.length; i += 1) {
-            var altID = list[i];
-
-            if (!altID.separatedFrom(state.branchID))
-              { state.raise("Duplicate capture group name"); }
-          }
-        } else {
-          state.raise("Duplicate capture group name");
-        }
-      }
-      if (trackDisjunction) {
-        (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
-      } else {
-        state.groupNames[state.lastStringValue] = true;
-      }
-    }
-  };
-
-  // GroupName ::
-  //   `<` RegExpIdentifierName `>`
-  // Note: this updates `state.lastStringValue` property with the eaten name.
-  pp$1.regexp_eatGroupName = function(state) {
-    state.lastStringValue = "";
-    if (state.eat(0x3C /* < */)) {
-      if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {
-        return true
-      }
-      state.raise("Invalid capture group name");
-    }
-    return false
-  };
-
-  // RegExpIdentifierName ::
-  //   RegExpIdentifierStart
-  //   RegExpIdentifierName RegExpIdentifierPart
-  // Note: this updates `state.lastStringValue` property with the eaten name.
-  pp$1.regexp_eatRegExpIdentifierName = function(state) {
-    state.lastStringValue = "";
-    if (this.regexp_eatRegExpIdentifierStart(state)) {
-      state.lastStringValue += codePointToString(state.lastIntValue);
-      while (this.regexp_eatRegExpIdentifierPart(state)) {
-        state.lastStringValue += codePointToString(state.lastIntValue);
-      }
-      return true
-    }
-    return false
-  };
-
-  // RegExpIdentifierStart ::
-  //   UnicodeIDStart
-  //   `$`
-  //   `_`
-  //   `\` RegExpUnicodeEscapeSequence[+U]
-  pp$1.regexp_eatRegExpIdentifierStart = function(state) {
-    var start = state.pos;
-    var forceU = this.options.ecmaVersion >= 11;
-    var ch = state.current(forceU);
-    state.advance(forceU);
-
-    if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {
-      ch = state.lastIntValue;
-    }
-    if (isRegExpIdentifierStart(ch)) {
-      state.lastIntValue = ch;
-      return true
-    }
-
-    state.pos = start;
-    return false
-  };
-  function isRegExpIdentifierStart(ch) {
-    return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */
-  }
-
-  // RegExpIdentifierPart ::
-  //   UnicodeIDContinue
-  //   `$`
-  //   `_`
-  //   `\` RegExpUnicodeEscapeSequence[+U]
-  //   
-  //   
-  pp$1.regexp_eatRegExpIdentifierPart = function(state) {
-    var start = state.pos;
-    var forceU = this.options.ecmaVersion >= 11;
-    var ch = state.current(forceU);
-    state.advance(forceU);
-
-    if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {
-      ch = state.lastIntValue;
-    }
-    if (isRegExpIdentifierPart(ch)) {
-      state.lastIntValue = ch;
-      return true
-    }
-
-    state.pos = start;
-    return false
-  };
-  function isRegExpIdentifierPart(ch) {
-    return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /*  */ || ch === 0x200D /*  */
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape
-  pp$1.regexp_eatAtomEscape = function(state) {
-    if (
-      this.regexp_eatBackReference(state) ||
-      this.regexp_eatCharacterClassEscape(state) ||
-      this.regexp_eatCharacterEscape(state) ||
-      (state.switchN && this.regexp_eatKGroupName(state))
-    ) {
-      return true
-    }
-    if (state.switchU) {
-      // Make the same message as V8.
-      if (state.current() === 0x63 /* c */) {
-        state.raise("Invalid unicode escape");
-      }
-      state.raise("Invalid escape");
-    }
-    return false
-  };
-  pp$1.regexp_eatBackReference = function(state) {
-    var start = state.pos;
-    if (this.regexp_eatDecimalEscape(state)) {
-      var n = state.lastIntValue;
-      if (state.switchU) {
-        // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape
-        if (n > state.maxBackReference) {
-          state.maxBackReference = n;
-        }
-        return true
-      }
-      if (n <= state.numCapturingParens) {
-        return true
-      }
-      state.pos = start;
-    }
-    return false
-  };
-  pp$1.regexp_eatKGroupName = function(state) {
-    if (state.eat(0x6B /* k */)) {
-      if (this.regexp_eatGroupName(state)) {
-        state.backReferenceNames.push(state.lastStringValue);
-        return true
-      }
-      state.raise("Invalid named reference");
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape
-  pp$1.regexp_eatCharacterEscape = function(state) {
-    return (
-      this.regexp_eatControlEscape(state) ||
-      this.regexp_eatCControlLetter(state) ||
-      this.regexp_eatZero(state) ||
-      this.regexp_eatHexEscapeSequence(state) ||
-      this.regexp_eatRegExpUnicodeEscapeSequence(state, false) ||
-      (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||
-      this.regexp_eatIdentityEscape(state)
-    )
-  };
-  pp$1.regexp_eatCControlLetter = function(state) {
-    var start = state.pos;
-    if (state.eat(0x63 /* c */)) {
-      if (this.regexp_eatControlLetter(state)) {
-        return true
-      }
-      state.pos = start;
-    }
-    return false
-  };
-  pp$1.regexp_eatZero = function(state) {
-    if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {
-      state.lastIntValue = 0;
-      state.advance();
-      return true
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape
-  pp$1.regexp_eatControlEscape = function(state) {
-    var ch = state.current();
-    if (ch === 0x74 /* t */) {
-      state.lastIntValue = 0x09; /* \t */
-      state.advance();
-      return true
-    }
-    if (ch === 0x6E /* n */) {
-      state.lastIntValue = 0x0A; /* \n */
-      state.advance();
-      return true
-    }
-    if (ch === 0x76 /* v */) {
-      state.lastIntValue = 0x0B; /* \v */
-      state.advance();
-      return true
-    }
-    if (ch === 0x66 /* f */) {
-      state.lastIntValue = 0x0C; /* \f */
-      state.advance();
-      return true
-    }
-    if (ch === 0x72 /* r */) {
-      state.lastIntValue = 0x0D; /* \r */
-      state.advance();
-      return true
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter
-  pp$1.regexp_eatControlLetter = function(state) {
-    var ch = state.current();
-    if (isControlLetter(ch)) {
-      state.lastIntValue = ch % 0x20;
-      state.advance();
-      return true
-    }
-    return false
-  };
-  function isControlLetter(ch) {
-    return (
-      (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||
-      (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)
-    )
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence
-  pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
-    if ( forceU === void 0 ) forceU = false;
-
-    var start = state.pos;
-    var switchU = forceU || state.switchU;
-
-    if (state.eat(0x75 /* u */)) {
-      if (this.regexp_eatFixedHexDigits(state, 4)) {
-        var lead = state.lastIntValue;
-        if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {
-          var leadSurrogateEnd = state.pos;
-          if (state.eat(0x5C /* \ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) {
-            var trail = state.lastIntValue;
-            if (trail >= 0xDC00 && trail <= 0xDFFF) {
-              state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;
-              return true
-            }
-          }
-          state.pos = leadSurrogateEnd;
-          state.lastIntValue = lead;
-        }
-        return true
-      }
-      if (
-        switchU &&
-        state.eat(0x7B /* { */) &&
-        this.regexp_eatHexDigits(state) &&
-        state.eat(0x7D /* } */) &&
-        isValidUnicode(state.lastIntValue)
-      ) {
-        return true
-      }
-      if (switchU) {
-        state.raise("Invalid unicode escape");
-      }
-      state.pos = start;
-    }
-
-    return false
-  };
-  function isValidUnicode(ch) {
-    return ch >= 0 && ch <= 0x10FFFF
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape
-  pp$1.regexp_eatIdentityEscape = function(state) {
-    if (state.switchU) {
-      if (this.regexp_eatSyntaxCharacter(state)) {
-        return true
-      }
-      if (state.eat(0x2F /* / */)) {
-        state.lastIntValue = 0x2F; /* / */
-        return true
-      }
-      return false
-    }
-
-    var ch = state.current();
-    if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {
-      state.lastIntValue = ch;
-      state.advance();
-      return true
-    }
-
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape
-  pp$1.regexp_eatDecimalEscape = function(state) {
-    state.lastIntValue = 0;
-    var ch = state.current();
-    if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {
-      do {
-        state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);
-        state.advance();
-      } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)
-      return true
-    }
-    return false
-  };
-
-  // Return values used by character set parsing methods, needed to
-  // forbid negation of sets that can match strings.
-  var CharSetNone = 0; // Nothing parsed
-  var CharSetOk = 1; // Construct parsed, cannot contain strings
-  var CharSetString = 2; // Construct parsed, can contain strings
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape
-  pp$1.regexp_eatCharacterClassEscape = function(state) {
-    var ch = state.current();
-
-    if (isCharacterClassEscape(ch)) {
-      state.lastIntValue = -1;
-      state.advance();
-      return CharSetOk
-    }
-
-    var negate = false;
-    if (
-      state.switchU &&
-      this.options.ecmaVersion >= 9 &&
-      ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)
-    ) {
-      state.lastIntValue = -1;
-      state.advance();
-      var result;
-      if (
-        state.eat(0x7B /* { */) &&
-        (result = this.regexp_eatUnicodePropertyValueExpression(state)) &&
-        state.eat(0x7D /* } */)
-      ) {
-        if (negate && result === CharSetString) { state.raise("Invalid property name"); }
-        return result
-      }
-      state.raise("Invalid property name");
-    }
-
-    return CharSetNone
-  };
-
-  function isCharacterClassEscape(ch) {
-    return (
-      ch === 0x64 /* d */ ||
-      ch === 0x44 /* D */ ||
-      ch === 0x73 /* s */ ||
-      ch === 0x53 /* S */ ||
-      ch === 0x77 /* w */ ||
-      ch === 0x57 /* W */
-    )
-  }
-
-  // UnicodePropertyValueExpression ::
-  //   UnicodePropertyName `=` UnicodePropertyValue
-  //   LoneUnicodePropertyNameOrValue
-  pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
-    var start = state.pos;
-
-    // UnicodePropertyName `=` UnicodePropertyValue
-    if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {
-      var name = state.lastStringValue;
-      if (this.regexp_eatUnicodePropertyValue(state)) {
-        var value = state.lastStringValue;
-        this.regexp_validateUnicodePropertyNameAndValue(state, name, value);
-        return CharSetOk
-      }
-    }
-    state.pos = start;
-
-    // LoneUnicodePropertyNameOrValue
-    if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
-      var nameOrValue = state.lastStringValue;
-      return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)
-    }
-    return CharSetNone
-  };
-
-  pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {
-    if (!hasOwn(state.unicodeProperties.nonBinary, name))
-      { state.raise("Invalid property name"); }
-    if (!state.unicodeProperties.nonBinary[name].test(value))
-      { state.raise("Invalid property value"); }
-  };
-
-  pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
-    if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }
-    if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }
-    state.raise("Invalid property name");
-  };
-
-  // UnicodePropertyName ::
-  //   UnicodePropertyNameCharacters
-  pp$1.regexp_eatUnicodePropertyName = function(state) {
-    var ch = 0;
-    state.lastStringValue = "";
-    while (isUnicodePropertyNameCharacter(ch = state.current())) {
-      state.lastStringValue += codePointToString(ch);
-      state.advance();
-    }
-    return state.lastStringValue !== ""
-  };
-
-  function isUnicodePropertyNameCharacter(ch) {
-    return isControlLetter(ch) || ch === 0x5F /* _ */
-  }
-
-  // UnicodePropertyValue ::
-  //   UnicodePropertyValueCharacters
-  pp$1.regexp_eatUnicodePropertyValue = function(state) {
-    var ch = 0;
-    state.lastStringValue = "";
-    while (isUnicodePropertyValueCharacter(ch = state.current())) {
-      state.lastStringValue += codePointToString(ch);
-      state.advance();
-    }
-    return state.lastStringValue !== ""
-  };
-  function isUnicodePropertyValueCharacter(ch) {
-    return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)
-  }
-
-  // LoneUnicodePropertyNameOrValue ::
-  //   UnicodePropertyValueCharacters
-  pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
-    return this.regexp_eatUnicodePropertyValue(state)
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass
-  pp$1.regexp_eatCharacterClass = function(state) {
-    if (state.eat(0x5B /* [ */)) {
-      var negate = state.eat(0x5E /* ^ */);
-      var result = this.regexp_classContents(state);
-      if (!state.eat(0x5D /* ] */))
-        { state.raise("Unterminated character class"); }
-      if (negate && result === CharSetString)
-        { state.raise("Negated character class may contain strings"); }
-      return true
-    }
-    return false
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassContents
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges
-  pp$1.regexp_classContents = function(state) {
-    if (state.current() === 0x5D /* ] */) { return CharSetOk }
-    if (state.switchV) { return this.regexp_classSetExpression(state) }
-    this.regexp_nonEmptyClassRanges(state);
-    return CharSetOk
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash
-  pp$1.regexp_nonEmptyClassRanges = function(state) {
-    while (this.regexp_eatClassAtom(state)) {
-      var left = state.lastIntValue;
-      if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {
-        var right = state.lastIntValue;
-        if (state.switchU && (left === -1 || right === -1)) {
-          state.raise("Invalid character class");
-        }
-        if (left !== -1 && right !== -1 && left > right) {
-          state.raise("Range out of order in character class");
-        }
-      }
-    }
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash
-  pp$1.regexp_eatClassAtom = function(state) {
-    var start = state.pos;
-
-    if (state.eat(0x5C /* \ */)) {
-      if (this.regexp_eatClassEscape(state)) {
-        return true
-      }
-      if (state.switchU) {
-        // Make the same message as V8.
-        var ch$1 = state.current();
-        if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) {
-          state.raise("Invalid class escape");
-        }
-        state.raise("Invalid escape");
-      }
-      state.pos = start;
-    }
-
-    var ch = state.current();
-    if (ch !== 0x5D /* ] */) {
-      state.lastIntValue = ch;
-      state.advance();
-      return true
-    }
-
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape
-  pp$1.regexp_eatClassEscape = function(state) {
-    var start = state.pos;
-
-    if (state.eat(0x62 /* b */)) {
-      state.lastIntValue = 0x08; /*  */
-      return true
-    }
-
-    if (state.switchU && state.eat(0x2D /* - */)) {
-      state.lastIntValue = 0x2D; /* - */
-      return true
-    }
-
-    if (!state.switchU && state.eat(0x63 /* c */)) {
-      if (this.regexp_eatClassControlLetter(state)) {
-        return true
-      }
-      state.pos = start;
-    }
-
-    return (
-      this.regexp_eatCharacterClassEscape(state) ||
-      this.regexp_eatCharacterEscape(state)
-    )
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetExpression
-  // https://tc39.es/ecma262/#prod-ClassUnion
-  // https://tc39.es/ecma262/#prod-ClassIntersection
-  // https://tc39.es/ecma262/#prod-ClassSubtraction
-  pp$1.regexp_classSetExpression = function(state) {
-    var result = CharSetOk, subResult;
-    if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {
-      if (subResult === CharSetString) { result = CharSetString; }
-      // https://tc39.es/ecma262/#prod-ClassIntersection
-      var start = state.pos;
-      while (state.eatChars([0x26, 0x26] /* && */)) {
-        if (
-          state.current() !== 0x26 /* & */ &&
-          (subResult = this.regexp_eatClassSetOperand(state))
-        ) {
-          if (subResult !== CharSetString) { result = CharSetOk; }
-          continue
-        }
-        state.raise("Invalid character in character class");
-      }
-      if (start !== state.pos) { return result }
-      // https://tc39.es/ecma262/#prod-ClassSubtraction
-      while (state.eatChars([0x2D, 0x2D] /* -- */)) {
-        if (this.regexp_eatClassSetOperand(state)) { continue }
-        state.raise("Invalid character in character class");
-      }
-      if (start !== state.pos) { return result }
-    } else {
-      state.raise("Invalid character in character class");
-    }
-    // https://tc39.es/ecma262/#prod-ClassUnion
-    for (;;) {
-      if (this.regexp_eatClassSetRange(state)) { continue }
-      subResult = this.regexp_eatClassSetOperand(state);
-      if (!subResult) { return result }
-      if (subResult === CharSetString) { result = CharSetString; }
-    }
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetRange
-  pp$1.regexp_eatClassSetRange = function(state) {
-    var start = state.pos;
-    if (this.regexp_eatClassSetCharacter(state)) {
-      var left = state.lastIntValue;
-      if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {
-        var right = state.lastIntValue;
-        if (left !== -1 && right !== -1 && left > right) {
-          state.raise("Range out of order in character class");
-        }
-        return true
-      }
-      state.pos = start;
-    }
-    return false
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetOperand
-  pp$1.regexp_eatClassSetOperand = function(state) {
-    if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }
-    return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)
-  };
-
-  // https://tc39.es/ecma262/#prod-NestedClass
-  pp$1.regexp_eatNestedClass = function(state) {
-    var start = state.pos;
-    if (state.eat(0x5B /* [ */)) {
-      var negate = state.eat(0x5E /* ^ */);
-      var result = this.regexp_classContents(state);
-      if (state.eat(0x5D /* ] */)) {
-        if (negate && result === CharSetString) {
-          state.raise("Negated character class may contain strings");
-        }
-        return result
-      }
-      state.pos = start;
-    }
-    if (state.eat(0x5C /* \ */)) {
-      var result$1 = this.regexp_eatCharacterClassEscape(state);
-      if (result$1) {
-        return result$1
-      }
-      state.pos = start;
-    }
-    return null
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassStringDisjunction
-  pp$1.regexp_eatClassStringDisjunction = function(state) {
-    var start = state.pos;
-    if (state.eatChars([0x5C, 0x71] /* \q */)) {
-      if (state.eat(0x7B /* { */)) {
-        var result = this.regexp_classStringDisjunctionContents(state);
-        if (state.eat(0x7D /* } */)) {
-          return result
-        }
-      } else {
-        // Make the same message as V8.
-        state.raise("Invalid escape");
-      }
-      state.pos = start;
-    }
-    return null
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents
-  pp$1.regexp_classStringDisjunctionContents = function(state) {
-    var result = this.regexp_classString(state);
-    while (state.eat(0x7C /* | */)) {
-      if (this.regexp_classString(state) === CharSetString) { result = CharSetString; }
-    }
-    return result
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassString
-  // https://tc39.es/ecma262/#prod-NonEmptyClassString
-  pp$1.regexp_classString = function(state) {
-    var count = 0;
-    while (this.regexp_eatClassSetCharacter(state)) { count++; }
-    return count === 1 ? CharSetOk : CharSetString
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetCharacter
-  pp$1.regexp_eatClassSetCharacter = function(state) {
-    var start = state.pos;
-    if (state.eat(0x5C /* \ */)) {
-      if (
-        this.regexp_eatCharacterEscape(state) ||
-        this.regexp_eatClassSetReservedPunctuator(state)
-      ) {
-        return true
-      }
-      if (state.eat(0x62 /* b */)) {
-        state.lastIntValue = 0x08; /*  */
-        return true
-      }
-      state.pos = start;
-      return false
-    }
-    var ch = state.current();
-    if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false }
-    if (isClassSetSyntaxCharacter(ch)) { return false }
-    state.advance();
-    state.lastIntValue = ch;
-    return true
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator
-  function isClassSetReservedDoublePunctuatorCharacter(ch) {
-    return (
-      ch === 0x21 /* ! */ ||
-      ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||
-      ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||
-      ch === 0x2E /* . */ ||
-      ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||
-      ch === 0x5E /* ^ */ ||
-      ch === 0x60 /* ` */ ||
-      ch === 0x7E /* ~ */
-    )
-  }
-
-  // https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter
-  function isClassSetSyntaxCharacter(ch) {
-    return (
-      ch === 0x28 /* ( */ ||
-      ch === 0x29 /* ) */ ||
-      ch === 0x2D /* - */ ||
-      ch === 0x2F /* / */ ||
-      ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||
-      ch >= 0x7B /* { */ && ch <= 0x7D /* } */
-    )
-  }
-
-  // https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
-  pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
-    var ch = state.current();
-    if (isClassSetReservedPunctuator(ch)) {
-      state.lastIntValue = ch;
-      state.advance();
-      return true
-    }
-    return false
-  };
-
-  // https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
-  function isClassSetReservedPunctuator(ch) {
-    return (
-      ch === 0x21 /* ! */ ||
-      ch === 0x23 /* # */ ||
-      ch === 0x25 /* % */ ||
-      ch === 0x26 /* & */ ||
-      ch === 0x2C /* , */ ||
-      ch === 0x2D /* - */ ||
-      ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||
-      ch === 0x40 /* @ */ ||
-      ch === 0x60 /* ` */ ||
-      ch === 0x7E /* ~ */
-    )
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter
-  pp$1.regexp_eatClassControlLetter = function(state) {
-    var ch = state.current();
-    if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {
-      state.lastIntValue = ch % 0x20;
-      state.advance();
-      return true
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence
-  pp$1.regexp_eatHexEscapeSequence = function(state) {
-    var start = state.pos;
-    if (state.eat(0x78 /* x */)) {
-      if (this.regexp_eatFixedHexDigits(state, 2)) {
-        return true
-      }
-      if (state.switchU) {
-        state.raise("Invalid escape");
-      }
-      state.pos = start;
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits
-  pp$1.regexp_eatDecimalDigits = function(state) {
-    var start = state.pos;
-    var ch = 0;
-    state.lastIntValue = 0;
-    while (isDecimalDigit(ch = state.current())) {
-      state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);
-      state.advance();
-    }
-    return state.pos !== start
-  };
-  function isDecimalDigit(ch) {
-    return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits
-  pp$1.regexp_eatHexDigits = function(state) {
-    var start = state.pos;
-    var ch = 0;
-    state.lastIntValue = 0;
-    while (isHexDigit(ch = state.current())) {
-      state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);
-      state.advance();
-    }
-    return state.pos !== start
-  };
-  function isHexDigit(ch) {
-    return (
-      (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||
-      (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||
-      (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)
-    )
-  }
-  function hexToInt(ch) {
-    if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {
-      return 10 + (ch - 0x41 /* A */)
-    }
-    if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {
-      return 10 + (ch - 0x61 /* a */)
-    }
-    return ch - 0x30 /* 0 */
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence
-  // Allows only 0-377(octal) i.e. 0-255(decimal).
-  pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
-    if (this.regexp_eatOctalDigit(state)) {
-      var n1 = state.lastIntValue;
-      if (this.regexp_eatOctalDigit(state)) {
-        var n2 = state.lastIntValue;
-        if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {
-          state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;
-        } else {
-          state.lastIntValue = n1 * 8 + n2;
-        }
-      } else {
-        state.lastIntValue = n1;
-      }
-      return true
-    }
-    return false
-  };
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit
-  pp$1.regexp_eatOctalDigit = function(state) {
-    var ch = state.current();
-    if (isOctalDigit(ch)) {
-      state.lastIntValue = ch - 0x30; /* 0 */
-      state.advance();
-      return true
-    }
-    state.lastIntValue = 0;
-    return false
-  };
-  function isOctalDigit(ch) {
-    return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */
-  }
-
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits
-  // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit
-  // And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence
-  pp$1.regexp_eatFixedHexDigits = function(state, length) {
-    var start = state.pos;
-    state.lastIntValue = 0;
-    for (var i = 0; i < length; ++i) {
-      var ch = state.current();
-      if (!isHexDigit(ch)) {
-        state.pos = start;
-        return false
-      }
-      state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);
-      state.advance();
-    }
-    return true
-  };
-
-  // Object type used to represent tokens. Note that normally, tokens
-  // simply exist as properties on the parser object. This is only
-  // used for the onToken callback and the external tokenizer.
-
-  var Token = function Token(p) {
-    this.type = p.type;
-    this.value = p.value;
-    this.start = p.start;
-    this.end = p.end;
-    if (p.options.locations)
-      { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); }
-    if (p.options.ranges)
-      { this.range = [p.start, p.end]; }
-  };
-
-  // ## Tokenizer
-
-  var pp = Parser.prototype;
-
-  // Move to the next token
-
-  pp.next = function(ignoreEscapeSequenceInKeyword) {
-    if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)
-      { this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword); }
-    if (this.options.onToken)
-      { this.options.onToken(new Token(this)); }
-
-    this.lastTokEnd = this.end;
-    this.lastTokStart = this.start;
-    this.lastTokEndLoc = this.endLoc;
-    this.lastTokStartLoc = this.startLoc;
-    this.nextToken();
-  };
-
-  pp.getToken = function() {
-    this.next();
-    return new Token(this)
-  };
-
-  // If we're in an ES6 environment, make parsers iterable
-  if (typeof Symbol !== "undefined")
-    { pp[Symbol.iterator] = function() {
-      var this$1$1 = this;
-
-      return {
-        next: function () {
-          var token = this$1$1.getToken();
-          return {
-            done: token.type === types$1.eof,
-            value: token
-          }
-        }
-      }
-    }; }
-
-  // Toggle strict mode. Re-reads the next number or string to please
-  // pedantic tests (`"use strict"; 010;` should fail).
-
-  // Read a single token, updating the parser object's token-related
-  // properties.
-
-  pp.nextToken = function() {
-    var curContext = this.curContext();
-    if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }
-
-    this.start = this.pos;
-    if (this.options.locations) { this.startLoc = this.curPosition(); }
-    if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) }
-
-    if (curContext.override) { return curContext.override(this) }
-    else { this.readToken(this.fullCharCodeAtPos()); }
-  };
-
-  pp.readToken = function(code) {
-    // Identifier or keyword. '\uXXXX' sequences are allowed in
-    // identifiers, so '\' also dispatches to that.
-    if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */)
-      { return this.readWord() }
-
-    return this.getTokenFromCode(code)
-  };
-
-  pp.fullCharCodeAtPos = function() {
-    var code = this.input.charCodeAt(this.pos);
-    if (code <= 0xd7ff || code >= 0xdc00) { return code }
-    var next = this.input.charCodeAt(this.pos + 1);
-    return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00
-  };
-
-  pp.skipBlockComment = function() {
-    var startLoc = this.options.onComment && this.curPosition();
-    var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
-    if (end === -1) { this.raise(this.pos - 2, "Unterminated comment"); }
-    this.pos = end + 2;
-    if (this.options.locations) {
-      for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) {
-        ++this.curLine;
-        pos = this.lineStart = nextBreak;
-      }
-    }
-    if (this.options.onComment)
-      { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,
-                             startLoc, this.curPosition()); }
-  };
-
-  pp.skipLineComment = function(startSkip) {
-    var start = this.pos;
-    var startLoc = this.options.onComment && this.curPosition();
-    var ch = this.input.charCodeAt(this.pos += startSkip);
-    while (this.pos < this.input.length && !isNewLine(ch)) {
-      ch = this.input.charCodeAt(++this.pos);
-    }
-    if (this.options.onComment)
-      { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,
-                             startLoc, this.curPosition()); }
-  };
-
-  // Called at the start of the parse and after every token. Skips
-  // whitespace and comments, and.
-
-  pp.skipSpace = function() {
-    loop: while (this.pos < this.input.length) {
-      var ch = this.input.charCodeAt(this.pos);
-      switch (ch) {
-      case 32: case 160: // ' '
-        ++this.pos;
-        break
-      case 13:
-        if (this.input.charCodeAt(this.pos + 1) === 10) {
-          ++this.pos;
-        }
-      case 10: case 8232: case 8233:
-        ++this.pos;
-        if (this.options.locations) {
-          ++this.curLine;
-          this.lineStart = this.pos;
-        }
-        break
-      case 47: // '/'
-        switch (this.input.charCodeAt(this.pos + 1)) {
-        case 42: // '*'
-          this.skipBlockComment();
-          break
-        case 47:
-          this.skipLineComment(2);
-          break
-        default:
-          break loop
-        }
-        break
-      default:
-        if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
-          ++this.pos;
-        } else {
-          break loop
-        }
-      }
-    }
-  };
-
-  // Called at the end of every token. Sets `end`, `val`, and
-  // maintains `context` and `exprAllowed`, and skips the space after
-  // the token, so that the next one's `start` will point at the
-  // right position.
-
-  pp.finishToken = function(type, val) {
-    this.end = this.pos;
-    if (this.options.locations) { this.endLoc = this.curPosition(); }
-    var prevType = this.type;
-    this.type = type;
-    this.value = val;
-
-    this.updateContext(prevType);
-  };
-
-  // ### Token reading
-
-  // This is the function that is called to fetch the next token. It
-  // is somewhat obscure, because it works in character codes rather
-  // than characters, and because operator parsing has been inlined
-  // into it.
-  //
-  // All in the name of speed.
-  //
-  pp.readToken_dot = function() {
-    var next = this.input.charCodeAt(this.pos + 1);
-    if (next >= 48 && next <= 57) { return this.readNumber(true) }
-    var next2 = this.input.charCodeAt(this.pos + 2);
-    if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'
-      this.pos += 3;
-      return this.finishToken(types$1.ellipsis)
-    } else {
-      ++this.pos;
-      return this.finishToken(types$1.dot)
-    }
-  };
-
-  pp.readToken_slash = function() { // '/'
-    var next = this.input.charCodeAt(this.pos + 1);
-    if (this.exprAllowed) { ++this.pos; return this.readRegexp() }
-    if (next === 61) { return this.finishOp(types$1.assign, 2) }
-    return this.finishOp(types$1.slash, 1)
-  };
-
-  pp.readToken_mult_modulo_exp = function(code) { // '%*'
-    var next = this.input.charCodeAt(this.pos + 1);
-    var size = 1;
-    var tokentype = code === 42 ? types$1.star : types$1.modulo;
-
-    // exponentiation operator ** and **=
-    if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {
-      ++size;
-      tokentype = types$1.starstar;
-      next = this.input.charCodeAt(this.pos + 2);
-    }
-
-    if (next === 61) { return this.finishOp(types$1.assign, size + 1) }
-    return this.finishOp(tokentype, size)
-  };
-
-  pp.readToken_pipe_amp = function(code) { // '|&'
-    var next = this.input.charCodeAt(this.pos + 1);
-    if (next === code) {
-      if (this.options.ecmaVersion >= 12) {
-        var next2 = this.input.charCodeAt(this.pos + 2);
-        if (next2 === 61) { return this.finishOp(types$1.assign, 3) }
-      }
-      return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2)
-    }
-    if (next === 61) { return this.finishOp(types$1.assign, 2) }
-    return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1)
-  };
-
-  pp.readToken_caret = function() { // '^'
-    var next = this.input.charCodeAt(this.pos + 1);
-    if (next === 61) { return this.finishOp(types$1.assign, 2) }
-    return this.finishOp(types$1.bitwiseXOR, 1)
-  };
-
-  pp.readToken_plus_min = function(code) { // '+-'
-    var next = this.input.charCodeAt(this.pos + 1);
-    if (next === code) {
-      if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&
-          (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {
-        // A `-->` line comment
-        this.skipLineComment(3);
-        this.skipSpace();
-        return this.nextToken()
-      }
-      return this.finishOp(types$1.incDec, 2)
-    }
-    if (next === 61) { return this.finishOp(types$1.assign, 2) }
-    return this.finishOp(types$1.plusMin, 1)
-  };
-
-  pp.readToken_lt_gt = function(code) { // '<>'
-    var next = this.input.charCodeAt(this.pos + 1);
-    var size = 1;
-    if (next === code) {
-      size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
-      if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }
-      return this.finishOp(types$1.bitShift, size)
-    }
-    if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&
-        this.input.charCodeAt(this.pos + 3) === 45) {
-      // `` line comment
-      this.skipLineComment(3);
-      this.skipSpace();
-      return this.nextToken()
-    }
-    return this.finishOp(types$1.incDec, 2)
-  }
-  if (next === 61) { return this.finishOp(types$1.assign, 2) }
-  return this.finishOp(types$1.plusMin, 1)
-};
-
-pp.readToken_lt_gt = function(code) { // '<>'
-  var next = this.input.charCodeAt(this.pos + 1);
-  var size = 1;
-  if (next === code) {
-    size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
-    if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }
-    return this.finishOp(types$1.bitShift, size)
-  }
-  if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&
-      this.input.charCodeAt(this.pos + 3) === 45) {
-    // `
-
-## Installation and Usage
-
-Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
-
-You can install and configure ESLint using this command:
-
-```shell
-npm init @eslint/config@latest
-```
-
-After that, you can run ESLint on any file or directory like this:
-
-```shell
-./node_modules/.bin/eslint yourfile.js
-```
-
-## Configuration
-
-After running `npm init @eslint/config`, you'll have an `eslint.config.js` (or `eslint.config.mjs`) file in your directory. In it, you'll see some rules configured like this:
-
-```js
-import pluginJs from "@eslint/js";
-export default [ pluginJs.configs.recommended, ];
-```
-
-The names `"semi"` and `"quotes"` are the names of [rules](https://eslint.org/docs/rules) in ESLint. The first value is the error level of the rule and can be one of these values:
-
-* `"off"` or `0` - turn the rule off
-* `"warn"` or `1` - turn the rule on as a warning (doesn't affect exit code)
-* `"error"` or `2` - turn the rule on as an error (exit code will be 1)
-
-The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](https://eslint.org/docs/latest/use/configure)).
-
-## Code of Conduct
-
-ESLint adheres to the [JS Foundation Code of Conduct](https://eslint.org/conduct).
-
-## Filing Issues
-
-Before filing an issue, please be sure to read the guidelines for what you're reporting:
-
-* [Bug Report](https://eslint.org/docs/latest/contribute/report-bugs)
-* [Propose a New Rule](https://eslint.org/docs/latest/contribute/propose-new-rule)
-* [Proposing a Rule Change](https://eslint.org/docs/latest/contribute/propose-rule-change)
-* [Request a Change](https://eslint.org/docs/latest/contribute/request-change)
-
-## Frequently Asked Questions
-
-### I'm using JSCS, should I migrate to ESLint?
-
-Yes. [JSCS has reached end of life](https://eslint.org/blog/2016/07/jscs-end-of-life) and is no longer supported.
-
-We have prepared a [migration guide](https://eslint.org/docs/latest/use/migrating-from-jscs) to help you convert your JSCS settings to an ESLint configuration.
-
-We are now at or near 100% compatibility with JSCS. If you try ESLint and believe we are not yet compatible with a JSCS rule/configuration, please create an issue (mentioning that it is a JSCS compatibility issue) and we will evaluate it as per our normal process.
-
-### Does Prettier replace ESLint?
-
-No, ESLint and Prettier have different jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter. Using both tools is common, refer to [Prettier's documentation](https://prettier.io/docs/en/install#eslint-and-other-linters) to learn how to configure them to work well with each other.
-
-### Why can't ESLint find my plugins?
-
-* Make sure your plugins (and ESLint) are both in your project's `package.json` as devDependencies (or dependencies, if your project uses ESLint at runtime).
-* Make sure you have run `npm install` and all your dependencies are installed.
-* Make sure your plugins' peerDependencies have been installed as well. You can use `npm view eslint-plugin-myplugin peerDependencies` to see what peer dependencies `eslint-plugin-myplugin` has.
-
-### Does ESLint support JSX?
-
-Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](https://eslint.org/docs/latest/use/configure)). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics.
-
-### What ECMAScript versions does ESLint support?
-
-ESLint has full support for ECMAScript 3, 5, and every year from 2015 up until the most recent stage 4 specification (the default). You can set your desired ECMAScript syntax and other settings (like global variables) through [configuration](https://eslint.org/docs/latest/use/configure).
-
-### What about experimental features?
-
-ESLint's parser only officially supports the latest final ECMAScript standard. We will make changes to core rules in order to avoid crashes on stage 3 ECMAScript syntax proposals (as long as they are implemented using the correct experimental ESTree syntax). We may make changes to core rules to better work with language extensions (such as JSX, Flow, and TypeScript) on a case-by-case basis.
-
-In other cases (including if rules need to warn on more or fewer cases due to new syntax, rather than just not crashing), we recommend you use other parsers and/or rule plugins. If you are using Babel, you can use [@babel/eslint-parser](https://www.npmjs.com/package/@babel/eslint-parser) and [@babel/eslint-plugin](https://www.npmjs.com/package/@babel/eslint-plugin) to use any option available in Babel.
-
-Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the [TC39 process](https://tc39.github.io/process-document/)), we will accept issues and pull requests related to the new feature, subject to our [contributing guidelines](https://eslint.org/docs/latest/contribute). Until then, please use the appropriate parser and plugin(s) for your experimental feature.
-
-### Which Node.js versions does ESLint support?
-
-ESLint updates the supported Node.js versions with each major release of ESLint. At that time, ESLint's supported Node.js versions are updated to be:
-
-1. The most recent maintenance release of Node.js
-1. The lowest minor version of the Node.js LTS release that includes the features the ESLint team wants to use.
-1. The Node.js Current release
-
-ESLint is also expected to work with Node.js versions released after the Node.js Current release.
-
-Refer to the [Quick Start Guide](https://eslint.org/docs/latest/use/getting-started#prerequisites) for the officially supported Node.js versions for a given ESLint release.
-
-### Where to ask for help?
-
-Open a [discussion](https://github.com/eslint/eslint/discussions) or stop by our [Discord server](https://eslint.org/chat).
-
-### Why doesn't ESLint lock dependency versions?
-
-Lock files like `package-lock.json` are helpful for deployed applications. They ensure that dependencies are consistent between environments and across deployments.
-
-Packages like `eslint` that get published to the npm registry do not include lock files. `npm install eslint` as a user will respect version constraints in ESLint's `package.json`. ESLint and its dependencies will be included in the user's lock file if one exists, but ESLint's own lock file would not be used.
-
-We intentionally don't lock dependency versions so that we have the latest compatible dependency versions in development and CI that our users get when installing ESLint in a project.
-
-The Twilio blog has a [deeper dive](https://www.twilio.com/blog/lockfiles-nodejs) to learn more.
-
-## Releases
-
-We have scheduled releases every two weeks on Friday or Saturday. You can follow a [release issue](https://github.com/eslint/eslint/issues?q=is%3Aopen+is%3Aissue+label%3Arelease) for updates about the scheduling of any particular release.
-
-## Security Policy
-
-ESLint takes security seriously. We work hard to ensure that ESLint is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md).
-
-## Semantic Versioning Policy
-
-ESLint follows [semantic versioning](https://semver.org). However, due to the nature of ESLint as a code quality tool, it's not always clear when a minor or major version bump occurs. To help clarify this for everyone, we've defined the following semantic versioning policy for ESLint:
-
-* Patch release (intended to not break your lint build)
-    * A bug fix in a rule that results in ESLint reporting fewer linting errors.
-    * A bug fix to the CLI or core (including formatters).
-    * Improvements to documentation.
-    * Non-user-facing changes such as refactoring code, adding, deleting, or modifying tests, and increasing test coverage.
-    * Re-releasing after a failed release (i.e., publishing a release that doesn't work for anyone).
-* Minor release (might break your lint build)
-    * A bug fix in a rule that results in ESLint reporting more linting errors.
-    * A new rule is created.
-    * A new option to an existing rule that does not result in ESLint reporting more linting errors by default.
-    * A new addition to an existing rule to support a newly-added language feature (within the last 12 months) that will result in ESLint reporting more linting errors by default.
-    * An existing rule is deprecated.
-    * A new CLI capability is created.
-    * New capabilities to the public API are added (new classes, new methods, new arguments to existing methods, etc.).
-    * A new formatter is created.
-    * `eslint:recommended` is updated and will result in strictly fewer linting errors (e.g., rule removals).
-* Major release (likely to break your lint build)
-    * `eslint:recommended` is updated and may result in new linting errors (e.g., rule additions, most rule option updates).
-    * A new option to an existing rule that results in ESLint reporting more linting errors by default.
-    * An existing formatter is removed.
-    * Part of the public API is removed or changed in an incompatible way. The public API includes:
-        * Rule schemas
-        * Configuration schema
-        * Command-line options
-        * Node.js API
-        * Rule, formatter, parser, plugin APIs
-
-According to our policy, any minor update may report more linting errors than the previous release (ex: from a bug fix). As such, we recommend using the tilde (`~`) in `package.json` e.g. `"eslint": "~3.1.0"` to guarantee the results of your builds.
-
-## Stylistic Rule Updates
-
-Stylistic rules are frozen according to [our policy](https://eslint.org/blog/2020/05/changes-to-rules-policies) on how we evaluate new rules and rule changes.
-This means:
-
-* **Bug fixes**: We will still fix bugs in stylistic rules.
-* **New ECMAScript features**: We will also make sure stylistic rules are compatible with new ECMAScript features.
-* **New options**: We will **not** add any new options to stylistic rules unless an option is the only way to fix a bug or support a newly-added ECMAScript feature.
-
-## License
-
-[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feslint%2Feslint.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feslint%2Feslint?ref=badge_large)
-
-## Team
-
-These folks keep the project moving and are resources for help.
-
-
-
-
-
-### Technical Steering Committee (TSC)
-
-The people who manage releases, review feature requests, and meet regularly to ensure ESLint is properly maintained.
-
-
- -Nicholas C. Zakas's Avatar
-Nicholas C. Zakas -
-
- -Francesco Trotta's Avatar
-Francesco Trotta -
-
- -Milos Djermanovic's Avatar
-Milos Djermanovic -
-
- -### Reviewers - -The people who review and implement new features. - -
- -唯然's Avatar
-唯然 -
-
- -Nitin Kumar's Avatar
-Nitin Kumar -
-
- -### Committers - -The people who review and fix bugs and help triage issues. - -
- -Josh Goldberg ✨'s Avatar
-Josh Goldberg ✨ -
-
- -Tanuj Kanti's Avatar
-Tanuj Kanti -
-
- -### Website Team - -Team members who focus specifically on eslint.org - -
- -Amaresh  S M's Avatar
-Amaresh S M -
-
- -Strek's Avatar
-Strek -
-
- -Percy Ma's Avatar
-Percy Ma -
-
- - - -## Sponsors - -The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. - - - -

Platinum Sponsors

-

Automattic Airbnb

Gold Sponsors

-

Eli Schleifer

Silver Sponsors

-

JetBrains Liftoff American Express Workleap

Bronze Sponsors

-

notion Anagram Solver Icons8 Discord Ignition Nx HeroCoders Nextbase Starter Kit

- - - -

Technology Sponsors

-

Netlify Algolia 1Password

- \ No newline at end of file diff --git a/graphql/node_modules/eslint/bin/eslint.js b/graphql/node_modules/eslint/bin/eslint.js deleted file mode 100755 index fa3960e2..00000000 --- a/graphql/node_modules/eslint/bin/eslint.js +++ /dev/null @@ -1,174 +0,0 @@ -#!/usr/bin/env node - -/** - * @fileoverview Main CLI that is run via the eslint command. - * @author Nicholas C. Zakas - */ - -/* eslint no-console:off -- CLI */ - -"use strict"; - -// must do this initialization *before* other requires in order to work -if (process.argv.includes("--debug")) { - require("debug").enable("eslint:*,-eslint:code-path,eslintrc:*"); -} - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Read data from stdin til the end. - * - * Note: See - * - https://github.com/nodejs/node/blob/master/doc/api/process.md#processstdin - * - https://github.com/nodejs/node/blob/master/doc/api/process.md#a-note-on-process-io - * - https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-01/msg00419.html - * - https://github.com/nodejs/node/issues/7439 (historical) - * - * On Windows using `fs.readFileSync(STDIN_FILE_DESCRIPTOR, "utf8")` seems - * to read 4096 bytes before blocking and never drains to read further data. - * - * The investigation on the Emacs thread indicates: - * - * > Emacs on MS-Windows uses pipes to communicate with subprocesses; a - * > pipe on Windows has a 4K buffer. So as soon as Emacs writes more than - * > 4096 bytes to the pipe, the pipe becomes full, and Emacs then waits for - * > the subprocess to read its end of the pipe, at which time Emacs will - * > write the rest of the stuff. - * @returns {Promise} The read text. - */ -function readStdin() { - return new Promise((resolve, reject) => { - let content = ""; - let chunk = ""; - - process.stdin - .setEncoding("utf8") - .on("readable", () => { - while ((chunk = process.stdin.read()) !== null) { - content += chunk; - } - }) - .on("end", () => resolve(content)) - .on("error", reject); - }); -} - -/** - * Get the error message of a given value. - * @param {any} error The value to get. - * @returns {string} The error message. - */ -function getErrorMessage(error) { - - // Lazy loading because this is used only if an error happened. - const util = require("node:util"); - - // Foolproof -- third-party module might throw non-object. - if (typeof error !== "object" || error === null) { - return String(error); - } - - // Use templates if `error.messageTemplate` is present. - if (typeof error.messageTemplate === "string") { - try { - const template = require(`../messages/${error.messageTemplate}.js`); - - return template(error.messageData || {}); - } catch { - - // Ignore template error then fallback to use `error.stack`. - } - } - - // Use the stacktrace if it's an error object. - if (typeof error.stack === "string") { - return error.stack; - } - - // Otherwise, dump the object. - return util.format("%o", error); -} - -/** - * Tracks error messages that are shown to the user so we only ever show the - * same message once. - * @type {Set} - */ -const displayedErrors = new Set(); - -/** - * Tracks whether an unexpected error was caught - * @type {boolean} - */ -let hadFatalError = false; - -/** - * Catch and report unexpected error. - * @param {any} error The thrown error object. - * @returns {void} - */ -function onFatalError(error) { - process.exitCode = 2; - hadFatalError = true; - - const { version } = require("../package.json"); - const message = ` -Oops! Something went wrong! :( - -ESLint: ${version} - -${getErrorMessage(error)}`; - - if (!displayedErrors.has(message)) { - console.error(message); - displayedErrors.add(message); - } -} - -//------------------------------------------------------------------------------ -// Execution -//------------------------------------------------------------------------------ - -(async function main() { - process.on("uncaughtException", onFatalError); - process.on("unhandledRejection", onFatalError); - - // Call the config initializer if `--init` is present. - if (process.argv.includes("--init")) { - - // `eslint --init` has been moved to `@eslint/create-config` - console.warn("You can also run this command directly using 'npm init @eslint/config@latest'."); - - const spawn = require("cross-spawn"); - - spawn.sync("npm", ["init", "@eslint/config@latest"], { encoding: "utf8", stdio: "inherit" }); - return; - } - - // Otherwise, call the CLI. - const cli = require("../lib/cli"); - const exitCode = await cli.execute( - process.argv, - process.argv.includes("--stdin") ? await readStdin() : null, - true - ); - - /* - * If an uncaught exception or unhandled rejection was detected in the meantime, - * keep the fatal exit code 2 that is already assigned to `process.exitCode`. - * Without this condition, exit code 2 (unsuccessful execution) could be overwritten with - * 1 (successful execution, lint problems found) or even 0 (successful execution, no lint problems found). - * This ensures that unexpected errors that seemingly don't affect the success - * of the execution will still cause a non-zero exit code, as it's a common - * practice and the default behavior of Node.js to exit with non-zero - * in case of an uncaught exception or unhandled rejection. - * - * Otherwise, assign the exit code returned from CLI. - */ - if (!hadFatalError) { - process.exitCode = exitCode; - } -}()).catch(onFatalError); diff --git a/graphql/node_modules/eslint/conf/default-cli-options.js b/graphql/node_modules/eslint/conf/default-cli-options.js deleted file mode 100644 index dad03d89..00000000 --- a/graphql/node_modules/eslint/conf/default-cli-options.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @fileoverview Default CLIEngineOptions. - * @author Ian VanSchooten - */ - -"use strict"; - -module.exports = { - configFile: null, - baseConfig: false, - rulePaths: [], - useEslintrc: true, - envs: [], - globals: [], - extensions: null, - ignore: true, - ignorePath: void 0, - cache: false, - - /* - * in order to honor the cacheFile option if specified - * this option should not have a default value otherwise - * it will always be used - */ - cacheLocation: "", - cacheFile: ".eslintcache", - cacheStrategy: "metadata", - fix: false, - allowInlineConfig: true, - reportUnusedDisableDirectives: void 0, - globInputPaths: true -}; diff --git a/graphql/node_modules/eslint/conf/ecma-version.js b/graphql/node_modules/eslint/conf/ecma-version.js deleted file mode 100644 index 4e38c1d2..00000000 --- a/graphql/node_modules/eslint/conf/ecma-version.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @fileoverview Configuration related to ECMAScript versions - * @author Milos Djermanovic - */ - -"use strict"; - -/** - * The latest ECMAScript version supported by ESLint. - * @type {number} year-based ECMAScript version - */ -const LATEST_ECMA_VERSION = 2025; - -module.exports = { - LATEST_ECMA_VERSION -}; diff --git a/graphql/node_modules/eslint/conf/globals.js b/graphql/node_modules/eslint/conf/globals.js deleted file mode 100644 index 81df6bb2..00000000 --- a/graphql/node_modules/eslint/conf/globals.js +++ /dev/null @@ -1,160 +0,0 @@ -/** - * @fileoverview Globals for ecmaVersion/sourceType - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Globals -//----------------------------------------------------------------------------- - -const commonjs = { - exports: true, - global: false, - module: false, - require: false -}; - -const es3 = { - Array: false, - Boolean: false, - constructor: false, - Date: false, - decodeURI: false, - decodeURIComponent: false, - encodeURI: false, - encodeURIComponent: false, - Error: false, - escape: false, - eval: false, - EvalError: false, - Function: false, - hasOwnProperty: false, - Infinity: false, - isFinite: false, - isNaN: false, - isPrototypeOf: false, - Math: false, - NaN: false, - Number: false, - Object: false, - parseFloat: false, - parseInt: false, - propertyIsEnumerable: false, - RangeError: false, - ReferenceError: false, - RegExp: false, - String: false, - SyntaxError: false, - toLocaleString: false, - toString: false, - TypeError: false, - undefined: false, - unescape: false, - URIError: false, - valueOf: false -}; - -const es5 = { - ...es3, - JSON: false -}; - -const es2015 = { - ...es5, - ArrayBuffer: false, - DataView: false, - Float32Array: false, - Float64Array: false, - Int16Array: false, - Int32Array: false, - Int8Array: false, - Intl: false, - Map: false, - Promise: false, - Proxy: false, - Reflect: false, - Set: false, - Symbol: false, - Uint16Array: false, - Uint32Array: false, - Uint8Array: false, - Uint8ClampedArray: false, - WeakMap: false, - WeakSet: false -}; - -// no new globals in ES2016 -const es2016 = { - ...es2015 -}; - -const es2017 = { - ...es2016, - Atomics: false, - SharedArrayBuffer: false -}; - -// no new globals in ES2018 -const es2018 = { - ...es2017 -}; - -// no new globals in ES2019 -const es2019 = { - ...es2018 -}; - -const es2020 = { - ...es2019, - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const es2021 = { - ...es2020, - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -const es2022 = { - ...es2021 -}; - -const es2023 = { - ...es2022 -}; - -const es2024 = { - ...es2023 -}; - -const es2025 = { - ...es2024 -}; - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - commonjs, - es3, - es5, - es2015, - es2016, - es2017, - es2018, - es2019, - es2020, - es2021, - es2022, - es2023, - es2024, - es2025 -}; diff --git a/graphql/node_modules/eslint/conf/replacements.json b/graphql/node_modules/eslint/conf/replacements.json deleted file mode 100644 index c047811e..00000000 --- a/graphql/node_modules/eslint/conf/replacements.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "rules": { - "generator-star": ["generator-star-spacing"], - "global-strict": ["strict"], - "no-arrow-condition": ["no-confusing-arrow", "no-constant-condition"], - "no-comma-dangle": ["comma-dangle"], - "no-empty-class": ["no-empty-character-class"], - "no-empty-label": ["no-labels"], - "no-extra-strict": ["strict"], - "no-reserved-keys": ["quote-props"], - "no-space-before-semi": ["semi-spacing"], - "no-wrap-func": ["no-extra-parens"], - "space-after-function-name": ["space-before-function-paren"], - "space-after-keywords": ["keyword-spacing"], - "space-before-function-parentheses": ["space-before-function-paren"], - "space-before-keywords": ["keyword-spacing"], - "space-in-brackets": ["object-curly-spacing", "array-bracket-spacing", "computed-property-spacing"], - "space-return-throw-case": ["keyword-spacing"], - "space-unary-word-ops": ["space-unary-ops"], - "spaced-line-comment": ["spaced-comment"] - } -} diff --git a/graphql/node_modules/eslint/conf/rule-type-list.json b/graphql/node_modules/eslint/conf/rule-type-list.json deleted file mode 100644 index f48454bb..00000000 --- a/graphql/node_modules/eslint/conf/rule-type-list.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "types": { - "problem": [], - "suggestion": [], - "layout": [] - }, - "deprecated": [], - "removed": [ - { "removed": "generator-star", "replacedBy": ["generator-star-spacing"] }, - { "removed": "global-strict", "replacedBy": ["strict"] }, - { "removed": "no-arrow-condition", "replacedBy": ["no-confusing-arrow", "no-constant-condition"] }, - { "removed": "no-comma-dangle", "replacedBy": ["comma-dangle"] }, - { "removed": "no-empty-class", "replacedBy": ["no-empty-character-class"] }, - { "removed": "no-empty-label", "replacedBy": ["no-labels"] }, - { "removed": "no-extra-strict", "replacedBy": ["strict"] }, - { "removed": "no-reserved-keys", "replacedBy": ["quote-props"] }, - { "removed": "no-space-before-semi", "replacedBy": ["semi-spacing"] }, - { "removed": "no-wrap-func", "replacedBy": ["no-extra-parens"] }, - { "removed": "space-after-function-name", "replacedBy": ["space-before-function-paren"] }, - { "removed": "space-after-keywords", "replacedBy": ["keyword-spacing"] }, - { "removed": "space-before-function-parentheses", "replacedBy": ["space-before-function-paren"] }, - { "removed": "space-before-keywords", "replacedBy": ["keyword-spacing"] }, - { "removed": "space-in-brackets", "replacedBy": ["object-curly-spacing", "array-bracket-spacing"] }, - { "removed": "space-return-throw-case", "replacedBy": ["keyword-spacing"] }, - { "removed": "space-unary-word-ops", "replacedBy": ["space-unary-ops"] }, - { "removed": "spaced-line-comment", "replacedBy": ["spaced-comment"] }, - { "removed": "valid-jsdoc", "replacedBy": [] }, - { "removed": "require-jsdoc", "replacedBy": [] } - ] -} diff --git a/graphql/node_modules/eslint/lib/api.js b/graphql/node_modules/eslint/lib/api.js deleted file mode 100644 index a134ecda..00000000 --- a/graphql/node_modules/eslint/lib/api.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview Expose out ESLint and CLI to require. - * @author Ian Christian Myers - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { ESLint, shouldUseFlatConfig } = require("./eslint/eslint"); -const { LegacyESLint } = require("./eslint/legacy-eslint"); -const { Linter } = require("./linter"); -const { RuleTester } = require("./rule-tester"); -const { SourceCode } = require("./languages/js/source-code"); - -//----------------------------------------------------------------------------- -// Functions -//----------------------------------------------------------------------------- - -/** - * Loads the correct ESLint constructor given the options. - * @param {Object} [options] The options object - * @param {boolean} [options.useFlatConfig] Whether or not to use a flat config - * @returns {Promise} The ESLint constructor - */ -async function loadESLint({ useFlatConfig } = {}) { - - /* - * Note: The v8.x version of this function also accepted a `cwd` option, but - * it is not used in this implementation so we silently ignore it. - */ - - const shouldESLintUseFlatConfig = useFlatConfig ?? (await shouldUseFlatConfig()); - - return shouldESLintUseFlatConfig ? ESLint : LegacyESLint; -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - Linter, - loadESLint, - ESLint, - RuleTester, - SourceCode -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/cli-engine.js b/graphql/node_modules/eslint/lib/cli-engine/cli-engine.js deleted file mode 100644 index 43fcc73d..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/cli-engine.js +++ /dev/null @@ -1,1089 +0,0 @@ -/** - * @fileoverview Main CLI object. - * @author Nicholas C. Zakas - */ - -"use strict"; - -/* - * The CLI object should *not* call process.exit() directly. It should only return - * exit codes. This allows other programs to use the CLI object and still control - * when the program exits. - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const fs = require("node:fs"); -const path = require("node:path"); -const defaultOptions = require("../../conf/default-cli-options"); -const pkg = require("../../package.json"); - - -const { - Legacy: { - ConfigOps, - naming, - CascadingConfigArrayFactory, - IgnorePattern, - getUsedExtractedConfigs, - ModuleResolver - } -} = require("@eslint/eslintrc"); - -const { FileEnumerator } = require("./file-enumerator"); - -const { Linter } = require("../linter"); -const builtInRules = require("../rules"); -const loadRules = require("./load-rules"); -const hash = require("./hash"); -const LintResultCache = require("./lint-result-cache"); - -const debug = require("debug")("eslint:cli-engine"); -const removedFormatters = new Set([ - "checkstyle", - "codeframe", - "compact", - "jslint-xml", - "junit", - "table", - "tap", - "unix", - "visualstudio" -]); -const validFixTypes = new Set(["directive", "problem", "suggestion", "layout"]); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -// For VSCode IntelliSense -/** @typedef {import("../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */ -/** @typedef {import("../shared/types").ParserOptions} ParserOptions */ -/** @typedef {import("../shared/types").Plugin} Plugin */ -/** @typedef {import("../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../shared/types").Rule} Rule */ -/** @typedef {import("../shared/types").FormatterFunction} FormatterFunction */ -/** @typedef {ReturnType} ConfigArray */ -/** @typedef {ReturnType} ExtractedConfig */ - -/** - * The options to configure a CLI engine with. - * @typedef {Object} CLIEngineOptions - * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. - * @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this CLIEngine instance - * @property {boolean} [cache] Enable result caching. - * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. - * @property {string} [configFile] The configuration file to use. - * @property {string} [cwd] The value to use for the current working directory. - * @property {string[]} [envs] An array of environments to load. - * @property {string[]|null} [extensions] An array of file extensions to check. - * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. - * @property {string[]} [fixTypes] Array of rule types to apply fixes for. - * @property {string[]} [globals] An array of global variables to declare. - * @property {boolean} [ignore] False disables use of .eslintignore. - * @property {string} [ignorePath] The ignore file to use instead of .eslintignore. - * @property {string|string[]} [ignorePattern] One or more glob patterns to ignore. - * @property {boolean} [useEslintrc] False disables looking for .eslintrc - * @property {string} [parser] The name of the parser to use. - * @property {ParserOptions} [parserOptions] An object of parserOption settings to use. - * @property {string[]} [plugins] An array of plugins to load. - * @property {Record} [rules] An object of rules to use. - * @property {string[]} [rulePaths] An array of directories to load custom rules from. - * @property {boolean|string} [reportUnusedDisableDirectives] `true`, `"error"` or '"warn"' adds reports for unused eslint-disable directives - * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {string} [resolvePluginsRelativeTo] The folder where plugins should be resolved from, defaulting to the CWD - */ - -/** - * A linting result. - * @typedef {Object} LintResult - * @property {string} filePath The path to the file that was linted. - * @property {LintMessage[]} messages All of the messages for the result. - * @property {SuppressedLintMessage[]} suppressedMessages All of the suppressed messages for the result. - * @property {number} errorCount Number of errors for the result. - * @property {number} fatalErrorCount Number of fatal errors for the result. - * @property {number} warningCount Number of warnings for the result. - * @property {number} fixableErrorCount Number of fixable errors for the result. - * @property {number} fixableWarningCount Number of fixable warnings for the result. - * @property {string} [source] The source code of the file that was linted. - * @property {string} [output] The source code of the file that was linted, with as many fixes applied as possible. - */ - -/** - * Linting results. - * @typedef {Object} LintReport - * @property {LintResult[]} results All of the result. - * @property {number} errorCount Number of errors for the result. - * @property {number} fatalErrorCount Number of fatal errors for the result. - * @property {number} warningCount Number of warnings for the result. - * @property {number} fixableErrorCount Number of fixable errors for the result. - * @property {number} fixableWarningCount Number of fixable warnings for the result. - * @property {DeprecatedRuleInfo[]} usedDeprecatedRules The list of used deprecated rules. - */ - -/** - * Private data for CLIEngine. - * @typedef {Object} CLIEngineInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cacheFilePath The path to the cache of lint results. - * @property {CascadingConfigArrayFactory} configArrayFactory The factory of configs. - * @property {(filePath: string) => boolean} defaultIgnores The default predicate function to check if a file ignored or not. - * @property {FileEnumerator} fileEnumerator The file enumerator. - * @property {ConfigArray[]} lastConfigArrays The list of config arrays that the last `executeOnFiles` or `executeOnText` used. - * @property {LintResultCache|null} lintResultCache The cache of lint results. - * @property {Linter} linter The linter instance which has loaded rules. - * @property {CLIEngineOptions} options The normalized options of this instance. - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Determines if each fix type in an array is supported by ESLint and throws - * an error if not. - * @param {string[]} fixTypes An array of fix types to check. - * @returns {void} - * @throws {Error} If an invalid fix type is found. - */ -function validateFixTypes(fixTypes) { - for (const fixType of fixTypes) { - if (!validFixTypes.has(fixType)) { - throw new Error(`Invalid fix type "${fixType}" found.`); - } - } -} - -/** - * It will calculate the error and warning count for collection of messages per file - * @param {LintMessage[]} messages Collection of messages - * @returns {Object} Contains the stats - * @private - */ -function calculateStatsPerFile(messages) { - const stat = { - errorCount: 0, - fatalErrorCount: 0, - warningCount: 0, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; - - for (let i = 0; i < messages.length; i++) { - const message = messages[i]; - - if (message.fatal || message.severity === 2) { - stat.errorCount++; - if (message.fatal) { - stat.fatalErrorCount++; - } - if (message.fix) { - stat.fixableErrorCount++; - } - } else { - stat.warningCount++; - if (message.fix) { - stat.fixableWarningCount++; - } - } - } - return stat; -} - -/** - * It will calculate the error and warning count for collection of results from all files - * @param {LintResult[]} results Collection of messages from all the files - * @returns {Object} Contains the stats - * @private - */ -function calculateStatsPerRun(results) { - const stat = { - errorCount: 0, - fatalErrorCount: 0, - warningCount: 0, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; - - for (let i = 0; i < results.length; i++) { - const result = results[i]; - - stat.errorCount += result.errorCount; - stat.fatalErrorCount += result.fatalErrorCount; - stat.warningCount += result.warningCount; - stat.fixableErrorCount += result.fixableErrorCount; - stat.fixableWarningCount += result.fixableWarningCount; - } - - return stat; -} - -/** - * Processes an source code using ESLint. - * @param {Object} config The config object. - * @param {string} config.text The source code to verify. - * @param {string} config.cwd The path to the current working directory. - * @param {string|undefined} config.filePath The path to the file of `text`. If this is undefined, it uses ``. - * @param {ConfigArray} config.config The config. - * @param {boolean} config.fix If `true` then it does fix. - * @param {boolean} config.allowInlineConfig If `true` then it uses directive comments. - * @param {boolean|string} config.reportUnusedDisableDirectives If `true`, `"error"` or '"warn"', then it reports unused `eslint-disable` comments. - * @param {FileEnumerator} config.fileEnumerator The file enumerator to check if a path is a target or not. - * @param {Linter} config.linter The linter instance to verify. - * @returns {LintResult} The result of linting. - * @private - */ -function verifyText({ - text, - cwd, - filePath: providedFilePath, - config, - fix, - allowInlineConfig, - reportUnusedDisableDirectives, - fileEnumerator, - linter -}) { - const filePath = providedFilePath || ""; - - debug(`Lint ${filePath}`); - - /* - * Verify. - * `config.extractConfig(filePath)` requires an absolute path, but `linter` - * doesn't know CWD, so it gives `linter` an absolute path always. - */ - const filePathToVerify = filePath === "" ? path.join(cwd, filePath) : filePath; - const { fixed, messages, output } = linter.verifyAndFix( - text, - config, - { - allowInlineConfig, - filename: filePathToVerify, - fix, - reportUnusedDisableDirectives, - - /** - * Check if the linter should adopt a given code block or not. - * @param {string} blockFilename The virtual filename of a code block. - * @returns {boolean} `true` if the linter should adopt the code block. - */ - filterCodeBlock(blockFilename) { - return fileEnumerator.isTargetPath(blockFilename); - } - } - ); - - // Tweak and return. - const result = { - filePath, - messages, - suppressedMessages: linter.getSuppressedMessages(), - ...calculateStatsPerFile(messages) - }; - - if (fixed) { - result.output = output; - } - if ( - result.errorCount + result.warningCount > 0 && - typeof result.output === "undefined" - ) { - result.source = text; - } - - return result; -} - -/** - * Returns result with warning by ignore settings - * @param {string} filePath File path of checked code - * @param {string} baseDir Absolute path of base directory - * @returns {LintResult} Result with single warning - * @private - */ -function createIgnoreResult(filePath, baseDir) { - let message; - const isHidden = filePath.split(path.sep) - .find(segment => /^\./u.test(segment)); - const isInNodeModules = baseDir && path.relative(baseDir, filePath).startsWith("node_modules"); - - if (isHidden) { - message = "File ignored by default. Use a negated ignore pattern (like \"--ignore-pattern '!'\") to override."; - } else if (isInNodeModules) { - message = "File ignored by default. Use \"--ignore-pattern '!node_modules/*'\" to override."; - } else { - message = "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to override."; - } - - return { - filePath: path.resolve(filePath), - messages: [ - { - ruleId: null, - fatal: false, - severity: 1, - message, - nodeType: null - } - ], - suppressedMessages: [], - errorCount: 0, - fatalErrorCount: 0, - warningCount: 1, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; -} - -/** - * Get a rule. - * @param {string} ruleId The rule ID to get. - * @param {ConfigArray[]} configArrays The config arrays that have plugin rules. - * @returns {Rule|null} The rule or null. - */ -function getRule(ruleId, configArrays) { - for (const configArray of configArrays) { - const rule = configArray.pluginRules.get(ruleId); - - if (rule) { - return rule; - } - } - return builtInRules.get(ruleId) || null; -} - -/** - * Checks whether a message's rule type should be fixed. - * @param {LintMessage} message The message to check. - * @param {ConfigArray[]} lastConfigArrays The list of config arrays that the last `executeOnFiles` or `executeOnText` used. - * @param {string[]} fixTypes An array of fix types to check. - * @returns {boolean} Whether the message should be fixed. - */ -function shouldMessageBeFixed(message, lastConfigArrays, fixTypes) { - if (!message.ruleId) { - return fixTypes.has("directive"); - } - - const rule = message.ruleId && getRule(message.ruleId, lastConfigArrays); - - return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type)); -} - -/** - * Collect used deprecated rules. - * @param {ConfigArray[]} usedConfigArrays The config arrays which were used. - * @returns {IterableIterator} Used deprecated rules. - */ -function *iterateRuleDeprecationWarnings(usedConfigArrays) { - const processedRuleIds = new Set(); - - // Flatten used configs. - /** @type {ExtractedConfig[]} */ - const configs = usedConfigArrays.flatMap(getUsedExtractedConfigs); - - // Traverse rule configs. - for (const config of configs) { - for (const [ruleId, ruleConfig] of Object.entries(config.rules)) { - - // Skip if it was processed. - if (processedRuleIds.has(ruleId)) { - continue; - } - processedRuleIds.add(ruleId); - - // Skip if it's not used. - if (!ConfigOps.getRuleSeverity(ruleConfig)) { - continue; - } - const rule = getRule(ruleId, usedConfigArrays); - - // Skip if it's not deprecated. - if (!(rule && rule.meta && rule.meta.deprecated)) { - continue; - } - - // This rule was used and deprecated. - yield { - ruleId, - replacedBy: rule.meta.replacedBy || [] - }; - } - } -} - -/** - * Checks if the given message is an error message. - * @param {LintMessage} message The message to check. - * @returns {boolean} Whether or not the message is an error message. - * @private - */ -function isErrorMessage(message) { - return message.severity === 2; -} - - -/** - * return the cacheFile to be used by eslint, based on whether the provided parameter is - * a directory or looks like a directory (ends in `path.sep`), in which case the file - * name will be the `cacheFile/.cache_hashOfCWD` - * - * if cacheFile points to a file or looks like a file then it will just use that file - * @param {string} cacheFile The name of file to be used to store the cache - * @param {string} cwd Current working directory - * @returns {string} the resolved path to the cache file - */ -function getCacheFile(cacheFile, cwd) { - - /* - * make sure the path separators are normalized for the environment/os - * keeping the trailing path separator if present - */ - const normalizedCacheFile = path.normalize(cacheFile); - - const resolvedCacheFile = path.resolve(cwd, normalizedCacheFile); - const looksLikeADirectory = normalizedCacheFile.slice(-1) === path.sep; - - /** - * return the name for the cache file in case the provided parameter is a directory - * @returns {string} the resolved path to the cacheFile - */ - function getCacheFileForDirectory() { - return path.join(resolvedCacheFile, `.cache_${hash(cwd)}`); - } - - let fileStats; - - try { - fileStats = fs.lstatSync(resolvedCacheFile); - } catch { - fileStats = null; - } - - - /* - * in case the file exists we need to verify if the provided path - * is a directory or a file. If it is a directory we want to create a file - * inside that directory - */ - if (fileStats) { - - /* - * is a directory or is a file, but the original file the user provided - * looks like a directory but `path.resolve` removed the `last path.sep` - * so we need to still treat this like a directory - */ - if (fileStats.isDirectory() || looksLikeADirectory) { - return getCacheFileForDirectory(); - } - - // is file so just use that file - return resolvedCacheFile; - } - - /* - * here we known the file or directory doesn't exist, - * so we will try to infer if its a directory if it looks like a directory - * for the current operating system. - */ - - // if the last character passed is a path separator we assume is a directory - if (looksLikeADirectory) { - return getCacheFileForDirectory(); - } - - return resolvedCacheFile; -} - -/** - * Convert a string array to a boolean map. - * @param {string[]|null} keys The keys to assign true. - * @param {boolean} defaultValue The default value for each property. - * @param {string} displayName The property name which is used in error message. - * @throws {Error} Requires array. - * @returns {Record} The boolean map. - */ -function toBooleanMap(keys, defaultValue, displayName) { - if (keys && !Array.isArray(keys)) { - throw new Error(`${displayName} must be an array.`); - } - if (keys && keys.length > 0) { - return keys.reduce((map, def) => { - const [key, value] = def.split(":"); - - if (key !== "__proto__") { - map[key] = value === void 0 - ? defaultValue - : value === "true"; - } - - return map; - }, {}); - } - return void 0; -} - -/** - * Create a config data from CLI options. - * @param {CLIEngineOptions} options The options - * @returns {ConfigData|null} The created config data. - */ -function createConfigDataFromOptions(options) { - const { - ignorePattern, - parser, - parserOptions, - plugins, - rules - } = options; - const env = toBooleanMap(options.envs, true, "envs"); - const globals = toBooleanMap(options.globals, false, "globals"); - - if ( - env === void 0 && - globals === void 0 && - (ignorePattern === void 0 || ignorePattern.length === 0) && - parser === void 0 && - parserOptions === void 0 && - plugins === void 0 && - rules === void 0 - ) { - return null; - } - return { - env, - globals, - ignorePatterns: ignorePattern, - parser, - parserOptions, - plugins, - rules - }; -} - -/** - * Checks whether a directory exists at the given location - * @param {string} resolvedPath A path from the CWD - * @throws {Error} As thrown by `fs.statSync` or `fs.isDirectory`. - * @returns {boolean} `true` if a directory exists - */ -function directoryExists(resolvedPath) { - try { - return fs.statSync(resolvedPath).isDirectory(); - } catch (error) { - if (error && (error.code === "ENOENT" || error.code === "ENOTDIR")) { - return false; - } - throw error; - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Core CLI. - */ -class CLIEngine { - - /** - * Creates a new instance of the core CLI engine. - * @param {CLIEngineOptions} providedOptions The options for this instance. - * @param {Object} [additionalData] Additional settings that are not CLIEngineOptions. - * @param {Record|null} [additionalData.preloadedPlugins] Preloaded plugins. - */ - constructor(providedOptions, { preloadedPlugins } = {}) { - const options = Object.assign( - Object.create(null), - defaultOptions, - { cwd: process.cwd() }, - providedOptions - ); - - if (options.fix === void 0) { - options.fix = false; - } - - const additionalPluginPool = new Map(); - - if (preloadedPlugins) { - for (const [id, plugin] of Object.entries(preloadedPlugins)) { - additionalPluginPool.set(id, plugin); - } - } - - const cacheFilePath = getCacheFile( - options.cacheLocation || options.cacheFile, - options.cwd - ); - const configArrayFactory = new CascadingConfigArrayFactory({ - additionalPluginPool, - baseConfig: options.baseConfig || null, - cliConfig: createConfigDataFromOptions(options), - cwd: options.cwd, - ignorePath: options.ignorePath, - resolvePluginsRelativeTo: options.resolvePluginsRelativeTo, - rulePaths: options.rulePaths, - specificConfigPath: options.configFile, - useEslintrc: options.useEslintrc, - builtInRules, - loadRules, - getEslintRecommendedConfig: () => require("@eslint/js").configs.recommended, - getEslintAllConfig: () => require("@eslint/js").configs.all - }); - const fileEnumerator = new FileEnumerator({ - configArrayFactory, - cwd: options.cwd, - extensions: options.extensions, - globInputPaths: options.globInputPaths, - errorOnUnmatchedPattern: options.errorOnUnmatchedPattern, - ignore: options.ignore - }); - const lintResultCache = - options.cache ? new LintResultCache(cacheFilePath, options.cacheStrategy) : null; - const linter = new Linter({ cwd: options.cwd, configType: "eslintrc" }); - - /** @type {ConfigArray[]} */ - const lastConfigArrays = [configArrayFactory.getConfigArrayForFile()]; - - // Store private data. - internalSlotsMap.set(this, { - additionalPluginPool, - cacheFilePath, - configArrayFactory, - defaultIgnores: IgnorePattern.createDefaultIgnore(options.cwd), - fileEnumerator, - lastConfigArrays, - lintResultCache, - linter, - options - }); - - // setup special filter for fixes - if (options.fix && options.fixTypes && options.fixTypes.length > 0) { - debug(`Using fix types ${options.fixTypes}`); - - // throw an error if any invalid fix types are found - validateFixTypes(options.fixTypes); - - // convert to Set for faster lookup - const fixTypes = new Set(options.fixTypes); - - // save original value of options.fix in case it's a function - const originalFix = (typeof options.fix === "function") - ? options.fix : () => true; - - options.fix = message => shouldMessageBeFixed(message, lastConfigArrays, fixTypes) && originalFix(message); - } - } - - getRules() { - const { lastConfigArrays } = internalSlotsMap.get(this); - - return new Map(function *() { - yield* builtInRules; - - for (const configArray of lastConfigArrays) { - yield* configArray.pluginRules; - } - }()); - } - - /** - * Returns results that only contains errors. - * @param {LintResult[]} results The results to filter. - * @returns {LintResult[]} The filtered results. - */ - static getErrorResults(results) { - const filtered = []; - - results.forEach(result => { - const filteredMessages = result.messages.filter(isErrorMessage); - const filteredSuppressedMessages = result.suppressedMessages.filter(isErrorMessage); - - if (filteredMessages.length > 0) { - filtered.push({ - ...result, - messages: filteredMessages, - suppressedMessages: filteredSuppressedMessages, - errorCount: filteredMessages.length, - warningCount: 0, - fixableErrorCount: result.fixableErrorCount, - fixableWarningCount: 0 - }); - } - }); - - return filtered; - } - - /** - * Outputs fixes from the given results to files. - * @param {LintReport} report The report object created by CLIEngine. - * @returns {void} - */ - static outputFixes(report) { - report.results.filter(result => Object.hasOwn(result, "output")).forEach(result => { - fs.writeFileSync(result.filePath, result.output); - }); - } - - /** - * Resolves the patterns passed into executeOnFiles() into glob-based patterns - * for easier handling. - * @param {string[]} patterns The file patterns passed on the command line. - * @returns {string[]} The equivalent glob patterns. - */ - resolveFileGlobPatterns(patterns) { - const { options } = internalSlotsMap.get(this); - - if (options.globInputPaths === false) { - return patterns.filter(Boolean); - } - - const extensions = (options.extensions || [".js"]).map(ext => ext.replace(/^\./u, "")); - const dirSuffix = `/**/*.{${extensions.join(",")}}`; - - return patterns.filter(Boolean).map(pathname => { - const resolvedPath = path.resolve(options.cwd, pathname); - const newPath = directoryExists(resolvedPath) - ? pathname.replace(/[/\\]$/u, "") + dirSuffix - : pathname; - - return path.normalize(newPath).replace(/\\/gu, "/"); - }); - } - - /** - * Executes the current configuration on an array of file and directory names. - * @param {string[]} patterns An array of file and directory names. - * @throws {Error} As may be thrown by `fs.unlinkSync`. - * @returns {LintReport} The results for all files that were linted. - */ - executeOnFiles(patterns) { - const { - cacheFilePath, - fileEnumerator, - lastConfigArrays, - lintResultCache, - linter, - options: { - allowInlineConfig, - cache, - cwd, - fix, - reportUnusedDisableDirectives - } - } = internalSlotsMap.get(this); - const results = []; - const startTime = Date.now(); - - // Clear the last used config arrays. - lastConfigArrays.length = 0; - - // Delete cache file; should this do here? - if (!cache) { - try { - fs.unlinkSync(cacheFilePath); - } catch (error) { - const errorCode = error && error.code; - - // Ignore errors when no such file exists or file system is read only (and cache file does not exist) - if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !fs.existsSync(cacheFilePath))) { - throw error; - } - } - } - - // Iterate source code files. - for (const { config, filePath, ignored } of fileEnumerator.iterateFiles(patterns)) { - if (ignored) { - results.push(createIgnoreResult(filePath, cwd)); - continue; - } - - /* - * Store used configs for: - * - this method uses to collect used deprecated rules. - * - `getRules()` method uses to collect all loaded rules. - * - `--fix-type` option uses to get the loaded rule's meta data. - */ - if (!lastConfigArrays.includes(config)) { - lastConfigArrays.push(config); - } - - // Skip if there is cached result. - if (lintResultCache) { - const cachedResult = - lintResultCache.getCachedLintResults(filePath, config); - - if (cachedResult) { - const hadMessages = - cachedResult.messages && - cachedResult.messages.length > 0; - - if (hadMessages && fix) { - debug(`Reprocessing cached file to allow autofix: ${filePath}`); - } else { - debug(`Skipping file since it hasn't changed: ${filePath}`); - results.push(cachedResult); - continue; - } - } - } - - // Do lint. - const result = verifyText({ - text: fs.readFileSync(filePath, "utf8"), - filePath, - config, - cwd, - fix, - allowInlineConfig, - reportUnusedDisableDirectives, - fileEnumerator, - linter - }); - - results.push(result); - - /* - * Store the lint result in the LintResultCache. - * NOTE: The LintResultCache will remove the file source and any - * other properties that are difficult to serialize, and will - * hydrate those properties back in on future lint runs. - */ - if (lintResultCache) { - lintResultCache.setCachedLintResults(filePath, config, result); - } - } - - // Persist the cache to disk. - if (lintResultCache) { - lintResultCache.reconcile(); - } - - debug(`Linting complete in: ${Date.now() - startTime}ms`); - let usedDeprecatedRules; - - return { - results, - ...calculateStatsPerRun(results), - - // Initialize it lazily because CLI and `ESLint` API don't use it. - get usedDeprecatedRules() { - if (!usedDeprecatedRules) { - usedDeprecatedRules = Array.from( - iterateRuleDeprecationWarnings(lastConfigArrays) - ); - } - return usedDeprecatedRules; - } - }; - } - - /** - * Executes the current configuration on text. - * @param {string} text A string of JavaScript code to lint. - * @param {string} [filename] An optional string representing the texts filename. - * @param {boolean} [warnIgnored] Always warn when a file is ignored - * @returns {LintReport} The results for the linting. - */ - executeOnText(text, filename, warnIgnored) { - const { - configArrayFactory, - fileEnumerator, - lastConfigArrays, - linter, - options: { - allowInlineConfig, - cwd, - fix, - reportUnusedDisableDirectives - } - } = internalSlotsMap.get(this); - const results = []; - const startTime = Date.now(); - const resolvedFilename = filename && path.resolve(cwd, filename); - - - // Clear the last used config arrays. - lastConfigArrays.length = 0; - if (resolvedFilename && this.isPathIgnored(resolvedFilename)) { - if (warnIgnored) { - results.push(createIgnoreResult(resolvedFilename, cwd)); - } - } else { - const config = configArrayFactory.getConfigArrayForFile( - resolvedFilename || "__placeholder__.js" - ); - - /* - * Store used configs for: - * - this method uses to collect used deprecated rules. - * - `getRules()` method uses to collect all loaded rules. - * - `--fix-type` option uses to get the loaded rule's meta data. - */ - lastConfigArrays.push(config); - - // Do lint. - results.push(verifyText({ - text, - filePath: resolvedFilename, - config, - cwd, - fix, - allowInlineConfig, - reportUnusedDisableDirectives, - fileEnumerator, - linter - })); - } - - debug(`Linting complete in: ${Date.now() - startTime}ms`); - let usedDeprecatedRules; - - return { - results, - ...calculateStatsPerRun(results), - - // Initialize it lazily because CLI and `ESLint` API don't use it. - get usedDeprecatedRules() { - if (!usedDeprecatedRules) { - usedDeprecatedRules = Array.from( - iterateRuleDeprecationWarnings(lastConfigArrays) - ); - } - return usedDeprecatedRules; - } - }; - } - - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine - * configuration for each file it processes. - * @param {string} filePath The path of the file to retrieve a config object for. - * @throws {Error} If filepath a directory path. - * @returns {ConfigData} A configuration object for the file. - */ - getConfigForFile(filePath) { - const { configArrayFactory, options } = internalSlotsMap.get(this); - const absolutePath = path.resolve(options.cwd, filePath); - - if (directoryExists(absolutePath)) { - throw Object.assign( - new Error("'filePath' should not be a directory path."), - { messageTemplate: "print-config-with-directory-path" } - ); - } - - return configArrayFactory - .getConfigArrayForFile(absolutePath) - .extractConfig(absolutePath) - .toCompatibleObjectAsConfigFileContent(); - } - - /** - * Checks if a given path is ignored by ESLint. - * @param {string} filePath The path of the file to check. - * @returns {boolean} Whether or not the given path is ignored. - */ - isPathIgnored(filePath) { - const { - configArrayFactory, - defaultIgnores, - options: { cwd, ignore } - } = internalSlotsMap.get(this); - const absolutePath = path.resolve(cwd, filePath); - - if (ignore) { - const config = configArrayFactory - .getConfigArrayForFile(absolutePath) - .extractConfig(absolutePath); - const ignores = config.ignores || defaultIgnores; - - return ignores(absolutePath); - } - - return defaultIgnores(absolutePath); - } - - /** - * Returns the formatter representing the given format or null if the `format` is not a string. - * @param {string} [format] The name of the format to load or the path to a - * custom formatter. - * @throws {any} As may be thrown by requiring of formatter - * @returns {(FormatterFunction|null)} The formatter function or null if the `format` is not a string. - */ - getFormatter(format) { - - // default is stylish - const resolvedFormatName = format || "stylish"; - - // only strings are valid formatters - if (typeof resolvedFormatName === "string") { - - // replace \ with / for Windows compatibility - const normalizedFormatName = resolvedFormatName.replace(/\\/gu, "/"); - - const slots = internalSlotsMap.get(this); - const cwd = slots ? slots.options.cwd : process.cwd(); - const namespace = naming.getNamespaceFromTerm(normalizedFormatName); - - let formatterPath; - - // if there's a slash, then it's a file (TODO: this check seems dubious for scoped npm packages) - if (!namespace && normalizedFormatName.includes("/")) { - formatterPath = path.resolve(cwd, normalizedFormatName); - } else { - try { - const npmFormat = naming.normalizePackageName(normalizedFormatName, "eslint-formatter"); - - formatterPath = ModuleResolver.resolve(npmFormat, path.join(cwd, "__placeholder__.js")); - } catch { - formatterPath = path.resolve(__dirname, "formatters", normalizedFormatName); - } - } - - try { - return require(formatterPath); - } catch (ex) { - if (removedFormatters.has(format)) { - ex.message = `The ${format} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${format}\``; - } else { - ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; - } - throw ex; - } - - } else { - return null; - } - } -} - -CLIEngine.version = pkg.version; -CLIEngine.getFormatter = CLIEngine.prototype.getFormatter; - -module.exports = { - CLIEngine, - - /** - * Get the internal slots of a given CLIEngine instance for tests. - * @param {CLIEngine} instance The CLIEngine instance to get. - * @returns {CLIEngineInternalSlots} The internal slots. - */ - getCLIEngineInternalSlots(instance) { - return internalSlotsMap.get(instance); - } -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/file-enumerator.js b/graphql/node_modules/eslint/lib/cli-engine/file-enumerator.js deleted file mode 100644 index da5d1039..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/file-enumerator.js +++ /dev/null @@ -1,547 +0,0 @@ -/** - * @fileoverview `FileEnumerator` class. - * - * `FileEnumerator` class has two responsibilities: - * - * 1. Find target files by processing glob patterns. - * 2. Tie each target file and appropriate configuration. - * - * It provides a method: - * - * - `iterateFiles(patterns)` - * Iterate files which are matched by given patterns together with the - * corresponded configuration. This is for `CLIEngine#executeOnFiles()`. - * While iterating files, it loads the configuration file of each directory - * before iterate files on the directory, so we can use the configuration - * files to determine target files. - * - * @example - * const enumerator = new FileEnumerator(); - * const linter = new Linter(); - * - * for (const { config, filePath } of enumerator.iterateFiles(["*.js"])) { - * const code = fs.readFileSync(filePath, "utf8"); - * const messages = linter.verify(code, config, filePath); - * - * console.log(messages); - * } - * - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const fs = require("node:fs"); -const path = require("node:path"); -const getGlobParent = require("glob-parent"); -const isGlob = require("is-glob"); -const escapeRegExp = require("escape-string-regexp"); -const { Minimatch } = require("minimatch"); - -const { - Legacy: { - IgnorePattern, - CascadingConfigArrayFactory - } -} = require("@eslint/eslintrc"); -const debug = require("debug")("eslint:file-enumerator"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const minimatchOpts = { dot: true, matchBase: true }; -const dotfilesPattern = /(?:(?:^\.)|(?:[/\\]\.))[^/\\.].*/u; -const NONE = 0; -const IGNORED_SILENTLY = 1; -const IGNORED = 2; - -// For VSCode intellisense -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} FileEnumeratorOptions - * @property {CascadingConfigArrayFactory} [configArrayFactory] The factory for config arrays. - * @property {string} [cwd] The base directory to start lookup. - * @property {string[]} [extensions] The extensions to match files for directory patterns. - * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} [ignore] The flag to check ignored files. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - */ - -/** - * @typedef {Object} FileAndConfig - * @property {string} filePath The path to a target file. - * @property {ConfigArray} config The config entries of that file. - * @property {boolean} ignored If `true` then this file should be ignored and warned because it was directly specified. - */ - -/** - * @typedef {Object} FileEntry - * @property {string} filePath The path to a target file. - * @property {ConfigArray} config The config entries of that file. - * @property {NONE|IGNORED_SILENTLY|IGNORED} flag The flag. - * - `NONE` means the file is a target file. - * - `IGNORED_SILENTLY` means the file should be ignored silently. - * - `IGNORED` means the file should be ignored and warned because it was directly specified. - */ - -/** - * @typedef {Object} FileEnumeratorInternalSlots - * @property {CascadingConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {RegExp|null} extensionRegExp The RegExp to test if a string ends with specific file extensions. - * @property {boolean} globInputPaths Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} ignoreFlag The flag to check ignored files. - * @property {(filePath:string, dot:boolean) => boolean} defaultIgnores The default predicate function to ignore files. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Check if a string is a glob pattern or not. - * @param {string} pattern A glob pattern. - * @returns {boolean} `true` if the string is a glob pattern. - */ -function isGlobPattern(pattern) { - return isGlob(path.sep === "\\" ? pattern.replace(/\\/gu, "/") : pattern); -} - -/** - * Get stats of a given path. - * @param {string} filePath The path to target file. - * @throws {Error} As may be thrown by `fs.statSync`. - * @returns {fs.Stats|null} The stats. - * @private - */ -function statSafeSync(filePath) { - try { - return fs.statSync(filePath); - } catch (error) { - - /* c8 ignore next */ - if (error.code !== "ENOENT") { - throw error; - } - return null; - } -} - -/** - * Get filenames in a given path to a directory. - * @param {string} directoryPath The path to target directory. - * @throws {Error} As may be thrown by `fs.readdirSync`. - * @returns {import("fs").Dirent[]} The filenames. - * @private - */ -function readdirSafeSync(directoryPath) { - try { - return fs.readdirSync(directoryPath, { withFileTypes: true }); - } catch (error) { - - /* c8 ignore next */ - if (error.code !== "ENOENT") { - throw error; - } - return []; - } -} - -/** - * Create a `RegExp` object to detect extensions. - * @param {string[] | null} extensions The extensions to create. - * @returns {RegExp | null} The created `RegExp` object or null. - */ -function createExtensionRegExp(extensions) { - if (extensions) { - const normalizedExts = extensions.map(ext => escapeRegExp( - ext.startsWith(".") - ? ext.slice(1) - : ext - )); - - return new RegExp( - `.\\.(?:${normalizedExts.join("|")})$`, - "u" - ); - } - return null; -} - -/** - * The error type when no files match a glob. - */ -class NoFilesFoundError extends Error { - - /** - * @param {string} pattern The glob pattern which was not found. - * @param {boolean} globDisabled If `true` then the pattern was a glob pattern, but glob was disabled. - */ - constructor(pattern, globDisabled) { - super(`No files matching '${pattern}' were found${globDisabled ? " (glob was disabled)" : ""}.`); - this.messageTemplate = "file-not-found"; - this.messageData = { pattern, globDisabled }; - } -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class AllFilesIgnoredError extends Error { - - /** - * @param {string} pattern The glob pattern which was not found. - */ - constructor(pattern) { - super(`All files matched by '${pattern}' are ignored.`); - this.messageTemplate = "all-files-ignored"; - this.messageData = { pattern }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class FileEnumerator { - - /** - * Initialize this enumerator. - * @param {FileEnumeratorOptions} options The options. - */ - constructor({ - cwd = process.cwd(), - configArrayFactory = new CascadingConfigArrayFactory({ - cwd, - getEslintRecommendedConfig: () => require("@eslint/js").configs.recommended, - getEslintAllConfig: () => require("@eslint/js").configs.all - }), - extensions = null, - globInputPaths = true, - errorOnUnmatchedPattern = true, - ignore = true - } = {}) { - internalSlotsMap.set(this, { - configArrayFactory, - cwd, - defaultIgnores: IgnorePattern.createDefaultIgnore(cwd), - extensionRegExp: createExtensionRegExp(extensions), - globInputPaths, - errorOnUnmatchedPattern, - ignoreFlag: ignore - }); - } - - /** - * Check if a given file is target or not. - * @param {string} filePath The path to a candidate file. - * @param {ConfigArray} [providedConfig] Optional. The configuration for the file. - * @returns {boolean} `true` if the file is a target. - */ - isTargetPath(filePath, providedConfig) { - const { - configArrayFactory, - extensionRegExp - } = internalSlotsMap.get(this); - - // If `--ext` option is present, use it. - if (extensionRegExp) { - return extensionRegExp.test(filePath); - } - - // `.js` file is target by default. - if (filePath.endsWith(".js")) { - return true; - } - - // use `overrides[].files` to check additional targets. - const config = - providedConfig || - configArrayFactory.getConfigArrayForFile( - filePath, - { ignoreNotFoundError: true } - ); - - return config.isAdditionalTargetPath(filePath); - } - - /** - * Iterate files which are matched by given glob patterns. - * @param {string|string[]} patternOrPatterns The glob patterns to iterate files. - * @throws {NoFilesFoundError|AllFilesIgnoredError} On an unmatched pattern. - * @returns {IterableIterator} The found files. - */ - *iterateFiles(patternOrPatterns) { - const { globInputPaths, errorOnUnmatchedPattern } = internalSlotsMap.get(this); - const patterns = Array.isArray(patternOrPatterns) - ? patternOrPatterns - : [patternOrPatterns]; - - debug("Start to iterate files: %o", patterns); - - // The set of paths to remove duplicate. - const set = new Set(); - - for (const pattern of patterns) { - let foundRegardlessOfIgnored = false; - let found = false; - - // Skip empty string. - if (!pattern) { - continue; - } - - // Iterate files of this pattern. - for (const { config, filePath, flag } of this._iterateFiles(pattern)) { - foundRegardlessOfIgnored = true; - if (flag === IGNORED_SILENTLY) { - continue; - } - found = true; - - // Remove duplicate paths while yielding paths. - if (!set.has(filePath)) { - set.add(filePath); - yield { - config, - filePath, - ignored: flag === IGNORED - }; - } - } - - // Raise an error if any files were not found. - if (errorOnUnmatchedPattern) { - if (!foundRegardlessOfIgnored) { - throw new NoFilesFoundError( - pattern, - !globInputPaths && isGlob(pattern) - ); - } - if (!found) { - throw new AllFilesIgnoredError(pattern); - } - } - } - - debug(`Complete iterating files: ${JSON.stringify(patterns)}`); - } - - /** - * Iterate files which are matched by a given glob pattern. - * @param {string} pattern The glob pattern to iterate files. - * @returns {IterableIterator} The found files. - */ - _iterateFiles(pattern) { - const { cwd, globInputPaths } = internalSlotsMap.get(this); - const absolutePath = path.resolve(cwd, pattern); - const isDot = dotfilesPattern.test(pattern); - const stat = statSafeSync(absolutePath); - - if (stat && stat.isDirectory()) { - return this._iterateFilesWithDirectory(absolutePath, isDot); - } - if (stat && stat.isFile()) { - return this._iterateFilesWithFile(absolutePath); - } - if (globInputPaths && isGlobPattern(pattern)) { - return this._iterateFilesWithGlob(pattern, isDot); - } - - return []; - } - - /** - * Iterate a file which is matched by a given path. - * @param {string} filePath The path to the target file. - * @returns {IterableIterator} The found files. - * @private - */ - _iterateFilesWithFile(filePath) { - debug(`File: ${filePath}`); - - const { configArrayFactory } = internalSlotsMap.get(this); - const config = configArrayFactory.getConfigArrayForFile(filePath); - const ignored = this._isIgnoredFile(filePath, { config, direct: true }); - const flag = ignored ? IGNORED : NONE; - - return [{ config, filePath, flag }]; - } - - /** - * Iterate files in a given path. - * @param {string} directoryPath The path to the target directory. - * @param {boolean} dotfiles If `true` then it doesn't skip dot files by default. - * @returns {IterableIterator} The found files. - * @private - */ - _iterateFilesWithDirectory(directoryPath, dotfiles) { - debug(`Directory: ${directoryPath}`); - - return this._iterateFilesRecursive( - directoryPath, - { dotfiles, recursive: true, selector: null } - ); - } - - /** - * Iterate files which are matched by a given glob pattern. - * @param {string} pattern The glob pattern to iterate files. - * @param {boolean} dotfiles If `true` then it doesn't skip dot files by default. - * @returns {IterableIterator} The found files. - * @private - */ - _iterateFilesWithGlob(pattern, dotfiles) { - debug(`Glob: ${pattern}`); - - const { cwd } = internalSlotsMap.get(this); - const directoryPath = path.resolve(cwd, getGlobParent(pattern)); - const absolutePath = path.resolve(cwd, pattern); - const globPart = absolutePath.slice(directoryPath.length + 1); - - /* - * recursive if there are `**` or path separators in the glob part. - * Otherwise, patterns such as `src/*.js`, it doesn't need recursive. - */ - const recursive = /\*\*|\/|\\/u.test(globPart); - const selector = new Minimatch(absolutePath, minimatchOpts); - - debug(`recursive? ${recursive}`); - - return this._iterateFilesRecursive( - directoryPath, - { dotfiles, recursive, selector } - ); - } - - /** - * Iterate files in a given path. - * @param {string} directoryPath The path to the target directory. - * @param {Object} options The options to iterate files. - * @param {boolean} [options.dotfiles] If `true` then it doesn't skip dot files by default. - * @param {boolean} [options.recursive] If `true` then it dives into sub directories. - * @param {InstanceType} [options.selector] The matcher to choose files. - * @returns {IterableIterator} The found files. - * @private - */ - *_iterateFilesRecursive(directoryPath, options) { - debug(`Enter the directory: ${directoryPath}`); - const { configArrayFactory } = internalSlotsMap.get(this); - - /** @type {ConfigArray|null} */ - let config = null; - - // Enumerate the files of this directory. - for (const entry of readdirSafeSync(directoryPath)) { - const filePath = path.join(directoryPath, entry.name); - const fileInfo = entry.isSymbolicLink() ? statSafeSync(filePath) : entry; - - if (!fileInfo) { - continue; - } - - // Check if the file is matched. - if (fileInfo.isFile()) { - if (!config) { - config = configArrayFactory.getConfigArrayForFile( - filePath, - - /* - * We must ignore `ConfigurationNotFoundError` at this - * point because we don't know if target files exist in - * this directory. - */ - { ignoreNotFoundError: true } - ); - } - const matched = options.selector - - // Started with a glob pattern; choose by the pattern. - ? options.selector.match(filePath) - - // Started with a directory path; choose by file extensions. - : this.isTargetPath(filePath, config); - - if (matched) { - const ignored = this._isIgnoredFile(filePath, { ...options, config }); - const flag = ignored ? IGNORED_SILENTLY : NONE; - - debug(`Yield: ${entry.name}${ignored ? " but ignored" : ""}`); - yield { - config: configArrayFactory.getConfigArrayForFile(filePath), - filePath, - flag - }; - } else { - debug(`Didn't match: ${entry.name}`); - } - - // Dive into the sub directory. - } else if (options.recursive && fileInfo.isDirectory()) { - if (!config) { - config = configArrayFactory.getConfigArrayForFile( - filePath, - { ignoreNotFoundError: true } - ); - } - const ignored = this._isIgnoredFile( - filePath + path.sep, - { ...options, config } - ); - - if (!ignored) { - yield* this._iterateFilesRecursive(filePath, options); - } - } - } - - debug(`Leave the directory: ${directoryPath}`); - } - - /** - * Check if a given file should be ignored. - * @param {string} filePath The path to a file to check. - * @param {Object} options Options - * @param {ConfigArray} [options.config] The config for this file. - * @param {boolean} [options.dotfiles] If `true` then this is not ignore dot files by default. - * @param {boolean} [options.direct] If `true` then this is a direct specified file. - * @returns {boolean} `true` if the file should be ignored. - * @private - */ - _isIgnoredFile(filePath, { - config: providedConfig, - dotfiles = false, - direct = false - }) { - const { - configArrayFactory, - defaultIgnores, - ignoreFlag - } = internalSlotsMap.get(this); - - if (ignoreFlag) { - const config = - providedConfig || - configArrayFactory.getConfigArrayForFile( - filePath, - { ignoreNotFoundError: true } - ); - const ignores = - config.extractConfig(filePath).ignores || defaultIgnores; - - return ignores(filePath, dotfiles); - } - - return !direct && defaultIgnores(filePath, dotfiles); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { FileEnumerator }; diff --git a/graphql/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json b/graphql/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json deleted file mode 100644 index 4cc61ae3..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "name": "html", - "description": "Outputs results to HTML. The `html` formatter is useful for visual presentation in the browser." - }, - { - "name": "json-with-metadata", - "description": "Outputs JSON-serialized results. The `json-with-metadata` provides the same linting results as the [`json`](#json) formatter with additional metadata about the rules applied. The linting results are included in the `results` property and the rules metadata is included in the `metadata` property.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint." - }, - { - "name": "json", - "description": "Outputs JSON-serialized results. The `json` formatter is useful when you want to programmatically work with the CLI's linting results.\n\nAlternatively, you can use the [ESLint Node.js API](../../integrate/nodejs-api) to programmatically use ESLint." - }, - { - "name": "stylish", - "description": "Human-readable output format. This is the default formatter." - } -] diff --git a/graphql/node_modules/eslint/lib/cli-engine/formatters/html.js b/graphql/node_modules/eslint/lib/cli-engine/formatters/html.js deleted file mode 100644 index 1aa66fce..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/formatters/html.js +++ /dev/null @@ -1,351 +0,0 @@ -/** - * @fileoverview HTML reporter - * @author Julian Laval - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const encodeHTML = (function() { - const encodeHTMLRules = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - const matchHTML = /[&<>"']/ug; - - return function(code) { - return code - ? code.toString().replace(matchHTML, m => encodeHTMLRules[m] || m) - : ""; - }; -}()); - -/** - * Get the final HTML document. - * @param {Object} it data for the document. - * @returns {string} HTML document. - */ -function pageTemplate(it) { - const { reportColor, reportSummary, date, results } = it; - - return ` - - - - - ESLint Report - - - - - -
-

ESLint Report

-
- ${reportSummary} - Generated on ${date} -
-
- - - ${results} - -
- - - -`.trimStart(); -} - -/** - * Given a word and a count, append an s if count is not one. - * @param {string} word A word in its singular form. - * @param {int} count A number controlling whether word should be pluralized. - * @returns {string} The original word with an s on the end if count is not one. - */ -function pluralize(word, count) { - return (count === 1 ? word : `${word}s`); -} - -/** - * Renders text along the template of x problems (x errors, x warnings) - * @param {string} totalErrors Total errors - * @param {string} totalWarnings Total warnings - * @returns {string} The formatted string, pluralized where necessary - */ -function renderSummary(totalErrors, totalWarnings) { - const totalProblems = totalErrors + totalWarnings; - let renderedText = `${totalProblems} ${pluralize("problem", totalProblems)}`; - - if (totalProblems !== 0) { - renderedText += ` (${totalErrors} ${pluralize("error", totalErrors)}, ${totalWarnings} ${pluralize("warning", totalWarnings)})`; - } - return renderedText; -} - -/** - * Get the color based on whether there are errors/warnings... - * @param {string} totalErrors Total errors - * @param {string} totalWarnings Total warnings - * @returns {int} The color code (0 = green, 1 = yellow, 2 = red) - */ -function renderColor(totalErrors, totalWarnings) { - if (totalErrors !== 0) { - return 2; - } - if (totalWarnings !== 0) { - return 1; - } - return 0; -} - -/** - * Get HTML (table row) describing a single message. - * @param {Object} it data for the message. - * @returns {string} HTML (table row) describing the message. - */ -function messageTemplate(it) { - const { - parentIndex, - lineNumber, - columnNumber, - severityNumber, - severityName, - message, - ruleUrl, - ruleId - } = it; - - return ` - - ${lineNumber}:${columnNumber} - ${severityName} - ${encodeHTML(message)} - - ${ruleId ? ruleId : ""} - - -`.trimStart(); -} - -/** - * Get HTML (table rows) describing the messages. - * @param {Array} messages Messages. - * @param {int} parentIndex Index of the parent HTML row. - * @param {Object} rulesMeta Dictionary containing metadata for each rule executed by the analysis. - * @returns {string} HTML (table rows) describing the messages. - */ -function renderMessages(messages, parentIndex, rulesMeta) { - - /** - * Get HTML (table row) describing a message. - * @param {Object} message Message. - * @returns {string} HTML (table row) describing a message. - */ - return messages.map(message => { - const lineNumber = message.line || 0; - const columnNumber = message.column || 0; - let ruleUrl; - - if (rulesMeta) { - const meta = rulesMeta[message.ruleId]; - - if (meta && meta.docs && meta.docs.url) { - ruleUrl = meta.docs.url; - } - } - - return messageTemplate({ - parentIndex, - lineNumber, - columnNumber, - severityNumber: message.severity, - severityName: message.severity === 1 ? "Warning" : "Error", - message: message.message, - ruleId: message.ruleId, - ruleUrl - }); - }).join("\n"); -} - -/** - * Get HTML (table row) describing the result for a single file. - * @param {Object} it data for the file. - * @returns {string} HTML (table row) describing the result for the file. - */ -function resultTemplate(it) { - const { color, index, filePath, summary } = it; - - return ` - - - [+] ${encodeHTML(filePath)} - ${encodeHTML(summary)} - - -`.trimStart(); -} - -/** - * Render the results. - * @param {Array} results Test results. - * @param {Object} rulesMeta Dictionary containing metadata for each rule executed by the analysis. - * @returns {string} HTML string describing the results. - */ -function renderResults(results, rulesMeta) { - return results.map((result, index) => resultTemplate({ - index, - color: renderColor(result.errorCount, result.warningCount), - filePath: result.filePath, - summary: renderSummary(result.errorCount, result.warningCount) - }) + renderMessages(result.messages, index, rulesMeta)).join("\n"); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results, data) { - let totalErrors, - totalWarnings; - - const metaData = data ? data.rulesMeta : {}; - - totalErrors = 0; - totalWarnings = 0; - - // Iterate over results to get totals - results.forEach(result => { - totalErrors += result.errorCount; - totalWarnings += result.warningCount; - }); - - return pageTemplate({ - date: new Date(), - reportColor: renderColor(totalErrors, totalWarnings), - reportSummary: renderSummary(totalErrors, totalWarnings), - results: renderResults(results, metaData) - }); -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js b/graphql/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js deleted file mode 100644 index 68994715..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @fileoverview JSON reporter, including rules metadata - * @author Chris Meyer - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results, data) { - return JSON.stringify({ - results, - metadata: data - }); -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/formatters/json.js b/graphql/node_modules/eslint/lib/cli-engine/formatters/json.js deleted file mode 100644 index 82138af1..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/formatters/json.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview JSON reporter - * @author Burak Yigit Kaya aka BYK - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - return JSON.stringify(results); -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/formatters/stylish.js b/graphql/node_modules/eslint/lib/cli-engine/formatters/stylish.js deleted file mode 100644 index a808448b..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/formatters/stylish.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * @fileoverview Stylish reporter - * @author Sindre Sorhus - */ -"use strict"; - -const chalk = require("chalk"), - stripAnsi = require("strip-ansi"), - table = require("text-table"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Given a word and a count, append an s if count is not one. - * @param {string} word A word in its singular form. - * @param {int} count A number controlling whether word should be pluralized. - * @returns {string} The original word with an s on the end if count is not one. - */ -function pluralize(word, count) { - return (count === 1 ? word : `${word}s`); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = function(results) { - - let output = "\n", - errorCount = 0, - warningCount = 0, - fixableErrorCount = 0, - fixableWarningCount = 0, - summaryColor = "yellow"; - - results.forEach(result => { - const messages = result.messages; - - if (messages.length === 0) { - return; - } - - errorCount += result.errorCount; - warningCount += result.warningCount; - fixableErrorCount += result.fixableErrorCount; - fixableWarningCount += result.fixableWarningCount; - - output += `${chalk.underline(result.filePath)}\n`; - - output += `${table( - messages.map(message => { - let messageType; - - if (message.fatal || message.severity === 2) { - messageType = chalk.red("error"); - summaryColor = "red"; - } else { - messageType = chalk.yellow("warning"); - } - - return [ - "", - message.line || 0, - message.column || 0, - messageType, - message.message.replace(/([^ ])\.$/u, "$1"), - chalk.dim(message.ruleId || "") - ]; - }), - { - align: ["", "r", "l"], - stringLength(str) { - return stripAnsi(str).length; - } - } - ).split("\n").map(el => el.replace(/(\d+)\s+(\d+)/u, (m, p1, p2) => chalk.dim(`${p1}:${p2}`))).join("\n")}\n\n`; - }); - - const total = errorCount + warningCount; - - if (total > 0) { - output += chalk[summaryColor].bold([ - "\u2716 ", total, pluralize(" problem", total), - " (", errorCount, pluralize(" error", errorCount), ", ", - warningCount, pluralize(" warning", warningCount), ")\n" - ].join("")); - - if (fixableErrorCount > 0 || fixableWarningCount > 0) { - output += chalk[summaryColor].bold([ - " ", fixableErrorCount, pluralize(" error", fixableErrorCount), " and ", - fixableWarningCount, pluralize(" warning", fixableWarningCount), - " potentially fixable with the `--fix` option.\n" - ].join("")); - } - } - - // Resets output color, for prevent change on top level - return total > 0 ? chalk.reset(output) : ""; -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/hash.js b/graphql/node_modules/eslint/lib/cli-engine/hash.js deleted file mode 100644 index 8e467734..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/hash.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * @fileoverview Defining the hashing function in one place. - * @author Michael Ficarra - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const murmur = require("imurmurhash"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -/** - * hash the given string - * @param {string} str the string to hash - * @returns {string} the hash - */ -function hash(str) { - return murmur(str).result().toString(36); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = hash; diff --git a/graphql/node_modules/eslint/lib/cli-engine/index.js b/graphql/node_modules/eslint/lib/cli-engine/index.js deleted file mode 100644 index 52e45a6d..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -const { CLIEngine } = require("./cli-engine"); - -module.exports = { - CLIEngine -}; diff --git a/graphql/node_modules/eslint/lib/cli-engine/lint-result-cache.js b/graphql/node_modules/eslint/lib/cli-engine/lint-result-cache.js deleted file mode 100644 index 75e770f4..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/lint-result-cache.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * @fileoverview Utility for caching lint results. - * @author Kevin Partington - */ -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const assert = require("node:assert"); -const fs = require("node:fs"); -const fileEntryCache = require("file-entry-cache"); -const stringify = require("json-stable-stringify-without-jsonify"); -const pkg = require("../../package.json"); -const hash = require("./hash"); - -const debug = require("debug")("eslint:lint-result-cache"); - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const configHashCache = new WeakMap(); -const nodeVersion = process && process.version; - -const validCacheStrategies = ["metadata", "content"]; -const invalidCacheStrategyErrorMessage = `Cache strategy must be one of: ${validCacheStrategies - .map(strategy => `"${strategy}"`) - .join(", ")}`; - -/** - * Tests whether a provided cacheStrategy is valid - * @param {string} cacheStrategy The cache strategy to use - * @returns {boolean} true if `cacheStrategy` is one of `validCacheStrategies`; false otherwise - */ -function isValidCacheStrategy(cacheStrategy) { - return ( - validCacheStrategies.includes(cacheStrategy) - ); -} - -/** - * Calculates the hash of the config - * @param {ConfigArray} config The config. - * @returns {string} The hash of the config - */ -function hashOfConfigFor(config) { - if (!configHashCache.has(config)) { - configHashCache.set(config, hash(`${pkg.version}_${nodeVersion}_${stringify(config)}`)); - } - - return configHashCache.get(config); -} - -//----------------------------------------------------------------------------- -// Public Interface -//----------------------------------------------------------------------------- - -/** - * Lint result cache. This wraps around the file-entry-cache module, - * transparently removing properties that are difficult or expensive to - * serialize and adding them back in on retrieval. - */ -class LintResultCache { - - /** - * Creates a new LintResultCache instance. - * @param {string} cacheFileLocation The cache file location. - * @param {"metadata" | "content"} cacheStrategy The cache strategy to use. - */ - constructor(cacheFileLocation, cacheStrategy) { - assert(cacheFileLocation, "Cache file location is required"); - assert(cacheStrategy, "Cache strategy is required"); - assert( - isValidCacheStrategy(cacheStrategy), - invalidCacheStrategyErrorMessage - ); - - debug(`Caching results to ${cacheFileLocation}`); - - const useChecksum = cacheStrategy === "content"; - - debug( - `Using "${cacheStrategy}" strategy to detect changes` - ); - - this.fileEntryCache = fileEntryCache.create( - cacheFileLocation, - void 0, - useChecksum - ); - this.cacheFileLocation = cacheFileLocation; - } - - /** - * Retrieve cached lint results for a given file path, if present in the - * cache. If the file is present and has not been changed, rebuild any - * missing result information. - * @param {string} filePath The file for which to retrieve lint results. - * @param {ConfigArray} config The config of the file. - * @returns {Object|null} The rebuilt lint results, or null if the file is - * changed or not in the filesystem. - */ - getCachedLintResults(filePath, config) { - - /* - * Cached lint results are valid if and only if: - * 1. The file is present in the filesystem - * 2. The file has not changed since the time it was previously linted - * 3. The ESLint configuration has not changed since the time the file - * was previously linted - * If any of these are not true, we will not reuse the lint results. - */ - const fileDescriptor = this.fileEntryCache.getFileDescriptor(filePath); - const hashOfConfig = hashOfConfigFor(config); - const changed = - fileDescriptor.changed || - fileDescriptor.meta.hashOfConfig !== hashOfConfig; - - if (fileDescriptor.notFound) { - debug(`File not found on the file system: ${filePath}`); - return null; - } - - if (changed) { - debug(`Cache entry not found or no longer valid: ${filePath}`); - return null; - } - - const cachedResults = fileDescriptor.meta.results; - - // Just in case, not sure if this can ever happen. - if (!cachedResults) { - return cachedResults; - } - - /* - * Shallow clone the object to ensure that any properties added or modified afterwards - * will not be accidentally stored in the cache file when `reconcile()` is called. - * https://github.com/eslint/eslint/issues/13507 - * All intentional changes to the cache file must be done through `setCachedLintResults()`. - */ - const results = { ...cachedResults }; - - // If source is present but null, need to reread the file from the filesystem. - if (results.source === null) { - debug(`Rereading cached result source from filesystem: ${filePath}`); - results.source = fs.readFileSync(filePath, "utf-8"); - } - - return results; - } - - /** - * Set the cached lint results for a given file path, after removing any - * information that will be both unnecessary and difficult to serialize. - * Avoids caching results with an "output" property (meaning fixes were - * applied), to prevent potentially incorrect results if fixes are not - * written to disk. - * @param {string} filePath The file for which to set lint results. - * @param {ConfigArray} config The config of the file. - * @param {Object} result The lint result to be set for the file. - * @returns {void} - */ - setCachedLintResults(filePath, config, result) { - if (result && Object.hasOwn(result, "output")) { - return; - } - - const fileDescriptor = this.fileEntryCache.getFileDescriptor(filePath); - - if (fileDescriptor && !fileDescriptor.notFound) { - debug(`Updating cached result: ${filePath}`); - - // Serialize the result, except that we want to remove the file source if present. - const resultToSerialize = Object.assign({}, result); - - /* - * Set result.source to null. - * In `getCachedLintResults`, if source is explicitly null, we will - * read the file from the filesystem to set the value again. - */ - if (Object.hasOwn(resultToSerialize, "source")) { - resultToSerialize.source = null; - } - - fileDescriptor.meta.results = resultToSerialize; - fileDescriptor.meta.hashOfConfig = hashOfConfigFor(config); - } - } - - /** - * Persists the in-memory cache to disk. - * @returns {void} - */ - reconcile() { - debug(`Persisting cached results: ${this.cacheFileLocation}`); - this.fileEntryCache.reconcile(); - } -} - -module.exports = LintResultCache; diff --git a/graphql/node_modules/eslint/lib/cli-engine/load-rules.js b/graphql/node_modules/eslint/lib/cli-engine/load-rules.js deleted file mode 100644 index a58f954e..00000000 --- a/graphql/node_modules/eslint/lib/cli-engine/load-rules.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview Module for loading rules from files and directories. - * @author Michael Ficarra - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const fs = require("node:fs"), - path = require("node:path"); - -const rulesDirCache = {}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Load all rule modules from specified directory. - * @param {string} relativeRulesDir Path to rules directory, may be relative. - * @param {string} cwd Current working directory - * @returns {Object} Loaded rule modules. - */ -module.exports = function(relativeRulesDir, cwd) { - const rulesDir = path.resolve(cwd, relativeRulesDir); - - // cache will help performance as IO operation are expensive - if (rulesDirCache[rulesDir]) { - return rulesDirCache[rulesDir]; - } - - const rules = Object.create(null); - - fs.readdirSync(rulesDir).forEach(file => { - if (path.extname(file) !== ".js") { - return; - } - rules[file.slice(0, -3)] = require(path.join(rulesDir, file)); - }); - rulesDirCache[rulesDir] = rules; - - return rules; -}; diff --git a/graphql/node_modules/eslint/lib/cli.js b/graphql/node_modules/eslint/lib/cli.js deleted file mode 100644 index 8ad99b33..00000000 --- a/graphql/node_modules/eslint/lib/cli.js +++ /dev/null @@ -1,552 +0,0 @@ -/** - * @fileoverview Main CLI object. - * @author Nicholas C. Zakas - */ - -"use strict"; - -/* - * NOTE: The CLI object should *not* call process.exit() directly. It should only return - * exit codes. This allows other programs to use the CLI object and still control - * when the program exits. - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const fs = require("node:fs"), - path = require("node:path"), - { promisify } = require("node:util"), - { LegacyESLint } = require("./eslint"), - { ESLint, shouldUseFlatConfig, locateConfigFileToUse } = require("./eslint/eslint"), - createCLIOptions = require("./options"), - log = require("./shared/logging"), - RuntimeInfo = require("./shared/runtime-info"), - { normalizeSeverityToString } = require("./shared/severity"); -const { Legacy: { naming } } = require("@eslint/eslintrc"); -const { ModuleImporter } = require("@humanwhocodes/module-importer"); -const debug = require("debug")("eslint:cli"); - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("./eslint/eslint").ESLintOptions} ESLintOptions */ -/** @typedef {import("./eslint/eslint").LintMessage} LintMessage */ -/** @typedef {import("./eslint/eslint").LintResult} LintResult */ -/** @typedef {import("./options").ParsedCLIOptions} ParsedCLIOptions */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").ResultsMeta} ResultsMeta */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const mkdir = promisify(fs.mkdir); -const stat = promisify(fs.stat); -const writeFile = promisify(fs.writeFile); - -/** - * Loads plugins with the specified names. - * @param {{ "import": (name: string) => Promise }} importer An object with an `import` method called once for each plugin. - * @param {string[]} pluginNames The names of the plugins to be loaded, with or without the "eslint-plugin-" prefix. - * @returns {Promise>} A mapping of plugin short names to implementations. - */ -async function loadPlugins(importer, pluginNames) { - const plugins = {}; - - await Promise.all(pluginNames.map(async pluginName => { - - const longName = naming.normalizePackageName(pluginName, "eslint-plugin"); - const module = await importer.import(longName); - - if (!("default" in module)) { - throw new Error(`"${longName}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`); - } - - const shortName = naming.getShorthandName(pluginName, "eslint-plugin"); - - plugins[shortName] = module.default; - })); - - return plugins; -} - -/** - * Predicate function for whether or not to apply fixes in quiet mode. - * If a message is a warning, do not apply a fix. - * @param {LintMessage} message The lint result. - * @returns {boolean} True if the lint message is an error (and thus should be - * autofixed), false otherwise. - */ -function quietFixPredicate(message) { - return message.severity === 2; -} - -/** - * Predicate function for whether or not to run a rule in quiet mode. - * If a rule is set to warning, do not run it. - * @param {{ ruleId: string; severity: number; }} rule The rule id and severity. - * @returns {boolean} True if the lint rule should run, false otherwise. - */ -function quietRuleFilter(rule) { - return rule.severity === 2; -} - -/** - * Translates the CLI options into the options expected by the ESLint constructor. - * @param {ParsedCLIOptions} cliOptions The CLI options to translate. - * @param {"flat"|"eslintrc"} [configType="eslintrc"] The format of the - * config to generate. - * @returns {Promise} The options object for the ESLint constructor. - * @private - */ -async function translateOptions({ - cache, - cacheFile, - cacheLocation, - cacheStrategy, - config, - configLookup, - env, - errorOnUnmatchedPattern, - eslintrc, - ext, - fix, - fixDryRun, - fixType, - flag, - global, - ignore, - ignorePath, - ignorePattern, - inlineConfig, - parser, - parserOptions, - plugin, - quiet, - reportUnusedDisableDirectives, - reportUnusedDisableDirectivesSeverity, - resolvePluginsRelativeTo, - rule, - rulesdir, - stats, - warnIgnored, - passOnNoPatterns, - maxWarnings -}, configType) { - - let overrideConfig, overrideConfigFile; - const importer = new ModuleImporter(); - - if (configType === "flat") { - overrideConfigFile = (typeof config === "string") ? config : !configLookup; - if (overrideConfigFile === false) { - overrideConfigFile = void 0; - } - - let globals = {}; - - if (global) { - globals = global.reduce((obj, name) => { - if (name.endsWith(":true")) { - obj[name.slice(0, -5)] = "writable"; - } else { - obj[name] = "readonly"; - } - return obj; - }, globals); - } - - overrideConfig = [{ - languageOptions: { - globals, - parserOptions: parserOptions || {} - }, - rules: rule ? rule : {} - }]; - - if (reportUnusedDisableDirectives || reportUnusedDisableDirectivesSeverity !== void 0) { - overrideConfig[0].linterOptions = { - reportUnusedDisableDirectives: reportUnusedDisableDirectives - ? "error" - : normalizeSeverityToString(reportUnusedDisableDirectivesSeverity) - }; - } - - if (parser) { - overrideConfig[0].languageOptions.parser = await importer.import(parser); - } - - if (plugin) { - overrideConfig[0].plugins = await loadPlugins(importer, plugin); - } - - } else { - overrideConfigFile = config; - - overrideConfig = { - env: env && env.reduce((obj, name) => { - obj[name] = true; - return obj; - }, {}), - globals: global && global.reduce((obj, name) => { - if (name.endsWith(":true")) { - obj[name.slice(0, -5)] = "writable"; - } else { - obj[name] = "readonly"; - } - return obj; - }, {}), - ignorePatterns: ignorePattern, - parser, - parserOptions, - plugins: plugin, - rules: rule - }; - } - - const options = { - allowInlineConfig: inlineConfig, - cache, - cacheLocation: cacheLocation || cacheFile, - cacheStrategy, - errorOnUnmatchedPattern, - fix: (fix || fixDryRun) && (quiet ? quietFixPredicate : true), - fixTypes: fixType, - ignore, - overrideConfig, - overrideConfigFile, - passOnNoPatterns - }; - - if (configType === "flat") { - options.ignorePatterns = ignorePattern; - options.stats = stats; - options.warnIgnored = warnIgnored; - options.flags = flag; - - /* - * For performance reasons rules not marked as 'error' are filtered out in quiet mode. As maxWarnings - * requires rules set to 'warn' to be run, we only filter out 'warn' rules if maxWarnings is not specified. - */ - options.ruleFilter = quiet && maxWarnings === -1 ? quietRuleFilter : () => true; - } else { - options.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - options.rulePaths = rulesdir; - options.useEslintrc = eslintrc; - options.extensions = ext; - options.ignorePath = ignorePath; - if (reportUnusedDisableDirectives || reportUnusedDisableDirectivesSeverity !== void 0) { - options.reportUnusedDisableDirectives = reportUnusedDisableDirectives - ? "error" - : normalizeSeverityToString(reportUnusedDisableDirectivesSeverity); - } - } - - return options; -} - -/** - * Count error messages. - * @param {LintResult[]} results The lint results. - * @returns {{errorCount:number;fatalErrorCount:number,warningCount:number}} The number of error messages. - */ -function countErrors(results) { - let errorCount = 0; - let fatalErrorCount = 0; - let warningCount = 0; - - for (const result of results) { - errorCount += result.errorCount; - fatalErrorCount += result.fatalErrorCount; - warningCount += result.warningCount; - } - - return { errorCount, fatalErrorCount, warningCount }; -} - -/** - * Check if a given file path is a directory or not. - * @param {string} filePath The path to a file to check. - * @returns {Promise} `true` if the given path is a directory. - */ -async function isDirectory(filePath) { - try { - return (await stat(filePath)).isDirectory(); - } catch (error) { - if (error.code === "ENOENT" || error.code === "ENOTDIR") { - return false; - } - throw error; - } -} - -/** - * Outputs the results of the linting. - * @param {ESLint} engine The ESLint instance to use. - * @param {LintResult[]} results The results to print. - * @param {string} format The name of the formatter to use or the path to the formatter. - * @param {string} outputFile The path for the output file. - * @param {ResultsMeta} resultsMeta Warning count and max threshold. - * @returns {Promise} True if the printing succeeds, false if not. - * @private - */ -async function printResults(engine, results, format, outputFile, resultsMeta) { - let formatter; - - try { - formatter = await engine.loadFormatter(format); - } catch (e) { - log.error(e.message); - return false; - } - - const output = await formatter.format(results, resultsMeta); - - if (outputFile) { - const filePath = path.resolve(process.cwd(), outputFile); - - if (await isDirectory(filePath)) { - log.error("Cannot write to output file path, it is a directory: %s", outputFile); - return false; - } - - try { - await mkdir(path.dirname(filePath), { recursive: true }); - await writeFile(filePath, output); - } catch (ex) { - log.error("There was a problem writing the output file:\n%s", ex); - return false; - } - } else if (output) { - log.info(output); - } - - return true; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Encapsulates all CLI behavior for eslint. Makes it easier to test as well as - * for other Node.js programs to effectively run the CLI. - */ -const cli = { - - /** - * Calculates the command string for the --inspect-config operation. - * @param {string} configFile The path to the config file to inspect. - * @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. - * @returns {Promise} The command string to execute. - */ - async calculateInspectConfigFlags(configFile, hasUnstableTSConfigFlag) { - - // find the config file - const { - configFilePath, - basePath, - error - } = await locateConfigFileToUse({ cwd: process.cwd(), configFile }, hasUnstableTSConfigFlag); - - if (error) { - throw error; - } - - return ["--config", configFilePath, "--basePath", basePath]; - }, - - /** - * Executes the CLI based on an array of arguments that is passed in. - * @param {string|Array|Object} args The arguments to process. - * @param {string} [text] The text to lint (used for TTY). - * @param {boolean} [allowFlatConfig=true] Whether or not to allow flat config. - * @returns {Promise} The exit code for the operation. - */ - async execute(args, text, allowFlatConfig = true) { - if (Array.isArray(args)) { - debug("CLI args: %o", args.slice(2)); - } - - /* - * Before doing anything, we need to see if we are using a - * flat config file. If so, then we need to change the way command - * line args are parsed. This is temporary, and when we fully - * switch to flat config we can remove this logic. - */ - - const usingFlatConfig = allowFlatConfig && await shouldUseFlatConfig(); - - debug("Using flat config?", usingFlatConfig); - - if (allowFlatConfig && !usingFlatConfig) { - process.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details.", "ESLintRCWarning"); - } - - const CLIOptions = createCLIOptions(usingFlatConfig); - - /** @type {ParsedCLIOptions} */ - let options; - - try { - options = CLIOptions.parse(args); - } catch (error) { - debug("Error parsing CLI options:", error.message); - - let errorMessage = error.message; - - if (usingFlatConfig) { - errorMessage += "\nYou're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details."; - } - - log.error(errorMessage); - return 2; - } - - const files = options._; - const useStdin = typeof text === "string"; - - if (options.help) { - log.info(CLIOptions.generateHelp()); - return 0; - } - if (options.version) { - log.info(RuntimeInfo.version()); - return 0; - } - if (options.envInfo) { - try { - log.info(RuntimeInfo.environment()); - return 0; - } catch (err) { - debug("Error retrieving environment info"); - log.error(err.message); - return 2; - } - } - - if (options.printConfig) { - if (files.length) { - log.error("The --print-config option must be used with exactly one file name."); - return 2; - } - if (useStdin) { - log.error("The --print-config option is not available for piped-in code."); - return 2; - } - - const engine = usingFlatConfig - ? new ESLint(await translateOptions(options, "flat")) - : new LegacyESLint(await translateOptions(options)); - const fileConfig = - await engine.calculateConfigForFile(options.printConfig); - - log.info(JSON.stringify(fileConfig, null, " ")); - return 0; - } - - if (options.inspectConfig) { - - log.info("You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file."); - - try { - const flatOptions = await translateOptions(options, "flat"); - const spawn = require("cross-spawn"); - const flags = await cli.calculateInspectConfigFlags(flatOptions.overrideConfigFile, flatOptions.flags ? flatOptions.flags.includes("unstable_ts_config") : false); - - spawn.sync("npx", ["@eslint/config-inspector@latest", ...flags], { encoding: "utf8", stdio: "inherit" }); - } catch (error) { - log.error(error); - return 2; - } - - return 0; - } - - debug(`Running on ${useStdin ? "text" : "files"}`); - - if (options.fix && options.fixDryRun) { - log.error("The --fix option and the --fix-dry-run option cannot be used together."); - return 2; - } - if (useStdin && options.fix) { - log.error("The --fix option is not available for piped-in code; use --fix-dry-run instead."); - return 2; - } - if (options.fixType && !options.fix && !options.fixDryRun) { - log.error("The --fix-type option requires either --fix or --fix-dry-run."); - return 2; - } - - if (options.reportUnusedDisableDirectives && options.reportUnusedDisableDirectivesSeverity !== void 0) { - log.error("The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together."); - return 2; - } - - const ActiveESLint = usingFlatConfig ? ESLint : LegacyESLint; - const eslintOptions = await translateOptions(options, usingFlatConfig ? "flat" : "eslintrc"); - const engine = new ActiveESLint(eslintOptions); - let results; - - if (useStdin) { - results = await engine.lintText(text, { - filePath: options.stdinFilename, - - // flatConfig respects CLI flag and constructor warnIgnored, eslintrc forces true for backwards compatibility - warnIgnored: usingFlatConfig ? void 0 : true - }); - } else { - results = await engine.lintFiles(files); - } - - if (options.fix) { - debug("Fix mode enabled - applying fixes"); - await ActiveESLint.outputFixes(results); - } - - let resultsToPrint = results; - - if (options.quiet) { - debug("Quiet mode enabled - filtering out warnings"); - resultsToPrint = ActiveESLint.getErrorResults(resultsToPrint); - } - - const resultCounts = countErrors(results); - const tooManyWarnings = options.maxWarnings >= 0 && resultCounts.warningCount > options.maxWarnings; - const resultsMeta = tooManyWarnings - ? { - maxWarningsExceeded: { - maxWarnings: options.maxWarnings, - foundWarnings: resultCounts.warningCount - } - } - : {}; - - if (await printResults(engine, resultsToPrint, options.format, options.outputFile, resultsMeta)) { - - // Errors and warnings from the original unfiltered results should determine the exit code - const shouldExitForFatalErrors = - options.exitOnFatalError && resultCounts.fatalErrorCount > 0; - - if (!resultCounts.errorCount && tooManyWarnings) { - log.error( - "ESLint found too many warnings (maximum: %s).", - options.maxWarnings - ); - } - - if (shouldExitForFatalErrors) { - return 2; - } - - return (resultCounts.errorCount || tooManyWarnings) ? 1 : 0; - } - - return 2; - } -}; - -module.exports = cli; diff --git a/graphql/node_modules/eslint/lib/config/default-config.js b/graphql/node_modules/eslint/lib/config/default-config.js deleted file mode 100644 index fa60fc64..00000000 --- a/graphql/node_modules/eslint/lib/config/default-config.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @fileoverview Default configuration - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const Rules = require("../rules"); - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -exports.defaultConfig = [ - { - plugins: { - "@": { - - languages: { - js: require("../languages/js") - }, - - /* - * Because we try to delay loading rules until absolutely - * necessary, a proxy allows us to hook into the lazy-loading - * aspect of the rules map while still keeping all of the - * relevant configuration inside of the config array. - */ - rules: new Proxy({}, { - get(target, property) { - return Rules.get(property); - }, - - has(target, property) { - return Rules.has(property); - } - }) - } - }, - language: "@/js", - languageOptions: { - sourceType: "module", - ecmaVersion: "latest", - parser: require("espree"), - parserOptions: {} - }, - linterOptions: { - reportUnusedDisableDirectives: 1 - } - }, - - // default ignores are listed here - { - ignores: [ - "**/node_modules/", - ".git/" - ] - }, - - // intentionally empty config to ensure these files are globbed by default - { - files: ["**/*.js", "**/*.mjs"] - }, - { - files: ["**/*.cjs"], - languageOptions: { - sourceType: "commonjs", - ecmaVersion: "latest" - } - } -]; diff --git a/graphql/node_modules/eslint/lib/config/flat-config-array.js b/graphql/node_modules/eslint/lib/config/flat-config-array.js deleted file mode 100644 index 0c3b3cf9..00000000 --- a/graphql/node_modules/eslint/lib/config/flat-config-array.js +++ /dev/null @@ -1,423 +0,0 @@ -/** - * @fileoverview Flat Config Array - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { ConfigArray, ConfigArraySymbol } = require("@eslint/config-array"); -const { flatConfigSchema, hasMethod } = require("./flat-config-schema"); -const { RuleValidator } = require("./rule-validator"); -const { defaultConfig } = require("./default-config"); - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** - * Fields that are considered metadata and not part of the config object. - */ -const META_FIELDS = new Set(["name"]); - -const ruleValidator = new RuleValidator(); - -/** - * Splits a plugin identifier in the form a/b/c into two parts: a/b and c. - * @param {string} identifier The identifier to parse. - * @returns {{objectName: string, pluginName: string}} The parts of the plugin - * name. - */ -function splitPluginIdentifier(identifier) { - const parts = identifier.split("/"); - - return { - objectName: parts.pop(), - pluginName: parts.join("/") - }; -} - -/** - * Returns the name of an object in the config by reading its `meta` key. - * @param {Object} object The object to check. - * @returns {string?} The name of the object if found or `null` if there - * is no name. - */ -function getObjectId(object) { - - // first check old-style name - let name = object.name; - - if (!name) { - - if (!object.meta) { - return null; - } - - name = object.meta.name; - - if (!name) { - return null; - } - } - - // now check for old-style version - let version = object.version; - - if (!version) { - version = object.meta && object.meta.version; - } - - // if there's a version then append that - if (version) { - return `${name}@${version}`; - } - - return name; -} - -/** - * Wraps a config error with details about where the error occurred. - * @param {Error} error The original error. - * @param {number} originalLength The original length of the config array. - * @param {number} baseLength The length of the base config. - * @returns {TypeError} The new error with details. - */ -function wrapConfigErrorWithDetails(error, originalLength, baseLength) { - - let location = "user-defined"; - let configIndex = error.index; - - /* - * A config array is set up in this order: - * 1. Base config - * 2. Original configs - * 3. User-defined configs - * 4. CLI-defined configs - * - * So we need to adjust the index to account for the base config. - * - * - If the index is less than the base length, it's in the base config - * (as specified by `baseConfig` argument to `FlatConfigArray` constructor). - * - If the index is greater than the base length but less than the original - * length + base length, it's in the original config. The original config - * is passed to the `FlatConfigArray` constructor as the first argument. - * - Otherwise, it's in the user-defined config, which is loaded from the - * config file and merged with any command-line options. - */ - if (error.index < baseLength) { - location = "base"; - } else if (error.index < originalLength + baseLength) { - location = "original"; - configIndex = error.index - baseLength; - } else { - configIndex = error.index - originalLength - baseLength; - } - - return new TypeError( - `${error.message.slice(0, -1)} at ${location} index ${configIndex}.`, - { cause: error } - ); -} - -/** - * Converts a languageOptions object to a JSON representation. - * @param {Record} languageOptions The options to create a JSON - * representation of. - * @param {string} objectKey The key of the object being converted. - * @returns {Record} The JSON representation of the languageOptions. - * @throws {TypeError} If a function is found in the languageOptions. - */ -function languageOptionsToJSON(languageOptions, objectKey = "languageOptions") { - - const result = {}; - - for (const [key, value] of Object.entries(languageOptions)) { - if (value) { - if (typeof value === "object") { - const name = getObjectId(value); - - if (name && hasMethod(value)) { - result[key] = name; - } else { - result[key] = languageOptionsToJSON(value, key); - } - continue; - } - - if (typeof value === "function") { - throw new TypeError(`Cannot serialize key "${key}" in ${objectKey}: Function values are not supported.`); - } - - } - - result[key] = value; - } - - return result; -} - -const originalBaseConfig = Symbol("originalBaseConfig"); -const originalLength = Symbol("originalLength"); -const baseLength = Symbol("baseLength"); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * Represents an array containing configuration information for ESLint. - */ -class FlatConfigArray extends ConfigArray { - - /** - * Creates a new instance. - * @param {*[]} configs An array of configuration information. - * @param {{basePath: string, shouldIgnore: boolean, baseConfig: FlatConfig}} options The options - * to use for the config array instance. - */ - constructor(configs, { - basePath, - shouldIgnore = true, - baseConfig = defaultConfig - } = {}) { - super(configs, { - basePath, - schema: flatConfigSchema - }); - - /** - * The original length of the array before any modifications. - * @type {number} - */ - this[originalLength] = this.length; - - if (baseConfig[Symbol.iterator]) { - this.unshift(...baseConfig); - } else { - this.unshift(baseConfig); - } - - /** - * The length of the array after applying the base config. - * @type {number} - */ - this[baseLength] = this.length - this[originalLength]; - - /** - * The base config used to build the config array. - * @type {Array} - */ - this[originalBaseConfig] = baseConfig; - Object.defineProperty(this, originalBaseConfig, { writable: false }); - - /** - * Determines if `ignores` fields should be honored. - * If true, then all `ignores` fields are honored. - * if false, then only `ignores` fields in the baseConfig are honored. - * @type {boolean} - */ - this.shouldIgnore = shouldIgnore; - Object.defineProperty(this, "shouldIgnore", { writable: false }); - } - - /** - * Normalizes the array by calling the superclass method and catching/rethrowing - * any ConfigError exceptions with additional details. - * @param {any} [context] The context to use to normalize the array. - * @returns {Promise} A promise that resolves when the array is normalized. - */ - normalize(context) { - return super.normalize(context) - .catch(error => { - if (error.name === "ConfigError") { - throw wrapConfigErrorWithDetails(error, this[originalLength], this[baseLength]); - } - - throw error; - - }); - } - - /** - * Normalizes the array by calling the superclass method and catching/rethrowing - * any ConfigError exceptions with additional details. - * @param {any} [context] The context to use to normalize the array. - * @returns {FlatConfigArray} The current instance. - * @throws {TypeError} If the config is invalid. - */ - normalizeSync(context) { - - try { - - return super.normalizeSync(context); - - } catch (error) { - - if (error.name === "ConfigError") { - throw wrapConfigErrorWithDetails(error, this[originalLength], this[baseLength]); - } - - throw error; - - } - - } - - /* eslint-disable class-methods-use-this -- Desired as instance method */ - /** - * Replaces a config with another config to allow us to put strings - * in the config array that will be replaced by objects before - * normalization. - * @param {Object} config The config to preprocess. - * @returns {Object} The preprocessed config. - */ - [ConfigArraySymbol.preprocessConfig](config) { - - /* - * If a config object has `ignores` and no other non-meta fields, then it's an object - * for global ignores. If `shouldIgnore` is false, that object shouldn't apply, - * so we'll remove its `ignores`. - */ - if ( - !this.shouldIgnore && - !this[originalBaseConfig].includes(config) && - config.ignores && - Object.keys(config).filter(key => !META_FIELDS.has(key)).length === 1 - ) { - /* eslint-disable-next-line no-unused-vars -- need to strip off other keys */ - const { ignores, ...otherKeys } = config; - - return otherKeys; - } - - return config; - } - - /** - * Finalizes the config by replacing plugin references with their objects - * and validating rule option schemas. - * @param {Object} config The config to finalize. - * @returns {Object} The finalized config. - * @throws {TypeError} If the config is invalid. - */ - [ConfigArraySymbol.finalizeConfig](config) { - - const { plugins, language, languageOptions, processor } = config; - let parserName, processorName, languageName; - let invalidParser = false, - invalidProcessor = false, - invalidLanguage = false; - - // Check parser value - if (languageOptions && languageOptions.parser) { - const { parser } = languageOptions; - - if (typeof parser === "object") { - parserName = getObjectId(parser); - - if (!parserName) { - invalidParser = true; - } - - } else { - invalidParser = true; - } - } - - // Check language value - if (language) { - if (typeof language === "string") { - const { pluginName, objectName: localLanguageName } = splitPluginIdentifier(language); - - languageName = language; - - if (!plugins || !plugins[pluginName] || !plugins[pluginName].languages || !plugins[pluginName].languages[localLanguageName]) { - throw new TypeError(`Key "language": Could not find "${localLanguageName}" in plugin "${pluginName}".`); - } - - config.language = plugins[pluginName].languages[localLanguageName]; - } else { - invalidLanguage = true; - } - - try { - config.language.validateLanguageOptions(config.languageOptions); - } catch (error) { - throw new TypeError(`Key "languageOptions": ${error.message}`, { cause: error }); - } - } - - // Check processor value - if (processor) { - if (typeof processor === "string") { - const { pluginName, objectName: localProcessorName } = splitPluginIdentifier(processor); - - processorName = processor; - - if (!plugins || !plugins[pluginName] || !plugins[pluginName].processors || !plugins[pluginName].processors[localProcessorName]) { - throw new TypeError(`Key "processor": Could not find "${localProcessorName}" in plugin "${pluginName}".`); - } - - config.processor = plugins[pluginName].processors[localProcessorName]; - } else if (typeof processor === "object") { - processorName = getObjectId(processor); - - if (!processorName) { - invalidProcessor = true; - } - - } else { - invalidProcessor = true; - } - } - - ruleValidator.validate(config); - - // apply special logic for serialization into JSON - /* eslint-disable object-shorthand -- shorthand would change "this" value */ - Object.defineProperty(config, "toJSON", { - value: function() { - - if (invalidParser) { - throw new Error("Could not serialize parser object (missing 'meta' object)."); - } - - if (invalidProcessor) { - throw new Error("Could not serialize processor object (missing 'meta' object)."); - } - - if (invalidLanguage) { - throw new Error("Caching is not supported when language is an object."); - } - - return { - ...this, - plugins: Object.entries(plugins).map(([namespace, plugin]) => { - - const pluginId = getObjectId(plugin); - - if (!pluginId) { - return namespace; - } - - return `${namespace}:${pluginId}`; - }), - language: languageName, - languageOptions: languageOptionsToJSON(languageOptions), - processor: processorName - }; - } - }); - /* eslint-enable object-shorthand -- ok to enable now */ - - return config; - } - /* eslint-enable class-methods-use-this -- Desired as instance method */ - -} - -exports.FlatConfigArray = FlatConfigArray; diff --git a/graphql/node_modules/eslint/lib/config/flat-config-helpers.js b/graphql/node_modules/eslint/lib/config/flat-config-helpers.js deleted file mode 100644 index 02802559..00000000 --- a/graphql/node_modules/eslint/lib/config/flat-config-helpers.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @fileoverview Shared functions to work with configs. - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Rule} Rule */ - -//------------------------------------------------------------------------------ -// Private Members -//------------------------------------------------------------------------------ - -// JSON schema that disallows passing any options -const noOptionsSchema = Object.freeze({ - type: "array", - minItems: 0, - maxItems: 0 -}); - -//----------------------------------------------------------------------------- -// Functions -//----------------------------------------------------------------------------- - -/** - * Parses a ruleId into its plugin and rule parts. - * @param {string} ruleId The rule ID to parse. - * @returns {{pluginName:string,ruleName:string}} The plugin and rule - * parts of the ruleId; - */ -function parseRuleId(ruleId) { - let pluginName, ruleName; - - // distinguish between core rules and plugin rules - if (ruleId.includes("/")) { - - // mimic scoped npm packages - if (ruleId.startsWith("@")) { - pluginName = ruleId.slice(0, ruleId.lastIndexOf("/")); - } else { - pluginName = ruleId.slice(0, ruleId.indexOf("/")); - } - - ruleName = ruleId.slice(pluginName.length + 1); - } else { - pluginName = "@"; - ruleName = ruleId; - } - - return { - pluginName, - ruleName - }; -} - -/** - * Retrieves a rule instance from a given config based on the ruleId. - * @param {string} ruleId The rule ID to look for. - * @param {FlatConfig} config The config to search. - * @returns {import("../shared/types").Rule|undefined} The rule if found - * or undefined if not. - */ -function getRuleFromConfig(ruleId, config) { - - const { pluginName, ruleName } = parseRuleId(ruleId); - - const plugin = config.plugins && config.plugins[pluginName]; - const rule = plugin && plugin.rules && plugin.rules[ruleName]; - - return rule; -} - -/** - * Gets a complete options schema for a rule. - * @param {Rule} rule A rule object - * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`. - * @returns {Object|null} JSON Schema for the rule's options. `null` if `meta.schema` is `false`. - */ -function getRuleOptionsSchema(rule) { - - if (!rule.meta) { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - const schema = rule.meta.schema; - - if (typeof schema === "undefined") { - return { ...noOptionsSchema }; // default if `meta.schema` is not specified - } - - // `schema:false` is an allowed explicit opt-out of options validation for the rule - if (schema === false) { - return null; - } - - if (typeof schema !== "object" || schema === null) { - throw new TypeError("Rule's `meta.schema` must be an array or object"); - } - - // ESLint-specific array form needs to be converted into a valid JSON Schema definition - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - - // `schema:[]` is an explicit way to specify that the rule does not accept any options - return { ...noOptionsSchema }; - } - - // `schema:` is assumed to be a valid JSON Schema definition - return schema; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - parseRuleId, - getRuleFromConfig, - getRuleOptionsSchema -}; diff --git a/graphql/node_modules/eslint/lib/config/flat-config-schema.js b/graphql/node_modules/eslint/lib/config/flat-config-schema.js deleted file mode 100644 index bffbae79..00000000 --- a/graphql/node_modules/eslint/lib/config/flat-config-schema.js +++ /dev/null @@ -1,576 +0,0 @@ -/** - * @fileoverview Flat config schema - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { normalizeSeverityToNumber } = require("../shared/severity"); - -//----------------------------------------------------------------------------- -// Type Definitions -//----------------------------------------------------------------------------- - -/** - * @typedef ObjectPropertySchema - * @property {Function|string} merge The function or name of the function to call - * to merge multiple objects with this property. - * @property {Function|string} validate The function or name of the function to call - * to validate the value of this property. - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const ruleSeverities = new Map([ - [0, 0], ["off", 0], - [1, 1], ["warn", 1], - [2, 2], ["error", 2] -]); - -/** - * Check if a value is a non-null object. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(value) { - return typeof value === "object" && value !== null; -} - -/** - * Check if a value is a non-null non-array object. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is a non-null non-array object. - */ -function isNonArrayObject(value) { - return isNonNullObject(value) && !Array.isArray(value); -} - -/** - * Check if a value is undefined. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is undefined. - */ -function isUndefined(value) { - return typeof value === "undefined"; -} - -/** - * Deeply merges two non-array objects. - * @param {Object} first The base object. - * @param {Object} second The overrides object. - * @param {Map>} [mergeMap] Maps the combination of first and second arguments to a merged result. - * @returns {Object} An object with properties from both first and second. - */ -function deepMerge(first, second, mergeMap = new Map()) { - - let secondMergeMap = mergeMap.get(first); - - if (secondMergeMap) { - const result = secondMergeMap.get(second); - - if (result) { - - // If this combination of first and second arguments has been already visited, return the previously created result. - return result; - } - } else { - secondMergeMap = new Map(); - mergeMap.set(first, secondMergeMap); - } - - /* - * First create a result object where properties from the second object - * overwrite properties from the first. This sets up a baseline to use - * later rather than needing to inspect and change every property - * individually. - */ - const result = { - ...first, - ...second - }; - - delete result.__proto__; // eslint-disable-line no-proto -- don't merge own property "__proto__" - - // Store the pending result for this combination of first and second arguments. - secondMergeMap.set(second, result); - - for (const key of Object.keys(second)) { - - // avoid hairy edge case - if (key === "__proto__" || !Object.prototype.propertyIsEnumerable.call(first, key)) { - continue; - } - - const firstValue = first[key]; - const secondValue = second[key]; - - if (isNonArrayObject(firstValue) && isNonArrayObject(secondValue)) { - result[key] = deepMerge(firstValue, secondValue, mergeMap); - } else if (isUndefined(secondValue)) { - result[key] = firstValue; - } - } - - return result; - -} - -/** - * Normalizes the rule options config for a given rule by ensuring that - * it is an array and that the first item is 0, 1, or 2. - * @param {Array|string|number} ruleOptions The rule options config. - * @returns {Array} An array of rule options. - */ -function normalizeRuleOptions(ruleOptions) { - - const finalOptions = Array.isArray(ruleOptions) - ? ruleOptions.slice(0) - : [ruleOptions]; - - finalOptions[0] = ruleSeverities.get(finalOptions[0]); - return structuredClone(finalOptions); -} - -/** - * Determines if an object has any methods. - * @param {Object} object The object to check. - * @returns {boolean} `true` if the object has any methods. - */ -function hasMethod(object) { - - for (const key of Object.keys(object)) { - - if (typeof object[key] === "function") { - return true; - } - } - - return false; -} - -//----------------------------------------------------------------------------- -// Assertions -//----------------------------------------------------------------------------- - -/** - * The error type when a rule's options are configured with an invalid type. - */ -class InvalidRuleOptionsError extends Error { - - /** - * @param {string} ruleId Rule name being configured. - * @param {any} value The invalid value. - */ - constructor(ruleId, value) { - super(`Key "${ruleId}": Expected severity of "off", 0, "warn", 1, "error", or 2.`); - this.messageTemplate = "invalid-rule-options"; - this.messageData = { ruleId, value }; - } -} - -/** - * Validates that a value is a valid rule options entry. - * @param {string} ruleId Rule name being configured. - * @param {any} value The value to check. - * @returns {void} - * @throws {InvalidRuleOptionsError} If the value isn't a valid rule options. - */ -function assertIsRuleOptions(ruleId, value) { - if (typeof value !== "string" && typeof value !== "number" && !Array.isArray(value)) { - throw new InvalidRuleOptionsError(ruleId, value); - } -} - -/** - * The error type when a rule's severity is invalid. - */ -class InvalidRuleSeverityError extends Error { - - /** - * @param {string} ruleId Rule name being configured. - * @param {any} value The invalid value. - */ - constructor(ruleId, value) { - super(`Key "${ruleId}": Expected severity of "off", 0, "warn", 1, "error", or 2.`); - this.messageTemplate = "invalid-rule-severity"; - this.messageData = { ruleId, value }; - } -} - -/** - * Validates that a value is valid rule severity. - * @param {string} ruleId Rule name being configured. - * @param {any} value The value to check. - * @returns {void} - * @throws {InvalidRuleSeverityError} If the value isn't a valid rule severity. - */ -function assertIsRuleSeverity(ruleId, value) { - const severity = ruleSeverities.get(value); - - if (typeof severity === "undefined") { - throw new InvalidRuleSeverityError(ruleId, value); - } -} - -/** - * Validates that a given string is the form pluginName/objectName. - * @param {string} value The string to check. - * @returns {void} - * @throws {TypeError} If the string isn't in the correct format. - */ -function assertIsPluginMemberName(value) { - if (!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(value)) { - throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${value}".`); - } -} - -/** - * Validates that a value is an object. - * @param {any} value The value to check. - * @returns {void} - * @throws {TypeError} If the value isn't an object. - */ -function assertIsObject(value) { - if (!isNonNullObject(value)) { - throw new TypeError("Expected an object."); - } -} - -/** - * The error type when there's an eslintrc-style options in a flat config. - */ -class IncompatibleKeyError extends Error { - - /** - * @param {string} key The invalid key. - */ - constructor(key) { - super("This appears to be in eslintrc format rather than flat config format."); - this.messageTemplate = "eslintrc-incompat"; - this.messageData = { key }; - } -} - -/** - * The error type when there's an eslintrc-style plugins array found. - */ -class IncompatiblePluginsError extends Error { - - /** - * Creates a new instance. - * @param {Array} plugins The plugins array. - */ - constructor(plugins) { - super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."); - this.messageTemplate = "eslintrc-plugins"; - this.messageData = { plugins }; - } -} - - -//----------------------------------------------------------------------------- -// Low-Level Schemas -//----------------------------------------------------------------------------- - -/** @type {ObjectPropertySchema} */ -const booleanSchema = { - merge: "replace", - validate: "boolean" -}; - -const ALLOWED_SEVERITIES = new Set(["error", "warn", "off", 2, 1, 0]); - -/** @type {ObjectPropertySchema} */ -const disableDirectiveSeveritySchema = { - merge(first, second) { - const value = second === void 0 ? first : second; - - if (typeof value === "boolean") { - return value ? "warn" : "off"; - } - - return normalizeSeverityToNumber(value); - }, - validate(value) { - if (!(ALLOWED_SEVERITIES.has(value) || typeof value === "boolean")) { - throw new TypeError("Expected one of: \"error\", \"warn\", \"off\", 0, 1, 2, or a boolean."); - } - } -}; - -/** @type {ObjectPropertySchema} */ -const deepObjectAssignSchema = { - merge(first = {}, second = {}) { - return deepMerge(first, second); - }, - validate: "object" -}; - - -//----------------------------------------------------------------------------- -// High-Level Schemas -//----------------------------------------------------------------------------- - -/** @type {ObjectPropertySchema} */ -const languageOptionsSchema = { - merge(first = {}, second = {}) { - - const result = deepMerge(first, second); - - for (const [key, value] of Object.entries(result)) { - - /* - * Special case: Because the `parser` property is an object, it should - * not be deep merged. Instead, it should be replaced if it exists in - * the second object. To make this more generic, we just check for - * objects with methods and replace them if they exist in the second - * object. - */ - if (isNonArrayObject(value)) { - if (hasMethod(value)) { - result[key] = second[key] ?? first[key]; - continue; - } - - // for other objects, make sure we aren't reusing the same object - result[key] = { ...result[key] }; - continue; - } - - } - - return result; - }, - validate: "object" -}; - -/** @type {ObjectPropertySchema} */ -const languageSchema = { - merge: "replace", - validate: assertIsPluginMemberName -}; - -/** @type {ObjectPropertySchema} */ -const pluginsSchema = { - merge(first = {}, second = {}) { - const keys = new Set([...Object.keys(first), ...Object.keys(second)]); - const result = {}; - - // manually validate that plugins are not redefined - for (const key of keys) { - - // avoid hairy edge case - if (key === "__proto__") { - continue; - } - - if (key in first && key in second && first[key] !== second[key]) { - throw new TypeError(`Cannot redefine plugin "${key}".`); - } - - result[key] = second[key] || first[key]; - } - - return result; - }, - validate(value) { - - // first check the value to be sure it's an object - if (value === null || typeof value !== "object") { - throw new TypeError("Expected an object."); - } - - // make sure it's not an array, which would mean eslintrc-style is used - if (Array.isArray(value)) { - throw new IncompatiblePluginsError(value); - } - - // second check the keys to make sure they are objects - for (const key of Object.keys(value)) { - - // avoid hairy edge case - if (key === "__proto__") { - continue; - } - - if (value[key] === null || typeof value[key] !== "object") { - throw new TypeError(`Key "${key}": Expected an object.`); - } - } - } -}; - -/** @type {ObjectPropertySchema} */ -const processorSchema = { - merge: "replace", - validate(value) { - if (typeof value === "string") { - assertIsPluginMemberName(value); - } else if (value && typeof value === "object") { - if (typeof value.preprocess !== "function" || typeof value.postprocess !== "function") { - throw new TypeError("Object must have a preprocess() and a postprocess() method."); - } - } else { - throw new TypeError("Expected an object or a string."); - } - } -}; - -/** @type {ObjectPropertySchema} */ -const rulesSchema = { - merge(first = {}, second = {}) { - - const result = { - ...first, - ...second - }; - - - for (const ruleId of Object.keys(result)) { - - try { - - // avoid hairy edge case - if (ruleId === "__proto__") { - - /* eslint-disable-next-line no-proto -- Though deprecated, may still be present */ - delete result.__proto__; - continue; - } - - result[ruleId] = normalizeRuleOptions(result[ruleId]); - - /* - * If either rule config is missing, then the correct - * config is already present and we just need to normalize - * the severity. - */ - if (!(ruleId in first) || !(ruleId in second)) { - continue; - } - - const firstRuleOptions = normalizeRuleOptions(first[ruleId]); - const secondRuleOptions = normalizeRuleOptions(second[ruleId]); - - /* - * If the second rule config only has a severity (length of 1), - * then use that severity and keep the rest of the options from - * the first rule config. - */ - if (secondRuleOptions.length === 1) { - result[ruleId] = [secondRuleOptions[0], ...firstRuleOptions.slice(1)]; - continue; - } - - /* - * In any other situation, then the second rule config takes - * precedence. That means the value at `result[ruleId]` is - * already correct and no further work is necessary. - */ - } catch (ex) { - throw new Error(`Key "${ruleId}": ${ex.message}`, { cause: ex }); - } - - } - - return result; - - - }, - - validate(value) { - assertIsObject(value); - - /* - * We are not checking the rule schema here because there is no - * guarantee that the rule definition is present at this point. Instead - * we wait and check the rule schema during the finalization step - * of calculating a config. - */ - for (const ruleId of Object.keys(value)) { - - // avoid hairy edge case - if (ruleId === "__proto__") { - continue; - } - - const ruleOptions = value[ruleId]; - - assertIsRuleOptions(ruleId, ruleOptions); - - if (Array.isArray(ruleOptions)) { - assertIsRuleSeverity(ruleId, ruleOptions[0]); - } else { - assertIsRuleSeverity(ruleId, ruleOptions); - } - } - } -}; - -/** - * Creates a schema that always throws an error. Useful for warning - * about eslintrc-style keys. - * @param {string} key The eslintrc key to create a schema for. - * @returns {ObjectPropertySchema} The schema. - */ -function createEslintrcErrorSchema(key) { - return { - merge: "replace", - validate() { - throw new IncompatibleKeyError(key); - } - }; -} - -const eslintrcKeys = [ - "env", - "extends", - "globals", - "ignorePatterns", - "noInlineConfig", - "overrides", - "parser", - "parserOptions", - "reportUnusedDisableDirectives", - "root" -]; - -//----------------------------------------------------------------------------- -// Full schema -//----------------------------------------------------------------------------- - -const flatConfigSchema = { - - // eslintrc-style keys that should always error - ...Object.fromEntries(eslintrcKeys.map(key => [key, createEslintrcErrorSchema(key)])), - - // flat config keys - settings: deepObjectAssignSchema, - linterOptions: { - schema: { - noInlineConfig: booleanSchema, - reportUnusedDisableDirectives: disableDirectiveSeveritySchema - } - }, - language: languageSchema, - languageOptions: languageOptionsSchema, - processor: processorSchema, - plugins: pluginsSchema, - rules: rulesSchema -}; - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - flatConfigSchema, - hasMethod, - assertIsRuleSeverity -}; diff --git a/graphql/node_modules/eslint/lib/config/rule-validator.js b/graphql/node_modules/eslint/lib/config/rule-validator.js deleted file mode 100644 index 3b4ea612..00000000 --- a/graphql/node_modules/eslint/lib/config/rule-validator.js +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @fileoverview Rule Validator - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const ajvImport = require("../shared/ajv"); -const ajv = ajvImport(); -const { - parseRuleId, - getRuleFromConfig, - getRuleOptionsSchema -} = require("./flat-config-helpers"); -const ruleReplacements = require("../../conf/replacements.json"); - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** - * Throws a helpful error when a rule cannot be found. - * @param {Object} ruleId The rule identifier. - * @param {string} ruleId.pluginName The ID of the rule to find. - * @param {string} ruleId.ruleName The ID of the rule to find. - * @param {Object} config The config to search in. - * @throws {TypeError} For missing plugin or rule. - * @returns {void} - */ -function throwRuleNotFoundError({ pluginName, ruleName }, config) { - - const ruleId = pluginName === "@" ? ruleName : `${pluginName}/${ruleName}`; - - const errorMessageHeader = `Key "rules": Key "${ruleId}"`; - let errorMessage = `${errorMessageHeader}: Could not find plugin "${pluginName}".`; - - // if the plugin exists then we need to check if the rule exists - if (config.plugins && config.plugins[pluginName]) { - const replacementRuleName = ruleReplacements.rules[ruleName]; - - if (pluginName === "@" && replacementRuleName) { - - errorMessage = `${errorMessageHeader}: Rule "${ruleName}" was removed and replaced by "${replacementRuleName}".`; - - } else { - - errorMessage = `${errorMessageHeader}: Could not find "${ruleName}" in plugin "${pluginName}".`; - - // otherwise, let's see if we can find the rule name elsewhere - for (const [otherPluginName, otherPlugin] of Object.entries(config.plugins)) { - if (otherPlugin.rules && otherPlugin.rules[ruleName]) { - errorMessage += ` Did you mean "${otherPluginName}/${ruleName}"?`; - break; - } - } - - } - - // falls through to throw error - } - - throw new TypeError(errorMessage); -} - -/** - * The error type when a rule has an invalid `meta.schema`. - */ -class InvalidRuleOptionsSchemaError extends Error { - - /** - * Creates a new instance. - * @param {string} ruleId Id of the rule that has an invalid `meta.schema`. - * @param {Error} processingError Error caught while processing the `meta.schema`. - */ - constructor(ruleId, processingError) { - super( - `Error while processing options validation schema of rule '${ruleId}': ${processingError.message}`, - { cause: processingError } - ); - this.code = "ESLINT_INVALID_RULE_OPTIONS_SCHEMA"; - } -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * Implements validation functionality for the rules portion of a config. - */ -class RuleValidator { - - /** - * Creates a new instance. - */ - constructor() { - - /** - * A collection of compiled validators for rules that have already - * been validated. - * @type {WeakMap} - */ - this.validators = new WeakMap(); - } - - /** - * Validates all of the rule configurations in a config against each - * rule's schema. - * @param {Object} config The full config to validate. This object must - * contain both the rules section and the plugins section. - * @returns {void} - * @throws {Error} If a rule's configuration does not match its schema. - */ - validate(config) { - - if (!config.rules) { - return; - } - - for (const [ruleId, ruleOptions] of Object.entries(config.rules)) { - - // check for edge case - if (ruleId === "__proto__") { - continue; - } - - /* - * If a rule is disabled, we don't do any validation. This allows - * users to safely set any value to 0 or "off" without worrying - * that it will cause a validation error. - * - * Note: ruleOptions is always an array at this point because - * this validation occurs after FlatConfigArray has merged and - * normalized values. - */ - if (ruleOptions[0] === 0) { - continue; - } - - const rule = getRuleFromConfig(ruleId, config); - - if (!rule) { - throwRuleNotFoundError(parseRuleId(ruleId), config); - } - - // Precompile and cache validator the first time - if (!this.validators.has(rule)) { - try { - const schema = getRuleOptionsSchema(rule); - - if (schema) { - this.validators.set(rule, ajv.compile(schema)); - } - } catch (err) { - throw new InvalidRuleOptionsSchemaError(ruleId, err); - } - } - - const validateRule = this.validators.get(rule); - - if (validateRule) { - - validateRule(ruleOptions.slice(1)); - - if (validateRule.errors) { - throw new Error(`Key "rules": Key "${ruleId}":\n${ - validateRule.errors.map( - error => { - if ( - error.keyword === "additionalProperties" && - error.schema === false && - typeof error.parentSchema?.properties === "object" && - typeof error.params?.additionalProperty === "string" - ) { - const expectedProperties = Object.keys(error.parentSchema.properties).map(property => `"${property}"`); - - return `\tValue ${JSON.stringify(error.data)} ${error.message}.\n\t\tUnexpected property "${error.params.additionalProperty}". Expected properties: ${expectedProperties.join(", ")}.\n`; - } - - return `\tValue ${JSON.stringify(error.data)} ${error.message}.\n`; - } - ).join("") - }`); - } - } - } - } -} - -exports.RuleValidator = RuleValidator; diff --git a/graphql/node_modules/eslint/lib/eslint/eslint-helpers.js b/graphql/node_modules/eslint/lib/eslint/eslint-helpers.js deleted file mode 100644 index 38c16155..00000000 --- a/graphql/node_modules/eslint/lib/eslint/eslint-helpers.js +++ /dev/null @@ -1,975 +0,0 @@ -/** - * @fileoverview Helper functions for ESLint class - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const path = require("node:path"); -const fs = require("node:fs"); -const fsp = fs.promises; -const isGlob = require("is-glob"); -const hash = require("../cli-engine/hash"); -const minimatch = require("minimatch"); -const fswalk = require("@nodelib/fs.walk"); -const globParent = require("glob-parent"); -const isPathInside = require("is-path-inside"); - -//----------------------------------------------------------------------------- -// Fixup references -//----------------------------------------------------------------------------- - -const Minimatch = minimatch.Minimatch; -const MINIMATCH_OPTIONS = { dot: true }; - -//----------------------------------------------------------------------------- -// Types -//----------------------------------------------------------------------------- - -/** - * @typedef {Object} GlobSearch - * @property {Array} patterns The normalized patterns to use for a search. - * @property {Array} rawPatterns The patterns as entered by the user - * before doing any normalization. - */ - -//----------------------------------------------------------------------------- -// Errors -//----------------------------------------------------------------------------- - -/** - * The error type when no files match a glob. - */ -class NoFilesFoundError extends Error { - - /** - * @param {string} pattern The glob pattern which was not found. - * @param {boolean} globEnabled If `false` then the pattern was a glob pattern, but glob was disabled. - */ - constructor(pattern, globEnabled) { - super(`No files matching '${pattern}' were found${!globEnabled ? " (glob was disabled)" : ""}.`); - this.messageTemplate = "file-not-found"; - this.messageData = { pattern, globDisabled: !globEnabled }; - } -} - -/** - * The error type when a search fails to match multiple patterns. - */ -class UnmatchedSearchPatternsError extends Error { - - /** - * @param {Object} options The options for the error. - * @param {string} options.basePath The directory that was searched. - * @param {Array} options.unmatchedPatterns The glob patterns - * which were not found. - * @param {Array} options.patterns The glob patterns that were - * searched. - * @param {Array} options.rawPatterns The raw glob patterns that - * were searched. - */ - constructor({ basePath, unmatchedPatterns, patterns, rawPatterns }) { - super(`No files matching '${rawPatterns}' in '${basePath}' were found.`); - this.basePath = basePath; - this.unmatchedPatterns = unmatchedPatterns; - this.patterns = patterns; - this.rawPatterns = rawPatterns; - } -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class AllFilesIgnoredError extends Error { - - /** - * @param {string} pattern The glob pattern which was not found. - */ - constructor(pattern) { - super(`All files matched by '${pattern}' are ignored.`); - this.messageTemplate = "all-matched-files-ignored"; - this.messageData = { pattern }; - } -} - - -//----------------------------------------------------------------------------- -// General Helpers -//----------------------------------------------------------------------------- - -/** - * Check if a given value is a non-empty string or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is a non-empty string. - */ -function isNonEmptyString(value) { - return typeof value === "string" && value.trim() !== ""; -} - -/** - * Check if a given value is an array of non-empty strings or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is an array of non-empty strings. - */ -function isArrayOfNonEmptyString(value) { - return Array.isArray(value) && value.length && value.every(isNonEmptyString); -} - -/** - * Check if a given value is an empty array or an array of non-empty strings. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is an empty array or an array of non-empty - * strings. - */ -function isEmptyArrayOrArrayOfNonEmptyString(value) { - return Array.isArray(value) && value.every(isNonEmptyString); -} - -//----------------------------------------------------------------------------- -// File-related Helpers -//----------------------------------------------------------------------------- - -/** - * Normalizes slashes in a file pattern to posix-style. - * @param {string} pattern The pattern to replace slashes in. - * @returns {string} The pattern with slashes normalized. - */ -function normalizeToPosix(pattern) { - return pattern.replace(/\\/gu, "/"); -} - -/** - * Check if a string is a glob pattern or not. - * @param {string} pattern A glob pattern. - * @returns {boolean} `true` if the string is a glob pattern. - */ -function isGlobPattern(pattern) { - return isGlob(path.sep === "\\" ? normalizeToPosix(pattern) : pattern); -} - - -/** - * Determines if a given glob pattern will return any results. - * Used primarily to help with useful error messages. - * @param {Object} options The options for the function. - * @param {string} options.basePath The directory to search. - * @param {string} options.pattern A glob pattern to match. - * @returns {Promise} True if there is a glob match, false if not. - */ -function globMatch({ basePath, pattern }) { - - let found = false; - const patternToUse = path.isAbsolute(pattern) - ? normalizeToPosix(path.relative(basePath, pattern)) - : pattern; - - const matcher = new Minimatch(patternToUse, MINIMATCH_OPTIONS); - - const fsWalkSettings = { - - deepFilter(entry) { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - return !found && matcher.match(relativePath, true); - }, - - entryFilter(entry) { - if (found || entry.dirent.isDirectory()) { - return false; - } - - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - if (matcher.match(relativePath)) { - found = true; - return true; - } - - return false; - } - }; - - return new Promise(resolve => { - - // using a stream so we can exit early because we just need one match - const globStream = fswalk.walkStream(basePath, fsWalkSettings); - - globStream.on("data", () => { - globStream.destroy(); - resolve(true); - }); - - // swallow errors as they're not important here - globStream.on("error", () => { }); - - globStream.on("end", () => { - resolve(false); - }); - globStream.read(); - }); - -} - -/** - * Searches a directory looking for matching glob patterns. This uses - * the config array's logic to determine if a directory or file should - * be ignored, so it is consistent with how ignoring works throughout - * ESLint. - * @param {Object} options The options for this function. - * @param {string} options.basePath The directory to search. - * @param {Array} options.patterns An array of glob patterns - * to match. - * @param {Array} options.rawPatterns An array of glob patterns - * as the user inputted them. Used for errors. - * @param {FlatConfigArray} options.configs The config array to use for - * determining what to ignore. - * @param {boolean} options.errorOnUnmatchedPattern Determines if an error - * should be thrown when a pattern is unmatched. - * @returns {Promise>} An array of matching file paths - * or an empty array if there are no matches. - * @throws {UnmatchedSearchPatternsError} If there is a pattern that doesn't - * match any files. - */ -async function globSearch({ - basePath, - patterns, - rawPatterns, - configs, - errorOnUnmatchedPattern -}) { - - if (patterns.length === 0) { - return []; - } - - /* - * In this section we are converting the patterns into Minimatch - * instances for performance reasons. Because we are doing the same - * matches repeatedly, it's best to compile those patterns once and - * reuse them multiple times. - * - * To do that, we convert any patterns with an absolute path into a - * relative path and normalize it to Posix-style slashes. We also keep - * track of the relative patterns to map them back to the original - * patterns, which we need in order to throw an error if there are any - * unmatched patterns. - */ - const relativeToPatterns = new Map(); - const matchers = patterns.map((pattern, i) => { - const patternToUse = path.isAbsolute(pattern) - ? normalizeToPosix(path.relative(basePath, pattern)) - : pattern; - - relativeToPatterns.set(patternToUse, patterns[i]); - - return new Minimatch(patternToUse, MINIMATCH_OPTIONS); - }); - - /* - * We track unmatched patterns because we may want to throw an error when - * they occur. To start, this set is initialized with all of the patterns. - * Every time a match occurs, the pattern is removed from the set, making - * it easy to tell if we have any unmatched patterns left at the end of - * search. - */ - const unmatchedPatterns = new Set([...relativeToPatterns.keys()]); - - const filePaths = (await new Promise((resolve, reject) => { - - let promiseRejected = false; - - /** - * Wraps a boolean-returning filter function. The wrapped function will reject the promise if an error occurs. - * @param {Function} filter A filter function to wrap. - * @returns {Function} A function similar to the wrapped filter that rejects the promise if an error occurs. - */ - function wrapFilter(filter) { - return (...args) => { - - // No need to run the filter if an error has been thrown. - if (!promiseRejected) { - try { - return filter(...args); - } catch (error) { - promiseRejected = true; - reject(error); - } - } - return false; - }; - } - - fswalk.walk( - basePath, - { - deepFilter: wrapFilter(entry => { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - const matchesPattern = matchers.some(matcher => matcher.match(relativePath, true)); - - return matchesPattern && !configs.isDirectoryIgnored(entry.path); - }), - entryFilter: wrapFilter(entry => { - const relativePath = normalizeToPosix(path.relative(basePath, entry.path)); - - // entries may be directories or files so filter out directories - if (entry.dirent.isDirectory()) { - return false; - } - - /* - * Optimization: We need to track when patterns are left unmatched - * and so we use `unmatchedPatterns` to do that. There is a bit of - * complexity here because the same file can be matched by more than - * one pattern. So, when we start, we actually need to test every - * pattern against every file. Once we know there are no remaining - * unmatched patterns, then we can switch to just looking for the - * first matching pattern for improved speed. - */ - const matchesPattern = unmatchedPatterns.size > 0 - ? matchers.reduce((previousValue, matcher) => { - const pathMatches = matcher.match(relativePath); - - /* - * We updated the unmatched patterns set only if the path - * matches and the file has a config. If the file has no - * config, that means there wasn't a match for the - * pattern so it should not be removed. - * - * Performance note: `getConfig()` aggressively caches - * results so there is no performance penalty for calling - * it multiple times with the same argument. - */ - if (pathMatches && configs.getConfig(entry.path)) { - unmatchedPatterns.delete(matcher.pattern); - } - - return pathMatches || previousValue; - }, false) - : matchers.some(matcher => matcher.match(relativePath)); - - return matchesPattern && configs.getConfig(entry.path) !== void 0; - }) - }, - (error, entries) => { - - // If the promise is already rejected, calling `resolve` or `reject` will do nothing. - if (error) { - reject(error); - } else { - resolve(entries); - } - } - ); - })).map(entry => entry.path); - - // now check to see if we have any unmatched patterns - if (errorOnUnmatchedPattern && unmatchedPatterns.size > 0) { - throw new UnmatchedSearchPatternsError({ - basePath, - unmatchedPatterns: [...unmatchedPatterns].map( - pattern => relativeToPatterns.get(pattern) - ), - patterns, - rawPatterns - }); - } - - return filePaths; -} - -/** - * Throws an error for unmatched patterns. The error will only contain information about the first one. - * Checks to see if there are any ignored results for a given search. - * @param {Object} options The options for this function. - * @param {string} options.basePath The directory to search. - * @param {Array} options.patterns An array of glob patterns - * that were used in the original search. - * @param {Array} options.rawPatterns An array of glob patterns - * as the user inputted them. Used for errors. - * @param {Array} options.unmatchedPatterns A non-empty array of glob patterns - * that were unmatched in the original search. - * @returns {void} Always throws an error. - * @throws {NoFilesFoundError} If the first unmatched pattern - * doesn't match any files even when there are no ignores. - * @throws {AllFilesIgnoredError} If the first unmatched pattern - * matches some files when there are no ignores. - */ -async function throwErrorForUnmatchedPatterns({ - basePath, - patterns, - rawPatterns, - unmatchedPatterns -}) { - - const pattern = unmatchedPatterns[0]; - const rawPattern = rawPatterns[patterns.indexOf(pattern)]; - - const patternHasMatch = await globMatch({ - basePath, - pattern - }); - - if (patternHasMatch) { - throw new AllFilesIgnoredError(rawPattern); - } - - // if we get here there are truly no matches - throw new NoFilesFoundError(rawPattern, true); -} - -/** - * Performs multiple glob searches in parallel. - * @param {Object} options The options for this function. - * @param {Map} options.searches - * An array of glob patterns to match. - * @param {FlatConfigArray} options.configs The config array to use for - * determining what to ignore. - * @param {boolean} options.errorOnUnmatchedPattern Determines if an - * unmatched glob pattern should throw an error. - * @returns {Promise>} An array of matching file paths - * or an empty array if there are no matches. - */ -async function globMultiSearch({ searches, configs, errorOnUnmatchedPattern }) { - - /* - * For convenience, we normalized the search map into an array of objects. - * Next, we filter out all searches that have no patterns. This happens - * primarily for the cwd, which is prepopulated in the searches map as an - * optimization. However, if it has no patterns, it means all patterns - * occur outside of the cwd and we can safely filter out that search. - */ - const normalizedSearches = [...searches].map( - ([basePath, { patterns, rawPatterns }]) => ({ basePath, patterns, rawPatterns }) - ).filter(({ patterns }) => patterns.length > 0); - - const results = await Promise.allSettled( - normalizedSearches.map( - ({ basePath, patterns, rawPatterns }) => globSearch({ - basePath, - patterns, - rawPatterns, - configs, - errorOnUnmatchedPattern - }) - ) - ); - - const filePaths = []; - - for (let i = 0; i < results.length; i++) { - - const result = results[i]; - const currentSearch = normalizedSearches[i]; - - if (result.status === "fulfilled") { - - // if the search was successful just add the results - if (result.value.length > 0) { - filePaths.push(...result.value); - } - - continue; - } - - // if we make it here then there was an error - const error = result.reason; - - // unexpected errors should be re-thrown - if (!error.basePath) { - throw error; - } - - if (errorOnUnmatchedPattern) { - - await throwErrorForUnmatchedPatterns({ - ...currentSearch, - unmatchedPatterns: error.unmatchedPatterns - }); - - } - - } - - return filePaths; - -} - -/** - * Finds all files matching the options specified. - * @param {Object} args The arguments objects. - * @param {Array} args.patterns An array of glob patterns. - * @param {boolean} args.globInputPaths true to interpret glob patterns, - * false to not interpret glob patterns. - * @param {string} args.cwd The current working directory to find from. - * @param {FlatConfigArray} args.configs The configs for the current run. - * @param {boolean} args.errorOnUnmatchedPattern Determines if an unmatched pattern - * should throw an error. - * @returns {Promise>} The fully resolved file paths. - * @throws {AllFilesIgnoredError} If there are no results due to an ignore pattern. - * @throws {NoFilesFoundError} If no files matched the given patterns. - */ -async function findFiles({ - patterns, - globInputPaths, - cwd, - configs, - errorOnUnmatchedPattern -}) { - - const results = []; - const missingPatterns = []; - let globbyPatterns = []; - let rawPatterns = []; - const searches = new Map([[cwd, { patterns: globbyPatterns, rawPatterns: [] }]]); - - // check to see if we have explicit files and directories - const filePaths = patterns.map(filePath => path.resolve(cwd, filePath)); - const stats = await Promise.all( - filePaths.map( - filePath => fsp.stat(filePath).catch(() => { }) - ) - ); - - stats.forEach((stat, index) => { - - const filePath = filePaths[index]; - const pattern = normalizeToPosix(patterns[index]); - - if (stat) { - - // files are added directly to the list - if (stat.isFile()) { - results.push(filePath); - } - - // directories need extensions attached - if (stat.isDirectory()) { - - // group everything in cwd together and split out others - if (isPathInside(filePath, cwd)) { - ({ patterns: globbyPatterns, rawPatterns } = searches.get(cwd)); - } else { - if (!searches.has(filePath)) { - searches.set(filePath, { patterns: [], rawPatterns: [] }); - } - ({ patterns: globbyPatterns, rawPatterns } = searches.get(filePath)); - } - - globbyPatterns.push(`${normalizeToPosix(filePath)}/**`); - rawPatterns.push(pattern); - } - - return; - } - - // save patterns for later use based on whether globs are enabled - if (globInputPaths && isGlobPattern(pattern)) { - - const basePath = path.resolve(cwd, globParent(pattern)); - - // group in cwd if possible and split out others - if (isPathInside(basePath, cwd)) { - ({ patterns: globbyPatterns, rawPatterns } = searches.get(cwd)); - } else { - if (!searches.has(basePath)) { - searches.set(basePath, { patterns: [], rawPatterns: [] }); - } - ({ patterns: globbyPatterns, rawPatterns } = searches.get(basePath)); - } - - globbyPatterns.push(filePath); - rawPatterns.push(pattern); - } else { - missingPatterns.push(pattern); - } - }); - - // there were patterns that didn't match anything, tell the user - if (errorOnUnmatchedPattern && missingPatterns.length) { - throw new NoFilesFoundError(missingPatterns[0], globInputPaths); - } - - // now we are safe to do the search - const globbyResults = await globMultiSearch({ - searches, - configs, - errorOnUnmatchedPattern - }); - - return [ - ...new Set([ - ...results, - ...globbyResults.map(filePath => path.resolve(filePath)) - ]) - ]; -} - -//----------------------------------------------------------------------------- -// Results-related Helpers -//----------------------------------------------------------------------------- - -/** - * Checks if the given message is an error message. - * @param {LintMessage} message The message to check. - * @returns {boolean} Whether or not the message is an error message. - * @private - */ -function isErrorMessage(message) { - return message.severity === 2; -} - -/** - * Returns result with warning by ignore settings - * @param {string} filePath File path of checked code - * @param {string} baseDir Absolute path of base directory - * @param {"ignored"|"external"|"unconfigured"} configStatus A status that determines why the file is ignored - * @returns {LintResult} Result with single warning - * @private - */ -function createIgnoreResult(filePath, baseDir, configStatus) { - let message; - - switch (configStatus) { - case "external": - message = "File ignored because outside of base path."; - break; - case "unconfigured": - message = "File ignored because no matching configuration was supplied."; - break; - default: - { - const isInNodeModules = baseDir && path.dirname(path.relative(baseDir, filePath)).split(path.sep).includes("node_modules"); - - if (isInNodeModules) { - message = "File ignored by default because it is located under the node_modules directory. Use ignore pattern \"!**/node_modules/\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; - } else { - message = "File ignored because of a matching ignore pattern. Use \"--no-ignore\" to disable file ignore settings or use \"--no-warn-ignored\" to suppress this warning."; - } - } - break; - } - - return { - filePath: path.resolve(filePath), - messages: [ - { - ruleId: null, - fatal: false, - severity: 1, - message, - nodeType: null - } - ], - suppressedMessages: [], - errorCount: 0, - warningCount: 1, - fatalErrorCount: 0, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; -} - -//----------------------------------------------------------------------------- -// Options-related Helpers -//----------------------------------------------------------------------------- - - -/** - * Check if a given value is a valid fix type or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is valid fix type. - */ -function isFixType(x) { - return x === "directive" || x === "problem" || x === "suggestion" || x === "layout"; -} - -/** - * Check if a given value is an array of fix types or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if `x` is an array of fix types. - */ -function isFixTypeArray(x) { - return Array.isArray(x) && x.every(isFixType); -} - -/** - * The error for invalid options. - */ -class ESLintInvalidOptionsError extends Error { - constructor(messages) { - super(`Invalid Options:\n- ${messages.join("\n- ")}`); - this.code = "ESLINT_INVALID_OPTIONS"; - Error.captureStackTrace(this, ESLintInvalidOptionsError); - } -} - -/** - * Validates and normalizes options for the wrapped CLIEngine instance. - * @param {ESLintOptions} options The options to process. - * @throws {ESLintInvalidOptionsError} If of any of a variety of type errors. - * @returns {ESLintOptions} The normalized options. - */ -function processOptions({ - allowInlineConfig = true, // ← we cannot use `overrideConfig.noInlineConfig` instead because `allowInlineConfig` has side-effect that suppress warnings that show inline configs are ignored. - baseConfig = null, - cache = false, - cacheLocation = ".eslintcache", - cacheStrategy = "metadata", - cwd = process.cwd(), - errorOnUnmatchedPattern = true, - fix = false, - fixTypes = null, // ← should be null by default because if it's an array then it suppresses rules that don't have the `meta.type` property. - flags = [], - globInputPaths = true, - ignore = true, - ignorePatterns = null, - overrideConfig = null, - overrideConfigFile = null, - plugins = {}, - stats = false, - warnIgnored = true, - passOnNoPatterns = false, - ruleFilter = () => true, - ...unknownOptions -}) { - const errors = []; - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length >= 1) { - errors.push(`Unknown options: ${unknownOptionKeys.join(", ")}`); - if (unknownOptionKeys.includes("cacheFile")) { - errors.push("'cacheFile' has been removed. Please use the 'cacheLocation' option instead."); - } - if (unknownOptionKeys.includes("configFile")) { - errors.push("'configFile' has been removed. Please use the 'overrideConfigFile' option instead."); - } - if (unknownOptionKeys.includes("envs")) { - errors.push("'envs' has been removed."); - } - if (unknownOptionKeys.includes("extensions")) { - errors.push("'extensions' has been removed."); - } - if (unknownOptionKeys.includes("resolvePluginsRelativeTo")) { - errors.push("'resolvePluginsRelativeTo' has been removed."); - } - if (unknownOptionKeys.includes("globals")) { - errors.push("'globals' has been removed. Please use the 'overrideConfig.languageOptions.globals' option instead."); - } - if (unknownOptionKeys.includes("ignorePath")) { - errors.push("'ignorePath' has been removed."); - } - if (unknownOptionKeys.includes("ignorePattern")) { - errors.push("'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead."); - } - if (unknownOptionKeys.includes("parser")) { - errors.push("'parser' has been removed. Please use the 'overrideConfig.languageOptions.parser' option instead."); - } - if (unknownOptionKeys.includes("parserOptions")) { - errors.push("'parserOptions' has been removed. Please use the 'overrideConfig.languageOptions.parserOptions' option instead."); - } - if (unknownOptionKeys.includes("rules")) { - errors.push("'rules' has been removed. Please use the 'overrideConfig.rules' option instead."); - } - if (unknownOptionKeys.includes("rulePaths")) { - errors.push("'rulePaths' has been removed. Please define your rules using plugins."); - } - if (unknownOptionKeys.includes("reportUnusedDisableDirectives")) { - errors.push("'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead."); - } - } - if (typeof allowInlineConfig !== "boolean") { - errors.push("'allowInlineConfig' must be a boolean."); - } - if (typeof baseConfig !== "object") { - errors.push("'baseConfig' must be an object or null."); - } - if (typeof cache !== "boolean") { - errors.push("'cache' must be a boolean."); - } - if (!isNonEmptyString(cacheLocation)) { - errors.push("'cacheLocation' must be a non-empty string."); - } - if ( - cacheStrategy !== "metadata" && - cacheStrategy !== "content" - ) { - errors.push("'cacheStrategy' must be any of \"metadata\", \"content\"."); - } - if (!isNonEmptyString(cwd) || !path.isAbsolute(cwd)) { - errors.push("'cwd' must be an absolute path."); - } - if (typeof errorOnUnmatchedPattern !== "boolean") { - errors.push("'errorOnUnmatchedPattern' must be a boolean."); - } - if (typeof fix !== "boolean" && typeof fix !== "function") { - errors.push("'fix' must be a boolean or a function."); - } - if (fixTypes !== null && !isFixTypeArray(fixTypes)) { - errors.push("'fixTypes' must be an array of any of \"directive\", \"problem\", \"suggestion\", and \"layout\"."); - } - if (!isEmptyArrayOrArrayOfNonEmptyString(flags)) { - errors.push("'flags' must be an array of non-empty strings."); - } - if (typeof globInputPaths !== "boolean") { - errors.push("'globInputPaths' must be a boolean."); - } - if (typeof ignore !== "boolean") { - errors.push("'ignore' must be a boolean."); - } - if (!isEmptyArrayOrArrayOfNonEmptyString(ignorePatterns) && ignorePatterns !== null) { - errors.push("'ignorePatterns' must be an array of non-empty strings or null."); - } - if (typeof overrideConfig !== "object") { - errors.push("'overrideConfig' must be an object or null."); - } - if (!isNonEmptyString(overrideConfigFile) && overrideConfigFile !== null && overrideConfigFile !== true) { - errors.push("'overrideConfigFile' must be a non-empty string, null, or true."); - } - if (typeof passOnNoPatterns !== "boolean") { - errors.push("'passOnNoPatterns' must be a boolean."); - } - if (typeof plugins !== "object") { - errors.push("'plugins' must be an object or null."); - } else if (plugins !== null && Object.keys(plugins).includes("")) { - errors.push("'plugins' must not include an empty string."); - } - if (Array.isArray(plugins)) { - errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead."); - } - if (typeof stats !== "boolean") { - errors.push("'stats' must be a boolean."); - } - if (typeof warnIgnored !== "boolean") { - errors.push("'warnIgnored' must be a boolean."); - } - if (typeof ruleFilter !== "function") { - errors.push("'ruleFilter' must be a function."); - } - if (errors.length > 0) { - throw new ESLintInvalidOptionsError(errors); - } - - return { - allowInlineConfig, - baseConfig, - cache, - cacheLocation, - cacheStrategy, - - // when overrideConfigFile is true that means don't do config file lookup - configFile: overrideConfigFile === true ? false : overrideConfigFile, - overrideConfig, - cwd: path.normalize(cwd), - errorOnUnmatchedPattern, - fix, - fixTypes, - flags: [...flags], - globInputPaths, - ignore, - ignorePatterns, - stats, - passOnNoPatterns, - warnIgnored, - ruleFilter - }; -} - - -//----------------------------------------------------------------------------- -// Cache-related helpers -//----------------------------------------------------------------------------- - -/** - * return the cacheFile to be used by eslint, based on whether the provided parameter is - * a directory or looks like a directory (ends in `path.sep`), in which case the file - * name will be the `cacheFile/.cache_hashOfCWD` - * - * if cacheFile points to a file or looks like a file then in will just use that file - * @param {string} cacheFile The name of file to be used to store the cache - * @param {string} cwd Current working directory - * @returns {string} the resolved path to the cache file - */ -function getCacheFile(cacheFile, cwd) { - - /* - * make sure the path separators are normalized for the environment/os - * keeping the trailing path separator if present - */ - const normalizedCacheFile = path.normalize(cacheFile); - - const resolvedCacheFile = path.resolve(cwd, normalizedCacheFile); - const looksLikeADirectory = normalizedCacheFile.slice(-1) === path.sep; - - /** - * return the name for the cache file in case the provided parameter is a directory - * @returns {string} the resolved path to the cacheFile - */ - function getCacheFileForDirectory() { - return path.join(resolvedCacheFile, `.cache_${hash(cwd)}`); - } - - let fileStats; - - try { - fileStats = fs.lstatSync(resolvedCacheFile); - } catch { - fileStats = null; - } - - - /* - * in case the file exists we need to verify if the provided path - * is a directory or a file. If it is a directory we want to create a file - * inside that directory - */ - if (fileStats) { - - /* - * is a directory or is a file, but the original file the user provided - * looks like a directory but `path.resolve` removed the `last path.sep` - * so we need to still treat this like a directory - */ - if (fileStats.isDirectory() || looksLikeADirectory) { - return getCacheFileForDirectory(); - } - - // is file so just use that file - return resolvedCacheFile; - } - - /* - * here we known the file or directory doesn't exist, - * so we will try to infer if its a directory if it looks like a directory - * for the current operating system. - */ - - // if the last character passed is a path separator we assume is a directory - if (looksLikeADirectory) { - return getCacheFileForDirectory(); - } - - return resolvedCacheFile; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - findFiles, - - isNonEmptyString, - isArrayOfNonEmptyString, - - createIgnoreResult, - isErrorMessage, - - processOptions, - - getCacheFile -}; diff --git a/graphql/node_modules/eslint/lib/eslint/eslint.js b/graphql/node_modules/eslint/lib/eslint/eslint.js deleted file mode 100644 index da7fa624..00000000 --- a/graphql/node_modules/eslint/lib/eslint/eslint.js +++ /dev/null @@ -1,1307 +0,0 @@ -/** - * @fileoverview Main class using flat config - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const fs = require("node:fs/promises"); -const { existsSync } = require("node:fs"); -const path = require("node:path"); -const findUp = require("find-up"); -const { version } = require("../../package.json"); -const { Linter } = require("../linter"); -const { getRuleFromConfig } = require("../config/flat-config-helpers"); -const { - Legacy: { - ConfigOps: { - getRuleSeverity - }, - ModuleResolver, - naming - } -} = require("@eslint/eslintrc"); - -const { - findFiles, - getCacheFile, - - isNonEmptyString, - isArrayOfNonEmptyString, - - createIgnoreResult, - isErrorMessage, - - processOptions -} = require("./eslint-helpers"); -const { pathToFileURL } = require("node:url"); -const { FlatConfigArray } = require("../config/flat-config-array"); -const LintResultCache = require("../cli-engine/lint-result-cache"); -const { Retrier } = require("@humanwhocodes/retry"); - -/* - * This is necessary to allow overwriting writeFile for testing purposes. - * We can just use fs/promises once we drop Node.js 12 support. - */ - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -// For VSCode IntelliSense -/** @typedef {import("../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").LintResult} LintResult */ -/** @typedef {import("../shared/types").ParserOptions} ParserOptions */ -/** @typedef {import("../shared/types").Plugin} Plugin */ -/** @typedef {import("../shared/types").ResultsMeta} ResultsMeta */ -/** @typedef {import("../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../shared/types").Rule} Rule */ -/** @typedef {ReturnType} ExtractedConfig */ -/** @typedef {import('../cli-engine/cli-engine').CLIEngine} CLIEngine */ -/** @typedef {import('./legacy-eslint').CLIEngineLintReport} CLIEngineLintReport */ - -/** - * The options with which to configure the ESLint instance. - * @typedef {Object} ESLintOptions - * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. - * @property {ConfigData|Array} [baseConfig] Base config, extended by all configs used with this instance - * @property {boolean} [cache] Enable result caching. - * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. - * @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files. - * @property {string} [cwd] The value to use for the current working directory. - * @property {boolean} [errorOnUnmatchedPattern] If `false` then `ESLint#lintFiles()` doesn't throw even if no target files found. Defaults to `true`. - * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. - * @property {string[]} [fixTypes] Array of rule types to apply fixes for. - * @property {string[]} [flags] Array of feature flags to enable. - * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} [ignore] False disables all ignore patterns except for the default ones. - * @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to config ignores. These patterns are relative to `cwd`. - * @property {ConfigData|Array} [overrideConfig] Override config, overrides all configs used with this instance - * @property {boolean|string} [overrideConfigFile] Searches for default config file when falsy; - * doesn't do any config file lookup when `true`; considered to be a config filename - * when a string. - * @property {Record} [plugins] An array of plugin implementations. - * @property {boolean} [stats] True enables added statistics on lint results. - * @property {boolean} [warnIgnored] Show warnings when the file list includes ignored files - * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause - * the linting operation to short circuit and not report any failures. - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const FLAT_CONFIG_FILENAMES = [ - "eslint.config.js", - "eslint.config.mjs", - "eslint.config.cjs" -]; -const FLAT_CONFIG_FILENAMES_WITH_TS = [ - ...FLAT_CONFIG_FILENAMES, - "eslint.config.ts", - "eslint.config.mts", - "eslint.config.cts" -]; -const debug = require("debug")("eslint:eslint"); -const privateMembers = new WeakMap(); - -/** - * @type {Map} - */ -const importedConfigFileModificationTime = new Map(); -const removedFormatters = new Set([ - "checkstyle", - "codeframe", - "compact", - "jslint-xml", - "junit", - "table", - "tap", - "unix", - "visualstudio" -]); - -/** - * It will calculate the error and warning count for collection of messages per file - * @param {LintMessage[]} messages Collection of messages - * @returns {Object} Contains the stats - * @private - */ -function calculateStatsPerFile(messages) { - const stat = { - errorCount: 0, - fatalErrorCount: 0, - warningCount: 0, - fixableErrorCount: 0, - fixableWarningCount: 0 - }; - - for (let i = 0; i < messages.length; i++) { - const message = messages[i]; - - if (message.fatal || message.severity === 2) { - stat.errorCount++; - if (message.fatal) { - stat.fatalErrorCount++; - } - if (message.fix) { - stat.fixableErrorCount++; - } - } else { - stat.warningCount++; - if (message.fix) { - stat.fixableWarningCount++; - } - } - } - return stat; -} - -/** - * Create rulesMeta object. - * @param {Map} rules a map of rules from which to generate the object. - * @returns {Object} metadata for all enabled rules. - */ -function createRulesMeta(rules) { - return Array.from(rules).reduce((retVal, [id, rule]) => { - retVal[id] = rule.meta; - return retVal; - }, {}); -} - -/** - * Return the absolute path of a file named `"__placeholder__.js"` in a given directory. - * This is used as a replacement for a missing file path. - * @param {string} cwd An absolute directory path. - * @returns {string} The absolute path of a file named `"__placeholder__.js"` in the given directory. - */ -function getPlaceholderPath(cwd) { - return path.join(cwd, "__placeholder__.js"); -} - -/** @type {WeakMap} */ -const usedDeprecatedRulesCache = new WeakMap(); - -/** - * Create used deprecated rule list. - * @param {CLIEngine} eslint The CLIEngine instance. - * @param {string} maybeFilePath The absolute path to a lint target file or `""`. - * @returns {DeprecatedRuleInfo[]} The used deprecated rule list. - */ -function getOrFindUsedDeprecatedRules(eslint, maybeFilePath) { - const { - configs, - options: { cwd } - } = privateMembers.get(eslint); - const filePath = path.isAbsolute(maybeFilePath) - ? maybeFilePath - : getPlaceholderPath(cwd); - const config = configs.getConfig(filePath); - - // Most files use the same config, so cache it. - if (config && !usedDeprecatedRulesCache.has(config)) { - const retv = []; - - if (config.rules) { - for (const [ruleId, ruleConf] of Object.entries(config.rules)) { - if (getRuleSeverity(ruleConf) === 0) { - continue; - } - const rule = getRuleFromConfig(ruleId, config); - const meta = rule && rule.meta; - - if (meta && meta.deprecated) { - retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); - } - } - } - - - usedDeprecatedRulesCache.set(config, Object.freeze(retv)); - } - - return config ? usedDeprecatedRulesCache.get(config) : Object.freeze([]); -} - -/** - * Processes the linting results generated by a CLIEngine linting report to - * match the ESLint class's API. - * @param {CLIEngine} eslint The CLIEngine instance. - * @param {CLIEngineLintReport} report The CLIEngine linting report to process. - * @returns {LintResult[]} The processed linting results. - */ -function processLintReport(eslint, { results }) { - const descriptor = { - configurable: true, - enumerable: true, - get() { - return getOrFindUsedDeprecatedRules(eslint, this.filePath); - } - }; - - for (const result of results) { - Object.defineProperty(result, "usedDeprecatedRules", descriptor); - } - - return results; -} - -/** - * An Array.prototype.sort() compatible compare function to order results by their file path. - * @param {LintResult} a The first lint result. - * @param {LintResult} b The second lint result. - * @returns {number} An integer representing the order in which the two results should occur. - */ -function compareResultsByFilePath(a, b) { - if (a.filePath < b.filePath) { - return -1; - } - - if (a.filePath > b.filePath) { - return 1; - } - - return 0; -} - -/** - * Searches from the current working directory up until finding the - * given flat config filename. - * @param {string} cwd The current working directory to search from. - * @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. - * @returns {Promise} The filename if found or `undefined` if not. - */ -function findFlatConfigFile(cwd, hasUnstableTSConfigFlag) { - const filenames = hasUnstableTSConfigFlag ? FLAT_CONFIG_FILENAMES_WITH_TS : FLAT_CONFIG_FILENAMES; - - return findUp( - filenames, - { cwd } - ); -} - -/** - * Check if the file is a TypeScript file. - * @param {string} filePath The file path to check. - * @returns {boolean} `true` if the file is a TypeScript file, `false` if it's not. - */ -function isFileTS(filePath) { - const fileExtension = path.extname(filePath); - - return /^\.[mc]?ts$/u.test(fileExtension); -} - -/** - * Check if ESLint is running in Bun. - * @returns {boolean} `true` if the ESLint is running Bun, `false` if it's not. - */ -function isRunningInBun() { - return !!globalThis.Bun; -} - -/** - * Check if ESLint is running in Deno. - * @returns {boolean} `true` if the ESLint is running in Deno, `false` if it's not. - */ -function isRunningInDeno() { - return !!globalThis.Deno; -} - -/** - * Load the config array from the given filename. - * @param {string} filePath The filename to load from. - * @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. - * @returns {Promise} The config loaded from the config file. - */ -async function loadFlatConfigFile(filePath, hasUnstableTSConfigFlag) { - debug(`Loading config from ${filePath}`); - - const fileURL = pathToFileURL(filePath); - - debug(`Config file URL is ${fileURL}`); - - const mtime = (await fs.stat(filePath)).mtime.getTime().toString(); - - /* - * Append a query with the config file's modification time (`mtime`) in order - * to import the current version of the config file. Without the query, `import()` would - * cache the config file module by the pathname only, and then always return - * the same version (the one that was actual when the module was imported for the first time). - * - * This ensures that the config file module is loaded and executed again - * if it has been changed since the last time it was imported. - * If it hasn't been changed, `import()` will just return the cached version. - * - * Note that we should not overuse queries (e.g., by appending the current time - * to always reload the config file module) as that could cause memory leaks - * because entries are never removed from the import cache. - */ - fileURL.searchParams.append("mtime", mtime); - - /* - * With queries, we can bypass the import cache. However, when import-ing a CJS module, - * Node.js uses the require infrastructure under the hood. That includes the require cache, - * which caches the config file module by its file path (queries have no effect). - * Therefore, we also need to clear the require cache before importing the config file module. - * In order to get the same behavior with ESM and CJS config files, in particular - to reload - * the config file only if it has been changed, we track file modification times and clear - * the require cache only if the file has been changed. - */ - if (importedConfigFileModificationTime.get(filePath) !== mtime) { - delete require.cache[filePath]; - } - - const isTS = isFileTS(filePath) && hasUnstableTSConfigFlag; - - const isBun = isRunningInBun(); - - const isDeno = isRunningInDeno(); - - if (isTS && !isDeno && !isBun) { - - const createJiti = await import("jiti").then(jitiModule => jitiModule.default, () => { - throw new Error("The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it."); - }); - - /* - * Disabling `moduleCache` allows us to reload a - * config file when the last modified timestamp changes. - */ - - const jiti = createJiti(__filename, { moduleCache: false }); - - if (typeof jiti?.import !== "function") { - throw new Error("You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features."); - } - - const config = await jiti.import(fileURL.href); - - importedConfigFileModificationTime.set(filePath, mtime); - - return config?.default ?? config; - } - - const config = (await import(fileURL.href)).default; - - importedConfigFileModificationTime.set(filePath, mtime); - - return config; -} - -/** - * Determines which config file to use. This is determined by seeing if an - * override config file was passed, and if so, using it; otherwise, as long - * as override config file is not explicitly set to `false`, it will search - * upwards from the cwd for a file named `eslint.config.js`. - * @param {ESLintOptions} options The ESLint instance options. - * @param {boolean} hasUnstableTSConfigFlag `true` if the `unstable_ts_config` flag is enabled, `false` if it's not. - * @returns {Promise<{configFilePath:string|undefined;basePath:string;error:Error|null}>} Location information for - * the config file. - */ -async function locateConfigFileToUse({ configFile, cwd }, hasUnstableTSConfigFlag) { - - // determine where to load config file from - let configFilePath; - let basePath = cwd; - let error = null; - - if (typeof configFile === "string") { - debug(`Override config file path is ${configFile}`); - configFilePath = path.resolve(cwd, configFile); - } else if (configFile !== false) { - debug("Searching for eslint.config.js"); - configFilePath = await findFlatConfigFile(cwd, hasUnstableTSConfigFlag); - - if (configFilePath) { - basePath = path.resolve(path.dirname(configFilePath)); - } else { - error = new Error("Could not find config file."); - error.messageTemplate = "config-file-missing"; - } - - } - - return { - configFilePath, - basePath, - error - }; - -} - -/** - * Calculates the config array for this run based on inputs. - * @param {ESLint} eslint The instance to create the config array for. - * @param {ESLintOptions} options The ESLint instance options. - * @returns {Promise} The config array for `eslint``. - */ -async function calculateConfigArray(eslint, { - cwd, - baseConfig, - overrideConfig, - configFile, - ignore: shouldIgnore, - ignorePatterns -}) { - - // check for cached instance - const slots = privateMembers.get(eslint); - - if (slots.configs) { - return slots.configs; - } - - const hasUnstableTSConfigFlag = eslint.hasFlag("unstable_ts_config"); - - const { configFilePath, basePath, error } = await locateConfigFileToUse({ configFile, cwd }, hasUnstableTSConfigFlag); - - // config file is required to calculate config - if (error) { - throw error; - } - - const configs = new FlatConfigArray(baseConfig || [], { basePath, shouldIgnore }); - - // load config file - if (configFilePath) { - const fileConfig = await loadFlatConfigFile(configFilePath, hasUnstableTSConfigFlag); - - if (Array.isArray(fileConfig)) { - configs.push(...fileConfig); - } else { - configs.push(fileConfig); - } - } - - // add in any configured defaults - configs.push(...slots.defaultConfigs); - - // append command line ignore patterns - if (ignorePatterns && ignorePatterns.length > 0) { - - let relativeIgnorePatterns; - - /* - * If the config file basePath is different than the cwd, then - * the ignore patterns won't work correctly. Here, we adjust the - * ignore pattern to include the correct relative path. Patterns - * passed as `ignorePatterns` are relative to the cwd, whereas - * the config file basePath can be an ancestor of the cwd. - */ - if (basePath === cwd) { - relativeIgnorePatterns = ignorePatterns; - } else { - - // In minimatch patterns, only `/` can be used as path separator - const relativeIgnorePath = path.relative(basePath, cwd).replaceAll(path.sep, "/"); - - relativeIgnorePatterns = ignorePatterns.map(pattern => { - const negated = pattern.startsWith("!"); - const basePattern = negated ? pattern.slice(1) : pattern; - - return (negated ? "!" : "") + - path.posix.join(relativeIgnorePath, basePattern); - }); - } - - /* - * Ignore patterns are added to the end of the config array - * so they can override default ignores. - */ - configs.push({ - ignores: relativeIgnorePatterns - }); - } - - if (overrideConfig) { - if (Array.isArray(overrideConfig)) { - configs.push(...overrideConfig); - } else { - configs.push(overrideConfig); - } - } - - await configs.normalize(); - - // cache the config array for this instance - slots.configs = configs; - - return configs; -} - -/** - * Processes an source code using ESLint. - * @param {Object} config The config object. - * @param {string} config.text The source code to verify. - * @param {string} config.cwd The path to the current working directory. - * @param {string|undefined} config.filePath The path to the file of `text`. If this is undefined, it uses ``. - * @param {FlatConfigArray} config.configs The config. - * @param {boolean} config.fix If `true` then it does fix. - * @param {boolean} config.allowInlineConfig If `true` then it uses directive comments. - * @param {Function} config.ruleFilter A predicate function to filter which rules should be run. - * @param {boolean} config.stats If `true`, then if reports extra statistics with the lint results. - * @param {Linter} config.linter The linter instance to verify. - * @returns {LintResult} The result of linting. - * @private - */ -function verifyText({ - text, - cwd, - filePath: providedFilePath, - configs, - fix, - allowInlineConfig, - ruleFilter, - stats, - linter -}) { - const filePath = providedFilePath || ""; - - debug(`Lint ${filePath}`); - - /* - * Verify. - * `config.extractConfig(filePath)` requires an absolute path, but `linter` - * doesn't know CWD, so it gives `linter` an absolute path always. - */ - const filePathToVerify = filePath === "" ? getPlaceholderPath(cwd) : filePath; - const { fixed, messages, output } = linter.verifyAndFix( - text, - configs, - { - allowInlineConfig, - filename: filePathToVerify, - fix, - ruleFilter, - stats, - - /** - * Check if the linter should adopt a given code block or not. - * @param {string} blockFilename The virtual filename of a code block. - * @returns {boolean} `true` if the linter should adopt the code block. - */ - filterCodeBlock(blockFilename) { - return configs.getConfig(blockFilename) !== void 0; - } - } - ); - - // Tweak and return. - const result = { - filePath: filePath === "" ? filePath : path.resolve(filePath), - messages, - suppressedMessages: linter.getSuppressedMessages(), - ...calculateStatsPerFile(messages) - }; - - if (fixed) { - result.output = output; - } - - if ( - result.errorCount + result.warningCount > 0 && - typeof result.output === "undefined" - ) { - result.source = text; - } - - if (stats) { - result.stats = { - times: linter.getTimes(), - fixPasses: linter.getFixPassCount() - }; - } - - return result; -} - -/** - * Checks whether a message's rule type should be fixed. - * @param {LintMessage} message The message to check. - * @param {FlatConfig} config The config for the file that generated the message. - * @param {string[]} fixTypes An array of fix types to check. - * @returns {boolean} Whether the message should be fixed. - */ -function shouldMessageBeFixed(message, config, fixTypes) { - if (!message.ruleId) { - return fixTypes.has("directive"); - } - - const rule = message.ruleId && getRuleFromConfig(message.ruleId, config); - - return Boolean(rule && rule.meta && fixTypes.has(rule.meta.type)); -} - -/** - * Creates an error to be thrown when an array of results passed to `getRulesMetaForResults` was not created by the current engine. - * @returns {TypeError} An error object. - */ -function createExtraneousResultsError() { - return new TypeError("Results object was not created from this ESLint instance."); -} - -//----------------------------------------------------------------------------- -// Main API -//----------------------------------------------------------------------------- - -/** - * Primary Node.js API for ESLint. - */ -class ESLint { - - /** - * The type of configuration used by this class. - * @type {string} - */ - static configType = "flat"; - - /** - * Creates a new instance of the main ESLint API. - * @param {ESLintOptions} options The options for this instance. - */ - constructor(options = {}) { - - const defaultConfigs = []; - const processedOptions = processOptions(options); - const linter = new Linter({ - cwd: processedOptions.cwd, - configType: "flat", - flags: processedOptions.flags - }); - - const cacheFilePath = getCacheFile( - processedOptions.cacheLocation, - processedOptions.cwd - ); - - const lintResultCache = processedOptions.cache - ? new LintResultCache(cacheFilePath, processedOptions.cacheStrategy) - : null; - - privateMembers.set(this, { - options: processedOptions, - linter, - cacheFilePath, - lintResultCache, - defaultConfigs, - configs: null - }); - - /** - * If additional plugins are passed in, add that to the default - * configs for this instance. - */ - if (options.plugins) { - - const plugins = {}; - - for (const [pluginName, plugin] of Object.entries(options.plugins)) { - plugins[naming.getShorthandName(pluginName, "eslint-plugin")] = plugin; - } - - defaultConfigs.push({ - plugins - }); - } - - // Check for the .eslintignore file, and warn if it's present. - if (existsSync(path.resolve(processedOptions.cwd, ".eslintignore"))) { - process.emitWarning( - "The \".eslintignore\" file is no longer supported. Switch to using the \"ignores\" property in \"eslint.config.js\": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files", - "ESLintIgnoreWarning" - ); - } - } - - /** - * The version text. - * @type {string} - */ - static get version() { - return version; - } - - /** - * Outputs fixes from the given results to files. - * @param {LintResult[]} results The lint results. - * @returns {Promise} Returns a promise that is used to track side effects. - */ - static async outputFixes(results) { - if (!Array.isArray(results)) { - throw new Error("'results' must be an array"); - } - - await Promise.all( - results - .filter(result => { - if (typeof result !== "object" || result === null) { - throw new Error("'results' must include only objects"); - } - return ( - typeof result.output === "string" && - path.isAbsolute(result.filePath) - ); - }) - .map(r => fs.writeFile(r.filePath, r.output)) - ); - } - - /** - * Returns results that only contains errors. - * @param {LintResult[]} results The results to filter. - * @returns {LintResult[]} The filtered results. - */ - static getErrorResults(results) { - const filtered = []; - - results.forEach(result => { - const filteredMessages = result.messages.filter(isErrorMessage); - const filteredSuppressedMessages = result.suppressedMessages.filter(isErrorMessage); - - if (filteredMessages.length > 0) { - filtered.push({ - ...result, - messages: filteredMessages, - suppressedMessages: filteredSuppressedMessages, - errorCount: filteredMessages.length, - warningCount: 0, - fixableErrorCount: result.fixableErrorCount, - fixableWarningCount: 0 - }); - } - }); - - return filtered; - } - - /** - * Returns meta objects for each rule represented in the lint results. - * @param {LintResult[]} results The results to fetch rules meta for. - * @returns {Object} A mapping of ruleIds to rule meta objects. - * @throws {TypeError} When the results object wasn't created from this ESLint instance. - * @throws {TypeError} When a plugin or rule is missing. - */ - getRulesMetaForResults(results) { - - // short-circuit simple case - if (results.length === 0) { - return {}; - } - - const resultRules = new Map(); - const { - configs, - options: { cwd } - } = privateMembers.get(this); - - /* - * We can only accurately return rules meta information for linting results if the - * results were created by this instance. Otherwise, the necessary rules data is - * not available. So if the config array doesn't already exist, just throw an error - * to let the user know we can't do anything here. - */ - if (!configs) { - throw createExtraneousResultsError(); - } - - for (const result of results) { - - /* - * Normalize filename for . - */ - const filePath = result.filePath === "" - ? getPlaceholderPath(cwd) : result.filePath; - const allMessages = result.messages.concat(result.suppressedMessages); - - for (const { ruleId } of allMessages) { - if (!ruleId) { - continue; - } - - /* - * All of the plugin and rule information is contained within the - * calculated config for the given file. - */ - const config = configs.getConfig(filePath); - - if (!config) { - throw createExtraneousResultsError(); - } - const rule = getRuleFromConfig(ruleId, config); - - // ignore unknown rules - if (rule) { - resultRules.set(ruleId, rule); - } - } - } - - return createRulesMeta(resultRules); - } - - /** - * Indicates if the given feature flag is enabled for this instance. - * @param {string} flag The feature flag to check. - * @returns {boolean} `true` if the feature flag is enabled, `false` if not. - */ - hasFlag(flag) { - - // note: Linter does validation of the flags - return privateMembers.get(this).linter.hasFlag(flag); - } - - /** - * Executes the current configuration on an array of file and directory names. - * @param {string|string[]} patterns An array of file and directory names. - * @returns {Promise} The results of linting the file patterns given. - */ - async lintFiles(patterns) { - - let normalizedPatterns = patterns; - const { - cacheFilePath, - lintResultCache, - linter, - options: eslintOptions - } = privateMembers.get(this); - - /* - * Special cases: - * 1. `patterns` is an empty string - * 2. `patterns` is an empty array - * - * In both cases, we use the cwd as the directory to lint. - */ - if (patterns === "" || Array.isArray(patterns) && patterns.length === 0) { - - /* - * Special case: If `passOnNoPatterns` is true, then we just exit - * without doing any work. - */ - if (eslintOptions.passOnNoPatterns) { - return []; - } - - normalizedPatterns = ["."]; - } else { - - if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { - throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); - } - - if (typeof patterns === "string") { - normalizedPatterns = [patterns]; - } - } - - debug(`Using file patterns: ${normalizedPatterns}`); - - const configs = await calculateConfigArray(this, eslintOptions); - const { - allowInlineConfig, - cache, - cwd, - fix, - fixTypes, - ruleFilter, - stats, - globInputPaths, - errorOnUnmatchedPattern, - warnIgnored - } = eslintOptions; - const startTime = Date.now(); - const fixTypesSet = fixTypes ? new Set(fixTypes) : null; - - // Delete cache file; should this be done here? - if (!cache && cacheFilePath) { - debug(`Deleting cache file at ${cacheFilePath}`); - - try { - await fs.unlink(cacheFilePath); - } catch (error) { - const errorCode = error && error.code; - - // Ignore errors when no such file exists or file system is read only (and cache file does not exist) - if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync(cacheFilePath))) { - throw error; - } - } - } - - const filePaths = await findFiles({ - patterns: normalizedPatterns, - cwd, - globInputPaths, - configs, - errorOnUnmatchedPattern - }); - const controller = new AbortController(); - const retryCodes = new Set(["ENFILE", "EMFILE"]); - const retrier = new Retrier(error => retryCodes.has(error.code)); - - debug(`${filePaths.length} files found in: ${Date.now() - startTime}ms`); - - /* - * Because we need to process multiple files, including reading from disk, - * it is most efficient to start by reading each file via promises so that - * they can be done in parallel. Then, we can lint the returned text. This - * ensures we are waiting the minimum amount of time in between lints. - */ - const results = await Promise.all( - - filePaths.map(filePath => { - - const config = configs.getConfig(filePath); - - /* - * If a filename was entered that cannot be matched - * to a config, then notify the user. - */ - if (!config) { - if (warnIgnored) { - const configStatus = configs.getConfigStatus(filePath); - - return createIgnoreResult(filePath, cwd, configStatus); - } - - return void 0; - } - - // Skip if there is cached result. - if (lintResultCache) { - const cachedResult = - lintResultCache.getCachedLintResults(filePath, config); - - if (cachedResult) { - const hadMessages = - cachedResult.messages && - cachedResult.messages.length > 0; - - if (hadMessages && fix) { - debug(`Reprocessing cached file to allow autofix: ${filePath}`); - } else { - debug(`Skipping file since it hasn't changed: ${filePath}`); - return cachedResult; - } - } - } - - - // set up fixer for fixTypes if necessary - let fixer = fix; - - if (fix && fixTypesSet) { - - // save original value of options.fix in case it's a function - const originalFix = (typeof fix === "function") - ? fix : () => true; - - fixer = message => shouldMessageBeFixed(message, config, fixTypesSet) && originalFix(message); - } - - return retrier.retry(() => fs.readFile(filePath, { encoding: "utf8", signal: controller.signal }) - .then(text => { - - // fail immediately if an error occurred in another file - controller.signal.throwIfAborted(); - - // do the linting - const result = verifyText({ - text, - filePath, - configs, - cwd, - fix: fixer, - allowInlineConfig, - ruleFilter, - stats, - linter - }); - - /* - * Store the lint result in the LintResultCache. - * NOTE: The LintResultCache will remove the file source and any - * other properties that are difficult to serialize, and will - * hydrate those properties back in on future lint runs. - */ - if (lintResultCache) { - lintResultCache.setCachedLintResults(filePath, config, result); - } - - return result; - })) - .catch(error => { - controller.abort(error); - throw error; - }); - }) - ); - - // Persist the cache to disk. - if (lintResultCache) { - lintResultCache.reconcile(); - } - - const finalResults = results.filter(result => !!result); - - return processLintReport(this, { - results: finalResults - }); - } - - /** - * Executes the current configuration on text. - * @param {string} code A string of JavaScript code to lint. - * @param {Object} [options] The options. - * @param {string} [options.filePath] The path to the file of the source code. - * @param {boolean} [options.warnIgnored] When set to true, warn if given filePath is an ignored path. - * @returns {Promise} The results of linting the string of code given. - */ - async lintText(code, options = {}) { - - // Parameter validation - - if (typeof code !== "string") { - throw new Error("'code' must be a string"); - } - - if (typeof options !== "object") { - throw new Error("'options' must be an object, null, or undefined"); - } - - // Options validation - - const { - filePath, - warnIgnored, - ...unknownOptions - } = options || {}; - - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length > 0) { - throw new Error(`'options' must not include the unknown option(s): ${unknownOptionKeys.join(", ")}`); - } - - if (filePath !== void 0 && !isNonEmptyString(filePath)) { - throw new Error("'options.filePath' must be a non-empty string or undefined"); - } - - if (typeof warnIgnored !== "boolean" && typeof warnIgnored !== "undefined") { - throw new Error("'options.warnIgnored' must be a boolean or undefined"); - } - - // Now we can get down to linting - - const { - linter, - options: eslintOptions - } = privateMembers.get(this); - const configs = await calculateConfigArray(this, eslintOptions); - const { - allowInlineConfig, - cwd, - fix, - warnIgnored: constructorWarnIgnored, - ruleFilter, - stats - } = eslintOptions; - const results = []; - const startTime = Date.now(); - const resolvedFilename = path.resolve(cwd, filePath || "__placeholder__.js"); - - // Clear the last used config arrays. - if (resolvedFilename && await this.isPathIgnored(resolvedFilename)) { - const shouldWarnIgnored = typeof warnIgnored === "boolean" ? warnIgnored : constructorWarnIgnored; - - if (shouldWarnIgnored) { - const configStatus = configs.getConfigStatus(resolvedFilename); - - results.push(createIgnoreResult(resolvedFilename, cwd, configStatus)); - } - } else { - - // Do lint. - results.push(verifyText({ - text: code, - filePath: resolvedFilename.endsWith("__placeholder__.js") ? "" : resolvedFilename, - configs, - cwd, - fix, - allowInlineConfig, - ruleFilter, - stats, - linter - })); - } - - debug(`Linting complete in: ${Date.now() - startTime}ms`); - - return processLintReport(this, { - results - }); - - } - - /** - * Returns the formatter representing the given formatter name. - * @param {string} [name] The name of the formatter to load. - * The following values are allowed: - * - `undefined` ... Load `stylish` builtin formatter. - * - A builtin formatter name ... Load the builtin formatter. - * - A third-party formatter name: - * - `foo` → `eslint-formatter-foo` - * - `@foo` → `@foo/eslint-formatter` - * - `@foo/bar` → `@foo/eslint-formatter-bar` - * - A file path ... Load the file. - * @returns {Promise} A promise resolving to the formatter object. - * This promise will be rejected if the given formatter was not found or not - * a function. - */ - async loadFormatter(name = "stylish") { - if (typeof name !== "string") { - throw new Error("'name' must be a string"); - } - - // replace \ with / for Windows compatibility - const normalizedFormatName = name.replace(/\\/gu, "/"); - const namespace = naming.getNamespaceFromTerm(normalizedFormatName); - - // grab our options - const { cwd } = privateMembers.get(this).options; - - - let formatterPath; - - // if there's a slash, then it's a file (TODO: this check seems dubious for scoped npm packages) - if (!namespace && normalizedFormatName.includes("/")) { - formatterPath = path.resolve(cwd, normalizedFormatName); - } else { - try { - const npmFormat = naming.normalizePackageName(normalizedFormatName, "eslint-formatter"); - - // TODO: This is pretty dirty...would be nice to clean up at some point. - formatterPath = ModuleResolver.resolve(npmFormat, getPlaceholderPath(cwd)); - } catch { - formatterPath = path.resolve(__dirname, "../", "cli-engine", "formatters", `${normalizedFormatName}.js`); - } - } - - let formatter; - - try { - formatter = (await import(pathToFileURL(formatterPath))).default; - } catch (ex) { - - // check for formatters that have been removed - if (removedFormatters.has(name)) { - ex.message = `The ${name} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${name}\``; - } else { - ex.message = `There was a problem loading formatter: ${formatterPath}\nError: ${ex.message}`; - } - - throw ex; - } - - - if (typeof formatter !== "function") { - throw new TypeError(`Formatter must be a function, but got a ${typeof formatter}.`); - } - - const eslint = this; - - return { - - /** - * The main formatter method. - * @param {LintResult[]} results The lint results to format. - * @param {ResultsMeta} resultsMeta Warning count and max threshold. - * @returns {string} The formatted lint results. - */ - format(results, resultsMeta) { - let rulesMeta = null; - - results.sort(compareResultsByFilePath); - - return formatter(results, { - ...resultsMeta, - cwd, - get rulesMeta() { - if (!rulesMeta) { - rulesMeta = eslint.getRulesMetaForResults(results); - } - - return rulesMeta; - } - }); - } - }; - } - - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine - * configuration for each file it processes. - * @param {string} filePath The path of the file to retrieve a config object for. - * @returns {Promise} A configuration object for the file - * or `undefined` if there is no configuration data for the object. - */ - async calculateConfigForFile(filePath) { - if (!isNonEmptyString(filePath)) { - throw new Error("'filePath' must be a non-empty string"); - } - const options = privateMembers.get(this).options; - const absolutePath = path.resolve(options.cwd, filePath); - const configs = await calculateConfigArray(this, options); - - return configs.getConfig(absolutePath); - } - - /** - * Finds the config file being used by this instance based on the options - * passed to the constructor. - * @returns {Promise} The path to the config file being used or - * `undefined` if no config file is being used. - */ - async findConfigFile() { - const options = privateMembers.get(this).options; - const { configFilePath } = await locateConfigFileToUse(options, this.hasFlag("unstable_ts_config")); - - return configFilePath; - } - - /** - * Checks if a given path is ignored by ESLint. - * @param {string} filePath The path of the file to check. - * @returns {Promise} Whether or not the given path is ignored. - */ - async isPathIgnored(filePath) { - const config = await this.calculateConfigForFile(filePath); - - return config === void 0; - } -} - -/** - * Returns whether flat config should be used. - * @returns {Promise} Whether flat config should be used. - */ -async function shouldUseFlatConfig() { - return (process.env.ESLINT_USE_FLAT_CONFIG !== "false"); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - ESLint, - shouldUseFlatConfig, - locateConfigFileToUse -}; diff --git a/graphql/node_modules/eslint/lib/eslint/index.js b/graphql/node_modules/eslint/lib/eslint/index.js deleted file mode 100644 index b7c52a4e..00000000 --- a/graphql/node_modules/eslint/lib/eslint/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -const { ESLint } = require("./eslint"); -const { LegacyESLint } = require("./legacy-eslint"); - -module.exports = { - ESLint, - LegacyESLint -}; diff --git a/graphql/node_modules/eslint/lib/eslint/legacy-eslint.js b/graphql/node_modules/eslint/lib/eslint/legacy-eslint.js deleted file mode 100644 index f282e587..00000000 --- a/graphql/node_modules/eslint/lib/eslint/legacy-eslint.js +++ /dev/null @@ -1,742 +0,0 @@ -/** - * @fileoverview Main API Class - * @author Kai Cataldo - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const path = require("node:path"); -const fs = require("node:fs"); -const { promisify } = require("node:util"); -const { CLIEngine, getCLIEngineInternalSlots } = require("../cli-engine/cli-engine"); -const BuiltinRules = require("../rules"); -const { - Legacy: { - ConfigOps: { - getRuleSeverity - } - } -} = require("@eslint/eslintrc"); -const { version } = require("../../package.json"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../cli-engine/cli-engine").LintReport} CLIEngineLintReport */ -/** @typedef {import("../shared/types").DeprecatedRuleInfo} DeprecatedRuleInfo */ -/** @typedef {import("../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */ -/** @typedef {import("../shared/types").Plugin} Plugin */ -/** @typedef {import("../shared/types").Rule} Rule */ -/** @typedef {import("../shared/types").LintResult} LintResult */ -/** @typedef {import("../shared/types").ResultsMeta} ResultsMeta */ - -/** - * The main formatter object. - * @typedef LoadedFormatter - * @property {(results: LintResult[], resultsMeta: ResultsMeta) => string | Promise} format format function. - */ - -/** - * The options with which to configure the LegacyESLint instance. - * @typedef {Object} LegacyESLintOptions - * @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments. - * @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this instance - * @property {boolean} [cache] Enable result caching. - * @property {string} [cacheLocation] The cache file to use instead of .eslintcache. - * @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files. - * @property {string} [cwd] The value to use for the current working directory. - * @property {boolean} [errorOnUnmatchedPattern] If `false` then `ESLint#lintFiles()` doesn't throw even if no target files found. Defaults to `true`. - * @property {string[]} [extensions] An array of file extensions to check. - * @property {boolean|Function} [fix] Execute in autofix mode. If a function, should return a boolean. - * @property {string[]} [fixTypes] Array of rule types to apply fixes for. - * @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file. - * @property {boolean} [ignore] False disables use of .eslintignore. - * @property {string} [ignorePath] The ignore file to use instead of .eslintignore. - * @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance - * @property {string} [overrideConfigFile] The configuration file to use. - * @property {Record|null} [plugins] Preloaded plugins. This is a map-like object, keys are plugin IDs and each value is implementation. - * @property {"error" | "warn" | "off"} [reportUnusedDisableDirectives] the severity to report unused eslint-disable directives. - * @property {string} [resolvePluginsRelativeTo] The folder where plugins should be resolved from, defaulting to the CWD. - * @property {string[]} [rulePaths] An array of directories to load custom rules from. - * @property {boolean} [useEslintrc] False disables looking for .eslintrc.* files. - * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause - * the linting operation to short circuit and not report any failures. - */ - -/** - * A rules metadata object. - * @typedef {Object} RulesMeta - * @property {string} id The plugin ID. - * @property {Object} definition The plugin definition. - */ - -/** - * Private members for the `ESLint` instance. - * @typedef {Object} ESLintPrivateMembers - * @property {CLIEngine} cliEngine The wrapped CLIEngine instance. - * @property {LegacyESLintOptions} options The options used to instantiate the ESLint instance. - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const writeFile = promisify(fs.writeFile); - -/** - * The map with which to store private class members. - * @type {WeakMap} - */ -const privateMembersMap = new WeakMap(); - -/** - * Check if a given value is a non-empty string or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is a non-empty string. - */ -function isNonEmptyString(value) { - return typeof value === "string" && value.trim() !== ""; -} - -/** - * Check if a given value is an array of non-empty strings or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is an array of non-empty strings. - */ -function isArrayOfNonEmptyString(value) { - return Array.isArray(value) && value.length && value.every(isNonEmptyString); -} - -/** - * Check if a given value is an empty array or an array of non-empty strings. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is an empty array or an array of non-empty - * strings. - */ -function isEmptyArrayOrArrayOfNonEmptyString(value) { - return Array.isArray(value) && value.every(isNonEmptyString); -} - -/** - * Check if a given value is a valid fix type or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is valid fix type. - */ -function isFixType(value) { - return value === "directive" || value === "problem" || value === "suggestion" || value === "layout"; -} - -/** - * Check if a given value is an array of fix types or not. - * @param {any} value The value to check. - * @returns {boolean} `true` if `value` is an array of fix types. - */ -function isFixTypeArray(value) { - return Array.isArray(value) && value.every(isFixType); -} - -/** - * The error for invalid options. - */ -class ESLintInvalidOptionsError extends Error { - constructor(messages) { - super(`Invalid Options:\n- ${messages.join("\n- ")}`); - this.code = "ESLINT_INVALID_OPTIONS"; - Error.captureStackTrace(this, ESLintInvalidOptionsError); - } -} - -/** - * Validates and normalizes options for the wrapped CLIEngine instance. - * @param {LegacyESLintOptions} options The options to process. - * @throws {ESLintInvalidOptionsError} If of any of a variety of type errors. - * @returns {LegacyESLintOptions} The normalized options. - */ -function processOptions({ - allowInlineConfig = true, // ← we cannot use `overrideConfig.noInlineConfig` instead because `allowInlineConfig` has side-effect that suppress warnings that show inline configs are ignored. - baseConfig = null, - cache = false, - cacheLocation = ".eslintcache", - cacheStrategy = "metadata", - cwd = process.cwd(), - errorOnUnmatchedPattern = true, - extensions = null, // ← should be null by default because if it's an array then it suppresses RFC20 feature. - fix = false, - fixTypes = null, // ← should be null by default because if it's an array then it suppresses rules that don't have the `meta.type` property. - flags, /* eslint-disable-line no-unused-vars -- leaving for compatibility with ESLint#hasFlag */ - globInputPaths = true, - ignore = true, - ignorePath = null, // ← should be null by default because if it's a string then it may throw ENOENT. - overrideConfig = null, - overrideConfigFile = null, - plugins = {}, - reportUnusedDisableDirectives = null, // ← should be null by default because if it's a string then it overrides the 'reportUnusedDisableDirectives' setting in config files. And we cannot use `overrideConfig.reportUnusedDisableDirectives` instead because we cannot configure the `error` severity with that. - resolvePluginsRelativeTo = null, // ← should be null by default because if it's a string then it suppresses RFC47 feature. - rulePaths = [], - useEslintrc = true, - passOnNoPatterns = false, - ...unknownOptions -}) { - const errors = []; - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length >= 1) { - errors.push(`Unknown options: ${unknownOptionKeys.join(", ")}`); - if (unknownOptionKeys.includes("cacheFile")) { - errors.push("'cacheFile' has been removed. Please use the 'cacheLocation' option instead."); - } - if (unknownOptionKeys.includes("configFile")) { - errors.push("'configFile' has been removed. Please use the 'overrideConfigFile' option instead."); - } - if (unknownOptionKeys.includes("envs")) { - errors.push("'envs' has been removed. Please use the 'overrideConfig.env' option instead."); - } - if (unknownOptionKeys.includes("globals")) { - errors.push("'globals' has been removed. Please use the 'overrideConfig.globals' option instead."); - } - if (unknownOptionKeys.includes("ignorePattern")) { - errors.push("'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead."); - } - if (unknownOptionKeys.includes("parser")) { - errors.push("'parser' has been removed. Please use the 'overrideConfig.parser' option instead."); - } - if (unknownOptionKeys.includes("parserOptions")) { - errors.push("'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead."); - } - if (unknownOptionKeys.includes("rules")) { - errors.push("'rules' has been removed. Please use the 'overrideConfig.rules' option instead."); - } - } - if (typeof allowInlineConfig !== "boolean") { - errors.push("'allowInlineConfig' must be a boolean."); - } - if (typeof baseConfig !== "object") { - errors.push("'baseConfig' must be an object or null."); - } - if (typeof cache !== "boolean") { - errors.push("'cache' must be a boolean."); - } - if (!isNonEmptyString(cacheLocation)) { - errors.push("'cacheLocation' must be a non-empty string."); - } - if ( - cacheStrategy !== "metadata" && - cacheStrategy !== "content" - ) { - errors.push("'cacheStrategy' must be any of \"metadata\", \"content\"."); - } - if (!isNonEmptyString(cwd) || !path.isAbsolute(cwd)) { - errors.push("'cwd' must be an absolute path."); - } - if (typeof errorOnUnmatchedPattern !== "boolean") { - errors.push("'errorOnUnmatchedPattern' must be a boolean."); - } - if (!isEmptyArrayOrArrayOfNonEmptyString(extensions) && extensions !== null) { - errors.push("'extensions' must be an array of non-empty strings or null."); - } - if (typeof fix !== "boolean" && typeof fix !== "function") { - errors.push("'fix' must be a boolean or a function."); - } - if (fixTypes !== null && !isFixTypeArray(fixTypes)) { - errors.push("'fixTypes' must be an array of any of \"directive\", \"problem\", \"suggestion\", and \"layout\"."); - } - if (typeof globInputPaths !== "boolean") { - errors.push("'globInputPaths' must be a boolean."); - } - if (typeof ignore !== "boolean") { - errors.push("'ignore' must be a boolean."); - } - if (!isNonEmptyString(ignorePath) && ignorePath !== null) { - errors.push("'ignorePath' must be a non-empty string or null."); - } - if (typeof overrideConfig !== "object") { - errors.push("'overrideConfig' must be an object or null."); - } - if (!isNonEmptyString(overrideConfigFile) && overrideConfigFile !== null) { - errors.push("'overrideConfigFile' must be a non-empty string or null."); - } - if (typeof plugins !== "object") { - errors.push("'plugins' must be an object or null."); - } else if (plugins !== null && Object.keys(plugins).includes("")) { - errors.push("'plugins' must not include an empty string."); - } - if (Array.isArray(plugins)) { - errors.push("'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead."); - } - if ( - reportUnusedDisableDirectives !== "error" && - reportUnusedDisableDirectives !== "warn" && - reportUnusedDisableDirectives !== "off" && - reportUnusedDisableDirectives !== null - ) { - errors.push("'reportUnusedDisableDirectives' must be any of \"error\", \"warn\", \"off\", and null."); - } - if ( - !isNonEmptyString(resolvePluginsRelativeTo) && - resolvePluginsRelativeTo !== null - ) { - errors.push("'resolvePluginsRelativeTo' must be a non-empty string or null."); - } - if (!isEmptyArrayOrArrayOfNonEmptyString(rulePaths)) { - errors.push("'rulePaths' must be an array of non-empty strings."); - } - if (typeof useEslintrc !== "boolean") { - errors.push("'useEslintrc' must be a boolean."); - } - if (typeof passOnNoPatterns !== "boolean") { - errors.push("'passOnNoPatterns' must be a boolean."); - } - - if (errors.length > 0) { - throw new ESLintInvalidOptionsError(errors); - } - - return { - allowInlineConfig, - baseConfig, - cache, - cacheLocation, - cacheStrategy, - configFile: overrideConfigFile, - cwd: path.normalize(cwd), - errorOnUnmatchedPattern, - extensions, - fix, - fixTypes, - flags: [], // LegacyESLint does not support flags, so just ignore them. - globInputPaths, - ignore, - ignorePath, - reportUnusedDisableDirectives, - resolvePluginsRelativeTo, - rulePaths, - useEslintrc, - passOnNoPatterns - }; -} - -/** - * Check if a value has one or more properties and that value is not undefined. - * @param {any} obj The value to check. - * @returns {boolean} `true` if `obj` has one or more properties that that value is not undefined. - */ -function hasDefinedProperty(obj) { - if (typeof obj === "object" && obj !== null) { - for (const key in obj) { - if (typeof obj[key] !== "undefined") { - return true; - } - } - } - return false; -} - -/** - * Create rulesMeta object. - * @param {Map} rules a map of rules from which to generate the object. - * @returns {Object} metadata for all enabled rules. - */ -function createRulesMeta(rules) { - return Array.from(rules).reduce((retVal, [id, rule]) => { - retVal[id] = rule.meta; - return retVal; - }, {}); -} - -/** @type {WeakMap} */ -const usedDeprecatedRulesCache = new WeakMap(); - -/** - * Create used deprecated rule list. - * @param {CLIEngine} cliEngine The CLIEngine instance. - * @param {string} maybeFilePath The absolute path to a lint target file or `""`. - * @returns {DeprecatedRuleInfo[]} The used deprecated rule list. - */ -function getOrFindUsedDeprecatedRules(cliEngine, maybeFilePath) { - const { - configArrayFactory, - options: { cwd } - } = getCLIEngineInternalSlots(cliEngine); - const filePath = path.isAbsolute(maybeFilePath) - ? maybeFilePath - : path.join(cwd, "__placeholder__.js"); - const configArray = configArrayFactory.getConfigArrayForFile(filePath); - const config = configArray.extractConfig(filePath); - - // Most files use the same config, so cache it. - if (!usedDeprecatedRulesCache.has(config)) { - const pluginRules = configArray.pluginRules; - const retv = []; - - for (const [ruleId, ruleConf] of Object.entries(config.rules)) { - if (getRuleSeverity(ruleConf) === 0) { - continue; - } - const rule = pluginRules.get(ruleId) || BuiltinRules.get(ruleId); - const meta = rule && rule.meta; - - if (meta && meta.deprecated) { - retv.push({ ruleId, replacedBy: meta.replacedBy || [] }); - } - } - - usedDeprecatedRulesCache.set(config, Object.freeze(retv)); - } - - return usedDeprecatedRulesCache.get(config); -} - -/** - * Processes the linting results generated by a CLIEngine linting report to - * match the ESLint class's API. - * @param {CLIEngine} cliEngine The CLIEngine instance. - * @param {CLIEngineLintReport} report The CLIEngine linting report to process. - * @returns {LintResult[]} The processed linting results. - */ -function processCLIEngineLintReport(cliEngine, { results }) { - const descriptor = { - configurable: true, - enumerable: true, - get() { - return getOrFindUsedDeprecatedRules(cliEngine, this.filePath); - } - }; - - for (const result of results) { - Object.defineProperty(result, "usedDeprecatedRules", descriptor); - } - - return results; -} - -/** - * An Array.prototype.sort() compatible compare function to order results by their file path. - * @param {LintResult} a The first lint result. - * @param {LintResult} b The second lint result. - * @returns {number} An integer representing the order in which the two results should occur. - */ -function compareResultsByFilePath(a, b) { - if (a.filePath < b.filePath) { - return -1; - } - - if (a.filePath > b.filePath) { - return 1; - } - - return 0; -} - -/** - * Main API. - */ -class LegacyESLint { - - /** - * The type of configuration used by this class. - * @type {string} - */ - static configType = "eslintrc"; - - /** - * Creates a new instance of the main ESLint API. - * @param {LegacyESLintOptions} options The options for this instance. - */ - constructor(options = {}) { - const processedOptions = processOptions(options); - const cliEngine = new CLIEngine(processedOptions, { preloadedPlugins: options.plugins }); - const { - configArrayFactory, - lastConfigArrays - } = getCLIEngineInternalSlots(cliEngine); - let updated = false; - - /* - * Address `overrideConfig` to set override config. - * Operate the `configArrayFactory` internal slot directly because this - * functionality doesn't exist as the public API of CLIEngine. - */ - if (hasDefinedProperty(options.overrideConfig)) { - configArrayFactory.setOverrideConfig(options.overrideConfig); - updated = true; - } - - // Update caches. - if (updated) { - configArrayFactory.clearCache(); - lastConfigArrays[0] = configArrayFactory.getConfigArrayForFile(); - } - - // Initialize private properties. - privateMembersMap.set(this, { - cliEngine, - options: processedOptions - }); - } - - /** - * The version text. - * @type {string} - */ - static get version() { - return version; - } - - /** - * Outputs fixes from the given results to files. - * @param {LintResult[]} results The lint results. - * @returns {Promise} Returns a promise that is used to track side effects. - */ - static async outputFixes(results) { - if (!Array.isArray(results)) { - throw new Error("'results' must be an array"); - } - - await Promise.all( - results - .filter(result => { - if (typeof result !== "object" || result === null) { - throw new Error("'results' must include only objects"); - } - return ( - typeof result.output === "string" && - path.isAbsolute(result.filePath) - ); - }) - .map(r => writeFile(r.filePath, r.output)) - ); - } - - /** - * Returns results that only contains errors. - * @param {LintResult[]} results The results to filter. - * @returns {LintResult[]} The filtered results. - */ - static getErrorResults(results) { - return CLIEngine.getErrorResults(results); - } - - /** - * Returns meta objects for each rule represented in the lint results. - * @param {LintResult[]} results The results to fetch rules meta for. - * @returns {Object} A mapping of ruleIds to rule meta objects. - */ - getRulesMetaForResults(results) { - - const resultRuleIds = new Set(); - - // first gather all ruleIds from all results - - for (const result of results) { - for (const { ruleId } of result.messages) { - resultRuleIds.add(ruleId); - } - for (const { ruleId } of result.suppressedMessages) { - resultRuleIds.add(ruleId); - } - } - - // create a map of all rules in the results - - const { cliEngine } = privateMembersMap.get(this); - const rules = cliEngine.getRules(); - const resultRules = new Map(); - - for (const [ruleId, rule] of rules) { - if (resultRuleIds.has(ruleId)) { - resultRules.set(ruleId, rule); - } - } - - return createRulesMeta(resultRules); - - } - - /* eslint-disable no-unused-vars, class-methods-use-this -- leaving for compatibility with ESLint#hasFlag */ - /** - * Indicates if the given feature flag is enabled for this instance. For this - * class, this always returns `false` because it does not support feature flags. - * @param {string} flag The feature flag to check. - * @returns {boolean} Always false. - */ - hasFlag(flag) { - return false; - } - /* eslint-enable no-unused-vars, class-methods-use-this -- reenable rules for the rest of the file */ - - /** - * Executes the current configuration on an array of file and directory names. - * @param {string[]} patterns An array of file and directory names. - * @returns {Promise} The results of linting the file patterns given. - */ - async lintFiles(patterns) { - const { cliEngine, options } = privateMembersMap.get(this); - - if (options.passOnNoPatterns && (patterns === "" || (Array.isArray(patterns) && patterns.length === 0))) { - return []; - } - - if (!isNonEmptyString(patterns) && !isArrayOfNonEmptyString(patterns)) { - throw new Error("'patterns' must be a non-empty string or an array of non-empty strings"); - } - - return processCLIEngineLintReport( - cliEngine, - cliEngine.executeOnFiles(patterns) - ); - } - - /** - * Executes the current configuration on text. - * @param {string} code A string of JavaScript code to lint. - * @param {Object} [options] The options. - * @param {string} [options.filePath] The path to the file of the source code. - * @param {boolean} [options.warnIgnored] When set to true, warn if given filePath is an ignored path. - * @returns {Promise} The results of linting the string of code given. - */ - async lintText(code, options = {}) { - if (typeof code !== "string") { - throw new Error("'code' must be a string"); - } - if (typeof options !== "object") { - throw new Error("'options' must be an object, null, or undefined"); - } - const { - filePath, - warnIgnored = false, - ...unknownOptions - } = options || {}; - - const unknownOptionKeys = Object.keys(unknownOptions); - - if (unknownOptionKeys.length > 0) { - throw new Error(`'options' must not include the unknown option(s): ${unknownOptionKeys.join(", ")}`); - } - - if (filePath !== void 0 && !isNonEmptyString(filePath)) { - throw new Error("'options.filePath' must be a non-empty string or undefined"); - } - if (typeof warnIgnored !== "boolean") { - throw new Error("'options.warnIgnored' must be a boolean or undefined"); - } - - const { cliEngine } = privateMembersMap.get(this); - - return processCLIEngineLintReport( - cliEngine, - cliEngine.executeOnText(code, filePath, warnIgnored) - ); - } - - /** - * Returns the formatter representing the given formatter name. - * @param {string} [name] The name of the formatter to load. - * The following values are allowed: - * - `undefined` ... Load `stylish` builtin formatter. - * - A builtin formatter name ... Load the builtin formatter. - * - A third-party formatter name: - * - `foo` → `eslint-formatter-foo` - * - `@foo` → `@foo/eslint-formatter` - * - `@foo/bar` → `@foo/eslint-formatter-bar` - * - A file path ... Load the file. - * @returns {Promise} A promise resolving to the formatter object. - * This promise will be rejected if the given formatter was not found or not - * a function. - */ - async loadFormatter(name = "stylish") { - if (typeof name !== "string") { - throw new Error("'name' must be a string"); - } - - const { cliEngine, options } = privateMembersMap.get(this); - const formatter = cliEngine.getFormatter(name); - - if (typeof formatter !== "function") { - throw new Error(`Formatter must be a function, but got a ${typeof formatter}.`); - } - - return { - - /** - * The main formatter method. - * @param {LintResult[]} results The lint results to format. - * @param {ResultsMeta} resultsMeta Warning count and max threshold. - * @returns {string | Promise} The formatted lint results. - */ - format(results, resultsMeta) { - let rulesMeta = null; - - results.sort(compareResultsByFilePath); - - return formatter(results, { - ...resultsMeta, - get cwd() { - return options.cwd; - }, - get rulesMeta() { - if (!rulesMeta) { - rulesMeta = createRulesMeta(cliEngine.getRules()); - } - - return rulesMeta; - } - }); - } - }; - } - - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine - * configuration for each file it processes. - * @param {string} filePath The path of the file to retrieve a config object for. - * @returns {Promise} A configuration object for the file. - */ - async calculateConfigForFile(filePath) { - if (!isNonEmptyString(filePath)) { - throw new Error("'filePath' must be a non-empty string"); - } - const { cliEngine } = privateMembersMap.get(this); - - return cliEngine.getConfigForFile(filePath); - } - - /** - * Checks if a given path is ignored by ESLint. - * @param {string} filePath The path of the file to check. - * @returns {Promise} Whether or not the given path is ignored. - */ - async isPathIgnored(filePath) { - if (!isNonEmptyString(filePath)) { - throw new Error("'filePath' must be a non-empty string"); - } - const { cliEngine } = privateMembersMap.get(this); - - return cliEngine.isPathIgnored(filePath); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - LegacyESLint, - - /** - * Get the private class members of a given ESLint instance for tests. - * @param {ESLint} instance The ESLint instance to get. - * @returns {ESLintPrivateMembers} The instance's private class members. - */ - getESLintPrivateMembers(instance) { - return privateMembersMap.get(instance); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/index.js b/graphql/node_modules/eslint/lib/languages/js/index.js deleted file mode 100644 index f8c3ae6c..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/index.js +++ /dev/null @@ -1,252 +0,0 @@ -/** - * @fileoverview JavaScript Language Object - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { SourceCode } = require("./source-code"); -const createDebug = require("debug"); -const astUtils = require("../../shared/ast-utils"); -const eslintScope = require("eslint-scope"); -const evk = require("eslint-visitor-keys"); -const { validateLanguageOptions } = require("./validate-language-options"); - -//----------------------------------------------------------------------------- -// Type Definitions -//----------------------------------------------------------------------------- - -/** @typedef {import("@eslint/core").File} File */ -/** @typedef {import("@eslint/core").Language} Language */ -/** @typedef {import("@eslint/core").OkParseResult} OkParseResult */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const debug = createDebug("eslint:languages:js"); -const DEFAULT_ECMA_VERSION = 5; - -/** - * Analyze scope of the given AST. - * @param {ASTNode} ast The `Program` node to analyze. - * @param {LanguageOptions} languageOptions The parser options. - * @param {Record} visitorKeys The visitor keys. - * @returns {ScopeManager} The analysis result. - */ -function analyzeScope(ast, languageOptions, visitorKeys) { - const parserOptions = languageOptions.parserOptions; - const ecmaFeatures = parserOptions.ecmaFeatures || {}; - const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION; - - return eslintScope.analyze(ast, { - ignoreEval: true, - nodejsScope: ecmaFeatures.globalReturn, - impliedStrict: ecmaFeatures.impliedStrict, - ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6, - sourceType: languageOptions.sourceType || "script", - childVisitorKeys: visitorKeys || evk.KEYS, - fallback: evk.getKeys - }); -} - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * @type {Language} - */ -module.exports = { - - fileType: "text", - lineStart: 1, - columnStart: 0, - nodeTypeKey: "type", - visitorKeys: evk.KEYS, - - validateLanguageOptions, - - /** - * Determines if a given node matches a given selector class. - * @param {string} className The class name to check. - * @param {ASTNode} node The node to check. - * @param {Array} ancestry The ancestry of the node. - * @returns {boolean} True if there's a match, false if not. - * @throws {Error} When an unknown class name is passed. - */ - matchesSelectorClass(className, node, ancestry) { - - /* - * Copyright (c) 2013, Joel Feenstra - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of the ESQuery nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL JOEL FEENSTRA BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - switch (className.toLowerCase()) { - - case "statement": - if (node.type.slice(-9) === "Statement") { - return true; - } - - // fallthrough: interface Declaration <: Statement { } - - case "declaration": - return node.type.slice(-11) === "Declaration"; - - case "pattern": - if (node.type.slice(-7) === "Pattern") { - return true; - } - - // fallthrough: interface Expression <: Node, Pattern { } - - case "expression": - return node.type.slice(-10) === "Expression" || - node.type.slice(-7) === "Literal" || - ( - node.type === "Identifier" && - (ancestry.length === 0 || ancestry[0].type !== "MetaProperty") - ) || - node.type === "MetaProperty"; - - case "function": - return node.type === "FunctionDeclaration" || - node.type === "FunctionExpression" || - node.type === "ArrowFunctionExpression"; - - default: - throw new Error(`Unknown class name: ${className}`); - } - }, - - /** - * Parses the given file into an AST. - * @param {File} file The virtual file to parse. - * @param {Object} options Additional options passed from ESLint. - * @param {LanguageOptions} options.languageOptions The language options. - * @returns {Object} The result of parsing. - */ - parse(file, { languageOptions }) { - - // Note: BOM already removed - const { body: text, path: filePath } = file; - const textToParse = text.replace(astUtils.shebangPattern, (match, captured) => `//${captured}`); - const { ecmaVersion, sourceType, parser } = languageOptions; - const parserOptions = Object.assign( - { ecmaVersion, sourceType }, - languageOptions.parserOptions, - { - loc: true, - range: true, - raw: true, - tokens: true, - comment: true, - eslintVisitorKeys: true, - eslintScopeManager: true, - filePath - } - ); - - /* - * Check for parsing errors first. If there's a parsing error, nothing - * else can happen. However, a parsing error does not throw an error - * from this method - it's just considered a fatal error message, a - * problem that ESLint identified just like any other. - */ - try { - debug("Parsing:", filePath); - const parseResult = (typeof parser.parseForESLint === "function") - ? parser.parseForESLint(textToParse, parserOptions) - : { ast: parser.parse(textToParse, parserOptions) }; - - debug("Parsing successful:", filePath); - - const { - ast, - services: parserServices = {}, - visitorKeys = evk.KEYS, - scopeManager - } = parseResult; - - return { - ok: true, - ast, - parserServices, - visitorKeys, - scopeManager - }; - } catch (ex) { - - // If the message includes a leading line number, strip it: - const message = ex.message.replace(/^line \d+:/iu, "").trim(); - - debug("%s\n%s", message, ex.stack); - - return { - ok: false, - errors: [{ - message, - line: ex.lineNumber, - column: ex.column - }] - }; - } - - }, - - /** - * Creates a new `SourceCode` object from the given information. - * @param {File} file The virtual file to create a `SourceCode` object from. - * @param {OkParseResult} parseResult The result returned from `parse()`. - * @param {Object} options Additional options passed from ESLint. - * @param {LanguageOptions} options.languageOptions The language options. - * @returns {SourceCode} The new `SourceCode` object. - */ - createSourceCode(file, parseResult, { languageOptions }) { - - const { body: text, path: filePath, bom: hasBOM } = file; - const { ast, parserServices, visitorKeys } = parseResult; - - debug("Scope analysis:", filePath); - const scopeManager = parseResult.scopeManager || analyzeScope(ast, languageOptions, visitorKeys); - - debug("Scope analysis successful:", filePath); - - return new SourceCode({ - text, - ast, - hasBOM, - parserServices, - scopeManager, - visitorKeys - }); - } - -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/index.js b/graphql/node_modules/eslint/lib/languages/js/source-code/index.js deleted file mode 100644 index 1ecfbe47..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -const SourceCode = require("./source-code"); - -module.exports = { - SourceCode -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/source-code.js b/graphql/node_modules/eslint/lib/languages/js/source-code/source-code.js deleted file mode 100644 index a37383dd..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/source-code.js +++ /dev/null @@ -1,1318 +0,0 @@ -/** - * @fileoverview Abstraction of JavaScript source code. - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const - { isCommentToken } = require("@eslint-community/eslint-utils"), - TokenStore = require("./token-store"), - astUtils = require("../../../shared/ast-utils"), - Traverser = require("../../../shared/traverser"), - globals = require("../../../../conf/globals"), - { - directivesPattern - } = require("../../../shared/directives"), - - CodePathAnalyzer = require("../../../linter/code-path-analysis/code-path-analyzer"), - createEmitter = require("../../../linter/safe-emitter"), - ConfigCommentParser = require("../../../linter/config-comment-parser"), - - eslintScope = require("eslint-scope"); - -//------------------------------------------------------------------------------ -// Type Definitions -//------------------------------------------------------------------------------ - -/** @typedef {import("eslint-scope").Variable} Variable */ -/** @typedef {import("eslint-scope").Scope} Scope */ -/** @typedef {import("@eslint/core").SourceCode} ISourceCode */ -/** @typedef {import("@eslint/core").Directive} IDirective */ -/** @typedef {import("@eslint/core").TraversalStep} ITraversalStep */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const commentParser = new ConfigCommentParser(); - -const CODE_PATH_EVENTS = [ - "onCodePathStart", - "onCodePathEnd", - "onCodePathSegmentStart", - "onCodePathSegmentEnd", - "onCodePathSegmentLoop", - "onUnreachableCodePathSegmentStart", - "onUnreachableCodePathSegmentEnd" -]; - -/** - * Validates that the given AST has the required information. - * @param {ASTNode} ast The Program node of the AST to check. - * @throws {Error} If the AST doesn't contain the correct information. - * @returns {void} - * @private - */ -function validate(ast) { - if (!ast.tokens) { - throw new Error("AST is missing the tokens array."); - } - - if (!ast.comments) { - throw new Error("AST is missing the comments array."); - } - - if (!ast.loc) { - throw new Error("AST is missing location information."); - } - - if (!ast.range) { - throw new Error("AST is missing range information"); - } -} - -/** - * Retrieves globals for the given ecmaVersion. - * @param {number} ecmaVersion The version to retrieve globals for. - * @returns {Object} The globals for the given ecmaVersion. - */ -function getGlobalsForEcmaVersion(ecmaVersion) { - - switch (ecmaVersion) { - case 3: - return globals.es3; - - case 5: - return globals.es5; - - default: - if (ecmaVersion < 2015) { - return globals[`es${ecmaVersion + 2009}`]; - } - - return globals[`es${ecmaVersion}`]; - } -} - -/** - * Check to see if its a ES6 export declaration. - * @param {ASTNode} astNode An AST node. - * @returns {boolean} whether the given node represents an export declaration. - * @private - */ -function looksLikeExport(astNode) { - return astNode.type === "ExportDefaultDeclaration" || astNode.type === "ExportNamedDeclaration" || - astNode.type === "ExportAllDeclaration" || astNode.type === "ExportSpecifier"; -} - -/** - * Merges two sorted lists into a larger sorted list in O(n) time. - * @param {Token[]} tokens The list of tokens. - * @param {Token[]} comments The list of comments. - * @returns {Token[]} A sorted list of tokens and comments. - * @private - */ -function sortedMerge(tokens, comments) { - const result = []; - let tokenIndex = 0; - let commentIndex = 0; - - while (tokenIndex < tokens.length || commentIndex < comments.length) { - if (commentIndex >= comments.length || tokenIndex < tokens.length && tokens[tokenIndex].range[0] < comments[commentIndex].range[0]) { - result.push(tokens[tokenIndex++]); - } else { - result.push(comments[commentIndex++]); - } - } - - return result; -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -/** - * Determines if two nodes or tokens overlap. - * @param {ASTNode|Token} first The first node or token to check. - * @param {ASTNode|Token} second The second node or token to check. - * @returns {boolean} True if the two nodes or tokens overlap. - * @private - */ -function nodesOrTokensOverlap(first, second) { - return (first.range[0] <= second.range[0] && first.range[1] >= second.range[0]) || - (second.range[0] <= first.range[0] && second.range[1] >= first.range[0]); -} - -/** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * @param {SourceCode} sourceCode The source code object. - * @param {ASTNode|Token} first The first node or token to check between. - * @param {ASTNode|Token} second The second node or token to check between. - * @param {boolean} checkInsideOfJSXText If `true` is present, check inside of JSXText tokens for backward compatibility. - * @returns {boolean} True if there is a whitespace character between - * any of the tokens found between the two given nodes or tokens. - * @public - */ -function isSpaceBetween(sourceCode, first, second, checkInsideOfJSXText) { - if (nodesOrTokensOverlap(first, second)) { - return false; - } - - const [startingNodeOrToken, endingNodeOrToken] = first.range[1] <= second.range[0] - ? [first, second] - : [second, first]; - const firstToken = sourceCode.getLastToken(startingNodeOrToken) || startingNodeOrToken; - const finalToken = sourceCode.getFirstToken(endingNodeOrToken) || endingNodeOrToken; - let currentToken = firstToken; - - while (currentToken !== finalToken) { - const nextToken = sourceCode.getTokenAfter(currentToken, { includeComments: true }); - - if ( - currentToken.range[1] !== nextToken.range[0] || - - /* - * For backward compatibility, check spaces in JSXText. - * https://github.com/eslint/eslint/issues/12614 - */ - ( - checkInsideOfJSXText && - nextToken !== finalToken && - nextToken.type === "JSXText" && - /\s/u.test(nextToken.value) - ) - ) { - return true; - } - - currentToken = nextToken; - } - - return false; -} - -//----------------------------------------------------------------------------- -// Directive Comments -//----------------------------------------------------------------------------- - -/** - * Ensures that variables representing built-in properties of the Global Object, - * and any globals declared by special block comments, are present in the global - * scope. - * @param {Scope} globalScope The global scope. - * @param {Object|undefined} configGlobals The globals declared in configuration - * @param {Object|undefined} inlineGlobals The globals declared in the source code - * @returns {void} - */ -function addDeclaredGlobals(globalScope, configGlobals = {}, inlineGlobals = {}) { - - // Define configured global variables. - for (const id of new Set([...Object.keys(configGlobals), ...Object.keys(inlineGlobals)])) { - - /* - * `normalizeConfigGlobal` will throw an error if a configured global value is invalid. However, these errors would - * typically be caught when validating a config anyway (validity for inline global comments is checked separately). - */ - const configValue = configGlobals[id] === void 0 ? void 0 : normalizeConfigGlobal(configGlobals[id]); - const commentValue = inlineGlobals[id] && inlineGlobals[id].value; - const value = commentValue || configValue; - const sourceComments = inlineGlobals[id] && inlineGlobals[id].comments; - - if (value === "off") { - continue; - } - - let variable = globalScope.set.get(id); - - if (!variable) { - variable = new eslintScope.Variable(id, globalScope); - - globalScope.variables.push(variable); - globalScope.set.set(id, variable); - } - - variable.eslintImplicitGlobalSetting = configValue; - variable.eslintExplicitGlobal = sourceComments !== void 0; - variable.eslintExplicitGlobalComments = sourceComments; - variable.writeable = (value === "writable"); - } - - /* - * "through" contains all references which definitions cannot be found. - * Since we augment the global scope using configuration, we need to update - * references and remove the ones that were added by configuration. - */ - globalScope.through = globalScope.through.filter(reference => { - const name = reference.identifier.name; - const variable = globalScope.set.get(name); - - if (variable) { - - /* - * Links the variable and the reference. - * And this reference is removed from `Scope#through`. - */ - reference.resolved = variable; - variable.references.push(reference); - - return false; - } - - return true; - }); -} - -/** - * Sets the given variable names as exported so they won't be triggered by - * the `no-unused-vars` rule. - * @param {eslint.Scope} globalScope The global scope to define exports in. - * @param {Record} variables An object whose keys are the variable - * names to export. - * @returns {void} - */ -function markExportedVariables(globalScope, variables) { - - Object.keys(variables).forEach(name => { - const variable = globalScope.set.get(name); - - if (variable) { - variable.eslintUsed = true; - variable.eslintExported = true; - } - }); - -} - -const STEP_KIND = { - visit: 1, - call: 2 -}; - -/** - * A class to represent a step in the traversal process. - */ -class TraversalStep { - - /** - * The type of the step. - * @type {string} - */ - type; - - /** - * The kind of the step. Represents the same data as the `type` property - * but it's a number for performance. - * @type {number} - */ - kind; - - /** - * The target of the step. - * @type {ASTNode|string} - */ - target; - - /** - * The phase of the step. - * @type {number|undefined} - */ - phase; - - /** - * The arguments of the step. - * @type {Array} - */ - args; - - /** - * Creates a new instance. - * @param {Object} options The options for the step. - * @param {string} options.type The type of the step. - * @param {ASTNode|string} options.target The target of the step. - * @param {number|undefined} [options.phase] The phase of the step. - * @param {Array} options.args The arguments of the step. - * @returns {void} - */ - constructor({ type, target, phase, args }) { - this.type = type; - this.kind = STEP_KIND[type]; - this.target = target; - this.phase = phase; - this.args = args; - } -} - -/** - * A class to represent a directive comment. - * @implements {IDirective} - */ -class Directive { - - /** - * The type of directive. - * @type {"disable"|"enable"|"disable-next-line"|"disable-line"} - * @readonly - */ - type; - - /** - * The node representing the directive. - * @type {ASTNode|Comment} - * @readonly - */ - node; - - /** - * Everything after the "eslint-disable" portion of the directive, - * but before the "--" that indicates the justification. - * @type {string} - * @readonly - */ - value; - - /** - * The justification for the directive. - * @type {string} - * @readonly - */ - justification; - - /** - * Creates a new instance. - * @param {Object} options The options for the directive. - * @param {"disable"|"enable"|"disable-next-line"|"disable-line"} options.type The type of directive. - * @param {ASTNode|Comment} options.node The node representing the directive. - * @param {string} options.value The value of the directive. - * @param {string} options.justification The justification for the directive. - */ - constructor({ type, node, value, justification }) { - this.type = type; - this.node = node; - this.value = value; - this.justification = justification; - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -const caches = Symbol("caches"); - -/** - * Represents parsed source code. - * @implements {ISourceCode} - */ -class SourceCode extends TokenStore { - - /** - * The cache of steps that were taken while traversing the source code. - * @type {Array} - */ - #steps; - - /** - * Creates a new instance. - * @param {string|Object} textOrConfig The source code text or config object. - * @param {string} textOrConfig.text The source code text. - * @param {ASTNode} textOrConfig.ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - * @param {boolean} textOrConfig.hasBOM Indicates if the text has a Unicode BOM. - * @param {Object|null} textOrConfig.parserServices The parser services. - * @param {ScopeManager|null} textOrConfig.scopeManager The scope of this source code. - * @param {Object|null} textOrConfig.visitorKeys The visitor keys to traverse AST. - * @param {ASTNode} [astIfNoConfig] The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - */ - constructor(textOrConfig, astIfNoConfig) { - let text, hasBOM, ast, parserServices, scopeManager, visitorKeys; - - // Process overloading of arguments - if (typeof textOrConfig === "string") { - text = textOrConfig; - ast = astIfNoConfig; - hasBOM = false; - } else if (typeof textOrConfig === "object" && textOrConfig !== null) { - text = textOrConfig.text; - ast = textOrConfig.ast; - hasBOM = textOrConfig.hasBOM; - parserServices = textOrConfig.parserServices; - scopeManager = textOrConfig.scopeManager; - visitorKeys = textOrConfig.visitorKeys; - } - - validate(ast); - super(ast.tokens, ast.comments); - - /** - * General purpose caching for the class. - */ - this[caches] = new Map([ - ["scopes", new WeakMap()], - ["vars", new Map()], - ["configNodes", void 0] - ]); - - /** - * Indicates if the AST is ESTree compatible. - * @type {boolean} - */ - this.isESTree = ast.type === "Program"; - - /* - * Backwards compatibility for BOM handling. - * - * The `hasBOM` property has been available on the `SourceCode` object - * for a long time and is used to indicate if the source contains a BOM. - * The linter strips the BOM and just passes the `hasBOM` property to the - * `SourceCode` constructor to make it easier for languages to not deal with - * the BOM. - * - * However, the text passed in to the `SourceCode` constructor might still - * have a BOM if the constructor is called outside of the linter, so we still - * need to check for the BOM in the text. - */ - const textHasBOM = text.charCodeAt(0) === 0xFEFF; - - /** - * The flag to indicate that the source code has Unicode BOM. - * @type {boolean} - */ - this.hasBOM = textHasBOM || !!hasBOM; - - /** - * The original text source code. - * BOM was stripped from this text. - * @type {string} - */ - this.text = (textHasBOM ? text.slice(1) : text); - - /** - * The parsed AST for the source code. - * @type {ASTNode} - */ - this.ast = ast; - - /** - * The parser services of this source code. - * @type {Object} - */ - this.parserServices = parserServices || {}; - - /** - * The scope of this source code. - * @type {ScopeManager|null} - */ - this.scopeManager = scopeManager || null; - - /** - * The visitor keys to traverse AST. - * @type {Object} - */ - this.visitorKeys = visitorKeys || Traverser.DEFAULT_VISITOR_KEYS; - - // Check the source text for the presence of a shebang since it is parsed as a standard line comment. - const shebangMatched = this.text.match(astUtils.shebangPattern); - const hasShebang = shebangMatched && ast.comments.length && ast.comments[0].value === shebangMatched[1]; - - if (hasShebang) { - ast.comments[0].type = "Shebang"; - } - - this.tokensAndComments = sortedMerge(ast.tokens, ast.comments); - - /** - * The source code split into lines according to ECMA-262 specification. - * This is done to avoid each rule needing to do so separately. - * @type {string[]} - */ - this.lines = []; - this.lineStartIndices = [0]; - - const lineEndingPattern = astUtils.createGlobalLinebreakMatcher(); - let match; - - /* - * Previously, this was implemented using a regex that - * matched a sequence of non-linebreak characters followed by a - * linebreak, then adding the lengths of the matches. However, - * this caused a catastrophic backtracking issue when the end - * of a file contained a large number of non-newline characters. - * To avoid this, the current implementation just matches newlines - * and uses match.index to get the correct line start indices. - */ - while ((match = lineEndingPattern.exec(this.text))) { - this.lines.push(this.text.slice(this.lineStartIndices.at(-1), match.index)); - this.lineStartIndices.push(match.index + match[0].length); - } - this.lines.push(this.text.slice(this.lineStartIndices.at(-1))); - - // don't allow further modification of this object - Object.freeze(this); - Object.freeze(this.lines); - } - - /** - * Split the source code into multiple lines based on the line delimiters. - * @param {string} text Source code as a string. - * @returns {string[]} Array of source code lines. - * @public - */ - static splitLines(text) { - return text.split(astUtils.createGlobalLinebreakMatcher()); - } - - /** - * Gets the source code for the given node. - * @param {ASTNode} [node] The AST node to get the text for. - * @param {int} [beforeCount] The number of characters before the node to retrieve. - * @param {int} [afterCount] The number of characters after the node to retrieve. - * @returns {string} The text representing the AST node. - * @public - */ - getText(node, beforeCount, afterCount) { - if (node) { - return this.text.slice(Math.max(node.range[0] - (beforeCount || 0), 0), - node.range[1] + (afterCount || 0)); - } - return this.text; - } - - /** - * Gets the entire source text split into an array of lines. - * @returns {Array} The source text as an array of lines. - * @public - */ - getLines() { - return this.lines; - } - - /** - * Retrieves an array containing all comments in the source code. - * @returns {ASTNode[]} An array of comment nodes. - * @public - */ - getAllComments() { - return this.ast.comments; - } - - /** - * Retrieves the JSDoc comment for a given node. - * @param {ASTNode} node The AST node to get the comment for. - * @returns {Token|null} The Block comment token containing the JSDoc comment - * for the given node or null if not found. - * @public - * @deprecated - */ - getJSDocComment(node) { - - /** - * Checks for the presence of a JSDoc comment for the given node and returns it. - * @param {ASTNode} astNode The AST node to get the comment for. - * @returns {Token|null} The Block comment token containing the JSDoc comment - * for the given node or null if not found. - * @private - */ - const findJSDocComment = astNode => { - const tokenBefore = this.getTokenBefore(astNode, { includeComments: true }); - - if ( - tokenBefore && - isCommentToken(tokenBefore) && - tokenBefore.type === "Block" && - tokenBefore.value.charAt(0) === "*" && - astNode.loc.start.line - tokenBefore.loc.end.line <= 1 - ) { - return tokenBefore; - } - - return null; - }; - let parent = node.parent; - - switch (node.type) { - case "ClassDeclaration": - case "FunctionDeclaration": - return findJSDocComment(looksLikeExport(parent) ? parent : node); - - case "ClassExpression": - return findJSDocComment(parent.parent); - - case "ArrowFunctionExpression": - case "FunctionExpression": - if (parent.type !== "CallExpression" && parent.type !== "NewExpression") { - while ( - !this.getCommentsBefore(parent).length && - !/Function/u.test(parent.type) && - parent.type !== "MethodDefinition" && - parent.type !== "Property" - ) { - parent = parent.parent; - - if (!parent) { - break; - } - } - - if (parent && parent.type !== "FunctionDeclaration" && parent.type !== "Program") { - return findJSDocComment(parent); - } - } - - return findJSDocComment(node); - - // falls through - default: - return null; - } - } - - /** - * Gets the deepest node containing a range index. - * @param {int} index Range index of the desired node. - * @returns {ASTNode} The node if found or null if not found. - * @public - */ - getNodeByRangeIndex(index) { - let result = null; - - Traverser.traverse(this.ast, { - visitorKeys: this.visitorKeys, - enter(node) { - if (node.range[0] <= index && index < node.range[1]) { - result = node; - } else { - this.skip(); - } - }, - leave(node) { - if (node === result) { - this.break(); - } - } - }); - - return result; - } - - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * @param {ASTNode|Token} first The first node or token to check between. - * @param {ASTNode|Token} second The second node or token to check between. - * @returns {boolean} True if there is a whitespace character between - * any of the tokens found between the two given nodes or tokens. - * @public - */ - isSpaceBetween(first, second) { - return isSpaceBetween(this, first, second, false); - } - - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * For backward compatibility, this method returns true if there are - * `JSXText` tokens that contain whitespaces between the two. - * @param {ASTNode|Token} first The first node or token to check between. - * @param {ASTNode|Token} second The second node or token to check between. - * @returns {boolean} True if there is a whitespace character between - * any of the tokens found between the two given nodes or tokens. - * @deprecated in favor of isSpaceBetween(). - * @public - */ - isSpaceBetweenTokens(first, second) { - return isSpaceBetween(this, first, second, true); - } - - /** - * Converts a source text index into a (line, column) pair. - * @param {number} index The index of a character in a file - * @throws {TypeError} If non-numeric index or index out of range. - * @returns {Object} A {line, column} location object with a 0-indexed column - * @public - */ - getLocFromIndex(index) { - if (typeof index !== "number") { - throw new TypeError("Expected `index` to be a number."); - } - - if (index < 0 || index > this.text.length) { - throw new RangeError(`Index out of range (requested index ${index}, but source text has length ${this.text.length}).`); - } - - /* - * For an argument of this.text.length, return the location one "spot" past the last character - * of the file. If the last character is a linebreak, the location will be column 0 of the next - * line; otherwise, the location will be in the next column on the same line. - * - * See getIndexFromLoc for the motivation for this special case. - */ - if (index === this.text.length) { - return { line: this.lines.length, column: this.lines.at(-1).length }; - } - - /* - * To figure out which line index is on, determine the last place at which index could - * be inserted into lineStartIndices to keep the list sorted. - */ - const lineNumber = index >= this.lineStartIndices.at(-1) - ? this.lineStartIndices.length - : this.lineStartIndices.findIndex(el => index < el); - - return { line: lineNumber, column: index - this.lineStartIndices[lineNumber - 1] }; - } - - /** - * Converts a (line, column) pair into a range index. - * @param {Object} loc A line/column location - * @param {number} loc.line The line number of the location (1-indexed) - * @param {number} loc.column The column number of the location (0-indexed) - * @throws {TypeError|RangeError} If `loc` is not an object with a numeric - * `line` and `column`, if the `line` is less than or equal to zero or - * the line or column is out of the expected range. - * @returns {number} The range index of the location in the file. - * @public - */ - getIndexFromLoc(loc) { - if (typeof loc !== "object" || typeof loc.line !== "number" || typeof loc.column !== "number") { - throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties."); - } - - if (loc.line <= 0) { - throw new RangeError(`Line number out of range (line ${loc.line} requested). Line numbers should be 1-based.`); - } - - if (loc.line > this.lineStartIndices.length) { - throw new RangeError(`Line number out of range (line ${loc.line} requested, but only ${this.lineStartIndices.length} lines present).`); - } - - const lineStartIndex = this.lineStartIndices[loc.line - 1]; - const lineEndIndex = loc.line === this.lineStartIndices.length ? this.text.length : this.lineStartIndices[loc.line]; - const positionIndex = lineStartIndex + loc.column; - - /* - * By design, getIndexFromLoc({ line: lineNum, column: 0 }) should return the start index of - * the given line, provided that the line number is valid element of this.lines. Since the - * last element of this.lines is an empty string for files with trailing newlines, add a - * special case where getting the index for the first location after the end of the file - * will return the length of the file, rather than throwing an error. This allows rules to - * use getIndexFromLoc consistently without worrying about edge cases at the end of a file. - */ - if ( - loc.line === this.lineStartIndices.length && positionIndex > lineEndIndex || - loc.line < this.lineStartIndices.length && positionIndex >= lineEndIndex - ) { - throw new RangeError(`Column number out of range (column ${loc.column} requested, but the length of line ${loc.line} is ${lineEndIndex - lineStartIndex}).`); - } - - return positionIndex; - } - - /** - * Gets the scope for the given node - * @param {ASTNode} currentNode The node to get the scope of - * @returns {Scope} The scope information for this node - * @throws {TypeError} If the `currentNode` argument is missing. - */ - getScope(currentNode) { - - if (!currentNode) { - throw new TypeError("Missing required argument: node."); - } - - // check cache first - const cache = this[caches].get("scopes"); - const cachedScope = cache.get(currentNode); - - if (cachedScope) { - return cachedScope; - } - - // On Program node, get the outermost scope to avoid return Node.js special function scope or ES modules scope. - const inner = currentNode.type !== "Program"; - - for (let node = currentNode; node; node = node.parent) { - const scope = this.scopeManager.acquire(node, inner); - - if (scope) { - if (scope.type === "function-expression-name") { - cache.set(currentNode, scope.childScopes[0]); - return scope.childScopes[0]; - } - - cache.set(currentNode, scope); - return scope; - } - } - - cache.set(currentNode, this.scopeManager.scopes[0]); - return this.scopeManager.scopes[0]; - } - - /** - * Get the variables that `node` defines. - * This is a convenience method that passes through - * to the same method on the `scopeManager`. - * @param {ASTNode} node The node for which the variables are obtained. - * @returns {Array} An array of variable nodes representing - * the variables that `node` defines. - */ - getDeclaredVariables(node) { - return this.scopeManager.getDeclaredVariables(node); - } - - /* eslint-disable class-methods-use-this -- node is owned by SourceCode */ - /** - * Gets all the ancestors of a given node - * @param {ASTNode} node The node - * @returns {Array} All the ancestor nodes in the AST, not including the provided node, starting - * from the root node at index 0 and going inwards to the parent node. - * @throws {TypeError} When `node` is missing. - */ - getAncestors(node) { - - if (!node) { - throw new TypeError("Missing required argument: node."); - } - - const ancestorsStartingAtParent = []; - - for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) { - ancestorsStartingAtParent.push(ancestor); - } - - return ancestorsStartingAtParent.reverse(); - } - - /** - * Returns the location of the given node or token. - * @param {ASTNode|Token} nodeOrToken The node or token to get the location of. - * @returns {SourceLocation} The location of the node or token. - */ - getLoc(nodeOrToken) { - return nodeOrToken.loc; - } - - /** - * Returns the range of the given node or token. - * @param {ASTNode|Token} nodeOrToken The node or token to get the range of. - * @returns {[number, number]} The range of the node or token. - */ - getRange(nodeOrToken) { - return nodeOrToken.range; - } - - /* eslint-enable class-methods-use-this -- node is owned by SourceCode */ - - /** - * Marks a variable as used in the current scope - * @param {string} name The name of the variable to mark as used. - * @param {ASTNode} [refNode] The closest node to the variable reference. - * @returns {boolean} True if the variable was found and marked as used, false if not. - */ - markVariableAsUsed(name, refNode = this.ast) { - - const currentScope = this.getScope(refNode); - let initialScope = currentScope; - - /* - * When we are in an ESM or CommonJS module, we need to start searching - * from the top-level scope, not the global scope. For ESM the top-level - * scope is the module scope; for CommonJS the top-level scope is the - * outer function scope. - * - * Without this check, we might miss a variable declared with `var` at - * the top-level because it won't exist in the global scope. - */ - if ( - currentScope.type === "global" && - currentScope.childScopes.length > 0 && - - // top-level scopes refer to a `Program` node - currentScope.childScopes[0].block === this.ast - ) { - initialScope = currentScope.childScopes[0]; - } - - for (let scope = initialScope; scope; scope = scope.upper) { - const variable = scope.variables.find(scopeVar => scopeVar.name === name); - - if (variable) { - variable.eslintUsed = true; - return true; - } - } - - return false; - } - - - /** - * Returns an array of all inline configuration nodes found in the - * source code. - * @returns {Array} An array of all inline configuration nodes. - */ - getInlineConfigNodes() { - - // check the cache first - let configNodes = this[caches].get("configNodes"); - - if (configNodes) { - return configNodes; - } - - // calculate fresh config nodes - configNodes = this.ast.comments.filter(comment => { - - // shebang comments are never directives - if (comment.type === "Shebang") { - return false; - } - - const { directivePart } = commentParser.extractDirectiveComment(comment.value); - - const directiveMatch = directivesPattern.exec(directivePart); - - if (!directiveMatch) { - return false; - } - - // only certain comment types are supported as line comments - return comment.type !== "Line" || !!/^eslint-disable-(next-)?line$/u.test(directiveMatch[1]); - }); - - this[caches].set("configNodes", configNodes); - - return configNodes; - } - - /** - * Returns an all directive nodes that enable or disable rules along with any problems - * encountered while parsing the directives. - * @returns {{problems:Array,directives:Array}} Information - * that ESLint needs to further process the directives. - */ - getDisableDirectives() { - - // check the cache first - const cachedDirectives = this[caches].get("disableDirectives"); - - if (cachedDirectives) { - return cachedDirectives; - } - - const problems = []; - const directives = []; - - this.getInlineConfigNodes().forEach(comment => { - const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value); - - // Step 1: Extract the directive text - const match = directivesPattern.exec(directivePart); - - if (!match) { - return; - } - - const directiveText = match[1]; - - // Step 2: Extract the directive value - const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText); - - if (comment.type === "Line" && !lineCommentSupported) { - return; - } - - // Step 3: Validate the directive does not span multiple lines - if (directiveText === "eslint-disable-line" && comment.loc.start.line !== comment.loc.end.line) { - const message = `${directiveText} comment should not span multiple lines.`; - - problems.push({ - ruleId: null, - message, - loc: comment.loc - }); - return; - } - - // Step 4: Extract the directive value and create the Directive object - const directiveValue = directivePart.slice(match.index + directiveText.length); - - switch (directiveText) { - case "eslint-disable": - case "eslint-enable": - case "eslint-disable-next-line": - case "eslint-disable-line": { - const directiveType = directiveText.slice("eslint-".length); - - directives.push(new Directive({ - type: directiveType, - node: comment, - value: directiveValue, - justification: justificationPart - })); - } - - // no default - } - }); - - const result = { problems, directives }; - - this[caches].set("disableDirectives", result); - - return result; - } - - /** - * Applies language options sent in from the core. - * @param {Object} languageOptions The language options for this run. - * @returns {void} - */ - applyLanguageOptions(languageOptions) { - - /* - * Add configured globals and language globals - * - * Using Object.assign instead of object spread for performance reasons - * https://github.com/eslint/eslint/issues/16302 - */ - const configGlobals = Object.assign( - Object.create(null), // https://github.com/eslint/eslint/issues/18363 - getGlobalsForEcmaVersion(languageOptions.ecmaVersion), - languageOptions.sourceType === "commonjs" ? globals.commonjs : void 0, - languageOptions.globals - ); - const varsCache = this[caches].get("vars"); - - varsCache.set("configGlobals", configGlobals); - } - - /** - * Applies configuration found inside of the source code. This method is only - * called when ESLint is running with inline configuration allowed. - * @returns {{problems:Array,configs:{config:FlatConfigArray,loc:Location}}} Information - * that ESLint needs to further process the inline configuration. - */ - applyInlineConfig() { - - const problems = []; - const configs = []; - const exportedVariables = {}; - const inlineGlobals = Object.create(null); - - this.getInlineConfigNodes().forEach(comment => { - - const { directiveText, directiveValue } = commentParser.parseDirective(comment); - - switch (directiveText) { - case "exported": - Object.assign(exportedVariables, commentParser.parseListConfig(directiveValue, comment)); - break; - - case "globals": - case "global": - for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) { - let normalizedValue; - - try { - normalizedValue = normalizeConfigGlobal(value); - } catch (err) { - problems.push({ - ruleId: null, - loc: comment.loc, - message: err.message - }); - continue; - } - - if (inlineGlobals[id]) { - inlineGlobals[id].comments.push(comment); - inlineGlobals[id].value = normalizedValue; - } else { - inlineGlobals[id] = { - comments: [comment], - value: normalizedValue - }; - } - } - break; - - case "eslint": { - const parseResult = commentParser.parseJsonConfig(directiveValue); - - if (parseResult.success) { - configs.push({ - config: { - rules: parseResult.config - }, - loc: comment.loc - }); - } else { - problems.push({ - ruleId: null, - loc: comment.loc, - message: parseResult.error.message - }); - } - - break; - } - - // no default - } - }); - - // save all the new variables for later - const varsCache = this[caches].get("vars"); - - varsCache.set("inlineGlobals", inlineGlobals); - varsCache.set("exportedVariables", exportedVariables); - - return { - configs, - problems - }; - } - - /** - * Called by ESLint core to indicate that it has finished providing - * information. We now add in all the missing variables and ensure that - * state-changing methods cannot be called by rules. - * @returns {void} - */ - finalize() { - - const varsCache = this[caches].get("vars"); - const configGlobals = varsCache.get("configGlobals"); - const inlineGlobals = varsCache.get("inlineGlobals"); - const exportedVariables = varsCache.get("exportedVariables"); - const globalScope = this.scopeManager.scopes[0]; - - addDeclaredGlobals(globalScope, configGlobals, inlineGlobals); - - if (exportedVariables) { - markExportedVariables(globalScope, exportedVariables); - } - - } - - /** - * Traverse the source code and return the steps that were taken. - * @returns {Array} The steps that were taken while traversing the source code. - */ - traverse() { - - // Because the AST doesn't mutate, we can cache the steps - if (this.#steps) { - return this.#steps; - } - - const steps = this.#steps = []; - - /* - * This logic works for any AST, not just ESTree. Because ESLint has allowed - * custom parsers to return any AST, we need to ensure that the traversal - * logic works for any AST. - */ - const emitter = createEmitter(); - let analyzer = { - enterNode(node) { - steps.push(new TraversalStep({ - type: "visit", - target: node, - phase: 1, - args: [node, node.parent] - })); - }, - leaveNode(node) { - steps.push(new TraversalStep({ - type: "visit", - target: node, - phase: 2, - args: [node, node.parent] - })); - }, - emitter - }; - - /* - * We do code path analysis for ESTree only. Code path analysis is not - * necessary for other ASTs, and it's also not possible to do for other - * ASTs because the necessary information is not available. - * - * Generally speaking, we can tell that the AST is an ESTree if it has a - * Program node at the top level. This is not a perfect heuristic, but it - * is good enough for now. - */ - if (this.isESTree) { - analyzer = new CodePathAnalyzer(analyzer); - - CODE_PATH_EVENTS.forEach(eventName => { - emitter.on(eventName, (...args) => { - steps.push(new TraversalStep({ - type: "call", - target: eventName, - args - })); - }); - }); - } - - /* - * The actual AST traversal is done by the `Traverser` class. This class - * is responsible for walking the AST and calling the appropriate methods - * on the `analyzer` object, which is appropriate for the given AST. - */ - Traverser.traverse(this.ast, { - enter(node, parent) { - - // save the parent node on a property for backwards compatibility - node.parent = parent; - - analyzer.enterNode(node); - }, - leave(node) { - analyzer.leaveNode(node); - }, - visitorKeys: this.visitorKeys - }); - - return steps; - } -} - -module.exports = SourceCode; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js deleted file mode 100644 index 7255a622..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-comment-cursor.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @fileoverview Define the cursor which iterates tokens and comments in reverse. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Cursor = require("./cursor"); -const utils = require("./utils"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The cursor which iterates tokens and comments in reverse. - */ -module.exports = class BackwardTokenCommentCursor extends Cursor { - - /** - * Initializes this cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - */ - constructor(tokens, comments, indexMap, startLoc, endLoc) { - super(); - this.tokens = tokens; - this.comments = comments; - this.tokenIndex = utils.getLastIndex(tokens, indexMap, endLoc); - this.commentIndex = utils.search(comments, endLoc) - 1; - this.border = startLoc; - } - - /** @inheritdoc */ - moveNext() { - const token = (this.tokenIndex >= 0) ? this.tokens[this.tokenIndex] : null; - const comment = (this.commentIndex >= 0) ? this.comments[this.commentIndex] : null; - - if (token && (!comment || token.range[1] > comment.range[1])) { - this.current = token; - this.tokenIndex -= 1; - } else if (comment) { - this.current = comment; - this.commentIndex -= 1; - } else { - this.current = null; - } - - return Boolean(this.current) && (this.border === -1 || this.current.range[0] >= this.border); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js deleted file mode 100644 index d3469c99..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/backward-token-cursor.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview Define the cursor which iterates tokens only in reverse. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Cursor = require("./cursor"); -const { getLastIndex, getFirstIndex } = require("./utils"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The cursor which iterates tokens only in reverse. - */ -module.exports = class BackwardTokenCursor extends Cursor { - - /** - * Initializes this cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - */ - constructor(tokens, comments, indexMap, startLoc, endLoc) { - super(); - this.tokens = tokens; - this.index = getLastIndex(tokens, indexMap, endLoc); - this.indexEnd = getFirstIndex(tokens, indexMap, startLoc); - } - - /** @inheritdoc */ - moveNext() { - if (this.index >= this.indexEnd) { - this.current = this.tokens[this.index]; - this.index -= 1; - return true; - } - return false; - } - - /* - * - * Shorthand for performance. - * - */ - - /** @inheritdoc */ - getOneToken() { - return (this.index >= this.indexEnd) ? this.tokens[this.index] : null; - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js deleted file mode 100644 index 0b726006..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursor.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @fileoverview Define the abstract class about cursors which iterate tokens. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The abstract class about cursors which iterate tokens. - * - * This class has 2 abstract methods. - * - * - `current: Token | Comment | null` ... The current token. - * - `moveNext(): boolean` ... Moves this cursor to the next token. If the next token didn't exist, it returns `false`. - * - * This is similar to ES2015 Iterators. - * However, Iterators were slow (at 2017-01), so I created this class as similar to C# IEnumerable. - * - * There are the following known sub classes. - * - * - ForwardTokenCursor .......... The cursor which iterates tokens only. - * - BackwardTokenCursor ......... The cursor which iterates tokens only in reverse. - * - ForwardTokenCommentCursor ... The cursor which iterates tokens and comments. - * - BackwardTokenCommentCursor .. The cursor which iterates tokens and comments in reverse. - * - DecorativeCursor - * - FilterCursor ............ The cursor which ignores the specified tokens. - * - SkipCursor .............. The cursor which ignores the first few tokens. - * - LimitCursor ............. The cursor which limits the count of tokens. - * - */ -module.exports = class Cursor { - - /** - * Initializes this cursor. - */ - constructor() { - this.current = null; - } - - /** - * Gets the first token. - * This consumes this cursor. - * @returns {Token|Comment} The first token or null. - */ - getOneToken() { - return this.moveNext() ? this.current : null; - } - - /** - * Gets the first tokens. - * This consumes this cursor. - * @returns {(Token|Comment)[]} All tokens. - */ - getAllTokens() { - const tokens = []; - - while (this.moveNext()) { - tokens.push(this.current); - } - - return tokens; - } - - /** - * Moves this cursor to the next token. - * @returns {boolean} `true` if the next token exists. - * @abstract - */ - /* c8 ignore next */ - moveNext() { // eslint-disable-line class-methods-use-this -- Unused - throw new Error("Not implemented."); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js deleted file mode 100644 index f2676f13..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/cursors.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @fileoverview Define 2 token factories; forward and backward. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const BackwardTokenCommentCursor = require("./backward-token-comment-cursor"); -const BackwardTokenCursor = require("./backward-token-cursor"); -const FilterCursor = require("./filter-cursor"); -const ForwardTokenCommentCursor = require("./forward-token-comment-cursor"); -const ForwardTokenCursor = require("./forward-token-cursor"); -const LimitCursor = require("./limit-cursor"); -const SkipCursor = require("./skip-cursor"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * The cursor factory. - * @private - */ -class CursorFactory { - - /** - * Initializes this cursor. - * @param {Function} TokenCursor The class of the cursor which iterates tokens only. - * @param {Function} TokenCommentCursor The class of the cursor which iterates the mix of tokens and comments. - */ - constructor(TokenCursor, TokenCommentCursor) { - this.TokenCursor = TokenCursor; - this.TokenCommentCursor = TokenCommentCursor; - } - - /** - * Creates a base cursor instance that can be decorated by createCursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {boolean} includeComments The flag to iterate comments as well. - * @returns {Cursor} The created base cursor. - */ - createBaseCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments) { - const Cursor = includeComments ? this.TokenCommentCursor : this.TokenCursor; - - return new Cursor(tokens, comments, indexMap, startLoc, endLoc); - } - - /** - * Creates a cursor that iterates tokens with normalized options. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {boolean} includeComments The flag to iterate comments as well. - * @param {Function|null} filter The predicate function to choose tokens. - * @param {number} skip The count of tokens the cursor skips. - * @param {number} count The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. - * @returns {Cursor} The created cursor. - */ - createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, skip, count) { - let cursor = this.createBaseCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments); - - if (filter) { - cursor = new FilterCursor(cursor, filter); - } - if (skip >= 1) { - cursor = new SkipCursor(cursor, skip); - } - if (count >= 0) { - cursor = new LimitCursor(cursor, count); - } - - return cursor; - } -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -module.exports = { - forward: new CursorFactory(ForwardTokenCursor, ForwardTokenCommentCursor), - backward: new CursorFactory(BackwardTokenCursor, BackwardTokenCommentCursor) -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js deleted file mode 100644 index 3ee7b0b3..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/decorative-cursor.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview Define the abstract class about cursors which manipulate another cursor. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Cursor = require("./cursor"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The abstract class about cursors which manipulate another cursor. - */ -module.exports = class DecorativeCursor extends Cursor { - - /** - * Initializes this cursor. - * @param {Cursor} cursor The cursor to be decorated. - */ - constructor(cursor) { - super(); - this.cursor = cursor; - } - - /** @inheritdoc */ - moveNext() { - const retv = this.cursor.moveNext(); - - this.current = this.cursor.current; - - return retv; - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js deleted file mode 100644 index 08c4f220..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/filter-cursor.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @fileoverview Define the cursor which ignores specified tokens. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const DecorativeCursor = require("./decorative-cursor"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The decorative cursor which ignores specified tokens. - */ -module.exports = class FilterCursor extends DecorativeCursor { - - /** - * Initializes this cursor. - * @param {Cursor} cursor The cursor to be decorated. - * @param {Function} predicate The predicate function to decide tokens this cursor iterates. - */ - constructor(cursor, predicate) { - super(cursor); - this.predicate = predicate; - } - - /** @inheritdoc */ - moveNext() { - const predicate = this.predicate; - - while (super.moveNext()) { - if (predicate(this.current)) { - return true; - } - } - return false; - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js deleted file mode 100644 index 8aa46c27..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-comment-cursor.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @fileoverview Define the cursor which iterates tokens and comments. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Cursor = require("./cursor"); -const { getFirstIndex, search } = require("./utils"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The cursor which iterates tokens and comments. - */ -module.exports = class ForwardTokenCommentCursor extends Cursor { - - /** - * Initializes this cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - */ - constructor(tokens, comments, indexMap, startLoc, endLoc) { - super(); - this.tokens = tokens; - this.comments = comments; - this.tokenIndex = getFirstIndex(tokens, indexMap, startLoc); - this.commentIndex = search(comments, startLoc); - this.border = endLoc; - } - - /** @inheritdoc */ - moveNext() { - const token = (this.tokenIndex < this.tokens.length) ? this.tokens[this.tokenIndex] : null; - const comment = (this.commentIndex < this.comments.length) ? this.comments[this.commentIndex] : null; - - if (token && (!comment || token.range[0] < comment.range[0])) { - this.current = token; - this.tokenIndex += 1; - } else if (comment) { - this.current = comment; - this.commentIndex += 1; - } else { - this.current = null; - } - - return Boolean(this.current) && (this.border === -1 || this.current.range[1] <= this.border); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js deleted file mode 100644 index 9305cbef..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/forward-token-cursor.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview Define the cursor which iterates tokens only. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Cursor = require("./cursor"); -const { getFirstIndex, getLastIndex } = require("./utils"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The cursor which iterates tokens only. - */ -module.exports = class ForwardTokenCursor extends Cursor { - - /** - * Initializes this cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - */ - constructor(tokens, comments, indexMap, startLoc, endLoc) { - super(); - this.tokens = tokens; - this.index = getFirstIndex(tokens, indexMap, startLoc); - this.indexEnd = getLastIndex(tokens, indexMap, endLoc); - } - - /** @inheritdoc */ - moveNext() { - if (this.index <= this.indexEnd) { - this.current = this.tokens[this.index]; - this.index += 1; - return true; - } - return false; - } - - /* - * - * Shorthand for performance. - * - */ - - /** @inheritdoc */ - getOneToken() { - return (this.index <= this.indexEnd) ? this.tokens[this.index] : null; - } - - /** @inheritdoc */ - getAllTokens() { - return this.tokens.slice(this.index, this.indexEnd + 1); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/index.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/index.js deleted file mode 100644 index 8f8d6de7..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/index.js +++ /dev/null @@ -1,627 +0,0 @@ -/** - * @fileoverview Object to handle access and retrieval of tokens. - * @author Brandon Mills - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const assert = require("node:assert"); -const { isCommentToken } = require("@eslint-community/eslint-utils"); -const cursors = require("./cursors"); -const ForwardTokenCursor = require("./forward-token-cursor"); -const PaddedTokenCursor = require("./padded-token-cursor"); -const utils = require("./utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const TOKENS = Symbol("tokens"); -const COMMENTS = Symbol("comments"); -const INDEX_MAP = Symbol("indexMap"); - -/** - * Creates the map from locations to indices in `tokens`. - * - * The first/last location of tokens is mapped to the index of the token. - * The first/last location of comments is mapped to the index of the next token of each comment. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @returns {Object} The map from locations to indices in `tokens`. - * @private - */ -function createIndexMap(tokens, comments) { - const map = Object.create(null); - let tokenIndex = 0; - let commentIndex = 0; - let nextStart; - let range; - - while (tokenIndex < tokens.length || commentIndex < comments.length) { - nextStart = (commentIndex < comments.length) ? comments[commentIndex].range[0] : Number.MAX_SAFE_INTEGER; - while (tokenIndex < tokens.length && (range = tokens[tokenIndex].range)[0] < nextStart) { - map[range[0]] = tokenIndex; - map[range[1] - 1] = tokenIndex; - tokenIndex += 1; - } - - nextStart = (tokenIndex < tokens.length) ? tokens[tokenIndex].range[0] : Number.MAX_SAFE_INTEGER; - while (commentIndex < comments.length && (range = comments[commentIndex].range)[0] < nextStart) { - map[range[0]] = tokenIndex; - map[range[1] - 1] = tokenIndex; - commentIndex += 1; - } - } - - return map; -} - -/** - * Creates the cursor iterates tokens with options. - * @param {CursorFactory} factory The cursor factory to initialize cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.skip`. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.skip=0] The count of tokens the cursor skips. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithSkip(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { - let includeComments = false; - let skip = 0; - let filter = null; - - if (typeof opts === "number") { - skip = opts | 0; - } else if (typeof opts === "function") { - filter = opts; - } else if (opts) { - includeComments = !!opts.includeComments; - skip = opts.skip | 0; - filter = opts.filter || null; - } - assert(skip >= 0, "options.skip should be zero or a positive integer."); - assert(!filter || typeof filter === "function", "options.filter should be a function."); - - return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, skip, -1); -} - -/** - * Creates the cursor iterates tokens with options. - * @param {CursorFactory} factory The cursor factory to initialize cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number|Function|Object} [opts=0] The option object. If this is a number then it's `opts.count`. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithCount(factory, tokens, comments, indexMap, startLoc, endLoc, opts) { - let includeComments = false; - let count = 0; - let countExists = false; - let filter = null; - - if (typeof opts === "number") { - count = opts | 0; - countExists = true; - } else if (typeof opts === "function") { - filter = opts; - } else if (opts) { - includeComments = !!opts.includeComments; - count = opts.count | 0; - countExists = typeof opts.count === "number"; - filter = opts.filter || null; - } - assert(count >= 0, "options.count should be zero or a positive integer."); - assert(!filter || typeof filter === "function", "options.filter should be a function."); - - return factory.createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, 0, countExists ? count : -1); -} - -/** - * Creates the cursor iterates tokens with options. - * This is overload function of the below. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {Function|Object} opts The option object. If this is a function then it's `opts.filter`. - * @param {boolean} [opts.includeComments] The flag to iterate comments as well. - * @param {Function|null} [opts.filter=null] The predicate function to choose tokens. - * @param {number} [opts.count=0] The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility. - * @returns {Cursor} The created cursor. - * @private - */ -/** - * Creates the cursor iterates tokens with options. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number} [beforeCount=0] The number of tokens before the node to retrieve. - * @param {boolean} [afterCount=0] The number of tokens after the node to retrieve. - * @returns {Cursor} The created cursor. - * @private - */ -function createCursorWithPadding(tokens, comments, indexMap, startLoc, endLoc, beforeCount, afterCount) { - if (typeof beforeCount === "undefined" && typeof afterCount === "undefined") { - return new ForwardTokenCursor(tokens, comments, indexMap, startLoc, endLoc); - } - if (typeof beforeCount === "number" || typeof beforeCount === "undefined") { - return new PaddedTokenCursor(tokens, comments, indexMap, startLoc, endLoc, beforeCount | 0, afterCount | 0); - } - return createCursorWithCount(cursors.forward, tokens, comments, indexMap, startLoc, endLoc, beforeCount); -} - -/** - * Gets comment tokens that are adjacent to the current cursor position. - * @param {Cursor} cursor A cursor instance. - * @returns {Array} An array of comment tokens adjacent to the current cursor position. - * @private - */ -function getAdjacentCommentTokensFromCursor(cursor) { - const tokens = []; - let currentToken = cursor.getOneToken(); - - while (currentToken && isCommentToken(currentToken)) { - tokens.push(currentToken); - currentToken = cursor.getOneToken(); - } - - return tokens; -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The token store. - * - * This class provides methods to get tokens by locations as fast as possible. - * The methods are a part of public API, so we should be careful if it changes this class. - * - * People can get tokens in O(1) by the hash map which is mapping from the location of tokens/comments to tokens. - * Also people can get a mix of tokens and comments in O(log k), the k is the number of comments. - * Assuming that comments to be much fewer than tokens, this does not make hash map from token's locations to comments to reduce memory cost. - * This uses binary-searching instead for comments. - */ -module.exports = class TokenStore { - - /** - * Initializes this token store. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - */ - constructor(tokens, comments) { - this[TOKENS] = tokens; - this[COMMENTS] = comments; - this[INDEX_MAP] = createIndexMap(tokens, comments); - } - - //-------------------------------------------------------------------------- - // Gets single token. - //-------------------------------------------------------------------------- - - /** - * Gets the token starting at the specified index. - * @param {number} offset Index of the start of the token's range. - * @param {Object} [options=0] The option object. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @returns {Token|null} The token starting at index, or null if no such token. - */ - getTokenByRangeStart(offset, options) { - const includeComments = options && options.includeComments; - const token = cursors.forward.createBaseCursor( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - offset, - -1, - includeComments - ).getOneToken(); - - if (token && token.range[0] === offset) { - return token; - } - return null; - } - - /** - * Gets the first token of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.skip=0] The count of tokens the cursor skips. - * @returns {Token|null} An object representing the token. - */ - getFirstToken(node, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getOneToken(); - } - - /** - * Gets the last token of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getLastToken(node, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getOneToken(); - } - - /** - * Gets the token that precedes a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getTokenBefore(node, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - node.range[0], - options - ).getOneToken(); - } - - /** - * Gets the token that follows a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getTokenAfter(node, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[1], - -1, - options - ).getOneToken(); - } - - /** - * Gets the first token between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getFirstTokenBetween(left, right, options) { - return createCursorWithSkip( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getOneToken(); - } - - /** - * Gets the last token between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstToken() - * @returns {Token|null} An object representing the token. - */ - getLastTokenBetween(left, right, options) { - return createCursorWithSkip( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getOneToken(); - } - - /** - * Gets the token that precedes a given node or token in the token stream. - * This is defined for backward compatibility. Use `includeComments` option instead. - * TODO: We have a plan to remove this in a future major version. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number} [skip=0] A number of tokens to skip. - * @returns {Token|null} An object representing the token. - * @deprecated - */ - getTokenOrCommentBefore(node, skip) { - return this.getTokenBefore(node, { includeComments: true, skip }); - } - - /** - * Gets the token that follows a given node or token in the token stream. - * This is defined for backward compatibility. Use `includeComments` option instead. - * TODO: We have a plan to remove this in a future major version. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number} [skip=0] A number of tokens to skip. - * @returns {Token|null} An object representing the token. - * @deprecated - */ - getTokenOrCommentAfter(node, skip) { - return this.getTokenAfter(node, { includeComments: true, skip }); - } - - //-------------------------------------------------------------------------- - // Gets multiple tokens. - //-------------------------------------------------------------------------- - - /** - * Gets the first `count` tokens of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Tokens. - */ - getFirstTokens(node, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getAllTokens(); - } - - /** - * Gets the last `count` tokens of the given node. - * @param {ASTNode} node The AST node. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getLastTokens(node, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - options - ).getAllTokens().reverse(); - } - - /** - * Gets the `count` tokens that precedes a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getTokensBefore(node, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - node.range[0], - options - ).getAllTokens().reverse(); - } - - /** - * Gets the `count` tokens that follows a given node or token. - * @param {ASTNode|Token|Comment} node The AST node or token. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens. - */ - getTokensAfter(node, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[1], - -1, - options - ).getAllTokens(); - } - - /** - * Gets the first `count` tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens between left and right. - */ - getFirstTokensBetween(left, right, options) { - return createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getAllTokens(); - } - - /** - * Gets the last `count` tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {number|Function|Object} [options=0] The option object. Same options as getFirstTokens() - * @returns {Token[]} Tokens between left and right. - */ - getLastTokensBetween(left, right, options) { - return createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - options - ).getAllTokens().reverse(); - } - - /** - * Gets all tokens that are related to the given node. - * @param {ASTNode} node The AST node. - * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Array of objects representing tokens. - */ - /** - * Gets all tokens that are related to the given node. - * @param {ASTNode} node The AST node. - * @param {int} [beforeCount=0] The number of tokens before the node to retrieve. - * @param {int} [afterCount=0] The number of tokens after the node to retrieve. - * @returns {Token[]} Array of objects representing tokens. - */ - getTokens(node, beforeCount, afterCount) { - return createCursorWithPadding( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - node.range[0], - node.range[1], - beforeCount, - afterCount - ).getAllTokens(); - } - - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {Function|Object} options The option object. If this is a function then it's `options.filter`. - * @param {boolean} [options.includeComments=false] The flag to iterate comments as well. - * @param {Function|null} [options.filter=null] The predicate function to choose tokens. - * @param {number} [options.count=0] The maximum count of tokens the cursor iterates. - * @returns {Token[]} Tokens between left and right. - */ - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param {ASTNode|Token|Comment} left Node before the desired token range. - * @param {ASTNode|Token|Comment} right Node after the desired token range. - * @param {int} [padding=0] Number of extra tokens on either side of center. - * @returns {Token[]} Tokens between left and right. - */ - getTokensBetween(left, right, padding) { - return createCursorWithPadding( - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - left.range[1], - right.range[0], - padding, - padding - ).getAllTokens(); - } - - //-------------------------------------------------------------------------- - // Others. - //-------------------------------------------------------------------------- - - /** - * Checks whether any comments exist or not between the given 2 nodes. - * @param {ASTNode} left The node to check. - * @param {ASTNode} right The node to check. - * @returns {boolean} `true` if one or more comments exist. - */ - commentsExistBetween(left, right) { - const index = utils.search(this[COMMENTS], left.range[1]); - - return ( - index < this[COMMENTS].length && - this[COMMENTS][index].range[1] <= right.range[0] - ); - } - - /** - * Gets all comment tokens directly before the given node or token. - * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsBefore(nodeOrToken) { - const cursor = createCursorWithCount( - cursors.backward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - -1, - nodeOrToken.range[0], - { includeComments: true } - ); - - return getAdjacentCommentTokensFromCursor(cursor).reverse(); - } - - /** - * Gets all comment tokens directly after the given node or token. - * @param {ASTNode|token} nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsAfter(nodeOrToken) { - const cursor = createCursorWithCount( - cursors.forward, - this[TOKENS], - this[COMMENTS], - this[INDEX_MAP], - nodeOrToken.range[1], - -1, - { includeComments: true } - ); - - return getAdjacentCommentTokensFromCursor(cursor); - } - - /** - * Gets all comment tokens inside the given node. - * @param {ASTNode} node The AST node to get the comments for. - * @returns {Array} An array of comments in occurrence order. - */ - getCommentsInside(node) { - return this.getTokens(node, { - includeComments: true, - filter: isCommentToken - }); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js deleted file mode 100644 index 0fd92a77..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/limit-cursor.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @fileoverview Define the cursor which limits the number of tokens. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const DecorativeCursor = require("./decorative-cursor"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The decorative cursor which limits the number of tokens. - */ -module.exports = class LimitCursor extends DecorativeCursor { - - /** - * Initializes this cursor. - * @param {Cursor} cursor The cursor to be decorated. - * @param {number} count The count of tokens this cursor iterates. - */ - constructor(cursor, count) { - super(cursor); - this.count = count; - } - - /** @inheritdoc */ - moveNext() { - if (this.count > 0) { - this.count -= 1; - return super.moveNext(); - } - return false; - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js deleted file mode 100644 index 89349fa1..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/padded-token-cursor.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @fileoverview Define the cursor which iterates tokens only, with inflated range. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const ForwardTokenCursor = require("./forward-token-cursor"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The cursor which iterates tokens only, with inflated range. - * This is for the backward compatibility of padding options. - */ -module.exports = class PaddedTokenCursor extends ForwardTokenCursor { - - /** - * Initializes this cursor. - * @param {Token[]} tokens The array of tokens. - * @param {Comment[]} comments The array of comments. - * @param {Object} indexMap The map from locations to indices in `tokens`. - * @param {number} startLoc The start location of the iteration range. - * @param {number} endLoc The end location of the iteration range. - * @param {number} beforeCount The number of tokens this cursor iterates before start. - * @param {number} afterCount The number of tokens this cursor iterates after end. - */ - constructor(tokens, comments, indexMap, startLoc, endLoc, beforeCount, afterCount) { - super(tokens, comments, indexMap, startLoc, endLoc); - this.index = Math.max(0, this.index - beforeCount); - this.indexEnd = Math.min(tokens.length - 1, this.indexEnd + afterCount); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js deleted file mode 100644 index f068f531..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/skip-cursor.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @fileoverview Define the cursor which ignores the first few tokens. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const DecorativeCursor = require("./decorative-cursor"); - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * The decorative cursor which ignores the first few tokens. - */ -module.exports = class SkipCursor extends DecorativeCursor { - - /** - * Initializes this cursor. - * @param {Cursor} cursor The cursor to be decorated. - * @param {number} count The count of tokens this cursor skips. - */ - constructor(cursor, count) { - super(cursor); - this.count = count; - } - - /** @inheritdoc */ - moveNext() { - while (this.count > 0) { - this.count -= 1; - if (!super.moveNext()) { - return false; - } - } - return super.moveNext(); - } -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js b/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js deleted file mode 100644 index 3e014703..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/source-code/token-store/utils.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * @fileoverview Define utility functions for token store. - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * Finds the index of the first token which is after the given location. - * If it was not found, this returns `tokens.length`. - * @param {(Token|Comment)[]} tokens It searches the token in this list. - * @param {number} location The location to search. - * @returns {number} The found index or `tokens.length`. - */ -exports.search = function search(tokens, location) { - for (let minIndex = 0, maxIndex = tokens.length - 1; minIndex <= maxIndex;) { - - /* - * Calculate the index in the middle between minIndex and maxIndex. - * `| 0` is used to round a fractional value down to the nearest integer: this is similar to - * using `Math.trunc()` or `Math.floor()`, but performance tests have shown this method to - * be faster. - */ - const index = (minIndex + maxIndex) / 2 | 0; - const token = tokens[index]; - const tokenStartLocation = token.range[0]; - - if (location <= tokenStartLocation) { - if (index === minIndex) { - return index; - } - maxIndex = index; - } else { - minIndex = index + 1; - } - } - return tokens.length; -}; - -/** - * Gets the index of the `startLoc` in `tokens`. - * `startLoc` can be the value of `node.range[1]`, so this checks about `startLoc - 1` as well. - * @param {(Token|Comment)[]} tokens The tokens to find an index. - * @param {Object} indexMap The map from locations to indices. - * @param {number} startLoc The location to get an index. - * @returns {number} The index. - */ -exports.getFirstIndex = function getFirstIndex(tokens, indexMap, startLoc) { - if (startLoc in indexMap) { - return indexMap[startLoc]; - } - if ((startLoc - 1) in indexMap) { - const index = indexMap[startLoc - 1]; - const token = tokens[index]; - - // If the mapped index is out of bounds, the returned cursor index will point after the end of the tokens array. - if (!token) { - return tokens.length; - } - - /* - * For the map of "comment's location -> token's index", it points the next token of a comment. - * In that case, +1 is unnecessary. - */ - if (token.range[0] >= startLoc) { - return index; - } - return index + 1; - } - return 0; -}; - -/** - * Gets the index of the `endLoc` in `tokens`. - * The information of end locations are recorded at `endLoc - 1` in `indexMap`, so this checks about `endLoc - 1` as well. - * @param {(Token|Comment)[]} tokens The tokens to find an index. - * @param {Object} indexMap The map from locations to indices. - * @param {number} endLoc The location to get an index. - * @returns {number} The index. - */ -exports.getLastIndex = function getLastIndex(tokens, indexMap, endLoc) { - if (endLoc in indexMap) { - return indexMap[endLoc] - 1; - } - if ((endLoc - 1) in indexMap) { - const index = indexMap[endLoc - 1]; - const token = tokens[index]; - - // If the mapped index is out of bounds, the returned cursor index will point before the end of the tokens array. - if (!token) { - return tokens.length - 1; - } - - /* - * For the map of "comment's location -> token's index", it points the next token of a comment. - * In that case, -1 is necessary. - */ - if (token.range[1] > endLoc) { - return index - 1; - } - return index; - } - return tokens.length - 1; -}; diff --git a/graphql/node_modules/eslint/lib/languages/js/validate-language-options.js b/graphql/node_modules/eslint/lib/languages/js/validate-language-options.js deleted file mode 100644 index ba1e5e39..00000000 --- a/graphql/node_modules/eslint/lib/languages/js/validate-language-options.js +++ /dev/null @@ -1,181 +0,0 @@ -/** - * @fileoverview The schema to validate language options - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Data -//----------------------------------------------------------------------------- - -const globalVariablesValues = new Set([ - true, "true", "writable", "writeable", - false, "false", "readonly", "readable", null, - "off" -]); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Check if a value is a non-null object. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(value) { - return typeof value === "object" && value !== null; -} - -/** - * Check if a value is a non-null non-array object. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is a non-null non-array object. - */ -function isNonArrayObject(value) { - return isNonNullObject(value) && !Array.isArray(value); -} - -/** - * Check if a value is undefined. - * @param {any} value The value to check. - * @returns {boolean} `true` if the value is undefined. - */ -function isUndefined(value) { - return typeof value === "undefined"; -} - -//----------------------------------------------------------------------------- -// Schemas -//----------------------------------------------------------------------------- - -/** - * Validates the ecmaVersion property. - * @param {string|number} ecmaVersion The value to check. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ -function validateEcmaVersion(ecmaVersion) { - - if (isUndefined(ecmaVersion)) { - throw new TypeError("Key \"ecmaVersion\": Expected an \"ecmaVersion\" property."); - } - - if (typeof ecmaVersion !== "number" && ecmaVersion !== "latest") { - throw new TypeError("Key \"ecmaVersion\": Expected a number or \"latest\"."); - } - -} - -/** - * Validates the sourceType property. - * @param {string} sourceType The value to check. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ -function validateSourceType(sourceType) { - - if (typeof sourceType !== "string" || !/^(?:script|module|commonjs)$/u.test(sourceType)) { - throw new TypeError("Key \"sourceType\": Expected \"script\", \"module\", or \"commonjs\"."); - } - -} - -/** - * Validates the globals property. - * @param {Object} globals The value to check. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ -function validateGlobals(globals) { - - if (!isNonArrayObject(globals)) { - throw new TypeError("Key \"globals\": Expected an object."); - } - - for (const key of Object.keys(globals)) { - - // avoid hairy edge case - if (key === "__proto__") { - continue; - } - - if (key !== key.trim()) { - throw new TypeError(`Key "globals": Global "${key}" has leading or trailing whitespace.`); - } - - if (!globalVariablesValues.has(globals[key])) { - throw new TypeError(`Key "globals": Key "${key}": Expected "readonly", "writable", or "off".`); - } - } -} - -/** - * Validates the parser property. - * @param {Object} parser The value to check. - * @returns {void} - * @throws {TypeError} If the value is invalid. - */ -function validateParser(parser) { - - if (!parser || typeof parser !== "object" || - (typeof parser.parse !== "function" && typeof parser.parseForESLint !== "function") - ) { - throw new TypeError("Key \"parser\": Expected object with parse() or parseForESLint() method."); - } - -} - -/** - * Validates the language options. - * @param {Object} languageOptions The language options to validate. - * @returns {void} - * @throws {TypeError} If the language options are invalid. - */ -function validateLanguageOptions(languageOptions) { - - if (!isNonArrayObject(languageOptions)) { - throw new TypeError("Expected an object."); - } - - const { - ecmaVersion, - sourceType, - globals, - parser, - parserOptions, - ...otherOptions - } = languageOptions; - - if ("ecmaVersion" in languageOptions) { - validateEcmaVersion(ecmaVersion); - } - - if ("sourceType" in languageOptions) { - validateSourceType(sourceType); - } - - if ("globals" in languageOptions) { - validateGlobals(globals); - } - - if ("parser" in languageOptions) { - validateParser(parser); - } - - if ("parserOptions" in languageOptions) { - if (!isNonArrayObject(parserOptions)) { - throw new TypeError("Key \"parserOptions\": Expected an object."); - } - } - - const otherOptionKeys = Object.keys(otherOptions); - - if (otherOptionKeys.length > 0) { - throw new TypeError(`Unexpected key "${otherOptionKeys[0]}" found.`); - } - -} - -module.exports = { validateLanguageOptions }; diff --git a/graphql/node_modules/eslint/lib/linter/apply-disable-directives.js b/graphql/node_modules/eslint/lib/linter/apply-disable-directives.js deleted file mode 100644 index ba7e5890..00000000 --- a/graphql/node_modules/eslint/lib/linter/apply-disable-directives.js +++ /dev/null @@ -1,513 +0,0 @@ -/** - * @fileoverview A module that filters reported problems based on `eslint-disable` and `eslint-enable` comments - * @author Teddy Katz - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("@eslint/core").Language} Language */ -/** @typedef {import("@eslint/core").Position} Position */ -/** @typedef {import("@eslint/core").RulesConfig} RulesConfig */ - -//------------------------------------------------------------------------------ -// Module Definition -//------------------------------------------------------------------------------ - -const escapeRegExp = require("escape-string-regexp"); -const { - Legacy: { - ConfigOps - } -} = require("@eslint/eslintrc/universal"); - -/** - * Compares the locations of two objects in a source file - * @param {Position} itemA The first object - * @param {Position} itemB The second object - * @returns {number} A value less than 1 if itemA appears before itemB in the source file, greater than 1 if - * itemA appears after itemB in the source file, or 0 if itemA and itemB have the same location. - */ -function compareLocations(itemA, itemB) { - return itemA.line - itemB.line || itemA.column - itemB.column; -} - -/** - * Groups a set of directives into sub-arrays by their parent comment. - * @param {Iterable} directives Unused directives to be removed. - * @returns {Directive[][]} Directives grouped by their parent comment. - */ -function groupByParentDirective(directives) { - const groups = new Map(); - - for (const directive of directives) { - const { unprocessedDirective: { parentDirective } } = directive; - - if (groups.has(parentDirective)) { - groups.get(parentDirective).push(directive); - } else { - groups.set(parentDirective, [directive]); - } - } - - return [...groups.values()]; -} - -/** - * Creates removal details for a set of directives within the same comment. - * @param {Directive[]} directives Unused directives to be removed. - * @param {Token} node The backing Comment token. - * @param {SourceCode} sourceCode The source code object for the file being linted. - * @returns {{ description, fix, unprocessedDirective }[]} Details for later creation of output Problems. - */ -function createIndividualDirectivesRemoval(directives, node, sourceCode) { - - const range = sourceCode.getRange(node); - - /* - * `node.value` starts right after `//` or `/*`. - * All calculated offsets will be relative to this index. - */ - const commentValueStart = range[0] + "//".length; - - // Find where the list of rules starts. `\S+` matches with the directive name (e.g. `eslint-disable-line`) - const listStartOffset = /^\s*\S+\s+/u.exec(node.value)[0].length; - - /* - * Get the list text without any surrounding whitespace. In order to preserve the original - * formatting, we don't want to change that whitespace. - * - * // eslint-disable-line rule-one , rule-two , rule-three -- comment - * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - */ - const listText = node.value - .slice(listStartOffset) // remove directive name and all whitespace before the list - .split(/\s-{2,}\s/u)[0] // remove `-- comment`, if it exists - .trimEnd(); // remove all whitespace after the list - - /* - * We can assume that `listText` contains multiple elements. - * Otherwise, this function wouldn't be called - if there is - * only one rule in the list, then the whole comment must be removed. - */ - - return directives.map(directive => { - const { ruleId } = directive; - - const regex = new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${escapeRegExp(ruleId)}\k(?:\s*,\s*|$)`, "u"); - const match = regex.exec(listText); - const matchedText = match[0]; - const matchStartOffset = listStartOffset + match.index; - const matchEndOffset = matchStartOffset + matchedText.length; - - const firstIndexOfComma = matchedText.indexOf(","); - const lastIndexOfComma = matchedText.lastIndexOf(","); - - let removalStartOffset, removalEndOffset; - - if (firstIndexOfComma !== lastIndexOfComma) { - - /* - * Since there are two commas, this must one of the elements in the middle of the list. - * Matched range starts where the previous rule name ends, and ends where the next rule name starts. - * - * // eslint-disable-line rule-one , rule-two , rule-three -- comment - * ^^^^^^^^^^^^^^ - * - * We want to remove only the content between the two commas, and also one of the commas. - * - * // eslint-disable-line rule-one , rule-two , rule-three -- comment - * ^^^^^^^^^^^ - */ - removalStartOffset = matchStartOffset + firstIndexOfComma; - removalEndOffset = matchStartOffset + lastIndexOfComma; - - } else { - - /* - * This is either the first element or the last element. - * - * If this is the first element, matched range starts where the first rule name starts - * and ends where the second rule name starts. This is exactly the range we want - * to remove so that the second rule name will start where the first one was starting - * and thus preserve the original formatting. - * - * // eslint-disable-line rule-one , rule-two , rule-three -- comment - * ^^^^^^^^^^^ - * - * Similarly, if this is the last element, we've already matched the range we want to - * remove. The previous rule name will end where the last one was ending, relative - * to the content on the right side. - * - * // eslint-disable-line rule-one , rule-two , rule-three -- comment - * ^^^^^^^^^^^^^ - */ - removalStartOffset = matchStartOffset; - removalEndOffset = matchEndOffset; - } - - return { - description: `'${ruleId}'`, - fix: { - range: [ - commentValueStart + removalStartOffset, - commentValueStart + removalEndOffset - ], - text: "" - }, - unprocessedDirective: directive.unprocessedDirective - }; - }); -} - -/** - * Creates a description of deleting an entire unused disable directive. - * @param {Directive[]} directives Unused directives to be removed. - * @param {Token} node The backing Comment token. - * @param {SourceCode} sourceCode The source code object for the file being linted. - * @returns {{ description, fix, unprocessedDirective }} Details for later creation of an output problem. - */ -function createDirectiveRemoval(directives, node, sourceCode) { - const range = sourceCode.getRange(node); - const ruleIds = directives.filter(directive => directive.ruleId).map(directive => `'${directive.ruleId}'`); - - return { - description: ruleIds.length <= 2 - ? ruleIds.join(" or ") - : `${ruleIds.slice(0, ruleIds.length - 1).join(", ")}, or ${ruleIds.at(-1)}`, - fix: { - range, - text: " " - }, - unprocessedDirective: directives[0].unprocessedDirective - }; -} - -/** - * Parses details from directives to create output Problems. - * @param {Iterable} allDirectives Unused directives to be removed. - * @param {SourceCode} sourceCode The source code object for the file being linted. - * @returns {{ description, fix, unprocessedDirective }[]} Details for later creation of output Problems. - */ -function processUnusedDirectives(allDirectives, sourceCode) { - const directiveGroups = groupByParentDirective(allDirectives); - - return directiveGroups.flatMap( - directives => { - const { parentDirective } = directives[0].unprocessedDirective; - const remainingRuleIds = new Set(parentDirective.ruleIds); - - for (const directive of directives) { - remainingRuleIds.delete(directive.ruleId); - } - - return remainingRuleIds.size - ? createIndividualDirectivesRemoval(directives, parentDirective.node, sourceCode) - : [createDirectiveRemoval(directives, parentDirective.node, sourceCode)]; - } - ); -} - -/** - * Collect eslint-enable comments that are removing suppressions by eslint-disable comments. - * @param {Directive[]} directives The directives to check. - * @returns {Set} The used eslint-enable comments - */ -function collectUsedEnableDirectives(directives) { - - /** - * A Map of `eslint-enable` keyed by ruleIds that may be marked as used. - * If `eslint-enable` does not have a ruleId, the key will be `null`. - * @type {Map} - */ - const enabledRules = new Map(); - - /** - * A Set of `eslint-enable` marked as used. - * It is also the return value of `collectUsedEnableDirectives` function. - * @type {Set} - */ - const usedEnableDirectives = new Set(); - - /* - * Checks the directives backwards to see if the encountered `eslint-enable` is used by the previous `eslint-disable`, - * and if so, stores the `eslint-enable` in `usedEnableDirectives`. - */ - for (let index = directives.length - 1; index >= 0; index--) { - const directive = directives[index]; - - if (directive.type === "disable") { - if (enabledRules.size === 0) { - continue; - } - if (directive.ruleId === null) { - - // If encounter `eslint-disable` without ruleId, - // mark all `eslint-enable` currently held in enabledRules as used. - // e.g. - // /* eslint-disable */ <- current directive - // /* eslint-enable rule-id1 */ <- used - // /* eslint-enable rule-id2 */ <- used - // /* eslint-enable */ <- used - for (const enableDirective of enabledRules.values()) { - usedEnableDirectives.add(enableDirective); - } - enabledRules.clear(); - } else { - const enableDirective = enabledRules.get(directive.ruleId); - - if (enableDirective) { - - // If encounter `eslint-disable` with ruleId, and there is an `eslint-enable` with the same ruleId in enabledRules, - // mark `eslint-enable` with ruleId as used. - // e.g. - // /* eslint-disable rule-id */ <- current directive - // /* eslint-enable rule-id */ <- used - usedEnableDirectives.add(enableDirective); - } else { - const enabledDirectiveWithoutRuleId = enabledRules.get(null); - - if (enabledDirectiveWithoutRuleId) { - - // If encounter `eslint-disable` with ruleId, and there is no `eslint-enable` with the same ruleId in enabledRules, - // mark `eslint-enable` without ruleId as used. - // e.g. - // /* eslint-disable rule-id */ <- current directive - // /* eslint-enable */ <- used - usedEnableDirectives.add(enabledDirectiveWithoutRuleId); - } - } - } - } else if (directive.type === "enable") { - if (directive.ruleId === null) { - - // If encounter `eslint-enable` without ruleId, the `eslint-enable` that follows it are unused. - // So clear enabledRules. - // e.g. - // /* eslint-enable */ <- current directive - // /* eslint-enable rule-id *// <- unused - // /* eslint-enable */ <- unused - enabledRules.clear(); - enabledRules.set(null, directive); - } else { - enabledRules.set(directive.ruleId, directive); - } - } - } - return usedEnableDirectives; -} - -/** - * This is the same as the exported function, except that it - * doesn't handle disable-line and disable-next-line directives, and it always reports unused - * disable directives. - * @param {Object} options options for applying directives. This is the same as the options - * for the exported function, except that `reportUnusedDisableDirectives` is not supported - * (this function always reports unused disable directives). - * @returns {{problems: LintMessage[], unusedDirectives: LintMessage[]}} An object with a list - * of problems (including suppressed ones) and unused eslint-disable directives - */ -function applyDirectives(options) { - const problems = []; - const usedDisableDirectives = new Set(); - const { sourceCode } = options; - - for (const problem of options.problems) { - let disableDirectivesForProblem = []; - let nextDirectiveIndex = 0; - - while ( - nextDirectiveIndex < options.directives.length && - compareLocations(options.directives[nextDirectiveIndex], problem) <= 0 - ) { - const directive = options.directives[nextDirectiveIndex++]; - - if (directive.ruleId === null || directive.ruleId === problem.ruleId) { - switch (directive.type) { - case "disable": - disableDirectivesForProblem.push(directive); - break; - - case "enable": - disableDirectivesForProblem = []; - break; - - // no default - } - } - } - - if (disableDirectivesForProblem.length > 0) { - const suppressions = disableDirectivesForProblem.map(directive => ({ - kind: "directive", - justification: directive.unprocessedDirective.justification - })); - - if (problem.suppressions) { - problem.suppressions = problem.suppressions.concat(suppressions); - } else { - problem.suppressions = suppressions; - usedDisableDirectives.add(disableDirectivesForProblem.at(-1)); - } - } - - problems.push(problem); - } - - const unusedDisableDirectivesToReport = options.directives - .filter(directive => directive.type === "disable" && !usedDisableDirectives.has(directive) && !options.rulesToIgnore.has(directive.ruleId)); - - - const unusedEnableDirectivesToReport = new Set( - options.directives.filter(directive => directive.unprocessedDirective.type === "enable" && !options.rulesToIgnore.has(directive.ruleId)) - ); - - /* - * If directives has the eslint-enable directive, - * check whether the eslint-enable comment is used. - */ - if (unusedEnableDirectivesToReport.size > 0) { - for (const directive of collectUsedEnableDirectives(options.directives)) { - unusedEnableDirectivesToReport.delete(directive); - } - } - - const processed = processUnusedDirectives(unusedDisableDirectivesToReport, sourceCode) - .concat(processUnusedDirectives(unusedEnableDirectivesToReport, sourceCode)); - const columnOffset = options.language.columnStart === 1 ? 0 : 1; - const lineOffset = options.language.lineStart === 1 ? 0 : 1; - - const unusedDirectives = processed - .map(({ description, fix, unprocessedDirective }) => { - const { parentDirective, type, line, column } = unprocessedDirective; - - let message; - - if (type === "enable") { - message = description - ? `Unused eslint-enable directive (no matching eslint-disable directives were found for ${description}).` - : "Unused eslint-enable directive (no matching eslint-disable directives were found)."; - } else { - message = description - ? `Unused eslint-disable directive (no problems were reported from ${description}).` - : "Unused eslint-disable directive (no problems were reported)."; - } - - const loc = sourceCode.getLoc(parentDirective.node); - - return { - ruleId: null, - message, - line: type === "disable-next-line" ? loc.start.line + lineOffset : line, - column: type === "disable-next-line" ? loc.start.column + columnOffset : column, - severity: options.reportUnusedDisableDirectives === "warn" ? 1 : 2, - nodeType: null, - ...options.disableFixes ? {} : { fix } - }; - }); - - return { problems, unusedDirectives }; -} - -/** - * Given a list of directive comments (i.e. metadata about eslint-disable and eslint-enable comments) and a list - * of reported problems, adds the suppression information to the problems. - * @param {Object} options Information about directives and problems - * @param {Language} options.language The language being linted. - * @param {SourceCode} options.sourceCode The source code object for the file being linted. - * @param {{ - * type: ("disable"|"enable"|"disable-line"|"disable-next-line"), - * ruleId: (string|null), - * line: number, - * column: number, - * justification: string - * }} options.directives Directive comments found in the file, with one-based columns. - * Two directive comments can only have the same location if they also have the same type (e.g. a single eslint-disable - * comment for two different rules is represented as two directives). - * @param {{ruleId: (string|null), line: number, column: number}[]} options.problems - * A list of problems reported by rules, sorted by increasing location in the file, with one-based columns. - * @param {"off" | "warn" | "error"} options.reportUnusedDisableDirectives If `"warn"` or `"error"`, adds additional problems for unused directives - * @param {RulesConfig} options.configuredRules The rules configuration. - * @param {Function} options.ruleFilter A predicate function to filter which rules should be executed. - * @param {boolean} options.disableFixes If true, it doesn't make `fix` properties. - * @returns {{ruleId: (string|null), line: number, column: number, suppressions?: {kind: string, justification: string}}[]} - * An object with a list of reported problems, the suppressed of which contain the suppression information. - */ -module.exports = ({ language, sourceCode, directives, disableFixes, problems, configuredRules, ruleFilter, reportUnusedDisableDirectives = "off" }) => { - const blockDirectives = directives - .filter(directive => directive.type === "disable" || directive.type === "enable") - .map(directive => Object.assign({}, directive, { unprocessedDirective: directive })) - .sort(compareLocations); - - const lineDirectives = directives.flatMap(directive => { - switch (directive.type) { - case "disable": - case "enable": - return []; - - case "disable-line": - return [ - { type: "disable", line: directive.line, column: 1, ruleId: directive.ruleId, unprocessedDirective: directive }, - { type: "enable", line: directive.line + 1, column: 0, ruleId: directive.ruleId, unprocessedDirective: directive } - ]; - - case "disable-next-line": - return [ - { type: "disable", line: directive.line + 1, column: 1, ruleId: directive.ruleId, unprocessedDirective: directive }, - { type: "enable", line: directive.line + 2, column: 0, ruleId: directive.ruleId, unprocessedDirective: directive } - ]; - - default: - throw new TypeError(`Unrecognized directive type '${directive.type}'`); - } - }).sort(compareLocations); - - // This determines a list of rules that are not being run by the given ruleFilter, if present. - const rulesToIgnore = configuredRules && ruleFilter - ? new Set(Object.keys(configuredRules).filter(ruleId => { - const severity = ConfigOps.getRuleSeverity(configuredRules[ruleId]); - - // Ignore for disabled rules. - if (severity === 0) { - return false; - } - - return !ruleFilter({ severity, ruleId }); - })) - : new Set(); - - // If no ruleId is supplied that means this directive is applied to all rules, so we can't determine if it's unused if any rules are filtered out. - if (rulesToIgnore.size > 0) { - rulesToIgnore.add(null); - } - - const blockDirectivesResult = applyDirectives({ - language, - sourceCode, - problems, - directives: blockDirectives, - disableFixes, - reportUnusedDisableDirectives, - rulesToIgnore - }); - const lineDirectivesResult = applyDirectives({ - language, - sourceCode, - problems: blockDirectivesResult.problems, - directives: lineDirectives, - disableFixes, - reportUnusedDisableDirectives, - rulesToIgnore - }); - - return reportUnusedDisableDirectives !== "off" - ? lineDirectivesResult.problems - .concat(blockDirectivesResult.unusedDirectives) - .concat(lineDirectivesResult.unusedDirectives) - .sort(compareLocations) - : lineDirectivesResult.problems; -}; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js deleted file mode 100644 index 16e9d18a..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js +++ /dev/null @@ -1,851 +0,0 @@ -/** - * @fileoverview A class of the code path analyzer. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const assert = require("node:assert"), - { breakableTypePattern } = require("../../shared/ast-utils"), - CodePath = require("./code-path"), - CodePathSegment = require("./code-path-segment"), - IdGenerator = require("./id-generator"), - debug = require("./debug-helpers"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given node is a `case` node (not `default` node). - * @param {ASTNode} node A `SwitchCase` node to check. - * @returns {boolean} `true` if the node is a `case` node (not `default` node). - */ -function isCaseNode(node) { - return Boolean(node.test); -} - -/** - * Checks if a given node appears as the value of a PropertyDefinition node. - * @param {ASTNode} node THe node to check. - * @returns {boolean} `true` if the node is a PropertyDefinition value, - * false if not. - */ -function isPropertyDefinitionValue(node) { - const parent = node.parent; - - return parent && parent.type === "PropertyDefinition" && parent.value === node; -} - -/** - * Checks whether the given logical operator is taken into account for the code - * path analysis. - * @param {string} operator The operator found in the LogicalExpression node - * @returns {boolean} `true` if the operator is "&&" or "||" or "??" - */ -function isHandledLogicalOperator(operator) { - return operator === "&&" || operator === "||" || operator === "??"; -} - -/** - * Checks whether the given assignment operator is a logical assignment operator. - * Logical assignments are taken into account for the code path analysis - * because of their short-circuiting semantics. - * @param {string} operator The operator found in the AssignmentExpression node - * @returns {boolean} `true` if the operator is "&&=" or "||=" or "??=" - */ -function isLogicalAssignmentOperator(operator) { - return operator === "&&=" || operator === "||=" || operator === "??="; -} - -/** - * Gets the label if the parent node of a given node is a LabeledStatement. - * @param {ASTNode} node A node to get. - * @returns {string|null} The label or `null`. - */ -function getLabel(node) { - if (node.parent.type === "LabeledStatement") { - return node.parent.label.name; - } - return null; -} - -/** - * Checks whether or not a given logical expression node goes different path - * between the `true` case and the `false` case. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a test of a choice statement. - */ -function isForkingByTrueOrFalse(node) { - const parent = node.parent; - - switch (parent.type) { - case "ConditionalExpression": - case "IfStatement": - case "WhileStatement": - case "DoWhileStatement": - case "ForStatement": - return parent.test === node; - - case "LogicalExpression": - return isHandledLogicalOperator(parent.operator); - - case "AssignmentExpression": - return isLogicalAssignmentOperator(parent.operator); - - default: - return false; - } -} - -/** - * Gets the boolean value of a given literal node. - * - * This is used to detect infinity loops (e.g. `while (true) {}`). - * Statements preceded by an infinity loop are unreachable if the loop didn't - * have any `break` statement. - * @param {ASTNode} node A node to get. - * @returns {boolean|undefined} a boolean value if the node is a Literal node, - * otherwise `undefined`. - */ -function getBooleanValueIfSimpleConstant(node) { - if (node.type === "Literal") { - return Boolean(node.value); - } - return void 0; -} - -/** - * Checks that a given identifier node is a reference or not. - * - * This is used to detect the first throwable node in a `try` block. - * @param {ASTNode} node An Identifier node to check. - * @returns {boolean} `true` if the node is a reference. - */ -function isIdentifierReference(node) { - const parent = node.parent; - - switch (parent.type) { - case "LabeledStatement": - case "BreakStatement": - case "ContinueStatement": - case "ArrayPattern": - case "RestElement": - case "ImportSpecifier": - case "ImportDefaultSpecifier": - case "ImportNamespaceSpecifier": - case "CatchClause": - return false; - - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - case "ClassDeclaration": - case "ClassExpression": - case "VariableDeclarator": - return parent.id !== node; - - case "Property": - case "PropertyDefinition": - case "MethodDefinition": - return ( - parent.key !== node || - parent.computed || - parent.shorthand - ); - - case "AssignmentPattern": - return parent.key !== node; - - default: - return true; - } -} - -/** - * Updates the current segment with the head segment. - * This is similar to local branches and tracking branches of git. - * - * To separate the current and the head is in order to not make useless segments. - * - * In this process, both "onCodePathSegmentStart" and "onCodePathSegmentEnd" - * events are fired. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function forwardCurrentToHead(analyzer, node) { - const codePath = analyzer.codePath; - const state = CodePath.getState(codePath); - const currentSegments = state.currentSegments; - const headSegments = state.headSegments; - const end = Math.max(currentSegments.length, headSegments.length); - let i, currentSegment, headSegment; - - // Fires leaving events. - for (i = 0; i < end; ++i) { - currentSegment = currentSegments[i]; - headSegment = headSegments[i]; - - if (currentSegment !== headSegment && currentSegment) { - - const eventName = currentSegment.reachable - ? "onCodePathSegmentEnd" - : "onUnreachableCodePathSegmentEnd"; - - debug.dump(`${eventName} ${currentSegment.id}`); - - analyzer.emitter.emit( - eventName, - currentSegment, - node - ); - } - } - - // Update state. - state.currentSegments = headSegments; - - // Fires entering events. - for (i = 0; i < end; ++i) { - currentSegment = currentSegments[i]; - headSegment = headSegments[i]; - - if (currentSegment !== headSegment && headSegment) { - - const eventName = headSegment.reachable - ? "onCodePathSegmentStart" - : "onUnreachableCodePathSegmentStart"; - - debug.dump(`${eventName} ${headSegment.id}`); - CodePathSegment.markUsed(headSegment); - analyzer.emitter.emit( - eventName, - headSegment, - node - ); - } - } - -} - -/** - * Updates the current segment with empty. - * This is called at the last of functions or the program. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function leaveFromCurrentSegment(analyzer, node) { - const state = CodePath.getState(analyzer.codePath); - const currentSegments = state.currentSegments; - - for (let i = 0; i < currentSegments.length; ++i) { - const currentSegment = currentSegments[i]; - const eventName = currentSegment.reachable - ? "onCodePathSegmentEnd" - : "onUnreachableCodePathSegmentEnd"; - - debug.dump(`${eventName} ${currentSegment.id}`); - - analyzer.emitter.emit( - eventName, - currentSegment, - node - ); - } - - state.currentSegments = []; -} - -/** - * Updates the code path due to the position of a given node in the parent node - * thereof. - * - * For example, if the node is `parent.consequent`, this creates a fork from the - * current path. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function preprocess(analyzer, node) { - const codePath = analyzer.codePath; - const state = CodePath.getState(codePath); - const parent = node.parent; - - switch (parent.type) { - - // The `arguments.length == 0` case is in `postprocess` function. - case "CallExpression": - if (parent.optional === true && parent.arguments.length >= 1 && parent.arguments[0] === node) { - state.makeOptionalRight(); - } - break; - case "MemberExpression": - if (parent.optional === true && parent.property === node) { - state.makeOptionalRight(); - } - break; - - case "LogicalExpression": - if ( - parent.right === node && - isHandledLogicalOperator(parent.operator) - ) { - state.makeLogicalRight(); - } - break; - - case "AssignmentExpression": - if ( - parent.right === node && - isLogicalAssignmentOperator(parent.operator) - ) { - state.makeLogicalRight(); - } - break; - - case "ConditionalExpression": - case "IfStatement": - - /* - * Fork if this node is at `consequent`/`alternate`. - * `popForkContext()` exists at `IfStatement:exit` and - * `ConditionalExpression:exit`. - */ - if (parent.consequent === node) { - state.makeIfConsequent(); - } else if (parent.alternate === node) { - state.makeIfAlternate(); - } - break; - - case "SwitchCase": - if (parent.consequent[0] === node) { - state.makeSwitchCaseBody(false, !parent.test); - } - break; - - case "TryStatement": - if (parent.handler === node) { - state.makeCatchBlock(); - } else if (parent.finalizer === node) { - state.makeFinallyBlock(); - } - break; - - case "WhileStatement": - if (parent.test === node) { - state.makeWhileTest(getBooleanValueIfSimpleConstant(node)); - } else { - assert(parent.body === node); - state.makeWhileBody(); - } - break; - - case "DoWhileStatement": - if (parent.body === node) { - state.makeDoWhileBody(); - } else { - assert(parent.test === node); - state.makeDoWhileTest(getBooleanValueIfSimpleConstant(node)); - } - break; - - case "ForStatement": - if (parent.test === node) { - state.makeForTest(getBooleanValueIfSimpleConstant(node)); - } else if (parent.update === node) { - state.makeForUpdate(); - } else if (parent.body === node) { - state.makeForBody(); - } - break; - - case "ForInStatement": - case "ForOfStatement": - if (parent.left === node) { - state.makeForInOfLeft(); - } else if (parent.right === node) { - state.makeForInOfRight(); - } else { - assert(parent.body === node); - state.makeForInOfBody(); - } - break; - - case "AssignmentPattern": - - /* - * Fork if this node is at `right`. - * `left` is executed always, so it uses the current path. - * `popForkContext()` exists at `AssignmentPattern:exit`. - */ - if (parent.right === node) { - state.pushForkContext(); - state.forkBypassPath(); - state.forkPath(); - } - break; - - default: - break; - } -} - -/** - * Updates the code path due to the type of a given node in entering. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function processCodePathToEnter(analyzer, node) { - let codePath = analyzer.codePath; - let state = codePath && CodePath.getState(codePath); - const parent = node.parent; - - /** - * Creates a new code path and trigger the onCodePathStart event - * based on the currently selected node. - * @param {string} origin The reason the code path was started. - * @returns {void} - */ - function startCodePath(origin) { - if (codePath) { - - // Emits onCodePathSegmentStart events if updated. - forwardCurrentToHead(analyzer, node); - debug.dumpState(node, state, false); - } - - // Create the code path of this scope. - codePath = analyzer.codePath = new CodePath({ - id: analyzer.idGenerator.next(), - origin, - upper: codePath, - onLooped: analyzer.onLooped - }); - state = CodePath.getState(codePath); - - // Emits onCodePathStart events. - debug.dump(`onCodePathStart ${codePath.id}`); - analyzer.emitter.emit("onCodePathStart", codePath, node); - } - - /* - * Special case: The right side of class field initializer is considered - * to be its own function, so we need to start a new code path in this - * case. - */ - if (isPropertyDefinitionValue(node)) { - startCodePath("class-field-initializer"); - - /* - * Intentional fall through because `node` needs to also be - * processed by the code below. For example, if we have: - * - * class Foo { - * a = () => {} - * } - * - * In this case, we also need start a second code path. - */ - - } - - switch (node.type) { - case "Program": - startCodePath("program"); - break; - - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - startCodePath("function"); - break; - - case "StaticBlock": - startCodePath("class-static-block"); - break; - - case "ChainExpression": - state.pushChainContext(); - break; - case "CallExpression": - if (node.optional === true) { - state.makeOptionalNode(); - } - break; - case "MemberExpression": - if (node.optional === true) { - state.makeOptionalNode(); - } - break; - - case "LogicalExpression": - if (isHandledLogicalOperator(node.operator)) { - state.pushChoiceContext( - node.operator, - isForkingByTrueOrFalse(node) - ); - } - break; - - case "AssignmentExpression": - if (isLogicalAssignmentOperator(node.operator)) { - state.pushChoiceContext( - node.operator.slice(0, -1), // removes `=` from the end - isForkingByTrueOrFalse(node) - ); - } - break; - - case "ConditionalExpression": - case "IfStatement": - state.pushChoiceContext("test", false); - break; - - case "SwitchStatement": - state.pushSwitchContext( - node.cases.some(isCaseNode), - getLabel(node) - ); - break; - - case "TryStatement": - state.pushTryContext(Boolean(node.finalizer)); - break; - - case "SwitchCase": - - /* - * Fork if this node is after the 2st node in `cases`. - * It's similar to `else` blocks. - * The next `test` node is processed in this path. - */ - if (parent.discriminant !== node && parent.cases[0] !== node) { - state.forkPath(); - } - break; - - case "WhileStatement": - case "DoWhileStatement": - case "ForStatement": - case "ForInStatement": - case "ForOfStatement": - state.pushLoopContext(node.type, getLabel(node)); - break; - - case "LabeledStatement": - if (!breakableTypePattern.test(node.body.type)) { - state.pushBreakContext(false, node.label.name); - } - break; - - default: - break; - } - - // Emits onCodePathSegmentStart events if updated. - forwardCurrentToHead(analyzer, node); - debug.dumpState(node, state, false); -} - -/** - * Updates the code path due to the type of a given node in leaving. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function processCodePathToExit(analyzer, node) { - - const codePath = analyzer.codePath; - const state = CodePath.getState(codePath); - let dontForward = false; - - switch (node.type) { - case "ChainExpression": - state.popChainContext(); - break; - - case "IfStatement": - case "ConditionalExpression": - state.popChoiceContext(); - break; - - case "LogicalExpression": - if (isHandledLogicalOperator(node.operator)) { - state.popChoiceContext(); - } - break; - - case "AssignmentExpression": - if (isLogicalAssignmentOperator(node.operator)) { - state.popChoiceContext(); - } - break; - - case "SwitchStatement": - state.popSwitchContext(); - break; - - case "SwitchCase": - - /* - * This is the same as the process at the 1st `consequent` node in - * `preprocess` function. - * Must do if this `consequent` is empty. - */ - if (node.consequent.length === 0) { - state.makeSwitchCaseBody(true, !node.test); - } - if (state.forkContext.reachable) { - dontForward = true; - } - break; - - case "TryStatement": - state.popTryContext(); - break; - - case "BreakStatement": - forwardCurrentToHead(analyzer, node); - state.makeBreak(node.label && node.label.name); - dontForward = true; - break; - - case "ContinueStatement": - forwardCurrentToHead(analyzer, node); - state.makeContinue(node.label && node.label.name); - dontForward = true; - break; - - case "ReturnStatement": - forwardCurrentToHead(analyzer, node); - state.makeReturn(); - dontForward = true; - break; - - case "ThrowStatement": - forwardCurrentToHead(analyzer, node); - state.makeThrow(); - dontForward = true; - break; - - case "Identifier": - if (isIdentifierReference(node)) { - state.makeFirstThrowablePathInTryBlock(); - dontForward = true; - } - break; - - case "CallExpression": - case "ImportExpression": - case "MemberExpression": - case "NewExpression": - case "YieldExpression": - state.makeFirstThrowablePathInTryBlock(); - break; - - case "WhileStatement": - case "DoWhileStatement": - case "ForStatement": - case "ForInStatement": - case "ForOfStatement": - state.popLoopContext(); - break; - - case "AssignmentPattern": - state.popForkContext(); - break; - - case "LabeledStatement": - if (!breakableTypePattern.test(node.body.type)) { - state.popBreakContext(); - } - break; - - default: - break; - } - - // Emits onCodePathSegmentStart events if updated. - if (!dontForward) { - forwardCurrentToHead(analyzer, node); - } - debug.dumpState(node, state, true); -} - -/** - * Updates the code path to finalize the current code path. - * @param {CodePathAnalyzer} analyzer The instance. - * @param {ASTNode} node The current AST node. - * @returns {void} - */ -function postprocess(analyzer, node) { - - /** - * Ends the code path for the current node. - * @returns {void} - */ - function endCodePath() { - let codePath = analyzer.codePath; - - // Mark the current path as the final node. - CodePath.getState(codePath).makeFinal(); - - // Emits onCodePathSegmentEnd event of the current segments. - leaveFromCurrentSegment(analyzer, node); - - // Emits onCodePathEnd event of this code path. - debug.dump(`onCodePathEnd ${codePath.id}`); - analyzer.emitter.emit("onCodePathEnd", codePath, node); - debug.dumpDot(codePath); - - codePath = analyzer.codePath = analyzer.codePath.upper; - if (codePath) { - debug.dumpState(node, CodePath.getState(codePath), true); - } - - } - - switch (node.type) { - case "Program": - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - case "StaticBlock": { - endCodePath(); - break; - } - - // The `arguments.length >= 1` case is in `preprocess` function. - case "CallExpression": - if (node.optional === true && node.arguments.length === 0) { - CodePath.getState(analyzer.codePath).makeOptionalRight(); - } - break; - - default: - break; - } - - /* - * Special case: The right side of class field initializer is considered - * to be its own function, so we need to end a code path in this - * case. - * - * We need to check after the other checks in order to close the - * code paths in the correct order for code like this: - * - * - * class Foo { - * a = () => {} - * } - * - * In this case, The ArrowFunctionExpression code path is closed first - * and then we need to close the code path for the PropertyDefinition - * value. - */ - if (isPropertyDefinitionValue(node)) { - endCodePath(); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The class to analyze code paths. - * This class implements the EventGenerator interface. - */ -class CodePathAnalyzer { - - /** - * @param {EventGenerator} eventGenerator An event generator to wrap. - */ - constructor(eventGenerator) { - this.original = eventGenerator; - this.emitter = eventGenerator.emitter; - this.codePath = null; - this.idGenerator = new IdGenerator("s"); - this.currentNode = null; - this.onLooped = this.onLooped.bind(this); - } - - /** - * Does the process to enter a given AST node. - * This updates state of analysis and calls `enterNode` of the wrapped. - * @param {ASTNode} node A node which is entering. - * @returns {void} - */ - enterNode(node) { - this.currentNode = node; - - // Updates the code path due to node's position in its parent node. - if (node.parent) { - preprocess(this, node); - } - - /* - * Updates the code path. - * And emits onCodePathStart/onCodePathSegmentStart events. - */ - processCodePathToEnter(this, node); - - // Emits node events. - this.original.enterNode(node); - - this.currentNode = null; - } - - /** - * Does the process to leave a given AST node. - * This updates state of analysis and calls `leaveNode` of the wrapped. - * @param {ASTNode} node A node which is leaving. - * @returns {void} - */ - leaveNode(node) { - this.currentNode = node; - - /* - * Updates the code path. - * And emits onCodePathStart/onCodePathSegmentStart events. - */ - processCodePathToExit(this, node); - - // Emits node events. - this.original.leaveNode(node); - - // Emits the last onCodePathStart/onCodePathSegmentStart events. - postprocess(this, node); - - this.currentNode = null; - } - - /** - * This is called on a code path looped. - * Then this raises a looped event. - * @param {CodePathSegment} fromSegment A segment of prev. - * @param {CodePathSegment} toSegment A segment of next. - * @returns {void} - */ - onLooped(fromSegment, toSegment) { - if (fromSegment.reachable && toSegment.reachable) { - debug.dump(`onCodePathSegmentLoop ${fromSegment.id} -> ${toSegment.id}`); - this.emitter.emit( - "onCodePathSegmentLoop", - fromSegment, - toSegment, - this.currentNode - ); - } - } -} - -module.exports = CodePathAnalyzer; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js deleted file mode 100644 index 3b8dbb41..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-segment.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @fileoverview The CodePathSegment class. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const debug = require("./debug-helpers"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given segment is reachable. - * @param {CodePathSegment} segment A segment to check. - * @returns {boolean} `true` if the segment is reachable. - */ -function isReachable(segment) { - return segment.reachable; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A code path segment. - * - * Each segment is arranged in a series of linked lists (implemented by arrays) - * that keep track of the previous and next segments in a code path. In this way, - * you can navigate between all segments in any code path so long as you have a - * reference to any segment in that code path. - * - * When first created, the segment is in a detached state, meaning that it knows the - * segments that came before it but those segments don't know that this new segment - * follows it. Only when `CodePathSegment#markUsed()` is called on a segment does it - * officially become part of the code path by updating the previous segments to know - * that this new segment follows. - */ -class CodePathSegment { - - /** - * Creates a new instance. - * @param {string} id An identifier. - * @param {CodePathSegment[]} allPrevSegments An array of the previous segments. - * This array includes unreachable segments. - * @param {boolean} reachable A flag which shows this is reachable. - */ - constructor(id, allPrevSegments, reachable) { - - /** - * The identifier of this code path. - * Rules use it to store additional information of each rule. - * @type {string} - */ - this.id = id; - - /** - * An array of the next reachable segments. - * @type {CodePathSegment[]} - */ - this.nextSegments = []; - - /** - * An array of the previous reachable segments. - * @type {CodePathSegment[]} - */ - this.prevSegments = allPrevSegments.filter(isReachable); - - /** - * An array of all next segments including reachable and unreachable. - * @type {CodePathSegment[]} - */ - this.allNextSegments = []; - - /** - * An array of all previous segments including reachable and unreachable. - * @type {CodePathSegment[]} - */ - this.allPrevSegments = allPrevSegments; - - /** - * A flag which shows this is reachable. - * @type {boolean} - */ - this.reachable = reachable; - - // Internal data. - Object.defineProperty(this, "internal", { - value: { - - // determines if the segment has been attached to the code path - used: false, - - // array of previous segments coming from the end of a loop - loopedPrevSegments: [] - } - }); - - /* c8 ignore start */ - if (debug.enabled) { - this.internal.nodes = []; - }/* c8 ignore stop */ - } - - /** - * Checks a given previous segment is coming from the end of a loop. - * @param {CodePathSegment} segment A previous segment to check. - * @returns {boolean} `true` if the segment is coming from the end of a loop. - */ - isLoopedPrevSegment(segment) { - return this.internal.loopedPrevSegments.includes(segment); - } - - /** - * Creates the root segment. - * @param {string} id An identifier. - * @returns {CodePathSegment} The created segment. - */ - static newRoot(id) { - return new CodePathSegment(id, [], true); - } - - /** - * Creates a new segment and appends it after the given segments. - * @param {string} id An identifier. - * @param {CodePathSegment[]} allPrevSegments An array of the previous segments - * to append to. - * @returns {CodePathSegment} The created segment. - */ - static newNext(id, allPrevSegments) { - return new CodePathSegment( - id, - CodePathSegment.flattenUnusedSegments(allPrevSegments), - allPrevSegments.some(isReachable) - ); - } - - /** - * Creates an unreachable segment and appends it after the given segments. - * @param {string} id An identifier. - * @param {CodePathSegment[]} allPrevSegments An array of the previous segments. - * @returns {CodePathSegment} The created segment. - */ - static newUnreachable(id, allPrevSegments) { - const segment = new CodePathSegment(id, CodePathSegment.flattenUnusedSegments(allPrevSegments), false); - - /* - * In `if (a) return a; foo();` case, the unreachable segment preceded by - * the return statement is not used but must not be removed. - */ - CodePathSegment.markUsed(segment); - - return segment; - } - - /** - * Creates a segment that follows given segments. - * This factory method does not connect with `allPrevSegments`. - * But this inherits `reachable` flag. - * @param {string} id An identifier. - * @param {CodePathSegment[]} allPrevSegments An array of the previous segments. - * @returns {CodePathSegment} The created segment. - */ - static newDisconnected(id, allPrevSegments) { - return new CodePathSegment(id, [], allPrevSegments.some(isReachable)); - } - - /** - * Marks a given segment as used. - * - * And this function registers the segment into the previous segments as a next. - * @param {CodePathSegment} segment A segment to mark. - * @returns {void} - */ - static markUsed(segment) { - if (segment.internal.used) { - return; - } - segment.internal.used = true; - - let i; - - if (segment.reachable) { - - /* - * If the segment is reachable, then it's officially part of the - * code path. This loops through all previous segments to update - * their list of next segments. Because the segment is reachable, - * it's added to both `nextSegments` and `allNextSegments`. - */ - for (i = 0; i < segment.allPrevSegments.length; ++i) { - const prevSegment = segment.allPrevSegments[i]; - - prevSegment.allNextSegments.push(segment); - prevSegment.nextSegments.push(segment); - } - } else { - - /* - * If the segment is not reachable, then it's not officially part of the - * code path. This loops through all previous segments to update - * their list of next segments. Because the segment is not reachable, - * it's added only to `allNextSegments`. - */ - for (i = 0; i < segment.allPrevSegments.length; ++i) { - segment.allPrevSegments[i].allNextSegments.push(segment); - } - } - } - - /** - * Marks a previous segment as looped. - * @param {CodePathSegment} segment A segment. - * @param {CodePathSegment} prevSegment A previous segment to mark. - * @returns {void} - */ - static markPrevSegmentAsLooped(segment, prevSegment) { - segment.internal.loopedPrevSegments.push(prevSegment); - } - - /** - * Creates a new array based on an array of segments. If any segment in the - * array is unused, then it is replaced by all of its previous segments. - * All used segments are returned as-is without replacement. - * @param {CodePathSegment[]} segments The array of segments to flatten. - * @returns {CodePathSegment[]} The flattened array. - */ - static flattenUnusedSegments(segments) { - const done = new Set(); - - for (let i = 0; i < segments.length; ++i) { - const segment = segments[i]; - - // Ignores duplicated. - if (done.has(segment)) { - continue; - } - - // Use previous segments if unused. - if (!segment.internal.used) { - for (let j = 0; j < segment.allPrevSegments.length; ++j) { - const prevSegment = segment.allPrevSegments[j]; - - if (!done.has(prevSegment)) { - done.add(prevSegment); - } - } - } else { - done.add(segment); - } - } - - return [...done]; - } -} - -module.exports = CodePathSegment; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js deleted file mode 100644 index 2b0dc2bf..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path-state.js +++ /dev/null @@ -1,2348 +0,0 @@ -/** - * @fileoverview A class to manage state of generating a code path. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const CodePathSegment = require("./code-path-segment"), - ForkContext = require("./fork-context"); - -//----------------------------------------------------------------------------- -// Contexts -//----------------------------------------------------------------------------- - -/** - * Represents the context in which a `break` statement can be used. - * - * A `break` statement without a label is only valid in a few places in - * JavaScript: any type of loop or a `switch` statement. Otherwise, `break` - * without a label causes a syntax error. For these contexts, `breakable` is - * set to `true` to indicate that a `break` without a label is valid. - * - * However, a `break` statement with a label is also valid inside of a labeled - * statement. For example, this is valid: - * - * a : { - * break a; - * } - * - * The `breakable` property is set false for labeled statements to indicate - * that `break` without a label is invalid. - */ -class BreakContext { - - /** - * Creates a new instance. - * @param {BreakContext} upperContext The previous `BreakContext`. - * @param {boolean} breakable Indicates if we are inside a statement where - * `break` without a label will exit the statement. - * @param {string|null} label The label for the statement. - * @param {ForkContext} forkContext The current fork context. - */ - constructor(upperContext, breakable, label, forkContext) { - - /** - * The previous `BreakContext` - * @type {BreakContext} - */ - this.upper = upperContext; - - /** - * Indicates if we are inside a statement where `break` without a label - * will exit the statement. - * @type {boolean} - */ - this.breakable = breakable; - - /** - * The label associated with the statement. - * @type {string|null} - */ - this.label = label; - - /** - * The fork context for the `break`. - * @type {ForkContext} - */ - this.brokenForkContext = ForkContext.newEmpty(forkContext); - } -} - -/** - * Represents the context for `ChainExpression` nodes. - */ -class ChainContext { - - /** - * Creates a new instance. - * @param {ChainContext} upperContext The previous `ChainContext`. - */ - constructor(upperContext) { - - /** - * The previous `ChainContext` - * @type {ChainContext} - */ - this.upper = upperContext; - - /** - * The number of choice contexts inside of the `ChainContext`. - * @type {number} - */ - this.choiceContextCount = 0; - - } -} - -/** - * Represents a choice in the code path. - * - * Choices are created by logical operators such as `&&`, loops, conditionals, - * and `if` statements. This is the point at which the code path has a choice of - * which direction to go. - * - * The result of a choice might be in the left (test) expression of another choice, - * and in that case, may create a new fork. For example, `a || b` is a choice - * but does not create a new fork because the result of the expression is - * not used as the test expression in another expression. In this case, - * `isForkingAsResult` is false. In the expression `a || b || c`, the `a || b` - * expression appears as the test expression for `|| c`, so the - * result of `a || b` creates a fork because execution may or may not - * continue to `|| c`. `isForkingAsResult` for `a || b` in this case is true - * while `isForkingAsResult` for `|| c` is false. (`isForkingAsResult` is always - * false for `if` statements, conditional expressions, and loops.) - * - * All of the choices except one (`??`) operate on a true/false fork, meaning if - * true go one way and if false go the other (tracked by `trueForkContext` and - * `falseForkContext`). The `??` operator doesn't operate on true/false because - * the left expression is evaluated to be nullish or not, so only if nullish do - * we fork to the right expression (tracked by `nullishForkContext`). - */ -class ChoiceContext { - - /** - * Creates a new instance. - * @param {ChoiceContext} upperContext The previous `ChoiceContext`. - * @param {string} kind The kind of choice. If it's a logical or assignment expression, this - * is `"&&"` or `"||"` or `"??"`; if it's an `if` statement or - * conditional expression, this is `"test"`; otherwise, this is `"loop"`. - * @param {boolean} isForkingAsResult Indicates if the result of the choice - * creates a fork. - * @param {ForkContext} forkContext The containing `ForkContext`. - */ - constructor(upperContext, kind, isForkingAsResult, forkContext) { - - /** - * The previous `ChoiceContext` - * @type {ChoiceContext} - */ - this.upper = upperContext; - - /** - * The kind of choice. If it's a logical or assignment expression, this - * is `"&&"` or `"||"` or `"??"`; if it's an `if` statement or - * conditional expression, this is `"test"`; otherwise, this is `"loop"`. - * @type {string} - */ - this.kind = kind; - - /** - * Indicates if the result of the choice forks the code path. - * @type {boolean} - */ - this.isForkingAsResult = isForkingAsResult; - - /** - * The fork context for the `true` path of the choice. - * @type {ForkContext} - */ - this.trueForkContext = ForkContext.newEmpty(forkContext); - - /** - * The fork context for the `false` path of the choice. - * @type {ForkContext} - */ - this.falseForkContext = ForkContext.newEmpty(forkContext); - - /** - * The fork context for when the choice result is `null` or `undefined`. - * @type {ForkContext} - */ - this.nullishForkContext = ForkContext.newEmpty(forkContext); - - /** - * Indicates if any of `trueForkContext`, `falseForkContext`, or - * `nullishForkContext` have been updated with segments from a child context. - * @type {boolean} - */ - this.processed = false; - } - -} - -/** - * Base class for all loop contexts. - */ -class LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string} type The AST node's `type` for the loop. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - */ - constructor(upperContext, type, label, breakContext) { - - /** - * The previous `LoopContext`. - * @type {LoopContext} - */ - this.upper = upperContext; - - /** - * The AST node's `type` for the loop. - * @type {string} - */ - this.type = type; - - /** - * The label for the loop from an enclosing `LabeledStatement`. - * @type {string|null} - */ - this.label = label; - - /** - * The fork context for when `break` is encountered. - * @type {ForkContext} - */ - this.brokenForkContext = breakContext.brokenForkContext; - } -} - -/** - * Represents the context for a `while` loop. - */ -class WhileLoopContext extends LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - */ - constructor(upperContext, label, breakContext) { - super(upperContext, "WhileStatement", label, breakContext); - - /** - * The hardcoded literal boolean test condition for - * the loop. Used to catch infinite or skipped loops. - * @type {boolean|undefined} - */ - this.test = void 0; - - /** - * The segments representing the test condition where `continue` will - * jump to. The test condition will typically have just one segment but - * it's possible for there to be more than one. - * @type {Array|null} - */ - this.continueDestSegments = null; - } -} - -/** - * Represents the context for a `do-while` loop. - */ -class DoWhileLoopContext extends LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - * @param {ForkContext} forkContext The enclosing fork context. - */ - constructor(upperContext, label, breakContext, forkContext) { - super(upperContext, "DoWhileStatement", label, breakContext); - - /** - * The hardcoded literal boolean test condition for - * the loop. Used to catch infinite or skipped loops. - * @type {boolean|undefined} - */ - this.test = void 0; - - /** - * The segments at the start of the loop body. This is the only loop - * where the test comes at the end, so the first iteration always - * happens and we need a reference to the first statements. - * @type {Array|null} - */ - this.entrySegments = null; - - /** - * The fork context to follow when a `continue` is found. - * @type {ForkContext} - */ - this.continueForkContext = ForkContext.newEmpty(forkContext); - } -} - -/** - * Represents the context for a `for` loop. - */ -class ForLoopContext extends LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - */ - constructor(upperContext, label, breakContext) { - super(upperContext, "ForStatement", label, breakContext); - - /** - * The hardcoded literal boolean test condition for - * the loop. Used to catch infinite or skipped loops. - * @type {boolean|undefined} - */ - this.test = void 0; - - /** - * The end of the init expression. This may change during the lifetime - * of the instance as we traverse the loop because some loops don't have - * an init expression. - * @type {Array|null} - */ - this.endOfInitSegments = null; - - /** - * The start of the test expression. This may change during the lifetime - * of the instance as we traverse the loop because some loops don't have - * a test expression. - * @type {Array|null} - */ - this.testSegments = null; - - /** - * The end of the test expression. This may change during the lifetime - * of the instance as we traverse the loop because some loops don't have - * a test expression. - * @type {Array|null} - */ - this.endOfTestSegments = null; - - /** - * The start of the update expression. This may change during the lifetime - * of the instance as we traverse the loop because some loops don't have - * an update expression. - * @type {Array|null} - */ - this.updateSegments = null; - - /** - * The end of the update expresion. This may change during the lifetime - * of the instance as we traverse the loop because some loops don't have - * an update expression. - * @type {Array|null} - */ - this.endOfUpdateSegments = null; - - /** - * The segments representing the test condition where `continue` will - * jump to. The test condition will typically have just one segment but - * it's possible for there to be more than one. This may change during the - * lifetime of the instance as we traverse the loop because some loops - * don't have an update expression. When there is an update expression, this - * will end up pointing to that expression; otherwise it will end up pointing - * to the test expression. - * @type {Array|null} - */ - this.continueDestSegments = null; - } -} - -/** - * Represents the context for a `for-in` loop. - * - * Terminology: - * - "left" means the part of the loop to the left of the `in` keyword. For - * example, in `for (var x in y)`, the left is `var x`. - * - "right" means the part of the loop to the right of the `in` keyword. For - * example, in `for (var x in y)`, the right is `y`. - */ -class ForInLoopContext extends LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - */ - constructor(upperContext, label, breakContext) { - super(upperContext, "ForInStatement", label, breakContext); - - /** - * The segments that came immediately before the start of the loop. - * This allows you to traverse backwards out of the loop into the - * surrounding code. This is necessary to evaluate the right expression - * correctly, as it must be evaluated in the same way as the left - * expression, but the pointer to these segments would otherwise be - * lost if not stored on the instance. Once the right expression has - * been evaluated, this property is no longer used. - * @type {Array|null} - */ - this.prevSegments = null; - - /** - * Segments representing the start of everything to the left of the - * `in` keyword. This can be used to move forward towards - * `endOfLeftSegments`. `leftSegments` and `endOfLeftSegments` are - * effectively the head and tail of a doubly-linked list. - * @type {Array|null} - */ - this.leftSegments = null; - - /** - * Segments representing the end of everything to the left of the - * `in` keyword. This can be used to move backward towards `leftSegments`. - * `leftSegments` and `endOfLeftSegments` are effectively the head - * and tail of a doubly-linked list. - * @type {Array|null} - */ - this.endOfLeftSegments = null; - - /** - * The segments representing the left expression where `continue` will - * jump to. In `for-in` loops, `continue` must always re-execute the - * left expression each time through the loop. This contains the same - * segments as `leftSegments`, but is duplicated here so each loop - * context has the same property pointing to where `continue` should - * end up. - * @type {Array|null} - */ - this.continueDestSegments = null; - } -} - -/** - * Represents the context for a `for-of` loop. - */ -class ForOfLoopContext extends LoopContextBase { - - /** - * Creates a new instance. - * @param {LoopContext|null} upperContext The previous `LoopContext`. - * @param {string|null} label The label for the loop from an enclosing `LabeledStatement`. - * @param {BreakContext} breakContext The context for breaking the loop. - */ - constructor(upperContext, label, breakContext) { - super(upperContext, "ForOfStatement", label, breakContext); - - /** - * The segments that came immediately before the start of the loop. - * This allows you to traverse backwards out of the loop into the - * surrounding code. This is necessary to evaluate the right expression - * correctly, as it must be evaluated in the same way as the left - * expression, but the pointer to these segments would otherwise be - * lost if not stored on the instance. Once the right expression has - * been evaluated, this property is no longer used. - * @type {Array|null} - */ - this.prevSegments = null; - - /** - * Segments representing the start of everything to the left of the - * `of` keyword. This can be used to move forward towards - * `endOfLeftSegments`. `leftSegments` and `endOfLeftSegments` are - * effectively the head and tail of a doubly-linked list. - * @type {Array|null} - */ - this.leftSegments = null; - - /** - * Segments representing the end of everything to the left of the - * `of` keyword. This can be used to move backward towards `leftSegments`. - * `leftSegments` and `endOfLeftSegments` are effectively the head - * and tail of a doubly-linked list. - * @type {Array|null} - */ - this.endOfLeftSegments = null; - - /** - * The segments representing the left expression where `continue` will - * jump to. In `for-in` loops, `continue` must always re-execute the - * left expression each time through the loop. This contains the same - * segments as `leftSegments`, but is duplicated here so each loop - * context has the same property pointing to where `continue` should - * end up. - * @type {Array|null} - */ - this.continueDestSegments = null; - } -} - -/** - * Represents the context for any loop. - * @typedef {WhileLoopContext|DoWhileLoopContext|ForLoopContext|ForInLoopContext|ForOfLoopContext} LoopContext - */ - -/** - * Represents the context for a `switch` statement. - */ -class SwitchContext { - - /** - * Creates a new instance. - * @param {SwitchContext} upperContext The previous context. - * @param {boolean} hasCase Indicates if there is at least one `case` statement. - * `default` doesn't count. - */ - constructor(upperContext, hasCase) { - - /** - * The previous context. - * @type {SwitchContext} - */ - this.upper = upperContext; - - /** - * Indicates if there is at least one `case` statement. `default` doesn't count. - * @type {boolean} - */ - this.hasCase = hasCase; - - /** - * The `default` keyword. - * @type {Array|null} - */ - this.defaultSegments = null; - - /** - * The default case body starting segments. - * @type {Array|null} - */ - this.defaultBodySegments = null; - - /** - * Indicates if a `default` case and is empty exists. - * @type {boolean} - */ - this.foundEmptyDefault = false; - - /** - * Indicates that a `default` exists and is the last case. - * @type {boolean} - */ - this.lastIsDefault = false; - - /** - * The number of fork contexts created. This is equivalent to the - * number of `case` statements plus a `default` statement (if present). - * @type {number} - */ - this.forkCount = 0; - } -} - -/** - * Represents the context for a `try` statement. - */ -class TryContext { - - /** - * Creates a new instance. - * @param {TryContext} upperContext The previous context. - * @param {boolean} hasFinalizer Indicates if the `try` statement has a - * `finally` block. - * @param {ForkContext} forkContext The enclosing fork context. - */ - constructor(upperContext, hasFinalizer, forkContext) { - - /** - * The previous context. - * @type {TryContext} - */ - this.upper = upperContext; - - /** - * Indicates if the `try` statement has a `finally` block. - * @type {boolean} - */ - this.hasFinalizer = hasFinalizer; - - /** - * Tracks the traversal position inside of the `try` statement. This is - * used to help determine the context necessary to create paths because - * a `try` statement may or may not have `catch` or `finally` blocks, - * and code paths behave differently in those blocks. - * @type {"try"|"catch"|"finally"} - */ - this.position = "try"; - - /** - * If the `try` statement has a `finally` block, this affects how a - * `return` statement behaves in the `try` block. Without `finally`, - * `return` behaves as usual and doesn't require a fork; with `finally`, - * `return` forks into the `finally` block, so we need a fork context - * to track it. - * @type {ForkContext|null} - */ - this.returnedForkContext = hasFinalizer - ? ForkContext.newEmpty(forkContext) - : null; - - /** - * When a `throw` occurs inside of a `try` block, the code path forks - * into the `catch` or `finally` blocks, and this fork context tracks - * that path. - * @type {ForkContext} - */ - this.thrownForkContext = ForkContext.newEmpty(forkContext); - - /** - * Indicates if the last segment in the `try` block is reachable. - * @type {boolean} - */ - this.lastOfTryIsReachable = false; - - /** - * Indicates if the last segment in the `catch` block is reachable. - * @type {boolean} - */ - this.lastOfCatchIsReachable = false; - } -} - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Adds given segments into the `dest` array. - * If the `others` array does not include the given segments, adds to the `all` - * array as well. - * - * This adds only reachable and used segments. - * @param {CodePathSegment[]} dest A destination array (`returnedSegments` or `thrownSegments`). - * @param {CodePathSegment[]} others Another destination array (`returnedSegments` or `thrownSegments`). - * @param {CodePathSegment[]} all The unified destination array (`finalSegments`). - * @param {CodePathSegment[]} segments Segments to add. - * @returns {void} - */ -function addToReturnedOrThrown(dest, others, all, segments) { - for (let i = 0; i < segments.length; ++i) { - const segment = segments[i]; - - dest.push(segment); - if (!others.includes(segment)) { - all.push(segment); - } - } -} - -/** - * Gets a loop context for a `continue` statement based on a given label. - * @param {CodePathState} state The state to search within. - * @param {string|null} label The label of a `continue` statement. - * @returns {LoopContext} A loop-context for a `continue` statement. - */ -function getContinueContext(state, label) { - if (!label) { - return state.loopContext; - } - - let context = state.loopContext; - - while (context) { - if (context.label === label) { - return context; - } - context = context.upper; - } - - /* c8 ignore next */ - return null; -} - -/** - * Gets a context for a `break` statement. - * @param {CodePathState} state The state to search within. - * @param {string|null} label The label of a `break` statement. - * @returns {BreakContext} A context for a `break` statement. - */ -function getBreakContext(state, label) { - let context = state.breakContext; - - while (context) { - if (label ? context.label === label : context.breakable) { - return context; - } - context = context.upper; - } - - /* c8 ignore next */ - return null; -} - -/** - * Gets a context for a `return` statement. There is just one special case: - * if there is a `try` statement with a `finally` block, because that alters - * how `return` behaves; otherwise, this just passes through the given state. - * @param {CodePathState} state The state to search within - * @returns {TryContext|CodePathState} A context for a `return` statement. - */ -function getReturnContext(state) { - let context = state.tryContext; - - while (context) { - if (context.hasFinalizer && context.position !== "finally") { - return context; - } - context = context.upper; - } - - return state; -} - -/** - * Gets a context for a `throw` statement. There is just one special case: - * if there is a `try` statement with a `finally` block and we are inside of - * a `catch` because that changes how `throw` behaves; otherwise, this just - * passes through the given state. - * @param {CodePathState} state The state to search within. - * @returns {TryContext|CodePathState} A context for a `throw` statement. - */ -function getThrowContext(state) { - let context = state.tryContext; - - while (context) { - if (context.position === "try" || - (context.hasFinalizer && context.position === "catch") - ) { - return context; - } - context = context.upper; - } - - return state; -} - -/** - * Removes a given value from a given array. - * @param {any[]} elements An array to remove the specific element. - * @param {any} value The value to be removed. - * @returns {void} - */ -function removeFromArray(elements, value) { - elements.splice(elements.indexOf(value), 1); -} - -/** - * Disconnect given segments. - * - * This is used in a process for switch statements. - * If there is the "default" chunk before other cases, the order is different - * between node's and running's. - * @param {CodePathSegment[]} prevSegments Forward segments to disconnect. - * @param {CodePathSegment[]} nextSegments Backward segments to disconnect. - * @returns {void} - */ -function disconnectSegments(prevSegments, nextSegments) { - for (let i = 0; i < prevSegments.length; ++i) { - const prevSegment = prevSegments[i]; - const nextSegment = nextSegments[i]; - - removeFromArray(prevSegment.nextSegments, nextSegment); - removeFromArray(prevSegment.allNextSegments, nextSegment); - removeFromArray(nextSegment.prevSegments, prevSegment); - removeFromArray(nextSegment.allPrevSegments, prevSegment); - } -} - -/** - * Creates looping path between two arrays of segments, ensuring that there are - * paths going between matching segments in the arrays. - * @param {CodePathState} state The state to operate on. - * @param {CodePathSegment[]} unflattenedFromSegments Segments which are source. - * @param {CodePathSegment[]} unflattenedToSegments Segments which are destination. - * @returns {void} - */ -function makeLooped(state, unflattenedFromSegments, unflattenedToSegments) { - - const fromSegments = CodePathSegment.flattenUnusedSegments(unflattenedFromSegments); - const toSegments = CodePathSegment.flattenUnusedSegments(unflattenedToSegments); - const end = Math.min(fromSegments.length, toSegments.length); - - /* - * This loop effectively updates a doubly-linked list between two collections - * of segments making sure that segments in the same array indices are - * combined to create a path. - */ - for (let i = 0; i < end; ++i) { - - // get the segments in matching array indices - const fromSegment = fromSegments[i]; - const toSegment = toSegments[i]; - - /* - * If the destination segment is reachable, then create a path from the - * source segment to the destination segment. - */ - if (toSegment.reachable) { - fromSegment.nextSegments.push(toSegment); - } - - /* - * If the source segment is reachable, then create a path from the - * destination segment back to the source segment. - */ - if (fromSegment.reachable) { - toSegment.prevSegments.push(fromSegment); - } - - /* - * Also update the arrays that don't care if the segments are reachable - * or not. This should always happen regardless of anything else. - */ - fromSegment.allNextSegments.push(toSegment); - toSegment.allPrevSegments.push(fromSegment); - - /* - * If the destination segment has at least two previous segments in its - * path then that means there was one previous segment before this iteration - * of the loop was executed. So, we need to mark the source segment as - * looped. - */ - if (toSegment.allPrevSegments.length >= 2) { - CodePathSegment.markPrevSegmentAsLooped(toSegment, fromSegment); - } - - // let the code path analyzer know that there's been a loop created - state.notifyLooped(fromSegment, toSegment); - } -} - -/** - * Finalizes segments of `test` chunk of a ForStatement. - * - * - Adds `false` paths to paths which are leaving from the loop. - * - Sets `true` paths to paths which go to the body. - * @param {LoopContext} context A loop context to modify. - * @param {ChoiceContext} choiceContext A choice context of this loop. - * @param {CodePathSegment[]} head The current head paths. - * @returns {void} - */ -function finalizeTestSegmentsOfFor(context, choiceContext, head) { - - /* - * If this choice context doesn't already contain paths from a - * child context, then add the current head to each potential path. - */ - if (!choiceContext.processed) { - choiceContext.trueForkContext.add(head); - choiceContext.falseForkContext.add(head); - choiceContext.nullishForkContext.add(head); - } - - /* - * If the test condition isn't a hardcoded truthy value, then `break` - * must follow the same path as if the test condition is false. To represent - * that, we append the path for when the loop test is false (represented by - * `falseForkContext`) to the `brokenForkContext`. - */ - if (context.test !== true) { - context.brokenForkContext.addAll(choiceContext.falseForkContext); - } - - context.endOfTestSegments = choiceContext.trueForkContext.makeNext(0, -1); -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A class which manages state to analyze code paths. - */ -class CodePathState { - - /** - * Creates a new instance. - * @param {IdGenerator} idGenerator An id generator to generate id for code - * path segments. - * @param {Function} onLooped A callback function to notify looping. - */ - constructor(idGenerator, onLooped) { - - /** - * The ID generator to use when creating new segments. - * @type {IdGenerator} - */ - this.idGenerator = idGenerator; - - /** - * A callback function to call when there is a loop. - * @type {Function} - */ - this.notifyLooped = onLooped; - - /** - * The root fork context for this state. - * @type {ForkContext} - */ - this.forkContext = ForkContext.newRoot(idGenerator); - - /** - * Context for logical expressions, conditional expressions, `if` statements, - * and loops. - * @type {ChoiceContext} - */ - this.choiceContext = null; - - /** - * Context for `switch` statements. - * @type {SwitchContext} - */ - this.switchContext = null; - - /** - * Context for `try` statements. - * @type {TryContext} - */ - this.tryContext = null; - - /** - * Context for loop statements. - * @type {LoopContext} - */ - this.loopContext = null; - - /** - * Context for `break` statements. - * @type {BreakContext} - */ - this.breakContext = null; - - /** - * Context for `ChainExpression` nodes. - * @type {ChainContext} - */ - this.chainContext = null; - - /** - * An array that tracks the current segments in the state. The array - * starts empty and segments are added with each `onCodePathSegmentStart` - * event and removed with each `onCodePathSegmentEnd` event. Effectively, - * this is tracking the code path segment traversal as the state is - * modified. - * @type {Array} - */ - this.currentSegments = []; - - /** - * Tracks the starting segment for this path. This value never changes. - * @type {CodePathSegment} - */ - this.initialSegment = this.forkContext.head[0]; - - /** - * The final segments of the code path which are either `return` or `throw`. - * This is a union of the segments in `returnedForkContext` and `thrownForkContext`. - * @type {Array} - */ - this.finalSegments = []; - - /** - * The final segments of the code path which are `return`. These - * segments are also contained in `finalSegments`. - * @type {Array} - */ - this.returnedForkContext = []; - - /** - * The final segments of the code path which are `throw`. These - * segments are also contained in `finalSegments`. - * @type {Array} - */ - this.thrownForkContext = []; - - /* - * We add an `add` method so that these look more like fork contexts and - * can be used interchangeably when a fork context is needed to add more - * segments to a path. - * - * Ultimately, we want anything added to `returned` or `thrown` to also - * be added to `final`. We only add reachable and used segments to these - * arrays. - */ - const final = this.finalSegments; - const returned = this.returnedForkContext; - const thrown = this.thrownForkContext; - - returned.add = addToReturnedOrThrown.bind(null, returned, thrown, final); - thrown.add = addToReturnedOrThrown.bind(null, thrown, returned, final); - } - - /** - * A passthrough property exposing the current pointer as part of the API. - * @type {CodePathSegment[]} - */ - get headSegments() { - return this.forkContext.head; - } - - /** - * The parent forking context. - * This is used for the root of new forks. - * @type {ForkContext} - */ - get parentForkContext() { - const current = this.forkContext; - - return current && current.upper; - } - - /** - * Creates and stacks new forking context. - * @param {boolean} forkLeavingPath A flag which shows being in a - * "finally" block. - * @returns {ForkContext} The created context. - */ - pushForkContext(forkLeavingPath) { - this.forkContext = ForkContext.newEmpty( - this.forkContext, - forkLeavingPath - ); - - return this.forkContext; - } - - /** - * Pops and merges the last forking context. - * @returns {ForkContext} The last context. - */ - popForkContext() { - const lastContext = this.forkContext; - - this.forkContext = lastContext.upper; - this.forkContext.replaceHead(lastContext.makeNext(0, -1)); - - return lastContext; - } - - /** - * Creates a new path. - * @returns {void} - */ - forkPath() { - this.forkContext.add(this.parentForkContext.makeNext(-1, -1)); - } - - /** - * Creates a bypass path. - * This is used for such as IfStatement which does not have "else" chunk. - * @returns {void} - */ - forkBypassPath() { - this.forkContext.add(this.parentForkContext.head); - } - - //-------------------------------------------------------------------------- - // ConditionalExpression, LogicalExpression, IfStatement - //-------------------------------------------------------------------------- - - /** - * Creates a context for ConditionalExpression, LogicalExpression, AssignmentExpression (logical assignments only), - * IfStatement, WhileStatement, DoWhileStatement, or ForStatement. - * - * LogicalExpressions have cases that it goes different paths between the - * `true` case and the `false` case. - * - * For Example: - * - * if (a || b) { - * foo(); - * } else { - * bar(); - * } - * - * In this case, `b` is evaluated always in the code path of the `else` - * block, but it's not so in the code path of the `if` block. - * So there are 3 paths. - * - * a -> foo(); - * a -> b -> foo(); - * a -> b -> bar(); - * @param {string} kind A kind string. - * If the new context is LogicalExpression's or AssignmentExpression's, this is `"&&"` or `"||"` or `"??"`. - * If it's IfStatement's or ConditionalExpression's, this is `"test"`. - * Otherwise, this is `"loop"`. - * @param {boolean} isForkingAsResult Indicates if the result of the choice - * creates a fork. - * @returns {void} - */ - pushChoiceContext(kind, isForkingAsResult) { - this.choiceContext = new ChoiceContext(this.choiceContext, kind, isForkingAsResult, this.forkContext); - } - - /** - * Pops the last choice context and finalizes it. - * This is called upon leaving a node that represents a choice. - * @throws {Error} (Unreachable.) - * @returns {ChoiceContext} The popped context. - */ - popChoiceContext() { - const poppedChoiceContext = this.choiceContext; - const forkContext = this.forkContext; - const head = forkContext.head; - - this.choiceContext = poppedChoiceContext.upper; - - switch (poppedChoiceContext.kind) { - case "&&": - case "||": - case "??": - - /* - * The `head` are the path of the right-hand operand. - * If we haven't previously added segments from child contexts, - * then we add these segments to all possible forks. - */ - if (!poppedChoiceContext.processed) { - poppedChoiceContext.trueForkContext.add(head); - poppedChoiceContext.falseForkContext.add(head); - poppedChoiceContext.nullishForkContext.add(head); - } - - /* - * If this context is the left (test) expression for another choice - * context, such as `a || b` in the expression `a || b || c`, - * then we take the segments for this context and move them up - * to the parent context. - */ - if (poppedChoiceContext.isForkingAsResult) { - const parentContext = this.choiceContext; - - parentContext.trueForkContext.addAll(poppedChoiceContext.trueForkContext); - parentContext.falseForkContext.addAll(poppedChoiceContext.falseForkContext); - parentContext.nullishForkContext.addAll(poppedChoiceContext.nullishForkContext); - parentContext.processed = true; - - // Exit early so we don't collapse all paths into one. - return poppedChoiceContext; - } - - break; - - case "test": - if (!poppedChoiceContext.processed) { - - /* - * The head segments are the path of the `if` block here. - * Updates the `true` path with the end of the `if` block. - */ - poppedChoiceContext.trueForkContext.clear(); - poppedChoiceContext.trueForkContext.add(head); - } else { - - /* - * The head segments are the path of the `else` block here. - * Updates the `false` path with the end of the `else` - * block. - */ - poppedChoiceContext.falseForkContext.clear(); - poppedChoiceContext.falseForkContext.add(head); - } - - break; - - case "loop": - - /* - * Loops are addressed in `popLoopContext()` so just return - * the context without modification. - */ - return poppedChoiceContext; - - /* c8 ignore next */ - default: - throw new Error("unreachable"); - } - - /* - * Merge the true path with the false path to create a single path. - */ - const combinedForkContext = poppedChoiceContext.trueForkContext; - - combinedForkContext.addAll(poppedChoiceContext.falseForkContext); - forkContext.replaceHead(combinedForkContext.makeNext(0, -1)); - - return poppedChoiceContext; - } - - /** - * Creates a code path segment to represent right-hand operand of a logical - * expression. - * This is called in the preprocessing phase when entering a node. - * @throws {Error} (Unreachable.) - * @returns {void} - */ - makeLogicalRight() { - const currentChoiceContext = this.choiceContext; - const forkContext = this.forkContext; - - if (currentChoiceContext.processed) { - - /* - * This context was already assigned segments from a child - * choice context. In this case, we are concerned only about - * the path that does not short-circuit and so ends up on the - * right-hand operand of the logical expression. - */ - let prevForkContext; - - switch (currentChoiceContext.kind) { - case "&&": // if true then go to the right-hand side. - prevForkContext = currentChoiceContext.trueForkContext; - break; - case "||": // if false then go to the right-hand side. - prevForkContext = currentChoiceContext.falseForkContext; - break; - case "??": // Both true/false can short-circuit, so needs the third path to go to the right-hand side. That's nullishForkContext. - prevForkContext = currentChoiceContext.nullishForkContext; - break; - default: - throw new Error("unreachable"); - } - - /* - * Create the segment for the right-hand operand of the logical expression - * and adjust the fork context pointer to point there. The right-hand segment - * is added at the end of all segments in `prevForkContext`. - */ - forkContext.replaceHead(prevForkContext.makeNext(0, -1)); - - /* - * We no longer need this list of segments. - * - * Reset `processed` because we've removed the segments from the child - * choice context. This allows `popChoiceContext()` to continue adding - * segments later. - */ - prevForkContext.clear(); - currentChoiceContext.processed = false; - - } else { - - /* - * This choice context was not assigned segments from a child - * choice context, which means that it's a terminal logical - * expression. - * - * `head` is the segments for the left-hand operand of the - * logical expression. - * - * Each of the fork contexts below are empty at this point. We choose - * the path(s) that will short-circuit and add the segment for the - * left-hand operand to it. Ultimately, this will be the only segment - * in that path due to the short-circuting, so we are just seeding - * these paths to start. - */ - switch (currentChoiceContext.kind) { - case "&&": - - /* - * In most contexts, when a && expression evaluates to false, - * it short circuits, so we need to account for that by setting - * the `falseForkContext` to the left operand. - * - * When a && expression is the left-hand operand for a ?? - * expression, such as `(a && b) ?? c`, a nullish value will - * also short-circuit in a different way than a false value, - * so we also set the `nullishForkContext` to the left operand. - * This path is only used with a ?? expression and is thrown - * away for any other type of logical expression, so it's safe - * to always add. - */ - currentChoiceContext.falseForkContext.add(forkContext.head); - currentChoiceContext.nullishForkContext.add(forkContext.head); - break; - case "||": // the true path can short-circuit. - currentChoiceContext.trueForkContext.add(forkContext.head); - break; - case "??": // both can short-circuit. - currentChoiceContext.trueForkContext.add(forkContext.head); - currentChoiceContext.falseForkContext.add(forkContext.head); - break; - default: - throw new Error("unreachable"); - } - - /* - * Create the segment for the right-hand operand of the logical expression - * and adjust the fork context pointer to point there. - */ - forkContext.replaceHead(forkContext.makeNext(-1, -1)); - } - } - - /** - * Makes a code path segment of the `if` block. - * @returns {void} - */ - makeIfConsequent() { - const context = this.choiceContext; - const forkContext = this.forkContext; - - /* - * If any result were not transferred from child contexts, - * this sets the head segments to both cases. - * The head segments are the path of the test expression. - */ - if (!context.processed) { - context.trueForkContext.add(forkContext.head); - context.falseForkContext.add(forkContext.head); - context.nullishForkContext.add(forkContext.head); - } - - context.processed = false; - - // Creates new path from the `true` case. - forkContext.replaceHead( - context.trueForkContext.makeNext(0, -1) - ); - } - - /** - * Makes a code path segment of the `else` block. - * @returns {void} - */ - makeIfAlternate() { - const context = this.choiceContext; - const forkContext = this.forkContext; - - /* - * The head segments are the path of the `if` block. - * Updates the `true` path with the end of the `if` block. - */ - context.trueForkContext.clear(); - context.trueForkContext.add(forkContext.head); - context.processed = true; - - // Creates new path from the `false` case. - forkContext.replaceHead( - context.falseForkContext.makeNext(0, -1) - ); - } - - //-------------------------------------------------------------------------- - // ChainExpression - //-------------------------------------------------------------------------- - - /** - * Pushes a new `ChainExpression` context to the stack. This method is - * called when entering a `ChainExpression` node. A chain context is used to - * count forking in the optional chain then merge them on the exiting from the - * `ChainExpression` node. - * @returns {void} - */ - pushChainContext() { - this.chainContext = new ChainContext(this.chainContext); - } - - /** - * Pop a `ChainExpression` context from the stack. This method is called on - * exiting from each `ChainExpression` node. This merges all forks of the - * last optional chaining. - * @returns {void} - */ - popChainContext() { - const context = this.chainContext; - - this.chainContext = context.upper; - - // pop all choice contexts of this. - for (let i = context.choiceContextCount; i > 0; --i) { - this.popChoiceContext(); - } - } - - /** - * Create a choice context for optional access. - * This method is called on entering to each `(Call|Member)Expression[optional=true]` node. - * This creates a choice context as similar to `LogicalExpression[operator="??"]` node. - * @returns {void} - */ - makeOptionalNode() { - if (this.chainContext) { - this.chainContext.choiceContextCount += 1; - this.pushChoiceContext("??", false); - } - } - - /** - * Create a fork. - * This method is called on entering to the `arguments|property` property of each `(Call|Member)Expression` node. - * @returns {void} - */ - makeOptionalRight() { - if (this.chainContext) { - this.makeLogicalRight(); - } - } - - //-------------------------------------------------------------------------- - // SwitchStatement - //-------------------------------------------------------------------------- - - /** - * Creates a context object of SwitchStatement and stacks it. - * @param {boolean} hasCase `true` if the switch statement has one or more - * case parts. - * @param {string|null} label The label text. - * @returns {void} - */ - pushSwitchContext(hasCase, label) { - this.switchContext = new SwitchContext(this.switchContext, hasCase); - this.pushBreakContext(true, label); - } - - /** - * Pops the last context of SwitchStatement and finalizes it. - * - * - Disposes all forking stack for `case` and `default`. - * - Creates the next code path segment from `context.brokenForkContext`. - * - If the last `SwitchCase` node is not a `default` part, creates a path - * to the `default` body. - * @returns {void} - */ - popSwitchContext() { - const context = this.switchContext; - - this.switchContext = context.upper; - - const forkContext = this.forkContext; - const brokenForkContext = this.popBreakContext().brokenForkContext; - - if (context.forkCount === 0) { - - /* - * When there is only one `default` chunk and there is one or more - * `break` statements, even if forks are nothing, it needs to merge - * those. - */ - if (!brokenForkContext.empty) { - brokenForkContext.add(forkContext.makeNext(-1, -1)); - forkContext.replaceHead(brokenForkContext.makeNext(0, -1)); - } - - return; - } - - const lastSegments = forkContext.head; - - this.forkBypassPath(); - const lastCaseSegments = forkContext.head; - - /* - * `brokenForkContext` is used to make the next segment. - * It must add the last segment into `brokenForkContext`. - */ - brokenForkContext.add(lastSegments); - - /* - * Any value that doesn't match a `case` test should flow to the default - * case. That happens normally when the default case is last in the `switch`, - * but if it's not, we need to rewire some of the paths to be correct. - */ - if (!context.lastIsDefault) { - if (context.defaultBodySegments) { - - /* - * There is a non-empty default case, so remove the path from the `default` - * label to its body for an accurate representation. - */ - disconnectSegments(context.defaultSegments, context.defaultBodySegments); - - /* - * Connect the path from the last non-default case to the body of the - * default case. - */ - makeLooped(this, lastCaseSegments, context.defaultBodySegments); - - } else { - - /* - * There is no default case, so we treat this as if the last case - * had a `break` in it. - */ - brokenForkContext.add(lastCaseSegments); - } - } - - // Traverse up to the original fork context for the `switch` statement - for (let i = 0; i < context.forkCount; ++i) { - this.forkContext = this.forkContext.upper; - } - - /* - * Creates a path from all `brokenForkContext` paths. - * This is a path after `switch` statement. - */ - this.forkContext.replaceHead(brokenForkContext.makeNext(0, -1)); - } - - /** - * Makes a code path segment for a `SwitchCase` node. - * @param {boolean} isCaseBodyEmpty `true` if the body is empty. - * @param {boolean} isDefaultCase `true` if the body is the default case. - * @returns {void} - */ - makeSwitchCaseBody(isCaseBodyEmpty, isDefaultCase) { - const context = this.switchContext; - - if (!context.hasCase) { - return; - } - - /* - * Merge forks. - * The parent fork context has two segments. - * Those are from the current `case` and the body of the previous case. - */ - const parentForkContext = this.forkContext; - const forkContext = this.pushForkContext(); - - forkContext.add(parentForkContext.makeNext(0, -1)); - - /* - * Add information about the default case. - * - * The purpose of this is to identify the starting segments for the - * default case to make sure there is a path there. - */ - if (isDefaultCase) { - - /* - * This is the default case in the `switch`. - * - * We first save the current pointer as `defaultSegments` to point - * to the `default` keyword. - */ - context.defaultSegments = parentForkContext.head; - - /* - * If the body of the case is empty then we just set - * `foundEmptyDefault` to true; otherwise, we save a reference - * to the current pointer as `defaultBodySegments`. - */ - if (isCaseBodyEmpty) { - context.foundEmptyDefault = true; - } else { - context.defaultBodySegments = forkContext.head; - } - - } else { - - /* - * This is not the default case in the `switch`. - * - * If it's not empty and there is already an empty default case found, - * that means the default case actually comes before this case, - * and that it will fall through to this case. So, we can now - * ignore the previous default case (reset `foundEmptyDefault` to false) - * and set `defaultBodySegments` to the current segments because this is - * effectively the new default case. - */ - if (!isCaseBodyEmpty && context.foundEmptyDefault) { - context.foundEmptyDefault = false; - context.defaultBodySegments = forkContext.head; - } - } - - // keep track if the default case ends up last - context.lastIsDefault = isDefaultCase; - context.forkCount += 1; - } - - //-------------------------------------------------------------------------- - // TryStatement - //-------------------------------------------------------------------------- - - /** - * Creates a context object of TryStatement and stacks it. - * @param {boolean} hasFinalizer `true` if the try statement has a - * `finally` block. - * @returns {void} - */ - pushTryContext(hasFinalizer) { - this.tryContext = new TryContext(this.tryContext, hasFinalizer, this.forkContext); - } - - /** - * Pops the last context of TryStatement and finalizes it. - * @returns {void} - */ - popTryContext() { - const context = this.tryContext; - - this.tryContext = context.upper; - - /* - * If we're inside the `catch` block, that means there is no `finally`, - * so we can process the `try` and `catch` blocks the simple way and - * merge their two paths. - */ - if (context.position === "catch") { - this.popForkContext(); - return; - } - - /* - * The following process is executed only when there is a `finally` - * block. - */ - - const originalReturnedForkContext = context.returnedForkContext; - const originalThrownForkContext = context.thrownForkContext; - - // no `return` or `throw` in `try` or `catch` so there's nothing left to do - if (originalReturnedForkContext.empty && originalThrownForkContext.empty) { - return; - } - - /* - * The following process is executed only when there is a `finally` - * block and there was a `return` or `throw` in the `try` or `catch` - * blocks. - */ - - // Separate head to normal paths and leaving paths. - const headSegments = this.forkContext.head; - - this.forkContext = this.forkContext.upper; - const normalSegments = headSegments.slice(0, headSegments.length / 2 | 0); - const leavingSegments = headSegments.slice(headSegments.length / 2 | 0); - - // Forwards the leaving path to upper contexts. - if (!originalReturnedForkContext.empty) { - getReturnContext(this).returnedForkContext.add(leavingSegments); - } - if (!originalThrownForkContext.empty) { - getThrowContext(this).thrownForkContext.add(leavingSegments); - } - - // Sets the normal path as the next. - this.forkContext.replaceHead(normalSegments); - - /* - * If both paths of the `try` block and the `catch` block are - * unreachable, the next path becomes unreachable as well. - */ - if (!context.lastOfTryIsReachable && !context.lastOfCatchIsReachable) { - this.forkContext.makeUnreachable(); - } - } - - /** - * Makes a code path segment for a `catch` block. - * @returns {void} - */ - makeCatchBlock() { - const context = this.tryContext; - const forkContext = this.forkContext; - const originalThrownForkContext = context.thrownForkContext; - - /* - * We are now in a catch block so we need to update the context - * with that information. This includes creating a new fork - * context in case we encounter any `throw` statements here. - */ - context.position = "catch"; - context.thrownForkContext = ForkContext.newEmpty(forkContext); - context.lastOfTryIsReachable = forkContext.reachable; - - // Merge the thrown paths from the `try` and `catch` blocks - originalThrownForkContext.add(forkContext.head); - const thrownSegments = originalThrownForkContext.makeNext(0, -1); - - // Fork to a bypass and the merged thrown path. - this.pushForkContext(); - this.forkBypassPath(); - this.forkContext.add(thrownSegments); - } - - /** - * Makes a code path segment for a `finally` block. - * - * In the `finally` block, parallel paths are created. The parallel paths - * are used as leaving-paths. The leaving-paths are paths from `return` - * statements and `throw` statements in a `try` block or a `catch` block. - * @returns {void} - */ - makeFinallyBlock() { - const context = this.tryContext; - let forkContext = this.forkContext; - const originalReturnedForkContext = context.returnedForkContext; - const originalThrownForContext = context.thrownForkContext; - const headOfLeavingSegments = forkContext.head; - - // Update state. - if (context.position === "catch") { - - // Merges two paths from the `try` block and `catch` block. - this.popForkContext(); - forkContext = this.forkContext; - - context.lastOfCatchIsReachable = forkContext.reachable; - } else { - context.lastOfTryIsReachable = forkContext.reachable; - } - - - context.position = "finally"; - - /* - * If there was no `return` or `throw` in either the `try` or `catch` - * blocks, then there's no further code paths to create for `finally`. - */ - if (originalReturnedForkContext.empty && originalThrownForContext.empty) { - - // This path does not leave. - return; - } - - /* - * Create a parallel segment from merging returned and thrown. - * This segment will leave at the end of this `finally` block. - */ - const segments = forkContext.makeNext(-1, -1); - - for (let i = 0; i < forkContext.count; ++i) { - const prevSegsOfLeavingSegment = [headOfLeavingSegments[i]]; - - for (let j = 0; j < originalReturnedForkContext.segmentsList.length; ++j) { - prevSegsOfLeavingSegment.push(originalReturnedForkContext.segmentsList[j][i]); - } - for (let j = 0; j < originalThrownForContext.segmentsList.length; ++j) { - prevSegsOfLeavingSegment.push(originalThrownForContext.segmentsList[j][i]); - } - - segments.push( - CodePathSegment.newNext( - this.idGenerator.next(), - prevSegsOfLeavingSegment - ) - ); - } - - this.pushForkContext(true); - this.forkContext.add(segments); - } - - /** - * Makes a code path segment from the first throwable node to the `catch` - * block or the `finally` block. - * @returns {void} - */ - makeFirstThrowablePathInTryBlock() { - const forkContext = this.forkContext; - - if (!forkContext.reachable) { - return; - } - - const context = getThrowContext(this); - - if (context === this || - context.position !== "try" || - !context.thrownForkContext.empty - ) { - return; - } - - context.thrownForkContext.add(forkContext.head); - forkContext.replaceHead(forkContext.makeNext(-1, -1)); - } - - //-------------------------------------------------------------------------- - // Loop Statements - //-------------------------------------------------------------------------- - - /** - * Creates a context object of a loop statement and stacks it. - * @param {string} type The type of the node which was triggered. One of - * `WhileStatement`, `DoWhileStatement`, `ForStatement`, `ForInStatement`, - * and `ForStatement`. - * @param {string|null} label A label of the node which was triggered. - * @throws {Error} (Unreachable - unknown type.) - * @returns {void} - */ - pushLoopContext(type, label) { - const forkContext = this.forkContext; - - // All loops need a path to account for `break` statements - const breakContext = this.pushBreakContext(true, label); - - switch (type) { - case "WhileStatement": - this.pushChoiceContext("loop", false); - this.loopContext = new WhileLoopContext(this.loopContext, label, breakContext); - break; - - case "DoWhileStatement": - this.pushChoiceContext("loop", false); - this.loopContext = new DoWhileLoopContext(this.loopContext, label, breakContext, forkContext); - break; - - case "ForStatement": - this.pushChoiceContext("loop", false); - this.loopContext = new ForLoopContext(this.loopContext, label, breakContext); - break; - - case "ForInStatement": - this.loopContext = new ForInLoopContext(this.loopContext, label, breakContext); - break; - - case "ForOfStatement": - this.loopContext = new ForOfLoopContext(this.loopContext, label, breakContext); - break; - - /* c8 ignore next */ - default: - throw new Error(`unknown type: "${type}"`); - } - } - - /** - * Pops the last context of a loop statement and finalizes it. - * @throws {Error} (Unreachable - unknown type.) - * @returns {void} - */ - popLoopContext() { - const context = this.loopContext; - - this.loopContext = context.upper; - - const forkContext = this.forkContext; - const brokenForkContext = this.popBreakContext().brokenForkContext; - - // Creates a looped path. - switch (context.type) { - case "WhileStatement": - case "ForStatement": - this.popChoiceContext(); - - /* - * Creates the path from the end of the loop body up to the - * location where `continue` would jump to. - */ - makeLooped( - this, - forkContext.head, - context.continueDestSegments - ); - break; - - case "DoWhileStatement": { - const choiceContext = this.popChoiceContext(); - - if (!choiceContext.processed) { - choiceContext.trueForkContext.add(forkContext.head); - choiceContext.falseForkContext.add(forkContext.head); - } - - /* - * If this isn't a hardcoded `true` condition, then `break` - * should continue down the path as if the condition evaluated - * to false. - */ - if (context.test !== true) { - brokenForkContext.addAll(choiceContext.falseForkContext); - } - - /* - * When the condition is true, the loop continues back to the top, - * so create a path from each possible true condition back to the - * top of the loop. - */ - const segmentsList = choiceContext.trueForkContext.segmentsList; - - for (let i = 0; i < segmentsList.length; ++i) { - makeLooped( - this, - segmentsList[i], - context.entrySegments - ); - } - break; - } - - case "ForInStatement": - case "ForOfStatement": - brokenForkContext.add(forkContext.head); - - /* - * Creates the path from the end of the loop body up to the - * left expression (left of `in` or `of`) of the loop. - */ - makeLooped( - this, - forkContext.head, - context.leftSegments - ); - break; - - /* c8 ignore next */ - default: - throw new Error("unreachable"); - } - - /* - * If there wasn't a `break` statement in the loop, then we're at - * the end of the loop's path, so we make an unreachable segment - * to mark that. - * - * If there was a `break` statement, then we continue on into the - * `brokenForkContext`. - */ - if (brokenForkContext.empty) { - forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)); - } else { - forkContext.replaceHead(brokenForkContext.makeNext(0, -1)); - } - } - - /** - * Makes a code path segment for the test part of a WhileStatement. - * @param {boolean|undefined} test The test value (only when constant). - * @returns {void} - */ - makeWhileTest(test) { - const context = this.loopContext; - const forkContext = this.forkContext; - const testSegments = forkContext.makeNext(0, -1); - - // Update state. - context.test = test; - context.continueDestSegments = testSegments; - forkContext.replaceHead(testSegments); - } - - /** - * Makes a code path segment for the body part of a WhileStatement. - * @returns {void} - */ - makeWhileBody() { - const context = this.loopContext; - const choiceContext = this.choiceContext; - const forkContext = this.forkContext; - - if (!choiceContext.processed) { - choiceContext.trueForkContext.add(forkContext.head); - choiceContext.falseForkContext.add(forkContext.head); - } - - /* - * If this isn't a hardcoded `true` condition, then `break` - * should continue down the path as if the condition evaluated - * to false. - */ - if (context.test !== true) { - context.brokenForkContext.addAll(choiceContext.falseForkContext); - } - forkContext.replaceHead(choiceContext.trueForkContext.makeNext(0, -1)); - } - - /** - * Makes a code path segment for the body part of a DoWhileStatement. - * @returns {void} - */ - makeDoWhileBody() { - const context = this.loopContext; - const forkContext = this.forkContext; - const bodySegments = forkContext.makeNext(-1, -1); - - // Update state. - context.entrySegments = bodySegments; - forkContext.replaceHead(bodySegments); - } - - /** - * Makes a code path segment for the test part of a DoWhileStatement. - * @param {boolean|undefined} test The test value (only when constant). - * @returns {void} - */ - makeDoWhileTest(test) { - const context = this.loopContext; - const forkContext = this.forkContext; - - context.test = test; - - /* - * If there is a `continue` statement in the loop then `continueForkContext` - * won't be empty. We wire up the path from `continue` to the loop - * test condition and then continue the traversal in the root fork context. - */ - if (!context.continueForkContext.empty) { - context.continueForkContext.add(forkContext.head); - const testSegments = context.continueForkContext.makeNext(0, -1); - - forkContext.replaceHead(testSegments); - } - } - - /** - * Makes a code path segment for the test part of a ForStatement. - * @param {boolean|undefined} test The test value (only when constant). - * @returns {void} - */ - makeForTest(test) { - const context = this.loopContext; - const forkContext = this.forkContext; - const endOfInitSegments = forkContext.head; - const testSegments = forkContext.makeNext(-1, -1); - - /* - * Update the state. - * - * The `continueDestSegments` are set to `testSegments` because we - * don't yet know if there is an update expression in this loop. So, - * from what we already know at this point, a `continue` statement - * will jump back to the test expression. - */ - context.test = test; - context.endOfInitSegments = endOfInitSegments; - context.continueDestSegments = context.testSegments = testSegments; - forkContext.replaceHead(testSegments); - } - - /** - * Makes a code path segment for the update part of a ForStatement. - * @returns {void} - */ - makeForUpdate() { - const context = this.loopContext; - const choiceContext = this.choiceContext; - const forkContext = this.forkContext; - - // Make the next paths of the test. - if (context.testSegments) { - finalizeTestSegmentsOfFor( - context, - choiceContext, - forkContext.head - ); - } else { - context.endOfInitSegments = forkContext.head; - } - - /* - * Update the state. - * - * The `continueDestSegments` are now set to `updateSegments` because we - * know there is an update expression in this loop. So, a `continue` statement - * in the loop will jump to the update expression first, and then to any - * test expression the loop might have. - */ - const updateSegments = forkContext.makeDisconnected(-1, -1); - - context.continueDestSegments = context.updateSegments = updateSegments; - forkContext.replaceHead(updateSegments); - } - - /** - * Makes a code path segment for the body part of a ForStatement. - * @returns {void} - */ - makeForBody() { - const context = this.loopContext; - const choiceContext = this.choiceContext; - const forkContext = this.forkContext; - - /* - * Determine what to do based on which part of the `for` loop are present. - * 1. If there is an update expression, then `updateSegments` is not null and - * we need to assign `endOfUpdateSegments`, and if there is a test - * expression, we then need to create the looped path to get back to - * the test condition. - * 2. If there is no update expression but there is a test expression, - * then we only need to update the test segment information. - * 3. If there is no update expression and no test expression, then we - * just save `endOfInitSegments`. - */ - if (context.updateSegments) { - context.endOfUpdateSegments = forkContext.head; - - /* - * In a `for` loop that has both an update expression and a test - * condition, execution flows from the test expression into the - * loop body, to the update expression, and then back to the test - * expression to determine if the loop should continue. - * - * To account for that, we need to make a path from the end of the - * update expression to the start of the test expression. This is - * effectively what creates the loop in the code path. - */ - if (context.testSegments) { - makeLooped( - this, - context.endOfUpdateSegments, - context.testSegments - ); - } - } else if (context.testSegments) { - finalizeTestSegmentsOfFor( - context, - choiceContext, - forkContext.head - ); - } else { - context.endOfInitSegments = forkContext.head; - } - - let bodySegments = context.endOfTestSegments; - - /* - * If there is a test condition, then there `endOfTestSegments` is also - * the start of the loop body. If there isn't a test condition then - * `bodySegments` will be null and we need to look elsewhere to find - * the start of the body. - * - * The body starts at the end of the init expression and ends at the end - * of the update expression, so we use those locations to determine the - * body segments. - */ - if (!bodySegments) { - - const prevForkContext = ForkContext.newEmpty(forkContext); - - prevForkContext.add(context.endOfInitSegments); - if (context.endOfUpdateSegments) { - prevForkContext.add(context.endOfUpdateSegments); - } - - bodySegments = prevForkContext.makeNext(0, -1); - } - - /* - * If there was no test condition and no update expression, then - * `continueDestSegments` will be null. In that case, a - * `continue` should skip directly to the body of the loop. - * Otherwise, we want to keep the current `continueDestSegments`. - */ - context.continueDestSegments = context.continueDestSegments || bodySegments; - - // move pointer to the body - forkContext.replaceHead(bodySegments); - } - - /** - * Makes a code path segment for the left part of a ForInStatement and a - * ForOfStatement. - * @returns {void} - */ - makeForInOfLeft() { - const context = this.loopContext; - const forkContext = this.forkContext; - const leftSegments = forkContext.makeDisconnected(-1, -1); - - // Update state. - context.prevSegments = forkContext.head; - context.leftSegments = context.continueDestSegments = leftSegments; - forkContext.replaceHead(leftSegments); - } - - /** - * Makes a code path segment for the right part of a ForInStatement and a - * ForOfStatement. - * @returns {void} - */ - makeForInOfRight() { - const context = this.loopContext; - const forkContext = this.forkContext; - const temp = ForkContext.newEmpty(forkContext); - - temp.add(context.prevSegments); - const rightSegments = temp.makeNext(-1, -1); - - // Update state. - context.endOfLeftSegments = forkContext.head; - forkContext.replaceHead(rightSegments); - } - - /** - * Makes a code path segment for the body part of a ForInStatement and a - * ForOfStatement. - * @returns {void} - */ - makeForInOfBody() { - const context = this.loopContext; - const forkContext = this.forkContext; - const temp = ForkContext.newEmpty(forkContext); - - temp.add(context.endOfLeftSegments); - const bodySegments = temp.makeNext(-1, -1); - - // Make a path: `right` -> `left`. - makeLooped(this, forkContext.head, context.leftSegments); - - // Update state. - context.brokenForkContext.add(forkContext.head); - forkContext.replaceHead(bodySegments); - } - - //-------------------------------------------------------------------------- - // Control Statements - //-------------------------------------------------------------------------- - - /** - * Creates new context in which a `break` statement can be used. This occurs inside of a loop, - * labeled statement, or switch statement. - * @param {boolean} breakable Indicates if we are inside a statement where - * `break` without a label will exit the statement. - * @param {string|null} label The label associated with the statement. - * @returns {BreakContext} The new context. - */ - pushBreakContext(breakable, label) { - this.breakContext = new BreakContext(this.breakContext, breakable, label, this.forkContext); - return this.breakContext; - } - - /** - * Removes the top item of the break context stack. - * @returns {Object} The removed context. - */ - popBreakContext() { - const context = this.breakContext; - const forkContext = this.forkContext; - - this.breakContext = context.upper; - - // Process this context here for other than switches and loops. - if (!context.breakable) { - const brokenForkContext = context.brokenForkContext; - - if (!brokenForkContext.empty) { - brokenForkContext.add(forkContext.head); - forkContext.replaceHead(brokenForkContext.makeNext(0, -1)); - } - } - - return context; - } - - /** - * Makes a path for a `break` statement. - * - * It registers the head segment to a context of `break`. - * It makes new unreachable segment, then it set the head with the segment. - * @param {string|null} label A label of the break statement. - * @returns {void} - */ - makeBreak(label) { - const forkContext = this.forkContext; - - if (!forkContext.reachable) { - return; - } - - const context = getBreakContext(this, label); - - - if (context) { - context.brokenForkContext.add(forkContext.head); - } - - /* c8 ignore next */ - forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)); - } - - /** - * Makes a path for a `continue` statement. - * - * It makes a looping path. - * It makes new unreachable segment, then it set the head with the segment. - * @param {string|null} label A label of the continue statement. - * @returns {void} - */ - makeContinue(label) { - const forkContext = this.forkContext; - - if (!forkContext.reachable) { - return; - } - - const context = getContinueContext(this, label); - - if (context) { - if (context.continueDestSegments) { - makeLooped(this, forkContext.head, context.continueDestSegments); - - // If the context is a for-in/of loop, this affects a break also. - if (context.type === "ForInStatement" || - context.type === "ForOfStatement" - ) { - context.brokenForkContext.add(forkContext.head); - } - } else { - context.continueForkContext.add(forkContext.head); - } - } - forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)); - } - - /** - * Makes a path for a `return` statement. - * - * It registers the head segment to a context of `return`. - * It makes new unreachable segment, then it set the head with the segment. - * @returns {void} - */ - makeReturn() { - const forkContext = this.forkContext; - - if (forkContext.reachable) { - getReturnContext(this).returnedForkContext.add(forkContext.head); - forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)); - } - } - - /** - * Makes a path for a `throw` statement. - * - * It registers the head segment to a context of `throw`. - * It makes new unreachable segment, then it set the head with the segment. - * @returns {void} - */ - makeThrow() { - const forkContext = this.forkContext; - - if (forkContext.reachable) { - getThrowContext(this).thrownForkContext.add(forkContext.head); - forkContext.replaceHead(forkContext.makeUnreachable(-1, -1)); - } - } - - /** - * Makes the final path. - * @returns {void} - */ - makeFinal() { - const segments = this.currentSegments; - - if (segments.length > 0 && segments[0].reachable) { - this.returnedForkContext.add(segments); - } - } -} - -module.exports = CodePathState; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path.js deleted file mode 100644 index 8c438e29..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/code-path.js +++ /dev/null @@ -1,344 +0,0 @@ -/** - * @fileoverview A class of the code path. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const CodePathState = require("./code-path-state"); -const IdGenerator = require("./id-generator"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A code path. - */ -class CodePath { - - /** - * Creates a new instance. - * @param {Object} options Options for the function (see below). - * @param {string} options.id An identifier. - * @param {string} options.origin The type of code path origin. - * @param {CodePath|null} options.upper The code path of the upper function scope. - * @param {Function} options.onLooped A callback function to notify looping. - */ - constructor({ id, origin, upper, onLooped }) { - - /** - * The identifier of this code path. - * Rules use it to store additional information of each rule. - * @type {string} - */ - this.id = id; - - /** - * The reason that this code path was started. May be "program", - * "function", "class-field-initializer", or "class-static-block". - * @type {string} - */ - this.origin = origin; - - /** - * The code path of the upper function scope. - * @type {CodePath|null} - */ - this.upper = upper; - - /** - * The code paths of nested function scopes. - * @type {CodePath[]} - */ - this.childCodePaths = []; - - // Initializes internal state. - Object.defineProperty( - this, - "internal", - { value: new CodePathState(new IdGenerator(`${id}_`), onLooped) } - ); - - // Adds this into `childCodePaths` of `upper`. - if (upper) { - upper.childCodePaths.push(this); - } - } - - /** - * Gets the state of a given code path. - * @param {CodePath} codePath A code path to get. - * @returns {CodePathState} The state of the code path. - */ - static getState(codePath) { - return codePath.internal; - } - - /** - * The initial code path segment. This is the segment that is at the head - * of the code path. - * This is a passthrough to the underlying `CodePathState`. - * @type {CodePathSegment} - */ - get initialSegment() { - return this.internal.initialSegment; - } - - /** - * Final code path segments. These are the terminal (tail) segments in the - * code path, which is the combination of `returnedSegments` and `thrownSegments`. - * All segments in this array are reachable. - * This is a passthrough to the underlying `CodePathState`. - * @type {CodePathSegment[]} - */ - get finalSegments() { - return this.internal.finalSegments; - } - - /** - * Final code path segments that represent normal completion of the code path. - * For functions, this means both explicit `return` statements and implicit returns, - * such as the last reachable segment in a function that does not have an - * explicit `return` as this implicitly returns `undefined`. For scripts, - * modules, class field initializers, and class static blocks, this means - * all lines of code have been executed. - * These segments are also present in `finalSegments`. - * This is a passthrough to the underlying `CodePathState`. - * @type {CodePathSegment[]} - */ - get returnedSegments() { - return this.internal.returnedForkContext; - } - - /** - * Final code path segments that represent `throw` statements. - * This is a passthrough to the underlying `CodePathState`. - * These segments are also present in `finalSegments`. - * @type {CodePathSegment[]} - */ - get thrownSegments() { - return this.internal.thrownForkContext; - } - - /** - * Traverses all segments in this code path. - * - * codePath.traverseSegments((segment, controller) => { - * // do something. - * }); - * - * This method enumerates segments in order from the head. - * - * The `controller` argument has two methods: - * - * - `skip()` - skips the following segments in this branch - * - `break()` - skips all following segments in the traversal - * - * A note on the parameters: the `options` argument is optional. This means - * the first argument might be an options object or the callback function. - * @param {Object} [optionsOrCallback] Optional first and last segments to traverse. - * @param {CodePathSegment} [optionsOrCallback.first] The first segment to traverse. - * @param {CodePathSegment} [optionsOrCallback.last] The last segment to traverse. - * @param {Function} callback A callback function. - * @returns {void} - */ - traverseSegments(optionsOrCallback, callback) { - - // normalize the arguments into a callback and options - let resolvedOptions; - let resolvedCallback; - - if (typeof optionsOrCallback === "function") { - resolvedCallback = optionsOrCallback; - resolvedOptions = {}; - } else { - resolvedOptions = optionsOrCallback || {}; - resolvedCallback = callback; - } - - // determine where to start traversing from based on the options - const startSegment = resolvedOptions.first || this.internal.initialSegment; - const lastSegment = resolvedOptions.last; - - // set up initial location information - let record; - let index; - let end; - let segment = null; - - // segments that have already been visited during traversal - const visited = new Set(); - - // tracks the traversal steps - const stack = [[startSegment, 0]]; - - // segments that have been skipped during traversal - const skipped = new Set(); - - // indicates if we exited early from the traversal - let broken = false; - - /** - * Maintains traversal state. - */ - const controller = { - - /** - * Skip the following segments in this branch. - * @returns {void} - */ - skip() { - skipped.add(segment); - }, - - /** - * Stop traversal completely - do not traverse to any - * other segments. - * @returns {void} - */ - break() { - broken = true; - } - }; - - /** - * Checks if a given previous segment has been visited. - * @param {CodePathSegment} prevSegment A previous segment to check. - * @returns {boolean} `true` if the segment has been visited. - */ - function isVisited(prevSegment) { - return ( - visited.has(prevSegment) || - segment.isLoopedPrevSegment(prevSegment) - ); - } - - /** - * Checks if a given previous segment has been skipped. - * @param {CodePathSegment} prevSegment A previous segment to check. - * @returns {boolean} `true` if the segment has been skipped. - */ - function isSkipped(prevSegment) { - return ( - skipped.has(prevSegment) || - segment.isLoopedPrevSegment(prevSegment) - ); - } - - // the traversal - while (stack.length > 0) { - - /* - * This isn't a pure stack. We use the top record all the time - * but don't always pop it off. The record is popped only if - * one of the following is true: - * - * 1) We have already visited the segment. - * 2) We have not visited *all* of the previous segments. - * 3) We have traversed past the available next segments. - * - * Otherwise, we just read the value and sometimes modify the - * record as we traverse. - */ - record = stack.at(-1); - segment = record[0]; - index = record[1]; - - if (index === 0) { - - // Skip if this segment has been visited already. - if (visited.has(segment)) { - stack.pop(); - continue; - } - - // Skip if all previous segments have not been visited. - if (segment !== startSegment && - segment.prevSegments.length > 0 && - !segment.prevSegments.every(isVisited) - ) { - stack.pop(); - continue; - } - - visited.add(segment); - - - // Skips the segment if all previous segments have been skipped. - const shouldSkip = ( - skipped.size > 0 && - segment.prevSegments.length > 0 && - segment.prevSegments.every(isSkipped) - ); - - /* - * If the most recent segment hasn't been skipped, then we call - * the callback, passing in the segment and the controller. - */ - if (!shouldSkip) { - resolvedCallback.call(this, segment, controller); - - // exit if we're at the last segment - if (segment === lastSegment) { - controller.skip(); - } - - /* - * If the previous statement was executed, or if the callback - * called a method on the controller, we might need to exit the - * loop, so check for that and break accordingly. - */ - if (broken) { - break; - } - } else { - - // If the most recent segment has been skipped, then mark it as skipped. - skipped.add(segment); - } - } - - // Update the stack. - end = segment.nextSegments.length - 1; - if (index < end) { - - /* - * If we haven't yet visited all of the next segments, update - * the current top record on the stack to the next index to visit - * and then push a record for the current segment on top. - * - * Setting the current top record's index lets us know how many - * times we've been here and ensures that the segment won't be - * reprocessed (because we only process segments with an index - * of 0). - */ - record[1] += 1; - stack.push([segment.nextSegments[index], 0]); - } else if (index === end) { - - /* - * If we are at the last next segment, then reset the top record - * in the stack to next segment and set its index to 0 so it will - * be processed next. - */ - record[0] = segment.nextSegments[index]; - record[1] = 0; - } else { - - /* - * If index > end, that means we have no more segments that need - * processing. So, we pop that record off of the stack in order to - * continue traversing at the next level up. - */ - stack.pop(); - } - } - } -} - -module.exports = CodePath; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js deleted file mode 100644 index c0e01a82..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * @fileoverview Helpers to debug for code path analysis. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const debug = require("debug")("eslint:code-path"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Gets id of a given segment. - * @param {CodePathSegment} segment A segment to get. - * @returns {string} Id of the segment. - */ -/* c8 ignore next */ -function getId(segment) { // eslint-disable-line jsdoc/require-jsdoc -- Ignoring - return segment.id + (segment.reachable ? "" : "!"); -} - -/** - * Get string for the given node and operation. - * @param {ASTNode} node The node to convert. - * @param {"enter" | "exit" | undefined} label The operation label. - * @returns {string} The string representation. - */ -function nodeToString(node, label) { - const suffix = label ? `:${label}` : ""; - - switch (node.type) { - case "Identifier": return `${node.type}${suffix} (${node.name})`; - case "Literal": return `${node.type}${suffix} (${node.value})`; - default: return `${node.type}${suffix}`; - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - - /** - * A flag that debug dumping is enabled or not. - * @type {boolean} - */ - enabled: debug.enabled, - - /** - * Dumps given objects. - * @param {...any} args objects to dump. - * @returns {void} - */ - dump: debug, - - /** - * Dumps the current analyzing state. - * @param {ASTNode} node A node to dump. - * @param {CodePathState} state A state to dump. - * @param {boolean} leaving A flag whether or not it's leaving - * @returns {void} - */ - dumpState: !debug.enabled ? debug : /* c8 ignore next */ function(node, state, leaving) { - for (let i = 0; i < state.currentSegments.length; ++i) { - const segInternal = state.currentSegments[i].internal; - - if (leaving) { - const last = segInternal.nodes.length - 1; - - if (last >= 0 && segInternal.nodes[last] === nodeToString(node, "enter")) { - segInternal.nodes[last] = nodeToString(node, void 0); - } else { - segInternal.nodes.push(nodeToString(node, "exit")); - } - } else { - segInternal.nodes.push(nodeToString(node, "enter")); - } - } - - debug([ - `${state.currentSegments.map(getId).join(",")})`, - `${node.type}${leaving ? ":exit" : ""}` - ].join(" ")); - }, - - /** - * Dumps a DOT code of a given code path. - * The DOT code can be visualized with Graphvis. - * @param {CodePath} codePath A code path to dump. - * @returns {void} - * @see http://www.graphviz.org - * @see http://www.webgraphviz.com - */ - dumpDot: !debug.enabled ? debug : /* c8 ignore next */ function(codePath) { - let text = - "\n" + - "digraph {\n" + - "node[shape=box,style=\"rounded,filled\",fillcolor=white];\n" + - "initial[label=\"\",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];\n"; - - if (codePath.returnedSegments.length > 0) { - text += "final[label=\"\",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];\n"; - } - if (codePath.thrownSegments.length > 0) { - text += "thrown[label=\"✘\",shape=circle,width=0.3,height=0.3,fixedsize=true];\n"; - } - - const traceMap = Object.create(null); - const arrows = this.makeDotArrows(codePath, traceMap); - - for (const id in traceMap) { // eslint-disable-line guard-for-in -- Want ability to traverse prototype - const segment = traceMap[id]; - - text += `${id}[`; - - if (segment.reachable) { - text += "label=\""; - } else { - text += "style=\"rounded,dashed,filled\",fillcolor=\"#FF9800\",label=\"<>\\n"; - } - - if (segment.internal.nodes.length > 0) { - text += segment.internal.nodes.join("\\n"); - } else { - text += "????"; - } - - text += "\"];\n"; - } - - text += `${arrows}\n`; - text += "}"; - debug("DOT", text); - }, - - /** - * Makes a DOT code of a given code path. - * The DOT code can be visualized with Graphvis. - * @param {CodePath} codePath A code path to make DOT. - * @param {Object} traceMap Optional. A map to check whether or not segments had been done. - * @returns {string} A DOT code of the code path. - */ - makeDotArrows(codePath, traceMap) { - const stack = [[codePath.initialSegment, 0]]; - const done = traceMap || Object.create(null); - let lastId = codePath.initialSegment.id; - let text = `initial->${codePath.initialSegment.id}`; - - while (stack.length > 0) { - const item = stack.pop(); - const segment = item[0]; - const index = item[1]; - - if (done[segment.id] && index === 0) { - continue; - } - done[segment.id] = segment; - - const nextSegment = segment.allNextSegments[index]; - - if (!nextSegment) { - continue; - } - - if (lastId === segment.id) { - text += `->${nextSegment.id}`; - } else { - text += `;\n${segment.id}->${nextSegment.id}`; - } - lastId = nextSegment.id; - - stack.unshift([segment, 1 + index]); - stack.push([nextSegment, 0]); - } - - codePath.returnedSegments.forEach(finalSegment => { - if (lastId === finalSegment.id) { - text += "->final"; - } else { - text += `;\n${finalSegment.id}->final`; - } - lastId = null; - }); - - codePath.thrownSegments.forEach(finalSegment => { - if (lastId === finalSegment.id) { - text += "->thrown"; - } else { - text += `;\n${finalSegment.id}->thrown`; - } - lastId = null; - }); - - return `${text};`; - } -}; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js deleted file mode 100644 index f5783b0d..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/fork-context.js +++ /dev/null @@ -1,349 +0,0 @@ -/** - * @fileoverview A class to operate forking. - * - * This is state of forking. - * This has a fork list and manages it. - * - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const assert = require("node:assert"), - CodePathSegment = require("./code-path-segment"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether or not a given segment is reachable. - * @param {CodePathSegment} segment The segment to check. - * @returns {boolean} `true` if the segment is reachable. - */ -function isReachable(segment) { - return segment.reachable; -} - -/** - * Creates a new segment for each fork in the given context and appends it - * to the end of the specified range of segments. Ultimately, this ends up calling - * `new CodePathSegment()` for each of the forks using the `create` argument - * as a wrapper around special behavior. - * - * The `startIndex` and `endIndex` arguments specify a range of segments in - * `context` that should become `allPrevSegments` for the newly created - * `CodePathSegment` objects. - * - * When `context.segmentsList` is `[[a, b], [c, d], [e, f]]`, `begin` is `0`, and - * `end` is `-1`, this creates two new segments, `[g, h]`. This `g` is appended to - * the end of the path from `a`, `c`, and `e`. This `h` is appended to the end of - * `b`, `d`, and `f`. - * @param {ForkContext} context An instance from which the previous segments - * will be obtained. - * @param {number} startIndex The index of the first segment in the context - * that should be specified as previous segments for the newly created segments. - * @param {number} endIndex The index of the last segment in the context - * that should be specified as previous segments for the newly created segments. - * @param {Function} create A function that creates new `CodePathSegment` - * instances in a particular way. See the `CodePathSegment.new*` methods. - * @returns {Array} An array of the newly-created segments. - */ -function createSegments(context, startIndex, endIndex, create) { - - /** @type {Array>} */ - const list = context.segmentsList; - - /* - * Both `startIndex` and `endIndex` work the same way: if the number is zero - * or more, then the number is used as-is. If the number is negative, - * then that number is added to the length of the segments list to - * determine the index to use. That means -1 for either argument - * is the last element, -2 is the second to last, and so on. - * - * So if `startIndex` is 0, `endIndex` is -1, and `list.length` is 3, the - * effective `startIndex` is 0 and the effective `endIndex` is 2, so this function - * will include items at indices 0, 1, and 2. - * - * Therefore, if `startIndex` is -1 and `endIndex` is -1, that means we'll only - * be using the last segment in `list`. - */ - const normalizedBegin = startIndex >= 0 ? startIndex : list.length + startIndex; - const normalizedEnd = endIndex >= 0 ? endIndex : list.length + endIndex; - - /** @type {Array} */ - const segments = []; - - for (let i = 0; i < context.count; ++i) { - - // this is passed into `new CodePathSegment` to add to code path. - const allPrevSegments = []; - - for (let j = normalizedBegin; j <= normalizedEnd; ++j) { - allPrevSegments.push(list[j][i]); - } - - // note: `create` is just a wrapper that augments `new CodePathSegment`. - segments.push(create(context.idGenerator.next(), allPrevSegments)); - } - - return segments; -} - -/** - * Inside of a `finally` block we end up with two parallel paths. If the code path - * exits by a control statement (such as `break` or `continue`) from the `finally` - * block, then we need to merge the remaining parallel paths back into one. - * @param {ForkContext} context The fork context to work on. - * @param {Array} segments Segments to merge. - * @returns {Array} The merged segments. - */ -function mergeExtraSegments(context, segments) { - let currentSegments = segments; - - /* - * We need to ensure that the array returned from this function contains no more - * than the number of segments that the context allows. `context.count` indicates - * how many items should be in the returned array to ensure that the new segment - * entries will line up with the already existing segment entries. - */ - while (currentSegments.length > context.count) { - const merged = []; - - /* - * Because `context.count` is a factor of 2 inside of a `finally` block, - * we can divide the segment count by 2 to merge the paths together. - * This loops through each segment in the list and creates a new `CodePathSegment` - * that has the segment and the segment two slots away as previous segments. - * - * If `currentSegments` is [a,b,c,d], this will create new segments e and f, such - * that: - * - * When `i` is 0: - * a->e - * c->e - * - * When `i` is 1: - * b->f - * d->f - */ - for (let i = 0, length = Math.floor(currentSegments.length / 2); i < length; ++i) { - merged.push(CodePathSegment.newNext( - context.idGenerator.next(), - [currentSegments[i], currentSegments[i + length]] - )); - } - - /* - * Go through the loop condition one more time to see if we have the - * number of segments for the context. If not, we'll keep merging paths - * of the merged segments until we get there. - */ - currentSegments = merged; - } - - return currentSegments; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Manages the forking of code paths. - */ -class ForkContext { - - /** - * Creates a new instance. - * @param {IdGenerator} idGenerator An identifier generator for segments. - * @param {ForkContext|null} upper The preceding fork context. - * @param {number} count The number of parallel segments in each element - * of `segmentsList`. - */ - constructor(idGenerator, upper, count) { - - /** - * The ID generator that will generate segment IDs for any new - * segments that are created. - * @type {IdGenerator} - */ - this.idGenerator = idGenerator; - - /** - * The preceding fork context. - * @type {ForkContext|null} - */ - this.upper = upper; - - /** - * The number of elements in each element of `segmentsList`. In most - * cases, this is 1 but can be 2 when there is a `finally` present, - * which forks the code path outside of normal flow. In the case of nested - * `finally` blocks, this can be a multiple of 2. - * @type {number} - */ - this.count = count; - - /** - * The segments within this context. Each element in this array has - * `count` elements that represent one step in each fork. For example, - * when `segmentsList` is `[[a, b], [c, d], [e, f]]`, there is one path - * a->c->e and one path b->d->f, and `count` is 2 because each element - * is an array with two elements. - * @type {Array>} - */ - this.segmentsList = []; - } - - /** - * The segments that begin this fork context. - * @type {Array} - */ - get head() { - const list = this.segmentsList; - - return list.length === 0 ? [] : list.at(-1); - } - - /** - * Indicates if the context contains no segments. - * @type {boolean} - */ - get empty() { - return this.segmentsList.length === 0; - } - - /** - * Indicates if there are any segments that are reachable. - * @type {boolean} - */ - get reachable() { - const segments = this.head; - - return segments.length > 0 && segments.some(isReachable); - } - - /** - * Creates new segments in this context and appends them to the end of the - * already existing `CodePathSegment`s specified by `startIndex` and - * `endIndex`. - * @param {number} startIndex The index of the first segment in the context - * that should be specified as previous segments for the newly created segments. - * @param {number} endIndex The index of the last segment in the context - * that should be specified as previous segments for the newly created segments. - * @returns {Array} An array of the newly created segments. - */ - makeNext(startIndex, endIndex) { - return createSegments(this, startIndex, endIndex, CodePathSegment.newNext); - } - - /** - * Creates new unreachable segments in this context and appends them to the end of the - * already existing `CodePathSegment`s specified by `startIndex` and - * `endIndex`. - * @param {number} startIndex The index of the first segment in the context - * that should be specified as previous segments for the newly created segments. - * @param {number} endIndex The index of the last segment in the context - * that should be specified as previous segments for the newly created segments. - * @returns {Array} An array of the newly created segments. - */ - makeUnreachable(startIndex, endIndex) { - return createSegments(this, startIndex, endIndex, CodePathSegment.newUnreachable); - } - - /** - * Creates new segments in this context and does not append them to the end - * of the already existing `CodePathSegment`s specified by `startIndex` and - * `endIndex`. The `startIndex` and `endIndex` are only used to determine if - * the new segments should be reachable. If any of the segments in this range - * are reachable then the new segments are also reachable; otherwise, the new - * segments are unreachable. - * @param {number} startIndex The index of the first segment in the context - * that should be considered for reachability. - * @param {number} endIndex The index of the last segment in the context - * that should be considered for reachability. - * @returns {Array} An array of the newly created segments. - */ - makeDisconnected(startIndex, endIndex) { - return createSegments(this, startIndex, endIndex, CodePathSegment.newDisconnected); - } - - /** - * Adds segments to the head of this context. - * @param {Array} segments The segments to add. - * @returns {void} - */ - add(segments) { - assert(segments.length >= this.count, `${segments.length} >= ${this.count}`); - this.segmentsList.push(mergeExtraSegments(this, segments)); - } - - /** - * Replaces the head segments with the given segments. - * The current head segments are removed. - * @param {Array} replacementHeadSegments The new head segments. - * @returns {void} - */ - replaceHead(replacementHeadSegments) { - assert( - replacementHeadSegments.length >= this.count, - `${replacementHeadSegments.length} >= ${this.count}` - ); - this.segmentsList.splice(-1, 1, mergeExtraSegments(this, replacementHeadSegments)); - } - - /** - * Adds all segments of a given fork context into this context. - * @param {ForkContext} otherForkContext The fork context to add from. - * @returns {void} - */ - addAll(otherForkContext) { - assert(otherForkContext.count === this.count); - this.segmentsList.push(...otherForkContext.segmentsList); - } - - /** - * Clears all segments in this context. - * @returns {void} - */ - clear() { - this.segmentsList = []; - } - - /** - * Creates a new root context, meaning that there are no parent - * fork contexts. - * @param {IdGenerator} idGenerator An identifier generator for segments. - * @returns {ForkContext} New fork context. - */ - static newRoot(idGenerator) { - const context = new ForkContext(idGenerator, null, 1); - - context.add([CodePathSegment.newRoot(idGenerator.next())]); - - return context; - } - - /** - * Creates an empty fork context preceded by a given context. - * @param {ForkContext} parentContext The parent fork context. - * @param {boolean} shouldForkLeavingPath Indicates that we are inside of - * a `finally` block and should therefore fork the path that leaves - * `finally`. - * @returns {ForkContext} New fork context. - */ - static newEmpty(parentContext, shouldForkLeavingPath) { - return new ForkContext( - parentContext.idGenerator, - parentContext, - (shouldForkLeavingPath ? 2 : 1) * parentContext.count - ); - } -} - -module.exports = ForkContext; diff --git a/graphql/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js b/graphql/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js deleted file mode 100644 index b580104e..00000000 --- a/graphql/node_modules/eslint/lib/linter/code-path-analysis/id-generator.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @fileoverview A class of identifiers generator for code path segments. - * - * Each rule uses the identifier of code path segments to store additional - * information of the code path. - * - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A generator for unique ids. - */ -class IdGenerator { - - /** - * @param {string} prefix Optional. A prefix of generated ids. - */ - constructor(prefix) { - this.prefix = String(prefix); - this.n = 0; - } - - /** - * Generates id. - * @returns {string} A generated id. - */ - next() { - this.n = 1 + this.n | 0; - - /* c8 ignore start */ - if (this.n < 0) { - this.n = 1; - }/* c8 ignore stop */ - - return this.prefix + this.n; - } -} - -module.exports = IdGenerator; diff --git a/graphql/node_modules/eslint/lib/linter/config-comment-parser.js b/graphql/node_modules/eslint/lib/linter/config-comment-parser.js deleted file mode 100644 index ec05cf8a..00000000 --- a/graphql/node_modules/eslint/lib/linter/config-comment-parser.js +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @fileoverview Config Comment Parser - * @author Nicholas C. Zakas - */ - -/* eslint class-methods-use-this: off -- Methods desired on instance */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const levn = require("levn"), - { - Legacy: { - ConfigOps - } - } = require("@eslint/eslintrc/universal"), - { - directivesPattern - } = require("../shared/directives"); - -const debug = require("debug")("eslint:config-comment-parser"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Object to parse ESLint configuration comments inside JavaScript files. - * @name ConfigCommentParser - */ -module.exports = class ConfigCommentParser { - - /** - * Parses a list of "name:string_value" or/and "name" options divided by comma or - * whitespace. Used for "global" comments. - * @param {string} string The string to parse. - * @param {Comment} comment The comment node which has the string. - * @returns {Object} Result map object of names and string values, or null values if no value was provided - */ - parseStringConfig(string, comment) { - debug("Parsing String config"); - - const items = {}; - - // Collapse whitespace around `:` and `,` to make parsing easier - const trimmedString = string.replace(/\s*([:,])\s*/gu, "$1"); - - trimmedString.split(/\s|,+/u).forEach(name => { - if (!name) { - return; - } - - // value defaults to null (if not provided), e.g: "foo" => ["foo", null] - const [key, value = null] = name.split(":"); - - items[key] = { value, comment }; - }); - return items; - } - - /** - * Parses a JSON-like config. - * @param {string} string The string to parse. - * @returns {({success: true, config: Object}|{success: false, error: {message: string}})} Result map object - */ - parseJsonConfig(string) { - debug("Parsing JSON config"); - - // Parses a JSON-like comment by the same way as parsing CLI option. - try { - const items = levn.parse("Object", string) || {}; - - // Some tests say that it should ignore invalid comments such as `/*eslint no-alert:abc*/`. - // Also, commaless notations have invalid severity: - // "no-alert: 2 no-console: 2" --> {"no-alert": "2 no-console: 2"} - // Should ignore that case as well. - if (ConfigOps.isEverySeverityValid(items)) { - return { - success: true, - config: items - }; - } - } catch { - - debug("Levn parsing failed; falling back to manual parsing."); - - // ignore to parse the string by a fallback. - } - - /* - * Optionator cannot parse commaless notations. - * But we are supporting that. So this is a fallback for that. - */ - const normalizedString = string.replace(/([-a-zA-Z0-9/]+):/gu, "\"$1\":").replace(/(\]|[0-9])\s+(?=")/u, "$1,"); - - try { - const items = JSON.parse(`{${normalizedString}}`); - - return { - success: true, - config: items - }; - } catch (ex) { - debug("Manual parsing failed."); - - return { - success: false, - error: { - message: `Failed to parse JSON from '${normalizedString}': ${ex.message}` - } - }; - - } - } - - /** - * Parses a config of values separated by comma. - * @param {string} string The string to parse. - * @returns {Object} Result map of values and true values - */ - parseListConfig(string) { - debug("Parsing list config"); - - const items = {}; - - string.split(",").forEach(name => { - const trimmedName = name.trim().replace(/^(?['"]?)(?.*)\k$/us, "$"); - - if (trimmedName) { - items[trimmedName] = true; - } - }); - return items; - } - - /** - * Extract the directive and the justification from a given directive comment and trim them. - * @param {string} value The comment text to extract. - * @returns {{directivePart: string, justificationPart: string}} The extracted directive and justification. - */ - extractDirectiveComment(value) { - const match = /\s-{2,}\s/u.exec(value); - - if (!match) { - return { directivePart: value.trim(), justificationPart: "" }; - } - - const directive = value.slice(0, match.index).trim(); - const justification = value.slice(match.index + match[0].length).trim(); - - return { directivePart: directive, justificationPart: justification }; - } - - /** - * Parses a directive comment into directive text and value. - * @param {Comment} comment The comment node with the directive to be parsed. - * @returns {{directiveText: string, directiveValue: string}} The directive text and value. - */ - parseDirective(comment) { - const { directivePart } = this.extractDirectiveComment(comment.value); - const match = directivesPattern.exec(directivePart); - const directiveText = match[1]; - const directiveValue = directivePart.slice(match.index + directiveText.length); - - return { directiveText, directiveValue }; - } -}; diff --git a/graphql/node_modules/eslint/lib/linter/index.js b/graphql/node_modules/eslint/lib/linter/index.js deleted file mode 100644 index 9e539776..00000000 --- a/graphql/node_modules/eslint/lib/linter/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -const { Linter } = require("./linter"); -const SourceCodeFixer = require("./source-code-fixer"); - -module.exports = { - Linter, - - // For testers. - SourceCodeFixer -}; diff --git a/graphql/node_modules/eslint/lib/linter/interpolate.js b/graphql/node_modules/eslint/lib/linter/interpolate.js deleted file mode 100644 index 5f4ff922..00000000 --- a/graphql/node_modules/eslint/lib/linter/interpolate.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview Interpolate keys from an object into a string with {{ }} markers. - * @author Jed Fox - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Returns a global expression matching placeholders in messages. - * @returns {RegExp} Global regular expression matching placeholders - */ -function getPlaceholderMatcher() { - return /\{\{([^{}]+?)\}\}/gu; -} - -/** - * Replaces {{ placeholders }} in the message with the provided data. - * Does not replace placeholders not available in the data. - * @param {string} text Original message with potential placeholders - * @param {Record} data Map of placeholder name to its value - * @returns {string} Message with replaced placeholders - */ -function interpolate(text, data) { - if (!data) { - return text; - } - - const matcher = getPlaceholderMatcher(); - - // Substitution content for any {{ }} markers. - return text.replace(matcher, (fullMatch, termWithWhitespace) => { - const term = termWithWhitespace.trim(); - - if (term in data) { - return data[term]; - } - - // Preserve old behavior: If parameter name not provided, don't replace it. - return fullMatch; - }); -} - -module.exports = { - getPlaceholderMatcher, - interpolate -}; diff --git a/graphql/node_modules/eslint/lib/linter/linter.js b/graphql/node_modules/eslint/lib/linter/linter.js deleted file mode 100644 index e5d4d2c7..00000000 --- a/graphql/node_modules/eslint/lib/linter/linter.js +++ /dev/null @@ -1,2410 +0,0 @@ -/** - * @fileoverview Main Linter Class - * @author Gyandeep Singh - * @author aladdin-add - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const - path = require("node:path"), - eslintScope = require("eslint-scope"), - evk = require("eslint-visitor-keys"), - espree = require("espree"), - merge = require("lodash.merge"), - pkg = require("../../package.json"), - { - directivesPattern - } = require("../shared/directives"), - { - Legacy: { - ConfigOps, - ConfigValidator, - environments: BuiltInEnvironments - } - } = require("@eslint/eslintrc/universal"), - Traverser = require("../shared/traverser"), - { SourceCode } = require("../languages/js/source-code"), - applyDisableDirectives = require("./apply-disable-directives"), - ConfigCommentParser = require("./config-comment-parser"), - NodeEventGenerator = require("./node-event-generator"), - createReportTranslator = require("./report-translator"), - Rules = require("./rules"), - createEmitter = require("./safe-emitter"), - SourceCodeFixer = require("./source-code-fixer"), - timing = require("./timing"), - ruleReplacements = require("../../conf/replacements.json"); -const { getRuleFromConfig } = require("../config/flat-config-helpers"); -const { FlatConfigArray } = require("../config/flat-config-array"); -const { startTime, endTime } = require("../shared/stats"); -const { RuleValidator } = require("../config/rule-validator"); -const { assertIsRuleSeverity } = require("../config/flat-config-schema"); -const { normalizeSeverityToString } = require("../shared/severity"); -const jslang = require("../languages/js"); -const { activeFlags, inactiveFlags } = require("../shared/flags"); -const debug = require("debug")("eslint:linter"); -const MAX_AUTOFIX_PASSES = 10; -const DEFAULT_PARSER_NAME = "espree"; -const DEFAULT_ECMA_VERSION = 5; -const commentParser = new ConfigCommentParser(); -const DEFAULT_ERROR_LOC = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } }; -const parserSymbol = Symbol.for("eslint.RuleTester.parser"); -const { LATEST_ECMA_VERSION } = require("../../conf/ecma-version"); -const { VFile } = require("./vfile"); -const STEP_KIND_VISIT = 1; -const STEP_KIND_CALL = 2; - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../shared/types").Environment} Environment */ -/** @typedef {import("../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../shared/types").LintMessage} LintMessage */ -/** @typedef {import("../shared/types").SuppressedLintMessage} SuppressedLintMessage */ -/** @typedef {import("../shared/types").ParserOptions} ParserOptions */ -/** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */ -/** @typedef {import("../shared/types").Processor} Processor */ -/** @typedef {import("../shared/types").Rule} Rule */ -/** @typedef {import("../shared/types").Times} Times */ -/** @typedef {import("@eslint/core").Language} Language */ -/** @typedef {import("@eslint/core").RuleSeverity} RuleSeverity */ -/** @typedef {import("@eslint/core").RuleConfig} RuleConfig */ - - -/* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */ -/** - * @template T - * @typedef {{ [P in keyof T]-?: T[P] }} Required - */ -/* eslint-enable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/4#issuecomment-778805577 */ - -/** - * @typedef {Object} DisableDirective - * @property {("disable"|"enable"|"disable-line"|"disable-next-line")} type Type of directive - * @property {number} line The line number - * @property {number} column The column number - * @property {(string|null)} ruleId The rule ID - * @property {string} justification The justification of directive - */ - -/** - * The private data for `Linter` instance. - * @typedef {Object} LinterInternalSlots - * @property {ConfigArray|null} lastConfigArray The `ConfigArray` instance that the last `verify()` call used. - * @property {SourceCode|null} lastSourceCode The `SourceCode` instance that the last `verify()` call used. - * @property {SuppressedLintMessage[]} lastSuppressedMessages The `SuppressedLintMessage[]` instance that the last `verify()` call produced. - * @property {Map} parserMap The loaded parsers. - * @property {Times} times The times spent on applying a rule to a file (see `stats` option). - * @property {Rules} ruleMap The loaded rules. - */ - -/** - * @typedef {Object} VerifyOptions - * @property {boolean} [allowInlineConfig] Allow/disallow inline comments' ability - * to change config once it is set. Defaults to true if not supplied. - * Useful if you want to validate JS without comments overriding rules. - * @property {boolean} [disableFixes] if `true` then the linter doesn't make `fix` - * properties into the lint result. - * @property {string} [filename] the filename of the source code. - * @property {boolean | "off" | "warn" | "error"} [reportUnusedDisableDirectives] Adds reported errors for - * unused `eslint-disable` directives. - * @property {Function} [ruleFilter] A predicate function that determines whether a given rule should run. - */ - -/** - * @typedef {Object} ProcessorOptions - * @property {(filename:string, text:string) => boolean} [filterCodeBlock] the - * predicate function that selects adopt code blocks. - * @property {Processor.postprocess} [postprocess] postprocessor for report - * messages. If provided, this should accept an array of the message lists - * for each code block returned from the preprocessor, apply a mapping to - * the messages as appropriate, and return a one-dimensional array of - * messages. - * @property {Processor.preprocess} [preprocess] preprocessor for source text. - * If provided, this should accept a string of source text, and return an - * array of code blocks to lint. - */ - -/** - * @typedef {Object} FixOptions - * @property {boolean | ((message: LintMessage) => boolean)} [fix] Determines - * whether fixes should be applied. - */ - -/** - * @typedef {Object} InternalOptions - * @property {string | null} warnInlineConfig The config name what `noInlineConfig` setting came from. If `noInlineConfig` setting didn't exist, this is null. If this is a config name, then the linter warns directive comments. - * @property {"off" | "warn" | "error"} reportUnusedDisableDirectives (boolean values were normalized) - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines if a given object is Espree. - * @param {Object} parser The parser to check. - * @returns {boolean} True if the parser is Espree or false if not. - */ -function isEspree(parser) { - return !!(parser === espree || parser[parserSymbol] === espree); -} - -/** - * Ensures that variables representing built-in properties of the Global Object, - * and any globals declared by special block comments, are present in the global - * scope. - * @param {Scope} globalScope The global scope. - * @param {Object} configGlobals The globals declared in configuration - * @param {{exportedVariables: Object, enabledGlobals: Object}} commentDirectives Directives from comment configuration - * @returns {void} - */ -function addDeclaredGlobals(globalScope, configGlobals, { exportedVariables, enabledGlobals }) { - - // Define configured global variables. - for (const id of new Set([...Object.keys(configGlobals), ...Object.keys(enabledGlobals)])) { - - /* - * `ConfigOps.normalizeConfigGlobal` will throw an error if a configured global value is invalid. However, these errors would - * typically be caught when validating a config anyway (validity for inline global comments is checked separately). - */ - const configValue = configGlobals[id] === void 0 ? void 0 : ConfigOps.normalizeConfigGlobal(configGlobals[id]); - const commentValue = enabledGlobals[id] && enabledGlobals[id].value; - const value = commentValue || configValue; - const sourceComments = enabledGlobals[id] && enabledGlobals[id].comments; - - if (value === "off") { - continue; - } - - let variable = globalScope.set.get(id); - - if (!variable) { - variable = new eslintScope.Variable(id, globalScope); - - globalScope.variables.push(variable); - globalScope.set.set(id, variable); - } - - variable.eslintImplicitGlobalSetting = configValue; - variable.eslintExplicitGlobal = sourceComments !== void 0; - variable.eslintExplicitGlobalComments = sourceComments; - variable.writeable = (value === "writable"); - } - - // mark all exported variables as such - Object.keys(exportedVariables).forEach(name => { - const variable = globalScope.set.get(name); - - if (variable) { - variable.eslintUsed = true; - variable.eslintExported = true; - } - }); - - /* - * "through" contains all references which definitions cannot be found. - * Since we augment the global scope using configuration, we need to update - * references and remove the ones that were added by configuration. - */ - globalScope.through = globalScope.through.filter(reference => { - const name = reference.identifier.name; - const variable = globalScope.set.get(name); - - if (variable) { - - /* - * Links the variable and the reference. - * And this reference is removed from `Scope#through`. - */ - reference.resolved = variable; - variable.references.push(reference); - - return false; - } - - return true; - }); -} - -/** - * creates a missing-rule message. - * @param {string} ruleId the ruleId to create - * @returns {string} created error message - * @private - */ -function createMissingRuleMessage(ruleId) { - return Object.hasOwn(ruleReplacements.rules, ruleId) - ? `Rule '${ruleId}' was removed and replaced by: ${ruleReplacements.rules[ruleId].join(", ")}` - : `Definition for rule '${ruleId}' was not found.`; -} - -/** - * Updates a given location based on the language offsets. This allows us to - * change 0-based locations to 1-based locations. We always want ESLint - * reporting lines and columns starting from 1. - * @param {Object} location The location to update. - * @param {number} location.line The starting line number. - * @param {number} location.column The starting column number. - * @param {number} [location.endLine] The ending line number. - * @param {number} [location.endColumn] The ending column number. - * @param {Language} language The language to use to adjust the location information. - * @returns {Object} The updated location. - */ -function updateLocationInformation({ line, column, endLine, endColumn }, language) { - - const columnOffset = language.columnStart === 1 ? 0 : 1; - const lineOffset = language.lineStart === 1 ? 0 : 1; - - // calculate separately to account for undefined - const finalEndLine = endLine === void 0 ? endLine : endLine + lineOffset; - const finalEndColumn = endColumn === void 0 ? endColumn : endColumn + columnOffset; - - return { - line: line + lineOffset, - column: column + columnOffset, - endLine: finalEndLine, - endColumn: finalEndColumn - }; -} - -/** - * creates a linting problem - * @param {Object} options to create linting error - * @param {string} [options.ruleId] the ruleId to report - * @param {Object} [options.loc] the loc to report - * @param {string} [options.message] the error message to report - * @param {RuleSeverity} [options.severity] the error message to report - * @param {Language} [options.language] the language to use to adjust the location information - * @returns {LintMessage} created problem, returns a missing-rule problem if only provided ruleId. - * @private - */ -function createLintingProblem(options) { - const { - ruleId = null, - loc = DEFAULT_ERROR_LOC, - message = createMissingRuleMessage(options.ruleId), - severity = 2, - - // fallback for eslintrc mode - language = { - columnStart: 0, - lineStart: 1 - } - } = options; - - return { - ruleId, - message, - ...updateLocationInformation({ - line: loc.start.line, - column: loc.start.column, - endLine: loc.end.line, - endColumn: loc.end.column - }, language), - severity, - nodeType: null - }; -} - -/** - * Creates a collection of disable directives from a comment - * @param {Object} options to create disable directives - * @param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment - * @param {string} options.value The value after the directive in the comment - * comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`) - * @param {string} options.justification The justification of the directive - * @param {ASTNode|token} options.node The Comment node/token. - * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules - * @param {Language} language The language to use to adjust the location information. - * @param {SourceCode} sourceCode The SourceCode object to get comments from. - * @returns {Object} Directives and problems from the comment - */ -function createDisableDirectives({ type, value, justification, node }, ruleMapper, language, sourceCode) { - const ruleIds = Object.keys(commentParser.parseListConfig(value)); - const directiveRules = ruleIds.length ? ruleIds : [null]; - const result = { - directives: [], // valid disable directives - directiveProblems: [] // problems in directives - }; - const parentDirective = { node, ruleIds }; - - for (const ruleId of directiveRules) { - - const loc = sourceCode.getLoc(node); - - // push to directives, if the rule is defined(including null, e.g. /*eslint enable*/) - if (ruleId === null || !!ruleMapper(ruleId)) { - - - if (type === "disable-next-line") { - const { line, column } = updateLocationInformation( - loc.end, - language - ); - - result.directives.push({ - parentDirective, - type, - line, - column, - ruleId, - justification - }); - } else { - const { line, column } = updateLocationInformation( - loc.start, - language - ); - - result.directives.push({ - parentDirective, - type, - line, - column, - ruleId, - justification - }); - } - } else { - result.directiveProblems.push(createLintingProblem({ ruleId, loc, language })); - } - } - return result; -} - -/** - * Parses comments in file to extract file-specific config of rules, globals - * and environments and merges them with global config; also code blocks - * where reporting is disabled or enabled and merges them with reporting config. - * @param {SourceCode} sourceCode The SourceCode object to get comments from. - * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules - * @param {string|null} warnInlineConfig If a string then it should warn directive comments as disabled. The string value is the config name what the setting came from. - * @param {ConfigData} config Provided config. - * @returns {{configuredRules: Object, enabledGlobals: {value:string,comment:Token}[], exportedVariables: Object, problems: LintMessage[], disableDirectives: DisableDirective[]}} - * A collection of the directive comments that were found, along with any problems that occurred when parsing - */ -function getDirectiveComments(sourceCode, ruleMapper, warnInlineConfig, config) { - const configuredRules = {}; - const enabledGlobals = Object.create(null); - const exportedVariables = {}; - const problems = []; - const disableDirectives = []; - const validator = new ConfigValidator({ - builtInRules: Rules - }); - - sourceCode.getInlineConfigNodes().filter(token => token.type !== "Shebang").forEach(comment => { - const { directivePart, justificationPart } = commentParser.extractDirectiveComment(comment.value); - - const match = directivesPattern.exec(directivePart); - - if (!match) { - return; - } - const directiveText = match[1]; - const lineCommentSupported = /^eslint-disable-(next-)?line$/u.test(directiveText); - - if (comment.type === "Line" && !lineCommentSupported) { - return; - } - - const loc = sourceCode.getLoc(comment); - - if (warnInlineConfig) { - const kind = comment.type === "Block" ? `/*${directiveText}*/` : `//${directiveText}`; - - problems.push(createLintingProblem({ - ruleId: null, - message: `'${kind}' has no effect because you have 'noInlineConfig' setting in ${warnInlineConfig}.`, - loc, - severity: 1 - })); - return; - } - - if (directiveText === "eslint-disable-line" && loc.start.line !== loc.end.line) { - const message = `${directiveText} comment should not span multiple lines.`; - - problems.push(createLintingProblem({ - ruleId: null, - message, - loc - })); - return; - } - - const directiveValue = directivePart.slice(match.index + directiveText.length); - - switch (directiveText) { - case "eslint-disable": - case "eslint-enable": - case "eslint-disable-next-line": - case "eslint-disable-line": { - const directiveType = directiveText.slice("eslint-".length); - const { directives, directiveProblems } = createDisableDirectives({ - type: directiveType, - value: directiveValue, - justification: justificationPart, - node: comment - }, ruleMapper, jslang, sourceCode); - - disableDirectives.push(...directives); - problems.push(...directiveProblems); - break; - } - - case "exported": - Object.assign(exportedVariables, commentParser.parseListConfig(directiveValue, comment)); - break; - - case "globals": - case "global": - for (const [id, { value }] of Object.entries(commentParser.parseStringConfig(directiveValue, comment))) { - let normalizedValue; - - try { - normalizedValue = ConfigOps.normalizeConfigGlobal(value); - } catch (err) { - problems.push(createLintingProblem({ - ruleId: null, - loc, - message: err.message - })); - continue; - } - - if (enabledGlobals[id]) { - enabledGlobals[id].comments.push(comment); - enabledGlobals[id].value = normalizedValue; - } else { - enabledGlobals[id] = { - comments: [comment], - value: normalizedValue - }; - } - } - break; - - case "eslint": { - const parseResult = commentParser.parseJsonConfig(directiveValue); - - if (parseResult.success) { - Object.keys(parseResult.config).forEach(name => { - const rule = ruleMapper(name); - const ruleValue = parseResult.config[name]; - - if (!rule) { - problems.push(createLintingProblem({ ruleId: name, loc })); - return; - } - - if (Object.hasOwn(configuredRules, name)) { - problems.push(createLintingProblem({ - message: `Rule "${name}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`, - loc - })); - return; - } - - let ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue]; - - /* - * If the rule was already configured, inline rule configuration that - * only has severity should retain options from the config and just override the severity. - * - * Example: - * - * { - * rules: { - * curly: ["error", "multi"] - * } - * } - * - * /* eslint curly: ["warn"] * / - * - * Results in: - * - * curly: ["warn", "multi"] - */ - if ( - - /* - * If inline config for the rule has only severity - */ - ruleOptions.length === 1 && - - /* - * And the rule was already configured - */ - config.rules && Object.hasOwn(config.rules, name) - ) { - - /* - * Then use severity from the inline config and options from the provided config - */ - ruleOptions = [ - ruleOptions[0], // severity from the inline config - ...Array.isArray(config.rules[name]) ? config.rules[name].slice(1) : [] // options from the provided config - ]; - } - - try { - validator.validateRuleOptions(rule, name, ruleOptions); - } catch (err) { - - /* - * If the rule has invalid `meta.schema`, throw the error because - * this is not an invalid inline configuration but an invalid rule. - */ - if (err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA") { - throw err; - } - - problems.push(createLintingProblem({ - ruleId: name, - message: err.message, - loc - })); - - // do not apply the config, if found invalid options. - return; - } - - configuredRules[name] = ruleOptions; - }); - } else { - const problem = createLintingProblem({ - ruleId: null, - loc, - message: parseResult.error.message - }); - - problem.fatal = true; - problems.push(problem); - } - - break; - } - - // no default - } - }); - - return { - configuredRules, - enabledGlobals, - exportedVariables, - problems, - disableDirectives - }; -} - -/** - * Parses comments in file to extract disable directives. - * @param {SourceCode} sourceCode The SourceCode object to get comments from. - * @param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules - * @param {Language} language The language to use to adjust the location information - * @returns {{problems: LintMessage[], disableDirectives: DisableDirective[]}} - * A collection of the directive comments that were found, along with any problems that occurred when parsing - */ -function getDirectiveCommentsForFlatConfig(sourceCode, ruleMapper, language) { - const disableDirectives = []; - const problems = []; - - if (sourceCode.getDisableDirectives) { - const { - directives: directivesSources, - problems: directivesProblems - } = sourceCode.getDisableDirectives(); - - problems.push(...directivesProblems.map(directiveProblem => createLintingProblem({ - ...directiveProblem, - language - }))); - - directivesSources.forEach(directive => { - const { directives, directiveProblems } = createDisableDirectives(directive, ruleMapper, language, sourceCode); - - disableDirectives.push(...directives); - problems.push(...directiveProblems); - }); - } - - return { - problems, - disableDirectives - }; -} - -/** - * Normalize ECMAScript version from the initial config - * @param {Parser} parser The parser which uses this options. - * @param {number} ecmaVersion ECMAScript version from the initial config - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersion(parser, ecmaVersion) { - - if (isEspree(parser)) { - if (ecmaVersion === "latest") { - return espree.latestEcmaVersion; - } - } - - /* - * Calculate ECMAScript edition number from official year version starting with - * ES2015, which corresponds with ES6 (or a difference of 2009). - */ - return ecmaVersion >= 2015 ? ecmaVersion - 2009 : ecmaVersion; -} - -/** - * Normalize ECMAScript version from the initial config into languageOptions (year) - * format. - * @param {any} [ecmaVersion] ECMAScript version from the initial config - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersionForLanguageOptions(ecmaVersion) { - - switch (ecmaVersion) { - case 3: - return 3; - - // void 0 = no ecmaVersion specified so use the default - case 5: - case void 0: - return 5; - - default: - if (typeof ecmaVersion === "number") { - return ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009; - } - } - - /* - * We default to the latest supported ecmaVersion for everything else. - * Remember, this is for languageOptions.ecmaVersion, which sets the version - * that is used for a number of processes inside of ESLint. It's normally - * safe to assume people want the latest unless otherwise specified. - */ - return LATEST_ECMA_VERSION; -} - -const eslintEnvPattern = /\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu; - -/** - * Checks whether or not there is a comment which has "eslint-env *" in a given text. - * @param {string} text A source code text to check. - * @returns {Object|null} A result of parseListConfig() with "eslint-env *" comment. - */ -function findEslintEnv(text) { - let match, retv; - - eslintEnvPattern.lastIndex = 0; - - while ((match = eslintEnvPattern.exec(text)) !== null) { - if (match[0].endsWith("*/")) { - retv = Object.assign( - retv || {}, - commentParser.parseListConfig(commentParser.extractDirectiveComment(match[1]).directivePart) - ); - } - } - - return retv; -} - -/** - * Convert "/path/to/" to "". - * `CLIEngine#executeOnText()` method gives "/path/to/" if the filename - * was omitted because `configArray.extractConfig()` requires an absolute path. - * But the linter should pass `` to `RuleContext#filename` in that - * case. - * Also, code blocks can have their virtual filename. If the parent filename was - * ``, the virtual filename is `/0_foo.js` or something like (i.e., - * it's not an absolute path). - * @param {string} filename The filename to normalize. - * @returns {string} The normalized filename. - */ -function normalizeFilename(filename) { - const parts = filename.split(path.sep); - const index = parts.lastIndexOf(""); - - return index === -1 ? filename : parts.slice(index).join(path.sep); -} - -/** - * Normalizes the possible options for `linter.verify` and `linter.verifyAndFix` to a - * consistent shape. - * @param {VerifyOptions} providedOptions Options - * @param {ConfigData} config Config. - * @returns {Required & InternalOptions} Normalized options - */ -function normalizeVerifyOptions(providedOptions, config) { - - const linterOptions = config.linterOptions || config; - - // .noInlineConfig for eslintrc, .linterOptions.noInlineConfig for flat - const disableInlineConfig = linterOptions.noInlineConfig === true; - const ignoreInlineConfig = providedOptions.allowInlineConfig === false; - const configNameOfNoInlineConfig = config.configNameOfNoInlineConfig - ? ` (${config.configNameOfNoInlineConfig})` - : ""; - - let reportUnusedDisableDirectives = providedOptions.reportUnusedDisableDirectives; - - if (typeof reportUnusedDisableDirectives === "boolean") { - reportUnusedDisableDirectives = reportUnusedDisableDirectives ? "error" : "off"; - } - if (typeof reportUnusedDisableDirectives !== "string") { - if (typeof linterOptions.reportUnusedDisableDirectives === "boolean") { - reportUnusedDisableDirectives = linterOptions.reportUnusedDisableDirectives ? "warn" : "off"; - } else { - reportUnusedDisableDirectives = linterOptions.reportUnusedDisableDirectives === void 0 ? "off" : normalizeSeverityToString(linterOptions.reportUnusedDisableDirectives); - } - } - - let ruleFilter = providedOptions.ruleFilter; - - if (typeof ruleFilter !== "function") { - ruleFilter = () => true; - } - - return { - filename: normalizeFilename(providedOptions.filename || ""), - allowInlineConfig: !ignoreInlineConfig, - warnInlineConfig: disableInlineConfig && !ignoreInlineConfig - ? `your config${configNameOfNoInlineConfig}` - : null, - reportUnusedDisableDirectives, - disableFixes: Boolean(providedOptions.disableFixes), - stats: providedOptions.stats, - ruleFilter - }; -} - -/** - * Combines the provided parserOptions with the options from environments - * @param {Parser} parser The parser which uses this options. - * @param {ParserOptions} providedOptions The provided 'parserOptions' key in a config - * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments - * @returns {ParserOptions} Resulting parser options after merge - */ -function resolveParserOptions(parser, providedOptions, enabledEnvironments) { - - const parserOptionsFromEnv = enabledEnvironments - .filter(env => env.parserOptions) - .reduce((parserOptions, env) => merge(parserOptions, env.parserOptions), {}); - const mergedParserOptions = merge(parserOptionsFromEnv, providedOptions || {}); - const isModule = mergedParserOptions.sourceType === "module"; - - if (isModule) { - - /* - * can't have global return inside of modules - * TODO: espree validate parserOptions.globalReturn when sourceType is setting to module.(@aladdin-add) - */ - mergedParserOptions.ecmaFeatures = Object.assign({}, mergedParserOptions.ecmaFeatures, { globalReturn: false }); - } - - mergedParserOptions.ecmaVersion = normalizeEcmaVersion(parser, mergedParserOptions.ecmaVersion); - - return mergedParserOptions; -} - -/** - * Converts parserOptions to languageOptions for backwards compatibility with eslintrc. - * @param {ConfigData} config Config object. - * @param {Object} config.globals Global variable definitions. - * @param {Parser} config.parser The parser to use. - * @param {ParserOptions} config.parserOptions The parserOptions to use. - * @returns {LanguageOptions} The languageOptions equivalent. - */ -function createLanguageOptions({ globals: configuredGlobals, parser, parserOptions }) { - - const { - ecmaVersion, - sourceType - } = parserOptions; - - return { - globals: configuredGlobals, - ecmaVersion: normalizeEcmaVersionForLanguageOptions(ecmaVersion), - sourceType, - parser, - parserOptions - }; -} - -/** - * Combines the provided globals object with the globals from environments - * @param {Record} providedGlobals The 'globals' key in a config - * @param {Environment[]} enabledEnvironments The environments enabled in configuration and with inline comments - * @returns {Record} The resolved globals object - */ -function resolveGlobals(providedGlobals, enabledEnvironments) { - return Object.assign( - Object.create(null), - ...enabledEnvironments.filter(env => env.globals).map(env => env.globals), - providedGlobals - ); -} - -/** - * Store time measurements in map - * @param {number} time Time measurement - * @param {Object} timeOpts Options relating which time was measured - * @param {WeakMap} slots Linter internal slots map - * @returns {void} - */ -function storeTime(time, timeOpts, slots) { - const { type, key } = timeOpts; - - if (!slots.times) { - slots.times = { passes: [{}] }; - } - - const passIndex = slots.fixPasses; - - if (passIndex > slots.times.passes.length - 1) { - slots.times.passes.push({}); - } - - if (key) { - slots.times.passes[passIndex][type] ??= {}; - slots.times.passes[passIndex][type][key] ??= { total: 0 }; - slots.times.passes[passIndex][type][key].total += time; - } else { - slots.times.passes[passIndex][type] ??= { total: 0 }; - slots.times.passes[passIndex][type].total += time; - } -} - -/** - * Get the options for a rule (not including severity), if any - * @param {RuleConfig} ruleConfig rule configuration - * @returns {Array} of rule options, empty Array if none - */ -function getRuleOptions(ruleConfig) { - if (Array.isArray(ruleConfig)) { - return ruleConfig.slice(1); - } - return []; - -} - -/** - * Analyze scope of the given AST. - * @param {ASTNode} ast The `Program` node to analyze. - * @param {LanguageOptions} languageOptions The parser options. - * @param {Record} visitorKeys The visitor keys. - * @returns {ScopeManager} The analysis result. - */ -function analyzeScope(ast, languageOptions, visitorKeys) { - const parserOptions = languageOptions.parserOptions; - const ecmaFeatures = parserOptions.ecmaFeatures || {}; - const ecmaVersion = languageOptions.ecmaVersion || DEFAULT_ECMA_VERSION; - - return eslintScope.analyze(ast, { - ignoreEval: true, - nodejsScope: ecmaFeatures.globalReturn, - impliedStrict: ecmaFeatures.impliedStrict, - ecmaVersion: typeof ecmaVersion === "number" ? ecmaVersion : 6, - sourceType: languageOptions.sourceType || "script", - childVisitorKeys: visitorKeys || evk.KEYS, - fallback: Traverser.getKeys - }); -} - -/** - * Parses file into an AST. Moved out here because the try-catch prevents - * optimization of functions, so it's best to keep the try-catch as isolated - * as possible - * @param {VFile} file The file to parse. - * @param {Language} language The language to use. - * @param {LanguageOptions} languageOptions Options to pass to the parser - * @returns {{success: false, error: LintMessage}|{success: true, sourceCode: SourceCode}} - * An object containing the AST and parser services if parsing was successful, or the error if parsing failed - * @private - */ -function parse(file, language, languageOptions) { - - const result = language.parse(file, { languageOptions }); - - if (result.ok) { - return { - success: true, - sourceCode: language.createSourceCode(file, result, { languageOptions }) - }; - } - - // if we made it to here there was an error - return { - success: false, - errors: result.errors.map(error => ({ - ruleId: null, - nodeType: null, - fatal: true, - severity: 2, - message: `Parsing error: ${error.message}`, - line: error.line, - column: error.column - })) - }; -} - -/** - * Runs a rule, and gets its listeners - * @param {Rule} rule A rule object - * @param {Context} ruleContext The context that should be passed to the rule - * @throws {TypeError} If `rule` is not an object with a `create` method - * @throws {any} Any error during the rule's `create` - * @returns {Object} A map of selector listeners provided by the rule - */ -function createRuleListeners(rule, ruleContext) { - - if (!rule || typeof rule !== "object" || typeof rule.create !== "function") { - throw new TypeError(`Error while loading rule '${ruleContext.id}': Rule must be an object with a \`create\` method`); - } - - try { - return rule.create(ruleContext); - } catch (ex) { - ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`; - throw ex; - } -} - -/** - * Runs the given rules on the given SourceCode object - * @param {SourceCode} sourceCode A SourceCode object for the given text - * @param {Object} configuredRules The rules configuration - * @param {function(string): Rule} ruleMapper A mapper function from rule names to rules - * @param {string | undefined} parserName The name of the parser in the config - * @param {Language} language The language object used for parsing. - * @param {LanguageOptions} languageOptions The options for parsing the code. - * @param {Object} settings The settings that were enabled in the config - * @param {string} filename The reported filename of the code - * @param {boolean} disableFixes If true, it doesn't make `fix` properties. - * @param {string | undefined} cwd cwd of the cli - * @param {string} physicalFilename The full path of the file on disk without any code block information - * @param {Function} ruleFilter A predicate function to filter which rules should be executed. - * @param {boolean} stats If true, stats are collected appended to the result - * @param {WeakMap} slots InternalSlotsMap of linter - * @returns {LintMessage[]} An array of reported problems - * @throws {Error} If traversal into a node fails. - */ -function runRules( - sourceCode, configuredRules, ruleMapper, parserName, language, languageOptions, - settings, filename, disableFixes, cwd, physicalFilename, ruleFilter, - stats, slots -) { - const emitter = createEmitter(); - - // must happen first to assign all node.parent properties - const eventQueue = sourceCode.traverse(); - - /* - * Create a frozen object with the ruleContext properties and methods that are shared by all rules. - * All rule contexts will inherit from this object. This avoids the performance penalty of copying all the - * properties once for each rule. - */ - const sharedTraversalContext = Object.freeze( - { - getCwd: () => cwd, - cwd, - getFilename: () => filename, - filename, - getPhysicalFilename: () => physicalFilename || filename, - physicalFilename: physicalFilename || filename, - getSourceCode: () => sourceCode, - sourceCode, - parserOptions: { - ...languageOptions.parserOptions - }, - parserPath: parserName, - languageOptions, - settings - } - ); - - const lintingProblems = []; - - Object.keys(configuredRules).forEach(ruleId => { - const severity = ConfigOps.getRuleSeverity(configuredRules[ruleId]); - - // not load disabled rules - if (severity === 0) { - return; - } - - if (ruleFilter && !ruleFilter({ ruleId, severity })) { - return; - } - - const rule = ruleMapper(ruleId); - - if (!rule) { - lintingProblems.push(createLintingProblem({ ruleId, language })); - return; - } - - const messageIds = rule.meta && rule.meta.messages; - let reportTranslator = null; - const ruleContext = Object.freeze( - Object.assign( - Object.create(sharedTraversalContext), - { - id: ruleId, - options: getRuleOptions(configuredRules[ruleId]), - report(...args) { - - /* - * Create a report translator lazily. - * In a vast majority of cases, any given rule reports zero errors on a given - * piece of code. Creating a translator lazily avoids the performance cost of - * creating a new translator function for each rule that usually doesn't get - * called. - * - * Using lazy report translators improves end-to-end performance by about 3% - * with Node 8.4.0. - */ - if (reportTranslator === null) { - reportTranslator = createReportTranslator({ - ruleId, - severity, - sourceCode, - messageIds, - disableFixes, - language - }); - } - const problem = reportTranslator(...args); - - if (problem.fix && !(rule.meta && rule.meta.fixable)) { - throw new Error("Fixable rules must set the `meta.fixable` property to \"code\" or \"whitespace\"."); - } - if (problem.suggestions && !(rule.meta && rule.meta.hasSuggestions === true)) { - if (rule.meta && rule.meta.docs && typeof rule.meta.docs.suggestion !== "undefined") { - - // Encourage migration from the former property name. - throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."); - } - throw new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`."); - } - lintingProblems.push(problem); - } - } - ) - ); - - const ruleListenersReturn = (timing.enabled || stats) - ? timing.time(ruleId, createRuleListeners, stats)(rule, ruleContext) : createRuleListeners(rule, ruleContext); - - const ruleListeners = stats ? ruleListenersReturn.result : ruleListenersReturn; - - if (stats) { - storeTime(ruleListenersReturn.tdiff, { type: "rules", key: ruleId }, slots); - } - - /** - * Include `ruleId` in error logs - * @param {Function} ruleListener A rule method that listens for a node. - * @returns {Function} ruleListener wrapped in error handler - */ - function addRuleErrorHandler(ruleListener) { - return function ruleErrorHandler(...listenerArgs) { - try { - const ruleListenerReturn = ruleListener(...listenerArgs); - - const ruleListenerResult = stats ? ruleListenerReturn.result : ruleListenerReturn; - - if (stats) { - storeTime(ruleListenerReturn.tdiff, { type: "rules", key: ruleId }, slots); - } - - return ruleListenerResult; - } catch (e) { - e.ruleId = ruleId; - throw e; - } - }; - } - - if (typeof ruleListeners === "undefined" || ruleListeners === null) { - throw new Error(`The create() function for rule '${ruleId}' did not return an object.`); - } - - // add all the selectors from the rule as listeners - Object.keys(ruleListeners).forEach(selector => { - const ruleListener = (timing.enabled || stats) - ? timing.time(ruleId, ruleListeners[selector], stats) : ruleListeners[selector]; - - emitter.on( - selector, - addRuleErrorHandler(ruleListener) - ); - }); - }); - - const eventGenerator = new NodeEventGenerator(emitter, { - visitorKeys: sourceCode.visitorKeys ?? language.visitorKeys, - fallback: Traverser.getKeys, - matchClass: language.matchesSelectorClass ?? (() => false), - nodeTypeKey: language.nodeTypeKey - }); - - for (const step of eventQueue) { - switch (step.kind) { - case STEP_KIND_VISIT: { - try { - if (step.phase === 1) { - eventGenerator.enterNode(step.target); - } else { - eventGenerator.leaveNode(step.target); - } - } catch (err) { - err.currentNode = step.target; - throw err; - } - break; - } - - case STEP_KIND_CALL: { - emitter.emit(step.target, ...step.args); - break; - } - - default: - throw new Error(`Invalid traversal step found: "${step.type}".`); - } - - } - - return lintingProblems; -} - -/** - * Ensure the source code to be a string. - * @param {string|SourceCode} textOrSourceCode The text or source code object. - * @returns {string} The source code text. - */ -function ensureText(textOrSourceCode) { - if (typeof textOrSourceCode === "object") { - const { hasBOM, text } = textOrSourceCode; - const bom = hasBOM ? "\uFEFF" : ""; - - return bom + text; - } - - return String(textOrSourceCode); -} - -/** - * Get an environment. - * @param {LinterInternalSlots} slots The internal slots of Linter. - * @param {string} envId The environment ID to get. - * @returns {Environment|null} The environment. - */ -function getEnv(slots, envId) { - return ( - (slots.lastConfigArray && slots.lastConfigArray.pluginEnvironments.get(envId)) || - BuiltInEnvironments.get(envId) || - null - ); -} - -/** - * Get a rule. - * @param {LinterInternalSlots} slots The internal slots of Linter. - * @param {string} ruleId The rule ID to get. - * @returns {Rule|null} The rule. - */ -function getRule(slots, ruleId) { - return ( - (slots.lastConfigArray && slots.lastConfigArray.pluginRules.get(ruleId)) || - slots.ruleMap.get(ruleId) - ); -} - -/** - * Normalize the value of the cwd - * @param {string | undefined} cwd raw value of the cwd, path to a directory that should be considered as the current working directory, can be undefined. - * @returns {string | undefined} normalized cwd - */ -function normalizeCwd(cwd) { - if (cwd) { - return cwd; - } - if (typeof process === "object") { - return process.cwd(); - } - - // It's more explicit to assign the undefined - // eslint-disable-next-line no-undefined -- Consistently returning a value - return undefined; -} - -/** - * The map to store private data. - * @type {WeakMap} - */ -const internalSlotsMap = new WeakMap(); - -/** - * Throws an error when the given linter is in flat config mode. - * @param {Linter} linter The linter to check. - * @returns {void} - * @throws {Error} If the linter is in flat config mode. - */ -function assertEslintrcConfig(linter) { - const { configType } = internalSlotsMap.get(linter); - - if (configType === "flat") { - throw new Error("This method cannot be used with flat config. Add your entries directly into the config array."); - } -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Object that is responsible for verifying JavaScript text - * @name Linter - */ -class Linter { - - /** - * Initialize the Linter. - * @param {Object} [config] the config object - * @param {string} [config.cwd] path to a directory that should be considered as the current working directory, can be undefined. - * @param {Array} [config.flags] the feature flags to enable. - * @param {"flat"|"eslintrc"} [config.configType="flat"] the type of config used. - */ - constructor({ cwd, configType = "flat", flags = [] } = {}) { - - flags.forEach(flag => { - if (inactiveFlags.has(flag)) { - throw new Error(`The flag '${flag}' is inactive: ${inactiveFlags.get(flag)}`); - } - - if (!activeFlags.has(flag)) { - throw new Error(`Unknown flag '${flag}'.`); - } - }); - - internalSlotsMap.set(this, { - cwd: normalizeCwd(cwd), - flags, - lastConfigArray: null, - lastSourceCode: null, - lastSuppressedMessages: [], - configType, // TODO: Remove after flat config conversion - parserMap: new Map([["espree", espree]]), - ruleMap: new Rules() - }); - - this.version = pkg.version; - } - - /** - * Getter for package version. - * @static - * @returns {string} The version from package.json. - */ - static get version() { - return pkg.version; - } - - /** - * Indicates if the given feature flag is enabled for this instance. - * @param {string} flag The feature flag to check. - * @returns {boolean} `true` if the feature flag is enabled, `false` if not. - */ - hasFlag(flag) { - return internalSlotsMap.get(this).flags.includes(flag); - } - - /** - * Same as linter.verify, except without support for processors. - * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. - * @param {ConfigData} providedConfig An ESLintConfig instance to configure everything. - * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. - * @throws {Error} If during rule execution. - * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. - */ - _verifyWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { - const slots = internalSlotsMap.get(this); - const config = providedConfig || {}; - const options = normalizeVerifyOptions(providedOptions, config); - let text; - - // evaluate arguments - if (typeof textOrSourceCode === "string") { - slots.lastSourceCode = null; - text = textOrSourceCode; - } else { - slots.lastSourceCode = textOrSourceCode; - text = textOrSourceCode.text; - } - - // Resolve parser. - let parserName = DEFAULT_PARSER_NAME; - let parser = espree; - - if (typeof config.parser === "object" && config.parser !== null) { - parserName = config.parser.filePath; - parser = config.parser.definition; - } else if (typeof config.parser === "string") { - if (!slots.parserMap.has(config.parser)) { - return [{ - ruleId: null, - fatal: true, - severity: 2, - message: `Configured parser '${config.parser}' was not found.`, - line: 0, - column: 0, - nodeType: null - }]; - } - parserName = config.parser; - parser = slots.parserMap.get(config.parser); - } - - // search and apply "eslint-env *". - const envInFile = options.allowInlineConfig && !options.warnInlineConfig - ? findEslintEnv(text) - : {}; - const resolvedEnvConfig = Object.assign({ builtin: true }, config.env, envInFile); - const enabledEnvs = Object.keys(resolvedEnvConfig) - .filter(envName => resolvedEnvConfig[envName]) - .map(envName => getEnv(slots, envName)) - .filter(env => env); - - const parserOptions = resolveParserOptions(parser, config.parserOptions || {}, enabledEnvs); - const configuredGlobals = resolveGlobals(config.globals || {}, enabledEnvs); - const settings = config.settings || {}; - const languageOptions = createLanguageOptions({ - globals: config.globals, - parser, - parserOptions - }); - const file = new VFile(options.filename, text, { - physicalPath: providedOptions.physicalFilename - }); - - if (!slots.lastSourceCode) { - let t; - - if (options.stats) { - t = startTime(); - } - - const parseResult = parse( - file, - jslang, - languageOptions - ); - - if (options.stats) { - const time = endTime(t); - const timeOpts = { type: "parse" }; - - storeTime(time, timeOpts, slots); - } - - if (!parseResult.success) { - return parseResult.errors; - } - - slots.lastSourceCode = parseResult.sourceCode; - } else { - - /* - * If the given source code object as the first argument does not have scopeManager, analyze the scope. - * This is for backward compatibility (SourceCode is frozen so it cannot rebind). - */ - if (!slots.lastSourceCode.scopeManager) { - slots.lastSourceCode = new SourceCode({ - text: slots.lastSourceCode.text, - ast: slots.lastSourceCode.ast, - hasBOM: slots.lastSourceCode.hasBOM, - parserServices: slots.lastSourceCode.parserServices, - visitorKeys: slots.lastSourceCode.visitorKeys, - scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions) - }); - } - } - - const sourceCode = slots.lastSourceCode; - const commentDirectives = options.allowInlineConfig - ? getDirectiveComments(sourceCode, ruleId => getRule(slots, ruleId), options.warnInlineConfig, config) - : { configuredRules: {}, enabledGlobals: {}, exportedVariables: {}, problems: [], disableDirectives: [] }; - - addDeclaredGlobals( - sourceCode.scopeManager.scopes[0], - configuredGlobals, - { exportedVariables: commentDirectives.exportedVariables, enabledGlobals: commentDirectives.enabledGlobals } - ); - - const configuredRules = Object.assign({}, config.rules, commentDirectives.configuredRules); - - let lintingProblems; - - try { - lintingProblems = runRules( - sourceCode, - configuredRules, - ruleId => getRule(slots, ruleId), - parserName, - jslang, - languageOptions, - settings, - options.filename, - options.disableFixes, - slots.cwd, - providedOptions.physicalFilename, - null, - options.stats, - slots - ); - } catch (err) { - err.message += `\nOccurred while linting ${options.filename}`; - debug("An error occurred while traversing"); - debug("Filename:", options.filename); - if (err.currentNode) { - const { line } = sourceCode.getLoc(err.currentNode).start; - - debug("Line:", line); - err.message += `:${line}`; - } - debug("Parser Options:", parserOptions); - debug("Parser Path:", parserName); - debug("Settings:", settings); - - if (err.ruleId) { - err.message += `\nRule: "${err.ruleId}"`; - } - - throw err; - } - - return applyDisableDirectives({ - language: jslang, - sourceCode, - directives: commentDirectives.disableDirectives, - disableFixes: options.disableFixes, - problems: lintingProblems - .concat(commentDirectives.problems) - .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column), - reportUnusedDisableDirectives: options.reportUnusedDisableDirectives - }); - } - - /** - * Verifies the text against the rules specified by the second argument. - * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. - * @param {ConfigData|ConfigArray} config An ESLintConfig instance to configure everything. - * @param {(string|(VerifyOptions&ProcessorOptions))} [filenameOrOptions] The optional filename of the file being checked. - * If this is not set, the filename will default to '' in the rule context. If - * an object, then it has "filename", "allowInlineConfig", and some properties. - * @returns {LintMessage[]} The results as an array of messages or an empty array if no messages. - */ - verify(textOrSourceCode, config, filenameOrOptions) { - debug("Verify"); - - const { configType, cwd } = internalSlotsMap.get(this); - - const options = typeof filenameOrOptions === "string" - ? { filename: filenameOrOptions } - : filenameOrOptions || {}; - - const configToUse = config ?? {}; - - if (configType !== "eslintrc") { - - /* - * Because of how Webpack packages up the files, we can't - * compare directly to `FlatConfigArray` using `instanceof` - * because it's not the same `FlatConfigArray` as in the tests. - * So, we work around it by assuming an array is, in fact, a - * `FlatConfigArray` if it has a `getConfig()` method. - */ - let configArray = configToUse; - - if (!Array.isArray(configToUse) || typeof configToUse.getConfig !== "function") { - configArray = new FlatConfigArray(configToUse, { basePath: cwd }); - configArray.normalizeSync(); - } - - return this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(textOrSourceCode, configArray, options, true)); - } - - if (typeof configToUse.extractConfig === "function") { - return this._distinguishSuppressedMessages(this._verifyWithConfigArray(textOrSourceCode, configToUse, options)); - } - - /* - * If we get to here, it means `config` is just an object rather - * than a config array so we can go right into linting. - */ - - /* - * `Linter` doesn't support `overrides` property in configuration. - * So we cannot apply multiple processors. - */ - if (options.preprocess || options.postprocess) { - return this._distinguishSuppressedMessages(this._verifyWithProcessor(textOrSourceCode, configToUse, options)); - } - return this._distinguishSuppressedMessages(this._verifyWithoutProcessors(textOrSourceCode, configToUse, options)); - } - - /** - * Verify with a processor. - * @param {string|SourceCode} textOrSourceCode The source code. - * @param {FlatConfig} config The config array. - * @param {VerifyOptions&ProcessorOptions} options The options. - * @param {FlatConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively. - * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. - */ - _verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options, configForRecursive) { - const filename = options.filename || ""; - const filenameToExpose = normalizeFilename(filename); - const physicalFilename = options.physicalFilename || filenameToExpose; - const text = ensureText(textOrSourceCode); - const preprocess = options.preprocess || (rawText => [rawText]); - const postprocess = options.postprocess || (messagesList => messagesList.flat()); - const filterCodeBlock = - options.filterCodeBlock || - (blockFilename => blockFilename.endsWith(".js")); - const originalExtname = path.extname(filename); - - let blocks; - - try { - blocks = preprocess(text, filenameToExpose); - } catch (ex) { - - // If the message includes a leading line number, strip it: - const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; - - debug("%s\n%s", message, ex.stack); - - return [ - { - ruleId: null, - fatal: true, - severity: 2, - message, - line: ex.lineNumber, - column: ex.column, - nodeType: null - } - ]; - } - - const messageLists = blocks.map((block, i) => { - debug("A code block was found: %o", block.filename || "(unnamed)"); - - // Keep the legacy behavior. - if (typeof block === "string") { - return this._verifyWithFlatConfigArrayAndWithoutProcessors(block, config, options); - } - - const blockText = block.text; - const blockName = path.join(filename, `${i}_${block.filename}`); - - // Skip this block if filtered. - if (!filterCodeBlock(blockName, blockText)) { - debug("This code block was skipped."); - return []; - } - - // Resolve configuration again if the file content or extension was changed. - if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) { - debug("Resolving configuration again because the file content or extension was changed."); - return this._verifyWithFlatConfigArray( - blockText, - configForRecursive, - { ...options, filename: blockName, physicalFilename } - ); - } - - // Does lint. - return this._verifyWithFlatConfigArrayAndWithoutProcessors( - blockText, - config, - { ...options, filename: blockName, physicalFilename } - ); - }); - - return postprocess(messageLists, filenameToExpose); - } - - /** - * Same as linter.verify, except without support for processors. - * @param {string|SourceCode} textOrSourceCode The text to parse or a SourceCode object. - * @param {FlatConfig} providedConfig An ESLintConfig instance to configure everything. - * @param {VerifyOptions} [providedOptions] The optional filename of the file being checked. - * @throws {Error} If during rule execution. - * @returns {(LintMessage|SuppressedLintMessage)[]} The results as an array of messages or an empty array if no messages. - */ - _verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, providedConfig, providedOptions) { - const slots = internalSlotsMap.get(this); - const config = providedConfig || {}; - const options = normalizeVerifyOptions(providedOptions, config); - let text; - - // evaluate arguments - if (typeof textOrSourceCode === "string") { - slots.lastSourceCode = null; - text = textOrSourceCode; - } else { - slots.lastSourceCode = textOrSourceCode; - text = textOrSourceCode.text; - } - - const languageOptions = config.languageOptions; - - languageOptions.ecmaVersion = normalizeEcmaVersionForLanguageOptions( - languageOptions.ecmaVersion - ); - - // double check that there is a parser to avoid mysterious error messages - if (!languageOptions.parser) { - throw new TypeError(`No parser specified for ${options.filename}`); - } - - // Espree expects this information to be passed in - if (isEspree(languageOptions.parser)) { - const parserOptions = languageOptions.parserOptions; - - if (languageOptions.sourceType) { - - parserOptions.sourceType = languageOptions.sourceType; - - if ( - parserOptions.sourceType === "module" && - parserOptions.ecmaFeatures && - parserOptions.ecmaFeatures.globalReturn - ) { - parserOptions.ecmaFeatures.globalReturn = false; - } - } - } - - const settings = config.settings || {}; - const file = new VFile(options.filename, text, { - physicalPath: providedOptions.physicalFilename - }); - - if (!slots.lastSourceCode) { - let t; - - if (options.stats) { - t = startTime(); - } - - const parseResult = parse( - file, - config.language, - languageOptions - ); - - if (options.stats) { - const time = endTime(t); - - storeTime(time, { type: "parse" }, slots); - } - - if (!parseResult.success) { - return parseResult.errors; - } - - slots.lastSourceCode = parseResult.sourceCode; - } else { - - /* - * If the given source code object as the first argument does not have scopeManager, analyze the scope. - * This is for backward compatibility (SourceCode is frozen so it cannot rebind). - * - * We check explicitly for `null` to ensure that this is a JS-flavored language. - * For non-JS languages we don't want to do this. - * - * TODO: Remove this check when we stop exporting the `SourceCode` object. - */ - if (slots.lastSourceCode.scopeManager === null) { - slots.lastSourceCode = new SourceCode({ - text: slots.lastSourceCode.text, - ast: slots.lastSourceCode.ast, - hasBOM: slots.lastSourceCode.hasBOM, - parserServices: slots.lastSourceCode.parserServices, - visitorKeys: slots.lastSourceCode.visitorKeys, - scopeManager: analyzeScope(slots.lastSourceCode.ast, languageOptions) - }); - } - } - - const sourceCode = slots.lastSourceCode; - - /* - * Make adjustments based on the language options. For JavaScript, - * this is primarily about adding variables into the global scope - * to account for ecmaVersion and configured globals. - */ - sourceCode.applyLanguageOptions?.(languageOptions); - - const mergedInlineConfig = { - rules: {} - }; - const inlineConfigProblems = []; - - /* - * Inline config can be either enabled or disabled. If disabled, it's possible - * to detect the inline config and emit a warning (though this is not required). - * So we first check to see if inline config is allowed at all, and if so, we - * need to check if it's a warning or not. - */ - if (options.allowInlineConfig) { - - // if inline config should warn then add the warnings - if (options.warnInlineConfig) { - if (sourceCode.getInlineConfigNodes) { - sourceCode.getInlineConfigNodes().forEach(node => { - - const loc = sourceCode.getLoc(node); - const range = sourceCode.getRange(node); - - inlineConfigProblems.push(createLintingProblem({ - ruleId: null, - message: `'${sourceCode.text.slice(range[0], range[1])}' has no effect because you have 'noInlineConfig' setting in ${options.warnInlineConfig}.`, - loc, - severity: 1, - language: config.language - })); - - }); - } - } else { - const inlineConfigResult = sourceCode.applyInlineConfig?.(); - - if (inlineConfigResult) { - inlineConfigProblems.push( - ...inlineConfigResult.problems - .map(problem => createLintingProblem({ ...problem, language: config.language })) - .map(problem => { - problem.fatal = true; - return problem; - }) - ); - - // next we need to verify information about the specified rules - const ruleValidator = new RuleValidator(); - - for (const { config: inlineConfig, loc } of inlineConfigResult.configs) { - - Object.keys(inlineConfig.rules).forEach(ruleId => { - const rule = getRuleFromConfig(ruleId, config); - const ruleValue = inlineConfig.rules[ruleId]; - - if (!rule) { - inlineConfigProblems.push(createLintingProblem({ - ruleId, - loc, - language: config.language - })); - return; - } - - if (Object.hasOwn(mergedInlineConfig.rules, ruleId)) { - inlineConfigProblems.push(createLintingProblem({ - message: `Rule "${ruleId}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`, - loc, - language: config.language - })); - return; - } - - try { - - let ruleOptions = Array.isArray(ruleValue) ? ruleValue : [ruleValue]; - - assertIsRuleSeverity(ruleId, ruleOptions[0]); - - /* - * If the rule was already configured, inline rule configuration that - * only has severity should retain options from the config and just override the severity. - * - * Example: - * - * { - * rules: { - * curly: ["error", "multi"] - * } - * } - * - * /* eslint curly: ["warn"] * / - * - * Results in: - * - * curly: ["warn", "multi"] - */ - - let shouldValidateOptions = true; - - if ( - - /* - * If inline config for the rule has only severity - */ - ruleOptions.length === 1 && - - /* - * And the rule was already configured - */ - config.rules && Object.hasOwn(config.rules, ruleId) - ) { - - /* - * Then use severity from the inline config and options from the provided config - */ - ruleOptions = [ - ruleOptions[0], // severity from the inline config - ...config.rules[ruleId].slice(1) // options from the provided config - ]; - - // if the rule was enabled, the options have already been validated - if (config.rules[ruleId][0] > 0) { - shouldValidateOptions = false; - } - } - - if (shouldValidateOptions) { - ruleValidator.validate({ - plugins: config.plugins, - rules: { - [ruleId]: ruleOptions - } - }); - } - - mergedInlineConfig.rules[ruleId] = ruleOptions; - } catch (err) { - - /* - * If the rule has invalid `meta.schema`, throw the error because - * this is not an invalid inline configuration but an invalid rule. - */ - if (err.code === "ESLINT_INVALID_RULE_OPTIONS_SCHEMA") { - throw err; - } - - let baseMessage = err.message.slice( - err.message.startsWith("Key \"rules\":") - ? err.message.indexOf(":", 12) + 1 - : err.message.indexOf(":") + 1 - ).trim(); - - if (err.messageTemplate) { - baseMessage += ` You passed "${ruleValue}".`; - } - - inlineConfigProblems.push(createLintingProblem({ - ruleId, - message: `Inline configuration for rule "${ruleId}" is invalid:\n\t${baseMessage}\n`, - loc, - language: config.language - })); - } - }); - } - } - } - } - - const commentDirectives = options.allowInlineConfig && !options.warnInlineConfig - ? getDirectiveCommentsForFlatConfig( - sourceCode, - ruleId => getRuleFromConfig(ruleId, config), - config.language - ) - : { problems: [], disableDirectives: [] }; - - const configuredRules = Object.assign({}, config.rules, mergedInlineConfig.rules); - - let lintingProblems; - - sourceCode.finalize?.(); - - try { - lintingProblems = runRules( - sourceCode, - configuredRules, - ruleId => getRuleFromConfig(ruleId, config), - void 0, - config.language, - languageOptions, - settings, - options.filename, - options.disableFixes, - slots.cwd, - providedOptions.physicalFilename, - options.ruleFilter, - options.stats, - slots - ); - } catch (err) { - err.message += `\nOccurred while linting ${options.filename}`; - debug("An error occurred while traversing"); - debug("Filename:", options.filename); - if (err.currentNode) { - const { line } = sourceCode.getLoc(err.currentNode).start; - - debug("Line:", line); - err.message += `:${line}`; - } - debug("Parser Options:", languageOptions.parserOptions); - - // debug("Parser Path:", parserName); - debug("Settings:", settings); - - if (err.ruleId) { - err.message += `\nRule: "${err.ruleId}"`; - } - - throw err; - } - - return applyDisableDirectives({ - language: config.language, - sourceCode, - directives: commentDirectives.disableDirectives, - disableFixes: options.disableFixes, - problems: lintingProblems - .concat(commentDirectives.problems) - .concat(inlineConfigProblems) - .sort((problemA, problemB) => problemA.line - problemB.line || problemA.column - problemB.column), - reportUnusedDisableDirectives: options.reportUnusedDisableDirectives, - ruleFilter: options.ruleFilter, - configuredRules - }); - } - - /** - * Verify a given code with `ConfigArray`. - * @param {string|SourceCode} textOrSourceCode The source code. - * @param {ConfigArray} configArray The config array. - * @param {VerifyOptions&ProcessorOptions} options The options. - * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. - */ - _verifyWithConfigArray(textOrSourceCode, configArray, options) { - debug("With ConfigArray: %s", options.filename); - - // Store the config array in order to get plugin envs and rules later. - internalSlotsMap.get(this).lastConfigArray = configArray; - - // Extract the final config for this file. - const config = configArray.extractConfig(options.filename); - const processor = - config.processor && - configArray.pluginProcessors.get(config.processor); - - // Verify. - if (processor) { - debug("Apply the processor: %o", config.processor); - const { preprocess, postprocess, supportsAutofix } = processor; - const disableFixes = options.disableFixes || !supportsAutofix; - - return this._verifyWithProcessor( - textOrSourceCode, - config, - { ...options, disableFixes, postprocess, preprocess }, - configArray - ); - } - return this._verifyWithoutProcessors(textOrSourceCode, config, options); - } - - /** - * Verify a given code with a flat config. - * @param {string|SourceCode} textOrSourceCode The source code. - * @param {FlatConfigArray} configArray The config array. - * @param {VerifyOptions&ProcessorOptions} options The options. - * @param {boolean} [firstCall=false] Indicates if this is being called directly - * from verify(). (TODO: Remove once eslintrc is removed.) - * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. - */ - _verifyWithFlatConfigArray(textOrSourceCode, configArray, options, firstCall = false) { - debug("With flat config: %s", options.filename); - - // we need a filename to match configs against - const filename = options.filename || "__placeholder__.js"; - - // Store the config array in order to get plugin envs and rules later. - internalSlotsMap.get(this).lastConfigArray = configArray; - const config = configArray.getConfig(filename); - - if (!config) { - return [ - { - ruleId: null, - severity: 1, - message: `No matching configuration found for ${filename}.`, - line: 0, - column: 0, - nodeType: null - } - ]; - } - - // Verify. - if (config.processor) { - debug("Apply the processor: %o", config.processor); - const { preprocess, postprocess, supportsAutofix } = config.processor; - const disableFixes = options.disableFixes || !supportsAutofix; - - return this._verifyWithFlatConfigArrayAndProcessor( - textOrSourceCode, - config, - { ...options, filename, disableFixes, postprocess, preprocess }, - configArray - ); - } - - // check for options-based processing - if (firstCall && (options.preprocess || options.postprocess)) { - return this._verifyWithFlatConfigArrayAndProcessor(textOrSourceCode, config, options); - } - - return this._verifyWithFlatConfigArrayAndWithoutProcessors(textOrSourceCode, config, options); - } - - /** - * Verify with a processor. - * @param {string|SourceCode} textOrSourceCode The source code. - * @param {ConfigData|ExtractedConfig} config The config array. - * @param {VerifyOptions&ProcessorOptions} options The options. - * @param {ConfigArray} [configForRecursive] The `ConfigArray` object to apply multiple processors recursively. - * @returns {(LintMessage|SuppressedLintMessage)[]} The found problems. - */ - _verifyWithProcessor(textOrSourceCode, config, options, configForRecursive) { - const filename = options.filename || ""; - const filenameToExpose = normalizeFilename(filename); - const physicalFilename = options.physicalFilename || filenameToExpose; - const text = ensureText(textOrSourceCode); - const preprocess = options.preprocess || (rawText => [rawText]); - const postprocess = options.postprocess || (messagesList => messagesList.flat()); - const filterCodeBlock = - options.filterCodeBlock || - (blockFilename => blockFilename.endsWith(".js")); - const originalExtname = path.extname(filename); - - let blocks; - - try { - blocks = preprocess(text, filenameToExpose); - } catch (ex) { - - // If the message includes a leading line number, strip it: - const message = `Preprocessing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`; - - debug("%s\n%s", message, ex.stack); - - return [ - { - ruleId: null, - fatal: true, - severity: 2, - message, - line: ex.lineNumber, - column: ex.column, - nodeType: null - } - ]; - } - - const messageLists = blocks.map((block, i) => { - debug("A code block was found: %o", block.filename || "(unnamed)"); - - // Keep the legacy behavior. - if (typeof block === "string") { - return this._verifyWithoutProcessors(block, config, options); - } - - const blockText = block.text; - const blockName = path.join(filename, `${i}_${block.filename}`); - - // Skip this block if filtered. - if (!filterCodeBlock(blockName, blockText)) { - debug("This code block was skipped."); - return []; - } - - // Resolve configuration again if the file content or extension was changed. - if (configForRecursive && (text !== blockText || path.extname(blockName) !== originalExtname)) { - debug("Resolving configuration again because the file content or extension was changed."); - return this._verifyWithConfigArray( - blockText, - configForRecursive, - { ...options, filename: blockName, physicalFilename } - ); - } - - // Does lint. - return this._verifyWithoutProcessors( - blockText, - config, - { ...options, filename: blockName, physicalFilename } - ); - }); - - return postprocess(messageLists, filenameToExpose); - } - - /** - * Given a list of reported problems, distinguish problems between normal messages and suppressed messages. - * The normal messages will be returned and the suppressed messages will be stored as lastSuppressedMessages. - * @param {Array} problems A list of reported problems. - * @returns {LintMessage[]} A list of LintMessage. - */ - _distinguishSuppressedMessages(problems) { - const messages = []; - const suppressedMessages = []; - const slots = internalSlotsMap.get(this); - - for (const problem of problems) { - if (problem.suppressions) { - suppressedMessages.push(problem); - } else { - messages.push(problem); - } - } - - slots.lastSuppressedMessages = suppressedMessages; - - return messages; - } - - /** - * Gets the SourceCode object representing the parsed source. - * @returns {SourceCode} The SourceCode object. - */ - getSourceCode() { - return internalSlotsMap.get(this).lastSourceCode; - } - - /** - * Gets the times spent on (parsing, fixing, linting) a file. - * @returns {LintTimes} The times. - */ - getTimes() { - return internalSlotsMap.get(this).times ?? { passes: [] }; - } - - /** - * Gets the number of autofix passes that were made in the last run. - * @returns {number} The number of autofix passes. - */ - getFixPassCount() { - return internalSlotsMap.get(this).fixPasses ?? 0; - } - - /** - * Gets the list of SuppressedLintMessage produced in the last running. - * @returns {SuppressedLintMessage[]} The list of SuppressedLintMessage - */ - getSuppressedMessages() { - return internalSlotsMap.get(this).lastSuppressedMessages; - } - - /** - * Defines a new linting rule. - * @param {string} ruleId A unique rule identifier - * @param {Rule} rule A rule object - * @returns {void} - */ - defineRule(ruleId, rule) { - assertEslintrcConfig(this); - internalSlotsMap.get(this).ruleMap.define(ruleId, rule); - } - - /** - * Defines many new linting rules. - * @param {Record} rulesToDefine map from unique rule identifier to rule - * @returns {void} - */ - defineRules(rulesToDefine) { - assertEslintrcConfig(this); - Object.getOwnPropertyNames(rulesToDefine).forEach(ruleId => { - this.defineRule(ruleId, rulesToDefine[ruleId]); - }); - } - - /** - * Gets an object with all loaded rules. - * @returns {Map} All loaded rules - */ - getRules() { - assertEslintrcConfig(this); - const { lastConfigArray, ruleMap } = internalSlotsMap.get(this); - - return new Map(function *() { - yield* ruleMap; - - if (lastConfigArray) { - yield* lastConfigArray.pluginRules; - } - }()); - } - - /** - * Define a new parser module - * @param {string} parserId Name of the parser - * @param {Parser} parserModule The parser object - * @returns {void} - */ - defineParser(parserId, parserModule) { - assertEslintrcConfig(this); - internalSlotsMap.get(this).parserMap.set(parserId, parserModule); - } - - /** - * Performs multiple autofix passes over the text until as many fixes as possible - * have been applied. - * @param {string} text The source text to apply fixes to. - * @param {ConfigData|ConfigArray|FlatConfigArray} config The ESLint config object to use. - * @param {VerifyOptions&ProcessorOptions&FixOptions} options The ESLint options object to use. - * @returns {{fixed:boolean,messages:LintMessage[],output:string}} The result of the fix operation as returned from the - * SourceCodeFixer. - */ - verifyAndFix(text, config, options) { - let messages, - fixedResult, - fixed = false, - passNumber = 0, - currentText = text; - const debugTextDescription = options && options.filename || `${text.slice(0, 10)}...`; - const shouldFix = options && typeof options.fix !== "undefined" ? options.fix : true; - const stats = options?.stats; - - /** - * This loop continues until one of the following is true: - * - * 1. No more fixes have been applied. - * 2. Ten passes have been made. - * - * That means anytime a fix is successfully applied, there will be another pass. - * Essentially, guaranteeing a minimum of two passes. - */ - const slots = internalSlotsMap.get(this); - - // Remove lint times from the last run. - if (stats) { - delete slots.times; - slots.fixPasses = 0; - } - - do { - passNumber++; - let tTotal; - - if (stats) { - tTotal = startTime(); - } - - debug(`Linting code for ${debugTextDescription} (pass ${passNumber})`); - messages = this.verify(currentText, config, options); - - debug(`Generating fixed text for ${debugTextDescription} (pass ${passNumber})`); - let t; - - if (stats) { - t = startTime(); - } - - fixedResult = SourceCodeFixer.applyFixes(currentText, messages, shouldFix); - - if (stats) { - - if (fixedResult.fixed) { - const time = endTime(t); - - storeTime(time, { type: "fix" }, slots); - slots.fixPasses++; - } else { - storeTime(0, { type: "fix" }, slots); - } - } - - /* - * stop if there are any syntax errors. - * 'fixedResult.output' is a empty string. - */ - if (messages.length === 1 && messages[0].fatal) { - break; - } - - // keep track if any fixes were ever applied - important for return value - fixed = fixed || fixedResult.fixed; - - // update to use the fixed output instead of the original text - currentText = fixedResult.output; - - if (stats) { - tTotal = endTime(tTotal); - const passIndex = slots.times.passes.length - 1; - - slots.times.passes[passIndex].total = tTotal; - } - - } while ( - fixedResult.fixed && - passNumber < MAX_AUTOFIX_PASSES - ); - - /* - * If the last result had fixes, we need to lint again to be sure we have - * the most up-to-date information. - */ - if (fixedResult.fixed) { - let tTotal; - - if (stats) { - tTotal = startTime(); - } - - fixedResult.messages = this.verify(currentText, config, options); - - if (stats) { - storeTime(0, { type: "fix" }, slots); - slots.times.passes.at(-1).total = endTime(tTotal); - } - } - - // ensure the last result properly reflects if fixes were done - fixedResult.fixed = fixed; - fixedResult.output = currentText; - - return fixedResult; - } -} - -module.exports = { - Linter, - - /** - * Get the internal slots of a given Linter instance for tests. - * @param {Linter} instance The Linter instance to get. - * @returns {LinterInternalSlots} The internal slots. - */ - getLinterInternalSlots(instance) { - return internalSlotsMap.get(instance); - } -}; diff --git a/graphql/node_modules/eslint/lib/linter/node-event-generator.js b/graphql/node_modules/eslint/lib/linter/node-event-generator.js deleted file mode 100644 index 0eb2f8dc..00000000 --- a/graphql/node_modules/eslint/lib/linter/node-event-generator.js +++ /dev/null @@ -1,352 +0,0 @@ -/** - * @fileoverview The event generator for AST nodes. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const esquery = require("esquery"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * An object describing an AST selector - * @typedef {Object} ASTSelector - * @property {string} rawSelector The string that was parsed into this selector - * @property {boolean} isExit `true` if this should be emitted when exiting the node rather than when entering - * @property {Object} parsedSelector An object (from esquery) describing the matching behavior of the selector - * @property {string[]|null} listenerTypes A list of node types that could possibly cause the selector to match, - * or `null` if all node types could cause a match - * @property {number} attributeCount The total number of classes, pseudo-classes, and attribute queries in this selector - * @property {number} identifierCount The total number of identifier queries in this selector - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Computes the union of one or more arrays - * @param {...any[]} arrays One or more arrays to union - * @returns {any[]} The union of the input arrays - */ -function union(...arrays) { - return [...new Set(arrays.flat())]; -} - -/** - * Computes the intersection of one or more arrays - * @param {...any[]} arrays One or more arrays to intersect - * @returns {any[]} The intersection of the input arrays - */ -function intersection(...arrays) { - if (arrays.length === 0) { - return []; - } - - let result = [...new Set(arrays[0])]; - - for (const array of arrays.slice(1)) { - result = result.filter(x => array.includes(x)); - } - return result; -} - -/** - * Gets the possible types of a selector - * @param {Object} parsedSelector An object (from esquery) describing the matching behavior of the selector - * @returns {string[]|null} The node types that could possibly trigger this selector, or `null` if all node types could trigger it - */ -function getPossibleTypes(parsedSelector) { - switch (parsedSelector.type) { - case "identifier": - return [parsedSelector.value]; - - case "matches": { - const typesForComponents = parsedSelector.selectors.map(getPossibleTypes); - - if (typesForComponents.every(Boolean)) { - return union(...typesForComponents); - } - return null; - } - - case "compound": { - const typesForComponents = parsedSelector.selectors.map(getPossibleTypes).filter(typesForComponent => typesForComponent); - - // If all of the components could match any type, then the compound could also match any type. - if (!typesForComponents.length) { - return null; - } - - /* - * If at least one of the components could only match a particular type, the compound could only match - * the intersection of those types. - */ - return intersection(...typesForComponents); - } - - case "child": - case "descendant": - case "sibling": - case "adjacent": - return getPossibleTypes(parsedSelector.right); - - case "class": - if (parsedSelector.name === "function") { - return ["FunctionDeclaration", "FunctionExpression", "ArrowFunctionExpression"]; - } - - return null; - - default: - return null; - - } -} - -/** - * Counts the number of class, pseudo-class, and attribute queries in this selector - * @param {Object} parsedSelector An object (from esquery) describing the selector's matching behavior - * @returns {number} The number of class, pseudo-class, and attribute queries in this selector - */ -function countClassAttributes(parsedSelector) { - switch (parsedSelector.type) { - case "child": - case "descendant": - case "sibling": - case "adjacent": - return countClassAttributes(parsedSelector.left) + countClassAttributes(parsedSelector.right); - - case "compound": - case "not": - case "matches": - return parsedSelector.selectors.reduce((sum, childSelector) => sum + countClassAttributes(childSelector), 0); - - case "attribute": - case "field": - case "nth-child": - case "nth-last-child": - return 1; - - default: - return 0; - } -} - -/** - * Counts the number of identifier queries in this selector - * @param {Object} parsedSelector An object (from esquery) describing the selector's matching behavior - * @returns {number} The number of identifier queries - */ -function countIdentifiers(parsedSelector) { - switch (parsedSelector.type) { - case "child": - case "descendant": - case "sibling": - case "adjacent": - return countIdentifiers(parsedSelector.left) + countIdentifiers(parsedSelector.right); - - case "compound": - case "not": - case "matches": - return parsedSelector.selectors.reduce((sum, childSelector) => sum + countIdentifiers(childSelector), 0); - - case "identifier": - return 1; - - default: - return 0; - } -} - -/** - * Compares the specificity of two selector objects, with CSS-like rules. - * @param {ASTSelector} selectorA An AST selector descriptor - * @param {ASTSelector} selectorB Another AST selector descriptor - * @returns {number} - * a value less than 0 if selectorA is less specific than selectorB - * a value greater than 0 if selectorA is more specific than selectorB - * a value less than 0 if selectorA and selectorB have the same specificity, and selectorA <= selectorB alphabetically - * a value greater than 0 if selectorA and selectorB have the same specificity, and selectorA > selectorB alphabetically - */ -function compareSpecificity(selectorA, selectorB) { - return selectorA.attributeCount - selectorB.attributeCount || - selectorA.identifierCount - selectorB.identifierCount || - (selectorA.rawSelector <= selectorB.rawSelector ? -1 : 1); -} - -/** - * Parses a raw selector string, and throws a useful error if parsing fails. - * @param {string} rawSelector A raw AST selector - * @returns {Object} An object (from esquery) describing the matching behavior of this selector - * @throws {Error} An error if the selector is invalid - */ -function tryParseSelector(rawSelector) { - try { - return esquery.parse(rawSelector.replace(/:exit$/u, "")); - } catch (err) { - if (err.location && err.location.start && typeof err.location.start.offset === "number") { - throw new SyntaxError(`Syntax error in selector "${rawSelector}" at position ${err.location.start.offset}: ${err.message}`); - } - throw err; - } -} - -const selectorCache = new Map(); - -/** - * Parses a raw selector string, and returns the parsed selector along with specificity and type information. - * @param {string} rawSelector A raw AST selector - * @returns {ASTSelector} A selector descriptor - */ -function parseSelector(rawSelector) { - if (selectorCache.has(rawSelector)) { - return selectorCache.get(rawSelector); - } - - const parsedSelector = tryParseSelector(rawSelector); - - const result = { - rawSelector, - isExit: rawSelector.endsWith(":exit"), - parsedSelector, - listenerTypes: getPossibleTypes(parsedSelector), - attributeCount: countClassAttributes(parsedSelector), - identifierCount: countIdentifiers(parsedSelector) - }; - - selectorCache.set(rawSelector, result); - return result; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The event generator for AST nodes. - * This implements below interface. - * - * ```ts - * interface EventGenerator { - * emitter: SafeEmitter; - * enterNode(node: ASTNode): void; - * leaveNode(node: ASTNode): void; - * } - * ``` - */ -class NodeEventGenerator { - - /** - * @param {SafeEmitter} emitter - * An SafeEmitter which is the destination of events. This emitter must already - * have registered listeners for all of the events that it needs to listen for. - * (See lib/linter/safe-emitter.js for more details on `SafeEmitter`.) - * @param {ESQueryOptions} esqueryOptions `esquery` options for traversing custom nodes. - * @returns {NodeEventGenerator} new instance - */ - constructor(emitter, esqueryOptions) { - this.emitter = emitter; - this.esqueryOptions = esqueryOptions; - this.currentAncestry = []; - this.enterSelectorsByNodeType = new Map(); - this.exitSelectorsByNodeType = new Map(); - this.anyTypeEnterSelectors = []; - this.anyTypeExitSelectors = []; - - emitter.eventNames().forEach(rawSelector => { - const selector = parseSelector(rawSelector); - - if (selector.listenerTypes) { - const typeMap = selector.isExit ? this.exitSelectorsByNodeType : this.enterSelectorsByNodeType; - - selector.listenerTypes.forEach(nodeType => { - if (!typeMap.has(nodeType)) { - typeMap.set(nodeType, []); - } - typeMap.get(nodeType).push(selector); - }); - return; - } - const selectors = selector.isExit ? this.anyTypeExitSelectors : this.anyTypeEnterSelectors; - - selectors.push(selector); - }); - - this.anyTypeEnterSelectors.sort(compareSpecificity); - this.anyTypeExitSelectors.sort(compareSpecificity); - this.enterSelectorsByNodeType.forEach(selectorList => selectorList.sort(compareSpecificity)); - this.exitSelectorsByNodeType.forEach(selectorList => selectorList.sort(compareSpecificity)); - } - - /** - * Checks a selector against a node, and emits it if it matches - * @param {ASTNode} node The node to check - * @param {ASTSelector} selector An AST selector descriptor - * @returns {void} - */ - applySelector(node, selector) { - if (esquery.matches(node, selector.parsedSelector, this.currentAncestry, this.esqueryOptions)) { - this.emitter.emit(selector.rawSelector, node); - } - } - - /** - * Applies all appropriate selectors to a node, in specificity order - * @param {ASTNode} node The node to check - * @param {boolean} isExit `false` if the node is currently being entered, `true` if it's currently being exited - * @returns {void} - */ - applySelectors(node, isExit) { - const selectorsByNodeType = (isExit ? this.exitSelectorsByNodeType : this.enterSelectorsByNodeType).get(node.type) || []; - const anyTypeSelectors = isExit ? this.anyTypeExitSelectors : this.anyTypeEnterSelectors; - - /* - * selectorsByNodeType and anyTypeSelectors were already sorted by specificity in the constructor. - * Iterate through each of them, applying selectors in the right order. - */ - let selectorsByTypeIndex = 0; - let anyTypeSelectorsIndex = 0; - - while (selectorsByTypeIndex < selectorsByNodeType.length || anyTypeSelectorsIndex < anyTypeSelectors.length) { - if ( - selectorsByTypeIndex >= selectorsByNodeType.length || - anyTypeSelectorsIndex < anyTypeSelectors.length && - compareSpecificity(anyTypeSelectors[anyTypeSelectorsIndex], selectorsByNodeType[selectorsByTypeIndex]) < 0 - ) { - this.applySelector(node, anyTypeSelectors[anyTypeSelectorsIndex++]); - } else { - this.applySelector(node, selectorsByNodeType[selectorsByTypeIndex++]); - } - } - } - - /** - * Emits an event of entering AST node. - * @param {ASTNode} node A node which was entered. - * @returns {void} - */ - enterNode(node) { - this.applySelectors(node, false); - this.currentAncestry.unshift(node); - } - - /** - * Emits an event of leaving AST node. - * @param {ASTNode} node A node which was left. - * @returns {void} - */ - leaveNode(node) { - this.currentAncestry.shift(); - this.applySelectors(node, true); - } -} - -module.exports = NodeEventGenerator; diff --git a/graphql/node_modules/eslint/lib/linter/report-translator.js b/graphql/node_modules/eslint/lib/linter/report-translator.js deleted file mode 100644 index 0b81d783..00000000 --- a/graphql/node_modules/eslint/lib/linter/report-translator.js +++ /dev/null @@ -1,376 +0,0 @@ -/** - * @fileoverview A helper that translates context.report() calls from the rule API into generic problem objects - * @author Teddy Katz - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const assert = require("node:assert"); -const { RuleFixer } = require("./rule-fixer"); -const { interpolate } = require("./interpolate"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").LintMessage} LintMessage */ - -/** - * An error message description - * @typedef {Object} MessageDescriptor - * @property {ASTNode} [node] The reported node - * @property {Location} loc The location of the problem. - * @property {string} message The problem message. - * @property {Object} [data] Optional data to use to fill in placeholders in the - * message. - * @property {Function} [fix] The function to call that creates a fix command. - * @property {Array<{desc?: string, messageId?: string, fix: Function}>} suggest Suggestion descriptions and functions to create a the associated fixes. - */ - -//------------------------------------------------------------------------------ -// Module Definition -//------------------------------------------------------------------------------ - - -/** - * Translates a multi-argument context.report() call into a single object argument call - * @param {...*} args A list of arguments passed to `context.report` - * @returns {MessageDescriptor} A normalized object containing report information - */ -function normalizeMultiArgReportCall(...args) { - - // If there is one argument, it is considered to be a new-style call already. - if (args.length === 1) { - - // Shallow clone the object to avoid surprises if reusing the descriptor - return Object.assign({}, args[0]); - } - - // If the second argument is a string, the arguments are interpreted as [node, message, data, fix]. - if (typeof args[1] === "string") { - return { - node: args[0], - message: args[1], - data: args[2], - fix: args[3] - }; - } - - // Otherwise, the arguments are interpreted as [node, loc, message, data, fix]. - return { - node: args[0], - loc: args[1], - message: args[2], - data: args[3], - fix: args[4] - }; -} - -/** - * Asserts that either a loc or a node was provided, and the node is valid if it was provided. - * @param {MessageDescriptor} descriptor A descriptor to validate - * @returns {void} - * @throws AssertionError if neither a node nor a loc was provided, or if the node is not an object - */ -function assertValidNodeInfo(descriptor) { - if (descriptor.node) { - assert(typeof descriptor.node === "object", "Node must be an object"); - } else { - assert(descriptor.loc, "Node must be provided when reporting error if location is not provided"); - } -} - -/** - * Normalizes a MessageDescriptor to always have a `loc` with `start` and `end` properties - * @param {MessageDescriptor} descriptor A descriptor for the report from a rule. - * @returns {{start: Location, end: (Location|null)}} An updated location that infers the `start` and `end` properties - * from the `node` of the original descriptor, or infers the `start` from the `loc` of the original descriptor. - */ -function normalizeReportLoc(descriptor) { - if (descriptor.loc.start) { - return descriptor.loc; - } - return { start: descriptor.loc, end: null }; -} - -/** - * Clones the given fix object. - * @param {Fix|null} fix The fix to clone. - * @returns {Fix|null} Deep cloned fix object or `null` if `null` or `undefined` was passed in. - */ -function cloneFix(fix) { - if (!fix) { - return null; - } - - return { - range: [fix.range[0], fix.range[1]], - text: fix.text - }; -} - -/** - * Check that a fix has a valid range. - * @param {Fix|null} fix The fix to validate. - * @returns {void} - */ -function assertValidFix(fix) { - if (fix) { - assert(fix.range && typeof fix.range[0] === "number" && typeof fix.range[1] === "number", `Fix has invalid range: ${JSON.stringify(fix, null, 2)}`); - } -} - -/** - * Compares items in a fixes array by range. - * @param {Fix} a The first message. - * @param {Fix} b The second message. - * @returns {int} -1 if a comes before b, 1 if a comes after b, 0 if equal. - * @private - */ -function compareFixesByRange(a, b) { - return a.range[0] - b.range[0] || a.range[1] - b.range[1]; -} - -/** - * Merges the given fixes array into one. - * @param {Fix[]} fixes The fixes to merge. - * @param {SourceCode} sourceCode The source code object to get the text between fixes. - * @returns {{text: string, range: number[]}} The merged fixes - */ -function mergeFixes(fixes, sourceCode) { - for (const fix of fixes) { - assertValidFix(fix); - } - - if (fixes.length === 0) { - return null; - } - if (fixes.length === 1) { - return cloneFix(fixes[0]); - } - - fixes.sort(compareFixesByRange); - - const originalText = sourceCode.text; - const start = fixes[0].range[0]; - const end = fixes.at(-1).range[1]; - let text = ""; - let lastPos = Number.MIN_SAFE_INTEGER; - - for (const fix of fixes) { - assert(fix.range[0] >= lastPos, "Fix objects must not be overlapped in a report."); - - if (fix.range[0] >= 0) { - text += originalText.slice(Math.max(0, start, lastPos), fix.range[0]); - } - text += fix.text; - lastPos = fix.range[1]; - } - text += originalText.slice(Math.max(0, start, lastPos), end); - - return { range: [start, end], text }; -} - -/** - * Gets one fix object from the given descriptor. - * If the descriptor retrieves multiple fixes, this merges those to one. - * @param {MessageDescriptor} descriptor The report descriptor. - * @param {SourceCode} sourceCode The source code object to get text between fixes. - * @returns {({text: string, range: number[]}|null)} The fix for the descriptor - */ -function normalizeFixes(descriptor, sourceCode) { - if (typeof descriptor.fix !== "function") { - return null; - } - - const ruleFixer = new RuleFixer({ sourceCode }); - - // @type {null | Fix | Fix[] | IterableIterator} - const fix = descriptor.fix(ruleFixer); - - // Merge to one. - if (fix && Symbol.iterator in fix) { - return mergeFixes(Array.from(fix), sourceCode); - } - - assertValidFix(fix); - return cloneFix(fix); -} - -/** - * Gets an array of suggestion objects from the given descriptor. - * @param {MessageDescriptor} descriptor The report descriptor. - * @param {SourceCode} sourceCode The source code object to get text between fixes. - * @param {Object} messages Object of meta messages for the rule. - * @returns {Array} The suggestions for the descriptor - */ -function mapSuggestions(descriptor, sourceCode, messages) { - if (!descriptor.suggest || !Array.isArray(descriptor.suggest)) { - return []; - } - - return descriptor.suggest - .map(suggestInfo => { - const computedDesc = suggestInfo.desc || messages[suggestInfo.messageId]; - - return { - ...suggestInfo, - desc: interpolate(computedDesc, suggestInfo.data), - fix: normalizeFixes(suggestInfo, sourceCode) - }; - }) - - // Remove suggestions that didn't provide a fix - .filter(({ fix }) => fix); -} - -/** - * Creates information about the report from a descriptor - * @param {Object} options Information about the problem - * @param {string} options.ruleId Rule ID - * @param {(0|1|2)} options.severity Rule severity - * @param {(ASTNode|null)} options.node Node - * @param {string} options.message Error message - * @param {string} [options.messageId] The error message ID. - * @param {{start: SourceLocation, end: (SourceLocation|null)}} options.loc Start and end location - * @param {{text: string, range: (number[]|null)}} options.fix The fix object - * @param {Array<{text: string, range: (number[]|null)}>} options.suggestions The array of suggestions objects - * @param {Language} [options.language] The language to use to adjust line and column offsets. - * @returns {LintMessage} Information about the report - */ -function createProblem(options) { - const { language } = options; - - // calculate offsets based on the language in use - const columnOffset = language.columnStart === 1 ? 0 : 1; - const lineOffset = language.lineStart === 1 ? 0 : 1; - - const problem = { - ruleId: options.ruleId, - severity: options.severity, - message: options.message, - line: options.loc.start.line + lineOffset, - column: options.loc.start.column + columnOffset, - nodeType: options.node && options.node.type || null - }; - - /* - * If this isn’t in the conditional, some of the tests fail - * because `messageId` is present in the problem object - */ - if (options.messageId) { - problem.messageId = options.messageId; - } - - if (options.loc.end) { - problem.endLine = options.loc.end.line + lineOffset; - problem.endColumn = options.loc.end.column + columnOffset; - } - - if (options.fix) { - problem.fix = options.fix; - } - - if (options.suggestions && options.suggestions.length > 0) { - problem.suggestions = options.suggestions; - } - - return problem; -} - -/** - * Validates that suggestions are properly defined. Throws if an error is detected. - * @param {Array<{ desc?: string, messageId?: string }>} suggest The incoming suggest data. - * @param {Object} messages Object of meta messages for the rule. - * @returns {void} - */ -function validateSuggestions(suggest, messages) { - if (suggest && Array.isArray(suggest)) { - suggest.forEach(suggestion => { - if (suggestion.messageId) { - const { messageId } = suggestion; - - if (!messages) { - throw new TypeError(`context.report() called with a suggest option with a messageId '${messageId}', but no messages were present in the rule metadata.`); - } - - if (!messages[messageId]) { - throw new TypeError(`context.report() called with a suggest option with a messageId '${messageId}' which is not present in the 'messages' config: ${JSON.stringify(messages, null, 2)}`); - } - - if (suggestion.desc) { - throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one."); - } - } else if (!suggestion.desc) { - throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`"); - } - - if (typeof suggestion.fix !== "function") { - throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${suggestion}`); - } - }); - } -} - -/** - * Returns a function that converts the arguments of a `context.report` call from a rule into a reported - * problem for the Node.js API. - * @param {{ruleId: string, severity: number, sourceCode: SourceCode, messageIds: Object, disableFixes: boolean, language:Language}} metadata Metadata for the reported problem - * @returns {function(...args): LintMessage} Function that returns information about the report - */ - -module.exports = function createReportTranslator(metadata) { - - /* - * `createReportTranslator` gets called once per enabled rule per file. It needs to be very performant. - * The report translator itself (i.e. the function that `createReportTranslator` returns) gets - * called every time a rule reports a problem, which happens much less frequently (usually, the vast - * majority of rules don't report any problems for a given file). - */ - return (...args) => { - const descriptor = normalizeMultiArgReportCall(...args); - const messages = metadata.messageIds; - const { sourceCode } = metadata; - - assertValidNodeInfo(descriptor); - - let computedMessage; - - if (descriptor.messageId) { - if (!messages) { - throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata."); - } - const id = descriptor.messageId; - - if (descriptor.message) { - throw new TypeError("context.report() called with a message and a messageId. Please only pass one."); - } - if (!messages || !Object.hasOwn(messages, id)) { - throw new TypeError(`context.report() called with a messageId of '${id}' which is not present in the 'messages' config: ${JSON.stringify(messages, null, 2)}`); - } - computedMessage = messages[id]; - } else if (descriptor.message) { - computedMessage = descriptor.message; - } else { - throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem."); - } - - validateSuggestions(descriptor.suggest, messages); - - return createProblem({ - ruleId: metadata.ruleId, - severity: metadata.severity, - node: descriptor.node, - message: interpolate(computedMessage, descriptor.data), - messageId: descriptor.messageId, - loc: descriptor.loc ? normalizeReportLoc(descriptor) : sourceCode.getLoc(descriptor.node), - fix: metadata.disableFixes ? null : normalizeFixes(descriptor, sourceCode), - suggestions: metadata.disableFixes ? [] : mapSuggestions(descriptor, sourceCode, messages), - language: metadata.language - }); - }; -}; diff --git a/graphql/node_modules/eslint/lib/linter/rule-fixer.js b/graphql/node_modules/eslint/lib/linter/rule-fixer.js deleted file mode 100644 index f9c45feb..00000000 --- a/graphql/node_modules/eslint/lib/linter/rule-fixer.js +++ /dev/null @@ -1,163 +0,0 @@ -/** - * @fileoverview An object that creates fix commands for rules. - * @author Nicholas C. Zakas - */ -"use strict"; - -/* eslint class-methods-use-this: off -- Methods desired on instance */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// none! - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Creates a fix command that inserts text at the specified index in the source text. - * @param {int} index The 0-based index at which to insert the new text. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - * @private - */ -function insertTextAt(index, text) { - return { - range: [index, index], - text - }; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Creates code fixing commands for rules. - */ -class RuleFixer { - - /** - * The source code object representing the text to be fixed. - * @type {SourceCode} - */ - #sourceCode; - - /** - * Creates a new instance. - * @param {Object} options The options for the fixer. - * @param {SourceCode} options.sourceCode The source code object representing the text to be fixed. - */ - constructor({ sourceCode }) { - this.#sourceCode = sourceCode; - } - - /** - * Creates a fix command that inserts text after the given node or token. - * The fix is not applied until applyFixes() is called. - * @param {ASTNode|Token} nodeOrToken The node or token to insert after. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - insertTextAfter(nodeOrToken, text) { - const range = this.#sourceCode.getRange(nodeOrToken); - - return this.insertTextAfterRange(range, text); - } - - /** - * Creates a fix command that inserts text after the specified range in the source text. - * The fix is not applied until applyFixes() is called. - * @param {int[]} range The range to replace, first item is start of range, second - * is end of range. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - insertTextAfterRange(range, text) { - return insertTextAt(range[1], text); - } - - /** - * Creates a fix command that inserts text before the given node or token. - * The fix is not applied until applyFixes() is called. - * @param {ASTNode|Token} nodeOrToken The node or token to insert before. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - insertTextBefore(nodeOrToken, text) { - const range = this.#sourceCode.getRange(nodeOrToken); - - return this.insertTextBeforeRange(range, text); - } - - /** - * Creates a fix command that inserts text before the specified range in the source text. - * The fix is not applied until applyFixes() is called. - * @param {int[]} range The range to replace, first item is start of range, second - * is end of range. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - insertTextBeforeRange(range, text) { - return insertTextAt(range[0], text); - } - - /** - * Creates a fix command that replaces text at the node or token. - * The fix is not applied until applyFixes() is called. - * @param {ASTNode|Token} nodeOrToken The node or token to remove. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - replaceText(nodeOrToken, text) { - const range = this.#sourceCode.getRange(nodeOrToken); - - return this.replaceTextRange(range, text); - } - - /** - * Creates a fix command that replaces text at the specified range in the source text. - * The fix is not applied until applyFixes() is called. - * @param {int[]} range The range to replace, first item is start of range, second - * is end of range. - * @param {string} text The text to insert. - * @returns {Object} The fix command. - */ - replaceTextRange(range, text) { - return { - range, - text - }; - } - - /** - * Creates a fix command that removes the node or token from the source. - * The fix is not applied until applyFixes() is called. - * @param {ASTNode|Token} nodeOrToken The node or token to remove. - * @returns {Object} The fix command. - */ - remove(nodeOrToken) { - const range = this.#sourceCode.getRange(nodeOrToken); - - return this.removeRange(range); - } - - /** - * Creates a fix command that removes the specified range of text from the source. - * The fix is not applied until applyFixes() is called. - * @param {int[]} range The range to remove, first item is start of range, second - * is end of range. - * @returns {Object} The fix command. - */ - removeRange(range) { - return { - range, - text: "" - }; - } -} - - -module.exports = { RuleFixer }; diff --git a/graphql/node_modules/eslint/lib/linter/rules.js b/graphql/node_modules/eslint/lib/linter/rules.js deleted file mode 100644 index bb8e3682..00000000 --- a/graphql/node_modules/eslint/lib/linter/rules.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @fileoverview Defines a storage for rules. - * @author Nicholas C. Zakas - * @author aladdin-add - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const builtInRules = require("../rules"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Rule} Rule */ - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A storage for rules. - */ -class Rules { - constructor() { - this._rules = Object.create(null); - } - - /** - * Registers a rule module for rule id in storage. - * @param {string} ruleId Rule id (file name). - * @param {Rule} rule Rule object. - * @returns {void} - */ - define(ruleId, rule) { - this._rules[ruleId] = rule; - } - - /** - * Access rule handler by id (file name). - * @param {string} ruleId Rule id (file name). - * @returns {Rule} Rule object. - */ - get(ruleId) { - if (typeof this._rules[ruleId] === "string") { - this.define(ruleId, require(this._rules[ruleId])); - } - if (this._rules[ruleId]) { - return this._rules[ruleId]; - } - if (builtInRules.has(ruleId)) { - return builtInRules.get(ruleId); - } - - return null; - } - - *[Symbol.iterator]() { - yield* builtInRules; - - for (const ruleId of Object.keys(this._rules)) { - yield [ruleId, this.get(ruleId)]; - } - } -} - -module.exports = Rules; diff --git a/graphql/node_modules/eslint/lib/linter/safe-emitter.js b/graphql/node_modules/eslint/lib/linter/safe-emitter.js deleted file mode 100644 index f4837c1d..00000000 --- a/graphql/node_modules/eslint/lib/linter/safe-emitter.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @fileoverview A variant of EventEmitter which does not give listeners information about each other - * @author Teddy Katz - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * An event emitter - * @typedef {Object} SafeEmitter - * @property {(eventName: string, listenerFunc: Function) => void} on Adds a listener for a given event name - * @property {(eventName: string, arg1?: any, arg2?: any, arg3?: any) => void} emit Emits an event with a given name. - * This calls all the listeners that were listening for that name, with `arg1`, `arg2`, and `arg3` as arguments. - * @property {function(): string[]} eventNames Gets the list of event names that have registered listeners. - */ - -/** - * Creates an object which can listen for and emit events. - * This is similar to the EventEmitter API in Node's standard library, but it has a few differences. - * The goal is to allow multiple modules to attach arbitrary listeners to the same emitter, without - * letting the modules know about each other at all. - * 1. It has no special keys like `error` and `newListener`, which would allow modules to detect when - * another module throws an error or registers a listener. - * 2. It calls listener functions without any `this` value. (`EventEmitter` calls listeners with a - * `this` value of the emitter instance, which would give listeners access to other listeners.) - * @returns {SafeEmitter} An emitter - */ -module.exports = () => { - const listeners = Object.create(null); - - return Object.freeze({ - on(eventName, listener) { - if (eventName in listeners) { - listeners[eventName].push(listener); - } else { - listeners[eventName] = [listener]; - } - }, - emit(eventName, ...args) { - if (eventName in listeners) { - listeners[eventName].forEach(listener => listener(...args)); - } - }, - eventNames() { - return Object.keys(listeners); - } - }); -}; diff --git a/graphql/node_modules/eslint/lib/linter/source-code-fixer.js b/graphql/node_modules/eslint/lib/linter/source-code-fixer.js deleted file mode 100644 index 312e84f6..00000000 --- a/graphql/node_modules/eslint/lib/linter/source-code-fixer.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * @fileoverview An object that caches and applies source code fixes. - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const debug = require("debug")("eslint:source-code-fixer"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const BOM = "\uFEFF"; - -/** - * Compares items in a messages array by range. - * @param {Message} a The first message. - * @param {Message} b The second message. - * @returns {int} -1 if a comes before b, 1 if a comes after b, 0 if equal. - * @private - */ -function compareMessagesByFixRange(a, b) { - return a.fix.range[0] - b.fix.range[0] || a.fix.range[1] - b.fix.range[1]; -} - -/** - * Compares items in a messages array by line and column. - * @param {Message} a The first message. - * @param {Message} b The second message. - * @returns {int} -1 if a comes before b, 1 if a comes after b, 0 if equal. - * @private - */ -function compareMessagesByLocation(a, b) { - return a.line - b.line || a.column - b.column; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Utility for apply fixes to source code. - * @constructor - */ -function SourceCodeFixer() { - Object.freeze(this); -} - -/** - * Applies the fixes specified by the messages to the given text. Tries to be - * smart about the fixes and won't apply fixes over the same area in the text. - * @param {string} sourceText The text to apply the changes to. - * @param {Message[]} messages The array of messages reported by ESLint. - * @param {boolean|Function} [shouldFix=true] Determines whether each message should be fixed - * @returns {Object} An object containing the fixed text and any unfixed messages. - */ -SourceCodeFixer.applyFixes = function(sourceText, messages, shouldFix) { - debug("Applying fixes"); - - if (shouldFix === false) { - debug("shouldFix parameter was false, not attempting fixes"); - return { - fixed: false, - messages, - output: sourceText - }; - } - - // clone the array - const remainingMessages = [], - fixes = [], - bom = sourceText.startsWith(BOM) ? BOM : "", - text = bom ? sourceText.slice(1) : sourceText; - let lastPos = Number.NEGATIVE_INFINITY, - output = bom; - - /** - * Try to use the 'fix' from a problem. - * @param {Message} problem The message object to apply fixes from - * @returns {boolean} Whether fix was successfully applied - */ - function attemptFix(problem) { - const fix = problem.fix; - const start = fix.range[0]; - const end = fix.range[1]; - - // Remain it as a problem if it's overlapped or it's a negative range - if (lastPos >= start || start > end) { - remainingMessages.push(problem); - return false; - } - - // Remove BOM. - if ((start < 0 && end >= 0) || (start === 0 && fix.text.startsWith(BOM))) { - output = ""; - } - - // Make output to this fix. - output += text.slice(Math.max(0, lastPos), Math.max(0, start)); - output += fix.text; - lastPos = end; - return true; - } - - messages.forEach(problem => { - if (Object.hasOwn(problem, "fix")) { - fixes.push(problem); - } else { - remainingMessages.push(problem); - } - }); - - if (fixes.length) { - debug("Found fixes to apply"); - let fixesWereApplied = false; - - for (const problem of fixes.sort(compareMessagesByFixRange)) { - if (typeof shouldFix !== "function" || shouldFix(problem)) { - attemptFix(problem); - - /* - * The only time attemptFix will fail is if a previous fix was - * applied which conflicts with it. So we can mark this as true. - */ - fixesWereApplied = true; - } else { - remainingMessages.push(problem); - } - } - output += text.slice(Math.max(0, lastPos)); - - return { - fixed: fixesWereApplied, - messages: remainingMessages.sort(compareMessagesByLocation), - output - }; - } - - debug("No fixes to apply"); - return { - fixed: false, - messages, - output: bom + text - }; - -}; - -module.exports = SourceCodeFixer; diff --git a/graphql/node_modules/eslint/lib/linter/timing.js b/graphql/node_modules/eslint/lib/linter/timing.js deleted file mode 100644 index 232c5f4f..00000000 --- a/graphql/node_modules/eslint/lib/linter/timing.js +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @fileoverview Tracks performance of individual rules. - * @author Brandon Mills - */ - -"use strict"; - -const { startTime, endTime } = require("../shared/stats"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/* c8 ignore next */ -/** - * Align the string to left - * @param {string} str string to evaluate - * @param {int} len length of the string - * @param {string} ch delimiter character - * @returns {string} modified string - * @private - */ -function alignLeft(str, len, ch) { - return str + new Array(len - str.length + 1).join(ch || " "); -} - -/* c8 ignore next */ -/** - * Align the string to right - * @param {string} str string to evaluate - * @param {int} len length of the string - * @param {string} ch delimiter character - * @returns {string} modified string - * @private - */ -function alignRight(str, len, ch) { - return new Array(len - str.length + 1).join(ch || " ") + str; -} - -//------------------------------------------------------------------------------ -// Module definition -//------------------------------------------------------------------------------ - -const enabled = !!process.env.TIMING; - -const HEADERS = ["Rule", "Time (ms)", "Relative"]; -const ALIGN = [alignLeft, alignRight, alignRight]; - -/** - * Decide how many rules to show in the output list. - * @returns {number} the number of rules to show - */ -function getListSize() { - const MINIMUM_SIZE = 10; - - if (typeof process.env.TIMING !== "string") { - return MINIMUM_SIZE; - } - - if (process.env.TIMING.toLowerCase() === "all") { - return Number.POSITIVE_INFINITY; - } - - const TIMING_ENV_VAR_AS_INTEGER = Number.parseInt(process.env.TIMING, 10); - - return TIMING_ENV_VAR_AS_INTEGER > 10 ? TIMING_ENV_VAR_AS_INTEGER : MINIMUM_SIZE; -} - -/* c8 ignore next */ -/** - * display the data - * @param {Object} data Data object to be displayed - * @returns {void} prints modified string with console.log - * @private - */ -function display(data) { - let total = 0; - const rows = Object.keys(data) - .map(key => { - const time = data[key]; - - total += time; - return [key, time]; - }) - .sort((a, b) => b[1] - a[1]) - .slice(0, getListSize()); - - rows.forEach(row => { - row.push(`${(row[1] * 100 / total).toFixed(1)}%`); - row[1] = row[1].toFixed(3); - }); - - rows.unshift(HEADERS); - - const widths = []; - - rows.forEach(row => { - const len = row.length; - - for (let i = 0; i < len; i++) { - const n = row[i].length; - - if (!widths[i] || n > widths[i]) { - widths[i] = n; - } - } - }); - - const table = rows.map(row => ( - row - .map((cell, index) => ALIGN[index](cell, widths[index])) - .join(" | ") - )); - - table.splice(1, 0, widths.map((width, index) => { - const extraAlignment = index !== 0 && index !== widths.length - 1 ? 2 : 1; - - return ALIGN[index](":", width + extraAlignment, "-"); - }).join("|")); - - console.log(table.join("\n")); // eslint-disable-line no-console -- Debugging function -} - -/* c8 ignore next */ -module.exports = (function() { - - const data = Object.create(null); - - /** - * Time the run - * @param {any} key key from the data object - * @param {Function} fn function to be called - * @param {boolean} stats if 'stats' is true, return the result and the time difference - * @returns {Function} function to be executed - * @private - */ - function time(key, fn, stats) { - - return function(...args) { - - const t = startTime(); - const result = fn(...args); - const tdiff = endTime(t); - - if (enabled) { - if (typeof data[key] === "undefined") { - data[key] = 0; - } - - data[key] += tdiff; - } - - return stats ? { result, tdiff } : result; - }; - } - - if (enabled) { - process.on("exit", () => { - display(data); - }); - } - - return { - time, - enabled, - getListSize - }; - -}()); diff --git a/graphql/node_modules/eslint/lib/linter/vfile.js b/graphql/node_modules/eslint/lib/linter/vfile.js deleted file mode 100644 index 8528a519..00000000 --- a/graphql/node_modules/eslint/lib/linter/vfile.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @fileoverview Virtual file - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Type Definitions -//----------------------------------------------------------------------------- - -/** @typedef {import("@eslint/core").File} File */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines if a given value has a byte order mark (BOM). - * @param {string|Uint8Array} value The value to check. - * @returns {boolean} `true` if the value has a BOM, `false` otherwise. - */ -function hasUnicodeBOM(value) { - return typeof value === "string" - ? value.charCodeAt(0) === 0xFEFF - : value[0] === 0xEF && value[1] === 0xBB && value[2] === 0xBF; -} - -/** - * Strips Unicode BOM from the given value. - * @param {string|Uint8Array} value The value to remove the BOM from. - * @returns {string|Uint8Array} The stripped value. - */ -function stripUnicodeBOM(value) { - - if (!hasUnicodeBOM(value)) { - return value; - } - - if (typeof value === "string") { - - /* - * Check Unicode BOM. - * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF. - * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters - */ - return value.slice(1); - } - - /* - * In a Uint8Array, the BOM is represented by three bytes: 0xEF, 0xBB, and 0xBF, - * so we can just remove the first three bytes. - */ - return value.slice(3); -} - -//------------------------------------------------------------------------------ -// Exports -//------------------------------------------------------------------------------ - -/** - * Represents a virtual file inside of ESLint. - * @implements {File} - */ -class VFile { - - /** - * The file path including any processor-created virtual path. - * @type {string} - * @readonly - */ - path; - - /** - * The file path on disk. - * @type {string} - * @readonly - */ - physicalPath; - - /** - * The file contents. - * @type {string|Uint8Array} - * @readonly - */ - body; - - /** - * Indicates whether the file has a byte order mark (BOM). - * @type {boolean} - * @readonly - */ - bom; - - /** - * Creates a new instance. - * @param {string} path The file path. - * @param {string|Uint8Array} body The file contents. - * @param {Object} [options] Additional options. - * @param {string} [options.physicalPath] The file path on disk. - */ - constructor(path, body, { physicalPath } = {}) { - this.path = path; - this.physicalPath = physicalPath ?? path; - this.bom = hasUnicodeBOM(body); - this.body = stripUnicodeBOM(body); - } - -} - -module.exports = { VFile }; diff --git a/graphql/node_modules/eslint/lib/options.js b/graphql/node_modules/eslint/lib/options.js deleted file mode 100644 index d35c9f6d..00000000 --- a/graphql/node_modules/eslint/lib/options.js +++ /dev/null @@ -1,442 +0,0 @@ -/** - * @fileoverview Options configuration for optionator. - * @author George Zahariev - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const optionator = require("optionator"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * The options object parsed by Optionator. - * @typedef {Object} ParsedCLIOptions - * @property {boolean} cache Only check changed files - * @property {string} cacheFile Path to the cache file. Deprecated: use --cache-location - * @property {string} [cacheLocation] Path to the cache file or directory - * @property {"metadata" | "content"} cacheStrategy Strategy to use for detecting changed files in the cache - * @property {boolean} [color] Force enabling/disabling of color - * @property {string} [config] Use this configuration, overriding .eslintrc.* config options if present - * @property {boolean} debug Output debugging information - * @property {string[]} [env] Specify environments - * @property {boolean} envInfo Output execution environment information - * @property {boolean} errorOnUnmatchedPattern Prevent errors when pattern is unmatched - * @property {boolean} eslintrc Disable use of configuration from .eslintrc.* - * @property {string[]} [ext] Specify JavaScript file extensions - * @property {string[]} [flag] Feature flags - * @property {boolean} fix Automatically fix problems - * @property {boolean} fixDryRun Automatically fix problems without saving the changes to the file system - * @property {("directive" | "problem" | "suggestion" | "layout")[]} [fixType] Specify the types of fixes to apply (directive, problem, suggestion, layout) - * @property {string} format Use a specific output format - * @property {string[]} [global] Define global variables - * @property {boolean} [help] Show help - * @property {boolean} ignore Disable use of ignore files and patterns - * @property {string} [ignorePath] Specify path of ignore file - * @property {string[]} [ignorePattern] Patterns of files to ignore. In eslintrc mode, these are in addition to `.eslintignore` - * @property {boolean} init Run config initialization wizard - * @property {boolean} inlineConfig Prevent comments from changing config or rules - * @property {number} maxWarnings Number of warnings to trigger nonzero exit code - * @property {string} [outputFile] Specify file to write report to - * @property {string} [parser] Specify the parser to be used - * @property {Object} [parserOptions] Specify parser options - * @property {string[]} [plugin] Specify plugins - * @property {string} [printConfig] Print the configuration for the given file - * @property {boolean | undefined} reportUnusedDisableDirectives Adds reported errors for unused eslint-disable and eslint-enable directives - * @property {string | undefined} reportUnusedDisableDirectivesSeverity A severity string indicating if and how unused disable and enable directives should be tracked and reported. - * @property {string} [resolvePluginsRelativeTo] A folder where plugins should be resolved from, CWD by default - * @property {Object} [rule] Specify rules - * @property {string[]} [rulesdir] Load additional rules from this directory. Deprecated: Use rules from plugins - * @property {boolean} stdin Lint code provided on - * @property {string} [stdinFilename] Specify filename to process STDIN as - * @property {boolean} quiet Report errors only - * @property {boolean} [version] Output the version number - * @property {boolean} warnIgnored Show warnings when the file list includes ignored files - * @property {boolean} [passOnNoPatterns=false] When set to true, missing patterns cause - * the linting operation to short circuit and not report any failures. - * @property {string[]} _ Positional filenames or patterns - * @property {boolean} [stats] Report additional statistics - */ - -//------------------------------------------------------------------------------ -// Initialization and Public Interface -//------------------------------------------------------------------------------ - -// exports "parse(args)", "generateHelp()", and "generateHelpForOption(optionName)" - -/** - * Creates the CLI options for ESLint. - * @param {boolean} usingFlatConfig Indicates if flat config is being used. - * @returns {Object} The optionator instance. - */ -module.exports = function(usingFlatConfig) { - - let lookupFlag; - - if (usingFlatConfig) { - lookupFlag = { - option: "config-lookup", - type: "Boolean", - default: "true", - description: "Disable look up for eslint.config.js" - }; - } else { - lookupFlag = { - option: "eslintrc", - type: "Boolean", - default: "true", - description: "Disable use of configuration from .eslintrc.*" - }; - } - - let envFlag; - - if (!usingFlatConfig) { - envFlag = { - option: "env", - type: "[String]", - description: "Specify environments" - }; - } - - let inspectConfigFlag; - - if (usingFlatConfig) { - inspectConfigFlag = { - option: "inspect-config", - type: "Boolean", - description: "Open the config inspector with the current configuration" - }; - } - - let extFlag; - - if (!usingFlatConfig) { - extFlag = { - option: "ext", - type: "[String]", - description: "Specify JavaScript file extensions" - }; - } - - let resolvePluginsFlag; - - if (!usingFlatConfig) { - resolvePluginsFlag = { - option: "resolve-plugins-relative-to", - type: "path::String", - description: "A folder where plugins should be resolved from, CWD by default" - }; - } - - let rulesDirFlag; - - if (!usingFlatConfig) { - rulesDirFlag = { - option: "rulesdir", - type: "[path::String]", - description: "Load additional rules from this directory. Deprecated: Use rules from plugins" - }; - } - - let ignorePathFlag; - - if (!usingFlatConfig) { - ignorePathFlag = { - option: "ignore-path", - type: "path::String", - description: "Specify path of ignore file" - }; - } - - let statsFlag; - - if (usingFlatConfig) { - statsFlag = { - option: "stats", - type: "Boolean", - default: "false", - description: "Add statistics to the lint report" - }; - } - - let warnIgnoredFlag; - - if (usingFlatConfig) { - warnIgnoredFlag = { - option: "warn-ignored", - type: "Boolean", - default: "true", - description: "Suppress warnings when the file list includes ignored files" - }; - } - - let flagFlag; - - if (usingFlatConfig) { - flagFlag = { - option: "flag", - type: "[String]", - description: "Enable a feature flag" - }; - } - - return optionator({ - prepend: "eslint [options] file.js [file.js] [dir]", - defaults: { - concatRepeatedArrays: true, - mergeRepeatedObjects: true - }, - options: [ - { - heading: "Basic configuration" - }, - lookupFlag, - { - option: "config", - alias: "c", - type: "path::String", - description: usingFlatConfig - ? "Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs" - : "Use this configuration, overriding .eslintrc.* config options if present" - }, - inspectConfigFlag, - envFlag, - extFlag, - { - option: "global", - type: "[String]", - description: "Define global variables" - }, - { - option: "parser", - type: "String", - description: "Specify the parser to be used" - }, - { - option: "parser-options", - type: "Object", - description: "Specify parser options" - }, - resolvePluginsFlag, - { - heading: "Specify Rules and Plugins" - }, - { - option: "plugin", - type: "[String]", - description: "Specify plugins" - }, - { - option: "rule", - type: "Object", - description: "Specify rules" - }, - rulesDirFlag, - { - heading: "Fix Problems" - }, - { - option: "fix", - type: "Boolean", - default: false, - description: "Automatically fix problems" - }, - { - option: "fix-dry-run", - type: "Boolean", - default: false, - description: "Automatically fix problems without saving the changes to the file system" - }, - { - option: "fix-type", - type: "Array", - description: "Specify the types of fixes to apply (directive, problem, suggestion, layout)" - }, - { - heading: "Ignore Files" - }, - ignorePathFlag, - { - option: "ignore", - type: "Boolean", - default: "true", - description: "Disable use of ignore files and patterns" - }, - { - option: "ignore-pattern", - type: "[String]", - description: `Patterns of files to ignore${usingFlatConfig ? "" : " (in addition to those in .eslintignore)"}`, - concatRepeatedArrays: [true, { - oneValuePerFlag: true - }] - }, - { - heading: "Use stdin" - }, - { - option: "stdin", - type: "Boolean", - default: "false", - description: "Lint code provided on " - }, - { - option: "stdin-filename", - type: "String", - description: "Specify filename to process STDIN as" - }, - { - heading: "Handle Warnings" - }, - { - option: "quiet", - type: "Boolean", - default: "false", - description: "Report errors only" - }, - { - option: "max-warnings", - type: "Int", - default: "-1", - description: "Number of warnings to trigger nonzero exit code" - }, - { - heading: "Output" - }, - { - option: "output-file", - alias: "o", - type: "path::String", - description: "Specify file to write report to" - }, - { - option: "format", - alias: "f", - type: "String", - default: "stylish", - description: "Use a specific output format" - }, - { - option: "color", - type: "Boolean", - alias: "no-color", - description: "Force enabling/disabling of color" - }, - { - heading: "Inline configuration comments" - }, - { - option: "inline-config", - type: "Boolean", - default: "true", - description: "Prevent comments from changing config or rules" - }, - { - option: "report-unused-disable-directives", - type: "Boolean", - default: void 0, - description: "Adds reported errors for unused eslint-disable and eslint-enable directives" - }, - { - option: "report-unused-disable-directives-severity", - type: "String", - default: void 0, - description: "Chooses severity level for reporting unused eslint-disable and eslint-enable directives", - enum: ["off", "warn", "error", "0", "1", "2"] - }, - { - heading: "Caching" - }, - { - option: "cache", - type: "Boolean", - default: "false", - description: "Only check changed files" - }, - { - option: "cache-file", - type: "path::String", - default: ".eslintcache", - description: "Path to the cache file. Deprecated: use --cache-location" - }, - { - option: "cache-location", - type: "path::String", - description: "Path to the cache file or directory" - }, - { - option: "cache-strategy", - dependsOn: ["cache"], - type: "String", - default: "metadata", - enum: ["metadata", "content"], - description: "Strategy to use for detecting changed files in the cache" - }, - { - heading: "Miscellaneous" - }, - { - option: "init", - type: "Boolean", - default: "false", - description: "Run config initialization wizard" - }, - { - option: "env-info", - type: "Boolean", - default: "false", - description: "Output execution environment information" - }, - { - option: "error-on-unmatched-pattern", - type: "Boolean", - default: "true", - description: "Prevent errors when pattern is unmatched" - }, - { - option: "exit-on-fatal-error", - type: "Boolean", - default: "false", - description: "Exit with exit code 2 in case of fatal error" - }, - warnIgnoredFlag, - { - option: "pass-on-no-patterns", - type: "Boolean", - default: false, - description: "Exit with exit code 0 in case no file patterns are passed" - }, - { - option: "debug", - type: "Boolean", - default: false, - description: "Output debugging information" - }, - { - option: "help", - alias: "h", - type: "Boolean", - description: "Show help" - }, - { - option: "version", - alias: "v", - type: "Boolean", - description: "Output the version number" - }, - { - option: "print-config", - type: "path::String", - description: "Print the configuration for the given file" - }, - statsFlag, - flagFlag - ].filter(value => !!value) - }); -}; diff --git a/graphql/node_modules/eslint/lib/rule-tester/index.js b/graphql/node_modules/eslint/lib/rule-tester/index.js deleted file mode 100644 index 58f67ee4..00000000 --- a/graphql/node_modules/eslint/lib/rule-tester/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -const RuleTester = require("./rule-tester"); - -module.exports = { - RuleTester -}; diff --git a/graphql/node_modules/eslint/lib/rule-tester/rule-tester.js b/graphql/node_modules/eslint/lib/rule-tester/rule-tester.js deleted file mode 100644 index 756490e1..00000000 --- a/graphql/node_modules/eslint/lib/rule-tester/rule-tester.js +++ /dev/null @@ -1,1286 +0,0 @@ -/** - * @fileoverview Mocha/Jest test wrapper - * @author Ilya Volodin - */ -"use strict"; - -/* globals describe, it -- Mocha globals */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const - assert = require("node:assert"), - util = require("node:util"), - path = require("node:path"), - equal = require("fast-deep-equal"), - Traverser = require("../shared/traverser"), - { getRuleOptionsSchema } = require("../config/flat-config-helpers"), - { Linter, SourceCodeFixer } = require("../linter"), - { interpolate, getPlaceholderMatcher } = require("../linter/interpolate"), - stringify = require("json-stable-stringify-without-jsonify"); - -const { FlatConfigArray } = require("../config/flat-config-array"); -const { defaultConfig } = require("../config/default-config"); - -const ajv = require("../shared/ajv")({ strictDefaults: true }); - -const parserSymbol = Symbol.for("eslint.RuleTester.parser"); -const { ConfigArraySymbol } = require("@eslint/config-array"); -const { isSerializable } = require("../shared/serialization"); - -const { SourceCode } = require("../languages/js/source-code"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** @typedef {import("../shared/types").Parser} Parser */ -/** @typedef {import("../shared/types").LanguageOptions} LanguageOptions */ -/** @typedef {import("../shared/types").Rule} Rule */ - - -/** - * A test case that is expected to pass lint. - * @typedef {Object} ValidTestCase - * @property {string} [name] Name for the test case. - * @property {string} code Code for the test case. - * @property {any[]} [options] Options for the test case. - * @property {LanguageOptions} [languageOptions] The language options to use in the test case. - * @property {{ [name: string]: any }} [settings] Settings for the test case. - * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {boolean} [only] Run only this test case or the subset of test cases with this property. - */ - -/** - * A test case that is expected to fail lint. - * @typedef {Object} InvalidTestCase - * @property {string} [name] Name for the test case. - * @property {string} code Code for the test case. - * @property {number | Array} errors Expected errors. - * @property {string | null} [output] The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. - * @property {any[]} [options] Options for the test case. - * @property {{ [name: string]: any }} [settings] Settings for the test case. - * @property {string} [filename] The fake filename for the test case. Useful for rules that make assertion about filenames. - * @property {LanguageOptions} [languageOptions] The language options to use in the test case. - * @property {boolean} [only] Run only this test case or the subset of test cases with this property. - */ - -/** - * A description of a reported error used in a rule tester test. - * @typedef {Object} TestCaseError - * @property {string | RegExp} [message] Message. - * @property {string} [messageId] Message ID. - * @property {string} [type] The type of the reported AST node. - * @property {{ [name: string]: string }} [data] The data used to fill the message template. - * @property {number} [line] The 1-based line number of the reported start location. - * @property {number} [column] The 1-based column number of the reported start location. - * @property {number} [endLine] The 1-based line number of the reported end location. - * @property {number} [endColumn] The 1-based column number of the reported end location. - */ - -//------------------------------------------------------------------------------ -// Private Members -//------------------------------------------------------------------------------ - -/* - * testerDefaultConfig must not be modified as it allows to reset the tester to - * the initial default configuration - */ -const testerDefaultConfig = { rules: {} }; - -/* - * RuleTester uses this config as its default. This can be overwritten via - * setDefaultConfig(). - */ -let sharedDefaultConfig = { rules: {} }; - -/* - * List every parameters possible on a test case that are not related to eslint - * configuration - */ -const RuleTesterParameters = [ - "name", - "code", - "filename", - "options", - "errors", - "output", - "only" -]; - -/* - * All allowed property names in error objects. - */ -const errorObjectParameters = new Set([ - "message", - "messageId", - "data", - "type", - "line", - "column", - "endLine", - "endColumn", - "suggestions" -]); -const friendlyErrorObjectParameterList = `[${[...errorObjectParameters].map(key => `'${key}'`).join(", ")}]`; - -/* - * All allowed property names in suggestion objects. - */ -const suggestionObjectParameters = new Set([ - "desc", - "messageId", - "data", - "output" -]); -const friendlySuggestionObjectParameterList = `[${[...suggestionObjectParameters].map(key => `'${key}'`).join(", ")}]`; - -/* - * Ignored test case properties when checking for test case duplicates. - */ -const duplicationIgnoredParameters = new Set([ - "name", - "errors", - "output" -]); - -const forbiddenMethods = [ - "applyInlineConfig", - "applyLanguageOptions", - "finalize" -]; - -/** @type {Map} */ -const forbiddenMethodCalls = new Map(forbiddenMethods.map(methodName => ([methodName, new WeakSet()]))); - -const hasOwnProperty = Function.call.bind(Object.hasOwnProperty); - -/** - * Clones a given value deeply. - * Note: This ignores `parent` property. - * @param {any} x A value to clone. - * @returns {any} A cloned value. - */ -function cloneDeeplyExcludesParent(x) { - if (typeof x === "object" && x !== null) { - if (Array.isArray(x)) { - return x.map(cloneDeeplyExcludesParent); - } - - const retv = {}; - - for (const key in x) { - if (key !== "parent" && hasOwnProperty(x, key)) { - retv[key] = cloneDeeplyExcludesParent(x[key]); - } - } - - return retv; - } - - return x; -} - -/** - * Freezes a given value deeply. - * @param {any} x A value to freeze. - * @returns {void} - */ -function freezeDeeply(x) { - if (typeof x === "object" && x !== null) { - if (Array.isArray(x)) { - x.forEach(freezeDeeply); - } else { - for (const key in x) { - if (key !== "parent" && hasOwnProperty(x, key)) { - freezeDeeply(x[key]); - } - } - } - Object.freeze(x); - } -} - -/** - * Replace control characters by `\u00xx` form. - * @param {string} text The text to sanitize. - * @returns {string} The sanitized text. - */ -function sanitize(text) { - if (typeof text !== "string") { - return ""; - } - return text.replace( - /[\u0000-\u0009\u000b-\u001a]/gu, // eslint-disable-line no-control-regex -- Escaping controls - c => `\\u${c.codePointAt(0).toString(16).padStart(4, "0")}` - ); -} - -/** - * Define `start`/`end` properties as throwing error. - * @param {string} objName Object name used for error messages. - * @param {ASTNode} node The node to define. - * @returns {void} - */ -function defineStartEndAsError(objName, node) { - Object.defineProperties(node, { - start: { - get() { - throw new Error(`Use ${objName}.range[0] instead of ${objName}.start`); - }, - configurable: true, - enumerable: false - }, - end: { - get() { - throw new Error(`Use ${objName}.range[1] instead of ${objName}.end`); - }, - configurable: true, - enumerable: false - } - }); -} - - -/** - * Define `start`/`end` properties of all nodes of the given AST as throwing error. - * @param {ASTNode} ast The root node to errorize `start`/`end` properties. - * @param {Object} [visitorKeys] Visitor keys to be used for traversing the given ast. - * @returns {void} - */ -function defineStartEndAsErrorInTree(ast, visitorKeys) { - Traverser.traverse(ast, { visitorKeys, enter: defineStartEndAsError.bind(null, "node") }); - ast.tokens.forEach(defineStartEndAsError.bind(null, "token")); - ast.comments.forEach(defineStartEndAsError.bind(null, "token")); -} - -/** - * Wraps the given parser in order to intercept and modify return values from the `parse` and `parseForESLint` methods, for test purposes. - * In particular, to modify ast nodes, tokens and comments to throw on access to their `start` and `end` properties. - * @param {Parser} parser Parser object. - * @returns {Parser} Wrapped parser object. - */ -function wrapParser(parser) { - - if (typeof parser.parseForESLint === "function") { - return { - [parserSymbol]: parser, - parseForESLint(...args) { - const ret = parser.parseForESLint(...args); - - defineStartEndAsErrorInTree(ret.ast, ret.visitorKeys); - return ret; - } - }; - } - - return { - [parserSymbol]: parser, - parse(...args) { - const ast = parser.parse(...args); - - defineStartEndAsErrorInTree(ast); - return ast; - } - }; -} - -/** - * Function to replace forbidden `SourceCode` methods. Allows just one call per method. - * @param {string} methodName The name of the method to forbid. - * @param {Function} prototype The prototype with the original method to call. - * @returns {Function} The function that throws the error. - */ -function throwForbiddenMethodError(methodName, prototype) { - - const original = prototype[methodName]; - - return function(...args) { - - const called = forbiddenMethodCalls.get(methodName); - - /* eslint-disable no-invalid-this -- needed to operate as a method. */ - if (!called.has(this)) { - called.add(this); - - return original.apply(this, args); - } - /* eslint-enable no-invalid-this -- not needed past this point */ - - throw new Error( - `\`SourceCode#${methodName}()\` cannot be called inside a rule.` - ); - }; -} - -/** - * Extracts names of {{ placeholders }} from the reported message. - * @param {string} message Reported message - * @returns {string[]} Array of placeholder names - */ -function getMessagePlaceholders(message) { - const matcher = getPlaceholderMatcher(); - - return Array.from(message.matchAll(matcher), ([, name]) => name.trim()); -} - -/** - * Returns the placeholders in the reported messages but - * only includes the placeholders available in the raw message and not in the provided data. - * @param {string} message The reported message - * @param {string} raw The raw message specified in the rule meta.messages - * @param {undefined|Record} data The passed - * @returns {string[]} Missing placeholder names - */ -function getUnsubstitutedMessagePlaceholders(message, raw, data = {}) { - const unsubstituted = getMessagePlaceholders(message); - - if (unsubstituted.length === 0) { - return []; - } - - // Remove false positives by only counting placeholders in the raw message, which were not provided in the data matcher or added with a data property - const known = getMessagePlaceholders(raw); - const provided = Object.keys(data); - - return unsubstituted.filter(name => known.includes(name) && !provided.includes(name)); -} - -const metaSchemaDescription = ` -\t- If the rule has options, set \`meta.schema\` to an array or non-empty object to enable options validation. -\t- If the rule doesn't have options, omit \`meta.schema\` to enforce that no options can be passed to the rule. -\t- You can also set \`meta.schema\` to \`false\` to opt-out of options validation (not recommended). - -\thttps://eslint.org/docs/latest/extend/custom-rules#options-schemas -`; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -// default separators for testing -const DESCRIBE = Symbol("describe"); -const IT = Symbol("it"); -const IT_ONLY = Symbol("itOnly"); - -/** - * This is `it` default handler if `it` don't exist. - * @this {Mocha} - * @param {string} text The description of the test case. - * @param {Function} method The logic of the test case. - * @throws {Error} Any error upon execution of `method`. - * @returns {any} Returned value of `method`. - */ -function itDefaultHandler(text, method) { - try { - return method.call(this); - } catch (err) { - if (err instanceof assert.AssertionError) { - err.message += ` (${util.inspect(err.actual)} ${err.operator} ${util.inspect(err.expected)})`; - } - throw err; - } -} - -/** - * This is `describe` default handler if `describe` don't exist. - * @this {Mocha} - * @param {string} text The description of the test case. - * @param {Function} method The logic of the test case. - * @returns {any} Returned value of `method`. - */ -function describeDefaultHandler(text, method) { - return method.call(this); -} - -/** - * Mocha test wrapper. - */ -class RuleTester { - - /** - * Creates a new instance of RuleTester. - * @param {Object} [testerConfig] Optional, extra configuration for the tester - */ - constructor(testerConfig = {}) { - - /** - * The configuration to use for this tester. Combination of the tester - * configuration and the default configuration. - * @type {Object} - */ - this.testerConfig = [ - sharedDefaultConfig, - testerConfig, - { rules: { "rule-tester/validate-ast": "error" } } - ]; - - this.linter = new Linter({ configType: "flat" }); - } - - /** - * Set the configuration to use for all future tests - * @param {Object} config the configuration to use. - * @throws {TypeError} If non-object config. - * @returns {void} - */ - static setDefaultConfig(config) { - if (typeof config !== "object" || config === null) { - throw new TypeError("RuleTester.setDefaultConfig: config must be an object"); - } - sharedDefaultConfig = config; - - // Make sure the rules object exists since it is assumed to exist later - sharedDefaultConfig.rules = sharedDefaultConfig.rules || {}; - } - - /** - * Get the current configuration used for all tests - * @returns {Object} the current configuration - */ - static getDefaultConfig() { - return sharedDefaultConfig; - } - - /** - * Reset the configuration to the initial configuration of the tester removing - * any changes made until now. - * @returns {void} - */ - static resetDefaultConfig() { - sharedDefaultConfig = { - rules: { - ...testerDefaultConfig.rules - } - }; - } - - - /* - * If people use `mocha test.js --watch` command, `describe` and `it` function - * instances are different for each execution. So `describe` and `it` should get fresh instance - * always. - */ - static get describe() { - return ( - this[DESCRIBE] || - (typeof describe === "function" ? describe : describeDefaultHandler) - ); - } - - static set describe(value) { - this[DESCRIBE] = value; - } - - static get it() { - return ( - this[IT] || - (typeof it === "function" ? it : itDefaultHandler) - ); - } - - static set it(value) { - this[IT] = value; - } - - /** - * Adds the `only` property to a test to run it in isolation. - * @param {string | ValidTestCase | InvalidTestCase} item A single test to run by itself. - * @returns {ValidTestCase | InvalidTestCase} The test with `only` set. - */ - static only(item) { - if (typeof item === "string") { - return { code: item, only: true }; - } - - return { ...item, only: true }; - } - - static get itOnly() { - if (typeof this[IT_ONLY] === "function") { - return this[IT_ONLY]; - } - if (typeof this[IT] === "function" && typeof this[IT].only === "function") { - return Function.bind.call(this[IT].only, this[IT]); - } - if (typeof it === "function" && typeof it.only === "function") { - return Function.bind.call(it.only, it); - } - - if (typeof this[DESCRIBE] === "function" || typeof this[IT] === "function") { - throw new Error( - "Set `RuleTester.itOnly` to use `only` with a custom test framework.\n" + - "See https://eslint.org/docs/latest/integrate/nodejs-api#customizing-ruletester for more." - ); - } - if (typeof it === "function") { - throw new Error("The current test framework does not support exclusive tests with `only`."); - } - throw new Error("To use `only`, use RuleTester with a test framework that provides `it.only()` like Mocha."); - } - - static set itOnly(value) { - this[IT_ONLY] = value; - } - - - /** - * Adds a new rule test to execute. - * @param {string} ruleName The name of the rule to run. - * @param {Rule} rule The rule to test. - * @param {{ - * valid: (ValidTestCase | string)[], - * invalid: InvalidTestCase[] - * }} test The collection of tests to run. - * @throws {TypeError|Error} If `rule` is not an object with a `create` method, - * or if non-object `test`, or if a required scenario of the given type is missing. - * @returns {void} - */ - run(ruleName, rule, test) { - - const testerConfig = this.testerConfig, - requiredScenarios = ["valid", "invalid"], - scenarioErrors = [], - linter = this.linter, - ruleId = `rule-to-test/${ruleName}`; - - const seenValidTestCases = new Set(); - const seenInvalidTestCases = new Set(); - - if (!rule || typeof rule !== "object" || typeof rule.create !== "function") { - throw new TypeError("Rule must be an object with a `create` method"); - } - - if (!test || typeof test !== "object") { - throw new TypeError(`Test Scenarios for rule ${ruleName} : Could not find test scenario object`); - } - - requiredScenarios.forEach(scenarioType => { - if (!test[scenarioType]) { - scenarioErrors.push(`Could not find any ${scenarioType} test scenarios`); - } - }); - - if (scenarioErrors.length > 0) { - throw new Error([ - `Test Scenarios for rule ${ruleName} is invalid:` - ].concat(scenarioErrors).join("\n")); - } - - const baseConfig = [ - { files: ["**"] }, // Make sure the default config matches for all files - { - plugins: { - - // copy root plugin over - "@": { - - /* - * Parsers are wrapped to detect more errors, so this needs - * to be a new object for each call to run(), otherwise the - * parsers will be wrapped multiple times. - */ - parsers: { - ...defaultConfig[0].plugins["@"].parsers - }, - - /* - * The rules key on the default plugin is a proxy to lazy-load - * just the rules that are needed. So, don't create a new object - * here, just use the default one to keep that performance - * enhancement. - */ - rules: defaultConfig[0].plugins["@"].rules, - languages: defaultConfig[0].plugins["@"].languages - }, - "rule-to-test": { - rules: { - [ruleName]: Object.assign({}, rule, { - - // Create a wrapper rule that freezes the `context` properties. - create(context) { - freezeDeeply(context.options); - freezeDeeply(context.settings); - freezeDeeply(context.parserOptions); - - // freezeDeeply(context.languageOptions); - - return rule.create(context); - } - }) - } - } - }, - language: defaultConfig[0].language, - languageOptions: { - ...defaultConfig[0].languageOptions - } - }, - ...defaultConfig.slice(1) - ]; - - /** - * Run the rule for the given item - * @param {string|Object} item Item to run the rule against - * @throws {Error} If an invalid schema. - * @returns {Object} Eslint run result - * @private - */ - function runRuleForItem(item) { - const flatConfigArrayOptions = { - baseConfig - }; - - if (item.filename) { - flatConfigArrayOptions.basePath = path.parse(item.filename).root; - } - - const configs = new FlatConfigArray(testerConfig, flatConfigArrayOptions); - - /* - * Modify the returned config so that the parser is wrapped to catch - * access of the start/end properties. This method is called just - * once per code snippet being tested, so each test case gets a clean - * parser. - */ - configs[ConfigArraySymbol.finalizeConfig] = function(...args) { - - // can't do super here :( - const proto = Object.getPrototypeOf(this); - const calculatedConfig = proto[ConfigArraySymbol.finalizeConfig].apply(this, args); - - // wrap the parser to catch start/end property access - calculatedConfig.languageOptions.parser = wrapParser(calculatedConfig.languageOptions.parser); - return calculatedConfig; - }; - - let code, filename, output, beforeAST, afterAST; - - if (typeof item === "string") { - code = item; - } else { - code = item.code; - - /* - * Assumes everything on the item is a config except for the - * parameters used by this tester - */ - const itemConfig = { ...item }; - - for (const parameter of RuleTesterParameters) { - delete itemConfig[parameter]; - } - - // wrap any parsers - if (itemConfig.languageOptions && itemConfig.languageOptions.parser) { - - const parser = itemConfig.languageOptions.parser; - - if (parser && typeof parser !== "object") { - throw new Error("Parser must be an object with a parse() or parseForESLint() method."); - } - - } - - /* - * Create the config object from the tester config and this item - * specific configurations. - */ - configs.push(itemConfig); - } - - if (hasOwnProperty(item, "only")) { - assert.ok(typeof item.only === "boolean", "Optional test case property 'only' must be a boolean"); - } - if (hasOwnProperty(item, "filename")) { - assert.ok(typeof item.filename === "string", "Optional test case property 'filename' must be a string"); - filename = item.filename; - } - - let ruleConfig = 1; - - if (hasOwnProperty(item, "options")) { - assert(Array.isArray(item.options), "options must be an array"); - ruleConfig = [1, ...item.options]; - } - - configs.push({ - rules: { - [ruleId]: ruleConfig - } - }); - - let schema; - - try { - schema = getRuleOptionsSchema(rule); - } catch (err) { - err.message += metaSchemaDescription; - throw err; - } - - /* - * Check and throw an error if the schema is an empty object (`schema:{}`), because such schema - * doesn't validate or enforce anything and is therefore considered a possible error. If the intent - * was to skip options validation, `schema:false` should be set instead (explicit opt-out). - * - * For this purpose, a schema object is considered empty if it doesn't have any own enumerable string-keyed - * properties. While `ajv.compile()` does use enumerable properties from the prototype chain as well, - * it caches compiled schemas by serializing only own enumerable properties, so it's generally not a good idea - * to use inherited properties in schemas because schemas that differ only in inherited properties would end up - * having the same cache entry that would be correct for only one of them. - * - * At this point, `schema` can only be an object or `null`. - */ - if (schema && Object.keys(schema).length === 0) { - throw new Error(`\`schema: {}\` is a no-op${metaSchemaDescription}`); - } - - /* - * Setup AST getters. - * The goal is to check whether or not AST was modified when - * running the rule under test. - */ - configs.push({ - plugins: { - "rule-tester": { - rules: { - "validate-ast": { - create() { - return { - Program(node) { - beforeAST = cloneDeeplyExcludesParent(node); - }, - "Program:exit"(node) { - afterAST = node; - } - }; - } - } - } - } - } - }); - - if (schema) { - ajv.validateSchema(schema); - - if (ajv.errors) { - const errors = ajv.errors.map(error => { - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `\t${field}: ${error.message}`; - }).join("\n"); - - throw new Error([`Schema for rule ${ruleName} is invalid:`, errors]); - } - - /* - * `ajv.validateSchema` checks for errors in the structure of the schema (by comparing the schema against a "meta-schema"), - * and it reports those errors individually. However, there are other types of schema errors that only occur when compiling - * the schema (e.g. using invalid defaults in a schema), and only one of these errors can be reported at a time. As a result, - * the schema is compiled here separately from checking for `validateSchema` errors. - */ - try { - ajv.compile(schema); - } catch (err) { - throw new Error(`Schema for rule ${ruleName} is invalid: ${err.message}`); - } - } - - // check for validation errors - try { - configs.normalizeSync(); - configs.getConfig("test.js"); - } catch (error) { - error.message = `ESLint configuration in rule-tester is invalid: ${error.message}`; - throw error; - } - - // Verify the code. - const { applyLanguageOptions, applyInlineConfig, finalize } = SourceCode.prototype; - let messages; - - try { - forbiddenMethods.forEach(methodName => { - SourceCode.prototype[methodName] = throwForbiddenMethodError(methodName, SourceCode.prototype); - }); - - messages = linter.verify(code, configs, filename); - } finally { - SourceCode.prototype.applyInlineConfig = applyInlineConfig; - SourceCode.prototype.applyLanguageOptions = applyLanguageOptions; - SourceCode.prototype.finalize = finalize; - } - - - const fatalErrorMessage = messages.find(m => m.fatal); - - assert(!fatalErrorMessage, `A fatal parsing error occurred: ${fatalErrorMessage && fatalErrorMessage.message}`); - - // Verify if autofix makes a syntax error or not. - if (messages.some(m => m.fix)) { - output = SourceCodeFixer.applyFixes(code, messages).output; - const errorMessageInFix = linter.verify(output, configs, filename).find(m => m.fatal); - - assert(!errorMessageInFix, [ - "A fatal parsing error occurred in autofix.", - `Error: ${errorMessageInFix && errorMessageInFix.message}`, - "Autofix output:", - output - ].join("\n")); - } else { - output = code; - } - - return { - messages, - output, - beforeAST, - afterAST: cloneDeeplyExcludesParent(afterAST), - configs, - filename - }; - } - - /** - * Check if the AST was changed - * @param {ASTNode} beforeAST AST node before running - * @param {ASTNode} afterAST AST node after running - * @returns {void} - * @private - */ - function assertASTDidntChange(beforeAST, afterAST) { - if (!equal(beforeAST, afterAST)) { - assert.fail("Rule should not modify AST."); - } - } - - /** - * Check if this test case is a duplicate of one we have seen before. - * @param {string|Object} item test case object - * @param {Set} seenTestCases set of serialized test cases we have seen so far (managed by this function) - * @returns {void} - * @private - */ - function checkDuplicateTestCase(item, seenTestCases) { - if (!isSerializable(item)) { - - /* - * If we can't serialize a test case (because it contains a function, RegExp, etc), skip the check. - * This might happen with properties like: options, plugins, settings, languageOptions.parser, languageOptions.parserOptions. - */ - return; - } - - const normalizedItem = typeof item === "string" ? { code: item } : item; - const serializedTestCase = stringify(normalizedItem, { - replacer(key, value) { - - // "this" is the currently stringified object --> only ignore top-level properties - return (normalizedItem !== this || !duplicationIgnoredParameters.has(key)) ? value : void 0; - } - }); - - assert( - !seenTestCases.has(serializedTestCase), - "detected duplicate test case" - ); - seenTestCases.add(serializedTestCase); - } - - /** - * Check if the template is valid or not - * all valid cases go through this - * @param {string|Object} item Item to run the rule against - * @returns {void} - * @private - */ - function testValidTemplate(item) { - const code = typeof item === "object" ? item.code : item; - - assert.ok(typeof code === "string", "Test case must specify a string value for 'code'"); - if (item.name) { - assert.ok(typeof item.name === "string", "Optional test case property 'name' must be a string"); - } - - checkDuplicateTestCase(item, seenValidTestCases); - - const result = runRuleForItem(item); - const messages = result.messages; - - assert.strictEqual(messages.length, 0, util.format("Should have no errors but had %d: %s", - messages.length, - util.inspect(messages))); - - assertASTDidntChange(result.beforeAST, result.afterAST); - } - - /** - * Asserts that the message matches its expected value. If the expected - * value is a regular expression, it is checked against the actual - * value. - * @param {string} actual Actual value - * @param {string|RegExp} expected Expected value - * @returns {void} - * @private - */ - function assertMessageMatches(actual, expected) { - if (expected instanceof RegExp) { - - // assert.js doesn't have a built-in RegExp match function - assert.ok( - expected.test(actual), - `Expected '${actual}' to match ${expected}` - ); - } else { - assert.strictEqual(actual, expected); - } - } - - /** - * Check if the template is invalid or not - * all invalid cases go through this. - * @param {string|Object} item Item to run the rule against - * @returns {void} - * @private - */ - function testInvalidTemplate(item) { - assert.ok(typeof item.code === "string", "Test case must specify a string value for 'code'"); - if (item.name) { - assert.ok(typeof item.name === "string", "Optional test case property 'name' must be a string"); - } - assert.ok(item.errors || item.errors === 0, - `Did not specify errors for an invalid test of ${ruleName}`); - - if (Array.isArray(item.errors) && item.errors.length === 0) { - assert.fail("Invalid cases must have at least one error"); - } - - checkDuplicateTestCase(item, seenInvalidTestCases); - - const ruleHasMetaMessages = hasOwnProperty(rule, "meta") && hasOwnProperty(rule.meta, "messages"); - const friendlyIDList = ruleHasMetaMessages ? `[${Object.keys(rule.meta.messages).map(key => `'${key}'`).join(", ")}]` : null; - - const result = runRuleForItem(item); - const messages = result.messages; - - for (const message of messages) { - if (hasOwnProperty(message, "suggestions")) { - - /** @type {Map} */ - const seenMessageIndices = new Map(); - - for (let i = 0; i < message.suggestions.length; i += 1) { - const suggestionMessage = message.suggestions[i].desc; - const previous = seenMessageIndices.get(suggestionMessage); - - assert.ok(!seenMessageIndices.has(suggestionMessage), `Suggestion message '${suggestionMessage}' reported from suggestion ${i} was previously reported by suggestion ${previous}. Suggestion messages should be unique within an error.`); - seenMessageIndices.set(suggestionMessage, i); - } - } - } - - if (typeof item.errors === "number") { - - if (item.errors === 0) { - assert.fail("Invalid cases must have 'error' value greater than 0"); - } - - assert.strictEqual(messages.length, item.errors, util.format("Should have %d error%s but had %d: %s", - item.errors, - item.errors === 1 ? "" : "s", - messages.length, - util.inspect(messages))); - } else { - assert.strictEqual( - messages.length, item.errors.length, util.format( - "Should have %d error%s but had %d: %s", - item.errors.length, - item.errors.length === 1 ? "" : "s", - messages.length, - util.inspect(messages) - ) - ); - - const hasMessageOfThisRule = messages.some(m => m.ruleId === ruleId); - - for (let i = 0, l = item.errors.length; i < l; i++) { - const error = item.errors[i]; - const message = messages[i]; - - assert(hasMessageOfThisRule, "Error rule name should be the same as the name of the rule being tested"); - - if (typeof error === "string" || error instanceof RegExp) { - - // Just an error message. - assertMessageMatches(message.message, error); - assert.ok(message.suggestions === void 0, `Error at index ${i} has suggestions. Please convert the test error into an object and specify 'suggestions' property on it to test suggestions.`); - } else if (typeof error === "object" && error !== null) { - - /* - * Error object. - * This may have a message, messageId, data, node type, line, and/or - * column. - */ - - Object.keys(error).forEach(propertyName => { - assert.ok( - errorObjectParameters.has(propertyName), - `Invalid error property name '${propertyName}'. Expected one of ${friendlyErrorObjectParameterList}.` - ); - }); - - if (hasOwnProperty(error, "message")) { - assert.ok(!hasOwnProperty(error, "messageId"), "Error should not specify both 'message' and a 'messageId'."); - assert.ok(!hasOwnProperty(error, "data"), "Error should not specify both 'data' and 'message'."); - assertMessageMatches(message.message, error.message); - } else if (hasOwnProperty(error, "messageId")) { - assert.ok( - ruleHasMetaMessages, - "Error can not use 'messageId' if rule under test doesn't define 'meta.messages'." - ); - if (!hasOwnProperty(rule.meta.messages, error.messageId)) { - assert(false, `Invalid messageId '${error.messageId}'. Expected one of ${friendlyIDList}.`); - } - assert.strictEqual( - message.messageId, - error.messageId, - `messageId '${message.messageId}' does not match expected messageId '${error.messageId}'.` - ); - - const unsubstitutedPlaceholders = getUnsubstitutedMessagePlaceholders( - message.message, - rule.meta.messages[message.messageId], - error.data - ); - - assert.ok( - unsubstitutedPlaceholders.length === 0, - `The reported message has ${unsubstitutedPlaceholders.length > 1 ? `unsubstituted placeholders: ${unsubstitutedPlaceholders.map(name => `'${name}'`).join(", ")}` : `an unsubstituted placeholder '${unsubstitutedPlaceholders[0]}'`}. Please provide the missing ${unsubstitutedPlaceholders.length > 1 ? "values" : "value"} via the 'data' property in the context.report() call.` - ); - - if (hasOwnProperty(error, "data")) { - - /* - * if data was provided, then directly compare the returned message to a synthetic - * interpolated message using the same message ID and data provided in the test. - * See https://github.com/eslint/eslint/issues/9890 for context. - */ - const unformattedOriginalMessage = rule.meta.messages[error.messageId]; - const rehydratedMessage = interpolate(unformattedOriginalMessage, error.data); - - assert.strictEqual( - message.message, - rehydratedMessage, - `Hydrated message "${rehydratedMessage}" does not match "${message.message}"` - ); - } - } else { - assert.fail("Test error must specify either a 'messageId' or 'message'."); - } - - if (error.type) { - assert.strictEqual(message.nodeType, error.type, `Error type should be ${error.type}, found ${message.nodeType}`); - } - - if (hasOwnProperty(error, "line")) { - assert.strictEqual(message.line, error.line, `Error line should be ${error.line}`); - } - - if (hasOwnProperty(error, "column")) { - assert.strictEqual(message.column, error.column, `Error column should be ${error.column}`); - } - - if (hasOwnProperty(error, "endLine")) { - assert.strictEqual(message.endLine, error.endLine, `Error endLine should be ${error.endLine}`); - } - - if (hasOwnProperty(error, "endColumn")) { - assert.strictEqual(message.endColumn, error.endColumn, `Error endColumn should be ${error.endColumn}`); - } - - assert.ok(!message.suggestions || hasOwnProperty(error, "suggestions"), `Error at index ${i} has suggestions. Please specify 'suggestions' property on the test error object.`); - if (hasOwnProperty(error, "suggestions")) { - - // Support asserting there are no suggestions - const expectsSuggestions = Array.isArray(error.suggestions) ? error.suggestions.length > 0 : Boolean(error.suggestions); - const hasSuggestions = message.suggestions !== void 0; - - if (!hasSuggestions && expectsSuggestions) { - assert.ok(!error.suggestions, `Error should have suggestions on error with message: "${message.message}"`); - } else if (hasSuggestions) { - assert.ok(expectsSuggestions, `Error should have no suggestions on error with message: "${message.message}"`); - if (typeof error.suggestions === "number") { - assert.strictEqual(message.suggestions.length, error.suggestions, `Error should have ${error.suggestions} suggestions. Instead found ${message.suggestions.length} suggestions`); - } else if (Array.isArray(error.suggestions)) { - assert.strictEqual(message.suggestions.length, error.suggestions.length, `Error should have ${error.suggestions.length} suggestions. Instead found ${message.suggestions.length} suggestions`); - - error.suggestions.forEach((expectedSuggestion, index) => { - assert.ok( - typeof expectedSuggestion === "object" && expectedSuggestion !== null, - "Test suggestion in 'suggestions' array must be an object." - ); - Object.keys(expectedSuggestion).forEach(propertyName => { - assert.ok( - suggestionObjectParameters.has(propertyName), - `Invalid suggestion property name '${propertyName}'. Expected one of ${friendlySuggestionObjectParameterList}.` - ); - }); - - const actualSuggestion = message.suggestions[index]; - const suggestionPrefix = `Error Suggestion at index ${index}:`; - - if (hasOwnProperty(expectedSuggestion, "desc")) { - assert.ok( - !hasOwnProperty(expectedSuggestion, "data"), - `${suggestionPrefix} Test should not specify both 'desc' and 'data'.` - ); - assert.ok( - !hasOwnProperty(expectedSuggestion, "messageId"), - `${suggestionPrefix} Test should not specify both 'desc' and 'messageId'.` - ); - assert.strictEqual( - actualSuggestion.desc, - expectedSuggestion.desc, - `${suggestionPrefix} desc should be "${expectedSuggestion.desc}" but got "${actualSuggestion.desc}" instead.` - ); - } else if (hasOwnProperty(expectedSuggestion, "messageId")) { - assert.ok( - ruleHasMetaMessages, - `${suggestionPrefix} Test can not use 'messageId' if rule under test doesn't define 'meta.messages'.` - ); - assert.ok( - hasOwnProperty(rule.meta.messages, expectedSuggestion.messageId), - `${suggestionPrefix} Test has invalid messageId '${expectedSuggestion.messageId}', the rule under test allows only one of ${friendlyIDList}.` - ); - assert.strictEqual( - actualSuggestion.messageId, - expectedSuggestion.messageId, - `${suggestionPrefix} messageId should be '${expectedSuggestion.messageId}' but got '${actualSuggestion.messageId}' instead.` - ); - - const unsubstitutedPlaceholders = getUnsubstitutedMessagePlaceholders( - actualSuggestion.desc, - rule.meta.messages[expectedSuggestion.messageId], - expectedSuggestion.data - ); - - assert.ok( - unsubstitutedPlaceholders.length === 0, - `The message of the suggestion has ${unsubstitutedPlaceholders.length > 1 ? `unsubstituted placeholders: ${unsubstitutedPlaceholders.map(name => `'${name}'`).join(", ")}` : `an unsubstituted placeholder '${unsubstitutedPlaceholders[0]}'`}. Please provide the missing ${unsubstitutedPlaceholders.length > 1 ? "values" : "value"} via the 'data' property for the suggestion in the context.report() call.` - ); - - if (hasOwnProperty(expectedSuggestion, "data")) { - const unformattedMetaMessage = rule.meta.messages[expectedSuggestion.messageId]; - const rehydratedDesc = interpolate(unformattedMetaMessage, expectedSuggestion.data); - - assert.strictEqual( - actualSuggestion.desc, - rehydratedDesc, - `${suggestionPrefix} Hydrated test desc "${rehydratedDesc}" does not match received desc "${actualSuggestion.desc}".` - ); - } - } else if (hasOwnProperty(expectedSuggestion, "data")) { - assert.fail( - `${suggestionPrefix} Test must specify 'messageId' if 'data' is used.` - ); - } else { - assert.fail( - `${suggestionPrefix} Test must specify either 'messageId' or 'desc'.` - ); - } - - assert.ok(hasOwnProperty(expectedSuggestion, "output"), `${suggestionPrefix} The "output" property is required.`); - const codeWithAppliedSuggestion = SourceCodeFixer.applyFixes(item.code, [actualSuggestion]).output; - - // Verify if suggestion fix makes a syntax error or not. - const errorMessageInSuggestion = - linter.verify(codeWithAppliedSuggestion, result.configs, result.filename).find(m => m.fatal); - - assert(!errorMessageInSuggestion, [ - "A fatal parsing error occurred in suggestion fix.", - `Error: ${errorMessageInSuggestion && errorMessageInSuggestion.message}`, - "Suggestion output:", - codeWithAppliedSuggestion - ].join("\n")); - - assert.strictEqual(codeWithAppliedSuggestion, expectedSuggestion.output, `Expected the applied suggestion fix to match the test suggestion output for suggestion at index: ${index} on error with message: "${message.message}"`); - assert.notStrictEqual(expectedSuggestion.output, item.code, `The output of a suggestion should differ from the original source code for suggestion at index: ${index} on error with message: "${message.message}"`); - }); - } else { - assert.fail("Test error object property 'suggestions' should be an array or a number"); - } - } - } - } else { - - // Message was an unexpected type - assert.fail(`Error should be a string, object, or RegExp, but found (${util.inspect(message)})`); - } - } - } - - if (hasOwnProperty(item, "output")) { - if (item.output === null) { - assert.strictEqual( - result.output, - item.code, - "Expected no autofixes to be suggested" - ); - } else { - assert.strictEqual(result.output, item.output, "Output is incorrect."); - assert.notStrictEqual(item.code, item.output, "Test property 'output' matches 'code'. If no autofix is expected, then omit the 'output' property or set it to null."); - } - } else { - assert.strictEqual( - result.output, - item.code, - "The rule fixed the code. Please add 'output' property." - ); - } - - assertASTDidntChange(result.beforeAST, result.afterAST); - } - - /* - * This creates a mocha test suite and pipes all supplied info through - * one of the templates above. - * The test suites for valid/invalid are created conditionally as - * test runners (eg. vitest) fail for empty test suites. - */ - this.constructor.describe(ruleName, () => { - if (test.valid.length > 0) { - this.constructor.describe("valid", () => { - test.valid.forEach(valid => { - this.constructor[valid.only ? "itOnly" : "it"]( - sanitize(typeof valid === "object" ? valid.name || valid.code : valid), - () => { - testValidTemplate(valid); - } - ); - }); - }); - } - - if (test.invalid.length > 0) { - this.constructor.describe("invalid", () => { - test.invalid.forEach(invalid => { - this.constructor[invalid.only ? "itOnly" : "it"]( - sanitize(invalid.name || invalid.code), - () => { - testInvalidTemplate(invalid); - } - ); - }); - }); - } - }); - } -} - -RuleTester[DESCRIBE] = RuleTester[IT] = RuleTester[IT_ONLY] = null; - -module.exports = RuleTester; diff --git a/graphql/node_modules/eslint/lib/rules/accessor-pairs.js b/graphql/node_modules/eslint/lib/rules/accessor-pairs.js deleted file mode 100644 index f9703289..00000000 --- a/graphql/node_modules/eslint/lib/rules/accessor-pairs.js +++ /dev/null @@ -1,346 +0,0 @@ -/** - * @fileoverview Rule to enforce getter and setter pairs in objects and classes. - * @author Gyandeep Singh - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * Property name if it can be computed statically, otherwise the list of the tokens of the key node. - * @typedef {string|Token[]} Key - */ - -/** - * Accessor nodes with the same key. - * @typedef {Object} AccessorData - * @property {Key} key Accessor's key - * @property {ASTNode[]} getters List of getter nodes. - * @property {ASTNode[]} setters List of setter nodes. - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not the given lists represent the equal tokens in the same order. - * Tokens are compared by their properties, not by instance. - * @param {Token[]} left First list of tokens. - * @param {Token[]} right Second list of tokens. - * @returns {boolean} `true` if the lists have same tokens. - */ -function areEqualTokenLists(left, right) { - if (left.length !== right.length) { - return false; - } - - for (let i = 0; i < left.length; i++) { - const leftToken = left[i], - rightToken = right[i]; - - if (leftToken.type !== rightToken.type || leftToken.value !== rightToken.value) { - return false; - } - } - - return true; -} - -/** - * Checks whether or not the given keys are equal. - * @param {Key} left First key. - * @param {Key} right Second key. - * @returns {boolean} `true` if the keys are equal. - */ -function areEqualKeys(left, right) { - if (typeof left === "string" && typeof right === "string") { - - // Statically computed names. - return left === right; - } - if (Array.isArray(left) && Array.isArray(right)) { - - // Token lists. - return areEqualTokenLists(left, right); - } - - return false; -} - -/** - * Checks whether or not a given node is of an accessor kind ('get' or 'set'). - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is of an accessor kind. - */ -function isAccessorKind(node) { - return node.kind === "get" || node.kind === "set"; -} - -/** - * Checks whether or not a given node is an argument of a specified method call. - * @param {ASTNode} node A node to check. - * @param {number} index An expected index of the node in arguments. - * @param {string} object An expected name of the object of the method. - * @param {string} property An expected name of the method. - * @returns {boolean} `true` if the node is an argument of the specified method call. - */ -function isArgumentOfMethodCall(node, index, object, property) { - const parent = node.parent; - - return ( - parent.type === "CallExpression" && - astUtils.isSpecificMemberAccess(parent.callee, object, property) && - parent.arguments[index] === node - ); -} - -/** - * Checks whether or not a given node is a property descriptor. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a property descriptor. - */ -function isPropertyDescriptor(node) { - - // Object.defineProperty(obj, "foo", {set: ...}) - if (isArgumentOfMethodCall(node, 2, "Object", "defineProperty") || - isArgumentOfMethodCall(node, 2, "Reflect", "defineProperty") - ) { - return true; - } - - /* - * Object.defineProperties(obj, {foo: {set: ...}}) - * Object.create(proto, {foo: {set: ...}}) - */ - const grandparent = node.parent.parent; - - return grandparent.type === "ObjectExpression" && ( - isArgumentOfMethodCall(grandparent, 1, "Object", "create") || - isArgumentOfMethodCall(grandparent, 1, "Object", "defineProperties") - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce getter and setter pairs in objects and classes", - recommended: false, - url: "https://eslint.org/docs/latest/rules/accessor-pairs" - }, - - schema: [{ - type: "object", - properties: { - getWithoutSet: { - type: "boolean", - default: false - }, - setWithoutGet: { - type: "boolean", - default: true - }, - enforceForClassMembers: { - type: "boolean", - default: true - } - }, - additionalProperties: false - }], - - messages: { - missingGetterInPropertyDescriptor: "Getter is not present in property descriptor.", - missingSetterInPropertyDescriptor: "Setter is not present in property descriptor.", - missingGetterInObjectLiteral: "Getter is not present for {{ name }}.", - missingSetterInObjectLiteral: "Setter is not present for {{ name }}.", - missingGetterInClass: "Getter is not present for class {{ name }}.", - missingSetterInClass: "Setter is not present for class {{ name }}." - } - }, - create(context) { - const config = context.options[0] || {}; - const checkGetWithoutSet = config.getWithoutSet === true; - const checkSetWithoutGet = config.setWithoutGet !== false; - const enforceForClassMembers = config.enforceForClassMembers !== false; - const sourceCode = context.sourceCode; - - /** - * Reports the given node. - * @param {ASTNode} node The node to report. - * @param {string} messageKind "missingGetter" or "missingSetter". - * @returns {void} - * @private - */ - function report(node, messageKind) { - if (node.type === "Property") { - context.report({ - node, - messageId: `${messageKind}InObjectLiteral`, - loc: astUtils.getFunctionHeadLoc(node.value, sourceCode), - data: { name: astUtils.getFunctionNameWithKind(node.value) } - }); - } else if (node.type === "MethodDefinition") { - context.report({ - node, - messageId: `${messageKind}InClass`, - loc: astUtils.getFunctionHeadLoc(node.value, sourceCode), - data: { name: astUtils.getFunctionNameWithKind(node.value) } - }); - } else { - context.report({ - node, - messageId: `${messageKind}InPropertyDescriptor` - }); - } - } - - /** - * Reports each of the nodes in the given list using the same messageId. - * @param {ASTNode[]} nodes Nodes to report. - * @param {string} messageKind "missingGetter" or "missingSetter". - * @returns {void} - * @private - */ - function reportList(nodes, messageKind) { - for (const node of nodes) { - report(node, messageKind); - } - } - - /** - * Checks accessor pairs in the given list of nodes. - * @param {ASTNode[]} nodes The list to check. - * @returns {void} - * @private - */ - function checkList(nodes) { - const accessors = []; - let found = false; - - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - - if (isAccessorKind(node)) { - - // Creates a new `AccessorData` object for the given getter or setter node. - const name = astUtils.getStaticPropertyName(node); - const key = (name !== null) ? name : sourceCode.getTokens(node.key); - - // Merges the given `AccessorData` object into the given accessors list. - for (let j = 0; j < accessors.length; j++) { - const accessor = accessors[j]; - - if (areEqualKeys(accessor.key, key)) { - accessor.getters.push(...node.kind === "get" ? [node] : []); - accessor.setters.push(...node.kind === "set" ? [node] : []); - found = true; - break; - } - } - if (!found) { - accessors.push({ - key, - getters: node.kind === "get" ? [node] : [], - setters: node.kind === "set" ? [node] : [] - }); - } - found = false; - } - } - - for (const { getters, setters } of accessors) { - if (checkSetWithoutGet && setters.length && !getters.length) { - reportList(setters, "missingGetter"); - } - if (checkGetWithoutSet && getters.length && !setters.length) { - reportList(getters, "missingSetter"); - } - } - } - - /** - * Checks accessor pairs in an object literal. - * @param {ASTNode} node `ObjectExpression` node to check. - * @returns {void} - * @private - */ - function checkObjectLiteral(node) { - checkList(node.properties.filter(p => p.type === "Property")); - } - - /** - * Checks accessor pairs in a property descriptor. - * @param {ASTNode} node Property descriptor `ObjectExpression` node to check. - * @returns {void} - * @private - */ - function checkPropertyDescriptor(node) { - const namesToCheck = new Set(node.properties - .filter(p => p.type === "Property" && p.kind === "init" && !p.computed) - .map(({ key }) => key.name)); - - const hasGetter = namesToCheck.has("get"); - const hasSetter = namesToCheck.has("set"); - - if (checkSetWithoutGet && hasSetter && !hasGetter) { - report(node, "missingGetter"); - } - if (checkGetWithoutSet && hasGetter && !hasSetter) { - report(node, "missingSetter"); - } - } - - /** - * Checks the given object expression as an object literal and as a possible property descriptor. - * @param {ASTNode} node `ObjectExpression` node to check. - * @returns {void} - * @private - */ - function checkObjectExpression(node) { - checkObjectLiteral(node); - if (isPropertyDescriptor(node)) { - checkPropertyDescriptor(node); - } - } - - /** - * Checks the given class body. - * @param {ASTNode} node `ClassBody` node to check. - * @returns {void} - * @private - */ - function checkClassBody(node) { - const methodDefinitions = node.body.filter(m => m.type === "MethodDefinition"); - - checkList(methodDefinitions.filter(m => m.static)); - checkList(methodDefinitions.filter(m => !m.static)); - } - - const listeners = {}; - - if (checkSetWithoutGet || checkGetWithoutSet) { - listeners.ObjectExpression = checkObjectExpression; - if (enforceForClassMembers) { - listeners.ClassBody = checkClassBody; - } - } - - return listeners; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/array-bracket-newline.js b/graphql/node_modules/eslint/lib/rules/array-bracket-newline.js deleted file mode 100644 index 9eb72582..00000000 --- a/graphql/node_modules/eslint/lib/rules/array-bracket-newline.js +++ /dev/null @@ -1,261 +0,0 @@ -/** - * @fileoverview Rule to enforce linebreaks after open and before close array brackets - * @author Jan Peer Stöcklmair - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce linebreaks after opening and before closing array brackets", - recommended: false, - url: "https://eslint.org/docs/latest/rules/array-bracket-newline" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never", "consistent"] - }, - { - type: "object", - properties: { - multiline: { - type: "boolean" - }, - minItems: { - type: ["integer", "null"], - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - unexpectedOpeningLinebreak: "There should be no linebreak after '['.", - unexpectedClosingLinebreak: "There should be no linebreak before ']'.", - missingOpeningLinebreak: "A linebreak is required after '['.", - missingClosingLinebreak: "A linebreak is required before ']'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Normalizes a given option value. - * @param {string|Object|undefined} option An option value to parse. - * @returns {{multiline: boolean, minItems: number}} Normalized option object. - */ - function normalizeOptionValue(option) { - let consistent = false; - let multiline = false; - let minItems; - - if (option) { - if (option === "consistent") { - consistent = true; - minItems = Number.POSITIVE_INFINITY; - } else if (option === "always" || option.minItems === 0) { - minItems = 0; - } else if (option === "never") { - minItems = Number.POSITIVE_INFINITY; - } else { - multiline = Boolean(option.multiline); - minItems = option.minItems || Number.POSITIVE_INFINITY; - } - } else { - consistent = false; - multiline = true; - minItems = Number.POSITIVE_INFINITY; - } - - return { consistent, multiline, minItems }; - } - - /** - * Normalizes a given option value. - * @param {string|Object|undefined} options An option value to parse. - * @returns {{ArrayExpression: {multiline: boolean, minItems: number}, ArrayPattern: {multiline: boolean, minItems: number}}} Normalized option object. - */ - function normalizeOptions(options) { - const value = normalizeOptionValue(options); - - return { ArrayExpression: value, ArrayPattern: value }; - } - - /** - * Reports that there shouldn't be a linebreak after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoBeginningLinebreak(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "unexpectedOpeningLinebreak", - fix(fixer) { - const nextToken = sourceCode.getTokenAfter(token, { includeComments: true }); - - if (astUtils.isCommentToken(nextToken)) { - return null; - } - - return fixer.removeRange([token.range[1], nextToken.range[0]]); - } - }); - } - - /** - * Reports that there shouldn't be a linebreak before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoEndingLinebreak(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "unexpectedClosingLinebreak", - fix(fixer) { - const previousToken = sourceCode.getTokenBefore(token, { includeComments: true }); - - if (astUtils.isCommentToken(previousToken)) { - return null; - } - - return fixer.removeRange([previousToken.range[1], token.range[0]]); - } - }); - } - - /** - * Reports that there should be a linebreak after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredBeginningLinebreak(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingOpeningLinebreak", - fix(fixer) { - return fixer.insertTextAfter(token, "\n"); - } - }); - } - - /** - * Reports that there should be a linebreak before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredEndingLinebreak(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingClosingLinebreak", - fix(fixer) { - return fixer.insertTextBefore(token, "\n"); - } - }); - } - - /** - * Reports a given node if it violated this rule. - * @param {ASTNode} node A node to check. This is an ArrayExpression node or an ArrayPattern node. - * @returns {void} - */ - function check(node) { - const elements = node.elements; - const normalizedOptions = normalizeOptions(context.options[0]); - const options = normalizedOptions[node.type]; - const openBracket = sourceCode.getFirstToken(node); - const closeBracket = sourceCode.getLastToken(node); - const firstIncComment = sourceCode.getTokenAfter(openBracket, { includeComments: true }); - const lastIncComment = sourceCode.getTokenBefore(closeBracket, { includeComments: true }); - const first = sourceCode.getTokenAfter(openBracket); - const last = sourceCode.getTokenBefore(closeBracket); - - const needsLinebreaks = ( - elements.length >= options.minItems || - ( - options.multiline && - elements.length > 0 && - firstIncComment.loc.start.line !== lastIncComment.loc.end.line - ) || - ( - elements.length === 0 && - firstIncComment.type === "Block" && - firstIncComment.loc.start.line !== lastIncComment.loc.end.line && - firstIncComment === lastIncComment - ) || - ( - options.consistent && - openBracket.loc.end.line !== first.loc.start.line - ) - ); - - /* - * Use tokens or comments to check multiline or not. - * But use only tokens to check whether linebreaks are needed. - * This allows: - * var arr = [ // eslint-disable-line foo - * 'a' - * ] - */ - - if (needsLinebreaks) { - if (astUtils.isTokenOnSameLine(openBracket, first)) { - reportRequiredBeginningLinebreak(node, openBracket); - } - if (astUtils.isTokenOnSameLine(last, closeBracket)) { - reportRequiredEndingLinebreak(node, closeBracket); - } - } else { - if (!astUtils.isTokenOnSameLine(openBracket, first)) { - reportNoBeginningLinebreak(node, openBracket); - } - if (!astUtils.isTokenOnSameLine(last, closeBracket)) { - reportNoEndingLinebreak(node, closeBracket); - } - } - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - ArrayPattern: check, - ArrayExpression: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/array-bracket-spacing.js b/graphql/node_modules/eslint/lib/rules/array-bracket-spacing.js deleted file mode 100644 index 31ace985..00000000 --- a/graphql/node_modules/eslint/lib/rules/array-bracket-spacing.js +++ /dev/null @@ -1,244 +0,0 @@ -/** - * @fileoverview Disallows or enforces spaces inside of array brackets. - * @author Jamund Ferguson - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing inside array brackets", - recommended: false, - url: "https://eslint.org/docs/latest/rules/array-bracket-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - singleValue: { - type: "boolean" - }, - objectsInArrays: { - type: "boolean" - }, - arraysInArrays: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedSpaceAfter: "There should be no space after '{{tokenValue}}'.", - unexpectedSpaceBefore: "There should be no space before '{{tokenValue}}'.", - missingSpaceAfter: "A space is required after '{{tokenValue}}'.", - missingSpaceBefore: "A space is required before '{{tokenValue}}'." - } - }, - create(context) { - const spaced = context.options[0] === "always", - sourceCode = context.sourceCode; - - /** - * Determines whether an option is set, relative to the spacing option. - * If spaced is "always", then check whether option is set to false. - * If spaced is "never", then check whether option is set to true. - * @param {Object} option The option to exclude. - * @returns {boolean} Whether or not the property is excluded. - */ - function isOptionSet(option) { - return context.options[1] ? context.options[1][option] === !spaced : false; - } - - const options = { - spaced, - singleElementException: isOptionSet("singleValue"), - objectsInArraysException: isOptionSet("objectsInArrays"), - arraysInArraysException: isOptionSet("arraysInArrays") - }; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports that there shouldn't be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoBeginningSpace(node, token) { - const nextToken = sourceCode.getTokenAfter(token); - - context.report({ - node, - loc: { start: token.loc.end, end: nextToken.loc.start }, - messageId: "unexpectedSpaceAfter", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.removeRange([token.range[1], nextToken.range[0]]); - } - }); - } - - /** - * Reports that there shouldn't be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoEndingSpace(node, token) { - const previousToken = sourceCode.getTokenBefore(token); - - context.report({ - node, - loc: { start: previousToken.loc.end, end: token.loc.start }, - messageId: "unexpectedSpaceBefore", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.removeRange([previousToken.range[1], token.range[0]]); - } - }); - } - - /** - * Reports that there should be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredBeginningSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingSpaceAfter", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - - /** - * Reports that there should be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredEndingSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingSpaceBefore", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - - /** - * Determines if a node is an object type - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the node is an object type. - */ - function isObjectType(node) { - return node && (node.type === "ObjectExpression" || node.type === "ObjectPattern"); - } - - /** - * Determines if a node is an array type - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the node is an array type. - */ - function isArrayType(node) { - return node && (node.type === "ArrayExpression" || node.type === "ArrayPattern"); - } - - /** - * Validates the spacing around array brackets - * @param {ASTNode} node The node we're checking for spacing - * @returns {void} - */ - function validateArraySpacing(node) { - if (options.spaced && node.elements.length === 0) { - return; - } - - const first = sourceCode.getFirstToken(node), - second = sourceCode.getFirstToken(node, 1), - last = node.typeAnnotation - ? sourceCode.getTokenBefore(node.typeAnnotation) - : sourceCode.getLastToken(node), - penultimate = sourceCode.getTokenBefore(last), - firstElement = node.elements[0], - lastElement = node.elements.at(-1); - - const openingBracketMustBeSpaced = - options.objectsInArraysException && isObjectType(firstElement) || - options.arraysInArraysException && isArrayType(firstElement) || - options.singleElementException && node.elements.length === 1 - ? !options.spaced : options.spaced; - - const closingBracketMustBeSpaced = - options.objectsInArraysException && isObjectType(lastElement) || - options.arraysInArraysException && isArrayType(lastElement) || - options.singleElementException && node.elements.length === 1 - ? !options.spaced : options.spaced; - - if (astUtils.isTokenOnSameLine(first, second)) { - if (openingBracketMustBeSpaced && !sourceCode.isSpaceBetweenTokens(first, second)) { - reportRequiredBeginningSpace(node, first); - } - if (!openingBracketMustBeSpaced && sourceCode.isSpaceBetweenTokens(first, second)) { - reportNoBeginningSpace(node, first); - } - } - - if (first !== penultimate && astUtils.isTokenOnSameLine(penultimate, last)) { - if (closingBracketMustBeSpaced && !sourceCode.isSpaceBetweenTokens(penultimate, last)) { - reportRequiredEndingSpace(node, last); - } - if (!closingBracketMustBeSpaced && sourceCode.isSpaceBetweenTokens(penultimate, last)) { - reportNoEndingSpace(node, last); - } - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ArrayPattern: validateArraySpacing, - ArrayExpression: validateArraySpacing - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/array-callback-return.js b/graphql/node_modules/eslint/lib/rules/array-callback-return.js deleted file mode 100644 index 6d8f258f..00000000 --- a/graphql/node_modules/eslint/lib/rules/array-callback-return.js +++ /dev/null @@ -1,446 +0,0 @@ -/** - * @fileoverview Rule to enforce return statements in callbacks of array's methods - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const TARGET_NODE_TYPE = /^(?:Arrow)?FunctionExpression$/u; -const TARGET_METHODS = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u; - -/** - * Checks a given node is a member access which has the specified name's - * property. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a member access which has - * the specified name's property. The node may be a `(Chain|Member)Expression` node. - */ -function isTargetMethod(node) { - return astUtils.isSpecificMemberAccess(node, null, TARGET_METHODS); -} - -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - -/** - * Returns a human-legible description of an array method - * @param {string} arrayMethodName A method name to fully qualify - * @returns {string} the method name prefixed with `Array.` if it is a class method, - * or else `Array.prototype.` if it is an instance method. - */ -function fullMethodName(arrayMethodName) { - if (["from", "of", "isArray"].includes(arrayMethodName)) { - return "Array.".concat(arrayMethodName); - } - return "Array.prototype.".concat(arrayMethodName); -} - -/** - * Checks whether or not a given node is a function expression which is the - * callback of an array method, returning the method name. - * @param {ASTNode} node A node to check. This is one of - * FunctionExpression or ArrowFunctionExpression. - * @returns {string} The method name if the node is a callback method, - * null otherwise. - */ -function getArrayMethodName(node) { - let currentNode = node; - - while (currentNode) { - const parent = currentNode.parent; - - switch (parent.type) { - - /* - * Looks up the destination. e.g., - * foo.every(nativeFoo || function foo() { ... }); - */ - case "LogicalExpression": - case "ConditionalExpression": - case "ChainExpression": - currentNode = parent; - break; - - /* - * If the upper function is IIFE, checks the destination of the return value. - * e.g. - * foo.every((function() { - * // setup... - * return function callback() { ... }; - * })()); - */ - case "ReturnStatement": { - const func = astUtils.getUpperFunction(parent); - - if (func === null || !astUtils.isCallee(func)) { - return null; - } - currentNode = func.parent; - break; - } - - /* - * e.g. - * Array.from([], function() {}); - * list.every(function() {}); - */ - case "CallExpression": - if (astUtils.isArrayFromMethod(parent.callee)) { - if ( - parent.arguments.length >= 2 && - parent.arguments[1] === currentNode - ) { - return "from"; - } - } - if (isTargetMethod(parent.callee)) { - if ( - parent.arguments.length >= 1 && - parent.arguments[0] === currentNode - ) { - return astUtils.getStaticPropertyName(parent.callee); - } - } - return null; - - // Otherwise this node is not target. - default: - return null; - } - } - - /* c8 ignore next */ - return null; -} - -/** - * Checks if the given node is a void expression. - * @param {ASTNode} node The node to check. - * @returns {boolean} - `true` if the node is a void expression - */ -function isExpressionVoid(node) { - return node.type === "UnaryExpression" && node.operator === "void"; -} - -/** - * Fixes the linting error by prepending "void " to the given node - * @param {Object} sourceCode context given by context.sourceCode - * @param {ASTNode} node The node to fix. - * @param {Object} fixer The fixer object provided by ESLint. - * @returns {Array} - An array of fix objects to apply to the node. - */ -function voidPrependFixer(sourceCode, node, fixer) { - - const requiresParens = - - // prepending `void ` will fail if the node has a lower precedence than void - astUtils.getPrecedence(node) < astUtils.getPrecedence({ type: "UnaryExpression", operator: "void" }) && - - // check if there are parentheses around the node to avoid redundant parentheses - !astUtils.isParenthesised(sourceCode, node); - - // avoid parentheses issues - const returnOrArrowToken = sourceCode.getTokenBefore( - node, - node.parent.type === "ArrowFunctionExpression" - ? astUtils.isArrowToken - - // isReturnToken - : token => token.type === "Keyword" && token.value === "return" - ); - - const firstToken = sourceCode.getTokenAfter(returnOrArrowToken); - - const prependSpace = - - // is return token, as => allows void to be adjacent - returnOrArrowToken.value === "return" && - - // If two tokens (return and "(") are adjacent - returnOrArrowToken.range[1] === firstToken.range[0]; - - return [ - fixer.insertTextBefore(firstToken, `${prependSpace ? " " : ""}void ${requiresParens ? "(" : ""}`), - fixer.insertTextAfter(node, requiresParens ? ")" : "") - ]; -} - -/** - * Fixes the linting error by `wrapping {}` around the given node's body. - * @param {Object} sourceCode context given by context.sourceCode - * @param {ASTNode} node The node to fix. - * @param {Object} fixer The fixer object provided by ESLint. - * @returns {Array} - An array of fix objects to apply to the node. - */ -function curlyWrapFixer(sourceCode, node, fixer) { - const arrowToken = sourceCode.getTokenBefore(node.body, astUtils.isArrowToken); - const firstToken = sourceCode.getTokenAfter(arrowToken); - const lastToken = sourceCode.getLastToken(node); - - return [ - fixer.insertTextBefore(firstToken, "{"), - fixer.insertTextAfter(lastToken, "}") - ]; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Enforce `return` statements in callbacks of array methods", - recommended: false, - url: "https://eslint.org/docs/latest/rules/array-callback-return" - }, - - // eslint-disable-next-line eslint-plugin/require-meta-has-suggestions -- false positive - hasSuggestions: true, - - schema: [ - { - type: "object", - properties: { - allowImplicit: { - type: "boolean", - default: false - }, - checkForEach: { - type: "boolean", - default: false - }, - allowVoid: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - expectedAtEnd: "{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.", - expectedInside: "{{arrayMethodName}}() expects a return value from {{name}}.", - expectedReturnValue: "{{arrayMethodName}}() expects a return value from {{name}}.", - expectedNoReturnValue: "{{arrayMethodName}}() expects no useless return value from {{name}}.", - wrapBraces: "Wrap the expression in `{}`.", - prependVoid: "Prepend `void` to the expression." - } - }, - - create(context) { - - const options = context.options[0] || { allowImplicit: false, checkForEach: false, allowVoid: false }; - const sourceCode = context.sourceCode; - - let funcInfo = { - arrayMethodName: null, - upper: null, - codePath: null, - hasReturn: false, - shouldCheck: false, - node: null - }; - - /** - * Checks whether or not the last code path segment is reachable. - * Then reports this function if the segment is reachable. - * - * If the last code path segment is reachable, there are paths which are not - * returned or thrown. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function checkLastSegment(node) { - - if (!funcInfo.shouldCheck) { - return; - } - - const messageAndSuggestions = { messageId: "", suggest: [] }; - - if (funcInfo.arrayMethodName === "forEach") { - if (options.checkForEach && node.type === "ArrowFunctionExpression" && node.expression) { - - if (options.allowVoid) { - if (isExpressionVoid(node.body)) { - return; - } - - messageAndSuggestions.messageId = "expectedNoReturnValue"; - messageAndSuggestions.suggest = [ - { - messageId: "wrapBraces", - fix(fixer) { - return curlyWrapFixer(sourceCode, node, fixer); - } - }, - { - messageId: "prependVoid", - fix(fixer) { - return voidPrependFixer(sourceCode, node.body, fixer); - } - } - ]; - } else { - messageAndSuggestions.messageId = "expectedNoReturnValue"; - messageAndSuggestions.suggest = [{ - messageId: "wrapBraces", - fix(fixer) { - return curlyWrapFixer(sourceCode, node, fixer); - } - }]; - } - } - } else { - if (node.body.type === "BlockStatement" && isAnySegmentReachable(funcInfo.currentSegments)) { - messageAndSuggestions.messageId = funcInfo.hasReturn ? "expectedAtEnd" : "expectedInside"; - } - } - - if (messageAndSuggestions.messageId) { - const name = astUtils.getFunctionNameWithKind(node); - - context.report({ - node, - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - messageId: messageAndSuggestions.messageId, - data: { name, arrayMethodName: fullMethodName(funcInfo.arrayMethodName) }, - suggest: messageAndSuggestions.suggest.length !== 0 ? messageAndSuggestions.suggest : null - }); - } - } - - return { - - // Stacks this function's information. - onCodePathStart(codePath, node) { - - let methodName = null; - - if (TARGET_NODE_TYPE.test(node.type)) { - methodName = getArrayMethodName(node); - } - - funcInfo = { - arrayMethodName: methodName, - upper: funcInfo, - codePath, - hasReturn: false, - shouldCheck: - methodName && - !node.async && - !node.generator, - node, - currentSegments: new Set() - }; - }, - - // Pops this function's information. - onCodePathEnd() { - funcInfo = funcInfo.upper; - }, - - onUnreachableCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - - // Checks the return statement is valid. - ReturnStatement(node) { - - if (!funcInfo.shouldCheck) { - return; - } - - funcInfo.hasReturn = true; - - const messageAndSuggestions = { messageId: "", suggest: [] }; - - if (funcInfo.arrayMethodName === "forEach") { - - // if checkForEach: true, returning a value at any path inside a forEach is not allowed - if (options.checkForEach && node.argument) { - - if (options.allowVoid) { - if (isExpressionVoid(node.argument)) { - return; - } - - messageAndSuggestions.messageId = "expectedNoReturnValue"; - messageAndSuggestions.suggest = [{ - messageId: "prependVoid", - fix(fixer) { - return voidPrependFixer(sourceCode, node.argument, fixer); - } - }]; - } else { - messageAndSuggestions.messageId = "expectedNoReturnValue"; - } - } - } else { - - // if allowImplicit: false, should also check node.argument - if (!options.allowImplicit && !node.argument) { - messageAndSuggestions.messageId = "expectedReturnValue"; - } - } - - if (messageAndSuggestions.messageId) { - context.report({ - node, - messageId: messageAndSuggestions.messageId, - data: { - name: astUtils.getFunctionNameWithKind(funcInfo.node), - arrayMethodName: fullMethodName(funcInfo.arrayMethodName) - }, - suggest: messageAndSuggestions.suggest.length !== 0 ? messageAndSuggestions.suggest : null - }); - } - }, - - // Reports a given function if the last path is reachable. - "FunctionExpression:exit": checkLastSegment, - "ArrowFunctionExpression:exit": checkLastSegment - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/array-element-newline.js b/graphql/node_modules/eslint/lib/rules/array-element-newline.js deleted file mode 100644 index 504fe04a..00000000 --- a/graphql/node_modules/eslint/lib/rules/array-element-newline.js +++ /dev/null @@ -1,311 +0,0 @@ -/** - * @fileoverview Rule to enforce line breaks after each array element - * @author Jan Peer Stöcklmair - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce line breaks after each array element", - recommended: false, - url: "https://eslint.org/docs/latest/rules/array-element-newline" - }, - - fixable: "whitespace", - - schema: { - definitions: { - basicConfig: { - oneOf: [ - { - enum: ["always", "never", "consistent"] - }, - { - type: "object", - properties: { - multiline: { - type: "boolean" - }, - minItems: { - type: ["integer", "null"], - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - }, - type: "array", - items: [ - { - oneOf: [ - { - $ref: "#/definitions/basicConfig" - }, - { - type: "object", - properties: { - ArrayExpression: { - $ref: "#/definitions/basicConfig" - }, - ArrayPattern: { - $ref: "#/definitions/basicConfig" - } - }, - additionalProperties: false, - minProperties: 1 - } - ] - } - ] - }, - - messages: { - unexpectedLineBreak: "There should be no linebreak here.", - missingLineBreak: "There should be a linebreak after this element." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Normalizes a given option value. - * @param {string|Object|undefined} providedOption An option value to parse. - * @returns {{multiline: boolean, minItems: number}} Normalized option object. - */ - function normalizeOptionValue(providedOption) { - let consistent = false; - let multiline = false; - let minItems; - - const option = providedOption || "always"; - - if (!option || option === "always" || option.minItems === 0) { - minItems = 0; - } else if (option === "never") { - minItems = Number.POSITIVE_INFINITY; - } else if (option === "consistent") { - consistent = true; - minItems = Number.POSITIVE_INFINITY; - } else { - multiline = Boolean(option.multiline); - minItems = option.minItems || Number.POSITIVE_INFINITY; - } - - return { consistent, multiline, minItems }; - } - - /** - * Normalizes a given option value. - * @param {string|Object|undefined} options An option value to parse. - * @returns {{ArrayExpression: {multiline: boolean, minItems: number}, ArrayPattern: {multiline: boolean, minItems: number}}} Normalized option object. - */ - function normalizeOptions(options) { - if (options && (options.ArrayExpression || options.ArrayPattern)) { - let expressionOptions, patternOptions; - - if (options.ArrayExpression) { - expressionOptions = normalizeOptionValue(options.ArrayExpression); - } - - if (options.ArrayPattern) { - patternOptions = normalizeOptionValue(options.ArrayPattern); - } - - return { ArrayExpression: expressionOptions, ArrayPattern: patternOptions }; - } - - const value = normalizeOptionValue(options); - - return { ArrayExpression: value, ArrayPattern: value }; - } - - /** - * Reports that there shouldn't be a line break after the first token - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoLineBreak(token) { - const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true }); - - context.report({ - loc: { - start: tokenBefore.loc.end, - end: token.loc.start - }, - messageId: "unexpectedLineBreak", - fix(fixer) { - if (astUtils.isCommentToken(tokenBefore)) { - return null; - } - - if (!astUtils.isTokenOnSameLine(tokenBefore, token)) { - return fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], " "); - } - - /* - * This will check if the comma is on the same line as the next element - * Following array: - * [ - * 1 - * , 2 - * , 3 - * ] - * - * will be fixed to: - * [ - * 1, 2, 3 - * ] - */ - const twoTokensBefore = sourceCode.getTokenBefore(tokenBefore, { includeComments: true }); - - if (astUtils.isCommentToken(twoTokensBefore)) { - return null; - } - - return fixer.replaceTextRange([twoTokensBefore.range[1], tokenBefore.range[0]], ""); - - } - }); - } - - /** - * Reports that there should be a line break after the first token - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredLineBreak(token) { - const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true }); - - context.report({ - loc: { - start: tokenBefore.loc.end, - end: token.loc.start - }, - messageId: "missingLineBreak", - fix(fixer) { - return fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], "\n"); - } - }); - } - - /** - * Reports a given node if it violated this rule. - * @param {ASTNode} node A node to check. This is an ObjectExpression node or an ObjectPattern node. - * @returns {void} - */ - function check(node) { - const elements = node.elements; - const normalizedOptions = normalizeOptions(context.options[0]); - const options = normalizedOptions[node.type]; - - if (!options) { - return; - } - - let elementBreak = false; - - /* - * MULTILINE: true - * loop through every element and check - * if at least one element has linebreaks inside - * this ensures that following is not valid (due to elements are on the same line): - * - * [ - * 1, - * 2, - * 3 - * ] - */ - if (options.multiline) { - elementBreak = elements - .filter(element => element !== null) - .some(element => element.loc.start.line !== element.loc.end.line); - } - - let linebreaksCount = 0; - - for (let i = 0; i < node.elements.length; i++) { - const element = node.elements[i]; - - const previousElement = elements[i - 1]; - - if (i === 0 || element === null || previousElement === null) { - continue; - } - - const commaToken = sourceCode.getFirstTokenBetween(previousElement, element, astUtils.isCommaToken); - const lastTokenOfPreviousElement = sourceCode.getTokenBefore(commaToken); - const firstTokenOfCurrentElement = sourceCode.getTokenAfter(commaToken); - - if (!astUtils.isTokenOnSameLine(lastTokenOfPreviousElement, firstTokenOfCurrentElement)) { - linebreaksCount++; - } - } - - const needsLinebreaks = ( - elements.length >= options.minItems || - ( - options.multiline && - elementBreak - ) || - ( - options.consistent && - linebreaksCount > 0 && - linebreaksCount < node.elements.length - ) - ); - - elements.forEach((element, i) => { - const previousElement = elements[i - 1]; - - if (i === 0 || element === null || previousElement === null) { - return; - } - - const commaToken = sourceCode.getFirstTokenBetween(previousElement, element, astUtils.isCommaToken); - const lastTokenOfPreviousElement = sourceCode.getTokenBefore(commaToken); - const firstTokenOfCurrentElement = sourceCode.getTokenAfter(commaToken); - - if (needsLinebreaks) { - if (astUtils.isTokenOnSameLine(lastTokenOfPreviousElement, firstTokenOfCurrentElement)) { - reportRequiredLineBreak(firstTokenOfCurrentElement); - } - } else { - if (!astUtils.isTokenOnSameLine(lastTokenOfPreviousElement, firstTokenOfCurrentElement)) { - reportNoLineBreak(firstTokenOfCurrentElement); - } - } - }); - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - ArrayPattern: check, - ArrayExpression: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/arrow-body-style.js b/graphql/node_modules/eslint/lib/rules/arrow-body-style.js deleted file mode 100644 index 75907045..00000000 --- a/graphql/node_modules/eslint/lib/rules/arrow-body-style.js +++ /dev/null @@ -1,296 +0,0 @@ -/** - * @fileoverview Rule to require braces in arrow function body. - * @author Alberto Rodríguez - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require braces around arrow function bodies", - recommended: false, - url: "https://eslint.org/docs/latest/rules/arrow-body-style" - }, - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["always", "never"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["as-needed"] - }, - { - type: "object", - properties: { - requireReturnForObjectLiteral: { type: "boolean" } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - fixable: "code", - - messages: { - unexpectedOtherBlock: "Unexpected block statement surrounding arrow body.", - unexpectedEmptyBlock: "Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.", - unexpectedObjectBlock: "Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.", - unexpectedSingleBlock: "Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.", - expectedBlock: "Expected block statement surrounding arrow body." - } - }, - - create(context) { - const options = context.options; - const always = options[0] === "always"; - const asNeeded = !options[0] || options[0] === "as-needed"; - const never = options[0] === "never"; - const requireReturnForObjectLiteral = options[1] && options[1].requireReturnForObjectLiteral; - const sourceCode = context.sourceCode; - let funcInfo = null; - - /** - * Checks whether the given node has ASI problem or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if it changes semantics if `;` or `}` followed by the token are removed. - */ - function hasASIProblem(token) { - return token && token.type === "Punctuator" && /^[([/`+-]/u.test(token.value); - } - - /** - * Gets the closing parenthesis by the given node. - * @param {ASTNode} node first node after an opening parenthesis. - * @returns {Token} The found closing parenthesis token. - */ - function findClosingParen(node) { - let nodeToCheck = node; - - while (!astUtils.isParenthesised(sourceCode, nodeToCheck)) { - nodeToCheck = nodeToCheck.parent; - } - return sourceCode.getTokenAfter(nodeToCheck); - } - - /** - * Check whether the node is inside of a for loop's init - * @param {ASTNode} node node is inside for loop - * @returns {boolean} `true` if the node is inside of a for loop, else `false` - */ - function isInsideForLoopInitializer(node) { - if (node && node.parent) { - if (node.parent.type === "ForStatement" && node.parent.init === node) { - return true; - } - return isInsideForLoopInitializer(node.parent); - } - return false; - } - - /** - * Determines whether a arrow function body needs braces - * @param {ASTNode} node The arrow function node. - * @returns {void} - */ - function validate(node) { - const arrowBody = node.body; - - if (arrowBody.type === "BlockStatement") { - const blockBody = arrowBody.body; - - if (blockBody.length !== 1 && !never) { - return; - } - - if (asNeeded && requireReturnForObjectLiteral && blockBody[0].type === "ReturnStatement" && - blockBody[0].argument && blockBody[0].argument.type === "ObjectExpression") { - return; - } - - if (never || asNeeded && blockBody[0].type === "ReturnStatement") { - let messageId; - - if (blockBody.length === 0) { - messageId = "unexpectedEmptyBlock"; - } else if (blockBody.length > 1) { - messageId = "unexpectedOtherBlock"; - } else if (blockBody[0].argument === null) { - messageId = "unexpectedSingleBlock"; - } else if (astUtils.isOpeningBraceToken(sourceCode.getFirstToken(blockBody[0], { skip: 1 }))) { - messageId = "unexpectedObjectBlock"; - } else { - messageId = "unexpectedSingleBlock"; - } - - context.report({ - node, - loc: arrowBody.loc, - messageId, - fix(fixer) { - const fixes = []; - - if (blockBody.length !== 1 || - blockBody[0].type !== "ReturnStatement" || - !blockBody[0].argument || - hasASIProblem(sourceCode.getTokenAfter(arrowBody)) - ) { - return fixes; - } - - const openingBrace = sourceCode.getFirstToken(arrowBody); - const closingBrace = sourceCode.getLastToken(arrowBody); - const firstValueToken = sourceCode.getFirstToken(blockBody[0], 1); - const lastValueToken = sourceCode.getLastToken(blockBody[0]); - const commentsExist = - sourceCode.commentsExistBetween(openingBrace, firstValueToken) || - sourceCode.commentsExistBetween(lastValueToken, closingBrace); - - /* - * Remove tokens around the return value. - * If comments don't exist, remove extra spaces as well. - */ - if (commentsExist) { - fixes.push( - fixer.remove(openingBrace), - fixer.remove(closingBrace), - fixer.remove(sourceCode.getTokenAfter(openingBrace)) // return keyword - ); - } else { - fixes.push( - fixer.removeRange([openingBrace.range[0], firstValueToken.range[0]]), - fixer.removeRange([lastValueToken.range[1], closingBrace.range[1]]) - ); - } - - /* - * If the first token of the return value is `{` or the return value is a sequence expression, - * enclose the return value by parentheses to avoid syntax error. - */ - if (astUtils.isOpeningBraceToken(firstValueToken) || blockBody[0].argument.type === "SequenceExpression" || (funcInfo.hasInOperator && isInsideForLoopInitializer(node))) { - if (!astUtils.isParenthesised(sourceCode, blockBody[0].argument)) { - fixes.push( - fixer.insertTextBefore(firstValueToken, "("), - fixer.insertTextAfter(lastValueToken, ")") - ); - } - } - - /* - * If the last token of the return statement is semicolon, remove it. - * Non-block arrow body is an expression, not a statement. - */ - if (astUtils.isSemicolonToken(lastValueToken)) { - fixes.push(fixer.remove(lastValueToken)); - } - - return fixes; - } - }); - } - } else { - if (always || (asNeeded && requireReturnForObjectLiteral && arrowBody.type === "ObjectExpression")) { - context.report({ - node, - loc: arrowBody.loc, - messageId: "expectedBlock", - fix(fixer) { - const fixes = []; - const arrowToken = sourceCode.getTokenBefore(arrowBody, astUtils.isArrowToken); - const [firstTokenAfterArrow, secondTokenAfterArrow] = sourceCode.getTokensAfter(arrowToken, { count: 2 }); - const lastToken = sourceCode.getLastToken(node); - - let parenthesisedObjectLiteral = null; - - if ( - astUtils.isOpeningParenToken(firstTokenAfterArrow) && - astUtils.isOpeningBraceToken(secondTokenAfterArrow) - ) { - const braceNode = sourceCode.getNodeByRangeIndex(secondTokenAfterArrow.range[0]); - - if (braceNode.type === "ObjectExpression") { - parenthesisedObjectLiteral = braceNode; - } - } - - // If the value is object literal, remove parentheses which were forced by syntax. - if (parenthesisedObjectLiteral) { - const openingParenToken = firstTokenAfterArrow; - const openingBraceToken = secondTokenAfterArrow; - - if (astUtils.isTokenOnSameLine(openingParenToken, openingBraceToken)) { - fixes.push(fixer.replaceText(openingParenToken, "{return ")); - } else { - - // Avoid ASI - fixes.push( - fixer.replaceText(openingParenToken, "{"), - fixer.insertTextBefore(openingBraceToken, "return ") - ); - } - - // Closing paren for the object doesn't have to be lastToken, e.g.: () => ({}).foo() - fixes.push(fixer.remove(findClosingParen(parenthesisedObjectLiteral))); - fixes.push(fixer.insertTextAfter(lastToken, "}")); - - } else { - fixes.push(fixer.insertTextBefore(firstTokenAfterArrow, "{return ")); - fixes.push(fixer.insertTextAfter(lastToken, "}")); - } - - return fixes; - } - }); - } - } - } - - return { - "BinaryExpression[operator='in']"() { - let info = funcInfo; - - while (info) { - info.hasInOperator = true; - info = info.upper; - } - }, - ArrowFunctionExpression() { - funcInfo = { - upper: funcInfo, - hasInOperator: false - }; - }, - "ArrowFunctionExpression:exit"(node) { - validate(node); - funcInfo = funcInfo.upper; - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/arrow-parens.js b/graphql/node_modules/eslint/lib/rules/arrow-parens.js deleted file mode 100644 index 2206d8ce..00000000 --- a/graphql/node_modules/eslint/lib/rules/arrow-parens.js +++ /dev/null @@ -1,186 +0,0 @@ -/** - * @fileoverview Rule to require parens in arrow function arguments. - * @author Jxck - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines if the given arrow function has block body. - * @param {ASTNode} node `ArrowFunctionExpression` node. - * @returns {boolean} `true` if the function has block body. - */ -function hasBlockBody(node) { - return node.body.type === "BlockStatement"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require parentheses around arrow function arguments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/arrow-parens" - }, - - fixable: "code", - - schema: [ - { - enum: ["always", "as-needed"] - }, - { - type: "object", - properties: { - requireForBlockBody: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedParens: "Unexpected parentheses around single function argument.", - expectedParens: "Expected parentheses around arrow function argument.", - - unexpectedParensInline: "Unexpected parentheses around single function argument having a body with no curly braces.", - expectedParensBlock: "Expected parentheses around arrow function argument having a body with curly braces." - } - }, - - create(context) { - const asNeeded = context.options[0] === "as-needed"; - const requireForBlockBody = asNeeded && context.options[1] && context.options[1].requireForBlockBody === true; - - const sourceCode = context.sourceCode; - - /** - * Finds opening paren of parameters for the given arrow function, if it exists. - * It is assumed that the given arrow function has exactly one parameter. - * @param {ASTNode} node `ArrowFunctionExpression` node. - * @returns {Token|null} the opening paren, or `null` if the given arrow function doesn't have parens of parameters. - */ - function findOpeningParenOfParams(node) { - const tokenBeforeParams = sourceCode.getTokenBefore(node.params[0]); - - if ( - tokenBeforeParams && - astUtils.isOpeningParenToken(tokenBeforeParams) && - node.range[0] <= tokenBeforeParams.range[0] - ) { - return tokenBeforeParams; - } - - return null; - } - - /** - * Finds closing paren of parameters for the given arrow function. - * It is assumed that the given arrow function has parens of parameters and that it has exactly one parameter. - * @param {ASTNode} node `ArrowFunctionExpression` node. - * @returns {Token} the closing paren of parameters. - */ - function getClosingParenOfParams(node) { - return sourceCode.getTokenAfter(node.params[0], astUtils.isClosingParenToken); - } - - /** - * Determines whether the given arrow function has comments inside parens of parameters. - * It is assumed that the given arrow function has parens of parameters. - * @param {ASTNode} node `ArrowFunctionExpression` node. - * @param {Token} openingParen Opening paren of parameters. - * @returns {boolean} `true` if the function has at least one comment inside of parens of parameters. - */ - function hasCommentsInParensOfParams(node, openingParen) { - return sourceCode.commentsExistBetween(openingParen, getClosingParenOfParams(node)); - } - - /** - * Determines whether the given arrow function has unexpected tokens before opening paren of parameters, - * in which case it will be assumed that the existing parens of parameters are necessary. - * Only tokens within the range of the arrow function (tokens that are part of the arrow function) are taken into account. - * Example: (a) => b - * @param {ASTNode} node `ArrowFunctionExpression` node. - * @param {Token} openingParen Opening paren of parameters. - * @returns {boolean} `true` if the function has at least one unexpected token. - */ - function hasUnexpectedTokensBeforeOpeningParen(node, openingParen) { - const expectedCount = node.async ? 1 : 0; - - return sourceCode.getFirstToken(node, { skip: expectedCount }) !== openingParen; - } - - return { - "ArrowFunctionExpression[params.length=1]"(node) { - const shouldHaveParens = !asNeeded || requireForBlockBody && hasBlockBody(node); - const openingParen = findOpeningParenOfParams(node); - const hasParens = openingParen !== null; - const [param] = node.params; - - if (shouldHaveParens && !hasParens) { - context.report({ - node, - messageId: requireForBlockBody ? "expectedParensBlock" : "expectedParens", - loc: param.loc, - *fix(fixer) { - yield fixer.insertTextBefore(param, "("); - yield fixer.insertTextAfter(param, ")"); - } - }); - } - - if ( - !shouldHaveParens && - hasParens && - param.type === "Identifier" && - !param.typeAnnotation && - !node.returnType && - !hasCommentsInParensOfParams(node, openingParen) && - !hasUnexpectedTokensBeforeOpeningParen(node, openingParen) - ) { - context.report({ - node, - messageId: requireForBlockBody ? "unexpectedParensInline" : "unexpectedParens", - loc: param.loc, - *fix(fixer) { - const tokenBeforeOpeningParen = sourceCode.getTokenBefore(openingParen); - const closingParen = getClosingParenOfParams(node); - - if ( - tokenBeforeOpeningParen && - tokenBeforeOpeningParen.range[1] === openingParen.range[0] && - !astUtils.canTokensBeAdjacent(tokenBeforeOpeningParen, sourceCode.getFirstToken(param)) - ) { - yield fixer.insertTextBefore(openingParen, " "); - } - - // remove parens, whitespace inside parens, and possible trailing comma - yield fixer.removeRange([openingParen.range[0], param.range[0]]); - yield fixer.removeRange([param.range[1], closingParen.range[1]]); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/arrow-spacing.js b/graphql/node_modules/eslint/lib/rules/arrow-spacing.js deleted file mode 100644 index 2b7d464f..00000000 --- a/graphql/node_modules/eslint/lib/rules/arrow-spacing.js +++ /dev/null @@ -1,164 +0,0 @@ -/** - * @fileoverview Rule to define spacing before/after arrow function's arrow. - * @author Jxck - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before and after the arrow in arrow functions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/arrow-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - before: { - type: "boolean", - default: true - }, - after: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - expectedBefore: "Missing space before =>.", - unexpectedBefore: "Unexpected space before =>.", - - expectedAfter: "Missing space after =>.", - unexpectedAfter: "Unexpected space after =>." - } - }, - - create(context) { - - // merge rules with default - const rule = Object.assign({}, context.options[0]); - - rule.before = rule.before !== false; - rule.after = rule.after !== false; - - const sourceCode = context.sourceCode; - - /** - * Get tokens of arrow(`=>`) and before/after arrow. - * @param {ASTNode} node The arrow function node. - * @returns {Object} Tokens of arrow and before/after arrow. - */ - function getTokens(node) { - const arrow = sourceCode.getTokenBefore(node.body, astUtils.isArrowToken); - - return { - before: sourceCode.getTokenBefore(arrow), - arrow, - after: sourceCode.getTokenAfter(arrow) - }; - } - - /** - * Count spaces before/after arrow(`=>`) token. - * @param {Object} tokens Tokens before/after arrow. - * @returns {Object} count of space before/after arrow. - */ - function countSpaces(tokens) { - const before = tokens.arrow.range[0] - tokens.before.range[1]; - const after = tokens.after.range[0] - tokens.arrow.range[1]; - - return { before, after }; - } - - /** - * Determines whether space(s) before after arrow(`=>`) is satisfy rule. - * if before/after value is `true`, there should be space(s). - * if before/after value is `false`, there should be no space. - * @param {ASTNode} node The arrow function node. - * @returns {void} - */ - function spaces(node) { - const tokens = getTokens(node); - const countSpace = countSpaces(tokens); - - if (rule.before) { - - // should be space(s) before arrow - if (countSpace.before === 0) { - context.report({ - node: tokens.before, - messageId: "expectedBefore", - fix(fixer) { - return fixer.insertTextBefore(tokens.arrow, " "); - } - }); - } - } else { - - // should be no space before arrow - if (countSpace.before > 0) { - context.report({ - node: tokens.before, - messageId: "unexpectedBefore", - fix(fixer) { - return fixer.removeRange([tokens.before.range[1], tokens.arrow.range[0]]); - } - }); - } - } - - if (rule.after) { - - // should be space(s) after arrow - if (countSpace.after === 0) { - context.report({ - node: tokens.after, - messageId: "expectedAfter", - fix(fixer) { - return fixer.insertTextAfter(tokens.arrow, " "); - } - }); - } - } else { - - // should be no space after arrow - if (countSpace.after > 0) { - context.report({ - node: tokens.after, - messageId: "unexpectedAfter", - fix(fixer) { - return fixer.removeRange([tokens.arrow.range[1], tokens.after.range[0]]); - } - }); - } - } - } - - return { - ArrowFunctionExpression: spaces - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/block-scoped-var.js b/graphql/node_modules/eslint/lib/rules/block-scoped-var.js deleted file mode 100644 index d65fc074..00000000 --- a/graphql/node_modules/eslint/lib/rules/block-scoped-var.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @fileoverview Rule to check for "block scoped" variables by binding context - * @author Matt DuVall - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce the use of variables within the scope they are defined", - recommended: false, - url: "https://eslint.org/docs/latest/rules/block-scoped-var" - }, - - schema: [], - - messages: { - outOfScope: "'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context." - } - }, - - create(context) { - let stack = []; - const sourceCode = context.sourceCode; - - /** - * Makes a block scope. - * @param {ASTNode} node A node of a scope. - * @returns {void} - */ - function enterScope(node) { - stack.push(node.range); - } - - /** - * Pops the last block scope. - * @returns {void} - */ - function exitScope() { - stack.pop(); - } - - /** - * Reports a given reference. - * @param {eslint-scope.Reference} reference A reference to report. - * @param {eslint-scope.Definition} definition A definition for which to report reference. - * @returns {void} - */ - function report(reference, definition) { - const identifier = reference.identifier; - const definitionPosition = definition.name.loc.start; - - context.report({ - node: identifier, - messageId: "outOfScope", - data: { - name: identifier.name, - definitionLine: definitionPosition.line, - definitionColumn: definitionPosition.column + 1 - } - }); - } - - /** - * Finds and reports references which are outside of valid scopes. - * @param {ASTNode} node A node to get variables. - * @returns {void} - */ - function checkForVariables(node) { - if (node.kind !== "var") { - return; - } - - // Defines a predicate to check whether or not a given reference is outside of valid scope. - const scopeRange = stack.at(-1); - - /** - * Check if a reference is out of scope - * @param {ASTNode} reference node to examine - * @returns {boolean} True is its outside the scope - * @private - */ - function isOutsideOfScope(reference) { - const idRange = reference.identifier.range; - - return idRange[0] < scopeRange[0] || idRange[1] > scopeRange[1]; - } - - // Gets declared variables, and checks its references. - const variables = sourceCode.getDeclaredVariables(node); - - for (let i = 0; i < variables.length; ++i) { - - // Reports. - variables[i] - .references - .filter(isOutsideOfScope) - .forEach(ref => report(ref, variables[i].defs.find(def => def.parent === node))); - } - } - - return { - Program(node) { - stack = [node.range]; - }, - - // Manages scopes. - BlockStatement: enterScope, - "BlockStatement:exit": exitScope, - ForStatement: enterScope, - "ForStatement:exit": exitScope, - ForInStatement: enterScope, - "ForInStatement:exit": exitScope, - ForOfStatement: enterScope, - "ForOfStatement:exit": exitScope, - SwitchStatement: enterScope, - "SwitchStatement:exit": exitScope, - CatchClause: enterScope, - "CatchClause:exit": exitScope, - StaticBlock: enterScope, - "StaticBlock:exit": exitScope, - - // Finds and reports references which are outside of valid scope. - VariableDeclaration: checkForVariables - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/block-spacing.js b/graphql/node_modules/eslint/lib/rules/block-spacing.js deleted file mode 100644 index 9ca46115..00000000 --- a/graphql/node_modules/eslint/lib/rules/block-spacing.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview A rule to disallow or enforce spaces inside of single line blocks. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const util = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow or enforce spaces inside of blocks after opening block and before closing block", - recommended: false, - url: "https://eslint.org/docs/latest/rules/block-spacing" - }, - - fixable: "whitespace", - - schema: [ - { enum: ["always", "never"] } - ], - - messages: { - missing: "Requires a space {{location}} '{{token}}'.", - extra: "Unexpected space(s) {{location}} '{{token}}'." - } - }, - - create(context) { - const always = (context.options[0] !== "never"), - messageId = always ? "missing" : "extra", - sourceCode = context.sourceCode; - - /** - * Gets the open brace token from a given node. - * @param {ASTNode} node A BlockStatement/StaticBlock/SwitchStatement node to get. - * @returns {Token} The token of the open brace. - */ - function getOpenBrace(node) { - if (node.type === "SwitchStatement") { - if (node.cases.length > 0) { - return sourceCode.getTokenBefore(node.cases[0]); - } - return sourceCode.getLastToken(node, 1); - } - - if (node.type === "StaticBlock") { - return sourceCode.getFirstToken(node, { skip: 1 }); // skip the `static` token - } - - // "BlockStatement" - return sourceCode.getFirstToken(node); - } - - /** - * Checks whether or not: - * - given tokens are on same line. - * - there is/isn't a space between given tokens. - * @param {Token} left A token to check. - * @param {Token} right The token which is next to `left`. - * @returns {boolean} - * When the option is `"always"`, `true` if there are one or more spaces between given tokens. - * When the option is `"never"`, `true` if there are not any spaces between given tokens. - * If given tokens are not on same line, it's always `true`. - */ - function isValid(left, right) { - return ( - !util.isTokenOnSameLine(left, right) || - sourceCode.isSpaceBetweenTokens(left, right) === always - ); - } - - /** - * Checks and reports invalid spacing style inside braces. - * @param {ASTNode} node A BlockStatement/StaticBlock/SwitchStatement node to check. - * @returns {void} - */ - function checkSpacingInsideBraces(node) { - - // Gets braces and the first/last token of content. - const openBrace = getOpenBrace(node); - const closeBrace = sourceCode.getLastToken(node); - const firstToken = sourceCode.getTokenAfter(openBrace, { includeComments: true }); - const lastToken = sourceCode.getTokenBefore(closeBrace, { includeComments: true }); - - // Skip if the node is invalid or empty. - if (openBrace.type !== "Punctuator" || - openBrace.value !== "{" || - closeBrace.type !== "Punctuator" || - closeBrace.value !== "}" || - firstToken === closeBrace - ) { - return; - } - - // Skip line comments for option never - if (!always && firstToken.type === "Line") { - return; - } - - // Check. - if (!isValid(openBrace, firstToken)) { - let loc = openBrace.loc; - - if (messageId === "extra") { - loc = { - start: openBrace.loc.end, - end: firstToken.loc.start - }; - } - - context.report({ - node, - loc, - messageId, - data: { - location: "after", - token: openBrace.value - }, - fix(fixer) { - if (always) { - return fixer.insertTextBefore(firstToken, " "); - } - - return fixer.removeRange([openBrace.range[1], firstToken.range[0]]); - } - }); - } - if (!isValid(lastToken, closeBrace)) { - let loc = closeBrace.loc; - - if (messageId === "extra") { - loc = { - start: lastToken.loc.end, - end: closeBrace.loc.start - }; - } - context.report({ - node, - loc, - messageId, - data: { - location: "before", - token: closeBrace.value - }, - fix(fixer) { - if (always) { - return fixer.insertTextAfter(lastToken, " "); - } - - return fixer.removeRange([lastToken.range[1], closeBrace.range[0]]); - } - }); - } - } - - return { - BlockStatement: checkSpacingInsideBraces, - StaticBlock: checkSpacingInsideBraces, - SwitchStatement: checkSpacingInsideBraces - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/brace-style.js b/graphql/node_modules/eslint/lib/rules/brace-style.js deleted file mode 100644 index 0fb4c65e..00000000 --- a/graphql/node_modules/eslint/lib/rules/brace-style.js +++ /dev/null @@ -1,197 +0,0 @@ -/** - * @fileoverview Rule to flag block statements that do not use the one true brace style - * @author Ian Christian Myers - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent brace style for blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/brace-style" - }, - - schema: [ - { - enum: ["1tbs", "stroustrup", "allman"] - }, - { - type: "object", - properties: { - allowSingleLine: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "whitespace", - - messages: { - nextLineOpen: "Opening curly brace does not appear on the same line as controlling statement.", - sameLineOpen: "Opening curly brace appears on the same line as controlling statement.", - blockSameLine: "Statement inside of curly braces should be on next line.", - nextLineClose: "Closing curly brace does not appear on the same line as the subsequent block.", - singleLineClose: "Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.", - sameLineClose: "Closing curly brace appears on the same line as the subsequent block." - } - }, - - create(context) { - const style = context.options[0] || "1tbs", - params = context.options[1] || {}, - sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Fixes a place where a newline unexpectedly appears - * @param {Token} firstToken The token before the unexpected newline - * @param {Token} secondToken The token after the unexpected newline - * @returns {Function} A fixer function to remove the newlines between the tokens - */ - function removeNewlineBetween(firstToken, secondToken) { - const textRange = [firstToken.range[1], secondToken.range[0]]; - const textBetween = sourceCode.text.slice(textRange[0], textRange[1]); - - // Don't do a fix if there is a comment between the tokens - if (textBetween.trim()) { - return null; - } - return fixer => fixer.replaceTextRange(textRange, " "); - } - - /** - * Validates a pair of curly brackets based on the user's config - * @param {Token} openingCurly The opening curly bracket - * @param {Token} closingCurly The closing curly bracket - * @returns {void} - */ - function validateCurlyPair(openingCurly, closingCurly) { - const tokenBeforeOpeningCurly = sourceCode.getTokenBefore(openingCurly); - const tokenAfterOpeningCurly = sourceCode.getTokenAfter(openingCurly); - const tokenBeforeClosingCurly = sourceCode.getTokenBefore(closingCurly); - const singleLineException = params.allowSingleLine && astUtils.isTokenOnSameLine(openingCurly, closingCurly); - - if (style !== "allman" && !astUtils.isTokenOnSameLine(tokenBeforeOpeningCurly, openingCurly)) { - context.report({ - node: openingCurly, - messageId: "nextLineOpen", - fix: removeNewlineBetween(tokenBeforeOpeningCurly, openingCurly) - }); - } - - if (style === "allman" && astUtils.isTokenOnSameLine(tokenBeforeOpeningCurly, openingCurly) && !singleLineException) { - context.report({ - node: openingCurly, - messageId: "sameLineOpen", - fix: fixer => fixer.insertTextBefore(openingCurly, "\n") - }); - } - - if (astUtils.isTokenOnSameLine(openingCurly, tokenAfterOpeningCurly) && tokenAfterOpeningCurly !== closingCurly && !singleLineException) { - context.report({ - node: openingCurly, - messageId: "blockSameLine", - fix: fixer => fixer.insertTextAfter(openingCurly, "\n") - }); - } - - if (tokenBeforeClosingCurly !== openingCurly && !singleLineException && astUtils.isTokenOnSameLine(tokenBeforeClosingCurly, closingCurly)) { - context.report({ - node: closingCurly, - messageId: "singleLineClose", - fix: fixer => fixer.insertTextBefore(closingCurly, "\n") - }); - } - } - - /** - * Validates the location of a token that appears before a keyword (e.g. a newline before `else`) - * @param {Token} curlyToken The closing curly token. This is assumed to precede a keyword token (such as `else` or `finally`). - * @returns {void} - */ - function validateCurlyBeforeKeyword(curlyToken) { - const keywordToken = sourceCode.getTokenAfter(curlyToken); - - if (style === "1tbs" && !astUtils.isTokenOnSameLine(curlyToken, keywordToken)) { - context.report({ - node: curlyToken, - messageId: "nextLineClose", - fix: removeNewlineBetween(curlyToken, keywordToken) - }); - } - - if (style !== "1tbs" && astUtils.isTokenOnSameLine(curlyToken, keywordToken)) { - context.report({ - node: curlyToken, - messageId: "sameLineClose", - fix: fixer => fixer.insertTextAfter(curlyToken, "\n") - }); - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - BlockStatement(node) { - if (!astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type)) { - validateCurlyPair(sourceCode.getFirstToken(node), sourceCode.getLastToken(node)); - } - }, - StaticBlock(node) { - validateCurlyPair( - sourceCode.getFirstToken(node, { skip: 1 }), // skip the `static` token - sourceCode.getLastToken(node) - ); - }, - ClassBody(node) { - validateCurlyPair(sourceCode.getFirstToken(node), sourceCode.getLastToken(node)); - }, - SwitchStatement(node) { - const closingCurly = sourceCode.getLastToken(node); - const openingCurly = sourceCode.getTokenBefore(node.cases.length ? node.cases[0] : closingCurly); - - validateCurlyPair(openingCurly, closingCurly); - }, - IfStatement(node) { - if (node.consequent.type === "BlockStatement" && node.alternate) { - - // Handle the keyword after the `if` block (before `else`) - validateCurlyBeforeKeyword(sourceCode.getLastToken(node.consequent)); - } - }, - TryStatement(node) { - - // Handle the keyword after the `try` block (before `catch` or `finally`) - validateCurlyBeforeKeyword(sourceCode.getLastToken(node.block)); - - if (node.handler && node.finalizer) { - - // Handle the keyword after the `catch` block (before `finally`) - validateCurlyBeforeKeyword(sourceCode.getLastToken(node.handler.body)); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/callback-return.js b/graphql/node_modules/eslint/lib/rules/callback-return.js deleted file mode 100644 index ffc34b16..00000000 --- a/graphql/node_modules/eslint/lib/rules/callback-return.js +++ /dev/null @@ -1,187 +0,0 @@ -/** - * @fileoverview Enforce return after a callback. - * @author Jamund Ferguson - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Require `return` statements after callbacks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/callback-return" - }, - - schema: [{ - type: "array", - items: { type: "string" } - }], - - messages: { - missingReturn: "Expected return with your callback function." - } - }, - - create(context) { - - const callbacks = context.options[0] || ["callback", "cb", "next"], - sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Find the closest parent matching a list of types. - * @param {ASTNode} node The node whose parents we are searching - * @param {Array} types The node types to match - * @returns {ASTNode} The matched node or undefined. - */ - function findClosestParentOfType(node, types) { - if (!node.parent) { - return null; - } - if (!types.includes(node.parent.type)) { - return findClosestParentOfType(node.parent, types); - } - return node.parent; - } - - /** - * Check to see if a node contains only identifiers - * @param {ASTNode} node The node to check - * @returns {boolean} Whether or not the node contains only identifiers - */ - function containsOnlyIdentifiers(node) { - if (node.type === "Identifier") { - return true; - } - - if (node.type === "MemberExpression") { - if (node.object.type === "Identifier") { - return true; - } - if (node.object.type === "MemberExpression") { - return containsOnlyIdentifiers(node.object); - } - } - - return false; - } - - /** - * Check to see if a CallExpression is in our callback list. - * @param {ASTNode} node The node to check against our callback names list. - * @returns {boolean} Whether or not this function matches our callback name. - */ - function isCallback(node) { - return containsOnlyIdentifiers(node.callee) && callbacks.includes(sourceCode.getText(node.callee)); - } - - /** - * Determines whether or not the callback is part of a callback expression. - * @param {ASTNode} node The callback node - * @param {ASTNode} parentNode The expression node - * @returns {boolean} Whether or not this is part of a callback expression - */ - function isCallbackExpression(node, parentNode) { - - // ensure the parent node exists and is an expression - if (!parentNode || parentNode.type !== "ExpressionStatement") { - return false; - } - - // cb() - if (parentNode.expression === node) { - return true; - } - - // special case for cb && cb() and similar - if (parentNode.expression.type === "BinaryExpression" || parentNode.expression.type === "LogicalExpression") { - if (parentNode.expression.right === node) { - return true; - } - } - - return false; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - CallExpression(node) { - - // if we're not a callback we can return - if (!isCallback(node)) { - return; - } - - // find the closest block, return or loop - const closestBlock = findClosestParentOfType(node, ["BlockStatement", "ReturnStatement", "ArrowFunctionExpression"]) || {}; - - // if our parent is a return we know we're ok - if (closestBlock.type === "ReturnStatement") { - return; - } - - // arrow functions don't always have blocks and implicitly return - if (closestBlock.type === "ArrowFunctionExpression") { - return; - } - - // block statements are part of functions and most if statements - if (closestBlock.type === "BlockStatement") { - - // find the last item in the block - const lastItem = closestBlock.body.at(-1); - - // if the callback is the last thing in a block that might be ok - if (isCallbackExpression(node, lastItem)) { - - const parentType = closestBlock.parent.type; - - // but only if the block is part of a function - if (parentType === "FunctionExpression" || - parentType === "FunctionDeclaration" || - parentType === "ArrowFunctionExpression" - ) { - return; - } - - } - - // ending a block with a return is also ok - if (lastItem.type === "ReturnStatement") { - - // but only if the callback is immediately before - if (isCallbackExpression(node, closestBlock.body.at(-2))) { - return; - } - } - - } - - // as long as you're the child of a function at this point you should be asked to return - if (findClosestParentOfType(node, ["FunctionDeclaration", "FunctionExpression", "ArrowFunctionExpression"])) { - context.report({ node, messageId: "missingReturn" }); - } - - } - - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/camelcase.js b/graphql/node_modules/eslint/lib/rules/camelcase.js deleted file mode 100644 index 3c5a7b9c..00000000 --- a/graphql/node_modules/eslint/lib/rules/camelcase.js +++ /dev/null @@ -1,397 +0,0 @@ -/** - * @fileoverview Rule to flag non-camelcased identifiers - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce camelcase naming convention", - recommended: false, - url: "https://eslint.org/docs/latest/rules/camelcase" - }, - - schema: [ - { - type: "object", - properties: { - ignoreDestructuring: { - type: "boolean", - default: false - }, - ignoreImports: { - type: "boolean", - default: false - }, - ignoreGlobals: { - type: "boolean", - default: false - }, - properties: { - enum: ["always", "never"] - }, - allow: { - type: "array", - items: { - type: "string" - }, - minItems: 0, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - notCamelCase: "Identifier '{{name}}' is not in camel case.", - notCamelCasePrivate: "#{{name}} is not in camel case." - } - }, - - create(context) { - const options = context.options[0] || {}; - const properties = options.properties === "never" ? "never" : "always"; - const ignoreDestructuring = options.ignoreDestructuring; - const ignoreImports = options.ignoreImports; - const ignoreGlobals = options.ignoreGlobals; - const allow = options.allow || []; - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - // contains reported nodes to avoid reporting twice on destructuring with shorthand notation - const reported = new Set(); - - /** - * Checks if a string contains an underscore and isn't all upper-case - * @param {string} name The string to check. - * @returns {boolean} if the string is underscored - * @private - */ - function isUnderscored(name) { - const nameBody = name.replace(/^_+|_+$/gu, ""); - - // if there's an underscore, it might be A_CONSTANT, which is okay - return nameBody.includes("_") && nameBody !== nameBody.toUpperCase(); - } - - /** - * Checks if a string match the ignore list - * @param {string} name The string to check. - * @returns {boolean} if the string is ignored - * @private - */ - function isAllowed(name) { - return allow.some( - entry => name === entry || name.match(new RegExp(entry, "u")) - ); - } - - /** - * Checks if a given name is good or not. - * @param {string} name The name to check. - * @returns {boolean} `true` if the name is good. - * @private - */ - function isGoodName(name) { - return !isUnderscored(name) || isAllowed(name); - } - - /** - * Checks if a given identifier reference or member expression is an assignment - * target. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is an assignment target. - */ - function isAssignmentTarget(node) { - const parent = node.parent; - - switch (parent.type) { - case "AssignmentExpression": - case "AssignmentPattern": - return parent.left === node; - - case "Property": - return ( - parent.parent.type === "ObjectPattern" && - parent.value === node - ); - case "ArrayPattern": - case "RestElement": - return true; - - default: - return false; - } - } - - /** - * Checks if a given binding identifier uses the original name as-is. - * - If it's in object destructuring or object expression, the original name is its property name. - * - If it's in import declaration, the original name is its exported name. - * @param {ASTNode} node The `Identifier` node to check. - * @returns {boolean} `true` if the identifier uses the original name as-is. - */ - function equalsToOriginalName(node) { - const localName = node.name; - const valueNode = node.parent.type === "AssignmentPattern" - ? node.parent - : node; - const parent = valueNode.parent; - - switch (parent.type) { - case "Property": - return ( - (parent.parent.type === "ObjectPattern" || parent.parent.type === "ObjectExpression") && - parent.value === valueNode && - !parent.computed && - parent.key.type === "Identifier" && - parent.key.name === localName - ); - - case "ImportSpecifier": - return ( - parent.local === node && - astUtils.getModuleExportName(parent.imported) === localName - ); - - default: - return false; - } - } - - /** - * Reports an AST node as a rule violation. - * @param {ASTNode} node The node to report. - * @returns {void} - * @private - */ - function report(node) { - if (reported.has(node.range[0])) { - return; - } - reported.add(node.range[0]); - - // Report it. - context.report({ - node, - messageId: node.type === "PrivateIdentifier" - ? "notCamelCasePrivate" - : "notCamelCase", - data: { name: node.name } - }); - } - - /** - * Reports an identifier reference or a binding identifier. - * @param {ASTNode} node The `Identifier` node to report. - * @returns {void} - */ - function reportReferenceId(node) { - - /* - * For backward compatibility, if it's in callings then ignore it. - * Not sure why it is. - */ - if ( - node.parent.type === "CallExpression" || - node.parent.type === "NewExpression" - ) { - return; - } - - /* - * For backward compatibility, if it's a default value of - * destructuring/parameters then ignore it. - * Not sure why it is. - */ - if ( - node.parent.type === "AssignmentPattern" && - node.parent.right === node - ) { - return; - } - - /* - * The `ignoreDestructuring` flag skips the identifiers that uses - * the property name as-is. - */ - if (ignoreDestructuring && equalsToOriginalName(node)) { - return; - } - - report(node); - } - - return { - - // Report camelcase of global variable references ------------------ - Program(node) { - const scope = sourceCode.getScope(node); - - if (!ignoreGlobals) { - - // Defined globals in config files or directive comments. - for (const variable of scope.variables) { - if ( - variable.identifiers.length > 0 || - isGoodName(variable.name) - ) { - continue; - } - for (const reference of variable.references) { - - /* - * For backward compatibility, this rule reports read-only - * references as well. - */ - reportReferenceId(reference.identifier); - } - } - } - - // Undefined globals. - for (const reference of scope.through) { - const id = reference.identifier; - - if (isGoodName(id.name)) { - continue; - } - - /* - * For backward compatibility, this rule reports read-only - * references as well. - */ - reportReferenceId(id); - } - }, - - // Report camelcase of declared variables -------------------------- - [[ - "VariableDeclaration", - "FunctionDeclaration", - "FunctionExpression", - "ArrowFunctionExpression", - "ClassDeclaration", - "ClassExpression", - "CatchClause" - ]](node) { - for (const variable of sourceCode.getDeclaredVariables(node)) { - if (isGoodName(variable.name)) { - continue; - } - const id = variable.identifiers[0]; - - // Report declaration. - if (!(ignoreDestructuring && equalsToOriginalName(id))) { - report(id); - } - - /* - * For backward compatibility, report references as well. - * It looks unnecessary because declarations are reported. - */ - for (const reference of variable.references) { - if (reference.init) { - continue; // Skip the write references of initializers. - } - reportReferenceId(reference.identifier); - } - } - }, - - // Report camelcase in properties ---------------------------------- - [[ - "ObjectExpression > Property[computed!=true] > Identifier.key", - "MethodDefinition[computed!=true] > Identifier.key", - "PropertyDefinition[computed!=true] > Identifier.key", - "MethodDefinition > PrivateIdentifier.key", - "PropertyDefinition > PrivateIdentifier.key" - ]](node) { - if (properties === "never" || isGoodName(node.name)) { - return; - } - report(node); - }, - "MemberExpression[computed!=true] > Identifier.property"(node) { - if ( - properties === "never" || - !isAssignmentTarget(node.parent) || // ← ignore read-only references. - isGoodName(node.name) - ) { - return; - } - report(node); - }, - - // Report camelcase in import -------------------------------------- - ImportDeclaration(node) { - for (const variable of sourceCode.getDeclaredVariables(node)) { - if (isGoodName(variable.name)) { - continue; - } - const id = variable.identifiers[0]; - - // Report declaration. - if (!(ignoreImports && equalsToOriginalName(id))) { - report(id); - } - - /* - * For backward compatibility, report references as well. - * It looks unnecessary because declarations are reported. - */ - for (const reference of variable.references) { - reportReferenceId(reference.identifier); - } - } - }, - - // Report camelcase in re-export ----------------------------------- - [[ - "ExportAllDeclaration > Identifier.exported", - "ExportSpecifier > Identifier.exported" - ]](node) { - if (isGoodName(node.name)) { - return; - } - report(node); - }, - - // Report camelcase in labels -------------------------------------- - [[ - "LabeledStatement > Identifier.label", - - /* - * For backward compatibility, report references as well. - * It looks unnecessary because declarations are reported. - */ - "BreakStatement > Identifier.label", - "ContinueStatement > Identifier.label" - ]](node) { - if (isGoodName(node.name)) { - return; - } - report(node); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/capitalized-comments.js b/graphql/node_modules/eslint/lib/rules/capitalized-comments.js deleted file mode 100644 index 07a27b6e..00000000 --- a/graphql/node_modules/eslint/lib/rules/capitalized-comments.js +++ /dev/null @@ -1,303 +0,0 @@ -/** - * @fileoverview enforce or disallow capitalization of the first letter of a comment - * @author Kevin Partington - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const DEFAULT_IGNORE_PATTERN = astUtils.COMMENTS_IGNORE_PATTERN, - WHITESPACE = /\s/gu, - MAYBE_URL = /^\s*[^:/?#\s]+:\/\/[^?#]/u, // TODO: Combine w/ max-len pattern? - LETTER_PATTERN = /\p{L}/u; - -/* - * Base schema body for defining the basic capitalization rule, ignorePattern, - * and ignoreInlineComments values. - * This can be used in a few different ways in the actual schema. - */ -const SCHEMA_BODY = { - type: "object", - properties: { - ignorePattern: { - type: "string" - }, - ignoreInlineComments: { - type: "boolean" - }, - ignoreConsecutiveComments: { - type: "boolean" - } - }, - additionalProperties: false -}; -const DEFAULTS = { - ignorePattern: "", - ignoreInlineComments: false, - ignoreConsecutiveComments: false -}; - -/** - * Get normalized options for either block or line comments from the given - * user-provided options. - * - If the user-provided options is just a string, returns a normalized - * set of options using default values for all other options. - * - If the user-provided options is an object, then a normalized option - * set is returned. Options specified in overrides will take priority - * over options specified in the main options object, which will in - * turn take priority over the rule's defaults. - * @param {Object|string} rawOptions The user-provided options. - * @param {string} which Either "line" or "block". - * @returns {Object} The normalized options. - */ -function getNormalizedOptions(rawOptions, which) { - return Object.assign({}, DEFAULTS, rawOptions[which] || rawOptions); -} - -/** - * Get normalized options for block and line comments. - * @param {Object|string} rawOptions The user-provided options. - * @returns {Object} An object with "Line" and "Block" keys and corresponding - * normalized options objects. - */ -function getAllNormalizedOptions(rawOptions = {}) { - return { - Line: getNormalizedOptions(rawOptions, "line"), - Block: getNormalizedOptions(rawOptions, "block") - }; -} - -/** - * Creates a regular expression for each ignorePattern defined in the rule - * options. - * - * This is done in order to avoid invoking the RegExp constructor repeatedly. - * @param {Object} normalizedOptions The normalized rule options. - * @returns {void} - */ -function createRegExpForIgnorePatterns(normalizedOptions) { - Object.keys(normalizedOptions).forEach(key => { - const ignorePatternStr = normalizedOptions[key].ignorePattern; - - if (ignorePatternStr) { - const regExp = RegExp(`^\\s*(?:${ignorePatternStr})`, "u"); - - normalizedOptions[key].ignorePatternRegExp = regExp; - } - }); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce or disallow capitalization of the first letter of a comment", - recommended: false, - url: "https://eslint.org/docs/latest/rules/capitalized-comments" - }, - - fixable: "code", - - schema: [ - { enum: ["always", "never"] }, - { - oneOf: [ - SCHEMA_BODY, - { - type: "object", - properties: { - line: SCHEMA_BODY, - block: SCHEMA_BODY - }, - additionalProperties: false - } - ] - } - ], - - messages: { - unexpectedLowercaseComment: "Comments should not begin with a lowercase character.", - unexpectedUppercaseComment: "Comments should not begin with an uppercase character." - } - }, - - create(context) { - - const capitalize = context.options[0] || "always", - normalizedOptions = getAllNormalizedOptions(context.options[1]), - sourceCode = context.sourceCode; - - createRegExpForIgnorePatterns(normalizedOptions); - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Checks whether a comment is an inline comment. - * - * For the purpose of this rule, a comment is inline if: - * 1. The comment is preceded by a token on the same line; and - * 2. The command is followed by a token on the same line. - * - * Note that the comment itself need not be single-line! - * - * Also, it follows from this definition that only block comments can - * be considered as possibly inline. This is because line comments - * would consume any following tokens on the same line as the comment. - * @param {ASTNode} comment The comment node to check. - * @returns {boolean} True if the comment is an inline comment, false - * otherwise. - */ - function isInlineComment(comment) { - const previousToken = sourceCode.getTokenBefore(comment, { includeComments: true }), - nextToken = sourceCode.getTokenAfter(comment, { includeComments: true }); - - return Boolean( - previousToken && - nextToken && - comment.loc.start.line === previousToken.loc.end.line && - comment.loc.end.line === nextToken.loc.start.line - ); - } - - /** - * Determine if a comment follows another comment. - * @param {ASTNode} comment The comment to check. - * @returns {boolean} True if the comment follows a valid comment. - */ - function isConsecutiveComment(comment) { - const previousTokenOrComment = sourceCode.getTokenBefore(comment, { includeComments: true }); - - return Boolean( - previousTokenOrComment && - ["Block", "Line"].includes(previousTokenOrComment.type) - ); - } - - /** - * Check a comment to determine if it is valid for this rule. - * @param {ASTNode} comment The comment node to process. - * @param {Object} options The options for checking this comment. - * @returns {boolean} True if the comment is valid, false otherwise. - */ - function isCommentValid(comment, options) { - - // 1. Check for default ignore pattern. - if (DEFAULT_IGNORE_PATTERN.test(comment.value)) { - return true; - } - - // 2. Check for custom ignore pattern. - const commentWithoutAsterisks = comment.value - .replace(/\*/gu, ""); - - if (options.ignorePatternRegExp && options.ignorePatternRegExp.test(commentWithoutAsterisks)) { - return true; - } - - // 3. Check for inline comments. - if (options.ignoreInlineComments && isInlineComment(comment)) { - return true; - } - - // 4. Is this a consecutive comment (and are we tolerating those)? - if (options.ignoreConsecutiveComments && isConsecutiveComment(comment)) { - return true; - } - - // 5. Does the comment start with a possible URL? - if (MAYBE_URL.test(commentWithoutAsterisks)) { - return true; - } - - // 6. Is the initial word character a letter? - const commentWordCharsOnly = commentWithoutAsterisks - .replace(WHITESPACE, ""); - - if (commentWordCharsOnly.length === 0) { - return true; - } - - // Get the first Unicode character (1 or 2 code units). - const [firstWordChar] = commentWordCharsOnly; - - if (!LETTER_PATTERN.test(firstWordChar)) { - return true; - } - - // 7. Check the case of the initial word character. - const isUppercase = firstWordChar !== firstWordChar.toLocaleLowerCase(), - isLowercase = firstWordChar !== firstWordChar.toLocaleUpperCase(); - - if (capitalize === "always" && isLowercase) { - return false; - } - if (capitalize === "never" && isUppercase) { - return false; - } - - return true; - } - - /** - * Process a comment to determine if it needs to be reported. - * @param {ASTNode} comment The comment node to process. - * @returns {void} - */ - function processComment(comment) { - const options = normalizedOptions[comment.type], - commentValid = isCommentValid(comment, options); - - if (!commentValid) { - const messageId = capitalize === "always" - ? "unexpectedLowercaseComment" - : "unexpectedUppercaseComment"; - - context.report({ - node: null, // Intentionally using loc instead - loc: comment.loc, - messageId, - fix(fixer) { - const match = comment.value.match(LETTER_PATTERN); - const char = match[0]; - - // Offset match.index by 2 to account for the first 2 characters that start the comment (// or /*) - const charIndex = comment.range[0] + match.index + 2; - - return fixer.replaceTextRange( - [charIndex, charIndex + char.length], - capitalize === "always" ? char.toLocaleUpperCase() : char.toLocaleLowerCase() - ); - } - }); - } - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - Program() { - const comments = sourceCode.getAllComments(); - - comments.filter(token => token.type !== "Shebang").forEach(processComment); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/class-methods-use-this.js b/graphql/node_modules/eslint/lib/rules/class-methods-use-this.js deleted file mode 100644 index 9cf8a1b8..00000000 --- a/graphql/node_modules/eslint/lib/rules/class-methods-use-this.js +++ /dev/null @@ -1,187 +0,0 @@ -/** - * @fileoverview Rule to enforce that all class methods use 'this'. - * @author Patrick Williams - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce that class methods utilize `this`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/class-methods-use-this" - }, - - schema: [{ - type: "object", - properties: { - exceptMethods: { - type: "array", - items: { - type: "string" - } - }, - enforceForClassFields: { - type: "boolean", - default: true - } - }, - additionalProperties: false - }], - - messages: { - missingThis: "Expected 'this' to be used by class {{name}}." - } - }, - create(context) { - const config = Object.assign({}, context.options[0]); - const enforceForClassFields = config.enforceForClassFields !== false; - const exceptMethods = new Set(config.exceptMethods || []); - - const stack = []; - - /** - * Push `this` used flag initialized with `false` onto the stack. - * @returns {void} - */ - function pushContext() { - stack.push(false); - } - - /** - * Pop `this` used flag from the stack. - * @returns {boolean | undefined} `this` used flag - */ - function popContext() { - return stack.pop(); - } - - /** - * Initializes the current context to false and pushes it onto the stack. - * These booleans represent whether 'this' has been used in the context. - * @returns {void} - * @private - */ - function enterFunction() { - pushContext(); - } - - /** - * Check if the node is an instance method - * @param {ASTNode} node node to check - * @returns {boolean} True if its an instance method - * @private - */ - function isInstanceMethod(node) { - switch (node.type) { - case "MethodDefinition": - return !node.static && node.kind !== "constructor"; - case "PropertyDefinition": - return !node.static && enforceForClassFields; - default: - return false; - } - } - - /** - * Check if the node is an instance method not excluded by config - * @param {ASTNode} node node to check - * @returns {boolean} True if it is an instance method, and not excluded by config - * @private - */ - function isIncludedInstanceMethod(node) { - if (isInstanceMethod(node)) { - if (node.computed) { - return true; - } - - const hashIfNeeded = node.key.type === "PrivateIdentifier" ? "#" : ""; - const name = node.key.type === "Literal" - ? astUtils.getStaticStringValue(node.key) - : (node.key.name || ""); - - return !exceptMethods.has(hashIfNeeded + name); - } - return false; - } - - /** - * Checks if we are leaving a function that is a method, and reports if 'this' has not been used. - * Static methods and the constructor are exempt. - * Then pops the context off the stack. - * @param {ASTNode} node A function node that was entered. - * @returns {void} - * @private - */ - function exitFunction(node) { - const methodUsesThis = popContext(); - - if (isIncludedInstanceMethod(node.parent) && !methodUsesThis) { - context.report({ - node, - loc: astUtils.getFunctionHeadLoc(node, context.sourceCode), - messageId: "missingThis", - data: { - name: astUtils.getFunctionNameWithKind(node) - } - }); - } - } - - /** - * Mark the current context as having used 'this'. - * @returns {void} - * @private - */ - function markThisUsed() { - if (stack.length) { - stack[stack.length - 1] = true; - } - } - - return { - FunctionDeclaration: enterFunction, - "FunctionDeclaration:exit": exitFunction, - FunctionExpression: enterFunction, - "FunctionExpression:exit": exitFunction, - - /* - * Class field value are implicit functions. - */ - "PropertyDefinition > *.key:exit": pushContext, - "PropertyDefinition:exit": popContext, - - /* - * Class static blocks are implicit functions. They aren't required to use `this`, - * but we have to push context so that it captures any use of `this` in the static block - * separately from enclosing contexts, because static blocks have their own `this` and it - * shouldn't count as used `this` in enclosing contexts. - */ - StaticBlock: pushContext, - "StaticBlock:exit": popContext, - - ThisExpression: markThisUsed, - Super: markThisUsed, - ...( - enforceForClassFields && { - "PropertyDefinition > ArrowFunctionExpression.value": enterFunction, - "PropertyDefinition > ArrowFunctionExpression.value:exit": exitFunction - } - ) - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/comma-dangle.js b/graphql/node_modules/eslint/lib/rules/comma-dangle.js deleted file mode 100644 index c24c1475..00000000 --- a/graphql/node_modules/eslint/lib/rules/comma-dangle.js +++ /dev/null @@ -1,373 +0,0 @@ -/** - * @fileoverview Rule to forbid or enforce dangling commas. - * @author Ian Christian Myers - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const DEFAULT_OPTIONS = Object.freeze({ - arrays: "never", - objects: "never", - imports: "never", - exports: "never", - functions: "never" -}); - -/** - * Checks whether or not a trailing comma is allowed in a given node. - * If the `lastItem` is `RestElement` or `RestProperty`, it disallows trailing commas. - * @param {ASTNode} lastItem The node of the last element in the given node. - * @returns {boolean} `true` if a trailing comma is allowed. - */ -function isTrailingCommaAllowed(lastItem) { - return !( - lastItem.type === "RestElement" || - lastItem.type === "RestProperty" || - lastItem.type === "ExperimentalRestProperty" - ); -} - -/** - * Normalize option value. - * @param {string|Object|undefined} optionValue The 1st option value to normalize. - * @param {number} ecmaVersion The normalized ECMAScript version. - * @returns {Object} The normalized option value. - */ -function normalizeOptions(optionValue, ecmaVersion) { - if (typeof optionValue === "string") { - return { - arrays: optionValue, - objects: optionValue, - imports: optionValue, - exports: optionValue, - functions: ecmaVersion < 2017 ? "ignore" : optionValue - }; - } - if (typeof optionValue === "object" && optionValue !== null) { - return { - arrays: optionValue.arrays || DEFAULT_OPTIONS.arrays, - objects: optionValue.objects || DEFAULT_OPTIONS.objects, - imports: optionValue.imports || DEFAULT_OPTIONS.imports, - exports: optionValue.exports || DEFAULT_OPTIONS.exports, - functions: optionValue.functions || DEFAULT_OPTIONS.functions - }; - } - - return DEFAULT_OPTIONS; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow trailing commas", - recommended: false, - url: "https://eslint.org/docs/latest/rules/comma-dangle" - }, - - fixable: "code", - - schema: { - definitions: { - value: { - enum: [ - "always-multiline", - "always", - "never", - "only-multiline" - ] - }, - valueWithIgnore: { - enum: [ - "always-multiline", - "always", - "ignore", - "never", - "only-multiline" - ] - } - }, - type: "array", - items: [ - { - oneOf: [ - { - $ref: "#/definitions/value" - }, - { - type: "object", - properties: { - arrays: { $ref: "#/definitions/valueWithIgnore" }, - objects: { $ref: "#/definitions/valueWithIgnore" }, - imports: { $ref: "#/definitions/valueWithIgnore" }, - exports: { $ref: "#/definitions/valueWithIgnore" }, - functions: { $ref: "#/definitions/valueWithIgnore" } - }, - additionalProperties: false - } - ] - } - ], - additionalItems: false - }, - - messages: { - unexpected: "Unexpected trailing comma.", - missing: "Missing trailing comma." - } - }, - - create(context) { - const options = normalizeOptions(context.options[0], context.languageOptions.ecmaVersion); - - const sourceCode = context.sourceCode; - - /** - * Gets the last item of the given node. - * @param {ASTNode} node The node to get. - * @returns {ASTNode|null} The last node or null. - */ - function getLastItem(node) { - - /** - * Returns the last element of an array - * @param {any[]} array The input array - * @returns {any} The last element - */ - function last(array) { - return array.at(-1); - } - - switch (node.type) { - case "ObjectExpression": - case "ObjectPattern": - return last(node.properties); - case "ArrayExpression": - case "ArrayPattern": - return last(node.elements); - case "ImportDeclaration": - case "ExportNamedDeclaration": - return last(node.specifiers); - case "FunctionDeclaration": - case "FunctionExpression": - case "ArrowFunctionExpression": - return last(node.params); - case "CallExpression": - case "NewExpression": - return last(node.arguments); - default: - return null; - } - } - - /** - * Gets the trailing comma token of the given node. - * If the trailing comma does not exist, this returns the token which is - * the insertion point of the trailing comma token. - * @param {ASTNode} node The node to get. - * @param {ASTNode} lastItem The last item of the node. - * @returns {Token} The trailing comma token or the insertion point. - */ - function getTrailingToken(node, lastItem) { - switch (node.type) { - case "ObjectExpression": - case "ArrayExpression": - case "CallExpression": - case "NewExpression": - return sourceCode.getLastToken(node, 1); - default: { - const nextToken = sourceCode.getTokenAfter(lastItem); - - if (astUtils.isCommaToken(nextToken)) { - return nextToken; - } - return sourceCode.getLastToken(lastItem); - } - } - } - - /** - * Checks whether or not a given node is multiline. - * This rule handles a given node as multiline when the closing parenthesis - * and the last element are not on the same line. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is multiline. - */ - function isMultiline(node) { - const lastItem = getLastItem(node); - - if (!lastItem) { - return false; - } - - const penultimateToken = getTrailingToken(node, lastItem); - const lastToken = sourceCode.getTokenAfter(penultimateToken); - - return lastToken.loc.end.line !== penultimateToken.loc.end.line; - } - - /** - * Reports a trailing comma if it exists. - * @param {ASTNode} node A node to check. Its type is one of - * ObjectExpression, ObjectPattern, ArrayExpression, ArrayPattern, - * ImportDeclaration, and ExportNamedDeclaration. - * @returns {void} - */ - function forbidTrailingComma(node) { - const lastItem = getLastItem(node); - - if (!lastItem || (node.type === "ImportDeclaration" && lastItem.type !== "ImportSpecifier")) { - return; - } - - const trailingToken = getTrailingToken(node, lastItem); - - if (astUtils.isCommaToken(trailingToken)) { - context.report({ - node: lastItem, - loc: trailingToken.loc, - messageId: "unexpected", - *fix(fixer) { - yield fixer.remove(trailingToken); - - /* - * Extend the range of the fix to include surrounding tokens to ensure - * that the element after which the comma is removed stays _last_. - * This intentionally makes conflicts in fix ranges with rules that may be - * adding or removing elements in the same autofix pass. - * https://github.com/eslint/eslint/issues/15660 - */ - yield fixer.insertTextBefore(sourceCode.getTokenBefore(trailingToken), ""); - yield fixer.insertTextAfter(sourceCode.getTokenAfter(trailingToken), ""); - } - }); - } - } - - /** - * Reports the last element of a given node if it does not have a trailing - * comma. - * - * If a given node is `ArrayPattern` which has `RestElement`, the trailing - * comma is disallowed, so report if it exists. - * @param {ASTNode} node A node to check. Its type is one of - * ObjectExpression, ObjectPattern, ArrayExpression, ArrayPattern, - * ImportDeclaration, and ExportNamedDeclaration. - * @returns {void} - */ - function forceTrailingComma(node) { - const lastItem = getLastItem(node); - - if (!lastItem || (node.type === "ImportDeclaration" && lastItem.type !== "ImportSpecifier")) { - return; - } - if (!isTrailingCommaAllowed(lastItem)) { - forbidTrailingComma(node); - return; - } - - const trailingToken = getTrailingToken(node, lastItem); - - if (trailingToken.value !== ",") { - context.report({ - node: lastItem, - loc: { - start: trailingToken.loc.end, - end: astUtils.getNextLocation(sourceCode, trailingToken.loc.end) - }, - messageId: "missing", - *fix(fixer) { - yield fixer.insertTextAfter(trailingToken, ","); - - /* - * Extend the range of the fix to include surrounding tokens to ensure - * that the element after which the comma is inserted stays _last_. - * This intentionally makes conflicts in fix ranges with rules that may be - * adding or removing elements in the same autofix pass. - * https://github.com/eslint/eslint/issues/15660 - */ - yield fixer.insertTextBefore(trailingToken, ""); - yield fixer.insertTextAfter(sourceCode.getTokenAfter(trailingToken), ""); - } - }); - } - } - - /** - * If a given node is multiline, reports the last element of a given node - * when it does not have a trailing comma. - * Otherwise, reports a trailing comma if it exists. - * @param {ASTNode} node A node to check. Its type is one of - * ObjectExpression, ObjectPattern, ArrayExpression, ArrayPattern, - * ImportDeclaration, and ExportNamedDeclaration. - * @returns {void} - */ - function forceTrailingCommaIfMultiline(node) { - if (isMultiline(node)) { - forceTrailingComma(node); - } else { - forbidTrailingComma(node); - } - } - - /** - * Only if a given node is not multiline, reports the last element of a given node - * when it does not have a trailing comma. - * Otherwise, reports a trailing comma if it exists. - * @param {ASTNode} node A node to check. Its type is one of - * ObjectExpression, ObjectPattern, ArrayExpression, ArrayPattern, - * ImportDeclaration, and ExportNamedDeclaration. - * @returns {void} - */ - function allowTrailingCommaIfMultiline(node) { - if (!isMultiline(node)) { - forbidTrailingComma(node); - } - } - - const predicate = { - always: forceTrailingComma, - "always-multiline": forceTrailingCommaIfMultiline, - "only-multiline": allowTrailingCommaIfMultiline, - never: forbidTrailingComma, - ignore() {} - }; - - return { - ObjectExpression: predicate[options.objects], - ObjectPattern: predicate[options.objects], - - ArrayExpression: predicate[options.arrays], - ArrayPattern: predicate[options.arrays], - - ImportDeclaration: predicate[options.imports], - - ExportNamedDeclaration: predicate[options.exports], - - FunctionDeclaration: predicate[options.functions], - FunctionExpression: predicate[options.functions], - ArrowFunctionExpression: predicate[options.functions], - CallExpression: predicate[options.functions], - NewExpression: predicate[options.functions] - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/comma-spacing.js b/graphql/node_modules/eslint/lib/rules/comma-spacing.js deleted file mode 100644 index e266de4a..00000000 --- a/graphql/node_modules/eslint/lib/rules/comma-spacing.js +++ /dev/null @@ -1,192 +0,0 @@ -/** - * @fileoverview Comma spacing - validates spacing before and after comma - * @author Vignesh Anand aka vegetableman. - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before and after commas", - recommended: false, - url: "https://eslint.org/docs/latest/rules/comma-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - before: { - type: "boolean", - default: false - }, - after: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - missing: "A space is required {{loc}} ','.", - unexpected: "There should be no space {{loc}} ','." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - const tokensAndComments = sourceCode.tokensAndComments; - - const options = { - before: context.options[0] ? context.options[0].before : false, - after: context.options[0] ? context.options[0].after : true - }; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - // list of comma tokens to ignore for the check of leading whitespace - const commaTokensToIgnore = []; - - /** - * Reports a spacing error with an appropriate message. - * @param {ASTNode} node The binary expression node to report. - * @param {string} loc Is the error "before" or "after" the comma? - * @param {ASTNode} otherNode The node at the left or right of `node` - * @returns {void} - * @private - */ - function report(node, loc, otherNode) { - context.report({ - node, - fix(fixer) { - if (options[loc]) { - if (loc === "before") { - return fixer.insertTextBefore(node, " "); - } - return fixer.insertTextAfter(node, " "); - - } - let start, end; - const newText = ""; - - if (loc === "before") { - start = otherNode.range[1]; - end = node.range[0]; - } else { - start = node.range[1]; - end = otherNode.range[0]; - } - - return fixer.replaceTextRange([start, end], newText); - - }, - messageId: options[loc] ? "missing" : "unexpected", - data: { - loc - } - }); - } - - /** - * Adds null elements of the given ArrayExpression or ArrayPattern node to the ignore list. - * @param {ASTNode} node An ArrayExpression or ArrayPattern node. - * @returns {void} - */ - function addNullElementsToIgnoreList(node) { - let previousToken = sourceCode.getFirstToken(node); - - node.elements.forEach(element => { - let token; - - if (element === null) { - token = sourceCode.getTokenAfter(previousToken); - - if (astUtils.isCommaToken(token)) { - commaTokensToIgnore.push(token); - } - } else { - token = sourceCode.getTokenAfter(element); - } - - previousToken = token; - }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - "Program:exit"() { - tokensAndComments.forEach((token, i) => { - - if (!astUtils.isCommaToken(token)) { - return; - } - - const previousToken = tokensAndComments[i - 1]; - const nextToken = tokensAndComments[i + 1]; - - if ( - previousToken && - !astUtils.isCommaToken(previousToken) && // ignore spacing between two commas - - /* - * `commaTokensToIgnore` are ending commas of `null` elements (array holes/elisions). - * In addition to spacing between two commas, this can also ignore: - * - * - Spacing after `[` (controlled by array-bracket-spacing) - * Example: [ , ] - * ^ - * - Spacing after a comment (for backwards compatibility, this was possibly unintentional) - * Example: [a, /* * / ,] - * ^ - */ - !commaTokensToIgnore.includes(token) && - - astUtils.isTokenOnSameLine(previousToken, token) && - options.before !== sourceCode.isSpaceBetweenTokens(previousToken, token) - ) { - report(token, "before", previousToken); - } - - if ( - nextToken && - !astUtils.isCommaToken(nextToken) && // ignore spacing between two commas - !astUtils.isClosingParenToken(nextToken) && // controlled by space-in-parens - !astUtils.isClosingBracketToken(nextToken) && // controlled by array-bracket-spacing - !astUtils.isClosingBraceToken(nextToken) && // controlled by object-curly-spacing - !(!options.after && nextToken.type === "Line") && // special case, allow space before line comment - astUtils.isTokenOnSameLine(token, nextToken) && - options.after !== sourceCode.isSpaceBetweenTokens(token, nextToken) - ) { - report(token, "after", nextToken); - } - }); - }, - ArrayExpression: addNullElementsToIgnoreList, - ArrayPattern: addNullElementsToIgnoreList - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/comma-style.js b/graphql/node_modules/eslint/lib/rules/comma-style.js deleted file mode 100644 index d632a3ba..00000000 --- a/graphql/node_modules/eslint/lib/rules/comma-style.js +++ /dev/null @@ -1,314 +0,0 @@ -/** - * @fileoverview Comma style - enforces comma styles of two types: last and first - * @author Vignesh Anand aka vegetableman - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent comma style", - recommended: false, - url: "https://eslint.org/docs/latest/rules/comma-style" - }, - - fixable: "code", - - schema: [ - { - enum: ["first", "last"] - }, - { - type: "object", - properties: { - exceptions: { - type: "object", - additionalProperties: { - type: "boolean" - } - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedLineBeforeAndAfterComma: "Bad line breaking before and after ','.", - expectedCommaFirst: "',' should be placed first.", - expectedCommaLast: "',' should be placed last." - } - }, - - create(context) { - const style = context.options[0] || "last", - sourceCode = context.sourceCode; - const exceptions = { - ArrayPattern: true, - ArrowFunctionExpression: true, - CallExpression: true, - FunctionDeclaration: true, - FunctionExpression: true, - ImportDeclaration: true, - ObjectPattern: true, - NewExpression: true - }; - - if (context.options.length === 2 && Object.hasOwn(context.options[1], "exceptions")) { - const keys = Object.keys(context.options[1].exceptions); - - for (let i = 0; i < keys.length; i++) { - exceptions[keys[i]] = context.options[1].exceptions[keys[i]]; - } - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Modified text based on the style - * @param {string} styleType Style type - * @param {string} text Source code text - * @returns {string} modified text - * @private - */ - function getReplacedText(styleType, text) { - switch (styleType) { - case "between": - return `,${text.replace(astUtils.LINEBREAK_MATCHER, "")}`; - - case "first": - return `${text},`; - - case "last": - return `,${text}`; - - default: - return ""; - } - } - - /** - * Determines the fixer function for a given style. - * @param {string} styleType comma style - * @param {ASTNode} previousItemToken The token to check. - * @param {ASTNode} commaToken The token to check. - * @param {ASTNode} currentItemToken The token to check. - * @returns {Function} Fixer function - * @private - */ - function getFixerFunction(styleType, previousItemToken, commaToken, currentItemToken) { - const text = - sourceCode.text.slice(previousItemToken.range[1], commaToken.range[0]) + - sourceCode.text.slice(commaToken.range[1], currentItemToken.range[0]); - const range = [previousItemToken.range[1], currentItemToken.range[0]]; - - return function(fixer) { - return fixer.replaceTextRange(range, getReplacedText(styleType, text)); - }; - } - - /** - * Validates the spacing around single items in lists. - * @param {Token} previousItemToken The last token from the previous item. - * @param {Token} commaToken The token representing the comma. - * @param {Token} currentItemToken The first token of the current item. - * @param {Token} reportItem The item to use when reporting an error. - * @returns {void} - * @private - */ - function validateCommaItemSpacing(previousItemToken, commaToken, currentItemToken, reportItem) { - - // if single line - if (astUtils.isTokenOnSameLine(commaToken, currentItemToken) && - astUtils.isTokenOnSameLine(previousItemToken, commaToken)) { - - // do nothing. - - } else if (!astUtils.isTokenOnSameLine(commaToken, currentItemToken) && - !astUtils.isTokenOnSameLine(previousItemToken, commaToken)) { - - const comment = sourceCode.getCommentsAfter(commaToken)[0]; - const styleType = comment && comment.type === "Block" && astUtils.isTokenOnSameLine(commaToken, comment) - ? style - : "between"; - - // lone comma - context.report({ - node: reportItem, - loc: commaToken.loc, - messageId: "unexpectedLineBeforeAndAfterComma", - fix: getFixerFunction(styleType, previousItemToken, commaToken, currentItemToken) - }); - - } else if (style === "first" && !astUtils.isTokenOnSameLine(commaToken, currentItemToken)) { - - context.report({ - node: reportItem, - loc: commaToken.loc, - messageId: "expectedCommaFirst", - fix: getFixerFunction(style, previousItemToken, commaToken, currentItemToken) - }); - - } else if (style === "last" && astUtils.isTokenOnSameLine(commaToken, currentItemToken)) { - - context.report({ - node: reportItem, - loc: commaToken.loc, - messageId: "expectedCommaLast", - fix: getFixerFunction(style, previousItemToken, commaToken, currentItemToken) - }); - } - } - - /** - * Checks the comma placement with regards to a declaration/property/element - * @param {ASTNode} node The binary expression node to check - * @param {string} property The property of the node containing child nodes. - * @private - * @returns {void} - */ - function validateComma(node, property) { - const items = node[property], - arrayLiteral = (node.type === "ArrayExpression" || node.type === "ArrayPattern"); - - if (items.length > 1 || arrayLiteral) { - - // seed as opening [ - let previousItemToken = sourceCode.getFirstToken(node); - - items.forEach(item => { - const commaToken = item ? sourceCode.getTokenBefore(item) : previousItemToken, - currentItemToken = item ? sourceCode.getFirstToken(item) : sourceCode.getTokenAfter(commaToken), - reportItem = item || currentItemToken; - - /* - * This works by comparing three token locations: - * - previousItemToken is the last token of the previous item - * - commaToken is the location of the comma before the current item - * - currentItemToken is the first token of the current item - * - * These values get switched around if item is undefined. - * previousItemToken will refer to the last token not belonging - * to the current item, which could be a comma or an opening - * square bracket. currentItemToken could be a comma. - * - * All comparisons are done based on these tokens directly, so - * they are always valid regardless of an undefined item. - */ - if (astUtils.isCommaToken(commaToken)) { - validateCommaItemSpacing(previousItemToken, commaToken, currentItemToken, reportItem); - } - - if (item) { - const tokenAfterItem = sourceCode.getTokenAfter(item, astUtils.isNotClosingParenToken); - - previousItemToken = tokenAfterItem - ? sourceCode.getTokenBefore(tokenAfterItem) - : sourceCode.ast.tokens.at(-1); - } else { - previousItemToken = currentItemToken; - } - }); - - /* - * Special case for array literals that have empty last items, such - * as [ 1, 2, ]. These arrays only have two items show up in the - * AST, so we need to look at the token to verify that there's no - * dangling comma. - */ - if (arrayLiteral) { - - const lastToken = sourceCode.getLastToken(node), - nextToLastToken = sourceCode.getTokenBefore(lastToken); - - if (astUtils.isCommaToken(nextToLastToken)) { - validateCommaItemSpacing( - sourceCode.getTokenBefore(nextToLastToken), - nextToLastToken, - lastToken, - lastToken - ); - } - } - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - const nodes = {}; - - if (!exceptions.VariableDeclaration) { - nodes.VariableDeclaration = function(node) { - validateComma(node, "declarations"); - }; - } - if (!exceptions.ObjectExpression) { - nodes.ObjectExpression = function(node) { - validateComma(node, "properties"); - }; - } - if (!exceptions.ObjectPattern) { - nodes.ObjectPattern = function(node) { - validateComma(node, "properties"); - }; - } - if (!exceptions.ArrayExpression) { - nodes.ArrayExpression = function(node) { - validateComma(node, "elements"); - }; - } - if (!exceptions.ArrayPattern) { - nodes.ArrayPattern = function(node) { - validateComma(node, "elements"); - }; - } - if (!exceptions.FunctionDeclaration) { - nodes.FunctionDeclaration = function(node) { - validateComma(node, "params"); - }; - } - if (!exceptions.FunctionExpression) { - nodes.FunctionExpression = function(node) { - validateComma(node, "params"); - }; - } - if (!exceptions.ArrowFunctionExpression) { - nodes.ArrowFunctionExpression = function(node) { - validateComma(node, "params"); - }; - } - if (!exceptions.CallExpression) { - nodes.CallExpression = function(node) { - validateComma(node, "arguments"); - }; - } - if (!exceptions.ImportDeclaration) { - nodes.ImportDeclaration = function(node) { - validateComma(node, "specifiers"); - }; - } - if (!exceptions.NewExpression) { - nodes.NewExpression = function(node) { - validateComma(node, "arguments"); - }; - } - - return nodes; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/complexity.js b/graphql/node_modules/eslint/lib/rules/complexity.js deleted file mode 100644 index 647de7b4..00000000 --- a/graphql/node_modules/eslint/lib/rules/complexity.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @fileoverview Counts the cyclomatic complexity of each function of the script. See http://en.wikipedia.org/wiki/Cyclomatic_complexity. - * Counts the number of if, conditional, for, while, try, switch/case, - * @author Patrick Brosset - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { upperCaseFirst } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum cyclomatic complexity allowed in a program", - recommended: false, - url: "https://eslint.org/docs/latest/rules/complexity" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - maximum: { - type: "integer", - minimum: 0 - }, - max: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - complex: "{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}." - } - }, - - create(context) { - const option = context.options[0]; - let THRESHOLD = 20; - - if ( - typeof option === "object" && - (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) - ) { - THRESHOLD = option.maximum || option.max; - } else if (typeof option === "number") { - THRESHOLD = option; - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - // Using a stack to store complexity per code path - const complexities = []; - - /** - * Increase the complexity of the code path in context - * @returns {void} - * @private - */ - function increaseComplexity() { - complexities[complexities.length - 1]++; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - onCodePathStart() { - - // The initial complexity is 1, representing one execution path in the CodePath - complexities.push(1); - }, - - // Each branching in the code adds 1 to the complexity - CatchClause: increaseComplexity, - ConditionalExpression: increaseComplexity, - LogicalExpression: increaseComplexity, - ForStatement: increaseComplexity, - ForInStatement: increaseComplexity, - ForOfStatement: increaseComplexity, - IfStatement: increaseComplexity, - WhileStatement: increaseComplexity, - DoWhileStatement: increaseComplexity, - AssignmentPattern: increaseComplexity, - - // Avoid `default` - "SwitchCase[test]": increaseComplexity, - - // Logical assignment operators have short-circuiting behavior - AssignmentExpression(node) { - if (astUtils.isLogicalAssignmentOperator(node.operator)) { - increaseComplexity(); - } - }, - - MemberExpression(node) { - if (node.optional === true) { - increaseComplexity(); - } - }, - - CallExpression(node) { - if (node.optional === true) { - increaseComplexity(); - } - }, - - onCodePathEnd(codePath, node) { - const complexity = complexities.pop(); - - /* - * This rule only evaluates complexity of functions, so "program" is excluded. - * Class field initializers and class static blocks are implicit functions. Therefore, - * they shouldn't contribute to the enclosing function's complexity, but their - * own complexity should be evaluated. - */ - if ( - codePath.origin !== "function" && - codePath.origin !== "class-field-initializer" && - codePath.origin !== "class-static-block" - ) { - return; - } - - if (complexity > THRESHOLD) { - let name; - - if (codePath.origin === "class-field-initializer") { - name = "class field initializer"; - } else if (codePath.origin === "class-static-block") { - name = "class static block"; - } else { - name = astUtils.getFunctionNameWithKind(node); - } - - context.report({ - node, - messageId: "complex", - data: { - name: upperCaseFirst(name), - complexity, - max: THRESHOLD - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/computed-property-spacing.js b/graphql/node_modules/eslint/lib/rules/computed-property-spacing.js deleted file mode 100644 index 2852877f..00000000 --- a/graphql/node_modules/eslint/lib/rules/computed-property-spacing.js +++ /dev/null @@ -1,208 +0,0 @@ -/** - * @fileoverview Disallows or enforces spaces inside computed properties. - * @author Jamund Ferguson - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing inside computed property brackets", - recommended: false, - url: "https://eslint.org/docs/latest/rules/computed-property-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - enforceForClassMembers: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedSpaceBefore: "There should be no space before '{{tokenValue}}'.", - unexpectedSpaceAfter: "There should be no space after '{{tokenValue}}'.", - - missingSpaceBefore: "A space is required before '{{tokenValue}}'.", - missingSpaceAfter: "A space is required after '{{tokenValue}}'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const propertyNameMustBeSpaced = context.options[0] === "always"; // default is "never" - const enforceForClassMembers = !context.options[1] || context.options[1].enforceForClassMembers; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports that there shouldn't be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @param {Token} tokenAfter The token after `token`. - * @returns {void} - */ - function reportNoBeginningSpace(node, token, tokenAfter) { - context.report({ - node, - loc: { start: token.loc.end, end: tokenAfter.loc.start }, - messageId: "unexpectedSpaceAfter", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.removeRange([token.range[1], tokenAfter.range[0]]); - } - }); - } - - /** - * Reports that there shouldn't be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @param {Token} tokenBefore The token before `token`. - * @returns {void} - */ - function reportNoEndingSpace(node, token, tokenBefore) { - context.report({ - node, - loc: { start: tokenBefore.loc.end, end: token.loc.start }, - messageId: "unexpectedSpaceBefore", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.removeRange([tokenBefore.range[1], token.range[0]]); - } - }); - } - - /** - * Reports that there should be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredBeginningSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingSpaceAfter", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - - /** - * Reports that there should be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredEndingSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "missingSpaceBefore", - data: { - tokenValue: token.value - }, - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - - /** - * Returns a function that checks the spacing of a node on the property name - * that was passed in. - * @param {string} propertyName The property on the node to check for spacing - * @returns {Function} A function that will check spacing on a node - */ - function checkSpacing(propertyName) { - return function(node) { - if (!node.computed) { - return; - } - - const property = node[propertyName]; - - const before = sourceCode.getTokenBefore(property, astUtils.isOpeningBracketToken), - first = sourceCode.getTokenAfter(before, { includeComments: true }), - after = sourceCode.getTokenAfter(property, astUtils.isClosingBracketToken), - last = sourceCode.getTokenBefore(after, { includeComments: true }); - - if (astUtils.isTokenOnSameLine(before, first)) { - if (propertyNameMustBeSpaced) { - if (!sourceCode.isSpaceBetweenTokens(before, first) && astUtils.isTokenOnSameLine(before, first)) { - reportRequiredBeginningSpace(node, before); - } - } else { - if (sourceCode.isSpaceBetweenTokens(before, first)) { - reportNoBeginningSpace(node, before, first); - } - } - } - - if (astUtils.isTokenOnSameLine(last, after)) { - if (propertyNameMustBeSpaced) { - if (!sourceCode.isSpaceBetweenTokens(last, after) && astUtils.isTokenOnSameLine(last, after)) { - reportRequiredEndingSpace(node, after); - } - } else { - if (sourceCode.isSpaceBetweenTokens(last, after)) { - reportNoEndingSpace(node, after, last); - } - } - } - }; - } - - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - const listeners = { - Property: checkSpacing("key"), - MemberExpression: checkSpacing("property") - }; - - if (enforceForClassMembers) { - listeners.MethodDefinition = - listeners.PropertyDefinition = listeners.Property; - } - - return listeners; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/consistent-return.js b/graphql/node_modules/eslint/lib/rules/consistent-return.js deleted file mode 100644 index 304e924b..00000000 --- a/graphql/node_modules/eslint/lib/rules/consistent-return.js +++ /dev/null @@ -1,210 +0,0 @@ -/** - * @fileoverview Rule to flag consistent return values - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { upperCaseFirst } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks all segments in a set and returns true if all are unreachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if all segments are unreachable; false otherwise. - */ -function areAllSegmentsUnreachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return false; - } - } - - return true; -} - -/** - * Checks whether a given node is a `constructor` method in an ES6 class - * @param {ASTNode} node A node to check - * @returns {boolean} `true` if the node is a `constructor` method - */ -function isClassConstructor(node) { - return node.type === "FunctionExpression" && - node.parent && - node.parent.type === "MethodDefinition" && - node.parent.kind === "constructor"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `return` statements to either always or never specify values", - recommended: false, - url: "https://eslint.org/docs/latest/rules/consistent-return" - }, - - schema: [{ - type: "object", - properties: { - treatUndefinedAsUnspecified: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - missingReturn: "Expected to return a value at the end of {{name}}.", - missingReturnValue: "{{name}} expected a return value.", - unexpectedReturnValue: "{{name}} expected no return value." - } - }, - - create(context) { - const options = context.options[0] || {}; - const treatUndefinedAsUnspecified = options.treatUndefinedAsUnspecified === true; - let funcInfo = null; - - /** - * Checks whether of not the implicit returning is consistent if the last - * code path segment is reachable. - * @param {ASTNode} node A program/function node to check. - * @returns {void} - */ - function checkLastSegment(node) { - let loc, name; - - /* - * Skip if it expected no return value or unreachable. - * When unreachable, all paths are returned or thrown. - */ - if (!funcInfo.hasReturnValue || - areAllSegmentsUnreachable(funcInfo.currentSegments) || - astUtils.isES5Constructor(node) || - isClassConstructor(node) - ) { - return; - } - - // Adjust a location and a message. - if (node.type === "Program") { - - // The head of program. - loc = { line: 1, column: 0 }; - name = "program"; - } else if (node.type === "ArrowFunctionExpression") { - - // `=>` token - loc = context.sourceCode.getTokenBefore(node.body, astUtils.isArrowToken).loc; - } else if ( - node.parent.type === "MethodDefinition" || - (node.parent.type === "Property" && node.parent.method) - ) { - - // Method name. - loc = node.parent.key.loc; - } else { - - // Function name or `function` keyword. - loc = (node.id || context.sourceCode.getFirstToken(node)).loc; - } - - if (!name) { - name = astUtils.getFunctionNameWithKind(node); - } - - // Reports. - context.report({ - node, - loc, - messageId: "missingReturn", - data: { name } - }); - } - - return { - - // Initializes/Disposes state of each code path. - onCodePathStart(codePath, node) { - funcInfo = { - upper: funcInfo, - codePath, - hasReturn: false, - hasReturnValue: false, - messageId: "", - node, - currentSegments: new Set() - }; - }, - onCodePathEnd() { - funcInfo = funcInfo.upper; - }, - - onUnreachableCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - - // Reports a given return statement if it's inconsistent. - ReturnStatement(node) { - const argument = node.argument; - let hasReturnValue = Boolean(argument); - - if (treatUndefinedAsUnspecified && hasReturnValue) { - hasReturnValue = !astUtils.isSpecificId(argument, "undefined") && argument.operator !== "void"; - } - - if (!funcInfo.hasReturn) { - funcInfo.hasReturn = true; - funcInfo.hasReturnValue = hasReturnValue; - funcInfo.messageId = hasReturnValue ? "missingReturnValue" : "unexpectedReturnValue"; - funcInfo.data = { - name: funcInfo.node.type === "Program" - ? "Program" - : upperCaseFirst(astUtils.getFunctionNameWithKind(funcInfo.node)) - }; - } else if (funcInfo.hasReturnValue !== hasReturnValue) { - context.report({ - node, - messageId: funcInfo.messageId, - data: funcInfo.data - }); - } - }, - - // Reports a given program/function if the implicit returning is not consistent. - "Program:exit": checkLastSegment, - "FunctionDeclaration:exit": checkLastSegment, - "FunctionExpression:exit": checkLastSegment, - "ArrowFunctionExpression:exit": checkLastSegment - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/consistent-this.js b/graphql/node_modules/eslint/lib/rules/consistent-this.js deleted file mode 100644 index 658957ae..00000000 --- a/graphql/node_modules/eslint/lib/rules/consistent-this.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @fileoverview Rule to enforce consistent naming of "this" context variables - * @author Raphael Pigulla - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce consistent naming when capturing the current execution context", - recommended: false, - url: "https://eslint.org/docs/latest/rules/consistent-this" - }, - - schema: { - type: "array", - items: { - type: "string", - minLength: 1 - }, - uniqueItems: true - }, - - messages: { - aliasNotAssignedToThis: "Designated alias '{{name}}' is not assigned to 'this'.", - unexpectedAlias: "Unexpected alias '{{name}}' for 'this'." - } - }, - - create(context) { - let aliases = []; - const sourceCode = context.sourceCode; - - if (context.options.length === 0) { - aliases.push("that"); - } else { - aliases = context.options; - } - - /** - * Reports that a variable declarator or assignment expression is assigning - * a non-'this' value to the specified alias. - * @param {ASTNode} node The assigning node. - * @param {string} name the name of the alias that was incorrectly used. - * @returns {void} - */ - function reportBadAssignment(node, name) { - context.report({ node, messageId: "aliasNotAssignedToThis", data: { name } }); - } - - /** - * Checks that an assignment to an identifier only assigns 'this' to the - * appropriate alias, and the alias is only assigned to 'this'. - * @param {ASTNode} node The assigning node. - * @param {Identifier} name The name of the variable assigned to. - * @param {Expression} value The value of the assignment. - * @returns {void} - */ - function checkAssignment(node, name, value) { - const isThis = value.type === "ThisExpression"; - - if (aliases.includes(name)) { - if (!isThis || node.operator && node.operator !== "=") { - reportBadAssignment(node, name); - } - } else if (isThis) { - context.report({ node, messageId: "unexpectedAlias", data: { name } }); - } - } - - /** - * Ensures that a variable declaration of the alias in a program or function - * is assigned to the correct value. - * @param {string} alias alias the check the assignment of. - * @param {Object} scope scope of the current code we are checking. - * @private - * @returns {void} - */ - function checkWasAssigned(alias, scope) { - const variable = scope.set.get(alias); - - if (!variable) { - return; - } - - if (variable.defs.some(def => def.node.type === "VariableDeclarator" && - def.node.init !== null)) { - return; - } - - /* - * The alias has been declared and not assigned: check it was - * assigned later in the same scope. - */ - if (!variable.references.some(reference => { - const write = reference.writeExpr; - - return ( - reference.from === scope && - write && write.type === "ThisExpression" && - write.parent.operator === "=" - ); - })) { - variable.defs.map(def => def.node).forEach(node => { - reportBadAssignment(node, alias); - }); - } - } - - /** - * Check each alias to ensure that is was assigned to the correct value. - * @param {ASTNode} node The node that represents the scope to check. - * @returns {void} - */ - function ensureWasAssigned(node) { - const scope = sourceCode.getScope(node); - - aliases.forEach(alias => { - checkWasAssigned(alias, scope); - }); - } - - return { - "Program:exit": ensureWasAssigned, - "FunctionExpression:exit": ensureWasAssigned, - "FunctionDeclaration:exit": ensureWasAssigned, - - VariableDeclarator(node) { - const id = node.id; - const isDestructuring = - id.type === "ArrayPattern" || id.type === "ObjectPattern"; - - if (node.init !== null && !isDestructuring) { - checkAssignment(node, id.name, node.init); - } - }, - - AssignmentExpression(node) { - if (node.left.type === "Identifier") { - checkAssignment(node, node.left.name, node.right); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/constructor-super.js b/graphql/node_modules/eslint/lib/rules/constructor-super.js deleted file mode 100644 index 6f46278f..00000000 --- a/graphql/node_modules/eslint/lib/rules/constructor-super.js +++ /dev/null @@ -1,445 +0,0 @@ -/** - * @fileoverview A rule to verify `super()` callings in constructor. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given node is a constructor. - * @param {ASTNode} node A node to check. This node type is one of - * `Program`, `FunctionDeclaration`, `FunctionExpression`, and - * `ArrowFunctionExpression`. - * @returns {boolean} `true` if the node is a constructor. - */ -function isConstructorFunction(node) { - return ( - node.type === "FunctionExpression" && - node.parent.type === "MethodDefinition" && - node.parent.kind === "constructor" - ); -} - -/** - * Checks whether a given node can be a constructor or not. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node can be a constructor. - */ -function isPossibleConstructor(node) { - if (!node) { - return false; - } - - switch (node.type) { - case "ClassExpression": - case "FunctionExpression": - case "ThisExpression": - case "MemberExpression": - case "CallExpression": - case "NewExpression": - case "ChainExpression": - case "YieldExpression": - case "TaggedTemplateExpression": - case "MetaProperty": - return true; - - case "Identifier": - return node.name !== "undefined"; - - case "AssignmentExpression": - if (["=", "&&="].includes(node.operator)) { - return isPossibleConstructor(node.right); - } - - if (["||=", "??="].includes(node.operator)) { - return ( - isPossibleConstructor(node.left) || - isPossibleConstructor(node.right) - ); - } - - /** - * All other assignment operators are mathematical assignment operators (arithmetic or bitwise). - * An assignment expression with a mathematical operator can either evaluate to a primitive value, - * or throw, depending on the operands. Thus, it cannot evaluate to a constructor function. - */ - return false; - - case "LogicalExpression": - - /* - * If the && operator short-circuits, the left side was falsy and therefore not a constructor, and if - * it doesn't short-circuit, it takes the value from the right side, so the right side must always be a - * possible constructor. A future improvement could verify that the left side could be truthy by - * excluding falsy literals. - */ - if (node.operator === "&&") { - return isPossibleConstructor(node.right); - } - - return ( - isPossibleConstructor(node.left) || - isPossibleConstructor(node.right) - ); - - case "ConditionalExpression": - return ( - isPossibleConstructor(node.alternate) || - isPossibleConstructor(node.consequent) - ); - - case "SequenceExpression": { - const lastExpression = node.expressions.at(-1); - - return isPossibleConstructor(lastExpression); - } - - default: - return false; - } -} - -/** - * A class to store information about a code path segment. - */ -class SegmentInfo { - - /** - * Indicates if super() is called in all code paths. - * @type {boolean} - */ - calledInEveryPaths = false; - - /** - * Indicates if super() is called in any code paths. - * @type {boolean} - */ - calledInSomePaths = false; - - /** - * The nodes which have been validated and don't need to be reconsidered. - * @type {ASTNode[]} - */ - validNodes = []; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Require `super()` calls in constructors", - recommended: true, - url: "https://eslint.org/docs/latest/rules/constructor-super" - }, - - schema: [], - - messages: { - missingSome: "Lacked a call of 'super()' in some code paths.", - missingAll: "Expected to call 'super()'.", - - duplicate: "Unexpected duplicate 'super()'.", - badSuper: "Unexpected 'super()' because 'super' is not a constructor." - } - }, - - create(context) { - - /* - * {{hasExtends: boolean, scope: Scope, codePath: CodePath}[]} - * Information for each constructor. - * - upper: Information of the upper constructor. - * - hasExtends: A flag which shows whether own class has a valid `extends` - * part. - * - scope: The scope of own class. - * - codePath: The code path object of the constructor. - */ - let funcInfo = null; - - /** - * @type {Record} - */ - const segInfoMap = Object.create(null); - - /** - * Gets the flag which shows `super()` is called in some paths. - * @param {CodePathSegment} segment A code path segment to get. - * @returns {boolean} The flag which shows `super()` is called in some paths - */ - function isCalledInSomePath(segment) { - return segment.reachable && segInfoMap[segment.id].calledInSomePaths; - } - - /** - * Determines if a segment has been seen in the traversal. - * @param {CodePathSegment} segment A code path segment to check. - * @returns {boolean} `true` if the segment has been seen. - */ - function hasSegmentBeenSeen(segment) { - return !!segInfoMap[segment.id]; - } - - /** - * Gets the flag which shows `super()` is called in all paths. - * @param {CodePathSegment} segment A code path segment to get. - * @returns {boolean} The flag which shows `super()` is called in all paths. - */ - function isCalledInEveryPath(segment) { - return segment.reachable && segInfoMap[segment.id].calledInEveryPaths; - } - - return { - - /** - * Stacks a constructor information. - * @param {CodePath} codePath A code path which was started. - * @param {ASTNode} node The current node. - * @returns {void} - */ - onCodePathStart(codePath, node) { - if (isConstructorFunction(node)) { - - // Class > ClassBody > MethodDefinition > FunctionExpression - const classNode = node.parent.parent.parent; - const superClass = classNode.superClass; - - funcInfo = { - upper: funcInfo, - isConstructor: true, - hasExtends: Boolean(superClass), - superIsConstructor: isPossibleConstructor(superClass), - codePath, - currentSegments: new Set() - }; - } else { - funcInfo = { - upper: funcInfo, - isConstructor: false, - hasExtends: false, - superIsConstructor: false, - codePath, - currentSegments: new Set() - }; - } - }, - - /** - * Pops a constructor information. - * And reports if `super()` lacked. - * @param {CodePath} codePath A code path which was ended. - * @param {ASTNode} node The current node. - * @returns {void} - */ - onCodePathEnd(codePath, node) { - const hasExtends = funcInfo.hasExtends; - - // Pop. - funcInfo = funcInfo.upper; - - if (!hasExtends) { - return; - } - - // Reports if `super()` lacked. - const returnedSegments = codePath.returnedSegments; - const calledInEveryPaths = returnedSegments.every(isCalledInEveryPath); - const calledInSomePaths = returnedSegments.some(isCalledInSomePath); - - if (!calledInEveryPaths) { - context.report({ - messageId: calledInSomePaths - ? "missingSome" - : "missingAll", - node: node.parent - }); - } - }, - - /** - * Initialize information of a given code path segment. - * @param {CodePathSegment} segment A code path segment to initialize. - * @param {CodePathSegment} node Node that starts the segment. - * @returns {void} - */ - onCodePathSegmentStart(segment, node) { - - funcInfo.currentSegments.add(segment); - - if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { - return; - } - - // Initialize info. - const info = segInfoMap[segment.id] = new SegmentInfo(); - - const seenPrevSegments = segment.prevSegments.filter(hasSegmentBeenSeen); - - // When there are previous segments, aggregates these. - if (seenPrevSegments.length > 0) { - info.calledInSomePaths = seenPrevSegments.some(isCalledInSomePath); - info.calledInEveryPaths = seenPrevSegments.every(isCalledInEveryPath); - } - - /* - * ForStatement > *.update segments are a special case as they are created in advance, - * without seen previous segments. Since they logically don't affect `calledInEveryPaths` - * calculations, and they can never be a lone previous segment of another one, we'll set - * their `calledInEveryPaths` to `true` to effectively ignore them in those calculations. - * . - */ - if (node.parent && node.parent.type === "ForStatement" && node.parent.update === node) { - info.calledInEveryPaths = true; - } - }, - - onUnreachableCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - - /** - * Update information of the code path segment when a code path was - * looped. - * @param {CodePathSegment} fromSegment The code path segment of the - * end of a loop. - * @param {CodePathSegment} toSegment A code path segment of the head - * of a loop. - * @returns {void} - */ - onCodePathSegmentLoop(fromSegment, toSegment) { - if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { - return; - } - - funcInfo.codePath.traverseSegments( - { first: toSegment, last: fromSegment }, - (segment, controller) => { - const info = segInfoMap[segment.id]; - - // skip segments after the loop - if (!info) { - controller.skip(); - return; - } - - const seenPrevSegments = segment.prevSegments.filter(hasSegmentBeenSeen); - const calledInSomePreviousPaths = seenPrevSegments.some(isCalledInSomePath); - const calledInEveryPreviousPaths = seenPrevSegments.every(isCalledInEveryPath); - - info.calledInSomePaths ||= calledInSomePreviousPaths; - info.calledInEveryPaths ||= calledInEveryPreviousPaths; - - // If flags become true anew, reports the valid nodes. - if (calledInSomePreviousPaths) { - const nodes = info.validNodes; - - info.validNodes = []; - - for (let i = 0; i < nodes.length; ++i) { - const node = nodes[i]; - - context.report({ - messageId: "duplicate", - node - }); - } - } - } - ); - }, - - /** - * Checks for a call of `super()`. - * @param {ASTNode} node A CallExpression node to check. - * @returns {void} - */ - "CallExpression:exit"(node) { - if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { - return; - } - - // Skips except `super()`. - if (node.callee.type !== "Super") { - return; - } - - // Reports if needed. - const segments = funcInfo.currentSegments; - let duplicate = false; - let info = null; - - for (const segment of segments) { - - if (segment.reachable) { - info = segInfoMap[segment.id]; - - duplicate = duplicate || info.calledInSomePaths; - info.calledInSomePaths = info.calledInEveryPaths = true; - } - } - - if (info) { - if (duplicate) { - context.report({ - messageId: "duplicate", - node - }); - } else if (!funcInfo.superIsConstructor) { - context.report({ - messageId: "badSuper", - node - }); - } else { - info.validNodes.push(node); - } - } - }, - - /** - * Set the mark to the returned path as `super()` was called. - * @param {ASTNode} node A ReturnStatement node to check. - * @returns {void} - */ - ReturnStatement(node) { - if (!(funcInfo.isConstructor && funcInfo.hasExtends)) { - return; - } - - // Skips if no argument. - if (!node.argument) { - return; - } - - // Returning argument is a substitute of 'super()'. - const segments = funcInfo.currentSegments; - - for (const segment of segments) { - - if (segment.reachable) { - const info = segInfoMap[segment.id]; - - info.calledInSomePaths = info.calledInEveryPaths = true; - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/curly.js b/graphql/node_modules/eslint/lib/rules/curly.js deleted file mode 100644 index 35408247..00000000 --- a/graphql/node_modules/eslint/lib/rules/curly.js +++ /dev/null @@ -1,486 +0,0 @@ -/** - * @fileoverview Rule to flag statements without curly braces - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce consistent brace style for all control statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/curly" - }, - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["all"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["multi", "multi-line", "multi-or-nest"] - }, - { - enum: ["consistent"] - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - fixable: "code", - - messages: { - missingCurlyAfter: "Expected { after '{{name}}'.", - missingCurlyAfterCondition: "Expected { after '{{name}}' condition.", - unexpectedCurlyAfter: "Unnecessary { after '{{name}}'.", - unexpectedCurlyAfterCondition: "Unnecessary { after '{{name}}' condition." - } - }, - - create(context) { - - const multiOnly = (context.options[0] === "multi"); - const multiLine = (context.options[0] === "multi-line"); - const multiOrNest = (context.options[0] === "multi-or-nest"); - const consistent = (context.options[1] === "consistent"); - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Determines if a given node is a one-liner that's on the same line as it's preceding code. - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node is a one-liner that's on the same line as it's preceding code. - * @private - */ - function isCollapsedOneLiner(node) { - const before = sourceCode.getTokenBefore(node); - const last = sourceCode.getLastToken(node); - const lastExcludingSemicolon = astUtils.isSemicolonToken(last) ? sourceCode.getTokenBefore(last) : last; - - return before.loc.start.line === lastExcludingSemicolon.loc.end.line; - } - - /** - * Determines if a given node is a one-liner. - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node is a one-liner. - * @private - */ - function isOneLiner(node) { - if (node.type === "EmptyStatement") { - return true; - } - - const first = sourceCode.getFirstToken(node); - const last = sourceCode.getLastToken(node); - const lastExcludingSemicolon = astUtils.isSemicolonToken(last) ? sourceCode.getTokenBefore(last) : last; - - return first.loc.start.line === lastExcludingSemicolon.loc.end.line; - } - - /** - * Determines if the given node is a lexical declaration (let, const, function, or class) - * @param {ASTNode} node The node to check - * @returns {boolean} True if the node is a lexical declaration - * @private - */ - function isLexicalDeclaration(node) { - if (node.type === "VariableDeclaration") { - return node.kind === "const" || node.kind === "let"; - } - - return node.type === "FunctionDeclaration" || node.type === "ClassDeclaration"; - } - - /** - * Checks if the given token is an `else` token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an `else` token. - */ - function isElseKeywordToken(token) { - return token.value === "else" && token.type === "Keyword"; - } - - /** - * Determines whether the given node has an `else` keyword token as the first token after. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is followed by an `else` keyword token. - */ - function isFollowedByElseKeyword(node) { - const nextToken = sourceCode.getTokenAfter(node); - - return Boolean(nextToken) && isElseKeywordToken(nextToken); - } - - /** - * Determines if a semicolon needs to be inserted after removing a set of curly brackets, in order to avoid a SyntaxError. - * @param {Token} closingBracket The } token - * @returns {boolean} `true` if a semicolon needs to be inserted after the last statement in the block. - */ - function needsSemicolon(closingBracket) { - const tokenBefore = sourceCode.getTokenBefore(closingBracket); - const tokenAfter = sourceCode.getTokenAfter(closingBracket); - const lastBlockNode = sourceCode.getNodeByRangeIndex(tokenBefore.range[0]); - - if (astUtils.isSemicolonToken(tokenBefore)) { - - // If the last statement already has a semicolon, don't add another one. - return false; - } - - if (!tokenAfter) { - - // If there are no statements after this block, there is no need to add a semicolon. - return false; - } - - if (lastBlockNode.type === "BlockStatement" && lastBlockNode.parent.type !== "FunctionExpression" && lastBlockNode.parent.type !== "ArrowFunctionExpression") { - - /* - * If the last node surrounded by curly brackets is a BlockStatement (other than a FunctionExpression or an ArrowFunctionExpression), - * don't insert a semicolon. Otherwise, the semicolon would be parsed as a separate statement, which would cause - * a SyntaxError if it was followed by `else`. - */ - return false; - } - - if (tokenBefore.loc.end.line === tokenAfter.loc.start.line) { - - // If the next token is on the same line, insert a semicolon. - return true; - } - - if (/^[([/`+-]/u.test(tokenAfter.value)) { - - // If the next token starts with a character that would disrupt ASI, insert a semicolon. - return true; - } - - if (tokenBefore.type === "Punctuator" && (tokenBefore.value === "++" || tokenBefore.value === "--")) { - - // If the last token is ++ or --, insert a semicolon to avoid disrupting ASI. - return true; - } - - // Otherwise, do not insert a semicolon. - return false; - } - - /** - * Determines whether the code represented by the given node contains an `if` statement - * that would become associated with an `else` keyword directly appended to that code. - * - * Examples where it returns `true`: - * - * if (a) - * foo(); - * - * if (a) { - * foo(); - * } - * - * if (a) - * foo(); - * else if (b) - * bar(); - * - * while (a) - * if (b) - * if(c) - * foo(); - * else - * bar(); - * - * Examples where it returns `false`: - * - * if (a) - * foo(); - * else - * bar(); - * - * while (a) { - * if (b) - * if(c) - * foo(); - * else - * bar(); - * } - * - * while (a) - * if (b) { - * if(c) - * foo(); - * } - * else - * bar(); - * @param {ASTNode} node Node representing the code to check. - * @returns {boolean} `true` if an `if` statement within the code would become associated with an `else` appended to that code. - */ - function hasUnsafeIf(node) { - switch (node.type) { - case "IfStatement": - if (!node.alternate) { - return true; - } - return hasUnsafeIf(node.alternate); - case "ForStatement": - case "ForInStatement": - case "ForOfStatement": - case "LabeledStatement": - case "WithStatement": - case "WhileStatement": - return hasUnsafeIf(node.body); - default: - return false; - } - } - - /** - * Determines whether the existing curly braces around the single statement are necessary to preserve the semantics of the code. - * The braces, which make the given block body, are necessary in either of the following situations: - * - * 1. The statement is a lexical declaration. - * 2. Without the braces, an `if` within the statement would become associated with an `else` after the closing brace: - * - * if (a) { - * if (b) - * foo(); - * } - * else - * bar(); - * - * if (a) - * while (b) - * while (c) { - * while (d) - * if (e) - * while(f) - * foo(); - * } - * else - * bar(); - * @param {ASTNode} node `BlockStatement` body with exactly one statement directly inside. The statement can have its own nested statements. - * @returns {boolean} `true` if the braces are necessary - removing them (replacing the given `BlockStatement` body with its single statement content) - * would change the semantics of the code or produce a syntax error. - */ - function areBracesNecessary(node) { - const statement = node.body[0]; - - return isLexicalDeclaration(statement) || - hasUnsafeIf(statement) && isFollowedByElseKeyword(node); - } - - /** - * Prepares to check the body of a node to see if it's a block statement. - * @param {ASTNode} node The node to report if there's a problem. - * @param {ASTNode} body The body node to check for blocks. - * @param {string} name The name to report if there's a problem. - * @param {{ condition: boolean }} opts Options to pass to the report functions - * @returns {Object} a prepared check object, with "actual", "expected", "check" properties. - * "actual" will be `true` or `false` whether the body is already a block statement. - * "expected" will be `true` or `false` if the body should be a block statement or not, or - * `null` if it doesn't matter, depending on the rule options. It can be modified to change - * the final behavior of "check". - * "check" will be a function reporting appropriate problems depending on the other - * properties. - */ - function prepareCheck(node, body, name, opts) { - const hasBlock = (body.type === "BlockStatement"); - let expected = null; - - if (hasBlock && (body.body.length !== 1 || areBracesNecessary(body))) { - expected = true; - } else if (multiOnly) { - expected = false; - } else if (multiLine) { - if (!isCollapsedOneLiner(body)) { - expected = true; - } - - // otherwise, the body is allowed to have braces or not to have braces - - } else if (multiOrNest) { - if (hasBlock) { - const statement = body.body[0]; - const leadingCommentsInBlock = sourceCode.getCommentsBefore(statement); - - expected = !isOneLiner(statement) || leadingCommentsInBlock.length > 0; - } else { - expected = !isOneLiner(body); - } - } else { - - // default "all" - expected = true; - } - - return { - actual: hasBlock, - expected, - check() { - if (this.expected !== null && this.expected !== this.actual) { - if (this.expected) { - context.report({ - node, - loc: body.loc, - messageId: opts && opts.condition ? "missingCurlyAfterCondition" : "missingCurlyAfter", - data: { - name - }, - fix: fixer => fixer.replaceText(body, `{${sourceCode.getText(body)}}`) - }); - } else { - context.report({ - node, - loc: body.loc, - messageId: opts && opts.condition ? "unexpectedCurlyAfterCondition" : "unexpectedCurlyAfter", - data: { - name - }, - fix(fixer) { - - /* - * `do while` expressions sometimes need a space to be inserted after `do`. - * e.g. `do{foo()} while (bar)` should be corrected to `do foo() while (bar)` - */ - const needsPrecedingSpace = node.type === "DoWhileStatement" && - sourceCode.getTokenBefore(body).range[1] === body.range[0] && - !astUtils.canTokensBeAdjacent("do", sourceCode.getFirstToken(body, { skip: 1 })); - - const openingBracket = sourceCode.getFirstToken(body); - const closingBracket = sourceCode.getLastToken(body); - const lastTokenInBlock = sourceCode.getTokenBefore(closingBracket); - - if (needsSemicolon(closingBracket)) { - - /* - * If removing braces would cause a SyntaxError due to multiple statements on the same line (or - * change the semantics of the code due to ASI), don't perform a fix. - */ - return null; - } - - const resultingBodyText = sourceCode.getText().slice(openingBracket.range[1], lastTokenInBlock.range[0]) + - sourceCode.getText(lastTokenInBlock) + - sourceCode.getText().slice(lastTokenInBlock.range[1], closingBracket.range[0]); - - return fixer.replaceText(body, (needsPrecedingSpace ? " " : "") + resultingBodyText); - } - }); - } - } - } - }; - } - - /** - * Prepares to check the bodies of a "if", "else if" and "else" chain. - * @param {ASTNode} node The first IfStatement node of the chain. - * @returns {Object[]} prepared checks for each body of the chain. See `prepareCheck` for more - * information. - */ - function prepareIfChecks(node) { - const preparedChecks = []; - - for (let currentNode = node; currentNode; currentNode = currentNode.alternate) { - preparedChecks.push(prepareCheck(currentNode, currentNode.consequent, "if", { condition: true })); - if (currentNode.alternate && currentNode.alternate.type !== "IfStatement") { - preparedChecks.push(prepareCheck(currentNode, currentNode.alternate, "else")); - break; - } - } - - if (consistent) { - - /* - * If any node should have or already have braces, make sure they - * all have braces. - * If all nodes shouldn't have braces, make sure they don't. - */ - const expected = preparedChecks.some(preparedCheck => { - if (preparedCheck.expected !== null) { - return preparedCheck.expected; - } - return preparedCheck.actual; - }); - - preparedChecks.forEach(preparedCheck => { - preparedCheck.expected = expected; - }); - } - - return preparedChecks; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - IfStatement(node) { - const parent = node.parent; - const isElseIf = parent.type === "IfStatement" && parent.alternate === node; - - if (!isElseIf) { - - // This is a top `if`, check the whole `if-else-if` chain - prepareIfChecks(node).forEach(preparedCheck => { - preparedCheck.check(); - }); - } - - // Skip `else if`, it's already checked (when the top `if` was visited) - }, - - WhileStatement(node) { - prepareCheck(node, node.body, "while", { condition: true }).check(); - }, - - DoWhileStatement(node) { - prepareCheck(node, node.body, "do").check(); - }, - - ForStatement(node) { - prepareCheck(node, node.body, "for", { condition: true }).check(); - }, - - ForInStatement(node) { - prepareCheck(node, node.body, "for-in").check(); - }, - - ForOfStatement(node) { - prepareCheck(node, node.body, "for-of").check(); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/default-case-last.js b/graphql/node_modules/eslint/lib/rules/default-case-last.js deleted file mode 100644 index d4a83b5f..00000000 --- a/graphql/node_modules/eslint/lib/rules/default-case-last.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @fileoverview Rule to enforce default clauses in switch statements to be last - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce default clauses in switch statements to be last", - recommended: false, - url: "https://eslint.org/docs/latest/rules/default-case-last" - }, - - schema: [], - - messages: { - notLast: "Default clause should be the last clause." - } - }, - - create(context) { - return { - SwitchStatement(node) { - const cases = node.cases, - indexOfDefault = cases.findIndex(c => c.test === null); - - if (indexOfDefault !== -1 && indexOfDefault !== cases.length - 1) { - const defaultClause = cases[indexOfDefault]; - - context.report({ node: defaultClause, messageId: "notLast" }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/default-case.js b/graphql/node_modules/eslint/lib/rules/default-case.js deleted file mode 100644 index 1f83cef3..00000000 --- a/graphql/node_modules/eslint/lib/rules/default-case.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @fileoverview require default case in switch statements - * @author Aliaksei Shytkin - */ -"use strict"; - -const DEFAULT_COMMENT_PATTERN = /^no default$/iu; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `default` cases in `switch` statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/default-case" - }, - - schema: [{ - type: "object", - properties: { - commentPattern: { - type: "string" - } - }, - additionalProperties: false - }], - - messages: { - missingDefaultCase: "Expected a default case." - } - }, - - create(context) { - const options = context.options[0] || {}; - const commentPattern = options.commentPattern - ? new RegExp(options.commentPattern, "u") - : DEFAULT_COMMENT_PATTERN; - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Shortcut to get last element of array - * @param {*[]} collection Array - * @returns {any} Last element - */ - function last(collection) { - return collection.at(-1); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - SwitchStatement(node) { - - if (!node.cases.length) { - - /* - * skip check of empty switch because there is no easy way - * to extract comments inside it now - */ - return; - } - - const hasDefault = node.cases.some(v => v.test === null); - - if (!hasDefault) { - - let comment; - - const lastCase = last(node.cases); - const comments = sourceCode.getCommentsAfter(lastCase); - - if (comments.length) { - comment = last(comments); - } - - if (!comment || !commentPattern.test(comment.value.trim())) { - context.report({ node, messageId: "missingDefaultCase" }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/default-param-last.js b/graphql/node_modules/eslint/lib/rules/default-param-last.js deleted file mode 100644 index 3254fa80..00000000 --- a/graphql/node_modules/eslint/lib/rules/default-param-last.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview enforce default parameters to be last - * @author Chiawen Chen - */ - -"use strict"; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce default parameters to be last", - recommended: false, - url: "https://eslint.org/docs/latest/rules/default-param-last" - }, - - schema: [], - - messages: { - shouldBeLast: "Default parameters should be last." - } - }, - - create(context) { - - /** - * Handler for function contexts. - * @param {ASTNode} node function node - * @returns {void} - */ - function handleFunction(node) { - let hasSeenPlainParam = false; - - for (let i = node.params.length - 1; i >= 0; i -= 1) { - const param = node.params[i]; - - if ( - param.type !== "AssignmentPattern" && - param.type !== "RestElement" - ) { - hasSeenPlainParam = true; - continue; - } - - if (hasSeenPlainParam && param.type === "AssignmentPattern") { - context.report({ - node: param, - messageId: "shouldBeLast" - }); - } - } - } - - return { - FunctionDeclaration: handleFunction, - FunctionExpression: handleFunction, - ArrowFunctionExpression: handleFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/dot-location.js b/graphql/node_modules/eslint/lib/rules/dot-location.js deleted file mode 100644 index 0d017c16..00000000 --- a/graphql/node_modules/eslint/lib/rules/dot-location.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @fileoverview Validates newlines before and after dots - * @author Greg Cochard - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent newlines before and after dots", - recommended: false, - url: "https://eslint.org/docs/latest/rules/dot-location" - }, - - schema: [ - { - enum: ["object", "property"] - } - ], - - fixable: "code", - - messages: { - expectedDotAfterObject: "Expected dot to be on same line as object.", - expectedDotBeforeProperty: "Expected dot to be on same line as property." - } - }, - - create(context) { - - const config = context.options[0]; - - // default to onObject if no preference is passed - const onObject = config === "object" || !config; - - const sourceCode = context.sourceCode; - - /** - * Reports if the dot between object and property is on the correct location. - * @param {ASTNode} node The `MemberExpression` node. - * @returns {void} - */ - function checkDotLocation(node) { - const property = node.property; - const dotToken = sourceCode.getTokenBefore(property); - - if (onObject) { - - // `obj` expression can be parenthesized, but those paren tokens are not a part of the `obj` node. - const tokenBeforeDot = sourceCode.getTokenBefore(dotToken); - - if (!astUtils.isTokenOnSameLine(tokenBeforeDot, dotToken)) { - context.report({ - node, - loc: dotToken.loc, - messageId: "expectedDotAfterObject", - *fix(fixer) { - if (dotToken.value.startsWith(".") && astUtils.isDecimalIntegerNumericToken(tokenBeforeDot)) { - yield fixer.insertTextAfter(tokenBeforeDot, ` ${dotToken.value}`); - } else { - yield fixer.insertTextAfter(tokenBeforeDot, dotToken.value); - } - yield fixer.remove(dotToken); - } - }); - } - } else if (!astUtils.isTokenOnSameLine(dotToken, property)) { - context.report({ - node, - loc: dotToken.loc, - messageId: "expectedDotBeforeProperty", - *fix(fixer) { - yield fixer.remove(dotToken); - yield fixer.insertTextBefore(property, dotToken.value); - } - }); - } - } - - /** - * Checks the spacing of the dot within a member expression. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkNode(node) { - if (!node.computed) { - checkDotLocation(node); - } - } - - return { - MemberExpression: checkNode - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/dot-notation.js b/graphql/node_modules/eslint/lib/rules/dot-notation.js deleted file mode 100644 index 21cba54e..00000000 --- a/graphql/node_modules/eslint/lib/rules/dot-notation.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * @fileoverview Rule to warn about using dot notation instead of square bracket notation when possible. - * @author Josh Perez - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const keywords = require("./utils/keywords"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const validIdentifier = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/u; - -// `null` literal must be handled separately. -const literalTypesToCheck = new Set(["string", "boolean"]); - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce dot notation whenever possible", - recommended: false, - url: "https://eslint.org/docs/latest/rules/dot-notation" - }, - - schema: [ - { - type: "object", - properties: { - allowKeywords: { - type: "boolean", - default: true - }, - allowPattern: { - type: "string", - default: "" - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - useDot: "[{{key}}] is better written in dot notation.", - useBrackets: ".{{key}} is a syntax error." - } - }, - - create(context) { - const options = context.options[0] || {}; - const allowKeywords = options.allowKeywords === void 0 || options.allowKeywords; - const sourceCode = context.sourceCode; - - let allowPattern; - - if (options.allowPattern) { - allowPattern = new RegExp(options.allowPattern, "u"); - } - - /** - * Check if the property is valid dot notation - * @param {ASTNode} node The dot notation node - * @param {string} value Value which is to be checked - * @returns {void} - */ - function checkComputedProperty(node, value) { - if ( - validIdentifier.test(value) && - (allowKeywords || !keywords.includes(String(value))) && - !(allowPattern && allowPattern.test(value)) - ) { - const formattedValue = node.property.type === "Literal" ? JSON.stringify(value) : `\`${value}\``; - - context.report({ - node: node.property, - messageId: "useDot", - data: { - key: formattedValue - }, - *fix(fixer) { - const leftBracket = sourceCode.getTokenAfter(node.object, astUtils.isOpeningBracketToken); - const rightBracket = sourceCode.getLastToken(node); - const nextToken = sourceCode.getTokenAfter(node); - - // Don't perform any fixes if there are comments inside the brackets. - if (sourceCode.commentsExistBetween(leftBracket, rightBracket)) { - return; - } - - // Replace the brackets by an identifier. - if (!node.optional) { - yield fixer.insertTextBefore( - leftBracket, - astUtils.isDecimalInteger(node.object) ? " ." : "." - ); - } - yield fixer.replaceTextRange( - [leftBracket.range[0], rightBracket.range[1]], - value - ); - - // Insert a space after the property if it will be connected to the next token. - if ( - nextToken && - rightBracket.range[1] === nextToken.range[0] && - !astUtils.canTokensBeAdjacent(String(value), nextToken) - ) { - yield fixer.insertTextAfter(node, " "); - } - } - }); - } - } - - return { - MemberExpression(node) { - if ( - node.computed && - node.property.type === "Literal" && - (literalTypesToCheck.has(typeof node.property.value) || astUtils.isNullLiteral(node.property)) - ) { - checkComputedProperty(node, node.property.value); - } - if ( - node.computed && - astUtils.isStaticTemplateLiteral(node.property) - ) { - checkComputedProperty(node, node.property.quasis[0].value.cooked); - } - if ( - !allowKeywords && - !node.computed && - node.property.type === "Identifier" && - keywords.includes(String(node.property.name)) - ) { - context.report({ - node: node.property, - messageId: "useBrackets", - data: { - key: node.property.name - }, - *fix(fixer) { - const dotToken = sourceCode.getTokenBefore(node.property); - - // A statement that starts with `let[` is parsed as a destructuring variable declaration, not a MemberExpression. - if (node.object.type === "Identifier" && node.object.name === "let" && !node.optional) { - return; - } - - // Don't perform any fixes if there are comments between the dot and the property name. - if (sourceCode.commentsExistBetween(dotToken, node.property)) { - return; - } - - // Replace the identifier to brackets. - if (!node.optional) { - yield fixer.remove(dotToken); - } - yield fixer.replaceText(node.property, `["${node.property.name}"]`); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/eol-last.js b/graphql/node_modules/eslint/lib/rules/eol-last.js deleted file mode 100644 index c46ff4ef..00000000 --- a/graphql/node_modules/eslint/lib/rules/eol-last.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @fileoverview Require or disallow newline at the end of files - * @author Nodeca Team - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow newline at the end of files", - recommended: false, - url: "https://eslint.org/docs/latest/rules/eol-last" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never", "unix", "windows"] - } - ], - - messages: { - missing: "Newline required at end of file but not found.", - unexpected: "Newline not allowed at end of file." - } - }, - create(context) { - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program: function checkBadEOF(node) { - const sourceCode = context.sourceCode, - src = sourceCode.getText(), - lastLine = sourceCode.lines.at(-1), - location = { - column: lastLine.length, - line: sourceCode.lines.length - }, - LF = "\n", - CRLF = `\r${LF}`, - endsWithNewline = src.endsWith(LF); - - /* - * Empty source is always valid: No content in file so we don't - * need to lint for a newline on the last line of content. - */ - if (!src.length) { - return; - } - - let mode = context.options[0] || "always", - appendCRLF = false; - - if (mode === "unix") { - - // `"unix"` should behave exactly as `"always"` - mode = "always"; - } - if (mode === "windows") { - - // `"windows"` should behave exactly as `"always"`, but append CRLF in the fixer for backwards compatibility - mode = "always"; - appendCRLF = true; - } - if (mode === "always" && !endsWithNewline) { - - // File is not newline-terminated, but should be - context.report({ - node, - loc: location, - messageId: "missing", - fix(fixer) { - return fixer.insertTextAfterRange([0, src.length], appendCRLF ? CRLF : LF); - } - }); - } else if (mode === "never" && endsWithNewline) { - - const secondLastLine = sourceCode.lines.at(-2); - - // File is newline-terminated, but shouldn't be - context.report({ - node, - loc: { - start: { line: sourceCode.lines.length - 1, column: secondLastLine.length }, - end: { line: sourceCode.lines.length, column: 0 } - }, - messageId: "unexpected", - fix(fixer) { - const finalEOLs = /(?:\r?\n)+$/u, - match = finalEOLs.exec(sourceCode.text), - start = match.index, - end = sourceCode.text.length; - - return fixer.replaceTextRange([start, end], ""); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/eqeqeq.js b/graphql/node_modules/eslint/lib/rules/eqeqeq.js deleted file mode 100644 index 12b1e805..00000000 --- a/graphql/node_modules/eslint/lib/rules/eqeqeq.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview Rule to flag statements that use != and == instead of !== and === - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require the use of `===` and `!==`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/eqeqeq" - }, - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["always"] - }, - { - type: "object", - properties: { - null: { - enum: ["always", "never", "ignore"] - } - }, - additionalProperties: false - } - ], - additionalItems: false - }, - { - type: "array", - items: [ - { - enum: ["smart", "allow-null"] - } - ], - additionalItems: false - } - ] - }, - - fixable: "code", - - messages: { - unexpected: "Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'." - } - }, - - create(context) { - const config = context.options[0] || "always"; - const options = context.options[1] || {}; - const sourceCode = context.sourceCode; - - const nullOption = (config === "always") - ? options.null || "always" - : "ignore"; - const enforceRuleForNull = (nullOption === "always"); - const enforceInverseRuleForNull = (nullOption === "never"); - - /** - * Checks if an expression is a typeof expression - * @param {ASTNode} node The node to check - * @returns {boolean} if the node is a typeof expression - */ - function isTypeOf(node) { - return node.type === "UnaryExpression" && node.operator === "typeof"; - } - - /** - * Checks if either operand of a binary expression is a typeof operation - * @param {ASTNode} node The node to check - * @returns {boolean} if one of the operands is typeof - * @private - */ - function isTypeOfBinary(node) { - return isTypeOf(node.left) || isTypeOf(node.right); - } - - /** - * Checks if operands are literals of the same type (via typeof) - * @param {ASTNode} node The node to check - * @returns {boolean} if operands are of same type - * @private - */ - function areLiteralsAndSameType(node) { - return node.left.type === "Literal" && node.right.type === "Literal" && - typeof node.left.value === typeof node.right.value; - } - - /** - * Checks if one of the operands is a literal null - * @param {ASTNode} node The node to check - * @returns {boolean} if operands are null - * @private - */ - function isNullCheck(node) { - return astUtils.isNullLiteral(node.right) || astUtils.isNullLiteral(node.left); - } - - /** - * Reports a message for this rule. - * @param {ASTNode} node The binary expression node that was checked - * @param {string} expectedOperator The operator that was expected (either '==', '!=', '===', or '!==') - * @returns {void} - * @private - */ - function report(node, expectedOperator) { - const operatorToken = sourceCode.getFirstTokenBetween( - node.left, - node.right, - token => token.value === node.operator - ); - - context.report({ - node, - loc: operatorToken.loc, - messageId: "unexpected", - data: { expectedOperator, actualOperator: node.operator }, - fix(fixer) { - - // If the comparison is a `typeof` comparison or both sides are literals with the same type, then it's safe to fix. - if (isTypeOfBinary(node) || areLiteralsAndSameType(node)) { - return fixer.replaceText(operatorToken, expectedOperator); - } - return null; - } - }); - } - - return { - BinaryExpression(node) { - const isNull = isNullCheck(node); - - if (node.operator !== "==" && node.operator !== "!=") { - if (enforceInverseRuleForNull && isNull) { - report(node, node.operator.slice(0, -1)); - } - return; - } - - if (config === "smart" && (isTypeOfBinary(node) || - areLiteralsAndSameType(node) || isNull)) { - return; - } - - if (!enforceRuleForNull && isNull) { - return; - } - - report(node, `${node.operator}=`); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/for-direction.js b/graphql/node_modules/eslint/lib/rules/for-direction.js deleted file mode 100644 index 69198d11..00000000 --- a/graphql/node_modules/eslint/lib/rules/for-direction.js +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @fileoverview enforce "for" loop update clause moving the counter in the right direction.(for-direction) - * @author Aladdin-ADD - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { getStaticValue } = require("@eslint-community/eslint-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Enforce \"for\" loop update clause moving the counter in the right direction", - recommended: true, - url: "https://eslint.org/docs/latest/rules/for-direction" - }, - - fixable: null, - schema: [], - - messages: { - incorrectDirection: "The update clause in this loop moves the variable in the wrong direction." - } - }, - - create(context) { - const { sourceCode } = context; - - /** - * report an error. - * @param {ASTNode} node the node to report. - * @returns {void} - */ - function report(node) { - context.report({ - node, - messageId: "incorrectDirection" - }); - } - - /** - * check the right side of the assignment - * @param {ASTNode} update UpdateExpression to check - * @param {int} dir expected direction that could either be turned around or invalidated - * @returns {int} return dir, the negated dir, or zero if the counter does not change or the direction is not clear - */ - function getRightDirection(update, dir) { - const staticValue = getStaticValue(update.right, sourceCode.getScope(update)); - - if (staticValue && ["bigint", "boolean", "number"].includes(typeof staticValue.value)) { - const sign = Math.sign(Number(staticValue.value)) || 0; // convert NaN to 0 - - return dir * sign; - } - return 0; - } - - /** - * check UpdateExpression add/sub the counter - * @param {ASTNode} update UpdateExpression to check - * @param {string} counter variable name to check - * @returns {int} if add return 1, if sub return -1, if nochange, return 0 - */ - function getUpdateDirection(update, counter) { - if (update.argument.type === "Identifier" && update.argument.name === counter) { - if (update.operator === "++") { - return 1; - } - if (update.operator === "--") { - return -1; - } - } - return 0; - } - - /** - * check AssignmentExpression add/sub the counter - * @param {ASTNode} update AssignmentExpression to check - * @param {string} counter variable name to check - * @returns {int} if add return 1, if sub return -1, if nochange, return 0 - */ - function getAssignmentDirection(update, counter) { - if (update.left.name === counter) { - if (update.operator === "+=") { - return getRightDirection(update, 1); - } - if (update.operator === "-=") { - return getRightDirection(update, -1); - } - } - return 0; - } - - return { - ForStatement(node) { - - if (node.test && node.test.type === "BinaryExpression" && node.update) { - for (const counterPosition of ["left", "right"]) { - if (node.test[counterPosition].type !== "Identifier") { - continue; - } - - const counter = node.test[counterPosition].name; - const operator = node.test.operator; - const update = node.update; - - let wrongDirection; - - if (operator === "<" || operator === "<=") { - wrongDirection = counterPosition === "left" ? -1 : 1; - } else if (operator === ">" || operator === ">=") { - wrongDirection = counterPosition === "left" ? 1 : -1; - } else { - return; - } - - if (update.type === "UpdateExpression") { - if (getUpdateDirection(update, counter) === wrongDirection) { - report(node); - } - } else if (update.type === "AssignmentExpression" && getAssignmentDirection(update, counter) === wrongDirection) { - report(node); - } - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/func-call-spacing.js b/graphql/node_modules/eslint/lib/rules/func-call-spacing.js deleted file mode 100644 index 33f73727..00000000 --- a/graphql/node_modules/eslint/lib/rules/func-call-spacing.js +++ /dev/null @@ -1,233 +0,0 @@ -/** - * @fileoverview Rule to control spacing within function calls - * @author Matt DuVall - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow spacing between function identifiers and their invocations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/func-call-spacing" - }, - - fixable: "whitespace", - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["never"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["always"] - }, - { - type: "object", - properties: { - allowNewlines: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - messages: { - unexpectedWhitespace: "Unexpected whitespace between function name and paren.", - unexpectedNewline: "Unexpected newline between function name and paren.", - missing: "Missing space between function name and paren." - } - }, - - create(context) { - - const never = context.options[0] !== "always"; - const allowNewlines = !never && context.options[1] && context.options[1].allowNewlines; - const sourceCode = context.sourceCode; - const text = sourceCode.getText(); - - /** - * Check if open space is present in a function name - * @param {ASTNode} node node to evaluate - * @param {Token} leftToken The last token of the callee. This may be the closing parenthesis that encloses the callee. - * @param {Token} rightToken Tha first token of the arguments. this is the opening parenthesis that encloses the arguments. - * @returns {void} - * @private - */ - function checkSpacing(node, leftToken, rightToken) { - const textBetweenTokens = text.slice(leftToken.range[1], rightToken.range[0]).replace(/\/\*.*?\*\//gu, ""); - const hasWhitespace = /\s/u.test(textBetweenTokens); - const hasNewline = hasWhitespace && astUtils.LINEBREAK_MATCHER.test(textBetweenTokens); - - /* - * never allowNewlines hasWhitespace hasNewline message - * F F F F Missing space between function name and paren. - * F F F T (Invalid `!hasWhitespace && hasNewline`) - * F F T T Unexpected newline between function name and paren. - * F F T F (OK) - * F T T F (OK) - * F T T T (OK) - * F T F T (Invalid `!hasWhitespace && hasNewline`) - * F T F F Missing space between function name and paren. - * T T F F (Invalid `never && allowNewlines`) - * T T F T (Invalid `!hasWhitespace && hasNewline`) - * T T T T (Invalid `never && allowNewlines`) - * T T T F (Invalid `never && allowNewlines`) - * T F T F Unexpected space between function name and paren. - * T F T T Unexpected space between function name and paren. - * T F F T (Invalid `!hasWhitespace && hasNewline`) - * T F F F (OK) - * - * T T Unexpected space between function name and paren. - * F F Missing space between function name and paren. - * F F T Unexpected newline between function name and paren. - */ - - if (never && hasWhitespace) { - context.report({ - node, - loc: { - start: leftToken.loc.end, - end: { - line: rightToken.loc.start.line, - column: rightToken.loc.start.column - 1 - } - }, - messageId: "unexpectedWhitespace", - fix(fixer) { - - // Don't remove comments. - if (sourceCode.commentsExistBetween(leftToken, rightToken)) { - return null; - } - - // If `?.` exists, it doesn't hide no-unexpected-multiline errors - if (node.optional) { - return fixer.replaceTextRange([leftToken.range[1], rightToken.range[0]], "?."); - } - - /* - * Only autofix if there is no newline - * https://github.com/eslint/eslint/issues/7787 - */ - if (hasNewline) { - return null; - } - return fixer.removeRange([leftToken.range[1], rightToken.range[0]]); - } - }); - } else if (!never && !hasWhitespace) { - context.report({ - node, - loc: { - start: { - line: leftToken.loc.end.line, - column: leftToken.loc.end.column - 1 - }, - end: rightToken.loc.start - }, - messageId: "missing", - fix(fixer) { - if (node.optional) { - return null; // Not sure if inserting a space to either before/after `?.` token. - } - return fixer.insertTextBefore(rightToken, " "); - } - }); - } else if (!never && !allowNewlines && hasNewline) { - context.report({ - node, - loc: { - start: leftToken.loc.end, - end: rightToken.loc.start - }, - messageId: "unexpectedNewline", - fix(fixer) { - - /* - * Only autofix if there is no newline - * https://github.com/eslint/eslint/issues/7787 - * But if `?.` exists, it doesn't hide no-unexpected-multiline errors - */ - if (!node.optional) { - return null; - } - - // Don't remove comments. - if (sourceCode.commentsExistBetween(leftToken, rightToken)) { - return null; - } - - const range = [leftToken.range[1], rightToken.range[0]]; - const qdToken = sourceCode.getTokenAfter(leftToken); - - if (qdToken.range[0] === leftToken.range[1]) { - return fixer.replaceTextRange(range, "?. "); - } - if (qdToken.range[1] === rightToken.range[0]) { - return fixer.replaceTextRange(range, " ?."); - } - return fixer.replaceTextRange(range, " ?. "); - } - }); - } - } - - return { - "CallExpression, NewExpression"(node) { - const lastToken = sourceCode.getLastToken(node); - const lastCalleeToken = sourceCode.getLastToken(node.callee); - const parenToken = sourceCode.getFirstTokenBetween(lastCalleeToken, lastToken, astUtils.isOpeningParenToken); - const prevToken = parenToken && sourceCode.getTokenBefore(parenToken, astUtils.isNotQuestionDotToken); - - // Parens in NewExpression are optional - if (!(parenToken && parenToken.range[1] < node.range[1])) { - return; - } - - checkSpacing(node, prevToken, parenToken); - }, - - ImportExpression(node) { - const leftToken = sourceCode.getFirstToken(node); - const rightToken = sourceCode.getTokenAfter(leftToken); - - checkSpacing(node, leftToken, rightToken); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/func-name-matching.js b/graphql/node_modules/eslint/lib/rules/func-name-matching.js deleted file mode 100644 index b9555d6b..00000000 --- a/graphql/node_modules/eslint/lib/rules/func-name-matching.js +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @fileoverview Rule to require function names to match the name of the variable or property to which they are assigned. - * @author Annie Zhang, Pavel Strashkin - */ - -"use strict"; - -//-------------------------------------------------------------------------- -// Requirements -//-------------------------------------------------------------------------- - -const astUtils = require("./utils/ast-utils"); -const esutils = require("esutils"); - -//-------------------------------------------------------------------------- -// Helpers -//-------------------------------------------------------------------------- - -/** - * Determines if a pattern is `module.exports` or `module["exports"]` - * @param {ASTNode} pattern The left side of the AssignmentExpression - * @returns {boolean} True if the pattern is `module.exports` or `module["exports"]` - */ -function isModuleExports(pattern) { - if (pattern.type === "MemberExpression" && pattern.object.type === "Identifier" && pattern.object.name === "module") { - - // module.exports - if (pattern.property.type === "Identifier" && pattern.property.name === "exports") { - return true; - } - - // module["exports"] - if (pattern.property.type === "Literal" && pattern.property.value === "exports") { - return true; - } - } - return false; -} - -/** - * Determines if a string name is a valid identifier - * @param {string} name The string to be checked - * @param {int} ecmaVersion The ECMAScript version if specified in the parserOptions config - * @returns {boolean} True if the string is a valid identifier - */ -function isIdentifier(name, ecmaVersion) { - if (ecmaVersion >= 2015) { - return esutils.keyword.isIdentifierES6(name); - } - return esutils.keyword.isIdentifierES5(name); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const alwaysOrNever = { enum: ["always", "never"] }; -const optionsObject = { - type: "object", - properties: { - considerPropertyDescriptor: { - type: "boolean" - }, - includeCommonJSModuleExports: { - type: "boolean" - } - }, - additionalProperties: false -}; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require function names to match the name of the variable or property to which they are assigned", - recommended: false, - url: "https://eslint.org/docs/latest/rules/func-name-matching" - }, - - schema: { - anyOf: [{ - type: "array", - additionalItems: false, - items: [alwaysOrNever, optionsObject] - }, { - type: "array", - additionalItems: false, - items: [optionsObject] - }] - }, - - messages: { - matchProperty: "Function name `{{funcName}}` should match property name `{{name}}`.", - matchVariable: "Function name `{{funcName}}` should match variable name `{{name}}`.", - notMatchProperty: "Function name `{{funcName}}` should not match property name `{{name}}`.", - notMatchVariable: "Function name `{{funcName}}` should not match variable name `{{name}}`." - } - }, - - create(context) { - const options = (typeof context.options[0] === "object" ? context.options[0] : context.options[1]) || {}; - const nameMatches = typeof context.options[0] === "string" ? context.options[0] : "always"; - const considerPropertyDescriptor = options.considerPropertyDescriptor; - const includeModuleExports = options.includeCommonJSModuleExports; - const ecmaVersion = context.languageOptions.ecmaVersion; - - /** - * Check whether node is a certain CallExpression. - * @param {string} objName object name - * @param {string} funcName function name - * @param {ASTNode} node The node to check - * @returns {boolean} `true` if node matches CallExpression - */ - function isPropertyCall(objName, funcName, node) { - if (!node) { - return false; - } - return node.type === "CallExpression" && astUtils.isSpecificMemberAccess(node.callee, objName, funcName); - } - - /** - * Compares identifiers based on the nameMatches option - * @param {string} x the first identifier - * @param {string} y the second identifier - * @returns {boolean} whether the two identifiers should warn. - */ - function shouldWarn(x, y) { - return (nameMatches === "always" && x !== y) || (nameMatches === "never" && x === y); - } - - /** - * Reports - * @param {ASTNode} node The node to report - * @param {string} name The variable or property name - * @param {string} funcName The function name - * @param {boolean} isProp True if the reported node is a property assignment - * @returns {void} - */ - function report(node, name, funcName, isProp) { - let messageId; - - if (nameMatches === "always" && isProp) { - messageId = "matchProperty"; - } else if (nameMatches === "always") { - messageId = "matchVariable"; - } else if (isProp) { - messageId = "notMatchProperty"; - } else { - messageId = "notMatchVariable"; - } - context.report({ - node, - messageId, - data: { - name, - funcName - } - }); - } - - /** - * Determines whether a given node is a string literal - * @param {ASTNode} node The node to check - * @returns {boolean} `true` if the node is a string literal - */ - function isStringLiteral(node) { - return node.type === "Literal" && typeof node.value === "string"; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - VariableDeclarator(node) { - if (!node.init || node.init.type !== "FunctionExpression" || node.id.type !== "Identifier") { - return; - } - if (node.init.id && shouldWarn(node.id.name, node.init.id.name)) { - report(node, node.id.name, node.init.id.name, false); - } - }, - - AssignmentExpression(node) { - if ( - node.right.type !== "FunctionExpression" || - (node.left.computed && node.left.property.type !== "Literal") || - (!includeModuleExports && isModuleExports(node.left)) || - (node.left.type !== "Identifier" && node.left.type !== "MemberExpression") - ) { - return; - } - - const isProp = node.left.type === "MemberExpression"; - const name = isProp ? astUtils.getStaticPropertyName(node.left) : node.left.name; - - if (node.right.id && name && isIdentifier(name) && shouldWarn(name, node.right.id.name)) { - report(node, name, node.right.id.name, isProp); - } - }, - - "Property, PropertyDefinition[value]"(node) { - if (!(node.value.type === "FunctionExpression" && node.value.id)) { - return; - } - - if (node.key.type === "Identifier" && !node.computed) { - const functionName = node.value.id.name; - let propertyName = node.key.name; - - if ( - considerPropertyDescriptor && - propertyName === "value" && - node.parent.type === "ObjectExpression" - ) { - if (isPropertyCall("Object", "defineProperty", node.parent.parent) || isPropertyCall("Reflect", "defineProperty", node.parent.parent)) { - const property = node.parent.parent.arguments[1]; - - if (isStringLiteral(property) && shouldWarn(property.value, functionName)) { - report(node, property.value, functionName, true); - } - } else if (isPropertyCall("Object", "defineProperties", node.parent.parent.parent.parent)) { - propertyName = node.parent.parent.key.name; - if (!node.parent.parent.computed && shouldWarn(propertyName, functionName)) { - report(node, propertyName, functionName, true); - } - } else if (isPropertyCall("Object", "create", node.parent.parent.parent.parent)) { - propertyName = node.parent.parent.key.name; - if (!node.parent.parent.computed && shouldWarn(propertyName, functionName)) { - report(node, propertyName, functionName, true); - } - } else if (shouldWarn(propertyName, functionName)) { - report(node, propertyName, functionName, true); - } - } else if (shouldWarn(propertyName, functionName)) { - report(node, propertyName, functionName, true); - } - return; - } - - if ( - isStringLiteral(node.key) && - isIdentifier(node.key.value, ecmaVersion) && - shouldWarn(node.key.value, node.value.id.name) - ) { - report(node, node.key.value, node.value.id.name, true); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/func-names.js b/graphql/node_modules/eslint/lib/rules/func-names.js deleted file mode 100644 index b180580e..00000000 --- a/graphql/node_modules/eslint/lib/rules/func-names.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @fileoverview Rule to warn when a function expression does not have a name. - * @author Kyle T. Nunery - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -/** - * Checks whether or not a given variable is a function name. - * @param {eslint-scope.Variable} variable A variable to check. - * @returns {boolean} `true` if the variable is a function name. - */ -function isFunctionName(variable) { - return variable && variable.defs[0].type === "FunctionName"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow named `function` expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/func-names" - }, - - schema: { - definitions: { - value: { - enum: [ - "always", - "as-needed", - "never" - ] - } - }, - items: [ - { - $ref: "#/definitions/value" - }, - { - type: "object", - properties: { - generators: { - $ref: "#/definitions/value" - } - }, - additionalProperties: false - } - ] - }, - - messages: { - unnamed: "Unexpected unnamed {{name}}.", - named: "Unexpected named {{name}}." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Returns the config option for the given node. - * @param {ASTNode} node A node to get the config for. - * @returns {string} The config option. - */ - function getConfigForNode(node) { - if ( - node.generator && - context.options.length > 1 && - context.options[1].generators - ) { - return context.options[1].generators; - } - - return context.options[0] || "always"; - } - - /** - * Determines whether the current FunctionExpression node is a get, set, or - * shorthand method in an object literal or a class. - * @param {ASTNode} node A node to check. - * @returns {boolean} True if the node is a get, set, or shorthand method. - */ - function isObjectOrClassMethod(node) { - const parent = node.parent; - - return (parent.type === "MethodDefinition" || ( - parent.type === "Property" && ( - parent.method || - parent.kind === "get" || - parent.kind === "set" - ) - )); - } - - /** - * Determines whether the current FunctionExpression node has a name that would be - * inferred from context in a conforming ES6 environment. - * @param {ASTNode} node A node to check. - * @returns {boolean} True if the node would have a name assigned automatically. - */ - function hasInferredName(node) { - const parent = node.parent; - - return isObjectOrClassMethod(node) || - (parent.type === "VariableDeclarator" && parent.id.type === "Identifier" && parent.init === node) || - (parent.type === "Property" && parent.value === node) || - (parent.type === "PropertyDefinition" && parent.value === node) || - (parent.type === "AssignmentExpression" && parent.left.type === "Identifier" && parent.right === node) || - (parent.type === "AssignmentPattern" && parent.left.type === "Identifier" && parent.right === node); - } - - /** - * Reports that an unnamed function should be named - * @param {ASTNode} node The node to report in the event of an error. - * @returns {void} - */ - function reportUnexpectedUnnamedFunction(node) { - context.report({ - node, - messageId: "unnamed", - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - data: { name: astUtils.getFunctionNameWithKind(node) } - }); - } - - /** - * Reports that a named function should be unnamed - * @param {ASTNode} node The node to report in the event of an error. - * @returns {void} - */ - function reportUnexpectedNamedFunction(node) { - context.report({ - node, - messageId: "named", - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - data: { name: astUtils.getFunctionNameWithKind(node) } - }); - } - - /** - * The listener for function nodes. - * @param {ASTNode} node function node - * @returns {void} - */ - function handleFunction(node) { - - // Skip recursive functions. - const nameVar = sourceCode.getDeclaredVariables(node)[0]; - - if (isFunctionName(nameVar) && nameVar.references.length > 0) { - return; - } - - const hasName = Boolean(node.id && node.id.name); - const config = getConfigForNode(node); - - if (config === "never") { - if (hasName && node.type !== "FunctionDeclaration") { - reportUnexpectedNamedFunction(node); - } - } else if (config === "as-needed") { - if (!hasName && !hasInferredName(node)) { - reportUnexpectedUnnamedFunction(node); - } - } else { - if (!hasName && !isObjectOrClassMethod(node)) { - reportUnexpectedUnnamedFunction(node); - } - } - } - - return { - "FunctionExpression:exit": handleFunction, - "ExportDefaultDeclaration > FunctionDeclaration": handleFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/func-style.js b/graphql/node_modules/eslint/lib/rules/func-style.js deleted file mode 100644 index d71f4ae8..00000000 --- a/graphql/node_modules/eslint/lib/rules/func-style.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * @fileoverview Rule to enforce a particular function style - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce the consistent use of either `function` declarations or expressions assigned to variables", - recommended: false, - url: "https://eslint.org/docs/latest/rules/func-style" - }, - - schema: [ - { - enum: ["declaration", "expression"] - }, - { - type: "object", - properties: { - allowArrowFunctions: { - type: "boolean", - default: false - }, - overrides: { - type: "object", - properties: { - namedExports: { - enum: ["declaration", "expression", "ignore"] - } - }, - additionalProperties: false - } - }, - additionalProperties: false - } - ], - - messages: { - expression: "Expected a function expression.", - declaration: "Expected a function declaration." - } - }, - - create(context) { - - const style = context.options[0], - allowArrowFunctions = context.options[1] && context.options[1].allowArrowFunctions, - enforceDeclarations = (style === "declaration"), - exportFunctionStyle = context.options[1] && context.options[1].overrides && context.options[1].overrides.namedExports, - stack = []; - - const nodesToCheck = { - FunctionDeclaration(node) { - stack.push(false); - - if ( - !enforceDeclarations && - node.parent.type !== "ExportDefaultDeclaration" && - (typeof exportFunctionStyle === "undefined" || node.parent.type !== "ExportNamedDeclaration") - ) { - context.report({ node, messageId: "expression" }); - } - - if (node.parent.type === "ExportNamedDeclaration" && exportFunctionStyle === "expression") { - context.report({ node, messageId: "expression" }); - } - }, - "FunctionDeclaration:exit"() { - stack.pop(); - }, - - FunctionExpression(node) { - stack.push(false); - - if ( - enforceDeclarations && - node.parent.type === "VariableDeclarator" && - (typeof exportFunctionStyle === "undefined" || node.parent.parent.parent.type !== "ExportNamedDeclaration") - ) { - context.report({ node: node.parent, messageId: "declaration" }); - } - - if ( - node.parent.type === "VariableDeclarator" && node.parent.parent.parent.type === "ExportNamedDeclaration" && - exportFunctionStyle === "declaration" - ) { - context.report({ node: node.parent, messageId: "declaration" }); - } - }, - "FunctionExpression:exit"() { - stack.pop(); - }, - - "ThisExpression, Super"() { - if (stack.length > 0) { - stack[stack.length - 1] = true; - } - } - }; - - if (!allowArrowFunctions) { - nodesToCheck.ArrowFunctionExpression = function() { - stack.push(false); - }; - - nodesToCheck["ArrowFunctionExpression:exit"] = function(node) { - const hasThisOrSuperExpr = stack.pop(); - - if (!hasThisOrSuperExpr && node.parent.type === "VariableDeclarator") { - if ( - enforceDeclarations && - (typeof exportFunctionStyle === "undefined" || node.parent.parent.parent.type !== "ExportNamedDeclaration") - ) { - context.report({ node: node.parent, messageId: "declaration" }); - } - - if (node.parent.parent.parent.type === "ExportNamedDeclaration" && exportFunctionStyle === "declaration") { - context.report({ node: node.parent, messageId: "declaration" }); - } - } - }; - } - - return nodesToCheck; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/function-call-argument-newline.js b/graphql/node_modules/eslint/lib/rules/function-call-argument-newline.js deleted file mode 100644 index 458399d6..00000000 --- a/graphql/node_modules/eslint/lib/rules/function-call-argument-newline.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @fileoverview Rule to enforce line breaks between arguments of a function call - * @author Alexey Gonchar - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce line breaks between arguments of a function call", - recommended: false, - url: "https://eslint.org/docs/latest/rules/function-call-argument-newline" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never", "consistent"] - } - ], - - messages: { - unexpectedLineBreak: "There should be no line break here.", - missingLineBreak: "There should be a line break after this argument." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const checkers = { - unexpected: { - messageId: "unexpectedLineBreak", - check: (prevToken, currentToken) => prevToken.loc.end.line !== currentToken.loc.start.line, - createFix: (token, tokenBefore) => fixer => - fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], " ") - }, - missing: { - messageId: "missingLineBreak", - check: (prevToken, currentToken) => prevToken.loc.end.line === currentToken.loc.start.line, - createFix: (token, tokenBefore) => fixer => - fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], "\n") - } - }; - - /** - * Check all arguments for line breaks in the CallExpression - * @param {CallExpression} node node to evaluate - * @param {{ messageId: string, check: Function }} checker selected checker - * @returns {void} - * @private - */ - function checkArguments(node, checker) { - for (let i = 1; i < node.arguments.length; i++) { - const prevArgToken = sourceCode.getLastToken(node.arguments[i - 1]); - const currentArgToken = sourceCode.getFirstToken(node.arguments[i]); - - if (checker.check(prevArgToken, currentArgToken)) { - const tokenBefore = sourceCode.getTokenBefore( - currentArgToken, - { includeComments: true } - ); - - const hasLineCommentBefore = tokenBefore.type === "Line"; - - context.report({ - node, - loc: { - start: tokenBefore.loc.end, - end: currentArgToken.loc.start - }, - messageId: checker.messageId, - fix: hasLineCommentBefore ? null : checker.createFix(currentArgToken, tokenBefore) - }); - } - } - } - - /** - * Check if open space is present in a function name - * @param {CallExpression} node node to evaluate - * @returns {void} - * @private - */ - function check(node) { - if (node.arguments.length < 2) { - return; - } - - const option = context.options[0] || "always"; - - if (option === "never") { - checkArguments(node, checkers.unexpected); - } else if (option === "always") { - checkArguments(node, checkers.missing); - } else if (option === "consistent") { - const firstArgToken = sourceCode.getLastToken(node.arguments[0]); - const secondArgToken = sourceCode.getFirstToken(node.arguments[1]); - - if (firstArgToken.loc.end.line === secondArgToken.loc.start.line) { - checkArguments(node, checkers.unexpected); - } else { - checkArguments(node, checkers.missing); - } - } - } - - return { - CallExpression: check, - NewExpression: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/function-paren-newline.js b/graphql/node_modules/eslint/lib/rules/function-paren-newline.js deleted file mode 100644 index 86268e52..00000000 --- a/graphql/node_modules/eslint/lib/rules/function-paren-newline.js +++ /dev/null @@ -1,292 +0,0 @@ -/** - * @fileoverview enforce consistent line breaks inside function parentheses - * @author Teddy Katz - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent line breaks inside function parentheses", - recommended: false, - url: "https://eslint.org/docs/latest/rules/function-paren-newline" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never", "consistent", "multiline", "multiline-arguments"] - }, - { - type: "object", - properties: { - minItems: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - expectedBefore: "Expected newline before ')'.", - expectedAfter: "Expected newline after '('.", - expectedBetween: "Expected newline between arguments/params.", - unexpectedBefore: "Unexpected newline before ')'.", - unexpectedAfter: "Unexpected newline after '('." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const rawOption = context.options[0] || "multiline"; - const multilineOption = rawOption === "multiline"; - const multilineArgumentsOption = rawOption === "multiline-arguments"; - const consistentOption = rawOption === "consistent"; - let minItems; - - if (typeof rawOption === "object") { - minItems = rawOption.minItems; - } else if (rawOption === "always") { - minItems = 0; - } else if (rawOption === "never") { - minItems = Infinity; - } else { - minItems = null; - } - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Determines whether there should be newlines inside function parens - * @param {ASTNode[]} elements The arguments or parameters in the list - * @param {boolean} hasLeftNewline `true` if the left paren has a newline in the current code. - * @returns {boolean} `true` if there should be newlines inside the function parens - */ - function shouldHaveNewlines(elements, hasLeftNewline) { - if (multilineArgumentsOption && elements.length === 1) { - return hasLeftNewline; - } - if (multilineOption || multilineArgumentsOption) { - return elements.some((element, index) => index !== elements.length - 1 && element.loc.end.line !== elements[index + 1].loc.start.line); - } - if (consistentOption) { - return hasLeftNewline; - } - return elements.length >= minItems; - } - - /** - * Validates parens - * @param {Object} parens An object with keys `leftParen` for the left paren token, and `rightParen` for the right paren token - * @param {ASTNode[]} elements The arguments or parameters in the list - * @returns {void} - */ - function validateParens(parens, elements) { - const leftParen = parens.leftParen; - const rightParen = parens.rightParen; - const tokenAfterLeftParen = sourceCode.getTokenAfter(leftParen); - const tokenBeforeRightParen = sourceCode.getTokenBefore(rightParen); - const hasLeftNewline = !astUtils.isTokenOnSameLine(leftParen, tokenAfterLeftParen); - const hasRightNewline = !astUtils.isTokenOnSameLine(tokenBeforeRightParen, rightParen); - const needsNewlines = shouldHaveNewlines(elements, hasLeftNewline); - - if (hasLeftNewline && !needsNewlines) { - context.report({ - node: leftParen, - messageId: "unexpectedAfter", - fix(fixer) { - return sourceCode.getText().slice(leftParen.range[1], tokenAfterLeftParen.range[0]).trim() - - // If there is a comment between the ( and the first element, don't do a fix. - ? null - : fixer.removeRange([leftParen.range[1], tokenAfterLeftParen.range[0]]); - } - }); - } else if (!hasLeftNewline && needsNewlines) { - context.report({ - node: leftParen, - messageId: "expectedAfter", - fix: fixer => fixer.insertTextAfter(leftParen, "\n") - }); - } - - if (hasRightNewline && !needsNewlines) { - context.report({ - node: rightParen, - messageId: "unexpectedBefore", - fix(fixer) { - return sourceCode.getText().slice(tokenBeforeRightParen.range[1], rightParen.range[0]).trim() - - // If there is a comment between the last element and the ), don't do a fix. - ? null - : fixer.removeRange([tokenBeforeRightParen.range[1], rightParen.range[0]]); - } - }); - } else if (!hasRightNewline && needsNewlines) { - context.report({ - node: rightParen, - messageId: "expectedBefore", - fix: fixer => fixer.insertTextBefore(rightParen, "\n") - }); - } - } - - /** - * Validates a list of arguments or parameters - * @param {Object} parens An object with keys `leftParen` for the left paren token, and `rightParen` for the right paren token - * @param {ASTNode[]} elements The arguments or parameters in the list - * @returns {void} - */ - function validateArguments(parens, elements) { - const leftParen = parens.leftParen; - const tokenAfterLeftParen = sourceCode.getTokenAfter(leftParen); - const hasLeftNewline = !astUtils.isTokenOnSameLine(leftParen, tokenAfterLeftParen); - const needsNewlines = shouldHaveNewlines(elements, hasLeftNewline); - - for (let i = 0; i <= elements.length - 2; i++) { - const currentElement = elements[i]; - const nextElement = elements[i + 1]; - const hasNewLine = currentElement.loc.end.line !== nextElement.loc.start.line; - - if (!hasNewLine && needsNewlines) { - context.report({ - node: currentElement, - messageId: "expectedBetween", - fix: fixer => fixer.insertTextBefore(nextElement, "\n") - }); - } - } - } - - /** - * Gets the left paren and right paren tokens of a node. - * @param {ASTNode} node The node with parens - * @throws {TypeError} Unexpected node type. - * @returns {Object} An object with keys `leftParen` for the left paren token, and `rightParen` for the right paren token. - * Can also return `null` if an expression has no parens (e.g. a NewExpression with no arguments, or an ArrowFunctionExpression - * with a single parameter) - */ - function getParenTokens(node) { - switch (node.type) { - case "NewExpression": - if (!node.arguments.length && - !( - astUtils.isOpeningParenToken(sourceCode.getLastToken(node, { skip: 1 })) && - astUtils.isClosingParenToken(sourceCode.getLastToken(node)) && - node.callee.range[1] < node.range[1] - ) - ) { - - // If the NewExpression does not have parens (e.g. `new Foo`), return null. - return null; - } - - // falls through - - case "CallExpression": - return { - leftParen: sourceCode.getTokenAfter(node.callee, astUtils.isOpeningParenToken), - rightParen: sourceCode.getLastToken(node) - }; - - case "FunctionDeclaration": - case "FunctionExpression": { - const leftParen = sourceCode.getFirstToken(node, astUtils.isOpeningParenToken); - const rightParen = node.params.length - ? sourceCode.getTokenAfter(node.params.at(-1), astUtils.isClosingParenToken) - : sourceCode.getTokenAfter(leftParen); - - return { leftParen, rightParen }; - } - - case "ArrowFunctionExpression": { - const firstToken = sourceCode.getFirstToken(node, { skip: (node.async ? 1 : 0) }); - - if (!astUtils.isOpeningParenToken(firstToken)) { - - // If the ArrowFunctionExpression has a single param without parens, return null. - return null; - } - - const rightParen = node.params.length - ? sourceCode.getTokenAfter(node.params.at(-1), astUtils.isClosingParenToken) - : sourceCode.getTokenAfter(firstToken); - - return { - leftParen: firstToken, - rightParen - }; - } - - case "ImportExpression": { - const leftParen = sourceCode.getFirstToken(node, 1); - const rightParen = sourceCode.getLastToken(node); - - return { leftParen, rightParen }; - } - - default: - throw new TypeError(`unexpected node with type ${node.type}`); - } - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - [[ - "ArrowFunctionExpression", - "CallExpression", - "FunctionDeclaration", - "FunctionExpression", - "ImportExpression", - "NewExpression" - ]](node) { - const parens = getParenTokens(node); - let params; - - if (node.type === "ImportExpression") { - params = [node.source]; - } else if (astUtils.isFunction(node)) { - params = node.params; - } else { - params = node.arguments; - } - - if (parens) { - validateParens(parens, params); - - if (multilineArgumentsOption) { - validateArguments(parens, params); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/generator-star-spacing.js b/graphql/node_modules/eslint/lib/rules/generator-star-spacing.js deleted file mode 100644 index c633f979..00000000 --- a/graphql/node_modules/eslint/lib/rules/generator-star-spacing.js +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @fileoverview Rule to check the spacing around the * in generator functions. - * @author Jamund Ferguson - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const OVERRIDE_SCHEMA = { - oneOf: [ - { - enum: ["before", "after", "both", "neither"] - }, - { - type: "object", - properties: { - before: { type: "boolean" }, - after: { type: "boolean" } - }, - additionalProperties: false - } - ] -}; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing around `*` operators in generator functions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/generator-star-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["before", "after", "both", "neither"] - }, - { - type: "object", - properties: { - before: { type: "boolean" }, - after: { type: "boolean" }, - named: OVERRIDE_SCHEMA, - anonymous: OVERRIDE_SCHEMA, - method: OVERRIDE_SCHEMA - }, - additionalProperties: false - } - ] - } - ], - - messages: { - missingBefore: "Missing space before *.", - missingAfter: "Missing space after *.", - unexpectedBefore: "Unexpected space before *.", - unexpectedAfter: "Unexpected space after *." - } - }, - - create(context) { - - const optionDefinitions = { - before: { before: true, after: false }, - after: { before: false, after: true }, - both: { before: true, after: true }, - neither: { before: false, after: false } - }; - - /** - * Returns resolved option definitions based on an option and defaults - * @param {any} option The option object or string value - * @param {Object} defaults The defaults to use if options are not present - * @returns {Object} the resolved object definition - */ - function optionToDefinition(option, defaults) { - if (!option) { - return defaults; - } - - return typeof option === "string" - ? optionDefinitions[option] - : Object.assign({}, defaults, option); - } - - const modes = (function(option) { - const defaults = optionToDefinition(option, optionDefinitions.before); - - return { - named: optionToDefinition(option.named, defaults), - anonymous: optionToDefinition(option.anonymous, defaults), - method: optionToDefinition(option.method, defaults) - }; - }(context.options[0] || {})); - - const sourceCode = context.sourceCode; - - /** - * Checks if the given token is a star token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a star token. - */ - function isStarToken(token) { - return token.value === "*" && token.type === "Punctuator"; - } - - /** - * Gets the generator star token of the given function node. - * @param {ASTNode} node The function node to get. - * @returns {Token} Found star token. - */ - function getStarToken(node) { - return sourceCode.getFirstToken( - (node.parent.method || node.parent.type === "MethodDefinition") ? node.parent : node, - isStarToken - ); - } - - /** - * capitalize a given string. - * @param {string} str the given string. - * @returns {string} the capitalized string. - */ - function capitalize(str) { - return str[0].toUpperCase() + str.slice(1); - } - - /** - * Checks the spacing between two tokens before or after the star token. - * @param {string} kind Either "named", "anonymous", or "method" - * @param {string} side Either "before" or "after". - * @param {Token} leftToken `function` keyword token if side is "before", or - * star token if side is "after". - * @param {Token} rightToken Star token if side is "before", or identifier - * token if side is "after". - * @returns {void} - */ - function checkSpacing(kind, side, leftToken, rightToken) { - if (!!(rightToken.range[0] - leftToken.range[1]) !== modes[kind][side]) { - const after = leftToken.value === "*"; - const spaceRequired = modes[kind][side]; - const node = after ? leftToken : rightToken; - const messageId = `${spaceRequired ? "missing" : "unexpected"}${capitalize(side)}`; - - context.report({ - node, - messageId, - fix(fixer) { - if (spaceRequired) { - if (after) { - return fixer.insertTextAfter(node, " "); - } - return fixer.insertTextBefore(node, " "); - } - return fixer.removeRange([leftToken.range[1], rightToken.range[0]]); - } - }); - } - } - - /** - * Enforces the spacing around the star if node is a generator function. - * @param {ASTNode} node A function expression or declaration node. - * @returns {void} - */ - function checkFunction(node) { - if (!node.generator) { - return; - } - - const starToken = getStarToken(node); - const prevToken = sourceCode.getTokenBefore(starToken); - const nextToken = sourceCode.getTokenAfter(starToken); - - let kind = "named"; - - if (node.parent.type === "MethodDefinition" || (node.parent.type === "Property" && node.parent.method)) { - kind = "method"; - } else if (!node.id) { - kind = "anonymous"; - } - - // Only check before when preceded by `function`|`static` keyword - if (!(kind === "method" && starToken === sourceCode.getFirstToken(node.parent))) { - checkSpacing(kind, "before", prevToken, starToken); - } - - checkSpacing(kind, "after", starToken, nextToken); - } - - return { - FunctionDeclaration: checkFunction, - FunctionExpression: checkFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/getter-return.js b/graphql/node_modules/eslint/lib/rules/getter-return.js deleted file mode 100644 index 79ebf3e0..00000000 --- a/graphql/node_modules/eslint/lib/rules/getter-return.js +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @fileoverview Enforces that a return statement is present in property getters. - * @author Aladdin-ADD(hh_2013@foxmail.com) - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const TARGET_NODE_TYPE = /^(?:Arrow)?FunctionExpression$/u; - -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Enforce `return` statements in getters", - recommended: true, - url: "https://eslint.org/docs/latest/rules/getter-return" - }, - - fixable: null, - - schema: [ - { - type: "object", - properties: { - allowImplicit: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - expected: "Expected to return a value in {{name}}.", - expectedAlways: "Expected {{name}} to always return a value." - } - }, - - create(context) { - - const options = context.options[0] || { allowImplicit: false }; - const sourceCode = context.sourceCode; - - let funcInfo = { - upper: null, - codePath: null, - hasReturn: false, - shouldCheck: false, - node: null, - currentSegments: [] - }; - - /** - * Checks whether or not the last code path segment is reachable. - * Then reports this function if the segment is reachable. - * - * If the last code path segment is reachable, there are paths which are not - * returned or thrown. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function checkLastSegment(node) { - if (funcInfo.shouldCheck && - isAnySegmentReachable(funcInfo.currentSegments) - ) { - context.report({ - node, - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - messageId: funcInfo.hasReturn ? "expectedAlways" : "expected", - data: { - name: astUtils.getFunctionNameWithKind(funcInfo.node) - } - }); - } - } - - /** - * Checks whether a node means a getter function. - * @param {ASTNode} node a node to check. - * @returns {boolean} if node means a getter, return true; else return false. - */ - function isGetter(node) { - const parent = node.parent; - - if (TARGET_NODE_TYPE.test(node.type) && node.body.type === "BlockStatement") { - if (parent.kind === "get") { - return true; - } - if (parent.type === "Property" && astUtils.getStaticPropertyName(parent) === "get" && parent.parent.type === "ObjectExpression") { - - // Object.defineProperty() or Reflect.defineProperty() - if (parent.parent.parent.type === "CallExpression") { - const callNode = parent.parent.parent.callee; - - if (astUtils.isSpecificMemberAccess(callNode, "Object", "defineProperty") || - astUtils.isSpecificMemberAccess(callNode, "Reflect", "defineProperty")) { - return true; - } - } - - // Object.defineProperties() or Object.create() - if (parent.parent.parent.type === "Property" && - parent.parent.parent.parent.type === "ObjectExpression" && - parent.parent.parent.parent.parent.type === "CallExpression") { - const callNode = parent.parent.parent.parent.parent.callee; - - return astUtils.isSpecificMemberAccess(callNode, "Object", "defineProperties") || - astUtils.isSpecificMemberAccess(callNode, "Object", "create"); - } - } - } - return false; - } - return { - - // Stacks this function's information. - onCodePathStart(codePath, node) { - funcInfo = { - upper: funcInfo, - codePath, - hasReturn: false, - shouldCheck: isGetter(node), - node, - currentSegments: new Set() - }; - }, - - // Pops this function's information. - onCodePathEnd() { - funcInfo = funcInfo.upper; - }, - onUnreachableCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - // Checks the return statement is valid. - ReturnStatement(node) { - if (funcInfo.shouldCheck) { - funcInfo.hasReturn = true; - - // if allowImplicit: false, should also check node.argument - if (!options.allowImplicit && !node.argument) { - context.report({ - node, - messageId: "expected", - data: { - name: astUtils.getFunctionNameWithKind(funcInfo.node) - } - }); - } - } - }, - - // Reports a given function if the last path is reachable. - "FunctionExpression:exit": checkLastSegment, - "ArrowFunctionExpression:exit": checkLastSegment - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/global-require.js b/graphql/node_modules/eslint/lib/rules/global-require.js deleted file mode 100644 index deae9d26..00000000 --- a/graphql/node_modules/eslint/lib/rules/global-require.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @fileoverview Rule for disallowing require() outside of the top-level module context - * @author Jamund Ferguson - * @deprecated in ESLint v7.0.0 - */ - -"use strict"; - -const ACCEPTABLE_PARENTS = new Set([ - "AssignmentExpression", - "VariableDeclarator", - "MemberExpression", - "ExpressionStatement", - "CallExpression", - "ConditionalExpression", - "Program", - "VariableDeclaration", - "ChainExpression" -]); - -/** - * Finds the eslint-scope reference in the given scope. - * @param {Object} scope The scope to search. - * @param {ASTNode} node The identifier node. - * @returns {Reference|null} Returns the found reference or null if none were found. - */ -function findReference(scope, node) { - const references = scope.references.filter(reference => reference.identifier.range[0] === node.range[0] && - reference.identifier.range[1] === node.range[1]); - - if (references.length === 1) { - return references[0]; - } - - /* c8 ignore next */ - return null; - -} - -/** - * Checks if the given identifier node is shadowed in the given scope. - * @param {Object} scope The current scope. - * @param {ASTNode} node The identifier node to check. - * @returns {boolean} Whether or not the name is shadowed. - */ -function isShadowed(scope, node) { - const reference = findReference(scope, node); - - return reference && reference.resolved && reference.resolved.defs.length > 0; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Require `require()` calls to be placed at top-level module scope", - recommended: false, - url: "https://eslint.org/docs/latest/rules/global-require" - }, - - schema: [], - messages: { - unexpected: "Unexpected require()." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - CallExpression(node) { - const currentScope = sourceCode.getScope(node); - - if (node.callee.name === "require" && !isShadowed(currentScope, node.callee)) { - const isGoodRequire = sourceCode.getAncestors(node).every(parent => ACCEPTABLE_PARENTS.has(parent.type)); - - if (!isGoodRequire) { - context.report({ node, messageId: "unexpected" }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/grouped-accessor-pairs.js b/graphql/node_modules/eslint/lib/rules/grouped-accessor-pairs.js deleted file mode 100644 index 9556f475..00000000 --- a/graphql/node_modules/eslint/lib/rules/grouped-accessor-pairs.js +++ /dev/null @@ -1,215 +0,0 @@ -/** - * @fileoverview Rule to require grouped accessor pairs in object literals and classes - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * Property name if it can be computed statically, otherwise the list of the tokens of the key node. - * @typedef {string|Token[]} Key - */ - -/** - * Accessor nodes with the same key. - * @typedef {Object} AccessorData - * @property {Key} key Accessor's key - * @property {ASTNode[]} getters List of getter nodes. - * @property {ASTNode[]} setters List of setter nodes. - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not the given lists represent the equal tokens in the same order. - * Tokens are compared by their properties, not by instance. - * @param {Token[]} left First list of tokens. - * @param {Token[]} right Second list of tokens. - * @returns {boolean} `true` if the lists have same tokens. - */ -function areEqualTokenLists(left, right) { - if (left.length !== right.length) { - return false; - } - - for (let i = 0; i < left.length; i++) { - const leftToken = left[i], - rightToken = right[i]; - - if (leftToken.type !== rightToken.type || leftToken.value !== rightToken.value) { - return false; - } - } - - return true; -} - -/** - * Checks whether or not the given keys are equal. - * @param {Key} left First key. - * @param {Key} right Second key. - * @returns {boolean} `true` if the keys are equal. - */ -function areEqualKeys(left, right) { - if (typeof left === "string" && typeof right === "string") { - - // Statically computed names. - return left === right; - } - if (Array.isArray(left) && Array.isArray(right)) { - - // Token lists. - return areEqualTokenLists(left, right); - } - - return false; -} - -/** - * Checks whether or not a given node is of an accessor kind ('get' or 'set'). - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is of an accessor kind. - */ -function isAccessorKind(node) { - return node.kind === "get" || node.kind === "set"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require grouped accessor pairs in object literals and classes", - recommended: false, - url: "https://eslint.org/docs/latest/rules/grouped-accessor-pairs" - }, - - schema: [ - { - enum: ["anyOrder", "getBeforeSet", "setBeforeGet"] - } - ], - - messages: { - notGrouped: "Accessor pair {{ formerName }} and {{ latterName }} should be grouped.", - invalidOrder: "Expected {{ latterName }} to be before {{ formerName }}." - } - }, - - create(context) { - const order = context.options[0] || "anyOrder"; - const sourceCode = context.sourceCode; - - /** - * Reports the given accessor pair. - * @param {string} messageId messageId to report. - * @param {ASTNode} formerNode getter/setter node that is defined before `latterNode`. - * @param {ASTNode} latterNode getter/setter node that is defined after `formerNode`. - * @returns {void} - * @private - */ - function report(messageId, formerNode, latterNode) { - context.report({ - node: latterNode, - messageId, - loc: astUtils.getFunctionHeadLoc(latterNode.value, sourceCode), - data: { - formerName: astUtils.getFunctionNameWithKind(formerNode.value), - latterName: astUtils.getFunctionNameWithKind(latterNode.value) - } - }); - } - - /** - * Checks accessor pairs in the given list of nodes. - * @param {ASTNode[]} nodes The list to check. - * @param {Function} shouldCheck – Predicate that returns `true` if the node should be checked. - * @returns {void} - * @private - */ - function checkList(nodes, shouldCheck) { - const accessors = []; - let found = false; - - for (let i = 0; i < nodes.length; i++) { - const node = nodes[i]; - - if (shouldCheck(node) && isAccessorKind(node)) { - - // Creates a new `AccessorData` object for the given getter or setter node. - const name = astUtils.getStaticPropertyName(node); - const key = (name !== null) ? name : sourceCode.getTokens(node.key); - - // Merges the given `AccessorData` object into the given accessors list. - for (let j = 0; j < accessors.length; j++) { - const accessor = accessors[j]; - - if (areEqualKeys(accessor.key, key)) { - accessor.getters.push(...node.kind === "get" ? [node] : []); - accessor.setters.push(...node.kind === "set" ? [node] : []); - found = true; - break; - } - } - if (!found) { - accessors.push({ - key, - getters: node.kind === "get" ? [node] : [], - setters: node.kind === "set" ? [node] : [] - }); - } - found = false; - } - } - - for (const { getters, setters } of accessors) { - - // Don't report accessor properties that have duplicate getters or setters. - if (getters.length === 1 && setters.length === 1) { - const [getter] = getters, - [setter] = setters, - getterIndex = nodes.indexOf(getter), - setterIndex = nodes.indexOf(setter), - formerNode = getterIndex < setterIndex ? getter : setter, - latterNode = getterIndex < setterIndex ? setter : getter; - - if (Math.abs(getterIndex - setterIndex) > 1) { - report("notGrouped", formerNode, latterNode); - } else if ( - (order === "getBeforeSet" && getterIndex > setterIndex) || - (order === "setBeforeGet" && getterIndex < setterIndex) - ) { - report("invalidOrder", formerNode, latterNode); - } - } - } - } - - return { - ObjectExpression(node) { - checkList(node.properties, n => n.type === "Property"); - }, - ClassBody(node) { - checkList(node.body, n => n.type === "MethodDefinition" && !n.static); - checkList(node.body, n => n.type === "MethodDefinition" && n.static); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/guard-for-in.js b/graphql/node_modules/eslint/lib/rules/guard-for-in.js deleted file mode 100644 index d6e70d0d..00000000 --- a/graphql/node_modules/eslint/lib/rules/guard-for-in.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @fileoverview Rule to flag for-in loops without if statements inside - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `for-in` loops to include an `if` statement", - recommended: false, - url: "https://eslint.org/docs/latest/rules/guard-for-in" - }, - - schema: [], - messages: { - wrap: "The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype." - } - }, - - create(context) { - - return { - - ForInStatement(node) { - const body = node.body; - - // empty statement - if (body.type === "EmptyStatement") { - return; - } - - // if statement - if (body.type === "IfStatement") { - return; - } - - // empty block - if (body.type === "BlockStatement" && body.body.length === 0) { - return; - } - - // block with just if statement - if (body.type === "BlockStatement" && body.body.length === 1 && body.body[0].type === "IfStatement") { - return; - } - - // block that starts with if statement - if (body.type === "BlockStatement" && body.body.length >= 1 && body.body[0].type === "IfStatement") { - const i = body.body[0]; - - // ... whose consequent is a continue - if (i.consequent.type === "ContinueStatement") { - return; - } - - // ... whose consequent is a block that contains only a continue - if (i.consequent.type === "BlockStatement" && i.consequent.body.length === 1 && i.consequent.body[0].type === "ContinueStatement") { - return; - } - } - - context.report({ node, messageId: "wrap" }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/handle-callback-err.js b/graphql/node_modules/eslint/lib/rules/handle-callback-err.js deleted file mode 100644 index ad84931a..00000000 --- a/graphql/node_modules/eslint/lib/rules/handle-callback-err.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * @fileoverview Ensure handling of errors when we know they exist. - * @author Jamund Ferguson - * @deprecated in ESLint v7.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Require error handling in callbacks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/handle-callback-err" - }, - - schema: [ - { - type: "string" - } - ], - messages: { - expected: "Expected error to be handled." - } - }, - - create(context) { - - const errorArgument = context.options[0] || "err"; - const sourceCode = context.sourceCode; - - /** - * Checks if the given argument should be interpreted as a regexp pattern. - * @param {string} stringToCheck The string which should be checked. - * @returns {boolean} Whether or not the string should be interpreted as a pattern. - */ - function isPattern(stringToCheck) { - const firstChar = stringToCheck[0]; - - return firstChar === "^"; - } - - /** - * Checks if the given name matches the configured error argument. - * @param {string} name The name which should be compared. - * @returns {boolean} Whether or not the given name matches the configured error variable name. - */ - function matchesConfiguredErrorName(name) { - if (isPattern(errorArgument)) { - const regexp = new RegExp(errorArgument, "u"); - - return regexp.test(name); - } - return name === errorArgument; - } - - /** - * Get the parameters of a given function scope. - * @param {Object} scope The function scope. - * @returns {Array} All parameters of the given scope. - */ - function getParameters(scope) { - return scope.variables.filter(variable => variable.defs[0] && variable.defs[0].type === "Parameter"); - } - - /** - * Check to see if we're handling the error object properly. - * @param {ASTNode} node The AST node to check. - * @returns {void} - */ - function checkForError(node) { - const scope = sourceCode.getScope(node), - parameters = getParameters(scope), - firstParameter = parameters[0]; - - if (firstParameter && matchesConfiguredErrorName(firstParameter.name)) { - if (firstParameter.references.length === 0) { - context.report({ node, messageId: "expected" }); - } - } - } - - return { - FunctionDeclaration: checkForError, - FunctionExpression: checkForError, - ArrowFunctionExpression: checkForError - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/id-blacklist.js b/graphql/node_modules/eslint/lib/rules/id-blacklist.js deleted file mode 100644 index 6b7f561e..00000000 --- a/graphql/node_modules/eslint/lib/rules/id-blacklist.js +++ /dev/null @@ -1,246 +0,0 @@ -/** - * @fileoverview Rule that warns when identifier names that are - * specified in the configuration are used. - * @author Keith Cirkel (http://keithcirkel.co.uk) - * @deprecated in ESLint v7.5.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether the given node represents assignment target in a normal assignment or destructuring. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is assignment target. - */ -function isAssignmentTarget(node) { - const parent = node.parent; - - return ( - - // normal assignment - ( - parent.type === "AssignmentExpression" && - parent.left === node - ) || - - // destructuring - parent.type === "ArrayPattern" || - parent.type === "RestElement" || - ( - parent.type === "Property" && - parent.value === node && - parent.parent.type === "ObjectPattern" - ) || - ( - parent.type === "AssignmentPattern" && - parent.left === node - ) - ); -} - -/** - * Checks whether the given node represents an imported name that is renamed in the same import/export specifier. - * - * Examples: - * import { a as b } from 'mod'; // node `a` is renamed import - * export { a as b } from 'mod'; // node `a` is renamed import - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a renamed import. - */ -function isRenamedImport(node) { - const parent = node.parent; - - return ( - ( - parent.type === "ImportSpecifier" && - parent.imported !== parent.local && - parent.imported === node - ) || - ( - parent.type === "ExportSpecifier" && - parent.parent.source && // re-export - parent.local !== parent.exported && - parent.local === node - ) - ); -} - -/** - * Checks whether the given node is a renamed identifier node in an ObjectPattern destructuring. - * - * Examples: - * const { a : b } = foo; // node `a` is renamed node. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a renamed node in an ObjectPattern destructuring. - */ -function isRenamedInDestructuring(node) { - const parent = node.parent; - - return ( - ( - !parent.computed && - parent.type === "Property" && - parent.parent.type === "ObjectPattern" && - parent.value !== node && - parent.key === node - ) - ); -} - -/** - * Checks whether the given node represents shorthand definition of a property in an object literal. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a shorthand property definition. - */ -function isShorthandPropertyDefinition(node) { - const parent = node.parent; - - return ( - parent.type === "Property" && - parent.parent.type === "ObjectExpression" && - parent.shorthand - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: ["id-denylist"], - - type: "suggestion", - - docs: { - description: "Disallow specified identifiers", - recommended: false, - url: "https://eslint.org/docs/latest/rules/id-blacklist" - }, - - schema: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - }, - messages: { - restricted: "Identifier '{{name}}' is restricted." - } - }, - - create(context) { - - const denyList = new Set(context.options); - const reportedNodes = new Set(); - const sourceCode = context.sourceCode; - - let globalScope; - - /** - * Checks whether the given name is restricted. - * @param {string} name The name to check. - * @returns {boolean} `true` if the name is restricted. - * @private - */ - function isRestricted(name) { - return denyList.has(name); - } - - /** - * Checks whether the given node represents a reference to a global variable that is not declared in the source code. - * These identifiers will be allowed, as it is assumed that user has no control over the names of external global variables. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a reference to a global variable. - */ - function isReferenceToGlobalVariable(node) { - const variable = globalScope.set.get(node.name); - - return variable && variable.defs.length === 0 && - variable.references.some(ref => ref.identifier === node); - } - - /** - * Determines whether the given node should be checked. - * @param {ASTNode} node `Identifier` node. - * @returns {boolean} `true` if the node should be checked. - */ - function shouldCheck(node) { - const parent = node.parent; - - /* - * Member access has special rules for checking property names. - * Read access to a property with a restricted name is allowed, because it can be on an object that user has no control over. - * Write access isn't allowed, because it potentially creates a new property with a restricted name. - */ - if ( - parent.type === "MemberExpression" && - parent.property === node && - !parent.computed - ) { - return isAssignmentTarget(parent); - } - - return ( - parent.type !== "CallExpression" && - parent.type !== "NewExpression" && - !isRenamedImport(node) && - !isRenamedInDestructuring(node) && - !( - isReferenceToGlobalVariable(node) && - !isShorthandPropertyDefinition(node) - ) - ); - } - - /** - * Reports an AST node as a rule violation. - * @param {ASTNode} node The node to report. - * @returns {void} - * @private - */ - function report(node) { - - /* - * We used the range instead of the node because it's possible - * for the same identifier to be represented by two different - * nodes, with the most clear example being shorthand properties: - * { foo } - * In this case, "foo" is represented by one node for the name - * and one for the value. The only way to know they are the same - * is to look at the range. - */ - if (!reportedNodes.has(node.range.toString())) { - context.report({ - node, - messageId: "restricted", - data: { - name: node.name - } - }); - reportedNodes.add(node.range.toString()); - } - - } - - return { - - Program(node) { - globalScope = sourceCode.getScope(node); - }, - - Identifier(node) { - if (isRestricted(node.name) && shouldCheck(node)) { - report(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/id-denylist.js b/graphql/node_modules/eslint/lib/rules/id-denylist.js deleted file mode 100644 index baaa65fe..00000000 --- a/graphql/node_modules/eslint/lib/rules/id-denylist.js +++ /dev/null @@ -1,228 +0,0 @@ -/** - * @fileoverview Rule that warns when identifier names that are - * specified in the configuration are used. - * @author Keith Cirkel (http://keithcirkel.co.uk) - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether the given node represents assignment target in a normal assignment or destructuring. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is assignment target. - */ -function isAssignmentTarget(node) { - const parent = node.parent; - - return ( - - // normal assignment - ( - parent.type === "AssignmentExpression" && - parent.left === node - ) || - - // destructuring - parent.type === "ArrayPattern" || - parent.type === "RestElement" || - ( - parent.type === "Property" && - parent.value === node && - parent.parent.type === "ObjectPattern" - ) || - ( - parent.type === "AssignmentPattern" && - parent.left === node - ) - ); -} - -/** - * Checks whether the given node represents an imported name that is renamed in the same import/export specifier. - * - * Examples: - * import { a as b } from 'mod'; // node `a` is renamed import - * export { a as b } from 'mod'; // node `a` is renamed import - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a renamed import. - */ -function isRenamedImport(node) { - const parent = node.parent; - - return ( - ( - parent.type === "ImportSpecifier" && - parent.imported !== parent.local && - parent.imported === node - ) || - ( - parent.type === "ExportSpecifier" && - parent.parent.source && // re-export - parent.local !== parent.exported && - parent.local === node - ) - ); -} - -/** - * Checks whether the given node is an ObjectPattern destructuring. - * - * Examples: - * const { a : b } = foo; - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is in an ObjectPattern destructuring. - */ -function isPropertyNameInDestructuring(node) { - const parent = node.parent; - - return ( - ( - !parent.computed && - parent.type === "Property" && - parent.parent.type === "ObjectPattern" && - parent.key === node - ) - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified identifiers", - recommended: false, - url: "https://eslint.org/docs/latest/rules/id-denylist" - }, - - schema: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - }, - messages: { - restricted: "Identifier '{{name}}' is restricted.", - restrictedPrivate: "Identifier '#{{name}}' is restricted." - } - }, - - create(context) { - - const denyList = new Set(context.options); - const reportedNodes = new Set(); - const sourceCode = context.sourceCode; - - let globalScope; - - /** - * Checks whether the given name is restricted. - * @param {string} name The name to check. - * @returns {boolean} `true` if the name is restricted. - * @private - */ - function isRestricted(name) { - return denyList.has(name); - } - - /** - * Checks whether the given node represents a reference to a global variable that is not declared in the source code. - * These identifiers will be allowed, as it is assumed that user has no control over the names of external global variables. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a reference to a global variable. - */ - function isReferenceToGlobalVariable(node) { - const variable = globalScope.set.get(node.name); - - return variable && variable.defs.length === 0 && - variable.references.some(ref => ref.identifier === node); - } - - /** - * Determines whether the given node should be checked. - * @param {ASTNode} node `Identifier` node. - * @returns {boolean} `true` if the node should be checked. - */ - function shouldCheck(node) { - const parent = node.parent; - - /* - * Member access has special rules for checking property names. - * Read access to a property with a restricted name is allowed, because it can be on an object that user has no control over. - * Write access isn't allowed, because it potentially creates a new property with a restricted name. - */ - if ( - parent.type === "MemberExpression" && - parent.property === node && - !parent.computed - ) { - return isAssignmentTarget(parent); - } - - return ( - parent.type !== "CallExpression" && - parent.type !== "NewExpression" && - !isRenamedImport(node) && - !isPropertyNameInDestructuring(node) && - !isReferenceToGlobalVariable(node) - ); - } - - /** - * Reports an AST node as a rule violation. - * @param {ASTNode} node The node to report. - * @returns {void} - * @private - */ - function report(node) { - - /* - * We used the range instead of the node because it's possible - * for the same identifier to be represented by two different - * nodes, with the most clear example being shorthand properties: - * { foo } - * In this case, "foo" is represented by one node for the name - * and one for the value. The only way to know they are the same - * is to look at the range. - */ - if (!reportedNodes.has(node.range.toString())) { - const isPrivate = node.type === "PrivateIdentifier"; - - context.report({ - node, - messageId: isPrivate ? "restrictedPrivate" : "restricted", - data: { - name: node.name - } - }); - reportedNodes.add(node.range.toString()); - } - } - - return { - - Program(node) { - globalScope = sourceCode.getScope(node); - }, - - [[ - "Identifier", - "PrivateIdentifier" - ]](node) { - if (isRestricted(node.name) && shouldCheck(node)) { - report(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/id-length.js b/graphql/node_modules/eslint/lib/rules/id-length.js deleted file mode 100644 index 97bc0e43..00000000 --- a/graphql/node_modules/eslint/lib/rules/id-length.js +++ /dev/null @@ -1,177 +0,0 @@ -/** - * @fileoverview Rule that warns when identifier names are shorter or longer - * than the values provided in configuration. - * @author Burak Yigit Kaya aka BYK - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { getGraphemeCount } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce minimum and maximum identifier lengths", - recommended: false, - url: "https://eslint.org/docs/latest/rules/id-length" - }, - - schema: [ - { - type: "object", - properties: { - min: { - type: "integer", - default: 2 - }, - max: { - type: "integer" - }, - exceptions: { - type: "array", - uniqueItems: true, - items: { - type: "string" - } - }, - exceptionPatterns: { - type: "array", - uniqueItems: true, - items: { - type: "string" - } - }, - properties: { - enum: ["always", "never"] - } - }, - additionalProperties: false - } - ], - messages: { - tooShort: "Identifier name '{{name}}' is too short (< {{min}}).", - tooShortPrivate: "Identifier name '#{{name}}' is too short (< {{min}}).", - tooLong: "Identifier name '{{name}}' is too long (> {{max}}).", - tooLongPrivate: "Identifier name #'{{name}}' is too long (> {{max}})." - } - }, - - create(context) { - const options = context.options[0] || {}; - const minLength = typeof options.min !== "undefined" ? options.min : 2; - const maxLength = typeof options.max !== "undefined" ? options.max : Infinity; - const properties = options.properties !== "never"; - const exceptions = new Set(options.exceptions); - const exceptionPatterns = (options.exceptionPatterns || []).map(pattern => new RegExp(pattern, "u")); - const reportedNodes = new Set(); - - /** - * Checks if a string matches the provided exception patterns - * @param {string} name The string to check. - * @returns {boolean} if the string is a match - * @private - */ - function matchesExceptionPattern(name) { - return exceptionPatterns.some(pattern => pattern.test(name)); - } - - const SUPPORTED_EXPRESSIONS = { - MemberExpression: properties && function(parent) { - return !parent.computed && ( - - // regular property assignment - (parent.parent.left === parent && parent.parent.type === "AssignmentExpression" || - - // or the last identifier in an ObjectPattern destructuring - parent.parent.type === "Property" && parent.parent.value === parent && - parent.parent.parent.type === "ObjectPattern" && parent.parent.parent.parent.left === parent.parent.parent) - ); - }, - AssignmentPattern(parent, node) { - return parent.left === node; - }, - VariableDeclarator(parent, node) { - return parent.id === node; - }, - Property(parent, node) { - - if (parent.parent.type === "ObjectPattern") { - const isKeyAndValueSame = parent.value.name === parent.key.name; - - return ( - !isKeyAndValueSame && parent.value === node || - isKeyAndValueSame && parent.key === node && properties - ); - } - return properties && !parent.computed && parent.key.name === node.name; - }, - ImportDefaultSpecifier: true, - RestElement: true, - FunctionExpression: true, - ArrowFunctionExpression: true, - ClassDeclaration: true, - FunctionDeclaration: true, - MethodDefinition: true, - PropertyDefinition: true, - CatchClause: true, - ArrayPattern: true - }; - - return { - [[ - "Identifier", - "PrivateIdentifier" - ]](node) { - const name = node.name; - const parent = node.parent; - - const nameLength = getGraphemeCount(name); - - const isShort = nameLength < minLength; - const isLong = nameLength > maxLength; - - if (!(isShort || isLong) || exceptions.has(name) || matchesExceptionPattern(name)) { - return; // Nothing to report - } - - const isValidExpression = SUPPORTED_EXPRESSIONS[parent.type]; - - /* - * We used the range instead of the node because it's possible - * for the same identifier to be represented by two different - * nodes, with the most clear example being shorthand properties: - * { foo } - * In this case, "foo" is represented by one node for the name - * and one for the value. The only way to know they are the same - * is to look at the range. - */ - if (isValidExpression && !reportedNodes.has(node.range.toString()) && (isValidExpression === true || isValidExpression(parent, node))) { - reportedNodes.add(node.range.toString()); - - let messageId = isShort ? "tooShort" : "tooLong"; - - if (node.type === "PrivateIdentifier") { - messageId += "Private"; - } - - context.report({ - node, - messageId, - data: { name, min: minLength, max: maxLength } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/id-match.js b/graphql/node_modules/eslint/lib/rules/id-match.js deleted file mode 100644 index e225454e..00000000 --- a/graphql/node_modules/eslint/lib/rules/id-match.js +++ /dev/null @@ -1,299 +0,0 @@ -/** - * @fileoverview Rule to flag non-matching identifiers - * @author Matthieu Larcher - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require identifiers to match a specified regular expression", - recommended: false, - url: "https://eslint.org/docs/latest/rules/id-match" - }, - - schema: [ - { - type: "string" - }, - { - type: "object", - properties: { - properties: { - type: "boolean", - default: false - }, - classFields: { - type: "boolean", - default: false - }, - onlyDeclarations: { - type: "boolean", - default: false - }, - ignoreDestructuring: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - notMatch: "Identifier '{{name}}' does not match the pattern '{{pattern}}'.", - notMatchPrivate: "Identifier '#{{name}}' does not match the pattern '{{pattern}}'." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Options - //-------------------------------------------------------------------------- - const pattern = context.options[0] || "^.+$", - regexp = new RegExp(pattern, "u"); - - const options = context.options[1] || {}, - checkProperties = !!options.properties, - checkClassFields = !!options.classFields, - onlyDeclarations = !!options.onlyDeclarations, - ignoreDestructuring = !!options.ignoreDestructuring; - - const sourceCode = context.sourceCode; - let globalScope; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - // contains reported nodes to avoid reporting twice on destructuring with shorthand notation - const reportedNodes = new Set(); - const ALLOWED_PARENT_TYPES = new Set(["CallExpression", "NewExpression"]); - const DECLARATION_TYPES = new Set(["FunctionDeclaration", "VariableDeclarator"]); - const IMPORT_TYPES = new Set(["ImportSpecifier", "ImportNamespaceSpecifier", "ImportDefaultSpecifier"]); - - /** - * Checks whether the given node represents a reference to a global variable that is not declared in the source code. - * These identifiers will be allowed, as it is assumed that user has no control over the names of external global variables. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a reference to a global variable. - */ - function isReferenceToGlobalVariable(node) { - const variable = globalScope.set.get(node.name); - - return variable && variable.defs.length === 0 && - variable.references.some(ref => ref.identifier === node); - } - - /** - * Checks if a string matches the provided pattern - * @param {string} name The string to check. - * @returns {boolean} if the string is a match - * @private - */ - function isInvalid(name) { - return !regexp.test(name); - } - - /** - * Checks if a parent of a node is an ObjectPattern. - * @param {ASTNode} node The node to check. - * @returns {boolean} if the node is inside an ObjectPattern - * @private - */ - function isInsideObjectPattern(node) { - let { parent } = node; - - while (parent) { - if (parent.type === "ObjectPattern") { - return true; - } - - parent = parent.parent; - } - - return false; - } - - /** - * Verifies if we should report an error or not based on the effective - * parent node and the identifier name. - * @param {ASTNode} effectiveParent The effective parent node of the node to be reported - * @param {string} name The identifier name of the identifier node - * @returns {boolean} whether an error should be reported or not - */ - function shouldReport(effectiveParent, name) { - return (!onlyDeclarations || DECLARATION_TYPES.has(effectiveParent.type)) && - !ALLOWED_PARENT_TYPES.has(effectiveParent.type) && isInvalid(name); - } - - /** - * Reports an AST node as a rule violation. - * @param {ASTNode} node The node to report. - * @returns {void} - * @private - */ - function report(node) { - - /* - * We used the range instead of the node because it's possible - * for the same identifier to be represented by two different - * nodes, with the most clear example being shorthand properties: - * { foo } - * In this case, "foo" is represented by one node for the name - * and one for the value. The only way to know they are the same - * is to look at the range. - */ - if (!reportedNodes.has(node.range.toString())) { - - const messageId = (node.type === "PrivateIdentifier") - ? "notMatchPrivate" : "notMatch"; - - context.report({ - node, - messageId, - data: { - name: node.name, - pattern - } - }); - reportedNodes.add(node.range.toString()); - } - } - - return { - - Program(node) { - globalScope = sourceCode.getScope(node); - }, - - Identifier(node) { - const name = node.name, - parent = node.parent, - effectiveParent = (parent.type === "MemberExpression") ? parent.parent : parent; - - if (isReferenceToGlobalVariable(node)) { - return; - } - - if (parent.type === "MemberExpression") { - - if (!checkProperties) { - return; - } - - // Always check object names - if (parent.object.type === "Identifier" && - parent.object.name === name) { - if (isInvalid(name)) { - report(node); - } - - // Report AssignmentExpressions left side's assigned variable id - } else if (effectiveParent.type === "AssignmentExpression" && - effectiveParent.left.type === "MemberExpression" && - effectiveParent.left.property.name === node.name) { - if (isInvalid(name)) { - report(node); - } - - // Report AssignmentExpressions only if they are the left side of the assignment - } else if (effectiveParent.type === "AssignmentExpression" && effectiveParent.right.type !== "MemberExpression") { - if (isInvalid(name)) { - report(node); - } - } - - // For https://github.com/eslint/eslint/issues/15123 - } else if ( - parent.type === "Property" && - parent.parent.type === "ObjectExpression" && - parent.key === node && - !parent.computed - ) { - if (checkProperties && isInvalid(name)) { - report(node); - } - - /* - * Properties have their own rules, and - * AssignmentPattern nodes can be treated like Properties: - * e.g.: const { no_camelcased = false } = bar; - */ - } else if (parent.type === "Property" || parent.type === "AssignmentPattern") { - - if (parent.parent && parent.parent.type === "ObjectPattern") { - if (!ignoreDestructuring && parent.shorthand && parent.value.left && isInvalid(name)) { - report(node); - } - - const assignmentKeyEqualsValue = parent.key.name === parent.value.name; - - // prevent checking righthand side of destructured object - if (!assignmentKeyEqualsValue && parent.key === node) { - return; - } - - const valueIsInvalid = parent.value.name && isInvalid(name); - - // ignore destructuring if the option is set, unless a new identifier is created - if (valueIsInvalid && !(assignmentKeyEqualsValue && ignoreDestructuring)) { - report(node); - } - } - - // never check properties or always ignore destructuring - if ((!checkProperties && !parent.computed) || (ignoreDestructuring && isInsideObjectPattern(node))) { - return; - } - - // don't check right hand side of AssignmentExpression to prevent duplicate warnings - if (parent.right !== node && shouldReport(effectiveParent, name)) { - report(node); - } - - // Check if it's an import specifier - } else if (IMPORT_TYPES.has(parent.type)) { - - // Report only if the local imported identifier is invalid - if (parent.local && parent.local.name === node.name && isInvalid(name)) { - report(node); - } - - } else if (parent.type === "PropertyDefinition") { - - if (checkClassFields && isInvalid(name)) { - report(node); - } - - // Report anything that is invalid that isn't a CallExpression - } else if (shouldReport(effectiveParent, name)) { - report(node); - } - }, - - "PrivateIdentifier"(node) { - - const isClassField = node.parent.type === "PropertyDefinition"; - - if (isClassField && !checkClassFields) { - return; - } - - if (isInvalid(node.name)) { - report(node); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js b/graphql/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js deleted file mode 100644 index 32f422ce..00000000 --- a/graphql/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @fileoverview enforce the location of arrow function bodies - * @author Sharmila Jesupaul - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const { isCommentToken, isNotOpeningParenToken } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce the location of arrow function bodies", - recommended: false, - url: "https://eslint.org/docs/latest/rules/implicit-arrow-linebreak" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["beside", "below"] - } - ], - messages: { - expected: "Expected a linebreak before this expression.", - unexpected: "Expected no linebreak before this expression." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const option = context.options[0] || "beside"; - - /** - * Validates the location of an arrow function body - * @param {ASTNode} node The arrow function body - * @returns {void} - */ - function validateExpression(node) { - if (node.body.type === "BlockStatement") { - return; - } - - const arrowToken = sourceCode.getTokenBefore(node.body, isNotOpeningParenToken); - const firstTokenOfBody = sourceCode.getTokenAfter(arrowToken); - - if (arrowToken.loc.end.line === firstTokenOfBody.loc.start.line && option === "below") { - context.report({ - node: firstTokenOfBody, - messageId: "expected", - fix: fixer => fixer.insertTextBefore(firstTokenOfBody, "\n") - }); - } else if (arrowToken.loc.end.line !== firstTokenOfBody.loc.start.line && option === "beside") { - context.report({ - node: firstTokenOfBody, - messageId: "unexpected", - fix(fixer) { - if (sourceCode.getFirstTokenBetween(arrowToken, firstTokenOfBody, { includeComments: true, filter: isCommentToken })) { - return null; - } - - return fixer.replaceTextRange([arrowToken.range[1], firstTokenOfBody.range[0]], " "); - } - }); - } - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - return { - ArrowFunctionExpression: node => validateExpression(node) - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/indent-legacy.js b/graphql/node_modules/eslint/lib/rules/indent-legacy.js deleted file mode 100644 index 4adb4230..00000000 --- a/graphql/node_modules/eslint/lib/rules/indent-legacy.js +++ /dev/null @@ -1,1126 +0,0 @@ -/** - * @fileoverview This option sets a specific tab width for your code - * - * This rule has been ported and modified from nodeca. - * @author Vitaly Puzrin - * @author Gyandeep Singh - * @deprecated in ESLint v4.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ -// this rule has known coverage issues, but it's deprecated and shouldn't be updated in the future anyway. -/* c8 ignore next */ -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Enforce consistent indentation", - recommended: false, - url: "https://eslint.org/docs/latest/rules/indent-legacy" - }, - - deprecated: true, - - replacedBy: ["indent"], - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["tab"] - }, - { - type: "integer", - minimum: 0 - } - ] - }, - { - type: "object", - properties: { - SwitchCase: { - type: "integer", - minimum: 0 - }, - VariableDeclarator: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - var: { - type: "integer", - minimum: 0 - }, - let: { - type: "integer", - minimum: 0 - }, - const: { - type: "integer", - minimum: 0 - } - } - } - ] - }, - outerIIFEBody: { - type: "integer", - minimum: 0 - }, - MemberExpression: { - type: "integer", - minimum: 0 - }, - FunctionDeclaration: { - type: "object", - properties: { - parameters: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first"] - } - ] - }, - body: { - type: "integer", - minimum: 0 - } - } - }, - FunctionExpression: { - type: "object", - properties: { - parameters: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first"] - } - ] - }, - body: { - type: "integer", - minimum: 0 - } - } - }, - CallExpression: { - type: "object", - properties: { - parameters: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first"] - } - ] - } - } - }, - ArrayExpression: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first"] - } - ] - }, - ObjectExpression: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first"] - } - ] - } - }, - additionalProperties: false - } - ], - messages: { - expected: "Expected indentation of {{expected}} but found {{actual}}." - } - }, - - create(context) { - const DEFAULT_VARIABLE_INDENT = 1; - const DEFAULT_PARAMETER_INDENT = null; // For backwards compatibility, don't check parameter indentation unless specified in the config - const DEFAULT_FUNCTION_BODY_INDENT = 1; - - let indentType = "space"; - let indentSize = 4; - const options = { - SwitchCase: 0, - VariableDeclarator: { - var: DEFAULT_VARIABLE_INDENT, - let: DEFAULT_VARIABLE_INDENT, - const: DEFAULT_VARIABLE_INDENT - }, - outerIIFEBody: null, - FunctionDeclaration: { - parameters: DEFAULT_PARAMETER_INDENT, - body: DEFAULT_FUNCTION_BODY_INDENT - }, - FunctionExpression: { - parameters: DEFAULT_PARAMETER_INDENT, - body: DEFAULT_FUNCTION_BODY_INDENT - }, - CallExpression: { - arguments: DEFAULT_PARAMETER_INDENT - }, - ArrayExpression: 1, - ObjectExpression: 1 - }; - - const sourceCode = context.sourceCode; - - if (context.options.length) { - if (context.options[0] === "tab") { - indentSize = 1; - indentType = "tab"; - } else /* c8 ignore start */ if (typeof context.options[0] === "number") { - indentSize = context.options[0]; - indentType = "space"; - }/* c8 ignore stop */ - - if (context.options[1]) { - const opts = context.options[1]; - - options.SwitchCase = opts.SwitchCase || 0; - const variableDeclaratorRules = opts.VariableDeclarator; - - if (typeof variableDeclaratorRules === "number") { - options.VariableDeclarator = { - var: variableDeclaratorRules, - let: variableDeclaratorRules, - const: variableDeclaratorRules - }; - } else if (typeof variableDeclaratorRules === "object") { - Object.assign(options.VariableDeclarator, variableDeclaratorRules); - } - - if (typeof opts.outerIIFEBody === "number") { - options.outerIIFEBody = opts.outerIIFEBody; - } - - if (typeof opts.MemberExpression === "number") { - options.MemberExpression = opts.MemberExpression; - } - - if (typeof opts.FunctionDeclaration === "object") { - Object.assign(options.FunctionDeclaration, opts.FunctionDeclaration); - } - - if (typeof opts.FunctionExpression === "object") { - Object.assign(options.FunctionExpression, opts.FunctionExpression); - } - - if (typeof opts.CallExpression === "object") { - Object.assign(options.CallExpression, opts.CallExpression); - } - - if (typeof opts.ArrayExpression === "number" || typeof opts.ArrayExpression === "string") { - options.ArrayExpression = opts.ArrayExpression; - } - - if (typeof opts.ObjectExpression === "number" || typeof opts.ObjectExpression === "string") { - options.ObjectExpression = opts.ObjectExpression; - } - } - } - - const caseIndentStore = {}; - - /** - * Creates an error message for a line, given the expected/actual indentation. - * @param {int} expectedAmount The expected amount of indentation characters for this line - * @param {int} actualSpaces The actual number of indentation spaces that were found on this line - * @param {int} actualTabs The actual number of indentation tabs that were found on this line - * @returns {string} An error message for this line - */ - function createErrorMessageData(expectedAmount, actualSpaces, actualTabs) { - const expectedStatement = `${expectedAmount} ${indentType}${expectedAmount === 1 ? "" : "s"}`; // e.g. "2 tabs" - const foundSpacesWord = `space${actualSpaces === 1 ? "" : "s"}`; // e.g. "space" - const foundTabsWord = `tab${actualTabs === 1 ? "" : "s"}`; // e.g. "tabs" - let foundStatement; - - if (actualSpaces > 0 && actualTabs > 0) { - foundStatement = `${actualSpaces} ${foundSpacesWord} and ${actualTabs} ${foundTabsWord}`; // e.g. "1 space and 2 tabs" - } else if (actualSpaces > 0) { - - /* - * Abbreviate the message if the expected indentation is also spaces. - * e.g. 'Expected 4 spaces but found 2' rather than 'Expected 4 spaces but found 2 spaces' - */ - foundStatement = indentType === "space" ? actualSpaces : `${actualSpaces} ${foundSpacesWord}`; - } else if (actualTabs > 0) { - foundStatement = indentType === "tab" ? actualTabs : `${actualTabs} ${foundTabsWord}`; - } else { - foundStatement = "0"; - } - return { - expected: expectedStatement, - actual: foundStatement - }; - } - - /** - * Reports a given indent violation - * @param {ASTNode} node Node violating the indent rule - * @param {int} needed Expected indentation character count - * @param {int} gottenSpaces Indentation space count in the actual node/code - * @param {int} gottenTabs Indentation tab count in the actual node/code - * @param {Object} [loc] Error line and column location - * @param {boolean} isLastNodeCheck Is the error for last node check - * @returns {void} - */ - function report(node, needed, gottenSpaces, gottenTabs, loc, isLastNodeCheck) { - if (gottenSpaces && gottenTabs) { - - // To avoid conflicts with `no-mixed-spaces-and-tabs`, don't report lines that have both spaces and tabs. - return; - } - - const desiredIndent = (indentType === "space" ? " " : "\t").repeat(needed); - - const textRange = isLastNodeCheck - ? [node.range[1] - node.loc.end.column, node.range[1] - node.loc.end.column + gottenSpaces + gottenTabs] - : [node.range[0] - node.loc.start.column, node.range[0] - node.loc.start.column + gottenSpaces + gottenTabs]; - - context.report({ - node, - loc, - messageId: "expected", - data: createErrorMessageData(needed, gottenSpaces, gottenTabs), - fix: fixer => fixer.replaceTextRange(textRange, desiredIndent) - }); - } - - /** - * Get the actual indent of node - * @param {ASTNode|Token} node Node to examine - * @param {boolean} [byLastLine=false] get indent of node's last line - * @returns {Object} The node's indent. Contains keys `space` and `tab`, representing the indent of each character. Also - * contains keys `goodChar` and `badChar`, where `goodChar` is the amount of the user's desired indentation character, and - * `badChar` is the amount of the other indentation character. - */ - function getNodeIndent(node, byLastLine) { - const token = byLastLine ? sourceCode.getLastToken(node) : sourceCode.getFirstToken(node); - const srcCharsBeforeNode = sourceCode.getText(token, token.loc.start.column).split(""); - const indentChars = srcCharsBeforeNode.slice(0, srcCharsBeforeNode.findIndex(char => char !== " " && char !== "\t")); - const spaces = indentChars.filter(char => char === " ").length; - const tabs = indentChars.filter(char => char === "\t").length; - - return { - space: spaces, - tab: tabs, - goodChar: indentType === "space" ? spaces : tabs, - badChar: indentType === "space" ? tabs : spaces - }; - } - - /** - * Checks node is the first in its own start line. By default it looks by start line. - * @param {ASTNode} node The node to check - * @param {boolean} [byEndLocation=false] Lookup based on start position or end - * @returns {boolean} true if its the first in the its start line - */ - function isNodeFirstInLine(node, byEndLocation) { - const firstToken = byEndLocation === true ? sourceCode.getLastToken(node, 1) : sourceCode.getTokenBefore(node), - startLine = byEndLocation === true ? node.loc.end.line : node.loc.start.line, - endLine = firstToken ? firstToken.loc.end.line : -1; - - return startLine !== endLine; - } - - /** - * Check indent for node - * @param {ASTNode} node Node to check - * @param {int} neededIndent needed indent - * @returns {void} - */ - function checkNodeIndent(node, neededIndent) { - const actualIndent = getNodeIndent(node, false); - - if ( - node.type !== "ArrayExpression" && - node.type !== "ObjectExpression" && - (actualIndent.goodChar !== neededIndent || actualIndent.badChar !== 0) && - isNodeFirstInLine(node) - ) { - report(node, neededIndent, actualIndent.space, actualIndent.tab); - } - - if (node.type === "IfStatement" && node.alternate) { - const elseToken = sourceCode.getTokenBefore(node.alternate); - - checkNodeIndent(elseToken, neededIndent); - - if (!isNodeFirstInLine(node.alternate)) { - checkNodeIndent(node.alternate, neededIndent); - } - } - - if (node.type === "TryStatement" && node.handler) { - const catchToken = sourceCode.getFirstToken(node.handler); - - checkNodeIndent(catchToken, neededIndent); - } - - if (node.type === "TryStatement" && node.finalizer) { - const finallyToken = sourceCode.getTokenBefore(node.finalizer); - - checkNodeIndent(finallyToken, neededIndent); - } - - if (node.type === "DoWhileStatement") { - const whileToken = sourceCode.getTokenAfter(node.body); - - checkNodeIndent(whileToken, neededIndent); - } - } - - /** - * Check indent for nodes list - * @param {ASTNode[]} nodes list of node objects - * @param {int} indent needed indent - * @returns {void} - */ - function checkNodesIndent(nodes, indent) { - nodes.forEach(node => checkNodeIndent(node, indent)); - } - - /** - * Check last node line indent this detects, that block closed correctly - * @param {ASTNode} node Node to examine - * @param {int} lastLineIndent needed indent - * @returns {void} - */ - function checkLastNodeLineIndent(node, lastLineIndent) { - const lastToken = sourceCode.getLastToken(node); - const endIndent = getNodeIndent(lastToken, true); - - if ((endIndent.goodChar !== lastLineIndent || endIndent.badChar !== 0) && isNodeFirstInLine(node, true)) { - report( - node, - lastLineIndent, - endIndent.space, - endIndent.tab, - { line: lastToken.loc.start.line, column: lastToken.loc.start.column }, - true - ); - } - } - - /** - * Check last node line indent this detects, that block closed correctly - * This function for more complicated return statement case, where closing parenthesis may be followed by ';' - * @param {ASTNode} node Node to examine - * @param {int} firstLineIndent first line needed indent - * @returns {void} - */ - function checkLastReturnStatementLineIndent(node, firstLineIndent) { - - /* - * in case if return statement ends with ');' we have traverse back to ')' - * otherwise we'll measure indent for ';' and replace ')' - */ - const lastToken = sourceCode.getLastToken(node, astUtils.isClosingParenToken); - const textBeforeClosingParenthesis = sourceCode.getText(lastToken, lastToken.loc.start.column).slice(0, -1); - - if (textBeforeClosingParenthesis.trim()) { - - // There are tokens before the closing paren, don't report this case - return; - } - - const endIndent = getNodeIndent(lastToken, true); - - if (endIndent.goodChar !== firstLineIndent) { - report( - node, - firstLineIndent, - endIndent.space, - endIndent.tab, - { line: lastToken.loc.start.line, column: lastToken.loc.start.column }, - true - ); - } - } - - /** - * Check first node line indent is correct - * @param {ASTNode} node Node to examine - * @param {int} firstLineIndent needed indent - * @returns {void} - */ - function checkFirstNodeLineIndent(node, firstLineIndent) { - const startIndent = getNodeIndent(node, false); - - if ((startIndent.goodChar !== firstLineIndent || startIndent.badChar !== 0) && isNodeFirstInLine(node)) { - report( - node, - firstLineIndent, - startIndent.space, - startIndent.tab, - { line: node.loc.start.line, column: node.loc.start.column } - ); - } - } - - /** - * Returns a parent node of given node based on a specified type - * if not present then return null - * @param {ASTNode} node node to examine - * @param {string} type type that is being looked for - * @param {string} stopAtList end points for the evaluating code - * @returns {ASTNode|void} if found then node otherwise null - */ - function getParentNodeByType(node, type, stopAtList) { - let parent = node.parent; - const stopAtSet = new Set(stopAtList || ["Program"]); - - while (parent.type !== type && !stopAtSet.has(parent.type) && parent.type !== "Program") { - parent = parent.parent; - } - - return parent.type === type ? parent : null; - } - - /** - * Returns the VariableDeclarator based on the current node - * if not present then return null - * @param {ASTNode} node node to examine - * @returns {ASTNode|void} if found then node otherwise null - */ - function getVariableDeclaratorNode(node) { - return getParentNodeByType(node, "VariableDeclarator"); - } - - /** - * Check to see if the node is part of the multi-line variable declaration. - * Also if its on the same line as the varNode - * @param {ASTNode} node node to check - * @param {ASTNode} varNode variable declaration node to check against - * @returns {boolean} True if all the above condition satisfy - */ - function isNodeInVarOnTop(node, varNode) { - return varNode && - varNode.parent.loc.start.line === node.loc.start.line && - varNode.parent.declarations.length > 1; - } - - /** - * Check to see if the argument before the callee node is multi-line and - * there should only be 1 argument before the callee node - * @param {ASTNode} node node to check - * @returns {boolean} True if arguments are multi-line - */ - function isArgBeforeCalleeNodeMultiline(node) { - const parent = node.parent; - - if (parent.arguments.length >= 2 && parent.arguments[1] === node) { - return parent.arguments[0].loc.end.line > parent.arguments[0].loc.start.line; - } - - return false; - } - - /** - * Check to see if the node is a file level IIFE - * @param {ASTNode} node The function node to check. - * @returns {boolean} True if the node is the outer IIFE - */ - function isOuterIIFE(node) { - const parent = node.parent; - let stmt = parent.parent; - - /* - * Verify that the node is an IIEF - */ - if ( - parent.type !== "CallExpression" || - parent.callee !== node) { - - return false; - } - - /* - * Navigate legal ancestors to determine whether this IIEF is outer - */ - while ( - stmt.type === "UnaryExpression" && ( - stmt.operator === "!" || - stmt.operator === "~" || - stmt.operator === "+" || - stmt.operator === "-") || - stmt.type === "AssignmentExpression" || - stmt.type === "LogicalExpression" || - stmt.type === "SequenceExpression" || - stmt.type === "VariableDeclarator") { - - stmt = stmt.parent; - } - - return (( - stmt.type === "ExpressionStatement" || - stmt.type === "VariableDeclaration") && - stmt.parent && stmt.parent.type === "Program" - ); - } - - /** - * Check indent for function block content - * @param {ASTNode} node A BlockStatement node that is inside of a function. - * @returns {void} - */ - function checkIndentInFunctionBlock(node) { - - /* - * Search first caller in chain. - * Ex.: - * - * Models <- Identifier - * .User - * .find() - * .exec(function() { - * // function body - * }); - * - * Looks for 'Models' - */ - const calleeNode = node.parent; // FunctionExpression - let indent; - - if (calleeNode.parent && - (calleeNode.parent.type === "Property" || - calleeNode.parent.type === "ArrayExpression")) { - - // If function is part of array or object, comma can be put at left - indent = getNodeIndent(calleeNode, false).goodChar; - } else { - - // If function is standalone, simple calculate indent - indent = getNodeIndent(calleeNode).goodChar; - } - - if (calleeNode.parent.type === "CallExpression") { - const calleeParent = calleeNode.parent; - - if (calleeNode.type !== "FunctionExpression" && calleeNode.type !== "ArrowFunctionExpression") { - if (calleeParent && calleeParent.loc.start.line < node.loc.start.line) { - indent = getNodeIndent(calleeParent).goodChar; - } - } else { - if (isArgBeforeCalleeNodeMultiline(calleeNode) && - calleeParent.callee.loc.start.line === calleeParent.callee.loc.end.line && - !isNodeFirstInLine(calleeNode)) { - indent = getNodeIndent(calleeParent).goodChar; - } - } - } - - /* - * function body indent should be indent + indent size, unless this - * is a FunctionDeclaration, FunctionExpression, or outer IIFE and the corresponding options are enabled. - */ - let functionOffset = indentSize; - - if (options.outerIIFEBody !== null && isOuterIIFE(calleeNode)) { - functionOffset = options.outerIIFEBody * indentSize; - } else if (calleeNode.type === "FunctionExpression") { - functionOffset = options.FunctionExpression.body * indentSize; - } else if (calleeNode.type === "FunctionDeclaration") { - functionOffset = options.FunctionDeclaration.body * indentSize; - } - indent += functionOffset; - - // check if the node is inside a variable - const parentVarNode = getVariableDeclaratorNode(node); - - if (parentVarNode && isNodeInVarOnTop(node, parentVarNode)) { - indent += indentSize * options.VariableDeclarator[parentVarNode.parent.kind]; - } - - if (node.body.length > 0) { - checkNodesIndent(node.body, indent); - } - - checkLastNodeLineIndent(node, indent - functionOffset); - } - - - /** - * Checks if the given node starts and ends on the same line - * @param {ASTNode} node The node to check - * @returns {boolean} Whether or not the block starts and ends on the same line. - */ - function isSingleLineNode(node) { - const lastToken = sourceCode.getLastToken(node), - startLine = node.loc.start.line, - endLine = lastToken.loc.end.line; - - return startLine === endLine; - } - - /** - * Check indent for array block content or object block content - * @param {ASTNode} node node to examine - * @returns {void} - */ - function checkIndentInArrayOrObjectBlock(node) { - - // Skip inline - if (isSingleLineNode(node)) { - return; - } - - let elements = (node.type === "ArrayExpression") ? node.elements : node.properties; - - // filter out empty elements example would be [ , 2] so remove first element as espree considers it as null - elements = elements.filter(elem => elem !== null); - - let nodeIndent; - let elementsIndent; - const parentVarNode = getVariableDeclaratorNode(node); - - // TODO - come up with a better strategy in future - if (isNodeFirstInLine(node)) { - const parent = node.parent; - - nodeIndent = getNodeIndent(parent).goodChar; - if (!parentVarNode || parentVarNode.loc.start.line !== node.loc.start.line) { - if (parent.type !== "VariableDeclarator" || parentVarNode === parentVarNode.parent.declarations[0]) { - if (parent.type === "VariableDeclarator" && parentVarNode.loc.start.line === parent.loc.start.line) { - nodeIndent += (indentSize * options.VariableDeclarator[parentVarNode.parent.kind]); - } else if (parent.type === "ObjectExpression" || parent.type === "ArrayExpression") { - const parentElements = node.parent.type === "ObjectExpression" ? node.parent.properties : node.parent.elements; - - if (parentElements[0] && - parentElements[0].loc.start.line === parent.loc.start.line && - parentElements[0].loc.end.line !== parent.loc.start.line) { - - /* - * If the first element of the array spans multiple lines, don't increase the expected indentation of the rest. - * e.g. [{ - * foo: 1 - * }, - * { - * bar: 1 - * }] - * the second object is not indented. - */ - } else if (typeof options[parent.type] === "number") { - nodeIndent += options[parent.type] * indentSize; - } else { - nodeIndent = parentElements[0].loc.start.column; - } - } else if (parent.type === "CallExpression" || parent.type === "NewExpression") { - if (typeof options.CallExpression.arguments === "number") { - nodeIndent += options.CallExpression.arguments * indentSize; - } else if (options.CallExpression.arguments === "first") { - if (parent.arguments.includes(node)) { - nodeIndent = parent.arguments[0].loc.start.column; - } - } else { - nodeIndent += indentSize; - } - } else if (parent.type === "LogicalExpression" || parent.type === "ArrowFunctionExpression") { - nodeIndent += indentSize; - } - } - } - - checkFirstNodeLineIndent(node, nodeIndent); - } else { - nodeIndent = getNodeIndent(node).goodChar; - } - - if (options[node.type] === "first") { - elementsIndent = elements.length ? elements[0].loc.start.column : 0; // If there are no elements, elementsIndent doesn't matter. - } else { - elementsIndent = nodeIndent + indentSize * options[node.type]; - } - - /* - * Check if the node is a multiple variable declaration; if so, then - * make sure indentation takes that into account. - */ - if (isNodeInVarOnTop(node, parentVarNode)) { - elementsIndent += indentSize * options.VariableDeclarator[parentVarNode.parent.kind]; - } - - checkNodesIndent(elements, elementsIndent); - - if (elements.length > 0) { - - // Skip last block line check if last item in same line - if (elements.at(-1).loc.end.line === node.loc.end.line) { - return; - } - } - - checkLastNodeLineIndent(node, nodeIndent + - (isNodeInVarOnTop(node, parentVarNode) ? options.VariableDeclarator[parentVarNode.parent.kind] * indentSize : 0)); - } - - /** - * Check if the node or node body is a BlockStatement or not - * @param {ASTNode} node node to test - * @returns {boolean} True if it or its body is a block statement - */ - function isNodeBodyBlock(node) { - return node.type === "BlockStatement" || node.type === "ClassBody" || (node.body && node.body.type === "BlockStatement") || - (node.consequent && node.consequent.type === "BlockStatement"); - } - - /** - * Check indentation for blocks - * @param {ASTNode} node node to check - * @returns {void} - */ - function blockIndentationCheck(node) { - - // Skip inline blocks - if (isSingleLineNode(node)) { - return; - } - - if (node.parent && ( - node.parent.type === "FunctionExpression" || - node.parent.type === "FunctionDeclaration" || - node.parent.type === "ArrowFunctionExpression") - ) { - checkIndentInFunctionBlock(node); - return; - } - - let indent; - let nodesToCheck; - - /* - * For this statements we should check indent from statement beginning, - * not from the beginning of the block. - */ - const statementsWithProperties = [ - "IfStatement", "WhileStatement", "ForStatement", "ForInStatement", "ForOfStatement", "DoWhileStatement", "ClassDeclaration", "TryStatement" - ]; - - if (node.parent && statementsWithProperties.includes(node.parent.type) && isNodeBodyBlock(node)) { - indent = getNodeIndent(node.parent).goodChar; - } else if (node.parent && node.parent.type === "CatchClause") { - indent = getNodeIndent(node.parent.parent).goodChar; - } else { - indent = getNodeIndent(node).goodChar; - } - - if (node.type === "IfStatement" && node.consequent.type !== "BlockStatement") { - nodesToCheck = [node.consequent]; - } else if (Array.isArray(node.body)) { - nodesToCheck = node.body; - } else { - nodesToCheck = [node.body]; - } - - if (nodesToCheck.length > 0) { - checkNodesIndent(nodesToCheck, indent + indentSize); - } - - if (node.type === "BlockStatement") { - checkLastNodeLineIndent(node, indent); - } - } - - /** - * Filter out the elements which are on the same line of each other or the node. - * basically have only 1 elements from each line except the variable declaration line. - * @param {ASTNode} node Variable declaration node - * @returns {ASTNode[]} Filtered elements - */ - function filterOutSameLineVars(node) { - return node.declarations.reduce((finalCollection, elem) => { - const lastElem = finalCollection.at(-1); - - if ((elem.loc.start.line !== node.loc.start.line && !lastElem) || - (lastElem && lastElem.loc.start.line !== elem.loc.start.line)) { - finalCollection.push(elem); - } - - return finalCollection; - }, []); - } - - /** - * Check indentation for variable declarations - * @param {ASTNode} node node to examine - * @returns {void} - */ - function checkIndentInVariableDeclarations(node) { - const elements = filterOutSameLineVars(node); - const nodeIndent = getNodeIndent(node).goodChar; - const lastElement = elements.at(-1); - - const elementsIndent = nodeIndent + indentSize * options.VariableDeclarator[node.kind]; - - checkNodesIndent(elements, elementsIndent); - - // Only check the last line if there is any token after the last item - if (sourceCode.getLastToken(node).loc.end.line <= lastElement.loc.end.line) { - return; - } - - const tokenBeforeLastElement = sourceCode.getTokenBefore(lastElement); - - if (tokenBeforeLastElement.value === ",") { - - // Special case for comma-first syntax where the semicolon is indented - checkLastNodeLineIndent(node, getNodeIndent(tokenBeforeLastElement).goodChar); - } else { - checkLastNodeLineIndent(node, elementsIndent - indentSize); - } - } - - /** - * Check and decide whether to check for indentation for blockless nodes - * Scenarios are for or while statements without braces around them - * @param {ASTNode} node node to examine - * @returns {void} - */ - function blockLessNodes(node) { - if (node.body.type !== "BlockStatement") { - blockIndentationCheck(node); - } - } - - /** - * Returns the expected indentation for the case statement - * @param {ASTNode} node node to examine - * @param {int} [providedSwitchIndent] indent for switch statement - * @returns {int} indent size - */ - function expectedCaseIndent(node, providedSwitchIndent) { - const switchNode = (node.type === "SwitchStatement") ? node : node.parent; - const switchIndent = typeof providedSwitchIndent === "undefined" - ? getNodeIndent(switchNode).goodChar - : providedSwitchIndent; - let caseIndent; - - if (caseIndentStore[switchNode.loc.start.line]) { - return caseIndentStore[switchNode.loc.start.line]; - } - - if (switchNode.cases.length > 0 && options.SwitchCase === 0) { - caseIndent = switchIndent; - } else { - caseIndent = switchIndent + (indentSize * options.SwitchCase); - } - - caseIndentStore[switchNode.loc.start.line] = caseIndent; - return caseIndent; - - } - - /** - * Checks whether a return statement is wrapped in () - * @param {ASTNode} node node to examine - * @returns {boolean} the result - */ - function isWrappedInParenthesis(node) { - const regex = /^return\s*?\(\s*?\);*?/u; - - const statementWithoutArgument = sourceCode.getText(node).replace( - sourceCode.getText(node.argument), "" - ); - - return regex.test(statementWithoutArgument); - } - - return { - Program(node) { - if (node.body.length > 0) { - - // Root nodes should have no indent - checkNodesIndent(node.body, getNodeIndent(node).goodChar); - } - }, - - ClassBody: blockIndentationCheck, - - BlockStatement: blockIndentationCheck, - - WhileStatement: blockLessNodes, - - ForStatement: blockLessNodes, - - ForInStatement: blockLessNodes, - - ForOfStatement: blockLessNodes, - - DoWhileStatement: blockLessNodes, - - IfStatement(node) { - if (node.consequent.type !== "BlockStatement" && node.consequent.loc.start.line > node.loc.start.line) { - blockIndentationCheck(node); - } - }, - - VariableDeclaration(node) { - if (node.declarations.at(-1).loc.start.line > node.declarations[0].loc.start.line) { - checkIndentInVariableDeclarations(node); - } - }, - - ObjectExpression(node) { - checkIndentInArrayOrObjectBlock(node); - }, - - ArrayExpression(node) { - checkIndentInArrayOrObjectBlock(node); - }, - - MemberExpression(node) { - - if (typeof options.MemberExpression === "undefined") { - return; - } - - if (isSingleLineNode(node)) { - return; - } - - /* - * The typical layout of variable declarations and assignments - * alter the expectation of correct indentation. Skip them. - * TODO: Add appropriate configuration options for variable - * declarations and assignments. - */ - if (getParentNodeByType(node, "VariableDeclarator", ["FunctionExpression", "ArrowFunctionExpression"])) { - return; - } - - if (getParentNodeByType(node, "AssignmentExpression", ["FunctionExpression"])) { - return; - } - - const propertyIndent = getNodeIndent(node).goodChar + indentSize * options.MemberExpression; - - const checkNodes = [node.property]; - - const dot = sourceCode.getTokenBefore(node.property); - - if (dot.type === "Punctuator" && dot.value === ".") { - checkNodes.push(dot); - } - - checkNodesIndent(checkNodes, propertyIndent); - }, - - SwitchStatement(node) { - - // Switch is not a 'BlockStatement' - const switchIndent = getNodeIndent(node).goodChar; - const caseIndent = expectedCaseIndent(node, switchIndent); - - checkNodesIndent(node.cases, caseIndent); - - - checkLastNodeLineIndent(node, switchIndent); - }, - - SwitchCase(node) { - - // Skip inline cases - if (isSingleLineNode(node)) { - return; - } - const caseIndent = expectedCaseIndent(node); - - checkNodesIndent(node.consequent, caseIndent + indentSize); - }, - - FunctionDeclaration(node) { - if (isSingleLineNode(node)) { - return; - } - if (options.FunctionDeclaration.parameters === "first" && node.params.length) { - checkNodesIndent(node.params.slice(1), node.params[0].loc.start.column); - } else if (options.FunctionDeclaration.parameters !== null) { - checkNodesIndent(node.params, getNodeIndent(node).goodChar + indentSize * options.FunctionDeclaration.parameters); - } - }, - - FunctionExpression(node) { - if (isSingleLineNode(node)) { - return; - } - if (options.FunctionExpression.parameters === "first" && node.params.length) { - checkNodesIndent(node.params.slice(1), node.params[0].loc.start.column); - } else if (options.FunctionExpression.parameters !== null) { - checkNodesIndent(node.params, getNodeIndent(node).goodChar + indentSize * options.FunctionExpression.parameters); - } - }, - - ReturnStatement(node) { - if (isSingleLineNode(node)) { - return; - } - - const firstLineIndent = getNodeIndent(node).goodChar; - - // in case if return statement is wrapped in parenthesis - if (isWrappedInParenthesis(node)) { - checkLastReturnStatementLineIndent(node, firstLineIndent); - } else { - checkNodeIndent(node, firstLineIndent); - } - }, - - CallExpression(node) { - if (isSingleLineNode(node)) { - return; - } - if (options.CallExpression.arguments === "first" && node.arguments.length) { - checkNodesIndent(node.arguments.slice(1), node.arguments[0].loc.start.column); - } else if (options.CallExpression.arguments !== null) { - checkNodesIndent(node.arguments, getNodeIndent(node).goodChar + indentSize * options.CallExpression.arguments); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/indent.js b/graphql/node_modules/eslint/lib/rules/indent.js deleted file mode 100644 index bc812b13..00000000 --- a/graphql/node_modules/eslint/lib/rules/indent.js +++ /dev/null @@ -1,1803 +0,0 @@ -/** - * @fileoverview This rule sets a specific indentation style and width for your code - * - * @author Teddy Katz - * @author Vitaly Puzrin - * @author Gyandeep Singh - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const KNOWN_NODES = new Set([ - "AssignmentExpression", - "AssignmentPattern", - "ArrayExpression", - "ArrayPattern", - "ArrowFunctionExpression", - "AwaitExpression", - "BlockStatement", - "BinaryExpression", - "BreakStatement", - "CallExpression", - "CatchClause", - "ChainExpression", - "ClassBody", - "ClassDeclaration", - "ClassExpression", - "ConditionalExpression", - "ContinueStatement", - "DoWhileStatement", - "DebuggerStatement", - "EmptyStatement", - "ExperimentalRestProperty", - "ExperimentalSpreadProperty", - "ExpressionStatement", - "ForStatement", - "ForInStatement", - "ForOfStatement", - "FunctionDeclaration", - "FunctionExpression", - "Identifier", - "IfStatement", - "Literal", - "LabeledStatement", - "LogicalExpression", - "MemberExpression", - "MetaProperty", - "MethodDefinition", - "NewExpression", - "ObjectExpression", - "ObjectPattern", - "PrivateIdentifier", - "Program", - "Property", - "PropertyDefinition", - "RestElement", - "ReturnStatement", - "SequenceExpression", - "SpreadElement", - "StaticBlock", - "Super", - "SwitchCase", - "SwitchStatement", - "TaggedTemplateExpression", - "TemplateElement", - "TemplateLiteral", - "ThisExpression", - "ThrowStatement", - "TryStatement", - "UnaryExpression", - "UpdateExpression", - "VariableDeclaration", - "VariableDeclarator", - "WhileStatement", - "WithStatement", - "YieldExpression", - "JSXFragment", - "JSXOpeningFragment", - "JSXClosingFragment", - "JSXIdentifier", - "JSXNamespacedName", - "JSXMemberExpression", - "JSXEmptyExpression", - "JSXExpressionContainer", - "JSXElement", - "JSXClosingElement", - "JSXOpeningElement", - "JSXAttribute", - "JSXSpreadAttribute", - "JSXText", - "ExportDefaultDeclaration", - "ExportNamedDeclaration", - "ExportAllDeclaration", - "ExportSpecifier", - "ImportDeclaration", - "ImportSpecifier", - "ImportDefaultSpecifier", - "ImportNamespaceSpecifier", - "ImportExpression" -]); - -/* - * General rule strategy: - * 1. An OffsetStorage instance stores a map of desired offsets, where each token has a specified offset from another - * specified token or to the first column. - * 2. As the AST is traversed, modify the desired offsets of tokens accordingly. For example, when entering a - * BlockStatement, offset all of the tokens in the BlockStatement by 1 indent level from the opening curly - * brace of the BlockStatement. - * 3. After traversing the AST, calculate the expected indentation levels of every token according to the - * OffsetStorage container. - * 4. For each line, compare the expected indentation of the first token to the actual indentation in the file, - * and report the token if the two values are not equal. - */ - - -/** - * A mutable map that stores (key, value) pairs. The keys are numeric indices, and must be unique. - * This is intended to be a generic wrapper around a map with non-negative integer keys, so that the underlying implementation - * can easily be swapped out. - */ -class IndexMap { - - /** - * Creates an empty map - * @param {number} maxKey The maximum key - */ - constructor(maxKey) { - - // Initializing the array with the maximum expected size avoids dynamic reallocations that could degrade performance. - this._values = Array(maxKey + 1); - } - - /** - * Inserts an entry into the map. - * @param {number} key The entry's key - * @param {any} value The entry's value - * @returns {void} - */ - insert(key, value) { - this._values[key] = value; - } - - /** - * Finds the value of the entry with the largest key less than or equal to the provided key - * @param {number} key The provided key - * @returns {*|undefined} The value of the found entry, or undefined if no such entry exists. - */ - findLastNotAfter(key) { - const values = this._values; - - for (let index = key; index >= 0; index--) { - const value = values[index]; - - if (value) { - return value; - } - } - return void 0; - } - - /** - * Deletes all of the keys in the interval [start, end) - * @param {number} start The start of the range - * @param {number} end The end of the range - * @returns {void} - */ - deleteRange(start, end) { - this._values.fill(void 0, start, end); - } -} - -/** - * A helper class to get token-based info related to indentation - */ -class TokenInfo { - - /** - * @param {SourceCode} sourceCode A SourceCode object - */ - constructor(sourceCode) { - this.sourceCode = sourceCode; - this.firstTokensByLineNumber = new Map(); - const tokens = sourceCode.tokensAndComments; - - for (let i = 0; i < tokens.length; i++) { - const token = tokens[i]; - - if (!this.firstTokensByLineNumber.has(token.loc.start.line)) { - this.firstTokensByLineNumber.set(token.loc.start.line, token); - } - if (!this.firstTokensByLineNumber.has(token.loc.end.line) && sourceCode.text.slice(token.range[1] - token.loc.end.column, token.range[1]).trim()) { - this.firstTokensByLineNumber.set(token.loc.end.line, token); - } - } - } - - /** - * Gets the first token on a given token's line - * @param {Token|ASTNode} token a node or token - * @returns {Token} The first token on the given line - */ - getFirstTokenOfLine(token) { - return this.firstTokensByLineNumber.get(token.loc.start.line); - } - - /** - * Determines whether a token is the first token in its line - * @param {Token} token The token - * @returns {boolean} `true` if the token is the first on its line - */ - isFirstTokenOfLine(token) { - return this.getFirstTokenOfLine(token) === token; - } - - /** - * Get the actual indent of a token - * @param {Token} token Token to examine. This should be the first token on its line. - * @returns {string} The indentation characters that precede the token - */ - getTokenIndent(token) { - return this.sourceCode.text.slice(token.range[0] - token.loc.start.column, token.range[0]); - } -} - -/** - * A class to store information on desired offsets of tokens from each other - */ -class OffsetStorage { - - /** - * @param {TokenInfo} tokenInfo a TokenInfo instance - * @param {number} indentSize The desired size of each indentation level - * @param {string} indentType The indentation character - * @param {number} maxIndex The maximum end index of any token - */ - constructor(tokenInfo, indentSize, indentType, maxIndex) { - this._tokenInfo = tokenInfo; - this._indentSize = indentSize; - this._indentType = indentType; - - this._indexMap = new IndexMap(maxIndex); - this._indexMap.insert(0, { offset: 0, from: null, force: false }); - - this._lockedFirstTokens = new WeakMap(); - this._desiredIndentCache = new WeakMap(); - this._ignoredTokens = new WeakSet(); - } - - _getOffsetDescriptor(token) { - return this._indexMap.findLastNotAfter(token.range[0]); - } - - /** - * Sets the offset column of token B to match the offset column of token A. - * - **WARNING**: This matches a *column*, even if baseToken is not the first token on its line. In - * most cases, `setDesiredOffset` should be used instead. - * @param {Token} baseToken The first token - * @param {Token} offsetToken The second token, whose offset should be matched to the first token - * @returns {void} - */ - matchOffsetOf(baseToken, offsetToken) { - - /* - * lockedFirstTokens is a map from a token whose indentation is controlled by the "first" option to - * the token that it depends on. For example, with the `ArrayExpression: first` option, the first - * token of each element in the array after the first will be mapped to the first token of the first - * element. The desired indentation of each of these tokens is computed based on the desired indentation - * of the "first" element, rather than through the normal offset mechanism. - */ - this._lockedFirstTokens.set(offsetToken, baseToken); - } - - /** - * Sets the desired offset of a token. - * - * This uses a line-based offset collapsing behavior to handle tokens on the same line. - * For example, consider the following two cases: - * - * ( - * [ - * bar - * ] - * ) - * - * ([ - * bar - * ]) - * - * Based on the first case, it's clear that the `bar` token needs to have an offset of 1 indent level (4 spaces) from - * the `[` token, and the `[` token has to have an offset of 1 indent level from the `(` token. Since the `(` token is - * the first on its line (with an indent of 0 spaces), the `bar` token needs to be offset by 2 indent levels (8 spaces) - * from the start of its line. - * - * However, in the second case `bar` should only be indented by 4 spaces. This is because the offset of 1 indent level - * between the `(` and the `[` tokens gets "collapsed" because the two tokens are on the same line. As a result, the - * `(` token is mapped to the `[` token with an offset of 0, and the rule correctly decides that `bar` should be indented - * by 1 indent level from the start of the line. - * - * This is useful because rule listeners can usually just call `setDesiredOffset` for all the tokens in the node, - * without needing to check which lines those tokens are on. - * - * Note that since collapsing only occurs when two tokens are on the same line, there are a few cases where non-intuitive - * behavior can occur. For example, consider the following cases: - * - * foo( - * ). - * bar( - * baz - * ) - * - * foo( - * ).bar( - * baz - * ) - * - * Based on the first example, it would seem that `bar` should be offset by 1 indent level from `foo`, and `baz` - * should be offset by 1 indent level from `bar`. However, this is not correct, because it would result in `baz` - * being indented by 2 indent levels in the second case (since `foo`, `bar`, and `baz` are all on separate lines, no - * collapsing would occur). - * - * Instead, the correct way would be to offset `baz` by 1 level from `bar`, offset `bar` by 1 level from the `)`, and - * offset the `)` by 0 levels from `foo`. This ensures that the offset between `bar` and the `)` are correctly collapsed - * in the second case. - * @param {Token} token The token - * @param {Token} fromToken The token that `token` should be offset from - * @param {number} offset The desired indent level - * @returns {void} - */ - setDesiredOffset(token, fromToken, offset) { - return this.setDesiredOffsets(token.range, fromToken, offset); - } - - /** - * Sets the desired offset of all tokens in a range - * It's common for node listeners in this file to need to apply the same offset to a large, contiguous range of tokens. - * Moreover, the offset of any given token is usually updated multiple times (roughly once for each node that contains - * it). This means that the offset of each token is updated O(AST depth) times. - * It would not be performant to store and update the offsets for each token independently, because the rule would end - * up having a time complexity of O(number of tokens * AST depth), which is quite slow for large files. - * - * Instead, the offset tree is represented as a collection of contiguous offset ranges in a file. For example, the following - * list could represent the state of the offset tree at a given point: - * - * - Tokens starting in the interval [0, 15) are aligned with the beginning of the file - * - Tokens starting in the interval [15, 30) are offset by 1 indent level from the `bar` token - * - Tokens starting in the interval [30, 43) are offset by 1 indent level from the `foo` token - * - Tokens starting in the interval [43, 820) are offset by 2 indent levels from the `bar` token - * - Tokens starting in the interval [820, ∞) are offset by 1 indent level from the `baz` token - * - * The `setDesiredOffsets` methods inserts ranges like the ones above. The third line above would be inserted by using: - * `setDesiredOffsets([30, 43], fooToken, 1);` - * @param {[number, number]} range A [start, end] pair. All tokens with range[0] <= token.start < range[1] will have the offset applied. - * @param {Token} fromToken The token that this is offset from - * @param {number} offset The desired indent level - * @param {boolean} force `true` if this offset should not use the normal collapsing behavior. This should almost always be false. - * @returns {void} - */ - setDesiredOffsets(range, fromToken, offset, force) { - - /* - * Offset ranges are stored as a collection of nodes, where each node maps a numeric key to an offset - * descriptor. The tree for the example above would have the following nodes: - * - * * key: 0, value: { offset: 0, from: null } - * * key: 15, value: { offset: 1, from: barToken } - * * key: 30, value: { offset: 1, from: fooToken } - * * key: 43, value: { offset: 2, from: barToken } - * * key: 820, value: { offset: 1, from: bazToken } - * - * To find the offset descriptor for any given token, one needs to find the node with the largest key - * which is <= token.start. To make this operation fast, the nodes are stored in a map indexed by key. - */ - - const descriptorToInsert = { offset, from: fromToken, force }; - - const descriptorAfterRange = this._indexMap.findLastNotAfter(range[1]); - - const fromTokenIsInRange = fromToken && fromToken.range[0] >= range[0] && fromToken.range[1] <= range[1]; - const fromTokenDescriptor = fromTokenIsInRange && this._getOffsetDescriptor(fromToken); - - // First, remove any existing nodes in the range from the map. - this._indexMap.deleteRange(range[0] + 1, range[1]); - - // Insert a new node into the map for this range - this._indexMap.insert(range[0], descriptorToInsert); - - /* - * To avoid circular offset dependencies, keep the `fromToken` token mapped to whatever it was mapped to previously, - * even if it's in the current range. - */ - if (fromTokenIsInRange) { - this._indexMap.insert(fromToken.range[0], fromTokenDescriptor); - this._indexMap.insert(fromToken.range[1], descriptorToInsert); - } - - /* - * To avoid modifying the offset of tokens after the range, insert another node to keep the offset of the following - * tokens the same as it was before. - */ - this._indexMap.insert(range[1], descriptorAfterRange); - } - - /** - * Gets the desired indent of a token - * @param {Token} token The token - * @returns {string} The desired indent of the token - */ - getDesiredIndent(token) { - if (!this._desiredIndentCache.has(token)) { - - if (this._ignoredTokens.has(token)) { - - /* - * If the token is ignored, use the actual indent of the token as the desired indent. - * This ensures that no errors are reported for this token. - */ - this._desiredIndentCache.set( - token, - this._tokenInfo.getTokenIndent(token) - ); - } else if (this._lockedFirstTokens.has(token)) { - const firstToken = this._lockedFirstTokens.get(token); - - this._desiredIndentCache.set( - token, - - // (indentation for the first element's line) - this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(firstToken)) + - - // (space between the start of the first element's line and the first element) - this._indentType.repeat(firstToken.loc.start.column - this._tokenInfo.getFirstTokenOfLine(firstToken).loc.start.column) - ); - } else { - const offsetInfo = this._getOffsetDescriptor(token); - const offset = ( - offsetInfo.from && - offsetInfo.from.loc.start.line === token.loc.start.line && - !/^\s*?\n/u.test(token.value) && - !offsetInfo.force - ) ? 0 : offsetInfo.offset * this._indentSize; - - this._desiredIndentCache.set( - token, - (offsetInfo.from ? this.getDesiredIndent(offsetInfo.from) : "") + this._indentType.repeat(offset) - ); - } - } - return this._desiredIndentCache.get(token); - } - - /** - * Ignores a token, preventing it from being reported. - * @param {Token} token The token - * @returns {void} - */ - ignoreToken(token) { - if (this._tokenInfo.isFirstTokenOfLine(token)) { - this._ignoredTokens.add(token); - } - } - - /** - * Gets the first token that the given token's indentation is dependent on - * @param {Token} token The token - * @returns {Token} The token that the given token depends on, or `null` if the given token is at the top level - */ - getFirstDependency(token) { - return this._getOffsetDescriptor(token).from; - } -} - -const ELEMENT_LIST_SCHEMA = { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["first", "off"] - } - ] -}; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent indentation", - recommended: false, - url: "https://eslint.org/docs/latest/rules/indent" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["tab"] - }, - { - type: "integer", - minimum: 0 - } - ] - }, - { - type: "object", - properties: { - SwitchCase: { - type: "integer", - minimum: 0, - default: 0 - }, - VariableDeclarator: { - oneOf: [ - ELEMENT_LIST_SCHEMA, - { - type: "object", - properties: { - var: ELEMENT_LIST_SCHEMA, - let: ELEMENT_LIST_SCHEMA, - const: ELEMENT_LIST_SCHEMA - }, - additionalProperties: false - } - ] - }, - outerIIFEBody: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["off"] - } - ] - }, - MemberExpression: { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - enum: ["off"] - } - ] - }, - FunctionDeclaration: { - type: "object", - properties: { - parameters: ELEMENT_LIST_SCHEMA, - body: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - }, - FunctionExpression: { - type: "object", - properties: { - parameters: ELEMENT_LIST_SCHEMA, - body: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - }, - StaticBlock: { - type: "object", - properties: { - body: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - }, - CallExpression: { - type: "object", - properties: { - arguments: ELEMENT_LIST_SCHEMA - }, - additionalProperties: false - }, - ArrayExpression: ELEMENT_LIST_SCHEMA, - ObjectExpression: ELEMENT_LIST_SCHEMA, - ImportDeclaration: ELEMENT_LIST_SCHEMA, - flatTernaryExpressions: { - type: "boolean", - default: false - }, - offsetTernaryExpressions: { - type: "boolean", - default: false - }, - ignoredNodes: { - type: "array", - items: { - type: "string", - not: { - pattern: ":exit$" - } - } - }, - ignoreComments: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - wrongIndentation: "Expected indentation of {{expected}} but found {{actual}}." - } - }, - - create(context) { - const DEFAULT_VARIABLE_INDENT = 1; - const DEFAULT_PARAMETER_INDENT = 1; - const DEFAULT_FUNCTION_BODY_INDENT = 1; - - let indentType = "space"; - let indentSize = 4; - const options = { - SwitchCase: 0, - VariableDeclarator: { - var: DEFAULT_VARIABLE_INDENT, - let: DEFAULT_VARIABLE_INDENT, - const: DEFAULT_VARIABLE_INDENT - }, - outerIIFEBody: 1, - FunctionDeclaration: { - parameters: DEFAULT_PARAMETER_INDENT, - body: DEFAULT_FUNCTION_BODY_INDENT - }, - FunctionExpression: { - parameters: DEFAULT_PARAMETER_INDENT, - body: DEFAULT_FUNCTION_BODY_INDENT - }, - StaticBlock: { - body: DEFAULT_FUNCTION_BODY_INDENT - }, - CallExpression: { - arguments: DEFAULT_PARAMETER_INDENT - }, - MemberExpression: 1, - ArrayExpression: 1, - ObjectExpression: 1, - ImportDeclaration: 1, - flatTernaryExpressions: false, - ignoredNodes: [], - ignoreComments: false - }; - - if (context.options.length) { - if (context.options[0] === "tab") { - indentSize = 1; - indentType = "tab"; - } else { - indentSize = context.options[0]; - indentType = "space"; - } - - if (context.options[1]) { - Object.assign(options, context.options[1]); - - if (typeof options.VariableDeclarator === "number" || options.VariableDeclarator === "first") { - options.VariableDeclarator = { - var: options.VariableDeclarator, - let: options.VariableDeclarator, - const: options.VariableDeclarator - }; - } - } - } - - const sourceCode = context.sourceCode; - const tokenInfo = new TokenInfo(sourceCode); - const offsets = new OffsetStorage(tokenInfo, indentSize, indentType === "space" ? " " : "\t", sourceCode.text.length); - const parameterParens = new WeakSet(); - - /** - * Creates an error message for a line, given the expected/actual indentation. - * @param {int} expectedAmount The expected amount of indentation characters for this line - * @param {int} actualSpaces The actual number of indentation spaces that were found on this line - * @param {int} actualTabs The actual number of indentation tabs that were found on this line - * @returns {string} An error message for this line - */ - function createErrorMessageData(expectedAmount, actualSpaces, actualTabs) { - const expectedStatement = `${expectedAmount} ${indentType}${expectedAmount === 1 ? "" : "s"}`; // e.g. "2 tabs" - const foundSpacesWord = `space${actualSpaces === 1 ? "" : "s"}`; // e.g. "space" - const foundTabsWord = `tab${actualTabs === 1 ? "" : "s"}`; // e.g. "tabs" - let foundStatement; - - if (actualSpaces > 0) { - - /* - * Abbreviate the message if the expected indentation is also spaces. - * e.g. 'Expected 4 spaces but found 2' rather than 'Expected 4 spaces but found 2 spaces' - */ - foundStatement = indentType === "space" ? actualSpaces : `${actualSpaces} ${foundSpacesWord}`; - } else if (actualTabs > 0) { - foundStatement = indentType === "tab" ? actualTabs : `${actualTabs} ${foundTabsWord}`; - } else { - foundStatement = "0"; - } - return { - expected: expectedStatement, - actual: foundStatement - }; - } - - /** - * Reports a given indent violation - * @param {Token} token Token violating the indent rule - * @param {string} neededIndent Expected indentation string - * @returns {void} - */ - function report(token, neededIndent) { - const actualIndent = Array.from(tokenInfo.getTokenIndent(token)); - const numSpaces = actualIndent.filter(char => char === " ").length; - const numTabs = actualIndent.filter(char => char === "\t").length; - - context.report({ - node: token, - messageId: "wrongIndentation", - data: createErrorMessageData(neededIndent.length, numSpaces, numTabs), - loc: { - start: { line: token.loc.start.line, column: 0 }, - end: { line: token.loc.start.line, column: token.loc.start.column } - }, - fix(fixer) { - const range = [token.range[0] - token.loc.start.column, token.range[0]]; - const newText = neededIndent; - - return fixer.replaceTextRange(range, newText); - } - }); - } - - /** - * Checks if a token's indentation is correct - * @param {Token} token Token to examine - * @param {string} desiredIndent Desired indentation of the string - * @returns {boolean} `true` if the token's indentation is correct - */ - function validateTokenIndent(token, desiredIndent) { - const indentation = tokenInfo.getTokenIndent(token); - - return indentation === desiredIndent || - - // To avoid conflicts with no-mixed-spaces-and-tabs, don't report mixed spaces and tabs. - indentation.includes(" ") && indentation.includes("\t"); - } - - /** - * Check to see if the node is a file level IIFE - * @param {ASTNode} node The function node to check. - * @returns {boolean} True if the node is the outer IIFE - */ - function isOuterIIFE(node) { - - /* - * Verify that the node is an IIFE - */ - if (!node.parent || node.parent.type !== "CallExpression" || node.parent.callee !== node) { - return false; - } - - /* - * Navigate legal ancestors to determine whether this IIFE is outer. - * A "legal ancestor" is an expression or statement that causes the function to get executed immediately. - * For example, `!(function(){})()` is an outer IIFE even though it is preceded by a ! operator. - */ - let statement = node.parent && node.parent.parent; - - while ( - statement.type === "UnaryExpression" && ["!", "~", "+", "-"].includes(statement.operator) || - statement.type === "AssignmentExpression" || - statement.type === "LogicalExpression" || - statement.type === "SequenceExpression" || - statement.type === "VariableDeclarator" - ) { - statement = statement.parent; - } - - return (statement.type === "ExpressionStatement" || statement.type === "VariableDeclaration") && statement.parent.type === "Program"; - } - - /** - * Counts the number of linebreaks that follow the last non-whitespace character in a string - * @param {string} string The string to check - * @returns {number} The number of JavaScript linebreaks that follow the last non-whitespace character, - * or the total number of linebreaks if the string is all whitespace. - */ - function countTrailingLinebreaks(string) { - const trailingWhitespace = string.match(/\s*$/u)[0]; - const linebreakMatches = trailingWhitespace.match(astUtils.createGlobalLinebreakMatcher()); - - return linebreakMatches === null ? 0 : linebreakMatches.length; - } - - /** - * Check indentation for lists of elements (arrays, objects, function params) - * @param {ASTNode[]} elements List of elements that should be offset - * @param {Token} startToken The start token of the list that element should be aligned against, e.g. '[' - * @param {Token} endToken The end token of the list, e.g. ']' - * @param {number|string} offset The amount that the elements should be offset - * @returns {void} - */ - function addElementListIndent(elements, startToken, endToken, offset) { - - /** - * Gets the first token of a given element, including surrounding parentheses. - * @param {ASTNode} element A node in the `elements` list - * @returns {Token} The first token of this element - */ - function getFirstToken(element) { - let token = sourceCode.getTokenBefore(element); - - while (astUtils.isOpeningParenToken(token) && token !== startToken) { - token = sourceCode.getTokenBefore(token); - } - return sourceCode.getTokenAfter(token); - } - - // Run through all the tokens in the list, and offset them by one indent level (mainly for comments, other things will end up overridden) - offsets.setDesiredOffsets( - [startToken.range[1], endToken.range[0]], - startToken, - typeof offset === "number" ? offset : 1 - ); - offsets.setDesiredOffset(endToken, startToken, 0); - - // If the preference is "first" but there is no first element (e.g. sparse arrays w/ empty first slot), fall back to 1 level. - if (offset === "first" && elements.length && !elements[0]) { - return; - } - elements.forEach((element, index) => { - if (!element) { - - // Skip holes in arrays - return; - } - if (offset === "off") { - - // Ignore the first token of every element if the "off" option is used - offsets.ignoreToken(getFirstToken(element)); - } - - // Offset the following elements correctly relative to the first element - if (index === 0) { - return; - } - if (offset === "first" && tokenInfo.isFirstTokenOfLine(getFirstToken(element))) { - offsets.matchOffsetOf(getFirstToken(elements[0]), getFirstToken(element)); - } else { - const previousElement = elements[index - 1]; - const firstTokenOfPreviousElement = previousElement && getFirstToken(previousElement); - const previousElementLastToken = previousElement && sourceCode.getLastToken(previousElement); - - if ( - previousElement && - previousElementLastToken.loc.end.line - countTrailingLinebreaks(previousElementLastToken.value) > startToken.loc.end.line - ) { - offsets.setDesiredOffsets( - [previousElement.range[1], element.range[1]], - firstTokenOfPreviousElement, - 0 - ); - } - } - }); - } - - /** - * Check and decide whether to check for indentation for blockless nodes - * Scenarios are for or while statements without braces around them - * @param {ASTNode} node node to examine - * @returns {void} - */ - function addBlocklessNodeIndent(node) { - if (node.type !== "BlockStatement") { - const lastParentToken = sourceCode.getTokenBefore(node, astUtils.isNotOpeningParenToken); - - let firstBodyToken = sourceCode.getFirstToken(node); - let lastBodyToken = sourceCode.getLastToken(node); - - while ( - astUtils.isOpeningParenToken(sourceCode.getTokenBefore(firstBodyToken)) && - astUtils.isClosingParenToken(sourceCode.getTokenAfter(lastBodyToken)) - ) { - firstBodyToken = sourceCode.getTokenBefore(firstBodyToken); - lastBodyToken = sourceCode.getTokenAfter(lastBodyToken); - } - - offsets.setDesiredOffsets([firstBodyToken.range[0], lastBodyToken.range[1]], lastParentToken, 1); - } - } - - /** - * Checks the indentation for nodes that are like function calls (`CallExpression` and `NewExpression`) - * @param {ASTNode} node A CallExpression or NewExpression node - * @returns {void} - */ - function addFunctionCallIndent(node) { - let openingParen; - - if (node.arguments.length) { - openingParen = sourceCode.getFirstTokenBetween(node.callee, node.arguments[0], astUtils.isOpeningParenToken); - } else { - openingParen = sourceCode.getLastToken(node, 1); - } - const closingParen = sourceCode.getLastToken(node); - - parameterParens.add(openingParen); - parameterParens.add(closingParen); - - /* - * If `?.` token exists, set desired offset for that. - * This logic is copied from `MemberExpression`'s. - */ - if (node.optional) { - const dotToken = sourceCode.getTokenAfter(node.callee, astUtils.isQuestionDotToken); - const calleeParenCount = sourceCode.getTokensBetween(node.callee, dotToken, { filter: astUtils.isClosingParenToken }).length; - const firstTokenOfCallee = calleeParenCount - ? sourceCode.getTokenBefore(node.callee, { skip: calleeParenCount - 1 }) - : sourceCode.getFirstToken(node.callee); - const lastTokenOfCallee = sourceCode.getTokenBefore(dotToken); - const offsetBase = lastTokenOfCallee.loc.end.line === openingParen.loc.start.line - ? lastTokenOfCallee - : firstTokenOfCallee; - - offsets.setDesiredOffset(dotToken, offsetBase, 1); - } - - const offsetAfterToken = node.callee.type === "TaggedTemplateExpression" ? sourceCode.getFirstToken(node.callee.quasi) : openingParen; - const offsetToken = sourceCode.getTokenBefore(offsetAfterToken); - - offsets.setDesiredOffset(openingParen, offsetToken, 0); - - addElementListIndent(node.arguments, openingParen, closingParen, options.CallExpression.arguments); - } - - /** - * Checks the indentation of parenthesized values, given a list of tokens in a program - * @param {Token[]} tokens A list of tokens - * @returns {void} - */ - function addParensIndent(tokens) { - const parenStack = []; - const parenPairs = []; - - for (let i = 0; i < tokens.length; i++) { - const nextToken = tokens[i]; - - if (astUtils.isOpeningParenToken(nextToken)) { - parenStack.push(nextToken); - } else if (astUtils.isClosingParenToken(nextToken)) { - parenPairs.push({ left: parenStack.pop(), right: nextToken }); - } - } - - for (let i = parenPairs.length - 1; i >= 0; i--) { - const leftParen = parenPairs[i].left; - const rightParen = parenPairs[i].right; - - // We only want to handle parens around expressions, so exclude parentheses that are in function parameters and function call arguments. - if (!parameterParens.has(leftParen) && !parameterParens.has(rightParen)) { - const parenthesizedTokens = new Set(sourceCode.getTokensBetween(leftParen, rightParen)); - - parenthesizedTokens.forEach(token => { - if (!parenthesizedTokens.has(offsets.getFirstDependency(token))) { - offsets.setDesiredOffset(token, leftParen, 1); - } - }); - } - - offsets.setDesiredOffset(rightParen, leftParen, 0); - } - } - - /** - * Ignore all tokens within an unknown node whose offset do not depend - * on another token's offset within the unknown node - * @param {ASTNode} node Unknown Node - * @returns {void} - */ - function ignoreNode(node) { - const unknownNodeTokens = new Set(sourceCode.getTokens(node, { includeComments: true })); - - unknownNodeTokens.forEach(token => { - if (!unknownNodeTokens.has(offsets.getFirstDependency(token))) { - const firstTokenOfLine = tokenInfo.getFirstTokenOfLine(token); - - if (token === firstTokenOfLine) { - offsets.ignoreToken(token); - } else { - offsets.setDesiredOffset(token, firstTokenOfLine, 0); - } - } - }); - } - - /** - * Check whether the given token is on the first line of a statement. - * @param {Token} token The token to check. - * @param {ASTNode} leafNode The expression node that the token belongs directly. - * @returns {boolean} `true` if the token is on the first line of a statement. - */ - function isOnFirstLineOfStatement(token, leafNode) { - let node = leafNode; - - while (node.parent && !node.parent.type.endsWith("Statement") && !node.parent.type.endsWith("Declaration")) { - node = node.parent; - } - node = node.parent; - - return !node || node.loc.start.line === token.loc.start.line; - } - - /** - * Check whether there are any blank (whitespace-only) lines between - * two tokens on separate lines. - * @param {Token} firstToken The first token. - * @param {Token} secondToken The second token. - * @returns {boolean} `true` if the tokens are on separate lines and - * there exists a blank line between them, `false` otherwise. - */ - function hasBlankLinesBetween(firstToken, secondToken) { - const firstTokenLine = firstToken.loc.end.line; - const secondTokenLine = secondToken.loc.start.line; - - if (firstTokenLine === secondTokenLine || firstTokenLine === secondTokenLine - 1) { - return false; - } - - for (let line = firstTokenLine + 1; line < secondTokenLine; ++line) { - if (!tokenInfo.firstTokensByLineNumber.has(line)) { - return true; - } - } - - return false; - } - - const ignoredNodeFirstTokens = new Set(); - - const baseOffsetListeners = { - "ArrayExpression, ArrayPattern"(node) { - const openingBracket = sourceCode.getFirstToken(node); - const closingBracket = sourceCode.getTokenAfter([...node.elements].reverse().find(_ => _) || openingBracket, astUtils.isClosingBracketToken); - - addElementListIndent(node.elements, openingBracket, closingBracket, options.ArrayExpression); - }, - - "ObjectExpression, ObjectPattern"(node) { - const openingCurly = sourceCode.getFirstToken(node); - const closingCurly = sourceCode.getTokenAfter( - node.properties.length ? node.properties.at(-1) : openingCurly, - astUtils.isClosingBraceToken - ); - - addElementListIndent(node.properties, openingCurly, closingCurly, options.ObjectExpression); - }, - - ArrowFunctionExpression(node) { - const maybeOpeningParen = sourceCode.getFirstToken(node, { skip: node.async ? 1 : 0 }); - - if (astUtils.isOpeningParenToken(maybeOpeningParen)) { - const openingParen = maybeOpeningParen; - const closingParen = sourceCode.getTokenBefore(node.body, astUtils.isClosingParenToken); - - parameterParens.add(openingParen); - parameterParens.add(closingParen); - addElementListIndent(node.params, openingParen, closingParen, options.FunctionExpression.parameters); - } - - addBlocklessNodeIndent(node.body); - }, - - AssignmentExpression(node) { - const operator = sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator); - - offsets.setDesiredOffsets([operator.range[0], node.range[1]], sourceCode.getLastToken(node.left), 1); - offsets.ignoreToken(operator); - offsets.ignoreToken(sourceCode.getTokenAfter(operator)); - }, - - "BinaryExpression, LogicalExpression"(node) { - const operator = sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator); - - /* - * For backwards compatibility, don't check BinaryExpression indents, e.g. - * var foo = bar && - * baz; - */ - - const tokenAfterOperator = sourceCode.getTokenAfter(operator); - - offsets.ignoreToken(operator); - offsets.ignoreToken(tokenAfterOperator); - offsets.setDesiredOffset(tokenAfterOperator, operator, 0); - }, - - "BlockStatement, ClassBody"(node) { - let blockIndentLevel; - - if (node.parent && isOuterIIFE(node.parent)) { - blockIndentLevel = options.outerIIFEBody; - } else if (node.parent && (node.parent.type === "FunctionExpression" || node.parent.type === "ArrowFunctionExpression")) { - blockIndentLevel = options.FunctionExpression.body; - } else if (node.parent && node.parent.type === "FunctionDeclaration") { - blockIndentLevel = options.FunctionDeclaration.body; - } else { - blockIndentLevel = 1; - } - - /* - * For blocks that aren't lone statements, ensure that the opening curly brace - * is aligned with the parent. - */ - if (!astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type)) { - offsets.setDesiredOffset(sourceCode.getFirstToken(node), sourceCode.getFirstToken(node.parent), 0); - } - - addElementListIndent(node.body, sourceCode.getFirstToken(node), sourceCode.getLastToken(node), blockIndentLevel); - }, - - CallExpression: addFunctionCallIndent, - - "ClassDeclaration[superClass], ClassExpression[superClass]"(node) { - const classToken = sourceCode.getFirstToken(node); - const extendsToken = sourceCode.getTokenBefore(node.superClass, astUtils.isNotOpeningParenToken); - - offsets.setDesiredOffsets([extendsToken.range[0], node.body.range[0]], classToken, 1); - }, - - ConditionalExpression(node) { - const firstToken = sourceCode.getFirstToken(node); - - // `flatTernaryExpressions` option is for the following style: - // var a = - // foo > 0 ? bar : - // foo < 0 ? baz : - // /*else*/ qiz ; - if (!options.flatTernaryExpressions || - !astUtils.isTokenOnSameLine(node.test, node.consequent) || - isOnFirstLineOfStatement(firstToken, node) - ) { - const questionMarkToken = sourceCode.getFirstTokenBetween(node.test, node.consequent, token => token.type === "Punctuator" && token.value === "?"); - const colonToken = sourceCode.getFirstTokenBetween(node.consequent, node.alternate, token => token.type === "Punctuator" && token.value === ":"); - - const firstConsequentToken = sourceCode.getTokenAfter(questionMarkToken); - const lastConsequentToken = sourceCode.getTokenBefore(colonToken); - const firstAlternateToken = sourceCode.getTokenAfter(colonToken); - - offsets.setDesiredOffset(questionMarkToken, firstToken, 1); - offsets.setDesiredOffset(colonToken, firstToken, 1); - - offsets.setDesiredOffset(firstConsequentToken, firstToken, firstConsequentToken.type === "Punctuator" && - options.offsetTernaryExpressions ? 2 : 1); - - /* - * The alternate and the consequent should usually have the same indentation. - * If they share part of a line, align the alternate against the first token of the consequent. - * This allows the alternate to be indented correctly in cases like this: - * foo ? ( - * bar - * ) : ( // this '(' is aligned with the '(' above, so it's considered to be aligned with `foo` - * baz // as a result, `baz` is offset by 1 rather than 2 - * ) - */ - if (lastConsequentToken.loc.end.line === firstAlternateToken.loc.start.line) { - offsets.setDesiredOffset(firstAlternateToken, firstConsequentToken, 0); - } else { - - /** - * If the alternate and consequent do not share part of a line, offset the alternate from the first - * token of the conditional expression. For example: - * foo ? bar - * : baz - * - * If `baz` were aligned with `bar` rather than being offset by 1 from `foo`, `baz` would end up - * having no expected indentation. - */ - offsets.setDesiredOffset(firstAlternateToken, firstToken, firstAlternateToken.type === "Punctuator" && - options.offsetTernaryExpressions ? 2 : 1); - } - } - }, - - "DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement": node => addBlocklessNodeIndent(node.body), - - ExportNamedDeclaration(node) { - if (node.declaration === null) { - const closingCurly = sourceCode.getLastToken(node, astUtils.isClosingBraceToken); - - // Indent the specifiers in `export {foo, bar, baz}` - addElementListIndent(node.specifiers, sourceCode.getFirstToken(node, { skip: 1 }), closingCurly, 1); - - if (node.source) { - - // Indent everything after and including the `from` token in `export {foo, bar, baz} from 'qux'` - offsets.setDesiredOffsets([closingCurly.range[1], node.range[1]], sourceCode.getFirstToken(node), 1); - } - } - }, - - ForStatement(node) { - const forOpeningParen = sourceCode.getFirstToken(node, 1); - - if (node.init) { - offsets.setDesiredOffsets(node.init.range, forOpeningParen, 1); - } - if (node.test) { - offsets.setDesiredOffsets(node.test.range, forOpeningParen, 1); - } - if (node.update) { - offsets.setDesiredOffsets(node.update.range, forOpeningParen, 1); - } - addBlocklessNodeIndent(node.body); - }, - - "FunctionDeclaration, FunctionExpression"(node) { - const closingParen = sourceCode.getTokenBefore(node.body); - const openingParen = sourceCode.getTokenBefore(node.params.length ? node.params[0] : closingParen); - - parameterParens.add(openingParen); - parameterParens.add(closingParen); - addElementListIndent(node.params, openingParen, closingParen, options[node.type].parameters); - }, - - IfStatement(node) { - addBlocklessNodeIndent(node.consequent); - if (node.alternate) { - addBlocklessNodeIndent(node.alternate); - } - }, - - /* - * For blockless nodes with semicolon-first style, don't indent the semicolon. - * e.g. - * if (foo) - * bar() - * ; [1, 2, 3].map(foo) - * - * Traversal into the node sets indentation of the semicolon, so we need to override it on exit. - */ - ":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(node) { - let nodesToCheck; - - if (node.type === "IfStatement") { - nodesToCheck = [node.consequent]; - if (node.alternate) { - nodesToCheck.push(node.alternate); - } - } else { - nodesToCheck = [node.body]; - } - - for (const nodeToCheck of nodesToCheck) { - const lastToken = sourceCode.getLastToken(nodeToCheck); - - if (astUtils.isSemicolonToken(lastToken)) { - const tokenBeforeLast = sourceCode.getTokenBefore(lastToken); - const tokenAfterLast = sourceCode.getTokenAfter(lastToken); - - // override indentation of `;` only if its line looks like a semicolon-first style line - if ( - !astUtils.isTokenOnSameLine(tokenBeforeLast, lastToken) && - tokenAfterLast && - astUtils.isTokenOnSameLine(lastToken, tokenAfterLast) - ) { - offsets.setDesiredOffset( - lastToken, - sourceCode.getFirstToken(node), - 0 - ); - } - } - } - }, - - ImportDeclaration(node) { - if (node.specifiers.some(specifier => specifier.type === "ImportSpecifier")) { - const openingCurly = sourceCode.getFirstToken(node, astUtils.isOpeningBraceToken); - const closingCurly = sourceCode.getLastToken(node, astUtils.isClosingBraceToken); - - addElementListIndent(node.specifiers.filter(specifier => specifier.type === "ImportSpecifier"), openingCurly, closingCurly, options.ImportDeclaration); - } - - const fromToken = sourceCode.getLastToken(node, token => token.type === "Identifier" && token.value === "from"); - const sourceToken = sourceCode.getLastToken(node, token => token.type === "String"); - const semiToken = sourceCode.getLastToken(node, token => token.type === "Punctuator" && token.value === ";"); - - if (fromToken) { - const end = semiToken && semiToken.range[1] === sourceToken.range[1] ? node.range[1] : sourceToken.range[1]; - - offsets.setDesiredOffsets([fromToken.range[0], end], sourceCode.getFirstToken(node), 1); - } - }, - - ImportExpression(node) { - const openingParen = sourceCode.getFirstToken(node, 1); - const closingParen = sourceCode.getLastToken(node); - - parameterParens.add(openingParen); - parameterParens.add(closingParen); - offsets.setDesiredOffset(openingParen, sourceCode.getTokenBefore(openingParen), 0); - - addElementListIndent([node.source], openingParen, closingParen, options.CallExpression.arguments); - }, - - "MemberExpression, JSXMemberExpression, MetaProperty"(node) { - const object = node.type === "MetaProperty" ? node.meta : node.object; - const firstNonObjectToken = sourceCode.getFirstTokenBetween(object, node.property, astUtils.isNotClosingParenToken); - const secondNonObjectToken = sourceCode.getTokenAfter(firstNonObjectToken); - - const objectParenCount = sourceCode.getTokensBetween(object, node.property, { filter: astUtils.isClosingParenToken }).length; - const firstObjectToken = objectParenCount - ? sourceCode.getTokenBefore(object, { skip: objectParenCount - 1 }) - : sourceCode.getFirstToken(object); - const lastObjectToken = sourceCode.getTokenBefore(firstNonObjectToken); - const firstPropertyToken = node.computed ? firstNonObjectToken : secondNonObjectToken; - - if (node.computed) { - - // For computed MemberExpressions, match the closing bracket with the opening bracket. - offsets.setDesiredOffset(sourceCode.getLastToken(node), firstNonObjectToken, 0); - offsets.setDesiredOffsets(node.property.range, firstNonObjectToken, 1); - } - - /* - * If the object ends on the same line that the property starts, match against the last token - * of the object, to ensure that the MemberExpression is not indented. - * - * Otherwise, match against the first token of the object, e.g. - * foo - * .bar - * .baz // <-- offset by 1 from `foo` - */ - const offsetBase = lastObjectToken.loc.end.line === firstPropertyToken.loc.start.line - ? lastObjectToken - : firstObjectToken; - - if (typeof options.MemberExpression === "number") { - - // Match the dot (for non-computed properties) or the opening bracket (for computed properties) against the object. - offsets.setDesiredOffset(firstNonObjectToken, offsetBase, options.MemberExpression); - - /* - * For computed MemberExpressions, match the first token of the property against the opening bracket. - * Otherwise, match the first token of the property against the object. - */ - offsets.setDesiredOffset(secondNonObjectToken, node.computed ? firstNonObjectToken : offsetBase, options.MemberExpression); - } else { - - // If the MemberExpression option is off, ignore the dot and the first token of the property. - offsets.ignoreToken(firstNonObjectToken); - offsets.ignoreToken(secondNonObjectToken); - - // To ignore the property indentation, ensure that the property tokens depend on the ignored tokens. - offsets.setDesiredOffset(firstNonObjectToken, offsetBase, 0); - offsets.setDesiredOffset(secondNonObjectToken, firstNonObjectToken, 0); - } - }, - - NewExpression(node) { - - // Only indent the arguments if the NewExpression has parens (e.g. `new Foo(bar)` or `new Foo()`, but not `new Foo` - if (node.arguments.length > 0 || - astUtils.isClosingParenToken(sourceCode.getLastToken(node)) && - astUtils.isOpeningParenToken(sourceCode.getLastToken(node, 1))) { - addFunctionCallIndent(node); - } - }, - - Property(node) { - if (!node.shorthand && !node.method && node.kind === "init") { - const colon = sourceCode.getFirstTokenBetween(node.key, node.value, astUtils.isColonToken); - - offsets.ignoreToken(sourceCode.getTokenAfter(colon)); - } - }, - - PropertyDefinition(node) { - const firstToken = sourceCode.getFirstToken(node); - const maybeSemicolonToken = sourceCode.getLastToken(node); - let keyLastToken; - - // Indent key. - if (node.computed) { - const bracketTokenL = sourceCode.getTokenBefore(node.key, astUtils.isOpeningBracketToken); - const bracketTokenR = keyLastToken = sourceCode.getTokenAfter(node.key, astUtils.isClosingBracketToken); - const keyRange = [bracketTokenL.range[1], bracketTokenR.range[0]]; - - if (bracketTokenL !== firstToken) { - offsets.setDesiredOffset(bracketTokenL, firstToken, 0); - } - offsets.setDesiredOffsets(keyRange, bracketTokenL, 1); - offsets.setDesiredOffset(bracketTokenR, bracketTokenL, 0); - } else { - const idToken = keyLastToken = sourceCode.getFirstToken(node.key); - - if (idToken !== firstToken) { - offsets.setDesiredOffset(idToken, firstToken, 1); - } - } - - // Indent initializer. - if (node.value) { - const eqToken = sourceCode.getTokenBefore(node.value, astUtils.isEqToken); - const valueToken = sourceCode.getTokenAfter(eqToken); - - offsets.setDesiredOffset(eqToken, keyLastToken, 1); - offsets.setDesiredOffset(valueToken, eqToken, 1); - if (astUtils.isSemicolonToken(maybeSemicolonToken)) { - offsets.setDesiredOffset(maybeSemicolonToken, eqToken, 1); - } - } else if (astUtils.isSemicolonToken(maybeSemicolonToken)) { - offsets.setDesiredOffset(maybeSemicolonToken, keyLastToken, 1); - } - }, - - StaticBlock(node) { - const openingCurly = sourceCode.getFirstToken(node, { skip: 1 }); // skip the `static` token - const closingCurly = sourceCode.getLastToken(node); - - addElementListIndent(node.body, openingCurly, closingCurly, options.StaticBlock.body); - }, - - SwitchStatement(node) { - const openingCurly = sourceCode.getTokenAfter(node.discriminant, astUtils.isOpeningBraceToken); - const closingCurly = sourceCode.getLastToken(node); - - offsets.setDesiredOffsets([openingCurly.range[1], closingCurly.range[0]], openingCurly, options.SwitchCase); - - if (node.cases.length) { - sourceCode.getTokensBetween( - node.cases.at(-1), - closingCurly, - { includeComments: true, filter: astUtils.isCommentToken } - ).forEach(token => offsets.ignoreToken(token)); - } - }, - - SwitchCase(node) { - if (!(node.consequent.length === 1 && node.consequent[0].type === "BlockStatement")) { - const caseKeyword = sourceCode.getFirstToken(node); - const tokenAfterCurrentCase = sourceCode.getTokenAfter(node); - - offsets.setDesiredOffsets([caseKeyword.range[1], tokenAfterCurrentCase.range[0]], caseKeyword, 1); - } - }, - - TemplateLiteral(node) { - node.expressions.forEach((expression, index) => { - const previousQuasi = node.quasis[index]; - const nextQuasi = node.quasis[index + 1]; - const tokenToAlignFrom = previousQuasi.loc.start.line === previousQuasi.loc.end.line - ? sourceCode.getFirstToken(previousQuasi) - : null; - - offsets.setDesiredOffsets([previousQuasi.range[1], nextQuasi.range[0]], tokenToAlignFrom, 1); - offsets.setDesiredOffset(sourceCode.getFirstToken(nextQuasi), tokenToAlignFrom, 0); - }); - }, - - VariableDeclaration(node) { - let variableIndent = Object.hasOwn(options.VariableDeclarator, node.kind) - ? options.VariableDeclarator[node.kind] - : DEFAULT_VARIABLE_INDENT; - - const firstToken = sourceCode.getFirstToken(node), - lastToken = sourceCode.getLastToken(node); - - if (options.VariableDeclarator[node.kind] === "first") { - if (node.declarations.length > 1) { - addElementListIndent( - node.declarations, - firstToken, - lastToken, - "first" - ); - return; - } - - variableIndent = DEFAULT_VARIABLE_INDENT; - } - - if (node.declarations.at(-1).loc.start.line > node.loc.start.line) { - - /* - * VariableDeclarator indentation is a bit different from other forms of indentation, in that the - * indentation of an opening bracket sometimes won't match that of a closing bracket. For example, - * the following indentations are correct: - * - * var foo = { - * ok: true - * }; - * - * var foo = { - * ok: true, - * }, - * bar = 1; - * - * Account for when exiting the AST (after indentations have already been set for the nodes in - * the declaration) by manually increasing the indentation level of the tokens in this declarator - * on the same line as the start of the declaration, provided that there are declarators that - * follow this one. - */ - offsets.setDesiredOffsets(node.range, firstToken, variableIndent, true); - } else { - offsets.setDesiredOffsets(node.range, firstToken, variableIndent); - } - - if (astUtils.isSemicolonToken(lastToken)) { - offsets.ignoreToken(lastToken); - } - }, - - VariableDeclarator(node) { - if (node.init) { - const equalOperator = sourceCode.getTokenBefore(node.init, astUtils.isNotOpeningParenToken); - const tokenAfterOperator = sourceCode.getTokenAfter(equalOperator); - - offsets.ignoreToken(equalOperator); - offsets.ignoreToken(tokenAfterOperator); - offsets.setDesiredOffsets([tokenAfterOperator.range[0], node.range[1]], equalOperator, 1); - offsets.setDesiredOffset(equalOperator, sourceCode.getLastToken(node.id), 0); - } - }, - - "JSXAttribute[value]"(node) { - const equalsToken = sourceCode.getFirstTokenBetween(node.name, node.value, token => token.type === "Punctuator" && token.value === "="); - - offsets.setDesiredOffsets([equalsToken.range[0], node.value.range[1]], sourceCode.getFirstToken(node.name), 1); - }, - - JSXElement(node) { - if (node.closingElement) { - addElementListIndent(node.children, sourceCode.getFirstToken(node.openingElement), sourceCode.getFirstToken(node.closingElement), 1); - } - }, - - JSXOpeningElement(node) { - const firstToken = sourceCode.getFirstToken(node); - let closingToken; - - if (node.selfClosing) { - closingToken = sourceCode.getLastToken(node, { skip: 1 }); - offsets.setDesiredOffset(sourceCode.getLastToken(node), closingToken, 0); - } else { - closingToken = sourceCode.getLastToken(node); - } - offsets.setDesiredOffsets(node.name.range, sourceCode.getFirstToken(node)); - addElementListIndent(node.attributes, firstToken, closingToken, 1); - }, - - JSXClosingElement(node) { - const firstToken = sourceCode.getFirstToken(node); - - offsets.setDesiredOffsets(node.name.range, firstToken, 1); - }, - - JSXFragment(node) { - const firstOpeningToken = sourceCode.getFirstToken(node.openingFragment); - const firstClosingToken = sourceCode.getFirstToken(node.closingFragment); - - addElementListIndent(node.children, firstOpeningToken, firstClosingToken, 1); - }, - - JSXOpeningFragment(node) { - const firstToken = sourceCode.getFirstToken(node); - const closingToken = sourceCode.getLastToken(node); - - offsets.setDesiredOffsets(node.range, firstToken, 1); - offsets.matchOffsetOf(firstToken, closingToken); - }, - - JSXClosingFragment(node) { - const firstToken = sourceCode.getFirstToken(node); - const slashToken = sourceCode.getLastToken(node, { skip: 1 }); - const closingToken = sourceCode.getLastToken(node); - const tokenToMatch = astUtils.isTokenOnSameLine(slashToken, closingToken) ? slashToken : closingToken; - - offsets.setDesiredOffsets(node.range, firstToken, 1); - offsets.matchOffsetOf(firstToken, tokenToMatch); - }, - - JSXExpressionContainer(node) { - const openingCurly = sourceCode.getFirstToken(node); - const closingCurly = sourceCode.getLastToken(node); - - offsets.setDesiredOffsets( - [openingCurly.range[1], closingCurly.range[0]], - openingCurly, - 1 - ); - }, - - JSXSpreadAttribute(node) { - const openingCurly = sourceCode.getFirstToken(node); - const closingCurly = sourceCode.getLastToken(node); - - offsets.setDesiredOffsets( - [openingCurly.range[1], closingCurly.range[0]], - openingCurly, - 1 - ); - }, - - "*"(node) { - const firstToken = sourceCode.getFirstToken(node); - - // Ensure that the children of every node are indented at least as much as the first token. - if (firstToken && !ignoredNodeFirstTokens.has(firstToken)) { - offsets.setDesiredOffsets(node.range, firstToken, 0); - } - } - }; - - const listenerCallQueue = []; - - /* - * To ignore the indentation of a node: - * 1. Don't call the node's listener when entering it (if it has a listener) - * 2. Don't set any offsets against the first token of the node. - * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets. - */ - const offsetListeners = {}; - - for (const [selector, listener] of Object.entries(baseOffsetListeners)) { - - /* - * Offset listener calls are deferred until traversal is finished, and are called as - * part of the final `Program:exit` listener. This is necessary because a node might - * be matched by multiple selectors. - * - * Example: Suppose there is an offset listener for `Identifier`, and the user has - * specified in configuration that `MemberExpression > Identifier` should be ignored. - * Due to selector specificity rules, the `Identifier` listener will get called first. However, - * if a given Identifier node is supposed to be ignored, then the `Identifier` offset listener - * should not have been called at all. Without doing extra selector matching, we don't know - * whether the Identifier matches the `MemberExpression > Identifier` selector until the - * `MemberExpression > Identifier` listener is called. - * - * To avoid this, the `Identifier` listener isn't called until traversal finishes and all - * ignored nodes are known. - */ - offsetListeners[selector] = node => listenerCallQueue.push({ listener, node }); - } - - // For each ignored node selector, set up a listener to collect it into the `ignoredNodes` set. - const ignoredNodes = new Set(); - - /** - * Ignores a node - * @param {ASTNode} node The node to ignore - * @returns {void} - */ - function addToIgnoredNodes(node) { - ignoredNodes.add(node); - ignoredNodeFirstTokens.add(sourceCode.getFirstToken(node)); - } - - const ignoredNodeListeners = options.ignoredNodes.reduce( - (listeners, ignoredSelector) => Object.assign(listeners, { [ignoredSelector]: addToIgnoredNodes }), - {} - ); - - /* - * Join the listeners, and add a listener to verify that all tokens actually have the correct indentation - * at the end. - * - * Using Object.assign will cause some offset listeners to be overwritten if the same selector also appears - * in `ignoredNodeListeners`. This isn't a problem because all of the matching nodes will be ignored, - * so those listeners wouldn't be called anyway. - */ - return Object.assign( - offsetListeners, - ignoredNodeListeners, - { - "*:exit"(node) { - - // If a node's type is nonstandard, we can't tell how its children should be offset, so ignore it. - if (!KNOWN_NODES.has(node.type)) { - addToIgnoredNodes(node); - } - }, - "Program:exit"() { - - // If ignoreComments option is enabled, ignore all comment tokens. - if (options.ignoreComments) { - sourceCode.getAllComments() - .forEach(comment => offsets.ignoreToken(comment)); - } - - // Invoke the queued offset listeners for the nodes that aren't ignored. - for (let i = 0; i < listenerCallQueue.length; i++) { - const nodeInfo = listenerCallQueue[i]; - - if (!ignoredNodes.has(nodeInfo.node)) { - nodeInfo.listener(nodeInfo.node); - } - } - - // Update the offsets for ignored nodes to prevent their child tokens from being reported. - ignoredNodes.forEach(ignoreNode); - - addParensIndent(sourceCode.ast.tokens); - - /* - * Create a Map from (tokenOrComment) => (precedingToken). - * This is necessary because sourceCode.getTokenBefore does not handle a comment as an argument correctly. - */ - const precedingTokens = new WeakMap(); - - for (let i = 0; i < sourceCode.ast.comments.length; i++) { - const comment = sourceCode.ast.comments[i]; - - const tokenOrCommentBefore = sourceCode.getTokenBefore(comment, { includeComments: true }); - const hasToken = precedingTokens.has(tokenOrCommentBefore) ? precedingTokens.get(tokenOrCommentBefore) : tokenOrCommentBefore; - - precedingTokens.set(comment, hasToken); - } - - for (let i = 1; i < sourceCode.lines.length + 1; i++) { - - if (!tokenInfo.firstTokensByLineNumber.has(i)) { - - // Don't check indentation on blank lines - continue; - } - - const firstTokenOfLine = tokenInfo.firstTokensByLineNumber.get(i); - - if (firstTokenOfLine.loc.start.line !== i) { - - // Don't check the indentation of multi-line tokens (e.g. template literals or block comments) twice. - continue; - } - - if (astUtils.isCommentToken(firstTokenOfLine)) { - const tokenBefore = precedingTokens.get(firstTokenOfLine); - const tokenAfter = tokenBefore ? sourceCode.getTokenAfter(tokenBefore) : sourceCode.ast.tokens[0]; - const mayAlignWithBefore = tokenBefore && !hasBlankLinesBetween(tokenBefore, firstTokenOfLine); - const mayAlignWithAfter = tokenAfter && !hasBlankLinesBetween(firstTokenOfLine, tokenAfter); - - /* - * If a comment precedes a line that begins with a semicolon token, align to that token, i.e. - * - * let foo - * // comment - * ;(async () => {})() - */ - if (tokenAfter && astUtils.isSemicolonToken(tokenAfter) && !astUtils.isTokenOnSameLine(firstTokenOfLine, tokenAfter)) { - offsets.setDesiredOffset(firstTokenOfLine, tokenAfter, 0); - } - - // If a comment matches the expected indentation of the token immediately before or after, don't report it. - if ( - mayAlignWithBefore && validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(tokenBefore)) || - mayAlignWithAfter && validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(tokenAfter)) - ) { - continue; - } - } - - // If the token matches the expected indentation, don't report it. - if (validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(firstTokenOfLine))) { - continue; - } - - // Otherwise, report the token/comment. - report(firstTokenOfLine, offsets.getDesiredIndent(firstTokenOfLine)); - } - } - } - ); - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/index.js b/graphql/node_modules/eslint/lib/rules/index.js deleted file mode 100644 index 5ff7b6f5..00000000 --- a/graphql/node_modules/eslint/lib/rules/index.js +++ /dev/null @@ -1,305 +0,0 @@ -/** - * @fileoverview Collects the built-in rules into a map structure so that they can be imported all at once and without - * using the file-system directly. - * @author Peter (Somogyvari) Metz - */ - -"use strict"; - -/* eslint sort-keys: ["error", "asc"] -- More readable for long list */ - -const { LazyLoadingRuleMap } = require("./utils/lazy-loading-rule-map"); - -/** @type {Map} */ -module.exports = new LazyLoadingRuleMap(Object.entries({ - "accessor-pairs": () => require("./accessor-pairs"), - "array-bracket-newline": () => require("./array-bracket-newline"), - "array-bracket-spacing": () => require("./array-bracket-spacing"), - "array-callback-return": () => require("./array-callback-return"), - "array-element-newline": () => require("./array-element-newline"), - "arrow-body-style": () => require("./arrow-body-style"), - "arrow-parens": () => require("./arrow-parens"), - "arrow-spacing": () => require("./arrow-spacing"), - "block-scoped-var": () => require("./block-scoped-var"), - "block-spacing": () => require("./block-spacing"), - "brace-style": () => require("./brace-style"), - "callback-return": () => require("./callback-return"), - camelcase: () => require("./camelcase"), - "capitalized-comments": () => require("./capitalized-comments"), - "class-methods-use-this": () => require("./class-methods-use-this"), - "comma-dangle": () => require("./comma-dangle"), - "comma-spacing": () => require("./comma-spacing"), - "comma-style": () => require("./comma-style"), - complexity: () => require("./complexity"), - "computed-property-spacing": () => require("./computed-property-spacing"), - "consistent-return": () => require("./consistent-return"), - "consistent-this": () => require("./consistent-this"), - "constructor-super": () => require("./constructor-super"), - curly: () => require("./curly"), - "default-case": () => require("./default-case"), - "default-case-last": () => require("./default-case-last"), - "default-param-last": () => require("./default-param-last"), - "dot-location": () => require("./dot-location"), - "dot-notation": () => require("./dot-notation"), - "eol-last": () => require("./eol-last"), - eqeqeq: () => require("./eqeqeq"), - "for-direction": () => require("./for-direction"), - "func-call-spacing": () => require("./func-call-spacing"), - "func-name-matching": () => require("./func-name-matching"), - "func-names": () => require("./func-names"), - "func-style": () => require("./func-style"), - "function-call-argument-newline": () => require("./function-call-argument-newline"), - "function-paren-newline": () => require("./function-paren-newline"), - "generator-star-spacing": () => require("./generator-star-spacing"), - "getter-return": () => require("./getter-return"), - "global-require": () => require("./global-require"), - "grouped-accessor-pairs": () => require("./grouped-accessor-pairs"), - "guard-for-in": () => require("./guard-for-in"), - "handle-callback-err": () => require("./handle-callback-err"), - "id-blacklist": () => require("./id-blacklist"), - "id-denylist": () => require("./id-denylist"), - "id-length": () => require("./id-length"), - "id-match": () => require("./id-match"), - "implicit-arrow-linebreak": () => require("./implicit-arrow-linebreak"), - indent: () => require("./indent"), - "indent-legacy": () => require("./indent-legacy"), - "init-declarations": () => require("./init-declarations"), - "jsx-quotes": () => require("./jsx-quotes"), - "key-spacing": () => require("./key-spacing"), - "keyword-spacing": () => require("./keyword-spacing"), - "line-comment-position": () => require("./line-comment-position"), - "linebreak-style": () => require("./linebreak-style"), - "lines-around-comment": () => require("./lines-around-comment"), - "lines-around-directive": () => require("./lines-around-directive"), - "lines-between-class-members": () => require("./lines-between-class-members"), - "logical-assignment-operators": () => require("./logical-assignment-operators"), - "max-classes-per-file": () => require("./max-classes-per-file"), - "max-depth": () => require("./max-depth"), - "max-len": () => require("./max-len"), - "max-lines": () => require("./max-lines"), - "max-lines-per-function": () => require("./max-lines-per-function"), - "max-nested-callbacks": () => require("./max-nested-callbacks"), - "max-params": () => require("./max-params"), - "max-statements": () => require("./max-statements"), - "max-statements-per-line": () => require("./max-statements-per-line"), - "multiline-comment-style": () => require("./multiline-comment-style"), - "multiline-ternary": () => require("./multiline-ternary"), - "new-cap": () => require("./new-cap"), - "new-parens": () => require("./new-parens"), - "newline-after-var": () => require("./newline-after-var"), - "newline-before-return": () => require("./newline-before-return"), - "newline-per-chained-call": () => require("./newline-per-chained-call"), - "no-alert": () => require("./no-alert"), - "no-array-constructor": () => require("./no-array-constructor"), - "no-async-promise-executor": () => require("./no-async-promise-executor"), - "no-await-in-loop": () => require("./no-await-in-loop"), - "no-bitwise": () => require("./no-bitwise"), - "no-buffer-constructor": () => require("./no-buffer-constructor"), - "no-caller": () => require("./no-caller"), - "no-case-declarations": () => require("./no-case-declarations"), - "no-catch-shadow": () => require("./no-catch-shadow"), - "no-class-assign": () => require("./no-class-assign"), - "no-compare-neg-zero": () => require("./no-compare-neg-zero"), - "no-cond-assign": () => require("./no-cond-assign"), - "no-confusing-arrow": () => require("./no-confusing-arrow"), - "no-console": () => require("./no-console"), - "no-const-assign": () => require("./no-const-assign"), - "no-constant-binary-expression": () => require("./no-constant-binary-expression"), - "no-constant-condition": () => require("./no-constant-condition"), - "no-constructor-return": () => require("./no-constructor-return"), - "no-continue": () => require("./no-continue"), - "no-control-regex": () => require("./no-control-regex"), - "no-debugger": () => require("./no-debugger"), - "no-delete-var": () => require("./no-delete-var"), - "no-div-regex": () => require("./no-div-regex"), - "no-dupe-args": () => require("./no-dupe-args"), - "no-dupe-class-members": () => require("./no-dupe-class-members"), - "no-dupe-else-if": () => require("./no-dupe-else-if"), - "no-dupe-keys": () => require("./no-dupe-keys"), - "no-duplicate-case": () => require("./no-duplicate-case"), - "no-duplicate-imports": () => require("./no-duplicate-imports"), - "no-else-return": () => require("./no-else-return"), - "no-empty": () => require("./no-empty"), - "no-empty-character-class": () => require("./no-empty-character-class"), - "no-empty-function": () => require("./no-empty-function"), - "no-empty-pattern": () => require("./no-empty-pattern"), - "no-empty-static-block": () => require("./no-empty-static-block"), - "no-eq-null": () => require("./no-eq-null"), - "no-eval": () => require("./no-eval"), - "no-ex-assign": () => require("./no-ex-assign"), - "no-extend-native": () => require("./no-extend-native"), - "no-extra-bind": () => require("./no-extra-bind"), - "no-extra-boolean-cast": () => require("./no-extra-boolean-cast"), - "no-extra-label": () => require("./no-extra-label"), - "no-extra-parens": () => require("./no-extra-parens"), - "no-extra-semi": () => require("./no-extra-semi"), - "no-fallthrough": () => require("./no-fallthrough"), - "no-floating-decimal": () => require("./no-floating-decimal"), - "no-func-assign": () => require("./no-func-assign"), - "no-global-assign": () => require("./no-global-assign"), - "no-implicit-coercion": () => require("./no-implicit-coercion"), - "no-implicit-globals": () => require("./no-implicit-globals"), - "no-implied-eval": () => require("./no-implied-eval"), - "no-import-assign": () => require("./no-import-assign"), - "no-inline-comments": () => require("./no-inline-comments"), - "no-inner-declarations": () => require("./no-inner-declarations"), - "no-invalid-regexp": () => require("./no-invalid-regexp"), - "no-invalid-this": () => require("./no-invalid-this"), - "no-irregular-whitespace": () => require("./no-irregular-whitespace"), - "no-iterator": () => require("./no-iterator"), - "no-label-var": () => require("./no-label-var"), - "no-labels": () => require("./no-labels"), - "no-lone-blocks": () => require("./no-lone-blocks"), - "no-lonely-if": () => require("./no-lonely-if"), - "no-loop-func": () => require("./no-loop-func"), - "no-loss-of-precision": () => require("./no-loss-of-precision"), - "no-magic-numbers": () => require("./no-magic-numbers"), - "no-misleading-character-class": () => require("./no-misleading-character-class"), - "no-mixed-operators": () => require("./no-mixed-operators"), - "no-mixed-requires": () => require("./no-mixed-requires"), - "no-mixed-spaces-and-tabs": () => require("./no-mixed-spaces-and-tabs"), - "no-multi-assign": () => require("./no-multi-assign"), - "no-multi-spaces": () => require("./no-multi-spaces"), - "no-multi-str": () => require("./no-multi-str"), - "no-multiple-empty-lines": () => require("./no-multiple-empty-lines"), - "no-native-reassign": () => require("./no-native-reassign"), - "no-negated-condition": () => require("./no-negated-condition"), - "no-negated-in-lhs": () => require("./no-negated-in-lhs"), - "no-nested-ternary": () => require("./no-nested-ternary"), - "no-new": () => require("./no-new"), - "no-new-func": () => require("./no-new-func"), - "no-new-native-nonconstructor": () => require("./no-new-native-nonconstructor"), - "no-new-object": () => require("./no-new-object"), - "no-new-require": () => require("./no-new-require"), - "no-new-symbol": () => require("./no-new-symbol"), - "no-new-wrappers": () => require("./no-new-wrappers"), - "no-nonoctal-decimal-escape": () => require("./no-nonoctal-decimal-escape"), - "no-obj-calls": () => require("./no-obj-calls"), - "no-object-constructor": () => require("./no-object-constructor"), - "no-octal": () => require("./no-octal"), - "no-octal-escape": () => require("./no-octal-escape"), - "no-param-reassign": () => require("./no-param-reassign"), - "no-path-concat": () => require("./no-path-concat"), - "no-plusplus": () => require("./no-plusplus"), - "no-process-env": () => require("./no-process-env"), - "no-process-exit": () => require("./no-process-exit"), - "no-promise-executor-return": () => require("./no-promise-executor-return"), - "no-proto": () => require("./no-proto"), - "no-prototype-builtins": () => require("./no-prototype-builtins"), - "no-redeclare": () => require("./no-redeclare"), - "no-regex-spaces": () => require("./no-regex-spaces"), - "no-restricted-exports": () => require("./no-restricted-exports"), - "no-restricted-globals": () => require("./no-restricted-globals"), - "no-restricted-imports": () => require("./no-restricted-imports"), - "no-restricted-modules": () => require("./no-restricted-modules"), - "no-restricted-properties": () => require("./no-restricted-properties"), - "no-restricted-syntax": () => require("./no-restricted-syntax"), - "no-return-assign": () => require("./no-return-assign"), - "no-return-await": () => require("./no-return-await"), - "no-script-url": () => require("./no-script-url"), - "no-self-assign": () => require("./no-self-assign"), - "no-self-compare": () => require("./no-self-compare"), - "no-sequences": () => require("./no-sequences"), - "no-setter-return": () => require("./no-setter-return"), - "no-shadow": () => require("./no-shadow"), - "no-shadow-restricted-names": () => require("./no-shadow-restricted-names"), - "no-spaced-func": () => require("./no-spaced-func"), - "no-sparse-arrays": () => require("./no-sparse-arrays"), - "no-sync": () => require("./no-sync"), - "no-tabs": () => require("./no-tabs"), - "no-template-curly-in-string": () => require("./no-template-curly-in-string"), - "no-ternary": () => require("./no-ternary"), - "no-this-before-super": () => require("./no-this-before-super"), - "no-throw-literal": () => require("./no-throw-literal"), - "no-trailing-spaces": () => require("./no-trailing-spaces"), - "no-undef": () => require("./no-undef"), - "no-undef-init": () => require("./no-undef-init"), - "no-undefined": () => require("./no-undefined"), - "no-underscore-dangle": () => require("./no-underscore-dangle"), - "no-unexpected-multiline": () => require("./no-unexpected-multiline"), - "no-unmodified-loop-condition": () => require("./no-unmodified-loop-condition"), - "no-unneeded-ternary": () => require("./no-unneeded-ternary"), - "no-unreachable": () => require("./no-unreachable"), - "no-unreachable-loop": () => require("./no-unreachable-loop"), - "no-unsafe-finally": () => require("./no-unsafe-finally"), - "no-unsafe-negation": () => require("./no-unsafe-negation"), - "no-unsafe-optional-chaining": () => require("./no-unsafe-optional-chaining"), - "no-unused-expressions": () => require("./no-unused-expressions"), - "no-unused-labels": () => require("./no-unused-labels"), - "no-unused-private-class-members": () => require("./no-unused-private-class-members"), - "no-unused-vars": () => require("./no-unused-vars"), - "no-use-before-define": () => require("./no-use-before-define"), - "no-useless-assignment": () => require("./no-useless-assignment"), - "no-useless-backreference": () => require("./no-useless-backreference"), - "no-useless-call": () => require("./no-useless-call"), - "no-useless-catch": () => require("./no-useless-catch"), - "no-useless-computed-key": () => require("./no-useless-computed-key"), - "no-useless-concat": () => require("./no-useless-concat"), - "no-useless-constructor": () => require("./no-useless-constructor"), - "no-useless-escape": () => require("./no-useless-escape"), - "no-useless-rename": () => require("./no-useless-rename"), - "no-useless-return": () => require("./no-useless-return"), - "no-var": () => require("./no-var"), - "no-void": () => require("./no-void"), - "no-warning-comments": () => require("./no-warning-comments"), - "no-whitespace-before-property": () => require("./no-whitespace-before-property"), - "no-with": () => require("./no-with"), - "nonblock-statement-body-position": () => require("./nonblock-statement-body-position"), - "object-curly-newline": () => require("./object-curly-newline"), - "object-curly-spacing": () => require("./object-curly-spacing"), - "object-property-newline": () => require("./object-property-newline"), - "object-shorthand": () => require("./object-shorthand"), - "one-var": () => require("./one-var"), - "one-var-declaration-per-line": () => require("./one-var-declaration-per-line"), - "operator-assignment": () => require("./operator-assignment"), - "operator-linebreak": () => require("./operator-linebreak"), - "padded-blocks": () => require("./padded-blocks"), - "padding-line-between-statements": () => require("./padding-line-between-statements"), - "prefer-arrow-callback": () => require("./prefer-arrow-callback"), - "prefer-const": () => require("./prefer-const"), - "prefer-destructuring": () => require("./prefer-destructuring"), - "prefer-exponentiation-operator": () => require("./prefer-exponentiation-operator"), - "prefer-named-capture-group": () => require("./prefer-named-capture-group"), - "prefer-numeric-literals": () => require("./prefer-numeric-literals"), - "prefer-object-has-own": () => require("./prefer-object-has-own"), - "prefer-object-spread": () => require("./prefer-object-spread"), - "prefer-promise-reject-errors": () => require("./prefer-promise-reject-errors"), - "prefer-reflect": () => require("./prefer-reflect"), - "prefer-regex-literals": () => require("./prefer-regex-literals"), - "prefer-rest-params": () => require("./prefer-rest-params"), - "prefer-spread": () => require("./prefer-spread"), - "prefer-template": () => require("./prefer-template"), - "quote-props": () => require("./quote-props"), - quotes: () => require("./quotes"), - radix: () => require("./radix"), - "require-atomic-updates": () => require("./require-atomic-updates"), - "require-await": () => require("./require-await"), - "require-unicode-regexp": () => require("./require-unicode-regexp"), - "require-yield": () => require("./require-yield"), - "rest-spread-spacing": () => require("./rest-spread-spacing"), - semi: () => require("./semi"), - "semi-spacing": () => require("./semi-spacing"), - "semi-style": () => require("./semi-style"), - "sort-imports": () => require("./sort-imports"), - "sort-keys": () => require("./sort-keys"), - "sort-vars": () => require("./sort-vars"), - "space-before-blocks": () => require("./space-before-blocks"), - "space-before-function-paren": () => require("./space-before-function-paren"), - "space-in-parens": () => require("./space-in-parens"), - "space-infix-ops": () => require("./space-infix-ops"), - "space-unary-ops": () => require("./space-unary-ops"), - "spaced-comment": () => require("./spaced-comment"), - strict: () => require("./strict"), - "switch-colon-spacing": () => require("./switch-colon-spacing"), - "symbol-description": () => require("./symbol-description"), - "template-curly-spacing": () => require("./template-curly-spacing"), - "template-tag-spacing": () => require("./template-tag-spacing"), - "unicode-bom": () => require("./unicode-bom"), - "use-isnan": () => require("./use-isnan"), - "valid-typeof": () => require("./valid-typeof"), - "vars-on-top": () => require("./vars-on-top"), - "wrap-iife": () => require("./wrap-iife"), - "wrap-regex": () => require("./wrap-regex"), - "yield-star-spacing": () => require("./yield-star-spacing"), - yoda: () => require("./yoda") -})); diff --git a/graphql/node_modules/eslint/lib/rules/init-declarations.js b/graphql/node_modules/eslint/lib/rules/init-declarations.js deleted file mode 100644 index 3abe107f..00000000 --- a/graphql/node_modules/eslint/lib/rules/init-declarations.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @fileoverview A rule to control the style of variable initializations. - * @author Colin Ihrig - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given node is a for loop. - * @param {ASTNode} block A node to check. - * @returns {boolean} `true` when the node is a for loop. - */ -function isForLoop(block) { - return block.type === "ForInStatement" || - block.type === "ForOfStatement" || - block.type === "ForStatement"; -} - -/** - * Checks whether or not a given declarator node has its initializer. - * @param {ASTNode} node A declarator node to check. - * @returns {boolean} `true` when the node has its initializer. - */ -function isInitialized(node) { - const declaration = node.parent; - const block = declaration.parent; - - if (isForLoop(block)) { - if (block.type === "ForStatement") { - return block.init === declaration; - } - return block.left === declaration; - } - return Boolean(node.init); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow initialization in variable declarations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/init-declarations" - }, - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["always"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["never"] - }, - { - type: "object", - properties: { - ignoreForLoopInit: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - messages: { - initialized: "Variable '{{idName}}' should be initialized on declaration.", - notInitialized: "Variable '{{idName}}' should not be initialized on declaration." - } - }, - - create(context) { - - const MODE_ALWAYS = "always", - MODE_NEVER = "never"; - - const mode = context.options[0] || MODE_ALWAYS; - const params = context.options[1] || {}; - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - "VariableDeclaration:exit"(node) { - - const kind = node.kind, - declarations = node.declarations; - - for (let i = 0; i < declarations.length; ++i) { - const declaration = declarations[i], - id = declaration.id, - initialized = isInitialized(declaration), - isIgnoredForLoop = params.ignoreForLoopInit && isForLoop(node.parent); - let messageId = ""; - - if (mode === MODE_ALWAYS && !initialized) { - messageId = "initialized"; - } else if (mode === MODE_NEVER && kind !== "const" && initialized && !isIgnoredForLoop) { - messageId = "notInitialized"; - } - - if (id.type === "Identifier" && messageId) { - context.report({ - node: declaration, - messageId, - data: { - idName: id.name - } - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/jsx-quotes.js b/graphql/node_modules/eslint/lib/rules/jsx-quotes.js deleted file mode 100644 index 3dcd5fa9..00000000 --- a/graphql/node_modules/eslint/lib/rules/jsx-quotes.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @fileoverview A rule to ensure consistent quotes used in jsx syntax. - * @author Mathias Schreck - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const QUOTE_SETTINGS = { - "prefer-double": { - quote: "\"", - description: "singlequote", - convert(str) { - return str.replace(/'/gu, "\""); - } - }, - "prefer-single": { - quote: "'", - description: "doublequote", - convert(str) { - return str.replace(/"/gu, "'"); - } - } -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce the consistent use of either double or single quotes in JSX attributes", - recommended: false, - url: "https://eslint.org/docs/latest/rules/jsx-quotes" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["prefer-single", "prefer-double"] - } - ], - messages: { - unexpected: "Unexpected usage of {{description}}." - } - }, - - create(context) { - const quoteOption = context.options[0] || "prefer-double", - setting = QUOTE_SETTINGS[quoteOption]; - - /** - * Checks if the given string literal node uses the expected quotes - * @param {ASTNode} node A string literal node. - * @returns {boolean} Whether or not the string literal used the expected quotes. - * @public - */ - function usesExpectedQuotes(node) { - return node.value.includes(setting.quote) || astUtils.isSurroundedBy(node.raw, setting.quote); - } - - return { - JSXAttribute(node) { - const attributeValue = node.value; - - if (attributeValue && astUtils.isStringLiteral(attributeValue) && !usesExpectedQuotes(attributeValue)) { - context.report({ - node: attributeValue, - messageId: "unexpected", - data: { - description: setting.description - }, - fix(fixer) { - return fixer.replaceText(attributeValue, setting.convert(attributeValue.raw)); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/key-spacing.js b/graphql/node_modules/eslint/lib/rules/key-spacing.js deleted file mode 100644 index aa8fd37b..00000000 --- a/graphql/node_modules/eslint/lib/rules/key-spacing.js +++ /dev/null @@ -1,687 +0,0 @@ -/** - * @fileoverview Rule to specify spacing of object literal keys and values - * @author Brandon Mills - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { getGraphemeCount } = require("../shared/string-utils"); - -/** - * Checks whether a string contains a line terminator as defined in - * http://www.ecma-international.org/ecma-262/5.1/#sec-7.3 - * @param {string} str String to test. - * @returns {boolean} True if str contains a line terminator. - */ -function containsLineTerminator(str) { - return astUtils.LINEBREAK_MATCHER.test(str); -} - -/** - * Gets the last element of an array. - * @param {Array} arr An array. - * @returns {any} Last element of arr. - */ -function last(arr) { - return arr.at(-1); -} - -/** - * Checks whether a node is contained on a single line. - * @param {ASTNode} node AST Node being evaluated. - * @returns {boolean} True if the node is a single line. - */ -function isSingleLine(node) { - return (node.loc.end.line === node.loc.start.line); -} - -/** - * Checks whether the properties on a single line. - * @param {ASTNode[]} properties List of Property AST nodes. - * @returns {boolean} True if all properties is on a single line. - */ -function isSingleLineProperties(properties) { - const [firstProp] = properties, - lastProp = last(properties); - - return firstProp.loc.start.line === lastProp.loc.end.line; -} - -/** - * Initializes a single option property from the configuration with defaults for undefined values - * @param {Object} toOptions Object to be initialized - * @param {Object} fromOptions Object to be initialized from - * @returns {Object} The object with correctly initialized options and values - */ -function initOptionProperty(toOptions, fromOptions) { - toOptions.mode = fromOptions.mode || "strict"; - - // Set value of beforeColon - if (typeof fromOptions.beforeColon !== "undefined") { - toOptions.beforeColon = +fromOptions.beforeColon; - } else { - toOptions.beforeColon = 0; - } - - // Set value of afterColon - if (typeof fromOptions.afterColon !== "undefined") { - toOptions.afterColon = +fromOptions.afterColon; - } else { - toOptions.afterColon = 1; - } - - // Set align if exists - if (typeof fromOptions.align !== "undefined") { - if (typeof fromOptions.align === "object") { - toOptions.align = fromOptions.align; - } else { // "string" - toOptions.align = { - on: fromOptions.align, - mode: toOptions.mode, - beforeColon: toOptions.beforeColon, - afterColon: toOptions.afterColon - }; - } - } - - return toOptions; -} - -/** - * Initializes all the option values (singleLine, multiLine and align) from the configuration with defaults for undefined values - * @param {Object} toOptions Object to be initialized - * @param {Object} fromOptions Object to be initialized from - * @returns {Object} The object with correctly initialized options and values - */ -function initOptions(toOptions, fromOptions) { - if (typeof fromOptions.align === "object") { - - // Initialize the alignment configuration - toOptions.align = initOptionProperty({}, fromOptions.align); - toOptions.align.on = fromOptions.align.on || "colon"; - toOptions.align.mode = fromOptions.align.mode || "strict"; - - toOptions.multiLine = initOptionProperty({}, (fromOptions.multiLine || fromOptions)); - toOptions.singleLine = initOptionProperty({}, (fromOptions.singleLine || fromOptions)); - - } else { // string or undefined - toOptions.multiLine = initOptionProperty({}, (fromOptions.multiLine || fromOptions)); - toOptions.singleLine = initOptionProperty({}, (fromOptions.singleLine || fromOptions)); - - // If alignment options are defined in multiLine, pull them out into the general align configuration - if (toOptions.multiLine.align) { - toOptions.align = { - on: toOptions.multiLine.align.on, - mode: toOptions.multiLine.align.mode || toOptions.multiLine.mode, - beforeColon: toOptions.multiLine.align.beforeColon, - afterColon: toOptions.multiLine.align.afterColon - }; - } - } - - return toOptions; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing between keys and values in object literal properties", - recommended: false, - url: "https://eslint.org/docs/latest/rules/key-spacing" - }, - - fixable: "whitespace", - - schema: [{ - anyOf: [ - { - type: "object", - properties: { - align: { - anyOf: [ - { - enum: ["colon", "value"] - }, - { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - on: { - enum: ["colon", "value"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - }, - mode: { - enum: ["strict", "minimum"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - singleLine: { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - }, - multiLine: { - type: "object", - properties: { - align: { - anyOf: [ - { - enum: ["colon", "value"] - }, - { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - on: { - enum: ["colon", "value"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - }, - mode: { - enum: ["strict", "minimum"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - singleLine: { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - }, - multiLine: { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - }, - align: { - type: "object", - properties: { - mode: { - enum: ["strict", "minimum"] - }, - on: { - enum: ["colon", "value"] - }, - beforeColon: { - type: "boolean" - }, - afterColon: { - type: "boolean" - } - }, - additionalProperties: false - } - }, - additionalProperties: false - } - ] - }], - messages: { - extraKey: "Extra space after {{computed}}key '{{key}}'.", - extraValue: "Extra space before value for {{computed}}key '{{key}}'.", - missingKey: "Missing space after {{computed}}key '{{key}}'.", - missingValue: "Missing space before value for {{computed}}key '{{key}}'." - } - }, - - create(context) { - - /** - * OPTIONS - * "key-spacing": [2, { - * beforeColon: false, - * afterColon: true, - * align: "colon" // Optional, or "value" - * } - */ - const options = context.options[0] || {}, - ruleOptions = initOptions({}, options), - multiLineOptions = ruleOptions.multiLine, - singleLineOptions = ruleOptions.singleLine, - alignmentOptions = ruleOptions.align || null; - - const sourceCode = context.sourceCode; - - /** - * Determines if the given property is key-value property. - * @param {ASTNode} property Property node to check. - * @returns {boolean} Whether the property is a key-value property. - */ - function isKeyValueProperty(property) { - return !( - (property.method || - property.shorthand || - property.kind !== "init" || property.type !== "Property") // Could be "ExperimentalSpreadProperty" or "SpreadElement" - ); - } - - /** - * Starting from the given node (a property.key node here) looks forward - * until it finds the colon punctuator and returns it. - * @param {ASTNode} node The node to start looking from. - * @returns {ASTNode} The colon punctuator. - */ - function getNextColon(node) { - return sourceCode.getTokenAfter(node, astUtils.isColonToken); - } - - /** - * Starting from the given node (a property.key node here) looks forward - * until it finds the last token before a colon punctuator and returns it. - * @param {ASTNode} node The node to start looking from. - * @returns {ASTNode} The last token before a colon punctuator. - */ - function getLastTokenBeforeColon(node) { - const colonToken = getNextColon(node); - - return sourceCode.getTokenBefore(colonToken); - } - - /** - * Starting from the given node (a property.key node here) looks forward - * until it finds the first token after a colon punctuator and returns it. - * @param {ASTNode} node The node to start looking from. - * @returns {ASTNode} The first token after a colon punctuator. - */ - function getFirstTokenAfterColon(node) { - const colonToken = getNextColon(node); - - return sourceCode.getTokenAfter(colonToken); - } - - /** - * Checks whether a property is a member of the property group it follows. - * @param {ASTNode} lastMember The last Property known to be in the group. - * @param {ASTNode} candidate The next Property that might be in the group. - * @returns {boolean} True if the candidate property is part of the group. - */ - function continuesPropertyGroup(lastMember, candidate) { - const groupEndLine = lastMember.loc.start.line, - candidateValueStartLine = (isKeyValueProperty(candidate) ? getFirstTokenAfterColon(candidate.key) : candidate).loc.start.line; - - if (candidateValueStartLine - groupEndLine <= 1) { - return true; - } - - /* - * Check that the first comment is adjacent to the end of the group, the - * last comment is adjacent to the candidate property, and that successive - * comments are adjacent to each other. - */ - const leadingComments = sourceCode.getCommentsBefore(candidate); - - if ( - leadingComments.length && - leadingComments[0].loc.start.line - groupEndLine <= 1 && - candidateValueStartLine - last(leadingComments).loc.end.line <= 1 - ) { - for (let i = 1; i < leadingComments.length; i++) { - if (leadingComments[i].loc.start.line - leadingComments[i - 1].loc.end.line > 1) { - return false; - } - } - return true; - } - - return false; - } - - /** - * Gets an object literal property's key as the identifier name or string value. - * @param {ASTNode} property Property node whose key to retrieve. - * @returns {string} The property's key. - */ - function getKey(property) { - const key = property.key; - - if (property.computed) { - return sourceCode.getText().slice(key.range[0], key.range[1]); - } - return astUtils.getStaticPropertyName(property); - } - - /** - * Reports an appropriately-formatted error if spacing is incorrect on one - * side of the colon. - * @param {ASTNode} property Key-value pair in an object literal. - * @param {string} side Side being verified - either "key" or "value". - * @param {string} whitespace Actual whitespace string. - * @param {int} expected Expected whitespace length. - * @param {string} mode Value of the mode as "strict" or "minimum" - * @returns {void} - */ - function report(property, side, whitespace, expected, mode) { - const diff = whitespace.length - expected; - - if (( - diff && mode === "strict" || - diff < 0 && mode === "minimum" || - diff > 0 && !expected && mode === "minimum") && - !(expected && containsLineTerminator(whitespace)) - ) { - const nextColon = getNextColon(property.key), - tokenBeforeColon = sourceCode.getTokenBefore(nextColon, { includeComments: true }), - tokenAfterColon = sourceCode.getTokenAfter(nextColon, { includeComments: true }), - isKeySide = side === "key", - isExtra = diff > 0, - diffAbs = Math.abs(diff), - spaces = Array(diffAbs + 1).join(" "); - - const locStart = isKeySide ? tokenBeforeColon.loc.end : nextColon.loc.start; - const locEnd = isKeySide ? nextColon.loc.start : tokenAfterColon.loc.start; - const missingLoc = isKeySide ? tokenBeforeColon.loc : tokenAfterColon.loc; - const loc = isExtra ? { start: locStart, end: locEnd } : missingLoc; - - let fix; - - if (isExtra) { - let range; - - // Remove whitespace - if (isKeySide) { - range = [tokenBeforeColon.range[1], tokenBeforeColon.range[1] + diffAbs]; - } else { - range = [tokenAfterColon.range[0] - diffAbs, tokenAfterColon.range[0]]; - } - fix = function(fixer) { - return fixer.removeRange(range); - }; - } else { - - // Add whitespace - if (isKeySide) { - fix = function(fixer) { - return fixer.insertTextAfter(tokenBeforeColon, spaces); - }; - } else { - fix = function(fixer) { - return fixer.insertTextBefore(tokenAfterColon, spaces); - }; - } - } - - let messageId; - - if (isExtra) { - messageId = side === "key" ? "extraKey" : "extraValue"; - } else { - messageId = side === "key" ? "missingKey" : "missingValue"; - } - - context.report({ - node: property[side], - loc, - messageId, - data: { - computed: property.computed ? "computed " : "", - key: getKey(property) - }, - fix - }); - } - } - - /** - * Gets the number of characters in a key, including quotes around string - * keys and braces around computed property keys. - * @param {ASTNode} property Property of on object literal. - * @returns {int} Width of the key. - */ - function getKeyWidth(property) { - const startToken = sourceCode.getFirstToken(property); - const endToken = getLastTokenBeforeColon(property.key); - - return getGraphemeCount(sourceCode.getText().slice(startToken.range[0], endToken.range[1])); - } - - /** - * Gets the whitespace around the colon in an object literal property. - * @param {ASTNode} property Property node from an object literal. - * @returns {Object} Whitespace before and after the property's colon. - */ - function getPropertyWhitespace(property) { - const whitespace = /(\s*):(\s*)/u.exec(sourceCode.getText().slice( - property.key.range[1], property.value.range[0] - )); - - if (whitespace) { - return { - beforeColon: whitespace[1], - afterColon: whitespace[2] - }; - } - return null; - } - - /** - * Creates groups of properties. - * @param {ASTNode} node ObjectExpression node being evaluated. - * @returns {Array} Groups of property AST node lists. - */ - function createGroups(node) { - if (node.properties.length === 1) { - return [node.properties]; - } - - return node.properties.reduce((groups, property) => { - const currentGroup = last(groups), - prev = last(currentGroup); - - if (!prev || continuesPropertyGroup(prev, property)) { - currentGroup.push(property); - } else { - groups.push([property]); - } - - return groups; - }, [ - [] - ]); - } - - /** - * Verifies correct vertical alignment of a group of properties. - * @param {ASTNode[]} properties List of Property AST nodes. - * @returns {void} - */ - function verifyGroupAlignment(properties) { - const length = properties.length, - widths = properties.map(getKeyWidth), // Width of keys, including quotes - align = alignmentOptions.on; // "value" or "colon" - let targetWidth = Math.max(...widths), - beforeColon, afterColon, mode; - - if (alignmentOptions && length > 1) { // When aligning values within a group, use the alignment configuration. - beforeColon = alignmentOptions.beforeColon; - afterColon = alignmentOptions.afterColon; - mode = alignmentOptions.mode; - } else { - beforeColon = multiLineOptions.beforeColon; - afterColon = multiLineOptions.afterColon; - mode = alignmentOptions.mode; - } - - // Conditionally include one space before or after colon - targetWidth += (align === "colon" ? beforeColon : afterColon); - - for (let i = 0; i < length; i++) { - const property = properties[i]; - const whitespace = getPropertyWhitespace(property); - - if (whitespace) { // Object literal getters/setters lack a colon - const width = widths[i]; - - if (align === "value") { - report(property, "key", whitespace.beforeColon, beforeColon, mode); - report(property, "value", whitespace.afterColon, targetWidth - width, mode); - } else { // align = "colon" - report(property, "key", whitespace.beforeColon, targetWidth - width, mode); - report(property, "value", whitespace.afterColon, afterColon, mode); - } - } - } - } - - /** - * Verifies spacing of property conforms to specified options. - * @param {ASTNode} node Property node being evaluated. - * @param {Object} lineOptions Configured singleLine or multiLine options - * @returns {void} - */ - function verifySpacing(node, lineOptions) { - const actual = getPropertyWhitespace(node); - - if (actual) { // Object literal getters/setters lack colons - report(node, "key", actual.beforeColon, lineOptions.beforeColon, lineOptions.mode); - report(node, "value", actual.afterColon, lineOptions.afterColon, lineOptions.mode); - } - } - - /** - * Verifies spacing of each property in a list. - * @param {ASTNode[]} properties List of Property AST nodes. - * @param {Object} lineOptions Configured singleLine or multiLine options - * @returns {void} - */ - function verifyListSpacing(properties, lineOptions) { - const length = properties.length; - - for (let i = 0; i < length; i++) { - verifySpacing(properties[i], lineOptions); - } - } - - /** - * Verifies vertical alignment, taking into account groups of properties. - * @param {ASTNode} node ObjectExpression node being evaluated. - * @returns {void} - */ - function verifyAlignment(node) { - createGroups(node).forEach(group => { - const properties = group.filter(isKeyValueProperty); - - if (properties.length > 0 && isSingleLineProperties(properties)) { - verifyListSpacing(properties, multiLineOptions); - } else { - verifyGroupAlignment(properties); - } - }); - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - if (alignmentOptions) { // Verify vertical alignment - - return { - ObjectExpression(node) { - if (isSingleLine(node)) { - verifyListSpacing(node.properties.filter(isKeyValueProperty), singleLineOptions); - } else { - verifyAlignment(node); - } - } - }; - - } - - // Obey beforeColon and afterColon in each property as configured - return { - Property(node) { - verifySpacing(node, isSingleLine(node.parent) ? singleLineOptions : multiLineOptions); - } - }; - - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/keyword-spacing.js b/graphql/node_modules/eslint/lib/rules/keyword-spacing.js deleted file mode 100644 index 9d18441e..00000000 --- a/graphql/node_modules/eslint/lib/rules/keyword-spacing.js +++ /dev/null @@ -1,640 +0,0 @@ -/** - * @fileoverview Rule to enforce spacing before and after keywords. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"), - keywords = require("./utils/keywords"); - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const PREV_TOKEN = /^[)\]}>]$/u; -const NEXT_TOKEN = /^(?:[([{<~!]|\+\+?|--?)$/u; -const PREV_TOKEN_M = /^[)\]}>*]$/u; -const NEXT_TOKEN_M = /^[{*]$/u; -const TEMPLATE_OPEN_PAREN = /\$\{$/u; -const TEMPLATE_CLOSE_PAREN = /^\}/u; -const CHECK_TYPE = /^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u; -const KEYS = keywords.concat(["as", "async", "await", "from", "get", "let", "of", "set", "yield"]); - -// check duplications. -(function() { - KEYS.sort(); - for (let i = 1; i < KEYS.length; ++i) { - if (KEYS[i] === KEYS[i - 1]) { - throw new Error(`Duplication was found in the keyword list: ${KEYS[i]}`); - } - } -}()); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given token is a "Template" token ends with "${". - * @param {Token} token A token to check. - * @returns {boolean} `true` if the token is a "Template" token ends with "${". - */ -function isOpenParenOfTemplate(token) { - return token.type === "Template" && TEMPLATE_OPEN_PAREN.test(token.value); -} - -/** - * Checks whether or not a given token is a "Template" token starts with "}". - * @param {Token} token A token to check. - * @returns {boolean} `true` if the token is a "Template" token starts with "}". - */ -function isCloseParenOfTemplate(token) { - return token.type === "Template" && TEMPLATE_CLOSE_PAREN.test(token.value); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before and after keywords", - recommended: false, - url: "https://eslint.org/docs/latest/rules/keyword-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - before: { type: "boolean", default: true }, - after: { type: "boolean", default: true }, - overrides: { - type: "object", - properties: KEYS.reduce((retv, key) => { - retv[key] = { - type: "object", - properties: { - before: { type: "boolean" }, - after: { type: "boolean" } - }, - additionalProperties: false - }; - return retv; - }, {}), - additionalProperties: false - } - }, - additionalProperties: false - } - ], - messages: { - expectedBefore: "Expected space(s) before \"{{value}}\".", - expectedAfter: "Expected space(s) after \"{{value}}\".", - unexpectedBefore: "Unexpected space(s) before \"{{value}}\".", - unexpectedAfter: "Unexpected space(s) after \"{{value}}\"." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const tokensToIgnore = new WeakSet(); - - /** - * Reports a given token if there are not space(s) before the token. - * @param {Token} token A token to report. - * @param {RegExp} pattern A pattern of the previous token to check. - * @returns {void} - */ - function expectSpaceBefore(token, pattern) { - const prevToken = sourceCode.getTokenBefore(token); - - if (prevToken && - (CHECK_TYPE.test(prevToken.type) || pattern.test(prevToken.value)) && - !isOpenParenOfTemplate(prevToken) && - !tokensToIgnore.has(prevToken) && - astUtils.isTokenOnSameLine(prevToken, token) && - !sourceCode.isSpaceBetweenTokens(prevToken, token) - ) { - context.report({ - loc: token.loc, - messageId: "expectedBefore", - data: token, - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - } - - /** - * Reports a given token if there are space(s) before the token. - * @param {Token} token A token to report. - * @param {RegExp} pattern A pattern of the previous token to check. - * @returns {void} - */ - function unexpectSpaceBefore(token, pattern) { - const prevToken = sourceCode.getTokenBefore(token); - - if (prevToken && - (CHECK_TYPE.test(prevToken.type) || pattern.test(prevToken.value)) && - !isOpenParenOfTemplate(prevToken) && - !tokensToIgnore.has(prevToken) && - astUtils.isTokenOnSameLine(prevToken, token) && - sourceCode.isSpaceBetweenTokens(prevToken, token) - ) { - context.report({ - loc: { start: prevToken.loc.end, end: token.loc.start }, - messageId: "unexpectedBefore", - data: token, - fix(fixer) { - return fixer.removeRange([prevToken.range[1], token.range[0]]); - } - }); - } - } - - /** - * Reports a given token if there are not space(s) after the token. - * @param {Token} token A token to report. - * @param {RegExp} pattern A pattern of the next token to check. - * @returns {void} - */ - function expectSpaceAfter(token, pattern) { - const nextToken = sourceCode.getTokenAfter(token); - - if (nextToken && - (CHECK_TYPE.test(nextToken.type) || pattern.test(nextToken.value)) && - !isCloseParenOfTemplate(nextToken) && - !tokensToIgnore.has(nextToken) && - astUtils.isTokenOnSameLine(token, nextToken) && - !sourceCode.isSpaceBetweenTokens(token, nextToken) - ) { - context.report({ - loc: token.loc, - messageId: "expectedAfter", - data: token, - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - } - - /** - * Reports a given token if there are space(s) after the token. - * @param {Token} token A token to report. - * @param {RegExp} pattern A pattern of the next token to check. - * @returns {void} - */ - function unexpectSpaceAfter(token, pattern) { - const nextToken = sourceCode.getTokenAfter(token); - - if (nextToken && - (CHECK_TYPE.test(nextToken.type) || pattern.test(nextToken.value)) && - !isCloseParenOfTemplate(nextToken) && - !tokensToIgnore.has(nextToken) && - astUtils.isTokenOnSameLine(token, nextToken) && - sourceCode.isSpaceBetweenTokens(token, nextToken) - ) { - - context.report({ - loc: { start: token.loc.end, end: nextToken.loc.start }, - messageId: "unexpectedAfter", - data: token, - fix(fixer) { - return fixer.removeRange([token.range[1], nextToken.range[0]]); - } - }); - } - } - - /** - * Parses the option object and determines check methods for each keyword. - * @param {Object|undefined} options The option object to parse. - * @returns {Object} - Normalized option object. - * Keys are keywords (there are for every keyword). - * Values are instances of `{"before": function, "after": function}`. - */ - function parseOptions(options = {}) { - const before = options.before !== false; - const after = options.after !== false; - const defaultValue = { - before: before ? expectSpaceBefore : unexpectSpaceBefore, - after: after ? expectSpaceAfter : unexpectSpaceAfter - }; - const overrides = (options && options.overrides) || {}; - const retv = Object.create(null); - - for (let i = 0; i < KEYS.length; ++i) { - const key = KEYS[i]; - const override = overrides[key]; - - if (override) { - const thisBefore = ("before" in override) ? override.before : before; - const thisAfter = ("after" in override) ? override.after : after; - - retv[key] = { - before: thisBefore ? expectSpaceBefore : unexpectSpaceBefore, - after: thisAfter ? expectSpaceAfter : unexpectSpaceAfter - }; - } else { - retv[key] = defaultValue; - } - } - - return retv; - } - - const checkMethodMap = parseOptions(context.options[0]); - - /** - * Reports a given token if usage of spacing followed by the token is - * invalid. - * @param {Token} token A token to report. - * @param {RegExp} [pattern] Optional. A pattern of the previous - * token to check. - * @returns {void} - */ - function checkSpacingBefore(token, pattern) { - checkMethodMap[token.value].before(token, pattern || PREV_TOKEN); - } - - /** - * Reports a given token if usage of spacing preceded by the token is - * invalid. - * @param {Token} token A token to report. - * @param {RegExp} [pattern] Optional. A pattern of the next - * token to check. - * @returns {void} - */ - function checkSpacingAfter(token, pattern) { - checkMethodMap[token.value].after(token, pattern || NEXT_TOKEN); - } - - /** - * Reports a given token if usage of spacing around the token is invalid. - * @param {Token} token A token to report. - * @returns {void} - */ - function checkSpacingAround(token) { - checkSpacingBefore(token); - checkSpacingAfter(token); - } - - /** - * Reports the first token of a given node if the first token is a keyword - * and usage of spacing around the token is invalid. - * @param {ASTNode|null} node A node to report. - * @returns {void} - */ - function checkSpacingAroundFirstToken(node) { - const firstToken = node && sourceCode.getFirstToken(node); - - if (firstToken && firstToken.type === "Keyword") { - checkSpacingAround(firstToken); - } - } - - /** - * Reports the first token of a given node if the first token is a keyword - * and usage of spacing followed by the token is invalid. - * - * This is used for unary operators (e.g. `typeof`), `function`, and `super`. - * Other rules are handling usage of spacing preceded by those keywords. - * @param {ASTNode|null} node A node to report. - * @returns {void} - */ - function checkSpacingBeforeFirstToken(node) { - const firstToken = node && sourceCode.getFirstToken(node); - - if (firstToken && firstToken.type === "Keyword") { - checkSpacingBefore(firstToken); - } - } - - /** - * Reports the previous token of a given node if the token is a keyword and - * usage of spacing around the token is invalid. - * @param {ASTNode|null} node A node to report. - * @returns {void} - */ - function checkSpacingAroundTokenBefore(node) { - if (node) { - const token = sourceCode.getTokenBefore(node, astUtils.isKeywordToken); - - checkSpacingAround(token); - } - } - - /** - * Reports `async` or `function` keywords of a given node if usage of - * spacing around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForFunction(node) { - const firstToken = node && sourceCode.getFirstToken(node); - - if (firstToken && - ((firstToken.type === "Keyword" && firstToken.value === "function") || - firstToken.value === "async") - ) { - checkSpacingBefore(firstToken); - } - } - - /** - * Reports `class` and `extends` keywords of a given node if usage of - * spacing around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForClass(node) { - checkSpacingAroundFirstToken(node); - checkSpacingAroundTokenBefore(node.superClass); - } - - /** - * Reports `if` and `else` keywords of a given node if usage of spacing - * around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForIfStatement(node) { - checkSpacingAroundFirstToken(node); - checkSpacingAroundTokenBefore(node.alternate); - } - - /** - * Reports `try`, `catch`, and `finally` keywords of a given node if usage - * of spacing around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForTryStatement(node) { - checkSpacingAroundFirstToken(node); - checkSpacingAroundFirstToken(node.handler); - checkSpacingAroundTokenBefore(node.finalizer); - } - - /** - * Reports `do` and `while` keywords of a given node if usage of spacing - * around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForDoWhileStatement(node) { - checkSpacingAroundFirstToken(node); - checkSpacingAroundTokenBefore(node.test); - } - - /** - * Reports `for` and `in` keywords of a given node if usage of spacing - * around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForForInStatement(node) { - checkSpacingAroundFirstToken(node); - - const inToken = sourceCode.getTokenBefore(node.right, astUtils.isNotOpeningParenToken); - const previousToken = sourceCode.getTokenBefore(inToken); - - if (previousToken.type !== "PrivateIdentifier") { - checkSpacingBefore(inToken); - } - - checkSpacingAfter(inToken); - } - - /** - * Reports `for` and `of` keywords of a given node if usage of spacing - * around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForForOfStatement(node) { - if (node.await) { - checkSpacingBefore(sourceCode.getFirstToken(node, 0)); - checkSpacingAfter(sourceCode.getFirstToken(node, 1)); - } else { - checkSpacingAroundFirstToken(node); - } - - const ofToken = sourceCode.getTokenBefore(node.right, astUtils.isNotOpeningParenToken); - const previousToken = sourceCode.getTokenBefore(ofToken); - - if (previousToken.type !== "PrivateIdentifier") { - checkSpacingBefore(ofToken); - } - - checkSpacingAfter(ofToken); - } - - /** - * Reports `import`, `export`, `as`, and `from` keywords of a given node if - * usage of spacing around those keywords is invalid. - * - * This rule handles the `*` token in module declarations. - * - * import*as A from "./a"; /*error Expected space(s) after "import". - * error Expected space(s) before "as". - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForModuleDeclaration(node) { - const firstToken = sourceCode.getFirstToken(node); - - checkSpacingBefore(firstToken, PREV_TOKEN_M); - checkSpacingAfter(firstToken, NEXT_TOKEN_M); - - if (node.type === "ExportDefaultDeclaration") { - checkSpacingAround(sourceCode.getTokenAfter(firstToken)); - } - - if (node.type === "ExportAllDeclaration" && node.exported) { - const asToken = sourceCode.getTokenBefore(node.exported); - - checkSpacingBefore(asToken, PREV_TOKEN_M); - checkSpacingAfter(asToken, NEXT_TOKEN_M); - } - - if (node.source) { - const fromToken = sourceCode.getTokenBefore(node.source); - - checkSpacingBefore(fromToken, PREV_TOKEN_M); - checkSpacingAfter(fromToken, NEXT_TOKEN_M); - } - } - - /** - * Reports `as` keyword of a given node if usage of spacing around this - * keyword is invalid. - * @param {ASTNode} node An `ImportSpecifier` node to check. - * @returns {void} - */ - function checkSpacingForImportSpecifier(node) { - if (node.imported.range[0] !== node.local.range[0]) { - const asToken = sourceCode.getTokenBefore(node.local); - - checkSpacingBefore(asToken, PREV_TOKEN_M); - } - } - - /** - * Reports `as` keyword of a given node if usage of spacing around this - * keyword is invalid. - * @param {ASTNode} node An `ExportSpecifier` node to check. - * @returns {void} - */ - function checkSpacingForExportSpecifier(node) { - if (node.local.range[0] !== node.exported.range[0]) { - const asToken = sourceCode.getTokenBefore(node.exported); - - checkSpacingBefore(asToken, PREV_TOKEN_M); - checkSpacingAfter(asToken, NEXT_TOKEN_M); - } - } - - /** - * Reports `as` keyword of a given node if usage of spacing around this - * keyword is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForImportNamespaceSpecifier(node) { - const asToken = sourceCode.getFirstToken(node, 1); - - checkSpacingBefore(asToken, PREV_TOKEN_M); - } - - /** - * Reports `static`, `get`, and `set` keywords of a given node if usage of - * spacing around those keywords is invalid. - * @param {ASTNode} node A node to report. - * @throws {Error} If unable to find token get, set, or async beside method name. - * @returns {void} - */ - function checkSpacingForProperty(node) { - if (node.static) { - checkSpacingAroundFirstToken(node); - } - if (node.kind === "get" || - node.kind === "set" || - ( - (node.method || node.type === "MethodDefinition") && - node.value.async - ) - ) { - const token = sourceCode.getTokenBefore( - node.key, - tok => { - switch (tok.value) { - case "get": - case "set": - case "async": - return true; - default: - return false; - } - } - ); - - if (!token) { - throw new Error("Failed to find token get, set, or async beside method name"); - } - - - checkSpacingAround(token); - } - } - - /** - * Reports `await` keyword of a given node if usage of spacing before - * this keyword is invalid. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function checkSpacingForAwaitExpression(node) { - checkSpacingBefore(sourceCode.getFirstToken(node)); - } - - return { - - // Statements - DebuggerStatement: checkSpacingAroundFirstToken, - WithStatement: checkSpacingAroundFirstToken, - - // Statements - Control flow - BreakStatement: checkSpacingAroundFirstToken, - ContinueStatement: checkSpacingAroundFirstToken, - ReturnStatement: checkSpacingAroundFirstToken, - ThrowStatement: checkSpacingAroundFirstToken, - TryStatement: checkSpacingForTryStatement, - - // Statements - Choice - IfStatement: checkSpacingForIfStatement, - SwitchStatement: checkSpacingAroundFirstToken, - SwitchCase: checkSpacingAroundFirstToken, - - // Statements - Loops - DoWhileStatement: checkSpacingForDoWhileStatement, - ForInStatement: checkSpacingForForInStatement, - ForOfStatement: checkSpacingForForOfStatement, - ForStatement: checkSpacingAroundFirstToken, - WhileStatement: checkSpacingAroundFirstToken, - - // Statements - Declarations - ClassDeclaration: checkSpacingForClass, - ExportNamedDeclaration: checkSpacingForModuleDeclaration, - ExportDefaultDeclaration: checkSpacingForModuleDeclaration, - ExportAllDeclaration: checkSpacingForModuleDeclaration, - FunctionDeclaration: checkSpacingForFunction, - ImportDeclaration: checkSpacingForModuleDeclaration, - VariableDeclaration: checkSpacingAroundFirstToken, - - // Expressions - ArrowFunctionExpression: checkSpacingForFunction, - AwaitExpression: checkSpacingForAwaitExpression, - ClassExpression: checkSpacingForClass, - FunctionExpression: checkSpacingForFunction, - NewExpression: checkSpacingBeforeFirstToken, - Super: checkSpacingBeforeFirstToken, - ThisExpression: checkSpacingBeforeFirstToken, - UnaryExpression: checkSpacingBeforeFirstToken, - YieldExpression: checkSpacingBeforeFirstToken, - - // Others - ImportSpecifier: checkSpacingForImportSpecifier, - ExportSpecifier: checkSpacingForExportSpecifier, - ImportNamespaceSpecifier: checkSpacingForImportNamespaceSpecifier, - MethodDefinition: checkSpacingForProperty, - PropertyDefinition: checkSpacingForProperty, - StaticBlock: checkSpacingAroundFirstToken, - Property: checkSpacingForProperty, - - // To avoid conflicts with `space-infix-ops`, e.g. `a > this.b` - "BinaryExpression[operator='>']"(node) { - const operatorToken = sourceCode.getTokenBefore(node.right, astUtils.isNotOpeningParenToken); - - tokensToIgnore.add(operatorToken); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/line-comment-position.js b/graphql/node_modules/eslint/lib/rules/line-comment-position.js deleted file mode 100644 index e7a7788c..00000000 --- a/graphql/node_modules/eslint/lib/rules/line-comment-position.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @fileoverview Rule to enforce the position of line comments - * @author Alberto Rodríguez - * @deprecated in ESLint v9.3.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce position of line comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/line-comment-position" - }, - - schema: [ - { - oneOf: [ - { - enum: ["above", "beside"] - }, - { - type: "object", - properties: { - position: { - enum: ["above", "beside"] - }, - ignorePattern: { - type: "string" - }, - applyDefaultPatterns: { - type: "boolean" - }, - applyDefaultIgnorePatterns: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - } - ], - messages: { - above: "Expected comment to be above code.", - beside: "Expected comment to be beside code." - } - }, - - create(context) { - const options = context.options[0]; - - let above, - ignorePattern, - applyDefaultIgnorePatterns = true; - - if (!options || typeof options === "string") { - above = !options || options === "above"; - - } else { - above = !options.position || options.position === "above"; - ignorePattern = options.ignorePattern; - - if (Object.hasOwn(options, "applyDefaultIgnorePatterns")) { - applyDefaultIgnorePatterns = options.applyDefaultIgnorePatterns; - } else { - applyDefaultIgnorePatterns = options.applyDefaultPatterns !== false; - } - } - - const defaultIgnoreRegExp = astUtils.COMMENTS_IGNORE_PATTERN; - const fallThroughRegExp = /^\s*falls?\s?through/u; - const customIgnoreRegExp = new RegExp(ignorePattern, "u"); - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program() { - const comments = sourceCode.getAllComments(); - - comments.filter(token => token.type === "Line").forEach(node => { - if (applyDefaultIgnorePatterns && (defaultIgnoreRegExp.test(node.value) || fallThroughRegExp.test(node.value))) { - return; - } - - if (ignorePattern && customIgnoreRegExp.test(node.value)) { - return; - } - - const previous = sourceCode.getTokenBefore(node, { includeComments: true }); - const isOnSameLine = previous && previous.loc.end.line === node.loc.start.line; - - if (above) { - if (isOnSameLine) { - context.report({ - node, - messageId: "above" - }); - } - } else { - if (!isOnSameLine) { - context.report({ - node, - messageId: "beside" - }); - } - } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/linebreak-style.js b/graphql/node_modules/eslint/lib/rules/linebreak-style.js deleted file mode 100644 index e59acca1..00000000 --- a/graphql/node_modules/eslint/lib/rules/linebreak-style.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @fileoverview Rule to enforce a single linebreak style. - * @author Erik Mueller - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent linebreak style", - recommended: false, - url: "https://eslint.org/docs/latest/rules/linebreak-style" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["unix", "windows"] - } - ], - messages: { - expectedLF: "Expected linebreaks to be 'LF' but found 'CRLF'.", - expectedCRLF: "Expected linebreaks to be 'CRLF' but found 'LF'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Builds a fix function that replaces text at the specified range in the source text. - * @param {int[]} range The range to replace - * @param {string} text The text to insert. - * @returns {Function} Fixer function - * @private - */ - function createFix(range, text) { - return function(fixer) { - return fixer.replaceTextRange(range, text); - }; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program: function checkForLinebreakStyle(node) { - const linebreakStyle = context.options[0] || "unix", - expectedLF = linebreakStyle === "unix", - expectedLFChars = expectedLF ? "\n" : "\r\n", - source = sourceCode.getText(), - pattern = astUtils.createGlobalLinebreakMatcher(); - let match; - - let i = 0; - - while ((match = pattern.exec(source)) !== null) { - i++; - if (match[0] === expectedLFChars) { - continue; - } - - const index = match.index; - const range = [index, index + match[0].length]; - - context.report({ - node, - loc: { - start: { - line: i, - column: sourceCode.lines[i - 1].length - }, - end: { - line: i + 1, - column: 0 - } - }, - messageId: expectedLF ? "expectedLF" : "expectedCRLF", - fix: createFix(range, expectedLFChars) - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/lines-around-comment.js b/graphql/node_modules/eslint/lib/rules/lines-around-comment.js deleted file mode 100644 index 2a6e472f..00000000 --- a/graphql/node_modules/eslint/lib/rules/lines-around-comment.js +++ /dev/null @@ -1,471 +0,0 @@ -/** - * @fileoverview Enforces empty lines around comments. - * @author Jamund Ferguson - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Return an array with any line numbers that are empty. - * @param {Array} lines An array of each line of the file. - * @returns {Array} An array of line numbers. - */ -function getEmptyLineNums(lines) { - const emptyLines = lines.map((line, i) => ({ - code: line.trim(), - num: i + 1 - })).filter(line => !line.code).map(line => line.num); - - return emptyLines; -} - -/** - * Return an array with any line numbers that contain comments. - * @param {Array} comments An array of comment tokens. - * @returns {Array} An array of line numbers. - */ -function getCommentLineNums(comments) { - const lines = []; - - comments.forEach(token => { - const start = token.loc.start.line; - const end = token.loc.end.line; - - lines.push(start, end); - }); - return lines; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require empty lines around comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/lines-around-comment" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - beforeBlockComment: { - type: "boolean", - default: true - }, - afterBlockComment: { - type: "boolean", - default: false - }, - beforeLineComment: { - type: "boolean", - default: false - }, - afterLineComment: { - type: "boolean", - default: false - }, - allowBlockStart: { - type: "boolean", - default: false - }, - allowBlockEnd: { - type: "boolean", - default: false - }, - allowClassStart: { - type: "boolean" - }, - allowClassEnd: { - type: "boolean" - }, - allowObjectStart: { - type: "boolean" - }, - allowObjectEnd: { - type: "boolean" - }, - allowArrayStart: { - type: "boolean" - }, - allowArrayEnd: { - type: "boolean" - }, - ignorePattern: { - type: "string" - }, - applyDefaultIgnorePatterns: { - type: "boolean" - }, - afterHashbangComment: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - after: "Expected line after comment.", - before: "Expected line before comment." - } - }, - - create(context) { - - const options = Object.assign({}, context.options[0]); - const ignorePattern = options.ignorePattern; - const defaultIgnoreRegExp = astUtils.COMMENTS_IGNORE_PATTERN; - const customIgnoreRegExp = new RegExp(ignorePattern, "u"); - const applyDefaultIgnorePatterns = options.applyDefaultIgnorePatterns !== false; - - options.beforeBlockComment = typeof options.beforeBlockComment !== "undefined" ? options.beforeBlockComment : true; - - const sourceCode = context.sourceCode; - - const lines = sourceCode.lines, - numLines = lines.length + 1, - comments = sourceCode.getAllComments(), - commentLines = getCommentLineNums(comments), - emptyLines = getEmptyLineNums(lines), - commentAndEmptyLines = new Set(commentLines.concat(emptyLines)); - - /** - * Returns whether or not comments are on lines starting with or ending with code - * @param {token} token The comment token to check. - * @returns {boolean} True if the comment is not alone. - */ - function codeAroundComment(token) { - let currentToken = token; - - do { - currentToken = sourceCode.getTokenBefore(currentToken, { includeComments: true }); - } while (currentToken && astUtils.isCommentToken(currentToken)); - - if (currentToken && astUtils.isTokenOnSameLine(currentToken, token)) { - return true; - } - - currentToken = token; - do { - currentToken = sourceCode.getTokenAfter(currentToken, { includeComments: true }); - } while (currentToken && astUtils.isCommentToken(currentToken)); - - if (currentToken && astUtils.isTokenOnSameLine(token, currentToken)) { - return true; - } - - return false; - } - - /** - * Returns whether or not comments are inside a node type or not. - * @param {ASTNode} parent The Comment parent node. - * @param {string} nodeType The parent type to check against. - * @returns {boolean} True if the comment is inside nodeType. - */ - function isParentNodeType(parent, nodeType) { - return parent.type === nodeType || - (parent.body && parent.body.type === nodeType) || - (parent.consequent && parent.consequent.type === nodeType); - } - - /** - * Returns the parent node that contains the given token. - * @param {token} token The token to check. - * @returns {ASTNode|null} The parent node that contains the given token. - */ - function getParentNodeOfToken(token) { - const node = sourceCode.getNodeByRangeIndex(token.range[0]); - - /* - * For the purpose of this rule, the comment token is in a `StaticBlock` node only - * if it's inside the braces of that `StaticBlock` node. - * - * Example where this function returns `null`: - * - * static - * // comment - * { - * } - * - * Example where this function returns `StaticBlock` node: - * - * static - * { - * // comment - * } - * - */ - if (node && node.type === "StaticBlock") { - const openingBrace = sourceCode.getFirstToken(node, { skip: 1 }); // skip the `static` token - - return token.range[0] >= openingBrace.range[0] - ? node - : null; - } - - return node; - } - - /** - * Returns whether or not comments are at the parent start or not. - * @param {token} token The Comment token. - * @param {string} nodeType The parent type to check against. - * @returns {boolean} True if the comment is at parent start. - */ - function isCommentAtParentStart(token, nodeType) { - const parent = getParentNodeOfToken(token); - - if (parent && isParentNodeType(parent, nodeType)) { - let parentStartNodeOrToken = parent; - - if (parent.type === "StaticBlock") { - parentStartNodeOrToken = sourceCode.getFirstToken(parent, { skip: 1 }); // opening brace of the static block - } else if (parent.type === "SwitchStatement") { - parentStartNodeOrToken = sourceCode.getTokenAfter(parent.discriminant, { - filter: astUtils.isOpeningBraceToken - }); // opening brace of the switch statement - } - - return token.loc.start.line - parentStartNodeOrToken.loc.start.line === 1; - } - - return false; - } - - /** - * Returns whether or not comments are at the parent end or not. - * @param {token} token The Comment token. - * @param {string} nodeType The parent type to check against. - * @returns {boolean} True if the comment is at parent end. - */ - function isCommentAtParentEnd(token, nodeType) { - const parent = getParentNodeOfToken(token); - - return !!parent && isParentNodeType(parent, nodeType) && - parent.loc.end.line - token.loc.end.line === 1; - } - - /** - * Returns whether or not comments are at the block start or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at block start. - */ - function isCommentAtBlockStart(token) { - return ( - isCommentAtParentStart(token, "ClassBody") || - isCommentAtParentStart(token, "BlockStatement") || - isCommentAtParentStart(token, "StaticBlock") || - isCommentAtParentStart(token, "SwitchCase") || - isCommentAtParentStart(token, "SwitchStatement") - ); - } - - /** - * Returns whether or not comments are at the block end or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at block end. - */ - function isCommentAtBlockEnd(token) { - return ( - isCommentAtParentEnd(token, "ClassBody") || - isCommentAtParentEnd(token, "BlockStatement") || - isCommentAtParentEnd(token, "StaticBlock") || - isCommentAtParentEnd(token, "SwitchCase") || - isCommentAtParentEnd(token, "SwitchStatement") - ); - } - - /** - * Returns whether or not comments are at the class start or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at class start. - */ - function isCommentAtClassStart(token) { - return isCommentAtParentStart(token, "ClassBody"); - } - - /** - * Returns whether or not comments are at the class end or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at class end. - */ - function isCommentAtClassEnd(token) { - return isCommentAtParentEnd(token, "ClassBody"); - } - - /** - * Returns whether or not comments are at the object start or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at object start. - */ - function isCommentAtObjectStart(token) { - return isCommentAtParentStart(token, "ObjectExpression") || isCommentAtParentStart(token, "ObjectPattern"); - } - - /** - * Returns whether or not comments are at the object end or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at object end. - */ - function isCommentAtObjectEnd(token) { - return isCommentAtParentEnd(token, "ObjectExpression") || isCommentAtParentEnd(token, "ObjectPattern"); - } - - /** - * Returns whether or not comments are at the array start or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at array start. - */ - function isCommentAtArrayStart(token) { - return isCommentAtParentStart(token, "ArrayExpression") || isCommentAtParentStart(token, "ArrayPattern"); - } - - /** - * Returns whether or not comments are at the array end or not. - * @param {token} token The Comment token. - * @returns {boolean} True if the comment is at array end. - */ - function isCommentAtArrayEnd(token) { - return isCommentAtParentEnd(token, "ArrayExpression") || isCommentAtParentEnd(token, "ArrayPattern"); - } - - /** - * Checks if a comment token has lines around it (ignores inline comments) - * @param {token} token The Comment token. - * @param {Object} opts Options to determine the newline. - * @param {boolean} opts.after Should have a newline after this line. - * @param {boolean} opts.before Should have a newline before this line. - * @returns {void} - */ - function checkForEmptyLine(token, opts) { - if (applyDefaultIgnorePatterns && defaultIgnoreRegExp.test(token.value)) { - return; - } - - if (ignorePattern && customIgnoreRegExp.test(token.value)) { - return; - } - - let after = opts.after, - before = opts.before; - - const prevLineNum = token.loc.start.line - 1, - nextLineNum = token.loc.end.line + 1, - commentIsNotAlone = codeAroundComment(token); - - const blockStartAllowed = options.allowBlockStart && - isCommentAtBlockStart(token) && - !(options.allowClassStart === false && - isCommentAtClassStart(token)), - blockEndAllowed = options.allowBlockEnd && isCommentAtBlockEnd(token) && !(options.allowClassEnd === false && isCommentAtClassEnd(token)), - classStartAllowed = options.allowClassStart && isCommentAtClassStart(token), - classEndAllowed = options.allowClassEnd && isCommentAtClassEnd(token), - objectStartAllowed = options.allowObjectStart && isCommentAtObjectStart(token), - objectEndAllowed = options.allowObjectEnd && isCommentAtObjectEnd(token), - arrayStartAllowed = options.allowArrayStart && isCommentAtArrayStart(token), - arrayEndAllowed = options.allowArrayEnd && isCommentAtArrayEnd(token); - - const exceptionStartAllowed = blockStartAllowed || classStartAllowed || objectStartAllowed || arrayStartAllowed; - const exceptionEndAllowed = blockEndAllowed || classEndAllowed || objectEndAllowed || arrayEndAllowed; - - // ignore top of the file and bottom of the file - if (prevLineNum < 1) { - before = false; - } - if (nextLineNum >= numLines) { - after = false; - } - - // we ignore all inline comments - if (commentIsNotAlone) { - return; - } - - const previousTokenOrComment = sourceCode.getTokenBefore(token, { includeComments: true }); - const nextTokenOrComment = sourceCode.getTokenAfter(token, { includeComments: true }); - - // check for newline before - if (!exceptionStartAllowed && before && !commentAndEmptyLines.has(prevLineNum) && - !(astUtils.isCommentToken(previousTokenOrComment) && astUtils.isTokenOnSameLine(previousTokenOrComment, token))) { - const lineStart = token.range[0] - token.loc.start.column; - const range = [lineStart, lineStart]; - - context.report({ - node: token, - messageId: "before", - fix(fixer) { - return fixer.insertTextBeforeRange(range, "\n"); - } - }); - } - - // check for newline after - if (!exceptionEndAllowed && after && !commentAndEmptyLines.has(nextLineNum) && - !(astUtils.isCommentToken(nextTokenOrComment) && astUtils.isTokenOnSameLine(token, nextTokenOrComment))) { - context.report({ - node: token, - messageId: "after", - fix(fixer) { - return fixer.insertTextAfter(token, "\n"); - } - }); - } - - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program() { - comments.forEach(token => { - if (token.type === "Line") { - if (options.beforeLineComment || options.afterLineComment) { - checkForEmptyLine(token, { - after: options.afterLineComment, - before: options.beforeLineComment - }); - } - } else if (token.type === "Block") { - if (options.beforeBlockComment || options.afterBlockComment) { - checkForEmptyLine(token, { - after: options.afterBlockComment, - before: options.beforeBlockComment - }); - } - } else if (token.type === "Shebang") { - if (options.afterHashbangComment) { - checkForEmptyLine(token, { - after: options.afterHashbangComment, - before: false - }); - } - } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/lines-around-directive.js b/graphql/node_modules/eslint/lib/rules/lines-around-directive.js deleted file mode 100644 index fb6871d3..00000000 --- a/graphql/node_modules/eslint/lib/rules/lines-around-directive.js +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @fileoverview Require or disallow newlines around directives. - * @author Kai Cataldo - * @deprecated in ESLint v4.0.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Require or disallow newlines around directives", - recommended: false, - url: "https://eslint.org/docs/latest/rules/lines-around-directive" - }, - - schema: [{ - oneOf: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - before: { - enum: ["always", "never"] - }, - after: { - enum: ["always", "never"] - } - }, - additionalProperties: false, - minProperties: 2 - } - ] - }], - - fixable: "whitespace", - messages: { - expected: "Expected newline {{location}} \"{{value}}\" directive.", - unexpected: "Unexpected newline {{location}} \"{{value}}\" directive." - }, - deprecated: true, - replacedBy: ["padding-line-between-statements"] - }, - - create(context) { - const sourceCode = context.sourceCode; - const config = context.options[0] || "always"; - const expectLineBefore = typeof config === "string" ? config : config.before; - const expectLineAfter = typeof config === "string" ? config : config.after; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Check if node is preceded by a blank newline. - * @param {ASTNode} node Node to check. - * @returns {boolean} Whether or not the passed in node is preceded by a blank newline. - */ - function hasNewlineBefore(node) { - const tokenBefore = sourceCode.getTokenBefore(node, { includeComments: true }); - const tokenLineBefore = tokenBefore ? tokenBefore.loc.end.line : 0; - - return node.loc.start.line - tokenLineBefore >= 2; - } - - /** - * Gets the last token of a node that is on the same line as the rest of the node. - * This will usually be the last token of the node, but it will be the second-to-last token if the node has a trailing - * semicolon on a different line. - * @param {ASTNode} node A directive node - * @returns {Token} The last token of the node on the line - */ - function getLastTokenOnLine(node) { - const lastToken = sourceCode.getLastToken(node); - const secondToLastToken = sourceCode.getTokenBefore(lastToken); - - return astUtils.isSemicolonToken(lastToken) && lastToken.loc.start.line > secondToLastToken.loc.end.line - ? secondToLastToken - : lastToken; - } - - /** - * Check if node is followed by a blank newline. - * @param {ASTNode} node Node to check. - * @returns {boolean} Whether or not the passed in node is followed by a blank newline. - */ - function hasNewlineAfter(node) { - const lastToken = getLastTokenOnLine(node); - const tokenAfter = sourceCode.getTokenAfter(lastToken, { includeComments: true }); - - return tokenAfter.loc.start.line - lastToken.loc.end.line >= 2; - } - - /** - * Report errors for newlines around directives. - * @param {ASTNode} node Node to check. - * @param {string} location Whether the error was found before or after the directive. - * @param {boolean} expected Whether or not a newline was expected or unexpected. - * @returns {void} - */ - function reportError(node, location, expected) { - context.report({ - node, - messageId: expected ? "expected" : "unexpected", - data: { - value: node.expression.value, - location - }, - fix(fixer) { - const lastToken = getLastTokenOnLine(node); - - if (expected) { - return location === "before" ? fixer.insertTextBefore(node, "\n") : fixer.insertTextAfter(lastToken, "\n"); - } - return fixer.removeRange(location === "before" ? [node.range[0] - 1, node.range[0]] : [lastToken.range[1], lastToken.range[1] + 1]); - } - }); - } - - /** - * Check lines around directives in node - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkDirectives(node) { - const directives = astUtils.getDirectivePrologue(node); - - if (!directives.length) { - return; - } - - const firstDirective = directives[0]; - const leadingComments = sourceCode.getCommentsBefore(firstDirective); - - /* - * Only check before the first directive if it is preceded by a comment or if it is at the top of - * the file and expectLineBefore is set to "never". This is to not force a newline at the top of - * the file if there are no comments as well as for compatibility with padded-blocks. - */ - if (leadingComments.length) { - if (expectLineBefore === "always" && !hasNewlineBefore(firstDirective)) { - reportError(firstDirective, "before", true); - } - - if (expectLineBefore === "never" && hasNewlineBefore(firstDirective)) { - reportError(firstDirective, "before", false); - } - } else if ( - node.type === "Program" && - expectLineBefore === "never" && - !leadingComments.length && - hasNewlineBefore(firstDirective) - ) { - reportError(firstDirective, "before", false); - } - - const lastDirective = directives.at(-1); - const statements = node.type === "Program" ? node.body : node.body.body; - - /* - * Do not check after the last directive if the body only - * contains a directive prologue and isn't followed by a comment to ensure - * this rule behaves well with padded-blocks. - */ - if (lastDirective === statements.at(-1) && !lastDirective.trailingComments) { - return; - } - - if (expectLineAfter === "always" && !hasNewlineAfter(lastDirective)) { - reportError(lastDirective, "after", true); - } - - if (expectLineAfter === "never" && hasNewlineAfter(lastDirective)) { - reportError(lastDirective, "after", false); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program: checkDirectives, - FunctionDeclaration: checkDirectives, - FunctionExpression: checkDirectives, - ArrowFunctionExpression: checkDirectives - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/lines-between-class-members.js b/graphql/node_modules/eslint/lib/rules/lines-between-class-members.js deleted file mode 100644 index 5f36d468..00000000 --- a/graphql/node_modules/eslint/lib/rules/lines-between-class-members.js +++ /dev/null @@ -1,269 +0,0 @@ -/** - * @fileoverview Rule to check empty newline between class members - * @author 薛定谔的猫 - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Types of class members. - * Those have `test` method to check it matches to the given class member. - * @private - */ -const ClassMemberTypes = { - "*": { test: () => true }, - field: { test: node => node.type === "PropertyDefinition" }, - method: { test: node => node.type === "MethodDefinition" } -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow an empty line between class members", - recommended: false, - url: "https://eslint.org/docs/latest/rules/lines-between-class-members" - }, - - fixable: "whitespace", - - schema: [ - { - anyOf: [ - { - type: "object", - properties: { - enforce: { - type: "array", - items: { - type: "object", - properties: { - blankLine: { enum: ["always", "never"] }, - prev: { enum: ["method", "field", "*"] }, - next: { enum: ["method", "field", "*"] } - }, - additionalProperties: false, - required: ["blankLine", "prev", "next"] - }, - minItems: 1 - } - }, - additionalProperties: false, - required: ["enforce"] - }, - { - enum: ["always", "never"] - } - ] - }, - { - type: "object", - properties: { - exceptAfterSingleLine: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - never: "Unexpected blank line between class members.", - always: "Expected blank line between class members." - } - }, - - create(context) { - - const options = []; - - options[0] = context.options[0] || "always"; - options[1] = context.options[1] || { exceptAfterSingleLine: false }; - - const configureList = typeof options[0] === "object" ? options[0].enforce : [{ blankLine: options[0], prev: "*", next: "*" }]; - const sourceCode = context.sourceCode; - - /** - * Gets a pair of tokens that should be used to check lines between two class member nodes. - * - * In most cases, this returns the very last token of the current node and - * the very first token of the next node. - * For example: - * - * class C { - * x = 1; // curLast: `;` nextFirst: `in` - * in = 2 - * } - * - * There is only one exception. If the given node ends with a semicolon, and it looks like - * a semicolon-less style's semicolon - one that is not on the same line as the preceding - * token, but is on the line where the next class member starts - this returns the preceding - * token and the semicolon as boundary tokens. - * For example: - * - * class C { - * x = 1 // curLast: `1` nextFirst: `;` - * ;in = 2 - * } - * When determining the desired layout of the code, we should treat this semicolon as - * a part of the next class member node instead of the one it technically belongs to. - * @param {ASTNode} curNode Current class member node. - * @param {ASTNode} nextNode Next class member node. - * @returns {Token} The actual last token of `node`. - * @private - */ - function getBoundaryTokens(curNode, nextNode) { - const lastToken = sourceCode.getLastToken(curNode); - const prevToken = sourceCode.getTokenBefore(lastToken); - const nextToken = sourceCode.getFirstToken(nextNode); // skip possible lone `;` between nodes - - const isSemicolonLessStyle = ( - astUtils.isSemicolonToken(lastToken) && - !astUtils.isTokenOnSameLine(prevToken, lastToken) && - astUtils.isTokenOnSameLine(lastToken, nextToken) - ); - - return isSemicolonLessStyle - ? { curLast: prevToken, nextFirst: lastToken } - : { curLast: lastToken, nextFirst: nextToken }; - } - - /** - * Return the last token among the consecutive tokens that have no exceed max line difference in between, before the first token in the next member. - * @param {Token} prevLastToken The last token in the previous member node. - * @param {Token} nextFirstToken The first token in the next member node. - * @param {number} maxLine The maximum number of allowed line difference between consecutive tokens. - * @returns {Token} The last token among the consecutive tokens. - */ - function findLastConsecutiveTokenAfter(prevLastToken, nextFirstToken, maxLine) { - const after = sourceCode.getTokenAfter(prevLastToken, { includeComments: true }); - - if (after !== nextFirstToken && after.loc.start.line - prevLastToken.loc.end.line <= maxLine) { - return findLastConsecutiveTokenAfter(after, nextFirstToken, maxLine); - } - return prevLastToken; - } - - /** - * Return the first token among the consecutive tokens that have no exceed max line difference in between, after the last token in the previous member. - * @param {Token} nextFirstToken The first token in the next member node. - * @param {Token} prevLastToken The last token in the previous member node. - * @param {number} maxLine The maximum number of allowed line difference between consecutive tokens. - * @returns {Token} The first token among the consecutive tokens. - */ - function findFirstConsecutiveTokenBefore(nextFirstToken, prevLastToken, maxLine) { - const before = sourceCode.getTokenBefore(nextFirstToken, { includeComments: true }); - - if (before !== prevLastToken && nextFirstToken.loc.start.line - before.loc.end.line <= maxLine) { - return findFirstConsecutiveTokenBefore(before, prevLastToken, maxLine); - } - return nextFirstToken; - } - - /** - * Checks if there is a token or comment between two tokens. - * @param {Token} before The token before. - * @param {Token} after The token after. - * @returns {boolean} True if there is a token or comment between two tokens. - */ - function hasTokenOrCommentBetween(before, after) { - return sourceCode.getTokensBetween(before, after, { includeComments: true }).length !== 0; - } - - /** - * Checks whether the given node matches the given type. - * @param {ASTNode} node The class member node to check. - * @param {string} type The class member type to check. - * @returns {boolean} `true` if the class member node matched the type. - * @private - */ - function match(node, type) { - return ClassMemberTypes[type].test(node); - } - - /** - * Finds the last matched configuration from the configureList. - * @param {ASTNode} prevNode The previous node to match. - * @param {ASTNode} nextNode The current node to match. - * @returns {string|null} Padding type or `null` if no matches were found. - * @private - */ - function getPaddingType(prevNode, nextNode) { - for (let i = configureList.length - 1; i >= 0; --i) { - const configure = configureList[i]; - const matched = - match(prevNode, configure.prev) && - match(nextNode, configure.next); - - if (matched) { - return configure.blankLine; - } - } - return null; - } - - return { - ClassBody(node) { - const body = node.body; - - for (let i = 0; i < body.length - 1; i++) { - const curFirst = sourceCode.getFirstToken(body[i]); - const { curLast, nextFirst } = getBoundaryTokens(body[i], body[i + 1]); - const isMulti = !astUtils.isTokenOnSameLine(curFirst, curLast); - const skip = !isMulti && options[1].exceptAfterSingleLine; - const beforePadding = findLastConsecutiveTokenAfter(curLast, nextFirst, 1); - const afterPadding = findFirstConsecutiveTokenBefore(nextFirst, curLast, 1); - const isPadded = afterPadding.loc.start.line - beforePadding.loc.end.line > 1; - const hasTokenInPadding = hasTokenOrCommentBetween(beforePadding, afterPadding); - const curLineLastToken = findLastConsecutiveTokenAfter(curLast, nextFirst, 0); - const paddingType = getPaddingType(body[i], body[i + 1]); - - if (paddingType === "never" && isPadded) { - context.report({ - node: body[i + 1], - messageId: "never", - - fix(fixer) { - if (hasTokenInPadding) { - return null; - } - return fixer.replaceTextRange([beforePadding.range[1], afterPadding.range[0]], "\n"); - } - }); - } else if (paddingType === "always" && !skip && !isPadded) { - context.report({ - node: body[i + 1], - messageId: "always", - - fix(fixer) { - if (hasTokenInPadding) { - return null; - } - return fixer.insertTextAfter(curLineLastToken, "\n"); - } - }); - } - - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/logical-assignment-operators.js b/graphql/node_modules/eslint/lib/rules/logical-assignment-operators.js deleted file mode 100644 index c084c04c..00000000 --- a/graphql/node_modules/eslint/lib/rules/logical-assignment-operators.js +++ /dev/null @@ -1,504 +0,0 @@ -/** - * @fileoverview Rule to replace assignment expressions with logical operator assignment - * @author Daniel Martens - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ -const astUtils = require("./utils/ast-utils.js"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const baseTypes = new Set(["Identifier", "Super", "ThisExpression"]); - -/** - * Returns true iff either "undefined" or a void expression (eg. "void 0") - * @param {ASTNode} expression Expression to check - * @param {import('eslint-scope').Scope} scope Scope of the expression - * @returns {boolean} True iff "undefined" or "void ..." - */ -function isUndefined(expression, scope) { - if (expression.type === "Identifier" && expression.name === "undefined") { - return astUtils.isReferenceToGlobalVariable(scope, expression); - } - - return expression.type === "UnaryExpression" && - expression.operator === "void" && - expression.argument.type === "Literal" && - expression.argument.value === 0; -} - -/** - * Returns true iff the reference is either an identifier or member expression - * @param {ASTNode} expression Expression to check - * @returns {boolean} True for identifiers and member expressions - */ -function isReference(expression) { - return (expression.type === "Identifier" && expression.name !== "undefined") || - expression.type === "MemberExpression"; -} - -/** - * Returns true iff the expression checks for nullish with loose equals. - * Examples: value == null, value == void 0 - * @param {ASTNode} expression Test condition - * @param {import('eslint-scope').Scope} scope Scope of the expression - * @returns {boolean} True iff implicit nullish comparison - */ -function isImplicitNullishComparison(expression, scope) { - if (expression.type !== "BinaryExpression" || expression.operator !== "==") { - return false; - } - - const reference = isReference(expression.left) ? "left" : "right"; - const nullish = reference === "left" ? "right" : "left"; - - return isReference(expression[reference]) && - (astUtils.isNullLiteral(expression[nullish]) || isUndefined(expression[nullish], scope)); -} - -/** - * Condition with two equal comparisons. - * @param {ASTNode} expression Condition - * @returns {boolean} True iff matches ? === ? || ? === ? - */ -function isDoubleComparison(expression) { - return expression.type === "LogicalExpression" && - expression.operator === "||" && - expression.left.type === "BinaryExpression" && - expression.left.operator === "===" && - expression.right.type === "BinaryExpression" && - expression.right.operator === "==="; -} - -/** - * Returns true iff the expression checks for undefined and null. - * Example: value === null || value === undefined - * @param {ASTNode} expression Test condition - * @param {import('eslint-scope').Scope} scope Scope of the expression - * @returns {boolean} True iff explicit nullish comparison - */ -function isExplicitNullishComparison(expression, scope) { - if (!isDoubleComparison(expression)) { - return false; - } - const leftReference = isReference(expression.left.left) ? "left" : "right"; - const leftNullish = leftReference === "left" ? "right" : "left"; - const rightReference = isReference(expression.right.left) ? "left" : "right"; - const rightNullish = rightReference === "left" ? "right" : "left"; - - return astUtils.isSameReference(expression.left[leftReference], expression.right[rightReference]) && - ((astUtils.isNullLiteral(expression.left[leftNullish]) && isUndefined(expression.right[rightNullish], scope)) || - (isUndefined(expression.left[leftNullish], scope) && astUtils.isNullLiteral(expression.right[rightNullish]))); -} - -/** - * Returns true for Boolean(arg) calls - * @param {ASTNode} expression Test condition - * @param {import('eslint-scope').Scope} scope Scope of the expression - * @returns {boolean} Whether the expression is a boolean cast - */ -function isBooleanCast(expression, scope) { - return expression.type === "CallExpression" && - expression.callee.name === "Boolean" && - expression.arguments.length === 1 && - astUtils.isReferenceToGlobalVariable(scope, expression.callee); -} - -/** - * Returns true for: - * truthiness checks: value, Boolean(value), !!value - * falsiness checks: !value, !Boolean(value) - * nullish checks: value == null, value === undefined || value === null - * @param {ASTNode} expression Test condition - * @param {import('eslint-scope').Scope} scope Scope of the expression - * @returns {?{ reference: ASTNode, operator: '??'|'||'|'&&'}} Null if not a known existence - */ -function getExistence(expression, scope) { - const isNegated = expression.type === "UnaryExpression" && expression.operator === "!"; - const base = isNegated ? expression.argument : expression; - - switch (true) { - case isReference(base): - return { reference: base, operator: isNegated ? "||" : "&&" }; - case base.type === "UnaryExpression" && base.operator === "!" && isReference(base.argument): - return { reference: base.argument, operator: "&&" }; - case isBooleanCast(base, scope) && isReference(base.arguments[0]): - return { reference: base.arguments[0], operator: isNegated ? "||" : "&&" }; - case isImplicitNullishComparison(expression, scope): - return { reference: isReference(expression.left) ? expression.left : expression.right, operator: "??" }; - case isExplicitNullishComparison(expression, scope): - return { reference: isReference(expression.left.left) ? expression.left.left : expression.left.right, operator: "??" }; - default: return null; - } -} - -/** - * Returns true iff the node is inside a with block - * @param {ASTNode} node Node to check - * @returns {boolean} True iff passed node is inside a with block - */ -function isInsideWithBlock(node) { - if (node.type === "Program") { - return false; - } - - return node.parent.type === "WithStatement" && node.parent.body === node ? true : isInsideWithBlock(node.parent); -} - -/** - * Gets the leftmost operand of a consecutive logical expression. - * @param {SourceCode} sourceCode The ESLint source code object - * @param {LogicalExpression} node LogicalExpression - * @returns {Expression} Leftmost operand - */ -function getLeftmostOperand(sourceCode, node) { - let left = node.left; - - while (left.type === "LogicalExpression" && left.operator === node.operator) { - - if (astUtils.isParenthesised(sourceCode, left)) { - - /* - * It should have associativity, - * but ignore it if use parentheses to make the evaluation order clear. - */ - return left; - } - left = left.left; - } - return left; - -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow logical assignment operator shorthand", - recommended: false, - url: "https://eslint.org/docs/latest/rules/logical-assignment-operators" - }, - - schema: { - type: "array", - oneOf: [{ - items: [ - { const: "always" }, - { - type: "object", - properties: { - enforceForIfStatements: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, // 0 for allowing passing no options - maxItems: 2 - }, { - items: [{ const: "never" }], - minItems: 1, - maxItems: 1 - }] - }, - fixable: "code", - hasSuggestions: true, - messages: { - assignment: "Assignment (=) can be replaced with operator assignment ({{operator}}).", - useLogicalOperator: "Convert this assignment to use the operator {{ operator }}.", - logical: "Logical expression can be replaced with an assignment ({{ operator }}).", - convertLogical: "Replace this logical expression with an assignment with the operator {{ operator }}.", - if: "'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.", - convertIf: "Replace this 'if' statement with a logical assignment with operator {{ operator }}.", - unexpected: "Unexpected logical operator assignment ({{operator}}) shorthand.", - separate: "Separate the logical assignment into an assignment with a logical operator." - } - }, - - create(context) { - const mode = context.options[0] === "never" ? "never" : "always"; - const checkIf = mode === "always" && context.options.length > 1 && context.options[1].enforceForIfStatements; - const sourceCode = context.sourceCode; - const isStrict = sourceCode.getScope(sourceCode.ast).isStrict; - - /** - * Returns false if the access could be a getter - * @param {ASTNode} node Assignment expression - * @returns {boolean} True iff the fix is safe - */ - function cannotBeGetter(node) { - return node.type === "Identifier" && - (isStrict || !isInsideWithBlock(node)); - } - - /** - * Check whether only a single property is accessed - * @param {ASTNode} node reference - * @returns {boolean} True iff a single property is accessed - */ - function accessesSingleProperty(node) { - if (!isStrict && isInsideWithBlock(node)) { - return node.type === "Identifier"; - } - - return node.type === "MemberExpression" && - baseTypes.has(node.object.type) && - (!node.computed || (node.property.type !== "MemberExpression" && node.property.type !== "ChainExpression")); - } - - /** - * Adds a fixer or suggestion whether on the fix is safe. - * @param {{ messageId: string, node: ASTNode }} descriptor Report descriptor without fix or suggest - * @param {{ messageId: string, fix: Function }} suggestion Adds the fix or the whole suggestion as only element in "suggest" to suggestion - * @param {boolean} shouldBeFixed Fix iff the condition is true - * @returns {Object} Descriptor with either an added fix or suggestion - */ - function createConditionalFixer(descriptor, suggestion, shouldBeFixed) { - if (shouldBeFixed) { - return { - ...descriptor, - fix: suggestion.fix - }; - } - - return { - ...descriptor, - suggest: [suggestion] - }; - } - - - /** - * Returns the operator token for assignments and binary expressions - * @param {ASTNode} node AssignmentExpression or BinaryExpression - * @returns {import('eslint').AST.Token} Operator token between the left and right expression - */ - function getOperatorToken(node) { - return sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator); - } - - if (mode === "never") { - return { - - // foo ||= bar - "AssignmentExpression"(assignment) { - if (!astUtils.isLogicalAssignmentOperator(assignment.operator)) { - return; - } - - const descriptor = { - messageId: "unexpected", - node: assignment, - data: { operator: assignment.operator } - }; - const suggestion = { - messageId: "separate", - *fix(ruleFixer) { - if (sourceCode.getCommentsInside(assignment).length > 0) { - return; - } - - const operatorToken = getOperatorToken(assignment); - - // -> foo = bar - yield ruleFixer.replaceText(operatorToken, "="); - - const assignmentText = sourceCode.getText(assignment.left); - const operator = assignment.operator.slice(0, -1); - - // -> foo = foo || bar - yield ruleFixer.insertTextAfter(operatorToken, ` ${assignmentText} ${operator}`); - - const precedence = astUtils.getPrecedence(assignment.right) <= astUtils.getPrecedence({ type: "LogicalExpression", operator }); - - // ?? and || / && cannot be mixed but have same precedence - const mixed = assignment.operator === "??=" && astUtils.isLogicalExpression(assignment.right); - - if (!astUtils.isParenthesised(sourceCode, assignment.right) && (precedence || mixed)) { - - // -> foo = foo || (bar) - yield ruleFixer.insertTextBefore(assignment.right, "("); - yield ruleFixer.insertTextAfter(assignment.right, ")"); - } - } - }; - - context.report(createConditionalFixer(descriptor, suggestion, cannotBeGetter(assignment.left))); - } - }; - } - - return { - - // foo = foo || bar - "AssignmentExpression[operator='='][right.type='LogicalExpression']"(assignment) { - const leftOperand = getLeftmostOperand(sourceCode, assignment.right); - - if (!astUtils.isSameReference(assignment.left, leftOperand) - ) { - return; - } - - const descriptor = { - messageId: "assignment", - node: assignment, - data: { operator: `${assignment.right.operator}=` } - }; - const suggestion = { - messageId: "useLogicalOperator", - data: { operator: `${assignment.right.operator}=` }, - *fix(ruleFixer) { - if (sourceCode.getCommentsInside(assignment).length > 0) { - return; - } - - // No need for parenthesis around the assignment based on precedence as the precedence stays the same even with changed operator - const assignmentOperatorToken = getOperatorToken(assignment); - - // -> foo ||= foo || bar - yield ruleFixer.insertTextBefore(assignmentOperatorToken, assignment.right.operator); - - // -> foo ||= bar - const logicalOperatorToken = getOperatorToken(leftOperand.parent); - const firstRightOperandToken = sourceCode.getTokenAfter(logicalOperatorToken); - - yield ruleFixer.removeRange([leftOperand.parent.range[0], firstRightOperandToken.range[0]]); - } - }; - - context.report(createConditionalFixer(descriptor, suggestion, cannotBeGetter(assignment.left))); - }, - - // foo || (foo = bar) - 'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(logical) { - - // Right side has to be parenthesized, otherwise would be parsed as (foo || foo) = bar which is illegal - if (isReference(logical.left) && astUtils.isSameReference(logical.left, logical.right.left)) { - const descriptor = { - messageId: "logical", - node: logical, - data: { operator: `${logical.operator}=` } - }; - const suggestion = { - messageId: "convertLogical", - data: { operator: `${logical.operator}=` }, - *fix(ruleFixer) { - if (sourceCode.getCommentsInside(logical).length > 0) { - return; - } - - const parentPrecedence = astUtils.getPrecedence(logical.parent); - const requiresOuterParenthesis = logical.parent.type !== "ExpressionStatement" && ( - parentPrecedence === -1 || - astUtils.getPrecedence({ type: "AssignmentExpression" }) < parentPrecedence - ); - - if (!astUtils.isParenthesised(sourceCode, logical) && requiresOuterParenthesis) { - yield ruleFixer.insertTextBefore(logical, "("); - yield ruleFixer.insertTextAfter(logical, ")"); - } - - // Also removes all opening parenthesis - yield ruleFixer.removeRange([logical.range[0], logical.right.range[0]]); // -> foo = bar) - - // Also removes all ending parenthesis - yield ruleFixer.removeRange([logical.right.range[1], logical.range[1]]); // -> foo = bar - - const operatorToken = getOperatorToken(logical.right); - - yield ruleFixer.insertTextBefore(operatorToken, logical.operator); // -> foo ||= bar - } - }; - const fix = cannotBeGetter(logical.left) || accessesSingleProperty(logical.left); - - context.report(createConditionalFixer(descriptor, suggestion, fix)); - } - }, - - // if (foo) foo = bar - "IfStatement[alternate=null]"(ifNode) { - if (!checkIf) { - return; - } - - const hasBody = ifNode.consequent.type === "BlockStatement"; - - if (hasBody && ifNode.consequent.body.length !== 1) { - return; - } - - const body = hasBody ? ifNode.consequent.body[0] : ifNode.consequent; - const scope = sourceCode.getScope(ifNode); - const existence = getExistence(ifNode.test, scope); - - if ( - body.type === "ExpressionStatement" && - body.expression.type === "AssignmentExpression" && - body.expression.operator === "=" && - existence !== null && - astUtils.isSameReference(existence.reference, body.expression.left) - ) { - const descriptor = { - messageId: "if", - node: ifNode, - data: { operator: `${existence.operator}=` } - }; - const suggestion = { - messageId: "convertIf", - data: { operator: `${existence.operator}=` }, - *fix(ruleFixer) { - if (sourceCode.getCommentsInside(ifNode).length > 0) { - return; - } - - const firstBodyToken = sourceCode.getFirstToken(body); - const prevToken = sourceCode.getTokenBefore(ifNode); - - if ( - prevToken !== null && - prevToken.value !== ";" && - prevToken.value !== "{" && - firstBodyToken.type !== "Identifier" && - firstBodyToken.type !== "Keyword" - ) { - - // Do not fix if the fixed statement could be part of the previous statement (eg. fn() if (a == null) (a) = b --> fn()(a) ??= b) - return; - } - - - const operatorToken = getOperatorToken(body.expression); - - yield ruleFixer.insertTextBefore(operatorToken, existence.operator); // -> if (foo) foo ||= bar - - yield ruleFixer.removeRange([ifNode.range[0], body.range[0]]); // -> foo ||= bar - - yield ruleFixer.removeRange([body.range[1], ifNode.range[1]]); // -> foo ||= bar, only present if "if" had a body - - const nextToken = sourceCode.getTokenAfter(body.expression); - - if (hasBody && (nextToken !== null && nextToken.value !== ";")) { - yield ruleFixer.insertTextAfter(ifNode, ";"); - } - } - }; - const shouldBeFixed = cannotBeGetter(existence.reference) || - (ifNode.test.type !== "LogicalExpression" && accessesSingleProperty(existence.reference)); - - context.report(createConditionalFixer(descriptor, suggestion, shouldBeFixed)); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-classes-per-file.js b/graphql/node_modules/eslint/lib/rules/max-classes-per-file.js deleted file mode 100644 index 241e0602..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-classes-per-file.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @fileoverview Enforce a maximum number of classes per file - * @author James Garbutt - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum number of classes per file", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-classes-per-file" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 1 - }, - { - type: "object", - properties: { - ignoreExpressions: { - type: "boolean" - }, - max: { - type: "integer", - minimum: 1 - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - maximumExceeded: "File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}." - } - }, - create(context) { - const [option = {}] = context.options; - const [ignoreExpressions, max] = typeof option === "number" - ? [false, option || 1] - : [option.ignoreExpressions, option.max || 1]; - - let classCount = 0; - - return { - Program() { - classCount = 0; - }, - "Program:exit"(node) { - if (classCount > max) { - context.report({ - node, - messageId: "maximumExceeded", - data: { - classCount, - max - } - }); - } - }, - "ClassDeclaration"() { - classCount++; - }, - "ClassExpression"() { - if (!ignoreExpressions) { - classCount++; - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-depth.js b/graphql/node_modules/eslint/lib/rules/max-depth.js deleted file mode 100644 index e92c6b4a..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-depth.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * @fileoverview A rule to set the maximum depth block can be nested in a function. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum depth that blocks can be nested", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-depth" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - maximum: { - type: "integer", - minimum: 0 - }, - max: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - messages: { - tooDeeply: "Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const functionStack = [], - option = context.options[0]; - let maxDepth = 4; - - if ( - typeof option === "object" && - (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) - ) { - maxDepth = option.maximum || option.max; - } - if (typeof option === "number") { - maxDepth = option; - } - - /** - * When parsing a new function, store it in our function stack - * @returns {void} - * @private - */ - function startFunction() { - functionStack.push(0); - } - - /** - * When parsing is done then pop out the reference - * @returns {void} - * @private - */ - function endFunction() { - functionStack.pop(); - } - - /** - * Save the block and Evaluate the node - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function pushBlock(node) { - const len = ++functionStack[functionStack.length - 1]; - - if (len > maxDepth) { - context.report({ node, messageId: "tooDeeply", data: { depth: len, maxDepth } }); - } - } - - /** - * Pop the saved block - * @returns {void} - * @private - */ - function popBlock() { - functionStack[functionStack.length - 1]--; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - Program: startFunction, - FunctionDeclaration: startFunction, - FunctionExpression: startFunction, - ArrowFunctionExpression: startFunction, - StaticBlock: startFunction, - - IfStatement(node) { - if (node.parent.type !== "IfStatement") { - pushBlock(node); - } - }, - SwitchStatement: pushBlock, - TryStatement: pushBlock, - DoWhileStatement: pushBlock, - WhileStatement: pushBlock, - WithStatement: pushBlock, - ForStatement: pushBlock, - ForInStatement: pushBlock, - ForOfStatement: pushBlock, - - "IfStatement:exit": popBlock, - "SwitchStatement:exit": popBlock, - "TryStatement:exit": popBlock, - "DoWhileStatement:exit": popBlock, - "WhileStatement:exit": popBlock, - "WithStatement:exit": popBlock, - "ForStatement:exit": popBlock, - "ForInStatement:exit": popBlock, - "ForOfStatement:exit": popBlock, - - "FunctionDeclaration:exit": endFunction, - "FunctionExpression:exit": endFunction, - "ArrowFunctionExpression:exit": endFunction, - "StaticBlock:exit": endFunction, - "Program:exit": endFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-len.js b/graphql/node_modules/eslint/lib/rules/max-len.js deleted file mode 100644 index 15910d5d..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-len.js +++ /dev/null @@ -1,440 +0,0 @@ -/** - * @fileoverview Rule to check for max length on a line. - * @author Matt DuVall - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const OPTIONS_SCHEMA = { - type: "object", - properties: { - code: { - type: "integer", - minimum: 0 - }, - comments: { - type: "integer", - minimum: 0 - }, - tabWidth: { - type: "integer", - minimum: 0 - }, - ignorePattern: { - type: "string" - }, - ignoreComments: { - type: "boolean" - }, - ignoreStrings: { - type: "boolean" - }, - ignoreUrls: { - type: "boolean" - }, - ignoreTemplateLiterals: { - type: "boolean" - }, - ignoreRegExpLiterals: { - type: "boolean" - }, - ignoreTrailingComments: { - type: "boolean" - } - }, - additionalProperties: false -}; - -const OPTIONS_OR_INTEGER_SCHEMA = { - anyOf: [ - OPTIONS_SCHEMA, - { - type: "integer", - minimum: 0 - } - ] -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce a maximum line length", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-len" - }, - - schema: [ - OPTIONS_OR_INTEGER_SCHEMA, - OPTIONS_OR_INTEGER_SCHEMA, - OPTIONS_SCHEMA - ], - messages: { - max: "This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.", - maxComment: "This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}." - } - }, - - create(context) { - - /* - * Inspired by http://tools.ietf.org/html/rfc3986#appendix-B, however: - * - They're matching an entire string that we know is a URI - * - We're matching part of a string where we think there *might* be a URL - * - We're only concerned about URLs, as picking out any URI would cause - * too many false positives - * - We don't care about matching the entire URL, any small segment is fine - */ - const URL_REGEXP = /[^:/?#]:\/\/[^?#]/u; - - const sourceCode = context.sourceCode; - - /** - * Computes the length of a line that may contain tabs. The width of each - * tab will be the number of spaces to the next tab stop. - * @param {string} line The line. - * @param {int} tabWidth The width of each tab stop in spaces. - * @returns {int} The computed line length. - * @private - */ - function computeLineLength(line, tabWidth) { - let extraCharacterCount = 0; - - line.replace(/\t/gu, (match, offset) => { - const totalOffset = offset + extraCharacterCount, - previousTabStopOffset = tabWidth ? totalOffset % tabWidth : 0, - spaceCount = tabWidth - previousTabStopOffset; - - extraCharacterCount += spaceCount - 1; // -1 for the replaced tab - }); - return Array.from(line).length + extraCharacterCount; - } - - // The options object must be the last option specified… - const options = Object.assign({}, context.options.at(-1)); - - // …but max code length… - if (typeof context.options[0] === "number") { - options.code = context.options[0]; - } - - // …and tabWidth can be optionally specified directly as integers. - if (typeof context.options[1] === "number") { - options.tabWidth = context.options[1]; - } - - const maxLength = typeof options.code === "number" ? options.code : 80, - tabWidth = typeof options.tabWidth === "number" ? options.tabWidth : 4, - ignoreComments = !!options.ignoreComments, - ignoreStrings = !!options.ignoreStrings, - ignoreTemplateLiterals = !!options.ignoreTemplateLiterals, - ignoreRegExpLiterals = !!options.ignoreRegExpLiterals, - ignoreTrailingComments = !!options.ignoreTrailingComments || !!options.ignoreComments, - ignoreUrls = !!options.ignoreUrls, - maxCommentLength = options.comments; - let ignorePattern = options.ignorePattern || null; - - if (ignorePattern) { - ignorePattern = new RegExp(ignorePattern, "u"); - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Tells if a given comment is trailing: it starts on the current line and - * extends to or past the end of the current line. - * @param {string} line The source line we want to check for a trailing comment on - * @param {number} lineNumber The one-indexed line number for line - * @param {ASTNode} comment The comment to inspect - * @returns {boolean} If the comment is trailing on the given line - */ - function isTrailingComment(line, lineNumber, comment) { - return comment && - (comment.loc.start.line === lineNumber && lineNumber <= comment.loc.end.line) && - (comment.loc.end.line > lineNumber || comment.loc.end.column === line.length); - } - - /** - * Tells if a comment encompasses the entire line. - * @param {string} line The source line with a trailing comment - * @param {number} lineNumber The one-indexed line number this is on - * @param {ASTNode} comment The comment to remove - * @returns {boolean} If the comment covers the entire line - */ - function isFullLineComment(line, lineNumber, comment) { - const start = comment.loc.start, - end = comment.loc.end, - isFirstTokenOnLine = !line.slice(0, comment.loc.start.column).trim(); - - return comment && - (start.line < lineNumber || (start.line === lineNumber && isFirstTokenOnLine)) && - (end.line > lineNumber || (end.line === lineNumber && end.column === line.length)); - } - - /** - * Check if a node is a JSXEmptyExpression contained in a single line JSXExpressionContainer. - * @param {ASTNode} node A node to check. - * @returns {boolean} True if the node is a JSXEmptyExpression contained in a single line JSXExpressionContainer. - */ - function isJSXEmptyExpressionInSingleLineContainer(node) { - if (!node || !node.parent || node.type !== "JSXEmptyExpression" || node.parent.type !== "JSXExpressionContainer") { - return false; - } - - const parent = node.parent; - - return parent.loc.start.line === parent.loc.end.line; - } - - /** - * Gets the line after the comment and any remaining trailing whitespace is - * stripped. - * @param {string} line The source line with a trailing comment - * @param {ASTNode} comment The comment to remove - * @returns {string} Line without comment and trailing whitespace - */ - function stripTrailingComment(line, comment) { - - // loc.column is zero-indexed - return line.slice(0, comment.loc.start.column).replace(/\s+$/u, ""); - } - - /** - * Ensure that an array exists at [key] on `object`, and add `value` to it. - * @param {Object} object the object to mutate - * @param {string} key the object's key - * @param {any} value the value to add - * @returns {void} - * @private - */ - function ensureArrayAndPush(object, key, value) { - if (!Array.isArray(object[key])) { - object[key] = []; - } - object[key].push(value); - } - - /** - * Retrieves an array containing all strings (" or ') in the source code. - * @returns {ASTNode[]} An array of string nodes. - */ - function getAllStrings() { - return sourceCode.ast.tokens.filter(token => (token.type === "String" || - (token.type === "JSXText" && sourceCode.getNodeByRangeIndex(token.range[0] - 1).type === "JSXAttribute"))); - } - - /** - * Retrieves an array containing all template literals in the source code. - * @returns {ASTNode[]} An array of template literal nodes. - */ - function getAllTemplateLiterals() { - return sourceCode.ast.tokens.filter(token => token.type === "Template"); - } - - - /** - * Retrieves an array containing all RegExp literals in the source code. - * @returns {ASTNode[]} An array of RegExp literal nodes. - */ - function getAllRegExpLiterals() { - return sourceCode.ast.tokens.filter(token => token.type === "RegularExpression"); - } - - /** - * - * reduce an array of AST nodes by line number, both start and end. - * @param {ASTNode[]} arr array of AST nodes - * @returns {Object} accululated AST nodes - */ - function groupArrayByLineNumber(arr) { - const obj = {}; - - for (let i = 0; i < arr.length; i++) { - const node = arr[i]; - - for (let j = node.loc.start.line; j <= node.loc.end.line; ++j) { - ensureArrayAndPush(obj, j, node); - } - } - return obj; - } - - /** - * Returns an array of all comments in the source code. - * If the element in the array is a JSXEmptyExpression contained with a single line JSXExpressionContainer, - * the element is changed with JSXExpressionContainer node. - * @returns {ASTNode[]} An array of comment nodes - */ - function getAllComments() { - const comments = []; - - sourceCode.getAllComments() - .forEach(commentNode => { - const containingNode = sourceCode.getNodeByRangeIndex(commentNode.range[0]); - - if (isJSXEmptyExpressionInSingleLineContainer(containingNode)) { - - // push a unique node only - if (comments.at(-1) !== containingNode.parent) { - comments.push(containingNode.parent); - } - } else { - comments.push(commentNode); - } - }); - - return comments; - } - - /** - * Check the program for max length - * @param {ASTNode} node Node to examine - * @returns {void} - * @private - */ - function checkProgramForMaxLength(node) { - - // split (honors line-ending) - const lines = sourceCode.lines, - - // list of comments to ignore - comments = ignoreComments || maxCommentLength || ignoreTrailingComments ? getAllComments() : []; - - // we iterate over comments in parallel with the lines - let commentsIndex = 0; - - const strings = getAllStrings(); - const stringsByLine = groupArrayByLineNumber(strings); - - const templateLiterals = getAllTemplateLiterals(); - const templateLiteralsByLine = groupArrayByLineNumber(templateLiterals); - - const regExpLiterals = getAllRegExpLiterals(); - const regExpLiteralsByLine = groupArrayByLineNumber(regExpLiterals); - - lines.forEach((line, i) => { - - // i is zero-indexed, line numbers are one-indexed - const lineNumber = i + 1; - - /* - * if we're checking comment length; we need to know whether this - * line is a comment - */ - let lineIsComment = false; - let textToMeasure; - - /* - * We can short-circuit the comment checks if we're already out of - * comments to check. - */ - if (commentsIndex < comments.length) { - let comment; - - // iterate over comments until we find one past the current line - do { - comment = comments[++commentsIndex]; - } while (comment && comment.loc.start.line <= lineNumber); - - // and step back by one - comment = comments[--commentsIndex]; - - if (isFullLineComment(line, lineNumber, comment)) { - lineIsComment = true; - textToMeasure = line; - } else if (ignoreTrailingComments && isTrailingComment(line, lineNumber, comment)) { - textToMeasure = stripTrailingComment(line, comment); - - // ignore multiple trailing comments in the same line - let lastIndex = commentsIndex; - - while (isTrailingComment(textToMeasure, lineNumber, comments[--lastIndex])) { - textToMeasure = stripTrailingComment(textToMeasure, comments[lastIndex]); - } - } else { - textToMeasure = line; - } - } else { - textToMeasure = line; - } - if (ignorePattern && ignorePattern.test(textToMeasure) || - ignoreUrls && URL_REGEXP.test(textToMeasure) || - ignoreStrings && stringsByLine[lineNumber] || - ignoreTemplateLiterals && templateLiteralsByLine[lineNumber] || - ignoreRegExpLiterals && regExpLiteralsByLine[lineNumber] - ) { - - // ignore this line - return; - } - - const lineLength = computeLineLength(textToMeasure, tabWidth); - const commentLengthApplies = lineIsComment && maxCommentLength; - - if (lineIsComment && ignoreComments) { - return; - } - - const loc = { - start: { - line: lineNumber, - column: 0 - }, - end: { - line: lineNumber, - column: textToMeasure.length - } - }; - - if (commentLengthApplies) { - if (lineLength > maxCommentLength) { - context.report({ - node, - loc, - messageId: "maxComment", - data: { - lineLength, - maxCommentLength - } - }); - } - } else if (lineLength > maxLength) { - context.report({ - node, - loc, - messageId: "max", - data: { - lineLength, - maxLength - } - }); - } - }); - } - - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - Program: checkProgramForMaxLength - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-lines-per-function.js b/graphql/node_modules/eslint/lib/rules/max-lines-per-function.js deleted file mode 100644 index f981922a..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-lines-per-function.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @fileoverview A rule to set the maximum number of line of code in a function. - * @author Pete Ward - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { upperCaseFirst } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const OPTIONS_SCHEMA = { - type: "object", - properties: { - max: { - type: "integer", - minimum: 0 - }, - skipComments: { - type: "boolean" - }, - skipBlankLines: { - type: "boolean" - }, - IIFEs: { - type: "boolean" - } - }, - additionalProperties: false -}; - -const OPTIONS_OR_INTEGER_SCHEMA = { - oneOf: [ - OPTIONS_SCHEMA, - { - type: "integer", - minimum: 1 - } - ] -}; - -/** - * Given a list of comment nodes, return a map with numeric keys (source code line numbers) and comment token values. - * @param {Array} comments An array of comment nodes. - * @returns {Map} A map with numeric keys (source code line numbers) and comment token values. - */ -function getCommentLineNumbers(comments) { - const map = new Map(); - - comments.forEach(comment => { - for (let i = comment.loc.start.line; i <= comment.loc.end.line; i++) { - map.set(i, comment); - } - }); - return map; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum number of lines of code in a function", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-lines-per-function" - }, - - schema: [ - OPTIONS_OR_INTEGER_SCHEMA - ], - messages: { - exceed: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const lines = sourceCode.lines; - - const option = context.options[0]; - let maxLines = 50; - let skipComments = false; - let skipBlankLines = false; - let IIFEs = false; - - if (typeof option === "object") { - maxLines = typeof option.max === "number" ? option.max : 50; - skipComments = !!option.skipComments; - skipBlankLines = !!option.skipBlankLines; - IIFEs = !!option.IIFEs; - } else if (typeof option === "number") { - maxLines = option; - } - - const commentLineNumbers = getCommentLineNumbers(sourceCode.getAllComments()); - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Tells if a comment encompasses the entire line. - * @param {string} line The source line with a trailing comment - * @param {number} lineNumber The one-indexed line number this is on - * @param {ASTNode} comment The comment to remove - * @returns {boolean} If the comment covers the entire line - */ - function isFullLineComment(line, lineNumber, comment) { - const start = comment.loc.start, - end = comment.loc.end, - isFirstTokenOnLine = start.line === lineNumber && !line.slice(0, start.column).trim(), - isLastTokenOnLine = end.line === lineNumber && !line.slice(end.column).trim(); - - return comment && - (start.line < lineNumber || isFirstTokenOnLine) && - (end.line > lineNumber || isLastTokenOnLine); - } - - /** - * Identifies is a node is a FunctionExpression which is part of an IIFE - * @param {ASTNode} node Node to test - * @returns {boolean} True if it's an IIFE - */ - function isIIFE(node) { - return (node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression") && node.parent && node.parent.type === "CallExpression" && node.parent.callee === node; - } - - /** - * Identifies is a node is a FunctionExpression which is embedded within a MethodDefinition or Property - * @param {ASTNode} node Node to test - * @returns {boolean} True if it's a FunctionExpression embedded within a MethodDefinition or Property - */ - function isEmbedded(node) { - if (!node.parent) { - return false; - } - if (node !== node.parent.value) { - return false; - } - if (node.parent.type === "MethodDefinition") { - return true; - } - if (node.parent.type === "Property") { - return node.parent.method === true || node.parent.kind === "get" || node.parent.kind === "set"; - } - return false; - } - - /** - * Count the lines in the function - * @param {ASTNode} funcNode Function AST node - * @returns {void} - * @private - */ - function processFunction(funcNode) { - const node = isEmbedded(funcNode) ? funcNode.parent : funcNode; - - if (!IIFEs && isIIFE(node)) { - return; - } - let lineCount = 0; - - for (let i = node.loc.start.line - 1; i < node.loc.end.line; ++i) { - const line = lines[i]; - - if (skipComments) { - if (commentLineNumbers.has(i + 1) && isFullLineComment(line, i + 1, commentLineNumbers.get(i + 1))) { - continue; - } - } - - if (skipBlankLines) { - if (line.match(/^\s*$/u)) { - continue; - } - } - - lineCount++; - } - - if (lineCount > maxLines) { - const name = upperCaseFirst(astUtils.getFunctionNameWithKind(funcNode)); - - context.report({ - node, - messageId: "exceed", - data: { name, lineCount, maxLines } - }); - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - FunctionDeclaration: processFunction, - FunctionExpression: processFunction, - ArrowFunctionExpression: processFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-lines.js b/graphql/node_modules/eslint/lib/rules/max-lines.js deleted file mode 100644 index d8215794..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-lines.js +++ /dev/null @@ -1,193 +0,0 @@ -/** - * @fileoverview enforce a maximum file length - * @author Alberto Rodríguez - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Creates an array of numbers from `start` up to, but not including, `end` - * @param {number} start The start of the range - * @param {number} end The end of the range - * @returns {number[]} The range of numbers - */ -function range(start, end) { - return [...Array(end - start).keys()].map(x => x + start); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum number of lines per file", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-lines" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - max: { - type: "integer", - minimum: 0 - }, - skipComments: { - type: "boolean" - }, - skipBlankLines: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - } - ], - messages: { - exceed: - "File has too many lines ({{actual}}). Maximum allowed is {{max}}." - } - }, - - create(context) { - const option = context.options[0]; - let max = 300; - - if ( - typeof option === "object" && - Object.hasOwn(option, "max") - ) { - max = option.max; - } else if (typeof option === "number") { - max = option; - } - - const skipComments = option && option.skipComments; - const skipBlankLines = option && option.skipBlankLines; - - const sourceCode = context.sourceCode; - - /** - * Returns whether or not a token is a comment node type - * @param {Token} token The token to check - * @returns {boolean} True if the token is a comment node - */ - function isCommentNodeType(token) { - return token && (token.type === "Block" || token.type === "Line"); - } - - /** - * Returns the line numbers of a comment that don't have any code on the same line - * @param {Node} comment The comment node to check - * @returns {number[]} The line numbers - */ - function getLinesWithoutCode(comment) { - let start = comment.loc.start.line; - let end = comment.loc.end.line; - - let token; - - token = comment; - do { - token = sourceCode.getTokenBefore(token, { - includeComments: true - }); - } while (isCommentNodeType(token)); - - if (token && astUtils.isTokenOnSameLine(token, comment)) { - start += 1; - } - - token = comment; - do { - token = sourceCode.getTokenAfter(token, { - includeComments: true - }); - } while (isCommentNodeType(token)); - - if (token && astUtils.isTokenOnSameLine(comment, token)) { - end -= 1; - } - - if (start <= end) { - return range(start, end + 1); - } - return []; - } - - return { - "Program:exit"() { - let lines = sourceCode.lines.map((text, i) => ({ - lineNumber: i + 1, - text - })); - - /* - * If file ends with a linebreak, `sourceCode.lines` will have one extra empty line at the end. - * That isn't a real line, so we shouldn't count it. - */ - if (lines.length > 1 && lines.at(-1).text === "") { - lines.pop(); - } - - if (skipBlankLines) { - lines = lines.filter(l => l.text.trim() !== ""); - } - - if (skipComments) { - const comments = sourceCode.getAllComments(); - - const commentLines = new Set(comments.flatMap(getLinesWithoutCode)); - - lines = lines.filter( - l => !commentLines.has(l.lineNumber) - ); - } - - if (lines.length > max) { - const loc = { - start: { - line: lines[max].lineNumber, - column: 0 - }, - end: { - line: sourceCode.lines.length, - column: sourceCode.lines.at(-1).length - } - }; - - context.report({ - loc, - messageId: "exceed", - data: { - max, - actual: lines.length - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-nested-callbacks.js b/graphql/node_modules/eslint/lib/rules/max-nested-callbacks.js deleted file mode 100644 index 448c0bd4..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-nested-callbacks.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @fileoverview Rule to enforce a maximum number of nested callbacks. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum depth that callbacks can be nested", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-nested-callbacks" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - maximum: { - type: "integer", - minimum: 0 - }, - max: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - messages: { - exceed: "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Constants - //-------------------------------------------------------------------------- - const option = context.options[0]; - let THRESHOLD = 10; - - if ( - typeof option === "object" && - (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) - ) { - THRESHOLD = option.maximum || option.max; - } else if (typeof option === "number") { - THRESHOLD = option; - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const callbackStack = []; - - /** - * Checks a given function node for too many callbacks. - * @param {ASTNode} node The node to check. - * @returns {void} - * @private - */ - function checkFunction(node) { - const parent = node.parent; - - if (parent.type === "CallExpression") { - callbackStack.push(node); - } - - if (callbackStack.length > THRESHOLD) { - const opts = { num: callbackStack.length, max: THRESHOLD }; - - context.report({ node, messageId: "exceed", data: opts }); - } - } - - /** - * Pops the call stack. - * @returns {void} - * @private - */ - function popStack() { - callbackStack.pop(); - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - ArrowFunctionExpression: checkFunction, - "ArrowFunctionExpression:exit": popStack, - - FunctionExpression: checkFunction, - "FunctionExpression:exit": popStack - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-params.js b/graphql/node_modules/eslint/lib/rules/max-params.js deleted file mode 100644 index eb043ab1..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-params.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @fileoverview Rule to flag when a function has too many parameters - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { upperCaseFirst } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum number of parameters in function definitions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-params" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - maximum: { - type: "integer", - minimum: 0 - }, - max: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - } - ], - messages: { - exceed: "{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const option = context.options[0]; - let numParams = 3; - - if ( - typeof option === "object" && - (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) - ) { - numParams = option.maximum || option.max; - } - if (typeof option === "number") { - numParams = option; - } - - /** - * Checks a function to see if it has too many parameters. - * @param {ASTNode} node The node to check. - * @returns {void} - * @private - */ - function checkFunction(node) { - if (node.params.length > numParams) { - context.report({ - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - node, - messageId: "exceed", - data: { - name: upperCaseFirst(astUtils.getFunctionNameWithKind(node)), - count: node.params.length, - max: numParams - } - }); - } - } - - return { - FunctionDeclaration: checkFunction, - ArrowFunctionExpression: checkFunction, - FunctionExpression: checkFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-statements-per-line.js b/graphql/node_modules/eslint/lib/rules/max-statements-per-line.js deleted file mode 100644 index 4ad73a67..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-statements-per-line.js +++ /dev/null @@ -1,199 +0,0 @@ -/** - * @fileoverview Specify the maximum number of statements allowed per line. - * @author Kenneth Williams - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce a maximum number of statements allowed per line", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-statements-per-line" - }, - - schema: [ - { - type: "object", - properties: { - max: { - type: "integer", - minimum: 1, - default: 1 - } - }, - additionalProperties: false - } - ], - messages: { - exceed: "This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}." - } - }, - - create(context) { - - const sourceCode = context.sourceCode, - options = context.options[0] || {}, - maxStatementsPerLine = typeof options.max !== "undefined" ? options.max : 1; - - let lastStatementLine = 0, - numberOfStatementsOnThisLine = 0, - firstExtraStatement; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const SINGLE_CHILD_ALLOWED = /^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u; - - /** - * Reports with the first extra statement, and clears it. - * @returns {void} - */ - function reportFirstExtraStatementAndClear() { - if (firstExtraStatement) { - context.report({ - node: firstExtraStatement, - messageId: "exceed", - data: { - numberOfStatementsOnThisLine, - maxStatementsPerLine, - statements: numberOfStatementsOnThisLine === 1 ? "statement" : "statements" - } - }); - } - firstExtraStatement = null; - } - - /** - * Gets the actual last token of a given node. - * @param {ASTNode} node A node to get. This is a node except EmptyStatement. - * @returns {Token} The actual last token. - */ - function getActualLastToken(node) { - return sourceCode.getLastToken(node, astUtils.isNotSemicolonToken); - } - - /** - * Addresses a given node. - * It updates the state of this rule, then reports the node if the node violated this rule. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function enterStatement(node) { - const line = node.loc.start.line; - - /* - * Skip to allow non-block statements if this is direct child of control statements. - * `if (a) foo();` is counted as 1. - * But `if (a) foo(); else foo();` should be counted as 2. - */ - if (SINGLE_CHILD_ALLOWED.test(node.parent.type) && - node.parent.alternate !== node - ) { - return; - } - - // Update state. - if (line === lastStatementLine) { - numberOfStatementsOnThisLine += 1; - } else { - reportFirstExtraStatementAndClear(); - numberOfStatementsOnThisLine = 1; - lastStatementLine = line; - } - - // Reports if the node violated this rule. - if (numberOfStatementsOnThisLine === maxStatementsPerLine + 1) { - firstExtraStatement = firstExtraStatement || node; - } - } - - /** - * Updates the state of this rule with the end line of leaving node to check with the next statement. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function leaveStatement(node) { - const line = getActualLastToken(node).loc.end.line; - - // Update state. - if (line !== lastStatementLine) { - reportFirstExtraStatementAndClear(); - numberOfStatementsOnThisLine = 1; - lastStatementLine = line; - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - BreakStatement: enterStatement, - ClassDeclaration: enterStatement, - ContinueStatement: enterStatement, - DebuggerStatement: enterStatement, - DoWhileStatement: enterStatement, - ExpressionStatement: enterStatement, - ForInStatement: enterStatement, - ForOfStatement: enterStatement, - ForStatement: enterStatement, - FunctionDeclaration: enterStatement, - IfStatement: enterStatement, - ImportDeclaration: enterStatement, - LabeledStatement: enterStatement, - ReturnStatement: enterStatement, - SwitchStatement: enterStatement, - ThrowStatement: enterStatement, - TryStatement: enterStatement, - VariableDeclaration: enterStatement, - WhileStatement: enterStatement, - WithStatement: enterStatement, - ExportNamedDeclaration: enterStatement, - ExportDefaultDeclaration: enterStatement, - ExportAllDeclaration: enterStatement, - - "BreakStatement:exit": leaveStatement, - "ClassDeclaration:exit": leaveStatement, - "ContinueStatement:exit": leaveStatement, - "DebuggerStatement:exit": leaveStatement, - "DoWhileStatement:exit": leaveStatement, - "ExpressionStatement:exit": leaveStatement, - "ForInStatement:exit": leaveStatement, - "ForOfStatement:exit": leaveStatement, - "ForStatement:exit": leaveStatement, - "FunctionDeclaration:exit": leaveStatement, - "IfStatement:exit": leaveStatement, - "ImportDeclaration:exit": leaveStatement, - "LabeledStatement:exit": leaveStatement, - "ReturnStatement:exit": leaveStatement, - "SwitchStatement:exit": leaveStatement, - "ThrowStatement:exit": leaveStatement, - "TryStatement:exit": leaveStatement, - "VariableDeclaration:exit": leaveStatement, - "WhileStatement:exit": leaveStatement, - "WithStatement:exit": leaveStatement, - "ExportNamedDeclaration:exit": leaveStatement, - "ExportDefaultDeclaration:exit": leaveStatement, - "ExportAllDeclaration:exit": leaveStatement, - "Program:exit": reportFirstExtraStatementAndClear - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/max-statements.js b/graphql/node_modules/eslint/lib/rules/max-statements.js deleted file mode 100644 index 96d5ea7b..00000000 --- a/graphql/node_modules/eslint/lib/rules/max-statements.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @fileoverview A rule to set the maximum number of statements in a function. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { upperCaseFirst } = require("../shared/string-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce a maximum number of statements allowed in function blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/max-statements" - }, - - schema: [ - { - oneOf: [ - { - type: "integer", - minimum: 0 - }, - { - type: "object", - properties: { - maximum: { - type: "integer", - minimum: 0 - }, - max: { - type: "integer", - minimum: 0 - } - }, - additionalProperties: false - } - ] - }, - { - type: "object", - properties: { - ignoreTopLevelFunctions: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - messages: { - exceed: "{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const functionStack = [], - option = context.options[0], - ignoreTopLevelFunctions = context.options[1] && context.options[1].ignoreTopLevelFunctions || false, - topLevelFunctions = []; - let maxStatements = 10; - - if ( - typeof option === "object" && - (Object.hasOwn(option, "maximum") || Object.hasOwn(option, "max")) - ) { - maxStatements = option.maximum || option.max; - } else if (typeof option === "number") { - maxStatements = option; - } - - /** - * Reports a node if it has too many statements - * @param {ASTNode} node node to evaluate - * @param {int} count Number of statements in node - * @param {int} max Maximum number of statements allowed - * @returns {void} - * @private - */ - function reportIfTooManyStatements(node, count, max) { - if (count > max) { - const name = upperCaseFirst(astUtils.getFunctionNameWithKind(node)); - - context.report({ - node, - messageId: "exceed", - data: { name, count, max } - }); - } - } - - /** - * When parsing a new function, store it in our function stack - * @returns {void} - * @private - */ - function startFunction() { - functionStack.push(0); - } - - /** - * Evaluate the node at the end of function - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function endFunction(node) { - const count = functionStack.pop(); - - /* - * This rule does not apply to class static blocks, but we have to track them so - * that statements in them do not count as statements in the enclosing function. - */ - if (node.type === "StaticBlock") { - return; - } - - if (ignoreTopLevelFunctions && functionStack.length === 0) { - topLevelFunctions.push({ node, count }); - } else { - reportIfTooManyStatements(node, count, maxStatements); - } - } - - /** - * Increment the count of the functions - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function countStatements(node) { - functionStack[functionStack.length - 1] += node.body.length; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - FunctionDeclaration: startFunction, - FunctionExpression: startFunction, - ArrowFunctionExpression: startFunction, - StaticBlock: startFunction, - - BlockStatement: countStatements, - - "FunctionDeclaration:exit": endFunction, - "FunctionExpression:exit": endFunction, - "ArrowFunctionExpression:exit": endFunction, - "StaticBlock:exit": endFunction, - - "Program:exit"() { - if (topLevelFunctions.length === 1) { - return; - } - - topLevelFunctions.forEach(element => { - const count = element.count; - const node = element.node; - - reportIfTooManyStatements(node, count, maxStatements); - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/multiline-comment-style.js b/graphql/node_modules/eslint/lib/rules/multiline-comment-style.js deleted file mode 100644 index 098e054b..00000000 --- a/graphql/node_modules/eslint/lib/rules/multiline-comment-style.js +++ /dev/null @@ -1,476 +0,0 @@ -/** - * @fileoverview enforce a particular style for multiline comments - * @author Teddy Katz - * @deprecated in ESLint v9.3.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - docs: { - description: "Enforce a particular style for multiline comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/multiline-comment-style" - }, - - fixable: "whitespace", - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["starred-block", "bare-block"] - } - ], - additionalItems: false - }, - { - type: "array", - items: [ - { - enum: ["separate-lines"] - }, - { - type: "object", - properties: { - checkJSDoc: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - additionalItems: false - } - ] - }, - messages: { - expectedBlock: "Expected a block comment instead of consecutive line comments.", - expectedBareBlock: "Expected a block comment without padding stars.", - startNewline: "Expected a linebreak after '/*'.", - endNewline: "Expected a linebreak before '*/'.", - missingStar: "Expected a '*' at the start of this line.", - alignment: "Expected this line to be aligned with the start of the comment.", - expectedLines: "Expected multiple line comments instead of a block comment." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const option = context.options[0] || "starred-block"; - const params = context.options[1] || {}; - const checkJSDoc = !!params.checkJSDoc; - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Checks if a comment line is starred. - * @param {string} line A string representing a comment line. - * @returns {boolean} Whether or not the comment line is starred. - */ - function isStarredCommentLine(line) { - return /^\s*\*/u.test(line); - } - - /** - * Checks if a comment group is in starred-block form. - * @param {Token[]} commentGroup A group of comments, containing either multiple line comments or a single block comment. - * @returns {boolean} Whether or not the comment group is in starred block form. - */ - function isStarredBlockComment([firstComment]) { - if (firstComment.type !== "Block") { - return false; - } - - const lines = firstComment.value.split(astUtils.LINEBREAK_MATCHER); - - // The first and last lines can only contain whitespace. - return lines.length > 0 && lines.every((line, i) => (i === 0 || i === lines.length - 1 ? /^\s*$/u : /^\s*\*/u).test(line)); - } - - /** - * Checks if a comment group is in JSDoc form. - * @param {Token[]} commentGroup A group of comments, containing either multiple line comments or a single block comment. - * @returns {boolean} Whether or not the comment group is in JSDoc form. - */ - function isJSDocComment([firstComment]) { - if (firstComment.type !== "Block") { - return false; - } - - const lines = firstComment.value.split(astUtils.LINEBREAK_MATCHER); - - return /^\*\s*$/u.test(lines[0]) && - lines.slice(1, -1).every(line => /^\s* /u.test(line)) && - /^\s*$/u.test(lines.at(-1)); - } - - /** - * Processes a comment group that is currently in separate-line form, calculating the offset for each line. - * @param {Token[]} commentGroup A group of comments containing multiple line comments. - * @returns {string[]} An array of the processed lines. - */ - function processSeparateLineComments(commentGroup) { - const allLinesHaveLeadingSpace = commentGroup - .map(({ value }) => value) - .filter(line => line.trim().length) - .every(line => line.startsWith(" ")); - - return commentGroup.map(({ value }) => (allLinesHaveLeadingSpace ? value.replace(/^ /u, "") : value)); - } - - /** - * Processes a comment group that is currently in starred-block form, calculating the offset for each line. - * @param {Token} comment A single block comment token in starred-block form. - * @returns {string[]} An array of the processed lines. - */ - function processStarredBlockComment(comment) { - const lines = comment.value.split(astUtils.LINEBREAK_MATCHER) - .filter((line, i, linesArr) => !(i === 0 || i === linesArr.length - 1)) - .map(line => line.replace(/^\s*$/u, "")); - const allLinesHaveLeadingSpace = lines - .map(line => line.replace(/\s*\*/u, "")) - .filter(line => line.trim().length) - .every(line => line.startsWith(" ")); - - return lines.map(line => line.replace(allLinesHaveLeadingSpace ? /\s*\* ?/u : /\s*\*/u, "")); - } - - /** - * Processes a comment group that is currently in bare-block form, calculating the offset for each line. - * @param {Token} comment A single block comment token in bare-block form. - * @returns {string[]} An array of the processed lines. - */ - function processBareBlockComment(comment) { - const lines = comment.value.split(astUtils.LINEBREAK_MATCHER).map(line => line.replace(/^\s*$/u, "")); - const leadingWhitespace = `${sourceCode.text.slice(comment.range[0] - comment.loc.start.column, comment.range[0])} `; - let offset = ""; - - /* - * Calculate the offset of the least indented line and use that as the basis for offsetting all the lines. - * The first line should not be checked because it is inline with the opening block comment delimiter. - */ - for (const [i, line] of lines.entries()) { - if (!line.trim().length || i === 0) { - continue; - } - - const [, lineOffset] = line.match(/^(\s*\*?\s*)/u); - - if (lineOffset.length < leadingWhitespace.length) { - const newOffset = leadingWhitespace.slice(lineOffset.length - leadingWhitespace.length); - - if (newOffset.length > offset.length) { - offset = newOffset; - } - } - } - - return lines.map(line => { - const match = line.match(/^(\s*\*?\s*)(.*)/u); - const [, lineOffset, lineContents] = match; - - if (lineOffset.length > leadingWhitespace.length) { - return `${lineOffset.slice(leadingWhitespace.length - (offset.length + lineOffset.length))}${lineContents}`; - } - - if (lineOffset.length < leadingWhitespace.length) { - return `${lineOffset.slice(leadingWhitespace.length)}${lineContents}`; - } - - return lineContents; - }); - } - - /** - * Gets a list of comment lines in a group, formatting leading whitespace as necessary. - * @param {Token[]} commentGroup A group of comments containing either multiple line comments or a single block comment. - * @returns {string[]} A list of comment lines. - */ - function getCommentLines(commentGroup) { - const [firstComment] = commentGroup; - - if (firstComment.type === "Line") { - return processSeparateLineComments(commentGroup); - } - - if (isStarredBlockComment(commentGroup)) { - return processStarredBlockComment(firstComment); - } - - return processBareBlockComment(firstComment); - } - - /** - * Gets the initial offset (whitespace) from the beginning of a line to a given comment token. - * @param {Token} comment The token to check. - * @returns {string} The offset from the beginning of a line to the token. - */ - function getInitialOffset(comment) { - return sourceCode.text.slice(comment.range[0] - comment.loc.start.column, comment.range[0]); - } - - /** - * Converts a comment into starred-block form - * @param {Token} firstComment The first comment of the group being converted - * @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment - * @returns {string} A representation of the comment value in starred-block form, excluding start and end markers - */ - function convertToStarredBlock(firstComment, commentLinesList) { - const initialOffset = getInitialOffset(firstComment); - - return `/*\n${commentLinesList.map(line => `${initialOffset} * ${line}`).join("\n")}\n${initialOffset} */`; - } - - /** - * Converts a comment into separate-line form - * @param {Token} firstComment The first comment of the group being converted - * @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment - * @returns {string} A representation of the comment value in separate-line form - */ - function convertToSeparateLines(firstComment, commentLinesList) { - return commentLinesList.map(line => `// ${line}`).join(`\n${getInitialOffset(firstComment)}`); - } - - /** - * Converts a comment into bare-block form - * @param {Token} firstComment The first comment of the group being converted - * @param {string[]} commentLinesList A list of lines to appear in the new starred-block comment - * @returns {string} A representation of the comment value in bare-block form - */ - function convertToBlock(firstComment, commentLinesList) { - return `/* ${commentLinesList.join(`\n${getInitialOffset(firstComment)} `)} */`; - } - - /** - * Each method checks a group of comments to see if it's valid according to the given option. - * @param {Token[]} commentGroup A list of comments that appear together. This will either contain a single - * block comment or multiple line comments. - * @returns {void} - */ - const commentGroupCheckers = { - "starred-block"(commentGroup) { - const [firstComment] = commentGroup; - const commentLines = getCommentLines(commentGroup); - - if (commentLines.some(value => value.includes("*/"))) { - return; - } - - if (commentGroup.length > 1) { - context.report({ - loc: { - start: firstComment.loc.start, - end: commentGroup.at(-1).loc.end - }, - messageId: "expectedBlock", - fix(fixer) { - const range = [firstComment.range[0], commentGroup.at(-1).range[1]]; - - return commentLines.some(value => value.startsWith("/")) - ? null - : fixer.replaceTextRange(range, convertToStarredBlock(firstComment, commentLines)); - } - }); - } else { - const lines = firstComment.value.split(astUtils.LINEBREAK_MATCHER); - const expectedLeadingWhitespace = getInitialOffset(firstComment); - const expectedLinePrefix = `${expectedLeadingWhitespace} *`; - - if (!/^\*?\s*$/u.test(lines[0])) { - const start = firstComment.value.startsWith("*") ? firstComment.range[0] + 1 : firstComment.range[0]; - - context.report({ - loc: { - start: firstComment.loc.start, - end: { line: firstComment.loc.start.line, column: firstComment.loc.start.column + 2 } - }, - messageId: "startNewline", - fix: fixer => fixer.insertTextAfterRange([start, start + 2], `\n${expectedLinePrefix}`) - }); - } - - if (!/^\s*$/u.test(lines.at(-1))) { - context.report({ - loc: { - start: { line: firstComment.loc.end.line, column: firstComment.loc.end.column - 2 }, - end: firstComment.loc.end - }, - messageId: "endNewline", - fix: fixer => fixer.replaceTextRange([firstComment.range[1] - 2, firstComment.range[1]], `\n${expectedLinePrefix}/`) - }); - } - - for (let lineNumber = firstComment.loc.start.line + 1; lineNumber <= firstComment.loc.end.line; lineNumber++) { - const lineText = sourceCode.lines[lineNumber - 1]; - const errorType = isStarredCommentLine(lineText) - ? "alignment" - : "missingStar"; - - if (!lineText.startsWith(expectedLinePrefix)) { - context.report({ - loc: { - start: { line: lineNumber, column: 0 }, - end: { line: lineNumber, column: lineText.length } - }, - messageId: errorType, - fix(fixer) { - const lineStartIndex = sourceCode.getIndexFromLoc({ line: lineNumber, column: 0 }); - - if (errorType === "alignment") { - const [, commentTextPrefix = ""] = lineText.match(/^(\s*\*)/u) || []; - const commentTextStartIndex = lineStartIndex + commentTextPrefix.length; - - return fixer.replaceTextRange([lineStartIndex, commentTextStartIndex], expectedLinePrefix); - } - - const [, commentTextPrefix = ""] = lineText.match(/^(\s*)/u) || []; - const commentTextStartIndex = lineStartIndex + commentTextPrefix.length; - let offset; - - for (const [idx, line] of lines.entries()) { - if (!/\S+/u.test(line)) { - continue; - } - - const lineTextToAlignWith = sourceCode.lines[firstComment.loc.start.line - 1 + idx]; - const [, prefix = "", initialOffset = ""] = lineTextToAlignWith.match(/^(\s*(?:\/?\*)?(\s*))/u) || []; - - offset = `${commentTextPrefix.slice(prefix.length)}${initialOffset}`; - - if (/^\s*\//u.test(lineText) && offset.length === 0) { - offset += " "; - } - break; - } - - return fixer.replaceTextRange([lineStartIndex, commentTextStartIndex], `${expectedLinePrefix}${offset}`); - } - }); - } - } - } - }, - "separate-lines"(commentGroup) { - const [firstComment] = commentGroup; - - const isJSDoc = isJSDocComment(commentGroup); - - if (firstComment.type !== "Block" || (!checkJSDoc && isJSDoc)) { - return; - } - - let commentLines = getCommentLines(commentGroup); - - if (isJSDoc) { - commentLines = commentLines.slice(1, commentLines.length - 1); - } - - const tokenAfter = sourceCode.getTokenAfter(firstComment, { includeComments: true }); - - if (tokenAfter && firstComment.loc.end.line === tokenAfter.loc.start.line) { - return; - } - - context.report({ - loc: { - start: firstComment.loc.start, - end: { line: firstComment.loc.start.line, column: firstComment.loc.start.column + 2 } - }, - messageId: "expectedLines", - fix(fixer) { - return fixer.replaceText(firstComment, convertToSeparateLines(firstComment, commentLines)); - } - }); - }, - "bare-block"(commentGroup) { - if (isJSDocComment(commentGroup)) { - return; - } - - const [firstComment] = commentGroup; - const commentLines = getCommentLines(commentGroup); - - // Disallows consecutive line comments in favor of using a block comment. - if (firstComment.type === "Line" && commentLines.length > 1 && - !commentLines.some(value => value.includes("*/"))) { - context.report({ - loc: { - start: firstComment.loc.start, - end: commentGroup.at(-1).loc.end - }, - messageId: "expectedBlock", - fix(fixer) { - return fixer.replaceTextRange( - [firstComment.range[0], commentGroup.at(-1).range[1]], - convertToBlock(firstComment, commentLines) - ); - } - }); - } - - // Prohibits block comments from having a * at the beginning of each line. - if (isStarredBlockComment(commentGroup)) { - context.report({ - loc: { - start: firstComment.loc.start, - end: { line: firstComment.loc.start.line, column: firstComment.loc.start.column + 2 } - }, - messageId: "expectedBareBlock", - fix(fixer) { - return fixer.replaceText(firstComment, convertToBlock(firstComment, commentLines)); - } - }); - } - } - }; - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - Program() { - return sourceCode.getAllComments() - .filter(comment => comment.type !== "Shebang") - .filter(comment => !astUtils.COMMENTS_IGNORE_PATTERN.test(comment.value)) - .filter(comment => { - const tokenBefore = sourceCode.getTokenBefore(comment, { includeComments: true }); - - return !tokenBefore || tokenBefore.loc.end.line < comment.loc.start.line; - }) - .reduce((commentGroups, comment, index, commentList) => { - const tokenBefore = sourceCode.getTokenBefore(comment, { includeComments: true }); - - if ( - comment.type === "Line" && - index && commentList[index - 1].type === "Line" && - tokenBefore && tokenBefore.loc.end.line === comment.loc.start.line - 1 && - tokenBefore === commentList[index - 1] - ) { - commentGroups.at(-1).push(comment); - } else { - commentGroups.push([comment]); - } - - return commentGroups; - }, []) - .filter(commentGroup => !(commentGroup.length === 1 && commentGroup[0].loc.start.line === commentGroup[0].loc.end.line)) - .forEach(commentGroupCheckers[option]); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/multiline-ternary.js b/graphql/node_modules/eslint/lib/rules/multiline-ternary.js deleted file mode 100644 index 8155dd7a..00000000 --- a/graphql/node_modules/eslint/lib/rules/multiline-ternary.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview Enforce newlines between operands of ternary expressions - * @author Kai Cataldo - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce newlines between operands of ternary expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/multiline-ternary" - }, - - schema: [ - { - enum: ["always", "always-multiline", "never"] - } - ], - - messages: { - expectedTestCons: "Expected newline between test and consequent of ternary expression.", - expectedConsAlt: "Expected newline between consequent and alternate of ternary expression.", - unexpectedTestCons: "Unexpected newline between test and consequent of ternary expression.", - unexpectedConsAlt: "Unexpected newline between consequent and alternate of ternary expression." - }, - - fixable: "whitespace" - }, - - create(context) { - const sourceCode = context.sourceCode; - const option = context.options[0]; - const multiline = option !== "never"; - const allowSingleLine = option === "always-multiline"; - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ConditionalExpression(node) { - const questionToken = sourceCode.getTokenAfter(node.test, astUtils.isNotClosingParenToken); - const colonToken = sourceCode.getTokenAfter(node.consequent, astUtils.isNotClosingParenToken); - - const firstTokenOfTest = sourceCode.getFirstToken(node); - const lastTokenOfTest = sourceCode.getTokenBefore(questionToken); - const firstTokenOfConsequent = sourceCode.getTokenAfter(questionToken); - const lastTokenOfConsequent = sourceCode.getTokenBefore(colonToken); - const firstTokenOfAlternate = sourceCode.getTokenAfter(colonToken); - - const areTestAndConsequentOnSameLine = astUtils.isTokenOnSameLine(lastTokenOfTest, firstTokenOfConsequent); - const areConsequentAndAlternateOnSameLine = astUtils.isTokenOnSameLine(lastTokenOfConsequent, firstTokenOfAlternate); - - const hasComments = !!sourceCode.getCommentsInside(node).length; - - if (!multiline) { - if (!areTestAndConsequentOnSameLine) { - context.report({ - node: node.test, - loc: { - start: firstTokenOfTest.loc.start, - end: lastTokenOfTest.loc.end - }, - messageId: "unexpectedTestCons", - fix(fixer) { - if (hasComments) { - return null; - } - const fixers = []; - const areTestAndQuestionOnSameLine = astUtils.isTokenOnSameLine(lastTokenOfTest, questionToken); - const areQuestionAndConsOnSameLine = astUtils.isTokenOnSameLine(questionToken, firstTokenOfConsequent); - - if (!areTestAndQuestionOnSameLine) { - fixers.push(fixer.removeRange([lastTokenOfTest.range[1], questionToken.range[0]])); - } - if (!areQuestionAndConsOnSameLine) { - fixers.push(fixer.removeRange([questionToken.range[1], firstTokenOfConsequent.range[0]])); - } - - return fixers; - } - }); - } - - if (!areConsequentAndAlternateOnSameLine) { - context.report({ - node: node.consequent, - loc: { - start: firstTokenOfConsequent.loc.start, - end: lastTokenOfConsequent.loc.end - }, - messageId: "unexpectedConsAlt", - fix(fixer) { - if (hasComments) { - return null; - } - const fixers = []; - const areConsAndColonOnSameLine = astUtils.isTokenOnSameLine(lastTokenOfConsequent, colonToken); - const areColonAndAltOnSameLine = astUtils.isTokenOnSameLine(colonToken, firstTokenOfAlternate); - - if (!areConsAndColonOnSameLine) { - fixers.push(fixer.removeRange([lastTokenOfConsequent.range[1], colonToken.range[0]])); - } - if (!areColonAndAltOnSameLine) { - fixers.push(fixer.removeRange([colonToken.range[1], firstTokenOfAlternate.range[0]])); - } - - return fixers; - } - }); - } - } else { - if (allowSingleLine && node.loc.start.line === node.loc.end.line) { - return; - } - - if (areTestAndConsequentOnSameLine) { - context.report({ - node: node.test, - loc: { - start: firstTokenOfTest.loc.start, - end: lastTokenOfTest.loc.end - }, - messageId: "expectedTestCons", - fix: fixer => (hasComments ? null : ( - fixer.replaceTextRange( - [ - lastTokenOfTest.range[1], - questionToken.range[0] - ], - "\n" - ) - )) - }); - } - - if (areConsequentAndAlternateOnSameLine) { - context.report({ - node: node.consequent, - loc: { - start: firstTokenOfConsequent.loc.start, - end: lastTokenOfConsequent.loc.end - }, - messageId: "expectedConsAlt", - fix: (fixer => (hasComments ? null : ( - fixer.replaceTextRange( - [ - lastTokenOfConsequent.range[1], - colonToken.range[0] - ], - "\n" - ) - ))) - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/new-cap.js b/graphql/node_modules/eslint/lib/rules/new-cap.js deleted file mode 100644 index 638e64c0..00000000 --- a/graphql/node_modules/eslint/lib/rules/new-cap.js +++ /dev/null @@ -1,276 +0,0 @@ -/** - * @fileoverview Rule to flag use of constructors without capital letters - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const CAPS_ALLOWED = [ - "Array", - "Boolean", - "Date", - "Error", - "Function", - "Number", - "Object", - "RegExp", - "String", - "Symbol", - "BigInt" -]; - -/** - * Ensure that if the key is provided, it must be an array. - * @param {Object} obj Object to check with `key`. - * @param {string} key Object key to check on `obj`. - * @param {any} fallback If obj[key] is not present, this will be returned. - * @throws {TypeError} If key is not an own array type property of `obj`. - * @returns {string[]} Returns obj[key] if it's an Array, otherwise `fallback` - */ -function checkArray(obj, key, fallback) { - - /* c8 ignore start */ - if (Object.hasOwn(obj, key) && !Array.isArray(obj[key])) { - throw new TypeError(`${key}, if provided, must be an Array`); - }/* c8 ignore stop */ - return obj[key] || fallback; -} - -/** - * A reducer function to invert an array to an Object mapping the string form of the key, to `true`. - * @param {Object} map Accumulator object for the reduce. - * @param {string} key Object key to set to `true`. - * @returns {Object} Returns the updated Object for further reduction. - */ -function invert(map, key) { - map[key] = true; - return map; -} - -/** - * Creates an object with the cap is new exceptions as its keys and true as their values. - * @param {Object} config Rule configuration - * @returns {Object} Object with cap is new exceptions. - */ -function calculateCapIsNewExceptions(config) { - let capIsNewExceptions = checkArray(config, "capIsNewExceptions", CAPS_ALLOWED); - - if (capIsNewExceptions !== CAPS_ALLOWED) { - capIsNewExceptions = capIsNewExceptions.concat(CAPS_ALLOWED); - } - - return capIsNewExceptions.reduce(invert, {}); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require constructor names to begin with a capital letter", - recommended: false, - url: "https://eslint.org/docs/latest/rules/new-cap" - }, - - schema: [ - { - type: "object", - properties: { - newIsCap: { - type: "boolean", - default: true - }, - capIsNew: { - type: "boolean", - default: true - }, - newIsCapExceptions: { - type: "array", - items: { - type: "string" - } - }, - newIsCapExceptionPattern: { - type: "string" - }, - capIsNewExceptions: { - type: "array", - items: { - type: "string" - } - }, - capIsNewExceptionPattern: { - type: "string" - }, - properties: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - messages: { - upper: "A function with a name starting with an uppercase letter should only be used as a constructor.", - lower: "A constructor name should not start with a lowercase letter." - } - }, - - create(context) { - - const config = Object.assign({}, context.options[0]); - - config.newIsCap = config.newIsCap !== false; - config.capIsNew = config.capIsNew !== false; - const skipProperties = config.properties === false; - - const newIsCapExceptions = checkArray(config, "newIsCapExceptions", []).reduce(invert, {}); - const newIsCapExceptionPattern = config.newIsCapExceptionPattern ? new RegExp(config.newIsCapExceptionPattern, "u") : null; - - const capIsNewExceptions = calculateCapIsNewExceptions(config); - const capIsNewExceptionPattern = config.capIsNewExceptionPattern ? new RegExp(config.capIsNewExceptionPattern, "u") : null; - - const listeners = {}; - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Get exact callee name from expression - * @param {ASTNode} node CallExpression or NewExpression node - * @returns {string} name - */ - function extractNameFromExpression(node) { - return node.callee.type === "Identifier" - ? node.callee.name - : astUtils.getStaticPropertyName(node.callee) || ""; - } - - /** - * Returns the capitalization state of the string - - * Whether the first character is uppercase, lowercase, or non-alphabetic - * @param {string} str String - * @returns {string} capitalization state: "non-alpha", "lower", or "upper" - */ - function getCap(str) { - const firstChar = str.charAt(0); - - const firstCharLower = firstChar.toLowerCase(); - const firstCharUpper = firstChar.toUpperCase(); - - if (firstCharLower === firstCharUpper) { - - // char has no uppercase variant, so it's non-alphabetic - return "non-alpha"; - } - if (firstChar === firstCharLower) { - return "lower"; - } - return "upper"; - - } - - /** - * Check if capitalization is allowed for a CallExpression - * @param {Object} allowedMap Object mapping calleeName to a Boolean - * @param {ASTNode} node CallExpression node - * @param {string} calleeName Capitalized callee name from a CallExpression - * @param {Object} pattern RegExp object from options pattern - * @returns {boolean} Returns true if the callee may be capitalized - */ - function isCapAllowed(allowedMap, node, calleeName, pattern) { - const sourceText = sourceCode.getText(node.callee); - - if (allowedMap[calleeName] || allowedMap[sourceText]) { - return true; - } - - if (pattern && pattern.test(sourceText)) { - return true; - } - - const callee = astUtils.skipChainExpression(node.callee); - - if (calleeName === "UTC" && callee.type === "MemberExpression") { - - // allow if callee is Date.UTC - return callee.object.type === "Identifier" && - callee.object.name === "Date"; - } - - return skipProperties && callee.type === "MemberExpression"; - } - - /** - * Reports the given messageId for the given node. The location will be the start of the property or the callee. - * @param {ASTNode} node CallExpression or NewExpression node. - * @param {string} messageId The messageId to report. - * @returns {void} - */ - function report(node, messageId) { - let callee = astUtils.skipChainExpression(node.callee); - - if (callee.type === "MemberExpression") { - callee = callee.property; - } - - context.report({ node, loc: callee.loc, messageId }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - if (config.newIsCap) { - listeners.NewExpression = function(node) { - - const constructorName = extractNameFromExpression(node); - - if (constructorName) { - const capitalization = getCap(constructorName); - const isAllowed = capitalization !== "lower" || isCapAllowed(newIsCapExceptions, node, constructorName, newIsCapExceptionPattern); - - if (!isAllowed) { - report(node, "lower"); - } - } - }; - } - - if (config.capIsNew) { - listeners.CallExpression = function(node) { - - const calleeName = extractNameFromExpression(node); - - if (calleeName) { - const capitalization = getCap(calleeName); - const isAllowed = capitalization !== "upper" || isCapAllowed(capIsNewExceptions, node, calleeName, capIsNewExceptionPattern); - - if (!isAllowed) { - report(node, "upper"); - } - } - }; - } - - return listeners; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/new-parens.js b/graphql/node_modules/eslint/lib/rules/new-parens.js deleted file mode 100644 index 1c5d21d4..00000000 --- a/graphql/node_modules/eslint/lib/rules/new-parens.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @fileoverview Rule to flag when using constructor without parentheses - * @author Ilya Volodin - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce or disallow parentheses when invoking a constructor with no arguments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/new-parens" - }, - - fixable: "code", - schema: [ - { - enum: ["always", "never"] - } - ], - messages: { - missing: "Missing '()' invoking a constructor.", - unnecessary: "Unnecessary '()' invoking a constructor with no arguments." - } - }, - - create(context) { - const options = context.options; - const always = options[0] !== "never"; // Default is always - - const sourceCode = context.sourceCode; - - return { - NewExpression(node) { - if (node.arguments.length !== 0) { - return; // if there are arguments, there have to be parens - } - - const lastToken = sourceCode.getLastToken(node); - const hasLastParen = lastToken && astUtils.isClosingParenToken(lastToken); - - // `hasParens` is true only if the new expression ends with its own parens, e.g., new new foo() does not end with its own parens - const hasParens = hasLastParen && - astUtils.isOpeningParenToken(sourceCode.getTokenBefore(lastToken)) && - node.callee.range[1] < node.range[1]; - - if (always) { - if (!hasParens) { - context.report({ - node, - messageId: "missing", - fix: fixer => fixer.insertTextAfter(node, "()") - }); - } - } else { - if (hasParens) { - context.report({ - node, - messageId: "unnecessary", - fix: fixer => [ - fixer.remove(sourceCode.getTokenBefore(lastToken)), - fixer.remove(lastToken), - fixer.insertTextBefore(node, "("), - fixer.insertTextAfter(node, ")") - ] - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/newline-after-var.js b/graphql/node_modules/eslint/lib/rules/newline-after-var.js deleted file mode 100644 index 6e447641..00000000 --- a/graphql/node_modules/eslint/lib/rules/newline-after-var.js +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @fileoverview Rule to check empty newline after "var" statement - * @author Gopal Venkatesan - * @deprecated in ESLint v4.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Require or disallow an empty line after variable declarations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/newline-after-var" - }, - schema: [ - { - enum: ["never", "always"] - } - ], - fixable: "whitespace", - messages: { - expected: "Expected blank line after variable declarations.", - unexpected: "Unexpected blank line after variable declarations." - }, - - deprecated: true, - - replacedBy: ["padding-line-between-statements"] - }, - - create(context) { - const sourceCode = context.sourceCode; - - // Default `mode` to "always". - const mode = context.options[0] === "never" ? "never" : "always"; - - // Cache starting and ending line numbers of comments for faster lookup - const commentEndLine = sourceCode.getAllComments().reduce((result, token) => { - result[token.loc.start.line] = token.loc.end.line; - return result; - }, {}); - - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Gets a token from the given node to compare line to the next statement. - * - * In general, the token is the last token of the node. However, the token is the second last token if the following conditions satisfy. - * - * - The last token is semicolon. - * - The semicolon is on a different line from the previous token of the semicolon. - * - * This behavior would address semicolon-less style code. e.g.: - * - * var foo = 1 - * - * ;(a || b).doSomething() - * @param {ASTNode} node The node to get. - * @returns {Token} The token to compare line to the next statement. - */ - function getLastToken(node) { - const lastToken = sourceCode.getLastToken(node); - - if (lastToken.type === "Punctuator" && lastToken.value === ";") { - const prevToken = sourceCode.getTokenBefore(lastToken); - - if (prevToken.loc.end.line !== lastToken.loc.start.line) { - return prevToken; - } - } - - return lastToken; - } - - /** - * Determine if provided keyword is a variable declaration - * @private - * @param {string} keyword keyword to test - * @returns {boolean} True if `keyword` is a type of var - */ - function isVar(keyword) { - return keyword === "var" || keyword === "let" || keyword === "const"; - } - - /** - * Determine if provided keyword is a variant of for specifiers - * @private - * @param {string} keyword keyword to test - * @returns {boolean} True if `keyword` is a variant of for specifier - */ - function isForTypeSpecifier(keyword) { - return keyword === "ForStatement" || keyword === "ForInStatement" || keyword === "ForOfStatement"; - } - - /** - * Determine if provided keyword is an export specifiers - * @private - * @param {string} nodeType nodeType to test - * @returns {boolean} True if `nodeType` is an export specifier - */ - function isExportSpecifier(nodeType) { - return nodeType === "ExportNamedDeclaration" || nodeType === "ExportSpecifier" || - nodeType === "ExportDefaultDeclaration" || nodeType === "ExportAllDeclaration"; - } - - /** - * Determine if provided node is the last of their parent block. - * @private - * @param {ASTNode} node node to test - * @returns {boolean} True if `node` is last of their parent block. - */ - function isLastNode(node) { - const token = sourceCode.getTokenAfter(node); - - return !token || (token.type === "Punctuator" && token.value === "}"); - } - - /** - * Gets the last line of a group of consecutive comments - * @param {number} commentStartLine The starting line of the group - * @returns {number} The number of the last comment line of the group - */ - function getLastCommentLineOfBlock(commentStartLine) { - const currentCommentEnd = commentEndLine[commentStartLine]; - - return commentEndLine[currentCommentEnd + 1] ? getLastCommentLineOfBlock(currentCommentEnd + 1) : currentCommentEnd; - } - - /** - * Determine if a token starts more than one line after a comment ends - * @param {token} token The token being checked - * @param {integer} commentStartLine The line number on which the comment starts - * @returns {boolean} True if `token` does not start immediately after a comment - */ - function hasBlankLineAfterComment(token, commentStartLine) { - return token.loc.start.line > getLastCommentLineOfBlock(commentStartLine) + 1; - } - - /** - * Checks that a blank line exists after a variable declaration when mode is - * set to "always", or checks that there is no blank line when mode is set - * to "never" - * @private - * @param {ASTNode} node `VariableDeclaration` node to test - * @returns {void} - */ - function checkForBlankLine(node) { - - /* - * lastToken is the last token on the node's line. It will usually also be the last token of the node, but it will - * sometimes be second-last if there is a semicolon on a different line. - */ - const lastToken = getLastToken(node), - - /* - * If lastToken is the last token of the node, nextToken should be the token after the node. Otherwise, nextToken - * is the last token of the node. - */ - nextToken = lastToken === sourceCode.getLastToken(node) ? sourceCode.getTokenAfter(node) : sourceCode.getLastToken(node), - nextLineNum = lastToken.loc.end.line + 1; - - // Ignore if there is no following statement - if (!nextToken) { - return; - } - - // Ignore if parent of node is a for variant - if (isForTypeSpecifier(node.parent.type)) { - return; - } - - // Ignore if parent of node is an export specifier - if (isExportSpecifier(node.parent.type)) { - return; - } - - /* - * Some coding styles use multiple `var` statements, so do nothing if - * the next token is a `var` statement. - */ - if (nextToken.type === "Keyword" && isVar(nextToken.value)) { - return; - } - - // Ignore if it is last statement in a block - if (isLastNode(node)) { - return; - } - - // Next statement is not a `var`... - const noNextLineToken = nextToken.loc.start.line > nextLineNum; - const hasNextLineComment = (typeof commentEndLine[nextLineNum] !== "undefined"); - - if (mode === "never" && noNextLineToken && !hasNextLineComment) { - context.report({ - node, - messageId: "unexpected", - fix(fixer) { - const linesBetween = sourceCode.getText().slice(lastToken.range[1], nextToken.range[0]).split(astUtils.LINEBREAK_MATCHER); - - return fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], `${linesBetween.slice(0, -1).join("")}\n${linesBetween.at(-1)}`); - } - }); - } - - // Token on the next line, or comment without blank line - if ( - mode === "always" && ( - !noNextLineToken || - hasNextLineComment && !hasBlankLineAfterComment(nextToken, nextLineNum) - ) - ) { - context.report({ - node, - messageId: "expected", - fix(fixer) { - if ((noNextLineToken ? getLastCommentLineOfBlock(nextLineNum) : lastToken.loc.end.line) === nextToken.loc.start.line) { - return fixer.insertTextBefore(nextToken, "\n\n"); - } - - return fixer.insertTextBeforeRange([nextToken.range[0] - nextToken.loc.start.column, nextToken.range[1]], "\n"); - } - }); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - VariableDeclaration: checkForBlankLine - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/newline-before-return.js b/graphql/node_modules/eslint/lib/rules/newline-before-return.js deleted file mode 100644 index 21e9faf1..00000000 --- a/graphql/node_modules/eslint/lib/rules/newline-before-return.js +++ /dev/null @@ -1,217 +0,0 @@ -/** - * @fileoverview Rule to require newlines before `return` statement - * @author Kai Cataldo - * @deprecated in ESLint v4.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Require an empty line before `return` statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/newline-before-return" - }, - - fixable: "whitespace", - schema: [], - messages: { - expected: "Expected newline before return statement." - }, - - deprecated: true, - replacedBy: ["padding-line-between-statements"] - }, - - create(context) { - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Tests whether node is preceded by supplied tokens - * @param {ASTNode} node node to check - * @param {Array} testTokens array of tokens to test against - * @returns {boolean} Whether or not the node is preceded by one of the supplied tokens - * @private - */ - function isPrecededByTokens(node, testTokens) { - const tokenBefore = sourceCode.getTokenBefore(node); - - return testTokens.includes(tokenBefore.value); - } - - /** - * Checks whether node is the first node after statement or in block - * @param {ASTNode} node node to check - * @returns {boolean} Whether or not the node is the first node after statement or in block - * @private - */ - function isFirstNode(node) { - const parentType = node.parent.type; - - if (node.parent.body) { - return Array.isArray(node.parent.body) - ? node.parent.body[0] === node - : node.parent.body === node; - } - - if (parentType === "IfStatement") { - return isPrecededByTokens(node, ["else", ")"]); - } - if (parentType === "DoWhileStatement") { - return isPrecededByTokens(node, ["do"]); - } - if (parentType === "SwitchCase") { - return isPrecededByTokens(node, [":"]); - } - return isPrecededByTokens(node, [")"]); - - } - - /** - * Returns the number of lines of comments that precede the node - * @param {ASTNode} node node to check for overlapping comments - * @param {number} lineNumTokenBefore line number of previous token, to check for overlapping comments - * @returns {number} Number of lines of comments that precede the node - * @private - */ - function calcCommentLines(node, lineNumTokenBefore) { - const comments = sourceCode.getCommentsBefore(node); - let numLinesComments = 0; - - if (!comments.length) { - return numLinesComments; - } - - comments.forEach(comment => { - numLinesComments++; - - if (comment.type === "Block") { - numLinesComments += comment.loc.end.line - comment.loc.start.line; - } - - // avoid counting lines with inline comments twice - if (comment.loc.start.line === lineNumTokenBefore) { - numLinesComments--; - } - - if (comment.loc.end.line === node.loc.start.line) { - numLinesComments--; - } - }); - - return numLinesComments; - } - - /** - * Returns the line number of the token before the node that is passed in as an argument - * @param {ASTNode} node The node to use as the start of the calculation - * @returns {number} Line number of the token before `node` - * @private - */ - function getLineNumberOfTokenBefore(node) { - const tokenBefore = sourceCode.getTokenBefore(node); - let lineNumTokenBefore; - - /** - * Global return (at the beginning of a script) is a special case. - * If there is no token before `return`, then we expect no line - * break before the return. Comments are allowed to occupy lines - * before the global return, just no blank lines. - * Setting lineNumTokenBefore to zero in that case results in the - * desired behavior. - */ - if (tokenBefore) { - lineNumTokenBefore = tokenBefore.loc.end.line; - } else { - lineNumTokenBefore = 0; // global return at beginning of script - } - - return lineNumTokenBefore; - } - - /** - * Checks whether node is preceded by a newline - * @param {ASTNode} node node to check - * @returns {boolean} Whether or not the node is preceded by a newline - * @private - */ - function hasNewlineBefore(node) { - const lineNumNode = node.loc.start.line; - const lineNumTokenBefore = getLineNumberOfTokenBefore(node); - const commentLines = calcCommentLines(node, lineNumTokenBefore); - - return (lineNumNode - lineNumTokenBefore - commentLines) > 1; - } - - /** - * Checks whether it is safe to apply a fix to a given return statement. - * - * The fix is not considered safe if the given return statement has leading comments, - * as we cannot safely determine if the newline should be added before or after the comments. - * For more information, see: https://github.com/eslint/eslint/issues/5958#issuecomment-222767211 - * @param {ASTNode} node The return statement node to check. - * @returns {boolean} `true` if it can fix the node. - * @private - */ - function canFix(node) { - const leadingComments = sourceCode.getCommentsBefore(node); - const lastLeadingComment = leadingComments.at(-1); - const tokenBefore = sourceCode.getTokenBefore(node); - - if (leadingComments.length === 0) { - return true; - } - - /* - * if the last leading comment ends in the same line as the previous token and - * does not share a line with the `return` node, we can consider it safe to fix. - * Example: - * function a() { - * var b; //comment - * return; - * } - */ - if (lastLeadingComment.loc.end.line === tokenBefore.loc.end.line && - lastLeadingComment.loc.end.line !== node.loc.start.line) { - return true; - } - - return false; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ReturnStatement(node) { - if (!isFirstNode(node) && !hasNewlineBefore(node)) { - context.report({ - node, - messageId: "expected", - fix(fixer) { - if (canFix(node)) { - const tokenBefore = sourceCode.getTokenBefore(node); - const newlines = node.loc.start.line === tokenBefore.loc.end.line ? "\n\n" : "\n"; - - return fixer.insertTextBefore(node, newlines); - } - return null; - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/newline-per-chained-call.js b/graphql/node_modules/eslint/lib/rules/newline-per-chained-call.js deleted file mode 100644 index 3124ac2d..00000000 --- a/graphql/node_modules/eslint/lib/rules/newline-per-chained-call.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * @fileoverview Rule to ensure newline per method call when chaining calls - * @author Rajendra Patil - * @author Burak Yigit Kaya - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require a newline after each call in a method chain", - recommended: false, - url: "https://eslint.org/docs/latest/rules/newline-per-chained-call" - }, - - fixable: "whitespace", - - schema: [{ - type: "object", - properties: { - ignoreChainWithDepth: { - type: "integer", - minimum: 1, - maximum: 10, - default: 2 - } - }, - additionalProperties: false - }], - messages: { - expected: "Expected line break before `{{callee}}`." - } - }, - - create(context) { - - const options = context.options[0] || {}, - ignoreChainWithDepth = options.ignoreChainWithDepth || 2; - - const sourceCode = context.sourceCode; - - /** - * Get the prefix of a given MemberExpression node. - * If the MemberExpression node is a computed value it returns a - * left bracket. If not it returns a period. - * @param {ASTNode} node A MemberExpression node to get - * @returns {string} The prefix of the node. - */ - function getPrefix(node) { - if (node.computed) { - if (node.optional) { - return "?.["; - } - return "["; - } - if (node.optional) { - return "?."; - } - return "."; - } - - /** - * Gets the property text of a given MemberExpression node. - * If the text is multiline, this returns only the first line. - * @param {ASTNode} node A MemberExpression node to get. - * @returns {string} The property text of the node. - */ - function getPropertyText(node) { - const prefix = getPrefix(node); - const lines = sourceCode.getText(node.property).split(astUtils.LINEBREAK_MATCHER); - const suffix = node.computed && lines.length === 1 ? "]" : ""; - - return prefix + lines[0] + suffix; - } - - return { - "CallExpression:exit"(node) { - const callee = astUtils.skipChainExpression(node.callee); - - if (callee.type !== "MemberExpression") { - return; - } - - let parent = astUtils.skipChainExpression(callee.object); - let depth = 1; - - while (parent && parent.callee) { - depth += 1; - parent = astUtils.skipChainExpression(astUtils.skipChainExpression(parent.callee).object); - } - - if (depth > ignoreChainWithDepth && astUtils.isTokenOnSameLine(callee.object, callee.property)) { - const firstTokenAfterObject = sourceCode.getTokenAfter(callee.object, astUtils.isNotClosingParenToken); - - context.report({ - node: callee.property, - loc: { - start: firstTokenAfterObject.loc.start, - end: callee.loc.end - }, - messageId: "expected", - data: { - callee: getPropertyText(callee) - }, - fix(fixer) { - return fixer.insertTextBefore(firstTokenAfterObject, "\n"); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-alert.js b/graphql/node_modules/eslint/lib/rules/no-alert.js deleted file mode 100644 index cc872856..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-alert.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @fileoverview Rule to flag use of alert, confirm, prompt - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { - getStaticPropertyName: getPropertyName, - getVariableByName, - skipChainExpression -} = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks if the given name is a prohibited identifier. - * @param {string} name The name to check - * @returns {boolean} Whether or not the name is prohibited. - */ -function isProhibitedIdentifier(name) { - return /^(alert|confirm|prompt)$/u.test(name); -} - -/** - * Finds the eslint-scope reference in the given scope. - * @param {Object} scope The scope to search. - * @param {ASTNode} node The identifier node. - * @returns {Reference|null} Returns the found reference or null if none were found. - */ -function findReference(scope, node) { - const references = scope.references.filter(reference => reference.identifier.range[0] === node.range[0] && - reference.identifier.range[1] === node.range[1]); - - if (references.length === 1) { - return references[0]; - } - return null; -} - -/** - * Checks if the given identifier node is shadowed in the given scope. - * @param {Object} scope The current scope. - * @param {string} node The identifier node to check - * @returns {boolean} Whether or not the name is shadowed. - */ -function isShadowed(scope, node) { - const reference = findReference(scope, node); - - return reference && reference.resolved && reference.resolved.defs.length > 0; -} - -/** - * Checks if the given identifier node is a ThisExpression in the global scope or the global window property. - * @param {Object} scope The current scope. - * @param {string} node The identifier node to check - * @returns {boolean} Whether or not the node is a reference to the global object. - */ -function isGlobalThisReferenceOrGlobalWindow(scope, node) { - if (scope.type === "global" && node.type === "ThisExpression") { - return true; - } - if ( - node.type === "Identifier" && - ( - node.name === "window" || - (node.name === "globalThis" && getVariableByName(scope, "globalThis")) - ) - ) { - return !isShadowed(scope, node); - } - - return false; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `alert`, `confirm`, and `prompt`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-alert" - }, - - schema: [], - - messages: { - unexpected: "Unexpected {{name}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - CallExpression(node) { - const callee = skipChainExpression(node.callee), - currentScope = sourceCode.getScope(node); - - // without window. - if (callee.type === "Identifier") { - const name = callee.name; - - if (!isShadowed(currentScope, callee) && isProhibitedIdentifier(callee.name)) { - context.report({ - node, - messageId: "unexpected", - data: { name } - }); - } - - } else if (callee.type === "MemberExpression" && isGlobalThisReferenceOrGlobalWindow(currentScope, callee.object)) { - const name = getPropertyName(callee); - - if (isProhibitedIdentifier(name)) { - context.report({ - node, - messageId: "unexpected", - data: { name } - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-array-constructor.js b/graphql/node_modules/eslint/lib/rules/no-array-constructor.js deleted file mode 100644 index f56b6876..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-array-constructor.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @fileoverview Disallow construction of dense arrays using the Array constructor - * @author Matt DuVall - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { - getVariableByName, - isClosingParenToken, - isOpeningParenToken, - isStartOfExpressionStatement, - needsPrecedingSemicolon -} = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `Array` constructors", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-array-constructor" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - preferLiteral: "The array literal notation [] is preferable.", - useLiteral: "Replace with an array literal.", - useLiteralAfterSemicolon: "Replace with an array literal, add preceding semicolon." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Gets the text between the calling parentheses of a CallExpression or NewExpression. - * @param {ASTNode} node A CallExpression or NewExpression node. - * @returns {string} The text between the calling parentheses, or an empty string if there are none. - */ - function getArgumentsText(node) { - const lastToken = sourceCode.getLastToken(node); - - if (!isClosingParenToken(lastToken)) { - return ""; - } - - let firstToken = node.callee; - - do { - firstToken = sourceCode.getTokenAfter(firstToken); - if (!firstToken || firstToken === lastToken) { - return ""; - } - } while (!isOpeningParenToken(firstToken)); - - return sourceCode.text.slice(firstToken.range[1], lastToken.range[0]); - } - - /** - * Disallow construction of dense arrays using the Array constructor - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function check(node) { - if ( - node.callee.type !== "Identifier" || - node.callee.name !== "Array" || - node.arguments.length === 1 && - node.arguments[0].type !== "SpreadElement") { - return; - } - - const variable = getVariableByName(sourceCode.getScope(node), "Array"); - - /* - * Check if `Array` is a predefined global variable: predefined globals have no declarations, - * meaning that the `identifiers` list of the variable object is empty. - */ - if (variable && variable.identifiers.length === 0) { - const argsText = getArgumentsText(node); - let fixText; - let messageId; - - /* - * Check if the suggested change should include a preceding semicolon or not. - * Due to JavaScript's ASI rules, a missing semicolon may be inserted automatically - * before an expression like `Array()` or `new Array()`, but not when the expression - * is changed into an array literal like `[]`. - */ - if (isStartOfExpressionStatement(node) && needsPrecedingSemicolon(sourceCode, node)) { - fixText = `;[${argsText}]`; - messageId = "useLiteralAfterSemicolon"; - } else { - fixText = `[${argsText}]`; - messageId = "useLiteral"; - } - - context.report({ - node, - messageId: "preferLiteral", - suggest: [ - { - messageId, - fix: fixer => fixer.replaceText(node, fixText) - } - ] - }); - } - } - - return { - CallExpression: check, - NewExpression: check - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-async-promise-executor.js b/graphql/node_modules/eslint/lib/rules/no-async-promise-executor.js deleted file mode 100644 index ea6c8511..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-async-promise-executor.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview disallow using an async function as a Promise executor - * @author Teddy Katz - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow using an async function as a Promise executor", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-async-promise-executor" - }, - - fixable: null, - schema: [], - messages: { - async: "Promise executor functions should not be async." - } - }, - - create(context) { - return { - "NewExpression[callee.name='Promise'][arguments.0.async=true]"(node) { - context.report({ - node: context.sourceCode.getFirstToken(node.arguments[0], token => token.value === "async"), - messageId: "async" - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-await-in-loop.js b/graphql/node_modules/eslint/lib/rules/no-await-in-loop.js deleted file mode 100644 index 20230def..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-await-in-loop.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @fileoverview Rule to disallow uses of await inside of loops. - * @author Nat Mote (nmote) - */ -"use strict"; - -/** - * Check whether it should stop traversing ancestors at the given node. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if it should stop traversing. - */ -function isBoundary(node) { - const t = node.type; - - return ( - t === "FunctionDeclaration" || - t === "FunctionExpression" || - t === "ArrowFunctionExpression" || - - /* - * Don't report the await expressions on for-await-of loop since it's - * asynchronous iteration intentionally. - */ - (t === "ForOfStatement" && node.await === true) - ); -} - -/** - * Check whether the given node is in loop. - * @param {ASTNode} node A node to check. - * @param {ASTNode} parent A parent node to check. - * @returns {boolean} `true` if the node is in loop. - */ -function isLooped(node, parent) { - switch (parent.type) { - case "ForStatement": - return ( - node === parent.test || - node === parent.update || - node === parent.body - ); - - case "ForOfStatement": - case "ForInStatement": - return node === parent.body; - - case "WhileStatement": - case "DoWhileStatement": - return node === parent.test || node === parent.body; - - default: - return false; - } -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow `await` inside of loops", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-await-in-loop" - }, - - schema: [], - - messages: { - unexpectedAwait: "Unexpected `await` inside a loop." - } - }, - create(context) { - - /** - * Validate an await expression. - * @param {ASTNode} awaitNode An AwaitExpression or ForOfStatement node to validate. - * @returns {void} - */ - function validate(awaitNode) { - if (awaitNode.type === "ForOfStatement" && !awaitNode.await) { - return; - } - - let node = awaitNode; - let parent = node.parent; - - while (parent && !isBoundary(parent)) { - if (isLooped(node, parent)) { - context.report({ - node: awaitNode, - messageId: "unexpectedAwait" - }); - return; - } - node = parent; - parent = parent.parent; - } - } - - return { - AwaitExpression: validate, - ForOfStatement: validate - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-bitwise.js b/graphql/node_modules/eslint/lib/rules/no-bitwise.js deleted file mode 100644 index d90992b2..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-bitwise.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * @fileoverview Rule to flag bitwise identifiers - * @author Nicholas C. Zakas - */ - -"use strict"; - -/* - * - * Set of bitwise operators. - * - */ -const BITWISE_OPERATORS = [ - "^", "|", "&", "<<", ">>", ">>>", - "^=", "|=", "&=", "<<=", ">>=", ">>>=", - "~" -]; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow bitwise operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-bitwise" - }, - - schema: [ - { - type: "object", - properties: { - allow: { - type: "array", - items: { - enum: BITWISE_OPERATORS - }, - uniqueItems: true - }, - int32Hint: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "Unexpected use of '{{operator}}'." - } - }, - - create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; - const int32Hint = options.int32Hint === true; - - /** - * Reports an unexpected use of a bitwise operator. - * @param {ASTNode} node Node which contains the bitwise operator. - * @returns {void} - */ - function report(node) { - context.report({ node, messageId: "unexpected", data: { operator: node.operator } }); - } - - /** - * Checks if the given node has a bitwise operator. - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the node has a bitwise operator. - */ - function hasBitwiseOperator(node) { - return BITWISE_OPERATORS.includes(node.operator); - } - - /** - * Checks if exceptions were provided, e.g. `{ allow: ['~', '|'] }`. - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the node has a bitwise operator. - */ - function allowedOperator(node) { - return allowed.includes(node.operator); - } - - /** - * Checks if the given bitwise operator is used for integer typecasting, i.e. "|0" - * @param {ASTNode} node The node to check. - * @returns {boolean} whether the node is used in integer typecasting. - */ - function isInt32Hint(node) { - return int32Hint && node.operator === "|" && node.right && - node.right.type === "Literal" && node.right.value === 0; - } - - /** - * Report if the given node contains a bitwise operator. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkNodeForBitwiseOperator(node) { - if (hasBitwiseOperator(node) && !allowedOperator(node) && !isInt32Hint(node)) { - report(node); - } - } - - return { - AssignmentExpression: checkNodeForBitwiseOperator, - BinaryExpression: checkNodeForBitwiseOperator, - UnaryExpression: checkNodeForBitwiseOperator - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-buffer-constructor.js b/graphql/node_modules/eslint/lib/rules/no-buffer-constructor.js deleted file mode 100644 index 0b73c767..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-buffer-constructor.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview disallow use of the Buffer() constructor - * @author Teddy Katz - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "problem", - - docs: { - description: "Disallow use of the `Buffer()` constructor", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-buffer-constructor" - }, - - schema: [], - - messages: { - deprecated: "{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead." - } - }, - - create(context) { - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - "CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(node) { - context.report({ - node, - messageId: "deprecated", - data: { expr: node.type === "CallExpression" ? "Buffer()" : "new Buffer()" } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-caller.js b/graphql/node_modules/eslint/lib/rules/no-caller.js deleted file mode 100644 index 3e61a8e1..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-caller.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview Rule to flag use of arguments.callee and arguments.caller. - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `arguments.caller` or `arguments.callee`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-caller" - }, - - schema: [], - - messages: { - unexpected: "Avoid arguments.{{prop}}." - } - }, - - create(context) { - - return { - - MemberExpression(node) { - const objectName = node.object.name, - propertyName = node.property.name; - - if (objectName === "arguments" && !node.computed && propertyName && propertyName.match(/^calle[er]$/u)) { - context.report({ node, messageId: "unexpected", data: { prop: propertyName } }); - } - - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-case-declarations.js b/graphql/node_modules/eslint/lib/rules/no-case-declarations.js deleted file mode 100644 index 55f82e24..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-case-declarations.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @fileoverview Rule to flag use of an lexical declarations inside a case clause - * @author Erik Arvidsson - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow lexical declarations in case clauses", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-case-declarations" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - addBrackets: "Add {} brackets around the case block.", - unexpected: "Unexpected lexical declaration in case block." - } - }, - - create(context) { - - /** - * Checks whether or not a node is a lexical declaration. - * @param {ASTNode} node A direct child statement of a switch case. - * @returns {boolean} Whether or not the node is a lexical declaration. - */ - function isLexicalDeclaration(node) { - switch (node.type) { - case "FunctionDeclaration": - case "ClassDeclaration": - return true; - case "VariableDeclaration": - return node.kind !== "var"; - default: - return false; - } - } - - return { - SwitchCase(node) { - for (let i = 0; i < node.consequent.length; i++) { - const statement = node.consequent[i]; - - if (isLexicalDeclaration(statement)) { - context.report({ - node: statement, - messageId: "unexpected", - suggest: [ - { - messageId: "addBrackets", - fix: fixer => [ - fixer.insertTextBefore(node.consequent[0], "{ "), - fixer.insertTextAfter(node.consequent.at(-1), " }") - ] - } - ] - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-catch-shadow.js b/graphql/node_modules/eslint/lib/rules/no-catch-shadow.js deleted file mode 100644 index f9d85524..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-catch-shadow.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @fileoverview Rule to flag variable leak in CatchClauses in IE 8 and earlier - * @author Ian Christian Myers - * @deprecated in ESLint v5.1.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `catch` clause parameters from shadowing variables in the outer scope", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-catch-shadow" - }, - - replacedBy: ["no-shadow"], - - deprecated: true, - schema: [], - - messages: { - mutable: "Value of '{{name}}' may be overwritten in IE 8 and earlier." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Check if the parameters are been shadowed - * @param {Object} scope current scope - * @param {string} name parameter name - * @returns {boolean} True is its been shadowed - */ - function paramIsShadowing(scope, name) { - return astUtils.getVariableByName(scope, name) !== null; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - "CatchClause[param!=null]"(node) { - let scope = sourceCode.getScope(node); - - /* - * When ecmaVersion >= 6, CatchClause creates its own scope - * so start from one upper scope to exclude the current node - */ - if (scope.block === node) { - scope = scope.upper; - } - - if (paramIsShadowing(scope, node.param.name)) { - context.report({ node, messageId: "mutable", data: { name: node.param.name } }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-class-assign.js b/graphql/node_modules/eslint/lib/rules/no-class-assign.js deleted file mode 100644 index 49f3b844..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-class-assign.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview A rule to disallow modifying variables of class declarations - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow reassigning class members", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-class-assign" - }, - - schema: [], - - messages: { - class: "'{{name}}' is a class." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Finds and reports references that are non initializer and writable. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - astUtils.getModifyingReferences(variable.references).forEach(reference => { - context.report({ node: reference.identifier, messageId: "class", data: { name: reference.identifier.name } }); - - }); - } - - /** - * Finds and reports references that are non initializer and writable. - * @param {ASTNode} node A ClassDeclaration/ClassExpression node to check. - * @returns {void} - */ - function checkForClass(node) { - sourceCode.getDeclaredVariables(node).forEach(checkVariable); - } - - return { - ClassDeclaration: checkForClass, - ClassExpression: checkForClass - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-compare-neg-zero.js b/graphql/node_modules/eslint/lib/rules/no-compare-neg-zero.js deleted file mode 100644 index 112f6c1d..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-compare-neg-zero.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @fileoverview The rule should warn against code that tries to compare against -0. - * @author Aladdin-ADD - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow comparing against -0", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-compare-neg-zero" - }, - - fixable: null, - schema: [], - - messages: { - unexpected: "Do not use the '{{operator}}' operator to compare against -0." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Checks a given node is -0 - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is -0. - */ - function isNegZero(node) { - return node.type === "UnaryExpression" && node.operator === "-" && node.argument.type === "Literal" && node.argument.value === 0; - } - const OPERATORS_TO_CHECK = new Set([">", ">=", "<", "<=", "==", "===", "!=", "!=="]); - - return { - BinaryExpression(node) { - if (OPERATORS_TO_CHECK.has(node.operator)) { - if (isNegZero(node.left) || isNegZero(node.right)) { - context.report({ - node, - messageId: "unexpected", - data: { operator: node.operator } - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-cond-assign.js b/graphql/node_modules/eslint/lib/rules/no-cond-assign.js deleted file mode 100644 index 95292021..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-cond-assign.js +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @fileoverview Rule to flag assignment in a conditional statement's test expression - * @author Stephen Murray - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const TEST_CONDITION_PARENT_TYPES = new Set(["IfStatement", "WhileStatement", "DoWhileStatement", "ForStatement", "ConditionalExpression"]); - -const NODE_DESCRIPTIONS = { - DoWhileStatement: "a 'do...while' statement", - ForStatement: "a 'for' statement", - IfStatement: "an 'if' statement", - WhileStatement: "a 'while' statement" -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow assignment operators in conditional expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-cond-assign" - }, - - schema: [ - { - enum: ["except-parens", "always"] - } - ], - - messages: { - unexpected: "Unexpected assignment within {{type}}.", - - // must match JSHint's error message - missing: "Expected a conditional expression and instead saw an assignment." - } - }, - - create(context) { - - const prohibitAssign = (context.options[0] || "except-parens"); - - const sourceCode = context.sourceCode; - - /** - * Check whether an AST node is the test expression for a conditional statement. - * @param {!Object} node The node to test. - * @returns {boolean} `true` if the node is the text expression for a conditional statement; otherwise, `false`. - */ - function isConditionalTestExpression(node) { - return node.parent && - TEST_CONDITION_PARENT_TYPES.has(node.parent.type) && - node === node.parent.test; - } - - /** - * Given an AST node, perform a bottom-up search for the first ancestor that represents a conditional statement. - * @param {!Object} node The node to use at the start of the search. - * @returns {?Object} The closest ancestor node that represents a conditional statement. - */ - function findConditionalAncestor(node) { - let currentAncestor = node; - - do { - if (isConditionalTestExpression(currentAncestor)) { - return currentAncestor.parent; - } - } while ((currentAncestor = currentAncestor.parent) && !astUtils.isFunction(currentAncestor)); - - return null; - } - - /** - * Check whether the code represented by an AST node is enclosed in two sets of parentheses. - * @param {!Object} node The node to test. - * @returns {boolean} `true` if the code is enclosed in two sets of parentheses; otherwise, `false`. - */ - function isParenthesisedTwice(node) { - const previousToken = sourceCode.getTokenBefore(node, 1), - nextToken = sourceCode.getTokenAfter(node, 1); - - return astUtils.isParenthesised(sourceCode, node) && - previousToken && astUtils.isOpeningParenToken(previousToken) && previousToken.range[1] <= node.range[0] && - astUtils.isClosingParenToken(nextToken) && nextToken.range[0] >= node.range[1]; - } - - /** - * Check a conditional statement's test expression for top-level assignments that are not enclosed in parentheses. - * @param {!Object} node The node for the conditional statement. - * @returns {void} - */ - function testForAssign(node) { - if (node.test && - (node.test.type === "AssignmentExpression") && - (node.type === "ForStatement" - ? !astUtils.isParenthesised(sourceCode, node.test) - : !isParenthesisedTwice(node.test) - ) - ) { - - context.report({ - node: node.test, - messageId: "missing" - }); - } - } - - /** - * Check whether an assignment expression is descended from a conditional statement's test expression. - * @param {!Object} node The node for the assignment expression. - * @returns {void} - */ - function testForConditionalAncestor(node) { - const ancestor = findConditionalAncestor(node); - - if (ancestor) { - context.report({ - node, - messageId: "unexpected", - data: { - type: NODE_DESCRIPTIONS[ancestor.type] || ancestor.type - } - }); - } - } - - if (prohibitAssign === "always") { - return { - AssignmentExpression: testForConditionalAncestor - }; - } - - return { - DoWhileStatement: testForAssign, - ForStatement: testForAssign, - IfStatement: testForAssign, - WhileStatement: testForAssign, - ConditionalExpression: testForAssign - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-confusing-arrow.js b/graphql/node_modules/eslint/lib/rules/no-confusing-arrow.js deleted file mode 100644 index 6fef1870..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-confusing-arrow.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @fileoverview A rule to warn against using arrow functions when they could be - * confused with comparisons - * @author Jxck - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils.js"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a node is a conditional expression. - * @param {ASTNode} node node to test - * @returns {boolean} `true` if the node is a conditional expression. - */ -function isConditional(node) { - return node && node.type === "ConditionalExpression"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Disallow arrow functions where they could be confused with comparisons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-confusing-arrow" - }, - - fixable: "code", - - schema: [{ - type: "object", - properties: { - allowParens: { type: "boolean", default: true }, - onlyOneSimpleParam: { type: "boolean", default: false } - }, - additionalProperties: false - }], - - messages: { - confusing: "Arrow function used ambiguously with a conditional expression." - } - }, - - create(context) { - const config = context.options[0] || {}; - const allowParens = config.allowParens || (config.allowParens === void 0); - const onlyOneSimpleParam = config.onlyOneSimpleParam; - const sourceCode = context.sourceCode; - - - /** - * Reports if an arrow function contains an ambiguous conditional. - * @param {ASTNode} node A node to check and report. - * @returns {void} - */ - function checkArrowFunc(node) { - const body = node.body; - - if (isConditional(body) && - !(allowParens && astUtils.isParenthesised(sourceCode, body)) && - !(onlyOneSimpleParam && !(node.params.length === 1 && node.params[0].type === "Identifier"))) { - context.report({ - node, - messageId: "confusing", - fix(fixer) { - - // if `allowParens` is not set to true don't bother wrapping in parens - return allowParens && fixer.replaceText(node.body, `(${sourceCode.getText(node.body)})`); - } - }); - } - } - - return { - ArrowFunctionExpression: checkArrowFunc - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-console.js b/graphql/node_modules/eslint/lib/rules/no-console.js deleted file mode 100644 index d20477c5..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-console.js +++ /dev/null @@ -1,207 +0,0 @@ -/** - * @fileoverview Rule to flag use of console object - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `console`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-console" - }, - - schema: [ - { - type: "object", - properties: { - allow: { - type: "array", - items: { - type: "string" - }, - minItems: 1, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - hasSuggestions: true, - - messages: { - unexpected: "Unexpected console statement.", - removeConsole: "Remove the console.{{ propertyName }}()." - } - }, - - create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; - const sourceCode = context.sourceCode; - - /** - * Checks whether the given reference is 'console' or not. - * @param {eslint-scope.Reference} reference The reference to check. - * @returns {boolean} `true` if the reference is 'console'. - */ - function isConsole(reference) { - const id = reference.identifier; - - return id && id.name === "console"; - } - - /** - * Checks whether the property name of the given MemberExpression node - * is allowed by options or not. - * @param {ASTNode} node The MemberExpression node to check. - * @returns {boolean} `true` if the property name of the node is allowed. - */ - function isAllowed(node) { - const propertyName = astUtils.getStaticPropertyName(node); - - return propertyName && allowed.includes(propertyName); - } - - /** - * Checks whether the given reference is a member access which is not - * allowed by options or not. - * @param {eslint-scope.Reference} reference The reference to check. - * @returns {boolean} `true` if the reference is a member access which - * is not allowed by options. - */ - function isMemberAccessExceptAllowed(reference) { - const node = reference.identifier; - const parent = node.parent; - - return ( - parent.type === "MemberExpression" && - parent.object === node && - !isAllowed(parent) - ); - } - - /** - * Checks if removing the ExpressionStatement node will cause ASI to - * break. - * eg. - * foo() - * console.log(); - * [1, 2, 3].forEach(a => doSomething(a)) - * - * Removing the console.log(); statement should leave two statements, but - * here the two statements will become one because [ causes continuation after - * foo(). - * @param {ASTNode} node The ExpressionStatement node to check. - * @returns {boolean} `true` if ASI will break after removing the ExpressionStatement - * node. - */ - function maybeAsiHazard(node) { - const SAFE_TOKENS_BEFORE = /^[:;{]$/u; // One of :;{ - const UNSAFE_CHARS_AFTER = /^[-[(/+`]/u; // One of [(/+-` - - const tokenBefore = sourceCode.getTokenBefore(node); - const tokenAfter = sourceCode.getTokenAfter(node); - - return ( - Boolean(tokenAfter) && - UNSAFE_CHARS_AFTER.test(tokenAfter.value) && - tokenAfter.value !== "++" && - tokenAfter.value !== "--" && - Boolean(tokenBefore) && - !SAFE_TOKENS_BEFORE.test(tokenBefore.value) - ); - } - - /** - * Checks if the MemberExpression node's parent.parent.parent is a - * Program, BlockStatement, StaticBlock, or SwitchCase node. This check - * is necessary to avoid providing a suggestion that might cause a syntax error. - * - * eg. if (a) console.log(b), removing console.log() here will lead to a - * syntax error. - * if (a) { console.log(b) }, removing console.log() here is acceptable. - * - * Additionally, it checks if the callee of the CallExpression node is - * the node itself. - * - * eg. foo(console.log), cannot provide a suggestion here. - * @param {ASTNode} node The MemberExpression node to check. - * @returns {boolean} `true` if a suggestion can be provided for a node. - */ - function canProvideSuggestions(node) { - return ( - node.parent.type === "CallExpression" && - node.parent.callee === node && - node.parent.parent.type === "ExpressionStatement" && - astUtils.STATEMENT_LIST_PARENTS.has(node.parent.parent.parent.type) && - !maybeAsiHazard(node.parent.parent) - ); - } - - /** - * Reports the given reference as a violation. - * @param {eslint-scope.Reference} reference The reference to report. - * @returns {void} - */ - function report(reference) { - const node = reference.identifier.parent; - - const propertyName = astUtils.getStaticPropertyName(node); - - context.report({ - node, - loc: node.loc, - messageId: "unexpected", - suggest: canProvideSuggestions(node) - ? [{ - messageId: "removeConsole", - data: { propertyName }, - fix(fixer) { - return fixer.remove(node.parent.parent); - } - }] - : [] - }); - } - - return { - "Program:exit"(node) { - const scope = sourceCode.getScope(node); - const consoleVar = astUtils.getVariableByName(scope, "console"); - const shadowed = consoleVar && consoleVar.defs.length > 0; - - /* - * 'scope.through' includes all references to undefined - * variables. If the variable 'console' is not defined, it uses - * 'scope.through'. - */ - const references = consoleVar - ? consoleVar.references - : scope.through.filter(isConsole); - - if (!shadowed) { - references - .filter(isMemberAccessExceptAllowed) - .forEach(report); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-const-assign.js b/graphql/node_modules/eslint/lib/rules/no-const-assign.js deleted file mode 100644 index 0ceaf7ea..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-const-assign.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @fileoverview A rule to disallow modifying variables that are declared using `const` - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow reassigning `const` variables", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-const-assign" - }, - - schema: [], - - messages: { - const: "'{{name}}' is constant." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Finds and reports references that are non initializer and writable. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - astUtils.getModifyingReferences(variable.references).forEach(reference => { - context.report({ node: reference.identifier, messageId: "const", data: { name: reference.identifier.name } }); - }); - } - - return { - VariableDeclaration(node) { - if (node.kind === "const") { - sourceCode.getDeclaredVariables(node).forEach(checkVariable); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-constant-binary-expression.js b/graphql/node_modules/eslint/lib/rules/no-constant-binary-expression.js deleted file mode 100644 index bc8f0730..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-constant-binary-expression.js +++ /dev/null @@ -1,508 +0,0 @@ -/** - * @fileoverview Rule to flag constant comparisons and logical expressions that always/never short circuit - * @author Jordan Eldredge - */ - -"use strict"; - -const { isNullLiteral, isConstant, isReferenceToGlobalVariable, isLogicalAssignmentOperator, ECMASCRIPT_GLOBALS } = require("./utils/ast-utils"); - -const NUMERIC_OR_STRING_BINARY_OPERATORS = new Set(["+", "-", "*", "/", "%", "|", "^", "&", "**", "<<", ">>", ">>>"]); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a node is `null` or `undefined`. Similar to the one - * found in ast-utils.js, but this one correctly handles the edge case that - * `undefined` has been redefined. - * @param {Scope} scope Scope in which the expression was found. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a `null` or `undefined`. - * @public - */ -function isNullOrUndefined(scope, node) { - return ( - isNullLiteral(node) || - (node.type === "Identifier" && node.name === "undefined" && isReferenceToGlobalVariable(scope, node)) || - (node.type === "UnaryExpression" && node.operator === "void") - ); -} - -/** - * Test if an AST node has a statically knowable constant nullishness. Meaning, - * it will always resolve to a constant value of either: `null`, `undefined` - * or not `null` _or_ `undefined`. An expression that can vary between those - * three states at runtime would return `false`. - * @param {Scope} scope The scope in which the node was found. - * @param {ASTNode} node The AST node being tested. - * @param {boolean} nonNullish if `true` then nullish values are not considered constant. - * @returns {boolean} Does `node` have constant nullishness? - */ -function hasConstantNullishness(scope, node, nonNullish) { - if (nonNullish && isNullOrUndefined(scope, node)) { - return false; - } - - switch (node.type) { - case "ObjectExpression": // Objects are never nullish - case "ArrayExpression": // Arrays are never nullish - case "ArrowFunctionExpression": // Functions never nullish - case "FunctionExpression": // Functions are never nullish - case "ClassExpression": // Classes are never nullish - case "NewExpression": // Objects are never nullish - case "Literal": // Nullish, or non-nullish, literals never change - case "TemplateLiteral": // A string is never nullish - case "UpdateExpression": // Numbers are never nullish - case "BinaryExpression": // Numbers, strings, or booleans are never nullish - return true; - case "CallExpression": { - if (node.callee.type !== "Identifier") { - return false; - } - const functionName = node.callee.name; - - return (functionName === "Boolean" || functionName === "String" || functionName === "Number") && - isReferenceToGlobalVariable(scope, node.callee); - } - case "LogicalExpression": { - return node.operator === "??" && hasConstantNullishness(scope, node.right, true); - } - case "AssignmentExpression": - if (node.operator === "=") { - return hasConstantNullishness(scope, node.right, nonNullish); - } - - /* - * Handling short-circuiting assignment operators would require - * walking the scope. We won't attempt that (for now...) / - */ - if (isLogicalAssignmentOperator(node.operator)) { - return false; - } - - /* - * The remaining assignment expressions all result in a numeric or - * string (non-nullish) value: - * "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&=" - */ - - return true; - case "UnaryExpression": - - /* - * "void" Always returns `undefined` - * "typeof" All types are strings, and thus non-nullish - * "!" Boolean is never nullish - * "delete" Returns a boolean, which is never nullish - * Math operators always return numbers or strings, neither of which - * are non-nullish "+", "-", "~" - */ - - return true; - case "SequenceExpression": { - const last = node.expressions.at(-1); - - return hasConstantNullishness(scope, last, nonNullish); - } - case "Identifier": - return node.name === "undefined" && isReferenceToGlobalVariable(scope, node); - case "JSXElement": // ESLint has a policy of not assuming any specific JSX behavior. - case "JSXFragment": - return false; - default: - return false; - } -} - -/** - * Test if an AST node is a boolean value that never changes. Specifically we - * test for: - * 1. Literal booleans (`true` or `false`) - * 2. Unary `!` expressions with a constant value - * 3. Constant booleans created via the `Boolean` global function - * @param {Scope} scope The scope in which the node was found. - * @param {ASTNode} node The node to test - * @returns {boolean} Is `node` guaranteed to be a boolean? - */ -function isStaticBoolean(scope, node) { - switch (node.type) { - case "Literal": - return typeof node.value === "boolean"; - case "CallExpression": - return node.callee.type === "Identifier" && node.callee.name === "Boolean" && - isReferenceToGlobalVariable(scope, node.callee) && - (node.arguments.length === 0 || isConstant(scope, node.arguments[0], true)); - case "UnaryExpression": - return node.operator === "!" && isConstant(scope, node.argument, true); - default: - return false; - } -} - - -/** - * Test if an AST node will always give the same result when compared to a - * boolean value. Note that comparison to boolean values is different than - * truthiness. - * https://262.ecma-international.org/5.1/#sec-11.9.3 - * - * JavaScript `==` operator works by converting the boolean to `1` (true) or - * `+0` (false) and then checks the values `==` equality to that number. - * @param {Scope} scope The scope in which node was found. - * @param {ASTNode} node The node to test. - * @returns {boolean} Will `node` always coerce to the same boolean value? - */ -function hasConstantLooseBooleanComparison(scope, node) { - switch (node.type) { - case "ObjectExpression": - case "ClassExpression": - - /** - * In theory objects like: - * - * `{toString: () => a}` - * `{valueOf: () => a}` - * - * Or a classes like: - * - * `class { static toString() { return a } }` - * `class { static valueOf() { return a } }` - * - * Are not constant verifiably when `inBooleanPosition` is - * false, but it's an edge case we've opted not to handle. - */ - return true; - case "ArrayExpression": { - const nonSpreadElements = node.elements.filter(e => - - // Elements can be `null` in sparse arrays: `[,,]`; - e !== null && e.type !== "SpreadElement"); - - - /* - * Possible future direction if needed: We could check if the - * single value would result in variable boolean comparison. - * For now we will err on the side of caution since `[x]` could - * evaluate to `[0]` or `[1]`. - */ - return node.elements.length === 0 || nonSpreadElements.length > 1; - } - case "ArrowFunctionExpression": - case "FunctionExpression": - return true; - case "UnaryExpression": - if (node.operator === "void" || // Always returns `undefined` - node.operator === "typeof" // All `typeof` strings, when coerced to number, are not 0 or 1. - ) { - return true; - } - if (node.operator === "!") { - return isConstant(scope, node.argument, true); - } - - /* - * We won't try to reason about +, -, ~, or delete - * In theory, for the mathematical operators, we could look at the - * argument and try to determine if it coerces to a constant numeric - * value. - */ - return false; - case "NewExpression": // Objects might have custom `.valueOf` or `.toString`. - return false; - case "CallExpression": { - if (node.callee.type === "Identifier" && - node.callee.name === "Boolean" && - isReferenceToGlobalVariable(scope, node.callee) - ) { - return node.arguments.length === 0 || isConstant(scope, node.arguments[0], true); - } - return false; - } - case "Literal": // True or false, literals never change - return true; - case "Identifier": - return node.name === "undefined" && isReferenceToGlobalVariable(scope, node); - case "TemplateLiteral": - - /* - * In theory we could try to check if the quasi are sufficient to - * prove that the expression will always be true, but it would be - * tricky to get right. For example: `000.${foo}000` - */ - return node.expressions.length === 0; - case "AssignmentExpression": - if (node.operator === "=") { - return hasConstantLooseBooleanComparison(scope, node.right); - } - - /* - * Handling short-circuiting assignment operators would require - * walking the scope. We won't attempt that (for now...) - * - * The remaining assignment expressions all result in a numeric or - * string (non-nullish) values which could be truthy or falsy: - * "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&=" - */ - return false; - case "SequenceExpression": { - const last = node.expressions.at(-1); - - return hasConstantLooseBooleanComparison(scope, last); - } - case "JSXElement": // ESLint has a policy of not assuming any specific JSX behavior. - case "JSXFragment": - return false; - default: - return false; - } -} - - -/** - * Test if an AST node will always give the same result when _strictly_ compared - * to a boolean value. This can happen if the expression can never be boolean, or - * if it is always the same boolean value. - * @param {Scope} scope The scope in which the node was found. - * @param {ASTNode} node The node to test - * @returns {boolean} Will `node` always give the same result when compared to a - * static boolean value? - */ -function hasConstantStrictBooleanComparison(scope, node) { - switch (node.type) { - case "ObjectExpression": // Objects are not booleans - case "ArrayExpression": // Arrays are not booleans - case "ArrowFunctionExpression": // Functions are not booleans - case "FunctionExpression": - case "ClassExpression": // Classes are not booleans - case "NewExpression": // Objects are not booleans - case "TemplateLiteral": // Strings are not booleans - case "Literal": // True, false, or not boolean, literals never change. - case "UpdateExpression": // Numbers are not booleans - return true; - case "BinaryExpression": - return NUMERIC_OR_STRING_BINARY_OPERATORS.has(node.operator); - case "UnaryExpression": { - if (node.operator === "delete") { - return false; - } - if (node.operator === "!") { - return isConstant(scope, node.argument, true); - } - - /* - * The remaining operators return either strings or numbers, neither - * of which are boolean. - */ - return true; - } - case "SequenceExpression": { - const last = node.expressions.at(-1); - - return hasConstantStrictBooleanComparison(scope, last); - } - case "Identifier": - return node.name === "undefined" && isReferenceToGlobalVariable(scope, node); - case "AssignmentExpression": - if (node.operator === "=") { - return hasConstantStrictBooleanComparison(scope, node.right); - } - - /* - * Handling short-circuiting assignment operators would require - * walking the scope. We won't attempt that (for now...) - */ - if (isLogicalAssignmentOperator(node.operator)) { - return false; - } - - /* - * The remaining assignment expressions all result in either a number - * or a string, neither of which can ever be boolean. - */ - return true; - case "CallExpression": { - if (node.callee.type !== "Identifier") { - return false; - } - const functionName = node.callee.name; - - if ( - (functionName === "String" || functionName === "Number") && - isReferenceToGlobalVariable(scope, node.callee) - ) { - return true; - } - if (functionName === "Boolean" && isReferenceToGlobalVariable(scope, node.callee)) { - return ( - node.arguments.length === 0 || isConstant(scope, node.arguments[0], true)); - } - return false; - } - case "JSXElement": // ESLint has a policy of not assuming any specific JSX behavior. - case "JSXFragment": - return false; - default: - return false; - } -} - -/** - * Test if an AST node will always result in a newly constructed object - * @param {Scope} scope The scope in which the node was found. - * @param {ASTNode} node The node to test - * @returns {boolean} Will `node` always be new? - */ -function isAlwaysNew(scope, node) { - switch (node.type) { - case "ObjectExpression": - case "ArrayExpression": - case "ArrowFunctionExpression": - case "FunctionExpression": - case "ClassExpression": - return true; - case "NewExpression": { - if (node.callee.type !== "Identifier") { - return false; - } - - /* - * All the built-in constructors are always new, but - * user-defined constructors could return a sentinel - * object. - * - * Catching these is especially useful for primitive constructors - * which return boxed values, a surprising gotcha' in JavaScript. - */ - return Object.hasOwn(ECMASCRIPT_GLOBALS, node.callee.name) && - isReferenceToGlobalVariable(scope, node.callee); - } - case "Literal": - - // Regular expressions are objects, and thus always new - return typeof node.regex === "object"; - case "SequenceExpression": { - const last = node.expressions.at(-1); - - return isAlwaysNew(scope, last); - } - case "AssignmentExpression": - if (node.operator === "=") { - return isAlwaysNew(scope, node.right); - } - return false; - case "ConditionalExpression": - return isAlwaysNew(scope, node.consequent) && isAlwaysNew(scope, node.alternate); - case "JSXElement": // ESLint has a policy of not assuming any specific JSX behavior. - case "JSXFragment": - return false; - default: - return false; - } -} - -/** - * Checks if one operand will cause the result to be constant. - * @param {Scope} scope Scope in which the expression was found. - * @param {ASTNode} a One side of the expression - * @param {ASTNode} b The other side of the expression - * @param {string} operator The binary expression operator - * @returns {ASTNode | null} The node which will cause the expression to have a constant result. - */ -function findBinaryExpressionConstantOperand(scope, a, b, operator) { - if (operator === "==" || operator === "!=") { - if ( - (isNullOrUndefined(scope, a) && hasConstantNullishness(scope, b, false)) || - (isStaticBoolean(scope, a) && hasConstantLooseBooleanComparison(scope, b)) - ) { - return b; - } - } else if (operator === "===" || operator === "!==") { - if ( - (isNullOrUndefined(scope, a) && hasConstantNullishness(scope, b, false)) || - (isStaticBoolean(scope, a) && hasConstantStrictBooleanComparison(scope, b)) - ) { - return b; - } - } - return null; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - docs: { - description: "Disallow expressions where the operation doesn't affect the value", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-constant-binary-expression" - }, - schema: [], - messages: { - constantBinaryOperand: "Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.", - constantShortCircuit: "Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.", - alwaysNew: "Unexpected comparison to newly constructed object. These two values can never be equal.", - bothAlwaysNew: "Unexpected comparison of two newly constructed objects. These two values can never be equal." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - LogicalExpression(node) { - const { operator, left } = node; - const scope = sourceCode.getScope(node); - - if ((operator === "&&" || operator === "||") && isConstant(scope, left, true)) { - context.report({ node: left, messageId: "constantShortCircuit", data: { property: "truthiness", operator } }); - } else if (operator === "??" && hasConstantNullishness(scope, left, false)) { - context.report({ node: left, messageId: "constantShortCircuit", data: { property: "nullishness", operator } }); - } - }, - BinaryExpression(node) { - const scope = sourceCode.getScope(node); - const { right, left, operator } = node; - const rightConstantOperand = findBinaryExpressionConstantOperand(scope, left, right, operator); - const leftConstantOperand = findBinaryExpressionConstantOperand(scope, right, left, operator); - - if (rightConstantOperand) { - context.report({ node: rightConstantOperand, messageId: "constantBinaryOperand", data: { operator, otherSide: "left" } }); - } else if (leftConstantOperand) { - context.report({ node: leftConstantOperand, messageId: "constantBinaryOperand", data: { operator, otherSide: "right" } }); - } else if (operator === "===" || operator === "!==") { - if (isAlwaysNew(scope, left)) { - context.report({ node: left, messageId: "alwaysNew" }); - } else if (isAlwaysNew(scope, right)) { - context.report({ node: right, messageId: "alwaysNew" }); - } - } else if (operator === "==" || operator === "!=") { - - /* - * If both sides are "new", then both sides are objects and - * therefore they will be compared by reference even with `==` - * equality. - */ - if (isAlwaysNew(scope, left) && isAlwaysNew(scope, right)) { - context.report({ node: left, messageId: "bothAlwaysNew" }); - } - } - - } - - /* - * In theory we could handle short-circuiting assignment operators, - * for some constant values, but that would require walking the - * scope to find the value of the variable being assigned. This is - * dependant on https://github.com/eslint/eslint/issues/13776 - * - * AssignmentExpression() {}, - */ - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-constant-condition.js b/graphql/node_modules/eslint/lib/rules/no-constant-condition.js deleted file mode 100644 index b7d0c755..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-constant-condition.js +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @fileoverview Rule to flag use constant conditions - * @author Christian Schulz - */ - -"use strict"; - -const { isConstant } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow constant expressions in conditions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-constant-condition" - }, - - schema: [ - { - type: "object", - properties: { - checkLoops: { - enum: ["all", "allExceptWhileTrue", "none", true, false] - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "Unexpected constant condition." - } - }, - - create(context) { - const options = context.options[0] || {}; - let checkLoops = options.checkLoops ?? "allExceptWhileTrue"; - const loopSetStack = []; - const sourceCode = context.sourceCode; - - if (options.checkLoops === true) { - checkLoops = "all"; - } else if (options.checkLoops === false) { - checkLoops = "none"; - } - - let loopsInCurrentScope = new Set(); - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Tracks when the given node contains a constant condition. - * @param {ASTNode} node The AST node to check. - * @returns {void} - * @private - */ - function trackConstantConditionLoop(node) { - if (node.test && isConstant(sourceCode.getScope(node), node.test, true)) { - loopsInCurrentScope.add(node); - } - } - - /** - * Reports when the set contains the given constant condition node - * @param {ASTNode} node The AST node to check. - * @returns {void} - * @private - */ - function checkConstantConditionLoopInSet(node) { - if (loopsInCurrentScope.has(node)) { - loopsInCurrentScope.delete(node); - context.report({ node: node.test, messageId: "unexpected" }); - } - } - - /** - * Reports when the given node contains a constant condition. - * @param {ASTNode} node The AST node to check. - * @returns {void} - * @private - */ - function reportIfConstant(node) { - if (node.test && isConstant(sourceCode.getScope(node), node.test, true)) { - context.report({ node: node.test, messageId: "unexpected" }); - } - } - - /** - * Stores current set of constant loops in loopSetStack temporarily - * and uses a new set to track constant loops - * @returns {void} - * @private - */ - function enterFunction() { - loopSetStack.push(loopsInCurrentScope); - loopsInCurrentScope = new Set(); - } - - /** - * Reports when the set still contains stored constant conditions - * @returns {void} - * @private - */ - function exitFunction() { - loopsInCurrentScope = loopSetStack.pop(); - } - - /** - * Checks node when checkLoops option is enabled - * @param {ASTNode} node The AST node to check. - * @returns {void} - * @private - */ - function checkLoop(node) { - if (checkLoops === "all" || checkLoops === "allExceptWhileTrue") { - trackConstantConditionLoop(node); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ConditionalExpression: reportIfConstant, - IfStatement: reportIfConstant, - WhileStatement(node) { - if (node.test.type === "Literal" && node.test.value === true && checkLoops === "allExceptWhileTrue") { - return; - } - - checkLoop(node); - }, - "WhileStatement:exit": checkConstantConditionLoopInSet, - DoWhileStatement: checkLoop, - "DoWhileStatement:exit": checkConstantConditionLoopInSet, - ForStatement: checkLoop, - "ForStatement > .test": node => checkLoop(node.parent), - "ForStatement:exit": checkConstantConditionLoopInSet, - FunctionDeclaration: enterFunction, - "FunctionDeclaration:exit": exitFunction, - FunctionExpression: enterFunction, - "FunctionExpression:exit": exitFunction, - YieldExpression: () => loopsInCurrentScope.clear() - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-constructor-return.js b/graphql/node_modules/eslint/lib/rules/no-constructor-return.js deleted file mode 100644 index e9ef7385..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-constructor-return.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview Rule to disallow returning value from constructor. - * @author Pig Fang - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow returning value from constructor", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-constructor-return" - }, - - schema: [], - - fixable: null, - - messages: { - unexpected: "Unexpected return statement in constructor." - } - }, - - create(context) { - const stack = []; - - return { - onCodePathStart(_, node) { - stack.push(node); - }, - onCodePathEnd() { - stack.pop(); - }, - ReturnStatement(node) { - const last = stack.at(-1); - - if (!last.parent) { - return; - } - - if ( - last.parent.type === "MethodDefinition" && - last.parent.kind === "constructor" && - node.argument - ) { - context.report({ - node, - messageId: "unexpected" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-continue.js b/graphql/node_modules/eslint/lib/rules/no-continue.js deleted file mode 100644 index f6e484b2..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-continue.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview Rule to flag use of continue statement - * @author Borislav Zhivkov - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `continue` statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-continue" - }, - - schema: [], - - messages: { - unexpected: "Unexpected use of continue statement." - } - }, - - create(context) { - - return { - ContinueStatement(node) { - context.report({ node, messageId: "unexpected" }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-control-regex.js b/graphql/node_modules/eslint/lib/rules/no-control-regex.js deleted file mode 100644 index dc412fca..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-control-regex.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @fileoverview Rule to forbid control characters from regular expressions. - * @author Nicholas C. Zakas - */ - -"use strict"; - -const RegExpValidator = require("@eslint-community/regexpp").RegExpValidator; -const collector = new (class { - constructor() { - this._source = ""; - this._controlChars = []; - this._validator = new RegExpValidator(this); - } - - onPatternEnter() { - - /* - * `RegExpValidator` may parse the pattern twice in one `validatePattern`. - * So `this._controlChars` should be cleared here as well. - * - * For example, the `/(?\x1f)/` regex will parse the pattern twice. - * This is based on the content described in Annex B. - * If the regex contains a `GroupName` and the `u` flag is not used, `ParseText` will be called twice. - * See https://tc39.es/ecma262/2023/multipage/additional-ecmascript-features-for-web-browsers.html#sec-parsepattern-annexb - */ - this._controlChars = []; - } - - onCharacter(start, end, cp) { - if (cp >= 0x00 && - cp <= 0x1F && - ( - this._source.codePointAt(start) === cp || - this._source.slice(start, end).startsWith("\\x") || - this._source.slice(start, end).startsWith("\\u") - ) - ) { - this._controlChars.push(`\\x${`0${cp.toString(16)}`.slice(-2)}`); - } - } - - collectControlChars(regexpStr, flags) { - const uFlag = typeof flags === "string" && flags.includes("u"); - const vFlag = typeof flags === "string" && flags.includes("v"); - - this._controlChars = []; - this._source = regexpStr; - - try { - this._validator.validatePattern(regexpStr, void 0, void 0, { unicode: uFlag, unicodeSets: vFlag }); // Call onCharacter hook - } catch { - - // Ignore syntax errors in RegExp. - } - return this._controlChars; - } -})(); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow control characters in regular expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-control-regex" - }, - - schema: [], - - messages: { - unexpected: "Unexpected control character(s) in regular expression: {{controlChars}}." - } - }, - - create(context) { - - /** - * Get the regex expression - * @param {ASTNode} node `Literal` node to evaluate - * @returns {{ pattern: string, flags: string | null } | null} Regex if found (the given node is either a regex literal - * or a string literal that is the pattern argument of a RegExp constructor call). Otherwise `null`. If flags cannot be determined, - * the `flags` property will be `null`. - * @private - */ - function getRegExp(node) { - if (node.regex) { - return node.regex; - } - if (typeof node.value === "string" && - (node.parent.type === "NewExpression" || node.parent.type === "CallExpression") && - node.parent.callee.type === "Identifier" && - node.parent.callee.name === "RegExp" && - node.parent.arguments[0] === node - ) { - const pattern = node.value; - const flags = - node.parent.arguments.length > 1 && - node.parent.arguments[1].type === "Literal" && - typeof node.parent.arguments[1].value === "string" - ? node.parent.arguments[1].value - : null; - - return { pattern, flags }; - } - - return null; - } - - return { - Literal(node) { - const regExp = getRegExp(node); - - if (regExp) { - const { pattern, flags } = regExp; - const controlCharacters = collector.collectControlChars(pattern, flags); - - if (controlCharacters.length > 0) { - context.report({ - node, - messageId: "unexpected", - data: { - controlChars: controlCharacters.join(", ") - } - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-debugger.js b/graphql/node_modules/eslint/lib/rules/no-debugger.js deleted file mode 100644 index f6984351..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-debugger.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @fileoverview Rule to flag use of a debugger statement - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow the use of `debugger`", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-debugger" - }, - - fixable: null, - schema: [], - - messages: { - unexpected: "Unexpected 'debugger' statement." - } - }, - - create(context) { - - return { - DebuggerStatement(node) { - context.report({ - node, - messageId: "unexpected" - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-delete-var.js b/graphql/node_modules/eslint/lib/rules/no-delete-var.js deleted file mode 100644 index 126603c8..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-delete-var.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @fileoverview Rule to flag when deleting variables - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow deleting variables", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-delete-var" - }, - - schema: [], - - messages: { - unexpected: "Variables should not be deleted." - } - }, - - create(context) { - - return { - - UnaryExpression(node) { - if (node.operator === "delete" && node.argument.type === "Identifier") { - context.report({ node, messageId: "unexpected" }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-div-regex.js b/graphql/node_modules/eslint/lib/rules/no-div-regex.js deleted file mode 100644 index 208f840b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-div-regex.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @fileoverview Rule to check for ambiguous div operator in regexes - * @author Matt DuVall - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow equal signs explicitly at the beginning of regular expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-div-regex" - }, - - fixable: "code", - - schema: [], - - messages: { - unexpected: "A regular expression literal can be confused with '/='." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - - Literal(node) { - const token = sourceCode.getFirstToken(node); - - if (token.type === "RegularExpression" && token.value[1] === "=") { - context.report({ - node, - messageId: "unexpected", - fix(fixer) { - return fixer.replaceTextRange([token.range[0] + 1, token.range[0] + 2], "[=]"); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-dupe-args.js b/graphql/node_modules/eslint/lib/rules/no-dupe-args.js deleted file mode 100644 index c04ede5a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-dupe-args.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @fileoverview Rule to flag duplicate arguments - * @author Jamund Ferguson - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate arguments in `function` definitions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-dupe-args" - }, - - schema: [], - - messages: { - unexpected: "Duplicate param '{{name}}'." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Checks whether or not a given definition is a parameter's. - * @param {eslint-scope.DefEntry} def A definition to check. - * @returns {boolean} `true` if the definition is a parameter's. - */ - function isParameter(def) { - return def.type === "Parameter"; - } - - /** - * Determines if a given node has duplicate parameters. - * @param {ASTNode} node The node to check. - * @returns {void} - * @private - */ - function checkParams(node) { - const variables = sourceCode.getDeclaredVariables(node); - - for (let i = 0; i < variables.length; ++i) { - const variable = variables[i]; - - // Checks and reports duplications. - const defs = variable.defs.filter(isParameter); - - if (defs.length >= 2) { - context.report({ - node, - messageId: "unexpected", - data: { name: variable.name } - }); - } - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - FunctionDeclaration: checkParams, - FunctionExpression: checkParams - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-dupe-class-members.js b/graphql/node_modules/eslint/lib/rules/no-dupe-class-members.js deleted file mode 100644 index c3355321..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-dupe-class-members.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @fileoverview A rule to disallow duplicate name in class members. - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate class members", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-dupe-class-members" - }, - - schema: [], - - messages: { - unexpected: "Duplicate name '{{name}}'." - } - }, - - create(context) { - let stack = []; - - /** - * Gets state of a given member name. - * @param {string} name A name of a member. - * @param {boolean} isStatic A flag which specifies that is a static member. - * @returns {Object} A state of a given member name. - * - retv.init {boolean} A flag which shows the name is declared as normal member. - * - retv.get {boolean} A flag which shows the name is declared as getter. - * - retv.set {boolean} A flag which shows the name is declared as setter. - */ - function getState(name, isStatic) { - const stateMap = stack.at(-1); - const key = `$${name}`; // to avoid "__proto__". - - if (!stateMap[key]) { - stateMap[key] = { - nonStatic: { init: false, get: false, set: false }, - static: { init: false, get: false, set: false } - }; - } - - return stateMap[key][isStatic ? "static" : "nonStatic"]; - } - - return { - - // Initializes the stack of state of member declarations. - Program() { - stack = []; - }, - - // Initializes state of member declarations for the class. - ClassBody() { - stack.push(Object.create(null)); - }, - - // Disposes the state for the class. - "ClassBody:exit"() { - stack.pop(); - }, - - // Reports the node if its name has been declared already. - "MethodDefinition, PropertyDefinition"(node) { - const name = astUtils.getStaticPropertyName(node); - const kind = node.type === "MethodDefinition" ? node.kind : "field"; - - if (name === null || kind === "constructor") { - return; - } - - const state = getState(name, node.static); - let isDuplicate; - - if (kind === "get") { - isDuplicate = (state.init || state.get); - state.get = true; - } else if (kind === "set") { - isDuplicate = (state.init || state.set); - state.set = true; - } else { - isDuplicate = (state.init || state.get || state.set); - state.init = true; - } - - if (isDuplicate) { - context.report({ node, messageId: "unexpected", data: { name } }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-dupe-else-if.js b/graphql/node_modules/eslint/lib/rules/no-dupe-else-if.js deleted file mode 100644 index 60f436d1..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-dupe-else-if.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @fileoverview Rule to disallow duplicate conditions in if-else-if chains - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the first given array is a subset of the second given array. - * @param {Function} comparator A function to compare two elements, should return `true` if they are equal. - * @param {Array} arrA The array to compare from. - * @param {Array} arrB The array to compare against. - * @returns {boolean} `true` if the array `arrA` is a subset of the array `arrB`. - */ -function isSubsetByComparator(comparator, arrA, arrB) { - return arrA.every(a => arrB.some(b => comparator(a, b))); -} - -/** - * Splits the given node by the given logical operator. - * @param {string} operator Logical operator `||` or `&&`. - * @param {ASTNode} node The node to split. - * @returns {ASTNode[]} Array of conditions that makes the node when joined by the operator. - */ -function splitByLogicalOperator(operator, node) { - if (node.type === "LogicalExpression" && node.operator === operator) { - return [...splitByLogicalOperator(operator, node.left), ...splitByLogicalOperator(operator, node.right)]; - } - return [node]; -} - -const splitByOr = splitByLogicalOperator.bind(null, "||"); -const splitByAnd = splitByLogicalOperator.bind(null, "&&"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate conditions in if-else-if chains", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-dupe-else-if" - }, - - schema: [], - - messages: { - unexpected: "This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Determines whether the two given nodes are considered to be equal. In particular, given that the nodes - * represent expressions in a boolean context, `||` and `&&` can be considered as commutative operators. - * @param {ASTNode} a First node. - * @param {ASTNode} b Second node. - * @returns {boolean} `true` if the nodes are considered to be equal. - */ - function equal(a, b) { - if (a.type !== b.type) { - return false; - } - - if ( - a.type === "LogicalExpression" && - (a.operator === "||" || a.operator === "&&") && - a.operator === b.operator - ) { - return equal(a.left, b.left) && equal(a.right, b.right) || - equal(a.left, b.right) && equal(a.right, b.left); - } - - return astUtils.equalTokens(a, b, sourceCode); - } - - const isSubset = isSubsetByComparator.bind(null, equal); - - return { - IfStatement(node) { - const test = node.test, - conditionsToCheck = test.type === "LogicalExpression" && test.operator === "&&" - ? [test, ...splitByAnd(test)] - : [test]; - let current = node, - listToCheck = conditionsToCheck.map(c => splitByOr(c).map(splitByAnd)); - - while (current.parent && current.parent.type === "IfStatement" && current.parent.alternate === current) { - current = current.parent; - - const currentOrOperands = splitByOr(current.test).map(splitByAnd); - - listToCheck = listToCheck.map(orOperands => orOperands.filter( - orOperand => !currentOrOperands.some(currentOrOperand => isSubset(currentOrOperand, orOperand)) - )); - - if (listToCheck.some(orOperands => orOperands.length === 0)) { - context.report({ node: test, messageId: "unexpected" }); - break; - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-dupe-keys.js b/graphql/node_modules/eslint/lib/rules/no-dupe-keys.js deleted file mode 100644 index 980b0044..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-dupe-keys.js +++ /dev/null @@ -1,142 +0,0 @@ -/** - * @fileoverview Rule to flag use of duplicate keys in an object. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const GET_KIND = /^(?:init|get)$/u; -const SET_KIND = /^(?:init|set)$/u; - -/** - * The class which stores properties' information of an object. - */ -class ObjectInfo { - - /** - * @param {ObjectInfo|null} upper The information of the outer object. - * @param {ASTNode} node The ObjectExpression node of this information. - */ - constructor(upper, node) { - this.upper = upper; - this.node = node; - this.properties = new Map(); - } - - /** - * Gets the information of the given Property node. - * @param {ASTNode} node The Property node to get. - * @returns {{get: boolean, set: boolean}} The information of the property. - */ - getPropertyInfo(node) { - const name = astUtils.getStaticPropertyName(node); - - if (!this.properties.has(name)) { - this.properties.set(name, { get: false, set: false }); - } - return this.properties.get(name); - } - - /** - * Checks whether the given property has been defined already or not. - * @param {ASTNode} node The Property node to check. - * @returns {boolean} `true` if the property has been defined. - */ - isPropertyDefined(node) { - const entry = this.getPropertyInfo(node); - - return ( - (GET_KIND.test(node.kind) && entry.get) || - (SET_KIND.test(node.kind) && entry.set) - ); - } - - /** - * Defines the given property. - * @param {ASTNode} node The Property node to define. - * @returns {void} - */ - defineProperty(node) { - const entry = this.getPropertyInfo(node); - - if (GET_KIND.test(node.kind)) { - entry.get = true; - } - if (SET_KIND.test(node.kind)) { - entry.set = true; - } - } -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate keys in object literals", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-dupe-keys" - }, - - schema: [], - - messages: { - unexpected: "Duplicate key '{{name}}'." - } - }, - - create(context) { - let info = null; - - return { - ObjectExpression(node) { - info = new ObjectInfo(info, node); - }, - "ObjectExpression:exit"() { - info = info.upper; - }, - - Property(node) { - const name = astUtils.getStaticPropertyName(node); - - // Skip destructuring. - if (node.parent.type !== "ObjectExpression") { - return; - } - - // Skip if the name is not static. - if (name === null) { - return; - } - - // Reports if the name is defined already. - if (info.isPropertyDefined(node)) { - context.report({ - node: info.node, - loc: node.key.loc, - messageId: "unexpected", - data: { name } - }); - } - - // Update info. - info.defineProperty(node); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-duplicate-case.js b/graphql/node_modules/eslint/lib/rules/no-duplicate-case.js deleted file mode 100644 index 839f357e..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-duplicate-case.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @fileoverview Rule to disallow a duplicate case label. - * @author Dieter Oberkofler - * @author Burak Yigit Kaya - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate case labels", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-duplicate-case" - }, - - schema: [], - - messages: { - unexpected: "Duplicate case label." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Determines whether the two given nodes are considered to be equal. - * @param {ASTNode} a First node. - * @param {ASTNode} b Second node. - * @returns {boolean} `true` if the nodes are considered to be equal. - */ - function equal(a, b) { - if (a.type !== b.type) { - return false; - } - - return astUtils.equalTokens(a, b, sourceCode); - } - return { - SwitchStatement(node) { - const previousTests = []; - - for (const switchCase of node.cases) { - if (switchCase.test) { - const test = switchCase.test; - - if (previousTests.some(previousTest => equal(previousTest, test))) { - context.report({ node: switchCase, messageId: "unexpected" }); - } else { - previousTests.push(test); - } - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-duplicate-imports.js b/graphql/node_modules/eslint/lib/rules/no-duplicate-imports.js deleted file mode 100644 index 25c07b75..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-duplicate-imports.js +++ /dev/null @@ -1,290 +0,0 @@ -/** - * @fileoverview Restrict usage of duplicate imports. - * @author Simen Bekkhus - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const NAMED_TYPES = ["ImportSpecifier", "ExportSpecifier"]; -const NAMESPACE_TYPES = [ - "ImportNamespaceSpecifier", - "ExportNamespaceSpecifier" -]; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** - * Check if an import/export type belongs to (ImportSpecifier|ExportSpecifier) or (ImportNamespaceSpecifier|ExportNamespaceSpecifier). - * @param {string} importExportType An import/export type to check. - * @param {string} type Can be "named" or "namespace" - * @returns {boolean} True if import/export type belongs to (ImportSpecifier|ExportSpecifier) or (ImportNamespaceSpecifier|ExportNamespaceSpecifier) and false if it doesn't. - */ -function isImportExportSpecifier(importExportType, type) { - const arrayToCheck = type === "named" ? NAMED_TYPES : NAMESPACE_TYPES; - - return arrayToCheck.includes(importExportType); -} - -/** - * Return the type of (import|export). - * @param {ASTNode} node A node to get. - * @returns {string} The type of the (import|export). - */ -function getImportExportType(node) { - if (node.specifiers && node.specifiers.length > 0) { - const nodeSpecifiers = node.specifiers; - const index = nodeSpecifiers.findIndex( - ({ type }) => - isImportExportSpecifier(type, "named") || - isImportExportSpecifier(type, "namespace") - ); - const i = index > -1 ? index : 0; - - return nodeSpecifiers[i].type; - } - if (node.type === "ExportAllDeclaration") { - if (node.exported) { - return "ExportNamespaceSpecifier"; - } - return "ExportAll"; - } - return "SideEffectImport"; -} - -/** - * Returns a boolean indicates if two (import|export) can be merged - * @param {ASTNode} node1 A node to check. - * @param {ASTNode} node2 A node to check. - * @returns {boolean} True if two (import|export) can be merged, false if they can't. - */ -function isImportExportCanBeMerged(node1, node2) { - const importExportType1 = getImportExportType(node1); - const importExportType2 = getImportExportType(node2); - - if ( - (importExportType1 === "ExportAll" && - importExportType2 !== "ExportAll" && - importExportType2 !== "SideEffectImport") || - (importExportType1 !== "ExportAll" && - importExportType1 !== "SideEffectImport" && - importExportType2 === "ExportAll") - ) { - return false; - } - if ( - (isImportExportSpecifier(importExportType1, "namespace") && - isImportExportSpecifier(importExportType2, "named")) || - (isImportExportSpecifier(importExportType2, "namespace") && - isImportExportSpecifier(importExportType1, "named")) - ) { - return false; - } - return true; -} - -/** - * Returns a boolean if we should report (import|export). - * @param {ASTNode} node A node to be reported or not. - * @param {[ASTNode]} previousNodes An array contains previous nodes of the module imported or exported. - * @returns {boolean} True if the (import|export) should be reported. - */ -function shouldReportImportExport(node, previousNodes) { - let i = 0; - - while (i < previousNodes.length) { - if (isImportExportCanBeMerged(node, previousNodes[i])) { - return true; - } - i++; - } - return false; -} - -/** - * Returns array contains only nodes with declarations types equal to type. - * @param {[{node: ASTNode, declarationType: string}]} nodes An array contains objects, each object contains a node and a declaration type. - * @param {string} type Declaration type. - * @returns {[ASTNode]} An array contains only nodes with declarations types equal to type. - */ -function getNodesByDeclarationType(nodes, type) { - return nodes - .filter(({ declarationType }) => declarationType === type) - .map(({ node }) => node); -} - -/** - * Returns the name of the module imported or re-exported. - * @param {ASTNode} node A node to get. - * @returns {string} The name of the module, or empty string if no name. - */ -function getModule(node) { - if (node && node.source && node.source.value) { - return node.source.value.trim(); - } - return ""; -} - -/** - * Checks if the (import|export) can be merged with at least one import or one export, and reports if so. - * @param {RuleContext} context The ESLint rule context object. - * @param {ASTNode} node A node to get. - * @param {Map} modules A Map object contains as a key a module name and as value an array contains objects, each object contains a node and a declaration type. - * @param {string} declarationType A declaration type can be an import or export. - * @param {boolean} includeExports Whether or not to check for exports in addition to imports. - * @returns {void} No return value. - */ -function checkAndReport( - context, - node, - modules, - declarationType, - includeExports -) { - const module = getModule(node); - - if (modules.has(module)) { - const previousNodes = modules.get(module); - const messagesIds = []; - const importNodes = getNodesByDeclarationType(previousNodes, "import"); - let exportNodes; - - if (includeExports) { - exportNodes = getNodesByDeclarationType(previousNodes, "export"); - } - if (declarationType === "import") { - if (shouldReportImportExport(node, importNodes)) { - messagesIds.push("import"); - } - if (includeExports) { - if (shouldReportImportExport(node, exportNodes)) { - messagesIds.push("importAs"); - } - } - } else if (declarationType === "export") { - if (shouldReportImportExport(node, exportNodes)) { - messagesIds.push("export"); - } - if (shouldReportImportExport(node, importNodes)) { - messagesIds.push("exportAs"); - } - } - messagesIds.forEach(messageId => - context.report({ - node, - messageId, - data: { - module - } - })); - } -} - -/** - * @callback nodeCallback - * @param {ASTNode} node A node to handle. - */ - -/** - * Returns a function handling the (imports|exports) of a given file - * @param {RuleContext} context The ESLint rule context object. - * @param {Map} modules A Map object contains as a key a module name and as value an array contains objects, each object contains a node and a declaration type. - * @param {string} declarationType A declaration type can be an import or export. - * @param {boolean} includeExports Whether or not to check for exports in addition to imports. - * @returns {nodeCallback} A function passed to ESLint to handle the statement. - */ -function handleImportsExports( - context, - modules, - declarationType, - includeExports -) { - return function(node) { - const module = getModule(node); - - if (module) { - checkAndReport( - context, - node, - modules, - declarationType, - includeExports - ); - const currentNode = { node, declarationType }; - let nodes = [currentNode]; - - if (modules.has(module)) { - const previousNodes = modules.get(module); - - nodes = [...previousNodes, currentNode]; - } - modules.set(module, nodes); - } - }; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow duplicate module imports", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-duplicate-imports" - }, - - schema: [ - { - type: "object", - properties: { - includeExports: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - import: "'{{module}}' import is duplicated.", - importAs: "'{{module}}' import is duplicated as export.", - export: "'{{module}}' export is duplicated.", - exportAs: "'{{module}}' export is duplicated as import." - } - }, - - create(context) { - const includeExports = (context.options[0] || {}).includeExports, - modules = new Map(); - const handlers = { - ImportDeclaration: handleImportsExports( - context, - modules, - "import", - includeExports - ) - }; - - if (includeExports) { - handlers.ExportNamedDeclaration = handleImportsExports( - context, - modules, - "export", - includeExports - ); - handlers.ExportAllDeclaration = handleImportsExports( - context, - modules, - "export", - includeExports - ); - } - return handlers; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-else-return.js b/graphql/node_modules/eslint/lib/rules/no-else-return.js deleted file mode 100644 index 6e6bf476..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-else-return.js +++ /dev/null @@ -1,405 +0,0 @@ -/** - * @fileoverview Rule to flag `else` after a `return` in `if` - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const FixTracker = require("./utils/fix-tracker"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `else` blocks after `return` statements in `if` statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-else-return" - }, - - schema: [{ - type: "object", - properties: { - allowElseIf: { - type: "boolean", - default: true - } - }, - additionalProperties: false - }], - - fixable: "code", - - messages: { - unexpected: "Unnecessary 'else' after 'return'." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Checks whether the given names can be safely used to declare block-scoped variables - * in the given scope. Name collisions can produce redeclaration syntax errors, - * or silently change references and modify behavior of the original code. - * - * This is not a generic function. In particular, it is assumed that the scope is a function scope or - * a function's inner scope, and that the names can be valid identifiers in the given scope. - * @param {string[]} names Array of variable names. - * @param {eslint-scope.Scope} scope Function scope or a function's inner scope. - * @returns {boolean} True if all names can be safely declared, false otherwise. - */ - function isSafeToDeclare(names, scope) { - - if (names.length === 0) { - return true; - } - - const functionScope = scope.variableScope; - - /* - * If this is a function scope, scope.variables will contain parameters, implicit variables such as "arguments", - * all function-scoped variables ('var'), and block-scoped variables defined in the scope. - * If this is an inner scope, scope.variables will contain block-scoped variables defined in the scope. - * - * Redeclaring any of these would cause a syntax error, except for the implicit variables. - */ - const declaredVariables = scope.variables.filter(({ defs }) => defs.length > 0); - - if (declaredVariables.some(({ name }) => names.includes(name))) { - return false; - } - - // Redeclaring a catch variable would also cause a syntax error. - if (scope !== functionScope && scope.upper.type === "catch") { - if (scope.upper.variables.some(({ name }) => names.includes(name))) { - return false; - } - } - - /* - * Redeclaring an implicit variable, such as "arguments", would not cause a syntax error. - * However, if the variable was used, declaring a new one with the same name would change references - * and modify behavior. - */ - const usedImplicitVariables = scope.variables.filter(({ defs, references }) => - defs.length === 0 && references.length > 0); - - if (usedImplicitVariables.some(({ name }) => names.includes(name))) { - return false; - } - - /* - * Declaring a variable with a name that was already used to reference a variable from an upper scope - * would change references and modify behavior. - */ - if (scope.through.some(t => names.includes(t.identifier.name))) { - return false; - } - - /* - * If the scope is an inner scope (not the function scope), an uninitialized `var` variable declared inside - * the scope node (directly or in one of its descendants) is neither declared nor 'through' in the scope. - * - * For example, this would be a syntax error "Identifier 'a' has already been declared": - * function foo() { if (bar) { let a; if (baz) { var a; } } } - */ - if (scope !== functionScope) { - const scopeNodeRange = scope.block.range; - const variablesToCheck = functionScope.variables.filter(({ name }) => names.includes(name)); - - if (variablesToCheck.some(v => v.defs.some(({ node: { range } }) => - scopeNodeRange[0] <= range[0] && range[1] <= scopeNodeRange[1]))) { - return false; - } - } - - return true; - } - - - /** - * Checks whether the removal of `else` and its braces is safe from variable name collisions. - * @param {Node} node The 'else' node. - * @param {eslint-scope.Scope} scope The scope in which the node and the whole 'if' statement is. - * @returns {boolean} True if it is safe, false otherwise. - */ - function isSafeFromNameCollisions(node, scope) { - - if (node.type === "FunctionDeclaration") { - - // Conditional function declaration. Scope and hoisting are unpredictable, different engines work differently. - return false; - } - - if (node.type !== "BlockStatement") { - return true; - } - - const elseBlockScope = scope.childScopes.find(({ block }) => block === node); - - if (!elseBlockScope) { - - // ecmaVersion < 6, `else` block statement cannot have its own scope, no possible collisions. - return true; - } - - /* - * elseBlockScope is supposed to merge into its upper scope. elseBlockScope.variables array contains - * only block-scoped variables (such as let and const variables or class and function declarations) - * defined directly in the elseBlockScope. These are exactly the only names that could cause collisions. - */ - const namesToCheck = elseBlockScope.variables.map(({ name }) => name); - - return isSafeToDeclare(namesToCheck, scope); - } - - /** - * Display the context report if rule is violated - * @param {Node} elseNode The 'else' node - * @returns {void} - */ - function displayReport(elseNode) { - const currentScope = sourceCode.getScope(elseNode.parent); - - context.report({ - node: elseNode, - messageId: "unexpected", - fix(fixer) { - - if (!isSafeFromNameCollisions(elseNode, currentScope)) { - return null; - } - - const startToken = sourceCode.getFirstToken(elseNode); - const elseToken = sourceCode.getTokenBefore(startToken); - const source = sourceCode.getText(elseNode); - const lastIfToken = sourceCode.getTokenBefore(elseToken); - let fixedSource, firstTokenOfElseBlock; - - if (startToken.type === "Punctuator" && startToken.value === "{") { - firstTokenOfElseBlock = sourceCode.getTokenAfter(startToken); - } else { - firstTokenOfElseBlock = startToken; - } - - /* - * If the if block does not have curly braces and does not end in a semicolon - * and the else block starts with (, [, /, +, ` or -, then it is not - * safe to remove the else keyword, because ASI will not add a semicolon - * after the if block - */ - const ifBlockMaybeUnsafe = elseNode.parent.consequent.type !== "BlockStatement" && lastIfToken.value !== ";"; - const elseBlockUnsafe = /^[([/+`-]/u.test(firstTokenOfElseBlock.value); - - if (ifBlockMaybeUnsafe && elseBlockUnsafe) { - return null; - } - - const endToken = sourceCode.getLastToken(elseNode); - const lastTokenOfElseBlock = sourceCode.getTokenBefore(endToken); - - if (lastTokenOfElseBlock.value !== ";") { - const nextToken = sourceCode.getTokenAfter(endToken); - - const nextTokenUnsafe = nextToken && /^[([/+`-]/u.test(nextToken.value); - const nextTokenOnSameLine = nextToken && nextToken.loc.start.line === lastTokenOfElseBlock.loc.start.line; - - /* - * If the else block contents does not end in a semicolon, - * and the else block starts with (, [, /, +, ` or -, then it is not - * safe to remove the else block, because ASI will not add a semicolon - * after the remaining else block contents - */ - if (nextTokenUnsafe || (nextTokenOnSameLine && nextToken.value !== "}")) { - return null; - } - } - - if (startToken.type === "Punctuator" && startToken.value === "{") { - fixedSource = source.slice(1, -1); - } else { - fixedSource = source; - } - - /* - * Extend the replacement range to include the entire - * function to avoid conflicting with no-useless-return. - * https://github.com/eslint/eslint/issues/8026 - * - * Also, to avoid name collisions between two else blocks. - */ - return new FixTracker(fixer, sourceCode) - .retainEnclosingFunction(elseNode) - .replaceTextRange([elseToken.range[0], elseNode.range[1]], fixedSource); - } - }); - } - - /** - * Check to see if the node is a ReturnStatement - * @param {Node} node The node being evaluated - * @returns {boolean} True if node is a return - */ - function checkForReturn(node) { - return node.type === "ReturnStatement"; - } - - /** - * Naive return checking, does not iterate through the whole - * BlockStatement because we make the assumption that the ReturnStatement - * will be the last node in the body of the BlockStatement. - * @param {Node} node The consequent/alternate node - * @returns {boolean} True if it has a return - */ - function naiveHasReturn(node) { - if (node.type === "BlockStatement") { - const body = node.body, - lastChildNode = body.at(-1); - - return lastChildNode && checkForReturn(lastChildNode); - } - return checkForReturn(node); - } - - /** - * Check to see if the node is valid for evaluation, - * meaning it has an else. - * @param {Node} node The node being evaluated - * @returns {boolean} True if the node is valid - */ - function hasElse(node) { - return node.alternate && node.consequent; - } - - /** - * If the consequent is an IfStatement, check to see if it has an else - * and both its consequent and alternate path return, meaning this is - * a nested case of rule violation. If-Else not considered currently. - * @param {Node} node The consequent node - * @returns {boolean} True if this is a nested rule violation - */ - function checkForIf(node) { - return node.type === "IfStatement" && hasElse(node) && - naiveHasReturn(node.alternate) && naiveHasReturn(node.consequent); - } - - /** - * Check the consequent/body node to make sure it is not - * a ReturnStatement or an IfStatement that returns on both - * code paths. - * @param {Node} node The consequent or body node - * @returns {boolean} `true` if it is a Return/If node that always returns. - */ - function checkForReturnOrIf(node) { - return checkForReturn(node) || checkForIf(node); - } - - - /** - * Check whether a node returns in every codepath. - * @param {Node} node The node to be checked - * @returns {boolean} `true` if it returns on every codepath. - */ - function alwaysReturns(node) { - if (node.type === "BlockStatement") { - - // If we have a BlockStatement, check each consequent body node. - return node.body.some(checkForReturnOrIf); - } - - /* - * If not a block statement, make sure the consequent isn't a - * ReturnStatement or an IfStatement with returns on both paths. - */ - return checkForReturnOrIf(node); - } - - - /** - * Check the if statement, but don't catch else-if blocks. - * @returns {void} - * @param {Node} node The node for the if statement to check - * @private - */ - function checkIfWithoutElse(node) { - const parent = node.parent; - - /* - * Fixing this would require splitting one statement into two, so no error should - * be reported if this node is in a position where only one statement is allowed. - */ - if (!astUtils.STATEMENT_LIST_PARENTS.has(parent.type)) { - return; - } - - const consequents = []; - let alternate; - - for (let currentNode = node; currentNode.type === "IfStatement"; currentNode = currentNode.alternate) { - if (!currentNode.alternate) { - return; - } - consequents.push(currentNode.consequent); - alternate = currentNode.alternate; - } - - if (consequents.every(alwaysReturns)) { - displayReport(alternate); - } - } - - /** - * Check the if statement - * @returns {void} - * @param {Node} node The node for the if statement to check - * @private - */ - function checkIfWithElse(node) { - const parent = node.parent; - - - /* - * Fixing this would require splitting one statement into two, so no error should - * be reported if this node is in a position where only one statement is allowed. - */ - if (!astUtils.STATEMENT_LIST_PARENTS.has(parent.type)) { - return; - } - - const alternate = node.alternate; - - if (alternate && alwaysReturns(node.consequent)) { - displayReport(alternate); - } - } - - const allowElseIf = !(context.options[0] && context.options[0].allowElseIf === false); - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - "IfStatement:exit": allowElseIf ? checkIfWithoutElse : checkIfWithElse - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-empty-character-class.js b/graphql/node_modules/eslint/lib/rules/no-empty-character-class.js deleted file mode 100644 index 5c841023..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-empty-character-class.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @fileoverview Rule to flag the use of empty character classes in regular expressions - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const parser = new RegExpParser(); -const QUICK_TEST_REGEX = /\[\]/u; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow empty character classes in regular expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-empty-character-class" - }, - - schema: [], - - messages: { - unexpected: "Empty class." - } - }, - - create(context) { - return { - "Literal[regex]"(node) { - const { pattern, flags } = node.regex; - - if (!QUICK_TEST_REGEX.test(pattern)) { - return; - } - - let regExpAST; - - try { - regExpAST = parser.parsePattern(pattern, 0, pattern.length, { - unicode: flags.includes("u"), - unicodeSets: flags.includes("v") - }); - } catch { - - // Ignore regular expressions that regexpp cannot parse - return; - } - - visitRegExpAST(regExpAST, { - onCharacterClassEnter(characterClass) { - if (!characterClass.negate && characterClass.elements.length === 0) { - context.report({ node, messageId: "unexpected" }); - } - } - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-empty-function.js b/graphql/node_modules/eslint/lib/rules/no-empty-function.js deleted file mode 100644 index b7dee94c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-empty-function.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * @fileoverview Rule to disallow empty functions. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const ALLOW_OPTIONS = Object.freeze([ - "functions", - "arrowFunctions", - "generatorFunctions", - "methods", - "generatorMethods", - "getters", - "setters", - "constructors", - "asyncFunctions", - "asyncMethods" -]); - -/** - * Gets the kind of a given function node. - * @param {ASTNode} node A function node to get. This is one of - * an ArrowFunctionExpression, a FunctionDeclaration, or a - * FunctionExpression. - * @returns {string} The kind of the function. This is one of "functions", - * "arrowFunctions", "generatorFunctions", "asyncFunctions", "methods", - * "generatorMethods", "asyncMethods", "getters", "setters", and - * "constructors". - */ -function getKind(node) { - const parent = node.parent; - let kind; - - if (node.type === "ArrowFunctionExpression") { - return "arrowFunctions"; - } - - // Detects main kind. - if (parent.type === "Property") { - if (parent.kind === "get") { - return "getters"; - } - if (parent.kind === "set") { - return "setters"; - } - kind = parent.method ? "methods" : "functions"; - - } else if (parent.type === "MethodDefinition") { - if (parent.kind === "get") { - return "getters"; - } - if (parent.kind === "set") { - return "setters"; - } - if (parent.kind === "constructor") { - return "constructors"; - } - kind = "methods"; - - } else { - kind = "functions"; - } - - // Detects prefix. - let prefix; - - if (node.generator) { - prefix = "generator"; - } else if (node.async) { - prefix = "async"; - } else { - return kind; - } - return prefix + kind[0].toUpperCase() + kind.slice(1); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow empty functions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-empty-function" - }, - - schema: [ - { - type: "object", - properties: { - allow: { - type: "array", - items: { enum: ALLOW_OPTIONS }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "Unexpected empty {{name}}." - } - }, - - create(context) { - const options = context.options[0] || {}; - const allowed = options.allow || []; - - const sourceCode = context.sourceCode; - - /** - * Reports a given function node if the node matches the following patterns. - * - * - Not allowed by options. - * - The body is empty. - * - The body doesn't have any comments. - * @param {ASTNode} node A function node to report. This is one of - * an ArrowFunctionExpression, a FunctionDeclaration, or a - * FunctionExpression. - * @returns {void} - */ - function reportIfEmpty(node) { - const kind = getKind(node); - const name = astUtils.getFunctionNameWithKind(node); - const innerComments = sourceCode.getTokens(node.body, { - includeComments: true, - filter: astUtils.isCommentToken - }); - - if (!allowed.includes(kind) && - node.body.type === "BlockStatement" && - node.body.body.length === 0 && - innerComments.length === 0 - ) { - context.report({ - node, - loc: node.body.loc, - messageId: "unexpected", - data: { name } - }); - } - } - - return { - ArrowFunctionExpression: reportIfEmpty, - FunctionDeclaration: reportIfEmpty, - FunctionExpression: reportIfEmpty - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-empty-pattern.js b/graphql/node_modules/eslint/lib/rules/no-empty-pattern.js deleted file mode 100644 index fb75f6d2..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-empty-pattern.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @fileoverview Rule to disallow an empty pattern - * @author Alberto Rodríguez - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow empty destructuring patterns", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-empty-pattern" - }, - - schema: [ - { - type: "object", - properties: { - allowObjectPatternsAsParameters: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "Unexpected empty {{type}} pattern." - } - }, - - create(context) { - const options = context.options[0] || {}, - allowObjectPatternsAsParameters = options.allowObjectPatternsAsParameters || false; - - return { - ObjectPattern(node) { - - if (node.properties.length > 0) { - return; - } - - // Allow {} and {} = {} empty object patterns as parameters when allowObjectPatternsAsParameters is true - if ( - allowObjectPatternsAsParameters && - ( - astUtils.isFunction(node.parent) || - ( - node.parent.type === "AssignmentPattern" && - astUtils.isFunction(node.parent.parent) && - node.parent.right.type === "ObjectExpression" && - node.parent.right.properties.length === 0 - ) - ) - ) { - return; - } - - context.report({ node, messageId: "unexpected", data: { type: "object" } }); - }, - ArrayPattern(node) { - if (node.elements.length === 0) { - context.report({ node, messageId: "unexpected", data: { type: "array" } }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-empty-static-block.js b/graphql/node_modules/eslint/lib/rules/no-empty-static-block.js deleted file mode 100644 index 558c4fad..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-empty-static-block.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @fileoverview Rule to disallow empty static blocks. - * @author Sosuke Suzuki - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow empty static blocks", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-empty-static-block" - }, - - schema: [], - - messages: { - unexpected: "Unexpected empty static block." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - StaticBlock(node) { - if (node.body.length === 0) { - const closingBrace = sourceCode.getLastToken(node); - - if (sourceCode.getCommentsBefore(closingBrace).length === 0) { - context.report({ - node, - messageId: "unexpected" - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-empty.js b/graphql/node_modules/eslint/lib/rules/no-empty.js deleted file mode 100644 index 1c157963..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-empty.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @fileoverview Rule to flag use of an empty block statement - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - hasSuggestions: true, - type: "suggestion", - - docs: { - description: "Disallow empty block statements", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-empty" - }, - - schema: [ - { - type: "object", - properties: { - allowEmptyCatch: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "Empty {{type}} statement.", - suggestComment: "Add comment inside empty {{type}} statement." - } - }, - - create(context) { - const options = context.options[0] || {}, - allowEmptyCatch = options.allowEmptyCatch || false; - - const sourceCode = context.sourceCode; - - return { - BlockStatement(node) { - - // if the body is not empty, we can just return immediately - if (node.body.length !== 0) { - return; - } - - // a function is generally allowed to be empty - if (astUtils.isFunction(node.parent)) { - return; - } - - if (allowEmptyCatch && node.parent.type === "CatchClause") { - return; - } - - // any other block is only allowed to be empty, if it contains a comment - if (sourceCode.getCommentsInside(node).length > 0) { - return; - } - - context.report({ - node, - messageId: "unexpected", - data: { type: "block" }, - suggest: [ - { - messageId: "suggestComment", - data: { type: "block" }, - fix(fixer) { - const range = [node.range[0] + 1, node.range[1] - 1]; - - return fixer.replaceTextRange(range, " /* empty */ "); - } - } - ] - }); - }, - - SwitchStatement(node) { - - if (typeof node.cases === "undefined" || node.cases.length === 0) { - context.report({ node, messageId: "unexpected", data: { type: "switch" } }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-eq-null.js b/graphql/node_modules/eslint/lib/rules/no-eq-null.js deleted file mode 100644 index 9252907b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-eq-null.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview Rule to flag comparisons to null without a type-checking - * operator. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `null` comparisons without type-checking operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-eq-null" - }, - - schema: [], - - messages: { - unexpected: "Use '===' to compare with null." - } - }, - - create(context) { - - return { - - BinaryExpression(node) { - const badOperator = node.operator === "==" || node.operator === "!="; - - if (node.right.type === "Literal" && node.right.raw === "null" && badOperator || - node.left.type === "Literal" && node.left.raw === "null" && badOperator) { - context.report({ node, messageId: "unexpected" }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-eval.js b/graphql/node_modules/eslint/lib/rules/no-eval.js deleted file mode 100644 index a059526a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-eval.js +++ /dev/null @@ -1,286 +0,0 @@ -/** - * @fileoverview Rule to flag use of eval() statement - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const candidatesOfGlobalObject = Object.freeze([ - "global", - "window", - "globalThis" -]); - -/** - * Checks a given node is a MemberExpression node which has the specified name's - * property. - * @param {ASTNode} node A node to check. - * @param {string} name A name to check. - * @returns {boolean} `true` if the node is a MemberExpression node which has - * the specified name's property - */ -function isMember(node, name) { - return astUtils.isSpecificMemberAccess(node, null, name); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `eval()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-eval" - }, - - schema: [ - { - type: "object", - properties: { - allowIndirect: { type: "boolean", default: false } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "eval can be harmful." - } - }, - - create(context) { - const allowIndirect = Boolean( - context.options[0] && - context.options[0].allowIndirect - ); - const sourceCode = context.sourceCode; - let funcInfo = null; - - /** - * Pushes a `this` scope (non-arrow function, class static block, or class field initializer) information to the stack. - * Top-level scopes are handled separately. - * - * This is used in order to check whether or not `this` binding is a - * reference to the global object. - * @param {ASTNode} node A node of the scope. - * For functions, this is one of FunctionDeclaration, FunctionExpression. - * For class static blocks, this is StaticBlock. - * For class field initializers, this can be any node that is PropertyDefinition#value. - * @returns {void} - */ - function enterThisScope(node) { - const strict = sourceCode.getScope(node).isStrict; - - funcInfo = { - upper: funcInfo, - node, - strict, - isTopLevelOfScript: false, - defaultThis: false, - initialized: strict - }; - } - - /** - * Pops a variable scope from the stack. - * @returns {void} - */ - function exitThisScope() { - funcInfo = funcInfo.upper; - } - - /** - * Reports a given node. - * - * `node` is `Identifier` or `MemberExpression`. - * The parent of `node` might be `CallExpression`. - * - * The location of the report is always `eval` `Identifier` (or possibly - * `Literal`). The type of the report is `CallExpression` if the parent is - * `CallExpression`. Otherwise, it's the given node type. - * @param {ASTNode} node A node to report. - * @returns {void} - */ - function report(node) { - const parent = node.parent; - const locationNode = node.type === "MemberExpression" - ? node.property - : node; - - const reportNode = parent.type === "CallExpression" && parent.callee === node - ? parent - : node; - - context.report({ - node: reportNode, - loc: locationNode.loc, - messageId: "unexpected" - }); - } - - /** - * Reports accesses of `eval` via the global object. - * @param {eslint-scope.Scope} globalScope The global scope. - * @returns {void} - */ - function reportAccessingEvalViaGlobalObject(globalScope) { - for (let i = 0; i < candidatesOfGlobalObject.length; ++i) { - const name = candidatesOfGlobalObject[i]; - const variable = astUtils.getVariableByName(globalScope, name); - - if (!variable) { - continue; - } - - const references = variable.references; - - for (let j = 0; j < references.length; ++j) { - const identifier = references[j].identifier; - let node = identifier.parent; - - // To detect code like `window.window.eval`. - while (isMember(node, name)) { - node = node.parent; - } - - // Reports. - if (isMember(node, "eval")) { - report(node); - } - } - } - } - - /** - * Reports all accesses of `eval` (excludes direct calls to eval). - * @param {eslint-scope.Scope} globalScope The global scope. - * @returns {void} - */ - function reportAccessingEval(globalScope) { - const variable = astUtils.getVariableByName(globalScope, "eval"); - - if (!variable) { - return; - } - - const references = variable.references; - - for (let i = 0; i < references.length; ++i) { - const reference = references[i]; - const id = reference.identifier; - - if (id.name === "eval" && !astUtils.isCallee(id)) { - - // Is accessing to eval (excludes direct calls to eval) - report(id); - } - } - } - - if (allowIndirect) { - - // Checks only direct calls to eval. It's simple! - return { - "CallExpression:exit"(node) { - const callee = node.callee; - - /* - * Optional call (`eval?.("code")`) is not direct eval. - * The direct eval is only step 6.a.vi of https://tc39.es/ecma262/#sec-function-calls-runtime-semantics-evaluation - * But the optional call is https://tc39.es/ecma262/#sec-optional-chaining-chain-evaluation - */ - if (!node.optional && astUtils.isSpecificId(callee, "eval")) { - report(callee); - } - } - }; - } - - return { - "CallExpression:exit"(node) { - const callee = node.callee; - - if (astUtils.isSpecificId(callee, "eval")) { - report(callee); - } - }, - - Program(node) { - const scope = sourceCode.getScope(node), - features = context.parserOptions.ecmaFeatures || {}, - strict = - scope.isStrict || - node.sourceType === "module" || - (features.globalReturn && scope.childScopes[0].isStrict), - isTopLevelOfScript = node.sourceType !== "module" && !features.globalReturn; - - funcInfo = { - upper: null, - node, - strict, - isTopLevelOfScript, - defaultThis: true, - initialized: true - }; - }, - - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - exitThisScope(); - reportAccessingEval(globalScope); - reportAccessingEvalViaGlobalObject(globalScope); - }, - - FunctionDeclaration: enterThisScope, - "FunctionDeclaration:exit": exitThisScope, - FunctionExpression: enterThisScope, - "FunctionExpression:exit": exitThisScope, - "PropertyDefinition > *.value": enterThisScope, - "PropertyDefinition > *.value:exit": exitThisScope, - StaticBlock: enterThisScope, - "StaticBlock:exit": exitThisScope, - - ThisExpression(node) { - if (!isMember(node.parent, "eval")) { - return; - } - - /* - * `this.eval` is found. - * Checks whether or not the value of `this` is the global object. - */ - if (!funcInfo.initialized) { - funcInfo.initialized = true; - funcInfo.defaultThis = astUtils.isDefaultThisBinding( - funcInfo.node, - sourceCode - ); - } - - // `this` at the top level of scripts always refers to the global object - if (funcInfo.isTopLevelOfScript || (!funcInfo.strict && funcInfo.defaultThis)) { - - // `this.eval` is possible built-in `eval`. - report(node.parent); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-ex-assign.js b/graphql/node_modules/eslint/lib/rules/no-ex-assign.js deleted file mode 100644 index d0e9feba..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-ex-assign.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @fileoverview Rule to flag assignment of the exception parameter - * @author Stephen Murray - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow reassigning exceptions in `catch` clauses", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-ex-assign" - }, - - schema: [], - - messages: { - unexpected: "Do not assign to the exception parameter." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Finds and reports references that are non initializer and writable. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - astUtils.getModifyingReferences(variable.references).forEach(reference => { - context.report({ node: reference.identifier, messageId: "unexpected" }); - }); - } - - return { - CatchClause(node) { - sourceCode.getDeclaredVariables(node).forEach(checkVariable); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extend-native.js b/graphql/node_modules/eslint/lib/rules/no-extend-native.js deleted file mode 100644 index a69dd690..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extend-native.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @fileoverview Rule to flag adding properties to native object's prototypes. - * @author David Nelson - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow extending native types", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-extend-native" - }, - - schema: [ - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpected: "{{builtin}} prototype is read only, properties should not be added." - } - }, - - create(context) { - - const config = context.options[0] || {}; - const sourceCode = context.sourceCode; - const exceptions = new Set(config.exceptions || []); - const modifiedBuiltins = new Set( - Object.keys(astUtils.ECMASCRIPT_GLOBALS) - .filter(builtin => builtin[0].toUpperCase() === builtin[0]) - .filter(builtin => !exceptions.has(builtin)) - ); - - /** - * Reports a lint error for the given node. - * @param {ASTNode} node The node to report. - * @param {string} builtin The name of the native builtin being extended. - * @returns {void} - */ - function reportNode(node, builtin) { - context.report({ - node, - messageId: "unexpected", - data: { - builtin - } - }); - } - - /** - * Check to see if the `prototype` property of the given object - * identifier node is being accessed. - * @param {ASTNode} identifierNode The Identifier representing the object - * to check. - * @returns {boolean} True if the identifier is the object of a - * MemberExpression and its `prototype` property is being accessed, - * false otherwise. - */ - function isPrototypePropertyAccessed(identifierNode) { - return Boolean( - identifierNode && - identifierNode.parent && - identifierNode.parent.type === "MemberExpression" && - identifierNode.parent.object === identifierNode && - astUtils.getStaticPropertyName(identifierNode.parent) === "prototype" - ); - } - - /** - * Check if it's an assignment to the property of the given node. - * Example: `*.prop = 0` // the `*` is the given node. - * @param {ASTNode} node The node to check. - * @returns {boolean} True if an assignment to the property of the node. - */ - function isAssigningToPropertyOf(node) { - return ( - node.parent.type === "MemberExpression" && - node.parent.object === node && - node.parent.parent.type === "AssignmentExpression" && - node.parent.parent.left === node.parent - ); - } - - /** - * Checks if the given node is at the first argument of the method call of `Object.defineProperty()` or `Object.defineProperties()`. - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node is at the first argument of the method call of `Object.defineProperty()` or `Object.defineProperties()`. - */ - function isInDefinePropertyCall(node) { - return ( - node.parent.type === "CallExpression" && - node.parent.arguments[0] === node && - astUtils.isSpecificMemberAccess(node.parent.callee, "Object", /^definePropert(?:y|ies)$/u) - ); - } - - /** - * Check to see if object prototype access is part of a prototype - * extension. There are three ways a prototype can be extended: - * 1. Assignment to prototype property (Object.prototype.foo = 1) - * 2. Object.defineProperty()/Object.defineProperties() on a prototype - * If prototype extension is detected, report the AssignmentExpression - * or CallExpression node. - * @param {ASTNode} identifierNode The Identifier representing the object - * which prototype is being accessed and possibly extended. - * @returns {void} - */ - function checkAndReportPrototypeExtension(identifierNode) { - if (!isPrototypePropertyAccessed(identifierNode)) { - return; // This is not `*.prototype` access. - } - - /* - * `identifierNode.parent` is a MemberExpression `*.prototype`. - * If it's an optional member access, it may be wrapped by a `ChainExpression` node. - */ - const prototypeNode = - identifierNode.parent.parent.type === "ChainExpression" - ? identifierNode.parent.parent - : identifierNode.parent; - - if (isAssigningToPropertyOf(prototypeNode)) { - - // `*.prototype` -> MemberExpression -> AssignmentExpression - reportNode(prototypeNode.parent.parent, identifierNode.name); - } else if (isInDefinePropertyCall(prototypeNode)) { - - // `*.prototype` -> CallExpression - reportNode(prototypeNode.parent, identifierNode.name); - } - } - - return { - - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - modifiedBuiltins.forEach(builtin => { - const builtinVar = globalScope.set.get(builtin); - - if (builtinVar && builtinVar.references) { - builtinVar.references - .map(ref => ref.identifier) - .forEach(checkAndReportPrototypeExtension); - } - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extra-bind.js b/graphql/node_modules/eslint/lib/rules/no-extra-bind.js deleted file mode 100644 index e1e72b0c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extra-bind.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @fileoverview Rule to flag unnecessary bind calls - * @author Bence Dányi - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SIDE_EFFECT_FREE_NODE_TYPES = new Set(["Literal", "Identifier", "ThisExpression", "FunctionExpression"]); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary calls to `.bind()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-extra-bind" - }, - - schema: [], - fixable: "code", - - messages: { - unexpected: "The function binding is unnecessary." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - let scopeInfo = null; - - /** - * Checks if a node is free of side effects. - * - * This check is stricter than it needs to be, in order to keep the implementation simple. - * @param {ASTNode} node A node to check. - * @returns {boolean} True if the node is known to be side-effect free, false otherwise. - */ - function isSideEffectFree(node) { - return SIDE_EFFECT_FREE_NODE_TYPES.has(node.type); - } - - /** - * Reports a given function node. - * @param {ASTNode} node A node to report. This is a FunctionExpression or - * an ArrowFunctionExpression. - * @returns {void} - */ - function report(node) { - const memberNode = node.parent; - const callNode = memberNode.parent.type === "ChainExpression" - ? memberNode.parent.parent - : memberNode.parent; - - context.report({ - node: callNode, - messageId: "unexpected", - loc: memberNode.property.loc, - - fix(fixer) { - if (!isSideEffectFree(callNode.arguments[0])) { - return null; - } - - /* - * The list of the first/last token pair of a removal range. - * This is two parts because closing parentheses may exist between the method name and arguments. - * E.g. `(function(){}.bind ) (obj)` - * ^^^^^ ^^^^^ < removal ranges - * E.g. `(function(){}?.['bind'] ) ?.(obj)` - * ^^^^^^^^^^ ^^^^^^^ < removal ranges - */ - const tokenPairs = [ - [ - - // `.`, `?.`, or `[` token. - sourceCode.getTokenAfter( - memberNode.object, - astUtils.isNotClosingParenToken - ), - - // property name or `]` token. - sourceCode.getLastToken(memberNode) - ], - [ - - // `?.` or `(` token of arguments. - sourceCode.getTokenAfter( - memberNode, - astUtils.isNotClosingParenToken - ), - - // `)` token of arguments. - sourceCode.getLastToken(callNode) - ] - ]; - const firstTokenToRemove = tokenPairs[0][0]; - const lastTokenToRemove = tokenPairs[1][1]; - - if (sourceCode.commentsExistBetween(firstTokenToRemove, lastTokenToRemove)) { - return null; - } - - return tokenPairs.map(([start, end]) => - fixer.removeRange([start.range[0], end.range[1]])); - } - }); - } - - /** - * Checks whether or not a given function node is the callee of `.bind()` - * method. - * - * e.g. `(function() {}.bind(foo))` - * @param {ASTNode} node A node to report. This is a FunctionExpression or - * an ArrowFunctionExpression. - * @returns {boolean} `true` if the node is the callee of `.bind()` method. - */ - function isCalleeOfBindMethod(node) { - if (!astUtils.isSpecificMemberAccess(node.parent, null, "bind")) { - return false; - } - - // The node of `*.bind` member access. - const bindNode = node.parent.parent.type === "ChainExpression" - ? node.parent.parent - : node.parent; - - return ( - bindNode.parent.type === "CallExpression" && - bindNode.parent.callee === bindNode && - bindNode.parent.arguments.length === 1 && - bindNode.parent.arguments[0].type !== "SpreadElement" - ); - } - - /** - * Adds a scope information object to the stack. - * @param {ASTNode} node A node to add. This node is a FunctionExpression - * or a FunctionDeclaration node. - * @returns {void} - */ - function enterFunction(node) { - scopeInfo = { - isBound: isCalleeOfBindMethod(node), - thisFound: false, - upper: scopeInfo - }; - } - - /** - * Removes the scope information object from the top of the stack. - * At the same time, this reports the function node if the function has - * `.bind()` and the `this` keywords found. - * @param {ASTNode} node A node to remove. This node is a - * FunctionExpression or a FunctionDeclaration node. - * @returns {void} - */ - function exitFunction(node) { - if (scopeInfo.isBound && !scopeInfo.thisFound) { - report(node); - } - - scopeInfo = scopeInfo.upper; - } - - /** - * Reports a given arrow function if the function is callee of `.bind()` - * method. - * @param {ASTNode} node A node to report. This node is an - * ArrowFunctionExpression. - * @returns {void} - */ - function exitArrowFunction(node) { - if (isCalleeOfBindMethod(node)) { - report(node); - } - } - - /** - * Set the mark as the `this` keyword was found in this scope. - * @returns {void} - */ - function markAsThisFound() { - if (scopeInfo) { - scopeInfo.thisFound = true; - } - } - - return { - "ArrowFunctionExpression:exit": exitArrowFunction, - FunctionDeclaration: enterFunction, - "FunctionDeclaration:exit": exitFunction, - FunctionExpression: enterFunction, - "FunctionExpression:exit": exitFunction, - ThisExpression: markAsThisFound - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extra-boolean-cast.js b/graphql/node_modules/eslint/lib/rules/no-extra-boolean-cast.js deleted file mode 100644 index 012657b7..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extra-boolean-cast.js +++ /dev/null @@ -1,369 +0,0 @@ -/** - * @fileoverview Rule to flag unnecessary double negation in Boolean contexts - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const eslintUtils = require("@eslint-community/eslint-utils"); - -const precedence = astUtils.getPrecedence; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary boolean casts", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-extra-boolean-cast" - }, - - schema: [{ - anyOf: [ - { - type: "object", - properties: { - enforceForInnerExpressions: { - type: "boolean" - } - }, - additionalProperties: false - }, - - // deprecated - { - type: "object", - properties: { - enforceForLogicalOperands: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - }], - fixable: "code", - - messages: { - unexpectedCall: "Redundant Boolean call.", - unexpectedNegation: "Redundant double negation." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const enforceForLogicalOperands = context.options[0]?.enforceForLogicalOperands === true; - const enforceForInnerExpressions = context.options[0]?.enforceForInnerExpressions === true; - - - // Node types which have a test which will coerce values to booleans. - const BOOLEAN_NODE_TYPES = new Set([ - "IfStatement", - "DoWhileStatement", - "WhileStatement", - "ConditionalExpression", - "ForStatement" - ]); - - /** - * Check if a node is a Boolean function or constructor. - * @param {ASTNode} node the node - * @returns {boolean} If the node is Boolean function or constructor - */ - function isBooleanFunctionOrConstructorCall(node) { - - // Boolean() and new Boolean() - return (node.type === "CallExpression" || node.type === "NewExpression") && - node.callee.type === "Identifier" && - node.callee.name === "Boolean"; - } - - /** - * Check if a node is in a context where its value would be coerced to a boolean at runtime. - * @param {ASTNode} node The node - * @returns {boolean} If it is in a boolean context - */ - function isInBooleanContext(node) { - return ( - (isBooleanFunctionOrConstructorCall(node.parent) && - node === node.parent.arguments[0]) || - - (BOOLEAN_NODE_TYPES.has(node.parent.type) && - node === node.parent.test) || - - // ! - (node.parent.type === "UnaryExpression" && - node.parent.operator === "!") - ); - } - - /** - * Checks whether the node is a context that should report an error - * Acts recursively if it is in a logical context - * @param {ASTNode} node the node - * @returns {boolean} If the node is in one of the flagged contexts - */ - function isInFlaggedContext(node) { - if (node.parent.type === "ChainExpression") { - return isInFlaggedContext(node.parent); - } - - /* - * legacy behavior - enforceForLogicalOperands will only recurse on - * logical expressions, not on other contexts. - * enforceForInnerExpressions will recurse on logical expressions - * as well as the other recursive syntaxes. - */ - - if (enforceForLogicalOperands || enforceForInnerExpressions) { - if (node.parent.type === "LogicalExpression") { - if (node.parent.operator === "||" || node.parent.operator === "&&") { - return isInFlaggedContext(node.parent); - } - - // Check the right hand side of a `??` operator. - if (enforceForInnerExpressions && - node.parent.operator === "??" && - node.parent.right === node - ) { - return isInFlaggedContext(node.parent); - } - } - } - - if (enforceForInnerExpressions) { - if ( - node.parent.type === "ConditionalExpression" && - (node.parent.consequent === node || node.parent.alternate === node) - ) { - return isInFlaggedContext(node.parent); - } - - /* - * Check last expression only in a sequence, i.e. if ((1, 2, Boolean(3))) {}, since - * the others don't affect the result of the expression. - */ - if ( - node.parent.type === "SequenceExpression" && - node.parent.expressions.at(-1) === node - ) { - return isInFlaggedContext(node.parent); - } - - } - - return isInBooleanContext(node); - } - - - /** - * Check if a node has comments inside. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if it has comments inside. - */ - function hasCommentsInside(node) { - return Boolean(sourceCode.getCommentsInside(node).length); - } - - /** - * Checks if the given node is wrapped in grouping parentheses. Parentheses for constructs such as if() don't count. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is parenthesized. - * @private - */ - function isParenthesized(node) { - return eslintUtils.isParenthesized(1, node, sourceCode); - } - - /** - * Determines whether the given node needs to be parenthesized when replacing the previous node. - * It assumes that `previousNode` is the node to be reported by this rule, so it has a limited list - * of possible parent node types. By the same assumption, the node's role in a particular parent is already known. - * @param {ASTNode} previousNode Previous node. - * @param {ASTNode} node The node to check. - * @throws {Error} (Unreachable.) - * @returns {boolean} `true` if the node needs to be parenthesized. - */ - function needsParens(previousNode, node) { - if (previousNode.parent.type === "ChainExpression") { - return needsParens(previousNode.parent, node); - } - - if (isParenthesized(previousNode)) { - - // parentheses around the previous node will stay, so there is no need for an additional pair - return false; - } - - // parent of the previous node will become parent of the replacement node - const parent = previousNode.parent; - - switch (parent.type) { - case "CallExpression": - case "NewExpression": - return node.type === "SequenceExpression"; - case "IfStatement": - case "DoWhileStatement": - case "WhileStatement": - case "ForStatement": - case "SequenceExpression": - return false; - case "ConditionalExpression": - if (previousNode === parent.test) { - return precedence(node) <= precedence(parent); - } - if (previousNode === parent.consequent || previousNode === parent.alternate) { - return precedence(node) < precedence({ type: "AssignmentExpression" }); - } - - /* c8 ignore next */ - throw new Error("Ternary child must be test, consequent, or alternate."); - case "UnaryExpression": - return precedence(node) < precedence(parent); - case "LogicalExpression": - if (astUtils.isMixedLogicalAndCoalesceExpressions(node, parent)) { - return true; - } - if (previousNode === parent.left) { - return precedence(node) < precedence(parent); - } - return precedence(node) <= precedence(parent); - - /* c8 ignore next */ - default: - throw new Error(`Unexpected parent type: ${parent.type}`); - } - } - - return { - UnaryExpression(node) { - const parent = node.parent; - - - // Exit early if it's guaranteed not to match - if (node.operator !== "!" || - parent.type !== "UnaryExpression" || - parent.operator !== "!") { - return; - } - - - if (isInFlaggedContext(parent)) { - context.report({ - node: parent, - messageId: "unexpectedNegation", - fix(fixer) { - if (hasCommentsInside(parent)) { - return null; - } - - if (needsParens(parent, node.argument)) { - return fixer.replaceText(parent, `(${sourceCode.getText(node.argument)})`); - } - - let prefix = ""; - const tokenBefore = sourceCode.getTokenBefore(parent); - const firstReplacementToken = sourceCode.getFirstToken(node.argument); - - if ( - tokenBefore && - tokenBefore.range[1] === parent.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, firstReplacementToken) - ) { - prefix = " "; - } - - return fixer.replaceText(parent, prefix + sourceCode.getText(node.argument)); - } - }); - } - }, - - CallExpression(node) { - if (node.callee.type !== "Identifier" || node.callee.name !== "Boolean") { - return; - } - - if (isInFlaggedContext(node)) { - context.report({ - node, - messageId: "unexpectedCall", - fix(fixer) { - const parent = node.parent; - - if (node.arguments.length === 0) { - if (parent.type === "UnaryExpression" && parent.operator === "!") { - - /* - * !Boolean() -> true - */ - - if (hasCommentsInside(parent)) { - return null; - } - - const replacement = "true"; - let prefix = ""; - const tokenBefore = sourceCode.getTokenBefore(parent); - - if ( - tokenBefore && - tokenBefore.range[1] === parent.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, replacement) - ) { - prefix = " "; - } - - return fixer.replaceText(parent, prefix + replacement); - } - - /* - * Boolean() -> false - */ - - if (hasCommentsInside(node)) { - return null; - } - - return fixer.replaceText(node, "false"); - } - - if (node.arguments.length === 1) { - const argument = node.arguments[0]; - - if (argument.type === "SpreadElement" || hasCommentsInside(node)) { - return null; - } - - /* - * Boolean(expression) -> expression - */ - - if (needsParens(node, argument)) { - return fixer.replaceText(node, `(${sourceCode.getText(argument)})`); - } - - return fixer.replaceText(node, sourceCode.getText(argument)); - } - - // two or more arguments - return null; - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extra-label.js b/graphql/node_modules/eslint/lib/rules/no-extra-label.js deleted file mode 100644 index 45ff441d..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extra-label.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @fileoverview Rule to disallow unnecessary labels - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary labels", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-extra-label" - }, - - schema: [], - fixable: "code", - - messages: { - unexpected: "This label '{{name}}' is unnecessary." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - let scopeInfo = null; - - /** - * Creates a new scope with a breakable statement. - * @param {ASTNode} node A node to create. This is a BreakableStatement. - * @returns {void} - */ - function enterBreakableStatement(node) { - scopeInfo = { - label: node.parent.type === "LabeledStatement" ? node.parent.label : null, - breakable: true, - upper: scopeInfo - }; - } - - /** - * Removes the top scope of the stack. - * @returns {void} - */ - function exitBreakableStatement() { - scopeInfo = scopeInfo.upper; - } - - /** - * Creates a new scope with a labeled statement. - * - * This ignores it if the body is a breakable statement. - * In this case it's handled in the `enterBreakableStatement` function. - * @param {ASTNode} node A node to create. This is a LabeledStatement. - * @returns {void} - */ - function enterLabeledStatement(node) { - if (!astUtils.isBreakableStatement(node.body)) { - scopeInfo = { - label: node.label, - breakable: false, - upper: scopeInfo - }; - } - } - - /** - * Removes the top scope of the stack. - * - * This ignores it if the body is a breakable statement. - * In this case it's handled in the `exitBreakableStatement` function. - * @param {ASTNode} node A node. This is a LabeledStatement. - * @returns {void} - */ - function exitLabeledStatement(node) { - if (!astUtils.isBreakableStatement(node.body)) { - scopeInfo = scopeInfo.upper; - } - } - - /** - * Reports a given control node if it's unnecessary. - * @param {ASTNode} node A node. This is a BreakStatement or a - * ContinueStatement. - * @returns {void} - */ - function reportIfUnnecessary(node) { - if (!node.label) { - return; - } - - const labelNode = node.label; - - for (let info = scopeInfo; info !== null; info = info.upper) { - if (info.breakable || info.label && info.label.name === labelNode.name) { - if (info.breakable && info.label && info.label.name === labelNode.name) { - context.report({ - node: labelNode, - messageId: "unexpected", - data: labelNode, - fix(fixer) { - const breakOrContinueToken = sourceCode.getFirstToken(node); - - if (sourceCode.commentsExistBetween(breakOrContinueToken, labelNode)) { - return null; - } - - return fixer.removeRange([breakOrContinueToken.range[1], labelNode.range[1]]); - } - }); - } - return; - } - } - } - - return { - WhileStatement: enterBreakableStatement, - "WhileStatement:exit": exitBreakableStatement, - DoWhileStatement: enterBreakableStatement, - "DoWhileStatement:exit": exitBreakableStatement, - ForStatement: enterBreakableStatement, - "ForStatement:exit": exitBreakableStatement, - ForInStatement: enterBreakableStatement, - "ForInStatement:exit": exitBreakableStatement, - ForOfStatement: enterBreakableStatement, - "ForOfStatement:exit": exitBreakableStatement, - SwitchStatement: enterBreakableStatement, - "SwitchStatement:exit": exitBreakableStatement, - LabeledStatement: enterLabeledStatement, - "LabeledStatement:exit": exitLabeledStatement, - BreakStatement: reportIfUnnecessary, - ContinueStatement: reportIfUnnecessary - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extra-parens.js b/graphql/node_modules/eslint/lib/rules/no-extra-parens.js deleted file mode 100644 index 75c082ba..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extra-parens.js +++ /dev/null @@ -1,1322 +0,0 @@ -/** - * @fileoverview Disallow parenthesising higher precedence subexpressions. - * @author Michael Ficarra - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const { isParenthesized: isParenthesizedRaw } = require("@eslint-community/eslint-utils"); -const astUtils = require("./utils/ast-utils.js"); - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow unnecessary parentheses", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-extra-parens" - }, - - fixable: "code", - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["functions"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["all"] - }, - { - type: "object", - properties: { - conditionalAssign: { type: "boolean" }, - ternaryOperandBinaryExpressions: { type: "boolean" }, - nestedBinaryExpressions: { type: "boolean" }, - returnAssign: { type: "boolean" }, - ignoreJSX: { enum: ["none", "all", "single-line", "multi-line"] }, - enforceForArrowConditionals: { type: "boolean" }, - enforceForSequenceExpressions: { type: "boolean" }, - enforceForNewInMemberExpressions: { type: "boolean" }, - enforceForFunctionPrototypeMethods: { type: "boolean" }, - allowParensAfterCommentPattern: { type: "string" } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - messages: { - unexpected: "Unnecessary parentheses around expression." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const tokensToIgnore = new WeakSet(); - const precedence = astUtils.getPrecedence; - const ALL_NODES = context.options[0] !== "functions"; - const EXCEPT_COND_ASSIGN = ALL_NODES && context.options[1] && context.options[1].conditionalAssign === false; - const EXCEPT_COND_TERNARY = ALL_NODES && context.options[1] && context.options[1].ternaryOperandBinaryExpressions === false; - const NESTED_BINARY = ALL_NODES && context.options[1] && context.options[1].nestedBinaryExpressions === false; - const EXCEPT_RETURN_ASSIGN = ALL_NODES && context.options[1] && context.options[1].returnAssign === false; - const IGNORE_JSX = ALL_NODES && context.options[1] && context.options[1].ignoreJSX; - const IGNORE_ARROW_CONDITIONALS = ALL_NODES && context.options[1] && - context.options[1].enforceForArrowConditionals === false; - const IGNORE_SEQUENCE_EXPRESSIONS = ALL_NODES && context.options[1] && - context.options[1].enforceForSequenceExpressions === false; - const IGNORE_NEW_IN_MEMBER_EXPR = ALL_NODES && context.options[1] && - context.options[1].enforceForNewInMemberExpressions === false; - const IGNORE_FUNCTION_PROTOTYPE_METHODS = ALL_NODES && context.options[1] && - context.options[1].enforceForFunctionPrototypeMethods === false; - const ALLOW_PARENS_AFTER_COMMENT_PATTERN = ALL_NODES && context.options[1] && context.options[1].allowParensAfterCommentPattern; - - const PRECEDENCE_OF_ASSIGNMENT_EXPR = precedence({ type: "AssignmentExpression" }); - const PRECEDENCE_OF_UPDATE_EXPR = precedence({ type: "UpdateExpression" }); - - let reportsBuffer; - - /** - * Determines whether the given node is a `call` or `apply` method call, invoked directly on a `FunctionExpression` node. - * Example: function(){}.call() - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is an immediate `call` or `apply` method call. - * @private - */ - function isImmediateFunctionPrototypeMethodCall(node) { - const callNode = astUtils.skipChainExpression(node); - - if (callNode.type !== "CallExpression") { - return false; - } - const callee = astUtils.skipChainExpression(callNode.callee); - - return ( - callee.type === "MemberExpression" && - callee.object.type === "FunctionExpression" && - ["call", "apply"].includes(astUtils.getStaticPropertyName(callee)) - ); - } - - /** - * Determines if this rule should be enforced for a node given the current configuration. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the rule should be enforced for this node. - * @private - */ - function ruleApplies(node) { - if (node.type === "JSXElement" || node.type === "JSXFragment") { - const isSingleLine = node.loc.start.line === node.loc.end.line; - - switch (IGNORE_JSX) { - - // Exclude this JSX element from linting - case "all": - return false; - - // Exclude this JSX element if it is multi-line element - case "multi-line": - return isSingleLine; - - // Exclude this JSX element if it is single-line element - case "single-line": - return !isSingleLine; - - // Nothing special to be done for JSX elements - case "none": - break; - - // no default - } - } - - if (node.type === "SequenceExpression" && IGNORE_SEQUENCE_EXPRESSIONS) { - return false; - } - - if (isImmediateFunctionPrototypeMethodCall(node) && IGNORE_FUNCTION_PROTOTYPE_METHODS) { - return false; - } - - return ALL_NODES || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression"; - } - - /** - * Determines if a node is surrounded by parentheses. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is parenthesised. - * @private - */ - function isParenthesised(node) { - return isParenthesizedRaw(1, node, sourceCode); - } - - /** - * Determines if a node is surrounded by parentheses twice. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is doubly parenthesised. - * @private - */ - function isParenthesisedTwice(node) { - return isParenthesizedRaw(2, node, sourceCode); - } - - /** - * Determines if a node is surrounded by (potentially) invalid parentheses. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is incorrectly parenthesised. - * @private - */ - function hasExcessParens(node) { - return ruleApplies(node) && isParenthesised(node); - } - - /** - * Determines if a node that is expected to be parenthesised is surrounded by - * (potentially) invalid extra parentheses. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is has an unexpected extra pair of parentheses. - * @private - */ - function hasDoubleExcessParens(node) { - return ruleApplies(node) && isParenthesisedTwice(node); - } - - /** - * Determines if a node that is expected to be parenthesised is surrounded by - * (potentially) invalid extra parentheses with considering precedence level of the node. - * If the preference level of the node is not higher or equal to precedence lower limit, it also checks - * whether the node is surrounded by parentheses twice or not. - * @param {ASTNode} node The node to be checked. - * @param {number} precedenceLowerLimit The lower limit of precedence. - * @returns {boolean} True if the node is has an unexpected extra pair of parentheses. - * @private - */ - function hasExcessParensWithPrecedence(node, precedenceLowerLimit) { - if (ruleApplies(node) && isParenthesised(node)) { - if ( - precedence(node) >= precedenceLowerLimit || - isParenthesisedTwice(node) - ) { - return true; - } - } - return false; - } - - /** - * Determines if a node test expression is allowed to have a parenthesised assignment - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the assignment can be parenthesised. - * @private - */ - function isCondAssignException(node) { - return EXCEPT_COND_ASSIGN && node.test.type === "AssignmentExpression"; - } - - /** - * Determines if a node is in a return statement - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is in a return statement. - * @private - */ - function isInReturnStatement(node) { - for (let currentNode = node; currentNode; currentNode = currentNode.parent) { - if ( - currentNode.type === "ReturnStatement" || - (currentNode.type === "ArrowFunctionExpression" && currentNode.body.type !== "BlockStatement") - ) { - return true; - } - } - - return false; - } - - /** - * Determines if a constructor function is newed-up with parens - * @param {ASTNode} newExpression The NewExpression node to be checked. - * @returns {boolean} True if the constructor is called with parens. - * @private - */ - function isNewExpressionWithParens(newExpression) { - const lastToken = sourceCode.getLastToken(newExpression); - const penultimateToken = sourceCode.getTokenBefore(lastToken); - - return newExpression.arguments.length > 0 || - ( - - // The expression should end with its own parens, e.g., new new foo() is not a new expression with parens - astUtils.isOpeningParenToken(penultimateToken) && - astUtils.isClosingParenToken(lastToken) && - newExpression.callee.range[1] < newExpression.range[1] - ); - } - - /** - * Determines if a node is or contains an assignment expression - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is or contains an assignment expression. - * @private - */ - function containsAssignment(node) { - if (node.type === "AssignmentExpression") { - return true; - } - if (node.type === "ConditionalExpression" && - (node.consequent.type === "AssignmentExpression" || node.alternate.type === "AssignmentExpression")) { - return true; - } - if ((node.left && node.left.type === "AssignmentExpression") || - (node.right && node.right.type === "AssignmentExpression")) { - return true; - } - - return false; - } - - /** - * Determines if a node is contained by or is itself a return statement and is allowed to have a parenthesised assignment - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the assignment can be parenthesised. - * @private - */ - function isReturnAssignException(node) { - if (!EXCEPT_RETURN_ASSIGN || !isInReturnStatement(node)) { - return false; - } - - if (node.type === "ReturnStatement") { - return node.argument && containsAssignment(node.argument); - } - if (node.type === "ArrowFunctionExpression" && node.body.type !== "BlockStatement") { - return containsAssignment(node.body); - } - return containsAssignment(node); - - } - - /** - * Determines if a node following a [no LineTerminator here] restriction is - * surrounded by (potentially) invalid extra parentheses. - * @param {Token} token The token preceding the [no LineTerminator here] restriction. - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is incorrectly parenthesised. - * @private - */ - function hasExcessParensNoLineTerminator(token, node) { - if (token.loc.end.line === node.loc.start.line) { - return hasExcessParens(node); - } - - return hasDoubleExcessParens(node); - } - - /** - * Determines whether a node should be preceded by an additional space when removing parens - * @param {ASTNode} node node to evaluate; must be surrounded by parentheses - * @returns {boolean} `true` if a space should be inserted before the node - * @private - */ - function requiresLeadingSpace(node) { - const leftParenToken = sourceCode.getTokenBefore(node); - const tokenBeforeLeftParen = sourceCode.getTokenBefore(leftParenToken, { includeComments: true }); - const tokenAfterLeftParen = sourceCode.getTokenAfter(leftParenToken, { includeComments: true }); - - return tokenBeforeLeftParen && - tokenBeforeLeftParen.range[1] === leftParenToken.range[0] && - leftParenToken.range[1] === tokenAfterLeftParen.range[0] && - !astUtils.canTokensBeAdjacent(tokenBeforeLeftParen, tokenAfterLeftParen); - } - - /** - * Determines whether a node should be followed by an additional space when removing parens - * @param {ASTNode} node node to evaluate; must be surrounded by parentheses - * @returns {boolean} `true` if a space should be inserted after the node - * @private - */ - function requiresTrailingSpace(node) { - const nextTwoTokens = sourceCode.getTokensAfter(node, { count: 2 }); - const rightParenToken = nextTwoTokens[0]; - const tokenAfterRightParen = nextTwoTokens[1]; - const tokenBeforeRightParen = sourceCode.getLastToken(node); - - return rightParenToken && tokenAfterRightParen && - !sourceCode.isSpaceBetweenTokens(rightParenToken, tokenAfterRightParen) && - !astUtils.canTokensBeAdjacent(tokenBeforeRightParen, tokenAfterRightParen); - } - - /** - * Determines if a given expression node is an IIFE - * @param {ASTNode} node The node to check - * @returns {boolean} `true` if the given node is an IIFE - */ - function isIIFE(node) { - const maybeCallNode = astUtils.skipChainExpression(node); - - return maybeCallNode.type === "CallExpression" && maybeCallNode.callee.type === "FunctionExpression"; - } - - /** - * Determines if the given node can be the assignment target in destructuring or the LHS of an assignment. - * This is to avoid an autofix that could change behavior because parsers mistakenly allow invalid syntax, - * such as `(a = b) = c` and `[(a = b) = c] = []`. Ideally, this function shouldn't be necessary. - * @param {ASTNode} [node] The node to check - * @returns {boolean} `true` if the given node can be a valid assignment target - */ - function canBeAssignmentTarget(node) { - return node && (node.type === "Identifier" || node.type === "MemberExpression"); - } - - /** - * Checks if a node is fixable. - * A node is fixable if removing a single pair of surrounding parentheses does not turn it - * into a directive after fixing other nodes. - * Almost all nodes are fixable, except if all of the following conditions are met: - * The node is a string Literal - * It has a single pair of parentheses - * It is the only child of an ExpressionStatement - * @param {ASTNode} node The node to evaluate. - * @returns {boolean} Whether or not the node is fixable. - * @private - */ - function isFixable(node) { - - // if it's not a string literal it can be autofixed - if (node.type !== "Literal" || typeof node.value !== "string") { - return true; - } - if (isParenthesisedTwice(node)) { - return true; - } - return !astUtils.isTopLevelExpressionStatement(node.parent); - } - - /** - * Report the node - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function report(node) { - const leftParenToken = sourceCode.getTokenBefore(node); - const rightParenToken = sourceCode.getTokenAfter(node); - - if (!isParenthesisedTwice(node)) { - if (tokensToIgnore.has(sourceCode.getFirstToken(node))) { - return; - } - - if (isIIFE(node) && !isParenthesised(node.callee)) { - return; - } - - if (ALLOW_PARENS_AFTER_COMMENT_PATTERN) { - const commentsBeforeLeftParenToken = sourceCode.getCommentsBefore(leftParenToken); - const totalCommentsBeforeLeftParenTokenCount = commentsBeforeLeftParenToken.length; - const ignorePattern = new RegExp(ALLOW_PARENS_AFTER_COMMENT_PATTERN, "u"); - - if ( - totalCommentsBeforeLeftParenTokenCount > 0 && - ignorePattern.test(commentsBeforeLeftParenToken[totalCommentsBeforeLeftParenTokenCount - 1].value) - ) { - return; - } - } - } - - /** - * Finishes reporting - * @returns {void} - * @private - */ - function finishReport() { - context.report({ - node, - loc: leftParenToken.loc, - messageId: "unexpected", - fix: isFixable(node) - ? fixer => { - const parenthesizedSource = sourceCode.text.slice(leftParenToken.range[1], rightParenToken.range[0]); - - return fixer.replaceTextRange([ - leftParenToken.range[0], - rightParenToken.range[1] - ], (requiresLeadingSpace(node) ? " " : "") + parenthesizedSource + (requiresTrailingSpace(node) ? " " : "")); - } - : null - }); - } - - if (reportsBuffer) { - reportsBuffer.reports.push({ node, finishReport }); - return; - } - - finishReport(); - } - - /** - * Evaluate a argument of the node. - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkArgumentWithPrecedence(node) { - if (hasExcessParensWithPrecedence(node.argument, precedence(node))) { - report(node.argument); - } - } - - /** - * Check if a member expression contains a call expression - * @param {ASTNode} node MemberExpression node to evaluate - * @returns {boolean} true if found, false if not - */ - function doesMemberExpressionContainCallExpression(node) { - let currentNode = node.object; - let currentNodeType = node.object.type; - - while (currentNodeType === "MemberExpression") { - currentNode = currentNode.object; - currentNodeType = currentNode.type; - } - - return currentNodeType === "CallExpression"; - } - - /** - * Evaluate a new call - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkCallNew(node) { - const callee = node.callee; - - if (hasExcessParensWithPrecedence(callee, precedence(node))) { - if ( - hasDoubleExcessParens(callee) || - !( - isIIFE(node) || - - // (new A)(); new (new A)(); - ( - callee.type === "NewExpression" && - !isNewExpressionWithParens(callee) && - !( - node.type === "NewExpression" && - !isNewExpressionWithParens(node) - ) - ) || - - // new (a().b)(); new (a.b().c); - ( - node.type === "NewExpression" && - callee.type === "MemberExpression" && - doesMemberExpressionContainCallExpression(callee) - ) || - - // (a?.b)(); (a?.())(); - ( - !node.optional && - callee.type === "ChainExpression" - ) - ) - ) { - report(node.callee); - } - } - node.arguments - .filter(arg => hasExcessParensWithPrecedence(arg, PRECEDENCE_OF_ASSIGNMENT_EXPR)) - .forEach(report); - } - - /** - * Evaluate binary logicals - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkBinaryLogical(node) { - const prec = precedence(node); - const leftPrecedence = precedence(node.left); - const rightPrecedence = precedence(node.right); - const isExponentiation = node.operator === "**"; - const shouldSkipLeft = NESTED_BINARY && (node.left.type === "BinaryExpression" || node.left.type === "LogicalExpression"); - const shouldSkipRight = NESTED_BINARY && (node.right.type === "BinaryExpression" || node.right.type === "LogicalExpression"); - - if (!shouldSkipLeft && hasExcessParens(node.left)) { - if ( - !(["AwaitExpression", "UnaryExpression"].includes(node.left.type) && isExponentiation) && - !astUtils.isMixedLogicalAndCoalesceExpressions(node.left, node) && - (leftPrecedence > prec || (leftPrecedence === prec && !isExponentiation)) || - isParenthesisedTwice(node.left) - ) { - report(node.left); - } - } - - if (!shouldSkipRight && hasExcessParens(node.right)) { - if ( - !astUtils.isMixedLogicalAndCoalesceExpressions(node.right, node) && - (rightPrecedence > prec || (rightPrecedence === prec && isExponentiation)) || - isParenthesisedTwice(node.right) - ) { - report(node.right); - } - } - } - - /** - * Check the parentheses around the super class of the given class definition. - * @param {ASTNode} node The node of class declarations to check. - * @returns {void} - */ - function checkClass(node) { - if (!node.superClass) { - return; - } - - /* - * If `node.superClass` is a LeftHandSideExpression, parentheses are extra. - * Otherwise, parentheses are needed. - */ - const hasExtraParens = precedence(node.superClass) > PRECEDENCE_OF_UPDATE_EXPR - ? hasExcessParens(node.superClass) - : hasDoubleExcessParens(node.superClass); - - if (hasExtraParens) { - report(node.superClass); - } - } - - /** - * Check the parentheses around the argument of the given spread operator. - * @param {ASTNode} node The node of spread elements/properties to check. - * @returns {void} - */ - function checkSpreadOperator(node) { - if (hasExcessParensWithPrecedence(node.argument, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.argument); - } - } - - /** - * Checks the parentheses for an ExpressionStatement or ExportDefaultDeclaration - * @param {ASTNode} node The ExpressionStatement.expression or ExportDefaultDeclaration.declaration node - * @returns {void} - */ - function checkExpressionOrExportStatement(node) { - const firstToken = isParenthesised(node) ? sourceCode.getTokenBefore(node) : sourceCode.getFirstToken(node); - const secondToken = sourceCode.getTokenAfter(firstToken, astUtils.isNotOpeningParenToken); - const thirdToken = secondToken ? sourceCode.getTokenAfter(secondToken) : null; - const tokenAfterClosingParens = secondToken ? sourceCode.getTokenAfter(secondToken, astUtils.isNotClosingParenToken) : null; - - if ( - astUtils.isOpeningParenToken(firstToken) && - ( - astUtils.isOpeningBraceToken(secondToken) || - secondToken.type === "Keyword" && ( - secondToken.value === "function" || - secondToken.value === "class" || - secondToken.value === "let" && - tokenAfterClosingParens && - ( - astUtils.isOpeningBracketToken(tokenAfterClosingParens) || - tokenAfterClosingParens.type === "Identifier" - ) - ) || - secondToken && secondToken.type === "Identifier" && secondToken.value === "async" && thirdToken && thirdToken.type === "Keyword" && thirdToken.value === "function" - ) - ) { - tokensToIgnore.add(secondToken); - } - - const hasExtraParens = node.parent.type === "ExportDefaultDeclaration" - ? hasExcessParensWithPrecedence(node, PRECEDENCE_OF_ASSIGNMENT_EXPR) - : hasExcessParens(node); - - if (hasExtraParens) { - report(node); - } - } - - /** - * Finds the path from the given node to the specified ancestor. - * @param {ASTNode} node First node in the path. - * @param {ASTNode} ancestor Last node in the path. - * @returns {ASTNode[]} Path, including both nodes. - * @throws {Error} If the given node does not have the specified ancestor. - */ - function pathToAncestor(node, ancestor) { - const path = [node]; - let currentNode = node; - - while (currentNode !== ancestor) { - - currentNode = currentNode.parent; - - /* c8 ignore start */ - if (currentNode === null) { - throw new Error("Nodes are not in the ancestor-descendant relationship."); - }/* c8 ignore stop */ - - path.push(currentNode); - } - - return path; - } - - /** - * Finds the path from the given node to the specified descendant. - * @param {ASTNode} node First node in the path. - * @param {ASTNode} descendant Last node in the path. - * @returns {ASTNode[]} Path, including both nodes. - * @throws {Error} If the given node does not have the specified descendant. - */ - function pathToDescendant(node, descendant) { - return pathToAncestor(descendant, node).reverse(); - } - - /** - * Checks whether the syntax of the given ancestor of an 'in' expression inside a for-loop initializer - * is preventing the 'in' keyword from being interpreted as a part of an ill-formed for-in loop. - * @param {ASTNode} node Ancestor of an 'in' expression. - * @param {ASTNode} child Child of the node, ancestor of the same 'in' expression or the 'in' expression itself. - * @returns {boolean} True if the keyword 'in' would be interpreted as the 'in' operator, without any parenthesis. - */ - function isSafelyEnclosingInExpression(node, child) { - switch (node.type) { - case "ArrayExpression": - case "ArrayPattern": - case "BlockStatement": - case "ObjectExpression": - case "ObjectPattern": - case "TemplateLiteral": - return true; - case "ArrowFunctionExpression": - case "FunctionExpression": - return node.params.includes(child); - case "CallExpression": - case "NewExpression": - return node.arguments.includes(child); - case "MemberExpression": - return node.computed && node.property === child; - case "ConditionalExpression": - return node.consequent === child; - default: - return false; - } - } - - /** - * Starts a new reports buffering. Warnings will be stored in a buffer instead of being reported immediately. - * An additional logic that requires multiple nodes (e.g. a whole subtree) may dismiss some of the stored warnings. - * @returns {void} - */ - function startNewReportsBuffering() { - reportsBuffer = { - upper: reportsBuffer, - inExpressionNodes: [], - reports: [] - }; - } - - /** - * Ends the current reports buffering. - * @returns {void} - */ - function endCurrentReportsBuffering() { - const { upper, inExpressionNodes, reports } = reportsBuffer; - - if (upper) { - upper.inExpressionNodes.push(...inExpressionNodes); - upper.reports.push(...reports); - } else { - - // flush remaining reports - reports.forEach(({ finishReport }) => finishReport()); - } - - reportsBuffer = upper; - } - - /** - * Checks whether the given node is in the current reports buffer. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is in the current buffer, false otherwise. - */ - function isInCurrentReportsBuffer(node) { - return reportsBuffer.reports.some(r => r.node === node); - } - - /** - * Removes the given node from the current reports buffer. - * @param {ASTNode} node Node to remove. - * @returns {void} - */ - function removeFromCurrentReportsBuffer(node) { - reportsBuffer.reports = reportsBuffer.reports.filter(r => r.node !== node); - } - - /** - * Checks whether a node is a MemberExpression at NewExpression's callee. - * @param {ASTNode} node node to check. - * @returns {boolean} True if the node is a MemberExpression at NewExpression's callee. false otherwise. - */ - function isMemberExpInNewCallee(node) { - if (node.type === "MemberExpression") { - return node.parent.type === "NewExpression" && node.parent.callee === node - ? true - : node.parent.object === node && isMemberExpInNewCallee(node.parent); - } - return false; - } - - /** - * Checks if the left-hand side of an assignment is an identifier, the operator is one of - * `=`, `&&=`, `||=` or `??=` and the right-hand side is an anonymous class or function. - * - * As per https://tc39.es/ecma262/#sec-assignment-operators-runtime-semantics-evaluation, an - * assignment involving one of the operators `=`, `&&=`, `||=` or `??=` where the right-hand - * side is an anonymous class or function and the left-hand side is an *unparenthesized* - * identifier has different semantics than other assignments. - * Specifically, when an expression like `foo = function () {}` is evaluated, `foo.name` - * will be set to the string "foo", i.e. the identifier name. The same thing does not happen - * when evaluating `(foo) = function () {}`. - * Since the parenthesizing of the identifier in the left-hand side is significant in this - * special case, the parentheses, if present, should not be flagged as unnecessary. - * @param {ASTNode} node an AssignmentExpression node. - * @returns {boolean} `true` if the left-hand side of the assignment is an identifier, the - * operator is one of `=`, `&&=`, `||=` or `??=` and the right-hand side is an anonymous - * class or function; otherwise, `false`. - */ - function isAnonymousFunctionAssignmentException({ left, operator, right }) { - if (left.type === "Identifier" && ["=", "&&=", "||=", "??="].includes(operator)) { - const rhsType = right.type; - - if (rhsType === "ArrowFunctionExpression") { - return true; - } - if ((rhsType === "FunctionExpression" || rhsType === "ClassExpression") && !right.id) { - return true; - } - } - return false; - } - - return { - ArrayExpression(node) { - node.elements - .filter(e => e && hasExcessParensWithPrecedence(e, PRECEDENCE_OF_ASSIGNMENT_EXPR)) - .forEach(report); - }, - - ArrayPattern(node) { - node.elements - .filter(e => canBeAssignmentTarget(e) && hasExcessParens(e)) - .forEach(report); - }, - - ArrowFunctionExpression(node) { - if (isReturnAssignException(node)) { - return; - } - - if (node.body.type === "ConditionalExpression" && - IGNORE_ARROW_CONDITIONALS - ) { - return; - } - - if (node.body.type !== "BlockStatement") { - const firstBodyToken = sourceCode.getFirstToken(node.body, astUtils.isNotOpeningParenToken); - const tokenBeforeFirst = sourceCode.getTokenBefore(firstBodyToken); - - if (astUtils.isOpeningParenToken(tokenBeforeFirst) && astUtils.isOpeningBraceToken(firstBodyToken)) { - tokensToIgnore.add(firstBodyToken); - } - if (hasExcessParensWithPrecedence(node.body, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.body); - } - } - }, - - AssignmentExpression(node) { - if (canBeAssignmentTarget(node.left) && hasExcessParens(node.left) && - (!isAnonymousFunctionAssignmentException(node) || isParenthesisedTwice(node.left))) { - report(node.left); - } - - if (!isReturnAssignException(node) && hasExcessParensWithPrecedence(node.right, precedence(node))) { - report(node.right); - } - }, - - BinaryExpression(node) { - if (reportsBuffer && node.operator === "in") { - reportsBuffer.inExpressionNodes.push(node); - } - - checkBinaryLogical(node); - }, - - CallExpression: checkCallNew, - - ConditionalExpression(node) { - if (isReturnAssignException(node)) { - return; - } - - const availableTypes = new Set(["BinaryExpression", "LogicalExpression"]); - - if ( - !(EXCEPT_COND_TERNARY && availableTypes.has(node.test.type)) && - !isCondAssignException(node) && - hasExcessParensWithPrecedence(node.test, precedence({ type: "LogicalExpression", operator: "||" })) - ) { - report(node.test); - } - - if ( - !(EXCEPT_COND_TERNARY && availableTypes.has(node.consequent.type)) && - hasExcessParensWithPrecedence(node.consequent, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.consequent); - } - - if ( - !(EXCEPT_COND_TERNARY && availableTypes.has(node.alternate.type)) && - hasExcessParensWithPrecedence(node.alternate, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.alternate); - } - }, - - DoWhileStatement(node) { - if (hasExcessParens(node.test) && !isCondAssignException(node)) { - report(node.test); - } - }, - - ExportDefaultDeclaration: node => checkExpressionOrExportStatement(node.declaration), - ExpressionStatement: node => checkExpressionOrExportStatement(node.expression), - - ForInStatement(node) { - if (node.left.type !== "VariableDeclaration") { - const firstLeftToken = sourceCode.getFirstToken(node.left, astUtils.isNotOpeningParenToken); - - if ( - firstLeftToken.value === "let" && - astUtils.isOpeningBracketToken( - sourceCode.getTokenAfter(firstLeftToken, astUtils.isNotClosingParenToken) - ) - ) { - - // ForInStatement#left expression cannot start with `let[`. - tokensToIgnore.add(firstLeftToken); - } - } - - if (hasExcessParens(node.left)) { - report(node.left); - } - - if (hasExcessParens(node.right)) { - report(node.right); - } - }, - - ForOfStatement(node) { - if (node.left.type !== "VariableDeclaration") { - const firstLeftToken = sourceCode.getFirstToken(node.left, astUtils.isNotOpeningParenToken); - - if (firstLeftToken.value === "let") { - - // ForOfStatement#left expression cannot start with `let`. - tokensToIgnore.add(firstLeftToken); - } - } - - if (hasExcessParens(node.left)) { - report(node.left); - } - - if (hasExcessParensWithPrecedence(node.right, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.right); - } - }, - - ForStatement(node) { - if (node.test && hasExcessParens(node.test) && !isCondAssignException(node)) { - report(node.test); - } - - if (node.update && hasExcessParens(node.update)) { - report(node.update); - } - - if (node.init) { - - if (node.init.type !== "VariableDeclaration") { - const firstToken = sourceCode.getFirstToken(node.init, astUtils.isNotOpeningParenToken); - - if ( - firstToken.value === "let" && - astUtils.isOpeningBracketToken( - sourceCode.getTokenAfter(firstToken, astUtils.isNotClosingParenToken) - ) - ) { - - // ForStatement#init expression cannot start with `let[`. - tokensToIgnore.add(firstToken); - } - } - - startNewReportsBuffering(); - - if (hasExcessParens(node.init)) { - report(node.init); - } - } - }, - - "ForStatement > *.init:exit"(node) { - - /* - * Removing parentheses around `in` expressions might change semantics and cause errors. - * - * For example, this valid for loop: - * for (let a = (b in c); ;); - * after removing parentheses would be treated as an invalid for-in loop: - * for (let a = b in c; ;); - */ - - if (reportsBuffer.reports.length) { - reportsBuffer.inExpressionNodes.forEach(inExpressionNode => { - const path = pathToDescendant(node, inExpressionNode); - let nodeToExclude; - - for (let i = 0; i < path.length; i++) { - const pathNode = path[i]; - - if (i < path.length - 1) { - const nextPathNode = path[i + 1]; - - if (isSafelyEnclosingInExpression(pathNode, nextPathNode)) { - - // The 'in' expression in safely enclosed by the syntax of its ancestor nodes (e.g. by '{}' or '[]'). - return; - } - } - - if (isParenthesised(pathNode)) { - if (isInCurrentReportsBuffer(pathNode)) { - - // This node was supposed to be reported, but parentheses might be necessary. - - if (isParenthesisedTwice(pathNode)) { - - /* - * This node is parenthesised twice, it certainly has at least one pair of `extra` parentheses. - * If the --fix option is on, the current fixing iteration will remove only one pair of parentheses. - * The remaining pair is safely enclosing the 'in' expression. - */ - return; - } - - // Exclude the outermost node only. - if (!nodeToExclude) { - nodeToExclude = pathNode; - } - - // Don't break the loop here, there might be some safe nodes or parentheses that will stay inside. - - } else { - - // This node will stay parenthesised, the 'in' expression in safely enclosed by '()'. - return; - } - } - } - - // Exclude the node from the list (i.e. treat parentheses as necessary) - removeFromCurrentReportsBuffer(nodeToExclude); - }); - } - - endCurrentReportsBuffering(); - }, - - IfStatement(node) { - if (hasExcessParens(node.test) && !isCondAssignException(node)) { - report(node.test); - } - }, - - ImportExpression(node) { - const { source } = node; - - if (source.type === "SequenceExpression") { - if (hasDoubleExcessParens(source)) { - report(source); - } - } else if (hasExcessParens(source)) { - report(source); - } - }, - - LogicalExpression: checkBinaryLogical, - - MemberExpression(node) { - const shouldAllowWrapOnce = isMemberExpInNewCallee(node) && - doesMemberExpressionContainCallExpression(node); - const nodeObjHasExcessParens = shouldAllowWrapOnce - ? hasDoubleExcessParens(node.object) - : hasExcessParens(node.object) && - !( - isImmediateFunctionPrototypeMethodCall(node.parent) && - node.parent.callee === node && - IGNORE_FUNCTION_PROTOTYPE_METHODS - ); - - if ( - nodeObjHasExcessParens && - precedence(node.object) >= precedence(node) && - ( - node.computed || - !( - astUtils.isDecimalInteger(node.object) || - - // RegExp literal is allowed to have parens (#1589) - (node.object.type === "Literal" && node.object.regex) - ) - ) - ) { - report(node.object); - } - - if (nodeObjHasExcessParens && - node.object.type === "CallExpression" - ) { - report(node.object); - } - - if (nodeObjHasExcessParens && - !IGNORE_NEW_IN_MEMBER_EXPR && - node.object.type === "NewExpression" && - isNewExpressionWithParens(node.object)) { - report(node.object); - } - - if (nodeObjHasExcessParens && - node.optional && - node.object.type === "ChainExpression" - ) { - report(node.object); - } - - if (node.computed && hasExcessParens(node.property)) { - report(node.property); - } - }, - - "MethodDefinition[computed=true]"(node) { - if (hasExcessParensWithPrecedence(node.key, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.key); - } - }, - - NewExpression: checkCallNew, - - ObjectExpression(node) { - node.properties - .filter(property => property.value && hasExcessParensWithPrecedence(property.value, PRECEDENCE_OF_ASSIGNMENT_EXPR)) - .forEach(property => report(property.value)); - }, - - ObjectPattern(node) { - node.properties - .filter(property => { - const value = property.value; - - return canBeAssignmentTarget(value) && hasExcessParens(value); - }).forEach(property => report(property.value)); - }, - - Property(node) { - if (node.computed) { - const { key } = node; - - if (key && hasExcessParensWithPrecedence(key, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(key); - } - } - }, - - PropertyDefinition(node) { - if (node.computed && hasExcessParensWithPrecedence(node.key, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.key); - } - - if (node.value && hasExcessParensWithPrecedence(node.value, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(node.value); - } - }, - - RestElement(node) { - const argument = node.argument; - - if (canBeAssignmentTarget(argument) && hasExcessParens(argument)) { - report(argument); - } - }, - - ReturnStatement(node) { - const returnToken = sourceCode.getFirstToken(node); - - if (isReturnAssignException(node)) { - return; - } - - if (node.argument && - hasExcessParensNoLineTerminator(returnToken, node.argument) && - - // RegExp literal is allowed to have parens (#1589) - !(node.argument.type === "Literal" && node.argument.regex)) { - report(node.argument); - } - }, - - SequenceExpression(node) { - const precedenceOfNode = precedence(node); - - node.expressions - .filter(e => hasExcessParensWithPrecedence(e, precedenceOfNode)) - .forEach(report); - }, - - SwitchCase(node) { - if (node.test && hasExcessParens(node.test)) { - report(node.test); - } - }, - - SwitchStatement(node) { - if (hasExcessParens(node.discriminant)) { - report(node.discriminant); - } - }, - - ThrowStatement(node) { - const throwToken = sourceCode.getFirstToken(node); - - if (hasExcessParensNoLineTerminator(throwToken, node.argument)) { - report(node.argument); - } - }, - - UnaryExpression: checkArgumentWithPrecedence, - UpdateExpression(node) { - if (node.prefix) { - checkArgumentWithPrecedence(node); - } else { - const { argument } = node; - const operatorToken = sourceCode.getLastToken(node); - - if (argument.loc.end.line === operatorToken.loc.start.line) { - checkArgumentWithPrecedence(node); - } else { - if (hasDoubleExcessParens(argument)) { - report(argument); - } - } - } - }, - AwaitExpression: checkArgumentWithPrecedence, - - VariableDeclarator(node) { - if ( - node.init && hasExcessParensWithPrecedence(node.init, PRECEDENCE_OF_ASSIGNMENT_EXPR) && - - // RegExp literal is allowed to have parens (#1589) - !(node.init.type === "Literal" && node.init.regex) - ) { - report(node.init); - } - }, - - WhileStatement(node) { - if (hasExcessParens(node.test) && !isCondAssignException(node)) { - report(node.test); - } - }, - - WithStatement(node) { - if (hasExcessParens(node.object)) { - report(node.object); - } - }, - - YieldExpression(node) { - if (node.argument) { - const yieldToken = sourceCode.getFirstToken(node); - - if ((precedence(node.argument) >= precedence(node) && - hasExcessParensNoLineTerminator(yieldToken, node.argument)) || - hasDoubleExcessParens(node.argument)) { - report(node.argument); - } - } - }, - - ClassDeclaration: checkClass, - ClassExpression: checkClass, - - SpreadElement: checkSpreadOperator, - SpreadProperty: checkSpreadOperator, - ExperimentalSpreadProperty: checkSpreadOperator, - - TemplateLiteral(node) { - node.expressions - .filter(e => e && hasExcessParens(e)) - .forEach(report); - }, - - AssignmentPattern(node) { - const { left, right } = node; - - if (canBeAssignmentTarget(left) && hasExcessParens(left)) { - report(left); - } - - if (right && hasExcessParensWithPrecedence(right, PRECEDENCE_OF_ASSIGNMENT_EXPR)) { - report(right); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-extra-semi.js b/graphql/node_modules/eslint/lib/rules/no-extra-semi.js deleted file mode 100644 index 1daf2242..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-extra-semi.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * @fileoverview Rule to flag use of unnecessary semicolons - * @author Nicholas C. Zakas - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const FixTracker = require("./utils/fix-tracker"); -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Disallow unnecessary semicolons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-extra-semi" - }, - - fixable: "code", - schema: [], - - messages: { - unexpected: "Unnecessary semicolon." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Checks if a node or token is fixable. - * A node is fixable if it can be removed without turning a subsequent statement into a directive after fixing other nodes. - * @param {Token} nodeOrToken The node or token to check. - * @returns {boolean} Whether or not the node is fixable. - */ - function isFixable(nodeOrToken) { - const nextToken = sourceCode.getTokenAfter(nodeOrToken); - - if (!nextToken || nextToken.type !== "String") { - return true; - } - const stringNode = sourceCode.getNodeByRangeIndex(nextToken.range[0]); - - return !astUtils.isTopLevelExpressionStatement(stringNode.parent); - } - - /** - * Reports an unnecessary semicolon error. - * @param {Node|Token} nodeOrToken A node or a token to be reported. - * @returns {void} - */ - function report(nodeOrToken) { - context.report({ - node: nodeOrToken, - messageId: "unexpected", - fix: isFixable(nodeOrToken) - ? fixer => - - /* - * Expand the replacement range to include the surrounding - * tokens to avoid conflicting with semi. - * https://github.com/eslint/eslint/issues/7928 - */ - new FixTracker(fixer, context.sourceCode) - .retainSurroundingTokens(nodeOrToken) - .remove(nodeOrToken) - : null - }); - } - - /** - * Checks for a part of a class body. - * This checks tokens from a specified token to a next MethodDefinition or the end of class body. - * @param {Token} firstToken The first token to check. - * @returns {void} - */ - function checkForPartOfClassBody(firstToken) { - for (let token = firstToken; - token.type === "Punctuator" && !astUtils.isClosingBraceToken(token); - token = sourceCode.getTokenAfter(token) - ) { - if (astUtils.isSemicolonToken(token)) { - report(token); - } - } - } - - return { - - /** - * Reports this empty statement, except if the parent node is a loop. - * @param {Node} node A EmptyStatement node to be reported. - * @returns {void} - */ - EmptyStatement(node) { - const parent = node.parent, - allowedParentTypes = [ - "ForStatement", - "ForInStatement", - "ForOfStatement", - "WhileStatement", - "DoWhileStatement", - "IfStatement", - "LabeledStatement", - "WithStatement" - ]; - - if (!allowedParentTypes.includes(parent.type)) { - report(node); - } - }, - - /** - * Checks tokens from the head of this class body to the first MethodDefinition or the end of this class body. - * @param {Node} node A ClassBody node to check. - * @returns {void} - */ - ClassBody(node) { - checkForPartOfClassBody(sourceCode.getFirstToken(node, 1)); // 0 is `{`. - }, - - /** - * Checks tokens from this MethodDefinition to the next MethodDefinition or the end of this class body. - * @param {Node} node A MethodDefinition node of the start point. - * @returns {void} - */ - "MethodDefinition, PropertyDefinition, StaticBlock"(node) { - checkForPartOfClassBody(sourceCode.getTokenAfter(node)); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-fallthrough.js b/graphql/node_modules/eslint/lib/rules/no-fallthrough.js deleted file mode 100644 index 4c98ddde..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-fallthrough.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * @fileoverview Rule to flag fall-through cases in switch statements. - * @author Matt DuVall - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { directivesPattern } = require("../shared/directives"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const DEFAULT_FALLTHROUGH_COMMENT = /falls?\s?through/iu; - -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - -/** - * Checks whether or not a given comment string is really a fallthrough comment and not an ESLint directive. - * @param {string} comment The comment string to check. - * @param {RegExp} fallthroughCommentPattern The regular expression used for checking for fallthrough comments. - * @returns {boolean} `true` if the comment string is truly a fallthrough comment. - */ -function isFallThroughComment(comment, fallthroughCommentPattern) { - return fallthroughCommentPattern.test(comment) && !directivesPattern.test(comment.trim()); -} - -/** - * Checks whether or not a given case has a fallthrough comment. - * @param {ASTNode} caseWhichFallsThrough SwitchCase node which falls through. - * @param {ASTNode} subsequentCase The case after caseWhichFallsThrough. - * @param {RuleContext} context A rule context which stores comments. - * @param {RegExp} fallthroughCommentPattern A pattern to match comment to. - * @returns {null | object} the comment if the case has a valid fallthrough comment, otherwise null - */ -function getFallthroughComment(caseWhichFallsThrough, subsequentCase, context, fallthroughCommentPattern) { - const sourceCode = context.sourceCode; - - if (caseWhichFallsThrough.consequent.length === 1 && caseWhichFallsThrough.consequent[0].type === "BlockStatement") { - const trailingCloseBrace = sourceCode.getLastToken(caseWhichFallsThrough.consequent[0]); - const commentInBlock = sourceCode.getCommentsBefore(trailingCloseBrace).pop(); - - if (commentInBlock && isFallThroughComment(commentInBlock.value, fallthroughCommentPattern)) { - return commentInBlock; - } - } - - const comment = sourceCode.getCommentsBefore(subsequentCase).pop(); - - if (comment && isFallThroughComment(comment.value, fallthroughCommentPattern)) { - return comment; - } - - return null; -} - -/** - * Checks whether a node and a token are separated by blank lines - * @param {ASTNode} node The node to check - * @param {Token} token The token to compare against - * @returns {boolean} `true` if there are blank lines between node and token - */ -function hasBlankLinesBetween(node, token) { - return token.loc.start.line > node.loc.end.line + 1; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow fallthrough of `case` statements", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-fallthrough" - }, - - schema: [ - { - type: "object", - properties: { - commentPattern: { - type: "string", - default: "" - }, - allowEmptyCase: { - type: "boolean", - default: false - }, - reportUnusedFallthroughComment: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - unusedFallthroughComment: "Found a comment that would permit fallthrough, but case cannot fall through.", - case: "Expected a 'break' statement before 'case'.", - default: "Expected a 'break' statement before 'default'." - } - }, - - create(context) { - const options = context.options[0] || {}; - const codePathSegments = []; - let currentCodePathSegments = new Set(); - const sourceCode = context.sourceCode; - const allowEmptyCase = options.allowEmptyCase || false; - const reportUnusedFallthroughComment = options.reportUnusedFallthroughComment || false; - - /* - * We need to use leading comments of the next SwitchCase node because - * trailing comments is wrong if semicolons are omitted. - */ - let previousCase = null; - let fallthroughCommentPattern = null; - - if (options.commentPattern) { - fallthroughCommentPattern = new RegExp(options.commentPattern, "u"); - } else { - fallthroughCommentPattern = DEFAULT_FALLTHROUGH_COMMENT; - } - return { - - onCodePathStart() { - codePathSegments.push(currentCodePathSegments); - currentCodePathSegments = new Set(); - }, - - onCodePathEnd() { - currentCodePathSegments = codePathSegments.pop(); - }, - - onUnreachableCodePathSegmentStart(segment) { - currentCodePathSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - onCodePathSegmentStart(segment) { - currentCodePathSegments.add(segment); - }, - - onCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - - SwitchCase(node) { - - /* - * Checks whether or not there is a fallthrough comment. - * And reports the previous fallthrough node if that does not exist. - */ - - if (previousCase && previousCase.node.parent === node.parent) { - const previousCaseFallthroughComment = getFallthroughComment(previousCase.node, node, context, fallthroughCommentPattern); - - if (previousCase.isFallthrough && !(previousCaseFallthroughComment)) { - context.report({ - messageId: node.test ? "case" : "default", - node - }); - } else if (reportUnusedFallthroughComment && !previousCase.isSwitchExitReachable && previousCaseFallthroughComment) { - context.report({ - messageId: "unusedFallthroughComment", - node: previousCaseFallthroughComment - }); - } - - } - previousCase = null; - }, - - "SwitchCase:exit"(node) { - const nextToken = sourceCode.getTokenAfter(node); - - /* - * `reachable` meant fall through because statements preceded by - * `break`, `return`, or `throw` are unreachable. - * And allows empty cases and the last case. - */ - const isSwitchExitReachable = isAnySegmentReachable(currentCodePathSegments); - const isFallthrough = isSwitchExitReachable && (node.consequent.length > 0 || (!allowEmptyCase && hasBlankLinesBetween(node, nextToken))) && - node.parent.cases.at(-1) !== node; - - previousCase = { - node, - isSwitchExitReachable, - isFallthrough - }; - - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-floating-decimal.js b/graphql/node_modules/eslint/lib/rules/no-floating-decimal.js deleted file mode 100644 index 80e4994c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-floating-decimal.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @fileoverview Rule to flag use of a leading/trailing decimal point in a numeric literal - * @author James Allardice - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Disallow leading or trailing decimal points in numeric literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-floating-decimal" - }, - - schema: [], - fixable: "code", - messages: { - leading: "A leading decimal point can be confused with a dot.", - trailing: "A trailing decimal point can be confused with a dot." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - Literal(node) { - - if (typeof node.value === "number") { - if (node.raw.startsWith(".")) { - context.report({ - node, - messageId: "leading", - fix(fixer) { - const tokenBefore = sourceCode.getTokenBefore(node); - const needsSpaceBefore = tokenBefore && - tokenBefore.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, `0${node.raw}`); - - return fixer.insertTextBefore(node, needsSpaceBefore ? " 0" : "0"); - } - }); - } - if (node.raw.indexOf(".") === node.raw.length - 1) { - context.report({ - node, - messageId: "trailing", - fix: fixer => fixer.insertTextAfter(node, "0") - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-func-assign.js b/graphql/node_modules/eslint/lib/rules/no-func-assign.js deleted file mode 100644 index 8084af6e..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-func-assign.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @fileoverview Rule to flag use of function declaration identifiers as variables. - * @author Ian Christian Myers - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow reassigning `function` declarations", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-func-assign" - }, - - schema: [], - - messages: { - isAFunction: "'{{name}}' is a function." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Reports a reference if is non initializer and writable. - * @param {References} references Collection of reference to check. - * @returns {void} - */ - function checkReference(references) { - astUtils.getModifyingReferences(references).forEach(reference => { - context.report({ - node: reference.identifier, - messageId: "isAFunction", - data: { - name: reference.identifier.name - } - }); - }); - } - - /** - * Finds and reports references that are non initializer and writable. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - if (variable.defs[0].type === "FunctionName") { - checkReference(variable.references); - } - } - - /** - * Checks parameters of a given function node. - * @param {ASTNode} node A function node to check. - * @returns {void} - */ - function checkForFunction(node) { - sourceCode.getDeclaredVariables(node).forEach(checkVariable); - } - - return { - FunctionDeclaration: checkForFunction, - FunctionExpression: checkForFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-global-assign.js b/graphql/node_modules/eslint/lib/rules/no-global-assign.js deleted file mode 100644 index 99ae7a2e..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-global-assign.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @fileoverview Rule to disallow assignments to native objects or read-only global variables - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow assignments to native objects or read-only global variables", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-global-assign" - }, - - schema: [ - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { type: "string" }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - globalShouldNotBeModified: "Read-only global '{{name}}' should not be modified." - } - }, - - create(context) { - const config = context.options[0]; - const sourceCode = context.sourceCode; - const exceptions = (config && config.exceptions) || []; - - /** - * Reports write references. - * @param {Reference} reference A reference to check. - * @param {int} index The index of the reference in the references. - * @param {Reference[]} references The array that the reference belongs to. - * @returns {void} - */ - function checkReference(reference, index, references) { - const identifier = reference.identifier; - - if (reference.init === false && - reference.isWrite() && - - /* - * Destructuring assignments can have multiple default value, - * so possibly there are multiple writeable references for the same identifier. - */ - (index === 0 || references[index - 1].identifier !== identifier) - ) { - context.report({ - node: identifier, - messageId: "globalShouldNotBeModified", - data: { - name: identifier.name - } - }); - } - } - - /** - * Reports write references if a given variable is read-only builtin. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - if (variable.writeable === false && !exceptions.includes(variable.name)) { - variable.references.forEach(checkReference); - } - } - - return { - Program(node) { - const globalScope = sourceCode.getScope(node); - - globalScope.variables.forEach(checkVariable); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-implicit-coercion.js b/graphql/node_modules/eslint/lib/rules/no-implicit-coercion.js deleted file mode 100644 index 3f8a7c0f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-implicit-coercion.js +++ /dev/null @@ -1,422 +0,0 @@ -/** - * @fileoverview A rule to disallow the type conversions with shorter notations. - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const INDEX_OF_PATTERN = /^(?:i|lastI)ndexOf$/u; -const ALLOWABLE_OPERATORS = ["~", "!!", "+", "- -", "-", "*"]; - -/** - * Parses and normalizes an option object. - * @param {Object} options An option object to parse. - * @returns {Object} The parsed and normalized option object. - */ -function parseOptions(options) { - return { - boolean: "boolean" in options ? options.boolean : true, - number: "number" in options ? options.number : true, - string: "string" in options ? options.string : true, - disallowTemplateShorthand: "disallowTemplateShorthand" in options ? options.disallowTemplateShorthand : false, - allow: options.allow || [] - }; -} - -/** - * Checks whether or not a node is a double logical negating. - * @param {ASTNode} node An UnaryExpression node to check. - * @returns {boolean} Whether or not the node is a double logical negating. - */ -function isDoubleLogicalNegating(node) { - return ( - node.operator === "!" && - node.argument.type === "UnaryExpression" && - node.argument.operator === "!" - ); -} - -/** - * Checks whether or not a node is a binary negating of `.indexOf()` method calling. - * @param {ASTNode} node An UnaryExpression node to check. - * @returns {boolean} Whether or not the node is a binary negating of `.indexOf()` method calling. - */ -function isBinaryNegatingOfIndexOf(node) { - if (node.operator !== "~") { - return false; - } - const callNode = astUtils.skipChainExpression(node.argument); - - return ( - callNode.type === "CallExpression" && - astUtils.isSpecificMemberAccess(callNode.callee, null, INDEX_OF_PATTERN) - ); -} - -/** - * Checks whether or not a node is a multiplying by one. - * @param {BinaryExpression} node A BinaryExpression node to check. - * @returns {boolean} Whether or not the node is a multiplying by one. - */ -function isMultiplyByOne(node) { - return node.operator === "*" && ( - node.left.type === "Literal" && node.left.value === 1 || - node.right.type === "Literal" && node.right.value === 1 - ); -} - -/** - * Checks whether the given node logically represents multiplication by a fraction of `1`. - * For example, `a * 1` in `a * 1 / b` is technically multiplication by `1`, but the - * whole expression can be logically interpreted as `a * (1 / b)` rather than `(a * 1) / b`. - * @param {BinaryExpression} node A BinaryExpression node to check. - * @param {SourceCode} sourceCode The source code object. - * @returns {boolean} Whether or not the node is a multiplying by a fraction of `1`. - */ -function isMultiplyByFractionOfOne(node, sourceCode) { - return node.type === "BinaryExpression" && - node.operator === "*" && - (node.right.type === "Literal" && node.right.value === 1) && - node.parent.type === "BinaryExpression" && - node.parent.operator === "/" && - node.parent.left === node && - !astUtils.isParenthesised(sourceCode, node); -} - -/** - * Checks whether the result of a node is numeric or not - * @param {ASTNode} node The node to test - * @returns {boolean} true if the node is a number literal or a `Number()`, `parseInt` or `parseFloat` call - */ -function isNumeric(node) { - return ( - node.type === "Literal" && typeof node.value === "number" || - node.type === "CallExpression" && ( - node.callee.name === "Number" || - node.callee.name === "parseInt" || - node.callee.name === "parseFloat" - ) - ); -} - -/** - * Returns the first non-numeric operand in a BinaryExpression. Designed to be - * used from bottom to up since it walks up the BinaryExpression trees using - * node.parent to find the result. - * @param {BinaryExpression} node The BinaryExpression node to be walked up on - * @returns {ASTNode|null} The first non-numeric item in the BinaryExpression tree or null - */ -function getNonNumericOperand(node) { - const left = node.left, - right = node.right; - - if (right.type !== "BinaryExpression" && !isNumeric(right)) { - return right; - } - - if (left.type !== "BinaryExpression" && !isNumeric(left)) { - return left; - } - - return null; -} - -/** - * Checks whether an expression evaluates to a string. - * @param {ASTNode} node node that represents the expression to check. - * @returns {boolean} Whether or not the expression evaluates to a string. - */ -function isStringType(node) { - return astUtils.isStringLiteral(node) || - ( - node.type === "CallExpression" && - node.callee.type === "Identifier" && - node.callee.name === "String" - ); -} - -/** - * Checks whether a node is an empty string literal or not. - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the passed in node is an - * empty string literal or not. - */ -function isEmptyString(node) { - return astUtils.isStringLiteral(node) && (node.value === "" || (node.type === "TemplateLiteral" && node.quasis.length === 1 && node.quasis[0].value.cooked === "")); -} - -/** - * Checks whether or not a node is a concatenating with an empty string. - * @param {ASTNode} node A BinaryExpression node to check. - * @returns {boolean} Whether or not the node is a concatenating with an empty string. - */ -function isConcatWithEmptyString(node) { - return node.operator === "+" && ( - (isEmptyString(node.left) && !isStringType(node.right)) || - (isEmptyString(node.right) && !isStringType(node.left)) - ); -} - -/** - * Checks whether or not a node is appended with an empty string. - * @param {ASTNode} node An AssignmentExpression node to check. - * @returns {boolean} Whether or not the node is appended with an empty string. - */ -function isAppendEmptyString(node) { - return node.operator === "+=" && isEmptyString(node.right); -} - -/** - * Returns the operand that is not an empty string from a flagged BinaryExpression. - * @param {ASTNode} node The flagged BinaryExpression node to check. - * @returns {ASTNode} The operand that is not an empty string from a flagged BinaryExpression. - */ -function getNonEmptyOperand(node) { - return isEmptyString(node.left) ? node.right : node.left; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - hasSuggestions: true, - type: "suggestion", - - docs: { - description: "Disallow shorthand type conversions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-implicit-coercion" - }, - - fixable: "code", - - schema: [{ - type: "object", - properties: { - boolean: { - type: "boolean", - default: true - }, - number: { - type: "boolean", - default: true - }, - string: { - type: "boolean", - default: true - }, - disallowTemplateShorthand: { - type: "boolean", - default: false - }, - allow: { - type: "array", - items: { - enum: ALLOWABLE_OPERATORS - }, - uniqueItems: true - } - }, - additionalProperties: false - }], - - messages: { - implicitCoercion: "Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.", - useRecommendation: "Use `{{recommendation}}` instead." - } - }, - - create(context) { - const options = parseOptions(context.options[0] || {}); - const sourceCode = context.sourceCode; - - /** - * Reports an error and autofixes the node - * @param {ASTNode} node An ast node to report the error on. - * @param {string} recommendation The recommended code for the issue - * @param {bool} shouldSuggest Whether this report should offer a suggestion - * @param {bool} shouldFix Whether this report should fix the node - * @returns {void} - */ - function report(node, recommendation, shouldSuggest, shouldFix) { - - /** - * Fix function - * @param {RuleFixer} fixer The fixer to fix. - * @returns {Fix} The fix object. - */ - function fix(fixer) { - const tokenBefore = sourceCode.getTokenBefore(node); - - if ( - tokenBefore?.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, recommendation) - ) { - return fixer.replaceText(node, ` ${recommendation}`); - } - - return fixer.replaceText(node, recommendation); - } - - context.report({ - node, - messageId: "implicitCoercion", - data: { recommendation }, - fix(fixer) { - if (!shouldFix) { - return null; - } - - return fix(fixer); - }, - suggest: [ - { - messageId: "useRecommendation", - data: { recommendation }, - fix(fixer) { - if (shouldFix || !shouldSuggest) { - return null; - } - - return fix(fixer); - } - } - ] - }); - } - - return { - UnaryExpression(node) { - let operatorAllowed; - - // !!foo - operatorAllowed = options.allow.includes("!!"); - if (!operatorAllowed && options.boolean && isDoubleLogicalNegating(node)) { - const recommendation = `Boolean(${sourceCode.getText(node.argument.argument)})`; - const variable = astUtils.getVariableByName(sourceCode.getScope(node), "Boolean"); - const booleanExists = variable?.identifiers.length === 0; - - report(node, recommendation, true, booleanExists); - } - - // ~foo.indexOf(bar) - operatorAllowed = options.allow.includes("~"); - if (!operatorAllowed && options.boolean && isBinaryNegatingOfIndexOf(node)) { - - // `foo?.indexOf(bar) !== -1` will be true (== found) if the `foo` is nullish. So use `>= 0` in that case. - const comparison = node.argument.type === "ChainExpression" ? ">= 0" : "!== -1"; - const recommendation = `${sourceCode.getText(node.argument)} ${comparison}`; - - report(node, recommendation, false, false); - } - - // +foo - operatorAllowed = options.allow.includes("+"); - if (!operatorAllowed && options.number && node.operator === "+" && !isNumeric(node.argument)) { - const recommendation = `Number(${sourceCode.getText(node.argument)})`; - - report(node, recommendation, true, false); - } - - // -(-foo) - operatorAllowed = options.allow.includes("- -"); - if (!operatorAllowed && options.number && node.operator === "-" && node.argument.type === "UnaryExpression" && node.argument.operator === "-" && !isNumeric(node.argument.argument)) { - const recommendation = `Number(${sourceCode.getText(node.argument.argument)})`; - - report(node, recommendation, true, false); - } - }, - - // Use `:exit` to prevent double reporting - "BinaryExpression:exit"(node) { - let operatorAllowed; - - // 1 * foo - operatorAllowed = options.allow.includes("*"); - const nonNumericOperand = !operatorAllowed && options.number && isMultiplyByOne(node) && !isMultiplyByFractionOfOne(node, sourceCode) && - getNonNumericOperand(node); - - if (nonNumericOperand) { - const recommendation = `Number(${sourceCode.getText(nonNumericOperand)})`; - - report(node, recommendation, true, false); - } - - // foo - 0 - operatorAllowed = options.allow.includes("-"); - if (!operatorAllowed && options.number && node.operator === "-" && node.right.type === "Literal" && node.right.value === 0 && !isNumeric(node.left)) { - const recommendation = `Number(${sourceCode.getText(node.left)})`; - - report(node, recommendation, true, false); - } - - // "" + foo - operatorAllowed = options.allow.includes("+"); - if (!operatorAllowed && options.string && isConcatWithEmptyString(node)) { - const recommendation = `String(${sourceCode.getText(getNonEmptyOperand(node))})`; - - report(node, recommendation, true, false); - } - }, - - AssignmentExpression(node) { - - // foo += "" - const operatorAllowed = options.allow.includes("+"); - - if (!operatorAllowed && options.string && isAppendEmptyString(node)) { - const code = sourceCode.getText(getNonEmptyOperand(node)); - const recommendation = `${code} = String(${code})`; - - report(node, recommendation, true, false); - } - }, - - TemplateLiteral(node) { - if (!options.disallowTemplateShorthand) { - return; - } - - // tag`${foo}` - if (node.parent.type === "TaggedTemplateExpression") { - return; - } - - // `` or `${foo}${bar}` - if (node.expressions.length !== 1) { - return; - } - - - // `prefix${foo}` - if (node.quasis[0].value.cooked !== "") { - return; - } - - // `${foo}postfix` - if (node.quasis[1].value.cooked !== "") { - return; - } - - // if the expression is already a string, then this isn't a coercion - if (isStringType(node.expressions[0])) { - return; - } - - const code = sourceCode.getText(node.expressions[0]); - const recommendation = `String(${code})`; - - report(node, recommendation, true, false); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-implicit-globals.js b/graphql/node_modules/eslint/lib/rules/no-implicit-globals.js deleted file mode 100644 index 2a182477..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-implicit-globals.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * @fileoverview Rule to check for implicit global variables, functions and classes. - * @author Joshua Peek - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow declarations in the global scope", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-implicit-globals" - }, - - schema: [{ - type: "object", - properties: { - lexicalBindings: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - globalNonLexicalBinding: "Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.", - globalLexicalBinding: "Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.", - globalVariableLeak: "Global variable leak, declare the variable if it is intended to be local.", - assignmentToReadonlyGlobal: "Unexpected assignment to read-only global variable.", - redeclarationOfReadonlyGlobal: "Unexpected redeclaration of read-only global variable." - } - }, - - create(context) { - - const checkLexicalBindings = context.options[0] && context.options[0].lexicalBindings === true; - const sourceCode = context.sourceCode; - - /** - * Reports the node. - * @param {ASTNode} node Node to report. - * @param {string} messageId Id of the message to report. - * @param {string|undefined} kind Declaration kind, can be 'var', 'const', 'let', function or class. - * @returns {void} - */ - function report(node, messageId, kind) { - context.report({ - node, - messageId, - data: { - kind - } - }); - } - - return { - Program(node) { - const scope = sourceCode.getScope(node); - - scope.variables.forEach(variable => { - - // Only ESLint global variables have the `writable` key. - const isReadonlyEslintGlobalVariable = variable.writeable === false; - const isWritableEslintGlobalVariable = variable.writeable === true; - - if (isWritableEslintGlobalVariable) { - - // Everything is allowed with writable ESLint global variables. - return; - } - - // Variables exported by "exported" block comments - if (variable.eslintExported) { - return; - } - - variable.defs.forEach(def => { - const defNode = def.node; - - if (def.type === "FunctionName" || (def.type === "Variable" && def.parent.kind === "var")) { - if (isReadonlyEslintGlobalVariable) { - report(defNode, "redeclarationOfReadonlyGlobal"); - } else { - report( - defNode, - "globalNonLexicalBinding", - def.type === "FunctionName" ? "function" : `'${def.parent.kind}'` - ); - } - } - - if (checkLexicalBindings) { - if (def.type === "ClassName" || - (def.type === "Variable" && (def.parent.kind === "let" || def.parent.kind === "const"))) { - if (isReadonlyEslintGlobalVariable) { - report(defNode, "redeclarationOfReadonlyGlobal"); - } else { - report( - defNode, - "globalLexicalBinding", - def.type === "ClassName" ? "class" : `'${def.parent.kind}'` - ); - } - } - } - }); - }); - - // Undeclared assigned variables. - scope.implicit.variables.forEach(variable => { - const scopeVariable = scope.set.get(variable.name); - let messageId; - - if (scopeVariable) { - - // ESLint global variable - if (scopeVariable.writeable) { - return; - } - messageId = "assignmentToReadonlyGlobal"; - - } else { - - // Reference to an unknown variable, possible global leak. - messageId = "globalVariableLeak"; - } - - // def.node is an AssignmentExpression, ForInStatement or ForOfStatement. - variable.defs.forEach(def => { - report(def.node, messageId); - }); - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-implied-eval.js b/graphql/node_modules/eslint/lib/rules/no-implied-eval.js deleted file mode 100644 index 9a84f8cb..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-implied-eval.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @fileoverview Rule to flag use of implied eval via setTimeout and setInterval - * @author James Allardice - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { getStaticValue } = require("@eslint-community/eslint-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `eval()`-like methods", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-implied-eval" - }, - - schema: [], - - messages: { - impliedEval: "Implied eval. Consider passing a function instead of a string." - } - }, - - create(context) { - const GLOBAL_CANDIDATES = Object.freeze(["global", "window", "globalThis"]); - const EVAL_LIKE_FUNC_PATTERN = /^(?:set(?:Interval|Timeout)|execScript)$/u; - const sourceCode = context.sourceCode; - - /** - * Checks whether a node is evaluated as a string or not. - * @param {ASTNode} node A node to check. - * @returns {boolean} True if the node is evaluated as a string. - */ - function isEvaluatedString(node) { - if ( - (node.type === "Literal" && typeof node.value === "string") || - node.type === "TemplateLiteral" - ) { - return true; - } - if (node.type === "BinaryExpression" && node.operator === "+") { - return isEvaluatedString(node.left) || isEvaluatedString(node.right); - } - return false; - } - - /** - * Reports if the `CallExpression` node has evaluated argument. - * @param {ASTNode} node A CallExpression to check. - * @returns {void} - */ - function reportImpliedEvalCallExpression(node) { - const [firstArgument] = node.arguments; - - if (firstArgument) { - - const staticValue = getStaticValue(firstArgument, sourceCode.getScope(node)); - const isStaticString = staticValue && typeof staticValue.value === "string"; - const isString = isStaticString || isEvaluatedString(firstArgument); - - if (isString) { - context.report({ - node, - messageId: "impliedEval" - }); - } - } - - } - - /** - * Reports calls of `implied eval` via the global references. - * @param {Variable} globalVar A global variable to check. - * @returns {void} - */ - function reportImpliedEvalViaGlobal(globalVar) { - const { references, name } = globalVar; - - references.forEach(ref => { - const identifier = ref.identifier; - let node = identifier.parent; - - while (astUtils.isSpecificMemberAccess(node, null, name)) { - node = node.parent; - } - - if (astUtils.isSpecificMemberAccess(node, null, EVAL_LIKE_FUNC_PATTERN)) { - const calleeNode = node.parent.type === "ChainExpression" ? node.parent : node; - const parent = calleeNode.parent; - - if (parent.type === "CallExpression" && parent.callee === calleeNode) { - reportImpliedEvalCallExpression(parent); - } - } - }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - CallExpression(node) { - if (astUtils.isSpecificId(node.callee, EVAL_LIKE_FUNC_PATTERN)) { - reportImpliedEvalCallExpression(node); - } - }, - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - GLOBAL_CANDIDATES - .map(candidate => astUtils.getVariableByName(globalScope, candidate)) - .filter(globalVar => !!globalVar && globalVar.defs.length === 0) - .forEach(reportImpliedEvalViaGlobal); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-import-assign.js b/graphql/node_modules/eslint/lib/rules/no-import-assign.js deleted file mode 100644 index c6998866..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-import-assign.js +++ /dev/null @@ -1,241 +0,0 @@ -/** - * @fileoverview Rule to flag updates of imported bindings. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const { findVariable } = require("@eslint-community/eslint-utils"); -const astUtils = require("./utils/ast-utils"); - -const WellKnownMutationFunctions = { - Object: /^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u, - Reflect: /^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u -}; - -/** - * Check if a given node is LHS of an assignment node. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is LHS. - */ -function isAssignmentLeft(node) { - const { parent } = node; - - return ( - ( - parent.type === "AssignmentExpression" && - parent.left === node - ) || - - // Destructuring assignments - parent.type === "ArrayPattern" || - ( - parent.type === "Property" && - parent.value === node && - parent.parent.type === "ObjectPattern" - ) || - parent.type === "RestElement" || - ( - parent.type === "AssignmentPattern" && - parent.left === node - ) - ); -} - -/** - * Check if a given node is the operand of mutation unary operator. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is the operand of mutation unary operator. - */ -function isOperandOfMutationUnaryOperator(node) { - const argumentNode = node.parent.type === "ChainExpression" - ? node.parent - : node; - const { parent } = argumentNode; - - return ( - ( - parent.type === "UpdateExpression" && - parent.argument === argumentNode - ) || - ( - parent.type === "UnaryExpression" && - parent.operator === "delete" && - parent.argument === argumentNode - ) - ); -} - -/** - * Check if a given node is the iteration variable of `for-in`/`for-of` syntax. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is the iteration variable. - */ -function isIterationVariable(node) { - const { parent } = node; - - return ( - ( - parent.type === "ForInStatement" && - parent.left === node - ) || - ( - parent.type === "ForOfStatement" && - parent.left === node - ) - ); -} - -/** - * Check if a given node is at the first argument of a well-known mutation function. - * - `Object.assign` - * - `Object.defineProperty` - * - `Object.defineProperties` - * - `Object.freeze` - * - `Object.setPrototypeOf` - * - `Reflect.defineProperty` - * - `Reflect.deleteProperty` - * - `Reflect.set` - * - `Reflect.setPrototypeOf` - * @param {ASTNode} node The node to check. - * @param {Scope} scope A `escope.Scope` object to find variable (whichever). - * @returns {boolean} `true` if the node is at the first argument of a well-known mutation function. - */ -function isArgumentOfWellKnownMutationFunction(node, scope) { - const { parent } = node; - - if (parent.type !== "CallExpression" || parent.arguments[0] !== node) { - return false; - } - const callee = astUtils.skipChainExpression(parent.callee); - - if ( - !astUtils.isSpecificMemberAccess(callee, "Object", WellKnownMutationFunctions.Object) && - !astUtils.isSpecificMemberAccess(callee, "Reflect", WellKnownMutationFunctions.Reflect) - ) { - return false; - } - const variable = findVariable(scope, callee.object); - - return variable !== null && variable.scope.type === "global"; -} - -/** - * Check if the identifier node is placed at to update members. - * @param {ASTNode} id The Identifier node to check. - * @param {Scope} scope A `escope.Scope` object to find variable (whichever). - * @returns {boolean} `true` if the member of `id` was updated. - */ -function isMemberWrite(id, scope) { - const { parent } = id; - - return ( - ( - parent.type === "MemberExpression" && - parent.object === id && - ( - isAssignmentLeft(parent) || - isOperandOfMutationUnaryOperator(parent) || - isIterationVariable(parent) - ) - ) || - isArgumentOfWellKnownMutationFunction(id, scope) - ); -} - -/** - * Get the mutation node. - * @param {ASTNode} id The Identifier node to get. - * @returns {ASTNode} The mutation node. - */ -function getWriteNode(id) { - let node = id.parent; - - while ( - node && - node.type !== "AssignmentExpression" && - node.type !== "UpdateExpression" && - node.type !== "UnaryExpression" && - node.type !== "CallExpression" && - node.type !== "ForInStatement" && - node.type !== "ForOfStatement" - ) { - node = node.parent; - } - - return node || id; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow assigning to imported bindings", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-import-assign" - }, - - schema: [], - - messages: { - readonly: "'{{name}}' is read-only.", - readonlyMember: "The members of '{{name}}' are read-only." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - ImportDeclaration(node) { - const scope = sourceCode.getScope(node); - - for (const variable of sourceCode.getDeclaredVariables(node)) { - const shouldCheckMembers = variable.defs.some( - d => d.node.type === "ImportNamespaceSpecifier" - ); - let prevIdNode = null; - - for (const reference of variable.references) { - const idNode = reference.identifier; - - /* - * AssignmentPattern (e.g. `[a = 0] = b`) makes two write - * references for the same identifier. This should skip - * the one of the two in order to prevent redundant reports. - */ - if (idNode === prevIdNode) { - continue; - } - prevIdNode = idNode; - - if (reference.isWrite()) { - context.report({ - node: getWriteNode(idNode), - messageId: "readonly", - data: { name: idNode.name } - }); - } else if (shouldCheckMembers && isMemberWrite(idNode, scope)) { - context.report({ - node: getWriteNode(idNode), - messageId: "readonlyMember", - data: { name: idNode.name } - }); - } - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-inline-comments.js b/graphql/node_modules/eslint/lib/rules/no-inline-comments.js deleted file mode 100644 index d96e6472..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-inline-comments.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @fileoverview Enforces or disallows inline comments. - * @author Greg Cochard - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow inline comments after code", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-inline-comments" - }, - - schema: [ - { - type: "object", - properties: { - ignorePattern: { - type: "string" - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedInlineComment: "Unexpected comment inline with code." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = context.options[0]; - let customIgnoreRegExp; - - if (options && options.ignorePattern) { - customIgnoreRegExp = new RegExp(options.ignorePattern, "u"); - } - - /** - * Will check that comments are not on lines starting with or ending with code - * @param {ASTNode} node The comment node to check - * @private - * @returns {void} - */ - function testCodeAroundComment(node) { - - const startLine = String(sourceCode.lines[node.loc.start.line - 1]), - endLine = String(sourceCode.lines[node.loc.end.line - 1]), - preamble = startLine.slice(0, node.loc.start.column).trim(), - postamble = endLine.slice(node.loc.end.column).trim(), - isPreambleEmpty = !preamble, - isPostambleEmpty = !postamble; - - // Nothing on both sides - if (isPreambleEmpty && isPostambleEmpty) { - return; - } - - // Matches the ignore pattern - if (customIgnoreRegExp && customIgnoreRegExp.test(node.value)) { - return; - } - - // JSX Exception - if ( - (isPreambleEmpty || preamble === "{") && - (isPostambleEmpty || postamble === "}") - ) { - const enclosingNode = sourceCode.getNodeByRangeIndex(node.range[0]); - - if (enclosingNode && enclosingNode.type === "JSXEmptyExpression") { - return; - } - } - - // Don't report ESLint directive comments - if (astUtils.isDirectiveComment(node)) { - return; - } - - context.report({ - node, - messageId: "unexpectedInlineComment" - }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program() { - sourceCode.getAllComments() - .filter(token => token.type !== "Shebang") - .forEach(testCodeAroundComment); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-inner-declarations.js b/graphql/node_modules/eslint/lib/rules/no-inner-declarations.js deleted file mode 100644 index a690d95b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-inner-declarations.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * @fileoverview Rule to enforce declarations in program or function body root. - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const validParent = new Set(["Program", "StaticBlock", "ExportNamedDeclaration", "ExportDefaultDeclaration"]); -const validBlockStatementParent = new Set(["FunctionDeclaration", "FunctionExpression", "ArrowFunctionExpression"]); - -/** - * Finds the nearest enclosing context where this rule allows declarations and returns its description. - * @param {ASTNode} node Node to search from. - * @returns {string} Description. One of "program", "function body", "class static block body". - */ -function getAllowedBodyDescription(node) { - let { parent } = node; - - while (parent) { - - if (parent.type === "StaticBlock") { - return "class static block body"; - } - - if (astUtils.isFunction(parent)) { - return "function body"; - } - - ({ parent } = parent); - } - - return "program"; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow variable or `function` declarations in nested blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-inner-declarations" - }, - - schema: [ - { - enum: ["functions", "both"] - }, - { - type: "object", - properties: { - blockScopedFunctions: { - enum: ["allow", "disallow"] - } - }, - additionalProperties: false - } - ], - - messages: { - moveDeclToRoot: "Move {{type}} declaration to {{body}} root." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - const ecmaVersion = context.languageOptions.ecmaVersion; - const blockScopedFunctions = context.options[1]?.blockScopedFunctions ?? "allow"; - - /** - * Ensure that a given node is at a program or function body's root. - * @param {ASTNode} node Declaration node to check. - * @returns {void} - */ - function check(node) { - const parent = node.parent; - - if ( - parent.type === "BlockStatement" && validBlockStatementParent.has(parent.parent.type) - ) { - return; - } - - if (validParent.has(parent.type)) { - return; - } - - context.report({ - node, - messageId: "moveDeclToRoot", - data: { - type: (node.type === "FunctionDeclaration" ? "function" : "variable"), - body: getAllowedBodyDescription(node) - } - }); - } - - - return { - - FunctionDeclaration(node) { - const isInStrictCode = sourceCode.getScope(node).upper.isStrict; - - if (blockScopedFunctions === "allow" && ecmaVersion >= 2015 && isInStrictCode) { - return; - } - - check(node); - }, - VariableDeclaration(node) { - if (context.options[0] === "both" && node.kind === "var") { - check(node); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-invalid-regexp.js b/graphql/node_modules/eslint/lib/rules/no-invalid-regexp.js deleted file mode 100644 index 99fa6295..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-invalid-regexp.js +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @fileoverview Validate strings passed to the RegExp constructor - * @author Michael Ficarra - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const RegExpValidator = require("@eslint-community/regexpp").RegExpValidator; -const validator = new RegExpValidator(); -const validFlags = /[dgimsuvy]/gu; -const undefined1 = void 0; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow invalid regular expression strings in `RegExp` constructors", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-invalid-regexp" - }, - - schema: [{ - type: "object", - properties: { - allowConstructorFlags: { - type: "array", - items: { - type: "string" - } - } - }, - additionalProperties: false - }], - - messages: { - regexMessage: "{{message}}." - } - }, - - create(context) { - - const options = context.options[0]; - let allowedFlags = null; - - if (options && options.allowConstructorFlags) { - const temp = options.allowConstructorFlags.join("").replace(validFlags, ""); - - if (temp) { - allowedFlags = new RegExp(`[${temp}]`, "gu"); - } - } - - /** - * Reports error with the provided message. - * @param {ASTNode} node The node holding the invalid RegExp - * @param {string} message The message to report. - * @returns {void} - */ - function report(node, message) { - context.report({ - node, - messageId: "regexMessage", - data: { message } - }); - } - - /** - * Check if node is a string - * @param {ASTNode} node node to evaluate - * @returns {boolean} True if its a string - * @private - */ - function isString(node) { - return node && node.type === "Literal" && typeof node.value === "string"; - } - - /** - * Gets flags of a regular expression created by the given `RegExp()` or `new RegExp()` call - * Examples: - * new RegExp(".") // => "" - * new RegExp(".", "gu") // => "gu" - * new RegExp(".", flags) // => null - * @param {ASTNode} node `CallExpression` or `NewExpression` node - * @returns {string|null} flags if they can be determined, `null` otherwise - * @private - */ - function getFlags(node) { - if (node.arguments.length < 2) { - return ""; - } - - if (isString(node.arguments[1])) { - return node.arguments[1].value; - } - - return null; - } - - /** - * Check syntax error in a given pattern. - * @param {string} pattern The RegExp pattern to validate. - * @param {Object} flags The RegExp flags to validate. - * @param {boolean} [flags.unicode] The Unicode flag. - * @param {boolean} [flags.unicodeSets] The UnicodeSets flag. - * @returns {string|null} The syntax error. - */ - function validateRegExpPattern(pattern, flags) { - try { - validator.validatePattern(pattern, undefined1, undefined1, flags); - return null; - } catch (err) { - return err.message; - } - } - - /** - * Check syntax error in a given flags. - * @param {string|null} flags The RegExp flags to validate. - * @returns {string|null} The syntax error. - */ - function validateRegExpFlags(flags) { - if (!flags) { - return null; - } - try { - validator.validateFlags(flags); - } catch { - return `Invalid flags supplied to RegExp constructor '${flags}'`; - } - - /* - * `regexpp` checks the combination of `u` and `v` flags when parsing `Pattern` according to `ecma262`, - * but this rule may check only the flag when the pattern is unidentifiable, so check it here. - * https://tc39.es/ecma262/multipage/text-processing.html#sec-parsepattern - */ - if (flags.includes("u") && flags.includes("v")) { - return "Regex 'u' and 'v' flags cannot be used together"; - } - return null; - } - - return { - "CallExpression, NewExpression"(node) { - if (node.callee.type !== "Identifier" || node.callee.name !== "RegExp") { - return; - } - - let flags = getFlags(node); - - if (flags && allowedFlags) { - flags = flags.replace(allowedFlags, ""); - } - - let message = validateRegExpFlags(flags); - - if (message) { - report(node, message); - return; - } - - if (!isString(node.arguments[0])) { - return; - } - - const pattern = node.arguments[0].value; - - message = ( - - // If flags are unknown, report the regex only if its pattern is invalid both with and without the "u" flag - flags === null - ? ( - validateRegExpPattern(pattern, { unicode: true, unicodeSets: false }) && - validateRegExpPattern(pattern, { unicode: false, unicodeSets: true }) && - validateRegExpPattern(pattern, { unicode: false, unicodeSets: false }) - ) - : validateRegExpPattern(pattern, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }) - ); - - if (message) { - report(node, message); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-invalid-this.js b/graphql/node_modules/eslint/lib/rules/no-invalid-this.js deleted file mode 100644 index 4ea22889..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-invalid-this.js +++ /dev/null @@ -1,150 +0,0 @@ -/** - * @fileoverview A rule to disallow `this` keywords in contexts where the value of `this` is `undefined`. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines if the given code path is a code path with lexical `this` binding. - * That is, if `this` within the code path refers to `this` of surrounding code path. - * @param {CodePath} codePath Code path. - * @param {ASTNode} node Node that started the code path. - * @returns {boolean} `true` if it is a code path with lexical `this` binding. - */ -function isCodePathWithLexicalThis(codePath, node) { - return codePath.origin === "function" && node.type === "ArrowFunctionExpression"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow use of `this` in contexts where the value of `this` is `undefined`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-invalid-this" - }, - - schema: [ - { - type: "object", - properties: { - capIsConstructor: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedThis: "Unexpected 'this'." - } - }, - - create(context) { - const options = context.options[0] || {}; - const capIsConstructor = options.capIsConstructor !== false; - const stack = [], - sourceCode = context.sourceCode; - - /** - * Gets the current checking context. - * - * The return value has a flag that whether or not `this` keyword is valid. - * The flag is initialized when got at the first time. - * @returns {{valid: boolean}} - * an object which has a flag that whether or not `this` keyword is valid. - */ - stack.getCurrent = function() { - const current = this.at(-1); - - if (!current.init) { - current.init = true; - current.valid = !astUtils.isDefaultThisBinding( - current.node, - sourceCode, - { capIsConstructor } - ); - } - return current; - }; - - return { - - onCodePathStart(codePath, node) { - if (isCodePathWithLexicalThis(codePath, node)) { - return; - } - - if (codePath.origin === "program") { - const scope = sourceCode.getScope(node); - const features = context.languageOptions.parserOptions.ecmaFeatures || {}; - - // `this` at the top level of scripts always refers to the global object - stack.push({ - init: true, - node, - valid: !( - node.sourceType === "module" || - (features.globalReturn && scope.childScopes[0].isStrict) - ) - }); - - return; - } - - /* - * `init: false` means that `valid` isn't determined yet. - * Most functions don't use `this`, and the calculation for `valid` - * is relatively costly, so we'll calculate it lazily when the first - * `this` within the function is traversed. A special case are non-strict - * functions, because `this` refers to the global object and therefore is - * always valid, so we can set `init: true` right away. - */ - stack.push({ - init: !sourceCode.getScope(node).isStrict, - node, - valid: true - }); - }, - - onCodePathEnd(codePath, node) { - if (isCodePathWithLexicalThis(codePath, node)) { - return; - } - - stack.pop(); - }, - - // Reports if `this` of the current context is invalid. - ThisExpression(node) { - const current = stack.getCurrent(); - - if (current && !current.valid) { - context.report({ - node, - messageId: "unexpectedThis" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-irregular-whitespace.js b/graphql/node_modules/eslint/lib/rules/no-irregular-whitespace.js deleted file mode 100644 index ab7ccac5..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-irregular-whitespace.js +++ /dev/null @@ -1,276 +0,0 @@ -/** - * @fileoverview Rule to disallow whitespace that is not a tab or space, whitespace inside strings and comments are allowed - * @author Jonathan Kingston - * @author Christophe Porteneuve - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const ALL_IRREGULARS = /[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u; -const IRREGULAR_WHITESPACE = /[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu; -const IRREGULAR_LINE_TERMINATORS = /[\u2028\u2029]/mgu; -const LINE_BREAK = astUtils.createGlobalLinebreakMatcher(); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow irregular whitespace", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-irregular-whitespace" - }, - - schema: [ - { - type: "object", - properties: { - skipComments: { - type: "boolean", - default: false - }, - skipStrings: { - type: "boolean", - default: true - }, - skipTemplates: { - type: "boolean", - default: false - }, - skipRegExps: { - type: "boolean", - default: false - }, - skipJSXText: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - noIrregularWhitespace: "Irregular whitespace not allowed." - } - }, - - create(context) { - - // Module store of errors that we have found - let errors = []; - - // Lookup the `skipComments` option, which defaults to `false`. - const options = context.options[0] || {}; - const skipComments = !!options.skipComments; - const skipStrings = options.skipStrings !== false; - const skipRegExps = !!options.skipRegExps; - const skipTemplates = !!options.skipTemplates; - const skipJSXText = !!options.skipJSXText; - - const sourceCode = context.sourceCode; - const commentNodes = sourceCode.getAllComments(); - - /** - * Removes errors that occur inside the given node - * @param {ASTNode} node to check for matching errors. - * @returns {void} - * @private - */ - function removeWhitespaceError(node) { - const locStart = node.loc.start; - const locEnd = node.loc.end; - - errors = errors.filter(({ loc: { start: errorLocStart } }) => ( - errorLocStart.line < locStart.line || - errorLocStart.line === locStart.line && errorLocStart.column < locStart.column || - errorLocStart.line === locEnd.line && errorLocStart.column >= locEnd.column || - errorLocStart.line > locEnd.line - )); - } - - /** - * Checks literal nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors - * @param {ASTNode} node to check for matching errors. - * @returns {void} - * @private - */ - function removeInvalidNodeErrorsInLiteral(node) { - const shouldCheckStrings = skipStrings && (typeof node.value === "string"); - const shouldCheckRegExps = skipRegExps && Boolean(node.regex); - - if (shouldCheckStrings || shouldCheckRegExps) { - - // If we have irregular characters remove them from the errors list - if (ALL_IRREGULARS.test(node.raw)) { - removeWhitespaceError(node); - } - } - } - - /** - * Checks template string literal nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors - * @param {ASTNode} node to check for matching errors. - * @returns {void} - * @private - */ - function removeInvalidNodeErrorsInTemplateLiteral(node) { - if (typeof node.value.raw === "string") { - if (ALL_IRREGULARS.test(node.value.raw)) { - removeWhitespaceError(node); - } - } - } - - /** - * Checks comment nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors - * @param {ASTNode} node to check for matching errors. - * @returns {void} - * @private - */ - function removeInvalidNodeErrorsInComment(node) { - if (ALL_IRREGULARS.test(node.value)) { - removeWhitespaceError(node); - } - } - - /** - * Checks JSX nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors - * @param {ASTNode} node to check for matching errors. - * @returns {void} - * @private - */ - function removeInvalidNodeErrorsInJSXText(node) { - if (ALL_IRREGULARS.test(node.raw)) { - removeWhitespaceError(node); - } - } - - /** - * Checks the program source for irregular whitespace - * @param {ASTNode} node The program node - * @returns {void} - * @private - */ - function checkForIrregularWhitespace(node) { - const sourceLines = sourceCode.lines; - - sourceLines.forEach((sourceLine, lineIndex) => { - const lineNumber = lineIndex + 1; - let match; - - while ((match = IRREGULAR_WHITESPACE.exec(sourceLine)) !== null) { - errors.push({ - node, - messageId: "noIrregularWhitespace", - loc: { - start: { - line: lineNumber, - column: match.index - }, - end: { - line: lineNumber, - column: match.index + match[0].length - } - } - }); - } - }); - } - - /** - * Checks the program source for irregular line terminators - * @param {ASTNode} node The program node - * @returns {void} - * @private - */ - function checkForIrregularLineTerminators(node) { - const source = sourceCode.getText(), - sourceLines = sourceCode.lines, - linebreaks = source.match(LINE_BREAK); - let lastLineIndex = -1, - match; - - while ((match = IRREGULAR_LINE_TERMINATORS.exec(source)) !== null) { - const lineIndex = linebreaks.indexOf(match[0], lastLineIndex + 1) || 0; - - errors.push({ - node, - messageId: "noIrregularWhitespace", - loc: { - start: { - line: lineIndex + 1, - column: sourceLines[lineIndex].length - }, - end: { - line: lineIndex + 2, - column: 0 - } - } - }); - - lastLineIndex = lineIndex; - } - } - - /** - * A no-op function to act as placeholder for comment accumulation when the `skipComments` option is `false`. - * @returns {void} - * @private - */ - function noop() {} - - const nodes = {}; - - if (ALL_IRREGULARS.test(sourceCode.getText())) { - nodes.Program = function(node) { - - /* - * As we can easily fire warnings for all white space issues with - * all the source its simpler to fire them here. - * This means we can check all the application code without having - * to worry about issues caused in the parser tokens. - * When writing this code also evaluating per node was missing out - * connecting tokens in some cases. - * We can later filter the errors when they are found to be not an - * issue in nodes we don't care about. - */ - checkForIrregularWhitespace(node); - checkForIrregularLineTerminators(node); - }; - - nodes.Literal = removeInvalidNodeErrorsInLiteral; - nodes.TemplateElement = skipTemplates ? removeInvalidNodeErrorsInTemplateLiteral : noop; - nodes.JSXText = skipJSXText ? removeInvalidNodeErrorsInJSXText : noop; - nodes["Program:exit"] = function() { - if (skipComments) { - - // First strip errors occurring in comment nodes. - commentNodes.forEach(removeInvalidNodeErrorsInComment); - } - - // If we have any errors remaining report on them - errors.forEach(error => context.report(error)); - }; - } else { - nodes.Program = noop; - } - - return nodes; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-iterator.js b/graphql/node_modules/eslint/lib/rules/no-iterator.js deleted file mode 100644 index dcd9683b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-iterator.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @fileoverview Rule to flag usage of __iterator__ property - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { getStaticPropertyName } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of the `__iterator__` property", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-iterator" - }, - - schema: [], - - messages: { - noIterator: "Reserved name '__iterator__'." - } - }, - - create(context) { - - return { - - MemberExpression(node) { - - if (getStaticPropertyName(node) === "__iterator__") { - context.report({ - node, - messageId: "noIterator" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-label-var.js b/graphql/node_modules/eslint/lib/rules/no-label-var.js deleted file mode 100644 index bf33cd15..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-label-var.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @fileoverview Rule to flag labels that are the same as an identifier - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow labels that share a name with a variable", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-label-var" - }, - - schema: [], - - messages: { - identifierClashWithLabel: "Found identifier with same name as label." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Check if the identifier is present inside current scope - * @param {Object} scope current scope - * @param {string} name To evaluate - * @returns {boolean} True if its present - * @private - */ - function findIdentifier(scope, name) { - return astUtils.getVariableByName(scope, name) !== null; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - LabeledStatement(node) { - - // Fetch the innermost scope. - const scope = sourceCode.getScope(node); - - /* - * Recursively find the identifier walking up the scope, starting - * with the innermost scope. - */ - if (findIdentifier(scope, node.label.name)) { - context.report({ - node, - messageId: "identifierClashWithLabel" - }); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-labels.js b/graphql/node_modules/eslint/lib/rules/no-labels.js deleted file mode 100644 index d991a0a8..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-labels.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @fileoverview Disallow Labeled Statements - * @author Nicholas C. Zakas - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow labeled statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-labels" - }, - - schema: [ - { - type: "object", - properties: { - allowLoop: { - type: "boolean", - default: false - }, - allowSwitch: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedLabel: "Unexpected labeled statement.", - unexpectedLabelInBreak: "Unexpected label in break statement.", - unexpectedLabelInContinue: "Unexpected label in continue statement." - } - }, - - create(context) { - const options = context.options[0]; - const allowLoop = options && options.allowLoop; - const allowSwitch = options && options.allowSwitch; - let scopeInfo = null; - - /** - * Gets the kind of a given node. - * @param {ASTNode} node A node to get. - * @returns {string} The kind of the node. - */ - function getBodyKind(node) { - if (astUtils.isLoop(node)) { - return "loop"; - } - if (node.type === "SwitchStatement") { - return "switch"; - } - return "other"; - } - - /** - * Checks whether the label of a given kind is allowed or not. - * @param {string} kind A kind to check. - * @returns {boolean} `true` if the kind is allowed. - */ - function isAllowed(kind) { - switch (kind) { - case "loop": return allowLoop; - case "switch": return allowSwitch; - default: return false; - } - } - - /** - * Checks whether a given name is a label of a loop or not. - * @param {string} label A name of a label to check. - * @returns {boolean} `true` if the name is a label of a loop. - */ - function getKind(label) { - let info = scopeInfo; - - while (info) { - if (info.label === label) { - return info.kind; - } - info = info.upper; - } - - /* c8 ignore next */ - return "other"; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - LabeledStatement(node) { - scopeInfo = { - label: node.label.name, - kind: getBodyKind(node.body), - upper: scopeInfo - }; - }, - - "LabeledStatement:exit"(node) { - if (!isAllowed(scopeInfo.kind)) { - context.report({ - node, - messageId: "unexpectedLabel" - }); - } - - scopeInfo = scopeInfo.upper; - }, - - BreakStatement(node) { - if (node.label && !isAllowed(getKind(node.label.name))) { - context.report({ - node, - messageId: "unexpectedLabelInBreak" - }); - } - }, - - ContinueStatement(node) { - if (node.label && !isAllowed(getKind(node.label.name))) { - context.report({ - node, - messageId: "unexpectedLabelInContinue" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-lone-blocks.js b/graphql/node_modules/eslint/lib/rules/no-lone-blocks.js deleted file mode 100644 index 2e270892..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-lone-blocks.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * @fileoverview Rule to flag blocks with no reason to exist - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary nested blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-lone-blocks" - }, - - schema: [], - - messages: { - redundantBlock: "Block is redundant.", - redundantNestedBlock: "Nested block is redundant." - } - }, - - create(context) { - - // A stack of lone blocks to be checked for block-level bindings - const loneBlocks = []; - let ruleDef; - const sourceCode = context.sourceCode; - - /** - * Reports a node as invalid. - * @param {ASTNode} node The node to be reported. - * @returns {void} - */ - function report(node) { - const messageId = node.parent.type === "BlockStatement" || node.parent.type === "StaticBlock" - ? "redundantNestedBlock" - : "redundantBlock"; - - context.report({ - node, - messageId - }); - } - - /** - * Checks for any occurrence of a BlockStatement in a place where lists of statements can appear - * @param {ASTNode} node The node to check - * @returns {boolean} True if the node is a lone block. - */ - function isLoneBlock(node) { - return node.parent.type === "BlockStatement" || - node.parent.type === "StaticBlock" || - node.parent.type === "Program" || - - // Don't report blocks in switch cases if the block is the only statement of the case. - node.parent.type === "SwitchCase" && !(node.parent.consequent[0] === node && node.parent.consequent.length === 1); - } - - /** - * Checks the enclosing block of the current node for block-level bindings, - * and "marks it" as valid if any. - * @param {ASTNode} node The current node to check. - * @returns {void} - */ - function markLoneBlock(node) { - if (loneBlocks.length === 0) { - return; - } - - const block = node.parent; - - if (loneBlocks.at(-1) === block) { - loneBlocks.pop(); - } - } - - // Default rule definition: report all lone blocks - ruleDef = { - BlockStatement(node) { - if (isLoneBlock(node)) { - report(node); - } - } - }; - - // ES6: report blocks without block-level bindings, or that's only child of another block - if (context.languageOptions.ecmaVersion >= 2015) { - ruleDef = { - BlockStatement(node) { - if (isLoneBlock(node)) { - loneBlocks.push(node); - } - }, - "BlockStatement:exit"(node) { - if (loneBlocks.length > 0 && loneBlocks.at(-1) === node) { - loneBlocks.pop(); - report(node); - } else if ( - ( - node.parent.type === "BlockStatement" || - node.parent.type === "StaticBlock" - ) && - node.parent.body.length === 1 - ) { - report(node); - } - } - }; - - ruleDef.VariableDeclaration = function(node) { - if (node.kind !== "var") { - markLoneBlock(node); - } - }; - - ruleDef.FunctionDeclaration = function(node) { - if (sourceCode.getScope(node).isStrict) { - markLoneBlock(node); - } - }; - - ruleDef.ClassDeclaration = markLoneBlock; - } - - return ruleDef; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-lonely-if.js b/graphql/node_modules/eslint/lib/rules/no-lonely-if.js deleted file mode 100644 index eefd2c68..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-lonely-if.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @fileoverview Rule to disallow if as the only statement in an else block - * @author Brandon Mills - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `if` statements as the only statement in `else` blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-lonely-if" - }, - - schema: [], - fixable: "code", - - messages: { - unexpectedLonelyIf: "Unexpected if as the only statement in an else block." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - IfStatement(node) { - const parent = node.parent, - grandparent = parent.parent; - - if (parent && parent.type === "BlockStatement" && - parent.body.length === 1 && grandparent && - grandparent.type === "IfStatement" && - parent === grandparent.alternate) { - context.report({ - node, - messageId: "unexpectedLonelyIf", - fix(fixer) { - const openingElseCurly = sourceCode.getFirstToken(parent); - const closingElseCurly = sourceCode.getLastToken(parent); - const elseKeyword = sourceCode.getTokenBefore(openingElseCurly); - const tokenAfterElseBlock = sourceCode.getTokenAfter(closingElseCurly); - const lastIfToken = sourceCode.getLastToken(node.consequent); - const sourceText = sourceCode.getText(); - - if (sourceText.slice(openingElseCurly.range[1], - node.range[0]).trim() || sourceText.slice(node.range[1], closingElseCurly.range[0]).trim()) { - - // Don't fix if there are any non-whitespace characters interfering (e.g. comments) - return null; - } - - if ( - node.consequent.type !== "BlockStatement" && lastIfToken.value !== ";" && tokenAfterElseBlock && - ( - node.consequent.loc.end.line === tokenAfterElseBlock.loc.start.line || - /^[([/+`-]/u.test(tokenAfterElseBlock.value) || - lastIfToken.value === "++" || - lastIfToken.value === "--" - ) - ) { - - /* - * If the `if` statement has no block, and is not followed by a semicolon, make sure that fixing - * the issue would not change semantics due to ASI. If this would happen, don't do a fix. - */ - return null; - } - - return fixer.replaceTextRange( - [openingElseCurly.range[0], closingElseCurly.range[1]], - (elseKeyword.range[1] === openingElseCurly.range[0] ? " " : "") + sourceCode.getText(node) - ); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-loop-func.js b/graphql/node_modules/eslint/lib/rules/no-loop-func.js deleted file mode 100644 index ba372dbb..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-loop-func.js +++ /dev/null @@ -1,238 +0,0 @@ -/** - * @fileoverview Rule to flag creation of function inside a loop - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - - -/** - * Identifies is a node is a FunctionExpression which is part of an IIFE - * @param {ASTNode} node Node to test - * @returns {boolean} True if it's an IIFE - */ -function isIIFE(node) { - return (node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression") && node.parent && node.parent.type === "CallExpression" && node.parent.callee === node; -} - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow function declarations that contain unsafe references inside loop statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-loop-func" - }, - - schema: [], - - messages: { - unsafeRefs: "Function declared in a loop contains unsafe references to variable(s) {{ varNames }}." - } - }, - - create(context) { - - const SKIPPED_IIFE_NODES = new Set(); - const sourceCode = context.sourceCode; - - /** - * Gets the containing loop node of a specified node. - * - * We don't need to check nested functions, so this ignores those, with the exception of IIFE. - * `Scope.through` contains references of nested functions. - * @param {ASTNode} node An AST node to get. - * @returns {ASTNode|null} The containing loop node of the specified node, or - * `null`. - */ - function getContainingLoopNode(node) { - for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { - const parent = currentNode.parent; - - switch (parent.type) { - case "WhileStatement": - case "DoWhileStatement": - return parent; - - case "ForStatement": - - // `init` is outside of the loop. - if (parent.init !== currentNode) { - return parent; - } - break; - - case "ForInStatement": - case "ForOfStatement": - - // `right` is outside of the loop. - if (parent.right !== currentNode) { - return parent; - } - break; - - case "ArrowFunctionExpression": - case "FunctionExpression": - case "FunctionDeclaration": - - // We need to check nested functions only in case of IIFE. - if (SKIPPED_IIFE_NODES.has(parent)) { - break; - } - - return null; - default: - break; - } - } - - return null; - } - - /** - * Gets the containing loop node of a given node. - * If the loop was nested, this returns the most outer loop. - * @param {ASTNode} node A node to get. This is a loop node. - * @param {ASTNode|null} excludedNode A node that the result node should not - * include. - * @returns {ASTNode} The most outer loop node. - */ - function getTopLoopNode(node, excludedNode) { - const border = excludedNode ? excludedNode.range[1] : 0; - let retv = node; - let containingLoopNode = node; - - while (containingLoopNode && containingLoopNode.range[0] >= border) { - retv = containingLoopNode; - containingLoopNode = getContainingLoopNode(containingLoopNode); - } - - return retv; - } - - /** - * Checks whether a given reference which refers to an upper scope's variable is - * safe or not. - * @param {ASTNode} loopNode A containing loop node. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is safe or not. - */ - function isSafe(loopNode, reference) { - const variable = reference.resolved; - const definition = variable && variable.defs[0]; - const declaration = definition && definition.parent; - const kind = (declaration && declaration.type === "VariableDeclaration") - ? declaration.kind - : ""; - - // Variables which are declared by `const` is safe. - if (kind === "const") { - return true; - } - - /* - * Variables which are declared by `let` in the loop is safe. - * It's a different instance from the next loop step's. - */ - if (kind === "let" && - declaration.range[0] > loopNode.range[0] && - declaration.range[1] < loopNode.range[1] - ) { - return true; - } - - /* - * WriteReferences which exist after this border are unsafe because those - * can modify the variable. - */ - const border = getTopLoopNode( - loopNode, - (kind === "let") ? declaration : null - ).range[0]; - - /** - * Checks whether a given reference is safe or not. - * The reference is every reference of the upper scope's variable we are - * looking now. - * - * It's safe if the reference matches one of the following condition. - * - is readonly. - * - doesn't exist inside a local function and after the border. - * @param {eslint-scope.Reference} upperRef A reference to check. - * @returns {boolean} `true` if the reference is safe. - */ - function isSafeReference(upperRef) { - const id = upperRef.identifier; - - return ( - !upperRef.isWrite() || - variable.scope.variableScope === upperRef.from.variableScope && - id.range[0] < border - ); - } - - return Boolean(variable) && variable.references.every(isSafeReference); - } - - /** - * Reports functions which match the following condition: - * - * - has a loop node in ancestors. - * - has any references which refers to an unsafe variable. - * @param {ASTNode} node The AST node to check. - * @returns {void} - */ - function checkForLoops(node) { - const loopNode = getContainingLoopNode(node); - - if (!loopNode) { - return; - } - - const references = sourceCode.getScope(node).through; - - // Check if the function is not asynchronous or a generator function - if (!(node.async || node.generator)) { - if (isIIFE(node)) { - - const isFunctionExpression = node.type === "FunctionExpression"; - - // Check if the function is referenced elsewhere in the code - const isFunctionReferenced = isFunctionExpression && node.id ? references.some(r => r.identifier.name === node.id.name) : false; - - if (!isFunctionReferenced) { - SKIPPED_IIFE_NODES.add(node); - return; - } - } - } - - const unsafeRefs = references.filter(r => r.resolved && !isSafe(loopNode, r)).map(r => r.identifier.name); - - if (unsafeRefs.length > 0) { - context.report({ - node, - messageId: "unsafeRefs", - data: { varNames: `'${unsafeRefs.join("', '")}'` } - }); - } - } - - return { - ArrowFunctionExpression: checkForLoops, - FunctionExpression: checkForLoops, - FunctionDeclaration: checkForLoops - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-loss-of-precision.js b/graphql/node_modules/eslint/lib/rules/no-loss-of-precision.js deleted file mode 100644 index c50d8a89..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-loss-of-precision.js +++ /dev/null @@ -1,214 +0,0 @@ -/** - * @fileoverview Rule to flag numbers that will lose significant figure precision at runtime - * @author Jacob Moore - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow literal numbers that lose precision", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-loss-of-precision" - }, - schema: [], - messages: { - noLossOfPrecision: "This number literal will lose precision at runtime." - } - }, - - create(context) { - - /** - * Returns whether the node is number literal - * @param {Node} node the node literal being evaluated - * @returns {boolean} true if the node is a number literal - */ - function isNumber(node) { - return typeof node.value === "number"; - } - - /** - * Gets the source code of the given number literal. Removes `_` numeric separators from the result. - * @param {Node} node the number `Literal` node - * @returns {string} raw source code of the literal, without numeric separators - */ - function getRaw(node) { - return node.raw.replace(/_/gu, ""); - } - - /** - * Checks whether the number is base ten - * @param {ASTNode} node the node being evaluated - * @returns {boolean} true if the node is in base ten - */ - function isBaseTen(node) { - const prefixes = ["0x", "0X", "0b", "0B", "0o", "0O"]; - - return prefixes.every(prefix => !node.raw.startsWith(prefix)) && - !/^0[0-7]+$/u.test(node.raw); - } - - /** - * Checks that the user-intended non-base ten number equals the actual number after is has been converted to the Number type - * @param {Node} node the node being evaluated - * @returns {boolean} true if they do not match - */ - function notBaseTenLosesPrecision(node) { - const rawString = getRaw(node).toUpperCase(); - let base; - - if (rawString.startsWith("0B")) { - base = 2; - } else if (rawString.startsWith("0X")) { - base = 16; - } else { - base = 8; - } - - return !rawString.endsWith(node.value.toString(base).toUpperCase()); - } - - /** - * Adds a decimal point to the numeric string at index 1 - * @param {string} stringNumber the numeric string without any decimal point - * @returns {string} the numeric string with a decimal point in the proper place - */ - function addDecimalPointToNumber(stringNumber) { - return `${stringNumber[0]}.${stringNumber.slice(1)}`; - } - - /** - * Returns the number stripped of leading zeros - * @param {string} numberAsString the string representation of the number - * @returns {string} the stripped string - */ - function removeLeadingZeros(numberAsString) { - for (let i = 0; i < numberAsString.length; i++) { - if (numberAsString[i] !== "0") { - return numberAsString.slice(i); - } - } - return numberAsString; - } - - /** - * Returns the number stripped of trailing zeros - * @param {string} numberAsString the string representation of the number - * @returns {string} the stripped string - */ - function removeTrailingZeros(numberAsString) { - for (let i = numberAsString.length - 1; i >= 0; i--) { - if (numberAsString[i] !== "0") { - return numberAsString.slice(0, i + 1); - } - } - return numberAsString; - } - - /** - * Converts an integer to an object containing the integer's coefficient and order of magnitude - * @param {string} stringInteger the string representation of the integer being converted - * @returns {Object} the object containing the integer's coefficient and order of magnitude - */ - function normalizeInteger(stringInteger) { - const significantDigits = removeTrailingZeros(removeLeadingZeros(stringInteger)); - - return { - magnitude: stringInteger.startsWith("0") ? stringInteger.length - 2 : stringInteger.length - 1, - coefficient: addDecimalPointToNumber(significantDigits) - }; - } - - /** - * - * Converts a float to an object containing the floats's coefficient and order of magnitude - * @param {string} stringFloat the string representation of the float being converted - * @returns {Object} the object containing the integer's coefficient and order of magnitude - */ - function normalizeFloat(stringFloat) { - const trimmedFloat = removeLeadingZeros(stringFloat); - - if (trimmedFloat.startsWith(".")) { - const decimalDigits = trimmedFloat.slice(1); - const significantDigits = removeLeadingZeros(decimalDigits); - - return { - magnitude: significantDigits.length - decimalDigits.length - 1, - coefficient: addDecimalPointToNumber(significantDigits) - }; - - } - return { - magnitude: trimmedFloat.indexOf(".") - 1, - coefficient: addDecimalPointToNumber(trimmedFloat.replace(".", "")) - - }; - } - - /** - * Converts a base ten number to proper scientific notation - * @param {string} stringNumber the string representation of the base ten number to be converted - * @returns {string} the number converted to scientific notation - */ - function convertNumberToScientificNotation(stringNumber) { - const splitNumber = stringNumber.replace("E", "e").split("e"); - const originalCoefficient = splitNumber[0]; - const normalizedNumber = stringNumber.includes(".") ? normalizeFloat(originalCoefficient) - : normalizeInteger(originalCoefficient); - const normalizedCoefficient = normalizedNumber.coefficient; - const magnitude = splitNumber.length > 1 ? (parseInt(splitNumber[1], 10) + normalizedNumber.magnitude) - : normalizedNumber.magnitude; - - return `${normalizedCoefficient}e${magnitude}`; - } - - /** - * Checks that the user-intended base ten number equals the actual number after is has been converted to the Number type - * @param {Node} node the node being evaluated - * @returns {boolean} true if they do not match - */ - function baseTenLosesPrecision(node) { - const normalizedRawNumber = convertNumberToScientificNotation(getRaw(node)); - const requestedPrecision = normalizedRawNumber.split("e")[0].replace(".", "").length; - - if (requestedPrecision > 100) { - return true; - } - const storedNumber = node.value.toPrecision(requestedPrecision); - const normalizedStoredNumber = convertNumberToScientificNotation(storedNumber); - - return normalizedRawNumber !== normalizedStoredNumber; - } - - - /** - * Checks that the user-intended number equals the actual number after is has been converted to the Number type - * @param {Node} node the node being evaluated - * @returns {boolean} true if they do not match - */ - function losesPrecision(node) { - return isBaseTen(node) ? baseTenLosesPrecision(node) : notBaseTenLosesPrecision(node); - } - - - return { - Literal(node) { - if (node.value && isNumber(node) && losesPrecision(node)) { - context.report({ - messageId: "noLossOfPrecision", - node - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-magic-numbers.js b/graphql/node_modules/eslint/lib/rules/no-magic-numbers.js deleted file mode 100644 index f48a62d8..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-magic-numbers.js +++ /dev/null @@ -1,243 +0,0 @@ -/** - * @fileoverview Rule to flag statements that use magic numbers (adapted from https://github.com/danielstjules/buddy.js) - * @author Vincent Lemeunier - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -// Maximum array length by the ECMAScript Specification. -const MAX_ARRAY_LENGTH = 2 ** 32 - 1; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** - * Convert the value to bigint if it's a string. Otherwise return the value as-is. - * @param {bigint|number|string} x The value to normalize. - * @returns {bigint|number} The normalized value. - */ -function normalizeIgnoreValue(x) { - if (typeof x === "string") { - return BigInt(x.slice(0, -1)); - } - return x; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow magic numbers", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-magic-numbers" - }, - - schema: [{ - type: "object", - properties: { - detectObjects: { - type: "boolean", - default: false - }, - enforceConst: { - type: "boolean", - default: false - }, - ignore: { - type: "array", - items: { - anyOf: [ - { type: "number" }, - { type: "string", pattern: "^[+-]?(?:0|[1-9][0-9]*)n$" } - ] - }, - uniqueItems: true - }, - ignoreArrayIndexes: { - type: "boolean", - default: false - }, - ignoreDefaultValues: { - type: "boolean", - default: false - }, - ignoreClassFieldInitialValues: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - useConst: "Number constants declarations must use 'const'.", - noMagic: "No magic number: {{raw}}." - } - }, - - create(context) { - const config = context.options[0] || {}, - detectObjects = !!config.detectObjects, - enforceConst = !!config.enforceConst, - ignore = new Set((config.ignore || []).map(normalizeIgnoreValue)), - ignoreArrayIndexes = !!config.ignoreArrayIndexes, - ignoreDefaultValues = !!config.ignoreDefaultValues, - ignoreClassFieldInitialValues = !!config.ignoreClassFieldInitialValues; - - const okTypes = detectObjects ? [] : ["ObjectExpression", "Property", "AssignmentExpression"]; - - /** - * Returns whether the rule is configured to ignore the given value - * @param {bigint|number} value The value to check - * @returns {boolean} true if the value is ignored - */ - function isIgnoredValue(value) { - return ignore.has(value); - } - - /** - * Returns whether the number is a default value assignment. - * @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node - * @returns {boolean} true if the number is a default value - */ - function isDefaultValue(fullNumberNode) { - const parent = fullNumberNode.parent; - - return parent.type === "AssignmentPattern" && parent.right === fullNumberNode; - } - - /** - * Returns whether the number is the initial value of a class field. - * @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node - * @returns {boolean} true if the number is the initial value of a class field. - */ - function isClassFieldInitialValue(fullNumberNode) { - const parent = fullNumberNode.parent; - - return parent.type === "PropertyDefinition" && parent.value === fullNumberNode; - } - - /** - * Returns whether the given node is used as a radix within parseInt() or Number.parseInt() - * @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node - * @returns {boolean} true if the node is radix - */ - function isParseIntRadix(fullNumberNode) { - const parent = fullNumberNode.parent; - - return parent.type === "CallExpression" && fullNumberNode === parent.arguments[1] && - ( - astUtils.isSpecificId(parent.callee, "parseInt") || - astUtils.isSpecificMemberAccess(parent.callee, "Number", "parseInt") - ); - } - - /** - * Returns whether the given node is a direct child of a JSX node. - * In particular, it aims to detect numbers used as prop values in JSX tags. - * Example: - * @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node - * @returns {boolean} true if the node is a JSX number - */ - function isJSXNumber(fullNumberNode) { - return fullNumberNode.parent.type.indexOf("JSX") === 0; - } - - /** - * Returns whether the given node is used as an array index. - * Value must coerce to a valid array index name: "0", "1", "2" ... "4294967294". - * - * All other values, like "-1", "2.5", or "4294967295", are just "normal" object properties, - * which can be created and accessed on an array in addition to the array index properties, - * but they don't affect array's length and are not considered by methods such as .map(), .forEach() etc. - * - * The maximum array length by the specification is 2 ** 32 - 1 = 4294967295, - * thus the maximum valid index is 2 ** 32 - 2 = 4294967294. - * - * All notations are allowed, as long as the value coerces to one of "0", "1", "2" ... "4294967294". - * - * Valid examples: - * a[0], a[1], a[1.2e1], a[0xAB], a[0n], a[1n] - * a[-0] (same as a[0] because -0 coerces to "0") - * a[-0n] (-0n evaluates to 0n) - * - * Invalid examples: - * a[-1], a[-0xAB], a[-1n], a[2.5], a[1.23e1], a[12e-1] - * a[4294967295] (above the max index, it's an access to a regular property a["4294967295"]) - * a[999999999999999999999] (even if it wasn't above the max index, it would be a["1e+21"]) - * a[1e310] (same as a["Infinity"]) - * @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node - * @param {bigint|number} value Value expressed by the fullNumberNode - * @returns {boolean} true if the node is a valid array index - */ - function isArrayIndex(fullNumberNode, value) { - const parent = fullNumberNode.parent; - - return parent.type === "MemberExpression" && parent.property === fullNumberNode && - (Number.isInteger(value) || typeof value === "bigint") && - value >= 0 && value < MAX_ARRAY_LENGTH; - } - - return { - Literal(node) { - if (!astUtils.isNumericLiteral(node)) { - return; - } - - let fullNumberNode; - let value; - let raw; - - // Treat unary minus as a part of the number - if (node.parent.type === "UnaryExpression" && node.parent.operator === "-") { - fullNumberNode = node.parent; - value = -node.value; - raw = `-${node.raw}`; - } else { - fullNumberNode = node; - value = node.value; - raw = node.raw; - } - - const parent = fullNumberNode.parent; - - // Always allow radix arguments and JSX props - if ( - isIgnoredValue(value) || - (ignoreDefaultValues && isDefaultValue(fullNumberNode)) || - (ignoreClassFieldInitialValues && isClassFieldInitialValue(fullNumberNode)) || - isParseIntRadix(fullNumberNode) || - isJSXNumber(fullNumberNode) || - (ignoreArrayIndexes && isArrayIndex(fullNumberNode, value)) - ) { - return; - } - - if (parent.type === "VariableDeclarator") { - if (enforceConst && parent.parent.kind !== "const") { - context.report({ - node: fullNumberNode, - messageId: "useConst" - }); - } - } else if ( - !okTypes.includes(parent.type) || - (parent.type === "AssignmentExpression" && parent.left.type === "Identifier") - ) { - context.report({ - node: fullNumberNode, - messageId: "noMagic", - data: { - raw - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-misleading-character-class.js b/graphql/node_modules/eslint/lib/rules/no-misleading-character-class.js deleted file mode 100644 index d10e0812..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-misleading-character-class.js +++ /dev/null @@ -1,537 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -const { - CALL, - CONSTRUCT, - ReferenceTracker, - getStaticValue, - getStringIfConstant -} = require("@eslint-community/eslint-utils"); -const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); -const { isCombiningCharacter, isEmojiModifier, isRegionalIndicatorSymbol, isSurrogatePair } = require("./utils/unicode"); -const astUtils = require("./utils/ast-utils.js"); -const { isValidWithUnicodeFlag } = require("./utils/regular-expressions"); -const { parseStringLiteral, parseTemplateToken } = require("./utils/char-source"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * @typedef {import('@eslint-community/regexpp').AST.Character} Character - * @typedef {import('@eslint-community/regexpp').AST.CharacterClassElement} CharacterClassElement - */ - -/** - * Iterate character sequences of a given nodes. - * - * CharacterClassRange syntax can steal a part of character sequence, - * so this function reverts CharacterClassRange syntax and restore the sequence. - * @param {CharacterClassElement[]} nodes The node list to iterate character sequences. - * @returns {IterableIterator} The list of character sequences. - */ -function *iterateCharacterSequence(nodes) { - - /** @type {Character[]} */ - let seq = []; - - for (const node of nodes) { - switch (node.type) { - case "Character": - seq.push(node); - break; - - case "CharacterClassRange": - seq.push(node.min); - yield seq; - seq = [node.max]; - break; - - case "CharacterSet": - case "CharacterClass": // [[]] nesting character class - case "ClassStringDisjunction": // \q{...} - case "ExpressionCharacterClass": // [A--B] - if (seq.length > 0) { - yield seq; - seq = []; - } - break; - - // no default - } - } - - if (seq.length > 0) { - yield seq; - } -} - -/** - * Checks whether the given character node is a Unicode code point escape or not. - * @param {Character} char the character node to check. - * @returns {boolean} `true` if the character node is a Unicode code point escape. - */ -function isUnicodeCodePointEscape(char) { - return /^\\u\{[\da-f]+\}$/iu.test(char.raw); -} - -/** - * Each function returns matched characters if it detects that kind of problem. - * @type {Record IterableIterator>} - */ -const findCharacterSequences = { - *surrogatePairWithoutUFlag(chars) { - for (const [index, char] of chars.entries()) { - const previous = chars[index - 1]; - - if ( - previous && char && - isSurrogatePair(previous.value, char.value) && - !isUnicodeCodePointEscape(previous) && - !isUnicodeCodePointEscape(char) - ) { - yield [previous, char]; - } - } - }, - - *surrogatePair(chars) { - for (const [index, char] of chars.entries()) { - const previous = chars[index - 1]; - - if ( - previous && char && - isSurrogatePair(previous.value, char.value) && - ( - isUnicodeCodePointEscape(previous) || - isUnicodeCodePointEscape(char) - ) - ) { - yield [previous, char]; - } - } - }, - - *combiningClass(chars, unfilteredChars) { - - /* - * When `allowEscape` is `true`, a combined character should only be allowed if the combining mark appears as an escape sequence. - * This means that the base character should be considered even if it's escaped. - */ - for (const [index, char] of chars.entries()) { - const previous = unfilteredChars[index - 1]; - - if ( - previous && char && - isCombiningCharacter(char.value) && - !isCombiningCharacter(previous.value) - ) { - yield [previous, char]; - } - } - }, - - *emojiModifier(chars) { - for (const [index, char] of chars.entries()) { - const previous = chars[index - 1]; - - if ( - previous && char && - isEmojiModifier(char.value) && - !isEmojiModifier(previous.value) - ) { - yield [previous, char]; - } - } - }, - - *regionalIndicatorSymbol(chars) { - for (const [index, char] of chars.entries()) { - const previous = chars[index - 1]; - - if ( - previous && char && - isRegionalIndicatorSymbol(char.value) && - isRegionalIndicatorSymbol(previous.value) - ) { - yield [previous, char]; - } - } - }, - - *zwj(chars) { - let sequence = null; - - for (const [index, char] of chars.entries()) { - const previous = chars[index - 1]; - const next = chars[index + 1]; - - if ( - previous && char && next && - char.value === 0x200d && - previous.value !== 0x200d && - next.value !== 0x200d - ) { - if (sequence) { - if (sequence.at(-1) === previous) { - sequence.push(char, next); // append to the sequence - } else { - yield sequence; - sequence = chars.slice(index - 1, index + 2); - } - } else { - sequence = chars.slice(index - 1, index + 2); - } - } - } - - if (sequence) { - yield sequence; - } - } -}; - -const kinds = Object.keys(findCharacterSequences); - -/** - * Gets the value of the given node if it's a static value other than a regular expression object, - * or the node's `regex` property. - * The purpose of this method is to provide a replacement for `getStaticValue` in environments where certain regular expressions cannot be evaluated. - * A known example is Node.js 18 which does not support the `v` flag. - * Calling `getStaticValue` on a regular expression node with the `v` flag on Node.js 18 always returns `null`. - * A limitation of this method is that it can only detect a regular expression if the specified node is itself a regular expression literal node. - * @param {ASTNode | undefined} node The node to be inspected. - * @param {Scope} initialScope Scope to start finding variables. This function tries to resolve identifier references which are in the given scope. - * @returns {{ value: any } | { regex: { pattern: string, flags: string } } | null} The static value of the node, or `null`. - */ -function getStaticValueOrRegex(node, initialScope) { - if (!node) { - return null; - } - if (node.type === "Literal" && node.regex) { - return { regex: node.regex }; - } - - const staticValue = getStaticValue(node, initialScope); - - if (staticValue?.value instanceof RegExp) { - return null; - } - return staticValue; -} - -/** - * Checks whether a specified regexpp character is represented as an acceptable escape sequence. - * This function requires the source text of the character to be known. - * @param {Character} char Character to check. - * @param {string} charSource Source text of the character to check. - * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. - */ -function checkForAcceptableEscape(char, charSource) { - if (!charSource.startsWith("\\")) { - return false; - } - const match = /(?<=^\\+).$/su.exec(charSource); - - return match?.[0] !== String.fromCodePoint(char.value); -} - -/** - * Checks whether a specified regexpp character is represented as an acceptable escape sequence. - * This function works with characters that are produced by a string or template literal. - * It requires the source text and the CodeUnit list of the literal to be known. - * @param {Character} char Character to check. - * @param {string} nodeSource Source text of the string or template literal that produces the character. - * @param {CodeUnit[]} codeUnits List of CodeUnit objects of the literal that produces the character. - * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. - */ -function checkForAcceptableEscapeInString(char, nodeSource, codeUnits) { - const firstIndex = char.start; - const lastIndex = char.end - 1; - const start = codeUnits[firstIndex].start; - const end = codeUnits[lastIndex].end; - const charSource = nodeSource.slice(start, end); - - return checkForAcceptableEscape(char, charSource); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow characters which are made with multiple code points in character class syntax", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-misleading-character-class" - }, - - hasSuggestions: true, - - schema: [ - { - type: "object", - properties: { - allowEscape: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - surrogatePairWithoutUFlag: "Unexpected surrogate pair in character class. Use 'u' flag.", - surrogatePair: "Unexpected surrogate pair in character class.", - combiningClass: "Unexpected combined character in character class.", - emojiModifier: "Unexpected modified Emoji in character class.", - regionalIndicatorSymbol: "Unexpected national flag in character class.", - zwj: "Unexpected joined character sequence in character class.", - suggestUnicodeFlag: "Add unicode 'u' flag to regex." - } - }, - create(context) { - const allowEscape = context.options[0]?.allowEscape; - const sourceCode = context.sourceCode; - const parser = new RegExpParser(); - const checkedPatternNodes = new Set(); - - /** - * Verify a given regular expression. - * @param {Node} node The node to report. - * @param {string} pattern The regular expression pattern to verify. - * @param {string} flags The flags of the regular expression. - * @param {Function} unicodeFixer Fixer for missing "u" flag. - * @returns {void} - */ - function verify(node, pattern, flags, unicodeFixer) { - let patternNode; - - try { - patternNode = parser.parsePattern( - pattern, - 0, - pattern.length, - { - unicode: flags.includes("u"), - unicodeSets: flags.includes("v") - } - ); - } catch { - - // Ignore regular expressions with syntax errors - return; - } - - let codeUnits = null; - - /** - * Checks whether a specified regexpp character is represented as an acceptable escape sequence. - * For the purposes of this rule, an escape sequence is considered acceptable if it consists of one or more backslashes followed by the character being escaped. - * @param {Character} char Character to check. - * @returns {boolean} Whether the specified regexpp character is represented as an acceptable escape sequence. - */ - function isAcceptableEscapeSequence(char) { - if (node.type === "Literal" && node.regex) { - return checkForAcceptableEscape(char, char.raw); - } - if (node.type === "Literal" && typeof node.value === "string") { - const nodeSource = node.raw; - - codeUnits ??= parseStringLiteral(nodeSource); - - return checkForAcceptableEscapeInString(char, nodeSource, codeUnits); - } - if (astUtils.isStaticTemplateLiteral(node)) { - const nodeSource = sourceCode.getText(node); - - codeUnits ??= parseTemplateToken(nodeSource); - - return checkForAcceptableEscapeInString(char, nodeSource, codeUnits); - } - return false; - } - - const foundKindMatches = new Map(); - - visitRegExpAST(patternNode, { - onCharacterClassEnter(ccNode) { - for (const unfilteredChars of iterateCharacterSequence(ccNode.elements)) { - let chars; - - if (allowEscape) { - - // Replace escape sequences with null to avoid having them flagged. - chars = unfilteredChars.map(char => (isAcceptableEscapeSequence(char) ? null : char)); - } else { - chars = unfilteredChars; - } - for (const kind of kinds) { - const matches = findCharacterSequences[kind](chars, unfilteredChars); - - if (foundKindMatches.has(kind)) { - foundKindMatches.get(kind).push(...matches); - } else { - foundKindMatches.set(kind, [...matches]); - } - } - } - } - }); - - /** - * Finds the report loc(s) for a range of matches. - * Only literals and expression-less templates generate granular errors. - * @param {Character[][]} matches Lists of individual characters being reported on. - * @returns {Location[]} locs for context.report. - * @see https://github.com/eslint/eslint/pull/17515 - */ - function getNodeReportLocations(matches) { - if (!astUtils.isStaticTemplateLiteral(node) && node.type !== "Literal") { - return matches.length ? [node.loc] : []; - } - return matches.map(chars => { - const firstIndex = chars[0].start; - const lastIndex = chars.at(-1).end - 1; - let start; - let end; - - if (node.type === "TemplateLiteral") { - const source = sourceCode.getText(node); - const offset = node.range[0]; - - codeUnits ??= parseTemplateToken(source); - start = offset + codeUnits[firstIndex].start; - end = offset + codeUnits[lastIndex].end; - } else if (typeof node.value === "string") { // String Literal - const source = node.raw; - const offset = node.range[0]; - - codeUnits ??= parseStringLiteral(source); - start = offset + codeUnits[firstIndex].start; - end = offset + codeUnits[lastIndex].end; - } else { // RegExp Literal - const offset = node.range[0] + 1; // Add 1 to skip the leading slash. - - start = offset + firstIndex; - end = offset + lastIndex + 1; - } - - return { - start: sourceCode.getLocFromIndex(start), - end: sourceCode.getLocFromIndex(end) - }; - }); - } - - for (const [kind, matches] of foundKindMatches) { - let suggest; - - if (kind === "surrogatePairWithoutUFlag") { - suggest = [{ - messageId: "suggestUnicodeFlag", - fix: unicodeFixer - }]; - } - - const locs = getNodeReportLocations(matches); - - for (const loc of locs) { - context.report({ - node, - loc, - messageId: kind, - suggest - }); - } - } - } - - return { - "Literal[regex]"(node) { - if (checkedPatternNodes.has(node)) { - return; - } - verify(node, node.regex.pattern, node.regex.flags, fixer => { - if (!isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, node.regex.pattern)) { - return null; - } - - return fixer.insertTextAfter(node, "u"); - }); - }, - "Program"(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - - /* - * Iterate calls of RegExp. - * E.g., `new RegExp()`, `RegExp()`, `new window.RegExp()`, - * `const {RegExp: a} = window; new a()`, etc... - */ - for (const { node: refNode } of tracker.iterateGlobalReferences({ - RegExp: { [CALL]: true, [CONSTRUCT]: true } - })) { - let pattern, flags; - const [patternNode, flagsNode] = refNode.arguments; - const evaluatedPattern = getStaticValueOrRegex(patternNode, scope); - - if (!evaluatedPattern) { - continue; - } - if (flagsNode) { - if (evaluatedPattern.regex) { - pattern = evaluatedPattern.regex.pattern; - checkedPatternNodes.add(patternNode); - } else { - pattern = String(evaluatedPattern.value); - } - flags = getStringIfConstant(flagsNode, scope); - } else { - if (evaluatedPattern.regex) { - continue; - } - pattern = String(evaluatedPattern.value); - flags = ""; - } - - if (typeof flags === "string") { - verify(patternNode, pattern, flags, fixer => { - - if (!isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, pattern)) { - return null; - } - - if (refNode.arguments.length === 1) { - const penultimateToken = sourceCode.getLastToken(refNode, { skip: 1 }); // skip closing parenthesis - - return fixer.insertTextAfter( - penultimateToken, - astUtils.isCommaToken(penultimateToken) - ? ' "u",' - : ', "u"' - ); - } - - if ((flagsNode.type === "Literal" && typeof flagsNode.value === "string") || flagsNode.type === "TemplateLiteral") { - const range = [flagsNode.range[0], flagsNode.range[1] - 1]; - - return fixer.insertTextAfterRange(range, "u"); - } - - return null; - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-mixed-operators.js b/graphql/node_modules/eslint/lib/rules/no-mixed-operators.js deleted file mode 100644 index 6b6f7364..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-mixed-operators.js +++ /dev/null @@ -1,229 +0,0 @@ -/** - * @fileoverview Rule to disallow mixed binary operators. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils.js"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const ARITHMETIC_OPERATORS = ["+", "-", "*", "/", "%", "**"]; -const BITWISE_OPERATORS = ["&", "|", "^", "~", "<<", ">>", ">>>"]; -const COMPARISON_OPERATORS = ["==", "!=", "===", "!==", ">", ">=", "<", "<="]; -const LOGICAL_OPERATORS = ["&&", "||"]; -const RELATIONAL_OPERATORS = ["in", "instanceof"]; -const TERNARY_OPERATOR = ["?:"]; -const COALESCE_OPERATOR = ["??"]; -const ALL_OPERATORS = [].concat( - ARITHMETIC_OPERATORS, - BITWISE_OPERATORS, - COMPARISON_OPERATORS, - LOGICAL_OPERATORS, - RELATIONAL_OPERATORS, - TERNARY_OPERATOR, - COALESCE_OPERATOR -); -const DEFAULT_GROUPS = [ - ARITHMETIC_OPERATORS, - BITWISE_OPERATORS, - COMPARISON_OPERATORS, - LOGICAL_OPERATORS, - RELATIONAL_OPERATORS -]; -const TARGET_NODE_TYPE = /^(?:Binary|Logical|Conditional)Expression$/u; - -/** - * Normalizes options. - * @param {Object|undefined} options A options object to normalize. - * @returns {Object} Normalized option object. - */ -function normalizeOptions(options = {}) { - const hasGroups = options.groups && options.groups.length > 0; - const groups = hasGroups ? options.groups : DEFAULT_GROUPS; - const allowSamePrecedence = options.allowSamePrecedence !== false; - - return { - groups, - allowSamePrecedence - }; -} - -/** - * Checks whether any group which includes both given operator exists or not. - * @param {Array} groups A list of groups to check. - * @param {string} left An operator. - * @param {string} right Another operator. - * @returns {boolean} `true` if such group existed. - */ -function includesBothInAGroup(groups, left, right) { - return groups.some(group => group.includes(left) && group.includes(right)); -} - -/** - * Checks whether the given node is a conditional expression and returns the test node else the left node. - * @param {ASTNode} node A node which can be a BinaryExpression or a LogicalExpression node. - * This parent node can be BinaryExpression, LogicalExpression - * , or a ConditionalExpression node - * @returns {ASTNode} node the appropriate node(left or test). - */ -function getChildNode(node) { - return node.type === "ConditionalExpression" ? node.test : node.left; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Disallow mixed binary operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-mixed-operators" - }, - - schema: [ - { - type: "object", - properties: { - groups: { - type: "array", - items: { - type: "array", - items: { enum: ALL_OPERATORS }, - minItems: 2, - uniqueItems: true - }, - uniqueItems: true - }, - allowSamePrecedence: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedMixedOperator: "Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = normalizeOptions(context.options[0]); - - /** - * Checks whether a given node should be ignored by options or not. - * @param {ASTNode} node A node to check. This is a BinaryExpression - * node or a LogicalExpression node. This parent node is one of - * them, too. - * @returns {boolean} `true` if the node should be ignored. - */ - function shouldIgnore(node) { - const a = node; - const b = node.parent; - - return ( - !includesBothInAGroup(options.groups, a.operator, b.type === "ConditionalExpression" ? "?:" : b.operator) || - ( - options.allowSamePrecedence && - astUtils.getPrecedence(a) === astUtils.getPrecedence(b) - ) - ); - } - - /** - * Checks whether the operator of a given node is mixed with parent - * node's operator or not. - * @param {ASTNode} node A node to check. This is a BinaryExpression - * node or a LogicalExpression node. This parent node is one of - * them, too. - * @returns {boolean} `true` if the node was mixed. - */ - function isMixedWithParent(node) { - - return ( - node.operator !== node.parent.operator && - !astUtils.isParenthesised(sourceCode, node) - ); - } - - /** - * Gets the operator token of a given node. - * @param {ASTNode} node A node to check. This is a BinaryExpression - * node or a LogicalExpression node. - * @returns {Token} The operator token of the node. - */ - function getOperatorToken(node) { - return sourceCode.getTokenAfter(getChildNode(node), astUtils.isNotClosingParenToken); - } - - /** - * Reports both the operator of a given node and the operator of the - * parent node. - * @param {ASTNode} node A node to check. This is a BinaryExpression - * node or a LogicalExpression node. This parent node is one of - * them, too. - * @returns {void} - */ - function reportBothOperators(node) { - const parent = node.parent; - const left = (getChildNode(parent) === node) ? node : parent; - const right = (getChildNode(parent) !== node) ? node : parent; - const data = { - leftOperator: left.operator || "?:", - rightOperator: right.operator || "?:" - }; - - context.report({ - node: left, - loc: getOperatorToken(left).loc, - messageId: "unexpectedMixedOperator", - data - }); - context.report({ - node: right, - loc: getOperatorToken(right).loc, - messageId: "unexpectedMixedOperator", - data - }); - } - - /** - * Checks between the operator of this node and the operator of the - * parent node. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function check(node) { - if ( - TARGET_NODE_TYPE.test(node.parent.type) && - isMixedWithParent(node) && - !shouldIgnore(node) - ) { - reportBothOperators(node); - } - } - - return { - BinaryExpression: check, - LogicalExpression: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-mixed-requires.js b/graphql/node_modules/eslint/lib/rules/no-mixed-requires.js deleted file mode 100644 index 9e7b8039..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-mixed-requires.js +++ /dev/null @@ -1,238 +0,0 @@ -/** - * @fileoverview Rule to enforce grouped require statements for Node.JS - * @author Raphael Pigulla - * @deprecated in ESLint v7.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow `require` calls to be mixed with regular variable declarations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-mixed-requires" - }, - - schema: [ - { - oneOf: [ - { - type: "boolean" - }, - { - type: "object", - properties: { - grouping: { - type: "boolean" - }, - allowCall: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - noMixRequire: "Do not mix 'require' and other declarations.", - noMixCoreModuleFileComputed: "Do not mix core, module, file and computed requires." - } - }, - - create(context) { - - const options = context.options[0]; - let grouping = false, - allowCall = false; - - if (typeof options === "object") { - grouping = options.grouping; - allowCall = options.allowCall; - } else { - grouping = !!options; - } - - /** - * Returns the list of built-in modules. - * @returns {string[]} An array of built-in Node.js modules. - */ - function getBuiltinModules() { - - /* - * This list is generated using: - * `require("repl")._builtinLibs.concat('repl').sort()` - * This particular list is as per nodejs v0.12.2 and iojs v0.7.1 - */ - return [ - "assert", "buffer", "child_process", "cluster", "crypto", - "dgram", "dns", "domain", "events", "fs", "http", "https", - "net", "os", "path", "punycode", "querystring", "readline", - "repl", "smalloc", "stream", "string_decoder", "tls", "tty", - "url", "util", "v8", "vm", "zlib" - ]; - } - - const BUILTIN_MODULES = getBuiltinModules(); - - const DECL_REQUIRE = "require", - DECL_UNINITIALIZED = "uninitialized", - DECL_OTHER = "other"; - - const REQ_CORE = "core", - REQ_FILE = "file", - REQ_MODULE = "module", - REQ_COMPUTED = "computed"; - - /** - * Determines the type of a declaration statement. - * @param {ASTNode} initExpression The init node of the VariableDeclarator. - * @returns {string} The type of declaration represented by the expression. - */ - function getDeclarationType(initExpression) { - if (!initExpression) { - - // "var x;" - return DECL_UNINITIALIZED; - } - - if (initExpression.type === "CallExpression" && - initExpression.callee.type === "Identifier" && - initExpression.callee.name === "require" - ) { - - // "var x = require('util');" - return DECL_REQUIRE; - } - if (allowCall && - initExpression.type === "CallExpression" && - initExpression.callee.type === "CallExpression" - ) { - - // "var x = require('diagnose')('sub-module');" - return getDeclarationType(initExpression.callee); - } - if (initExpression.type === "MemberExpression") { - - // "var x = require('glob').Glob;" - return getDeclarationType(initExpression.object); - } - - // "var x = 42;" - return DECL_OTHER; - } - - /** - * Determines the type of module that is loaded via require. - * @param {ASTNode} initExpression The init node of the VariableDeclarator. - * @returns {string} The module type. - */ - function inferModuleType(initExpression) { - if (initExpression.type === "MemberExpression") { - - // "var x = require('glob').Glob;" - return inferModuleType(initExpression.object); - } - if (initExpression.arguments.length === 0) { - - // "var x = require();" - return REQ_COMPUTED; - } - - const arg = initExpression.arguments[0]; - - if (arg.type !== "Literal" || typeof arg.value !== "string") { - - // "var x = require(42);" - return REQ_COMPUTED; - } - - if (BUILTIN_MODULES.includes(arg.value)) { - - // "var fs = require('fs');" - return REQ_CORE; - } - if (/^\.{0,2}\//u.test(arg.value)) { - - // "var utils = require('./utils');" - return REQ_FILE; - } - - // "var async = require('async');" - return REQ_MODULE; - - } - - /** - * Check if the list of variable declarations is mixed, i.e. whether it - * contains both require and other declarations. - * @param {ASTNode} declarations The list of VariableDeclarators. - * @returns {boolean} True if the declarations are mixed, false if not. - */ - function isMixed(declarations) { - const contains = {}; - - declarations.forEach(declaration => { - const type = getDeclarationType(declaration.init); - - contains[type] = true; - }); - - return !!( - contains[DECL_REQUIRE] && - (contains[DECL_UNINITIALIZED] || contains[DECL_OTHER]) - ); - } - - /** - * Check if all require declarations in the given list are of the same - * type. - * @param {ASTNode} declarations The list of VariableDeclarators. - * @returns {boolean} True if the declarations are grouped, false if not. - */ - function isGrouped(declarations) { - const found = {}; - - declarations.forEach(declaration => { - if (getDeclarationType(declaration.init) === DECL_REQUIRE) { - found[inferModuleType(declaration.init)] = true; - } - }); - - return Object.keys(found).length <= 1; - } - - - return { - - VariableDeclaration(node) { - - if (isMixed(node.declarations)) { - context.report({ - node, - messageId: "noMixRequire" - }); - } else if (grouping && !isGrouped(node.declarations)) { - context.report({ - node, - messageId: "noMixCoreModuleFileComputed" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js b/graphql/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js deleted file mode 100644 index 18e6114a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @fileoverview Disallow mixed spaces and tabs for indentation - * @author Jary Niebur - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow mixed spaces and tabs for indentation", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs" - }, - - schema: [ - { - enum: ["smart-tabs", true, false] - } - ], - - messages: { - mixedSpacesAndTabs: "Mixed spaces and tabs." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - let smartTabs; - - switch (context.options[0]) { - case true: // Support old syntax, maybe add deprecation warning here - case "smart-tabs": - smartTabs = true; - break; - default: - smartTabs = false; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - "Program:exit"(node) { - const lines = sourceCode.lines, - comments = sourceCode.getAllComments(), - ignoredCommentLines = new Set(); - - // Add all lines except the first ones. - comments.forEach(comment => { - for (let i = comment.loc.start.line + 1; i <= comment.loc.end.line; i++) { - ignoredCommentLines.add(i); - } - }); - - /* - * At least one space followed by a tab - * or the reverse before non-tab/-space - * characters begin. - */ - let regex = /^(?=( +|\t+))\1(?:\t| )/u; - - if (smartTabs) { - - /* - * At least one space followed by a tab - * before non-tab/-space characters begin. - */ - regex = /^(?=(\t*))\1(?=( +))\2\t/u; - } - - lines.forEach((line, i) => { - const match = regex.exec(line); - - if (match) { - const lineNumber = i + 1; - const loc = { - start: { - line: lineNumber, - column: match[0].length - 2 - }, - end: { - line: lineNumber, - column: match[0].length - } - }; - - if (!ignoredCommentLines.has(lineNumber)) { - const containingNode = sourceCode.getNodeByRangeIndex(sourceCode.getIndexFromLoc(loc.start)); - - if (!(containingNode && ["Literal", "TemplateElement"].includes(containingNode.type))) { - context.report({ - node, - loc, - messageId: "mixedSpacesAndTabs" - }); - } - } - } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-multi-assign.js b/graphql/node_modules/eslint/lib/rules/no-multi-assign.js deleted file mode 100644 index a7a50c19..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-multi-assign.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @fileoverview Rule to check use of chained assignment expressions - * @author Stewart Rand - */ - -"use strict"; - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow use of chained assignment expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-multi-assign" - }, - - schema: [{ - type: "object", - properties: { - ignoreNonDeclaration: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - unexpectedChain: "Unexpected chained assignment." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - const options = context.options[0] || { - ignoreNonDeclaration: false - }; - const selectors = [ - "VariableDeclarator > AssignmentExpression.init", - "PropertyDefinition > AssignmentExpression.value" - ]; - - if (!options.ignoreNonDeclaration) { - selectors.push("AssignmentExpression > AssignmentExpression.right"); - } - - return { - [selectors](node) { - context.report({ - node, - messageId: "unexpectedChain" - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-multi-spaces.js b/graphql/node_modules/eslint/lib/rules/no-multi-spaces.js deleted file mode 100644 index bc90ee5b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-multi-spaces.js +++ /dev/null @@ -1,141 +0,0 @@ -/** - * @fileoverview Disallow use of multiple spaces. - * @author Nicholas C. Zakas - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow multiple spaces", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-multi-spaces" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - exceptions: { - type: "object", - patternProperties: { - "^([A-Z][a-z]*)+$": { - type: "boolean" - } - }, - additionalProperties: false - }, - ignoreEOLComments: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - multipleSpaces: "Multiple spaces found before '{{displayValue}}'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = context.options[0] || {}; - const ignoreEOLComments = options.ignoreEOLComments; - const exceptions = Object.assign({ Property: true }, options.exceptions); - const hasExceptions = Object.keys(exceptions).some(key => exceptions[key]); - - /** - * Formats value of given comment token for error message by truncating its length. - * @param {Token} token comment token - * @returns {string} formatted value - * @private - */ - function formatReportedCommentValue(token) { - const valueLines = token.value.split("\n"); - const value = valueLines[0]; - const formattedValue = `${value.slice(0, 12)}...`; - - return valueLines.length === 1 && value.length <= 12 ? value : formattedValue; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program() { - sourceCode.tokensAndComments.forEach((leftToken, leftIndex, tokensAndComments) => { - if (leftIndex === tokensAndComments.length - 1) { - return; - } - const rightToken = tokensAndComments[leftIndex + 1]; - - // Ignore tokens that don't have 2 spaces between them or are on different lines - if ( - !sourceCode.text.slice(leftToken.range[1], rightToken.range[0]).includes(" ") || - leftToken.loc.end.line < rightToken.loc.start.line - ) { - return; - } - - // Ignore comments that are the last token on their line if `ignoreEOLComments` is active. - if ( - ignoreEOLComments && - astUtils.isCommentToken(rightToken) && - ( - leftIndex === tokensAndComments.length - 2 || - rightToken.loc.end.line < tokensAndComments[leftIndex + 2].loc.start.line - ) - ) { - return; - } - - // Ignore tokens that are in a node in the "exceptions" object - if (hasExceptions) { - const parentNode = sourceCode.getNodeByRangeIndex(rightToken.range[0] - 1); - - if (parentNode && exceptions[parentNode.type]) { - return; - } - } - - let displayValue; - - if (rightToken.type === "Block") { - displayValue = `/*${formatReportedCommentValue(rightToken)}*/`; - } else if (rightToken.type === "Line") { - displayValue = `//${formatReportedCommentValue(rightToken)}`; - } else { - displayValue = rightToken.value; - } - - context.report({ - node: rightToken, - loc: { start: leftToken.loc.end, end: rightToken.loc.start }, - messageId: "multipleSpaces", - data: { displayValue }, - fix: fixer => fixer.replaceTextRange([leftToken.range[1], rightToken.range[0]], " ") - }); - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-multi-str.js b/graphql/node_modules/eslint/lib/rules/no-multi-str.js deleted file mode 100644 index 8011729e..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-multi-str.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @fileoverview Rule to flag when using multiline strings - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow multiline strings", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-multi-str" - }, - - schema: [], - - messages: { - multilineString: "Multiline support is limited to browsers supporting ES5 only." - } - }, - - create(context) { - - /** - * Determines if a given node is part of JSX syntax. - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node is a JSX node, false if not. - * @private - */ - function isJSXElement(node) { - return node.type.indexOf("JSX") === 0; - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - Literal(node) { - if (astUtils.LINEBREAK_MATCHER.test(node.raw) && !isJSXElement(node.parent)) { - context.report({ - node, - messageId: "multilineString" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-multiple-empty-lines.js b/graphql/node_modules/eslint/lib/rules/no-multiple-empty-lines.js deleted file mode 100644 index b597138e..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-multiple-empty-lines.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @fileoverview Disallows multiple blank lines. - * implementation adapted from the no-trailing-spaces rule. - * @author Greg Cochard - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow multiple empty lines", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-multiple-empty-lines" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - max: { - type: "integer", - minimum: 0 - }, - maxEOF: { - type: "integer", - minimum: 0 - }, - maxBOF: { - type: "integer", - minimum: 0 - } - }, - required: ["max"], - additionalProperties: false - } - ], - - messages: { - blankBeginningOfFile: "Too many blank lines at the beginning of file. Max of {{max}} allowed.", - blankEndOfFile: "Too many blank lines at the end of file. Max of {{max}} allowed.", - consecutiveBlank: "More than {{max}} blank {{pluralizedLines}} not allowed." - } - }, - - create(context) { - - // Use options.max or 2 as default - let max = 2, - maxEOF = max, - maxBOF = max; - - if (context.options.length) { - max = context.options[0].max; - maxEOF = typeof context.options[0].maxEOF !== "undefined" ? context.options[0].maxEOF : max; - maxBOF = typeof context.options[0].maxBOF !== "undefined" ? context.options[0].maxBOF : max; - } - - const sourceCode = context.sourceCode; - - // Swallow the final newline, as some editors add it automatically and we don't want it to cause an issue - const allLines = sourceCode.lines.at(-1) === "" ? sourceCode.lines.slice(0, -1) : sourceCode.lines; - const templateLiteralLines = new Set(); - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - TemplateLiteral(node) { - node.quasis.forEach(literalPart => { - - // Empty lines have a semantic meaning if they're inside template literals. Don't count these as empty lines. - for (let ignoredLine = literalPart.loc.start.line; ignoredLine < literalPart.loc.end.line; ignoredLine++) { - templateLiteralLines.add(ignoredLine); - } - }); - }, - "Program:exit"(node) { - return allLines - - // Given a list of lines, first get a list of line numbers that are non-empty. - .reduce((nonEmptyLineNumbers, line, index) => { - if (line.trim() || templateLiteralLines.has(index + 1)) { - nonEmptyLineNumbers.push(index + 1); - } - return nonEmptyLineNumbers; - }, []) - - // Add a value at the end to allow trailing empty lines to be checked. - .concat(allLines.length + 1) - - // Given two line numbers of non-empty lines, report the lines between if the difference is too large. - .reduce((lastLineNumber, lineNumber) => { - let messageId, maxAllowed; - - if (lastLineNumber === 0) { - messageId = "blankBeginningOfFile"; - maxAllowed = maxBOF; - } else if (lineNumber === allLines.length + 1) { - messageId = "blankEndOfFile"; - maxAllowed = maxEOF; - } else { - messageId = "consecutiveBlank"; - maxAllowed = max; - } - - if (lineNumber - lastLineNumber - 1 > maxAllowed) { - context.report({ - node, - loc: { - start: { line: lastLineNumber + maxAllowed + 1, column: 0 }, - end: { line: lineNumber, column: 0 } - }, - messageId, - data: { - max: maxAllowed, - pluralizedLines: maxAllowed === 1 ? "line" : "lines" - }, - fix(fixer) { - const rangeStart = sourceCode.getIndexFromLoc({ line: lastLineNumber + 1, column: 0 }); - - /* - * The end of the removal range is usually the start index of the next line. - * However, at the end of the file there is no next line, so the end of the - * range is just the length of the text. - */ - const lineNumberAfterRemovedLines = lineNumber - maxAllowed; - const rangeEnd = lineNumberAfterRemovedLines <= allLines.length - ? sourceCode.getIndexFromLoc({ line: lineNumberAfterRemovedLines, column: 0 }) - : sourceCode.text.length; - - return fixer.removeRange([rangeStart, rangeEnd]); - } - }); - } - - return lineNumber; - }, 0); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-native-reassign.js b/graphql/node_modules/eslint/lib/rules/no-native-reassign.js deleted file mode 100644 index e3fed445..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-native-reassign.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @fileoverview Rule to disallow assignments to native objects or read-only global variables - * @author Ilya Volodin - * @deprecated in ESLint v3.3.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow assignments to native objects or read-only global variables", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-native-reassign" - }, - - deprecated: true, - - replacedBy: ["no-global-assign"], - - schema: [ - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { type: "string" }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - nativeReassign: "Read-only global '{{name}}' should not be modified." - } - }, - - create(context) { - const config = context.options[0]; - const exceptions = (config && config.exceptions) || []; - const sourceCode = context.sourceCode; - - /** - * Reports write references. - * @param {Reference} reference A reference to check. - * @param {int} index The index of the reference in the references. - * @param {Reference[]} references The array that the reference belongs to. - * @returns {void} - */ - function checkReference(reference, index, references) { - const identifier = reference.identifier; - - if (reference.init === false && - reference.isWrite() && - - /* - * Destructuring assignments can have multiple default value, - * so possibly there are multiple writeable references for the same identifier. - */ - (index === 0 || references[index - 1].identifier !== identifier) - ) { - context.report({ - node: identifier, - messageId: "nativeReassign", - data: identifier - }); - } - } - - /** - * Reports write references if a given variable is read-only builtin. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - if (variable.writeable === false && !exceptions.includes(variable.name)) { - variable.references.forEach(checkReference); - } - } - - return { - Program(node) { - const globalScope = sourceCode.getScope(node); - - globalScope.variables.forEach(checkVariable); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-negated-condition.js b/graphql/node_modules/eslint/lib/rules/no-negated-condition.js deleted file mode 100644 index 3cb75904..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-negated-condition.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @fileoverview Rule to disallow a negated condition - * @author Alberto Rodríguez - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow negated conditions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-negated-condition" - }, - - schema: [], - - messages: { - unexpectedNegated: "Unexpected negated condition." - } - }, - - create(context) { - - /** - * Determines if a given node is an if-else without a condition on the else - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node has an else without an if. - * @private - */ - function hasElseWithoutCondition(node) { - return node.alternate && node.alternate.type !== "IfStatement"; - } - - /** - * Determines if a given node is a negated unary expression - * @param {Object} test The test object to check. - * @returns {boolean} True if the node is a negated unary expression. - * @private - */ - function isNegatedUnaryExpression(test) { - return test.type === "UnaryExpression" && test.operator === "!"; - } - - /** - * Determines if a given node is a negated binary expression - * @param {Test} test The test to check. - * @returns {boolean} True if the node is a negated binary expression. - * @private - */ - function isNegatedBinaryExpression(test) { - return test.type === "BinaryExpression" && - (test.operator === "!=" || test.operator === "!=="); - } - - /** - * Determines if a given node has a negated if expression - * @param {ASTNode} node The node to check. - * @returns {boolean} True if the node has a negated if expression. - * @private - */ - function isNegatedIf(node) { - return isNegatedUnaryExpression(node.test) || isNegatedBinaryExpression(node.test); - } - - return { - IfStatement(node) { - if (!hasElseWithoutCondition(node)) { - return; - } - - if (isNegatedIf(node)) { - context.report({ - node, - messageId: "unexpectedNegated" - }); - } - }, - ConditionalExpression(node) { - if (isNegatedIf(node)) { - context.report({ - node, - messageId: "unexpectedNegated" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-negated-in-lhs.js b/graphql/node_modules/eslint/lib/rules/no-negated-in-lhs.js deleted file mode 100644 index 7a50be7f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-negated-in-lhs.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview A rule to disallow negated left operands of the `in` operator - * @author Michael Ficarra - * @deprecated in ESLint v3.3.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow negating the left operand in `in` expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-negated-in-lhs" - }, - - replacedBy: ["no-unsafe-negation"], - - deprecated: true, - schema: [], - - messages: { - negatedLHS: "The 'in' expression's left operand is negated." - } - }, - - create(context) { - - return { - - BinaryExpression(node) { - if (node.operator === "in" && node.left.type === "UnaryExpression" && node.left.operator === "!") { - context.report({ node, messageId: "negatedLHS" }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-nested-ternary.js b/graphql/node_modules/eslint/lib/rules/no-nested-ternary.js deleted file mode 100644 index faf80416..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-nested-ternary.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @fileoverview Rule to flag nested ternary expressions - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow nested ternary expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-nested-ternary" - }, - - schema: [], - - messages: { - noNestedTernary: "Do not nest ternary expressions." - } - }, - - create(context) { - - return { - ConditionalExpression(node) { - if (node.alternate.type === "ConditionalExpression" || - node.consequent.type === "ConditionalExpression") { - context.report({ - node, - messageId: "noNestedTernary" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-func.js b/graphql/node_modules/eslint/lib/rules/no-new-func.js deleted file mode 100644 index d58b2d71..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-func.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @fileoverview Rule to flag when using new Function - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const callMethods = new Set(["apply", "bind", "call"]); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `new` operators with the `Function` object", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new-func" - }, - - schema: [], - - messages: { - noFunctionConstructor: "The Function constructor is eval." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - const variable = globalScope.set.get("Function"); - - if (variable && variable.defs.length === 0) { - variable.references.forEach(ref => { - const idNode = ref.identifier; - const { parent } = idNode; - let evalNode; - - if (parent) { - if (idNode === parent.callee && ( - parent.type === "NewExpression" || - parent.type === "CallExpression" - )) { - evalNode = parent; - } else if ( - parent.type === "MemberExpression" && - idNode === parent.object && - callMethods.has(astUtils.getStaticPropertyName(parent)) - ) { - const maybeCallee = parent.parent.type === "ChainExpression" ? parent.parent : parent; - - if (maybeCallee.parent.type === "CallExpression" && maybeCallee.parent.callee === maybeCallee) { - evalNode = maybeCallee.parent; - } - } - } - - if (evalNode) { - context.report({ - node: evalNode, - messageId: "noFunctionConstructor" - }); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js b/graphql/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js deleted file mode 100644 index 699390dd..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-native-nonconstructor.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @fileoverview Rule to disallow use of the new operator with global non-constructor functions - * @author Sosuke Suzuki - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const nonConstructorGlobalFunctionNames = ["Symbol", "BigInt"]; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow `new` operators with global non-constructor functions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-new-native-nonconstructor" - }, - - schema: [], - - messages: { - noNewNonconstructor: "`{{name}}` cannot be called as a constructor." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - for (const nonConstructorName of nonConstructorGlobalFunctionNames) { - const variable = globalScope.set.get(nonConstructorName); - - if (variable && variable.defs.length === 0) { - variable.references.forEach(ref => { - const idNode = ref.identifier; - const parent = idNode.parent; - - if (parent && parent.type === "NewExpression" && parent.callee === idNode) { - context.report({ - node: idNode, - messageId: "noNewNonconstructor", - data: { name: nonConstructorName } - }); - } - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-object.js b/graphql/node_modules/eslint/lib/rules/no-new-object.js deleted file mode 100644 index 06275f47..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-object.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @fileoverview A rule to disallow calls to the Object constructor - * @author Matt DuVall - * @deprecated in ESLint v8.50.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `Object` constructors", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new-object" - }, - - deprecated: true, - - replacedBy: [ - "no-object-constructor" - ], - - schema: [], - - messages: { - preferLiteral: "The object literal notation {} is preferable." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - NewExpression(node) { - const variable = astUtils.getVariableByName( - sourceCode.getScope(node), - node.callee.name - ); - - if (variable && variable.identifiers.length > 0) { - return; - } - - if (node.callee.name === "Object") { - context.report({ - node, - messageId: "preferLiteral" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-require.js b/graphql/node_modules/eslint/lib/rules/no-new-require.js deleted file mode 100644 index 6abfc17c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-require.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview Rule to disallow use of new operator with the `require` function - * @author Wil Moore III - * @deprecated in ESLint v7.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow `new` operators with calls to `require`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new-require" - }, - - schema: [], - - messages: { - noNewRequire: "Unexpected use of new with require." - } - }, - - create(context) { - - return { - - NewExpression(node) { - if (node.callee.type === "Identifier" && node.callee.name === "require") { - context.report({ - node, - messageId: "noNewRequire" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-symbol.js b/graphql/node_modules/eslint/lib/rules/no-new-symbol.js deleted file mode 100644 index 85f9e62a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-symbol.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview Rule to disallow use of the new operator with the `Symbol` object - * @author Alberto Rodríguez - * @deprecated in ESLint v9.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow `new` operators with the `Symbol` object", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new-symbol" - }, - - deprecated: true, - - replacedBy: [ - "no-new-native-nonconstructor" - ], - - schema: [], - - messages: { - noNewSymbol: "`Symbol` cannot be called as a constructor." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - const variable = globalScope.set.get("Symbol"); - - if (variable && variable.defs.length === 0) { - variable.references.forEach(ref => { - const idNode = ref.identifier; - const parent = idNode.parent; - - if (parent && parent.type === "NewExpression" && parent.callee === idNode) { - context.report({ - node: idNode, - messageId: "noNewSymbol" - }); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new-wrappers.js b/graphql/node_modules/eslint/lib/rules/no-new-wrappers.js deleted file mode 100644 index 5050a98a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new-wrappers.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @fileoverview Rule to flag when using constructor for wrapper objects - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { getVariableByName } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `new` operators with the `String`, `Number`, and `Boolean` objects", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new-wrappers" - }, - - schema: [], - - messages: { - noConstructor: "Do not use {{fn}} as a constructor." - } - }, - - create(context) { - const { sourceCode } = context; - - return { - - NewExpression(node) { - const wrapperObjects = ["String", "Number", "Boolean"]; - const { name } = node.callee; - - if (wrapperObjects.includes(name)) { - const variable = getVariableByName(sourceCode.getScope(node), name); - - if (variable && variable.identifiers.length === 0) { - context.report({ - node, - messageId: "noConstructor", - data: { fn: name } - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-new.js b/graphql/node_modules/eslint/lib/rules/no-new.js deleted file mode 100644 index 9e20bad7..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-new.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @fileoverview Rule to flag statements with function invocation preceded by - * "new" and not part of assignment - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `new` operators outside of assignments or comparisons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-new" - }, - - schema: [], - - messages: { - noNewStatement: "Do not use 'new' for side effects." - } - }, - - create(context) { - - return { - "ExpressionStatement > NewExpression"(node) { - context.report({ - node: node.parent, - messageId: "noNewStatement" - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js b/graphql/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js deleted file mode 100644 index 5939390f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-nonoctal-decimal-escape.js +++ /dev/null @@ -1,148 +0,0 @@ -/** - * @fileoverview Rule to disallow `\8` and `\9` escape sequences in string literals. - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const QUICK_TEST_REGEX = /\\[89]/u; - -/** - * Returns unicode escape sequence that represents the given character. - * @param {string} character A single code unit. - * @returns {string} "\uXXXX" sequence. - */ -function getUnicodeEscape(character) { - return `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `\\8` and `\\9` escape sequences in string literals", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - decimalEscape: "Don't use '{{decimalEscape}}' escape sequence.", - - // suggestions - refactor: "Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.", - escapeBackslash: "Replace '{{original}}' with '{{replacement}}' to include the actual backslash character." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Creates a new Suggestion object. - * @param {string} messageId "refactor" or "escapeBackslash". - * @param {int[]} range The range to replace. - * @param {string} replacement New text for the range. - * @returns {Object} Suggestion - */ - function createSuggestion(messageId, range, replacement) { - return { - messageId, - data: { - original: sourceCode.getText().slice(...range), - replacement - }, - fix(fixer) { - return fixer.replaceTextRange(range, replacement); - } - }; - } - - return { - Literal(node) { - if (typeof node.value !== "string") { - return; - } - - if (!QUICK_TEST_REGEX.test(node.raw)) { - return; - } - - const regex = /(?:[^\\]|(?\\.))*?(?\\[89])/suy; - let match; - - while ((match = regex.exec(node.raw))) { - const { previousEscape, decimalEscape } = match.groups; - const decimalEscapeRangeEnd = node.range[0] + match.index + match[0].length; - const decimalEscapeRangeStart = decimalEscapeRangeEnd - decimalEscape.length; - const decimalEscapeRange = [decimalEscapeRangeStart, decimalEscapeRangeEnd]; - const suggest = []; - - // When `regex` is matched, `previousEscape` can only capture characters adjacent to `decimalEscape` - if (previousEscape === "\\0") { - - /* - * Now we have a NULL escape "\0" immediately followed by a decimal escape, e.g.: "\0\8". - * Fixing this to "\08" would turn "\0" into a legacy octal escape. To avoid producing - * an octal escape while fixing a decimal escape, we provide different suggestions. - */ - suggest.push( - createSuggestion( // "\0\8" -> "\u00008" - "refactor", - [decimalEscapeRangeStart - previousEscape.length, decimalEscapeRangeEnd], - `${getUnicodeEscape("\0")}${decimalEscape[1]}` - ), - createSuggestion( // "\8" -> "\u0038" - "refactor", - decimalEscapeRange, - getUnicodeEscape(decimalEscape[1]) - ) - ); - } else { - suggest.push( - createSuggestion( // "\8" -> "8" - "refactor", - decimalEscapeRange, - decimalEscape[1] - ) - ); - } - - suggest.push( - createSuggestion( // "\8" -> "\\8" - "escapeBackslash", - decimalEscapeRange, - `\\${decimalEscape}` - ) - ); - - context.report({ - node, - loc: { - start: sourceCode.getLocFromIndex(decimalEscapeRangeStart), - end: sourceCode.getLocFromIndex(decimalEscapeRangeEnd) - }, - messageId: "decimalEscape", - data: { - decimalEscape - }, - suggest - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-obj-calls.js b/graphql/node_modules/eslint/lib/rules/no-obj-calls.js deleted file mode 100644 index ee767ea2..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-obj-calls.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @fileoverview Rule to flag use of an object property of the global object (Math and JSON) as a function - * @author James Allardice - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { CALL, CONSTRUCT, ReferenceTracker } = require("@eslint-community/eslint-utils"); -const getPropertyName = require("./utils/ast-utils").getStaticPropertyName; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const nonCallableGlobals = ["Atomics", "JSON", "Math", "Reflect", "Intl"]; - -/** - * Returns the name of the node to report - * @param {ASTNode} node A node to report - * @returns {string} name to report - */ -function getReportNodeName(node) { - if (node.type === "ChainExpression") { - return getReportNodeName(node.expression); - } - if (node.type === "MemberExpression") { - return getPropertyName(node); - } - return node.name; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow calling global object properties as functions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-obj-calls" - }, - - schema: [], - - messages: { - unexpectedCall: "'{{name}}' is not a function.", - unexpectedRefCall: "'{{name}}' is reference to '{{ref}}', which is not a function." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const traceMap = {}; - - for (const g of nonCallableGlobals) { - traceMap[g] = { - [CALL]: true, - [CONSTRUCT]: true - }; - } - - for (const { node: refNode, path } of tracker.iterateGlobalReferences(traceMap)) { - const name = getReportNodeName(refNode.callee); - const ref = path[0]; - const messageId = name === ref ? "unexpectedCall" : "unexpectedRefCall"; - - context.report({ node: refNode, messageId, data: { name, ref } }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-object-constructor.js b/graphql/node_modules/eslint/lib/rules/no-object-constructor.js deleted file mode 100644 index 8875ec21..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-object-constructor.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @fileoverview Rule to disallow calls to the `Object` constructor without an argument - * @author Francesco Trotta - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { - getVariableByName, - isArrowToken, - isStartOfExpressionStatement, - needsPrecedingSemicolon -} = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow calls to the `Object` constructor without an argument", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-object-constructor" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - preferLiteral: "The object literal notation {} is preferable.", - useLiteral: "Replace with '{{replacement}}'.", - useLiteralAfterSemicolon: "Replace with '{{replacement}}', add preceding semicolon." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Determines whether or not an object literal that replaces a specified node needs to be enclosed in parentheses. - * @param {ASTNode} node The node to be replaced. - * @returns {boolean} Whether or not parentheses around the object literal are required. - */ - function needsParentheses(node) { - if (isStartOfExpressionStatement(node)) { - return true; - } - - const prevToken = sourceCode.getTokenBefore(node); - - if (prevToken && isArrowToken(prevToken)) { - return true; - } - - return false; - } - - /** - * Reports on nodes where the `Object` constructor is called without arguments. - * @param {ASTNode} node The node to evaluate. - * @returns {void} - */ - function check(node) { - if (node.callee.type !== "Identifier" || node.callee.name !== "Object" || node.arguments.length) { - return; - } - - const variable = getVariableByName(sourceCode.getScope(node), "Object"); - - if (variable && variable.identifiers.length === 0) { - let replacement; - let fixText; - let messageId = "useLiteral"; - - if (needsParentheses(node)) { - replacement = "({})"; - if (needsPrecedingSemicolon(sourceCode, node)) { - fixText = ";({})"; - messageId = "useLiteralAfterSemicolon"; - } else { - fixText = "({})"; - } - } else { - replacement = fixText = "{}"; - } - - context.report({ - node, - messageId: "preferLiteral", - suggest: [ - { - messageId, - data: { replacement }, - fix: fixer => fixer.replaceText(node, fixText) - } - ] - }); - } - } - - return { - CallExpression: check, - NewExpression: check - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-octal-escape.js b/graphql/node_modules/eslint/lib/rules/no-octal-escape.js deleted file mode 100644 index 6924d541..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-octal-escape.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @fileoverview Rule to flag octal escape sequences in string literals. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow octal escape sequences in string literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-octal-escape" - }, - - schema: [], - - messages: { - octalEscapeSequence: "Don't use octal: '\\{{sequence}}'. Use '\\u....' instead." - } - }, - - create(context) { - - return { - - Literal(node) { - if (typeof node.value !== "string") { - return; - } - - // \0 represents a valid NULL character if it isn't followed by a digit. - const match = node.raw.match( - /^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su - ); - - if (match) { - context.report({ - node, - messageId: "octalEscapeSequence", - data: { sequence: match[1] } - }); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-octal.js b/graphql/node_modules/eslint/lib/rules/no-octal.js deleted file mode 100644 index dc027696..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-octal.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @fileoverview Rule to flag when initializing octal literal - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow octal literals", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-octal" - }, - - schema: [], - - messages: { - noOctal: "Octal literals should not be used." - } - }, - - create(context) { - - return { - - Literal(node) { - if (typeof node.value === "number" && /^0[0-9]/u.test(node.raw)) { - context.report({ - node, - messageId: "noOctal" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-param-reassign.js b/graphql/node_modules/eslint/lib/rules/no-param-reassign.js deleted file mode 100644 index 607cafd3..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-param-reassign.js +++ /dev/null @@ -1,230 +0,0 @@ -/** - * @fileoverview Disallow reassignment of function parameters. - * @author Nat Burns - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const stopNodePattern = /(?:Statement|Declaration|Function(?:Expression)?|Program)$/u; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow reassigning `function` parameters", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-param-reassign" - }, - - schema: [ - { - oneOf: [ - { - type: "object", - properties: { - props: { - enum: [false] - } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - props: { - enum: [true] - }, - ignorePropertyModificationsFor: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - }, - ignorePropertyModificationsForRegex: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - assignmentToFunctionParam: "Assignment to function parameter '{{name}}'.", - assignmentToFunctionParamProp: "Assignment to property of function parameter '{{name}}'." - } - }, - - create(context) { - const props = context.options[0] && context.options[0].props; - const ignoredPropertyAssignmentsFor = context.options[0] && context.options[0].ignorePropertyModificationsFor || []; - const ignoredPropertyAssignmentsForRegex = context.options[0] && context.options[0].ignorePropertyModificationsForRegex || []; - const sourceCode = context.sourceCode; - - /** - * Checks whether or not the reference modifies properties of its variable. - * @param {Reference} reference A reference to check. - * @returns {boolean} Whether or not the reference modifies properties of its variable. - */ - function isModifyingProp(reference) { - let node = reference.identifier; - let parent = node.parent; - - while (parent && (!stopNodePattern.test(parent.type) || - parent.type === "ForInStatement" || parent.type === "ForOfStatement")) { - switch (parent.type) { - - // e.g. foo.a = 0; - case "AssignmentExpression": - return parent.left === node; - - // e.g. ++foo.a; - case "UpdateExpression": - return true; - - // e.g. delete foo.a; - case "UnaryExpression": - if (parent.operator === "delete") { - return true; - } - break; - - // e.g. for (foo.a in b) {} - case "ForInStatement": - case "ForOfStatement": - if (parent.left === node) { - return true; - } - - // this is a stop node for parent.right and parent.body - return false; - - // EXCLUDES: e.g. cache.get(foo.a).b = 0; - case "CallExpression": - if (parent.callee !== node) { - return false; - } - break; - - // EXCLUDES: e.g. cache[foo.a] = 0; - case "MemberExpression": - if (parent.property === node) { - return false; - } - break; - - // EXCLUDES: e.g. ({ [foo]: a }) = bar; - case "Property": - if (parent.key === node) { - return false; - } - - break; - - // EXCLUDES: e.g. (foo ? a : b).c = bar; - case "ConditionalExpression": - if (parent.test === node) { - return false; - } - - break; - - // no default - } - - node = parent; - parent = node.parent; - } - - return false; - } - - /** - * Tests that an identifier name matches any of the ignored property assignments. - * First we test strings in ignoredPropertyAssignmentsFor. - * Then we instantiate and test RegExp objects from ignoredPropertyAssignmentsForRegex strings. - * @param {string} identifierName A string that describes the name of an identifier to - * ignore property assignments for. - * @returns {boolean} Whether the string matches an ignored property assignment regular expression or not. - */ - function isIgnoredPropertyAssignment(identifierName) { - return ignoredPropertyAssignmentsFor.includes(identifierName) || - ignoredPropertyAssignmentsForRegex.some(ignored => new RegExp(ignored, "u").test(identifierName)); - } - - /** - * Reports a reference if is non initializer and writable. - * @param {Reference} reference A reference to check. - * @param {int} index The index of the reference in the references. - * @param {Reference[]} references The array that the reference belongs to. - * @returns {void} - */ - function checkReference(reference, index, references) { - const identifier = reference.identifier; - - if (identifier && - !reference.init && - - /* - * Destructuring assignments can have multiple default value, - * so possibly there are multiple writeable references for the same identifier. - */ - (index === 0 || references[index - 1].identifier !== identifier) - ) { - if (reference.isWrite()) { - context.report({ - node: identifier, - messageId: "assignmentToFunctionParam", - data: { name: identifier.name } - }); - } else if (props && isModifyingProp(reference) && !isIgnoredPropertyAssignment(identifier.name)) { - context.report({ - node: identifier, - messageId: "assignmentToFunctionParamProp", - data: { name: identifier.name } - }); - } - } - } - - /** - * Finds and reports references that are non initializer and writable. - * @param {Variable} variable A variable to check. - * @returns {void} - */ - function checkVariable(variable) { - if (variable.defs[0].type === "Parameter") { - variable.references.forEach(checkReference); - } - } - - /** - * Checks parameters of a given function node. - * @param {ASTNode} node A function node to check. - * @returns {void} - */ - function checkForFunction(node) { - sourceCode.getDeclaredVariables(node).forEach(checkVariable); - } - - return { - - // `:exit` is needed for the `node.parent` property of identifier nodes. - "FunctionDeclaration:exit": checkForFunction, - "FunctionExpression:exit": checkForFunction, - "ArrowFunctionExpression:exit": checkForFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-path-concat.js b/graphql/node_modules/eslint/lib/rules/no-path-concat.js deleted file mode 100644 index 2e4a3a21..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-path-concat.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @fileoverview Disallow string concatenation when using __dirname and __filename - * @author Nicholas C. Zakas - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow string concatenation with `__dirname` and `__filename`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-path-concat" - }, - - schema: [], - - messages: { - usePathFunctions: "Use path.join() or path.resolve() instead of + to create paths." - } - }, - - create(context) { - - const MATCHER = /^__(?:dir|file)name$/u; - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - BinaryExpression(node) { - - const left = node.left, - right = node.right; - - if (node.operator === "+" && - ((left.type === "Identifier" && MATCHER.test(left.name)) || - (right.type === "Identifier" && MATCHER.test(right.name))) - ) { - - context.report({ - node, - messageId: "usePathFunctions" - }); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-plusplus.js b/graphql/node_modules/eslint/lib/rules/no-plusplus.js deleted file mode 100644 index 22a6fd01..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-plusplus.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @fileoverview Rule to flag use of unary increment and decrement operators. - * @author Ian Christian Myers - * @author Brody McKee (github.com/mrmckeb) - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the given node is the update node of a `ForStatement`. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is `ForStatement` update. - */ -function isForStatementUpdate(node) { - const parent = node.parent; - - return parent.type === "ForStatement" && parent.update === node; -} - -/** - * Determines whether the given node is considered to be a for loop "afterthought" by the logic of this rule. - * In particular, it returns `true` if the given node is either: - * - The update node of a `ForStatement`: for (;; i++) {} - * - An operand of a sequence expression that is the update node: for (;; foo(), i++) {} - * - An operand of a sequence expression that is child of another sequence expression, etc., - * up to the sequence expression that is the update node: for (;; foo(), (bar(), (baz(), i++))) {} - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a for loop afterthought. - */ -function isForLoopAfterthought(node) { - const parent = node.parent; - - if (parent.type === "SequenceExpression") { - return isForLoopAfterthought(parent); - } - - return isForStatementUpdate(node); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the unary operators `++` and `--`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-plusplus" - }, - - schema: [ - { - type: "object", - properties: { - allowForLoopAfterthoughts: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedUnaryOp: "Unary operator '{{operator}}' used." - } - }, - - create(context) { - - const config = context.options[0]; - let allowForLoopAfterthoughts = false; - - if (typeof config === "object") { - allowForLoopAfterthoughts = config.allowForLoopAfterthoughts === true; - } - - return { - - UpdateExpression(node) { - if (allowForLoopAfterthoughts && isForLoopAfterthought(node)) { - return; - } - - context.report({ - node, - messageId: "unexpectedUnaryOp", - data: { - operator: node.operator - } - }); - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-process-env.js b/graphql/node_modules/eslint/lib/rules/no-process-env.js deleted file mode 100644 index 8dac648f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-process-env.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @fileoverview Disallow the use of process.env() - * @author Vignesh Anand - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow the use of `process.env`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-process-env" - }, - - schema: [], - - messages: { - unexpectedProcessEnv: "Unexpected use of process.env." - } - }, - - create(context) { - - return { - - MemberExpression(node) { - const objectName = node.object.name, - propertyName = node.property.name; - - if (objectName === "process" && !node.computed && propertyName && propertyName === "env") { - context.report({ node, messageId: "unexpectedProcessEnv" }); - } - - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-process-exit.js b/graphql/node_modules/eslint/lib/rules/no-process-exit.js deleted file mode 100644 index fa398a72..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-process-exit.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @fileoverview Disallow the use of process.exit() - * @author Nicholas C. Zakas - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow the use of `process.exit()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-process-exit" - }, - - schema: [], - - messages: { - noProcessExit: "Don't use process.exit(); throw an error instead." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - "CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(node) { - context.report({ node: node.parent, messageId: "noProcessExit" }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-promise-executor-return.js b/graphql/node_modules/eslint/lib/rules/no-promise-executor-return.js deleted file mode 100644 index b27e4407..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-promise-executor-return.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @fileoverview Rule to disallow returning values from Promise executor functions - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { findVariable } = require("@eslint-community/eslint-utils"); -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const functionTypesToCheck = new Set(["ArrowFunctionExpression", "FunctionExpression"]); - -/** - * Determines whether the given identifier node is a reference to a global variable. - * @param {ASTNode} node `Identifier` node to check. - * @param {Scope} scope Scope to which the node belongs. - * @returns {boolean} True if the identifier is a reference to a global variable. - */ -function isGlobalReference(node, scope) { - const variable = findVariable(scope, node); - - return variable !== null && variable.scope.type === "global" && variable.defs.length === 0; -} - -/** - * Finds function's outer scope. - * @param {Scope} scope Function's own scope. - * @returns {Scope} Function's outer scope. - */ -function getOuterScope(scope) { - const upper = scope.upper; - - if (upper.type === "function-expression-name") { - return upper.upper; - } - return upper; -} - -/** - * Determines whether the given function node is used as a Promise executor. - * @param {ASTNode} node The node to check. - * @param {Scope} scope Function's own scope. - * @returns {boolean} `true` if the node is a Promise executor. - */ -function isPromiseExecutor(node, scope) { - const parent = node.parent; - - return parent.type === "NewExpression" && - parent.arguments[0] === node && - parent.callee.type === "Identifier" && - parent.callee.name === "Promise" && - isGlobalReference(parent.callee, getOuterScope(scope)); -} - -/** - * Checks if the given node is a void expression. - * @param {ASTNode} node The node to check. - * @returns {boolean} - `true` if the node is a void expression - */ -function expressionIsVoid(node) { - return node.type === "UnaryExpression" && node.operator === "void"; -} - -/** - * Fixes the linting error by prepending "void " to the given node - * @param {Object} sourceCode context given by context.sourceCode - * @param {ASTNode} node The node to fix. - * @param {Object} fixer The fixer object provided by ESLint. - * @returns {Array} - An array of fix objects to apply to the node. - */ -function voidPrependFixer(sourceCode, node, fixer) { - - const requiresParens = - - // prepending `void ` will fail if the node has a lower precedence than void - astUtils.getPrecedence(node) < astUtils.getPrecedence({ type: "UnaryExpression", operator: "void" }) && - - // check if there are parentheses around the node to avoid redundant parentheses - !astUtils.isParenthesised(sourceCode, node); - - // avoid parentheses issues - const returnOrArrowToken = sourceCode.getTokenBefore( - node, - node.parent.type === "ArrowFunctionExpression" - ? astUtils.isArrowToken - - // isReturnToken - : token => token.type === "Keyword" && token.value === "return" - ); - - const firstToken = sourceCode.getTokenAfter(returnOrArrowToken); - - const prependSpace = - - // is return token, as => allows void to be adjacent - returnOrArrowToken.value === "return" && - - // If two tokens (return and "(") are adjacent - returnOrArrowToken.range[1] === firstToken.range[0]; - - return [ - fixer.insertTextBefore(firstToken, `${prependSpace ? " " : ""}void ${requiresParens ? "(" : ""}`), - fixer.insertTextAfter(node, requiresParens ? ")" : "") - ]; -} - -/** - * Fixes the linting error by `wrapping {}` around the given node's body. - * @param {Object} sourceCode context given by context.sourceCode - * @param {ASTNode} node The node to fix. - * @param {Object} fixer The fixer object provided by ESLint. - * @returns {Array} - An array of fix objects to apply to the node. - */ -function curlyWrapFixer(sourceCode, node, fixer) { - - // https://github.com/eslint/eslint/pull/17282#issuecomment-1592795923 - const arrowToken = sourceCode.getTokenBefore(node.body, astUtils.isArrowToken); - const firstToken = sourceCode.getTokenAfter(arrowToken); - const lastToken = sourceCode.getLastToken(node); - - return [ - fixer.insertTextBefore(firstToken, "{"), - fixer.insertTextAfter(lastToken, "}") - ]; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow returning values from Promise executor functions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-promise-executor-return" - }, - - hasSuggestions: true, - - schema: [{ - type: "object", - properties: { - allowVoid: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - returnsValue: "Return values from promise executor functions cannot be read.", - - // arrow and function suggestions - prependVoid: "Prepend `void` to the expression.", - - // only arrow suggestions - wrapBraces: "Wrap the expression in `{}`." - } - }, - - create(context) { - - let funcInfo = null; - const sourceCode = context.sourceCode; - const { - allowVoid = false - } = context.options[0] || {}; - - return { - - onCodePathStart(_, node) { - funcInfo = { - upper: funcInfo, - shouldCheck: - functionTypesToCheck.has(node.type) && - isPromiseExecutor(node, sourceCode.getScope(node)) - }; - - if (// Is a Promise executor - funcInfo.shouldCheck && - node.type === "ArrowFunctionExpression" && - node.expression && - - // Except void - !(allowVoid && expressionIsVoid(node.body)) - ) { - const suggest = []; - - // prevent useless refactors - if (allowVoid) { - suggest.push({ - messageId: "prependVoid", - fix(fixer) { - return voidPrependFixer(sourceCode, node.body, fixer); - } - }); - } - - // Do not suggest wrapping an unnamed FunctionExpression in braces as that would be invalid syntax. - if (!(node.body.type === "FunctionExpression" && !node.body.id)) { - suggest.push({ - messageId: "wrapBraces", - fix(fixer) { - return curlyWrapFixer(sourceCode, node, fixer); - } - }); - } - - context.report({ - node: node.body, - messageId: "returnsValue", - suggest - }); - } - }, - - onCodePathEnd() { - funcInfo = funcInfo.upper; - }, - - ReturnStatement(node) { - if (!(funcInfo.shouldCheck && node.argument)) { - return; - } - - // node is `return ` - if (!allowVoid) { - context.report({ node, messageId: "returnsValue" }); - return; - } - - if (expressionIsVoid(node.argument)) { - return; - } - - // allowVoid && !expressionIsVoid - context.report({ - node, - messageId: "returnsValue", - suggest: [{ - messageId: "prependVoid", - fix(fixer) { - return voidPrependFixer(sourceCode, node.argument, fixer); - } - }] - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-proto.js b/graphql/node_modules/eslint/lib/rules/no-proto.js deleted file mode 100644 index 28320d5d..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-proto.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @fileoverview Rule to flag usage of __proto__ property - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { getStaticPropertyName } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of the `__proto__` property", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-proto" - }, - - schema: [], - - messages: { - unexpectedProto: "The '__proto__' property is deprecated." - } - }, - - create(context) { - - return { - - MemberExpression(node) { - if (getStaticPropertyName(node) === "__proto__") { - context.report({ node, messageId: "unexpectedProto" }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-prototype-builtins.js b/graphql/node_modules/eslint/lib/rules/no-prototype-builtins.js deleted file mode 100644 index b61e5852..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-prototype-builtins.js +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @fileoverview Rule to disallow use of Object.prototype builtins on objects - * @author Andrew Levine - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Returns true if the node or any of the objects - * to the left of it in the member/call chain is optional. - * - * e.g. `a?.b`, `a?.b.c`, `a?.()`, `a()?.()` - * @param {ASTNode} node The expression to check - * @returns {boolean} `true` if there is a short-circuiting optional `?.` - * in the same option chain to the left of this call or member expression, - * or the node itself is an optional call or member `?.`. - */ -function isAfterOptional(node) { - let leftNode; - - if (node.type === "MemberExpression") { - leftNode = node.object; - } else if (node.type === "CallExpression") { - leftNode = node.callee; - } else { - return false; - } - if (node.optional) { - return true; - } - return isAfterOptional(leftNode); -} - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow calling some `Object.prototype` methods directly on objects", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-prototype-builtins" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - prototypeBuildIn: "Do not access Object.prototype method '{{prop}}' from target object.", - callObjectPrototype: "Call Object.prototype.{{prop}} explicitly." - } - }, - - create(context) { - const DISALLOWED_PROPS = new Set([ - "hasOwnProperty", - "isPrototypeOf", - "propertyIsEnumerable" - ]); - - /** - * Reports if a disallowed property is used in a CallExpression - * @param {ASTNode} node The CallExpression node. - * @returns {void} - */ - function disallowBuiltIns(node) { - - const callee = astUtils.skipChainExpression(node.callee); - - if (callee.type !== "MemberExpression") { - return; - } - - const propName = astUtils.getStaticPropertyName(callee); - - if (propName !== null && DISALLOWED_PROPS.has(propName)) { - context.report({ - messageId: "prototypeBuildIn", - loc: callee.property.loc, - data: { prop: propName }, - node, - suggest: [ - { - messageId: "callObjectPrototype", - data: { prop: propName }, - fix(fixer) { - const sourceCode = context.sourceCode; - - /* - * A call after an optional chain (e.g. a?.b.hasOwnProperty(c)) - * must be fixed manually because the call can be short-circuited - */ - if (isAfterOptional(node)) { - return null; - } - - /* - * A call on a ChainExpression (e.g. (a?.hasOwnProperty)(c)) will trigger - * no-unsafe-optional-chaining which should be fixed before this suggestion - */ - if (node.callee.type === "ChainExpression") { - return null; - } - - const objectVariable = astUtils.getVariableByName(sourceCode.getScope(node), "Object"); - - /* - * We can't use Object if the global Object was shadowed, - * or Object does not exist in the global scope for some reason - */ - if (!objectVariable || objectVariable.scope.type !== "global" || objectVariable.defs.length > 0) { - return null; - } - - let objectText = sourceCode.getText(callee.object); - - if (astUtils.getPrecedence(callee.object) <= astUtils.getPrecedence({ type: "SequenceExpression" })) { - objectText = `(${objectText})`; - } - - const openParenToken = sourceCode.getTokenAfter( - node.callee, - astUtils.isOpeningParenToken - ); - const isEmptyParameters = node.arguments.length === 0; - const delim = isEmptyParameters ? "" : ", "; - const fixes = [ - fixer.replaceText(callee, `Object.prototype.${propName}.call`), - fixer.insertTextAfter(openParenToken, objectText + delim) - ]; - - return fixes; - } - } - ] - }); - } - } - - return { - CallExpression: disallowBuiltIns - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-redeclare.js b/graphql/node_modules/eslint/lib/rules/no-redeclare.js deleted file mode 100644 index 8a4877e8..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-redeclare.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview Rule to flag when the same variable is declared more then once. - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow variable redeclaration", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-redeclare" - }, - - messages: { - redeclared: "'{{id}}' is already defined.", - redeclaredAsBuiltin: "'{{id}}' is already defined as a built-in global variable.", - redeclaredBySyntax: "'{{id}}' is already defined by a variable declaration." - }, - - schema: [ - { - type: "object", - properties: { - builtinGlobals: { type: "boolean", default: true } - }, - additionalProperties: false - } - ] - }, - - create(context) { - const options = { - builtinGlobals: Boolean( - context.options.length === 0 || - context.options[0].builtinGlobals - ) - }; - const sourceCode = context.sourceCode; - - /** - * Iterate declarations of a given variable. - * @param {escope.variable} variable The variable object to iterate declarations. - * @returns {IterableIterator<{type:string,node:ASTNode,loc:SourceLocation}>} The declarations. - */ - function *iterateDeclarations(variable) { - if (options.builtinGlobals && ( - variable.eslintImplicitGlobalSetting === "readonly" || - variable.eslintImplicitGlobalSetting === "writable" - )) { - yield { type: "builtin" }; - } - - for (const id of variable.identifiers) { - yield { type: "syntax", node: id, loc: id.loc }; - } - - if (variable.eslintExplicitGlobalComments) { - for (const comment of variable.eslintExplicitGlobalComments) { - yield { - type: "comment", - node: comment, - loc: astUtils.getNameLocationInGlobalDirectiveComment( - sourceCode, - comment, - variable.name - ) - }; - } - } - } - - /** - * Find variables in a given scope and flag redeclared ones. - * @param {Scope} scope An eslint-scope scope object. - * @returns {void} - * @private - */ - function findVariablesInScope(scope) { - for (const variable of scope.variables) { - const [ - declaration, - ...extraDeclarations - ] = iterateDeclarations(variable); - - if (extraDeclarations.length === 0) { - continue; - } - - /* - * If the type of a declaration is different from the type of - * the first declaration, it shows the location of the first - * declaration. - */ - const detailMessageId = declaration.type === "builtin" - ? "redeclaredAsBuiltin" - : "redeclaredBySyntax"; - const data = { id: variable.name }; - - // Report extra declarations. - for (const { type, node, loc } of extraDeclarations) { - const messageId = type === declaration.type - ? "redeclared" - : detailMessageId; - - context.report({ node, loc, messageId, data }); - } - } - } - - /** - * Find variables in the current scope. - * @param {ASTNode} node The node of the current scope. - * @returns {void} - * @private - */ - function checkForBlock(node) { - const scope = sourceCode.getScope(node); - - /* - * In ES5, some node type such as `BlockStatement` doesn't have that scope. - * `scope.block` is a different node in such a case. - */ - if (scope.block === node) { - findVariablesInScope(scope); - } - } - - return { - Program(node) { - const scope = sourceCode.getScope(node); - - findVariablesInScope(scope); - - // Node.js or ES modules has a special scope. - if ( - scope.type === "global" && - scope.childScopes[0] && - - // The special scope's block is the Program node. - scope.block === scope.childScopes[0].block - ) { - findVariablesInScope(scope.childScopes[0]); - } - }, - - FunctionDeclaration: checkForBlock, - FunctionExpression: checkForBlock, - ArrowFunctionExpression: checkForBlock, - - StaticBlock: checkForBlock, - - BlockStatement: checkForBlock, - ForStatement: checkForBlock, - ForInStatement: checkForBlock, - ForOfStatement: checkForBlock, - SwitchStatement: checkForBlock - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-regex-spaces.js b/graphql/node_modules/eslint/lib/rules/no-regex-spaces.js deleted file mode 100644 index cb250107..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-regex-spaces.js +++ /dev/null @@ -1,197 +0,0 @@ -/** - * @fileoverview Rule to count multiple spaces in regular expressions - * @author Matt DuVall - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const regexpp = require("@eslint-community/regexpp"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const regExpParser = new regexpp.RegExpParser(); -const DOUBLE_SPACE = / {2}/u; - -/** - * Check if node is a string - * @param {ASTNode} node node to evaluate - * @returns {boolean} True if its a string - * @private - */ -function isString(node) { - return node && node.type === "Literal" && typeof node.value === "string"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow multiple spaces in regular expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-regex-spaces" - }, - - schema: [], - fixable: "code", - - messages: { - multipleSpaces: "Spaces are hard to count. Use {{{length}}}." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Validate regular expression - * @param {ASTNode} nodeToReport Node to report. - * @param {string} pattern Regular expression pattern to validate. - * @param {string} rawPattern Raw representation of the pattern in the source code. - * @param {number} rawPatternStartRange Start range of the pattern in the source code. - * @param {string} flags Regular expression flags. - * @returns {void} - * @private - */ - function checkRegex(nodeToReport, pattern, rawPattern, rawPatternStartRange, flags) { - - // Skip if there are no consecutive spaces in the source code, to avoid reporting e.g., RegExp(' \ '). - if (!DOUBLE_SPACE.test(rawPattern)) { - return; - } - - const characterClassNodes = []; - let regExpAST; - - try { - regExpAST = regExpParser.parsePattern(pattern, 0, pattern.length, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }); - } catch { - - // Ignore regular expressions with syntax errors - return; - } - - regexpp.visitRegExpAST(regExpAST, { - onCharacterClassEnter(ccNode) { - characterClassNodes.push(ccNode); - } - }); - - const spacesPattern = /( {2,})(?: [+*{?]|[^+*{?]|$)/gu; - let match; - - while ((match = spacesPattern.exec(pattern))) { - const { 1: { length }, index } = match; - - // Report only consecutive spaces that are not in character classes. - if ( - characterClassNodes.every(({ start, end }) => index < start || end <= index) - ) { - context.report({ - node: nodeToReport, - messageId: "multipleSpaces", - data: { length }, - fix(fixer) { - if (pattern !== rawPattern) { - return null; - } - return fixer.replaceTextRange( - [rawPatternStartRange + index, rawPatternStartRange + index + length], - ` {${length}}` - ); - } - }); - - // Report only the first occurrence of consecutive spaces - return; - } - } - } - - /** - * Validate regular expression literals - * @param {ASTNode} node node to validate - * @returns {void} - * @private - */ - function checkLiteral(node) { - if (node.regex) { - const pattern = node.regex.pattern; - const rawPattern = node.raw.slice(1, node.raw.lastIndexOf("/")); - const rawPatternStartRange = node.range[0] + 1; - const flags = node.regex.flags; - - checkRegex( - node, - pattern, - rawPattern, - rawPatternStartRange, - flags - ); - } - } - - /** - * Validate strings passed to the RegExp constructor - * @param {ASTNode} node node to validate - * @returns {void} - * @private - */ - function checkFunction(node) { - const scope = sourceCode.getScope(node); - const regExpVar = astUtils.getVariableByName(scope, "RegExp"); - const shadowed = regExpVar && regExpVar.defs.length > 0; - const patternNode = node.arguments[0]; - - if (node.callee.type === "Identifier" && node.callee.name === "RegExp" && isString(patternNode) && !shadowed) { - const pattern = patternNode.value; - const rawPattern = patternNode.raw.slice(1, -1); - const rawPatternStartRange = patternNode.range[0] + 1; - let flags; - - if (node.arguments.length < 2) { - - // It has no flags. - flags = ""; - } else { - const flagsNode = node.arguments[1]; - - if (isString(flagsNode)) { - flags = flagsNode.value; - } else { - - // The flags cannot be determined. - return; - } - } - - checkRegex( - node, - pattern, - rawPattern, - rawPatternStartRange, - flags - ); - } - } - - return { - Literal: checkLiteral, - CallExpression: checkFunction, - NewExpression: checkFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-exports.js b/graphql/node_modules/eslint/lib/rules/no-restricted-exports.js deleted file mode 100644 index 8da2f2df..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-exports.js +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @fileoverview Rule to disallow specified names in exports - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified names in exports", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-exports" - }, - - schema: [{ - anyOf: [ - { - type: "object", - properties: { - restrictedNamedExports: { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - }, - restrictedNamedExportsPattern: { type: "string" } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - restrictedNamedExports: { - type: "array", - items: { - type: "string", - pattern: "^(?!default$)" - }, - uniqueItems: true - }, - restrictedNamedExportsPattern: { type: "string" }, - restrictDefaultExports: { - type: "object", - properties: { - - // Allow/Disallow `export default foo; export default 42; export default function foo() {}` format - direct: { - type: "boolean" - }, - - // Allow/Disallow `export { foo as default };` declarations - named: { - type: "boolean" - }, - - // Allow/Disallow `export { default } from "mod"; export { default as default } from "mod";` declarations - defaultFrom: { - type: "boolean" - }, - - // Allow/Disallow `export { foo as default } from "mod";` declarations - namedFrom: { - type: "boolean" - }, - - // Allow/Disallow `export * as default from "mod"`; declarations - namespaceFrom: { - type: "boolean" - } - }, - additionalProperties: false - } - }, - additionalProperties: false - } - ] - }], - - messages: { - restrictedNamed: "'{{name}}' is restricted from being used as an exported name.", - restrictedDefault: "Exporting 'default' is restricted." - } - }, - - create(context) { - - const restrictedNames = new Set(context.options[0] && context.options[0].restrictedNamedExports); - const restrictedNamePattern = context.options[0] && context.options[0].restrictedNamedExportsPattern; - const restrictDefaultExports = context.options[0] && context.options[0].restrictDefaultExports; - const sourceCode = context.sourceCode; - - /** - * Checks and reports given exported name. - * @param {ASTNode} node exported `Identifier` or string `Literal` node to check. - * @returns {void} - */ - function checkExportedName(node) { - const name = astUtils.getModuleExportName(node); - - let matchesRestrictedNamePattern = false; - - if (restrictedNamePattern && name !== "default") { - const patternRegex = new RegExp(restrictedNamePattern, "u"); - - matchesRestrictedNamePattern = patternRegex.test(name); - } - - if (matchesRestrictedNamePattern || restrictedNames.has(name)) { - context.report({ - node, - messageId: "restrictedNamed", - data: { name } - }); - return; - } - - if (name === "default") { - if (node.parent.type === "ExportAllDeclaration") { - if (restrictDefaultExports && restrictDefaultExports.namespaceFrom) { - context.report({ - node, - messageId: "restrictedDefault" - }); - } - - } else { // ExportSpecifier - const isSourceSpecified = !!node.parent.parent.source; - const specifierLocalName = astUtils.getModuleExportName(node.parent.local); - - if (!isSourceSpecified && restrictDefaultExports && restrictDefaultExports.named) { - context.report({ - node, - messageId: "restrictedDefault" - }); - return; - } - - if (isSourceSpecified && restrictDefaultExports) { - if ( - (specifierLocalName === "default" && restrictDefaultExports.defaultFrom) || - (specifierLocalName !== "default" && restrictDefaultExports.namedFrom) - ) { - context.report({ - node, - messageId: "restrictedDefault" - }); - } - } - } - } - } - - return { - ExportAllDeclaration(node) { - if (node.exported) { - checkExportedName(node.exported); - } - }, - - ExportDefaultDeclaration(node) { - if (restrictDefaultExports && restrictDefaultExports.direct) { - context.report({ - node, - messageId: "restrictedDefault" - }); - } - }, - - ExportNamedDeclaration(node) { - const declaration = node.declaration; - - if (declaration) { - if (declaration.type === "FunctionDeclaration" || declaration.type === "ClassDeclaration") { - checkExportedName(declaration.id); - } else if (declaration.type === "VariableDeclaration") { - sourceCode.getDeclaredVariables(declaration) - .map(v => v.defs.find(d => d.parent === declaration)) - .map(d => d.name) // Identifier nodes - .forEach(checkExportedName); - } - } else { - node.specifiers - .map(s => s.exported) - .forEach(checkExportedName); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-globals.js b/graphql/node_modules/eslint/lib/rules/no-restricted-globals.js deleted file mode 100644 index 060d50a0..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-globals.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @fileoverview Restrict usage of specified globals. - * @author Benoît Zugmeyer - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified global variables", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-globals" - }, - - schema: { - type: "array", - items: { - oneOf: [ - { - type: "string" - }, - { - type: "object", - properties: { - name: { type: "string" }, - message: { type: "string" } - }, - required: ["name"], - additionalProperties: false - } - ] - }, - uniqueItems: true, - minItems: 0 - }, - - messages: { - defaultMessage: "Unexpected use of '{{name}}'.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - customMessage: "Unexpected use of '{{name}}'. {{customMessage}}" - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - // If no globals are restricted, we don't need to do anything - if (context.options.length === 0) { - return {}; - } - - const restrictedGlobalMessages = context.options.reduce((memo, option) => { - if (typeof option === "string") { - memo[option] = null; - } else { - memo[option.name] = option.message; - } - - return memo; - }, {}); - - /** - * Report a variable to be used as a restricted global. - * @param {Reference} reference the variable reference - * @returns {void} - * @private - */ - function reportReference(reference) { - const name = reference.identifier.name, - customMessage = restrictedGlobalMessages[name], - messageId = customMessage - ? "customMessage" - : "defaultMessage"; - - context.report({ - node: reference.identifier, - messageId, - data: { - name, - customMessage - } - }); - } - - /** - * Check if the given name is a restricted global name. - * @param {string} name name of a variable - * @returns {boolean} whether the variable is a restricted global or not - * @private - */ - function isRestricted(name) { - return Object.hasOwn(restrictedGlobalMessages, name); - } - - return { - Program(node) { - const scope = sourceCode.getScope(node); - - // Report variables declared elsewhere (ex: variables defined as "global" by eslint) - scope.variables.forEach(variable => { - if (!variable.defs.length && isRestricted(variable.name)) { - variable.references.forEach(reportReference); - } - }); - - // Report variables not declared at all - scope.through.forEach(reference => { - if (isRestricted(reference.identifier.name)) { - reportReference(reference); - } - }); - - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-imports.js b/graphql/node_modules/eslint/lib/rules/no-restricted-imports.js deleted file mode 100644 index 5fd4744c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-imports.js +++ /dev/null @@ -1,563 +0,0 @@ -/** - * @fileoverview Restrict usage of specified node imports. - * @author Guy Ellis - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const ignore = require("ignore"); - -const arrayOfStringsOrObjects = { - type: "array", - items: { - anyOf: [ - { type: "string" }, - { - type: "object", - properties: { - name: { type: "string" }, - message: { - type: "string", - minLength: 1 - }, - importNames: { - type: "array", - items: { - type: "string" - } - }, - allowImportNames: { - type: "array", - items: { - type: "string" - } - } - }, - additionalProperties: false, - required: ["name"], - not: { required: ["importNames", "allowImportNames"] } - } - ] - }, - uniqueItems: true -}; - -const arrayOfStringsOrObjectPatterns = { - anyOf: [ - { - type: "array", - items: { - type: "string" - }, - uniqueItems: true - }, - { - type: "array", - items: { - type: "object", - properties: { - importNames: { - type: "array", - items: { - type: "string" - }, - minItems: 1, - uniqueItems: true - }, - allowImportNames: { - type: "array", - items: { - type: "string" - }, - minItems: 1, - uniqueItems: true - }, - group: { - type: "array", - items: { - type: "string" - }, - minItems: 1, - uniqueItems: true - }, - regex: { - type: "string" - }, - importNamePattern: { - type: "string" - }, - allowImportNamePattern: { - type: "string" - }, - message: { - type: "string", - minLength: 1 - }, - caseSensitive: { - type: "boolean" - } - }, - additionalProperties: false, - not: { - anyOf: [ - { required: ["importNames", "allowImportNames"] }, - { required: ["importNamePattern", "allowImportNamePattern"] }, - { required: ["importNames", "allowImportNamePattern"] }, - { required: ["importNamePattern", "allowImportNames"] }, - { required: ["allowImportNames", "allowImportNamePattern"] } - ] - }, - oneOf: [ - { required: ["group"] }, - { required: ["regex"] } - ] - }, - uniqueItems: true - } - ] -}; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified modules when loaded by `import`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-imports" - }, - - messages: { - path: "'{{importSource}}' import is restricted from being used.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - pathWithCustomMessage: "'{{importSource}}' import is restricted from being used. {{customMessage}}", - - patterns: "'{{importSource}}' import is restricted from being used by a pattern.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - patternWithCustomMessage: "'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}", - - patternAndImportName: "'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - patternAndImportNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}", - - patternAndEverything: "* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.", - - patternAndEverythingWithRegexImportName: "* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - patternAndEverythingWithCustomMessage: "* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - patternAndEverythingWithRegexImportNameAndCustomMessage: "* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}", - - everything: "* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - everythingWithCustomMessage: "* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}", - - importName: "'{{importName}}' import from '{{importSource}}' is restricted.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - importNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}", - - allowedImportName: "'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - allowedImportNameWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}", - - everythingWithAllowImportNames: "* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - everythingWithAllowImportNamesAndCustomMessage: "* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}", - - allowedImportNamePattern: "'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - allowedImportNamePatternWithCustomMessage: "'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}", - - everythingWithAllowedImportNamePattern: "* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - everythingWithAllowedImportNamePatternWithCustomMessage: "* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}" - }, - - schema: { - anyOf: [ - arrayOfStringsOrObjects, - { - type: "array", - items: [{ - type: "object", - properties: { - paths: arrayOfStringsOrObjects, - patterns: arrayOfStringsOrObjectPatterns - }, - additionalProperties: false - }], - additionalItems: false - } - ] - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = Array.isArray(context.options) ? context.options : []; - const isPathAndPatternsObject = - typeof options[0] === "object" && - (Object.hasOwn(options[0], "paths") || Object.hasOwn(options[0], "patterns")); - - const restrictedPaths = (isPathAndPatternsObject ? options[0].paths : context.options) || []; - const groupedRestrictedPaths = restrictedPaths.reduce((memo, importSource) => { - const path = typeof importSource === "string" - ? importSource - : importSource.name; - - if (!memo[path]) { - memo[path] = []; - } - - if (typeof importSource === "string") { - memo[path].push({}); - } else { - memo[path].push({ - message: importSource.message, - importNames: importSource.importNames, - allowImportNames: importSource.allowImportNames - }); - } - return memo; - }, Object.create(null)); - - // Handle patterns too, either as strings or groups - let restrictedPatterns = (isPathAndPatternsObject ? options[0].patterns : []) || []; - - // standardize to array of objects if we have an array of strings - if (restrictedPatterns.length > 0 && typeof restrictedPatterns[0] === "string") { - restrictedPatterns = [{ group: restrictedPatterns }]; - } - - // relative paths are supported for this rule - const restrictedPatternGroups = restrictedPatterns.map( - ({ group, regex, message, caseSensitive, importNames, importNamePattern, allowImportNames, allowImportNamePattern }) => ( - { - ...(group ? { matcher: ignore({ allowRelativePaths: true, ignorecase: !caseSensitive }).add(group) } : {}), - ...(typeof regex === "string" ? { regexMatcher: new RegExp(regex, caseSensitive ? "u" : "iu") } : {}), - customMessage: message, - importNames, - importNamePattern, - allowImportNames, - allowImportNamePattern - } - ) - ); - - // if no imports are restricted we don't need to check - if (Object.keys(restrictedPaths).length === 0 && restrictedPatternGroups.length === 0) { - return {}; - } - - /** - * Report a restricted path. - * @param {string} importSource path of the import - * @param {Map} importNames Map of import names that are being imported - * @param {node} node representing the restricted path reference - * @returns {void} - * @private - */ - function checkRestrictedPathAndReport(importSource, importNames, node) { - if (!Object.hasOwn(groupedRestrictedPaths, importSource)) { - return; - } - - groupedRestrictedPaths[importSource].forEach(restrictedPathEntry => { - const customMessage = restrictedPathEntry.message; - const restrictedImportNames = restrictedPathEntry.importNames; - const allowedImportNames = restrictedPathEntry.allowImportNames; - - if (!restrictedImportNames && !allowedImportNames) { - context.report({ - node, - messageId: customMessage ? "pathWithCustomMessage" : "path", - data: { - importSource, - customMessage - } - }); - - return; - } - - importNames.forEach((specifiers, importName) => { - if (importName === "*") { - const [specifier] = specifiers; - - if (restrictedImportNames) { - context.report({ - node, - messageId: customMessage ? "everythingWithCustomMessage" : "everything", - loc: specifier.loc, - data: { - importSource, - importNames: restrictedImportNames, - customMessage - } - }); - } else if (allowedImportNames) { - context.report({ - node, - messageId: customMessage ? "everythingWithAllowImportNamesAndCustomMessage" : "everythingWithAllowImportNames", - loc: specifier.loc, - data: { - importSource, - allowedImportNames, - customMessage - } - }); - } - - return; - } - - if (restrictedImportNames && restrictedImportNames.includes(importName)) { - specifiers.forEach(specifier => { - context.report({ - node, - messageId: customMessage ? "importNameWithCustomMessage" : "importName", - loc: specifier.loc, - data: { - importSource, - customMessage, - importName - } - }); - }); - } - - if (allowedImportNames && !allowedImportNames.includes(importName)) { - specifiers.forEach(specifier => { - context.report({ - node, - loc: specifier.loc, - messageId: customMessage ? "allowedImportNameWithCustomMessage" : "allowedImportName", - data: { - importSource, - customMessage, - importName, - allowedImportNames - } - }); - }); - } - }); - }); - } - - /** - * Report a restricted path specifically for patterns. - * @param {node} node representing the restricted path reference - * @param {Object} group contains an Ignore instance for paths, the customMessage to show on failure, - * and any restricted import names that have been specified in the config - * @param {Map} importNames Map of import names that are being imported - * @returns {void} - * @private - */ - function reportPathForPatterns(node, group, importNames) { - const importSource = node.source.value.trim(); - - const customMessage = group.customMessage; - const restrictedImportNames = group.importNames; - const restrictedImportNamePattern = group.importNamePattern ? new RegExp(group.importNamePattern, "u") : null; - const allowedImportNames = group.allowImportNames; - const allowedImportNamePattern = group.allowImportNamePattern ? new RegExp(group.allowImportNamePattern, "u") : null; - - /** - * If we are not restricting to any specific import names and just the pattern itself, - * report the error and move on - */ - if (!restrictedImportNames && !allowedImportNames && !restrictedImportNamePattern && !allowedImportNamePattern) { - context.report({ - node, - messageId: customMessage ? "patternWithCustomMessage" : "patterns", - data: { - importSource, - customMessage - } - }); - return; - } - - importNames.forEach((specifiers, importName) => { - if (importName === "*") { - const [specifier] = specifiers; - - if (restrictedImportNames) { - context.report({ - node, - messageId: customMessage ? "patternAndEverythingWithCustomMessage" : "patternAndEverything", - loc: specifier.loc, - data: { - importSource, - importNames: restrictedImportNames, - customMessage - } - }); - } else if (allowedImportNames) { - context.report({ - node, - messageId: customMessage ? "everythingWithAllowImportNamesAndCustomMessage" : "everythingWithAllowImportNames", - loc: specifier.loc, - data: { - importSource, - allowedImportNames, - customMessage - } - }); - } else if (allowedImportNamePattern) { - context.report({ - node, - messageId: customMessage ? "everythingWithAllowedImportNamePatternWithCustomMessage" : "everythingWithAllowedImportNamePattern", - loc: specifier.loc, - data: { - importSource, - allowedImportNamePattern, - customMessage - } - }); - } else { - context.report({ - node, - messageId: customMessage ? "patternAndEverythingWithRegexImportNameAndCustomMessage" : "patternAndEverythingWithRegexImportName", - loc: specifier.loc, - data: { - importSource, - importNames: restrictedImportNamePattern, - customMessage - } - }); - } - - return; - } - - if ( - (restrictedImportNames && restrictedImportNames.includes(importName)) || - (restrictedImportNamePattern && restrictedImportNamePattern.test(importName)) - ) { - specifiers.forEach(specifier => { - context.report({ - node, - messageId: customMessage ? "patternAndImportNameWithCustomMessage" : "patternAndImportName", - loc: specifier.loc, - data: { - importSource, - customMessage, - importName - } - }); - }); - } - - if (allowedImportNames && !allowedImportNames.includes(importName)) { - specifiers.forEach(specifier => { - context.report({ - node, - messageId: customMessage ? "allowedImportNameWithCustomMessage" : "allowedImportName", - loc: specifier.loc, - data: { - importSource, - customMessage, - importName, - allowedImportNames - } - }); - }); - } else if (allowedImportNamePattern && !allowedImportNamePattern.test(importName)) { - specifiers.forEach(specifier => { - context.report({ - node, - messageId: customMessage ? "allowedImportNamePatternWithCustomMessage" : "allowedImportNamePattern", - loc: specifier.loc, - data: { - importSource, - customMessage, - importName, - allowedImportNamePattern - } - }); - }); - } - }); - } - - /** - * Check if the given importSource is restricted by a pattern. - * @param {string} importSource path of the import - * @param {Object} group contains a Ignore instance for paths, and the customMessage to show if it fails - * @returns {boolean} whether the variable is a restricted pattern or not - * @private - */ - function isRestrictedPattern(importSource, group) { - return group.regexMatcher ? group.regexMatcher.test(importSource) : group.matcher.ignores(importSource); - } - - /** - * Checks a node to see if any problems should be reported. - * @param {ASTNode} node The node to check. - * @returns {void} - * @private - */ - function checkNode(node) { - const importSource = node.source.value.trim(); - const importNames = new Map(); - - if (node.type === "ExportAllDeclaration") { - const starToken = sourceCode.getFirstToken(node, 1); - - importNames.set("*", [{ loc: starToken.loc }]); - } else if (node.specifiers) { - for (const specifier of node.specifiers) { - let name; - const specifierData = { loc: specifier.loc }; - - if (specifier.type === "ImportDefaultSpecifier") { - name = "default"; - } else if (specifier.type === "ImportNamespaceSpecifier") { - name = "*"; - } else if (specifier.imported) { - name = astUtils.getModuleExportName(specifier.imported); - } else if (specifier.local) { - name = astUtils.getModuleExportName(specifier.local); - } - - if (typeof name === "string") { - if (importNames.has(name)) { - importNames.get(name).push(specifierData); - } else { - importNames.set(name, [specifierData]); - } - } - } - } - - checkRestrictedPathAndReport(importSource, importNames, node); - restrictedPatternGroups.forEach(group => { - if (isRestrictedPattern(importSource, group)) { - reportPathForPatterns(node, group, importNames); - } - }); - } - - return { - ImportDeclaration: checkNode, - ExportNamedDeclaration(node) { - if (node.source) { - checkNode(node); - } - }, - ExportAllDeclaration: checkNode - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-modules.js b/graphql/node_modules/eslint/lib/rules/no-restricted-modules.js deleted file mode 100644 index d36f2d28..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-modules.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @fileoverview Restrict usage of specified node modules. - * @author Christian Schulz - * @deprecated in ESLint v7.0.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const ignore = require("ignore"); - -const arrayOfStrings = { - type: "array", - items: { type: "string" }, - uniqueItems: true -}; - -const arrayOfStringsOrObjects = { - type: "array", - items: { - anyOf: [ - { type: "string" }, - { - type: "object", - properties: { - name: { type: "string" }, - message: { - type: "string", - minLength: 1 - } - }, - additionalProperties: false, - required: ["name"] - } - ] - }, - uniqueItems: true -}; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow specified modules when loaded by `require`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-modules" - }, - - schema: { - anyOf: [ - arrayOfStringsOrObjects, - { - type: "array", - items: { - type: "object", - properties: { - paths: arrayOfStringsOrObjects, - patterns: arrayOfStrings - }, - additionalProperties: false - }, - additionalItems: false - } - ] - }, - - messages: { - defaultMessage: "'{{name}}' module is restricted from being used.", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - customMessage: "'{{name}}' module is restricted from being used. {{customMessage}}", - patternMessage: "'{{name}}' module is restricted from being used by a pattern." - } - }, - - create(context) { - const options = Array.isArray(context.options) ? context.options : []; - const isPathAndPatternsObject = - typeof options[0] === "object" && - (Object.hasOwn(options[0], "paths") || Object.hasOwn(options[0], "patterns")); - - const restrictedPaths = (isPathAndPatternsObject ? options[0].paths : context.options) || []; - const restrictedPatterns = (isPathAndPatternsObject ? options[0].patterns : []) || []; - - const restrictedPathMessages = restrictedPaths.reduce((memo, importName) => { - if (typeof importName === "string") { - memo[importName] = null; - } else { - memo[importName.name] = importName.message; - } - return memo; - }, {}); - - // if no imports are restricted we don't need to check - if (Object.keys(restrictedPaths).length === 0 && restrictedPatterns.length === 0) { - return {}; - } - - // relative paths are supported for this rule - const ig = ignore({ allowRelativePaths: true }).add(restrictedPatterns); - - - /** - * Function to check if a node is a string literal. - * @param {ASTNode} node The node to check. - * @returns {boolean} If the node is a string literal. - */ - function isStringLiteral(node) { - return node && node.type === "Literal" && typeof node.value === "string"; - } - - /** - * Function to check if a node is a require call. - * @param {ASTNode} node The node to check. - * @returns {boolean} If the node is a require call. - */ - function isRequireCall(node) { - return node.callee.type === "Identifier" && node.callee.name === "require"; - } - - /** - * Extract string from Literal or TemplateLiteral node - * @param {ASTNode} node The node to extract from - * @returns {string|null} Extracted string or null if node doesn't represent a string - */ - function getFirstArgumentString(node) { - if (isStringLiteral(node)) { - return node.value.trim(); - } - - if (astUtils.isStaticTemplateLiteral(node)) { - return node.quasis[0].value.cooked.trim(); - } - - return null; - } - - /** - * Report a restricted path. - * @param {node} node representing the restricted path reference - * @param {string} name restricted path - * @returns {void} - * @private - */ - function reportPath(node, name) { - const customMessage = restrictedPathMessages[name]; - const messageId = customMessage - ? "customMessage" - : "defaultMessage"; - - context.report({ - node, - messageId, - data: { - name, - customMessage - } - }); - } - - /** - * Check if the given name is a restricted path name - * @param {string} name name of a variable - * @returns {boolean} whether the variable is a restricted path or not - * @private - */ - function isRestrictedPath(name) { - return Object.hasOwn(restrictedPathMessages, name); - } - - return { - CallExpression(node) { - if (isRequireCall(node)) { - - // node has arguments - if (node.arguments.length) { - const name = getFirstArgumentString(node.arguments[0]); - - // if first argument is a string literal or a static string template literal - if (name) { - - // check if argument value is in restricted modules array - if (isRestrictedPath(name)) { - reportPath(node, name); - } - - if (restrictedPatterns.length > 0 && ig.ignores(name)) { - context.report({ - node, - messageId: "patternMessage", - data: { name } - }); - } - } - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-properties.js b/graphql/node_modules/eslint/lib/rules/no-restricted-properties.js deleted file mode 100644 index acd178ae..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-properties.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * @fileoverview Rule to disallow certain object properties - * @author Will Klein & Eli White - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow certain properties on certain objects", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-properties" - }, - - schema: { - type: "array", - items: { - anyOf: [ // `object` and `property` are both optional, but at least one of them must be provided. - { - type: "object", - properties: { - object: { - type: "string" - }, - property: { - type: "string" - }, - message: { - type: "string" - } - }, - additionalProperties: false, - required: ["object"] - }, - { - type: "object", - properties: { - object: { - type: "string" - }, - property: { - type: "string" - }, - message: { - type: "string" - } - }, - additionalProperties: false, - required: ["property"] - } - ] - }, - uniqueItems: true - }, - - messages: { - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - restrictedObjectProperty: "'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}", - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - restrictedProperty: "'{{propertyName}}' is restricted from being used.{{message}}" - } - }, - - create(context) { - const restrictedCalls = context.options; - - if (restrictedCalls.length === 0) { - return {}; - } - - const restrictedProperties = new Map(); - const globallyRestrictedObjects = new Map(); - const globallyRestrictedProperties = new Map(); - - restrictedCalls.forEach(option => { - const objectName = option.object; - const propertyName = option.property; - - if (typeof objectName === "undefined") { - globallyRestrictedProperties.set(propertyName, { message: option.message }); - } else if (typeof propertyName === "undefined") { - globallyRestrictedObjects.set(objectName, { message: option.message }); - } else { - if (!restrictedProperties.has(objectName)) { - restrictedProperties.set(objectName, new Map()); - } - - restrictedProperties.get(objectName).set(propertyName, { - message: option.message - }); - } - }); - - /** - * Checks to see whether a property access is restricted, and reports it if so. - * @param {ASTNode} node The node to report - * @param {string} objectName The name of the object - * @param {string} propertyName The name of the property - * @returns {undefined} - */ - function checkPropertyAccess(node, objectName, propertyName) { - if (propertyName === null) { - return; - } - const matchedObject = restrictedProperties.get(objectName); - const matchedObjectProperty = matchedObject ? matchedObject.get(propertyName) : globallyRestrictedObjects.get(objectName); - const globalMatchedProperty = globallyRestrictedProperties.get(propertyName); - - if (matchedObjectProperty) { - const message = matchedObjectProperty.message ? ` ${matchedObjectProperty.message}` : ""; - - context.report({ - node, - messageId: "restrictedObjectProperty", - data: { - objectName, - propertyName, - message - } - }); - } else if (globalMatchedProperty) { - const message = globalMatchedProperty.message ? ` ${globalMatchedProperty.message}` : ""; - - context.report({ - node, - messageId: "restrictedProperty", - data: { - propertyName, - message - } - }); - } - } - - return { - MemberExpression(node) { - checkPropertyAccess(node, node.object && node.object.name, astUtils.getStaticPropertyName(node)); - }, - ObjectPattern(node) { - let objectName = null; - - if (node.parent.type === "VariableDeclarator") { - if (node.parent.init && node.parent.init.type === "Identifier") { - objectName = node.parent.init.name; - } - } else if (node.parent.type === "AssignmentExpression" || node.parent.type === "AssignmentPattern") { - if (node.parent.right.type === "Identifier") { - objectName = node.parent.right.name; - } - } - - node.properties.forEach(property => { - checkPropertyAccess(node, objectName, astUtils.getStaticPropertyName(property)); - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-restricted-syntax.js b/graphql/node_modules/eslint/lib/rules/no-restricted-syntax.js deleted file mode 100644 index 930882c3..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-restricted-syntax.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @fileoverview Rule to flag use of certain node types - * @author Burak Yigit Kaya - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified syntax", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-restricted-syntax" - }, - - schema: { - type: "array", - items: { - oneOf: [ - { - type: "string" - }, - { - type: "object", - properties: { - selector: { type: "string" }, - message: { type: "string" } - }, - required: ["selector"], - additionalProperties: false - } - ] - }, - uniqueItems: true, - minItems: 0 - }, - - messages: { - // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period - restrictedSyntax: "{{message}}" - } - }, - - create(context) { - return context.options.reduce((result, selectorOrObject) => { - const isStringFormat = (typeof selectorOrObject === "string"); - const hasCustomMessage = !isStringFormat && Boolean(selectorOrObject.message); - - const selector = isStringFormat ? selectorOrObject : selectorOrObject.selector; - const message = hasCustomMessage ? selectorOrObject.message : `Using '${selector}' is not allowed.`; - - return Object.assign(result, { - [selector](node) { - context.report({ - node, - messageId: "restrictedSyntax", - data: { message } - }); - } - }); - }, {}); - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-return-assign.js b/graphql/node_modules/eslint/lib/rules/no-return-assign.js deleted file mode 100644 index 73caf0e6..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-return-assign.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @fileoverview Rule to flag when return statement contains assignment - * @author Ilya Volodin - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SENTINEL_TYPE = /^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow assignment operators in `return` statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-return-assign" - }, - - schema: [ - { - enum: ["except-parens", "always"] - } - ], - - messages: { - returnAssignment: "Return statement should not contain assignment.", - arrowAssignment: "Arrow function should not return assignment." - } - }, - - create(context) { - const always = (context.options[0] || "except-parens") !== "except-parens"; - const sourceCode = context.sourceCode; - - return { - AssignmentExpression(node) { - if (!always && astUtils.isParenthesised(sourceCode, node)) { - return; - } - - let currentChild = node; - let parent = currentChild.parent; - - // Find ReturnStatement or ArrowFunctionExpression in ancestors. - while (parent && !SENTINEL_TYPE.test(parent.type)) { - currentChild = parent; - parent = parent.parent; - } - - // Reports. - if (parent && parent.type === "ReturnStatement") { - context.report({ - node: parent, - messageId: "returnAssignment" - }); - } else if (parent && parent.type === "ArrowFunctionExpression" && parent.body === currentChild) { - context.report({ - node: parent, - messageId: "arrowAssignment" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-return-await.js b/graphql/node_modules/eslint/lib/rules/no-return-await.js deleted file mode 100644 index 0c297411..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-return-await.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @fileoverview Disallows unnecessary `return await` - * @author Jordan Harband - * @deprecated in ESLint v8.46.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - hasSuggestions: true, - type: "suggestion", - - docs: { - description: "Disallow unnecessary `return await`", - - recommended: false, - - url: "https://eslint.org/docs/latest/rules/no-return-await" - }, - - fixable: null, - - deprecated: true, - - replacedBy: [], - - schema: [ - ], - - messages: { - removeAwait: "Remove redundant `await`.", - redundantUseOfAwait: "Redundant use of `await` on a return value." - } - }, - - create(context) { - - /** - * Reports a found unnecessary `await` expression. - * @param {ASTNode} node The node representing the `await` expression to report - * @returns {void} - */ - function reportUnnecessaryAwait(node) { - context.report({ - node: context.sourceCode.getFirstToken(node), - loc: node.loc, - messageId: "redundantUseOfAwait", - suggest: [ - { - messageId: "removeAwait", - fix(fixer) { - const sourceCode = context.sourceCode; - const [awaitToken, tokenAfterAwait] = sourceCode.getFirstTokens(node, 2); - - const areAwaitAndAwaitedExpressionOnTheSameLine = awaitToken.loc.start.line === tokenAfterAwait.loc.start.line; - - if (!areAwaitAndAwaitedExpressionOnTheSameLine) { - return null; - } - - const [startOfAwait, endOfAwait] = awaitToken.range; - - const characterAfterAwait = sourceCode.text[endOfAwait]; - const trimLength = characterAfterAwait === " " ? 1 : 0; - - const range = [startOfAwait, endOfAwait + trimLength]; - - return fixer.removeRange(range); - } - } - ] - - }); - } - - /** - * Determines whether a thrown error from this node will be caught/handled within this function rather than immediately halting - * this function. For example, a statement in a `try` block will always have an error handler. A statement in - * a `catch` block will only have an error handler if there is also a `finally` block. - * @param {ASTNode} node A node representing a location where an could be thrown - * @returns {boolean} `true` if a thrown error will be caught/handled in this function - */ - function hasErrorHandler(node) { - let ancestor = node; - - while (!astUtils.isFunction(ancestor) && ancestor.type !== "Program") { - if (ancestor.parent.type === "TryStatement" && (ancestor === ancestor.parent.block || ancestor === ancestor.parent.handler && ancestor.parent.finalizer)) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - - /** - * Checks if a node is placed in tail call position. Once `return` arguments (or arrow function expressions) can be a complex expression, - * an `await` expression could or could not be unnecessary by the definition of this rule. So we're looking for `await` expressions that are in tail position. - * @param {ASTNode} node A node representing the `await` expression to check - * @returns {boolean} The checking result - */ - function isInTailCallPosition(node) { - if (node.parent.type === "ArrowFunctionExpression") { - return true; - } - if (node.parent.type === "ReturnStatement") { - return !hasErrorHandler(node.parent); - } - if (node.parent.type === "ConditionalExpression" && (node === node.parent.consequent || node === node.parent.alternate)) { - return isInTailCallPosition(node.parent); - } - if (node.parent.type === "LogicalExpression" && node === node.parent.right) { - return isInTailCallPosition(node.parent); - } - if (node.parent.type === "SequenceExpression" && node === node.parent.expressions.at(-1)) { - return isInTailCallPosition(node.parent); - } - return false; - } - - return { - AwaitExpression(node) { - if (isInTailCallPosition(node) && !hasErrorHandler(node)) { - reportUnnecessaryAwait(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-script-url.js b/graphql/node_modules/eslint/lib/rules/no-script-url.js deleted file mode 100644 index 1d16bde3..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-script-url.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @fileoverview Rule to flag when using javascript: urls - * @author Ilya Volodin - */ -/* eslint no-script-url: 0 -- Code is checking to report such URLs */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `javascript:` urls", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-script-url" - }, - - schema: [], - - messages: { - unexpectedScriptURL: "Script URL is a form of eval." - } - }, - - create(context) { - - /** - * Check whether a node's static value starts with "javascript:" or not. - * And report an error for unexpected script URL. - * @param {ASTNode} node node to check - * @returns {void} - */ - function check(node) { - const value = astUtils.getStaticStringValue(node); - - if (typeof value === "string" && value.toLowerCase().indexOf("javascript:") === 0) { - context.report({ node, messageId: "unexpectedScriptURL" }); - } - } - return { - Literal(node) { - if (node.value && typeof node.value === "string") { - check(node); - } - }, - TemplateLiteral(node) { - if (!(node.parent && node.parent.type === "TaggedTemplateExpression")) { - check(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-self-assign.js b/graphql/node_modules/eslint/lib/rules/no-self-assign.js deleted file mode 100644 index 33ac8fb5..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-self-assign.js +++ /dev/null @@ -1,183 +0,0 @@ -/** - * @fileoverview Rule to disallow assignments where both sides are exactly the same - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SPACES = /\s+/gu; - -/** - * Traverses 2 Pattern nodes in parallel, then reports self-assignments. - * @param {ASTNode|null} left A left node to traverse. This is a Pattern or - * a Property. - * @param {ASTNode|null} right A right node to traverse. This is a Pattern or - * a Property. - * @param {boolean} props The flag to check member expressions as well. - * @param {Function} report A callback function to report. - * @returns {void} - */ -function eachSelfAssignment(left, right, props, report) { - if (!left || !right) { - - // do nothing - } else if ( - left.type === "Identifier" && - right.type === "Identifier" && - left.name === right.name - ) { - report(right); - } else if ( - left.type === "ArrayPattern" && - right.type === "ArrayExpression" - ) { - const end = Math.min(left.elements.length, right.elements.length); - - for (let i = 0; i < end; ++i) { - const leftElement = left.elements[i]; - const rightElement = right.elements[i]; - - // Avoid cases such as [...a] = [...a, 1] - if ( - leftElement && - leftElement.type === "RestElement" && - i < right.elements.length - 1 - ) { - break; - } - - eachSelfAssignment(leftElement, rightElement, props, report); - - // After a spread element, those indices are unknown. - if (rightElement && rightElement.type === "SpreadElement") { - break; - } - } - } else if ( - left.type === "RestElement" && - right.type === "SpreadElement" - ) { - eachSelfAssignment(left.argument, right.argument, props, report); - } else if ( - left.type === "ObjectPattern" && - right.type === "ObjectExpression" && - right.properties.length >= 1 - ) { - - /* - * Gets the index of the last spread property. - * It's possible to overwrite properties followed by it. - */ - let startJ = 0; - - for (let i = right.properties.length - 1; i >= 0; --i) { - const propType = right.properties[i].type; - - if (propType === "SpreadElement" || propType === "ExperimentalSpreadProperty") { - startJ = i + 1; - break; - } - } - - for (let i = 0; i < left.properties.length; ++i) { - for (let j = startJ; j < right.properties.length; ++j) { - eachSelfAssignment( - left.properties[i], - right.properties[j], - props, - report - ); - } - } - } else if ( - left.type === "Property" && - right.type === "Property" && - right.kind === "init" && - !right.method - ) { - const leftName = astUtils.getStaticPropertyName(left); - - if (leftName !== null && leftName === astUtils.getStaticPropertyName(right)) { - eachSelfAssignment(left.value, right.value, props, report); - } - } else if ( - props && - astUtils.skipChainExpression(left).type === "MemberExpression" && - astUtils.skipChainExpression(right).type === "MemberExpression" && - astUtils.isSameReference(left, right) - ) { - report(right); - } -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow assignments where both sides are exactly the same", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-self-assign" - }, - - schema: [ - { - type: "object", - properties: { - props: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - selfAssignment: "'{{name}}' is assigned to itself." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const [{ props = true } = {}] = context.options; - - /** - * Reports a given node as self assignments. - * @param {ASTNode} node A node to report. This is an Identifier node. - * @returns {void} - */ - function report(node) { - context.report({ - node, - messageId: "selfAssignment", - data: { - name: sourceCode.getText(node).replace(SPACES, "") - } - }); - } - - return { - AssignmentExpression(node) { - if (["=", "&&=", "||=", "??="].includes(node.operator)) { - eachSelfAssignment(node.left, node.right, props, report); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-self-compare.js b/graphql/node_modules/eslint/lib/rules/no-self-compare.js deleted file mode 100644 index 3b076eba..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-self-compare.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @fileoverview Rule to flag comparison where left part is the same as the right - * part. - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow comparisons where both sides are exactly the same", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-self-compare" - }, - - schema: [], - - messages: { - comparingToSelf: "Comparing to itself is potentially pointless." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Determines whether two nodes are composed of the same tokens. - * @param {ASTNode} nodeA The first node - * @param {ASTNode} nodeB The second node - * @returns {boolean} true if the nodes have identical token representations - */ - function hasSameTokens(nodeA, nodeB) { - const tokensA = sourceCode.getTokens(nodeA); - const tokensB = sourceCode.getTokens(nodeB); - - return tokensA.length === tokensB.length && - tokensA.every((token, index) => token.type === tokensB[index].type && token.value === tokensB[index].value); - } - - return { - - BinaryExpression(node) { - const operators = new Set(["===", "==", "!==", "!=", ">", "<", ">=", "<="]); - - if (operators.has(node.operator) && hasSameTokens(node.left, node.right)) { - context.report({ node, messageId: "comparingToSelf" }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-sequences.js b/graphql/node_modules/eslint/lib/rules/no-sequences.js deleted file mode 100644 index 5822a245..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-sequences.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @fileoverview Rule to flag use of comma operator - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const DEFAULT_OPTIONS = { - allowInParentheses: true -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow comma operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-sequences" - }, - - schema: [{ - type: "object", - properties: { - allowInParentheses: { - type: "boolean", - default: true - } - }, - additionalProperties: false - }], - - messages: { - unexpectedCommaExpression: "Unexpected use of comma operator." - } - }, - - create(context) { - const options = Object.assign({}, DEFAULT_OPTIONS, context.options[0]); - const sourceCode = context.sourceCode; - - /** - * Parts of the grammar that are required to have parens. - */ - const parenthesized = { - DoWhileStatement: "test", - IfStatement: "test", - SwitchStatement: "discriminant", - WhileStatement: "test", - WithStatement: "object", - ArrowFunctionExpression: "body" - - /* - * Omitting CallExpression - commas are parsed as argument separators - * Omitting NewExpression - commas are parsed as argument separators - * Omitting ForInStatement - parts aren't individually parenthesised - * Omitting ForStatement - parts aren't individually parenthesised - */ - }; - - /** - * Determines whether a node is required by the grammar to be wrapped in - * parens, e.g. the test of an if statement. - * @param {ASTNode} node The AST node - * @returns {boolean} True if parens around node belong to parent node. - */ - function requiresExtraParens(node) { - return node.parent && parenthesized[node.parent.type] && - node === node.parent[parenthesized[node.parent.type]]; - } - - /** - * Check if a node is wrapped in parens. - * @param {ASTNode} node The AST node - * @returns {boolean} True if the node has a paren on each side. - */ - function isParenthesised(node) { - return astUtils.isParenthesised(sourceCode, node); - } - - /** - * Check if a node is wrapped in two levels of parens. - * @param {ASTNode} node The AST node - * @returns {boolean} True if two parens surround the node on each side. - */ - function isParenthesisedTwice(node) { - const previousToken = sourceCode.getTokenBefore(node, 1), - nextToken = sourceCode.getTokenAfter(node, 1); - - return isParenthesised(node) && previousToken && nextToken && - astUtils.isOpeningParenToken(previousToken) && previousToken.range[1] <= node.range[0] && - astUtils.isClosingParenToken(nextToken) && nextToken.range[0] >= node.range[1]; - } - - return { - SequenceExpression(node) { - - // Always allow sequences in for statement update - if (node.parent.type === "ForStatement" && - (node === node.parent.init || node === node.parent.update)) { - return; - } - - // Wrapping a sequence in extra parens indicates intent - if (options.allowInParentheses) { - if (requiresExtraParens(node)) { - if (isParenthesisedTwice(node)) { - return; - } - } else { - if (isParenthesised(node)) { - return; - } - } - } - - const firstCommaToken = sourceCode.getTokenAfter(node.expressions[0], astUtils.isCommaToken); - - context.report({ node, loc: firstCommaToken.loc, messageId: "unexpectedCommaExpression" }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-setter-return.js b/graphql/node_modules/eslint/lib/rules/no-setter-return.js deleted file mode 100644 index a5abaaa7..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-setter-return.js +++ /dev/null @@ -1,226 +0,0 @@ -/** - * @fileoverview Rule to disallow returning values from setters - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { findVariable } = require("@eslint-community/eslint-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the given identifier node is a reference to a global variable. - * @param {ASTNode} node `Identifier` node to check. - * @param {Scope} scope Scope to which the node belongs. - * @returns {boolean} True if the identifier is a reference to a global variable. - */ -function isGlobalReference(node, scope) { - const variable = findVariable(scope, node); - - return variable !== null && variable.scope.type === "global" && variable.defs.length === 0; -} - -/** - * Determines whether the given node is an argument of the specified global method call, at the given `index` position. - * E.g., for given `index === 1`, this function checks for `objectName.methodName(foo, node)`, where objectName is a global variable. - * @param {ASTNode} node The node to check. - * @param {Scope} scope Scope to which the node belongs. - * @param {string} objectName Name of the global object. - * @param {string} methodName Name of the method. - * @param {number} index The given position. - * @returns {boolean} `true` if the node is argument at the given position. - */ -function isArgumentOfGlobalMethodCall(node, scope, objectName, methodName, index) { - const callNode = node.parent; - - return callNode.type === "CallExpression" && - callNode.arguments[index] === node && - astUtils.isSpecificMemberAccess(callNode.callee, objectName, methodName) && - isGlobalReference(astUtils.skipChainExpression(callNode.callee).object, scope); -} - -/** - * Determines whether the given node is used as a property descriptor. - * @param {ASTNode} node The node to check. - * @param {Scope} scope Scope to which the node belongs. - * @returns {boolean} `true` if the node is a property descriptor. - */ -function isPropertyDescriptor(node, scope) { - if ( - isArgumentOfGlobalMethodCall(node, scope, "Object", "defineProperty", 2) || - isArgumentOfGlobalMethodCall(node, scope, "Reflect", "defineProperty", 2) - ) { - return true; - } - - const parent = node.parent; - - if ( - parent.type === "Property" && - parent.value === node - ) { - const grandparent = parent.parent; - - if ( - grandparent.type === "ObjectExpression" && - ( - isArgumentOfGlobalMethodCall(grandparent, scope, "Object", "create", 1) || - isArgumentOfGlobalMethodCall(grandparent, scope, "Object", "defineProperties", 1) - ) - ) { - return true; - } - } - - return false; -} - -/** - * Determines whether the given function node is used as a setter function. - * @param {ASTNode} node The node to check. - * @param {Scope} scope Scope to which the node belongs. - * @returns {boolean} `true` if the node is a setter. - */ -function isSetter(node, scope) { - const parent = node.parent; - - if ( - (parent.type === "Property" || parent.type === "MethodDefinition") && - parent.kind === "set" && - parent.value === node - ) { - - // Setter in an object literal or in a class - return true; - } - - if ( - parent.type === "Property" && - parent.value === node && - astUtils.getStaticPropertyName(parent) === "set" && - parent.parent.type === "ObjectExpression" && - isPropertyDescriptor(parent.parent, scope) - ) { - - // Setter in a property descriptor - return true; - } - - return false; -} - -/** - * Finds function's outer scope. - * @param {Scope} scope Function's own scope. - * @returns {Scope} Function's outer scope. - */ -function getOuterScope(scope) { - const upper = scope.upper; - - if (upper.type === "function-expression-name") { - return upper.upper; - } - - return upper; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow returning values from setters", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-setter-return" - }, - - schema: [], - - messages: { - returnsValue: "Setter cannot return a value." - } - }, - - create(context) { - let funcInfo = null; - const sourceCode = context.sourceCode; - - /** - * Creates and pushes to the stack a function info object for the given function node. - * @param {ASTNode} node The function node. - * @returns {void} - */ - function enterFunction(node) { - const outerScope = getOuterScope(sourceCode.getScope(node)); - - funcInfo = { - upper: funcInfo, - isSetter: isSetter(node, outerScope) - }; - } - - /** - * Pops the current function info object from the stack. - * @returns {void} - */ - function exitFunction() { - funcInfo = funcInfo.upper; - } - - /** - * Reports the given node. - * @param {ASTNode} node Node to report. - * @returns {void} - */ - function report(node) { - context.report({ node, messageId: "returnsValue" }); - } - - return { - - /* - * Function declarations cannot be setters, but we still have to track them in the `funcInfo` stack to avoid - * false positives, because a ReturnStatement node can belong to a function declaration inside a setter. - * - * Note: A previously declared function can be referenced and actually used as a setter in a property descriptor, - * but that's out of scope for this rule. - */ - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression(node) { - enterFunction(node); - - if (funcInfo.isSetter && node.expression) { - - // { set: foo => bar } property descriptor. Report implicit return 'bar' as the equivalent for a return statement. - report(node.body); - } - }, - - "FunctionDeclaration:exit": exitFunction, - "FunctionExpression:exit": exitFunction, - "ArrowFunctionExpression:exit": exitFunction, - - ReturnStatement(node) { - - // Global returns (e.g., at the top level of a Node module) don't have `funcInfo`. - if (funcInfo && funcInfo.isSetter && node.argument) { - report(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-shadow-restricted-names.js b/graphql/node_modules/eslint/lib/rules/no-shadow-restricted-names.js deleted file mode 100644 index 29560fff..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-shadow-restricted-names.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @fileoverview Disallow shadowing of NaN, undefined, and Infinity (ES5 section 15.1.1) - * @author Michael Ficarra - */ -"use strict"; - -/** - * Determines if a variable safely shadows undefined. - * This is the case when a variable named `undefined` is never assigned to a value (i.e. it always shares the same value - * as the global). - * @param {eslintScope.Variable} variable The variable to check - * @returns {boolean} true if this variable safely shadows `undefined` - */ -function safelyShadowsUndefined(variable) { - return variable.name === "undefined" && - variable.references.every(ref => !ref.isWrite()) && - variable.defs.every(def => def.node.type === "VariableDeclarator" && def.node.init === null); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow identifiers from shadowing restricted names", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-shadow-restricted-names" - }, - - schema: [], - - messages: { - shadowingRestrictedName: "Shadowing of global property '{{name}}'." - } - }, - - create(context) { - - - const RESTRICTED = new Set(["undefined", "NaN", "Infinity", "arguments", "eval"]); - const sourceCode = context.sourceCode; - - return { - "VariableDeclaration, :function, CatchClause"(node) { - for (const variable of sourceCode.getDeclaredVariables(node)) { - if (variable.defs.length > 0 && RESTRICTED.has(variable.name) && !safelyShadowsUndefined(variable)) { - context.report({ - node: variable.defs[0].name, - messageId: "shadowingRestrictedName", - data: { - name: variable.name - } - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-shadow.js b/graphql/node_modules/eslint/lib/rules/no-shadow.js deleted file mode 100644 index 3e4d9982..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-shadow.js +++ /dev/null @@ -1,336 +0,0 @@ -/** - * @fileoverview Rule to flag on declaring variables already declared in the outer scope - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const FUNC_EXPR_NODE_TYPES = new Set(["ArrowFunctionExpression", "FunctionExpression"]); -const CALL_EXPR_NODE_TYPE = new Set(["CallExpression"]); -const FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u; -const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow variable declarations from shadowing variables declared in the outer scope", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-shadow" - }, - - schema: [ - { - type: "object", - properties: { - builtinGlobals: { type: "boolean", default: false }, - hoist: { enum: ["all", "functions", "never"], default: "functions" }, - allow: { - type: "array", - items: { - type: "string" - } - }, - ignoreOnInitialization: { type: "boolean", default: false } - }, - additionalProperties: false - } - ], - - messages: { - noShadow: "'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.", - noShadowGlobal: "'{{name}}' is already a global variable." - } - }, - - create(context) { - - const options = { - builtinGlobals: context.options[0] && context.options[0].builtinGlobals, - hoist: (context.options[0] && context.options[0].hoist) || "functions", - allow: (context.options[0] && context.options[0].allow) || [], - ignoreOnInitialization: context.options[0] && context.options[0].ignoreOnInitialization - }; - const sourceCode = context.sourceCode; - - /** - * Checks whether or not a given location is inside of the range of a given node. - * @param {ASTNode} node An node to check. - * @param {number} location A location to check. - * @returns {boolean} `true` if the location is inside of the range of the node. - */ - function isInRange(node, location) { - return node && node.range[0] <= location && location <= node.range[1]; - } - - /** - * Searches from the current node through its ancestry to find a matching node. - * @param {ASTNode} node a node to get. - * @param {(node: ASTNode) => boolean} match a callback that checks whether or not the node verifies its condition or not. - * @returns {ASTNode|null} the matching node. - */ - function findSelfOrAncestor(node, match) { - let currentNode = node; - - while (currentNode && !match(currentNode)) { - currentNode = currentNode.parent; - } - return currentNode; - } - - /** - * Finds function's outer scope. - * @param {Scope} scope Function's own scope. - * @returns {Scope} Function's outer scope. - */ - function getOuterScope(scope) { - const upper = scope.upper; - - if (upper.type === "function-expression-name") { - return upper.upper; - } - return upper; - } - - /** - * Checks if a variable and a shadowedVariable have the same init pattern ancestor. - * @param {Object} variable a variable to check. - * @param {Object} shadowedVariable a shadowedVariable to check. - * @returns {boolean} Whether or not the variable and the shadowedVariable have the same init pattern ancestor. - */ - function isInitPatternNode(variable, shadowedVariable) { - const outerDef = shadowedVariable.defs[0]; - - if (!outerDef) { - return false; - } - - const { variableScope } = variable.scope; - - - if (!(FUNC_EXPR_NODE_TYPES.has(variableScope.block.type) && getOuterScope(variableScope) === shadowedVariable.scope)) { - return false; - } - - const fun = variableScope.block; - const { parent } = fun; - - const callExpression = findSelfOrAncestor( - parent, - node => CALL_EXPR_NODE_TYPE.has(node.type) - ); - - if (!callExpression) { - return false; - } - - let node = outerDef.name; - const location = callExpression.range[1]; - - while (node) { - if (node.type === "VariableDeclarator") { - if (isInRange(node.init, location)) { - return true; - } - if (FOR_IN_OF_TYPE.test(node.parent.parent.type) && - isInRange(node.parent.parent.right, location) - ) { - return true; - } - break; - } else if (node.type === "AssignmentPattern") { - if (isInRange(node.right, location)) { - return true; - } - } else if (SENTINEL_TYPE.test(node.type)) { - break; - } - - node = node.parent; - } - - return false; - } - - /** - * Check if variable name is allowed. - * @param {ASTNode} variable The variable to check. - * @returns {boolean} Whether or not the variable name is allowed. - */ - function isAllowed(variable) { - return options.allow.includes(variable.name); - } - - /** - * Checks if a variable of the class name in the class scope of ClassDeclaration. - * - * ClassDeclaration creates two variables of its name into its outer scope and its class scope. - * So we should ignore the variable in the class scope. - * @param {Object} variable The variable to check. - * @returns {boolean} Whether or not the variable of the class name in the class scope of ClassDeclaration. - */ - function isDuplicatedClassNameVariable(variable) { - const block = variable.scope.block; - - return block.type === "ClassDeclaration" && block.id === variable.identifiers[0]; - } - - /** - * Checks if a variable is inside the initializer of scopeVar. - * - * To avoid reporting at declarations such as `var a = function a() {};`. - * But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`. - * @param {Object} variable The variable to check. - * @param {Object} scopeVar The scope variable to look for. - * @returns {boolean} Whether or not the variable is inside initializer of scopeVar. - */ - function isOnInitializer(variable, scopeVar) { - const outerScope = scopeVar.scope; - const outerDef = scopeVar.defs[0]; - const outer = outerDef && outerDef.parent && outerDef.parent.range; - const innerScope = variable.scope; - const innerDef = variable.defs[0]; - const inner = innerDef && innerDef.name.range; - - return ( - outer && - inner && - outer[0] < inner[0] && - inner[1] < outer[1] && - ((innerDef.type === "FunctionName" && innerDef.node.type === "FunctionExpression") || innerDef.node.type === "ClassExpression") && - outerScope === innerScope.upper - ); - } - - /** - * Get a range of a variable's identifier node. - * @param {Object} variable The variable to get. - * @returns {Array|undefined} The range of the variable's identifier node. - */ - function getNameRange(variable) { - const def = variable.defs[0]; - - return def && def.name.range; - } - - /** - * Get declared line and column of a variable. - * @param {eslint-scope.Variable} variable The variable to get. - * @returns {Object} The declared line and column of the variable. - */ - function getDeclaredLocation(variable) { - const identifier = variable.identifiers[0]; - let obj; - - if (identifier) { - obj = { - global: false, - line: identifier.loc.start.line, - column: identifier.loc.start.column + 1 - }; - } else { - obj = { - global: true - }; - } - return obj; - } - - /** - * Checks if a variable is in TDZ of scopeVar. - * @param {Object} variable The variable to check. - * @param {Object} scopeVar The variable of TDZ. - * @returns {boolean} Whether or not the variable is in TDZ of scopeVar. - */ - function isInTdz(variable, scopeVar) { - const outerDef = scopeVar.defs[0]; - const inner = getNameRange(variable); - const outer = getNameRange(scopeVar); - - return ( - inner && - outer && - inner[1] < outer[0] && - - // Excepts FunctionDeclaration if is {"hoist":"function"}. - (options.hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration") - ); - } - - /** - * Checks the current context for shadowed variables. - * @param {Scope} scope Fixme - * @returns {void} - */ - function checkForShadows(scope) { - const variables = scope.variables; - - for (let i = 0; i < variables.length; ++i) { - const variable = variables[i]; - - // Skips "arguments" or variables of a class name in the class scope of ClassDeclaration. - if (variable.identifiers.length === 0 || - isDuplicatedClassNameVariable(variable) || - isAllowed(variable) - ) { - continue; - } - - // Gets shadowed variable. - const shadowed = astUtils.getVariableByName(scope.upper, variable.name); - - if (shadowed && - (shadowed.identifiers.length > 0 || (options.builtinGlobals && "writeable" in shadowed)) && - !isOnInitializer(variable, shadowed) && - !(options.ignoreOnInitialization && isInitPatternNode(variable, shadowed)) && - !(options.hoist !== "all" && isInTdz(variable, shadowed)) - ) { - const location = getDeclaredLocation(shadowed); - const messageId = location.global ? "noShadowGlobal" : "noShadow"; - const data = { name: variable.name }; - - if (!location.global) { - data.shadowedLine = location.line; - data.shadowedColumn = location.column; - } - context.report({ - node: variable.identifiers[0], - messageId, - data - }); - } - } - } - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - const stack = globalScope.childScopes.slice(); - - while (stack.length) { - const scope = stack.pop(); - - stack.push(...scope.childScopes); - checkForShadows(scope); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-spaced-func.js b/graphql/node_modules/eslint/lib/rules/no-spaced-func.js deleted file mode 100644 index d79c1844..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-spaced-func.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @fileoverview Rule to check that spaced function application - * @author Matt DuVall - * @deprecated in ESLint v3.3.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Disallow spacing between function identifiers and their applications (deprecated)", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-spaced-func" - }, - - deprecated: true, - - replacedBy: ["func-call-spacing"], - - fixable: "whitespace", - schema: [], - - messages: { - noSpacedFunction: "Unexpected space between function name and paren." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Check if open space is present in a function name - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function detectOpenSpaces(node) { - const lastCalleeToken = sourceCode.getLastToken(node.callee); - let prevToken = lastCalleeToken, - parenToken = sourceCode.getTokenAfter(lastCalleeToken); - - // advances to an open parenthesis. - while ( - parenToken && - parenToken.range[1] < node.range[1] && - parenToken.value !== "(" - ) { - prevToken = parenToken; - parenToken = sourceCode.getTokenAfter(parenToken); - } - - // look for a space between the callee and the open paren - if (parenToken && - parenToken.range[1] < node.range[1] && - sourceCode.isSpaceBetweenTokens(prevToken, parenToken) - ) { - context.report({ - node, - loc: lastCalleeToken.loc.start, - messageId: "noSpacedFunction", - fix(fixer) { - return fixer.removeRange([prevToken.range[1], parenToken.range[0]]); - } - }); - } - } - - return { - CallExpression: detectOpenSpaces, - NewExpression: detectOpenSpaces - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-sparse-arrays.js b/graphql/node_modules/eslint/lib/rules/no-sparse-arrays.js deleted file mode 100644 index 6d24842f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-sparse-arrays.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @fileoverview Disallow sparse arrays - * @author Nicholas C. Zakas - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow sparse arrays", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-sparse-arrays" - }, - - schema: [], - - messages: { - unexpectedSparseArray: "Unexpected comma in middle of array." - } - }, - - create(context) { - - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - ArrayExpression(node) { - if (!node.elements.includes(null)) { - return; - } - - const { sourceCode } = context; - let commaToken; - - for (const [index, element] of node.elements.entries()) { - if (index === node.elements.length - 1 && element) { - return; - } - - commaToken = sourceCode.getTokenAfter( - element ?? commaToken ?? sourceCode.getFirstToken(node), - astUtils.isCommaToken - ); - - if (element) { - continue; - } - - context.report({ - node, - loc: commaToken.loc, - messageId: "unexpectedSparseArray" - }); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-sync.js b/graphql/node_modules/eslint/lib/rules/no-sync.js deleted file mode 100644 index 8f79a36b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-sync.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @fileoverview Rule to check for properties whose identifier ends with the string Sync - * @author Matt DuVall - * @deprecated in ESLint v7.0.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - - replacedBy: [], - - type: "suggestion", - - docs: { - description: "Disallow synchronous methods", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-sync" - }, - - schema: [ - { - type: "object", - properties: { - allowAtRootLevel: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - noSync: "Unexpected sync method: '{{propertyName}}'." - } - }, - - create(context) { - const selector = context.options[0] && context.options[0].allowAtRootLevel - ? ":function MemberExpression[property.name=/.*Sync$/]" - : "MemberExpression[property.name=/.*Sync$/]"; - - return { - [selector](node) { - context.report({ - node, - messageId: "noSync", - data: { - propertyName: node.property.name - } - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-tabs.js b/graphql/node_modules/eslint/lib/rules/no-tabs.js deleted file mode 100644 index 8581e19a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-tabs.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @fileoverview Rule to check for tabs inside a file - * @author Gyandeep Singh - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const tabRegex = /\t+/gu; -const anyNonWhitespaceRegex = /\S/u; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow all tabs", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-tabs" - }, - schema: [{ - type: "object", - properties: { - allowIndentationTabs: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - unexpectedTab: "Unexpected tab character." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const allowIndentationTabs = context.options && context.options[0] && context.options[0].allowIndentationTabs; - - return { - Program(node) { - sourceCode.getLines().forEach((line, index) => { - let match; - - while ((match = tabRegex.exec(line)) !== null) { - if (allowIndentationTabs && !anyNonWhitespaceRegex.test(line.slice(0, match.index))) { - continue; - } - - context.report({ - node, - loc: { - start: { - line: index + 1, - column: match.index - }, - end: { - line: index + 1, - column: match.index + match[0].length - } - }, - messageId: "unexpectedTab" - }); - } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-template-curly-in-string.js b/graphql/node_modules/eslint/lib/rules/no-template-curly-in-string.js deleted file mode 100644 index 92b4c1c8..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-template-curly-in-string.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @fileoverview Warn when using template string syntax in regular strings - * @author Jeroen Engels - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow template literal placeholder syntax in regular strings", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-template-curly-in-string" - }, - - schema: [], - - messages: { - unexpectedTemplateExpression: "Unexpected template string expression." - } - }, - - create(context) { - const regex = /\$\{[^}]+\}/u; - - return { - Literal(node) { - if (typeof node.value === "string" && regex.test(node.value)) { - context.report({ - node, - messageId: "unexpectedTemplateExpression" - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-ternary.js b/graphql/node_modules/eslint/lib/rules/no-ternary.js deleted file mode 100644 index 4d43c7e0..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-ternary.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @fileoverview Rule to flag use of ternary operators. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow ternary operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-ternary" - }, - - schema: [], - - messages: { - noTernaryOperator: "Ternary operator used." - } - }, - - create(context) { - - return { - - ConditionalExpression(node) { - context.report({ node, messageId: "noTernaryOperator" }); - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-this-before-super.js b/graphql/node_modules/eslint/lib/rules/no-this-before-super.js deleted file mode 100644 index 01e355ac..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-this-before-super.js +++ /dev/null @@ -1,363 +0,0 @@ -/** - * @fileoverview A rule to disallow using `this`/`super` before `super()`. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given node is a constructor. - * @param {ASTNode} node A node to check. This node type is one of - * `Program`, `FunctionDeclaration`, `FunctionExpression`, and - * `ArrowFunctionExpression`. - * @returns {boolean} `true` if the node is a constructor. - */ -function isConstructorFunction(node) { - return ( - node.type === "FunctionExpression" && - node.parent.type === "MethodDefinition" && - node.parent.kind === "constructor" - ); -} - -/* - * Information for each code path segment. - * - superCalled: The flag which shows `super()` called in all code paths. - * - invalidNodes: The array of invalid ThisExpression and Super nodes. - */ -/** - * - */ -class SegmentInfo { - - /** - * Indicates whether `super()` is called in all code paths. - * @type {boolean} - */ - superCalled = false; - - /** - * The array of invalid ThisExpression and Super nodes. - * @type {ASTNode[]} - */ - invalidNodes = []; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow `this`/`super` before calling `super()` in constructors", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-this-before-super" - }, - - schema: [], - - messages: { - noBeforeSuper: "'{{kind}}' is not allowed before 'super()'." - } - }, - - create(context) { - - /* - * Information for each constructor. - * - upper: Information of the upper constructor. - * - hasExtends: A flag which shows whether the owner class has a valid - * `extends` part. - * - scope: The scope of the owner class. - * - codePath: The code path of this constructor. - */ - let funcInfo = null; - - /** @type {Record} */ - let segInfoMap = Object.create(null); - - /** - * Gets whether or not `super()` is called in a given code path segment. - * @param {CodePathSegment} segment A code path segment to get. - * @returns {boolean} `true` if `super()` is called. - */ - function isCalled(segment) { - return !segment.reachable || segInfoMap[segment.id]?.superCalled; - } - - /** - * Checks whether or not this is in a constructor. - * @returns {boolean} `true` if this is in a constructor. - */ - function isInConstructorOfDerivedClass() { - return Boolean(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends); - } - - /** - * Determines if every segment in a set has been called. - * @param {Set} segments The segments to search. - * @returns {boolean} True if every segment has been called; false otherwise. - */ - function isEverySegmentCalled(segments) { - for (const segment of segments) { - if (!isCalled(segment)) { - return false; - } - } - - return true; - } - - /** - * Checks whether or not this is before `super()` is called. - * @returns {boolean} `true` if this is before `super()` is called. - */ - function isBeforeCallOfSuper() { - return ( - isInConstructorOfDerivedClass() && - !isEverySegmentCalled(funcInfo.currentSegments) - ); - } - - /** - * Sets a given node as invalid. - * @param {ASTNode} node A node to set as invalid. This is one of - * a ThisExpression and a Super. - * @returns {void} - */ - function setInvalid(node) { - const segments = funcInfo.currentSegments; - - for (const segment of segments) { - if (segment.reachable) { - segInfoMap[segment.id].invalidNodes.push(node); - } - } - } - - /** - * Sets the current segment as `super` was called. - * @returns {void} - */ - function setSuperCalled() { - const segments = funcInfo.currentSegments; - - for (const segment of segments) { - if (segment.reachable) { - segInfoMap[segment.id].superCalled = true; - } - } - } - - return { - - /** - * Adds information of a constructor into the stack. - * @param {CodePath} codePath A code path which was started. - * @param {ASTNode} node The current node. - * @returns {void} - */ - onCodePathStart(codePath, node) { - if (isConstructorFunction(node)) { - - // Class > ClassBody > MethodDefinition > FunctionExpression - const classNode = node.parent.parent.parent; - - funcInfo = { - upper: funcInfo, - isConstructor: true, - hasExtends: Boolean( - classNode.superClass && - !astUtils.isNullOrUndefined(classNode.superClass) - ), - codePath, - currentSegments: new Set() - }; - } else { - funcInfo = { - upper: funcInfo, - isConstructor: false, - hasExtends: false, - codePath, - currentSegments: new Set() - }; - } - }, - - /** - * Removes the top of stack item. - * - * And this traverses all segments of this code path then reports every - * invalid node. - * @param {CodePath} codePath A code path which was ended. - * @returns {void} - */ - onCodePathEnd(codePath) { - const isDerivedClass = funcInfo.hasExtends; - - funcInfo = funcInfo.upper; - if (!isDerivedClass) { - return; - } - - /** - * A collection of nodes to avoid duplicate reports. - * @type {Set} - */ - const reported = new Set(); - - codePath.traverseSegments((segment, controller) => { - const info = segInfoMap[segment.id]; - const invalidNodes = info.invalidNodes - .filter( - - /* - * Avoid duplicate reports. - * When there is a `finally`, invalidNodes may contain already reported node. - */ - node => !reported.has(node) - ); - - for (const invalidNode of invalidNodes) { - reported.add(invalidNode); - - context.report({ - messageId: "noBeforeSuper", - node: invalidNode, - data: { - kind: invalidNode.type === "Super" ? "super" : "this" - } - }); - } - - if (info.superCalled) { - controller.skip(); - } - }); - }, - - /** - * Initialize information of a given code path segment. - * @param {CodePathSegment} segment A code path segment to initialize. - * @returns {void} - */ - onCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - - if (!isInConstructorOfDerivedClass()) { - return; - } - - // Initialize info. - segInfoMap[segment.id] = { - superCalled: ( - segment.prevSegments.length > 0 && - segment.prevSegments.every(isCalled) - ), - invalidNodes: [] - }; - }, - - onUnreachableCodePathSegmentStart(segment) { - funcInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - funcInfo.currentSegments.delete(segment); - }, - - /** - * Update information of the code path segment when a code path was - * looped. - * @param {CodePathSegment} fromSegment The code path segment of the - * end of a loop. - * @param {CodePathSegment} toSegment A code path segment of the head - * of a loop. - * @returns {void} - */ - onCodePathSegmentLoop(fromSegment, toSegment) { - if (!isInConstructorOfDerivedClass()) { - return; - } - - // Update information inside of the loop. - funcInfo.codePath.traverseSegments( - { first: toSegment, last: fromSegment }, - (segment, controller) => { - const info = segInfoMap[segment.id] ?? new SegmentInfo(); - - if (info.superCalled) { - controller.skip(); - } else if ( - segment.prevSegments.length > 0 && - segment.prevSegments.every(isCalled) - ) { - info.superCalled = true; - } - - segInfoMap[segment.id] = info; - } - ); - }, - - /** - * Reports if this is before `super()`. - * @param {ASTNode} node A target node. - * @returns {void} - */ - ThisExpression(node) { - if (isBeforeCallOfSuper()) { - setInvalid(node); - } - }, - - /** - * Reports if this is before `super()`. - * @param {ASTNode} node A target node. - * @returns {void} - */ - Super(node) { - if (!astUtils.isCallee(node) && isBeforeCallOfSuper()) { - setInvalid(node); - } - }, - - /** - * Marks `super()` called. - * @param {ASTNode} node A target node. - * @returns {void} - */ - "CallExpression:exit"(node) { - if (node.callee.type === "Super" && isBeforeCallOfSuper()) { - setSuperCalled(); - } - }, - - /** - * Resets state. - * @returns {void} - */ - "Program:exit"() { - segInfoMap = Object.create(null); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-throw-literal.js b/graphql/node_modules/eslint/lib/rules/no-throw-literal.js deleted file mode 100644 index 07a0df62..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-throw-literal.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @fileoverview Rule to restrict what can be thrown as an exception. - * @author Dieter Oberkofler - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow throwing literals as exceptions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-throw-literal" - }, - - schema: [], - - messages: { - object: "Expected an error object to be thrown.", - undef: "Do not throw undefined." - } - }, - - create(context) { - - return { - - ThrowStatement(node) { - if (!astUtils.couldBeError(node.argument)) { - context.report({ node, messageId: "object" }); - } else if (node.argument.type === "Identifier") { - if (node.argument.name === "undefined") { - context.report({ node, messageId: "undef" }); - } - } - - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-trailing-spaces.js b/graphql/node_modules/eslint/lib/rules/no-trailing-spaces.js deleted file mode 100644 index c188b1fa..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-trailing-spaces.js +++ /dev/null @@ -1,192 +0,0 @@ -/** - * @fileoverview Disallow trailing spaces at the end of lines. - * @author Nodeca Team - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow trailing whitespace at the end of lines", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-trailing-spaces" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - skipBlankLines: { - type: "boolean", - default: false - }, - ignoreComments: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - trailingSpace: "Trailing spaces not allowed." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const BLANK_CLASS = "[ \t\u00a0\u2000-\u200b\u3000]", - SKIP_BLANK = `^${BLANK_CLASS}*$`, - NONBLANK = `${BLANK_CLASS}+$`; - - const options = context.options[0] || {}, - skipBlankLines = options.skipBlankLines || false, - ignoreComments = options.ignoreComments || false; - - /** - * Report the error message - * @param {ASTNode} node node to report - * @param {int[]} location range information - * @param {int[]} fixRange Range based on the whole program - * @returns {void} - */ - function report(node, location, fixRange) { - - /* - * Passing node is a bit dirty, because message data will contain big - * text in `source`. But... who cares :) ? - * One more kludge will not make worse the bloody wizardry of this - * plugin. - */ - context.report({ - node, - loc: location, - messageId: "trailingSpace", - fix(fixer) { - return fixer.removeRange(fixRange); - } - }); - } - - /** - * Given a list of comment nodes, return the line numbers for those comments. - * @param {Array} comments An array of comment nodes. - * @returns {number[]} An array of line numbers containing comments. - */ - function getCommentLineNumbers(comments) { - const lines = new Set(); - - comments.forEach(comment => { - const endLine = comment.type === "Block" - ? comment.loc.end.line - 1 - : comment.loc.end.line; - - for (let i = comment.loc.start.line; i <= endLine; i++) { - lines.add(i); - } - }); - - return lines; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - Program: function checkTrailingSpaces(node) { - - /* - * Let's hack. Since Espree does not return whitespace nodes, - * fetch the source code and do matching via regexps. - */ - - const re = new RegExp(NONBLANK, "u"), - skipMatch = new RegExp(SKIP_BLANK, "u"), - lines = sourceCode.lines, - linebreaks = sourceCode.getText().match(astUtils.createGlobalLinebreakMatcher()), - comments = sourceCode.getAllComments(), - commentLineNumbers = getCommentLineNumbers(comments); - - let totalLength = 0; - - for (let i = 0, ii = lines.length; i < ii; i++) { - const lineNumber = i + 1; - - /* - * Always add linebreak length to line length to accommodate for line break (\n or \r\n) - * Because during the fix time they also reserve one spot in the array. - * Usually linebreak length is 2 for \r\n (CRLF) and 1 for \n (LF) - */ - const linebreakLength = linebreaks && linebreaks[i] ? linebreaks[i].length : 1; - const lineLength = lines[i].length + linebreakLength; - - const matches = re.exec(lines[i]); - - if (matches) { - const location = { - start: { - line: lineNumber, - column: matches.index - }, - end: { - line: lineNumber, - column: lineLength - linebreakLength - } - }; - - const rangeStart = totalLength + location.start.column; - const rangeEnd = totalLength + location.end.column; - const containingNode = sourceCode.getNodeByRangeIndex(rangeStart); - - if (containingNode && containingNode.type === "TemplateElement" && - rangeStart > containingNode.parent.range[0] && - rangeEnd < containingNode.parent.range[1]) { - totalLength += lineLength; - continue; - } - - /* - * If the line has only whitespace, and skipBlankLines - * is true, don't report it - */ - if (skipBlankLines && skipMatch.test(lines[i])) { - totalLength += lineLength; - continue; - } - - const fixRange = [rangeStart, rangeEnd]; - - if (!ignoreComments || !commentLineNumbers.has(lineNumber)) { - report(node, location, fixRange); - } - } - - totalLength += lineLength; - } - } - - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-undef-init.js b/graphql/node_modules/eslint/lib/rules/no-undef-init.js deleted file mode 100644 index be19d6f9..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-undef-init.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @fileoverview Rule to flag when initializing to undefined - * @author Ilya Volodin - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow initializing variables to `undefined`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-undef-init" - }, - - schema: [], - fixable: "code", - - messages: { - unnecessaryUndefinedInit: "It's not necessary to initialize '{{name}}' to undefined." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - - VariableDeclarator(node) { - const name = sourceCode.getText(node.id), - init = node.init && node.init.name, - scope = sourceCode.getScope(node), - undefinedVar = astUtils.getVariableByName(scope, "undefined"), - shadowed = undefinedVar && undefinedVar.defs.length > 0, - lastToken = sourceCode.getLastToken(node); - - if (init === "undefined" && node.parent.kind !== "const" && !shadowed) { - context.report({ - node, - messageId: "unnecessaryUndefinedInit", - data: { name }, - fix(fixer) { - if (node.parent.kind === "var") { - return null; - } - - if (node.id.type === "ArrayPattern" || node.id.type === "ObjectPattern") { - - // Don't fix destructuring assignment to `undefined`. - return null; - } - - if (sourceCode.commentsExistBetween(node.id, lastToken)) { - return null; - } - - return fixer.removeRange([node.id.range[1], node.range[1]]); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-undef.js b/graphql/node_modules/eslint/lib/rules/no-undef.js deleted file mode 100644 index fe470286..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-undef.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @fileoverview Rule to flag references to undeclared variables. - * @author Mark Macdonald - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks if the given node is the argument of a typeof operator. - * @param {ASTNode} node The AST node being checked. - * @returns {boolean} Whether or not the node is the argument of a typeof operator. - */ -function hasTypeOfOperator(node) { - const parent = node.parent; - - return parent.type === "UnaryExpression" && parent.operator === "typeof"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow the use of undeclared variables unless mentioned in `/*global */` comments", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-undef" - }, - - schema: [ - { - type: "object", - properties: { - typeof: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - undef: "'{{name}}' is not defined." - } - }, - - create(context) { - const options = context.options[0]; - const considerTypeOf = options && options.typeof === true || false; - const sourceCode = context.sourceCode; - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - globalScope.through.forEach(ref => { - const identifier = ref.identifier; - - if (!considerTypeOf && hasTypeOfOperator(identifier)) { - return; - } - - context.report({ - node: identifier, - messageId: "undef", - data: identifier - }); - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-undefined.js b/graphql/node_modules/eslint/lib/rules/no-undefined.js deleted file mode 100644 index 8f47ca1b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-undefined.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @fileoverview Rule to flag references to the undefined variable. - * @author Michael Ficarra - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `undefined` as an identifier", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-undefined" - }, - - schema: [], - - messages: { - unexpectedUndefined: "Unexpected use of undefined." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Report an invalid "undefined" identifier node. - * @param {ASTNode} node The node to report. - * @returns {void} - */ - function report(node) { - context.report({ - node, - messageId: "unexpectedUndefined" - }); - } - - /** - * Checks the given scope for references to `undefined` and reports - * all references found. - * @param {eslint-scope.Scope} scope The scope to check. - * @returns {void} - */ - function checkScope(scope) { - const undefinedVar = scope.set.get("undefined"); - - if (!undefinedVar) { - return; - } - - const references = undefinedVar.references; - - const defs = undefinedVar.defs; - - // Report non-initializing references (those are covered in defs below) - references - .filter(ref => !ref.init) - .forEach(ref => report(ref.identifier)); - - defs.forEach(def => report(def.name)); - } - - return { - "Program:exit"(node) { - const globalScope = sourceCode.getScope(node); - - const stack = [globalScope]; - - while (stack.length) { - const scope = stack.pop(); - - stack.push(...scope.childScopes); - checkScope(scope); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-underscore-dangle.js b/graphql/node_modules/eslint/lib/rules/no-underscore-dangle.js deleted file mode 100644 index a0e05c6c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-underscore-dangle.js +++ /dev/null @@ -1,335 +0,0 @@ -/** - * @fileoverview Rule to flag dangling underscores in variable declarations. - * @author Matt DuVall - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow dangling underscores in identifiers", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-underscore-dangle" - }, - - schema: [ - { - type: "object", - properties: { - allow: { - type: "array", - items: { - type: "string" - } - }, - allowAfterThis: { - type: "boolean", - default: false - }, - allowAfterSuper: { - type: "boolean", - default: false - }, - allowAfterThisConstructor: { - type: "boolean", - default: false - }, - enforceInMethodNames: { - type: "boolean", - default: false - }, - allowFunctionParams: { - type: "boolean", - default: true - }, - enforceInClassFields: { - type: "boolean", - default: false - }, - allowInArrayDestructuring: { - type: "boolean", - default: true - }, - allowInObjectDestructuring: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedUnderscore: "Unexpected dangling '_' in '{{identifier}}'." - } - }, - - create(context) { - - const options = context.options[0] || {}; - const ALLOWED_VARIABLES = options.allow ? options.allow : []; - const allowAfterThis = typeof options.allowAfterThis !== "undefined" ? options.allowAfterThis : false; - const allowAfterSuper = typeof options.allowAfterSuper !== "undefined" ? options.allowAfterSuper : false; - const allowAfterThisConstructor = typeof options.allowAfterThisConstructor !== "undefined" ? options.allowAfterThisConstructor : false; - const enforceInMethodNames = typeof options.enforceInMethodNames !== "undefined" ? options.enforceInMethodNames : false; - const enforceInClassFields = typeof options.enforceInClassFields !== "undefined" ? options.enforceInClassFields : false; - const allowFunctionParams = typeof options.allowFunctionParams !== "undefined" ? options.allowFunctionParams : true; - const allowInArrayDestructuring = typeof options.allowInArrayDestructuring !== "undefined" ? options.allowInArrayDestructuring : true; - const allowInObjectDestructuring = typeof options.allowInObjectDestructuring !== "undefined" ? options.allowInObjectDestructuring : true; - const sourceCode = context.sourceCode; - - //------------------------------------------------------------------------- - // Helpers - //------------------------------------------------------------------------- - - /** - * Check if identifier is present inside the allowed option - * @param {string} identifier name of the node - * @returns {boolean} true if its is present - * @private - */ - function isAllowed(identifier) { - return ALLOWED_VARIABLES.includes(identifier); - } - - /** - * Check if identifier has a dangling underscore - * @param {string} identifier name of the node - * @returns {boolean} true if its is present - * @private - */ - function hasDanglingUnderscore(identifier) { - const len = identifier.length; - - return identifier !== "_" && (identifier[0] === "_" || identifier[len - 1] === "_"); - } - - /** - * Check if identifier is a special case member expression - * @param {string} identifier name of the node - * @returns {boolean} true if its is a special case - * @private - */ - function isSpecialCaseIdentifierForMemberExpression(identifier) { - return identifier === "__proto__"; - } - - /** - * Check if identifier is a special case variable expression - * @param {string} identifier name of the node - * @returns {boolean} true if its is a special case - * @private - */ - function isSpecialCaseIdentifierInVariableExpression(identifier) { - - // Checks for the underscore library usage here - return identifier === "_"; - } - - /** - * Check if a node is a member reference of this.constructor - * @param {ASTNode} node node to evaluate - * @returns {boolean} true if it is a reference on this.constructor - * @private - */ - function isThisConstructorReference(node) { - return node.object.type === "MemberExpression" && - node.object.property.name === "constructor" && - node.object.object.type === "ThisExpression"; - } - - /** - * Check if function parameter has a dangling underscore. - * @param {ASTNode} node function node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInFunctionParameters(node) { - if (!allowFunctionParams) { - node.params.forEach(param => { - const { type } = param; - let nodeToCheck; - - if (type === "RestElement") { - nodeToCheck = param.argument; - } else if (type === "AssignmentPattern") { - nodeToCheck = param.left; - } else { - nodeToCheck = param; - } - - if (nodeToCheck.type === "Identifier") { - const identifier = nodeToCheck.name; - - if (hasDanglingUnderscore(identifier) && !isAllowed(identifier)) { - context.report({ - node: param, - messageId: "unexpectedUnderscore", - data: { - identifier - } - }); - } - } - }); - } - } - - /** - * Check if function has a dangling underscore - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInFunction(node) { - if (node.type === "FunctionDeclaration" && node.id) { - const identifier = node.id.name; - - if (typeof identifier !== "undefined" && hasDanglingUnderscore(identifier) && !isAllowed(identifier)) { - context.report({ - node, - messageId: "unexpectedUnderscore", - data: { - identifier - } - }); - } - } - checkForDanglingUnderscoreInFunctionParameters(node); - } - - - /** - * Check if variable expression has a dangling underscore - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInVariableExpression(node) { - sourceCode.getDeclaredVariables(node).forEach(variable => { - const definition = variable.defs.find(def => def.node === node); - const identifierNode = definition.name; - const identifier = identifierNode.name; - let parent = identifierNode.parent; - - while (!["VariableDeclarator", "ArrayPattern", "ObjectPattern"].includes(parent.type)) { - parent = parent.parent; - } - - if ( - hasDanglingUnderscore(identifier) && - !isSpecialCaseIdentifierInVariableExpression(identifier) && - !isAllowed(identifier) && - !(allowInArrayDestructuring && parent.type === "ArrayPattern") && - !(allowInObjectDestructuring && parent.type === "ObjectPattern") - ) { - context.report({ - node, - messageId: "unexpectedUnderscore", - data: { - identifier - } - }); - } - }); - } - - /** - * Check if member expression has a dangling underscore - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInMemberExpression(node) { - const identifier = node.property.name, - isMemberOfThis = node.object.type === "ThisExpression", - isMemberOfSuper = node.object.type === "Super", - isMemberOfThisConstructor = isThisConstructorReference(node); - - if (typeof identifier !== "undefined" && hasDanglingUnderscore(identifier) && - !(isMemberOfThis && allowAfterThis) && - !(isMemberOfSuper && allowAfterSuper) && - !(isMemberOfThisConstructor && allowAfterThisConstructor) && - !isSpecialCaseIdentifierForMemberExpression(identifier) && !isAllowed(identifier)) { - context.report({ - node, - messageId: "unexpectedUnderscore", - data: { - identifier - } - }); - } - } - - /** - * Check if method declaration or method property has a dangling underscore - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInMethod(node) { - const identifier = node.key.name; - const isMethod = node.type === "MethodDefinition" || node.type === "Property" && node.method; - - if (typeof identifier !== "undefined" && enforceInMethodNames && isMethod && hasDanglingUnderscore(identifier) && !isAllowed(identifier)) { - context.report({ - node, - messageId: "unexpectedUnderscore", - data: { - identifier: node.key.type === "PrivateIdentifier" - ? `#${identifier}` - : identifier - } - }); - } - } - - /** - * Check if a class field has a dangling underscore - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkForDanglingUnderscoreInClassField(node) { - const identifier = node.key.name; - - if (typeof identifier !== "undefined" && hasDanglingUnderscore(identifier) && - enforceInClassFields && - !isAllowed(identifier)) { - context.report({ - node, - messageId: "unexpectedUnderscore", - data: { - identifier: node.key.type === "PrivateIdentifier" - ? `#${identifier}` - : identifier - } - }); - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - FunctionDeclaration: checkForDanglingUnderscoreInFunction, - VariableDeclarator: checkForDanglingUnderscoreInVariableExpression, - MemberExpression: checkForDanglingUnderscoreInMemberExpression, - MethodDefinition: checkForDanglingUnderscoreInMethod, - PropertyDefinition: checkForDanglingUnderscoreInClassField, - Property: checkForDanglingUnderscoreInMethod, - FunctionExpression: checkForDanglingUnderscoreInFunction, - ArrowFunctionExpression: checkForDanglingUnderscoreInFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unexpected-multiline.js b/graphql/node_modules/eslint/lib/rules/no-unexpected-multiline.js deleted file mode 100644 index 810c08b0..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unexpected-multiline.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @fileoverview Rule to spot scenarios where a newline looks like it is ending a statement, but is not. - * @author Glen Mailer - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow confusing multiline expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unexpected-multiline" - }, - - schema: [], - messages: { - function: "Unexpected newline between function and ( of function call.", - property: "Unexpected newline between object and [ of property access.", - taggedTemplate: "Unexpected newline between template tag and template literal.", - division: "Unexpected newline between numerator and division operator." - } - }, - - create(context) { - - const REGEX_FLAG_MATCHER = /^[gimsuy]+$/u; - - const sourceCode = context.sourceCode; - - /** - * Check to see if there is a newline between the node and the following open bracket - * line's expression - * @param {ASTNode} node The node to check. - * @param {string} messageId The error messageId to use. - * @returns {void} - * @private - */ - function checkForBreakAfter(node, messageId) { - const openParen = sourceCode.getTokenAfter(node, astUtils.isNotClosingParenToken); - const nodeExpressionEnd = sourceCode.getTokenBefore(openParen); - - if (openParen.loc.start.line !== nodeExpressionEnd.loc.end.line) { - context.report({ - node, - loc: openParen.loc, - messageId - }); - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - - MemberExpression(node) { - if (!node.computed || node.optional) { - return; - } - checkForBreakAfter(node.object, "property"); - }, - - TaggedTemplateExpression(node) { - const { quasi } = node; - - // handles common tags, parenthesized tags, and typescript's generic type arguments - const tokenBefore = sourceCode.getTokenBefore(quasi); - - if (tokenBefore.loc.end.line !== quasi.loc.start.line) { - context.report({ - node, - loc: { - start: quasi.loc.start, - end: { - line: quasi.loc.start.line, - column: quasi.loc.start.column + 1 - } - }, - messageId: "taggedTemplate" - }); - } - }, - - CallExpression(node) { - if (node.arguments.length === 0 || node.optional) { - return; - } - checkForBreakAfter(node.callee, "function"); - }, - - "BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(node) { - const secondSlash = sourceCode.getTokenAfter(node, token => token.value === "/"); - const tokenAfterOperator = sourceCode.getTokenAfter(secondSlash); - - if ( - tokenAfterOperator.type === "Identifier" && - REGEX_FLAG_MATCHER.test(tokenAfterOperator.value) && - secondSlash.range[1] === tokenAfterOperator.range[0] - ) { - checkForBreakAfter(node.left, "division"); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js b/graphql/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js deleted file mode 100644 index 768a1557..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unmodified-loop-condition.js +++ /dev/null @@ -1,360 +0,0 @@ -/** - * @fileoverview Rule to disallow use of unmodified expressions in loop conditions - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Traverser = require("../shared/traverser"), - astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SENTINEL_PATTERN = /(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u; -const LOOP_PATTERN = /^(?:DoWhile|For|While)Statement$/u; // for-in/of statements don't have `test` property. -const GROUP_PATTERN = /^(?:BinaryExpression|ConditionalExpression)$/u; -const SKIP_PATTERN = /^(?:ArrowFunction|Class|Function)Expression$/u; -const DYNAMIC_PATTERN = /^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u; - -/** - * @typedef {Object} LoopConditionInfo - * @property {eslint-scope.Reference} reference - The reference. - * @property {ASTNode} group - BinaryExpression or ConditionalExpression nodes - * that the reference is belonging to. - * @property {Function} isInLoop - The predicate which checks a given reference - * is in this loop. - * @property {boolean} modified - The flag that the reference is modified in - * this loop. - */ - -/** - * Checks whether or not a given reference is a write reference. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is a write reference. - */ -function isWriteReference(reference) { - if (reference.init) { - const def = reference.resolved && reference.resolved.defs[0]; - - if (!def || def.type !== "Variable" || def.parent.kind !== "var") { - return false; - } - } - return reference.isWrite(); -} - -/** - * Checks whether or not a given loop condition info does not have the modified - * flag. - * @param {LoopConditionInfo} condition A loop condition info to check. - * @returns {boolean} `true` if the loop condition info is "unmodified". - */ -function isUnmodified(condition) { - return !condition.modified; -} - -/** - * Checks whether or not a given loop condition info does not have the modified - * flag and does not have the group this condition belongs to. - * @param {LoopConditionInfo} condition A loop condition info to check. - * @returns {boolean} `true` if the loop condition info is "unmodified". - */ -function isUnmodifiedAndNotBelongToGroup(condition) { - return !(condition.modified || condition.group); -} - -/** - * Checks whether or not a given reference is inside of a given node. - * @param {ASTNode} node A node to check. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is inside of the node. - */ -function isInRange(node, reference) { - const or = node.range; - const ir = reference.identifier.range; - - return or[0] <= ir[0] && ir[1] <= or[1]; -} - -/** - * Checks whether or not a given reference is inside of a loop node's condition. - * @param {ASTNode} node A node to check. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is inside of the loop node's - * condition. - */ -const isInLoop = { - WhileStatement: isInRange, - DoWhileStatement: isInRange, - ForStatement(node, reference) { - return ( - isInRange(node, reference) && - !(node.init && isInRange(node.init, reference)) - ); - } -}; - -/** - * Gets the function which encloses a given reference. - * This supports only FunctionDeclaration. - * @param {eslint-scope.Reference} reference A reference to get. - * @returns {ASTNode|null} The function node or null. - */ -function getEncloseFunctionDeclaration(reference) { - let node = reference.identifier; - - while (node) { - if (node.type === "FunctionDeclaration") { - return node.id ? node : null; - } - - node = node.parent; - } - - return null; -} - -/** - * Updates the "modified" flags of given loop conditions with given modifiers. - * @param {LoopConditionInfo[]} conditions The loop conditions to be updated. - * @param {eslint-scope.Reference[]} modifiers The references to update. - * @returns {void} - */ -function updateModifiedFlag(conditions, modifiers) { - - for (let i = 0; i < conditions.length; ++i) { - const condition = conditions[i]; - - for (let j = 0; !condition.modified && j < modifiers.length; ++j) { - const modifier = modifiers[j]; - let funcNode, funcVar; - - /* - * Besides checking for the condition being in the loop, we want to - * check the function that this modifier is belonging to is called - * in the loop. - * FIXME: This should probably be extracted to a function. - */ - const inLoop = condition.isInLoop(modifier) || Boolean( - (funcNode = getEncloseFunctionDeclaration(modifier)) && - (funcVar = astUtils.getVariableByName(modifier.from.upper, funcNode.id.name)) && - funcVar.references.some(condition.isInLoop) - ); - - condition.modified = inLoop; - } - } -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow unmodified loop conditions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-unmodified-loop-condition" - }, - - schema: [], - - messages: { - loopConditionNotModified: "'{{name}}' is not modified in this loop." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - let groupMap = null; - - /** - * Reports a given condition info. - * @param {LoopConditionInfo} condition A loop condition info to report. - * @returns {void} - */ - function report(condition) { - const node = condition.reference.identifier; - - context.report({ - node, - messageId: "loopConditionNotModified", - data: node - }); - } - - /** - * Registers given conditions to the group the condition belongs to. - * @param {LoopConditionInfo[]} conditions A loop condition info to - * register. - * @returns {void} - */ - function registerConditionsToGroup(conditions) { - for (let i = 0; i < conditions.length; ++i) { - const condition = conditions[i]; - - if (condition.group) { - let group = groupMap.get(condition.group); - - if (!group) { - group = []; - groupMap.set(condition.group, group); - } - group.push(condition); - } - } - } - - /** - * Reports references which are inside of unmodified groups. - * @param {LoopConditionInfo[]} conditions A loop condition info to report. - * @returns {void} - */ - function checkConditionsInGroup(conditions) { - if (conditions.every(isUnmodified)) { - conditions.forEach(report); - } - } - - /** - * Checks whether or not a given group node has any dynamic elements. - * @param {ASTNode} root A node to check. - * This node is one of BinaryExpression or ConditionalExpression. - * @returns {boolean} `true` if the node is dynamic. - */ - function hasDynamicExpressions(root) { - let retv = false; - - Traverser.traverse(root, { - visitorKeys: sourceCode.visitorKeys, - enter(node) { - if (DYNAMIC_PATTERN.test(node.type)) { - retv = true; - this.break(); - } else if (SKIP_PATTERN.test(node.type)) { - this.skip(); - } - } - }); - - return retv; - } - - /** - * Creates the loop condition information from a given reference. - * @param {eslint-scope.Reference} reference A reference to create. - * @returns {LoopConditionInfo|null} Created loop condition info, or null. - */ - function toLoopCondition(reference) { - if (reference.init) { - return null; - } - - let group = null; - let child = reference.identifier; - let node = child.parent; - - while (node) { - if (SENTINEL_PATTERN.test(node.type)) { - if (LOOP_PATTERN.test(node.type) && node.test === child) { - - // This reference is inside of a loop condition. - return { - reference, - group, - isInLoop: isInLoop[node.type].bind(null, node), - modified: false - }; - } - - // This reference is outside of a loop condition. - break; - } - - /* - * If it's inside of a group, OK if either operand is modified. - * So stores the group this reference belongs to. - */ - if (GROUP_PATTERN.test(node.type)) { - - // If this expression is dynamic, no need to check. - if (hasDynamicExpressions(node)) { - break; - } else { - group = node; - } - } - - child = node; - node = node.parent; - } - - return null; - } - - /** - * Finds unmodified references which are inside of a loop condition. - * Then reports the references which are outside of groups. - * @param {eslint-scope.Variable} variable A variable to report. - * @returns {void} - */ - function checkReferences(variable) { - - // Gets references that exist in loop conditions. - const conditions = variable - .references - .map(toLoopCondition) - .filter(Boolean); - - if (conditions.length === 0) { - return; - } - - // Registers the conditions to belonging groups. - registerConditionsToGroup(conditions); - - // Check the conditions are modified. - const modifiers = variable.references.filter(isWriteReference); - - if (modifiers.length > 0) { - updateModifiedFlag(conditions, modifiers); - } - - /* - * Reports the conditions which are not belonging to groups. - * Others will be reported after all variables are done. - */ - conditions - .filter(isUnmodifiedAndNotBelongToGroup) - .forEach(report); - } - - return { - "Program:exit"(node) { - const queue = [sourceCode.getScope(node)]; - - groupMap = new Map(); - - let scope; - - while ((scope = queue.pop())) { - queue.push(...scope.childScopes); - scope.variables.forEach(checkReferences); - } - - groupMap.forEach(checkConditionsInGroup); - groupMap = null; - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unneeded-ternary.js b/graphql/node_modules/eslint/lib/rules/no-unneeded-ternary.js deleted file mode 100644 index 9bff7fb6..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unneeded-ternary.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @fileoverview Rule to flag no-unneeded-ternary - * @author Gyandeep Singh - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -// Operators that always result in a boolean value -const BOOLEAN_OPERATORS = new Set(["==", "===", "!=", "!==", ">", ">=", "<", "<=", "in", "instanceof"]); -const OPERATOR_INVERSES = { - "==": "!=", - "!=": "==", - "===": "!==", - "!==": "===" - - // Operators like < and >= are not true inverses, since both will return false with NaN. -}; -const OR_PRECEDENCE = astUtils.getPrecedence({ type: "LogicalExpression", operator: "||" }); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow ternary operators when simpler alternatives exist", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-unneeded-ternary" - }, - - schema: [ - { - type: "object", - properties: { - defaultAssignment: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - unnecessaryConditionalExpression: "Unnecessary use of boolean literals in conditional expression.", - unnecessaryConditionalAssignment: "Unnecessary use of conditional expression for default assignment." - } - }, - - create(context) { - const options = context.options[0] || {}; - const defaultAssignment = options.defaultAssignment !== false; - const sourceCode = context.sourceCode; - - /** - * Test if the node is a boolean literal - * @param {ASTNode} node The node to report. - * @returns {boolean} True if the its a boolean literal - * @private - */ - function isBooleanLiteral(node) { - return node.type === "Literal" && typeof node.value === "boolean"; - } - - /** - * Creates an expression that represents the boolean inverse of the expression represented by the original node - * @param {ASTNode} node A node representing an expression - * @returns {string} A string representing an inverted expression - */ - function invertExpression(node) { - if (node.type === "BinaryExpression" && Object.hasOwn(OPERATOR_INVERSES, node.operator)) { - const operatorToken = sourceCode.getFirstTokenBetween( - node.left, - node.right, - token => token.value === node.operator - ); - const text = sourceCode.getText(); - - return text.slice(node.range[0], - operatorToken.range[0]) + OPERATOR_INVERSES[node.operator] + text.slice(operatorToken.range[1], node.range[1]); - } - - if (astUtils.getPrecedence(node) < astUtils.getPrecedence({ type: "UnaryExpression" })) { - return `!(${astUtils.getParenthesisedText(sourceCode, node)})`; - } - return `!${astUtils.getParenthesisedText(sourceCode, node)}`; - } - - /** - * Tests if a given node always evaluates to a boolean value - * @param {ASTNode} node An expression node - * @returns {boolean} True if it is determined that the node will always evaluate to a boolean value - */ - function isBooleanExpression(node) { - return node.type === "BinaryExpression" && BOOLEAN_OPERATORS.has(node.operator) || - node.type === "UnaryExpression" && node.operator === "!"; - } - - /** - * Test if the node matches the pattern id ? id : expression - * @param {ASTNode} node The ConditionalExpression to check. - * @returns {boolean} True if the pattern is matched, and false otherwise - * @private - */ - function matchesDefaultAssignment(node) { - return node.test.type === "Identifier" && - node.consequent.type === "Identifier" && - node.test.name === node.consequent.name; - } - - return { - - ConditionalExpression(node) { - if (isBooleanLiteral(node.alternate) && isBooleanLiteral(node.consequent)) { - context.report({ - node, - messageId: "unnecessaryConditionalExpression", - fix(fixer) { - if (node.consequent.value === node.alternate.value) { - - // Replace `foo ? true : true` with just `true`, but don't replace `foo() ? true : true` - return node.test.type === "Identifier" ? fixer.replaceText(node, node.consequent.value.toString()) : null; - } - if (node.alternate.value) { - - // Replace `foo() ? false : true` with `!(foo())` - return fixer.replaceText(node, invertExpression(node.test)); - } - - // Replace `foo ? true : false` with `foo` if `foo` is guaranteed to be a boolean, or `!!foo` otherwise. - - return fixer.replaceText(node, isBooleanExpression(node.test) ? astUtils.getParenthesisedText(sourceCode, node.test) : `!${invertExpression(node.test)}`); - } - }); - } else if (!defaultAssignment && matchesDefaultAssignment(node)) { - context.report({ - node, - messageId: "unnecessaryConditionalAssignment", - fix(fixer) { - const shouldParenthesizeAlternate = - ( - astUtils.getPrecedence(node.alternate) < OR_PRECEDENCE || - astUtils.isCoalesceExpression(node.alternate) - ) && - !astUtils.isParenthesised(sourceCode, node.alternate); - const alternateText = shouldParenthesizeAlternate - ? `(${sourceCode.getText(node.alternate)})` - : astUtils.getParenthesisedText(sourceCode, node.alternate); - const testText = astUtils.getParenthesisedText(sourceCode, node.test); - - return fixer.replaceText(node, `${testText} || ${alternateText}`); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unreachable-loop.js b/graphql/node_modules/eslint/lib/rules/no-unreachable-loop.js deleted file mode 100644 index 577d39ac..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unreachable-loop.js +++ /dev/null @@ -1,185 +0,0 @@ -/** - * @fileoverview Rule to disallow loops with a body that allows only one iteration - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const allLoopTypes = ["WhileStatement", "DoWhileStatement", "ForStatement", "ForInStatement", "ForOfStatement"]; - -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - -/** - * Determines whether the given node is the first node in the code path to which a loop statement - * 'loops' for the next iteration. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a looping target. - */ -function isLoopingTarget(node) { - const parent = node.parent; - - if (parent) { - switch (parent.type) { - case "WhileStatement": - return node === parent.test; - case "DoWhileStatement": - return node === parent.body; - case "ForStatement": - return node === (parent.update || parent.test || parent.body); - case "ForInStatement": - case "ForOfStatement": - return node === parent.left; - - // no default - } - } - - return false; -} - -/** - * Creates an array with elements from the first given array that are not included in the second given array. - * @param {Array} arrA The array to compare from. - * @param {Array} arrB The array to compare against. - * @returns {Array} a new array that represents `arrA \ arrB`. - */ -function getDifference(arrA, arrB) { - return arrA.filter(a => !arrB.includes(a)); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow loops with a body that allows only one iteration", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-unreachable-loop" - }, - - schema: [{ - type: "object", - properties: { - ignore: { - type: "array", - items: { - enum: allLoopTypes - }, - uniqueItems: true - } - }, - additionalProperties: false - }], - - messages: { - invalid: "Invalid loop. Its body allows only one iteration." - } - }, - - create(context) { - const ignoredLoopTypes = context.options[0] && context.options[0].ignore || [], - loopTypesToCheck = getDifference(allLoopTypes, ignoredLoopTypes), - loopSelector = loopTypesToCheck.join(","), - loopsByTargetSegments = new Map(), - loopsToReport = new Set(); - - const codePathSegments = []; - let currentCodePathSegments = new Set(); - - return { - - onCodePathStart() { - codePathSegments.push(currentCodePathSegments); - currentCodePathSegments = new Set(); - }, - - onCodePathEnd() { - currentCodePathSegments = codePathSegments.pop(); - }, - - onUnreachableCodePathSegmentStart(segment) { - currentCodePathSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - onCodePathSegmentStart(segment, node) { - - currentCodePathSegments.add(segment); - - if (isLoopingTarget(node)) { - const loop = node.parent; - - loopsByTargetSegments.set(segment, loop); - } - }, - - onCodePathSegmentLoop(_, toSegment, node) { - const loop = loopsByTargetSegments.get(toSegment); - - /** - * The second iteration is reachable, meaning that the loop is valid by the logic of this rule, - * only if there is at least one loop event with the appropriate target (which has been already - * determined in the `loopsByTargetSegments` map), raised from either: - * - * - the end of the loop's body (in which case `node === loop`) - * - a `continue` statement - * - * This condition skips loop events raised from `ForInStatement > .right` and `ForOfStatement > .right` nodes. - */ - if (node === loop || node.type === "ContinueStatement") { - - // Removes loop if it exists in the set. Otherwise, `Set#delete` has no effect and doesn't throw. - loopsToReport.delete(loop); - } - }, - - [loopSelector](node) { - - /** - * Ignore unreachable loop statements to avoid unnecessary complexity in the implementation, or false positives otherwise. - * For unreachable segments, the code path analysis does not raise events required for this implementation. - */ - if (isAnySegmentReachable(currentCodePathSegments)) { - loopsToReport.add(node); - } - }, - - - "Program:exit"() { - loopsToReport.forEach( - node => context.report({ node, messageId: "invalid" }) - ); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unreachable.js b/graphql/node_modules/eslint/lib/rules/no-unreachable.js deleted file mode 100644 index 0cf750e4..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unreachable.js +++ /dev/null @@ -1,293 +0,0 @@ -/** - * @fileoverview Checks for unreachable code due to return, throws, break, and continue. - * @author Joel Feenstra - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * @typedef {Object} ConstructorInfo - * @property {ConstructorInfo | null} upper Info about the constructor that encloses this constructor. - * @property {boolean} hasSuperCall The flag about having `super()` expressions. - */ - -/** - * Checks whether or not a given variable declarator has the initializer. - * @param {ASTNode} node A VariableDeclarator node to check. - * @returns {boolean} `true` if the node has the initializer. - */ -function isInitialized(node) { - return Boolean(node.init); -} - -/** - * Checks all segments in a set and returns true if all are unreachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if all segments are unreachable; false otherwise. - */ -function areAllSegmentsUnreachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return false; - } - } - - return true; -} - -/** - * The class to distinguish consecutive unreachable statements. - */ -class ConsecutiveRange { - constructor(sourceCode) { - this.sourceCode = sourceCode; - this.startNode = null; - this.endNode = null; - } - - /** - * The location object of this range. - * @type {Object} - */ - get location() { - return { - start: this.startNode.loc.start, - end: this.endNode.loc.end - }; - } - - /** - * `true` if this range is empty. - * @type {boolean} - */ - get isEmpty() { - return !(this.startNode && this.endNode); - } - - /** - * Checks whether the given node is inside of this range. - * @param {ASTNode|Token} node The node to check. - * @returns {boolean} `true` if the node is inside of this range. - */ - contains(node) { - return ( - node.range[0] >= this.startNode.range[0] && - node.range[1] <= this.endNode.range[1] - ); - } - - /** - * Checks whether the given node is consecutive to this range. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is consecutive to this range. - */ - isConsecutive(node) { - return this.contains(this.sourceCode.getTokenBefore(node)); - } - - /** - * Merges the given node to this range. - * @param {ASTNode} node The node to merge. - * @returns {void} - */ - merge(node) { - this.endNode = node; - } - - /** - * Resets this range by the given node or null. - * @param {ASTNode|null} node The node to reset, or null. - * @returns {void} - */ - reset(node) { - this.startNode = this.endNode = node; - } -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unreachable" - }, - - schema: [], - - messages: { - unreachableCode: "Unreachable code." - } - }, - - create(context) { - - /** @type {ConstructorInfo | null} */ - let constructorInfo = null; - - /** @type {ConsecutiveRange} */ - const range = new ConsecutiveRange(context.sourceCode); - - /** @type {Array>} */ - const codePathSegments = []; - - /** @type {Set} */ - let currentCodePathSegments = new Set(); - - /** - * Reports a given node if it's unreachable. - * @param {ASTNode} node A statement node to report. - * @returns {void} - */ - function reportIfUnreachable(node) { - let nextNode = null; - - if (node && (node.type === "PropertyDefinition" || areAllSegmentsUnreachable(currentCodePathSegments))) { - - // Store this statement to distinguish consecutive statements. - if (range.isEmpty) { - range.reset(node); - return; - } - - // Skip if this statement is inside of the current range. - if (range.contains(node)) { - return; - } - - // Merge if this statement is consecutive to the current range. - if (range.isConsecutive(node)) { - range.merge(node); - return; - } - - nextNode = node; - } - - /* - * Report the current range since this statement is reachable or is - * not consecutive to the current range. - */ - if (!range.isEmpty) { - context.report({ - messageId: "unreachableCode", - loc: range.location, - node: range.startNode - }); - } - - // Update the current range. - range.reset(nextNode); - } - - return { - - // Manages the current code path. - onCodePathStart() { - codePathSegments.push(currentCodePathSegments); - currentCodePathSegments = new Set(); - }, - - onCodePathEnd() { - currentCodePathSegments = codePathSegments.pop(); - }, - - onUnreachableCodePathSegmentStart(segment) { - currentCodePathSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - currentCodePathSegments.delete(segment); - }, - - onCodePathSegmentStart(segment) { - currentCodePathSegments.add(segment); - }, - - // Registers for all statement nodes (excludes FunctionDeclaration). - BlockStatement: reportIfUnreachable, - BreakStatement: reportIfUnreachable, - ClassDeclaration: reportIfUnreachable, - ContinueStatement: reportIfUnreachable, - DebuggerStatement: reportIfUnreachable, - DoWhileStatement: reportIfUnreachable, - ExpressionStatement: reportIfUnreachable, - ForInStatement: reportIfUnreachable, - ForOfStatement: reportIfUnreachable, - ForStatement: reportIfUnreachable, - IfStatement: reportIfUnreachable, - ImportDeclaration: reportIfUnreachable, - LabeledStatement: reportIfUnreachable, - ReturnStatement: reportIfUnreachable, - SwitchStatement: reportIfUnreachable, - ThrowStatement: reportIfUnreachable, - TryStatement: reportIfUnreachable, - - VariableDeclaration(node) { - if (node.kind !== "var" || node.declarations.some(isInitialized)) { - reportIfUnreachable(node); - } - }, - - WhileStatement: reportIfUnreachable, - WithStatement: reportIfUnreachable, - ExportNamedDeclaration: reportIfUnreachable, - ExportDefaultDeclaration: reportIfUnreachable, - ExportAllDeclaration: reportIfUnreachable, - - "Program:exit"() { - reportIfUnreachable(); - }, - - /* - * Instance fields defined in a subclass are never created if the constructor of the subclass - * doesn't call `super()`, so their definitions are unreachable code. - */ - "MethodDefinition[kind='constructor']"() { - constructorInfo = { - upper: constructorInfo, - hasSuperCall: false - }; - }, - "MethodDefinition[kind='constructor']:exit"(node) { - const { hasSuperCall } = constructorInfo; - - constructorInfo = constructorInfo.upper; - - // skip typescript constructors without the body - if (!node.value.body) { - return; - } - - const classDefinition = node.parent.parent; - - if (classDefinition.superClass && !hasSuperCall) { - for (const element of classDefinition.body.body) { - if (element.type === "PropertyDefinition" && !element.static) { - reportIfUnreachable(element); - } - } - } - }, - "CallExpression > Super.callee"() { - if (constructorInfo) { - constructorInfo.hasSuperCall = true; - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unsafe-finally.js b/graphql/node_modules/eslint/lib/rules/no-unsafe-finally.js deleted file mode 100644 index ebd24328..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unsafe-finally.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @fileoverview Rule to flag unsafe statements in finally block - * @author Onur Temizkan - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SENTINEL_NODE_TYPE_RETURN_THROW = /^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u; -const SENTINEL_NODE_TYPE_BREAK = /^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u; -const SENTINEL_NODE_TYPE_CONTINUE = /^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u; - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow control flow statements in `finally` blocks", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unsafe-finally" - }, - - schema: [], - - messages: { - unsafeUsage: "Unsafe usage of {{nodeType}}." - } - }, - create(context) { - - /** - * Checks if the node is the finalizer of a TryStatement - * @param {ASTNode} node node to check. - * @returns {boolean} - true if the node is the finalizer of a TryStatement - */ - function isFinallyBlock(node) { - return node.parent.type === "TryStatement" && node.parent.finalizer === node; - } - - /** - * Climbs up the tree if the node is not a sentinel node - * @param {ASTNode} node node to check. - * @param {string} label label of the break or continue statement - * @returns {boolean} - return whether the node is a finally block or a sentinel node - */ - function isInFinallyBlock(node, label) { - let labelInside = false; - let sentinelNodeType; - - if (node.type === "BreakStatement" && !node.label) { - sentinelNodeType = SENTINEL_NODE_TYPE_BREAK; - } else if (node.type === "ContinueStatement") { - sentinelNodeType = SENTINEL_NODE_TYPE_CONTINUE; - } else { - sentinelNodeType = SENTINEL_NODE_TYPE_RETURN_THROW; - } - - for ( - let currentNode = node; - currentNode && !sentinelNodeType.test(currentNode.type); - currentNode = currentNode.parent - ) { - if (currentNode.parent.label && label && (currentNode.parent.label.name === label.name)) { - labelInside = true; - } - if (isFinallyBlock(currentNode)) { - if (label && labelInside) { - return false; - } - return true; - } - } - return false; - } - - /** - * Checks whether the possibly-unsafe statement is inside a finally block. - * @param {ASTNode} node node to check. - * @returns {void} - */ - function check(node) { - if (isInFinallyBlock(node, node.label)) { - context.report({ - messageId: "unsafeUsage", - data: { - nodeType: node.type - }, - node, - line: node.loc.line, - column: node.loc.column - }); - } - } - - return { - ReturnStatement: check, - ThrowStatement: check, - BreakStatement: check, - ContinueStatement: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unsafe-negation.js b/graphql/node_modules/eslint/lib/rules/no-unsafe-negation.js deleted file mode 100644 index cabd7e2c..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unsafe-negation.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @fileoverview Rule to disallow negating the left operand of relational operators - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether the given operator is `in` or `instanceof` - * @param {string} op The operator type to check. - * @returns {boolean} `true` if the operator is `in` or `instanceof` - */ -function isInOrInstanceOfOperator(op) { - return op === "in" || op === "instanceof"; -} - -/** - * Checks whether the given operator is an ordering relational operator or not. - * @param {string} op The operator type to check. - * @returns {boolean} `true` if the operator is an ordering relational operator. - */ -function isOrderingRelationalOperator(op) { - return op === "<" || op === ">" || op === ">=" || op === "<="; -} - -/** - * Checks whether the given node is a logical negation expression or not. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a logical negation expression. - */ -function isNegation(node) { - return node.type === "UnaryExpression" && node.operator === "!"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow negating the left operand of relational operators", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unsafe-negation" - }, - - hasSuggestions: true, - - schema: [ - { - type: "object", - properties: { - enforceForOrderingRelations: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: null, - - messages: { - unexpected: "Unexpected negating the left operand of '{{operator}}' operator.", - suggestNegatedExpression: "Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.", - suggestParenthesisedNegation: "Wrap negation in '()' to make the intention explicit. This preserves the current behavior." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = context.options[0] || {}; - const enforceForOrderingRelations = options.enforceForOrderingRelations === true; - - return { - BinaryExpression(node) { - const operator = node.operator; - const orderingRelationRuleApplies = enforceForOrderingRelations && isOrderingRelationalOperator(operator); - - if ( - (isInOrInstanceOfOperator(operator) || orderingRelationRuleApplies) && - isNegation(node.left) && - !astUtils.isParenthesised(sourceCode, node.left) - ) { - context.report({ - node, - loc: node.left.loc, - messageId: "unexpected", - data: { operator }, - suggest: [ - { - messageId: "suggestNegatedExpression", - data: { operator }, - fix(fixer) { - const negationToken = sourceCode.getFirstToken(node.left); - const fixRange = [negationToken.range[1], node.range[1]]; - const text = sourceCode.text.slice(fixRange[0], fixRange[1]); - - return fixer.replaceTextRange(fixRange, `(${text})`); - } - }, - { - messageId: "suggestParenthesisedNegation", - fix(fixer) { - return fixer.replaceText(node.left, `(${sourceCode.getText(node.left)})`); - } - } - ] - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js b/graphql/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js deleted file mode 100644 index fa787939..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unsafe-optional-chaining.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * @fileoverview Rule to disallow unsafe optional chaining - * @author Yeon JuAn - */ - -"use strict"; - -const UNSAFE_ARITHMETIC_OPERATORS = new Set(["+", "-", "/", "*", "%", "**"]); -const UNSAFE_ASSIGNMENT_OPERATORS = new Set(["+=", "-=", "/=", "*=", "%=", "**="]); -const UNSAFE_RELATIONAL_OPERATORS = new Set(["in", "instanceof"]); - -/** - * Checks whether a node is a destructuring pattern or not - * @param {ASTNode} node node to check - * @returns {boolean} `true` if a node is a destructuring pattern, otherwise `false` - */ -function isDestructuringPattern(node) { - return node.type === "ObjectPattern" || node.type === "ArrayPattern"; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow use of optional chaining in contexts where the `undefined` value is not allowed", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining" - }, - schema: [{ - type: "object", - properties: { - disallowArithmeticOperators: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - fixable: null, - messages: { - unsafeOptionalChain: "Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.", - unsafeArithmetic: "Unsafe arithmetic operation on optional chaining. It can result in NaN." - } - }, - - create(context) { - const options = context.options[0] || {}; - const disallowArithmeticOperators = (options.disallowArithmeticOperators) || false; - - /** - * Reports unsafe usage of optional chaining - * @param {ASTNode} node node to report - * @returns {void} - */ - function reportUnsafeUsage(node) { - context.report({ - messageId: "unsafeOptionalChain", - node - }); - } - - /** - * Reports unsafe arithmetic operation on optional chaining - * @param {ASTNode} node node to report - * @returns {void} - */ - function reportUnsafeArithmetic(node) { - context.report({ - messageId: "unsafeArithmetic", - node - }); - } - - /** - * Checks and reports if a node can short-circuit with `undefined` by optional chaining. - * @param {ASTNode} [node] node to check - * @param {Function} reportFunc report function - * @returns {void} - */ - function checkUndefinedShortCircuit(node, reportFunc) { - if (!node) { - return; - } - switch (node.type) { - case "LogicalExpression": - if (node.operator === "||" || node.operator === "??") { - checkUndefinedShortCircuit(node.right, reportFunc); - } else if (node.operator === "&&") { - checkUndefinedShortCircuit(node.left, reportFunc); - checkUndefinedShortCircuit(node.right, reportFunc); - } - break; - case "SequenceExpression": - checkUndefinedShortCircuit( - node.expressions.at(-1), - reportFunc - ); - break; - case "ConditionalExpression": - checkUndefinedShortCircuit(node.consequent, reportFunc); - checkUndefinedShortCircuit(node.alternate, reportFunc); - break; - case "AwaitExpression": - checkUndefinedShortCircuit(node.argument, reportFunc); - break; - case "ChainExpression": - reportFunc(node); - break; - default: - break; - } - } - - /** - * Checks unsafe usage of optional chaining - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkUnsafeUsage(node) { - checkUndefinedShortCircuit(node, reportUnsafeUsage); - } - - /** - * Checks unsafe arithmetic operations on optional chaining - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkUnsafeArithmetic(node) { - checkUndefinedShortCircuit(node, reportUnsafeArithmetic); - } - - return { - "AssignmentExpression, AssignmentPattern"(node) { - if (isDestructuringPattern(node.left)) { - checkUnsafeUsage(node.right); - } - }, - "ClassDeclaration, ClassExpression"(node) { - checkUnsafeUsage(node.superClass); - }, - CallExpression(node) { - if (!node.optional) { - checkUnsafeUsage(node.callee); - } - }, - NewExpression(node) { - checkUnsafeUsage(node.callee); - }, - VariableDeclarator(node) { - if (isDestructuringPattern(node.id)) { - checkUnsafeUsage(node.init); - } - }, - MemberExpression(node) { - if (!node.optional) { - checkUnsafeUsage(node.object); - } - }, - TaggedTemplateExpression(node) { - checkUnsafeUsage(node.tag); - }, - ForOfStatement(node) { - checkUnsafeUsage(node.right); - }, - SpreadElement(node) { - if (node.parent && node.parent.type !== "ObjectExpression") { - checkUnsafeUsage(node.argument); - } - }, - BinaryExpression(node) { - if (UNSAFE_RELATIONAL_OPERATORS.has(node.operator)) { - checkUnsafeUsage(node.right); - } - if ( - disallowArithmeticOperators && - UNSAFE_ARITHMETIC_OPERATORS.has(node.operator) - ) { - checkUnsafeArithmetic(node.right); - checkUnsafeArithmetic(node.left); - } - }, - WithStatement(node) { - checkUnsafeUsage(node.object); - }, - UnaryExpression(node) { - if ( - disallowArithmeticOperators && - UNSAFE_ARITHMETIC_OPERATORS.has(node.operator) - ) { - checkUnsafeArithmetic(node.argument); - } - }, - AssignmentExpression(node) { - if ( - disallowArithmeticOperators && - UNSAFE_ASSIGNMENT_OPERATORS.has(node.operator) - ) { - checkUnsafeArithmetic(node.right); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unused-expressions.js b/graphql/node_modules/eslint/lib/rules/no-unused-expressions.js deleted file mode 100644 index 46bb7baa..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unused-expressions.js +++ /dev/null @@ -1,186 +0,0 @@ -/** - * @fileoverview Flag expressions in statement position that do not side effect - * @author Michael Ficarra - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** - * Returns `true`. - * @returns {boolean} `true`. - */ -function alwaysTrue() { - return true; -} - -/** - * Returns `false`. - * @returns {boolean} `false`. - */ -function alwaysFalse() { - return false; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unused expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-unused-expressions" - }, - - schema: [ - { - type: "object", - properties: { - allowShortCircuit: { - type: "boolean", - default: false - }, - allowTernary: { - type: "boolean", - default: false - }, - allowTaggedTemplates: { - type: "boolean", - default: false - }, - enforceForJSX: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unusedExpression: "Expected an assignment or function call and instead saw an expression." - } - }, - - create(context) { - const config = context.options[0] || {}, - allowShortCircuit = config.allowShortCircuit || false, - allowTernary = config.allowTernary || false, - allowTaggedTemplates = config.allowTaggedTemplates || false, - enforceForJSX = config.enforceForJSX || false; - - /** - * Has AST suggesting a directive. - * @param {ASTNode} node any node - * @returns {boolean} whether the given node structurally represents a directive - */ - function looksLikeDirective(node) { - return node.type === "ExpressionStatement" && - node.expression.type === "Literal" && typeof node.expression.value === "string"; - } - - /** - * Gets the leading sequence of members in a list that pass the predicate. - * @param {Function} predicate ([a] -> Boolean) the function used to make the determination - * @param {a[]} list the input list - * @returns {a[]} the leading sequence of members in the given list that pass the given predicate - */ - function takeWhile(predicate, list) { - for (let i = 0; i < list.length; ++i) { - if (!predicate(list[i])) { - return list.slice(0, i); - } - } - return list.slice(); - } - - /** - * Gets leading directives nodes in a Node body. - * @param {ASTNode} node a Program or BlockStatement node - * @returns {ASTNode[]} the leading sequence of directive nodes in the given node's body - */ - function directives(node) { - return takeWhile(looksLikeDirective, node.body); - } - - /** - * Detect if a Node is a directive. - * @param {ASTNode} node any node - * @returns {boolean} whether the given node is considered a directive in its current position - */ - function isDirective(node) { - - /** - * https://tc39.es/ecma262/#directive-prologue - * - * Only `FunctionBody`, `ScriptBody` and `ModuleBody` can have directive prologue. - * Class static blocks do not have directive prologue. - */ - return astUtils.isTopLevelExpressionStatement(node) && directives(node.parent).includes(node); - } - - /** - * The member functions return `true` if the type has no side-effects. - * Unknown nodes are handled as `false`, then this rule ignores those. - */ - const Checker = Object.assign(Object.create(null), { - isDisallowed(node) { - return (Checker[node.type] || alwaysFalse)(node); - }, - - ArrayExpression: alwaysTrue, - ArrowFunctionExpression: alwaysTrue, - BinaryExpression: alwaysTrue, - ChainExpression(node) { - return Checker.isDisallowed(node.expression); - }, - ClassExpression: alwaysTrue, - ConditionalExpression(node) { - if (allowTernary) { - return Checker.isDisallowed(node.consequent) || Checker.isDisallowed(node.alternate); - } - return true; - }, - FunctionExpression: alwaysTrue, - Identifier: alwaysTrue, - JSXElement() { - return enforceForJSX; - }, - JSXFragment() { - return enforceForJSX; - }, - Literal: alwaysTrue, - LogicalExpression(node) { - if (allowShortCircuit) { - return Checker.isDisallowed(node.right); - } - return true; - }, - MemberExpression: alwaysTrue, - MetaProperty: alwaysTrue, - ObjectExpression: alwaysTrue, - SequenceExpression: alwaysTrue, - TaggedTemplateExpression() { - return !allowTaggedTemplates; - }, - TemplateLiteral: alwaysTrue, - ThisExpression: alwaysTrue, - UnaryExpression(node) { - return node.operator !== "void" && node.operator !== "delete"; - } - }); - - return { - ExpressionStatement(node) { - if (Checker.isDisallowed(node.expression) && !isDirective(node)) { - context.report({ node, messageId: "unusedExpression" }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unused-labels.js b/graphql/node_modules/eslint/lib/rules/no-unused-labels.js deleted file mode 100644 index be06b324..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unused-labels.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @fileoverview Rule to disallow unused labels. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unused labels", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unused-labels" - }, - - schema: [], - - fixable: "code", - - messages: { - unused: "'{{name}}:' is defined but never used." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - let scopeInfo = null; - - /** - * Adds a scope info to the stack. - * @param {ASTNode} node A node to add. This is a LabeledStatement. - * @returns {void} - */ - function enterLabeledScope(node) { - scopeInfo = { - label: node.label.name, - used: false, - upper: scopeInfo - }; - } - - /** - * Checks if a `LabeledStatement` node is fixable. - * For a node to be fixable, there must be no comments between the label and the body. - * Furthermore, is must be possible to remove the label without turning the body statement into a - * directive after other fixes are applied. - * @param {ASTNode} node The node to evaluate. - * @returns {boolean} Whether or not the node is fixable. - */ - function isFixable(node) { - - /* - * Only perform a fix if there are no comments between the label and the body. This will be the case - * when there is exactly one token/comment (the ":") between the label and the body. - */ - if (sourceCode.getTokenAfter(node.label, { includeComments: true }) !== - sourceCode.getTokenBefore(node.body, { includeComments: true })) { - return false; - } - - // Looking for the node's deepest ancestor which is not a `LabeledStatement`. - let ancestor = node.parent; - - while (ancestor.type === "LabeledStatement") { - ancestor = ancestor.parent; - } - - if (ancestor.type === "Program" || - (ancestor.type === "BlockStatement" && astUtils.isFunction(ancestor.parent))) { - const { body } = node; - - if (body.type === "ExpressionStatement" && - ((body.expression.type === "Literal" && typeof body.expression.value === "string") || - astUtils.isStaticTemplateLiteral(body.expression))) { - return false; // potential directive - } - } - return true; - } - - /** - * Removes the top of the stack. - * At the same time, this reports the label if it's never used. - * @param {ASTNode} node A node to report. This is a LabeledStatement. - * @returns {void} - */ - function exitLabeledScope(node) { - if (!scopeInfo.used) { - context.report({ - node: node.label, - messageId: "unused", - data: node.label, - fix: isFixable(node) ? fixer => fixer.removeRange([node.range[0], node.body.range[0]]) : null - }); - } - - scopeInfo = scopeInfo.upper; - } - - /** - * Marks the label of a given node as used. - * @param {ASTNode} node A node to mark. This is a BreakStatement or - * ContinueStatement. - * @returns {void} - */ - function markAsUsed(node) { - if (!node.label) { - return; - } - - const label = node.label.name; - let info = scopeInfo; - - while (info) { - if (info.label === label) { - info.used = true; - break; - } - info = info.upper; - } - } - - return { - LabeledStatement: enterLabeledScope, - "LabeledStatement:exit": exitLabeledScope, - BreakStatement: markAsUsed, - ContinueStatement: markAsUsed - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unused-private-class-members.js b/graphql/node_modules/eslint/lib/rules/no-unused-private-class-members.js deleted file mode 100644 index bc05cd25..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unused-private-class-members.js +++ /dev/null @@ -1,195 +0,0 @@ -/** - * @fileoverview Rule to flag declared but unused private class members - * @author Tim van der Lippe - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow unused private class members", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unused-private-class-members" - }, - - schema: [], - - messages: { - unusedPrivateClassMember: "'{{classMemberName}}' is defined but never used." - } - }, - - create(context) { - const trackedClasses = []; - - /** - * Check whether the current node is in a write only assignment. - * @param {ASTNode} privateIdentifierNode Node referring to a private identifier - * @returns {boolean} Whether the node is in a write only assignment - * @private - */ - function isWriteOnlyAssignment(privateIdentifierNode) { - const parentStatement = privateIdentifierNode.parent.parent; - const isAssignmentExpression = parentStatement.type === "AssignmentExpression"; - - if (!isAssignmentExpression && - parentStatement.type !== "ForInStatement" && - parentStatement.type !== "ForOfStatement" && - parentStatement.type !== "AssignmentPattern") { - return false; - } - - // It is a write-only usage, since we still allow usages on the right for reads - if (parentStatement.left !== privateIdentifierNode.parent) { - return false; - } - - // For any other operator (such as '+=') we still consider it a read operation - if (isAssignmentExpression && parentStatement.operator !== "=") { - - /* - * However, if the read operation is "discarded" in an empty statement, then - * we consider it write only. - */ - return parentStatement.parent.type === "ExpressionStatement"; - } - - return true; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - // Collect all declared members up front and assume they are all unused - ClassBody(classBodyNode) { - const privateMembers = new Map(); - - trackedClasses.unshift(privateMembers); - for (const bodyMember of classBodyNode.body) { - if (bodyMember.type === "PropertyDefinition" || bodyMember.type === "MethodDefinition") { - if (bodyMember.key.type === "PrivateIdentifier") { - privateMembers.set(bodyMember.key.name, { - declaredNode: bodyMember, - isAccessor: bodyMember.type === "MethodDefinition" && - (bodyMember.kind === "set" || bodyMember.kind === "get") - }); - } - } - } - }, - - /* - * Process all usages of the private identifier and remove a member from - * `declaredAndUnusedPrivateMembers` if we deem it used. - */ - PrivateIdentifier(privateIdentifierNode) { - const classBody = trackedClasses.find(classProperties => classProperties.has(privateIdentifierNode.name)); - - // Can't happen, as it is a parser to have a missing class body, but let's code defensively here. - if (!classBody) { - return; - } - - // In case any other usage was already detected, we can short circuit the logic here. - const memberDefinition = classBody.get(privateIdentifierNode.name); - - if (memberDefinition.isUsed) { - return; - } - - // The definition of the class member itself - if (privateIdentifierNode.parent.type === "PropertyDefinition" || - privateIdentifierNode.parent.type === "MethodDefinition") { - return; - } - - /* - * Any usage of an accessor is considered a read, as the getter/setter can have - * side-effects in its definition. - */ - if (memberDefinition.isAccessor) { - memberDefinition.isUsed = true; - return; - } - - // Any assignments to this member, except for assignments that also read - if (isWriteOnlyAssignment(privateIdentifierNode)) { - return; - } - - const wrappingExpressionType = privateIdentifierNode.parent.parent.type; - const parentOfWrappingExpressionType = privateIdentifierNode.parent.parent.parent.type; - - // A statement which only increments (`this.#x++;`) - if (wrappingExpressionType === "UpdateExpression" && - parentOfWrappingExpressionType === "ExpressionStatement") { - return; - } - - /* - * ({ x: this.#usedInDestructuring } = bar); - * - * But should treat the following as a read: - * ({ [this.#x]: a } = foo); - */ - if (wrappingExpressionType === "Property" && - parentOfWrappingExpressionType === "ObjectPattern" && - privateIdentifierNode.parent.parent.value === privateIdentifierNode.parent) { - return; - } - - // [...this.#unusedInRestPattern] = bar; - if (wrappingExpressionType === "RestElement") { - return; - } - - // [this.#unusedInAssignmentPattern] = bar; - if (wrappingExpressionType === "ArrayPattern") { - return; - } - - /* - * We can't delete the memberDefinition, as we need to keep track of which member we are marking as used. - * In the case of nested classes, we only mark the first member we encounter as used. If you were to delete - * the member, then any subsequent usage could incorrectly mark the member of an encapsulating parent class - * as used, which is incorrect. - */ - memberDefinition.isUsed = true; - }, - - /* - * Post-process the class members and report any remaining members. - * Since private members can only be accessed in the current class context, - * we can safely assume that all usages are within the current class body. - */ - "ClassBody:exit"() { - const unusedPrivateMembers = trackedClasses.shift(); - - for (const [classMemberName, { declaredNode, isUsed }] of unusedPrivateMembers.entries()) { - if (isUsed) { - continue; - } - context.report({ - node: declaredNode, - loc: declaredNode.key.loc, - messageId: "unusedPrivateClassMember", - data: { - classMemberName: `#${classMemberName}` - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-unused-vars.js b/graphql/node_modules/eslint/lib/rules/no-unused-vars.js deleted file mode 100644 index 60454929..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-unused-vars.js +++ /dev/null @@ -1,881 +0,0 @@ -/** - * @fileoverview Rule to flag declared but unused variables - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Typedefs -//------------------------------------------------------------------------------ - -/** - * A simple name for the types of variables that this rule supports - * @typedef {'array-destructure'|'catch-clause'|'parameter'|'variable'} VariableType - */ - -/** - * Bag of data used for formatting the `unusedVar` lint message. - * @typedef {Object} UnusedVarMessageData - * @property {string} varName The name of the unused var. - * @property {'defined'|'assigned a value'} action Description of the vars state. - * @property {string} additional Any additional info to be appended at the end. - */ - -/** - * Bag of data used for formatting the `usedIgnoredVar` lint message. - * @typedef {Object} UsedIgnoredVarMessageData - * @property {string} varName The name of the unused var. - * @property {string} additional Any additional info to be appended at the end. - */ - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow unused variables", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-unused-vars" - }, - - schema: [ - { - oneOf: [ - { - enum: ["all", "local"] - }, - { - type: "object", - properties: { - vars: { - enum: ["all", "local"] - }, - varsIgnorePattern: { - type: "string" - }, - args: { - enum: ["all", "after-used", "none"] - }, - ignoreRestSiblings: { - type: "boolean" - }, - argsIgnorePattern: { - type: "string" - }, - caughtErrors: { - enum: ["all", "none"] - }, - caughtErrorsIgnorePattern: { - type: "string" - }, - destructuredArrayIgnorePattern: { - type: "string" - }, - ignoreClassWithStaticInitBlock: { - type: "boolean" - }, - reportUsedIgnorePattern: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.", - usedIgnoredVar: "'{{varName}}' is marked as ignored but is used{{additional}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const REST_PROPERTY_TYPE = /^(?:RestElement|(?:Experimental)?RestProperty)$/u; - - const config = { - vars: "all", - args: "after-used", - ignoreRestSiblings: false, - caughtErrors: "all", - ignoreClassWithStaticInitBlock: false, - reportUsedIgnorePattern: false - }; - - const firstOption = context.options[0]; - - if (firstOption) { - if (typeof firstOption === "string") { - config.vars = firstOption; - } else { - config.vars = firstOption.vars || config.vars; - config.args = firstOption.args || config.args; - config.ignoreRestSiblings = firstOption.ignoreRestSiblings || config.ignoreRestSiblings; - config.caughtErrors = firstOption.caughtErrors || config.caughtErrors; - config.ignoreClassWithStaticInitBlock = firstOption.ignoreClassWithStaticInitBlock || config.ignoreClassWithStaticInitBlock; - config.reportUsedIgnorePattern = firstOption.reportUsedIgnorePattern || config.reportUsedIgnorePattern; - - if (firstOption.varsIgnorePattern) { - config.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern, "u"); - } - - if (firstOption.argsIgnorePattern) { - config.argsIgnorePattern = new RegExp(firstOption.argsIgnorePattern, "u"); - } - - if (firstOption.caughtErrorsIgnorePattern) { - config.caughtErrorsIgnorePattern = new RegExp(firstOption.caughtErrorsIgnorePattern, "u"); - } - - if (firstOption.destructuredArrayIgnorePattern) { - config.destructuredArrayIgnorePattern = new RegExp(firstOption.destructuredArrayIgnorePattern, "u"); - } - } - } - - /** - * Determines what variable type a def is. - * @param {Object} def the declaration to check - * @returns {VariableType} a simple name for the types of variables that this rule supports - */ - function defToVariableType(def) { - - /* - * This `destructuredArrayIgnorePattern` error report works differently from the catch - * clause and parameter error reports. _Both_ the `varsIgnorePattern` and the - * `destructuredArrayIgnorePattern` will be checked for array destructuring. However, - * for the purposes of the report, the currently defined behavior is to only inform the - * user of the `destructuredArrayIgnorePattern` if it's present (regardless of the fact - * that the `varsIgnorePattern` would also apply). If it's not present, the user will be - * informed of the `varsIgnorePattern`, assuming that's present. - */ - if (config.destructuredArrayIgnorePattern && def.name.parent.type === "ArrayPattern") { - return "array-destructure"; - } - - switch (def.type) { - case "CatchClause": - return "catch-clause"; - case "Parameter": - return "parameter"; - default: - return "variable"; - } - } - - /** - * Gets a given variable's description and configured ignore pattern - * based on the provided variableType - * @param {VariableType} variableType a simple name for the types of variables that this rule supports - * @throws {Error} (Unreachable) - * @returns {[string | undefined, string | undefined]} the given variable's description and - * ignore pattern - */ - function getVariableDescription(variableType) { - let pattern; - let variableDescription; - - switch (variableType) { - case "array-destructure": - pattern = config.destructuredArrayIgnorePattern; - variableDescription = "elements of array destructuring"; - break; - - case "catch-clause": - pattern = config.caughtErrorsIgnorePattern; - variableDescription = "caught errors"; - break; - - case "parameter": - pattern = config.argsIgnorePattern; - variableDescription = "args"; - break; - - case "variable": - pattern = config.varsIgnorePattern; - variableDescription = "vars"; - break; - - default: - throw new Error(`Unexpected variable type: ${variableType}`); - } - - if (pattern) { - pattern = pattern.toString(); - } - - return [variableDescription, pattern]; - } - - /** - * Generates the message data about the variable being defined and unused, - * including the ignore pattern if configured. - * @param {Variable} unusedVar eslint-scope variable object. - * @returns {UnusedVarMessageData} The message data to be used with this unused variable. - */ - function getDefinedMessageData(unusedVar) { - const def = unusedVar.defs && unusedVar.defs[0]; - let additionalMessageData = ""; - - if (def) { - const [variableDescription, pattern] = getVariableDescription(defToVariableType(def)); - - if (pattern && variableDescription) { - additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; - } - } - - return { - varName: unusedVar.name, - action: "defined", - additional: additionalMessageData - }; - } - - /** - * Generate the warning message about the variable being - * assigned and unused, including the ignore pattern if configured. - * @param {Variable} unusedVar eslint-scope variable object. - * @returns {UnusedVarMessageData} The message data to be used with this unused variable. - */ - function getAssignedMessageData(unusedVar) { - const def = unusedVar.defs && unusedVar.defs[0]; - let additionalMessageData = ""; - - if (def) { - const [variableDescription, pattern] = getVariableDescription(defToVariableType(def)); - - if (pattern && variableDescription) { - additionalMessageData = `. Allowed unused ${variableDescription} must match ${pattern}`; - } - } - - return { - varName: unusedVar.name, - action: "assigned a value", - additional: additionalMessageData - }; - } - - /** - * Generate the warning message about a variable being used even though - * it is marked as being ignored. - * @param {Variable} variable eslint-scope variable object - * @param {VariableType} variableType a simple name for the types of variables that this rule supports - * @returns {UsedIgnoredVarMessageData} The message data to be used with - * this used ignored variable. - */ - function getUsedIgnoredMessageData(variable, variableType) { - const [variableDescription, pattern] = getVariableDescription(variableType); - - let additionalMessageData = ""; - - if (pattern && variableDescription) { - additionalMessageData = `. Used ${variableDescription} must not match ${pattern}`; - } - - return { - varName: variable.name, - additional: additionalMessageData - }; - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const STATEMENT_TYPE = /(?:Statement|Declaration)$/u; - - /** - * Determines if a given variable is being exported from a module. - * @param {Variable} variable eslint-scope variable object. - * @returns {boolean} True if the variable is exported, false if not. - * @private - */ - function isExported(variable) { - - const definition = variable.defs[0]; - - if (definition) { - - let node = definition.node; - - if (node.type === "VariableDeclarator") { - node = node.parent; - } else if (definition.type === "Parameter") { - return false; - } - - return node.parent.type.indexOf("Export") === 0; - } - return false; - - } - - /** - * Checks whether a node is a sibling of the rest property or not. - * @param {ASTNode} node a node to check - * @returns {boolean} True if the node is a sibling of the rest property, otherwise false. - */ - function hasRestSibling(node) { - return node.type === "Property" && - node.parent.type === "ObjectPattern" && - REST_PROPERTY_TYPE.test(node.parent.properties.at(-1).type); - } - - /** - * Determines if a variable has a sibling rest property - * @param {Variable} variable eslint-scope variable object. - * @returns {boolean} True if the variable has a sibling rest property, false if not. - * @private - */ - function hasRestSpreadSibling(variable) { - if (config.ignoreRestSiblings) { - const hasRestSiblingDefinition = variable.defs.some(def => hasRestSibling(def.name.parent)); - const hasRestSiblingReference = variable.references.some(ref => hasRestSibling(ref.identifier.parent)); - - return hasRestSiblingDefinition || hasRestSiblingReference; - } - - return false; - } - - /** - * Determines if a reference is a read operation. - * @param {Reference} ref An eslint-scope Reference - * @returns {boolean} whether the given reference represents a read operation - * @private - */ - function isReadRef(ref) { - return ref.isRead(); - } - - /** - * Determine if an identifier is referencing an enclosing function name. - * @param {Reference} ref The reference to check. - * @param {ASTNode[]} nodes The candidate function nodes. - * @returns {boolean} True if it's a self-reference, false if not. - * @private - */ - function isSelfReference(ref, nodes) { - let scope = ref.from; - - while (scope) { - if (nodes.includes(scope.block)) { - return true; - } - - scope = scope.upper; - } - - return false; - } - - /** - * Gets a list of function definitions for a specified variable. - * @param {Variable} variable eslint-scope variable object. - * @returns {ASTNode[]} Function nodes. - * @private - */ - function getFunctionDefinitions(variable) { - const functionDefinitions = []; - - variable.defs.forEach(def => { - const { type, node } = def; - - // FunctionDeclarations - if (type === "FunctionName") { - functionDefinitions.push(node); - } - - // FunctionExpressions - if (type === "Variable" && node.init && - (node.init.type === "FunctionExpression" || node.init.type === "ArrowFunctionExpression")) { - functionDefinitions.push(node.init); - } - }); - return functionDefinitions; - } - - /** - * Checks the position of given nodes. - * @param {ASTNode} inner A node which is expected as inside. - * @param {ASTNode} outer A node which is expected as outside. - * @returns {boolean} `true` if the `inner` node exists in the `outer` node. - * @private - */ - function isInside(inner, outer) { - return ( - inner.range[0] >= outer.range[0] && - inner.range[1] <= outer.range[1] - ); - } - - /** - * Checks whether a given node is unused expression or not. - * @param {ASTNode} node The node itself - * @returns {boolean} The node is an unused expression. - * @private - */ - function isUnusedExpression(node) { - const parent = node.parent; - - if (parent.type === "ExpressionStatement") { - return true; - } - - if (parent.type === "SequenceExpression") { - const isLastExpression = parent.expressions.at(-1) === node; - - if (!isLastExpression) { - return true; - } - return isUnusedExpression(parent); - } - - return false; - } - - /** - * If a given reference is left-hand side of an assignment, this gets - * the right-hand side node of the assignment. - * - * In the following cases, this returns null. - * - * - The reference is not the LHS of an assignment expression. - * - The reference is inside of a loop. - * - The reference is inside of a function scope which is different from - * the declaration. - * @param {eslint-scope.Reference} ref A reference to check. - * @param {ASTNode} prevRhsNode The previous RHS node. - * @returns {ASTNode|null} The RHS node or null. - * @private - */ - function getRhsNode(ref, prevRhsNode) { - const id = ref.identifier; - const parent = id.parent; - const refScope = ref.from.variableScope; - const varScope = ref.resolved.scope.variableScope; - const canBeUsedLater = refScope !== varScope || astUtils.isInLoop(id); - - /* - * Inherits the previous node if this reference is in the node. - * This is for `a = a + a`-like code. - */ - if (prevRhsNode && isInside(id, prevRhsNode)) { - return prevRhsNode; - } - - if (parent.type === "AssignmentExpression" && - isUnusedExpression(parent) && - id === parent.left && - !canBeUsedLater - ) { - return parent.right; - } - return null; - } - - /** - * Checks whether a given function node is stored to somewhere or not. - * If the function node is stored, the function can be used later. - * @param {ASTNode} funcNode A function node to check. - * @param {ASTNode} rhsNode The RHS node of the previous assignment. - * @returns {boolean} `true` if under the following conditions: - * - the funcNode is assigned to a variable. - * - the funcNode is bound as an argument of a function call. - * - the function is bound to a property and the object satisfies above conditions. - * @private - */ - function isStorableFunction(funcNode, rhsNode) { - let node = funcNode; - let parent = funcNode.parent; - - while (parent && isInside(parent, rhsNode)) { - switch (parent.type) { - case "SequenceExpression": - if (parent.expressions.at(-1) !== node) { - return false; - } - break; - - case "CallExpression": - case "NewExpression": - return parent.callee !== node; - - case "AssignmentExpression": - case "TaggedTemplateExpression": - case "YieldExpression": - return true; - - default: - if (STATEMENT_TYPE.test(parent.type)) { - - /* - * If it encountered statements, this is a complex pattern. - * Since analyzing complex patterns is hard, this returns `true` to avoid false positive. - */ - return true; - } - } - - node = parent; - parent = parent.parent; - } - - return false; - } - - /** - * Checks whether a given Identifier node exists inside of a function node which can be used later. - * - * "can be used later" means: - * - the function is assigned to a variable. - * - the function is bound to a property and the object can be used later. - * - the function is bound as an argument of a function call. - * - * If a reference exists in a function which can be used later, the reference is read when the function is called. - * @param {ASTNode} id An Identifier node to check. - * @param {ASTNode} rhsNode The RHS node of the previous assignment. - * @returns {boolean} `true` if the `id` node exists inside of a function node which can be used later. - * @private - */ - function isInsideOfStorableFunction(id, rhsNode) { - const funcNode = astUtils.getUpperFunction(id); - - return ( - funcNode && - isInside(funcNode, rhsNode) && - isStorableFunction(funcNode, rhsNode) - ); - } - - /** - * Checks whether a given reference is a read to update itself or not. - * @param {eslint-scope.Reference} ref A reference to check. - * @param {ASTNode} rhsNode The RHS node of the previous assignment. - * @returns {boolean} The reference is a read to update itself. - * @private - */ - function isReadForItself(ref, rhsNode) { - const id = ref.identifier; - const parent = id.parent; - - return ref.isRead() && ( - - // self update. e.g. `a += 1`, `a++` - ( - ( - parent.type === "AssignmentExpression" && - parent.left === id && - isUnusedExpression(parent) && - !astUtils.isLogicalAssignmentOperator(parent.operator) - ) || - ( - parent.type === "UpdateExpression" && - isUnusedExpression(parent) - ) - ) || - - // in RHS of an assignment for itself. e.g. `a = a + 1` - ( - rhsNode && - isInside(id, rhsNode) && - !isInsideOfStorableFunction(id, rhsNode) - ) - ); - } - - /** - * Determine if an identifier is used either in for-in or for-of loops. - * @param {Reference} ref The reference to check. - * @returns {boolean} whether reference is used in the for-in loops - * @private - */ - function isForInOfRef(ref) { - let target = ref.identifier.parent; - - - // "for (var ...) { return; }" - if (target.type === "VariableDeclarator") { - target = target.parent.parent; - } - - if (target.type !== "ForInStatement" && target.type !== "ForOfStatement") { - return false; - } - - // "for (...) { return; }" - if (target.body.type === "BlockStatement") { - target = target.body.body[0]; - - // "for (...) return;" - } else { - target = target.body; - } - - // For empty loop body - if (!target) { - return false; - } - - return target.type === "ReturnStatement"; - } - - /** - * Determines if the variable is used. - * @param {Variable} variable The variable to check. - * @returns {boolean} True if the variable is used - * @private - */ - function isUsedVariable(variable) { - if (variable.eslintUsed) { - return true; - } - - const functionNodes = getFunctionDefinitions(variable); - const isFunctionDefinition = functionNodes.length > 0; - - let rhsNode = null; - - return variable.references.some(ref => { - if (isForInOfRef(ref)) { - return true; - } - - const forItself = isReadForItself(ref, rhsNode); - - rhsNode = getRhsNode(ref, rhsNode); - - return ( - isReadRef(ref) && - !forItself && - !(isFunctionDefinition && isSelfReference(ref, functionNodes)) - ); - }); - } - - /** - * Checks whether the given variable is after the last used parameter. - * @param {eslint-scope.Variable} variable The variable to check. - * @returns {boolean} `true` if the variable is defined after the last - * used parameter. - */ - function isAfterLastUsedArg(variable) { - const def = variable.defs[0]; - const params = sourceCode.getDeclaredVariables(def.node); - const posteriorParams = params.slice(params.indexOf(variable) + 1); - - // If any used parameters occur after this parameter, do not report. - return !posteriorParams.some(v => v.references.length > 0 || v.eslintUsed); - } - - /** - * Gets an array of variables without read references. - * @param {Scope} scope an eslint-scope Scope object. - * @param {Variable[]} unusedVars an array that saving result. - * @returns {Variable[]} unused variables of the scope and descendant scopes. - * @private - */ - function collectUnusedVariables(scope, unusedVars) { - const variables = scope.variables; - const childScopes = scope.childScopes; - let i, l; - - if (scope.type !== "global" || config.vars === "all") { - for (i = 0, l = variables.length; i < l; ++i) { - const variable = variables[i]; - - // skip a variable of class itself name in the class scope - if (scope.type === "class" && scope.block.id === variable.identifiers[0]) { - continue; - } - - // skip function expression names - if (scope.functionExpressionScope) { - continue; - } - - // skip variables marked with markVariableAsUsed() - if (!config.reportUsedIgnorePattern && variable.eslintUsed) { - continue; - } - - // skip implicit "arguments" variable - if (scope.type === "function" && variable.name === "arguments" && variable.identifiers.length === 0) { - continue; - } - - // explicit global variables don't have definitions. - const def = variable.defs[0]; - - if (def) { - const type = def.type; - const refUsedInArrayPatterns = variable.references.some(ref => ref.identifier.parent.type === "ArrayPattern"); - - // skip elements of array destructuring patterns - if ( - ( - def.name.parent.type === "ArrayPattern" || - refUsedInArrayPatterns - ) && - config.destructuredArrayIgnorePattern && - config.destructuredArrayIgnorePattern.test(def.name.name) - ) { - if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { - context.report({ - node: def.name, - messageId: "usedIgnoredVar", - data: getUsedIgnoredMessageData(variable, "array-destructure") - }); - } - - continue; - } - - if (type === "ClassName") { - const hasStaticBlock = def.node.body.body.some(node => node.type === "StaticBlock"); - - if (config.ignoreClassWithStaticInitBlock && hasStaticBlock) { - continue; - } - } - - // skip catch variables - if (type === "CatchClause") { - if (config.caughtErrors === "none") { - continue; - } - - // skip ignored parameters - if (config.caughtErrorsIgnorePattern && config.caughtErrorsIgnorePattern.test(def.name.name)) { - if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { - context.report({ - node: def.name, - messageId: "usedIgnoredVar", - data: getUsedIgnoredMessageData(variable, "catch-clause") - }); - } - - continue; - } - } else if (type === "Parameter") { - - // skip any setter argument - if ((def.node.parent.type === "Property" || def.node.parent.type === "MethodDefinition") && def.node.parent.kind === "set") { - continue; - } - - // if "args" option is "none", skip any parameter - if (config.args === "none") { - continue; - } - - // skip ignored parameters - if (config.argsIgnorePattern && config.argsIgnorePattern.test(def.name.name)) { - if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { - context.report({ - node: def.name, - messageId: "usedIgnoredVar", - data: getUsedIgnoredMessageData(variable, "parameter") - }); - } - - continue; - } - - // if "args" option is "after-used", skip used variables - if (config.args === "after-used" && astUtils.isFunction(def.name.parent) && !isAfterLastUsedArg(variable)) { - continue; - } - } else { - - // skip ignored variables - if (config.varsIgnorePattern && config.varsIgnorePattern.test(def.name.name)) { - if (config.reportUsedIgnorePattern && isUsedVariable(variable)) { - context.report({ - node: def.name, - messageId: "usedIgnoredVar", - data: getUsedIgnoredMessageData(variable, "variable") - }); - } - - continue; - } - } - } - - if (!isUsedVariable(variable) && !isExported(variable) && !hasRestSpreadSibling(variable)) { - unusedVars.push(variable); - } - } - } - - for (i = 0, l = childScopes.length; i < l; ++i) { - collectUnusedVariables(childScopes[i], unusedVars); - } - - return unusedVars; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - "Program:exit"(programNode) { - const unusedVars = collectUnusedVariables(sourceCode.getScope(programNode), []); - - for (let i = 0, l = unusedVars.length; i < l; ++i) { - const unusedVar = unusedVars[i]; - - // Report the first declaration. - if (unusedVar.defs.length > 0) { - - // report last write reference, https://github.com/eslint/eslint/issues/14324 - const writeReferences = unusedVar.references.filter(ref => ref.isWrite() && ref.from.variableScope === unusedVar.scope.variableScope); - - let referenceToReport; - - if (writeReferences.length > 0) { - referenceToReport = writeReferences.at(-1); - } - - context.report({ - node: referenceToReport ? referenceToReport.identifier : unusedVar.identifiers[0], - messageId: "unusedVar", - data: unusedVar.references.some(ref => ref.isWrite()) - ? getAssignedMessageData(unusedVar) - : getDefinedMessageData(unusedVar) - }); - - // If there are no regular declaration, report the first `/*globals*/` comment directive. - } else if (unusedVar.eslintExplicitGlobalComments) { - const directiveComment = unusedVar.eslintExplicitGlobalComments[0]; - - context.report({ - node: programNode, - loc: astUtils.getNameLocationInGlobalDirectiveComment(sourceCode, directiveComment, unusedVar.name), - messageId: "unusedVar", - data: getDefinedMessageData(unusedVar) - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-use-before-define.js b/graphql/node_modules/eslint/lib/rules/no-use-before-define.js deleted file mode 100644 index 9d6b0434..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-use-before-define.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * @fileoverview Rule to flag use of variables before they are defined - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u; -const FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u; - -/** - * Parses a given value as options. - * @param {any} options A value to parse. - * @returns {Object} The parsed options. - */ -function parseOptions(options) { - let functions = true; - let classes = true; - let variables = true; - let allowNamedExports = false; - - if (typeof options === "string") { - functions = (options !== "nofunc"); - } else if (typeof options === "object" && options !== null) { - functions = options.functions !== false; - classes = options.classes !== false; - variables = options.variables !== false; - allowNamedExports = !!options.allowNamedExports; - } - - return { functions, classes, variables, allowNamedExports }; -} - -/** - * Checks whether or not a given location is inside of the range of a given node. - * @param {ASTNode} node An node to check. - * @param {number} location A location to check. - * @returns {boolean} `true` if the location is inside of the range of the node. - */ -function isInRange(node, location) { - return node && node.range[0] <= location && location <= node.range[1]; -} - -/** - * Checks whether or not a given location is inside of the range of a class static initializer. - * Static initializers are static blocks and initializers of static fields. - * @param {ASTNode} node `ClassBody` node to check static initializers. - * @param {number} location A location to check. - * @returns {boolean} `true` if the location is inside of a class static initializer. - */ -function isInClassStaticInitializerRange(node, location) { - return node.body.some(classMember => ( - ( - classMember.type === "StaticBlock" && - isInRange(classMember, location) - ) || - ( - classMember.type === "PropertyDefinition" && - classMember.static && - classMember.value && - isInRange(classMember.value, location) - ) - )); -} - -/** - * Checks whether a given scope is the scope of a class static initializer. - * Static initializers are static blocks and initializers of static fields. - * @param {eslint-scope.Scope} scope A scope to check. - * @returns {boolean} `true` if the scope is a class static initializer scope. - */ -function isClassStaticInitializerScope(scope) { - if (scope.type === "class-static-block") { - return true; - } - - if (scope.type === "class-field-initializer") { - - // `scope.block` is PropertyDefinition#value node - const propertyDefinition = scope.block.parent; - - return propertyDefinition.static; - } - - return false; -} - -/** - * Checks whether a given reference is evaluated in an execution context - * that isn't the one where the variable it refers to is defined. - * Execution contexts are: - * - top-level - * - functions - * - class field initializers (implicit functions) - * - class static blocks (implicit functions) - * Static class field initializers and class static blocks are automatically run during the class definition evaluation, - * and therefore we'll consider them as a part of the parent execution context. - * Example: - * - * const x = 1; - * - * x; // returns `false` - * () => x; // returns `true` - * - * class C { - * field = x; // returns `true` - * static field = x; // returns `false` - * - * method() { - * x; // returns `true` - * } - * - * static method() { - * x; // returns `true` - * } - * - * static { - * x; // returns `false` - * } - * } - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is from a separate execution context. - */ -function isFromSeparateExecutionContext(reference) { - const variable = reference.resolved; - let scope = reference.from; - - // Scope#variableScope represents execution context - while (variable.scope.variableScope !== scope.variableScope) { - if (isClassStaticInitializerScope(scope.variableScope)) { - scope = scope.variableScope.upper; - } else { - return true; - } - } - - return false; -} - -/** - * Checks whether or not a given reference is evaluated during the initialization of its variable. - * - * This returns `true` in the following cases: - * - * var a = a - * var [a = a] = list - * var {a = a} = obj - * for (var a in a) {} - * for (var a of a) {} - * var C = class { [C]; }; - * var C = class { static foo = C; }; - * var C = class { static { foo = C; } }; - * class C extends C {} - * class C extends (class { static foo = C; }) {} - * class C { [C]; } - * @param {Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is evaluated during the initialization. - */ -function isEvaluatedDuringInitialization(reference) { - if (isFromSeparateExecutionContext(reference)) { - - /* - * Even if the reference appears in the initializer, it isn't evaluated during the initialization. - * For example, `const x = () => x;` is valid. - */ - return false; - } - - const location = reference.identifier.range[1]; - const definition = reference.resolved.defs[0]; - - if (definition.type === "ClassName") { - - // `ClassDeclaration` or `ClassExpression` - const classDefinition = definition.node; - - return ( - isInRange(classDefinition, location) && - - /* - * Class binding is initialized before running static initializers. - * For example, `class C { static foo = C; static { bar = C; } }` is valid. - */ - !isInClassStaticInitializerRange(classDefinition.body, location) - ); - } - - let node = definition.name.parent; - - while (node) { - if (node.type === "VariableDeclarator") { - if (isInRange(node.init, location)) { - return true; - } - if (FOR_IN_OF_TYPE.test(node.parent.parent.type) && - isInRange(node.parent.parent.right, location) - ) { - return true; - } - break; - } else if (node.type === "AssignmentPattern") { - if (isInRange(node.right, location)) { - return true; - } - } else if (SENTINEL_TYPE.test(node.type)) { - break; - } - - node = node.parent; - } - - return false; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow the use of variables before they are defined", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-use-before-define" - }, - - schema: [ - { - oneOf: [ - { - enum: ["nofunc"] - }, - { - type: "object", - properties: { - functions: { type: "boolean" }, - classes: { type: "boolean" }, - variables: { type: "boolean" }, - allowNamedExports: { type: "boolean" } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - usedBeforeDefined: "'{{name}}' was used before it was defined." - } - }, - - create(context) { - const options = parseOptions(context.options[0]); - const sourceCode = context.sourceCode; - - /** - * Determines whether a given reference should be checked. - * - * Returns `false` if the reference is: - * - initialization's (e.g., `let a = 1`). - * - referring to an undefined variable (i.e., if it's an unresolved reference). - * - referring to a variable that is defined, but not in the given source code - * (e.g., global environment variable or `arguments` in functions). - * - allowed by options. - * @param {eslint-scope.Reference} reference The reference - * @returns {boolean} `true` if the reference should be checked - */ - function shouldCheck(reference) { - if (reference.init) { - return false; - } - - const { identifier } = reference; - - if ( - options.allowNamedExports && - identifier.parent.type === "ExportSpecifier" && - identifier.parent.local === identifier - ) { - return false; - } - - const variable = reference.resolved; - - if (!variable || variable.defs.length === 0) { - return false; - } - - const definitionType = variable.defs[0].type; - - if (!options.functions && definitionType === "FunctionName") { - return false; - } - - if ( - ( - !options.variables && definitionType === "Variable" || - !options.classes && definitionType === "ClassName" - ) && - - // don't skip checking the reference if it's in the same execution context, because of TDZ - isFromSeparateExecutionContext(reference) - ) { - return false; - } - - return true; - } - - /** - * Finds and validates all references in a given scope and its child scopes. - * @param {eslint-scope.Scope} scope The scope object. - * @returns {void} - */ - function checkReferencesInScope(scope) { - scope.references.filter(shouldCheck).forEach(reference => { - const variable = reference.resolved; - const definitionIdentifier = variable.defs[0].name; - - if ( - reference.identifier.range[1] < definitionIdentifier.range[1] || - isEvaluatedDuringInitialization(reference) - ) { - context.report({ - node: reference.identifier, - messageId: "usedBeforeDefined", - data: reference.identifier - }); - } - }); - - scope.childScopes.forEach(checkReferencesInScope); - } - - return { - Program(node) { - checkReferencesInScope(sourceCode.getScope(node)); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-assignment.js b/graphql/node_modules/eslint/lib/rules/no-useless-assignment.js deleted file mode 100644 index cac8ba1f..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-assignment.js +++ /dev/null @@ -1,566 +0,0 @@ -/** - * @fileoverview A rule to disallow unnecessary assignments`. - * @author Yosuke Ota - */ - -"use strict"; - -const { findVariable } = require("@eslint-community/eslint-utils"); - -//------------------------------------------------------------------------------ -// Types -//------------------------------------------------------------------------------ - -/** @typedef {import("estree").Node} ASTNode */ -/** @typedef {import("estree").Pattern} Pattern */ -/** @typedef {import("estree").Identifier} Identifier */ -/** @typedef {import("estree").VariableDeclarator} VariableDeclarator */ -/** @typedef {import("estree").AssignmentExpression} AssignmentExpression */ -/** @typedef {import("estree").UpdateExpression} UpdateExpression */ -/** @typedef {import("estree").Expression} Expression */ -/** @typedef {import("eslint-scope").Scope} Scope */ -/** @typedef {import("eslint-scope").Variable} Variable */ -/** @typedef {import("../linter/code-path-analysis/code-path")} CodePath */ -/** @typedef {import("../linter/code-path-analysis/code-path-segment")} CodePathSegment */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Extract identifier from the given pattern node used on the left-hand side of the assignment. - * @param {Pattern} pattern The pattern node to extract identifier - * @returns {Iterable} The extracted identifier - */ -function *extractIdentifiersFromPattern(pattern) { - switch (pattern.type) { - case "Identifier": - yield pattern; - return; - case "ObjectPattern": - for (const property of pattern.properties) { - yield* extractIdentifiersFromPattern(property.type === "Property" ? property.value : property); - } - return; - case "ArrayPattern": - for (const element of pattern.elements) { - if (!element) { - continue; - } - yield* extractIdentifiersFromPattern(element); - } - return; - case "RestElement": - yield* extractIdentifiersFromPattern(pattern.argument); - return; - case "AssignmentPattern": - yield* extractIdentifiersFromPattern(pattern.left); - - // no default - } -} - - -/** - * Checks whether the given identifier node is evaluated after the assignment identifier. - * @param {AssignmentInfo} assignment The assignment info. - * @param {Identifier} identifier The identifier to check. - * @returns {boolean} `true` if the given identifier node is evaluated after the assignment identifier. - */ -function isIdentifierEvaluatedAfterAssignment(assignment, identifier) { - if (identifier.range[0] < assignment.identifier.range[1]) { - return false; - } - if ( - assignment.expression && - assignment.expression.range[0] <= identifier.range[0] && - identifier.range[1] <= assignment.expression.range[1] - ) { - - /* - * The identifier node is in an expression that is evaluated before the assignment. - * e.g. x = id; - * ^^ identifier to check - * ^ assignment identifier - */ - return false; - } - - /* - * e.g. - * x = 42; id; - * ^^ identifier to check - * ^ assignment identifier - * let { x, y = id } = obj; - * ^^ identifier to check - * ^ assignment identifier - */ - return true; -} - -/** - * Checks whether the given identifier node is used between the assigned identifier and the equal sign. - * - * e.g. let { x, y = x } = obj; - * ^ identifier to check - * ^ assigned identifier - * @param {AssignmentInfo} assignment The assignment info. - * @param {Identifier} identifier The identifier to check. - * @returns {boolean} `true` if the given identifier node is used between the assigned identifier and the equal sign. - */ -function isIdentifierUsedBetweenAssignedAndEqualSign(assignment, identifier) { - if (!assignment.expression) { - return false; - } - return ( - assignment.identifier.range[1] <= identifier.range[0] && - identifier.range[1] <= assignment.expression.range[0] - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow variable assignments when the value is not used", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-assignment" - }, - - schema: [], - - messages: { - unnecessaryAssignment: "This assigned value is not used in subsequent statements." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * @typedef {Object} ScopeStack - * @property {CodePath} codePath The code path of this scope stack. - * @property {Scope} scope The scope of this scope stack. - * @property {ScopeStack} upper The upper scope stack. - * @property {Record} segments The map of ScopeStackSegmentInfo. - * @property {Set} currentSegments The current CodePathSegments. - * @property {Map} assignments The map of list of AssignmentInfo for each variable. - */ - /** - * @typedef {Object} ScopeStackSegmentInfo - * @property {CodePathSegment} segment The code path segment. - * @property {Identifier|null} first The first identifier that appears within the segment. - * @property {Identifier|null} last The last identifier that appears within the segment. - * `first` and `last` are used to determine whether an identifier exists within the segment position range. - * Since it is used as a range of segments, we should originally hold all nodes, not just identifiers, - * but since the only nodes to be judged are identifiers, it is sufficient to have a range of identifiers. - */ - /** - * @typedef {Object} AssignmentInfo - * @property {Variable} variable The variable that is assigned. - * @property {Identifier} identifier The identifier that is assigned. - * @property {VariableDeclarator|AssignmentExpression|UpdateExpression} node The node where the variable was updated. - * @property {Expression|null} expression The expression that is evaluated before the assignment. - * @property {CodePathSegment[]} segments The code path segments where the assignment was made. - */ - - /** @type {ScopeStack} */ - let scopeStack = null; - - /** @type {Set} */ - const codePathStartScopes = new Set(); - - /** - * Gets the scope of code path start from given scope - * @param {Scope} scope The initial scope - * @returns {Scope} The scope of code path start - * @throws {Error} Unexpected error - */ - function getCodePathStartScope(scope) { - let target = scope; - - while (target) { - if (codePathStartScopes.has(target)) { - return target; - } - target = target.upper; - } - - // Should be unreachable - return null; - } - - /** - * Verify the given scope stack. - * @param {ScopeStack} target The scope stack to verify. - * @returns {void} - */ - function verify(target) { - - /** - * Checks whether the given identifier is used in the segment. - * @param {CodePathSegment} segment The code path segment. - * @param {Identifier} identifier The identifier to check. - * @returns {boolean} `true` if the identifier is used in the segment. - */ - function isIdentifierUsedInSegment(segment, identifier) { - const segmentInfo = target.segments[segment.id]; - - return ( - segmentInfo.first && - segmentInfo.last && - segmentInfo.first.range[0] <= identifier.range[0] && - identifier.range[1] <= segmentInfo.last.range[1] - ); - } - - /** - * Verifies whether the given assignment info is an used assignment. - * Report if it is an unused assignment. - * @param {AssignmentInfo} targetAssignment The assignment info to verify. - * @param {AssignmentInfo[]} allAssignments The list of all assignment info for variables. - * @returns {void} - */ - function verifyAssignmentIsUsed(targetAssignment, allAssignments) { - - /** - * @typedef {Object} SubsequentSegmentData - * @property {CodePathSegment} segment The code path segment - * @property {AssignmentInfo} [assignment] The first occurrence of the assignment within the segment. - * There is no need to check if the variable is used after this assignment, - * as the value it was assigned will be used. - */ - - /** - * Information used in `getSubsequentSegments()`. - * To avoid unnecessary iterations, cache information that has already been iterated over, - * and if additional iterations are needed, start iterating from the retained position. - */ - const subsequentSegmentData = { - - /** - * Cache of subsequent segment information list that have already been iterated. - * @type {SubsequentSegmentData[]} - */ - results: [], - - /** - * Subsequent segments that have already been iterated on. Used to avoid infinite loops. - * @type {Set} - */ - subsequentSegments: new Set(), - - /** - * Unexplored code path segment. - * If additional iterations are needed, consume this information and iterate. - * @type {CodePathSegment[]} - */ - queueSegments: targetAssignment.segments.flatMap(segment => segment.nextSegments) - }; - - - /** - * Gets the subsequent segments from the segment of - * the assignment currently being validated (targetAssignment). - * @returns {Iterable} the subsequent segments - */ - function *getSubsequentSegments() { - yield* subsequentSegmentData.results; - - while (subsequentSegmentData.queueSegments.length > 0) { - const nextSegment = subsequentSegmentData.queueSegments.shift(); - - if (subsequentSegmentData.subsequentSegments.has(nextSegment)) { - continue; - } - subsequentSegmentData.subsequentSegments.add(nextSegment); - - const assignmentInSegment = allAssignments - .find(otherAssignment => ( - otherAssignment.segments.includes(nextSegment) && - !isIdentifierUsedBetweenAssignedAndEqualSign(otherAssignment, targetAssignment.identifier) - )); - - if (!assignmentInSegment) { - - /* - * Stores the next segment to explore. - * If `assignmentInSegment` exists, - * we are guarding it because we don't need to explore the next segment. - */ - subsequentSegmentData.queueSegments.push(...nextSegment.nextSegments); - } - - /** @type {SubsequentSegmentData} */ - const result = { - segment: nextSegment, - assignment: assignmentInSegment - }; - - subsequentSegmentData.results.push(result); - yield result; - } - } - - - const readReferences = targetAssignment.variable.references.filter(reference => reference.isRead()); - - if (!readReferences.length) { - - /* - * It is not just an unnecessary assignment, but an unnecessary (unused) variable - * and thus should not be reported by this rule because it is reported by `no-unused-vars`. - */ - return; - } - - /** - * Other assignment on the current segment and after current assignment. - */ - const otherAssignmentAfterTargetAssignment = allAssignments - .find(assignment => { - if ( - assignment === targetAssignment || - assignment.segments.length && assignment.segments.every(segment => !targetAssignment.segments.includes(segment)) - ) { - return false; - } - if (isIdentifierEvaluatedAfterAssignment(targetAssignment, assignment.identifier)) { - return true; - } - if ( - assignment.expression && - assignment.expression.range[0] <= targetAssignment.identifier.range[0] && - targetAssignment.identifier.range[1] <= assignment.expression.range[1] - ) { - - /* - * The target assignment is in an expression that is evaluated before the assignment. - * e.g. x=(x=1); - * ^^^ targetAssignment - * ^^^^^^^ assignment - */ - return true; - } - - return false; - }); - - for (const reference of readReferences) { - - /* - * If the scope of the reference is outside the current code path scope, - * we cannot track whether this assignment is not used. - * For example, it can also be called asynchronously. - */ - if (target.scope !== getCodePathStartScope(reference.from)) { - return; - } - - // Checks if it is used in the same segment as the target assignment. - if ( - isIdentifierEvaluatedAfterAssignment(targetAssignment, reference.identifier) && - ( - isIdentifierUsedBetweenAssignedAndEqualSign(targetAssignment, reference.identifier) || - targetAssignment.segments.some(segment => isIdentifierUsedInSegment(segment, reference.identifier)) - ) - ) { - - if ( - otherAssignmentAfterTargetAssignment && - isIdentifierEvaluatedAfterAssignment(otherAssignmentAfterTargetAssignment, reference.identifier) - ) { - - // There was another assignment before the reference. Therefore, it has not been used yet. - continue; - } - - // Uses in statements after the written identifier. - return; - } - - if (otherAssignmentAfterTargetAssignment) { - - /* - * The assignment was followed by another assignment in the same segment. - * Therefore, there is no need to check the next segment. - */ - continue; - } - - // Check subsequent segments. - for (const subsequentSegment of getSubsequentSegments()) { - if (isIdentifierUsedInSegment(subsequentSegment.segment, reference.identifier)) { - if ( - subsequentSegment.assignment && - isIdentifierEvaluatedAfterAssignment(subsequentSegment.assignment, reference.identifier) - ) { - - // There was another assignment before the reference. Therefore, it has not been used yet. - continue; - } - - // It is used - return; - } - } - } - context.report({ - node: targetAssignment.identifier, - messageId: "unnecessaryAssignment" - }); - } - - // Verify that each assignment in the code path is used. - for (const assignments of target.assignments.values()) { - assignments.sort((a, b) => a.identifier.range[0] - b.identifier.range[0]); - for (const assignment of assignments) { - verifyAssignmentIsUsed(assignment, assignments); - } - } - } - - return { - onCodePathStart(codePath, node) { - const scope = sourceCode.getScope(node); - - scopeStack = { - upper: scopeStack, - codePath, - scope, - segments: Object.create(null), - currentSegments: new Set(), - assignments: new Map() - }; - codePathStartScopes.add(scopeStack.scope); - }, - onCodePathEnd() { - verify(scopeStack); - - scopeStack = scopeStack.upper; - }, - onCodePathSegmentStart(segment) { - const segmentInfo = { segment, first: null, last: null }; - - scopeStack.segments[segment.id] = segmentInfo; - scopeStack.currentSegments.add(segment); - }, - onCodePathSegmentEnd(segment) { - scopeStack.currentSegments.delete(segment); - }, - Identifier(node) { - for (const segment of scopeStack.currentSegments) { - const segmentInfo = scopeStack.segments[segment.id]; - - if (!segmentInfo.first) { - segmentInfo.first = node; - } - segmentInfo.last = node; - } - }, - ":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(node) { - if (scopeStack.currentSegments.size === 0) { - - // Ignore unreachable segments - return; - } - - const assignments = scopeStack.assignments; - - let pattern; - let expression = null; - - if (node.type === "VariableDeclarator") { - pattern = node.id; - expression = node.init; - } else if (node.type === "AssignmentExpression") { - pattern = node.left; - expression = node.right; - } else { // UpdateExpression - pattern = node.argument; - } - - for (const identifier of extractIdentifiersFromPattern(pattern)) { - const scope = sourceCode.getScope(identifier); - - /** @type {Variable} */ - const variable = findVariable(scope, identifier); - - if (!variable) { - continue; - } - - // We don't know where global variables are used. - if (variable.scope.type === "global" && variable.defs.length === 0) { - continue; - } - - /* - * If the scope of the variable is outside the current code path scope, - * we cannot track whether this assignment is not used. - */ - if (scopeStack.scope !== getCodePathStartScope(variable.scope)) { - continue; - } - - // Variables marked by `markVariableAsUsed()` or - // exported by "exported" block comment. - if (variable.eslintUsed) { - continue; - } - - // Variables exported by ESM export syntax - if (variable.scope.type === "module") { - if ( - variable.defs - .some(def => ( - (def.type === "Variable" && def.parent.parent.type === "ExportNamedDeclaration") || - ( - def.type === "FunctionName" && - ( - def.node.parent.type === "ExportNamedDeclaration" || - def.node.parent.type === "ExportDefaultDeclaration" - ) - ) || - ( - def.type === "ClassName" && - ( - def.node.parent.type === "ExportNamedDeclaration" || - def.node.parent.type === "ExportDefaultDeclaration" - ) - ) - )) - ) { - continue; - } - if (variable.references.some(reference => reference.identifier.parent.type === "ExportSpecifier")) { - - // It have `export { ... }` reference. - continue; - } - } - - let list = assignments.get(variable); - - if (!list) { - list = []; - assignments.set(variable, list); - } - list.push({ - variable, - identifier, - node, - expression, - segments: [...scopeStack.currentSegments] - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-backreference.js b/graphql/node_modules/eslint/lib/rules/no-useless-backreference.js deleted file mode 100644 index d41a8988..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-backreference.js +++ /dev/null @@ -1,244 +0,0 @@ -/** - * @fileoverview Rule to disallow useless backreferences in regular expressions - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { CALL, CONSTRUCT, ReferenceTracker, getStringIfConstant } = require("@eslint-community/eslint-utils"); -const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const parser = new RegExpParser(); - -/** - * Finds the path from the given `regexpp` AST node to the root node. - * @param {regexpp.Node} node Node. - * @returns {regexpp.Node[]} Array that starts with the given node and ends with the root node. - */ -function getPathToRoot(node) { - const path = []; - let current = node; - - do { - path.push(current); - current = current.parent; - } while (current); - - return path; -} - -/** - * Determines whether the given `regexpp` AST node is a lookaround node. - * @param {regexpp.Node} node Node. - * @returns {boolean} `true` if it is a lookaround node. - */ -function isLookaround(node) { - return node.type === "Assertion" && - (node.kind === "lookahead" || node.kind === "lookbehind"); -} - -/** - * Determines whether the given `regexpp` AST node is a negative lookaround node. - * @param {regexpp.Node} node Node. - * @returns {boolean} `true` if it is a negative lookaround node. - */ -function isNegativeLookaround(node) { - return isLookaround(node) && node.negate; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow useless backreferences in regular expressions", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-useless-backreference" - }, - - schema: [], - - messages: { - nested: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.", - forward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.", - backward: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.", - disjunctive: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.", - intoNegativeLookaround: "Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Checks and reports useless backreferences in the given regular expression. - * @param {ASTNode} node Node that represents regular expression. A regex literal or RegExp constructor call. - * @param {string} pattern Regular expression pattern. - * @param {string} flags Regular expression flags. - * @returns {void} - */ - function checkRegex(node, pattern, flags) { - let regExpAST; - - try { - regExpAST = parser.parsePattern(pattern, 0, pattern.length, { unicode: flags.includes("u"), unicodeSets: flags.includes("v") }); - } catch { - - // Ignore regular expressions with syntax errors - return; - } - - visitRegExpAST(regExpAST, { - onBackreferenceEnter(bref) { - const groups = [bref.resolved].flat(), - brefPath = getPathToRoot(bref); - - const problems = groups.map(group => { - const groupPath = getPathToRoot(group); - - if (brefPath.includes(group)) { - - // group is bref's ancestor => bref is nested ('nested reference') => group hasn't matched yet when bref starts to match. - return { - messageId: "nested", - group - }; - } - - - // Start from the root to find the lowest common ancestor. - let i = brefPath.length - 1, - j = groupPath.length - 1; - - do { - i--; - j--; - } while (brefPath[i] === groupPath[j]); - - const indexOfLowestCommonAncestor = j + 1, - groupCut = groupPath.slice(0, indexOfLowestCommonAncestor), - commonPath = groupPath.slice(indexOfLowestCommonAncestor), - lowestCommonLookaround = commonPath.find(isLookaround), - isMatchingBackward = lowestCommonLookaround && lowestCommonLookaround.kind === "lookbehind"; - - if (groupCut.at(-1).type === "Alternative") { - - // group's and bref's ancestor nodes below the lowest common ancestor are sibling alternatives => they're disjunctive. - return { - messageId: "disjunctive", - group - }; - } - if (!isMatchingBackward && bref.end <= group.start) { - - // bref is left, group is right ('forward reference') => group hasn't matched yet when bref starts to match. - return { - messageId: "forward", - group - }; - } - if (isMatchingBackward && group.end <= bref.start) { - - // the opposite of the previous when the regex is matching backward in a lookbehind context. - return { - messageId: "backward", - group - }; - } - if (groupCut.some(isNegativeLookaround)) { - - // group is in a negative lookaround which isn't bref's ancestor => group has already failed when bref starts to match. - return { - messageId: "intoNegativeLookaround", - group - }; - } - - return null; - }); - - if (problems.length === 0 || problems.some(problem => !problem)) { - - // If there are no problems or no problems with any group then do not report it. - return; - } - - let problemsToReport; - - // Gets problems that appear in the same disjunction. - const problemsInSameDisjunction = problems.filter(problem => problem.messageId !== "disjunctive"); - - if (problemsInSameDisjunction.length) { - - // Only report problems that appear in the same disjunction. - problemsToReport = problemsInSameDisjunction; - } else { - - // If all groups appear in different disjunctions, report it. - problemsToReport = problems; - } - - const [{ messageId, group }, ...other] = problemsToReport; - let otherGroups = ""; - - if (other.length === 1) { - otherGroups = " and another group"; - } else if (other.length > 1) { - otherGroups = ` and other ${other.length} groups`; - } - context.report({ - node, - messageId, - data: { - bref: bref.raw, - group: group.raw, - otherGroups - } - }); - } - }); - } - - return { - "Literal[regex]"(node) { - const { pattern, flags } = node.regex; - - checkRegex(node, pattern, flags); - }, - Program(node) { - const scope = sourceCode.getScope(node), - tracker = new ReferenceTracker(scope), - traceMap = { - RegExp: { - [CALL]: true, - [CONSTRUCT]: true - } - }; - - for (const { node: refNode } of tracker.iterateGlobalReferences(traceMap)) { - const [patternNode, flagsNode] = refNode.arguments, - pattern = getStringIfConstant(patternNode, scope), - flags = getStringIfConstant(flagsNode, scope); - - if (typeof pattern === "string") { - checkRegex(refNode, pattern, flags || ""); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-call.js b/graphql/node_modules/eslint/lib/rules/no-useless-call.js deleted file mode 100644 index dea2b47a..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-call.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @fileoverview A rule to disallow unnecessary `.call()` and `.apply()`. - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a node is a `.call()`/`.apply()`. - * @param {ASTNode} node A CallExpression node to check. - * @returns {boolean} Whether or not the node is a `.call()`/`.apply()`. - */ -function isCallOrNonVariadicApply(node) { - const callee = astUtils.skipChainExpression(node.callee); - - return ( - callee.type === "MemberExpression" && - callee.property.type === "Identifier" && - callee.computed === false && - ( - (callee.property.name === "call" && node.arguments.length >= 1) || - (callee.property.name === "apply" && node.arguments.length === 2 && node.arguments[1].type === "ArrayExpression") - ) - ); -} - - -/** - * Checks whether or not `thisArg` is not changed by `.call()`/`.apply()`. - * @param {ASTNode|null} expectedThis The node that is the owner of the applied function. - * @param {ASTNode} thisArg The node that is given to the first argument of the `.call()`/`.apply()`. - * @param {SourceCode} sourceCode The ESLint source code object. - * @returns {boolean} Whether or not `thisArg` is not changed by `.call()`/`.apply()`. - */ -function isValidThisArg(expectedThis, thisArg, sourceCode) { - if (!expectedThis) { - return astUtils.isNullOrUndefined(thisArg); - } - return astUtils.equalTokens(expectedThis, thisArg, sourceCode); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary calls to `.call()` and `.apply()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-call" - }, - - schema: [], - - messages: { - unnecessaryCall: "Unnecessary '.{{name}}()'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - CallExpression(node) { - if (!isCallOrNonVariadicApply(node)) { - return; - } - - const callee = astUtils.skipChainExpression(node.callee); - const applied = astUtils.skipChainExpression(callee.object); - const expectedThis = (applied.type === "MemberExpression") ? applied.object : null; - const thisArg = node.arguments[0]; - - if (isValidThisArg(expectedThis, thisArg, sourceCode)) { - context.report({ node, messageId: "unnecessaryCall", data: { name: callee.property.name } }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-catch.js b/graphql/node_modules/eslint/lib/rules/no-useless-catch.js deleted file mode 100644 index e02013db..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-catch.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @fileoverview Reports useless `catch` clauses that just rethrow their error. - * @author Teddy Katz - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary `catch` clauses", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-useless-catch" - }, - - schema: [], - - messages: { - unnecessaryCatchClause: "Unnecessary catch clause.", - unnecessaryCatch: "Unnecessary try/catch wrapper." - } - }, - - create(context) { - return { - CatchClause(node) { - if ( - node.param && - node.param.type === "Identifier" && - node.body.body.length && - node.body.body[0].type === "ThrowStatement" && - node.body.body[0].argument.type === "Identifier" && - node.body.body[0].argument.name === node.param.name - ) { - if (node.parent.finalizer) { - context.report({ - node, - messageId: "unnecessaryCatchClause" - }); - } else { - context.report({ - node: node.parent, - messageId: "unnecessaryCatch" - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-computed-key.js b/graphql/node_modules/eslint/lib/rules/no-useless-computed-key.js deleted file mode 100644 index 5cc652be..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-computed-key.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * @fileoverview Rule to disallow unnecessary computed property keys in object literals - * @author Burak Yigit Kaya - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the computed key syntax is unnecessarily used for the given node. - * In particular, it determines whether removing the square brackets and using the content between them - * directly as the key (e.g. ['foo'] -> 'foo') would produce valid syntax and preserve the same behavior. - * Valid non-computed keys are only: identifiers, number literals and string literals. - * Only literals can preserve the same behavior, with a few exceptions for specific node types: - * Property - * - { ["__proto__"]: foo } defines a property named "__proto__" - * { "__proto__": foo } defines object's prototype - * PropertyDefinition - * - class C { ["constructor"]; } defines an instance field named "constructor" - * class C { "constructor"; } produces a parsing error - * - class C { static ["constructor"]; } defines a static field named "constructor" - * class C { static "constructor"; } produces a parsing error - * - class C { static ["prototype"]; } produces a runtime error (doesn't break the whole script) - * class C { static "prototype"; } produces a parsing error (breaks the whole script) - * MethodDefinition - * - class C { ["constructor"]() {} } defines a prototype method named "constructor" - * class C { "constructor"() {} } defines the constructor - * - class C { static ["prototype"]() {} } produces a runtime error (doesn't break the whole script) - * class C { static "prototype"() {} } produces a parsing error (breaks the whole script) - * @param {ASTNode} node The node to check. It can be `Property`, `PropertyDefinition` or `MethodDefinition`. - * @throws {Error} (Unreachable.) - * @returns {void} `true` if the node has useless computed key. - */ -function hasUselessComputedKey(node) { - if (!node.computed) { - return false; - } - - const { key } = node; - - if (key.type !== "Literal") { - return false; - } - - const { value } = key; - - if (typeof value !== "number" && typeof value !== "string") { - return false; - } - - switch (node.type) { - case "Property": - return value !== "__proto__"; - - case "PropertyDefinition": - if (node.static) { - return value !== "constructor" && value !== "prototype"; - } - - return value !== "constructor"; - - case "MethodDefinition": - if (node.static) { - return value !== "prototype"; - } - - return value !== "constructor"; - - /* c8 ignore next */ - default: - throw new Error(`Unexpected node type: ${node.type}`); - } - -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary computed property keys in objects and classes", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-computed-key" - }, - - schema: [{ - type: "object", - properties: { - enforceForClassMembers: { - type: "boolean", - default: true - } - }, - additionalProperties: false - }], - fixable: "code", - - messages: { - unnecessarilyComputedProperty: "Unnecessarily computed property [{{property}}] found." - } - }, - create(context) { - const sourceCode = context.sourceCode; - const enforceForClassMembers = context.options[0]?.enforceForClassMembers ?? true; - - /** - * Reports a given node if it violated this rule. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function check(node) { - if (hasUselessComputedKey(node)) { - const { key } = node; - - context.report({ - node, - messageId: "unnecessarilyComputedProperty", - data: { property: sourceCode.getText(key) }, - fix(fixer) { - const leftSquareBracket = sourceCode.getTokenBefore(key, astUtils.isOpeningBracketToken); - const rightSquareBracket = sourceCode.getTokenAfter(key, astUtils.isClosingBracketToken); - - // If there are comments between the brackets and the property name, don't do a fix. - if (sourceCode.commentsExistBetween(leftSquareBracket, rightSquareBracket)) { - return null; - } - - const tokenBeforeLeftBracket = sourceCode.getTokenBefore(leftSquareBracket); - - // Insert a space before the key to avoid changing identifiers, e.g. ({ get[2]() {} }) to ({ get2() {} }) - const needsSpaceBeforeKey = tokenBeforeLeftBracket.range[1] === leftSquareBracket.range[0] && - !astUtils.canTokensBeAdjacent(tokenBeforeLeftBracket, sourceCode.getFirstToken(key)); - - const replacementKey = (needsSpaceBeforeKey ? " " : "") + key.raw; - - return fixer.replaceTextRange([leftSquareBracket.range[0], rightSquareBracket.range[1]], replacementKey); - } - }); - } - } - - /** - * A no-op function to act as placeholder for checking a node when the `enforceForClassMembers` option is `false`. - * @returns {void} - * @private - */ - function noop() {} - - return { - Property: check, - MethodDefinition: enforceForClassMembers ? check : noop, - PropertyDefinition: enforceForClassMembers ? check : noop - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-concat.js b/graphql/node_modules/eslint/lib/rules/no-useless-concat.js deleted file mode 100644 index c566c62b..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-concat.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @fileoverview disallow unnecessary concatenation of template strings - * @author Henry Zhu - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given node is a concatenation. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a concatenation. - */ -function isConcatenation(node) { - return node.type === "BinaryExpression" && node.operator === "+"; -} - -/** - * Checks if the given token is a `+` token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a `+` token. - */ -function isConcatOperatorToken(token) { - return token.value === "+" && token.type === "Punctuator"; -} - -/** - * Get's the right most node on the left side of a BinaryExpression with + operator. - * @param {ASTNode} node A BinaryExpression node to check. - * @returns {ASTNode} node - */ -function getLeft(node) { - let left = node.left; - - while (isConcatenation(left)) { - left = left.right; - } - return left; -} - -/** - * Get's the left most node on the right side of a BinaryExpression with + operator. - * @param {ASTNode} node A BinaryExpression node to check. - * @returns {ASTNode} node - */ -function getRight(node) { - let right = node.right; - - while (isConcatenation(right)) { - right = right.left; - } - return right; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary concatenation of literals or template literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-concat" - }, - - schema: [], - - messages: { - unexpectedConcat: "Unexpected string concatenation of literals." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - BinaryExpression(node) { - - // check if not concatenation - if (node.operator !== "+") { - return; - } - - // account for the `foo + "a" + "b"` case - const left = getLeft(node); - const right = getRight(node); - - if (astUtils.isStringLiteral(left) && - astUtils.isStringLiteral(right) && - astUtils.isTokenOnSameLine(left, right) - ) { - const operatorToken = sourceCode.getFirstTokenBetween(left, right, isConcatOperatorToken); - - context.report({ - node, - loc: operatorToken.loc, - messageId: "unexpectedConcat" - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-constructor.js b/graphql/node_modules/eslint/lib/rules/no-useless-constructor.js deleted file mode 100644 index 2b9c18e5..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-constructor.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * @fileoverview Rule to flag the use of redundant constructors in classes. - * @author Alberto Rodríguez - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether a given array of statements is a single call of `super`. - * @param {ASTNode[]} body An array of statements to check. - * @returns {boolean} `true` if the body is a single call of `super`. - */ -function isSingleSuperCall(body) { - return ( - body.length === 1 && - body[0].type === "ExpressionStatement" && - body[0].expression.type === "CallExpression" && - body[0].expression.callee.type === "Super" - ); -} - -/** - * Checks whether a given node is a pattern which doesn't have any side effects. - * Default parameters and Destructuring parameters can have side effects. - * @param {ASTNode} node A pattern node. - * @returns {boolean} `true` if the node doesn't have any side effects. - */ -function isSimple(node) { - return node.type === "Identifier" || node.type === "RestElement"; -} - -/** - * Checks whether a given array of expressions is `...arguments` or not. - * `super(...arguments)` passes all arguments through. - * @param {ASTNode[]} superArgs An array of expressions to check. - * @returns {boolean} `true` if the superArgs is `...arguments`. - */ -function isSpreadArguments(superArgs) { - return ( - superArgs.length === 1 && - superArgs[0].type === "SpreadElement" && - superArgs[0].argument.type === "Identifier" && - superArgs[0].argument.name === "arguments" - ); -} - -/** - * Checks whether given 2 nodes are identifiers which have the same name or not. - * @param {ASTNode} ctorParam A node to check. - * @param {ASTNode} superArg A node to check. - * @returns {boolean} `true` if the nodes are identifiers which have the same - * name. - */ -function isValidIdentifierPair(ctorParam, superArg) { - return ( - ctorParam.type === "Identifier" && - superArg.type === "Identifier" && - ctorParam.name === superArg.name - ); -} - -/** - * Checks whether given 2 nodes are a rest/spread pair which has the same values. - * @param {ASTNode} ctorParam A node to check. - * @param {ASTNode} superArg A node to check. - * @returns {boolean} `true` if the nodes are a rest/spread pair which has the - * same values. - */ -function isValidRestSpreadPair(ctorParam, superArg) { - return ( - ctorParam.type === "RestElement" && - superArg.type === "SpreadElement" && - isValidIdentifierPair(ctorParam.argument, superArg.argument) - ); -} - -/** - * Checks whether given 2 nodes have the same value or not. - * @param {ASTNode} ctorParam A node to check. - * @param {ASTNode} superArg A node to check. - * @returns {boolean} `true` if the nodes have the same value or not. - */ -function isValidPair(ctorParam, superArg) { - return ( - isValidIdentifierPair(ctorParam, superArg) || - isValidRestSpreadPair(ctorParam, superArg) - ); -} - -/** - * Checks whether the parameters of a constructor and the arguments of `super()` - * have the same values or not. - * @param {ASTNode} ctorParams The parameters of a constructor to check. - * @param {ASTNode} superArgs The arguments of `super()` to check. - * @returns {boolean} `true` if those have the same values. - */ -function isPassingThrough(ctorParams, superArgs) { - if (ctorParams.length !== superArgs.length) { - return false; - } - - for (let i = 0; i < ctorParams.length; ++i) { - if (!isValidPair(ctorParams[i], superArgs[i])) { - return false; - } - } - - return true; -} - -/** - * Checks whether the constructor body is a redundant super call. - * @param {Array} body constructor body content. - * @param {Array} ctorParams The params to check against super call. - * @returns {boolean} true if the constructor body is redundant - */ -function isRedundantSuperCall(body, ctorParams) { - return ( - isSingleSuperCall(body) && - ctorParams.every(isSimple) && - ( - isSpreadArguments(body[0].expression.arguments) || - isPassingThrough(ctorParams, body[0].expression.arguments) - ) - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary constructors", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-constructor" - }, - - schema: [], - - messages: { - noUselessConstructor: "Useless constructor." - } - }, - - create(context) { - - /** - * Checks whether a node is a redundant constructor - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkForConstructor(node) { - if (node.kind !== "constructor") { - return; - } - - /* - * Prevent crashing on parsers which do not require class constructor - * to have a body, e.g. typescript and flow - */ - if (!node.value.body) { - return; - } - - const body = node.value.body.body; - const ctorParams = node.value.params; - const superClass = node.parent.parent.superClass; - - if (superClass ? isRedundantSuperCall(body, ctorParams) : (body.length === 0)) { - context.report({ - node, - messageId: "noUselessConstructor" - }); - } - } - - return { - MethodDefinition: checkForConstructor - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-escape.js b/graphql/node_modules/eslint/lib/rules/no-useless-escape.js deleted file mode 100644 index 0e0f6f09..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-escape.js +++ /dev/null @@ -1,333 +0,0 @@ -/** - * @fileoverview Look for useless escapes in strings and regexes - * @author Onur Temizkan - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); -const { RegExpParser, visitRegExpAST } = require("@eslint-community/regexpp"); - -/** - * @typedef {import('@eslint-community/regexpp').AST.CharacterClass} CharacterClass - * @typedef {import('@eslint-community/regexpp').AST.ExpressionCharacterClass} ExpressionCharacterClass - */ -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** - * Returns the union of two sets. - * @param {Set} setA The first set - * @param {Set} setB The second set - * @returns {Set} The union of the two sets - */ -function union(setA, setB) { - return new Set(function *() { - yield* setA; - yield* setB; - }()); -} - -const VALID_STRING_ESCAPES = union(new Set("\\nrvtbfux"), astUtils.LINEBREAKS); -const REGEX_GENERAL_ESCAPES = new Set("\\bcdDfnpPrsStvwWxu0123456789]"); -const REGEX_NON_CHARCLASS_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set("^/.$*+?[{}|()Bk")); - -/* - * Set of characters that require escaping in character classes in `unicodeSets` mode. - * ( ) [ ] { } / - \ | are ClassSetSyntaxCharacter - */ -const REGEX_CLASSSET_CHARACTER_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set("q/[{}|()-")); - -/* - * A single character set of ClassSetReservedDoublePunctuator. - * && !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ `` ~~ are ClassSetReservedDoublePunctuator - */ -const REGEX_CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR = new Set("!#$%&*+,.:;<=>?@^`~"); - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow unnecessary escape characters", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-useless-escape" - }, - - hasSuggestions: true, - - messages: { - unnecessaryEscape: "Unnecessary escape character: \\{{character}}.", - removeEscape: "Remove the `\\`. This maintains the current functionality.", - removeEscapeDoNotKeepSemantics: "Remove the `\\` if it was inserted by mistake.", - escapeBackslash: "Replace the `\\` with `\\\\` to include the actual backslash character." - }, - - schema: [] - }, - - create(context) { - const sourceCode = context.sourceCode; - const parser = new RegExpParser(); - - /** - * Reports a node - * @param {ASTNode} node The node to report - * @param {number} startOffset The backslash's offset from the start of the node - * @param {string} character The uselessly escaped character (not including the backslash) - * @param {boolean} [disableEscapeBackslashSuggest] `true` if escapeBackslash suggestion should be turned off. - * @returns {void} - */ - function report(node, startOffset, character, disableEscapeBackslashSuggest) { - const rangeStart = node.range[0] + startOffset; - const range = [rangeStart, rangeStart + 1]; - const start = sourceCode.getLocFromIndex(rangeStart); - - context.report({ - node, - loc: { - start, - end: { line: start.line, column: start.column + 1 } - }, - messageId: "unnecessaryEscape", - data: { character }, - suggest: [ - { - - // Removing unnecessary `\` characters in a directive is not guaranteed to maintain functionality. - messageId: astUtils.isDirective(node.parent) - ? "removeEscapeDoNotKeepSemantics" : "removeEscape", - fix(fixer) { - return fixer.removeRange(range); - } - }, - ...disableEscapeBackslashSuggest - ? [] - : [ - { - messageId: "escapeBackslash", - fix(fixer) { - return fixer.insertTextBeforeRange(range, "\\"); - } - } - ] - ] - }); - } - - /** - * Checks if the escape character in given string slice is unnecessary. - * @private - * @param {ASTNode} node node to validate. - * @param {string} match string slice to validate. - * @returns {void} - */ - function validateString(node, match) { - const isTemplateElement = node.type === "TemplateElement"; - const escapedChar = match[0][1]; - let isUnnecessaryEscape = !VALID_STRING_ESCAPES.has(escapedChar); - let isQuoteEscape; - - if (isTemplateElement) { - isQuoteEscape = escapedChar === "`"; - - if (escapedChar === "$") { - - // Warn if `\$` is not followed by `{` - isUnnecessaryEscape = match.input[match.index + 2] !== "{"; - } else if (escapedChar === "{") { - - /* - * Warn if `\{` is not preceded by `$`. If preceded by `$`, escaping - * is necessary and the rule should not warn. If preceded by `/$`, the rule - * will warn for the `/$` instead, as it is the first unnecessarily escaped character. - */ - isUnnecessaryEscape = match.input[match.index - 1] !== "$"; - } - } else { - isQuoteEscape = escapedChar === node.raw[0]; - } - - if (isUnnecessaryEscape && !isQuoteEscape) { - report(node, match.index, match[0].slice(1)); - } - } - - /** - * Checks if the escape character in given regexp is unnecessary. - * @private - * @param {ASTNode} node node to validate. - * @returns {void} - */ - function validateRegExp(node) { - const { pattern, flags } = node.regex; - let patternNode; - const unicode = flags.includes("u"); - const unicodeSets = flags.includes("v"); - - try { - patternNode = parser.parsePattern(pattern, 0, pattern.length, { unicode, unicodeSets }); - } catch { - - // Ignore regular expressions with syntax errors - return; - } - - /** @type {(CharacterClass | ExpressionCharacterClass)[]} */ - const characterClassStack = []; - - visitRegExpAST(patternNode, { - onCharacterClassEnter: characterClassNode => characterClassStack.unshift(characterClassNode), - onCharacterClassLeave: () => characterClassStack.shift(), - onExpressionCharacterClassEnter: characterClassNode => characterClassStack.unshift(characterClassNode), - onExpressionCharacterClassLeave: () => characterClassStack.shift(), - onCharacterEnter(characterNode) { - if (!characterNode.raw.startsWith("\\")) { - - // It's not an escaped character. - return; - } - - const escapedChar = characterNode.raw.slice(1); - - if (escapedChar !== String.fromCodePoint(characterNode.value)) { - - // It's a valid escape. - return; - } - let allowedEscapes; - - if (characterClassStack.length) { - allowedEscapes = unicodeSets ? REGEX_CLASSSET_CHARACTER_ESCAPES : REGEX_GENERAL_ESCAPES; - } else { - allowedEscapes = REGEX_NON_CHARCLASS_ESCAPES; - } - if (allowedEscapes.has(escapedChar)) { - return; - } - - const reportedIndex = characterNode.start + 1; - let disableEscapeBackslashSuggest = false; - - if (characterClassStack.length) { - const characterClassNode = characterClassStack[0]; - - if (escapedChar === "^") { - - /* - * The '^' character is also a special case; it must always be escaped outside of character classes, but - * it only needs to be escaped in character classes if it's at the beginning of the character class. To - * account for this, consider it to be a valid escape character outside of character classes, and filter - * out '^' characters that appear at the start of a character class. - */ - if (characterClassNode.start + 1 === characterNode.start) { - - return; - } - } - if (!unicodeSets) { - if (escapedChar === "-") { - - /* - * The '-' character is a special case, because it's only valid to escape it if it's in a character - * class, and is not at either edge of the character class. To account for this, don't consider '-' - * characters to be valid in general, and filter out '-' characters that appear in the middle of a - * character class. - */ - if (characterClassNode.start + 1 !== characterNode.start && characterNode.end !== characterClassNode.end - 1) { - - return; - } - } - } else { // unicodeSets mode - if (REGEX_CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR.has(escapedChar)) { - - // Escaping is valid if it is a ClassSetReservedDoublePunctuator. - if (pattern[characterNode.end] === escapedChar) { - return; - } - if (pattern[characterNode.start - 1] === escapedChar) { - if (escapedChar !== "^") { - return; - } - - // If the previous character is a `negate` caret(`^`), escape to caret is unnecessary. - - if (!characterClassNode.negate) { - return; - } - const negateCaretIndex = characterClassNode.start + 1; - - if (negateCaretIndex < characterNode.start - 1) { - return; - } - } - } - - if (characterNode.parent.type === "ClassIntersection" || characterNode.parent.type === "ClassSubtraction") { - disableEscapeBackslashSuggest = true; - } - } - } - - report( - node, - reportedIndex, - escapedChar, - disableEscapeBackslashSuggest - ); - } - }); - } - - /** - * Checks if a node has an escape. - * @param {ASTNode} node node to check. - * @returns {void} - */ - function check(node) { - const isTemplateElement = node.type === "TemplateElement"; - - if ( - isTemplateElement && - node.parent && - node.parent.parent && - node.parent.parent.type === "TaggedTemplateExpression" && - node.parent === node.parent.parent.quasi - ) { - - // Don't report tagged template literals, because the backslash character is accessible to the tag function. - return; - } - - if (typeof node.value === "string" || isTemplateElement) { - - /* - * JSXAttribute doesn't have any escape sequence: https://facebook.github.io/jsx/. - * In addition, backticks are not supported by JSX yet: https://github.com/facebook/jsx/issues/25. - */ - if (node.parent.type === "JSXAttribute" || node.parent.type === "JSXElement" || node.parent.type === "JSXFragment") { - return; - } - - const value = isTemplateElement ? sourceCode.getText(node) : node.raw; - const pattern = /\\[^\d]/gu; - let match; - - while ((match = pattern.exec(value))) { - validateString(node, match); - } - } else if (node.regex) { - validateRegExp(node); - } - - } - - return { - Literal: check, - TemplateElement: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-rename.js b/graphql/node_modules/eslint/lib/rules/no-useless-rename.js deleted file mode 100644 index 0c818fb2..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-rename.js +++ /dev/null @@ -1,172 +0,0 @@ -/** - * @fileoverview Disallow renaming import, export, and destructured assignments to the same name. - * @author Kai Cataldo - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow renaming import, export, and destructured assignments to the same name", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-rename" - }, - - fixable: "code", - - schema: [ - { - type: "object", - properties: { - ignoreDestructuring: { type: "boolean", default: false }, - ignoreImport: { type: "boolean", default: false }, - ignoreExport: { type: "boolean", default: false } - }, - additionalProperties: false - } - ], - - messages: { - unnecessarilyRenamed: "{{type}} {{name}} unnecessarily renamed." - } - }, - - create(context) { - const sourceCode = context.sourceCode, - options = context.options[0] || {}, - ignoreDestructuring = options.ignoreDestructuring === true, - ignoreImport = options.ignoreImport === true, - ignoreExport = options.ignoreExport === true; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports error for unnecessarily renamed assignments - * @param {ASTNode} node node to report - * @param {ASTNode} initial node with initial name value - * @param {string} type the type of the offending node - * @returns {void} - */ - function reportError(node, initial, type) { - const name = initial.type === "Identifier" ? initial.name : initial.value; - - return context.report({ - node, - messageId: "unnecessarilyRenamed", - data: { - name, - type - }, - fix(fixer) { - const replacementNode = node.type === "Property" ? node.value : node.local; - - if (sourceCode.getCommentsInside(node).length > sourceCode.getCommentsInside(replacementNode).length) { - return null; - } - - // Don't autofix code such as `({foo: (foo) = a} = obj);`, parens are not allowed in shorthand properties. - if ( - replacementNode.type === "AssignmentPattern" && - astUtils.isParenthesised(sourceCode, replacementNode.left) - ) { - return null; - } - - return fixer.replaceText(node, sourceCode.getText(replacementNode)); - } - }); - } - - /** - * Checks whether a destructured assignment is unnecessarily renamed - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkDestructured(node) { - if (ignoreDestructuring) { - return; - } - - for (const property of node.properties) { - - /** - * Properties using shorthand syntax and rest elements can not be renamed. - * If the property is computed, we have no idea if a rename is useless or not. - */ - if (property.type !== "Property" || property.shorthand || property.computed) { - continue; - } - - const key = (property.key.type === "Identifier" && property.key.name) || (property.key.type === "Literal" && property.key.value); - const renamedKey = property.value.type === "AssignmentPattern" ? property.value.left.name : property.value.name; - - if (key === renamedKey) { - reportError(property, property.key, "Destructuring assignment"); - } - } - } - - /** - * Checks whether an import is unnecessarily renamed - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkImport(node) { - if (ignoreImport) { - return; - } - - if ( - node.imported.range[0] !== node.local.range[0] && - astUtils.getModuleExportName(node.imported) === node.local.name - ) { - reportError(node, node.imported, "Import"); - } - } - - /** - * Checks whether an export is unnecessarily renamed - * @param {ASTNode} node node to check - * @returns {void} - */ - function checkExport(node) { - if (ignoreExport) { - return; - } - - if ( - node.local.range[0] !== node.exported.range[0] && - astUtils.getModuleExportName(node.local) === astUtils.getModuleExportName(node.exported) - ) { - reportError(node, node.local, "Export"); - } - - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - ObjectPattern: checkDestructured, - ImportSpecifier: checkImport, - ExportSpecifier: checkExport - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-useless-return.js b/graphql/node_modules/eslint/lib/rules/no-useless-return.js deleted file mode 100644 index 1f85cdb9..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-useless-return.js +++ /dev/null @@ -1,369 +0,0 @@ -/** - * @fileoverview Disallow redundant return statements - * @author Teddy Katz - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"), - FixTracker = require("./utils/fix-tracker"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Removes the given element from the array. - * @param {Array} array The source array to remove. - * @param {any} element The target item to remove. - * @returns {void} - */ -function remove(array, element) { - const index = array.indexOf(element); - - if (index !== -1) { - array.splice(index, 1); - } -} - -/** - * Checks whether it can remove the given return statement or not. - * @param {ASTNode} node The return statement node to check. - * @returns {boolean} `true` if the node is removable. - */ -function isRemovable(node) { - return astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type); -} - -/** - * Checks whether the given return statement is in a `finally` block or not. - * @param {ASTNode} node The return statement node to check. - * @returns {boolean} `true` if the node is in a `finally` block. - */ -function isInFinally(node) { - for ( - let currentNode = node; - currentNode && currentNode.parent && !astUtils.isFunction(currentNode); - currentNode = currentNode.parent - ) { - if (currentNode.parent.type === "TryStatement" && currentNode.parent.finalizer === currentNode) { - return true; - } - } - - return false; -} - -/** - * Checks all segments in a set and returns true if any are reachable. - * @param {Set} segments The segments to check. - * @returns {boolean} True if any segment is reachable; false otherwise. - */ -function isAnySegmentReachable(segments) { - - for (const segment of segments) { - if (segment.reachable) { - return true; - } - } - - return false; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow redundant return statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-useless-return" - }, - - fixable: "code", - schema: [], - - messages: { - unnecessaryReturn: "Unnecessary return statement." - } - }, - - create(context) { - const segmentInfoMap = new WeakMap(); - const sourceCode = context.sourceCode; - let scopeInfo = null; - - /** - * Checks whether the given segment is terminated by a return statement or not. - * @param {CodePathSegment} segment The segment to check. - * @returns {boolean} `true` if the segment is terminated by a return statement, or if it's still a part of unreachable. - */ - function isReturned(segment) { - const info = segmentInfoMap.get(segment); - - return !info || info.returned; - } - - /** - * Collects useless return statements from the given previous segments. - * - * A previous segment may be an unreachable segment. - * In that case, the information object of the unreachable segment is not - * initialized because `onCodePathSegmentStart` event is not notified for - * unreachable segments. - * This goes to the previous segments of the unreachable segment recursively - * if the unreachable segment was generated by a return statement. Otherwise, - * this ignores the unreachable segment. - * - * This behavior would simulate code paths for the case that the return - * statement does not exist. - * @param {ASTNode[]} uselessReturns The collected return statements. - * @param {CodePathSegment[]} prevSegments The previous segments to traverse. - * @param {WeakSet} [providedTraversedSegments] A set of segments that have already been traversed in this call - * @returns {ASTNode[]} `uselessReturns`. - */ - function getUselessReturns(uselessReturns, prevSegments, providedTraversedSegments) { - const traversedSegments = providedTraversedSegments || new WeakSet(); - - for (const segment of prevSegments) { - if (!segment.reachable) { - if (!traversedSegments.has(segment)) { - traversedSegments.add(segment); - getUselessReturns( - uselessReturns, - segment.allPrevSegments.filter(isReturned), - traversedSegments - ); - } - continue; - } - - if (segmentInfoMap.has(segment)) { - uselessReturns.push(...segmentInfoMap.get(segment).uselessReturns); - } - } - - return uselessReturns; - } - - /** - * Removes the return statements on the given segment from the useless return - * statement list. - * - * This segment may be an unreachable segment. - * In that case, the information object of the unreachable segment is not - * initialized because `onCodePathSegmentStart` event is not notified for - * unreachable segments. - * This goes to the previous segments of the unreachable segment recursively - * if the unreachable segment was generated by a return statement. Otherwise, - * this ignores the unreachable segment. - * - * This behavior would simulate code paths for the case that the return - * statement does not exist. - * @param {CodePathSegment} segment The segment to get return statements. - * @param {Set} usedUnreachableSegments A set of segments that have already been traversed in this call. - * @returns {void} - */ - function markReturnStatementsOnSegmentAsUsed(segment, usedUnreachableSegments) { - if (!segment.reachable) { - usedUnreachableSegments.add(segment); - segment.allPrevSegments - .filter(isReturned) - .filter(prevSegment => !usedUnreachableSegments.has(prevSegment)) - .forEach(prevSegment => markReturnStatementsOnSegmentAsUsed(prevSegment, usedUnreachableSegments)); - return; - } - - const info = segmentInfoMap.get(segment); - - if (!info) { - return; - } - - info.uselessReturns = info.uselessReturns.filter(node => { - if (scopeInfo.traversedTryBlockStatements && scopeInfo.traversedTryBlockStatements.length > 0) { - const returnInitialRange = node.range[0]; - const returnFinalRange = node.range[1]; - - const areBlocksInRange = scopeInfo.traversedTryBlockStatements.some(tryBlockStatement => { - const blockInitialRange = tryBlockStatement.range[0]; - const blockFinalRange = tryBlockStatement.range[1]; - - return ( - returnInitialRange >= blockInitialRange && - returnFinalRange <= blockFinalRange - ); - }); - - if (areBlocksInRange) { - return true; - } - } - - remove(scopeInfo.uselessReturns, node); - return false; - }); - } - - /** - * Removes the return statements on the current segments from the useless - * return statement list. - * - * This function will be called at every statement except FunctionDeclaration, - * BlockStatement, and BreakStatement. - * - * - FunctionDeclarations are always executed whether it's returned or not. - * - BlockStatements do nothing. - * - BreakStatements go the next merely. - * @returns {void} - */ - function markReturnStatementsOnCurrentSegmentsAsUsed() { - scopeInfo - .currentSegments - .forEach(segment => markReturnStatementsOnSegmentAsUsed(segment, new Set())); - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - - // Makes and pushes a new scope information. - onCodePathStart(codePath) { - scopeInfo = { - upper: scopeInfo, - uselessReturns: [], - traversedTryBlockStatements: [], - codePath, - currentSegments: new Set() - }; - }, - - // Reports useless return statements if exist. - onCodePathEnd() { - for (const node of scopeInfo.uselessReturns) { - context.report({ - node, - loc: node.loc, - messageId: "unnecessaryReturn", - fix(fixer) { - if (isRemovable(node) && !sourceCode.getCommentsInside(node).length) { - - /* - * Extend the replacement range to include the - * entire function to avoid conflicting with - * no-else-return. - * https://github.com/eslint/eslint/issues/8026 - */ - return new FixTracker(fixer, sourceCode) - .retainEnclosingFunction(node) - .remove(node); - } - return null; - } - }); - } - - scopeInfo = scopeInfo.upper; - }, - - /* - * Initializes segments. - * NOTE: This event is notified for only reachable segments. - */ - onCodePathSegmentStart(segment) { - scopeInfo.currentSegments.add(segment); - - const info = { - uselessReturns: getUselessReturns([], segment.allPrevSegments), - returned: false - }; - - // Stores the info. - segmentInfoMap.set(segment, info); - }, - - onUnreachableCodePathSegmentStart(segment) { - scopeInfo.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - scopeInfo.currentSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - scopeInfo.currentSegments.delete(segment); - }, - - // Adds ReturnStatement node to check whether it's useless or not. - ReturnStatement(node) { - if (node.argument) { - markReturnStatementsOnCurrentSegmentsAsUsed(); - } - if ( - node.argument || - astUtils.isInLoop(node) || - isInFinally(node) || - - // Ignore `return` statements in unreachable places (https://github.com/eslint/eslint/issues/11647). - !isAnySegmentReachable(scopeInfo.currentSegments) - ) { - return; - } - - for (const segment of scopeInfo.currentSegments) { - const info = segmentInfoMap.get(segment); - - if (info) { - info.uselessReturns.push(node); - info.returned = true; - } - } - scopeInfo.uselessReturns.push(node); - }, - - "TryStatement > BlockStatement.block:exit"(node) { - scopeInfo.traversedTryBlockStatements.push(node); - }, - - "TryStatement:exit"() { - scopeInfo.traversedTryBlockStatements.pop(); - }, - - /* - * Registers for all statement nodes except FunctionDeclaration, BlockStatement, BreakStatement. - * Removes return statements of the current segments from the useless return statement list. - */ - ClassDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed, - ContinueStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - DebuggerStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - DoWhileStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - EmptyStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ExpressionStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ForInStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ForOfStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ForStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - IfStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ImportDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed, - LabeledStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - SwitchStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ThrowStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - TryStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - VariableDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed, - WhileStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - WithStatement: markReturnStatementsOnCurrentSegmentsAsUsed, - ExportNamedDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed, - ExportDefaultDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed, - ExportAllDeclaration: markReturnStatementsOnCurrentSegmentsAsUsed - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-var.js b/graphql/node_modules/eslint/lib/rules/no-var.js deleted file mode 100644 index d45a91a1..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-var.js +++ /dev/null @@ -1,334 +0,0 @@ -/** - * @fileoverview Rule to check for the usage of var. - * @author Jamund Ferguson - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Check whether a given variable is a global variable or not. - * @param {eslint-scope.Variable} variable The variable to check. - * @returns {boolean} `true` if the variable is a global variable. - */ -function isGlobal(variable) { - return Boolean(variable.scope) && variable.scope.type === "global"; -} - -/** - * Finds the nearest function scope or global scope walking up the scope - * hierarchy. - * @param {eslint-scope.Scope} scope The scope to traverse. - * @returns {eslint-scope.Scope} a function scope or global scope containing the given - * scope. - */ -function getEnclosingFunctionScope(scope) { - let currentScope = scope; - - while (currentScope.type !== "function" && currentScope.type !== "global") { - currentScope = currentScope.upper; - } - return currentScope; -} - -/** - * Checks whether the given variable has any references from a more specific - * function expression (i.e. a closure). - * @param {eslint-scope.Variable} variable A variable to check. - * @returns {boolean} `true` if the variable is used from a closure. - */ -function isReferencedInClosure(variable) { - const enclosingFunctionScope = getEnclosingFunctionScope(variable.scope); - - return variable.references.some(reference => - getEnclosingFunctionScope(reference.from) !== enclosingFunctionScope); -} - -/** - * Checks whether the given node is the assignee of a loop. - * @param {ASTNode} node A VariableDeclaration node to check. - * @returns {boolean} `true` if the declaration is assigned as part of loop - * iteration. - */ -function isLoopAssignee(node) { - return (node.parent.type === "ForOfStatement" || node.parent.type === "ForInStatement") && - node === node.parent.left; -} - -/** - * Checks whether the given variable declaration is immediately initialized. - * @param {ASTNode} node A VariableDeclaration node to check. - * @returns {boolean} `true` if the declaration has an initializer. - */ -function isDeclarationInitialized(node) { - return node.declarations.every(declarator => declarator.init !== null); -} - -const SCOPE_NODE_TYPE = /^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u; - -/** - * Gets the scope node which directly contains a given node. - * @param {ASTNode} node A node to get. This is a `VariableDeclaration` or - * an `Identifier`. - * @returns {ASTNode} A scope node. This is one of `Program`, `BlockStatement`, - * `SwitchStatement`, `ForStatement`, `ForInStatement`, and - * `ForOfStatement`. - */ -function getScopeNode(node) { - for (let currentNode = node; currentNode; currentNode = currentNode.parent) { - if (SCOPE_NODE_TYPE.test(currentNode.type)) { - return currentNode; - } - } - - /* c8 ignore next */ - return null; -} - -/** - * Checks whether a given variable is redeclared or not. - * @param {eslint-scope.Variable} variable A variable to check. - * @returns {boolean} `true` if the variable is redeclared. - */ -function isRedeclared(variable) { - return variable.defs.length >= 2; -} - -/** - * Checks whether a given variable is used from outside of the specified scope. - * @param {ASTNode} scopeNode A scope node to check. - * @returns {Function} The predicate function which checks whether a given - * variable is used from outside of the specified scope. - */ -function isUsedFromOutsideOf(scopeNode) { - - /** - * Checks whether a given reference is inside of the specified scope or not. - * @param {eslint-scope.Reference} reference A reference to check. - * @returns {boolean} `true` if the reference is inside of the specified - * scope. - */ - function isOutsideOfScope(reference) { - const scope = scopeNode.range; - const id = reference.identifier.range; - - return id[0] < scope[0] || id[1] > scope[1]; - } - - return function(variable) { - return variable.references.some(isOutsideOfScope); - }; -} - -/** - * Creates the predicate function which checks whether a variable has their references in TDZ. - * - * The predicate function would return `true`: - * - * - if a reference is before the declarator. E.g. (var a = b, b = 1;)(var {a = b, b} = {};) - * - if a reference is in the expression of their default value. E.g. (var {a = a} = {};) - * - if a reference is in the expression of their initializer. E.g. (var a = a;) - * @param {ASTNode} node The initializer node of VariableDeclarator. - * @returns {Function} The predicate function. - * @private - */ -function hasReferenceInTDZ(node) { - const initStart = node.range[0]; - const initEnd = node.range[1]; - - return variable => { - const id = variable.defs[0].name; - const idStart = id.range[0]; - const defaultValue = (id.parent.type === "AssignmentPattern" ? id.parent.right : null); - const defaultStart = defaultValue && defaultValue.range[0]; - const defaultEnd = defaultValue && defaultValue.range[1]; - - return variable.references.some(reference => { - const start = reference.identifier.range[0]; - const end = reference.identifier.range[1]; - - return !reference.init && ( - start < idStart || - (defaultValue !== null && start >= defaultStart && end <= defaultEnd) || - (!astUtils.isFunction(node) && start >= initStart && end <= initEnd) - ); - }); - }; -} - -/** - * Checks whether a given variable has name that is allowed for 'var' declarations, - * but disallowed for `let` declarations. - * @param {eslint-scope.Variable} variable The variable to check. - * @returns {boolean} `true` if the variable has a disallowed name. - */ -function hasNameDisallowedForLetDeclarations(variable) { - return variable.name === "let"; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `let` or `const` instead of `var`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-var" - }, - - schema: [], - fixable: "code", - - messages: { - unexpectedVar: "Unexpected var, use let or const instead." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Checks whether the variables which are defined by the given declarator node have their references in TDZ. - * @param {ASTNode} declarator The VariableDeclarator node to check. - * @returns {boolean} `true` if one of the variables which are defined by the given declarator node have their references in TDZ. - */ - function hasSelfReferenceInTDZ(declarator) { - if (!declarator.init) { - return false; - } - const variables = sourceCode.getDeclaredVariables(declarator); - - return variables.some(hasReferenceInTDZ(declarator.init)); - } - - /** - * Checks whether it can fix a given variable declaration or not. - * It cannot fix if the following cases: - * - * - A variable is a global variable. - * - A variable is declared on a SwitchCase node. - * - A variable is redeclared. - * - A variable is used from outside the scope. - * - A variable is used from a closure within a loop. - * - A variable might be used before it is assigned within a loop. - * - A variable might be used in TDZ. - * - A variable is declared in statement position (e.g. a single-line `IfStatement`) - * - A variable has name that is disallowed for `let` declarations. - * - * ## A variable is declared on a SwitchCase node. - * - * If this rule modifies 'var' declarations on a SwitchCase node, it - * would generate the warnings of 'no-case-declarations' rule. And the - * 'eslint:recommended' preset includes 'no-case-declarations' rule, so - * this rule doesn't modify those declarations. - * - * ## A variable is redeclared. - * - * The language spec disallows redeclarations of `let` declarations. - * Those variables would cause syntax errors. - * - * ## A variable is used from outside the scope. - * - * The language spec disallows accesses from outside of the scope for - * `let` declarations. Those variables would cause reference errors. - * - * ## A variable is used from a closure within a loop. - * - * A `var` declaration within a loop shares the same variable instance - * across all loop iterations, while a `let` declaration creates a new - * instance for each iteration. This means if a variable in a loop is - * referenced by any closure, changing it from `var` to `let` would - * change the behavior in a way that is generally unsafe. - * - * ## A variable might be used before it is assigned within a loop. - * - * Within a loop, a `let` declaration without an initializer will be - * initialized to null, while a `var` declaration will retain its value - * from the previous iteration, so it is only safe to change `var` to - * `let` if we can statically determine that the variable is always - * assigned a value before its first access in the loop body. To keep - * the implementation simple, we only convert `var` to `let` within - * loops when the variable is a loop assignee or the declaration has an - * initializer. - * @param {ASTNode} node A variable declaration node to check. - * @returns {boolean} `true` if it can fix the node. - */ - function canFix(node) { - const variables = sourceCode.getDeclaredVariables(node); - const scopeNode = getScopeNode(node); - - if (node.parent.type === "SwitchCase" || - node.declarations.some(hasSelfReferenceInTDZ) || - variables.some(isGlobal) || - variables.some(isRedeclared) || - variables.some(isUsedFromOutsideOf(scopeNode)) || - variables.some(hasNameDisallowedForLetDeclarations) - ) { - return false; - } - - if (astUtils.isInLoop(node)) { - if (variables.some(isReferencedInClosure)) { - return false; - } - if (!isLoopAssignee(node) && !isDeclarationInitialized(node)) { - return false; - } - } - - if ( - !isLoopAssignee(node) && - !(node.parent.type === "ForStatement" && node.parent.init === node) && - !astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type) - ) { - - // If the declaration is not in a block, e.g. `if (foo) var bar = 1;`, then it can't be fixed. - return false; - } - - return true; - } - - /** - * Reports a given variable declaration node. - * @param {ASTNode} node A variable declaration node to report. - * @returns {void} - */ - function report(node) { - context.report({ - node, - messageId: "unexpectedVar", - - fix(fixer) { - const varToken = sourceCode.getFirstToken(node, { filter: t => t.value === "var" }); - - return canFix(node) - ? fixer.replaceText(varToken, "let") - : null; - } - }); - } - - return { - "VariableDeclaration:exit"(node) { - if (node.kind === "var") { - report(node); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-void.js b/graphql/node_modules/eslint/lib/rules/no-void.js deleted file mode 100644 index 9546d7a6..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-void.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @fileoverview Rule to disallow use of void operator. - * @author Mike Sidorov - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `void` operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-void" - }, - - messages: { - noVoid: "Expected 'undefined' and instead saw 'void'." - }, - - schema: [ - { - type: "object", - properties: { - allowAsStatement: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ] - }, - - create(context) { - const allowAsStatement = - context.options[0] && context.options[0].allowAsStatement; - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - 'UnaryExpression[operator="void"]'(node) { - if ( - allowAsStatement && - node.parent && - node.parent.type === "ExpressionStatement" - ) { - return; - } - context.report({ - node, - messageId: "noVoid" - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-warning-comments.js b/graphql/node_modules/eslint/lib/rules/no-warning-comments.js deleted file mode 100644 index c415bee7..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-warning-comments.js +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @fileoverview Rule that warns about used warning comments - * @author Alexander Schmidt - */ - -"use strict"; - -const escapeRegExp = require("escape-string-regexp"); -const astUtils = require("./utils/ast-utils"); - -const CHAR_LIMIT = 40; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow specified warning terms in comments", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-warning-comments" - }, - - schema: [ - { - type: "object", - properties: { - terms: { - type: "array", - items: { - type: "string" - } - }, - location: { - enum: ["start", "anywhere"] - }, - decoration: { - type: "array", - items: { - type: "string", - pattern: "^\\S$" - }, - minItems: 1, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedComment: "Unexpected '{{matchedTerm}}' comment: '{{comment}}'." - } - }, - - create(context) { - const sourceCode = context.sourceCode, - configuration = context.options[0] || {}, - warningTerms = configuration.terms || ["todo", "fixme", "xxx"], - location = configuration.location || "start", - decoration = [...configuration.decoration || []].join(""), - selfConfigRegEx = /\bno-warning-comments\b/u; - - /** - * Convert a warning term into a RegExp which will match a comment containing that whole word in the specified - * location ("start" or "anywhere"). If the term starts or ends with non word characters, then the match will not - * require word boundaries on that side. - * @param {string} term A term to convert to a RegExp - * @returns {RegExp} The term converted to a RegExp - */ - function convertToRegExp(term) { - const escaped = escapeRegExp(term); - const escapedDecoration = escapeRegExp(decoration); - - /* - * When matching at the start, ignore leading whitespace, and - * there's no need to worry about word boundaries. - * - * These expressions for the prefix and suffix are designed as follows: - * ^ handles any terms at the beginning of a comment. - * e.g. terms ["TODO"] matches `//TODO something` - * $ handles any terms at the end of a comment - * e.g. terms ["TODO"] matches `// something TODO` - * \b handles terms preceded/followed by word boundary - * e.g. terms: ["!FIX", "FIX!"] matches `// FIX!something` or `// something!FIX` - * terms: ["FIX"] matches `// FIX!` or `// !FIX`, but not `// fixed or affix` - * - * For location start: - * [\s]* handles optional leading spaces - * e.g. terms ["TODO"] matches `// TODO something` - * [\s\*]* (where "\*" is the escaped string of decoration) - * handles optional leading spaces or decoration characters (for "start" location only) - * e.g. terms ["TODO"] matches `/**** TODO something ... ` - */ - const wordBoundary = "\\b"; - - let prefix = ""; - - if (location === "start") { - prefix = `^[\\s${escapedDecoration}]*`; - } else if (/^\w/u.test(term)) { - prefix = wordBoundary; - } - - const suffix = /\w$/u.test(term) ? wordBoundary : ""; - const flags = "iu"; // Case-insensitive with Unicode case folding. - - /* - * For location "start", the typical regex is: - * /^[\s]*ESCAPED_TERM\b/iu. - * Or if decoration characters are specified (e.g. "*"), then any of - * those characters may appear in any order at the start: - * /^[\s\*]*ESCAPED_TERM\b/iu. - * - * For location "anywhere" the typical regex is - * /\bESCAPED_TERM\b/iu - * - * If it starts or ends with non-word character, the prefix and suffix are empty, respectively. - */ - return new RegExp(`${prefix}${escaped}${suffix}`, flags); - } - - const warningRegExps = warningTerms.map(convertToRegExp); - - /** - * Checks the specified comment for matches of the configured warning terms and returns the matches. - * @param {string} comment The comment which is checked. - * @returns {Array} All matched warning terms for this comment. - */ - function commentContainsWarningTerm(comment) { - const matches = []; - - warningRegExps.forEach((regex, index) => { - if (regex.test(comment)) { - matches.push(warningTerms[index]); - } - }); - - return matches; - } - - /** - * Checks the specified node for matching warning comments and reports them. - * @param {ASTNode} node The AST node being checked. - * @returns {void} undefined. - */ - function checkComment(node) { - const comment = node.value; - - if ( - astUtils.isDirectiveComment(node) && - selfConfigRegEx.test(comment) - ) { - return; - } - - const matches = commentContainsWarningTerm(comment); - - matches.forEach(matchedTerm => { - let commentToDisplay = ""; - let truncated = false; - - for (const c of comment.trim().split(/\s+/u)) { - const tmp = commentToDisplay ? `${commentToDisplay} ${c}` : c; - - if (tmp.length <= CHAR_LIMIT) { - commentToDisplay = tmp; - } else { - truncated = true; - break; - } - } - - context.report({ - node, - messageId: "unexpectedComment", - data: { - matchedTerm, - comment: `${commentToDisplay}${ - truncated ? "..." : "" - }` - } - }); - }); - } - - return { - Program() { - const comments = sourceCode.getAllComments(); - - comments - .filter(token => token.type !== "Shebang") - .forEach(checkComment); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-whitespace-before-property.js b/graphql/node_modules/eslint/lib/rules/no-whitespace-before-property.js deleted file mode 100644 index 94a166e6..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-whitespace-before-property.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @fileoverview Rule to disallow whitespace before properties - * @author Kai Cataldo - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Disallow whitespace before properties", - recommended: false, - url: "https://eslint.org/docs/latest/rules/no-whitespace-before-property" - }, - - fixable: "whitespace", - schema: [], - - messages: { - unexpectedWhitespace: "Unexpected whitespace before property {{propName}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports whitespace before property token - * @param {ASTNode} node the node to report in the event of an error - * @param {Token} leftToken the left token - * @param {Token} rightToken the right token - * @returns {void} - * @private - */ - function reportError(node, leftToken, rightToken) { - context.report({ - node, - messageId: "unexpectedWhitespace", - data: { - propName: sourceCode.getText(node.property) - }, - fix(fixer) { - let replacementText = ""; - - if (!node.computed && !node.optional && astUtils.isDecimalInteger(node.object)) { - - /* - * If the object is a number literal, fixing it to something like 5.toString() would cause a SyntaxError. - * Don't fix this case. - */ - return null; - } - - // Don't fix if comments exist. - if (sourceCode.commentsExistBetween(leftToken, rightToken)) { - return null; - } - - if (node.optional) { - replacementText = "?."; - } else if (!node.computed) { - replacementText = "."; - } - - return fixer.replaceTextRange([leftToken.range[1], rightToken.range[0]], replacementText); - } - }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - MemberExpression(node) { - let rightToken; - let leftToken; - - if (!astUtils.isTokenOnSameLine(node.object, node.property)) { - return; - } - - if (node.computed) { - rightToken = sourceCode.getTokenBefore(node.property, astUtils.isOpeningBracketToken); - leftToken = sourceCode.getTokenBefore(rightToken, node.optional ? 1 : 0); - } else { - rightToken = sourceCode.getFirstToken(node.property); - leftToken = sourceCode.getTokenBefore(rightToken, 1); - } - - if (sourceCode.isSpaceBetweenTokens(leftToken, rightToken)) { - reportError(node, leftToken, rightToken); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/no-with.js b/graphql/node_modules/eslint/lib/rules/no-with.js deleted file mode 100644 index 0fb2c451..00000000 --- a/graphql/node_modules/eslint/lib/rules/no-with.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview Rule to flag use of with statement - * @author Nicholas C. Zakas - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `with` statements", - recommended: true, - url: "https://eslint.org/docs/latest/rules/no-with" - }, - - schema: [], - - messages: { - unexpectedWith: "Unexpected use of 'with' statement." - } - }, - - create(context) { - - return { - WithStatement(node) { - context.report({ node, messageId: "unexpectedWith" }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/nonblock-statement-body-position.js b/graphql/node_modules/eslint/lib/rules/nonblock-statement-body-position.js deleted file mode 100644 index 811b32b0..00000000 --- a/graphql/node_modules/eslint/lib/rules/nonblock-statement-body-position.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * @fileoverview enforce the location of single-line statements - * @author Teddy Katz - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const POSITION_SCHEMA = { enum: ["beside", "below", "any"] }; - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce the location of single-line statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/nonblock-statement-body-position" - }, - - fixable: "whitespace", - - schema: [ - POSITION_SCHEMA, - { - properties: { - overrides: { - properties: { - if: POSITION_SCHEMA, - else: POSITION_SCHEMA, - while: POSITION_SCHEMA, - do: POSITION_SCHEMA, - for: POSITION_SCHEMA - }, - additionalProperties: false - } - }, - additionalProperties: false - } - ], - - messages: { - expectNoLinebreak: "Expected no linebreak before this statement.", - expectLinebreak: "Expected a linebreak before this statement." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Gets the applicable preference for a particular keyword - * @param {string} keywordName The name of a keyword, e.g. 'if' - * @returns {string} The applicable option for the keyword, e.g. 'beside' - */ - function getOption(keywordName) { - return context.options[1] && context.options[1].overrides && context.options[1].overrides[keywordName] || - context.options[0] || - "beside"; - } - - /** - * Validates the location of a single-line statement - * @param {ASTNode} node The single-line statement - * @param {string} keywordName The applicable keyword name for the single-line statement - * @returns {void} - */ - function validateStatement(node, keywordName) { - const option = getOption(keywordName); - - if (node.type === "BlockStatement" || option === "any") { - return; - } - - const tokenBefore = sourceCode.getTokenBefore(node); - - if (tokenBefore.loc.end.line === node.loc.start.line && option === "below") { - context.report({ - node, - messageId: "expectLinebreak", - fix: fixer => fixer.insertTextBefore(node, "\n") - }); - } else if (tokenBefore.loc.end.line !== node.loc.start.line && option === "beside") { - context.report({ - node, - messageId: "expectNoLinebreak", - fix(fixer) { - if (sourceCode.getText().slice(tokenBefore.range[1], node.range[0]).trim()) { - return null; - } - return fixer.replaceTextRange([tokenBefore.range[1], node.range[0]], " "); - } - }); - } - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - IfStatement(node) { - validateStatement(node.consequent, "if"); - - // Check the `else` node, but don't check 'else if' statements. - if (node.alternate && node.alternate.type !== "IfStatement") { - validateStatement(node.alternate, "else"); - } - }, - WhileStatement: node => validateStatement(node.body, "while"), - DoWhileStatement: node => validateStatement(node.body, "do"), - ForStatement: node => validateStatement(node.body, "for"), - ForInStatement: node => validateStatement(node.body, "for"), - ForOfStatement: node => validateStatement(node.body, "for") - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/object-curly-newline.js b/graphql/node_modules/eslint/lib/rules/object-curly-newline.js deleted file mode 100644 index 176694b6..00000000 --- a/graphql/node_modules/eslint/lib/rules/object-curly-newline.js +++ /dev/null @@ -1,324 +0,0 @@ -/** - * @fileoverview Rule to require or disallow line breaks inside braces. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Schema objects. -const OPTION_VALUE = { - oneOf: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - multiline: { - type: "boolean" - }, - minProperties: { - type: "integer", - minimum: 0 - }, - consistent: { - type: "boolean" - } - }, - additionalProperties: false, - minProperties: 1 - } - ] -}; - -/** - * Normalizes a given option value. - * @param {string|Object|undefined} value An option value to parse. - * @returns {{multiline: boolean, minProperties: number, consistent: boolean}} Normalized option object. - */ -function normalizeOptionValue(value) { - let multiline = false; - let minProperties = Number.POSITIVE_INFINITY; - let consistent = false; - - if (value) { - if (value === "always") { - minProperties = 0; - } else if (value === "never") { - minProperties = Number.POSITIVE_INFINITY; - } else { - multiline = Boolean(value.multiline); - minProperties = value.minProperties || Number.POSITIVE_INFINITY; - consistent = Boolean(value.consistent); - } - } else { - consistent = true; - } - - return { multiline, minProperties, consistent }; -} - -/** - * Checks if a value is an object. - * @param {any} value The value to check - * @returns {boolean} `true` if the value is an object, otherwise `false` - */ -function isObject(value) { - return typeof value === "object" && value !== null; -} - -/** - * Checks if an option is a node-specific option - * @param {any} option The option to check - * @returns {boolean} `true` if the option is node-specific, otherwise `false` - */ -function isNodeSpecificOption(option) { - return isObject(option) || typeof option === "string"; -} - -/** - * Normalizes a given option value. - * @param {string|Object|undefined} options An option value to parse. - * @returns {{ - * ObjectExpression: {multiline: boolean, minProperties: number, consistent: boolean}, - * ObjectPattern: {multiline: boolean, minProperties: number, consistent: boolean}, - * ImportDeclaration: {multiline: boolean, minProperties: number, consistent: boolean}, - * ExportNamedDeclaration : {multiline: boolean, minProperties: number, consistent: boolean} - * }} Normalized option object. - */ -function normalizeOptions(options) { - if (isObject(options) && Object.values(options).some(isNodeSpecificOption)) { - return { - ObjectExpression: normalizeOptionValue(options.ObjectExpression), - ObjectPattern: normalizeOptionValue(options.ObjectPattern), - ImportDeclaration: normalizeOptionValue(options.ImportDeclaration), - ExportNamedDeclaration: normalizeOptionValue(options.ExportDeclaration) - }; - } - - const value = normalizeOptionValue(options); - - return { ObjectExpression: value, ObjectPattern: value, ImportDeclaration: value, ExportNamedDeclaration: value }; -} - -/** - * Determines if ObjectExpression, ObjectPattern, ImportDeclaration or ExportNamedDeclaration - * node needs to be checked for missing line breaks - * @param {ASTNode} node Node under inspection - * @param {Object} options option specific to node type - * @param {Token} first First object property - * @param {Token} last Last object property - * @returns {boolean} `true` if node needs to be checked for missing line breaks - */ -function areLineBreaksRequired(node, options, first, last) { - let objectProperties; - - if (node.type === "ObjectExpression" || node.type === "ObjectPattern") { - objectProperties = node.properties; - } else { - - // is ImportDeclaration or ExportNamedDeclaration - objectProperties = node.specifiers - .filter(s => s.type === "ImportSpecifier" || s.type === "ExportSpecifier"); - } - - return objectProperties.length >= options.minProperties || - ( - options.multiline && - objectProperties.length > 0 && - first.loc.start.line !== last.loc.end.line - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent line breaks after opening and before closing braces", - recommended: false, - url: "https://eslint.org/docs/latest/rules/object-curly-newline" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - OPTION_VALUE, - { - type: "object", - properties: { - ObjectExpression: OPTION_VALUE, - ObjectPattern: OPTION_VALUE, - ImportDeclaration: OPTION_VALUE, - ExportDeclaration: OPTION_VALUE - }, - additionalProperties: false, - minProperties: 1 - } - ] - } - ], - - messages: { - unexpectedLinebreakBeforeClosingBrace: "Unexpected line break before this closing brace.", - unexpectedLinebreakAfterOpeningBrace: "Unexpected line break after this opening brace.", - expectedLinebreakBeforeClosingBrace: "Expected a line break before this closing brace.", - expectedLinebreakAfterOpeningBrace: "Expected a line break after this opening brace." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const normalizedOptions = normalizeOptions(context.options[0]); - - /** - * Reports a given node if it violated this rule. - * @param {ASTNode} node A node to check. This is an ObjectExpression, ObjectPattern, ImportDeclaration or ExportNamedDeclaration node. - * @returns {void} - */ - function check(node) { - const options = normalizedOptions[node.type]; - - if ( - (node.type === "ImportDeclaration" && - !node.specifiers.some(specifier => specifier.type === "ImportSpecifier")) || - (node.type === "ExportNamedDeclaration" && - !node.specifiers.some(specifier => specifier.type === "ExportSpecifier")) - ) { - return; - } - - const openBrace = sourceCode.getFirstToken(node, token => token.value === "{"); - - let closeBrace; - - if (node.typeAnnotation) { - closeBrace = sourceCode.getTokenBefore(node.typeAnnotation); - } else { - closeBrace = sourceCode.getLastToken(node, token => token.value === "}"); - } - - let first = sourceCode.getTokenAfter(openBrace, { includeComments: true }); - let last = sourceCode.getTokenBefore(closeBrace, { includeComments: true }); - - const needsLineBreaks = areLineBreaksRequired(node, options, first, last); - - const hasCommentsFirstToken = astUtils.isCommentToken(first); - const hasCommentsLastToken = astUtils.isCommentToken(last); - - /* - * Use tokens or comments to check multiline or not. - * But use only tokens to check whether line breaks are needed. - * This allows: - * var obj = { // eslint-disable-line foo - * a: 1 - * } - */ - first = sourceCode.getTokenAfter(openBrace); - last = sourceCode.getTokenBefore(closeBrace); - - if (needsLineBreaks) { - if (astUtils.isTokenOnSameLine(openBrace, first)) { - context.report({ - messageId: "expectedLinebreakAfterOpeningBrace", - node, - loc: openBrace.loc, - fix(fixer) { - if (hasCommentsFirstToken) { - return null; - } - - return fixer.insertTextAfter(openBrace, "\n"); - } - }); - } - if (astUtils.isTokenOnSameLine(last, closeBrace)) { - context.report({ - messageId: "expectedLinebreakBeforeClosingBrace", - node, - loc: closeBrace.loc, - fix(fixer) { - if (hasCommentsLastToken) { - return null; - } - - return fixer.insertTextBefore(closeBrace, "\n"); - } - }); - } - } else { - const consistent = options.consistent; - const hasLineBreakBetweenOpenBraceAndFirst = !astUtils.isTokenOnSameLine(openBrace, first); - const hasLineBreakBetweenCloseBraceAndLast = !astUtils.isTokenOnSameLine(last, closeBrace); - - if ( - (!consistent && hasLineBreakBetweenOpenBraceAndFirst) || - (consistent && hasLineBreakBetweenOpenBraceAndFirst && !hasLineBreakBetweenCloseBraceAndLast) - ) { - context.report({ - messageId: "unexpectedLinebreakAfterOpeningBrace", - node, - loc: openBrace.loc, - fix(fixer) { - if (hasCommentsFirstToken) { - return null; - } - - return fixer.removeRange([ - openBrace.range[1], - first.range[0] - ]); - } - }); - } - if ( - (!consistent && hasLineBreakBetweenCloseBraceAndLast) || - (consistent && !hasLineBreakBetweenOpenBraceAndFirst && hasLineBreakBetweenCloseBraceAndLast) - ) { - context.report({ - messageId: "unexpectedLinebreakBeforeClosingBrace", - node, - loc: closeBrace.loc, - fix(fixer) { - if (hasCommentsLastToken) { - return null; - } - - return fixer.removeRange([ - last.range[1], - closeBrace.range[0] - ]); - } - }); - } - } - } - - return { - ObjectExpression: check, - ObjectPattern: check, - ImportDeclaration: check, - ExportNamedDeclaration: check - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/object-curly-spacing.js b/graphql/node_modules/eslint/lib/rules/object-curly-spacing.js deleted file mode 100644 index 6cb0b0f9..00000000 --- a/graphql/node_modules/eslint/lib/rules/object-curly-spacing.js +++ /dev/null @@ -1,311 +0,0 @@ -/** - * @fileoverview Disallows or enforces spaces inside of object literals. - * @author Jamund Ferguson - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing inside braces", - recommended: false, - url: "https://eslint.org/docs/latest/rules/object-curly-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - arraysInObjects: { - type: "boolean" - }, - objectsInObjects: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - - messages: { - requireSpaceBefore: "A space is required before '{{token}}'.", - requireSpaceAfter: "A space is required after '{{token}}'.", - unexpectedSpaceBefore: "There should be no space before '{{token}}'.", - unexpectedSpaceAfter: "There should be no space after '{{token}}'." - } - }, - - create(context) { - const spaced = context.options[0] === "always", - sourceCode = context.sourceCode; - - /** - * Determines whether an option is set, relative to the spacing option. - * If spaced is "always", then check whether option is set to false. - * If spaced is "never", then check whether option is set to true. - * @param {Object} option The option to exclude. - * @returns {boolean} Whether or not the property is excluded. - */ - function isOptionSet(option) { - return context.options[1] ? context.options[1][option] === !spaced : false; - } - - const options = { - spaced, - arraysInObjectsException: isOptionSet("arraysInObjects"), - objectsInObjectsException: isOptionSet("objectsInObjects") - }; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports that there shouldn't be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoBeginningSpace(node, token) { - const nextToken = context.sourceCode.getTokenAfter(token, { includeComments: true }); - - context.report({ - node, - loc: { start: token.loc.end, end: nextToken.loc.start }, - messageId: "unexpectedSpaceAfter", - data: { - token: token.value - }, - fix(fixer) { - return fixer.removeRange([token.range[1], nextToken.range[0]]); - } - }); - } - - /** - * Reports that there shouldn't be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportNoEndingSpace(node, token) { - const previousToken = context.sourceCode.getTokenBefore(token, { includeComments: true }); - - context.report({ - node, - loc: { start: previousToken.loc.end, end: token.loc.start }, - messageId: "unexpectedSpaceBefore", - data: { - token: token.value - }, - fix(fixer) { - return fixer.removeRange([previousToken.range[1], token.range[0]]); - } - }); - } - - /** - * Reports that there should be a space after the first token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredBeginningSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "requireSpaceAfter", - data: { - token: token.value - }, - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - - /** - * Reports that there should be a space before the last token - * @param {ASTNode} node The node to report in the event of an error. - * @param {Token} token The token to use for the report. - * @returns {void} - */ - function reportRequiredEndingSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: "requireSpaceBefore", - data: { - token: token.value - }, - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - - /** - * Determines if spacing in curly braces is valid. - * @param {ASTNode} node The AST node to check. - * @param {Token} first The first token to check (should be the opening brace) - * @param {Token} second The second token to check (should be first after the opening brace) - * @param {Token} penultimate The penultimate token to check (should be last before closing brace) - * @param {Token} last The last token to check (should be closing brace) - * @returns {void} - */ - function validateBraceSpacing(node, first, second, penultimate, last) { - if (astUtils.isTokenOnSameLine(first, second)) { - const firstSpaced = sourceCode.isSpaceBetweenTokens(first, second); - - if (options.spaced && !firstSpaced) { - reportRequiredBeginningSpace(node, first); - } - if (!options.spaced && firstSpaced && second.type !== "Line") { - reportNoBeginningSpace(node, first); - } - } - - if (astUtils.isTokenOnSameLine(penultimate, last)) { - const shouldCheckPenultimate = ( - options.arraysInObjectsException && astUtils.isClosingBracketToken(penultimate) || - options.objectsInObjectsException && astUtils.isClosingBraceToken(penultimate) - ); - const penultimateType = shouldCheckPenultimate && sourceCode.getNodeByRangeIndex(penultimate.range[0]).type; - - const closingCurlyBraceMustBeSpaced = ( - options.arraysInObjectsException && penultimateType === "ArrayExpression" || - options.objectsInObjectsException && (penultimateType === "ObjectExpression" || penultimateType === "ObjectPattern") - ) ? !options.spaced : options.spaced; - - const lastSpaced = sourceCode.isSpaceBetweenTokens(penultimate, last); - - if (closingCurlyBraceMustBeSpaced && !lastSpaced) { - reportRequiredEndingSpace(node, last); - } - if (!closingCurlyBraceMustBeSpaced && lastSpaced) { - reportNoEndingSpace(node, last); - } - } - } - - /** - * Gets '}' token of an object node. - * - * Because the last token of object patterns might be a type annotation, - * this traverses tokens preceded by the last property, then returns the - * first '}' token. - * @param {ASTNode} node The node to get. This node is an - * ObjectExpression or an ObjectPattern. And this node has one or - * more properties. - * @returns {Token} '}' token. - */ - function getClosingBraceOfObject(node) { - const lastProperty = node.properties.at(-1); - - return sourceCode.getTokenAfter(lastProperty, astUtils.isClosingBraceToken); - } - - /** - * Reports a given object node if spacing in curly braces is invalid. - * @param {ASTNode} node An ObjectExpression or ObjectPattern node to check. - * @returns {void} - */ - function checkForObject(node) { - if (node.properties.length === 0) { - return; - } - - const first = sourceCode.getFirstToken(node), - last = getClosingBraceOfObject(node), - second = sourceCode.getTokenAfter(first, { includeComments: true }), - penultimate = sourceCode.getTokenBefore(last, { includeComments: true }); - - validateBraceSpacing(node, first, second, penultimate, last); - } - - /** - * Reports a given import node if spacing in curly braces is invalid. - * @param {ASTNode} node An ImportDeclaration node to check. - * @returns {void} - */ - function checkForImport(node) { - if (node.specifiers.length === 0) { - return; - } - - let firstSpecifier = node.specifiers[0]; - const lastSpecifier = node.specifiers.at(-1); - - if (lastSpecifier.type !== "ImportSpecifier") { - return; - } - if (firstSpecifier.type !== "ImportSpecifier") { - firstSpecifier = node.specifiers[1]; - } - - const first = sourceCode.getTokenBefore(firstSpecifier), - last = sourceCode.getTokenAfter(lastSpecifier, astUtils.isNotCommaToken), - second = sourceCode.getTokenAfter(first, { includeComments: true }), - penultimate = sourceCode.getTokenBefore(last, { includeComments: true }); - - validateBraceSpacing(node, first, second, penultimate, last); - } - - /** - * Reports a given export node if spacing in curly braces is invalid. - * @param {ASTNode} node An ExportNamedDeclaration node to check. - * @returns {void} - */ - function checkForExport(node) { - if (node.specifiers.length === 0) { - return; - } - - const firstSpecifier = node.specifiers[0], - lastSpecifier = node.specifiers.at(-1), - first = sourceCode.getTokenBefore(firstSpecifier), - last = sourceCode.getTokenAfter(lastSpecifier, astUtils.isNotCommaToken), - second = sourceCode.getTokenAfter(first, { includeComments: true }), - penultimate = sourceCode.getTokenBefore(last, { includeComments: true }); - - validateBraceSpacing(node, first, second, penultimate, last); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - // var {x} = y; - ObjectPattern: checkForObject, - - // var y = {x: 'y'} - ObjectExpression: checkForObject, - - // import {y} from 'x'; - ImportDeclaration: checkForImport, - - // export {name} from 'yo'; - ExportNamedDeclaration: checkForExport - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/object-property-newline.js b/graphql/node_modules/eslint/lib/rules/object-property-newline.js deleted file mode 100644 index 8a08676c..00000000 --- a/graphql/node_modules/eslint/lib/rules/object-property-newline.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @fileoverview Rule to enforce placing object properties on separate lines. - * @author Vitor Balocco - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce placing object properties on separate lines", - recommended: false, - url: "https://eslint.org/docs/latest/rules/object-property-newline" - }, - - schema: [ - { - type: "object", - properties: { - allowAllPropertiesOnSameLine: { - type: "boolean", - default: false - }, - allowMultiplePropertiesPerLine: { // Deprecated - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "whitespace", - - messages: { - propertiesOnNewlineAll: "Object properties must go on a new line if they aren't all on the same line.", - propertiesOnNewline: "Object properties must go on a new line." - } - }, - - create(context) { - const allowSameLine = context.options[0] && ( - (context.options[0].allowAllPropertiesOnSameLine || context.options[0].allowMultiplePropertiesPerLine /* Deprecated */) - ); - const messageId = allowSameLine - ? "propertiesOnNewlineAll" - : "propertiesOnNewline"; - - const sourceCode = context.sourceCode; - - return { - ObjectExpression(node) { - if (allowSameLine) { - if (node.properties.length > 1) { - const firstTokenOfFirstProperty = sourceCode.getFirstToken(node.properties[0]); - const lastTokenOfLastProperty = sourceCode.getLastToken(node.properties.at(-1)); - - if (firstTokenOfFirstProperty.loc.end.line === lastTokenOfLastProperty.loc.start.line) { - - // All keys and values are on the same line - return; - } - } - } - - for (let i = 1; i < node.properties.length; i++) { - const lastTokenOfPreviousProperty = sourceCode.getLastToken(node.properties[i - 1]); - const firstTokenOfCurrentProperty = sourceCode.getFirstToken(node.properties[i]); - - if (lastTokenOfPreviousProperty.loc.end.line === firstTokenOfCurrentProperty.loc.start.line) { - context.report({ - node, - loc: firstTokenOfCurrentProperty.loc, - messageId, - fix(fixer) { - const comma = sourceCode.getTokenBefore(firstTokenOfCurrentProperty); - const rangeAfterComma = [comma.range[1], firstTokenOfCurrentProperty.range[0]]; - - // Don't perform a fix if there are any comments between the comma and the next property. - if (sourceCode.text.slice(rangeAfterComma[0], rangeAfterComma[1]).trim()) { - return null; - } - - return fixer.replaceTextRange(rangeAfterComma, "\n"); - } - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/object-shorthand.js b/graphql/node_modules/eslint/lib/rules/object-shorthand.js deleted file mode 100644 index f035bbe5..00000000 --- a/graphql/node_modules/eslint/lib/rules/object-shorthand.js +++ /dev/null @@ -1,521 +0,0 @@ -/** - * @fileoverview Rule to enforce concise object methods and properties. - * @author Jamund Ferguson - */ - -"use strict"; - -const OPTIONS = { - always: "always", - never: "never", - methods: "methods", - properties: "properties", - consistent: "consistent", - consistentAsNeeded: "consistent-as-needed" -}; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow method and property shorthand syntax for object literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/object-shorthand" - }, - - fixable: "code", - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["always", "methods", "properties", "never", "consistent", "consistent-as-needed"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["always", "methods", "properties"] - }, - { - type: "object", - properties: { - avoidQuotes: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - }, - { - type: "array", - items: [ - { - enum: ["always", "methods"] - }, - { - type: "object", - properties: { - ignoreConstructors: { - type: "boolean" - }, - methodsIgnorePattern: { - type: "string" - }, - avoidQuotes: { - type: "boolean" - }, - avoidExplicitReturnArrows: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - messages: { - expectedAllPropertiesShorthanded: "Expected shorthand for all properties.", - expectedLiteralMethodLongform: "Expected longform method syntax for string literal keys.", - expectedPropertyShorthand: "Expected property shorthand.", - expectedPropertyLongform: "Expected longform property syntax.", - expectedMethodShorthand: "Expected method shorthand.", - expectedMethodLongform: "Expected longform method syntax.", - unexpectedMix: "Unexpected mix of shorthand and non-shorthand properties." - } - }, - - create(context) { - const APPLY = context.options[0] || OPTIONS.always; - const APPLY_TO_METHODS = APPLY === OPTIONS.methods || APPLY === OPTIONS.always; - const APPLY_TO_PROPS = APPLY === OPTIONS.properties || APPLY === OPTIONS.always; - const APPLY_NEVER = APPLY === OPTIONS.never; - const APPLY_CONSISTENT = APPLY === OPTIONS.consistent; - const APPLY_CONSISTENT_AS_NEEDED = APPLY === OPTIONS.consistentAsNeeded; - - const PARAMS = context.options[1] || {}; - const IGNORE_CONSTRUCTORS = PARAMS.ignoreConstructors; - const METHODS_IGNORE_PATTERN = PARAMS.methodsIgnorePattern - ? new RegExp(PARAMS.methodsIgnorePattern, "u") - : null; - const AVOID_QUOTES = PARAMS.avoidQuotes; - const AVOID_EXPLICIT_RETURN_ARROWS = !!PARAMS.avoidExplicitReturnArrows; - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const CTOR_PREFIX_REGEX = /[^_$0-9]/u; - - /** - * Determines if the first character of the name is a capital letter. - * @param {string} name The name of the node to evaluate. - * @returns {boolean} True if the first character of the property name is a capital letter, false if not. - * @private - */ - function isConstructor(name) { - const match = CTOR_PREFIX_REGEX.exec(name); - - // Not a constructor if name has no characters apart from '_', '$' and digits e.g. '_', '$$', '_8' - if (!match) { - return false; - } - - const firstChar = name.charAt(match.index); - - return firstChar === firstChar.toUpperCase(); - } - - /** - * Determines if the property can have a shorthand form. - * @param {ASTNode} property Property AST node - * @returns {boolean} True if the property can have a shorthand form - * @private - */ - function canHaveShorthand(property) { - return (property.kind !== "set" && property.kind !== "get" && property.type !== "SpreadElement" && property.type !== "SpreadProperty" && property.type !== "ExperimentalSpreadProperty"); - } - - /** - * Checks whether a node is a string literal. - * @param {ASTNode} node Any AST node. - * @returns {boolean} `true` if it is a string literal. - */ - function isStringLiteral(node) { - return node.type === "Literal" && typeof node.value === "string"; - } - - /** - * Determines if the property is a shorthand or not. - * @param {ASTNode} property Property AST node - * @returns {boolean} True if the property is considered shorthand, false if not. - * @private - */ - function isShorthand(property) { - - // property.method is true when `{a(){}}`. - return (property.shorthand || property.method); - } - - /** - * Determines if the property's key and method or value are named equally. - * @param {ASTNode} property Property AST node - * @returns {boolean} True if the key and value are named equally, false if not. - * @private - */ - function isRedundant(property) { - const value = property.value; - - if (value.type === "FunctionExpression") { - return !value.id; // Only anonymous should be shorthand method. - } - if (value.type === "Identifier") { - return astUtils.getStaticPropertyName(property) === value.name; - } - - return false; - } - - /** - * Ensures that an object's properties are consistently shorthand, or not shorthand at all. - * @param {ASTNode} node Property AST node - * @param {boolean} checkRedundancy Whether to check longform redundancy - * @returns {void} - */ - function checkConsistency(node, checkRedundancy) { - - // We are excluding getters/setters and spread properties as they are considered neither longform nor shorthand. - const properties = node.properties.filter(canHaveShorthand); - - // Do we still have properties left after filtering the getters and setters? - if (properties.length > 0) { - const shorthandProperties = properties.filter(isShorthand); - - /* - * If we do not have an equal number of longform properties as - * shorthand properties, we are using the annotations inconsistently - */ - if (shorthandProperties.length !== properties.length) { - - // We have at least 1 shorthand property - if (shorthandProperties.length > 0) { - context.report({ node, messageId: "unexpectedMix" }); - } else if (checkRedundancy) { - - /* - * If all properties of the object contain a method or value with a name matching it's key, - * all the keys are redundant. - */ - const canAlwaysUseShorthand = properties.every(isRedundant); - - if (canAlwaysUseShorthand) { - context.report({ node, messageId: "expectedAllPropertiesShorthanded" }); - } - } - } - } - } - - /** - * Fixes a FunctionExpression node by making it into a shorthand property. - * @param {SourceCodeFixer} fixer The fixer object - * @param {ASTNode} node A `Property` node that has a `FunctionExpression` or `ArrowFunctionExpression` as its value - * @returns {Object} A fix for this node - */ - function makeFunctionShorthand(fixer, node) { - const firstKeyToken = node.computed - ? sourceCode.getFirstToken(node, astUtils.isOpeningBracketToken) - : sourceCode.getFirstToken(node.key); - const lastKeyToken = node.computed - ? sourceCode.getFirstTokenBetween(node.key, node.value, astUtils.isClosingBracketToken) - : sourceCode.getLastToken(node.key); - const keyText = sourceCode.text.slice(firstKeyToken.range[0], lastKeyToken.range[1]); - let keyPrefix = ""; - - // key: /* */ () => {} - if (sourceCode.commentsExistBetween(lastKeyToken, node.value)) { - return null; - } - - if (node.value.async) { - keyPrefix += "async "; - } - if (node.value.generator) { - keyPrefix += "*"; - } - - const fixRange = [firstKeyToken.range[0], node.range[1]]; - const methodPrefix = keyPrefix + keyText; - - if (node.value.type === "FunctionExpression") { - const functionToken = sourceCode.getTokens(node.value).find(token => token.type === "Keyword" && token.value === "function"); - const tokenBeforeParams = node.value.generator ? sourceCode.getTokenAfter(functionToken) : functionToken; - - return fixer.replaceTextRange( - fixRange, - methodPrefix + sourceCode.text.slice(tokenBeforeParams.range[1], node.value.range[1]) - ); - } - - const arrowToken = sourceCode.getTokenBefore(node.value.body, astUtils.isArrowToken); - const fnBody = sourceCode.text.slice(arrowToken.range[1], node.value.range[1]); - - // First token should not be `async` - const firstValueToken = sourceCode.getFirstToken(node.value, { - skip: node.value.async ? 1 : 0 - }); - - const sliceStart = firstValueToken.range[0]; - const sliceEnd = sourceCode.getTokenBefore(arrowToken).range[1]; - const shouldAddParens = node.value.params.length === 1 && node.value.params[0].range[0] === sliceStart; - - const oldParamText = sourceCode.text.slice(sliceStart, sliceEnd); - const newParamText = shouldAddParens ? `(${oldParamText})` : oldParamText; - - return fixer.replaceTextRange( - fixRange, - methodPrefix + newParamText + fnBody - ); - } - - /** - * Fixes a FunctionExpression node by making it into a longform property. - * @param {SourceCodeFixer} fixer The fixer object - * @param {ASTNode} node A `Property` node that has a `FunctionExpression` as its value - * @returns {Object} A fix for this node - */ - function makeFunctionLongform(fixer, node) { - const firstKeyToken = node.computed ? sourceCode.getTokens(node).find(token => token.value === "[") : sourceCode.getFirstToken(node.key); - const lastKeyToken = node.computed ? sourceCode.getTokensBetween(node.key, node.value).find(token => token.value === "]") : sourceCode.getLastToken(node.key); - const keyText = sourceCode.text.slice(firstKeyToken.range[0], lastKeyToken.range[1]); - let functionHeader = "function"; - - if (node.value.async) { - functionHeader = `async ${functionHeader}`; - } - if (node.value.generator) { - functionHeader = `${functionHeader}*`; - } - - return fixer.replaceTextRange([node.range[0], lastKeyToken.range[1]], `${keyText}: ${functionHeader}`); - } - - /* - * To determine whether a given arrow function has a lexical identifier (`this`, `arguments`, `super`, or `new.target`), - * create a stack of functions that define these identifiers (i.e. all functions except arrow functions) as the AST is - * traversed. Whenever a new function is encountered, create a new entry on the stack (corresponding to a different lexical - * scope of `this`), and whenever a function is exited, pop that entry off the stack. When an arrow function is entered, - * keep a reference to it on the current stack entry, and remove that reference when the arrow function is exited. - * When a lexical identifier is encountered, mark all the arrow functions on the current stack entry by adding them - * to an `arrowsWithLexicalIdentifiers` set. Any arrow function in that set will not be reported by this rule, - * because converting it into a method would change the value of one of the lexical identifiers. - */ - const lexicalScopeStack = []; - const arrowsWithLexicalIdentifiers = new WeakSet(); - const argumentsIdentifiers = new WeakSet(); - - /** - * Enters a function. This creates a new lexical identifier scope, so a new Set of arrow functions is pushed onto the stack. - * Also, this marks all `arguments` identifiers so that they can be detected later. - * @param {ASTNode} node The node representing the function. - * @returns {void} - */ - function enterFunction(node) { - lexicalScopeStack.unshift(new Set()); - sourceCode.getScope(node).variables.filter(variable => variable.name === "arguments").forEach(variable => { - variable.references.map(ref => ref.identifier).forEach(identifier => argumentsIdentifiers.add(identifier)); - }); - } - - /** - * Exits a function. This pops the current set of arrow functions off the lexical scope stack. - * @returns {void} - */ - function exitFunction() { - lexicalScopeStack.shift(); - } - - /** - * Marks the current function as having a lexical keyword. This implies that all arrow functions - * in the current lexical scope contain a reference to this lexical keyword. - * @returns {void} - */ - function reportLexicalIdentifier() { - lexicalScopeStack[0].forEach(arrowFunction => arrowsWithLexicalIdentifiers.add(arrowFunction)); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program: enterFunction, - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - "Program:exit": exitFunction, - "FunctionDeclaration:exit": exitFunction, - "FunctionExpression:exit": exitFunction, - - ArrowFunctionExpression(node) { - lexicalScopeStack[0].add(node); - }, - "ArrowFunctionExpression:exit"(node) { - lexicalScopeStack[0].delete(node); - }, - - ThisExpression: reportLexicalIdentifier, - Super: reportLexicalIdentifier, - MetaProperty(node) { - if (node.meta.name === "new" && node.property.name === "target") { - reportLexicalIdentifier(); - } - }, - Identifier(node) { - if (argumentsIdentifiers.has(node)) { - reportLexicalIdentifier(); - } - }, - - ObjectExpression(node) { - if (APPLY_CONSISTENT) { - checkConsistency(node, false); - } else if (APPLY_CONSISTENT_AS_NEEDED) { - checkConsistency(node, true); - } - }, - - "Property:exit"(node) { - const isConciseProperty = node.method || node.shorthand; - - // Ignore destructuring assignment - if (node.parent.type === "ObjectPattern") { - return; - } - - // getters and setters are ignored - if (node.kind === "get" || node.kind === "set") { - return; - } - - // only computed methods can fail the following checks - if (node.computed && node.value.type !== "FunctionExpression" && node.value.type !== "ArrowFunctionExpression") { - return; - } - - //-------------------------------------------------------------- - // Checks for property/method shorthand. - if (isConciseProperty) { - if (node.method && (APPLY_NEVER || AVOID_QUOTES && isStringLiteral(node.key))) { - const messageId = APPLY_NEVER ? "expectedMethodLongform" : "expectedLiteralMethodLongform"; - - // { x() {} } should be written as { x: function() {} } - context.report({ - node, - messageId, - fix: fixer => makeFunctionLongform(fixer, node) - }); - } else if (APPLY_NEVER) { - - // { x } should be written as { x: x } - context.report({ - node, - messageId: "expectedPropertyLongform", - fix: fixer => fixer.insertTextAfter(node.key, `: ${node.key.name}`) - }); - } - } else if (APPLY_TO_METHODS && !node.value.id && (node.value.type === "FunctionExpression" || node.value.type === "ArrowFunctionExpression")) { - if (IGNORE_CONSTRUCTORS && node.key.type === "Identifier" && isConstructor(node.key.name)) { - return; - } - - if (METHODS_IGNORE_PATTERN) { - const propertyName = astUtils.getStaticPropertyName(node); - - if (propertyName !== null && METHODS_IGNORE_PATTERN.test(propertyName)) { - return; - } - } - - if (AVOID_QUOTES && isStringLiteral(node.key)) { - return; - } - - // {[x]: function(){}} should be written as {[x]() {}} - if (node.value.type === "FunctionExpression" || - node.value.type === "ArrowFunctionExpression" && - node.value.body.type === "BlockStatement" && - AVOID_EXPLICIT_RETURN_ARROWS && - !arrowsWithLexicalIdentifiers.has(node.value) - ) { - context.report({ - node, - messageId: "expectedMethodShorthand", - fix: fixer => makeFunctionShorthand(fixer, node) - }); - } - } else if (node.value.type === "Identifier" && node.key.name === node.value.name && APPLY_TO_PROPS) { - - // {x: x} should be written as {x} - context.report({ - node, - messageId: "expectedPropertyShorthand", - fix(fixer) { - - // x: /* */ x - // x: (/* */ x) - if (sourceCode.getCommentsInside(node).length > 0) { - return null; - } - - return fixer.replaceText(node, node.value.name); - } - }); - } else if (node.value.type === "Identifier" && node.key.type === "Literal" && node.key.value === node.value.name && APPLY_TO_PROPS) { - if (AVOID_QUOTES) { - return; - } - - // {"x": x} should be written as {x} - context.report({ - node, - messageId: "expectedPropertyShorthand", - fix(fixer) { - - // "x": /* */ x - // "x": (/* */ x) - if (sourceCode.getCommentsInside(node).length > 0) { - return null; - } - - return fixer.replaceText(node, node.value.name); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/one-var-declaration-per-line.js b/graphql/node_modules/eslint/lib/rules/one-var-declaration-per-line.js deleted file mode 100644 index 340eac16..00000000 --- a/graphql/node_modules/eslint/lib/rules/one-var-declaration-per-line.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @fileoverview Rule to check multiple var declarations per line - * @author Alberto Rodríguez - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Require or disallow newlines around variable declarations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/one-var-declaration-per-line" - }, - - schema: [ - { - enum: ["always", "initializations"] - } - ], - - fixable: "whitespace", - - messages: { - expectVarOnNewline: "Expected variable declaration to be on a new line." - } - }, - - create(context) { - - const always = context.options[0] === "always"; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - - /** - * Determine if provided keyword is a variant of for specifiers - * @private - * @param {string} keyword keyword to test - * @returns {boolean} True if `keyword` is a variant of for specifier - */ - function isForTypeSpecifier(keyword) { - return keyword === "ForStatement" || keyword === "ForInStatement" || keyword === "ForOfStatement"; - } - - /** - * Checks newlines around variable declarations. - * @private - * @param {ASTNode} node `VariableDeclaration` node to test - * @returns {void} - */ - function checkForNewLine(node) { - if (isForTypeSpecifier(node.parent.type)) { - return; - } - - const declarations = node.declarations; - let prev; - - declarations.forEach(current => { - if (prev && prev.loc.end.line === current.loc.start.line) { - if (always || prev.init || current.init) { - context.report({ - node, - messageId: "expectVarOnNewline", - loc: current.loc, - fix: fixer => fixer.insertTextBefore(current, "\n") - }); - } - } - prev = current; - }); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - VariableDeclaration: checkForNewLine - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/one-var.js b/graphql/node_modules/eslint/lib/rules/one-var.js deleted file mode 100644 index ba461a40..00000000 --- a/graphql/node_modules/eslint/lib/rules/one-var.js +++ /dev/null @@ -1,567 +0,0 @@ -/** - * @fileoverview A rule to control the use of single variable declarations. - * @author Ian Christian Myers - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the given node is in a statement list. - * @param {ASTNode} node node to check - * @returns {boolean} `true` if the given node is in a statement list - */ -function isInStatementList(node) { - return astUtils.STATEMENT_LIST_PARENTS.has(node.parent.type); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce variables to be declared either together or separately in functions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/one-var" - }, - - fixable: "code", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never", "consecutive"] - }, - { - type: "object", - properties: { - separateRequires: { - type: "boolean" - }, - var: { - enum: ["always", "never", "consecutive"] - }, - let: { - enum: ["always", "never", "consecutive"] - }, - const: { - enum: ["always", "never", "consecutive"] - } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - initialized: { - enum: ["always", "never", "consecutive"] - }, - uninitialized: { - enum: ["always", "never", "consecutive"] - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - combineUninitialized: "Combine this with the previous '{{type}}' statement with uninitialized variables.", - combineInitialized: "Combine this with the previous '{{type}}' statement with initialized variables.", - splitUninitialized: "Split uninitialized '{{type}}' declarations into multiple statements.", - splitInitialized: "Split initialized '{{type}}' declarations into multiple statements.", - splitRequires: "Split requires to be separated into a single block.", - combine: "Combine this with the previous '{{type}}' statement.", - split: "Split '{{type}}' declarations into multiple statements." - } - }, - - create(context) { - const MODE_ALWAYS = "always"; - const MODE_NEVER = "never"; - const MODE_CONSECUTIVE = "consecutive"; - const mode = context.options[0] || MODE_ALWAYS; - - const options = {}; - - if (typeof mode === "string") { // simple options configuration with just a string - options.var = { uninitialized: mode, initialized: mode }; - options.let = { uninitialized: mode, initialized: mode }; - options.const = { uninitialized: mode, initialized: mode }; - } else if (typeof mode === "object") { // options configuration is an object - options.separateRequires = !!mode.separateRequires; - options.var = { uninitialized: mode.var, initialized: mode.var }; - options.let = { uninitialized: mode.let, initialized: mode.let }; - options.const = { uninitialized: mode.const, initialized: mode.const }; - if (Object.hasOwn(mode, "uninitialized")) { - options.var.uninitialized = mode.uninitialized; - options.let.uninitialized = mode.uninitialized; - options.const.uninitialized = mode.uninitialized; - } - if (Object.hasOwn(mode, "initialized")) { - options.var.initialized = mode.initialized; - options.let.initialized = mode.initialized; - options.const.initialized = mode.initialized; - } - } - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - const functionStack = []; - const blockStack = []; - - /** - * Increments the blockStack counter. - * @returns {void} - * @private - */ - function startBlock() { - blockStack.push({ - let: { initialized: false, uninitialized: false }, - const: { initialized: false, uninitialized: false } - }); - } - - /** - * Increments the functionStack counter. - * @returns {void} - * @private - */ - function startFunction() { - functionStack.push({ initialized: false, uninitialized: false }); - startBlock(); - } - - /** - * Decrements the blockStack counter. - * @returns {void} - * @private - */ - function endBlock() { - blockStack.pop(); - } - - /** - * Decrements the functionStack counter. - * @returns {void} - * @private - */ - function endFunction() { - functionStack.pop(); - endBlock(); - } - - /** - * Check if a variable declaration is a require. - * @param {ASTNode} decl variable declaration Node - * @returns {bool} if decl is a require, return true; else return false. - * @private - */ - function isRequire(decl) { - return decl.init && decl.init.type === "CallExpression" && decl.init.callee.name === "require"; - } - - /** - * Records whether initialized/uninitialized/required variables are defined in current scope. - * @param {string} statementType node.kind, one of: "var", "let", or "const" - * @param {ASTNode[]} declarations List of declarations - * @param {Object} currentScope The scope being investigated - * @returns {void} - * @private - */ - function recordTypes(statementType, declarations, currentScope) { - for (let i = 0; i < declarations.length; i++) { - if (declarations[i].init === null) { - if (options[statementType] && options[statementType].uninitialized === MODE_ALWAYS) { - currentScope.uninitialized = true; - } - } else { - if (options[statementType] && options[statementType].initialized === MODE_ALWAYS) { - if (options.separateRequires && isRequire(declarations[i])) { - currentScope.required = true; - } else { - currentScope.initialized = true; - } - } - } - } - } - - /** - * Determines the current scope (function or block) - * @param {string} statementType node.kind, one of: "var", "let", or "const" - * @returns {Object} The scope associated with statementType - */ - function getCurrentScope(statementType) { - let currentScope; - - if (statementType === "var") { - currentScope = functionStack.at(-1); - } else if (statementType === "let") { - currentScope = blockStack.at(-1).let; - } else if (statementType === "const") { - currentScope = blockStack.at(-1).const; - } - return currentScope; - } - - /** - * Counts the number of initialized and uninitialized declarations in a list of declarations - * @param {ASTNode[]} declarations List of declarations - * @returns {Object} Counts of 'uninitialized' and 'initialized' declarations - * @private - */ - function countDeclarations(declarations) { - const counts = { uninitialized: 0, initialized: 0 }; - - for (let i = 0; i < declarations.length; i++) { - if (declarations[i].init === null) { - counts.uninitialized++; - } else { - counts.initialized++; - } - } - return counts; - } - - /** - * Determines if there is more than one var statement in the current scope. - * @param {string} statementType node.kind, one of: "var", "let", or "const" - * @param {ASTNode[]} declarations List of declarations - * @returns {boolean} Returns true if it is the first var declaration, false if not. - * @private - */ - function hasOnlyOneStatement(statementType, declarations) { - - const declarationCounts = countDeclarations(declarations); - const currentOptions = options[statementType] || {}; - const currentScope = getCurrentScope(statementType); - const hasRequires = declarations.some(isRequire); - - if (currentOptions.uninitialized === MODE_ALWAYS && currentOptions.initialized === MODE_ALWAYS) { - if (currentScope.uninitialized || currentScope.initialized) { - if (!hasRequires) { - return false; - } - } - } - - if (declarationCounts.uninitialized > 0) { - if (currentOptions.uninitialized === MODE_ALWAYS && currentScope.uninitialized) { - return false; - } - } - if (declarationCounts.initialized > 0) { - if (currentOptions.initialized === MODE_ALWAYS && currentScope.initialized) { - if (!hasRequires) { - return false; - } - } - } - if (currentScope.required && hasRequires) { - return false; - } - recordTypes(statementType, declarations, currentScope); - return true; - } - - /** - * Fixer to join VariableDeclaration's into a single declaration - * @param {VariableDeclarator[]} declarations The `VariableDeclaration` to join - * @returns {Function} The fixer function - */ - function joinDeclarations(declarations) { - const declaration = declarations[0]; - const body = Array.isArray(declaration.parent.parent.body) ? declaration.parent.parent.body : []; - const currentIndex = body.findIndex(node => node.range[0] === declaration.parent.range[0]); - const previousNode = body[currentIndex - 1]; - - return fixer => { - const type = sourceCode.getTokenBefore(declaration); - const prevSemi = sourceCode.getTokenBefore(type); - const res = []; - - if (previousNode && previousNode.kind === sourceCode.getText(type)) { - if (prevSemi.value === ";") { - res.push(fixer.replaceText(prevSemi, ",")); - } else { - res.push(fixer.insertTextAfter(prevSemi, ",")); - } - res.push(fixer.replaceText(type, "")); - } - - return res; - }; - } - - /** - * Fixer to split a VariableDeclaration into individual declarations - * @param {VariableDeclaration} declaration The `VariableDeclaration` to split - * @returns {Function|null} The fixer function - */ - function splitDeclarations(declaration) { - const { parent } = declaration; - - // don't autofix code such as: if (foo) var x, y; - if (!isInStatementList(parent.type === "ExportNamedDeclaration" ? parent : declaration)) { - return null; - } - - return fixer => declaration.declarations.map(declarator => { - const tokenAfterDeclarator = sourceCode.getTokenAfter(declarator); - - if (tokenAfterDeclarator === null) { - return null; - } - - const afterComma = sourceCode.getTokenAfter(tokenAfterDeclarator, { includeComments: true }); - - if (tokenAfterDeclarator.value !== ",") { - return null; - } - - const exportPlacement = declaration.parent.type === "ExportNamedDeclaration" ? "export " : ""; - - /* - * `var x,y` - * tokenAfterDeclarator ^^ afterComma - */ - if (afterComma.range[0] === tokenAfterDeclarator.range[1]) { - return fixer.replaceText(tokenAfterDeclarator, `; ${exportPlacement}${declaration.kind} `); - } - - /* - * `var x, - * tokenAfterDeclarator ^ - * y` - * ^ afterComma - */ - if ( - afterComma.loc.start.line > tokenAfterDeclarator.loc.end.line || - afterComma.type === "Line" || - afterComma.type === "Block" - ) { - let lastComment = afterComma; - - while (lastComment.type === "Line" || lastComment.type === "Block") { - lastComment = sourceCode.getTokenAfter(lastComment, { includeComments: true }); - } - - return fixer.replaceTextRange( - [tokenAfterDeclarator.range[0], lastComment.range[0]], - `;${sourceCode.text.slice(tokenAfterDeclarator.range[1], lastComment.range[0])}${exportPlacement}${declaration.kind} ` - ); - } - - return fixer.replaceText(tokenAfterDeclarator, `; ${exportPlacement}${declaration.kind}`); - }).filter(x => x); - } - - /** - * Checks a given VariableDeclaration node for errors. - * @param {ASTNode} node The VariableDeclaration node to check - * @returns {void} - * @private - */ - function checkVariableDeclaration(node) { - const parent = node.parent; - const type = node.kind; - - if (!options[type]) { - return; - } - - const declarations = node.declarations; - const declarationCounts = countDeclarations(declarations); - const mixedRequires = declarations.some(isRequire) && !declarations.every(isRequire); - - if (options[type].initialized === MODE_ALWAYS) { - if (options.separateRequires && mixedRequires) { - context.report({ - node, - messageId: "splitRequires" - }); - } - } - - // consecutive - const nodeIndex = (parent.body && parent.body.length > 0 && parent.body.indexOf(node)) || 0; - - if (nodeIndex > 0) { - const previousNode = parent.body[nodeIndex - 1]; - const isPreviousNodeDeclaration = previousNode.type === "VariableDeclaration"; - const declarationsWithPrevious = declarations.concat(previousNode.declarations || []); - - if ( - isPreviousNodeDeclaration && - previousNode.kind === type && - !(declarationsWithPrevious.some(isRequire) && !declarationsWithPrevious.every(isRequire)) - ) { - const previousDeclCounts = countDeclarations(previousNode.declarations); - - if (options[type].initialized === MODE_CONSECUTIVE && options[type].uninitialized === MODE_CONSECUTIVE) { - context.report({ - node, - messageId: "combine", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } else if (options[type].initialized === MODE_CONSECUTIVE && declarationCounts.initialized > 0 && previousDeclCounts.initialized > 0) { - context.report({ - node, - messageId: "combineInitialized", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } else if (options[type].uninitialized === MODE_CONSECUTIVE && - declarationCounts.uninitialized > 0 && - previousDeclCounts.uninitialized > 0) { - context.report({ - node, - messageId: "combineUninitialized", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } - } - } - - // always - if (!hasOnlyOneStatement(type, declarations)) { - if (options[type].initialized === MODE_ALWAYS && options[type].uninitialized === MODE_ALWAYS) { - context.report({ - node, - messageId: "combine", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } else { - if (options[type].initialized === MODE_ALWAYS && declarationCounts.initialized > 0) { - context.report({ - node, - messageId: "combineInitialized", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } - if (options[type].uninitialized === MODE_ALWAYS && declarationCounts.uninitialized > 0) { - if (node.parent.left === node && (node.parent.type === "ForInStatement" || node.parent.type === "ForOfStatement")) { - return; - } - context.report({ - node, - messageId: "combineUninitialized", - data: { - type - }, - fix: joinDeclarations(declarations) - }); - } - } - } - - // never - if (parent.type !== "ForStatement" || parent.init !== node) { - const totalDeclarations = declarationCounts.uninitialized + declarationCounts.initialized; - - if (totalDeclarations > 1) { - if (options[type].initialized === MODE_NEVER && options[type].uninitialized === MODE_NEVER) { - - // both initialized and uninitialized - context.report({ - node, - messageId: "split", - data: { - type - }, - fix: splitDeclarations(node) - }); - } else if (options[type].initialized === MODE_NEVER && declarationCounts.initialized > 0) { - - // initialized - context.report({ - node, - messageId: "splitInitialized", - data: { - type - }, - fix: splitDeclarations(node) - }); - } else if (options[type].uninitialized === MODE_NEVER && declarationCounts.uninitialized > 0) { - - // uninitialized - context.report({ - node, - messageId: "splitUninitialized", - data: { - type - }, - fix: splitDeclarations(node) - }); - } - } - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - Program: startFunction, - FunctionDeclaration: startFunction, - FunctionExpression: startFunction, - ArrowFunctionExpression: startFunction, - StaticBlock: startFunction, // StaticBlock creates a new scope for `var` variables - - BlockStatement: startBlock, - ForStatement: startBlock, - ForInStatement: startBlock, - ForOfStatement: startBlock, - SwitchStatement: startBlock, - VariableDeclaration: checkVariableDeclaration, - "ForStatement:exit": endBlock, - "ForOfStatement:exit": endBlock, - "ForInStatement:exit": endBlock, - "SwitchStatement:exit": endBlock, - "BlockStatement:exit": endBlock, - - "Program:exit": endFunction, - "FunctionDeclaration:exit": endFunction, - "FunctionExpression:exit": endFunction, - "ArrowFunctionExpression:exit": endFunction, - "StaticBlock:exit": endFunction - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/operator-assignment.js b/graphql/node_modules/eslint/lib/rules/operator-assignment.js deleted file mode 100644 index f71d73be..00000000 --- a/graphql/node_modules/eslint/lib/rules/operator-assignment.js +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @fileoverview Rule to replace assignment expressions with operator assignment - * @author Brandon Mills - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether an operator is commutative and has an operator assignment - * shorthand form. - * @param {string} operator Operator to check. - * @returns {boolean} True if the operator is commutative and has a - * shorthand form. - */ -function isCommutativeOperatorWithShorthand(operator) { - return ["*", "&", "^", "|"].includes(operator); -} - -/** - * Checks whether an operator is not commutative and has an operator assignment - * shorthand form. - * @param {string} operator Operator to check. - * @returns {boolean} True if the operator is not commutative and has - * a shorthand form. - */ -function isNonCommutativeOperatorWithShorthand(operator) { - return ["+", "-", "/", "%", "<<", ">>", ">>>", "**"].includes(operator); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** - * Determines if the left side of a node can be safely fixed (i.e. if it activates the same getters/setters and) - * toString calls regardless of whether assignment shorthand is used) - * @param {ASTNode} node The node on the left side of the expression - * @returns {boolean} `true` if the node can be fixed - */ -function canBeFixed(node) { - return ( - node.type === "Identifier" || - ( - node.type === "MemberExpression" && - (node.object.type === "Identifier" || node.object.type === "ThisExpression") && - (!node.computed || node.property.type === "Literal") - ) - ); -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow assignment operator shorthand where possible", - recommended: false, - url: "https://eslint.org/docs/latest/rules/operator-assignment" - }, - - schema: [ - { - enum: ["always", "never"] - } - ], - - fixable: "code", - messages: { - replaced: "Assignment (=) can be replaced with operator assignment ({{operator}}).", - unexpected: "Unexpected operator assignment ({{operator}}) shorthand." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Returns the operator token of an AssignmentExpression or BinaryExpression - * @param {ASTNode} node An AssignmentExpression or BinaryExpression node - * @returns {Token} The operator token in the node - */ - function getOperatorToken(node) { - return sourceCode.getFirstTokenBetween(node.left, node.right, token => token.value === node.operator); - } - - /** - * Ensures that an assignment uses the shorthand form where possible. - * @param {ASTNode} node An AssignmentExpression node. - * @returns {void} - */ - function verify(node) { - if (node.operator !== "=" || node.right.type !== "BinaryExpression") { - return; - } - - const left = node.left; - const expr = node.right; - const operator = expr.operator; - - if (isCommutativeOperatorWithShorthand(operator) || isNonCommutativeOperatorWithShorthand(operator)) { - const replacementOperator = `${operator}=`; - - if (astUtils.isSameReference(left, expr.left, true)) { - context.report({ - node, - messageId: "replaced", - data: { operator: replacementOperator }, - fix(fixer) { - if (canBeFixed(left) && canBeFixed(expr.left)) { - const equalsToken = getOperatorToken(node); - const operatorToken = getOperatorToken(expr); - const leftText = sourceCode.getText().slice(node.range[0], equalsToken.range[0]); - const rightText = sourceCode.getText().slice(operatorToken.range[1], node.right.range[1]); - - // Check for comments that would be removed. - if (sourceCode.commentsExistBetween(equalsToken, operatorToken)) { - return null; - } - - return fixer.replaceText(node, `${leftText}${replacementOperator}${rightText}`); - } - return null; - } - }); - } else if (astUtils.isSameReference(left, expr.right, true) && isCommutativeOperatorWithShorthand(operator)) { - - /* - * This case can't be fixed safely. - * If `a` and `b` both have custom valueOf() behavior, then fixing `a = b * a` to `a *= b` would - * change the execution order of the valueOf() functions. - */ - context.report({ - node, - messageId: "replaced", - data: { operator: replacementOperator } - }); - } - } - } - - /** - * Warns if an assignment expression uses operator assignment shorthand. - * @param {ASTNode} node An AssignmentExpression node. - * @returns {void} - */ - function prohibit(node) { - if (node.operator !== "=" && !astUtils.isLogicalAssignmentOperator(node.operator)) { - context.report({ - node, - messageId: "unexpected", - data: { operator: node.operator }, - fix(fixer) { - if (canBeFixed(node.left)) { - const firstToken = sourceCode.getFirstToken(node); - const operatorToken = getOperatorToken(node); - const leftText = sourceCode.getText().slice(node.range[0], operatorToken.range[0]); - const newOperator = node.operator.slice(0, -1); - let rightText; - - // Check for comments that would be duplicated. - if (sourceCode.commentsExistBetween(firstToken, operatorToken)) { - return null; - } - - // If this change would modify precedence (e.g. `foo *= bar + 1` => `foo = foo * (bar + 1)`), parenthesize the right side. - if ( - astUtils.getPrecedence(node.right) <= astUtils.getPrecedence({ type: "BinaryExpression", operator: newOperator }) && - !astUtils.isParenthesised(sourceCode, node.right) - ) { - rightText = `${sourceCode.text.slice(operatorToken.range[1], node.right.range[0])}(${sourceCode.getText(node.right)})`; - } else { - const tokenAfterOperator = sourceCode.getTokenAfter(operatorToken, { includeComments: true }); - let rightTextPrefix = ""; - - if ( - operatorToken.range[1] === tokenAfterOperator.range[0] && - !astUtils.canTokensBeAdjacent({ type: "Punctuator", value: newOperator }, tokenAfterOperator) - ) { - rightTextPrefix = " "; // foo+=+bar -> foo= foo+ +bar - } - - rightText = `${rightTextPrefix}${sourceCode.text.slice(operatorToken.range[1], node.range[1])}`; - } - - return fixer.replaceText(node, `${leftText}= ${leftText}${newOperator}${rightText}`); - } - return null; - } - }); - } - } - - return { - AssignmentExpression: context.options[0] !== "never" ? verify : prohibit - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/operator-linebreak.js b/graphql/node_modules/eslint/lib/rules/operator-linebreak.js deleted file mode 100644 index 3065e66b..00000000 --- a/graphql/node_modules/eslint/lib/rules/operator-linebreak.js +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @fileoverview Operator linebreak - enforces operator linebreak style of two types: after and before - * @author Benoît Zugmeyer - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent linebreak style for operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/operator-linebreak" - }, - - schema: [ - { - enum: ["after", "before", "none", null] - }, - { - type: "object", - properties: { - overrides: { - type: "object", - additionalProperties: { - enum: ["after", "before", "none", "ignore"] - } - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - operatorAtBeginning: "'{{operator}}' should be placed at the beginning of the line.", - operatorAtEnd: "'{{operator}}' should be placed at the end of the line.", - badLinebreak: "Bad line breaking before and after '{{operator}}'.", - noLinebreak: "There should be no line break before or after '{{operator}}'." - } - }, - - create(context) { - - const usedDefaultGlobal = !context.options[0]; - const globalStyle = context.options[0] || "after"; - const options = context.options[1] || {}; - const styleOverrides = options.overrides ? Object.assign({}, options.overrides) : {}; - - if (usedDefaultGlobal && !styleOverrides["?"]) { - styleOverrides["?"] = "before"; - } - - if (usedDefaultGlobal && !styleOverrides[":"]) { - styleOverrides[":"] = "before"; - } - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Gets a fixer function to fix rule issues - * @param {Token} operatorToken The operator token of an expression - * @param {string} desiredStyle The style for the rule. One of 'before', 'after', 'none' - * @returns {Function} A fixer function - */ - function getFixer(operatorToken, desiredStyle) { - return fixer => { - const tokenBefore = sourceCode.getTokenBefore(operatorToken); - const tokenAfter = sourceCode.getTokenAfter(operatorToken); - const textBefore = sourceCode.text.slice(tokenBefore.range[1], operatorToken.range[0]); - const textAfter = sourceCode.text.slice(operatorToken.range[1], tokenAfter.range[0]); - const hasLinebreakBefore = !astUtils.isTokenOnSameLine(tokenBefore, operatorToken); - const hasLinebreakAfter = !astUtils.isTokenOnSameLine(operatorToken, tokenAfter); - let newTextBefore, newTextAfter; - - if (hasLinebreakBefore !== hasLinebreakAfter && desiredStyle !== "none") { - - // If there is a comment before and after the operator, don't do a fix. - if (sourceCode.getTokenBefore(operatorToken, { includeComments: true }) !== tokenBefore && - sourceCode.getTokenAfter(operatorToken, { includeComments: true }) !== tokenAfter) { - - return null; - } - - /* - * If there is only one linebreak and it's on the wrong side of the operator, swap the text before and after the operator. - * foo && - * bar - * would get fixed to - * foo - * && bar - */ - newTextBefore = textAfter; - newTextAfter = textBefore; - } else { - const LINEBREAK_REGEX = astUtils.createGlobalLinebreakMatcher(); - - // Otherwise, if no linebreak is desired and no comments interfere, replace the linebreaks with empty strings. - newTextBefore = desiredStyle === "before" || textBefore.trim() ? textBefore : textBefore.replace(LINEBREAK_REGEX, ""); - newTextAfter = desiredStyle === "after" || textAfter.trim() ? textAfter : textAfter.replace(LINEBREAK_REGEX, ""); - - // If there was no change (due to interfering comments), don't output a fix. - if (newTextBefore === textBefore && newTextAfter === textAfter) { - return null; - } - } - - if (newTextAfter === "" && tokenAfter.type === "Punctuator" && "+-".includes(operatorToken.value) && tokenAfter.value === operatorToken.value) { - - // To avoid accidentally creating a ++ or -- operator, insert a space if the operator is a +/- and the following token is a unary +/-. - newTextAfter += " "; - } - - return fixer.replaceTextRange([tokenBefore.range[1], tokenAfter.range[0]], newTextBefore + operatorToken.value + newTextAfter); - }; - } - - /** - * Checks the operator placement - * @param {ASTNode} node The node to check - * @param {ASTNode} rightSide The node that comes after the operator in `node` - * @param {string} operator The operator - * @private - * @returns {void} - */ - function validateNode(node, rightSide, operator) { - - /* - * Find the operator token by searching from the right side, because between the left side and the operator - * there could be additional tokens from type annotations. Search specifically for the token which - * value equals the operator, in order to skip possible opening parentheses before the right side node. - */ - const operatorToken = sourceCode.getTokenBefore(rightSide, token => token.value === operator); - const leftToken = sourceCode.getTokenBefore(operatorToken); - const rightToken = sourceCode.getTokenAfter(operatorToken); - const operatorStyleOverride = styleOverrides[operator]; - const style = operatorStyleOverride || globalStyle; - const fix = getFixer(operatorToken, style); - - // if single line - if (astUtils.isTokenOnSameLine(leftToken, operatorToken) && - astUtils.isTokenOnSameLine(operatorToken, rightToken)) { - - // do nothing. - - } else if (operatorStyleOverride !== "ignore" && !astUtils.isTokenOnSameLine(leftToken, operatorToken) && - !astUtils.isTokenOnSameLine(operatorToken, rightToken)) { - - // lone operator - context.report({ - node, - loc: operatorToken.loc, - messageId: "badLinebreak", - data: { - operator - }, - fix - }); - - } else if (style === "before" && astUtils.isTokenOnSameLine(leftToken, operatorToken)) { - - context.report({ - node, - loc: operatorToken.loc, - messageId: "operatorAtBeginning", - data: { - operator - }, - fix - }); - - } else if (style === "after" && astUtils.isTokenOnSameLine(operatorToken, rightToken)) { - - context.report({ - node, - loc: operatorToken.loc, - messageId: "operatorAtEnd", - data: { - operator - }, - fix - }); - - } else if (style === "none") { - - context.report({ - node, - loc: operatorToken.loc, - messageId: "noLinebreak", - data: { - operator - }, - fix - }); - - } - } - - /** - * Validates a binary expression using `validateNode` - * @param {BinaryExpression|LogicalExpression|AssignmentExpression} node node to be validated - * @returns {void} - */ - function validateBinaryExpression(node) { - validateNode(node, node.right, node.operator); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - BinaryExpression: validateBinaryExpression, - LogicalExpression: validateBinaryExpression, - AssignmentExpression: validateBinaryExpression, - VariableDeclarator(node) { - if (node.init) { - validateNode(node, node.init, "="); - } - }, - PropertyDefinition(node) { - if (node.value) { - validateNode(node, node.value, "="); - } - }, - ConditionalExpression(node) { - validateNode(node, node.consequent, "?"); - validateNode(node, node.alternate, ":"); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/padded-blocks.js b/graphql/node_modules/eslint/lib/rules/padded-blocks.js deleted file mode 100644 index d0c04543..00000000 --- a/graphql/node_modules/eslint/lib/rules/padded-blocks.js +++ /dev/null @@ -1,310 +0,0 @@ -/** - * @fileoverview A rule to ensure blank lines within blocks. - * @author Mathias Schreck - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow padding within blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/padded-blocks" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - blocks: { - enum: ["always", "never"] - }, - switches: { - enum: ["always", "never"] - }, - classes: { - enum: ["always", "never"] - } - }, - additionalProperties: false, - minProperties: 1 - } - ] - }, - { - type: "object", - properties: { - allowSingleLineBlocks: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - - messages: { - alwaysPadBlock: "Block must be padded by blank lines.", - neverPadBlock: "Block must not be padded by blank lines." - } - }, - - create(context) { - const options = {}; - const typeOptions = context.options[0] || "always"; - const exceptOptions = context.options[1] || {}; - - if (typeof typeOptions === "string") { - const shouldHavePadding = typeOptions === "always"; - - options.blocks = shouldHavePadding; - options.switches = shouldHavePadding; - options.classes = shouldHavePadding; - } else { - if (Object.hasOwn(typeOptions, "blocks")) { - options.blocks = typeOptions.blocks === "always"; - } - if (Object.hasOwn(typeOptions, "switches")) { - options.switches = typeOptions.switches === "always"; - } - if (Object.hasOwn(typeOptions, "classes")) { - options.classes = typeOptions.classes === "always"; - } - } - - if (Object.hasOwn(exceptOptions, "allowSingleLineBlocks")) { - options.allowSingleLineBlocks = exceptOptions.allowSingleLineBlocks === true; - } - - const sourceCode = context.sourceCode; - - /** - * Gets the open brace token from a given node. - * @param {ASTNode} node A BlockStatement or SwitchStatement node from which to get the open brace. - * @returns {Token} The token of the open brace. - */ - function getOpenBrace(node) { - if (node.type === "SwitchStatement") { - return sourceCode.getTokenBefore(node.cases[0]); - } - - if (node.type === "StaticBlock") { - return sourceCode.getFirstToken(node, { skip: 1 }); // skip the `static` token - } - - // `BlockStatement` or `ClassBody` - return sourceCode.getFirstToken(node); - } - - /** - * Checks if the given parameter is a comment node - * @param {ASTNode|Token} node An AST node or token - * @returns {boolean} True if node is a comment - */ - function isComment(node) { - return node.type === "Line" || node.type === "Block"; - } - - /** - * Checks if there is padding between two tokens - * @param {Token} first The first token - * @param {Token} second The second token - * @returns {boolean} True if there is at least a line between the tokens - */ - function isPaddingBetweenTokens(first, second) { - return second.loc.start.line - first.loc.end.line >= 2; - } - - - /** - * Checks if the given token has a blank line after it. - * @param {Token} token The token to check. - * @returns {boolean} Whether or not the token is followed by a blank line. - */ - function getFirstBlockToken(token) { - let prev, - first = token; - - do { - prev = first; - first = sourceCode.getTokenAfter(first, { includeComments: true }); - } while (isComment(first) && first.loc.start.line === prev.loc.end.line); - - return first; - } - - /** - * Checks if the given token is preceded by a blank line. - * @param {Token} token The token to check - * @returns {boolean} Whether or not the token is preceded by a blank line - */ - function getLastBlockToken(token) { - let last = token, - next; - - do { - next = last; - last = sourceCode.getTokenBefore(last, { includeComments: true }); - } while (isComment(last) && last.loc.end.line === next.loc.start.line); - - return last; - } - - /** - * Checks if a node should be padded, according to the rule config. - * @param {ASTNode} node The AST node to check. - * @throws {Error} (Unreachable) - * @returns {boolean} True if the node should be padded, false otherwise. - */ - function requirePaddingFor(node) { - switch (node.type) { - case "BlockStatement": - case "StaticBlock": - return options.blocks; - case "SwitchStatement": - return options.switches; - case "ClassBody": - return options.classes; - - /* c8 ignore next */ - default: - throw new Error("unreachable"); - } - } - - /** - * Checks the given BlockStatement node to be padded if the block is not empty. - * @param {ASTNode} node The AST node of a BlockStatement. - * @returns {void} undefined. - */ - function checkPadding(node) { - const openBrace = getOpenBrace(node), - firstBlockToken = getFirstBlockToken(openBrace), - tokenBeforeFirst = sourceCode.getTokenBefore(firstBlockToken, { includeComments: true }), - closeBrace = sourceCode.getLastToken(node), - lastBlockToken = getLastBlockToken(closeBrace), - tokenAfterLast = sourceCode.getTokenAfter(lastBlockToken, { includeComments: true }), - blockHasTopPadding = isPaddingBetweenTokens(tokenBeforeFirst, firstBlockToken), - blockHasBottomPadding = isPaddingBetweenTokens(lastBlockToken, tokenAfterLast); - - if (options.allowSingleLineBlocks && astUtils.isTokenOnSameLine(tokenBeforeFirst, tokenAfterLast)) { - return; - } - - if (requirePaddingFor(node)) { - - if (!blockHasTopPadding) { - context.report({ - node, - loc: { - start: tokenBeforeFirst.loc.start, - end: firstBlockToken.loc.start - }, - fix(fixer) { - return fixer.insertTextAfter(tokenBeforeFirst, "\n"); - }, - messageId: "alwaysPadBlock" - }); - } - if (!blockHasBottomPadding) { - context.report({ - node, - loc: { - end: tokenAfterLast.loc.start, - start: lastBlockToken.loc.end - }, - fix(fixer) { - return fixer.insertTextBefore(tokenAfterLast, "\n"); - }, - messageId: "alwaysPadBlock" - }); - } - } else { - if (blockHasTopPadding) { - - context.report({ - node, - loc: { - start: tokenBeforeFirst.loc.start, - end: firstBlockToken.loc.start - }, - fix(fixer) { - return fixer.replaceTextRange([tokenBeforeFirst.range[1], firstBlockToken.range[0] - firstBlockToken.loc.start.column], "\n"); - }, - messageId: "neverPadBlock" - }); - } - - if (blockHasBottomPadding) { - - context.report({ - node, - loc: { - end: tokenAfterLast.loc.start, - start: lastBlockToken.loc.end - }, - messageId: "neverPadBlock", - fix(fixer) { - return fixer.replaceTextRange([lastBlockToken.range[1], tokenAfterLast.range[0] - tokenAfterLast.loc.start.column], "\n"); - } - }); - } - } - } - - const rule = {}; - - if (Object.hasOwn(options, "switches")) { - rule.SwitchStatement = function(node) { - if (node.cases.length === 0) { - return; - } - checkPadding(node); - }; - } - - if (Object.hasOwn(options, "blocks")) { - rule.BlockStatement = function(node) { - if (node.body.length === 0) { - return; - } - checkPadding(node); - }; - rule.StaticBlock = rule.BlockStatement; - } - - if (Object.hasOwn(options, "classes")) { - rule.ClassBody = function(node) { - if (node.body.length === 0) { - return; - } - checkPadding(node); - }; - } - - return rule; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/padding-line-between-statements.js b/graphql/node_modules/eslint/lib/rules/padding-line-between-statements.js deleted file mode 100644 index 084651b6..00000000 --- a/graphql/node_modules/eslint/lib/rules/padding-line-between-statements.js +++ /dev/null @@ -1,590 +0,0 @@ -/** - * @fileoverview Rule to require or disallow newlines between statements - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const LT = `[${Array.from(astUtils.LINEBREAKS).join("")}]`; -const PADDING_LINE_SEQUENCE = new RegExp( - String.raw`^(\s*?${LT})\s*${LT}(\s*;?)$`, - "u" -); -const CJS_EXPORT = /^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u; -const CJS_IMPORT = /^require\(/u; - -/** - * Creates tester which check if a node starts with specific keyword. - * @param {string} keyword The keyword to test. - * @returns {Object} the created tester. - * @private - */ -function newKeywordTester(keyword) { - return { - test: (node, sourceCode) => - sourceCode.getFirstToken(node).value === keyword - }; -} - -/** - * Creates tester which check if a node starts with specific keyword and spans a single line. - * @param {string} keyword The keyword to test. - * @returns {Object} the created tester. - * @private - */ -function newSinglelineKeywordTester(keyword) { - return { - test: (node, sourceCode) => - node.loc.start.line === node.loc.end.line && - sourceCode.getFirstToken(node).value === keyword - }; -} - -/** - * Creates tester which check if a node starts with specific keyword and spans multiple lines. - * @param {string} keyword The keyword to test. - * @returns {Object} the created tester. - * @private - */ -function newMultilineKeywordTester(keyword) { - return { - test: (node, sourceCode) => - node.loc.start.line !== node.loc.end.line && - sourceCode.getFirstToken(node).value === keyword - }; -} - -/** - * Creates tester which check if a node is specific type. - * @param {string} type The node type to test. - * @returns {Object} the created tester. - * @private - */ -function newNodeTypeTester(type) { - return { - test: node => - node.type === type - }; -} - -/** - * Checks the given node is an expression statement of IIFE. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is an expression statement of IIFE. - * @private - */ -function isIIFEStatement(node) { - if (node.type === "ExpressionStatement") { - let call = astUtils.skipChainExpression(node.expression); - - if (call.type === "UnaryExpression") { - call = astUtils.skipChainExpression(call.argument); - } - return call.type === "CallExpression" && astUtils.isFunction(call.callee); - } - return false; -} - -/** - * Checks whether the given node is a block-like statement. - * This checks the last token of the node is the closing brace of a block. - * @param {SourceCode} sourceCode The source code to get tokens. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a block-like statement. - * @private - */ -function isBlockLikeStatement(sourceCode, node) { - - // do-while with a block is a block-like statement. - if (node.type === "DoWhileStatement" && node.body.type === "BlockStatement") { - return true; - } - - /* - * IIFE is a block-like statement specially from - * JSCS#disallowPaddingNewLinesAfterBlocks. - */ - if (isIIFEStatement(node)) { - return true; - } - - // Checks the last token is a closing brace of blocks. - const lastToken = sourceCode.getLastToken(node, astUtils.isNotSemicolonToken); - const belongingNode = lastToken && astUtils.isClosingBraceToken(lastToken) - ? sourceCode.getNodeByRangeIndex(lastToken.range[0]) - : null; - - return Boolean(belongingNode) && ( - belongingNode.type === "BlockStatement" || - belongingNode.type === "SwitchStatement" - ); -} - -/** - * Gets the actual last token. - * - * If a semicolon is semicolon-less style's semicolon, this ignores it. - * For example: - * - * foo() - * ;[1, 2, 3].forEach(bar) - * @param {SourceCode} sourceCode The source code to get tokens. - * @param {ASTNode} node The node to get. - * @returns {Token} The actual last token. - * @private - */ -function getActualLastToken(sourceCode, node) { - const semiToken = sourceCode.getLastToken(node); - const prevToken = sourceCode.getTokenBefore(semiToken); - const nextToken = sourceCode.getTokenAfter(semiToken); - const isSemicolonLessStyle = Boolean( - prevToken && - nextToken && - prevToken.range[0] >= node.range[0] && - astUtils.isSemicolonToken(semiToken) && - semiToken.loc.start.line !== prevToken.loc.end.line && - semiToken.loc.end.line === nextToken.loc.start.line - ); - - return isSemicolonLessStyle ? prevToken : semiToken; -} - -/** - * This returns the concatenation of the first 2 captured strings. - * @param {string} _ Unused. Whole matched string. - * @param {string} trailingSpaces The trailing spaces of the first line. - * @param {string} indentSpaces The indentation spaces of the last line. - * @returns {string} The concatenation of trailingSpaces and indentSpaces. - * @private - */ -function replacerToRemovePaddingLines(_, trailingSpaces, indentSpaces) { - return trailingSpaces + indentSpaces; -} - -/** - * Check and report statements for `any` configuration. - * It does nothing. - * @returns {void} - * @private - */ -function verifyForAny() { -} - -/** - * Check and report statements for `never` configuration. - * This autofix removes blank lines between the given 2 statements. - * However, if comments exist between 2 blank lines, it does not remove those - * blank lines automatically. - * @param {RuleContext} context The rule context to report. - * @param {ASTNode} _ Unused. The previous node to check. - * @param {ASTNode} nextNode The next node to check. - * @param {Array} paddingLines The array of token pairs that blank - * lines exist between the pair. - * @returns {void} - * @private - */ -function verifyForNever(context, _, nextNode, paddingLines) { - if (paddingLines.length === 0) { - return; - } - - context.report({ - node: nextNode, - messageId: "unexpectedBlankLine", - fix(fixer) { - if (paddingLines.length >= 2) { - return null; - } - - const prevToken = paddingLines[0][0]; - const nextToken = paddingLines[0][1]; - const start = prevToken.range[1]; - const end = nextToken.range[0]; - const text = context.sourceCode.text - .slice(start, end) - .replace(PADDING_LINE_SEQUENCE, replacerToRemovePaddingLines); - - return fixer.replaceTextRange([start, end], text); - } - }); -} - -/** - * Check and report statements for `always` configuration. - * This autofix inserts a blank line between the given 2 statements. - * If the `prevNode` has trailing comments, it inserts a blank line after the - * trailing comments. - * @param {RuleContext} context The rule context to report. - * @param {ASTNode} prevNode The previous node to check. - * @param {ASTNode} nextNode The next node to check. - * @param {Array} paddingLines The array of token pairs that blank - * lines exist between the pair. - * @returns {void} - * @private - */ -function verifyForAlways(context, prevNode, nextNode, paddingLines) { - if (paddingLines.length > 0) { - return; - } - - context.report({ - node: nextNode, - messageId: "expectedBlankLine", - fix(fixer) { - const sourceCode = context.sourceCode; - let prevToken = getActualLastToken(sourceCode, prevNode); - const nextToken = sourceCode.getFirstTokenBetween( - prevToken, - nextNode, - { - includeComments: true, - - /** - * Skip the trailing comments of the previous node. - * This inserts a blank line after the last trailing comment. - * - * For example: - * - * foo(); // trailing comment. - * // comment. - * bar(); - * - * Get fixed to: - * - * foo(); // trailing comment. - * - * // comment. - * bar(); - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is not a trailing comment. - * @private - */ - filter(token) { - if (astUtils.isTokenOnSameLine(prevToken, token)) { - prevToken = token; - return false; - } - return true; - } - } - ) || nextNode; - const insertText = astUtils.isTokenOnSameLine(prevToken, nextToken) - ? "\n\n" - : "\n"; - - return fixer.insertTextAfter(prevToken, insertText); - } - }); -} - -/** - * Types of blank lines. - * `any`, `never`, and `always` are defined. - * Those have `verify` method to check and report statements. - * @private - */ -const PaddingTypes = { - any: { verify: verifyForAny }, - never: { verify: verifyForNever }, - always: { verify: verifyForAlways } -}; - -/** - * Types of statements. - * Those have `test` method to check it matches to the given statement. - * @private - */ -const StatementTypes = { - "*": { test: () => true }, - "block-like": { - test: (node, sourceCode) => isBlockLikeStatement(sourceCode, node) - }, - "cjs-export": { - test: (node, sourceCode) => - node.type === "ExpressionStatement" && - node.expression.type === "AssignmentExpression" && - CJS_EXPORT.test(sourceCode.getText(node.expression.left)) - }, - "cjs-import": { - test: (node, sourceCode) => - node.type === "VariableDeclaration" && - node.declarations.length > 0 && - Boolean(node.declarations[0].init) && - CJS_IMPORT.test(sourceCode.getText(node.declarations[0].init)) - }, - directive: { - test: astUtils.isDirective - }, - expression: { - test: node => node.type === "ExpressionStatement" && !astUtils.isDirective(node) - }, - iife: { - test: isIIFEStatement - }, - "multiline-block-like": { - test: (node, sourceCode) => - node.loc.start.line !== node.loc.end.line && - isBlockLikeStatement(sourceCode, node) - }, - "multiline-expression": { - test: node => - node.loc.start.line !== node.loc.end.line && - node.type === "ExpressionStatement" && - !astUtils.isDirective(node) - }, - - "multiline-const": newMultilineKeywordTester("const"), - "multiline-let": newMultilineKeywordTester("let"), - "multiline-var": newMultilineKeywordTester("var"), - "singleline-const": newSinglelineKeywordTester("const"), - "singleline-let": newSinglelineKeywordTester("let"), - "singleline-var": newSinglelineKeywordTester("var"), - - block: newNodeTypeTester("BlockStatement"), - empty: newNodeTypeTester("EmptyStatement"), - function: newNodeTypeTester("FunctionDeclaration"), - - break: newKeywordTester("break"), - case: newKeywordTester("case"), - class: newKeywordTester("class"), - const: newKeywordTester("const"), - continue: newKeywordTester("continue"), - debugger: newKeywordTester("debugger"), - default: newKeywordTester("default"), - do: newKeywordTester("do"), - export: newKeywordTester("export"), - for: newKeywordTester("for"), - if: newKeywordTester("if"), - import: newKeywordTester("import"), - let: newKeywordTester("let"), - return: newKeywordTester("return"), - switch: newKeywordTester("switch"), - throw: newKeywordTester("throw"), - try: newKeywordTester("try"), - var: newKeywordTester("var"), - while: newKeywordTester("while"), - with: newKeywordTester("with") -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow padding lines between statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/padding-line-between-statements" - }, - - fixable: "whitespace", - - schema: { - definitions: { - paddingType: { - enum: Object.keys(PaddingTypes) - }, - statementType: { - anyOf: [ - { enum: Object.keys(StatementTypes) }, - { - type: "array", - items: { enum: Object.keys(StatementTypes) }, - minItems: 1, - uniqueItems: true - } - ] - } - }, - type: "array", - items: { - type: "object", - properties: { - blankLine: { $ref: "#/definitions/paddingType" }, - prev: { $ref: "#/definitions/statementType" }, - next: { $ref: "#/definitions/statementType" } - }, - additionalProperties: false, - required: ["blankLine", "prev", "next"] - } - }, - - messages: { - unexpectedBlankLine: "Unexpected blank line before this statement.", - expectedBlankLine: "Expected blank line before this statement." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const configureList = context.options || []; - let scopeInfo = null; - - /** - * Processes to enter to new scope. - * This manages the current previous statement. - * @returns {void} - * @private - */ - function enterScope() { - scopeInfo = { - upper: scopeInfo, - prevNode: null - }; - } - - /** - * Processes to exit from the current scope. - * @returns {void} - * @private - */ - function exitScope() { - scopeInfo = scopeInfo.upper; - } - - /** - * Checks whether the given node matches the given type. - * @param {ASTNode} node The statement node to check. - * @param {string|string[]} type The statement type to check. - * @returns {boolean} `true` if the statement node matched the type. - * @private - */ - function match(node, type) { - let innerStatementNode = node; - - while (innerStatementNode.type === "LabeledStatement") { - innerStatementNode = innerStatementNode.body; - } - if (Array.isArray(type)) { - return type.some(match.bind(null, innerStatementNode)); - } - return StatementTypes[type].test(innerStatementNode, sourceCode); - } - - /** - * Finds the last matched configure from configureList. - * @param {ASTNode} prevNode The previous statement to match. - * @param {ASTNode} nextNode The current statement to match. - * @returns {Object} The tester of the last matched configure. - * @private - */ - function getPaddingType(prevNode, nextNode) { - for (let i = configureList.length - 1; i >= 0; --i) { - const configure = configureList[i]; - const matched = - match(prevNode, configure.prev) && - match(nextNode, configure.next); - - if (matched) { - return PaddingTypes[configure.blankLine]; - } - } - return PaddingTypes.any; - } - - /** - * Gets padding line sequences between the given 2 statements. - * Comments are separators of the padding line sequences. - * @param {ASTNode} prevNode The previous statement to count. - * @param {ASTNode} nextNode The current statement to count. - * @returns {Array} The array of token pairs. - * @private - */ - function getPaddingLineSequences(prevNode, nextNode) { - const pairs = []; - let prevToken = getActualLastToken(sourceCode, prevNode); - - if (nextNode.loc.start.line - prevToken.loc.end.line >= 2) { - do { - const token = sourceCode.getTokenAfter( - prevToken, - { includeComments: true } - ); - - if (token.loc.start.line - prevToken.loc.end.line >= 2) { - pairs.push([prevToken, token]); - } - prevToken = token; - - } while (prevToken.range[0] < nextNode.range[0]); - } - - return pairs; - } - - /** - * Verify padding lines between the given node and the previous node. - * @param {ASTNode} node The node to verify. - * @returns {void} - * @private - */ - function verify(node) { - const parentType = node.parent.type; - const validParent = - astUtils.STATEMENT_LIST_PARENTS.has(parentType) || - parentType === "SwitchStatement"; - - if (!validParent) { - return; - } - - // Save this node as the current previous statement. - const prevNode = scopeInfo.prevNode; - - // Verify. - if (prevNode) { - const type = getPaddingType(prevNode, node); - const paddingLines = getPaddingLineSequences(prevNode, node); - - type.verify(context, prevNode, node, paddingLines); - } - - scopeInfo.prevNode = node; - } - - /** - * Verify padding lines between the given node and the previous node. - * Then process to enter to new scope. - * @param {ASTNode} node The node to verify. - * @returns {void} - * @private - */ - function verifyThenEnterScope(node) { - verify(node); - enterScope(); - } - - return { - Program: enterScope, - BlockStatement: enterScope, - SwitchStatement: enterScope, - StaticBlock: enterScope, - "Program:exit": exitScope, - "BlockStatement:exit": exitScope, - "SwitchStatement:exit": exitScope, - "StaticBlock:exit": exitScope, - - ":statement": verify, - - SwitchCase: verifyThenEnterScope, - "SwitchCase:exit": exitScope - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-arrow-callback.js b/graphql/node_modules/eslint/lib/rules/prefer-arrow-callback.js deleted file mode 100644 index b23696dd..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-arrow-callback.js +++ /dev/null @@ -1,381 +0,0 @@ -/** - * @fileoverview A rule to suggest using arrow functions as callbacks. - * @author Toru Nagashima - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether or not a given variable is a function name. - * @param {eslint-scope.Variable} variable A variable to check. - * @returns {boolean} `true` if the variable is a function name. - */ -function isFunctionName(variable) { - return variable && variable.defs[0].type === "FunctionName"; -} - -/** - * Checks whether or not a given MetaProperty node equals to a given value. - * @param {ASTNode} node A MetaProperty node to check. - * @param {string} metaName The name of `MetaProperty.meta`. - * @param {string} propertyName The name of `MetaProperty.property`. - * @returns {boolean} `true` if the node is the specific value. - */ -function checkMetaProperty(node, metaName, propertyName) { - return node.meta.name === metaName && node.property.name === propertyName; -} - -/** - * Gets the variable object of `arguments` which is defined implicitly. - * @param {eslint-scope.Scope} scope A scope to get. - * @returns {eslint-scope.Variable} The found variable object. - */ -function getVariableOfArguments(scope) { - const variables = scope.variables; - - for (let i = 0; i < variables.length; ++i) { - const variable = variables[i]; - - if (variable.name === "arguments") { - - /* - * If there was a parameter which is named "arguments", the - * implicit "arguments" is not defined. - * So does fast return with null. - */ - return (variable.identifiers.length === 0) ? variable : null; - } - } - - /* c8 ignore next */ - return null; -} - -/** - * Checks whether or not a given node is a callback. - * @param {ASTNode} node A node to check. - * @throws {Error} (Unreachable.) - * @returns {Object} - * {boolean} retv.isCallback - `true` if the node is a callback. - * {boolean} retv.isLexicalThis - `true` if the node is with `.bind(this)`. - */ -function getCallbackInfo(node) { - const retv = { isCallback: false, isLexicalThis: false }; - let currentNode = node; - let parent = node.parent; - let bound = false; - - while (currentNode) { - switch (parent.type) { - - // Checks parents recursively. - - case "LogicalExpression": - case "ChainExpression": - case "ConditionalExpression": - break; - - // Checks whether the parent node is `.bind(this)` call. - case "MemberExpression": - if ( - parent.object === currentNode && - !parent.property.computed && - parent.property.type === "Identifier" && - parent.property.name === "bind" - ) { - const maybeCallee = parent.parent.type === "ChainExpression" - ? parent.parent - : parent; - - if (astUtils.isCallee(maybeCallee)) { - if (!bound) { - bound = true; // Use only the first `.bind()` to make `isLexicalThis` value. - retv.isLexicalThis = ( - maybeCallee.parent.arguments.length === 1 && - maybeCallee.parent.arguments[0].type === "ThisExpression" - ); - } - parent = maybeCallee.parent; - } else { - return retv; - } - } else { - return retv; - } - break; - - // Checks whether the node is a callback. - case "CallExpression": - case "NewExpression": - if (parent.callee !== currentNode) { - retv.isCallback = true; - } - return retv; - - default: - return retv; - } - - currentNode = parent; - parent = parent.parent; - } - - /* c8 ignore next */ - throw new Error("unreachable"); -} - -/** - * Checks whether a simple list of parameters contains any duplicates. This does not handle complex - * parameter lists (e.g. with destructuring), since complex parameter lists are a SyntaxError with duplicate - * parameter names anyway. Instead, it always returns `false` for complex parameter lists. - * @param {ASTNode[]} paramsList The list of parameters for a function - * @returns {boolean} `true` if the list of parameters contains any duplicates - */ -function hasDuplicateParams(paramsList) { - return paramsList.every(param => param.type === "Identifier") && paramsList.length !== new Set(paramsList.map(param => param.name)).size; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require using arrow functions for callbacks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-arrow-callback" - }, - - schema: [ - { - type: "object", - properties: { - allowNamedFunctions: { - type: "boolean", - default: false - }, - allowUnboundThis: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - preferArrowCallback: "Unexpected function expression." - } - }, - - create(context) { - const options = context.options[0] || {}; - - const allowUnboundThis = options.allowUnboundThis !== false; // default to true - const allowNamedFunctions = options.allowNamedFunctions; - const sourceCode = context.sourceCode; - - /* - * {Array<{this: boolean, super: boolean, meta: boolean}>} - * - this - A flag which shows there are one or more ThisExpression. - * - super - A flag which shows there are one or more Super. - * - meta - A flag which shows there are one or more MethProperty. - */ - let stack = []; - - /** - * Pushes new function scope with all `false` flags. - * @returns {void} - */ - function enterScope() { - stack.push({ this: false, super: false, meta: false }); - } - - /** - * Pops a function scope from the stack. - * @returns {{this: boolean, super: boolean, meta: boolean}} The information of the last scope. - */ - function exitScope() { - return stack.pop(); - } - - return { - - // Reset internal state. - Program() { - stack = []; - }, - - // If there are below, it cannot replace with arrow functions merely. - ThisExpression() { - const info = stack.at(-1); - - if (info) { - info.this = true; - } - }, - - Super() { - const info = stack.at(-1); - - if (info) { - info.super = true; - } - }, - - MetaProperty(node) { - const info = stack.at(-1); - - if (info && checkMetaProperty(node, "new", "target")) { - info.meta = true; - } - }, - - // To skip nested scopes. - FunctionDeclaration: enterScope, - "FunctionDeclaration:exit": exitScope, - - // Main. - FunctionExpression: enterScope, - "FunctionExpression:exit"(node) { - const scopeInfo = exitScope(); - - // Skip named function expressions - if (allowNamedFunctions && node.id && node.id.name) { - return; - } - - // Skip generators. - if (node.generator) { - return; - } - - // Skip recursive functions. - const nameVar = sourceCode.getDeclaredVariables(node)[0]; - - if (isFunctionName(nameVar) && nameVar.references.length > 0) { - return; - } - - // Skip if it's using arguments. - const variable = getVariableOfArguments(sourceCode.getScope(node)); - - if (variable && variable.references.length > 0) { - return; - } - - // Reports if it's a callback which can replace with arrows. - const callbackInfo = getCallbackInfo(node); - - if (callbackInfo.isCallback && - (!allowUnboundThis || !scopeInfo.this || callbackInfo.isLexicalThis) && - !scopeInfo.super && - !scopeInfo.meta - ) { - context.report({ - node, - messageId: "preferArrowCallback", - *fix(fixer) { - if ((!callbackInfo.isLexicalThis && scopeInfo.this) || hasDuplicateParams(node.params)) { - - /* - * If the callback function does not have .bind(this) and contains a reference to `this`, there - * is no way to determine what `this` should be, so don't perform any fixes. - * If the callback function has duplicates in its list of parameters (possible in sloppy mode), - * don't replace it with an arrow function, because this is a SyntaxError with arrow functions. - */ - return; - } - - // Remove `.bind(this)` if exists. - if (callbackInfo.isLexicalThis) { - const memberNode = node.parent; - - /* - * If `.bind(this)` exists but the parent is not `.bind(this)`, don't remove it automatically. - * E.g. `(foo || function(){}).bind(this)` - */ - if (memberNode.type !== "MemberExpression") { - return; - } - - const callNode = memberNode.parent; - const firstTokenToRemove = sourceCode.getTokenAfter(memberNode.object, astUtils.isNotClosingParenToken); - const lastTokenToRemove = sourceCode.getLastToken(callNode); - - /* - * If the member expression is parenthesized, don't remove the right paren. - * E.g. `(function(){}.bind)(this)` - * ^^^^^^^^^^^^ - */ - if (astUtils.isParenthesised(sourceCode, memberNode)) { - return; - } - - // If comments exist in the `.bind(this)`, don't remove those. - if (sourceCode.commentsExistBetween(firstTokenToRemove, lastTokenToRemove)) { - return; - } - - yield fixer.removeRange([firstTokenToRemove.range[0], lastTokenToRemove.range[1]]); - } - - // Convert the function expression to an arrow function. - const functionToken = sourceCode.getFirstToken(node, node.async ? 1 : 0); - const leftParenToken = sourceCode.getTokenAfter(functionToken, astUtils.isOpeningParenToken); - const tokenBeforeBody = sourceCode.getTokenBefore(node.body); - - if (sourceCode.commentsExistBetween(functionToken, leftParenToken)) { - - // Remove only extra tokens to keep comments. - yield fixer.remove(functionToken); - if (node.id) { - yield fixer.remove(node.id); - } - } else { - - // Remove extra tokens and spaces. - yield fixer.removeRange([functionToken.range[0], leftParenToken.range[0]]); - } - yield fixer.insertTextAfter(tokenBeforeBody, " =>"); - - // Get the node that will become the new arrow function. - let replacedNode = callbackInfo.isLexicalThis ? node.parent.parent : node; - - if (replacedNode.type === "ChainExpression") { - replacedNode = replacedNode.parent; - } - - /* - * If the replaced node is part of a BinaryExpression, LogicalExpression, or MemberExpression, then - * the arrow function needs to be parenthesized, because `foo || () => {}` is invalid syntax even - * though `foo || function() {}` is valid. - */ - if ( - replacedNode.parent.type !== "CallExpression" && - replacedNode.parent.type !== "ConditionalExpression" && - !astUtils.isParenthesised(sourceCode, replacedNode) && - !astUtils.isParenthesised(sourceCode, node) - ) { - yield fixer.insertTextBefore(replacedNode, "("); - yield fixer.insertTextAfter(replacedNode, ")"); - } - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-const.js b/graphql/node_modules/eslint/lib/rules/prefer-const.js deleted file mode 100644 index b43975e9..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-const.js +++ /dev/null @@ -1,501 +0,0 @@ -/** - * @fileoverview A rule to suggest using of const declaration for variables that are never reassigned after declared. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const FixTracker = require("./utils/fix-tracker"); -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const PATTERN_TYPE = /^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u; -const DECLARATION_HOST_TYPE = /^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u; -const DESTRUCTURING_HOST_TYPE = /^(?:VariableDeclarator|AssignmentExpression)$/u; - -/** - * Checks whether a given node is located at `ForStatement.init` or not. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is located at `ForStatement.init`. - */ -function isInitOfForStatement(node) { - return node.parent.type === "ForStatement" && node.parent.init === node; -} - -/** - * Checks whether a given Identifier node becomes a VariableDeclaration or not. - * @param {ASTNode} identifier An Identifier node to check. - * @returns {boolean} `true` if the node can become a VariableDeclaration. - */ -function canBecomeVariableDeclaration(identifier) { - let node = identifier.parent; - - while (PATTERN_TYPE.test(node.type)) { - node = node.parent; - } - - return ( - node.type === "VariableDeclarator" || - ( - node.type === "AssignmentExpression" && - node.parent.type === "ExpressionStatement" && - DECLARATION_HOST_TYPE.test(node.parent.parent.type) - ) - ); -} - -/** - * Checks if an property or element is from outer scope or function parameters - * in destructing pattern. - * @param {string} name A variable name to be checked. - * @param {eslint-scope.Scope} initScope A scope to start find. - * @returns {boolean} Indicates if the variable is from outer scope or function parameters. - */ -function isOuterVariableInDestructing(name, initScope) { - - if (initScope.through.some(ref => ref.resolved && ref.resolved.name === name)) { - return true; - } - - const variable = astUtils.getVariableByName(initScope, name); - - if (variable !== null) { - return variable.defs.some(def => def.type === "Parameter"); - } - - return false; -} - -/** - * Gets the VariableDeclarator/AssignmentExpression node that a given reference - * belongs to. - * This is used to detect a mix of reassigned and never reassigned in a - * destructuring. - * @param {eslint-scope.Reference} reference A reference to get. - * @returns {ASTNode|null} A VariableDeclarator/AssignmentExpression node or - * null. - */ -function getDestructuringHost(reference) { - if (!reference.isWrite()) { - return null; - } - let node = reference.identifier.parent; - - while (PATTERN_TYPE.test(node.type)) { - node = node.parent; - } - - if (!DESTRUCTURING_HOST_TYPE.test(node.type)) { - return null; - } - return node; -} - -/** - * Determines if a destructuring assignment node contains - * any MemberExpression nodes. This is used to determine if a - * variable that is only written once using destructuring can be - * safely converted into a const declaration. - * @param {ASTNode} node The ObjectPattern or ArrayPattern node to check. - * @returns {boolean} True if the destructuring pattern contains - * a MemberExpression, false if not. - */ -function hasMemberExpressionAssignment(node) { - switch (node.type) { - case "ObjectPattern": - return node.properties.some(prop => { - if (prop) { - - /* - * Spread elements have an argument property while - * others have a value property. Because different - * parsers use different node types for spread elements, - * we just check if there is an argument property. - */ - return hasMemberExpressionAssignment(prop.argument || prop.value); - } - - return false; - }); - - case "ArrayPattern": - return node.elements.some(element => { - if (element) { - return hasMemberExpressionAssignment(element); - } - - return false; - }); - - case "AssignmentPattern": - return hasMemberExpressionAssignment(node.left); - - case "MemberExpression": - return true; - - // no default - } - - return false; -} - -/** - * Gets an identifier node of a given variable. - * - * If the initialization exists or one or more reading references exist before - * the first assignment, the identifier node is the node of the declaration. - * Otherwise, the identifier node is the node of the first assignment. - * - * If the variable should not change to const, this function returns null. - * - If the variable is reassigned. - * - If the variable is never initialized nor assigned. - * - If the variable is initialized in a different scope from the declaration. - * - If the unique assignment of the variable cannot change to a declaration. - * e.g. `if (a) b = 1` / `return (b = 1)` - * - If the variable is declared in the global scope and `eslintUsed` is `true`. - * `/*exported foo` directive comment makes such variables. This rule does not - * warn such variables because this rule cannot distinguish whether the - * exported variables are reassigned or not. - * @param {eslint-scope.Variable} variable A variable to get. - * @param {boolean} ignoreReadBeforeAssign - * The value of `ignoreReadBeforeAssign` option. - * @returns {ASTNode|null} - * An Identifier node if the variable should change to const. - * Otherwise, null. - */ -function getIdentifierIfShouldBeConst(variable, ignoreReadBeforeAssign) { - if (variable.eslintUsed && variable.scope.type === "global") { - return null; - } - - // Finds the unique WriteReference. - let writer = null; - let isReadBeforeInit = false; - const references = variable.references; - - for (let i = 0; i < references.length; ++i) { - const reference = references[i]; - - if (reference.isWrite()) { - const isReassigned = ( - writer !== null && - writer.identifier !== reference.identifier - ); - - if (isReassigned) { - return null; - } - - const destructuringHost = getDestructuringHost(reference); - - if (destructuringHost !== null && destructuringHost.left !== void 0) { - const leftNode = destructuringHost.left; - let hasOuterVariables = false, - hasNonIdentifiers = false; - - if (leftNode.type === "ObjectPattern") { - const properties = leftNode.properties; - - hasOuterVariables = properties - .filter(prop => prop.value) - .map(prop => prop.value.name) - .some(name => isOuterVariableInDestructing(name, variable.scope)); - - hasNonIdentifiers = hasMemberExpressionAssignment(leftNode); - - } else if (leftNode.type === "ArrayPattern") { - const elements = leftNode.elements; - - hasOuterVariables = elements - .map(element => element && element.name) - .some(name => isOuterVariableInDestructing(name, variable.scope)); - - hasNonIdentifiers = hasMemberExpressionAssignment(leftNode); - } - - if (hasOuterVariables || hasNonIdentifiers) { - return null; - } - - } - - writer = reference; - - } else if (reference.isRead() && writer === null) { - if (ignoreReadBeforeAssign) { - return null; - } - isReadBeforeInit = true; - } - } - - /* - * If the assignment is from a different scope, ignore it. - * If the assignment cannot change to a declaration, ignore it. - */ - const shouldBeConst = ( - writer !== null && - writer.from === variable.scope && - canBecomeVariableDeclaration(writer.identifier) - ); - - if (!shouldBeConst) { - return null; - } - - if (isReadBeforeInit) { - return variable.defs[0].name; - } - - return writer.identifier; -} - -/** - * Groups by the VariableDeclarator/AssignmentExpression node that each - * reference of given variables belongs to. - * This is used to detect a mix of reassigned and never reassigned in a - * destructuring. - * @param {eslint-scope.Variable[]} variables Variables to group by destructuring. - * @param {boolean} ignoreReadBeforeAssign - * The value of `ignoreReadBeforeAssign` option. - * @returns {Map} Grouped identifier nodes. - */ -function groupByDestructuring(variables, ignoreReadBeforeAssign) { - const identifierMap = new Map(); - - for (let i = 0; i < variables.length; ++i) { - const variable = variables[i]; - const references = variable.references; - const identifier = getIdentifierIfShouldBeConst(variable, ignoreReadBeforeAssign); - let prevId = null; - - for (let j = 0; j < references.length; ++j) { - const reference = references[j]; - const id = reference.identifier; - - /* - * Avoid counting a reference twice or more for default values of - * destructuring. - */ - if (id === prevId) { - continue; - } - prevId = id; - - // Add the identifier node into the destructuring group. - const group = getDestructuringHost(reference); - - if (group) { - if (identifierMap.has(group)) { - identifierMap.get(group).push(identifier); - } else { - identifierMap.set(group, [identifier]); - } - } - } - } - - return identifierMap; -} - -/** - * Finds the nearest parent of node with a given type. - * @param {ASTNode} node The node to search from. - * @param {string} type The type field of the parent node. - * @param {Function} shouldStop A predicate that returns true if the traversal should stop, and false otherwise. - * @returns {ASTNode} The closest ancestor with the specified type; null if no such ancestor exists. - */ -function findUp(node, type, shouldStop) { - if (!node || shouldStop(node)) { - return null; - } - if (node.type === type) { - return node; - } - return findUp(node.parent, type, shouldStop); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `const` declarations for variables that are never reassigned after declared", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-const" - }, - - fixable: "code", - - schema: [ - { - type: "object", - properties: { - destructuring: { enum: ["any", "all"], default: "any" }, - ignoreReadBeforeAssign: { type: "boolean", default: false } - }, - additionalProperties: false - } - ], - messages: { - useConst: "'{{name}}' is never reassigned. Use 'const' instead." - } - }, - - create(context) { - const options = context.options[0] || {}; - const sourceCode = context.sourceCode; - const shouldMatchAnyDestructuredVariable = options.destructuring !== "all"; - const ignoreReadBeforeAssign = options.ignoreReadBeforeAssign === true; - const variables = []; - let reportCount = 0; - let checkedId = null; - let checkedName = ""; - - - /** - * Reports given identifier nodes if all of the nodes should be declared - * as const. - * - * The argument 'nodes' is an array of Identifier nodes. - * This node is the result of 'getIdentifierIfShouldBeConst()', so it's - * nullable. In simple declaration or assignment cases, the length of - * the array is 1. In destructuring cases, the length of the array can - * be 2 or more. - * @param {(eslint-scope.Reference|null)[]} nodes - * References which are grouped by destructuring to report. - * @returns {void} - */ - function checkGroup(nodes) { - const nodesToReport = nodes.filter(Boolean); - - if (nodes.length && (shouldMatchAnyDestructuredVariable || nodesToReport.length === nodes.length)) { - const varDeclParent = findUp(nodes[0], "VariableDeclaration", parentNode => parentNode.type.endsWith("Statement")); - const isVarDecParentNull = varDeclParent === null; - - if (!isVarDecParentNull && varDeclParent.declarations.length > 0) { - const firstDeclaration = varDeclParent.declarations[0]; - - if (firstDeclaration.init) { - const firstDecParent = firstDeclaration.init.parent; - - /* - * First we check the declaration type and then depending on - * if the type is a "VariableDeclarator" or its an "ObjectPattern" - * we compare the name and id from the first identifier, if the names are different - * we assign the new name, id and reset the count of reportCount and nodeCount in - * order to check each block for the number of reported errors and base our fix - * based on comparing nodes.length and nodesToReport.length. - */ - - if (firstDecParent.type === "VariableDeclarator") { - - if (firstDecParent.id.name !== checkedName) { - checkedName = firstDecParent.id.name; - reportCount = 0; - } - - if (firstDecParent.id.type === "ObjectPattern") { - if (firstDecParent.init.name !== checkedName) { - checkedName = firstDecParent.init.name; - reportCount = 0; - } - } - - if (firstDecParent.id !== checkedId) { - checkedId = firstDecParent.id; - reportCount = 0; - } - } - } - } - - let shouldFix = varDeclParent && - - // Don't do a fix unless all variables in the declarations are initialized (or it's in a for-in or for-of loop) - (varDeclParent.parent.type === "ForInStatement" || varDeclParent.parent.type === "ForOfStatement" || - varDeclParent.declarations.every(declaration => declaration.init)) && - - /* - * If options.destructuring is "all", then this warning will not occur unless - * every assignment in the destructuring should be const. In that case, it's safe - * to apply the fix. - */ - nodesToReport.length === nodes.length; - - if (!isVarDecParentNull && varDeclParent.declarations && varDeclParent.declarations.length !== 1) { - - if (varDeclParent && varDeclParent.declarations && varDeclParent.declarations.length >= 1) { - - /* - * Add nodesToReport.length to a count, then comparing the count to the length - * of the declarations in the current block. - */ - - reportCount += nodesToReport.length; - - let totalDeclarationsCount = 0; - - varDeclParent.declarations.forEach(declaration => { - if (declaration.id.type === "ObjectPattern") { - totalDeclarationsCount += declaration.id.properties.length; - } else if (declaration.id.type === "ArrayPattern") { - totalDeclarationsCount += declaration.id.elements.length; - } else { - totalDeclarationsCount += 1; - } - }); - - shouldFix = shouldFix && (reportCount === totalDeclarationsCount); - } - } - - nodesToReport.forEach(node => { - context.report({ - node, - messageId: "useConst", - data: node, - fix: shouldFix - ? fixer => { - const letKeywordToken = sourceCode.getFirstToken(varDeclParent, t => t.value === varDeclParent.kind); - - /** - * Extend the replacement range to the whole declaration, - * in order to prevent other fixes in the same pass - * https://github.com/eslint/eslint/issues/13899 - */ - return new FixTracker(fixer, sourceCode) - .retainRange(varDeclParent.range) - .replaceTextRange(letKeywordToken.range, "const"); - } - : null - }); - }); - } - } - - return { - "Program:exit"() { - groupByDestructuring(variables, ignoreReadBeforeAssign).forEach(checkGroup); - }, - - VariableDeclaration(node) { - if (node.kind === "let" && !isInitOfForStatement(node)) { - variables.push(...sourceCode.getDeclaredVariables(node)); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-destructuring.js b/graphql/node_modules/eslint/lib/rules/prefer-destructuring.js deleted file mode 100644 index c6075c55..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-destructuring.js +++ /dev/null @@ -1,301 +0,0 @@ -/** - * @fileoverview Prefer destructuring from arrays and objects - * @author Alex LaFroscia - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const PRECEDENCE_OF_ASSIGNMENT_EXPR = astUtils.getPrecedence({ type: "AssignmentExpression" }); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require destructuring from arrays and/or objects", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-destructuring" - }, - - fixable: "code", - - schema: [ - { - - /* - * old support {array: Boolean, object: Boolean} - * new support {VariableDeclarator: {}, AssignmentExpression: {}} - */ - oneOf: [ - { - type: "object", - properties: { - VariableDeclarator: { - type: "object", - properties: { - array: { - type: "boolean" - }, - object: { - type: "boolean" - } - }, - additionalProperties: false - }, - AssignmentExpression: { - type: "object", - properties: { - array: { - type: "boolean" - }, - object: { - type: "boolean" - } - }, - additionalProperties: false - } - }, - additionalProperties: false - }, - { - type: "object", - properties: { - array: { - type: "boolean" - }, - object: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - }, - { - type: "object", - properties: { - enforceForRenamedProperties: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - - messages: { - preferDestructuring: "Use {{type}} destructuring." - } - }, - create(context) { - - const enabledTypes = context.options[0]; - const enforceForRenamedProperties = context.options[1] && context.options[1].enforceForRenamedProperties; - let normalizedOptions = { - VariableDeclarator: { array: true, object: true }, - AssignmentExpression: { array: true, object: true } - }; - - if (enabledTypes) { - normalizedOptions = typeof enabledTypes.array !== "undefined" || typeof enabledTypes.object !== "undefined" - ? { VariableDeclarator: enabledTypes, AssignmentExpression: enabledTypes } - : enabledTypes; - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Checks if destructuring type should be checked. - * @param {string} nodeType "AssignmentExpression" or "VariableDeclarator" - * @param {string} destructuringType "array" or "object" - * @returns {boolean} `true` if the destructuring type should be checked for the given node - */ - function shouldCheck(nodeType, destructuringType) { - return normalizedOptions && - normalizedOptions[nodeType] && - normalizedOptions[nodeType][destructuringType]; - } - - /** - * Determines if the given node is accessing an array index - * - * This is used to differentiate array index access from object property - * access. - * @param {ASTNode} node the node to evaluate - * @returns {boolean} whether or not the node is an integer - */ - function isArrayIndexAccess(node) { - return Number.isInteger(node.property.value); - } - - /** - * Report that the given node should use destructuring - * @param {ASTNode} reportNode the node to report - * @param {string} type the type of destructuring that should have been done - * @param {Function|null} fix the fix function or null to pass to context.report - * @returns {void} - */ - function report(reportNode, type, fix) { - context.report({ - node: reportNode, - messageId: "preferDestructuring", - data: { type }, - fix - }); - } - - /** - * Determines if a node should be fixed into object destructuring - * - * The fixer only fixes the simplest case of object destructuring, - * like: `let x = a.x`; - * - * Assignment expression is not fixed. - * Array destructuring is not fixed. - * Renamed property is not fixed. - * @param {ASTNode} node the node to evaluate - * @returns {boolean} whether or not the node should be fixed - */ - function shouldFix(node) { - return node.type === "VariableDeclarator" && - node.id.type === "Identifier" && - node.init.type === "MemberExpression" && - !node.init.computed && - node.init.property.type === "Identifier" && - node.id.name === node.init.property.name; - } - - /** - * Fix a node into object destructuring. - * This function only handles the simplest case of object destructuring, - * see {@link shouldFix}. - * @param {SourceCodeFixer} fixer the fixer object - * @param {ASTNode} node the node to be fixed. - * @returns {Object} a fix for the node - */ - function fixIntoObjectDestructuring(fixer, node) { - const rightNode = node.init; - const sourceCode = context.sourceCode; - - // Don't fix if that would remove any comments. Only comments inside `rightNode.object` can be preserved. - if (sourceCode.getCommentsInside(node).length > sourceCode.getCommentsInside(rightNode.object).length) { - return null; - } - - let objectText = sourceCode.getText(rightNode.object); - - if (astUtils.getPrecedence(rightNode.object) < PRECEDENCE_OF_ASSIGNMENT_EXPR) { - objectText = `(${objectText})`; - } - - return fixer.replaceText( - node, - `{${rightNode.property.name}} = ${objectText}` - ); - } - - /** - * Check that the `prefer-destructuring` rules are followed based on the - * given left- and right-hand side of the assignment. - * - * Pulled out into a separate method so that VariableDeclarators and - * AssignmentExpressions can share the same verification logic. - * @param {ASTNode} leftNode the left-hand side of the assignment - * @param {ASTNode} rightNode the right-hand side of the assignment - * @param {ASTNode} reportNode the node to report the error on - * @returns {void} - */ - function performCheck(leftNode, rightNode, reportNode) { - if ( - rightNode.type !== "MemberExpression" || - rightNode.object.type === "Super" || - rightNode.property.type === "PrivateIdentifier" - ) { - return; - } - - if (isArrayIndexAccess(rightNode)) { - if (shouldCheck(reportNode.type, "array")) { - report(reportNode, "array", null); - } - return; - } - - const fix = shouldFix(reportNode) - ? fixer => fixIntoObjectDestructuring(fixer, reportNode) - : null; - - if (shouldCheck(reportNode.type, "object") && enforceForRenamedProperties) { - report(reportNode, "object", fix); - return; - } - - if (shouldCheck(reportNode.type, "object")) { - const property = rightNode.property; - - if ( - (property.type === "Literal" && leftNode.name === property.value) || - (property.type === "Identifier" && leftNode.name === property.name && !rightNode.computed) - ) { - report(reportNode, "object", fix); - } - } - } - - /** - * Check if a given variable declarator is coming from an property access - * that should be using destructuring instead - * @param {ASTNode} node the variable declarator to check - * @returns {void} - */ - function checkVariableDeclarator(node) { - - // Skip if variable is declared without assignment - if (!node.init) { - return; - } - - // We only care about member expressions past this point - if (node.init.type !== "MemberExpression") { - return; - } - - performCheck(node.id, node.init, node); - } - - /** - * Run the `prefer-destructuring` check on an AssignmentExpression - * @param {ASTNode} node the AssignmentExpression node - * @returns {void} - */ - function checkAssignmentExpression(node) { - if (node.operator === "=") { - performCheck(node.left, node.right, node); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - VariableDeclarator: checkVariableDeclarator, - AssignmentExpression: checkAssignmentExpression - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js b/graphql/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js deleted file mode 100644 index 6d807f9c..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-exponentiation-operator.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @fileoverview Rule to disallow Math.pow in favor of the ** operator - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { CALL, ReferenceTracker } = require("@eslint-community/eslint-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const PRECEDENCE_OF_EXPONENTIATION_EXPR = astUtils.getPrecedence({ type: "BinaryExpression", operator: "**" }); - -/** - * Determines whether the given node needs parens if used as the base in an exponentiation binary expression. - * @param {ASTNode} base The node to check. - * @returns {boolean} `true` if the node needs to be parenthesised. - */ -function doesBaseNeedParens(base) { - return ( - - // '**' is right-associative, parens are needed when Math.pow(a ** b, c) is converted to (a ** b) ** c - astUtils.getPrecedence(base) <= PRECEDENCE_OF_EXPONENTIATION_EXPR || - - // An unary operator cannot be used immediately before an exponentiation expression - base.type === "AwaitExpression" || - base.type === "UnaryExpression" - ); -} - -/** - * Determines whether the given node needs parens if used as the exponent in an exponentiation binary expression. - * @param {ASTNode} exponent The node to check. - * @returns {boolean} `true` if the node needs to be parenthesised. - */ -function doesExponentNeedParens(exponent) { - - // '**' is right-associative, there is no need for parens when Math.pow(a, b ** c) is converted to a ** b ** c - return astUtils.getPrecedence(exponent) < PRECEDENCE_OF_EXPONENTIATION_EXPR; -} - -/** - * Determines whether an exponentiation binary expression at the place of the given node would need parens. - * @param {ASTNode} node A node that would be replaced by an exponentiation binary expression. - * @param {SourceCode} sourceCode A SourceCode object. - * @returns {boolean} `true` if the expression needs to be parenthesised. - */ -function doesExponentiationExpressionNeedParens(node, sourceCode) { - const parent = node.parent.type === "ChainExpression" ? node.parent.parent : node.parent; - - const parentPrecedence = astUtils.getPrecedence(parent); - const needsParens = ( - parent.type === "ClassDeclaration" || - ( - parent.type.endsWith("Expression") && - (parentPrecedence === -1 || parentPrecedence >= PRECEDENCE_OF_EXPONENTIATION_EXPR) && - !(parent.type === "BinaryExpression" && parent.operator === "**" && parent.right === node) && - !((parent.type === "CallExpression" || parent.type === "NewExpression") && parent.arguments.includes(node)) && - !(parent.type === "MemberExpression" && parent.computed && parent.property === node) && - !(parent.type === "ArrayExpression") - ) - ); - - return needsParens && !astUtils.isParenthesised(sourceCode, node); -} - -/** - * Optionally parenthesizes given text. - * @param {string} text The text to parenthesize. - * @param {boolean} shouldParenthesize If `true`, the text will be parenthesised. - * @returns {string} parenthesised or unchanged text. - */ -function parenthesizeIfShould(text, shouldParenthesize) { - return shouldParenthesize ? `(${text})` : text; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow the use of `Math.pow` in favor of the `**` operator", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-exponentiation-operator" - }, - - schema: [], - fixable: "code", - - messages: { - useExponentiation: "Use the '**' operator instead of 'Math.pow'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Reports the given node. - * @param {ASTNode} node 'Math.pow()' node to report. - * @returns {void} - */ - function report(node) { - context.report({ - node, - messageId: "useExponentiation", - fix(fixer) { - if ( - node.arguments.length !== 2 || - node.arguments.some(arg => arg.type === "SpreadElement") || - sourceCode.getCommentsInside(node).length > 0 - ) { - return null; - } - - const base = node.arguments[0], - exponent = node.arguments[1], - baseText = sourceCode.getText(base), - exponentText = sourceCode.getText(exponent), - shouldParenthesizeBase = doesBaseNeedParens(base), - shouldParenthesizeExponent = doesExponentNeedParens(exponent), - shouldParenthesizeAll = doesExponentiationExpressionNeedParens(node, sourceCode); - - let prefix = "", - suffix = ""; - - if (!shouldParenthesizeAll) { - if (!shouldParenthesizeBase) { - const firstReplacementToken = sourceCode.getFirstToken(base), - tokenBefore = sourceCode.getTokenBefore(node); - - if ( - tokenBefore && - tokenBefore.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, firstReplacementToken) - ) { - prefix = " "; // a+Math.pow(++b, c) -> a+ ++b**c - } - } - if (!shouldParenthesizeExponent) { - const lastReplacementToken = sourceCode.getLastToken(exponent), - tokenAfter = sourceCode.getTokenAfter(node); - - if ( - tokenAfter && - node.range[1] === tokenAfter.range[0] && - !astUtils.canTokensBeAdjacent(lastReplacementToken, tokenAfter) - ) { - suffix = " "; // Math.pow(a, b)in c -> a**b in c - } - } - } - - const baseReplacement = parenthesizeIfShould(baseText, shouldParenthesizeBase), - exponentReplacement = parenthesizeIfShould(exponentText, shouldParenthesizeExponent), - replacement = parenthesizeIfShould(`${baseReplacement}**${exponentReplacement}`, shouldParenthesizeAll); - - return fixer.replaceText(node, `${prefix}${replacement}${suffix}`); - } - }); - } - - return { - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const trackMap = { - Math: { - pow: { [CALL]: true } - } - }; - - for (const { node: refNode } of tracker.iterateGlobalReferences(trackMap)) { - report(refNode); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-named-capture-group.js b/graphql/node_modules/eslint/lib/rules/prefer-named-capture-group.js deleted file mode 100644 index a82ee1f7..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-named-capture-group.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @fileoverview Rule to enforce requiring named capture groups in regular expression. - * @author Pig Fang - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { - CALL, - CONSTRUCT, - ReferenceTracker, - getStringIfConstant -} = require("@eslint-community/eslint-utils"); -const regexpp = require("@eslint-community/regexpp"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const parser = new regexpp.RegExpParser(); - -/** - * Creates fixer suggestions for the regex, if statically determinable. - * @param {number} groupStart Starting index of the regex group. - * @param {string} pattern The regular expression pattern to be checked. - * @param {string} rawText Source text of the regexNode. - * @param {ASTNode} regexNode AST node which contains the regular expression. - * @returns {Array} Fixer suggestions for the regex, if statically determinable. - */ -function suggestIfPossible(groupStart, pattern, rawText, regexNode) { - switch (regexNode.type) { - case "Literal": - if (typeof regexNode.value === "string" && rawText.includes("\\")) { - return null; - } - break; - case "TemplateLiteral": - if (regexNode.expressions.length || rawText.slice(1, -1) !== pattern) { - return null; - } - break; - default: - return null; - } - - const start = regexNode.range[0] + groupStart + 2; - - return [ - { - fix(fixer) { - const existingTemps = pattern.match(/temp\d+/gu) || []; - const highestTempCount = existingTemps.reduce( - (previous, next) => - Math.max(previous, Number(next.slice("temp".length))), - 0 - ); - - return fixer.insertTextBeforeRange( - [start, start], - `?` - ); - }, - messageId: "addGroupName" - }, - { - fix(fixer) { - return fixer.insertTextBeforeRange( - [start, start], - "?:" - ); - }, - messageId: "addNonCapture" - } - ]; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce using named capture group in regular expression", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-named-capture-group" - }, - - hasSuggestions: true, - - schema: [], - - messages: { - addGroupName: "Add name to capture group.", - addNonCapture: "Convert group to non-capturing.", - required: "Capture group '{{group}}' should be converted to a named or non-capturing group." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - /** - * Function to check regular expression. - * @param {string} pattern The regular expression pattern to be checked. - * @param {ASTNode} node AST node which contains the regular expression or a call/new expression. - * @param {ASTNode} regexNode AST node which contains the regular expression. - * @param {string|null} flags The regular expression flags to be checked. - * @returns {void} - */ - function checkRegex(pattern, node, regexNode, flags) { - let ast; - - try { - ast = parser.parsePattern(pattern, 0, pattern.length, { - unicode: Boolean(flags && flags.includes("u")), - unicodeSets: Boolean(flags && flags.includes("v")) - }); - } catch { - - // ignore regex syntax errors - return; - } - - regexpp.visitRegExpAST(ast, { - onCapturingGroupEnter(group) { - if (!group.name) { - const rawText = sourceCode.getText(regexNode); - const suggest = suggestIfPossible(group.start, pattern, rawText, regexNode); - - context.report({ - node, - messageId: "required", - data: { - group: group.raw - }, - suggest - }); - } - } - }); - } - - return { - Literal(node) { - if (node.regex) { - checkRegex(node.regex.pattern, node, node, node.regex.flags); - } - }, - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const traceMap = { - RegExp: { - [CALL]: true, - [CONSTRUCT]: true - } - }; - - for (const { node: refNode } of tracker.iterateGlobalReferences(traceMap)) { - const regex = getStringIfConstant(refNode.arguments[0]); - const flags = getStringIfConstant(refNode.arguments[1]); - - if (regex) { - checkRegex(regex, refNode, refNode.arguments[0], flags); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-numeric-literals.js b/graphql/node_modules/eslint/lib/rules/prefer-numeric-literals.js deleted file mode 100644 index 118d6dce..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-numeric-literals.js +++ /dev/null @@ -1,148 +0,0 @@ -/** - * @fileoverview Rule to disallow `parseInt()` in favor of binary, octal, and hexadecimal literals - * @author Annie Zhang, Henry Zhu - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const radixMap = new Map([ - [2, { system: "binary", literalPrefix: "0b" }], - [8, { system: "octal", literalPrefix: "0o" }], - [16, { system: "hexadecimal", literalPrefix: "0x" }] -]); - -/** - * Checks to see if a CallExpression's callee node is `parseInt` or - * `Number.parseInt`. - * @param {ASTNode} calleeNode The callee node to evaluate. - * @returns {boolean} True if the callee is `parseInt` or `Number.parseInt`, - * false otherwise. - */ -function isParseInt(calleeNode) { - return ( - astUtils.isSpecificId(calleeNode, "parseInt") || - astUtils.isSpecificMemberAccess(calleeNode, "Number", "parseInt") - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-numeric-literals" - }, - - schema: [], - - messages: { - useLiteral: "Use {{system}} literals instead of {{functionName}}()." - }, - - fixable: "code" - }, - - create(context) { - const sourceCode = context.sourceCode; - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - - "CallExpression[arguments.length=2]"(node) { - const [strNode, radixNode] = node.arguments, - str = astUtils.getStaticStringValue(strNode), - radix = radixNode.value; - - if ( - str !== null && - astUtils.isStringLiteral(strNode) && - radixNode.type === "Literal" && - typeof radix === "number" && - radixMap.has(radix) && - isParseInt(node.callee) - ) { - - const { system, literalPrefix } = radixMap.get(radix); - - context.report({ - node, - messageId: "useLiteral", - data: { - system, - functionName: sourceCode.getText(node.callee) - }, - fix(fixer) { - if (sourceCode.getCommentsInside(node).length) { - return null; - } - - const replacement = `${literalPrefix}${str}`; - - if (+replacement !== parseInt(str, radix)) { - - /* - * If the newly-produced literal would be invalid, (e.g. 0b1234), - * or it would yield an incorrect parseInt result for some other reason, don't make a fix. - * - * If `str` had numeric separators, `+replacement` will evaluate to `NaN` because unary `+` - * per the specification doesn't support numeric separators. Thus, the above condition will be `true` - * (`NaN !== anything` is always `true`) regardless of the `parseInt(str, radix)` value. - * Consequently, no autofixes will be made. This is correct behavior because `parseInt` also - * doesn't support numeric separators, but it does parse part of the string before the first `_`, - * so the autofix would be invalid: - * - * parseInt("1_1", 2) // === 1 - * 0b1_1 // === 3 - */ - return null; - } - - const tokenBefore = sourceCode.getTokenBefore(node), - tokenAfter = sourceCode.getTokenAfter(node); - let prefix = "", - suffix = ""; - - if ( - tokenBefore && - tokenBefore.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, replacement) - ) { - prefix = " "; - } - - if ( - tokenAfter && - node.range[1] === tokenAfter.range[0] && - !astUtils.canTokensBeAdjacent(replacement, tokenAfter) - ) { - suffix = " "; - } - - return fixer.replaceText(node, `${prefix}${replacement}${suffix}`); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-object-has-own.js b/graphql/node_modules/eslint/lib/rules/prefer-object-has-own.js deleted file mode 100644 index 97ea64fa..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-object-has-own.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @fileoverview Prefers Object.hasOwn() instead of Object.prototype.hasOwnProperty.call() - * @author Nitin Kumar - * @author Gautam Arora - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks if the given node is considered to be an access to a property of `Object.prototype`. - * @param {ASTNode} node `MemberExpression` node to evaluate. - * @returns {boolean} `true` if `node.object` is `Object`, `Object.prototype`, or `{}` (empty 'ObjectExpression' node). - */ -function hasLeftHandObject(node) { - - /* - * ({}).hasOwnProperty.call(obj, prop) - `true` - * ({ foo }.hasOwnProperty.call(obj, prop)) - `false`, object literal should be empty - */ - if (node.object.type === "ObjectExpression" && node.object.properties.length === 0) { - return true; - } - - const objectNodeToCheck = node.object.type === "MemberExpression" && astUtils.getStaticPropertyName(node.object) === "prototype" ? node.object.object : node.object; - - if (objectNodeToCheck.type === "Identifier" && objectNodeToCheck.name === "Object") { - return true; - } - - return false; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - docs: { - description: - "Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-object-has-own" - }, - schema: [], - messages: { - useHasOwn: "Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'." - }, - fixable: "code" - }, - create(context) { - - const sourceCode = context.sourceCode; - - return { - CallExpression(node) { - if (!(node.callee.type === "MemberExpression" && node.callee.object.type === "MemberExpression")) { - return; - } - - const calleePropertyName = astUtils.getStaticPropertyName(node.callee); - const objectPropertyName = astUtils.getStaticPropertyName(node.callee.object); - const isObject = hasLeftHandObject(node.callee.object); - - // check `Object` scope - const scope = sourceCode.getScope(node); - const variable = astUtils.getVariableByName(scope, "Object"); - - if ( - calleePropertyName === "call" && - objectPropertyName === "hasOwnProperty" && - isObject && - variable && variable.scope.type === "global" - ) { - context.report({ - node, - messageId: "useHasOwn", - fix(fixer) { - - if (sourceCode.getCommentsInside(node.callee).length > 0) { - return null; - } - - const tokenJustBeforeNode = sourceCode.getTokenBefore(node.callee, { includeComments: true }); - - // for https://github.com/eslint/eslint/pull/15346#issuecomment-991417335 - if ( - tokenJustBeforeNode && - tokenJustBeforeNode.range[1] === node.callee.range[0] && - !astUtils.canTokensBeAdjacent(tokenJustBeforeNode, "Object.hasOwn") - ) { - return fixer.replaceText(node.callee, " Object.hasOwn"); - } - - return fixer.replaceText(node.callee, "Object.hasOwn"); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-object-spread.js b/graphql/node_modules/eslint/lib/rules/prefer-object-spread.js deleted file mode 100644 index 60b0c317..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-object-spread.js +++ /dev/null @@ -1,298 +0,0 @@ -/** - * @fileoverview Prefers object spread property over Object.assign - * @author Sharmila Jesupaul - */ - -"use strict"; - -const { CALL, ReferenceTracker } = require("@eslint-community/eslint-utils"); -const { - isCommaToken, - isOpeningParenToken, - isClosingParenToken, - isParenthesised -} = require("./utils/ast-utils"); - -const ANY_SPACE = /\s/u; - -/** - * Helper that checks if the Object.assign call has array spread - * @param {ASTNode} node The node that the rule warns on - * @returns {boolean} - Returns true if the Object.assign call has array spread - */ -function hasArraySpread(node) { - return node.arguments.some(arg => arg.type === "SpreadElement"); -} - -/** - * Determines whether the given node is an accessor property (getter/setter). - * @param {ASTNode} node Node to check. - * @returns {boolean} `true` if the node is a getter or a setter. - */ -function isAccessorProperty(node) { - return node.type === "Property" && - (node.kind === "get" || node.kind === "set"); -} - -/** - * Determines whether the given object expression node has accessor properties (getters/setters). - * @param {ASTNode} node `ObjectExpression` node to check. - * @returns {boolean} `true` if the node has at least one getter/setter. - */ -function hasAccessors(node) { - return node.properties.some(isAccessorProperty); -} - -/** - * Determines whether the given call expression node has object expression arguments with accessor properties (getters/setters). - * @param {ASTNode} node `CallExpression` node to check. - * @returns {boolean} `true` if the node has at least one argument that is an object expression with at least one getter/setter. - */ -function hasArgumentsWithAccessors(node) { - return node.arguments - .filter(arg => arg.type === "ObjectExpression") - .some(hasAccessors); -} - -/** - * Helper that checks if the node needs parentheses to be valid JS. - * The default is to wrap the node in parentheses to avoid parsing errors. - * @param {ASTNode} node The node that the rule warns on - * @param {Object} sourceCode in context sourcecode object - * @returns {boolean} - Returns true if the node needs parentheses - */ -function needsParens(node, sourceCode) { - const parent = node.parent; - - switch (parent.type) { - case "VariableDeclarator": - case "ArrayExpression": - case "ReturnStatement": - case "CallExpression": - case "Property": - return false; - case "AssignmentExpression": - return parent.left === node && !isParenthesised(sourceCode, node); - default: - return !isParenthesised(sourceCode, node); - } -} - -/** - * Determines if an argument needs parentheses. The default is to not add parens. - * @param {ASTNode} node The node to be checked. - * @param {Object} sourceCode in context sourcecode object - * @returns {boolean} True if the node needs parentheses - */ -function argNeedsParens(node, sourceCode) { - switch (node.type) { - case "AssignmentExpression": - case "ArrowFunctionExpression": - case "ConditionalExpression": - return !isParenthesised(sourceCode, node); - default: - return false; - } -} - -/** - * Get the parenthesis tokens of a given ObjectExpression node. - * This includes the braces of the object literal and enclosing parentheses. - * @param {ASTNode} node The node to get. - * @param {Token} leftArgumentListParen The opening paren token of the argument list. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {Token[]} The parenthesis tokens of the node. This is sorted by the location. - */ -function getParenTokens(node, leftArgumentListParen, sourceCode) { - const parens = [sourceCode.getFirstToken(node), sourceCode.getLastToken(node)]; - let leftNext = sourceCode.getTokenBefore(node); - let rightNext = sourceCode.getTokenAfter(node); - - // Note: don't include the parens of the argument list. - while ( - leftNext && - rightNext && - leftNext.range[0] > leftArgumentListParen.range[0] && - isOpeningParenToken(leftNext) && - isClosingParenToken(rightNext) - ) { - parens.push(leftNext, rightNext); - leftNext = sourceCode.getTokenBefore(leftNext); - rightNext = sourceCode.getTokenAfter(rightNext); - } - - return parens.sort((a, b) => a.range[0] - b.range[0]); -} - -/** - * Get the range of a given token and around whitespaces. - * @param {Token} token The token to get range. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {number} The end of the range of the token and around whitespaces. - */ -function getStartWithSpaces(token, sourceCode) { - const text = sourceCode.text; - let start = token.range[0]; - - // If the previous token is a line comment then skip this step to avoid commenting this token out. - { - const prevToken = sourceCode.getTokenBefore(token, { includeComments: true }); - - if (prevToken && prevToken.type === "Line") { - return start; - } - } - - // Detect spaces before the token. - while (ANY_SPACE.test(text[start - 1] || "")) { - start -= 1; - } - - return start; -} - -/** - * Get the range of a given token and around whitespaces. - * @param {Token} token The token to get range. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {number} The start of the range of the token and around whitespaces. - */ -function getEndWithSpaces(token, sourceCode) { - const text = sourceCode.text; - let end = token.range[1]; - - // Detect spaces after the token. - while (ANY_SPACE.test(text[end] || "")) { - end += 1; - } - - return end; -} - -/** - * Autofixes the Object.assign call to use an object spread instead. - * @param {ASTNode|null} node The node that the rule warns on, i.e. the Object.assign call - * @param {string} sourceCode sourceCode of the Object.assign call - * @returns {Function} autofixer - replaces the Object.assign with a spread object. - */ -function defineFixer(node, sourceCode) { - return function *(fixer) { - const leftParen = sourceCode.getTokenAfter(node.callee, isOpeningParenToken); - const rightParen = sourceCode.getLastToken(node); - - // Remove everything before the opening paren: callee `Object.assign`, type arguments, and whitespace between the callee and the paren. - yield fixer.removeRange([node.range[0], leftParen.range[0]]); - - // Replace the parens of argument list to braces. - if (needsParens(node, sourceCode)) { - yield fixer.replaceText(leftParen, "({"); - yield fixer.replaceText(rightParen, "})"); - } else { - yield fixer.replaceText(leftParen, "{"); - yield fixer.replaceText(rightParen, "}"); - } - - // Process arguments. - for (const argNode of node.arguments) { - const innerParens = getParenTokens(argNode, leftParen, sourceCode); - const left = innerParens.shift(); - const right = innerParens.pop(); - - if (argNode.type === "ObjectExpression") { - const maybeTrailingComma = sourceCode.getLastToken(argNode, 1); - const maybeArgumentComma = sourceCode.getTokenAfter(right); - - /* - * Make bare this object literal. - * And remove spaces inside of the braces for better formatting. - */ - for (const innerParen of innerParens) { - yield fixer.remove(innerParen); - } - const leftRange = [left.range[0], getEndWithSpaces(left, sourceCode)]; - const rightRange = [ - Math.max(getStartWithSpaces(right, sourceCode), leftRange[1]), // Ensure ranges don't overlap - right.range[1] - ]; - - yield fixer.removeRange(leftRange); - yield fixer.removeRange(rightRange); - - // Remove the comma of this argument if it's duplication. - if ( - (argNode.properties.length === 0 || isCommaToken(maybeTrailingComma)) && - isCommaToken(maybeArgumentComma) - ) { - yield fixer.remove(maybeArgumentComma); - } - } else { - - // Make spread. - if (argNeedsParens(argNode, sourceCode)) { - yield fixer.insertTextBefore(left, "...("); - yield fixer.insertTextAfter(right, ")"); - } else { - yield fixer.insertTextBefore(left, "..."); - } - } - } - }; -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: - "Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-object-spread" - }, - - schema: [], - fixable: "code", - - messages: { - useSpreadMessage: "Use an object spread instead of `Object.assign` eg: `{ ...foo }`.", - useLiteralMessage: "Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const trackMap = { - Object: { - assign: { [CALL]: true } - } - }; - - // Iterate all calls of `Object.assign` (only of the global variable `Object`). - for (const { node: refNode } of tracker.iterateGlobalReferences(trackMap)) { - if ( - refNode.arguments.length >= 1 && - refNode.arguments[0].type === "ObjectExpression" && - !hasArraySpread(refNode) && - !( - refNode.arguments.length > 1 && - hasArgumentsWithAccessors(refNode) - ) - ) { - const messageId = refNode.arguments.length === 1 - ? "useLiteralMessage" - : "useSpreadMessage"; - const fix = defineFixer(refNode, sourceCode); - - context.report({ node: refNode, messageId, fix }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js b/graphql/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js deleted file mode 100644 index e990265e..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-promise-reject-errors.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @fileoverview restrict values that can be used as Promise rejection reasons - * @author Teddy Katz - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require using Error objects as Promise rejection reasons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-promise-reject-errors" - }, - - fixable: null, - - schema: [ - { - type: "object", - properties: { - allowEmptyReject: { type: "boolean", default: false } - }, - additionalProperties: false - } - ], - - messages: { - rejectAnError: "Expected the Promise rejection reason to be an Error." - } - }, - - create(context) { - - const ALLOW_EMPTY_REJECT = context.options.length && context.options[0].allowEmptyReject; - const sourceCode = context.sourceCode; - - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - - /** - * Checks the argument of a reject() or Promise.reject() CallExpression, and reports it if it can't be an Error - * @param {ASTNode} callExpression A CallExpression node which is used to reject a Promise - * @returns {void} - */ - function checkRejectCall(callExpression) { - if (!callExpression.arguments.length && ALLOW_EMPTY_REJECT) { - return; - } - if ( - !callExpression.arguments.length || - !astUtils.couldBeError(callExpression.arguments[0]) || - callExpression.arguments[0].type === "Identifier" && callExpression.arguments[0].name === "undefined" - ) { - context.report({ - node: callExpression, - messageId: "rejectAnError" - }); - } - } - - /** - * Determines whether a function call is a Promise.reject() call - * @param {ASTNode} node A CallExpression node - * @returns {boolean} `true` if the call is a Promise.reject() call - */ - function isPromiseRejectCall(node) { - return astUtils.isSpecificMemberAccess(node.callee, "Promise", "reject"); - } - - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - - return { - - // Check `Promise.reject(value)` calls. - CallExpression(node) { - if (isPromiseRejectCall(node)) { - checkRejectCall(node); - } - }, - - /* - * Check for `new Promise((resolve, reject) => {})`, and check for reject() calls. - * This function is run on "NewExpression:exit" instead of "NewExpression" to ensure that - * the nodes in the expression already have the `parent` property. - */ - "NewExpression:exit"(node) { - if ( - node.callee.type === "Identifier" && node.callee.name === "Promise" && - node.arguments.length && astUtils.isFunction(node.arguments[0]) && - node.arguments[0].params.length > 1 && node.arguments[0].params[1].type === "Identifier" - ) { - sourceCode.getDeclaredVariables(node.arguments[0]) - - /* - * Find the first variable that matches the second parameter's name. - * If the first parameter has the same name as the second parameter, then the variable will actually - * be "declared" when the first parameter is evaluated, but then it will be immediately overwritten - * by the second parameter. It's not possible for an expression with the variable to be evaluated before - * the variable is overwritten, because functions with duplicate parameters cannot have destructuring or - * default assignments in their parameter lists. Therefore, it's not necessary to explicitly account for - * this case. - */ - .find(variable => variable.name === node.arguments[0].params[1].name) - - // Get the references to that variable. - .references - - // Only check the references that read the parameter's value. - .filter(ref => ref.isRead()) - - // Only check the references that are used as the callee in a function call, e.g. `reject(foo)`. - .filter(ref => ref.identifier.parent.type === "CallExpression" && ref.identifier === ref.identifier.parent.callee) - - // Check the argument of the function call to determine whether it's an Error. - .forEach(ref => checkRejectCall(ref.identifier.parent)); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-reflect.js b/graphql/node_modules/eslint/lib/rules/prefer-reflect.js deleted file mode 100644 index 7da45237..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-reflect.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * @fileoverview Rule to suggest using "Reflect" api over Function/Object methods - * @author Keith Cirkel - * @deprecated in ESLint v3.9.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `Reflect` methods where applicable", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-reflect" - }, - - deprecated: true, - - replacedBy: [], - - schema: [ - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - enum: [ - "apply", - "call", - "delete", - "defineProperty", - "getOwnPropertyDescriptor", - "getPrototypeOf", - "setPrototypeOf", - "isExtensible", - "getOwnPropertyNames", - "preventExtensions" - ] - }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - preferReflect: "Avoid using {{existing}}, instead use {{substitute}}." - } - }, - - create(context) { - const existingNames = { - apply: "Function.prototype.apply", - call: "Function.prototype.call", - defineProperty: "Object.defineProperty", - getOwnPropertyDescriptor: "Object.getOwnPropertyDescriptor", - getPrototypeOf: "Object.getPrototypeOf", - setPrototypeOf: "Object.setPrototypeOf", - isExtensible: "Object.isExtensible", - getOwnPropertyNames: "Object.getOwnPropertyNames", - preventExtensions: "Object.preventExtensions" - }; - - const reflectSubstitutes = { - apply: "Reflect.apply", - call: "Reflect.apply", - defineProperty: "Reflect.defineProperty", - getOwnPropertyDescriptor: "Reflect.getOwnPropertyDescriptor", - getPrototypeOf: "Reflect.getPrototypeOf", - setPrototypeOf: "Reflect.setPrototypeOf", - isExtensible: "Reflect.isExtensible", - getOwnPropertyNames: "Reflect.getOwnPropertyNames", - preventExtensions: "Reflect.preventExtensions" - }; - - const exceptions = (context.options[0] || {}).exceptions || []; - - /** - * Reports the Reflect violation based on the `existing` and `substitute` - * @param {Object} node The node that violates the rule. - * @param {string} existing The existing method name that has been used. - * @param {string} substitute The Reflect substitute that should be used. - * @returns {void} - */ - function report(node, existing, substitute) { - context.report({ - node, - messageId: "preferReflect", - data: { - existing, - substitute - } - }); - } - - return { - CallExpression(node) { - const methodName = (node.callee.property || {}).name; - const isReflectCall = (node.callee.object || {}).name === "Reflect"; - const hasReflectSubstitute = Object.hasOwn(reflectSubstitutes, methodName); - const userConfiguredException = exceptions.includes(methodName); - - if (hasReflectSubstitute && !isReflectCall && !userConfiguredException) { - report(node, existingNames[methodName], reflectSubstitutes[methodName]); - } - }, - UnaryExpression(node) { - const isDeleteOperator = node.operator === "delete"; - const targetsIdentifier = node.argument.type === "Identifier"; - const userConfiguredException = exceptions.includes("delete"); - - if (isDeleteOperator && !targetsIdentifier && !userConfiguredException) { - report(node, "the delete keyword", "Reflect.deleteProperty"); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/prefer-regex-literals.js b/graphql/node_modules/eslint/lib/rules/prefer-regex-literals.js deleted file mode 100644 index dd18f7ec..00000000 --- a/graphql/node_modules/eslint/lib/rules/prefer-regex-literals.js +++ /dev/null @@ -1,507 +0,0 @@ -/** - * @fileoverview Rule to disallow use of the `RegExp` constructor in favor of regular expression literals - * @author Milos Djermanovic - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const { CALL, CONSTRUCT, ReferenceTracker, findVariable } = require("@eslint-community/eslint-utils"); -const { RegExpValidator, visitRegExpAST, RegExpParser } = require("@eslint-community/regexpp"); -const { canTokensBeAdjacent } = require("./utils/ast-utils"); -const { REGEXPP_LATEST_ECMA_VERSION } = require("./utils/regular-expressions"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines whether the given node is a string literal. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is a string literal. - */ -function isStringLiteral(node) { - return node.type === "Literal" && typeof node.value === "string"; -} - -/** - * Determines whether the given node is a regex literal. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is a regex literal. - */ -function isRegexLiteral(node) { - return node.type === "Literal" && Object.hasOwn(node, "regex"); -} - -const validPrecedingTokens = new Set([ - "(", - ";", - "[", - ",", - "=", - "+", - "*", - "-", - "?", - "~", - "%", - "**", - "!", - "typeof", - "instanceof", - "&&", - "||", - "??", - "return", - "...", - "delete", - "void", - "in", - "<", - ">", - "<=", - ">=", - "==", - "===", - "!=", - "!==", - "<<", - ">>", - ">>>", - "&", - "|", - "^", - ":", - "{", - "=>", - "*=", - "<<=", - ">>=", - ">>>=", - "^=", - "|=", - "&=", - "??=", - "||=", - "&&=", - "**=", - "+=", - "-=", - "/=", - "%=", - "/", - "do", - "break", - "continue", - "debugger", - "case", - "throw" -]); - - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow use of the `RegExp` constructor in favor of regular expression literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/prefer-regex-literals" - }, - - hasSuggestions: true, - - schema: [ - { - type: "object", - properties: { - disallowRedundantWrapping: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedRegExp: "Use a regular expression literal instead of the 'RegExp' constructor.", - replaceWithLiteral: "Replace with an equivalent regular expression literal.", - replaceWithLiteralAndFlags: "Replace with an equivalent regular expression literal with flags '{{ flags }}'.", - replaceWithIntendedLiteralAndFlags: "Replace with a regular expression literal with flags '{{ flags }}'.", - unexpectedRedundantRegExp: "Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.", - unexpectedRedundantRegExpWithFlags: "Use regular expression literal with flags instead of the 'RegExp' constructor." - } - }, - - create(context) { - const [{ disallowRedundantWrapping = false } = {}] = context.options; - const sourceCode = context.sourceCode; - - /** - * Determines whether the given identifier node is a reference to a global variable. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} True if the identifier is a reference to a global variable. - */ - function isGlobalReference(node) { - const scope = sourceCode.getScope(node); - const variable = findVariable(scope, node); - - return variable !== null && variable.scope.type === "global" && variable.defs.length === 0; - } - - /** - * Determines whether the given node is a String.raw`` tagged template expression - * with a static template literal. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is String.raw`` with a static template. - */ - function isStringRawTaggedStaticTemplateLiteral(node) { - return node.type === "TaggedTemplateExpression" && - astUtils.isSpecificMemberAccess(node.tag, "String", "raw") && - isGlobalReference(astUtils.skipChainExpression(node.tag).object) && - astUtils.isStaticTemplateLiteral(node.quasi); - } - - /** - * Gets the value of a string - * @param {ASTNode} node The node to get the string of. - * @returns {string|null} The value of the node. - */ - function getStringValue(node) { - if (isStringLiteral(node)) { - return node.value; - } - - if (astUtils.isStaticTemplateLiteral(node)) { - return node.quasis[0].value.cooked; - } - - if (isStringRawTaggedStaticTemplateLiteral(node)) { - return node.quasi.quasis[0].value.raw; - } - - return null; - } - - /** - * Determines whether the given node is considered to be a static string by the logic of this rule. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is a static string. - */ - function isStaticString(node) { - return isStringLiteral(node) || - astUtils.isStaticTemplateLiteral(node) || - isStringRawTaggedStaticTemplateLiteral(node); - } - - /** - * Determines whether the relevant arguments of the given are all static string literals. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if all arguments are static strings. - */ - function hasOnlyStaticStringArguments(node) { - const args = node.arguments; - - if ((args.length === 1 || args.length === 2) && args.every(isStaticString)) { - return true; - } - - return false; - } - - /** - * Determines whether the arguments of the given node indicate that a regex literal is unnecessarily wrapped. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node already contains a regex literal argument. - */ - function isUnnecessarilyWrappedRegexLiteral(node) { - const args = node.arguments; - - if (args.length === 1 && isRegexLiteral(args[0])) { - return true; - } - - if (args.length === 2 && isRegexLiteral(args[0]) && isStaticString(args[1])) { - return true; - } - - return false; - } - - /** - * Returns a ecmaVersion compatible for regexpp. - * @param {number} ecmaVersion The ecmaVersion to convert. - * @returns {import("@eslint-community/regexpp/ecma-versions").EcmaVersion} The resulting ecmaVersion compatible for regexpp. - */ - function getRegexppEcmaVersion(ecmaVersion) { - if (ecmaVersion <= 5) { - return 5; - } - return Math.min(ecmaVersion, REGEXPP_LATEST_ECMA_VERSION); - } - - const regexppEcmaVersion = getRegexppEcmaVersion(context.languageOptions.ecmaVersion); - - /** - * Makes a character escaped or else returns null. - * @param {string} character The character to escape. - * @returns {string} The resulting escaped character. - */ - function resolveEscapes(character) { - switch (character) { - case "\n": - case "\\\n": - return "\\n"; - - case "\r": - case "\\\r": - return "\\r"; - - case "\t": - case "\\\t": - return "\\t"; - - case "\v": - case "\\\v": - return "\\v"; - - case "\f": - case "\\\f": - return "\\f"; - - case "/": - return "\\/"; - - default: - return null; - } - } - - /** - * Checks whether the given regex and flags are valid for the ecma version or not. - * @param {string} pattern The regex pattern to check. - * @param {string | undefined} flags The regex flags to check. - * @returns {boolean} True if the given regex pattern and flags are valid for the ecma version. - */ - function isValidRegexForEcmaVersion(pattern, flags) { - const validator = new RegExpValidator({ ecmaVersion: regexppEcmaVersion }); - - try { - validator.validatePattern(pattern, 0, pattern.length, { - unicode: flags ? flags.includes("u") : false, - unicodeSets: flags ? flags.includes("v") : false - }); - if (flags) { - validator.validateFlags(flags); - } - return true; - } catch { - return false; - } - } - - /** - * Checks whether two given regex flags contain the same flags or not. - * @param {string} flagsA The regex flags. - * @param {string} flagsB The regex flags. - * @returns {boolean} True if two regex flags contain same flags. - */ - function areFlagsEqual(flagsA, flagsB) { - return [...flagsA].sort().join("") === [...flagsB].sort().join(""); - } - - - /** - * Merges two regex flags. - * @param {string} flagsA The regex flags. - * @param {string} flagsB The regex flags. - * @returns {string} The merged regex flags. - */ - function mergeRegexFlags(flagsA, flagsB) { - const flagsSet = new Set([ - ...flagsA, - ...flagsB - ]); - - return [...flagsSet].join(""); - } - - /** - * Checks whether a give node can be fixed to the given regex pattern and flags. - * @param {ASTNode} node The node to check. - * @param {string} pattern The regex pattern to check. - * @param {string} flags The regex flags - * @returns {boolean} True if a node can be fixed to the given regex pattern and flags. - */ - function canFixTo(node, pattern, flags) { - const tokenBefore = sourceCode.getTokenBefore(node); - - return sourceCode.getCommentsInside(node).length === 0 && - (!tokenBefore || validPrecedingTokens.has(tokenBefore.value)) && - isValidRegexForEcmaVersion(pattern, flags); - } - - /** - * Returns a safe output code considering the before and after tokens. - * @param {ASTNode} node The regex node. - * @param {string} newRegExpValue The new regex expression value. - * @returns {string} The output code. - */ - function getSafeOutput(node, newRegExpValue) { - const tokenBefore = sourceCode.getTokenBefore(node); - const tokenAfter = sourceCode.getTokenAfter(node); - - return (tokenBefore && !canTokensBeAdjacent(tokenBefore, newRegExpValue) && tokenBefore.range[1] === node.range[0] ? " " : "") + - newRegExpValue + - (tokenAfter && !canTokensBeAdjacent(newRegExpValue, tokenAfter) && node.range[1] === tokenAfter.range[0] ? " " : ""); - - } - - return { - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const traceMap = { - RegExp: { - [CALL]: true, - [CONSTRUCT]: true - } - }; - - for (const { node: refNode } of tracker.iterateGlobalReferences(traceMap)) { - if (disallowRedundantWrapping && isUnnecessarilyWrappedRegexLiteral(refNode)) { - const regexNode = refNode.arguments[0]; - - if (refNode.arguments.length === 2) { - const suggests = []; - - const argFlags = getStringValue(refNode.arguments[1]) || ""; - - if (canFixTo(refNode, regexNode.regex.pattern, argFlags)) { - suggests.push({ - messageId: "replaceWithLiteralAndFlags", - pattern: regexNode.regex.pattern, - flags: argFlags - }); - } - - const literalFlags = regexNode.regex.flags || ""; - const mergedFlags = mergeRegexFlags(literalFlags, argFlags); - - if ( - !areFlagsEqual(mergedFlags, argFlags) && - canFixTo(refNode, regexNode.regex.pattern, mergedFlags) - ) { - suggests.push({ - messageId: "replaceWithIntendedLiteralAndFlags", - pattern: regexNode.regex.pattern, - flags: mergedFlags - }); - } - - context.report({ - node: refNode, - messageId: "unexpectedRedundantRegExpWithFlags", - suggest: suggests.map(({ flags, pattern, messageId }) => ({ - messageId, - data: { - flags - }, - fix(fixer) { - return fixer.replaceText(refNode, getSafeOutput(refNode, `/${pattern}/${flags}`)); - } - })) - }); - } else { - const outputs = []; - - if (canFixTo(refNode, regexNode.regex.pattern, regexNode.regex.flags)) { - outputs.push(sourceCode.getText(regexNode)); - } - - - context.report({ - node: refNode, - messageId: "unexpectedRedundantRegExp", - suggest: outputs.map(output => ({ - messageId: "replaceWithLiteral", - fix(fixer) { - return fixer.replaceText( - refNode, - getSafeOutput(refNode, output) - ); - } - })) - }); - } - } else if (hasOnlyStaticStringArguments(refNode)) { - let regexContent = getStringValue(refNode.arguments[0]); - let noFix = false; - let flags; - - if (refNode.arguments[1]) { - flags = getStringValue(refNode.arguments[1]); - } - - if (!canFixTo(refNode, regexContent, flags)) { - noFix = true; - } - - if (!/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.> accumulator + sourceText.slice(token.range[1], allTokens[index + 1].range[0]), ""); - } - - /** - * Returns a template literal form of the given node. - * @param {ASTNode} currentNode A node that should be converted to a template literal - * @param {string} textBeforeNode Text that should appear before the node - * @param {string} textAfterNode Text that should appear after the node - * @returns {string} A string form of this node, represented as a template literal - */ - function getTemplateLiteral(currentNode, textBeforeNode, textAfterNode) { - if (currentNode.type === "Literal" && typeof currentNode.value === "string") { - - /* - * If the current node is a string literal, escape any instances of ${ or ` to prevent them from being interpreted - * as a template placeholder. However, if the code already contains a backslash before the ${ or ` - * for some reason, don't add another backslash, because that would change the meaning of the code (it would cause - * an actual backslash character to appear before the dollar sign). - */ - return `\`${currentNode.raw.slice(1, -1).replace(/\\*(\$\{|`)/gu, matched => { - if (matched.lastIndexOf("\\") % 2) { - return `\\${matched}`; - } - return matched; - - // Unescape any quotes that appear in the original Literal that no longer need to be escaped. - }).replace(new RegExp(`\\\\${currentNode.raw[0]}`, "gu"), currentNode.raw[0])}\``; - } - - if (currentNode.type === "TemplateLiteral") { - return sourceCode.getText(currentNode); - } - - if (isConcatenation(currentNode) && hasStringLiteral(currentNode)) { - const plusSign = sourceCode.getFirstTokenBetween(currentNode.left, currentNode.right, token => token.value === "+"); - const textBeforePlus = getTextBetween(currentNode.left, plusSign); - const textAfterPlus = getTextBetween(plusSign, currentNode.right); - const leftEndsWithCurly = endsWithTemplateCurly(currentNode.left); - const rightStartsWithCurly = startsWithTemplateCurly(currentNode.right); - - if (leftEndsWithCurly) { - - // If the left side of the expression ends with a template curly, add the extra text to the end of the curly bracket. - // `foo${bar}` /* comment */ + 'baz' --> `foo${bar /* comment */ }${baz}` - return getTemplateLiteral(currentNode.left, textBeforeNode, textBeforePlus + textAfterPlus).slice(0, -1) + - getTemplateLiteral(currentNode.right, null, textAfterNode).slice(1); - } - if (rightStartsWithCurly) { - - // Otherwise, if the right side of the expression starts with a template curly, add the text there. - // 'foo' /* comment */ + `${bar}baz` --> `foo${ /* comment */ bar}baz` - return getTemplateLiteral(currentNode.left, textBeforeNode, null).slice(0, -1) + - getTemplateLiteral(currentNode.right, textBeforePlus + textAfterPlus, textAfterNode).slice(1); - } - - /* - * Otherwise, these nodes should not be combined into a template curly, since there is nowhere to put - * the text between them. - */ - return `${getTemplateLiteral(currentNode.left, textBeforeNode, null)}${textBeforePlus}+${textAfterPlus}${getTemplateLiteral(currentNode.right, textAfterNode, null)}`; - } - - return `\`\${${textBeforeNode || ""}${sourceCode.getText(currentNode)}${textAfterNode || ""}}\``; - } - - /** - * Returns a fixer object that converts a non-string binary expression to a template literal - * @param {SourceCodeFixer} fixer The fixer object - * @param {ASTNode} node A node that should be converted to a template literal - * @returns {Object} A fix for this binary expression - */ - function fixNonStringBinaryExpression(fixer, node) { - const topBinaryExpr = getTopConcatBinaryExpression(node.parent); - - if (hasOctalOrNonOctalDecimalEscapeSequence(topBinaryExpr)) { - return null; - } - - return fixer.replaceText(topBinaryExpr, getTemplateLiteral(topBinaryExpr, null, null)); - } - - /** - * Reports if a given node is string concatenation with non string literals. - * @param {ASTNode} node A node to check. - * @returns {void} - */ - function checkForStringConcat(node) { - if (!astUtils.isStringLiteral(node) || !isConcatenation(node.parent)) { - return; - } - - const topBinaryExpr = getTopConcatBinaryExpression(node.parent); - - // Checks whether or not this node had been checked already. - if (done[topBinaryExpr.range[0]]) { - return; - } - done[topBinaryExpr.range[0]] = true; - - if (hasNonStringLiteral(topBinaryExpr)) { - context.report({ - node: topBinaryExpr, - messageId: "unexpectedStringConcatenation", - fix: fixer => fixNonStringBinaryExpression(fixer, node) - }); - } - } - - return { - Program() { - done = Object.create(null); - }, - - Literal: checkForStringConcat, - TemplateLiteral: checkForStringConcat - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/quote-props.js b/graphql/node_modules/eslint/lib/rules/quote-props.js deleted file mode 100644 index fe26eed7..00000000 --- a/graphql/node_modules/eslint/lib/rules/quote-props.js +++ /dev/null @@ -1,310 +0,0 @@ -/** - * @fileoverview Rule to flag non-quoted property names in object literals. - * @author Mathias Bynens - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const espree = require("espree"); -const astUtils = require("./utils/ast-utils"); -const keywords = require("./utils/keywords"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Require quotes around object literal property names", - recommended: false, - url: "https://eslint.org/docs/latest/rules/quote-props" - }, - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["always", "as-needed", "consistent", "consistent-as-needed"] - } - ], - minItems: 0, - maxItems: 1 - }, - { - type: "array", - items: [ - { - enum: ["always", "as-needed", "consistent", "consistent-as-needed"] - }, - { - type: "object", - properties: { - keywords: { - type: "boolean" - }, - unnecessary: { - type: "boolean" - }, - numbers: { - type: "boolean" - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - fixable: "code", - messages: { - requireQuotesDueToReservedWord: "Properties should be quoted as '{{property}}' is a reserved word.", - inconsistentlyQuotedProperty: "Inconsistently quoted property '{{key}}' found.", - unnecessarilyQuotedProperty: "Unnecessarily quoted property '{{property}}' found.", - unquotedReservedProperty: "Unquoted reserved word '{{property}}' used as key.", - unquotedNumericProperty: "Unquoted number literal '{{property}}' used as key.", - unquotedPropertyFound: "Unquoted property '{{property}}' found.", - redundantQuoting: "Properties shouldn't be quoted as all quotes are redundant." - } - }, - - create(context) { - - const MODE = context.options[0], - KEYWORDS = context.options[1] && context.options[1].keywords, - CHECK_UNNECESSARY = !context.options[1] || context.options[1].unnecessary !== false, - NUMBERS = context.options[1] && context.options[1].numbers, - - sourceCode = context.sourceCode; - - - /** - * Checks whether a certain string constitutes an ES3 token - * @param {string} tokenStr The string to be checked. - * @returns {boolean} `true` if it is an ES3 token. - */ - function isKeyword(tokenStr) { - return keywords.includes(tokenStr); - } - - /** - * Checks if an espree-tokenized key has redundant quotes (i.e. whether quotes are unnecessary) - * @param {string} rawKey The raw key value from the source - * @param {espreeTokens} tokens The espree-tokenized node key - * @param {boolean} [skipNumberLiterals=false] Indicates whether number literals should be checked - * @returns {boolean} Whether or not a key has redundant quotes. - * @private - */ - function areQuotesRedundant(rawKey, tokens, skipNumberLiterals) { - return tokens.length === 1 && tokens[0].start === 0 && tokens[0].end === rawKey.length && - (["Identifier", "Keyword", "Null", "Boolean"].includes(tokens[0].type) || - (tokens[0].type === "Numeric" && !skipNumberLiterals && String(+tokens[0].value) === tokens[0].value)); - } - - /** - * Returns a string representation of a property node with quotes removed - * @param {ASTNode} key Key AST Node, which may or may not be quoted - * @returns {string} A replacement string for this property - */ - function getUnquotedKey(key) { - return key.type === "Identifier" ? key.name : key.value; - } - - /** - * Returns a string representation of a property node with quotes added - * @param {ASTNode} key Key AST Node, which may or may not be quoted - * @returns {string} A replacement string for this property - */ - function getQuotedKey(key) { - if (key.type === "Literal" && typeof key.value === "string") { - - // If the key is already a string literal, don't replace the quotes with double quotes. - return sourceCode.getText(key); - } - - // Otherwise, the key is either an identifier or a number literal. - return `"${key.type === "Identifier" ? key.name : key.value}"`; - } - - /** - * Ensures that a property's key is quoted only when necessary - * @param {ASTNode} node Property AST node - * @returns {void} - */ - function checkUnnecessaryQuotes(node) { - const key = node.key; - - if (node.method || node.computed || node.shorthand) { - return; - } - - if (key.type === "Literal" && typeof key.value === "string") { - let tokens; - - try { - tokens = espree.tokenize(key.value); - } catch { - return; - } - - if (tokens.length !== 1) { - return; - } - - const isKeywordToken = isKeyword(tokens[0].value); - - if (isKeywordToken && KEYWORDS) { - return; - } - - if (CHECK_UNNECESSARY && areQuotesRedundant(key.value, tokens, NUMBERS)) { - context.report({ - node, - messageId: "unnecessarilyQuotedProperty", - data: { property: key.value }, - fix: fixer => fixer.replaceText(key, getUnquotedKey(key)) - }); - } - } else if (KEYWORDS && key.type === "Identifier" && isKeyword(key.name)) { - context.report({ - node, - messageId: "unquotedReservedProperty", - data: { property: key.name }, - fix: fixer => fixer.replaceText(key, getQuotedKey(key)) - }); - } else if (NUMBERS && key.type === "Literal" && astUtils.isNumericLiteral(key)) { - context.report({ - node, - messageId: "unquotedNumericProperty", - data: { property: key.value }, - fix: fixer => fixer.replaceText(key, getQuotedKey(key)) - }); - } - } - - /** - * Ensures that a property's key is quoted - * @param {ASTNode} node Property AST node - * @returns {void} - */ - function checkOmittedQuotes(node) { - const key = node.key; - - if (!node.method && !node.computed && !node.shorthand && !(key.type === "Literal" && typeof key.value === "string")) { - context.report({ - node, - messageId: "unquotedPropertyFound", - data: { property: key.name || key.value }, - fix: fixer => fixer.replaceText(key, getQuotedKey(key)) - }); - } - } - - /** - * Ensures that an object's keys are consistently quoted, optionally checks for redundancy of quotes - * @param {ASTNode} node Property AST node - * @param {boolean} checkQuotesRedundancy Whether to check quotes' redundancy - * @returns {void} - */ - function checkConsistency(node, checkQuotesRedundancy) { - const quotedProps = [], - unquotedProps = []; - let keywordKeyName = null, - necessaryQuotes = false; - - node.properties.forEach(property => { - const key = property.key; - - if (!key || property.method || property.computed || property.shorthand) { - return; - } - - if (key.type === "Literal" && typeof key.value === "string") { - - quotedProps.push(property); - - if (checkQuotesRedundancy) { - let tokens; - - try { - tokens = espree.tokenize(key.value); - } catch { - necessaryQuotes = true; - return; - } - - necessaryQuotes = necessaryQuotes || !areQuotesRedundant(key.value, tokens) || KEYWORDS && isKeyword(tokens[0].value); - } - } else if (KEYWORDS && checkQuotesRedundancy && key.type === "Identifier" && isKeyword(key.name)) { - unquotedProps.push(property); - necessaryQuotes = true; - keywordKeyName = key.name; - } else { - unquotedProps.push(property); - } - }); - - if (checkQuotesRedundancy && quotedProps.length && !necessaryQuotes) { - quotedProps.forEach(property => { - context.report({ - node: property, - messageId: "redundantQuoting", - fix: fixer => fixer.replaceText(property.key, getUnquotedKey(property.key)) - }); - }); - } else if (unquotedProps.length && keywordKeyName) { - unquotedProps.forEach(property => { - context.report({ - node: property, - messageId: "requireQuotesDueToReservedWord", - data: { property: keywordKeyName }, - fix: fixer => fixer.replaceText(property.key, getQuotedKey(property.key)) - }); - }); - } else if (quotedProps.length && unquotedProps.length) { - unquotedProps.forEach(property => { - context.report({ - node: property, - messageId: "inconsistentlyQuotedProperty", - data: { key: property.key.name || property.key.value }, - fix: fixer => fixer.replaceText(property.key, getQuotedKey(property.key)) - }); - }); - } - } - - return { - Property(node) { - if (MODE === "always" || !MODE) { - checkOmittedQuotes(node); - } - if (MODE === "as-needed") { - checkUnnecessaryQuotes(node); - } - }, - ObjectExpression(node) { - if (MODE === "consistent") { - checkConsistency(node, false); - } - if (MODE === "consistent-as-needed") { - checkConsistency(node, true); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/quotes.js b/graphql/node_modules/eslint/lib/rules/quotes.js deleted file mode 100644 index 17d97dd6..00000000 --- a/graphql/node_modules/eslint/lib/rules/quotes.js +++ /dev/null @@ -1,350 +0,0 @@ -/** - * @fileoverview A rule to choose between single and double quote marks - * @author Matt DuVall , Brandon Payton - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -const QUOTE_SETTINGS = { - double: { - quote: "\"", - alternateQuote: "'", - description: "doublequote" - }, - single: { - quote: "'", - alternateQuote: "\"", - description: "singlequote" - }, - backtick: { - quote: "`", - alternateQuote: "\"", - description: "backtick" - } -}; - -// An unescaped newline is a newline preceded by an even number of backslashes. -const UNESCAPED_LINEBREAK_PATTERN = new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(astUtils.LINEBREAKS).join("")}]`, "u"); - -/** - * Switches quoting of javascript string between ' " and ` - * escaping and unescaping as necessary. - * Only escaping of the minimal set of characters is changed. - * Note: escaping of newlines when switching from backtick to other quotes is not handled. - * @param {string} str A string to convert. - * @returns {string} The string with changed quotes. - * @private - */ -QUOTE_SETTINGS.double.convert = -QUOTE_SETTINGS.single.convert = -QUOTE_SETTINGS.backtick.convert = function(str) { - const newQuote = this.quote; - const oldQuote = str[0]; - - if (newQuote === oldQuote) { - return str; - } - return newQuote + str.slice(1, -1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu, (match, escaped, newline) => { - if (escaped === oldQuote || oldQuote === "`" && escaped === "${") { - return escaped; // unescape - } - if (match === newQuote || newQuote === "`" && match === "${") { - return `\\${match}`; // escape - } - if (newline && oldQuote === "`") { - return "\\n"; // escape newlines - } - return match; - }) + newQuote; -}; - -const AVOID_ESCAPE = "avoid-escape"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce the consistent use of either backticks, double, or single quotes", - recommended: false, - url: "https://eslint.org/docs/latest/rules/quotes" - }, - - fixable: "code", - - schema: [ - { - enum: ["single", "double", "backtick"] - }, - { - anyOf: [ - { - enum: ["avoid-escape"] - }, - { - type: "object", - properties: { - avoidEscape: { - type: "boolean" - }, - allowTemplateLiterals: { - type: "boolean" - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - wrongQuotes: "Strings must use {{description}}." - } - }, - - create(context) { - - const quoteOption = context.options[0], - settings = QUOTE_SETTINGS[quoteOption || "double"], - options = context.options[1], - allowTemplateLiterals = options && options.allowTemplateLiterals === true, - sourceCode = context.sourceCode; - let avoidEscape = options && options.avoidEscape === true; - - // deprecated - if (options === AVOID_ESCAPE) { - avoidEscape = true; - } - - /** - * Determines if a given node is part of JSX syntax. - * - * This function returns `true` in the following cases: - * - * - `
` ... If the literal is an attribute value, the parent of the literal is `JSXAttribute`. - * - `
foo
` ... If the literal is a text content, the parent of the literal is `JSXElement`. - * - `<>foo` ... If the literal is a text content, the parent of the literal is `JSXFragment`. - * - * In particular, this function returns `false` in the following cases: - * - * - `
` - * - `
{"foo"}
` - * - * In both cases, inside of the braces is handled as normal JavaScript. - * The braces are `JSXExpressionContainer` nodes. - * @param {ASTNode} node The Literal node to check. - * @returns {boolean} True if the node is a part of JSX, false if not. - * @private - */ - function isJSXLiteral(node) { - return node.parent.type === "JSXAttribute" || node.parent.type === "JSXElement" || node.parent.type === "JSXFragment"; - } - - /** - * Checks whether or not a given node is a directive. - * The directive is a `ExpressionStatement` which has only a string literal not surrounded by - * parentheses. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a directive. - * @private - */ - function isDirective(node) { - return ( - node.type === "ExpressionStatement" && - node.expression.type === "Literal" && - typeof node.expression.value === "string" && - !astUtils.isParenthesised(sourceCode, node.expression) - ); - } - - /** - * Checks whether a specified node is either part of, or immediately follows a (possibly empty) directive prologue. - * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-directive-prologues-and-the-use-strict-directive} - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether a specified node is either part of, or immediately follows a (possibly empty) directive prologue. - * @private - */ - function isExpressionInOrJustAfterDirectivePrologue(node) { - if (!astUtils.isTopLevelExpressionStatement(node.parent)) { - return false; - } - const block = node.parent.parent; - - // Check the node is at a prologue. - for (let i = 0; i < block.body.length; ++i) { - const statement = block.body[i]; - - if (statement === node.parent) { - return true; - } - if (!isDirective(statement)) { - break; - } - } - - return false; - } - - /** - * Checks whether or not a given node is allowed as non backtick. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is allowed as non backtick. - * @private - */ - function isAllowedAsNonBacktick(node) { - const parent = node.parent; - - switch (parent.type) { - - // Directive Prologues. - case "ExpressionStatement": - return !astUtils.isParenthesised(sourceCode, node) && isExpressionInOrJustAfterDirectivePrologue(node); - - // LiteralPropertyName. - case "Property": - case "PropertyDefinition": - case "MethodDefinition": - return parent.key === node && !parent.computed; - - // ModuleSpecifier. - case "ImportDeclaration": - case "ExportNamedDeclaration": - return parent.source === node; - - // ModuleExportName or ModuleSpecifier. - case "ExportAllDeclaration": - return parent.exported === node || parent.source === node; - - // ModuleExportName. - case "ImportSpecifier": - return parent.imported === node; - - // ModuleExportName. - case "ExportSpecifier": - return parent.local === node || parent.exported === node; - - // Others don't allow. - default: - return false; - } - } - - /** - * Checks whether or not a given TemplateLiteral node is actually using any of the special features provided by template literal strings. - * @param {ASTNode} node A TemplateLiteral node to check. - * @returns {boolean} Whether or not the TemplateLiteral node is using any of the special features provided by template literal strings. - * @private - */ - function isUsingFeatureOfTemplateLiteral(node) { - const hasTag = node.parent.type === "TaggedTemplateExpression" && node === node.parent.quasi; - - if (hasTag) { - return true; - } - - const hasStringInterpolation = node.expressions.length > 0; - - if (hasStringInterpolation) { - return true; - } - - const isMultilineString = node.quasis.length >= 1 && UNESCAPED_LINEBREAK_PATTERN.test(node.quasis[0].value.raw); - - if (isMultilineString) { - return true; - } - - return false; - } - - return { - - Literal(node) { - const val = node.value, - rawVal = node.raw; - - if (settings && typeof val === "string") { - let isValid = (quoteOption === "backtick" && isAllowedAsNonBacktick(node)) || - isJSXLiteral(node) || - astUtils.isSurroundedBy(rawVal, settings.quote); - - if (!isValid && avoidEscape) { - isValid = astUtils.isSurroundedBy(rawVal, settings.alternateQuote) && rawVal.includes(settings.quote); - } - - if (!isValid) { - context.report({ - node, - messageId: "wrongQuotes", - data: { - description: settings.description - }, - fix(fixer) { - if (quoteOption === "backtick" && astUtils.hasOctalOrNonOctalDecimalEscapeSequence(rawVal)) { - - /* - * An octal or non-octal decimal escape sequence in a template literal would - * produce syntax error, even in non-strict mode. - */ - return null; - } - - return fixer.replaceText(node, settings.convert(node.raw)); - } - }); - } - } - }, - - TemplateLiteral(node) { - - // Don't throw an error if backticks are expected or a template literal feature is in use. - if ( - allowTemplateLiterals || - quoteOption === "backtick" || - isUsingFeatureOfTemplateLiteral(node) - ) { - return; - } - - context.report({ - node, - messageId: "wrongQuotes", - data: { - description: settings.description - }, - fix(fixer) { - if (astUtils.isTopLevelExpressionStatement(node.parent) && !astUtils.isParenthesised(sourceCode, node)) { - - /* - * TemplateLiterals aren't actually directives, but fixing them might turn - * them into directives and change the behavior of the code. - */ - return null; - } - return fixer.replaceText(node, settings.convert(sourceCode.getText(node))); - } - }); - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/radix.js b/graphql/node_modules/eslint/lib/rules/radix.js deleted file mode 100644 index efae7496..00000000 --- a/graphql/node_modules/eslint/lib/rules/radix.js +++ /dev/null @@ -1,198 +0,0 @@ -/** - * @fileoverview Rule to flag use of parseInt without a radix argument - * @author James Allardice - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const MODE_ALWAYS = "always", - MODE_AS_NEEDED = "as-needed"; - -const validRadixValues = new Set(Array.from({ length: 37 - 2 }, (_, index) => index + 2)); - -/** - * Checks whether a given variable is shadowed or not. - * @param {eslint-scope.Variable} variable A variable to check. - * @returns {boolean} `true` if the variable is shadowed. - */ -function isShadowed(variable) { - return variable.defs.length >= 1; -} - -/** - * Checks whether a given node is a MemberExpression of `parseInt` method or not. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a MemberExpression of `parseInt` - * method. - */ -function isParseIntMethod(node) { - return ( - node.type === "MemberExpression" && - !node.computed && - node.property.type === "Identifier" && - node.property.name === "parseInt" - ); -} - -/** - * Checks whether a given node is a valid value of radix or not. - * - * The following values are invalid. - * - * - A literal except integers between 2 and 36. - * - undefined. - * @param {ASTNode} radix A node of radix to check. - * @returns {boolean} `true` if the node is valid. - */ -function isValidRadix(radix) { - return !( - (radix.type === "Literal" && !validRadixValues.has(radix.value)) || - (radix.type === "Identifier" && radix.name === "undefined") - ); -} - -/** - * Checks whether a given node is a default value of radix or not. - * @param {ASTNode} radix A node of radix to check. - * @returns {boolean} `true` if the node is the literal node of `10`. - */ -function isDefaultRadix(radix) { - return radix.type === "Literal" && radix.value === 10; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce the consistent use of the radix argument when using `parseInt()`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/radix" - }, - - hasSuggestions: true, - - schema: [ - { - enum: ["always", "as-needed"] - } - ], - - messages: { - missingParameters: "Missing parameters.", - redundantRadix: "Redundant radix parameter.", - missingRadix: "Missing radix parameter.", - invalidRadix: "Invalid radix parameter, must be an integer between 2 and 36.", - addRadixParameter10: "Add radix parameter `10` for parsing decimal numbers." - } - }, - - create(context) { - const mode = context.options[0] || MODE_ALWAYS; - const sourceCode = context.sourceCode; - - /** - * Checks the arguments of a given CallExpression node and reports it if it - * offends this rule. - * @param {ASTNode} node A CallExpression node to check. - * @returns {void} - */ - function checkArguments(node) { - const args = node.arguments; - - switch (args.length) { - case 0: - context.report({ - node, - messageId: "missingParameters" - }); - break; - - case 1: - if (mode === MODE_ALWAYS) { - context.report({ - node, - messageId: "missingRadix", - suggest: [ - { - messageId: "addRadixParameter10", - fix(fixer) { - const tokens = sourceCode.getTokens(node); - const lastToken = tokens.at(-1); // Parenthesis. - const secondToLastToken = tokens.at(-2); // May or may not be a comma. - const hasTrailingComma = secondToLastToken.type === "Punctuator" && secondToLastToken.value === ","; - - return fixer.insertTextBefore(lastToken, hasTrailingComma ? " 10," : ", 10"); - } - } - ] - }); - } - break; - - default: - if (mode === MODE_AS_NEEDED && isDefaultRadix(args[1])) { - context.report({ - node, - messageId: "redundantRadix" - }); - } else if (!isValidRadix(args[1])) { - context.report({ - node, - messageId: "invalidRadix" - }); - } - break; - } - } - - return { - "Program:exit"(node) { - const scope = sourceCode.getScope(node); - let variable; - - // Check `parseInt()` - variable = astUtils.getVariableByName(scope, "parseInt"); - if (variable && !isShadowed(variable)) { - variable.references.forEach(reference => { - const idNode = reference.identifier; - - if (astUtils.isCallee(idNode)) { - checkArguments(idNode.parent); - } - }); - } - - // Check `Number.parseInt()` - variable = astUtils.getVariableByName(scope, "Number"); - if (variable && !isShadowed(variable)) { - variable.references.forEach(reference => { - const parentNode = reference.identifier.parent; - const maybeCallee = parentNode.parent.type === "ChainExpression" - ? parentNode.parent - : parentNode; - - if (isParseIntMethod(parentNode) && astUtils.isCallee(maybeCallee)) { - checkArguments(maybeCallee.parent); - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/require-atomic-updates.js b/graphql/node_modules/eslint/lib/rules/require-atomic-updates.js deleted file mode 100644 index 7e397ceb..00000000 --- a/graphql/node_modules/eslint/lib/rules/require-atomic-updates.js +++ /dev/null @@ -1,331 +0,0 @@ -/** - * @fileoverview disallow assignments that can lead to race conditions due to usage of `await` or `yield` - * @author Teddy Katz - * @author Toru Nagashima - */ -"use strict"; - -/** - * Make the map from identifiers to each reference. - * @param {escope.Scope} scope The scope to get references. - * @param {Map} [outReferenceMap] The map from identifier nodes to each reference object. - * @returns {Map} `referenceMap`. - */ -function createReferenceMap(scope, outReferenceMap = new Map()) { - for (const reference of scope.references) { - if (reference.resolved === null) { - continue; - } - - outReferenceMap.set(reference.identifier, reference); - } - for (const childScope of scope.childScopes) { - if (childScope.type !== "function") { - createReferenceMap(childScope, outReferenceMap); - } - } - - return outReferenceMap; -} - -/** - * Get `reference.writeExpr` of a given reference. - * If it's the read reference of MemberExpression in LHS, returns RHS in order to address `a.b = await a` - * @param {escope.Reference} reference The reference to get. - * @returns {Expression|null} The `reference.writeExpr`. - */ -function getWriteExpr(reference) { - if (reference.writeExpr) { - return reference.writeExpr; - } - let node = reference.identifier; - - while (node) { - const t = node.parent.type; - - if (t === "AssignmentExpression" && node.parent.left === node) { - return node.parent.right; - } - if (t === "MemberExpression" && node.parent.object === node) { - node = node.parent; - continue; - } - - break; - } - - return null; -} - -/** - * Checks if an expression is a variable that can only be observed within the given function. - * @param {Variable|null} variable The variable to check - * @param {boolean} isMemberAccess If `true` then this is a member access. - * @returns {boolean} `true` if the variable is local to the given function, and is never referenced in a closure. - */ -function isLocalVariableWithoutEscape(variable, isMemberAccess) { - if (!variable) { - return false; // A global variable which was not defined. - } - - // If the reference is a property access and the variable is a parameter, it handles the variable is not local. - if (isMemberAccess && variable.defs.some(d => d.type === "Parameter")) { - return false; - } - - const functionScope = variable.scope.variableScope; - - return variable.references.every(reference => - reference.from.variableScope === functionScope); -} - -/** - * Represents segment information. - */ -class SegmentInfo { - constructor() { - this.info = new WeakMap(); - } - - /** - * Initialize the segment information. - * @param {PathSegment} segment The segment to initialize. - * @returns {void} - */ - initialize(segment) { - const outdatedReadVariables = new Set(); - const freshReadVariables = new Set(); - - for (const prevSegment of segment.prevSegments) { - const info = this.info.get(prevSegment); - - if (info) { - info.outdatedReadVariables.forEach(Set.prototype.add, outdatedReadVariables); - info.freshReadVariables.forEach(Set.prototype.add, freshReadVariables); - } - } - - this.info.set(segment, { outdatedReadVariables, freshReadVariables }); - } - - /** - * Mark a given variable as read on given segments. - * @param {PathSegment[]} segments The segments that it read the variable on. - * @param {Variable} variable The variable to be read. - * @returns {void} - */ - markAsRead(segments, variable) { - for (const segment of segments) { - const info = this.info.get(segment); - - if (info) { - info.freshReadVariables.add(variable); - - // If a variable is freshly read again, then it's no more out-dated. - info.outdatedReadVariables.delete(variable); - } - } - } - - /** - * Move `freshReadVariables` to `outdatedReadVariables`. - * @param {PathSegment[]} segments The segments to process. - * @returns {void} - */ - makeOutdated(segments) { - for (const segment of segments) { - const info = this.info.get(segment); - - if (info) { - info.freshReadVariables.forEach(Set.prototype.add, info.outdatedReadVariables); - info.freshReadVariables.clear(); - } - } - } - - /** - * Check if a given variable is outdated on the current segments. - * @param {PathSegment[]} segments The current segments. - * @param {Variable} variable The variable to check. - * @returns {boolean} `true` if the variable is outdated on the segments. - */ - isOutdated(segments, variable) { - for (const segment of segments) { - const info = this.info.get(segment); - - if (info && info.outdatedReadVariables.has(variable)) { - return true; - } - } - return false; - } -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Disallow assignments that can lead to race conditions due to usage of `await` or `yield`", - recommended: false, - url: "https://eslint.org/docs/latest/rules/require-atomic-updates" - }, - - fixable: null, - - schema: [{ - type: "object", - properties: { - allowProperties: { - type: "boolean", - default: false - } - }, - additionalProperties: false - }], - - messages: { - nonAtomicUpdate: "Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.", - nonAtomicObjectUpdate: "Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`." - } - }, - - create(context) { - const allowProperties = !!context.options[0] && context.options[0].allowProperties; - - const sourceCode = context.sourceCode; - const assignmentReferences = new Map(); - const segmentInfo = new SegmentInfo(); - let stack = null; - - return { - onCodePathStart(codePath, node) { - const scope = sourceCode.getScope(node); - const shouldVerify = - scope.type === "function" && - (scope.block.async || scope.block.generator); - - stack = { - upper: stack, - codePath, - referenceMap: shouldVerify ? createReferenceMap(scope) : null, - currentSegments: new Set() - }; - }, - onCodePathEnd() { - stack = stack.upper; - }, - - // Initialize the segment information. - onCodePathSegmentStart(segment) { - segmentInfo.initialize(segment); - stack.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentStart(segment) { - stack.currentSegments.add(segment); - }, - - onUnreachableCodePathSegmentEnd(segment) { - stack.currentSegments.delete(segment); - }, - - onCodePathSegmentEnd(segment) { - stack.currentSegments.delete(segment); - }, - - - // Handle references to prepare verification. - Identifier(node) { - const { referenceMap } = stack; - const reference = referenceMap && referenceMap.get(node); - - // Ignore if this is not a valid variable reference. - if (!reference) { - return; - } - const variable = reference.resolved; - const writeExpr = getWriteExpr(reference); - const isMemberAccess = reference.identifier.parent.type === "MemberExpression"; - - // Add a fresh read variable. - if (reference.isRead() && !(writeExpr && writeExpr.parent.operator === "=")) { - segmentInfo.markAsRead(stack.currentSegments, variable); - } - - /* - * Register the variable to verify after ESLint traversed the `writeExpr` node - * if this reference is an assignment to a variable which is referred from other closure. - */ - if (writeExpr && - writeExpr.parent.right === writeExpr && // ← exclude variable declarations. - !isLocalVariableWithoutEscape(variable, isMemberAccess) - ) { - let refs = assignmentReferences.get(writeExpr); - - if (!refs) { - refs = []; - assignmentReferences.set(writeExpr, refs); - } - - refs.push(reference); - } - }, - - /* - * Verify assignments. - * If the reference exists in `outdatedReadVariables` list, report it. - */ - ":expression:exit"(node) { - - // referenceMap exists if this is in a resumable function scope. - if (!stack.referenceMap) { - return; - } - - // Mark the read variables on this code path as outdated. - if (node.type === "AwaitExpression" || node.type === "YieldExpression") { - segmentInfo.makeOutdated(stack.currentSegments); - } - - // Verify. - const references = assignmentReferences.get(node); - - if (references) { - assignmentReferences.delete(node); - - for (const reference of references) { - const variable = reference.resolved; - - if (segmentInfo.isOutdated(stack.currentSegments, variable)) { - if (node.parent.left === reference.identifier) { - context.report({ - node: node.parent, - messageId: "nonAtomicUpdate", - data: { - value: variable.name - } - }); - } else if (!allowProperties) { - context.report({ - node: node.parent, - messageId: "nonAtomicObjectUpdate", - data: { - value: sourceCode.getText(node.parent.left), - object: variable.name - } - }); - } - - } - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/require-await.js b/graphql/node_modules/eslint/lib/rules/require-await.js deleted file mode 100644 index 2a5159d7..00000000 --- a/graphql/node_modules/eslint/lib/rules/require-await.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * @fileoverview Rule to disallow async functions which have no `await` expression. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Capitalize the 1st letter of the given text. - * @param {string} text The text to capitalize. - * @returns {string} The text that the 1st letter was capitalized. - */ -function capitalizeFirstLetter(text) { - return text[0].toUpperCase() + text.slice(1); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Disallow async functions which have no `await` expression", - recommended: false, - url: "https://eslint.org/docs/latest/rules/require-await" - }, - - schema: [], - - messages: { - missingAwait: "{{name}} has no 'await' expression.", - removeAsync: "Remove 'async'." - }, - - hasSuggestions: true - }, - - create(context) { - const sourceCode = context.sourceCode; - let scopeInfo = null; - - /** - * Push the scope info object to the stack. - * @returns {void} - */ - function enterFunction() { - scopeInfo = { - upper: scopeInfo, - hasAwait: false - }; - } - - /** - * Pop the top scope info object from the stack. - * Also, it reports the function if needed. - * @param {ASTNode} node The node to report. - * @returns {void} - */ - function exitFunction(node) { - if (!node.generator && node.async && !scopeInfo.hasAwait && !astUtils.isEmptyFunction(node)) { - - /* - * If the function belongs to a method definition or - * property, then the function's range may not include the - * `async` keyword and we should look at the parent instead. - */ - const nodeWithAsyncKeyword = - (node.parent.type === "MethodDefinition" && node.parent.value === node) || - (node.parent.type === "Property" && node.parent.method && node.parent.value === node) - ? node.parent - : node; - - const asyncToken = sourceCode.getFirstToken(nodeWithAsyncKeyword, token => token.value === "async"); - const asyncRange = [asyncToken.range[0], sourceCode.getTokenAfter(asyncToken, { includeComments: true }).range[0]]; - - /* - * Removing the `async` keyword can cause parsing errors if the current - * statement is relying on automatic semicolon insertion. If ASI is currently - * being used, then we should replace the `async` keyword with a semicolon. - */ - const nextToken = sourceCode.getTokenAfter(asyncToken); - const addSemiColon = - nextToken.type === "Punctuator" && - (nextToken.value === "[" || nextToken.value === "(") && - (nodeWithAsyncKeyword.type === "MethodDefinition" || astUtils.isStartOfExpressionStatement(nodeWithAsyncKeyword)) && - astUtils.needsPrecedingSemicolon(sourceCode, nodeWithAsyncKeyword); - - context.report({ - node, - loc: astUtils.getFunctionHeadLoc(node, sourceCode), - messageId: "missingAwait", - data: { - name: capitalizeFirstLetter( - astUtils.getFunctionNameWithKind(node) - ) - }, - suggest: [{ - messageId: "removeAsync", - fix: fixer => fixer.replaceTextRange(asyncRange, addSemiColon ? ";" : "") - }] - }); - } - - scopeInfo = scopeInfo.upper; - } - - return { - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction, - "FunctionDeclaration:exit": exitFunction, - "FunctionExpression:exit": exitFunction, - "ArrowFunctionExpression:exit": exitFunction, - - AwaitExpression() { - if (!scopeInfo) { - return; - } - - scopeInfo.hasAwait = true; - }, - ForOfStatement(node) { - if (!scopeInfo) { - return; - } - - if (node.await) { - scopeInfo.hasAwait = true; - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/require-unicode-regexp.js b/graphql/node_modules/eslint/lib/rules/require-unicode-regexp.js deleted file mode 100644 index dd687f8d..00000000 --- a/graphql/node_modules/eslint/lib/rules/require-unicode-regexp.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * @fileoverview Rule to enforce the use of `u` flag on RegExp. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { - CALL, - CONSTRUCT, - ReferenceTracker, - getStringIfConstant -} = require("@eslint-community/eslint-utils"); -const astUtils = require("./utils/ast-utils.js"); -const { isValidWithUnicodeFlag } = require("./utils/regular-expressions"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce the use of `u` or `v` flag on RegExp", - recommended: false, - url: "https://eslint.org/docs/latest/rules/require-unicode-regexp" - }, - - hasSuggestions: true, - - messages: { - addUFlag: "Add the 'u' flag.", - requireUFlag: "Use the 'u' flag." - }, - - schema: [] - }, - - create(context) { - - const sourceCode = context.sourceCode; - - return { - "Literal[regex]"(node) { - const flags = node.regex.flags || ""; - - if (!flags.includes("u") && !flags.includes("v")) { - context.report({ - messageId: "requireUFlag", - node, - suggest: isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, node.regex.pattern) - ? [ - { - fix(fixer) { - return fixer.insertTextAfter(node, "u"); - }, - messageId: "addUFlag" - } - ] - : null - }); - } - }, - - Program(node) { - const scope = sourceCode.getScope(node); - const tracker = new ReferenceTracker(scope); - const trackMap = { - RegExp: { [CALL]: true, [CONSTRUCT]: true } - }; - - for (const { node: refNode } of tracker.iterateGlobalReferences(trackMap)) { - const [patternNode, flagsNode] = refNode.arguments; - - if (patternNode && patternNode.type === "SpreadElement") { - continue; - } - const pattern = getStringIfConstant(patternNode, scope); - const flags = getStringIfConstant(flagsNode, scope); - - if (!flagsNode || (typeof flags === "string" && !flags.includes("u") && !flags.includes("v"))) { - context.report({ - messageId: "requireUFlag", - node: refNode, - suggest: typeof pattern === "string" && isValidWithUnicodeFlag(context.languageOptions.ecmaVersion, pattern) - ? [ - { - fix(fixer) { - if (flagsNode) { - if ((flagsNode.type === "Literal" && typeof flagsNode.value === "string") || flagsNode.type === "TemplateLiteral") { - const flagsNodeText = sourceCode.getText(flagsNode); - - return fixer.replaceText(flagsNode, [ - flagsNodeText.slice(0, flagsNodeText.length - 1), - flagsNodeText.slice(flagsNodeText.length - 1) - ].join("u")); - } - - // We intentionally don't suggest concatenating + "u" to non-literals - return null; - } - - const penultimateToken = sourceCode.getLastToken(refNode, { skip: 1 }); // skip closing parenthesis - - return fixer.insertTextAfter( - penultimateToken, - astUtils.isCommaToken(penultimateToken) - ? ' "u",' - : ', "u"' - ); - }, - messageId: "addUFlag" - } - ] - : null - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/require-yield.js b/graphql/node_modules/eslint/lib/rules/require-yield.js deleted file mode 100644 index f801af0a..00000000 --- a/graphql/node_modules/eslint/lib/rules/require-yield.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @fileoverview Rule to flag the generator functions that does not have yield. - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require generator functions to contain `yield`", - recommended: true, - url: "https://eslint.org/docs/latest/rules/require-yield" - }, - - schema: [], - - messages: { - missingYield: "This generator function does not have 'yield'." - } - }, - - create(context) { - const stack = []; - - /** - * If the node is a generator function, start counting `yield` keywords. - * @param {Node} node A function node to check. - * @returns {void} - */ - function beginChecking(node) { - if (node.generator) { - stack.push(0); - } - } - - /** - * If the node is a generator function, end counting `yield` keywords, then - * reports result. - * @param {Node} node A function node to check. - * @returns {void} - */ - function endChecking(node) { - if (!node.generator) { - return; - } - - const countYield = stack.pop(); - - if (countYield === 0 && node.body.body.length > 0) { - context.report({ node, messageId: "missingYield" }); - } - } - - return { - FunctionDeclaration: beginChecking, - "FunctionDeclaration:exit": endChecking, - FunctionExpression: beginChecking, - "FunctionExpression:exit": endChecking, - - // Increases the count of `yield` keyword. - YieldExpression() { - - if (stack.length > 0) { - stack[stack.length - 1] += 1; - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/rest-spread-spacing.js b/graphql/node_modules/eslint/lib/rules/rest-spread-spacing.js deleted file mode 100644 index 287e56f0..00000000 --- a/graphql/node_modules/eslint/lib/rules/rest-spread-spacing.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @fileoverview Enforce spacing between rest and spread operators and their expressions. - * @author Kai Cataldo - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce spacing between rest and spread operators and their expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/rest-spread-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - } - ], - - messages: { - unexpectedWhitespace: "Unexpected whitespace after {{type}} operator.", - expectedWhitespace: "Expected whitespace after {{type}} operator." - } - }, - - create(context) { - const sourceCode = context.sourceCode, - alwaysSpace = context.options[0] === "always"; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Checks whitespace between rest/spread operators and their expressions - * @param {ASTNode} node The node to check - * @returns {void} - */ - function checkWhiteSpace(node) { - const operator = sourceCode.getFirstToken(node), - nextToken = sourceCode.getTokenAfter(operator), - hasWhitespace = sourceCode.isSpaceBetweenTokens(operator, nextToken); - let type; - - switch (node.type) { - case "SpreadElement": - type = "spread"; - if (node.parent.type === "ObjectExpression") { - type += " property"; - } - break; - case "RestElement": - type = "rest"; - if (node.parent.type === "ObjectPattern") { - type += " property"; - } - break; - case "ExperimentalSpreadProperty": - type = "spread property"; - break; - case "ExperimentalRestProperty": - type = "rest property"; - break; - default: - return; - } - - if (alwaysSpace && !hasWhitespace) { - context.report({ - node, - loc: operator.loc, - messageId: "expectedWhitespace", - data: { - type - }, - fix(fixer) { - return fixer.replaceTextRange([operator.range[1], nextToken.range[0]], " "); - } - }); - } else if (!alwaysSpace && hasWhitespace) { - context.report({ - node, - loc: { - start: operator.loc.end, - end: nextToken.loc.start - }, - messageId: "unexpectedWhitespace", - data: { - type - }, - fix(fixer) { - return fixer.removeRange([operator.range[1], nextToken.range[0]]); - } - }); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - SpreadElement: checkWhiteSpace, - RestElement: checkWhiteSpace, - ExperimentalSpreadProperty: checkWhiteSpace, - ExperimentalRestProperty: checkWhiteSpace - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/semi-spacing.js b/graphql/node_modules/eslint/lib/rules/semi-spacing.js deleted file mode 100644 index 35a49d2c..00000000 --- a/graphql/node_modules/eslint/lib/rules/semi-spacing.js +++ /dev/null @@ -1,248 +0,0 @@ -/** - * @fileoverview Validates spacing before and after semicolon - * @author Mathias Schreck - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before and after semicolons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/semi-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - before: { - type: "boolean", - default: false - }, - after: { - type: "boolean", - default: true - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedWhitespaceBefore: "Unexpected whitespace before semicolon.", - unexpectedWhitespaceAfter: "Unexpected whitespace after semicolon.", - missingWhitespaceBefore: "Missing whitespace before semicolon.", - missingWhitespaceAfter: "Missing whitespace after semicolon." - } - }, - - create(context) { - - const config = context.options[0], - sourceCode = context.sourceCode; - let requireSpaceBefore = false, - requireSpaceAfter = true; - - if (typeof config === "object") { - requireSpaceBefore = config.before; - requireSpaceAfter = config.after; - } - - /** - * Checks if a given token has leading whitespace. - * @param {Object} token The token to check. - * @returns {boolean} True if the given token has leading space, false if not. - */ - function hasLeadingSpace(token) { - const tokenBefore = sourceCode.getTokenBefore(token); - - return tokenBefore && astUtils.isTokenOnSameLine(tokenBefore, token) && sourceCode.isSpaceBetweenTokens(tokenBefore, token); - } - - /** - * Checks if a given token has trailing whitespace. - * @param {Object} token The token to check. - * @returns {boolean} True if the given token has trailing space, false if not. - */ - function hasTrailingSpace(token) { - const tokenAfter = sourceCode.getTokenAfter(token); - - return tokenAfter && astUtils.isTokenOnSameLine(token, tokenAfter) && sourceCode.isSpaceBetweenTokens(token, tokenAfter); - } - - /** - * Checks if the given token is the last token in its line. - * @param {Token} token The token to check. - * @returns {boolean} Whether or not the token is the last in its line. - */ - function isLastTokenInCurrentLine(token) { - const tokenAfter = sourceCode.getTokenAfter(token); - - return !(tokenAfter && astUtils.isTokenOnSameLine(token, tokenAfter)); - } - - /** - * Checks if the given token is the first token in its line - * @param {Token} token The token to check. - * @returns {boolean} Whether or not the token is the first in its line. - */ - function isFirstTokenInCurrentLine(token) { - const tokenBefore = sourceCode.getTokenBefore(token); - - return !(tokenBefore && astUtils.isTokenOnSameLine(token, tokenBefore)); - } - - /** - * Checks if the next token of a given token is a closing parenthesis. - * @param {Token} token The token to check. - * @returns {boolean} Whether or not the next token of a given token is a closing parenthesis. - */ - function isBeforeClosingParen(token) { - const nextToken = sourceCode.getTokenAfter(token); - - return (nextToken && astUtils.isClosingBraceToken(nextToken) || astUtils.isClosingParenToken(nextToken)); - } - - /** - * Report location example : - * - * for unexpected space `before` - * - * var a = 'b' ; - * ^^^ - * - * for unexpected space `after` - * - * var a = 'b'; c = 10; - * ^^ - * - * Reports if the given token has invalid spacing. - * @param {Token} token The semicolon token to check. - * @param {ASTNode} node The corresponding node of the token. - * @returns {void} - */ - function checkSemicolonSpacing(token, node) { - if (astUtils.isSemicolonToken(token)) { - if (hasLeadingSpace(token)) { - if (!requireSpaceBefore) { - const tokenBefore = sourceCode.getTokenBefore(token); - const loc = { - start: tokenBefore.loc.end, - end: token.loc.start - }; - - context.report({ - node, - loc, - messageId: "unexpectedWhitespaceBefore", - fix(fixer) { - - return fixer.removeRange([tokenBefore.range[1], token.range[0]]); - } - }); - } - } else { - if (requireSpaceBefore) { - const loc = token.loc; - - context.report({ - node, - loc, - messageId: "missingWhitespaceBefore", - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - } - - if (!isFirstTokenInCurrentLine(token) && !isLastTokenInCurrentLine(token) && !isBeforeClosingParen(token)) { - if (hasTrailingSpace(token)) { - if (!requireSpaceAfter) { - const tokenAfter = sourceCode.getTokenAfter(token); - const loc = { - start: token.loc.end, - end: tokenAfter.loc.start - }; - - context.report({ - node, - loc, - messageId: "unexpectedWhitespaceAfter", - fix(fixer) { - - return fixer.removeRange([token.range[1], tokenAfter.range[0]]); - } - }); - } - } else { - if (requireSpaceAfter) { - const loc = token.loc; - - context.report({ - node, - loc, - messageId: "missingWhitespaceAfter", - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - } - } - } - } - - /** - * Checks the spacing of the semicolon with the assumption that the last token is the semicolon. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkNode(node) { - const token = sourceCode.getLastToken(node); - - checkSemicolonSpacing(token, node); - } - - return { - VariableDeclaration: checkNode, - ExpressionStatement: checkNode, - BreakStatement: checkNode, - ContinueStatement: checkNode, - DebuggerStatement: checkNode, - DoWhileStatement: checkNode, - ReturnStatement: checkNode, - ThrowStatement: checkNode, - ImportDeclaration: checkNode, - ExportNamedDeclaration: checkNode, - ExportAllDeclaration: checkNode, - ExportDefaultDeclaration: checkNode, - ForStatement(node) { - if (node.init) { - checkSemicolonSpacing(sourceCode.getTokenAfter(node.init), node); - } - - if (node.test) { - checkSemicolonSpacing(sourceCode.getTokenAfter(node.test), node); - } - }, - PropertyDefinition: checkNode - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/semi-style.js b/graphql/node_modules/eslint/lib/rules/semi-style.js deleted file mode 100644 index 11caaf0b..00000000 --- a/graphql/node_modules/eslint/lib/rules/semi-style.js +++ /dev/null @@ -1,158 +0,0 @@ -/** - * @fileoverview Rule to enforce location of semicolons. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -const SELECTOR = [ - "BreakStatement", "ContinueStatement", "DebuggerStatement", - "DoWhileStatement", "ExportAllDeclaration", - "ExportDefaultDeclaration", "ExportNamedDeclaration", - "ExpressionStatement", "ImportDeclaration", "ReturnStatement", - "ThrowStatement", "VariableDeclaration", "PropertyDefinition" -].join(","); - -/** - * Get the child node list of a given node. - * This returns `BlockStatement#body`, `StaticBlock#body`, `Program#body`, - * `ClassBody#body`, or `SwitchCase#consequent`. - * This is used to check whether a node is the first/last child. - * @param {Node} node A node to get child node list. - * @returns {Node[]|null} The child node list. - */ -function getChildren(node) { - const t = node.type; - - if ( - t === "BlockStatement" || - t === "StaticBlock" || - t === "Program" || - t === "ClassBody" - ) { - return node.body; - } - if (t === "SwitchCase") { - return node.consequent; - } - return null; -} - -/** - * Check whether a given node is the last statement in the parent block. - * @param {Node} node A node to check. - * @returns {boolean} `true` if the node is the last statement in the parent block. - */ -function isLastChild(node) { - const t = node.parent.type; - - if (t === "IfStatement" && node.parent.consequent === node && node.parent.alternate) { // before `else` keyword. - return true; - } - if (t === "DoWhileStatement") { // before `while` keyword. - return true; - } - const nodeList = getChildren(node.parent); - - return nodeList !== null && nodeList.at(-1) === node; // before `}` or etc. -} - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce location of semicolons", - recommended: false, - url: "https://eslint.org/docs/latest/rules/semi-style" - }, - - schema: [{ enum: ["last", "first"] }], - fixable: "whitespace", - - messages: { - expectedSemiColon: "Expected this semicolon to be at {{pos}}." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const option = context.options[0] || "last"; - - /** - * Check the given semicolon token. - * @param {Token} semiToken The semicolon token to check. - * @param {"first"|"last"} expected The expected location to check. - * @returns {void} - */ - function check(semiToken, expected) { - const prevToken = sourceCode.getTokenBefore(semiToken); - const nextToken = sourceCode.getTokenAfter(semiToken); - const prevIsSameLine = !prevToken || astUtils.isTokenOnSameLine(prevToken, semiToken); - const nextIsSameLine = !nextToken || astUtils.isTokenOnSameLine(semiToken, nextToken); - - if ((expected === "last" && !prevIsSameLine) || (expected === "first" && !nextIsSameLine)) { - context.report({ - loc: semiToken.loc, - messageId: "expectedSemiColon", - data: { - pos: (expected === "last") - ? "the end of the previous line" - : "the beginning of the next line" - }, - fix(fixer) { - if (prevToken && nextToken && sourceCode.commentsExistBetween(prevToken, nextToken)) { - return null; - } - - const start = prevToken ? prevToken.range[1] : semiToken.range[0]; - const end = nextToken ? nextToken.range[0] : semiToken.range[1]; - const text = (expected === "last") ? ";\n" : "\n;"; - - return fixer.replaceTextRange([start, end], text); - } - }); - } - } - - return { - [SELECTOR](node) { - if (option === "first" && isLastChild(node)) { - return; - } - - const lastToken = sourceCode.getLastToken(node); - - if (astUtils.isSemicolonToken(lastToken)) { - check(lastToken, option); - } - }, - - ForStatement(node) { - const firstSemi = node.init && sourceCode.getTokenAfter(node.init, astUtils.isSemicolonToken); - const secondSemi = node.test && sourceCode.getTokenAfter(node.test, astUtils.isSemicolonToken); - - if (firstSemi) { - check(firstSemi, "last"); - } - if (secondSemi) { - check(secondSemi, "last"); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/semi.js b/graphql/node_modules/eslint/lib/rules/semi.js deleted file mode 100644 index 01586b84..00000000 --- a/graphql/node_modules/eslint/lib/rules/semi.js +++ /dev/null @@ -1,438 +0,0 @@ -/** - * @fileoverview Rule to flag missing semicolons. - * @author Nicholas C. Zakas - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const FixTracker = require("./utils/fix-tracker"); -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow semicolons instead of ASI", - recommended: false, - url: "https://eslint.org/docs/latest/rules/semi" - }, - - fixable: "code", - - schema: { - anyOf: [ - { - type: "array", - items: [ - { - enum: ["never"] - }, - { - type: "object", - properties: { - beforeStatementContinuationChars: { - enum: ["always", "any", "never"] - } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - }, - { - type: "array", - items: [ - { - enum: ["always"] - }, - { - type: "object", - properties: { - omitLastInOneLineBlock: { type: "boolean" }, - omitLastInOneLineClassBody: { type: "boolean" } - }, - additionalProperties: false - } - ], - minItems: 0, - maxItems: 2 - } - ] - }, - - messages: { - missingSemi: "Missing semicolon.", - extraSemi: "Extra semicolon." - } - }, - - create(context) { - - const OPT_OUT_PATTERN = /^[-[(/+`]/u; // One of [(/+-` - const unsafeClassFieldNames = new Set(["get", "set", "static"]); - const unsafeClassFieldFollowers = new Set(["*", "in", "instanceof"]); - const options = context.options[1]; - const never = context.options[0] === "never"; - const exceptOneLine = Boolean(options && options.omitLastInOneLineBlock); - const exceptOneLineClassBody = Boolean(options && options.omitLastInOneLineClassBody); - const beforeStatementContinuationChars = options && options.beforeStatementContinuationChars || "any"; - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Reports a semicolon error with appropriate location and message. - * @param {ASTNode} node The node with an extra or missing semicolon. - * @param {boolean} missing True if the semicolon is missing. - * @returns {void} - */ - function report(node, missing) { - const lastToken = sourceCode.getLastToken(node); - let messageId, - fix, - loc; - - if (!missing) { - messageId = "missingSemi"; - loc = { - start: lastToken.loc.end, - end: astUtils.getNextLocation(sourceCode, lastToken.loc.end) - }; - fix = function(fixer) { - return fixer.insertTextAfter(lastToken, ";"); - }; - } else { - messageId = "extraSemi"; - loc = lastToken.loc; - fix = function(fixer) { - - /* - * Expand the replacement range to include the surrounding - * tokens to avoid conflicting with no-extra-semi. - * https://github.com/eslint/eslint/issues/7928 - */ - return new FixTracker(fixer, sourceCode) - .retainSurroundingTokens(lastToken) - .remove(lastToken); - }; - } - - context.report({ - node, - loc, - messageId, - fix - }); - - } - - /** - * Check whether a given semicolon token is redundant. - * @param {Token} semiToken A semicolon token to check. - * @returns {boolean} `true` if the next token is `;` or `}`. - */ - function isRedundantSemi(semiToken) { - const nextToken = sourceCode.getTokenAfter(semiToken); - - return ( - !nextToken || - astUtils.isClosingBraceToken(nextToken) || - astUtils.isSemicolonToken(nextToken) - ); - } - - /** - * Check whether a given token is the closing brace of an arrow function. - * @param {Token} lastToken A token to check. - * @returns {boolean} `true` if the token is the closing brace of an arrow function. - */ - function isEndOfArrowBlock(lastToken) { - if (!astUtils.isClosingBraceToken(lastToken)) { - return false; - } - const node = sourceCode.getNodeByRangeIndex(lastToken.range[0]); - - return ( - node.type === "BlockStatement" && - node.parent.type === "ArrowFunctionExpression" - ); - } - - /** - * Checks if a given PropertyDefinition node followed by a semicolon - * can safely remove that semicolon. It is not to safe to remove if - * the class field name is "get", "set", or "static", or if - * followed by a generator method. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node cannot have the semicolon - * removed. - */ - function maybeClassFieldAsiHazard(node) { - - if (node.type !== "PropertyDefinition") { - return false; - } - - /* - * Computed property names and non-identifiers are always safe - * as they can be distinguished from keywords easily. - */ - const needsNameCheck = !node.computed && node.key.type === "Identifier"; - - /* - * Certain names are problematic unless they also have a - * a way to distinguish between keywords and property - * names. - */ - if (needsNameCheck && unsafeClassFieldNames.has(node.key.name)) { - - /* - * Special case: If the field name is `static`, - * it is only valid if the field is marked as static, - * so "static static" is okay but "static" is not. - */ - const isStaticStatic = node.static && node.key.name === "static"; - - /* - * For other unsafe names, we only care if there is no - * initializer. No initializer = hazard. - */ - if (!isStaticStatic && !node.value) { - return true; - } - } - - const followingToken = sourceCode.getTokenAfter(node); - - return unsafeClassFieldFollowers.has(followingToken.value); - } - - /** - * Check whether a given node is on the same line with the next token. - * @param {Node} node A statement node to check. - * @returns {boolean} `true` if the node is on the same line with the next token. - */ - function isOnSameLineWithNextToken(node) { - const prevToken = sourceCode.getLastToken(node, 1); - const nextToken = sourceCode.getTokenAfter(node); - - return !!nextToken && astUtils.isTokenOnSameLine(prevToken, nextToken); - } - - /** - * Check whether a given node can connect the next line if the next line is unreliable. - * @param {Node} node A statement node to check. - * @returns {boolean} `true` if the node can connect the next line. - */ - function maybeAsiHazardAfter(node) { - const t = node.type; - - if (t === "DoWhileStatement" || - t === "BreakStatement" || - t === "ContinueStatement" || - t === "DebuggerStatement" || - t === "ImportDeclaration" || - t === "ExportAllDeclaration" - ) { - return false; - } - if (t === "ReturnStatement") { - return Boolean(node.argument); - } - if (t === "ExportNamedDeclaration") { - return Boolean(node.declaration); - } - if (isEndOfArrowBlock(sourceCode.getLastToken(node, 1))) { - return false; - } - - return true; - } - - /** - * Check whether a given token can connect the previous statement. - * @param {Token} token A token to check. - * @returns {boolean} `true` if the token is one of `[`, `(`, `/`, `+`, `-`, ```, `++`, and `--`. - */ - function maybeAsiHazardBefore(token) { - return ( - Boolean(token) && - OPT_OUT_PATTERN.test(token.value) && - token.value !== "++" && - token.value !== "--" - ); - } - - /** - * Check if the semicolon of a given node is unnecessary, only true if: - * - next token is a valid statement divider (`;` or `}`). - * - next token is on a new line and the node is not connectable to the new line. - * @param {Node} node A statement node to check. - * @returns {boolean} whether the semicolon is unnecessary. - */ - function canRemoveSemicolon(node) { - if (isRedundantSemi(sourceCode.getLastToken(node))) { - return true; // `;;` or `;}` - } - if (maybeClassFieldAsiHazard(node)) { - return false; - } - if (isOnSameLineWithNextToken(node)) { - return false; // One liner. - } - - // continuation characters should not apply to class fields - if ( - node.type !== "PropertyDefinition" && - beforeStatementContinuationChars === "never" && - !maybeAsiHazardAfter(node) - ) { - return true; // ASI works. This statement doesn't connect to the next. - } - if (!maybeAsiHazardBefore(sourceCode.getTokenAfter(node))) { - return true; // ASI works. The next token doesn't connect to this statement. - } - - return false; - } - - /** - * Checks a node to see if it's the last item in a one-liner block. - * Block is any `BlockStatement` or `StaticBlock` node. Block is a one-liner if its - * braces (and consequently everything between them) are on the same line. - * @param {ASTNode} node The node to check. - * @returns {boolean} whether the node is the last item in a one-liner block. - */ - function isLastInOneLinerBlock(node) { - const parent = node.parent; - const nextToken = sourceCode.getTokenAfter(node); - - if (!nextToken || nextToken.value !== "}") { - return false; - } - - if (parent.type === "BlockStatement") { - return parent.loc.start.line === parent.loc.end.line; - } - - if (parent.type === "StaticBlock") { - const openingBrace = sourceCode.getFirstToken(parent, { skip: 1 }); // skip the `static` token - - return openingBrace.loc.start.line === parent.loc.end.line; - } - - return false; - } - - /** - * Checks a node to see if it's the last item in a one-liner `ClassBody` node. - * ClassBody is a one-liner if its braces (and consequently everything between them) are on the same line. - * @param {ASTNode} node The node to check. - * @returns {boolean} whether the node is the last item in a one-liner ClassBody. - */ - function isLastInOneLinerClassBody(node) { - const parent = node.parent; - const nextToken = sourceCode.getTokenAfter(node); - - if (!nextToken || nextToken.value !== "}") { - return false; - } - - if (parent.type === "ClassBody") { - return parent.loc.start.line === parent.loc.end.line; - } - - return false; - } - - /** - * Checks a node to see if it's followed by a semicolon. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkForSemicolon(node) { - const isSemi = astUtils.isSemicolonToken(sourceCode.getLastToken(node)); - - if (never) { - if (isSemi && canRemoveSemicolon(node)) { - report(node, true); - } else if ( - !isSemi && beforeStatementContinuationChars === "always" && - node.type !== "PropertyDefinition" && - maybeAsiHazardBefore(sourceCode.getTokenAfter(node)) - ) { - report(node); - } - } else { - const oneLinerBlock = (exceptOneLine && isLastInOneLinerBlock(node)); - const oneLinerClassBody = (exceptOneLineClassBody && isLastInOneLinerClassBody(node)); - const oneLinerBlockOrClassBody = oneLinerBlock || oneLinerClassBody; - - if (isSemi && oneLinerBlockOrClassBody) { - report(node, true); - } else if (!isSemi && !oneLinerBlockOrClassBody) { - report(node); - } - } - } - - /** - * Checks to see if there's a semicolon after a variable declaration. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkForSemicolonForVariableDeclaration(node) { - const parent = node.parent; - - if ((parent.type !== "ForStatement" || parent.init !== node) && - (!/^For(?:In|Of)Statement/u.test(parent.type) || parent.left !== node) - ) { - checkForSemicolon(node); - } - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - VariableDeclaration: checkForSemicolonForVariableDeclaration, - ExpressionStatement: checkForSemicolon, - ReturnStatement: checkForSemicolon, - ThrowStatement: checkForSemicolon, - DoWhileStatement: checkForSemicolon, - DebuggerStatement: checkForSemicolon, - BreakStatement: checkForSemicolon, - ContinueStatement: checkForSemicolon, - ImportDeclaration: checkForSemicolon, - ExportAllDeclaration: checkForSemicolon, - ExportNamedDeclaration(node) { - if (!node.declaration) { - checkForSemicolon(node); - } - }, - ExportDefaultDeclaration(node) { - if (!/(?:Class|Function)Declaration/u.test(node.declaration.type)) { - checkForSemicolon(node); - } - }, - PropertyDefinition: checkForSemicolon - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/sort-imports.js b/graphql/node_modules/eslint/lib/rules/sort-imports.js deleted file mode 100644 index 9deaf1d4..00000000 --- a/graphql/node_modules/eslint/lib/rules/sort-imports.js +++ /dev/null @@ -1,241 +0,0 @@ -/** - * @fileoverview Rule to require sorting of import declarations - * @author Christian Schuller - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Enforce sorted import declarations within modules", - recommended: false, - url: "https://eslint.org/docs/latest/rules/sort-imports" - }, - - schema: [ - { - type: "object", - properties: { - ignoreCase: { - type: "boolean", - default: false - }, - memberSyntaxSortOrder: { - type: "array", - items: { - enum: ["none", "all", "multiple", "single"] - }, - uniqueItems: true, - minItems: 4, - maxItems: 4 - }, - ignoreDeclarationSort: { - type: "boolean", - default: false - }, - ignoreMemberSort: { - type: "boolean", - default: false - }, - allowSeparatedGroups: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - sortImportsAlphabetically: "Imports should be sorted alphabetically.", - sortMembersAlphabetically: "Member '{{memberName}}' of the import declaration should be sorted alphabetically.", - unexpectedSyntaxOrder: "Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax." - } - }, - - create(context) { - - const configuration = context.options[0] || {}, - ignoreCase = configuration.ignoreCase || false, - ignoreDeclarationSort = configuration.ignoreDeclarationSort || false, - ignoreMemberSort = configuration.ignoreMemberSort || false, - memberSyntaxSortOrder = configuration.memberSyntaxSortOrder || ["none", "all", "multiple", "single"], - allowSeparatedGroups = configuration.allowSeparatedGroups || false, - sourceCode = context.sourceCode; - let previousDeclaration = null; - - /** - * Gets the used member syntax style. - * - * import "my-module.js" --> none - * import * as myModule from "my-module.js" --> all - * import {myMember} from "my-module.js" --> single - * import {foo, bar} from "my-module.js" --> multiple - * @param {ASTNode} node the ImportDeclaration node. - * @returns {string} used member parameter style, ["all", "multiple", "single"] - */ - function usedMemberSyntax(node) { - if (node.specifiers.length === 0) { - return "none"; - } - if (node.specifiers[0].type === "ImportNamespaceSpecifier") { - return "all"; - } - if (node.specifiers.length === 1) { - return "single"; - } - return "multiple"; - - } - - /** - * Gets the group by member parameter index for given declaration. - * @param {ASTNode} node the ImportDeclaration node. - * @returns {number} the declaration group by member index. - */ - function getMemberParameterGroupIndex(node) { - return memberSyntaxSortOrder.indexOf(usedMemberSyntax(node)); - } - - /** - * Gets the local name of the first imported module. - * @param {ASTNode} node the ImportDeclaration node. - * @returns {?string} the local name of the first imported module. - */ - function getFirstLocalMemberName(node) { - if (node.specifiers[0]) { - return node.specifiers[0].local.name; - } - return null; - - } - - /** - * Calculates number of lines between two nodes. It is assumed that the given `left` node appears before - * the given `right` node in the source code. Lines are counted from the end of the `left` node till the - * start of the `right` node. If the given nodes are on the same line, it returns `0`, same as if they were - * on two consecutive lines. - * @param {ASTNode} left node that appears before the given `right` node. - * @param {ASTNode} right node that appears after the given `left` node. - * @returns {number} number of lines between nodes. - */ - function getNumberOfLinesBetween(left, right) { - return Math.max(right.loc.start.line - left.loc.end.line - 1, 0); - } - - return { - ImportDeclaration(node) { - if (!ignoreDeclarationSort) { - if ( - previousDeclaration && - allowSeparatedGroups && - getNumberOfLinesBetween(previousDeclaration, node) > 0 - ) { - - // reset declaration sort - previousDeclaration = null; - } - - if (previousDeclaration) { - const currentMemberSyntaxGroupIndex = getMemberParameterGroupIndex(node), - previousMemberSyntaxGroupIndex = getMemberParameterGroupIndex(previousDeclaration); - let currentLocalMemberName = getFirstLocalMemberName(node), - previousLocalMemberName = getFirstLocalMemberName(previousDeclaration); - - if (ignoreCase) { - previousLocalMemberName = previousLocalMemberName && previousLocalMemberName.toLowerCase(); - currentLocalMemberName = currentLocalMemberName && currentLocalMemberName.toLowerCase(); - } - - /* - * When the current declaration uses a different member syntax, - * then check if the ordering is correct. - * Otherwise, make a default string compare (like rule sort-vars to be consistent) of the first used local member name. - */ - if (currentMemberSyntaxGroupIndex !== previousMemberSyntaxGroupIndex) { - if (currentMemberSyntaxGroupIndex < previousMemberSyntaxGroupIndex) { - context.report({ - node, - messageId: "unexpectedSyntaxOrder", - data: { - syntaxA: memberSyntaxSortOrder[currentMemberSyntaxGroupIndex], - syntaxB: memberSyntaxSortOrder[previousMemberSyntaxGroupIndex] - } - }); - } - } else { - if (previousLocalMemberName && - currentLocalMemberName && - currentLocalMemberName < previousLocalMemberName - ) { - context.report({ - node, - messageId: "sortImportsAlphabetically" - }); - } - } - } - - previousDeclaration = node; - } - - if (!ignoreMemberSort) { - const importSpecifiers = node.specifiers.filter(specifier => specifier.type === "ImportSpecifier"); - const getSortableName = ignoreCase ? specifier => specifier.local.name.toLowerCase() : specifier => specifier.local.name; - const firstUnsortedIndex = importSpecifiers.map(getSortableName).findIndex((name, index, array) => array[index - 1] > name); - - if (firstUnsortedIndex !== -1) { - context.report({ - node: importSpecifiers[firstUnsortedIndex], - messageId: "sortMembersAlphabetically", - data: { memberName: importSpecifiers[firstUnsortedIndex].local.name }, - fix(fixer) { - if (importSpecifiers.some(specifier => - sourceCode.getCommentsBefore(specifier).length || sourceCode.getCommentsAfter(specifier).length)) { - - // If there are comments in the ImportSpecifier list, don't rearrange the specifiers. - return null; - } - - return fixer.replaceTextRange( - [importSpecifiers[0].range[0], importSpecifiers.at(-1).range[1]], - importSpecifiers - - // Clone the importSpecifiers array to avoid mutating it - .slice() - - // Sort the array into the desired order - .sort((specifierA, specifierB) => { - const aName = getSortableName(specifierA); - const bName = getSortableName(specifierB); - - return aName > bName ? 1 : -1; - }) - - // Build a string out of the sorted list of import specifiers and the text between the originals - .reduce((sourceText, specifier, index) => { - const textAfterSpecifier = index === importSpecifiers.length - 1 - ? "" - : sourceCode.getText().slice(importSpecifiers[index].range[1], importSpecifiers[index + 1].range[0]); - - return sourceText + sourceCode.getText(specifier) + textAfterSpecifier; - }, "") - ); - } - }); - } - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/sort-keys.js b/graphql/node_modules/eslint/lib/rules/sort-keys.js deleted file mode 100644 index e355e8af..00000000 --- a/graphql/node_modules/eslint/lib/rules/sort-keys.js +++ /dev/null @@ -1,230 +0,0 @@ -/** - * @fileoverview Rule to require object keys to be sorted - * @author Toru Nagashima - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"), - naturalCompare = require("natural-compare"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Gets the property name of the given `Property` node. - * - * - If the property's key is an `Identifier` node, this returns the key's name - * whether it's a computed property or not. - * - If the property has a static name, this returns the static name. - * - Otherwise, this returns null. - * @param {ASTNode} node The `Property` node to get. - * @returns {string|null} The property name or null. - * @private - */ -function getPropertyName(node) { - const staticName = astUtils.getStaticPropertyName(node); - - if (staticName !== null) { - return staticName; - } - - return node.key.name || null; -} - -/** - * Functions which check that the given 2 names are in specific order. - * - * Postfix `I` is meant insensitive. - * Postfix `N` is meant natural. - * @private - */ -const isValidOrders = { - asc(a, b) { - return a <= b; - }, - ascI(a, b) { - return a.toLowerCase() <= b.toLowerCase(); - }, - ascN(a, b) { - return naturalCompare(a, b) <= 0; - }, - ascIN(a, b) { - return naturalCompare(a.toLowerCase(), b.toLowerCase()) <= 0; - }, - desc(a, b) { - return isValidOrders.asc(b, a); - }, - descI(a, b) { - return isValidOrders.ascI(b, a); - }, - descN(a, b) { - return isValidOrders.ascN(b, a); - }, - descIN(a, b) { - return isValidOrders.ascIN(b, a); - } -}; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require object keys to be sorted", - recommended: false, - url: "https://eslint.org/docs/latest/rules/sort-keys" - }, - - schema: [ - { - enum: ["asc", "desc"] - }, - { - type: "object", - properties: { - caseSensitive: { - type: "boolean", - default: true - }, - natural: { - type: "boolean", - default: false - }, - minKeys: { - type: "integer", - minimum: 2, - default: 2 - }, - allowLineSeparatedGroups: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - sortKeys: "Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'." - } - }, - - create(context) { - - // Parse options. - const order = context.options[0] || "asc"; - const options = context.options[1]; - const insensitive = options && options.caseSensitive === false; - const natural = options && options.natural; - const minKeys = options && options.minKeys; - const allowLineSeparatedGroups = options && options.allowLineSeparatedGroups || false; - const isValidOrder = isValidOrders[ - order + (insensitive ? "I" : "") + (natural ? "N" : "") - ]; - - // The stack to save the previous property's name for each object literals. - let stack = null; - const sourceCode = context.sourceCode; - - return { - ObjectExpression(node) { - stack = { - upper: stack, - prevNode: null, - prevBlankLine: false, - prevName: null, - numKeys: node.properties.length - }; - }, - - "ObjectExpression:exit"() { - stack = stack.upper; - }, - - SpreadElement(node) { - if (node.parent.type === "ObjectExpression") { - stack.prevName = null; - } - }, - - Property(node) { - if (node.parent.type === "ObjectPattern") { - return; - } - - const prevName = stack.prevName; - const numKeys = stack.numKeys; - const thisName = getPropertyName(node); - - // Get tokens between current node and previous node - const tokens = stack.prevNode && sourceCode - .getTokensBetween(stack.prevNode, node, { includeComments: true }); - - let isBlankLineBetweenNodes = stack.prevBlankLine; - - if (tokens) { - - // check blank line between tokens - tokens.forEach((token, index) => { - const previousToken = tokens[index - 1]; - - if (previousToken && (token.loc.start.line - previousToken.loc.end.line > 1)) { - isBlankLineBetweenNodes = true; - } - }); - - // check blank line between the current node and the last token - if (!isBlankLineBetweenNodes && (node.loc.start.line - tokens.at(-1).loc.end.line > 1)) { - isBlankLineBetweenNodes = true; - } - - // check blank line between the first token and the previous node - if (!isBlankLineBetweenNodes && (tokens[0].loc.start.line - stack.prevNode.loc.end.line > 1)) { - isBlankLineBetweenNodes = true; - } - } - - stack.prevNode = node; - - if (thisName !== null) { - stack.prevName = thisName; - } - - if (allowLineSeparatedGroups && isBlankLineBetweenNodes) { - stack.prevBlankLine = thisName === null; - return; - } - - if (prevName === null || thisName === null || numKeys < minKeys) { - return; - } - - if (!isValidOrder(prevName, thisName)) { - context.report({ - node, - loc: node.key.loc, - messageId: "sortKeys", - data: { - thisName, - prevName, - order, - insensitive: insensitive ? "insensitive " : "", - natural: natural ? "natural " : "" - } - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/sort-vars.js b/graphql/node_modules/eslint/lib/rules/sort-vars.js deleted file mode 100644 index 21bfb88e..00000000 --- a/graphql/node_modules/eslint/lib/rules/sort-vars.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @fileoverview Rule to require sorting of variables within a single Variable Declaration block - * @author Ilya Volodin - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require variables within the same declaration block to be sorted", - recommended: false, - url: "https://eslint.org/docs/latest/rules/sort-vars" - }, - - schema: [ - { - type: "object", - properties: { - ignoreCase: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "code", - - messages: { - sortVars: "Variables within the same declaration block should be sorted alphabetically." - } - }, - - create(context) { - - const configuration = context.options[0] || {}, - ignoreCase = configuration.ignoreCase || false, - sourceCode = context.sourceCode; - - return { - VariableDeclaration(node) { - const idDeclarations = node.declarations.filter(decl => decl.id.type === "Identifier"); - const getSortableName = ignoreCase ? decl => decl.id.name.toLowerCase() : decl => decl.id.name; - const unfixable = idDeclarations.some(decl => decl.init !== null && decl.init.type !== "Literal"); - let fixed = false; - - idDeclarations.slice(1).reduce((memo, decl) => { - const lastVariableName = getSortableName(memo), - currentVariableName = getSortableName(decl); - - if (currentVariableName < lastVariableName) { - context.report({ - node: decl, - messageId: "sortVars", - fix(fixer) { - if (unfixable || fixed) { - return null; - } - return fixer.replaceTextRange( - [idDeclarations[0].range[0], idDeclarations.at(-1).range[1]], - idDeclarations - - // Clone the idDeclarations array to avoid mutating it - .slice() - - // Sort the array into the desired order - .sort((declA, declB) => { - const aName = getSortableName(declA); - const bName = getSortableName(declB); - - return aName > bName ? 1 : -1; - }) - - // Build a string out of the sorted list of identifier declarations and the text between the originals - .reduce((sourceText, identifier, index) => { - const textAfterIdentifier = index === idDeclarations.length - 1 - ? "" - : sourceCode.getText().slice(idDeclarations[index].range[1], idDeclarations[index + 1].range[0]); - - return sourceText + sourceCode.getText(identifier) + textAfterIdentifier; - }, "") - - ); - } - }); - fixed = true; - return memo; - } - return decl; - - }, idDeclarations[0]); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/space-before-blocks.js b/graphql/node_modules/eslint/lib/rules/space-before-blocks.js deleted file mode 100644 index a4a5449e..00000000 --- a/graphql/node_modules/eslint/lib/rules/space-before-blocks.js +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @fileoverview A rule to ensure whitespace before blocks. - * @author Mathias Schreck - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Checks whether the given node represents the body of a function. - * @param {ASTNode} node the node to check. - * @returns {boolean} `true` if the node is function body. - */ -function isFunctionBody(node) { - const parent = node.parent; - - return ( - node.type === "BlockStatement" && - astUtils.isFunction(parent) && - parent.body === node - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before blocks", - recommended: false, - url: "https://eslint.org/docs/latest/rules/space-before-blocks" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - keywords: { - enum: ["always", "never", "off"] - }, - functions: { - enum: ["always", "never", "off"] - }, - classes: { - enum: ["always", "never", "off"] - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - unexpectedSpace: "Unexpected space before opening brace.", - missingSpace: "Missing space before opening brace." - } - }, - - create(context) { - const config = context.options[0], - sourceCode = context.sourceCode; - let alwaysFunctions = true, - alwaysKeywords = true, - alwaysClasses = true, - neverFunctions = false, - neverKeywords = false, - neverClasses = false; - - if (typeof config === "object") { - alwaysFunctions = config.functions === "always"; - alwaysKeywords = config.keywords === "always"; - alwaysClasses = config.classes === "always"; - neverFunctions = config.functions === "never"; - neverKeywords = config.keywords === "never"; - neverClasses = config.classes === "never"; - } else if (config === "never") { - alwaysFunctions = false; - alwaysKeywords = false; - alwaysClasses = false; - neverFunctions = true; - neverKeywords = true; - neverClasses = true; - } - - /** - * Checks whether the spacing before the given block is already controlled by another rule: - * - `arrow-spacing` checks spaces after `=>`. - * - `keyword-spacing` checks spaces after keywords in certain contexts. - * - `switch-colon-spacing` checks spaces after `:` of switch cases. - * @param {Token} precedingToken first token before the block. - * @param {ASTNode|Token} node `BlockStatement` node or `{` token of a `SwitchStatement` node. - * @returns {boolean} `true` if requiring or disallowing spaces before the given block could produce conflicts with other rules. - */ - function isConflicted(precedingToken, node) { - return ( - astUtils.isArrowToken(precedingToken) || - ( - astUtils.isKeywordToken(precedingToken) && - !isFunctionBody(node) - ) || - ( - astUtils.isColonToken(precedingToken) && - node.parent && - node.parent.type === "SwitchCase" && - precedingToken === astUtils.getSwitchCaseColonToken(node.parent, sourceCode) - ) - ); - } - - /** - * Checks the given BlockStatement node has a preceding space if it doesn’t start on a new line. - * @param {ASTNode|Token} node The AST node of a BlockStatement. - * @returns {void} undefined. - */ - function checkPrecedingSpace(node) { - const precedingToken = sourceCode.getTokenBefore(node); - - if (precedingToken && !isConflicted(precedingToken, node) && astUtils.isTokenOnSameLine(precedingToken, node)) { - const hasSpace = sourceCode.isSpaceBetweenTokens(precedingToken, node); - let requireSpace; - let requireNoSpace; - - if (isFunctionBody(node)) { - requireSpace = alwaysFunctions; - requireNoSpace = neverFunctions; - } else if (node.type === "ClassBody") { - requireSpace = alwaysClasses; - requireNoSpace = neverClasses; - } else { - requireSpace = alwaysKeywords; - requireNoSpace = neverKeywords; - } - - if (requireSpace && !hasSpace) { - context.report({ - node, - messageId: "missingSpace", - fix(fixer) { - return fixer.insertTextBefore(node, " "); - } - }); - } else if (requireNoSpace && hasSpace) { - context.report({ - node, - messageId: "unexpectedSpace", - fix(fixer) { - return fixer.removeRange([precedingToken.range[1], node.range[0]]); - } - }); - } - } - } - - /** - * Checks if the CaseBlock of an given SwitchStatement node has a preceding space. - * @param {ASTNode} node The node of a SwitchStatement. - * @returns {void} undefined. - */ - function checkSpaceBeforeCaseBlock(node) { - const cases = node.cases; - let openingBrace; - - if (cases.length > 0) { - openingBrace = sourceCode.getTokenBefore(cases[0]); - } else { - openingBrace = sourceCode.getLastToken(node, 1); - } - - checkPrecedingSpace(openingBrace); - } - - return { - BlockStatement: checkPrecedingSpace, - ClassBody: checkPrecedingSpace, - SwitchStatement: checkSpaceBeforeCaseBlock - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/space-before-function-paren.js b/graphql/node_modules/eslint/lib/rules/space-before-function-paren.js deleted file mode 100644 index 575a1597..00000000 --- a/graphql/node_modules/eslint/lib/rules/space-before-function-paren.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * @fileoverview Rule to validate spacing before function paren. - * @author Mathias Schreck - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before `function` definition opening parenthesis", - recommended: false, - url: "https://eslint.org/docs/latest/rules/space-before-function-paren" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - anonymous: { - enum: ["always", "never", "ignore"] - }, - named: { - enum: ["always", "never", "ignore"] - }, - asyncArrow: { - enum: ["always", "never", "ignore"] - } - }, - additionalProperties: false - } - ] - } - ], - - messages: { - unexpectedSpace: "Unexpected space before function parentheses.", - missingSpace: "Missing space before function parentheses." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const baseConfig = typeof context.options[0] === "string" ? context.options[0] : "always"; - const overrideConfig = typeof context.options[0] === "object" ? context.options[0] : {}; - - /** - * Determines whether a function has a name. - * @param {ASTNode} node The function node. - * @returns {boolean} Whether the function has a name. - */ - function isNamedFunction(node) { - if (node.id) { - return true; - } - - const parent = node.parent; - - return parent.type === "MethodDefinition" || - (parent.type === "Property" && - ( - parent.kind === "get" || - parent.kind === "set" || - parent.method - ) - ); - } - - /** - * Gets the config for a given function - * @param {ASTNode} node The function node - * @returns {string} "always", "never", or "ignore" - */ - function getConfigForFunction(node) { - if (node.type === "ArrowFunctionExpression") { - - // Always ignore non-async functions and arrow functions without parens, e.g. async foo => bar - if (node.async && astUtils.isOpeningParenToken(sourceCode.getFirstToken(node, { skip: 1 }))) { - return overrideConfig.asyncArrow || baseConfig; - } - } else if (isNamedFunction(node)) { - return overrideConfig.named || baseConfig; - - // `generator-star-spacing` should warn anonymous generators. E.g. `function* () {}` - } else if (!node.generator) { - return overrideConfig.anonymous || baseConfig; - } - - return "ignore"; - } - - /** - * Checks the parens of a function node - * @param {ASTNode} node A function node - * @returns {void} - */ - function checkFunction(node) { - const functionConfig = getConfigForFunction(node); - - if (functionConfig === "ignore") { - return; - } - - const rightToken = sourceCode.getFirstToken(node, astUtils.isOpeningParenToken); - const leftToken = sourceCode.getTokenBefore(rightToken); - const hasSpacing = sourceCode.isSpaceBetweenTokens(leftToken, rightToken); - - if (hasSpacing && functionConfig === "never") { - context.report({ - node, - loc: { - start: leftToken.loc.end, - end: rightToken.loc.start - }, - messageId: "unexpectedSpace", - fix(fixer) { - const comments = sourceCode.getCommentsBefore(rightToken); - - // Don't fix anything if there's a single line comment between the left and the right token - if (comments.some(comment => comment.type === "Line")) { - return null; - } - return fixer.replaceTextRange( - [leftToken.range[1], rightToken.range[0]], - comments.reduce((text, comment) => text + sourceCode.getText(comment), "") - ); - } - }); - } else if (!hasSpacing && functionConfig === "always") { - context.report({ - node, - loc: rightToken.loc, - messageId: "missingSpace", - fix: fixer => fixer.insertTextAfter(leftToken, " ") - }); - } - } - - return { - ArrowFunctionExpression: checkFunction, - FunctionDeclaration: checkFunction, - FunctionExpression: checkFunction - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/space-in-parens.js b/graphql/node_modules/eslint/lib/rules/space-in-parens.js deleted file mode 100644 index d15a6431..00000000 --- a/graphql/node_modules/eslint/lib/rules/space-in-parens.js +++ /dev/null @@ -1,285 +0,0 @@ -/** - * @fileoverview Disallows or enforces spaces inside of parentheses. - * @author Jonathan Rajavuori - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing inside parentheses", - recommended: false, - url: "https://eslint.org/docs/latest/rules/space-in-parens" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - enum: ["{}", "[]", "()", "empty"] - }, - uniqueItems: true - } - }, - additionalProperties: false - } - ], - - messages: { - missingOpeningSpace: "There must be a space after this paren.", - missingClosingSpace: "There must be a space before this paren.", - rejectedOpeningSpace: "There should be no space after this paren.", - rejectedClosingSpace: "There should be no space before this paren." - } - }, - - create(context) { - const ALWAYS = context.options[0] === "always", - exceptionsArrayOptions = (context.options[1] && context.options[1].exceptions) || [], - options = {}; - - let exceptions; - - if (exceptionsArrayOptions.length) { - options.braceException = exceptionsArrayOptions.includes("{}"); - options.bracketException = exceptionsArrayOptions.includes("[]"); - options.parenException = exceptionsArrayOptions.includes("()"); - options.empty = exceptionsArrayOptions.includes("empty"); - } - - /** - * Produces an object with the opener and closer exception values - * @returns {Object} `openers` and `closers` exception values - * @private - */ - function getExceptions() { - const openers = [], - closers = []; - - if (options.braceException) { - openers.push("{"); - closers.push("}"); - } - - if (options.bracketException) { - openers.push("["); - closers.push("]"); - } - - if (options.parenException) { - openers.push("("); - closers.push(")"); - } - - if (options.empty) { - openers.push(")"); - closers.push("("); - } - - return { - openers, - closers - }; - } - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - const sourceCode = context.sourceCode; - - /** - * Determines if a token is one of the exceptions for the opener paren - * @param {Object} token The token to check - * @returns {boolean} True if the token is one of the exceptions for the opener paren - */ - function isOpenerException(token) { - return exceptions.openers.includes(token.value); - } - - /** - * Determines if a token is one of the exceptions for the closer paren - * @param {Object} token The token to check - * @returns {boolean} True if the token is one of the exceptions for the closer paren - */ - function isCloserException(token) { - return exceptions.closers.includes(token.value); - } - - /** - * Determines if an opening paren is immediately followed by a required space - * @param {Object} openingParenToken The paren token - * @param {Object} tokenAfterOpeningParen The token after it - * @returns {boolean} True if the opening paren is missing a required space - */ - function openerMissingSpace(openingParenToken, tokenAfterOpeningParen) { - if (sourceCode.isSpaceBetweenTokens(openingParenToken, tokenAfterOpeningParen)) { - return false; - } - - if (!options.empty && astUtils.isClosingParenToken(tokenAfterOpeningParen)) { - return false; - } - - if (ALWAYS) { - return !isOpenerException(tokenAfterOpeningParen); - } - return isOpenerException(tokenAfterOpeningParen); - } - - /** - * Determines if an opening paren is immediately followed by a disallowed space - * @param {Object} openingParenToken The paren token - * @param {Object} tokenAfterOpeningParen The token after it - * @returns {boolean} True if the opening paren has a disallowed space - */ - function openerRejectsSpace(openingParenToken, tokenAfterOpeningParen) { - if (!astUtils.isTokenOnSameLine(openingParenToken, tokenAfterOpeningParen)) { - return false; - } - - if (tokenAfterOpeningParen.type === "Line") { - return false; - } - - if (!sourceCode.isSpaceBetweenTokens(openingParenToken, tokenAfterOpeningParen)) { - return false; - } - - if (ALWAYS) { - return isOpenerException(tokenAfterOpeningParen); - } - return !isOpenerException(tokenAfterOpeningParen); - } - - /** - * Determines if a closing paren is immediately preceded by a required space - * @param {Object} tokenBeforeClosingParen The token before the paren - * @param {Object} closingParenToken The paren token - * @returns {boolean} True if the closing paren is missing a required space - */ - function closerMissingSpace(tokenBeforeClosingParen, closingParenToken) { - if (sourceCode.isSpaceBetweenTokens(tokenBeforeClosingParen, closingParenToken)) { - return false; - } - - if (!options.empty && astUtils.isOpeningParenToken(tokenBeforeClosingParen)) { - return false; - } - - if (ALWAYS) { - return !isCloserException(tokenBeforeClosingParen); - } - return isCloserException(tokenBeforeClosingParen); - } - - /** - * Determines if a closer paren is immediately preceded by a disallowed space - * @param {Object} tokenBeforeClosingParen The token before the paren - * @param {Object} closingParenToken The paren token - * @returns {boolean} True if the closing paren has a disallowed space - */ - function closerRejectsSpace(tokenBeforeClosingParen, closingParenToken) { - if (!astUtils.isTokenOnSameLine(tokenBeforeClosingParen, closingParenToken)) { - return false; - } - - if (!sourceCode.isSpaceBetweenTokens(tokenBeforeClosingParen, closingParenToken)) { - return false; - } - - if (ALWAYS) { - return isCloserException(tokenBeforeClosingParen); - } - return !isCloserException(tokenBeforeClosingParen); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - Program: function checkParenSpaces(node) { - exceptions = getExceptions(); - const tokens = sourceCode.tokensAndComments; - - tokens.forEach((token, i) => { - const prevToken = tokens[i - 1]; - const nextToken = tokens[i + 1]; - - // if token is not an opening or closing paren token, do nothing - if (!astUtils.isOpeningParenToken(token) && !astUtils.isClosingParenToken(token)) { - return; - } - - // if token is an opening paren and is not followed by a required space - if (token.value === "(" && openerMissingSpace(token, nextToken)) { - context.report({ - node, - loc: token.loc, - messageId: "missingOpeningSpace", - fix(fixer) { - return fixer.insertTextAfter(token, " "); - } - }); - } - - // if token is an opening paren and is followed by a disallowed space - if (token.value === "(" && openerRejectsSpace(token, nextToken)) { - context.report({ - node, - loc: { start: token.loc.end, end: nextToken.loc.start }, - messageId: "rejectedOpeningSpace", - fix(fixer) { - return fixer.removeRange([token.range[1], nextToken.range[0]]); - } - }); - } - - // if token is a closing paren and is not preceded by a required space - if (token.value === ")" && closerMissingSpace(prevToken, token)) { - context.report({ - node, - loc: token.loc, - messageId: "missingClosingSpace", - fix(fixer) { - return fixer.insertTextBefore(token, " "); - } - }); - } - - // if token is a closing paren and is preceded by a disallowed space - if (token.value === ")" && closerRejectsSpace(prevToken, token)) { - context.report({ - node, - loc: { start: prevToken.loc.end, end: token.loc.start }, - messageId: "rejectedClosingSpace", - fix(fixer) { - return fixer.removeRange([prevToken.range[1], token.range[0]]); - } - }); - } - }); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/space-infix-ops.js b/graphql/node_modules/eslint/lib/rules/space-infix-ops.js deleted file mode 100644 index 40071019..00000000 --- a/graphql/node_modules/eslint/lib/rules/space-infix-ops.js +++ /dev/null @@ -1,198 +0,0 @@ -/** - * @fileoverview Require spaces around infix operators - * @author Michael Ficarra - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const { isEqToken } = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require spacing around infix operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/space-infix-ops" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - int32Hint: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - missingSpace: "Operator '{{operator}}' must be spaced." - } - }, - - create(context) { - const int32Hint = context.options[0] ? context.options[0].int32Hint === true : false; - const sourceCode = context.sourceCode; - - /** - * Returns the first token which violates the rule - * @param {ASTNode} left The left node of the main node - * @param {ASTNode} right The right node of the main node - * @param {string} op The operator of the main node - * @returns {Object} The violator token or null - * @private - */ - function getFirstNonSpacedToken(left, right, op) { - const operator = sourceCode.getFirstTokenBetween(left, right, token => token.value === op); - const prev = sourceCode.getTokenBefore(operator); - const next = sourceCode.getTokenAfter(operator); - - if (!sourceCode.isSpaceBetweenTokens(prev, operator) || !sourceCode.isSpaceBetweenTokens(operator, next)) { - return operator; - } - - return null; - } - - /** - * Reports an AST node as a rule violation - * @param {ASTNode} mainNode The node to report - * @param {Object} culpritToken The token which has a problem - * @returns {void} - * @private - */ - function report(mainNode, culpritToken) { - context.report({ - node: mainNode, - loc: culpritToken.loc, - messageId: "missingSpace", - data: { - operator: culpritToken.value - }, - fix(fixer) { - const previousToken = sourceCode.getTokenBefore(culpritToken); - const afterToken = sourceCode.getTokenAfter(culpritToken); - let fixString = ""; - - if (culpritToken.range[0] - previousToken.range[1] === 0) { - fixString = " "; - } - - fixString += culpritToken.value; - - if (afterToken.range[0] - culpritToken.range[1] === 0) { - fixString += " "; - } - - return fixer.replaceText(culpritToken, fixString); - } - }); - } - - /** - * Check if the node is binary then report - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkBinary(node) { - const leftNode = (node.left.typeAnnotation) ? node.left.typeAnnotation : node.left; - const rightNode = node.right; - - // search for = in AssignmentPattern nodes - const operator = node.operator || "="; - - const nonSpacedNode = getFirstNonSpacedToken(leftNode, rightNode, operator); - - if (nonSpacedNode) { - if (!(int32Hint && sourceCode.getText(node).endsWith("|0"))) { - report(node, nonSpacedNode); - } - } - } - - /** - * Check if the node is conditional - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkConditional(node) { - const nonSpacedConsequentNode = getFirstNonSpacedToken(node.test, node.consequent, "?"); - const nonSpacedAlternateNode = getFirstNonSpacedToken(node.consequent, node.alternate, ":"); - - if (nonSpacedConsequentNode) { - report(node, nonSpacedConsequentNode); - } - - if (nonSpacedAlternateNode) { - report(node, nonSpacedAlternateNode); - } - } - - /** - * Check if the node is a variable - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkVar(node) { - const leftNode = (node.id.typeAnnotation) ? node.id.typeAnnotation : node.id; - const rightNode = node.init; - - if (rightNode) { - const nonSpacedNode = getFirstNonSpacedToken(leftNode, rightNode, "="); - - if (nonSpacedNode) { - report(node, nonSpacedNode); - } - } - } - - return { - AssignmentExpression: checkBinary, - AssignmentPattern: checkBinary, - BinaryExpression: checkBinary, - LogicalExpression: checkBinary, - ConditionalExpression: checkConditional, - VariableDeclarator: checkVar, - - PropertyDefinition(node) { - if (!node.value) { - return; - } - - /* - * Because of computed properties and type annotations, some - * tokens may exist between `node.key` and `=`. - * Therefore, find the `=` from the right. - */ - const operatorToken = sourceCode.getTokenBefore(node.value, isEqToken); - const leftToken = sourceCode.getTokenBefore(operatorToken); - const rightToken = sourceCode.getTokenAfter(operatorToken); - - if ( - !sourceCode.isSpaceBetweenTokens(leftToken, operatorToken) || - !sourceCode.isSpaceBetweenTokens(operatorToken, rightToken) - ) { - report(node, operatorToken); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/space-unary-ops.js b/graphql/node_modules/eslint/lib/rules/space-unary-ops.js deleted file mode 100644 index ab6c3cb6..00000000 --- a/graphql/node_modules/eslint/lib/rules/space-unary-ops.js +++ /dev/null @@ -1,324 +0,0 @@ -/** - * @fileoverview This rule should require or disallow spaces before or after unary operations. - * @author Marcin Kumorek - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce consistent spacing before or after unary operators", - recommended: false, - url: "https://eslint.org/docs/latest/rules/space-unary-ops" - }, - - fixable: "whitespace", - - schema: [ - { - type: "object", - properties: { - words: { - type: "boolean", - default: true - }, - nonwords: { - type: "boolean", - default: false - }, - overrides: { - type: "object", - additionalProperties: { - type: "boolean" - } - } - }, - additionalProperties: false - } - ], - messages: { - unexpectedBefore: "Unexpected space before unary operator '{{operator}}'.", - unexpectedAfter: "Unexpected space after unary operator '{{operator}}'.", - unexpectedAfterWord: "Unexpected space after unary word operator '{{word}}'.", - wordOperator: "Unary word operator '{{word}}' must be followed by whitespace.", - operator: "Unary operator '{{operator}}' must be followed by whitespace.", - beforeUnaryExpressions: "Space is required before unary expressions '{{token}}'." - } - }, - - create(context) { - const options = context.options[0] || { words: true, nonwords: false }; - - const sourceCode = context.sourceCode; - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Check if the node is the first "!" in a "!!" convert to Boolean expression - * @param {ASTnode} node AST node - * @returns {boolean} Whether or not the node is first "!" in "!!" - */ - function isFirstBangInBangBangExpression(node) { - return node && node.type === "UnaryExpression" && node.argument.operator === "!" && - node.argument && node.argument.type === "UnaryExpression" && node.argument.operator === "!"; - } - - /** - * Checks if an override exists for a given operator. - * @param {string} operator Operator - * @returns {boolean} Whether or not an override has been provided for the operator - */ - function overrideExistsForOperator(operator) { - return options.overrides && Object.hasOwn(options.overrides, operator); - } - - /** - * Gets the value that the override was set to for this operator - * @param {string} operator Operator - * @returns {boolean} Whether or not an override enforces a space with this operator - */ - function overrideEnforcesSpaces(operator) { - return options.overrides[operator]; - } - - /** - * Verify Unary Word Operator has spaces after the word operator - * @param {ASTnode} node AST node - * @param {Object} firstToken first token from the AST node - * @param {Object} secondToken second token from the AST node - * @param {string} word The word to be used for reporting - * @returns {void} - */ - function verifyWordHasSpaces(node, firstToken, secondToken, word) { - if (secondToken.range[0] === firstToken.range[1]) { - context.report({ - node, - messageId: "wordOperator", - data: { - word - }, - fix(fixer) { - return fixer.insertTextAfter(firstToken, " "); - } - }); - } - } - - /** - * Verify Unary Word Operator doesn't have spaces after the word operator - * @param {ASTnode} node AST node - * @param {Object} firstToken first token from the AST node - * @param {Object} secondToken second token from the AST node - * @param {string} word The word to be used for reporting - * @returns {void} - */ - function verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word) { - if (astUtils.canTokensBeAdjacent(firstToken, secondToken)) { - if (secondToken.range[0] > firstToken.range[1]) { - context.report({ - node, - messageId: "unexpectedAfterWord", - data: { - word - }, - fix(fixer) { - return fixer.removeRange([firstToken.range[1], secondToken.range[0]]); - } - }); - } - } - } - - /** - * Check Unary Word Operators for spaces after the word operator - * @param {ASTnode} node AST node - * @param {Object} firstToken first token from the AST node - * @param {Object} secondToken second token from the AST node - * @param {string} word The word to be used for reporting - * @returns {void} - */ - function checkUnaryWordOperatorForSpaces(node, firstToken, secondToken, word) { - if (overrideExistsForOperator(word)) { - if (overrideEnforcesSpaces(word)) { - verifyWordHasSpaces(node, firstToken, secondToken, word); - } else { - verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word); - } - } else if (options.words) { - verifyWordHasSpaces(node, firstToken, secondToken, word); - } else { - verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word); - } - } - - /** - * Verifies YieldExpressions satisfy spacing requirements - * @param {ASTnode} node AST node - * @returns {void} - */ - function checkForSpacesAfterYield(node) { - const tokens = sourceCode.getFirstTokens(node, 3), - word = "yield"; - - if (!node.argument || node.delegate) { - return; - } - - checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], word); - } - - /** - * Verifies AwaitExpressions satisfy spacing requirements - * @param {ASTNode} node AwaitExpression AST node - * @returns {void} - */ - function checkForSpacesAfterAwait(node) { - const tokens = sourceCode.getFirstTokens(node, 3); - - checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], "await"); - } - - /** - * Verifies UnaryExpression, UpdateExpression and NewExpression have spaces before or after the operator - * @param {ASTnode} node AST node - * @param {Object} firstToken First token in the expression - * @param {Object} secondToken Second token in the expression - * @returns {void} - */ - function verifyNonWordsHaveSpaces(node, firstToken, secondToken) { - if (node.prefix) { - if (isFirstBangInBangBangExpression(node)) { - return; - } - if (firstToken.range[1] === secondToken.range[0]) { - context.report({ - node, - messageId: "operator", - data: { - operator: firstToken.value - }, - fix(fixer) { - return fixer.insertTextAfter(firstToken, " "); - } - }); - } - } else { - if (firstToken.range[1] === secondToken.range[0]) { - context.report({ - node, - messageId: "beforeUnaryExpressions", - data: { - token: secondToken.value - }, - fix(fixer) { - return fixer.insertTextBefore(secondToken, " "); - } - }); - } - } - } - - /** - * Verifies UnaryExpression, UpdateExpression and NewExpression don't have spaces before or after the operator - * @param {ASTnode} node AST node - * @param {Object} firstToken First token in the expression - * @param {Object} secondToken Second token in the expression - * @returns {void} - */ - function verifyNonWordsDontHaveSpaces(node, firstToken, secondToken) { - if (node.prefix) { - if (secondToken.range[0] > firstToken.range[1]) { - context.report({ - node, - messageId: "unexpectedAfter", - data: { - operator: firstToken.value - }, - fix(fixer) { - if (astUtils.canTokensBeAdjacent(firstToken, secondToken)) { - return fixer.removeRange([firstToken.range[1], secondToken.range[0]]); - } - return null; - } - }); - } - } else { - if (secondToken.range[0] > firstToken.range[1]) { - context.report({ - node, - messageId: "unexpectedBefore", - data: { - operator: secondToken.value - }, - fix(fixer) { - return fixer.removeRange([firstToken.range[1], secondToken.range[0]]); - } - }); - } - } - } - - /** - * Verifies UnaryExpression, UpdateExpression and NewExpression satisfy spacing requirements - * @param {ASTnode} node AST node - * @returns {void} - */ - function checkForSpaces(node) { - const tokens = node.type === "UpdateExpression" && !node.prefix - ? sourceCode.getLastTokens(node, 2) - : sourceCode.getFirstTokens(node, 2); - const firstToken = tokens[0]; - const secondToken = tokens[1]; - - if ((node.type === "NewExpression" || node.prefix) && firstToken.type === "Keyword") { - checkUnaryWordOperatorForSpaces(node, firstToken, secondToken, firstToken.value); - return; - } - - const operator = node.prefix ? tokens[0].value : tokens[1].value; - - if (overrideExistsForOperator(operator)) { - if (overrideEnforcesSpaces(operator)) { - verifyNonWordsHaveSpaces(node, firstToken, secondToken); - } else { - verifyNonWordsDontHaveSpaces(node, firstToken, secondToken); - } - } else if (options.nonwords) { - verifyNonWordsHaveSpaces(node, firstToken, secondToken); - } else { - verifyNonWordsDontHaveSpaces(node, firstToken, secondToken); - } - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - UnaryExpression: checkForSpaces, - UpdateExpression: checkForSpaces, - NewExpression: checkForSpaces, - YieldExpression: checkForSpacesAfterYield, - AwaitExpression: checkForSpacesAfterAwait - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/spaced-comment.js b/graphql/node_modules/eslint/lib/rules/spaced-comment.js deleted file mode 100644 index 90ac7032..00000000 --- a/graphql/node_modules/eslint/lib/rules/spaced-comment.js +++ /dev/null @@ -1,385 +0,0 @@ -/** - * @fileoverview Source code for spaced-comments rule - * @author Gyandeep Singh - * @deprecated in ESLint v8.53.0 - */ -"use strict"; - -const escapeRegExp = require("escape-string-regexp"); -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Escapes the control characters of a given string. - * @param {string} s A string to escape. - * @returns {string} An escaped string. - */ -function escape(s) { - return `(?:${escapeRegExp(s)})`; -} - -/** - * Escapes the control characters of a given string. - * And adds a repeat flag. - * @param {string} s A string to escape. - * @returns {string} An escaped string. - */ -function escapeAndRepeat(s) { - return `${escape(s)}+`; -} - -/** - * Parses `markers` option. - * If markers don't include `"*"`, this adds `"*"` to allow JSDoc comments. - * @param {string[]} [markers] A marker list. - * @returns {string[]} A marker list. - */ -function parseMarkersOption(markers) { - - // `*` is a marker for JSDoc comments. - if (!markers.includes("*")) { - return markers.concat("*"); - } - - return markers; -} - -/** - * Creates string pattern for exceptions. - * Generated pattern: - * - * 1. A space or an exception pattern sequence. - * @param {string[]} exceptions An exception pattern list. - * @returns {string} A regular expression string for exceptions. - */ -function createExceptionsPattern(exceptions) { - let pattern = ""; - - /* - * A space or an exception pattern sequence. - * [] ==> "\s" - * ["-"] ==> "(?:\s|\-+$)" - * ["-", "="] ==> "(?:\s|(?:\-+|=+)$)" - * ["-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5Cs%7C(%3F%3A%5C-%2B%7C%3D%2B%7C(%3F%3A%5C-%5C-%3D%3D)%2B)%24) - */ - if (exceptions.length === 0) { - - // a space. - pattern += "\\s"; - } else { - - // a space or... - pattern += "(?:\\s|"; - - if (exceptions.length === 1) { - - // a sequence of the exception pattern. - pattern += escapeAndRepeat(exceptions[0]); - } else { - - // a sequence of one of the exception patterns. - pattern += "(?:"; - pattern += exceptions.map(escapeAndRepeat).join("|"); - pattern += ")"; - } - pattern += `(?:$|[${Array.from(astUtils.LINEBREAKS).join("")}]))`; - } - - return pattern; -} - -/** - * Creates RegExp object for `always` mode. - * Generated pattern for beginning of comment: - * - * 1. First, a marker or nothing. - * 2. Next, a space or an exception pattern sequence. - * @param {string[]} markers A marker list. - * @param {string[]} exceptions An exception pattern list. - * @returns {RegExp} A RegExp object for the beginning of a comment in `always` mode. - */ -function createAlwaysStylePattern(markers, exceptions) { - let pattern = "^"; - - /* - * A marker or nothing. - * ["*"] ==> "\*?" - * ["*", "!"] ==> "(?:\*|!)?" - * ["*", "/", "!<"] ==> "(?:\*|\/|(?:!<))?" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5C*%7C%5C%2F%7C(%3F%3A!%3C))%3F - */ - if (markers.length === 1) { - - // the marker. - pattern += escape(markers[0]); - } else { - - // one of markers. - pattern += "(?:"; - pattern += markers.map(escape).join("|"); - pattern += ")"; - } - - pattern += "?"; // or nothing. - pattern += createExceptionsPattern(exceptions); - - return new RegExp(pattern, "u"); -} - -/** - * Creates RegExp object for `never` mode. - * Generated pattern for beginning of comment: - * - * 1. First, a marker or nothing (captured). - * 2. Next, a space or a tab. - * @param {string[]} markers A marker list. - * @returns {RegExp} A RegExp object for `never` mode. - */ -function createNeverStylePattern(markers) { - const pattern = `^(${markers.map(escape).join("|")})?[ \t]+`; - - return new RegExp(pattern, "u"); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "suggestion", - - docs: { - description: "Enforce consistent spacing after the `//` or `/*` in a comment", - recommended: false, - url: "https://eslint.org/docs/latest/rules/spaced-comment" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - type: "string" - } - }, - markers: { - type: "array", - items: { - type: "string" - } - }, - line: { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - type: "string" - } - }, - markers: { - type: "array", - items: { - type: "string" - } - } - }, - additionalProperties: false - }, - block: { - type: "object", - properties: { - exceptions: { - type: "array", - items: { - type: "string" - } - }, - markers: { - type: "array", - items: { - type: "string" - } - }, - balanced: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - }, - additionalProperties: false - } - ], - - messages: { - unexpectedSpaceAfterMarker: "Unexpected space or tab after marker ({{refChar}}) in comment.", - expectedExceptionAfter: "Expected exception block, space or tab after '{{refChar}}' in comment.", - unexpectedSpaceBefore: "Unexpected space or tab before '*/' in comment.", - unexpectedSpaceAfter: "Unexpected space or tab after '{{refChar}}' in comment.", - expectedSpaceBefore: "Expected space or tab before '*/' in comment.", - expectedSpaceAfter: "Expected space or tab after '{{refChar}}' in comment." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - // Unless the first option is never, require a space - const requireSpace = context.options[0] !== "never"; - - /* - * Parse the second options. - * If markers don't include `"*"`, it's added automatically for JSDoc - * comments. - */ - const config = context.options[1] || {}; - const balanced = config.block && config.block.balanced; - - const styleRules = ["block", "line"].reduce((rule, type) => { - const markers = parseMarkersOption(config[type] && config[type].markers || config.markers || []); - const exceptions = config[type] && config[type].exceptions || config.exceptions || []; - const endNeverPattern = "[ \t]+$"; - - // Create RegExp object for valid patterns. - rule[type] = { - beginRegex: requireSpace ? createAlwaysStylePattern(markers, exceptions) : createNeverStylePattern(markers), - endRegex: balanced && requireSpace ? new RegExp(`${createExceptionsPattern(exceptions)}$`, "u") : new RegExp(endNeverPattern, "u"), - hasExceptions: exceptions.length > 0, - captureMarker: new RegExp(`^(${markers.map(escape).join("|")})`, "u"), - markers: new Set(markers) - }; - - return rule; - }, {}); - - /** - * Reports a beginning spacing error with an appropriate message. - * @param {ASTNode} node A comment node to check. - * @param {string} messageId An error message to report. - * @param {Array} match An array of match results for markers. - * @param {string} refChar Character used for reference in the error message. - * @returns {void} - */ - function reportBegin(node, messageId, match, refChar) { - const type = node.type.toLowerCase(), - commentIdentifier = type === "block" ? "/*" : "//"; - - context.report({ - node, - fix(fixer) { - const start = node.range[0]; - let end = start + 2; - - if (requireSpace) { - if (match) { - end += match[0].length; - } - return fixer.insertTextAfterRange([start, end], " "); - } - end += match[0].length; - return fixer.replaceTextRange([start, end], commentIdentifier + (match[1] ? match[1] : "")); - - }, - messageId, - data: { refChar } - }); - } - - /** - * Reports an ending spacing error with an appropriate message. - * @param {ASTNode} node A comment node to check. - * @param {string} messageId An error message to report. - * @param {string} match An array of the matched whitespace characters. - * @returns {void} - */ - function reportEnd(node, messageId, match) { - context.report({ - node, - fix(fixer) { - if (requireSpace) { - return fixer.insertTextAfterRange([node.range[0], node.range[1] - 2], " "); - } - const end = node.range[1] - 2, - start = end - match[0].length; - - return fixer.replaceTextRange([start, end], ""); - - }, - messageId - }); - } - - /** - * Reports a given comment if it's invalid. - * @param {ASTNode} node a comment node to check. - * @returns {void} - */ - function checkCommentForSpace(node) { - const type = node.type.toLowerCase(), - rule = styleRules[type], - commentIdentifier = type === "block" ? "/*" : "//"; - - // Ignores empty comments and comments that consist only of a marker. - if (node.value.length === 0 || rule.markers.has(node.value)) { - return; - } - - const beginMatch = rule.beginRegex.exec(node.value); - const endMatch = rule.endRegex.exec(node.value); - - // Checks. - if (requireSpace) { - if (!beginMatch) { - const hasMarker = rule.captureMarker.exec(node.value); - const marker = hasMarker ? commentIdentifier + hasMarker[0] : commentIdentifier; - - if (rule.hasExceptions) { - reportBegin(node, "expectedExceptionAfter", hasMarker, marker); - } else { - reportBegin(node, "expectedSpaceAfter", hasMarker, marker); - } - } - - if (balanced && type === "block" && !endMatch) { - reportEnd(node, "expectedSpaceBefore"); - } - } else { - if (beginMatch) { - if (!beginMatch[1]) { - reportBegin(node, "unexpectedSpaceAfter", beginMatch, commentIdentifier); - } else { - reportBegin(node, "unexpectedSpaceAfterMarker", beginMatch, beginMatch[1]); - } - } - - if (balanced && type === "block" && endMatch) { - reportEnd(node, "unexpectedSpaceBefore", endMatch); - } - } - } - - return { - Program() { - const comments = sourceCode.getAllComments(); - - comments.filter(token => token.type !== "Shebang").forEach(checkCommentForSpace); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/strict.js b/graphql/node_modules/eslint/lib/rules/strict.js deleted file mode 100644 index fd970f27..00000000 --- a/graphql/node_modules/eslint/lib/rules/strict.js +++ /dev/null @@ -1,277 +0,0 @@ -/** - * @fileoverview Rule to control usage of strict mode directives. - * @author Brandon Mills - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Gets all of the Use Strict Directives in the Directive Prologue of a group of - * statements. - * @param {ASTNode[]} statements Statements in the program or function body. - * @returns {ASTNode[]} All of the Use Strict Directives. - */ -function getUseStrictDirectives(statements) { - const directives = []; - - for (let i = 0; i < statements.length; i++) { - const statement = statements[i]; - - if ( - statement.type === "ExpressionStatement" && - statement.expression.type === "Literal" && - statement.expression.value === "use strict" - ) { - directives[i] = statement; - } else { - break; - } - } - - return directives; -} - -/** - * Checks whether a given parameter is a simple parameter. - * @param {ASTNode} node A pattern node to check. - * @returns {boolean} `true` if the node is an Identifier node. - */ -function isSimpleParameter(node) { - return node.type === "Identifier"; -} - -/** - * Checks whether a given parameter list is a simple parameter list. - * @param {ASTNode[]} params A parameter list to check. - * @returns {boolean} `true` if the every parameter is an Identifier node. - */ -function isSimpleParameterList(params) { - return params.every(isSimpleParameter); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require or disallow strict mode directives", - recommended: false, - url: "https://eslint.org/docs/latest/rules/strict" - }, - - schema: [ - { - enum: ["never", "global", "function", "safe"] - } - ], - - fixable: "code", - messages: { - function: "Use the function form of 'use strict'.", - global: "Use the global form of 'use strict'.", - multiple: "Multiple 'use strict' directives.", - never: "Strict mode is not permitted.", - unnecessary: "Unnecessary 'use strict' directive.", - module: "'use strict' is unnecessary inside of modules.", - implied: "'use strict' is unnecessary when implied strict mode is enabled.", - unnecessaryInClasses: "'use strict' is unnecessary inside of classes.", - nonSimpleParameterList: "'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.", - wrap: "Wrap {{name}} in a function with 'use strict' directive." - } - }, - - create(context) { - - const ecmaFeatures = context.parserOptions.ecmaFeatures || {}, - scopes = [], - classScopes = []; - let mode = context.options[0] || "safe"; - - if (ecmaFeatures.impliedStrict) { - mode = "implied"; - } else if (mode === "safe") { - mode = ecmaFeatures.globalReturn || context.languageOptions.sourceType === "commonjs" ? "global" : "function"; - } - - /** - * Determines whether a reported error should be fixed, depending on the error type. - * @param {string} errorType The type of error - * @returns {boolean} `true` if the reported error should be fixed - */ - function shouldFix(errorType) { - return errorType === "multiple" || errorType === "unnecessary" || errorType === "module" || errorType === "implied" || errorType === "unnecessaryInClasses"; - } - - /** - * Gets a fixer function to remove a given 'use strict' directive. - * @param {ASTNode} node The directive that should be removed - * @returns {Function} A fixer function - */ - function getFixFunction(node) { - return fixer => fixer.remove(node); - } - - /** - * Report a slice of an array of nodes with a given message. - * @param {ASTNode[]} nodes Nodes. - * @param {string} start Index to start from. - * @param {string} end Index to end before. - * @param {string} messageId Message to display. - * @param {boolean} fix `true` if the directive should be fixed (i.e. removed) - * @returns {void} - */ - function reportSlice(nodes, start, end, messageId, fix) { - nodes.slice(start, end).forEach(node => { - context.report({ node, messageId, fix: fix ? getFixFunction(node) : null }); - }); - } - - /** - * Report all nodes in an array with a given message. - * @param {ASTNode[]} nodes Nodes. - * @param {string} messageId Message id to display. - * @param {boolean} fix `true` if the directive should be fixed (i.e. removed) - * @returns {void} - */ - function reportAll(nodes, messageId, fix) { - reportSlice(nodes, 0, nodes.length, messageId, fix); - } - - /** - * Report all nodes in an array, except the first, with a given message. - * @param {ASTNode[]} nodes Nodes. - * @param {string} messageId Message id to display. - * @param {boolean} fix `true` if the directive should be fixed (i.e. removed) - * @returns {void} - */ - function reportAllExceptFirst(nodes, messageId, fix) { - reportSlice(nodes, 1, nodes.length, messageId, fix); - } - - /** - * Entering a function in 'function' mode pushes a new nested scope onto the - * stack. The new scope is true if the nested function is strict mode code. - * @param {ASTNode} node The function declaration or expression. - * @param {ASTNode[]} useStrictDirectives The Use Strict Directives of the node. - * @returns {void} - */ - function enterFunctionInFunctionMode(node, useStrictDirectives) { - const isInClass = classScopes.length > 0, - isParentGlobal = scopes.length === 0 && classScopes.length === 0, - isParentStrict = scopes.length > 0 && scopes.at(-1), - isStrict = useStrictDirectives.length > 0; - - if (isStrict) { - if (!isSimpleParameterList(node.params)) { - context.report({ node: useStrictDirectives[0], messageId: "nonSimpleParameterList" }); - } else if (isParentStrict) { - context.report({ node: useStrictDirectives[0], messageId: "unnecessary", fix: getFixFunction(useStrictDirectives[0]) }); - } else if (isInClass) { - context.report({ node: useStrictDirectives[0], messageId: "unnecessaryInClasses", fix: getFixFunction(useStrictDirectives[0]) }); - } - - reportAllExceptFirst(useStrictDirectives, "multiple", true); - } else if (isParentGlobal) { - if (isSimpleParameterList(node.params)) { - context.report({ node, messageId: "function" }); - } else { - context.report({ - node, - messageId: "wrap", - data: { name: astUtils.getFunctionNameWithKind(node) } - }); - } - } - - scopes.push(isParentStrict || isStrict); - } - - /** - * Exiting a function in 'function' mode pops its scope off the stack. - * @returns {void} - */ - function exitFunctionInFunctionMode() { - scopes.pop(); - } - - /** - * Enter a function and either: - * - Push a new nested scope onto the stack (in 'function' mode). - * - Report all the Use Strict Directives (in the other modes). - * @param {ASTNode} node The function declaration or expression. - * @returns {void} - */ - function enterFunction(node) { - const isBlock = node.body.type === "BlockStatement", - useStrictDirectives = isBlock - ? getUseStrictDirectives(node.body.body) : []; - - if (mode === "function") { - enterFunctionInFunctionMode(node, useStrictDirectives); - } else if (useStrictDirectives.length > 0) { - if (isSimpleParameterList(node.params)) { - reportAll(useStrictDirectives, mode, shouldFix(mode)); - } else { - context.report({ node: useStrictDirectives[0], messageId: "nonSimpleParameterList" }); - reportAllExceptFirst(useStrictDirectives, "multiple", true); - } - } - } - - const rule = { - Program(node) { - const useStrictDirectives = getUseStrictDirectives(node.body); - - if (node.sourceType === "module") { - mode = "module"; - } - - if (mode === "global") { - if (node.body.length > 0 && useStrictDirectives.length === 0) { - context.report({ node, messageId: "global" }); - } - reportAllExceptFirst(useStrictDirectives, "multiple", true); - } else { - reportAll(useStrictDirectives, mode, shouldFix(mode)); - } - }, - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction - }; - - if (mode === "function") { - Object.assign(rule, { - - // Inside of class bodies are always strict mode. - ClassBody() { - classScopes.push(true); - }, - "ClassBody:exit"() { - classScopes.pop(); - }, - - "FunctionDeclaration:exit": exitFunctionInFunctionMode, - "FunctionExpression:exit": exitFunctionInFunctionMode, - "ArrowFunctionExpression:exit": exitFunctionInFunctionMode - }); - } - - return rule; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/switch-colon-spacing.js b/graphql/node_modules/eslint/lib/rules/switch-colon-spacing.js deleted file mode 100644 index 3ea63ca0..00000000 --- a/graphql/node_modules/eslint/lib/rules/switch-colon-spacing.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @fileoverview Rule to enforce spacing around colons of switch statements. - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Enforce spacing around colons of switch statements", - recommended: false, - url: "https://eslint.org/docs/latest/rules/switch-colon-spacing" - }, - - schema: [ - { - type: "object", - properties: { - before: { type: "boolean", default: false }, - after: { type: "boolean", default: true } - }, - additionalProperties: false - } - ], - fixable: "whitespace", - messages: { - expectedBefore: "Expected space(s) before this colon.", - expectedAfter: "Expected space(s) after this colon.", - unexpectedBefore: "Unexpected space(s) before this colon.", - unexpectedAfter: "Unexpected space(s) after this colon." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const options = context.options[0] || {}; - const beforeSpacing = options.before === true; // false by default - const afterSpacing = options.after !== false; // true by default - - /** - * Check whether the spacing between the given 2 tokens is valid or not. - * @param {Token} left The left token to check. - * @param {Token} right The right token to check. - * @param {boolean} expected The expected spacing to check. `true` if there should be a space. - * @returns {boolean} `true` if the spacing between the tokens is valid. - */ - function isValidSpacing(left, right, expected) { - return ( - astUtils.isClosingBraceToken(right) || - !astUtils.isTokenOnSameLine(left, right) || - sourceCode.isSpaceBetweenTokens(left, right) === expected - ); - } - - /** - * Check whether comments exist between the given 2 tokens. - * @param {Token} left The left token to check. - * @param {Token} right The right token to check. - * @returns {boolean} `true` if comments exist between the given 2 tokens. - */ - function commentsExistBetween(left, right) { - return sourceCode.getFirstTokenBetween( - left, - right, - { - includeComments: true, - filter: astUtils.isCommentToken - } - ) !== null; - } - - /** - * Fix the spacing between the given 2 tokens. - * @param {RuleFixer} fixer The fixer to fix. - * @param {Token} left The left token of fix range. - * @param {Token} right The right token of fix range. - * @param {boolean} spacing The spacing style. `true` if there should be a space. - * @returns {Fix|null} The fix object. - */ - function fix(fixer, left, right, spacing) { - if (commentsExistBetween(left, right)) { - return null; - } - if (spacing) { - return fixer.insertTextAfter(left, " "); - } - return fixer.removeRange([left.range[1], right.range[0]]); - } - - return { - SwitchCase(node) { - const colonToken = astUtils.getSwitchCaseColonToken(node, sourceCode); - const beforeToken = sourceCode.getTokenBefore(colonToken); - const afterToken = sourceCode.getTokenAfter(colonToken); - - if (!isValidSpacing(beforeToken, colonToken, beforeSpacing)) { - context.report({ - node, - loc: colonToken.loc, - messageId: beforeSpacing ? "expectedBefore" : "unexpectedBefore", - fix: fixer => fix(fixer, beforeToken, colonToken, beforeSpacing) - }); - } - if (!isValidSpacing(colonToken, afterToken, afterSpacing)) { - context.report({ - node, - loc: colonToken.loc, - messageId: afterSpacing ? "expectedAfter" : "unexpectedAfter", - fix: fixer => fix(fixer, colonToken, afterToken, afterSpacing) - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/symbol-description.js b/graphql/node_modules/eslint/lib/rules/symbol-description.js deleted file mode 100644 index 4528f09c..00000000 --- a/graphql/node_modules/eslint/lib/rules/symbol-description.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @fileoverview Rule to enforce description with the `Symbol` object - * @author Jarek Rencz - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require symbol descriptions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/symbol-description" - }, - fixable: null, - schema: [], - messages: { - expected: "Expected Symbol to have a description." - } - }, - - create(context) { - - const sourceCode = context.sourceCode; - - /** - * Reports if node does not conform the rule in case rule is set to - * report missing description - * @param {ASTNode} node A CallExpression node to check. - * @returns {void} - */ - function checkArgument(node) { - if (node.arguments.length === 0) { - context.report({ - node, - messageId: "expected" - }); - } - } - - return { - "Program:exit"(node) { - const scope = sourceCode.getScope(node); - const variable = astUtils.getVariableByName(scope, "Symbol"); - - if (variable && variable.defs.length === 0) { - variable.references.forEach(reference => { - const idNode = reference.identifier; - - if (astUtils.isCallee(idNode)) { - checkArgument(idNode.parent); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/template-curly-spacing.js b/graphql/node_modules/eslint/lib/rules/template-curly-spacing.js deleted file mode 100644 index 1f8cc34c..00000000 --- a/graphql/node_modules/eslint/lib/rules/template-curly-spacing.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * @fileoverview Rule to enforce spacing around embedded expressions of template strings - * @author Toru Nagashima - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow spacing around embedded expressions of template strings", - recommended: false, - url: "https://eslint.org/docs/latest/rules/template-curly-spacing" - }, - - fixable: "whitespace", - - schema: [ - { enum: ["always", "never"] } - ], - messages: { - expectedBefore: "Expected space(s) before '}'.", - expectedAfter: "Expected space(s) after '${'.", - unexpectedBefore: "Unexpected space(s) before '}'.", - unexpectedAfter: "Unexpected space(s) after '${'." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - const always = context.options[0] === "always"; - - /** - * Checks spacing before `}` of a given token. - * @param {Token} token A token to check. This is a Template token. - * @returns {void} - */ - function checkSpacingBefore(token) { - if (!token.value.startsWith("}")) { - return; // starts with a backtick, this is the first template element in the template literal - } - - const prevToken = sourceCode.getTokenBefore(token, { includeComments: true }), - hasSpace = sourceCode.isSpaceBetween(prevToken, token); - - if (!astUtils.isTokenOnSameLine(prevToken, token)) { - return; - } - - if (always && !hasSpace) { - context.report({ - loc: { - start: token.loc.start, - end: { - line: token.loc.start.line, - column: token.loc.start.column + 1 - } - }, - messageId: "expectedBefore", - fix: fixer => fixer.insertTextBefore(token, " ") - }); - } - - if (!always && hasSpace) { - context.report({ - loc: { - start: prevToken.loc.end, - end: token.loc.start - }, - messageId: "unexpectedBefore", - fix: fixer => fixer.removeRange([prevToken.range[1], token.range[0]]) - }); - } - } - - /** - * Checks spacing after `${` of a given token. - * @param {Token} token A token to check. This is a Template token. - * @returns {void} - */ - function checkSpacingAfter(token) { - if (!token.value.endsWith("${")) { - return; // ends with a backtick, this is the last template element in the template literal - } - - const nextToken = sourceCode.getTokenAfter(token, { includeComments: true }), - hasSpace = sourceCode.isSpaceBetween(token, nextToken); - - if (!astUtils.isTokenOnSameLine(token, nextToken)) { - return; - } - - if (always && !hasSpace) { - context.report({ - loc: { - start: { - line: token.loc.end.line, - column: token.loc.end.column - 2 - }, - end: token.loc.end - }, - messageId: "expectedAfter", - fix: fixer => fixer.insertTextAfter(token, " ") - }); - } - - if (!always && hasSpace) { - context.report({ - loc: { - start: token.loc.end, - end: nextToken.loc.start - }, - messageId: "unexpectedAfter", - fix: fixer => fixer.removeRange([token.range[1], nextToken.range[0]]) - }); - } - } - - return { - TemplateElement(node) { - const token = sourceCode.getFirstToken(node); - - checkSpacingBefore(token); - checkSpacingAfter(token); - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/template-tag-spacing.js b/graphql/node_modules/eslint/lib/rules/template-tag-spacing.js deleted file mode 100644 index 52e0bcf2..00000000 --- a/graphql/node_modules/eslint/lib/rules/template-tag-spacing.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @fileoverview Rule to check spacing between template tags and their literals - * @author Jonathan Wilsson - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow spacing between template tags and their literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/template-tag-spacing" - }, - - fixable: "whitespace", - - schema: [ - { enum: ["always", "never"] } - ], - messages: { - unexpected: "Unexpected space between template tag and template literal.", - missing: "Missing space between template tag and template literal." - } - }, - - create(context) { - const never = context.options[0] !== "always"; - const sourceCode = context.sourceCode; - - /** - * Check if a space is present between a template tag and its literal - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkSpacing(node) { - const tagToken = sourceCode.getTokenBefore(node.quasi); - const literalToken = sourceCode.getFirstToken(node.quasi); - const hasWhitespace = sourceCode.isSpaceBetweenTokens(tagToken, literalToken); - - if (never && hasWhitespace) { - context.report({ - node, - loc: { - start: tagToken.loc.end, - end: literalToken.loc.start - }, - messageId: "unexpected", - fix(fixer) { - const comments = sourceCode.getCommentsBefore(node.quasi); - - // Don't fix anything if there's a single line comment after the template tag - if (comments.some(comment => comment.type === "Line")) { - return null; - } - - return fixer.replaceTextRange( - [tagToken.range[1], literalToken.range[0]], - comments.reduce((text, comment) => text + sourceCode.getText(comment), "") - ); - } - }); - } else if (!never && !hasWhitespace) { - context.report({ - node, - loc: { - start: node.loc.start, - end: literalToken.loc.start - }, - messageId: "missing", - fix(fixer) { - return fixer.insertTextAfter(tagToken, " "); - } - }); - } - } - - return { - TaggedTemplateExpression: checkSpacing - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/unicode-bom.js b/graphql/node_modules/eslint/lib/rules/unicode-bom.js deleted file mode 100644 index 09971d26..00000000 --- a/graphql/node_modules/eslint/lib/rules/unicode-bom.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @fileoverview Require or disallow Unicode BOM - * @author Andrew Johnston - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "layout", - - docs: { - description: "Require or disallow Unicode byte order mark (BOM)", - recommended: false, - url: "https://eslint.org/docs/latest/rules/unicode-bom" - }, - - fixable: "whitespace", - - schema: [ - { - enum: ["always", "never"] - } - ], - messages: { - expected: "Expected Unicode BOM (Byte Order Mark).", - unexpected: "Unexpected Unicode BOM (Byte Order Mark)." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - Program: function checkUnicodeBOM(node) { - - const sourceCode = context.sourceCode, - location = { column: 0, line: 1 }, - requireBOM = context.options[0] || "never"; - - if (!sourceCode.hasBOM && (requireBOM === "always")) { - context.report({ - node, - loc: location, - messageId: "expected", - fix(fixer) { - return fixer.insertTextBeforeRange([0, 1], "\uFEFF"); - } - }); - } else if (sourceCode.hasBOM && (requireBOM === "never")) { - context.report({ - node, - loc: location, - messageId: "unexpected", - fix(fixer) { - return fixer.removeRange([-1, 0]); - } - }); - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/use-isnan.js b/graphql/node_modules/eslint/lib/rules/use-isnan.js deleted file mode 100644 index 5c0b65fe..00000000 --- a/graphql/node_modules/eslint/lib/rules/use-isnan.js +++ /dev/null @@ -1,235 +0,0 @@ -/** - * @fileoverview Rule to flag comparisons to the value NaN - * @author James Allardice - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Determines if the given node is a NaN `Identifier` node. - * @param {ASTNode|null} node The node to check. - * @returns {boolean} `true` if the node is 'NaN' identifier. - */ -function isNaNIdentifier(node) { - if (!node) { - return false; - } - - const nodeToCheck = node.type === "SequenceExpression" - ? node.expressions.at(-1) - : node; - - return ( - astUtils.isSpecificId(nodeToCheck, "NaN") || - astUtils.isSpecificMemberAccess(nodeToCheck, "Number", "NaN") - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - hasSuggestions: true, - type: "problem", - - docs: { - description: "Require calls to `isNaN()` when checking for `NaN`", - recommended: true, - url: "https://eslint.org/docs/latest/rules/use-isnan" - }, - - schema: [ - { - type: "object", - properties: { - enforceForSwitchCase: { - type: "boolean", - default: true - }, - enforceForIndexOf: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - messages: { - comparisonWithNaN: "Use the isNaN function to compare with NaN.", - switchNaN: "'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.", - caseNaN: "'case NaN' can never match. Use Number.isNaN before the switch.", - indexOfNaN: "Array prototype method '{{ methodName }}' cannot find NaN.", - replaceWithIsNaN: "Replace with Number.isNaN.", - replaceWithCastingAndIsNaN: "Replace with Number.isNaN and cast to a Number.", - replaceWithFindIndex: "Replace with Array.prototype.{{ methodName }}." - } - }, - - create(context) { - - const enforceForSwitchCase = !context.options[0] || context.options[0].enforceForSwitchCase; - const enforceForIndexOf = context.options[0] && context.options[0].enforceForIndexOf; - const sourceCode = context.sourceCode; - - const fixableOperators = new Set(["==", "===", "!=", "!=="]); - const castableOperators = new Set(["==", "!="]); - - /** - * Get a fixer for a binary expression that compares to NaN. - * @param {ASTNode} node The node to fix. - * @param {function(string): string} wrapValue A function that wraps the compared value with a fix. - * @returns {function(Fixer): Fix} The fixer function. - */ - function getBinaryExpressionFixer(node, wrapValue) { - return fixer => { - const comparedValue = isNaNIdentifier(node.left) ? node.right : node.left; - const shouldWrap = comparedValue.type === "SequenceExpression"; - const shouldNegate = node.operator[0] === "!"; - - const negation = shouldNegate ? "!" : ""; - let comparedValueText = sourceCode.getText(comparedValue); - - if (shouldWrap) { - comparedValueText = `(${comparedValueText})`; - } - - const fixedValue = wrapValue(comparedValueText); - - return fixer.replaceText(node, `${negation}${fixedValue}`); - }; - } - - /** - * Checks the given `BinaryExpression` node for `foo === NaN` and other comparisons. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkBinaryExpression(node) { - if ( - /^(?:[<>]|[!=]=)=?$/u.test(node.operator) && - (isNaNIdentifier(node.left) || isNaNIdentifier(node.right)) - ) { - const suggestedFixes = []; - const NaNNode = isNaNIdentifier(node.left) ? node.left : node.right; - - const isSequenceExpression = NaNNode.type === "SequenceExpression"; - const isSuggestable = fixableOperators.has(node.operator) && !isSequenceExpression; - const isCastable = castableOperators.has(node.operator); - - if (isSuggestable) { - suggestedFixes.push({ - messageId: "replaceWithIsNaN", - fix: getBinaryExpressionFixer(node, value => `Number.isNaN(${value})`) - }); - - if (isCastable) { - suggestedFixes.push({ - messageId: "replaceWithCastingAndIsNaN", - fix: getBinaryExpressionFixer(node, value => `Number.isNaN(Number(${value}))`) - }); - } - } - - context.report({ - node, - messageId: "comparisonWithNaN", - suggest: suggestedFixes - }); - } - } - - /** - * Checks the discriminant and all case clauses of the given `SwitchStatement` node for `switch(NaN)` and `case NaN:` - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkSwitchStatement(node) { - if (isNaNIdentifier(node.discriminant)) { - context.report({ node, messageId: "switchNaN" }); - } - - for (const switchCase of node.cases) { - if (isNaNIdentifier(switchCase.test)) { - context.report({ node: switchCase, messageId: "caseNaN" }); - } - } - } - - /** - * Checks the given `CallExpression` node for `.indexOf(NaN)` and `.lastIndexOf(NaN)`. - * @param {ASTNode} node The node to check. - * @returns {void} - */ - function checkCallExpression(node) { - const callee = astUtils.skipChainExpression(node.callee); - - if (callee.type === "MemberExpression") { - const methodName = astUtils.getStaticPropertyName(callee); - - if ( - (methodName === "indexOf" || methodName === "lastIndexOf") && - node.arguments.length <= 2 && - isNaNIdentifier(node.arguments[0]) - ) { - - /* - * To retain side effects, it's essential to address `NaN` beforehand, which - * is not possible with fixes like `arr.findIndex(Number.isNaN)`. - */ - const isSuggestable = node.arguments[0].type !== "SequenceExpression" && !node.arguments[1]; - const suggestedFixes = []; - - if (isSuggestable) { - const shouldWrap = callee.computed; - const findIndexMethod = methodName === "indexOf" ? "findIndex" : "findLastIndex"; - const propertyName = shouldWrap ? `"${findIndexMethod}"` : findIndexMethod; - - suggestedFixes.push({ - messageId: "replaceWithFindIndex", - data: { methodName: findIndexMethod }, - fix: fixer => [ - fixer.replaceText(callee.property, propertyName), - fixer.replaceText(node.arguments[0], "Number.isNaN") - ] - }); - } - - context.report({ - node, - messageId: "indexOfNaN", - data: { methodName }, - suggest: suggestedFixes - }); - } - } - } - - const listeners = { - BinaryExpression: checkBinaryExpression - }; - - if (enforceForSwitchCase) { - listeners.SwitchStatement = checkSwitchStatement; - } - - if (enforceForIndexOf) { - listeners.CallExpression = checkCallExpression; - } - - return listeners; - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/ast-utils.js b/graphql/node_modules/eslint/lib/rules/utils/ast-utils.js deleted file mode 100644 index 9f4f381d..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/ast-utils.js +++ /dev/null @@ -1,2292 +0,0 @@ -/** - * @fileoverview Common utils for AST. - * @author Gyandeep Singh - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const { KEYS: eslintVisitorKeys } = require("eslint-visitor-keys"); -const esutils = require("esutils"); -const espree = require("espree"); -const escapeRegExp = require("escape-string-regexp"); -const { - breakableTypePattern, - createGlobalLinebreakMatcher, - lineBreakPattern, - shebangPattern -} = require("../../shared/ast-utils"); -const globals = require("../../../conf/globals"); -const { LATEST_ECMA_VERSION } = require("../../../conf/ecma-version"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u; -const anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u; -const arrayMethodWithThisArgPattern = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u; -const arrayOrTypedArrayPattern = /Array$/u; -const bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u; -const thisTagPattern = /^[\s*]*@this/mu; - - -const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u; -const ESLINT_DIRECTIVE_PATTERN = /^(?:eslint[- ]|(?:globals?|exported) )/u; -const LINEBREAKS = new Set(["\r\n", "\r", "\n", "\u2028", "\u2029"]); - -// A set of node types that can contain a list of statements -const STATEMENT_LIST_PARENTS = new Set(["Program", "BlockStatement", "StaticBlock", "SwitchCase"]); - -const DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u; - -// Tests the presence of at least one LegacyOctalEscapeSequence or NonOctalDecimalEscapeSequence in a raw string -const OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su; - -const LOGICAL_ASSIGNMENT_OPERATORS = new Set(["&&=", "||=", "??="]); - -/** - * All builtin global variables defined in the latest ECMAScript specification. - * @type {Record} Key is the name of the variable. Value is `true` if the variable is considered writable, `false` otherwise. - */ -const ECMASCRIPT_GLOBALS = globals[`es${LATEST_ECMA_VERSION}`]; - -/** - * Checks reference if is non initializer and writable. - * @param {Reference} reference A reference to check. - * @param {int} index The index of the reference in the references. - * @param {Reference[]} references The array that the reference belongs to. - * @returns {boolean} Success/Failure - * @private - */ -function isModifyingReference(reference, index, references) { - const identifier = reference.identifier; - - /* - * Destructuring assignments can have multiple default value, so - * possibly there are multiple writeable references for the same - * identifier. - */ - const modifyingDifferentIdentifier = index === 0 || - references[index - 1].identifier !== identifier; - - return (identifier && - reference.init === false && - reference.isWrite() && - modifyingDifferentIdentifier - ); -} - -/** - * Checks whether the given string starts with uppercase or not. - * @param {string} s The string to check. - * @returns {boolean} `true` if the string starts with uppercase. - */ -function startsWithUpperCase(s) { - return s[0] !== s[0].toLocaleLowerCase(); -} - -/** - * Checks whether or not a node is a constructor. - * @param {ASTNode} node A function node to check. - * @returns {boolean} Whether or not a node is a constructor. - */ -function isES5Constructor(node) { - return (node.id && startsWithUpperCase(node.id.name)); -} - -/** - * Finds a function node from ancestors of a node. - * @param {ASTNode} node A start node to find. - * @returns {Node|null} A found function node. - */ -function getUpperFunction(node) { - for (let currentNode = node; currentNode; currentNode = currentNode.parent) { - if (anyFunctionPattern.test(currentNode.type)) { - return currentNode; - } - } - return null; -} - -/** - * Checks whether a given node is a function node or not. - * The following types are function nodes: - * - * - ArrowFunctionExpression - * - FunctionDeclaration - * - FunctionExpression - * @param {ASTNode|null} node A node to check. - * @returns {boolean} `true` if the node is a function node. - */ -function isFunction(node) { - return Boolean(node && anyFunctionPattern.test(node.type)); -} - -/** - * Checks whether a given node is a loop node or not. - * The following types are loop nodes: - * - * - DoWhileStatement - * - ForInStatement - * - ForOfStatement - * - ForStatement - * - WhileStatement - * @param {ASTNode|null} node A node to check. - * @returns {boolean} `true` if the node is a loop node. - */ -function isLoop(node) { - return Boolean(node && anyLoopPattern.test(node.type)); -} - -/** - * Checks whether the given node is in a loop or not. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is in a loop. - */ -function isInLoop(node) { - for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) { - if (isLoop(currentNode)) { - return true; - } - } - - return false; -} - -/** - * Determines whether the given node is a `null` literal. - * @param {ASTNode} node The node to check - * @returns {boolean} `true` if the node is a `null` literal - */ -function isNullLiteral(node) { - - /* - * Checking `node.value === null` does not guarantee that a literal is a null literal. - * When parsing values that cannot be represented in the current environment (e.g. unicode - * regexes in Node 4), `node.value` is set to `null` because it wouldn't be possible to - * set `node.value` to a unicode regex. To make sure a literal is actually `null`, check - * `node.regex` instead. Also see: https://github.com/eslint/eslint/issues/8020 - */ - return node.type === "Literal" && node.value === null && !node.regex && !node.bigint; -} - -/** - * Checks whether or not a node is `null` or `undefined`. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a `null` or `undefined`. - * @public - */ -function isNullOrUndefined(node) { - return ( - isNullLiteral(node) || - (node.type === "Identifier" && node.name === "undefined") || - (node.type === "UnaryExpression" && node.operator === "void") - ); -} - -/** - * Checks whether or not a node is callee. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is callee. - */ -function isCallee(node) { - return node.parent.type === "CallExpression" && node.parent.callee === node; -} - -/** - * Returns the result of the string conversion applied to the evaluated value of the given expression node, - * if it can be determined statically. - * - * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only. - * In all other cases, this function returns `null`. - * @param {ASTNode} node Expression node. - * @returns {string|null} String value if it can be determined. Otherwise, `null`. - */ -function getStaticStringValue(node) { - switch (node.type) { - case "Literal": - if (node.value === null) { - if (isNullLiteral(node)) { - return String(node.value); // "null" - } - if (node.regex) { - return `/${node.regex.pattern}/${node.regex.flags}`; - } - if (node.bigint) { - return node.bigint; - } - - // Otherwise, this is an unknown literal. The function will return null. - - } else { - return String(node.value); - } - break; - case "TemplateLiteral": - if (node.expressions.length === 0 && node.quasis.length === 1) { - return node.quasis[0].value.cooked; - } - break; - - // no default - } - - return null; -} - -/** - * Gets the property name of a given node. - * The node can be a MemberExpression, a Property, or a MethodDefinition. - * - * If the name is dynamic, this returns `null`. - * - * For examples: - * - * a.b // => "b" - * a["b"] // => "b" - * a['b'] // => "b" - * a[`b`] // => "b" - * a[100] // => "100" - * a[b] // => null - * a["a" + "b"] // => null - * a[tag`b`] // => null - * a[`${b}`] // => null - * - * let a = {b: 1} // => "b" - * let a = {["b"]: 1} // => "b" - * let a = {['b']: 1} // => "b" - * let a = {[`b`]: 1} // => "b" - * let a = {[100]: 1} // => "100" - * let a = {[b]: 1} // => null - * let a = {["a" + "b"]: 1} // => null - * let a = {[tag`b`]: 1} // => null - * let a = {[`${b}`]: 1} // => null - * @param {ASTNode} node The node to get. - * @returns {string|null} The property name if static. Otherwise, null. - */ -function getStaticPropertyName(node) { - let prop; - - switch (node && node.type) { - case "ChainExpression": - return getStaticPropertyName(node.expression); - - case "Property": - case "PropertyDefinition": - case "MethodDefinition": - prop = node.key; - break; - - case "MemberExpression": - prop = node.property; - break; - - // no default - } - - if (prop) { - if (prop.type === "Identifier" && !node.computed) { - return prop.name; - } - - return getStaticStringValue(prop); - } - - return null; -} - -/** - * Retrieve `ChainExpression#expression` value if the given node a `ChainExpression` node. Otherwise, pass through it. - * @param {ASTNode} node The node to address. - * @returns {ASTNode} The `ChainExpression#expression` value if the node is a `ChainExpression` node. Otherwise, the node. - */ -function skipChainExpression(node) { - return node && node.type === "ChainExpression" ? node.expression : node; -} - -/** - * Check if the `actual` is an expected value. - * @param {string} actual The string value to check. - * @param {string | RegExp} expected The expected string value or pattern. - * @returns {boolean} `true` if the `actual` is an expected value. - */ -function checkText(actual, expected) { - return typeof expected === "string" - ? actual === expected - : expected.test(actual); -} - -/** - * Check if a given node is an Identifier node with a given name. - * @param {ASTNode} node The node to check. - * @param {string | RegExp} name The expected name or the expected pattern of the object name. - * @returns {boolean} `true` if the node is an Identifier node with the name. - */ -function isSpecificId(node, name) { - return node.type === "Identifier" && checkText(node.name, name); -} - -/** - * Check if a given node is member access with a given object name and property name pair. - * This is regardless of optional or not. - * @param {ASTNode} node The node to check. - * @param {string | RegExp | null} objectName The expected name or the expected pattern of the object name. If this is nullish, this method doesn't check object. - * @param {string | RegExp | null} propertyName The expected name or the expected pattern of the property name. If this is nullish, this method doesn't check property. - * @returns {boolean} `true` if the node is member access with the object name and property name pair. - * The node is a `MemberExpression` or `ChainExpression`. - */ -function isSpecificMemberAccess(node, objectName, propertyName) { - const checkNode = skipChainExpression(node); - - if (checkNode.type !== "MemberExpression") { - return false; - } - - if (objectName && !isSpecificId(checkNode.object, objectName)) { - return false; - } - - if (propertyName) { - const actualPropertyName = getStaticPropertyName(checkNode); - - if (typeof actualPropertyName !== "string" || !checkText(actualPropertyName, propertyName)) { - return false; - } - } - - return true; -} - -/** - * Check if two literal nodes are the same value. - * @param {ASTNode} left The Literal node to compare. - * @param {ASTNode} right The other Literal node to compare. - * @returns {boolean} `true` if the two literal nodes are the same value. - */ -function equalLiteralValue(left, right) { - - // RegExp literal. - if (left.regex || right.regex) { - return Boolean( - left.regex && - right.regex && - left.regex.pattern === right.regex.pattern && - left.regex.flags === right.regex.flags - ); - } - - // BigInt literal. - if (left.bigint || right.bigint) { - return left.bigint === right.bigint; - } - - return left.value === right.value; -} - -/** - * Check if two expressions reference the same value. For example: - * a = a - * a.b = a.b - * a[0] = a[0] - * a['b'] = a['b'] - * @param {ASTNode} left The left side of the comparison. - * @param {ASTNode} right The right side of the comparison. - * @param {boolean} [disableStaticComputedKey] Don't address `a.b` and `a["b"]` are the same if `true`. For backward compatibility. - * @returns {boolean} `true` if both sides match and reference the same value. - */ -function isSameReference(left, right, disableStaticComputedKey = false) { - if (left.type !== right.type) { - - // Handle `a.b` and `a?.b` are samely. - if (left.type === "ChainExpression") { - return isSameReference(left.expression, right, disableStaticComputedKey); - } - if (right.type === "ChainExpression") { - return isSameReference(left, right.expression, disableStaticComputedKey); - } - - return false; - } - - switch (left.type) { - case "Super": - case "ThisExpression": - return true; - - case "Identifier": - case "PrivateIdentifier": - return left.name === right.name; - case "Literal": - return equalLiteralValue(left, right); - - case "ChainExpression": - return isSameReference(left.expression, right.expression, disableStaticComputedKey); - - case "MemberExpression": { - if (!disableStaticComputedKey) { - const nameA = getStaticPropertyName(left); - - // x.y = x["y"] - if (nameA !== null) { - return ( - isSameReference(left.object, right.object, disableStaticComputedKey) && - nameA === getStaticPropertyName(right) - ); - } - } - - /* - * x[0] = x[0] - * x[y] = x[y] - * x.y = x.y - */ - return ( - left.computed === right.computed && - isSameReference(left.object, right.object, disableStaticComputedKey) && - isSameReference(left.property, right.property, disableStaticComputedKey) - ); - } - - default: - return false; - } -} - -/** - * Checks whether or not a node is `Reflect.apply`. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a `Reflect.apply`. - */ -function isReflectApply(node) { - return isSpecificMemberAccess(node, "Reflect", "apply"); -} - -/** - * Checks whether or not a node is `Array.from`. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a `Array.from`. - */ -function isArrayFromMethod(node) { - return isSpecificMemberAccess(node, arrayOrTypedArrayPattern, "from"); -} - -/** - * Checks whether or not a node is a method which expects a function as a first argument, and `thisArg` as a second argument. - * @param {ASTNode} node A node to check. - * @returns {boolean} Whether or not the node is a method which expects a function as a first argument, and `thisArg` as a second argument. - */ -function isMethodWhichHasThisArg(node) { - return isSpecificMemberAccess(node, null, arrayMethodWithThisArgPattern); -} - -/** - * Creates the negate function of the given function. - * @param {Function} f The function to negate. - * @returns {Function} Negated function. - */ -function negate(f) { - return token => !f(token); -} - -/** - * Checks whether or not a node has a `@this` tag in its comments. - * @param {ASTNode} node A node to check. - * @param {SourceCode} sourceCode A SourceCode instance to get comments. - * @returns {boolean} Whether or not the node has a `@this` tag in its comments. - */ -function hasJSDocThisTag(node, sourceCode) { - const jsdocComment = sourceCode.getJSDocComment(node); - - if (jsdocComment && thisTagPattern.test(jsdocComment.value)) { - return true; - } - - // Checks `@this` in its leading comments for callbacks, - // because callbacks don't have its JSDoc comment. - // e.g. - // sinon.test(/* @this sinon.Sandbox */function() { this.spy(); }); - return sourceCode.getCommentsBefore(node).some(comment => thisTagPattern.test(comment.value)); -} - -/** - * Determines if a node is surrounded by parentheses. - * @param {SourceCode} sourceCode The ESLint source code object - * @param {ASTNode} node The node to be checked. - * @returns {boolean} True if the node is parenthesised. - * @private - */ -function isParenthesised(sourceCode, node) { - const previousToken = sourceCode.getTokenBefore(node), - nextToken = sourceCode.getTokenAfter(node); - - return Boolean(previousToken && nextToken) && - previousToken.value === "(" && previousToken.range[1] <= node.range[0] && - nextToken.value === ")" && nextToken.range[0] >= node.range[1]; -} - -/** - * Checks if the given token is a `=` token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a `=` token. - */ -function isEqToken(token) { - return token.value === "=" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is an arrow token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an arrow token. - */ -function isArrowToken(token) { - return token.value === "=>" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a comma token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a comma token. - */ -function isCommaToken(token) { - return token.value === "," && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a dot token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a dot token. - */ -function isDotToken(token) { - return token.value === "." && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a `?.` token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a `?.` token. - */ -function isQuestionDotToken(token) { - return token.value === "?." && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a semicolon token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a semicolon token. - */ -function isSemicolonToken(token) { - return token.value === ";" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a colon token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a colon token. - */ -function isColonToken(token) { - return token.value === ":" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is an opening parenthesis token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an opening parenthesis token. - */ -function isOpeningParenToken(token) { - return token.value === "(" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a closing parenthesis token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a closing parenthesis token. - */ -function isClosingParenToken(token) { - return token.value === ")" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is an opening square bracket token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an opening square bracket token. - */ -function isOpeningBracketToken(token) { - return token.value === "[" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a closing square bracket token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a closing square bracket token. - */ -function isClosingBracketToken(token) { - return token.value === "]" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is an opening brace token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is an opening brace token. - */ -function isOpeningBraceToken(token) { - return token.value === "{" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a closing brace token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a closing brace token. - */ -function isClosingBraceToken(token) { - return token.value === "}" && token.type === "Punctuator"; -} - -/** - * Checks if the given token is a comment token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a comment token. - */ -function isCommentToken(token) { - return token.type === "Line" || token.type === "Block" || token.type === "Shebang"; -} - -/** - * Checks if the given token is a keyword token or not. - * @param {Token} token The token to check. - * @returns {boolean} `true` if the token is a keyword token. - */ -function isKeywordToken(token) { - return token.type === "Keyword"; -} - -/** - * Gets the `(` token of the given function node. - * @param {ASTNode} node The function node to get. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {Token} `(` token. - */ -function getOpeningParenOfParams(node, sourceCode) { - - // If the node is an arrow function and doesn't have parens, this returns the identifier of the first param. - if (node.type === "ArrowFunctionExpression" && node.params.length === 1) { - const argToken = sourceCode.getFirstToken(node.params[0]); - const maybeParenToken = sourceCode.getTokenBefore(argToken); - - return isOpeningParenToken(maybeParenToken) ? maybeParenToken : argToken; - } - - // Otherwise, returns paren. - return node.id - ? sourceCode.getTokenAfter(node.id, isOpeningParenToken) - : sourceCode.getFirstToken(node, isOpeningParenToken); -} - -/** - * Checks whether or not the tokens of two given nodes are same. - * @param {ASTNode} left A node 1 to compare. - * @param {ASTNode} right A node 2 to compare. - * @param {SourceCode} sourceCode The ESLint source code object. - * @returns {boolean} the source code for the given node. - */ -function equalTokens(left, right, sourceCode) { - const tokensL = sourceCode.getTokens(left); - const tokensR = sourceCode.getTokens(right); - - if (tokensL.length !== tokensR.length) { - return false; - } - for (let i = 0; i < tokensL.length; ++i) { - if (tokensL[i].type !== tokensR[i].type || - tokensL[i].value !== tokensR[i].value - ) { - return false; - } - } - - return true; -} - -/** - * Check if the given node is a true logical expression or not. - * - * The three binary expressions logical-or (`||`), logical-and (`&&`), and - * coalesce (`??`) are known as `ShortCircuitExpression`. - * But ESTree represents those by `LogicalExpression` node. - * - * This function rejects coalesce expressions of `LogicalExpression` node. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is `&&` or `||`. - * @see https://tc39.es/ecma262/#prod-ShortCircuitExpression - */ -function isLogicalExpression(node) { - return ( - node.type === "LogicalExpression" && - (node.operator === "&&" || node.operator === "||") - ); -} - -/** - * Check if the given node is a nullish coalescing expression or not. - * - * The three binary expressions logical-or (`||`), logical-and (`&&`), and - * coalesce (`??`) are known as `ShortCircuitExpression`. - * But ESTree represents those by `LogicalExpression` node. - * - * This function finds only coalesce expressions of `LogicalExpression` node. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is `??`. - */ -function isCoalesceExpression(node) { - return node.type === "LogicalExpression" && node.operator === "??"; -} - -/** - * Check if given two nodes are the pair of a logical expression and a coalesce expression. - * @param {ASTNode} left A node to check. - * @param {ASTNode} right Another node to check. - * @returns {boolean} `true` if the two nodes are the pair of a logical expression and a coalesce expression. - */ -function isMixedLogicalAndCoalesceExpressions(left, right) { - return ( - (isLogicalExpression(left) && isCoalesceExpression(right)) || - (isCoalesceExpression(left) && isLogicalExpression(right)) - ); -} - -/** - * Checks if the given operator is a logical assignment operator. - * @param {string} operator The operator to check. - * @returns {boolean} `true` if the operator is a logical assignment operator. - */ -function isLogicalAssignmentOperator(operator) { - return LOGICAL_ASSIGNMENT_OPERATORS.has(operator); -} - -/** - * Get the colon token of the given SwitchCase node. - * @param {ASTNode} node The SwitchCase node to get. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {Token} The colon token of the node. - */ -function getSwitchCaseColonToken(node, sourceCode) { - if (node.test) { - return sourceCode.getTokenAfter(node.test, isColonToken); - } - return sourceCode.getFirstToken(node, 1); -} - -/** - * Gets ESM module export name represented by the given node. - * @param {ASTNode} node `Identifier` or string `Literal` node in a position - * that represents a module export name: - * - `ImportSpecifier#imported` - * - `ExportSpecifier#local` (if it is a re-export from another module) - * - `ExportSpecifier#exported` - * - `ExportAllDeclaration#exported` - * @returns {string} The module export name. - */ -function getModuleExportName(node) { - if (node.type === "Identifier") { - return node.name; - } - - // string literal - return node.value; -} - -/** - * Returns literal's value converted to the Boolean type - * @param {ASTNode} node any `Literal` node - * @returns {boolean | null} `true` when node is truthy, `false` when node is falsy, - * `null` when it cannot be determined. - */ -function getBooleanValue(node) { - if (node.value === null) { - - /* - * it might be a null literal or bigint/regex literal in unsupported environments . - * https://github.com/estree/estree/blob/14df8a024956ea289bd55b9c2226a1d5b8a473ee/es5.md#regexpliteral - * https://github.com/estree/estree/blob/14df8a024956ea289bd55b9c2226a1d5b8a473ee/es2020.md#bigintliteral - */ - - if (node.raw === "null") { - return false; - } - - // regex is always truthy - if (typeof node.regex === "object") { - return true; - } - - return null; - } - - return !!node.value; -} - -/** - * Checks if a branch node of LogicalExpression short circuits the whole condition - * @param {ASTNode} node The branch of main condition which needs to be checked - * @param {string} operator The operator of the main LogicalExpression. - * @returns {boolean} true when condition short circuits whole condition - */ -function isLogicalIdentity(node, operator) { - switch (node.type) { - case "Literal": - return (operator === "||" && getBooleanValue(node) === true) || - (operator === "&&" && getBooleanValue(node) === false); - - case "UnaryExpression": - return (operator === "&&" && node.operator === "void"); - - case "LogicalExpression": - - /* - * handles `a && false || b` - * `false` is an identity element of `&&` but not `||` - */ - return operator === node.operator && - ( - isLogicalIdentity(node.left, operator) || - isLogicalIdentity(node.right, operator) - ); - - case "AssignmentExpression": - return ["||=", "&&="].includes(node.operator) && - operator === node.operator.slice(0, -1) && - isLogicalIdentity(node.right, operator); - - // no default - } - return false; -} - -/** - * Checks if an identifier is a reference to a global variable. - * @param {Scope} scope The scope in which the identifier is referenced. - * @param {ASTNode} node An identifier node to check. - * @returns {boolean} `true` if the identifier is a reference to a global variable. - */ -function isReferenceToGlobalVariable(scope, node) { - const reference = scope.references.find(ref => ref.identifier === node); - - return Boolean( - reference && - reference.resolved && - reference.resolved.scope.type === "global" && - reference.resolved.defs.length === 0 - ); -} - - -/** - * Checks if a node has a constant truthiness value. - * @param {Scope} scope Scope in which the node appears. - * @param {ASTNode} node The AST node to check. - * @param {boolean} inBooleanPosition `true` if checking the test of a - * condition. `false` in all other cases. When `false`, checks if -- for - * both string and number -- if coerced to that type, the value will - * be constant. - * @returns {boolean} true when node's truthiness is constant - * @private - */ -function isConstant(scope, node, inBooleanPosition) { - - // node.elements can return null values in the case of sparse arrays ex. [,] - if (!node) { - return true; - } - switch (node.type) { - case "Literal": - case "ArrowFunctionExpression": - case "FunctionExpression": - return true; - case "ClassExpression": - case "ObjectExpression": - - /** - * In theory objects like: - * - * `{toString: () => a}` - * `{valueOf: () => a}` - * - * Or a classes like: - * - * `class { static toString() { return a } }` - * `class { static valueOf() { return a } }` - * - * Are not constant verifiably when `inBooleanPosition` is - * false, but it's an edge case we've opted not to handle. - */ - return true; - case "TemplateLiteral": - return (inBooleanPosition && node.quasis.some(quasi => quasi.value.cooked.length)) || - node.expressions.every(exp => isConstant(scope, exp, false)); - - case "ArrayExpression": { - if (!inBooleanPosition) { - return node.elements.every(element => isConstant(scope, element, false)); - } - return true; - } - - case "UnaryExpression": - if ( - node.operator === "void" || - node.operator === "typeof" && inBooleanPosition - ) { - return true; - } - - if (node.operator === "!") { - return isConstant(scope, node.argument, true); - } - - return isConstant(scope, node.argument, false); - - case "BinaryExpression": - return isConstant(scope, node.left, false) && - isConstant(scope, node.right, false) && - node.operator !== "in"; - - case "LogicalExpression": { - const isLeftConstant = isConstant(scope, node.left, inBooleanPosition); - const isRightConstant = isConstant(scope, node.right, inBooleanPosition); - const isLeftShortCircuit = (isLeftConstant && isLogicalIdentity(node.left, node.operator)); - const isRightShortCircuit = (inBooleanPosition && isRightConstant && isLogicalIdentity(node.right, node.operator)); - - return (isLeftConstant && isRightConstant) || - isLeftShortCircuit || - isRightShortCircuit; - } - case "NewExpression": - return inBooleanPosition; - case "AssignmentExpression": - if (node.operator === "=") { - return isConstant(scope, node.right, inBooleanPosition); - } - - if (["||=", "&&="].includes(node.operator) && inBooleanPosition) { - return isLogicalIdentity(node.right, node.operator.slice(0, -1)); - } - - return false; - - case "SequenceExpression": - return isConstant(scope, node.expressions.at(-1), inBooleanPosition); - case "SpreadElement": - return isConstant(scope, node.argument, inBooleanPosition); - case "CallExpression": - if (node.callee.type === "Identifier" && node.callee.name === "Boolean") { - if (node.arguments.length === 0 || isConstant(scope, node.arguments[0], true)) { - return isReferenceToGlobalVariable(scope, node.callee); - } - } - return false; - case "Identifier": - return node.name === "undefined" && isReferenceToGlobalVariable(scope, node); - - // no default - } - return false; -} - -/** - * Checks whether a node is an ExpressionStatement at the top level of a file or function body. - * A top-level ExpressionStatement node is a directive if it contains a single unparenthesized - * string literal and if it occurs either as the first sibling or immediately after another - * directive. - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether or not the node is an ExpressionStatement at the top level of a - * file or function body. - */ -function isTopLevelExpressionStatement(node) { - if (node.type !== "ExpressionStatement") { - return false; - } - const parent = node.parent; - - return parent.type === "Program" || (parent.type === "BlockStatement" && isFunction(parent.parent)); - -} - -/** - * Check whether the given node is a part of a directive prologue or not. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a part of directive prologue. - */ -function isDirective(node) { - return node.type === "ExpressionStatement" && typeof node.directive === "string"; -} - -/** - * Tests if a node appears at the beginning of an ancestor ExpressionStatement node. - * @param {ASTNode} node The node to check. - * @returns {boolean} Whether the node appears at the beginning of an ancestor ExpressionStatement node. - */ -function isStartOfExpressionStatement(node) { - const start = node.range[0]; - let ancestor = node; - - while ((ancestor = ancestor.parent) && ancestor.range[0] === start) { - if (ancestor.type === "ExpressionStatement") { - return true; - } - } - return false; -} - -/** - * Determines whether an opening parenthesis `(`, bracket `[` or backtick ``` ` ``` needs to be preceded by a semicolon. - * This opening parenthesis or bracket should be at the start of an `ExpressionStatement`, a `MethodDefinition` or at - * the start of the body of an `ArrowFunctionExpression`. - * @type {(sourceCode: SourceCode, node: ASTNode) => boolean} - * @param {SourceCode} sourceCode The source code object. - * @param {ASTNode} node A node at the position where an opening parenthesis or bracket will be inserted. - * @returns {boolean} Whether a semicolon is required before the opening parenthesis or bracket. - */ -let needsPrecedingSemicolon; - -{ - const BREAK_OR_CONTINUE = new Set(["BreakStatement", "ContinueStatement"]); - - // Declaration types that must contain a string Literal node at the end. - const DECLARATIONS = new Set(["ExportAllDeclaration", "ExportNamedDeclaration", "ImportDeclaration"]); - - const IDENTIFIER_OR_KEYWORD = new Set(["Identifier", "Keyword"]); - - // Keywords that can immediately precede an ExpressionStatement node, mapped to the their node types. - const NODE_TYPES_BY_KEYWORD = { - __proto__: null, - break: "BreakStatement", - continue: "ContinueStatement", - debugger: "DebuggerStatement", - do: "DoWhileStatement", - else: "IfStatement", - return: "ReturnStatement", - yield: "YieldExpression" - }; - - /* - * Before an opening parenthesis, postfix `++` and `--` always trigger ASI; - * the tokens `:`, `;`, `{` and `=>` don't expect a semicolon, as that would count as an empty statement. - */ - const PUNCTUATORS = new Set([":", ";", "{", "=>", "++", "--"]); - - /* - * Statements that can contain an `ExpressionStatement` after a closing parenthesis. - * DoWhileStatement is an exception in that it always triggers ASI after the closing parenthesis. - */ - const STATEMENTS = new Set([ - "DoWhileStatement", - "ForInStatement", - "ForOfStatement", - "ForStatement", - "IfStatement", - "WhileStatement", - "WithStatement" - ]); - - needsPrecedingSemicolon = - function(sourceCode, node) { - const prevToken = sourceCode.getTokenBefore(node); - - if (!prevToken || prevToken.type === "Punctuator" && PUNCTUATORS.has(prevToken.value)) { - return false; - } - - const prevNode = sourceCode.getNodeByRangeIndex(prevToken.range[0]); - - if (isClosingParenToken(prevToken)) { - return !STATEMENTS.has(prevNode.type); - } - - if (isClosingBraceToken(prevToken)) { - return ( - prevNode.type === "BlockStatement" && prevNode.parent.type === "FunctionExpression" && prevNode.parent.parent.type !== "MethodDefinition" || - prevNode.type === "ClassBody" && prevNode.parent.type === "ClassExpression" || - prevNode.type === "ObjectExpression" - ); - } - - if (IDENTIFIER_OR_KEYWORD.has(prevToken.type)) { - if (BREAK_OR_CONTINUE.has(prevNode.parent.type)) { - return false; - } - - const keyword = prevToken.value; - const nodeType = NODE_TYPES_BY_KEYWORD[keyword]; - - return prevNode.type !== nodeType; - } - - if (prevToken.type === "String") { - return !DECLARATIONS.has(prevNode.parent.type); - } - - return true; - }; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - COMMENTS_IGNORE_PATTERN, - LINEBREAKS, - LINEBREAK_MATCHER: lineBreakPattern, - SHEBANG_MATCHER: shebangPattern, - STATEMENT_LIST_PARENTS, - ECMASCRIPT_GLOBALS, - - /** - * Determines whether two adjacent tokens are on the same line. - * @param {Object} left The left token object. - * @param {Object} right The right token object. - * @returns {boolean} Whether or not the tokens are on the same line. - * @public - */ - isTokenOnSameLine(left, right) { - return left.loc.end.line === right.loc.start.line; - }, - - isNullOrUndefined, - isCallee, - isES5Constructor, - getUpperFunction, - isFunction, - isLoop, - isInLoop, - isArrayFromMethod, - isParenthesised, - createGlobalLinebreakMatcher, - equalTokens, - - isArrowToken, - isClosingBraceToken, - isClosingBracketToken, - isClosingParenToken, - isColonToken, - isCommaToken, - isCommentToken, - isDotToken, - isQuestionDotToken, - isKeywordToken, - isNotClosingBraceToken: negate(isClosingBraceToken), - isNotClosingBracketToken: negate(isClosingBracketToken), - isNotClosingParenToken: negate(isClosingParenToken), - isNotColonToken: negate(isColonToken), - isNotCommaToken: negate(isCommaToken), - isNotDotToken: negate(isDotToken), - isNotQuestionDotToken: negate(isQuestionDotToken), - isNotOpeningBraceToken: negate(isOpeningBraceToken), - isNotOpeningBracketToken: negate(isOpeningBracketToken), - isNotOpeningParenToken: negate(isOpeningParenToken), - isNotSemicolonToken: negate(isSemicolonToken), - isOpeningBraceToken, - isOpeningBracketToken, - isOpeningParenToken, - isSemicolonToken, - isEqToken, - - /** - * Checks whether or not a given node is a string literal. - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is a string literal. - */ - isStringLiteral(node) { - return ( - (node.type === "Literal" && typeof node.value === "string") || - node.type === "TemplateLiteral" - ); - }, - - /** - * Checks whether a given node is a breakable statement or not. - * The node is breakable if the node is one of the following type: - * - * - DoWhileStatement - * - ForInStatement - * - ForOfStatement - * - ForStatement - * - SwitchStatement - * - WhileStatement - * @param {ASTNode} node A node to check. - * @returns {boolean} `true` if the node is breakable. - */ - isBreakableStatement(node) { - return breakableTypePattern.test(node.type); - }, - - /** - * Gets references which are non initializer and writable. - * @param {Reference[]} references An array of references. - * @returns {Reference[]} An array of only references which are non initializer and writable. - * @public - */ - getModifyingReferences(references) { - return references.filter(isModifyingReference); - }, - - /** - * Validate that a string passed in is surrounded by the specified character - * @param {string} val The text to check. - * @param {string} character The character to see if it's surrounded by. - * @returns {boolean} True if the text is surrounded by the character, false if not. - * @private - */ - isSurroundedBy(val, character) { - return val[0] === character && val.at(-1) === character; - }, - - /** - * Returns whether the provided node is an ESLint directive comment or not - * @param {Line|Block} node The comment token to be checked - * @returns {boolean} `true` if the node is an ESLint directive comment - */ - isDirectiveComment(node) { - const comment = node.value.trim(); - - return ( - node.type === "Line" && comment.startsWith("eslint-") || - node.type === "Block" && ESLINT_DIRECTIVE_PATTERN.test(comment) - ); - }, - - /** - * Gets the trailing statement of a given node. - * - * if (code) - * consequent; - * - * When taking this `IfStatement`, returns `consequent;` statement. - * @param {ASTNode} A node to get. - * @returns {ASTNode|null} The trailing statement's node. - */ - getTrailingStatement: esutils.ast.trailingStatement, - - /** - * Finds the variable by a given name in a given scope and its upper scopes. - * @param {eslint-scope.Scope} initScope A scope to start find. - * @param {string} name A variable name to find. - * @returns {eslint-scope.Variable|null} A found variable or `null`. - */ - getVariableByName(initScope, name) { - let scope = initScope; - - while (scope) { - const variable = scope.set.get(name); - - if (variable) { - return variable; - } - - scope = scope.upper; - } - - return null; - }, - - /** - * Checks whether or not a given function node is the default `this` binding. - * - * First, this checks the node: - * - * - The given node is not in `PropertyDefinition#value` position. - * - The given node is not `StaticBlock`. - * - The function name does not start with uppercase. It's a convention to capitalize the names - * of constructor functions. This check is not performed if `capIsConstructor` is set to `false`. - * - The function does not have a JSDoc comment that has a @this tag. - * - * Next, this checks the location of the node. - * If the location is below, this judges `this` is valid. - * - * - The location is not on an object literal. - * - The location is not assigned to a variable which starts with an uppercase letter. Applies to anonymous - * functions only, as the name of the variable is considered to be the name of the function in this case. - * This check is not performed if `capIsConstructor` is set to `false`. - * - The location is not on an ES2015 class. - * - Its `bind`/`call`/`apply` method is not called directly. - * - The function is not a callback of array methods (such as `.forEach()`) if `thisArg` is given. - * @param {ASTNode} node A function node to check. It also can be an implicit function, like `StaticBlock` - * or any expression that is `PropertyDefinition#value` node. - * @param {SourceCode} sourceCode A SourceCode instance to get comments. - * @param {boolean} [capIsConstructor = true] `false` disables the assumption that functions which name starts - * with an uppercase or are assigned to a variable which name starts with an uppercase are constructors. - * @returns {boolean} The function node is the default `this` binding. - */ - isDefaultThisBinding(node, sourceCode, { capIsConstructor = true } = {}) { - - /* - * Class field initializers are implicit functions, but ESTree doesn't have the AST node of field initializers. - * Therefore, A expression node at `PropertyDefinition#value` is a function. - * In this case, `this` is always not default binding. - */ - if (node.parent.type === "PropertyDefinition" && node.parent.value === node) { - return false; - } - - // Class static blocks are implicit functions. In this case, `this` is always not default binding. - if (node.type === "StaticBlock") { - return false; - } - - if ( - (capIsConstructor && isES5Constructor(node)) || - hasJSDocThisTag(node, sourceCode) - ) { - return false; - } - const isAnonymous = node.id === null; - let currentNode = node; - - while (currentNode) { - const parent = currentNode.parent; - - switch (parent.type) { - - /* - * Looks up the destination. - * e.g., obj.foo = nativeFoo || function foo() { ... }; - */ - case "LogicalExpression": - case "ConditionalExpression": - case "ChainExpression": - currentNode = parent; - break; - - /* - * If the upper function is IIFE, checks the destination of the return value. - * e.g. - * obj.foo = (function() { - * // setup... - * return function foo() { ... }; - * })(); - * obj.foo = (() => - * function foo() { ... } - * )(); - */ - case "ReturnStatement": { - const func = getUpperFunction(parent); - - if (func === null || !isCallee(func)) { - return true; - } - currentNode = func.parent; - break; - } - case "ArrowFunctionExpression": - if (currentNode !== parent.body || !isCallee(parent)) { - return true; - } - currentNode = parent.parent; - break; - - /* - * e.g. - * var obj = { foo() { ... } }; - * var obj = { foo: function() { ... } }; - * class A { constructor() { ... } } - * class A { foo() { ... } } - * class A { get foo() { ... } } - * class A { set foo() { ... } } - * class A { static foo() { ... } } - * class A { foo = function() { ... } } - */ - case "Property": - case "PropertyDefinition": - case "MethodDefinition": - return parent.value !== currentNode; - - /* - * e.g. - * obj.foo = function foo() { ... }; - * Foo = function() { ... }; - * [obj.foo = function foo() { ... }] = a; - * [Foo = function() { ... }] = a; - */ - case "AssignmentExpression": - case "AssignmentPattern": - if (parent.left.type === "MemberExpression") { - return false; - } - if ( - capIsConstructor && - isAnonymous && - parent.left.type === "Identifier" && - startsWithUpperCase(parent.left.name) - ) { - return false; - } - return true; - - /* - * e.g. - * var Foo = function() { ... }; - */ - case "VariableDeclarator": - return !( - capIsConstructor && - isAnonymous && - parent.init === currentNode && - parent.id.type === "Identifier" && - startsWithUpperCase(parent.id.name) - ); - - /* - * e.g. - * var foo = function foo() { ... }.bind(obj); - * (function foo() { ... }).call(obj); - * (function foo() { ... }).apply(obj, []); - */ - case "MemberExpression": - if ( - parent.object === currentNode && - isSpecificMemberAccess(parent, null, bindOrCallOrApplyPattern) - ) { - const maybeCalleeNode = parent.parent.type === "ChainExpression" - ? parent.parent - : parent; - - return !( - isCallee(maybeCalleeNode) && - maybeCalleeNode.parent.arguments.length >= 1 && - !isNullOrUndefined(maybeCalleeNode.parent.arguments[0]) - ); - } - return true; - - /* - * e.g. - * Reflect.apply(function() {}, obj, []); - * Array.from([], function() {}, obj); - * list.forEach(function() {}, obj); - */ - case "CallExpression": - if (isReflectApply(parent.callee)) { - return ( - parent.arguments.length !== 3 || - parent.arguments[0] !== currentNode || - isNullOrUndefined(parent.arguments[1]) - ); - } - if (isArrayFromMethod(parent.callee)) { - return ( - parent.arguments.length !== 3 || - parent.arguments[1] !== currentNode || - isNullOrUndefined(parent.arguments[2]) - ); - } - if (isMethodWhichHasThisArg(parent.callee)) { - return ( - parent.arguments.length !== 2 || - parent.arguments[0] !== currentNode || - isNullOrUndefined(parent.arguments[1]) - ); - } - return true; - - // Otherwise `this` is default. - default: - return true; - } - } - - /* c8 ignore next */ - return true; - }, - - /** - * Get the precedence level based on the node type - * @param {ASTNode} node node to evaluate - * @returns {int} precedence level - * @private - */ - getPrecedence(node) { - switch (node.type) { - case "SequenceExpression": - return 0; - - case "AssignmentExpression": - case "ArrowFunctionExpression": - case "YieldExpression": - return 1; - - case "ConditionalExpression": - return 3; - - case "LogicalExpression": - switch (node.operator) { - case "||": - case "??": - return 4; - case "&&": - return 5; - - // no default - } - - /* falls through */ - - case "BinaryExpression": - - switch (node.operator) { - case "|": - return 6; - case "^": - return 7; - case "&": - return 8; - case "==": - case "!=": - case "===": - case "!==": - return 9; - case "<": - case "<=": - case ">": - case ">=": - case "in": - case "instanceof": - return 10; - case "<<": - case ">>": - case ">>>": - return 11; - case "+": - case "-": - return 12; - case "*": - case "/": - case "%": - return 13; - case "**": - return 15; - - // no default - } - - /* falls through */ - - case "UnaryExpression": - case "AwaitExpression": - return 16; - - case "UpdateExpression": - return 17; - - case "CallExpression": - case "ChainExpression": - case "ImportExpression": - return 18; - - case "NewExpression": - return 19; - - default: - if (node.type in eslintVisitorKeys) { - return 20; - } - - /* - * if the node is not a standard node that we know about, then assume it has the lowest precedence - * this will mean that rules will wrap unknown nodes in parentheses where applicable instead of - * unwrapping them and potentially changing the meaning of the code or introducing a syntax error. - */ - return -1; - } - }, - - /** - * Checks whether the given node is an empty block node or not. - * @param {ASTNode|null} node The node to check. - * @returns {boolean} `true` if the node is an empty block. - */ - isEmptyBlock(node) { - return Boolean(node && node.type === "BlockStatement" && node.body.length === 0); - }, - - /** - * Checks whether the given node is an empty function node or not. - * @param {ASTNode|null} node The node to check. - * @returns {boolean} `true` if the node is an empty function. - */ - isEmptyFunction(node) { - return isFunction(node) && module.exports.isEmptyBlock(node.body); - }, - - /** - * Get directives from directive prologue of a Program or Function node. - * @param {ASTNode} node The node to check. - * @returns {ASTNode[]} The directives found in the directive prologue. - */ - getDirectivePrologue(node) { - const directives = []; - - // Directive prologues only occur at the top of files or functions. - if ( - node.type === "Program" || - node.type === "FunctionDeclaration" || - node.type === "FunctionExpression" || - - /* - * Do not check arrow functions with implicit return. - * `() => "use strict";` returns the string `"use strict"`. - */ - (node.type === "ArrowFunctionExpression" && node.body.type === "BlockStatement") - ) { - const statements = node.type === "Program" ? node.body : node.body.body; - - for (const statement of statements) { - if ( - statement.type === "ExpressionStatement" && - statement.expression.type === "Literal" - ) { - directives.push(statement); - } else { - break; - } - } - } - - return directives; - }, - - /** - * Determines whether this node is a decimal integer literal. If a node is a decimal integer literal, a dot added - * after the node will be parsed as a decimal point, rather than a property-access dot. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if this node is a decimal integer. - * @example - * - * 0 // true - * 5 // true - * 50 // true - * 5_000 // true - * 1_234_56 // true - * 08 // true - * 0192 // true - * 5. // false - * .5 // false - * 5.0 // false - * 5.00_00 // false - * 05 // false - * 0x5 // false - * 0b101 // false - * 0b11_01 // false - * 0o5 // false - * 5e0 // false - * 5e1_000 // false - * 5n // false - * 1_000n // false - * "5" // false - * - */ - isDecimalInteger(node) { - return node.type === "Literal" && typeof node.value === "number" && - DECIMAL_INTEGER_PATTERN.test(node.raw); - }, - - /** - * Determines whether this token is a decimal integer numeric token. - * This is similar to isDecimalInteger(), but for tokens. - * @param {Token} token The token to check. - * @returns {boolean} `true` if this token is a decimal integer. - */ - isDecimalIntegerNumericToken(token) { - return token.type === "Numeric" && DECIMAL_INTEGER_PATTERN.test(token.value); - }, - - /** - * Gets the name and kind of the given function node. - * - * - `function foo() {}` .................... `function 'foo'` - * - `(function foo() {})` .................. `function 'foo'` - * - `(function() {})` ...................... `function` - * - `function* foo() {}` ................... `generator function 'foo'` - * - `(function* foo() {})` ................. `generator function 'foo'` - * - `(function*() {})` ..................... `generator function` - * - `() => {}` ............................. `arrow function` - * - `async () => {}` ....................... `async arrow function` - * - `({ foo: function foo() {} })` ......... `method 'foo'` - * - `({ foo: function() {} })` ............. `method 'foo'` - * - `({ ['foo']: function() {} })` ......... `method 'foo'` - * - `({ [foo]: function() {} })` ........... `method` - * - `({ foo() {} })` ....................... `method 'foo'` - * - `({ foo: function* foo() {} })` ........ `generator method 'foo'` - * - `({ foo: function*() {} })` ............ `generator method 'foo'` - * - `({ ['foo']: function*() {} })` ........ `generator method 'foo'` - * - `({ [foo]: function*() {} })` .......... `generator method` - * - `({ *foo() {} })` ...................... `generator method 'foo'` - * - `({ foo: async function foo() {} })` ... `async method 'foo'` - * - `({ foo: async function() {} })` ....... `async method 'foo'` - * - `({ ['foo']: async function() {} })` ... `async method 'foo'` - * - `({ [foo]: async function() {} })` ..... `async method` - * - `({ async foo() {} })` ................. `async method 'foo'` - * - `({ get foo() {} })` ................... `getter 'foo'` - * - `({ set foo(a) {} })` .................. `setter 'foo'` - * - `class A { constructor() {} }` ......... `constructor` - * - `class A { foo() {} }` ................. `method 'foo'` - * - `class A { *foo() {} }` ................ `generator method 'foo'` - * - `class A { async foo() {} }` ........... `async method 'foo'` - * - `class A { ['foo']() {} }` ............. `method 'foo'` - * - `class A { *['foo']() {} }` ............ `generator method 'foo'` - * - `class A { async ['foo']() {} }` ....... `async method 'foo'` - * - `class A { [foo]() {} }` ............... `method` - * - `class A { *[foo]() {} }` .............. `generator method` - * - `class A { async [foo]() {} }` ......... `async method` - * - `class A { get foo() {} }` ............. `getter 'foo'` - * - `class A { set foo(a) {} }` ............ `setter 'foo'` - * - `class A { static foo() {} }` .......... `static method 'foo'` - * - `class A { static *foo() {} }` ......... `static generator method 'foo'` - * - `class A { static async foo() {} }` .... `static async method 'foo'` - * - `class A { static get foo() {} }` ...... `static getter 'foo'` - * - `class A { static set foo(a) {} }` ..... `static setter 'foo'` - * - `class A { foo = () => {}; }` .......... `method 'foo'` - * - `class A { foo = function() {}; }` ..... `method 'foo'` - * - `class A { foo = function bar() {}; }` . `method 'foo'` - * - `class A { static foo = () => {}; }` ... `static method 'foo'` - * - `class A { '#foo' = () => {}; }` ....... `method '#foo'` - * - `class A { #foo = () => {}; }` ......... `private method #foo` - * - `class A { static #foo = () => {}; }` .. `static private method #foo` - * - `class A { '#foo'() {} }` .............. `method '#foo'` - * - `class A { #foo() {} }` ................ `private method #foo` - * - `class A { static #foo() {} }` ......... `static private method #foo` - * @param {ASTNode} node The function node to get. - * @returns {string} The name and kind of the function node. - */ - getFunctionNameWithKind(node) { - const parent = node.parent; - const tokens = []; - - if (parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") { - - // The proposal uses `static` word consistently before visibility words: https://github.com/tc39/proposal-static-class-features - if (parent.static) { - tokens.push("static"); - } - if (!parent.computed && parent.key.type === "PrivateIdentifier") { - tokens.push("private"); - } - } - if (node.async) { - tokens.push("async"); - } - if (node.generator) { - tokens.push("generator"); - } - - if (parent.type === "Property" || parent.type === "MethodDefinition") { - if (parent.kind === "constructor") { - return "constructor"; - } - if (parent.kind === "get") { - tokens.push("getter"); - } else if (parent.kind === "set") { - tokens.push("setter"); - } else { - tokens.push("method"); - } - } else if (parent.type === "PropertyDefinition") { - tokens.push("method"); - } else { - if (node.type === "ArrowFunctionExpression") { - tokens.push("arrow"); - } - tokens.push("function"); - } - - if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") { - if (!parent.computed && parent.key.type === "PrivateIdentifier") { - tokens.push(`#${parent.key.name}`); - } else { - const name = getStaticPropertyName(parent); - - if (name !== null) { - tokens.push(`'${name}'`); - } else if (node.id) { - tokens.push(`'${node.id.name}'`); - } - } - } else if (node.id) { - tokens.push(`'${node.id.name}'`); - } - - return tokens.join(" "); - }, - - /** - * Gets the location of the given function node for reporting. - * - * - `function foo() {}` - * ^^^^^^^^^^^^ - * - `(function foo() {})` - * ^^^^^^^^^^^^ - * - `(function() {})` - * ^^^^^^^^ - * - `function* foo() {}` - * ^^^^^^^^^^^^^ - * - `(function* foo() {})` - * ^^^^^^^^^^^^^ - * - `(function*() {})` - * ^^^^^^^^^ - * - `() => {}` - * ^^ - * - `async () => {}` - * ^^ - * - `({ foo: function foo() {} })` - * ^^^^^^^^^^^^^^^^^ - * - `({ foo: function() {} })` - * ^^^^^^^^^^^^^ - * - `({ ['foo']: function() {} })` - * ^^^^^^^^^^^^^^^^^ - * - `({ [foo]: function() {} })` - * ^^^^^^^^^^^^^^^ - * - `({ foo() {} })` - * ^^^ - * - `({ foo: function* foo() {} })` - * ^^^^^^^^^^^^^^^^^^ - * - `({ foo: function*() {} })` - * ^^^^^^^^^^^^^^ - * - `({ ['foo']: function*() {} })` - * ^^^^^^^^^^^^^^^^^^ - * - `({ [foo]: function*() {} })` - * ^^^^^^^^^^^^^^^^ - * - `({ *foo() {} })` - * ^^^^ - * - `({ foo: async function foo() {} })` - * ^^^^^^^^^^^^^^^^^^^^^^^ - * - `({ foo: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^ - * - `({ ['foo']: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^^^^^ - * - `({ [foo]: async function() {} })` - * ^^^^^^^^^^^^^^^^^^^^^ - * - `({ async foo() {} })` - * ^^^^^^^^^ - * - `({ get foo() {} })` - * ^^^^^^^ - * - `({ set foo(a) {} })` - * ^^^^^^^ - * - `class A { constructor() {} }` - * ^^^^^^^^^^^ - * - `class A { foo() {} }` - * ^^^ - * - `class A { *foo() {} }` - * ^^^^ - * - `class A { async foo() {} }` - * ^^^^^^^^^ - * - `class A { ['foo']() {} }` - * ^^^^^^^ - * - `class A { *['foo']() {} }` - * ^^^^^^^^ - * - `class A { async ['foo']() {} }` - * ^^^^^^^^^^^^^ - * - `class A { [foo]() {} }` - * ^^^^^ - * - `class A { *[foo]() {} }` - * ^^^^^^ - * - `class A { async [foo]() {} }` - * ^^^^^^^^^^^ - * - `class A { get foo() {} }` - * ^^^^^^^ - * - `class A { set foo(a) {} }` - * ^^^^^^^ - * - `class A { static foo() {} }` - * ^^^^^^^^^^ - * - `class A { static *foo() {} }` - * ^^^^^^^^^^^ - * - `class A { static async foo() {} }` - * ^^^^^^^^^^^^^^^^ - * - `class A { static get foo() {} }` - * ^^^^^^^^^^^^^^ - * - `class A { static set foo(a) {} }` - * ^^^^^^^^^^^^^^ - * - `class A { foo = function() {} }` - * ^^^^^^^^^^^^^^ - * - `class A { static foo = function() {} }` - * ^^^^^^^^^^^^^^^^^^^^^ - * - `class A { foo = (a, b) => {} }` - * ^^^^^^ - * @param {ASTNode} node The function node to get. - * @param {SourceCode} sourceCode The source code object to get tokens. - * @returns {string} The location of the function node for reporting. - */ - getFunctionHeadLoc(node, sourceCode) { - const parent = node.parent; - let start; - let end; - - if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") { - start = parent.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } else if (node.type === "ArrowFunctionExpression") { - const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken); - - start = arrowToken.loc.start; - end = arrowToken.loc.end; - } else { - start = node.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - - return { - start: Object.assign({}, start), - end: Object.assign({}, end) - }; - }, - - /** - * Gets next location when the result is not out of bound, otherwise returns null. - * - * Assumptions: - * - * - The given location represents a valid location in the given source code. - * - Columns are 0-based. - * - Lines are 1-based. - * - Column immediately after the last character in a line (not incl. linebreaks) is considered to be a valid location. - * - If the source code ends with a linebreak, `sourceCode.lines` array will have an extra element (empty string) at the end. - * The start (column 0) of that extra line is considered to be a valid location. - * - * Examples of successive locations (line, column): - * - * code: foo - * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> null - * - * code: foo - * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null - * - * code: foo - * locations: (1, 0) -> (1, 1) -> (1, 2) -> (1, 3) -> (2, 0) -> null - * - * code: ab - * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> null - * - * code: ab - * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null - * - * code: ab - * locations: (1, 0) -> (1, 1) -> (2, 0) -> (2, 1) -> (3, 0) -> null - * - * code: a - * locations: (1, 0) -> (1, 1) -> (2, 0) -> (3, 0) -> null - * - * code: - * locations: (1, 0) -> (2, 0) -> null - * - * code: - * locations: (1, 0) -> null - * @param {SourceCode} sourceCode The sourceCode - * @param {{line: number, column: number}} location The location - * @returns {{line: number, column: number} | null} Next location - */ - getNextLocation(sourceCode, { line, column }) { - if (column < sourceCode.lines[line - 1].length) { - return { - line, - column: column + 1 - }; - } - - if (line < sourceCode.lines.length) { - return { - line: line + 1, - column: 0 - }; - } - - return null; - }, - - /** - * Gets the parenthesized text of a node. This is similar to sourceCode.getText(node), but it also includes any parentheses - * surrounding the node. - * @param {SourceCode} sourceCode The source code object - * @param {ASTNode} node An expression node - * @returns {string} The text representing the node, with all surrounding parentheses included - */ - getParenthesisedText(sourceCode, node) { - let leftToken = sourceCode.getFirstToken(node); - let rightToken = sourceCode.getLastToken(node); - - while ( - sourceCode.getTokenBefore(leftToken) && - sourceCode.getTokenBefore(leftToken).type === "Punctuator" && - sourceCode.getTokenBefore(leftToken).value === "(" && - sourceCode.getTokenAfter(rightToken) && - sourceCode.getTokenAfter(rightToken).type === "Punctuator" && - sourceCode.getTokenAfter(rightToken).value === ")" - ) { - leftToken = sourceCode.getTokenBefore(leftToken); - rightToken = sourceCode.getTokenAfter(rightToken); - } - - return sourceCode.getText().slice(leftToken.range[0], rightToken.range[1]); - }, - - /** - * Determine if a node has a possibility to be an Error object - * @param {ASTNode} node ASTNode to check - * @returns {boolean} True if there is a chance it contains an Error obj - */ - couldBeError(node) { - switch (node.type) { - case "Identifier": - case "CallExpression": - case "NewExpression": - case "MemberExpression": - case "TaggedTemplateExpression": - case "YieldExpression": - case "AwaitExpression": - case "ChainExpression": - return true; // possibly an error object. - - case "AssignmentExpression": - if (["=", "&&="].includes(node.operator)) { - return module.exports.couldBeError(node.right); - } - - if (["||=", "??="].includes(node.operator)) { - return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right); - } - - /** - * All other assignment operators are mathematical assignment operators (arithmetic or bitwise). - * An assignment expression with a mathematical operator can either evaluate to a primitive value, - * or throw, depending on the operands. Thus, it cannot evaluate to an `Error` object. - */ - return false; - - case "SequenceExpression": { - const exprs = node.expressions; - - return exprs.length !== 0 && module.exports.couldBeError(exprs.at(-1)); - } - - case "LogicalExpression": - - /* - * If the && operator short-circuits, the left side was falsy and therefore not an error, and if it - * doesn't short-circuit, it takes the value from the right side, so the right side must always be - * a plausible error. A future improvement could verify that the left side could be truthy by - * excluding falsy literals. - */ - if (node.operator === "&&") { - return module.exports.couldBeError(node.right); - } - - return module.exports.couldBeError(node.left) || module.exports.couldBeError(node.right); - - case "ConditionalExpression": - return module.exports.couldBeError(node.consequent) || module.exports.couldBeError(node.alternate); - - default: - return false; - } - }, - - /** - * Check if a given node is a numeric literal or not. - * @param {ASTNode} node The node to check. - * @returns {boolean} `true` if the node is a number or bigint literal. - */ - isNumericLiteral(node) { - return ( - node.type === "Literal" && - (typeof node.value === "number" || Boolean(node.bigint)) - ); - }, - - /** - * Determines whether two tokens can safely be placed next to each other without merging into a single token - * @param {Token|string} leftValue The left token. If this is a string, it will be tokenized and the last token will be used. - * @param {Token|string} rightValue The right token. If this is a string, it will be tokenized and the first token will be used. - * @returns {boolean} If the tokens cannot be safely placed next to each other, returns `false`. If the tokens can be placed - * next to each other, behavior is undefined (although it should return `true` in most cases). - */ - canTokensBeAdjacent(leftValue, rightValue) { - const espreeOptions = { - ecmaVersion: espree.latestEcmaVersion, - comment: true, - range: true - }; - - let leftToken; - - if (typeof leftValue === "string") { - let tokens; - - try { - tokens = espree.tokenize(leftValue, espreeOptions); - } catch { - return false; - } - - const comments = tokens.comments; - - leftToken = tokens.at(-1); - if (comments.length) { - const lastComment = comments.at(-1); - - if (!leftToken || lastComment.range[0] > leftToken.range[0]) { - leftToken = lastComment; - } - } - } else { - leftToken = leftValue; - } - - /* - * If a hashbang comment was passed as a token object from SourceCode, - * its type will be "Shebang" because of the way ESLint itself handles hashbangs. - * If a hashbang comment was passed in a string and then tokenized in this function, - * its type will be "Hashbang" because of the way Espree tokenizes hashbangs. - */ - if (leftToken.type === "Shebang" || leftToken.type === "Hashbang") { - return false; - } - - let rightToken; - - if (typeof rightValue === "string") { - let tokens; - - try { - tokens = espree.tokenize(rightValue, espreeOptions); - } catch { - return false; - } - - const comments = tokens.comments; - - rightToken = tokens[0]; - if (comments.length) { - const firstComment = comments[0]; - - if (!rightToken || firstComment.range[0] < rightToken.range[0]) { - rightToken = firstComment; - } - } - } else { - rightToken = rightValue; - } - - if (leftToken.type === "Punctuator" || rightToken.type === "Punctuator") { - if (leftToken.type === "Punctuator" && rightToken.type === "Punctuator") { - const PLUS_TOKENS = new Set(["+", "++"]); - const MINUS_TOKENS = new Set(["-", "--"]); - - return !( - PLUS_TOKENS.has(leftToken.value) && PLUS_TOKENS.has(rightToken.value) || - MINUS_TOKENS.has(leftToken.value) && MINUS_TOKENS.has(rightToken.value) - ); - } - if (leftToken.type === "Punctuator" && leftToken.value === "/") { - return !["Block", "Line", "RegularExpression"].includes(rightToken.type); - } - return true; - } - - if ( - leftToken.type === "String" || rightToken.type === "String" || - leftToken.type === "Template" || rightToken.type === "Template" - ) { - return true; - } - - if (leftToken.type !== "Numeric" && rightToken.type === "Numeric" && rightToken.value.startsWith(".")) { - return true; - } - - if (leftToken.type === "Block" || rightToken.type === "Block" || rightToken.type === "Line") { - return true; - } - - if (rightToken.type === "PrivateIdentifier") { - return true; - } - - return false; - }, - - /** - * Get the `loc` object of a given name in a `/*globals` directive comment. - * @param {SourceCode} sourceCode The source code to convert index to loc. - * @param {Comment} comment The `/*globals` directive comment which include the name. - * @param {string} name The name to find. - * @returns {SourceLocation} The `loc` object. - */ - getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) { - const namePattern = new RegExp(`[\\s,]${escapeRegExp(name)}(?:$|[\\s,:])`, "gu"); - - // To ignore the first text "global". - namePattern.lastIndex = comment.value.indexOf("global") + 6; - - // Search a given variable name. - const match = namePattern.exec(comment.value); - - // Convert the index to loc. - const start = sourceCode.getLocFromIndex( - comment.range[0] + - "/*".length + - (match ? match.index + 1 : 0) - ); - const end = { - line: start.line, - column: start.column + (match ? name.length : 1) - }; - - return { start, end }; - }, - - /** - * Determines whether the given raw string contains an octal escape sequence - * or a non-octal decimal escape sequence ("\8", "\9"). - * - * "\1", "\2" ... "\7", "\8", "\9" - * "\00", "\01" ... "\07", "\08", "\09" - * - * "\0", when not followed by a digit, is not an octal escape sequence. - * @param {string} rawString A string in its raw representation. - * @returns {boolean} `true` if the string contains at least one octal escape sequence - * or at least one non-octal decimal escape sequence. - */ - hasOctalOrNonOctalDecimalEscapeSequence(rawString) { - return OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN.test(rawString); - }, - - /** - * Determines whether the given node is a template literal without expressions. - * @param {ASTNode} node Node to check. - * @returns {boolean} True if the node is a template literal without expressions. - */ - isStaticTemplateLiteral(node) { - return node.type === "TemplateLiteral" && node.expressions.length === 0; - }, - - isReferenceToGlobalVariable, - isLogicalExpression, - isCoalesceExpression, - isMixedLogicalAndCoalesceExpressions, - isNullLiteral, - getStaticStringValue, - getStaticPropertyName, - skipChainExpression, - isSpecificId, - isSpecificMemberAccess, - equalLiteralValue, - isSameReference, - isLogicalAssignmentOperator, - getSwitchCaseColonToken, - getModuleExportName, - isConstant, - isTopLevelExpressionStatement, - isDirective, - isStartOfExpressionStatement, - needsPrecedingSemicolon -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/char-source.js b/graphql/node_modules/eslint/lib/rules/utils/char-source.js deleted file mode 100644 index 70738625..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/char-source.js +++ /dev/null @@ -1,240 +0,0 @@ -/** - * @fileoverview Utility functions to locate the source text of each code unit in the value of a string literal or template token. - * @author Francesco Trotta - */ - -"use strict"; - -/** - * Represents a code unit produced by the evaluation of a JavaScript common token like a string - * literal or template token. - */ -class CodeUnit { - constructor(start, source) { - this.start = start; - this.source = source; - } - - get end() { - return this.start + this.length; - } - - get length() { - return this.source.length; - } -} - -/** - * An object used to keep track of the position in a source text where the next characters will be read. - */ -class TextReader { - constructor(source) { - this.source = source; - this.pos = 0; - } - - /** - * Advances the reading position of the specified number of characters. - * @param {number} length Number of characters to advance. - * @returns {void} - */ - advance(length) { - this.pos += length; - } - - /** - * Reads characters from the source. - * @param {number} [offset=0] The offset where reading starts, relative to the current position. - * @param {number} [length=1] Number of characters to read. - * @returns {string} A substring of source characters. - */ - read(offset = 0, length = 1) { - const start = offset + this.pos; - - return this.source.slice(start, start + length); - } -} - -const SIMPLE_ESCAPE_SEQUENCES = -{ __proto__: null, b: "\b", f: "\f", n: "\n", r: "\r", t: "\t", v: "\v" }; - -/** - * Reads a hex escape sequence. - * @param {TextReader} reader The reader should be positioned on the first hexadecimal digit. - * @param {number} length The number of hexadecimal digits. - * @returns {string} A code unit. - */ -function readHexSequence(reader, length) { - const str = reader.read(0, length); - const charCode = parseInt(str, 16); - - reader.advance(length); - return String.fromCharCode(charCode); -} - -/** - * Reads a Unicode escape sequence. - * @param {TextReader} reader The reader should be positioned after the "u". - * @returns {string} A code unit. - */ -function readUnicodeSequence(reader) { - const regExp = /\{(?[\dA-Fa-f]+)\}/uy; - - regExp.lastIndex = reader.pos; - const match = regExp.exec(reader.source); - - if (match) { - const codePoint = parseInt(match.groups.hexDigits, 16); - - reader.pos = regExp.lastIndex; - return String.fromCodePoint(codePoint); - } - return readHexSequence(reader, 4); -} - -/** - * Reads an octal escape sequence. - * @param {TextReader} reader The reader should be positioned after the first octal digit. - * @param {number} maxLength The maximum number of octal digits. - * @returns {string} A code unit. - */ -function readOctalSequence(reader, maxLength) { - const [octalStr] = reader.read(-1, maxLength).match(/^[0-7]+/u); - - reader.advance(octalStr.length - 1); - const octal = parseInt(octalStr, 8); - - return String.fromCharCode(octal); -} - -/** - * Reads an escape sequence or line continuation. - * @param {TextReader} reader The reader should be positioned on the backslash. - * @returns {string} A string of zero, one or two code units. - */ -function readEscapeSequenceOrLineContinuation(reader) { - const char = reader.read(1); - - reader.advance(2); - const unitChar = SIMPLE_ESCAPE_SEQUENCES[char]; - - if (unitChar) { - return unitChar; - } - switch (char) { - case "x": - return readHexSequence(reader, 2); - case "u": - return readUnicodeSequence(reader); - case "\r": - if (reader.read() === "\n") { - reader.advance(1); - } - - // fallthrough - case "\n": - case "\u2028": - case "\u2029": - return ""; - case "0": - case "1": - case "2": - case "3": - return readOctalSequence(reader, 3); - case "4": - case "5": - case "6": - case "7": - return readOctalSequence(reader, 2); - default: - return char; - } -} - -/** - * Reads an escape sequence or line continuation and generates the respective `CodeUnit` elements. - * @param {TextReader} reader The reader should be positioned on the backslash. - * @returns {Generator} Zero, one or two `CodeUnit` elements. - */ -function *mapEscapeSequenceOrLineContinuation(reader) { - const start = reader.pos; - const str = readEscapeSequenceOrLineContinuation(reader); - const end = reader.pos; - const source = reader.source.slice(start, end); - - switch (str.length) { - case 0: - break; - case 1: - yield new CodeUnit(start, source); - break; - default: - yield new CodeUnit(start, source); - yield new CodeUnit(start, source); - break; - } -} - -/** - * Parses a string literal. - * @param {string} source The string literal to parse, including the delimiting quotes. - * @returns {CodeUnit[]} A list of code units produced by the string literal. - */ -function parseStringLiteral(source) { - const reader = new TextReader(source); - const quote = reader.read(); - - reader.advance(1); - const codeUnits = []; - - for (;;) { - const char = reader.read(); - - if (char === quote) { - break; - } - if (char === "\\") { - codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader)); - } else { - codeUnits.push(new CodeUnit(reader.pos, char)); - reader.advance(1); - } - } - return codeUnits; -} - -/** - * Parses a template token. - * @param {string} source The template token to parse, including the delimiting sequences `` ` ``, `${` and `}`. - * @returns {CodeUnit[]} A list of code units produced by the template token. - */ -function parseTemplateToken(source) { - const reader = new TextReader(source); - - reader.advance(1); - const codeUnits = []; - - for (;;) { - const char = reader.read(); - - if (char === "`" || char === "$" && reader.read(1) === "{") { - break; - } - if (char === "\\") { - codeUnits.push(...mapEscapeSequenceOrLineContinuation(reader)); - } else { - let unitSource; - - if (char === "\r" && reader.read(1) === "\n") { - unitSource = "\r\n"; - } else { - unitSource = char; - } - codeUnits.push(new CodeUnit(reader.pos, unitSource)); - reader.advance(unitSource.length); - } - } - return codeUnits; -} - -module.exports = { parseStringLiteral, parseTemplateToken }; diff --git a/graphql/node_modules/eslint/lib/rules/utils/fix-tracker.js b/graphql/node_modules/eslint/lib/rules/utils/fix-tracker.js deleted file mode 100644 index 589870b3..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/fix-tracker.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @fileoverview Helper class to aid in constructing fix commands. - * @author Alan Pierce - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./ast-utils"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * A helper class to combine fix options into a fix command. Currently, it - * exposes some "retain" methods that extend the range of the text being - * replaced so that other fixes won't touch that region in the same pass. - */ -class FixTracker { - - /** - * Create a new FixTracker. - * @param {ruleFixer} fixer A ruleFixer instance. - * @param {SourceCode} sourceCode A SourceCode object for the current code. - */ - constructor(fixer, sourceCode) { - this.fixer = fixer; - this.sourceCode = sourceCode; - this.retainedRange = null; - } - - /** - * Mark the given range as "retained", meaning that other fixes may not - * may not modify this region in the same pass. - * @param {int[]} range The range to retain. - * @returns {FixTracker} The same RuleFixer, for chained calls. - */ - retainRange(range) { - this.retainedRange = range; - return this; - } - - /** - * Given a node, find the function containing it (or the entire program) and - * mark it as retained, meaning that other fixes may not modify it in this - * pass. This is useful for avoiding conflicts in fixes that modify control - * flow. - * @param {ASTNode} node The node to use as a starting point. - * @returns {FixTracker} The same RuleFixer, for chained calls. - */ - retainEnclosingFunction(node) { - const functionNode = astUtils.getUpperFunction(node); - - return this.retainRange(functionNode ? functionNode.range : this.sourceCode.ast.range); - } - - /** - * Given a node or token, find the token before and afterward, and mark that - * range as retained, meaning that other fixes may not modify it in this - * pass. This is useful for avoiding conflicts in fixes that make a small - * change to the code where the AST should not be changed. - * @param {ASTNode|Token} nodeOrToken The node or token to use as a starting - * point. The token to the left and right are use in the range. - * @returns {FixTracker} The same RuleFixer, for chained calls. - */ - retainSurroundingTokens(nodeOrToken) { - const tokenBefore = this.sourceCode.getTokenBefore(nodeOrToken) || nodeOrToken; - const tokenAfter = this.sourceCode.getTokenAfter(nodeOrToken) || nodeOrToken; - - return this.retainRange([tokenBefore.range[0], tokenAfter.range[1]]); - } - - /** - * Create a fix command that replaces the given range with the given text, - * accounting for any retained ranges. - * @param {int[]} range The range to remove in the fix. - * @param {string} text The text to insert in place of the range. - * @returns {Object} The fix command. - */ - replaceTextRange(range, text) { - let actualRange; - - if (this.retainedRange) { - actualRange = [ - Math.min(this.retainedRange[0], range[0]), - Math.max(this.retainedRange[1], range[1]) - ]; - } else { - actualRange = range; - } - - return this.fixer.replaceTextRange( - actualRange, - this.sourceCode.text.slice(actualRange[0], range[0]) + - text + - this.sourceCode.text.slice(range[1], actualRange[1]) - ); - } - - /** - * Create a fix command that removes the given node or token, accounting for - * any retained ranges. - * @param {ASTNode|Token} nodeOrToken The node or token to remove. - * @returns {Object} The fix command. - */ - remove(nodeOrToken) { - return this.replaceTextRange(nodeOrToken.range, ""); - } -} - -module.exports = FixTracker; diff --git a/graphql/node_modules/eslint/lib/rules/utils/keywords.js b/graphql/node_modules/eslint/lib/rules/utils/keywords.js deleted file mode 100644 index 3fbb7777..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/keywords.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @fileoverview A shared list of ES3 keywords. - * @author Josh Perez - */ -"use strict"; - -module.exports = [ - "abstract", - "boolean", - "break", - "byte", - "case", - "catch", - "char", - "class", - "const", - "continue", - "debugger", - "default", - "delete", - "do", - "double", - "else", - "enum", - "export", - "extends", - "false", - "final", - "finally", - "float", - "for", - "function", - "goto", - "if", - "implements", - "import", - "in", - "instanceof", - "int", - "interface", - "long", - "native", - "new", - "null", - "package", - "private", - "protected", - "public", - "return", - "short", - "static", - "super", - "switch", - "synchronized", - "this", - "throw", - "throws", - "transient", - "true", - "try", - "typeof", - "var", - "void", - "volatile", - "while", - "with" -]; diff --git a/graphql/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js b/graphql/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js deleted file mode 100644 index 3fa5d83b..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/lazy-loading-rule-map.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @fileoverview `Map` to load rules lazily. - * @author Toru Nagashima - */ -"use strict"; - -const debug = require("debug")("eslint:rules"); - -/** @typedef {import("../../shared/types").Rule} Rule */ - -/** - * The `Map` object that loads each rule when it's accessed. - * @example - * const rules = new LazyLoadingRuleMap([ - * ["eqeqeq", () => require("eqeqeq")], - * ["semi", () => require("semi")], - * ["no-unused-vars", () => require("no-unused-vars")] - * ]); - * - * rules.get("semi"); // call `() => require("semi")` here. - * - * @extends {Map Rule>} - */ -class LazyLoadingRuleMap extends Map { - - /** - * Initialize this map. - * @param {Array<[string, function(): Rule]>} loaders The rule loaders. - */ - constructor(loaders) { - let remaining = loaders.length; - - super( - debug.enabled - ? loaders.map(([ruleId, load]) => { - let cache = null; - - return [ - ruleId, - () => { - if (!cache) { - debug("Loading rule %o (remaining=%d)", ruleId, --remaining); - cache = load(); - } - return cache; - } - ]; - }) - : loaders - ); - - // `super(...iterable)` uses `this.set()`, so disable it here. - Object.defineProperty(LazyLoadingRuleMap.prototype, "set", { - configurable: true, - value: void 0 - }); - } - - /** - * Get a rule. - * Each rule will be loaded on the first access. - * @param {string} ruleId The rule ID to get. - * @returns {Rule|undefined} The rule. - */ - get(ruleId) { - const load = super.get(ruleId); - - return load && load(); - } - - /** - * Iterate rules. - * @returns {IterableIterator} Rules. - */ - *values() { - for (const load of super.values()) { - yield load(); - } - } - - /** - * Iterate rules. - * @returns {IterableIterator<[string, Rule]>} Rules. - */ - *entries() { - for (const [ruleId, load] of super.entries()) { - yield [ruleId, load()]; - } - } - - /** - * Call a function with each rule. - * @param {Function} callbackFn The callback function. - * @param {any} [thisArg] The object to pass to `this` of the callback function. - * @returns {void} - */ - forEach(callbackFn, thisArg) { - for (const [ruleId, load] of super.entries()) { - callbackFn.call(thisArg, load(), ruleId, this); - } - } -} - -// Forbid mutation. -Object.defineProperties(LazyLoadingRuleMap.prototype, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - [Symbol.iterator]: { - configurable: true, - writable: true, - value: LazyLoadingRuleMap.prototype.entries - } -}); - -module.exports = { LazyLoadingRuleMap }; diff --git a/graphql/node_modules/eslint/lib/rules/utils/regular-expressions.js b/graphql/node_modules/eslint/lib/rules/utils/regular-expressions.js deleted file mode 100644 index 90fb3a9a..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/regular-expressions.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @fileoverview Common utils for regular expressions. - * @author Josh Goldberg - * @author Toru Nagashima - */ - -"use strict"; - -const { RegExpValidator } = require("@eslint-community/regexpp"); - -const REGEXPP_LATEST_ECMA_VERSION = 2025; - -/** - * Checks if the given regular expression pattern would be valid with the `u` flag. - * @param {number} ecmaVersion ECMAScript version to parse in. - * @param {string} pattern The regular expression pattern to verify. - * @returns {boolean} `true` if the pattern would be valid with the `u` flag. - * `false` if the pattern would be invalid with the `u` flag or the configured - * ecmaVersion doesn't support the `u` flag. - */ -function isValidWithUnicodeFlag(ecmaVersion, pattern) { - if (ecmaVersion <= 5) { // ecmaVersion <= 5 doesn't support the 'u' flag - return false; - } - - const validator = new RegExpValidator({ - ecmaVersion: Math.min(ecmaVersion, REGEXPP_LATEST_ECMA_VERSION) - }); - - try { - validator.validatePattern(pattern, void 0, void 0, { unicode: /* uFlag = */ true }); - } catch { - return false; - } - - return true; -} - -module.exports = { - isValidWithUnicodeFlag, - REGEXPP_LATEST_ECMA_VERSION -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/unicode/index.js b/graphql/node_modules/eslint/lib/rules/utils/unicode/index.js deleted file mode 100644 index d35d812e..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/unicode/index.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -const isCombiningCharacter = require("./is-combining-character"); -const isEmojiModifier = require("./is-emoji-modifier"); -const isRegionalIndicatorSymbol = require("./is-regional-indicator-symbol"); -const isSurrogatePair = require("./is-surrogate-pair"); - -module.exports = { - isCombiningCharacter, - isEmojiModifier, - isRegionalIndicatorSymbol, - isSurrogatePair -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js b/graphql/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js deleted file mode 100644 index 0498b99a..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -/** - * Check whether a given character is a combining mark or not. - * @param {number} codePoint The character code to check. - * @returns {boolean} `true` if the character belongs to the category, any of `Mc`, `Me`, and `Mn`. - */ -module.exports = function isCombiningCharacter(codePoint) { - return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint)); -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js b/graphql/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js deleted file mode 100644 index 1bd5f557..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -/** - * Check whether a given character is an emoji modifier. - * @param {number} code The character code to check. - * @returns {boolean} `true` if the character is an emoji modifier. - */ -module.exports = function isEmojiModifier(code) { - return code >= 0x1F3FB && code <= 0x1F3FF; -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js b/graphql/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js deleted file mode 100644 index c48ed46e..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -/** - * Check whether a given character is a regional indicator symbol. - * @param {number} code The character code to check. - * @returns {boolean} `true` if the character is a regional indicator symbol. - */ -module.exports = function isRegionalIndicatorSymbol(code) { - return code >= 0x1F1E6 && code <= 0x1F1FF; -}; diff --git a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js b/graphql/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js deleted file mode 100644 index b8e5c1ca..00000000 --- a/graphql/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @author Toru Nagashima - */ -"use strict"; - -/** - * Check whether given two characters are a surrogate pair. - * @param {number} lead The code of the lead character. - * @param {number} tail The code of the tail character. - * @returns {boolean} `true` if the character pair is a surrogate pair. - */ -module.exports = function isSurrogatePair(lead, tail) { - return lead >= 0xD800 && lead < 0xDC00 && tail >= 0xDC00 && tail < 0xE000; -}; diff --git a/graphql/node_modules/eslint/lib/rules/valid-typeof.js b/graphql/node_modules/eslint/lib/rules/valid-typeof.js deleted file mode 100644 index 3818dafe..00000000 --- a/graphql/node_modules/eslint/lib/rules/valid-typeof.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * @fileoverview Ensures that the results of typeof are compared against a valid string - * @author Ian Christian Myers - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "problem", - - docs: { - description: "Enforce comparing `typeof` expressions against valid strings", - recommended: true, - url: "https://eslint.org/docs/latest/rules/valid-typeof" - }, - - hasSuggestions: true, - - schema: [ - { - type: "object", - properties: { - requireStringLiterals: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - messages: { - invalidValue: "Invalid typeof comparison value.", - notString: "Typeof comparisons should be to string literals.", - suggestString: 'Use `"{{type}}"` instead of `{{type}}`.' - } - }, - - create(context) { - - const VALID_TYPES = new Set(["symbol", "undefined", "object", "boolean", "number", "string", "function", "bigint"]), - OPERATORS = new Set(["==", "===", "!=", "!=="]); - const sourceCode = context.sourceCode; - const requireStringLiterals = context.options[0] && context.options[0].requireStringLiterals; - - let globalScope; - - /** - * Checks whether the given node represents a reference to a global variable that is not declared in the source code. - * These identifiers will be allowed, as it is assumed that user has no control over the names of external global variables. - * @param {ASTNode} node `Identifier` node to check. - * @returns {boolean} `true` if the node is a reference to a global variable. - */ - function isReferenceToGlobalVariable(node) { - const variable = globalScope.set.get(node.name); - - return variable && variable.defs.length === 0 && - variable.references.some(ref => ref.identifier === node); - } - - /** - * Determines whether a node is a typeof expression. - * @param {ASTNode} node The node - * @returns {boolean} `true` if the node is a typeof expression - */ - function isTypeofExpression(node) { - return node.type === "UnaryExpression" && node.operator === "typeof"; - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - - Program(node) { - globalScope = sourceCode.getScope(node); - }, - - UnaryExpression(node) { - if (isTypeofExpression(node)) { - const { parent } = node; - - if (parent.type === "BinaryExpression" && OPERATORS.has(parent.operator)) { - const sibling = parent.left === node ? parent.right : parent.left; - - if (sibling.type === "Literal" || astUtils.isStaticTemplateLiteral(sibling)) { - const value = sibling.type === "Literal" ? sibling.value : sibling.quasis[0].value.cooked; - - if (!VALID_TYPES.has(value)) { - context.report({ node: sibling, messageId: "invalidValue" }); - } - } else if (sibling.type === "Identifier" && sibling.name === "undefined" && isReferenceToGlobalVariable(sibling)) { - context.report({ - node: sibling, - messageId: requireStringLiterals ? "notString" : "invalidValue", - suggest: [ - { - messageId: "suggestString", - data: { type: "undefined" }, - fix(fixer) { - return fixer.replaceText(sibling, '"undefined"'); - } - } - ] - }); - } else if (requireStringLiterals && !isTypeofExpression(sibling)) { - context.report({ node: sibling, messageId: "notString" }); - } - } - } - } - - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/vars-on-top.js b/graphql/node_modules/eslint/lib/rules/vars-on-top.js deleted file mode 100644 index 81f5d62d..00000000 --- a/graphql/node_modules/eslint/lib/rules/vars-on-top.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * @fileoverview Rule to enforce var declarations are only at the top of a function. - * @author Danny Fritz - * @author Gyandeep Singh - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: "Require `var` declarations be placed at the top of their containing scope", - recommended: false, - url: "https://eslint.org/docs/latest/rules/vars-on-top" - }, - - schema: [], - messages: { - top: "All 'var' declarations must be at the top of the function scope." - } - }, - - create(context) { - - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - - /** - * Has AST suggesting a directive. - * @param {ASTNode} node any node - * @returns {boolean} whether the given node structurally represents a directive - */ - function looksLikeDirective(node) { - return node.type === "ExpressionStatement" && - node.expression.type === "Literal" && typeof node.expression.value === "string"; - } - - /** - * Check to see if its a ES6 import declaration - * @param {ASTNode} node any node - * @returns {boolean} whether the given node represents a import declaration - */ - function looksLikeImport(node) { - return node.type === "ImportDeclaration" || node.type === "ImportSpecifier" || - node.type === "ImportDefaultSpecifier" || node.type === "ImportNamespaceSpecifier"; - } - - /** - * Checks whether a given node is a variable declaration or not. - * @param {ASTNode} node any node - * @returns {boolean} `true` if the node is a variable declaration. - */ - function isVariableDeclaration(node) { - return ( - node.type === "VariableDeclaration" || - ( - node.type === "ExportNamedDeclaration" && - node.declaration && - node.declaration.type === "VariableDeclaration" - ) - ); - } - - /** - * Checks whether this variable is on top of the block body - * @param {ASTNode} node The node to check - * @param {ASTNode[]} statements collection of ASTNodes for the parent node block - * @returns {boolean} True if var is on top otherwise false - */ - function isVarOnTop(node, statements) { - const l = statements.length; - let i = 0; - - // Skip over directives and imports. Static blocks don't have either. - if (node.parent.type !== "StaticBlock") { - for (; i < l; ++i) { - if (!looksLikeDirective(statements[i]) && !looksLikeImport(statements[i])) { - break; - } - } - } - - for (; i < l; ++i) { - if (!isVariableDeclaration(statements[i])) { - return false; - } - if (statements[i] === node) { - return true; - } - } - - return false; - } - - /** - * Checks whether variable is on top at the global level - * @param {ASTNode} node The node to check - * @param {ASTNode} parent Parent of the node - * @returns {void} - */ - function globalVarCheck(node, parent) { - if (!isVarOnTop(node, parent.body)) { - context.report({ node, messageId: "top" }); - } - } - - /** - * Checks whether variable is on top at functional block scope level - * @param {ASTNode} node The node to check - * @returns {void} - */ - function blockScopeVarCheck(node) { - const { parent } = node; - - if ( - parent.type === "BlockStatement" && - /Function/u.test(parent.parent.type) && - isVarOnTop(node, parent.body) - ) { - return; - } - - if ( - parent.type === "StaticBlock" && - isVarOnTop(node, parent.body) - ) { - return; - } - - context.report({ node, messageId: "top" }); - } - - //-------------------------------------------------------------------------- - // Public API - //-------------------------------------------------------------------------- - - return { - "VariableDeclaration[kind='var']"(node) { - if (node.parent.type === "ExportNamedDeclaration") { - globalVarCheck(node.parent, node.parent.parent); - } else if (node.parent.type === "Program") { - globalVarCheck(node, node.parent); - } else { - blockScopeVarCheck(node); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/wrap-iife.js b/graphql/node_modules/eslint/lib/rules/wrap-iife.js deleted file mode 100644 index 51807106..00000000 --- a/graphql/node_modules/eslint/lib/rules/wrap-iife.js +++ /dev/null @@ -1,207 +0,0 @@ -/** - * @fileoverview Rule to flag when IIFE is not wrapped in parens - * @author Ilya Volodin - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const astUtils = require("./utils/ast-utils"); -const eslintUtils = require("@eslint-community/eslint-utils"); - -//---------------------------------------------------------------------- -// Helpers -//---------------------------------------------------------------------- - -/** - * Check if the given node is callee of a `NewExpression` node - * @param {ASTNode} node node to check - * @returns {boolean} True if the node is callee of a `NewExpression` node - * @private - */ -function isCalleeOfNewExpression(node) { - const maybeCallee = node.parent.type === "ChainExpression" - ? node.parent - : node; - - return ( - maybeCallee.parent.type === "NewExpression" && - maybeCallee.parent.callee === maybeCallee - ); -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require parentheses around immediate `function` invocations", - recommended: false, - url: "https://eslint.org/docs/latest/rules/wrap-iife" - }, - - schema: [ - { - enum: ["outside", "inside", "any"] - }, - { - type: "object", - properties: { - functionPrototypeMethods: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "code", - messages: { - wrapInvocation: "Wrap an immediate function invocation in parentheses.", - wrapExpression: "Wrap only the function expression in parens.", - moveInvocation: "Move the invocation into the parens that contain the function." - } - }, - - create(context) { - - const style = context.options[0] || "outside"; - const includeFunctionPrototypeMethods = context.options[1] && context.options[1].functionPrototypeMethods; - - const sourceCode = context.sourceCode; - - /** - * Check if the node is wrapped in any (). All parens count: grouping parens and parens for constructs such as if() - * @param {ASTNode} node node to evaluate - * @returns {boolean} True if it is wrapped in any parens - * @private - */ - function isWrappedInAnyParens(node) { - return astUtils.isParenthesised(sourceCode, node); - } - - /** - * Check if the node is wrapped in grouping (). Parens for constructs such as if() don't count - * @param {ASTNode} node node to evaluate - * @returns {boolean} True if it is wrapped in grouping parens - * @private - */ - function isWrappedInGroupingParens(node) { - return eslintUtils.isParenthesized(1, node, sourceCode); - } - - /** - * Get the function node from an IIFE - * @param {ASTNode} node node to evaluate - * @returns {ASTNode} node that is the function expression of the given IIFE, or null if none exist - */ - function getFunctionNodeFromIIFE(node) { - const callee = astUtils.skipChainExpression(node.callee); - - if (callee.type === "FunctionExpression") { - return callee; - } - - if (includeFunctionPrototypeMethods && - callee.type === "MemberExpression" && - callee.object.type === "FunctionExpression" && - (astUtils.getStaticPropertyName(callee) === "call" || astUtils.getStaticPropertyName(callee) === "apply") - ) { - return callee.object; - } - - return null; - } - - - return { - CallExpression(node) { - const innerNode = getFunctionNodeFromIIFE(node); - - if (!innerNode) { - return; - } - - const isCallExpressionWrapped = isWrappedInAnyParens(node), - isFunctionExpressionWrapped = isWrappedInAnyParens(innerNode); - - if (!isCallExpressionWrapped && !isFunctionExpressionWrapped) { - context.report({ - node, - messageId: "wrapInvocation", - fix(fixer) { - const nodeToSurround = style === "inside" ? innerNode : node; - - return fixer.replaceText(nodeToSurround, `(${sourceCode.getText(nodeToSurround)})`); - } - }); - } else if (style === "inside" && !isFunctionExpressionWrapped) { - context.report({ - node, - messageId: "wrapExpression", - fix(fixer) { - - // The outer call expression will always be wrapped at this point. - - if (isWrappedInGroupingParens(node) && !isCalleeOfNewExpression(node)) { - - /* - * Parenthesize the function expression and remove unnecessary grouping parens around the call expression. - * Replace the range between the end of the function expression and the end of the call expression. - * for example, in `(function(foo) {}(bar))`, the range `(bar))` should get replaced with `)(bar)`. - */ - - const parenAfter = sourceCode.getTokenAfter(node); - - return fixer.replaceTextRange( - [innerNode.range[1], parenAfter.range[1]], - `)${sourceCode.getText().slice(innerNode.range[1], parenAfter.range[0])}` - ); - } - - /* - * Call expression is wrapped in mandatory parens such as if(), or in necessary grouping parens. - * These parens cannot be removed, so just parenthesize the function expression. - */ - - return fixer.replaceText(innerNode, `(${sourceCode.getText(innerNode)})`); - } - }); - } else if (style === "outside" && !isCallExpressionWrapped) { - context.report({ - node, - messageId: "moveInvocation", - fix(fixer) { - - /* - * The inner function expression will always be wrapped at this point. - * It's only necessary to replace the range between the end of the function expression - * and the call expression. For example, in `(function(foo) {})(bar)`, the range `)(bar)` - * should get replaced with `(bar))`. - */ - const parenAfter = sourceCode.getTokenAfter(innerNode); - - return fixer.replaceTextRange( - [parenAfter.range[0], node.range[1]], - `${sourceCode.getText().slice(parenAfter.range[1], node.range[1])})` - ); - } - }); - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/wrap-regex.js b/graphql/node_modules/eslint/lib/rules/wrap-regex.js deleted file mode 100644 index 9e2808d6..00000000 --- a/graphql/node_modules/eslint/lib/rules/wrap-regex.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @fileoverview Rule to flag when regex literals are not wrapped in parens - * @author Matt DuVall - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require parenthesis around regex literals", - recommended: false, - url: "https://eslint.org/docs/latest/rules/wrap-regex" - }, - - schema: [], - fixable: "code", - - messages: { - requireParens: "Wrap the regexp literal in parens to disambiguate the slash." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - return { - - Literal(node) { - const token = sourceCode.getFirstToken(node), - nodeType = token.type; - - if (nodeType === "RegularExpression") { - const beforeToken = sourceCode.getTokenBefore(node); - const afterToken = sourceCode.getTokenAfter(node); - const { parent } = node; - - if (parent.type === "MemberExpression" && parent.object === node && - !(beforeToken && beforeToken.value === "(" && afterToken && afterToken.value === ")")) { - context.report({ - node, - messageId: "requireParens", - fix: fixer => fixer.replaceText(node, `(${sourceCode.getText(node)})`) - }); - } - } - } - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/yield-star-spacing.js b/graphql/node_modules/eslint/lib/rules/yield-star-spacing.js deleted file mode 100644 index 5cf3804a..00000000 --- a/graphql/node_modules/eslint/lib/rules/yield-star-spacing.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * @fileoverview Rule to check the spacing around the * in yield* expressions. - * @author Bryan Smith - * @deprecated in ESLint v8.53.0 - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - deprecated: true, - replacedBy: [], - type: "layout", - - docs: { - description: "Require or disallow spacing around the `*` in `yield*` expressions", - recommended: false, - url: "https://eslint.org/docs/latest/rules/yield-star-spacing" - }, - - fixable: "whitespace", - - schema: [ - { - oneOf: [ - { - enum: ["before", "after", "both", "neither"] - }, - { - type: "object", - properties: { - before: { type: "boolean" }, - after: { type: "boolean" } - }, - additionalProperties: false - } - ] - } - ], - messages: { - missingBefore: "Missing space before *.", - missingAfter: "Missing space after *.", - unexpectedBefore: "Unexpected space before *.", - unexpectedAfter: "Unexpected space after *." - } - }, - - create(context) { - const sourceCode = context.sourceCode; - - const mode = (function(option) { - if (!option || typeof option === "string") { - return { - before: { before: true, after: false }, - after: { before: false, after: true }, - both: { before: true, after: true }, - neither: { before: false, after: false } - }[option || "after"]; - } - return option; - }(context.options[0])); - - /** - * Checks the spacing between two tokens before or after the star token. - * @param {string} side Either "before" or "after". - * @param {Token} leftToken `function` keyword token if side is "before", or - * star token if side is "after". - * @param {Token} rightToken Star token if side is "before", or identifier - * token if side is "after". - * @returns {void} - */ - function checkSpacing(side, leftToken, rightToken) { - if (sourceCode.isSpaceBetweenTokens(leftToken, rightToken) !== mode[side]) { - const after = leftToken.value === "*"; - const spaceRequired = mode[side]; - const node = after ? leftToken : rightToken; - let messageId; - - if (spaceRequired) { - messageId = side === "before" ? "missingBefore" : "missingAfter"; - } else { - messageId = side === "before" ? "unexpectedBefore" : "unexpectedAfter"; - } - - context.report({ - node, - messageId, - fix(fixer) { - if (spaceRequired) { - if (after) { - return fixer.insertTextAfter(node, " "); - } - return fixer.insertTextBefore(node, " "); - } - return fixer.removeRange([leftToken.range[1], rightToken.range[0]]); - } - }); - } - } - - /** - * Enforces the spacing around the star if node is a yield* expression. - * @param {ASTNode} node A yield expression node. - * @returns {void} - */ - function checkExpression(node) { - if (!node.delegate) { - return; - } - - const tokens = sourceCode.getFirstTokens(node, 3); - const yieldToken = tokens[0]; - const starToken = tokens[1]; - const nextToken = tokens[2]; - - checkSpacing("before", yieldToken, starToken); - checkSpacing("after", starToken, nextToken); - } - - return { - YieldExpression: checkExpression - }; - - } -}; diff --git a/graphql/node_modules/eslint/lib/rules/yoda.js b/graphql/node_modules/eslint/lib/rules/yoda.js deleted file mode 100644 index af8f5251..00000000 --- a/graphql/node_modules/eslint/lib/rules/yoda.js +++ /dev/null @@ -1,353 +0,0 @@ -/** - * @fileoverview Rule to require or disallow yoda comparisons - * @author Nicholas C. Zakas - */ -"use strict"; - -//-------------------------------------------------------------------------- -// Requirements -//-------------------------------------------------------------------------- - -const astUtils = require("./utils/ast-utils"); - -//-------------------------------------------------------------------------- -// Helpers -//-------------------------------------------------------------------------- - -/** - * Determines whether an operator is a comparison operator. - * @param {string} operator The operator to check. - * @returns {boolean} Whether or not it is a comparison operator. - */ -function isComparisonOperator(operator) { - return /^(==|===|!=|!==|<|>|<=|>=)$/u.test(operator); -} - -/** - * Determines whether an operator is an equality operator. - * @param {string} operator The operator to check. - * @returns {boolean} Whether or not it is an equality operator. - */ -function isEqualityOperator(operator) { - return /^(==|===)$/u.test(operator); -} - -/** - * Determines whether an operator is one used in a range test. - * Allowed operators are `<` and `<=`. - * @param {string} operator The operator to check. - * @returns {boolean} Whether the operator is used in range tests. - */ -function isRangeTestOperator(operator) { - return ["<", "<="].includes(operator); -} - -/** - * Determines whether a non-Literal node is a negative number that should be - * treated as if it were a single Literal node. - * @param {ASTNode} node Node to test. - * @returns {boolean} True if the node is a negative number that looks like a - * real literal and should be treated as such. - */ -function isNegativeNumericLiteral(node) { - return ( - node.type === "UnaryExpression" && - node.operator === "-" && - node.prefix && - astUtils.isNumericLiteral(node.argument) - ); -} - -/** - * Determines whether a non-Literal node should be treated as a single Literal node. - * @param {ASTNode} node Node to test - * @returns {boolean} True if the node should be treated as a single Literal node. - */ -function looksLikeLiteral(node) { - return isNegativeNumericLiteral(node) || astUtils.isStaticTemplateLiteral(node); -} - -/** - * Attempts to derive a Literal node from nodes that are treated like literals. - * @param {ASTNode} node Node to normalize. - * @returns {ASTNode} One of the following options. - * 1. The original node if the node is already a Literal - * 2. A normalized Literal node with the negative number as the value if the - * node represents a negative number literal. - * 3. A normalized Literal node with the string as the value if the node is - * a Template Literal without expression. - * 4. Otherwise `null`. - */ -function getNormalizedLiteral(node) { - if (node.type === "Literal") { - return node; - } - - if (isNegativeNumericLiteral(node)) { - return { - type: "Literal", - value: -node.argument.value, - raw: `-${node.argument.value}` - }; - } - - if (astUtils.isStaticTemplateLiteral(node)) { - return { - type: "Literal", - value: node.quasis[0].value.cooked, - raw: node.quasis[0].value.raw - }; - } - - return null; -} - -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ - -/** @type {import('../shared/types').Rule} */ -module.exports = { - meta: { - type: "suggestion", - - docs: { - description: 'Require or disallow "Yoda" conditions', - recommended: false, - url: "https://eslint.org/docs/latest/rules/yoda" - }, - - schema: [ - { - enum: ["always", "never"] - }, - { - type: "object", - properties: { - exceptRange: { - type: "boolean", - default: false - }, - onlyEquality: { - type: "boolean", - default: false - } - }, - additionalProperties: false - } - ], - - fixable: "code", - messages: { - expected: - "Expected literal to be on the {{expectedSide}} side of {{operator}}." - } - }, - - create(context) { - - // Default to "never" (!always) if no option - const always = context.options[0] === "always"; - const exceptRange = - context.options[1] && context.options[1].exceptRange; - const onlyEquality = - context.options[1] && context.options[1].onlyEquality; - - const sourceCode = context.sourceCode; - - /** - * Determines whether node represents a range test. - * A range test is a "between" test like `(0 <= x && x < 1)` or an "outside" - * test like `(x < 0 || 1 <= x)`. It must be wrapped in parentheses, and - * both operators must be `<` or `<=`. Finally, the literal on the left side - * must be less than or equal to the literal on the right side so that the - * test makes any sense. - * @param {ASTNode} node LogicalExpression node to test. - * @returns {boolean} Whether node is a range test. - */ - function isRangeTest(node) { - const left = node.left, - right = node.right; - - /** - * Determines whether node is of the form `0 <= x && x < 1`. - * @returns {boolean} Whether node is a "between" range test. - */ - function isBetweenTest() { - if (node.operator === "&&" && astUtils.isSameReference(left.right, right.left)) { - const leftLiteral = getNormalizedLiteral(left.left); - const rightLiteral = getNormalizedLiteral(right.right); - - if (leftLiteral === null && rightLiteral === null) { - return false; - } - - if (rightLiteral === null || leftLiteral === null) { - return true; - } - - if (leftLiteral.value <= rightLiteral.value) { - return true; - } - } - return false; - } - - /** - * Determines whether node is of the form `x < 0 || 1 <= x`. - * @returns {boolean} Whether node is an "outside" range test. - */ - function isOutsideTest() { - if (node.operator === "||" && astUtils.isSameReference(left.left, right.right)) { - const leftLiteral = getNormalizedLiteral(left.right); - const rightLiteral = getNormalizedLiteral(right.left); - - if (leftLiteral === null && rightLiteral === null) { - return false; - } - - if (rightLiteral === null || leftLiteral === null) { - return true; - } - - if (leftLiteral.value <= rightLiteral.value) { - return true; - } - } - - return false; - } - - /** - * Determines whether node is wrapped in parentheses. - * @returns {boolean} Whether node is preceded immediately by an open - * paren token and followed immediately by a close - * paren token. - */ - function isParenWrapped() { - return astUtils.isParenthesised(sourceCode, node); - } - - return ( - node.type === "LogicalExpression" && - left.type === "BinaryExpression" && - right.type === "BinaryExpression" && - isRangeTestOperator(left.operator) && - isRangeTestOperator(right.operator) && - (isBetweenTest() || isOutsideTest()) && - isParenWrapped() - ); - } - - const OPERATOR_FLIP_MAP = { - "===": "===", - "!==": "!==", - "==": "==", - "!=": "!=", - "<": ">", - ">": "<", - "<=": ">=", - ">=": "<=" - }; - - /** - * Returns a string representation of a BinaryExpression node with its sides/operator flipped around. - * @param {ASTNode} node The BinaryExpression node - * @returns {string} A string representation of the node with the sides and operator flipped - */ - function getFlippedString(node) { - const operatorToken = sourceCode.getFirstTokenBetween( - node.left, - node.right, - token => token.value === node.operator - ); - const lastLeftToken = sourceCode.getTokenBefore(operatorToken); - const firstRightToken = sourceCode.getTokenAfter(operatorToken); - - const source = sourceCode.getText(); - - const leftText = source.slice( - node.range[0], - lastLeftToken.range[1] - ); - const textBeforeOperator = source.slice( - lastLeftToken.range[1], - operatorToken.range[0] - ); - const textAfterOperator = source.slice( - operatorToken.range[1], - firstRightToken.range[0] - ); - const rightText = source.slice( - firstRightToken.range[0], - node.range[1] - ); - - const tokenBefore = sourceCode.getTokenBefore(node); - const tokenAfter = sourceCode.getTokenAfter(node); - let prefix = ""; - let suffix = ""; - - if ( - tokenBefore && - tokenBefore.range[1] === node.range[0] && - !astUtils.canTokensBeAdjacent(tokenBefore, firstRightToken) - ) { - prefix = " "; - } - - if ( - tokenAfter && - node.range[1] === tokenAfter.range[0] && - !astUtils.canTokensBeAdjacent(lastLeftToken, tokenAfter) - ) { - suffix = " "; - } - - return ( - prefix + - rightText + - textBeforeOperator + - OPERATOR_FLIP_MAP[operatorToken.value] + - textAfterOperator + - leftText + - suffix - ); - } - - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - - return { - BinaryExpression(node) { - const expectedLiteral = always ? node.left : node.right; - const expectedNonLiteral = always ? node.right : node.left; - - // If `expectedLiteral` is not a literal, and `expectedNonLiteral` is a literal, raise an error. - if ( - (expectedNonLiteral.type === "Literal" || - looksLikeLiteral(expectedNonLiteral)) && - !( - expectedLiteral.type === "Literal" || - looksLikeLiteral(expectedLiteral) - ) && - !(!isEqualityOperator(node.operator) && onlyEquality) && - isComparisonOperator(node.operator) && - !(exceptRange && isRangeTest(node.parent)) - ) { - context.report({ - node, - messageId: "expected", - data: { - operator: node.operator, - expectedSide: always ? "left" : "right" - }, - fix: fixer => - fixer.replaceText(node, getFlippedString(node)) - }); - } - } - }; - } -}; diff --git a/graphql/node_modules/eslint/lib/shared/ajv.js b/graphql/node_modules/eslint/lib/shared/ajv.js deleted file mode 100644 index f4f6a621..00000000 --- a/graphql/node_modules/eslint/lib/shared/ajv.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const Ajv = require("ajv"), - metaSchema = require("ajv/lib/refs/json-schema-draft-04.json"); - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = (additionalOptions = {}) => { - const ajv = new Ajv({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle -- Ajv's API - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; diff --git a/graphql/node_modules/eslint/lib/shared/ast-utils.js b/graphql/node_modules/eslint/lib/shared/ast-utils.js deleted file mode 100644 index 4ebd49c3..00000000 --- a/graphql/node_modules/eslint/lib/shared/ast-utils.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @fileoverview Common utils for AST. - * - * This file contains only shared items for core and rules. - * If you make a utility for rules, please see `../rules/utils/ast-utils.js`. - * - * @author Toru Nagashima - */ -"use strict"; - -const breakableTypePattern = /^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u; -const lineBreakPattern = /\r\n|[\r\n\u2028\u2029]/u; -const shebangPattern = /^#!([^\r\n]+)/u; - -/** - * Creates a version of the `lineBreakPattern` regex with the global flag. - * Global regexes are mutable, so this needs to be a function instead of a constant. - * @returns {RegExp} A global regular expression that matches line terminators - */ -function createGlobalLinebreakMatcher() { - return new RegExp(lineBreakPattern.source, "gu"); -} - -module.exports = { - breakableTypePattern, - lineBreakPattern, - createGlobalLinebreakMatcher, - shebangPattern -}; diff --git a/graphql/node_modules/eslint/lib/shared/directives.js b/graphql/node_modules/eslint/lib/shared/directives.js deleted file mode 100644 index ff67b00a..00000000 --- a/graphql/node_modules/eslint/lib/shared/directives.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview Common utils for directives. - * - * This file contains only shared items for directives. - * If you make a utility for rules, please see `../rules/utils/ast-utils.js`. - * - * @author gfyoung - */ -"use strict"; - -const directivesPattern = /^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u; - -module.exports = { - directivesPattern -}; diff --git a/graphql/node_modules/eslint/lib/shared/flags.js b/graphql/node_modules/eslint/lib/shared/flags.js deleted file mode 100644 index 9c66efe8..00000000 --- a/graphql/node_modules/eslint/lib/shared/flags.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @fileoverview Shared flags for ESLint. - */ - -"use strict"; - -/** - * The set of flags that change ESLint behavior with a description. - * @type {Map} - */ -const activeFlags = new Map([ - ["test_only", "Used only for testing."], - ["unstable_ts_config", "Enable TypeScript configuration files."] -]); - -/** - * The set of flags that used to be active but no longer have an effect. - * @type {Map} - */ -const inactiveFlags = new Map([ - ["test_only_old", "Used only for testing."] -]); - -module.exports = { - activeFlags, - inactiveFlags -}; diff --git a/graphql/node_modules/eslint/lib/shared/logging.js b/graphql/node_modules/eslint/lib/shared/logging.js deleted file mode 100644 index 9310e586..00000000 --- a/graphql/node_modules/eslint/lib/shared/logging.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview Handle logging for ESLint - * @author Gyandeep Singh - */ - -"use strict"; - -/* eslint no-console: "off" -- Logging util */ - -/* c8 ignore next */ -module.exports = { - - /** - * Cover for console.info - * @param {...any} args The elements to log. - * @returns {void} - */ - info(...args) { - console.log(...args); - }, - - /** - * Cover for console.warn - * @param {...any} args The elements to log. - * @returns {void} - */ - warn(...args) { - console.warn(...args); - }, - - /** - * Cover for console.error - * @param {...any} args The elements to log. - * @returns {void} - */ - error(...args) { - console.error(...args); - } -}; diff --git a/graphql/node_modules/eslint/lib/shared/runtime-info.js b/graphql/node_modules/eslint/lib/shared/runtime-info.js deleted file mode 100644 index 29de6fc8..00000000 --- a/graphql/node_modules/eslint/lib/shared/runtime-info.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * @fileoverview Utility to get information about the execution environment. - * @author Kai Cataldo - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const path = require("node:path"); -const spawn = require("cross-spawn"); -const os = require("node:os"); -const log = require("../shared/logging"); -const packageJson = require("../../package.json"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Generates and returns execution environment information. - * @returns {string} A string that contains execution environment information. - */ -function environment() { - const cache = new Map(); - - /** - * Checks if a path is a child of a directory. - * @param {string} parentPath The parent path to check. - * @param {string} childPath The path to check. - * @returns {boolean} Whether or not the given path is a child of a directory. - */ - function isChildOfDirectory(parentPath, childPath) { - return !path.relative(parentPath, childPath).startsWith(".."); - } - - /** - * Synchronously executes a shell command and formats the result. - * @param {string} cmd The command to execute. - * @param {Array} args The arguments to be executed with the command. - * @throws {Error} As may be collected by `cross-spawn.sync`. - * @returns {string} The version returned by the command. - */ - function execCommand(cmd, args) { - const key = [cmd, ...args].join(" "); - - if (cache.has(key)) { - return cache.get(key); - } - - const process = spawn.sync(cmd, args, { encoding: "utf8" }); - - if (process.error) { - throw process.error; - } - - const result = process.stdout.trim(); - - cache.set(key, result); - return result; - } - - /** - * Normalizes a version number. - * @param {string} versionStr The string to normalize. - * @returns {string} The normalized version number. - */ - function normalizeVersionStr(versionStr) { - return versionStr.startsWith("v") ? versionStr : `v${versionStr}`; - } - - /** - * Gets bin version. - * @param {string} bin The bin to check. - * @throws {Error} As may be collected by `cross-spawn.sync`. - * @returns {string} The normalized version returned by the command. - */ - function getBinVersion(bin) { - const binArgs = ["--version"]; - - try { - return normalizeVersionStr(execCommand(bin, binArgs)); - } catch (e) { - log.error(`Error finding ${bin} version running the command \`${bin} ${binArgs.join(" ")}\``); - throw e; - } - } - - /** - * Gets installed npm package version. - * @param {string} pkg The package to check. - * @param {boolean} global Whether to check globally or not. - * @throws {Error} As may be collected by `cross-spawn.sync`. - * @returns {string} The normalized version returned by the command. - */ - function getNpmPackageVersion(pkg, { global = false } = {}) { - const npmBinArgs = ["bin", "-g"]; - const npmLsArgs = ["ls", "--depth=0", "--json", pkg]; - - if (global) { - npmLsArgs.push("-g"); - } - - try { - const parsedStdout = JSON.parse(execCommand("npm", npmLsArgs)); - - /* - * Checking globally returns an empty JSON object, while local checks - * include the name and version of the local project. - */ - if (Object.keys(parsedStdout).length === 0 || !(parsedStdout.dependencies && parsedStdout.dependencies.eslint)) { - return "Not found"; - } - - const [, processBinPath] = process.argv; - let npmBinPath; - - try { - npmBinPath = execCommand("npm", npmBinArgs); - } catch (e) { - log.error(`Error finding npm binary path when running command \`npm ${npmBinArgs.join(" ")}\``); - throw e; - } - - const isGlobal = isChildOfDirectory(npmBinPath, processBinPath); - let pkgVersion = parsedStdout.dependencies.eslint.version; - - if ((global && isGlobal) || (!global && !isGlobal)) { - pkgVersion += " (Currently used)"; - } - - return normalizeVersionStr(pkgVersion); - } catch (e) { - log.error(`Error finding ${pkg} version running the command \`npm ${npmLsArgs.join(" ")}\``); - throw e; - } - } - - return [ - "Environment Info:", - "", - `Node version: ${getBinVersion("node")}`, - `npm version: ${getBinVersion("npm")}`, - `Local ESLint version: ${getNpmPackageVersion("eslint", { global: false })}`, - `Global ESLint version: ${getNpmPackageVersion("eslint", { global: true })}`, - `Operating System: ${os.platform()} ${os.release()}` - ].join("\n"); -} - -/** - * Returns version of currently executing ESLint. - * @returns {string} The version from the currently executing ESLint's package.json. - */ -function version() { - return `v${packageJson.version}`; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -module.exports = { - __esModule: true, // Indicate intent for imports, remove ambiguity for Knip (see: https://github.com/eslint/eslint/pull/18005#discussion_r1484422616) - environment, - version -}; diff --git a/graphql/node_modules/eslint/lib/shared/serialization.js b/graphql/node_modules/eslint/lib/shared/serialization.js deleted file mode 100644 index 69f5710f..00000000 --- a/graphql/node_modules/eslint/lib/shared/serialization.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview Serialization utils. - * @author Bryan Mishkin - */ - -"use strict"; - -/** - * Check if a value is a primitive or plain object created by the Object constructor. - * @param {any} val the value to check - * @returns {boolean} true if so - * @private - */ -function isSerializablePrimitiveOrPlainObject(val) { - return ( - val === null || - typeof val === "string" || - typeof val === "boolean" || - typeof val === "number" || - (typeof val === "object" && val.constructor === Object) || - Array.isArray(val) - ); -} - -/** - * Check if a value is serializable. - * Functions or objects like RegExp cannot be serialized by JSON.stringify(). - * Inspired by: https://stackoverflow.com/questions/30579940/reliable-way-to-check-if-objects-is-serializable-in-javascript - * @param {any} val the value - * @returns {boolean} true if the value is serializable - */ -function isSerializable(val) { - if (!isSerializablePrimitiveOrPlainObject(val)) { - return false; - } - if (typeof val === "object") { - for (const property in val) { - if (Object.hasOwn(val, property)) { - if (!isSerializablePrimitiveOrPlainObject(val[property])) { - return false; - } - if (typeof val[property] === "object") { - if (!isSerializable(val[property])) { - return false; - } - } - } - } - } - return true; -} - -module.exports = { - isSerializable -}; diff --git a/graphql/node_modules/eslint/lib/shared/severity.js b/graphql/node_modules/eslint/lib/shared/severity.js deleted file mode 100644 index 6b21469a..00000000 --- a/graphql/node_modules/eslint/lib/shared/severity.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @fileoverview Helpers for severity values (e.g. normalizing different types). - * @author Bryan Mishkin - */ - -"use strict"; - -/** - * Convert severity value of different types to a string. - * @param {string|number} severity severity value - * @throws error if severity is invalid - * @returns {string} severity string - */ -function normalizeSeverityToString(severity) { - if ([2, "2", "error"].includes(severity)) { - return "error"; - } - if ([1, "1", "warn"].includes(severity)) { - return "warn"; - } - if ([0, "0", "off"].includes(severity)) { - return "off"; - } - throw new Error(`Invalid severity value: ${severity}`); -} - -/** - * Convert severity value of different types to a number. - * @param {string|number} severity severity value - * @throws error if severity is invalid - * @returns {number} severity number - */ -function normalizeSeverityToNumber(severity) { - if ([2, "2", "error"].includes(severity)) { - return 2; - } - if ([1, "1", "warn"].includes(severity)) { - return 1; - } - if ([0, "0", "off"].includes(severity)) { - return 0; - } - throw new Error(`Invalid severity value: ${severity}`); -} - -module.exports = { - normalizeSeverityToString, - normalizeSeverityToNumber -}; diff --git a/graphql/node_modules/eslint/lib/shared/stats.js b/graphql/node_modules/eslint/lib/shared/stats.js deleted file mode 100644 index c5d4d188..00000000 --- a/graphql/node_modules/eslint/lib/shared/stats.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @fileoverview Provides helper functions to start/stop the time measurements - * that are provided by the ESLint 'stats' option. - * @author Mara Kiefer - */ -"use strict"; - -/** - * Start time measurement - * @returns {[number, number]} t variable for tracking time - */ -function startTime() { - return process.hrtime(); -} - -/** - * End time measurement - * @param {[number, number]} t Variable for tracking time - * @returns {number} The measured time in milliseconds - */ -function endTime(t) { - const time = process.hrtime(t); - - return time[0] * 1e3 + time[1] / 1e6; -} - -module.exports = { - startTime, - endTime -}; diff --git a/graphql/node_modules/eslint/lib/shared/string-utils.js b/graphql/node_modules/eslint/lib/shared/string-utils.js deleted file mode 100644 index 31d0df98..00000000 --- a/graphql/node_modules/eslint/lib/shared/string-utils.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @fileoverview Utilities to operate on strings. - * @author Stephen Wade - */ - -"use strict"; - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// eslint-disable-next-line no-control-regex -- intentionally including control characters -const ASCII_REGEX = /^[\u0000-\u007f]*$/u; - -/** @type {Intl.Segmenter | undefined} */ -let segmenter; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Converts the first letter of a string to uppercase. - * @param {string} string The string to operate on - * @returns {string} The converted string - */ -function upperCaseFirst(string) { - if (string.length <= 1) { - return string.toUpperCase(); - } - return string[0].toUpperCase() + string.slice(1); -} - -/** - * Counts graphemes in a given string. - * @param {string} value A string to count graphemes. - * @returns {number} The number of graphemes in `value`. - */ -function getGraphemeCount(value) { - if (ASCII_REGEX.test(value)) { - return value.length; - } - - segmenter ??= new Intl.Segmenter("en-US"); // en-US locale should be supported everywhere - let graphemeCount = 0; - - // eslint-disable-next-line no-unused-vars -- for-of needs a variable - for (const unused of segmenter.segment(value)) { - graphemeCount++; - } - - return graphemeCount; -} - -module.exports = { - upperCaseFirst, - getGraphemeCount -}; diff --git a/graphql/node_modules/eslint/lib/shared/traverser.js b/graphql/node_modules/eslint/lib/shared/traverser.js deleted file mode 100644 index 38b4e215..00000000 --- a/graphql/node_modules/eslint/lib/shared/traverser.js +++ /dev/null @@ -1,195 +0,0 @@ -/** - * @fileoverview Traverser to traverse AST trees. - * @author Nicholas C. Zakas - * @author Toru Nagashima - */ -"use strict"; - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -const vk = require("eslint-visitor-keys"); -const debug = require("debug")("eslint:traverser"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Do nothing. - * @returns {void} - */ -function noop() { - - // do nothing. -} - -/** - * Check whether the given value is an ASTNode or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is an ASTNode. - */ -function isNode(x) { - return x !== null && typeof x === "object" && typeof x.type === "string"; -} - -/** - * Get the visitor keys of a given node. - * @param {Object} visitorKeys The map of visitor keys. - * @param {ASTNode} node The node to get their visitor keys. - * @returns {string[]} The visitor keys of the node. - */ -function getVisitorKeys(visitorKeys, node) { - let keys = visitorKeys[node.type]; - - if (!keys) { - keys = vk.getKeys(node); - debug("Unknown node type \"%s\": Estimated visitor keys %j", node.type, keys); - } - - return keys; -} - -/** - * The traverser class to traverse AST trees. - */ -class Traverser { - constructor() { - this._current = null; - this._parents = []; - this._skipped = false; - this._broken = false; - this._visitorKeys = null; - this._enter = null; - this._leave = null; - } - - /** - * Gives current node. - * @returns {ASTNode} The current node. - */ - current() { - return this._current; - } - - /** - * Gives a copy of the ancestor nodes. - * @returns {ASTNode[]} The ancestor nodes. - */ - parents() { - return this._parents.slice(0); - } - - /** - * Break the current traversal. - * @returns {void} - */ - break() { - this._broken = true; - } - - /** - * Skip child nodes for the current traversal. - * @returns {void} - */ - skip() { - this._skipped = true; - } - - /** - * Traverse the given AST tree. - * @param {ASTNode} node The root node to traverse. - * @param {Object} options The option object. - * @param {Object} [options.visitorKeys=DEFAULT_VISITOR_KEYS] The keys of each node types to traverse child nodes. Default is `./default-visitor-keys.json`. - * @param {Function} [options.enter=noop] The callback function which is called on entering each node. - * @param {Function} [options.leave=noop] The callback function which is called on leaving each node. - * @returns {void} - */ - traverse(node, options) { - this._current = null; - this._parents = []; - this._skipped = false; - this._broken = false; - this._visitorKeys = options.visitorKeys || vk.KEYS; - this._enter = options.enter || noop; - this._leave = options.leave || noop; - this._traverse(node, null); - } - - /** - * Traverse the given AST tree recursively. - * @param {ASTNode} node The current node. - * @param {ASTNode|null} parent The parent node. - * @returns {void} - * @private - */ - _traverse(node, parent) { - if (!isNode(node)) { - return; - } - - this._current = node; - this._skipped = false; - this._enter(node, parent); - - if (!this._skipped && !this._broken) { - const keys = getVisitorKeys(this._visitorKeys, node); - - if (keys.length >= 1) { - this._parents.push(node); - for (let i = 0; i < keys.length && !this._broken; ++i) { - const child = node[keys[i]]; - - if (Array.isArray(child)) { - for (let j = 0; j < child.length && !this._broken; ++j) { - this._traverse(child[j], node); - } - } else { - this._traverse(child, node); - } - } - this._parents.pop(); - } - } - - if (!this._broken) { - this._leave(node, parent); - } - - this._current = parent; - } - - /** - * Calculates the keys to use for traversal. - * @param {ASTNode} node The node to read keys from. - * @returns {string[]} An array of keys to visit on the node. - * @private - */ - static getKeys(node) { - return vk.getKeys(node); - } - - /** - * Traverse the given AST tree. - * @param {ASTNode} node The root node to traverse. - * @param {Object} options The option object. - * @param {Object} [options.visitorKeys=DEFAULT_VISITOR_KEYS] The keys of each node types to traverse child nodes. Default is `./default-visitor-keys.json`. - * @param {Function} [options.enter=noop] The callback function which is called on entering each node. - * @param {Function} [options.leave=noop] The callback function which is called on leaving each node. - * @returns {void} - */ - static traverse(node, options) { - new Traverser().traverse(node, options); - } - - /** - * The default visitor keys. - * @type {Object} - */ - static get DEFAULT_VISITOR_KEYS() { - return vk.KEYS; - } -} - -module.exports = Traverser; diff --git a/graphql/node_modules/eslint/lib/shared/types.js b/graphql/node_modules/eslint/lib/shared/types.js deleted file mode 100644 index 94a91afc..00000000 --- a/graphql/node_modules/eslint/lib/shared/types.js +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @fileoverview Define common types for input completion. - * @author Toru Nagashima - */ -"use strict"; - -/** @type {any} */ -module.exports = {}; - -/** @typedef {boolean | "off" | "readable" | "readonly" | "writable" | "writeable"} GlobalConf */ -/** @typedef {0 | 1 | 2 | "off" | "warn" | "error"} SeverityConf */ -/** @typedef {SeverityConf | [SeverityConf, ...any[]]} RuleConf */ - -/** - * @typedef {Object} EcmaFeatures - * @property {boolean} [globalReturn] Enabling `return` statements at the top-level. - * @property {boolean} [jsx] Enabling JSX syntax. - * @property {boolean} [impliedStrict] Enabling strict mode always. - */ - -/** - * @typedef {Object} ParserOptions - * @property {EcmaFeatures} [ecmaFeatures] The optional features. - * @property {3|5|6|7|8|9|10|11|12|13|14|15|16|2015|2016|2017|2018|2019|2020|2021|2022|2023|2024|2025} [ecmaVersion] The ECMAScript version (or revision number). - * @property {"script"|"module"} [sourceType] The source code type. - * @property {boolean} [allowReserved] Allowing the use of reserved words as identifiers in ES3. - */ - -/** - * @typedef {Object} LanguageOptions - * @property {number|"latest"} [ecmaVersion] The ECMAScript version (or revision number). - * @property {Record} [globals] The global variable settings. - * @property {"script"|"module"|"commonjs"} [sourceType] The source code type. - * @property {string|Object} [parser] The parser to use. - * @property {Object} [parserOptions] The parser options to use. - */ - -/** - * @typedef {Object} ConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {Record} [globals] The global variable settings. - * @property {string | string[]} [ignorePatterns] The glob patterns that ignore to lint. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {boolean} [root] The root flag. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} OverrideConfigData - * @property {Record} [env] The environment settings. - * @property {string | string[]} [excludedFiles] The glob patterns for excluded files. - * @property {string | string[]} [extends] The path to other config files or the package name of shareable configs. - * @property {string | string[]} files The glob patterns for target files. - * @property {Record} [globals] The global variable settings. - * @property {boolean} [noInlineConfig] The flag that disables directive comments. - * @property {OverrideConfigData[]} [overrides] The override settings per kind of files. - * @property {string} [parser] The path to a parser or the package name of a parser. - * @property {ParserOptions} [parserOptions] The parser options. - * @property {string[]} [plugins] The plugin specifiers. - * @property {string} [processor] The processor specifier. - * @property {boolean} [reportUnusedDisableDirectives] The flag to report unused `eslint-disable` comments. - * @property {Record} [rules] The rule settings. - * @property {Object} [settings] The shared settings. - */ - -/** - * @typedef {Object} ParseResult - * @property {Object} ast The AST. - * @property {ScopeManager} [scopeManager] The scope manager of the AST. - * @property {Record} [services] The services that the parser provides. - * @property {Record} [visitorKeys] The visitor keys of the AST. - */ - -/** - * @typedef {Object} Parser - * @property {(text:string, options:ParserOptions) => Object} parse The definition of global variables. - * @property {(text:string, options:ParserOptions) => ParseResult} [parseForESLint] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} Environment - * @property {Record} [globals] The definition of global variables. - * @property {ParserOptions} [parserOptions] The parser options that will be enabled under this environment. - */ - -/** - * @typedef {Object} LintMessage - * @property {number|undefined} column The 1-based column number. - * @property {number} [endColumn] The 1-based column number of the end location. - * @property {number} [endLine] The 1-based line number of the end location. - * @property {boolean} [fatal] If `true` then this is a fatal error. - * @property {{range:[number,number], text:string}} [fix] Information for autofix. - * @property {number|undefined} line The 1-based line number. - * @property {string} message The error message. - * @property {string} [messageId] The ID of the message in the rule's meta. - * @property {(string|null)} nodeType Type of node - * @property {string|null} ruleId The ID of the rule which makes this message. - * @property {0|1|2} severity The severity of this message. - * @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions. - */ - -/** - * @typedef {Object} SuppressedLintMessage - * @property {number|undefined} column The 1-based column number. - * @property {number} [endColumn] The 1-based column number of the end location. - * @property {number} [endLine] The 1-based line number of the end location. - * @property {boolean} [fatal] If `true` then this is a fatal error. - * @property {{range:[number,number], text:string}} [fix] Information for autofix. - * @property {number|undefined} line The 1-based line number. - * @property {string} message The error message. - * @property {string} [messageId] The ID of the message in the rule's meta. - * @property {(string|null)} nodeType Type of node - * @property {string|null} ruleId The ID of the rule which makes this message. - * @property {0|1|2} severity The severity of this message. - * @property {Array<{kind: string, justification: string}>} suppressions The suppression info. - * @property {Array<{desc?: string, messageId?: string, fix: {range: [number, number], text: string}}>} [suggestions] Information for suggestions. - */ - -/** - * @typedef {Object} SuggestionResult - * @property {string} desc A short description. - * @property {string} [messageId] Id referencing a message for the description. - * @property {{ text: string, range: number[] }} fix fix result info - */ - -/** - * @typedef {Object} Processor - * @property {(text:string, filename:string) => Array} [preprocess] The function to extract code blocks. - * @property {(messagesList:LintMessage[][], filename:string) => LintMessage[]} [postprocess] The function to merge messages. - * @property {boolean} [supportsAutofix] If `true` then it means the processor supports autofix. - */ - -/** - * @typedef {Object} RuleMetaDocs - * @property {string} description The description of the rule. - * @property {boolean} recommended If `true` then the rule is included in `eslint:recommended` preset. - * @property {string} url The URL of the rule documentation. - */ - -/** - * @typedef {Object} RuleMeta - * @property {boolean} [deprecated] If `true` then the rule has been deprecated. - * @property {RuleMetaDocs} docs The document information of the rule. - * @property {"code"|"whitespace"} [fixable] The autofix type. - * @property {boolean} [hasSuggestions] If `true` then the rule provides suggestions. - * @property {Record} [messages] The messages the rule reports. - * @property {string[]} [replacedBy] The IDs of the alternative rules. - * @property {Array|Object} schema The option schema of the rule. - * @property {"problem"|"suggestion"|"layout"} type The rule type. - */ - -/** - * @typedef {Object} Rule - * @property {Function} create The factory of the rule. - * @property {RuleMeta} meta The meta data of the rule. - */ - -/** - * @typedef {Object} Plugin - * @property {Record} [configs] The definition of plugin configs. - * @property {Record} [environments] The definition of plugin environments. - * @property {Record} [processors] The definition of plugin processors. - * @property {Record} [rules] The definition of plugin rules. - */ - -/** - * Information of deprecated rules. - * @typedef {Object} DeprecatedRuleInfo - * @property {string} ruleId The rule ID. - * @property {string[]} replacedBy The rule IDs that replace this deprecated rule. - */ - -/** - * A linting result. - * @typedef {Object} LintResult - * @property {string} filePath The path to the file that was linted. - * @property {LintMessage[]} messages All of the messages for the result. - * @property {SuppressedLintMessage[]} suppressedMessages All of the suppressed messages for the result. - * @property {number} errorCount Number of errors for the result. - * @property {number} fatalErrorCount Number of fatal errors for the result. - * @property {number} warningCount Number of warnings for the result. - * @property {number} fixableErrorCount Number of fixable errors for the result. - * @property {number} fixableWarningCount Number of fixable warnings for the result. - * @property {Stats} [stats] The performance statistics collected with the `stats` flag. - * @property {string} [source] The source code of the file that was linted. - * @property {string} [output] The source code of the file that was linted, with as many fixes applied as possible. - * @property {DeprecatedRuleInfo[]} usedDeprecatedRules The list of used deprecated rules. - */ - -/** - * Performance statistics - * @typedef {Object} Stats - * @property {number} fixPasses The number of times ESLint has applied at least one fix after linting. - * @property {Times} times The times spent on (parsing, fixing, linting) a file. - */ - -/** - * Performance Times for each ESLint pass - * @typedef {Object} Times - * @property {TimePass[]} passes Time passes - */ - -/** - * @typedef {Object} TimePass - * @property {ParseTime} parse The parse object containing all parse time information. - * @property {Record} [rules] The rules object containing all lint time information for each rule. - * @property {FixTime} fix The parse object containing all fix time information. - * @property {number} total The total time that is spent on (parsing, fixing, linting) a file. - */ -/** - * @typedef {Object} ParseTime - * @property {number} total The total time that is spent when parsing a file. - */ -/** - * @typedef {Object} RuleTime - * @property {number} total The total time that is spent on a rule. - */ -/** - * @typedef {Object} FixTime - * @property {number} total The total time that is spent on applying fixes to the code. - */ - -/** - * Information provided when the maximum warning threshold is exceeded. - * @typedef {Object} MaxWarningsExceeded - * @property {number} maxWarnings Number of warnings to trigger nonzero exit code. - * @property {number} foundWarnings Number of warnings found while linting. - */ - -/** - * Metadata about results for formatters. - * @typedef {Object} ResultsMeta - * @property {MaxWarningsExceeded} [maxWarningsExceeded] Present if the maxWarnings threshold was exceeded. - */ - -/** - * A formatter function. - * @callback FormatterFunction - * @param {LintResult[]} results The list of linting results. - * @param {{cwd: string, maxWarningsExceeded?: MaxWarningsExceeded, rulesMeta: Record}} [context] A context object. - * @returns {string | Promise} Formatted text. - */ diff --git a/graphql/node_modules/eslint/lib/unsupported-api.js b/graphql/node_modules/eslint/lib/unsupported-api.js deleted file mode 100644 index 50e7f5bd..00000000 --- a/graphql/node_modules/eslint/lib/unsupported-api.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @fileoverview APIs that are not officially supported by ESLint. - * These APIs may change or be removed at any time. Use at your - * own risk. - * @author Nicholas C. Zakas - */ - -"use strict"; - -//----------------------------------------------------------------------------- -// Requirements -//----------------------------------------------------------------------------- - -const { FileEnumerator } = require("./cli-engine/file-enumerator"); -const { ESLint: FlatESLint, shouldUseFlatConfig } = require("./eslint/eslint"); -const { LegacyESLint } = require("./eslint/legacy-eslint"); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -module.exports = { - builtinRules: require("./rules"), - FlatESLint, - shouldUseFlatConfig, - FileEnumerator, - LegacyESLint -}; diff --git a/graphql/node_modules/eslint/messages/all-files-ignored.js b/graphql/node_modules/eslint/messages/all-files-ignored.js deleted file mode 100644 index 70877a4d..00000000 --- a/graphql/node_modules/eslint/messages/all-files-ignored.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pattern } = it; - - return ` -You are linting "${pattern}", but all of the files matching the glob pattern "${pattern}" are ignored. - -If you don't want to lint these files, remove the pattern "${pattern}" from the list of arguments passed to ESLint. - -If you do want to lint these files, try the following solutions: - -* Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored. -* Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/all-matched-files-ignored.js b/graphql/node_modules/eslint/messages/all-matched-files-ignored.js deleted file mode 100644 index b568bec8..00000000 --- a/graphql/node_modules/eslint/messages/all-matched-files-ignored.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pattern } = it; - - return ` -You are linting "${pattern}", but all of the files matching the glob pattern "${pattern}" are ignored. - -If you don't want to lint these files, remove the pattern "${pattern}" from the list of arguments passed to ESLint. - -If you do want to lint these files, explicitly list one or more of the files from this glob that you'd like to lint to see more details about why they are ignored. - - * If the file is ignored because of a matching ignore pattern, check global ignores in your config file. - https://eslint.org/docs/latest/use/configure/ignore - - * If the file is ignored because no matching configuration was supplied, check file patterns in your config file. - https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-with-arbitrary-extensions - - * If the file is ignored because it is located outside of the base path, change the location of your config file to be in a parent directory. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/config-file-missing.js b/graphql/node_modules/eslint/messages/config-file-missing.js deleted file mode 100644 index a416a87d..00000000 --- a/graphql/node_modules/eslint/messages/config-file-missing.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -module.exports = function() { - return ` -ESLint couldn't find an eslint.config.(js|mjs|cjs) file. - -From ESLint v9.0.0, the default configuration file is now eslint.config.js. -If you are using a .eslintrc.* file, please follow the migration guide -to update your configuration file to the new format: - -https://eslint.org/docs/latest/use/configure/migration-guide - -If you still have problems after following the migration guide, please stop by -https://eslint.org/chat/help to chat with the team. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/eslintrc-incompat.js b/graphql/node_modules/eslint/messages/eslintrc-incompat.js deleted file mode 100644 index b89c39bd..00000000 --- a/graphql/node_modules/eslint/messages/eslintrc-incompat.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; - -/* eslint consistent-return: 0 -- no default case */ - -const messages = { - - env: ` -A config object is using the "env" key, which is not supported in flat config system. - -Flat config uses "languageOptions.globals" to define global variables for your files. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options - -If you're not using "env" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - extends: ` -A config object is using the "extends" key, which is not supported in flat config system. - -Instead of "extends", you can include config objects that you'd like to extend from directly in the flat config array. - -If you're using "extends" in your config file, please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#predefined-and-shareable-configs - -If you're not using "extends" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - globals: ` -A config object is using the "globals" key, which is not supported in flat config system. - -Flat config uses "languageOptions.globals" to define global variables for your files. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options - -If you're not using "globals" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - ignorePatterns: ` -A config object is using the "ignorePatterns" key, which is not supported in flat config system. - -Flat config uses "ignores" to specify files to ignore. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files - -If you're not using "ignorePatterns" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - noInlineConfig: ` -A config object is using the "noInlineConfig" key, which is not supported in flat config system. - -Flat config uses "linterOptions.noInlineConfig" to specify files to ignore. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#linter-options -`, - - overrides: ` -A config object is using the "overrides" key, which is not supported in flat config system. - -Flat config is an array that acts like the eslintrc "overrides" array. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#glob-based-configs - -If you're not using "overrides" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - parser: ` -A config object is using the "parser" key, which is not supported in flat config system. - -Flat config uses "languageOptions.parser" to override the default parser. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#custom-parsers - -If you're not using "parser" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - parserOptions: ` -A config object is using the "parserOptions" key, which is not supported in flat config system. - -Flat config uses "languageOptions.parserOptions" to specify parser options. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options - -If you're not using "parserOptions" directly (it may be coming from a plugin), please see the following: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`, - - reportUnusedDisableDirectives: ` -A config object is using the "reportUnusedDisableDirectives" key, which is not supported in flat config system. - -Flat config uses "linterOptions.reportUnusedDisableDirectives" to specify files to ignore. - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#linter-options -`, - - root: ` -A config object is using the "root" key, which is not supported in flat config system. - -Flat configs always act as if they are the root config file, so this key can be safely removed. -` -}; - -module.exports = function({ key }) { - - return messages[key].trim(); -}; diff --git a/graphql/node_modules/eslint/messages/eslintrc-plugins.js b/graphql/node_modules/eslint/messages/eslintrc-plugins.js deleted file mode 100644 index bb708c95..00000000 --- a/graphql/node_modules/eslint/messages/eslintrc-plugins.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -module.exports = function({ plugins }) { - - const isArrayOfStrings = typeof plugins[0] === "string"; - - return ` -A config object has a "plugins" key defined as an array${isArrayOfStrings ? " of strings" : ""}. - -Flat config requires "plugins" to be an object in this form: - - { - plugins: { - ${isArrayOfStrings && plugins[0] ? plugins[0] : "namespace"}: pluginObject - } - } - -Please see the following page for information on how to convert your config object into the correct format: -https://eslint.org/docs/latest/use/configure/migration-guide#importing-plugins-and-custom-parsers - -If you're using a shareable config that you cannot rewrite in flat config format, then use the compatibility utility: -https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config -`; -}; diff --git a/graphql/node_modules/eslint/messages/extend-config-missing.js b/graphql/node_modules/eslint/messages/extend-config-missing.js deleted file mode 100644 index 5b3498fc..00000000 --- a/graphql/node_modules/eslint/messages/extend-config-missing.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { configName, importerName } = it; - - return ` -ESLint couldn't find the config "${configName}" to extend from. Please check that the name of the config is correct. - -The config "${configName}" was referenced from the config file in "${importerName}". - -If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/failed-to-read-json.js b/graphql/node_modules/eslint/messages/failed-to-read-json.js deleted file mode 100644 index e7c6cb58..00000000 --- a/graphql/node_modules/eslint/messages/failed-to-read-json.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { path, message } = it; - - return ` -Failed to read JSON file at ${path}: - -${message} -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/file-not-found.js b/graphql/node_modules/eslint/messages/file-not-found.js deleted file mode 100644 index 1a62fcf9..00000000 --- a/graphql/node_modules/eslint/messages/file-not-found.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pattern, globDisabled } = it; - - return ` -No files matching the pattern "${pattern}"${globDisabled ? " (with disabling globs)" : ""} were found. -Please check for typing mistakes in the pattern. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/invalid-rule-options.js b/graphql/node_modules/eslint/messages/invalid-rule-options.js deleted file mode 100644 index 9a8acc93..00000000 --- a/graphql/node_modules/eslint/messages/invalid-rule-options.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -const { stringifyValueForError } = require("./shared"); - -module.exports = function({ ruleId, value }) { - return ` -Configuration for rule "${ruleId}" is invalid. Each rule must have a severity ("off", 0, "warn", 1, "error", or 2) and may be followed by additional options for the rule. - -You passed '${stringifyValueForError(value, 4)}', which doesn't contain a valid severity. - -If you're attempting to configure rule options, perhaps you meant: - - "${ruleId}": ["error", ${stringifyValueForError(value, 8)}] - -See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/invalid-rule-severity.js b/graphql/node_modules/eslint/messages/invalid-rule-severity.js deleted file mode 100644 index 3f13183c..00000000 --- a/graphql/node_modules/eslint/messages/invalid-rule-severity.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -const { stringifyValueForError } = require("./shared"); - -module.exports = function({ ruleId, value }) { - return ` -Configuration for rule "${ruleId}" is invalid. Expected severity of "off", 0, "warn", 1, "error", or 2. - -You passed '${stringifyValueForError(value, 4)}'. - -See https://eslint.org/docs/latest/use/configure/rules#using-configuration-files for configuring rules. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/no-config-found.js b/graphql/node_modules/eslint/messages/no-config-found.js deleted file mode 100644 index 64b93edb..00000000 --- a/graphql/node_modules/eslint/messages/no-config-found.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { directoryPath } = it; - - return ` -ESLint couldn't find a configuration file. To set up a configuration file for this project, please run: - - npm init @eslint/config@latest - -ESLint looked for configuration files in ${directoryPath} and its ancestors. If it found none, it then looked in your home directory. - -If you think you already have a configuration file or if you need more help, please stop by the ESLint Discord server: https://eslint.org/chat -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/plugin-conflict.js b/graphql/node_modules/eslint/messages/plugin-conflict.js deleted file mode 100644 index 4113a538..00000000 --- a/graphql/node_modules/eslint/messages/plugin-conflict.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pluginId, plugins } = it; - - let result = `ESLint couldn't determine the plugin "${pluginId}" uniquely. -`; - - for (const { filePath, importerName } of plugins) { - result += ` -- ${filePath} (loaded in "${importerName}")`; - } - - result += ` - -Please remove the "plugins" setting from either config or remove either plugin installation. - -If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. -`; - - return result; -}; diff --git a/graphql/node_modules/eslint/messages/plugin-invalid.js b/graphql/node_modules/eslint/messages/plugin-invalid.js deleted file mode 100644 index 4c60e41d..00000000 --- a/graphql/node_modules/eslint/messages/plugin-invalid.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { configName, importerName } = it; - - return ` -"${configName}" is invalid syntax for a config specifier. - -* If your intention is to extend from a configuration exported from the plugin, add the configuration name after a slash: e.g. "${configName}/myConfig". -* If this is the name of a shareable config instead of a plugin, remove the "plugin:" prefix: i.e. "${configName.slice("plugin:".length)}". - -"${configName}" was referenced from the config file in "${importerName}". - -If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/plugin-missing.js b/graphql/node_modules/eslint/messages/plugin-missing.js deleted file mode 100644 index 366ec450..00000000 --- a/graphql/node_modules/eslint/messages/plugin-missing.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pluginName, resolvePluginsRelativeTo, importerName } = it; - - return ` -ESLint couldn't find the plugin "${pluginName}". - -(The package "${pluginName}" was not found when loaded as a Node module from the directory "${resolvePluginsRelativeTo}".) - -It's likely that the plugin isn't installed correctly. Try reinstalling by running the following: - - npm install ${pluginName}@latest --save-dev - -The plugin "${pluginName}" was referenced from the config file in "${importerName}". - -If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/print-config-with-directory-path.js b/graphql/node_modules/eslint/messages/print-config-with-directory-path.js deleted file mode 100644 index 4559c8d6..00000000 --- a/graphql/node_modules/eslint/messages/print-config-with-directory-path.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = function() { - return ` -The '--print-config' CLI option requires a path to a source code file rather than a directory. -See also: https://eslint.org/docs/latest/use/command-line-interface#--print-config -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/messages/shared.js b/graphql/node_modules/eslint/messages/shared.js deleted file mode 100644 index 8c6e9b92..00000000 --- a/graphql/node_modules/eslint/messages/shared.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @fileoverview Shared utilities for error messages. - * @author Josh Goldberg - */ - -"use strict"; - -/** - * Converts a value to a string that may be printed in errors. - * @param {any} value The invalid value. - * @param {number} indentation How many spaces to indent - * @returns {string} The value, stringified. - */ -function stringifyValueForError(value, indentation) { - return value ? JSON.stringify(value, null, 4).replace(/\n/gu, `\n${" ".repeat(indentation)}`) : `${value}`; -} - -module.exports = { stringifyValueForError }; diff --git a/graphql/node_modules/eslint/messages/whitespace-found.js b/graphql/node_modules/eslint/messages/whitespace-found.js deleted file mode 100644 index 8a801bce..00000000 --- a/graphql/node_modules/eslint/messages/whitespace-found.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = function(it) { - const { pluginName } = it; - - return ` -ESLint couldn't find the plugin "${pluginName}". because there is whitespace in the name. Please check your configuration and remove all whitespace from the plugin name. - -If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. -`.trimStart(); -}; diff --git a/graphql/node_modules/eslint/package.json b/graphql/node_modules/eslint/package.json deleted file mode 100644 index 88674219..00000000 --- a/graphql/node_modules/eslint/package.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "name": "eslint", - "version": "9.9.0", - "author": "Nicholas C. Zakas ", - "description": "An AST-based pattern checker for JavaScript.", - "bin": { - "eslint": "./bin/eslint.js" - }, - "main": "./lib/api.js", - "exports": { - "./package.json": "./package.json", - ".": "./lib/api.js", - "./use-at-your-own-risk": "./lib/unsupported-api.js" - }, - "scripts": { - "build:docs:update-links": "node tools/fetch-docs-links.js", - "build:site": "node Makefile.js gensite", - "build:webpack": "node Makefile.js webpack", - "build:readme": "node tools/update-readme.js", - "build:rules-index": "node Makefile.js generateRuleIndexPage", - "lint": "node Makefile.js lint", - "lint:docs:js": "node Makefile.js lintDocsJS", - "lint:docs:rule-examples": "node Makefile.js checkRuleExamples", - "lint:fix": "node Makefile.js lint -- fix", - "lint:fix:docs:js": "node Makefile.js lintDocsJS -- fix", - "lint:unused": "knip", - "release:generate:alpha": "node Makefile.js generatePrerelease -- alpha", - "release:generate:beta": "node Makefile.js generatePrerelease -- beta", - "release:generate:latest": "node Makefile.js generateRelease", - "release:generate:rc": "node Makefile.js generatePrerelease -- rc", - "release:publish": "node Makefile.js publishRelease", - "test": "node Makefile.js test", - "test:browser": "node Makefile.js wdio", - "test:cli": "mocha", - "test:fuzz": "node Makefile.js fuzz", - "test:performance": "node Makefile.js perf", - "test:emfile": "node tools/check-emfile-handling.js" - }, - "gitHooks": { - "pre-commit": "lint-staged" - }, - "lint-staged": { - "*.js": "eslint --fix", - "*.md": "markdownlint --fix", - "lib/rules/*.js": [ - "node tools/update-eslint-all.js", - "git add packages/js/src/configs/eslint-all.js" - ], - "docs/src/rules/*.md": [ - "node tools/check-rule-examples.js", - "node tools/fetch-docs-links.js", - "git add docs/src/_data/further_reading_links.json" - ], - "docs/**/*.svg": "npx -y svgo -r --multipass" - }, - "files": [ - "LICENSE", - "README.md", - "bin", - "conf", - "lib", - "messages" - ], - "repository": "eslint/eslint", - "funding": "https://eslint.org/donate", - "homepage": "https://eslint.org", - "bugs": "https://github.com/eslint/eslint/issues/", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.11.0", - "@eslint/config-array": "^0.17.1", - "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.9.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.3.0", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.0.2", - "eslint-visitor-keys": "^4.0.0", - "espree": "^10.1.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "devDependencies": { - "@babel/core": "^7.4.3", - "@babel/preset-env": "^7.4.3", - "@eslint/core": "^0.3.0", - "@eslint/json": "^0.3.0", - "@types/estree": "^1.0.5", - "@types/node": "^20.11.5", - "@wdio/browser-runner": "^8.40.1", - "@wdio/cli": "^8.40.0", - "@wdio/concise-reporter": "^8.39.0", - "@wdio/mocha-framework": "^8.40.0", - "babel-loader": "^8.0.5", - "c8": "^7.12.0", - "chai": "^4.0.1", - "cheerio": "^0.22.0", - "common-tags": "^1.8.0", - "core-js": "^3.1.3", - "ejs": "^3.0.2", - "eslint": "file:.", - "eslint-config-eslint": "file:packages/eslint-config-eslint", - "eslint-plugin-eslint-plugin": "^6.0.0", - "eslint-release": "^3.2.2", - "eslint-rule-composer": "^0.3.0", - "eslump": "^3.0.0", - "esprima": "^4.0.1", - "fast-glob": "^3.2.11", - "fs-teardown": "^0.1.3", - "glob": "^10.0.0", - "globals": "^15.0.0", - "got": "^11.8.3", - "gray-matter": "^4.0.3", - "jiti": "^1.21.6", - "js-yaml": "^4.1.0", - "knip": "^5.21.0", - "lint-staged": "^11.0.0", - "load-perf": "^0.2.0", - "markdown-it": "^12.2.0", - "markdown-it-container": "^3.0.0", - "markdownlint": "^0.34.0", - "markdownlint-cli": "^0.41.0", - "marked": "^4.0.8", - "metascraper": "^5.25.7", - "metascraper-description": "^5.25.7", - "metascraper-image": "^5.29.3", - "metascraper-logo": "^5.25.7", - "metascraper-logo-favicon": "^5.25.7", - "metascraper-title": "^5.25.7", - "mocha": "^8.3.2", - "node-polyfill-webpack-plugin": "^1.0.3", - "npm-license": "^0.3.3", - "pirates": "^4.0.5", - "progress": "^2.0.3", - "proxyquire": "^2.0.1", - "recast": "^0.23.0", - "regenerator-runtime": "^0.14.0", - "rollup-plugin-node-polyfills": "^0.2.1", - "semver": "^7.5.3", - "shelljs": "^0.8.5", - "sinon": "^11.0.0", - "typescript": "^5.3.3", - "vite-plugin-commonjs": "^0.10.0", - "webpack": "^5.23.0", - "webpack-cli": "^4.5.0", - "yorkie": "^2.0.0" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - }, - "keywords": [ - "ast", - "lint", - "javascript", - "ecmascript", - "espree" - ], - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } -} diff --git a/graphql/node_modules/espree/LICENSE b/graphql/node_modules/espree/LICENSE deleted file mode 100644 index b18469ff..00000000 --- a/graphql/node_modules/espree/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -BSD 2-Clause License - -Copyright (c) Open JS Foundation -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/espree/README.md b/graphql/node_modules/espree/README.md deleted file mode 100644 index 748366ea..00000000 --- a/graphql/node_modules/espree/README.md +++ /dev/null @@ -1,244 +0,0 @@ -[![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree) -[![npm downloads](https://img.shields.io/npm/dm/espree.svg)](https://www.npmjs.com/package/espree) -[![Build Status](https://github.com/eslint/espree/workflows/CI/badge.svg)](https://github.com/eslint/espree/actions) -[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=9348450)](https://www.bountysource.com/trackers/9348450-eslint?utm_source=9348450&utm_medium=shield&utm_campaign=TRACKER_BADGE) - -# Espree - -Espree started out as a fork of [Esprima](http://esprima.org) v1.2.2, the last stable published released of Esprima before work on ECMAScript 6 began. Espree is now built on top of [Acorn](https://github.com/ternjs/acorn), which has a modular architecture that allows extension of core functionality. The goal of Espree is to produce output that is similar to Esprima with a similar API so that it can be used in place of Esprima. - -## Usage - -Install: - -``` -npm i espree -``` - -To use in an ESM file: - -```js -import * as espree from "espree"; - -const ast = espree.parse(code); -``` - -To use in a Common JS file: - -```js -const espree = require("espree"); - -const ast = espree.parse(code); -``` - -## API - -### `parse()` - -`parse` parses the given code and returns a abstract syntax tree (AST). It takes two parameters. - -- `code` [string]() - the code which needs to be parsed. -- `options (Optional)` [Object]() - read more about this [here](#options). - -```js -import * as espree from "espree"; - -const ast = espree.parse(code); -``` - -**Example :** - -```js -const ast = espree.parse('let foo = "bar"', { ecmaVersion: 6 }); -console.log(ast); -``` - -
Output -

- -``` -Node { - type: 'Program', - start: 0, - end: 15, - body: [ - Node { - type: 'VariableDeclaration', - start: 0, - end: 15, - declarations: [Array], - kind: 'let' - } - ], - sourceType: 'script' -} -``` - -

-
- -### `tokenize()` - -`tokenize` returns the tokens of a given code. It takes two parameters. - -- `code` [string]() - the code which needs to be parsed. -- `options (Optional)` [Object]() - read more about this [here](#options). - -Even if `options` is empty or undefined or `options.tokens` is `false`, it assigns it to `true` in order to get the `tokens` array - -**Example :** - -```js -import * as espree from "espree"; - -const tokens = espree.tokenize('let foo = "bar"', { ecmaVersion: 6 }); -console.log(tokens); -``` - -
Output -

- -``` -Token { type: 'Keyword', value: 'let', start: 0, end: 3 }, -Token { type: 'Identifier', value: 'foo', start: 4, end: 7 }, -Token { type: 'Punctuator', value: '=', start: 8, end: 9 }, -Token { type: 'String', value: '"bar"', start: 10, end: 15 } -``` - -

-
- -### `version` - -Returns the current `espree` version - -### `VisitorKeys` - -Returns all visitor keys for traversing the AST from [eslint-visitor-keys](https://github.com/eslint/eslint-visitor-keys) - -### `latestEcmaVersion` - -Returns the latest ECMAScript supported by `espree` - -### `supportedEcmaVersions` - -Returns an array of all supported ECMAScript versions - -## Options - -```js -const options = { - // attach range information to each node - range: false, - - // attach line/column location information to each node - loc: false, - - // create a top-level comments array containing all comments - comment: false, - - // create a top-level tokens array containing all tokens - tokens: false, - - // Set to 3, 5 (the default), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16 to specify the version of ECMAScript syntax you want to use. - // You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), 2024 (same as 15) or 2025 (same as 16) to use the year-based naming. - // You can also set "latest" to use the most recently supported version. - ecmaVersion: 3, - - allowReserved: true, // only allowed when ecmaVersion is 3 - - // specify which type of script you're parsing ("script", "module", or "commonjs") - sourceType: "script", - - // specify additional language features - ecmaFeatures: { - - // enable JSX parsing - jsx: false, - - // enable return in global scope (set to true automatically when sourceType is "commonjs") - globalReturn: false, - - // enable implied strict mode (if ecmaVersion >= 5) - impliedStrict: false - } -} -``` - -## Esprima Compatibility Going Forward - -The primary goal is to produce the exact same AST structure and tokens as Esprima, and that takes precedence over anything else. (The AST structure being the [ESTree](https://github.com/estree/estree) API with JSX extensions.) Separate from that, Espree may deviate from what Esprima outputs in terms of where and how comments are attached, as well as what additional information is available on AST nodes. That is to say, Espree may add more things to the AST nodes than Esprima does but the overall AST structure produced will be the same. - -Espree may also deviate from Esprima in the interface it exposes. - -## Contributing - -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/espree/issues). - -Espree is licensed under a permissive BSD 2-clause license. - -## Security Policy - -We work hard to ensure that Espree is safe for everyone and that security issues are addressed quickly and responsibly. Read the full [security policy](https://github.com/eslint/.github/blob/master/SECURITY.md). - -## Build Commands - -* `npm test` - run all tests -* `npm run lint` - run all linting - -## Differences from Espree 2.x - -* The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics. -* Trailing whitespace no longer is counted as part of a node. -* `let` and `const` declarations are no longer parsed by default. You must opt-in by using an `ecmaVersion` newer than `5` or setting `sourceType` to `module`. -* The `esparse` and `esvalidate` binary scripts have been removed. -* There is no `tolerant` option. We will investigate adding this back in the future. - -## Known Incompatibilities - -In an effort to help those wanting to transition from other parsers to Espree, the following is a list of noteworthy incompatibilities with other parsers. These are known differences that we do not intend to change. - -### Esprima 1.2.2 - -* Esprima counts trailing whitespace as part of each AST node while Espree does not. In Espree, the end of a node is where the last token occurs. -* Espree does not parse `let` and `const` declarations by default. -* Error messages returned for parsing errors are different. -* There are two addition properties on every node and token: `start` and `end`. These represent the same data as `range` and are used internally by Acorn. - -### Esprima 2.x - -* Esprima 2.x uses a different comment attachment algorithm that results in some comments being added in different places than Espree. The algorithm Espree uses is the same one used in Esprima 1.2.2. - -## Frequently Asked Questions - -### Why another parser - -[ESLint](http://eslint.org) had been relying on Esprima as its parser from the beginning. While that was fine when the JavaScript language was evolving slowly, the pace of development increased dramatically and Esprima had fallen behind. ESLint, like many other tools reliant on Esprima, has been stuck in using new JavaScript language features until Esprima updates, and that caused our users frustration. - -We decided the only way for us to move forward was to create our own parser, bringing us inline with JSHint and JSLint, and allowing us to keep implementing new features as we need them. We chose to fork Esprima instead of starting from scratch in order to move as quickly as possible with a compatible API. - -With Espree 2.0.0, we are no longer a fork of Esprima but rather a translation layer between Acorn and Esprima syntax. This allows us to put work back into a community-supported parser (Acorn) that is continuing to grow and evolve while maintaining an Esprima-compatible parser for those utilities still built on Esprima. - -### Have you tried working with Esprima? - -Yes. Since the start of ESLint, we've regularly filed bugs and feature requests with Esprima and will continue to do so. However, there are some different philosophies around how the projects work that need to be worked through. The initial goal was to have Espree track Esprima and eventually merge the two back together, but we ultimately decided that building on top of Acorn was a better choice due to Acorn's plugin support. - -### Why don't you just use Acorn? - -Acorn is a great JavaScript parser that produces an AST that is compatible with Esprima. Unfortunately, ESLint relies on more than just the AST to do its job. It relies on Esprima's tokens and comment attachment features to get a complete picture of the source code. We investigated switching to Acorn, but the inconsistencies between Esprima and Acorn created too much work for a project like ESLint. - -We are building on top of Acorn, however, so that we can contribute back and help make Acorn even better. - -### What ECMAScript features do you support? - -Espree supports all ECMAScript 2024 features and partially supports ECMAScript 2025 features. - -Because ECMAScript 2025 is still under development, we are implementing features as they are finalized. Currently, Espree supports: - -* [RegExp Duplicate named capturing groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups) - -See [finished-proposals.md](https://github.com/tc39/proposals/blob/master/finished-proposals.md) to know what features are finalized. - -### How do you determine which experimental features to support? - -In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features. diff --git a/graphql/node_modules/espree/dist/espree.cjs b/graphql/node_modules/espree/dist/espree.cjs deleted file mode 100644 index 8d4cd340..00000000 --- a/graphql/node_modules/espree/dist/espree.cjs +++ /dev/null @@ -1,939 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var acorn = require('acorn'); -var jsx = require('acorn-jsx'); -var visitorKeys = require('eslint-visitor-keys'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); - } - }); - } - n["default"] = e; - return Object.freeze(n); -} - -var acorn__namespace = /*#__PURE__*/_interopNamespace(acorn); -var jsx__default = /*#__PURE__*/_interopDefaultLegacy(jsx); -var visitorKeys__namespace = /*#__PURE__*/_interopNamespace(visitorKeys); - -/** - * @fileoverview Translates tokens between Acorn format and Esprima format. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// none! - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - - -// Esprima Token Types -const Token = { - Boolean: "Boolean", - EOF: "", - Identifier: "Identifier", - PrivateIdentifier: "PrivateIdentifier", - Keyword: "Keyword", - Null: "Null", - Numeric: "Numeric", - Punctuator: "Punctuator", - String: "String", - RegularExpression: "RegularExpression", - Template: "Template", - JSXIdentifier: "JSXIdentifier", - JSXText: "JSXText" -}; - -/** - * Converts part of a template into an Esprima token. - * @param {AcornToken[]} tokens The Acorn tokens representing the template. - * @param {string} code The source code. - * @returns {EsprimaToken} The Esprima equivalent of the template token. - * @private - */ -function convertTemplatePart(tokens, code) { - const firstToken = tokens[0], - lastTemplateToken = tokens.at(-1); - - const token = { - type: Token.Template, - value: code.slice(firstToken.start, lastTemplateToken.end) - }; - - if (firstToken.loc) { - token.loc = { - start: firstToken.loc.start, - end: lastTemplateToken.loc.end - }; - } - - if (firstToken.range) { - token.start = firstToken.range[0]; - token.end = lastTemplateToken.range[1]; - token.range = [token.start, token.end]; - } - - return token; -} - -/** - * Contains logic to translate Acorn tokens into Esprima tokens. - * @param {Object} acornTokTypes The Acorn token types. - * @param {string} code The source code Acorn is parsing. This is necessary - * to correct the "value" property of some tokens. - * @constructor - */ -function TokenTranslator(acornTokTypes, code) { - - // token types - this._acornTokTypes = acornTokTypes; - - // token buffer for templates - this._tokens = []; - - // track the last curly brace - this._curlyBrace = null; - - // the source code - this._code = code; - -} - -TokenTranslator.prototype = { - constructor: TokenTranslator, - - /** - * Translates a single Esprima token to a single Acorn token. This may be - * inaccurate due to how templates are handled differently in Esprima and - * Acorn, but should be accurate for all other tokens. - * @param {AcornToken} token The Acorn token to translate. - * @param {Object} extra Espree extra object. - * @returns {EsprimaToken} The Esprima version of the token. - */ - translate(token, extra) { - - const type = token.type, - tt = this._acornTokTypes; - - if (type === tt.name) { - token.type = Token.Identifier; - - // TODO: See if this is an Acorn bug - if (token.value === "static") { - token.type = Token.Keyword; - } - - if (extra.ecmaVersion > 5 && (token.value === "yield" || token.value === "let")) { - token.type = Token.Keyword; - } - - } else if (type === tt.privateId) { - token.type = Token.PrivateIdentifier; - - } else if (type === tt.semi || type === tt.comma || - type === tt.parenL || type === tt.parenR || - type === tt.braceL || type === tt.braceR || - type === tt.dot || type === tt.bracketL || - type === tt.colon || type === tt.question || - type === tt.bracketR || type === tt.ellipsis || - type === tt.arrow || type === tt.jsxTagStart || - type === tt.incDec || type === tt.starstar || - type === tt.jsxTagEnd || type === tt.prefix || - type === tt.questionDot || - (type.binop && !type.keyword) || - type.isAssign) { - - token.type = Token.Punctuator; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.jsxName) { - token.type = Token.JSXIdentifier; - } else if (type.label === "jsxText" || type === tt.jsxAttrValueToken) { - token.type = Token.JSXText; - } else if (type.keyword) { - if (type.keyword === "true" || type.keyword === "false") { - token.type = Token.Boolean; - } else if (type.keyword === "null") { - token.type = Token.Null; - } else { - token.type = Token.Keyword; - } - } else if (type === tt.num) { - token.type = Token.Numeric; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.string) { - - if (extra.jsxAttrValueToken) { - extra.jsxAttrValueToken = false; - token.type = Token.JSXText; - } else { - token.type = Token.String; - } - - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.regexp) { - token.type = Token.RegularExpression; - const value = token.value; - - token.regex = { - flags: value.flags, - pattern: value.pattern - }; - token.value = `/${value.pattern}/${value.flags}`; - } - - return token; - }, - - /** - * Function to call during Acorn's onToken handler. - * @param {AcornToken} token The Acorn token. - * @param {Object} extra The Espree extra object. - * @returns {void} - */ - onToken(token, extra) { - - const tt = this._acornTokTypes, - tokens = extra.tokens, - templateTokens = this._tokens; - - /** - * Flushes the buffered template tokens and resets the template - * tracking. - * @returns {void} - * @private - */ - const translateTemplateTokens = () => { - tokens.push(convertTemplatePart(this._tokens, this._code)); - this._tokens = []; - }; - - if (token.type === tt.eof) { - - // might be one last curlyBrace - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - return; - } - - if (token.type === tt.backQuote) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - templateTokens.push(token); - - // it's the end - if (templateTokens.length > 1) { - translateTemplateTokens(); - } - - return; - } - if (token.type === tt.dollarBraceL) { - templateTokens.push(token); - translateTemplateTokens(); - return; - } - if (token.type === tt.braceR) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - // store new curly for later - this._curlyBrace = token; - return; - } - if (token.type === tt.template || token.type === tt.invalidTemplate) { - if (this._curlyBrace) { - templateTokens.push(this._curlyBrace); - this._curlyBrace = null; - } - - templateTokens.push(token); - return; - } - - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - tokens.push(this.translate(token, extra)); - } -}; - -/** - * @fileoverview A collection of methods for processing Espree's options. - * @author Kai Cataldo - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SUPPORTED_VERSIONS = [ - 3, - 5, - 6, // 2015 - 7, // 2016 - 8, // 2017 - 9, // 2018 - 10, // 2019 - 11, // 2020 - 12, // 2021 - 13, // 2022 - 14, // 2023 - 15, // 2024 - 16 // 2025 -]; - -/** - * Get the latest ECMAScript version supported by Espree. - * @returns {number} The latest ECMAScript version. - */ -function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS.at(-1); -} - -/** - * Get the list of ECMAScript versions supported by Espree. - * @returns {number[]} An array containing the supported ECMAScript versions. - */ -function getSupportedEcmaVersions() { - return [...SUPPORTED_VERSIONS]; -} - -/** - * Normalize ECMAScript version from the initial config - * @param {(number|"latest")} ecmaVersion ECMAScript version from the initial config - * @throws {Error} throws an error if the ecmaVersion is invalid. - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersion(ecmaVersion = 5) { - - let version = ecmaVersion === "latest" ? getLatestEcmaVersion() : ecmaVersion; - - if (typeof version !== "number") { - throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof ecmaVersion} instead.`); - } - - // Calculate ECMAScript edition number from official year version starting with - // ES2015, which corresponds with ES6 (or a difference of 2009). - if (version >= 2015) { - version -= 2009; - } - - if (!SUPPORTED_VERSIONS.includes(version)) { - throw new Error("Invalid ecmaVersion."); - } - - return version; -} - -/** - * Normalize sourceType from the initial config - * @param {string} sourceType to normalize - * @throws {Error} throw an error if sourceType is invalid - * @returns {string} normalized sourceType - */ -function normalizeSourceType(sourceType = "script") { - if (sourceType === "script" || sourceType === "module") { - return sourceType; - } - - if (sourceType === "commonjs") { - return "script"; - } - - throw new Error("Invalid sourceType."); -} - -/** - * Normalize parserOptions - * @param {Object} options the parser options to normalize - * @throws {Error} throw an error if found invalid option. - * @returns {Object} normalized options - */ -function normalizeOptions(options) { - const ecmaVersion = normalizeEcmaVersion(options.ecmaVersion); - const sourceType = normalizeSourceType(options.sourceType); - const ranges = options.range === true; - const locations = options.loc === true; - - if (ecmaVersion !== 3 && options.allowReserved) { - - // a value of `false` is intentionally allowed here, so a shared config can overwrite it when needed - throw new Error("`allowReserved` is only supported when ecmaVersion is 3"); - } - if (typeof options.allowReserved !== "undefined" && typeof options.allowReserved !== "boolean") { - throw new Error("`allowReserved`, when present, must be `true` or `false`"); - } - const allowReserved = ecmaVersion === 3 ? (options.allowReserved || "never") : false; - const ecmaFeatures = options.ecmaFeatures || {}; - const allowReturnOutsideFunction = options.sourceType === "commonjs" || - Boolean(ecmaFeatures.globalReturn); - - if (sourceType === "module" && ecmaVersion < 6) { - throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."); - } - - return Object.assign({}, options, { - ecmaVersion, - sourceType, - ranges, - locations, - allowReserved, - allowReturnOutsideFunction - }); -} - -/* eslint no-param-reassign: 0 -- stylistic choice */ - - -const STATE = Symbol("espree's internal state"); -const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode"); - - -/** - * Converts an Acorn comment to a Esprima comment. - * @param {boolean} block True if it's a block comment, false if not. - * @param {string} text The text of the comment. - * @param {int} start The index at which the comment starts. - * @param {int} end The index at which the comment ends. - * @param {Location} startLoc The location at which the comment starts. - * @param {Location} endLoc The location at which the comment ends. - * @param {string} code The source code being parsed. - * @returns {Object} The comment object. - * @private - */ -function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) { - let type; - - if (block) { - type = "Block"; - } else if (code.slice(start, start + 2) === "#!") { - type = "Hashbang"; - } else { - type = "Line"; - } - - const comment = { - type, - value: text - }; - - if (typeof start === "number") { - comment.start = start; - comment.end = end; - comment.range = [start, end]; - } - - if (typeof startLoc === "object") { - comment.loc = { - start: startLoc, - end: endLoc - }; - } - - return comment; -} - -var espree = () => Parser => { - const tokTypes = Object.assign({}, Parser.acorn.tokTypes); - - if (Parser.acornJsx) { - Object.assign(tokTypes, Parser.acornJsx.tokTypes); - } - - return class Espree extends Parser { - constructor(opts, code) { - if (typeof opts !== "object" || opts === null) { - opts = {}; - } - if (typeof code !== "string" && !(code instanceof String)) { - code = String(code); - } - - // save original source type in case of commonjs - const originalSourceType = opts.sourceType; - const options = normalizeOptions(opts); - const ecmaFeatures = options.ecmaFeatures || {}; - const tokenTranslator = - options.tokens === true - ? new TokenTranslator(tokTypes, code) - : null; - - /* - * Data that is unique to Espree and is not represented internally - * in Acorn. - * - * For ES2023 hashbangs, Espree will call `onComment()` during the - * constructor, so we must define state before having access to - * `this`. - */ - const state = { - originalSourceType: originalSourceType || options.sourceType, - tokens: tokenTranslator ? [] : null, - comments: options.comment === true ? [] : null, - impliedStrict: ecmaFeatures.impliedStrict === true && options.ecmaVersion >= 5, - ecmaVersion: options.ecmaVersion, - jsxAttrValueToken: false, - lastToken: null, - templateElements: [] - }; - - // Initialize acorn parser. - super({ - - // do not use spread, because we don't want to pass any unknown options to acorn - ecmaVersion: options.ecmaVersion, - sourceType: options.sourceType, - ranges: options.ranges, - locations: options.locations, - allowReserved: options.allowReserved, - - // Truthy value is true for backward compatibility. - allowReturnOutsideFunction: options.allowReturnOutsideFunction, - - // Collect tokens - onToken(token) { - if (tokenTranslator) { - - // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. - tokenTranslator.onToken(token, state); - } - if (token.type !== tokTypes.eof) { - state.lastToken = token; - } - }, - - // Collect comments - onComment(block, text, start, end, startLoc, endLoc) { - if (state.comments) { - const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); - - state.comments.push(comment); - } - } - }, code); - - /* - * We put all of this data into a symbol property as a way to avoid - * potential naming conflicts with future versions of Acorn. - */ - this[STATE] = state; - } - - tokenize() { - do { - this.next(); - } while (this.type !== tokTypes.eof); - - // Consume the final eof token - this.next(); - - const extra = this[STATE]; - const tokens = extra.tokens; - - if (extra.comments) { - tokens.comments = extra.comments; - } - - return tokens; - } - - finishNode(...args) { - const result = super.finishNode(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - finishNodeAt(...args) { - const result = super.finishNodeAt(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - parse() { - const extra = this[STATE]; - const program = super.parse(); - - program.sourceType = extra.originalSourceType; - - if (extra.comments) { - program.comments = extra.comments; - } - if (extra.tokens) { - program.tokens = extra.tokens; - } - - /* - * Adjust opening and closing position of program to match Esprima. - * Acorn always starts programs at range 0 whereas Esprima starts at the - * first AST node's start (the only real difference is when there's leading - * whitespace or leading comments). Acorn also counts trailing whitespace - * as part of the program whereas Esprima only counts up to the last token. - */ - if (program.body.length) { - const [firstNode] = program.body; - - if (program.range) { - program.range[0] = firstNode.range[0]; - } - if (program.loc) { - program.loc.start = firstNode.loc.start; - } - program.start = firstNode.start; - } - if (extra.lastToken) { - if (program.range) { - program.range[1] = extra.lastToken.range[1]; - } - if (program.loc) { - program.loc.end = extra.lastToken.loc.end; - } - program.end = extra.lastToken.end; - } - - - /* - * https://github.com/eslint/espree/issues/349 - * Ensure that template elements have correct range information. - * This is one location where Acorn produces a different value - * for its start and end properties vs. the values present in the - * range property. In order to avoid confusion, we set the start - * and end properties to the values that are present in range. - * This is done here, instead of in finishNode(), because Acorn - * uses the values of start and end internally while parsing, making - * it dangerous to change those values while parsing is ongoing. - * By waiting until the end of parsing, we can safely change these - * values without affect any other part of the process. - */ - this[STATE].templateElements.forEach(templateElement => { - const startOffset = -1; - const endOffset = templateElement.tail ? 1 : 2; - - templateElement.start += startOffset; - templateElement.end += endOffset; - - if (templateElement.range) { - templateElement.range[0] += startOffset; - templateElement.range[1] += endOffset; - } - - if (templateElement.loc) { - templateElement.loc.start.column += startOffset; - templateElement.loc.end.column += endOffset; - } - }); - - return program; - } - - parseTopLevel(node) { - if (this[STATE].impliedStrict) { - this.strict = true; - } - return super.parseTopLevel(node); - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raise(pos, message) { - const loc = Parser.acorn.getLineInfo(this.input, pos); - const err = new SyntaxError(message); - - err.index = pos; - err.lineNumber = loc.line; - err.column = loc.column + 1; // acorn uses 0-based columns - throw err; - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raiseRecoverable(pos, message) { - this.raise(pos, message); - } - - /** - * Overwrites the default unexpected method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - unexpected(pos) { - let message = "Unexpected token"; - - if (pos !== null && pos !== void 0) { - this.pos = pos; - - if (this.options.locations) { - while (this.pos < this.lineStart) { - this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1; - --this.curLine; - } - } - - this.nextToken(); - } - - if (this.end > this.start) { - message += ` ${this.input.slice(this.start, this.end)}`; - } - - this.raise(this.start, message); - } - - /* - * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX - * uses regular tt.string without any distinction between this and regular JS - * strings. As such, we intercept an attempt to read a JSX string and set a flag - * on extra so that when tokens are converted, the next token will be switched - * to JSXText via onToken. - */ - jsx_readString(quote) { // eslint-disable-line camelcase -- required by API - const result = super.jsx_readString(quote); - - if (this.type === tokTypes.string) { - this[STATE].jsxAttrValueToken = true; - } - return result; - } - - /** - * Performs last-minute Esprima-specific compatibility checks and fixes. - * @param {ASTNode} result The node to check. - * @returns {ASTNode} The finished node. - */ - [ESPRIMA_FINISH_NODE](result) { - - // Acorn doesn't count the opening and closing backticks as part of templates - // so we have to adjust ranges/locations appropriately. - if (result.type === "TemplateElement") { - - // save template element references to fix start/end later - this[STATE].templateElements.push(result); - } - - if (result.type.includes("Function") && !result.generator) { - result.generator = false; - } - - return result; - } - }; -}; - -const version$1 = "10.1.0"; - -/** - * @fileoverview Main Espree file that converts Acorn into Esprima output. - * - * This file contains code from the following MIT-licensed projects: - * 1. Acorn - * 2. Babylon - * 3. Babel-ESLint - * - * This file also contains code from Esprima, which is BSD licensed. - * - * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) - * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) - * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -// To initialize lazily. -const parsers = { - _regular: null, - _jsx: null, - - get regular() { - if (this._regular === null) { - this._regular = acorn__namespace.Parser.extend(espree()); - } - return this._regular; - }, - - get jsx() { - if (this._jsx === null) { - this._jsx = acorn__namespace.Parser.extend(jsx__default["default"](), espree()); - } - return this._jsx; - }, - - get(options) { - const useJsx = Boolean( - options && - options.ecmaFeatures && - options.ecmaFeatures.jsx - ); - - return useJsx ? this.jsx : this.regular; - } -}; - -//------------------------------------------------------------------------------ -// Tokenizer -//------------------------------------------------------------------------------ - -/** - * Tokenizes the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {Token[]} An array of tokens. - * @throws {SyntaxError} If the input code is invalid. - * @private - */ -function tokenize(code, options) { - const Parser = parsers.get(options); - - // Ensure to collect tokens. - if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice - } - - return new Parser(options, code).tokenize(); -} - -//------------------------------------------------------------------------------ -// Parser -//------------------------------------------------------------------------------ - -/** - * Parses the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {ASTNode} The "Program" AST node. - * @throws {SyntaxError} If the input code is invalid. - */ -function parse(code, options) { - const Parser = parsers.get(options); - - return new Parser(options, code).parse(); -} - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -const version = version$1; -const name = "espree"; - -/* istanbul ignore next */ -const VisitorKeys = (function() { - return visitorKeys__namespace.KEYS; -}()); - -// Derive node types from VisitorKeys -/* istanbul ignore next */ -const Syntax = (function() { - let key, - types = {}; - - if (typeof Object.create === "function") { - types = Object.create(null); - } - - for (key in VisitorKeys) { - if (Object.hasOwn(VisitorKeys, key)) { - types[key] = key; - } - } - - if (typeof Object.freeze === "function") { - Object.freeze(types); - } - - return types; -}()); - -const latestEcmaVersion = getLatestEcmaVersion(); - -const supportedEcmaVersions = getSupportedEcmaVersions(); - -exports.Syntax = Syntax; -exports.VisitorKeys = VisitorKeys; -exports.latestEcmaVersion = latestEcmaVersion; -exports.name = name; -exports.parse = parse; -exports.supportedEcmaVersions = supportedEcmaVersions; -exports.tokenize = tokenize; -exports.version = version; diff --git a/graphql/node_modules/espree/espree.js b/graphql/node_modules/espree/espree.js deleted file mode 100644 index 15e0ce52..00000000 --- a/graphql/node_modules/espree/espree.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * @fileoverview Main Espree file that converts Acorn into Esprima output. - * - * This file contains code from the following MIT-licensed projects: - * 1. Acorn - * 2. Babylon - * 3. Babel-ESLint - * - * This file also contains code from Esprima, which is BSD licensed. - * - * Acorn is Copyright 2012-2015 Acorn Contributors (https://github.com/marijnh/acorn/blob/master/AUTHORS) - * Babylon is Copyright 2014-2015 various contributors (https://github.com/babel/babel/blob/master/packages/babylon/AUTHORS) - * Babel-ESLint is Copyright 2014-2015 Sebastian McKenzie - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * Esprima is Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -import * as acorn from "acorn"; -import jsx from "acorn-jsx"; -import espree from "./lib/espree.js"; -import espreeVersion from "./lib/version.js"; -import * as visitorKeys from "eslint-visitor-keys"; -import { getLatestEcmaVersion, getSupportedEcmaVersions } from "./lib/options.js"; - - -// To initialize lazily. -const parsers = { - _regular: null, - _jsx: null, - - get regular() { - if (this._regular === null) { - this._regular = acorn.Parser.extend(espree()); - } - return this._regular; - }, - - get jsx() { - if (this._jsx === null) { - this._jsx = acorn.Parser.extend(jsx(), espree()); - } - return this._jsx; - }, - - get(options) { - const useJsx = Boolean( - options && - options.ecmaFeatures && - options.ecmaFeatures.jsx - ); - - return useJsx ? this.jsx : this.regular; - } -}; - -//------------------------------------------------------------------------------ -// Tokenizer -//------------------------------------------------------------------------------ - -/** - * Tokenizes the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {Token[]} An array of tokens. - * @throws {SyntaxError} If the input code is invalid. - * @private - */ -export function tokenize(code, options) { - const Parser = parsers.get(options); - - // Ensure to collect tokens. - if (!options || options.tokens !== true) { - options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice - } - - return new Parser(options, code).tokenize(); -} - -//------------------------------------------------------------------------------ -// Parser -//------------------------------------------------------------------------------ - -/** - * Parses the given code. - * @param {string} code The code to tokenize. - * @param {Object} options Options defining how to tokenize. - * @returns {ASTNode} The "Program" AST node. - * @throws {SyntaxError} If the input code is invalid. - */ -export function parse(code, options) { - const Parser = parsers.get(options); - - return new Parser(options, code).parse(); -} - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export const version = espreeVersion; -export const name = "espree"; - -/* istanbul ignore next */ -export const VisitorKeys = (function() { - return visitorKeys.KEYS; -}()); - -// Derive node types from VisitorKeys -/* istanbul ignore next */ -export const Syntax = (function() { - let key, - types = {}; - - if (typeof Object.create === "function") { - types = Object.create(null); - } - - for (key in VisitorKeys) { - if (Object.hasOwn(VisitorKeys, key)) { - types[key] = key; - } - } - - if (typeof Object.freeze === "function") { - Object.freeze(types); - } - - return types; -}()); - -export const latestEcmaVersion = getLatestEcmaVersion(); - -export const supportedEcmaVersions = getSupportedEcmaVersions(); diff --git a/graphql/node_modules/espree/lib/espree.js b/graphql/node_modules/espree/lib/espree.js deleted file mode 100644 index 2be1b56d..00000000 --- a/graphql/node_modules/espree/lib/espree.js +++ /dev/null @@ -1,349 +0,0 @@ -/* eslint no-param-reassign: 0 -- stylistic choice */ - -import TokenTranslator from "./token-translator.js"; -import { normalizeOptions } from "./options.js"; - - -const STATE = Symbol("espree's internal state"); -const ESPRIMA_FINISH_NODE = Symbol("espree's esprimaFinishNode"); - - -/** - * Converts an Acorn comment to a Esprima comment. - * @param {boolean} block True if it's a block comment, false if not. - * @param {string} text The text of the comment. - * @param {int} start The index at which the comment starts. - * @param {int} end The index at which the comment ends. - * @param {Location} startLoc The location at which the comment starts. - * @param {Location} endLoc The location at which the comment ends. - * @param {string} code The source code being parsed. - * @returns {Object} The comment object. - * @private - */ -function convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code) { - let type; - - if (block) { - type = "Block"; - } else if (code.slice(start, start + 2) === "#!") { - type = "Hashbang"; - } else { - type = "Line"; - } - - const comment = { - type, - value: text - }; - - if (typeof start === "number") { - comment.start = start; - comment.end = end; - comment.range = [start, end]; - } - - if (typeof startLoc === "object") { - comment.loc = { - start: startLoc, - end: endLoc - }; - } - - return comment; -} - -export default () => Parser => { - const tokTypes = Object.assign({}, Parser.acorn.tokTypes); - - if (Parser.acornJsx) { - Object.assign(tokTypes, Parser.acornJsx.tokTypes); - } - - return class Espree extends Parser { - constructor(opts, code) { - if (typeof opts !== "object" || opts === null) { - opts = {}; - } - if (typeof code !== "string" && !(code instanceof String)) { - code = String(code); - } - - // save original source type in case of commonjs - const originalSourceType = opts.sourceType; - const options = normalizeOptions(opts); - const ecmaFeatures = options.ecmaFeatures || {}; - const tokenTranslator = - options.tokens === true - ? new TokenTranslator(tokTypes, code) - : null; - - /* - * Data that is unique to Espree and is not represented internally - * in Acorn. - * - * For ES2023 hashbangs, Espree will call `onComment()` during the - * constructor, so we must define state before having access to - * `this`. - */ - const state = { - originalSourceType: originalSourceType || options.sourceType, - tokens: tokenTranslator ? [] : null, - comments: options.comment === true ? [] : null, - impliedStrict: ecmaFeatures.impliedStrict === true && options.ecmaVersion >= 5, - ecmaVersion: options.ecmaVersion, - jsxAttrValueToken: false, - lastToken: null, - templateElements: [] - }; - - // Initialize acorn parser. - super({ - - // do not use spread, because we don't want to pass any unknown options to acorn - ecmaVersion: options.ecmaVersion, - sourceType: options.sourceType, - ranges: options.ranges, - locations: options.locations, - allowReserved: options.allowReserved, - - // Truthy value is true for backward compatibility. - allowReturnOutsideFunction: options.allowReturnOutsideFunction, - - // Collect tokens - onToken(token) { - if (tokenTranslator) { - - // Use `tokens`, `ecmaVersion`, and `jsxAttrValueToken` in the state. - tokenTranslator.onToken(token, state); - } - if (token.type !== tokTypes.eof) { - state.lastToken = token; - } - }, - - // Collect comments - onComment(block, text, start, end, startLoc, endLoc) { - if (state.comments) { - const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code); - - state.comments.push(comment); - } - } - }, code); - - /* - * We put all of this data into a symbol property as a way to avoid - * potential naming conflicts with future versions of Acorn. - */ - this[STATE] = state; - } - - tokenize() { - do { - this.next(); - } while (this.type !== tokTypes.eof); - - // Consume the final eof token - this.next(); - - const extra = this[STATE]; - const tokens = extra.tokens; - - if (extra.comments) { - tokens.comments = extra.comments; - } - - return tokens; - } - - finishNode(...args) { - const result = super.finishNode(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - finishNodeAt(...args) { - const result = super.finishNodeAt(...args); - - return this[ESPRIMA_FINISH_NODE](result); - } - - parse() { - const extra = this[STATE]; - const program = super.parse(); - - program.sourceType = extra.originalSourceType; - - if (extra.comments) { - program.comments = extra.comments; - } - if (extra.tokens) { - program.tokens = extra.tokens; - } - - /* - * Adjust opening and closing position of program to match Esprima. - * Acorn always starts programs at range 0 whereas Esprima starts at the - * first AST node's start (the only real difference is when there's leading - * whitespace or leading comments). Acorn also counts trailing whitespace - * as part of the program whereas Esprima only counts up to the last token. - */ - if (program.body.length) { - const [firstNode] = program.body; - - if (program.range) { - program.range[0] = firstNode.range[0]; - } - if (program.loc) { - program.loc.start = firstNode.loc.start; - } - program.start = firstNode.start; - } - if (extra.lastToken) { - if (program.range) { - program.range[1] = extra.lastToken.range[1]; - } - if (program.loc) { - program.loc.end = extra.lastToken.loc.end; - } - program.end = extra.lastToken.end; - } - - - /* - * https://github.com/eslint/espree/issues/349 - * Ensure that template elements have correct range information. - * This is one location where Acorn produces a different value - * for its start and end properties vs. the values present in the - * range property. In order to avoid confusion, we set the start - * and end properties to the values that are present in range. - * This is done here, instead of in finishNode(), because Acorn - * uses the values of start and end internally while parsing, making - * it dangerous to change those values while parsing is ongoing. - * By waiting until the end of parsing, we can safely change these - * values without affect any other part of the process. - */ - this[STATE].templateElements.forEach(templateElement => { - const startOffset = -1; - const endOffset = templateElement.tail ? 1 : 2; - - templateElement.start += startOffset; - templateElement.end += endOffset; - - if (templateElement.range) { - templateElement.range[0] += startOffset; - templateElement.range[1] += endOffset; - } - - if (templateElement.loc) { - templateElement.loc.start.column += startOffset; - templateElement.loc.end.column += endOffset; - } - }); - - return program; - } - - parseTopLevel(node) { - if (this[STATE].impliedStrict) { - this.strict = true; - } - return super.parseTopLevel(node); - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raise(pos, message) { - const loc = Parser.acorn.getLineInfo(this.input, pos); - const err = new SyntaxError(message); - - err.index = pos; - err.lineNumber = loc.line; - err.column = loc.column + 1; // acorn uses 0-based columns - throw err; - } - - /** - * Overwrites the default raise method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @param {string} message The error message. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - raiseRecoverable(pos, message) { - this.raise(pos, message); - } - - /** - * Overwrites the default unexpected method to throw Esprima-style errors. - * @param {int} pos The position of the error. - * @throws {SyntaxError} A syntax error. - * @returns {void} - */ - unexpected(pos) { - let message = "Unexpected token"; - - if (pos !== null && pos !== void 0) { - this.pos = pos; - - if (this.options.locations) { - while (this.pos < this.lineStart) { - this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1; - --this.curLine; - } - } - - this.nextToken(); - } - - if (this.end > this.start) { - message += ` ${this.input.slice(this.start, this.end)}`; - } - - this.raise(this.start, message); - } - - /* - * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX - * uses regular tt.string without any distinction between this and regular JS - * strings. As such, we intercept an attempt to read a JSX string and set a flag - * on extra so that when tokens are converted, the next token will be switched - * to JSXText via onToken. - */ - jsx_readString(quote) { // eslint-disable-line camelcase -- required by API - const result = super.jsx_readString(quote); - - if (this.type === tokTypes.string) { - this[STATE].jsxAttrValueToken = true; - } - return result; - } - - /** - * Performs last-minute Esprima-specific compatibility checks and fixes. - * @param {ASTNode} result The node to check. - * @returns {ASTNode} The finished node. - */ - [ESPRIMA_FINISH_NODE](result) { - - // Acorn doesn't count the opening and closing backticks as part of templates - // so we have to adjust ranges/locations appropriately. - if (result.type === "TemplateElement") { - - // save template element references to fix start/end later - this[STATE].templateElements.push(result); - } - - if (result.type.includes("Function") && !result.generator) { - result.generator = false; - } - - return result; - } - }; -}; diff --git a/graphql/node_modules/espree/lib/features.js b/graphql/node_modules/espree/lib/features.js deleted file mode 100644 index 31467d28..00000000 --- a/graphql/node_modules/espree/lib/features.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @fileoverview The list of feature flags supported by the parser and their default - * settings. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// None! - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export default { - - // React JSX parsing - jsx: false, - - // allow return statement in global scope - globalReturn: false, - - // allow implied strict mode - impliedStrict: false -}; diff --git a/graphql/node_modules/espree/lib/options.js b/graphql/node_modules/espree/lib/options.js deleted file mode 100644 index 2cdfb689..00000000 --- a/graphql/node_modules/espree/lib/options.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @fileoverview A collection of methods for processing Espree's options. - * @author Kai Cataldo - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const SUPPORTED_VERSIONS = [ - 3, - 5, - 6, // 2015 - 7, // 2016 - 8, // 2017 - 9, // 2018 - 10, // 2019 - 11, // 2020 - 12, // 2021 - 13, // 2022 - 14, // 2023 - 15, // 2024 - 16 // 2025 -]; - -/** - * Get the latest ECMAScript version supported by Espree. - * @returns {number} The latest ECMAScript version. - */ -export function getLatestEcmaVersion() { - return SUPPORTED_VERSIONS.at(-1); -} - -/** - * Get the list of ECMAScript versions supported by Espree. - * @returns {number[]} An array containing the supported ECMAScript versions. - */ -export function getSupportedEcmaVersions() { - return [...SUPPORTED_VERSIONS]; -} - -/** - * Normalize ECMAScript version from the initial config - * @param {(number|"latest")} ecmaVersion ECMAScript version from the initial config - * @throws {Error} throws an error if the ecmaVersion is invalid. - * @returns {number} normalized ECMAScript version - */ -function normalizeEcmaVersion(ecmaVersion = 5) { - - let version = ecmaVersion === "latest" ? getLatestEcmaVersion() : ecmaVersion; - - if (typeof version !== "number") { - throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof ecmaVersion} instead.`); - } - - // Calculate ECMAScript edition number from official year version starting with - // ES2015, which corresponds with ES6 (or a difference of 2009). - if (version >= 2015) { - version -= 2009; - } - - if (!SUPPORTED_VERSIONS.includes(version)) { - throw new Error("Invalid ecmaVersion."); - } - - return version; -} - -/** - * Normalize sourceType from the initial config - * @param {string} sourceType to normalize - * @throws {Error} throw an error if sourceType is invalid - * @returns {string} normalized sourceType - */ -function normalizeSourceType(sourceType = "script") { - if (sourceType === "script" || sourceType === "module") { - return sourceType; - } - - if (sourceType === "commonjs") { - return "script"; - } - - throw new Error("Invalid sourceType."); -} - -/** - * Normalize parserOptions - * @param {Object} options the parser options to normalize - * @throws {Error} throw an error if found invalid option. - * @returns {Object} normalized options - */ -export function normalizeOptions(options) { - const ecmaVersion = normalizeEcmaVersion(options.ecmaVersion); - const sourceType = normalizeSourceType(options.sourceType); - const ranges = options.range === true; - const locations = options.loc === true; - - if (ecmaVersion !== 3 && options.allowReserved) { - - // a value of `false` is intentionally allowed here, so a shared config can overwrite it when needed - throw new Error("`allowReserved` is only supported when ecmaVersion is 3"); - } - if (typeof options.allowReserved !== "undefined" && typeof options.allowReserved !== "boolean") { - throw new Error("`allowReserved`, when present, must be `true` or `false`"); - } - const allowReserved = ecmaVersion === 3 ? (options.allowReserved || "never") : false; - const ecmaFeatures = options.ecmaFeatures || {}; - const allowReturnOutsideFunction = options.sourceType === "commonjs" || - Boolean(ecmaFeatures.globalReturn); - - if (sourceType === "module" && ecmaVersion < 6) { - throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options."); - } - - return Object.assign({}, options, { - ecmaVersion, - sourceType, - ranges, - locations, - allowReserved, - allowReturnOutsideFunction - }); -} diff --git a/graphql/node_modules/espree/lib/token-translator.js b/graphql/node_modules/espree/lib/token-translator.js deleted file mode 100644 index 6daf865a..00000000 --- a/graphql/node_modules/espree/lib/token-translator.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @fileoverview Translates tokens between Acorn format and Esprima format. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Requirements -//------------------------------------------------------------------------------ - -// none! - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - - -// Esprima Token Types -const Token = { - Boolean: "Boolean", - EOF: "", - Identifier: "Identifier", - PrivateIdentifier: "PrivateIdentifier", - Keyword: "Keyword", - Null: "Null", - Numeric: "Numeric", - Punctuator: "Punctuator", - String: "String", - RegularExpression: "RegularExpression", - Template: "Template", - JSXIdentifier: "JSXIdentifier", - JSXText: "JSXText" -}; - -/** - * Converts part of a template into an Esprima token. - * @param {AcornToken[]} tokens The Acorn tokens representing the template. - * @param {string} code The source code. - * @returns {EsprimaToken} The Esprima equivalent of the template token. - * @private - */ -function convertTemplatePart(tokens, code) { - const firstToken = tokens[0], - lastTemplateToken = tokens.at(-1); - - const token = { - type: Token.Template, - value: code.slice(firstToken.start, lastTemplateToken.end) - }; - - if (firstToken.loc) { - token.loc = { - start: firstToken.loc.start, - end: lastTemplateToken.loc.end - }; - } - - if (firstToken.range) { - token.start = firstToken.range[0]; - token.end = lastTemplateToken.range[1]; - token.range = [token.start, token.end]; - } - - return token; -} - -/** - * Contains logic to translate Acorn tokens into Esprima tokens. - * @param {Object} acornTokTypes The Acorn token types. - * @param {string} code The source code Acorn is parsing. This is necessary - * to correct the "value" property of some tokens. - * @constructor - */ -function TokenTranslator(acornTokTypes, code) { - - // token types - this._acornTokTypes = acornTokTypes; - - // token buffer for templates - this._tokens = []; - - // track the last curly brace - this._curlyBrace = null; - - // the source code - this._code = code; - -} - -TokenTranslator.prototype = { - constructor: TokenTranslator, - - /** - * Translates a single Esprima token to a single Acorn token. This may be - * inaccurate due to how templates are handled differently in Esprima and - * Acorn, but should be accurate for all other tokens. - * @param {AcornToken} token The Acorn token to translate. - * @param {Object} extra Espree extra object. - * @returns {EsprimaToken} The Esprima version of the token. - */ - translate(token, extra) { - - const type = token.type, - tt = this._acornTokTypes; - - if (type === tt.name) { - token.type = Token.Identifier; - - // TODO: See if this is an Acorn bug - if (token.value === "static") { - token.type = Token.Keyword; - } - - if (extra.ecmaVersion > 5 && (token.value === "yield" || token.value === "let")) { - token.type = Token.Keyword; - } - - } else if (type === tt.privateId) { - token.type = Token.PrivateIdentifier; - - } else if (type === tt.semi || type === tt.comma || - type === tt.parenL || type === tt.parenR || - type === tt.braceL || type === tt.braceR || - type === tt.dot || type === tt.bracketL || - type === tt.colon || type === tt.question || - type === tt.bracketR || type === tt.ellipsis || - type === tt.arrow || type === tt.jsxTagStart || - type === tt.incDec || type === tt.starstar || - type === tt.jsxTagEnd || type === tt.prefix || - type === tt.questionDot || - (type.binop && !type.keyword) || - type.isAssign) { - - token.type = Token.Punctuator; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.jsxName) { - token.type = Token.JSXIdentifier; - } else if (type.label === "jsxText" || type === tt.jsxAttrValueToken) { - token.type = Token.JSXText; - } else if (type.keyword) { - if (type.keyword === "true" || type.keyword === "false") { - token.type = Token.Boolean; - } else if (type.keyword === "null") { - token.type = Token.Null; - } else { - token.type = Token.Keyword; - } - } else if (type === tt.num) { - token.type = Token.Numeric; - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.string) { - - if (extra.jsxAttrValueToken) { - extra.jsxAttrValueToken = false; - token.type = Token.JSXText; - } else { - token.type = Token.String; - } - - token.value = this._code.slice(token.start, token.end); - } else if (type === tt.regexp) { - token.type = Token.RegularExpression; - const value = token.value; - - token.regex = { - flags: value.flags, - pattern: value.pattern - }; - token.value = `/${value.pattern}/${value.flags}`; - } - - return token; - }, - - /** - * Function to call during Acorn's onToken handler. - * @param {AcornToken} token The Acorn token. - * @param {Object} extra The Espree extra object. - * @returns {void} - */ - onToken(token, extra) { - - const tt = this._acornTokTypes, - tokens = extra.tokens, - templateTokens = this._tokens; - - /** - * Flushes the buffered template tokens and resets the template - * tracking. - * @returns {void} - * @private - */ - const translateTemplateTokens = () => { - tokens.push(convertTemplatePart(this._tokens, this._code)); - this._tokens = []; - }; - - if (token.type === tt.eof) { - - // might be one last curlyBrace - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - return; - } - - if (token.type === tt.backQuote) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - templateTokens.push(token); - - // it's the end - if (templateTokens.length > 1) { - translateTemplateTokens(); - } - - return; - } - if (token.type === tt.dollarBraceL) { - templateTokens.push(token); - translateTemplateTokens(); - return; - } - if (token.type === tt.braceR) { - - // if there's already a curly, it's not part of the template - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - } - - // store new curly for later - this._curlyBrace = token; - return; - } - if (token.type === tt.template || token.type === tt.invalidTemplate) { - if (this._curlyBrace) { - templateTokens.push(this._curlyBrace); - this._curlyBrace = null; - } - - templateTokens.push(token); - return; - } - - if (this._curlyBrace) { - tokens.push(this.translate(this._curlyBrace, extra)); - this._curlyBrace = null; - } - - tokens.push(this.translate(token, extra)); - } -}; - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -export default TokenTranslator; diff --git a/graphql/node_modules/espree/lib/version.js b/graphql/node_modules/espree/lib/version.js deleted file mode 100644 index 708c9bf8..00000000 --- a/graphql/node_modules/espree/lib/version.js +++ /dev/null @@ -1,3 +0,0 @@ -const version = "10.1.0"; - -export default version; diff --git a/graphql/node_modules/espree/package.json b/graphql/node_modules/espree/package.json deleted file mode 100644 index 34b6b011..00000000 --- a/graphql/node_modules/espree/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "espree", - "description": "An Esprima-compatible JavaScript parser built on Acorn", - "author": "Nicholas C. Zakas ", - "homepage": "https://github.com/eslint/espree", - "main": "dist/espree.cjs", - "type": "module", - "exports": { - ".": [ - { - "import": "./espree.js", - "require": "./dist/espree.cjs", - "default": "./dist/espree.cjs" - }, - "./dist/espree.cjs" - ], - "./package.json": "./package.json" - }, - "version": "10.1.0", - "files": [ - "lib", - "dist/espree.cjs", - "espree.js" - ], - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": "eslint/espree", - "bugs": { - "url": "https://github.com/eslint/espree/issues" - }, - "funding": "https://opencollective.com/eslint", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.12.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^17.1.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^11.2.0", - "c8": "^7.11.0", - "chai": "^4.3.6", - "eslint": "^9.4.0", - "eslint-config-eslint": "^11.0.0", - "eslint-release": "^3.2.0", - "esprima-fb": "^8001.2001.0-dev-harmony-fb", - "globals": "^15.1.0", - "lint-staged": "^13.2.0", - "mocha": "^9.2.2", - "npm-run-all": "^4.1.5", - "rollup": "^2.41.2", - "shelljs": "^0.8.5", - "yorkie": "^2.0.0" - }, - "keywords": [ - "ast", - "ecmascript", - "javascript", - "parser", - "syntax", - "acorn" - ], - "gitHooks": { - "pre-commit": "lint-staged" - }, - "scripts": { - "build": "rollup -c rollup.config.js", - "build:debug": "npm run build -- -m", - "build:docs": "node tools/sync-docs.js", - "build:update-version": "node tools/update-version.js", - "lint": "eslint .", - "lint:fix": "npm run lint -- --fix", - "prepublishOnly": "npm run build:update-version && npm run build", - "pretest": "npm run build", - "release:generate:latest": "eslint-generate-release", - "release:generate:alpha": "eslint-generate-prerelease alpha", - "release:generate:beta": "eslint-generate-prerelease beta", - "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release", - "test": "npm-run-all -s test:*", - "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", - "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs" - } -} diff --git a/graphql/node_modules/esquery/README.md b/graphql/node_modules/esquery/README.md deleted file mode 100644 index 16809a79..00000000 --- a/graphql/node_modules/esquery/README.md +++ /dev/null @@ -1,27 +0,0 @@ -ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo: - -[demo](https://estools.github.io/esquery/) - -The following selectors are supported: -* AST node type: `ForStatement` -* [wildcard](http://dev.w3.org/csswg/selectors4/#universal-selector): `*` -* [attribute existence](http://dev.w3.org/csswg/selectors4/#attribute-selectors): `[attr]` -* [attribute value](http://dev.w3.org/csswg/selectors4/#attribute-selectors): `[attr="foo"]` or `[attr=123]` -* attribute regex: `[attr=/foo.*/]` or (with flags) `[attr=/foo.*/is]` -* attribute conditions: `[attr!="foo"]`, `[attr>2]`, `[attr<3]`, `[attr>=2]`, or `[attr<=3]` -* nested attribute: `[attr.level2="foo"]` -* field: `FunctionDeclaration > Identifier.id` -* [First](http://dev.w3.org/csswg/selectors4/#the-first-child-pseudo) or [last](http://dev.w3.org/csswg/selectors4/#the-last-child-pseudo) child: `:first-child` or `:last-child` -* [nth-child](http://dev.w3.org/csswg/selectors4/#the-nth-child-pseudo) (no ax+b support): `:nth-child(2)` -* [nth-last-child](http://dev.w3.org/csswg/selectors4/#the-nth-last-child-pseudo) (no ax+b support): `:nth-last-child(1)` -* [descendant](http://dev.w3.org/csswg/selectors4/#descendant-combinators): `ancestor descendant` -* [child](http://dev.w3.org/csswg/selectors4/#child-combinators): `parent > child` -* [following sibling](http://dev.w3.org/csswg/selectors4/#general-sibling-combinators): `node ~ sibling` -* [adjacent sibling](http://dev.w3.org/csswg/selectors4/#adjacent-sibling-combinators): `node + adjacent` -* [negation](http://dev.w3.org/csswg/selectors4/#negation-pseudo): `:not(ForStatement)` -* [has](https://drafts.csswg.org/selectors-4/#has-pseudo): `:has(ForStatement)`, `:has(> ForStatement)` -* [matches-any](http://dev.w3.org/csswg/selectors4/#matches): `:matches([attr] > :first-child, :last-child)` -* [subject indicator](http://dev.w3.org/csswg/selectors4/#subject): `!IfStatement > [name="foo"]` -* class of AST node: `:statement`, `:expression`, `:declaration`, `:function`, or `:pattern` - -[![Build Status](https://travis-ci.org/estools/esquery.png?branch=master)](https://travis-ci.org/estools/esquery) diff --git a/graphql/node_modules/esquery/dist/esquery.esm.js b/graphql/node_modules/esquery/dist/esquery.esm.js deleted file mode 100644 index 61caabaf..00000000 --- a/graphql/node_modules/esquery/dist/esquery.esm.js +++ /dev/null @@ -1,4172 +0,0 @@ -function _iterableToArrayLimit(arr, i) { - var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; - if (null != _i) { - var _s, - _e, - _x, - _r, - _arr = [], - _n = !0, - _d = !1; - try { - if (_x = (_i = _i.call(arr)).next, 0 === i) { - if (Object(_i) !== _i) return; - _n = !1; - } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); - } catch (err) { - _d = !0, _e = err; - } finally { - try { - if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; - } finally { - if (_d) throw _e; - } - } - return _arr; - } -} -function _typeof(obj) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, _typeof(obj); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); -} -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} - -var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - -function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; -} - -var estraverse = createCommonjsModule(function (module, exports) { - /* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - /*jslint vars:false, bitwise:true*/ - /*jshint indent:4*/ - /*global exports:true*/ - (function clone(exports) { - - var Syntax, VisitorOption, VisitorKeys, BREAK, SKIP, REMOVE; - function deepCopy(obj) { - var ret = {}, - key, - val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - len = array.length; - i = 0; - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', - // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', - // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', - // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', - // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - PrivateIdentifier: 'PrivateIdentifier', - Program: 'Program', - Property: 'Property', - PropertyDefinition: 'PropertyDefinition', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], - // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], - // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], - // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], - // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - PrivateIdentifier: [], - Program: ['body'], - Property: ['key', 'value'], - PropertyDefinition: ['key', 'value'], - RestElement: ['argument'], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - function Controller() {} - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - result = undefined; - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - Controller.prototype.__initialize = function (root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, leavelist, element, node, nodeType, ret, key, current, current2, candidates, candidate, sentinel; - this.__initialize(root, visitor); - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - while (worklist.length) { - element = worklist.pop(); - if (element === sentinel) { - element = leavelist.pop(); - ret = this.__execute(visitor.leave, element); - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - if (element.node) { - ret = this.__execute(visitor.enter, element); - if (this.__state === BREAK || ret === BREAK) { - return; - } - worklist.push(sentinel); - leavelist.push(element); - if (this.__state === SKIP || ret === SKIP) { - continue; - } - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - Controller.prototype.replace = function replace(root, visitor) { - var worklist, leavelist, node, nodeType, target, element, current, current2, candidates, candidate, sentinel, outer, key; - function removeElem(element) { - var i, key, nextElem, parent; - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - this.__initialize(root, visitor); - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - while (worklist.length) { - element = worklist.pop(); - if (element === sentinel) { - element = leavelist.pop(); - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - worklist.push(sentinel); - leavelist.push(element); - if (this.__state === SKIP || target === SKIP) { - continue; - } - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - return outer.root; - }; - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - function extendCommentRange(comment, tokens) { - var target; - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - comment.extendedRange = [comment.range[0], comment.range[1]]; - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - return comment; - } - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], - comment, - len, - i, - cursor; - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - return tree; - } - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { - return clone({}); - }; - return exports; - })(exports); - /* vim: set sw=4 ts=4 et tw=80 : */ -}); - -var parser = createCommonjsModule(function (module) { - /* - * Generated by PEG.js 0.10.0. - * - * http://pegjs.org/ - */ - (function (root, factory) { - if ( module.exports) { - module.exports = factory(); - } - })(commonjsGlobal, function () { - - function peg$subclass(child, parent) { - function ctor() { - this.constructor = child; - } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); - } - function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } - } - peg$subclass(peg$SyntaxError, Error); - peg$SyntaxError.buildMessage = function (expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function literal(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - "class": function _class(expectation) { - var escapedParts = "", - i; - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]); - } - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - any: function any(expectation) { - return "any character"; - }, - end: function end(expectation) { - return "end of input"; - }, - other: function other(expectation) { - return expectation.description; - } - }; - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - function literalEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function classEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/\]/g, '\\]').replace(/\^/g, '\\^').replace(/-/g, '\\-').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, - j; - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - descriptions.sort(); - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - switch (descriptions.length) { - case 1: - return descriptions[0]; - case 2: - return descriptions[0] + " or " + descriptions[1]; - default: - return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1]; - } - } - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; - }; - function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - var peg$FAILED = {}, - peg$startRuleFunctions = { - start: peg$parsestart - }, - peg$startRuleFunction = peg$parsestart, - peg$c0 = function peg$c0(ss) { - return ss.length === 1 ? ss[0] : { - type: 'matches', - selectors: ss - }; - }, - peg$c1 = function peg$c1() { - return void 0; - }, - peg$c2 = " ", - peg$c3 = peg$literalExpectation(" ", false), - peg$c4 = /^[^ [\],():#!=><~+.]/, - peg$c5 = peg$classExpectation([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), - peg$c6 = function peg$c6(i) { - return i.join(''); - }, - peg$c7 = ">", - peg$c8 = peg$literalExpectation(">", false), - peg$c9 = function peg$c9() { - return 'child'; - }, - peg$c10 = "~", - peg$c11 = peg$literalExpectation("~", false), - peg$c12 = function peg$c12() { - return 'sibling'; - }, - peg$c13 = "+", - peg$c14 = peg$literalExpectation("+", false), - peg$c15 = function peg$c15() { - return 'adjacent'; - }, - peg$c16 = function peg$c16() { - return 'descendant'; - }, - peg$c17 = ",", - peg$c18 = peg$literalExpectation(",", false), - peg$c19 = function peg$c19(s, ss) { - return [s].concat(ss.map(function (s) { - return s[3]; - })); - }, - peg$c20 = function peg$c20(op, s) { - if (!op) return s; - return { - type: op, - left: { - type: 'exactNode' - }, - right: s - }; - }, - peg$c21 = function peg$c21(a, ops) { - return ops.reduce(function (memo, rhs) { - return { - type: rhs[0], - left: memo, - right: rhs[1] - }; - }, a); - }, - peg$c22 = "!", - peg$c23 = peg$literalExpectation("!", false), - peg$c24 = function peg$c24(subject, as) { - var b = as.length === 1 ? as[0] : { - type: 'compound', - selectors: as - }; - if (subject) b.subject = true; - return b; - }, - peg$c25 = "*", - peg$c26 = peg$literalExpectation("*", false), - peg$c27 = function peg$c27(a) { - return { - type: 'wildcard', - value: a - }; - }, - peg$c28 = "#", - peg$c29 = peg$literalExpectation("#", false), - peg$c30 = function peg$c30(i) { - return { - type: 'identifier', - value: i - }; - }, - peg$c31 = "[", - peg$c32 = peg$literalExpectation("[", false), - peg$c33 = "]", - peg$c34 = peg$literalExpectation("]", false), - peg$c35 = function peg$c35(v) { - return v; - }, - peg$c36 = /^[>", "<", "!"], false, false), - peg$c38 = "=", - peg$c39 = peg$literalExpectation("=", false), - peg$c40 = function peg$c40(a) { - return (a || '') + '='; - }, - peg$c41 = /^[><]/, - peg$c42 = peg$classExpectation([">", "<"], false, false), - peg$c43 = ".", - peg$c44 = peg$literalExpectation(".", false), - peg$c45 = function peg$c45(a, as) { - return [].concat.apply([a], as).join(''); - }, - peg$c46 = function peg$c46(name, op, value) { - return { - type: 'attribute', - name: name, - operator: op, - value: value - }; - }, - peg$c47 = function peg$c47(name) { - return { - type: 'attribute', - name: name - }; - }, - peg$c48 = "\"", - peg$c49 = peg$literalExpectation("\"", false), - peg$c50 = /^[^\\"]/, - peg$c51 = peg$classExpectation(["\\", "\""], true, false), - peg$c52 = "\\", - peg$c53 = peg$literalExpectation("\\", false), - peg$c54 = peg$anyExpectation(), - peg$c55 = function peg$c55(a, b) { - return a + b; - }, - peg$c56 = function peg$c56(d) { - return { - type: 'literal', - value: strUnescape(d.join('')) - }; - }, - peg$c57 = "'", - peg$c58 = peg$literalExpectation("'", false), - peg$c59 = /^[^\\']/, - peg$c60 = peg$classExpectation(["\\", "'"], true, false), - peg$c61 = /^[0-9]/, - peg$c62 = peg$classExpectation([["0", "9"]], false, false), - peg$c63 = function peg$c63(a, b) { - // Can use `a.flat().join('')` once supported - var leadingDecimals = a ? [].concat.apply([], a).join('') : ''; - return { - type: 'literal', - value: parseFloat(leadingDecimals + b.join('')) - }; - }, - peg$c64 = function peg$c64(i) { - return { - type: 'literal', - value: i - }; - }, - peg$c65 = "type(", - peg$c66 = peg$literalExpectation("type(", false), - peg$c67 = /^[^ )]/, - peg$c68 = peg$classExpectation([" ", ")"], true, false), - peg$c69 = ")", - peg$c70 = peg$literalExpectation(")", false), - peg$c71 = function peg$c71(t) { - return { - type: 'type', - value: t.join('') - }; - }, - peg$c72 = /^[imsu]/, - peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false), - peg$c74 = "/", - peg$c75 = peg$literalExpectation("/", false), - peg$c76 = /^[^\/]/, - peg$c77 = peg$classExpectation(["/"], true, false), - peg$c78 = function peg$c78(d, flgs) { - return { - type: 'regexp', - value: new RegExp(d.join(''), flgs ? flgs.join('') : '') - }; - }, - peg$c79 = function peg$c79(i, is) { - return { - type: 'field', - name: is.reduce(function (memo, p) { - return memo + p[0] + p[1]; - }, i) - }; - }, - peg$c80 = ":not(", - peg$c81 = peg$literalExpectation(":not(", false), - peg$c82 = function peg$c82(ss) { - return { - type: 'not', - selectors: ss - }; - }, - peg$c83 = ":matches(", - peg$c84 = peg$literalExpectation(":matches(", false), - peg$c85 = function peg$c85(ss) { - return { - type: 'matches', - selectors: ss - }; - }, - peg$c86 = ":has(", - peg$c87 = peg$literalExpectation(":has(", false), - peg$c88 = function peg$c88(ss) { - return { - type: 'has', - selectors: ss - }; - }, - peg$c89 = ":first-child", - peg$c90 = peg$literalExpectation(":first-child", false), - peg$c91 = function peg$c91() { - return nth(1); - }, - peg$c92 = ":last-child", - peg$c93 = peg$literalExpectation(":last-child", false), - peg$c94 = function peg$c94() { - return nthLast(1); - }, - peg$c95 = ":nth-child(", - peg$c96 = peg$literalExpectation(":nth-child(", false), - peg$c97 = function peg$c97(n) { - return nth(parseInt(n.join(''), 10)); - }, - peg$c98 = ":nth-last-child(", - peg$c99 = peg$literalExpectation(":nth-last-child(", false), - peg$c100 = function peg$c100(n) { - return nthLast(parseInt(n.join(''), 10)); - }, - peg$c101 = ":", - peg$c102 = peg$literalExpectation(":", false), - peg$c103 = function peg$c103(c) { - return { - type: 'class', - name: c - }; - }, - peg$currPos = 0, - peg$posDetailsCache = [{ - line: 1, - column: 1 - }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$resultsCache = {}, - peg$result; - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - function peg$literalExpectation(text, ignoreCase) { - return { - type: "literal", - text: text, - ignoreCase: ignoreCase - }; - } - function peg$classExpectation(parts, inverted, ignoreCase) { - return { - type: "class", - parts: parts, - inverted: inverted, - ignoreCase: ignoreCase - }; - } - function peg$anyExpectation() { - return { - type: "any" - }; - } - function peg$endExpectation() { - return { - type: "end" - }; - } - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], - p; - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - p++; - } - peg$posDetailsCache[pos] = details; - return details; - } - } - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { - return; - } - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - peg$maxFailExpected.push(expected); - } - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location); - } - function peg$parsestart() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 0, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseselectors(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s1 = peg$c1(); - } - s0 = s1; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parse_() { - var s0, s1; - var key = peg$currPos * 32 + 1, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - while (s1 !== peg$FAILED) { - s0.push(s1); - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifierName() { - var s0, s1, s2; - var key = peg$currPos * 32 + 2, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = []; - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s1 = peg$c6(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsebinaryOp() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 3, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s2 = peg$c7; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c8); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c9(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c10; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c11); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c12(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s2 = peg$c13; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c14); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c15(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s1 = peg$c16(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 4, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsehasSelector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 5, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseselector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelector() { - var s0, s1, s2; - var key = peg$currPos * 32 + 6, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsebinaryOp(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseselector(); - if (s2 !== peg$FAILED) { - s1 = peg$c20(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselector() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 7, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsesequence(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c21(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsesequence() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 8, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseatom(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseatom(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c24(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseatom() { - var s0; - var key = peg$currPos * 32 + 9, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$parsewildcard(); - if (s0 === peg$FAILED) { - s0 = peg$parseidentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseattr(); - if (s0 === peg$FAILED) { - s0 = peg$parsefield(); - if (s0 === peg$FAILED) { - s0 = peg$parsenegation(); - if (s0 === peg$FAILED) { - s0 = peg$parsematches(); - if (s0 === peg$FAILED) { - s0 = peg$parsehas(); - if (s0 === peg$FAILED) { - s0 = peg$parsefirstChild(); - if (s0 === peg$FAILED) { - s0 = peg$parselastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthLastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parseclass(); - } - } - } - } - } - } - } - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsewildcard() { - var s0, s1; - var key = peg$currPos * 32 + 10, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c25; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c26); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c27(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifier() { - var s0, s1, s2; - var key = peg$currPos * 32 + 11, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 35) { - s1 = peg$c28; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c29); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c30(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattr() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 12, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c31; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c32); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrValue(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c33; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c34); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c35(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 13, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (peg$c36.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c37); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - if (peg$c41.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - { - peg$fail(peg$c42); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrEqOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 14, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrName() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 15, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c45(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrValue() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 16, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrEqOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsetype(); - if (s5 === peg$FAILED) { - s5 = peg$parseregex(); - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsestring(); - if (s5 === peg$FAILED) { - s5 = peg$parsenumber(); - if (s5 === peg$FAILED) { - s5 = peg$parsepath(); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s1 = peg$c47(s1); - } - s0 = s1; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsestring() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 17, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c48; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c48; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c57; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c57; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenumber() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 18, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$currPos; - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c43; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c63(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsepath() { - var s0, s1; - var key = peg$currPos * 32 + 19, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s1 = peg$c64(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsetype() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 20, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c65) { - s1 = peg$c65; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c66); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c71(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseflags() { - var s0, s1; - var key = peg$currPos * 32 + 21, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - } - } else { - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseregex() { - var s0, s1, s2, s3, s4; - var key = peg$currPos * 32 + 22, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c74; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c74; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseflags(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s1 = peg$c78(s2, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefield() { - var s0, s1, s2, s3, s4, s5, s6; - var key = peg$currPos * 32 + 23, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c43; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c79(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenegation() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 24, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c80) { - s1 = peg$c80; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c81); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c82(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsematches() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 25, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c83) { - s1 = peg$c83; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c84); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c85(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehas() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 26, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c86) { - s1 = peg$c86; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c87); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsehasSelectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c88(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefirstChild() { - var s0, s1; - var key = peg$currPos * 32 + 27, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 12) === peg$c89) { - s1 = peg$c89; - peg$currPos += 12; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c90); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c91(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parselastChild() { - var s0, s1; - var key = peg$currPos * 32 + 28, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c92) { - s1 = peg$c92; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c93); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c94(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 29, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c95) { - s1 = peg$c95; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c96); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c97(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthLastChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 30, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 16) === peg$c98) { - s1 = peg$c98; - peg$currPos += 16; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c99); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c100(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseclass() { - var s0, s1, s2; - var key = peg$currPos * 32 + 31, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c101; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c102); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c103(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function nth(n) { - return { - type: 'nth-child', - index: { - type: 'literal', - value: n - } - }; - } - function nthLast(n) { - return { - type: 'nth-last-child', - index: { - type: 'literal', - value: n - } - }; - } - function strUnescape(s) { - return s.replace(/\\(.)/g, function (match, ch) { - switch (ch) { - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - case 'v': - return '\v'; - default: - return ch; - } - }); - } - peg$result = peg$startRuleFunction(); - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); - } - } - return { - SyntaxError: peg$SyntaxError, - parse: peg$parse - }; - }); -}); - -/** -* @typedef {"LEFT_SIDE"|"RIGHT_SIDE"} Side -*/ - -var LEFT_SIDE = 'LEFT_SIDE'; -var RIGHT_SIDE = 'RIGHT_SIDE'; - -/** - * @external AST - * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html - */ - -/** - * One of the rules of `grammar.pegjs` - * @typedef {PlainObject} SelectorAST - * @see grammar.pegjs -*/ - -/** - * The `sequence` production of `grammar.pegjs` - * @typedef {PlainObject} SelectorSequenceAST -*/ - -/** - * Get the value of a property which may be multiple levels down - * in the object. - * @param {?PlainObject} obj - * @param {string[]} keys - * @returns {undefined|boolean|string|number|external:AST} - */ -function getPath(obj, keys) { - for (var i = 0; i < keys.length; ++i) { - if (obj == null) { - return obj; - } - obj = obj[keys[i]]; - } - return obj; -} - -/** - * Determine whether `node` can be reached by following `path`, - * starting at `ancestor`. - * @param {?external:AST} node - * @param {?external:AST} ancestor - * @param {string[]} path - * @param {Integer} fromPathIndex - * @returns {boolean} - */ -function inPath(node, ancestor, path, fromPathIndex) { - var current = ancestor; - for (var i = fromPathIndex; i < path.length; ++i) { - if (current == null) { - return false; - } - var field = current[path[i]]; - if (Array.isArray(field)) { - for (var k = 0; k < field.length; ++k) { - if (inPath(node, field[k], path, i + 1)) { - return true; - } - } - return false; - } - current = field; - } - return node === current; -} - -/** - * A generated matcher function for a selector. - * @callback SelectorMatcher - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @returns {void} -*/ - -/** - * A WeakMap for holding cached matcher functions for selectors. - * @type {WeakMap} -*/ -var MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap() : null; - -/** - * Look up a matcher function for `selector` in the cache. - * If it does not exist, generate it with `generateMatcher` and add it to the cache. - * In engines without WeakMap, the caching is skipped and matchers are generated with every call. - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ -function getMatcher(selector) { - if (selector == null) { - return function () { - return true; - }; - } - if (MATCHER_CACHE != null) { - var matcher = MATCHER_CACHE.get(selector); - if (matcher != null) { - return matcher; - } - matcher = generateMatcher(selector); - MATCHER_CACHE.set(selector, matcher); - return matcher; - } - return generateMatcher(selector); -} - -/** - * Create a matcher function for `selector`, - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ -function generateMatcher(selector) { - switch (selector.type) { - case 'wildcard': - return function () { - return true; - }; - case 'identifier': - { - var value = selector.value.toLowerCase(); - return function (node, ancestry, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return value === node[nodeTypeKey].toLowerCase(); - }; - } - case 'exactNode': - return function (node, ancestry) { - return ancestry.length === 0; - }; - case 'field': - { - var path = selector.name.split('.'); - return function (node, ancestry) { - var ancestor = ancestry[path.length - 1]; - return inPath(node, ancestor, path, 0); - }; - } - case 'matches': - { - var matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < matchers.length; ++i) { - if (matchers[i](node, ancestry, options)) { - return true; - } - } - return false; - }; - } - case 'compound': - { - var _matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers.length; ++i) { - if (!_matchers[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'not': - { - var _matchers2 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers2.length; ++i) { - if (_matchers2[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'has': - { - var _matchers3 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - var result = false; - var a = []; - estraverse.traverse(node, { - enter: function enter(node, parent) { - if (parent != null) { - a.unshift(parent); - } - for (var i = 0; i < _matchers3.length; ++i) { - if (_matchers3[i](node, a, options)) { - result = true; - this["break"](); - return; - } - } - }, - leave: function leave() { - a.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); - return result; - }; - } - case 'child': - { - var left = getMatcher(selector.left); - var right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (ancestry.length > 0 && right(node, ancestry, options)) { - return left(ancestry[0], ancestry.slice(1), options); - } - return false; - }; - } - case 'descendant': - { - var _left = getMatcher(selector.left); - var _right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (_right(node, ancestry, options)) { - for (var i = 0, l = ancestry.length; i < l; ++i) { - if (_left(ancestry[i], ancestry.slice(i + 1), options)) { - return true; - } - } - } - return false; - }; - } - case 'attribute': - { - var _path = selector.name.split('.'); - switch (selector.operator) { - case void 0: - return function (node) { - return getPath(node, _path) != null; - }; - case '=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - var p = getPath(node, _path); - return typeof p === 'string' && selector.value.value.test(p); - }; - case 'literal': - { - var literal = "".concat(selector.value.value); - return function (node) { - return literal === "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value === _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '!=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - return !selector.value.value.test(getPath(node, _path)); - }; - case 'literal': - { - var _literal = "".concat(selector.value.value); - return function (node) { - return _literal !== "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value !== _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '<=': - return function (node) { - return getPath(node, _path) <= selector.value.value; - }; - case '<': - return function (node) { - return getPath(node, _path) < selector.value.value; - }; - case '>': - return function (node) { - return getPath(node, _path) > selector.value.value; - }; - case '>=': - return function (node) { - return getPath(node, _path) >= selector.value.value; - }; - } - throw new Error("Unknown operator: ".concat(selector.operator)); - } - case 'sibling': - { - var _left2 = getMatcher(selector.left); - var _right2 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right2(node, ancestry, options) && sibling(node, _left2, ancestry, LEFT_SIDE, options) || selector.left.subject && _left2(node, ancestry, options) && sibling(node, _right2, ancestry, RIGHT_SIDE, options); - }; - } - case 'adjacent': - { - var _left3 = getMatcher(selector.left); - var _right3 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right3(node, ancestry, options) && adjacent(node, _left3, ancestry, LEFT_SIDE, options) || selector.right.subject && _left3(node, ancestry, options) && adjacent(node, _right3, ancestry, RIGHT_SIDE, options); - }; - } - case 'nth-child': - { - var nth = selector.index.value; - var _right4 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right4(node, ancestry, options) && nthChild(node, ancestry, nth, options); - }; - } - case 'nth-last-child': - { - var _nth = -selector.index.value; - var _right5 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right5(node, ancestry, options) && nthChild(node, ancestry, _nth, options); - }; - } - case 'class': - { - var name = selector.name.toLowerCase(); - return function (node, ancestry, options) { - if (options && options.matchClass) { - return options.matchClass(selector.name, node, ancestry); - } - if (options && options.nodeTypeKey) return false; - switch (name) { - case 'statement': - if (node.type.slice(-9) === 'Statement') return true; - // fallthrough: interface Declaration <: Statement { } - case 'declaration': - return node.type.slice(-11) === 'Declaration'; - case 'pattern': - if (node.type.slice(-7) === 'Pattern') return true; - // fallthrough: interface Expression <: Node, Pattern { } - case 'expression': - return node.type.slice(-10) === 'Expression' || node.type.slice(-7) === 'Literal' || node.type === 'Identifier' && (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty') || node.type === 'MetaProperty'; - case 'function': - return node.type === 'FunctionDeclaration' || node.type === 'FunctionExpression' || node.type === 'ArrowFunctionExpression'; - } - throw new Error("Unknown class name: ".concat(selector.name)); - }; - } - } - throw new Error("Unknown selector type: ".concat(selector.type)); -} - -/** - * @callback TraverseOptionFallback - * @param {external:AST} node The given node. - * @returns {string[]} An array of visitor keys for the given node. - */ - -/** - * @callback ClassMatcher - * @param {string} className The name of the class to match. - * @param {external:AST} node The node to match against. - * @param {Array} ancestry The ancestry of the node. - * @returns {boolean} True if the node matches the class, false if not. - */ - -/** - * @typedef {object} ESQueryOptions - * @property {string} [nodeTypeKey="type"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery. - * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node. - * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes. - * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes. - */ - -/** - * Given a `node` and its ancestors, determine if `node` is matched - * by `selector`. - * @param {?external:AST} node - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @throws {Error} Unknowns (operator, class name, selector type, or - * selector value type) - * @returns {boolean} - */ -function matches(node, selector, ancestry, options) { - if (!selector) { - return true; - } - if (!node) { - return false; - } - if (!ancestry) { - ancestry = []; - } - return getMatcher(selector)(node, ancestry, options); -} - -/** - * Get visitor keys of a given node. - * @param {external:AST} node The AST node to get keys. - * @param {ESQueryOptions|undefined} options - * @returns {string[]} Visitor keys of the node. - */ -function getVisitorKeys(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - var nodeType = node[nodeTypeKey]; - if (options && options.visitorKeys && options.visitorKeys[nodeType]) { - return options.visitorKeys[nodeType]; - } - if (estraverse.VisitorKeys[nodeType]) { - return estraverse.VisitorKeys[nodeType]; - } - if (options && typeof options.fallback === 'function') { - return options.fallback(node); - } - // 'iteration' fallback - return Object.keys(node).filter(function (key) { - return key !== nodeTypeKey; - }); -} - -/** - * Check whether the given value is an ASTNode or not. - * @param {any} node The value to check. - * @param {ESQueryOptions|undefined} options The options to use. - * @returns {boolean} `true` if the value is an ASTNode. - */ -function isNode(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return node !== null && _typeof(node) === 'object' && typeof node[nodeTypeKey] === 'string'; -} - -/** - * Determines if the given node has a sibling that matches the - * given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ -function sibling(node, matcher, ancestry, side, options) { - var _ancestry = _slicedToArray(ancestry, 1), - parent = _ancestry[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var startIndex = listProp.indexOf(node); - if (startIndex < 0) { - continue; - } - var lowerBound = void 0, - upperBound = void 0; - if (side === LEFT_SIDE) { - lowerBound = 0; - upperBound = startIndex; - } else { - lowerBound = startIndex + 1; - upperBound = listProp.length; - } - for (var k = lowerBound; k < upperBound; ++k) { - if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) { - return true; - } - } - } - } - return false; -} - -/** - * Determines if the given node has an adjacent sibling that matches - * the given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ -function adjacent(node, matcher, ancestry, side, options) { - var _ancestry2 = _slicedToArray(ancestry, 1), - parent = _ancestry2[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = listProp.indexOf(node); - if (idx < 0) { - continue; - } - if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) { - return true; - } - if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) { - return true; - } - } - } - return false; -} - -/** - * Determines if the given node is the `nth` child. - * If `nth` is negative then the position is counted - * from the end of the list of children. - * @param {external:AST} node - * @param {external:AST[]} ancestry - * @param {Integer} nth - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ -function nthChild(node, ancestry, nth, options) { - if (nth === 0) { - return false; - } - var _ancestry3 = _slicedToArray(ancestry, 1), - parent = _ancestry3[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = nth < 0 ? listProp.length + nth : nth - 1; - if (idx >= 0 && idx < listProp.length && listProp[idx] === node) { - return true; - } - } - } - return false; -} - -/** - * For each selector node marked as a subject, find the portion of the - * selector that the subject must match. - * @param {SelectorAST} selector - * @param {SelectorAST} [ancestor] Defaults to `selector` - * @returns {SelectorAST[]} - */ -function subjects(selector, ancestor) { - if (selector == null || _typeof(selector) != 'object') { - return []; - } - if (ancestor == null) { - ancestor = selector; - } - var results = selector.subject ? [ancestor] : []; - var keys = Object.keys(selector); - for (var i = 0; i < keys.length; ++i) { - var p = keys[i]; - var sel = selector[p]; - results.push.apply(results, _toConsumableArray(subjects(sel, p === 'left' ? sel : ancestor))); - } - return results; -} - -/** -* @callback TraverseVisitor -* @param {?external:AST} node -* @param {?external:AST} parent -* @param {external:AST[]} ancestry -*/ - -/** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {TraverseVisitor} visitor - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ -function traverse(ast, selector, visitor, options) { - if (!selector) { - return; - } - var ancestry = []; - var matcher = getMatcher(selector); - var altSubjects = subjects(selector).map(getMatcher); - estraverse.traverse(ast, { - enter: function enter(node, parent) { - if (parent != null) { - ancestry.unshift(parent); - } - if (matcher(node, ancestry, options)) { - if (altSubjects.length) { - for (var i = 0, l = altSubjects.length; i < l; ++i) { - if (altSubjects[i](node, ancestry, options)) { - visitor(node, parent, ancestry); - } - for (var k = 0, m = ancestry.length; k < m; ++k) { - var succeedingAncestry = ancestry.slice(k + 1); - if (altSubjects[i](ancestry[k], succeedingAncestry, options)) { - visitor(ancestry[k], parent, succeedingAncestry); - } - } - } - } else { - visitor(node, parent, ancestry); - } - } - }, - leave: function leave() { - ancestry.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); -} - -/** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ -function match(ast, selector, options) { - var results = []; - traverse(ast, selector, function (node) { - results.push(node); - }, options); - return results; -} - -/** - * Parse a selector string and return its AST. - * @param {string} selector - * @returns {SelectorAST} - */ -function parse(selector) { - return parser.parse(selector); -} - -/** - * Query the code AST using the selector string. - * @param {external:AST} ast - * @param {string} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ -function query(ast, selector, options) { - return match(ast, parse(selector), options); -} -query.parse = parse; -query.match = match; -query.traverse = traverse; -query.matches = matches; -query.query = query; - -export default query; diff --git a/graphql/node_modules/esquery/dist/esquery.esm.min.js b/graphql/node_modules/esquery/dist/esquery.esm.min.js deleted file mode 100644 index ca723b80..00000000 --- a/graphql/node_modules/esquery/dist/esquery.esm.min.js +++ /dev/null @@ -1,2 +0,0 @@ -function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--r)if(e[r].node===t)return!0;return!1}function d(e,t){return(new f).traverse(e,t)}function m(e,t){var r;return r=function(e,t){var r,n,o,a;for(n=e.length,o=0;n;)t(e[a=o+(r=n>>>1)])?n=r:(o=a+1,n-=r+1);return o}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},o={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:s={}},l.prototype.replace=function(e){this.parent[this.key]=e},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var e,t,r,n,o;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(v=s[f=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]&&!y(n,v[m])){if(h(u,x[d]))o=new c(v[m],[f,m],"Property",null);else{if(!p(v[m]))continue;o=new c(v[m],[f,m],null,null)}r.push(o)}}else if(p(v)){if(y(n,v))continue;r.push(new c(v,f,null,null))}}}else if(o=n.pop(),l=this.__execute(t.leave,o),this.__state===a||l===a)return},f.prototype.replace=function(e,t){var r,n,o,u,f,y,d,m,x,v,g,A,E;function b(e){var t,n,o,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((o=r[t]).ref&&o.ref.parent===a){if(o.ref.key=0;)if(v=o[E=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]){if(h(u,x[d]))y=new c(v[m],[E,m],"Property",new l(v,m));else{if(!p(v[m]))continue;y=new c(v[m],[E,m],null,new l(v,m))}r.push(y)}}else p(v)&&r.push(new c(v,E,null,new l(o,E)))}}else if(y=n.pop(),void 0!==(f=this.__execute(t.leave,y))&&f!==a&&f!==i&&f!==s&&y.ref.replace(f),this.__state!==s&&f!==s||b(y),this.__state===a||f===a)return A.root;return A.root},t.Syntax=r,t.traverse=d,t.replace=function(e,t){return(new f).replace(e,t)},t.attachComments=function(e,t,r){var o,a,i,s,l=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;ie.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?n.Break:l[s].extendedRange[0]>e.range[1]?n.Skip:void 0}}),s=0,d(e,{leave:function(e){for(var t;se.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=o,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t}(t)})),s=a((function(e){e.exports&&(e.exports=function(){function e(t,r,n,o){this.message=t,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(t=1,n=1;t<~+.]/,p=pe([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=fe(">",!1),y=fe("~",!1),d=fe("+",!1),m=fe(",",!1),x=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=fe("!",!1),g=fe("*",!1),A=fe("#",!1),E=fe("[",!1),b=fe("]",!1),S=/^[>","<","!"],!1,!1),C=fe("=",!1),w=function(e){return(e||"")+"="},P=/^[><]/,k=pe([">","<"],!1,!1),D=fe(".",!1),I=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},j=fe('"',!1),T=/^[^\\"]/,F=pe(["\\",'"'],!0,!1),R=fe("\\",!1),O={type:"any"},L=function(e,t){return e+t},M=function(e){return{type:"literal",value:(t=e.join(""),t.replace(/\\(.)/g,(function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return t}})))};var t},B=fe("'",!1),U=/^[^\\']/,K=pe(["\\","'"],!0,!1),N=/^[0-9]/,W=pe([["0","9"]],!1,!1),V=fe("type(",!1),q=/^[^ )]/,G=pe([" ",")"],!0,!1),z=fe(")",!1),H=/^[imsu]/,Y=pe(["i","m","s","u"],!1,!1),$=fe("/",!1),J=/^[^\/]/,Q=pe(["/"],!0,!1),X=fe(":not(",!1),Z=fe(":matches(",!1),ee=fe(":has(",!1),te=fe(":first-child",!1),re=fe(":last-child",!1),ne=fe(":nth-child(",!1),oe=fe(":nth-last-child(",!1),ae=fe(":",!1),ie=0,se=[{line:1,column:1}],ue=0,le=[],ce={};if("startRule"in r){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function fe(e,t){return{type:"literal",text:e,ignoreCase:t}}function pe(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function he(e){var r,n=se[e];if(n)return n;for(r=e-1;!se[r];)r--;for(n={line:(n=se[r]).line,column:n.column};rue&&(ue=ie,le=[]),le.push(e))}function me(){var e,t,r,n,o=32*ie+0,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,(t=xe())!==s&&(r=Ae())!==s&&xe()!==s?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(ie=e,e=s),e===s&&(e=ie,(t=xe())!==s&&(t=void 0),e=t),ce[o]={nextPos:ie,result:e},e)}function xe(){var e,r,n=32*ie+1,o=ce[n];if(o)return ie=o.nextPos,o.result;for(e=[],32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c));r!==s;)e.push(r),32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c));return ce[n]={nextPos:ie,result:e},e}function ve(){var e,r,n,o=32*ie+2,a=ce[o];if(a)return ie=a.nextPos,a.result;if(r=[],f.test(t.charAt(ie))?(n=t.charAt(ie),ie++):(n=s,de(p)),n!==s)for(;n!==s;)r.push(n),f.test(t.charAt(ie))?(n=t.charAt(ie),ie++):(n=s,de(p));else r=s;return r!==s&&(r=r.join("")),e=r,ce[o]={nextPos:ie,result:e},e}function ge(){var e,r,n,o=32*ie+3,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,(r=xe())!==s?(62===t.charCodeAt(ie)?(n=">",ie++):(n=s,de(h)),n!==s&&xe()!==s?e=r="child":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=xe())!==s?(126===t.charCodeAt(ie)?(n="~",ie++):(n=s,de(y)),n!==s&&xe()!==s?e=r="sibling":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=xe())!==s?(43===t.charCodeAt(ie)?(n="+",ie++):(n=s,de(d)),n!==s&&xe()!==s?e=r="adjacent":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c)),r!==s&&(n=xe())!==s?e=r="descendant":(ie=e,e=s)))),ce[o]={nextPos:ie,result:e},e)}function Ae(){var e,r,n,o,a,i,u,l,c=32*ie+5,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=be())!==s){for(n=[],o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=be())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);o!==s;)n.push(o),o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=be())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);n!==s?e=r=x(r,n):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}function Ee(){var e,t,r,n,o,a=32*ie+6,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,(t=ge())===s&&(t=null),t!==s&&(r=be())!==s?(o=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:o}:o):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}function be(){var e,t,r,n,o,a,i,u=32*ie+7,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,(t=Se())!==s){for(r=[],n=ie,(o=ge())!==s&&(a=Se())!==s?n=o=[o,a]:(ie=n,n=s);n!==s;)r.push(n),n=ie,(o=ge())!==s&&(a=Se())!==s?n=o=[o,a]:(ie=n,n=s);r!==s?(i=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),i)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}function Se(){var e,r,n,o,a,i,u,l=32*ie+8,c=ce[l];if(c)return ie=c.nextPos,c.result;if(e=ie,33===t.charCodeAt(ie)?(r="!",ie++):(r=s,de(v)),r===s&&(r=null),r!==s){if(n=[],(o=_e())!==s)for(;o!==s;)n.push(o),o=_e();else n=s;n!==s?(a=r,u=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(u.subject=!0),e=r=u):(ie=e,e=s)}else ie=e,e=s;return ce[l]={nextPos:ie,result:e},e}function _e(){var e,r=32*ie+9,n=ce[r];return n?(ie=n.nextPos,n.result):((e=function(){var e,r,n=32*ie+10,o=ce[n];return o?(ie=o.nextPos,o.result):(42===t.charCodeAt(ie)?(r="*",ie++):(r=s,de(g)),r!==s&&(r={type:"wildcard",value:r}),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o=32*ie+11,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,35===t.charCodeAt(ie)?(r="#",ie++):(r=s,de(A)),r===s&&(r=null),r!==s&&(n=ve())!==s?e=r={type:"identifier",value:n}:(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+12,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,91===t.charCodeAt(ie)?(r="[",ie++):(r=s,de(E)),r!==s&&xe()!==s&&(n=function(){var e,r,n,o,a=32*ie+16,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,(r=Ce())!==s&&xe()!==s&&(n=function(){var e,r,n,o=32*ie+14,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,33===t.charCodeAt(ie)?(r="!",ie++):(r=s,de(v)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ie)?(n="=",ie++):(n=s,de(C)),n!==s?(r=w(r),e=r):(ie=e,e=s)):(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?((o=function(){var e,r,n,o,a,i=32*ie+20,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,"type("===t.substr(ie,5)?(r="type(",ie+=5):(r=s,de(V)),r!==s)if(xe()!==s){if(n=[],q.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(G)),o!==s)for(;o!==s;)n.push(o),q.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(G));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r={type:"type",value:n.join("")},e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u=32*ie+22,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,47===t.charCodeAt(ie)?(r="/",ie++):(r=s,de($)),r!==s){if(n=[],J.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(Q)),o!==s)for(;o!==s;)n.push(o),J.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(Q));else n=s;n!==s?(47===t.charCodeAt(ie)?(o="/",ie++):(o=s,de($)),o!==s?((a=function(){var e,r,n=32*ie+21,o=ce[n];if(o)return ie=o.nextPos,o.result;if(e=[],H.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(Y)),r!==s)for(;r!==s;)e.push(r),H.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(Y));else e=s;return ce[n]={nextPos:ie,result:e},e}())===s&&(a=null),a!==s?(i=a,r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")},e=r):(ie=e,e=s)):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}()),o!==s?(r=I(r,n,o),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=Ce())!==s&&xe()!==s&&(n=function(){var e,r,n,o=32*ie+13,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,S.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(_)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ie)?(n="=",ie++):(n=s,de(C)),n!==s?(r=w(r),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(P.test(t.charAt(ie))?(e=t.charAt(ie),ie++):(e=s,de(k))),ce[o]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?((o=function(){var e,r,n,o,a,i,u=32*ie+17,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,34===t.charCodeAt(ie)?(r='"',ie++):(r=s,de(j)),r!==s){for(n=[],T.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(F)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));o!==s;)n.push(o),T.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(F)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));n!==s?(34===t.charCodeAt(ie)?(o='"',ie++):(o=s,de(j)),o!==s?(r=M(n),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;if(e===s)if(e=ie,39===t.charCodeAt(ie)?(r="'",ie++):(r=s,de(B)),r!==s){for(n=[],U.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(K)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));o!==s;)n.push(o),U.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(K)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));n!==s?(39===t.charCodeAt(ie)?(o="'",ie++):(o=s,de(B)),o!==s?(r=M(n),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u,l=32*ie+18,c=ce[l];if(c)return ie=c.nextPos,c.result;for(e=ie,r=ie,n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));if(n!==s?(46===t.charCodeAt(ie)?(o=".",ie++):(o=s,de(D)),o!==s?r=n=[n,o]:(ie=r,r=s)):(ie=r,r=s),r===s&&(r=null),r!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s?(i=n,u=(a=r)?[].concat.apply([],a).join(""):"",r={type:"literal",value:parseFloat(u+i.join(""))},e=r):(ie=e,e=s)}else ie=e,e=s;return ce[l]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,t,r=32*ie+19,n=ce[r];return n?(ie=n.nextPos,n.result):((t=ve())!==s&&(t={type:"literal",value:t}),e=t,ce[r]={nextPos:ie,result:e},e)}()),o!==s?(r=I(r,n,o),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=Ce())!==s&&(r={type:"attribute",name:r}),e=r)),ce[a]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?(93===t.charCodeAt(ie)?(o="]",ie++):(o=s,de(b)),o!==s?e=r=n:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i,u,l,c=32*ie+23,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,46===t.charCodeAt(ie)?(r=".",ie++):(r=s,de(D)),r!==s)if((n=ve())!==s){for(o=[],a=ie,46===t.charCodeAt(ie)?(i=".",ie++):(i=s,de(D)),i!==s&&(u=ve())!==s?a=i=[i,u]:(ie=a,a=s);a!==s;)o.push(a),a=ie,46===t.charCodeAt(ie)?(i=".",ie++):(i=s,de(D)),i!==s&&(u=ve())!==s?a=i=[i,u]:(ie=a,a=s);o!==s?(l=n,r={type:"field",name:o.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=r):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o,a=32*ie+24,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":not("===t.substr(ie,5)?(r=":not(",ie+=5):(r=s,de(X)),r!==s&&xe()!==s&&(n=Ae())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"not",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+25,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":matches("===t.substr(ie,9)?(r=":matches(",ie+=9):(r=s,de(Z)),r!==s&&xe()!==s&&(n=Ae())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"matches",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+26,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":has("===t.substr(ie,5)?(r=":has(",ie+=5):(r=s,de(ee)),r!==s&&xe()!==s&&(n=function(){var e,r,n,o,a,i,u,l,c=32*ie+4,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=Ee())!==s){for(n=[],o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=Ee())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);o!==s;)n.push(o),o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=Ee())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);n!==s?e=r=x(r,n):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"has",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n=32*ie+27,o=ce[n];return o?(ie=o.nextPos,o.result):(":first-child"===t.substr(ie,12)?(r=":first-child",ie+=12):(r=s,de(te)),r!==s&&(r=we(1)),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n=32*ie+28,o=ce[n];return o?(ie=o.nextPos,o.result):(":last-child"===t.substr(ie,11)?(r=":last-child",ie+=11):(r=s,de(re)),r!==s&&(r=Pe(1)),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i=32*ie+29,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,":nth-child("===t.substr(ie,11)?(r=":nth-child(",ie+=11):(r=s,de(ne)),r!==s)if(xe()!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r=we(parseInt(n.join(""),10)),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o,a,i=32*ie+30,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,":nth-last-child("===t.substr(ie,16)?(r=":nth-last-child(",ie+=16):(r=s,de(oe)),r!==s)if(xe()!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r=Pe(parseInt(n.join(""),10)),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o=32*ie+31,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,58===t.charCodeAt(ie)?(r=":",ie++):(r=s,de(ae)),r!==s&&(n=ve())!==s?e=r={type:"class",name:n}:(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}()),ce[r]={nextPos:ie,result:e},e)}function Ce(){var e,r,n,o,a,i,u,l,c=32*ie+15,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=ve())!==s){for(n=[],o=ie,46===t.charCodeAt(ie)?(a=".",ie++):(a=s,de(D)),a!==s&&(i=ve())!==s?o=a=[a,i]:(ie=o,o=s);o!==s;)n.push(o),o=ie,46===t.charCodeAt(ie)?(a=".",ie++):(a=s,de(D)),a!==s&&(i=ve())!==s?o=a=[a,i]:(ie=o,o=s);n!==s?(u=r,l=n,e=r=[].concat.apply([u],l).join("")):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}function we(e){return{type:"nth-child",index:{type:"literal",value:e}}}function Pe(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((n=l())!==s&&ie===t.length)return n;throw n!==s&&ie0&&p(e,t,r))&&f(t[0],t.slice(1),r)};case"descendant":var h=c(t.left),x=c(t.right);return function(e,t,r){if(x(e,t,r))for(var n=0,o=t.length;n":return function(e){return u(e,v)>t.value.value};case">=":return function(e){return u(e,v)>=t.value.value}}throw new Error("Unknown operator: ".concat(t.operator));case"sibling":var E=c(t.left),b=c(t.right);return function(e,r,n){return b(e,r,n)&&y(e,E,r,"LEFT_SIDE",n)||t.left.subject&&E(e,r,n)&&y(e,b,r,"RIGHT_SIDE",n)};case"adjacent":var S=c(t.left),_=c(t.right);return function(e,r,n){return _(e,r,n)&&d(e,S,r,"LEFT_SIDE",n)||t.right.subject&&S(e,r,n)&&d(e,_,r,"RIGHT_SIDE",n)};case"nth-child":var C=t.index.value,w=c(t.right);return function(e,t,r){return w(e,t,r)&&m(e,t,C,r)};case"nth-last-child":var P=-t.index.value,k=c(t.right);return function(e,t,r){return k(e,t,r)&&m(e,t,P,r)};case"class":var D=t.name.toLowerCase();return function(e,r,n){if(n&&n.matchClass)return n.matchClass(t.name,e,r);if(n&&n.nodeTypeKey)return!1;switch(D){case"statement":if("Statement"===e.type.slice(-9))return!0;case"declaration":return"Declaration"===e.type.slice(-11);case"pattern":if("Pattern"===e.type.slice(-7))return!0;case"expression":return"Expression"===e.type.slice(-10)||"Literal"===e.type.slice(-7)||"Identifier"===e.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===e.type;case"function":return"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}throw new Error("Unknown class name: ".concat(t.name))}}throw new Error("Unknown selector type: ".concat(t.type))}function p(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:i.VisitorKeys[n]?i.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return e!==r}))}function h(t,r){var n=r&&r.nodeTypeKey||"type";return null!==t&&"object"===e(t)&&"string"==typeof t[n]}function y(e,r,n,o,a){var i=t(n,1)[0];if(!i)return!1;for(var s=p(i,a),u=0;u0&&h(l[c-1],a)&&r(l[c-1],n,a))return!0;if("RIGHT_SIDE"===o&&c=0&&l\n Copyright (C) 2012 Ariya Hidayat \n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n/*jslint vars:false, bitwise:true*/\n/*jshint indent:4*/\n/*global exports:true*/\n(function clone(exports) {\n 'use strict';\n\n var Syntax,\n VisitorOption,\n VisitorKeys,\n BREAK,\n SKIP,\n REMOVE;\n\n function deepCopy(obj) {\n var ret = {}, key, val;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) {\n val = obj[key];\n if (typeof val === 'object' && val !== null) {\n ret[key] = deepCopy(val);\n } else {\n ret[key] = val;\n }\n }\n }\n return ret;\n }\n\n // based on LLVM libc++ upper_bound / lower_bound\n // MIT License\n\n function upperBound(array, func) {\n var diff, len, i, current;\n\n len = array.length;\n i = 0;\n\n while (len) {\n diff = len >>> 1;\n current = i + diff;\n if (func(array[current])) {\n len = diff;\n } else {\n i = current + 1;\n len -= diff + 1;\n }\n }\n return i;\n }\n\n Syntax = {\n AssignmentExpression: 'AssignmentExpression',\n AssignmentPattern: 'AssignmentPattern',\n ArrayExpression: 'ArrayExpression',\n ArrayPattern: 'ArrayPattern',\n ArrowFunctionExpression: 'ArrowFunctionExpression',\n AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7.\n BlockStatement: 'BlockStatement',\n BinaryExpression: 'BinaryExpression',\n BreakStatement: 'BreakStatement',\n CallExpression: 'CallExpression',\n CatchClause: 'CatchClause',\n ChainExpression: 'ChainExpression',\n ClassBody: 'ClassBody',\n ClassDeclaration: 'ClassDeclaration',\n ClassExpression: 'ClassExpression',\n ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7.\n ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7.\n ConditionalExpression: 'ConditionalExpression',\n ContinueStatement: 'ContinueStatement',\n DebuggerStatement: 'DebuggerStatement',\n DirectiveStatement: 'DirectiveStatement',\n DoWhileStatement: 'DoWhileStatement',\n EmptyStatement: 'EmptyStatement',\n ExportAllDeclaration: 'ExportAllDeclaration',\n ExportDefaultDeclaration: 'ExportDefaultDeclaration',\n ExportNamedDeclaration: 'ExportNamedDeclaration',\n ExportSpecifier: 'ExportSpecifier',\n ExpressionStatement: 'ExpressionStatement',\n ForStatement: 'ForStatement',\n ForInStatement: 'ForInStatement',\n ForOfStatement: 'ForOfStatement',\n FunctionDeclaration: 'FunctionDeclaration',\n FunctionExpression: 'FunctionExpression',\n GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7.\n Identifier: 'Identifier',\n IfStatement: 'IfStatement',\n ImportExpression: 'ImportExpression',\n ImportDeclaration: 'ImportDeclaration',\n ImportDefaultSpecifier: 'ImportDefaultSpecifier',\n ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',\n ImportSpecifier: 'ImportSpecifier',\n Literal: 'Literal',\n LabeledStatement: 'LabeledStatement',\n LogicalExpression: 'LogicalExpression',\n MemberExpression: 'MemberExpression',\n MetaProperty: 'MetaProperty',\n MethodDefinition: 'MethodDefinition',\n ModuleSpecifier: 'ModuleSpecifier',\n NewExpression: 'NewExpression',\n ObjectExpression: 'ObjectExpression',\n ObjectPattern: 'ObjectPattern',\n PrivateIdentifier: 'PrivateIdentifier',\n Program: 'Program',\n Property: 'Property',\n PropertyDefinition: 'PropertyDefinition',\n RestElement: 'RestElement',\n ReturnStatement: 'ReturnStatement',\n SequenceExpression: 'SequenceExpression',\n SpreadElement: 'SpreadElement',\n Super: 'Super',\n SwitchStatement: 'SwitchStatement',\n SwitchCase: 'SwitchCase',\n TaggedTemplateExpression: 'TaggedTemplateExpression',\n TemplateElement: 'TemplateElement',\n TemplateLiteral: 'TemplateLiteral',\n ThisExpression: 'ThisExpression',\n ThrowStatement: 'ThrowStatement',\n TryStatement: 'TryStatement',\n UnaryExpression: 'UnaryExpression',\n UpdateExpression: 'UpdateExpression',\n VariableDeclaration: 'VariableDeclaration',\n VariableDeclarator: 'VariableDeclarator',\n WhileStatement: 'WhileStatement',\n WithStatement: 'WithStatement',\n YieldExpression: 'YieldExpression'\n };\n\n VisitorKeys = {\n AssignmentExpression: ['left', 'right'],\n AssignmentPattern: ['left', 'right'],\n ArrayExpression: ['elements'],\n ArrayPattern: ['elements'],\n ArrowFunctionExpression: ['params', 'body'],\n AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7.\n BlockStatement: ['body'],\n BinaryExpression: ['left', 'right'],\n BreakStatement: ['label'],\n CallExpression: ['callee', 'arguments'],\n CatchClause: ['param', 'body'],\n ChainExpression: ['expression'],\n ClassBody: ['body'],\n ClassDeclaration: ['id', 'superClass', 'body'],\n ClassExpression: ['id', 'superClass', 'body'],\n ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7.\n ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7.\n ConditionalExpression: ['test', 'consequent', 'alternate'],\n ContinueStatement: ['label'],\n DebuggerStatement: [],\n DirectiveStatement: [],\n DoWhileStatement: ['body', 'test'],\n EmptyStatement: [],\n ExportAllDeclaration: ['source'],\n ExportDefaultDeclaration: ['declaration'],\n ExportNamedDeclaration: ['declaration', 'specifiers', 'source'],\n ExportSpecifier: ['exported', 'local'],\n ExpressionStatement: ['expression'],\n ForStatement: ['init', 'test', 'update', 'body'],\n ForInStatement: ['left', 'right', 'body'],\n ForOfStatement: ['left', 'right', 'body'],\n FunctionDeclaration: ['id', 'params', 'body'],\n FunctionExpression: ['id', 'params', 'body'],\n GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7.\n Identifier: [],\n IfStatement: ['test', 'consequent', 'alternate'],\n ImportExpression: ['source'],\n ImportDeclaration: ['specifiers', 'source'],\n ImportDefaultSpecifier: ['local'],\n ImportNamespaceSpecifier: ['local'],\n ImportSpecifier: ['imported', 'local'],\n Literal: [],\n LabeledStatement: ['label', 'body'],\n LogicalExpression: ['left', 'right'],\n MemberExpression: ['object', 'property'],\n MetaProperty: ['meta', 'property'],\n MethodDefinition: ['key', 'value'],\n ModuleSpecifier: [],\n NewExpression: ['callee', 'arguments'],\n ObjectExpression: ['properties'],\n ObjectPattern: ['properties'],\n PrivateIdentifier: [],\n Program: ['body'],\n Property: ['key', 'value'],\n PropertyDefinition: ['key', 'value'],\n RestElement: [ 'argument' ],\n ReturnStatement: ['argument'],\n SequenceExpression: ['expressions'],\n SpreadElement: ['argument'],\n Super: [],\n SwitchStatement: ['discriminant', 'cases'],\n SwitchCase: ['test', 'consequent'],\n TaggedTemplateExpression: ['tag', 'quasi'],\n TemplateElement: [],\n TemplateLiteral: ['quasis', 'expressions'],\n ThisExpression: [],\n ThrowStatement: ['argument'],\n TryStatement: ['block', 'handler', 'finalizer'],\n UnaryExpression: ['argument'],\n UpdateExpression: ['argument'],\n VariableDeclaration: ['declarations'],\n VariableDeclarator: ['id', 'init'],\n WhileStatement: ['test', 'body'],\n WithStatement: ['object', 'body'],\n YieldExpression: ['argument']\n };\n\n // unique id\n BREAK = {};\n SKIP = {};\n REMOVE = {};\n\n VisitorOption = {\n Break: BREAK,\n Skip: SKIP,\n Remove: REMOVE\n };\n\n function Reference(parent, key) {\n this.parent = parent;\n this.key = key;\n }\n\n Reference.prototype.replace = function replace(node) {\n this.parent[this.key] = node;\n };\n\n Reference.prototype.remove = function remove() {\n if (Array.isArray(this.parent)) {\n this.parent.splice(this.key, 1);\n return true;\n } else {\n this.replace(null);\n return false;\n }\n };\n\n function Element(node, path, wrap, ref) {\n this.node = node;\n this.path = path;\n this.wrap = wrap;\n this.ref = ref;\n }\n\n function Controller() { }\n\n // API:\n // return property path array from root to current node\n Controller.prototype.path = function path() {\n var i, iz, j, jz, result, element;\n\n function addToPath(result, path) {\n if (Array.isArray(path)) {\n for (j = 0, jz = path.length; j < jz; ++j) {\n result.push(path[j]);\n }\n } else {\n result.push(path);\n }\n }\n\n // root node\n if (!this.__current.path) {\n return null;\n }\n\n // first node is sentinel, second node is root element\n result = [];\n for (i = 2, iz = this.__leavelist.length; i < iz; ++i) {\n element = this.__leavelist[i];\n addToPath(result, element.path);\n }\n addToPath(result, this.__current.path);\n return result;\n };\n\n // API:\n // return type of current node\n Controller.prototype.type = function () {\n var node = this.current();\n return node.type || this.__current.wrap;\n };\n\n // API:\n // return array of parent elements\n Controller.prototype.parents = function parents() {\n var i, iz, result;\n\n // first node is sentinel\n result = [];\n for (i = 1, iz = this.__leavelist.length; i < iz; ++i) {\n result.push(this.__leavelist[i].node);\n }\n\n return result;\n };\n\n // API:\n // return current node\n Controller.prototype.current = function current() {\n return this.__current.node;\n };\n\n Controller.prototype.__execute = function __execute(callback, element) {\n var previous, result;\n\n result = undefined;\n\n previous = this.__current;\n this.__current = element;\n this.__state = null;\n if (callback) {\n result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node);\n }\n this.__current = previous;\n\n return result;\n };\n\n // API:\n // notify control skip / break\n Controller.prototype.notify = function notify(flag) {\n this.__state = flag;\n };\n\n // API:\n // skip child nodes of current node\n Controller.prototype.skip = function () {\n this.notify(SKIP);\n };\n\n // API:\n // break traversals\n Controller.prototype['break'] = function () {\n this.notify(BREAK);\n };\n\n // API:\n // remove node\n Controller.prototype.remove = function () {\n this.notify(REMOVE);\n };\n\n Controller.prototype.__initialize = function(root, visitor) {\n this.visitor = visitor;\n this.root = root;\n this.__worklist = [];\n this.__leavelist = [];\n this.__current = null;\n this.__state = null;\n this.__fallback = null;\n if (visitor.fallback === 'iteration') {\n this.__fallback = Object.keys;\n } else if (typeof visitor.fallback === 'function') {\n this.__fallback = visitor.fallback;\n }\n\n this.__keys = VisitorKeys;\n if (visitor.keys) {\n this.__keys = Object.assign(Object.create(this.__keys), visitor.keys);\n }\n };\n\n function isNode(node) {\n if (node == null) {\n return false;\n }\n return typeof node === 'object' && typeof node.type === 'string';\n }\n\n function isProperty(nodeType, key) {\n return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key;\n }\n \n function candidateExistsInLeaveList(leavelist, candidate) {\n for (var i = leavelist.length - 1; i >= 0; --i) {\n if (leavelist[i].node === candidate) {\n return true;\n }\n }\n return false;\n }\n\n Controller.prototype.traverse = function traverse(root, visitor) {\n var worklist,\n leavelist,\n element,\n node,\n nodeType,\n ret,\n key,\n current,\n current2,\n candidates,\n candidate,\n sentinel;\n\n this.__initialize(root, visitor);\n\n sentinel = {};\n\n // reference\n worklist = this.__worklist;\n leavelist = this.__leavelist;\n\n // initialize\n worklist.push(new Element(root, null, null, null));\n leavelist.push(new Element(null, null, null, null));\n\n while (worklist.length) {\n element = worklist.pop();\n\n if (element === sentinel) {\n element = leavelist.pop();\n\n ret = this.__execute(visitor.leave, element);\n\n if (this.__state === BREAK || ret === BREAK) {\n return;\n }\n continue;\n }\n\n if (element.node) {\n\n ret = this.__execute(visitor.enter, element);\n\n if (this.__state === BREAK || ret === BREAK) {\n return;\n }\n\n worklist.push(sentinel);\n leavelist.push(element);\n\n if (this.__state === SKIP || ret === SKIP) {\n continue;\n }\n\n node = element.node;\n nodeType = node.type || element.wrap;\n candidates = this.__keys[nodeType];\n if (!candidates) {\n if (this.__fallback) {\n candidates = this.__fallback(node);\n } else {\n throw new Error('Unknown node type ' + nodeType + '.');\n }\n }\n\n current = candidates.length;\n while ((current -= 1) >= 0) {\n key = candidates[current];\n candidate = node[key];\n if (!candidate) {\n continue;\n }\n\n if (Array.isArray(candidate)) {\n current2 = candidate.length;\n while ((current2 -= 1) >= 0) {\n if (!candidate[current2]) {\n continue;\n }\n\n if (candidateExistsInLeaveList(leavelist, candidate[current2])) {\n continue;\n }\n\n if (isProperty(nodeType, candidates[current])) {\n element = new Element(candidate[current2], [key, current2], 'Property', null);\n } else if (isNode(candidate[current2])) {\n element = new Element(candidate[current2], [key, current2], null, null);\n } else {\n continue;\n }\n worklist.push(element);\n }\n } else if (isNode(candidate)) {\n if (candidateExistsInLeaveList(leavelist, candidate)) {\n continue;\n }\n\n worklist.push(new Element(candidate, key, null, null));\n }\n }\n }\n }\n };\n\n Controller.prototype.replace = function replace(root, visitor) {\n var worklist,\n leavelist,\n node,\n nodeType,\n target,\n element,\n current,\n current2,\n candidates,\n candidate,\n sentinel,\n outer,\n key;\n\n function removeElem(element) {\n var i,\n key,\n nextElem,\n parent;\n\n if (element.ref.remove()) {\n // When the reference is an element of an array.\n key = element.ref.key;\n parent = element.ref.parent;\n\n // If removed from array, then decrease following items' keys.\n i = worklist.length;\n while (i--) {\n nextElem = worklist[i];\n if (nextElem.ref && nextElem.ref.parent === parent) {\n if (nextElem.ref.key < key) {\n break;\n }\n --nextElem.ref.key;\n }\n }\n }\n }\n\n this.__initialize(root, visitor);\n\n sentinel = {};\n\n // reference\n worklist = this.__worklist;\n leavelist = this.__leavelist;\n\n // initialize\n outer = {\n root: root\n };\n element = new Element(root, null, null, new Reference(outer, 'root'));\n worklist.push(element);\n leavelist.push(element);\n\n while (worklist.length) {\n element = worklist.pop();\n\n if (element === sentinel) {\n element = leavelist.pop();\n\n target = this.__execute(visitor.leave, element);\n\n // node may be replaced with null,\n // so distinguish between undefined and null in this place\n if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) {\n // replace\n element.ref.replace(target);\n }\n\n if (this.__state === REMOVE || target === REMOVE) {\n removeElem(element);\n }\n\n if (this.__state === BREAK || target === BREAK) {\n return outer.root;\n }\n continue;\n }\n\n target = this.__execute(visitor.enter, element);\n\n // node may be replaced with null,\n // so distinguish between undefined and null in this place\n if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) {\n // replace\n element.ref.replace(target);\n element.node = target;\n }\n\n if (this.__state === REMOVE || target === REMOVE) {\n removeElem(element);\n element.node = null;\n }\n\n if (this.__state === BREAK || target === BREAK) {\n return outer.root;\n }\n\n // node may be null\n node = element.node;\n if (!node) {\n continue;\n }\n\n worklist.push(sentinel);\n leavelist.push(element);\n\n if (this.__state === SKIP || target === SKIP) {\n continue;\n }\n\n nodeType = node.type || element.wrap;\n candidates = this.__keys[nodeType];\n if (!candidates) {\n if (this.__fallback) {\n candidates = this.__fallback(node);\n } else {\n throw new Error('Unknown node type ' + nodeType + '.');\n }\n }\n\n current = candidates.length;\n while ((current -= 1) >= 0) {\n key = candidates[current];\n candidate = node[key];\n if (!candidate) {\n continue;\n }\n\n if (Array.isArray(candidate)) {\n current2 = candidate.length;\n while ((current2 -= 1) >= 0) {\n if (!candidate[current2]) {\n continue;\n }\n if (isProperty(nodeType, candidates[current])) {\n element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2));\n } else if (isNode(candidate[current2])) {\n element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2));\n } else {\n continue;\n }\n worklist.push(element);\n }\n } else if (isNode(candidate)) {\n worklist.push(new Element(candidate, key, null, new Reference(node, key)));\n }\n }\n }\n\n return outer.root;\n };\n\n function traverse(root, visitor) {\n var controller = new Controller();\n return controller.traverse(root, visitor);\n }\n\n function replace(root, visitor) {\n var controller = new Controller();\n return controller.replace(root, visitor);\n }\n\n function extendCommentRange(comment, tokens) {\n var target;\n\n target = upperBound(tokens, function search(token) {\n return token.range[0] > comment.range[0];\n });\n\n comment.extendedRange = [comment.range[0], comment.range[1]];\n\n if (target !== tokens.length) {\n comment.extendedRange[1] = tokens[target].range[0];\n }\n\n target -= 1;\n if (target >= 0) {\n comment.extendedRange[0] = tokens[target].range[1];\n }\n\n return comment;\n }\n\n function attachComments(tree, providedComments, tokens) {\n // At first, we should calculate extended comment ranges.\n var comments = [], comment, len, i, cursor;\n\n if (!tree.range) {\n throw new Error('attachComments needs range information');\n }\n\n // tokens array is empty, we attach comments to tree as 'leadingComments'\n if (!tokens.length) {\n if (providedComments.length) {\n for (i = 0, len = providedComments.length; i < len; i += 1) {\n comment = deepCopy(providedComments[i]);\n comment.extendedRange = [0, tree.range[0]];\n comments.push(comment);\n }\n tree.leadingComments = comments;\n }\n return tree;\n }\n\n for (i = 0, len = providedComments.length; i < len; i += 1) {\n comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens));\n }\n\n // This is based on John Freeman's implementation.\n cursor = 0;\n traverse(tree, {\n enter: function (node) {\n var comment;\n\n while (cursor < comments.length) {\n comment = comments[cursor];\n if (comment.extendedRange[1] > node.range[0]) {\n break;\n }\n\n if (comment.extendedRange[1] === node.range[0]) {\n if (!node.leadingComments) {\n node.leadingComments = [];\n }\n node.leadingComments.push(comment);\n comments.splice(cursor, 1);\n } else {\n cursor += 1;\n }\n }\n\n // already out of owned node\n if (cursor === comments.length) {\n return VisitorOption.Break;\n }\n\n if (comments[cursor].extendedRange[0] > node.range[1]) {\n return VisitorOption.Skip;\n }\n }\n });\n\n cursor = 0;\n traverse(tree, {\n leave: function (node) {\n var comment;\n\n while (cursor < comments.length) {\n comment = comments[cursor];\n if (node.range[1] < comment.extendedRange[0]) {\n break;\n }\n\n if (node.range[1] === comment.extendedRange[0]) {\n if (!node.trailingComments) {\n node.trailingComments = [];\n }\n node.trailingComments.push(comment);\n comments.splice(cursor, 1);\n } else {\n cursor += 1;\n }\n }\n\n // already out of owned node\n if (cursor === comments.length) {\n return VisitorOption.Break;\n }\n\n if (comments[cursor].extendedRange[0] > node.range[1]) {\n return VisitorOption.Skip;\n }\n }\n });\n\n return tree;\n }\n\n exports.Syntax = Syntax;\n exports.traverse = traverse;\n exports.replace = replace;\n exports.attachComments = attachComments;\n exports.VisitorKeys = VisitorKeys;\n exports.VisitorOption = VisitorOption;\n exports.Controller = Controller;\n exports.cloneEnvironment = function () { return clone({}); };\n\n return exports;\n}(exports));\n/* vim: set sw=4 ts=4 et tw=80 : */\n","/*\n * Generated by PEG.js 0.10.0.\n *\n * http://pegjs.org/\n */\n(function(root, factory) {\n if (typeof define === \"function\" && define.amd) {\n define([], factory);\n } else if (typeof module === \"object\" && module.exports) {\n module.exports = factory();\n }\n})(this, function() {\n \"use strict\";\n\n function peg$subclass(child, parent) {\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n }\n\n function peg$SyntaxError(message, expected, found, location) {\n this.message = message;\n this.expected = expected;\n this.found = found;\n this.location = location;\n this.name = \"SyntaxError\";\n\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, peg$SyntaxError);\n }\n }\n\n peg$subclass(peg$SyntaxError, Error);\n\n peg$SyntaxError.buildMessage = function(expected, found) {\n var DESCRIBE_EXPECTATION_FNS = {\n literal: function(expectation) {\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n },\n\n \"class\": function(expectation) {\n var escapedParts = \"\",\n i;\n\n for (i = 0; i < expectation.parts.length; i++) {\n escapedParts += expectation.parts[i] instanceof Array\n ? classEscape(expectation.parts[i][0]) + \"-\" + classEscape(expectation.parts[i][1])\n : classEscape(expectation.parts[i]);\n }\n\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n },\n\n any: function(expectation) {\n return \"any character\";\n },\n\n end: function(expectation) {\n return \"end of input\";\n },\n\n other: function(expectation) {\n return expectation.description;\n }\n };\n\n function hex(ch) {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n\n function literalEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\"/g, '\\\\\"')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function classEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\]/g, '\\\\]')\n .replace(/\\^/g, '\\\\^')\n .replace(/-/g, '\\\\-')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function describeExpectation(expectation) {\n return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);\n }\n\n function describeExpected(expected) {\n var descriptions = new Array(expected.length),\n i, j;\n\n for (i = 0; i < expected.length; i++) {\n descriptions[i] = describeExpectation(expected[i]);\n }\n\n descriptions.sort();\n\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found) {\n return found ? \"\\\"\" + literalEscape(found) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n\n function peg$parse(input, options) {\n options = options !== void 0 ? options : {};\n\n var peg$FAILED = {},\n\n peg$startRuleFunctions = { start: peg$parsestart },\n peg$startRuleFunction = peg$parsestart,\n\n peg$c0 = function(ss) {\n return ss.length === 1 ? ss[0] : { type: 'matches', selectors: ss };\n },\n peg$c1 = function() { return void 0; },\n peg$c2 = \" \",\n peg$c3 = peg$literalExpectation(\" \", false),\n peg$c4 = /^[^ [\\],():#!=><~+.]/,\n peg$c5 = peg$classExpectation([\" \", \"[\", \"]\", \",\", \"(\", \")\", \":\", \"#\", \"!\", \"=\", \">\", \"<\", \"~\", \"+\", \".\"], true, false),\n peg$c6 = function(i) { return i.join(''); },\n peg$c7 = \">\",\n peg$c8 = peg$literalExpectation(\">\", false),\n peg$c9 = function() { return 'child'; },\n peg$c10 = \"~\",\n peg$c11 = peg$literalExpectation(\"~\", false),\n peg$c12 = function() { return 'sibling'; },\n peg$c13 = \"+\",\n peg$c14 = peg$literalExpectation(\"+\", false),\n peg$c15 = function() { return 'adjacent'; },\n peg$c16 = function() { return 'descendant'; },\n peg$c17 = \",\",\n peg$c18 = peg$literalExpectation(\",\", false),\n peg$c19 = function(s, ss) {\n return [s].concat(ss.map(function (s) { return s[3]; }));\n },\n peg$c20 = function(op, s) {\n if (!op) return s;\n return { type: op, left: { type: 'exactNode' }, right: s };\n },\n peg$c21 = function(a, ops) {\n return ops.reduce(function (memo, rhs) {\n return { type: rhs[0], left: memo, right: rhs[1] };\n }, a);\n },\n peg$c22 = \"!\",\n peg$c23 = peg$literalExpectation(\"!\", false),\n peg$c24 = function(subject, as) {\n const b = as.length === 1 ? as[0] : { type: 'compound', selectors: as };\n if(subject) b.subject = true;\n return b;\n },\n peg$c25 = \"*\",\n peg$c26 = peg$literalExpectation(\"*\", false),\n peg$c27 = function(a) { return { type: 'wildcard', value: a }; },\n peg$c28 = \"#\",\n peg$c29 = peg$literalExpectation(\"#\", false),\n peg$c30 = function(i) { return { type: 'identifier', value: i }; },\n peg$c31 = \"[\",\n peg$c32 = peg$literalExpectation(\"[\", false),\n peg$c33 = \"]\",\n peg$c34 = peg$literalExpectation(\"]\", false),\n peg$c35 = function(v) { return v; },\n peg$c36 = /^[>\", \"<\", \"!\"], false, false),\n peg$c38 = \"=\",\n peg$c39 = peg$literalExpectation(\"=\", false),\n peg$c40 = function(a) { return (a || '') + '='; },\n peg$c41 = /^[><]/,\n peg$c42 = peg$classExpectation([\">\", \"<\"], false, false),\n peg$c43 = \".\",\n peg$c44 = peg$literalExpectation(\".\", false),\n peg$c45 = function(a, as) {\n return [].concat.apply([a], as).join('');\n },\n peg$c46 = function(name, op, value) {\n return { type: 'attribute', name: name, operator: op, value: value };\n },\n peg$c47 = function(name) { return { type: 'attribute', name: name }; },\n peg$c48 = \"\\\"\",\n peg$c49 = peg$literalExpectation(\"\\\"\", false),\n peg$c50 = /^[^\\\\\"]/,\n peg$c51 = peg$classExpectation([\"\\\\\", \"\\\"\"], true, false),\n peg$c52 = \"\\\\\",\n peg$c53 = peg$literalExpectation(\"\\\\\", false),\n peg$c54 = peg$anyExpectation(),\n peg$c55 = function(a, b) { return a + b; },\n peg$c56 = function(d) {\n return { type: 'literal', value: strUnescape(d.join('')) };\n },\n peg$c57 = \"'\",\n peg$c58 = peg$literalExpectation(\"'\", false),\n peg$c59 = /^[^\\\\']/,\n peg$c60 = peg$classExpectation([\"\\\\\", \"'\"], true, false),\n peg$c61 = /^[0-9]/,\n peg$c62 = peg$classExpectation([[\"0\", \"9\"]], false, false),\n peg$c63 = function(a, b) {\n // Can use `a.flat().join('')` once supported\n const leadingDecimals = a ? [].concat.apply([], a).join('') : '';\n return { type: 'literal', value: parseFloat(leadingDecimals + b.join('')) };\n },\n peg$c64 = function(i) { return { type: 'literal', value: i }; },\n peg$c65 = \"type(\",\n peg$c66 = peg$literalExpectation(\"type(\", false),\n peg$c67 = /^[^ )]/,\n peg$c68 = peg$classExpectation([\" \", \")\"], true, false),\n peg$c69 = \")\",\n peg$c70 = peg$literalExpectation(\")\", false),\n peg$c71 = function(t) { return { type: 'type', value: t.join('') }; },\n peg$c72 = /^[imsu]/,\n peg$c73 = peg$classExpectation([\"i\", \"m\", \"s\", \"u\"], false, false),\n peg$c74 = \"/\",\n peg$c75 = peg$literalExpectation(\"/\", false),\n peg$c76 = /^[^\\/]/,\n peg$c77 = peg$classExpectation([\"/\"], true, false),\n peg$c78 = function(d, flgs) { return {\n type: 'regexp', value: new RegExp(d.join(''), flgs ? flgs.join('') : '') };\n },\n peg$c79 = function(i, is) {\n return { type: 'field', name: is.reduce(function(memo, p){ return memo + p[0] + p[1]; }, i)};\n },\n peg$c80 = \":not(\",\n peg$c81 = peg$literalExpectation(\":not(\", false),\n peg$c82 = function(ss) { return { type: 'not', selectors: ss }; },\n peg$c83 = \":matches(\",\n peg$c84 = peg$literalExpectation(\":matches(\", false),\n peg$c85 = function(ss) { return { type: 'matches', selectors: ss }; },\n peg$c86 = \":has(\",\n peg$c87 = peg$literalExpectation(\":has(\", false),\n peg$c88 = function(ss) { return { type: 'has', selectors: ss }; },\n peg$c89 = \":first-child\",\n peg$c90 = peg$literalExpectation(\":first-child\", false),\n peg$c91 = function() { return nth(1); },\n peg$c92 = \":last-child\",\n peg$c93 = peg$literalExpectation(\":last-child\", false),\n peg$c94 = function() { return nthLast(1); },\n peg$c95 = \":nth-child(\",\n peg$c96 = peg$literalExpectation(\":nth-child(\", false),\n peg$c97 = function(n) { return nth(parseInt(n.join(''), 10)); },\n peg$c98 = \":nth-last-child(\",\n peg$c99 = peg$literalExpectation(\":nth-last-child(\", false),\n peg$c100 = function(n) { return nthLast(parseInt(n.join(''), 10)); },\n peg$c101 = \":\",\n peg$c102 = peg$literalExpectation(\":\", false),\n peg$c103 = function(c) {\n return { type: 'class', name: c };\n },\n\n peg$currPos = 0,\n peg$savedPos = 0,\n peg$posDetailsCache = [{ line: 1, column: 1 }],\n peg$maxFailPos = 0,\n peg$maxFailExpected = [],\n peg$silentFails = 0,\n\n peg$resultsCache = {},\n\n peg$result;\n\n if (\"startRule\" in options) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n\n function text() {\n return input.substring(peg$savedPos, peg$currPos);\n }\n\n function location() {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n\n function expected(description, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildStructuredError(\n [peg$otherExpectation(description)],\n input.substring(peg$savedPos, peg$currPos),\n location\n );\n }\n\n function error(message, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildSimpleError(message, location);\n }\n\n function peg$literalExpectation(text, ignoreCase) {\n return { type: \"literal\", text: text, ignoreCase: ignoreCase };\n }\n\n function peg$classExpectation(parts, inverted, ignoreCase) {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n\n function peg$anyExpectation() {\n return { type: \"any\" };\n }\n\n function peg$endExpectation() {\n return { type: \"end\" };\n }\n\n function peg$otherExpectation(description) {\n return { type: \"other\", description: description };\n }\n\n function peg$computePosDetails(pos) {\n var details = peg$posDetailsCache[pos], p;\n\n if (details) {\n return details;\n } else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n } else {\n details.column++;\n }\n\n p++;\n }\n\n peg$posDetailsCache[pos] = details;\n return details;\n }\n }\n\n function peg$computeLocation(startPos, endPos) {\n var startPosDetails = peg$computePosDetails(startPos),\n endPosDetails = peg$computePosDetails(endPos);\n\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n\n function peg$fail(expected) {\n if (peg$currPos < peg$maxFailPos) { return; }\n\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n\n peg$maxFailExpected.push(expected);\n }\n\n function peg$buildSimpleError(message, location) {\n return new peg$SyntaxError(message, null, null, location);\n }\n\n function peg$buildStructuredError(expected, found, location) {\n return new peg$SyntaxError(\n peg$SyntaxError.buildMessage(expected, found),\n expected,\n found,\n location\n );\n }\n\n function peg$parsestart() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 0,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselectors();\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c1();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parse_() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 1,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifierName() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 2,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = [];\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c6(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsebinaryOp() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 3,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 62) {\n s2 = peg$c7;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c8); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c9();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 126) {\n s2 = peg$c10;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c12();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 43) {\n s2 = peg$c13;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c14); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c15();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c16();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 4,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsehasSelector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 5,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseselector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelector() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 6,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsebinaryOp();\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselector();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c20(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselector() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 7,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsesequence();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsesequence() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 8,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$parseatom();\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$parseatom();\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseatom() {\n var s0;\n\n var key = peg$currPos * 32 + 9,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$parsewildcard();\n if (s0 === peg$FAILED) {\n s0 = peg$parseidentifier();\n if (s0 === peg$FAILED) {\n s0 = peg$parseattr();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefield();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenegation();\n if (s0 === peg$FAILED) {\n s0 = peg$parsematches();\n if (s0 === peg$FAILED) {\n s0 = peg$parsehas();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefirstChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parselastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthLastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parseclass();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsewildcard() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 10,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 42) {\n s1 = peg$c25;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c26); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c27(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifier() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 11,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 35) {\n s1 = peg$c28;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c29); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c30(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattr() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 12,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 91) {\n s1 = peg$c31;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c32); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrValue();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 93) {\n s5 = peg$c33;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c34); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c35(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 13,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (peg$c36.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c37); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n if (peg$c41.test(input.charAt(peg$currPos))) {\n s0 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c42); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrEqOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 14,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrName() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 15,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c45(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrValue() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 16,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrEqOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsetype();\n if (s5 === peg$FAILED) {\n s5 = peg$parseregex();\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsestring();\n if (s5 === peg$FAILED) {\n s5 = peg$parsenumber();\n if (s5 === peg$FAILED) {\n s5 = peg$parsepath();\n }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c47(s1);\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsestring() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 17,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 34) {\n s1 = peg$c48;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 34) {\n s3 = peg$c48;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c57;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s3 = peg$c57;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenumber() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 18,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$currPos;\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 46) {\n s3 = peg$c43;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c63(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsepath() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 19,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c64(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsetype() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 20,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c65) {\n s1 = peg$c65;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c66); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c71(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseflags() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 21,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseregex() {\n var s0, s1, s2, s3, s4;\n\n var key = peg$currPos * 32 + 22,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 47) {\n s1 = peg$c74;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 47) {\n s3 = peg$c74;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parseflags();\n if (s4 === peg$FAILED) {\n s4 = null;\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c78(s2, s4);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefield() {\n var s0, s1, s2, s3, s4, s5, s6;\n\n var key = peg$currPos * 32 + 23,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s1 = peg$c43;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n s3 = [];\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c79(s2, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenegation() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 24,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c80) {\n s1 = peg$c80;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c81); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c82(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsematches() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 25,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 9) === peg$c83) {\n s1 = peg$c83;\n peg$currPos += 9;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c84); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c85(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehas() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 26,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c86) {\n s1 = peg$c86;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c87); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parsehasSelectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c88(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefirstChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 27,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 12) === peg$c89) {\n s1 = peg$c89;\n peg$currPos += 12;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c90); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c91();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parselastChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 28,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c92) {\n s1 = peg$c92;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c93); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c94();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 29,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c95) {\n s1 = peg$c95;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c96); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c97(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthLastChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 30,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 16) === peg$c98) {\n s1 = peg$c98;\n peg$currPos += 16;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c99); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c100(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseclass() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 31,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 58) {\n s1 = peg$c101;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c102); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c103(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n\n function nth(n) { return { type: 'nth-child', index: { type: 'literal', value: n } }; }\n function nthLast(n) { return { type: 'nth-last-child', index: { type: 'literal', value: n } }; }\n function strUnescape(s) {\n return s.replace(/\\\\(.)/g, function(match, ch) {\n switch(ch) {\n case 'b': return '\\b';\n case 'f': return '\\f';\n case 'n': return '\\n';\n case 'r': return '\\r';\n case 't': return '\\t';\n case 'v': return '\\v';\n default: return ch;\n }\n });\n }\n\n\n peg$result = peg$startRuleFunction();\n\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n } else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n\n throw peg$buildStructuredError(\n peg$maxFailExpected,\n peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,\n peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)\n );\n }\n }\n\n return {\n SyntaxError: peg$SyntaxError,\n parse: peg$parse\n };\n});\n","/* vim: set sw=4 sts=4 : */\nimport estraverse from 'estraverse';\nimport parser from './parser.js';\n\n/**\n* @typedef {\"LEFT_SIDE\"|\"RIGHT_SIDE\"} Side\n*/\n\nconst LEFT_SIDE = 'LEFT_SIDE';\nconst RIGHT_SIDE = 'RIGHT_SIDE';\n\n/**\n * @external AST\n * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html\n */\n\n/**\n * One of the rules of `grammar.pegjs`\n * @typedef {PlainObject} SelectorAST\n * @see grammar.pegjs\n*/\n\n/**\n * The `sequence` production of `grammar.pegjs`\n * @typedef {PlainObject} SelectorSequenceAST\n*/\n\n/**\n * Get the value of a property which may be multiple levels down\n * in the object.\n * @param {?PlainObject} obj\n * @param {string[]} keys\n * @returns {undefined|boolean|string|number|external:AST}\n */\nfunction getPath(obj, keys) {\n for (let i = 0; i < keys.length; ++i) {\n if (obj == null) { return obj; }\n obj = obj[keys[i]];\n }\n return obj;\n}\n\n/**\n * Determine whether `node` can be reached by following `path`,\n * starting at `ancestor`.\n * @param {?external:AST} node\n * @param {?external:AST} ancestor\n * @param {string[]} path\n * @param {Integer} fromPathIndex\n * @returns {boolean}\n */\nfunction inPath(node, ancestor, path, fromPathIndex) {\n let current = ancestor;\n for (let i = fromPathIndex; i < path.length; ++i) {\n if (current == null) {\n return false;\n }\n const field = current[path[i]];\n if (Array.isArray(field)) {\n for (let k = 0; k < field.length; ++k) {\n if (inPath(node, field[k], path, i + 1)) {\n return true;\n }\n }\n return false;\n }\n current = field;\n }\n return node === current;\n}\n\n/**\n * A generated matcher function for a selector.\n * @callback SelectorMatcher\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @returns {void}\n*/\n\n/**\n * A WeakMap for holding cached matcher functions for selectors.\n * @type {WeakMap}\n*/\nconst MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap : null;\n\n/**\n * Look up a matcher function for `selector` in the cache.\n * If it does not exist, generate it with `generateMatcher` and add it to the cache.\n * In engines without WeakMap, the caching is skipped and matchers are generated with every call.\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction getMatcher(selector) {\n if (selector == null) {\n return () => true;\n }\n\n if (MATCHER_CACHE != null) {\n let matcher = MATCHER_CACHE.get(selector);\n if (matcher != null) {\n return matcher;\n }\n matcher = generateMatcher(selector);\n MATCHER_CACHE.set(selector, matcher);\n return matcher;\n }\n\n return generateMatcher(selector);\n}\n\n/**\n * Create a matcher function for `selector`,\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction generateMatcher(selector) {\n switch(selector.type) {\n case 'wildcard':\n return () => true;\n\n case 'identifier': {\n const value = selector.value.toLowerCase();\n return (node, ancestry, options) => {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return value === node[nodeTypeKey].toLowerCase();\n };\n }\n\n case 'exactNode':\n return (node, ancestry) => {\n return ancestry.length === 0;\n };\n\n case 'field': {\n const path = selector.name.split('.');\n return (node, ancestry) => {\n const ancestor = ancestry[path.length - 1];\n return inPath(node, ancestor, path, 0);\n };\n }\n\n case 'matches': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return true; }\n }\n return false;\n };\n }\n\n case 'compound': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (!matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'not': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'has': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n let result = false;\n\n const a = [];\n estraverse.traverse(node, {\n enter (node, parent) {\n if (parent != null) { a.unshift(parent); }\n\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, a, options)) {\n result = true;\n this.break();\n return;\n }\n }\n },\n leave () { a.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n\n return result;\n };\n }\n\n case 'child': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (ancestry.length > 0 && right(node, ancestry, options)) {\n return left(ancestry[0], ancestry.slice(1), options);\n }\n return false;\n };\n }\n\n case 'descendant': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (right(node, ancestry, options)) {\n for (let i = 0, l = ancestry.length; i < l; ++i) {\n if (left(ancestry[i], ancestry.slice(i + 1), options)) {\n return true;\n }\n }\n }\n return false;\n };\n }\n\n case 'attribute': {\n const path = selector.name.split('.');\n switch (selector.operator) {\n case void 0:\n return (node) => getPath(node, path) != null;\n case '=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => {\n const p = getPath(node, path);\n return typeof p === 'string' && selector.value.value.test(p);\n };\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal === `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value === typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '!=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => !selector.value.value.test(getPath(node, path));\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal !== `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value !== typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '<=':\n return (node) => getPath(node, path) <= selector.value.value;\n case '<':\n return (node) => getPath(node, path) < selector.value.value;\n case '>':\n return (node) => getPath(node, path) > selector.value.value;\n case '>=':\n return (node) => getPath(node, path) >= selector.value.value;\n }\n throw new Error(`Unknown operator: ${selector.operator}`);\n }\n\n case 'sibling': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n sibling(node, left, ancestry, LEFT_SIDE, options) ||\n selector.left.subject &&\n left(node, ancestry, options) &&\n sibling(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'adjacent': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n adjacent(node, left, ancestry, LEFT_SIDE, options) ||\n selector.right.subject &&\n left(node, ancestry, options) &&\n adjacent(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'nth-child': {\n const nth = selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'nth-last-child': {\n const nth = -selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'class': {\n \n const name = selector.name.toLowerCase();\n\n return (node, ancestry, options) => {\n \n if (options && options.matchClass) {\n return options.matchClass(selector.name, node, ancestry);\n }\n \n if (options && options.nodeTypeKey) return false; \n\n switch(name){\n case 'statement':\n if(node.type.slice(-9) === 'Statement') return true;\n // fallthrough: interface Declaration <: Statement { }\n case 'declaration':\n return node.type.slice(-11) === 'Declaration';\n case 'pattern':\n if(node.type.slice(-7) === 'Pattern') return true;\n // fallthrough: interface Expression <: Node, Pattern { }\n case 'expression':\n return node.type.slice(-10) === 'Expression' ||\n node.type.slice(-7) === 'Literal' ||\n (\n node.type === 'Identifier' &&\n (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty')\n ) ||\n node.type === 'MetaProperty';\n case 'function':\n return node.type === 'FunctionDeclaration' ||\n node.type === 'FunctionExpression' ||\n node.type === 'ArrowFunctionExpression';\n }\n throw new Error(`Unknown class name: ${selector.name}`);\n };\n }\n }\n\n throw new Error(`Unknown selector type: ${selector.type}`);\n}\n\n/**\n * @callback TraverseOptionFallback\n * @param {external:AST} node The given node.\n * @returns {string[]} An array of visitor keys for the given node.\n */\n\n/**\n * @callback ClassMatcher\n * @param {string} className The name of the class to match.\n * @param {external:AST} node The node to match against.\n * @param {Array} ancestry The ancestry of the node.\n * @returns {boolean} True if the node matches the class, false if not.\n */\n\n/**\n * @typedef {object} ESQueryOptions\n * @property {string} [nodeTypeKey=\"type\"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery.\n * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node.\n * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes.\n * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes.\n */\n\n/**\n * Given a `node` and its ancestors, determine if `node` is matched\n * by `selector`.\n * @param {?external:AST} node\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @throws {Error} Unknowns (operator, class name, selector type, or\n * selector value type)\n * @returns {boolean}\n */\nfunction matches(node, selector, ancestry, options) {\n if (!selector) { return true; }\n if (!node) { return false; }\n if (!ancestry) { ancestry = []; }\n\n return getMatcher(selector)(node, ancestry, options);\n}\n\n/**\n * Get visitor keys of a given node.\n * @param {external:AST} node The AST node to get keys.\n * @param {ESQueryOptions|undefined} options\n * @returns {string[]} Visitor keys of the node.\n */\nfunction getVisitorKeys(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n\n const nodeType = node[nodeTypeKey];\n if (options && options.visitorKeys && options.visitorKeys[nodeType]) {\n return options.visitorKeys[nodeType];\n }\n if (estraverse.VisitorKeys[nodeType]) {\n return estraverse.VisitorKeys[nodeType];\n }\n if (options && typeof options.fallback === 'function') {\n return options.fallback(node);\n }\n // 'iteration' fallback\n return Object.keys(node).filter(function (key) {\n return key !== nodeTypeKey;\n });\n}\n\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} node The value to check.\n * @param {ESQueryOptions|undefined} options The options to use.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return node !== null && typeof node === 'object' && typeof node[nodeTypeKey] === 'string';\n}\n\n/**\n * Determines if the given node has a sibling that matches the\n * given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction sibling(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const startIndex = listProp.indexOf(node);\n if (startIndex < 0) { continue; }\n let lowerBound, upperBound;\n if (side === LEFT_SIDE) {\n lowerBound = 0;\n upperBound = startIndex;\n } else {\n lowerBound = startIndex + 1;\n upperBound = listProp.length;\n }\n for (let k = lowerBound; k < upperBound; ++k) {\n if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) {\n return true;\n }\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node has an adjacent sibling that matches\n * the given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction adjacent(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const idx = listProp.indexOf(node);\n if (idx < 0) { continue; }\n if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) {\n return true;\n }\n if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node is the `nth` child.\n * If `nth` is negative then the position is counted\n * from the end of the list of children.\n * @param {external:AST} node\n * @param {external:AST[]} ancestry\n * @param {Integer} nth\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction nthChild(node, ancestry, nth, options) {\n if (nth === 0) { return false; }\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)){\n const idx = nth < 0 ? listProp.length + nth : nth - 1;\n if (idx >= 0 && idx < listProp.length && listProp[idx] === node) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * For each selector node marked as a subject, find the portion of the\n * selector that the subject must match.\n * @param {SelectorAST} selector\n * @param {SelectorAST} [ancestor] Defaults to `selector`\n * @returns {SelectorAST[]}\n */\nfunction subjects(selector, ancestor) {\n if (selector == null || typeof selector != 'object') { return []; }\n if (ancestor == null) { ancestor = selector; }\n const results = selector.subject ? [ancestor] : [];\n const keys = Object.keys(selector);\n for (let i = 0; i < keys.length; ++i) {\n const p = keys[i];\n const sel = selector[p];\n results.push(...subjects(sel, p === 'left' ? sel : ancestor));\n }\n return results;\n}\n\n/**\n* @callback TraverseVisitor\n* @param {?external:AST} node\n* @param {?external:AST} parent\n* @param {external:AST[]} ancestry\n*/\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {TraverseVisitor} visitor\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction traverse(ast, selector, visitor, options) {\n if (!selector) { return; }\n const ancestry = [];\n const matcher = getMatcher(selector);\n const altSubjects = subjects(selector).map(getMatcher);\n estraverse.traverse(ast, {\n enter (node, parent) {\n if (parent != null) { ancestry.unshift(parent); }\n if (matcher(node, ancestry, options)) {\n if (altSubjects.length) {\n for (let i = 0, l = altSubjects.length; i < l; ++i) {\n if (altSubjects[i](node, ancestry, options)) {\n visitor(node, parent, ancestry);\n }\n for (let k = 0, m = ancestry.length; k < m; ++k) {\n const succeedingAncestry = ancestry.slice(k + 1);\n if (altSubjects[i](ancestry[k], succeedingAncestry, options)) {\n visitor(ancestry[k], parent, succeedingAncestry);\n }\n }\n }\n } else {\n visitor(node, parent, ancestry);\n }\n }\n },\n leave () { ancestry.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n}\n\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction match(ast, selector, options) {\n const results = [];\n traverse(ast, selector, function (node) {\n results.push(node);\n }, options);\n return results;\n}\n\n/**\n * Parse a selector string and return its AST.\n * @param {string} selector\n * @returns {SelectorAST}\n */\nfunction parse(selector) {\n return parser.parse(selector);\n}\n\n/**\n * Query the code AST using the selector string.\n * @param {external:AST} ast\n * @param {string} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction query(ast, selector, options) {\n return match(ast, parse(selector), options);\n}\n\nquery.parse = parse;\nquery.match = match;\nquery.traverse = traverse;\nquery.matches = matches;\nquery.query = query;\n\nexport default query;\n"],"names":["clone","exports","Syntax","VisitorOption","VisitorKeys","BREAK","SKIP","REMOVE","deepCopy","obj","key","val","ret","hasOwnProperty","Reference","parent","this","Element","node","path","wrap","ref","Controller","isNode","type","isProperty","nodeType","ObjectExpression","ObjectPattern","candidateExistsInLeaveList","leavelist","candidate","i","length","traverse","root","visitor","extendCommentRange","comment","tokens","target","array","func","diff","len","current","upperBound","token","range","extendedRange","AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ComprehensionBlock","ComprehensionExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","DirectiveStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","GeneratorExpression","Identifier","IfStatement","ImportExpression","ImportDeclaration","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportSpecifier","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","ModuleSpecifier","NewExpression","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","Super","SwitchStatement","SwitchCase","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","Break","Skip","Remove","prototype","replace","remove","Array","isArray","splice","iz","j","jz","result","addToPath","push","__current","__leavelist","parents","__execute","callback","element","previous","undefined","__state","call","notify","flag","skip","__initialize","__worklist","__fallback","fallback","Object","keys","__keys","assign","create","worklist","current2","candidates","sentinel","pop","enter","Error","leave","outer","removeElem","nextElem","attachComments","tree","providedComments","cursor","comments","leadingComments","trailingComments","cloneEnvironment","module","peg$SyntaxError","message","expected","found","location","name","captureStackTrace","child","ctor","constructor","peg$subclass","buildMessage","DESCRIBE_EXPECTATION_FNS","literal","expectation","literalEscape","text","class","escapedParts","parts","classEscape","inverted","any","end","other","description","hex","ch","charCodeAt","toString","toUpperCase","s","descriptions","sort","slice","join","describeExpected","describeFound","SyntaxError","parse","input","options","peg$result","peg$FAILED","peg$startRuleFunctions","start","peg$parsestart","peg$startRuleFunction","peg$c3","peg$literalExpectation","peg$c4","peg$c5","peg$classExpectation","peg$c8","peg$c11","peg$c14","peg$c18","peg$c19","ss","concat","map","peg$c23","peg$c26","peg$c29","peg$c32","peg$c34","peg$c36","peg$c37","peg$c39","peg$c40","a","peg$c41","peg$c42","peg$c44","peg$c46","op","value","operator","peg$c49","peg$c50","peg$c51","peg$c53","peg$c54","peg$c55","b","peg$c56","d","match","peg$c58","peg$c59","peg$c60","peg$c61","peg$c62","peg$c66","peg$c67","peg$c68","peg$c70","peg$c72","peg$c73","peg$c75","peg$c76","peg$c77","peg$c81","peg$c84","peg$c87","peg$c90","peg$c93","peg$c96","peg$c99","peg$c102","peg$currPos","peg$posDetailsCache","line","column","peg$maxFailPos","peg$maxFailExpected","peg$silentFails","startRule","ignoreCase","peg$computePosDetails","pos","p","details","peg$computeLocation","startPos","endPos","startPosDetails","endPosDetails","offset","peg$fail","s0","s1","s2","cached","peg$resultsCache","nextPos","peg$parse_","peg$parseselectors","selectors","peg$c1","peg$parseidentifierName","test","charAt","peg$parsebinaryOp","s3","s4","s5","s6","s7","peg$parseselector","peg$parsehasSelector","left","right","peg$parsesequence","reduce","memo","rhs","subject","as","peg$parseatom","peg$parsewildcard","peg$parseidentifier","peg$parseattrName","peg$parseattrEqOps","substr","peg$parsetype","flgs","peg$parseflags","RegExp","peg$parseregex","peg$parseattrOps","peg$parsestring","leadingDecimals","apply","parseFloat","peg$parsenumber","peg$parsepath","peg$parseattrValue","peg$parseattr","peg$parsefield","peg$parsenegation","peg$parsematches","peg$parsehasSelectors","peg$parsehas","nth","peg$parsefirstChild","nthLast","peg$parselastChild","parseInt","peg$parsenthChild","peg$parsenthLastChild","peg$parseclass","n","index","factory","getPath","MATCHER_CACHE","WeakMap","getMatcher","selector","matcher","get","generateMatcher","set","toLowerCase","ancestry","nodeTypeKey","split","inPath","ancestor","fromPathIndex","field","k","matchers","estraverse","unshift","shift","visitorKeys","l","sibling","adjacent","nthChild","matchClass","getVisitorKeys","filter","_typeof","side","listProp","startIndex","indexOf","lowerBound","idx","ast","altSubjects","subjects","results","sel","m","succeedingAncestry","parser","query","matches"],"mappings":"u0DA2BC,SAASA,EAAMC,GAGZ,IAAIC,EACAC,EACAC,EACAC,EACAC,EACAC,EAEJ,SAASC,EAASC,GACd,IAAcC,EAAKC,EAAfC,EAAM,GACV,IAAKF,KAAOD,EACJA,EAAII,eAAeH,KACnBC,EAAMF,EAAIC,GAENE,EAAIF,GADW,iBAARC,GAA4B,OAARA,EAChBH,EAASG,GAETA,GAIvB,OAAOC,EAgMX,SAASE,EAAUC,EAAQL,GACvBM,KAAKD,OAASA,EACdC,KAAKN,IAAMA,EAiBf,SAASO,EAAQC,EAAMC,EAAMC,EAAMC,GAC/BL,KAAKE,KAAOA,EACZF,KAAKG,KAAOA,EACZH,KAAKI,KAAOA,EACZJ,KAAKK,IAAMA,EAGf,SAASC,KAuHT,SAASC,EAAOL,GACZ,OAAY,MAARA,IAGmB,iBAATA,GAA0C,iBAAdA,EAAKM,MAGnD,SAASC,EAAWC,EAAUhB,GAC1B,OAAQgB,IAAaxB,EAAOyB,kBAAoBD,IAAaxB,EAAO0B,gBAAkB,eAAiBlB,EAG3G,SAASmB,EAA2BC,EAAWC,GAC3C,IAAK,IAAIC,EAAIF,EAAUG,OAAS,EAAGD,GAAK,IAAKA,EACzC,GAAIF,EAAUE,GAAGd,OAASa,EACtB,OAAO,EAGf,OAAO,EAwQX,SAASG,EAASC,EAAMC,GAEpB,OADiB,IAAId,GACHY,SAASC,EAAMC,GAQrC,SAASC,EAAmBC,EAASC,GACjC,IAAIC,EAiBJ,OAfAA,EAjnBJ,SAAoBC,EAAOC,GACvB,IAAIC,EAAMC,EAAKZ,EAAGa,EAKlB,IAHAD,EAAMH,EAAMR,OACZD,EAAI,EAEGY,GAGCF,EAAKD,EADTI,EAAUb,GADVW,EAAOC,IAAQ,KAGXA,EAAMD,GAENX,EAAIa,EAAU,EACdD,G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M,EAAMgK,GAAW9J,GAGvCuM,EAAMzM,MAAQA,EACdyM,EAAMzJ,MAAQA,EACdyJ,EAAMlY,SAAWA,EACjBkY,EAAMC,QAvPN,SAAiBnZ,EAAMyW,EAAUM,EAAUpK,GACvC,OAAK8J,KACAzW,IACA+W,IAAYA,EAAW,IAErBP,EAAWC,EAAXD,CAAqBxW,EAAM+W,EAAUpK,KAmPhDuM,EAAMA,MAAQA"} \ No newline at end of file diff --git a/graphql/node_modules/esquery/dist/esquery.js b/graphql/node_modules/esquery/dist/esquery.js deleted file mode 100644 index ace60614..00000000 --- a/graphql/node_modules/esquery/dist/esquery.js +++ /dev/null @@ -1,4180 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.esquery = factory()); -}(this, (function () { 'use strict'; - - function _iterableToArrayLimit(arr, i) { - var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; - if (null != _i) { - var _s, - _e, - _x, - _r, - _arr = [], - _n = !0, - _d = !1; - try { - if (_x = (_i = _i.call(arr)).next, 0 === i) { - if (Object(_i) !== _i) return; - _n = !1; - } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); - } catch (err) { - _d = !0, _e = err; - } finally { - try { - if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; - } finally { - if (_d) throw _e; - } - } - return _arr; - } - } - function _typeof(obj) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, _typeof(obj); - } - function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); - } - function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - - var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; - } - - var estraverse = createCommonjsModule(function (module, exports) { - /* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - /*jslint vars:false, bitwise:true*/ - /*jshint indent:4*/ - /*global exports:true*/ - (function clone(exports) { - - var Syntax, VisitorOption, VisitorKeys, BREAK, SKIP, REMOVE; - function deepCopy(obj) { - var ret = {}, - key, - val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - len = array.length; - i = 0; - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', - // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', - // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', - // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', - // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - PrivateIdentifier: 'PrivateIdentifier', - Program: 'Program', - Property: 'Property', - PropertyDefinition: 'PropertyDefinition', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], - // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], - // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], - // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], - // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - PrivateIdentifier: [], - Program: ['body'], - Property: ['key', 'value'], - PropertyDefinition: ['key', 'value'], - RestElement: ['argument'], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - function Controller() {} - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - result = undefined; - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - Controller.prototype.__initialize = function (root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, leavelist, element, node, nodeType, ret, key, current, current2, candidates, candidate, sentinel; - this.__initialize(root, visitor); - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - while (worklist.length) { - element = worklist.pop(); - if (element === sentinel) { - element = leavelist.pop(); - ret = this.__execute(visitor.leave, element); - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - if (element.node) { - ret = this.__execute(visitor.enter, element); - if (this.__state === BREAK || ret === BREAK) { - return; - } - worklist.push(sentinel); - leavelist.push(element); - if (this.__state === SKIP || ret === SKIP) { - continue; - } - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - Controller.prototype.replace = function replace(root, visitor) { - var worklist, leavelist, node, nodeType, target, element, current, current2, candidates, candidate, sentinel, outer, key; - function removeElem(element) { - var i, key, nextElem, parent; - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - this.__initialize(root, visitor); - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - while (worklist.length) { - element = worklist.pop(); - if (element === sentinel) { - element = leavelist.pop(); - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - worklist.push(sentinel); - leavelist.push(element); - if (this.__state === SKIP || target === SKIP) { - continue; - } - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - return outer.root; - }; - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - function extendCommentRange(comment, tokens) { - var target; - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - comment.extendedRange = [comment.range[0], comment.range[1]]; - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - return comment; - } - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], - comment, - len, - i, - cursor; - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - return tree; - } - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { - return clone({}); - }; - return exports; - })(exports); - /* vim: set sw=4 ts=4 et tw=80 : */ - }); - - var parser = createCommonjsModule(function (module) { - /* - * Generated by PEG.js 0.10.0. - * - * http://pegjs.org/ - */ - (function (root, factory) { - if ( module.exports) { - module.exports = factory(); - } - })(commonjsGlobal, function () { - - function peg$subclass(child, parent) { - function ctor() { - this.constructor = child; - } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); - } - function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } - } - peg$subclass(peg$SyntaxError, Error); - peg$SyntaxError.buildMessage = function (expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function literal(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - "class": function _class(expectation) { - var escapedParts = "", - i; - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]); - } - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - any: function any(expectation) { - return "any character"; - }, - end: function end(expectation) { - return "end of input"; - }, - other: function other(expectation) { - return expectation.description; - } - }; - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - function literalEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function classEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/\]/g, '\\]').replace(/\^/g, '\\^').replace(/-/g, '\\-').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, - j; - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - descriptions.sort(); - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - switch (descriptions.length) { - case 1: - return descriptions[0]; - case 2: - return descriptions[0] + " or " + descriptions[1]; - default: - return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1]; - } - } - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; - }; - function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - var peg$FAILED = {}, - peg$startRuleFunctions = { - start: peg$parsestart - }, - peg$startRuleFunction = peg$parsestart, - peg$c0 = function peg$c0(ss) { - return ss.length === 1 ? ss[0] : { - type: 'matches', - selectors: ss - }; - }, - peg$c1 = function peg$c1() { - return void 0; - }, - peg$c2 = " ", - peg$c3 = peg$literalExpectation(" ", false), - peg$c4 = /^[^ [\],():#!=><~+.]/, - peg$c5 = peg$classExpectation([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), - peg$c6 = function peg$c6(i) { - return i.join(''); - }, - peg$c7 = ">", - peg$c8 = peg$literalExpectation(">", false), - peg$c9 = function peg$c9() { - return 'child'; - }, - peg$c10 = "~", - peg$c11 = peg$literalExpectation("~", false), - peg$c12 = function peg$c12() { - return 'sibling'; - }, - peg$c13 = "+", - peg$c14 = peg$literalExpectation("+", false), - peg$c15 = function peg$c15() { - return 'adjacent'; - }, - peg$c16 = function peg$c16() { - return 'descendant'; - }, - peg$c17 = ",", - peg$c18 = peg$literalExpectation(",", false), - peg$c19 = function peg$c19(s, ss) { - return [s].concat(ss.map(function (s) { - return s[3]; - })); - }, - peg$c20 = function peg$c20(op, s) { - if (!op) return s; - return { - type: op, - left: { - type: 'exactNode' - }, - right: s - }; - }, - peg$c21 = function peg$c21(a, ops) { - return ops.reduce(function (memo, rhs) { - return { - type: rhs[0], - left: memo, - right: rhs[1] - }; - }, a); - }, - peg$c22 = "!", - peg$c23 = peg$literalExpectation("!", false), - peg$c24 = function peg$c24(subject, as) { - var b = as.length === 1 ? as[0] : { - type: 'compound', - selectors: as - }; - if (subject) b.subject = true; - return b; - }, - peg$c25 = "*", - peg$c26 = peg$literalExpectation("*", false), - peg$c27 = function peg$c27(a) { - return { - type: 'wildcard', - value: a - }; - }, - peg$c28 = "#", - peg$c29 = peg$literalExpectation("#", false), - peg$c30 = function peg$c30(i) { - return { - type: 'identifier', - value: i - }; - }, - peg$c31 = "[", - peg$c32 = peg$literalExpectation("[", false), - peg$c33 = "]", - peg$c34 = peg$literalExpectation("]", false), - peg$c35 = function peg$c35(v) { - return v; - }, - peg$c36 = /^[>", "<", "!"], false, false), - peg$c38 = "=", - peg$c39 = peg$literalExpectation("=", false), - peg$c40 = function peg$c40(a) { - return (a || '') + '='; - }, - peg$c41 = /^[><]/, - peg$c42 = peg$classExpectation([">", "<"], false, false), - peg$c43 = ".", - peg$c44 = peg$literalExpectation(".", false), - peg$c45 = function peg$c45(a, as) { - return [].concat.apply([a], as).join(''); - }, - peg$c46 = function peg$c46(name, op, value) { - return { - type: 'attribute', - name: name, - operator: op, - value: value - }; - }, - peg$c47 = function peg$c47(name) { - return { - type: 'attribute', - name: name - }; - }, - peg$c48 = "\"", - peg$c49 = peg$literalExpectation("\"", false), - peg$c50 = /^[^\\"]/, - peg$c51 = peg$classExpectation(["\\", "\""], true, false), - peg$c52 = "\\", - peg$c53 = peg$literalExpectation("\\", false), - peg$c54 = peg$anyExpectation(), - peg$c55 = function peg$c55(a, b) { - return a + b; - }, - peg$c56 = function peg$c56(d) { - return { - type: 'literal', - value: strUnescape(d.join('')) - }; - }, - peg$c57 = "'", - peg$c58 = peg$literalExpectation("'", false), - peg$c59 = /^[^\\']/, - peg$c60 = peg$classExpectation(["\\", "'"], true, false), - peg$c61 = /^[0-9]/, - peg$c62 = peg$classExpectation([["0", "9"]], false, false), - peg$c63 = function peg$c63(a, b) { - // Can use `a.flat().join('')` once supported - var leadingDecimals = a ? [].concat.apply([], a).join('') : ''; - return { - type: 'literal', - value: parseFloat(leadingDecimals + b.join('')) - }; - }, - peg$c64 = function peg$c64(i) { - return { - type: 'literal', - value: i - }; - }, - peg$c65 = "type(", - peg$c66 = peg$literalExpectation("type(", false), - peg$c67 = /^[^ )]/, - peg$c68 = peg$classExpectation([" ", ")"], true, false), - peg$c69 = ")", - peg$c70 = peg$literalExpectation(")", false), - peg$c71 = function peg$c71(t) { - return { - type: 'type', - value: t.join('') - }; - }, - peg$c72 = /^[imsu]/, - peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false), - peg$c74 = "/", - peg$c75 = peg$literalExpectation("/", false), - peg$c76 = /^[^\/]/, - peg$c77 = peg$classExpectation(["/"], true, false), - peg$c78 = function peg$c78(d, flgs) { - return { - type: 'regexp', - value: new RegExp(d.join(''), flgs ? flgs.join('') : '') - }; - }, - peg$c79 = function peg$c79(i, is) { - return { - type: 'field', - name: is.reduce(function (memo, p) { - return memo + p[0] + p[1]; - }, i) - }; - }, - peg$c80 = ":not(", - peg$c81 = peg$literalExpectation(":not(", false), - peg$c82 = function peg$c82(ss) { - return { - type: 'not', - selectors: ss - }; - }, - peg$c83 = ":matches(", - peg$c84 = peg$literalExpectation(":matches(", false), - peg$c85 = function peg$c85(ss) { - return { - type: 'matches', - selectors: ss - }; - }, - peg$c86 = ":has(", - peg$c87 = peg$literalExpectation(":has(", false), - peg$c88 = function peg$c88(ss) { - return { - type: 'has', - selectors: ss - }; - }, - peg$c89 = ":first-child", - peg$c90 = peg$literalExpectation(":first-child", false), - peg$c91 = function peg$c91() { - return nth(1); - }, - peg$c92 = ":last-child", - peg$c93 = peg$literalExpectation(":last-child", false), - peg$c94 = function peg$c94() { - return nthLast(1); - }, - peg$c95 = ":nth-child(", - peg$c96 = peg$literalExpectation(":nth-child(", false), - peg$c97 = function peg$c97(n) { - return nth(parseInt(n.join(''), 10)); - }, - peg$c98 = ":nth-last-child(", - peg$c99 = peg$literalExpectation(":nth-last-child(", false), - peg$c100 = function peg$c100(n) { - return nthLast(parseInt(n.join(''), 10)); - }, - peg$c101 = ":", - peg$c102 = peg$literalExpectation(":", false), - peg$c103 = function peg$c103(c) { - return { - type: 'class', - name: c - }; - }, - peg$currPos = 0, - peg$posDetailsCache = [{ - line: 1, - column: 1 - }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$resultsCache = {}, - peg$result; - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - function peg$literalExpectation(text, ignoreCase) { - return { - type: "literal", - text: text, - ignoreCase: ignoreCase - }; - } - function peg$classExpectation(parts, inverted, ignoreCase) { - return { - type: "class", - parts: parts, - inverted: inverted, - ignoreCase: ignoreCase - }; - } - function peg$anyExpectation() { - return { - type: "any" - }; - } - function peg$endExpectation() { - return { - type: "end" - }; - } - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], - p; - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - p++; - } - peg$posDetailsCache[pos] = details; - return details; - } - } - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { - return; - } - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - peg$maxFailExpected.push(expected); - } - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location); - } - function peg$parsestart() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 0, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseselectors(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s1 = peg$c1(); - } - s0 = s1; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parse_() { - var s0, s1; - var key = peg$currPos * 32 + 1, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - while (s1 !== peg$FAILED) { - s0.push(s1); - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifierName() { - var s0, s1, s2; - var key = peg$currPos * 32 + 2, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = []; - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s1 = peg$c6(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsebinaryOp() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 3, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s2 = peg$c7; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c8); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c9(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c10; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c11); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c12(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s2 = peg$c13; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c14); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c15(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s1 = peg$c16(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 4, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsehasSelector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 5, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseselector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelector() { - var s0, s1, s2; - var key = peg$currPos * 32 + 6, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsebinaryOp(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseselector(); - if (s2 !== peg$FAILED) { - s1 = peg$c20(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselector() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 7, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsesequence(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c21(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsesequence() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 8, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseatom(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseatom(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c24(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseatom() { - var s0; - var key = peg$currPos * 32 + 9, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$parsewildcard(); - if (s0 === peg$FAILED) { - s0 = peg$parseidentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseattr(); - if (s0 === peg$FAILED) { - s0 = peg$parsefield(); - if (s0 === peg$FAILED) { - s0 = peg$parsenegation(); - if (s0 === peg$FAILED) { - s0 = peg$parsematches(); - if (s0 === peg$FAILED) { - s0 = peg$parsehas(); - if (s0 === peg$FAILED) { - s0 = peg$parsefirstChild(); - if (s0 === peg$FAILED) { - s0 = peg$parselastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthLastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parseclass(); - } - } - } - } - } - } - } - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsewildcard() { - var s0, s1; - var key = peg$currPos * 32 + 10, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c25; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c26); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c27(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifier() { - var s0, s1, s2; - var key = peg$currPos * 32 + 11, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 35) { - s1 = peg$c28; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c29); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c30(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattr() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 12, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c31; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c32); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrValue(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c33; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c34); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c35(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 13, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (peg$c36.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c37); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - if (peg$c41.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - { - peg$fail(peg$c42); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrEqOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 14, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrName() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 15, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c45(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrValue() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 16, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrEqOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsetype(); - if (s5 === peg$FAILED) { - s5 = peg$parseregex(); - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsestring(); - if (s5 === peg$FAILED) { - s5 = peg$parsenumber(); - if (s5 === peg$FAILED) { - s5 = peg$parsepath(); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s1 = peg$c47(s1); - } - s0 = s1; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsestring() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 17, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c48; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c48; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c57; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c57; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenumber() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 18, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$currPos; - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c43; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c63(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsepath() { - var s0, s1; - var key = peg$currPos * 32 + 19, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s1 = peg$c64(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsetype() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 20, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c65) { - s1 = peg$c65; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c66); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c71(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseflags() { - var s0, s1; - var key = peg$currPos * 32 + 21, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - } - } else { - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseregex() { - var s0, s1, s2, s3, s4; - var key = peg$currPos * 32 + 22, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c74; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c74; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseflags(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s1 = peg$c78(s2, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefield() { - var s0, s1, s2, s3, s4, s5, s6; - var key = peg$currPos * 32 + 23, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c43; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c79(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenegation() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 24, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c80) { - s1 = peg$c80; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c81); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c82(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsematches() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 25, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c83) { - s1 = peg$c83; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c84); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c85(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehas() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 26, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c86) { - s1 = peg$c86; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c87); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsehasSelectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c88(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefirstChild() { - var s0, s1; - var key = peg$currPos * 32 + 27, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 12) === peg$c89) { - s1 = peg$c89; - peg$currPos += 12; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c90); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c91(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parselastChild() { - var s0, s1; - var key = peg$currPos * 32 + 28, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c92) { - s1 = peg$c92; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c93); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c94(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 29, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c95) { - s1 = peg$c95; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c96); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c97(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthLastChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 30, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 16) === peg$c98) { - s1 = peg$c98; - peg$currPos += 16; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c99); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c100(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseclass() { - var s0, s1, s2; - var key = peg$currPos * 32 + 31, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c101; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c102); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c103(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function nth(n) { - return { - type: 'nth-child', - index: { - type: 'literal', - value: n - } - }; - } - function nthLast(n) { - return { - type: 'nth-last-child', - index: { - type: 'literal', - value: n - } - }; - } - function strUnescape(s) { - return s.replace(/\\(.)/g, function (match, ch) { - switch (ch) { - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - case 'v': - return '\v'; - default: - return ch; - } - }); - } - peg$result = peg$startRuleFunction(); - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); - } - } - return { - SyntaxError: peg$SyntaxError, - parse: peg$parse - }; - }); - }); - - /** - * @typedef {"LEFT_SIDE"|"RIGHT_SIDE"} Side - */ - - var LEFT_SIDE = 'LEFT_SIDE'; - var RIGHT_SIDE = 'RIGHT_SIDE'; - - /** - * @external AST - * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html - */ - - /** - * One of the rules of `grammar.pegjs` - * @typedef {PlainObject} SelectorAST - * @see grammar.pegjs - */ - - /** - * The `sequence` production of `grammar.pegjs` - * @typedef {PlainObject} SelectorSequenceAST - */ - - /** - * Get the value of a property which may be multiple levels down - * in the object. - * @param {?PlainObject} obj - * @param {string[]} keys - * @returns {undefined|boolean|string|number|external:AST} - */ - function getPath(obj, keys) { - for (var i = 0; i < keys.length; ++i) { - if (obj == null) { - return obj; - } - obj = obj[keys[i]]; - } - return obj; - } - - /** - * Determine whether `node` can be reached by following `path`, - * starting at `ancestor`. - * @param {?external:AST} node - * @param {?external:AST} ancestor - * @param {string[]} path - * @param {Integer} fromPathIndex - * @returns {boolean} - */ - function inPath(node, ancestor, path, fromPathIndex) { - var current = ancestor; - for (var i = fromPathIndex; i < path.length; ++i) { - if (current == null) { - return false; - } - var field = current[path[i]]; - if (Array.isArray(field)) { - for (var k = 0; k < field.length; ++k) { - if (inPath(node, field[k], path, i + 1)) { - return true; - } - } - return false; - } - current = field; - } - return node === current; - } - - /** - * A generated matcher function for a selector. - * @callback SelectorMatcher - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @returns {void} - */ - - /** - * A WeakMap for holding cached matcher functions for selectors. - * @type {WeakMap} - */ - var MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap() : null; - - /** - * Look up a matcher function for `selector` in the cache. - * If it does not exist, generate it with `generateMatcher` and add it to the cache. - * In engines without WeakMap, the caching is skipped and matchers are generated with every call. - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ - function getMatcher(selector) { - if (selector == null) { - return function () { - return true; - }; - } - if (MATCHER_CACHE != null) { - var matcher = MATCHER_CACHE.get(selector); - if (matcher != null) { - return matcher; - } - matcher = generateMatcher(selector); - MATCHER_CACHE.set(selector, matcher); - return matcher; - } - return generateMatcher(selector); - } - - /** - * Create a matcher function for `selector`, - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ - function generateMatcher(selector) { - switch (selector.type) { - case 'wildcard': - return function () { - return true; - }; - case 'identifier': - { - var value = selector.value.toLowerCase(); - return function (node, ancestry, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return value === node[nodeTypeKey].toLowerCase(); - }; - } - case 'exactNode': - return function (node, ancestry) { - return ancestry.length === 0; - }; - case 'field': - { - var path = selector.name.split('.'); - return function (node, ancestry) { - var ancestor = ancestry[path.length - 1]; - return inPath(node, ancestor, path, 0); - }; - } - case 'matches': - { - var matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < matchers.length; ++i) { - if (matchers[i](node, ancestry, options)) { - return true; - } - } - return false; - }; - } - case 'compound': - { - var _matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers.length; ++i) { - if (!_matchers[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'not': - { - var _matchers2 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers2.length; ++i) { - if (_matchers2[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'has': - { - var _matchers3 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - var result = false; - var a = []; - estraverse.traverse(node, { - enter: function enter(node, parent) { - if (parent != null) { - a.unshift(parent); - } - for (var i = 0; i < _matchers3.length; ++i) { - if (_matchers3[i](node, a, options)) { - result = true; - this["break"](); - return; - } - } - }, - leave: function leave() { - a.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); - return result; - }; - } - case 'child': - { - var left = getMatcher(selector.left); - var right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (ancestry.length > 0 && right(node, ancestry, options)) { - return left(ancestry[0], ancestry.slice(1), options); - } - return false; - }; - } - case 'descendant': - { - var _left = getMatcher(selector.left); - var _right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (_right(node, ancestry, options)) { - for (var i = 0, l = ancestry.length; i < l; ++i) { - if (_left(ancestry[i], ancestry.slice(i + 1), options)) { - return true; - } - } - } - return false; - }; - } - case 'attribute': - { - var _path = selector.name.split('.'); - switch (selector.operator) { - case void 0: - return function (node) { - return getPath(node, _path) != null; - }; - case '=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - var p = getPath(node, _path); - return typeof p === 'string' && selector.value.value.test(p); - }; - case 'literal': - { - var literal = "".concat(selector.value.value); - return function (node) { - return literal === "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value === _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '!=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - return !selector.value.value.test(getPath(node, _path)); - }; - case 'literal': - { - var _literal = "".concat(selector.value.value); - return function (node) { - return _literal !== "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value !== _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '<=': - return function (node) { - return getPath(node, _path) <= selector.value.value; - }; - case '<': - return function (node) { - return getPath(node, _path) < selector.value.value; - }; - case '>': - return function (node) { - return getPath(node, _path) > selector.value.value; - }; - case '>=': - return function (node) { - return getPath(node, _path) >= selector.value.value; - }; - } - throw new Error("Unknown operator: ".concat(selector.operator)); - } - case 'sibling': - { - var _left2 = getMatcher(selector.left); - var _right2 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right2(node, ancestry, options) && sibling(node, _left2, ancestry, LEFT_SIDE, options) || selector.left.subject && _left2(node, ancestry, options) && sibling(node, _right2, ancestry, RIGHT_SIDE, options); - }; - } - case 'adjacent': - { - var _left3 = getMatcher(selector.left); - var _right3 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right3(node, ancestry, options) && adjacent(node, _left3, ancestry, LEFT_SIDE, options) || selector.right.subject && _left3(node, ancestry, options) && adjacent(node, _right3, ancestry, RIGHT_SIDE, options); - }; - } - case 'nth-child': - { - var nth = selector.index.value; - var _right4 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right4(node, ancestry, options) && nthChild(node, ancestry, nth, options); - }; - } - case 'nth-last-child': - { - var _nth = -selector.index.value; - var _right5 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right5(node, ancestry, options) && nthChild(node, ancestry, _nth, options); - }; - } - case 'class': - { - var name = selector.name.toLowerCase(); - return function (node, ancestry, options) { - if (options && options.matchClass) { - return options.matchClass(selector.name, node, ancestry); - } - if (options && options.nodeTypeKey) return false; - switch (name) { - case 'statement': - if (node.type.slice(-9) === 'Statement') return true; - // fallthrough: interface Declaration <: Statement { } - case 'declaration': - return node.type.slice(-11) === 'Declaration'; - case 'pattern': - if (node.type.slice(-7) === 'Pattern') return true; - // fallthrough: interface Expression <: Node, Pattern { } - case 'expression': - return node.type.slice(-10) === 'Expression' || node.type.slice(-7) === 'Literal' || node.type === 'Identifier' && (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty') || node.type === 'MetaProperty'; - case 'function': - return node.type === 'FunctionDeclaration' || node.type === 'FunctionExpression' || node.type === 'ArrowFunctionExpression'; - } - throw new Error("Unknown class name: ".concat(selector.name)); - }; - } - } - throw new Error("Unknown selector type: ".concat(selector.type)); - } - - /** - * @callback TraverseOptionFallback - * @param {external:AST} node The given node. - * @returns {string[]} An array of visitor keys for the given node. - */ - - /** - * @callback ClassMatcher - * @param {string} className The name of the class to match. - * @param {external:AST} node The node to match against. - * @param {Array} ancestry The ancestry of the node. - * @returns {boolean} True if the node matches the class, false if not. - */ - - /** - * @typedef {object} ESQueryOptions - * @property {string} [nodeTypeKey="type"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery. - * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node. - * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes. - * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes. - */ - - /** - * Given a `node` and its ancestors, determine if `node` is matched - * by `selector`. - * @param {?external:AST} node - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @throws {Error} Unknowns (operator, class name, selector type, or - * selector value type) - * @returns {boolean} - */ - function matches(node, selector, ancestry, options) { - if (!selector) { - return true; - } - if (!node) { - return false; - } - if (!ancestry) { - ancestry = []; - } - return getMatcher(selector)(node, ancestry, options); - } - - /** - * Get visitor keys of a given node. - * @param {external:AST} node The AST node to get keys. - * @param {ESQueryOptions|undefined} options - * @returns {string[]} Visitor keys of the node. - */ - function getVisitorKeys(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - var nodeType = node[nodeTypeKey]; - if (options && options.visitorKeys && options.visitorKeys[nodeType]) { - return options.visitorKeys[nodeType]; - } - if (estraverse.VisitorKeys[nodeType]) { - return estraverse.VisitorKeys[nodeType]; - } - if (options && typeof options.fallback === 'function') { - return options.fallback(node); - } - // 'iteration' fallback - return Object.keys(node).filter(function (key) { - return key !== nodeTypeKey; - }); - } - - /** - * Check whether the given value is an ASTNode or not. - * @param {any} node The value to check. - * @param {ESQueryOptions|undefined} options The options to use. - * @returns {boolean} `true` if the value is an ASTNode. - */ - function isNode(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return node !== null && _typeof(node) === 'object' && typeof node[nodeTypeKey] === 'string'; - } - - /** - * Determines if the given node has a sibling that matches the - * given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function sibling(node, matcher, ancestry, side, options) { - var _ancestry = _slicedToArray(ancestry, 1), - parent = _ancestry[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var startIndex = listProp.indexOf(node); - if (startIndex < 0) { - continue; - } - var lowerBound = void 0, - upperBound = void 0; - if (side === LEFT_SIDE) { - lowerBound = 0; - upperBound = startIndex; - } else { - lowerBound = startIndex + 1; - upperBound = listProp.length; - } - for (var k = lowerBound; k < upperBound; ++k) { - if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) { - return true; - } - } - } - } - return false; - } - - /** - * Determines if the given node has an adjacent sibling that matches - * the given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function adjacent(node, matcher, ancestry, side, options) { - var _ancestry2 = _slicedToArray(ancestry, 1), - parent = _ancestry2[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = listProp.indexOf(node); - if (idx < 0) { - continue; - } - if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) { - return true; - } - if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) { - return true; - } - } - } - return false; - } - - /** - * Determines if the given node is the `nth` child. - * If `nth` is negative then the position is counted - * from the end of the list of children. - * @param {external:AST} node - * @param {external:AST[]} ancestry - * @param {Integer} nth - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function nthChild(node, ancestry, nth, options) { - if (nth === 0) { - return false; - } - var _ancestry3 = _slicedToArray(ancestry, 1), - parent = _ancestry3[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = nth < 0 ? listProp.length + nth : nth - 1; - if (idx >= 0 && idx < listProp.length && listProp[idx] === node) { - return true; - } - } - } - return false; - } - - /** - * For each selector node marked as a subject, find the portion of the - * selector that the subject must match. - * @param {SelectorAST} selector - * @param {SelectorAST} [ancestor] Defaults to `selector` - * @returns {SelectorAST[]} - */ - function subjects(selector, ancestor) { - if (selector == null || _typeof(selector) != 'object') { - return []; - } - if (ancestor == null) { - ancestor = selector; - } - var results = selector.subject ? [ancestor] : []; - var keys = Object.keys(selector); - for (var i = 0; i < keys.length; ++i) { - var p = keys[i]; - var sel = selector[p]; - results.push.apply(results, _toConsumableArray(subjects(sel, p === 'left' ? sel : ancestor))); - } - return results; - } - - /** - * @callback TraverseVisitor - * @param {?external:AST} node - * @param {?external:AST} parent - * @param {external:AST[]} ancestry - */ - - /** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {TraverseVisitor} visitor - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function traverse(ast, selector, visitor, options) { - if (!selector) { - return; - } - var ancestry = []; - var matcher = getMatcher(selector); - var altSubjects = subjects(selector).map(getMatcher); - estraverse.traverse(ast, { - enter: function enter(node, parent) { - if (parent != null) { - ancestry.unshift(parent); - } - if (matcher(node, ancestry, options)) { - if (altSubjects.length) { - for (var i = 0, l = altSubjects.length; i < l; ++i) { - if (altSubjects[i](node, ancestry, options)) { - visitor(node, parent, ancestry); - } - for (var k = 0, m = ancestry.length; k < m; ++k) { - var succeedingAncestry = ancestry.slice(k + 1); - if (altSubjects[i](ancestry[k], succeedingAncestry, options)) { - visitor(ancestry[k], parent, succeedingAncestry); - } - } - } - } else { - visitor(node, parent, ancestry); - } - } - }, - leave: function leave() { - ancestry.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); - } - - /** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function match(ast, selector, options) { - var results = []; - traverse(ast, selector, function (node) { - results.push(node); - }, options); - return results; - } - - /** - * Parse a selector string and return its AST. - * @param {string} selector - * @returns {SelectorAST} - */ - function parse(selector) { - return parser.parse(selector); - } - - /** - * Query the code AST using the selector string. - * @param {external:AST} ast - * @param {string} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function query(ast, selector, options) { - return match(ast, parse(selector), options); - } - query.parse = parse; - query.match = match; - query.traverse = traverse; - query.matches = matches; - query.query = query; - - return query; - -}))); diff --git a/graphql/node_modules/esquery/dist/esquery.lite.js b/graphql/node_modules/esquery/dist/esquery.lite.js deleted file mode 100644 index 170c9336..00000000 --- a/graphql/node_modules/esquery/dist/esquery.lite.js +++ /dev/null @@ -1,3470 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('estraverse')) : - typeof define === 'function' && define.amd ? define(['estraverse'], factory) : - (global = global || self, global.esquery = factory(global.estraverse)); -}(this, (function (estraverse) { 'use strict'; - - estraverse = estraverse && Object.prototype.hasOwnProperty.call(estraverse, 'default') ? estraverse['default'] : estraverse; - - function _iterableToArrayLimit(arr, i) { - var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; - if (null != _i) { - var _s, - _e, - _x, - _r, - _arr = [], - _n = !0, - _d = !1; - try { - if (_x = (_i = _i.call(arr)).next, 0 === i) { - if (Object(_i) !== _i) return; - _n = !1; - } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); - } catch (err) { - _d = !0, _e = err; - } finally { - try { - if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; - } finally { - if (_d) throw _e; - } - } - return _arr; - } - } - function _typeof(obj) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, _typeof(obj); - } - function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); - } - function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); - } - function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); - } - function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; - } - function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); - } - function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; - } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - - var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - - function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; - } - - var parser = createCommonjsModule(function (module) { - /* - * Generated by PEG.js 0.10.0. - * - * http://pegjs.org/ - */ - (function (root, factory) { - if ( module.exports) { - module.exports = factory(); - } - })(commonjsGlobal, function () { - - function peg$subclass(child, parent) { - function ctor() { - this.constructor = child; - } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); - } - function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } - } - peg$subclass(peg$SyntaxError, Error); - peg$SyntaxError.buildMessage = function (expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function literal(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - "class": function _class(expectation) { - var escapedParts = "", - i; - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) : classEscape(expectation.parts[i]); - } - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - any: function any(expectation) { - return "any character"; - }, - end: function end(expectation) { - return "end of input"; - }, - other: function other(expectation) { - return expectation.description; - } - }; - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - function literalEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function classEscape(s) { - return s.replace(/\\/g, '\\\\').replace(/\]/g, '\\]').replace(/\^/g, '\\^').replace(/-/g, '\\-').replace(/\0/g, '\\0').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/[\x00-\x0F]/g, function (ch) { - return '\\x0' + hex(ch); - }).replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return '\\x' + hex(ch); - }); - } - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, - j; - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - descriptions.sort(); - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - switch (descriptions.length) { - case 1: - return descriptions[0]; - case 2: - return descriptions[0] + " or " + descriptions[1]; - default: - return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1]; - } - } - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; - }; - function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - var peg$FAILED = {}, - peg$startRuleFunctions = { - start: peg$parsestart - }, - peg$startRuleFunction = peg$parsestart, - peg$c0 = function peg$c0(ss) { - return ss.length === 1 ? ss[0] : { - type: 'matches', - selectors: ss - }; - }, - peg$c1 = function peg$c1() { - return void 0; - }, - peg$c2 = " ", - peg$c3 = peg$literalExpectation(" ", false), - peg$c4 = /^[^ [\],():#!=><~+.]/, - peg$c5 = peg$classExpectation([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), - peg$c6 = function peg$c6(i) { - return i.join(''); - }, - peg$c7 = ">", - peg$c8 = peg$literalExpectation(">", false), - peg$c9 = function peg$c9() { - return 'child'; - }, - peg$c10 = "~", - peg$c11 = peg$literalExpectation("~", false), - peg$c12 = function peg$c12() { - return 'sibling'; - }, - peg$c13 = "+", - peg$c14 = peg$literalExpectation("+", false), - peg$c15 = function peg$c15() { - return 'adjacent'; - }, - peg$c16 = function peg$c16() { - return 'descendant'; - }, - peg$c17 = ",", - peg$c18 = peg$literalExpectation(",", false), - peg$c19 = function peg$c19(s, ss) { - return [s].concat(ss.map(function (s) { - return s[3]; - })); - }, - peg$c20 = function peg$c20(op, s) { - if (!op) return s; - return { - type: op, - left: { - type: 'exactNode' - }, - right: s - }; - }, - peg$c21 = function peg$c21(a, ops) { - return ops.reduce(function (memo, rhs) { - return { - type: rhs[0], - left: memo, - right: rhs[1] - }; - }, a); - }, - peg$c22 = "!", - peg$c23 = peg$literalExpectation("!", false), - peg$c24 = function peg$c24(subject, as) { - var b = as.length === 1 ? as[0] : { - type: 'compound', - selectors: as - }; - if (subject) b.subject = true; - return b; - }, - peg$c25 = "*", - peg$c26 = peg$literalExpectation("*", false), - peg$c27 = function peg$c27(a) { - return { - type: 'wildcard', - value: a - }; - }, - peg$c28 = "#", - peg$c29 = peg$literalExpectation("#", false), - peg$c30 = function peg$c30(i) { - return { - type: 'identifier', - value: i - }; - }, - peg$c31 = "[", - peg$c32 = peg$literalExpectation("[", false), - peg$c33 = "]", - peg$c34 = peg$literalExpectation("]", false), - peg$c35 = function peg$c35(v) { - return v; - }, - peg$c36 = /^[>", "<", "!"], false, false), - peg$c38 = "=", - peg$c39 = peg$literalExpectation("=", false), - peg$c40 = function peg$c40(a) { - return (a || '') + '='; - }, - peg$c41 = /^[><]/, - peg$c42 = peg$classExpectation([">", "<"], false, false), - peg$c43 = ".", - peg$c44 = peg$literalExpectation(".", false), - peg$c45 = function peg$c45(a, as) { - return [].concat.apply([a], as).join(''); - }, - peg$c46 = function peg$c46(name, op, value) { - return { - type: 'attribute', - name: name, - operator: op, - value: value - }; - }, - peg$c47 = function peg$c47(name) { - return { - type: 'attribute', - name: name - }; - }, - peg$c48 = "\"", - peg$c49 = peg$literalExpectation("\"", false), - peg$c50 = /^[^\\"]/, - peg$c51 = peg$classExpectation(["\\", "\""], true, false), - peg$c52 = "\\", - peg$c53 = peg$literalExpectation("\\", false), - peg$c54 = peg$anyExpectation(), - peg$c55 = function peg$c55(a, b) { - return a + b; - }, - peg$c56 = function peg$c56(d) { - return { - type: 'literal', - value: strUnescape(d.join('')) - }; - }, - peg$c57 = "'", - peg$c58 = peg$literalExpectation("'", false), - peg$c59 = /^[^\\']/, - peg$c60 = peg$classExpectation(["\\", "'"], true, false), - peg$c61 = /^[0-9]/, - peg$c62 = peg$classExpectation([["0", "9"]], false, false), - peg$c63 = function peg$c63(a, b) { - // Can use `a.flat().join('')` once supported - var leadingDecimals = a ? [].concat.apply([], a).join('') : ''; - return { - type: 'literal', - value: parseFloat(leadingDecimals + b.join('')) - }; - }, - peg$c64 = function peg$c64(i) { - return { - type: 'literal', - value: i - }; - }, - peg$c65 = "type(", - peg$c66 = peg$literalExpectation("type(", false), - peg$c67 = /^[^ )]/, - peg$c68 = peg$classExpectation([" ", ")"], true, false), - peg$c69 = ")", - peg$c70 = peg$literalExpectation(")", false), - peg$c71 = function peg$c71(t) { - return { - type: 'type', - value: t.join('') - }; - }, - peg$c72 = /^[imsu]/, - peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false), - peg$c74 = "/", - peg$c75 = peg$literalExpectation("/", false), - peg$c76 = /^[^\/]/, - peg$c77 = peg$classExpectation(["/"], true, false), - peg$c78 = function peg$c78(d, flgs) { - return { - type: 'regexp', - value: new RegExp(d.join(''), flgs ? flgs.join('') : '') - }; - }, - peg$c79 = function peg$c79(i, is) { - return { - type: 'field', - name: is.reduce(function (memo, p) { - return memo + p[0] + p[1]; - }, i) - }; - }, - peg$c80 = ":not(", - peg$c81 = peg$literalExpectation(":not(", false), - peg$c82 = function peg$c82(ss) { - return { - type: 'not', - selectors: ss - }; - }, - peg$c83 = ":matches(", - peg$c84 = peg$literalExpectation(":matches(", false), - peg$c85 = function peg$c85(ss) { - return { - type: 'matches', - selectors: ss - }; - }, - peg$c86 = ":has(", - peg$c87 = peg$literalExpectation(":has(", false), - peg$c88 = function peg$c88(ss) { - return { - type: 'has', - selectors: ss - }; - }, - peg$c89 = ":first-child", - peg$c90 = peg$literalExpectation(":first-child", false), - peg$c91 = function peg$c91() { - return nth(1); - }, - peg$c92 = ":last-child", - peg$c93 = peg$literalExpectation(":last-child", false), - peg$c94 = function peg$c94() { - return nthLast(1); - }, - peg$c95 = ":nth-child(", - peg$c96 = peg$literalExpectation(":nth-child(", false), - peg$c97 = function peg$c97(n) { - return nth(parseInt(n.join(''), 10)); - }, - peg$c98 = ":nth-last-child(", - peg$c99 = peg$literalExpectation(":nth-last-child(", false), - peg$c100 = function peg$c100(n) { - return nthLast(parseInt(n.join(''), 10)); - }, - peg$c101 = ":", - peg$c102 = peg$literalExpectation(":", false), - peg$c103 = function peg$c103(c) { - return { - type: 'class', - name: c - }; - }, - peg$currPos = 0, - peg$posDetailsCache = [{ - line: 1, - column: 1 - }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$resultsCache = {}, - peg$result; - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - function peg$literalExpectation(text, ignoreCase) { - return { - type: "literal", - text: text, - ignoreCase: ignoreCase - }; - } - function peg$classExpectation(parts, inverted, ignoreCase) { - return { - type: "class", - parts: parts, - inverted: inverted, - ignoreCase: ignoreCase - }; - } - function peg$anyExpectation() { - return { - type: "any" - }; - } - function peg$endExpectation() { - return { - type: "end" - }; - } - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], - p; - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - p++; - } - peg$posDetailsCache[pos] = details; - return details; - } - } - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { - return; - } - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - peg$maxFailExpected.push(expected); - } - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location); - } - function peg$parsestart() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 0, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseselectors(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s1 = peg$c1(); - } - s0 = s1; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parse_() { - var s0, s1; - var key = peg$currPos * 32 + 1, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - while (s1 !== peg$FAILED) { - s0.push(s1); - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifierName() { - var s0, s1, s2; - var key = peg$currPos * 32 + 2, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = []; - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c5); - } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s1 = peg$c6(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsebinaryOp() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 3, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s2 = peg$c7; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c8); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c9(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c10; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c11); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c12(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s2 = peg$c13; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c14); - } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s1 = peg$c15(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c3); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s1 = peg$c16(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 4, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsehasSelector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - var key = peg$currPos * 32 + 5, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseselector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c18); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehasSelector() { - var s0, s1, s2; - var key = peg$currPos * 32 + 6, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsebinaryOp(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseselector(); - if (s2 !== peg$FAILED) { - s1 = peg$c20(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseselector() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 7, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parsesequence(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c21(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsesequence() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 8, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseatom(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseatom(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c24(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseatom() { - var s0; - var key = peg$currPos * 32 + 9, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$parsewildcard(); - if (s0 === peg$FAILED) { - s0 = peg$parseidentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseattr(); - if (s0 === peg$FAILED) { - s0 = peg$parsefield(); - if (s0 === peg$FAILED) { - s0 = peg$parsenegation(); - if (s0 === peg$FAILED) { - s0 = peg$parsematches(); - if (s0 === peg$FAILED) { - s0 = peg$parsehas(); - if (s0 === peg$FAILED) { - s0 = peg$parsefirstChild(); - if (s0 === peg$FAILED) { - s0 = peg$parselastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthLastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parseclass(); - } - } - } - } - } - } - } - } - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsewildcard() { - var s0, s1; - var key = peg$currPos * 32 + 10, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c25; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c26); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c27(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseidentifier() { - var s0, s1, s2; - var key = peg$currPos * 32 + 11, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 35) { - s1 = peg$c28; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c29); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c30(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattr() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 12, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c31; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c32); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrValue(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c33; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c34); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c35(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 13, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (peg$c36.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c37); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - if (peg$c41.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - { - peg$fail(peg$c42); - } - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrEqOps() { - var s0, s1, s2; - var key = peg$currPos * 32 + 14, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c23); - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - { - peg$fail(peg$c39); - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrName() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 15, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = peg$c45(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseattrValue() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 16, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrEqOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsetype(); - if (s5 === peg$FAILED) { - s5 = peg$parseregex(); - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsestring(); - if (s5 === peg$FAILED) { - s5 = peg$parsenumber(); - if (s5 === peg$FAILED) { - s5 = peg$parsepath(); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s1 = peg$c47(s1); - } - s0 = s1; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsestring() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 17, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c48; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c51); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c48; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c49); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c57; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c60); - } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c53); - } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c54); - } - } - if (s5 !== peg$FAILED) { - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c57; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c58); - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenumber() { - var s0, s1, s2, s3; - var key = peg$currPos * 32 + 18, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$currPos; - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c43; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = peg$c63(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsepath() { - var s0, s1; - var key = peg$currPos * 32 + 19, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s1 = peg$c64(s1); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsetype() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 20, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c65) { - s1 = peg$c65; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c66); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c68); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c71(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseflags() { - var s0, s1; - var key = peg$currPos * 32 + 21, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = []; - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c73); - } - } - } - } else { - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseregex() { - var s0, s1, s2, s3, s4; - var key = peg$currPos * 32 + 22, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c74; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c77); - } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c74; - peg$currPos++; - } else { - s3 = peg$FAILED; - { - peg$fail(peg$c75); - } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseflags(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s1 = peg$c78(s2, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefield() { - var s0, s1, s2, s3, s4, s5, s6; - var key = peg$currPos * 32 + 23, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c43; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c44); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } - if (s3 !== peg$FAILED) { - s1 = peg$c79(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenegation() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 24, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c80) { - s1 = peg$c80; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c81); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c82(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsematches() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 25, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c83) { - s1 = peg$c83; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c84); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c85(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsehas() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 26, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c86) { - s1 = peg$c86; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c87); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsehasSelectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c88(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsefirstChild() { - var s0, s1; - var key = peg$currPos * 32 + 27, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 12) === peg$c89) { - s1 = peg$c89; - peg$currPos += 12; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c90); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c91(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parselastChild() { - var s0, s1; - var key = peg$currPos * 32 + 28, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c92) { - s1 = peg$c92; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c93); - } - } - if (s1 !== peg$FAILED) { - s1 = peg$c94(); - } - s0 = s1; - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 29, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c95) { - s1 = peg$c95; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c96); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c97(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parsenthLastChild() { - var s0, s1, s2, s3, s4, s5; - var key = peg$currPos * 32 + 30, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.substr(peg$currPos, 16) === peg$c98) { - s1 = peg$c98; - peg$currPos += 16; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c99); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - { - peg$fail(peg$c62); - } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - { - peg$fail(peg$c70); - } - } - if (s5 !== peg$FAILED) { - s1 = peg$c100(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function peg$parseclass() { - var s0, s1, s2; - var key = peg$currPos * 32 + 31, - cached = peg$resultsCache[key]; - if (cached) { - peg$currPos = cached.nextPos; - return cached.result; - } - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c101; - peg$currPos++; - } else { - s1 = peg$FAILED; - { - peg$fail(peg$c102); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s1 = peg$c103(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - peg$resultsCache[key] = { - nextPos: peg$currPos, - result: s0 - }; - return s0; - } - function nth(n) { - return { - type: 'nth-child', - index: { - type: 'literal', - value: n - } - }; - } - function nthLast(n) { - return { - type: 'nth-last-child', - index: { - type: 'literal', - value: n - } - }; - } - function strUnescape(s) { - return s.replace(/\\(.)/g, function (match, ch) { - switch (ch) { - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - case 'v': - return '\v'; - default: - return ch; - } - }); - } - peg$result = peg$startRuleFunction(); - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); - } - } - return { - SyntaxError: peg$SyntaxError, - parse: peg$parse - }; - }); - }); - - /** - * @typedef {"LEFT_SIDE"|"RIGHT_SIDE"} Side - */ - - var LEFT_SIDE = 'LEFT_SIDE'; - var RIGHT_SIDE = 'RIGHT_SIDE'; - - /** - * @external AST - * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html - */ - - /** - * One of the rules of `grammar.pegjs` - * @typedef {PlainObject} SelectorAST - * @see grammar.pegjs - */ - - /** - * The `sequence` production of `grammar.pegjs` - * @typedef {PlainObject} SelectorSequenceAST - */ - - /** - * Get the value of a property which may be multiple levels down - * in the object. - * @param {?PlainObject} obj - * @param {string[]} keys - * @returns {undefined|boolean|string|number|external:AST} - */ - function getPath(obj, keys) { - for (var i = 0; i < keys.length; ++i) { - if (obj == null) { - return obj; - } - obj = obj[keys[i]]; - } - return obj; - } - - /** - * Determine whether `node` can be reached by following `path`, - * starting at `ancestor`. - * @param {?external:AST} node - * @param {?external:AST} ancestor - * @param {string[]} path - * @param {Integer} fromPathIndex - * @returns {boolean} - */ - function inPath(node, ancestor, path, fromPathIndex) { - var current = ancestor; - for (var i = fromPathIndex; i < path.length; ++i) { - if (current == null) { - return false; - } - var field = current[path[i]]; - if (Array.isArray(field)) { - for (var k = 0; k < field.length; ++k) { - if (inPath(node, field[k], path, i + 1)) { - return true; - } - } - return false; - } - current = field; - } - return node === current; - } - - /** - * A generated matcher function for a selector. - * @callback SelectorMatcher - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @returns {void} - */ - - /** - * A WeakMap for holding cached matcher functions for selectors. - * @type {WeakMap} - */ - var MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap() : null; - - /** - * Look up a matcher function for `selector` in the cache. - * If it does not exist, generate it with `generateMatcher` and add it to the cache. - * In engines without WeakMap, the caching is skipped and matchers are generated with every call. - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ - function getMatcher(selector) { - if (selector == null) { - return function () { - return true; - }; - } - if (MATCHER_CACHE != null) { - var matcher = MATCHER_CACHE.get(selector); - if (matcher != null) { - return matcher; - } - matcher = generateMatcher(selector); - MATCHER_CACHE.set(selector, matcher); - return matcher; - } - return generateMatcher(selector); - } - - /** - * Create a matcher function for `selector`, - * @param {?SelectorAST} selector - * @returns {SelectorMatcher} - */ - function generateMatcher(selector) { - switch (selector.type) { - case 'wildcard': - return function () { - return true; - }; - case 'identifier': - { - var value = selector.value.toLowerCase(); - return function (node, ancestry, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return value === node[nodeTypeKey].toLowerCase(); - }; - } - case 'exactNode': - return function (node, ancestry) { - return ancestry.length === 0; - }; - case 'field': - { - var path = selector.name.split('.'); - return function (node, ancestry) { - var ancestor = ancestry[path.length - 1]; - return inPath(node, ancestor, path, 0); - }; - } - case 'matches': - { - var matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < matchers.length; ++i) { - if (matchers[i](node, ancestry, options)) { - return true; - } - } - return false; - }; - } - case 'compound': - { - var _matchers = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers.length; ++i) { - if (!_matchers[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'not': - { - var _matchers2 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - for (var i = 0; i < _matchers2.length; ++i) { - if (_matchers2[i](node, ancestry, options)) { - return false; - } - } - return true; - }; - } - case 'has': - { - var _matchers3 = selector.selectors.map(getMatcher); - return function (node, ancestry, options) { - var result = false; - var a = []; - estraverse.traverse(node, { - enter: function enter(node, parent) { - if (parent != null) { - a.unshift(parent); - } - for (var i = 0; i < _matchers3.length; ++i) { - if (_matchers3[i](node, a, options)) { - result = true; - this["break"](); - return; - } - } - }, - leave: function leave() { - a.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); - return result; - }; - } - case 'child': - { - var left = getMatcher(selector.left); - var right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (ancestry.length > 0 && right(node, ancestry, options)) { - return left(ancestry[0], ancestry.slice(1), options); - } - return false; - }; - } - case 'descendant': - { - var _left = getMatcher(selector.left); - var _right = getMatcher(selector.right); - return function (node, ancestry, options) { - if (_right(node, ancestry, options)) { - for (var i = 0, l = ancestry.length; i < l; ++i) { - if (_left(ancestry[i], ancestry.slice(i + 1), options)) { - return true; - } - } - } - return false; - }; - } - case 'attribute': - { - var _path = selector.name.split('.'); - switch (selector.operator) { - case void 0: - return function (node) { - return getPath(node, _path) != null; - }; - case '=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - var p = getPath(node, _path); - return typeof p === 'string' && selector.value.value.test(p); - }; - case 'literal': - { - var literal = "".concat(selector.value.value); - return function (node) { - return literal === "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value === _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '!=': - switch (selector.value.type) { - case 'regexp': - return function (node) { - return !selector.value.value.test(getPath(node, _path)); - }; - case 'literal': - { - var _literal = "".concat(selector.value.value); - return function (node) { - return _literal !== "".concat(getPath(node, _path)); - }; - } - case 'type': - return function (node) { - return selector.value.value !== _typeof(getPath(node, _path)); - }; - } - throw new Error("Unknown selector value type: ".concat(selector.value.type)); - case '<=': - return function (node) { - return getPath(node, _path) <= selector.value.value; - }; - case '<': - return function (node) { - return getPath(node, _path) < selector.value.value; - }; - case '>': - return function (node) { - return getPath(node, _path) > selector.value.value; - }; - case '>=': - return function (node) { - return getPath(node, _path) >= selector.value.value; - }; - } - throw new Error("Unknown operator: ".concat(selector.operator)); - } - case 'sibling': - { - var _left2 = getMatcher(selector.left); - var _right2 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right2(node, ancestry, options) && sibling(node, _left2, ancestry, LEFT_SIDE, options) || selector.left.subject && _left2(node, ancestry, options) && sibling(node, _right2, ancestry, RIGHT_SIDE, options); - }; - } - case 'adjacent': - { - var _left3 = getMatcher(selector.left); - var _right3 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right3(node, ancestry, options) && adjacent(node, _left3, ancestry, LEFT_SIDE, options) || selector.right.subject && _left3(node, ancestry, options) && adjacent(node, _right3, ancestry, RIGHT_SIDE, options); - }; - } - case 'nth-child': - { - var nth = selector.index.value; - var _right4 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right4(node, ancestry, options) && nthChild(node, ancestry, nth, options); - }; - } - case 'nth-last-child': - { - var _nth = -selector.index.value; - var _right5 = getMatcher(selector.right); - return function (node, ancestry, options) { - return _right5(node, ancestry, options) && nthChild(node, ancestry, _nth, options); - }; - } - case 'class': - { - var name = selector.name.toLowerCase(); - return function (node, ancestry, options) { - if (options && options.matchClass) { - return options.matchClass(selector.name, node, ancestry); - } - if (options && options.nodeTypeKey) return false; - switch (name) { - case 'statement': - if (node.type.slice(-9) === 'Statement') return true; - // fallthrough: interface Declaration <: Statement { } - case 'declaration': - return node.type.slice(-11) === 'Declaration'; - case 'pattern': - if (node.type.slice(-7) === 'Pattern') return true; - // fallthrough: interface Expression <: Node, Pattern { } - case 'expression': - return node.type.slice(-10) === 'Expression' || node.type.slice(-7) === 'Literal' || node.type === 'Identifier' && (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty') || node.type === 'MetaProperty'; - case 'function': - return node.type === 'FunctionDeclaration' || node.type === 'FunctionExpression' || node.type === 'ArrowFunctionExpression'; - } - throw new Error("Unknown class name: ".concat(selector.name)); - }; - } - } - throw new Error("Unknown selector type: ".concat(selector.type)); - } - - /** - * @callback TraverseOptionFallback - * @param {external:AST} node The given node. - * @returns {string[]} An array of visitor keys for the given node. - */ - - /** - * @callback ClassMatcher - * @param {string} className The name of the class to match. - * @param {external:AST} node The node to match against. - * @param {Array} ancestry The ancestry of the node. - * @returns {boolean} True if the node matches the class, false if not. - */ - - /** - * @typedef {object} ESQueryOptions - * @property {string} [nodeTypeKey="type"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery. - * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node. - * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes. - * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes. - */ - - /** - * Given a `node` and its ancestors, determine if `node` is matched - * by `selector`. - * @param {?external:AST} node - * @param {?SelectorAST} selector - * @param {external:AST[]} [ancestry=[]] - * @param {ESQueryOptions} [options] - * @throws {Error} Unknowns (operator, class name, selector type, or - * selector value type) - * @returns {boolean} - */ - function matches(node, selector, ancestry, options) { - if (!selector) { - return true; - } - if (!node) { - return false; - } - if (!ancestry) { - ancestry = []; - } - return getMatcher(selector)(node, ancestry, options); - } - - /** - * Get visitor keys of a given node. - * @param {external:AST} node The AST node to get keys. - * @param {ESQueryOptions|undefined} options - * @returns {string[]} Visitor keys of the node. - */ - function getVisitorKeys(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - var nodeType = node[nodeTypeKey]; - if (options && options.visitorKeys && options.visitorKeys[nodeType]) { - return options.visitorKeys[nodeType]; - } - if (estraverse.VisitorKeys[nodeType]) { - return estraverse.VisitorKeys[nodeType]; - } - if (options && typeof options.fallback === 'function') { - return options.fallback(node); - } - // 'iteration' fallback - return Object.keys(node).filter(function (key) { - return key !== nodeTypeKey; - }); - } - - /** - * Check whether the given value is an ASTNode or not. - * @param {any} node The value to check. - * @param {ESQueryOptions|undefined} options The options to use. - * @returns {boolean} `true` if the value is an ASTNode. - */ - function isNode(node, options) { - var nodeTypeKey = options && options.nodeTypeKey || 'type'; - return node !== null && _typeof(node) === 'object' && typeof node[nodeTypeKey] === 'string'; - } - - /** - * Determines if the given node has a sibling that matches the - * given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function sibling(node, matcher, ancestry, side, options) { - var _ancestry = _slicedToArray(ancestry, 1), - parent = _ancestry[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var startIndex = listProp.indexOf(node); - if (startIndex < 0) { - continue; - } - var lowerBound = void 0, - upperBound = void 0; - if (side === LEFT_SIDE) { - lowerBound = 0; - upperBound = startIndex; - } else { - lowerBound = startIndex + 1; - upperBound = listProp.length; - } - for (var k = lowerBound; k < upperBound; ++k) { - if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) { - return true; - } - } - } - } - return false; - } - - /** - * Determines if the given node has an adjacent sibling that matches - * the given selector matcher. - * @param {external:AST} node - * @param {SelectorMatcher} matcher - * @param {external:AST[]} ancestry - * @param {Side} side - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function adjacent(node, matcher, ancestry, side, options) { - var _ancestry2 = _slicedToArray(ancestry, 1), - parent = _ancestry2[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = listProp.indexOf(node); - if (idx < 0) { - continue; - } - if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) { - return true; - } - if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) { - return true; - } - } - } - return false; - } - - /** - * Determines if the given node is the `nth` child. - * If `nth` is negative then the position is counted - * from the end of the list of children. - * @param {external:AST} node - * @param {external:AST[]} ancestry - * @param {Integer} nth - * @param {ESQueryOptions|undefined} options - * @returns {boolean} - */ - function nthChild(node, ancestry, nth, options) { - if (nth === 0) { - return false; - } - var _ancestry3 = _slicedToArray(ancestry, 1), - parent = _ancestry3[0]; - if (!parent) { - return false; - } - var keys = getVisitorKeys(parent, options); - for (var i = 0; i < keys.length; ++i) { - var listProp = parent[keys[i]]; - if (Array.isArray(listProp)) { - var idx = nth < 0 ? listProp.length + nth : nth - 1; - if (idx >= 0 && idx < listProp.length && listProp[idx] === node) { - return true; - } - } - } - return false; - } - - /** - * For each selector node marked as a subject, find the portion of the - * selector that the subject must match. - * @param {SelectorAST} selector - * @param {SelectorAST} [ancestor] Defaults to `selector` - * @returns {SelectorAST[]} - */ - function subjects(selector, ancestor) { - if (selector == null || _typeof(selector) != 'object') { - return []; - } - if (ancestor == null) { - ancestor = selector; - } - var results = selector.subject ? [ancestor] : []; - var keys = Object.keys(selector); - for (var i = 0; i < keys.length; ++i) { - var p = keys[i]; - var sel = selector[p]; - results.push.apply(results, _toConsumableArray(subjects(sel, p === 'left' ? sel : ancestor))); - } - return results; - } - - /** - * @callback TraverseVisitor - * @param {?external:AST} node - * @param {?external:AST} parent - * @param {external:AST[]} ancestry - */ - - /** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {TraverseVisitor} visitor - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function traverse(ast, selector, visitor, options) { - if (!selector) { - return; - } - var ancestry = []; - var matcher = getMatcher(selector); - var altSubjects = subjects(selector).map(getMatcher); - estraverse.traverse(ast, { - enter: function enter(node, parent) { - if (parent != null) { - ancestry.unshift(parent); - } - if (matcher(node, ancestry, options)) { - if (altSubjects.length) { - for (var i = 0, l = altSubjects.length; i < l; ++i) { - if (altSubjects[i](node, ancestry, options)) { - visitor(node, parent, ancestry); - } - for (var k = 0, m = ancestry.length; k < m; ++k) { - var succeedingAncestry = ancestry.slice(k + 1); - if (altSubjects[i](ancestry[k], succeedingAncestry, options)) { - visitor(ancestry[k], parent, succeedingAncestry); - } - } - } - } else { - visitor(node, parent, ancestry); - } - } - }, - leave: function leave() { - ancestry.shift(); - }, - keys: options && options.visitorKeys, - fallback: options && options.fallback || 'iteration' - }); - } - - /** - * From a JS AST and a selector AST, collect all JS AST nodes that - * match the selector. - * @param {external:AST} ast - * @param {?SelectorAST} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function match(ast, selector, options) { - var results = []; - traverse(ast, selector, function (node) { - results.push(node); - }, options); - return results; - } - - /** - * Parse a selector string and return its AST. - * @param {string} selector - * @returns {SelectorAST} - */ - function parse(selector) { - return parser.parse(selector); - } - - /** - * Query the code AST using the selector string. - * @param {external:AST} ast - * @param {string} selector - * @param {ESQueryOptions} [options] - * @returns {external:AST[]} - */ - function query(ast, selector, options) { - return match(ast, parse(selector), options); - } - query.parse = parse; - query.match = match; - query.traverse = traverse; - query.matches = matches; - query.query = query; - - return query; - -}))); diff --git a/graphql/node_modules/esquery/dist/esquery.lite.min.js b/graphql/node_modules/esquery/dist/esquery.lite.min.js deleted file mode 100644 index 80dd64ee..00000000 --- a/graphql/node_modules/esquery/dist/esquery.lite.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("estraverse")):"function"==typeof define&&define.amd?define(["estraverse"],e):(t=t||self).esquery=e(t.estraverse)}(this,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,u,o,a,s=[],c=!0,i=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){i=!0,u=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(i)throw u}}return s}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){for(e=1,n=1;e<~+.]/,h=ht([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),p=ft(">",!1),v=ft("~",!1),y=ft("+",!1),d=ft(",",!1),A=function(t,e){return[t].concat(e.map((function(t){return t[3]})))},x=ft("!",!1),g=ft("*",!1),m=ft("#",!1),P=ft("[",!1),b=ft("]",!1),C=/^[>","<","!"],!1,!1),j=ft("=",!1),E=function(t){return(t||"")+"="},S=/^[><]/,k=ht([">","<"],!1,!1),I=ft(".",!1),T=function(t,e,r){return{type:"attribute",name:t,operator:e,value:r}},F=ft('"',!1),K=/^[^\\"]/,O=ht(["\\",'"'],!0,!1),D=ft("\\",!1),L={type:"any"},R=function(t,e){return t+e},M=function(t){return{type:"literal",value:(e=t.join(""),e.replace(/\\(.)/g,(function(t,e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return e}})))};var e},U=ft("'",!1),_=/^[^\\']/,q=ht(["\\","'"],!0,!1),G=/^[0-9]/,H=ht([["0","9"]],!1,!1),N=ft("type(",!1),V=/^[^ )]/,W=ht([" ",")"],!0,!1),$=ft(")",!1),z=/^[imsu]/,B=ht(["i","m","s","u"],!1,!1),J=ft("/",!1),Q=/^[^\/]/,X=ht(["/"],!0,!1),Y=ft(":not(",!1),Z=ft(":matches(",!1),tt=ft(":has(",!1),et=ft(":first-child",!1),rt=ft(":last-child",!1),nt=ft(":nth-child(",!1),ut=ft(":nth-last-child(",!1),ot=ft(":",!1),at=0,st=[{line:1,column:1}],ct=0,it=[],lt={};if("startRule"in r){if(!(r.startRule in c))throw new Error("Can't start parsing from rule \""+r.startRule+'".');i=c[r.startRule]}function ft(t,e){return{type:"literal",text:t,ignoreCase:e}}function ht(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function pt(t){var r,n=st[t];if(n)return n;for(r=t-1;!st[r];)r--;for(n={line:(n=st[r]).line,column:n.column};rct&&(ct=at,it=[]),it.push(t))}function dt(){var t,e,r,n,u=32*at+0,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,(e=At())!==s&&(r=mt())!==s&&At()!==s?t=e=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(at=t,t=s),t===s&&(t=at,(e=At())!==s&&(e=void 0),t=e),lt[u]={nextPos:at,result:t},t)}function At(){var t,r,n=32*at+1,u=lt[n];if(u)return at=u.nextPos,u.result;for(t=[],32===e.charCodeAt(at)?(r=" ",at++):(r=s,yt(l));r!==s;)t.push(r),32===e.charCodeAt(at)?(r=" ",at++):(r=s,yt(l));return lt[n]={nextPos:at,result:t},t}function xt(){var t,r,n,u=32*at+2,o=lt[u];if(o)return at=o.nextPos,o.result;if(r=[],f.test(e.charAt(at))?(n=e.charAt(at),at++):(n=s,yt(h)),n!==s)for(;n!==s;)r.push(n),f.test(e.charAt(at))?(n=e.charAt(at),at++):(n=s,yt(h));else r=s;return r!==s&&(r=r.join("")),t=r,lt[u]={nextPos:at,result:t},t}function gt(){var t,r,n,u=32*at+3,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,(r=At())!==s?(62===e.charCodeAt(at)?(n=">",at++):(n=s,yt(p)),n!==s&&At()!==s?t=r="child":(at=t,t=s)):(at=t,t=s),t===s&&(t=at,(r=At())!==s?(126===e.charCodeAt(at)?(n="~",at++):(n=s,yt(v)),n!==s&&At()!==s?t=r="sibling":(at=t,t=s)):(at=t,t=s),t===s&&(t=at,(r=At())!==s?(43===e.charCodeAt(at)?(n="+",at++):(n=s,yt(y)),n!==s&&At()!==s?t=r="adjacent":(at=t,t=s)):(at=t,t=s),t===s&&(t=at,32===e.charCodeAt(at)?(r=" ",at++):(r=s,yt(l)),r!==s&&(n=At())!==s?t=r="descendant":(at=t,t=s)))),lt[u]={nextPos:at,result:t},t)}function mt(){var t,r,n,u,o,a,c,i,l=32*at+5,f=lt[l];if(f)return at=f.nextPos,f.result;if(t=at,(r=bt())!==s){for(n=[],u=at,(o=At())!==s?(44===e.charCodeAt(at)?(a=",",at++):(a=s,yt(d)),a!==s&&(c=At())!==s&&(i=bt())!==s?u=o=[o,a,c,i]:(at=u,u=s)):(at=u,u=s);u!==s;)n.push(u),u=at,(o=At())!==s?(44===e.charCodeAt(at)?(a=",",at++):(a=s,yt(d)),a!==s&&(c=At())!==s&&(i=bt())!==s?u=o=[o,a,c,i]:(at=u,u=s)):(at=u,u=s);n!==s?t=r=A(r,n):(at=t,t=s)}else at=t,t=s;return lt[l]={nextPos:at,result:t},t}function Pt(){var t,e,r,n,u,o=32*at+6,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,(e=gt())===s&&(e=null),e!==s&&(r=bt())!==s?(u=r,t=e=(n=e)?{type:n,left:{type:"exactNode"},right:u}:u):(at=t,t=s),lt[o]={nextPos:at,result:t},t)}function bt(){var t,e,r,n,u,o,a,c=32*at+7,i=lt[c];if(i)return at=i.nextPos,i.result;if(t=at,(e=Ct())!==s){for(r=[],n=at,(u=gt())!==s&&(o=Ct())!==s?n=u=[u,o]:(at=n,n=s);n!==s;)r.push(n),n=at,(u=gt())!==s&&(o=Ct())!==s?n=u=[u,o]:(at=n,n=s);r!==s?(a=e,t=e=r.reduce((function(t,e){return{type:e[0],left:t,right:e[1]}}),a)):(at=t,t=s)}else at=t,t=s;return lt[c]={nextPos:at,result:t},t}function Ct(){var t,r,n,u,o,a,c,i=32*at+8,l=lt[i];if(l)return at=l.nextPos,l.result;if(t=at,33===e.charCodeAt(at)?(r="!",at++):(r=s,yt(x)),r===s&&(r=null),r!==s){if(n=[],(u=wt())!==s)for(;u!==s;)n.push(u),u=wt();else n=s;n!==s?(o=r,c=1===(a=n).length?a[0]:{type:"compound",selectors:a},o&&(c.subject=!0),t=r=c):(at=t,t=s)}else at=t,t=s;return lt[i]={nextPos:at,result:t},t}function wt(){var t,r=32*at+9,n=lt[r];return n?(at=n.nextPos,n.result):((t=function(){var t,r,n=32*at+10,u=lt[n];return u?(at=u.nextPos,u.result):(42===e.charCodeAt(at)?(r="*",at++):(r=s,yt(g)),r!==s&&(r={type:"wildcard",value:r}),t=r,lt[n]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u=32*at+11,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,35===e.charCodeAt(at)?(r="#",at++):(r=s,yt(m)),r===s&&(r=null),r!==s&&(n=xt())!==s?t=r={type:"identifier",value:n}:(at=t,t=s),lt[u]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u,o=32*at+12,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,91===e.charCodeAt(at)?(r="[",at++):(r=s,yt(P)),r!==s&&At()!==s&&(n=function(){var t,r,n,u,o=32*at+16,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,(r=jt())!==s&&At()!==s&&(n=function(){var t,r,n,u=32*at+14,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,33===e.charCodeAt(at)?(r="!",at++):(r=s,yt(x)),r===s&&(r=null),r!==s?(61===e.charCodeAt(at)?(n="=",at++):(n=s,yt(j)),n!==s?(r=E(r),t=r):(at=t,t=s)):(at=t,t=s),lt[u]={nextPos:at,result:t},t)}())!==s&&At()!==s?((u=function(){var t,r,n,u,o,a=32*at+20,c=lt[a];if(c)return at=c.nextPos,c.result;if(t=at,"type("===e.substr(at,5)?(r="type(",at+=5):(r=s,yt(N)),r!==s)if(At()!==s){if(n=[],V.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(W)),u!==s)for(;u!==s;)n.push(u),V.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(W));else n=s;n!==s&&(u=At())!==s?(41===e.charCodeAt(at)?(o=")",at++):(o=s,yt($)),o!==s?(r={type:"type",value:n.join("")},t=r):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;else at=t,t=s;return lt[a]={nextPos:at,result:t},t}())===s&&(u=function(){var t,r,n,u,o,a,c=32*at+22,i=lt[c];if(i)return at=i.nextPos,i.result;if(t=at,47===e.charCodeAt(at)?(r="/",at++):(r=s,yt(J)),r!==s){if(n=[],Q.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(X)),u!==s)for(;u!==s;)n.push(u),Q.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(X));else n=s;n!==s?(47===e.charCodeAt(at)?(u="/",at++):(u=s,yt(J)),u!==s?((o=function(){var t,r,n=32*at+21,u=lt[n];if(u)return at=u.nextPos,u.result;if(t=[],z.test(e.charAt(at))?(r=e.charAt(at),at++):(r=s,yt(B)),r!==s)for(;r!==s;)t.push(r),z.test(e.charAt(at))?(r=e.charAt(at),at++):(r=s,yt(B));else t=s;return lt[n]={nextPos:at,result:t},t}())===s&&(o=null),o!==s?(a=o,r={type:"regexp",value:new RegExp(n.join(""),a?a.join(""):"")},t=r):(at=t,t=s)):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;return lt[c]={nextPos:at,result:t},t}()),u!==s?(r=T(r,n,u),t=r):(at=t,t=s)):(at=t,t=s),t===s&&(t=at,(r=jt())!==s&&At()!==s&&(n=function(){var t,r,n,u=32*at+13,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,C.test(e.charAt(at))?(r=e.charAt(at),at++):(r=s,yt(w)),r===s&&(r=null),r!==s?(61===e.charCodeAt(at)?(n="=",at++):(n=s,yt(j)),n!==s?(r=E(r),t=r):(at=t,t=s)):(at=t,t=s),t===s&&(S.test(e.charAt(at))?(t=e.charAt(at),at++):(t=s,yt(k))),lt[u]={nextPos:at,result:t},t)}())!==s&&At()!==s?((u=function(){var t,r,n,u,o,a,c=32*at+17,i=lt[c];if(i)return at=i.nextPos,i.result;if(t=at,34===e.charCodeAt(at)?(r='"',at++):(r=s,yt(F)),r!==s){for(n=[],K.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(O)),u===s&&(u=at,92===e.charCodeAt(at)?(o="\\",at++):(o=s,yt(D)),o!==s?(e.length>at?(a=e.charAt(at),at++):(a=s,yt(L)),a!==s?(o=R(o,a),u=o):(at=u,u=s)):(at=u,u=s));u!==s;)n.push(u),K.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(O)),u===s&&(u=at,92===e.charCodeAt(at)?(o="\\",at++):(o=s,yt(D)),o!==s?(e.length>at?(a=e.charAt(at),at++):(a=s,yt(L)),a!==s?(o=R(o,a),u=o):(at=u,u=s)):(at=u,u=s));n!==s?(34===e.charCodeAt(at)?(u='"',at++):(u=s,yt(F)),u!==s?(r=M(n),t=r):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;if(t===s)if(t=at,39===e.charCodeAt(at)?(r="'",at++):(r=s,yt(U)),r!==s){for(n=[],_.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(q)),u===s&&(u=at,92===e.charCodeAt(at)?(o="\\",at++):(o=s,yt(D)),o!==s?(e.length>at?(a=e.charAt(at),at++):(a=s,yt(L)),a!==s?(o=R(o,a),u=o):(at=u,u=s)):(at=u,u=s));u!==s;)n.push(u),_.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(q)),u===s&&(u=at,92===e.charCodeAt(at)?(o="\\",at++):(o=s,yt(D)),o!==s?(e.length>at?(a=e.charAt(at),at++):(a=s,yt(L)),a!==s?(o=R(o,a),u=o):(at=u,u=s)):(at=u,u=s));n!==s?(39===e.charCodeAt(at)?(u="'",at++):(u=s,yt(U)),u!==s?(r=M(n),t=r):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;return lt[c]={nextPos:at,result:t},t}())===s&&(u=function(){var t,r,n,u,o,a,c,i=32*at+18,l=lt[i];if(l)return at=l.nextPos,l.result;for(t=at,r=at,n=[],G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H));u!==s;)n.push(u),G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H));if(n!==s?(46===e.charCodeAt(at)?(u=".",at++):(u=s,yt(I)),u!==s?r=n=[n,u]:(at=r,r=s)):(at=r,r=s),r===s&&(r=null),r!==s){if(n=[],G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H)),u!==s)for(;u!==s;)n.push(u),G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H));else n=s;n!==s?(a=n,c=(o=r)?[].concat.apply([],o).join(""):"",r={type:"literal",value:parseFloat(c+a.join(""))},t=r):(at=t,t=s)}else at=t,t=s;return lt[i]={nextPos:at,result:t},t}())===s&&(u=function(){var t,e,r=32*at+19,n=lt[r];return n?(at=n.nextPos,n.result):((e=xt())!==s&&(e={type:"literal",value:e}),t=e,lt[r]={nextPos:at,result:t},t)}()),u!==s?(r=T(r,n,u),t=r):(at=t,t=s)):(at=t,t=s),t===s&&(t=at,(r=jt())!==s&&(r={type:"attribute",name:r}),t=r)),lt[o]={nextPos:at,result:t},t)}())!==s&&At()!==s?(93===e.charCodeAt(at)?(u="]",at++):(u=s,yt(b)),u!==s?t=r=n:(at=t,t=s)):(at=t,t=s),lt[o]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u,o,a,c,i,l=32*at+23,f=lt[l];if(f)return at=f.nextPos,f.result;if(t=at,46===e.charCodeAt(at)?(r=".",at++):(r=s,yt(I)),r!==s)if((n=xt())!==s){for(u=[],o=at,46===e.charCodeAt(at)?(a=".",at++):(a=s,yt(I)),a!==s&&(c=xt())!==s?o=a=[a,c]:(at=o,o=s);o!==s;)u.push(o),o=at,46===e.charCodeAt(at)?(a=".",at++):(a=s,yt(I)),a!==s&&(c=xt())!==s?o=a=[a,c]:(at=o,o=s);u!==s?(i=n,r={type:"field",name:u.reduce((function(t,e){return t+e[0]+e[1]}),i)},t=r):(at=t,t=s)}else at=t,t=s;else at=t,t=s;return lt[l]={nextPos:at,result:t},t}())===s&&(t=function(){var t,r,n,u,o=32*at+24,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,":not("===e.substr(at,5)?(r=":not(",at+=5):(r=s,yt(Y)),r!==s&&At()!==s&&(n=mt())!==s&&At()!==s?(41===e.charCodeAt(at)?(u=")",at++):(u=s,yt($)),u!==s?t=r={type:"not",selectors:n}:(at=t,t=s)):(at=t,t=s),lt[o]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u,o=32*at+25,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,":matches("===e.substr(at,9)?(r=":matches(",at+=9):(r=s,yt(Z)),r!==s&&At()!==s&&(n=mt())!==s&&At()!==s?(41===e.charCodeAt(at)?(u=")",at++):(u=s,yt($)),u!==s?t=r={type:"matches",selectors:n}:(at=t,t=s)):(at=t,t=s),lt[o]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u,o=32*at+26,a=lt[o];return a?(at=a.nextPos,a.result):(t=at,":has("===e.substr(at,5)?(r=":has(",at+=5):(r=s,yt(tt)),r!==s&&At()!==s&&(n=function(){var t,r,n,u,o,a,c,i,l=32*at+4,f=lt[l];if(f)return at=f.nextPos,f.result;if(t=at,(r=Pt())!==s){for(n=[],u=at,(o=At())!==s?(44===e.charCodeAt(at)?(a=",",at++):(a=s,yt(d)),a!==s&&(c=At())!==s&&(i=Pt())!==s?u=o=[o,a,c,i]:(at=u,u=s)):(at=u,u=s);u!==s;)n.push(u),u=at,(o=At())!==s?(44===e.charCodeAt(at)?(a=",",at++):(a=s,yt(d)),a!==s&&(c=At())!==s&&(i=Pt())!==s?u=o=[o,a,c,i]:(at=u,u=s)):(at=u,u=s);n!==s?t=r=A(r,n):(at=t,t=s)}else at=t,t=s;return lt[l]={nextPos:at,result:t},t}())!==s&&At()!==s?(41===e.charCodeAt(at)?(u=")",at++):(u=s,yt($)),u!==s?t=r={type:"has",selectors:n}:(at=t,t=s)):(at=t,t=s),lt[o]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n=32*at+27,u=lt[n];return u?(at=u.nextPos,u.result):(":first-child"===e.substr(at,12)?(r=":first-child",at+=12):(r=s,yt(et)),r!==s&&(r=Et(1)),t=r,lt[n]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n=32*at+28,u=lt[n];return u?(at=u.nextPos,u.result):(":last-child"===e.substr(at,11)?(r=":last-child",at+=11):(r=s,yt(rt)),r!==s&&(r=St(1)),t=r,lt[n]={nextPos:at,result:t},t)}())===s&&(t=function(){var t,r,n,u,o,a=32*at+29,c=lt[a];if(c)return at=c.nextPos,c.result;if(t=at,":nth-child("===e.substr(at,11)?(r=":nth-child(",at+=11):(r=s,yt(nt)),r!==s)if(At()!==s){if(n=[],G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H)),u!==s)for(;u!==s;)n.push(u),G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H));else n=s;n!==s&&(u=At())!==s?(41===e.charCodeAt(at)?(o=")",at++):(o=s,yt($)),o!==s?(r=Et(parseInt(n.join(""),10)),t=r):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;else at=t,t=s;return lt[a]={nextPos:at,result:t},t}())===s&&(t=function(){var t,r,n,u,o,a=32*at+30,c=lt[a];if(c)return at=c.nextPos,c.result;if(t=at,":nth-last-child("===e.substr(at,16)?(r=":nth-last-child(",at+=16):(r=s,yt(ut)),r!==s)if(At()!==s){if(n=[],G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H)),u!==s)for(;u!==s;)n.push(u),G.test(e.charAt(at))?(u=e.charAt(at),at++):(u=s,yt(H));else n=s;n!==s&&(u=At())!==s?(41===e.charCodeAt(at)?(o=")",at++):(o=s,yt($)),o!==s?(r=St(parseInt(n.join(""),10)),t=r):(at=t,t=s)):(at=t,t=s)}else at=t,t=s;else at=t,t=s;return lt[a]={nextPos:at,result:t},t}())===s&&(t=function(){var t,r,n,u=32*at+31,o=lt[u];return o?(at=o.nextPos,o.result):(t=at,58===e.charCodeAt(at)?(r=":",at++):(r=s,yt(ot)),r!==s&&(n=xt())!==s?t=r={type:"class",name:n}:(at=t,t=s),lt[u]={nextPos:at,result:t},t)}()),lt[r]={nextPos:at,result:t},t)}function jt(){var t,r,n,u,o,a,c,i,l=32*at+15,f=lt[l];if(f)return at=f.nextPos,f.result;if(t=at,(r=xt())!==s){for(n=[],u=at,46===e.charCodeAt(at)?(o=".",at++):(o=s,yt(I)),o!==s&&(a=xt())!==s?u=o=[o,a]:(at=u,u=s);u!==s;)n.push(u),u=at,46===e.charCodeAt(at)?(o=".",at++):(o=s,yt(I)),o!==s&&(a=xt())!==s?u=o=[o,a]:(at=u,u=s);n!==s?(c=r,i=n,t=r=[].concat.apply([c],i).join("")):(at=t,t=s)}else at=t,t=s;return lt[l]={nextPos:at,result:t},t}function Et(t){return{type:"nth-child",index:{type:"literal",value:t}}}function St(t){return{type:"nth-last-child",index:{type:"literal",value:t}}}if((n=i())!==s&&at===e.length)return n;throw n!==s&&at0&&h(t,e,r))&&f(e[0],e.slice(1),r)};case"descendant":var d=i(r.left),A=i(r.right);return function(t,e,r){if(A(t,e,r))for(var n=0,u=e.length;n":return function(t){return s(t,x)>r.value.value};case">=":return function(t){return s(t,x)>=r.value.value}}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":var P=i(r.left),b=i(r.right);return function(t,e,n){return b(t,e,n)&&p(t,P,e,"LEFT_SIDE",n)||r.left.subject&&P(t,e,n)&&p(t,b,e,"RIGHT_SIDE",n)};case"adjacent":var C=i(r.left),w=i(r.right);return function(t,e,n){return w(t,e,n)&&v(t,C,e,"LEFT_SIDE",n)||r.right.subject&&C(t,e,n)&&v(t,w,e,"RIGHT_SIDE",n)};case"nth-child":var j=r.index.value,E=i(r.right);return function(t,e,r){return E(t,e,r)&&y(t,e,j,r)};case"nth-last-child":var S=-r.index.value,k=i(r.right);return function(t,e,r){return k(t,e,r)&&y(t,e,S,r)};case"class":var I=r.name.toLowerCase();return function(t,e,n){if(n&&n.matchClass)return n.matchClass(r.name,t,e);if(n&&n.nodeTypeKey)return!1;switch(I){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===e.length||"MetaProperty"!==e[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw new Error("Unknown class name: ".concat(r.name))}}throw new Error("Unknown selector type: ".concat(r.type))}function f(e,r){var n=r&&r.nodeTypeKey||"type",u=e[n];return r&&r.visitorKeys&&r.visitorKeys[u]?r.visitorKeys[u]:t.VisitorKeys[u]?t.VisitorKeys[u]:r&&"function"==typeof r.fallback?r.fallback(e):Object.keys(e).filter((function(t){return t!==n}))}function h(t,r){var n=r&&r.nodeTypeKey||"type";return null!==t&&"object"===e(t)&&"string"==typeof t[n]}function p(t,e,n,u,o){var a=r(n,1)[0];if(!a)return!1;for(var s=f(a,o),c=0;c0&&h(i[l-1],o)&&e(i[l-1],n,o))return!0;if("RIGHT_SIDE"===u&&l=0&&i 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found) {\n return found ? \"\\\"\" + literalEscape(found) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n\n function peg$parse(input, options) {\n options = options !== void 0 ? options : {};\n\n var peg$FAILED = {},\n\n peg$startRuleFunctions = { start: peg$parsestart },\n peg$startRuleFunction = peg$parsestart,\n\n peg$c0 = function(ss) {\n return ss.length === 1 ? ss[0] : { type: 'matches', selectors: ss };\n },\n peg$c1 = function() { return void 0; },\n peg$c2 = \" \",\n peg$c3 = peg$literalExpectation(\" \", false),\n peg$c4 = /^[^ [\\],():#!=><~+.]/,\n peg$c5 = peg$classExpectation([\" \", \"[\", \"]\", \",\", \"(\", \")\", \":\", \"#\", \"!\", \"=\", \">\", \"<\", \"~\", \"+\", \".\"], true, false),\n peg$c6 = function(i) { return i.join(''); },\n peg$c7 = \">\",\n peg$c8 = peg$literalExpectation(\">\", false),\n peg$c9 = function() { return 'child'; },\n peg$c10 = \"~\",\n peg$c11 = peg$literalExpectation(\"~\", false),\n peg$c12 = function() { return 'sibling'; },\n peg$c13 = \"+\",\n peg$c14 = peg$literalExpectation(\"+\", false),\n peg$c15 = function() { return 'adjacent'; },\n peg$c16 = function() { return 'descendant'; },\n peg$c17 = \",\",\n peg$c18 = peg$literalExpectation(\",\", false),\n peg$c19 = function(s, ss) {\n return [s].concat(ss.map(function (s) { return s[3]; }));\n },\n peg$c20 = function(op, s) {\n if (!op) return s;\n return { type: op, left: { type: 'exactNode' }, right: s };\n },\n peg$c21 = function(a, ops) {\n return ops.reduce(function (memo, rhs) {\n return { type: rhs[0], left: memo, right: rhs[1] };\n }, a);\n },\n peg$c22 = \"!\",\n peg$c23 = peg$literalExpectation(\"!\", false),\n peg$c24 = function(subject, as) {\n const b = as.length === 1 ? as[0] : { type: 'compound', selectors: as };\n if(subject) b.subject = true;\n return b;\n },\n peg$c25 = \"*\",\n peg$c26 = peg$literalExpectation(\"*\", false),\n peg$c27 = function(a) { return { type: 'wildcard', value: a }; },\n peg$c28 = \"#\",\n peg$c29 = peg$literalExpectation(\"#\", false),\n peg$c30 = function(i) { return { type: 'identifier', value: i }; },\n peg$c31 = \"[\",\n peg$c32 = peg$literalExpectation(\"[\", false),\n peg$c33 = \"]\",\n peg$c34 = peg$literalExpectation(\"]\", false),\n peg$c35 = function(v) { return v; },\n peg$c36 = /^[>\", \"<\", \"!\"], false, false),\n peg$c38 = \"=\",\n peg$c39 = peg$literalExpectation(\"=\", false),\n peg$c40 = function(a) { return (a || '') + '='; },\n peg$c41 = /^[><]/,\n peg$c42 = peg$classExpectation([\">\", \"<\"], false, false),\n peg$c43 = \".\",\n peg$c44 = peg$literalExpectation(\".\", false),\n peg$c45 = function(a, as) {\n return [].concat.apply([a], as).join('');\n },\n peg$c46 = function(name, op, value) {\n return { type: 'attribute', name: name, operator: op, value: value };\n },\n peg$c47 = function(name) { return { type: 'attribute', name: name }; },\n peg$c48 = \"\\\"\",\n peg$c49 = peg$literalExpectation(\"\\\"\", false),\n peg$c50 = /^[^\\\\\"]/,\n peg$c51 = peg$classExpectation([\"\\\\\", \"\\\"\"], true, false),\n peg$c52 = \"\\\\\",\n peg$c53 = peg$literalExpectation(\"\\\\\", false),\n peg$c54 = peg$anyExpectation(),\n peg$c55 = function(a, b) { return a + b; },\n peg$c56 = function(d) {\n return { type: 'literal', value: strUnescape(d.join('')) };\n },\n peg$c57 = \"'\",\n peg$c58 = peg$literalExpectation(\"'\", false),\n peg$c59 = /^[^\\\\']/,\n peg$c60 = peg$classExpectation([\"\\\\\", \"'\"], true, false),\n peg$c61 = /^[0-9]/,\n peg$c62 = peg$classExpectation([[\"0\", \"9\"]], false, false),\n peg$c63 = function(a, b) {\n // Can use `a.flat().join('')` once supported\n const leadingDecimals = a ? [].concat.apply([], a).join('') : '';\n return { type: 'literal', value: parseFloat(leadingDecimals + b.join('')) };\n },\n peg$c64 = function(i) { return { type: 'literal', value: i }; },\n peg$c65 = \"type(\",\n peg$c66 = peg$literalExpectation(\"type(\", false),\n peg$c67 = /^[^ )]/,\n peg$c68 = peg$classExpectation([\" \", \")\"], true, false),\n peg$c69 = \")\",\n peg$c70 = peg$literalExpectation(\")\", false),\n peg$c71 = function(t) { return { type: 'type', value: t.join('') }; },\n peg$c72 = /^[imsu]/,\n peg$c73 = peg$classExpectation([\"i\", \"m\", \"s\", \"u\"], false, false),\n peg$c74 = \"/\",\n peg$c75 = peg$literalExpectation(\"/\", false),\n peg$c76 = /^[^\\/]/,\n peg$c77 = peg$classExpectation([\"/\"], true, false),\n peg$c78 = function(d, flgs) { return {\n type: 'regexp', value: new RegExp(d.join(''), flgs ? flgs.join('') : '') };\n },\n peg$c79 = function(i, is) {\n return { type: 'field', name: is.reduce(function(memo, p){ return memo + p[0] + p[1]; }, i)};\n },\n peg$c80 = \":not(\",\n peg$c81 = peg$literalExpectation(\":not(\", false),\n peg$c82 = function(ss) { return { type: 'not', selectors: ss }; },\n peg$c83 = \":matches(\",\n peg$c84 = peg$literalExpectation(\":matches(\", false),\n peg$c85 = function(ss) { return { type: 'matches', selectors: ss }; },\n peg$c86 = \":has(\",\n peg$c87 = peg$literalExpectation(\":has(\", false),\n peg$c88 = function(ss) { return { type: 'has', selectors: ss }; },\n peg$c89 = \":first-child\",\n peg$c90 = peg$literalExpectation(\":first-child\", false),\n peg$c91 = function() { return nth(1); },\n peg$c92 = \":last-child\",\n peg$c93 = peg$literalExpectation(\":last-child\", false),\n peg$c94 = function() { return nthLast(1); },\n peg$c95 = \":nth-child(\",\n peg$c96 = peg$literalExpectation(\":nth-child(\", false),\n peg$c97 = function(n) { return nth(parseInt(n.join(''), 10)); },\n peg$c98 = \":nth-last-child(\",\n peg$c99 = peg$literalExpectation(\":nth-last-child(\", false),\n peg$c100 = function(n) { return nthLast(parseInt(n.join(''), 10)); },\n peg$c101 = \":\",\n peg$c102 = peg$literalExpectation(\":\", false),\n peg$c103 = function(c) {\n return { type: 'class', name: c };\n },\n\n peg$currPos = 0,\n peg$savedPos = 0,\n peg$posDetailsCache = [{ line: 1, column: 1 }],\n peg$maxFailPos = 0,\n peg$maxFailExpected = [],\n peg$silentFails = 0,\n\n peg$resultsCache = {},\n\n peg$result;\n\n if (\"startRule\" in options) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n\n function text() {\n return input.substring(peg$savedPos, peg$currPos);\n }\n\n function location() {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n\n function expected(description, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildStructuredError(\n [peg$otherExpectation(description)],\n input.substring(peg$savedPos, peg$currPos),\n location\n );\n }\n\n function error(message, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildSimpleError(message, location);\n }\n\n function peg$literalExpectation(text, ignoreCase) {\n return { type: \"literal\", text: text, ignoreCase: ignoreCase };\n }\n\n function peg$classExpectation(parts, inverted, ignoreCase) {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n\n function peg$anyExpectation() {\n return { type: \"any\" };\n }\n\n function peg$endExpectation() {\n return { type: \"end\" };\n }\n\n function peg$otherExpectation(description) {\n return { type: \"other\", description: description };\n }\n\n function peg$computePosDetails(pos) {\n var details = peg$posDetailsCache[pos], p;\n\n if (details) {\n return details;\n } else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n } else {\n details.column++;\n }\n\n p++;\n }\n\n peg$posDetailsCache[pos] = details;\n return details;\n }\n }\n\n function peg$computeLocation(startPos, endPos) {\n var startPosDetails = peg$computePosDetails(startPos),\n endPosDetails = peg$computePosDetails(endPos);\n\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n\n function peg$fail(expected) {\n if (peg$currPos < peg$maxFailPos) { return; }\n\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n\n peg$maxFailExpected.push(expected);\n }\n\n function peg$buildSimpleError(message, location) {\n return new peg$SyntaxError(message, null, null, location);\n }\n\n function peg$buildStructuredError(expected, found, location) {\n return new peg$SyntaxError(\n peg$SyntaxError.buildMessage(expected, found),\n expected,\n found,\n location\n );\n }\n\n function peg$parsestart() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 0,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselectors();\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c1();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parse_() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 1,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifierName() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 2,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = [];\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c6(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsebinaryOp() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 3,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 62) {\n s2 = peg$c7;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c8); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c9();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 126) {\n s2 = peg$c10;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c12();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 43) {\n s2 = peg$c13;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c14); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c15();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c16();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 4,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsehasSelector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 5,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseselector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelector() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 6,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsebinaryOp();\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselector();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c20(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselector() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 7,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsesequence();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsesequence() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 8,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$parseatom();\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$parseatom();\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseatom() {\n var s0;\n\n var key = peg$currPos * 32 + 9,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$parsewildcard();\n if (s0 === peg$FAILED) {\n s0 = peg$parseidentifier();\n if (s0 === peg$FAILED) {\n s0 = peg$parseattr();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefield();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenegation();\n if (s0 === peg$FAILED) {\n s0 = peg$parsematches();\n if (s0 === peg$FAILED) {\n s0 = peg$parsehas();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefirstChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parselastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthLastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parseclass();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsewildcard() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 10,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 42) {\n s1 = peg$c25;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c26); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c27(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifier() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 11,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 35) {\n s1 = peg$c28;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c29); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c30(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattr() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 12,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 91) {\n s1 = peg$c31;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c32); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrValue();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 93) {\n s5 = peg$c33;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c34); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c35(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 13,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (peg$c36.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c37); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n if (peg$c41.test(input.charAt(peg$currPos))) {\n s0 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c42); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrEqOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 14,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrName() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 15,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c45(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrValue() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 16,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrEqOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsetype();\n if (s5 === peg$FAILED) {\n s5 = peg$parseregex();\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsestring();\n if (s5 === peg$FAILED) {\n s5 = peg$parsenumber();\n if (s5 === peg$FAILED) {\n s5 = peg$parsepath();\n }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c47(s1);\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsestring() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 17,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 34) {\n s1 = peg$c48;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 34) {\n s3 = peg$c48;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c57;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s3 = peg$c57;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenumber() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 18,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$currPos;\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 46) {\n s3 = peg$c43;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c63(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsepath() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 19,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c64(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsetype() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 20,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c65) {\n s1 = peg$c65;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c66); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c71(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseflags() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 21,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseregex() {\n var s0, s1, s2, s3, s4;\n\n var key = peg$currPos * 32 + 22,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 47) {\n s1 = peg$c74;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 47) {\n s3 = peg$c74;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parseflags();\n if (s4 === peg$FAILED) {\n s4 = null;\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c78(s2, s4);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefield() {\n var s0, s1, s2, s3, s4, s5, s6;\n\n var key = peg$currPos * 32 + 23,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s1 = peg$c43;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n s3 = [];\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c79(s2, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenegation() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 24,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c80) {\n s1 = peg$c80;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c81); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c82(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsematches() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 25,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 9) === peg$c83) {\n s1 = peg$c83;\n peg$currPos += 9;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c84); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c85(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehas() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 26,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c86) {\n s1 = peg$c86;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c87); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parsehasSelectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c88(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefirstChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 27,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 12) === peg$c89) {\n s1 = peg$c89;\n peg$currPos += 12;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c90); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c91();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parselastChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 28,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c92) {\n s1 = peg$c92;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c93); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c94();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 29,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c95) {\n s1 = peg$c95;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c96); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c97(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthLastChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 30,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 16) === peg$c98) {\n s1 = peg$c98;\n peg$currPos += 16;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c99); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c100(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseclass() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 31,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 58) {\n s1 = peg$c101;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c102); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c103(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n\n function nth(n) { return { type: 'nth-child', index: { type: 'literal', value: n } }; }\n function nthLast(n) { return { type: 'nth-last-child', index: { type: 'literal', value: n } }; }\n function strUnescape(s) {\n return s.replace(/\\\\(.)/g, function(match, ch) {\n switch(ch) {\n case 'b': return '\\b';\n case 'f': return '\\f';\n case 'n': return '\\n';\n case 'r': return '\\r';\n case 't': return '\\t';\n case 'v': return '\\v';\n default: return ch;\n }\n });\n }\n\n\n peg$result = peg$startRuleFunction();\n\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n } else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n\n throw peg$buildStructuredError(\n peg$maxFailExpected,\n peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,\n peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)\n );\n }\n }\n\n return {\n SyntaxError: peg$SyntaxError,\n parse: peg$parse\n };\n});\n","/* vim: set sw=4 sts=4 : */\nimport estraverse from 'estraverse';\nimport parser from './parser.js';\n\n/**\n* @typedef {\"LEFT_SIDE\"|\"RIGHT_SIDE\"} Side\n*/\n\nconst LEFT_SIDE = 'LEFT_SIDE';\nconst RIGHT_SIDE = 'RIGHT_SIDE';\n\n/**\n * @external AST\n * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html\n */\n\n/**\n * One of the rules of `grammar.pegjs`\n * @typedef {PlainObject} SelectorAST\n * @see grammar.pegjs\n*/\n\n/**\n * The `sequence` production of `grammar.pegjs`\n * @typedef {PlainObject} SelectorSequenceAST\n*/\n\n/**\n * Get the value of a property which may be multiple levels down\n * in the object.\n * @param {?PlainObject} obj\n * @param {string[]} keys\n * @returns {undefined|boolean|string|number|external:AST}\n */\nfunction getPath(obj, keys) {\n for (let i = 0; i < keys.length; ++i) {\n if (obj == null) { return obj; }\n obj = obj[keys[i]];\n }\n return obj;\n}\n\n/**\n * Determine whether `node` can be reached by following `path`,\n * starting at `ancestor`.\n * @param {?external:AST} node\n * @param {?external:AST} ancestor\n * @param {string[]} path\n * @param {Integer} fromPathIndex\n * @returns {boolean}\n */\nfunction inPath(node, ancestor, path, fromPathIndex) {\n let current = ancestor;\n for (let i = fromPathIndex; i < path.length; ++i) {\n if (current == null) {\n return false;\n }\n const field = current[path[i]];\n if (Array.isArray(field)) {\n for (let k = 0; k < field.length; ++k) {\n if (inPath(node, field[k], path, i + 1)) {\n return true;\n }\n }\n return false;\n }\n current = field;\n }\n return node === current;\n}\n\n/**\n * A generated matcher function for a selector.\n * @callback SelectorMatcher\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @returns {void}\n*/\n\n/**\n * A WeakMap for holding cached matcher functions for selectors.\n * @type {WeakMap}\n*/\nconst MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap : null;\n\n/**\n * Look up a matcher function for `selector` in the cache.\n * If it does not exist, generate it with `generateMatcher` and add it to the cache.\n * In engines without WeakMap, the caching is skipped and matchers are generated with every call.\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction getMatcher(selector) {\n if (selector == null) {\n return () => true;\n }\n\n if (MATCHER_CACHE != null) {\n let matcher = MATCHER_CACHE.get(selector);\n if (matcher != null) {\n return matcher;\n }\n matcher = generateMatcher(selector);\n MATCHER_CACHE.set(selector, matcher);\n return matcher;\n }\n\n return generateMatcher(selector);\n}\n\n/**\n * Create a matcher function for `selector`,\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction generateMatcher(selector) {\n switch(selector.type) {\n case 'wildcard':\n return () => true;\n\n case 'identifier': {\n const value = selector.value.toLowerCase();\n return (node, ancestry, options) => {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return value === node[nodeTypeKey].toLowerCase();\n };\n }\n\n case 'exactNode':\n return (node, ancestry) => {\n return ancestry.length === 0;\n };\n\n case 'field': {\n const path = selector.name.split('.');\n return (node, ancestry) => {\n const ancestor = ancestry[path.length - 1];\n return inPath(node, ancestor, path, 0);\n };\n }\n\n case 'matches': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return true; }\n }\n return false;\n };\n }\n\n case 'compound': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (!matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'not': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'has': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n let result = false;\n\n const a = [];\n estraverse.traverse(node, {\n enter (node, parent) {\n if (parent != null) { a.unshift(parent); }\n\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, a, options)) {\n result = true;\n this.break();\n return;\n }\n }\n },\n leave () { a.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n\n return result;\n };\n }\n\n case 'child': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (ancestry.length > 0 && right(node, ancestry, options)) {\n return left(ancestry[0], ancestry.slice(1), options);\n }\n return false;\n };\n }\n\n case 'descendant': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (right(node, ancestry, options)) {\n for (let i = 0, l = ancestry.length; i < l; ++i) {\n if (left(ancestry[i], ancestry.slice(i + 1), options)) {\n return true;\n }\n }\n }\n return false;\n };\n }\n\n case 'attribute': {\n const path = selector.name.split('.');\n switch (selector.operator) {\n case void 0:\n return (node) => getPath(node, path) != null;\n case '=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => {\n const p = getPath(node, path);\n return typeof p === 'string' && selector.value.value.test(p);\n };\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal === `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value === typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '!=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => !selector.value.value.test(getPath(node, path));\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal !== `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value !== typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '<=':\n return (node) => getPath(node, path) <= selector.value.value;\n case '<':\n return (node) => getPath(node, path) < selector.value.value;\n case '>':\n return (node) => getPath(node, path) > selector.value.value;\n case '>=':\n return (node) => getPath(node, path) >= selector.value.value;\n }\n throw new Error(`Unknown operator: ${selector.operator}`);\n }\n\n case 'sibling': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n sibling(node, left, ancestry, LEFT_SIDE, options) ||\n selector.left.subject &&\n left(node, ancestry, options) &&\n sibling(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'adjacent': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n adjacent(node, left, ancestry, LEFT_SIDE, options) ||\n selector.right.subject &&\n left(node, ancestry, options) &&\n adjacent(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'nth-child': {\n const nth = selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'nth-last-child': {\n const nth = -selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'class': {\n \n const name = selector.name.toLowerCase();\n\n return (node, ancestry, options) => {\n \n if (options && options.matchClass) {\n return options.matchClass(selector.name, node, ancestry);\n }\n \n if (options && options.nodeTypeKey) return false; \n\n switch(name){\n case 'statement':\n if(node.type.slice(-9) === 'Statement') return true;\n // fallthrough: interface Declaration <: Statement { }\n case 'declaration':\n return node.type.slice(-11) === 'Declaration';\n case 'pattern':\n if(node.type.slice(-7) === 'Pattern') return true;\n // fallthrough: interface Expression <: Node, Pattern { }\n case 'expression':\n return node.type.slice(-10) === 'Expression' ||\n node.type.slice(-7) === 'Literal' ||\n (\n node.type === 'Identifier' &&\n (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty')\n ) ||\n node.type === 'MetaProperty';\n case 'function':\n return node.type === 'FunctionDeclaration' ||\n node.type === 'FunctionExpression' ||\n node.type === 'ArrowFunctionExpression';\n }\n throw new Error(`Unknown class name: ${selector.name}`);\n };\n }\n }\n\n throw new Error(`Unknown selector type: ${selector.type}`);\n}\n\n/**\n * @callback TraverseOptionFallback\n * @param {external:AST} node The given node.\n * @returns {string[]} An array of visitor keys for the given node.\n */\n\n/**\n * @callback ClassMatcher\n * @param {string} className The name of the class to match.\n * @param {external:AST} node The node to match against.\n * @param {Array} ancestry The ancestry of the node.\n * @returns {boolean} True if the node matches the class, false if not.\n */\n\n/**\n * @typedef {object} ESQueryOptions\n * @property {string} [nodeTypeKey=\"type\"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery.\n * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node.\n * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes.\n * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes.\n */\n\n/**\n * Given a `node` and its ancestors, determine if `node` is matched\n * by `selector`.\n * @param {?external:AST} node\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @throws {Error} Unknowns (operator, class name, selector type, or\n * selector value type)\n * @returns {boolean}\n */\nfunction matches(node, selector, ancestry, options) {\n if (!selector) { return true; }\n if (!node) { return false; }\n if (!ancestry) { ancestry = []; }\n\n return getMatcher(selector)(node, ancestry, options);\n}\n\n/**\n * Get visitor keys of a given node.\n * @param {external:AST} node The AST node to get keys.\n * @param {ESQueryOptions|undefined} options\n * @returns {string[]} Visitor keys of the node.\n */\nfunction getVisitorKeys(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n\n const nodeType = node[nodeTypeKey];\n if (options && options.visitorKeys && options.visitorKeys[nodeType]) {\n return options.visitorKeys[nodeType];\n }\n if (estraverse.VisitorKeys[nodeType]) {\n return estraverse.VisitorKeys[nodeType];\n }\n if (options && typeof options.fallback === 'function') {\n return options.fallback(node);\n }\n // 'iteration' fallback\n return Object.keys(node).filter(function (key) {\n return key !== nodeTypeKey;\n });\n}\n\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} node The value to check.\n * @param {ESQueryOptions|undefined} options The options to use.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return node !== null && typeof node === 'object' && typeof node[nodeTypeKey] === 'string';\n}\n\n/**\n * Determines if the given node has a sibling that matches the\n * given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction sibling(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const startIndex = listProp.indexOf(node);\n if (startIndex < 0) { continue; }\n let lowerBound, upperBound;\n if (side === LEFT_SIDE) {\n lowerBound = 0;\n upperBound = startIndex;\n } else {\n lowerBound = startIndex + 1;\n upperBound = listProp.length;\n }\n for (let k = lowerBound; k < upperBound; ++k) {\n if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) {\n return true;\n }\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node has an adjacent sibling that matches\n * the given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction adjacent(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const idx = listProp.indexOf(node);\n if (idx < 0) { continue; }\n if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) {\n return true;\n }\n if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node is the `nth` child.\n * If `nth` is negative then the position is counted\n * from the end of the list of children.\n * @param {external:AST} node\n * @param {external:AST[]} ancestry\n * @param {Integer} nth\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction nthChild(node, ancestry, nth, options) {\n if (nth === 0) { return false; }\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)){\n const idx = nth < 0 ? listProp.length + nth : nth - 1;\n if (idx >= 0 && idx < listProp.length && listProp[idx] === node) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * For each selector node marked as a subject, find the portion of the\n * selector that the subject must match.\n * @param {SelectorAST} selector\n * @param {SelectorAST} [ancestor] Defaults to `selector`\n * @returns {SelectorAST[]}\n */\nfunction subjects(selector, ancestor) {\n if (selector == null || typeof selector != 'object') { return []; }\n if (ancestor == null) { ancestor = selector; }\n const results = selector.subject ? [ancestor] : [];\n const keys = Object.keys(selector);\n for (let i = 0; i < keys.length; ++i) {\n const p = keys[i];\n const sel = selector[p];\n results.push(...subjects(sel, p === 'left' ? sel : ancestor));\n }\n return results;\n}\n\n/**\n* @callback TraverseVisitor\n* @param {?external:AST} node\n* @param {?external:AST} parent\n* @param {external:AST[]} ancestry\n*/\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {TraverseVisitor} visitor\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction traverse(ast, selector, visitor, options) {\n if (!selector) { return; }\n const ancestry = [];\n const matcher = getMatcher(selector);\n const altSubjects = subjects(selector).map(getMatcher);\n estraverse.traverse(ast, {\n enter (node, parent) {\n if (parent != null) { ancestry.unshift(parent); }\n if (matcher(node, ancestry, options)) {\n if (altSubjects.length) {\n for (let i = 0, l = altSubjects.length; i < l; ++i) {\n if (altSubjects[i](node, ancestry, options)) {\n visitor(node, parent, ancestry);\n }\n for (let k = 0, m = ancestry.length; k < m; ++k) {\n const succeedingAncestry = ancestry.slice(k + 1);\n if (altSubjects[i](ancestry[k], succeedingAncestry, options)) {\n visitor(ancestry[k], parent, succeedingAncestry);\n }\n }\n }\n } else {\n visitor(node, parent, ancestry);\n }\n }\n },\n leave () { ancestry.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n}\n\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction match(ast, selector, options) {\n const results = [];\n traverse(ast, selector, function (node) {\n results.push(node);\n }, options);\n return results;\n}\n\n/**\n * Parse a selector string and return its AST.\n * @param {string} selector\n * @returns {SelectorAST}\n */\nfunction parse(selector) {\n return parser.parse(selector);\n}\n\n/**\n * Query the code AST using the selector string.\n * @param {external:AST} ast\n * @param {string} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction query(ast, selector, options) {\n return match(ast, parse(selector), options);\n}\n\nquery.parse = parse;\nquery.match = match;\nquery.traverse = traverse;\nquery.matches = matches;\nquery.query = query;\n\nexport default query;\n"],"names":["module","exports","peg$SyntaxError","message","expected","found","location","this","name","Error","captureStackTrace","child","parent","ctor","constructor","prototype","peg$subclass","buildMessage","DESCRIBE_EXPECTATION_FNS","literal","expectation","literalEscape","text","class","i","escapedParts","parts","length","Array","classEscape","inverted","any","end","other","description","hex","ch","charCodeAt","toString","toUpperCase","s","replace","j","descriptions","type","sort","slice","join","describeExpected","describeFound","SyntaxError","parse","input","options","peg$result","peg$FAILED","peg$startRuleFunctions","start","peg$parsestart","peg$startRuleFunction","peg$c3","peg$literalExpectation","peg$c4","peg$c5","peg$classExpectation","peg$c8","peg$c11","peg$c14","peg$c18","peg$c19","ss","concat","map","peg$c23","peg$c26","peg$c29","peg$c32","peg$c34","peg$c36","peg$c37","peg$c39","peg$c40","a","peg$c41","peg$c42","peg$c44","peg$c46","op","value","operator","peg$c49","peg$c50","peg$c51","peg$c53","peg$c54","peg$c55","b","peg$c56","d","match","peg$c58","peg$c59","peg$c60","peg$c61","peg$c62","peg$c66","peg$c67","peg$c68","peg$c70","peg$c72","peg$c73","peg$c75","peg$c76","peg$c77","peg$c81","peg$c84","peg$c87","peg$c90","peg$c93","peg$c96","peg$c99","peg$c102","peg$currPos","peg$posDetailsCache","line","column","peg$maxFailPos","peg$maxFailExpected","peg$resultsCache","startRule","ignoreCase","peg$computePosDetails","pos","p","details","peg$computeLocation","startPos","endPos","startPosDetails","endPosDetails","offset","peg$fail","push","s0","s1","s2","key","cached","nextPos","result","peg$parse_","peg$parseselectors","selectors","peg$c1","peg$parseidentifierName","test","charAt","peg$parsebinaryOp","s3","s4","s5","s6","s7","peg$parseselector","peg$parsehasSelector","left","right","peg$parsesequence","reduce","memo","rhs","subject","as","peg$parseatom","peg$parsewildcard","peg$parseidentifier","peg$parseattrName","peg$parseattrEqOps","substr","peg$parsetype","flgs","peg$parseflags","RegExp","peg$parseregex","peg$parseattrOps","peg$parsestring","leadingDecimals","apply","parseFloat","peg$parsenumber","peg$parsepath","peg$parseattrValue","peg$parseattr","peg$parsefield","peg$parsenegation","peg$parsematches","peg$parsehasSelectors","peg$parsehas","nth","peg$parsefirstChild","nthLast","peg$parselastChild","parseInt","peg$parsenthChild","peg$parsenthLastChild","peg$parseclass","n","index","factory","getPath","obj","keys","MATCHER_CACHE","WeakMap","getMatcher","selector","matcher","get","generateMatcher","set","toLowerCase","node","ancestry","nodeTypeKey","path","split","inPath","ancestor","fromPathIndex","current","field","isArray","k","matchers","estraverse","traverse","enter","unshift","leave","shift","visitorKeys","fallback","l","sibling","adjacent","nthChild","matchClass","getVisitorKeys","nodeType","VisitorKeys","Object","filter","isNode","_typeof","side","listProp","startIndex","indexOf","lowerBound","upperBound","idx","ast","visitor","altSubjects","subjects","results","sel","m","succeedingAncestry","parser","query","matches"],"mappings":"mnEAQ2CA,EAAOC,UAC9CD,UAEK,WASP,SAASE,EAAgBC,EAASC,EAAUC,EAAOC,GACjDC,KAAKJ,QAAWA,EAChBI,KAAKH,SAAWA,EAChBG,KAAKF,MAAWA,EAChBE,KAAKD,SAAWA,EAChBC,KAAKC,KAAW,cAEuB,mBAA5BC,MAAMC,mBACfD,MAAMC,kBAAkBH,KAAML,GAqmFlC,OAnnFA,SAAsBS,EAAOC,GAC3B,SAASC,IAASN,KAAKO,YAAcH,EACrCE,EAAKE,UAAYH,EAAOG,UACxBJ,EAAMI,UAAY,IAAIF,EAexBG,CAAad,EAAiBO,OAE9BP,EAAgBe,aAAe,SAASb,EAAUC,GAChD,IAAIa,EAA2B,CACzBC,QAAS,SAASC,GAChB,MAAO,IAAOC,EAAcD,EAAYE,MAAQ,KAGlDC,MAAS,SAASH,GAChB,IACII,EADAC,EAAe,GAGnB,IAAKD,EAAI,EAAGA,EAAIJ,EAAYM,MAAMC,OAAQH,IACxCC,GAAgBL,EAAYM,MAAMF,aAAcI,MAC5CC,EAAYT,EAAYM,MAAMF,GAAG,IAAM,IAAMK,EAAYT,EAAYM,MAAMF,GAAG,IAC9EK,EAAYT,EAAYM,MAAMF,IAGpC,MAAO,KAAOJ,EAAYU,SAAW,IAAM,IAAML,EAAe,KAGlEM,IAAK,SAASX,GACZ,MAAO,iBAGTY,IAAK,SAASZ,GACZ,MAAO,gBAGTa,MAAO,SAASb,GACd,OAAOA,EAAYc,cAI3B,SAASC,EAAIC,GACX,OAAOA,EAAGC,WAAW,GAAGC,SAAS,IAAIC,cAGvC,SAASlB,EAAcmB,GACrB,OAAOA,EACJC,QAAQ,MAAO,QACfA,QAAQ,KAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,gBAAyB,SAASL,GAAM,MAAO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AAI,EAAG0N,EAAIqB,EAAY5O,OAAQH,EAAI0N,IAAK1N,EAAG,CAC5C+O,EAAY/O,GAAGqM,EAAMC,EAAUzK,IAC/BiN,EAAQzC,EAAMjN,EAAQkN,GAE1B,IAAK,IAAIU,EAAI,EAAGmC,EAAI7C,EAASnM,OAAQ6M,EAAImC,IAAKnC,EAAG,CAC7C,IAAMoC,EAAqB9C,EAAShL,MAAM0L,EAAI,GAC1C+B,EAAY/O,GAAGsM,EAASU,GAAIoC,EAAoBvN,IAChDiN,EAAQxC,EAASU,GAAI5N,EAAQgQ,SAKzCN,EAAQzC,EAAMjN,EAAQkN,IAIlCgB,iBAAWhB,EAASiB,SACpB5B,KAAM9J,GAAWA,EAAQ2L,YACzBC,SAAU5L,GAAWA,EAAQ4L,UAAY,eAajD,SAAS9I,EAAMkK,EAAK9C,EAAUlK,GAC1B,IAAMoN,EAAU,GAIhB,OAHA9B,EAAS0B,EAAK9C,GAAU,SAAUM,GAC9B4C,EAAQ3H,KAAK+E,KACdxK,GACIoN,EAQX,SAAStN,EAAMoK,GACX,OAAOsD,EAAO1N,MAAMoK,GAUxB,SAASuD,EAAMT,EAAK9C,EAAUlK,GAC1B,OAAO8C,EAAMkK,EAAKlN,EAAMoK,GAAWlK,UAGvCyN,EAAM3N,MAAQA,EACd2N,EAAM3K,MAAQA,EACd2K,EAAMnC,SAAWA,EACjBmC,EAAMC,QAvPN,SAAiBlD,EAAMN,EAAUO,EAAUzK,GACvC,OAAKkK,KACAM,IACAC,IAAYA,EAAW,IAErBR,EAAWC,EAAXD,CAAqBO,EAAMC,EAAUzK,KAmPhDyN,EAAMA,MAAQA"} \ No newline at end of file diff --git a/graphql/node_modules/esquery/dist/esquery.min.js b/graphql/node_modules/esquery/dist/esquery.min.js deleted file mode 100644 index 6ec6c9b9..00000000 --- a/graphql/node_modules/esquery/dist/esquery.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).esquery=t()}(this,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--r)if(e[r].node===t)return!0;return!1}function d(e,t){return(new f).traverse(e,t)}function m(e,t){var r;return r=function(e,t){var r,n,o,a;for(n=e.length,o=0;n;)t(e[a=o+(r=n>>>1)])?n=r:(o=a+1,n-=r+1);return o}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},o={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:s={}},l.prototype.replace=function(e){this.parent[this.key]=e},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var e,t,r,n,o;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(v=s[f=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]&&!y(n,v[m])){if(h(u,x[d]))o=new c(v[m],[f,m],"Property",null);else{if(!p(v[m]))continue;o=new c(v[m],[f,m],null,null)}r.push(o)}}else if(p(v)){if(y(n,v))continue;r.push(new c(v,f,null,null))}}}else if(o=n.pop(),l=this.__execute(t.leave,o),this.__state===a||l===a)return},f.prototype.replace=function(e,t){var r,n,o,u,f,y,d,m,x,v,g,A,E;function b(e){var t,n,o,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((o=r[t]).ref&&o.ref.parent===a){if(o.ref.key=0;)if(v=o[E=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]){if(h(u,x[d]))y=new c(v[m],[E,m],"Property",new l(v,m));else{if(!p(v[m]))continue;y=new c(v[m],[E,m],null,new l(v,m))}r.push(y)}}else p(v)&&r.push(new c(v,E,null,new l(o,E)))}}else if(y=n.pop(),void 0!==(f=this.__execute(t.leave,y))&&f!==a&&f!==i&&f!==s&&y.ref.replace(f),this.__state!==s&&f!==s||b(y),this.__state===a||f===a)return A.root;return A.root},t.Syntax=r,t.traverse=d,t.replace=function(e,t){return(new f).replace(e,t)},t.attachComments=function(e,t,r){var o,a,i,s,l=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;ie.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?n.Break:l[s].extendedRange[0]>e.range[1]?n.Skip:void 0}}),s=0,d(e,{leave:function(e){for(var t;se.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=o,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t}(t)})),s=a((function(e){e.exports&&(e.exports=function(){function e(t,r,n,o){this.message=t,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(t=1,n=1;t<~+.]/,p=pe([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=fe(">",!1),y=fe("~",!1),d=fe("+",!1),m=fe(",",!1),x=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=fe("!",!1),g=fe("*",!1),A=fe("#",!1),E=fe("[",!1),b=fe("]",!1),S=/^[>","<","!"],!1,!1),C=fe("=",!1),w=function(e){return(e||"")+"="},P=/^[><]/,k=pe([">","<"],!1,!1),D=fe(".",!1),I=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},j=fe('"',!1),T=/^[^\\"]/,F=pe(["\\",'"'],!0,!1),R=fe("\\",!1),O={type:"any"},L=function(e,t){return e+t},M=function(e){return{type:"literal",value:(t=e.join(""),t.replace(/\\(.)/g,(function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return t}})))};var t},B=fe("'",!1),U=/^[^\\']/,K=pe(["\\","'"],!0,!1),N=/^[0-9]/,W=pe([["0","9"]],!1,!1),q=fe("type(",!1),V=/^[^ )]/,G=pe([" ",")"],!0,!1),z=fe(")",!1),H=/^[imsu]/,Y=pe(["i","m","s","u"],!1,!1),$=fe("/",!1),J=/^[^\/]/,Q=pe(["/"],!0,!1),X=fe(":not(",!1),Z=fe(":matches(",!1),ee=fe(":has(",!1),te=fe(":first-child",!1),re=fe(":last-child",!1),ne=fe(":nth-child(",!1),oe=fe(":nth-last-child(",!1),ae=fe(":",!1),ie=0,se=[{line:1,column:1}],ue=0,le=[],ce={};if("startRule"in r){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function fe(e,t){return{type:"literal",text:e,ignoreCase:t}}function pe(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function he(e){var r,n=se[e];if(n)return n;for(r=e-1;!se[r];)r--;for(n={line:(n=se[r]).line,column:n.column};rue&&(ue=ie,le=[]),le.push(e))}function me(){var e,t,r,n,o=32*ie+0,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,(t=xe())!==s&&(r=Ae())!==s&&xe()!==s?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(ie=e,e=s),e===s&&(e=ie,(t=xe())!==s&&(t=void 0),e=t),ce[o]={nextPos:ie,result:e},e)}function xe(){var e,r,n=32*ie+1,o=ce[n];if(o)return ie=o.nextPos,o.result;for(e=[],32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c));r!==s;)e.push(r),32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c));return ce[n]={nextPos:ie,result:e},e}function ve(){var e,r,n,o=32*ie+2,a=ce[o];if(a)return ie=a.nextPos,a.result;if(r=[],f.test(t.charAt(ie))?(n=t.charAt(ie),ie++):(n=s,de(p)),n!==s)for(;n!==s;)r.push(n),f.test(t.charAt(ie))?(n=t.charAt(ie),ie++):(n=s,de(p));else r=s;return r!==s&&(r=r.join("")),e=r,ce[o]={nextPos:ie,result:e},e}function ge(){var e,r,n,o=32*ie+3,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,(r=xe())!==s?(62===t.charCodeAt(ie)?(n=">",ie++):(n=s,de(h)),n!==s&&xe()!==s?e=r="child":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=xe())!==s?(126===t.charCodeAt(ie)?(n="~",ie++):(n=s,de(y)),n!==s&&xe()!==s?e=r="sibling":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=xe())!==s?(43===t.charCodeAt(ie)?(n="+",ie++):(n=s,de(d)),n!==s&&xe()!==s?e=r="adjacent":(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,32===t.charCodeAt(ie)?(r=" ",ie++):(r=s,de(c)),r!==s&&(n=xe())!==s?e=r="descendant":(ie=e,e=s)))),ce[o]={nextPos:ie,result:e},e)}function Ae(){var e,r,n,o,a,i,u,l,c=32*ie+5,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=be())!==s){for(n=[],o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=be())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);o!==s;)n.push(o),o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=be())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);n!==s?e=r=x(r,n):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}function Ee(){var e,t,r,n,o,a=32*ie+6,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,(t=ge())===s&&(t=null),t!==s&&(r=be())!==s?(o=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:o}:o):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}function be(){var e,t,r,n,o,a,i,u=32*ie+7,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,(t=Se())!==s){for(r=[],n=ie,(o=ge())!==s&&(a=Se())!==s?n=o=[o,a]:(ie=n,n=s);n!==s;)r.push(n),n=ie,(o=ge())!==s&&(a=Se())!==s?n=o=[o,a]:(ie=n,n=s);r!==s?(i=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),i)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}function Se(){var e,r,n,o,a,i,u,l=32*ie+8,c=ce[l];if(c)return ie=c.nextPos,c.result;if(e=ie,33===t.charCodeAt(ie)?(r="!",ie++):(r=s,de(v)),r===s&&(r=null),r!==s){if(n=[],(o=_e())!==s)for(;o!==s;)n.push(o),o=_e();else n=s;n!==s?(a=r,u=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(u.subject=!0),e=r=u):(ie=e,e=s)}else ie=e,e=s;return ce[l]={nextPos:ie,result:e},e}function _e(){var e,r=32*ie+9,n=ce[r];return n?(ie=n.nextPos,n.result):((e=function(){var e,r,n=32*ie+10,o=ce[n];return o?(ie=o.nextPos,o.result):(42===t.charCodeAt(ie)?(r="*",ie++):(r=s,de(g)),r!==s&&(r={type:"wildcard",value:r}),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o=32*ie+11,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,35===t.charCodeAt(ie)?(r="#",ie++):(r=s,de(A)),r===s&&(r=null),r!==s&&(n=ve())!==s?e=r={type:"identifier",value:n}:(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+12,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,91===t.charCodeAt(ie)?(r="[",ie++):(r=s,de(E)),r!==s&&xe()!==s&&(n=function(){var e,r,n,o,a=32*ie+16,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,(r=Ce())!==s&&xe()!==s&&(n=function(){var e,r,n,o=32*ie+14,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,33===t.charCodeAt(ie)?(r="!",ie++):(r=s,de(v)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ie)?(n="=",ie++):(n=s,de(C)),n!==s?(r=w(r),e=r):(ie=e,e=s)):(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?((o=function(){var e,r,n,o,a,i=32*ie+20,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,"type("===t.substr(ie,5)?(r="type(",ie+=5):(r=s,de(q)),r!==s)if(xe()!==s){if(n=[],V.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(G)),o!==s)for(;o!==s;)n.push(o),V.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(G));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r={type:"type",value:n.join("")},e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u=32*ie+22,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,47===t.charCodeAt(ie)?(r="/",ie++):(r=s,de($)),r!==s){if(n=[],J.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(Q)),o!==s)for(;o!==s;)n.push(o),J.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(Q));else n=s;n!==s?(47===t.charCodeAt(ie)?(o="/",ie++):(o=s,de($)),o!==s?((a=function(){var e,r,n=32*ie+21,o=ce[n];if(o)return ie=o.nextPos,o.result;if(e=[],H.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(Y)),r!==s)for(;r!==s;)e.push(r),H.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(Y));else e=s;return ce[n]={nextPos:ie,result:e},e}())===s&&(a=null),a!==s?(i=a,r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")},e=r):(ie=e,e=s)):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}()),o!==s?(r=I(r,n,o),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=Ce())!==s&&xe()!==s&&(n=function(){var e,r,n,o=32*ie+13,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,S.test(t.charAt(ie))?(r=t.charAt(ie),ie++):(r=s,de(_)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ie)?(n="=",ie++):(n=s,de(C)),n!==s?(r=w(r),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(P.test(t.charAt(ie))?(e=t.charAt(ie),ie++):(e=s,de(k))),ce[o]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?((o=function(){var e,r,n,o,a,i,u=32*ie+17,l=ce[u];if(l)return ie=l.nextPos,l.result;if(e=ie,34===t.charCodeAt(ie)?(r='"',ie++):(r=s,de(j)),r!==s){for(n=[],T.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(F)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));o!==s;)n.push(o),T.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(F)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));n!==s?(34===t.charCodeAt(ie)?(o='"',ie++):(o=s,de(j)),o!==s?(r=M(n),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;if(e===s)if(e=ie,39===t.charCodeAt(ie)?(r="'",ie++):(r=s,de(B)),r!==s){for(n=[],U.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(K)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));o!==s;)n.push(o),U.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(K)),o===s&&(o=ie,92===t.charCodeAt(ie)?(a="\\",ie++):(a=s,de(R)),a!==s?(t.length>ie?(i=t.charAt(ie),ie++):(i=s,de(O)),i!==s?(a=L(a,i),o=a):(ie=o,o=s)):(ie=o,o=s));n!==s?(39===t.charCodeAt(ie)?(o="'",ie++):(o=s,de(B)),o!==s?(r=M(n),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;return ce[u]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u,l=32*ie+18,c=ce[l];if(c)return ie=c.nextPos,c.result;for(e=ie,r=ie,n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));if(n!==s?(46===t.charCodeAt(ie)?(o=".",ie++):(o=s,de(D)),o!==s?r=n=[n,o]:(ie=r,r=s)):(ie=r,r=s),r===s&&(r=null),r!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s?(i=n,u=(a=r)?[].concat.apply([],a).join(""):"",r={type:"literal",value:parseFloat(u+i.join(""))},e=r):(ie=e,e=s)}else ie=e,e=s;return ce[l]={nextPos:ie,result:e},e}())===s&&(o=function(){var e,t,r=32*ie+19,n=ce[r];return n?(ie=n.nextPos,n.result):((t=ve())!==s&&(t={type:"literal",value:t}),e=t,ce[r]={nextPos:ie,result:e},e)}()),o!==s?(r=I(r,n,o),e=r):(ie=e,e=s)):(ie=e,e=s),e===s&&(e=ie,(r=Ce())!==s&&(r={type:"attribute",name:r}),e=r)),ce[a]={nextPos:ie,result:e},e)}())!==s&&xe()!==s?(93===t.charCodeAt(ie)?(o="]",ie++):(o=s,de(b)),o!==s?e=r=n:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i,u,l,c=32*ie+23,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,46===t.charCodeAt(ie)?(r=".",ie++):(r=s,de(D)),r!==s)if((n=ve())!==s){for(o=[],a=ie,46===t.charCodeAt(ie)?(i=".",ie++):(i=s,de(D)),i!==s&&(u=ve())!==s?a=i=[i,u]:(ie=a,a=s);a!==s;)o.push(a),a=ie,46===t.charCodeAt(ie)?(i=".",ie++):(i=s,de(D)),i!==s&&(u=ve())!==s?a=i=[i,u]:(ie=a,a=s);o!==s?(l=n,r={type:"field",name:o.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=r):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o,a=32*ie+24,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":not("===t.substr(ie,5)?(r=":not(",ie+=5):(r=s,de(X)),r!==s&&xe()!==s&&(n=Ae())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"not",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+25,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":matches("===t.substr(ie,9)?(r=":matches(",ie+=9):(r=s,de(Z)),r!==s&&xe()!==s&&(n=Ae())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"matches",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=32*ie+26,i=ce[a];return i?(ie=i.nextPos,i.result):(e=ie,":has("===t.substr(ie,5)?(r=":has(",ie+=5):(r=s,de(ee)),r!==s&&xe()!==s&&(n=function(){var e,r,n,o,a,i,u,l,c=32*ie+4,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=Ee())!==s){for(n=[],o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=Ee())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);o!==s;)n.push(o),o=ie,(a=xe())!==s?(44===t.charCodeAt(ie)?(i=",",ie++):(i=s,de(m)),i!==s&&(u=xe())!==s&&(l=Ee())!==s?o=a=[a,i,u,l]:(ie=o,o=s)):(ie=o,o=s);n!==s?e=r=x(r,n):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}())!==s&&xe()!==s?(41===t.charCodeAt(ie)?(o=")",ie++):(o=s,de(z)),o!==s?e=r={type:"has",selectors:n}:(ie=e,e=s)):(ie=e,e=s),ce[a]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n=32*ie+27,o=ce[n];return o?(ie=o.nextPos,o.result):(":first-child"===t.substr(ie,12)?(r=":first-child",ie+=12):(r=s,de(te)),r!==s&&(r=we(1)),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n=32*ie+28,o=ce[n];return o?(ie=o.nextPos,o.result):(":last-child"===t.substr(ie,11)?(r=":last-child",ie+=11):(r=s,de(re)),r!==s&&(r=Pe(1)),e=r,ce[n]={nextPos:ie,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i=32*ie+29,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,":nth-child("===t.substr(ie,11)?(r=":nth-child(",ie+=11):(r=s,de(ne)),r!==s)if(xe()!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r=we(parseInt(n.join(""),10)),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o,a,i=32*ie+30,u=ce[i];if(u)return ie=u.nextPos,u.result;if(e=ie,":nth-last-child("===t.substr(ie,16)?(r=":nth-last-child(",ie+=16):(r=s,de(oe)),r!==s)if(xe()!==s){if(n=[],N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ie))?(o=t.charAt(ie),ie++):(o=s,de(W));else n=s;n!==s&&(o=xe())!==s?(41===t.charCodeAt(ie)?(a=")",ie++):(a=s,de(z)),a!==s?(r=Pe(parseInt(n.join(""),10)),e=r):(ie=e,e=s)):(ie=e,e=s)}else ie=e,e=s;else ie=e,e=s;return ce[i]={nextPos:ie,result:e},e}())===s&&(e=function(){var e,r,n,o=32*ie+31,a=ce[o];return a?(ie=a.nextPos,a.result):(e=ie,58===t.charCodeAt(ie)?(r=":",ie++):(r=s,de(ae)),r!==s&&(n=ve())!==s?e=r={type:"class",name:n}:(ie=e,e=s),ce[o]={nextPos:ie,result:e},e)}()),ce[r]={nextPos:ie,result:e},e)}function Ce(){var e,r,n,o,a,i,u,l,c=32*ie+15,f=ce[c];if(f)return ie=f.nextPos,f.result;if(e=ie,(r=ve())!==s){for(n=[],o=ie,46===t.charCodeAt(ie)?(a=".",ie++):(a=s,de(D)),a!==s&&(i=ve())!==s?o=a=[a,i]:(ie=o,o=s);o!==s;)n.push(o),o=ie,46===t.charCodeAt(ie)?(a=".",ie++):(a=s,de(D)),a!==s&&(i=ve())!==s?o=a=[a,i]:(ie=o,o=s);n!==s?(u=r,l=n,e=r=[].concat.apply([u],l).join("")):(ie=e,e=s)}else ie=e,e=s;return ce[c]={nextPos:ie,result:e},e}function we(e){return{type:"nth-child",index:{type:"literal",value:e}}}function Pe(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((n=l())!==s&&ie===t.length)return n;throw n!==s&&ie0&&p(e,t,r))&&f(t[0],t.slice(1),r)};case"descendant":var h=c(t.left),x=c(t.right);return function(e,t,r){if(x(e,t,r))for(var n=0,o=t.length;n":return function(e){return u(e,v)>t.value.value};case">=":return function(e){return u(e,v)>=t.value.value}}throw new Error("Unknown operator: ".concat(t.operator));case"sibling":var E=c(t.left),b=c(t.right);return function(e,r,n){return b(e,r,n)&&y(e,E,r,"LEFT_SIDE",n)||t.left.subject&&E(e,r,n)&&y(e,b,r,"RIGHT_SIDE",n)};case"adjacent":var S=c(t.left),_=c(t.right);return function(e,r,n){return _(e,r,n)&&d(e,S,r,"LEFT_SIDE",n)||t.right.subject&&S(e,r,n)&&d(e,_,r,"RIGHT_SIDE",n)};case"nth-child":var C=t.index.value,w=c(t.right);return function(e,t,r){return w(e,t,r)&&m(e,t,C,r)};case"nth-last-child":var P=-t.index.value,k=c(t.right);return function(e,t,r){return k(e,t,r)&&m(e,t,P,r)};case"class":var D=t.name.toLowerCase();return function(e,r,n){if(n&&n.matchClass)return n.matchClass(t.name,e,r);if(n&&n.nodeTypeKey)return!1;switch(D){case"statement":if("Statement"===e.type.slice(-9))return!0;case"declaration":return"Declaration"===e.type.slice(-11);case"pattern":if("Pattern"===e.type.slice(-7))return!0;case"expression":return"Expression"===e.type.slice(-10)||"Literal"===e.type.slice(-7)||"Identifier"===e.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===e.type;case"function":return"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}throw new Error("Unknown class name: ".concat(t.name))}}throw new Error("Unknown selector type: ".concat(t.type))}function p(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:i.VisitorKeys[n]?i.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return e!==r}))}function h(t,r){var n=r&&r.nodeTypeKey||"type";return null!==t&&"object"===e(t)&&"string"==typeof t[n]}function y(e,r,n,o,a){var i=t(n,1)[0];if(!i)return!1;for(var s=p(i,a),u=0;u0&&h(l[c-1],a)&&r(l[c-1],n,a))return!0;if("RIGHT_SIDE"===o&&c=0&&l\n Copyright (C) 2012 Ariya Hidayat \n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n/*jslint vars:false, bitwise:true*/\n/*jshint indent:4*/\n/*global exports:true*/\n(function clone(exports) {\n 'use strict';\n\n var Syntax,\n VisitorOption,\n VisitorKeys,\n BREAK,\n SKIP,\n REMOVE;\n\n function deepCopy(obj) {\n var ret = {}, key, val;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) {\n val = obj[key];\n if (typeof val === 'object' && val !== null) {\n ret[key] = deepCopy(val);\n } else {\n ret[key] = val;\n }\n }\n }\n return ret;\n }\n\n // based on LLVM libc++ upper_bound / lower_bound\n // MIT License\n\n function upperBound(array, func) {\n var diff, len, i, current;\n\n len = array.length;\n i = 0;\n\n while (len) {\n diff = len >>> 1;\n current = i + diff;\n if (func(array[current])) {\n len = diff;\n } else {\n i = current + 1;\n len -= diff + 1;\n }\n }\n return i;\n }\n\n Syntax = {\n AssignmentExpression: 'AssignmentExpression',\n AssignmentPattern: 'AssignmentPattern',\n ArrayExpression: 'ArrayExpression',\n ArrayPattern: 'ArrayPattern',\n ArrowFunctionExpression: 'ArrowFunctionExpression',\n AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7.\n BlockStatement: 'BlockStatement',\n BinaryExpression: 'BinaryExpression',\n BreakStatement: 'BreakStatement',\n CallExpression: 'CallExpression',\n CatchClause: 'CatchClause',\n ChainExpression: 'ChainExpression',\n ClassBody: 'ClassBody',\n ClassDeclaration: 'ClassDeclaration',\n ClassExpression: 'ClassExpression',\n ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7.\n ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7.\n ConditionalExpression: 'ConditionalExpression',\n ContinueStatement: 'ContinueStatement',\n DebuggerStatement: 'DebuggerStatement',\n DirectiveStatement: 'DirectiveStatement',\n DoWhileStatement: 'DoWhileStatement',\n EmptyStatement: 'EmptyStatement',\n ExportAllDeclaration: 'ExportAllDeclaration',\n ExportDefaultDeclaration: 'ExportDefaultDeclaration',\n ExportNamedDeclaration: 'ExportNamedDeclaration',\n ExportSpecifier: 'ExportSpecifier',\n ExpressionStatement: 'ExpressionStatement',\n ForStatement: 'ForStatement',\n ForInStatement: 'ForInStatement',\n ForOfStatement: 'ForOfStatement',\n FunctionDeclaration: 'FunctionDeclaration',\n FunctionExpression: 'FunctionExpression',\n GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7.\n Identifier: 'Identifier',\n IfStatement: 'IfStatement',\n ImportExpression: 'ImportExpression',\n ImportDeclaration: 'ImportDeclaration',\n ImportDefaultSpecifier: 'ImportDefaultSpecifier',\n ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',\n ImportSpecifier: 'ImportSpecifier',\n Literal: 'Literal',\n LabeledStatement: 'LabeledStatement',\n LogicalExpression: 'LogicalExpression',\n MemberExpression: 'MemberExpression',\n MetaProperty: 'MetaProperty',\n MethodDefinition: 'MethodDefinition',\n ModuleSpecifier: 'ModuleSpecifier',\n NewExpression: 'NewExpression',\n ObjectExpression: 'ObjectExpression',\n ObjectPattern: 'ObjectPattern',\n PrivateIdentifier: 'PrivateIdentifier',\n Program: 'Program',\n Property: 'Property',\n PropertyDefinition: 'PropertyDefinition',\n RestElement: 'RestElement',\n ReturnStatement: 'ReturnStatement',\n SequenceExpression: 'SequenceExpression',\n SpreadElement: 'SpreadElement',\n Super: 'Super',\n SwitchStatement: 'SwitchStatement',\n SwitchCase: 'SwitchCase',\n TaggedTemplateExpression: 'TaggedTemplateExpression',\n TemplateElement: 'TemplateElement',\n TemplateLiteral: 'TemplateLiteral',\n ThisExpression: 'ThisExpression',\n ThrowStatement: 'ThrowStatement',\n TryStatement: 'TryStatement',\n UnaryExpression: 'UnaryExpression',\n UpdateExpression: 'UpdateExpression',\n VariableDeclaration: 'VariableDeclaration',\n VariableDeclarator: 'VariableDeclarator',\n WhileStatement: 'WhileStatement',\n WithStatement: 'WithStatement',\n YieldExpression: 'YieldExpression'\n };\n\n VisitorKeys = {\n AssignmentExpression: ['left', 'right'],\n AssignmentPattern: ['left', 'right'],\n ArrayExpression: ['elements'],\n ArrayPattern: ['elements'],\n ArrowFunctionExpression: ['params', 'body'],\n AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7.\n BlockStatement: ['body'],\n BinaryExpression: ['left', 'right'],\n BreakStatement: ['label'],\n CallExpression: ['callee', 'arguments'],\n CatchClause: ['param', 'body'],\n ChainExpression: ['expression'],\n ClassBody: ['body'],\n ClassDeclaration: ['id', 'superClass', 'body'],\n ClassExpression: ['id', 'superClass', 'body'],\n ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7.\n ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7.\n ConditionalExpression: ['test', 'consequent', 'alternate'],\n ContinueStatement: ['label'],\n DebuggerStatement: [],\n DirectiveStatement: [],\n DoWhileStatement: ['body', 'test'],\n EmptyStatement: [],\n ExportAllDeclaration: ['source'],\n ExportDefaultDeclaration: ['declaration'],\n ExportNamedDeclaration: ['declaration', 'specifiers', 'source'],\n ExportSpecifier: ['exported', 'local'],\n ExpressionStatement: ['expression'],\n ForStatement: ['init', 'test', 'update', 'body'],\n ForInStatement: ['left', 'right', 'body'],\n ForOfStatement: ['left', 'right', 'body'],\n FunctionDeclaration: ['id', 'params', 'body'],\n FunctionExpression: ['id', 'params', 'body'],\n GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7.\n Identifier: [],\n IfStatement: ['test', 'consequent', 'alternate'],\n ImportExpression: ['source'],\n ImportDeclaration: ['specifiers', 'source'],\n ImportDefaultSpecifier: ['local'],\n ImportNamespaceSpecifier: ['local'],\n ImportSpecifier: ['imported', 'local'],\n Literal: [],\n LabeledStatement: ['label', 'body'],\n LogicalExpression: ['left', 'right'],\n MemberExpression: ['object', 'property'],\n MetaProperty: ['meta', 'property'],\n MethodDefinition: ['key', 'value'],\n ModuleSpecifier: [],\n NewExpression: ['callee', 'arguments'],\n ObjectExpression: ['properties'],\n ObjectPattern: ['properties'],\n PrivateIdentifier: [],\n Program: ['body'],\n Property: ['key', 'value'],\n PropertyDefinition: ['key', 'value'],\n RestElement: [ 'argument' ],\n ReturnStatement: ['argument'],\n SequenceExpression: ['expressions'],\n SpreadElement: ['argument'],\n Super: [],\n SwitchStatement: ['discriminant', 'cases'],\n SwitchCase: ['test', 'consequent'],\n TaggedTemplateExpression: ['tag', 'quasi'],\n TemplateElement: [],\n TemplateLiteral: ['quasis', 'expressions'],\n ThisExpression: [],\n ThrowStatement: ['argument'],\n TryStatement: ['block', 'handler', 'finalizer'],\n UnaryExpression: ['argument'],\n UpdateExpression: ['argument'],\n VariableDeclaration: ['declarations'],\n VariableDeclarator: ['id', 'init'],\n WhileStatement: ['test', 'body'],\n WithStatement: ['object', 'body'],\n YieldExpression: ['argument']\n };\n\n // unique id\n BREAK = {};\n SKIP = {};\n REMOVE = {};\n\n VisitorOption = {\n Break: BREAK,\n Skip: SKIP,\n Remove: REMOVE\n };\n\n function Reference(parent, key) {\n this.parent = parent;\n this.key = key;\n }\n\n Reference.prototype.replace = function replace(node) {\n this.parent[this.key] = node;\n };\n\n Reference.prototype.remove = function remove() {\n if (Array.isArray(this.parent)) {\n this.parent.splice(this.key, 1);\n return true;\n } else {\n this.replace(null);\n return false;\n }\n };\n\n function Element(node, path, wrap, ref) {\n this.node = node;\n this.path = path;\n this.wrap = wrap;\n this.ref = ref;\n }\n\n function Controller() { }\n\n // API:\n // return property path array from root to current node\n Controller.prototype.path = function path() {\n var i, iz, j, jz, result, element;\n\n function addToPath(result, path) {\n if (Array.isArray(path)) {\n for (j = 0, jz = path.length; j < jz; ++j) {\n result.push(path[j]);\n }\n } else {\n result.push(path);\n }\n }\n\n // root node\n if (!this.__current.path) {\n return null;\n }\n\n // first node is sentinel, second node is root element\n result = [];\n for (i = 2, iz = this.__leavelist.length; i < iz; ++i) {\n element = this.__leavelist[i];\n addToPath(result, element.path);\n }\n addToPath(result, this.__current.path);\n return result;\n };\n\n // API:\n // return type of current node\n Controller.prototype.type = function () {\n var node = this.current();\n return node.type || this.__current.wrap;\n };\n\n // API:\n // return array of parent elements\n Controller.prototype.parents = function parents() {\n var i, iz, result;\n\n // first node is sentinel\n result = [];\n for (i = 1, iz = this.__leavelist.length; i < iz; ++i) {\n result.push(this.__leavelist[i].node);\n }\n\n return result;\n };\n\n // API:\n // return current node\n Controller.prototype.current = function current() {\n return this.__current.node;\n };\n\n Controller.prototype.__execute = function __execute(callback, element) {\n var previous, result;\n\n result = undefined;\n\n previous = this.__current;\n this.__current = element;\n this.__state = null;\n if (callback) {\n result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node);\n }\n this.__current = previous;\n\n return result;\n };\n\n // API:\n // notify control skip / break\n Controller.prototype.notify = function notify(flag) {\n this.__state = flag;\n };\n\n // API:\n // skip child nodes of current node\n Controller.prototype.skip = function () {\n this.notify(SKIP);\n };\n\n // API:\n // break traversals\n Controller.prototype['break'] = function () {\n this.notify(BREAK);\n };\n\n // API:\n // remove node\n Controller.prototype.remove = function () {\n this.notify(REMOVE);\n };\n\n Controller.prototype.__initialize = function(root, visitor) {\n this.visitor = visitor;\n this.root = root;\n this.__worklist = [];\n this.__leavelist = [];\n this.__current = null;\n this.__state = null;\n this.__fallback = null;\n if (visitor.fallback === 'iteration') {\n this.__fallback = Object.keys;\n } else if (typeof visitor.fallback === 'function') {\n this.__fallback = visitor.fallback;\n }\n\n this.__keys = VisitorKeys;\n if (visitor.keys) {\n this.__keys = Object.assign(Object.create(this.__keys), visitor.keys);\n }\n };\n\n function isNode(node) {\n if (node == null) {\n return false;\n }\n return typeof node === 'object' && typeof node.type === 'string';\n }\n\n function isProperty(nodeType, key) {\n return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key;\n }\n \n function candidateExistsInLeaveList(leavelist, candidate) {\n for (var i = leavelist.length - 1; i >= 0; --i) {\n if (leavelist[i].node === candidate) {\n return true;\n }\n }\n return false;\n }\n\n Controller.prototype.traverse = function traverse(root, visitor) {\n var worklist,\n leavelist,\n element,\n node,\n nodeType,\n ret,\n key,\n current,\n current2,\n candidates,\n candidate,\n sentinel;\n\n this.__initialize(root, visitor);\n\n sentinel = {};\n\n // reference\n worklist = this.__worklist;\n leavelist = this.__leavelist;\n\n // initialize\n worklist.push(new Element(root, null, null, null));\n leavelist.push(new Element(null, null, null, null));\n\n while (worklist.length) {\n element = worklist.pop();\n\n if (element === sentinel) {\n element = leavelist.pop();\n\n ret = this.__execute(visitor.leave, element);\n\n if (this.__state === BREAK || ret === BREAK) {\n return;\n }\n continue;\n }\n\n if (element.node) {\n\n ret = this.__execute(visitor.enter, element);\n\n if (this.__state === BREAK || ret === BREAK) {\n return;\n }\n\n worklist.push(sentinel);\n leavelist.push(element);\n\n if (this.__state === SKIP || ret === SKIP) {\n continue;\n }\n\n node = element.node;\n nodeType = node.type || element.wrap;\n candidates = this.__keys[nodeType];\n if (!candidates) {\n if (this.__fallback) {\n candidates = this.__fallback(node);\n } else {\n throw new Error('Unknown node type ' + nodeType + '.');\n }\n }\n\n current = candidates.length;\n while ((current -= 1) >= 0) {\n key = candidates[current];\n candidate = node[key];\n if (!candidate) {\n continue;\n }\n\n if (Array.isArray(candidate)) {\n current2 = candidate.length;\n while ((current2 -= 1) >= 0) {\n if (!candidate[current2]) {\n continue;\n }\n\n if (candidateExistsInLeaveList(leavelist, candidate[current2])) {\n continue;\n }\n\n if (isProperty(nodeType, candidates[current])) {\n element = new Element(candidate[current2], [key, current2], 'Property', null);\n } else if (isNode(candidate[current2])) {\n element = new Element(candidate[current2], [key, current2], null, null);\n } else {\n continue;\n }\n worklist.push(element);\n }\n } else if (isNode(candidate)) {\n if (candidateExistsInLeaveList(leavelist, candidate)) {\n continue;\n }\n\n worklist.push(new Element(candidate, key, null, null));\n }\n }\n }\n }\n };\n\n Controller.prototype.replace = function replace(root, visitor) {\n var worklist,\n leavelist,\n node,\n nodeType,\n target,\n element,\n current,\n current2,\n candidates,\n candidate,\n sentinel,\n outer,\n key;\n\n function removeElem(element) {\n var i,\n key,\n nextElem,\n parent;\n\n if (element.ref.remove()) {\n // When the reference is an element of an array.\n key = element.ref.key;\n parent = element.ref.parent;\n\n // If removed from array, then decrease following items' keys.\n i = worklist.length;\n while (i--) {\n nextElem = worklist[i];\n if (nextElem.ref && nextElem.ref.parent === parent) {\n if (nextElem.ref.key < key) {\n break;\n }\n --nextElem.ref.key;\n }\n }\n }\n }\n\n this.__initialize(root, visitor);\n\n sentinel = {};\n\n // reference\n worklist = this.__worklist;\n leavelist = this.__leavelist;\n\n // initialize\n outer = {\n root: root\n };\n element = new Element(root, null, null, new Reference(outer, 'root'));\n worklist.push(element);\n leavelist.push(element);\n\n while (worklist.length) {\n element = worklist.pop();\n\n if (element === sentinel) {\n element = leavelist.pop();\n\n target = this.__execute(visitor.leave, element);\n\n // node may be replaced with null,\n // so distinguish between undefined and null in this place\n if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) {\n // replace\n element.ref.replace(target);\n }\n\n if (this.__state === REMOVE || target === REMOVE) {\n removeElem(element);\n }\n\n if (this.__state === BREAK || target === BREAK) {\n return outer.root;\n }\n continue;\n }\n\n target = this.__execute(visitor.enter, element);\n\n // node may be replaced with null,\n // so distinguish between undefined and null in this place\n if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) {\n // replace\n element.ref.replace(target);\n element.node = target;\n }\n\n if (this.__state === REMOVE || target === REMOVE) {\n removeElem(element);\n element.node = null;\n }\n\n if (this.__state === BREAK || target === BREAK) {\n return outer.root;\n }\n\n // node may be null\n node = element.node;\n if (!node) {\n continue;\n }\n\n worklist.push(sentinel);\n leavelist.push(element);\n\n if (this.__state === SKIP || target === SKIP) {\n continue;\n }\n\n nodeType = node.type || element.wrap;\n candidates = this.__keys[nodeType];\n if (!candidates) {\n if (this.__fallback) {\n candidates = this.__fallback(node);\n } else {\n throw new Error('Unknown node type ' + nodeType + '.');\n }\n }\n\n current = candidates.length;\n while ((current -= 1) >= 0) {\n key = candidates[current];\n candidate = node[key];\n if (!candidate) {\n continue;\n }\n\n if (Array.isArray(candidate)) {\n current2 = candidate.length;\n while ((current2 -= 1) >= 0) {\n if (!candidate[current2]) {\n continue;\n }\n if (isProperty(nodeType, candidates[current])) {\n element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2));\n } else if (isNode(candidate[current2])) {\n element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2));\n } else {\n continue;\n }\n worklist.push(element);\n }\n } else if (isNode(candidate)) {\n worklist.push(new Element(candidate, key, null, new Reference(node, key)));\n }\n }\n }\n\n return outer.root;\n };\n\n function traverse(root, visitor) {\n var controller = new Controller();\n return controller.traverse(root, visitor);\n }\n\n function replace(root, visitor) {\n var controller = new Controller();\n return controller.replace(root, visitor);\n }\n\n function extendCommentRange(comment, tokens) {\n var target;\n\n target = upperBound(tokens, function search(token) {\n return token.range[0] > comment.range[0];\n });\n\n comment.extendedRange = [comment.range[0], comment.range[1]];\n\n if (target !== tokens.length) {\n comment.extendedRange[1] = tokens[target].range[0];\n }\n\n target -= 1;\n if (target >= 0) {\n comment.extendedRange[0] = tokens[target].range[1];\n }\n\n return comment;\n }\n\n function attachComments(tree, providedComments, tokens) {\n // At first, we should calculate extended comment ranges.\n var comments = [], comment, len, i, cursor;\n\n if (!tree.range) {\n throw new Error('attachComments needs range information');\n }\n\n // tokens array is empty, we attach comments to tree as 'leadingComments'\n if (!tokens.length) {\n if (providedComments.length) {\n for (i = 0, len = providedComments.length; i < len; i += 1) {\n comment = deepCopy(providedComments[i]);\n comment.extendedRange = [0, tree.range[0]];\n comments.push(comment);\n }\n tree.leadingComments = comments;\n }\n return tree;\n }\n\n for (i = 0, len = providedComments.length; i < len; i += 1) {\n comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens));\n }\n\n // This is based on John Freeman's implementation.\n cursor = 0;\n traverse(tree, {\n enter: function (node) {\n var comment;\n\n while (cursor < comments.length) {\n comment = comments[cursor];\n if (comment.extendedRange[1] > node.range[0]) {\n break;\n }\n\n if (comment.extendedRange[1] === node.range[0]) {\n if (!node.leadingComments) {\n node.leadingComments = [];\n }\n node.leadingComments.push(comment);\n comments.splice(cursor, 1);\n } else {\n cursor += 1;\n }\n }\n\n // already out of owned node\n if (cursor === comments.length) {\n return VisitorOption.Break;\n }\n\n if (comments[cursor].extendedRange[0] > node.range[1]) {\n return VisitorOption.Skip;\n }\n }\n });\n\n cursor = 0;\n traverse(tree, {\n leave: function (node) {\n var comment;\n\n while (cursor < comments.length) {\n comment = comments[cursor];\n if (node.range[1] < comment.extendedRange[0]) {\n break;\n }\n\n if (node.range[1] === comment.extendedRange[0]) {\n if (!node.trailingComments) {\n node.trailingComments = [];\n }\n node.trailingComments.push(comment);\n comments.splice(cursor, 1);\n } else {\n cursor += 1;\n }\n }\n\n // already out of owned node\n if (cursor === comments.length) {\n return VisitorOption.Break;\n }\n\n if (comments[cursor].extendedRange[0] > node.range[1]) {\n return VisitorOption.Skip;\n }\n }\n });\n\n return tree;\n }\n\n exports.Syntax = Syntax;\n exports.traverse = traverse;\n exports.replace = replace;\n exports.attachComments = attachComments;\n exports.VisitorKeys = VisitorKeys;\n exports.VisitorOption = VisitorOption;\n exports.Controller = Controller;\n exports.cloneEnvironment = function () { return clone({}); };\n\n return exports;\n}(exports));\n/* vim: set sw=4 ts=4 et tw=80 : */\n","/*\n * Generated by PEG.js 0.10.0.\n *\n * http://pegjs.org/\n */\n(function(root, factory) {\n if (typeof define === \"function\" && define.amd) {\n define([], factory);\n } else if (typeof module === \"object\" && module.exports) {\n module.exports = factory();\n }\n})(this, function() {\n \"use strict\";\n\n function peg$subclass(child, parent) {\n function ctor() { this.constructor = child; }\n ctor.prototype = parent.prototype;\n child.prototype = new ctor();\n }\n\n function peg$SyntaxError(message, expected, found, location) {\n this.message = message;\n this.expected = expected;\n this.found = found;\n this.location = location;\n this.name = \"SyntaxError\";\n\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, peg$SyntaxError);\n }\n }\n\n peg$subclass(peg$SyntaxError, Error);\n\n peg$SyntaxError.buildMessage = function(expected, found) {\n var DESCRIBE_EXPECTATION_FNS = {\n literal: function(expectation) {\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n },\n\n \"class\": function(expectation) {\n var escapedParts = \"\",\n i;\n\n for (i = 0; i < expectation.parts.length; i++) {\n escapedParts += expectation.parts[i] instanceof Array\n ? classEscape(expectation.parts[i][0]) + \"-\" + classEscape(expectation.parts[i][1])\n : classEscape(expectation.parts[i]);\n }\n\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n },\n\n any: function(expectation) {\n return \"any character\";\n },\n\n end: function(expectation) {\n return \"end of input\";\n },\n\n other: function(expectation) {\n return expectation.description;\n }\n };\n\n function hex(ch) {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n\n function literalEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\"/g, '\\\\\"')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function classEscape(s) {\n return s\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/\\]/g, '\\\\]')\n .replace(/\\^/g, '\\\\^')\n .replace(/-/g, '\\\\-')\n .replace(/\\0/g, '\\\\0')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\r/g, '\\\\r')\n .replace(/[\\x00-\\x0F]/g, function(ch) { return '\\\\x0' + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return '\\\\x' + hex(ch); });\n }\n\n function describeExpectation(expectation) {\n return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);\n }\n\n function describeExpected(expected) {\n var descriptions = new Array(expected.length),\n i, j;\n\n for (i = 0; i < expected.length; i++) {\n descriptions[i] = describeExpectation(expected[i]);\n }\n\n descriptions.sort();\n\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n\n function describeFound(found) {\n return found ? \"\\\"\" + literalEscape(found) + \"\\\"\" : \"end of input\";\n }\n\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n\n function peg$parse(input, options) {\n options = options !== void 0 ? options : {};\n\n var peg$FAILED = {},\n\n peg$startRuleFunctions = { start: peg$parsestart },\n peg$startRuleFunction = peg$parsestart,\n\n peg$c0 = function(ss) {\n return ss.length === 1 ? ss[0] : { type: 'matches', selectors: ss };\n },\n peg$c1 = function() { return void 0; },\n peg$c2 = \" \",\n peg$c3 = peg$literalExpectation(\" \", false),\n peg$c4 = /^[^ [\\],():#!=><~+.]/,\n peg$c5 = peg$classExpectation([\" \", \"[\", \"]\", \",\", \"(\", \")\", \":\", \"#\", \"!\", \"=\", \">\", \"<\", \"~\", \"+\", \".\"], true, false),\n peg$c6 = function(i) { return i.join(''); },\n peg$c7 = \">\",\n peg$c8 = peg$literalExpectation(\">\", false),\n peg$c9 = function() { return 'child'; },\n peg$c10 = \"~\",\n peg$c11 = peg$literalExpectation(\"~\", false),\n peg$c12 = function() { return 'sibling'; },\n peg$c13 = \"+\",\n peg$c14 = peg$literalExpectation(\"+\", false),\n peg$c15 = function() { return 'adjacent'; },\n peg$c16 = function() { return 'descendant'; },\n peg$c17 = \",\",\n peg$c18 = peg$literalExpectation(\",\", false),\n peg$c19 = function(s, ss) {\n return [s].concat(ss.map(function (s) { return s[3]; }));\n },\n peg$c20 = function(op, s) {\n if (!op) return s;\n return { type: op, left: { type: 'exactNode' }, right: s };\n },\n peg$c21 = function(a, ops) {\n return ops.reduce(function (memo, rhs) {\n return { type: rhs[0], left: memo, right: rhs[1] };\n }, a);\n },\n peg$c22 = \"!\",\n peg$c23 = peg$literalExpectation(\"!\", false),\n peg$c24 = function(subject, as) {\n const b = as.length === 1 ? as[0] : { type: 'compound', selectors: as };\n if(subject) b.subject = true;\n return b;\n },\n peg$c25 = \"*\",\n peg$c26 = peg$literalExpectation(\"*\", false),\n peg$c27 = function(a) { return { type: 'wildcard', value: a }; },\n peg$c28 = \"#\",\n peg$c29 = peg$literalExpectation(\"#\", false),\n peg$c30 = function(i) { return { type: 'identifier', value: i }; },\n peg$c31 = \"[\",\n peg$c32 = peg$literalExpectation(\"[\", false),\n peg$c33 = \"]\",\n peg$c34 = peg$literalExpectation(\"]\", false),\n peg$c35 = function(v) { return v; },\n peg$c36 = /^[>\", \"<\", \"!\"], false, false),\n peg$c38 = \"=\",\n peg$c39 = peg$literalExpectation(\"=\", false),\n peg$c40 = function(a) { return (a || '') + '='; },\n peg$c41 = /^[><]/,\n peg$c42 = peg$classExpectation([\">\", \"<\"], false, false),\n peg$c43 = \".\",\n peg$c44 = peg$literalExpectation(\".\", false),\n peg$c45 = function(a, as) {\n return [].concat.apply([a], as).join('');\n },\n peg$c46 = function(name, op, value) {\n return { type: 'attribute', name: name, operator: op, value: value };\n },\n peg$c47 = function(name) { return { type: 'attribute', name: name }; },\n peg$c48 = \"\\\"\",\n peg$c49 = peg$literalExpectation(\"\\\"\", false),\n peg$c50 = /^[^\\\\\"]/,\n peg$c51 = peg$classExpectation([\"\\\\\", \"\\\"\"], true, false),\n peg$c52 = \"\\\\\",\n peg$c53 = peg$literalExpectation(\"\\\\\", false),\n peg$c54 = peg$anyExpectation(),\n peg$c55 = function(a, b) { return a + b; },\n peg$c56 = function(d) {\n return { type: 'literal', value: strUnescape(d.join('')) };\n },\n peg$c57 = \"'\",\n peg$c58 = peg$literalExpectation(\"'\", false),\n peg$c59 = /^[^\\\\']/,\n peg$c60 = peg$classExpectation([\"\\\\\", \"'\"], true, false),\n peg$c61 = /^[0-9]/,\n peg$c62 = peg$classExpectation([[\"0\", \"9\"]], false, false),\n peg$c63 = function(a, b) {\n // Can use `a.flat().join('')` once supported\n const leadingDecimals = a ? [].concat.apply([], a).join('') : '';\n return { type: 'literal', value: parseFloat(leadingDecimals + b.join('')) };\n },\n peg$c64 = function(i) { return { type: 'literal', value: i }; },\n peg$c65 = \"type(\",\n peg$c66 = peg$literalExpectation(\"type(\", false),\n peg$c67 = /^[^ )]/,\n peg$c68 = peg$classExpectation([\" \", \")\"], true, false),\n peg$c69 = \")\",\n peg$c70 = peg$literalExpectation(\")\", false),\n peg$c71 = function(t) { return { type: 'type', value: t.join('') }; },\n peg$c72 = /^[imsu]/,\n peg$c73 = peg$classExpectation([\"i\", \"m\", \"s\", \"u\"], false, false),\n peg$c74 = \"/\",\n peg$c75 = peg$literalExpectation(\"/\", false),\n peg$c76 = /^[^\\/]/,\n peg$c77 = peg$classExpectation([\"/\"], true, false),\n peg$c78 = function(d, flgs) { return {\n type: 'regexp', value: new RegExp(d.join(''), flgs ? flgs.join('') : '') };\n },\n peg$c79 = function(i, is) {\n return { type: 'field', name: is.reduce(function(memo, p){ return memo + p[0] + p[1]; }, i)};\n },\n peg$c80 = \":not(\",\n peg$c81 = peg$literalExpectation(\":not(\", false),\n peg$c82 = function(ss) { return { type: 'not', selectors: ss }; },\n peg$c83 = \":matches(\",\n peg$c84 = peg$literalExpectation(\":matches(\", false),\n peg$c85 = function(ss) { return { type: 'matches', selectors: ss }; },\n peg$c86 = \":has(\",\n peg$c87 = peg$literalExpectation(\":has(\", false),\n peg$c88 = function(ss) { return { type: 'has', selectors: ss }; },\n peg$c89 = \":first-child\",\n peg$c90 = peg$literalExpectation(\":first-child\", false),\n peg$c91 = function() { return nth(1); },\n peg$c92 = \":last-child\",\n peg$c93 = peg$literalExpectation(\":last-child\", false),\n peg$c94 = function() { return nthLast(1); },\n peg$c95 = \":nth-child(\",\n peg$c96 = peg$literalExpectation(\":nth-child(\", false),\n peg$c97 = function(n) { return nth(parseInt(n.join(''), 10)); },\n peg$c98 = \":nth-last-child(\",\n peg$c99 = peg$literalExpectation(\":nth-last-child(\", false),\n peg$c100 = function(n) { return nthLast(parseInt(n.join(''), 10)); },\n peg$c101 = \":\",\n peg$c102 = peg$literalExpectation(\":\", false),\n peg$c103 = function(c) {\n return { type: 'class', name: c };\n },\n\n peg$currPos = 0,\n peg$savedPos = 0,\n peg$posDetailsCache = [{ line: 1, column: 1 }],\n peg$maxFailPos = 0,\n peg$maxFailExpected = [],\n peg$silentFails = 0,\n\n peg$resultsCache = {},\n\n peg$result;\n\n if (\"startRule\" in options) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n\n function text() {\n return input.substring(peg$savedPos, peg$currPos);\n }\n\n function location() {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n\n function expected(description, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildStructuredError(\n [peg$otherExpectation(description)],\n input.substring(peg$savedPos, peg$currPos),\n location\n );\n }\n\n function error(message, location) {\n location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)\n\n throw peg$buildSimpleError(message, location);\n }\n\n function peg$literalExpectation(text, ignoreCase) {\n return { type: \"literal\", text: text, ignoreCase: ignoreCase };\n }\n\n function peg$classExpectation(parts, inverted, ignoreCase) {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n\n function peg$anyExpectation() {\n return { type: \"any\" };\n }\n\n function peg$endExpectation() {\n return { type: \"end\" };\n }\n\n function peg$otherExpectation(description) {\n return { type: \"other\", description: description };\n }\n\n function peg$computePosDetails(pos) {\n var details = peg$posDetailsCache[pos], p;\n\n if (details) {\n return details;\n } else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n } else {\n details.column++;\n }\n\n p++;\n }\n\n peg$posDetailsCache[pos] = details;\n return details;\n }\n }\n\n function peg$computeLocation(startPos, endPos) {\n var startPosDetails = peg$computePosDetails(startPos),\n endPosDetails = peg$computePosDetails(endPos);\n\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n\n function peg$fail(expected) {\n if (peg$currPos < peg$maxFailPos) { return; }\n\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n\n peg$maxFailExpected.push(expected);\n }\n\n function peg$buildSimpleError(message, location) {\n return new peg$SyntaxError(message, null, null, location);\n }\n\n function peg$buildStructuredError(expected, found, location) {\n return new peg$SyntaxError(\n peg$SyntaxError.buildMessage(expected, found),\n expected,\n found,\n location\n );\n }\n\n function peg$parsestart() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 0,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselectors();\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c1();\n }\n s0 = s1;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parse_() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 1,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifierName() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 2,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = [];\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n if (peg$c4.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c5); }\n }\n }\n } else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c6(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsebinaryOp() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 3,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 62) {\n s2 = peg$c7;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c8); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c9();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 126) {\n s2 = peg$c10;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c11); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c12();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 43) {\n s2 = peg$c13;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c14); }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c15();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 32) {\n s1 = peg$c2;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c3); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c16();\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 4,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsehasSelector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parsehasSelector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselectors() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n\n var key = peg$currPos * 32 + 5,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseselector();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c17;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c18); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n s7 = peg$parseselector();\n if (s7 !== peg$FAILED) {\n s4 = [s4, s5, s6, s7];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c19(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehasSelector() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 6,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsebinaryOp();\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseselector();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c20(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseselector() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 7,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parsesequence();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n s4 = peg$parsebinaryOp();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsesequence();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsesequence() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 8,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$parseatom();\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$parseatom();\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseatom() {\n var s0;\n\n var key = peg$currPos * 32 + 9,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$parsewildcard();\n if (s0 === peg$FAILED) {\n s0 = peg$parseidentifier();\n if (s0 === peg$FAILED) {\n s0 = peg$parseattr();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefield();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenegation();\n if (s0 === peg$FAILED) {\n s0 = peg$parsematches();\n if (s0 === peg$FAILED) {\n s0 = peg$parsehas();\n if (s0 === peg$FAILED) {\n s0 = peg$parsefirstChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parselastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parsenthLastChild();\n if (s0 === peg$FAILED) {\n s0 = peg$parseclass();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsewildcard() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 10,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 42) {\n s1 = peg$c25;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c26); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c27(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseidentifier() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 11,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 35) {\n s1 = peg$c28;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c29); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c30(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattr() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 12,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 91) {\n s1 = peg$c31;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c32); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrValue();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 93) {\n s5 = peg$c33;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c34); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c35(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 13,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (peg$c36.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c37); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n if (peg$c41.test(input.charAt(peg$currPos))) {\n s0 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c42); }\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrEqOps() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 14,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 33) {\n s1 = peg$c22;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c23); }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c38;\n peg$currPos++;\n } else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c39); }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrName() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 15,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s4 = peg$c43;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s4 !== peg$FAILED) {\n s5 = peg$parseidentifierName();\n if (s5 !== peg$FAILED) {\n s4 = [s4, s5];\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c45(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseattrValue() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 16,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrEqOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsetype();\n if (s5 === peg$FAILED) {\n s5 = peg$parseregex();\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseattrOps();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n s5 = peg$parsestring();\n if (s5 === peg$FAILED) {\n s5 = peg$parsenumber();\n if (s5 === peg$FAILED) {\n s5 = peg$parsepath();\n }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c46(s1, s3, s5);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$parseattrName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c47(s1);\n }\n s0 = s1;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsestring() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 17,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 34) {\n s1 = peg$c48;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c50.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c51); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 34) {\n s3 = peg$c48;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c49); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c57;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c59.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c60); }\n }\n if (s3 === peg$FAILED) {\n s3 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 92) {\n s4 = peg$c52;\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c53); }\n }\n if (s4 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c54); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s3;\n s4 = peg$c55(s4, s5);\n s3 = s4;\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n } else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s3 = peg$c57;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c58); }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c56(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenumber() {\n var s0, s1, s2, s3;\n\n var key = peg$currPos * 32 + 18,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$currPos;\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 46) {\n s3 = peg$c43;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n } else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c63(s1, s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsepath() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 19,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n s1 = peg$parseidentifierName();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c64(s1);\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsetype() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 20,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c65) {\n s1 = peg$c65;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c66); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c67.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c68); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c71(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseflags() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 21,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = [];\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c72.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c73); }\n }\n }\n } else {\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseregex() {\n var s0, s1, s2, s3, s4;\n\n var key = peg$currPos * 32 + 22,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 47) {\n s1 = peg$c74;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n if (peg$c76.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c77); }\n }\n }\n } else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 47) {\n s3 = peg$c74;\n peg$currPos++;\n } else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c75); }\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parseflags();\n if (s4 === peg$FAILED) {\n s4 = null;\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c78(s2, s4);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefield() {\n var s0, s1, s2, s3, s4, s5, s6;\n\n var key = peg$currPos * 32 + 23,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s1 = peg$c43;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n s3 = [];\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n s4 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 46) {\n s5 = peg$c43;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c44); }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parseidentifierName();\n if (s6 !== peg$FAILED) {\n s5 = [s5, s6];\n s4 = s5;\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n } else {\n peg$currPos = s4;\n s4 = peg$FAILED;\n }\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c79(s2, s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenegation() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 24,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c80) {\n s1 = peg$c80;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c81); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c82(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsematches() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 25,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 9) === peg$c83) {\n s1 = peg$c83;\n peg$currPos += 9;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c84); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseselectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c85(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsehas() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 26,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 5) === peg$c86) {\n s1 = peg$c86;\n peg$currPos += 5;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c87); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parsehasSelectors();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c88(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsefirstChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 27,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 12) === peg$c89) {\n s1 = peg$c89;\n peg$currPos += 12;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c90); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c91();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parselastChild() {\n var s0, s1;\n\n var key = peg$currPos * 32 + 28,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c92) {\n s1 = peg$c92;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c93); }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c94();\n }\n s0 = s1;\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 29,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 11) === peg$c95) {\n s1 = peg$c95;\n peg$currPos += 11;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c96); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c97(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parsenthLastChild() {\n var s0, s1, s2, s3, s4, s5;\n\n var key = peg$currPos * 32 + 30,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 16) === peg$c98) {\n s1 = peg$c98;\n peg$currPos += 16;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c99); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n if (s4 !== peg$FAILED) {\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c61.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n } else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c62); }\n }\n }\n } else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 41) {\n s5 = peg$c69;\n peg$currPos++;\n } else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c70); }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c100(s3);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n function peg$parseclass() {\n var s0, s1, s2;\n\n var key = peg$currPos * 32 + 31,\n cached = peg$resultsCache[key];\n\n if (cached) {\n peg$currPos = cached.nextPos;\n\n return cached.result;\n }\n\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 58) {\n s1 = peg$c101;\n peg$currPos++;\n } else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) { peg$fail(peg$c102); }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseidentifierName();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c103(s2);\n s0 = s1;\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n } else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n\n peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };\n\n return s0;\n }\n\n\n function nth(n) { return { type: 'nth-child', index: { type: 'literal', value: n } }; }\n function nthLast(n) { return { type: 'nth-last-child', index: { type: 'literal', value: n } }; }\n function strUnescape(s) {\n return s.replace(/\\\\(.)/g, function(match, ch) {\n switch(ch) {\n case 'b': return '\\b';\n case 'f': return '\\f';\n case 'n': return '\\n';\n case 'r': return '\\r';\n case 't': return '\\t';\n case 'v': return '\\v';\n default: return ch;\n }\n });\n }\n\n\n peg$result = peg$startRuleFunction();\n\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n } else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n\n throw peg$buildStructuredError(\n peg$maxFailExpected,\n peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,\n peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)\n );\n }\n }\n\n return {\n SyntaxError: peg$SyntaxError,\n parse: peg$parse\n };\n});\n","/* vim: set sw=4 sts=4 : */\nimport estraverse from 'estraverse';\nimport parser from './parser.js';\n\n/**\n* @typedef {\"LEFT_SIDE\"|\"RIGHT_SIDE\"} Side\n*/\n\nconst LEFT_SIDE = 'LEFT_SIDE';\nconst RIGHT_SIDE = 'RIGHT_SIDE';\n\n/**\n * @external AST\n * @see https://esprima.readthedocs.io/en/latest/syntax-tree-format.html\n */\n\n/**\n * One of the rules of `grammar.pegjs`\n * @typedef {PlainObject} SelectorAST\n * @see grammar.pegjs\n*/\n\n/**\n * The `sequence` production of `grammar.pegjs`\n * @typedef {PlainObject} SelectorSequenceAST\n*/\n\n/**\n * Get the value of a property which may be multiple levels down\n * in the object.\n * @param {?PlainObject} obj\n * @param {string[]} keys\n * @returns {undefined|boolean|string|number|external:AST}\n */\nfunction getPath(obj, keys) {\n for (let i = 0; i < keys.length; ++i) {\n if (obj == null) { return obj; }\n obj = obj[keys[i]];\n }\n return obj;\n}\n\n/**\n * Determine whether `node` can be reached by following `path`,\n * starting at `ancestor`.\n * @param {?external:AST} node\n * @param {?external:AST} ancestor\n * @param {string[]} path\n * @param {Integer} fromPathIndex\n * @returns {boolean}\n */\nfunction inPath(node, ancestor, path, fromPathIndex) {\n let current = ancestor;\n for (let i = fromPathIndex; i < path.length; ++i) {\n if (current == null) {\n return false;\n }\n const field = current[path[i]];\n if (Array.isArray(field)) {\n for (let k = 0; k < field.length; ++k) {\n if (inPath(node, field[k], path, i + 1)) {\n return true;\n }\n }\n return false;\n }\n current = field;\n }\n return node === current;\n}\n\n/**\n * A generated matcher function for a selector.\n * @callback SelectorMatcher\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @returns {void}\n*/\n\n/**\n * A WeakMap for holding cached matcher functions for selectors.\n * @type {WeakMap}\n*/\nconst MATCHER_CACHE = typeof WeakMap === 'function' ? new WeakMap : null;\n\n/**\n * Look up a matcher function for `selector` in the cache.\n * If it does not exist, generate it with `generateMatcher` and add it to the cache.\n * In engines without WeakMap, the caching is skipped and matchers are generated with every call.\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction getMatcher(selector) {\n if (selector == null) {\n return () => true;\n }\n\n if (MATCHER_CACHE != null) {\n let matcher = MATCHER_CACHE.get(selector);\n if (matcher != null) {\n return matcher;\n }\n matcher = generateMatcher(selector);\n MATCHER_CACHE.set(selector, matcher);\n return matcher;\n }\n\n return generateMatcher(selector);\n}\n\n/**\n * Create a matcher function for `selector`,\n * @param {?SelectorAST} selector\n * @returns {SelectorMatcher}\n */\nfunction generateMatcher(selector) {\n switch(selector.type) {\n case 'wildcard':\n return () => true;\n\n case 'identifier': {\n const value = selector.value.toLowerCase();\n return (node, ancestry, options) => {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return value === node[nodeTypeKey].toLowerCase();\n };\n }\n\n case 'exactNode':\n return (node, ancestry) => {\n return ancestry.length === 0;\n };\n\n case 'field': {\n const path = selector.name.split('.');\n return (node, ancestry) => {\n const ancestor = ancestry[path.length - 1];\n return inPath(node, ancestor, path, 0);\n };\n }\n\n case 'matches': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return true; }\n }\n return false;\n };\n }\n\n case 'compound': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (!matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'not': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, ancestry, options)) { return false; }\n }\n return true;\n };\n }\n\n case 'has': {\n const matchers = selector.selectors.map(getMatcher);\n return (node, ancestry, options) => {\n let result = false;\n\n const a = [];\n estraverse.traverse(node, {\n enter (node, parent) {\n if (parent != null) { a.unshift(parent); }\n\n for (let i = 0; i < matchers.length; ++i) {\n if (matchers[i](node, a, options)) {\n result = true;\n this.break();\n return;\n }\n }\n },\n leave () { a.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n\n return result;\n };\n }\n\n case 'child': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (ancestry.length > 0 && right(node, ancestry, options)) {\n return left(ancestry[0], ancestry.slice(1), options);\n }\n return false;\n };\n }\n\n case 'descendant': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) => {\n if (right(node, ancestry, options)) {\n for (let i = 0, l = ancestry.length; i < l; ++i) {\n if (left(ancestry[i], ancestry.slice(i + 1), options)) {\n return true;\n }\n }\n }\n return false;\n };\n }\n\n case 'attribute': {\n const path = selector.name.split('.');\n switch (selector.operator) {\n case void 0:\n return (node) => getPath(node, path) != null;\n case '=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => {\n const p = getPath(node, path);\n return typeof p === 'string' && selector.value.value.test(p);\n };\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal === `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value === typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '!=':\n switch (selector.value.type) {\n case 'regexp':\n return (node) => !selector.value.value.test(getPath(node, path));\n case 'literal': {\n const literal = `${selector.value.value}`;\n return (node) => literal !== `${getPath(node, path)}`;\n }\n case 'type':\n return (node) => selector.value.value !== typeof getPath(node, path);\n }\n throw new Error(`Unknown selector value type: ${selector.value.type}`);\n case '<=':\n return (node) => getPath(node, path) <= selector.value.value;\n case '<':\n return (node) => getPath(node, path) < selector.value.value;\n case '>':\n return (node) => getPath(node, path) > selector.value.value;\n case '>=':\n return (node) => getPath(node, path) >= selector.value.value;\n }\n throw new Error(`Unknown operator: ${selector.operator}`);\n }\n\n case 'sibling': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n sibling(node, left, ancestry, LEFT_SIDE, options) ||\n selector.left.subject &&\n left(node, ancestry, options) &&\n sibling(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'adjacent': {\n const left = getMatcher(selector.left);\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n adjacent(node, left, ancestry, LEFT_SIDE, options) ||\n selector.right.subject &&\n left(node, ancestry, options) &&\n adjacent(node, right, ancestry, RIGHT_SIDE, options);\n }\n\n case 'nth-child': {\n const nth = selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'nth-last-child': {\n const nth = -selector.index.value;\n const right = getMatcher(selector.right);\n return (node, ancestry, options) =>\n right(node, ancestry, options) &&\n nthChild(node, ancestry, nth, options);\n }\n\n case 'class': {\n \n const name = selector.name.toLowerCase();\n\n return (node, ancestry, options) => {\n \n if (options && options.matchClass) {\n return options.matchClass(selector.name, node, ancestry);\n }\n \n if (options && options.nodeTypeKey) return false; \n\n switch(name){\n case 'statement':\n if(node.type.slice(-9) === 'Statement') return true;\n // fallthrough: interface Declaration <: Statement { }\n case 'declaration':\n return node.type.slice(-11) === 'Declaration';\n case 'pattern':\n if(node.type.slice(-7) === 'Pattern') return true;\n // fallthrough: interface Expression <: Node, Pattern { }\n case 'expression':\n return node.type.slice(-10) === 'Expression' ||\n node.type.slice(-7) === 'Literal' ||\n (\n node.type === 'Identifier' &&\n (ancestry.length === 0 || ancestry[0].type !== 'MetaProperty')\n ) ||\n node.type === 'MetaProperty';\n case 'function':\n return node.type === 'FunctionDeclaration' ||\n node.type === 'FunctionExpression' ||\n node.type === 'ArrowFunctionExpression';\n }\n throw new Error(`Unknown class name: ${selector.name}`);\n };\n }\n }\n\n throw new Error(`Unknown selector type: ${selector.type}`);\n}\n\n/**\n * @callback TraverseOptionFallback\n * @param {external:AST} node The given node.\n * @returns {string[]} An array of visitor keys for the given node.\n */\n\n/**\n * @callback ClassMatcher\n * @param {string} className The name of the class to match.\n * @param {external:AST} node The node to match against.\n * @param {Array} ancestry The ancestry of the node.\n * @returns {boolean} True if the node matches the class, false if not.\n */\n\n/**\n * @typedef {object} ESQueryOptions\n * @property {string} [nodeTypeKey=\"type\"] By passing `nodeTypeKey`, we can allow other ASTs to use ESQuery.\n * @property { { [nodeType: string]: string[] } } [visitorKeys] By passing `visitorKeys` mapping, we can extend the properties of the nodes that traverse the node.\n * @property {TraverseOptionFallback} [fallback] By passing `fallback` option, we can control the properties of traversing nodes when encountering unknown nodes.\n * @property {ClassMatcher} [matchClass] By passing `matchClass` option, we can customize the interpretation of classes.\n */\n\n/**\n * Given a `node` and its ancestors, determine if `node` is matched\n * by `selector`.\n * @param {?external:AST} node\n * @param {?SelectorAST} selector\n * @param {external:AST[]} [ancestry=[]]\n * @param {ESQueryOptions} [options]\n * @throws {Error} Unknowns (operator, class name, selector type, or\n * selector value type)\n * @returns {boolean}\n */\nfunction matches(node, selector, ancestry, options) {\n if (!selector) { return true; }\n if (!node) { return false; }\n if (!ancestry) { ancestry = []; }\n\n return getMatcher(selector)(node, ancestry, options);\n}\n\n/**\n * Get visitor keys of a given node.\n * @param {external:AST} node The AST node to get keys.\n * @param {ESQueryOptions|undefined} options\n * @returns {string[]} Visitor keys of the node.\n */\nfunction getVisitorKeys(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n\n const nodeType = node[nodeTypeKey];\n if (options && options.visitorKeys && options.visitorKeys[nodeType]) {\n return options.visitorKeys[nodeType];\n }\n if (estraverse.VisitorKeys[nodeType]) {\n return estraverse.VisitorKeys[nodeType];\n }\n if (options && typeof options.fallback === 'function') {\n return options.fallback(node);\n }\n // 'iteration' fallback\n return Object.keys(node).filter(function (key) {\n return key !== nodeTypeKey;\n });\n}\n\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} node The value to check.\n * @param {ESQueryOptions|undefined} options The options to use.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(node, options) {\n const nodeTypeKey = (options && options.nodeTypeKey) || 'type';\n return node !== null && typeof node === 'object' && typeof node[nodeTypeKey] === 'string';\n}\n\n/**\n * Determines if the given node has a sibling that matches the\n * given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction sibling(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const startIndex = listProp.indexOf(node);\n if (startIndex < 0) { continue; }\n let lowerBound, upperBound;\n if (side === LEFT_SIDE) {\n lowerBound = 0;\n upperBound = startIndex;\n } else {\n lowerBound = startIndex + 1;\n upperBound = listProp.length;\n }\n for (let k = lowerBound; k < upperBound; ++k) {\n if (isNode(listProp[k], options) && matcher(listProp[k], ancestry, options)) {\n return true;\n }\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node has an adjacent sibling that matches\n * the given selector matcher.\n * @param {external:AST} node\n * @param {SelectorMatcher} matcher\n * @param {external:AST[]} ancestry\n * @param {Side} side\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction adjacent(node, matcher, ancestry, side, options) {\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)) {\n const idx = listProp.indexOf(node);\n if (idx < 0) { continue; }\n if (side === LEFT_SIDE && idx > 0 && isNode(listProp[idx - 1], options) && matcher(listProp[idx - 1], ancestry, options)) {\n return true;\n }\n if (side === RIGHT_SIDE && idx < listProp.length - 1 && isNode(listProp[idx + 1], options) && matcher(listProp[idx + 1], ancestry, options)) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * Determines if the given node is the `nth` child.\n * If `nth` is negative then the position is counted\n * from the end of the list of children.\n * @param {external:AST} node\n * @param {external:AST[]} ancestry\n * @param {Integer} nth\n * @param {ESQueryOptions|undefined} options\n * @returns {boolean}\n */\nfunction nthChild(node, ancestry, nth, options) {\n if (nth === 0) { return false; }\n const [parent] = ancestry;\n if (!parent) { return false; }\n const keys = getVisitorKeys(parent, options);\n for (let i = 0; i < keys.length; ++i) {\n const listProp = parent[keys[i]];\n if (Array.isArray(listProp)){\n const idx = nth < 0 ? listProp.length + nth : nth - 1;\n if (idx >= 0 && idx < listProp.length && listProp[idx] === node) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * For each selector node marked as a subject, find the portion of the\n * selector that the subject must match.\n * @param {SelectorAST} selector\n * @param {SelectorAST} [ancestor] Defaults to `selector`\n * @returns {SelectorAST[]}\n */\nfunction subjects(selector, ancestor) {\n if (selector == null || typeof selector != 'object') { return []; }\n if (ancestor == null) { ancestor = selector; }\n const results = selector.subject ? [ancestor] : [];\n const keys = Object.keys(selector);\n for (let i = 0; i < keys.length; ++i) {\n const p = keys[i];\n const sel = selector[p];\n results.push(...subjects(sel, p === 'left' ? sel : ancestor));\n }\n return results;\n}\n\n/**\n* @callback TraverseVisitor\n* @param {?external:AST} node\n* @param {?external:AST} parent\n* @param {external:AST[]} ancestry\n*/\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {TraverseVisitor} visitor\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction traverse(ast, selector, visitor, options) {\n if (!selector) { return; }\n const ancestry = [];\n const matcher = getMatcher(selector);\n const altSubjects = subjects(selector).map(getMatcher);\n estraverse.traverse(ast, {\n enter (node, parent) {\n if (parent != null) { ancestry.unshift(parent); }\n if (matcher(node, ancestry, options)) {\n if (altSubjects.length) {\n for (let i = 0, l = altSubjects.length; i < l; ++i) {\n if (altSubjects[i](node, ancestry, options)) {\n visitor(node, parent, ancestry);\n }\n for (let k = 0, m = ancestry.length; k < m; ++k) {\n const succeedingAncestry = ancestry.slice(k + 1);\n if (altSubjects[i](ancestry[k], succeedingAncestry, options)) {\n visitor(ancestry[k], parent, succeedingAncestry);\n }\n }\n }\n } else {\n visitor(node, parent, ancestry);\n }\n }\n },\n leave () { ancestry.shift(); },\n keys: options && options.visitorKeys,\n fallback: options && options.fallback || 'iteration'\n });\n}\n\n\n/**\n * From a JS AST and a selector AST, collect all JS AST nodes that\n * match the selector.\n * @param {external:AST} ast\n * @param {?SelectorAST} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction match(ast, selector, options) {\n const results = [];\n traverse(ast, selector, function (node) {\n results.push(node);\n }, options);\n return results;\n}\n\n/**\n * Parse a selector string and return its AST.\n * @param {string} selector\n * @returns {SelectorAST}\n */\nfunction parse(selector) {\n return parser.parse(selector);\n}\n\n/**\n * Query the code AST using the selector string.\n * @param {external:AST} ast\n * @param {string} selector\n * @param {ESQueryOptions} [options]\n * @returns {external:AST[]}\n */\nfunction query(ast, selector, options) {\n return match(ast, parse(selector), options);\n}\n\nquery.parse = parse;\nquery.match = match;\nquery.traverse = traverse;\nquery.matches = matches;\nquery.query = query;\n\nexport default query;\n"],"names":["clone","exports","Syntax","VisitorOption","VisitorKeys","BREAK","SKIP","REMOVE","deepCopy","obj","key","val","ret","hasOwnProperty","Reference","parent","this","Element","node","path","wrap","ref","Controller","isNode","type","isProperty","nodeType","ObjectExpression","ObjectPattern","candidateExistsInLeaveList","leavelist","candidate","i","length","traverse","root","visitor","extendCommentRange","comment","tokens","target","array","func","diff","len","current","upperBound","token","range","extendedRange","AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ComprehensionBlock","ComprehensionExpression","ConditionalExpression","ContinueStatement","DebuggerStatement","DirectiveStatement","DoWhileStatement","EmptyStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportSpecifier","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","GeneratorExpression","Identifier","IfStatement","ImportExpression","ImportDeclaration","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportSpecifier","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","ModuleSpecifier","NewExpression","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","Super","SwitchStatement","SwitchCase","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","Break","Skip","Remove","prototype","replace","remove","Array","isArray","splice","iz","j","jz","result","addToPath","push","__current","__leavelist","parents","__execute","callback","element","previous","undefined","__state","call","notify","flag","skip","__initialize","__worklist","__fallback","fallback","Object","keys","__keys","assign","create","worklist","current2","candidates","sentinel","pop","enter","Error","leave","outer","removeElem","nextElem","attachComments","tree","providedComments","cursor","comments","leadingComments","trailingComments","cloneEnvironment","module","peg$SyntaxError","message","expected","found","location","name","captureStackTrace","child","ctor","constructor","peg$subclass","buildMessage","DESCRIBE_EXPECTATION_FNS","literal","expectation","literalEscape","text","class","escapedParts","parts","classEscape","inverted","any","end","other","description","hex","ch","charCodeAt","toString","toUpperCase","s","descriptions","sort","slice","join","describeExpected","describeFound","SyntaxError","parse","input","options","peg$result","peg$FAILED","peg$startRuleFunctions","start","peg$parsestart","peg$startRuleFunction","peg$c3","peg$literalExpectation","peg$c4","peg$c5","peg$classExpectation","peg$c8","peg$c11","peg$c14","peg$c18","peg$c19","ss","concat","map","peg$c23","peg$c26","peg$c29","peg$c32","peg$c34","peg$c36","peg$c37","peg$c39","peg$c40","a","peg$c41","peg$c42","peg$c44","peg$c46","op","value","operator","peg$c49","peg$c50","peg$c51","peg$c53","peg$c54","peg$c55","b","peg$c56","d","match","peg$c58","peg$c59","peg$c60","peg$c61","peg$c62","peg$c66","peg$c67","peg$c68","peg$c70","peg$c72","peg$c73","peg$c75","peg$c76","peg$c77","peg$c81","peg$c84","peg$c87","peg$c90","peg$c93","peg$c96","peg$c99","peg$c102","peg$currPos","peg$posDetailsCache","line","column","peg$maxFailPos","peg$maxFailExpected","peg$silentFails","startRule","ignoreCase","peg$computePosDetails","pos","p","details","peg$computeLocation","startPos","endPos","startPosDetails","endPosDetails","offset","peg$fail","s0","s1","s2","cached","peg$resultsCache","nextPos","peg$parse_","peg$parseselectors","selectors","peg$c1","peg$parseidentifierName","test","charAt","peg$parsebinaryOp","s3","s4","s5","s6","s7","peg$parseselector","peg$parsehasSelector","left","right","peg$parsesequence","reduce","memo","rhs","subject","as","peg$parseatom","peg$parsewildcard","peg$parseidentifier","peg$parseattrName","peg$parseattrEqOps","substr","peg$parsetype","flgs","peg$parseflags","RegExp","peg$parseregex","peg$parseattrOps","peg$parsestring","leadingDecimals","apply","parseFloat","peg$parsenumber","peg$parsepath","peg$parseattrValue","peg$parseattr","peg$parsefield","peg$parsenegation","peg$parsematches","peg$parsehasSelectors","peg$parsehas","nth","peg$parsefirstChild","nthLast","peg$parselastChild","parseInt","peg$parsenthChild","peg$parsenthLastChild","peg$parseclass","n","index","factory","getPath","MATCHER_CACHE","WeakMap","getMatcher","selector","matcher","get","generateMatcher","set","toLowerCase","ancestry","nodeTypeKey","split","inPath","ancestor","fromPathIndex","field","k","matchers","estraverse","unshift","shift","visitorKeys","l","sibling","adjacent","nthChild","matchClass","getVisitorKeys","filter","_typeof","side","listProp","startIndex","indexOf","lowerBound","idx","ast","altSubjects","subjects","results","sel","m","succeedingAncestry","parser","query","matches"],"mappings":"qgEA2BC,SAASA,EAAMC,GAGZ,IAAIC,EACAC,EACAC,EACAC,EACAC,EACAC,EAEJ,SAASC,EAASC,GACd,IAAcC,EAAKC,EAAfC,EAAM,GACV,IAAKF,KAAOD,EACJA,EAAII,eAAeH,KACnBC,EAAMF,EAAIC,GAENE,EAAIF,GADW,iBAARC,GAA4B,OAARA,EAChBH,EAASG,GAETA,GAIvB,OAAOC,EAgMX,SAASE,EAAUC,EAAQL,GACvBM,KAAKD,OAASA,EACdC,KAAKN,IAAMA,EAiBf,SAASO,EAAQC,EAAMC,EAAMC,EAAMC,GAC/BL,KAAKE,KAAOA,EACZF,KAAKG,KAAOA,EACZH,KAAKI,KAAOA,EACZJ,KAAKK,IAAMA,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UpK,IAC/BzL,EAAQlB,EAAMH,EAAQkX,GAE1B,IAAK,IAAIO,EAAI,EAAGyB,EAAIhC,EAAShW,OAAQuW,EAAIyB,IAAKzB,EAAG,CAC7C,IAAM0B,EAAqBjC,EAAS3K,MAAMkL,EAAI,GAC1CqB,EAAY7X,GAAGiW,EAASO,GAAI0B,EAAoBrM,IAChDzL,EAAQ6V,EAASO,GAAIzX,EAAQmZ,SAKzC9X,EAAQlB,EAAMH,EAAQkX,IAIlC1N,iBAAW0N,EAASW,SACpBhP,KAAMiE,GAAWA,EAAQgL,YACzBnP,SAAUmE,GAAWA,EAAQnE,UAAY,eAajD,SAASiH,EAAMiJ,EAAKjC,EAAU9J,GAC1B,IAAMkM,EAAU,GAIhB,OAHA7X,EAAS0X,EAAKjC,GAAU,SAAUzW,GAC9B6Y,EAAQtR,KAAKvH,KACd2M,GACIkM,EAQX,SAASpM,EAAMgK,GACX,OAAOwC,EAAOxM,MAAMgK,GAUxB,SAASyC,EAAMR,EAAKjC,EAAU9J,GAC1B,OAAO8C,EAAMiJ,EAAKjM,EAAMgK,GAAW9J,UAGvCuM,EAAMzM,MAAQA,EACdyM,EAAMzJ,MAAQA,EACdyJ,EAAMlY,SAAWA,EACjBkY,EAAMC,QAvPN,SAAiBnZ,EAAMyW,EAAUM,EAAUpK,GACvC,OAAK8J,KACAzW,IACA+W,IAAYA,EAAW,IAErBP,EAAWC,EAAXD,CAAqBxW,EAAM+W,EAAUpK,KAmPhDuM,EAAMA,MAAQA"} \ No newline at end of file diff --git a/graphql/node_modules/esquery/license.txt b/graphql/node_modules/esquery/license.txt deleted file mode 100644 index 52f915e2..00000000 --- a/graphql/node_modules/esquery/license.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2013, Joel Feenstra -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of the ESQuery nor the names of its contributors may - be used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL JOEL FEENSTRA BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/esquery/package.json b/graphql/node_modules/esquery/package.json deleted file mode 100644 index 5e314b3a..00000000 --- a/graphql/node_modules/esquery/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "esquery", - "version": "1.6.0", - "author": "Joel Feenstra ", - "contributors": [], - "description": "A query library for ECMAScript AST using a CSS selector like query language.", - "main": "dist/esquery.min.js", - "module": "dist/esquery.esm.min.js", - "files": [ - "dist/*.js", - "dist/*.map", - "parser.js", - "license.txt", - "README.md" - ], - "nyc": { - "branches": 100, - "lines": 100, - "functions": 100, - "statements": 100, - "reporter": [ - "html", - "text" - ], - "exclude": [ - "parser.js", - "dist", - "tests" - ] - }, - "scripts": { - "prepublishOnly": "npm run build && npm test", - "build:parser": "rm parser.js && pegjs --cache --format umd -o \"parser.js\" \"grammar.pegjs\"", - "build:browser": "rollup -c", - "build": "npm run build:parser && npm run build:browser", - "mocha": "mocha --require chai/register-assert --require @babel/register tests", - "test": "nyc npm run mocha && npm run lint", - "test:ci": "npm run mocha", - "lint": "eslint ." - }, - "repository": { - "type": "git", - "url": "https://github.com/estools/esquery.git" - }, - "bugs": "https://github.com/estools/esquery/issues", - "homepage": "https://github.com/estools/esquery/", - "keywords": [ - "ast", - "ecmascript", - "javascript", - "query" - ], - "devDependencies": { - "@babel/core": "^7.9.0", - "@babel/preset-env": "^7.9.5", - "@babel/register": "^7.9.0", - "@rollup/plugin-commonjs": "^11.1.0", - "@rollup/plugin-json": "^4.0.2", - "@rollup/plugin-node-resolve": "^7.1.3", - "babel-plugin-transform-es2017-object-entries": "0.0.5", - "chai": "4.2.0", - "eslint": "^6.8.0", - "esprima": "~4.0.1", - "mocha": "7.1.1", - "nyc": "^15.0.1", - "pegjs": "~0.10.0", - "rollup": "^1.32.1", - "rollup-plugin-babel": "^4.4.0", - "rollup-plugin-terser": "^5.3.0" - }, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10" - }, - "dependencies": { - "estraverse": "^5.1.0" - } -} diff --git a/graphql/node_modules/esquery/parser.js b/graphql/node_modules/esquery/parser.js deleted file mode 100644 index eac0a009..00000000 --- a/graphql/node_modules/esquery/parser.js +++ /dev/null @@ -1,2694 +0,0 @@ -/* - * Generated by PEG.js 0.10.0. - * - * http://pegjs.org/ - */ -(function(root, factory) { - if (typeof define === "function" && define.amd) { - define([], factory); - } else if (typeof module === "object" && module.exports) { - module.exports = factory(); - } -})(this, function() { - "use strict"; - - function peg$subclass(child, parent) { - function ctor() { this.constructor = child; } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); - } - - function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } - } - - peg$subclass(peg$SyntaxError, Error); - - peg$SyntaxError.buildMessage = function(expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - - "class": function(expectation) { - var escapedParts = "", - i; - - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array - ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) - : classEscape(expectation.parts[i]); - } - - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - - any: function(expectation) { - return "any character"; - }, - - end: function(expectation) { - return "end of input"; - }, - - other: function(expectation) { - return expectation.description; - } - }; - - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - - function literalEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/"/g, '\\"') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function classEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/\]/g, '\\]') - .replace(/\^/g, '\\^') - .replace(/-/g, '\\-') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, j; - - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - - descriptions.sort(); - - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - - switch (descriptions.length) { - case 1: - return descriptions[0]; - - case 2: - return descriptions[0] + " or " + descriptions[1]; - - default: - return descriptions.slice(0, -1).join(", ") - + ", or " - + descriptions[descriptions.length - 1]; - } - } - - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; - }; - - function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - - var peg$FAILED = {}, - - peg$startRuleFunctions = { start: peg$parsestart }, - peg$startRuleFunction = peg$parsestart, - - peg$c0 = function(ss) { - return ss.length === 1 ? ss[0] : { type: 'matches', selectors: ss }; - }, - peg$c1 = function() { return void 0; }, - peg$c2 = " ", - peg$c3 = peg$literalExpectation(" ", false), - peg$c4 = /^[^ [\],():#!=><~+.]/, - peg$c5 = peg$classExpectation([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), - peg$c6 = function(i) { return i.join(''); }, - peg$c7 = ">", - peg$c8 = peg$literalExpectation(">", false), - peg$c9 = function() { return 'child'; }, - peg$c10 = "~", - peg$c11 = peg$literalExpectation("~", false), - peg$c12 = function() { return 'sibling'; }, - peg$c13 = "+", - peg$c14 = peg$literalExpectation("+", false), - peg$c15 = function() { return 'adjacent'; }, - peg$c16 = function() { return 'descendant'; }, - peg$c17 = ",", - peg$c18 = peg$literalExpectation(",", false), - peg$c19 = function(s, ss) { - return [s].concat(ss.map(function (s) { return s[3]; })); - }, - peg$c20 = function(op, s) { - if (!op) return s; - return { type: op, left: { type: 'exactNode' }, right: s }; - }, - peg$c21 = function(a, ops) { - return ops.reduce(function (memo, rhs) { - return { type: rhs[0], left: memo, right: rhs[1] }; - }, a); - }, - peg$c22 = "!", - peg$c23 = peg$literalExpectation("!", false), - peg$c24 = function(subject, as) { - const b = as.length === 1 ? as[0] : { type: 'compound', selectors: as }; - if(subject) b.subject = true; - return b; - }, - peg$c25 = "*", - peg$c26 = peg$literalExpectation("*", false), - peg$c27 = function(a) { return { type: 'wildcard', value: a }; }, - peg$c28 = "#", - peg$c29 = peg$literalExpectation("#", false), - peg$c30 = function(i) { return { type: 'identifier', value: i }; }, - peg$c31 = "[", - peg$c32 = peg$literalExpectation("[", false), - peg$c33 = "]", - peg$c34 = peg$literalExpectation("]", false), - peg$c35 = function(v) { return v; }, - peg$c36 = /^[>", "<", "!"], false, false), - peg$c38 = "=", - peg$c39 = peg$literalExpectation("=", false), - peg$c40 = function(a) { return (a || '') + '='; }, - peg$c41 = /^[><]/, - peg$c42 = peg$classExpectation([">", "<"], false, false), - peg$c43 = ".", - peg$c44 = peg$literalExpectation(".", false), - peg$c45 = function(a, as) { - return [].concat.apply([a], as).join(''); - }, - peg$c46 = function(name, op, value) { - return { type: 'attribute', name: name, operator: op, value: value }; - }, - peg$c47 = function(name) { return { type: 'attribute', name: name }; }, - peg$c48 = "\"", - peg$c49 = peg$literalExpectation("\"", false), - peg$c50 = /^[^\\"]/, - peg$c51 = peg$classExpectation(["\\", "\""], true, false), - peg$c52 = "\\", - peg$c53 = peg$literalExpectation("\\", false), - peg$c54 = peg$anyExpectation(), - peg$c55 = function(a, b) { return a + b; }, - peg$c56 = function(d) { - return { type: 'literal', value: strUnescape(d.join('')) }; - }, - peg$c57 = "'", - peg$c58 = peg$literalExpectation("'", false), - peg$c59 = /^[^\\']/, - peg$c60 = peg$classExpectation(["\\", "'"], true, false), - peg$c61 = /^[0-9]/, - peg$c62 = peg$classExpectation([["0", "9"]], false, false), - peg$c63 = function(a, b) { - // Can use `a.flat().join('')` once supported - const leadingDecimals = a ? [].concat.apply([], a).join('') : ''; - return { type: 'literal', value: parseFloat(leadingDecimals + b.join('')) }; - }, - peg$c64 = function(i) { return { type: 'literal', value: i }; }, - peg$c65 = "type(", - peg$c66 = peg$literalExpectation("type(", false), - peg$c67 = /^[^ )]/, - peg$c68 = peg$classExpectation([" ", ")"], true, false), - peg$c69 = ")", - peg$c70 = peg$literalExpectation(")", false), - peg$c71 = function(t) { return { type: 'type', value: t.join('') }; }, - peg$c72 = /^[imsu]/, - peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false), - peg$c74 = "/", - peg$c75 = peg$literalExpectation("/", false), - peg$c76 = /^[^\/]/, - peg$c77 = peg$classExpectation(["/"], true, false), - peg$c78 = function(d, flgs) { return { - type: 'regexp', value: new RegExp(d.join(''), flgs ? flgs.join('') : '') }; - }, - peg$c79 = function(i, is) { - return { type: 'field', name: is.reduce(function(memo, p){ return memo + p[0] + p[1]; }, i)}; - }, - peg$c80 = ":not(", - peg$c81 = peg$literalExpectation(":not(", false), - peg$c82 = function(ss) { return { type: 'not', selectors: ss }; }, - peg$c83 = ":matches(", - peg$c84 = peg$literalExpectation(":matches(", false), - peg$c85 = function(ss) { return { type: 'matches', selectors: ss }; }, - peg$c86 = ":has(", - peg$c87 = peg$literalExpectation(":has(", false), - peg$c88 = function(ss) { return { type: 'has', selectors: ss }; }, - peg$c89 = ":first-child", - peg$c90 = peg$literalExpectation(":first-child", false), - peg$c91 = function() { return nth(1); }, - peg$c92 = ":last-child", - peg$c93 = peg$literalExpectation(":last-child", false), - peg$c94 = function() { return nthLast(1); }, - peg$c95 = ":nth-child(", - peg$c96 = peg$literalExpectation(":nth-child(", false), - peg$c97 = function(n) { return nth(parseInt(n.join(''), 10)); }, - peg$c98 = ":nth-last-child(", - peg$c99 = peg$literalExpectation(":nth-last-child(", false), - peg$c100 = function(n) { return nthLast(parseInt(n.join(''), 10)); }, - peg$c101 = ":", - peg$c102 = peg$literalExpectation(":", false), - peg$c103 = function(c) { - return { type: 'class', name: c }; - }, - - peg$currPos = 0, - peg$savedPos = 0, - peg$posDetailsCache = [{ line: 1, column: 1 }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$silentFails = 0, - - peg$resultsCache = {}, - - peg$result; - - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - - function text() { - return input.substring(peg$savedPos, peg$currPos); - } - - function location() { - return peg$computeLocation(peg$savedPos, peg$currPos); - } - - function expected(description, location) { - location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) - - throw peg$buildStructuredError( - [peg$otherExpectation(description)], - input.substring(peg$savedPos, peg$currPos), - location - ); - } - - function error(message, location) { - location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) - - throw peg$buildSimpleError(message, location); - } - - function peg$literalExpectation(text, ignoreCase) { - return { type: "literal", text: text, ignoreCase: ignoreCase }; - } - - function peg$classExpectation(parts, inverted, ignoreCase) { - return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; - } - - function peg$anyExpectation() { - return { type: "any" }; - } - - function peg$endExpectation() { - return { type: "end" }; - } - - function peg$otherExpectation(description) { - return { type: "other", description: description }; - } - - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], p; - - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - - p++; - } - - peg$posDetailsCache[pos] = details; - return details; - } - } - - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { return; } - - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - - peg$maxFailExpected.push(expected); - } - - function peg$buildSimpleError(message, location) { - return new peg$SyntaxError(message, null, null, location); - } - - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError( - peg$SyntaxError.buildMessage(expected, found), - expected, - found, - location - ); - } - - function peg$parsestart() { - var s0, s1, s2, s3; - - var key = peg$currPos * 32 + 0, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseselectors(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(); - } - s0 = s1; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parse_() { - var s0, s1; - - var key = peg$currPos * 32 + 1, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = []; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c3); } - } - while (s1 !== peg$FAILED) { - s0.push(s1); - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c3); } - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseidentifierName() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 2, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = []; - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c5); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c4.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c5); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c6(s1); - } - s0 = s1; - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsebinaryOp() { - var s0, s1, s2, s3; - - var key = peg$currPos * 32 + 3, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s2 = peg$c7; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c8); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c9(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c10; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c11); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c12(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s2 = peg$c13; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c14); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c15(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 32) { - s1 = peg$c2; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c3); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c16(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsehasSelectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - var key = peg$currPos * 32 + 4, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parsehasSelector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c18); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c18); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parsehasSelector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseselectors() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - var key = peg$currPos * 32 + 5, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parseselector(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c18); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c17; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c18); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseselector(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c19(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsehasSelector() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 6, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parsebinaryOp(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseselector(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c20(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseselector() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 7, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parsesequence(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parsebinaryOp(); - if (s4 !== peg$FAILED) { - s5 = peg$parsesequence(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c21(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsesequence() { - var s0, s1, s2, s3; - - var key = peg$currPos * 32 + 8, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c23); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseatom(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseatom(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c24(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseatom() { - var s0; - - var key = peg$currPos * 32 + 9, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$parsewildcard(); - if (s0 === peg$FAILED) { - s0 = peg$parseidentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseattr(); - if (s0 === peg$FAILED) { - s0 = peg$parsefield(); - if (s0 === peg$FAILED) { - s0 = peg$parsenegation(); - if (s0 === peg$FAILED) { - s0 = peg$parsematches(); - if (s0 === peg$FAILED) { - s0 = peg$parsehas(); - if (s0 === peg$FAILED) { - s0 = peg$parsefirstChild(); - if (s0 === peg$FAILED) { - s0 = peg$parselastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthChild(); - if (s0 === peg$FAILED) { - s0 = peg$parsenthLastChild(); - if (s0 === peg$FAILED) { - s0 = peg$parseclass(); - } - } - } - } - } - } - } - } - } - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsewildcard() { - var s0, s1; - - var key = peg$currPos * 32 + 10, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c25; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c26); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c27(s1); - } - s0 = s1; - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseidentifier() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 11, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 35) { - s1 = peg$c28; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c29); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c30(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseattr() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 12, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c31; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c32); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrValue(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c33; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c35(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseattrOps() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 13, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (peg$c36.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c37); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c39); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - if (peg$c41.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c42); } - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseattrEqOps() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 14, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s1 = peg$c22; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c23); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s2 = peg$c38; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c39); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c40(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseattrName() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 15, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c43; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseidentifierName(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c45(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseattrValue() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 16, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrEqOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsetype(); - if (s5 === peg$FAILED) { - s5 = peg$parseregex(); - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseattrOps(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parsestring(); - if (s5 === peg$FAILED) { - s5 = peg$parsenumber(); - if (s5 === peg$FAILED) { - s5 = peg$parsepath(); - } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c46(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseattrName(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c47(s1); - } - s0 = s1; - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsestring() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 17, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c48; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c49); } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c51); } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c54); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c50.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c51); } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c54); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c48; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c49); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c57; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c58); } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c54); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c59.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - if (s3 === peg$FAILED) { - s3 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s4 = peg$c52; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s4 !== peg$FAILED) { - if (input.length > peg$currPos) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c54); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c55(s4, s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c57; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c58); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c56(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsenumber() { - var s0, s1, s2, s3; - - var key = peg$currPos * 32 + 18, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$currPos; - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c43; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c61.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c63(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsepath() { - var s0, s1; - - var key = peg$currPos * 32 + 19, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - s1 = peg$parseidentifierName(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c64(s1); - } - s0 = s1; - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsetype() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 20, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c65) { - s1 = peg$c65; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c66); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c68); } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c67.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c68); } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c71(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseflags() { - var s0, s1; - - var key = peg$currPos * 32 + 21, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = []; - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c73); } - } - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - if (peg$c72.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c73); } - } - } - } else { - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseregex() { - var s0, s1, s2, s3, s4; - - var key = peg$currPos * 32 + 22, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c74; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c75); } - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c77); } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c76.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c77); } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c74; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c75); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseflags(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c78(s2, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsefield() { - var s0, s1, s2, s3, s4, s5, s6; - - var key = peg$currPos * 32 + 23, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c43; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s5 = peg$c43; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parseidentifierName(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c79(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsenegation() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 24, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c80) { - s1 = peg$c80; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c81); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c82(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsematches() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 25, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c83) { - s1 = peg$c83; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseselectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c85(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsehas() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 26, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c86) { - s1 = peg$c86; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c87); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsehasSelectors(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c88(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsefirstChild() { - var s0, s1; - - var key = peg$currPos * 32 + 27, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 12) === peg$c89) { - s1 = peg$c89; - peg$currPos += 12; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c90); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c91(); - } - s0 = s1; - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parselastChild() { - var s0, s1; - - var key = peg$currPos * 32 + 28, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c92) { - s1 = peg$c92; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c93); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c94(); - } - s0 = s1; - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsenthChild() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 29, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 11) === peg$c95) { - s1 = peg$c95; - peg$currPos += 11; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c96); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c97(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parsenthLastChild() { - var s0, s1, s2, s3, s4, s5; - - var key = peg$currPos * 32 + 30, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.substr(peg$currPos, 16) === peg$c98) { - s1 = peg$c98; - peg$currPos += 16; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c99); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c61.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c69; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c100(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - function peg$parseclass() { - var s0, s1, s2; - - var key = peg$currPos * 32 + 31, - cached = peg$resultsCache[key]; - - if (cached) { - peg$currPos = cached.nextPos; - - return cached.result; - } - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c101; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c102); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseidentifierName(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c103(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; - - return s0; - } - - - function nth(n) { return { type: 'nth-child', index: { type: 'literal', value: n } }; } - function nthLast(n) { return { type: 'nth-last-child', index: { type: 'literal', value: n } }; } - function strUnescape(s) { - return s.replace(/\\(.)/g, function(match, ch) { - switch(ch) { - case 'b': return '\b'; - case 'f': return '\f'; - case 'n': return '\n'; - case 'r': return '\r'; - case 't': return '\t'; - case 'v': return '\v'; - default: return ch; - } - }); - } - - - peg$result = peg$startRuleFunction(); - - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - - throw peg$buildStructuredError( - peg$maxFailExpected, - peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, - peg$maxFailPos < input.length - ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) - : peg$computeLocation(peg$maxFailPos, peg$maxFailPos) - ); - } - } - - return { - SyntaxError: peg$SyntaxError, - parse: peg$parse - }; -}); diff --git a/graphql/node_modules/esrecurse/.babelrc b/graphql/node_modules/esrecurse/.babelrc deleted file mode 100644 index a0765e18..00000000 --- a/graphql/node_modules/esrecurse/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["es2015"] -} diff --git a/graphql/node_modules/esrecurse/README.md b/graphql/node_modules/esrecurse/README.md deleted file mode 100644 index ffea6b43..00000000 --- a/graphql/node_modules/esrecurse/README.md +++ /dev/null @@ -1,171 +0,0 @@ -### Esrecurse [![Build Status](https://travis-ci.org/estools/esrecurse.svg?branch=master)](https://travis-ci.org/estools/esrecurse) - -Esrecurse ([esrecurse](https://github.com/estools/esrecurse)) is -[ECMAScript](https://www.ecma-international.org/publications/standards/Ecma-262.htm) -recursive traversing functionality. - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -esrecurse.visit(ast, { - XXXStatement: function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); - } -}); -``` - -We can use `Visitor` instance. - -```javascript -var visitor = new esrecurse.Visitor({ - XXXStatement: function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); - } -}); - -visitor.visit(ast); -``` - -We can inherit `Visitor` instance easily. - -```javascript -class Derived extends esrecurse.Visitor { - constructor() - { - super(null); - } - - XXXStatement(node) { - } -} -``` - -```javascript -function DerivedVisitor() { - esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */); -} -util.inherits(DerivedVisitor, esrecurse.Visitor); -DerivedVisitor.prototype.XXXStatement = function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); -}; -``` - -And you can invoke default visiting operation inside custom visit operation. - -```javascript -function DerivedVisitor() { - esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */); -} -util.inherits(DerivedVisitor, esrecurse.Visitor); -DerivedVisitor.prototype.XXXStatement = function (node) { - // do something... - this.visitChildren(node); -}; -``` - -The `childVisitorKeys` option does customize the behaviour of `this.visitChildren(node)`. -We can use user-defined node types. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - // Extending the existing traversing rules. - childVisitorKeys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } - } -); -``` - -We can use the `fallback` option as well. -If the `fallback` option is `"iteration"`, `esrecurse` would visit all enumerable properties of unknown nodes. -Please note circular references cause the stack overflow. AST might have circular references in additional properties for some purpose (e.g. `node.parent`). - -```javascript -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - fallback: 'iteration' - } -); -``` - -If the `fallback` option is a function, `esrecurse` calls this function to determine the enumerable properties of unknown nodes. -Please note circular references cause the stack overflow. AST might have circular references in additional properties for some purpose (e.g. `node.parent`). - -```javascript -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - fallback: function (node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument' - }); - } - } -); -``` - -### License - -Copyright (C) 2014 [Yusuke Suzuki](https://github.com/Constellation) - (twitter: [@Constellation](https://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/esrecurse/esrecurse.js b/graphql/node_modules/esrecurse/esrecurse.js deleted file mode 100644 index 15d57dfd..00000000 --- a/graphql/node_modules/esrecurse/esrecurse.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -(function () { - 'use strict'; - - var estraverse = require('estraverse'); - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === estraverse.Syntax.ObjectExpression || nodeType === estraverse.Syntax.ObjectPattern) && key === 'properties'; - } - - function Visitor(visitor, options) { - options = options || {}; - - this.__visitor = visitor || this; - this.__childVisitorKeys = options.childVisitorKeys - ? Object.assign({}, estraverse.VisitorKeys, options.childVisitorKeys) - : estraverse.VisitorKeys; - if (options.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof options.fallback === 'function') { - this.__fallback = options.fallback; - } - } - - /* Default method for visiting children. - * When you need to call default visiting operation inside custom visiting - * operation, you can use it with `this.visitChildren(node)`. - */ - Visitor.prototype.visitChildren = function (node) { - var type, children, i, iz, j, jz, child; - - if (node == null) { - return; - } - - type = node.type || estraverse.Syntax.Property; - - children = this.__childVisitorKeys[type]; - if (!children) { - if (this.__fallback) { - children = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + type + '.'); - } - } - - for (i = 0, iz = children.length; i < iz; ++i) { - child = node[children[i]]; - if (child) { - if (Array.isArray(child)) { - for (j = 0, jz = child.length; j < jz; ++j) { - if (child[j]) { - if (isNode(child[j]) || isProperty(type, children[i])) { - this.visit(child[j]); - } - } - } - } else if (isNode(child)) { - this.visit(child); - } - } - } - }; - - /* Dispatching node. */ - Visitor.prototype.visit = function (node) { - var type; - - if (node == null) { - return; - } - - type = node.type || estraverse.Syntax.Property; - if (this.__visitor[type]) { - this.__visitor[type].call(this, node); - return; - } - this.visitChildren(node); - }; - - exports.version = require('./package.json').version; - exports.Visitor = Visitor; - exports.visit = function (node, visitor, options) { - var v = new Visitor(visitor, options); - v.visit(node); - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/esrecurse/gulpfile.babel.js b/graphql/node_modules/esrecurse/gulpfile.babel.js deleted file mode 100644 index aa881c9c..00000000 --- a/graphql/node_modules/esrecurse/gulpfile.babel.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (C) 2014 Yusuke Suzuki -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -// ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -import gulp from 'gulp'; -import mocha from 'gulp-mocha'; -import eslint from 'gulp-eslint'; -import minimist from 'minimist'; -import git from 'gulp-git'; -import bump from 'gulp-bump'; -import filter from 'gulp-filter'; -import tagVersion from 'gulp-tag-version'; -import 'babel-register'; - -const SOURCE = [ - '*.js' -]; - -let ESLINT_OPTION = { - parser: 'babel-eslint', - parserOptions: { - 'sourceType': 'module' - }, - rules: { - 'quotes': 0, - 'eqeqeq': 0, - 'no-use-before-define': 0, - 'no-shadow': 0, - 'no-new': 0, - 'no-underscore-dangle': 0, - 'no-multi-spaces': 0, - 'no-native-reassign': 0, - 'no-loop-func': 0 - }, - env: { - 'node': true - } -}; - -gulp.task('test', function() { - let options = minimist(process.argv.slice(2), { - string: 'test', - default: { - test: 'test/*.js' - } - } - ); - return gulp.src(options.test).pipe(mocha({reporter: 'spec'})); -}); - -gulp.task('lint', () => - gulp.src(SOURCE) - .pipe(eslint(ESLINT_OPTION)) - .pipe(eslint.formatEach('stylish', process.stderr)) - .pipe(eslint.failOnError()) -); - -let inc = importance => - gulp.src(['./package.json']) - .pipe(bump({type: importance})) - .pipe(gulp.dest('./')) - .pipe(git.commit('Bumps package version')) - .pipe(filter('package.json')) - .pipe(tagVersion({ - prefix: '' - })) -; - -gulp.task('travis', [ 'lint', 'test' ]); -gulp.task('default', [ 'travis' ]); - -gulp.task('patch', [ ], () => inc('patch')); -gulp.task('minor', [ ], () => inc('minor')); -gulp.task('major', [ ], () => inc('major')); diff --git a/graphql/node_modules/esrecurse/package.json b/graphql/node_modules/esrecurse/package.json deleted file mode 100755 index dec5b1bc..00000000 --- a/graphql/node_modules/esrecurse/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "esrecurse", - "description": "ECMAScript AST recursive visitor", - "homepage": "https://github.com/estools/esrecurse", - "main": "esrecurse.js", - "version": "4.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "https://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "https://github.com/estools/esrecurse.git" - }, - "dependencies": { - "estraverse": "^5.2.0" - }, - "devDependencies": { - "babel-cli": "^6.24.1", - "babel-eslint": "^7.2.3", - "babel-preset-es2015": "^6.24.1", - "babel-register": "^6.24.1", - "chai": "^4.0.2", - "esprima": "^4.0.0", - "gulp": "^3.9.0", - "gulp-bump": "^2.7.0", - "gulp-eslint": "^4.0.0", - "gulp-filter": "^5.0.0", - "gulp-git": "^2.4.1", - "gulp-mocha": "^4.3.1", - "gulp-tag-version": "^1.2.1", - "jsdoc": "^3.3.0-alpha10", - "minimist": "^1.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "gulp travis", - "unit-test": "gulp test", - "lint": "gulp lint" - }, - "babel": { - "presets": [ - "es2015" - ] - } -} diff --git a/graphql/node_modules/estraverse/.jshintrc b/graphql/node_modules/estraverse/.jshintrc deleted file mode 100644 index f642dae7..00000000 --- a/graphql/node_modules/estraverse/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "curly": true, - "eqeqeq": true, - "immed": true, - "eqnull": true, - "latedef": true, - "noarg": true, - "noempty": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - - "node": true -} diff --git a/graphql/node_modules/estraverse/LICENSE.BSD b/graphql/node_modules/estraverse/LICENSE.BSD deleted file mode 100644 index 3e580c35..00000000 --- a/graphql/node_modules/estraverse/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/estraverse/README.md b/graphql/node_modules/estraverse/README.md deleted file mode 100644 index ccd3377f..00000000 --- a/graphql/node_modules/estraverse/README.md +++ /dev/null @@ -1,153 +0,0 @@ -### Estraverse [![Build Status](https://secure.travis-ci.org/estools/estraverse.svg)](http://travis-ci.org/estools/estraverse) - -Estraverse ([estraverse](http://github.com/estools/estraverse)) is -[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -traversal functions from [esmangle project](http://github.com/estools/esmangle). - -### Documentation - -You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage). - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -estraverse.traverse(ast, { - enter: function (node, parent) { - if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration') - return estraverse.VisitorOption.Skip; - }, - leave: function (node, parent) { - if (node.type == 'VariableDeclarator') - console.log(node.id.name); - } -}); -``` - -We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break. - -```javascript -estraverse.traverse(ast, { - enter: function (node) { - this.break(); - } -}); -``` - -And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it. - -```javascript -result = estraverse.replace(tree, { - enter: function (node) { - // Replace it with replaced. - if (node.type === 'Literal') - return replaced; - } -}); -``` - -By passing `visitor.keys` mapping, we can extend estraverse traversing functionality. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Extending the existing traversing rules. - keys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } -}); -``` - -By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Iterating the child **nodes** of unknown nodes. - fallback: 'iteration' -}); -``` - -When `visitor.fallback` is a function, we can determine which keys to visit on each node. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Skip the `argument` property of each node - fallback: function(node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument'; - }); - } -}); -``` - -### License - -Copyright (C) 2012-2016 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/estraverse/estraverse.js b/graphql/node_modules/estraverse/estraverse.js deleted file mode 100644 index f0d9af9b..00000000 --- a/graphql/node_modules/estraverse/estraverse.js +++ /dev/null @@ -1,805 +0,0 @@ -/* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -/*jslint vars:false, bitwise:true*/ -/*jshint indent:4*/ -/*global exports:true*/ -(function clone(exports) { - 'use strict'; - - var Syntax, - VisitorOption, - VisitorKeys, - BREAK, - SKIP, - REMOVE; - - function deepCopy(obj) { - var ret = {}, key, val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - - len = array.length; - i = 0; - - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - PrivateIdentifier: 'PrivateIdentifier', - Program: 'Program', - Property: 'Property', - PropertyDefinition: 'PropertyDefinition', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - PrivateIdentifier: [], - Program: ['body'], - Property: ['key', 'value'], - PropertyDefinition: ['key', 'value'], - RestElement: [ 'argument' ], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - - function Controller() { } - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - - result = undefined; - - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - - Controller.prototype.__initialize = function(root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, - leavelist, - element, - node, - nodeType, - ret, - key, - current, - current2, - candidates, - candidate, - sentinel; - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - ret = this.__execute(visitor.leave, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - - if (element.node) { - - ret = this.__execute(visitor.enter, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || ret === SKIP) { - continue; - } - - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - - Controller.prototype.replace = function replace(root, visitor) { - var worklist, - leavelist, - node, - nodeType, - target, - element, - current, - current2, - candidates, - candidate, - sentinel, - outer, - key; - - function removeElem(element) { - var i, - key, - nextElem, - parent; - - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || target === SKIP) { - continue; - } - - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - - return outer.root; - }; - - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - - function extendCommentRange(comment, tokens) { - var target; - - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - - comment.extendedRange = [comment.range[0], comment.range[1]]; - - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - - return comment; - } - - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], comment, len, i, cursor; - - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - return tree; - } - - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { return clone({}); }; - - return exports; -}(exports)); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/estraverse/gulpfile.js b/graphql/node_modules/estraverse/gulpfile.js deleted file mode 100644 index 8772bbcc..00000000 --- a/graphql/node_modules/estraverse/gulpfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -'use strict'; - -var gulp = require('gulp'), - git = require('gulp-git'), - bump = require('gulp-bump'), - filter = require('gulp-filter'), - tagVersion = require('gulp-tag-version'); - -var TEST = [ 'test/*.js' ]; -var POWERED = [ 'powered-test/*.js' ]; -var SOURCE = [ 'src/**/*.js' ]; - -/** - * Bumping version number and tagging the repository with it. - * Please read http://semver.org/ - * - * You can use the commands - * - * gulp patch # makes v0.1.0 -> v0.1.1 - * gulp feature # makes v0.1.1 -> v0.2.0 - * gulp release # makes v0.2.1 -> v1.0.0 - * - * To bump the version numbers accordingly after you did a patch, - * introduced a feature or made a backwards-incompatible release. - */ - -function inc(importance) { - // get all the files to bump version in - return gulp.src(['./package.json']) - // bump the version number in those files - .pipe(bump({type: importance})) - // save it back to filesystem - .pipe(gulp.dest('./')) - // commit the changed version number - .pipe(git.commit('Bumps package version')) - // read only one file to get the version number - .pipe(filter('package.json')) - // **tag it in the repository** - .pipe(tagVersion({ - prefix: '' - })); -} - -gulp.task('patch', [ ], function () { return inc('patch'); }) -gulp.task('minor', [ ], function () { return inc('minor'); }) -gulp.task('major', [ ], function () { return inc('major'); }) diff --git a/graphql/node_modules/estraverse/package.json b/graphql/node_modules/estraverse/package.json deleted file mode 100644 index a8632185..00000000 --- a/graphql/node_modules/estraverse/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "estraverse", - "description": "ECMAScript JS AST traversal functions", - "homepage": "https://github.com/estools/estraverse", - "main": "estraverse.js", - "version": "5.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/estraverse.git" - }, - "devDependencies": { - "babel-preset-env": "^1.6.1", - "babel-register": "^6.3.13", - "chai": "^2.1.1", - "espree": "^1.11.0", - "gulp": "^3.8.10", - "gulp-bump": "^0.2.2", - "gulp-filter": "^2.0.0", - "gulp-git": "^1.0.1", - "gulp-tag-version": "^1.3.0", - "jshint": "^2.5.6", - "mocha": "^2.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint estraverse.js", - "unit-test": "mocha --compilers js:babel-register" - } -} diff --git a/graphql/node_modules/esutils/LICENSE.BSD b/graphql/node_modules/esutils/LICENSE.BSD deleted file mode 100644 index 3e580c35..00000000 --- a/graphql/node_modules/esutils/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/esutils/README.md b/graphql/node_modules/esutils/README.md deleted file mode 100644 index 517526cf..00000000 --- a/graphql/node_modules/esutils/README.md +++ /dev/null @@ -1,174 +0,0 @@ -### esutils [![Build Status](https://secure.travis-ci.org/estools/esutils.svg)](http://travis-ci.org/estools/esutils) -esutils ([esutils](http://github.com/estools/esutils)) is -utility box for ECMAScript language tools. - -### API - -### ast - -#### ast.isExpression(node) - -Returns true if `node` is an Expression as defined in ECMA262 edition 5.1 section -[11](https://es5.github.io/#x11). - -#### ast.isStatement(node) - -Returns true if `node` is a Statement as defined in ECMA262 edition 5.1 section -[12](https://es5.github.io/#x12). - -#### ast.isIterationStatement(node) - -Returns true if `node` is an IterationStatement as defined in ECMA262 edition -5.1 section [12.6](https://es5.github.io/#x12.6). - -#### ast.isSourceElement(node) - -Returns true if `node` is a SourceElement as defined in ECMA262 edition 5.1 -section [14](https://es5.github.io/#x14). - -#### ast.trailingStatement(node) - -Returns `Statement?` if `node` has trailing `Statement`. -```js -if (cond) - consequent; -``` -When taking this `IfStatement`, returns `consequent;` statement. - -#### ast.isProblematicIfStatement(node) - -Returns true if `node` is a problematic IfStatement. If `node` is a problematic `IfStatement`, `node` cannot be represented as an one on one JavaScript code. -```js -{ - type: 'IfStatement', - consequent: { - type: 'WithStatement', - body: { - type: 'IfStatement', - consequent: {type: 'EmptyStatement'} - } - }, - alternate: {type: 'EmptyStatement'} -} -``` -The above node cannot be represented as a JavaScript code, since the top level `else` alternate belongs to an inner `IfStatement`. - - -### code - -#### code.isDecimalDigit(code) - -Return true if provided code is decimal digit. - -#### code.isHexDigit(code) - -Return true if provided code is hexadecimal digit. - -#### code.isOctalDigit(code) - -Return true if provided code is octal digit. - -#### code.isWhiteSpace(code) - -Return true if provided code is white space. White space characters are formally defined in ECMA262. - -#### code.isLineTerminator(code) - -Return true if provided code is line terminator. Line terminator characters are formally defined in ECMA262. - -#### code.isIdentifierStart(code) - -Return true if provided code can be the first character of ECMA262 Identifier. They are formally defined in ECMA262. - -#### code.isIdentifierPart(code) - -Return true if provided code can be the trailing character of ECMA262 Identifier. They are formally defined in ECMA262. - -### keyword - -#### keyword.isKeywordES5(id, strict) - -Returns `true` if provided identifier string is a Keyword or Future Reserved Word -in ECMA262 edition 5.1. They are formally defined in ECMA262 sections -[7.6.1.1](http://es5.github.io/#x7.6.1.1) and [7.6.1.2](http://es5.github.io/#x7.6.1.2), -respectively. If the `strict` flag is truthy, this function additionally checks whether -`id` is a Keyword or Future Reserved Word under strict mode. - -#### keyword.isKeywordES6(id, strict) - -Returns `true` if provided identifier string is a Keyword or Future Reserved Word -in ECMA262 edition 6. They are formally defined in ECMA262 sections -[11.6.2.1](http://ecma-international.org/ecma-262/6.0/#sec-keywords) and -[11.6.2.2](http://ecma-international.org/ecma-262/6.0/#sec-future-reserved-words), -respectively. If the `strict` flag is truthy, this function additionally checks whether -`id` is a Keyword or Future Reserved Word under strict mode. - -#### keyword.isReservedWordES5(id, strict) - -Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 5.1. -They are formally defined in ECMA262 section [7.6.1](http://es5.github.io/#x7.6.1). -If the `strict` flag is truthy, this function additionally checks whether `id` -is a Reserved Word under strict mode. - -#### keyword.isReservedWordES6(id, strict) - -Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 6. -They are formally defined in ECMA262 section [11.6.2](http://ecma-international.org/ecma-262/6.0/#sec-reserved-words). -If the `strict` flag is truthy, this function additionally checks whether `id` -is a Reserved Word under strict mode. - -#### keyword.isRestrictedWord(id) - -Returns `true` if provided identifier string is one of `eval` or `arguments`. -They are restricted in strict mode code throughout ECMA262 edition 5.1 and -in ECMA262 edition 6 section [12.1.1](http://ecma-international.org/ecma-262/6.0/#sec-identifiers-static-semantics-early-errors). - -#### keyword.isIdentifierNameES5(id) - -Return true if provided identifier string is an IdentifierName as specified in -ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). - -#### keyword.isIdentifierNameES6(id) - -Return true if provided identifier string is an IdentifierName as specified in -ECMA262 edition 6 section [11.6](http://ecma-international.org/ecma-262/6.0/#sec-names-and-keywords). - -#### keyword.isIdentifierES5(id, strict) - -Return true if provided identifier string is an Identifier as specified in -ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). If the `strict` -flag is truthy, this function additionally checks whether `id` is an Identifier -under strict mode. - -#### keyword.isIdentifierES6(id, strict) - -Return true if provided identifier string is an Identifier as specified in -ECMA262 edition 6 section [12.1](http://ecma-international.org/ecma-262/6.0/#sec-identifiers). -If the `strict` flag is truthy, this function additionally checks whether `id` -is an Identifier under strict mode. - -### License - -Copyright (C) 2013 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/graphql/node_modules/esutils/lib/ast.js b/graphql/node_modules/esutils/lib/ast.js deleted file mode 100644 index 8faadae1..00000000 --- a/graphql/node_modules/esutils/lib/ast.js +++ /dev/null @@ -1,144 +0,0 @@ -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - function isExpression(node) { - if (node == null) { return false; } - switch (node.type) { - case 'ArrayExpression': - case 'AssignmentExpression': - case 'BinaryExpression': - case 'CallExpression': - case 'ConditionalExpression': - case 'FunctionExpression': - case 'Identifier': - case 'Literal': - case 'LogicalExpression': - case 'MemberExpression': - case 'NewExpression': - case 'ObjectExpression': - case 'SequenceExpression': - case 'ThisExpression': - case 'UnaryExpression': - case 'UpdateExpression': - return true; - } - return false; - } - - function isIterationStatement(node) { - if (node == null) { return false; } - switch (node.type) { - case 'DoWhileStatement': - case 'ForInStatement': - case 'ForStatement': - case 'WhileStatement': - return true; - } - return false; - } - - function isStatement(node) { - if (node == null) { return false; } - switch (node.type) { - case 'BlockStatement': - case 'BreakStatement': - case 'ContinueStatement': - case 'DebuggerStatement': - case 'DoWhileStatement': - case 'EmptyStatement': - case 'ExpressionStatement': - case 'ForInStatement': - case 'ForStatement': - case 'IfStatement': - case 'LabeledStatement': - case 'ReturnStatement': - case 'SwitchStatement': - case 'ThrowStatement': - case 'TryStatement': - case 'VariableDeclaration': - case 'WhileStatement': - case 'WithStatement': - return true; - } - return false; - } - - function isSourceElement(node) { - return isStatement(node) || node != null && node.type === 'FunctionDeclaration'; - } - - function trailingStatement(node) { - switch (node.type) { - case 'IfStatement': - if (node.alternate != null) { - return node.alternate; - } - return node.consequent; - - case 'LabeledStatement': - case 'ForStatement': - case 'ForInStatement': - case 'WhileStatement': - case 'WithStatement': - return node.body; - } - return null; - } - - function isProblematicIfStatement(node) { - var current; - - if (node.type !== 'IfStatement') { - return false; - } - if (node.alternate == null) { - return false; - } - current = node.consequent; - do { - if (current.type === 'IfStatement') { - if (current.alternate == null) { - return true; - } - } - current = trailingStatement(current); - } while (current); - - return false; - } - - module.exports = { - isExpression: isExpression, - isStatement: isStatement, - isIterationStatement: isIterationStatement, - isSourceElement: isSourceElement, - isProblematicIfStatement: isProblematicIfStatement, - - trailingStatement: trailingStatement - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/esutils/lib/code.js b/graphql/node_modules/esutils/lib/code.js deleted file mode 100644 index 23136af9..00000000 --- a/graphql/node_modules/esutils/lib/code.js +++ /dev/null @@ -1,135 +0,0 @@ -/* - Copyright (C) 2013-2014 Yusuke Suzuki - Copyright (C) 2014 Ivan Nikulin - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - var ES6Regex, ES5Regex, NON_ASCII_WHITESPACES, IDENTIFIER_START, IDENTIFIER_PART, ch; - - // See `tools/generate-identifier-regex.js`. - ES5Regex = { - // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierStart: - NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, - // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierPart: - NonAsciiIdentifierPart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BB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256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/ - }; - - ES6Regex = { - // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierStart: - NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, - // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierPart: - NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0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-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09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\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ - }; - - function isDecimalDigit(ch) { - return 0x30 <= ch && ch <= 0x39; // 0..9 - } - - function isHexDigit(ch) { - return 0x30 <= ch && ch <= 0x39 || // 0..9 - 0x61 <= ch && ch <= 0x66 || // a..f - 0x41 <= ch && ch <= 0x46; // A..F - } - - function isOctalDigit(ch) { - return ch >= 0x30 && ch <= 0x37; // 0..7 - } - - // 7.2 White Space - - NON_ASCII_WHITESPACES = [ - 0x1680, - 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, - 0x202F, 0x205F, - 0x3000, - 0xFEFF - ]; - - function isWhiteSpace(ch) { - return ch === 0x20 || ch === 0x09 || ch === 0x0B || ch === 0x0C || ch === 0xA0 || - ch >= 0x1680 && NON_ASCII_WHITESPACES.indexOf(ch) >= 0; - } - - // 7.3 Line Terminators - - function isLineTerminator(ch) { - return ch === 0x0A || ch === 0x0D || ch === 0x2028 || ch === 0x2029; - } - - // 7.6 Identifier Names and Identifiers - - function fromCodePoint(cp) { - if (cp <= 0xFFFF) { return String.fromCharCode(cp); } - var cu1 = String.fromCharCode(Math.floor((cp - 0x10000) / 0x400) + 0xD800); - var cu2 = String.fromCharCode(((cp - 0x10000) % 0x400) + 0xDC00); - return cu1 + cu2; - } - - IDENTIFIER_START = new Array(0x80); - for(ch = 0; ch < 0x80; ++ch) { - IDENTIFIER_START[ch] = - ch >= 0x61 && ch <= 0x7A || // a..z - ch >= 0x41 && ch <= 0x5A || // A..Z - ch === 0x24 || ch === 0x5F; // $ (dollar) and _ (underscore) - } - - IDENTIFIER_PART = new Array(0x80); - for(ch = 0; ch < 0x80; ++ch) { - IDENTIFIER_PART[ch] = - ch >= 0x61 && ch <= 0x7A || // a..z - ch >= 0x41 && ch <= 0x5A || // A..Z - ch >= 0x30 && ch <= 0x39 || // 0..9 - ch === 0x24 || ch === 0x5F; // $ (dollar) and _ (underscore) - } - - function isIdentifierStartES5(ch) { - return ch < 0x80 ? IDENTIFIER_START[ch] : ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch)); - } - - function isIdentifierPartES5(ch) { - return ch < 0x80 ? IDENTIFIER_PART[ch] : ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch)); - } - - function isIdentifierStartES6(ch) { - return ch < 0x80 ? IDENTIFIER_START[ch] : ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch)); - } - - function isIdentifierPartES6(ch) { - return ch < 0x80 ? IDENTIFIER_PART[ch] : ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch)); - } - - module.exports = { - isDecimalDigit: isDecimalDigit, - isHexDigit: isHexDigit, - isOctalDigit: isOctalDigit, - isWhiteSpace: isWhiteSpace, - isLineTerminator: isLineTerminator, - isIdentifierStartES5: isIdentifierStartES5, - isIdentifierPartES5: isIdentifierPartES5, - isIdentifierStartES6: isIdentifierStartES6, - isIdentifierPartES6: isIdentifierPartES6 - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/esutils/lib/keyword.js b/graphql/node_modules/esutils/lib/keyword.js deleted file mode 100644 index 13c8c6a9..00000000 --- a/graphql/node_modules/esutils/lib/keyword.js +++ /dev/null @@ -1,165 +0,0 @@ -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - var code = require('./code'); - - function isStrictModeReservedWordES6(id) { - switch (id) { - case 'implements': - case 'interface': - case 'package': - case 'private': - case 'protected': - case 'public': - case 'static': - case 'let': - return true; - default: - return false; - } - } - - function isKeywordES5(id, strict) { - // yield should not be treated as keyword under non-strict mode. - if (!strict && id === 'yield') { - return false; - } - return isKeywordES6(id, strict); - } - - function isKeywordES6(id, strict) { - if (strict && isStrictModeReservedWordES6(id)) { - return true; - } - - switch (id.length) { - case 2: - return (id === 'if') || (id === 'in') || (id === 'do'); - case 3: - return (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try'); - case 4: - return (id === 'this') || (id === 'else') || (id === 'case') || - (id === 'void') || (id === 'with') || (id === 'enum'); - case 5: - return (id === 'while') || (id === 'break') || (id === 'catch') || - (id === 'throw') || (id === 'const') || (id === 'yield') || - (id === 'class') || (id === 'super'); - case 6: - return (id === 'return') || (id === 'typeof') || (id === 'delete') || - (id === 'switch') || (id === 'export') || (id === 'import'); - case 7: - return (id === 'default') || (id === 'finally') || (id === 'extends'); - case 8: - return (id === 'function') || (id === 'continue') || (id === 'debugger'); - case 10: - return (id === 'instanceof'); - default: - return false; - } - } - - function isReservedWordES5(id, strict) { - return id === 'null' || id === 'true' || id === 'false' || isKeywordES5(id, strict); - } - - function isReservedWordES6(id, strict) { - return id === 'null' || id === 'true' || id === 'false' || isKeywordES6(id, strict); - } - - function isRestrictedWord(id) { - return id === 'eval' || id === 'arguments'; - } - - function isIdentifierNameES5(id) { - var i, iz, ch; - - if (id.length === 0) { return false; } - - ch = id.charCodeAt(0); - if (!code.isIdentifierStartES5(ch)) { - return false; - } - - for (i = 1, iz = id.length; i < iz; ++i) { - ch = id.charCodeAt(i); - if (!code.isIdentifierPartES5(ch)) { - return false; - } - } - return true; - } - - function decodeUtf16(lead, trail) { - return (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; - } - - function isIdentifierNameES6(id) { - var i, iz, ch, lowCh, check; - - if (id.length === 0) { return false; } - - check = code.isIdentifierStartES6; - for (i = 0, iz = id.length; i < iz; ++i) { - ch = id.charCodeAt(i); - if (0xD800 <= ch && ch <= 0xDBFF) { - ++i; - if (i >= iz) { return false; } - lowCh = id.charCodeAt(i); - if (!(0xDC00 <= lowCh && lowCh <= 0xDFFF)) { - return false; - } - ch = decodeUtf16(ch, lowCh); - } - if (!check(ch)) { - return false; - } - check = code.isIdentifierPartES6; - } - return true; - } - - function isIdentifierES5(id, strict) { - return isIdentifierNameES5(id) && !isReservedWordES5(id, strict); - } - - function isIdentifierES6(id, strict) { - return isIdentifierNameES6(id) && !isReservedWordES6(id, strict); - } - - module.exports = { - isKeywordES5: isKeywordES5, - isKeywordES6: isKeywordES6, - isReservedWordES5: isReservedWordES5, - isReservedWordES6: isReservedWordES6, - isRestrictedWord: isRestrictedWord, - isIdentifierNameES5: isIdentifierNameES5, - isIdentifierNameES6: isIdentifierNameES6, - isIdentifierES5: isIdentifierES5, - isIdentifierES6: isIdentifierES6 - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/esutils/lib/utils.js b/graphql/node_modules/esutils/lib/utils.js deleted file mode 100644 index ce18faa6..00000000 --- a/graphql/node_modules/esutils/lib/utils.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - - -(function () { - 'use strict'; - - exports.ast = require('./ast'); - exports.code = require('./code'); - exports.keyword = require('./keyword'); -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/graphql/node_modules/esutils/package.json b/graphql/node_modules/esutils/package.json deleted file mode 100644 index 8396f4ce..00000000 --- a/graphql/node_modules/esutils/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "esutils", - "description": "utility box for ECMAScript language tools", - "homepage": "https://github.com/estools/esutils", - "main": "lib/utils.js", - "version": "2.0.3", - "engines": { - "node": ">=0.10.0" - }, - "directories": { - "lib": "./lib" - }, - "files": [ - "LICENSE.BSD", - "README.md", - "lib" - ], - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/esutils.git" - }, - "devDependencies": { - "chai": "~1.7.2", - "coffee-script": "~1.6.3", - "jshint": "2.6.3", - "mocha": "~2.2.1", - "regenerate": "~1.3.1", - "unicode-9.0.0": "~0.7.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint lib/*.js", - "unit-test": "mocha --compilers coffee:coffee-script -R spec", - "generate-regex": "node tools/generate-identifier-regex.js" - } -} diff --git a/graphql/node_modules/fast-deep-equal/LICENSE b/graphql/node_modules/fast-deep-equal/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/graphql/node_modules/fast-deep-equal/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/fast-deep-equal/README.md b/graphql/node_modules/fast-deep-equal/README.md deleted file mode 100644 index d3f4ffcc..00000000 --- a/graphql/node_modules/fast-deep-equal/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# fast-deep-equal -The fastest deep equal with ES6 Map, Set and Typed arrays support. - -[![Build Status](https://travis-ci.org/epoberezkin/fast-deep-equal.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-deep-equal) -[![npm](https://img.shields.io/npm/v/fast-deep-equal.svg)](https://www.npmjs.com/package/fast-deep-equal) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-deep-equal/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-deep-equal?branch=master) - - -## Install - -```bash -npm install fast-deep-equal -``` - - -## Features - -- ES5 compatible -- works in node.js (8+) and browsers (IE9+) -- checks equality of Date and RegExp objects by value. - -ES6 equal (`require('fast-deep-equal/es6')`) also supports: -- Maps -- Sets -- Typed arrays - - -## Usage - -```javascript -var equal = require('fast-deep-equal'); -console.log(equal({foo: 'bar'}, {foo: 'bar'})); // true -``` - -To support ES6 Maps, Sets and Typed arrays equality use: - -```javascript -var equal = require('fast-deep-equal/es6'); -console.log(equal(Int16Array([1, 2]), Int16Array([1, 2]))); // true -``` - -To use with React (avoiding the traversal of React elements' _owner -property that contains circular references and is not needed when -comparing the elements - borrowed from [react-fast-compare](https://github.com/FormidableLabs/react-fast-compare)): - -```javascript -var equal = require('fast-deep-equal/react'); -var equal = require('fast-deep-equal/es6/react'); -``` - - -## Performance benchmark - -Node.js v12.6.0: - -``` -fast-deep-equal x 261,950 ops/sec ±0.52% (89 runs sampled) -fast-deep-equal/es6 x 212,991 ops/sec ±0.34% (92 runs sampled) -fast-equals x 230,957 ops/sec ±0.83% (85 runs sampled) -nano-equal x 187,995 ops/sec ±0.53% (88 runs sampled) -shallow-equal-fuzzy x 138,302 ops/sec ±0.49% (90 runs sampled) -underscore.isEqual x 74,423 ops/sec ±0.38% (89 runs sampled) -lodash.isEqual x 36,637 ops/sec ±0.72% (90 runs sampled) -deep-equal x 2,310 ops/sec ±0.37% (90 runs sampled) -deep-eql x 35,312 ops/sec ±0.67% (91 runs sampled) -ramda.equals x 12,054 ops/sec ±0.40% (91 runs sampled) -util.isDeepStrictEqual x 46,440 ops/sec ±0.43% (90 runs sampled) -assert.deepStrictEqual x 456 ops/sec ±0.71% (88 runs sampled) - -The fastest is fast-deep-equal -``` - -To run benchmark (requires node.js 6+): - -```bash -npm run benchmark -``` - -__Please note__: this benchmark runs against the available test cases. To choose the most performant library for your application, it is recommended to benchmark against your data and to NOT expect this benchmark to reflect the performance difference in your application. - - -## Enterprise support - -fast-deep-equal package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-deep-equal?utm_source=npm-fast-deep-equal&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/fast-deep-equal/blob/master/LICENSE) diff --git a/graphql/node_modules/fast-deep-equal/es6/index.d.ts b/graphql/node_modules/fast-deep-equal/es6/index.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/graphql/node_modules/fast-deep-equal/es6/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/graphql/node_modules/fast-deep-equal/es6/index.js b/graphql/node_modules/fast-deep-equal/es6/index.js deleted file mode 100644 index d980be25..00000000 --- a/graphql/node_modules/fast-deep-equal/es6/index.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - if ((a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - for (i of a.entries()) - if (!equal(i[1], b.get(i[0]))) return false; - return true; - } - - if ((a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - return true; - } - - if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/graphql/node_modules/fast-deep-equal/es6/react.d.ts b/graphql/node_modules/fast-deep-equal/es6/react.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/graphql/node_modules/fast-deep-equal/es6/react.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/graphql/node_modules/fast-deep-equal/es6/react.js b/graphql/node_modules/fast-deep-equal/es6/react.js deleted file mode 100644 index 98e2f9b7..00000000 --- a/graphql/node_modules/fast-deep-equal/es6/react.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - if ((a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - for (i of a.entries()) - if (!equal(i[1], b.get(i[0]))) return false; - return true; - } - - if ((a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - return true; - } - - if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (key === '_owner' && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner. - // _owner contains circular references - // and is not needed when comparing the actual elements (and not their owners) - continue; - } - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/graphql/node_modules/fast-deep-equal/index.d.ts b/graphql/node_modules/fast-deep-equal/index.d.ts deleted file mode 100644 index 3c042caa..00000000 --- a/graphql/node_modules/fast-deep-equal/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'fast-deep-equal' { - const equal: (a: any, b: any) => boolean; - export = equal; -} diff --git a/graphql/node_modules/fast-deep-equal/index.js b/graphql/node_modules/fast-deep-equal/index.js deleted file mode 100644 index 30dd1ba7..00000000 --- a/graphql/node_modules/fast-deep-equal/index.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/graphql/node_modules/fast-deep-equal/package.json b/graphql/node_modules/fast-deep-equal/package.json deleted file mode 100644 index 3cfe66c6..00000000 --- a/graphql/node_modules/fast-deep-equal/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "fast-deep-equal", - "version": "3.1.3", - "description": "Fast deep equal", - "main": "index.js", - "scripts": { - "eslint": "eslint *.js benchmark/*.js spec/*.js", - "build": "node build", - "benchmark": "npm i && npm run build && cd ./benchmark && npm i && node ./", - "test-spec": "mocha spec/*.spec.js -R spec", - "test-cov": "nyc npm run test-spec", - "test-ts": "tsc --target ES5 --noImplicitAny index.d.ts", - "test": "npm run build && npm run eslint && npm run test-ts && npm run test-cov", - "prepublish": "npm run build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/epoberezkin/fast-deep-equal.git" - }, - "keywords": [ - "fast", - "equal", - "deep-equal" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": { - "url": "https://github.com/epoberezkin/fast-deep-equal/issues" - }, - "homepage": "https://github.com/epoberezkin/fast-deep-equal#readme", - "devDependencies": { - "coveralls": "^3.1.0", - "dot": "^1.1.2", - "eslint": "^7.2.0", - "mocha": "^7.2.0", - "nyc": "^15.1.0", - "pre-commit": "^1.2.2", - "react": "^16.12.0", - "react-test-renderer": "^16.12.0", - "sinon": "^9.0.2", - "typescript": "^3.9.5" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "files": [ - "index.js", - "index.d.ts", - "react.js", - "react.d.ts", - "es6/" - ], - "types": "index.d.ts" -} diff --git a/graphql/node_modules/fast-deep-equal/react.d.ts b/graphql/node_modules/fast-deep-equal/react.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/graphql/node_modules/fast-deep-equal/react.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/graphql/node_modules/fast-deep-equal/react.js b/graphql/node_modules/fast-deep-equal/react.js deleted file mode 100644 index 3489b983..00000000 --- a/graphql/node_modules/fast-deep-equal/react.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (key === '_owner' && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner. - // _owner contains circular references - // and is not needed when comparing the actual elements (and not their owners) - continue; - } - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/graphql/node_modules/fast-glob/LICENSE b/graphql/node_modules/fast-glob/LICENSE deleted file mode 100644 index 65a99946..00000000 --- a/graphql/node_modules/fast-glob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Denis Malinochkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/fast-glob/README.md b/graphql/node_modules/fast-glob/README.md deleted file mode 100644 index 62d5cb7a..00000000 --- a/graphql/node_modules/fast-glob/README.md +++ /dev/null @@ -1,830 +0,0 @@ -# fast-glob - -> It's a very fast and efficient [glob][glob_definition] library for [Node.js][node_js]. - -This package provides methods for traversing the file system and returning pathnames that matched a defined set of a specified pattern according to the rules used by the Unix Bash shell with some simplifications, meanwhile results are returned in **arbitrary order**. Quick, simple, effective. - -## Table of Contents - -
-Details - -* [Highlights](#highlights) -* [Old and modern mode](#old-and-modern-mode) -* [Pattern syntax](#pattern-syntax) - * [Basic syntax](#basic-syntax) - * [Advanced syntax](#advanced-syntax) -* [Installation](#installation) -* [API](#api) - * [Asynchronous](#asynchronous) - * [Synchronous](#synchronous) - * [Stream](#stream) - * [patterns](#patterns) - * [[options]](#options) - * [Helpers](#helpers) - * [generateTasks](#generatetaskspatterns-options) - * [isDynamicPattern](#isdynamicpatternpattern-options) - * [escapePath](#escapepathpath) - * [convertPathToPattern](#convertpathtopatternpath) -* [Options](#options-3) - * [Common](#common) - * [concurrency](#concurrency) - * [cwd](#cwd) - * [deep](#deep) - * [followSymbolicLinks](#followsymboliclinks) - * [fs](#fs) - * [ignore](#ignore) - * [suppressErrors](#suppresserrors) - * [throwErrorOnBrokenSymbolicLink](#throwerroronbrokensymboliclink) - * [Output control](#output-control) - * [absolute](#absolute) - * [markDirectories](#markdirectories) - * [objectMode](#objectmode) - * [onlyDirectories](#onlydirectories) - * [onlyFiles](#onlyfiles) - * [stats](#stats) - * [unique](#unique) - * [Matching control](#matching-control) - * [braceExpansion](#braceexpansion) - * [caseSensitiveMatch](#casesensitivematch) - * [dot](#dot) - * [extglob](#extglob) - * [globstar](#globstar) - * [baseNameMatch](#basenamematch) -* [FAQ](#faq) - * [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern) - * [How to write patterns on Windows?](#how-to-write-patterns-on-windows) - * [Why are parentheses match wrong?](#why-are-parentheses-match-wrong) - * [How to exclude directory from reading?](#how-to-exclude-directory-from-reading) - * [How to use UNC path?](#how-to-use-unc-path) - * [Compatible with `node-glob`?](#compatible-with-node-glob) -* [Benchmarks](#benchmarks) - * [Server](#server) - * [Nettop](#nettop) -* [Changelog](#changelog) -* [License](#license) - -
- -## Highlights - -* Fast. Probably the fastest. -* Supports multiple and negative patterns. -* Synchronous, Promise and Stream API. -* Object mode. Can return more than just strings. -* Error-tolerant. - -## Old and modern mode - -This package works in two modes, depending on the environment in which it is used. - -* **Old mode**. Node.js below 10.10 or when the [`stats`](#stats) option is *enabled*. -* **Modern mode**. Node.js 10.10+ and the [`stats`](#stats) option is *disabled*. - -The modern mode is faster. Learn more about the [internal mechanism][nodelib_fs_scandir_old_and_modern_modern]. - -## Pattern syntax - -> :warning: Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters. - -There is more than one form of syntax: basic and advanced. Below is a brief overview of the supported features. Also pay attention to our [FAQ](#faq). - -> :book: This package uses [`micromatch`][micromatch] as a library for pattern matching. - -### Basic syntax - -* An asterisk (`*`) — matches everything except slashes (path separators), hidden files (names starting with `.`). -* A double star or globstar (`**`) — matches zero or more directories. -* Question mark (`?`) – matches any single character except slashes (path separators). -* Sequence (`[seq]`) — matches any character in sequence. - -> :book: A few additional words about the [basic matching behavior][picomatch_matching_behavior]. - -Some examples: - -* `src/**/*.js` — matches all files in the `src` directory (any level of nesting) that have the `.js` extension. -* `src/*.??` — matches all files in the `src` directory (only first level of nesting) that have a two-character extension. -* `file-[01].js` — matches files: `file-0.js`, `file-1.js`. - -### Advanced syntax - -* [Escapes characters][micromatch_backslashes] (`\\`) — matching special characters (`$^*+?()[]`) as literals. -* [POSIX character classes][picomatch_posix_brackets] (`[[:digit:]]`). -* [Extended globs][micromatch_extglobs] (`?(pattern-list)`). -* [Bash style brace expansions][micromatch_braces] (`{}`). -* [Regexp character classes][micromatch_regex_character_classes] (`[1-5]`). -* [Regex groups][regular_expressions_brackets] (`(a|b)`). - -> :book: A few additional words about the [advanced matching behavior][micromatch_extended_globbing]. - -Some examples: - -* `src/**/*.{css,scss}` — matches all files in the `src` directory (any level of nesting) that have the `.css` or `.scss` extension. -* `file-[[:digit:]].js` — matches files: `file-0.js`, `file-1.js`, …, `file-9.js`. -* `file-{1..3}.js` — matches files: `file-1.js`, `file-2.js`, `file-3.js`. -* `file-(1|2)` — matches files: `file-1.js`, `file-2.js`. - -## Installation - -```console -npm install fast-glob -``` - -## API - -### Asynchronous - -```js -fg(patterns, [options]) -fg.async(patterns, [options]) -fg.glob(patterns, [options]) -``` - -Returns a `Promise` with an array of matching entries. - -```js -const fg = require('fast-glob'); - -const entries = await fg(['.editorconfig', '**/index.js'], { dot: true }); - -// ['.editorconfig', 'services/index.js'] -``` - -### Synchronous - -```js -fg.sync(patterns, [options]) -fg.globSync(patterns, [options]) -``` - -Returns an array of matching entries. - -```js -const fg = require('fast-glob'); - -const entries = fg.sync(['.editorconfig', '**/index.js'], { dot: true }); - -// ['.editorconfig', 'services/index.js'] -``` - -### Stream - -```js -fg.stream(patterns, [options]) -fg.globStream(patterns, [options]) -``` - -Returns a [`ReadableStream`][node_js_stream_readable_streams] when the `data` event will be emitted with matching entry. - -```js -const fg = require('fast-glob'); - -const stream = fg.stream(['.editorconfig', '**/index.js'], { dot: true }); - -for await (const entry of stream) { - // .editorconfig - // services/index.js -} -``` - -#### patterns - -* Required: `true` -* Type: `string | string[]` - -Any correct pattern(s). - -> :1234: [Pattern syntax](#pattern-syntax) -> -> :warning: This package does not respect the order of patterns. First, all the negative patterns are applied, and only then the positive patterns. If you want to get a certain order of records, use sorting or split calls. - -#### [options] - -* Required: `false` -* Type: [`Options`](#options-3) - -See [Options](#options-3) section. - -### Helpers - -#### `generateTasks(patterns, [options])` - -Returns the internal representation of patterns ([`Task`](./src/managers/tasks.ts) is a combining patterns by base directory). - -```js -fg.generateTasks('*'); - -[{ - base: '.', // Parent directory for all patterns inside this task - dynamic: true, // Dynamic or static patterns are in this task - patterns: ['*'], - positive: ['*'], - negative: [] -}] -``` - -##### patterns - -* Required: `true` -* Type: `string | string[]` - -Any correct pattern(s). - -##### [options] - -* Required: `false` -* Type: [`Options`](#options-3) - -See [Options](#options-3) section. - -#### `isDynamicPattern(pattern, [options])` - -Returns `true` if the passed pattern is a dynamic pattern. - -> :1234: [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern) - -```js -fg.isDynamicPattern('*'); // true -fg.isDynamicPattern('abc'); // false -``` - -##### pattern - -* Required: `true` -* Type: `string` - -Any correct pattern. - -##### [options] - -* Required: `false` -* Type: [`Options`](#options-3) - -See [Options](#options-3) section. - -#### `escapePath(path)` - -Returns the path with escaped special characters depending on the platform. - -* Posix: - * `*?|(){}[]`; - * `!` at the beginning of line; - * `@+!` before the opening parenthesis; - * `\\` before non-special characters; -* Windows: - * `(){}[]` - * `!` at the beginning of line; - * `@+!` before the opening parenthesis; - * Characters like `*?|` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped; - -```js -fg.escapePath('!abc'); -// \\!abc -fg.escapePath('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac' -// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac - -fg.posix.escapePath('C:\\Program Files (x86)\\**\\*'); -// C:\\\\Program Files \\(x86\\)\\*\\*\\* -fg.win32.escapePath('C:\\Program Files (x86)\\**\\*'); -// Windows: C:\\Program Files \\(x86\\)\\**\\* -``` - -#### `convertPathToPattern(path)` - -Converts a path to a pattern depending on the platform, including special character escaping. - -* Posix. Works similarly to the `fg.posix.escapePath` method. -* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}[]`). - -```js -fg.convertPathToPattern('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac'; -// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac - -fg.convertPathToPattern('C:/Program Files (x86)/**/*'); -// Posix: C:/Program Files \\(x86\\)/\\*\\*/\\* -// Windows: C:/Program Files \\(x86\\)/**/* - -fg.convertPathToPattern('C:\\Program Files (x86)\\**\\*'); -// Posix: C:\\\\Program Files \\(x86\\)\\*\\*\\* -// Windows: C:/Program Files \\(x86\\)/**/* - -fg.posix.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*'; -// Posix: \\\\\\?\\\\c:\\\\Program Files \\(x86\\)/**/* (broken pattern) -fg.win32.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*'; -// Windows: //?/c:/Program Files \\(x86\\)/**/* -``` - -## Options - -### Common options - -#### concurrency - -* Type: `number` -* Default: `os.cpus().length` - -Specifies the maximum number of concurrent requests from a reader to read directories. - -> :book: The higher the number, the higher the performance and load on the file system. If you want to read in quiet mode, set the value to a comfortable number or `1`. - -
- -More details - -In Node, there are [two types of threads][nodejs_thread_pool]: Event Loop (code) and a Thread Pool (fs, dns, …). The thread pool size controlled by the `UV_THREADPOOL_SIZE` environment variable. Its default size is 4 ([documentation][libuv_thread_pool]). The pool is one for all tasks within a single Node process. - -Any code can make 4 real concurrent accesses to the file system. The rest of the FS requests will wait in the queue. - -> :book: Each new instance of FG in the same Node process will use the same Thread pool. - -But this package also has the `concurrency` option. This option allows you to control the number of concurrent accesses to the FS at the package level. By default, this package has a value equal to the number of cores available for the current Node process. This allows you to set a value smaller than the pool size (`concurrency: 1`) or, conversely, to prepare tasks for the pool queue more quickly (`concurrency: Number.POSITIVE_INFINITY`). - -So, in fact, this package can **only make 4 concurrent requests to the FS**. You can increase this value by using an environment variable (`UV_THREADPOOL_SIZE`), but in practice this does not give a multiple advantage. - -
- -#### cwd - -* Type: `string` -* Default: `process.cwd()` - -The current working directory in which to search. - -#### deep - -* Type: `number` -* Default: `Infinity` - -Specifies the maximum depth of a read directory relative to the start directory. - -For example, you have the following tree: - -```js -dir/ -└── one/ // 1 - └── two/ // 2 - └── file.js // 3 -``` - -```js -// With base directory -fg.sync('dir/**', { onlyFiles: false, deep: 1 }); // ['dir/one'] -fg.sync('dir/**', { onlyFiles: false, deep: 2 }); // ['dir/one', 'dir/one/two'] - -// With cwd option -fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 1 }); // ['one'] -fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 2 }); // ['one', 'one/two'] -``` - -> :book: If you specify a pattern with some base directory, this directory will not participate in the calculation of the depth of the found directories. Think of it as a [`cwd`](#cwd) option. - -#### followSymbolicLinks - -* Type: `boolean` -* Default: `true` - -Indicates whether to traverse descendants of symbolic link directories when expanding `**` patterns. - -> :book: Note that this option does not affect the base directory of the pattern. For example, if `./a` is a symlink to directory `./b` and you specified `['./a**', './b/**']` patterns, then directory `./a` will still be read. - -> :book: If the [`stats`](#stats) option is specified, the information about the symbolic link (`fs.lstat`) will be replaced with information about the entry (`fs.stat`) behind it. - -#### fs - -* Type: `FileSystemAdapter` -* Default: `fs.*` - -Custom implementation of methods for working with the file system. - -```ts -export interface FileSystemAdapter { - lstat?: typeof fs.lstat; - stat?: typeof fs.stat; - lstatSync?: typeof fs.lstatSync; - statSync?: typeof fs.statSync; - readdir?: typeof fs.readdir; - readdirSync?: typeof fs.readdirSync; -} -``` - -#### ignore - -* Type: `string[]` -* Default: `[]` - -An array of glob patterns to exclude matches. This is an alternative way to use negative patterns. - -```js -dir/ -├── package-lock.json -└── package.json -``` - -```js -fg.sync(['*.json', '!package-lock.json']); // ['package.json'] -fg.sync('*.json', { ignore: ['package-lock.json'] }); // ['package.json'] -``` - -#### suppressErrors - -* Type: `boolean` -* Default: `false` - -By default this package suppress only `ENOENT` errors. Set to `true` to suppress any error. - -> :book: Can be useful when the directory has entries with a special level of access. - -#### throwErrorOnBrokenSymbolicLink - -* Type: `boolean` -* Default: `false` - -Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. - -> :book: This option has no effect on errors when reading the symbolic link directory. - -### Output control - -#### absolute - -* Type: `boolean` -* Default: `false` - -Return the absolute path for entries. - -```js -fg.sync('*.js', { absolute: false }); // ['index.js'] -fg.sync('*.js', { absolute: true }); // ['/home/user/index.js'] -``` - -> :book: This option is required if you want to use negative patterns with absolute path, for example, `!${__dirname}/*.js`. - -#### markDirectories - -* Type: `boolean` -* Default: `false` - -Mark the directory path with the final slash. - -```js -fg.sync('*', { onlyFiles: false, markDirectories: false }); // ['index.js', 'controllers'] -fg.sync('*', { onlyFiles: false, markDirectories: true }); // ['index.js', 'controllers/'] -``` - -#### objectMode - -* Type: `boolean` -* Default: `false` - -Returns objects (instead of strings) describing entries. - -```js -fg.sync('*', { objectMode: false }); // ['src/index.js'] -fg.sync('*', { objectMode: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: }] -``` - -The object has the following fields: - -* name (`string`) — the last part of the path (basename) -* path (`string`) — full path relative to the pattern base directory -* dirent ([`fs.Dirent`][node_js_fs_class_fs_dirent]) — instance of `fs.Dirent` - -> :book: An object is an internal representation of entry, so getting it does not affect performance. - -#### onlyDirectories - -* Type: `boolean` -* Default: `false` - -Return only directories. - -```js -fg.sync('*', { onlyDirectories: false }); // ['index.js', 'src'] -fg.sync('*', { onlyDirectories: true }); // ['src'] -``` - -> :book: If `true`, the [`onlyFiles`](#onlyfiles) option is automatically `false`. - -#### onlyFiles - -* Type: `boolean` -* Default: `true` - -Return only files. - -```js -fg.sync('*', { onlyFiles: false }); // ['index.js', 'src'] -fg.sync('*', { onlyFiles: true }); // ['index.js'] -``` - -#### stats - -* Type: `boolean` -* Default: `false` - -Enables an [object mode](#objectmode) with an additional field: - -* stats ([`fs.Stats`][node_js_fs_class_fs_stats]) — instance of `fs.Stats` - -```js -fg.sync('*', { stats: false }); // ['src/index.js'] -fg.sync('*', { stats: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: , stats: }] -``` - -> :book: Returns `fs.stat` instead of `fs.lstat` for symbolic links when the [`followSymbolicLinks`](#followsymboliclinks) option is specified. -> -> :warning: Unlike [object mode](#objectmode) this mode requires additional calls to the file system. On average, this mode is slower at least twice. See [old and modern mode](#old-and-modern-mode) for more details. - -#### unique - -* Type: `boolean` -* Default: `true` - -Ensures that the returned entries are unique. - -```js -fg.sync(['*.json', 'package.json'], { unique: false }); // ['package.json', 'package.json'] -fg.sync(['*.json', 'package.json'], { unique: true }); // ['package.json'] -``` - -If `true` and similar entries are found, the result is the first found. - -### Matching control - -#### braceExpansion - -* Type: `boolean` -* Default: `true` - -Enables Bash-like brace expansion. - -> :1234: [Syntax description][bash_hackers_syntax_expansion_brace] or more [detailed description][micromatch_braces]. - -```js -dir/ -├── abd -├── acd -└── a{b,c}d -``` - -```js -fg.sync('a{b,c}d', { braceExpansion: false }); // ['a{b,c}d'] -fg.sync('a{b,c}d', { braceExpansion: true }); // ['abd', 'acd'] -``` - -#### caseSensitiveMatch - -* Type: `boolean` -* Default: `true` - -Enables a [case-sensitive][wikipedia_case_sensitivity] mode for matching files. - -```js -dir/ -├── file.txt -└── File.txt -``` - -```js -fg.sync('file.txt', { caseSensitiveMatch: false }); // ['file.txt', 'File.txt'] -fg.sync('file.txt', { caseSensitiveMatch: true }); // ['file.txt'] -``` - -#### dot - -* Type: `boolean` -* Default: `false` - -Allow patterns to match entries that begin with a period (`.`). - -> :book: Note that an explicit dot in a portion of the pattern will always match dot files. - -```js -dir/ -├── .editorconfig -└── package.json -``` - -```js -fg.sync('*', { dot: false }); // ['package.json'] -fg.sync('*', { dot: true }); // ['.editorconfig', 'package.json'] -``` - -#### extglob - -* Type: `boolean` -* Default: `true` - -Enables Bash-like `extglob` functionality. - -> :1234: [Syntax description][micromatch_extglobs]. - -```js -dir/ -├── README.md -└── package.json -``` - -```js -fg.sync('*.+(json|md)', { extglob: false }); // [] -fg.sync('*.+(json|md)', { extglob: true }); // ['README.md', 'package.json'] -``` - -#### globstar - -* Type: `boolean` -* Default: `true` - -Enables recursively repeats a pattern containing `**`. If `false`, `**` behaves exactly like `*`. - -```js -dir/ -└── a - └── b -``` - -```js -fg.sync('**', { onlyFiles: false, globstar: false }); // ['a'] -fg.sync('**', { onlyFiles: false, globstar: true }); // ['a', 'a/b'] -``` - -#### baseNameMatch - -* Type: `boolean` -* Default: `false` - -If set to `true`, then patterns without slashes will be matched against the basename of the path if it contains slashes. - -```js -dir/ -└── one/ - └── file.md -``` - -```js -fg.sync('*.md', { baseNameMatch: false }); // [] -fg.sync('*.md', { baseNameMatch: true }); // ['one/file.md'] -``` - -## FAQ - -## What is a static or dynamic pattern? - -All patterns can be divided into two types: - -* **static**. A pattern is considered static if it can be used to get an entry on the file system without using matching mechanisms. For example, the `file.js` pattern is a static pattern because we can just verify that it exists on the file system. -* **dynamic**. A pattern is considered dynamic if it cannot be used directly to find occurrences without using a matching mechanisms. For example, the `*` pattern is a dynamic pattern because we cannot use this pattern directly. - -A pattern is considered dynamic if it contains the following characters (`…` — any characters or their absence) or options: - -* The [`caseSensitiveMatch`](#casesensitivematch) option is disabled -* `\\` (the escape character) -* `*`, `?`, `!` (at the beginning of line) -* `[…]` -* `(…|…)` -* `@(…)`, `!(…)`, `*(…)`, `?(…)`, `+(…)` (respects the [`extglob`](#extglob) option) -* `{…,…}`, `{…..…}` (respects the [`braceExpansion`](#braceexpansion) option) - -## How to write patterns on Windows? - -Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters. With the [`cwd`](#cwd) option use a convenient format. - -**Bad** - -```ts -[ - 'directory\\*', - path.join(process.cwd(), '**') -] -``` - -**Good** - -```ts -[ - 'directory/*', - fg.convertPathToPattern(process.cwd()) + '/**' -] -``` - -> :book: Use the [`.convertPathToPattern`](#convertpathtopatternpath) package to convert Windows-style path to a Unix-style path. - -Read more about [matching with backslashes][micromatch_backslashes]. - -## Why are parentheses match wrong? - -```js -dir/ -└── (special-*file).txt -``` - -```js -fg.sync(['(special-*file).txt']) // [] -``` - -Refers to Bash. You need to escape special characters: - -```js -fg.sync(['\\(special-*file\\).txt']) // ['(special-*file).txt'] -``` - -Read more about [matching special characters as literals][picomatch_matching_special_characters_as_literals]. Or use the [`.escapePath`](#escapepathpath). - -## How to exclude directory from reading? - -You can use a negative pattern like this: `!**/node_modules` or `!**/node_modules/**`. Also you can use [`ignore`](#ignore) option. Just look at the example below. - -```js -first/ -├── file.md -└── second/ - └── file.txt -``` - -If you don't want to read the `second` directory, you must write the following pattern: `!**/second` or `!**/second/**`. - -```js -fg.sync(['**/*.md', '!**/second']); // ['first/file.md'] -fg.sync(['**/*.md'], { ignore: ['**/second/**'] }); // ['first/file.md'] -``` - -> :warning: When you write `!**/second/**/*` it means that the directory will be **read**, but all the entries will not be included in the results. - -You have to understand that if you write the pattern to exclude directories, then the directory will not be read under any circumstances. - -## How to use UNC path? - -You cannot use [Uniform Naming Convention (UNC)][unc_path] paths as patterns (due to syntax) directly, but you can use them as [`cwd`](#cwd) directory or use the `fg.convertPathToPattern` method. - -```ts -// cwd -fg.sync('*', { cwd: '\\\\?\\C:\\Python27' /* or //?/C:/Python27 */ }); -fg.sync('Python27/*', { cwd: '\\\\?\\C:\\' /* or //?/C:/ */ }); - -// .convertPathToPattern -fg.sync(fg.convertPathToPattern('\\\\?\\c:\\Python27') + '/*'); -``` - -## Compatible with `node-glob`? - -| node-glob | fast-glob | -| :----------: | :-------: | -| `cwd` | [`cwd`](#cwd) | -| `root` | – | -| `dot` | [`dot`](#dot) | -| `nomount` | – | -| `mark` | [`markDirectories`](#markdirectories) | -| `nosort` | – | -| `nounique` | [`unique`](#unique) | -| `nobrace` | [`braceExpansion`](#braceexpansion) | -| `noglobstar` | [`globstar`](#globstar) | -| `noext` | [`extglob`](#extglob) | -| `nocase` | [`caseSensitiveMatch`](#casesensitivematch) | -| `matchBase` | [`baseNameMatch`](#basenamematch) | -| `nodir` | [`onlyFiles`](#onlyfiles) | -| `ignore` | [`ignore`](#ignore) | -| `follow` | [`followSymbolicLinks`](#followsymboliclinks) | -| `realpath` | – | -| `absolute` | [`absolute`](#absolute) | - -## Benchmarks - -You can see results [here](https://github.com/mrmlnc/fast-glob/actions/workflows/benchmark.yml?query=branch%3Amaster) for every commit into the `main` branch. - -* **Product benchmark** – comparison with the main competitors. -* **Regress benchmark** – regression between the current version and the version from the npm registry. - -## Changelog - -See the [Releases section of our GitHub project][github_releases] for changelog for each release version. - -## License - -This software is released under the terms of the MIT license. - -[bash_hackers_syntax_expansion_brace]: https://wiki.bash-hackers.org/syntax/expansion/brace -[github_releases]: https://github.com/mrmlnc/fast-glob/releases -[glob_definition]: https://en.wikipedia.org/wiki/Glob_(programming) -[glob_linux_man]: http://man7.org/linux/man-pages/man3/glob.3.html -[micromatch_backslashes]: https://github.com/micromatch/micromatch#backslashes -[micromatch_braces]: https://github.com/micromatch/braces -[micromatch_extended_globbing]: https://github.com/micromatch/micromatch#extended-globbing -[micromatch_extglobs]: https://github.com/micromatch/micromatch#extglobs -[micromatch_regex_character_classes]: https://github.com/micromatch/micromatch#regex-character-classes -[micromatch]: https://github.com/micromatch/micromatch -[node_js_fs_class_fs_dirent]: https://nodejs.org/api/fs.html#fs_class_fs_dirent -[node_js_fs_class_fs_stats]: https://nodejs.org/api/fs.html#fs_class_fs_stats -[node_js_stream_readable_streams]: https://nodejs.org/api/stream.html#stream_readable_streams -[node_js]: https://nodejs.org/en -[nodelib_fs_scandir_old_and_modern_modern]: https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode -[npm_normalize_path]: https://www.npmjs.com/package/normalize-path -[npm_unixify]: https://www.npmjs.com/package/unixify -[picomatch_matching_behavior]: https://github.com/micromatch/picomatch#matching-behavior-vs-bash -[picomatch_matching_special_characters_as_literals]: https://github.com/micromatch/picomatch#matching-special-characters-as-literals -[picomatch_posix_brackets]: https://github.com/micromatch/picomatch#posix-brackets -[regular_expressions_brackets]: https://www.regular-expressions.info/brackets.html -[unc_path]: https://learn.microsoft.com/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc -[wikipedia_case_sensitivity]: https://en.wikipedia.org/wiki/Case_sensitivity -[nodejs_thread_pool]: https://nodejs.org/en/docs/guides/dont-block-the-event-loop -[libuv_thread_pool]: http://docs.libuv.org/en/v1.x/threadpool.html -[windows_naming_conventions]: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions diff --git a/graphql/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md b/graphql/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md deleted file mode 100644 index fb9de961..00000000 --- a/graphql/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md +++ /dev/null @@ -1,110 +0,0 @@ -### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06) - - -### Bug Fixes - -* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366)) - -### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27) - - -### Bug Fixes - -* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb)) - -## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27) - - -### Features - -* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3)) - -## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27) - - -### ⚠ BREAKING CHANGES - -* Drop support for node <6 & bump dependencies - -### Miscellaneous Chores - -* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a)) - -## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27) - - -### ⚠ BREAKING CHANGES - -* question marks are valid path characters on Windows so avoid flagging as a glob when alone -* Update is-glob dependency - -### Features - -* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e)) -* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841)) -* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281)) - -## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27) - - -### Features - -* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b)) -* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd)) -* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be)) -* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388)) -* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76)) - - -### Bug Fixes - -* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf)) - -### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27) - - -### Features - -* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc)) - - -### Bug Fixes - -* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030)) - -## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27) - - -### ⚠ BREAKING CHANGES - -* update is-glob dependency - -### Features - -* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd)) - -## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27) - - -### Features - -* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2)) - -## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27) - -## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27) - - -### Reverts - -* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0)) - -## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27) - - -### Features - -* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233)) - -## 1.0.0 (2021-01-27) - diff --git a/graphql/node_modules/fast-glob/node_modules/glob-parent/LICENSE b/graphql/node_modules/fast-glob/node_modules/glob-parent/LICENSE deleted file mode 100644 index 63222d7a..00000000 --- a/graphql/node_modules/fast-glob/node_modules/glob-parent/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2015, 2019 Elan Shanker - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/fast-glob/node_modules/glob-parent/README.md b/graphql/node_modules/fast-glob/node_modules/glob-parent/README.md deleted file mode 100644 index 36a27938..00000000 --- a/graphql/node_modules/fast-glob/node_modules/glob-parent/README.md +++ /dev/null @@ -1,137 +0,0 @@ -

- - - -

- -# glob-parent - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] - -Extract the non-magic parent path from a glob string. - -## Usage - -```js -var globParent = require('glob-parent'); - -globParent('path/to/*.js'); // 'path/to' -globParent('/root/path/to/*.js'); // '/root/path/to' -globParent('/*.js'); // '/' -globParent('*.js'); // '.' -globParent('**/*.js'); // '.' -globParent('path/{to,from}'); // 'path' -globParent('path/!(to|from)'); // 'path' -globParent('path/?(to|from)'); // 'path' -globParent('path/+(to|from)'); // 'path' -globParent('path/*(to|from)'); // 'path' -globParent('path/@(to|from)'); // 'path' -globParent('path/**/*'); // 'path' - -// if provided a non-glob path, returns the nearest dir -globParent('path/foo/bar.js'); // 'path/foo' -globParent('path/foo/'); // 'path/foo' -globParent('path/foo'); // 'path' (see issue #3 for details) -``` - -## API - -### `globParent(maybeGlobString, [options])` - -Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below. - -#### options - -```js -{ - // Disables the automatic conversion of slashes for Windows - flipBackslashes: true -} -``` - -## Escaping - -The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters: - -- `?` (question mark) unless used as a path segment alone -- `*` (asterisk) -- `|` (pipe) -- `(` (opening parenthesis) -- `)` (closing parenthesis) -- `{` (opening curly brace) -- `}` (closing curly brace) -- `[` (opening bracket) -- `]` (closing bracket) - -**Example** - -```js -globParent('foo/[bar]/') // 'foo' -globParent('foo/\\[bar]/') // 'foo/[bar]' -``` - -## Limitations - -### Braces & Brackets -This library attempts a quick and imperfect method of determining which path -parts have glob magic without fully parsing/lexing the pattern. There are some -advanced use cases that can trip it up, such as nested braces where the outer -pair is escaped and the inner one contains a path separator. If you find -yourself in the unlikely circumstance of being affected by this or need to -ensure higher-fidelity glob handling in your library, it is recommended that you -pre-process your input with [expand-braces] and/or [expand-brackets]. - -### Windows -Backslashes are not valid path separators for globs. If a path with backslashes -is provided anyway, for simple cases, glob-parent will replace the path -separator for you and return the non-glob parent path (now with -forward-slashes, which are still valid as Windows path separators). - -This cannot be used in conjunction with escape characters. - -```js -// BAD -globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)' - -// GOOD -globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)' -``` - -If you are using escape characters for a pattern without path parts (i.e. -relative to `cwd`), prefix with `./` to avoid confusing glob-parent. - -```js -// BAD -globParent('foo \\[bar]') // 'foo ' -globParent('foo \\[bar]*') // 'foo ' - -// GOOD -globParent('./foo \\[bar]') // 'foo [bar]' -globParent('./foo \\[bar]*') // '.' -``` - -## License - -ISC - -[expand-braces]: https://github.com/jonschlinkert/expand-braces -[expand-brackets]: https://github.com/jonschlinkert/expand-brackets - -[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg -[npm-url]: https://www.npmjs.com/package/glob-parent -[npm-image]: https://img.shields.io/npm/v/glob-parent.svg - -[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master -[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master - -[travis-url]: https://travis-ci.org/gulpjs/glob-parent -[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci - -[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent -[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor - -[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent -[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg - -[gitter-url]: https://gitter.im/gulpjs/gulp -[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg diff --git a/graphql/node_modules/fast-glob/node_modules/glob-parent/index.js b/graphql/node_modules/fast-glob/node_modules/glob-parent/index.js deleted file mode 100644 index 09e257ea..00000000 --- a/graphql/node_modules/fast-glob/node_modules/glob-parent/index.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -var isGlob = require('is-glob'); -var pathPosixDirname = require('path').posix.dirname; -var isWin32 = require('os').platform() === 'win32'; - -var slash = '/'; -var backslash = /\\/g; -var enclosure = /[\{\[].*[\}\]]$/; -var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; -var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; - -/** - * @param {string} str - * @param {Object} opts - * @param {boolean} [opts.flipBackslashes=true] - * @returns {string} - */ -module.exports = function globParent(str, opts) { - var options = Object.assign({ flipBackslashes: true }, opts); - - // flip windows path separators - if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { - str = str.replace(backslash, slash); - } - - // special case for strings ending in enclosure containing path separator - if (enclosure.test(str)) { - str += slash; - } - - // preserves full path in case of trailing path separator - str += 'a'; - - // remove path parts that are globby - do { - str = pathPosixDirname(str); - } while (isGlob(str) || globby.test(str)); - - // remove escape chars and return result - return str.replace(escaped, '$1'); -}; diff --git a/graphql/node_modules/fast-glob/node_modules/glob-parent/package.json b/graphql/node_modules/fast-glob/node_modules/glob-parent/package.json deleted file mode 100644 index 125c971c..00000000 --- a/graphql/node_modules/fast-glob/node_modules/glob-parent/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "glob-parent", - "version": "5.1.2", - "description": "Extract the non-magic parent path from a glob string.", - "author": "Gulp Team (https://gulpjs.com/)", - "contributors": [ - "Elan Shanker (https://github.com/es128)", - "Blaine Bublitz " - ], - "repository": "gulpjs/glob-parent", - "license": "ISC", - "engines": { - "node": ">= 6" - }, - "main": "index.js", - "files": [ - "LICENSE", - "index.js" - ], - "scripts": { - "lint": "eslint .", - "pretest": "npm run lint", - "test": "nyc mocha --async-only", - "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "dependencies": { - "is-glob": "^4.0.1" - }, - "devDependencies": { - "coveralls": "^3.0.11", - "eslint": "^2.13.1", - "eslint-config-gulp": "^3.0.1", - "expect": "^1.20.2", - "mocha": "^6.0.2", - "nyc": "^13.3.0" - }, - "keywords": [ - "glob", - "parent", - "strip", - "path", - "dirname", - "directory", - "base", - "wildcard" - ] -} diff --git a/graphql/node_modules/fast-glob/out/index.d.ts b/graphql/node_modules/fast-glob/out/index.d.ts deleted file mode 100644 index 46823bb5..00000000 --- a/graphql/node_modules/fast-glob/out/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import * as taskManager from './managers/tasks'; -import { Options as OptionsInternal } from './settings'; -import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types'; -type EntryObjectModePredicate = { - [TKey in keyof Pick]-?: true; -}; -type EntryStatsPredicate = { - [TKey in keyof Pick]-?: true; -}; -type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate; -declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise; -declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise; -declare namespace FastGlob { - type Options = OptionsInternal; - type Entry = EntryInternal; - type Task = taskManager.Task; - type Pattern = PatternInternal; - type FileSystemAdapter = FileSystemAdapterInternal; - const glob: typeof FastGlob; - const globSync: typeof sync; - const globStream: typeof stream; - const async: typeof FastGlob; - function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[]; - function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[]; - function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream; - function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[]; - function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean; - function escapePath(source: string): PatternInternal; - function convertPathToPattern(source: string): PatternInternal; - namespace posix { - function escapePath(source: string): PatternInternal; - function convertPathToPattern(source: string): PatternInternal; - } - namespace win32 { - function escapePath(source: string): PatternInternal; - function convertPathToPattern(source: string): PatternInternal; - } -} -export = FastGlob; diff --git a/graphql/node_modules/fast-glob/out/index.js b/graphql/node_modules/fast-glob/out/index.js deleted file mode 100644 index 90365d48..00000000 --- a/graphql/node_modules/fast-glob/out/index.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -const taskManager = require("./managers/tasks"); -const async_1 = require("./providers/async"); -const stream_1 = require("./providers/stream"); -const sync_1 = require("./providers/sync"); -const settings_1 = require("./settings"); -const utils = require("./utils"); -async function FastGlob(source, options) { - assertPatternsInput(source); - const works = getWorks(source, async_1.default, options); - const result = await Promise.all(works); - return utils.array.flatten(result); -} -// https://github.com/typescript-eslint/typescript-eslint/issues/60 -// eslint-disable-next-line no-redeclare -(function (FastGlob) { - FastGlob.glob = FastGlob; - FastGlob.globSync = sync; - FastGlob.globStream = stream; - FastGlob.async = FastGlob; - function sync(source, options) { - assertPatternsInput(source); - const works = getWorks(source, sync_1.default, options); - return utils.array.flatten(works); - } - FastGlob.sync = sync; - function stream(source, options) { - assertPatternsInput(source); - const works = getWorks(source, stream_1.default, options); - /** - * The stream returned by the provider cannot work with an asynchronous iterator. - * To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams. - * This affects performance (+25%). I don't see best solution right now. - */ - return utils.stream.merge(works); - } - FastGlob.stream = stream; - function generateTasks(source, options) { - assertPatternsInput(source); - const patterns = [].concat(source); - const settings = new settings_1.default(options); - return taskManager.generate(patterns, settings); - } - FastGlob.generateTasks = generateTasks; - function isDynamicPattern(source, options) { - assertPatternsInput(source); - const settings = new settings_1.default(options); - return utils.pattern.isDynamicPattern(source, settings); - } - FastGlob.isDynamicPattern = isDynamicPattern; - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escape(source); - } - FastGlob.escapePath = escapePath; - function convertPathToPattern(source) { - assertPatternsInput(source); - return utils.path.convertPathToPattern(source); - } - FastGlob.convertPathToPattern = convertPathToPattern; - let posix; - (function (posix) { - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escapePosixPath(source); - } - posix.escapePath = escapePath; - function convertPathToPattern(source) { - assertPatternsInput(source); - return utils.path.convertPosixPathToPattern(source); - } - posix.convertPathToPattern = convertPathToPattern; - })(posix = FastGlob.posix || (FastGlob.posix = {})); - let win32; - (function (win32) { - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escapeWindowsPath(source); - } - win32.escapePath = escapePath; - function convertPathToPattern(source) { - assertPatternsInput(source); - return utils.path.convertWindowsPathToPattern(source); - } - win32.convertPathToPattern = convertPathToPattern; - })(win32 = FastGlob.win32 || (FastGlob.win32 = {})); -})(FastGlob || (FastGlob = {})); -function getWorks(source, _Provider, options) { - const patterns = [].concat(source); - const settings = new settings_1.default(options); - const tasks = taskManager.generate(patterns, settings); - const provider = new _Provider(settings); - return tasks.map(provider.read, provider); -} -function assertPatternsInput(input) { - const source = [].concat(input); - const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); - if (!isValidSource) { - throw new TypeError('Patterns must be a string (non empty) or an array of strings'); - } -} -module.exports = FastGlob; diff --git a/graphql/node_modules/fast-glob/out/managers/tasks.d.ts b/graphql/node_modules/fast-glob/out/managers/tasks.d.ts deleted file mode 100644 index 59d2c427..00000000 --- a/graphql/node_modules/fast-glob/out/managers/tasks.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import Settings from '../settings'; -import { Pattern, PatternsGroup } from '../types'; -export type Task = { - base: string; - dynamic: boolean; - patterns: Pattern[]; - positive: Pattern[]; - negative: Pattern[]; -}; -export declare function generate(input: Pattern[], settings: Settings): Task[]; -/** - * Returns tasks grouped by basic pattern directories. - * - * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately. - * This is necessary because directory traversal starts at the base directory and goes deeper. - */ -export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[]; -export declare function getPositivePatterns(patterns: Pattern[]): Pattern[]; -export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[]; -export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup; -export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[]; -export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task; diff --git a/graphql/node_modules/fast-glob/out/managers/tasks.js b/graphql/node_modules/fast-glob/out/managers/tasks.js deleted file mode 100644 index 335a7651..00000000 --- a/graphql/node_modules/fast-glob/out/managers/tasks.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; -const utils = require("../utils"); -function generate(input, settings) { - const patterns = processPatterns(input, settings); - const ignore = processPatterns(settings.ignore, settings); - const positivePatterns = getPositivePatterns(patterns); - const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); - const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); - const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); - const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false); - const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true); - return staticTasks.concat(dynamicTasks); -} -exports.generate = generate; -function processPatterns(input, settings) { - let patterns = input; - /** - * The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry - * and some problems with the micromatch package (see fast-glob issues: #365, #394). - * - * To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown - * in matching in the case of a large set of patterns after expansion. - */ - if (settings.braceExpansion) { - patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); - } - /** - * If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used - * at any nesting level. - * - * We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change - * the pattern in the filter before creating a regular expression. There is no need to change the patterns - * in the application. Only on the input. - */ - if (settings.baseNameMatch) { - patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`); - } - /** - * This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion. - */ - return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); -} -/** - * Returns tasks grouped by basic pattern directories. - * - * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately. - * This is necessary because directory traversal starts at the base directory and goes deeper. - */ -function convertPatternsToTasks(positive, negative, dynamic) { - const tasks = []; - const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); - const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); - const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); - const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); - tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); - /* - * For the sake of reducing future accesses to the file system, we merge all tasks within the current directory - * into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest. - */ - if ('.' in insideCurrentDirectoryGroup) { - tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic)); - } - else { - tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); - } - return tasks; -} -exports.convertPatternsToTasks = convertPatternsToTasks; -function getPositivePatterns(patterns) { - return utils.pattern.getPositivePatterns(patterns); -} -exports.getPositivePatterns = getPositivePatterns; -function getNegativePatternsAsPositive(patterns, ignore) { - const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); - const positive = negative.map(utils.pattern.convertToPositivePattern); - return positive; -} -exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; -function groupPatternsByBaseDirectory(patterns) { - const group = {}; - return patterns.reduce((collection, pattern) => { - const base = utils.pattern.getBaseDirectory(pattern); - if (base in collection) { - collection[base].push(pattern); - } - else { - collection[base] = [pattern]; - } - return collection; - }, group); -} -exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; -function convertPatternGroupsToTasks(positive, negative, dynamic) { - return Object.keys(positive).map((base) => { - return convertPatternGroupToTask(base, positive[base], negative, dynamic); - }); -} -exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; -function convertPatternGroupToTask(base, positive, negative, dynamic) { - return { - dynamic, - positive, - negative, - base, - patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) - }; -} -exports.convertPatternGroupToTask = convertPatternGroupToTask; diff --git a/graphql/node_modules/fast-glob/out/providers/async.d.ts b/graphql/node_modules/fast-glob/out/providers/async.d.ts deleted file mode 100644 index 27426164..00000000 --- a/graphql/node_modules/fast-glob/out/providers/async.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Task } from '../managers/tasks'; -import { Entry, EntryItem, ReaderOptions } from '../types'; -import ReaderAsync from '../readers/async'; -import Provider from './provider'; -export default class ProviderAsync extends Provider> { - protected _reader: ReaderAsync; - read(task: Task): Promise; - api(root: string, task: Task, options: ReaderOptions): Promise; -} diff --git a/graphql/node_modules/fast-glob/out/providers/async.js b/graphql/node_modules/fast-glob/out/providers/async.js deleted file mode 100644 index 0c5286e7..00000000 --- a/graphql/node_modules/fast-glob/out/providers/async.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const async_1 = require("../readers/async"); -const provider_1 = require("./provider"); -class ProviderAsync extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new async_1.default(this._settings); - } - async read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = await this.api(root, task, options); - return entries.map((entry) => options.transform(entry)); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } -} -exports.default = ProviderAsync; diff --git a/graphql/node_modules/fast-glob/out/providers/filters/deep.d.ts b/graphql/node_modules/fast-glob/out/providers/filters/deep.d.ts deleted file mode 100644 index 377fab88..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/deep.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types'; -import Settings from '../../settings'; -export default class DeepFilter { - private readonly _settings; - private readonly _micromatchOptions; - constructor(_settings: Settings, _micromatchOptions: MicromatchOptions); - getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction; - private _getMatcher; - private _getNegativePatternsRe; - private _filter; - private _isSkippedByDeep; - private _getEntryLevel; - private _isSkippedSymbolicLink; - private _isSkippedByPositivePatterns; - private _isSkippedByNegativePatterns; -} diff --git a/graphql/node_modules/fast-glob/out/providers/filters/deep.js b/graphql/node_modules/fast-glob/out/providers/filters/deep.js deleted file mode 100644 index 644bf41b..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/deep.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils = require("../../utils"); -const partial_1 = require("../matchers/partial"); -class DeepFilter { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - } - getFilter(basePath, positive, negative) { - const matcher = this._getMatcher(positive); - const negativeRe = this._getNegativePatternsRe(negative); - return (entry) => this._filter(basePath, entry, matcher, negativeRe); - } - _getMatcher(patterns) { - return new partial_1.default(patterns, this._settings, this._micromatchOptions); - } - _getNegativePatternsRe(patterns) { - const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); - return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); - } - _filter(basePath, entry, matcher, negativeRe) { - if (this._isSkippedByDeep(basePath, entry.path)) { - return false; - } - if (this._isSkippedSymbolicLink(entry)) { - return false; - } - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._isSkippedByPositivePatterns(filepath, matcher)) { - return false; - } - return this._isSkippedByNegativePatterns(filepath, negativeRe); - } - _isSkippedByDeep(basePath, entryPath) { - /** - * Avoid unnecessary depth calculations when it doesn't matter. - */ - if (this._settings.deep === Infinity) { - return false; - } - return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; - } - _getEntryLevel(basePath, entryPath) { - const entryPathDepth = entryPath.split('/').length; - if (basePath === '') { - return entryPathDepth; - } - const basePathDepth = basePath.split('/').length; - return entryPathDepth - basePathDepth; - } - _isSkippedSymbolicLink(entry) { - return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); - } - _isSkippedByPositivePatterns(entryPath, matcher) { - return !this._settings.baseNameMatch && !matcher.match(entryPath); - } - _isSkippedByNegativePatterns(entryPath, patternsRe) { - return !utils.pattern.matchAny(entryPath, patternsRe); - } -} -exports.default = DeepFilter; diff --git a/graphql/node_modules/fast-glob/out/providers/filters/entry.d.ts b/graphql/node_modules/fast-glob/out/providers/filters/entry.d.ts deleted file mode 100644 index ee712819..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/entry.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import Settings from '../../settings'; -import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types'; -export default class EntryFilter { - private readonly _settings; - private readonly _micromatchOptions; - readonly index: Map; - constructor(_settings: Settings, _micromatchOptions: MicromatchOptions); - getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction; - private _filter; - private _isDuplicateEntry; - private _createIndexRecord; - private _onlyFileFilter; - private _onlyDirectoryFilter; - private _isSkippedByAbsoluteNegativePatterns; - private _isMatchToPatterns; -} diff --git a/graphql/node_modules/fast-glob/out/providers/filters/entry.js b/graphql/node_modules/fast-glob/out/providers/filters/entry.js deleted file mode 100644 index 361a7b4a..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/entry.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils = require("../../utils"); -class EntryFilter { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this.index = new Map(); - } - getFilter(positive, negative) { - const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); - const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); - return (entry) => this._filter(entry, positiveRe, negativeRe); - } - _filter(entry, positiveRe, negativeRe) { - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._settings.unique && this._isDuplicateEntry(filepath)) { - return false; - } - if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { - return false; - } - if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { - return false; - } - const isDirectory = entry.dirent.isDirectory(); - const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); - if (this._settings.unique && isMatched) { - this._createIndexRecord(filepath); - } - return isMatched; - } - _isDuplicateEntry(filepath) { - return this.index.has(filepath); - } - _createIndexRecord(filepath) { - this.index.set(filepath, undefined); - } - _onlyFileFilter(entry) { - return this._settings.onlyFiles && !entry.dirent.isFile(); - } - _onlyDirectoryFilter(entry) { - return this._settings.onlyDirectories && !entry.dirent.isDirectory(); - } - _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { - if (!this._settings.absolute) { - return false; - } - const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); - return utils.pattern.matchAny(fullpath, patternsRe); - } - _isMatchToPatterns(filepath, patternsRe, isDirectory) { - // Trying to match files and directories by patterns. - const isMatched = utils.pattern.matchAny(filepath, patternsRe); - // A pattern with a trailling slash can be used for directory matching. - // To apply such pattern, we need to add a tralling slash to the path. - if (!isMatched && isDirectory) { - return utils.pattern.matchAny(filepath + '/', patternsRe); - } - return isMatched; - } -} -exports.default = EntryFilter; diff --git a/graphql/node_modules/fast-glob/out/providers/filters/error.d.ts b/graphql/node_modules/fast-glob/out/providers/filters/error.d.ts deleted file mode 100644 index 170eb251..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/error.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Settings from '../../settings'; -import { ErrorFilterFunction } from '../../types'; -export default class ErrorFilter { - private readonly _settings; - constructor(_settings: Settings); - getFilter(): ErrorFilterFunction; - private _isNonFatalError; -} diff --git a/graphql/node_modules/fast-glob/out/providers/filters/error.js b/graphql/node_modules/fast-glob/out/providers/filters/error.js deleted file mode 100644 index 1c6f2416..00000000 --- a/graphql/node_modules/fast-glob/out/providers/filters/error.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils = require("../../utils"); -class ErrorFilter { - constructor(_settings) { - this._settings = _settings; - } - getFilter() { - return (error) => this._isNonFatalError(error); - } - _isNonFatalError(error) { - return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; - } -} -exports.default = ErrorFilter; diff --git a/graphql/node_modules/fast-glob/out/providers/matchers/matcher.d.ts b/graphql/node_modules/fast-glob/out/providers/matchers/matcher.d.ts deleted file mode 100644 index d04c2322..00000000 --- a/graphql/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Pattern, MicromatchOptions, PatternRe } from '../../types'; -import Settings from '../../settings'; -export type PatternSegment = StaticPatternSegment | DynamicPatternSegment; -type StaticPatternSegment = { - dynamic: false; - pattern: Pattern; -}; -type DynamicPatternSegment = { - dynamic: true; - pattern: Pattern; - patternRe: PatternRe; -}; -export type PatternSection = PatternSegment[]; -export type PatternInfo = { - /** - * Indicates that the pattern has a globstar (more than a single section). - */ - complete: boolean; - pattern: Pattern; - segments: PatternSegment[]; - sections: PatternSection[]; -}; -export default abstract class Matcher { - private readonly _patterns; - private readonly _settings; - private readonly _micromatchOptions; - protected readonly _storage: PatternInfo[]; - constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions); - private _fillStorage; - private _getPatternSegments; - private _splitSegmentsIntoSections; -} -export {}; diff --git a/graphql/node_modules/fast-glob/out/providers/matchers/matcher.js b/graphql/node_modules/fast-glob/out/providers/matchers/matcher.js deleted file mode 100644 index eae67c98..00000000 --- a/graphql/node_modules/fast-glob/out/providers/matchers/matcher.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils = require("../../utils"); -class Matcher { - constructor(_patterns, _settings, _micromatchOptions) { - this._patterns = _patterns; - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this._storage = []; - this._fillStorage(); - } - _fillStorage() { - for (const pattern of this._patterns) { - const segments = this._getPatternSegments(pattern); - const sections = this._splitSegmentsIntoSections(segments); - this._storage.push({ - complete: sections.length <= 1, - pattern, - segments, - sections - }); - } - } - _getPatternSegments(pattern) { - const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); - return parts.map((part) => { - const dynamic = utils.pattern.isDynamicPattern(part, this._settings); - if (!dynamic) { - return { - dynamic: false, - pattern: part - }; - } - return { - dynamic: true, - pattern: part, - patternRe: utils.pattern.makeRe(part, this._micromatchOptions) - }; - }); - } - _splitSegmentsIntoSections(segments) { - return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); - } -} -exports.default = Matcher; diff --git a/graphql/node_modules/fast-glob/out/providers/matchers/partial.d.ts b/graphql/node_modules/fast-glob/out/providers/matchers/partial.d.ts deleted file mode 100644 index 91520f64..00000000 --- a/graphql/node_modules/fast-glob/out/providers/matchers/partial.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Matcher from './matcher'; -export default class PartialMatcher extends Matcher { - match(filepath: string): boolean; -} diff --git a/graphql/node_modules/fast-glob/out/providers/matchers/partial.js b/graphql/node_modules/fast-glob/out/providers/matchers/partial.js deleted file mode 100644 index 1dfffeb5..00000000 --- a/graphql/node_modules/fast-glob/out/providers/matchers/partial.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const matcher_1 = require("./matcher"); -class PartialMatcher extends matcher_1.default { - match(filepath) { - const parts = filepath.split('/'); - const levels = parts.length; - const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); - for (const pattern of patterns) { - const section = pattern.sections[0]; - /** - * In this case, the pattern has a globstar and we must read all directories unconditionally, - * but only if the level has reached the end of the first group. - * - * fixtures/{a,b}/** - * ^ true/false ^ always true - */ - if (!pattern.complete && levels > section.length) { - return true; - } - const match = parts.every((part, index) => { - const segment = pattern.segments[index]; - if (segment.dynamic && segment.patternRe.test(part)) { - return true; - } - if (!segment.dynamic && segment.pattern === part) { - return true; - } - return false; - }); - if (match) { - return true; - } - } - return false; - } -} -exports.default = PartialMatcher; diff --git a/graphql/node_modules/fast-glob/out/providers/provider.d.ts b/graphql/node_modules/fast-glob/out/providers/provider.d.ts deleted file mode 100644 index 1053460a..00000000 --- a/graphql/node_modules/fast-glob/out/providers/provider.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Task } from '../managers/tasks'; -import Settings from '../settings'; -import { MicromatchOptions, ReaderOptions } from '../types'; -import DeepFilter from './filters/deep'; -import EntryFilter from './filters/entry'; -import ErrorFilter from './filters/error'; -import EntryTransformer from './transformers/entry'; -export default abstract class Provider { - protected readonly _settings: Settings; - readonly errorFilter: ErrorFilter; - readonly entryFilter: EntryFilter; - readonly deepFilter: DeepFilter; - readonly entryTransformer: EntryTransformer; - constructor(_settings: Settings); - abstract read(_task: Task): T; - protected _getRootDirectory(task: Task): string; - protected _getReaderOptions(task: Task): ReaderOptions; - protected _getMicromatchOptions(): MicromatchOptions; -} diff --git a/graphql/node_modules/fast-glob/out/providers/provider.js b/graphql/node_modules/fast-glob/out/providers/provider.js deleted file mode 100644 index da88ee02..00000000 --- a/graphql/node_modules/fast-glob/out/providers/provider.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const deep_1 = require("./filters/deep"); -const entry_1 = require("./filters/entry"); -const error_1 = require("./filters/error"); -const entry_2 = require("./transformers/entry"); -class Provider { - constructor(_settings) { - this._settings = _settings; - this.errorFilter = new error_1.default(this._settings); - this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); - this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); - this.entryTransformer = new entry_2.default(this._settings); - } - _getRootDirectory(task) { - return path.resolve(this._settings.cwd, task.base); - } - _getReaderOptions(task) { - const basePath = task.base === '.' ? '' : task.base; - return { - basePath, - pathSegmentSeparator: '/', - concurrency: this._settings.concurrency, - deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), - entryFilter: this.entryFilter.getFilter(task.positive, task.negative), - errorFilter: this.errorFilter.getFilter(), - followSymbolicLinks: this._settings.followSymbolicLinks, - fs: this._settings.fs, - stats: this._settings.stats, - throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, - transform: this.entryTransformer.getTransformer() - }; - } - _getMicromatchOptions() { - return { - dot: this._settings.dot, - matchBase: this._settings.baseNameMatch, - nobrace: !this._settings.braceExpansion, - nocase: !this._settings.caseSensitiveMatch, - noext: !this._settings.extglob, - noglobstar: !this._settings.globstar, - posix: true, - strictSlashes: false - }; - } -} -exports.default = Provider; diff --git a/graphql/node_modules/fast-glob/out/providers/stream.d.ts b/graphql/node_modules/fast-glob/out/providers/stream.d.ts deleted file mode 100644 index 3d02a1f4..00000000 --- a/graphql/node_modules/fast-glob/out/providers/stream.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { Readable } from 'stream'; -import { Task } from '../managers/tasks'; -import ReaderStream from '../readers/stream'; -import { ReaderOptions } from '../types'; -import Provider from './provider'; -export default class ProviderStream extends Provider { - protected _reader: ReaderStream; - read(task: Task): Readable; - api(root: string, task: Task, options: ReaderOptions): Readable; -} diff --git a/graphql/node_modules/fast-glob/out/providers/stream.js b/graphql/node_modules/fast-glob/out/providers/stream.js deleted file mode 100644 index 85da62eb..00000000 --- a/graphql/node_modules/fast-glob/out/providers/stream.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = require("stream"); -const stream_2 = require("../readers/stream"); -const provider_1 = require("./provider"); -class ProviderStream extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new stream_2.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const source = this.api(root, task, options); - const destination = new stream_1.Readable({ objectMode: true, read: () => { } }); - source - .once('error', (error) => destination.emit('error', error)) - .on('data', (entry) => destination.emit('data', options.transform(entry))) - .once('end', () => destination.emit('end')); - destination - .once('close', () => source.destroy()); - return destination; - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } -} -exports.default = ProviderStream; diff --git a/graphql/node_modules/fast-glob/out/providers/sync.d.ts b/graphql/node_modules/fast-glob/out/providers/sync.d.ts deleted file mode 100644 index 9c0fe1e1..00000000 --- a/graphql/node_modules/fast-glob/out/providers/sync.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Task } from '../managers/tasks'; -import ReaderSync from '../readers/sync'; -import { Entry, EntryItem, ReaderOptions } from '../types'; -import Provider from './provider'; -export default class ProviderSync extends Provider { - protected _reader: ReaderSync; - read(task: Task): EntryItem[]; - api(root: string, task: Task, options: ReaderOptions): Entry[]; -} diff --git a/graphql/node_modules/fast-glob/out/providers/sync.js b/graphql/node_modules/fast-glob/out/providers/sync.js deleted file mode 100644 index d70aa1b1..00000000 --- a/graphql/node_modules/fast-glob/out/providers/sync.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sync_1 = require("../readers/sync"); -const provider_1 = require("./provider"); -class ProviderSync extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new sync_1.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = this.api(root, task, options); - return entries.map(options.transform); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } -} -exports.default = ProviderSync; diff --git a/graphql/node_modules/fast-glob/out/providers/transformers/entry.d.ts b/graphql/node_modules/fast-glob/out/providers/transformers/entry.d.ts deleted file mode 100644 index e9b85fa7..00000000 --- a/graphql/node_modules/fast-glob/out/providers/transformers/entry.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Settings from '../../settings'; -import { EntryTransformerFunction } from '../../types'; -export default class EntryTransformer { - private readonly _settings; - constructor(_settings: Settings); - getTransformer(): EntryTransformerFunction; - private _transform; -} diff --git a/graphql/node_modules/fast-glob/out/providers/transformers/entry.js b/graphql/node_modules/fast-glob/out/providers/transformers/entry.js deleted file mode 100644 index d11903c8..00000000 --- a/graphql/node_modules/fast-glob/out/providers/transformers/entry.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils = require("../../utils"); -class EntryTransformer { - constructor(_settings) { - this._settings = _settings; - } - getTransformer() { - return (entry) => this._transform(entry); - } - _transform(entry) { - let filepath = entry.path; - if (this._settings.absolute) { - filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); - filepath = utils.path.unixify(filepath); - } - if (this._settings.markDirectories && entry.dirent.isDirectory()) { - filepath += '/'; - } - if (!this._settings.objectMode) { - return filepath; - } - return Object.assign(Object.assign({}, entry), { path: filepath }); - } -} -exports.default = EntryTransformer; diff --git a/graphql/node_modules/fast-glob/out/readers/async.d.ts b/graphql/node_modules/fast-glob/out/readers/async.d.ts deleted file mode 100644 index fbca4286..00000000 --- a/graphql/node_modules/fast-glob/out/readers/async.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as fsWalk from '@nodelib/fs.walk'; -import { Entry, ReaderOptions, Pattern } from '../types'; -import Reader from './reader'; -import ReaderStream from './stream'; -export default class ReaderAsync extends Reader> { - protected _walkAsync: typeof fsWalk.walk; - protected _readerStream: ReaderStream; - dynamic(root: string, options: ReaderOptions): Promise; - static(patterns: Pattern[], options: ReaderOptions): Promise; -} diff --git a/graphql/node_modules/fast-glob/out/readers/async.js b/graphql/node_modules/fast-glob/out/readers/async.js deleted file mode 100644 index d024145b..00000000 --- a/graphql/node_modules/fast-glob/out/readers/async.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fsWalk = require("@nodelib/fs.walk"); -const reader_1 = require("./reader"); -const stream_1 = require("./stream"); -class ReaderAsync extends reader_1.default { - constructor() { - super(...arguments); - this._walkAsync = fsWalk.walk; - this._readerStream = new stream_1.default(this._settings); - } - dynamic(root, options) { - return new Promise((resolve, reject) => { - this._walkAsync(root, options, (error, entries) => { - if (error === null) { - resolve(entries); - } - else { - reject(error); - } - }); - }); - } - async static(patterns, options) { - const entries = []; - const stream = this._readerStream.static(patterns, options); - // After #235, replace it with an asynchronous iterator. - return new Promise((resolve, reject) => { - stream.once('error', reject); - stream.on('data', (entry) => entries.push(entry)); - stream.once('end', () => resolve(entries)); - }); - } -} -exports.default = ReaderAsync; diff --git a/graphql/node_modules/fast-glob/out/readers/reader.d.ts b/graphql/node_modules/fast-glob/out/readers/reader.d.ts deleted file mode 100644 index 2af16b67..00000000 --- a/graphql/node_modules/fast-glob/out/readers/reader.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import * as fs from 'fs'; -import * as fsStat from '@nodelib/fs.stat'; -import Settings from '../settings'; -import { Entry, ErrnoException, Pattern, ReaderOptions } from '../types'; -export default abstract class Reader { - protected readonly _settings: Settings; - protected readonly _fsStatSettings: fsStat.Settings; - constructor(_settings: Settings); - abstract dynamic(root: string, options: ReaderOptions): T; - abstract static(patterns: Pattern[], options: ReaderOptions): T; - protected _getFullEntryPath(filepath: string): string; - protected _makeEntry(stats: fs.Stats, pattern: Pattern): Entry; - protected _isFatalError(error: ErrnoException): boolean; -} diff --git a/graphql/node_modules/fast-glob/out/readers/reader.js b/graphql/node_modules/fast-glob/out/readers/reader.js deleted file mode 100644 index 7b40255a..00000000 --- a/graphql/node_modules/fast-glob/out/readers/reader.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const fsStat = require("@nodelib/fs.stat"); -const utils = require("../utils"); -class Reader { - constructor(_settings) { - this._settings = _settings; - this._fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this._settings.followSymbolicLinks, - fs: this._settings.fs, - throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks - }); - } - _getFullEntryPath(filepath) { - return path.resolve(this._settings.cwd, filepath); - } - _makeEntry(stats, pattern) { - const entry = { - name: pattern, - path: pattern, - dirent: utils.fs.createDirentFromStats(pattern, stats) - }; - if (this._settings.stats) { - entry.stats = stats; - } - return entry; - } - _isFatalError(error) { - return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; - } -} -exports.default = Reader; diff --git a/graphql/node_modules/fast-glob/out/readers/stream.d.ts b/graphql/node_modules/fast-glob/out/readers/stream.d.ts deleted file mode 100644 index 1c74cac6..00000000 --- a/graphql/node_modules/fast-glob/out/readers/stream.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { Readable } from 'stream'; -import * as fsStat from '@nodelib/fs.stat'; -import * as fsWalk from '@nodelib/fs.walk'; -import { Pattern, ReaderOptions } from '../types'; -import Reader from './reader'; -export default class ReaderStream extends Reader { - protected _walkStream: typeof fsWalk.walkStream; - protected _stat: typeof fsStat.stat; - dynamic(root: string, options: ReaderOptions): Readable; - static(patterns: Pattern[], options: ReaderOptions): Readable; - private _getEntry; - private _getStat; -} diff --git a/graphql/node_modules/fast-glob/out/readers/stream.js b/graphql/node_modules/fast-glob/out/readers/stream.js deleted file mode 100644 index 317c6d5d..00000000 --- a/graphql/node_modules/fast-glob/out/readers/stream.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const stream_1 = require("stream"); -const fsStat = require("@nodelib/fs.stat"); -const fsWalk = require("@nodelib/fs.walk"); -const reader_1 = require("./reader"); -class ReaderStream extends reader_1.default { - constructor() { - super(...arguments); - this._walkStream = fsWalk.walkStream; - this._stat = fsStat.stat; - } - dynamic(root, options) { - return this._walkStream(root, options); - } - static(patterns, options) { - const filepaths = patterns.map(this._getFullEntryPath, this); - const stream = new stream_1.PassThrough({ objectMode: true }); - stream._write = (index, _enc, done) => { - return this._getEntry(filepaths[index], patterns[index], options) - .then((entry) => { - if (entry !== null && options.entryFilter(entry)) { - stream.push(entry); - } - if (index === filepaths.length - 1) { - stream.end(); - } - done(); - }) - .catch(done); - }; - for (let i = 0; i < filepaths.length; i++) { - stream.write(i); - } - return stream; - } - _getEntry(filepath, pattern, options) { - return this._getStat(filepath) - .then((stats) => this._makeEntry(stats, pattern)) - .catch((error) => { - if (options.errorFilter(error)) { - return null; - } - throw error; - }); - } - _getStat(filepath) { - return new Promise((resolve, reject) => { - this._stat(filepath, this._fsStatSettings, (error, stats) => { - return error === null ? resolve(stats) : reject(error); - }); - }); - } -} -exports.default = ReaderStream; diff --git a/graphql/node_modules/fast-glob/out/readers/sync.d.ts b/graphql/node_modules/fast-glob/out/readers/sync.d.ts deleted file mode 100644 index c96ffeed..00000000 --- a/graphql/node_modules/fast-glob/out/readers/sync.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import * as fsStat from '@nodelib/fs.stat'; -import * as fsWalk from '@nodelib/fs.walk'; -import { Entry, Pattern, ReaderOptions } from '../types'; -import Reader from './reader'; -export default class ReaderSync extends Reader { - protected _walkSync: typeof fsWalk.walkSync; - protected _statSync: typeof fsStat.statSync; - dynamic(root: string, options: ReaderOptions): Entry[]; - static(patterns: Pattern[], options: ReaderOptions): Entry[]; - private _getEntry; - private _getStat; -} diff --git a/graphql/node_modules/fast-glob/out/readers/sync.js b/graphql/node_modules/fast-glob/out/readers/sync.js deleted file mode 100644 index 4704d65d..00000000 --- a/graphql/node_modules/fast-glob/out/readers/sync.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fsStat = require("@nodelib/fs.stat"); -const fsWalk = require("@nodelib/fs.walk"); -const reader_1 = require("./reader"); -class ReaderSync extends reader_1.default { - constructor() { - super(...arguments); - this._walkSync = fsWalk.walkSync; - this._statSync = fsStat.statSync; - } - dynamic(root, options) { - return this._walkSync(root, options); - } - static(patterns, options) { - const entries = []; - for (const pattern of patterns) { - const filepath = this._getFullEntryPath(pattern); - const entry = this._getEntry(filepath, pattern, options); - if (entry === null || !options.entryFilter(entry)) { - continue; - } - entries.push(entry); - } - return entries; - } - _getEntry(filepath, pattern, options) { - try { - const stats = this._getStat(filepath); - return this._makeEntry(stats, pattern); - } - catch (error) { - if (options.errorFilter(error)) { - return null; - } - throw error; - } - } - _getStat(filepath) { - return this._statSync(filepath, this._fsStatSettings); - } -} -exports.default = ReaderSync; diff --git a/graphql/node_modules/fast-glob/out/settings.d.ts b/graphql/node_modules/fast-glob/out/settings.d.ts deleted file mode 100644 index 76a74f8a..00000000 --- a/graphql/node_modules/fast-glob/out/settings.d.ts +++ /dev/null @@ -1,164 +0,0 @@ -import { FileSystemAdapter, Pattern } from './types'; -export declare const DEFAULT_FILE_SYSTEM_ADAPTER: FileSystemAdapter; -export type Options = { - /** - * Return the absolute path for entries. - * - * @default false - */ - absolute?: boolean; - /** - * If set to `true`, then patterns without slashes will be matched against - * the basename of the path if it contains slashes. - * - * @default false - */ - baseNameMatch?: boolean; - /** - * Enables Bash-like brace expansion. - * - * @default true - */ - braceExpansion?: boolean; - /** - * Enables a case-sensitive mode for matching files. - * - * @default true - */ - caseSensitiveMatch?: boolean; - /** - * Specifies the maximum number of concurrent requests from a reader to read - * directories. - * - * @default os.cpus().length - */ - concurrency?: number; - /** - * The current working directory in which to search. - * - * @default process.cwd() - */ - cwd?: string; - /** - * Specifies the maximum depth of a read directory relative to the start - * directory. - * - * @default Infinity - */ - deep?: number; - /** - * Allow patterns to match entries that begin with a period (`.`). - * - * @default false - */ - dot?: boolean; - /** - * Enables Bash-like `extglob` functionality. - * - * @default true - */ - extglob?: boolean; - /** - * Indicates whether to traverse descendants of symbolic link directories. - * - * @default true - */ - followSymbolicLinks?: boolean; - /** - * Custom implementation of methods for working with the file system. - * - * @default fs.* - */ - fs?: Partial; - /** - * Enables recursively repeats a pattern containing `**`. - * If `false`, `**` behaves exactly like `*`. - * - * @default true - */ - globstar?: boolean; - /** - * An array of glob patterns to exclude matches. - * This is an alternative way to use negative patterns. - * - * @default [] - */ - ignore?: Pattern[]; - /** - * Mark the directory path with the final slash. - * - * @default false - */ - markDirectories?: boolean; - /** - * Returns objects (instead of strings) describing entries. - * - * @default false - */ - objectMode?: boolean; - /** - * Return only directories. - * - * @default false - */ - onlyDirectories?: boolean; - /** - * Return only files. - * - * @default true - */ - onlyFiles?: boolean; - /** - * Enables an object mode (`objectMode`) with an additional `stats` field. - * - * @default false - */ - stats?: boolean; - /** - * By default this package suppress only `ENOENT` errors. - * Set to `true` to suppress any error. - * - * @default false - */ - suppressErrors?: boolean; - /** - * Throw an error when symbolic link is broken if `true` or safely - * return `lstat` call if `false`. - * - * @default false - */ - throwErrorOnBrokenSymbolicLink?: boolean; - /** - * Ensures that the returned entries are unique. - * - * @default true - */ - unique?: boolean; -}; -export default class Settings { - private readonly _options; - readonly absolute: boolean; - readonly baseNameMatch: boolean; - readonly braceExpansion: boolean; - readonly caseSensitiveMatch: boolean; - readonly concurrency: number; - readonly cwd: string; - readonly deep: number; - readonly dot: boolean; - readonly extglob: boolean; - readonly followSymbolicLinks: boolean; - readonly fs: FileSystemAdapter; - readonly globstar: boolean; - readonly ignore: Pattern[]; - readonly markDirectories: boolean; - readonly objectMode: boolean; - readonly onlyDirectories: boolean; - readonly onlyFiles: boolean; - readonly stats: boolean; - readonly suppressErrors: boolean; - readonly throwErrorOnBrokenSymbolicLink: boolean; - readonly unique: boolean; - constructor(_options?: Options); - private _getValue; - private _getFileSystemMethods; -} diff --git a/graphql/node_modules/fast-glob/out/settings.js b/graphql/node_modules/fast-glob/out/settings.js deleted file mode 100644 index 23f916c8..00000000 --- a/graphql/node_modules/fast-glob/out/settings.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; -const fs = require("fs"); -const os = require("os"); -/** - * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. - * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 - */ -const CPU_COUNT = Math.max(os.cpus().length, 1); -exports.DEFAULT_FILE_SYSTEM_ADAPTER = { - lstat: fs.lstat, - lstatSync: fs.lstatSync, - stat: fs.stat, - statSync: fs.statSync, - readdir: fs.readdir, - readdirSync: fs.readdirSync -}; -class Settings { - constructor(_options = {}) { - this._options = _options; - this.absolute = this._getValue(this._options.absolute, false); - this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); - this.braceExpansion = this._getValue(this._options.braceExpansion, true); - this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); - this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); - this.cwd = this._getValue(this._options.cwd, process.cwd()); - this.deep = this._getValue(this._options.deep, Infinity); - this.dot = this._getValue(this._options.dot, false); - this.extglob = this._getValue(this._options.extglob, true); - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); - this.fs = this._getFileSystemMethods(this._options.fs); - this.globstar = this._getValue(this._options.globstar, true); - this.ignore = this._getValue(this._options.ignore, []); - this.markDirectories = this._getValue(this._options.markDirectories, false); - this.objectMode = this._getValue(this._options.objectMode, false); - this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); - this.onlyFiles = this._getValue(this._options.onlyFiles, true); - this.stats = this._getValue(this._options.stats, false); - this.suppressErrors = this._getValue(this._options.suppressErrors, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); - this.unique = this._getValue(this._options.unique, true); - if (this.onlyDirectories) { - this.onlyFiles = false; - } - if (this.stats) { - this.objectMode = true; - } - // Remove the cast to the array in the next major (#404). - this.ignore = [].concat(this.ignore); - } - _getValue(option, value) { - return option === undefined ? value : option; - } - _getFileSystemMethods(methods = {}) { - return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); - } -} -exports.default = Settings; diff --git a/graphql/node_modules/fast-glob/out/types/index.d.ts b/graphql/node_modules/fast-glob/out/types/index.d.ts deleted file mode 100644 index 6506cafd..00000000 --- a/graphql/node_modules/fast-glob/out/types/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// -import * as fsWalk from '@nodelib/fs.walk'; -export type ErrnoException = NodeJS.ErrnoException; -export type Entry = fsWalk.Entry; -export type EntryItem = string | Entry; -export type Pattern = string; -export type PatternRe = RegExp; -export type PatternsGroup = Record; -export type ReaderOptions = fsWalk.Options & { - transform(entry: Entry): EntryItem; - deepFilter: DeepFilterFunction; - entryFilter: EntryFilterFunction; - errorFilter: ErrorFilterFunction; - fs: FileSystemAdapter; - stats: boolean; -}; -export type ErrorFilterFunction = fsWalk.ErrorFilterFunction; -export type EntryFilterFunction = fsWalk.EntryFilterFunction; -export type DeepFilterFunction = fsWalk.DeepFilterFunction; -export type EntryTransformerFunction = (entry: Entry) => EntryItem; -export type MicromatchOptions = { - dot?: boolean; - matchBase?: boolean; - nobrace?: boolean; - nocase?: boolean; - noext?: boolean; - noglobstar?: boolean; - posix?: boolean; - strictSlashes?: boolean; -}; -export type FileSystemAdapter = fsWalk.FileSystemAdapter; diff --git a/graphql/node_modules/fast-glob/out/types/index.js b/graphql/node_modules/fast-glob/out/types/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/graphql/node_modules/fast-glob/out/types/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/graphql/node_modules/fast-glob/out/utils/array.d.ts b/graphql/node_modules/fast-glob/out/utils/array.d.ts deleted file mode 100644 index 98e73250..00000000 --- a/graphql/node_modules/fast-glob/out/utils/array.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function flatten(items: T[][]): T[]; -export declare function splitWhen(items: T[], predicate: (item: T) => boolean): T[][]; diff --git a/graphql/node_modules/fast-glob/out/utils/array.js b/graphql/node_modules/fast-glob/out/utils/array.js deleted file mode 100644 index 50c406e8..00000000 --- a/graphql/node_modules/fast-glob/out/utils/array.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.splitWhen = exports.flatten = void 0; -function flatten(items) { - return items.reduce((collection, item) => [].concat(collection, item), []); -} -exports.flatten = flatten; -function splitWhen(items, predicate) { - const result = [[]]; - let groupIndex = 0; - for (const item of items) { - if (predicate(item)) { - groupIndex++; - result[groupIndex] = []; - } - else { - result[groupIndex].push(item); - } - } - return result; -} -exports.splitWhen = splitWhen; diff --git a/graphql/node_modules/fast-glob/out/utils/errno.d.ts b/graphql/node_modules/fast-glob/out/utils/errno.d.ts deleted file mode 100644 index 1c08d3ba..00000000 --- a/graphql/node_modules/fast-glob/out/utils/errno.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ErrnoException } from '../types'; -export declare function isEnoentCodeError(error: ErrnoException): boolean; diff --git a/graphql/node_modules/fast-glob/out/utils/errno.js b/graphql/node_modules/fast-glob/out/utils/errno.js deleted file mode 100644 index f0bd8015..00000000 --- a/graphql/node_modules/fast-glob/out/utils/errno.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isEnoentCodeError = void 0; -function isEnoentCodeError(error) { - return error.code === 'ENOENT'; -} -exports.isEnoentCodeError = isEnoentCodeError; diff --git a/graphql/node_modules/fast-glob/out/utils/fs.d.ts b/graphql/node_modules/fast-glob/out/utils/fs.d.ts deleted file mode 100644 index 64c61ce6..00000000 --- a/graphql/node_modules/fast-glob/out/utils/fs.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -import * as fs from 'fs'; -import { Dirent } from '@nodelib/fs.walk'; -export declare function createDirentFromStats(name: string, stats: fs.Stats): Dirent; diff --git a/graphql/node_modules/fast-glob/out/utils/fs.js b/graphql/node_modules/fast-glob/out/utils/fs.js deleted file mode 100644 index ace7c74d..00000000 --- a/graphql/node_modules/fast-glob/out/utils/fs.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDirentFromStats = void 0; -class DirentFromStats { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } -} -function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); -} -exports.createDirentFromStats = createDirentFromStats; diff --git a/graphql/node_modules/fast-glob/out/utils/index.d.ts b/graphql/node_modules/fast-glob/out/utils/index.d.ts deleted file mode 100644 index f634cad0..00000000 --- a/graphql/node_modules/fast-glob/out/utils/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as array from './array'; -import * as errno from './errno'; -import * as fs from './fs'; -import * as path from './path'; -import * as pattern from './pattern'; -import * as stream from './stream'; -import * as string from './string'; -export { array, errno, fs, path, pattern, stream, string }; diff --git a/graphql/node_modules/fast-glob/out/utils/index.js b/graphql/node_modules/fast-glob/out/utils/index.js deleted file mode 100644 index 0f92c166..00000000 --- a/graphql/node_modules/fast-glob/out/utils/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; -const array = require("./array"); -exports.array = array; -const errno = require("./errno"); -exports.errno = errno; -const fs = require("./fs"); -exports.fs = fs; -const path = require("./path"); -exports.path = path; -const pattern = require("./pattern"); -exports.pattern = pattern; -const stream = require("./stream"); -exports.stream = stream; -const string = require("./string"); -exports.string = string; diff --git a/graphql/node_modules/fast-glob/out/utils/path.d.ts b/graphql/node_modules/fast-glob/out/utils/path.d.ts deleted file mode 100644 index 0b13f4b4..00000000 --- a/graphql/node_modules/fast-glob/out/utils/path.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Pattern } from '../types'; -/** - * Designed to work only with simple paths: `dir\\file`. - */ -export declare function unixify(filepath: string): string; -export declare function makeAbsolute(cwd: string, filepath: string): string; -export declare function removeLeadingDotSegment(entry: string): string; -export declare const escape: typeof escapeWindowsPath; -export declare function escapeWindowsPath(pattern: Pattern): Pattern; -export declare function escapePosixPath(pattern: Pattern): Pattern; -export declare const convertPathToPattern: typeof convertWindowsPathToPattern; -export declare function convertWindowsPathToPattern(filepath: string): Pattern; -export declare function convertPosixPathToPattern(filepath: string): Pattern; diff --git a/graphql/node_modules/fast-glob/out/utils/path.js b/graphql/node_modules/fast-glob/out/utils/path.js deleted file mode 100644 index 7b53b397..00000000 --- a/graphql/node_modules/fast-glob/out/utils/path.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; -const os = require("os"); -const path = require("path"); -const IS_WINDOWS_PLATFORM = os.platform() === 'win32'; -const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\ -/** - * All non-escaped special characters. - * Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters. - * Windows: (){}[], !+@ before (, ! at the beginning. - */ -const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; -const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g; -/** - * The device path (\\.\ or \\?\). - * https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths - */ -const DOS_DEVICE_PATH_RE = /^\\\\([.?])/; -/** - * All backslashes except those escaping special characters. - * Windows: !()+@{} - * https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions - */ -const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g; -/** - * Designed to work only with simple paths: `dir\\file`. - */ -function unixify(filepath) { - return filepath.replace(/\\/g, '/'); -} -exports.unixify = unixify; -function makeAbsolute(cwd, filepath) { - return path.resolve(cwd, filepath); -} -exports.makeAbsolute = makeAbsolute; -function removeLeadingDotSegment(entry) { - // We do not use `startsWith` because this is 10x slower than current implementation for some cases. - // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with - if (entry.charAt(0) === '.') { - const secondCharactery = entry.charAt(1); - if (secondCharactery === '/' || secondCharactery === '\\') { - return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); - } - } - return entry; -} -exports.removeLeadingDotSegment = removeLeadingDotSegment; -exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; -function escapeWindowsPath(pattern) { - return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); -} -exports.escapeWindowsPath = escapeWindowsPath; -function escapePosixPath(pattern) { - return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); -} -exports.escapePosixPath = escapePosixPath; -exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; -function convertWindowsPathToPattern(filepath) { - return escapeWindowsPath(filepath) - .replace(DOS_DEVICE_PATH_RE, '//$1') - .replace(WINDOWS_BACKSLASHES_RE, '/'); -} -exports.convertWindowsPathToPattern = convertWindowsPathToPattern; -function convertPosixPathToPattern(filepath) { - return escapePosixPath(filepath); -} -exports.convertPosixPathToPattern = convertPosixPathToPattern; diff --git a/graphql/node_modules/fast-glob/out/utils/pattern.d.ts b/graphql/node_modules/fast-glob/out/utils/pattern.d.ts deleted file mode 100644 index e7ff07bb..00000000 --- a/graphql/node_modules/fast-glob/out/utils/pattern.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { MicromatchOptions, Pattern, PatternRe } from '../types'; -type PatternTypeOptions = { - braceExpansion?: boolean; - caseSensitiveMatch?: boolean; - extglob?: boolean; -}; -export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; -export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean; -export declare function convertToPositivePattern(pattern: Pattern): Pattern; -export declare function convertToNegativePattern(pattern: Pattern): Pattern; -export declare function isNegativePattern(pattern: Pattern): boolean; -export declare function isPositivePattern(pattern: Pattern): boolean; -export declare function getNegativePatterns(patterns: Pattern[]): Pattern[]; -export declare function getPositivePatterns(patterns: Pattern[]): Pattern[]; -/** - * Returns patterns that can be applied inside the current directory. - * - * @example - * // ['./*', '*', 'a/*'] - * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) - */ -export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[]; -/** - * Returns patterns to be expanded relative to (outside) the current directory. - * - * @example - * // ['../*', './../*'] - * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) - */ -export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[]; -export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean; -export declare function getBaseDirectory(pattern: Pattern): string; -export declare function hasGlobStar(pattern: Pattern): boolean; -export declare function endsWithSlashGlobStar(pattern: Pattern): boolean; -export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean; -export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[]; -export declare function expandBraceExpansion(pattern: Pattern): Pattern[]; -export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[]; -export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe; -export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[]; -export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean; -/** - * This package only works with forward slashes as a path separator. - * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. - */ -export declare function removeDuplicateSlashes(pattern: string): string; -export {}; diff --git a/graphql/node_modules/fast-glob/out/utils/pattern.js b/graphql/node_modules/fast-glob/out/utils/pattern.js deleted file mode 100644 index d7d4e91b..00000000 --- a/graphql/node_modules/fast-glob/out/utils/pattern.js +++ /dev/null @@ -1,188 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; -const path = require("path"); -const globParent = require("glob-parent"); -const micromatch = require("micromatch"); -const GLOBSTAR = '**'; -const ESCAPE_SYMBOL = '\\'; -const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; -const REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; -const REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; -const GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; -const BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; -/** - * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string. - * The latter is due to the presence of the device path at the beginning of the UNC path. - */ -const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; -function isStaticPattern(pattern, options = {}) { - return !isDynamicPattern(pattern, options); -} -exports.isStaticPattern = isStaticPattern; -function isDynamicPattern(pattern, options = {}) { - /** - * A special case with an empty string is necessary for matching patterns that start with a forward slash. - * An empty string cannot be a dynamic pattern. - * For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'. - */ - if (pattern === '') { - return false; - } - /** - * When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check - * filepath directly (without read directory). - */ - if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { - return true; - } - if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.braceExpansion !== false && hasBraceExpansion(pattern)) { - return true; - } - return false; -} -exports.isDynamicPattern = isDynamicPattern; -function hasBraceExpansion(pattern) { - const openingBraceIndex = pattern.indexOf('{'); - if (openingBraceIndex === -1) { - return false; - } - const closingBraceIndex = pattern.indexOf('}', openingBraceIndex + 1); - if (closingBraceIndex === -1) { - return false; - } - const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); - return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); -} -function convertToPositivePattern(pattern) { - return isNegativePattern(pattern) ? pattern.slice(1) : pattern; -} -exports.convertToPositivePattern = convertToPositivePattern; -function convertToNegativePattern(pattern) { - return '!' + pattern; -} -exports.convertToNegativePattern = convertToNegativePattern; -function isNegativePattern(pattern) { - return pattern.startsWith('!') && pattern[1] !== '('; -} -exports.isNegativePattern = isNegativePattern; -function isPositivePattern(pattern) { - return !isNegativePattern(pattern); -} -exports.isPositivePattern = isPositivePattern; -function getNegativePatterns(patterns) { - return patterns.filter(isNegativePattern); -} -exports.getNegativePatterns = getNegativePatterns; -function getPositivePatterns(patterns) { - return patterns.filter(isPositivePattern); -} -exports.getPositivePatterns = getPositivePatterns; -/** - * Returns patterns that can be applied inside the current directory. - * - * @example - * // ['./*', '*', 'a/*'] - * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) - */ -function getPatternsInsideCurrentDirectory(patterns) { - return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); -} -exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; -/** - * Returns patterns to be expanded relative to (outside) the current directory. - * - * @example - * // ['../*', './../*'] - * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*']) - */ -function getPatternsOutsideCurrentDirectory(patterns) { - return patterns.filter(isPatternRelatedToParentDirectory); -} -exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; -function isPatternRelatedToParentDirectory(pattern) { - return pattern.startsWith('..') || pattern.startsWith('./..'); -} -exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; -function getBaseDirectory(pattern) { - return globParent(pattern, { flipBackslashes: false }); -} -exports.getBaseDirectory = getBaseDirectory; -function hasGlobStar(pattern) { - return pattern.includes(GLOBSTAR); -} -exports.hasGlobStar = hasGlobStar; -function endsWithSlashGlobStar(pattern) { - return pattern.endsWith('/' + GLOBSTAR); -} -exports.endsWithSlashGlobStar = endsWithSlashGlobStar; -function isAffectDepthOfReadingPattern(pattern) { - const basename = path.basename(pattern); - return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); -} -exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; -function expandPatternsWithBraceExpansion(patterns) { - return patterns.reduce((collection, pattern) => { - return collection.concat(expandBraceExpansion(pattern)); - }, []); -} -exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; -function expandBraceExpansion(pattern) { - const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true }); - /** - * Sort the patterns by length so that the same depth patterns are processed side by side. - * `a/{b,}/{c,}/*` – `['a///*', 'a/b//*', 'a//c/*', 'a/b/c/*']` - */ - patterns.sort((a, b) => a.length - b.length); - /** - * Micromatch can return an empty string in the case of patterns like `{a,}`. - */ - return patterns.filter((pattern) => pattern !== ''); -} -exports.expandBraceExpansion = expandBraceExpansion; -function getPatternParts(pattern, options) { - let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true })); - /** - * The scan method returns an empty array in some cases. - * See micromatch/picomatch#58 for more details. - */ - if (parts.length === 0) { - parts = [pattern]; - } - /** - * The scan method does not return an empty part for the pattern with a forward slash. - * This is another part of micromatch/picomatch#58. - */ - if (parts[0].startsWith('/')) { - parts[0] = parts[0].slice(1); - parts.unshift(''); - } - return parts; -} -exports.getPatternParts = getPatternParts; -function makeRe(pattern, options) { - return micromatch.makeRe(pattern, options); -} -exports.makeRe = makeRe; -function convertPatternsToRe(patterns, options) { - return patterns.map((pattern) => makeRe(pattern, options)); -} -exports.convertPatternsToRe = convertPatternsToRe; -function matchAny(entry, patternsRe) { - return patternsRe.some((patternRe) => patternRe.test(entry)); -} -exports.matchAny = matchAny; -/** - * This package only works with forward slashes as a path separator. - * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. - */ -function removeDuplicateSlashes(pattern) { - return pattern.replace(DOUBLE_SLASH_RE, '/'); -} -exports.removeDuplicateSlashes = removeDuplicateSlashes; diff --git a/graphql/node_modules/fast-glob/out/utils/stream.d.ts b/graphql/node_modules/fast-glob/out/utils/stream.d.ts deleted file mode 100644 index 4daf9137..00000000 --- a/graphql/node_modules/fast-glob/out/utils/stream.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -import { Readable } from 'stream'; -export declare function merge(streams: Readable[]): NodeJS.ReadableStream; diff --git a/graphql/node_modules/fast-glob/out/utils/stream.js b/graphql/node_modules/fast-glob/out/utils/stream.js deleted file mode 100644 index b32028ce..00000000 --- a/graphql/node_modules/fast-glob/out/utils/stream.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.merge = void 0; -const merge2 = require("merge2"); -function merge(streams) { - const mergedStream = merge2(streams); - streams.forEach((stream) => { - stream.once('error', (error) => mergedStream.emit('error', error)); - }); - mergedStream.once('close', () => propagateCloseEventToSources(streams)); - mergedStream.once('end', () => propagateCloseEventToSources(streams)); - return mergedStream; -} -exports.merge = merge; -function propagateCloseEventToSources(streams) { - streams.forEach((stream) => stream.emit('close')); -} diff --git a/graphql/node_modules/fast-glob/out/utils/string.d.ts b/graphql/node_modules/fast-glob/out/utils/string.d.ts deleted file mode 100644 index c8847356..00000000 --- a/graphql/node_modules/fast-glob/out/utils/string.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function isString(input: unknown): input is string; -export declare function isEmpty(input: string): boolean; diff --git a/graphql/node_modules/fast-glob/out/utils/string.js b/graphql/node_modules/fast-glob/out/utils/string.js deleted file mode 100644 index 76e7ea54..00000000 --- a/graphql/node_modules/fast-glob/out/utils/string.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isEmpty = exports.isString = void 0; -function isString(input) { - return typeof input === 'string'; -} -exports.isString = isString; -function isEmpty(input) { - return input === ''; -} -exports.isEmpty = isEmpty; diff --git a/graphql/node_modules/fast-glob/package.json b/graphql/node_modules/fast-glob/package.json deleted file mode 100644 index 770cc6e5..00000000 --- a/graphql/node_modules/fast-glob/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "fast-glob", - "version": "3.3.2", - "description": "It's a very fast and efficient glob library for Node.js", - "license": "MIT", - "repository": "mrmlnc/fast-glob", - "author": { - "name": "Denis Malinochkin", - "url": "https://mrmlnc.com" - }, - "engines": { - "node": ">=8.6.0" - }, - "main": "out/index.js", - "typings": "out/index.d.ts", - "files": [ - "out", - "!out/{benchmark,tests}", - "!out/**/*.map", - "!out/**/*.spec.*" - ], - "keywords": [ - "glob", - "patterns", - "fast", - "implementation" - ], - "devDependencies": { - "@nodelib/fs.macchiato": "^1.0.1", - "@types/glob-parent": "^5.1.0", - "@types/merge2": "^1.1.4", - "@types/micromatch": "^4.0.0", - "@types/mocha": "^5.2.7", - "@types/node": "^14.18.53", - "@types/picomatch": "^2.3.0", - "@types/sinon": "^7.5.0", - "bencho": "^0.1.1", - "eslint": "^6.5.1", - "eslint-config-mrmlnc": "^1.1.0", - "execa": "^7.1.1", - "fast-glob": "^3.0.4", - "fdir": "^6.0.1", - "glob": "^10.0.0", - "hereby": "^1.8.1", - "mocha": "^6.2.1", - "rimraf": "^5.0.0", - "sinon": "^7.5.0", - "snap-shot-it": "^7.9.10", - "typescript": "^4.9.5" - }, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "scripts": { - "clean": "rimraf out", - "lint": "eslint \"src/**/*.ts\" --cache", - "compile": "tsc", - "test": "mocha \"out/**/*.spec.js\" -s 0", - "test:e2e": "mocha \"out/**/*.e2e.js\" -s 0", - "test:e2e:sync": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(sync\\)\"", - "test:e2e:async": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(async\\)\"", - "test:e2e:stream": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(stream\\)\"", - "build": "npm run clean && npm run compile && npm run lint && npm test", - "watch": "npm run clean && npm run compile -- --sourceMap --watch", - "bench:async": "npm run bench:product:async && npm run bench:regression:async", - "bench:stream": "npm run bench:product:stream && npm run bench:regression:stream", - "bench:sync": "npm run bench:product:sync && npm run bench:regression:sync", - "bench:product": "npm run bench:product:async && npm run bench:product:sync && npm run bench:product:stream", - "bench:product:async": "hereby bench:product:async", - "bench:product:sync": "hereby bench:product:sync", - "bench:product:stream": "hereby bench:product:stream", - "bench:regression": "npm run bench:regression:async && npm run bench:regression:sync && npm run bench:regression:stream", - "bench:regression:async": "hereby bench:regression:async", - "bench:regression:sync": "hereby bench:regression:sync", - "bench:regression:stream": "hereby bench:regression:stream" - } -} diff --git a/graphql/node_modules/fast-json-stable-stringify/.eslintrc.yml b/graphql/node_modules/fast-json-stable-stringify/.eslintrc.yml deleted file mode 100644 index 1c77b0d4..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/.eslintrc.yml +++ /dev/null @@ -1,26 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - callback-return: 2 - dot-notation: 2 - indent: 2 - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 - no-useless-escape: 2 diff --git a/graphql/node_modules/fast-json-stable-stringify/.github/FUNDING.yml b/graphql/node_modules/fast-json-stable-stringify/.github/FUNDING.yml deleted file mode 100644 index 61f9daa9..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -tidelift: "npm/fast-json-stable-stringify" diff --git a/graphql/node_modules/fast-json-stable-stringify/.travis.yml b/graphql/node_modules/fast-json-stable-stringify/.travis.yml deleted file mode 100644 index b61e8f0d..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "8" - - "10" - - "12" - - "13" -after_script: - - coveralls < coverage/lcov.info diff --git a/graphql/node_modules/fast-json-stable-stringify/LICENSE b/graphql/node_modules/fast-json-stable-stringify/LICENSE deleted file mode 100644 index c932223b..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -This software is released under the MIT license: - -Copyright (c) 2017 Evgeny Poberezkin -Copyright (c) 2013 James Halliday - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/fast-json-stable-stringify/README.md b/graphql/node_modules/fast-json-stable-stringify/README.md deleted file mode 100644 index 02cf49ff..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# fast-json-stable-stringify - -Deterministic `JSON.stringify()` - a faster version of [@substack](https://github.com/substack)'s json-stable-strigify without [jsonify](https://github.com/substack/jsonify). - -You can also pass in a custom comparison function. - -[![Build Status](https://travis-ci.org/epoberezkin/fast-json-stable-stringify.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-json-stable-stringify) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-json-stable-stringify/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-json-stable-stringify?branch=master) - -# example - -``` js -var stringify = require('fast-json-stable-stringify'); -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -console.log(stringify(obj)); -``` - -output: - -``` -{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8} -``` - - -# methods - -``` js -var stringify = require('fast-json-stable-stringify') -``` - -## var str = stringify(obj, opts) - -Return a deterministic stringified string `str` from the object `obj`. - - -## options - -### cmp - -If `opts` is given, you can supply an `opts.cmp` to have a custom comparison -function for object keys. Your function `opts.cmp` is called with these -parameters: - -``` js -opts.cmp({ key: akey, value: avalue }, { key: bkey, value: bvalue }) -``` - -For example, to sort on the object key names in reverse order you could write: - -``` js -var stringify = require('fast-json-stable-stringify'); - -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; -}); -console.log(s); -``` - -which results in the output string: - -``` -{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3} -``` - -Or if you wanted to sort on the object values in reverse order, you could write: - -``` -var stringify = require('fast-json-stable-stringify'); - -var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 }; -var s = stringify(obj, function (a, b) { - return a.value < b.value ? 1 : -1; -}); -console.log(s); -``` - -which outputs: - -``` -{"d":6,"c":5,"b":[{"z":3,"y":2,"x":1},9],"a":10} -``` - -### cycles - -Pass `true` in `opts.cycles` to stringify circular property as `__cycle__` - the result will not be a valid JSON string in this case. - -TypeError will be thrown in case of circular object without this option. - - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install fast-json-stable-stringify -``` - - -# benchmark - -To run benchmark (requires Node.js 6+): -``` -node benchmark -``` - -Results: -``` -fast-json-stable-stringify x 17,189 ops/sec ±1.43% (83 runs sampled) -json-stable-stringify x 13,634 ops/sec ±1.39% (85 runs sampled) -fast-stable-stringify x 20,212 ops/sec ±1.20% (84 runs sampled) -faster-stable-stringify x 15,549 ops/sec ±1.12% (84 runs sampled) -The fastest is fast-stable-stringify -``` - - -## Enterprise support - -fast-json-stable-stringify package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-json-stable-stringify?utm_source=npm-fast-json-stable-stringify&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -# license - -[MIT](https://github.com/epoberezkin/fast-json-stable-stringify/blob/master/LICENSE) diff --git a/graphql/node_modules/fast-json-stable-stringify/benchmark/index.js b/graphql/node_modules/fast-json-stable-stringify/benchmark/index.js deleted file mode 100644 index e725f9fc..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/benchmark/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -const Benchmark = require('benchmark'); -const suite = new Benchmark.Suite; -const testData = require('./test.json'); - - -const stringifyPackages = { - // 'JSON.stringify': JSON.stringify, - 'fast-json-stable-stringify': require('../index'), - 'json-stable-stringify': true, - 'fast-stable-stringify': true, - 'faster-stable-stringify': true -}; - - -for (const name in stringifyPackages) { - let func = stringifyPackages[name]; - if (func === true) func = require(name); - - suite.add(name, function() { - func(testData); - }); -} - -suite - .on('cycle', (event) => console.log(String(event.target))) - .on('complete', function () { - console.log('The fastest is ' + this.filter('fastest').map('name')); - }) - .run({async: true}); diff --git a/graphql/node_modules/fast-json-stable-stringify/benchmark/test.json b/graphql/node_modules/fast-json-stable-stringify/benchmark/test.json deleted file mode 100644 index c9118c11..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/benchmark/test.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "_id": "59ef4a83ee8364808d761beb", - "index": 0, - "guid": "e50ffae9-7128-4148-9ee5-40c3fc523c5d", - "isActive": false, - "balance": "$2,341.81", - "picture": "http://placehold.it/32x32", - "age": 28, - "eyeColor": "brown", - "name": "Carey Savage", - "gender": "female", - "company": "VERAQ", - "email": "careysavage@veraq.com", - "phone": "+1 (897) 574-3014", - "address": "458 Willow Street, Henrietta, California, 7234", - "about": "Nisi reprehenderit nulla ad officia pariatur non dolore laboris irure cupidatat laborum. Minim eu ex Lorem adipisicing exercitation irure minim sunt est enim mollit incididunt voluptate nulla. Ut mollit anim reprehenderit et aliqua ex esse aliquip. Aute sit duis deserunt do incididunt consequat minim qui dolor commodo deserunt et voluptate.\r\n", - "registered": "2014-05-21T01:56:51 -01:00", - "latitude": 63.89502, - "longitude": 62.369807, - "tags": [ - "nostrud", - "nisi", - "consectetur", - "ullamco", - "cupidatat", - "culpa", - "commodo" - ], - "friends": [ - { - "id": 0, - "name": "Henry Walls" - }, - { - "id": 1, - "name": "Janice Baker" - }, - { - "id": 2, - "name": "Russell Bush" - } - ], - "greeting": "Hello, Carey Savage! You have 4 unread messages.", - "favoriteFruit": "banana" - }, - { - "_id": "59ef4a83ff5774a691454e89", - "index": 1, - "guid": "2bee9efc-4095-4c2e-87ef-d08c8054c89d", - "isActive": true, - "balance": "$1,618.15", - "picture": "http://placehold.it/32x32", - "age": 35, - "eyeColor": "blue", - "name": "Elinor Pearson", - "gender": "female", - "company": "FLEXIGEN", - "email": "elinorpearson@flexigen.com", - "phone": "+1 (923) 548-3751", - "address": "600 Bayview Avenue, Draper, Montana, 3088", - "about": "Mollit commodo ea sit Lorem velit. Irure anim esse Lorem sint quis officia ut. Aliqua nisi dolore in aute deserunt mollit ex ea in mollit.\r\n", - "registered": "2017-04-22T07:58:41 -01:00", - "latitude": -87.824919, - "longitude": 69.538927, - "tags": [ - "fugiat", - "labore", - "proident", - "quis", - "eiusmod", - "qui", - "est" - ], - "friends": [ - { - "id": 0, - "name": "Massey Wagner" - }, - { - "id": 1, - "name": "Marcella Ferrell" - }, - { - "id": 2, - "name": "Evans Mckee" - } - ], - "greeting": "Hello, Elinor Pearson! You have 3 unread messages.", - "favoriteFruit": "strawberry" - }, - { - "_id": "59ef4a839ec8a4be4430b36b", - "index": 2, - "guid": "ddd6e8c0-95bd-416d-8b46-a768d6363809", - "isActive": false, - "balance": "$2,046.95", - "picture": "http://placehold.it/32x32", - "age": 40, - "eyeColor": "green", - "name": "Irwin Davidson", - "gender": "male", - "company": "DANJA", - "email": "irwindavidson@danja.com", - "phone": "+1 (883) 537-2041", - "address": "439 Cook Street, Chapin, Kentucky, 7398", - "about": "Irure velit non commodo aliqua exercitation ut nostrud minim magna. Dolor ad ad ut irure eu. Non pariatur dolor eiusmod ipsum do et exercitation cillum. Et amet laboris minim eiusmod ullamco magna ea reprehenderit proident sunt.\r\n", - "registered": "2016-09-01T07:49:08 -01:00", - "latitude": -49.803812, - "longitude": 104.93279, - "tags": [ - "consequat", - "enim", - "quis", - "magna", - "est", - "culpa", - "tempor" - ], - "friends": [ - { - "id": 0, - "name": "Ruth Hansen" - }, - { - "id": 1, - "name": "Kathrine Austin" - }, - { - "id": 2, - "name": "Rivera Munoz" - } - ], - "greeting": "Hello, Irwin Davidson! You have 2 unread messages.", - "favoriteFruit": "banana" - } -] diff --git a/graphql/node_modules/fast-json-stable-stringify/example/key_cmp.js b/graphql/node_modules/fast-json-stable-stringify/example/key_cmp.js deleted file mode 100644 index d5f66752..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/example/key_cmp.js +++ /dev/null @@ -1,7 +0,0 @@ -var stringify = require('../'); - -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; -}); -console.log(s); diff --git a/graphql/node_modules/fast-json-stable-stringify/example/nested.js b/graphql/node_modules/fast-json-stable-stringify/example/nested.js deleted file mode 100644 index 9a672fc6..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/example/nested.js +++ /dev/null @@ -1,3 +0,0 @@ -var stringify = require('../'); -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -console.log(stringify(obj)); diff --git a/graphql/node_modules/fast-json-stable-stringify/example/str.js b/graphql/node_modules/fast-json-stable-stringify/example/str.js deleted file mode 100644 index 9b4b3cd2..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/example/str.js +++ /dev/null @@ -1,3 +0,0 @@ -var stringify = require('../'); -var obj = { c: 6, b: [4,5], a: 3 }; -console.log(stringify(obj)); diff --git a/graphql/node_modules/fast-json-stable-stringify/example/value_cmp.js b/graphql/node_modules/fast-json-stable-stringify/example/value_cmp.js deleted file mode 100644 index 09f1c5f7..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/example/value_cmp.js +++ /dev/null @@ -1,7 +0,0 @@ -var stringify = require('../'); - -var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 }; -var s = stringify(obj, function (a, b) { - return a.value < b.value ? 1 : -1; -}); -console.log(s); diff --git a/graphql/node_modules/fast-json-stable-stringify/index.d.ts b/graphql/node_modules/fast-json-stable-stringify/index.d.ts deleted file mode 100644 index 23e46caf..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'fast-json-stable-stringify' { - function stringify(obj: any): string; - export = stringify; -} diff --git a/graphql/node_modules/fast-json-stable-stringify/index.js b/graphql/node_modules/fast-json-stable-stringify/index.js deleted file mode 100644 index c44e6a41..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/index.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -module.exports = function (data, opts) { - if (!opts) opts = {}; - if (typeof opts === 'function') opts = { cmp: opts }; - var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false; - - var cmp = opts.cmp && (function (f) { - return function (node) { - return function (a, b) { - var aobj = { key: a, value: node[a] }; - var bobj = { key: b, value: node[b] }; - return f(aobj, bobj); - }; - }; - })(opts.cmp); - - var seen = []; - return (function stringify (node) { - if (node && node.toJSON && typeof node.toJSON === 'function') { - node = node.toJSON(); - } - - if (node === undefined) return; - if (typeof node == 'number') return isFinite(node) ? '' + node : 'null'; - if (typeof node !== 'object') return JSON.stringify(node); - - var i, out; - if (Array.isArray(node)) { - out = '['; - for (i = 0; i < node.length; i++) { - if (i) out += ','; - out += stringify(node[i]) || 'null'; - } - return out + ']'; - } - - if (node === null) return 'null'; - - if (seen.indexOf(node) !== -1) { - if (cycles) return JSON.stringify('__cycle__'); - throw new TypeError('Converting circular structure to JSON'); - } - - var seenIndex = seen.push(node) - 1; - var keys = Object.keys(node).sort(cmp && cmp(node)); - out = ''; - for (i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = stringify(node[key]); - - if (!value) continue; - if (out) out += ','; - out += JSON.stringify(key) + ':' + value; - } - seen.splice(seenIndex, 1); - return '{' + out + '}'; - })(data); -}; diff --git a/graphql/node_modules/fast-json-stable-stringify/package.json b/graphql/node_modules/fast-json-stable-stringify/package.json deleted file mode 100644 index ad2c8bff..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "fast-json-stable-stringify", - "version": "2.1.0", - "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify", - "main": "index.js", - "types": "index.d.ts", - "dependencies": {}, - "devDependencies": { - "benchmark": "^2.1.4", - "coveralls": "^3.0.0", - "eslint": "^6.7.0", - "fast-stable-stringify": "latest", - "faster-stable-stringify": "latest", - "json-stable-stringify": "latest", - "nyc": "^14.1.0", - "pre-commit": "^1.2.2", - "tape": "^4.11.0" - }, - "scripts": { - "eslint": "eslint index.js test", - "test-spec": "tape test/*.js", - "test": "npm run eslint && nyc npm run test-spec" - }, - "repository": { - "type": "git", - "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git" - }, - "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify", - "keywords": [ - "json", - "stringify", - "deterministic", - "hash", - "stable" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT", - "nyc": { - "exclude": [ - "test", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - } -} diff --git a/graphql/node_modules/fast-json-stable-stringify/test/cmp.js b/graphql/node_modules/fast-json-stable-stringify/test/cmp.js deleted file mode 100644 index 4efd6b59..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/test/cmp.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('custom comparison function', function (t) { - t.plan(1); - var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; - var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; - }); - t.equal(s, '{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3}'); -}); diff --git a/graphql/node_modules/fast-json-stable-stringify/test/nested.js b/graphql/node_modules/fast-json-stable-stringify/test/nested.js deleted file mode 100644 index 167a358e..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/test/nested.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('nested', function (t) { - t.plan(1); - var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; - t.equal(stringify(obj), '{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}'); -}); - -test('cyclic (default)', function (t) { - t.plan(1); - var one = { a: 1 }; - var two = { a: 2, one: one }; - one.two = two; - try { - stringify(one); - } catch (ex) { - t.equal(ex.toString(), 'TypeError: Converting circular structure to JSON'); - } -}); - -test('cyclic (specifically allowed)', function (t) { - t.plan(1); - var one = { a: 1 }; - var two = { a: 2, one: one }; - one.two = two; - t.equal(stringify(one, {cycles:true}), '{"a":1,"two":{"a":2,"one":"__cycle__"}}'); -}); - -test('repeated non-cyclic value', function(t) { - t.plan(1); - var one = { x: 1 }; - var two = { a: one, b: one }; - t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}'); -}); - -test('acyclic but with reused obj-property pointers', function (t) { - t.plan(1); - var x = { a: 1 }; - var y = { b: x, c: x }; - t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}'); -}); diff --git a/graphql/node_modules/fast-json-stable-stringify/test/str.js b/graphql/node_modules/fast-json-stable-stringify/test/str.js deleted file mode 100644 index 99a9ade1..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/test/str.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('simple object', function (t) { - t.plan(1); - var obj = { c: 6, b: [4,5], a: 3, z: null }; - t.equal(stringify(obj), '{"a":3,"b":[4,5],"c":6,"z":null}'); -}); - -test('object with undefined', function (t) { - t.plan(1); - var obj = { a: 3, z: undefined }; - t.equal(stringify(obj), '{"a":3}'); -}); - -test('object with null', function (t) { - t.plan(1); - var obj = { a: 3, z: null }; - t.equal(stringify(obj), '{"a":3,"z":null}'); -}); - -test('object with NaN and Infinity', function (t) { - t.plan(1); - var obj = { a: 3, b: NaN, c: Infinity }; - t.equal(stringify(obj), '{"a":3,"b":null,"c":null}'); -}); - -test('array with undefined', function (t) { - t.plan(1); - var obj = [4, undefined, 6]; - t.equal(stringify(obj), '[4,null,6]'); -}); - -test('object with empty string', function (t) { - t.plan(1); - var obj = { a: 3, z: '' }; - t.equal(stringify(obj), '{"a":3,"z":""}'); -}); - -test('array with empty string', function (t) { - t.plan(1); - var obj = [4, '', 6]; - t.equal(stringify(obj), '[4,"",6]'); -}); diff --git a/graphql/node_modules/fast-json-stable-stringify/test/to-json.js b/graphql/node_modules/fast-json-stable-stringify/test/to-json.js deleted file mode 100644 index 2fb2cfa3..00000000 --- a/graphql/node_modules/fast-json-stable-stringify/test/to-json.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('toJSON function', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return { one: 1 }; } }; - t.equal(stringify(obj), '{"one":1}' ); -}); - -test('toJSON returns string', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return 'one'; } }; - t.equal(stringify(obj), '"one"'); -}); - -test('toJSON returns array', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return ['one']; } }; - t.equal(stringify(obj), '["one"]'); -}); diff --git a/graphql/node_modules/fast-levenshtein/LICENSE.md b/graphql/node_modules/fast-levenshtein/LICENSE.md deleted file mode 100644 index 6212406b..00000000 --- a/graphql/node_modules/fast-levenshtein/LICENSE.md +++ /dev/null @@ -1,25 +0,0 @@ -(MIT License) - -Copyright (c) 2013 [Ramesh Nair](http://www.hiddentao.com/) - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - diff --git a/graphql/node_modules/fast-levenshtein/README.md b/graphql/node_modules/fast-levenshtein/README.md deleted file mode 100644 index a7789953..00000000 --- a/graphql/node_modules/fast-levenshtein/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# fast-levenshtein - Levenshtein algorithm in Javascript - -[![Build Status](https://secure.travis-ci.org/hiddentao/fast-levenshtein.png)](http://travis-ci.org/hiddentao/fast-levenshtein) -[![NPM module](https://badge.fury.io/js/fast-levenshtein.png)](https://badge.fury.io/js/fast-levenshtein) -[![NPM downloads](https://img.shields.io/npm/dm/fast-levenshtein.svg?maxAge=2592000)](https://www.npmjs.com/package/fast-levenshtein) -[![Follow on Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/hiddentao) - -An efficient Javascript implementation of the [Levenshtein algorithm](http://en.wikipedia.org/wiki/Levenshtein_distance) with locale-specific collator support. - -## Features - -* Works in node.js and in the browser. -* Better performance than other implementations by not needing to store the whole matrix ([more info](http://www.codeproject.com/Articles/13525/Fast-memory-efficient-Levenshtein-algorithm)). -* Locale-sensitive string comparisions if needed. -* Comprehensive test suite and performance benchmark. -* Small: <1 KB minified and gzipped - -## Installation - -### node.js - -Install using [npm](http://npmjs.org/): - -```bash -$ npm install fast-levenshtein -``` - -### Browser - -Using bower: - -```bash -$ bower install fast-levenshtein -``` - -If you are not using any module loader system then the API will then be accessible via the `window.Levenshtein` object. - -## Examples - -**Default usage** - -```javascript -var levenshtein = require('fast-levenshtein'); - -var distance = levenshtein.get('back', 'book'); // 2 -var distance = levenshtein.get('我愛你', '我叫你'); // 1 -``` - -**Locale-sensitive string comparisons** - -It supports using [Intl.Collator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator) for locale-sensitive string comparisons: - -```javascript -var levenshtein = require('fast-levenshtein'); - -levenshtein.get('mikailovitch', 'Mikhaïlovitch', { useCollator: true}); -// 1 -``` - -## Building and Testing - -To build the code and run the tests: - -```bash -$ npm install -g grunt-cli -$ npm install -$ npm run build -``` - -## Performance - -_Thanks to [Titus Wormer](https://github.com/wooorm) for [encouraging me](https://github.com/hiddentao/fast-levenshtein/issues/1) to do this._ - -Benchmarked against other node.js levenshtein distance modules (on Macbook Air 2012, Core i7, 8GB RAM): - -```bash -Running suite Implementation comparison [benchmark/speed.js]... ->> levenshtein-edit-distance x 234 ops/sec ±3.02% (73 runs sampled) ->> levenshtein-component x 422 ops/sec ±4.38% (83 runs sampled) ->> levenshtein-deltas x 283 ops/sec ±3.83% (78 runs sampled) ->> natural x 255 ops/sec ±0.76% (88 runs sampled) ->> levenshtein x 180 ops/sec ±3.55% (86 runs sampled) ->> fast-levenshtein x 1,792 ops/sec ±2.72% (95 runs sampled) -Benchmark done. -Fastest test is fast-levenshtein at 4.2x faster than levenshtein-component -``` - -You can run this benchmark yourself by doing: - -```bash -$ npm install -$ npm run build -$ npm run benchmark -``` - -## Contributing - -If you wish to submit a pull request please update and/or create new tests for any changes you make and ensure the grunt build passes. - -See [CONTRIBUTING.md](https://github.com/hiddentao/fast-levenshtein/blob/master/CONTRIBUTING.md) for details. - -## License - -MIT - see [LICENSE.md](https://github.com/hiddentao/fast-levenshtein/blob/master/LICENSE.md) diff --git a/graphql/node_modules/fast-levenshtein/levenshtein.js b/graphql/node_modules/fast-levenshtein/levenshtein.js deleted file mode 100644 index dbe36280..00000000 --- a/graphql/node_modules/fast-levenshtein/levenshtein.js +++ /dev/null @@ -1,136 +0,0 @@ -(function() { - 'use strict'; - - var collator; - try { - collator = (typeof Intl !== "undefined" && typeof Intl.Collator !== "undefined") ? Intl.Collator("generic", { sensitivity: "base" }) : null; - } catch (err){ - console.log("Collator could not be initialized and wouldn't be used"); - } - // arrays to re-use - var prevRow = [], - str2Char = []; - - /** - * Based on the algorithm at http://en.wikipedia.org/wiki/Levenshtein_distance. - */ - var Levenshtein = { - /** - * Calculate levenshtein distance of the two strings. - * - * @param str1 String the first string. - * @param str2 String the second string. - * @param [options] Additional options. - * @param [options.useCollator] Use `Intl.Collator` for locale-sensitive string comparison. - * @return Integer the levenshtein distance (0 and above). - */ - get: function(str1, str2, options) { - var useCollator = (options && collator && options.useCollator); - - var str1Len = str1.length, - str2Len = str2.length; - - // base cases - if (str1Len === 0) return str2Len; - if (str2Len === 0) return str1Len; - - // two rows - var curCol, nextCol, i, j, tmp; - - // initialise previous row - for (i=0; i tmp) { - nextCol = tmp; - } - // deletion - tmp = prevRow[j + 1] + 1; - if (nextCol > tmp) { - nextCol = tmp; - } - - // copy current col value into previous (in preparation for next iteration) - prevRow[j] = curCol; - } - - // copy last col value into previous (in preparation for next iteration) - prevRow[j] = nextCol; - } - } - else { - // calculate current row distance from previous row without collator - for (i = 0; i < str1Len; ++i) { - nextCol = i + 1; - - for (j = 0; j < str2Len; ++j) { - curCol = nextCol; - - // substution - strCmp = str1.charCodeAt(i) === str2Char[j]; - - nextCol = prevRow[j] + (strCmp ? 0 : 1); - - // insertion - tmp = curCol + 1; - if (nextCol > tmp) { - nextCol = tmp; - } - // deletion - tmp = prevRow[j + 1] + 1; - if (nextCol > tmp) { - nextCol = tmp; - } - - // copy current col value into previous (in preparation for next iteration) - prevRow[j] = curCol; - } - - // copy last col value into previous (in preparation for next iteration) - prevRow[j] = nextCol; - } - } - return nextCol; - } - - }; - - // amd - if (typeof define !== "undefined" && define !== null && define.amd) { - define(function() { - return Levenshtein; - }); - } - // commonjs - else if (typeof module !== "undefined" && module !== null && typeof exports !== "undefined" && module.exports === exports) { - module.exports = Levenshtein; - } - // web worker - else if (typeof self !== "undefined" && typeof self.postMessage === 'function' && typeof self.importScripts === 'function') { - self.Levenshtein = Levenshtein; - } - // browser main thread - else if (typeof window !== "undefined" && window !== null) { - window.Levenshtein = Levenshtein; - } -}()); - diff --git a/graphql/node_modules/fast-levenshtein/package.json b/graphql/node_modules/fast-levenshtein/package.json deleted file mode 100644 index 5b4736d4..00000000 --- a/graphql/node_modules/fast-levenshtein/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "fast-levenshtein", - "version": "2.0.6", - "description": "Efficient implementation of Levenshtein algorithm with locale-specific collator support.", - "main": "levenshtein.js", - "files": [ - "levenshtein.js" - ], - "scripts": { - "build": "grunt build", - "prepublish": "npm run build", - "benchmark": "grunt benchmark", - "test": "mocha" - }, - "devDependencies": { - "chai": "~1.5.0", - "grunt": "~0.4.1", - "grunt-benchmark": "~0.2.0", - "grunt-cli": "^1.2.0", - "grunt-contrib-jshint": "~0.4.3", - "grunt-contrib-uglify": "~0.2.0", - "grunt-mocha-test": "~0.2.2", - "grunt-npm-install": "~0.1.0", - "load-grunt-tasks": "~0.6.0", - "lodash": "^4.0.1", - "mocha": "~1.9.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/hiddentao/fast-levenshtein.git" - }, - "keywords": [ - "levenshtein", - "distance", - "string" - ], - "author": "Ramesh Nair (http://www.hiddentao.com/)", - "license": "MIT" -} diff --git a/graphql/node_modules/fastq/.github/dependabot.yml b/graphql/node_modules/fastq/.github/dependabot.yml deleted file mode 100644 index 7e7cbe1b..00000000 --- a/graphql/node_modules/fastq/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 2 -updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 - ignore: - - dependency-name: standard - versions: - - 16.0.3 diff --git a/graphql/node_modules/fastq/.github/workflows/ci.yml b/graphql/node_modules/fastq/.github/workflows/ci.yml deleted file mode 100644 index 69521c4d..00000000 --- a/graphql/node_modules/fastq/.github/workflows/ci.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: ci - -on: [push, pull_request] - -jobs: - legacy: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: ['0.10', '0.12', 4.x, 6.x, 8.x] - - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install --production && npm install tape - - - name: Run tests - run: | - npm run legacy - - test: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 13.x, 14.x, 15.x, 16.x, 18.x, 20.x] - - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Run tests - run: | - npm run test - - types: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Install - run: | - npm install - - - name: Run types tests - run: | - npm run typescript diff --git a/graphql/node_modules/fastq/LICENSE b/graphql/node_modules/fastq/LICENSE deleted file mode 100644 index 27c7bb46..00000000 --- a/graphql/node_modules/fastq/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2015-2020, Matteo Collina - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/fastq/README.md b/graphql/node_modules/fastq/README.md deleted file mode 100644 index af5feeee..00000000 --- a/graphql/node_modules/fastq/README.md +++ /dev/null @@ -1,306 +0,0 @@ -# fastq - -![ci][ci-url] -[![npm version][npm-badge]][npm-url] - -Fast, in memory work queue. - -Benchmarks (1 million tasks): - -* setImmediate: 812ms -* fastq: 854ms -* async.queue: 1298ms -* neoAsync.queue: 1249ms - -Obtained on node 12.16.1, on a dedicated server. - -If you need zero-overhead series function call, check out -[fastseries](http://npm.im/fastseries). For zero-overhead parallel -function call, check out [fastparallel](http://npm.im/fastparallel). - -[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard) - - * Installation - * Usage - * API - * Licence & copyright - -## Install - -`npm i fastq --save` - -## Usage (callback API) - -```js -'use strict' - -const queue = require('fastq')(worker, 1) - -queue.push(42, function (err, result) { - if (err) { throw err } - console.log('the result is', result) -}) - -function worker (arg, cb) { - cb(null, arg * 2) -} -``` - -## Usage (promise API) - -```js -const queue = require('fastq').promise(worker, 1) - -async function worker (arg) { - return arg * 2 -} - -async function run () { - const result = await queue.push(42) - console.log('the result is', result) -} - -run() -``` - -### Setting "this" - -```js -'use strict' - -const that = { hello: 'world' } -const queue = require('fastq')(that, worker, 1) - -queue.push(42, function (err, result) { - if (err) { throw err } - console.log(this) - console.log('the result is', result) -}) - -function worker (arg, cb) { - console.log(this) - cb(null, arg * 2) -} -``` - -### Using with TypeScript (callback API) - -```ts -'use strict' - -import * as fastq from "fastq"; -import type { queue, done } from "fastq"; - -type Task = { - id: number -} - -const q: queue = fastq(worker, 1) - -q.push({ id: 42}) - -function worker (arg: Task, cb: done) { - console.log(arg.id) - cb(null) -} -``` - -### Using with TypeScript (promise API) - -```ts -'use strict' - -import * as fastq from "fastq"; -import type { queueAsPromised } from "fastq"; - -type Task = { - id: number -} - -const q: queueAsPromised = fastq.promise(asyncWorker, 1) - -q.push({ id: 42}).catch((err) => console.error(err)) - -async function asyncWorker (arg: Task): Promise { - // No need for a try-catch block, fastq handles errors automatically - console.log(arg.id) -} -``` - -## API - -* fastqueue() -* queue#push() -* queue#unshift() -* queue#pause() -* queue#resume() -* queue#idle() -* queue#length() -* queue#getQueue() -* queue#kill() -* queue#killAndDrain() -* queue#error() -* queue#concurrency -* queue#drain -* queue#empty -* queue#saturated -* fastqueue.promise() - -------------------------------------------------------- - -### fastqueue([that], worker, concurrency) - -Creates a new queue. - -Arguments: - -* `that`, optional context of the `worker` function. -* `worker`, worker function, it would be called with `that` as `this`, - if that is specified. -* `concurrency`, number of concurrent tasks that could be executed in - parallel. - -------------------------------------------------------- - -### queue.push(task, done) - -Add a task at the end of the queue. `done(err, result)` will be called -when the task was processed. - -------------------------------------------------------- - -### queue.unshift(task, done) - -Add a task at the beginning of the queue. `done(err, result)` will be called -when the task was processed. - -------------------------------------------------------- - -### queue.pause() - -Pause the processing of tasks. Currently worked tasks are not -stopped. - -------------------------------------------------------- - -### queue.resume() - -Resume the processing of tasks. - -------------------------------------------------------- - -### queue.idle() - -Returns `false` if there are tasks being processed or waiting to be processed. -`true` otherwise. - -------------------------------------------------------- - -### queue.length() - -Returns the number of tasks waiting to be processed (in the queue). - -------------------------------------------------------- - -### queue.getQueue() - -Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks - -------------------------------------------------------- - -### queue.kill() - -Removes all tasks waiting to be processed, and reset `drain` to an empty -function. - -------------------------------------------------------- - -### queue.killAndDrain() - -Same than `kill` but the `drain` function will be called before reset to empty. - -------------------------------------------------------- - -### queue.error(handler) - -Set a global error handler. `handler(err, task)` will be called -each time a task is completed, `err` will be not null if the task has thrown an error. - -------------------------------------------------------- - -### queue.concurrency - -Property that returns the number of concurrent tasks that could be executed in -parallel. It can be altered at runtime. - -------------------------------------------------------- - -### queue.drain - -Function that will be called when the last -item from the queue has been processed by a worker. -It can be altered at runtime. - -------------------------------------------------------- - -### queue.empty - -Function that will be called when the last -item from the queue has been assigned to a worker. -It can be altered at runtime. - -------------------------------------------------------- - -### queue.saturated - -Function that will be called when the queue hits the concurrency -limit. -It can be altered at runtime. - -------------------------------------------------------- - -### fastqueue.promise([that], worker(arg), concurrency) - -Creates a new queue with `Promise` apis. It also offers all the methods -and properties of the object returned by [`fastqueue`](#fastqueue) with the modified -[`push`](#pushPromise) and [`unshift`](#unshiftPromise) methods. - -Node v10+ is required to use the promisified version. - -Arguments: -* `that`, optional context of the `worker` function. -* `worker`, worker function, it would be called with `that` as `this`, - if that is specified. It MUST return a `Promise`. -* `concurrency`, number of concurrent tasks that could be executed in - parallel. - - -#### queue.push(task) => Promise - -Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected) -when the task is completed successfully (unsuccessfully). - -This promise could be ignored as it will not lead to a `'unhandledRejection'`. - - -#### queue.unshift(task) => Promise - -Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected) -when the task is completed successfully (unsuccessfully). - -This promise could be ignored as it will not lead to a `'unhandledRejection'`. - - -#### queue.drained() => Promise - -Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker. - -This promise could be ignored as it will not lead to a `'unhandledRejection'`. - -## License - -ISC - -[ci-url]: https://github.com/mcollina/fastq/workflows/ci/badge.svg -[npm-badge]: https://badge.fury.io/js/fastq.svg -[npm-url]: https://badge.fury.io/js/fastq diff --git a/graphql/node_modules/fastq/bench.js b/graphql/node_modules/fastq/bench.js deleted file mode 100644 index 4eaa829f..00000000 --- a/graphql/node_modules/fastq/bench.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict' - -const max = 1000000 -const fastqueue = require('./')(worker, 1) -const { promisify } = require('util') -const immediate = promisify(setImmediate) -const qPromise = require('./').promise(immediate, 1) -const async = require('async') -const neo = require('neo-async') -const asyncqueue = async.queue(worker, 1) -const neoqueue = neo.queue(worker, 1) - -function bench (func, done) { - const key = max + '*' + func.name - let count = -1 - - console.time(key) - end() - - function end () { - if (++count < max) { - func(end) - } else { - console.timeEnd(key) - if (done) { - done() - } - } - } -} - -function benchFastQ (done) { - fastqueue.push(42, done) -} - -function benchAsyncQueue (done) { - asyncqueue.push(42, done) -} - -function benchNeoQueue (done) { - neoqueue.push(42, done) -} - -function worker (arg, cb) { - setImmediate(cb) -} - -function benchSetImmediate (cb) { - worker(42, cb) -} - -function benchFastQPromise (done) { - qPromise.push(42).then(function () { done() }, done) -} - -function runBench (done) { - async.eachSeries([ - benchSetImmediate, - benchFastQ, - benchNeoQueue, - benchAsyncQueue, - benchFastQPromise - ], bench, done) -} - -runBench(runBench) diff --git a/graphql/node_modules/fastq/example.js b/graphql/node_modules/fastq/example.js deleted file mode 100644 index 665fdc84..00000000 --- a/graphql/node_modules/fastq/example.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict' - -/* eslint-disable no-var */ - -var queue = require('./')(worker, 1) - -queue.push(42, function (err, result) { - if (err) { throw err } - console.log('the result is', result) -}) - -function worker (arg, cb) { - cb(null, 42 * 2) -} diff --git a/graphql/node_modules/fastq/example.mjs b/graphql/node_modules/fastq/example.mjs deleted file mode 100644 index 81be789a..00000000 --- a/graphql/node_modules/fastq/example.mjs +++ /dev/null @@ -1,11 +0,0 @@ -import { promise as queueAsPromised } from './queue.js' - -/* eslint-disable */ - -const queue = queueAsPromised(worker, 1) - -console.log('the result is', await queue.push(42)) - -async function worker (arg) { - return 42 * 2 -} diff --git a/graphql/node_modules/fastq/index.d.ts b/graphql/node_modules/fastq/index.d.ts deleted file mode 100644 index 327f399a..00000000 --- a/graphql/node_modules/fastq/index.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -declare function fastq(context: C, worker: fastq.worker, concurrency: number): fastq.queue -declare function fastq(worker: fastq.worker, concurrency: number): fastq.queue - -declare namespace fastq { - type worker = (this: C, task: T, cb: fastq.done) => void - type asyncWorker = (this: C, task: T) => Promise - type done = (err: Error | null, result?: R) => void - type errorHandler = (err: Error, task: T) => void - - interface queue { - push(task: T, done?: done): void - unshift(task: T, done?: done): void - pause(): any - resume(): any - running(): number - idle(): boolean - length(): number - getQueue(): T[] - kill(): any - killAndDrain(): any - error(handler: errorHandler): void - concurrency: number - drain(): any - empty: () => void - saturated: () => void - } - - interface queueAsPromised extends queue { - push(task: T): Promise - unshift(task: T): Promise - drained(): Promise - } - - function promise(context: C, worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised - function promise(worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised -} - -export = fastq diff --git a/graphql/node_modules/fastq/package.json b/graphql/node_modules/fastq/package.json deleted file mode 100644 index 44655bc7..00000000 --- a/graphql/node_modules/fastq/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "fastq", - "version": "1.17.1", - "description": "Fast, in memory work queue", - "main": "queue.js", - "scripts": { - "lint": "standard --verbose | snazzy", - "unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test/test.js test/promise.js", - "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js test/promise.js", - "test:report": "npm run lint && npm run unit:report", - "test": "npm run lint && npm run unit", - "typescript": "tsc --project ./test/tsconfig.json", - "legacy": "tape test/test.js" - }, - "pre-commit": [ - "test", - "typescript" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/mcollina/fastq.git" - }, - "keywords": [ - "fast", - "queue", - "async", - "worker" - ], - "author": "Matteo Collina ", - "license": "ISC", - "bugs": { - "url": "https://github.com/mcollina/fastq/issues" - }, - "homepage": "https://github.com/mcollina/fastq#readme", - "devDependencies": { - "async": "^3.1.0", - "neo-async": "^2.6.1", - "nyc": "^15.0.0", - "pre-commit": "^1.2.2", - "snazzy": "^9.0.0", - "standard": "^16.0.0", - "tape": "^5.0.0", - "typescript": "^5.0.4" - }, - "dependencies": { - "reusify": "^1.0.4" - }, - "standard": { - "ignore": [ - "example.mjs" - ] - } -} diff --git a/graphql/node_modules/fastq/queue.js b/graphql/node_modules/fastq/queue.js deleted file mode 100644 index a9d0fa95..00000000 --- a/graphql/node_modules/fastq/queue.js +++ /dev/null @@ -1,311 +0,0 @@ -'use strict' - -/* eslint-disable no-var */ - -var reusify = require('reusify') - -function fastqueue (context, worker, _concurrency) { - if (typeof context === 'function') { - _concurrency = worker - worker = context - context = null - } - - if (!(_concurrency >= 1)) { - throw new Error('fastqueue concurrency must be equal to or greater than 1') - } - - var cache = reusify(Task) - var queueHead = null - var queueTail = null - var _running = 0 - var errorHandler = null - - var self = { - push: push, - drain: noop, - saturated: noop, - pause: pause, - paused: false, - - get concurrency () { - return _concurrency - }, - set concurrency (value) { - if (!(value >= 1)) { - throw new Error('fastqueue concurrency must be equal to or greater than 1') - } - _concurrency = value - - if (self.paused) return - for (; queueHead && _running < _concurrency;) { - _running++ - release() - } - }, - - running: running, - resume: resume, - idle: idle, - length: length, - getQueue: getQueue, - unshift: unshift, - empty: noop, - kill: kill, - killAndDrain: killAndDrain, - error: error - } - - return self - - function running () { - return _running - } - - function pause () { - self.paused = true - } - - function length () { - var current = queueHead - var counter = 0 - - while (current) { - current = current.next - counter++ - } - - return counter - } - - function getQueue () { - var current = queueHead - var tasks = [] - - while (current) { - tasks.push(current.value) - current = current.next - } - - return tasks - } - - function resume () { - if (!self.paused) return - self.paused = false - if (queueHead === null) { - _running++ - release() - return - } - for (; queueHead && _running < _concurrency;) { - _running++ - release() - } - } - - function idle () { - return _running === 0 && self.length() === 0 - } - - function push (value, done) { - var current = cache.get() - - current.context = context - current.release = release - current.value = value - current.callback = done || noop - current.errorHandler = errorHandler - - if (_running >= _concurrency || self.paused) { - if (queueTail) { - queueTail.next = current - queueTail = current - } else { - queueHead = current - queueTail = current - self.saturated() - } - } else { - _running++ - worker.call(context, current.value, current.worked) - } - } - - function unshift (value, done) { - var current = cache.get() - - current.context = context - current.release = release - current.value = value - current.callback = done || noop - current.errorHandler = errorHandler - - if (_running >= _concurrency || self.paused) { - if (queueHead) { - current.next = queueHead - queueHead = current - } else { - queueHead = current - queueTail = current - self.saturated() - } - } else { - _running++ - worker.call(context, current.value, current.worked) - } - } - - function release (holder) { - if (holder) { - cache.release(holder) - } - var next = queueHead - if (next && _running <= _concurrency) { - if (!self.paused) { - if (queueTail === queueHead) { - queueTail = null - } - queueHead = next.next - next.next = null - worker.call(context, next.value, next.worked) - if (queueTail === null) { - self.empty() - } - } else { - _running-- - } - } else if (--_running === 0) { - self.drain() - } - } - - function kill () { - queueHead = null - queueTail = null - self.drain = noop - } - - function killAndDrain () { - queueHead = null - queueTail = null - self.drain() - self.drain = noop - } - - function error (handler) { - errorHandler = handler - } -} - -function noop () {} - -function Task () { - this.value = null - this.callback = noop - this.next = null - this.release = noop - this.context = null - this.errorHandler = null - - var self = this - - this.worked = function worked (err, result) { - var callback = self.callback - var errorHandler = self.errorHandler - var val = self.value - self.value = null - self.callback = noop - if (self.errorHandler) { - errorHandler(err, val) - } - callback.call(self.context, err, result) - self.release(self) - } -} - -function queueAsPromised (context, worker, _concurrency) { - if (typeof context === 'function') { - _concurrency = worker - worker = context - context = null - } - - function asyncWrapper (arg, cb) { - worker.call(this, arg) - .then(function (res) { - cb(null, res) - }, cb) - } - - var queue = fastqueue(context, asyncWrapper, _concurrency) - - var pushCb = queue.push - var unshiftCb = queue.unshift - - queue.push = push - queue.unshift = unshift - queue.drained = drained - - return queue - - function push (value) { - var p = new Promise(function (resolve, reject) { - pushCb(value, function (err, result) { - if (err) { - reject(err) - return - } - resolve(result) - }) - }) - - // Let's fork the promise chain to - // make the error bubble up to the user but - // not lead to a unhandledRejection - p.catch(noop) - - return p - } - - function unshift (value) { - var p = new Promise(function (resolve, reject) { - unshiftCb(value, function (err, result) { - if (err) { - reject(err) - return - } - resolve(result) - }) - }) - - // Let's fork the promise chain to - // make the error bubble up to the user but - // not lead to a unhandledRejection - p.catch(noop) - - return p - } - - function drained () { - if (queue.idle()) { - return new Promise(function (resolve) { - resolve() - }) - } - - var previousDrain = queue.drain - - var p = new Promise(function (resolve) { - queue.drain = function () { - previousDrain() - resolve() - } - }) - - return p - } -} - -module.exports = fastqueue -module.exports.promise = queueAsPromised diff --git a/graphql/node_modules/fastq/test/example.ts b/graphql/node_modules/fastq/test/example.ts deleted file mode 100644 index a47d4419..00000000 --- a/graphql/node_modules/fastq/test/example.ts +++ /dev/null @@ -1,83 +0,0 @@ -import * as fastq from '../' -import { promise as queueAsPromised } from '../' - -// Basic example - -const queue = fastq(worker, 1) - -queue.push('world', (err, result) => { - if (err) throw err - console.log('the result is', result) -}) - -queue.push('push without cb') - -queue.concurrency - -queue.drain() - -queue.empty = () => undefined - -console.log('the queue tasks are', queue.getQueue()) - -queue.idle() - -queue.kill() - -queue.killAndDrain() - -queue.length - -queue.pause() - -queue.resume() - -queue.running() - -queue.saturated = () => undefined - -queue.unshift('world', (err, result) => { - if (err) throw err - console.log('the result is', result) -}) - -queue.unshift('unshift without cb') - -function worker(task: any, cb: fastq.done) { - cb(null, 'hello ' + task) -} - -// Generics example - -interface GenericsContext { - base: number; -} - -const genericsQueue = fastq({ base: 6 }, genericsWorker, 1) - -genericsQueue.push(7, (err, done) => { - if (err) throw err - console.log('the result is', done) -}) - -genericsQueue.unshift(7, (err, done) => { - if (err) throw err - console.log('the result is', done) -}) - -function genericsWorker(this: GenericsContext, task: number, cb: fastq.done) { - cb(null, 'the meaning of life is ' + (this.base * task)) -} - -const queue2 = queueAsPromised(asyncWorker, 1) - -async function asyncWorker(task: any) { - return 'hello ' + task -} - -async function run () { - await queue.push(42) - await queue.unshift(42) -} - -run() diff --git a/graphql/node_modules/fastq/test/promise.js b/graphql/node_modules/fastq/test/promise.js deleted file mode 100644 index fe014ffe..00000000 --- a/graphql/node_modules/fastq/test/promise.js +++ /dev/null @@ -1,248 +0,0 @@ -'use strict' - -const test = require('tape') -const buildQueue = require('../').promise -const { promisify } = require('util') -const sleep = promisify(setTimeout) -const immediate = promisify(setImmediate) - -test('concurrency', function (t) { - t.plan(2) - t.throws(buildQueue.bind(null, worker, 0)) - t.doesNotThrow(buildQueue.bind(null, worker, 1)) - - async function worker (arg) { - return true - } -}) - -test('worker execution', async function (t) { - const queue = buildQueue(worker, 1) - - const result = await queue.push(42) - - t.equal(result, true, 'result matches') - - async function worker (arg) { - t.equal(arg, 42) - return true - } -}) - -test('limit', async function (t) { - const queue = buildQueue(worker, 1) - - const [res1, res2] = await Promise.all([queue.push(10), queue.push(0)]) - t.equal(res1, 10, 'the result matches') - t.equal(res2, 0, 'the result matches') - - async function worker (arg) { - await sleep(arg) - return arg - } -}) - -test('multiple executions', async function (t) { - const queue = buildQueue(worker, 1) - const toExec = [1, 2, 3, 4, 5] - const expected = ['a', 'b', 'c', 'd', 'e'] - let count = 0 - - await Promise.all(toExec.map(async function (task, i) { - const result = await queue.push(task) - t.equal(result, expected[i], 'the result matches') - })) - - async function worker (arg) { - t.equal(arg, toExec[count], 'arg matches') - return expected[count++] - } -}) - -test('drained', async function (t) { - const queue = buildQueue(worker, 2) - - const toExec = new Array(10).fill(10) - let count = 0 - - async function worker (arg) { - await sleep(arg) - count++ - } - - toExec.forEach(function (i) { - queue.push(i) - }) - - await queue.drained() - - t.equal(count, toExec.length) - - toExec.forEach(function (i) { - queue.push(i) - }) - - await queue.drained() - - t.equal(count, toExec.length * 2) -}) - -test('drained with exception should not throw', async function (t) { - const queue = buildQueue(worker, 2) - - const toExec = new Array(10).fill(10) - - async function worker () { - throw new Error('foo') - } - - toExec.forEach(function (i) { - queue.push(i) - }) - - await queue.drained() -}) - -test('drained with drain function', async function (t) { - let drainCalled = false - const queue = buildQueue(worker, 2) - - queue.drain = function () { - drainCalled = true - } - - const toExec = new Array(10).fill(10) - let count = 0 - - async function worker (arg) { - await sleep(arg) - count++ - } - - toExec.forEach(function () { - queue.push() - }) - - await queue.drained() - - t.equal(count, toExec.length) - t.equal(drainCalled, true) -}) - -test('drained while idle should resolve', async function (t) { - const queue = buildQueue(worker, 2) - - async function worker (arg) { - await sleep(arg) - } - - await queue.drained() -}) - -test('drained while idle should not call the drain function', async function (t) { - let drainCalled = false - const queue = buildQueue(worker, 2) - - queue.drain = function () { - drainCalled = true - } - - async function worker (arg) { - await sleep(arg) - } - - await queue.drained() - - t.equal(drainCalled, false) -}) - -test('set this', async function (t) { - t.plan(1) - const that = {} - const queue = buildQueue(that, worker, 1) - - await queue.push(42) - - async function worker (arg) { - t.equal(this, that, 'this matches') - } -}) - -test('unshift', async function (t) { - const queue = buildQueue(worker, 1) - const expected = [1, 2, 3, 4] - - await Promise.all([ - queue.push(1), - queue.push(4), - queue.unshift(3), - queue.unshift(2) - ]) - - t.is(expected.length, 0) - - async function worker (arg) { - t.equal(expected.shift(), arg, 'tasks come in order') - } -}) - -test('push with worker throwing error', async function (t) { - t.plan(5) - const q = buildQueue(async function (task, cb) { - throw new Error('test error') - }, 1) - q.error(function (err, task) { - t.ok(err instanceof Error, 'global error handler should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - t.equal(task, 42, 'The task executed should be passed') - }) - try { - await q.push(42) - } catch (err) { - t.ok(err instanceof Error, 'push callback should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - } -}) - -test('unshift with worker throwing error', async function (t) { - t.plan(2) - const q = buildQueue(async function (task, cb) { - throw new Error('test error') - }, 1) - try { - await q.unshift(42) - } catch (err) { - t.ok(err instanceof Error, 'push callback should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - } -}) - -test('no unhandledRejection (push)', async function (t) { - function handleRejection () { - t.fail('unhandledRejection') - } - process.once('unhandledRejection', handleRejection) - const q = buildQueue(async function (task, cb) { - throw new Error('test error') - }, 1) - - q.push(42) - - await immediate() - process.removeListener('unhandledRejection', handleRejection) -}) - -test('no unhandledRejection (unshift)', async function (t) { - function handleRejection () { - t.fail('unhandledRejection') - } - process.once('unhandledRejection', handleRejection) - const q = buildQueue(async function (task, cb) { - throw new Error('test error') - }, 1) - - q.unshift(42) - - await immediate() - process.removeListener('unhandledRejection', handleRejection) -}) diff --git a/graphql/node_modules/fastq/test/test.js b/graphql/node_modules/fastq/test/test.js deleted file mode 100644 index ceed7a7b..00000000 --- a/graphql/node_modules/fastq/test/test.js +++ /dev/null @@ -1,642 +0,0 @@ -'use strict' - -/* eslint-disable no-var */ - -var test = require('tape') -var buildQueue = require('../') - -test('concurrency', function (t) { - t.plan(6) - t.throws(buildQueue.bind(null, worker, 0)) - t.throws(buildQueue.bind(null, worker, NaN)) - t.doesNotThrow(buildQueue.bind(null, worker, 1)) - - var queue = buildQueue(worker, 1) - t.throws(function () { - queue.concurrency = 0 - }) - t.throws(function () { - queue.concurrency = NaN - }) - t.doesNotThrow(function () { - queue.concurrency = 2 - }) - - function worker (arg, cb) { - cb(null, true) - } -}) - -test('worker execution', function (t) { - t.plan(3) - - var queue = buildQueue(worker, 1) - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - }) - - function worker (arg, cb) { - t.equal(arg, 42) - cb(null, true) - } -}) - -test('limit', function (t) { - t.plan(4) - - var expected = [10, 0] - var queue = buildQueue(worker, 1) - - queue.push(10, result) - queue.push(0, result) - - function result (err, arg) { - t.error(err, 'no error') - t.equal(arg, expected.shift(), 'the result matches') - } - - function worker (arg, cb) { - setTimeout(cb, arg, null, arg) - } -}) - -test('multiple executions', function (t) { - t.plan(15) - - var queue = buildQueue(worker, 1) - var toExec = [1, 2, 3, 4, 5] - var count = 0 - - toExec.forEach(function (task) { - queue.push(task, done) - }) - - function done (err, result) { - t.error(err, 'no error') - t.equal(result, toExec[count - 1], 'the result matches') - } - - function worker (arg, cb) { - t.equal(arg, toExec[count], 'arg matches') - count++ - setImmediate(cb, null, arg) - } -}) - -test('multiple executions, one after another', function (t) { - t.plan(15) - - var queue = buildQueue(worker, 1) - var toExec = [1, 2, 3, 4, 5] - var count = 0 - - queue.push(toExec[0], done) - - function done (err, result) { - t.error(err, 'no error') - t.equal(result, toExec[count - 1], 'the result matches') - if (count < toExec.length) { - queue.push(toExec[count], done) - } - } - - function worker (arg, cb) { - t.equal(arg, toExec[count], 'arg matches') - count++ - setImmediate(cb, null, arg) - } -}) - -test('set this', function (t) { - t.plan(3) - - var that = {} - var queue = buildQueue(that, worker, 1) - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(this, that, 'this matches') - }) - - function worker (arg, cb) { - t.equal(this, that, 'this matches') - cb(null, true) - } -}) - -test('drain', function (t) { - t.plan(4) - - var queue = buildQueue(worker, 1) - var worked = false - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - }) - - queue.drain = function () { - t.equal(true, worked, 'drained') - } - - function worker (arg, cb) { - t.equal(arg, 42) - worked = true - setImmediate(cb, null, true) - } -}) - -test('pause && resume', function (t) { - t.plan(13) - - var queue = buildQueue(worker, 1) - var worked = false - var expected = [42, 24] - - t.notOk(queue.paused, 'it should not be paused') - - queue.pause() - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - }) - - queue.push(24, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - }) - - t.notOk(worked, 'it should be paused') - t.ok(queue.paused, 'it should be paused') - - queue.resume() - queue.pause() - queue.resume() - queue.resume() // second resume is a no-op - - function worker (arg, cb) { - t.notOk(queue.paused, 'it should not be paused') - t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') - t.equal(arg, expected.shift()) - worked = true - process.nextTick(function () { cb(null, true) }) - } -}) - -test('pause in flight && resume', function (t) { - t.plan(16) - - var queue = buildQueue(worker, 1) - var expected = [42, 24, 12] - - t.notOk(queue.paused, 'it should not be paused') - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - t.ok(queue.paused, 'it should be paused') - process.nextTick(function () { - queue.resume() - queue.pause() - queue.resume() - }) - }) - - queue.push(24, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - t.notOk(queue.paused, 'it should not be paused') - }) - - queue.push(12, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - t.notOk(queue.paused, 'it should not be paused') - }) - - queue.pause() - - function worker (arg, cb) { - t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') - t.equal(arg, expected.shift()) - process.nextTick(function () { cb(null, true) }) - } -}) - -test('altering concurrency', function (t) { - t.plan(24) - - var queue = buildQueue(worker, 1) - - queue.push(24, workDone) - queue.push(24, workDone) - queue.push(24, workDone) - - queue.pause() - - queue.concurrency = 3 // concurrency changes are ignored while paused - queue.concurrency = 2 - - queue.resume() - - t.equal(queue.running(), 2, '2 jobs running') - - queue.concurrency = 3 - - t.equal(queue.running(), 3, '3 jobs running') - - queue.concurrency = 1 - - t.equal(queue.running(), 3, '3 jobs running') // running jobs can't be killed - - queue.push(24, workDone) - queue.push(24, workDone) - queue.push(24, workDone) - queue.push(24, workDone) - - function workDone (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - } - - function worker (arg, cb) { - t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency') - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('idle()', function (t) { - t.plan(12) - - var queue = buildQueue(worker, 1) - - t.ok(queue.idle(), 'queue is idle') - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - t.notOk(queue.idle(), 'queue is not idle') - }) - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - // it will go idle after executing this function - setImmediate(function () { - t.ok(queue.idle(), 'queue is now idle') - }) - }) - - t.notOk(queue.idle(), 'queue is not idle') - - function worker (arg, cb) { - t.notOk(queue.idle(), 'queue is not idle') - t.equal(arg, 42) - setImmediate(cb, null, true) - } -}) - -test('saturated', function (t) { - t.plan(9) - - var queue = buildQueue(worker, 1) - var preworked = 0 - var worked = 0 - - queue.saturated = function () { - t.pass('saturated') - t.equal(preworked, 1, 'started 1 task') - t.equal(worked, 0, 'worked zero task') - } - - queue.push(42, done) - queue.push(42, done) - - function done (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - } - - function worker (arg, cb) { - t.equal(arg, 42) - preworked++ - setImmediate(function () { - worked++ - cb(null, true) - }) - } -}) - -test('length', function (t) { - t.plan(7) - - var queue = buildQueue(worker, 1) - - t.equal(queue.length(), 0, 'nothing waiting') - queue.push(42, done) - t.equal(queue.length(), 0, 'nothing waiting') - queue.push(42, done) - t.equal(queue.length(), 1, 'one task waiting') - queue.push(42, done) - t.equal(queue.length(), 2, 'two tasks waiting') - - function done (err, result) { - t.error(err, 'no error') - } - - function worker (arg, cb) { - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('getQueue', function (t) { - t.plan(10) - - var queue = buildQueue(worker, 1) - - t.equal(queue.getQueue().length, 0, 'nothing waiting') - queue.push(42, done) - t.equal(queue.getQueue().length, 0, 'nothing waiting') - queue.push(42, done) - t.equal(queue.getQueue().length, 1, 'one task waiting') - t.equal(queue.getQueue()[0], 42, 'should be equal') - queue.push(43, done) - t.equal(queue.getQueue().length, 2, 'two tasks waiting') - t.equal(queue.getQueue()[0], 42, 'should be equal') - t.equal(queue.getQueue()[1], 43, 'should be equal') - - function done (err, result) { - t.error(err, 'no error') - } - - function worker (arg, cb) { - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('unshift', function (t) { - t.plan(8) - - var queue = buildQueue(worker, 1) - var expected = [1, 2, 3, 4] - - queue.push(1, done) - queue.push(4, done) - queue.unshift(3, done) - queue.unshift(2, done) - - function done (err, result) { - t.error(err, 'no error') - } - - function worker (arg, cb) { - t.equal(expected.shift(), arg, 'tasks come in order') - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('unshift && empty', function (t) { - t.plan(2) - - var queue = buildQueue(worker, 1) - var completed = false - - queue.pause() - - queue.empty = function () { - t.notOk(completed, 'the task has not completed yet') - } - - queue.unshift(1, done) - - queue.resume() - - function done (err, result) { - completed = true - t.error(err, 'no error') - } - - function worker (arg, cb) { - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('push && empty', function (t) { - t.plan(2) - - var queue = buildQueue(worker, 1) - var completed = false - - queue.pause() - - queue.empty = function () { - t.notOk(completed, 'the task has not completed yet') - } - - queue.push(1, done) - - queue.resume() - - function done (err, result) { - completed = true - t.error(err, 'no error') - } - - function worker (arg, cb) { - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('kill', function (t) { - t.plan(5) - - var queue = buildQueue(worker, 1) - var expected = [1] - - var predrain = queue.drain - - queue.drain = function drain () { - t.fail('drain should never be called') - } - - queue.push(1, done) - queue.push(4, done) - queue.unshift(3, done) - queue.unshift(2, done) - queue.kill() - - function done (err, result) { - t.error(err, 'no error') - setImmediate(function () { - t.equal(queue.length(), 0, 'no queued tasks') - t.equal(queue.running(), 0, 'no running tasks') - t.equal(queue.drain, predrain, 'drain is back to default') - }) - } - - function worker (arg, cb) { - t.equal(expected.shift(), arg, 'tasks come in order') - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('killAndDrain', function (t) { - t.plan(6) - - var queue = buildQueue(worker, 1) - var expected = [1] - - var predrain = queue.drain - - queue.drain = function drain () { - t.pass('drain has been called') - } - - queue.push(1, done) - queue.push(4, done) - queue.unshift(3, done) - queue.unshift(2, done) - queue.killAndDrain() - - function done (err, result) { - t.error(err, 'no error') - setImmediate(function () { - t.equal(queue.length(), 0, 'no queued tasks') - t.equal(queue.running(), 0, 'no running tasks') - t.equal(queue.drain, predrain, 'drain is back to default') - }) - } - - function worker (arg, cb) { - t.equal(expected.shift(), arg, 'tasks come in order') - setImmediate(function () { - cb(null, true) - }) - } -}) - -test('pause && idle', function (t) { - t.plan(11) - - var queue = buildQueue(worker, 1) - var worked = false - - t.notOk(queue.paused, 'it should not be paused') - t.ok(queue.idle(), 'should be idle') - - queue.pause() - - queue.push(42, function (err, result) { - t.error(err, 'no error') - t.equal(result, true, 'result matches') - }) - - t.notOk(worked, 'it should be paused') - t.ok(queue.paused, 'it should be paused') - t.notOk(queue.idle(), 'should not be idle') - - queue.resume() - - t.notOk(queue.paused, 'it should not be paused') - t.notOk(queue.idle(), 'it should not be idle') - - function worker (arg, cb) { - t.equal(arg, 42) - worked = true - process.nextTick(cb.bind(null, null, true)) - process.nextTick(function () { - t.ok(queue.idle(), 'is should be idle') - }) - } -}) - -test('push without cb', function (t) { - t.plan(1) - - var queue = buildQueue(worker, 1) - - queue.push(42) - - function worker (arg, cb) { - t.equal(arg, 42) - cb() - } -}) - -test('unshift without cb', function (t) { - t.plan(1) - - var queue = buildQueue(worker, 1) - - queue.unshift(42) - - function worker (arg, cb) { - t.equal(arg, 42) - cb() - } -}) - -test('push with worker throwing error', function (t) { - t.plan(5) - var q = buildQueue(function (task, cb) { - cb(new Error('test error'), null) - }, 1) - q.error(function (err, task) { - t.ok(err instanceof Error, 'global error handler should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - t.equal(task, 42, 'The task executed should be passed') - }) - q.push(42, function (err) { - t.ok(err instanceof Error, 'push callback should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - }) -}) - -test('unshift with worker throwing error', function (t) { - t.plan(5) - var q = buildQueue(function (task, cb) { - cb(new Error('test error'), null) - }, 1) - q.error(function (err, task) { - t.ok(err instanceof Error, 'global error handler should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - t.equal(task, 42, 'The task executed should be passed') - }) - q.unshift(42, function (err) { - t.ok(err instanceof Error, 'unshift callback should catch the error') - t.match(err.message, /test error/, 'error message should be "test error"') - }) -}) - -test('pause/resume should trigger drain event', function (t) { - t.plan(1) - - var queue = buildQueue(worker, 1) - queue.pause() - queue.drain = function () { - t.pass('drain should be called') - } - - function worker (arg, cb) { - cb(null, true) - } - - queue.resume() -}) diff --git a/graphql/node_modules/fastq/test/tsconfig.json b/graphql/node_modules/fastq/test/tsconfig.json deleted file mode 100644 index 66e16e93..00000000 --- a/graphql/node_modules/fastq/test/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "target": "es6", - "module": "commonjs", - "noEmit": true, - "strict": true - }, - "files": [ - "./example.ts" - ] -} diff --git a/graphql/node_modules/file-entry-cache/LICENSE b/graphql/node_modules/file-entry-cache/LICENSE deleted file mode 100644 index 39a8bc45..00000000 --- a/graphql/node_modules/file-entry-cache/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Roy Riojas & Jared Wray - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/graphql/node_modules/file-entry-cache/README.md b/graphql/node_modules/file-entry-cache/README.md deleted file mode 100644 index 4f068fe4..00000000 --- a/graphql/node_modules/file-entry-cache/README.md +++ /dev/null @@ -1,115 +0,0 @@ -# file-entry-cache -> Super simple cache for file metadata, useful for process that work on a given series of files -> and that only need to repeat the job on the changed ones since the previous run of the process — Edit - -[![NPM Version](https://img.shields.io/npm/v/file-entry-cache.svg?style=flat)](https://npmjs.org/package/file-entry-cache) -[![tests](https://github.com/jaredwray/file-entry-cache/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/jaredwray/file-entry-cache/actions/workflows/tests.yaml) -[![codecov](https://codecov.io/github/jaredwray/file-entry-cache/graph/badge.svg?token=37tZMQE0Sy)](https://codecov.io/github/jaredwray/file-entry-cache) -[![npm](https://img.shields.io/npm/dm/file-entry-cache)](https://npmjs.com/package/file-entry-cache) - - -## install - -```bash -npm i --save file-entry-cache -``` - -## Usage - -The module exposes two functions `create` and `createFromFile`. - -## `create(cacheName, [directory, useCheckSum])` -- **cacheName**: the name of the cache to be created -- **directory**: Optional the directory to load the cache from -- **usecheckSum**: Whether to use md5 checksum to verify if file changed. If false the default will be to use the mtime and size of the file. - -## `createFromFile(pathToCache, [useCheckSum])` -- **pathToCache**: the path to the cache file (this combines the cache name and directory) -- **useCheckSum**: Whether to use md5 checksum to verify if file changed. If false the default will be to use the mtime and size of the file. - -```js -// loads the cache, if one does not exists for the given -// Id a new one will be prepared to be created -var fileEntryCache = require('file-entry-cache'); - -var cache = fileEntryCache.create('testCache'); - -var files = expand('../fixtures/*.txt'); - -// the first time this method is called, will return all the files -var oFiles = cache.getUpdatedFiles(files); - -// this will persist this to disk checking each file stats and -// updating the meta attributes `size` and `mtime`. -// custom fields could also be added to the meta object and will be persisted -// in order to retrieve them later -cache.reconcile(); - -// use this if you want the non visited file entries to be kept in the cache -// for more than one execution -// -// cache.reconcile( true /* noPrune */) - -// on a second run -var cache2 = fileEntryCache.create('testCache'); - -// will return now only the files that were modified or none -// if no files were modified previous to the execution of this function -var oFiles = cache.getUpdatedFiles(files); - -// if you want to prevent a file from being considered non modified -// something useful if a file failed some sort of validation -// you can then remove the entry from the cache doing -cache.removeEntry('path/to/file'); // path to file should be the same path of the file received on `getUpdatedFiles` -// that will effectively make the file to appear again as modified until the validation is passed. In that -// case you should not remove it from the cache - -// if you need all the files, so you can determine what to do with the changed ones -// you can call -var oFiles = cache.normalizeEntries(files); - -// oFiles will be an array of objects like the following -entry = { - key: 'some/name/file', the path to the file - changed: true, // if the file was changed since previous run - meta: { - size: 3242, // the size of the file - mtime: 231231231, // the modification time of the file - data: {} // some extra field stored for this file (useful to save the result of a transformation on the file - } -} - -``` - -## Motivation for this module - -I needed a super simple and dumb **in-memory cache** with optional disk persistence (write-back cache) in order to make -a script that will beautify files with `esformatter` to execute only on the files that were changed since the last run. - -In doing so the process of beautifying files was reduced from several seconds to a small fraction of a second. - -This module uses [flat-cache](https://www.npmjs.com/package/flat-cache) a super simple `key/value` cache storage with -optional file persistance. - -The main idea is to read the files when the task begins, apply the transforms required, and if the process succeed, -then store the new state of the files. The next time this module request for `getChangedFiles` will return only -the files that were modified. Making the process to end faster. - -This module could also be used by processes that modify the files applying a transform, in that case the result of the -transform could be stored in the `meta` field, of the entries. Anything added to the meta field will be persisted. -Those processes won't need to call `getChangedFiles` they will instead call `normalizeEntries` that will return the -entries with a `changed` field that can be used to determine if the file was changed or not. If it was not changed -the transformed stored data could be used instead of actually applying the transformation, saving time in case of only -a few files changed. - -In the worst case scenario all the files will be processed. In the best case scenario only a few of them will be processed. - -## Important notes -- The values set on the meta attribute of the entries should be `stringify-able` ones if possible, flat-cache uses `circular-json` to try to persist circular structures, but this should be considered experimental. The best results are always obtained with non circular values -- All the changes to the cache state are done to memory first and only persisted after reconcile. - -## License - -MIT - - diff --git a/graphql/node_modules/file-entry-cache/cache.js b/graphql/node_modules/file-entry-cache/cache.js deleted file mode 100644 index 6b15767e..00000000 --- a/graphql/node_modules/file-entry-cache/cache.js +++ /dev/null @@ -1,291 +0,0 @@ -var path = require('path'); -var crypto = require('crypto'); - -module.exports = { - createFromFile: function (filePath, useChecksum) { - var fname = path.basename(filePath); - var dir = path.dirname(filePath); - return this.create(fname, dir, useChecksum); - }, - - create: function (cacheId, _path, useChecksum) { - var fs = require('fs'); - var flatCache = require('flat-cache'); - var cache = flatCache.load(cacheId, _path); - var normalizedEntries = {}; - - var removeNotFoundFiles = function removeNotFoundFiles() { - const cachedEntries = cache.keys(); - // remove not found entries - cachedEntries.forEach(function remover(fPath) { - try { - fs.statSync(fPath); - } catch (err) { - if (err.code === 'ENOENT') { - cache.removeKey(fPath); - } - } - }); - }; - - removeNotFoundFiles(); - - return { - /** - * the flat cache storage used to persist the metadata of the `files - * @type {Object} - */ - cache: cache, - - /** - * Given a buffer, calculate md5 hash of its content. - * @method getHash - * @param {Buffer} buffer buffer to calculate hash on - * @return {String} content hash digest - */ - getHash: function (buffer) { - return crypto.createHash('md5').update(buffer).digest('hex'); - }, - - /** - * Return whether or not a file has changed since last time reconcile was called. - * @method hasFileChanged - * @param {String} file the filepath to check - * @return {Boolean} wheter or not the file has changed - */ - hasFileChanged: function (file) { - return this.getFileDescriptor(file).changed; - }, - - /** - * given an array of file paths it return and object with three arrays: - * - changedFiles: Files that changed since previous run - * - notChangedFiles: Files that haven't change - * - notFoundFiles: Files that were not found, probably deleted - * - * @param {Array} files the files to analyze and compare to the previous seen files - * @return {[type]} [description] - */ - analyzeFiles: function (files) { - var me = this; - files = files || []; - - var res = { - changedFiles: [], - notFoundFiles: [], - notChangedFiles: [], - }; - - me.normalizeEntries(files).forEach(function (entry) { - if (entry.changed) { - res.changedFiles.push(entry.key); - return; - } - if (entry.notFound) { - res.notFoundFiles.push(entry.key); - return; - } - res.notChangedFiles.push(entry.key); - }); - return res; - }, - - getFileDescriptor: function (file) { - var fstat; - - try { - fstat = fs.statSync(file); - } catch (ex) { - this.removeEntry(file); - return { key: file, notFound: true, err: ex }; - } - - if (useChecksum) { - return this._getFileDescriptorUsingChecksum(file); - } - - return this._getFileDescriptorUsingMtimeAndSize(file, fstat); - }, - - _getFileDescriptorUsingMtimeAndSize: function (file, fstat) { - var meta = cache.getKey(file); - var cacheExists = !!meta; - - var cSize = fstat.size; - var cTime = fstat.mtime.getTime(); - - var isDifferentDate; - var isDifferentSize; - - if (!meta) { - meta = { size: cSize, mtime: cTime }; - } else { - isDifferentDate = cTime !== meta.mtime; - isDifferentSize = cSize !== meta.size; - } - - var nEntry = (normalizedEntries[file] = { - key: file, - changed: !cacheExists || isDifferentDate || isDifferentSize, - meta: meta, - }); - - return nEntry; - }, - - _getFileDescriptorUsingChecksum: function (file) { - var meta = cache.getKey(file); - var cacheExists = !!meta; - - var contentBuffer; - try { - contentBuffer = fs.readFileSync(file); - } catch (ex) { - contentBuffer = ''; - } - - var isDifferent = true; - var hash = this.getHash(contentBuffer); - - if (!meta) { - meta = { hash: hash }; - } else { - isDifferent = hash !== meta.hash; - } - - var nEntry = (normalizedEntries[file] = { - key: file, - changed: !cacheExists || isDifferent, - meta: meta, - }); - - return nEntry; - }, - - /** - * Return the list o the files that changed compared - * against the ones stored in the cache - * - * @method getUpdated - * @param files {Array} the array of files to compare against the ones in the cache - * @returns {Array} - */ - getUpdatedFiles: function (files) { - var me = this; - files = files || []; - - return me - .normalizeEntries(files) - .filter(function (entry) { - return entry.changed; - }) - .map(function (entry) { - return entry.key; - }); - }, - - /** - * return the list of files - * @method normalizeEntries - * @param files - * @returns {*} - */ - normalizeEntries: function (files) { - files = files || []; - - var me = this; - var nEntries = files.map(function (file) { - return me.getFileDescriptor(file); - }); - - //normalizeEntries = nEntries; - return nEntries; - }, - - /** - * Remove an entry from the file-entry-cache. Useful to force the file to still be considered - * modified the next time the process is run - * - * @method removeEntry - * @param entryName - */ - removeEntry: function (entryName) { - delete normalizedEntries[entryName]; - cache.removeKey(entryName); - }, - - /** - * Delete the cache file from the disk - * @method deleteCacheFile - */ - deleteCacheFile: function () { - cache.removeCacheFile(); - }, - - /** - * remove the cache from the file and clear the memory cache - */ - destroy: function () { - normalizedEntries = {}; - cache.destroy(); - }, - - _getMetaForFileUsingCheckSum: function (cacheEntry) { - var contentBuffer = fs.readFileSync(cacheEntry.key); - var hash = this.getHash(contentBuffer); - var meta = Object.assign(cacheEntry.meta, { hash: hash }); - delete meta.size; - delete meta.mtime; - return meta; - }, - - _getMetaForFileUsingMtimeAndSize: function (cacheEntry) { - var stat = fs.statSync(cacheEntry.key); - var meta = Object.assign(cacheEntry.meta, { - size: stat.size, - mtime: stat.mtime.getTime(), - }); - delete meta.hash; - return meta; - }, - - /** - * Sync the files and persist them to the cache - * @method reconcile - */ - reconcile: function (noPrune) { - removeNotFoundFiles(); - - noPrune = typeof noPrune === 'undefined' ? true : noPrune; - - var entries = normalizedEntries; - var keys = Object.keys(entries); - - if (keys.length === 0) { - return; - } - - var me = this; - - keys.forEach(function (entryName) { - var cacheEntry = entries[entryName]; - - try { - var meta = useChecksum - ? me._getMetaForFileUsingCheckSum(cacheEntry) - : me._getMetaForFileUsingMtimeAndSize(cacheEntry); - cache.setKey(entryName, meta); - } catch (err) { - // if the file does not exists we don't save it - // other errors are just thrown - if (err.code !== 'ENOENT') { - throw err; - } - } - }); - - cache.save(noPrune); - }, - }; - }, -}; diff --git a/graphql/node_modules/file-entry-cache/package.json b/graphql/node_modules/file-entry-cache/package.json deleted file mode 100644 index ef63b6ff..00000000 --- a/graphql/node_modules/file-entry-cache/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "file-entry-cache", - "version": "8.0.0", - "description": "Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process", - "repository": "jaredwray/file-entry-cache", - "license": "MIT", - "author": { - "name": "Jared Wray", - "url": "https://jaredwray.com" - }, - "main": "cache.js", - "files": [ - "cache.js" - ], - "engines": { - "node": ">=16.0.0" - }, - "scripts": { - "eslint": "eslint --cache --cache-location=node_modules/.cache/ 'cache.js' 'test/**/*.js' 'perf.js'", - "autofix": "npm run eslint -- --fix", - "clean": "rimraf ./node_modules ./package-lock.json ./yarn.lock", - "test": "npm run eslint --silent && c8 mocha -R spec test/specs", - "test:ci": "npm run eslint --silent && c8 --reporter=lcov mocha -R spec test/specs", - "perf": "node perf.js" - }, - "prepush": [ - "npm run eslint --silent" - ], - "precommit": [ - "npm run eslint --silent" - ], - "keywords": [ - "file cache", - "task cache files", - "file cache", - "key par", - "key value", - "cache" - ], - "devDependencies": { - "c8": "^8.0.1", - "chai": "^4.3.10", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-mocha": "^10.2.0", - "eslint-plugin-prettier": "^5.0.1", - "glob-expand": "^0.2.1", - "mocha": "^10.2.0", - "prettier": "^3.1.1", - "rimraf": "^5.0.5", - "write": "^2.0.0" - }, - "dependencies": { - "flat-cache": "^4.0.0" - } -} diff --git a/graphql/node_modules/fill-range/LICENSE b/graphql/node_modules/fill-range/LICENSE deleted file mode 100644 index 9af4a67d..00000000 --- a/graphql/node_modules/fill-range/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/fill-range/README.md b/graphql/node_modules/fill-range/README.md deleted file mode 100644 index 8d756fe9..00000000 --- a/graphql/node_modules/fill-range/README.md +++ /dev/null @@ -1,237 +0,0 @@ -# fill-range [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/fill-range.svg?style=flat)](https://www.npmjs.com/package/fill-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![NPM total downloads](https://img.shields.io/npm/dt/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fill-range.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fill-range) - -> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex` - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save fill-range -``` - -## Usage - -Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_. - -```js -const fill = require('fill-range'); -// fill(from, to[, step, options]); - -console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] -console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10 -``` - -**Params** - -* `from`: **{String|Number}** the number or letter to start with -* `to`: **{String|Number}** the number or letter to end with -* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use. -* `options`: **{Object|Function}**: See all available [options](#options) - -## Examples - -By default, an array of values is returned. - -**Alphabetical ranges** - -```js -console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e'] -console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ] -``` - -**Numerical ranges** - -Numbers can be defined as actual numbers or strings. - -```js -console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] -console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ] -``` - -**Negative ranges** - -Numbers can be defined as actual numbers or strings. - -```js -console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ] -console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ] -``` - -**Steps (increments)** - -```js -// numerical ranges with increments -console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ] -console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ] -console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ] - -// alphabetical ranges with increments -console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ] -console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] -console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ] -``` - -## Options - -### options.step - -**Type**: `number` (formatted as a string or number) - -**Default**: `undefined` - -**Description**: The increment to use for the range. Can be used with letters or numbers. - -**Example(s)** - -```js -// numbers -console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ] -console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ] -console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ] - -// letters -console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ] -console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ] -console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ] -``` - -### options.strictRanges - -**Type**: `boolean` - -**Default**: `false` - -**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges. - -**Example(s)** - -The following are all invalid: - -```js -fill('1.1', '2'); // decimals not supported in ranges -fill('a', '2'); // incompatible range values -fill(1, 10, 'foo'); // invalid "step" argument -``` - -### options.stringify - -**Type**: `boolean` - -**Default**: `undefined` - -**Description**: Cast all returned values to strings. By default, integers are returned as numbers. - -**Example(s)** - -```js -console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ] -console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ] -``` - -### options.toRegex - -**Type**: `boolean` - -**Default**: `undefined` - -**Description**: Create a regex-compatible source string, instead of expanding values to an array. - -**Example(s)** - -```js -// alphabetical range -console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]' -// alphabetical with step -console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y' -// numerical range -console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100' -// numerical range with zero padding -console.log(fill('000001', '100000', { toRegex: true })); -//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000' -``` - -### options.transform - -**Type**: `function` - -**Default**: `undefined` - -**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_. - -**Example(s)** - -```js -// add zero padding -console.log(fill(1, 5, value => String(value).padStart(4, '0'))); -//=> ['0001', '0002', '0003', '0004', '0005'] -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 116 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [paulmillr](https://github.com/paulmillr) | -| 2 | [realityking](https://github.com/realityking) | -| 2 | [bluelovers](https://github.com/bluelovers) | -| 1 | [edorivai](https://github.com/edorivai) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! - - - - - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ \ No newline at end of file diff --git a/graphql/node_modules/fill-range/index.js b/graphql/node_modules/fill-range/index.js deleted file mode 100644 index ddb212ee..00000000 --- a/graphql/node_modules/fill-range/index.js +++ /dev/null @@ -1,248 +0,0 @@ -/*! - * fill-range - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -const util = require('util'); -const toRegexRange = require('to-regex-range'); - -const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); - -const transform = toNumber => { - return value => toNumber === true ? Number(value) : String(value); -}; - -const isValidValue = value => { - return typeof value === 'number' || (typeof value === 'string' && value !== ''); -}; - -const isNumber = num => Number.isInteger(+num); - -const zeros = input => { - let value = `${input}`; - let index = -1; - if (value[0] === '-') value = value.slice(1); - if (value === '0') return false; - while (value[++index] === '0'); - return index > 0; -}; - -const stringify = (start, end, options) => { - if (typeof start === 'string' || typeof end === 'string') { - return true; - } - return options.stringify === true; -}; - -const pad = (input, maxLength, toNumber) => { - if (maxLength > 0) { - let dash = input[0] === '-' ? '-' : ''; - if (dash) input = input.slice(1); - input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0')); - } - if (toNumber === false) { - return String(input); - } - return input; -}; - -const toMaxLen = (input, maxLength) => { - let negative = input[0] === '-' ? '-' : ''; - if (negative) { - input = input.slice(1); - maxLength--; - } - while (input.length < maxLength) input = '0' + input; - return negative ? ('-' + input) : input; -}; - -const toSequence = (parts, options, maxLen) => { - parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - - let prefix = options.capture ? '' : '?:'; - let positives = ''; - let negatives = ''; - let result; - - if (parts.positives.length) { - positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|'); - } - - if (parts.negatives.length) { - negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`; - } - - if (positives && negatives) { - result = `${positives}|${negatives}`; - } else { - result = positives || negatives; - } - - if (options.wrap) { - return `(${prefix}${result})`; - } - - return result; -}; - -const toRange = (a, b, isNumbers, options) => { - if (isNumbers) { - return toRegexRange(a, b, { wrap: false, ...options }); - } - - let start = String.fromCharCode(a); - if (a === b) return start; - - let stop = String.fromCharCode(b); - return `[${start}-${stop}]`; -}; - -const toRegex = (start, end, options) => { - if (Array.isArray(start)) { - let wrap = options.wrap === true; - let prefix = options.capture ? '' : '?:'; - return wrap ? `(${prefix}${start.join('|')})` : start.join('|'); - } - return toRegexRange(start, end, options); -}; - -const rangeError = (...args) => { - return new RangeError('Invalid range arguments: ' + util.inspect(...args)); -}; - -const invalidRange = (start, end, options) => { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; -}; - -const invalidStep = (step, options) => { - if (options.strictRanges === true) { - throw new TypeError(`Expected step "${step}" to be a number`); - } - return []; -}; - -const fillNumbers = (start, end, step = 1, options = {}) => { - let a = Number(start); - let b = Number(end); - - if (!Number.isInteger(a) || !Number.isInteger(b)) { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - } - - // fix negative zero - if (a === 0) a = 0; - if (b === 0) b = 0; - - let descending = a > b; - let startString = String(start); - let endString = String(end); - let stepString = String(step); - step = Math.max(Math.abs(step), 1); - - let padded = zeros(startString) || zeros(endString) || zeros(stepString); - let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options) === false; - let format = options.transform || transform(toNumber); - - if (options.toRegex && step === 1) { - return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); - } - - let parts = { negatives: [], positives: [] }; - let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num)); - let range = []; - let index = 0; - - while (descending ? a >= b : a <= b) { - if (options.toRegex === true && step > 1) { - push(a); - } else { - range.push(pad(format(a, index), maxLen, toNumber)); - } - a = descending ? a - step : a + step; - index++; - } - - if (options.toRegex === true) { - return step > 1 - ? toSequence(parts, options, maxLen) - : toRegex(range, null, { wrap: false, ...options }); - } - - return range; -}; - -const fillLetters = (start, end, step = 1, options = {}) => { - if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) { - return invalidRange(start, end, options); - } - - let format = options.transform || (val => String.fromCharCode(val)); - let a = `${start}`.charCodeAt(0); - let b = `${end}`.charCodeAt(0); - - let descending = a > b; - let min = Math.min(a, b); - let max = Math.max(a, b); - - if (options.toRegex && step === 1) { - return toRange(min, max, false, options); - } - - let range = []; - let index = 0; - - while (descending ? a >= b : a <= b) { - range.push(format(a, index)); - a = descending ? a - step : a + step; - index++; - } - - if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); - } - - return range; -}; - -const fill = (start, end, step, options = {}) => { - if (end == null && isValidValue(start)) { - return [start]; - } - - if (!isValidValue(start) || !isValidValue(end)) { - return invalidRange(start, end, options); - } - - if (typeof step === 'function') { - return fill(start, end, 1, { transform: step }); - } - - if (isObject(step)) { - return fill(start, end, 0, step); - } - - let opts = { ...options }; - if (opts.capture === true) opts.wrap = true; - step = step || opts.step || 1; - - if (!isNumber(step)) { - if (step != null && !isObject(step)) return invalidStep(step, opts); - return fill(start, end, 1, step); - } - - if (isNumber(start) && isNumber(end)) { - return fillNumbers(start, end, step, opts); - } - - return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); -}; - -module.exports = fill; diff --git a/graphql/node_modules/fill-range/package.json b/graphql/node_modules/fill-range/package.json deleted file mode 100644 index 582357fb..00000000 --- a/graphql/node_modules/fill-range/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "fill-range", - "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`", - "version": "7.1.1", - "homepage": "https://github.com/jonschlinkert/fill-range", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Edo Rivai (edo.rivai.nl)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Paul Miller (paulmillr.com)", - "Rouven Weßling (www.rouvenwessling.de)", - "(https://github.com/wtgtybhertgeghgtwtg)" - ], - "repository": "jonschlinkert/fill-range", - "bugs": { - "url": "https://github.com/jonschlinkert/fill-range/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .", - "mocha": "mocha --reporter dot", - "test": "npm run lint && npm run mocha", - "test:ci": "npm run test:cover", - "test:cover": "nyc npm run mocha" - }, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "devDependencies": { - "gulp-format-md": "^2.0.0", - "mocha": "^6.1.1", - "nyc": "^15.1.0" - }, - "keywords": [ - "alpha", - "alphabetical", - "array", - "bash", - "brace", - "expand", - "expansion", - "fill", - "glob", - "match", - "matches", - "matching", - "number", - "numerical", - "range", - "ranges", - "regex", - "sh" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - } - } -} diff --git a/graphql/node_modules/find-up/index.d.ts b/graphql/node_modules/find-up/index.d.ts deleted file mode 100644 index 6746bb72..00000000 --- a/graphql/node_modules/find-up/index.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* eslint-disable @typescript-eslint/unified-signatures */ -import {Options as LocatePathOptions} from 'locate-path'; - -declare const stop: unique symbol; - -declare namespace findUp { - interface Options extends LocatePathOptions {} - - type StopSymbol = typeof stop; - - type Match = string | StopSymbol | undefined; -} - -declare const findUp: { - sync: { - /** - Synchronously check if a path exists. - - @param path - Path to the file or directory. - @returns Whether the path exists. - - @example - ``` - import findUp = require('find-up'); - - console.log(findUp.sync.exists('/Users/sindresorhus/unicorn.png')); - //=> true - ``` - */ - exists: (path: string) => boolean; - - /** - Synchronously find a file or directory by walking up parent directories. - - @param name - Name of the file or directory to find. Can be multiple. - @returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found. - */ - (name: string | readonly string[], options?: findUp.Options): string | undefined; - - /** - Synchronously find a file or directory by walking up parent directories. - - @param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search. - @returns The first path found or `undefined` if none could be found. - - @example - ``` - import path = require('path'); - import findUp = require('find-up'); - - console.log(findUp.sync(directory => { - const hasUnicorns = findUp.sync.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' - ``` - */ - (matcher: (directory: string) => findUp.Match, options?: findUp.Options): string | undefined; - }; - - /** - Check if a path exists. - - @param path - Path to a file or directory. - @returns Whether the path exists. - - @example - ``` - import findUp = require('find-up'); - - (async () => { - console.log(await findUp.exists('/Users/sindresorhus/unicorn.png')); - //=> true - })(); - ``` - */ - exists: (path: string) => Promise; - - /** - Return this in a `matcher` function to stop the search and force `findUp` to immediately return `undefined`. - */ - readonly stop: findUp.StopSymbol; - - /** - Find a file or directory by walking up parent directories. - - @param name - Name of the file or directory to find. Can be multiple. - @returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found. - - @example - ``` - // / - // └── Users - // └── sindresorhus - // ├── unicorn.png - // └── foo - // └── bar - // ├── baz - // └── example.js - - // example.js - import findUp = require('find-up'); - - (async () => { - console.log(await findUp('unicorn.png')); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(['rainbow.png', 'unicorn.png'])); - //=> '/Users/sindresorhus/unicorn.png' - })(); - ``` - */ - (name: string | readonly string[], options?: findUp.Options): Promise; - - /** - Find a file or directory by walking up parent directories. - - @param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search. - @returns The first path found or `undefined` if none could be found. - - @example - ``` - import path = require('path'); - import findUp = require('find-up'); - - (async () => { - console.log(await findUp(async directory => { - const hasUnicorns = await findUp.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' - })(); - ``` - */ - (matcher: (directory: string) => (findUp.Match | Promise), options?: findUp.Options): Promise; -}; - -export = findUp; diff --git a/graphql/node_modules/find-up/index.js b/graphql/node_modules/find-up/index.js deleted file mode 100644 index ce564e5d..00000000 --- a/graphql/node_modules/find-up/index.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; -const path = require('path'); -const locatePath = require('locate-path'); -const pathExists = require('path-exists'); - -const stop = Symbol('findUp.stop'); - -module.exports = async (name, options = {}) => { - let directory = path.resolve(options.cwd || ''); - const {root} = path.parse(directory); - const paths = [].concat(name); - - const runMatcher = async locateOptions => { - if (typeof name !== 'function') { - return locatePath(paths, locateOptions); - } - - const foundPath = await name(locateOptions.cwd); - if (typeof foundPath === 'string') { - return locatePath([foundPath], locateOptions); - } - - return foundPath; - }; - - // eslint-disable-next-line no-constant-condition - while (true) { - // eslint-disable-next-line no-await-in-loop - const foundPath = await runMatcher({...options, cwd: directory}); - - if (foundPath === stop) { - return; - } - - if (foundPath) { - return path.resolve(directory, foundPath); - } - - if (directory === root) { - return; - } - - directory = path.dirname(directory); - } -}; - -module.exports.sync = (name, options = {}) => { - let directory = path.resolve(options.cwd || ''); - const {root} = path.parse(directory); - const paths = [].concat(name); - - const runMatcher = locateOptions => { - if (typeof name !== 'function') { - return locatePath.sync(paths, locateOptions); - } - - const foundPath = name(locateOptions.cwd); - if (typeof foundPath === 'string') { - return locatePath.sync([foundPath], locateOptions); - } - - return foundPath; - }; - - // eslint-disable-next-line no-constant-condition - while (true) { - const foundPath = runMatcher({...options, cwd: directory}); - - if (foundPath === stop) { - return; - } - - if (foundPath) { - return path.resolve(directory, foundPath); - } - - if (directory === root) { - return; - } - - directory = path.dirname(directory); - } -}; - -module.exports.exists = pathExists; - -module.exports.sync.exists = pathExists.sync; - -module.exports.stop = stop; diff --git a/graphql/node_modules/find-up/license b/graphql/node_modules/find-up/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/find-up/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/find-up/package.json b/graphql/node_modules/find-up/package.json deleted file mode 100644 index 56db6dd8..00000000 --- a/graphql/node_modules/find-up/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "find-up", - "version": "5.0.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "is-path-inside": "^2.1.0", - "tempy": "^0.6.0", - "tsd": "^0.13.1", - "xo": "^0.33.0" - } -} diff --git a/graphql/node_modules/find-up/readme.md b/graphql/node_modules/find-up/readme.md deleted file mode 100644 index 7ad908a7..00000000 --- a/graphql/node_modules/find-up/readme.md +++ /dev/null @@ -1,151 +0,0 @@ -# find-up [![Build Status](https://travis-ci.com/sindresorhus/find-up.svg?branch=master)](https://travis-ci.com/github/sindresorhus/find-up) - -> Find a file or directory by walking up parent directories - -## Install - -``` -$ npm install find-up -``` - -## Usage - -``` -/ -└── Users - └── sindresorhus - ├── unicorn.png - └── foo - └── bar - ├── baz - └── example.js -``` - -`example.js` - -```js -const path = require('path'); -const findUp = require('find-up'); - -(async () => { - console.log(await findUp('unicorn.png')); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(['rainbow.png', 'unicorn.png'])); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(async directory => { - const hasUnicorns = await findUp.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' -})(); -``` - -## API - -### findUp(name, options?) -### findUp(matcher, options?) - -Returns a `Promise` for either the path or `undefined` if it couldn't be found. - -### findUp([...name], options?) - -Returns a `Promise` for either the first path found (by respecting the order of the array) or `undefined` if none could be found. - -### findUp.sync(name, options?) -### findUp.sync(matcher, options?) - -Returns a path or `undefined` if it couldn't be found. - -### findUp.sync([...name], options?) - -Returns the first path found (by respecting the order of the array) or `undefined` if none could be found. - -#### name - -Type: `string` - -Name of the file or directory to find. - -#### matcher - -Type: `Function` - -A function that will be called with each directory until it returns a `string` with the path, which stops the search, or the root directory has been reached and nothing was found. Useful if you want to match files with certain patterns, set of permissions, or other advanced use-cases. - -When using async mode, the `matcher` may optionally be an async or promise-returning function that returns the path. - -#### options - -Type: `object` - -##### cwd - -Type: `string`\ -Default: `process.cwd()` - -Directory to start from. - -##### type - -Type: `string`\ -Default: `'file'`\ -Values: `'file'` `'directory'` - -The type of paths that can match. - -##### allowSymlinks - -Type: `boolean`\ -Default: `true` - -Allow symbolic links to match if they point to the chosen path type. - -### findUp.exists(path) - -Returns a `Promise` of whether the path exists. - -### findUp.sync.exists(path) - -Returns a `boolean` of whether the path exists. - -#### path - -Type: `string` - -Path to a file or directory. - -### findUp.stop - -A [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) that can be returned by a `matcher` function to stop the search and cause `findUp` to immediately return `undefined`. Useful as a performance optimization in case the current working directory is deeply nested in the filesystem. - -```js -const path = require('path'); -const findUp = require('find-up'); - -(async () => { - await findUp(directory => { - return path.basename(directory) === 'work' ? findUp.stop : 'logo.png'; - }); -})(); -``` - -## Related - -- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module -- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file -- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package -- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path - ---- - -
- - Get professional support for 'find-up' with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/flat-cache/LICENSE b/graphql/node_modules/flat-cache/LICENSE deleted file mode 100644 index 7383a47e..00000000 --- a/graphql/node_modules/flat-cache/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Roy Riojas and Jared Wray - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/graphql/node_modules/flat-cache/README.md b/graphql/node_modules/flat-cache/README.md deleted file mode 100644 index 3d7793aa..00000000 --- a/graphql/node_modules/flat-cache/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# flat-cache - -> A stupidly simple key/value storage using files to persist the data - -[![NPM Version](https://img.shields.io/npm/v/flat-cache.svg?style=flat)](https://npmjs.org/package/flat-cache) -[![tests](https://github.com/jaredwray/flat-cache/actions/workflows/tests.yaml/badge.svg?branch=master)](https://github.com/jaredwray/flat-cache/actions/workflows/tests.yaml) -[![codecov](https://codecov.io/github/jaredwray/flat-cache/branch/master/graph/badge.svg?token=KxR95XT3NF)](https://codecov.io/github/jaredwray/flat-cache) -[![npm](https://img.shields.io/npm/dm/flat-cache)](https://npmjs.com/package/flat-cache) - -## install - -```bash -npm i --save flat-cache -``` - -## Usage - -```js -const flatCache = require('flat-cache'); -// loads the cache, if one does not exists for the given -// Id a new one will be prepared to be created -const cache = flatCache.load('cacheId'); - -// sets a key on the cache -cache.setKey('key', { foo: 'var' }); - -// get a key from the cache -cache.getKey('key'); // { foo: 'var' } - -// fetch the entire persisted object -cache.all(); // { 'key': { foo: 'var' } } - -// remove a key -cache.removeKey('key'); // removes a key from the cache - -// save it to disk -cache.save(); // very important, if you don't save no changes will be persisted. -// cache.save( true /* noPrune */) // can be used to prevent the removal of non visited keys - -// loads the cache from a given directory, if one does -// not exists for the given Id a new one will be prepared to be created -const cache = flatCache.load('cacheId', path.resolve('./path/to/folder')); - -// The following methods are useful to clear the cache -// delete a given cache -flatCache.clearCacheById('cacheId'); // removes the cacheId document if one exists. - -// delete all cache -flatCache.clearAll(); // remove the cache directory -``` - -## Motivation for this module - -I needed a super simple and dumb **in-memory cache** with optional disk persistance in order to make -a script that will beutify files with `esformatter` only execute on the files that were changed since the last run. -To make that possible we need to store the `fileSize` and `modificationTime` of the files. So a simple `key/value` -storage was needed and Bam! this module was born. - -## Important notes - -- If no directory is especified when the `load` method is called, a folder named `.cache` will be created - inside the module directory when `cache.save` is called. If you're committing your `node_modules` to any vcs, you - might want to ignore the default `.cache` folder, or specify a custom directory. -- The values set on the keys of the cache should be `stringify-able` ones, meaning no circular references -- All the changes to the cache state are done to memory -- I could have used a timer or `Object.observe` to deliver the changes to disk, but I wanted to keep this module - intentionally dumb and simple -- Non visited keys are removed when `cache.save()` is called. If this is not desired, you can pass `true` to the save call - like: `cache.save( true /* noPrune */ )`. - -## License - -MIT - -## Changelog - -[changelog](./changelog.md) diff --git a/graphql/node_modules/flat-cache/changelog.md b/graphql/node_modules/flat-cache/changelog.md deleted file mode 100644 index 866f9501..00000000 --- a/graphql/node_modules/flat-cache/changelog.md +++ /dev/null @@ -1,278 +0,0 @@ -# flat-cache - Changelog - -## v3.0.4 - -- **Refactoring** - - add files by name to the list of exported files - [89a2698](https://github.com/royriojas/flat-cache/commit/89a2698), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:35:39 - -## v3.0.3 - -- **Bug Fixes** - - Fix wrong eslint command - [f268e42](https://github.com/royriojas/flat-cache/commit/f268e42), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 02:15:04 - -## v3.0.2 - -- **Refactoring** - - - Update the files paths - [6983a80](https://github.com/royriojas/flat-cache/commit/6983a80), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:58:39 - - Move code to src/ - [18ed6e8](https://github.com/royriojas/flat-cache/commit/18ed6e8), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:57:17 - - Change eslint-cache location - [beed74c](https://github.com/royriojas/flat-cache/commit/beed74c), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:48:32 - -## v3.0.1 - -- **Refactoring** - - Remove unused deps - [8c6d9dc](https://github.com/royriojas/flat-cache/commit/8c6d9dc), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:43:29 - -## v3.0.0 - -- **Refactoring** - - Fix engines - [52b824c](https://github.com/royriojas/flat-cache/commit/52b824c), [Roy Riojas](https://github.com/Roy Riojas), 08/11/2020 01:01:52 -- **Other changes** - - - Replace write with combination of mkdir and writeFile ([#49](https://github.com/royriojas/flat-cache/issues/49)) - [ef48276](https://github.com/royriojas/flat-cache/commit/ef48276), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 08/11/2020 00:17:15 - - Node v10 introduced a great "recursive" option for mkdir which allows to - get rid from mkdirp package and easily rewrite "write" package usage - with two function calls. - - https://nodejs.org/api/fs.html#fs_fs_mkdir_path_options_callback - - - Added a testcase for clearAll ([#48](https://github.com/royriojas/flat-cache/issues/48)) - [45b51ca](https://github.com/royriojas/flat-cache/commit/45b51ca), [Aaron Chen](https://github.com/Aaron Chen), 21/05/2020 08:40:03 - - requet node>=10 - [a5c482c](https://github.com/royriojas/flat-cache/commit/a5c482c), [yumetodo](https://github.com/yumetodo), 10/04/2020 23:14:53 - - thanks @SuperITMan - - - Update README.md - [29fe40b](https://github.com/royriojas/flat-cache/commit/29fe40b), [Roy Riojas](https://github.com/Roy Riojas), 10/04/2020 20:08:05 - - reduce vulnerability to 1 - [e9db1b2](https://github.com/royriojas/flat-cache/commit/e9db1b2), [yumetodo](https://github.com/yumetodo), 30/03/2020 11:10:43 - - reduce vulnerabilities dependencies to 8 - [b58d196](https://github.com/royriojas/flat-cache/commit/b58d196), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:54:56 - - use prettier instead of esbeautifier - [03b1db7](https://github.com/royriojas/flat-cache/commit/03b1db7), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:27:14 - - update proxyquire - [c2f048d](https://github.com/royriojas/flat-cache/commit/c2f048d), [yumetodo](https://github.com/yumetodo), 30/03/2020 10:16:16 - - update flatted and mocha - [a0e56da](https://github.com/royriojas/flat-cache/commit/a0e56da), [yumetodo](https://github.com/yumetodo), 30/03/2020 09:46:45 - - mocha > mkdirp is updated - istanble >>> optimist > minimist is not updated - - - drop support node.js < 10 in develop - [beba691](https://github.com/royriojas/flat-cache/commit/beba691), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:31:09 - - see mkdirp - - - npm aufit fix(still remains) - [ce166cb](https://github.com/royriojas/flat-cache/commit/ce166cb), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:18:08 - - 37 vulnerabilities required manual review and could not be updated - - - updtate sinon - [9f2d1b6](https://github.com/royriojas/flat-cache/commit/9f2d1b6), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:51 - - apply eslint-plugin-mocha - [07343b5](https://github.com/royriojas/flat-cache/commit/07343b5), [yumetodo](https://github.com/yumetodo), 13/03/2020 22:17:21 - - Less strint version check ([#44](https://github.com/royriojas/flat-cache/issues/44)) - [92aca1c](https://github.com/royriojas/flat-cache/commit/92aca1c), [Wojciech Maj](https://github.com/Wojciech Maj), 13/11/2019 16:18:25 - - - Use ^ version matching for production dependencies - - Run npm audit fix - -- **Bug Fixes** - - update dependencies and use eslint directly - [73fbed2](https://github.com/royriojas/flat-cache/commit/73fbed2), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:27 - -## v2.0.1 - -- **Refactoring** - - upgrade node modules to latest versions - [6402ed3](https://github.com/royriojas/flat-cache/commit/6402ed3), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 18:47:05 - -## v2.0.0 - -- **Bug Fixes** - - - upgrade package.json lock file - [8d21c7b](https://github.com/royriojas/flat-cache/commit/8d21c7b), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 17:03:13 - - Use the same versions of node_js that eslint use - [8d23379](https://github.com/royriojas/flat-cache/commit/8d23379), [Roy Riojas](https://github.com/Roy Riojas), 08/01/2019 16:25:11 - -- **Other changes** - - - Replace circular-json with flatted ([#36](https://github.com/royriojas/flat-cache/issues/36)) - [b93aced](https://github.com/royriojas/flat-cache/commit/b93aced), [C. K. Tang](https://github.com/C. K. Tang), 08/01/2019 17:03:01 - - Change JSON parser from circular-json to flatted & 1 more changes ([#37](https://github.com/royriojas/flat-cache/issues/37)) - [745e65a](https://github.com/royriojas/flat-cache/commit/745e65a), [Andy Chen](https://github.com/Andy Chen), 08/01/2019 16:17:20 - - - Change JSON parser from circular-json to flatted & 1 more changes - - Change JSON parser from circular-json - - Audited 2 vulnerabilities - - Update package.json - - Update Engine require - - There's a bunch of dependencies in this pkg requires node >=4, so I changed it to 4 - - Remove and add node versions - - I have seen this pkg is not available with node 0.12 so I removed it - - I have added a popular used LTS version of node - 10 - -## v1.3.4 - -- **Refactoring** - - Add del.js and utils.js to the list of files to be beautified - [9d0ca9b](https://github.com/royriojas/flat-cache/commit/9d0ca9b), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 12:19:02 - -## v1.3.3 - -- **Refactoring** - - Make sure package-lock.json is up to date - [a7d2598](https://github.com/royriojas/flat-cache/commit/a7d2598), [Roy Riojas](https://github.com/Roy Riojas), 14/11/2018 11:36:08 -- **Other changes** - - - Removed the need for del ([#33](https://github.com/royriojas/flat-cache/issues/33)) - [c429012](https://github.com/royriojas/flat-cache/commit/c429012), [S. Gilroy](https://github.com/S. Gilroy), 13/11/2018 13:56:37 - - - Removed the need for del - - Removed the need for del as newer versions have broken backwards - compatibility. del mainly uses rimraf for deleting folders - and files, replaceing it with rimraf only is a minimal change. - - - Disable glob on rimraf calls - - Added glob disable to wrong call - - Wrapped rimraf to simplify solution - -## v1.3.2 - -- **Refactoring** - - remove yarn.lock file - [704c6c4](https://github.com/royriojas/flat-cache/commit/704c6c4), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:41:08 -- **Other changes** - - - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23))" - [db12d74](https://github.com/royriojas/flat-cache/commit/db12d74), [Roy Riojas](https://github.com/Roy Riojas), 07/11/2018 15:40:39 - - This reverts commit 00f689277a75e85fef28e6a048fad227afc525e6. - -## v1.3.1 - -- **Refactoring** - - upgrade deps to remove some security warnings - [f405719](https://github.com/royriojas/flat-cache/commit/f405719), [Roy Riojas](https://github.com/Roy Riojas), 06/11/2018 12:07:31 -- **Bug Fixes** - - replace circular-json with flatted ([#23](https://github.com/royriojas/flat-cache/issues/23)) - [00f6892](https://github.com/royriojas/flat-cache/commit/00f6892), [Terry](https://github.com/Terry), 05/11/2018 18:44:16 -- **Other changes** - - - update del to v3.0.0 ([#26](https://github.com/royriojas/flat-cache/issues/26)) - [d42883f](https://github.com/royriojas/flat-cache/commit/d42883f), [Patrick Silva](https://github.com/Patrick Silva), 03/11/2018 01:00:44 - - Closes #25 - -## v1.3.0 - -- **Other changes** - - - Added #all method ([#16](https://github.com/royriojas/flat-cache/issues/16)) - [12293be](https://github.com/royriojas/flat-cache/commit/12293be), [Ozair Patel](https://github.com/Ozair Patel), 25/09/2017 14:46:38 - - - Added #all method - - Added #all method test - - Updated readme - - Added yarn.lock - - Added more keys for #all test - - Beautified file - - - fix changelog title style ([#14](https://github.com/royriojas/flat-cache/issues/14)) - [af8338a](https://github.com/royriojas/flat-cache/commit/af8338a), [前端小武](https://github.com/前端小武), 19/12/2016 20:34:48 - -## v1.2.2 - -- **Bug Fixes** - - - Do not crash if cache file is invalid JSON. ([#13](https://github.com/royriojas/flat-cache/issues/13)) - [87beaa6](https://github.com/royriojas/flat-cache/commit/87beaa6), [Roy Riojas](https://github.com/Roy Riojas), 19/12/2016 18:03:35 - - Fixes #12 - - Not sure under which situations a cache file might exist that does - not contain a valid JSON structure, but just in case to cover - the possibility of this happening a try catch block has been added - - If the cache is somehow not valid the cache will be discarded an a - a new cache will be stored instead - -- **Other changes** - - - Added travis ci support for modern node versions ([#11](https://github.com/royriojas/flat-cache/issues/11)) - [1c2b1f7](https://github.com/royriojas/flat-cache/commit/1c2b1f7), [Amila Welihinda](https://github.com/Amila Welihinda), 10/11/2016 23:47:52 - - Bumping `circular-son` version ([#10](https://github.com/royriojas/flat-cache/issues/10)) - [4d5e861](https://github.com/royriojas/flat-cache/commit/4d5e861), [Andrea Giammarchi](https://github.com/Andrea Giammarchi), 02/08/2016 07:13:52 - - As mentioned in https://github.com/WebReflection/circular-json/issues/25 `circular-json` wan't rightly implementing the license field. - - Latest version bump changed only that bit so that ESLint should now be happy. - -## v1.2.1 - -- **Bug Fixes** - - Add missing utils.js file to the package. closes [#8](https://github.com/royriojas/flat-cache/issues/8) - [ec10cf2](https://github.com/royriojas/flat-cache/commit/ec10cf2), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:18:57 - -## v1.2.0 - -- **Documentation** - - Add documentation about noPrune option - [23e11f9](https://github.com/royriojas/flat-cache/commit/23e11f9), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:06:49 - -## v1.0.11 - -- **Features** - - - Add noPrune option to cache.save() method. closes [#7](https://github.com/royriojas/flat-cache/issues/7) - [2c8016a](https://github.com/royriojas/flat-cache/commit/2c8016a), [Roy Riojas](https://github.com/Roy Riojas), 01/08/2016 02:00:29 - - Add json read and write utility based on circular-json - [c31081e](https://github.com/royriojas/flat-cache/commit/c31081e), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:58:17 - -- **Bug Fixes** - - - Remove UTF16 BOM stripping - [4a41e22](https://github.com/royriojas/flat-cache/commit/4a41e22), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:18:06 - - Since we control both writing and reading of JSON stream, there no needs - to handle unicode BOM. - - - Use circular-json to handle circular references (fix [#5](https://github.com/royriojas/flat-cache/issues/5)) - [cd7aeed](https://github.com/royriojas/flat-cache/commit/cd7aeed), [Jean Ponchon](https://github.com/Jean Ponchon), 25/07/2016 11:11:59 - -- **Tests Related fixes** - - - Add missing file from eslint test - [d6fa3c3](https://github.com/royriojas/flat-cache/commit/d6fa3c3), [Jean Ponchon](https://github.com/Jean Ponchon), 29/07/2016 02:15:51 - - Add test for circular json serialization / deserialization - [07d2ddd](https://github.com/royriojas/flat-cache/commit/07d2ddd), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:36 - -- **Refactoring** - - Remove unused read-json-sync - [2be1c24](https://github.com/royriojas/flat-cache/commit/2be1c24), [Jean Ponchon](https://github.com/Jean Ponchon), 28/07/2016 08:59:18 -- **Build Scripts Changes** - - travis tests on 0.12 and 4x - [3a613fd](https://github.com/royriojas/flat-cache/commit/3a613fd), [royriojas](https://github.com/royriojas), 15/11/2015 14:34:40 - -## v1.0.10 - -- **Build Scripts Changes** - - - add eslint-fix task - [fd29e52](https://github.com/royriojas/flat-cache/commit/fd29e52), [royriojas](https://github.com/royriojas), 01/11/2015 15:04:08 - - make sure the test script also verify beautification and linting of files before running tests - [e94e176](https://github.com/royriojas/flat-cache/commit/e94e176), [royriojas](https://github.com/royriojas), 01/11/2015 11:54:48 - -- **Other changes** - - add clearAll for cacheDir - [97383d9](https://github.com/royriojas/flat-cache/commit/97383d9), [xieyaowu](https://github.com/xieyaowu), 31/10/2015 21:02:18 - -## v1.0.9 - -- **Bug Fixes** - - wrong default values for changelogx user repo name - [7bb52d1](https://github.com/royriojas/flat-cache/commit/7bb52d1), [royriojas](https://github.com/royriojas), 11/09/2015 15:59:30 - -## v1.0.8 - -- **Build Scripts Changes** - - test against node 4 - [c395b66](https://github.com/royriojas/flat-cache/commit/c395b66), [royriojas](https://github.com/royriojas), 11/09/2015 15:51:39 - -## v1.0.7 - -- **Other changes** - - Move dependencies into devDep - [7e47099](https://github.com/royriojas/flat-cache/commit/7e47099), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 15:10:57 -- **Documentation** - - Add missing changelog link - [f51197a](https://github.com/royriojas/flat-cache/commit/f51197a), [royriojas](https://github.com/royriojas), 11/09/2015 14:48:05 - -## v1.0.6 - -- **Build Scripts Changes** - - Add helpers/code check scripts - [bdb82f3](https://github.com/royriojas/flat-cache/commit/bdb82f3), [royriojas](https://github.com/royriojas), 11/09/2015 14:44:31 - -## v1.0.5 - -- **Documentation** - - better description for the module - [436817f](https://github.com/royriojas/flat-cache/commit/436817f), [royriojas](https://github.com/royriojas), 11/09/2015 14:35:33 -- **Other changes** - - Update dependencies - [be88aa3](https://github.com/royriojas/flat-cache/commit/be88aa3), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 13:47:41 - -## v1.0.4 - -- **Refactoring** - - load a cache file using the full filepath - [b8f68c2](https://github.com/royriojas/flat-cache/commit/b8f68c2), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 04:19:14 -- **Documentation** - - Add documentation about `clearAll` and `clearCacheById` - [13947c1](https://github.com/royriojas/flat-cache/commit/13947c1), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:44:05 -- **Features** - - Add methods to remove the cache documents created - [af40443](https://github.com/royriojas/flat-cache/commit/af40443), [Roy Riojas](https://github.com/Roy Riojas), 01/03/2015 23:39:27 - -## v1.0.1 - -- **Other changes** - - Update README.md - [c2b6805](https://github.com/royriojas/flat-cache/commit/c2b6805), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:28:07 - -## v1.0.0 - -- **Refactoring** - - flat-cache v.1.0.0 - [c984274](https://github.com/royriojas/flat-cache/commit/c984274), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:11:50 -- **Other changes** - - Initial commit - [d43cccf](https://github.com/royriojas/flat-cache/commit/d43cccf), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 01:12:16 diff --git a/graphql/node_modules/flat-cache/package.json b/graphql/node_modules/flat-cache/package.json deleted file mode 100644 index b1248837..00000000 --- a/graphql/node_modules/flat-cache/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "flat-cache", - "version": "4.0.1", - "description": "A stupidly simple key/value storage using files to persist some data", - "repository": "jaredwray/flat-cache", - "license": "MIT", - "author": { - "name": "Jared Wray", - "url": "https://jaredwray.com" - }, - "main": "src/cache.js", - "files": [ - "src/cache.js", - "src/del.js", - "src/utils.js" - ], - "engines": { - "node": ">=16" - }, - "precommit": [ - "npm run verify --silent" - ], - "prepush": [ - "npm run verify --silent" - ], - "scripts": { - "eslint": "eslint --cache --cache-location=node_modules/.cache/ ./src/**/*.js ./test/**/*.js", - "clean": "rimraf ./node_modules ./package-lock.json ./yarn.lock ./coverage", - "eslint-fix": "npm run eslint -- --fix", - "autofix": "npm run eslint-fix", - "check": "npm run eslint", - "verify": "npm run eslint && npm run test:cache", - "test:cache": "c8 mocha -R spec test/specs", - "test:ci:cache": "c8 --reporter=lcov mocha -R spec test/specs", - "test": "npm run verify --silent", - "format": "prettier --write ." - }, - "keywords": [ - "json cache", - "simple cache", - "file cache", - "key par", - "key value", - "cache" - ], - "devDependencies": { - "c8": "^9.1.0", - "chai": "^4.3.10", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-mocha": "^10.2.0", - "glob-expand": "^0.2.1", - "mocha": "^10.3.0", - "prettier": "^3.2.4", - "rimraf": "^5.0.5", - "sinon": "^17.0.1", - "write": "^2.0.0" - }, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - } -} diff --git a/graphql/node_modules/flat-cache/src/cache.js b/graphql/node_modules/flat-cache/src/cache.js deleted file mode 100644 index b1fdf6d8..00000000 --- a/graphql/node_modules/flat-cache/src/cache.js +++ /dev/null @@ -1,214 +0,0 @@ -const path = require('path'); -const fs = require('fs'); -const Keyv = require('keyv'); -const { writeJSON, tryParse } = require('./utils'); -const { del } = require('./del'); - -const cache = { - /** - * Load a cache identified by the given Id. If the element does not exists, then initialize an empty - * cache storage. If specified `cacheDir` will be used as the directory to persist the data to. If omitted - * then the cache module directory `./cache` will be used instead - * - * @method load - * @param docId {String} the id of the cache, would also be used as the name of the file cache - * @param [cacheDir] {String} directory for the cache entry - */ - load: function (docId, cacheDir) { - const me = this; - me.keyv = new Keyv(); - - me.__visited = {}; - me.__persisted = {}; - - me._pathToFile = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId); - - if (fs.existsSync(me._pathToFile)) { - me._persisted = tryParse(me._pathToFile, {}); - } - }, - - get _persisted() { - return this.__persisted; - }, - - set _persisted(value) { - this.__persisted = value; - }, - - get _visited() { - return this.__visited; - }, - - set _visited(value) { - this.__visited = value; - }, - - /** - * Load the cache from the provided file - * @method loadFile - * @param {String} pathToFile the path to the file containing the info for the cache - */ - loadFile: function (pathToFile) { - const me = this; - const dir = path.dirname(pathToFile); - const fName = path.basename(pathToFile); - - me.load(fName, dir); - }, - - /** - * Returns the entire persisted object - * @method all - * @returns {*} - */ - all: function () { - return this._persisted; - }, - - keys: function () { - return Object.keys(this._persisted); - }, - /** - * sets a key to a given value - * @method setKey - * @param key {string} the key to set - * @param value {object} the value of the key. Could be any object that can be serialized with JSON.stringify - */ - setKey: function (key, value) { - this._visited[key] = true; - this._persisted[key] = value; - }, - /** - * remove a given key from the cache - * @method removeKey - * @param key {String} the key to remove from the object - */ - removeKey: function (key) { - delete this._visited[key]; // esfmt-ignore-line - delete this._persisted[key]; // esfmt-ignore-line - }, - /** - * Return the value of the provided key - * @method getKey - * @param key {String} the name of the key to retrieve - * @returns {*} the value from the key - */ - getKey: function (key) { - this._visited[key] = true; - return this._persisted[key]; - }, - - /** - * Remove keys that were not accessed/set since the - * last time the `prune` method was called. - * @method _prune - * @private - */ - _prune: function () { - const me = this; - const obj = {}; - - const keys = Object.keys(me._visited); - - // no keys visited for either get or set value - if (keys.length === 0) { - return; - } - - keys.forEach(function (key) { - obj[key] = me._persisted[key]; - }); - - me._visited = {}; - me._persisted = obj; - }, - - /** - * Save the state of the cache identified by the docId to disk - * as a JSON structure - * @param [noPrune=false] {Boolean} whether to remove from cache the non visited files - * @method save - */ - save: function (noPrune) { - const me = this; - !noPrune && me._prune(); - writeJSON(me._pathToFile, me._persisted); - }, - - /** - * remove the file where the cache is persisted - * @method removeCacheFile - * @return {Boolean} true or false if the file was successfully deleted - */ - removeCacheFile: function () { - return del(this._pathToFile); - }, - /** - * Destroy the file cache and cache content. - * @method destroy - */ - destroy: function () { - const me = this; - me._visited = {}; - me._persisted = {}; - - me.removeCacheFile(); - }, -}; - -module.exports = { - /** - * Alias for create. Should be considered depreacted. Will be removed in next releases - * - * @method load - * @param docId {String} the id of the cache, would also be used as the name of the file cache - * @param [cacheDir] {String} directory for the cache entry - * @returns {cache} cache instance - */ - load: function (docId, cacheDir) { - return this.create(docId, cacheDir); - }, - - /** - * Load a cache identified by the given Id. If the element does not exists, then initialize an empty - * cache storage. - * - * @method create - * @param docId {String} the id of the cache, would also be used as the name of the file cache - * @param [cacheDir] {String} directory for the cache entry - * @returns {cache} cache instance - */ - create: function (docId, cacheDir) { - const obj = Object.create(cache); - obj.load(docId, cacheDir); - return obj; - }, - - createFromFile: function (filePath) { - const obj = Object.create(cache); - obj.loadFile(filePath); - return obj; - }, - /** - * Clear the cache identified by the given id. Caches stored in a different cache directory can be deleted directly - * - * @method clearCache - * @param docId {String} the id of the cache, would also be used as the name of the file cache - * @param cacheDir {String} the directory where the cache file was written - * @returns {Boolean} true if the cache folder was deleted. False otherwise - */ - clearCacheById: function (docId, cacheDir) { - const filePath = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId); - return del(filePath); - }, - /** - * Remove all cache stored in the cache directory - * @method clearAll - * @returns {Boolean} true if the cache folder was deleted. False otherwise - */ - clearAll: function (cacheDir) { - const filePath = cacheDir ? path.resolve(cacheDir) : path.resolve(__dirname, '../.cache/'); - return del(filePath); - }, -}; diff --git a/graphql/node_modules/flat-cache/src/del.js b/graphql/node_modules/flat-cache/src/del.js deleted file mode 100644 index 9cd55c36..00000000 --- a/graphql/node_modules/flat-cache/src/del.js +++ /dev/null @@ -1,30 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -function del(targetPath) { - if (!fs.existsSync(targetPath)) { - return false; - } - - try { - if (fs.statSync(targetPath).isDirectory()) { - // If it's a directory, delete its contents first - fs.readdirSync(targetPath).forEach(file => { - const curPath = path.join(targetPath, file); - - if (fs.statSync(curPath).isFile()) { - fs.unlinkSync(curPath); // Delete file - } - }); - fs.rmdirSync(targetPath); // Delete the now-empty directory - } else { - fs.unlinkSync(targetPath); // If it's a file, delete it directly - } - - return true; - } catch (error) { - console.error(`Error while deleting ${targetPath}: ${error.message}`); - } -} - -module.exports = { del }; diff --git a/graphql/node_modules/flat-cache/src/utils.js b/graphql/node_modules/flat-cache/src/utils.js deleted file mode 100644 index c4f75fbc..00000000 --- a/graphql/node_modules/flat-cache/src/utils.js +++ /dev/null @@ -1,42 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const flatted = require('flatted'); - -function tryParse(filePath, defaultValue) { - let result; - try { - result = readJSON(filePath); - } catch (ex) { - result = defaultValue; - } - return result; -} - -/** - * Read json file synchronously using flatted - * - * @param {String} filePath Json filepath - * @returns {*} parse result - */ -function readJSON(filePath) { - return flatted.parse( - fs.readFileSync(filePath, { - encoding: 'utf8', - }) - ); -} - -/** - * Write json file synchronously using circular-json - * - * @param {String} filePath Json filepath - * @param {*} data Object to serialize - */ -function writeJSON(filePath, data) { - fs.mkdirSync(path.dirname(filePath), { - recursive: true, - }); - fs.writeFileSync(filePath, flatted.stringify(data)); -} - -module.exports = { tryParse, readJSON, writeJSON }; diff --git a/graphql/node_modules/flatted/LICENSE b/graphql/node_modules/flatted/LICENSE deleted file mode 100644 index 506dc479..00000000 --- a/graphql/node_modules/flatted/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2018-2020, Andrea Giammarchi, @WebReflection - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/flatted/README.md b/graphql/node_modules/flatted/README.md deleted file mode 100644 index f01c4c4c..00000000 --- a/graphql/node_modules/flatted/README.md +++ /dev/null @@ -1,115 +0,0 @@ -# flatted - -[![Downloads](https://img.shields.io/npm/dm/flatted.svg)](https://www.npmjs.com/package/flatted) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/flatted/badge.svg?branch=main)](https://coveralls.io/github/WebReflection/flatted?branch=main) [![Build Status](https://travis-ci.com/WebReflection/flatted.svg?branch=main)](https://travis-ci.com/WebReflection/flatted) [![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/ISC) ![WebReflection status](https://offline.report/status/webreflection.svg) - -![snow flake](./flatted.jpg) - -**Social Media Photo by [Matt Seymour](https://unsplash.com/@mattseymour) on [Unsplash](https://unsplash.com/)** - -A super light (0.5K) and fast circular JSON parser, directly from the creator of [CircularJSON](https://github.com/WebReflection/circular-json/#circularjson). - -Available also for **[PHP](./php/flatted.php)**. - -Available also for **[Python](./python/flatted.py)**. - -- - - - -## Announcement 📣 - -There is a standard approach to recursion and more data-types than what JSON allows, and it's part of the [Structured Clone polyfill](https://github.com/ungap/structured-clone/#readme). - -Beside acting as a polyfill, its `@ungap/structured-clone/json` export provides both `stringify` and `parse`, and it's been tested for being faster than *flatted*, but its produced output is also smaller than *flatted* in general. - -The *@ungap/structured-clone* module is, in short, a drop in replacement for *flatted*, but it's not compatible with *flatted* specialized syntax. - -However, if recursion, as well as more data-types, are what you are after, or interesting for your projects/use cases, consider switching to this new module whenever you can 👍 - -- - - - -```js -npm i flatted -``` - -Usable via [CDN](https://unpkg.com/flatted) or as regular module. - -```js -// ESM -import {parse, stringify, toJSON, fromJSON} from 'flatted'; - -// CJS -const {parse, stringify, toJSON, fromJSON} = require('flatted'); - -const a = [{}]; -a[0].a = a; -a.push(a); - -stringify(a); // [["1","0"],{"a":"0"}] -``` - -## toJSON and fromJSON - -If you'd like to implicitly survive JSON serialization, these two helpers helps: - -```js -import {toJSON, fromJSON} from 'flatted'; - -class RecursiveMap extends Map { - static fromJSON(any) { - return new this(fromJSON(any)); - } - toJSON() { - return toJSON([...this.entries()]); - } -} - -const recursive = new RecursiveMap; -const same = {}; -same.same = same; -recursive.set('same', same); - -const asString = JSON.stringify(recursive); -const asMap = RecursiveMap.fromJSON(JSON.parse(asString)); -asMap.get('same') === asMap.get('same').same; -// true -``` - - -## Flatted VS JSON - -As it is for every other specialized format capable of serializing and deserializing circular data, you should never `JSON.parse(Flatted.stringify(data))`, and you should never `Flatted.parse(JSON.stringify(data))`. - -The only way this could work is to `Flatted.parse(Flatted.stringify(data))`, as it is also for _CircularJSON_ or any other, otherwise there's no granted data integrity. - -Also please note this project serializes and deserializes only data compatible with JSON, so that sockets, or anything else with internal classes different from those allowed by JSON standard, won't be serialized and unserialized as expected. - - -### New in V1: Exact same JSON API - - * Added a [reviver](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Syntax) parameter to `.parse(string, reviver)` and revive your own objects. - * Added a [replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Syntax) and a `space` parameter to `.stringify(object, replacer, space)` for feature parity with JSON signature. - - -### Compatibility -All ECMAScript engines compatible with `Map`, `Set`, `Object.keys`, and `Array.prototype.reduce` will work, even if polyfilled. - - -### How does it work ? -While stringifying, all Objects, including Arrays, and strings, are flattened out and replaced as unique index. `*` - -Once parsed, all indexes will be replaced through the flattened collection. - -`*` represented as string to avoid conflicts with numbers - -```js -// logic example -var a = [{one: 1}, {two: '2'}]; -a[0].a = a; -// a is the main object, will be at index '0' -// {one: 1} is the second object, index '1' -// {two: '2'} the third, in '2', and it has a string -// which will be found at index '3' - -Flatted.stringify(a); -// [["1","2"],{"one":1,"a":"0"},{"two":"3"},"2"] -// a[one,two] {one: 1, a} {two: '2'} '2' -``` diff --git a/graphql/node_modules/flatted/cjs/index.js b/graphql/node_modules/flatted/cjs/index.js deleted file mode 100644 index e519a197..00000000 --- a/graphql/node_modules/flatted/cjs/index.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; -/// - -// (c) 2020-present Andrea Giammarchi - -const {parse: $parse, stringify: $stringify} = JSON; -const {keys} = Object; - -const Primitive = String; // it could be Number -const primitive = 'string'; // it could be 'number' - -const ignore = {}; -const object = 'object'; - -const noop = (_, value) => value; - -const primitives = value => ( - value instanceof Primitive ? Primitive(value) : value -); - -const Primitives = (_, value) => ( - typeof value === primitive ? new Primitive(value) : value -); - -const revive = (input, parsed, output, $) => { - const lazy = []; - for (let ke = keys(output), {length} = ke, y = 0; y < length; y++) { - const k = ke[y]; - const value = output[k]; - if (value instanceof Primitive) { - const tmp = input[value]; - if (typeof tmp === object && !parsed.has(tmp)) { - parsed.add(tmp); - output[k] = ignore; - lazy.push({k, a: [input, parsed, tmp, $]}); - } - else - output[k] = $.call(output, k, tmp); - } - else if (output[k] !== ignore) - output[k] = $.call(output, k, value); - } - for (let {length} = lazy, i = 0; i < length; i++) { - const {k, a} = lazy[i]; - output[k] = $.call(output, k, revive.apply(null, a)); - } - return output; -}; - -const set = (known, input, value) => { - const index = Primitive(input.push(value) - 1); - known.set(value, index); - return index; -}; - -/** - * Converts a specialized flatted string into a JS value. - * @param {string} text - * @param {((this: any, key: string, value: any) => any) | undefined): any} [reviver] - * @returns {any} - */ -const parse = (text, reviver) => { - const input = $parse(text, Primitives).map(primitives); - const value = input[0]; - const $ = reviver || noop; - const tmp = typeof value === object && value ? - revive(input, new Set, value, $) : - value; - return $.call({'': tmp}, '', tmp); -}; -exports.parse = parse; - -/** - * Converts a JS value into a specialized flatted string. - * @param {any} value - * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer] - * @param {string | number | undefined} [space] - * @returns {string} - */ -const stringify = (value, replacer, space) => { - const $ = replacer && typeof replacer === object ? - (k, v) => (k === '' || -1 < replacer.indexOf(k) ? v : void 0) : - (replacer || noop); - const known = new Map; - const input = []; - const output = []; - let i = +set(known, input, $.call({'': value}, '', value)); - let firstRun = !i; - while (i < input.length) { - firstRun = true; - output[i] = $stringify(input[i++], replace, space); - } - return '[' + output.join(',') + ']'; - function replace(key, value) { - if (firstRun) { - firstRun = !firstRun; - return value; - } - const after = $.call(this, key, value); - switch (typeof after) { - case object: - if (after === null) return after; - case primitive: - return known.get(after) || set(known, input, after); - } - return after; - } -}; -exports.stringify = stringify; - -/** - * Converts a generic value into a JSON serializable object without losing recursion. - * @param {any} value - * @returns {any} - */ -const toJSON = value => $parse(stringify(value)); -exports.toJSON = toJSON; - -/** - * Converts a previously serialized object with recursion into a recursive one. - * @param {any} value - * @returns {any} - */ -const fromJSON = value => parse($stringify(value)); -exports.fromJSON = fromJSON; diff --git a/graphql/node_modules/flatted/cjs/package.json b/graphql/node_modules/flatted/cjs/package.json deleted file mode 100644 index 0292b995..00000000 --- a/graphql/node_modules/flatted/cjs/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"commonjs"} \ No newline at end of file diff --git a/graphql/node_modules/flatted/es.js b/graphql/node_modules/flatted/es.js deleted file mode 100644 index 42c98aef..00000000 --- a/graphql/node_modules/flatted/es.js +++ /dev/null @@ -1 +0,0 @@ -self.Flatted=function(t){"use strict";const{parse:e,stringify:n}=JSON,{keys:r}=Object,s=String,o="string",c={},l="object",a=(t,e)=>e,f=t=>t instanceof s?s(t):t,i=(t,e)=>typeof e===o?new s(e):e,u=(t,e,n,o)=>{const a=[];for(let f=r(n),{length:i}=f,u=0;u{const r=s(e.push(n)-1);return t.set(n,r),r},y=(t,n)=>{const r=e(t,i).map(f),s=r[0],o=n||a,c=typeof s===l&&s?u(r,new Set,s,o):s;return o.call({"":c},"",c)},g=(t,e,r)=>{const s=e&&typeof e===l?(t,n)=>""===t||-1y(n(t)),t.parse=y,t.stringify=g,t.toJSON=t=>e(g(t)),t}({}); diff --git a/graphql/node_modules/flatted/esm.js b/graphql/node_modules/flatted/esm.js deleted file mode 100644 index a5d5351e..00000000 --- a/graphql/node_modules/flatted/esm.js +++ /dev/null @@ -1 +0,0 @@ -const{parse:t,stringify:e}=JSON,{keys:n}=Object,l=String,o="string",r={},s="object",c=(t,e)=>e,a=t=>t instanceof l?l(t):t,f=(t,e)=>typeof e===o?new l(e):e,i=(t,e,o,c)=>{const a=[];for(let f=n(o),{length:i}=f,p=0;p{const o=l(e.push(n)-1);return t.set(n,o),o},u=(e,n)=>{const l=t(e,f).map(a),o=l[0],r=n||c,p=typeof o===s&&o?i(l,new Set,o,r):o;return r.call({"":p},"",p)},h=(t,n,l)=>{const r=n&&typeof n===s?(t,e)=>""===t||-1t(h(e)),g=t=>u(e(t));export{g as fromJSON,u as parse,h as stringify,y as toJSON}; diff --git a/graphql/node_modules/flatted/esm/index.js b/graphql/node_modules/flatted/esm/index.js deleted file mode 100644 index d203851a..00000000 --- a/graphql/node_modules/flatted/esm/index.js +++ /dev/null @@ -1,120 +0,0 @@ -/// - -// (c) 2020-present Andrea Giammarchi - -const {parse: $parse, stringify: $stringify} = JSON; -const {keys} = Object; - -const Primitive = String; // it could be Number -const primitive = 'string'; // it could be 'number' - -const ignore = {}; -const object = 'object'; - -const noop = (_, value) => value; - -const primitives = value => ( - value instanceof Primitive ? Primitive(value) : value -); - -const Primitives = (_, value) => ( - typeof value === primitive ? new Primitive(value) : value -); - -const revive = (input, parsed, output, $) => { - const lazy = []; - for (let ke = keys(output), {length} = ke, y = 0; y < length; y++) { - const k = ke[y]; - const value = output[k]; - if (value instanceof Primitive) { - const tmp = input[value]; - if (typeof tmp === object && !parsed.has(tmp)) { - parsed.add(tmp); - output[k] = ignore; - lazy.push({k, a: [input, parsed, tmp, $]}); - } - else - output[k] = $.call(output, k, tmp); - } - else if (output[k] !== ignore) - output[k] = $.call(output, k, value); - } - for (let {length} = lazy, i = 0; i < length; i++) { - const {k, a} = lazy[i]; - output[k] = $.call(output, k, revive.apply(null, a)); - } - return output; -}; - -const set = (known, input, value) => { - const index = Primitive(input.push(value) - 1); - known.set(value, index); - return index; -}; - -/** - * Converts a specialized flatted string into a JS value. - * @param {string} text - * @param {(this: any, key: string, value: any) => any} [reviver] - * @returns {any} - */ -export const parse = (text, reviver) => { - const input = $parse(text, Primitives).map(primitives); - const value = input[0]; - const $ = reviver || noop; - const tmp = typeof value === object && value ? - revive(input, new Set, value, $) : - value; - return $.call({'': tmp}, '', tmp); -}; - -/** - * Converts a JS value into a specialized flatted string. - * @param {any} value - * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer] - * @param {string | number | undefined} [space] - * @returns {string} - */ -export const stringify = (value, replacer, space) => { - const $ = replacer && typeof replacer === object ? - (k, v) => (k === '' || -1 < replacer.indexOf(k) ? v : void 0) : - (replacer || noop); - const known = new Map; - const input = []; - const output = []; - let i = +set(known, input, $.call({'': value}, '', value)); - let firstRun = !i; - while (i < input.length) { - firstRun = true; - output[i] = $stringify(input[i++], replace, space); - } - return '[' + output.join(',') + ']'; - function replace(key, value) { - if (firstRun) { - firstRun = !firstRun; - return value; - } - const after = $.call(this, key, value); - switch (typeof after) { - case object: - if (after === null) return after; - case primitive: - return known.get(after) || set(known, input, after); - } - return after; - } -}; - -/** - * Converts a generic value into a JSON serializable object without losing recursion. - * @param {any} value - * @returns {any} - */ -export const toJSON = value => $parse(stringify(value)); - -/** - * Converts a previously serialized object with recursion into a recursive one. - * @param {any} value - * @returns {any} - */ -export const fromJSON = value => parse($stringify(value)); diff --git a/graphql/node_modules/flatted/index.js b/graphql/node_modules/flatted/index.js deleted file mode 100644 index 7575c959..00000000 --- a/graphql/node_modules/flatted/index.js +++ /dev/null @@ -1,146 +0,0 @@ -self.Flatted = (function (exports) { - 'use strict'; - - function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); - } - - /// - - // (c) 2020-present Andrea Giammarchi - - var $parse = JSON.parse, - $stringify = JSON.stringify; - var keys = Object.keys; - var Primitive = String; // it could be Number - var primitive = 'string'; // it could be 'number' - - var ignore = {}; - var object = 'object'; - var noop = function noop(_, value) { - return value; - }; - var primitives = function primitives(value) { - return value instanceof Primitive ? Primitive(value) : value; - }; - var Primitives = function Primitives(_, value) { - return _typeof(value) === primitive ? new Primitive(value) : value; - }; - var revive = function revive(input, parsed, output, $) { - var lazy = []; - for (var ke = keys(output), length = ke.length, y = 0; y < length; y++) { - var k = ke[y]; - var value = output[k]; - if (value instanceof Primitive) { - var tmp = input[value]; - if (_typeof(tmp) === object && !parsed.has(tmp)) { - parsed.add(tmp); - output[k] = ignore; - lazy.push({ - k: k, - a: [input, parsed, tmp, $] - }); - } else output[k] = $.call(output, k, tmp); - } else if (output[k] !== ignore) output[k] = $.call(output, k, value); - } - for (var _length = lazy.length, i = 0; i < _length; i++) { - var _lazy$i = lazy[i], - _k = _lazy$i.k, - a = _lazy$i.a; - output[_k] = $.call(output, _k, revive.apply(null, a)); - } - return output; - }; - var set = function set(known, input, value) { - var index = Primitive(input.push(value) - 1); - known.set(value, index); - return index; - }; - - /** - * Converts a specialized flatted string into a JS value. - * @param {string} text - * @param {((this: any, key: string, value: any) => any) | undefined): any} [reviver] - * @returns {any} - */ - var parse = function parse(text, reviver) { - var input = $parse(text, Primitives).map(primitives); - var value = input[0]; - var $ = reviver || noop; - var tmp = _typeof(value) === object && value ? revive(input, new Set(), value, $) : value; - return $.call({ - '': tmp - }, '', tmp); - }; - - /** - * Converts a JS value into a specialized flatted string. - * @param {any} value - * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer] - * @param {string | number | undefined} [space] - * @returns {string} - */ - var stringify = function stringify(value, replacer, space) { - var $ = replacer && _typeof(replacer) === object ? function (k, v) { - return k === '' || -1 < replacer.indexOf(k) ? v : void 0; - } : replacer || noop; - var known = new Map(); - var input = []; - var output = []; - var i = +set(known, input, $.call({ - '': value - }, '', value)); - var firstRun = !i; - while (i < input.length) { - firstRun = true; - output[i] = $stringify(input[i++], replace, space); - } - return '[' + output.join(',') + ']'; - function replace(key, value) { - if (firstRun) { - firstRun = !firstRun; - return value; - } - var after = $.call(this, key, value); - switch (_typeof(after)) { - case object: - if (after === null) return after; - case primitive: - return known.get(after) || set(known, input, after); - } - return after; - } - }; - - /** - * Converts a generic value into a JSON serializable object without losing recursion. - * @param {any} value - * @returns {any} - */ - var toJSON = function toJSON(value) { - return $parse(stringify(value)); - }; - - /** - * Converts a previously serialized object with recursion into a recursive one. - * @param {any} value - * @returns {any} - */ - var fromJSON = function fromJSON(value) { - return parse($stringify(value)); - }; - - exports.fromJSON = fromJSON; - exports.parse = parse; - exports.stringify = stringify; - exports.toJSON = toJSON; - - return exports; - -})({}); diff --git a/graphql/node_modules/flatted/min.js b/graphql/node_modules/flatted/min.js deleted file mode 100644 index e43fa186..00000000 --- a/graphql/node_modules/flatted/min.js +++ /dev/null @@ -1 +0,0 @@ -self.Flatted=function(n){"use strict";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}var r=JSON.parse,e=JSON.stringify,o=Object.keys,u=String,f="string",i={},c="object",a=function(n,t){return t},l=function(n){return n instanceof u?u(n):n},s=function(n,r){return t(r)===f?new u(r):r},y=function n(r,e,f,a){for(var l=[],s=o(f),y=s.length,p=0;p ./coverage/lcov.info" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/WebReflection/flatted.git" - }, - "keywords": [ - "circular", - "JSON", - "fast", - "parser", - "minimal" - ], - "author": "Andrea Giammarchi", - "license": "ISC", - "bugs": { - "url": "https://github.com/WebReflection/flatted/issues" - }, - "homepage": "https://github.com/WebReflection/flatted#readme", - "devDependencies": { - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", - "@rollup/plugin-babel": "^6.0.4", - "@rollup/plugin-terser": "^0.4.4", - "@ungap/structured-clone": "^1.2.0", - "ascjs": "^6.0.3", - "c8": "^9.1.0", - "circular-json": "^0.5.9", - "circular-json-es6": "^2.0.2", - "jsan": "^3.1.14", - "rollup": "^4.12.0", - "terser": "^5.27.2", - "typescript": "^5.3.3" - }, - "module": "./esm/index.js", - "type": "module", - "exports": { - ".": { - "types": "./types/index.d.ts", - "import": "./esm/index.js", - "default": "./cjs/index.js" - }, - "./esm": "./esm.js", - "./package.json": "./package.json" - }, - "types": "./types/index.d.ts" -} diff --git a/graphql/node_modules/flatted/php/flatted.php b/graphql/node_modules/flatted/php/flatted.php deleted file mode 100644 index 22659f6a..00000000 --- a/graphql/node_modules/flatted/php/flatted.php +++ /dev/null @@ -1,156 +0,0 @@ -value = $value; - } -} - -class Flatted { - - // public utilities - public static function parse($json, $assoc = false, $depth = 512, $options = 0) { - $input = array_map( - 'Flatted::asString', - array_map( - 'Flatted::wrap', - json_decode($json, $assoc, $depth, $options) - ) - ); - $value = &$input[0]; - $set = array(); - $set[] = &$value; - if (is_array($value)) - return Flatted::loop(false, array_keys($value), $input, $set, $value); - if (is_object($value)) - return Flatted::loop(true, Flatted::keys($value), $input, $set, $value); - return $value; - } - - public static function stringify($value, $options = 0, $depth = 512) { - $known = new stdClass; - $known->key = array(); - $known->value = array(); - $input = array(); - $output = array(); - $i = intval(Flatted::index($known, $input, $value)); - while ($i < count($input)) { - $output[$i] = Flatted::transform($known, $input, $input[$i]); - $i++; - } - return json_encode($output, $options, $depth); - } - - // private helpers - private static function asString($value) { - return $value instanceof FlattedString ? $value->value : $value; - } - - private static function index(&$known, &$input, &$value) { - $input[] = &$value; - $index = strval(count($input) - 1); - $known->key[] = &$value; - $known->value[] = &$index; - return $index; - } - - private static function keys(&$value) { - $obj = new ReflectionObject($value); - $props = $obj->getProperties(); - $keys = array(); - foreach ($props as $prop) - $keys[] = $prop->getName(); - return $keys; - } - - private static function loop($obj, $keys, &$input, &$set, &$output) { - foreach ($keys as $key) { - $value = $obj ? $output->$key : $output[$key]; - if ($value instanceof FlattedString) - Flatted::ref($obj, $key, $input[$value->value], $input, $set, $output); - } - return $output; - } - - private static function relate(&$known, &$input, &$value) { - if (is_string($value) || is_array($value) || is_object($value)) { - $key = array_search($value, $known->key, true); - if ($key !== false) - return $known->value[$key]; - return Flatted::index($known, $input, $value); - } - return $value; - } - - private static function ref($obj, &$key, &$value, &$input, &$set, &$output) { - if (is_array($value) && !in_array($value, $set, true)) { - $set[] = $value; - $value = Flatted::loop(false, array_keys($value), $input, $set, $value); - } - elseif (is_object($value) && !in_array($value, $set, true)) { - $set[] = $value; - $value = Flatted::loop(true, Flatted::keys($value), $input, $set, $value); - } - if ($obj) { - $output->$key = &$value; - } - else { - $output[$key] = &$value; - } - } - - private static function transform(&$known, &$input, &$value) { - if (is_array($value)) { - return array_map( - function ($value) use(&$known, &$input) { - return Flatted::relate($known, $input, $value); - }, - $value - ); - } - if (is_object($value)) { - $object = new stdClass; - $keys = Flatted::keys($value); - foreach ($keys as $key) - $object->$key = Flatted::relate($known, $input, $value->$key); - return $object; - } - return $value; - } - - private static function wrap($value) { - if (is_string($value)) { - return new FlattedString($value); - } - if (is_array($value)) { - return array_map('Flatted::wrap', $value); - } - if (is_object($value)) { - $keys = Flatted::keys($value); - foreach ($keys as $key) { - $value->$key = self::wrap($value->$key); - } - } - return $value; - } -} -?> \ No newline at end of file diff --git a/graphql/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc b/graphql/node_modules/flatted/python/__pycache__/flatted.cpython-311.pyc deleted file mode 100644 index 478844f81208454a20b537712ff7cfd836081aba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6741 zcmcIoTW=f372f6Ul1p+$QWr|L7Gvz9^iGtIUg^PQKB@INV@-h;hd}ofQqgH{dy1>&_h5~4+Dd`1`O#fz_1g_gH@o`Zp1zdsAHC3jVLa1+esV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hx|{5Fz$fN9nQSo2A!vAI7XMikeCav@Bve{Lh8D&PA zokYi3yha4N2Ga@0=3gviOX0qS48VDcmz{syokU`@C(5mHD7r%avXaOvWi@&uay@c8 zyYTu=^Ok9;J8gAmi9e6D2o5%_eAn%z&9%45<(7iIWv%tb>FcK#;ve-`TEf;6CH_3B zWjiONlC~8OG7H=0PtFc|>{x^gwjAxa{i9;sito1LyTR)5r2t&5=wUm0xTGHTaJi@q z@#=5Ezl-m&mo+&*?Vqsm8GM za=ptpLAx~%rqW1Sp#A4ilvJH-*#X44W5?*u#L<4*&e_X=ilS#P%^2_yXxZ5@f?vbGjF*HC z=UI^@5eD20UsB#zs|6vSh@0bP_>%IzS}h3q#n_7ALQJNl3z{e%2C>w@FN!-TSp_7w zQ?d$vMQp`Et_Bgmh+AD3Vk!;Xg^mE#bD^z;k}hnCP|}6oI3-=!r;7Wit481=`#0W{ B%B}za diff --git a/graphql/node_modules/flatted/python/flatted.py b/graphql/node_modules/flatted/python/flatted.py deleted file mode 100644 index 56bb08ec..00000000 --- a/graphql/node_modules/flatted/python/flatted.py +++ /dev/null @@ -1,149 +0,0 @@ -# ISC License -# -# Copyright (c) 2018-2021, Andrea Giammarchi, @WebReflection -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted, provided that the above -# copyright notice and this permission notice appear in all copies. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -# PERFORMANCE OF THIS SOFTWARE. - -import json as _json - -class _Known: - def __init__(self): - self.key = [] - self.value = [] - -class _String: - def __init__(self, value): - self.value = value - - -def _array_keys(value): - keys = [] - i = 0 - for _ in value: - keys.append(i) - i += 1 - return keys - -def _object_keys(value): - keys = [] - for key in value: - keys.append(key) - return keys - -def _is_array(value): - return isinstance(value, list) or isinstance(value, tuple) - -def _is_object(value): - return isinstance(value, dict) - -def _is_string(value): - return isinstance(value, str) - -def _index(known, input, value): - input.append(value) - index = str(len(input) - 1) - known.key.append(value) - known.value.append(index) - return index - -def _loop(keys, input, known, output): - for key in keys: - value = output[key] - if isinstance(value, _String): - _ref(key, input[int(value.value)], input, known, output) - - return output - -def _ref(key, value, input, known, output): - if _is_array(value) and not value in known: - known.append(value) - value = _loop(_array_keys(value), input, known, value) - elif _is_object(value) and not value in known: - known.append(value) - value = _loop(_object_keys(value), input, known, value) - - output[key] = value - -def _relate(known, input, value): - if _is_string(value) or _is_array(value) or _is_object(value): - try: - return known.value[known.key.index(value)] - except: - return _index(known, input, value) - - return value - -def _transform(known, input, value): - if _is_array(value): - output = [] - for val in value: - output.append(_relate(known, input, val)) - return output - - if _is_object(value): - obj = {} - for key in value: - obj[key] = _relate(known, input, value[key]) - return obj - - return value - -def _wrap(value): - if _is_string(value): - return _String(value) - - if _is_array(value): - i = 0 - for val in value: - value[i] = _wrap(val) - i += 1 - - elif _is_object(value): - for key in value: - value[key] = _wrap(value[key]) - - return value - -def parse(value, *args, **kwargs): - json = _json.loads(value, *args, **kwargs) - wrapped = [] - for value in json: - wrapped.append(_wrap(value)) - - input = [] - for value in wrapped: - if isinstance(value, _String): - input.append(value.value) - else: - input.append(value) - - value = input[0] - - if _is_array(value): - return _loop(_array_keys(value), input, [value], value) - - if _is_object(value): - return _loop(_object_keys(value), input, [value], value) - - return value - - -def stringify(value, *args, **kwargs): - known = _Known() - input = [] - output = [] - i = int(_index(known, input, value)) - while i < len(input): - output.append(_transform(known, input, input[i])) - i += 1 - return _json.dumps(output, *args, **kwargs) diff --git a/graphql/node_modules/flatted/python/test.py b/graphql/node_modules/flatted/python/test.py deleted file mode 100644 index 740739e5..00000000 --- a/graphql/node_modules/flatted/python/test.py +++ /dev/null @@ -1,63 +0,0 @@ -from flatted import stringify as _stringify, parse - -def stringify(value): - return _stringify(value, separators=(',', ':')) - -assert stringify([None, None]) == '[[null,null]]' - -a = [] -o = {} - -assert stringify(a) == '[[]]' -assert stringify(o) == '[{}]' - -a.append(a) -o['o'] = o - -assert stringify(a) == '[["0"]]' -assert stringify(o) == '[{"o":"0"}]' - -b = parse(stringify(a)) -assert isinstance(b, list) and b[0] == b - -a.append(1) -a.append('two') -a.append(True) -o['one'] = 1 -o['two'] = 'two' -o['three'] = True - -assert stringify(a) == '[["0",1,"1",true],"two"]' -assert stringify(o) == '[{"o":"0","one":1,"two":"1","three":true},"two"]' - -a.append(o) -o['a'] = a - -assert stringify(a) == '[["0",1,"1",true,"2"],"two",{"o":"2","one":1,"two":"1","three":true,"a":"0"}]' -assert stringify(o) == '[{"o":"0","one":1,"two":"1","three":true,"a":"2"},"two",["2",1,"1",true,"0"]]' - -a.append({'test': 'OK'}) -a.append([1, 2, 3]) - -o['test'] = {'test': 'OK'} -o['array'] = [1, 2, 3] - -assert stringify(a) == '[["0",1,"1",true,"2","3","4"],"two",{"o":"2","one":1,"two":"1","three":true,"a":"0","test":"3","array":"4"},{"test":"5"},[1,2,3],"OK"]' -assert stringify(o) == '[{"o":"0","one":1,"two":"1","three":true,"a":"2","test":"3","array":"4"},"two",["2",1,"1",true,"0","3","4"],{"test":"5"},[1,2,3],"OK"]' - -a2 = parse(stringify(a)); -o2 = parse(stringify(o)); - -assert a2[0] == a2 -assert o2['o'] == o2 - -assert a2[1] == 1 and a2[2] == 'two' and a2[3] == True and isinstance(a2[4], dict) -assert a2[4] == a2[4]['o'] and a2 == a2[4]['o']['a'] - -str = parse('[{"prop":"1","a":"2","b":"3"},{"value":123},["4","5"],{"e":"6","t":"7","p":4},{},{"b":"8"},"f",{"a":"9"},["10"],"sup",{"a":1,"d":2,"c":"7","z":"11","h":1},{"g":2,"a":"7","b":"12","f":6},{"r":4,"u":"7","c":5}]') -assert str['b']['t']['a'] == 'sup' and str['a'][1]['b'][0]['c'] == str['b']['t'] - -oo = parse('[{"a":"1","b":"0","c":"2"},{"aa":"3"},{"ca":"4","cb":"5","cc":"6","cd":"7","ce":"8","cf":"9"},{"aaa":"10"},{"caa":"4"},{"cba":"5"},{"cca":"2"},{"cda":"4"},"value2","value3","value1"]'); -assert oo['a']['aa']['aaa'] == 'value1' and oo == oo['b'] and oo['c']['ca']['caa'] == oo['c']['ca'] - -print('OK') diff --git a/graphql/node_modules/flatted/types/index.d.ts b/graphql/node_modules/flatted/types/index.d.ts deleted file mode 100644 index 75dac338..00000000 --- a/graphql/node_modules/flatted/types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function parse(text: string, reviver?: (this: any, key: string, value: any) => any): any; -export function stringify(value: any, replacer?: (string | number)[] | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string; -export function toJSON(value: any): any; -export function fromJSON(value: any): any; diff --git a/graphql/node_modules/glob-parent/LICENSE b/graphql/node_modules/glob-parent/LICENSE deleted file mode 100644 index d701b083..00000000 --- a/graphql/node_modules/glob-parent/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz , Eric Schoffstall and other contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/glob-parent/README.md b/graphql/node_modules/glob-parent/README.md deleted file mode 100644 index 6ae18a1a..00000000 --- a/graphql/node_modules/glob-parent/README.md +++ /dev/null @@ -1,134 +0,0 @@ -

- - - -

- -# glob-parent - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url] - -Extract the non-magic parent path from a glob string. - -## Usage - -```js -var globParent = require('glob-parent'); - -globParent('path/to/*.js'); // 'path/to' -globParent('/root/path/to/*.js'); // '/root/path/to' -globParent('/*.js'); // '/' -globParent('*.js'); // '.' -globParent('**/*.js'); // '.' -globParent('path/{to,from}'); // 'path' -globParent('path/!(to|from)'); // 'path' -globParent('path/?(to|from)'); // 'path' -globParent('path/+(to|from)'); // 'path' -globParent('path/*(to|from)'); // 'path' -globParent('path/@(to|from)'); // 'path' -globParent('path/**/*'); // 'path' - -// if provided a non-glob path, returns the nearest dir -globParent('path/foo/bar.js'); // 'path/foo' -globParent('path/foo/'); // 'path/foo' -globParent('path/foo'); // 'path' (see issue #3 for details) -``` - -## API - -### `globParent(maybeGlobString, [options])` - -Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below. - -#### options - -```js -{ - // Disables the automatic conversion of slashes for Windows - flipBackslashes: true; -} -``` - -## Escaping - -The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters: - -- `?` (question mark) unless used as a path segment alone -- `*` (asterisk) -- `|` (pipe) -- `(` (opening parenthesis) -- `)` (closing parenthesis) -- `{` (opening curly brace) -- `}` (closing curly brace) -- `[` (opening bracket) -- `]` (closing bracket) - -**Example** - -```js -globParent('foo/[bar]/'); // 'foo' -globParent('foo/\\[bar]/'); // 'foo/[bar]' -``` - -## Limitations - -### Braces & Brackets - -This library attempts a quick and imperfect method of determining which path -parts have glob magic without fully parsing/lexing the pattern. There are some -advanced use cases that can trip it up, such as nested braces where the outer -pair is escaped and the inner one contains a path separator. If you find -yourself in the unlikely circumstance of being affected by this or need to -ensure higher-fidelity glob handling in your library, it is recommended that you -pre-process your input with [expand-braces] and/or [expand-brackets]. - -### Windows - -Backslashes are not valid path separators for globs. If a path with backslashes -is provided anyway, for simple cases, glob-parent will replace the path -separator for you and return the non-glob parent path (now with -forward-slashes, which are still valid as Windows path separators). - -This cannot be used in conjunction with escape characters. - -```js -// BAD -globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)' - -// GOOD -globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)' -``` - -If you are using escape characters for a pattern without path parts (i.e. -relative to `cwd`), prefix with `./` to avoid confusing glob-parent. - -```js -// BAD -globParent('foo \\[bar]'); // 'foo ' -globParent('foo \\[bar]*'); // 'foo ' - -// GOOD -globParent('./foo \\[bar]'); // 'foo [bar]' -globParent('./foo \\[bar]*'); // '.' -``` - -## License - -ISC - - -[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg?style=flat-square -[npm-url]: https://www.npmjs.com/package/glob-parent -[npm-image]: https://img.shields.io/npm/v/glob-parent.svg?style=flat-square - -[ci-url]: https://github.com/gulpjs/glob-parent/actions?query=workflow:dev -[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-parent/dev?style=flat-square - -[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent -[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg?style=flat-square - - - -[expand-braces]: https://github.com/jonschlinkert/expand-braces -[expand-brackets]: https://github.com/jonschlinkert/expand-brackets - diff --git a/graphql/node_modules/glob-parent/index.js b/graphql/node_modules/glob-parent/index.js deleted file mode 100644 index 09dde64b..00000000 --- a/graphql/node_modules/glob-parent/index.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -var isGlob = require('is-glob'); -var pathPosixDirname = require('path').posix.dirname; -var isWin32 = require('os').platform() === 'win32'; - -var slash = '/'; -var backslash = /\\/g; -var escaped = /\\([!*?|[\](){}])/g; - -/** - * @param {string} str - * @param {Object} opts - * @param {boolean} [opts.flipBackslashes=true] - */ -module.exports = function globParent(str, opts) { - var options = Object.assign({ flipBackslashes: true }, opts); - - // flip windows path separators - if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { - str = str.replace(backslash, slash); - } - - // special case for strings ending in enclosure containing path separator - if (isEnclosure(str)) { - str += slash; - } - - // preserves full path in case of trailing path separator - str += 'a'; - - // remove path parts that are globby - do { - str = pathPosixDirname(str); - } while (isGlobby(str)); - - // remove escape chars and return result - return str.replace(escaped, '$1'); -}; - -function isEnclosure(str) { - var lastChar = str.slice(-1); - - var enclosureStart; - switch (lastChar) { - case '}': - enclosureStart = '{'; - break; - case ']': - enclosureStart = '['; - break; - default: - return false; - } - - var foundIndex = str.indexOf(enclosureStart); - if (foundIndex < 0) { - return false; - } - - return str.slice(foundIndex + 1, -1).includes(slash); -} - -function isGlobby(str) { - if (/\([^()]+$/.test(str)) { - return true; - } - if (str[0] === '{' || str[0] === '[') { - return true; - } - if (/[^\\][{[]/.test(str)) { - return true; - } - return isGlob(str); -} diff --git a/graphql/node_modules/glob-parent/package.json b/graphql/node_modules/glob-parent/package.json deleted file mode 100644 index baeab421..00000000 --- a/graphql/node_modules/glob-parent/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "glob-parent", - "version": "6.0.2", - "description": "Extract the non-magic parent path from a glob string.", - "author": "Gulp Team (https://gulpjs.com/)", - "contributors": [ - "Elan Shanker (https://github.com/es128)", - "Blaine Bublitz " - ], - "repository": "gulpjs/glob-parent", - "license": "ISC", - "engines": { - "node": ">=10.13.0" - }, - "main": "index.js", - "files": [ - "LICENSE", - "index.js" - ], - "scripts": { - "lint": "eslint .", - "pretest": "npm run lint", - "test": "nyc mocha --async-only" - }, - "dependencies": { - "is-glob": "^4.0.3" - }, - "devDependencies": { - "eslint": "^7.0.0", - "eslint-config-gulp": "^5.0.0", - "expect": "^26.0.1", - "mocha": "^7.1.2", - "nyc": "^15.0.1" - }, - "nyc": { - "reporter": [ - "lcov", - "text-summary" - ] - }, - "prettier": { - "singleQuote": true - }, - "keywords": [ - "glob", - "parent", - "strip", - "path", - "dirname", - "directory", - "base", - "wildcard" - ] -} diff --git a/graphql/node_modules/globals/globals.json b/graphql/node_modules/globals/globals.json deleted file mode 100644 index 05b9b39a..00000000 --- a/graphql/node_modules/globals/globals.json +++ /dev/null @@ -1,2933 +0,0 @@ -{ - "amd": { - "define": false, - "require": false - }, - "applescript": { - "$": false, - "Application": false, - "Automation": false, - "console": false, - "delay": false, - "Library": false, - "ObjC": false, - "ObjectSpecifier": false, - "Path": false, - "Progress": false, - "Ref": false - }, - "atomtest": { - "advanceClock": false, - "atom": false, - "fakeClearInterval": false, - "fakeClearTimeout": false, - "fakeSetInterval": false, - "fakeSetTimeout": false, - "resetTimeouts": false, - "waitsForPromise": false - }, - "browser": { - "AbortController": false, - "AbortSignal": false, - "AbsoluteOrientationSensor": false, - "AbstractRange": false, - "Accelerometer": false, - "addEventListener": false, - "ai": false, - "AI": false, - "AITextSession": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffect": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioData": false, - "AudioDecoder": false, - "AudioDestinationNode": false, - "AudioEncoder": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioParamMap": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioSinkInfo": false, - "AudioWorklet": false, - "AudioWorkletGlobalScope": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "AuthenticatorAssertionResponse": false, - "AuthenticatorAttestationResponse": false, - "AuthenticatorResponse": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "Bluetooth": false, - "BluetoothCharacteristicProperties": false, - "BluetoothDevice": false, - "BluetoothRemoteGATTCharacteristic": false, - "BluetoothRemoteGATTDescriptor": false, - "BluetoothRemoteGATTServer": false, - "BluetoothRemoteGATTService": false, - "BluetoothUUID": false, - "blur": false, - "BroadcastChannel": false, - "BrowserCaptureMediaStreamTrack": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStream": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "CaptureController": false, - "CaretPosition": false, - "CDATASection": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "ChapterInformation": false, - "CharacterBoundsUpdateEvent": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "Clipboard": false, - "ClipboardEvent": false, - "ClipboardItem": false, - "close": false, - "closed": false, - "CloseEvent": false, - "CloseWatcher": false, - "Comment": false, - "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ContentVisibilityAutoStateChangeEvent": false, - "ConvolverNode": false, - "CookieChangeEvent": false, - "CookieDeprecationLabel": false, - "cookieStore": false, - "CookieStore": false, - "CookieStoreManager": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "Credential": false, - "credentialless": false, - "CredentialsContainer": false, - "CropTarget": false, - "crossOriginIsolated": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSS": false, - "CSSAnimation": false, - "CSSConditionRule": false, - "CSSContainerRule": false, - "CSSCounterStyleRule": false, - "CSSFontFaceRule": false, - "CSSFontFeatureValuesRule": false, - "CSSFontPaletteValuesRule": false, - "CSSGroupingRule": false, - "CSSImageValue": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSKeywordValue": false, - "CSSLayerBlockRule": false, - "CSSLayerStatementRule": false, - "CSSMathClamp": false, - "CSSMathInvert": false, - "CSSMathMax": false, - "CSSMathMin": false, - "CSSMathNegate": false, - "CSSMathProduct": false, - "CSSMathSum": false, - "CSSMathValue": false, - "CSSMatrixComponent": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSNumericArray": false, - "CSSNumericValue": false, - "CSSPageDescriptors": false, - "CSSPageRule": false, - "CSSPerspective": false, - "CSSPositionTryDescriptors": false, - "CSSPositionTryRule": false, - "CSSPositionValue": false, - "CSSPropertyRule": false, - "CSSRotate": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSScale": false, - "CSSScopeRule": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CSSStartingStyleRule": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSStyleValue": false, - "CSSSupportsRule": false, - "CSSTransformComponent": false, - "CSSTransformValue": false, - "CSSTransition": false, - "CSSTranslate": false, - "CSSUnitValue": false, - "CSSUnparsedValue": false, - "CSSVariableReferenceValue": false, - "CSSViewTransitionRule": false, - "currentFrame": false, - "currentTime": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "CustomStateSet": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DecompressionStream": false, - "DelayNode": false, - "DelegatedInkTrailPresenter": false, - "DeviceMotionEvent": false, - "DeviceMotionEventAcceleration": false, - "DeviceMotionEventRotationRate": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "dispatchEvent": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "documentPictureInPicture": false, - "DocumentPictureInPicture": false, - "DocumentPictureInPictureEvent": false, - "DocumentTimeline": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "EditContext": false, - "Element": false, - "ElementInternals": false, - "EncodedAudioChunk": false, - "EncodedVideoChunk": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventCounts": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "External": false, - "EyeDropper": false, - "FeaturePolicy": false, - "FederatedCredential": false, - "fence": false, - "Fence": false, - "FencedFrameConfig": false, - "fetch": false, - "fetchLater": false, - "FetchLaterResult": false, - "File": false, - "FileList": false, - "FileReader": false, - "FileSystem": false, - "FileSystemDirectoryEntry": false, - "FileSystemDirectoryHandle": false, - "FileSystemDirectoryReader": false, - "FileSystemEntry": false, - "FileSystemFileEntry": false, - "FileSystemFileHandle": false, - "FileSystemHandle": false, - "FileSystemWritableFileStream": false, - "find": false, - "Float16Array": false, - "focus": false, - "FocusEvent": false, - "FontData": false, - "FontFace": false, - "FontFaceSet": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "FormDataEvent": false, - "FragmentDirective": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadAxisMoveEvent": false, - "GamepadButton": false, - "GamepadButtonEvent": false, - "GamepadEvent": false, - "GamepadHapticActuator": false, - "GamepadPose": false, - "Geolocation": false, - "GeolocationCoordinates": false, - "GeolocationPosition": false, - "GeolocationPositionError": false, - "getComputedStyle": false, - "getScreenDetails": false, - "getSelection": false, - "GPU": false, - "GPUAdapter": false, - "GPUAdapterInfo": false, - "GPUBindGroup": false, - "GPUBindGroupLayout": false, - "GPUBuffer": false, - "GPUBufferUsage": false, - "GPUCanvasContext": false, - "GPUColorWrite": false, - "GPUCommandBuffer": false, - "GPUCommandEncoder": false, - "GPUCompilationInfo": false, - "GPUCompilationMessage": false, - "GPUComputePassEncoder": false, - "GPUComputePipeline": false, - "GPUDevice": false, - "GPUDeviceLostInfo": false, - "GPUError": false, - "GPUExternalTexture": false, - "GPUInternalError": false, - "GPUMapMode": false, - "GPUOutOfMemoryError": false, - "GPUPipelineError": false, - "GPUPipelineLayout": false, - "GPUQuerySet": false, - "GPUQueue": false, - "GPURenderBundle": false, - "GPURenderBundleEncoder": false, - "GPURenderPassEncoder": false, - "GPURenderPipeline": false, - "GPUSampler": false, - "GPUShaderModule": false, - "GPUShaderStage": false, - "GPUSupportedFeatures": false, - "GPUSupportedLimits": false, - "GPUTexture": false, - "GPUTextureUsage": false, - "GPUTextureView": false, - "GPUUncapturedErrorEvent": false, - "GPUValidationError": false, - "GravitySensor": false, - "Gyroscope": false, - "HashChangeEvent": false, - "Headers": false, - "HID": false, - "HIDConnectionEvent": false, - "HIDDevice": false, - "HIDInputReportEvent": false, - "Highlight": false, - "HighlightRegistry": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFencedFrameElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdentityCredential": false, - "IdentityCredentialError": false, - "IdentityProvider": false, - "IdleDeadline": false, - "IdleDetector": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "ImageDecoder": false, - "ImageTrack": false, - "ImageTrackList": false, - "indexedDB": false, - "Ink": false, - "innerHeight": false, - "innerWidth": false, - "InputDeviceCapabilities": false, - "InputDeviceInfo": false, - "InputEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "isSecureContext": false, - "Iterator": false, - "Keyboard": false, - "KeyboardEvent": false, - "KeyboardLayoutMap": false, - "KeyframeEffect": false, - "LargestContentfulPaint": false, - "LaunchParams": false, - "launchQueue": false, - "LaunchQueue": false, - "LayoutShift": false, - "LayoutShiftAttribution": false, - "length": false, - "LinearAccelerationSensor": false, - "localStorage": false, - "location": true, - "Location": false, - "locationbar": false, - "Lock": false, - "LockManager": false, - "matchMedia": false, - "MathMLElement": false, - "MediaCapabilities": false, - "MediaCapabilitiesInfo": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyError": false, - "MediaKeyMessageEvent": false, - "MediaKeys": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaRecorderErrorEvent": false, - "MediaSession": false, - "MediaSource": false, - "MediaSourceHandle": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackAudioSourceNode": false, - "MediaStreamTrackAudioStats": false, - "MediaStreamTrackEvent": false, - "MediaStreamTrackGenerator": false, - "MediaStreamTrackProcessor": false, - "MediaStreamTrackVideoStats": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "model": false, - "ModelGenericSession": false, - "ModelManager": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigateEvent": false, - "navigation": false, - "Navigation": false, - "NavigationActivation": false, - "NavigationCurrentEntryChangeEvent": false, - "NavigationDestination": false, - "NavigationHistoryEntry": false, - "NavigationPreloadManager": false, - "NavigationTransition": false, - "navigator": false, - "Navigator": false, - "NavigatorLogin": false, - "NavigatorManagedData": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "NotifyPaintEvent": false, - "NotRestoredReasonDetails": false, - "NotRestoredReasons": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationcancel": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinput": true, - "onbeforeinstallprompt": true, - "onbeforematch": true, - "onbeforeprint": true, - "onbeforetoggle": true, - "onbeforeunload": true, - "onbeforexrselect": true, - "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncontentvisibilityautostatechange": true, - "oncontextlost": true, - "oncontextmenu": true, - "oncontextrestored": true, - "oncopy": true, - "oncuechange": true, - "oncut": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "onerror": true, - "onfocus": true, - "onformdata": true, - "ongamepadconnected": true, - "ongamepaddisconnected": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpagereveal": true, - "onpageshow": true, - "onpageswap": true, - "onpaste": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerrawupdate": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onscrollend": true, - "onsearch": true, - "onsecuritypolicyviolation": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onselectionchange": true, - "onselectstart": true, - "onslotchange": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitioncancel": true, - "ontransitionend": true, - "ontransitionrun": true, - "ontransitionstart": true, - "onunhandledrejection": true, - "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwheel": true, - "open": false, - "opener": false, - "Option": false, - "OrientationSensor": false, - "origin": false, - "originAgentCluster": false, - "OscillatorNode": false, - "OTPCredential": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageRevealEvent": false, - "PageSwapEvent": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "PasswordCredential": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentManager": false, - "PaymentMethodChangeEvent": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceElementTiming": false, - "PerformanceEntry": false, - "PerformanceEventTiming": false, - "PerformanceLongAnimationFrameTiming": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceScriptTiming": false, - "PerformanceServerTiming": false, - "PerformanceTiming": false, - "PeriodicSyncManager": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "PERSISTENT": false, - "personalbar": false, - "PictureInPictureEvent": false, - "PictureInPictureWindow": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "PressureObserver": false, - "PressureRecord": false, - "print": false, - "ProcessingInstruction": false, - "Profiler": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "ProtectedAudience": false, - "PublicKeyCredential": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queryLocalFonts": false, - "queueMicrotask": false, - "RadioNodeList": false, - "Range": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registerProcessor": false, - "RelativeOrientationSensor": false, - "RemotePlayback": false, - "removeEventListener": false, - "reportError": false, - "ReportingObserver": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "ResizeObserverSize": false, - "resizeTo": false, - "Response": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCDTMFSender": false, - "RTCDTMFToneChangeEvent": false, - "RTCEncodedAudioFrame": false, - "RTCEncodedVideoFrame": false, - "RTCError": false, - "RTCErrorEvent": false, - "RTCIceCandidate": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceErrorEvent": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpReceiver": false, - "RTCRtpScriptTransform": false, - "RTCRtpSender": false, - "RTCRtpTransceiver": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "sampleRate": false, - "scheduler": false, - "Scheduler": false, - "Scheduling": false, - "screen": false, - "Screen": false, - "ScreenDetailed": false, - "ScreenDetails": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "ScrollTimeline": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "Sensor": false, - "SensorErrorEvent": false, - "Serial": false, - "SerialPort": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "sharedStorage": false, - "SharedStorage": false, - "SharedStorageWorklet": false, - "SharedWorker": false, - "showDirectoryPicker": false, - "showOpenFilePicker": false, - "showSaveFilePicker": false, - "SourceBuffer": false, - "SourceBufferList": false, - "speechSynthesis": false, - "SpeechSynthesis": false, - "SpeechSynthesisErrorEvent": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "SpeechSynthesisVoice": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageBucket": false, - "StorageBucketManager": false, - "StorageEvent": false, - "StorageManager": false, - "structuredClone": false, - "styleMedia": false, - "StylePropertyMap": false, - "StylePropertyMapReadOnly": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "SubtleCrypto": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "SyncManager": false, - "TaskAttributionTiming": false, - "TaskController": false, - "TaskPriorityChangeEvent": false, - "TaskSignal": false, - "TEMPORARY": false, - "Text": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextFormat": false, - "TextFormatUpdateEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TextUpdateEvent": false, - "TimeEvent": false, - "TimeRanges": false, - "ToggleEvent": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TransitionEvent": false, - "TreeWalker": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "UIEvent": false, - "URL": false, - "URLPattern": false, - "URLSearchParams": false, - "USB": false, - "USBAlternateInterface": false, - "USBConfiguration": false, - "USBConnectionEvent": false, - "USBDevice": false, - "USBEndpoint": false, - "USBInterface": false, - "USBInTransferResult": false, - "USBIsochronousInTransferPacket": false, - "USBIsochronousInTransferResult": false, - "USBIsochronousOutTransferPacket": false, - "USBIsochronousOutTransferResult": false, - "USBOutTransferResult": false, - "UserActivation": false, - "ValidityState": false, - "VideoColorSpace": false, - "VideoDecoder": false, - "VideoEncoder": false, - "VideoFrame": false, - "VideoPlaybackQuality": false, - "ViewTimeline": false, - "ViewTransition": false, - "ViewTransitionTypeSet": false, - "VirtualKeyboard": false, - "VirtualKeyboardGeometryChangeEvent": false, - "VisibilityStateEntry": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "VTTRegion": false, - "WakeLock": false, - "WakeLockSentinel": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLObject": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WebSocketError": false, - "WebSocketStream": false, - "WebTransport": false, - "WebTransportBidirectionalStream": false, - "WebTransportDatagramDuplexStream": false, - "WebTransportError": false, - "WebTransportReceiveStream": false, - "WebTransportSendStream": false, - "WGSLLanguageFeatures": false, - "WheelEvent": false, - "window": false, - "Window": false, - "WindowControlsOverlay": false, - "WindowControlsOverlayGeometryChangeEvent": false, - "Worker": false, - "Worklet": false, - "WorkletGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XRAnchor": false, - "XRAnchorSet": false, - "XRBoundedReferenceSpace": false, - "XRCamera": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRDOMOverlayState": false, - "XRFrame": false, - "XRHitTestResult": false, - "XRHitTestSource": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRLayer": false, - "XRLightEstimate": false, - "XRLightProbe": false, - "XRPose": false, - "XRRay": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRTransientInputHitTestResult": false, - "XRTransientInputHitTestSource": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, - "XSLTProcessor": false - }, - "builtin": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "chai": { - "assert": true, - "expect": true, - "should": true - }, - "commonjs": { - "exports": true, - "global": false, - "module": false, - "require": false - }, - "couch": { - "emit": false, - "exports": false, - "getRow": false, - "log": false, - "module": false, - "provides": false, - "require": false, - "respond": false, - "send": false, - "start": false, - "sum": false - }, - "devtools": { - "$": false, - "$_": false, - "$$": false, - "$0": false, - "$1": false, - "$2": false, - "$3": false, - "$4": false, - "$x": false, - "chrome": false, - "clear": false, - "copy": false, - "debug": false, - "dir": false, - "dirxml": false, - "getEventListeners": false, - "inspect": false, - "keys": false, - "monitor": false, - "monitorEvents": false, - "profile": false, - "profileEnd": false, - "queryObjects": false, - "table": false, - "undebug": false, - "unmonitor": false, - "unmonitorEvents": false, - "values": false - }, - "embertest": { - "andThen": false, - "click": false, - "currentPath": false, - "currentRouteName": false, - "currentURL": false, - "fillIn": false, - "find": false, - "findAll": false, - "findWithAssert": false, - "keyEvent": false, - "pauseTest": false, - "resumeTest": false, - "triggerEvent": false, - "visit": false, - "wait": false - }, - "es2015": { - "Array": false, - "ArrayBuffer": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2016": { - "Array": false, - "ArrayBuffer": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2017": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2018": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2019": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2020": { - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakSet": false - }, - "es2021": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es2022": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es2023": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es2024": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es2025": { - "AggregateError": false, - "Array": false, - "ArrayBuffer": false, - "Atomics": false, - "BigInt": false, - "BigInt64Array": false, - "BigUint64Array": false, - "Boolean": false, - "DataView": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "FinalizationRegistry": false, - "Float32Array": false, - "Float64Array": false, - "Function": false, - "globalThis": false, - "Infinity": false, - "Int16Array": false, - "Int32Array": false, - "Int8Array": false, - "Intl": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Map": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "Promise": false, - "Proxy": false, - "RangeError": false, - "ReferenceError": false, - "Reflect": false, - "RegExp": false, - "Set": false, - "SharedArrayBuffer": false, - "String": false, - "Symbol": false, - "SyntaxError": false, - "TypeError": false, - "Uint16Array": false, - "Uint32Array": false, - "Uint8Array": false, - "Uint8ClampedArray": false, - "undefined": false, - "unescape": false, - "URIError": false, - "WeakMap": false, - "WeakRef": false, - "WeakSet": false - }, - "es5": { - "Array": false, - "Boolean": false, - "Date": false, - "decodeURI": false, - "decodeURIComponent": false, - "encodeURI": false, - "encodeURIComponent": false, - "Error": false, - "escape": false, - "eval": false, - "EvalError": false, - "Function": false, - "Infinity": false, - "isFinite": false, - "isNaN": false, - "JSON": false, - "Math": false, - "NaN": false, - "Number": false, - "Object": false, - "parseFloat": false, - "parseInt": false, - "RangeError": false, - "ReferenceError": false, - "RegExp": false, - "String": false, - "SyntaxError": false, - "TypeError": false, - "undefined": false, - "unescape": false, - "URIError": false - }, - "greasemonkey": { - "cloneInto": false, - "createObjectIn": false, - "exportFunction": false, - "GM": false, - "GM_addElement": false, - "GM_addStyle": false, - "GM_addValueChangeListener": false, - "GM_deleteValue": false, - "GM_download": false, - "GM_getResourceText": false, - "GM_getResourceURL": false, - "GM_getTab": false, - "GM_getTabs": false, - "GM_getValue": false, - "GM_info": false, - "GM_listValues": false, - "GM_log": false, - "GM_notification": false, - "GM_openInTab": false, - "GM_registerMenuCommand": false, - "GM_removeValueChangeListener": false, - "GM_saveTab": false, - "GM_setClipboard": false, - "GM_setValue": false, - "GM_unregisterMenuCommand": false, - "GM_xmlhttpRequest": false, - "unsafeWindow": false - }, - "jasmine": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "expectAsync": false, - "fail": false, - "fdescribe": false, - "fit": false, - "it": false, - "jasmine": false, - "pending": false, - "runs": false, - "spyOn": false, - "spyOnAllFunctions": false, - "spyOnProperty": false, - "waits": false, - "waitsFor": false, - "xdescribe": false, - "xit": false - }, - "jest": { - "afterAll": false, - "afterEach": false, - "beforeAll": false, - "beforeEach": false, - "describe": false, - "expect": false, - "fit": false, - "it": false, - "jest": false, - "test": false, - "xdescribe": false, - "xit": false, - "xtest": false - }, - "jquery": { - "$": false, - "jQuery": false - }, - "meteor": { - "$": false, - "Accounts": false, - "AccountsClient": false, - "AccountsCommon": false, - "AccountsServer": false, - "App": false, - "Assets": false, - "Blaze": false, - "check": false, - "Cordova": false, - "DDP": false, - "DDPRateLimiter": false, - "DDPServer": false, - "Deps": false, - "EJSON": false, - "Email": false, - "HTTP": false, - "Log": false, - "Match": false, - "Meteor": false, - "Mongo": false, - "MongoInternals": false, - "Npm": false, - "Package": false, - "Plugin": false, - "process": false, - "Random": false, - "ReactiveDict": false, - "ReactiveVar": false, - "Router": false, - "ServiceConfiguration": false, - "Session": false, - "share": false, - "Spacebars": false, - "Template": false, - "Tinytest": false, - "Tracker": false, - "UI": false, - "Utils": false, - "WebApp": false, - "WebAppInternals": false - }, - "mocha": { - "after": false, - "afterEach": false, - "before": false, - "beforeEach": false, - "context": false, - "describe": false, - "it": false, - "mocha": false, - "run": false, - "setup": false, - "specify": false, - "suite": false, - "suiteSetup": false, - "suiteTeardown": false, - "teardown": false, - "test": false, - "xcontext": false, - "xdescribe": false, - "xit": false, - "xspecify": false - }, - "mongo": { - "_isWindows": false, - "_rand": false, - "BulkWriteResult": false, - "cat": false, - "cd": false, - "connect": false, - "db": false, - "getHostName": false, - "getMemInfo": false, - "hostname": false, - "ISODate": false, - "listFiles": false, - "load": false, - "ls": false, - "md5sumFile": false, - "mkdir": false, - "Mongo": false, - "NumberInt": false, - "NumberLong": false, - "ObjectId": false, - "PlanCache": false, - "print": false, - "printjson": false, - "pwd": false, - "quit": false, - "removeFile": false, - "rs": false, - "sh": false, - "UUID": false, - "version": false, - "WriteResult": false - }, - "nashorn": { - "__DIR__": false, - "__FILE__": false, - "__LINE__": false, - "com": false, - "edu": false, - "exit": false, - "java": false, - "Java": false, - "javafx": false, - "JavaImporter": false, - "javax": false, - "JSAdapter": false, - "load": false, - "loadWithNewGlobal": false, - "org": false, - "Packages": false, - "print": false, - "quit": false - }, - "node": { - "__dirname": false, - "__filename": false, - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "exports": true, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Iterator": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "module": false, - "navigator": false, - "Navigator": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "require": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "nodeBuiltin": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "Buffer": false, - "ByteLengthQueuingStrategy": false, - "clearImmediate": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "global": false, - "Headers": false, - "Iterator": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "navigator": false, - "Navigator": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "process": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setImmediate": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "phantomjs": { - "console": true, - "exports": true, - "phantom": true, - "require": true, - "WebPage": true - }, - "prototypejs": { - "$": false, - "$$": false, - "$A": false, - "$break": false, - "$continue": false, - "$F": false, - "$H": false, - "$R": false, - "$w": false, - "Abstract": false, - "Ajax": false, - "Autocompleter": false, - "Builder": false, - "Class": false, - "Control": false, - "Draggable": false, - "Draggables": false, - "Droppables": false, - "Effect": false, - "Element": false, - "Enumerable": false, - "Event": false, - "Field": false, - "Form": false, - "Hash": false, - "Insertion": false, - "ObjectRange": false, - "PeriodicalExecuter": false, - "Position": false, - "Prototype": false, - "Scriptaculous": false, - "Selector": false, - "Sortable": false, - "SortableObserver": false, - "Sound": false, - "Template": false, - "Toggle": false, - "Try": false - }, - "protractor": { - "$": false, - "$$": false, - "browser": false, - "by": false, - "By": false, - "DartObject": false, - "element": false, - "protractor": false - }, - "qunit": { - "asyncTest": false, - "deepEqual": false, - "equal": false, - "expect": false, - "module": false, - "notDeepEqual": false, - "notEqual": false, - "notOk": false, - "notPropEqual": false, - "notStrictEqual": false, - "ok": false, - "propEqual": false, - "QUnit": false, - "raises": false, - "start": false, - "stop": false, - "strictEqual": false, - "test": false, - "throws": false - }, - "rhino": { - "defineClass": false, - "deserialize": false, - "gc": false, - "help": false, - "importClass": false, - "importPackage": false, - "java": false, - "load": false, - "loadClass": false, - "Packages": false, - "print": false, - "quit": false, - "readFile": false, - "readUrl": false, - "runCommand": false, - "seal": false, - "serialize": false, - "spawn": false, - "sync": false, - "toint32": false, - "version": false - }, - "serviceworker": { - "addEventListener": false, - "applicationCache": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "clearInterval": false, - "clearTimeout": false, - "Client": false, - "clients": false, - "Clients": false, - "close": true, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "ErrorEvent": false, - "Event": false, - "ExtendableEvent": false, - "ExtendableMessageEvent": false, - "fetch": false, - "FetchEvent": false, - "File": false, - "FileReaderSync": false, - "FormData": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "ImageData": false, - "importScripts": false, - "indexedDB": false, - "location": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "navigator": false, - "Notification": false, - "onclose": true, - "onconnect": true, - "onerror": true, - "onfetch": true, - "oninstall": true, - "onlanguagechange": true, - "onmessage": true, - "onmessageerror": true, - "onnotificationclick": true, - "onnotificationclose": true, - "onoffline": true, - "ononline": true, - "onpush": true, - "onpushsubscriptionchange": true, - "onrejectionhandled": true, - "onsync": true, - "onunhandledrejection": true, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceTiming": false, - "postMessage": true, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registration": false, - "removeEventListener": false, - "Request": false, - "Response": false, - "self": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerGlobalScope": false, - "ServiceWorkerMessageEvent": false, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "skipWaiting": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WindowClient": false, - "Worker": false, - "WorkerGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false - }, - "shared-node-browser": { - "AbortController": false, - "AbortSignal": false, - "atob": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "clearInterval": false, - "clearTimeout": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CustomEvent": false, - "DecompressionStream": false, - "DOMException": false, - "Event": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FormData": false, - "Headers": false, - "Iterator": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "navigator": false, - "Navigator": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "Request": false, - "Response": false, - "setInterval": false, - "setTimeout": false, - "structuredClone": false, - "SubtleCrypto": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "URL": false, - "URLSearchParams": false, - "WebAssembly": false, - "WebSocket": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false - }, - "shelljs": { - "cat": false, - "cd": false, - "chmod": false, - "config": false, - "cp": false, - "dirs": false, - "echo": false, - "env": false, - "error": false, - "exec": false, - "exit": false, - "find": false, - "grep": false, - "head": false, - "ln": false, - "ls": false, - "mkdir": false, - "mv": false, - "popd": false, - "pushd": false, - "pwd": false, - "rm": false, - "sed": false, - "set": false, - "ShellString": false, - "sort": false, - "tail": false, - "tempdir": false, - "test": false, - "touch": false, - "uniq": false, - "which": false - }, - "webextensions": { - "browser": false, - "chrome": false, - "opr": false - }, - "worker": { - "AbortController": false, - "AbortSignal": false, - "addEventListener": false, - "ai": false, - "atob": false, - "AudioData": false, - "AudioDecoder": false, - "AudioEncoder": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "Blob": false, - "BroadcastChannel": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "CanvasGradient": false, - "CanvasPattern": false, - "clearInterval": false, - "clearTimeout": false, - "close": false, - "CloseEvent": false, - "CompressionStream": false, - "console": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "CropTarget": false, - "crossOriginIsolated": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CustomEvent": false, - "DecompressionStream": false, - "DedicatedWorkerGlobalScope": false, - "dispatchEvent": false, - "DOMException": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "EncodedAudioChunk": false, - "EncodedVideoChunk": false, - "ErrorEvent": false, - "Event": false, - "EventSource": false, - "EventTarget": false, - "fetch": false, - "File": false, - "FileList": false, - "FileReader": false, - "FileReaderSync": false, - "FileSystemDirectoryHandle": false, - "FileSystemFileHandle": false, - "FileSystemHandle": false, - "FileSystemSyncAccessHandle": false, - "FileSystemWritableFileStream": false, - "FontFace": false, - "fonts": false, - "FormData": false, - "GPU": false, - "GPUAdapter": false, - "GPUAdapterInfo": false, - "GPUBindGroup": false, - "GPUBindGroupLayout": false, - "GPUBuffer": false, - "GPUBufferUsage": false, - "GPUCanvasContext": false, - "GPUColorWrite": false, - "GPUCommandBuffer": false, - "GPUCommandEncoder": false, - "GPUCompilationInfo": false, - "GPUCompilationMessage": false, - "GPUComputePassEncoder": false, - "GPUComputePipeline": false, - "GPUDevice": false, - "GPUDeviceLostInfo": false, - "GPUError": false, - "GPUExternalTexture": false, - "GPUInternalError": false, - "GPUMapMode": false, - "GPUOutOfMemoryError": false, - "GPUPipelineError": false, - "GPUPipelineLayout": false, - "GPUQuerySet": false, - "GPUQueue": false, - "GPURenderBundle": false, - "GPURenderBundleEncoder": false, - "GPURenderPassEncoder": false, - "GPURenderPipeline": false, - "GPUSampler": false, - "GPUShaderModule": false, - "GPUShaderStage": false, - "GPUSupportedFeatures": false, - "GPUSupportedLimits": false, - "GPUTexture": false, - "GPUTextureUsage": false, - "GPUTextureView": false, - "GPUUncapturedErrorEvent": false, - "GPUValidationError": false, - "Headers": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdleDetector": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageData": false, - "ImageDecoder": false, - "ImageTrack": false, - "ImageTrackList": false, - "importScripts": false, - "indexedDB": false, - "isSecureContext": false, - "Iterator": false, - "location": false, - "Lock": false, - "LockManager": false, - "MediaCapabilities": false, - "MediaSource": false, - "MediaSourceHandle": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "name": false, - "NavigationPreloadManager": false, - "navigator": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Notification": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onerror": true, - "onlanguagechange": true, - "onmessage": true, - "onmessageerror": true, - "onrejectionhandled": true, - "onunhandledrejection": true, - "origin": false, - "Path2D": false, - "performance": false, - "Performance": false, - "PerformanceEntry": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformanceResourceTiming": false, - "PerformanceServerTiming": false, - "PeriodicSyncManager": false, - "Permissions": false, - "PermissionStatus": false, - "PERSISTENT": false, - "postMessage": false, - "PressureObserver": false, - "PressureRecord": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queueMicrotask": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "removeEventListener": false, - "reportError": false, - "ReportingObserver": false, - "Request": false, - "requestAnimationFrame": false, - "Response": false, - "RTCEncodedAudioFrame": false, - "RTCEncodedVideoFrame": false, - "scheduler": false, - "Scheduler": false, - "SecurityPolicyViolationEvent": false, - "self": false, - "Serial": false, - "SerialPort": false, - "ServiceWorkerRegistration": false, - "setInterval": false, - "setTimeout": false, - "SourceBuffer": false, - "SourceBufferList": false, - "StorageBucket": false, - "StorageBucketManager": false, - "StorageManager": false, - "structuredClone": false, - "SubtleCrypto": false, - "SyncManager": false, - "TaskController": false, - "TaskPriorityChangeEvent": false, - "TaskSignal": false, - "TEMPORARY": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextMetrics": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "URL": false, - "URLPattern": false, - "URLSearchParams": false, - "USB": false, - "USBAlternateInterface": false, - "USBConfiguration": false, - "USBConnectionEvent": false, - "USBDevice": false, - "USBEndpoint": false, - "USBInterface": false, - "USBInTransferResult": false, - "USBIsochronousInTransferPacket": false, - "USBIsochronousInTransferResult": false, - "USBIsochronousOutTransferPacket": false, - "USBIsochronousOutTransferResult": false, - "USBOutTransferResult": false, - "UserActivation": false, - "VideoColorSpace": false, - "VideoDecoder": false, - "VideoEncoder": false, - "VideoFrame": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLObject": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "webkitRequestFileSystem": false, - "webkitRequestFileSystemSync": false, - "webkitResolveLocalFileSystemSyncURL": false, - "webkitResolveLocalFileSystemURL": false, - "WebSocket": false, - "WebSocketError": false, - "WebSocketStream": false, - "WebTransport": false, - "WebTransportBidirectionalStream": false, - "WebTransportDatagramDuplexStream": false, - "WebTransportError": false, - "WGSLLanguageFeatures": false, - "Worker": false, - "WorkerGlobalScope": false, - "WorkerLocation": false, - "WorkerNavigator": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false - }, - "wsh": { - "ActiveXObject": false, - "CollectGarbage": false, - "Debug": false, - "Enumerator": false, - "GetObject": false, - "RuntimeObject": false, - "ScriptEngine": false, - "ScriptEngineBuildVersion": false, - "ScriptEngineMajorVersion": false, - "ScriptEngineMinorVersion": false, - "VBArray": false, - "WScript": false, - "WSH": false - }, - "yui": { - "YAHOO": false, - "YAHOO_config": false, - "YUI": false, - "YUI_config": false - } -} diff --git a/graphql/node_modules/globals/index.d.ts b/graphql/node_modules/globals/index.d.ts deleted file mode 100644 index e68b2bb5..00000000 --- a/graphql/node_modules/globals/index.d.ts +++ /dev/null @@ -1,3028 +0,0 @@ -// This file is autogenerated by scripts/generate-types.mjs -// Do NOT modify this file manually - -type GlobalsAmd = { - readonly 'define': false; - readonly 'require': false; -} - -type GlobalsApplescript = { - readonly '$': false; - readonly 'Application': false; - readonly 'Automation': false; - readonly 'console': false; - readonly 'delay': false; - readonly 'Library': false; - readonly 'ObjC': false; - readonly 'ObjectSpecifier': false; - readonly 'Path': false; - readonly 'Progress': false; - readonly 'Ref': false; -} - -type GlobalsAtomtest = { - readonly 'advanceClock': false; - readonly 'atom': false; - readonly 'fakeClearInterval': false; - readonly 'fakeClearTimeout': false; - readonly 'fakeSetInterval': false; - readonly 'fakeSetTimeout': false; - readonly 'resetTimeouts': false; - readonly 'waitsForPromise': false; -} - -type GlobalsBrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'AbsoluteOrientationSensor': false; - readonly 'AbstractRange': false; - readonly 'Accelerometer': false; - readonly 'addEventListener': false; - readonly 'ai': false; - readonly 'AI': false; - readonly 'AITextSession': false; - readonly 'alert': false; - readonly 'AnalyserNode': false; - readonly 'Animation': false; - readonly 'AnimationEffect': false; - readonly 'AnimationEvent': false; - readonly 'AnimationPlaybackEvent': false; - readonly 'AnimationTimeline': false; - readonly 'atob': false; - readonly 'Attr': false; - readonly 'Audio': false; - readonly 'AudioBuffer': false; - readonly 'AudioBufferSourceNode': false; - readonly 'AudioContext': false; - readonly 'AudioData': false; - readonly 'AudioDecoder': false; - readonly 'AudioDestinationNode': false; - readonly 'AudioEncoder': false; - readonly 'AudioListener': false; - readonly 'AudioNode': false; - readonly 'AudioParam': false; - readonly 'AudioParamMap': false; - readonly 'AudioProcessingEvent': false; - readonly 'AudioScheduledSourceNode': false; - readonly 'AudioSinkInfo': false; - readonly 'AudioWorklet': false; - readonly 'AudioWorkletGlobalScope': false; - readonly 'AudioWorkletNode': false; - readonly 'AudioWorkletProcessor': false; - readonly 'AuthenticatorAssertionResponse': false; - readonly 'AuthenticatorAttestationResponse': false; - readonly 'AuthenticatorResponse': false; - readonly 'BackgroundFetchManager': false; - readonly 'BackgroundFetchRecord': false; - readonly 'BackgroundFetchRegistration': false; - readonly 'BarProp': false; - readonly 'BaseAudioContext': false; - readonly 'BatteryManager': false; - readonly 'BeforeUnloadEvent': false; - readonly 'BiquadFilterNode': false; - readonly 'Blob': false; - readonly 'BlobEvent': false; - readonly 'Bluetooth': false; - readonly 'BluetoothCharacteristicProperties': false; - readonly 'BluetoothDevice': false; - readonly 'BluetoothRemoteGATTCharacteristic': false; - readonly 'BluetoothRemoteGATTDescriptor': false; - readonly 'BluetoothRemoteGATTServer': false; - readonly 'BluetoothRemoteGATTService': false; - readonly 'BluetoothUUID': false; - readonly 'blur': false; - readonly 'BroadcastChannel': false; - readonly 'BrowserCaptureMediaStreamTrack': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'cancelAnimationFrame': false; - readonly 'cancelIdleCallback': false; - readonly 'CanvasCaptureMediaStream': false; - readonly 'CanvasCaptureMediaStreamTrack': false; - readonly 'CanvasGradient': false; - readonly 'CanvasPattern': false; - readonly 'CanvasRenderingContext2D': false; - readonly 'CaptureController': false; - readonly 'CaretPosition': false; - readonly 'CDATASection': false; - readonly 'ChannelMergerNode': false; - readonly 'ChannelSplitterNode': false; - readonly 'ChapterInformation': false; - readonly 'CharacterBoundsUpdateEvent': false; - readonly 'CharacterData': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'clientInformation': false; - readonly 'Clipboard': false; - readonly 'ClipboardEvent': false; - readonly 'ClipboardItem': false; - readonly 'close': false; - readonly 'closed': false; - readonly 'CloseEvent': false; - readonly 'CloseWatcher': false; - readonly 'Comment': false; - readonly 'CompositionEvent': false; - readonly 'CompressionStream': false; - readonly 'confirm': false; - readonly 'console': false; - readonly 'ConstantSourceNode': false; - readonly 'ContentVisibilityAutoStateChangeEvent': false; - readonly 'ConvolverNode': false; - readonly 'CookieChangeEvent': false; - readonly 'CookieDeprecationLabel': false; - readonly 'cookieStore': false; - readonly 'CookieStore': false; - readonly 'CookieStoreManager': false; - readonly 'CountQueuingStrategy': false; - readonly 'createImageBitmap': false; - readonly 'Credential': false; - readonly 'credentialless': false; - readonly 'CredentialsContainer': false; - readonly 'CropTarget': false; - readonly 'crossOriginIsolated': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CSS': false; - readonly 'CSSAnimation': false; - readonly 'CSSConditionRule': false; - readonly 'CSSContainerRule': false; - readonly 'CSSCounterStyleRule': false; - readonly 'CSSFontFaceRule': false; - readonly 'CSSFontFeatureValuesRule': false; - readonly 'CSSFontPaletteValuesRule': false; - readonly 'CSSGroupingRule': false; - readonly 'CSSImageValue': false; - readonly 'CSSImportRule': false; - readonly 'CSSKeyframeRule': false; - readonly 'CSSKeyframesRule': false; - readonly 'CSSKeywordValue': false; - readonly 'CSSLayerBlockRule': false; - readonly 'CSSLayerStatementRule': false; - readonly 'CSSMathClamp': false; - readonly 'CSSMathInvert': false; - readonly 'CSSMathMax': false; - readonly 'CSSMathMin': false; - readonly 'CSSMathNegate': false; - readonly 'CSSMathProduct': false; - readonly 'CSSMathSum': false; - readonly 'CSSMathValue': false; - readonly 'CSSMatrixComponent': false; - readonly 'CSSMediaRule': false; - readonly 'CSSNamespaceRule': false; - readonly 'CSSNumericArray': false; - readonly 'CSSNumericValue': false; - readonly 'CSSPageDescriptors': false; - readonly 'CSSPageRule': false; - readonly 'CSSPerspective': false; - readonly 'CSSPositionTryDescriptors': false; - readonly 'CSSPositionTryRule': false; - readonly 'CSSPositionValue': false; - readonly 'CSSPropertyRule': false; - readonly 'CSSRotate': false; - readonly 'CSSRule': false; - readonly 'CSSRuleList': false; - readonly 'CSSScale': false; - readonly 'CSSScopeRule': false; - readonly 'CSSSkew': false; - readonly 'CSSSkewX': false; - readonly 'CSSSkewY': false; - readonly 'CSSStartingStyleRule': false; - readonly 'CSSStyleDeclaration': false; - readonly 'CSSStyleRule': false; - readonly 'CSSStyleSheet': false; - readonly 'CSSStyleValue': false; - readonly 'CSSSupportsRule': false; - readonly 'CSSTransformComponent': false; - readonly 'CSSTransformValue': false; - readonly 'CSSTransition': false; - readonly 'CSSTranslate': false; - readonly 'CSSUnitValue': false; - readonly 'CSSUnparsedValue': false; - readonly 'CSSVariableReferenceValue': false; - readonly 'CSSViewTransitionRule': false; - readonly 'currentFrame': false; - readonly 'currentTime': false; - readonly 'CustomElementRegistry': false; - readonly 'customElements': false; - readonly 'CustomEvent': false; - readonly 'CustomStateSet': false; - readonly 'DataTransfer': false; - readonly 'DataTransferItem': false; - readonly 'DataTransferItemList': false; - readonly 'DecompressionStream': false; - readonly 'DelayNode': false; - readonly 'DelegatedInkTrailPresenter': false; - readonly 'DeviceMotionEvent': false; - readonly 'DeviceMotionEventAcceleration': false; - readonly 'DeviceMotionEventRotationRate': false; - readonly 'DeviceOrientationEvent': false; - readonly 'devicePixelRatio': false; - readonly 'dispatchEvent': false; - readonly 'document': false; - readonly 'Document': false; - readonly 'DocumentFragment': false; - readonly 'documentPictureInPicture': false; - readonly 'DocumentPictureInPicture': false; - readonly 'DocumentPictureInPictureEvent': false; - readonly 'DocumentTimeline': false; - readonly 'DocumentType': false; - readonly 'DOMError': false; - readonly 'DOMException': false; - readonly 'DOMImplementation': false; - readonly 'DOMMatrix': false; - readonly 'DOMMatrixReadOnly': false; - readonly 'DOMParser': false; - readonly 'DOMPoint': false; - readonly 'DOMPointReadOnly': false; - readonly 'DOMQuad': false; - readonly 'DOMRect': false; - readonly 'DOMRectList': false; - readonly 'DOMRectReadOnly': false; - readonly 'DOMStringList': false; - readonly 'DOMStringMap': false; - readonly 'DOMTokenList': false; - readonly 'DragEvent': false; - readonly 'DynamicsCompressorNode': false; - readonly 'EditContext': false; - readonly 'Element': false; - readonly 'ElementInternals': false; - readonly 'EncodedAudioChunk': false; - readonly 'EncodedVideoChunk': false; - readonly 'ErrorEvent': false; - readonly 'event': false; - readonly 'Event': false; - readonly 'EventCounts': false; - readonly 'EventSource': false; - readonly 'EventTarget': false; - readonly 'external': false; - readonly 'External': false; - readonly 'EyeDropper': false; - readonly 'FeaturePolicy': false; - readonly 'FederatedCredential': false; - readonly 'fence': false; - readonly 'Fence': false; - readonly 'FencedFrameConfig': false; - readonly 'fetch': false; - readonly 'fetchLater': false; - readonly 'FetchLaterResult': false; - readonly 'File': false; - readonly 'FileList': false; - readonly 'FileReader': false; - readonly 'FileSystem': false; - readonly 'FileSystemDirectoryEntry': false; - readonly 'FileSystemDirectoryHandle': false; - readonly 'FileSystemDirectoryReader': false; - readonly 'FileSystemEntry': false; - readonly 'FileSystemFileEntry': false; - readonly 'FileSystemFileHandle': false; - readonly 'FileSystemHandle': false; - readonly 'FileSystemWritableFileStream': false; - readonly 'find': false; - readonly 'Float16Array': false; - readonly 'focus': false; - readonly 'FocusEvent': false; - readonly 'FontData': false; - readonly 'FontFace': false; - readonly 'FontFaceSet': false; - readonly 'FontFaceSetLoadEvent': false; - readonly 'FormData': false; - readonly 'FormDataEvent': false; - readonly 'FragmentDirective': false; - readonly 'frameElement': false; - readonly 'frames': false; - readonly 'GainNode': false; - readonly 'Gamepad': false; - readonly 'GamepadAxisMoveEvent': false; - readonly 'GamepadButton': false; - readonly 'GamepadButtonEvent': false; - readonly 'GamepadEvent': false; - readonly 'GamepadHapticActuator': false; - readonly 'GamepadPose': false; - readonly 'Geolocation': false; - readonly 'GeolocationCoordinates': false; - readonly 'GeolocationPosition': false; - readonly 'GeolocationPositionError': false; - readonly 'getComputedStyle': false; - readonly 'getScreenDetails': false; - readonly 'getSelection': false; - readonly 'GPU': false; - readonly 'GPUAdapter': false; - readonly 'GPUAdapterInfo': false; - readonly 'GPUBindGroup': false; - readonly 'GPUBindGroupLayout': false; - readonly 'GPUBuffer': false; - readonly 'GPUBufferUsage': false; - readonly 'GPUCanvasContext': false; - readonly 'GPUColorWrite': false; - readonly 'GPUCommandBuffer': false; - readonly 'GPUCommandEncoder': false; - readonly 'GPUCompilationInfo': false; - readonly 'GPUCompilationMessage': false; - readonly 'GPUComputePassEncoder': false; - readonly 'GPUComputePipeline': false; - readonly 'GPUDevice': false; - readonly 'GPUDeviceLostInfo': false; - readonly 'GPUError': false; - readonly 'GPUExternalTexture': false; - readonly 'GPUInternalError': false; - readonly 'GPUMapMode': false; - readonly 'GPUOutOfMemoryError': false; - readonly 'GPUPipelineError': false; - readonly 'GPUPipelineLayout': false; - readonly 'GPUQuerySet': false; - readonly 'GPUQueue': false; - readonly 'GPURenderBundle': false; - readonly 'GPURenderBundleEncoder': false; - readonly 'GPURenderPassEncoder': false; - readonly 'GPURenderPipeline': false; - readonly 'GPUSampler': false; - readonly 'GPUShaderModule': false; - readonly 'GPUShaderStage': false; - readonly 'GPUSupportedFeatures': false; - readonly 'GPUSupportedLimits': false; - readonly 'GPUTexture': false; - readonly 'GPUTextureUsage': false; - readonly 'GPUTextureView': false; - readonly 'GPUUncapturedErrorEvent': false; - readonly 'GPUValidationError': false; - readonly 'GravitySensor': false; - readonly 'Gyroscope': false; - readonly 'HashChangeEvent': false; - readonly 'Headers': false; - readonly 'HID': false; - readonly 'HIDConnectionEvent': false; - readonly 'HIDDevice': false; - readonly 'HIDInputReportEvent': false; - readonly 'Highlight': false; - readonly 'HighlightRegistry': false; - readonly 'history': false; - readonly 'History': false; - readonly 'HTMLAllCollection': false; - readonly 'HTMLAnchorElement': false; - readonly 'HTMLAreaElement': false; - readonly 'HTMLAudioElement': false; - readonly 'HTMLBaseElement': false; - readonly 'HTMLBodyElement': false; - readonly 'HTMLBRElement': false; - readonly 'HTMLButtonElement': false; - readonly 'HTMLCanvasElement': false; - readonly 'HTMLCollection': false; - readonly 'HTMLDataElement': false; - readonly 'HTMLDataListElement': false; - readonly 'HTMLDetailsElement': false; - readonly 'HTMLDialogElement': false; - readonly 'HTMLDirectoryElement': false; - readonly 'HTMLDivElement': false; - readonly 'HTMLDListElement': false; - readonly 'HTMLDocument': false; - readonly 'HTMLElement': false; - readonly 'HTMLEmbedElement': false; - readonly 'HTMLFencedFrameElement': false; - readonly 'HTMLFieldSetElement': false; - readonly 'HTMLFontElement': false; - readonly 'HTMLFormControlsCollection': false; - readonly 'HTMLFormElement': false; - readonly 'HTMLFrameElement': false; - readonly 'HTMLFrameSetElement': false; - readonly 'HTMLHeadElement': false; - readonly 'HTMLHeadingElement': false; - readonly 'HTMLHRElement': false; - readonly 'HTMLHtmlElement': false; - readonly 'HTMLIFrameElement': false; - readonly 'HTMLImageElement': false; - readonly 'HTMLInputElement': false; - readonly 'HTMLLabelElement': false; - readonly 'HTMLLegendElement': false; - readonly 'HTMLLIElement': false; - readonly 'HTMLLinkElement': false; - readonly 'HTMLMapElement': false; - readonly 'HTMLMarqueeElement': false; - readonly 'HTMLMediaElement': false; - readonly 'HTMLMenuElement': false; - readonly 'HTMLMetaElement': false; - readonly 'HTMLMeterElement': false; - readonly 'HTMLModElement': false; - readonly 'HTMLObjectElement': false; - readonly 'HTMLOListElement': false; - readonly 'HTMLOptGroupElement': false; - readonly 'HTMLOptionElement': false; - readonly 'HTMLOptionsCollection': false; - readonly 'HTMLOutputElement': false; - readonly 'HTMLParagraphElement': false; - readonly 'HTMLParamElement': false; - readonly 'HTMLPictureElement': false; - readonly 'HTMLPreElement': false; - readonly 'HTMLProgressElement': false; - readonly 'HTMLQuoteElement': false; - readonly 'HTMLScriptElement': false; - readonly 'HTMLSelectElement': false; - readonly 'HTMLSlotElement': false; - readonly 'HTMLSourceElement': false; - readonly 'HTMLSpanElement': false; - readonly 'HTMLStyleElement': false; - readonly 'HTMLTableCaptionElement': false; - readonly 'HTMLTableCellElement': false; - readonly 'HTMLTableColElement': false; - readonly 'HTMLTableElement': false; - readonly 'HTMLTableRowElement': false; - readonly 'HTMLTableSectionElement': false; - readonly 'HTMLTemplateElement': false; - readonly 'HTMLTextAreaElement': false; - readonly 'HTMLTimeElement': false; - readonly 'HTMLTitleElement': false; - readonly 'HTMLTrackElement': false; - readonly 'HTMLUListElement': false; - readonly 'HTMLUnknownElement': false; - readonly 'HTMLVideoElement': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'IdentityCredential': false; - readonly 'IdentityCredentialError': false; - readonly 'IdentityProvider': false; - readonly 'IdleDeadline': false; - readonly 'IdleDetector': false; - readonly 'IIRFilterNode': false; - readonly 'Image': false; - readonly 'ImageBitmap': false; - readonly 'ImageBitmapRenderingContext': false; - readonly 'ImageCapture': false; - readonly 'ImageData': false; - readonly 'ImageDecoder': false; - readonly 'ImageTrack': false; - readonly 'ImageTrackList': false; - readonly 'indexedDB': false; - readonly 'Ink': false; - readonly 'innerHeight': false; - readonly 'innerWidth': false; - readonly 'InputDeviceCapabilities': false; - readonly 'InputDeviceInfo': false; - readonly 'InputEvent': false; - readonly 'IntersectionObserver': false; - readonly 'IntersectionObserverEntry': false; - readonly 'isSecureContext': false; - readonly 'Iterator': false; - readonly 'Keyboard': false; - readonly 'KeyboardEvent': false; - readonly 'KeyboardLayoutMap': false; - readonly 'KeyframeEffect': false; - readonly 'LargestContentfulPaint': false; - readonly 'LaunchParams': false; - readonly 'launchQueue': false; - readonly 'LaunchQueue': false; - readonly 'LayoutShift': false; - readonly 'LayoutShiftAttribution': false; - readonly 'length': false; - readonly 'LinearAccelerationSensor': false; - readonly 'localStorage': false; - readonly 'location': true; - readonly 'Location': false; - readonly 'locationbar': false; - readonly 'Lock': false; - readonly 'LockManager': false; - readonly 'matchMedia': false; - readonly 'MathMLElement': false; - readonly 'MediaCapabilities': false; - readonly 'MediaCapabilitiesInfo': false; - readonly 'MediaDeviceInfo': false; - readonly 'MediaDevices': false; - readonly 'MediaElementAudioSourceNode': false; - readonly 'MediaEncryptedEvent': false; - readonly 'MediaError': false; - readonly 'MediaKeyError': false; - readonly 'MediaKeyMessageEvent': false; - readonly 'MediaKeys': false; - readonly 'MediaKeySession': false; - readonly 'MediaKeyStatusMap': false; - readonly 'MediaKeySystemAccess': false; - readonly 'MediaList': false; - readonly 'MediaMetadata': false; - readonly 'MediaQueryList': false; - readonly 'MediaQueryListEvent': false; - readonly 'MediaRecorder': false; - readonly 'MediaRecorderErrorEvent': false; - readonly 'MediaSession': false; - readonly 'MediaSource': false; - readonly 'MediaSourceHandle': false; - readonly 'MediaStream': false; - readonly 'MediaStreamAudioDestinationNode': false; - readonly 'MediaStreamAudioSourceNode': false; - readonly 'MediaStreamEvent': false; - readonly 'MediaStreamTrack': false; - readonly 'MediaStreamTrackAudioSourceNode': false; - readonly 'MediaStreamTrackAudioStats': false; - readonly 'MediaStreamTrackEvent': false; - readonly 'MediaStreamTrackGenerator': false; - readonly 'MediaStreamTrackProcessor': false; - readonly 'MediaStreamTrackVideoStats': false; - readonly 'menubar': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'MIDIAccess': false; - readonly 'MIDIConnectionEvent': false; - readonly 'MIDIInput': false; - readonly 'MIDIInputMap': false; - readonly 'MIDIMessageEvent': false; - readonly 'MIDIOutput': false; - readonly 'MIDIOutputMap': false; - readonly 'MIDIPort': false; - readonly 'MimeType': false; - readonly 'MimeTypeArray': false; - readonly 'model': false; - readonly 'ModelGenericSession': false; - readonly 'ModelManager': false; - readonly 'MouseEvent': false; - readonly 'moveBy': false; - readonly 'moveTo': false; - readonly 'MutationEvent': false; - readonly 'MutationObserver': false; - readonly 'MutationRecord': false; - readonly 'name': false; - readonly 'NamedNodeMap': false; - readonly 'NavigateEvent': false; - readonly 'navigation': false; - readonly 'Navigation': false; - readonly 'NavigationActivation': false; - readonly 'NavigationCurrentEntryChangeEvent': false; - readonly 'NavigationDestination': false; - readonly 'NavigationHistoryEntry': false; - readonly 'NavigationPreloadManager': false; - readonly 'NavigationTransition': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'NavigatorLogin': false; - readonly 'NavigatorManagedData': false; - readonly 'NavigatorUAData': false; - readonly 'NetworkInformation': false; - readonly 'Node': false; - readonly 'NodeFilter': false; - readonly 'NodeIterator': false; - readonly 'NodeList': false; - readonly 'Notification': false; - readonly 'NotifyPaintEvent': false; - readonly 'NotRestoredReasonDetails': false; - readonly 'NotRestoredReasons': false; - readonly 'OfflineAudioCompletionEvent': false; - readonly 'OfflineAudioContext': false; - readonly 'offscreenBuffering': false; - readonly 'OffscreenCanvas': false; - readonly 'OffscreenCanvasRenderingContext2D': false; - readonly 'onabort': true; - readonly 'onafterprint': true; - readonly 'onanimationcancel': true; - readonly 'onanimationend': true; - readonly 'onanimationiteration': true; - readonly 'onanimationstart': true; - readonly 'onappinstalled': true; - readonly 'onauxclick': true; - readonly 'onbeforeinput': true; - readonly 'onbeforeinstallprompt': true; - readonly 'onbeforematch': true; - readonly 'onbeforeprint': true; - readonly 'onbeforetoggle': true; - readonly 'onbeforeunload': true; - readonly 'onbeforexrselect': true; - readonly 'onblur': true; - readonly 'oncancel': true; - readonly 'oncanplay': true; - readonly 'oncanplaythrough': true; - readonly 'onchange': true; - readonly 'onclick': true; - readonly 'onclose': true; - readonly 'oncontentvisibilityautostatechange': true; - readonly 'oncontextlost': true; - readonly 'oncontextmenu': true; - readonly 'oncontextrestored': true; - readonly 'oncopy': true; - readonly 'oncuechange': true; - readonly 'oncut': true; - readonly 'ondblclick': true; - readonly 'ondevicemotion': true; - readonly 'ondeviceorientation': true; - readonly 'ondeviceorientationabsolute': true; - readonly 'ondrag': true; - readonly 'ondragend': true; - readonly 'ondragenter': true; - readonly 'ondragleave': true; - readonly 'ondragover': true; - readonly 'ondragstart': true; - readonly 'ondrop': true; - readonly 'ondurationchange': true; - readonly 'onemptied': true; - readonly 'onended': true; - readonly 'onerror': true; - readonly 'onfocus': true; - readonly 'onformdata': true; - readonly 'ongamepadconnected': true; - readonly 'ongamepaddisconnected': true; - readonly 'ongotpointercapture': true; - readonly 'onhashchange': true; - readonly 'oninput': true; - readonly 'oninvalid': true; - readonly 'onkeydown': true; - readonly 'onkeypress': true; - readonly 'onkeyup': true; - readonly 'onlanguagechange': true; - readonly 'onload': true; - readonly 'onloadeddata': true; - readonly 'onloadedmetadata': true; - readonly 'onloadstart': true; - readonly 'onlostpointercapture': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onmousedown': true; - readonly 'onmouseenter': true; - readonly 'onmouseleave': true; - readonly 'onmousemove': true; - readonly 'onmouseout': true; - readonly 'onmouseover': true; - readonly 'onmouseup': true; - readonly 'onmousewheel': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpagehide': true; - readonly 'onpagereveal': true; - readonly 'onpageshow': true; - readonly 'onpageswap': true; - readonly 'onpaste': true; - readonly 'onpause': true; - readonly 'onplay': true; - readonly 'onplaying': true; - readonly 'onpointercancel': true; - readonly 'onpointerdown': true; - readonly 'onpointerenter': true; - readonly 'onpointerleave': true; - readonly 'onpointermove': true; - readonly 'onpointerout': true; - readonly 'onpointerover': true; - readonly 'onpointerrawupdate': true; - readonly 'onpointerup': true; - readonly 'onpopstate': true; - readonly 'onprogress': true; - readonly 'onratechange': true; - readonly 'onrejectionhandled': true; - readonly 'onreset': true; - readonly 'onresize': true; - readonly 'onscroll': true; - readonly 'onscrollend': true; - readonly 'onsearch': true; - readonly 'onsecuritypolicyviolation': true; - readonly 'onseeked': true; - readonly 'onseeking': true; - readonly 'onselect': true; - readonly 'onselectionchange': true; - readonly 'onselectstart': true; - readonly 'onslotchange': true; - readonly 'onstalled': true; - readonly 'onstorage': true; - readonly 'onsubmit': true; - readonly 'onsuspend': true; - readonly 'ontimeupdate': true; - readonly 'ontoggle': true; - readonly 'ontransitioncancel': true; - readonly 'ontransitionend': true; - readonly 'ontransitionrun': true; - readonly 'ontransitionstart': true; - readonly 'onunhandledrejection': true; - readonly 'onunload': true; - readonly 'onvolumechange': true; - readonly 'onwaiting': true; - readonly 'onwheel': true; - readonly 'open': false; - readonly 'opener': false; - readonly 'Option': false; - readonly 'OrientationSensor': false; - readonly 'origin': false; - readonly 'originAgentCluster': false; - readonly 'OscillatorNode': false; - readonly 'OTPCredential': false; - readonly 'outerHeight': false; - readonly 'outerWidth': false; - readonly 'OverconstrainedError': false; - readonly 'PageRevealEvent': false; - readonly 'PageSwapEvent': false; - readonly 'PageTransitionEvent': false; - readonly 'pageXOffset': false; - readonly 'pageYOffset': false; - readonly 'PannerNode': false; - readonly 'parent': false; - readonly 'PasswordCredential': false; - readonly 'Path2D': false; - readonly 'PaymentAddress': false; - readonly 'PaymentManager': false; - readonly 'PaymentMethodChangeEvent': false; - readonly 'PaymentRequest': false; - readonly 'PaymentRequestUpdateEvent': false; - readonly 'PaymentResponse': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceElementTiming': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceEventTiming': false; - readonly 'PerformanceLongAnimationFrameTiming': false; - readonly 'PerformanceLongTaskTiming': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceNavigationTiming': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformancePaintTiming': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceScriptTiming': false; - readonly 'PerformanceServerTiming': false; - readonly 'PerformanceTiming': false; - readonly 'PeriodicSyncManager': false; - readonly 'PeriodicWave': false; - readonly 'Permissions': false; - readonly 'PermissionStatus': false; - readonly 'PERSISTENT': false; - readonly 'personalbar': false; - readonly 'PictureInPictureEvent': false; - readonly 'PictureInPictureWindow': false; - readonly 'Plugin': false; - readonly 'PluginArray': false; - readonly 'PointerEvent': false; - readonly 'PopStateEvent': false; - readonly 'postMessage': false; - readonly 'Presentation': false; - readonly 'PresentationAvailability': false; - readonly 'PresentationConnection': false; - readonly 'PresentationConnectionAvailableEvent': false; - readonly 'PresentationConnectionCloseEvent': false; - readonly 'PresentationConnectionList': false; - readonly 'PresentationReceiver': false; - readonly 'PresentationRequest': false; - readonly 'PressureObserver': false; - readonly 'PressureRecord': false; - readonly 'print': false; - readonly 'ProcessingInstruction': false; - readonly 'Profiler': false; - readonly 'ProgressEvent': false; - readonly 'PromiseRejectionEvent': false; - readonly 'prompt': false; - readonly 'ProtectedAudience': false; - readonly 'PublicKeyCredential': false; - readonly 'PushManager': false; - readonly 'PushSubscription': false; - readonly 'PushSubscriptionOptions': false; - readonly 'queryLocalFonts': false; - readonly 'queueMicrotask': false; - readonly 'RadioNodeList': false; - readonly 'Range': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registerProcessor': false; - readonly 'RelativeOrientationSensor': false; - readonly 'RemotePlayback': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'ReportingObserver': false; - readonly 'Request': false; - readonly 'requestAnimationFrame': false; - readonly 'requestIdleCallback': false; - readonly 'resizeBy': false; - readonly 'ResizeObserver': false; - readonly 'ResizeObserverEntry': false; - readonly 'ResizeObserverSize': false; - readonly 'resizeTo': false; - readonly 'Response': false; - readonly 'RTCCertificate': false; - readonly 'RTCDataChannel': false; - readonly 'RTCDataChannelEvent': false; - readonly 'RTCDtlsTransport': false; - readonly 'RTCDTMFSender': false; - readonly 'RTCDTMFToneChangeEvent': false; - readonly 'RTCEncodedAudioFrame': false; - readonly 'RTCEncodedVideoFrame': false; - readonly 'RTCError': false; - readonly 'RTCErrorEvent': false; - readonly 'RTCIceCandidate': false; - readonly 'RTCIceTransport': false; - readonly 'RTCPeerConnection': false; - readonly 'RTCPeerConnectionIceErrorEvent': false; - readonly 'RTCPeerConnectionIceEvent': false; - readonly 'RTCRtpReceiver': false; - readonly 'RTCRtpScriptTransform': false; - readonly 'RTCRtpSender': false; - readonly 'RTCRtpTransceiver': false; - readonly 'RTCSctpTransport': false; - readonly 'RTCSessionDescription': false; - readonly 'RTCStatsReport': false; - readonly 'RTCTrackEvent': false; - readonly 'sampleRate': false; - readonly 'scheduler': false; - readonly 'Scheduler': false; - readonly 'Scheduling': false; - readonly 'screen': false; - readonly 'Screen': false; - readonly 'ScreenDetailed': false; - readonly 'ScreenDetails': false; - readonly 'screenLeft': false; - readonly 'ScreenOrientation': false; - readonly 'screenTop': false; - readonly 'screenX': false; - readonly 'screenY': false; - readonly 'ScriptProcessorNode': false; - readonly 'scroll': false; - readonly 'scrollbars': false; - readonly 'scrollBy': false; - readonly 'ScrollTimeline': false; - readonly 'scrollTo': false; - readonly 'scrollX': false; - readonly 'scrollY': false; - readonly 'SecurityPolicyViolationEvent': false; - readonly 'Selection': false; - readonly 'self': false; - readonly 'Sensor': false; - readonly 'SensorErrorEvent': false; - readonly 'Serial': false; - readonly 'SerialPort': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'sessionStorage': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'ShadowRoot': false; - readonly 'sharedStorage': false; - readonly 'SharedStorage': false; - readonly 'SharedStorageWorklet': false; - readonly 'SharedWorker': false; - readonly 'showDirectoryPicker': false; - readonly 'showOpenFilePicker': false; - readonly 'showSaveFilePicker': false; - readonly 'SourceBuffer': false; - readonly 'SourceBufferList': false; - readonly 'speechSynthesis': false; - readonly 'SpeechSynthesis': false; - readonly 'SpeechSynthesisErrorEvent': false; - readonly 'SpeechSynthesisEvent': false; - readonly 'SpeechSynthesisUtterance': false; - readonly 'SpeechSynthesisVoice': false; - readonly 'StaticRange': false; - readonly 'status': false; - readonly 'statusbar': false; - readonly 'StereoPannerNode': false; - readonly 'stop': false; - readonly 'Storage': false; - readonly 'StorageBucket': false; - readonly 'StorageBucketManager': false; - readonly 'StorageEvent': false; - readonly 'StorageManager': false; - readonly 'structuredClone': false; - readonly 'styleMedia': false; - readonly 'StylePropertyMap': false; - readonly 'StylePropertyMapReadOnly': false; - readonly 'StyleSheet': false; - readonly 'StyleSheetList': false; - readonly 'SubmitEvent': false; - readonly 'SubtleCrypto': false; - readonly 'SVGAElement': false; - readonly 'SVGAngle': false; - readonly 'SVGAnimatedAngle': false; - readonly 'SVGAnimatedBoolean': false; - readonly 'SVGAnimatedEnumeration': false; - readonly 'SVGAnimatedInteger': false; - readonly 'SVGAnimatedLength': false; - readonly 'SVGAnimatedLengthList': false; - readonly 'SVGAnimatedNumber': false; - readonly 'SVGAnimatedNumberList': false; - readonly 'SVGAnimatedPreserveAspectRatio': false; - readonly 'SVGAnimatedRect': false; - readonly 'SVGAnimatedString': false; - readonly 'SVGAnimatedTransformList': false; - readonly 'SVGAnimateElement': false; - readonly 'SVGAnimateMotionElement': false; - readonly 'SVGAnimateTransformElement': false; - readonly 'SVGAnimationElement': false; - readonly 'SVGCircleElement': false; - readonly 'SVGClipPathElement': false; - readonly 'SVGComponentTransferFunctionElement': false; - readonly 'SVGDefsElement': false; - readonly 'SVGDescElement': false; - readonly 'SVGElement': false; - readonly 'SVGEllipseElement': false; - readonly 'SVGFEBlendElement': false; - readonly 'SVGFEColorMatrixElement': false; - readonly 'SVGFEComponentTransferElement': false; - readonly 'SVGFECompositeElement': false; - readonly 'SVGFEConvolveMatrixElement': false; - readonly 'SVGFEDiffuseLightingElement': false; - readonly 'SVGFEDisplacementMapElement': false; - readonly 'SVGFEDistantLightElement': false; - readonly 'SVGFEDropShadowElement': false; - readonly 'SVGFEFloodElement': false; - readonly 'SVGFEFuncAElement': false; - readonly 'SVGFEFuncBElement': false; - readonly 'SVGFEFuncGElement': false; - readonly 'SVGFEFuncRElement': false; - readonly 'SVGFEGaussianBlurElement': false; - readonly 'SVGFEImageElement': false; - readonly 'SVGFEMergeElement': false; - readonly 'SVGFEMergeNodeElement': false; - readonly 'SVGFEMorphologyElement': false; - readonly 'SVGFEOffsetElement': false; - readonly 'SVGFEPointLightElement': false; - readonly 'SVGFESpecularLightingElement': false; - readonly 'SVGFESpotLightElement': false; - readonly 'SVGFETileElement': false; - readonly 'SVGFETurbulenceElement': false; - readonly 'SVGFilterElement': false; - readonly 'SVGForeignObjectElement': false; - readonly 'SVGGElement': false; - readonly 'SVGGeometryElement': false; - readonly 'SVGGradientElement': false; - readonly 'SVGGraphicsElement': false; - readonly 'SVGImageElement': false; - readonly 'SVGLength': false; - readonly 'SVGLengthList': false; - readonly 'SVGLinearGradientElement': false; - readonly 'SVGLineElement': false; - readonly 'SVGMarkerElement': false; - readonly 'SVGMaskElement': false; - readonly 'SVGMatrix': false; - readonly 'SVGMetadataElement': false; - readonly 'SVGMPathElement': false; - readonly 'SVGNumber': false; - readonly 'SVGNumberList': false; - readonly 'SVGPathElement': false; - readonly 'SVGPatternElement': false; - readonly 'SVGPoint': false; - readonly 'SVGPointList': false; - readonly 'SVGPolygonElement': false; - readonly 'SVGPolylineElement': false; - readonly 'SVGPreserveAspectRatio': false; - readonly 'SVGRadialGradientElement': false; - readonly 'SVGRect': false; - readonly 'SVGRectElement': false; - readonly 'SVGScriptElement': false; - readonly 'SVGSetElement': false; - readonly 'SVGStopElement': false; - readonly 'SVGStringList': false; - readonly 'SVGStyleElement': false; - readonly 'SVGSVGElement': false; - readonly 'SVGSwitchElement': false; - readonly 'SVGSymbolElement': false; - readonly 'SVGTextContentElement': false; - readonly 'SVGTextElement': false; - readonly 'SVGTextPathElement': false; - readonly 'SVGTextPositioningElement': false; - readonly 'SVGTitleElement': false; - readonly 'SVGTransform': false; - readonly 'SVGTransformList': false; - readonly 'SVGTSpanElement': false; - readonly 'SVGUnitTypes': false; - readonly 'SVGUseElement': false; - readonly 'SVGViewElement': false; - readonly 'SyncManager': false; - readonly 'TaskAttributionTiming': false; - readonly 'TaskController': false; - readonly 'TaskPriorityChangeEvent': false; - readonly 'TaskSignal': false; - readonly 'TEMPORARY': false; - readonly 'Text': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TextEvent': false; - readonly 'TextFormat': false; - readonly 'TextFormatUpdateEvent': false; - readonly 'TextMetrics': false; - readonly 'TextTrack': false; - readonly 'TextTrackCue': false; - readonly 'TextTrackCueList': false; - readonly 'TextTrackList': false; - readonly 'TextUpdateEvent': false; - readonly 'TimeEvent': false; - readonly 'TimeRanges': false; - readonly 'ToggleEvent': false; - readonly 'toolbar': false; - readonly 'top': false; - readonly 'Touch': false; - readonly 'TouchEvent': false; - readonly 'TouchList': false; - readonly 'TrackEvent': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'TransitionEvent': false; - readonly 'TreeWalker': false; - readonly 'TrustedHTML': false; - readonly 'TrustedScript': false; - readonly 'TrustedScriptURL': false; - readonly 'TrustedTypePolicy': false; - readonly 'TrustedTypePolicyFactory': false; - readonly 'trustedTypes': false; - readonly 'UIEvent': false; - readonly 'URL': false; - readonly 'URLPattern': false; - readonly 'URLSearchParams': false; - readonly 'USB': false; - readonly 'USBAlternateInterface': false; - readonly 'USBConfiguration': false; - readonly 'USBConnectionEvent': false; - readonly 'USBDevice': false; - readonly 'USBEndpoint': false; - readonly 'USBInterface': false; - readonly 'USBInTransferResult': false; - readonly 'USBIsochronousInTransferPacket': false; - readonly 'USBIsochronousInTransferResult': false; - readonly 'USBIsochronousOutTransferPacket': false; - readonly 'USBIsochronousOutTransferResult': false; - readonly 'USBOutTransferResult': false; - readonly 'UserActivation': false; - readonly 'ValidityState': false; - readonly 'VideoColorSpace': false; - readonly 'VideoDecoder': false; - readonly 'VideoEncoder': false; - readonly 'VideoFrame': false; - readonly 'VideoPlaybackQuality': false; - readonly 'ViewTimeline': false; - readonly 'ViewTransition': false; - readonly 'ViewTransitionTypeSet': false; - readonly 'VirtualKeyboard': false; - readonly 'VirtualKeyboardGeometryChangeEvent': false; - readonly 'VisibilityStateEntry': false; - readonly 'visualViewport': false; - readonly 'VisualViewport': false; - readonly 'VTTCue': false; - readonly 'VTTRegion': false; - readonly 'WakeLock': false; - readonly 'WakeLockSentinel': false; - readonly 'WaveShaperNode': false; - readonly 'WebAssembly': false; - readonly 'WebGL2RenderingContext': false; - readonly 'WebGLActiveInfo': false; - readonly 'WebGLBuffer': false; - readonly 'WebGLContextEvent': false; - readonly 'WebGLFramebuffer': false; - readonly 'WebGLObject': false; - readonly 'WebGLProgram': false; - readonly 'WebGLQuery': false; - readonly 'WebGLRenderbuffer': false; - readonly 'WebGLRenderingContext': false; - readonly 'WebGLSampler': false; - readonly 'WebGLShader': false; - readonly 'WebGLShaderPrecisionFormat': false; - readonly 'WebGLSync': false; - readonly 'WebGLTexture': false; - readonly 'WebGLTransformFeedback': false; - readonly 'WebGLUniformLocation': false; - readonly 'WebGLVertexArrayObject': false; - readonly 'WebSocket': false; - readonly 'WebSocketError': false; - readonly 'WebSocketStream': false; - readonly 'WebTransport': false; - readonly 'WebTransportBidirectionalStream': false; - readonly 'WebTransportDatagramDuplexStream': false; - readonly 'WebTransportError': false; - readonly 'WebTransportReceiveStream': false; - readonly 'WebTransportSendStream': false; - readonly 'WGSLLanguageFeatures': false; - readonly 'WheelEvent': false; - readonly 'window': false; - readonly 'Window': false; - readonly 'WindowControlsOverlay': false; - readonly 'WindowControlsOverlayGeometryChangeEvent': false; - readonly 'Worker': false; - readonly 'Worklet': false; - readonly 'WorkletGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLDocument': false; - readonly 'XMLHttpRequest': false; - readonly 'XMLHttpRequestEventTarget': false; - readonly 'XMLHttpRequestUpload': false; - readonly 'XMLSerializer': false; - readonly 'XPathEvaluator': false; - readonly 'XPathExpression': false; - readonly 'XPathResult': false; - readonly 'XRAnchor': false; - readonly 'XRAnchorSet': false; - readonly 'XRBoundedReferenceSpace': false; - readonly 'XRCamera': false; - readonly 'XRCPUDepthInformation': false; - readonly 'XRDepthInformation': false; - readonly 'XRDOMOverlayState': false; - readonly 'XRFrame': false; - readonly 'XRHitTestResult': false; - readonly 'XRHitTestSource': false; - readonly 'XRInputSource': false; - readonly 'XRInputSourceArray': false; - readonly 'XRInputSourceEvent': false; - readonly 'XRInputSourcesChangeEvent': false; - readonly 'XRLayer': false; - readonly 'XRLightEstimate': false; - readonly 'XRLightProbe': false; - readonly 'XRPose': false; - readonly 'XRRay': false; - readonly 'XRReferenceSpace': false; - readonly 'XRReferenceSpaceEvent': false; - readonly 'XRRenderState': false; - readonly 'XRRigidTransform': false; - readonly 'XRSession': false; - readonly 'XRSessionEvent': false; - readonly 'XRSpace': false; - readonly 'XRSystem': false; - readonly 'XRTransientInputHitTestResult': false; - readonly 'XRTransientInputHitTestSource': false; - readonly 'XRView': false; - readonly 'XRViewerPose': false; - readonly 'XRViewport': false; - readonly 'XRWebGLBinding': false; - readonly 'XRWebGLDepthInformation': false; - readonly 'XRWebGLLayer': false; - readonly 'XSLTProcessor': false; -} - -type GlobalsBuiltin = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsChai = { - readonly 'assert': true; - readonly 'expect': true; - readonly 'should': true; -} - -type GlobalsCommonjs = { - readonly 'exports': true; - readonly 'global': false; - readonly 'module': false; - readonly 'require': false; -} - -type GlobalsCouch = { - readonly 'emit': false; - readonly 'exports': false; - readonly 'getRow': false; - readonly 'log': false; - readonly 'module': false; - readonly 'provides': false; - readonly 'require': false; - readonly 'respond': false; - readonly 'send': false; - readonly 'start': false; - readonly 'sum': false; -} - -type GlobalsDevtools = { - readonly '$': false; - readonly '$_': false; - readonly '$$': false; - readonly '$0': false; - readonly '$1': false; - readonly '$2': false; - readonly '$3': false; - readonly '$4': false; - readonly '$x': false; - readonly 'chrome': false; - readonly 'clear': false; - readonly 'copy': false; - readonly 'debug': false; - readonly 'dir': false; - readonly 'dirxml': false; - readonly 'getEventListeners': false; - readonly 'inspect': false; - readonly 'keys': false; - readonly 'monitor': false; - readonly 'monitorEvents': false; - readonly 'profile': false; - readonly 'profileEnd': false; - readonly 'queryObjects': false; - readonly 'table': false; - readonly 'undebug': false; - readonly 'unmonitor': false; - readonly 'unmonitorEvents': false; - readonly 'values': false; -} - -type GlobalsEmbertest = { - readonly 'andThen': false; - readonly 'click': false; - readonly 'currentPath': false; - readonly 'currentRouteName': false; - readonly 'currentURL': false; - readonly 'fillIn': false; - readonly 'find': false; - readonly 'findAll': false; - readonly 'findWithAssert': false; - readonly 'keyEvent': false; - readonly 'pauseTest': false; - readonly 'resumeTest': false; - readonly 'triggerEvent': false; - readonly 'visit': false; - readonly 'wait': false; -} - -type GlobalsEs2015 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2016 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2017 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2018 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2019 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2020 = { - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2021 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2022 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2023 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2024 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs2025 = { - readonly 'AggregateError': false; - readonly 'Array': false; - readonly 'ArrayBuffer': false; - readonly 'Atomics': false; - readonly 'BigInt': false; - readonly 'BigInt64Array': false; - readonly 'BigUint64Array': false; - readonly 'Boolean': false; - readonly 'DataView': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'FinalizationRegistry': false; - readonly 'Float32Array': false; - readonly 'Float64Array': false; - readonly 'Function': false; - readonly 'globalThis': false; - readonly 'Infinity': false; - readonly 'Int16Array': false; - readonly 'Int32Array': false; - readonly 'Int8Array': false; - readonly 'Intl': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Map': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'Promise': false; - readonly 'Proxy': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'Reflect': false; - readonly 'RegExp': false; - readonly 'Set': false; - readonly 'SharedArrayBuffer': false; - readonly 'String': false; - readonly 'Symbol': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'Uint16Array': false; - readonly 'Uint32Array': false; - readonly 'Uint8Array': false; - readonly 'Uint8ClampedArray': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; - readonly 'WeakMap': false; - readonly 'WeakRef': false; - readonly 'WeakSet': false; -} - -type GlobalsEs5 = { - readonly 'Array': false; - readonly 'Boolean': false; - readonly 'Date': false; - readonly 'decodeURI': false; - readonly 'decodeURIComponent': false; - readonly 'encodeURI': false; - readonly 'encodeURIComponent': false; - readonly 'Error': false; - readonly 'escape': false; - readonly 'eval': false; - readonly 'EvalError': false; - readonly 'Function': false; - readonly 'Infinity': false; - readonly 'isFinite': false; - readonly 'isNaN': false; - readonly 'JSON': false; - readonly 'Math': false; - readonly 'NaN': false; - readonly 'Number': false; - readonly 'Object': false; - readonly 'parseFloat': false; - readonly 'parseInt': false; - readonly 'RangeError': false; - readonly 'ReferenceError': false; - readonly 'RegExp': false; - readonly 'String': false; - readonly 'SyntaxError': false; - readonly 'TypeError': false; - readonly 'undefined': false; - readonly 'unescape': false; - readonly 'URIError': false; -} - -type GlobalsGreasemonkey = { - readonly 'cloneInto': false; - readonly 'createObjectIn': false; - readonly 'exportFunction': false; - readonly 'GM': false; - readonly 'GM_addElement': false; - readonly 'GM_addStyle': false; - readonly 'GM_addValueChangeListener': false; - readonly 'GM_deleteValue': false; - readonly 'GM_download': false; - readonly 'GM_getResourceText': false; - readonly 'GM_getResourceURL': false; - readonly 'GM_getTab': false; - readonly 'GM_getTabs': false; - readonly 'GM_getValue': false; - readonly 'GM_info': false; - readonly 'GM_listValues': false; - readonly 'GM_log': false; - readonly 'GM_notification': false; - readonly 'GM_openInTab': false; - readonly 'GM_registerMenuCommand': false; - readonly 'GM_removeValueChangeListener': false; - readonly 'GM_saveTab': false; - readonly 'GM_setClipboard': false; - readonly 'GM_setValue': false; - readonly 'GM_unregisterMenuCommand': false; - readonly 'GM_xmlhttpRequest': false; - readonly 'unsafeWindow': false; -} - -type GlobalsJasmine = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'expectAsync': false; - readonly 'fail': false; - readonly 'fdescribe': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jasmine': false; - readonly 'pending': false; - readonly 'runs': false; - readonly 'spyOn': false; - readonly 'spyOnAllFunctions': false; - readonly 'spyOnProperty': false; - readonly 'waits': false; - readonly 'waitsFor': false; - readonly 'xdescribe': false; - readonly 'xit': false; -} - -type GlobalsJest = { - readonly 'afterAll': false; - readonly 'afterEach': false; - readonly 'beforeAll': false; - readonly 'beforeEach': false; - readonly 'describe': false; - readonly 'expect': false; - readonly 'fit': false; - readonly 'it': false; - readonly 'jest': false; - readonly 'test': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xtest': false; -} - -type GlobalsJquery = { - readonly '$': false; - readonly 'jQuery': false; -} - -type GlobalsMeteor = { - readonly '$': false; - readonly 'Accounts': false; - readonly 'AccountsClient': false; - readonly 'AccountsCommon': false; - readonly 'AccountsServer': false; - readonly 'App': false; - readonly 'Assets': false; - readonly 'Blaze': false; - readonly 'check': false; - readonly 'Cordova': false; - readonly 'DDP': false; - readonly 'DDPRateLimiter': false; - readonly 'DDPServer': false; - readonly 'Deps': false; - readonly 'EJSON': false; - readonly 'Email': false; - readonly 'HTTP': false; - readonly 'Log': false; - readonly 'Match': false; - readonly 'Meteor': false; - readonly 'Mongo': false; - readonly 'MongoInternals': false; - readonly 'Npm': false; - readonly 'Package': false; - readonly 'Plugin': false; - readonly 'process': false; - readonly 'Random': false; - readonly 'ReactiveDict': false; - readonly 'ReactiveVar': false; - readonly 'Router': false; - readonly 'ServiceConfiguration': false; - readonly 'Session': false; - readonly 'share': false; - readonly 'Spacebars': false; - readonly 'Template': false; - readonly 'Tinytest': false; - readonly 'Tracker': false; - readonly 'UI': false; - readonly 'Utils': false; - readonly 'WebApp': false; - readonly 'WebAppInternals': false; -} - -type GlobalsMocha = { - readonly 'after': false; - readonly 'afterEach': false; - readonly 'before': false; - readonly 'beforeEach': false; - readonly 'context': false; - readonly 'describe': false; - readonly 'it': false; - readonly 'mocha': false; - readonly 'run': false; - readonly 'setup': false; - readonly 'specify': false; - readonly 'suite': false; - readonly 'suiteSetup': false; - readonly 'suiteTeardown': false; - readonly 'teardown': false; - readonly 'test': false; - readonly 'xcontext': false; - readonly 'xdescribe': false; - readonly 'xit': false; - readonly 'xspecify': false; -} - -type GlobalsMongo = { - readonly '_isWindows': false; - readonly '_rand': false; - readonly 'BulkWriteResult': false; - readonly 'cat': false; - readonly 'cd': false; - readonly 'connect': false; - readonly 'db': false; - readonly 'getHostName': false; - readonly 'getMemInfo': false; - readonly 'hostname': false; - readonly 'ISODate': false; - readonly 'listFiles': false; - readonly 'load': false; - readonly 'ls': false; - readonly 'md5sumFile': false; - readonly 'mkdir': false; - readonly 'Mongo': false; - readonly 'NumberInt': false; - readonly 'NumberLong': false; - readonly 'ObjectId': false; - readonly 'PlanCache': false; - readonly 'print': false; - readonly 'printjson': false; - readonly 'pwd': false; - readonly 'quit': false; - readonly 'removeFile': false; - readonly 'rs': false; - readonly 'sh': false; - readonly 'UUID': false; - readonly 'version': false; - readonly 'WriteResult': false; -} - -type GlobalsNashorn = { - readonly '__DIR__': false; - readonly '__FILE__': false; - readonly '__LINE__': false; - readonly 'com': false; - readonly 'edu': false; - readonly 'exit': false; - readonly 'java': false; - readonly 'Java': false; - readonly 'javafx': false; - readonly 'JavaImporter': false; - readonly 'javax': false; - readonly 'JSAdapter': false; - readonly 'load': false; - readonly 'loadWithNewGlobal': false; - readonly 'org': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; -} - -type GlobalsNode = { - readonly '__dirname': false; - readonly '__filename': false; - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'exports': true; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Iterator': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'module': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'require': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsNodeBuiltin = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'Buffer': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearImmediate': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'global': false; - readonly 'Headers': false; - readonly 'Iterator': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'process': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setImmediate': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsPhantomjs = { - readonly 'console': true; - readonly 'exports': true; - readonly 'phantom': true; - readonly 'require': true; - readonly 'WebPage': true; -} - -type GlobalsPrototypejs = { - readonly '$': false; - readonly '$$': false; - readonly '$A': false; - readonly '$break': false; - readonly '$continue': false; - readonly '$F': false; - readonly '$H': false; - readonly '$R': false; - readonly '$w': false; - readonly 'Abstract': false; - readonly 'Ajax': false; - readonly 'Autocompleter': false; - readonly 'Builder': false; - readonly 'Class': false; - readonly 'Control': false; - readonly 'Draggable': false; - readonly 'Draggables': false; - readonly 'Droppables': false; - readonly 'Effect': false; - readonly 'Element': false; - readonly 'Enumerable': false; - readonly 'Event': false; - readonly 'Field': false; - readonly 'Form': false; - readonly 'Hash': false; - readonly 'Insertion': false; - readonly 'ObjectRange': false; - readonly 'PeriodicalExecuter': false; - readonly 'Position': false; - readonly 'Prototype': false; - readonly 'Scriptaculous': false; - readonly 'Selector': false; - readonly 'Sortable': false; - readonly 'SortableObserver': false; - readonly 'Sound': false; - readonly 'Template': false; - readonly 'Toggle': false; - readonly 'Try': false; -} - -type GlobalsProtractor = { - readonly '$': false; - readonly '$$': false; - readonly 'browser': false; - readonly 'by': false; - readonly 'By': false; - readonly 'DartObject': false; - readonly 'element': false; - readonly 'protractor': false; -} - -type GlobalsQunit = { - readonly 'asyncTest': false; - readonly 'deepEqual': false; - readonly 'equal': false; - readonly 'expect': false; - readonly 'module': false; - readonly 'notDeepEqual': false; - readonly 'notEqual': false; - readonly 'notOk': false; - readonly 'notPropEqual': false; - readonly 'notStrictEqual': false; - readonly 'ok': false; - readonly 'propEqual': false; - readonly 'QUnit': false; - readonly 'raises': false; - readonly 'start': false; - readonly 'stop': false; - readonly 'strictEqual': false; - readonly 'test': false; - readonly 'throws': false; -} - -type GlobalsRhino = { - readonly 'defineClass': false; - readonly 'deserialize': false; - readonly 'gc': false; - readonly 'help': false; - readonly 'importClass': false; - readonly 'importPackage': false; - readonly 'java': false; - readonly 'load': false; - readonly 'loadClass': false; - readonly 'Packages': false; - readonly 'print': false; - readonly 'quit': false; - readonly 'readFile': false; - readonly 'readUrl': false; - readonly 'runCommand': false; - readonly 'seal': false; - readonly 'serialize': false; - readonly 'spawn': false; - readonly 'sync': false; - readonly 'toint32': false; - readonly 'version': false; -} - -type GlobalsServiceworker = { - readonly 'addEventListener': false; - readonly 'applicationCache': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'Client': false; - readonly 'clients': false; - readonly 'Clients': false; - readonly 'close': true; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'ExtendableEvent': false; - readonly 'ExtendableMessageEvent': false; - readonly 'fetch': false; - readonly 'FetchEvent': false; - readonly 'File': false; - readonly 'FileReaderSync': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'ImageData': false; - readonly 'importScripts': false; - readonly 'indexedDB': false; - readonly 'location': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'navigator': false; - readonly 'Notification': false; - readonly 'onclose': true; - readonly 'onconnect': true; - readonly 'onerror': true; - readonly 'onfetch': true; - readonly 'oninstall': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onnotificationclick': true; - readonly 'onnotificationclose': true; - readonly 'onoffline': true; - readonly 'ononline': true; - readonly 'onpush': true; - readonly 'onpushsubscriptionchange': true; - readonly 'onrejectionhandled': true; - readonly 'onsync': true; - readonly 'onunhandledrejection': true; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceNavigation': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceTiming': false; - readonly 'postMessage': true; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'registration': false; - readonly 'removeEventListener': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'self': false; - readonly 'ServiceWorker': false; - readonly 'ServiceWorkerContainer': false; - readonly 'ServiceWorkerGlobalScope': false; - readonly 'ServiceWorkerMessageEvent': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'skipWaiting': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WindowClient': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; -} - -type GlobalsSharednodebrowser = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'atob': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DOMException': false; - readonly 'Event': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FormData': false; - readonly 'Headers': false; - readonly 'Iterator': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'navigator': false; - readonly 'Navigator': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'Request': false; - readonly 'Response': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'URL': false; - readonly 'URLSearchParams': false; - readonly 'WebAssembly': false; - readonly 'WebSocket': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; -} - -type GlobalsShelljs = { - readonly 'cat': false; - readonly 'cd': false; - readonly 'chmod': false; - readonly 'config': false; - readonly 'cp': false; - readonly 'dirs': false; - readonly 'echo': false; - readonly 'env': false; - readonly 'error': false; - readonly 'exec': false; - readonly 'exit': false; - readonly 'find': false; - readonly 'grep': false; - readonly 'head': false; - readonly 'ln': false; - readonly 'ls': false; - readonly 'mkdir': false; - readonly 'mv': false; - readonly 'popd': false; - readonly 'pushd': false; - readonly 'pwd': false; - readonly 'rm': false; - readonly 'sed': false; - readonly 'set': false; - readonly 'ShellString': false; - readonly 'sort': false; - readonly 'tail': false; - readonly 'tempdir': false; - readonly 'test': false; - readonly 'touch': false; - readonly 'uniq': false; - readonly 'which': false; -} - -type GlobalsWebextensions = { - readonly 'browser': false; - readonly 'chrome': false; - readonly 'opr': false; -} - -type GlobalsWorker = { - readonly 'AbortController': false; - readonly 'AbortSignal': false; - readonly 'addEventListener': false; - readonly 'ai': false; - readonly 'atob': false; - readonly 'AudioData': false; - readonly 'AudioDecoder': false; - readonly 'AudioEncoder': false; - readonly 'BackgroundFetchManager': false; - readonly 'BackgroundFetchRecord': false; - readonly 'BackgroundFetchRegistration': false; - readonly 'Blob': false; - readonly 'BroadcastChannel': false; - readonly 'btoa': false; - readonly 'ByteLengthQueuingStrategy': false; - readonly 'Cache': false; - readonly 'caches': false; - readonly 'CacheStorage': false; - readonly 'cancelAnimationFrame': false; - readonly 'CanvasGradient': false; - readonly 'CanvasPattern': false; - readonly 'clearInterval': false; - readonly 'clearTimeout': false; - readonly 'close': false; - readonly 'CloseEvent': false; - readonly 'CompressionStream': false; - readonly 'console': false; - readonly 'CountQueuingStrategy': false; - readonly 'createImageBitmap': false; - readonly 'CropTarget': false; - readonly 'crossOriginIsolated': false; - readonly 'crypto': false; - readonly 'Crypto': false; - readonly 'CryptoKey': false; - readonly 'CSSSkewX': false; - readonly 'CSSSkewY': false; - readonly 'CustomEvent': false; - readonly 'DecompressionStream': false; - readonly 'DedicatedWorkerGlobalScope': false; - readonly 'dispatchEvent': false; - readonly 'DOMException': false; - readonly 'DOMMatrix': false; - readonly 'DOMMatrixReadOnly': false; - readonly 'DOMPoint': false; - readonly 'DOMPointReadOnly': false; - readonly 'DOMQuad': false; - readonly 'DOMRect': false; - readonly 'DOMRectReadOnly': false; - readonly 'DOMStringList': false; - readonly 'EncodedAudioChunk': false; - readonly 'EncodedVideoChunk': false; - readonly 'ErrorEvent': false; - readonly 'Event': false; - readonly 'EventSource': false; - readonly 'EventTarget': false; - readonly 'fetch': false; - readonly 'File': false; - readonly 'FileList': false; - readonly 'FileReader': false; - readonly 'FileReaderSync': false; - readonly 'FileSystemDirectoryHandle': false; - readonly 'FileSystemFileHandle': false; - readonly 'FileSystemHandle': false; - readonly 'FileSystemSyncAccessHandle': false; - readonly 'FileSystemWritableFileStream': false; - readonly 'FontFace': false; - readonly 'fonts': false; - readonly 'FormData': false; - readonly 'GPU': false; - readonly 'GPUAdapter': false; - readonly 'GPUAdapterInfo': false; - readonly 'GPUBindGroup': false; - readonly 'GPUBindGroupLayout': false; - readonly 'GPUBuffer': false; - readonly 'GPUBufferUsage': false; - readonly 'GPUCanvasContext': false; - readonly 'GPUColorWrite': false; - readonly 'GPUCommandBuffer': false; - readonly 'GPUCommandEncoder': false; - readonly 'GPUCompilationInfo': false; - readonly 'GPUCompilationMessage': false; - readonly 'GPUComputePassEncoder': false; - readonly 'GPUComputePipeline': false; - readonly 'GPUDevice': false; - readonly 'GPUDeviceLostInfo': false; - readonly 'GPUError': false; - readonly 'GPUExternalTexture': false; - readonly 'GPUInternalError': false; - readonly 'GPUMapMode': false; - readonly 'GPUOutOfMemoryError': false; - readonly 'GPUPipelineError': false; - readonly 'GPUPipelineLayout': false; - readonly 'GPUQuerySet': false; - readonly 'GPUQueue': false; - readonly 'GPURenderBundle': false; - readonly 'GPURenderBundleEncoder': false; - readonly 'GPURenderPassEncoder': false; - readonly 'GPURenderPipeline': false; - readonly 'GPUSampler': false; - readonly 'GPUShaderModule': false; - readonly 'GPUShaderStage': false; - readonly 'GPUSupportedFeatures': false; - readonly 'GPUSupportedLimits': false; - readonly 'GPUTexture': false; - readonly 'GPUTextureUsage': false; - readonly 'GPUTextureView': false; - readonly 'GPUUncapturedErrorEvent': false; - readonly 'GPUValidationError': false; - readonly 'Headers': false; - readonly 'IDBCursor': false; - readonly 'IDBCursorWithValue': false; - readonly 'IDBDatabase': false; - readonly 'IDBFactory': false; - readonly 'IDBIndex': false; - readonly 'IDBKeyRange': false; - readonly 'IDBObjectStore': false; - readonly 'IDBOpenDBRequest': false; - readonly 'IDBRequest': false; - readonly 'IDBTransaction': false; - readonly 'IDBVersionChangeEvent': false; - readonly 'IdleDetector': false; - readonly 'ImageBitmap': false; - readonly 'ImageBitmapRenderingContext': false; - readonly 'ImageData': false; - readonly 'ImageDecoder': false; - readonly 'ImageTrack': false; - readonly 'ImageTrackList': false; - readonly 'importScripts': false; - readonly 'indexedDB': false; - readonly 'isSecureContext': false; - readonly 'Iterator': false; - readonly 'location': false; - readonly 'Lock': false; - readonly 'LockManager': false; - readonly 'MediaCapabilities': false; - readonly 'MediaSource': false; - readonly 'MediaSourceHandle': false; - readonly 'MessageChannel': false; - readonly 'MessageEvent': false; - readonly 'MessagePort': false; - readonly 'name': false; - readonly 'NavigationPreloadManager': false; - readonly 'navigator': false; - readonly 'NavigatorUAData': false; - readonly 'NetworkInformation': false; - readonly 'Notification': false; - readonly 'OffscreenCanvas': false; - readonly 'OffscreenCanvasRenderingContext2D': false; - readonly 'onerror': true; - readonly 'onlanguagechange': true; - readonly 'onmessage': true; - readonly 'onmessageerror': true; - readonly 'onrejectionhandled': true; - readonly 'onunhandledrejection': true; - readonly 'origin': false; - readonly 'Path2D': false; - readonly 'performance': false; - readonly 'Performance': false; - readonly 'PerformanceEntry': false; - readonly 'PerformanceMark': false; - readonly 'PerformanceMeasure': false; - readonly 'PerformanceObserver': false; - readonly 'PerformanceObserverEntryList': false; - readonly 'PerformanceResourceTiming': false; - readonly 'PerformanceServerTiming': false; - readonly 'PeriodicSyncManager': false; - readonly 'Permissions': false; - readonly 'PermissionStatus': false; - readonly 'PERSISTENT': false; - readonly 'postMessage': false; - readonly 'PressureObserver': false; - readonly 'PressureRecord': false; - readonly 'ProgressEvent': false; - readonly 'PromiseRejectionEvent': false; - readonly 'PushManager': false; - readonly 'PushSubscription': false; - readonly 'PushSubscriptionOptions': false; - readonly 'queueMicrotask': false; - readonly 'ReadableByteStreamController': false; - readonly 'ReadableStream': false; - readonly 'ReadableStreamBYOBReader': false; - readonly 'ReadableStreamBYOBRequest': false; - readonly 'ReadableStreamDefaultController': false; - readonly 'ReadableStreamDefaultReader': false; - readonly 'removeEventListener': false; - readonly 'reportError': false; - readonly 'ReportingObserver': false; - readonly 'Request': false; - readonly 'requestAnimationFrame': false; - readonly 'Response': false; - readonly 'RTCEncodedAudioFrame': false; - readonly 'RTCEncodedVideoFrame': false; - readonly 'scheduler': false; - readonly 'Scheduler': false; - readonly 'SecurityPolicyViolationEvent': false; - readonly 'self': false; - readonly 'Serial': false; - readonly 'SerialPort': false; - readonly 'ServiceWorkerRegistration': false; - readonly 'setInterval': false; - readonly 'setTimeout': false; - readonly 'SourceBuffer': false; - readonly 'SourceBufferList': false; - readonly 'StorageBucket': false; - readonly 'StorageBucketManager': false; - readonly 'StorageManager': false; - readonly 'structuredClone': false; - readonly 'SubtleCrypto': false; - readonly 'SyncManager': false; - readonly 'TaskController': false; - readonly 'TaskPriorityChangeEvent': false; - readonly 'TaskSignal': false; - readonly 'TEMPORARY': false; - readonly 'TextDecoder': false; - readonly 'TextDecoderStream': false; - readonly 'TextEncoder': false; - readonly 'TextEncoderStream': false; - readonly 'TextMetrics': false; - readonly 'TransformStream': false; - readonly 'TransformStreamDefaultController': false; - readonly 'TrustedHTML': false; - readonly 'TrustedScript': false; - readonly 'TrustedScriptURL': false; - readonly 'TrustedTypePolicy': false; - readonly 'TrustedTypePolicyFactory': false; - readonly 'trustedTypes': false; - readonly 'URL': false; - readonly 'URLPattern': false; - readonly 'URLSearchParams': false; - readonly 'USB': false; - readonly 'USBAlternateInterface': false; - readonly 'USBConfiguration': false; - readonly 'USBConnectionEvent': false; - readonly 'USBDevice': false; - readonly 'USBEndpoint': false; - readonly 'USBInterface': false; - readonly 'USBInTransferResult': false; - readonly 'USBIsochronousInTransferPacket': false; - readonly 'USBIsochronousInTransferResult': false; - readonly 'USBIsochronousOutTransferPacket': false; - readonly 'USBIsochronousOutTransferResult': false; - readonly 'USBOutTransferResult': false; - readonly 'UserActivation': false; - readonly 'VideoColorSpace': false; - readonly 'VideoDecoder': false; - readonly 'VideoEncoder': false; - readonly 'VideoFrame': false; - readonly 'WebAssembly': false; - readonly 'WebGL2RenderingContext': false; - readonly 'WebGLActiveInfo': false; - readonly 'WebGLBuffer': false; - readonly 'WebGLContextEvent': false; - readonly 'WebGLFramebuffer': false; - readonly 'WebGLObject': false; - readonly 'WebGLProgram': false; - readonly 'WebGLQuery': false; - readonly 'WebGLRenderbuffer': false; - readonly 'WebGLRenderingContext': false; - readonly 'WebGLSampler': false; - readonly 'WebGLShader': false; - readonly 'WebGLShaderPrecisionFormat': false; - readonly 'WebGLSync': false; - readonly 'WebGLTexture': false; - readonly 'WebGLTransformFeedback': false; - readonly 'WebGLUniformLocation': false; - readonly 'WebGLVertexArrayObject': false; - readonly 'webkitRequestFileSystem': false; - readonly 'webkitRequestFileSystemSync': false; - readonly 'webkitResolveLocalFileSystemSyncURL': false; - readonly 'webkitResolveLocalFileSystemURL': false; - readonly 'WebSocket': false; - readonly 'WebSocketError': false; - readonly 'WebSocketStream': false; - readonly 'WebTransport': false; - readonly 'WebTransportBidirectionalStream': false; - readonly 'WebTransportDatagramDuplexStream': false; - readonly 'WebTransportError': false; - readonly 'WGSLLanguageFeatures': false; - readonly 'Worker': false; - readonly 'WorkerGlobalScope': false; - readonly 'WorkerLocation': false; - readonly 'WorkerNavigator': false; - readonly 'WritableStream': false; - readonly 'WritableStreamDefaultController': false; - readonly 'WritableStreamDefaultWriter': false; - readonly 'XMLHttpRequest': false; - readonly 'XMLHttpRequestEventTarget': false; - readonly 'XMLHttpRequestUpload': false; -} - -type GlobalsWsh = { - readonly 'ActiveXObject': false; - readonly 'CollectGarbage': false; - readonly 'Debug': false; - readonly 'Enumerator': false; - readonly 'GetObject': false; - readonly 'RuntimeObject': false; - readonly 'ScriptEngine': false; - readonly 'ScriptEngineBuildVersion': false; - readonly 'ScriptEngineMajorVersion': false; - readonly 'ScriptEngineMinorVersion': false; - readonly 'VBArray': false; - readonly 'WScript': false; - readonly 'WSH': false; -} - -type GlobalsYui = { - readonly 'YAHOO': false; - readonly 'YAHOO_config': false; - readonly 'YUI': false; - readonly 'YUI_config': false; -} - -type Globals = { - readonly 'amd': GlobalsAmd; - readonly 'applescript': GlobalsApplescript; - readonly 'atomtest': GlobalsAtomtest; - readonly 'browser': GlobalsBrowser; - readonly 'builtin': GlobalsBuiltin; - readonly 'chai': GlobalsChai; - readonly 'commonjs': GlobalsCommonjs; - readonly 'couch': GlobalsCouch; - readonly 'devtools': GlobalsDevtools; - readonly 'embertest': GlobalsEmbertest; - readonly 'es2015': GlobalsEs2015; - readonly 'es2016': GlobalsEs2016; - readonly 'es2017': GlobalsEs2017; - readonly 'es2018': GlobalsEs2018; - readonly 'es2019': GlobalsEs2019; - readonly 'es2020': GlobalsEs2020; - readonly 'es2021': GlobalsEs2021; - readonly 'es2022': GlobalsEs2022; - readonly 'es2023': GlobalsEs2023; - readonly 'es2024': GlobalsEs2024; - readonly 'es2025': GlobalsEs2025; - readonly 'es5': GlobalsEs5; - readonly 'greasemonkey': GlobalsGreasemonkey; - readonly 'jasmine': GlobalsJasmine; - readonly 'jest': GlobalsJest; - readonly 'jquery': GlobalsJquery; - readonly 'meteor': GlobalsMeteor; - readonly 'mocha': GlobalsMocha; - readonly 'mongo': GlobalsMongo; - readonly 'nashorn': GlobalsNashorn; - readonly 'node': GlobalsNode; - readonly 'nodeBuiltin': GlobalsNodeBuiltin; - readonly 'phantomjs': GlobalsPhantomjs; - readonly 'prototypejs': GlobalsPrototypejs; - readonly 'protractor': GlobalsProtractor; - readonly 'qunit': GlobalsQunit; - readonly 'rhino': GlobalsRhino; - readonly 'serviceworker': GlobalsServiceworker; - readonly 'shared-node-browser': GlobalsSharednodebrowser; - readonly 'shelljs': GlobalsShelljs; - readonly 'webextensions': GlobalsWebextensions; - readonly 'worker': GlobalsWorker; - readonly 'wsh': GlobalsWsh; - readonly 'yui': GlobalsYui; -} - -declare const globals: Globals; - -export = globals; \ No newline at end of file diff --git a/graphql/node_modules/globals/index.js b/graphql/node_modules/globals/index.js deleted file mode 100644 index a951582e..00000000 --- a/graphql/node_modules/globals/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = require('./globals.json'); diff --git a/graphql/node_modules/globals/license b/graphql/node_modules/globals/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/globals/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/globals/package.json b/graphql/node_modules/globals/package.json deleted file mode 100644 index acea53bf..00000000 --- a/graphql/node_modules/globals/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "name": "globals", - "version": "15.9.0", - "description": "Global identifiers from different JavaScript environments", - "license": "MIT", - "repository": "sindresorhus/globals", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "sideEffects": false, - "engines": { - "node": ">=18" - }, - "scripts": { - "test": "npm run build && xo && ava && tsd", - "prepare": "npm run build", - "update": "node scripts/update.mjs", - "update:browser": "node scripts/update.mjs --environment=browser", - "update:builtin": "node scripts/update.mjs --environment=builtin", - "update:nodeBuiltin": "node scripts/update.mjs --environment=nodeBuiltin", - "update:worker": "node scripts/update.mjs --environment=worker", - "update:shelljs": "node scripts/update.mjs --environment=shelljs", - "update:jest": "node scripts/update.mjs --environment=jest", - "build": "run-s build:data build:types", - "build:data": "node scripts/generate-data.mjs", - "build:types": "node scripts/generate-types.mjs" - }, - "files": [ - "index.js", - "index.d.ts", - "globals.json" - ], - "keywords": [ - "globals", - "global", - "identifiers", - "variables", - "vars", - "jshint", - "eslint", - "environments" - ], - "devDependencies": { - "ava": "^6.1.1", - "cheerio": "^1.0.0-rc.12", - "eslint-plugin-jest": "^27.9.0", - "execa": "^8.0.1", - "get-port": "^7.0.0", - "npm-run-all2": "^6.1.2", - "outdent": "^0.8.0", - "puppeteer": "^22.1.0", - "shelljs": "^0.8.5", - "tsd": "^0.30.4", - "type-fest": "^4.10.2", - "xo": "^0.57.0" - }, - "xo": { - "rules": { - "unicorn/prefer-module": "off" - }, - "overrides": [ - { - "files": [ - "data/*.mjs" - ], - "rules": { - "import/no-anonymous-default-export": "off", - "camelcase": "off", - "unicorn/filename-case": [ - "error", - { - "cases": { - "camelCase": true, - "kebabCase": true - } - } - ] - } - } - ] - }, - "tsd": { - "compilerOptions": { - "resolveJsonModule": true - } - } -} diff --git a/graphql/node_modules/globals/readme.md b/graphql/node_modules/globals/readme.md deleted file mode 100644 index 3407019d..00000000 --- a/graphql/node_modules/globals/readme.md +++ /dev/null @@ -1,42 +0,0 @@ -# globals - -> Global identifiers from different JavaScript environments - -It's just a [JSON file](globals.json), so you can use it in any environment. - -This package is used by ESLint 8 and earlier. For ESLint 9 and later, you should depend on this package directly in [your ESLint config](https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables). - -## Install - -```sh -npm install globals -``` - -## Usage - -```js -import globals from 'globals'; - -console.log(globals.browser); -/* -{ - addEventListener: false, - applicationCache: false, - ArrayBuffer: false, - atob: false, - … -} -*/ -``` - -Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise. - -For Node.js this package provides two sets of globals: - -- `globals.nodeBuiltin`: Globals available to all code running in Node.js. - These will usually be available as properties on the `globalThis` object and include `process`, `Buffer`, but not CommonJS arguments like `require`. - See: https://nodejs.org/api/globals.html -- `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments ("CommonJS module scope"). - See: https://nodejs.org/api/modules.html#modules_the_module_scope - -When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references. diff --git a/graphql/node_modules/globby/gitignore.js b/graphql/node_modules/globby/gitignore.js deleted file mode 100644 index 2f77baaa..00000000 --- a/graphql/node_modules/globby/gitignore.js +++ /dev/null @@ -1,120 +0,0 @@ -'use strict'; -const {promisify} = require('util'); -const fs = require('fs'); -const path = require('path'); -const fastGlob = require('fast-glob'); -const gitIgnore = require('ignore'); -const slash = require('slash'); - -const DEFAULT_IGNORE = [ - '**/node_modules/**', - '**/flow-typed/**', - '**/coverage/**', - '**/.git' -]; - -const readFileP = promisify(fs.readFile); - -const mapGitIgnorePatternTo = base => ignore => { - if (ignore.startsWith('!')) { - return '!' + path.posix.join(base, ignore.slice(1)); - } - - return path.posix.join(base, ignore); -}; - -const parseGitIgnore = (content, options) => { - const base = slash(path.relative(options.cwd, path.dirname(options.fileName))); - - return content - .split(/\r?\n/) - .filter(Boolean) - .filter(line => !line.startsWith('#')) - .map(mapGitIgnorePatternTo(base)); -}; - -const reduceIgnore = files => { - const ignores = gitIgnore(); - for (const file of files) { - ignores.add(parseGitIgnore(file.content, { - cwd: file.cwd, - fileName: file.filePath - })); - } - - return ignores; -}; - -const ensureAbsolutePathForCwd = (cwd, p) => { - cwd = slash(cwd); - if (path.isAbsolute(p)) { - if (slash(p).startsWith(cwd)) { - return p; - } - - throw new Error(`Path ${p} is not in cwd ${cwd}`); - } - - return path.join(cwd, p); -}; - -const getIsIgnoredPredecate = (ignores, cwd) => { - return p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p)))); -}; - -const getFile = async (file, cwd) => { - const filePath = path.join(cwd, file); - const content = await readFileP(filePath, 'utf8'); - - return { - cwd, - filePath, - content - }; -}; - -const getFileSync = (file, cwd) => { - const filePath = path.join(cwd, file); - const content = fs.readFileSync(filePath, 'utf8'); - - return { - cwd, - filePath, - content - }; -}; - -const normalizeOptions = ({ - ignore = [], - cwd = slash(process.cwd()) -} = {}) => { - return {ignore, cwd}; -}; - -module.exports = async options => { - options = normalizeOptions(options); - - const paths = await fastGlob('**/.gitignore', { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - - const files = await Promise.all(paths.map(file => getFile(file, options.cwd))); - const ignores = reduceIgnore(files); - - return getIsIgnoredPredecate(ignores, options.cwd); -}; - -module.exports.sync = options => { - options = normalizeOptions(options); - - const paths = fastGlob.sync('**/.gitignore', { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - - const files = paths.map(file => getFileSync(file, options.cwd)); - const ignores = reduceIgnore(files); - - return getIsIgnoredPredecate(ignores, options.cwd); -}; diff --git a/graphql/node_modules/globby/index.d.ts b/graphql/node_modules/globby/index.d.ts deleted file mode 100644 index 2e563fc1..00000000 --- a/graphql/node_modules/globby/index.d.ts +++ /dev/null @@ -1,186 +0,0 @@ -import {Options as FastGlobOptions, Entry as FastGlobEntry} from 'fast-glob'; - -declare namespace globby { - type ExpandDirectoriesOption = - | boolean - | readonly string[] - | {files?: readonly string[]; extensions?: readonly string[]}; - - type Entry = FastGlobEntry; - - interface GlobbyOptions extends FastGlobOptions { - /** - If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like in the example below. - - Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`. - - @default true - - @example - ``` - import globby = require('globby'); - - (async () => { - const paths = await globby('images', { - expandDirectories: { - files: ['cat', 'unicorn', '*.jpg'], - extensions: ['png'] - } - }); - - console.log(paths); - //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg'] - })(); - ``` - */ - readonly expandDirectories?: ExpandDirectoriesOption; - - /** - Respect ignore patterns in `.gitignore` files that apply to the globbed files. - - @default false - */ - readonly gitignore?: boolean; - } - - interface GlobTask { - readonly pattern: string; - readonly options: GlobbyOptions; - } - - interface GitignoreOptions { - readonly cwd?: string; - readonly ignore?: readonly string[]; - } - - type FilterFunction = (path: string) => boolean; -} - -interface Gitignore { - /** - @returns A filter function indicating whether a given path is ignored via a `.gitignore` file. - */ - sync: (options?: globby.GitignoreOptions) => globby.FilterFunction; - - /** - `.gitignore` files matched by the ignore config are not used for the resulting filter function. - - @returns A filter function indicating whether a given path is ignored via a `.gitignore` file. - - @example - ``` - import {gitignore} from 'globby'; - - (async () => { - const isIgnored = await gitignore(); - console.log(isIgnored('some/file')); - })(); - ``` - */ - (options?: globby.GitignoreOptions): Promise; -} - -declare const globby: { - /** - Find files and directories using glob patterns. - - Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`. - - @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package. - @returns The matching paths. - */ - sync: (( - patterns: string | readonly string[], - options: globby.GlobbyOptions & {objectMode: true} - ) => globby.Entry[]) & (( - patterns: string | readonly string[], - options?: globby.GlobbyOptions - ) => string[]); - - /** - Find files and directories using glob patterns. - - Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`. - - @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package. - @returns The stream of matching paths. - - @example - ``` - import globby = require('globby'); - - (async () => { - for await (const path of globby.stream('*.tmp')) { - console.log(path); - } - })(); - ``` - */ - stream: ( - patterns: string | readonly string[], - options?: globby.GlobbyOptions - ) => NodeJS.ReadableStream; - - /** - Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration. - - @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package. - @returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages. - */ - generateGlobTasks: ( - patterns: string | readonly string[], - options?: globby.GlobbyOptions - ) => globby.GlobTask[]; - - /** - Note that the options affect the results. - - This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options). - - @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3). - @returns Whether there are any special glob characters in the `patterns`. - */ - hasMagic: ( - patterns: string | readonly string[], - options?: FastGlobOptions - ) => boolean; - - readonly gitignore: Gitignore; - - ( - patterns: string | readonly string[], - options: globby.GlobbyOptions & {objectMode: true} - ): Promise; - - /** - Find files and directories using glob patterns. - - Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`. - - @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns). - @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package. - @returns The matching paths. - - @example - ``` - import globby = require('globby'); - - (async () => { - const paths = await globby(['*', '!cake']); - - console.log(paths); - //=> ['unicorn', 'rainbow'] - })(); - ``` - */ - ( - patterns: string | readonly string[], - options?: globby.GlobbyOptions - ): Promise; -}; - -export = globby; diff --git a/graphql/node_modules/globby/index.js b/graphql/node_modules/globby/index.js deleted file mode 100644 index b2d503bb..00000000 --- a/graphql/node_modules/globby/index.js +++ /dev/null @@ -1,181 +0,0 @@ -'use strict'; -const fs = require('fs'); -const arrayUnion = require('array-union'); -const merge2 = require('merge2'); -const fastGlob = require('fast-glob'); -const dirGlob = require('dir-glob'); -const gitignore = require('./gitignore'); -const {FilterStream, UniqueStream} = require('./stream-utils'); - -const DEFAULT_FILTER = () => false; - -const isNegative = pattern => pattern[0] === '!'; - -const assertPatternsInput = patterns => { - if (!patterns.every(pattern => typeof pattern === 'string')) { - throw new TypeError('Patterns must be a string or an array of strings'); - } -}; - -const checkCwdOption = (options = {}) => { - if (!options.cwd) { - return; - } - - let stat; - try { - stat = fs.statSync(options.cwd); - } catch { - return; - } - - if (!stat.isDirectory()) { - throw new Error('The `cwd` option must be a path to a directory'); - } -}; - -const getPathString = p => p.stats instanceof fs.Stats ? p.path : p; - -const generateGlobTasks = (patterns, taskOptions) => { - patterns = arrayUnion([].concat(patterns)); - assertPatternsInput(patterns); - checkCwdOption(taskOptions); - - const globTasks = []; - - taskOptions = { - ignore: [], - expandDirectories: true, - ...taskOptions - }; - - for (const [index, pattern] of patterns.entries()) { - if (isNegative(pattern)) { - continue; - } - - const ignore = patterns - .slice(index) - .filter(pattern => isNegative(pattern)) - .map(pattern => pattern.slice(1)); - - const options = { - ...taskOptions, - ignore: taskOptions.ignore.concat(ignore) - }; - - globTasks.push({pattern, options}); - } - - return globTasks; -}; - -const globDirs = (task, fn) => { - let options = {}; - if (task.options.cwd) { - options.cwd = task.options.cwd; - } - - if (Array.isArray(task.options.expandDirectories)) { - options = { - ...options, - files: task.options.expandDirectories - }; - } else if (typeof task.options.expandDirectories === 'object') { - options = { - ...options, - ...task.options.expandDirectories - }; - } - - return fn(task.pattern, options); -}; - -const getPattern = (task, fn) => task.options.expandDirectories ? globDirs(task, fn) : [task.pattern]; - -const getFilterSync = options => { - return options && options.gitignore ? - gitignore.sync({cwd: options.cwd, ignore: options.ignore}) : - DEFAULT_FILTER; -}; - -const globToTask = task => glob => { - const {options} = task; - if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) { - options.ignore = dirGlob.sync(options.ignore); - } - - return { - pattern: glob, - options - }; -}; - -module.exports = async (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - - const getFilter = async () => { - return options && options.gitignore ? - gitignore({cwd: options.cwd, ignore: options.ignore}) : - DEFAULT_FILTER; - }; - - const getTasks = async () => { - const tasks = await Promise.all(globTasks.map(async task => { - const globs = await getPattern(task, dirGlob); - return Promise.all(globs.map(globToTask(task))); - })); - - return arrayUnion(...tasks); - }; - - const [filter, tasks] = await Promise.all([getFilter(), getTasks()]); - const paths = await Promise.all(tasks.map(task => fastGlob(task.pattern, task.options))); - - return arrayUnion(...paths).filter(path_ => !filter(getPathString(path_))); -}; - -module.exports.sync = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - - const filter = getFilterSync(options); - - let matches = []; - for (const task of tasks) { - matches = arrayUnion(matches, fastGlob.sync(task.pattern, task.options)); - } - - return matches.filter(path_ => !filter(path_)); -}; - -module.exports.stream = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - - const filter = getFilterSync(options); - const filterStream = new FilterStream(p => !filter(p)); - const uniqueStream = new UniqueStream(); - - return merge2(tasks.map(task => fastGlob.stream(task.pattern, task.options))) - .pipe(filterStream) - .pipe(uniqueStream); -}; - -module.exports.generateGlobTasks = generateGlobTasks; - -module.exports.hasMagic = (patterns, options) => [] - .concat(patterns) - .some(pattern => fastGlob.isDynamicPattern(pattern, options)); - -module.exports.gitignore = gitignore; diff --git a/graphql/node_modules/globby/license b/graphql/node_modules/globby/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/globby/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/globby/package.json b/graphql/node_modules/globby/package.json deleted file mode 100644 index a458778e..00000000 --- a/graphql/node_modules/globby/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "globby", - "version": "11.1.0", - "description": "User-friendly glob matching", - "license": "MIT", - "repository": "sindresorhus/globby", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "bench": "npm update glob-stream fast-glob && matcha bench.js", - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "gitignore.js", - "stream-utils.js" - ], - "keywords": [ - "all", - "array", - "directories", - "expand", - "files", - "filesystem", - "filter", - "find", - "fnmatch", - "folders", - "fs", - "glob", - "globbing", - "globs", - "gulpfriendly", - "match", - "matcher", - "minimatch", - "multi", - "multiple", - "paths", - "pattern", - "patterns", - "traverse", - "util", - "utility", - "wildcard", - "wildcards", - "promise", - "gitignore", - "git" - ], - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^3.13.0", - "get-stream": "^6.0.0", - "glob-stream": "^6.1.0", - "globby": "sindresorhus/globby#main", - "matcha": "^0.7.0", - "rimraf": "^3.0.2", - "tsd": "^0.13.1", - "xo": "^0.33.1" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } -} diff --git a/graphql/node_modules/globby/readme.md b/graphql/node_modules/globby/readme.md deleted file mode 100644 index b39ae43e..00000000 --- a/graphql/node_modules/globby/readme.md +++ /dev/null @@ -1,170 +0,0 @@ -# globby - -> User-friendly glob matching - -Based on [`fast-glob`](https://github.com/mrmlnc/fast-glob) but adds a bunch of useful features. - -## Features - -- Promise API -- Multiple patterns -- Negated patterns: `['foo*', '!foobar']` -- Expands directories: `foo` → `foo/**/*` -- Supports `.gitignore` - -## Install - -``` -$ npm install globby -``` - -## Usage - -``` -├── unicorn -├── cake -└── rainbow -``` - -```js -const globby = require('globby'); - -(async () => { - const paths = await globby(['*', '!cake']); - - console.log(paths); - //=> ['unicorn', 'rainbow'] -})(); -``` - -## API - -Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`. - -### globby(patterns, options?) - -Returns a `Promise` of matching paths. - -#### patterns - -Type: `string | string[]` - -See supported `minimatch` [patterns](https://github.com/isaacs/minimatch#usage). - -#### options - -Type: `object` - -See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones below. - -##### expandDirectories - -Type: `boolean | string[] | object`\ -Default: `true` - -If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `object` with `files` and `extensions` like below: - -```js -const globby = require('globby'); - -(async () => { - const paths = await globby('images', { - expandDirectories: { - files: ['cat', 'unicorn', '*.jpg'], - extensions: ['png'] - } - }); - - console.log(paths); - //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg'] -})(); -``` - -Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`. - -##### gitignore - -Type: `boolean`\ -Default: `false` - -Respect ignore patterns in `.gitignore` files that apply to the globbed files. - -### globby.sync(patterns, options?) - -Returns `string[]` of matching paths. - -### globby.stream(patterns, options?) - -Returns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams) of matching paths. - -Since Node.js 10, [readable streams are iterable](https://nodejs.org/api/stream.html#stream_readable_symbol_asynciterator), so you can loop over glob matches in a [`for await...of` loop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) like this: - -```js -const globby = require('globby'); - -(async () => { - for await (const path of globby.stream('*.tmp')) { - console.log(path); - } -})(); -``` - -### globby.generateGlobTasks(patterns, options?) - -Returns an `object[]` in the format `{pattern: string, options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages. - -Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration. - -### globby.hasMagic(patterns, options?) - -Returns a `boolean` of whether there are any special glob characters in the `patterns`. - -Note that the options affect the results. - -This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options). - -### globby.gitignore(options?) - -Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file. - -Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function. - -```js -const {gitignore} = require('globby'); - -(async () => { - const isIgnored = await gitignore(); - console.log(isIgnored('some/file')); -})(); -``` - -### globby.gitignore.sync(options?) - -Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file. - -Takes the same options as `globby.gitignore`. - -## Globbing patterns - -Just a quick overview. - -- `*` matches any number of characters, but not `/` -- `?` matches a single character, but not `/` -- `**` matches any number of characters, including `/`, as long as it's the only thing in a path part -- `{}` allows for a comma-separated list of "or" expressions -- `!` at the beginning of a pattern will negate the match - -[Various patterns and expected matches.](https://github.com/sindresorhus/multimatch/blob/main/test/test.js) - -## globby for enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of globby and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-globby?utm_source=npm-globby&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -## Related - -- [multimatch](https://github.com/sindresorhus/multimatch) - Match against a list instead of the filesystem -- [matcher](https://github.com/sindresorhus/matcher) - Simple wildcard matching -- [del](https://github.com/sindresorhus/del) - Delete files and directories -- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed diff --git a/graphql/node_modules/globby/stream-utils.js b/graphql/node_modules/globby/stream-utils.js deleted file mode 100644 index 98aedc89..00000000 --- a/graphql/node_modules/globby/stream-utils.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; -const {Transform} = require('stream'); - -class ObjectTransform extends Transform { - constructor() { - super({ - objectMode: true - }); - } -} - -class FilterStream extends ObjectTransform { - constructor(filter) { - super(); - this._filter = filter; - } - - _transform(data, encoding, callback) { - if (this._filter(data)) { - this.push(data); - } - - callback(); - } -} - -class UniqueStream extends ObjectTransform { - constructor() { - super(); - this._pushed = new Set(); - } - - _transform(data, encoding, callback) { - if (!this._pushed.has(data)) { - this.push(data); - this._pushed.add(data); - } - - callback(); - } -} - -module.exports = { - FilterStream, - UniqueStream -}; diff --git a/graphql/node_modules/graphemer/CHANGELOG.md b/graphql/node_modules/graphemer/CHANGELOG.md deleted file mode 100644 index dc1dd423..00000000 --- a/graphql/node_modules/graphemer/CHANGELOG.md +++ /dev/null @@ -1,30 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [1.3.0] - 2021-12-13 - -### Added - -- Updated to include support for Unicode 14 - -## [1.2.0] - 2021-01-29 - -### Updated - -- Refactored to increase speed - -## [1.1.0] - 2020-09-14 - -### Added - -- Updated to include support for Unicode 13 - -## [1.0.0] - 2020-09-13 - -- Forked from work by @JLHwung on original `Grapheme-Splitter` library: https://github.com/JLHwung/grapheme-splitter/tree/next -- Converted to Typescript -- Added development and build tooling diff --git a/graphql/node_modules/graphemer/LICENSE b/graphql/node_modules/graphemer/LICENSE deleted file mode 100644 index 51f38310..00000000 --- a/graphql/node_modules/graphemer/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright 2020 Filament (Anomalous Technologies Limited) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/graphemer/README.md b/graphql/node_modules/graphemer/README.md deleted file mode 100644 index 0ac98ad3..00000000 --- a/graphql/node_modules/graphemer/README.md +++ /dev/null @@ -1,132 +0,0 @@ -# Graphemer: Unicode Character Splitter 🪓 - -## Introduction - -This library continues the work of [Grapheme Splitter](https://github.com/orling/grapheme-splitter) and supports the following unicode versions: - -- Unicode 15 and below `[v1.4.0]` -- Unicode 14 and below `[v1.3.0]` -- Unicode 13 and below `[v1.1.0]` -- Unicode 11 and below `[v1.0.0]` (Unicode 10 supported by `grapheme-splitter`) - -In JavaScript there is not always a one-to-one relationship between string characters and what a user would call a separate visual "letter". Some symbols are represented by several characters. This can cause issues when splitting strings and inadvertently cutting a multi-char letter in half, or when you need the actual number of letters in a string. - -For example, emoji characters like "🌷","🎁","💩","😜" and "👍" are represented by two JavaScript characters each (high surrogate and low surrogate). That is, - -```javascript -'🌷'.length == 2; -``` - -The combined emoji are even longer: - -```javascript -'🏳️‍🌈'.length == 6; -``` - -What's more, some languages often include combining marks - characters that are used to modify the letters before them. Common examples are the German letter ü and the Spanish letter ñ. Sometimes they can be represented alternatively both as a single character and as a letter + combining mark, with both forms equally valid: - -```javascript -var two = 'ñ'; // unnormalized two-char n+◌̃, i.e. "\u006E\u0303"; -var one = 'ñ'; // normalized single-char, i.e. "\u00F1" - -console.log(one != two); // prints 'true' -``` - -Unicode normalization, as performed by the popular punycode.js library or ECMAScript 6's String.normalize, can **sometimes** fix those differences and turn two-char sequences into single characters. But it is **not** enough in all cases. Some languages like Hindi make extensive use of combining marks on their letters, that have no dedicated single-codepoint Unicode sequences, due to the sheer number of possible combinations. -For example, the Hindi word "अनुच्छेद" is comprised of 5 letters and 3 combining marks: - -अ + न + ु + च + ् + छ + े + द - -which is in fact just 5 user-perceived letters: - -अ + नु + च् + छे + द - -and which Unicode normalization would not combine properly. -There are also the unusual letter+combining mark combinations which have no dedicated Unicode codepoint. The string Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘ obviously has 5 separate letters, but is in fact comprised of 58 JavaScript characters, most of which are combining marks. - -Enter the `graphemer` library. It can be used to properly split JavaScript strings into what a human user would call separate letters (or "extended grapheme clusters" in Unicode terminology), no matter what their internal representation is. It is an implementation on the [Default Grapheme Cluster Boundary](http://unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table) of [UAX #29](http://www.unicode.org/reports/tr29/). - -## Installation - -Install `graphemer` using the NPM command below: - -``` -$ npm i graphemer -``` - -## Usage - -If you're using [Typescript](https://www.typescriptlang.org/) or a compiler like [Babel](https://babeljs.io/) (or something like Create React App) things are pretty simple; just import, initialize and use! - -```javascript -import Graphemer from 'graphemer'; - -const splitter = new Graphemer(); - -// split the string to an array of grapheme clusters (one string each) -const graphemes = splitter.splitGraphemes(string); - -// iterate the string to an iterable iterator of grapheme clusters (one string each) -const graphemeIterator = splitter.iterateGraphemes(string); - -// or do this if you just need their number -const graphemeCount = splitter.countGraphemes(string); -``` - -If you're using vanilla Node you can use the `require()` method. - -```javascript -const Graphemer = require('graphemer').default; - -const splitter = new Graphemer(); - -const graphemes = splitter.splitGraphemes(string); -``` - -## Examples - -```javascript -import Graphemer from 'graphemer'; - -const splitter = new Graphemer(); - -// plain latin alphabet - nothing spectacular -splitter.splitGraphemes('abcd'); // returns ["a", "b", "c", "d"] - -// two-char emojis and six-char combined emoji -splitter.splitGraphemes('🌷🎁💩😜👍🏳️‍🌈'); // returns ["🌷","🎁","💩","😜","👍","🏳️‍🌈"] - -// diacritics as combining marks, 10 JavaScript chars -splitter.splitGraphemes('Ĺo͂řȩm̅'); // returns ["Ĺ","o͂","ř","ȩ","m̅"] - -// individual Korean characters (Jamo), 4 JavaScript chars -splitter.splitGraphemes('뎌쉐'); // returns ["뎌","쉐"] - -// Hindi text with combining marks, 8 JavaScript chars -splitter.splitGraphemes('अनुच्छेद'); // returns ["अ","नु","च्","छे","द"] - -// demonic multiple combining marks, 75 JavaScript chars -splitter.splitGraphemes('Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞'); // returns ["Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍","A̴̵̜̰͔ͫ͗͢","L̠ͨͧͩ͘","G̴̻͈͍͔̹̑͗̎̅͛́","Ǫ̵̹̻̝̳͂̌̌͘","!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞"] -``` - -## TypeScript - -Graphemer is built with TypeScript and, of course, includes type declarations. - -```javascript -import Graphemer from 'graphemer'; - -const splitter = new Graphemer(); - -const split: string[] = splitter.splitGraphemes('Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞'); -``` - -## Contributing - -See [Contribution Guide](./CONTRIBUTING.md). - -## Acknowledgements - -This library is a fork of the incredible work done by Orlin Georgiev and Huáng Jùnliàng at https://github.com/orling/grapheme-splitter. - -The original library was heavily influenced by Devon Govett's excellent [grapheme-breaker](https://github.com/devongovett/grapheme-breaker) CoffeeScript library. diff --git a/graphql/node_modules/graphemer/lib/Graphemer.d.ts b/graphql/node_modules/graphemer/lib/Graphemer.d.ts deleted file mode 100644 index a89b8cbc..00000000 --- a/graphql/node_modules/graphemer/lib/Graphemer.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import GraphemerIterator from './GraphemerIterator'; -export default class Graphemer { - /** - * Returns the next grapheme break in the string after the given index - * @param string {string} - * @param index {number} - * @returns {number} - */ - static nextBreak(string: string, index: number): number; - /** - * Breaks the given string into an array of grapheme clusters - * @param str {string} - * @returns {string[]} - */ - splitGraphemes(str: string): string[]; - /** - * Returns an iterator of grapheme clusters in the given string - * @param str {string} - * @returns {GraphemerIterator} - */ - iterateGraphemes(str: string): GraphemerIterator; - /** - * Returns the number of grapheme clusters in the given string - * @param str {string} - * @returns {number} - */ - countGraphemes(str: string): number; - /** - * Given a Unicode code point, determines this symbol's grapheme break property - * @param code {number} Unicode code point - * @returns {number} - */ - static getGraphemeBreakProperty(code: number): number; - /** - * Given a Unicode code point, returns if symbol is an extended pictographic or some other break - * @param code {number} Unicode code point - * @returns {number} - */ - static getEmojiProperty(code: number): number; -} -//# sourceMappingURL=Graphemer.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/Graphemer.d.ts.map b/graphql/node_modules/graphemer/lib/Graphemer.d.ts.map deleted file mode 100644 index 692b7623..00000000 --- a/graphql/node_modules/graphemer/lib/Graphemer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Graphemer.d.ts","sourceRoot":"","sources":["../src/Graphemer.ts"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IA2CvD;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE;IAcrC;;;;OAIG;IACH,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB;IAIhD;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAcnC;;;;OAIG;IACH,MAAM,CAAC,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAoySrD;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CA47B9C"} \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/Graphemer.js b/graphql/node_modules/graphemer/lib/Graphemer.js deleted file mode 100644 index 8ed00ca5..00000000 --- a/graphql/node_modules/graphemer/lib/Graphemer.js +++ /dev/null @@ -1,11959 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const boundaries_1 = require("./boundaries"); -const GraphemerHelper_1 = __importDefault(require("./GraphemerHelper")); -const GraphemerIterator_1 = __importDefault(require("./GraphemerIterator")); -class Graphemer { - /** - * Returns the next grapheme break in the string after the given index - * @param string {string} - * @param index {number} - * @returns {number} - */ - static nextBreak(string, index) { - if (index === undefined) { - index = 0; - } - if (index < 0) { - return 0; - } - if (index >= string.length - 1) { - return string.length; - } - const prevCP = GraphemerHelper_1.default.codePointAt(string, index); - const prev = Graphemer.getGraphemeBreakProperty(prevCP); - const prevEmoji = Graphemer.getEmojiProperty(prevCP); - const mid = []; - const midEmoji = []; - for (let i = index + 1; i < string.length; i++) { - // check for already processed low surrogates - if (GraphemerHelper_1.default.isSurrogate(string, i - 1)) { - continue; - } - const nextCP = GraphemerHelper_1.default.codePointAt(string, i); - const next = Graphemer.getGraphemeBreakProperty(nextCP); - const nextEmoji = Graphemer.getEmojiProperty(nextCP); - if (GraphemerHelper_1.default.shouldBreak(prev, mid, next, prevEmoji, midEmoji, nextEmoji)) { - return i; - } - mid.push(next); - midEmoji.push(nextEmoji); - } - return string.length; - } - /** - * Breaks the given string into an array of grapheme clusters - * @param str {string} - * @returns {string[]} - */ - splitGraphemes(str) { - const res = []; - let index = 0; - let brk; - while ((brk = Graphemer.nextBreak(str, index)) < str.length) { - res.push(str.slice(index, brk)); - index = brk; - } - if (index < str.length) { - res.push(str.slice(index)); - } - return res; - } - /** - * Returns an iterator of grapheme clusters in the given string - * @param str {string} - * @returns {GraphemerIterator} - */ - iterateGraphemes(str) { - return new GraphemerIterator_1.default(str, Graphemer.nextBreak); - } - /** - * Returns the number of grapheme clusters in the given string - * @param str {string} - * @returns {number} - */ - countGraphemes(str) { - let count = 0; - let index = 0; - let brk; - while ((brk = Graphemer.nextBreak(str, index)) < str.length) { - index = brk; - count++; - } - if (index < str.length) { - count++; - } - return count; - } - /** - * Given a Unicode code point, determines this symbol's grapheme break property - * @param code {number} Unicode code point - * @returns {number} - */ - static getGraphemeBreakProperty(code) { - // Grapheme break property taken from: - // https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/GraphemeBreakProperty.txt - // and generated by - // node ./scripts/generate-grapheme-break.js - if (code < 0xbf09) { - if (code < 0xac54) { - if (code < 0x102d) { - if (code < 0xb02) { - if (code < 0x93b) { - if (code < 0x6df) { - if (code < 0x5bf) { - if (code < 0x7f) { - if (code < 0xb) { - if (code < 0xa) { - // Cc [10] .. - if (0x0 <= code && code <= 0x9) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Cc - if (0xa === code) { - return boundaries_1.CLUSTER_BREAK.LF; - } - } - } - else { - if (code < 0xd) { - // Cc [2] .. - if (0xb <= code && code <= 0xc) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - if (code < 0xe) { - // Cc - if (0xd === code) { - return boundaries_1.CLUSTER_BREAK.CR; - } - } - else { - // Cc [18] .. - if (0xe <= code && code <= 0x1f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - } - } - } - else { - if (code < 0x300) { - if (code < 0xad) { - // Cc [33] .. - if (0x7f <= code && code <= 0x9f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Cf SOFT HYPHEN - if (0xad === code) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - } - else { - if (code < 0x483) { - // Mn [112] COMBINING GRAVE ACCENT..COMBINING LATIN SMALL LETTER X - if (0x300 <= code && code <= 0x36f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x591) { - // Mn [5] COMBINING CYRILLIC TITLO..COMBINING CYRILLIC POKRYTIE - // Me [2] COMBINING CYRILLIC HUNDRED THOUSANDS SIGN..COMBINING CYRILLIC MILLIONS SIGN - if (0x483 <= code && code <= 0x489) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [45] HEBREW ACCENT ETNAHTA..HEBREW POINT METEG - if (0x591 <= code && code <= 0x5bd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x610) { - if (code < 0x5c4) { - if (code < 0x5c1) { - // Mn HEBREW POINT RAFE - if (0x5bf === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] HEBREW POINT SHIN DOT..HEBREW POINT SIN DOT - if (0x5c1 <= code && code <= 0x5c2) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x5c7) { - // Mn [2] HEBREW MARK UPPER DOT..HEBREW MARK LOWER DOT - if (0x5c4 <= code && code <= 0x5c5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x600) { - // Mn HEBREW POINT QAMATS QATAN - if (0x5c7 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf [6] ARABIC NUMBER SIGN..ARABIC NUMBER MARK ABOVE - if (0x600 <= code && code <= 0x605) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - } - } - } - else { - if (code < 0x670) { - if (code < 0x61c) { - // Mn [11] ARABIC SIGN SALLALLAHOU ALAYHE WASSALLAM..ARABIC SMALL KASRA - if (0x610 <= code && code <= 0x61a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x64b) { - // Cf ARABIC LETTER MARK - if (0x61c === code) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Mn [21] ARABIC FATHATAN..ARABIC WAVY HAMZA BELOW - if (0x64b <= code && code <= 0x65f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x6d6) { - // Mn ARABIC LETTER SUPERSCRIPT ALEF - if (0x670 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x6dd) { - // Mn [7] ARABIC SMALL HIGH LIGATURE SAD WITH LAM WITH ALEF MAKSURA..ARABIC SMALL HIGH SEEN - if (0x6d6 <= code && code <= 0x6dc) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf ARABIC END OF AYAH - if (0x6dd === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - } - } - } - } - } - else { - if (code < 0x81b) { - if (code < 0x730) { - if (code < 0x6ea) { - if (code < 0x6e7) { - // Mn [6] ARABIC SMALL HIGH ROUNDED ZERO..ARABIC SMALL HIGH MADDA - if (0x6df <= code && code <= 0x6e4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] ARABIC SMALL HIGH YEH..ARABIC SMALL HIGH NOON - if (0x6e7 <= code && code <= 0x6e8) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x70f) { - // Mn [4] ARABIC EMPTY CENTRE LOW STOP..ARABIC SMALL LOW MEEM - if (0x6ea <= code && code <= 0x6ed) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf SYRIAC ABBREVIATION MARK - if (0x70f === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - // Mn SYRIAC LETTER SUPERSCRIPT ALAPH - if (0x711 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x7eb) { - if (code < 0x7a6) { - // Mn [27] SYRIAC PTHAHA ABOVE..SYRIAC BARREKH - if (0x730 <= code && code <= 0x74a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [11] THAANA ABAFILI..THAANA SUKUN - if (0x7a6 <= code && code <= 0x7b0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x7fd) { - // Mn [9] NKO COMBINING SHORT HIGH TONE..NKO COMBINING DOUBLE DOT ABOVE - if (0x7eb <= code && code <= 0x7f3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x816) { - // Mn NKO DANTAYALAN - if (0x7fd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [4] SAMARITAN MARK IN..SAMARITAN MARK DAGESH - if (0x816 <= code && code <= 0x819) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x898) { - if (code < 0x829) { - if (code < 0x825) { - // Mn [9] SAMARITAN MARK EPENTHETIC YUT..SAMARITAN VOWEL SIGN A - if (0x81b <= code && code <= 0x823) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] SAMARITAN VOWEL SIGN SHORT A..SAMARITAN VOWEL SIGN U - if (0x825 <= code && code <= 0x827) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x859) { - // Mn [5] SAMARITAN VOWEL SIGN LONG I..SAMARITAN MARK NEQUDAA - if (0x829 <= code && code <= 0x82d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x890) { - // Mn [3] MANDAIC AFFRICATION MARK..MANDAIC GEMINATION MARK - if (0x859 <= code && code <= 0x85b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf [2] ARABIC POUND MARK ABOVE..ARABIC PIASTRE MARK ABOVE - if (0x890 <= code && code <= 0x891) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - } - } - } - else { - if (code < 0x8e3) { - if (code < 0x8ca) { - // Mn [8] ARABIC SMALL HIGH WORD AL-JUZ..ARABIC HALF MADDA OVER MADDA - if (0x898 <= code && code <= 0x89f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x8e2) { - // Mn [24] ARABIC SMALL HIGH FARSI YEH..ARABIC SMALL HIGH SIGN SAFHA - if (0x8ca <= code && code <= 0x8e1) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf ARABIC DISPUTED END OF AYAH - if (0x8e2 === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - } - } - else { - if (code < 0x903) { - // Mn [32] ARABIC TURNED DAMMA BELOW..DEVANAGARI SIGN ANUSVARA - if (0x8e3 <= code && code <= 0x902) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc DEVANAGARI SIGN VISARGA - if (0x903 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn DEVANAGARI VOWEL SIGN OE - if (0x93a === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0xa01) { - if (code < 0x982) { - if (code < 0x94d) { - if (code < 0x93e) { - // Mc DEVANAGARI VOWEL SIGN OOE - if (0x93b === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn DEVANAGARI SIGN NUKTA - if (0x93c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x941) { - // Mc [3] DEVANAGARI VOWEL SIGN AA..DEVANAGARI VOWEL SIGN II - if (0x93e <= code && code <= 0x940) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x949) { - // Mn [8] DEVANAGARI VOWEL SIGN U..DEVANAGARI VOWEL SIGN AI - if (0x941 <= code && code <= 0x948) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [4] DEVANAGARI VOWEL SIGN CANDRA O..DEVANAGARI VOWEL SIGN AU - if (0x949 <= code && code <= 0x94c) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x951) { - if (code < 0x94e) { - // Mn DEVANAGARI SIGN VIRAMA - if (0x94d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] DEVANAGARI VOWEL SIGN PRISHTHAMATRA E..DEVANAGARI VOWEL SIGN AW - if (0x94e <= code && code <= 0x94f) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x962) { - // Mn [7] DEVANAGARI STRESS SIGN UDATTA..DEVANAGARI VOWEL SIGN UUE - if (0x951 <= code && code <= 0x957) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x981) { - // Mn [2] DEVANAGARI VOWEL SIGN VOCALIC L..DEVANAGARI VOWEL SIGN VOCALIC LL - if (0x962 <= code && code <= 0x963) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn BENGALI SIGN CANDRABINDU - if (0x981 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x9c7) { - if (code < 0x9be) { - if (code < 0x9bc) { - // Mc [2] BENGALI SIGN ANUSVARA..BENGALI SIGN VISARGA - if (0x982 <= code && code <= 0x983) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn BENGALI SIGN NUKTA - if (0x9bc === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x9bf) { - // Mc BENGALI VOWEL SIGN AA - if (0x9be === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x9c1) { - // Mc [2] BENGALI VOWEL SIGN I..BENGALI VOWEL SIGN II - if (0x9bf <= code && code <= 0x9c0) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] BENGALI VOWEL SIGN U..BENGALI VOWEL SIGN VOCALIC RR - if (0x9c1 <= code && code <= 0x9c4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x9d7) { - if (code < 0x9cb) { - // Mc [2] BENGALI VOWEL SIGN E..BENGALI VOWEL SIGN AI - if (0x9c7 <= code && code <= 0x9c8) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x9cd) { - // Mc [2] BENGALI VOWEL SIGN O..BENGALI VOWEL SIGN AU - if (0x9cb <= code && code <= 0x9cc) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn BENGALI SIGN VIRAMA - if (0x9cd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x9e2) { - // Mc BENGALI AU LENGTH MARK - if (0x9d7 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x9fe) { - // Mn [2] BENGALI VOWEL SIGN VOCALIC L..BENGALI VOWEL SIGN VOCALIC LL - if (0x9e2 <= code && code <= 0x9e3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn BENGALI SANDHI MARK - if (0x9fe === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0xa83) { - if (code < 0xa47) { - if (code < 0xa3c) { - if (code < 0xa03) { - // Mn [2] GURMUKHI SIGN ADAK BINDI..GURMUKHI SIGN BINDI - if (0xa01 <= code && code <= 0xa02) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc GURMUKHI SIGN VISARGA - if (0xa03 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0xa3e) { - // Mn GURMUKHI SIGN NUKTA - if (0xa3c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa41) { - // Mc [3] GURMUKHI VOWEL SIGN AA..GURMUKHI VOWEL SIGN II - if (0xa3e <= code && code <= 0xa40) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] GURMUKHI VOWEL SIGN U..GURMUKHI VOWEL SIGN UU - if (0xa41 <= code && code <= 0xa42) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xa70) { - if (code < 0xa4b) { - // Mn [2] GURMUKHI VOWEL SIGN EE..GURMUKHI VOWEL SIGN AI - if (0xa47 <= code && code <= 0xa48) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa51) { - // Mn [3] GURMUKHI VOWEL SIGN OO..GURMUKHI SIGN VIRAMA - if (0xa4b <= code && code <= 0xa4d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn GURMUKHI SIGN UDAAT - if (0xa51 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xa75) { - // Mn [2] GURMUKHI TIPPI..GURMUKHI ADDAK - if (0xa70 <= code && code <= 0xa71) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa81) { - // Mn GURMUKHI SIGN YAKASH - if (0xa75 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] GUJARATI SIGN CANDRABINDU..GUJARATI SIGN ANUSVARA - if (0xa81 <= code && code <= 0xa82) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xac9) { - if (code < 0xabe) { - // Mc GUJARATI SIGN VISARGA - if (0xa83 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn GUJARATI SIGN NUKTA - if (0xabc === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xac1) { - // Mc [3] GUJARATI VOWEL SIGN AA..GUJARATI VOWEL SIGN II - if (0xabe <= code && code <= 0xac0) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xac7) { - // Mn [5] GUJARATI VOWEL SIGN U..GUJARATI VOWEL SIGN CANDRA E - if (0xac1 <= code && code <= 0xac5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] GUJARATI VOWEL SIGN E..GUJARATI VOWEL SIGN AI - if (0xac7 <= code && code <= 0xac8) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xae2) { - if (code < 0xacb) { - // Mc GUJARATI VOWEL SIGN CANDRA O - if (0xac9 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xacd) { - // Mc [2] GUJARATI VOWEL SIGN O..GUJARATI VOWEL SIGN AU - if (0xacb <= code && code <= 0xacc) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn GUJARATI SIGN VIRAMA - if (0xacd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xafa) { - // Mn [2] GUJARATI VOWEL SIGN VOCALIC L..GUJARATI VOWEL SIGN VOCALIC LL - if (0xae2 <= code && code <= 0xae3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xb01) { - // Mn [6] GUJARATI SIGN SUKUN..GUJARATI SIGN TWO-CIRCLE NUKTA ABOVE - if (0xafa <= code && code <= 0xaff) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn ORIYA SIGN CANDRABINDU - if (0xb01 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xcf3) { - if (code < 0xc04) { - if (code < 0xb82) { - if (code < 0xb47) { - if (code < 0xb3e) { - if (code < 0xb3c) { - // Mc [2] ORIYA SIGN ANUSVARA..ORIYA SIGN VISARGA - if (0xb02 <= code && code <= 0xb03) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn ORIYA SIGN NUKTA - if (0xb3c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xb40) { - // Mc ORIYA VOWEL SIGN AA - // Mn ORIYA VOWEL SIGN I - if (0xb3e <= code && code <= 0xb3f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xb41) { - // Mc ORIYA VOWEL SIGN II - if (0xb40 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] ORIYA VOWEL SIGN U..ORIYA VOWEL SIGN VOCALIC RR - if (0xb41 <= code && code <= 0xb44) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xb4d) { - if (code < 0xb4b) { - // Mc [2] ORIYA VOWEL SIGN E..ORIYA VOWEL SIGN AI - if (0xb47 <= code && code <= 0xb48) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc [2] ORIYA VOWEL SIGN O..ORIYA VOWEL SIGN AU - if (0xb4b <= code && code <= 0xb4c) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0xb55) { - // Mn ORIYA SIGN VIRAMA - if (0xb4d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xb62) { - // Mn [2] ORIYA SIGN OVERLINE..ORIYA AI LENGTH MARK - // Mc ORIYA AU LENGTH MARK - if (0xb55 <= code && code <= 0xb57) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] ORIYA VOWEL SIGN VOCALIC L..ORIYA VOWEL SIGN VOCALIC LL - if (0xb62 <= code && code <= 0xb63) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xbc6) { - if (code < 0xbbf) { - // Mn TAMIL SIGN ANUSVARA - if (0xb82 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc TAMIL VOWEL SIGN AA - if (0xbbe === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xbc0) { - // Mc TAMIL VOWEL SIGN I - if (0xbbf === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xbc1) { - // Mn TAMIL VOWEL SIGN II - if (0xbc0 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] TAMIL VOWEL SIGN U..TAMIL VOWEL SIGN UU - if (0xbc1 <= code && code <= 0xbc2) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0xbd7) { - if (code < 0xbca) { - // Mc [3] TAMIL VOWEL SIGN E..TAMIL VOWEL SIGN AI - if (0xbc6 <= code && code <= 0xbc8) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xbcd) { - // Mc [3] TAMIL VOWEL SIGN O..TAMIL VOWEL SIGN AU - if (0xbca <= code && code <= 0xbcc) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn TAMIL SIGN VIRAMA - if (0xbcd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xc00) { - // Mc TAMIL AU LENGTH MARK - if (0xbd7 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xc01) { - // Mn TELUGU SIGN COMBINING CANDRABINDU ABOVE - if (0xc00 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] TELUGU SIGN CANDRABINDU..TELUGU SIGN VISARGA - if (0xc01 <= code && code <= 0xc03) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - else { - if (code < 0xcbe) { - if (code < 0xc4a) { - if (code < 0xc3e) { - // Mn TELUGU SIGN COMBINING ANUSVARA ABOVE - if (0xc04 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn TELUGU SIGN NUKTA - if (0xc3c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xc41) { - // Mn [3] TELUGU VOWEL SIGN AA..TELUGU VOWEL SIGN II - if (0xc3e <= code && code <= 0xc40) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xc46) { - // Mc [4] TELUGU VOWEL SIGN U..TELUGU VOWEL SIGN VOCALIC RR - if (0xc41 <= code && code <= 0xc44) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [3] TELUGU VOWEL SIGN E..TELUGU VOWEL SIGN AI - if (0xc46 <= code && code <= 0xc48) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xc81) { - if (code < 0xc55) { - // Mn [4] TELUGU VOWEL SIGN O..TELUGU SIGN VIRAMA - if (0xc4a <= code && code <= 0xc4d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xc62) { - // Mn [2] TELUGU LENGTH MARK..TELUGU AI LENGTH MARK - if (0xc55 <= code && code <= 0xc56) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] TELUGU VOWEL SIGN VOCALIC L..TELUGU VOWEL SIGN VOCALIC LL - if (0xc62 <= code && code <= 0xc63) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xc82) { - // Mn KANNADA SIGN CANDRABINDU - if (0xc81 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xcbc) { - // Mc [2] KANNADA SIGN ANUSVARA..KANNADA SIGN VISARGA - if (0xc82 <= code && code <= 0xc83) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn KANNADA SIGN NUKTA - if (0xcbc === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xcc6) { - if (code < 0xcc0) { - // Mc KANNADA VOWEL SIGN AA - if (0xcbe === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn KANNADA VOWEL SIGN I - if (0xcbf === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xcc2) { - // Mc [2] KANNADA VOWEL SIGN II..KANNADA VOWEL SIGN U - if (0xcc0 <= code && code <= 0xcc1) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xcc3) { - // Mc KANNADA VOWEL SIGN UU - if (0xcc2 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] KANNADA VOWEL SIGN VOCALIC R..KANNADA VOWEL SIGN VOCALIC RR - if (0xcc3 <= code && code <= 0xcc4) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0xccc) { - if (code < 0xcc7) { - // Mn KANNADA VOWEL SIGN E - if (0xcc6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xcca) { - // Mc [2] KANNADA VOWEL SIGN EE..KANNADA VOWEL SIGN AI - if (0xcc7 <= code && code <= 0xcc8) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc [2] KANNADA VOWEL SIGN O..KANNADA VOWEL SIGN OO - if (0xcca <= code && code <= 0xccb) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0xcd5) { - // Mn [2] KANNADA VOWEL SIGN AU..KANNADA SIGN VIRAMA - if (0xccc <= code && code <= 0xccd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xce2) { - // Mc [2] KANNADA LENGTH MARK..KANNADA AI LENGTH MARK - if (0xcd5 <= code && code <= 0xcd6) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] KANNADA VOWEL SIGN VOCALIC L..KANNADA VOWEL SIGN VOCALIC LL - if (0xce2 <= code && code <= 0xce3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - else { - if (code < 0xddf) { - if (code < 0xd4e) { - if (code < 0xd3f) { - if (code < 0xd02) { - if (code < 0xd00) { - // Mc KANNADA SIGN COMBINING ANUSVARA ABOVE RIGHT - if (0xcf3 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] MALAYALAM SIGN COMBINING ANUSVARA ABOVE..MALAYALAM SIGN CANDRABINDU - if (0xd00 <= code && code <= 0xd01) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xd3b) { - // Mc [2] MALAYALAM SIGN ANUSVARA..MALAYALAM SIGN VISARGA - if (0xd02 <= code && code <= 0xd03) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xd3e) { - // Mn [2] MALAYALAM SIGN VERTICAL BAR VIRAMA..MALAYALAM SIGN CIRCULAR VIRAMA - if (0xd3b <= code && code <= 0xd3c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc MALAYALAM VOWEL SIGN AA - if (0xd3e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xd46) { - if (code < 0xd41) { - // Mc [2] MALAYALAM VOWEL SIGN I..MALAYALAM VOWEL SIGN II - if (0xd3f <= code && code <= 0xd40) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] MALAYALAM VOWEL SIGN U..MALAYALAM VOWEL SIGN VOCALIC RR - if (0xd41 <= code && code <= 0xd44) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xd4a) { - // Mc [3] MALAYALAM VOWEL SIGN E..MALAYALAM VOWEL SIGN AI - if (0xd46 <= code && code <= 0xd48) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xd4d) { - // Mc [3] MALAYALAM VOWEL SIGN O..MALAYALAM VOWEL SIGN AU - if (0xd4a <= code && code <= 0xd4c) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn MALAYALAM SIGN VIRAMA - if (0xd4d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xdca) { - if (code < 0xd62) { - // Lo MALAYALAM LETTER DOT REPH - if (0xd4e === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - // Mc MALAYALAM AU LENGTH MARK - if (0xd57 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xd81) { - // Mn [2] MALAYALAM VOWEL SIGN VOCALIC L..MALAYALAM VOWEL SIGN VOCALIC LL - if (0xd62 <= code && code <= 0xd63) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xd82) { - // Mn SINHALA SIGN CANDRABINDU - if (0xd81 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SINHALA SIGN ANUSVARAYA..SINHALA SIGN VISARGAYA - if (0xd82 <= code && code <= 0xd83) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0xdd2) { - if (code < 0xdcf) { - // Mn SINHALA SIGN AL-LAKUNA - if (0xdca === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xdd0) { - // Mc SINHALA VOWEL SIGN AELA-PILLA - if (0xdcf === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SINHALA VOWEL SIGN KETTI AEDA-PILLA..SINHALA VOWEL SIGN DIGA AEDA-PILLA - if (0xdd0 <= code && code <= 0xdd1) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0xdd6) { - // Mn [3] SINHALA VOWEL SIGN KETTI IS-PILLA..SINHALA VOWEL SIGN KETTI PAA-PILLA - if (0xdd2 <= code && code <= 0xdd4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xdd8) { - // Mn SINHALA VOWEL SIGN DIGA PAA-PILLA - if (0xdd6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [7] SINHALA VOWEL SIGN GAETTA-PILLA..SINHALA VOWEL SIGN KOMBUVA HAA GAYANUKITTA - if (0xdd8 <= code && code <= 0xdde) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - else { - if (code < 0xf35) { - if (code < 0xe47) { - if (code < 0xe31) { - if (code < 0xdf2) { - // Mc SINHALA VOWEL SIGN GAYANUKITTA - if (0xddf === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SINHALA VOWEL SIGN DIGA GAETTA-PILLA..SINHALA VOWEL SIGN DIGA GAYANUKITTA - if (0xdf2 <= code && code <= 0xdf3) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0xe33) { - // Mn THAI CHARACTER MAI HAN-AKAT - if (0xe31 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xe34) { - // Lo THAI CHARACTER SARA AM - if (0xe33 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [7] THAI CHARACTER SARA I..THAI CHARACTER PHINTHU - if (0xe34 <= code && code <= 0xe3a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xeb4) { - if (code < 0xeb1) { - // Mn [8] THAI CHARACTER MAITAIKHU..THAI CHARACTER YAMAKKAN - if (0xe47 <= code && code <= 0xe4e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn LAO VOWEL SIGN MAI KAN - if (0xeb1 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Lo LAO VOWEL SIGN AM - if (0xeb3 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0xec8) { - // Mn [9] LAO VOWEL SIGN I..LAO SEMIVOWEL SIGN LO - if (0xeb4 <= code && code <= 0xebc) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xf18) { - // Mn [7] LAO TONE MAI EK..LAO YAMAKKAN - if (0xec8 <= code && code <= 0xece) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] TIBETAN ASTROLOGICAL SIGN -KHYUD PA..TIBETAN ASTROLOGICAL SIGN SDONG TSHUGS - if (0xf18 <= code && code <= 0xf19) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xf7f) { - if (code < 0xf39) { - // Mn TIBETAN MARK NGAS BZUNG NYI ZLA - if (0xf35 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn TIBETAN MARK NGAS BZUNG SGOR RTAGS - if (0xf37 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xf3e) { - // Mn TIBETAN MARK TSA -PHRU - if (0xf39 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xf71) { - // Mc [2] TIBETAN SIGN YAR TSHES..TIBETAN SIGN MAR TSHES - if (0xf3e <= code && code <= 0xf3f) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [14] TIBETAN VOWEL SIGN AA..TIBETAN SIGN RJES SU NGA RO - if (0xf71 <= code && code <= 0xf7e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xf8d) { - if (code < 0xf80) { - // Mc TIBETAN SIGN RNAM BCAD - if (0xf7f === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xf86) { - // Mn [5] TIBETAN VOWEL SIGN REVERSED I..TIBETAN MARK HALANTA - if (0xf80 <= code && code <= 0xf84) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] TIBETAN SIGN LCI RTAGS..TIBETAN SIGN YANG RTAGS - if (0xf86 <= code && code <= 0xf87) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xf99) { - // Mn [11] TIBETAN SUBJOINED SIGN LCE TSA CAN..TIBETAN SUBJOINED LETTER JA - if (0xf8d <= code && code <= 0xf97) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xfc6) { - // Mn [36] TIBETAN SUBJOINED LETTER NYA..TIBETAN SUBJOINED LETTER FIXED-FORM RA - if (0xf99 <= code && code <= 0xfbc) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn TIBETAN SYMBOL PADMA GDAN - if (0xfc6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0x1c24) { - if (code < 0x1930) { - if (code < 0x1732) { - if (code < 0x1082) { - if (code < 0x103d) { - if (code < 0x1032) { - if (code < 0x1031) { - // Mn [4] MYANMAR VOWEL SIGN I..MYANMAR VOWEL SIGN UU - if (0x102d <= code && code <= 0x1030) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc MYANMAR VOWEL SIGN E - if (0x1031 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x1039) { - // Mn [6] MYANMAR VOWEL SIGN AI..MYANMAR SIGN DOT BELOW - if (0x1032 <= code && code <= 0x1037) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x103b) { - // Mn [2] MYANMAR SIGN VIRAMA..MYANMAR SIGN ASAT - if (0x1039 <= code && code <= 0x103a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] MYANMAR CONSONANT SIGN MEDIAL YA..MYANMAR CONSONANT SIGN MEDIAL RA - if (0x103b <= code && code <= 0x103c) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x1058) { - if (code < 0x1056) { - // Mn [2] MYANMAR CONSONANT SIGN MEDIAL WA..MYANMAR CONSONANT SIGN MEDIAL HA - if (0x103d <= code && code <= 0x103e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] MYANMAR VOWEL SIGN VOCALIC R..MYANMAR VOWEL SIGN VOCALIC RR - if (0x1056 <= code && code <= 0x1057) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x105e) { - // Mn [2] MYANMAR VOWEL SIGN VOCALIC L..MYANMAR VOWEL SIGN VOCALIC LL - if (0x1058 <= code && code <= 0x1059) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1071) { - // Mn [3] MYANMAR CONSONANT SIGN MON MEDIAL NA..MYANMAR CONSONANT SIGN MON MEDIAL LA - if (0x105e <= code && code <= 0x1060) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [4] MYANMAR VOWEL SIGN GEBA KAREN I..MYANMAR VOWEL SIGN KAYAH EE - if (0x1071 <= code && code <= 0x1074) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x1100) { - if (code < 0x1085) { - // Mn MYANMAR CONSONANT SIGN SHAN MEDIAL WA - if (0x1082 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc MYANMAR VOWEL SIGN SHAN E - if (0x1084 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x108d) { - // Mn [2] MYANMAR VOWEL SIGN SHAN E ABOVE..MYANMAR VOWEL SIGN SHAN FINAL Y - if (0x1085 <= code && code <= 0x1086) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn MYANMAR SIGN SHAN COUNCIL EMPHATIC TONE - if (0x108d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn MYANMAR VOWEL SIGN AITON AI - if (0x109d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x135d) { - if (code < 0x1160) { - // Lo [96] HANGUL CHOSEONG KIYEOK..HANGUL CHOSEONG FILLER - if (0x1100 <= code && code <= 0x115f) { - return boundaries_1.CLUSTER_BREAK.L; - } - } - else { - if (code < 0x11a8) { - // Lo [72] HANGUL JUNGSEONG FILLER..HANGUL JUNGSEONG O-YAE - if (0x1160 <= code && code <= 0x11a7) { - return boundaries_1.CLUSTER_BREAK.V; - } - } - else { - // Lo [88] HANGUL JONGSEONG KIYEOK..HANGUL JONGSEONG SSANGNIEUN - if (0x11a8 <= code && code <= 0x11ff) { - return boundaries_1.CLUSTER_BREAK.T; - } - } - } - } - else { - if (code < 0x1712) { - // Mn [3] ETHIOPIC COMBINING GEMINATION AND VOWEL LENGTH MARK..ETHIOPIC COMBINING GEMINATION MARK - if (0x135d <= code && code <= 0x135f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1715) { - // Mn [3] TAGALOG VOWEL SIGN I..TAGALOG SIGN VIRAMA - if (0x1712 <= code && code <= 0x1714) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc TAGALOG SIGN PAMUDPOD - if (0x1715 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - else { - if (code < 0x17c9) { - if (code < 0x17b6) { - if (code < 0x1752) { - if (code < 0x1734) { - // Mn [2] HANUNOO VOWEL SIGN I..HANUNOO VOWEL SIGN U - if (0x1732 <= code && code <= 0x1733) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc HANUNOO SIGN PAMUDPOD - if (0x1734 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x1772) { - // Mn [2] BUHID VOWEL SIGN I..BUHID VOWEL SIGN U - if (0x1752 <= code && code <= 0x1753) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x17b4) { - // Mn [2] TAGBANWA VOWEL SIGN I..TAGBANWA VOWEL SIGN U - if (0x1772 <= code && code <= 0x1773) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] KHMER VOWEL INHERENT AQ..KHMER VOWEL INHERENT AA - if (0x17b4 <= code && code <= 0x17b5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x17be) { - if (code < 0x17b7) { - // Mc KHMER VOWEL SIGN AA - if (0x17b6 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [7] KHMER VOWEL SIGN I..KHMER VOWEL SIGN UA - if (0x17b7 <= code && code <= 0x17bd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x17c6) { - // Mc [8] KHMER VOWEL SIGN OE..KHMER VOWEL SIGN AU - if (0x17be <= code && code <= 0x17c5) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x17c7) { - // Mn KHMER SIGN NIKAHIT - if (0x17c6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] KHMER SIGN REAHMUK..KHMER SIGN YUUKALEAPINTU - if (0x17c7 <= code && code <= 0x17c8) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - else { - if (code < 0x1885) { - if (code < 0x180b) { - if (code < 0x17dd) { - // Mn [11] KHMER SIGN MUUSIKATOAN..KHMER SIGN BATHAMASAT - if (0x17c9 <= code && code <= 0x17d3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn KHMER SIGN ATTHACAN - if (0x17dd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x180e) { - // Mn [3] MONGOLIAN FREE VARIATION SELECTOR ONE..MONGOLIAN FREE VARIATION SELECTOR THREE - if (0x180b <= code && code <= 0x180d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf MONGOLIAN VOWEL SEPARATOR - if (0x180e === code) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - // Mn MONGOLIAN FREE VARIATION SELECTOR FOUR - if (0x180f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1923) { - if (code < 0x18a9) { - // Mn [2] MONGOLIAN LETTER ALI GALI BALUDA..MONGOLIAN LETTER ALI GALI THREE BALUDA - if (0x1885 <= code && code <= 0x1886) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1920) { - // Mn MONGOLIAN LETTER ALI GALI DAGALGA - if (0x18a9 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] LIMBU VOWEL SIGN A..LIMBU VOWEL SIGN U - if (0x1920 <= code && code <= 0x1922) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1927) { - // Mc [4] LIMBU VOWEL SIGN EE..LIMBU VOWEL SIGN AU - if (0x1923 <= code && code <= 0x1926) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1929) { - // Mn [2] LIMBU VOWEL SIGN E..LIMBU VOWEL SIGN O - if (0x1927 <= code && code <= 0x1928) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] LIMBU SUBJOINED LETTER YA..LIMBU SUBJOINED LETTER WA - if (0x1929 <= code && code <= 0x192b) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - } - else { - if (code < 0x1b3b) { - if (code < 0x1a58) { - if (code < 0x1a19) { - if (code < 0x1933) { - if (code < 0x1932) { - // Mc [2] LIMBU SMALL LETTER KA..LIMBU SMALL LETTER NGA - if (0x1930 <= code && code <= 0x1931) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn LIMBU SMALL LETTER ANUSVARA - if (0x1932 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1939) { - // Mc [6] LIMBU SMALL LETTER TA..LIMBU SMALL LETTER LA - if (0x1933 <= code && code <= 0x1938) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1a17) { - // Mn [3] LIMBU SIGN MUKPHRENG..LIMBU SIGN SA-I - if (0x1939 <= code && code <= 0x193b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] BUGINESE VOWEL SIGN I..BUGINESE VOWEL SIGN U - if (0x1a17 <= code && code <= 0x1a18) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1a55) { - if (code < 0x1a1b) { - // Mc [2] BUGINESE VOWEL SIGN E..BUGINESE VOWEL SIGN O - if (0x1a19 <= code && code <= 0x1a1a) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn BUGINESE VOWEL SIGN AE - if (0x1a1b === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1a56) { - // Mc TAI THAM CONSONANT SIGN MEDIAL RA - if (0x1a55 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn TAI THAM CONSONANT SIGN MEDIAL LA - if (0x1a56 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc TAI THAM CONSONANT SIGN LA TANG LAI - if (0x1a57 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x1a73) { - if (code < 0x1a62) { - if (code < 0x1a60) { - // Mn [7] TAI THAM SIGN MAI KANG LAI..TAI THAM CONSONANT SIGN SA - if (0x1a58 <= code && code <= 0x1a5e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn TAI THAM SIGN SAKOT - if (0x1a60 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1a65) { - // Mn TAI THAM VOWEL SIGN MAI SAT - if (0x1a62 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1a6d) { - // Mn [8] TAI THAM VOWEL SIGN I..TAI THAM VOWEL SIGN OA BELOW - if (0x1a65 <= code && code <= 0x1a6c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [6] TAI THAM VOWEL SIGN OY..TAI THAM VOWEL SIGN THAM AI - if (0x1a6d <= code && code <= 0x1a72) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x1b00) { - if (code < 0x1a7f) { - // Mn [10] TAI THAM VOWEL SIGN OA ABOVE..TAI THAM SIGN KHUEN-LUE KARAN - if (0x1a73 <= code && code <= 0x1a7c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1ab0) { - // Mn TAI THAM COMBINING CRYPTOGRAMMIC DOT - if (0x1a7f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [14] COMBINING DOUBLED CIRCUMFLEX ACCENT..COMBINING PARENTHESES BELOW - // Me COMBINING PARENTHESES OVERLAY - // Mn [16] COMBINING LATIN SMALL LETTER W BELOW..COMBINING LATIN SMALL LETTER INSULAR T - if (0x1ab0 <= code && code <= 0x1ace) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1b04) { - // Mn [4] BALINESE SIGN ULU RICEM..BALINESE SIGN SURANG - if (0x1b00 <= code && code <= 0x1b03) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1b34) { - // Mc BALINESE SIGN BISAH - if (0x1b04 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn BALINESE SIGN REREKAN - // Mc BALINESE VOWEL SIGN TEDUNG - // Mn [5] BALINESE VOWEL SIGN ULU..BALINESE VOWEL SIGN RA REPA - if (0x1b34 <= code && code <= 0x1b3a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0x1ba8) { - if (code < 0x1b6b) { - if (code < 0x1b3d) { - // Mc BALINESE VOWEL SIGN RA REPA TEDUNG - if (0x1b3b === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn BALINESE VOWEL SIGN LA LENGA - if (0x1b3c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1b42) { - // Mc [5] BALINESE VOWEL SIGN LA LENGA TEDUNG..BALINESE VOWEL SIGN TALING REPA TEDUNG - if (0x1b3d <= code && code <= 0x1b41) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1b43) { - // Mn BALINESE VOWEL SIGN PEPET - if (0x1b42 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] BALINESE VOWEL SIGN PEPET TEDUNG..BALINESE ADEG ADEG - if (0x1b43 <= code && code <= 0x1b44) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x1ba1) { - if (code < 0x1b80) { - // Mn [9] BALINESE MUSICAL SYMBOL COMBINING TEGEH..BALINESE MUSICAL SYMBOL COMBINING GONG - if (0x1b6b <= code && code <= 0x1b73) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1b82) { - // Mn [2] SUNDANESE SIGN PANYECEK..SUNDANESE SIGN PANGLAYAR - if (0x1b80 <= code && code <= 0x1b81) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc SUNDANESE SIGN PANGWISAD - if (0x1b82 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x1ba2) { - // Mc SUNDANESE CONSONANT SIGN PAMINGKAL - if (0x1ba1 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1ba6) { - // Mn [4] SUNDANESE CONSONANT SIGN PANYAKRA..SUNDANESE VOWEL SIGN PANYUKU - if (0x1ba2 <= code && code <= 0x1ba5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SUNDANESE VOWEL SIGN PANAELAENG..SUNDANESE VOWEL SIGN PANOLONG - if (0x1ba6 <= code && code <= 0x1ba7) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - else { - if (code < 0x1be8) { - if (code < 0x1bab) { - if (code < 0x1baa) { - // Mn [2] SUNDANESE VOWEL SIGN PAMEPET..SUNDANESE VOWEL SIGN PANEULEUNG - if (0x1ba8 <= code && code <= 0x1ba9) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc SUNDANESE SIGN PAMAAEH - if (0x1baa === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x1be6) { - // Mn [3] SUNDANESE SIGN VIRAMA..SUNDANESE CONSONANT SIGN PASANGAN WA - if (0x1bab <= code && code <= 0x1bad) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn BATAK SIGN TOMPI - if (0x1be6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc BATAK VOWEL SIGN E - if (0x1be7 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x1bee) { - if (code < 0x1bea) { - // Mn [2] BATAK VOWEL SIGN PAKPAK E..BATAK VOWEL SIGN EE - if (0x1be8 <= code && code <= 0x1be9) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1bed) { - // Mc [3] BATAK VOWEL SIGN I..BATAK VOWEL SIGN O - if (0x1bea <= code && code <= 0x1bec) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn BATAK VOWEL SIGN KARO O - if (0x1bed === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1bef) { - // Mc BATAK VOWEL SIGN U - if (0x1bee === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1bf2) { - // Mn [3] BATAK VOWEL SIGN U FOR SIMALUNGUN SA..BATAK CONSONANT SIGN H - if (0x1bef <= code && code <= 0x1bf1) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] BATAK PANGOLAT..BATAK PANONGONAN - if (0x1bf2 <= code && code <= 0x1bf3) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xa952) { - if (code < 0x2d7f) { - if (code < 0x1cf7) { - if (code < 0x1cd4) { - if (code < 0x1c34) { - if (code < 0x1c2c) { - // Mc [8] LEPCHA SUBJOINED LETTER YA..LEPCHA VOWEL SIGN UU - if (0x1c24 <= code && code <= 0x1c2b) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [8] LEPCHA VOWEL SIGN E..LEPCHA CONSONANT SIGN T - if (0x1c2c <= code && code <= 0x1c33) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1c36) { - // Mc [2] LEPCHA CONSONANT SIGN NYIN-DO..LEPCHA CONSONANT SIGN KANG - if (0x1c34 <= code && code <= 0x1c35) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1cd0) { - // Mn [2] LEPCHA SIGN RAN..LEPCHA SIGN NUKTA - if (0x1c36 <= code && code <= 0x1c37) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] VEDIC TONE KARSHANA..VEDIC TONE PRENKHA - if (0x1cd0 <= code && code <= 0x1cd2) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1ce2) { - if (code < 0x1ce1) { - // Mn [13] VEDIC SIGN YAJURVEDIC MIDLINE SVARITA..VEDIC TONE RIGVEDIC KASHMIRI INDEPENDENT SVARITA - if (0x1cd4 <= code && code <= 0x1ce0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc VEDIC TONE ATHARVAVEDIC INDEPENDENT SVARITA - if (0x1ce1 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x1ced) { - // Mn [7] VEDIC SIGN VISARGA SVARITA..VEDIC SIGN VISARGA ANUDATTA WITH TAIL - if (0x1ce2 <= code && code <= 0x1ce8) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn VEDIC SIGN TIRYAK - if (0x1ced === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn VEDIC TONE CANDRA ABOVE - if (0x1cf4 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x200d) { - if (code < 0x1dc0) { - if (code < 0x1cf8) { - // Mc VEDIC SIGN ATIKRAMA - if (0x1cf7 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] VEDIC TONE RING ABOVE..VEDIC TONE DOUBLE RING ABOVE - if (0x1cf8 <= code && code <= 0x1cf9) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x200b) { - // Mn [64] COMBINING DOTTED GRAVE ACCENT..COMBINING RIGHT ARROWHEAD AND DOWN ARROWHEAD BELOW - if (0x1dc0 <= code && code <= 0x1dff) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cf ZERO WIDTH SPACE - if (0x200b === code) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - // Cf ZERO WIDTH NON-JOINER - if (0x200c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x2060) { - if (code < 0x200e) { - // Cf ZERO WIDTH JOINER - if (0x200d === code) { - return boundaries_1.CLUSTER_BREAK.ZWJ; - } - } - else { - if (code < 0x2028) { - // Cf [2] LEFT-TO-RIGHT MARK..RIGHT-TO-LEFT MARK - if (0x200e <= code && code <= 0x200f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Zl LINE SEPARATOR - // Zp PARAGRAPH SEPARATOR - // Cf [5] LEFT-TO-RIGHT EMBEDDING..RIGHT-TO-LEFT OVERRIDE - if (0x2028 <= code && code <= 0x202e) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - } - } - else { - if (code < 0x20d0) { - // Cf [5] WORD JOINER..INVISIBLE PLUS - // Cn - // Cf [10] LEFT-TO-RIGHT ISOLATE..NOMINAL DIGIT SHAPES - if (0x2060 <= code && code <= 0x206f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - if (code < 0x2cef) { - // Mn [13] COMBINING LEFT HARPOON ABOVE..COMBINING FOUR DOTS ABOVE - // Me [4] COMBINING ENCLOSING CIRCLE..COMBINING ENCLOSING CIRCLE BACKSLASH - // Mn COMBINING LEFT RIGHT ARROW ABOVE - // Me [3] COMBINING ENCLOSING SCREEN..COMBINING ENCLOSING UPWARD POINTING TRIANGLE - // Mn [12] COMBINING REVERSE SOLIDUS OVERLAY..COMBINING ASTERISK ABOVE - if (0x20d0 <= code && code <= 0x20f0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] COPTIC COMBINING NI ABOVE..COPTIC COMBINING SPIRITUS LENIS - if (0x2cef <= code && code <= 0x2cf1) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0xa823) { - if (code < 0xa674) { - if (code < 0x302a) { - if (code < 0x2de0) { - // Mn TIFINAGH CONSONANT JOINER - if (0x2d7f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [32] COMBINING CYRILLIC LETTER BE..COMBINING CYRILLIC LETTER IOTIFIED BIG YUS - if (0x2de0 <= code && code <= 0x2dff) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x3099) { - // Mn [4] IDEOGRAPHIC LEVEL TONE MARK..IDEOGRAPHIC ENTERING TONE MARK - // Mc [2] HANGUL SINGLE DOT TONE MARK..HANGUL DOUBLE DOT TONE MARK - if (0x302a <= code && code <= 0x302f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa66f) { - // Mn [2] COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK..COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK - if (0x3099 <= code && code <= 0x309a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn COMBINING CYRILLIC VZMET - // Me [3] COMBINING CYRILLIC TEN MILLIONS SIGN..COMBINING CYRILLIC THOUSAND MILLIONS SIGN - if (0xa66f <= code && code <= 0xa672) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xa802) { - if (code < 0xa69e) { - // Mn [10] COMBINING CYRILLIC LETTER UKRAINIAN IE..COMBINING CYRILLIC PAYEROK - if (0xa674 <= code && code <= 0xa67d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa6f0) { - // Mn [2] COMBINING CYRILLIC LETTER EF..COMBINING CYRILLIC LETTER IOTIFIED E - if (0xa69e <= code && code <= 0xa69f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] BAMUM COMBINING MARK KOQNDON..BAMUM COMBINING MARK TUKWENTIS - if (0xa6f0 <= code && code <= 0xa6f1) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xa806) { - // Mn SYLOTI NAGRI SIGN DVISVARA - if (0xa802 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn SYLOTI NAGRI SIGN HASANTA - if (0xa806 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn SYLOTI NAGRI SIGN ANUSVARA - if (0xa80b === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0xa8b4) { - if (code < 0xa827) { - if (code < 0xa825) { - // Mc [2] SYLOTI NAGRI VOWEL SIGN A..SYLOTI NAGRI VOWEL SIGN I - if (0xa823 <= code && code <= 0xa824) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] SYLOTI NAGRI VOWEL SIGN U..SYLOTI NAGRI VOWEL SIGN E - if (0xa825 <= code && code <= 0xa826) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xa82c) { - // Mc SYLOTI NAGRI VOWEL SIGN OO - if (0xa827 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xa880) { - // Mn SYLOTI NAGRI SIGN ALTERNATE HASANTA - if (0xa82c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SAURASHTRA SIGN ANUSVARA..SAURASHTRA SIGN VISARGA - if (0xa880 <= code && code <= 0xa881) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0xa8ff) { - if (code < 0xa8c4) { - // Mc [16] SAURASHTRA CONSONANT SIGN HAARU..SAURASHTRA VOWEL SIGN AU - if (0xa8b4 <= code && code <= 0xa8c3) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xa8e0) { - // Mn [2] SAURASHTRA SIGN VIRAMA..SAURASHTRA SIGN CANDRABINDU - if (0xa8c4 <= code && code <= 0xa8c5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [18] COMBINING DEVANAGARI DIGIT ZERO..COMBINING DEVANAGARI SIGN AVAGRAHA - if (0xa8e0 <= code && code <= 0xa8f1) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xa926) { - // Mn DEVANAGARI VOWEL SIGN AY - if (0xa8ff === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xa947) { - // Mn [8] KAYAH LI VOWEL UE..KAYAH LI TONE CALYA PLOPHU - if (0xa926 <= code && code <= 0xa92d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [11] REJANG VOWEL SIGN I..REJANG CONSONANT SIGN R - if (0xa947 <= code && code <= 0xa951) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - else { - if (code < 0xaab2) { - if (code < 0xa9e5) { - if (code < 0xa9b4) { - if (code < 0xa980) { - if (code < 0xa960) { - // Mc [2] REJANG CONSONANT SIGN H..REJANG VIRAMA - if (0xa952 <= code && code <= 0xa953) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Lo [29] HANGUL CHOSEONG TIKEUT-MIEUM..HANGUL CHOSEONG SSANGYEORINHIEUH - if (0xa960 <= code && code <= 0xa97c) { - return boundaries_1.CLUSTER_BREAK.L; - } - } - } - else { - if (code < 0xa983) { - // Mn [3] JAVANESE SIGN PANYANGGA..JAVANESE SIGN LAYAR - if (0xa980 <= code && code <= 0xa982) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc JAVANESE SIGN WIGNYAN - if (0xa983 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn JAVANESE SIGN CECAK TELU - if (0xa9b3 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xa9ba) { - if (code < 0xa9b6) { - // Mc [2] JAVANESE VOWEL SIGN TARUNG..JAVANESE VOWEL SIGN TOLONG - if (0xa9b4 <= code && code <= 0xa9b5) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] JAVANESE VOWEL SIGN WULU..JAVANESE VOWEL SIGN SUKU MENDUT - if (0xa9b6 <= code && code <= 0xa9b9) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xa9bc) { - // Mc [2] JAVANESE VOWEL SIGN TALING..JAVANESE VOWEL SIGN DIRGA MURE - if (0xa9ba <= code && code <= 0xa9bb) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xa9be) { - // Mn [2] JAVANESE VOWEL SIGN PEPET..JAVANESE CONSONANT SIGN KERET - if (0xa9bc <= code && code <= 0xa9bd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] JAVANESE CONSONANT SIGN PENGKAL..JAVANESE PANGKON - if (0xa9be <= code && code <= 0xa9c0) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - else { - if (code < 0xaa35) { - if (code < 0xaa2f) { - if (code < 0xaa29) { - // Mn MYANMAR SIGN SHAN SAW - if (0xa9e5 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [6] CHAM VOWEL SIGN AA..CHAM VOWEL SIGN OE - if (0xaa29 <= code && code <= 0xaa2e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xaa31) { - // Mc [2] CHAM VOWEL SIGN O..CHAM VOWEL SIGN AI - if (0xaa2f <= code && code <= 0xaa30) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0xaa33) { - // Mn [2] CHAM VOWEL SIGN AU..CHAM VOWEL SIGN UE - if (0xaa31 <= code && code <= 0xaa32) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] CHAM CONSONANT SIGN YA..CHAM CONSONANT SIGN RA - if (0xaa33 <= code && code <= 0xaa34) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0xaa4d) { - if (code < 0xaa43) { - // Mn [2] CHAM CONSONANT SIGN LA..CHAM CONSONANT SIGN WA - if (0xaa35 <= code && code <= 0xaa36) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn CHAM CONSONANT SIGN FINAL NG - if (0xaa43 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn CHAM CONSONANT SIGN FINAL M - if (0xaa4c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xaa7c) { - // Mc CHAM CONSONANT SIGN FINAL H - if (0xaa4d === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn MYANMAR SIGN TAI LAING TONE-2 - if (0xaa7c === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn TAI VIET MAI KANG - if (0xaab0 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xabe6) { - if (code < 0xaaec) { - if (code < 0xaabe) { - if (code < 0xaab7) { - // Mn [3] TAI VIET VOWEL I..TAI VIET VOWEL U - if (0xaab2 <= code && code <= 0xaab4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] TAI VIET MAI KHIT..TAI VIET VOWEL IA - if (0xaab7 <= code && code <= 0xaab8) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xaac1) { - // Mn [2] TAI VIET VOWEL AM..TAI VIET TONE MAI EK - if (0xaabe <= code && code <= 0xaabf) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn TAI VIET TONE MAI THO - if (0xaac1 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc MEETEI MAYEK VOWEL SIGN II - if (0xaaeb === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0xaaf6) { - if (code < 0xaaee) { - // Mn [2] MEETEI MAYEK VOWEL SIGN UU..MEETEI MAYEK VOWEL SIGN AAI - if (0xaaec <= code && code <= 0xaaed) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xaaf5) { - // Mc [2] MEETEI MAYEK VOWEL SIGN AU..MEETEI MAYEK VOWEL SIGN AAU - if (0xaaee <= code && code <= 0xaaef) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc MEETEI MAYEK VOWEL SIGN VISARGA - if (0xaaf5 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0xabe3) { - // Mn MEETEI MAYEK VIRAMA - if (0xaaf6 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xabe5) { - // Mc [2] MEETEI MAYEK VOWEL SIGN ONAP..MEETEI MAYEK VOWEL SIGN INAP - if (0xabe3 <= code && code <= 0xabe4) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn MEETEI MAYEK VOWEL SIGN ANAP - if (0xabe5 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0xac00) { - if (code < 0xabe9) { - if (code < 0xabe8) { - // Mc [2] MEETEI MAYEK VOWEL SIGN YENAP..MEETEI MAYEK VOWEL SIGN SOUNAP - if (0xabe6 <= code && code <= 0xabe7) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn MEETEI MAYEK VOWEL SIGN UNAP - if (0xabe8 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0xabec) { - // Mc [2] MEETEI MAYEK VOWEL SIGN CHEINAP..MEETEI MAYEK VOWEL SIGN NUNG - if (0xabe9 <= code && code <= 0xabea) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc MEETEI MAYEK LUM IYEK - if (0xabec === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn MEETEI MAYEK APUN IYEK - if (0xabed === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xac1d) { - if (code < 0xac01) { - // Lo HANGUL SYLLABLE GA - if (0xac00 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xac1c) { - // Lo [27] HANGUL SYLLABLE GAG..HANGUL SYLLABLE GAH - if (0xac01 <= code && code <= 0xac1b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GAE - if (0xac1c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xac38) { - // Lo [27] HANGUL SYLLABLE GAEG..HANGUL SYLLABLE GAEH - if (0xac1d <= code && code <= 0xac37) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xac39) { - // Lo HANGUL SYLLABLE GYA - if (0xac38 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GYAG..HANGUL SYLLABLE GYAH - if (0xac39 <= code && code <= 0xac53) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0xb5a1) { - if (code < 0xb0ed) { - if (code < 0xaea0) { - if (code < 0xad6d) { - if (code < 0xace0) { - if (code < 0xac8d) { - if (code < 0xac70) { - if (code < 0xac55) { - // Lo HANGUL SYLLABLE GYAE - if (0xac54 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GYAEG..HANGUL SYLLABLE GYAEH - if (0xac55 <= code && code <= 0xac6f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xac71) { - // Lo HANGUL SYLLABLE GEO - if (0xac70 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xac8c) { - // Lo [27] HANGUL SYLLABLE GEOG..HANGUL SYLLABLE GEOH - if (0xac71 <= code && code <= 0xac8b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GE - if (0xac8c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xaca9) { - if (code < 0xaca8) { - // Lo [27] HANGUL SYLLABLE GEG..HANGUL SYLLABLE GEH - if (0xac8d <= code && code <= 0xaca7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GYEO - if (0xaca8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xacc4) { - // Lo [27] HANGUL SYLLABLE GYEOG..HANGUL SYLLABLE GYEOH - if (0xaca9 <= code && code <= 0xacc3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xacc5) { - // Lo HANGUL SYLLABLE GYE - if (0xacc4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GYEG..HANGUL SYLLABLE GYEH - if (0xacc5 <= code && code <= 0xacdf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xad19) { - if (code < 0xacfc) { - if (code < 0xace1) { - // Lo HANGUL SYLLABLE GO - if (0xace0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GOG..HANGUL SYLLABLE GOH - if (0xace1 <= code && code <= 0xacfb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xacfd) { - // Lo HANGUL SYLLABLE GWA - if (0xacfc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xad18) { - // Lo [27] HANGUL SYLLABLE GWAG..HANGUL SYLLABLE GWAH - if (0xacfd <= code && code <= 0xad17) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GWAE - if (0xad18 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xad50) { - if (code < 0xad34) { - // Lo [27] HANGUL SYLLABLE GWAEG..HANGUL SYLLABLE GWAEH - if (0xad19 <= code && code <= 0xad33) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xad35) { - // Lo HANGUL SYLLABLE GOE - if (0xad34 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GOEG..HANGUL SYLLABLE GOEH - if (0xad35 <= code && code <= 0xad4f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xad51) { - // Lo HANGUL SYLLABLE GYO - if (0xad50 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xad6c) { - // Lo [27] HANGUL SYLLABLE GYOG..HANGUL SYLLABLE GYOH - if (0xad51 <= code && code <= 0xad6b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GU - if (0xad6c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xadf9) { - if (code < 0xadc0) { - if (code < 0xad89) { - if (code < 0xad88) { - // Lo [27] HANGUL SYLLABLE GUG..HANGUL SYLLABLE GUH - if (0xad6d <= code && code <= 0xad87) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GWEO - if (0xad88 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xada4) { - // Lo [27] HANGUL SYLLABLE GWEOG..HANGUL SYLLABLE GWEOH - if (0xad89 <= code && code <= 0xada3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xada5) { - // Lo HANGUL SYLLABLE GWE - if (0xada4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GWEG..HANGUL SYLLABLE GWEH - if (0xada5 <= code && code <= 0xadbf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xaddc) { - if (code < 0xadc1) { - // Lo HANGUL SYLLABLE GWI - if (0xadc0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GWIG..HANGUL SYLLABLE GWIH - if (0xadc1 <= code && code <= 0xaddb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xaddd) { - // Lo HANGUL SYLLABLE GYU - if (0xaddc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xadf8) { - // Lo [27] HANGUL SYLLABLE GYUG..HANGUL SYLLABLE GYUH - if (0xaddd <= code && code <= 0xadf7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GEU - if (0xadf8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xae4c) { - if (code < 0xae15) { - if (code < 0xae14) { - // Lo [27] HANGUL SYLLABLE GEUG..HANGUL SYLLABLE GEUH - if (0xadf9 <= code && code <= 0xae13) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GYI - if (0xae14 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xae30) { - // Lo [27] HANGUL SYLLABLE GYIG..HANGUL SYLLABLE GYIH - if (0xae15 <= code && code <= 0xae2f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xae31) { - // Lo HANGUL SYLLABLE GI - if (0xae30 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GIG..HANGUL SYLLABLE GIH - if (0xae31 <= code && code <= 0xae4b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xae69) { - if (code < 0xae4d) { - // Lo HANGUL SYLLABLE GGA - if (0xae4c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xae68) { - // Lo [27] HANGUL SYLLABLE GGAG..HANGUL SYLLABLE GGAH - if (0xae4d <= code && code <= 0xae67) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGAE - if (0xae68 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xae84) { - // Lo [27] HANGUL SYLLABLE GGAEG..HANGUL SYLLABLE GGAEH - if (0xae69 <= code && code <= 0xae83) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xae85) { - // Lo HANGUL SYLLABLE GGYA - if (0xae84 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGYAG..HANGUL SYLLABLE GGYAH - if (0xae85 <= code && code <= 0xae9f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - else { - if (code < 0xafb9) { - if (code < 0xaf2c) { - if (code < 0xaed9) { - if (code < 0xaebc) { - if (code < 0xaea1) { - // Lo HANGUL SYLLABLE GGYAE - if (0xaea0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGYAEG..HANGUL SYLLABLE GGYAEH - if (0xaea1 <= code && code <= 0xaebb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xaebd) { - // Lo HANGUL SYLLABLE GGEO - if (0xaebc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xaed8) { - // Lo [27] HANGUL SYLLABLE GGEOG..HANGUL SYLLABLE GGEOH - if (0xaebd <= code && code <= 0xaed7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGE - if (0xaed8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xaef5) { - if (code < 0xaef4) { - // Lo [27] HANGUL SYLLABLE GGEG..HANGUL SYLLABLE GGEH - if (0xaed9 <= code && code <= 0xaef3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGYEO - if (0xaef4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xaf10) { - // Lo [27] HANGUL SYLLABLE GGYEOG..HANGUL SYLLABLE GGYEOH - if (0xaef5 <= code && code <= 0xaf0f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xaf11) { - // Lo HANGUL SYLLABLE GGYE - if (0xaf10 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGYEG..HANGUL SYLLABLE GGYEH - if (0xaf11 <= code && code <= 0xaf2b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xaf65) { - if (code < 0xaf48) { - if (code < 0xaf2d) { - // Lo HANGUL SYLLABLE GGO - if (0xaf2c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGOG..HANGUL SYLLABLE GGOH - if (0xaf2d <= code && code <= 0xaf47) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xaf49) { - // Lo HANGUL SYLLABLE GGWA - if (0xaf48 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xaf64) { - // Lo [27] HANGUL SYLLABLE GGWAG..HANGUL SYLLABLE GGWAH - if (0xaf49 <= code && code <= 0xaf63) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGWAE - if (0xaf64 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xaf9c) { - if (code < 0xaf80) { - // Lo [27] HANGUL SYLLABLE GGWAEG..HANGUL SYLLABLE GGWAEH - if (0xaf65 <= code && code <= 0xaf7f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xaf81) { - // Lo HANGUL SYLLABLE GGOE - if (0xaf80 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGOEG..HANGUL SYLLABLE GGOEH - if (0xaf81 <= code && code <= 0xaf9b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xaf9d) { - // Lo HANGUL SYLLABLE GGYO - if (0xaf9c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xafb8) { - // Lo [27] HANGUL SYLLABLE GGYOG..HANGUL SYLLABLE GGYOH - if (0xaf9d <= code && code <= 0xafb7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGU - if (0xafb8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xb060) { - if (code < 0xb00c) { - if (code < 0xafd5) { - if (code < 0xafd4) { - // Lo [27] HANGUL SYLLABLE GGUG..HANGUL SYLLABLE GGUH - if (0xafb9 <= code && code <= 0xafd3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGWEO - if (0xafd4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xaff0) { - // Lo [27] HANGUL SYLLABLE GGWEOG..HANGUL SYLLABLE GGWEOH - if (0xafd5 <= code && code <= 0xafef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xaff1) { - // Lo HANGUL SYLLABLE GGWE - if (0xaff0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGWEG..HANGUL SYLLABLE GGWEH - if (0xaff1 <= code && code <= 0xb00b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb029) { - if (code < 0xb00d) { - // Lo HANGUL SYLLABLE GGWI - if (0xb00c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb028) { - // Lo [27] HANGUL SYLLABLE GGWIG..HANGUL SYLLABLE GGWIH - if (0xb00d <= code && code <= 0xb027) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE GGYU - if (0xb028 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb044) { - // Lo [27] HANGUL SYLLABLE GGYUG..HANGUL SYLLABLE GGYUH - if (0xb029 <= code && code <= 0xb043) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb045) { - // Lo HANGUL SYLLABLE GGEU - if (0xb044 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGEUG..HANGUL SYLLABLE GGEUH - if (0xb045 <= code && code <= 0xb05f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xb099) { - if (code < 0xb07c) { - if (code < 0xb061) { - // Lo HANGUL SYLLABLE GGYI - if (0xb060 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE GGYIG..HANGUL SYLLABLE GGYIH - if (0xb061 <= code && code <= 0xb07b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb07d) { - // Lo HANGUL SYLLABLE GGI - if (0xb07c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb098) { - // Lo [27] HANGUL SYLLABLE GGIG..HANGUL SYLLABLE GGIH - if (0xb07d <= code && code <= 0xb097) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NA - if (0xb098 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb0d0) { - if (code < 0xb0b4) { - // Lo [27] HANGUL SYLLABLE NAG..HANGUL SYLLABLE NAH - if (0xb099 <= code && code <= 0xb0b3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb0b5) { - // Lo HANGUL SYLLABLE NAE - if (0xb0b4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NAEG..HANGUL SYLLABLE NAEH - if (0xb0b5 <= code && code <= 0xb0cf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb0d1) { - // Lo HANGUL SYLLABLE NYA - if (0xb0d0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb0ec) { - // Lo [27] HANGUL SYLLABLE NYAG..HANGUL SYLLABLE NYAH - if (0xb0d1 <= code && code <= 0xb0eb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NYAE - if (0xb0ec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xb354) { - if (code < 0xb220) { - if (code < 0xb179) { - if (code < 0xb140) { - if (code < 0xb109) { - if (code < 0xb108) { - // Lo [27] HANGUL SYLLABLE NYAEG..HANGUL SYLLABLE NYAEH - if (0xb0ed <= code && code <= 0xb107) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NEO - if (0xb108 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb124) { - // Lo [27] HANGUL SYLLABLE NEOG..HANGUL SYLLABLE NEOH - if (0xb109 <= code && code <= 0xb123) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb125) { - // Lo HANGUL SYLLABLE NE - if (0xb124 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NEG..HANGUL SYLLABLE NEH - if (0xb125 <= code && code <= 0xb13f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb15c) { - if (code < 0xb141) { - // Lo HANGUL SYLLABLE NYEO - if (0xb140 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NYEOG..HANGUL SYLLABLE NYEOH - if (0xb141 <= code && code <= 0xb15b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb15d) { - // Lo HANGUL SYLLABLE NYE - if (0xb15c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb178) { - // Lo [27] HANGUL SYLLABLE NYEG..HANGUL SYLLABLE NYEH - if (0xb15d <= code && code <= 0xb177) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NO - if (0xb178 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xb1cc) { - if (code < 0xb195) { - if (code < 0xb194) { - // Lo [27] HANGUL SYLLABLE NOG..HANGUL SYLLABLE NOH - if (0xb179 <= code && code <= 0xb193) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NWA - if (0xb194 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb1b0) { - // Lo [27] HANGUL SYLLABLE NWAG..HANGUL SYLLABLE NWAH - if (0xb195 <= code && code <= 0xb1af) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb1b1) { - // Lo HANGUL SYLLABLE NWAE - if (0xb1b0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NWAEG..HANGUL SYLLABLE NWAEH - if (0xb1b1 <= code && code <= 0xb1cb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb1e9) { - if (code < 0xb1cd) { - // Lo HANGUL SYLLABLE NOE - if (0xb1cc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb1e8) { - // Lo [27] HANGUL SYLLABLE NOEG..HANGUL SYLLABLE NOEH - if (0xb1cd <= code && code <= 0xb1e7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NYO - if (0xb1e8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb204) { - // Lo [27] HANGUL SYLLABLE NYOG..HANGUL SYLLABLE NYOH - if (0xb1e9 <= code && code <= 0xb203) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb205) { - // Lo HANGUL SYLLABLE NU - if (0xb204 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NUG..HANGUL SYLLABLE NUH - if (0xb205 <= code && code <= 0xb21f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xb2ad) { - if (code < 0xb259) { - if (code < 0xb23c) { - if (code < 0xb221) { - // Lo HANGUL SYLLABLE NWEO - if (0xb220 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NWEOG..HANGUL SYLLABLE NWEOH - if (0xb221 <= code && code <= 0xb23b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb23d) { - // Lo HANGUL SYLLABLE NWE - if (0xb23c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb258) { - // Lo [27] HANGUL SYLLABLE NWEG..HANGUL SYLLABLE NWEH - if (0xb23d <= code && code <= 0xb257) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NWI - if (0xb258 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb290) { - if (code < 0xb274) { - // Lo [27] HANGUL SYLLABLE NWIG..HANGUL SYLLABLE NWIH - if (0xb259 <= code && code <= 0xb273) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb275) { - // Lo HANGUL SYLLABLE NYU - if (0xb274 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE NYUG..HANGUL SYLLABLE NYUH - if (0xb275 <= code && code <= 0xb28f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb291) { - // Lo HANGUL SYLLABLE NEU - if (0xb290 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb2ac) { - // Lo [27] HANGUL SYLLABLE NEUG..HANGUL SYLLABLE NEUH - if (0xb291 <= code && code <= 0xb2ab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NYI - if (0xb2ac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xb300) { - if (code < 0xb2c9) { - if (code < 0xb2c8) { - // Lo [27] HANGUL SYLLABLE NYIG..HANGUL SYLLABLE NYIH - if (0xb2ad <= code && code <= 0xb2c7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE NI - if (0xb2c8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb2e4) { - // Lo [27] HANGUL SYLLABLE NIG..HANGUL SYLLABLE NIH - if (0xb2c9 <= code && code <= 0xb2e3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb2e5) { - // Lo HANGUL SYLLABLE DA - if (0xb2e4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DAG..HANGUL SYLLABLE DAH - if (0xb2e5 <= code && code <= 0xb2ff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb31d) { - if (code < 0xb301) { - // Lo HANGUL SYLLABLE DAE - if (0xb300 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb31c) { - // Lo [27] HANGUL SYLLABLE DAEG..HANGUL SYLLABLE DAEH - if (0xb301 <= code && code <= 0xb31b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DYA - if (0xb31c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb338) { - // Lo [27] HANGUL SYLLABLE DYAG..HANGUL SYLLABLE DYAH - if (0xb31d <= code && code <= 0xb337) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb339) { - // Lo HANGUL SYLLABLE DYAE - if (0xb338 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DYAEG..HANGUL SYLLABLE DYAEH - if (0xb339 <= code && code <= 0xb353) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - else { - if (code < 0xb46d) { - if (code < 0xb3e0) { - if (code < 0xb38d) { - if (code < 0xb370) { - if (code < 0xb355) { - // Lo HANGUL SYLLABLE DEO - if (0xb354 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DEOG..HANGUL SYLLABLE DEOH - if (0xb355 <= code && code <= 0xb36f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb371) { - // Lo HANGUL SYLLABLE DE - if (0xb370 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb38c) { - // Lo [27] HANGUL SYLLABLE DEG..HANGUL SYLLABLE DEH - if (0xb371 <= code && code <= 0xb38b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DYEO - if (0xb38c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb3a9) { - if (code < 0xb3a8) { - // Lo [27] HANGUL SYLLABLE DYEOG..HANGUL SYLLABLE DYEOH - if (0xb38d <= code && code <= 0xb3a7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DYE - if (0xb3a8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb3c4) { - // Lo [27] HANGUL SYLLABLE DYEG..HANGUL SYLLABLE DYEH - if (0xb3a9 <= code && code <= 0xb3c3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb3c5) { - // Lo HANGUL SYLLABLE DO - if (0xb3c4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DOG..HANGUL SYLLABLE DOH - if (0xb3c5 <= code && code <= 0xb3df) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xb419) { - if (code < 0xb3fc) { - if (code < 0xb3e1) { - // Lo HANGUL SYLLABLE DWA - if (0xb3e0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DWAG..HANGUL SYLLABLE DWAH - if (0xb3e1 <= code && code <= 0xb3fb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb3fd) { - // Lo HANGUL SYLLABLE DWAE - if (0xb3fc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb418) { - // Lo [27] HANGUL SYLLABLE DWAEG..HANGUL SYLLABLE DWAEH - if (0xb3fd <= code && code <= 0xb417) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DOE - if (0xb418 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb450) { - if (code < 0xb434) { - // Lo [27] HANGUL SYLLABLE DOEG..HANGUL SYLLABLE DOEH - if (0xb419 <= code && code <= 0xb433) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb435) { - // Lo HANGUL SYLLABLE DYO - if (0xb434 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DYOG..HANGUL SYLLABLE DYOH - if (0xb435 <= code && code <= 0xb44f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb451) { - // Lo HANGUL SYLLABLE DU - if (0xb450 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb46c) { - // Lo [27] HANGUL SYLLABLE DUG..HANGUL SYLLABLE DUH - if (0xb451 <= code && code <= 0xb46b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DWEO - if (0xb46c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xb514) { - if (code < 0xb4c0) { - if (code < 0xb489) { - if (code < 0xb488) { - // Lo [27] HANGUL SYLLABLE DWEOG..HANGUL SYLLABLE DWEOH - if (0xb46d <= code && code <= 0xb487) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DWE - if (0xb488 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb4a4) { - // Lo [27] HANGUL SYLLABLE DWEG..HANGUL SYLLABLE DWEH - if (0xb489 <= code && code <= 0xb4a3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb4a5) { - // Lo HANGUL SYLLABLE DWI - if (0xb4a4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DWIG..HANGUL SYLLABLE DWIH - if (0xb4a5 <= code && code <= 0xb4bf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb4dd) { - if (code < 0xb4c1) { - // Lo HANGUL SYLLABLE DYU - if (0xb4c0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb4dc) { - // Lo [27] HANGUL SYLLABLE DYUG..HANGUL SYLLABLE DYUH - if (0xb4c1 <= code && code <= 0xb4db) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DEU - if (0xb4dc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb4f8) { - // Lo [27] HANGUL SYLLABLE DEUG..HANGUL SYLLABLE DEUH - if (0xb4dd <= code && code <= 0xb4f7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb4f9) { - // Lo HANGUL SYLLABLE DYI - if (0xb4f8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DYIG..HANGUL SYLLABLE DYIH - if (0xb4f9 <= code && code <= 0xb513) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xb54d) { - if (code < 0xb530) { - if (code < 0xb515) { - // Lo HANGUL SYLLABLE DI - if (0xb514 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DIG..HANGUL SYLLABLE DIH - if (0xb515 <= code && code <= 0xb52f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb531) { - // Lo HANGUL SYLLABLE DDA - if (0xb530 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb54c) { - // Lo [27] HANGUL SYLLABLE DDAG..HANGUL SYLLABLE DDAH - if (0xb531 <= code && code <= 0xb54b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDAE - if (0xb54c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb584) { - if (code < 0xb568) { - // Lo [27] HANGUL SYLLABLE DDAEG..HANGUL SYLLABLE DDAEH - if (0xb54d <= code && code <= 0xb567) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb569) { - // Lo HANGUL SYLLABLE DDYA - if (0xb568 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDYAG..HANGUL SYLLABLE DDYAH - if (0xb569 <= code && code <= 0xb583) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb585) { - // Lo HANGUL SYLLABLE DDYAE - if (0xb584 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb5a0) { - // Lo [27] HANGUL SYLLABLE DDYAEG..HANGUL SYLLABLE DDYAEH - if (0xb585 <= code && code <= 0xb59f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDEO - if (0xb5a0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0xba55) { - if (code < 0xb808) { - if (code < 0xb6d4) { - if (code < 0xb62d) { - if (code < 0xb5f4) { - if (code < 0xb5bd) { - if (code < 0xb5bc) { - // Lo [27] HANGUL SYLLABLE DDEOG..HANGUL SYLLABLE DDEOH - if (0xb5a1 <= code && code <= 0xb5bb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDE - if (0xb5bc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb5d8) { - // Lo [27] HANGUL SYLLABLE DDEG..HANGUL SYLLABLE DDEH - if (0xb5bd <= code && code <= 0xb5d7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb5d9) { - // Lo HANGUL SYLLABLE DDYEO - if (0xb5d8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDYEOG..HANGUL SYLLABLE DDYEOH - if (0xb5d9 <= code && code <= 0xb5f3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb610) { - if (code < 0xb5f5) { - // Lo HANGUL SYLLABLE DDYE - if (0xb5f4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDYEG..HANGUL SYLLABLE DDYEH - if (0xb5f5 <= code && code <= 0xb60f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb611) { - // Lo HANGUL SYLLABLE DDO - if (0xb610 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb62c) { - // Lo [27] HANGUL SYLLABLE DDOG..HANGUL SYLLABLE DDOH - if (0xb611 <= code && code <= 0xb62b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDWA - if (0xb62c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xb680) { - if (code < 0xb649) { - if (code < 0xb648) { - // Lo [27] HANGUL SYLLABLE DDWAG..HANGUL SYLLABLE DDWAH - if (0xb62d <= code && code <= 0xb647) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDWAE - if (0xb648 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb664) { - // Lo [27] HANGUL SYLLABLE DDWAEG..HANGUL SYLLABLE DDWAEH - if (0xb649 <= code && code <= 0xb663) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb665) { - // Lo HANGUL SYLLABLE DDOE - if (0xb664 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDOEG..HANGUL SYLLABLE DDOEH - if (0xb665 <= code && code <= 0xb67f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb69d) { - if (code < 0xb681) { - // Lo HANGUL SYLLABLE DDYO - if (0xb680 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb69c) { - // Lo [27] HANGUL SYLLABLE DDYOG..HANGUL SYLLABLE DDYOH - if (0xb681 <= code && code <= 0xb69b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDU - if (0xb69c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb6b8) { - // Lo [27] HANGUL SYLLABLE DDUG..HANGUL SYLLABLE DDUH - if (0xb69d <= code && code <= 0xb6b7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb6b9) { - // Lo HANGUL SYLLABLE DDWEO - if (0xb6b8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDWEOG..HANGUL SYLLABLE DDWEOH - if (0xb6b9 <= code && code <= 0xb6d3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xb761) { - if (code < 0xb70d) { - if (code < 0xb6f0) { - if (code < 0xb6d5) { - // Lo HANGUL SYLLABLE DDWE - if (0xb6d4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDWEG..HANGUL SYLLABLE DDWEH - if (0xb6d5 <= code && code <= 0xb6ef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb6f1) { - // Lo HANGUL SYLLABLE DDWI - if (0xb6f0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb70c) { - // Lo [27] HANGUL SYLLABLE DDWIG..HANGUL SYLLABLE DDWIH - if (0xb6f1 <= code && code <= 0xb70b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDYU - if (0xb70c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb744) { - if (code < 0xb728) { - // Lo [27] HANGUL SYLLABLE DDYUG..HANGUL SYLLABLE DDYUH - if (0xb70d <= code && code <= 0xb727) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb729) { - // Lo HANGUL SYLLABLE DDEU - if (0xb728 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE DDEUG..HANGUL SYLLABLE DDEUH - if (0xb729 <= code && code <= 0xb743) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb745) { - // Lo HANGUL SYLLABLE DDYI - if (0xb744 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb760) { - // Lo [27] HANGUL SYLLABLE DDYIG..HANGUL SYLLABLE DDYIH - if (0xb745 <= code && code <= 0xb75f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE DDI - if (0xb760 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xb7b4) { - if (code < 0xb77d) { - if (code < 0xb77c) { - // Lo [27] HANGUL SYLLABLE DDIG..HANGUL SYLLABLE DDIH - if (0xb761 <= code && code <= 0xb77b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RA - if (0xb77c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb798) { - // Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAH - if (0xb77d <= code && code <= 0xb797) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb799) { - // Lo HANGUL SYLLABLE RAE - if (0xb798 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RAEG..HANGUL SYLLABLE RAEH - if (0xb799 <= code && code <= 0xb7b3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb7d1) { - if (code < 0xb7b5) { - // Lo HANGUL SYLLABLE RYA - if (0xb7b4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb7d0) { - // Lo [27] HANGUL SYLLABLE RYAG..HANGUL SYLLABLE RYAH - if (0xb7b5 <= code && code <= 0xb7cf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RYAE - if (0xb7d0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb7ec) { - // Lo [27] HANGUL SYLLABLE RYAEG..HANGUL SYLLABLE RYAEH - if (0xb7d1 <= code && code <= 0xb7eb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb7ed) { - // Lo HANGUL SYLLABLE REO - if (0xb7ec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE REOG..HANGUL SYLLABLE REOH - if (0xb7ed <= code && code <= 0xb807) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - else { - if (code < 0xb921) { - if (code < 0xb894) { - if (code < 0xb841) { - if (code < 0xb824) { - if (code < 0xb809) { - // Lo HANGUL SYLLABLE RE - if (0xb808 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE REG..HANGUL SYLLABLE REH - if (0xb809 <= code && code <= 0xb823) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb825) { - // Lo HANGUL SYLLABLE RYEO - if (0xb824 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb840) { - // Lo [27] HANGUL SYLLABLE RYEOG..HANGUL SYLLABLE RYEOH - if (0xb825 <= code && code <= 0xb83f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RYE - if (0xb840 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb85d) { - if (code < 0xb85c) { - // Lo [27] HANGUL SYLLABLE RYEG..HANGUL SYLLABLE RYEH - if (0xb841 <= code && code <= 0xb85b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RO - if (0xb85c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb878) { - // Lo [27] HANGUL SYLLABLE ROG..HANGUL SYLLABLE ROH - if (0xb85d <= code && code <= 0xb877) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb879) { - // Lo HANGUL SYLLABLE RWA - if (0xb878 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RWAG..HANGUL SYLLABLE RWAH - if (0xb879 <= code && code <= 0xb893) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xb8cd) { - if (code < 0xb8b0) { - if (code < 0xb895) { - // Lo HANGUL SYLLABLE RWAE - if (0xb894 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RWAEG..HANGUL SYLLABLE RWAEH - if (0xb895 <= code && code <= 0xb8af) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb8b1) { - // Lo HANGUL SYLLABLE ROE - if (0xb8b0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb8cc) { - // Lo [27] HANGUL SYLLABLE ROEG..HANGUL SYLLABLE ROEH - if (0xb8b1 <= code && code <= 0xb8cb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RYO - if (0xb8cc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xb904) { - if (code < 0xb8e8) { - // Lo [27] HANGUL SYLLABLE RYOG..HANGUL SYLLABLE RYOH - if (0xb8cd <= code && code <= 0xb8e7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb8e9) { - // Lo HANGUL SYLLABLE RU - if (0xb8e8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RUG..HANGUL SYLLABLE RUH - if (0xb8e9 <= code && code <= 0xb903) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xb905) { - // Lo HANGUL SYLLABLE RWEO - if (0xb904 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb920) { - // Lo [27] HANGUL SYLLABLE RWEOG..HANGUL SYLLABLE RWEOH - if (0xb905 <= code && code <= 0xb91f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RWE - if (0xb920 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xb9c8) { - if (code < 0xb974) { - if (code < 0xb93d) { - if (code < 0xb93c) { - // Lo [27] HANGUL SYLLABLE RWEG..HANGUL SYLLABLE RWEH - if (0xb921 <= code && code <= 0xb93b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RWI - if (0xb93c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xb958) { - // Lo [27] HANGUL SYLLABLE RWIG..HANGUL SYLLABLE RWIH - if (0xb93d <= code && code <= 0xb957) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb959) { - // Lo HANGUL SYLLABLE RYU - if (0xb958 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RYUG..HANGUL SYLLABLE RYUH - if (0xb959 <= code && code <= 0xb973) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xb991) { - if (code < 0xb975) { - // Lo HANGUL SYLLABLE REU - if (0xb974 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xb990) { - // Lo [27] HANGUL SYLLABLE REUG..HANGUL SYLLABLE REUH - if (0xb975 <= code && code <= 0xb98f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE RYI - if (0xb990 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xb9ac) { - // Lo [27] HANGUL SYLLABLE RYIG..HANGUL SYLLABLE RYIH - if (0xb991 <= code && code <= 0xb9ab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xb9ad) { - // Lo HANGUL SYLLABLE RI - if (0xb9ac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE RIG..HANGUL SYLLABLE RIH - if (0xb9ad <= code && code <= 0xb9c7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xba01) { - if (code < 0xb9e4) { - if (code < 0xb9c9) { - // Lo HANGUL SYLLABLE MA - if (0xb9c8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MAG..HANGUL SYLLABLE MAH - if (0xb9c9 <= code && code <= 0xb9e3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xb9e5) { - // Lo HANGUL SYLLABLE MAE - if (0xb9e4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xba00) { - // Lo [27] HANGUL SYLLABLE MAEG..HANGUL SYLLABLE MAEH - if (0xb9e5 <= code && code <= 0xb9ff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MYA - if (0xba00 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xba38) { - if (code < 0xba1c) { - // Lo [27] HANGUL SYLLABLE MYAG..HANGUL SYLLABLE MYAH - if (0xba01 <= code && code <= 0xba1b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xba1d) { - // Lo HANGUL SYLLABLE MYAE - if (0xba1c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MYAEG..HANGUL SYLLABLE MYAEH - if (0xba1d <= code && code <= 0xba37) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xba39) { - // Lo HANGUL SYLLABLE MEO - if (0xba38 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xba54) { - // Lo [27] HANGUL SYLLABLE MEOG..HANGUL SYLLABLE MEOH - if (0xba39 <= code && code <= 0xba53) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE ME - if (0xba54 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xbcbc) { - if (code < 0xbb88) { - if (code < 0xbae1) { - if (code < 0xbaa8) { - if (code < 0xba71) { - if (code < 0xba70) { - // Lo [27] HANGUL SYLLABLE MEG..HANGUL SYLLABLE MEH - if (0xba55 <= code && code <= 0xba6f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MYEO - if (0xba70 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xba8c) { - // Lo [27] HANGUL SYLLABLE MYEOG..HANGUL SYLLABLE MYEOH - if (0xba71 <= code && code <= 0xba8b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xba8d) { - // Lo HANGUL SYLLABLE MYE - if (0xba8c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MYEG..HANGUL SYLLABLE MYEH - if (0xba8d <= code && code <= 0xbaa7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xbac4) { - if (code < 0xbaa9) { - // Lo HANGUL SYLLABLE MO - if (0xbaa8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MOG..HANGUL SYLLABLE MOH - if (0xbaa9 <= code && code <= 0xbac3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbac5) { - // Lo HANGUL SYLLABLE MWA - if (0xbac4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbae0) { - // Lo [27] HANGUL SYLLABLE MWAG..HANGUL SYLLABLE MWAH - if (0xbac5 <= code && code <= 0xbadf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MWAE - if (0xbae0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xbb34) { - if (code < 0xbafd) { - if (code < 0xbafc) { - // Lo [27] HANGUL SYLLABLE MWAEG..HANGUL SYLLABLE MWAEH - if (0xbae1 <= code && code <= 0xbafb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MOE - if (0xbafc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbb18) { - // Lo [27] HANGUL SYLLABLE MOEG..HANGUL SYLLABLE MOEH - if (0xbafd <= code && code <= 0xbb17) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbb19) { - // Lo HANGUL SYLLABLE MYO - if (0xbb18 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MYOG..HANGUL SYLLABLE MYOH - if (0xbb19 <= code && code <= 0xbb33) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xbb51) { - if (code < 0xbb35) { - // Lo HANGUL SYLLABLE MU - if (0xbb34 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbb50) { - // Lo [27] HANGUL SYLLABLE MUG..HANGUL SYLLABLE MUH - if (0xbb35 <= code && code <= 0xbb4f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MWEO - if (0xbb50 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xbb6c) { - // Lo [27] HANGUL SYLLABLE MWEOG..HANGUL SYLLABLE MWEOH - if (0xbb51 <= code && code <= 0xbb6b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbb6d) { - // Lo HANGUL SYLLABLE MWE - if (0xbb6c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MWEG..HANGUL SYLLABLE MWEH - if (0xbb6d <= code && code <= 0xbb87) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xbc15) { - if (code < 0xbbc1) { - if (code < 0xbba4) { - if (code < 0xbb89) { - // Lo HANGUL SYLLABLE MWI - if (0xbb88 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MWIG..HANGUL SYLLABLE MWIH - if (0xbb89 <= code && code <= 0xbba3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbba5) { - // Lo HANGUL SYLLABLE MYU - if (0xbba4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbbc0) { - // Lo [27] HANGUL SYLLABLE MYUG..HANGUL SYLLABLE MYUH - if (0xbba5 <= code && code <= 0xbbbf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE MEU - if (0xbbc0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xbbf8) { - if (code < 0xbbdc) { - // Lo [27] HANGUL SYLLABLE MEUG..HANGUL SYLLABLE MEUH - if (0xbbc1 <= code && code <= 0xbbdb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbbdd) { - // Lo HANGUL SYLLABLE MYI - if (0xbbdc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE MYIG..HANGUL SYLLABLE MYIH - if (0xbbdd <= code && code <= 0xbbf7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xbbf9) { - // Lo HANGUL SYLLABLE MI - if (0xbbf8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbc14) { - // Lo [27] HANGUL SYLLABLE MIG..HANGUL SYLLABLE MIH - if (0xbbf9 <= code && code <= 0xbc13) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BA - if (0xbc14 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xbc68) { - if (code < 0xbc31) { - if (code < 0xbc30) { - // Lo [27] HANGUL SYLLABLE BAG..HANGUL SYLLABLE BAH - if (0xbc15 <= code && code <= 0xbc2f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BAE - if (0xbc30 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbc4c) { - // Lo [27] HANGUL SYLLABLE BAEG..HANGUL SYLLABLE BAEH - if (0xbc31 <= code && code <= 0xbc4b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbc4d) { - // Lo HANGUL SYLLABLE BYA - if (0xbc4c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BYAG..HANGUL SYLLABLE BYAH - if (0xbc4d <= code && code <= 0xbc67) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xbc85) { - if (code < 0xbc69) { - // Lo HANGUL SYLLABLE BYAE - if (0xbc68 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbc84) { - // Lo [27] HANGUL SYLLABLE BYAEG..HANGUL SYLLABLE BYAEH - if (0xbc69 <= code && code <= 0xbc83) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BEO - if (0xbc84 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xbca0) { - // Lo [27] HANGUL SYLLABLE BEOG..HANGUL SYLLABLE BEOH - if (0xbc85 <= code && code <= 0xbc9f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbca1) { - // Lo HANGUL SYLLABLE BE - if (0xbca0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BEG..HANGUL SYLLABLE BEH - if (0xbca1 <= code && code <= 0xbcbb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - else { - if (code < 0xbdd5) { - if (code < 0xbd48) { - if (code < 0xbcf5) { - if (code < 0xbcd8) { - if (code < 0xbcbd) { - // Lo HANGUL SYLLABLE BYEO - if (0xbcbc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BYEOG..HANGUL SYLLABLE BYEOH - if (0xbcbd <= code && code <= 0xbcd7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbcd9) { - // Lo HANGUL SYLLABLE BYE - if (0xbcd8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbcf4) { - // Lo [27] HANGUL SYLLABLE BYEG..HANGUL SYLLABLE BYEH - if (0xbcd9 <= code && code <= 0xbcf3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BO - if (0xbcf4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xbd11) { - if (code < 0xbd10) { - // Lo [27] HANGUL SYLLABLE BOG..HANGUL SYLLABLE BOH - if (0xbcf5 <= code && code <= 0xbd0f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BWA - if (0xbd10 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbd2c) { - // Lo [27] HANGUL SYLLABLE BWAG..HANGUL SYLLABLE BWAH - if (0xbd11 <= code && code <= 0xbd2b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbd2d) { - // Lo HANGUL SYLLABLE BWAE - if (0xbd2c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BWAEG..HANGUL SYLLABLE BWAEH - if (0xbd2d <= code && code <= 0xbd47) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xbd81) { - if (code < 0xbd64) { - if (code < 0xbd49) { - // Lo HANGUL SYLLABLE BOE - if (0xbd48 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BOEG..HANGUL SYLLABLE BOEH - if (0xbd49 <= code && code <= 0xbd63) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbd65) { - // Lo HANGUL SYLLABLE BYO - if (0xbd64 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbd80) { - // Lo [27] HANGUL SYLLABLE BYOG..HANGUL SYLLABLE BYOH - if (0xbd65 <= code && code <= 0xbd7f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BU - if (0xbd80 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xbdb8) { - if (code < 0xbd9c) { - // Lo [27] HANGUL SYLLABLE BUG..HANGUL SYLLABLE BUH - if (0xbd81 <= code && code <= 0xbd9b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbd9d) { - // Lo HANGUL SYLLABLE BWEO - if (0xbd9c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BWEOG..HANGUL SYLLABLE BWEOH - if (0xbd9d <= code && code <= 0xbdb7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xbdb9) { - // Lo HANGUL SYLLABLE BWE - if (0xbdb8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbdd4) { - // Lo [27] HANGUL SYLLABLE BWEG..HANGUL SYLLABLE BWEH - if (0xbdb9 <= code && code <= 0xbdd3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BWI - if (0xbdd4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xbe7c) { - if (code < 0xbe28) { - if (code < 0xbdf1) { - if (code < 0xbdf0) { - // Lo [27] HANGUL SYLLABLE BWIG..HANGUL SYLLABLE BWIH - if (0xbdd5 <= code && code <= 0xbdef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BYU - if (0xbdf0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbe0c) { - // Lo [27] HANGUL SYLLABLE BYUG..HANGUL SYLLABLE BYUH - if (0xbdf1 <= code && code <= 0xbe0b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbe0d) { - // Lo HANGUL SYLLABLE BEU - if (0xbe0c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BEUG..HANGUL SYLLABLE BEUH - if (0xbe0d <= code && code <= 0xbe27) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xbe45) { - if (code < 0xbe29) { - // Lo HANGUL SYLLABLE BYI - if (0xbe28 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbe44) { - // Lo [27] HANGUL SYLLABLE BYIG..HANGUL SYLLABLE BYIH - if (0xbe29 <= code && code <= 0xbe43) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BI - if (0xbe44 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xbe60) { - // Lo [27] HANGUL SYLLABLE BIG..HANGUL SYLLABLE BIH - if (0xbe45 <= code && code <= 0xbe5f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbe61) { - // Lo HANGUL SYLLABLE BBA - if (0xbe60 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBAG..HANGUL SYLLABLE BBAH - if (0xbe61 <= code && code <= 0xbe7b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xbeb5) { - if (code < 0xbe98) { - if (code < 0xbe7d) { - // Lo HANGUL SYLLABLE BBAE - if (0xbe7c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBAEG..HANGUL SYLLABLE BBAEH - if (0xbe7d <= code && code <= 0xbe97) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbe99) { - // Lo HANGUL SYLLABLE BBYA - if (0xbe98 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbeb4) { - // Lo [27] HANGUL SYLLABLE BBYAG..HANGUL SYLLABLE BBYAH - if (0xbe99 <= code && code <= 0xbeb3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBYAE - if (0xbeb4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xbeec) { - if (code < 0xbed0) { - // Lo [27] HANGUL SYLLABLE BBYAEG..HANGUL SYLLABLE BBYAEH - if (0xbeb5 <= code && code <= 0xbecf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbed1) { - // Lo HANGUL SYLLABLE BBEO - if (0xbed0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBEOG..HANGUL SYLLABLE BBEOH - if (0xbed1 <= code && code <= 0xbeeb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xbeed) { - // Lo HANGUL SYLLABLE BBE - if (0xbeec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbf08) { - // Lo [27] HANGUL SYLLABLE BBEG..HANGUL SYLLABLE BBEH - if (0xbeed <= code && code <= 0xbf07) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBYEO - if (0xbf08 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0xd1d8) { - if (code < 0xc870) { - if (code < 0xc3bc) { - if (code < 0xc155) { - if (code < 0xc03c) { - if (code < 0xbf95) { - if (code < 0xbf5c) { - if (code < 0xbf25) { - if (code < 0xbf24) { - // Lo [27] HANGUL SYLLABLE BBYEOG..HANGUL SYLLABLE BBYEOH - if (0xbf09 <= code && code <= 0xbf23) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBYE - if (0xbf24 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbf40) { - // Lo [27] HANGUL SYLLABLE BBYEG..HANGUL SYLLABLE BBYEH - if (0xbf25 <= code && code <= 0xbf3f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbf41) { - // Lo HANGUL SYLLABLE BBO - if (0xbf40 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBOG..HANGUL SYLLABLE BBOH - if (0xbf41 <= code && code <= 0xbf5b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xbf78) { - if (code < 0xbf5d) { - // Lo HANGUL SYLLABLE BBWA - if (0xbf5c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBWAG..HANGUL SYLLABLE BBWAH - if (0xbf5d <= code && code <= 0xbf77) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xbf79) { - // Lo HANGUL SYLLABLE BBWAE - if (0xbf78 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xbf94) { - // Lo [27] HANGUL SYLLABLE BBWAEG..HANGUL SYLLABLE BBWAEH - if (0xbf79 <= code && code <= 0xbf93) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBOE - if (0xbf94 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xbfe8) { - if (code < 0xbfb1) { - if (code < 0xbfb0) { - // Lo [27] HANGUL SYLLABLE BBOEG..HANGUL SYLLABLE BBOEH - if (0xbf95 <= code && code <= 0xbfaf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBYO - if (0xbfb0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xbfcc) { - // Lo [27] HANGUL SYLLABLE BBYOG..HANGUL SYLLABLE BBYOH - if (0xbfb1 <= code && code <= 0xbfcb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xbfcd) { - // Lo HANGUL SYLLABLE BBU - if (0xbfcc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBUG..HANGUL SYLLABLE BBUH - if (0xbfcd <= code && code <= 0xbfe7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc005) { - if (code < 0xbfe9) { - // Lo HANGUL SYLLABLE BBWEO - if (0xbfe8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc004) { - // Lo [27] HANGUL SYLLABLE BBWEOG..HANGUL SYLLABLE BBWEOH - if (0xbfe9 <= code && code <= 0xc003) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBWE - if (0xc004 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc020) { - // Lo [27] HANGUL SYLLABLE BBWEG..HANGUL SYLLABLE BBWEH - if (0xc005 <= code && code <= 0xc01f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc021) { - // Lo HANGUL SYLLABLE BBWI - if (0xc020 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBWIG..HANGUL SYLLABLE BBWIH - if (0xc021 <= code && code <= 0xc03b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xc0c8) { - if (code < 0xc075) { - if (code < 0xc058) { - if (code < 0xc03d) { - // Lo HANGUL SYLLABLE BBYU - if (0xc03c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE BBYUG..HANGUL SYLLABLE BBYUH - if (0xc03d <= code && code <= 0xc057) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc059) { - // Lo HANGUL SYLLABLE BBEU - if (0xc058 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc074) { - // Lo [27] HANGUL SYLLABLE BBEUG..HANGUL SYLLABLE BBEUH - if (0xc059 <= code && code <= 0xc073) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBYI - if (0xc074 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc091) { - if (code < 0xc090) { - // Lo [27] HANGUL SYLLABLE BBYIG..HANGUL SYLLABLE BBYIH - if (0xc075 <= code && code <= 0xc08f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE BBI - if (0xc090 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc0ac) { - // Lo [27] HANGUL SYLLABLE BBIG..HANGUL SYLLABLE BBIH - if (0xc091 <= code && code <= 0xc0ab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc0ad) { - // Lo HANGUL SYLLABLE SA - if (0xc0ac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SAG..HANGUL SYLLABLE SAH - if (0xc0ad <= code && code <= 0xc0c7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xc101) { - if (code < 0xc0e4) { - if (code < 0xc0c9) { - // Lo HANGUL SYLLABLE SAE - if (0xc0c8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SAEG..HANGUL SYLLABLE SAEH - if (0xc0c9 <= code && code <= 0xc0e3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc0e5) { - // Lo HANGUL SYLLABLE SYA - if (0xc0e4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc100) { - // Lo [27] HANGUL SYLLABLE SYAG..HANGUL SYLLABLE SYAH - if (0xc0e5 <= code && code <= 0xc0ff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SYAE - if (0xc100 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc138) { - if (code < 0xc11c) { - // Lo [27] HANGUL SYLLABLE SYAEG..HANGUL SYLLABLE SYAEH - if (0xc101 <= code && code <= 0xc11b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc11d) { - // Lo HANGUL SYLLABLE SEO - if (0xc11c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SEOG..HANGUL SYLLABLE SEOH - if (0xc11d <= code && code <= 0xc137) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc139) { - // Lo HANGUL SYLLABLE SE - if (0xc138 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc154) { - // Lo [27] HANGUL SYLLABLE SEG..HANGUL SYLLABLE SEH - if (0xc139 <= code && code <= 0xc153) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SYEO - if (0xc154 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - else { - if (code < 0xc288) { - if (code < 0xc1e1) { - if (code < 0xc1a8) { - if (code < 0xc171) { - if (code < 0xc170) { - // Lo [27] HANGUL SYLLABLE SYEOG..HANGUL SYLLABLE SYEOH - if (0xc155 <= code && code <= 0xc16f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SYE - if (0xc170 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc18c) { - // Lo [27] HANGUL SYLLABLE SYEG..HANGUL SYLLABLE SYEH - if (0xc171 <= code && code <= 0xc18b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc18d) { - // Lo HANGUL SYLLABLE SO - if (0xc18c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SOG..HANGUL SYLLABLE SOH - if (0xc18d <= code && code <= 0xc1a7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc1c4) { - if (code < 0xc1a9) { - // Lo HANGUL SYLLABLE SWA - if (0xc1a8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SWAG..HANGUL SYLLABLE SWAH - if (0xc1a9 <= code && code <= 0xc1c3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc1c5) { - // Lo HANGUL SYLLABLE SWAE - if (0xc1c4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc1e0) { - // Lo [27] HANGUL SYLLABLE SWAEG..HANGUL SYLLABLE SWAEH - if (0xc1c5 <= code && code <= 0xc1df) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SOE - if (0xc1e0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xc234) { - if (code < 0xc1fd) { - if (code < 0xc1fc) { - // Lo [27] HANGUL SYLLABLE SOEG..HANGUL SYLLABLE SOEH - if (0xc1e1 <= code && code <= 0xc1fb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SYO - if (0xc1fc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc218) { - // Lo [27] HANGUL SYLLABLE SYOG..HANGUL SYLLABLE SYOH - if (0xc1fd <= code && code <= 0xc217) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc219) { - // Lo HANGUL SYLLABLE SU - if (0xc218 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SUG..HANGUL SYLLABLE SUH - if (0xc219 <= code && code <= 0xc233) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc251) { - if (code < 0xc235) { - // Lo HANGUL SYLLABLE SWEO - if (0xc234 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc250) { - // Lo [27] HANGUL SYLLABLE SWEOG..HANGUL SYLLABLE SWEOH - if (0xc235 <= code && code <= 0xc24f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SWE - if (0xc250 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc26c) { - // Lo [27] HANGUL SYLLABLE SWEG..HANGUL SYLLABLE SWEH - if (0xc251 <= code && code <= 0xc26b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc26d) { - // Lo HANGUL SYLLABLE SWI - if (0xc26c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SWIG..HANGUL SYLLABLE SWIH - if (0xc26d <= code && code <= 0xc287) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xc315) { - if (code < 0xc2c1) { - if (code < 0xc2a4) { - if (code < 0xc289) { - // Lo HANGUL SYLLABLE SYU - if (0xc288 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SYUG..HANGUL SYLLABLE SYUH - if (0xc289 <= code && code <= 0xc2a3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc2a5) { - // Lo HANGUL SYLLABLE SEU - if (0xc2a4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc2c0) { - // Lo [27] HANGUL SYLLABLE SEUG..HANGUL SYLLABLE SEUH - if (0xc2a5 <= code && code <= 0xc2bf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SYI - if (0xc2c0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc2f8) { - if (code < 0xc2dc) { - // Lo [27] HANGUL SYLLABLE SYIG..HANGUL SYLLABLE SYIH - if (0xc2c1 <= code && code <= 0xc2db) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc2dd) { - // Lo HANGUL SYLLABLE SI - if (0xc2dc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SIG..HANGUL SYLLABLE SIH - if (0xc2dd <= code && code <= 0xc2f7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc2f9) { - // Lo HANGUL SYLLABLE SSA - if (0xc2f8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc314) { - // Lo [27] HANGUL SYLLABLE SSAG..HANGUL SYLLABLE SSAH - if (0xc2f9 <= code && code <= 0xc313) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSAE - if (0xc314 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xc368) { - if (code < 0xc331) { - if (code < 0xc330) { - // Lo [27] HANGUL SYLLABLE SSAEG..HANGUL SYLLABLE SSAEH - if (0xc315 <= code && code <= 0xc32f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSYA - if (0xc330 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc34c) { - // Lo [27] HANGUL SYLLABLE SSYAG..HANGUL SYLLABLE SSYAH - if (0xc331 <= code && code <= 0xc34b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc34d) { - // Lo HANGUL SYLLABLE SSYAE - if (0xc34c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSYAEG..HANGUL SYLLABLE SSYAEH - if (0xc34d <= code && code <= 0xc367) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc385) { - if (code < 0xc369) { - // Lo HANGUL SYLLABLE SSEO - if (0xc368 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc384) { - // Lo [27] HANGUL SYLLABLE SSEOG..HANGUL SYLLABLE SSEOH - if (0xc369 <= code && code <= 0xc383) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSE - if (0xc384 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc3a0) { - // Lo [27] HANGUL SYLLABLE SSEG..HANGUL SYLLABLE SSEH - if (0xc385 <= code && code <= 0xc39f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc3a1) { - // Lo HANGUL SYLLABLE SSYEO - if (0xc3a0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSYEOG..HANGUL SYLLABLE SSYEOH - if (0xc3a1 <= code && code <= 0xc3bb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xc609) { - if (code < 0xc4d5) { - if (code < 0xc448) { - if (code < 0xc3f5) { - if (code < 0xc3d8) { - if (code < 0xc3bd) { - // Lo HANGUL SYLLABLE SSYE - if (0xc3bc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSYEG..HANGUL SYLLABLE SSYEH - if (0xc3bd <= code && code <= 0xc3d7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc3d9) { - // Lo HANGUL SYLLABLE SSO - if (0xc3d8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc3f4) { - // Lo [27] HANGUL SYLLABLE SSOG..HANGUL SYLLABLE SSOH - if (0xc3d9 <= code && code <= 0xc3f3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSWA - if (0xc3f4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc411) { - if (code < 0xc410) { - // Lo [27] HANGUL SYLLABLE SSWAG..HANGUL SYLLABLE SSWAH - if (0xc3f5 <= code && code <= 0xc40f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSWAE - if (0xc410 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc42c) { - // Lo [27] HANGUL SYLLABLE SSWAEG..HANGUL SYLLABLE SSWAEH - if (0xc411 <= code && code <= 0xc42b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc42d) { - // Lo HANGUL SYLLABLE SSOE - if (0xc42c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSOEG..HANGUL SYLLABLE SSOEH - if (0xc42d <= code && code <= 0xc447) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xc481) { - if (code < 0xc464) { - if (code < 0xc449) { - // Lo HANGUL SYLLABLE SSYO - if (0xc448 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSYOG..HANGUL SYLLABLE SSYOH - if (0xc449 <= code && code <= 0xc463) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc465) { - // Lo HANGUL SYLLABLE SSU - if (0xc464 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc480) { - // Lo [27] HANGUL SYLLABLE SSUG..HANGUL SYLLABLE SSUH - if (0xc465 <= code && code <= 0xc47f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSWEO - if (0xc480 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc4b8) { - if (code < 0xc49c) { - // Lo [27] HANGUL SYLLABLE SSWEOG..HANGUL SYLLABLE SSWEOH - if (0xc481 <= code && code <= 0xc49b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc49d) { - // Lo HANGUL SYLLABLE SSWE - if (0xc49c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSWEG..HANGUL SYLLABLE SSWEH - if (0xc49d <= code && code <= 0xc4b7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc4b9) { - // Lo HANGUL SYLLABLE SSWI - if (0xc4b8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc4d4) { - // Lo [27] HANGUL SYLLABLE SSWIG..HANGUL SYLLABLE SSWIH - if (0xc4b9 <= code && code <= 0xc4d3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSYU - if (0xc4d4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xc57c) { - if (code < 0xc528) { - if (code < 0xc4f1) { - if (code < 0xc4f0) { - // Lo [27] HANGUL SYLLABLE SSYUG..HANGUL SYLLABLE SSYUH - if (0xc4d5 <= code && code <= 0xc4ef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE SSEU - if (0xc4f0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc50c) { - // Lo [27] HANGUL SYLLABLE SSEUG..HANGUL SYLLABLE SSEUH - if (0xc4f1 <= code && code <= 0xc50b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc50d) { - // Lo HANGUL SYLLABLE SSYI - if (0xc50c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE SSYIG..HANGUL SYLLABLE SSYIH - if (0xc50d <= code && code <= 0xc527) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc545) { - if (code < 0xc529) { - // Lo HANGUL SYLLABLE SSI - if (0xc528 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc544) { - // Lo [27] HANGUL SYLLABLE SSIG..HANGUL SYLLABLE SSIH - if (0xc529 <= code && code <= 0xc543) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE A - if (0xc544 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc560) { - // Lo [27] HANGUL SYLLABLE AG..HANGUL SYLLABLE AH - if (0xc545 <= code && code <= 0xc55f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc561) { - // Lo HANGUL SYLLABLE AE - if (0xc560 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE AEG..HANGUL SYLLABLE AEH - if (0xc561 <= code && code <= 0xc57b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xc5b5) { - if (code < 0xc598) { - if (code < 0xc57d) { - // Lo HANGUL SYLLABLE YA - if (0xc57c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE YAG..HANGUL SYLLABLE YAH - if (0xc57d <= code && code <= 0xc597) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc599) { - // Lo HANGUL SYLLABLE YAE - if (0xc598 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc5b4) { - // Lo [27] HANGUL SYLLABLE YAEG..HANGUL SYLLABLE YAEH - if (0xc599 <= code && code <= 0xc5b3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE EO - if (0xc5b4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc5ec) { - if (code < 0xc5d0) { - // Lo [27] HANGUL SYLLABLE EOG..HANGUL SYLLABLE EOH - if (0xc5b5 <= code && code <= 0xc5cf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc5d1) { - // Lo HANGUL SYLLABLE E - if (0xc5d0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE EG..HANGUL SYLLABLE EH - if (0xc5d1 <= code && code <= 0xc5eb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc5ed) { - // Lo HANGUL SYLLABLE YEO - if (0xc5ec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc608) { - // Lo [27] HANGUL SYLLABLE YEOG..HANGUL SYLLABLE YEOH - if (0xc5ed <= code && code <= 0xc607) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE YE - if (0xc608 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - else { - if (code < 0xc73c) { - if (code < 0xc695) { - if (code < 0xc65c) { - if (code < 0xc625) { - if (code < 0xc624) { - // Lo [27] HANGUL SYLLABLE YEG..HANGUL SYLLABLE YEH - if (0xc609 <= code && code <= 0xc623) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE O - if (0xc624 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc640) { - // Lo [27] HANGUL SYLLABLE OG..HANGUL SYLLABLE OH - if (0xc625 <= code && code <= 0xc63f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc641) { - // Lo HANGUL SYLLABLE WA - if (0xc640 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE WAG..HANGUL SYLLABLE WAH - if (0xc641 <= code && code <= 0xc65b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc678) { - if (code < 0xc65d) { - // Lo HANGUL SYLLABLE WAE - if (0xc65c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE WAEG..HANGUL SYLLABLE WAEH - if (0xc65d <= code && code <= 0xc677) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc679) { - // Lo HANGUL SYLLABLE OE - if (0xc678 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc694) { - // Lo [27] HANGUL SYLLABLE OEG..HANGUL SYLLABLE OEH - if (0xc679 <= code && code <= 0xc693) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE YO - if (0xc694 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xc6e8) { - if (code < 0xc6b1) { - if (code < 0xc6b0) { - // Lo [27] HANGUL SYLLABLE YOG..HANGUL SYLLABLE YOH - if (0xc695 <= code && code <= 0xc6af) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE U - if (0xc6b0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc6cc) { - // Lo [27] HANGUL SYLLABLE UG..HANGUL SYLLABLE UH - if (0xc6b1 <= code && code <= 0xc6cb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc6cd) { - // Lo HANGUL SYLLABLE WEO - if (0xc6cc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE WEOG..HANGUL SYLLABLE WEOH - if (0xc6cd <= code && code <= 0xc6e7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc705) { - if (code < 0xc6e9) { - // Lo HANGUL SYLLABLE WE - if (0xc6e8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc704) { - // Lo [27] HANGUL SYLLABLE WEG..HANGUL SYLLABLE WEH - if (0xc6e9 <= code && code <= 0xc703) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE WI - if (0xc704 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc720) { - // Lo [27] HANGUL SYLLABLE WIG..HANGUL SYLLABLE WIH - if (0xc705 <= code && code <= 0xc71f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc721) { - // Lo HANGUL SYLLABLE YU - if (0xc720 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE YUG..HANGUL SYLLABLE YUH - if (0xc721 <= code && code <= 0xc73b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xc7c9) { - if (code < 0xc775) { - if (code < 0xc758) { - if (code < 0xc73d) { - // Lo HANGUL SYLLABLE EU - if (0xc73c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE EUG..HANGUL SYLLABLE EUH - if (0xc73d <= code && code <= 0xc757) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc759) { - // Lo HANGUL SYLLABLE YI - if (0xc758 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc774) { - // Lo [27] HANGUL SYLLABLE YIG..HANGUL SYLLABLE YIH - if (0xc759 <= code && code <= 0xc773) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE I - if (0xc774 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc7ac) { - if (code < 0xc790) { - // Lo [27] HANGUL SYLLABLE IG..HANGUL SYLLABLE IH - if (0xc775 <= code && code <= 0xc78f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc791) { - // Lo HANGUL SYLLABLE JA - if (0xc790 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JAG..HANGUL SYLLABLE JAH - if (0xc791 <= code && code <= 0xc7ab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc7ad) { - // Lo HANGUL SYLLABLE JAE - if (0xc7ac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc7c8) { - // Lo [27] HANGUL SYLLABLE JAEG..HANGUL SYLLABLE JAEH - if (0xc7ad <= code && code <= 0xc7c7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JYA - if (0xc7c8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xc81c) { - if (code < 0xc7e5) { - if (code < 0xc7e4) { - // Lo [27] HANGUL SYLLABLE JYAG..HANGUL SYLLABLE JYAH - if (0xc7c9 <= code && code <= 0xc7e3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JYAE - if (0xc7e4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc800) { - // Lo [27] HANGUL SYLLABLE JYAEG..HANGUL SYLLABLE JYAEH - if (0xc7e5 <= code && code <= 0xc7ff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc801) { - // Lo HANGUL SYLLABLE JEO - if (0xc800 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JEOG..HANGUL SYLLABLE JEOH - if (0xc801 <= code && code <= 0xc81b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc839) { - if (code < 0xc81d) { - // Lo HANGUL SYLLABLE JE - if (0xc81c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc838) { - // Lo [27] HANGUL SYLLABLE JEG..HANGUL SYLLABLE JEH - if (0xc81d <= code && code <= 0xc837) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JYEO - if (0xc838 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xc854) { - // Lo [27] HANGUL SYLLABLE JYEOG..HANGUL SYLLABLE JYEOH - if (0xc839 <= code && code <= 0xc853) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc855) { - // Lo HANGUL SYLLABLE JYE - if (0xc854 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JYEG..HANGUL SYLLABLE JYEH - if (0xc855 <= code && code <= 0xc86f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0xcd24) { - if (code < 0xcabd) { - if (code < 0xc989) { - if (code < 0xc8fc) { - if (code < 0xc8a9) { - if (code < 0xc88c) { - if (code < 0xc871) { - // Lo HANGUL SYLLABLE JO - if (0xc870 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JOG..HANGUL SYLLABLE JOH - if (0xc871 <= code && code <= 0xc88b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc88d) { - // Lo HANGUL SYLLABLE JWA - if (0xc88c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc8a8) { - // Lo [27] HANGUL SYLLABLE JWAG..HANGUL SYLLABLE JWAH - if (0xc88d <= code && code <= 0xc8a7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JWAE - if (0xc8a8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc8c5) { - if (code < 0xc8c4) { - // Lo [27] HANGUL SYLLABLE JWAEG..HANGUL SYLLABLE JWAEH - if (0xc8a9 <= code && code <= 0xc8c3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JOE - if (0xc8c4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc8e0) { - // Lo [27] HANGUL SYLLABLE JOEG..HANGUL SYLLABLE JOEH - if (0xc8c5 <= code && code <= 0xc8df) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc8e1) { - // Lo HANGUL SYLLABLE JYO - if (0xc8e0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JYOG..HANGUL SYLLABLE JYOH - if (0xc8e1 <= code && code <= 0xc8fb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xc935) { - if (code < 0xc918) { - if (code < 0xc8fd) { - // Lo HANGUL SYLLABLE JU - if (0xc8fc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JUG..HANGUL SYLLABLE JUH - if (0xc8fd <= code && code <= 0xc917) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xc919) { - // Lo HANGUL SYLLABLE JWEO - if (0xc918 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc934) { - // Lo [27] HANGUL SYLLABLE JWEOG..HANGUL SYLLABLE JWEOH - if (0xc919 <= code && code <= 0xc933) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JWE - if (0xc934 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xc96c) { - if (code < 0xc950) { - // Lo [27] HANGUL SYLLABLE JWEG..HANGUL SYLLABLE JWEH - if (0xc935 <= code && code <= 0xc94f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc951) { - // Lo HANGUL SYLLABLE JWI - if (0xc950 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JWIG..HANGUL SYLLABLE JWIH - if (0xc951 <= code && code <= 0xc96b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xc96d) { - // Lo HANGUL SYLLABLE JYU - if (0xc96c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc988) { - // Lo [27] HANGUL SYLLABLE JYUG..HANGUL SYLLABLE JYUH - if (0xc96d <= code && code <= 0xc987) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JEU - if (0xc988 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xca30) { - if (code < 0xc9dc) { - if (code < 0xc9a5) { - if (code < 0xc9a4) { - // Lo [27] HANGUL SYLLABLE JEUG..HANGUL SYLLABLE JEUH - if (0xc989 <= code && code <= 0xc9a3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JYI - if (0xc9a4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xc9c0) { - // Lo [27] HANGUL SYLLABLE JYIG..HANGUL SYLLABLE JYIH - if (0xc9a5 <= code && code <= 0xc9bf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xc9c1) { - // Lo HANGUL SYLLABLE JI - if (0xc9c0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JIG..HANGUL SYLLABLE JIH - if (0xc9c1 <= code && code <= 0xc9db) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xc9f9) { - if (code < 0xc9dd) { - // Lo HANGUL SYLLABLE JJA - if (0xc9dc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xc9f8) { - // Lo [27] HANGUL SYLLABLE JJAG..HANGUL SYLLABLE JJAH - if (0xc9dd <= code && code <= 0xc9f7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJAE - if (0xc9f8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xca14) { - // Lo [27] HANGUL SYLLABLE JJAEG..HANGUL SYLLABLE JJAEH - if (0xc9f9 <= code && code <= 0xca13) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xca15) { - // Lo HANGUL SYLLABLE JJYA - if (0xca14 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJYAG..HANGUL SYLLABLE JJYAH - if (0xca15 <= code && code <= 0xca2f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xca69) { - if (code < 0xca4c) { - if (code < 0xca31) { - // Lo HANGUL SYLLABLE JJYAE - if (0xca30 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJYAEG..HANGUL SYLLABLE JJYAEH - if (0xca31 <= code && code <= 0xca4b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xca4d) { - // Lo HANGUL SYLLABLE JJEO - if (0xca4c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xca68) { - // Lo [27] HANGUL SYLLABLE JJEOG..HANGUL SYLLABLE JJEOH - if (0xca4d <= code && code <= 0xca67) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJE - if (0xca68 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xcaa0) { - if (code < 0xca84) { - // Lo [27] HANGUL SYLLABLE JJEG..HANGUL SYLLABLE JJEH - if (0xca69 <= code && code <= 0xca83) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xca85) { - // Lo HANGUL SYLLABLE JJYEO - if (0xca84 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJYEOG..HANGUL SYLLABLE JJYEOH - if (0xca85 <= code && code <= 0xca9f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xcaa1) { - // Lo HANGUL SYLLABLE JJYE - if (0xcaa0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcabc) { - // Lo [27] HANGUL SYLLABLE JJYEG..HANGUL SYLLABLE JJYEH - if (0xcaa1 <= code && code <= 0xcabb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJO - if (0xcabc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - else { - if (code < 0xcbf0) { - if (code < 0xcb49) { - if (code < 0xcb10) { - if (code < 0xcad9) { - if (code < 0xcad8) { - // Lo [27] HANGUL SYLLABLE JJOG..HANGUL SYLLABLE JJOH - if (0xcabd <= code && code <= 0xcad7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJWA - if (0xcad8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xcaf4) { - // Lo [27] HANGUL SYLLABLE JJWAG..HANGUL SYLLABLE JJWAH - if (0xcad9 <= code && code <= 0xcaf3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcaf5) { - // Lo HANGUL SYLLABLE JJWAE - if (0xcaf4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJWAEG..HANGUL SYLLABLE JJWAEH - if (0xcaf5 <= code && code <= 0xcb0f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xcb2c) { - if (code < 0xcb11) { - // Lo HANGUL SYLLABLE JJOE - if (0xcb10 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJOEG..HANGUL SYLLABLE JJOEH - if (0xcb11 <= code && code <= 0xcb2b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcb2d) { - // Lo HANGUL SYLLABLE JJYO - if (0xcb2c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcb48) { - // Lo [27] HANGUL SYLLABLE JJYOG..HANGUL SYLLABLE JJYOH - if (0xcb2d <= code && code <= 0xcb47) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJU - if (0xcb48 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xcb9c) { - if (code < 0xcb65) { - if (code < 0xcb64) { - // Lo [27] HANGUL SYLLABLE JJUG..HANGUL SYLLABLE JJUH - if (0xcb49 <= code && code <= 0xcb63) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJWEO - if (0xcb64 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xcb80) { - // Lo [27] HANGUL SYLLABLE JJWEOG..HANGUL SYLLABLE JJWEOH - if (0xcb65 <= code && code <= 0xcb7f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcb81) { - // Lo HANGUL SYLLABLE JJWE - if (0xcb80 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJWEG..HANGUL SYLLABLE JJWEH - if (0xcb81 <= code && code <= 0xcb9b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xcbb9) { - if (code < 0xcb9d) { - // Lo HANGUL SYLLABLE JJWI - if (0xcb9c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcbb8) { - // Lo [27] HANGUL SYLLABLE JJWIG..HANGUL SYLLABLE JJWIH - if (0xcb9d <= code && code <= 0xcbb7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE JJYU - if (0xcbb8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xcbd4) { - // Lo [27] HANGUL SYLLABLE JJYUG..HANGUL SYLLABLE JJYUH - if (0xcbb9 <= code && code <= 0xcbd3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcbd5) { - // Lo HANGUL SYLLABLE JJEU - if (0xcbd4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJEUG..HANGUL SYLLABLE JJEUH - if (0xcbd5 <= code && code <= 0xcbef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xcc7d) { - if (code < 0xcc29) { - if (code < 0xcc0c) { - if (code < 0xcbf1) { - // Lo HANGUL SYLLABLE JJYI - if (0xcbf0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE JJYIG..HANGUL SYLLABLE JJYIH - if (0xcbf1 <= code && code <= 0xcc0b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcc0d) { - // Lo HANGUL SYLLABLE JJI - if (0xcc0c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcc28) { - // Lo [27] HANGUL SYLLABLE JJIG..HANGUL SYLLABLE JJIH - if (0xcc0d <= code && code <= 0xcc27) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CA - if (0xcc28 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xcc60) { - if (code < 0xcc44) { - // Lo [27] HANGUL SYLLABLE CAG..HANGUL SYLLABLE CAH - if (0xcc29 <= code && code <= 0xcc43) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcc45) { - // Lo HANGUL SYLLABLE CAE - if (0xcc44 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CAEG..HANGUL SYLLABLE CAEH - if (0xcc45 <= code && code <= 0xcc5f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xcc61) { - // Lo HANGUL SYLLABLE CYA - if (0xcc60 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcc7c) { - // Lo [27] HANGUL SYLLABLE CYAG..HANGUL SYLLABLE CYAH - if (0xcc61 <= code && code <= 0xcc7b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CYAE - if (0xcc7c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xccd0) { - if (code < 0xcc99) { - if (code < 0xcc98) { - // Lo [27] HANGUL SYLLABLE CYAEG..HANGUL SYLLABLE CYAEH - if (0xcc7d <= code && code <= 0xcc97) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CEO - if (0xcc98 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xccb4) { - // Lo [27] HANGUL SYLLABLE CEOG..HANGUL SYLLABLE CEOH - if (0xcc99 <= code && code <= 0xccb3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xccb5) { - // Lo HANGUL SYLLABLE CE - if (0xccb4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CEG..HANGUL SYLLABLE CEH - if (0xccb5 <= code && code <= 0xcccf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xcced) { - if (code < 0xccd1) { - // Lo HANGUL SYLLABLE CYEO - if (0xccd0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xccec) { - // Lo [27] HANGUL SYLLABLE CYEOG..HANGUL SYLLABLE CYEOH - if (0xccd1 <= code && code <= 0xcceb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CYE - if (0xccec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xcd08) { - // Lo [27] HANGUL SYLLABLE CYEG..HANGUL SYLLABLE CYEH - if (0xcced <= code && code <= 0xcd07) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcd09) { - // Lo HANGUL SYLLABLE CO - if (0xcd08 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE COG..HANGUL SYLLABLE COH - if (0xcd09 <= code && code <= 0xcd23) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - } - else { - if (code < 0xcf71) { - if (code < 0xce3d) { - if (code < 0xcdb0) { - if (code < 0xcd5d) { - if (code < 0xcd40) { - if (code < 0xcd25) { - // Lo HANGUL SYLLABLE CWA - if (0xcd24 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CWAG..HANGUL SYLLABLE CWAH - if (0xcd25 <= code && code <= 0xcd3f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcd41) { - // Lo HANGUL SYLLABLE CWAE - if (0xcd40 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcd5c) { - // Lo [27] HANGUL SYLLABLE CWAEG..HANGUL SYLLABLE CWAEH - if (0xcd41 <= code && code <= 0xcd5b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE COE - if (0xcd5c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xcd79) { - if (code < 0xcd78) { - // Lo [27] HANGUL SYLLABLE COEG..HANGUL SYLLABLE COEH - if (0xcd5d <= code && code <= 0xcd77) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CYO - if (0xcd78 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xcd94) { - // Lo [27] HANGUL SYLLABLE CYOG..HANGUL SYLLABLE CYOH - if (0xcd79 <= code && code <= 0xcd93) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcd95) { - // Lo HANGUL SYLLABLE CU - if (0xcd94 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CUG..HANGUL SYLLABLE CUH - if (0xcd95 <= code && code <= 0xcdaf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xcde9) { - if (code < 0xcdcc) { - if (code < 0xcdb1) { - // Lo HANGUL SYLLABLE CWEO - if (0xcdb0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CWEOG..HANGUL SYLLABLE CWEOH - if (0xcdb1 <= code && code <= 0xcdcb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcdcd) { - // Lo HANGUL SYLLABLE CWE - if (0xcdcc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcde8) { - // Lo [27] HANGUL SYLLABLE CWEG..HANGUL SYLLABLE CWEH - if (0xcdcd <= code && code <= 0xcde7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CWI - if (0xcde8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xce20) { - if (code < 0xce04) { - // Lo [27] HANGUL SYLLABLE CWIG..HANGUL SYLLABLE CWIH - if (0xcde9 <= code && code <= 0xce03) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xce05) { - // Lo HANGUL SYLLABLE CYU - if (0xce04 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE CYUG..HANGUL SYLLABLE CYUH - if (0xce05 <= code && code <= 0xce1f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xce21) { - // Lo HANGUL SYLLABLE CEU - if (0xce20 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xce3c) { - // Lo [27] HANGUL SYLLABLE CEUG..HANGUL SYLLABLE CEUH - if (0xce21 <= code && code <= 0xce3b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CYI - if (0xce3c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xcee4) { - if (code < 0xce90) { - if (code < 0xce59) { - if (code < 0xce58) { - // Lo [27] HANGUL SYLLABLE CYIG..HANGUL SYLLABLE CYIH - if (0xce3d <= code && code <= 0xce57) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE CI - if (0xce58 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xce74) { - // Lo [27] HANGUL SYLLABLE CIG..HANGUL SYLLABLE CIH - if (0xce59 <= code && code <= 0xce73) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xce75) { - // Lo HANGUL SYLLABLE KA - if (0xce74 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KAG..HANGUL SYLLABLE KAH - if (0xce75 <= code && code <= 0xce8f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xcead) { - if (code < 0xce91) { - // Lo HANGUL SYLLABLE KAE - if (0xce90 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xceac) { - // Lo [27] HANGUL SYLLABLE KAEG..HANGUL SYLLABLE KAEH - if (0xce91 <= code && code <= 0xceab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KYA - if (0xceac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xcec8) { - // Lo [27] HANGUL SYLLABLE KYAG..HANGUL SYLLABLE KYAH - if (0xcead <= code && code <= 0xcec7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcec9) { - // Lo HANGUL SYLLABLE KYAE - if (0xcec8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KYAEG..HANGUL SYLLABLE KYAEH - if (0xcec9 <= code && code <= 0xcee3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xcf1d) { - if (code < 0xcf00) { - if (code < 0xcee5) { - // Lo HANGUL SYLLABLE KEO - if (0xcee4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KEOG..HANGUL SYLLABLE KEOH - if (0xcee5 <= code && code <= 0xceff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcf01) { - // Lo HANGUL SYLLABLE KE - if (0xcf00 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcf1c) { - // Lo [27] HANGUL SYLLABLE KEG..HANGUL SYLLABLE KEH - if (0xcf01 <= code && code <= 0xcf1b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KYEO - if (0xcf1c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xcf54) { - if (code < 0xcf38) { - // Lo [27] HANGUL SYLLABLE KYEOG..HANGUL SYLLABLE KYEOH - if (0xcf1d <= code && code <= 0xcf37) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcf39) { - // Lo HANGUL SYLLABLE KYE - if (0xcf38 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KYEG..HANGUL SYLLABLE KYEH - if (0xcf39 <= code && code <= 0xcf53) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xcf55) { - // Lo HANGUL SYLLABLE KO - if (0xcf54 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcf70) { - // Lo [27] HANGUL SYLLABLE KOG..HANGUL SYLLABLE KOH - if (0xcf55 <= code && code <= 0xcf6f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KWA - if (0xcf70 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - else { - if (code < 0xd0a4) { - if (code < 0xcffd) { - if (code < 0xcfc4) { - if (code < 0xcf8d) { - if (code < 0xcf8c) { - // Lo [27] HANGUL SYLLABLE KWAG..HANGUL SYLLABLE KWAH - if (0xcf71 <= code && code <= 0xcf8b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KWAE - if (0xcf8c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xcfa8) { - // Lo [27] HANGUL SYLLABLE KWAEG..HANGUL SYLLABLE KWAEH - if (0xcf8d <= code && code <= 0xcfa7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xcfa9) { - // Lo HANGUL SYLLABLE KOE - if (0xcfa8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KOEG..HANGUL SYLLABLE KOEH - if (0xcfa9 <= code && code <= 0xcfc3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xcfe0) { - if (code < 0xcfc5) { - // Lo HANGUL SYLLABLE KYO - if (0xcfc4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KYOG..HANGUL SYLLABLE KYOH - if (0xcfc5 <= code && code <= 0xcfdf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xcfe1) { - // Lo HANGUL SYLLABLE KU - if (0xcfe0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xcffc) { - // Lo [27] HANGUL SYLLABLE KUG..HANGUL SYLLABLE KUH - if (0xcfe1 <= code && code <= 0xcffb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KWEO - if (0xcffc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xd050) { - if (code < 0xd019) { - if (code < 0xd018) { - // Lo [27] HANGUL SYLLABLE KWEOG..HANGUL SYLLABLE KWEOH - if (0xcffd <= code && code <= 0xd017) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KWE - if (0xd018 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd034) { - // Lo [27] HANGUL SYLLABLE KWEG..HANGUL SYLLABLE KWEH - if (0xd019 <= code && code <= 0xd033) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd035) { - // Lo HANGUL SYLLABLE KWI - if (0xd034 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KWIG..HANGUL SYLLABLE KWIH - if (0xd035 <= code && code <= 0xd04f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd06d) { - if (code < 0xd051) { - // Lo HANGUL SYLLABLE KYU - if (0xd050 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd06c) { - // Lo [27] HANGUL SYLLABLE KYUG..HANGUL SYLLABLE KYUH - if (0xd051 <= code && code <= 0xd06b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE KEU - if (0xd06c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xd088) { - // Lo [27] HANGUL SYLLABLE KEUG..HANGUL SYLLABLE KEUH - if (0xd06d <= code && code <= 0xd087) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd089) { - // Lo HANGUL SYLLABLE KYI - if (0xd088 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KYIG..HANGUL SYLLABLE KYIH - if (0xd089 <= code && code <= 0xd0a3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0xd131) { - if (code < 0xd0dd) { - if (code < 0xd0c0) { - if (code < 0xd0a5) { - // Lo HANGUL SYLLABLE KI - if (0xd0a4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE KIG..HANGUL SYLLABLE KIH - if (0xd0a5 <= code && code <= 0xd0bf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd0c1) { - // Lo HANGUL SYLLABLE TA - if (0xd0c0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd0dc) { - // Lo [27] HANGUL SYLLABLE TAG..HANGUL SYLLABLE TAH - if (0xd0c1 <= code && code <= 0xd0db) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TAE - if (0xd0dc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd114) { - if (code < 0xd0f8) { - // Lo [27] HANGUL SYLLABLE TAEG..HANGUL SYLLABLE TAEH - if (0xd0dd <= code && code <= 0xd0f7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd0f9) { - // Lo HANGUL SYLLABLE TYA - if (0xd0f8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TYAG..HANGUL SYLLABLE TYAH - if (0xd0f9 <= code && code <= 0xd113) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xd115) { - // Lo HANGUL SYLLABLE TYAE - if (0xd114 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd130) { - // Lo [27] HANGUL SYLLABLE TYAEG..HANGUL SYLLABLE TYAEH - if (0xd115 <= code && code <= 0xd12f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TEO - if (0xd130 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xd184) { - if (code < 0xd14d) { - if (code < 0xd14c) { - // Lo [27] HANGUL SYLLABLE TEOG..HANGUL SYLLABLE TEOH - if (0xd131 <= code && code <= 0xd14b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TE - if (0xd14c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd168) { - // Lo [27] HANGUL SYLLABLE TEG..HANGUL SYLLABLE TEH - if (0xd14d <= code && code <= 0xd167) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd169) { - // Lo HANGUL SYLLABLE TYEO - if (0xd168 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TYEOG..HANGUL SYLLABLE TYEOH - if (0xd169 <= code && code <= 0xd183) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd1a1) { - if (code < 0xd185) { - // Lo HANGUL SYLLABLE TYE - if (0xd184 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd1a0) { - // Lo [27] HANGUL SYLLABLE TYEG..HANGUL SYLLABLE TYEH - if (0xd185 <= code && code <= 0xd19f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TO - if (0xd1a0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xd1bc) { - // Lo [27] HANGUL SYLLABLE TOG..HANGUL SYLLABLE TOH - if (0xd1a1 <= code && code <= 0xd1bb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd1bd) { - // Lo HANGUL SYLLABLE TWA - if (0xd1bc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TWAG..HANGUL SYLLABLE TWAH - if (0xd1bd <= code && code <= 0xd1d7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0x1133b) { - if (code < 0xd671) { - if (code < 0xd424) { - if (code < 0xd2f1) { - if (code < 0xd264) { - if (code < 0xd211) { - if (code < 0xd1f4) { - if (code < 0xd1d9) { - // Lo HANGUL SYLLABLE TWAE - if (0xd1d8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TWAEG..HANGUL SYLLABLE TWAEH - if (0xd1d9 <= code && code <= 0xd1f3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd1f5) { - // Lo HANGUL SYLLABLE TOE - if (0xd1f4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd210) { - // Lo [27] HANGUL SYLLABLE TOEG..HANGUL SYLLABLE TOEH - if (0xd1f5 <= code && code <= 0xd20f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TYO - if (0xd210 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd22d) { - if (code < 0xd22c) { - // Lo [27] HANGUL SYLLABLE TYOG..HANGUL SYLLABLE TYOH - if (0xd211 <= code && code <= 0xd22b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TU - if (0xd22c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd248) { - // Lo [27] HANGUL SYLLABLE TUG..HANGUL SYLLABLE TUH - if (0xd22d <= code && code <= 0xd247) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd249) { - // Lo HANGUL SYLLABLE TWEO - if (0xd248 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TWEOG..HANGUL SYLLABLE TWEOH - if (0xd249 <= code && code <= 0xd263) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xd29d) { - if (code < 0xd280) { - if (code < 0xd265) { - // Lo HANGUL SYLLABLE TWE - if (0xd264 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TWEG..HANGUL SYLLABLE TWEH - if (0xd265 <= code && code <= 0xd27f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd281) { - // Lo HANGUL SYLLABLE TWI - if (0xd280 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd29c) { - // Lo [27] HANGUL SYLLABLE TWIG..HANGUL SYLLABLE TWIH - if (0xd281 <= code && code <= 0xd29b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TYU - if (0xd29c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd2d4) { - if (code < 0xd2b8) { - // Lo [27] HANGUL SYLLABLE TYUG..HANGUL SYLLABLE TYUH - if (0xd29d <= code && code <= 0xd2b7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd2b9) { - // Lo HANGUL SYLLABLE TEU - if (0xd2b8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE TEUG..HANGUL SYLLABLE TEUH - if (0xd2b9 <= code && code <= 0xd2d3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xd2d5) { - // Lo HANGUL SYLLABLE TYI - if (0xd2d4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd2f0) { - // Lo [27] HANGUL SYLLABLE TYIG..HANGUL SYLLABLE TYIH - if (0xd2d5 <= code && code <= 0xd2ef) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE TI - if (0xd2f0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xd37d) { - if (code < 0xd344) { - if (code < 0xd30d) { - if (code < 0xd30c) { - // Lo [27] HANGUL SYLLABLE TIG..HANGUL SYLLABLE TIH - if (0xd2f1 <= code && code <= 0xd30b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PA - if (0xd30c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd328) { - // Lo [27] HANGUL SYLLABLE PAG..HANGUL SYLLABLE PAH - if (0xd30d <= code && code <= 0xd327) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd329) { - // Lo HANGUL SYLLABLE PAE - if (0xd328 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PAEG..HANGUL SYLLABLE PAEH - if (0xd329 <= code && code <= 0xd343) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd360) { - if (code < 0xd345) { - // Lo HANGUL SYLLABLE PYA - if (0xd344 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PYAG..HANGUL SYLLABLE PYAH - if (0xd345 <= code && code <= 0xd35f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd361) { - // Lo HANGUL SYLLABLE PYAE - if (0xd360 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd37c) { - // Lo [27] HANGUL SYLLABLE PYAEG..HANGUL SYLLABLE PYAEH - if (0xd361 <= code && code <= 0xd37b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PEO - if (0xd37c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xd3d0) { - if (code < 0xd399) { - if (code < 0xd398) { - // Lo [27] HANGUL SYLLABLE PEOG..HANGUL SYLLABLE PEOH - if (0xd37d <= code && code <= 0xd397) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PE - if (0xd398 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd3b4) { - // Lo [27] HANGUL SYLLABLE PEG..HANGUL SYLLABLE PEH - if (0xd399 <= code && code <= 0xd3b3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd3b5) { - // Lo HANGUL SYLLABLE PYEO - if (0xd3b4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PYEOG..HANGUL SYLLABLE PYEOH - if (0xd3b5 <= code && code <= 0xd3cf) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd3ed) { - if (code < 0xd3d1) { - // Lo HANGUL SYLLABLE PYE - if (0xd3d0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd3ec) { - // Lo [27] HANGUL SYLLABLE PYEG..HANGUL SYLLABLE PYEH - if (0xd3d1 <= code && code <= 0xd3eb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PO - if (0xd3ec === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xd408) { - // Lo [27] HANGUL SYLLABLE POG..HANGUL SYLLABLE POH - if (0xd3ed <= code && code <= 0xd407) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd409) { - // Lo HANGUL SYLLABLE PWA - if (0xd408 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PWAG..HANGUL SYLLABLE PWAH - if (0xd409 <= code && code <= 0xd423) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - } - else { - if (code < 0xd53d) { - if (code < 0xd4b0) { - if (code < 0xd45d) { - if (code < 0xd440) { - if (code < 0xd425) { - // Lo HANGUL SYLLABLE PWAE - if (0xd424 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PWAEG..HANGUL SYLLABLE PWAEH - if (0xd425 <= code && code <= 0xd43f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd441) { - // Lo HANGUL SYLLABLE POE - if (0xd440 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd45c) { - // Lo [27] HANGUL SYLLABLE POEG..HANGUL SYLLABLE POEH - if (0xd441 <= code && code <= 0xd45b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PYO - if (0xd45c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd479) { - if (code < 0xd478) { - // Lo [27] HANGUL SYLLABLE PYOG..HANGUL SYLLABLE PYOH - if (0xd45d <= code && code <= 0xd477) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PU - if (0xd478 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd494) { - // Lo [27] HANGUL SYLLABLE PUG..HANGUL SYLLABLE PUH - if (0xd479 <= code && code <= 0xd493) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd495) { - // Lo HANGUL SYLLABLE PWEO - if (0xd494 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PWEOG..HANGUL SYLLABLE PWEOH - if (0xd495 <= code && code <= 0xd4af) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xd4e9) { - if (code < 0xd4cc) { - if (code < 0xd4b1) { - // Lo HANGUL SYLLABLE PWE - if (0xd4b0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PWEG..HANGUL SYLLABLE PWEH - if (0xd4b1 <= code && code <= 0xd4cb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd4cd) { - // Lo HANGUL SYLLABLE PWI - if (0xd4cc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd4e8) { - // Lo [27] HANGUL SYLLABLE PWIG..HANGUL SYLLABLE PWIH - if (0xd4cd <= code && code <= 0xd4e7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PYU - if (0xd4e8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd520) { - if (code < 0xd504) { - // Lo [27] HANGUL SYLLABLE PYUG..HANGUL SYLLABLE PYUH - if (0xd4e9 <= code && code <= 0xd503) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd505) { - // Lo HANGUL SYLLABLE PEU - if (0xd504 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE PEUG..HANGUL SYLLABLE PEUH - if (0xd505 <= code && code <= 0xd51f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xd521) { - // Lo HANGUL SYLLABLE PYI - if (0xd520 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd53c) { - // Lo [27] HANGUL SYLLABLE PYIG..HANGUL SYLLABLE PYIH - if (0xd521 <= code && code <= 0xd53b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE PI - if (0xd53c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - else { - if (code < 0xd5e4) { - if (code < 0xd590) { - if (code < 0xd559) { - if (code < 0xd558) { - // Lo [27] HANGUL SYLLABLE PIG..HANGUL SYLLABLE PIH - if (0xd53d <= code && code <= 0xd557) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HA - if (0xd558 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd574) { - // Lo [27] HANGUL SYLLABLE HAG..HANGUL SYLLABLE HAH - if (0xd559 <= code && code <= 0xd573) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd575) { - // Lo HANGUL SYLLABLE HAE - if (0xd574 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HAEG..HANGUL SYLLABLE HAEH - if (0xd575 <= code && code <= 0xd58f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd5ad) { - if (code < 0xd591) { - // Lo HANGUL SYLLABLE HYA - if (0xd590 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd5ac) { - // Lo [27] HANGUL SYLLABLE HYAG..HANGUL SYLLABLE HYAH - if (0xd591 <= code && code <= 0xd5ab) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HYAE - if (0xd5ac === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xd5c8) { - // Lo [27] HANGUL SYLLABLE HYAEG..HANGUL SYLLABLE HYAEH - if (0xd5ad <= code && code <= 0xd5c7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd5c9) { - // Lo HANGUL SYLLABLE HEO - if (0xd5c8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HEOG..HANGUL SYLLABLE HEOH - if (0xd5c9 <= code && code <= 0xd5e3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - else { - if (code < 0xd61d) { - if (code < 0xd600) { - if (code < 0xd5e5) { - // Lo HANGUL SYLLABLE HE - if (0xd5e4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HEG..HANGUL SYLLABLE HEH - if (0xd5e5 <= code && code <= 0xd5ff) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd601) { - // Lo HANGUL SYLLABLE HYEO - if (0xd600 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd61c) { - // Lo [27] HANGUL SYLLABLE HYEOG..HANGUL SYLLABLE HYEOH - if (0xd601 <= code && code <= 0xd61b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HYE - if (0xd61c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - else { - if (code < 0xd654) { - if (code < 0xd638) { - // Lo [27] HANGUL SYLLABLE HYEG..HANGUL SYLLABLE HYEH - if (0xd61d <= code && code <= 0xd637) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd639) { - // Lo HANGUL SYLLABLE HO - if (0xd638 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HOG..HANGUL SYLLABLE HOH - if (0xd639 <= code && code <= 0xd653) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - else { - if (code < 0xd655) { - // Lo HANGUL SYLLABLE HWA - if (0xd654 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd670) { - // Lo [27] HANGUL SYLLABLE HWAG..HANGUL SYLLABLE HWAH - if (0xd655 <= code && code <= 0xd66f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HWAE - if (0xd670 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - } - } - } - else { - if (code < 0x11000) { - if (code < 0xd7b0) { - if (code < 0xd6fd) { - if (code < 0xd6c4) { - if (code < 0xd68d) { - if (code < 0xd68c) { - // Lo [27] HANGUL SYLLABLE HWAEG..HANGUL SYLLABLE HWAEH - if (0xd671 <= code && code <= 0xd68b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HOE - if (0xd68c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd6a8) { - // Lo [27] HANGUL SYLLABLE HOEG..HANGUL SYLLABLE HOEH - if (0xd68d <= code && code <= 0xd6a7) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd6a9) { - // Lo HANGUL SYLLABLE HYO - if (0xd6a8 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HYOG..HANGUL SYLLABLE HYOH - if (0xd6a9 <= code && code <= 0xd6c3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd6e0) { - if (code < 0xd6c5) { - // Lo HANGUL SYLLABLE HU - if (0xd6c4 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HUG..HANGUL SYLLABLE HUH - if (0xd6c5 <= code && code <= 0xd6df) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - else { - if (code < 0xd6e1) { - // Lo HANGUL SYLLABLE HWEO - if (0xd6e0 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd6fc) { - // Lo [27] HANGUL SYLLABLE HWEOG..HANGUL SYLLABLE HWEOH - if (0xd6e1 <= code && code <= 0xd6fb) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HWE - if (0xd6fc === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - } - } - else { - if (code < 0xd750) { - if (code < 0xd719) { - if (code < 0xd718) { - // Lo [27] HANGUL SYLLABLE HWEG..HANGUL SYLLABLE HWEH - if (0xd6fd <= code && code <= 0xd717) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HWI - if (0xd718 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - else { - if (code < 0xd734) { - // Lo [27] HANGUL SYLLABLE HWIG..HANGUL SYLLABLE HWIH - if (0xd719 <= code && code <= 0xd733) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd735) { - // Lo HANGUL SYLLABLE HYU - if (0xd734 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HYUG..HANGUL SYLLABLE HYUH - if (0xd735 <= code && code <= 0xd74f) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - else { - if (code < 0xd76d) { - if (code < 0xd751) { - // Lo HANGUL SYLLABLE HEU - if (0xd750 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - if (code < 0xd76c) { - // Lo [27] HANGUL SYLLABLE HEUG..HANGUL SYLLABLE HEUH - if (0xd751 <= code && code <= 0xd76b) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - // Lo HANGUL SYLLABLE HYI - if (0xd76c === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - } - } - else { - if (code < 0xd788) { - // Lo [27] HANGUL SYLLABLE HYIG..HANGUL SYLLABLE HYIH - if (0xd76d <= code && code <= 0xd787) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - else { - if (code < 0xd789) { - // Lo HANGUL SYLLABLE HI - if (0xd788 === code) { - return boundaries_1.CLUSTER_BREAK.LV; - } - } - else { - // Lo [27] HANGUL SYLLABLE HIG..HANGUL SYLLABLE HIH - if (0xd789 <= code && code <= 0xd7a3) { - return boundaries_1.CLUSTER_BREAK.LVT; - } - } - } - } - } - } - } - else { - if (code < 0x10a01) { - if (code < 0xfeff) { - if (code < 0xfb1e) { - if (code < 0xd7cb) { - // Lo [23] HANGUL JUNGSEONG O-YEO..HANGUL JUNGSEONG ARAEA-E - if (0xd7b0 <= code && code <= 0xd7c6) { - return boundaries_1.CLUSTER_BREAK.V; - } - } - else { - // Lo [49] HANGUL JONGSEONG NIEUN-RIEUL..HANGUL JONGSEONG PHIEUPH-THIEUTH - if (0xd7cb <= code && code <= 0xd7fb) { - return boundaries_1.CLUSTER_BREAK.T; - } - } - } - else { - if (code < 0xfe00) { - // Mn HEBREW POINT JUDEO-SPANISH VARIKA - if (0xfb1e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xfe20) { - // Mn [16] VARIATION SELECTOR-1..VARIATION SELECTOR-16 - if (0xfe00 <= code && code <= 0xfe0f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [16] COMBINING LIGATURE LEFT HALF..COMBINING CYRILLIC TITLO RIGHT HALF - if (0xfe20 <= code && code <= 0xfe2f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x101fd) { - if (code < 0xff9e) { - // Cf ZERO WIDTH NO-BREAK SPACE - if (0xfeff === code) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - if (code < 0xfff0) { - // Lm [2] HALFWIDTH KATAKANA VOICED SOUND MARK..HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK - if (0xff9e <= code && code <= 0xff9f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cn [9] .. - // Cf [3] INTERLINEAR ANNOTATION ANCHOR..INTERLINEAR ANNOTATION TERMINATOR - if (0xfff0 <= code && code <= 0xfffb) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - } - } - else { - if (code < 0x102e0) { - // Mn PHAISTOS DISC SIGN COMBINING OBLIQUE STROKE - if (0x101fd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x10376) { - // Mn COPTIC EPACT THOUSANDS MARK - if (0x102e0 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [5] COMBINING OLD PERMIC LETTER AN..COMBINING OLD PERMIC LETTER SII - if (0x10376 <= code && code <= 0x1037a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x10ae5) { - if (code < 0x10a0c) { - if (code < 0x10a05) { - // Mn [3] KHAROSHTHI VOWEL SIGN I..KHAROSHTHI VOWEL SIGN VOCALIC R - if (0x10a01 <= code && code <= 0x10a03) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] KHAROSHTHI VOWEL SIGN E..KHAROSHTHI VOWEL SIGN O - if (0x10a05 <= code && code <= 0x10a06) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x10a38) { - // Mn [4] KHAROSHTHI VOWEL LENGTH MARK..KHAROSHTHI SIGN VISARGA - if (0x10a0c <= code && code <= 0x10a0f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x10a3f) { - // Mn [3] KHAROSHTHI SIGN BAR ABOVE..KHAROSHTHI SIGN DOT BELOW - if (0x10a38 <= code && code <= 0x10a3a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn KHAROSHTHI VIRAMA - if (0x10a3f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x10efd) { - if (code < 0x10d24) { - // Mn [2] MANICHAEAN ABBREVIATION MARK ABOVE..MANICHAEAN ABBREVIATION MARK BELOW - if (0x10ae5 <= code && code <= 0x10ae6) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x10eab) { - // Mn [4] HANIFI ROHINGYA SIGN HARBAHAY..HANIFI ROHINGYA SIGN TASSI - if (0x10d24 <= code && code <= 0x10d27) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] YEZIDI COMBINING HAMZA MARK..YEZIDI COMBINING MADDA MARK - if (0x10eab <= code && code <= 0x10eac) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x10f46) { - // Mn [3] ARABIC SMALL LOW WORD SAKTA..ARABIC SMALL LOW WORD MADDA - if (0x10efd <= code && code <= 0x10eff) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x10f82) { - // Mn [11] SOGDIAN COMBINING DOT BELOW..SOGDIAN COMBINING STROKE BELOW - if (0x10f46 <= code && code <= 0x10f50) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [4] OLD UYGHUR COMBINING DOT ABOVE..OLD UYGHUR COMBINING TWO DOTS BELOW - if (0x10f82 <= code && code <= 0x10f85) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - else { - if (code < 0x11180) { - if (code < 0x110b7) { - if (code < 0x11073) { - if (code < 0x11002) { - // Mc BRAHMI SIGN CANDRABINDU - if (0x11000 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn BRAHMI SIGN ANUSVARA - if (0x11001 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11038) { - // Mc BRAHMI SIGN VISARGA - if (0x11002 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11070) { - // Mn [15] BRAHMI VOWEL SIGN AA..BRAHMI VIRAMA - if (0x11038 <= code && code <= 0x11046) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn BRAHMI SIGN OLD TAMIL VIRAMA - if (0x11070 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x11082) { - if (code < 0x1107f) { - // Mn [2] BRAHMI VOWEL SIGN OLD TAMIL SHORT E..BRAHMI VOWEL SIGN OLD TAMIL SHORT O - if (0x11073 <= code && code <= 0x11074) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] BRAHMI NUMBER JOINER..KAITHI SIGN ANUSVARA - if (0x1107f <= code && code <= 0x11081) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x110b0) { - // Mc KAITHI SIGN VISARGA - if (0x11082 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x110b3) { - // Mc [3] KAITHI VOWEL SIGN AA..KAITHI VOWEL SIGN II - if (0x110b0 <= code && code <= 0x110b2) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] KAITHI VOWEL SIGN U..KAITHI VOWEL SIGN AI - if (0x110b3 <= code && code <= 0x110b6) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11100) { - if (code < 0x110bd) { - if (code < 0x110b9) { - // Mc [2] KAITHI VOWEL SIGN O..KAITHI VOWEL SIGN AU - if (0x110b7 <= code && code <= 0x110b8) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] KAITHI SIGN VIRAMA..KAITHI SIGN NUKTA - if (0x110b9 <= code && code <= 0x110ba) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x110c2) { - // Cf KAITHI NUMBER SIGN - if (0x110bd === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - // Mn KAITHI VOWEL SIGN VOCALIC R - if (0x110c2 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Cf KAITHI NUMBER SIGN ABOVE - if (0x110cd === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - } - } - else { - if (code < 0x1112d) { - if (code < 0x11127) { - // Mn [3] CHAKMA SIGN CANDRABINDU..CHAKMA SIGN VISARGA - if (0x11100 <= code && code <= 0x11102) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1112c) { - // Mn [5] CHAKMA VOWEL SIGN A..CHAKMA VOWEL SIGN UU - if (0x11127 <= code && code <= 0x1112b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc CHAKMA VOWEL SIGN E - if (0x1112c === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x11145) { - // Mn [8] CHAKMA VOWEL SIGN AI..CHAKMA MAAYYAA - if (0x1112d <= code && code <= 0x11134) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11173) { - // Mc [2] CHAKMA VOWEL SIGN AA..CHAKMA VOWEL SIGN EI - if (0x11145 <= code && code <= 0x11146) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn MAHAJANI SIGN NUKTA - if (0x11173 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0x11232) { - if (code < 0x111c2) { - if (code < 0x111b3) { - if (code < 0x11182) { - // Mn [2] SHARADA SIGN CANDRABINDU..SHARADA SIGN ANUSVARA - if (0x11180 <= code && code <= 0x11181) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc SHARADA SIGN VISARGA - if (0x11182 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x111b6) { - // Mc [3] SHARADA VOWEL SIGN AA..SHARADA VOWEL SIGN II - if (0x111b3 <= code && code <= 0x111b5) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x111bf) { - // Mn [9] SHARADA VOWEL SIGN U..SHARADA VOWEL SIGN O - if (0x111b6 <= code && code <= 0x111be) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SHARADA VOWEL SIGN AU..SHARADA SIGN VIRAMA - if (0x111bf <= code && code <= 0x111c0) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x111cf) { - if (code < 0x111c9) { - // Lo [2] SHARADA SIGN JIHVAMULIYA..SHARADA SIGN UPADHMANIYA - if (0x111c2 <= code && code <= 0x111c3) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - if (code < 0x111ce) { - // Mn [4] SHARADA SANDHI MARK..SHARADA EXTRA SHORT VOWEL MARK - if (0x111c9 <= code && code <= 0x111cc) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc SHARADA VOWEL SIGN PRISHTHAMATRA E - if (0x111ce === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x1122c) { - // Mn SHARADA SIGN INVERTED CANDRABINDU - if (0x111cf === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1122f) { - // Mc [3] KHOJKI VOWEL SIGN AA..KHOJKI VOWEL SIGN II - if (0x1122c <= code && code <= 0x1122e) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [3] KHOJKI VOWEL SIGN U..KHOJKI VOWEL SIGN AI - if (0x1122f <= code && code <= 0x11231) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11241) { - if (code < 0x11235) { - if (code < 0x11234) { - // Mc [2] KHOJKI VOWEL SIGN O..KHOJKI VOWEL SIGN AU - if (0x11232 <= code && code <= 0x11233) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn KHOJKI SIGN ANUSVARA - if (0x11234 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x11236) { - // Mc KHOJKI SIGN VIRAMA - if (0x11235 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1123e) { - // Mn [2] KHOJKI SIGN NUKTA..KHOJKI SIGN SHADDA - if (0x11236 <= code && code <= 0x11237) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn KHOJKI SIGN SUKUN - if (0x1123e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x112e3) { - if (code < 0x112df) { - // Mn KHOJKI VOWEL SIGN VOCALIC R - if (0x11241 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x112e0) { - // Mn KHUDAWADI SIGN ANUSVARA - if (0x112df === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] KHUDAWADI VOWEL SIGN AA..KHUDAWADI VOWEL SIGN II - if (0x112e0 <= code && code <= 0x112e2) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x11300) { - // Mn [8] KHUDAWADI VOWEL SIGN U..KHUDAWADI SIGN VIRAMA - if (0x112e3 <= code && code <= 0x112ea) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11302) { - // Mn [2] GRANTHA SIGN COMBINING ANUSVARA ABOVE..GRANTHA SIGN CANDRABINDU - if (0x11300 <= code && code <= 0x11301) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] GRANTHA SIGN ANUSVARA..GRANTHA SIGN VISARGA - if (0x11302 <= code && code <= 0x11303) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - } - } - } - else { - if (code < 0x11a97) { - if (code < 0x116ab) { - if (code < 0x114b9) { - if (code < 0x11370) { - if (code < 0x11347) { - if (code < 0x1133f) { - if (code < 0x1133e) { - // Mn [2] COMBINING BINDU BELOW..GRANTHA SIGN NUKTA - if (0x1133b <= code && code <= 0x1133c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc GRANTHA VOWEL SIGN AA - if (0x1133e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x11340) { - // Mc GRANTHA VOWEL SIGN I - if (0x1133f === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11341) { - // Mn GRANTHA VOWEL SIGN II - if (0x11340 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [4] GRANTHA VOWEL SIGN U..GRANTHA VOWEL SIGN VOCALIC RR - if (0x11341 <= code && code <= 0x11344) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x11357) { - if (code < 0x1134b) { - // Mc [2] GRANTHA VOWEL SIGN EE..GRANTHA VOWEL SIGN AI - if (0x11347 <= code && code <= 0x11348) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc [3] GRANTHA VOWEL SIGN OO..GRANTHA SIGN VIRAMA - if (0x1134b <= code && code <= 0x1134d) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x11362) { - // Mc GRANTHA AU LENGTH MARK - if (0x11357 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11366) { - // Mc [2] GRANTHA VOWEL SIGN VOCALIC L..GRANTHA VOWEL SIGN VOCALIC LL - if (0x11362 <= code && code <= 0x11363) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [7] COMBINING GRANTHA DIGIT ZERO..COMBINING GRANTHA DIGIT SIX - if (0x11366 <= code && code <= 0x1136c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11445) { - if (code < 0x11438) { - if (code < 0x11435) { - // Mn [5] COMBINING GRANTHA LETTER A..COMBINING GRANTHA LETTER PA - if (0x11370 <= code && code <= 0x11374) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] NEWA VOWEL SIGN AA..NEWA VOWEL SIGN II - if (0x11435 <= code && code <= 0x11437) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x11440) { - // Mn [8] NEWA VOWEL SIGN U..NEWA VOWEL SIGN AI - if (0x11438 <= code && code <= 0x1143f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11442) { - // Mc [2] NEWA VOWEL SIGN O..NEWA VOWEL SIGN AU - if (0x11440 <= code && code <= 0x11441) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [3] NEWA SIGN VIRAMA..NEWA SIGN ANUSVARA - if (0x11442 <= code && code <= 0x11444) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x114b0) { - if (code < 0x11446) { - // Mc NEWA SIGN VISARGA - if (0x11445 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn NEWA SIGN NUKTA - if (0x11446 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mn NEWA SANDHI MARK - if (0x1145e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x114b1) { - // Mc TIRHUTA VOWEL SIGN AA - if (0x114b0 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x114b3) { - // Mc [2] TIRHUTA VOWEL SIGN I..TIRHUTA VOWEL SIGN II - if (0x114b1 <= code && code <= 0x114b2) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [6] TIRHUTA VOWEL SIGN U..TIRHUTA VOWEL SIGN VOCALIC LL - if (0x114b3 <= code && code <= 0x114b8) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0x115b8) { - if (code < 0x114bf) { - if (code < 0x114bb) { - // Mc TIRHUTA VOWEL SIGN E - if (0x114b9 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn TIRHUTA VOWEL SIGN SHORT E - if (0x114ba === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x114bd) { - // Mc [2] TIRHUTA VOWEL SIGN AI..TIRHUTA VOWEL SIGN O - if (0x114bb <= code && code <= 0x114bc) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc TIRHUTA VOWEL SIGN SHORT O - if (0x114bd === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc TIRHUTA VOWEL SIGN AU - if (0x114be === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x115af) { - if (code < 0x114c1) { - // Mn [2] TIRHUTA SIGN CANDRABINDU..TIRHUTA SIGN ANUSVARA - if (0x114bf <= code && code <= 0x114c0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x114c2) { - // Mc TIRHUTA SIGN VISARGA - if (0x114c1 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] TIRHUTA SIGN VIRAMA..TIRHUTA SIGN NUKTA - if (0x114c2 <= code && code <= 0x114c3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x115b0) { - // Mc SIDDHAM VOWEL SIGN AA - if (0x115af === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x115b2) { - // Mc [2] SIDDHAM VOWEL SIGN I..SIDDHAM VOWEL SIGN II - if (0x115b0 <= code && code <= 0x115b1) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] SIDDHAM VOWEL SIGN U..SIDDHAM VOWEL SIGN VOCALIC RR - if (0x115b2 <= code && code <= 0x115b5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11630) { - if (code < 0x115be) { - if (code < 0x115bc) { - // Mc [4] SIDDHAM VOWEL SIGN E..SIDDHAM VOWEL SIGN AU - if (0x115b8 <= code && code <= 0x115bb) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] SIDDHAM SIGN CANDRABINDU..SIDDHAM SIGN ANUSVARA - if (0x115bc <= code && code <= 0x115bd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x115bf) { - // Mc SIDDHAM SIGN VISARGA - if (0x115be === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x115dc) { - // Mn [2] SIDDHAM SIGN VIRAMA..SIDDHAM SIGN NUKTA - if (0x115bf <= code && code <= 0x115c0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] SIDDHAM VOWEL SIGN ALTERNATE U..SIDDHAM VOWEL SIGN ALTERNATE UU - if (0x115dc <= code && code <= 0x115dd) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1163d) { - if (code < 0x11633) { - // Mc [3] MODI VOWEL SIGN AA..MODI VOWEL SIGN II - if (0x11630 <= code && code <= 0x11632) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x1163b) { - // Mn [8] MODI VOWEL SIGN U..MODI VOWEL SIGN AI - if (0x11633 <= code && code <= 0x1163a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] MODI VOWEL SIGN O..MODI VOWEL SIGN AU - if (0x1163b <= code && code <= 0x1163c) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x1163e) { - // Mn MODI SIGN ANUSVARA - if (0x1163d === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1163f) { - // Mc MODI SIGN VISARGA - if (0x1163e === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] MODI SIGN VIRAMA..MODI SIGN ARDHACANDRA - if (0x1163f <= code && code <= 0x11640) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - else { - if (code < 0x1193f) { - if (code < 0x11727) { - if (code < 0x116b6) { - if (code < 0x116ad) { - // Mn TAKRI SIGN ANUSVARA - if (0x116ab === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc TAKRI SIGN VISARGA - if (0x116ac === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x116ae) { - // Mn TAKRI VOWEL SIGN AA - if (0x116ad === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x116b0) { - // Mc [2] TAKRI VOWEL SIGN I..TAKRI VOWEL SIGN II - if (0x116ae <= code && code <= 0x116af) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [6] TAKRI VOWEL SIGN U..TAKRI VOWEL SIGN AU - if (0x116b0 <= code && code <= 0x116b5) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1171d) { - // Mc TAKRI SIGN VIRAMA - if (0x116b6 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn TAKRI SIGN NUKTA - if (0x116b7 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11722) { - // Mn [3] AHOM CONSONANT SIGN MEDIAL LA..AHOM CONSONANT SIGN MEDIAL LIGATING RA - if (0x1171d <= code && code <= 0x1171f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11726) { - // Mn [4] AHOM VOWEL SIGN I..AHOM VOWEL SIGN UU - if (0x11722 <= code && code <= 0x11725) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc AHOM VOWEL SIGN E - if (0x11726 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - else { - if (code < 0x11930) { - if (code < 0x1182f) { - if (code < 0x1182c) { - // Mn [5] AHOM VOWEL SIGN AW..AHOM SIGN KILLER - if (0x11727 <= code && code <= 0x1172b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [3] DOGRA VOWEL SIGN AA..DOGRA VOWEL SIGN II - if (0x1182c <= code && code <= 0x1182e) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x11838) { - // Mn [9] DOGRA VOWEL SIGN U..DOGRA SIGN ANUSVARA - if (0x1182f <= code && code <= 0x11837) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11839) { - // Mc DOGRA SIGN VISARGA - if (0x11838 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] DOGRA SIGN VIRAMA..DOGRA SIGN NUKTA - if (0x11839 <= code && code <= 0x1183a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1193b) { - if (code < 0x11931) { - // Mc DIVES AKURU VOWEL SIGN AA - if (0x11930 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11937) { - // Mc [5] DIVES AKURU VOWEL SIGN I..DIVES AKURU VOWEL SIGN E - if (0x11931 <= code && code <= 0x11935) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc [2] DIVES AKURU VOWEL SIGN AI..DIVES AKURU VOWEL SIGN O - if (0x11937 <= code && code <= 0x11938) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x1193d) { - // Mn [2] DIVES AKURU SIGN ANUSVARA..DIVES AKURU SIGN CANDRABINDU - if (0x1193b <= code && code <= 0x1193c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc DIVES AKURU SIGN HALANTA - if (0x1193d === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn DIVES AKURU VIRAMA - if (0x1193e === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11a01) { - if (code < 0x119d1) { - if (code < 0x11941) { - // Lo DIVES AKURU PREFIXED NASAL SIGN - if (0x1193f === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - // Mc DIVES AKURU MEDIAL YA - if (0x11940 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11942) { - // Lo DIVES AKURU INITIAL RA - if (0x11941 === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - // Mc DIVES AKURU MEDIAL RA - if (0x11942 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn DIVES AKURU SIGN NUKTA - if (0x11943 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x119dc) { - if (code < 0x119d4) { - // Mc [3] NANDINAGARI VOWEL SIGN AA..NANDINAGARI VOWEL SIGN II - if (0x119d1 <= code && code <= 0x119d3) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x119da) { - // Mn [4] NANDINAGARI VOWEL SIGN U..NANDINAGARI VOWEL SIGN VOCALIC RR - if (0x119d4 <= code && code <= 0x119d7) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [2] NANDINAGARI VOWEL SIGN E..NANDINAGARI VOWEL SIGN AI - if (0x119da <= code && code <= 0x119db) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x119e0) { - // Mc [4] NANDINAGARI VOWEL SIGN O..NANDINAGARI SIGN VISARGA - if (0x119dc <= code && code <= 0x119df) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn NANDINAGARI SIGN VIRAMA - if (0x119e0 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc NANDINAGARI VOWEL SIGN PRISHTHAMATRA E - if (0x119e4 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x11a47) { - if (code < 0x11a39) { - if (code < 0x11a33) { - // Mn [10] ZANABAZAR SQUARE VOWEL SIGN I..ZANABAZAR SQUARE VOWEL LENGTH MARK - if (0x11a01 <= code && code <= 0x11a0a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [6] ZANABAZAR SQUARE FINAL CONSONANT MARK..ZANABAZAR SQUARE SIGN ANUSVARA - if (0x11a33 <= code && code <= 0x11a38) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x11a3a) { - // Mc ZANABAZAR SQUARE SIGN VISARGA - if (0x11a39 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11a3b) { - // Lo ZANABAZAR SQUARE CLUSTER-INITIAL LETTER RA - if (0x11a3a === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - // Mn [4] ZANABAZAR SQUARE CLUSTER-FINAL LETTER YA..ZANABAZAR SQUARE CLUSTER-FINAL LETTER VA - if (0x11a3b <= code && code <= 0x11a3e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x11a59) { - if (code < 0x11a51) { - // Mn ZANABAZAR SQUARE SUBJOINER - if (0x11a47 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11a57) { - // Mn [6] SOYOMBO VOWEL SIGN I..SOYOMBO VOWEL SIGN OE - if (0x11a51 <= code && code <= 0x11a56) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] SOYOMBO VOWEL SIGN AI..SOYOMBO VOWEL SIGN AU - if (0x11a57 <= code && code <= 0x11a58) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - else { - if (code < 0x11a84) { - // Mn [3] SOYOMBO VOWEL SIGN VOCALIC R..SOYOMBO VOWEL LENGTH MARK - if (0x11a59 <= code && code <= 0x11a5b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11a8a) { - // Lo [6] SOYOMBO SIGN JIHVAMULIYA..SOYOMBO CLUSTER-INITIAL LETTER SA - if (0x11a84 <= code && code <= 0x11a89) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - // Mn [13] SOYOMBO FINAL CONSONANT SIGN G..SOYOMBO SIGN ANUSVARA - if (0x11a8a <= code && code <= 0x11a96) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - } - else { - if (code < 0x16f51) { - if (code < 0x11d90) { - if (code < 0x11cb1) { - if (code < 0x11c3e) { - if (code < 0x11c2f) { - if (code < 0x11a98) { - // Mc SOYOMBO SIGN VISARGA - if (0x11a97 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] SOYOMBO GEMINATION MARK..SOYOMBO SUBJOINER - if (0x11a98 <= code && code <= 0x11a99) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x11c30) { - // Mc BHAIKSUKI VOWEL SIGN AA - if (0x11c2f === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11c38) { - // Mn [7] BHAIKSUKI VOWEL SIGN I..BHAIKSUKI VOWEL SIGN VOCALIC L - if (0x11c30 <= code && code <= 0x11c36) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [6] BHAIKSUKI VOWEL SIGN E..BHAIKSUKI SIGN ANUSVARA - if (0x11c38 <= code && code <= 0x11c3d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x11c92) { - // Mc BHAIKSUKI SIGN VISARGA - if (0x11c3e === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn BHAIKSUKI SIGN VIRAMA - if (0x11c3f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11ca9) { - // Mn [22] MARCHEN SUBJOINED LETTER KA..MARCHEN SUBJOINED LETTER ZA - if (0x11c92 <= code && code <= 0x11ca7) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11caa) { - // Mc MARCHEN SUBJOINED LETTER YA - if (0x11ca9 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [7] MARCHEN SUBJOINED LETTER RA..MARCHEN VOWEL SIGN AA - if (0x11caa <= code && code <= 0x11cb0) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x11d3a) { - if (code < 0x11cb4) { - if (code < 0x11cb2) { - // Mc MARCHEN VOWEL SIGN I - if (0x11cb1 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] MARCHEN VOWEL SIGN U..MARCHEN VOWEL SIGN E - if (0x11cb2 <= code && code <= 0x11cb3) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x11cb5) { - // Mc MARCHEN VOWEL SIGN O - if (0x11cb4 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - if (code < 0x11d31) { - // Mn [2] MARCHEN SIGN ANUSVARA..MARCHEN SIGN CANDRABINDU - if (0x11cb5 <= code && code <= 0x11cb6) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [6] MASARAM GONDI VOWEL SIGN AA..MASARAM GONDI VOWEL SIGN VOCALIC R - if (0x11d31 <= code && code <= 0x11d36) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x11d46) { - if (code < 0x11d3c) { - // Mn MASARAM GONDI VOWEL SIGN E - if (0x11d3a === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11d3f) { - // Mn [2] MASARAM GONDI VOWEL SIGN AI..MASARAM GONDI VOWEL SIGN O - if (0x11d3c <= code && code <= 0x11d3d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [7] MASARAM GONDI VOWEL SIGN AU..MASARAM GONDI VIRAMA - if (0x11d3f <= code && code <= 0x11d45) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x11d47) { - // Lo MASARAM GONDI REPHA - if (0x11d46 === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - if (code < 0x11d8a) { - // Mn MASARAM GONDI RA-KARA - if (0x11d47 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [5] GUNJALA GONDI VOWEL SIGN AA..GUNJALA GONDI VOWEL SIGN UU - if (0x11d8a <= code && code <= 0x11d8e) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - } - else { - if (code < 0x11f36) { - if (code < 0x11ef3) { - if (code < 0x11d95) { - if (code < 0x11d93) { - // Mn [2] GUNJALA GONDI VOWEL SIGN EE..GUNJALA GONDI VOWEL SIGN AI - if (0x11d90 <= code && code <= 0x11d91) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] GUNJALA GONDI VOWEL SIGN OO..GUNJALA GONDI VOWEL SIGN AU - if (0x11d93 <= code && code <= 0x11d94) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x11d96) { - // Mn GUNJALA GONDI SIGN ANUSVARA - if (0x11d95 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc GUNJALA GONDI SIGN VISARGA - if (0x11d96 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn GUNJALA GONDI VIRAMA - if (0x11d97 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x11f02) { - if (code < 0x11ef5) { - // Mn [2] MAKASAR VOWEL SIGN I..MAKASAR VOWEL SIGN U - if (0x11ef3 <= code && code <= 0x11ef4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x11f00) { - // Mc [2] MAKASAR VOWEL SIGN E..MAKASAR VOWEL SIGN O - if (0x11ef5 <= code && code <= 0x11ef6) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] KAWI SIGN CANDRABINDU..KAWI SIGN ANUSVARA - if (0x11f00 <= code && code <= 0x11f01) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x11f03) { - // Lo KAWI SIGN REPHA - if (0x11f02 === code) { - return boundaries_1.CLUSTER_BREAK.PREPEND; - } - } - else { - if (code < 0x11f34) { - // Mc KAWI SIGN VISARGA - if (0x11f03 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mc [2] KAWI VOWEL SIGN AA..KAWI VOWEL SIGN ALTERNATE AA - if (0x11f34 <= code && code <= 0x11f35) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - } - else { - if (code < 0x13430) { - if (code < 0x11f40) { - if (code < 0x11f3e) { - // Mn [5] KAWI VOWEL SIGN I..KAWI VOWEL SIGN VOCALIC R - if (0x11f36 <= code && code <= 0x11f3a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc [2] KAWI VOWEL SIGN E..KAWI VOWEL SIGN AI - if (0x11f3e <= code && code <= 0x11f3f) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x11f41) { - // Mn KAWI VOWEL SIGN EU - if (0x11f40 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc KAWI SIGN KILLER - if (0x11f41 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - // Mn KAWI CONJOINER - if (0x11f42 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x16af0) { - if (code < 0x13440) { - // Cf [16] EGYPTIAN HIEROGLYPH VERTICAL JOINER..EGYPTIAN HIEROGLYPH END WALLED ENCLOSURE - if (0x13430 <= code && code <= 0x1343f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - if (code < 0x13447) { - // Mn EGYPTIAN HIEROGLYPH MIRROR HORIZONTALLY - if (0x13440 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [15] EGYPTIAN HIEROGLYPH MODIFIER DAMAGED AT TOP START..EGYPTIAN HIEROGLYPH MODIFIER DAMAGED - if (0x13447 <= code && code <= 0x13455) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x16b30) { - // Mn [5] BASSA VAH COMBINING HIGH TONE..BASSA VAH COMBINING HIGH-LOW TONE - if (0x16af0 <= code && code <= 0x16af4) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x16f4f) { - // Mn [7] PAHAWH HMONG MARK CIM TUB..PAHAWH HMONG MARK CIM TAUM - if (0x16b30 <= code && code <= 0x16b36) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn MIAO SIGN CONSONANT MODIFIER BAR - if (0x16f4f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - } - else { - if (code < 0x1da84) { - if (code < 0x1d167) { - if (code < 0x1bca0) { - if (code < 0x16fe4) { - if (code < 0x16f8f) { - // Mc [55] MIAO SIGN ASPIRATION..MIAO VOWEL SIGN UI - if (0x16f51 <= code && code <= 0x16f87) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [4] MIAO TONE RIGHT..MIAO TONE BELOW - if (0x16f8f <= code && code <= 0x16f92) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x16ff0) { - // Mn KHITAN SMALL SCRIPT FILLER - if (0x16fe4 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1bc9d) { - // Mc [2] VIETNAMESE ALTERNATE READING MARK CA..VIETNAMESE ALTERNATE READING MARK NHAY - if (0x16ff0 <= code && code <= 0x16ff1) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - else { - // Mn [2] DUPLOYAN THICK LETTER SELECTOR..DUPLOYAN DOUBLE MARK - if (0x1bc9d <= code && code <= 0x1bc9e) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1cf30) { - if (code < 0x1cf00) { - // Cf [4] SHORTHAND FORMAT LETTER OVERLAP..SHORTHAND FORMAT UP STEP - if (0x1bca0 <= code && code <= 0x1bca3) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Mn [46] ZNAMENNY COMBINING MARK GORAZDO NIZKO S KRYZHEM ON LEFT..ZNAMENNY COMBINING MARK KRYZH ON LEFT - if (0x1cf00 <= code && code <= 0x1cf2d) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1d165) { - // Mn [23] ZNAMENNY COMBINING TONAL RANGE MARK MRACHNO..ZNAMENNY PRIZNAK MODIFIER ROG - if (0x1cf30 <= code && code <= 0x1cf46) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc MUSICAL SYMBOL COMBINING STEM - if (0x1d165 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - // Mc MUSICAL SYMBOL COMBINING SPRECHGESANG STEM - if (0x1d166 === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - } - } - else { - if (code < 0x1d185) { - if (code < 0x1d16e) { - if (code < 0x1d16d) { - // Mn [3] MUSICAL SYMBOL COMBINING TREMOLO-1..MUSICAL SYMBOL COMBINING TREMOLO-3 - if (0x1d167 <= code && code <= 0x1d169) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mc MUSICAL SYMBOL COMBINING AUGMENTATION DOT - if (0x1d16d === code) { - return boundaries_1.CLUSTER_BREAK.SPACINGMARK; - } - } - } - else { - if (code < 0x1d173) { - // Mc [5] MUSICAL SYMBOL COMBINING FLAG-1..MUSICAL SYMBOL COMBINING FLAG-5 - if (0x1d16e <= code && code <= 0x1d172) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1d17b) { - // Cf [8] MUSICAL SYMBOL BEGIN BEAM..MUSICAL SYMBOL END PHRASE - if (0x1d173 <= code && code <= 0x1d17a) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Mn [8] MUSICAL SYMBOL COMBINING ACCENT..MUSICAL SYMBOL COMBINING LOURE - if (0x1d17b <= code && code <= 0x1d182) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1da00) { - if (code < 0x1d1aa) { - // Mn [7] MUSICAL SYMBOL COMBINING DOIT..MUSICAL SYMBOL COMBINING TRIPLE TONGUE - if (0x1d185 <= code && code <= 0x1d18b) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1d242) { - // Mn [4] MUSICAL SYMBOL COMBINING DOWN BOW..MUSICAL SYMBOL COMBINING SNAP PIZZICATO - if (0x1d1aa <= code && code <= 0x1d1ad) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [3] COMBINING GREEK MUSICAL TRISEME..COMBINING GREEK MUSICAL PENTASEME - if (0x1d242 <= code && code <= 0x1d244) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1da3b) { - // Mn [55] SIGNWRITING HEAD RIM..SIGNWRITING AIR SUCKING IN - if (0x1da00 <= code && code <= 0x1da36) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1da75) { - // Mn [50] SIGNWRITING MOUTH CLOSED NEUTRAL..SIGNWRITING EXCITEMENT - if (0x1da3b <= code && code <= 0x1da6c) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn SIGNWRITING UPPER BODY TILTING FROM HIP JOINTS - if (0x1da75 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - } - else { - if (code < 0x1e2ec) { - if (code < 0x1e01b) { - if (code < 0x1daa1) { - if (code < 0x1da9b) { - // Mn SIGNWRITING LOCATION HEAD NECK - if (0x1da84 === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [5] SIGNWRITING FILL MODIFIER-2..SIGNWRITING FILL MODIFIER-6 - if (0x1da9b <= code && code <= 0x1da9f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1e000) { - // Mn [15] SIGNWRITING ROTATION MODIFIER-2..SIGNWRITING ROTATION MODIFIER-16 - if (0x1daa1 <= code && code <= 0x1daaf) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1e008) { - // Mn [7] COMBINING GLAGOLITIC LETTER AZU..COMBINING GLAGOLITIC LETTER ZHIVETE - if (0x1e000 <= code && code <= 0x1e006) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [17] COMBINING GLAGOLITIC LETTER ZEMLJA..COMBINING GLAGOLITIC LETTER HERU - if (0x1e008 <= code && code <= 0x1e018) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - else { - if (code < 0x1e08f) { - if (code < 0x1e023) { - // Mn [7] COMBINING GLAGOLITIC LETTER SHTA..COMBINING GLAGOLITIC LETTER YATI - if (0x1e01b <= code && code <= 0x1e021) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1e026) { - // Mn [2] COMBINING GLAGOLITIC LETTER YU..COMBINING GLAGOLITIC LETTER SMALL YUS - if (0x1e023 <= code && code <= 0x1e024) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [5] COMBINING GLAGOLITIC LETTER YO..COMBINING GLAGOLITIC LETTER FITA - if (0x1e026 <= code && code <= 0x1e02a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0x1e130) { - // Mn COMBINING CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I - if (0x1e08f === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1e2ae) { - // Mn [7] NYIAKENG PUACHUE HMONG TONE-B..NYIAKENG PUACHUE HMONG TONE-D - if (0x1e130 <= code && code <= 0x1e136) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn TOTO SIGN RISING TONE - if (0x1e2ae === code) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - } - } - else { - if (code < 0x1f3fb) { - if (code < 0x1e8d0) { - if (code < 0x1e4ec) { - // Mn [4] WANCHO TONE TUP..WANCHO TONE KOINI - if (0x1e2ec <= code && code <= 0x1e2ef) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Mn [4] NAG MUNDARI SIGN MUHOR..NAG MUNDARI SIGN SUTUH - if (0x1e4ec <= code && code <= 0x1e4ef) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - else { - if (code < 0x1e944) { - // Mn [7] MENDE KIKAKUI COMBINING NUMBER TEENS..MENDE KIKAKUI COMBINING NUMBER MILLIONS - if (0x1e8d0 <= code && code <= 0x1e8d6) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0x1f1e6) { - // Mn [7] ADLAM ALIF LENGTHENER..ADLAM NUKTA - if (0x1e944 <= code && code <= 0x1e94a) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // So [26] REGIONAL INDICATOR SYMBOL LETTER A..REGIONAL INDICATOR SYMBOL LETTER Z - if (0x1f1e6 <= code && code <= 0x1f1ff) { - return boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR; - } - } - } - } - } - else { - if (code < 0xe0080) { - if (code < 0xe0000) { - // Sk [5] EMOJI MODIFIER FITZPATRICK TYPE-1-2..EMOJI MODIFIER FITZPATRICK TYPE-6 - if (0x1f3fb <= code && code <= 0x1f3ff) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - if (code < 0xe0020) { - // Cn - // Cf LANGUAGE TAG - // Cn [30] .. - if (0xe0000 <= code && code <= 0xe001f) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - // Cf [96] TAG SPACE..CANCEL TAG - if (0xe0020 <= code && code <= 0xe007f) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - } - } - else { - if (code < 0xe0100) { - // Cn [128] .. - if (0xe0080 <= code && code <= 0xe00ff) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - else { - if (code < 0xe01f0) { - // Mn [240] VARIATION SELECTOR-17..VARIATION SELECTOR-256 - if (0xe0100 <= code && code <= 0xe01ef) { - return boundaries_1.CLUSTER_BREAK.EXTEND; - } - } - else { - // Cn [3600] .. - if (0xe01f0 <= code && code <= 0xe0fff) { - return boundaries_1.CLUSTER_BREAK.CONTROL; - } - } - } - } - } - } - } - } - } - } - } - } - // unlisted code points are treated as a break property of "Other" - return boundaries_1.CLUSTER_BREAK.OTHER; - } - /** - * Given a Unicode code point, returns if symbol is an extended pictographic or some other break - * @param code {number} Unicode code point - * @returns {number} - */ - static getEmojiProperty(code) { - // emoji property taken from: - // https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt - // and generated by - // node ./scripts/generate-emoji-extended-pictographic.js - if (code < 0x27b0) { - if (code < 0x2600) { - if (code < 0x2328) { - if (code < 0x2122) { - if (code < 0x203c) { - // E0.6 [1] (©️) copyright - if (0xa9 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (®️) registered - if (0xae === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (‼️) double exclamation mark - if (0x203c === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (⁉️) exclamation question mark - if (0x2049 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x2194) { - // E0.6 [1] (™️) trade mark - if (0x2122 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (ℹ️) information - if (0x2139 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x21a9) { - // E0.6 [6] (↔️..↙️) left-right arrow..down-left arrow - if (0x2194 <= code && code <= 0x2199) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x231a) { - // E0.6 [2] (↩️..↪️) right arrow curving left..left arrow curving right - if (0x21a9 <= code && code <= 0x21aa) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [2] (⌚..⌛) watch..hourglass done - if (0x231a <= code && code <= 0x231b) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - else { - if (code < 0x24c2) { - if (code < 0x23cf) { - // E1.0 [1] (⌨️) keyboard - if (0x2328 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.0 [1] (⎈) HELM SYMBOL - if (0x2388 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x23e9) { - // E1.0 [1] (⏏️) eject button - if (0x23cf === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x23f8) { - // E0.6 [4] (⏩..⏬) fast-forward button..fast down button - // E0.7 [2] (⏭️..⏮️) next track button..last track button - // E1.0 [1] (⏯️) play or pause button - // E0.6 [1] (⏰) alarm clock - // E1.0 [2] (⏱️..⏲️) stopwatch..timer clock - // E0.6 [1] (⏳) hourglass not done - if (0x23e9 <= code && code <= 0x23f3) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.7 [3] (⏸️..⏺️) pause button..record button - if (0x23f8 <= code && code <= 0x23fa) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x25b6) { - if (code < 0x25aa) { - // E0.6 [1] (Ⓜ️) circled M - if (0x24c2 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [2] (▪️..▫️) black small square..white small square - if (0x25aa <= code && code <= 0x25ab) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x25c0) { - // E0.6 [1] (▶️) play button - if (0x25b6 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x25fb) { - // E0.6 [1] (◀️) reverse button - if (0x25c0 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [4] (◻️..◾) white medium square..black medium-small square - if (0x25fb <= code && code <= 0x25fe) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - } - else { - if (code < 0x2733) { - if (code < 0x2714) { - if (code < 0x2614) { - if (code < 0x2607) { - // E0.6 [2] (☀️..☁️) sun..cloud - // E0.7 [2] (☂️..☃️) umbrella..snowman - // E1.0 [1] (☄️) comet - // E0.0 [1] (★) BLACK STAR - if (0x2600 <= code && code <= 0x2605) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [7] (☇..☍) LIGHTNING..OPPOSITION - // E0.6 [1] (☎️) telephone - // E0.0 [2] (☏..☐) WHITE TELEPHONE..BALLOT BOX - // E0.6 [1] (☑️) check box with check - // E0.0 [1] (☒) BALLOT BOX WITH X - if (0x2607 <= code && code <= 0x2612) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x2690) { - // E0.6 [2] (☔..☕) umbrella with rain drops..hot beverage - // E0.0 [2] (☖..☗) WHITE SHOGI PIECE..BLACK SHOGI PIECE - // E1.0 [1] (☘️) shamrock - // E0.0 [4] (☙..☜) REVERSED ROTATED FLORAL HEART BULLET..WHITE LEFT POINTING INDEX - // E0.6 [1] (☝️) index pointing up - // E0.0 [2] (☞..☟) WHITE RIGHT POINTING INDEX..WHITE DOWN POINTING INDEX - // E1.0 [1] (☠️) skull and crossbones - // E0.0 [1] (☡) CAUTION SIGN - // E1.0 [2] (☢️..☣️) radioactive..biohazard - // E0.0 [2] (☤..☥) CADUCEUS..ANKH - // E1.0 [1] (☦️) orthodox cross - // E0.0 [3] (☧..☩) CHI RHO..CROSS OF JERUSALEM - // E0.7 [1] (☪️) star and crescent - // E0.0 [3] (☫..☭) FARSI SYMBOL..HAMMER AND SICKLE - // E1.0 [1] (☮️) peace symbol - // E0.7 [1] (☯️) yin yang - // E0.0 [8] (☰..☷) TRIGRAM FOR HEAVEN..TRIGRAM FOR EARTH - // E0.7 [2] (☸️..☹️) wheel of dharma..frowning face - // E0.6 [1] (☺️) smiling face - // E0.0 [5] (☻..☿) BLACK SMILING FACE..MERCURY - // E4.0 [1] (♀️) female sign - // E0.0 [1] (♁) EARTH - // E4.0 [1] (♂️) male sign - // E0.0 [5] (♃..♇) JUPITER..PLUTO - // E0.6 [12] (♈..♓) Aries..Pisces - // E0.0 [11] (♔..♞) WHITE CHESS KING..BLACK CHESS KNIGHT - // E11.0 [1] (♟️) chess pawn - // E0.6 [1] (♠️) spade suit - // E0.0 [2] (♡..♢) WHITE HEART SUIT..WHITE DIAMOND SUIT - // E0.6 [1] (♣️) club suit - // E0.0 [1] (♤) WHITE SPADE SUIT - // E0.6 [2] (♥️..♦️) heart suit..diamond suit - // E0.0 [1] (♧) WHITE CLUB SUIT - // E0.6 [1] (♨️) hot springs - // E0.0 [18] (♩..♺) QUARTER NOTE..RECYCLING SYMBOL FOR GENERIC MATERIALS - // E0.6 [1] (♻️) recycling symbol - // E0.0 [2] (♼..♽) RECYCLED PAPER SYMBOL..PARTIALLY-RECYCLED PAPER SYMBOL - // E11.0 [1] (♾️) infinity - // E0.6 [1] (♿) wheelchair symbol - // E0.0 [6] (⚀..⚅) DIE FACE-1..DIE FACE-6 - if (0x2614 <= code && code <= 0x2685) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x2708) { - // E0.0 [2] (⚐..⚑) WHITE FLAG..BLACK FLAG - // E1.0 [1] (⚒️) hammer and pick - // E0.6 [1] (⚓) anchor - // E1.0 [1] (⚔️) crossed swords - // E4.0 [1] (⚕️) medical symbol - // E1.0 [2] (⚖️..⚗️) balance scale..alembic - // E0.0 [1] (⚘) FLOWER - // E1.0 [1] (⚙️) gear - // E0.0 [1] (⚚) STAFF OF HERMES - // E1.0 [2] (⚛️..⚜️) atom symbol..fleur-de-lis - // E0.0 [3] (⚝..⚟) OUTLINED WHITE STAR..THREE LINES CONVERGING LEFT - // E0.6 [2] (⚠️..⚡) warning..high voltage - // E0.0 [5] (⚢..⚦) DOUBLED FEMALE SIGN..MALE WITH STROKE SIGN - // E13.0 [1] (⚧️) transgender symbol - // E0.0 [2] (⚨..⚩) VERTICAL MALE WITH STROKE SIGN..HORIZONTAL MALE WITH STROKE SIGN - // E0.6 [2] (⚪..⚫) white circle..black circle - // E0.0 [4] (⚬..⚯) MEDIUM SMALL WHITE CIRCLE..UNMARRIED PARTNERSHIP SYMBOL - // E1.0 [2] (⚰️..⚱️) coffin..funeral urn - // E0.0 [11] (⚲..⚼) NEUTER..SESQUIQUADRATE - // E0.6 [2] (⚽..⚾) soccer ball..baseball - // E0.0 [5] (⚿..⛃) SQUARED KEY..BLACK DRAUGHTS KING - // E0.6 [2] (⛄..⛅) snowman without snow..sun behind cloud - // E0.0 [2] (⛆..⛇) RAIN..BLACK SNOWMAN - // E0.7 [1] (⛈️) cloud with lightning and rain - // E0.0 [5] (⛉..⛍) TURNED WHITE SHOGI PIECE..DISABLED CAR - // E0.6 [1] (⛎) Ophiuchus - // E0.7 [1] (⛏️) pick - // E0.0 [1] (⛐) CAR SLIDING - // E0.7 [1] (⛑️) rescue worker’s helmet - // E0.0 [1] (⛒) CIRCLED CROSSING LANES - // E0.7 [1] (⛓️) chains - // E0.6 [1] (⛔) no entry - // E0.0 [20] (⛕..⛨) ALTERNATE ONE-WAY LEFT WAY TRAFFIC..BLACK CROSS ON SHIELD - // E0.7 [1] (⛩️) shinto shrine - // E0.6 [1] (⛪) church - // E0.0 [5] (⛫..⛯) CASTLE..MAP SYMBOL FOR LIGHTHOUSE - // E0.7 [2] (⛰️..⛱️) mountain..umbrella on ground - // E0.6 [2] (⛲..⛳) fountain..flag in hole - // E0.7 [1] (⛴️) ferry - // E0.6 [1] (⛵) sailboat - // E0.0 [1] (⛶) SQUARE FOUR CORNERS - // E0.7 [3] (⛷️..⛹️) skier..person bouncing ball - // E0.6 [1] (⛺) tent - // E0.0 [2] (⛻..⛼) JAPANESE BANK SYMBOL..HEADSTONE GRAVEYARD SYMBOL - // E0.6 [1] (⛽) fuel pump - // E0.0 [4] (⛾..✁) CUP ON BLACK SQUARE..UPPER BLADE SCISSORS - // E0.6 [1] (✂️) scissors - // E0.0 [2] (✃..✄) LOWER BLADE SCISSORS..WHITE SCISSORS - // E0.6 [1] (✅) check mark button - if (0x2690 <= code && code <= 0x2705) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [5] (✈️..✌️) airplane..victory hand - // E0.7 [1] (✍️) writing hand - // E0.0 [1] (✎) LOWER RIGHT PENCIL - // E0.6 [1] (✏️) pencil - // E0.0 [2] (✐..✑) UPPER RIGHT PENCIL..WHITE NIB - // E0.6 [1] (✒️) black nib - if (0x2708 <= code && code <= 0x2712) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x271d) { - // E0.6 [1] (✔️) check mark - if (0x2714 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (✖️) multiply - if (0x2716 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x2721) { - // E0.7 [1] (✝️) latin cross - if (0x271d === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.7 [1] (✡️) star of David - if (0x2721 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (✨) sparkles - if (0x2728 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x2753) { - if (code < 0x2747) { - if (code < 0x2744) { - // E0.6 [2] (✳️..✴️) eight-spoked asterisk..eight-pointed star - if (0x2733 <= code && code <= 0x2734) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (❄️) snowflake - if (0x2744 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x274c) { - // E0.6 [1] (❇️) sparkle - if (0x2747 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (❌) cross mark - if (0x274c === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (❎) cross mark button - if (0x274e === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - else { - if (code < 0x2763) { - if (code < 0x2757) { - // E0.6 [3] (❓..❕) red question mark..white exclamation mark - if (0x2753 <= code && code <= 0x2755) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (❗) red exclamation mark - if (0x2757 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x2795) { - // E1.0 [1] (❣️) heart exclamation - // E0.6 [1] (❤️) red heart - // E0.0 [3] (❥..❧) ROTATED HEAVY BLACK HEART BULLET..ROTATED FLORAL HEART BULLET - if (0x2763 <= code && code <= 0x2767) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x27a1) { - // E0.6 [3] (➕..➗) plus..divide - if (0x2795 <= code && code <= 0x2797) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (➡️) right arrow - if (0x27a1 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - } - } - else { - if (code < 0x1f201) { - if (code < 0x3297) { - if (code < 0x2b1b) { - if (code < 0x2934) { - // E0.6 [1] (➰) curly loop - if (0x27b0 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E1.0 [1] (➿) double curly loop - if (0x27bf === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x2b05) { - // E0.6 [2] (⤴️..⤵️) right arrow curving up..right arrow curving down - if (0x2934 <= code && code <= 0x2935) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [3] (⬅️..⬇️) left arrow..down arrow - if (0x2b05 <= code && code <= 0x2b07) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - else { - if (code < 0x2b55) { - if (code < 0x2b50) { - // E0.6 [2] (⬛..⬜) black large square..white large square - if (0x2b1b <= code && code <= 0x2b1c) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (⭐) star - if (0x2b50 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x3030) { - // E0.6 [1] (⭕) hollow red circle - if (0x2b55 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (〰️) wavy dash - if (0x3030 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (〽️) part alternation mark - if (0x303d === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x1f16c) { - if (code < 0x1f000) { - // E0.6 [1] (㊗️) Japanese “congratulations” button - if (0x3297 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - // E0.6 [1] (㊙️) Japanese “secret” button - if (0x3299 === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f10d) { - // E0.0 [4] (🀀..🀃) MAHJONG TILE EAST WIND..MAHJONG TILE NORTH WIND - // E0.6 [1] (🀄) mahjong red dragon - // E0.0 [202] (🀅..🃎) MAHJONG TILE GREEN DRAGON..PLAYING CARD KING OF DIAMONDS - // E0.6 [1] (🃏) joker - // E0.0 [48] (🃐..🃿) .. - if (0x1f000 <= code && code <= 0x1f0ff) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f12f) { - // E0.0 [3] (🄍..🄏) CIRCLED ZERO WITH SLASH..CIRCLED DOLLAR SIGN WITH OVERLAID BACKSLASH - if (0x1f10d <= code && code <= 0x1f10f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [1] (🄯) COPYLEFT SYMBOL - if (0x1f12f === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x1f18e) { - if (code < 0x1f17e) { - // E0.0 [4] (🅬..🅯) RAISED MR SIGN..CIRCLED HUMAN FIGURE - // E0.6 [2] (🅰️..🅱️) A button (blood type)..B button (blood type) - if (0x1f16c <= code && code <= 0x1f171) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [2] (🅾️..🅿️) O button (blood type)..P button - if (0x1f17e <= code && code <= 0x1f17f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x1f191) { - // E0.6 [1] (🆎) AB button (blood type) - if (0x1f18e === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f1ad) { - // E0.6 [10] (🆑..🆚) CL button..VS button - if (0x1f191 <= code && code <= 0x1f19a) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [57] (🆭..🇥) MASK WORK SYMBOL.. - if (0x1f1ad <= code && code <= 0x1f1e5) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - } - else { - if (code < 0x1f7d5) { - if (code < 0x1f249) { - if (code < 0x1f22f) { - if (code < 0x1f21a) { - // E0.6 [2] (🈁..🈂️) Japanese “here” button..Japanese “service charge” button - // E0.0 [13] (🈃..🈏) .. - if (0x1f201 <= code && code <= 0x1f20f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.6 [1] (🈚) Japanese “free of charge” button - if (0x1f21a === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x1f232) { - // E0.6 [1] (🈯) Japanese “reserved” button - if (0x1f22f === code) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f23c) { - // E0.6 [9] (🈲..🈺) Japanese “prohibited” button..Japanese “open for business” button - if (0x1f232 <= code && code <= 0x1f23a) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [4] (🈼..🈿) .. - if (0x1f23c <= code && code <= 0x1f23f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x1f546) { - if (code < 0x1f400) { - // E0.0 [7] (🉉..🉏) .. - // E0.6 [2] (🉐..🉑) Japanese “bargain” button..Japanese “acceptable” button - // E0.0 [174] (🉒..🋿) .. - // E0.6 [13] (🌀..🌌) cyclone..milky way - // E0.7 [2] (🌍..🌎) globe showing Europe-Africa..globe showing Americas - // E0.6 [1] (🌏) globe showing Asia-Australia - // E1.0 [1] (🌐) globe with meridians - // E0.6 [1] (🌑) new moon - // E1.0 [1] (🌒) waxing crescent moon - // E0.6 [3] (🌓..🌕) first quarter moon..full moon - // E1.0 [3] (🌖..🌘) waning gibbous moon..waning crescent moon - // E0.6 [1] (🌙) crescent moon - // E1.0 [1] (🌚) new moon face - // E0.6 [1] (🌛) first quarter moon face - // E0.7 [1] (🌜) last quarter moon face - // E1.0 [2] (🌝..🌞) full moon face..sun with face - // E0.6 [2] (🌟..🌠) glowing star..shooting star - // E0.7 [1] (🌡️) thermometer - // E0.0 [2] (🌢..🌣) BLACK DROPLET..WHITE SUN - // E0.7 [9] (🌤️..🌬️) sun behind small cloud..wind face - // E1.0 [3] (🌭..🌯) hot dog..burrito - // E0.6 [2] (🌰..🌱) chestnut..seedling - // E1.0 [2] (🌲..🌳) evergreen tree..deciduous tree - // E0.6 [2] (🌴..🌵) palm tree..cactus - // E0.7 [1] (🌶️) hot pepper - // E0.6 [20] (🌷..🍊) tulip..tangerine - // E1.0 [1] (🍋) lemon - // E0.6 [4] (🍌..🍏) banana..green apple - // E1.0 [1] (🍐) pear - // E0.6 [43] (🍑..🍻) peach..clinking beer mugs - // E1.0 [1] (🍼) baby bottle - // E0.7 [1] (🍽️) fork and knife with plate - // E1.0 [2] (🍾..🍿) bottle with popping cork..popcorn - // E0.6 [20] (🎀..🎓) ribbon..graduation cap - // E0.0 [2] (🎔..🎕) HEART WITH TIP ON THE LEFT..BOUQUET OF FLOWERS - // E0.7 [2] (🎖️..🎗️) military medal..reminder ribbon - // E0.0 [1] (🎘) MUSICAL KEYBOARD WITH JACKS - // E0.7 [3] (🎙️..🎛️) studio microphone..control knobs - // E0.0 [2] (🎜..🎝) BEAMED ASCENDING MUSICAL NOTES..BEAMED DESCENDING MUSICAL NOTES - // E0.7 [2] (🎞️..🎟️) film frames..admission tickets - // E0.6 [37] (🎠..🏄) carousel horse..person surfing - // E1.0 [1] (🏅) sports medal - // E0.6 [1] (🏆) trophy - // E1.0 [1] (🏇) horse racing - // E0.6 [1] (🏈) american football - // E1.0 [1] (🏉) rugby football - // E0.6 [1] (🏊) person swimming - // E0.7 [4] (🏋️..🏎️) person lifting weights..racing car - // E1.0 [5] (🏏..🏓) cricket game..ping pong - // E0.7 [12] (🏔️..🏟️) snow-capped mountain..stadium - // E0.6 [4] (🏠..🏣) house..Japanese post office - // E1.0 [1] (🏤) post office - // E0.6 [12] (🏥..🏰) hospital..castle - // E0.0 [2] (🏱..🏲) WHITE PENNANT..BLACK PENNANT - // E0.7 [1] (🏳️) white flag - // E1.0 [1] (🏴) black flag - // E0.7 [1] (🏵️) rosette - // E0.0 [1] (🏶) BLACK ROSETTE - // E0.7 [1] (🏷️) label - // E1.0 [3] (🏸..🏺) badminton..amphora - if (0x1f249 <= code && code <= 0x1f3fa) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E1.0 [8] (🐀..🐇) rat..rabbit - // E0.7 [1] (🐈) cat - // E1.0 [3] (🐉..🐋) dragon..whale - // E0.6 [3] (🐌..🐎) snail..horse - // E1.0 [2] (🐏..🐐) ram..goat - // E0.6 [2] (🐑..🐒) ewe..monkey - // E1.0 [1] (🐓) rooster - // E0.6 [1] (🐔) chicken - // E0.7 [1] (🐕) dog - // E1.0 [1] (🐖) pig - // E0.6 [19] (🐗..🐩) boar..poodle - // E1.0 [1] (🐪) camel - // E0.6 [20] (🐫..🐾) two-hump camel..paw prints - // E0.7 [1] (🐿️) chipmunk - // E0.6 [1] (👀) eyes - // E0.7 [1] (👁️) eye - // E0.6 [35] (👂..👤) ear..bust in silhouette - // E1.0 [1] (👥) busts in silhouette - // E0.6 [6] (👦..👫) boy..woman and man holding hands - // E1.0 [2] (👬..👭) men holding hands..women holding hands - // E0.6 [63] (👮..💬) police officer..speech balloon - // E1.0 [1] (💭) thought balloon - // E0.6 [8] (💮..💵) white flower..dollar banknote - // E1.0 [2] (💶..💷) euro banknote..pound banknote - // E0.6 [52] (💸..📫) money with wings..closed mailbox with raised flag - // E0.7 [2] (📬..📭) open mailbox with raised flag..open mailbox with lowered flag - // E0.6 [1] (📮) postbox - // E1.0 [1] (📯) postal horn - // E0.6 [5] (📰..📴) newspaper..mobile phone off - // E1.0 [1] (📵) no mobile phones - // E0.6 [2] (📶..📷) antenna bars..camera - // E1.0 [1] (📸) camera with flash - // E0.6 [4] (📹..📼) video camera..videocassette - // E0.7 [1] (📽️) film projector - // E0.0 [1] (📾) PORTABLE STEREO - // E1.0 [4] (📿..🔂) prayer beads..repeat single button - // E0.6 [1] (🔃) clockwise vertical arrows - // E1.0 [4] (🔄..🔇) counterclockwise arrows button..muted speaker - // E0.7 [1] (🔈) speaker low volume - // E1.0 [1] (🔉) speaker medium volume - // E0.6 [11] (🔊..🔔) speaker high volume..bell - // E1.0 [1] (🔕) bell with slash - // E0.6 [22] (🔖..🔫) bookmark..water pistol - // E1.0 [2] (🔬..🔭) microscope..telescope - // E0.6 [16] (🔮..🔽) crystal ball..downwards button - if (0x1f400 <= code && code <= 0x1f53d) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x1f680) { - // E0.0 [3] (🕆..🕈) WHITE LATIN CROSS..CELTIC CROSS - // E0.7 [2] (🕉️..🕊️) om..dove - // E1.0 [4] (🕋..🕎) kaaba..menorah - // E0.0 [1] (🕏) BOWL OF HYGIEIA - // E0.6 [12] (🕐..🕛) one o’clock..twelve o’clock - // E0.7 [12] (🕜..🕧) one-thirty..twelve-thirty - // E0.0 [7] (🕨..🕮) RIGHT SPEAKER..BOOK - // E0.7 [2] (🕯️..🕰️) candle..mantelpiece clock - // E0.0 [2] (🕱..🕲) BLACK SKULL AND CROSSBONES..NO PIRACY - // E0.7 [7] (🕳️..🕹️) hole..joystick - // E3.0 [1] (🕺) man dancing - // E0.0 [12] (🕻..🖆) LEFT HAND TELEPHONE RECEIVER..PEN OVER STAMPED ENVELOPE - // E0.7 [1] (🖇️) linked paperclips - // E0.0 [2] (🖈..🖉) BLACK PUSHPIN..LOWER LEFT PENCIL - // E0.7 [4] (🖊️..🖍️) pen..crayon - // E0.0 [2] (🖎..🖏) LEFT WRITING HAND..TURNED OK HAND SIGN - // E0.7 [1] (🖐️) hand with fingers splayed - // E0.0 [4] (🖑..🖔) REVERSED RAISED HAND WITH FINGERS SPLAYED..REVERSED VICTORY HAND - // E1.0 [2] (🖕..🖖) middle finger..vulcan salute - // E0.0 [13] (🖗..🖣) WHITE DOWN POINTING LEFT HAND INDEX..BLACK DOWN POINTING BACKHAND INDEX - // E3.0 [1] (🖤) black heart - // E0.7 [1] (🖥️) desktop computer - // E0.0 [2] (🖦..🖧) KEYBOARD AND MOUSE..THREE NETWORKED COMPUTERS - // E0.7 [1] (🖨️) printer - // E0.0 [8] (🖩..🖰) POCKET CALCULATOR..TWO BUTTON MOUSE - // E0.7 [2] (🖱️..🖲️) computer mouse..trackball - // E0.0 [9] (🖳..🖻) OLD PERSONAL COMPUTER..DOCUMENT WITH PICTURE - // E0.7 [1] (🖼️) framed picture - // E0.0 [5] (🖽..🗁) FRAME WITH TILES..OPEN FOLDER - // E0.7 [3] (🗂️..🗄️) card index dividers..file cabinet - // E0.0 [12] (🗅..🗐) EMPTY NOTE..PAGES - // E0.7 [3] (🗑️..🗓️) wastebasket..spiral calendar - // E0.0 [8] (🗔..🗛) DESKTOP WINDOW..DECREASE FONT SIZE SYMBOL - // E0.7 [3] (🗜️..🗞️) clamp..rolled-up newspaper - // E0.0 [2] (🗟..🗠) PAGE WITH CIRCLED TEXT..STOCK CHART - // E0.7 [1] (🗡️) dagger - // E0.0 [1] (🗢) LIPS - // E0.7 [1] (🗣️) speaking head - // E0.0 [4] (🗤..🗧) THREE RAYS ABOVE..THREE RAYS RIGHT - // E2.0 [1] (🗨️) left speech bubble - // E0.0 [6] (🗩..🗮) RIGHT SPEECH BUBBLE..LEFT ANGER BUBBLE - // E0.7 [1] (🗯️) right anger bubble - // E0.0 [3] (🗰..🗲) MOOD BUBBLE..LIGHTNING MOOD - // E0.7 [1] (🗳️) ballot box with ballot - // E0.0 [6] (🗴..🗹) BALLOT SCRIPT X..BALLOT BOX WITH BOLD CHECK - // E0.7 [1] (🗺️) world map - // E0.6 [5] (🗻..🗿) mount fuji..moai - // E1.0 [1] (😀) grinning face - // E0.6 [6] (😁..😆) beaming face with smiling eyes..grinning squinting face - // E1.0 [2] (😇..😈) smiling face with halo..smiling face with horns - // E0.6 [5] (😉..😍) winking face..smiling face with heart-eyes - // E1.0 [1] (😎) smiling face with sunglasses - // E0.6 [1] (😏) smirking face - // E0.7 [1] (😐) neutral face - // E1.0 [1] (😑) expressionless face - // E0.6 [3] (😒..😔) unamused face..pensive face - // E1.0 [1] (😕) confused face - // E0.6 [1] (😖) confounded face - // E1.0 [1] (😗) kissing face - // E0.6 [1] (😘) face blowing a kiss - // E1.0 [1] (😙) kissing face with smiling eyes - // E0.6 [1] (😚) kissing face with closed eyes - // E1.0 [1] (😛) face with tongue - // E0.6 [3] (😜..😞) winking face with tongue..disappointed face - // E1.0 [1] (😟) worried face - // E0.6 [6] (😠..😥) angry face..sad but relieved face - // E1.0 [2] (😦..😧) frowning face with open mouth..anguished face - // E0.6 [4] (😨..😫) fearful face..tired face - // E1.0 [1] (😬) grimacing face - // E0.6 [1] (😭) loudly crying face - // E1.0 [2] (😮..😯) face with open mouth..hushed face - // E0.6 [4] (😰..😳) anxious face with sweat..flushed face - // E1.0 [1] (😴) sleeping face - // E0.6 [1] (😵) face with crossed-out eyes - // E1.0 [1] (😶) face without mouth - // E0.6 [10] (😷..🙀) face with medical mask..weary cat - // E1.0 [4] (🙁..🙄) slightly frowning face..face with rolling eyes - // E0.6 [11] (🙅..🙏) person gesturing NO..folded hands - if (0x1f546 <= code && code <= 0x1f64f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f774) { - // E0.6 [1] (🚀) rocket - // E1.0 [2] (🚁..🚂) helicopter..locomotive - // E0.6 [3] (🚃..🚅) railway car..bullet train - // E1.0 [1] (🚆) train - // E0.6 [1] (🚇) metro - // E1.0 [1] (🚈) light rail - // E0.6 [1] (🚉) station - // E1.0 [2] (🚊..🚋) tram..tram car - // E0.6 [1] (🚌) bus - // E0.7 [1] (🚍) oncoming bus - // E1.0 [1] (🚎) trolleybus - // E0.6 [1] (🚏) bus stop - // E1.0 [1] (🚐) minibus - // E0.6 [3] (🚑..🚓) ambulance..police car - // E0.7 [1] (🚔) oncoming police car - // E0.6 [1] (🚕) taxi - // E1.0 [1] (🚖) oncoming taxi - // E0.6 [1] (🚗) automobile - // E0.7 [1] (🚘) oncoming automobile - // E0.6 [2] (🚙..🚚) sport utility vehicle..delivery truck - // E1.0 [7] (🚛..🚡) articulated lorry..aerial tramway - // E0.6 [1] (🚢) ship - // E1.0 [1] (🚣) person rowing boat - // E0.6 [2] (🚤..🚥) speedboat..horizontal traffic light - // E1.0 [1] (🚦) vertical traffic light - // E0.6 [7] (🚧..🚭) construction..no smoking - // E1.0 [4] (🚮..🚱) litter in bin sign..non-potable water - // E0.6 [1] (🚲) bicycle - // E1.0 [3] (🚳..🚵) no bicycles..person mountain biking - // E0.6 [1] (🚶) person walking - // E1.0 [2] (🚷..🚸) no pedestrians..children crossing - // E0.6 [6] (🚹..🚾) men’s room..water closet - // E1.0 [1] (🚿) shower - // E0.6 [1] (🛀) person taking bath - // E1.0 [5] (🛁..🛅) bathtub..left luggage - // E0.0 [5] (🛆..🛊) TRIANGLE WITH ROUNDED CORNERS..GIRLS SYMBOL - // E0.7 [1] (🛋️) couch and lamp - // E1.0 [1] (🛌) person in bed - // E0.7 [3] (🛍️..🛏️) shopping bags..bed - // E1.0 [1] (🛐) place of worship - // E3.0 [2] (🛑..🛒) stop sign..shopping cart - // E0.0 [2] (🛓..🛔) STUPA..PAGODA - // E12.0 [1] (🛕) hindu temple - // E13.0 [2] (🛖..🛗) hut..elevator - // E0.0 [4] (🛘..🛛) .. - // E15.0 [1] (🛜) wireless - // E14.0 [3] (🛝..🛟) playground slide..ring buoy - // E0.7 [6] (🛠️..🛥️) hammer and wrench..motor boat - // E0.0 [3] (🛦..🛨) UP-POINTING MILITARY AIRPLANE..UP-POINTING SMALL AIRPLANE - // E0.7 [1] (🛩️) small airplane - // E0.0 [1] (🛪) NORTHEAST-POINTING AIRPLANE - // E1.0 [2] (🛫..🛬) airplane departure..airplane arrival - // E0.0 [3] (🛭..🛯) .. - // E0.7 [1] (🛰️) satellite - // E0.0 [2] (🛱..🛲) ONCOMING FIRE ENGINE..DIESEL LOCOMOTIVE - // E0.7 [1] (🛳️) passenger ship - // E3.0 [3] (🛴..🛶) kick scooter..canoe - // E5.0 [2] (🛷..🛸) sled..flying saucer - // E11.0 [1] (🛹) skateboard - // E12.0 [1] (🛺) auto rickshaw - // E13.0 [2] (🛻..🛼) pickup truck..roller skate - // E0.0 [3] (🛽..🛿) .. - if (0x1f680 <= code && code <= 0x1f6ff) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [12] (🝴..🝿) LOT OF FORTUNE..ORCUS - if (0x1f774 <= code && code <= 0x1f77f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - else { - if (code < 0x1f8ae) { - if (code < 0x1f848) { - if (code < 0x1f80c) { - // E0.0 [11] (🟕..🟟) CIRCLED TRIANGLE.. - // E12.0 [12] (🟠..🟫) orange circle..brown square - // E0.0 [4] (🟬..🟯) .. - // E14.0 [1] (🟰) heavy equals sign - // E0.0 [15] (🟱..🟿) .. - if (0x1f7d5 <= code && code <= 0x1f7ff) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [4] (🠌..🠏) .. - if (0x1f80c <= code && code <= 0x1f80f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x1f85a) { - // E0.0 [8] (🡈..🡏) .. - if (0x1f848 <= code && code <= 0x1f84f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1f888) { - // E0.0 [6] (🡚..🡟) .. - if (0x1f85a <= code && code <= 0x1f85f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0 [8] (🢈..🢏) .. - if (0x1f888 <= code && code <= 0x1f88f) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - else { - if (code < 0x1f93c) { - if (code < 0x1f90c) { - // E0.0 [82] (🢮..🣿) .. - if (0x1f8ae <= code && code <= 0x1f8ff) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E13.0 [1] (🤌) pinched fingers - // E12.0 [3] (🤍..🤏) white heart..pinching hand - // E1.0 [9] (🤐..🤘) zipper-mouth face..sign of the horns - // E3.0 [6] (🤙..🤞) call me hand..crossed fingers - // E5.0 [1] (🤟) love-you gesture - // E3.0 [8] (🤠..🤧) cowboy hat face..sneezing face - // E5.0 [8] (🤨..🤯) face with raised eyebrow..exploding head - // E3.0 [1] (🤰) pregnant woman - // E5.0 [2] (🤱..🤲) breast-feeding..palms up together - // E3.0 [8] (🤳..🤺) selfie..person fencing - if (0x1f90c <= code && code <= 0x1f93a) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - else { - if (code < 0x1f947) { - // E3.0 [3] (🤼..🤾) people wrestling..person playing handball - // E12.0 [1] (🤿) diving mask - // E3.0 [6] (🥀..🥅) wilted flower..goal net - if (0x1f93c <= code && code <= 0x1f945) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - if (code < 0x1fc00) { - // E3.0 [5] (🥇..🥋) 1st place medal..martial arts uniform - // E5.0 [1] (🥌) curling stone - // E11.0 [3] (🥍..🥏) lacrosse..flying disc - // E3.0 [15] (🥐..🥞) croissant..pancakes - // E5.0 [13] (🥟..🥫) dumpling..canned food - // E11.0 [5] (🥬..🥰) leafy green..smiling face with hearts - // E12.0 [1] (🥱) yawning face - // E13.0 [1] (🥲) smiling face with tear - // E11.0 [4] (🥳..🥶) partying face..cold face - // E13.0 [2] (🥷..🥸) ninja..disguised face - // E14.0 [1] (🥹) face holding back tears - // E11.0 [1] (🥺) pleading face - // E12.0 [1] (🥻) sari - // E11.0 [4] (🥼..🥿) lab coat..flat shoe - // E1.0 [5] (🦀..🦄) crab..unicorn - // E3.0 [13] (🦅..🦑) eagle..squid - // E5.0 [6] (🦒..🦗) giraffe..cricket - // E11.0 [11] (🦘..🦢) kangaroo..swan - // E13.0 [2] (🦣..🦤) mammoth..dodo - // E12.0 [6] (🦥..🦪) sloth..oyster - // E13.0 [3] (🦫..🦭) beaver..seal - // E12.0 [2] (🦮..🦯) guide dog..white cane - // E11.0 [10] (🦰..🦹) red hair..supervillain - // E12.0 [6] (🦺..🦿) safety vest..mechanical leg - // E1.0 [1] (🧀) cheese wedge - // E11.0 [2] (🧁..🧂) cupcake..salt - // E12.0 [8] (🧃..🧊) beverage box..ice - // E13.0 [1] (🧋) bubble tea - // E14.0 [1] (🧌) troll - // E12.0 [3] (🧍..🧏) person standing..deaf person - // E5.0 [23] (🧐..🧦) face with monocle..socks - // E11.0 [25] (🧧..🧿) red envelope..nazar amulet - // E0.0 [112] (🨀..🩯) NEUTRAL CHESS KING.. - // E12.0 [4] (🩰..🩳) ballet shoes..shorts - // E13.0 [1] (🩴) thong sandal - // E15.0 [3] (🩵..🩷) light blue heart..pink heart - // E12.0 [3] (🩸..🩺) drop of blood..stethoscope - // E14.0 [2] (🩻..🩼) x-ray..crutch - // E0.0 [3] (🩽..🩿) .. - // E12.0 [3] (🪀..🪂) yo-yo..parachute - // E13.0 [4] (🪃..🪆) boomerang..nesting dolls - // E15.0 [2] (🪇..🪈) maracas..flute - // E0.0 [7] (🪉..🪏) .. - // E12.0 [6] (🪐..🪕) ringed planet..banjo - // E13.0 [19] (🪖..🪨) military helmet..rock - // E14.0 [4] (🪩..🪬) mirror ball..hamsa - // E15.0 [3] (🪭..🪯) folding hand fan..khanda - // E13.0 [7] (🪰..🪶) fly..feather - // E14.0 [4] (🪷..🪺) lotus..nest with eggs - // E15.0 [3] (🪻..🪽) hyacinth..wing - // E0.0 [1] (🪾) - // E15.0 [1] (🪿) goose - // E13.0 [3] (🫀..🫂) anatomical heart..people hugging - // E14.0 [3] (🫃..🫅) pregnant man..person with crown - // E0.0 [8] (🫆..🫍) .. - // E15.0 [2] (🫎..🫏) moose..donkey - // E13.0 [7] (🫐..🫖) blueberries..teapot - // E14.0 [3] (🫗..🫙) pouring liquid..jar - // E15.0 [2] (🫚..🫛) ginger root..pea pod - // E0.0 [4] (🫜..🫟) .. - // E14.0 [8] (🫠..🫧) melting face..bubbles - // E15.0 [1] (🫨) shaking face - // E0.0 [7] (🫩..🫯) .. - // E14.0 [7] (🫰..🫶) hand with index finger and thumb crossed..heart hands - // E15.0 [2] (🫷..🫸) leftwards pushing hand..rightwards pushing hand - // E0.0 [7] (🫹..🫿) .. - if (0x1f947 <= code && code <= 0x1faff) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - else { - // E0.0[1022] (🰀..🿽) .. - if (0x1fc00 <= code && code <= 0x1fffd) { - return boundaries_1.EXTENDED_PICTOGRAPHIC; - } - } - } - } - } - } - } - } - // unlisted code points are treated as a break property of "Other" - return boundaries_1.CLUSTER_BREAK.OTHER; - } -} -exports.default = Graphemer; diff --git a/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts b/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts deleted file mode 100644 index 64f6c35c..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -declare class GraphemerHelper { - /** - * Check if the the character at the position {pos} of the string is surrogate - * @param str {string} - * @param pos {number} - * @returns {boolean} - */ - static isSurrogate(str: string, pos: number): boolean; - /** - * The String.prototype.codePointAt polyfill - * Private function, gets a Unicode code point from a JavaScript UTF-16 string - * handling surrogate pairs appropriately - * @param str {string} - * @param idx {number} - * @returns {number} - */ - static codePointAt(str: string, idx: number): number; - /** - * Private function, returns whether a break is allowed between the two given grapheme breaking classes - * Implemented the UAX #29 3.1.1 Grapheme Cluster Boundary Rules on extended grapheme clusters - * @param start {number} - * @param mid {Array} - * @param end {number} - * @param startEmoji {number} - * @param midEmoji {Array} - * @param endEmoji {number} - * @returns {number} - */ - static shouldBreak(start: number, mid: number[], end: number, startEmoji: number, midEmoji: number[], endEmoji: number): number; -} -export default GraphemerHelper; -//# sourceMappingURL=GraphemerHelper.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts.map b/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts.map deleted file mode 100644 index 369421a1..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GraphemerHelper.d.ts","sourceRoot":"","sources":["../src/GraphemerHelper.ts"],"names":[],"mappings":"AAUA,cAAM,eAAe;IACnB;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IASrD;;;;;;;OAOG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAgCpD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,WAAW,CAChB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EAAE,EACb,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAAE,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM;CAyHV;AAED,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/GraphemerHelper.js b/graphql/node_modules/graphemer/lib/GraphemerHelper.js deleted file mode 100644 index 9bc71ebd..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerHelper.js +++ /dev/null @@ -1,169 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const boundaries_1 = require("./boundaries"); -// BreakTypes -// @type {BreakType} -const NotBreak = 0; -const BreakStart = 1; -const Break = 2; -const BreakLastRegional = 3; -const BreakPenultimateRegional = 4; -class GraphemerHelper { - /** - * Check if the the character at the position {pos} of the string is surrogate - * @param str {string} - * @param pos {number} - * @returns {boolean} - */ - static isSurrogate(str, pos) { - return (0xd800 <= str.charCodeAt(pos) && - str.charCodeAt(pos) <= 0xdbff && - 0xdc00 <= str.charCodeAt(pos + 1) && - str.charCodeAt(pos + 1) <= 0xdfff); - } - /** - * The String.prototype.codePointAt polyfill - * Private function, gets a Unicode code point from a JavaScript UTF-16 string - * handling surrogate pairs appropriately - * @param str {string} - * @param idx {number} - * @returns {number} - */ - static codePointAt(str, idx) { - if (idx === undefined) { - idx = 0; - } - const code = str.charCodeAt(idx); - // if a high surrogate - if (0xd800 <= code && code <= 0xdbff && idx < str.length - 1) { - const hi = code; - const low = str.charCodeAt(idx + 1); - if (0xdc00 <= low && low <= 0xdfff) { - return (hi - 0xd800) * 0x400 + (low - 0xdc00) + 0x10000; - } - return hi; - } - // if a low surrogate - if (0xdc00 <= code && code <= 0xdfff && idx >= 1) { - const hi = str.charCodeAt(idx - 1); - const low = code; - if (0xd800 <= hi && hi <= 0xdbff) { - return (hi - 0xd800) * 0x400 + (low - 0xdc00) + 0x10000; - } - return low; - } - // just return the char if an unmatched surrogate half or a - // single-char codepoint - return code; - } - // - /** - * Private function, returns whether a break is allowed between the two given grapheme breaking classes - * Implemented the UAX #29 3.1.1 Grapheme Cluster Boundary Rules on extended grapheme clusters - * @param start {number} - * @param mid {Array} - * @param end {number} - * @param startEmoji {number} - * @param midEmoji {Array} - * @param endEmoji {number} - * @returns {number} - */ - static shouldBreak(start, mid, end, startEmoji, midEmoji, endEmoji) { - const all = [start].concat(mid).concat([end]); - const allEmoji = [startEmoji].concat(midEmoji).concat([endEmoji]); - const previous = all[all.length - 2]; - const next = end; - const nextEmoji = endEmoji; - // Lookahead terminator for: - // GB12. ^ (RI RI)* RI ? RI - // GB13. [^RI] (RI RI)* RI ? RI - const rIIndex = all.lastIndexOf(boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR); - if (rIIndex > 0 && - all.slice(1, rIIndex).every(function (c) { - return c === boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR; - }) && - [boundaries_1.CLUSTER_BREAK.PREPEND, boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(previous) === -1) { - if (all.filter(function (c) { - return c === boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR; - }).length % - 2 === - 1) { - return BreakLastRegional; - } - else { - return BreakPenultimateRegional; - } - } - // GB3. CR × LF - if (previous === boundaries_1.CLUSTER_BREAK.CR && next === boundaries_1.CLUSTER_BREAK.LF) { - return NotBreak; - } - // GB4. (Control|CR|LF) ÷ - else if (previous === boundaries_1.CLUSTER_BREAK.CONTROL || - previous === boundaries_1.CLUSTER_BREAK.CR || - previous === boundaries_1.CLUSTER_BREAK.LF) { - return BreakStart; - } - // GB5. ÷ (Control|CR|LF) - else if (next === boundaries_1.CLUSTER_BREAK.CONTROL || - next === boundaries_1.CLUSTER_BREAK.CR || - next === boundaries_1.CLUSTER_BREAK.LF) { - return BreakStart; - } - // GB6. L × (L|V|LV|LVT) - else if (previous === boundaries_1.CLUSTER_BREAK.L && - (next === boundaries_1.CLUSTER_BREAK.L || - next === boundaries_1.CLUSTER_BREAK.V || - next === boundaries_1.CLUSTER_BREAK.LV || - next === boundaries_1.CLUSTER_BREAK.LVT)) { - return NotBreak; - } - // GB7. (LV|V) × (V|T) - else if ((previous === boundaries_1.CLUSTER_BREAK.LV || previous === boundaries_1.CLUSTER_BREAK.V) && - (next === boundaries_1.CLUSTER_BREAK.V || next === boundaries_1.CLUSTER_BREAK.T)) { - return NotBreak; - } - // GB8. (LVT|T) × (T) - else if ((previous === boundaries_1.CLUSTER_BREAK.LVT || previous === boundaries_1.CLUSTER_BREAK.T) && - next === boundaries_1.CLUSTER_BREAK.T) { - return NotBreak; - } - // GB9. × (Extend|ZWJ) - else if (next === boundaries_1.CLUSTER_BREAK.EXTEND || next === boundaries_1.CLUSTER_BREAK.ZWJ) { - return NotBreak; - } - // GB9a. × SpacingMark - else if (next === boundaries_1.CLUSTER_BREAK.SPACINGMARK) { - return NotBreak; - } - // GB9b. Prepend × - else if (previous === boundaries_1.CLUSTER_BREAK.PREPEND) { - return NotBreak; - } - // GB11. \p{Extended_Pictographic} Extend* ZWJ × \p{Extended_Pictographic} - const previousNonExtendIndex = allEmoji - .slice(0, -1) - .lastIndexOf(boundaries_1.EXTENDED_PICTOGRAPHIC); - if (previousNonExtendIndex !== -1 && - allEmoji[previousNonExtendIndex] === boundaries_1.EXTENDED_PICTOGRAPHIC && - all.slice(previousNonExtendIndex + 1, -2).every(function (c) { - return c === boundaries_1.CLUSTER_BREAK.EXTEND; - }) && - previous === boundaries_1.CLUSTER_BREAK.ZWJ && - nextEmoji === boundaries_1.EXTENDED_PICTOGRAPHIC) { - return NotBreak; - } - // GB12. ^ (RI RI)* RI × RI - // GB13. [^RI] (RI RI)* RI × RI - if (mid.indexOf(boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR) !== -1) { - return Break; - } - if (previous === boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR && - next === boundaries_1.CLUSTER_BREAK.REGIONAL_INDICATOR) { - return NotBreak; - } - // GB999. Any ? Any - return BreakStart; - } -} -exports.default = GraphemerHelper; diff --git a/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts b/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts deleted file mode 100644 index 4c52d91f..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * GraphemerIterator - * - * Takes a string and a "BreakHandler" method during initialisation - * and creates an iterable object that returns individual graphemes. - * - * @param str {string} - * @return GraphemerIterator - */ -declare class GraphemerIterator implements Iterator { - private _index; - private _str; - private _nextBreak; - constructor(str: string, nextBreak: (str: string, index: number) => number); - [Symbol.iterator](): this; - next(): { - value: string; - done: boolean; - }; -} -export default GraphemerIterator; -//# sourceMappingURL=GraphemerIterator.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts.map b/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts.map deleted file mode 100644 index c65f0eec..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerIterator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GraphemerIterator.d.ts","sourceRoot":"","sources":["../src/GraphemerIterator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAM,iBAAkB,YAAW,QAAQ,CAAC,MAAM,CAAC;IACjD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,UAAU,CAAyC;gBAE/C,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;IAK1E,CAAC,MAAM,CAAC,QAAQ,CAAC;IAIjB,IAAI;;;;CAcL;AAED,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/GraphemerIterator.js b/graphql/node_modules/graphemer/lib/GraphemerIterator.js deleted file mode 100644 index dd21ce54..00000000 --- a/graphql/node_modules/graphemer/lib/GraphemerIterator.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * GraphemerIterator - * - * Takes a string and a "BreakHandler" method during initialisation - * and creates an iterable object that returns individual graphemes. - * - * @param str {string} - * @return GraphemerIterator - */ -class GraphemerIterator { - constructor(str, nextBreak) { - this._index = 0; - this._str = str; - this._nextBreak = nextBreak; - } - [Symbol.iterator]() { - return this; - } - next() { - let brk; - if ((brk = this._nextBreak(this._str, this._index)) < this._str.length) { - const value = this._str.slice(this._index, brk); - this._index = brk; - return { value: value, done: false }; - } - if (this._index < this._str.length) { - const value = this._str.slice(this._index); - this._index = this._str.length; - return { value: value, done: false }; - } - return { value: undefined, done: true }; - } -} -exports.default = GraphemerIterator; diff --git a/graphql/node_modules/graphemer/lib/boundaries.d.ts b/graphql/node_modules/graphemer/lib/boundaries.d.ts deleted file mode 100644 index 330aed10..00000000 --- a/graphql/node_modules/graphemer/lib/boundaries.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * The Grapheme_Cluster_Break property value - * @see https://www.unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table - */ -export declare enum CLUSTER_BREAK { - CR = 0, - LF = 1, - CONTROL = 2, - EXTEND = 3, - REGIONAL_INDICATOR = 4, - SPACINGMARK = 5, - L = 6, - V = 7, - T = 8, - LV = 9, - LVT = 10, - OTHER = 11, - PREPEND = 12, - E_BASE = 13, - E_MODIFIER = 14, - ZWJ = 15, - GLUE_AFTER_ZWJ = 16, - E_BASE_GAZ = 17 -} -/** - * The Emoji character property is an extension of UCD but shares the same namespace and structure - * @see http://www.unicode.org/reports/tr51/tr51-14.html#Emoji_Properties_and_Data_Files - * - * Here we model Extended_Pictograhpic only to implement UAX #29 GB11 - * \p{Extended_Pictographic} Extend* ZWJ × \p{Extended_Pictographic} - * - * The Emoji character property should not be mixed with Grapheme_Cluster_Break since they are not exclusive - */ -export declare const EXTENDED_PICTOGRAPHIC = 101; -//# sourceMappingURL=boundaries.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/boundaries.d.ts.map b/graphql/node_modules/graphemer/lib/boundaries.d.ts.map deleted file mode 100644 index 5bc59bae..00000000 --- a/graphql/node_modules/graphemer/lib/boundaries.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"boundaries.d.ts","sourceRoot":"","sources":["../src/boundaries.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,aAAa;IACvB,EAAE,IAAI;IACN,EAAE,IAAI;IACN,OAAO,IAAI;IACX,MAAM,IAAI;IACV,kBAAkB,IAAI;IACtB,WAAW,IAAI;IACf,CAAC,IAAI;IACL,CAAC,IAAI;IACL,CAAC,IAAI;IACL,EAAE,IAAI;IACN,GAAG,KAAK;IACR,KAAK,KAAK;IACV,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,UAAU,KAAK;IACf,GAAG,KAAK;IACR,cAAc,KAAK;IACnB,UAAU,KAAK;CAChB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/boundaries.js b/graphql/node_modules/graphemer/lib/boundaries.js deleted file mode 100644 index 2c98c145..00000000 --- a/graphql/node_modules/graphemer/lib/boundaries.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -/** - * The Grapheme_Cluster_Break property value - * @see https://www.unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EXTENDED_PICTOGRAPHIC = exports.CLUSTER_BREAK = void 0; -var CLUSTER_BREAK; -(function (CLUSTER_BREAK) { - CLUSTER_BREAK[CLUSTER_BREAK["CR"] = 0] = "CR"; - CLUSTER_BREAK[CLUSTER_BREAK["LF"] = 1] = "LF"; - CLUSTER_BREAK[CLUSTER_BREAK["CONTROL"] = 2] = "CONTROL"; - CLUSTER_BREAK[CLUSTER_BREAK["EXTEND"] = 3] = "EXTEND"; - CLUSTER_BREAK[CLUSTER_BREAK["REGIONAL_INDICATOR"] = 4] = "REGIONAL_INDICATOR"; - CLUSTER_BREAK[CLUSTER_BREAK["SPACINGMARK"] = 5] = "SPACINGMARK"; - CLUSTER_BREAK[CLUSTER_BREAK["L"] = 6] = "L"; - CLUSTER_BREAK[CLUSTER_BREAK["V"] = 7] = "V"; - CLUSTER_BREAK[CLUSTER_BREAK["T"] = 8] = "T"; - CLUSTER_BREAK[CLUSTER_BREAK["LV"] = 9] = "LV"; - CLUSTER_BREAK[CLUSTER_BREAK["LVT"] = 10] = "LVT"; - CLUSTER_BREAK[CLUSTER_BREAK["OTHER"] = 11] = "OTHER"; - CLUSTER_BREAK[CLUSTER_BREAK["PREPEND"] = 12] = "PREPEND"; - CLUSTER_BREAK[CLUSTER_BREAK["E_BASE"] = 13] = "E_BASE"; - CLUSTER_BREAK[CLUSTER_BREAK["E_MODIFIER"] = 14] = "E_MODIFIER"; - CLUSTER_BREAK[CLUSTER_BREAK["ZWJ"] = 15] = "ZWJ"; - CLUSTER_BREAK[CLUSTER_BREAK["GLUE_AFTER_ZWJ"] = 16] = "GLUE_AFTER_ZWJ"; - CLUSTER_BREAK[CLUSTER_BREAK["E_BASE_GAZ"] = 17] = "E_BASE_GAZ"; -})(CLUSTER_BREAK = exports.CLUSTER_BREAK || (exports.CLUSTER_BREAK = {})); -/** - * The Emoji character property is an extension of UCD but shares the same namespace and structure - * @see http://www.unicode.org/reports/tr51/tr51-14.html#Emoji_Properties_and_Data_Files - * - * Here we model Extended_Pictograhpic only to implement UAX #29 GB11 - * \p{Extended_Pictographic} Extend* ZWJ × \p{Extended_Pictographic} - * - * The Emoji character property should not be mixed with Grapheme_Cluster_Break since they are not exclusive - */ -exports.EXTENDED_PICTOGRAPHIC = 101; diff --git a/graphql/node_modules/graphemer/lib/index.d.ts b/graphql/node_modules/graphemer/lib/index.d.ts deleted file mode 100644 index c7c39af1..00000000 --- a/graphql/node_modules/graphemer/lib/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Graphemer from './Graphemer'; -export default Graphemer; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/index.d.ts.map b/graphql/node_modules/graphemer/lib/index.d.ts.map deleted file mode 100644 index a6bacf99..00000000 --- a/graphql/node_modules/graphemer/lib/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/graphemer/lib/index.js b/graphql/node_modules/graphemer/lib/index.js deleted file mode 100644 index 548bdd01..00000000 --- a/graphql/node_modules/graphemer/lib/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const Graphemer_1 = __importDefault(require("./Graphemer")); -exports.default = Graphemer_1.default; diff --git a/graphql/node_modules/graphemer/package.json b/graphql/node_modules/graphemer/package.json deleted file mode 100644 index cf0315dd..00000000 --- a/graphql/node_modules/graphemer/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "graphemer", - "version": "1.4.0", - "description": "A JavaScript library that breaks strings into their individual user-perceived characters (including emojis!)", - "homepage": "https://github.com/flmnt/graphemer", - "author": "Matt Davies (https://github.com/mattpauldavies)", - "contributors": [ - "Orlin Georgiev (https://github.com/orling)", - "Huáng Jùnliàng (https://github.com/JLHwung)" - ], - "main": "./lib/index.js", - "types": "./lib/index.d.ts", - "files": [ - "lib" - ], - "license": "MIT", - "keywords": [ - "utf-8", - "strings", - "emoji", - "split" - ], - "scripts": { - "prepublishOnly": "npm run build", - "build": "tsc --project tsconfig.json", - "pretest": "npm run build", - "test": "ts-node node_modules/tape/bin/tape tests/**.ts", - "prettier:check": "prettier --check .", - "prettier:fix": "prettier --write ." - }, - "repository": { - "type": "git", - "url": "https://github.com/flmnt/graphemer.git" - }, - "bugs": "https://github.com/flmnt/graphemer/issues", - "devDependencies": { - "@types/tape": "^4.13.0", - "husky": "^4.3.0", - "lint-staged": "^10.3.0", - "prettier": "^2.1.1", - "tape": "^4.6.3", - "ts-node": "^9.0.0", - "typescript": "^4.0.2" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged", - "pre-push": "npm test" - } - }, - "lint-staged": { - "*.{js,ts,md,json}": "prettier --write" - } -} diff --git a/graphql/node_modules/has-flag/index.d.ts b/graphql/node_modules/has-flag/index.d.ts deleted file mode 100644 index a0a48c89..00000000 --- a/graphql/node_modules/has-flag/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** -Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag. - -@param flag - CLI flag to look for. The `--` prefix is optional. -@param argv - CLI arguments. Default: `process.argv`. -@returns Whether the flag exists. - -@example -``` -// $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow - -// foo.ts -import hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` -*/ -declare function hasFlag(flag: string, argv?: string[]): boolean; - -export = hasFlag; diff --git a/graphql/node_modules/has-flag/index.js b/graphql/node_modules/has-flag/index.js deleted file mode 100644 index b6f80b1f..00000000 --- a/graphql/node_modules/has-flag/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf('--'); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); -}; diff --git a/graphql/node_modules/has-flag/license b/graphql/node_modules/has-flag/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/has-flag/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/has-flag/package.json b/graphql/node_modules/has-flag/package.json deleted file mode 100644 index a9cba4b8..00000000 --- a/graphql/node_modules/has-flag/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/has-flag/readme.md b/graphql/node_modules/has-flag/readme.md deleted file mode 100644 index 3f72dff2..00000000 --- a/graphql/node_modules/has-flag/readme.md +++ /dev/null @@ -1,89 +0,0 @@ -# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) - -> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag - -Correctly stops looking after an `--` argument terminator. - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- - - -## Install - -``` -$ npm install has-flag -``` - - -## Usage - -```js -// foo.js -const hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` - -``` -$ node foo.js -f --unicorn --foo=bar -- --rainbow -``` - - -## API - -### hasFlag(flag, [argv]) - -Returns a boolean for whether the flag exists. - -#### flag - -Type: `string` - -CLI flag to look for. The `--` prefix is optional. - -#### argv - -Type: `string[]`
-Default: `process.argv` - -CLI arguments. - - -## Security - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/ignore/LICENSE-MIT b/graphql/node_modules/ignore/LICENSE-MIT deleted file mode 100644 index 825533e3..00000000 --- a/graphql/node_modules/ignore/LICENSE-MIT +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2013 Kael Zhang , contributors -http://kael.me/ - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/graphql/node_modules/ignore/README.md b/graphql/node_modules/ignore/README.md deleted file mode 100644 index 50d88822..00000000 --- a/graphql/node_modules/ignore/README.md +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - - - - - - - - -
LinuxOS XWindowsCoverageDownloads
- - Build Status - - - Windows Build Status - - - Coverage Status - - - npm module downloads per month -
- -# ignore - -`ignore` is a manager, filter and parser which implemented in pure JavaScript according to the [.gitignore spec 2.22.1](http://git-scm.com/docs/gitignore). - -`ignore` is used by eslint, gitbook and [many others](https://www.npmjs.com/browse/depended/ignore). - -Pay **ATTENTION** that [`minimatch`](https://www.npmjs.org/package/minimatch) (which used by `fstream-ignore`) does not follow the gitignore spec. - -To filter filenames according to a .gitignore file, I recommend this npm package, `ignore`. - -To parse an `.npmignore` file, you should use `minimatch`, because an `.npmignore` file is parsed by npm using `minimatch` and it does not work in the .gitignore way. - -### Tested on - -`ignore` is fully tested, and has more than **five hundreds** of unit tests. - -- Linux + Node: `0.8` - `7.x` -- Windows + Node: `0.10` - `7.x`, node < `0.10` is not tested due to the lack of support of appveyor. - -Actually, `ignore` does not rely on any versions of node specially. - -Since `4.0.0`, ignore will no longer support `node < 6` by default, to use in node < 6, `require('ignore/legacy')`. For details, see [CHANGELOG](https://github.com/kaelzhang/node-ignore/blob/master/CHANGELOG.md). - -## Table Of Main Contents - -- [Usage](#usage) -- [`Pathname` Conventions](#pathname-conventions) -- See Also: - - [`glob-gitignore`](https://www.npmjs.com/package/glob-gitignore) matches files using patterns and filters them according to gitignore rules. -- [Upgrade Guide](#upgrade-guide) - -## Install - -```sh -npm i ignore -``` - -## Usage - -```js -import ignore from 'ignore' -const ig = ignore().add(['.abc/*', '!.abc/d/']) -``` - -### Filter the given paths - -```js -const paths = [ - '.abc/a.js', // filtered out - '.abc/d/e.js' // included -] - -ig.filter(paths) // ['.abc/d/e.js'] -ig.ignores('.abc/a.js') // true -``` - -### As the filter function - -```js -paths.filter(ig.createFilter()); // ['.abc/d/e.js'] -``` - -### Win32 paths will be handled - -```js -ig.filter(['.abc\\a.js', '.abc\\d\\e.js']) -// if the code above runs on windows, the result will be -// ['.abc\\d\\e.js'] -``` - -## Why another ignore? - -- `ignore` is a standalone module, and is much simpler so that it could easy work with other programs, unlike [isaacs](https://npmjs.org/~isaacs)'s [fstream-ignore](https://npmjs.org/package/fstream-ignore) which must work with the modules of the fstream family. - -- `ignore` only contains utility methods to filter paths according to the specified ignore rules, so - - `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations. - - `ignore` don't cares about sub-modules of git projects. - -- Exactly according to [gitignore man page](http://git-scm.com/docs/gitignore), fixes some known matching issues of fstream-ignore, such as: - - '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'. - - '`**/foo`' should match '`foo`' anywhere. - - Prevent re-including a file if a parent directory of that file is excluded. - - Handle trailing whitespaces: - - `'a '`(one space) should not match `'a '`(two spaces). - - `'a \ '` matches `'a '` - - All test cases are verified with the result of `git check-ignore`. - -# Methods - -## .add(pattern: string | Ignore): this -## .add(patterns: Array): this - -- **pattern** `String | Ignore` An ignore pattern string, or the `Ignore` instance -- **patterns** `Array` Array of ignore patterns. - -Adds a rule or several rules to the current manager. - -Returns `this` - -Notice that a line starting with `'#'`(hash) is treated as a comment. Put a backslash (`'\'`) in front of the first hash for patterns that begin with a hash, if you want to ignore a file with a hash at the beginning of the filename. - -```js -ignore().add('#abc').ignores('#abc') // false -ignore().add('\\#abc').ignores('#abc') // true -``` - -`pattern` could either be a line of ignore pattern or a string of multiple ignore patterns, which means we could just `ignore().add()` the content of a ignore file: - -```js -ignore() -.add(fs.readFileSync(filenameOfGitignore).toString()) -.filter(filenames) -``` - -`pattern` could also be an `ignore` instance, so that we could easily inherit the rules of another `Ignore` instance. - -## .addIgnoreFile(path) - -REMOVED in `3.x` for now. - -To upgrade `ignore@2.x` up to `3.x`, use - -```js -import fs from 'fs' - -if (fs.existsSync(filename)) { - ignore().add(fs.readFileSync(filename).toString()) -} -``` - -instead. - -## .filter(paths: Array<Pathname>): Array<Pathname> - -```ts -type Pathname = string -``` - -Filters the given array of pathnames, and returns the filtered array. - -- **paths** `Array.` The array of `pathname`s to be filtered. - -### `Pathname` Conventions: - -#### 1. `Pathname` should be a `path.relative()`d pathname - -`Pathname` should be a string that have been `path.join()`ed, or the return value of `path.relative()` to the current directory, - -```js -// WRONG, an error will be thrown -ig.ignores('./abc') - -// WRONG, for it will never happen, and an error will be thrown -// If the gitignore rule locates at the root directory, -// `'/abc'` should be changed to `'abc'`. -// ``` -// path.relative('/', '/abc') -> 'abc' -// ``` -ig.ignores('/abc') - -// WRONG, that it is an absolute path on Windows, an error will be thrown -ig.ignores('C:\\abc') - -// Right -ig.ignores('abc') - -// Right -ig.ignores(path.join('./abc')) // path.join('./abc') -> 'abc' -``` - -In other words, each `Pathname` here should be a relative path to the directory of the gitignore rules. - -Suppose the dir structure is: - -``` -/path/to/your/repo - |-- a - | |-- a.js - | - |-- .b - | - |-- .c - |-- .DS_store -``` - -Then the `paths` might be like this: - -```js -[ - 'a/a.js' - '.b', - '.c/.DS_store' -] -``` - -#### 2. filenames and dirnames - -`node-ignore` does NO `fs.stat` during path matching, so for the example below: - -```js -// First, we add a ignore pattern to ignore a directory -ig.add('config/') - -// `ig` does NOT know if 'config', in the real world, -// is a normal file, directory or something. - -ig.ignores('config') -// `ig` treats `config` as a file, so it returns `false` - -ig.ignores('config/') -// returns `true` -``` - -Specially for people who develop some library based on `node-ignore`, it is important to understand that. - -Usually, you could use [`glob`](http://npmjs.org/package/glob) with `option.mark = true` to fetch the structure of the current directory: - -```js -import glob from 'glob' - -glob('**', { - // Adds a / character to directory matches. - mark: true -}, (err, files) => { - if (err) { - return console.error(err) - } - - let filtered = ignore().add(patterns).filter(files) - console.log(filtered) -}) -``` - -## .ignores(pathname: Pathname): boolean - -> new in 3.2.0 - -Returns `Boolean` whether `pathname` should be ignored. - -```js -ig.ignores('.abc/a.js') // true -``` - -## .createFilter() - -Creates a filter function which could filter an array of paths with `Array.prototype.filter`. - -Returns `function(path)` the filter function. - -## .test(pathname: Pathname) since 5.0.0 - -Returns `TestResult` - -```ts -interface TestResult { - ignored: boolean - // true if the `pathname` is finally unignored by some negative pattern - unignored: boolean -} -``` - -- `{ignored: true, unignored: false}`: the `pathname` is ignored -- `{ignored: false, unignored: true}`: the `pathname` is unignored -- `{ignored: false, unignored: false}`: the `pathname` is never matched by any ignore rules. - -## static `ignore.isPathValid(pathname): boolean` since 5.0.0 - -Check whether the `pathname` is an valid `path.relative()`d path according to the [convention](#1-pathname-should-be-a-pathrelatived-pathname). - -This method is **NOT** used to check if an ignore pattern is valid. - -```js -ignore.isPathValid('./foo') // false -``` - -## ignore(options) - -### `options.ignorecase` since 4.0.0 - -Similar as the `core.ignorecase` option of [git-config](https://git-scm.com/docs/git-config), `node-ignore` will be case insensitive if `options.ignorecase` is set to `true` (the default value), otherwise case sensitive. - -```js -const ig = ignore({ - ignorecase: false -}) - -ig.add('*.png') - -ig.ignores('*.PNG') // false -``` - -### `options.ignoreCase?: boolean` since 5.2.0 - -Which is alternative to `options.ignoreCase` - -### `options.allowRelativePaths?: boolean` since 5.2.0 - -This option brings backward compatibility with projects which based on `ignore@4.x`. If `options.allowRelativePaths` is `true`, `ignore` will not check whether the given path to be tested is [`path.relative()`d](#pathname-conventions). - -However, passing a relative path, such as `'./foo'` or `'../foo'`, to test if it is ignored or not is not a good practise, which might lead to unexpected behavior - -```js -ignore({ - allowRelativePaths: true -}).ignores('../foo/bar.js') // And it will not throw -``` - -**** - -# Upgrade Guide - -## Upgrade 4.x -> 5.x - -Since `5.0.0`, if an invalid `Pathname` passed into `ig.ignores()`, an error will be thrown, unless `options.allowRelative = true` is passed to the `Ignore` factory. - -While `ignore < 5.0.0` did not make sure what the return value was, as well as - -```ts -.ignores(pathname: Pathname): boolean - -.filter(pathnames: Array): Array - -.createFilter(): (pathname: Pathname) => boolean - -.test(pathname: Pathname): {ignored: boolean, unignored: boolean} -``` - -See the convention [here](#1-pathname-should-be-a-pathrelatived-pathname) for details. - -If there are invalid pathnames, the conversion and filtration should be done by users. - -```js -import {isPathValid} from 'ignore' // introduced in 5.0.0 - -const paths = [ - // invalid - ////////////////// - '', - false, - '../foo', - '.', - ////////////////// - - // valid - 'foo' -] -.filter(isValidPath) - -ig.filter(paths) -``` - -## Upgrade 3.x -> 4.x - -Since `4.0.0`, `ignore` will no longer support node < 6, to use `ignore` in node < 6: - -```js -var ignore = require('ignore/legacy') -``` - -## Upgrade 2.x -> 3.x - -- All `options` of 2.x are unnecessary and removed, so just remove them. -- `ignore()` instance is no longer an [`EventEmitter`](nodejs.org/api/events.html), and all events are unnecessary and removed. -- `.addIgnoreFile()` is removed, see the [.addIgnoreFile](#addignorefilepath) section for details. - -**** - -# Collaborators - -- [@whitecolor](https://github.com/whitecolor) *Alex* -- [@SamyPesse](https://github.com/SamyPesse) *Samy Pessé* -- [@azproduction](https://github.com/azproduction) *Mikhail Davydov* -- [@TrySound](https://github.com/TrySound) *Bogdan Chadkin* -- [@JanMattner](https://github.com/JanMattner) *Jan Mattner* -- [@ntwb](https://github.com/ntwb) *Stephen Edgar* -- [@kasperisager](https://github.com/kasperisager) *Kasper Isager* -- [@sandersn](https://github.com/sandersn) *Nathan Shively-Sanders* diff --git a/graphql/node_modules/ignore/index.d.ts b/graphql/node_modules/ignore/index.d.ts deleted file mode 100644 index 970631e2..00000000 --- a/graphql/node_modules/ignore/index.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -type Pathname = string - -interface TestResult { - ignored: boolean - unignored: boolean -} - -export interface Ignore { - /** - * Adds one or several rules to the current manager. - * @param {string[]} patterns - * @returns IgnoreBase - */ - add(patterns: string | Ignore | readonly (string | Ignore)[]): this - - /** - * Filters the given array of pathnames, and returns the filtered array. - * NOTICE that each path here should be a relative path to the root of your repository. - * @param paths the array of paths to be filtered. - * @returns The filtered array of paths - */ - filter(pathnames: readonly Pathname[]): Pathname[] - - /** - * Creates a filter function which could filter - * an array of paths with Array.prototype.filter. - */ - createFilter(): (pathname: Pathname) => boolean - - /** - * Returns Boolean whether pathname should be ignored. - * @param {string} pathname a path to check - * @returns boolean - */ - ignores(pathname: Pathname): boolean - - /** - * Returns whether pathname should be ignored or unignored - * @param {string} pathname a path to check - * @returns TestResult - */ - test(pathname: Pathname): TestResult -} - -export interface Options { - ignorecase?: boolean - // For compatibility - ignoreCase?: boolean - allowRelativePaths?: boolean -} - -/** - * Creates new ignore manager. - */ -declare function ignore(options?: Options): Ignore - -declare namespace ignore { - export function isPathValid (pathname: string): boolean -} - -export default ignore diff --git a/graphql/node_modules/ignore/index.js b/graphql/node_modules/ignore/index.js deleted file mode 100644 index 9f0dbfeb..00000000 --- a/graphql/node_modules/ignore/index.js +++ /dev/null @@ -1,636 +0,0 @@ -// A simple implementation of make-array -function makeArray (subject) { - return Array.isArray(subject) - ? subject - : [subject] -} - -const EMPTY = '' -const SPACE = ' ' -const ESCAPE = '\\' -const REGEX_TEST_BLANK_LINE = /^\s+$/ -const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/ -const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/ -const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/ -const REGEX_SPLITALL_CRLF = /\r?\n/g -// /foo, -// ./foo, -// ../foo, -// . -// .. -const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/ - -const SLASH = '/' - -// Do not use ternary expression here, since "istanbul ignore next" is buggy -let TMP_KEY_IGNORE = 'node-ignore' -/* istanbul ignore else */ -if (typeof Symbol !== 'undefined') { - TMP_KEY_IGNORE = Symbol.for('node-ignore') -} -const KEY_IGNORE = TMP_KEY_IGNORE - -const define = (object, key, value) => - Object.defineProperty(object, key, {value}) - -const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g - -const RETURN_FALSE = () => false - -// Sanitize the range of a regular expression -// The cases are complicated, see test cases for details -const sanitizeRange = range => range.replace( - REGEX_REGEXP_RANGE, - (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) - ? match - // Invalid range (out of order) which is ok for gitignore rules but - // fatal for JavaScript regular expression, so eliminate it. - : EMPTY -) - -// See fixtures #59 -const cleanRangeBackSlash = slashes => { - const {length} = slashes - return slashes.slice(0, length - length % 2) -} - -// > If the pattern ends with a slash, -// > it is removed for the purpose of the following description, -// > but it would only find a match with a directory. -// > In other words, foo/ will match a directory foo and paths underneath it, -// > but will not match a regular file or a symbolic link foo -// > (this is consistent with the way how pathspec works in general in Git). -// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`' -// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call -// you could use option `mark: true` with `glob` - -// '`foo/`' should not continue with the '`..`' -const REPLACERS = [ - - [ - // remove BOM - // TODO: - // Other similar zero-width characters? - /^\uFEFF/, - () => EMPTY - ], - - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a ) -> (a) - // (a \ ) -> (a ) - /((?:\\\\)*?)(\\?\s+)$/, - (_, m1, m2) => m1 + ( - m2.indexOf('\\') === 0 - ? SPACE - : EMPTY - ) - ], - - // replace (\ ) with ' ' - // (\ ) -> ' ' - // (\\ ) -> '\\ ' - // (\\\ ) -> '\\ ' - [ - /(\\+?)\s/g, - (_, m1) => { - const {length} = m1 - return m1.slice(0, length - length % 2) + SPACE - } - ], - - // Escape metacharacters - // which is written down by users but means special for regular expressions. - - // > There are 12 characters with special meanings: - // > - the backslash \, - // > - the caret ^, - // > - the dollar sign $, - // > - the period or dot ., - // > - the vertical bar or pipe symbol |, - // > - the question mark ?, - // > - the asterisk or star *, - // > - the plus sign +, - // > - the opening parenthesis (, - // > - the closing parenthesis ), - // > - and the opening square bracket [, - // > - the opening curly brace {, - // > These special characters are often called "metacharacters". - [ - /[\\$.|*+(){^]/g, - match => `\\${match}` - ], - - [ - // > a question mark (?) matches a single character - /(?!\\)\?/g, - () => '[^/]' - ], - - // leading slash - [ - - // > A leading slash matches the beginning of the pathname. - // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". - // A leading slash matches the beginning of the pathname - /^\//, - () => '^' - ], - - // replace special metacharacter slash after the leading slash - [ - /\//g, - () => '\\/' - ], - - [ - // > A leading "**" followed by a slash means match in all directories. - // > For example, "**/foo" matches file or directory "foo" anywhere, - // > the same as pattern "foo". - // > "**/foo/bar" matches file or directory "bar" anywhere that is directly - // > under directory "foo". - // Notice that the '*'s have been replaced as '\\*' - /^\^*\\\*\\\*\\\//, - - // '**/foo' <-> 'foo' - () => '^(?:.*\\/)?' - ], - - // starting - [ - // there will be no leading '/' - // (which has been replaced by section "leading slash") - // If starts with '**', adding a '^' to the regular expression also works - /^(?=[^^])/, - function startingReplacer () { - // If has a slash `/` at the beginning or middle - return !/\/(?!$)/.test(this) - // > Prior to 2.22.1 - // > If the pattern does not contain a slash /, - // > Git treats it as a shell glob pattern - // Actually, if there is only a trailing slash, - // git also treats it as a shell glob pattern - - // After 2.22.1 (compatible but clearer) - // > If there is a separator at the beginning or middle (or both) - // > of the pattern, then the pattern is relative to the directory - // > level of the particular .gitignore file itself. - // > Otherwise the pattern may also match at any level below - // > the .gitignore level. - ? '(?:^|\\/)' - - // > Otherwise, Git treats the pattern as a shell glob suitable for - // > consumption by fnmatch(3) - : '^' - } - ], - - // two globstars - [ - // Use lookahead assertions so that we could match more than one `'/**'` - /\\\/\\\*\\\*(?=\\\/|$)/g, - - // Zero, one or several directories - // should not use '*', or it will be replaced by the next replacer - - // Check if it is not the last `'/**'` - (_, index, str) => index + 6 < str.length - - // case: /**/ - // > A slash followed by two consecutive asterisks then a slash matches - // > zero or more directories. - // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on. - // '/**/' - ? '(?:\\/[^\\/]+)*' - - // case: /** - // > A trailing `"/**"` matches everything inside. - - // #21: everything inside but it should not include the current folder - : '\\/.+' - ], - - // normal intermediate wildcards - [ - // Never replace escaped '*' - // ignore rule '\*' will match the path '*' - - // 'abc.*/' -> go - // 'abc.*' -> skip this rule, - // coz trailing single wildcard will be handed by [trailing wildcard] - /(^|[^\\]+)(\\\*)+(?=.+)/g, - - // '*.js' matches '.js' - // '*.js' doesn't match 'abc' - (_, p1, p2) => { - // 1. - // > An asterisk "*" matches anything except a slash. - // 2. - // > Other consecutive asterisks are considered regular asterisks - // > and will match according to the previous rules. - const unescaped = p2.replace(/\\\*/g, '[^\\/]*') - return p1 + unescaped - } - ], - - [ - // unescape, revert step 3 except for back slash - // For example, if a user escape a '\\*', - // after step 3, the result will be '\\\\\\*' - /\\\\\\(?=[$.|*+(){^])/g, - () => ESCAPE - ], - - [ - // '\\\\' -> '\\' - /\\\\/g, - () => ESCAPE - ], - - [ - // > The range notation, e.g. [a-zA-Z], - // > can be used to match one of the characters in a range. - - // `\` is escaped by step 3 - /(\\)?\[([^\]/]*?)(\\*)($|\])/g, - (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE - // '\\[bar]' -> '\\\\[bar\\]' - ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` - : close === ']' - ? endEscape.length % 2 === 0 - // A normal case, and it is a range notation - // '[bar]' - // '[bar\\\\]' - ? `[${sanitizeRange(range)}${endEscape}]` - // Invalid range notaton - // '[bar\\]' -> '[bar\\\\]' - : '[]' - : '[]' - ], - - // ending - [ - // 'js' will not match 'js.' - // 'ab' will not match 'abc' - /(?:[^*])$/, - - // WTF! - // https://git-scm.com/docs/gitignore - // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) - // which re-fixes #24, #38 - - // > If there is a separator at the end of the pattern then the pattern - // > will only match directories, otherwise the pattern can match both - // > files and directories. - - // 'js*' will not match 'a.js' - // 'js/' will not match 'a.js' - // 'js' will match 'a.js' and 'a.js/' - match => /\/$/.test(match) - // foo/ will not match 'foo' - ? `${match}$` - // foo matches 'foo' and 'foo/' - : `${match}(?=$|\\/$)` - ], - - // trailing wildcard - [ - /(\^|\\\/)?\\\*$/, - (_, p1) => { - const prefix = p1 - // '\^': - // '/*' does not match EMPTY - // '/*' does not match everything - - // '\\\/': - // 'abc/*' does not match 'abc/' - ? `${p1}[^/]+` - - // 'a*' matches 'a' - // 'a*' matches 'aa' - : '[^/]*' - - return `${prefix}(?=$|\\/$)` - } - ], -] - -// A simple cache, because an ignore rule only has only one certain meaning -const regexCache = Object.create(null) - -// @param {pattern} -const makeRegex = (pattern, ignoreCase) => { - let source = regexCache[pattern] - - if (!source) { - source = REPLACERS.reduce( - (prev, [matcher, replacer]) => - prev.replace(matcher, replacer.bind(pattern)), - pattern - ) - regexCache[pattern] = source - } - - return ignoreCase - ? new RegExp(source, 'i') - : new RegExp(source) -} - -const isString = subject => typeof subject === 'string' - -// > A blank line matches no files, so it can serve as a separator for readability. -const checkPattern = pattern => pattern - && isString(pattern) - && !REGEX_TEST_BLANK_LINE.test(pattern) - && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) - - // > A line starting with # serves as a comment. - && pattern.indexOf('#') !== 0 - -const splitPattern = pattern => pattern.split(REGEX_SPLITALL_CRLF) - -class IgnoreRule { - constructor ( - origin, - pattern, - negative, - regex - ) { - this.origin = origin - this.pattern = pattern - this.negative = negative - this.regex = regex - } -} - -const createRule = (pattern, ignoreCase) => { - const origin = pattern - let negative = false - - // > An optional prefix "!" which negates the pattern; - if (pattern.indexOf('!') === 0) { - negative = true - pattern = pattern.substr(1) - } - - pattern = pattern - // > Put a backslash ("\") in front of the first "!" for patterns that - // > begin with a literal "!", for example, `"\!important!.txt"`. - .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!') - // > Put a backslash ("\") in front of the first hash for patterns that - // > begin with a hash. - .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#') - - const regex = makeRegex(pattern, ignoreCase) - - return new IgnoreRule( - origin, - pattern, - negative, - regex - ) -} - -const throwError = (message, Ctor) => { - throw new Ctor(message) -} - -const checkPath = (path, originalPath, doThrow) => { - if (!isString(path)) { - return doThrow( - `path must be a string, but got \`${originalPath}\``, - TypeError - ) - } - - // We don't know if we should ignore EMPTY, so throw - if (!path) { - return doThrow(`path must not be empty`, TypeError) - } - - // Check if it is a relative path - if (checkPath.isNotRelative(path)) { - const r = '`path.relative()`d' - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError - ) - } - - return true -} - -const isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path) - -checkPath.isNotRelative = isNotRelative -checkPath.convert = p => p - -class Ignore { - constructor ({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define(this, KEY_IGNORE, true) - - this._rules = [] - this._ignoreCase = ignoreCase - this._allowRelativePaths = allowRelativePaths - this._initCache() - } - - _initCache () { - this._ignoreCache = Object.create(null) - this._testCache = Object.create(null) - } - - _addPattern (pattern) { - // #32 - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules) - this._added = true - return - } - - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase) - this._added = true - this._rules.push(rule) - } - } - - // @param {Array | string | Ignore} pattern - add (pattern) { - this._added = false - - makeArray( - isString(pattern) - ? splitPattern(pattern) - : pattern - ).forEach(this._addPattern, this) - - // Some rules have just added to the ignore, - // making the behavior changed. - if (this._added) { - this._initCache() - } - - return this - } - - // legacy - addPattern (pattern) { - return this.add(pattern) - } - - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - - // @returns {TestResult} true if a file is ignored - _testOne (path, checkUnignored) { - let ignored = false - let unignored = false - - this._rules.forEach(rule => { - const {negative} = rule - if ( - unignored === negative && ignored !== unignored - || negative && !ignored && !unignored && !checkUnignored - ) { - return - } - - const matched = rule.regex.test(path) - - if (matched) { - ignored = !negative - unignored = negative - } - }) - - return { - ignored, - unignored - } - } - - // @returns {TestResult} - _test (originalPath, cache, checkUnignored, slices) { - const path = originalPath - // Supports nullable path - && checkPath.convert(originalPath) - - checkPath( - path, - originalPath, - this._allowRelativePaths - ? RETURN_FALSE - : throwError - ) - - return this._t(path, cache, checkUnignored, slices) - } - - _t (path, cache, checkUnignored, slices) { - if (path in cache) { - return cache[path] - } - - if (!slices) { - // path/to/a.js - // ['path', 'to', 'a.js'] - slices = path.split(SLASH) - } - - slices.pop() - - // If the path has no parent directory, just test it - if (!slices.length) { - return cache[path] = this._testOne(path, checkUnignored) - } - - const parent = this._t( - slices.join(SLASH) + SLASH, - cache, - checkUnignored, - slices - ) - - // If the path contains a parent directory, check the parent first - return cache[path] = parent.ignored - // > It is not possible to re-include a file if a parent directory of - // > that file is excluded. - ? parent - : this._testOne(path, checkUnignored) - } - - ignores (path) { - return this._test(path, this._ignoreCache, false).ignored - } - - createFilter () { - return path => !this.ignores(path) - } - - filter (paths) { - return makeArray(paths).filter(this.createFilter()) - } - - // @returns {TestResult} - test (path) { - return this._test(path, this._testCache, true) - } -} - -const factory = options => new Ignore(options) - -const isPathValid = path => - checkPath(path && checkPath.convert(path), path, RETURN_FALSE) - -factory.isPathValid = isPathValid - -// Fixes typescript -factory.default = factory - -module.exports = factory - -// Windows -// -------------------------------------------------------------- -/* istanbul ignore if */ -if ( - // Detect `process` so that it can run in browsers. - typeof process !== 'undefined' - && ( - process.env && process.env.IGNORE_TEST_WIN32 - || process.platform === 'win32' - ) -) { - /* eslint no-control-regex: "off" */ - const makePosix = str => /^\\\\\?\\/.test(str) - || /["<>|\u0000-\u001F]+/u.test(str) - ? str - : str.replace(/\\/g, '/') - - checkPath.convert = makePosix - - // 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/' - // 'd:\\foo' - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i - checkPath.isNotRelative = path => - REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) - || isNotRelative(path) -} diff --git a/graphql/node_modules/ignore/legacy.js b/graphql/node_modules/ignore/legacy.js deleted file mode 100644 index de3f66ce..00000000 --- a/graphql/node_modules/ignore/legacy.js +++ /dev/null @@ -1,559 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -// A simple implementation of make-array -function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; -} -var EMPTY = ''; -var SPACE = ' '; -var ESCAPE = '\\'; -var REGEX_TEST_BLANK_LINE = /^\s+$/; -var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; -var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; -var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; -var REGEX_SPLITALL_CRLF = /\r?\n/g; -// /foo, -// ./foo, -// ../foo, -// . -// .. -var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; -var SLASH = '/'; - -// Do not use ternary expression here, since "istanbul ignore next" is buggy -var TMP_KEY_IGNORE = 'node-ignore'; -/* istanbul ignore else */ -if (typeof Symbol !== 'undefined') { - TMP_KEY_IGNORE = Symbol["for"]('node-ignore'); -} -var KEY_IGNORE = TMP_KEY_IGNORE; -var define = function define(object, key, value) { - return Object.defineProperty(object, key, { - value: value - }); -}; -var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; -var RETURN_FALSE = function RETURN_FALSE() { - return false; -}; - -// Sanitize the range of a regular expression -// The cases are complicated, see test cases for details -var sanitizeRange = function sanitizeRange(range) { - return range.replace(REGEX_REGEXP_RANGE, function (match, from, to) { - return from.charCodeAt(0) <= to.charCodeAt(0) ? match - // Invalid range (out of order) which is ok for gitignore rules but - // fatal for JavaScript regular expression, so eliminate it. - : EMPTY; - }); -}; - -// See fixtures #59 -var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) { - var length = slashes.length; - return slashes.slice(0, length - length % 2); -}; - -// > If the pattern ends with a slash, -// > it is removed for the purpose of the following description, -// > but it would only find a match with a directory. -// > In other words, foo/ will match a directory foo and paths underneath it, -// > but will not match a regular file or a symbolic link foo -// > (this is consistent with the way how pathspec works in general in Git). -// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`' -// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call -// you could use option `mark: true` with `glob` - -// '`foo/`' should not continue with the '`..`' -var REPLACERS = [[ -// remove BOM -// TODO: -// Other similar zero-width characters? -/^\uFEFF/, function () { - return EMPTY; -}], -// > Trailing spaces are ignored unless they are quoted with backslash ("\") -[ -// (a\ ) -> (a ) -// (a ) -> (a) -// (a ) -> (a) -// (a \ ) -> (a ) -/((?:\\\\)*?)(\\?\s+)$/, function (_, m1, m2) { - return m1 + (m2.indexOf('\\') === 0 ? SPACE : EMPTY); -}], -// replace (\ ) with ' ' -// (\ ) -> ' ' -// (\\ ) -> '\\ ' -// (\\\ ) -> '\\ ' -[/(\\+?)\s/g, function (_, m1) { - var length = m1.length; - return m1.slice(0, length - length % 2) + SPACE; -}], -// Escape metacharacters -// which is written down by users but means special for regular expressions. - -// > There are 12 characters with special meanings: -// > - the backslash \, -// > - the caret ^, -// > - the dollar sign $, -// > - the period or dot ., -// > - the vertical bar or pipe symbol |, -// > - the question mark ?, -// > - the asterisk or star *, -// > - the plus sign +, -// > - the opening parenthesis (, -// > - the closing parenthesis ), -// > - and the opening square bracket [, -// > - the opening curly brace {, -// > These special characters are often called "metacharacters". -[/[\\$.|*+(){^]/g, function (match) { - return "\\".concat(match); -}], [ -// > a question mark (?) matches a single character -/(?!\\)\?/g, function () { - return '[^/]'; -}], -// leading slash -[ -// > A leading slash matches the beginning of the pathname. -// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". -// A leading slash matches the beginning of the pathname -/^\//, function () { - return '^'; -}], -// replace special metacharacter slash after the leading slash -[/\//g, function () { - return '\\/'; -}], [ -// > A leading "**" followed by a slash means match in all directories. -// > For example, "**/foo" matches file or directory "foo" anywhere, -// > the same as pattern "foo". -// > "**/foo/bar" matches file or directory "bar" anywhere that is directly -// > under directory "foo". -// Notice that the '*'s have been replaced as '\\*' -/^\^*\\\*\\\*\\\//, -// '**/foo' <-> 'foo' -function () { - return '^(?:.*\\/)?'; -}], -// starting -[ -// there will be no leading '/' -// (which has been replaced by section "leading slash") -// If starts with '**', adding a '^' to the regular expression also works -/^(?=[^^])/, function startingReplacer() { - // If has a slash `/` at the beginning or middle - return !/\/(?!$)/.test(this) - // > Prior to 2.22.1 - // > If the pattern does not contain a slash /, - // > Git treats it as a shell glob pattern - // Actually, if there is only a trailing slash, - // git also treats it as a shell glob pattern - - // After 2.22.1 (compatible but clearer) - // > If there is a separator at the beginning or middle (or both) - // > of the pattern, then the pattern is relative to the directory - // > level of the particular .gitignore file itself. - // > Otherwise the pattern may also match at any level below - // > the .gitignore level. - ? '(?:^|\\/)' - - // > Otherwise, Git treats the pattern as a shell glob suitable for - // > consumption by fnmatch(3) - : '^'; -}], -// two globstars -[ -// Use lookahead assertions so that we could match more than one `'/**'` -/\\\/\\\*\\\*(?=\\\/|$)/g, -// Zero, one or several directories -// should not use '*', or it will be replaced by the next replacer - -// Check if it is not the last `'/**'` -function (_, index, str) { - return index + 6 < str.length - - // case: /**/ - // > A slash followed by two consecutive asterisks then a slash matches - // > zero or more directories. - // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on. - // '/**/' - ? '(?:\\/[^\\/]+)*' - - // case: /** - // > A trailing `"/**"` matches everything inside. - - // #21: everything inside but it should not include the current folder - : '\\/.+'; -}], -// normal intermediate wildcards -[ -// Never replace escaped '*' -// ignore rule '\*' will match the path '*' - -// 'abc.*/' -> go -// 'abc.*' -> skip this rule, -// coz trailing single wildcard will be handed by [trailing wildcard] -/(^|[^\\]+)(\\\*)+(?=.+)/g, -// '*.js' matches '.js' -// '*.js' doesn't match 'abc' -function (_, p1, p2) { - // 1. - // > An asterisk "*" matches anything except a slash. - // 2. - // > Other consecutive asterisks are considered regular asterisks - // > and will match according to the previous rules. - var unescaped = p2.replace(/\\\*/g, '[^\\/]*'); - return p1 + unescaped; -}], [ -// unescape, revert step 3 except for back slash -// For example, if a user escape a '\\*', -// after step 3, the result will be '\\\\\\*' -/\\\\\\(?=[$.|*+(){^])/g, function () { - return ESCAPE; -}], [ -// '\\\\' -> '\\' -/\\\\/g, function () { - return ESCAPE; -}], [ -// > The range notation, e.g. [a-zA-Z], -// > can be used to match one of the characters in a range. - -// `\` is escaped by step 3 -/(\\)?\[([^\]/]*?)(\\*)($|\])/g, function (match, leadEscape, range, endEscape, close) { - return leadEscape === ESCAPE - // '\\[bar]' -> '\\\\[bar\\]' - ? "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close) : close === ']' ? endEscape.length % 2 === 0 - // A normal case, and it is a range notation - // '[bar]' - // '[bar\\\\]' - ? "[".concat(sanitizeRange(range)).concat(endEscape, "]") // Invalid range notaton - // '[bar\\]' -> '[bar\\\\]' - : '[]' : '[]'; -}], -// ending -[ -// 'js' will not match 'js.' -// 'ab' will not match 'abc' -/(?:[^*])$/, -// WTF! -// https://git-scm.com/docs/gitignore -// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) -// which re-fixes #24, #38 - -// > If there is a separator at the end of the pattern then the pattern -// > will only match directories, otherwise the pattern can match both -// > files and directories. - -// 'js*' will not match 'a.js' -// 'js/' will not match 'a.js' -// 'js' will match 'a.js' and 'a.js/' -function (match) { - return /\/$/.test(match) - // foo/ will not match 'foo' - ? "".concat(match, "$") // foo matches 'foo' and 'foo/' - : "".concat(match, "(?=$|\\/$)"); -}], -// trailing wildcard -[/(\^|\\\/)?\\\*$/, function (_, p1) { - var prefix = p1 - // '\^': - // '/*' does not match EMPTY - // '/*' does not match everything - - // '\\\/': - // 'abc/*' does not match 'abc/' - ? "".concat(p1, "[^/]+") // 'a*' matches 'a' - // 'a*' matches 'aa' - : '[^/]*'; - return "".concat(prefix, "(?=$|\\/$)"); -}]]; - -// A simple cache, because an ignore rule only has only one certain meaning -var regexCache = Object.create(null); - -// @param {pattern} -var makeRegex = function makeRegex(pattern, ignoreCase) { - var source = regexCache[pattern]; - if (!source) { - source = REPLACERS.reduce(function (prev, _ref) { - var _ref2 = _slicedToArray(_ref, 2), - matcher = _ref2[0], - replacer = _ref2[1]; - return prev.replace(matcher, replacer.bind(pattern)); - }, pattern); - regexCache[pattern] = source; - } - return ignoreCase ? new RegExp(source, 'i') : new RegExp(source); -}; -var isString = function isString(subject) { - return typeof subject === 'string'; -}; - -// > A blank line matches no files, so it can serve as a separator for readability. -var checkPattern = function checkPattern(pattern) { - return pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) - - // > A line starting with # serves as a comment. - && pattern.indexOf('#') !== 0; -}; -var splitPattern = function splitPattern(pattern) { - return pattern.split(REGEX_SPLITALL_CRLF); -}; -var IgnoreRule = /*#__PURE__*/_createClass(function IgnoreRule(origin, pattern, negative, regex) { - _classCallCheck(this, IgnoreRule); - this.origin = origin; - this.pattern = pattern; - this.negative = negative; - this.regex = regex; -}); -var createRule = function createRule(pattern, ignoreCase) { - var origin = pattern; - var negative = false; - - // > An optional prefix "!" which negates the pattern; - if (pattern.indexOf('!') === 0) { - negative = true; - pattern = pattern.substr(1); - } - pattern = pattern - // > Put a backslash ("\") in front of the first "!" for patterns that - // > begin with a literal "!", for example, `"\!important!.txt"`. - .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!') - // > Put a backslash ("\") in front of the first hash for patterns that - // > begin with a hash. - .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#'); - var regex = makeRegex(pattern, ignoreCase); - return new IgnoreRule(origin, pattern, negative, regex); -}; -var throwError = function throwError(message, Ctor) { - throw new Ctor(message); -}; -var checkPath = function checkPath(path, originalPath, doThrow) { - if (!isString(path)) { - return doThrow("path must be a string, but got `".concat(originalPath, "`"), TypeError); - } - - // We don't know if we should ignore EMPTY, so throw - if (!path) { - return doThrow("path must not be empty", TypeError); - } - - // Check if it is a relative path - if (checkPath.isNotRelative(path)) { - var r = '`path.relative()`d'; - return doThrow("path should be a ".concat(r, " string, but got \"").concat(originalPath, "\""), RangeError); - } - return true; -}; -var isNotRelative = function isNotRelative(path) { - return REGEX_TEST_INVALID_PATH.test(path); -}; -checkPath.isNotRelative = isNotRelative; -checkPath.convert = function (p) { - return p; -}; -var Ignore = /*#__PURE__*/function () { - function Ignore() { - var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - _ref3$ignorecase = _ref3.ignorecase, - ignorecase = _ref3$ignorecase === void 0 ? true : _ref3$ignorecase, - _ref3$ignoreCase = _ref3.ignoreCase, - ignoreCase = _ref3$ignoreCase === void 0 ? ignorecase : _ref3$ignoreCase, - _ref3$allowRelativePa = _ref3.allowRelativePaths, - allowRelativePaths = _ref3$allowRelativePa === void 0 ? false : _ref3$allowRelativePa; - _classCallCheck(this, Ignore); - define(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _createClass(Ignore, [{ - key: "_initCache", - value: function _initCache() { - this._ignoreCache = Object.create(null); - this._testCache = Object.create(null); - } - }, { - key: "_addPattern", - value: function _addPattern(pattern) { - // #32 - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; - return; - } - if (checkPattern(pattern)) { - var rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); - } - } - - // @param {Array | string | Ignore} pattern - }, { - key: "add", - value: function add(pattern) { - this._added = false; - makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._addPattern, this); - - // Some rules have just added to the ignore, - // making the behavior changed. - if (this._added) { - this._initCache(); - } - return this; - } - - // legacy - }, { - key: "addPattern", - value: function addPattern(pattern) { - return this.add(pattern); - } - - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - - // @returns {TestResult} true if a file is ignored - }, { - key: "_testOne", - value: function _testOne(path, checkUnignored) { - var ignored = false; - var unignored = false; - this._rules.forEach(function (rule) { - var negative = rule.negative; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; - } - var matched = rule.regex.test(path); - if (matched) { - ignored = !negative; - unignored = negative; - } - }); - return { - ignored: ignored, - unignored: unignored - }; - } - - // @returns {TestResult} - }, { - key: "_test", - value: function _test(originalPath, cache, checkUnignored, slices) { - var path = originalPath - // Supports nullable path - && checkPath.convert(originalPath); - checkPath(path, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError); - return this._t(path, cache, checkUnignored, slices); - } - }, { - key: "_t", - value: function _t(path, cache, checkUnignored, slices) { - if (path in cache) { - return cache[path]; - } - if (!slices) { - // path/to/a.js - // ['path', 'to', 'a.js'] - slices = path.split(SLASH); - } - slices.pop(); - - // If the path has no parent directory, just test it - if (!slices.length) { - return cache[path] = this._testOne(path, checkUnignored); - } - var parent = this._t(slices.join(SLASH) + SLASH, cache, checkUnignored, slices); - - // If the path contains a parent directory, check the parent first - return cache[path] = parent.ignored - // > It is not possible to re-include a file if a parent directory of - // > that file is excluded. - ? parent : this._testOne(path, checkUnignored); - } - }, { - key: "ignores", - value: function ignores(path) { - return this._test(path, this._ignoreCache, false).ignored; - } - }, { - key: "createFilter", - value: function createFilter() { - var _this = this; - return function (path) { - return !_this.ignores(path); - }; - } - }, { - key: "filter", - value: function filter(paths) { - return makeArray(paths).filter(this.createFilter()); - } - - // @returns {TestResult} - }, { - key: "test", - value: function test(path) { - return this._test(path, this._testCache, true); - } - }]); - return Ignore; -}(); -var factory = function factory(options) { - return new Ignore(options); -}; -var isPathValid = function isPathValid(path) { - return checkPath(path && checkPath.convert(path), path, RETURN_FALSE); -}; -factory.isPathValid = isPathValid; - -// Fixes typescript -factory["default"] = factory; -module.exports = factory; - -// Windows -// -------------------------------------------------------------- -/* istanbul ignore if */ -if ( -// Detect `process` so that it can run in browsers. -typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) { - /* eslint no-control-regex: "off" */ - var makePosix = function makePosix(str) { - return /^\\\\\?\\/.test(str) || /[\0-\x1F"<>\|]+/.test(str) ? str : str.replace(/\\/g, '/'); - }; - checkPath.convert = makePosix; - - // 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/' - // 'd:\\foo' - var REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = function (path) { - return REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path); - }; -} diff --git a/graphql/node_modules/ignore/package.json b/graphql/node_modules/ignore/package.json deleted file mode 100644 index b7f684e9..00000000 --- a/graphql/node_modules/ignore/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "ignore", - "version": "5.3.2", - "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.", - "files": [ - "legacy.js", - "index.js", - "index.d.ts", - "LICENSE-MIT" - ], - "scripts": { - "prepublishOnly": "npm run build", - "build": "babel -o legacy.js index.js", - "test:lint": "eslint .", - "test:tsc": "tsc ./test/ts/simple.ts --lib ES6", - "test:ts": "node ./test/ts/simple.js", - "tap": "tap --reporter classic", - "test:git": "npm run tap test/git-check-ignore.js", - "test:ignore": "npm run tap test/ignore.js", - "test:ignore:only": "IGNORE_ONLY_IGNORES=1 npm run tap test/ignore.js", - "test:others": "npm run tap test/others.js", - "test:cases": "npm run tap test/*.js -- --coverage", - "test:no-coverage": "npm run tap test/*.js -- --no-check-coverage", - "test:only": "npm run test:lint && npm run test:tsc && npm run test:ts && npm run test:cases", - "test": "npm run test:only", - "test:win32": "IGNORE_TEST_WIN32=1 npm run test", - "report": "tap --coverage-report=html", - "posttest": "npm run report && codecov" - }, - "repository": { - "type": "git", - "url": "git@github.com:kaelzhang/node-ignore.git" - }, - "keywords": [ - "ignore", - ".gitignore", - "gitignore", - "npmignore", - "rules", - "manager", - "filter", - "regexp", - "regex", - "fnmatch", - "glob", - "asterisks", - "regular-expression" - ], - "author": "kael", - "license": "MIT", - "bugs": { - "url": "https://github.com/kaelzhang/node-ignore/issues" - }, - "devDependencies": { - "@babel/cli": "^7.22.9", - "@babel/core": "^7.22.9", - "@babel/preset-env": "^7.22.9", - "codecov": "^3.8.2", - "debug": "^4.3.4", - "eslint": "^8.46.0", - "eslint-config-ostai": "^3.0.0", - "eslint-plugin-import": "^2.28.0", - "mkdirp": "^3.0.1", - "pre-suf": "^1.1.1", - "rimraf": "^6.0.1", - "spawn-sync": "^2.0.0", - "tap": "^16.3.9", - "tmp": "0.2.3", - "typescript": "^5.1.6" - }, - "engines": { - "node": ">= 4" - } -} diff --git a/graphql/node_modules/import-fresh/index.d.ts b/graphql/node_modules/import-fresh/index.d.ts deleted file mode 100644 index 36d7e208..00000000 --- a/graphql/node_modules/import-fresh/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** -Import a module while bypassing the cache. - -@example -``` -// foo.js -let i = 0; -module.exports = () => ++i; - -// index.js -import importFresh = require('import-fresh'); - -require('./foo')(); -//=> 1 - -require('./foo')(); -//=> 2 - -importFresh('./foo')(); -//=> 1 - -importFresh('./foo')(); -//=> 1 - -const foo = importFresh('./foo'); -``` -*/ -declare function importFresh(moduleId: string): T; - -export = importFresh; diff --git a/graphql/node_modules/import-fresh/index.js b/graphql/node_modules/import-fresh/index.js deleted file mode 100644 index 0a4c5d52..00000000 --- a/graphql/node_modules/import-fresh/index.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; -const path = require('path'); -const resolveFrom = require('resolve-from'); -const parentModule = require('parent-module'); - -module.exports = moduleId => { - if (typeof moduleId !== 'string') { - throw new TypeError('Expected a string'); - } - - const parentPath = parentModule(__filename); - - const cwd = parentPath ? path.dirname(parentPath) : __dirname; - const filePath = resolveFrom(cwd, moduleId); - - const oldModule = require.cache[filePath]; - // Delete itself from module parent - if (oldModule && oldModule.parent) { - let i = oldModule.parent.children.length; - - while (i--) { - if (oldModule.parent.children[i].id === filePath) { - oldModule.parent.children.splice(i, 1); - } - } - } - - delete require.cache[filePath]; // Delete module from cache - - const parent = require.cache[parentPath]; // If `filePath` and `parentPath` are the same, cache will already be deleted so we won't get a memory leak in next step - - return parent === undefined ? require(filePath) : parent.require(filePath); // In case cache doesn't have parent, fall back to normal require -}; diff --git a/graphql/node_modules/import-fresh/license b/graphql/node_modules/import-fresh/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/import-fresh/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/import-fresh/package.json b/graphql/node_modules/import-fresh/package.json deleted file mode 100644 index 0c093620..00000000 --- a/graphql/node_modules/import-fresh/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "import-fresh", - "version": "3.3.0", - "description": "Import a module while bypassing the cache", - "license": "MIT", - "repository": "sindresorhus/import-fresh", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd", - "heapdump": "node heapdump.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "require", - "cache", - "uncache", - "uncached", - "module", - "fresh", - "bypass" - ], - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.0.1", - "heapdump": "^0.3.12", - "tsd": "^0.7.3", - "xo": "^0.23.0" - } -} diff --git a/graphql/node_modules/import-fresh/readme.md b/graphql/node_modules/import-fresh/readme.md deleted file mode 100644 index bd14c79c..00000000 --- a/graphql/node_modules/import-fresh/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -# import-fresh - -> Import a module while bypassing the [cache](https://nodejs.org/api/modules.html#modules_caching) - -Useful for testing purposes when you need to freshly import a module. - -## Install - -``` -$ npm install import-fresh -``` - -## Usage - -```js -// foo.js -let i = 0; -module.exports = () => ++i; -``` - -```js -const importFresh = require('import-fresh'); - -require('./foo')(); -//=> 1 - -require('./foo')(); -//=> 2 - -importFresh('./foo')(); -//=> 1 - -importFresh('./foo')(); -//=> 1 -``` - -## import-fresh for enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of import-fresh and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-import-fresh?utm_source=npm-import-fresh&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -## Related - -- [clear-module](https://github.com/sindresorhus/clear-module) - Clear a module from the import cache -- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path -- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory -- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import modules lazily diff --git a/graphql/node_modules/imurmurhash/README.md b/graphql/node_modules/imurmurhash/README.md deleted file mode 100644 index f35b20a0..00000000 --- a/graphql/node_modules/imurmurhash/README.md +++ /dev/null @@ -1,122 +0,0 @@ -iMurmurHash.js -============== - -An incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js). - -This version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing. - -Installation ------------- - -To use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site. - -```html - - -``` - ---- - -To use iMurmurHash in Node.js, install the module using NPM: - -```bash -npm install imurmurhash -``` - -Then simply include it in your scripts: - -```javascript -MurmurHash3 = require('imurmurhash'); -``` - -Quick Example -------------- - -```javascript -// Create the initial hash -var hashState = MurmurHash3('string'); - -// Incrementally add text -hashState.hash('more strings'); -hashState.hash('even more strings'); - -// All calls can be chained if desired -hashState.hash('and').hash('some').hash('more'); - -// Get a result -hashState.result(); -// returns 0xe4ccfe6b -``` - -Functions ---------- - -### MurmurHash3 ([string], [seed]) -Get a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example: - -```javascript -// Use the cached object, calling the function again will return the same -// object (but reset, so the current state would be lost) -hashState = MurmurHash3(); -... - -// Create a new object that can be safely used however you wish. Calling the -// function again will simply return a new state object, and no state loss -// will occur, at the cost of creating more objects. -hashState = new MurmurHash3(); -``` - -Both methods can be mixed however you like if you have different use cases. - ---- - -### MurmurHash3.prototype.hash (string) -Incrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained. - ---- - -### MurmurHash3.prototype.result () -Get the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`. - -```javascript -// Do the whole string at once -MurmurHash3('this is a test string').result(); -// 0x70529328 - -// Do part of the string, get a result, then the other part -var m = MurmurHash3('this is a'); -m.result(); -// 0xbfc4f834 -m.hash(' test string').result(); -// 0x70529328 (same as above) -``` - ---- - -### MurmurHash3.prototype.reset ([seed]) -Reset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained. - ---- - -License (MIT) -------------- -Copyright (c) 2013 Gary Court, Jens Taylor - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/imurmurhash/imurmurhash.js b/graphql/node_modules/imurmurhash/imurmurhash.js deleted file mode 100644 index e63146a2..00000000 --- a/graphql/node_modules/imurmurhash/imurmurhash.js +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -(function(){ - var cache; - - // Call this function without `new` to use the cached object (good for - // single-threaded environments), or with `new` to create a new object. - // - // @param {string} key A UTF-16 or ASCII string - // @param {number} seed An optional positive integer - // @return {object} A MurmurHash3 object for incremental hashing - function MurmurHash3(key, seed) { - var m = this instanceof MurmurHash3 ? this : cache; - m.reset(seed) - if (typeof key === 'string' && key.length > 0) { - m.hash(key); - } - - if (m !== this) { - return m; - } - }; - - // Incrementally add a string to this hash - // - // @param {string} key A UTF-16 or ASCII string - // @return {object} this - MurmurHash3.prototype.hash = function(key) { - var h1, k1, i, top, len; - - len = key.length; - this.len += len; - - k1 = this.k1; - i = 0; - switch (this.rem) { - case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0; - case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0; - case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0; - case 3: - k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0; - k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0; - } - - this.rem = (len + this.rem) & 3; // & 3 is same as % 4 - len -= this.rem; - if (len > 0) { - h1 = this.h1; - while (1) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - - h1 ^= k1; - h1 = (h1 << 13) | (h1 >>> 19); - h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff; - - if (i >= len) { - break; - } - - k1 = ((key.charCodeAt(i++) & 0xffff)) ^ - ((key.charCodeAt(i++) & 0xffff) << 8) ^ - ((key.charCodeAt(i++) & 0xffff) << 16); - top = key.charCodeAt(i++); - k1 ^= ((top & 0xff) << 24) ^ - ((top & 0xff00) >> 8); - } - - k1 = 0; - switch (this.rem) { - case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16; - case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8; - case 1: k1 ^= (key.charCodeAt(i) & 0xffff); - } - - this.h1 = h1; - } - - this.k1 = k1; - return this; - }; - - // Get the result of this hash - // - // @return {number} The 32-bit hash - MurmurHash3.prototype.result = function() { - var k1, h1; - - k1 = this.k1; - h1 = this.h1; - - if (k1 > 0) { - k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff; - h1 ^= k1; - } - - h1 ^= this.len; - - h1 ^= h1 >>> 16; - h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff; - h1 ^= h1 >>> 13; - h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff; - h1 ^= h1 >>> 16; - - return h1 >>> 0; - }; - - // Reset the hash object for reuse - // - // @param {number} seed An optional positive integer - MurmurHash3.prototype.reset = function(seed) { - this.h1 = typeof seed === 'number' ? seed : 0; - this.rem = this.k1 = this.len = 0; - return this; - }; - - // A cached object to use. This can be safely used if you're in a single- - // threaded environment, otherwise you need to create new hashes to use. - cache = new MurmurHash3(); - - if (typeof(module) != 'undefined') { - module.exports = MurmurHash3; - } else { - this.MurmurHash3 = MurmurHash3; - } -}()); diff --git a/graphql/node_modules/imurmurhash/imurmurhash.min.js b/graphql/node_modules/imurmurhash/imurmurhash.min.js deleted file mode 100644 index dc0ee88d..00000000 --- a/graphql/node_modules/imurmurhash/imurmurhash.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @preserve - * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) - * - * @author Jens Taylor - * @see http://github.com/homebrewing/brauhaus-diff - * @author Gary Court - * @see http://github.com/garycourt/murmurhash-js - * @author Austin Appleby - * @see http://sites.google.com/site/murmurhash/ - */ -!function(){function t(h,r){var s=this instanceof t?this:e;return s.reset(r),"string"==typeof h&&h.length>0&&s.hash(h),s!==this?s:void 0}var e;t.prototype.hash=function(t){var e,h,r,s,i;switch(i=t.length,this.len+=i,h=this.k1,r=0,this.rem){case 0:h^=i>r?65535&t.charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:h^=i>r?(255&t.charCodeAt(r))<<24:0,h^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=3&i+this.rem,i-=this.rem,i>0){for(e=this.h1;;){if(h=4294967295&11601*h+3432906752*(65535&h),h=h<<15|h>>>17,h=4294967295&13715*h+461832192*(65535&h),e^=h,e=e<<13|e>>>19,e=4294967295&5*e+3864292196,r>=i)break;h=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,s=t.charCodeAt(r++),h^=(255&s)<<24^(65280&s)>>8}switch(h=0,this.rem){case 3:h^=(65535&t.charCodeAt(r+2))<<16;case 2:h^=(65535&t.charCodeAt(r+1))<<8;case 1:h^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=h,this},t.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(t=4294967295&11601*t+3432906752*(65535&t),t=t<<15|t>>>17,t=4294967295&13715*t+461832192*(65535&t),e^=t),e^=this.len,e^=e>>>16,e=4294967295&51819*e+2246770688*(65535&e),e^=e>>>13,e=4294967295&44597*e+3266445312*(65535&e),e^=e>>>16,e>>>0},t.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new t,"undefined"!=typeof module?module.exports=t:this.MurmurHash3=t}(); \ No newline at end of file diff --git a/graphql/node_modules/imurmurhash/package.json b/graphql/node_modules/imurmurhash/package.json deleted file mode 100644 index 8a93edb5..00000000 --- a/graphql/node_modules/imurmurhash/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "imurmurhash", - "version": "0.1.4", - "description": "An incremental implementation of MurmurHash3", - "homepage": "https://github.com/jensyt/imurmurhash-js", - "main": "imurmurhash.js", - "files": [ - "imurmurhash.js", - "imurmurhash.min.js", - "package.json", - "README.md" - ], - "repository": { - "type": "git", - "url": "https://github.com/jensyt/imurmurhash-js" - }, - "bugs": { - "url": "https://github.com/jensyt/imurmurhash-js/issues" - }, - "keywords": [ - "murmur", - "murmurhash", - "murmurhash3", - "hash", - "incremental" - ], - "author": { - "name": "Jens Taylor", - "email": "jensyt@gmail.com", - "url": "https://github.com/homebrewing" - }, - "license": "MIT", - "dependencies": { - }, - "devDependencies": { - }, - "engines": { - "node": ">=0.8.19" - } -} diff --git a/graphql/node_modules/is-extglob/LICENSE b/graphql/node_modules/is-extglob/LICENSE deleted file mode 100644 index 842218cf..00000000 --- a/graphql/node_modules/is-extglob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, Jon Schlinkert - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/is-extglob/README.md b/graphql/node_modules/is-extglob/README.md deleted file mode 100644 index 0416af5c..00000000 --- a/graphql/node_modules/is-extglob/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# is-extglob [![NPM version](https://img.shields.io/npm/v/is-extglob.svg?style=flat)](https://www.npmjs.com/package/is-extglob) [![NPM downloads](https://img.shields.io/npm/dm/is-extglob.svg?style=flat)](https://npmjs.org/package/is-extglob) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-extglob.svg?style=flat)](https://travis-ci.org/jonschlinkert/is-extglob) - -> Returns true if a string has an extglob. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-extglob -``` - -## Usage - -```js -var isExtglob = require('is-extglob'); -``` - -**True** - -```js -isExtglob('?(abc)'); -isExtglob('@(abc)'); -isExtglob('!(abc)'); -isExtglob('*(abc)'); -isExtglob('+(abc)'); -``` - -**False** - -Escaped extglobs: - -```js -isExtglob('\\?(abc)'); -isExtglob('\\@(abc)'); -isExtglob('\\!(abc)'); -isExtglob('\\*(abc)'); -isExtglob('\\+(abc)'); -``` - -Everything else... - -```js -isExtglob('foo.js'); -isExtglob('!foo.js'); -isExtglob('*.js'); -isExtglob('**/abc.js'); -isExtglob('abc/*.js'); -isExtglob('abc/(aaa|bbb).js'); -isExtglob('abc/[a-z].js'); -isExtglob('abc/{a,b}.js'); -isExtglob('abc/?.js'); -isExtglob('abc.js'); -isExtglob('abc/def/ghi.js'); -``` - -## History - -**v2.0** - -Adds support for escaping. Escaped exglobs no longer return true. - -## About - -### Related projects - -* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.") -* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") -* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/is-extglob/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._ \ No newline at end of file diff --git a/graphql/node_modules/is-extglob/index.js b/graphql/node_modules/is-extglob/index.js deleted file mode 100644 index c1d986fc..00000000 --- a/graphql/node_modules/is-extglob/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * is-extglob - * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. - */ - -module.exports = function isExtglob(str) { - if (typeof str !== 'string' || str === '') { - return false; - } - - var match; - while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) { - if (match[2]) return true; - str = str.slice(match.index + match[0].length); - } - - return false; -}; diff --git a/graphql/node_modules/is-extglob/package.json b/graphql/node_modules/is-extglob/package.json deleted file mode 100644 index 7a908369..00000000 --- a/graphql/node_modules/is-extglob/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "is-extglob", - "description": "Returns true if a string has an extglob.", - "version": "2.1.1", - "homepage": "https://github.com/jonschlinkert/is-extglob", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "repository": "jonschlinkert/is-extglob", - "bugs": { - "url": "https://github.com/jonschlinkert/is-extglob/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha" - }, - "devDependencies": { - "gulp-format-md": "^0.1.10", - "mocha": "^3.0.2" - }, - "keywords": [ - "bash", - "braces", - "check", - "exec", - "expression", - "extglob", - "glob", - "globbing", - "globstar", - "is", - "match", - "matches", - "pattern", - "regex", - "regular", - "string", - "test" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "has-glob", - "is-glob", - "micromatch" - ] - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ], - "lint": { - "reflinks": true - } - } -} diff --git a/graphql/node_modules/is-glob/LICENSE b/graphql/node_modules/is-glob/LICENSE deleted file mode 100644 index 3f2eca18..00000000 --- a/graphql/node_modules/is-glob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/is-glob/README.md b/graphql/node_modules/is-glob/README.md deleted file mode 100644 index 740724b2..00000000 --- a/graphql/node_modules/is-glob/README.md +++ /dev/null @@ -1,206 +0,0 @@ -# is-glob [![NPM version](https://img.shields.io/npm/v/is-glob.svg?style=flat)](https://www.npmjs.com/package/is-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![NPM total downloads](https://img.shields.io/npm/dt/is-glob.svg?style=flat)](https://npmjs.org/package/is-glob) [![Build Status](https://img.shields.io/github/workflow/status/micromatch/is-glob/dev)](https://github.com/micromatch/is-glob/actions) - -> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-glob -``` - -You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob). - -## Usage - -```js -var isGlob = require('is-glob'); -``` - -### Default behavior - -**True** - -Patterns that have glob characters or regex patterns will return `true`: - -```js -isGlob('!foo.js'); -isGlob('*.js'); -isGlob('**/abc.js'); -isGlob('abc/*.js'); -isGlob('abc/(aaa|bbb).js'); -isGlob('abc/[a-z].js'); -isGlob('abc/{a,b}.js'); -//=> true -``` - -Extglobs - -```js -isGlob('abc/@(a).js'); -isGlob('abc/!(a).js'); -isGlob('abc/+(a).js'); -isGlob('abc/*(a).js'); -isGlob('abc/?(a).js'); -//=> true -``` - -**False** - -Escaped globs or extglobs return `false`: - -```js -isGlob('abc/\\@(a).js'); -isGlob('abc/\\!(a).js'); -isGlob('abc/\\+(a).js'); -isGlob('abc/\\*(a).js'); -isGlob('abc/\\?(a).js'); -isGlob('\\!foo.js'); -isGlob('\\*.js'); -isGlob('\\*\\*/abc.js'); -isGlob('abc/\\*.js'); -isGlob('abc/\\(aaa|bbb).js'); -isGlob('abc/\\[a-z].js'); -isGlob('abc/\\{a,b}.js'); -//=> false -``` - -Patterns that do not have glob patterns return `false`: - -```js -isGlob('abc.js'); -isGlob('abc/def/ghi.js'); -isGlob('foo.js'); -isGlob('abc/@.js'); -isGlob('abc/+.js'); -isGlob('abc/?.js'); -isGlob(); -isGlob(null); -//=> false -``` - -Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)): - -```js -isGlob(['**/*.js']); -isGlob(['foo.js']); -//=> false -``` - -### Option strict - -When `options.strict === false` the behavior is less strict in determining if a pattern is a glob. Meaning that -some patterns that would return `false` may return `true`. This is done so that matching libraries like [micromatch](https://github.com/micromatch/micromatch) have a chance at determining if the pattern is a glob or not. - -**True** - -Patterns that have glob characters or regex patterns will return `true`: - -```js -isGlob('!foo.js', {strict: false}); -isGlob('*.js', {strict: false}); -isGlob('**/abc.js', {strict: false}); -isGlob('abc/*.js', {strict: false}); -isGlob('abc/(aaa|bbb).js', {strict: false}); -isGlob('abc/[a-z].js', {strict: false}); -isGlob('abc/{a,b}.js', {strict: false}); -//=> true -``` - -Extglobs - -```js -isGlob('abc/@(a).js', {strict: false}); -isGlob('abc/!(a).js', {strict: false}); -isGlob('abc/+(a).js', {strict: false}); -isGlob('abc/*(a).js', {strict: false}); -isGlob('abc/?(a).js', {strict: false}); -//=> true -``` - -**False** - -Escaped globs or extglobs return `false`: - -```js -isGlob('\\!foo.js', {strict: false}); -isGlob('\\*.js', {strict: false}); -isGlob('\\*\\*/abc.js', {strict: false}); -isGlob('abc/\\*.js', {strict: false}); -isGlob('abc/\\(aaa|bbb).js', {strict: false}); -isGlob('abc/\\[a-z].js', {strict: false}); -isGlob('abc/\\{a,b}.js', {strict: false}); -//=> false -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit") -* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base "Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks") -* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.") -* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 47 | [jonschlinkert](https://github.com/jonschlinkert) | -| 5 | [doowb](https://github.com/doowb) | -| 1 | [phated](https://github.com/phated) | -| 1 | [danhper](https://github.com/danhper) | -| 1 | [paulmillr](https://github.com/paulmillr) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 27, 2019._ \ No newline at end of file diff --git a/graphql/node_modules/is-glob/index.js b/graphql/node_modules/is-glob/index.js deleted file mode 100644 index 620f563e..00000000 --- a/graphql/node_modules/is-glob/index.js +++ /dev/null @@ -1,150 +0,0 @@ -/*! - * is-glob - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -var isExtglob = require('is-extglob'); -var chars = { '{': '}', '(': ')', '[': ']'}; -var strictCheck = function(str) { - if (str[0] === '!') { - return true; - } - var index = 0; - var pipeIndex = -2; - var closeSquareIndex = -2; - var closeCurlyIndex = -2; - var closeParenIndex = -2; - var backSlashIndex = -2; - while (index < str.length) { - if (str[index] === '*') { - return true; - } - - if (str[index + 1] === '?' && /[\].+)]/.test(str[index])) { - return true; - } - - if (closeSquareIndex !== -1 && str[index] === '[' && str[index + 1] !== ']') { - if (closeSquareIndex < index) { - closeSquareIndex = str.indexOf(']', index); - } - if (closeSquareIndex > index) { - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - backSlashIndex = str.indexOf('\\', index); - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - } - } - - if (closeCurlyIndex !== -1 && str[index] === '{' && str[index + 1] !== '}') { - closeCurlyIndex = str.indexOf('}', index); - if (closeCurlyIndex > index) { - backSlashIndex = str.indexOf('\\', index); - if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { - return true; - } - } - } - - if (closeParenIndex !== -1 && str[index] === '(' && str[index + 1] === '?' && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ')') { - closeParenIndex = str.indexOf(')', index); - if (closeParenIndex > index) { - backSlashIndex = str.indexOf('\\', index); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - - if (pipeIndex !== -1 && str[index] === '(' && str[index + 1] !== '|') { - if (pipeIndex < index) { - pipeIndex = str.indexOf('|', index); - } - if (pipeIndex !== -1 && str[pipeIndex + 1] !== ')') { - closeParenIndex = str.indexOf(')', pipeIndex); - if (closeParenIndex > pipeIndex) { - backSlashIndex = str.indexOf('\\', pipeIndex); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - } - - if (str[index] === '\\') { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - - if (str[index] === '!') { - return true; - } - } else { - index++; - } - } - return false; -}; - -var relaxedCheck = function(str) { - if (str[0] === '!') { - return true; - } - var index = 0; - while (index < str.length) { - if (/[*?{}()[\]]/.test(str[index])) { - return true; - } - - if (str[index] === '\\') { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - - if (str[index] === '!') { - return true; - } - } else { - index++; - } - } - return false; -}; - -module.exports = function isGlob(str, options) { - if (typeof str !== 'string' || str === '') { - return false; - } - - if (isExtglob(str)) { - return true; - } - - var check = strictCheck; - - // optionally relax check - if (options && options.strict === false) { - check = relaxedCheck; - } - - return check(str); -}; diff --git a/graphql/node_modules/is-glob/package.json b/graphql/node_modules/is-glob/package.json deleted file mode 100644 index 858af037..00000000 --- a/graphql/node_modules/is-glob/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "is-glob", - "description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.", - "version": "4.0.3", - "homepage": "https://github.com/micromatch/is-glob", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Brian Woodward (https://twitter.com/doowb)", - "Daniel Perez (https://tuvistavie.com)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)" - ], - "repository": "micromatch/is-glob", - "bugs": { - "url": "https://github.com/micromatch/is-glob/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha && node benchmark.js" - }, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "devDependencies": { - "gulp-format-md": "^0.1.10", - "mocha": "^3.0.2" - }, - "keywords": [ - "bash", - "braces", - "check", - "exec", - "expression", - "extglob", - "glob", - "globbing", - "globstar", - "is", - "match", - "matches", - "pattern", - "regex", - "regular", - "string", - "test" - ], - "verb": { - "layout": "default", - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "assemble", - "base", - "update", - "verb" - ] - }, - "reflinks": [ - "assemble", - "bach", - "base", - "composer", - "gulp", - "has-glob", - "is-valid-glob", - "micromatch", - "npm", - "scaffold", - "verb", - "vinyl" - ] - } -} diff --git a/graphql/node_modules/is-number/LICENSE b/graphql/node_modules/is-number/LICENSE deleted file mode 100644 index 9af4a67d..00000000 --- a/graphql/node_modules/is-number/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/is-number/README.md b/graphql/node_modules/is-number/README.md deleted file mode 100644 index eb8149e8..00000000 --- a/graphql/node_modules/is-number/README.md +++ /dev/null @@ -1,187 +0,0 @@ -# is-number [![NPM version](https://img.shields.io/npm/v/is-number.svg?style=flat)](https://www.npmjs.com/package/is-number) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![NPM total downloads](https://img.shields.io/npm/dt/is-number.svg?style=flat)](https://npmjs.org/package/is-number) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-number.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-number) - -> Returns true if the value is a finite number. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-number -``` - -## Why is this needed? - -In JavaScript, it's not always as straightforward as it should be to reliably check if a value is a number. It's common for devs to use `+`, `-`, or `Number()` to cast a string value to a number (for example, when values are returned from user input, regex matches, parsers, etc). But there are many non-intuitive edge cases that yield unexpected results: - -```js -console.log(+[]); //=> 0 -console.log(+''); //=> 0 -console.log(+' '); //=> 0 -console.log(typeof NaN); //=> 'number' -``` - -This library offers a performant way to smooth out edge cases like these. - -## Usage - -```js -const isNumber = require('is-number'); -``` - -See the [tests](./test.js) for more examples. - -### true - -```js -isNumber(5e3); // true -isNumber(0xff); // true -isNumber(-1.1); // true -isNumber(0); // true -isNumber(1); // true -isNumber(1.1); // true -isNumber(10); // true -isNumber(10.10); // true -isNumber(100); // true -isNumber('-1.1'); // true -isNumber('0'); // true -isNumber('012'); // true -isNumber('0xff'); // true -isNumber('1'); // true -isNumber('1.1'); // true -isNumber('10'); // true -isNumber('10.10'); // true -isNumber('100'); // true -isNumber('5e3'); // true -isNumber(parseInt('012')); // true -isNumber(parseFloat('012')); // true -``` - -### False - -Everything else is false, as you would expect: - -```js -isNumber(Infinity); // false -isNumber(NaN); // false -isNumber(null); // false -isNumber(undefined); // false -isNumber(''); // false -isNumber(' '); // false -isNumber('foo'); // false -isNumber([1]); // false -isNumber([]); // false -isNumber(function () {}); // false -isNumber({}); // false -``` - -## Release history - -### 7.0.0 - -* Refactor. Now uses `.isFinite` if it exists. -* Performance is about the same as v6.0 when the value is a string or number. But it's now 3x-4x faster when the value is not a string or number. - -### 6.0.0 - -* Optimizations, thanks to @benaadams. - -### 5.0.0 - -**Breaking changes** - -* removed support for `instanceof Number` and `instanceof String` - -## Benchmarks - -As with all benchmarks, take these with a grain of salt. See the [benchmarks](./benchmark/index.js) for more detail. - -``` -# all -v7.0 x 413,222 ops/sec ±2.02% (86 runs sampled) -v6.0 x 111,061 ops/sec ±1.29% (85 runs sampled) -parseFloat x 317,596 ops/sec ±1.36% (86 runs sampled) -fastest is 'v7.0' - -# string -v7.0 x 3,054,496 ops/sec ±1.05% (89 runs sampled) -v6.0 x 2,957,781 ops/sec ±0.98% (88 runs sampled) -parseFloat x 3,071,060 ops/sec ±1.13% (88 runs sampled) -fastest is 'parseFloat,v7.0' - -# number -v7.0 x 3,146,895 ops/sec ±0.89% (89 runs sampled) -v6.0 x 3,214,038 ops/sec ±1.07% (89 runs sampled) -parseFloat x 3,077,588 ops/sec ±1.07% (87 runs sampled) -fastest is 'v6.0' -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ") -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 49 | [jonschlinkert](https://github.com/jonschlinkert) | -| 5 | [charlike-old](https://github.com/charlike-old) | -| 1 | [benaadams](https://github.com/benaadams) | -| 1 | [realityking](https://github.com/realityking) | - -### Author - -**Jon Schlinkert** - -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 15, 2018._ \ No newline at end of file diff --git a/graphql/node_modules/is-number/index.js b/graphql/node_modules/is-number/index.js deleted file mode 100644 index 27f19b75..00000000 --- a/graphql/node_modules/is-number/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * is-number - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -module.exports = function(num) { - if (typeof num === 'number') { - return num - num === 0; - } - if (typeof num === 'string' && num.trim() !== '') { - return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); - } - return false; -}; diff --git a/graphql/node_modules/is-number/package.json b/graphql/node_modules/is-number/package.json deleted file mode 100644 index 37150726..00000000 --- a/graphql/node_modules/is-number/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "is-number", - "description": "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.", - "version": "7.0.0", - "homepage": "https://github.com/jonschlinkert/is-number", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Olsten Larck (https://i.am.charlike.online)", - "Rouven Weßling (www.rouvenwessling.de)" - ], - "repository": "jonschlinkert/is-number", - "bugs": { - "url": "https://github.com/jonschlinkert/is-number/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=0.12.0" - }, - "scripts": { - "test": "mocha" - }, - "devDependencies": { - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "gulp-format-md": "^1.0.0", - "mocha": "^3.5.3" - }, - "keywords": [ - "cast", - "check", - "coerce", - "coercion", - "finite", - "integer", - "is", - "isnan", - "is-nan", - "is-num", - "is-number", - "isnumber", - "isfinite", - "istype", - "kind", - "math", - "nan", - "num", - "number", - "numeric", - "parseFloat", - "parseInt", - "test", - "type", - "typeof", - "value" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "related": { - "list": [ - "is-plain-object", - "is-primitive", - "isobject", - "kind-of" - ] - }, - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - } - } -} diff --git a/graphql/node_modules/is-path-inside/index.d.ts b/graphql/node_modules/is-path-inside/index.d.ts deleted file mode 100644 index 5cc3d804..00000000 --- a/graphql/node_modules/is-path-inside/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** -Check if a path is inside another path. - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -_Important:_ This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -@example -``` -import isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` -*/ -declare function isPathInside(childPath: string, parentPath: string): boolean; - -export = isPathInside; diff --git a/graphql/node_modules/is-path-inside/index.js b/graphql/node_modules/is-path-inside/index.js deleted file mode 100644 index 28ed79c0..00000000 --- a/graphql/node_modules/is-path-inside/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -const path = require('path'); - -module.exports = (childPath, parentPath) => { - const relation = path.relative(parentPath, childPath); - return Boolean( - relation && - relation !== '..' && - !relation.startsWith(`..${path.sep}`) && - relation !== path.resolve(childPath) - ); -}; diff --git a/graphql/node_modules/is-path-inside/license b/graphql/node_modules/is-path-inside/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/is-path-inside/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/is-path-inside/package.json b/graphql/node_modules/is-path-inside/package.json deleted file mode 100644 index 88c154ae..00000000 --- a/graphql/node_modules/is-path-inside/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "is-path-inside", - "version": "3.0.3", - "description": "Check if a path is inside another path", - "license": "MIT", - "repository": "sindresorhus/is-path-inside", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "inside", - "folder", - "directory", - "dir", - "file", - "resolve" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/is-path-inside/readme.md b/graphql/node_modules/is-path-inside/readme.md deleted file mode 100644 index e8c4f928..00000000 --- a/graphql/node_modules/is-path-inside/readme.md +++ /dev/null @@ -1,63 +0,0 @@ -# is-path-inside - -> Check if a path is inside another path - - -## Install - -``` -$ npm install is-path-inside -``` - - -## Usage - -```js -const isPathInside = require('is-path-inside'); - -isPathInside('a/b/c', 'a/b'); -//=> true - -isPathInside('a/b/c', 'x/y'); -//=> false - -isPathInside('a/b/c', 'a/b/c'); -//=> false - -isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus'); -//=> true -``` - - -## API - -### isPathInside(childPath, parentPath) - -Note that relative paths are resolved against `process.cwd()` to make them absolute. - -**Important:** This package is meant for use with path manipulation. It does not check if the paths exist nor does it resolve symlinks. You should not use this as a security mechanism to guard against access to certain places on the file system. - -#### childPath - -Type: `string` - -The path that should be inside `parentPath`. - -#### parentPath - -Type: `string` - -The path that should contain `childPath`. - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/isexe/.npmignore b/graphql/node_modules/isexe/.npmignore deleted file mode 100644 index c1cb757a..00000000 --- a/graphql/node_modules/isexe/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.nyc_output/ -coverage/ diff --git a/graphql/node_modules/isexe/LICENSE b/graphql/node_modules/isexe/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/graphql/node_modules/isexe/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/isexe/README.md b/graphql/node_modules/isexe/README.md deleted file mode 100644 index 35769e84..00000000 --- a/graphql/node_modules/isexe/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# isexe - -Minimal module to check if a file is executable, and a normal file. - -Uses `fs.stat` and tests against the `PATHEXT` environment variable on -Windows. - -## USAGE - -```javascript -var isexe = require('isexe') -isexe('some-file-name', function (err, isExe) { - if (err) { - console.error('probably file does not exist or something', err) - } else if (isExe) { - console.error('this thing can be run') - } else { - console.error('cannot be run') - } -}) - -// same thing but synchronous, throws errors -var isExe = isexe.sync('some-file-name') - -// treat errors as just "not executable" -isexe('maybe-missing-file', { ignoreErrors: true }, callback) -var isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true }) -``` - -## API - -### `isexe(path, [options], [callback])` - -Check if the path is executable. If no callback provided, and a -global `Promise` object is available, then a Promise will be returned. - -Will raise whatever errors may be raised by `fs.stat`, unless -`options.ignoreErrors` is set to true. - -### `isexe.sync(path, [options])` - -Same as `isexe` but returns the value and throws any errors raised. - -### Options - -* `ignoreErrors` Treat all errors as "no, this is not executable", but - don't raise them. -* `uid` Number to use as the user id -* `gid` Number to use as the group id -* `pathExt` List of path extensions to use instead of `PATHEXT` - environment variable on Windows. diff --git a/graphql/node_modules/isexe/index.js b/graphql/node_modules/isexe/index.js deleted file mode 100644 index 553fb32b..00000000 --- a/graphql/node_modules/isexe/index.js +++ /dev/null @@ -1,57 +0,0 @@ -var fs = require('fs') -var core -if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = require('./windows.js') -} else { - core = require('./mode.js') -} - -module.exports = isexe -isexe.sync = sync - -function isexe (path, options, cb) { - if (typeof options === 'function') { - cb = options - options = {} - } - - if (!cb) { - if (typeof Promise !== 'function') { - throw new TypeError('callback not provided') - } - - return new Promise(function (resolve, reject) { - isexe(path, options || {}, function (er, is) { - if (er) { - reject(er) - } else { - resolve(is) - } - }) - }) - } - - core(path, options || {}, function (er, is) { - // ignore EACCES because that just means we aren't allowed to run it - if (er) { - if (er.code === 'EACCES' || options && options.ignoreErrors) { - er = null - is = false - } - } - cb(er, is) - }) -} - -function sync (path, options) { - // my kingdom for a filtered catch - try { - return core.sync(path, options || {}) - } catch (er) { - if (options && options.ignoreErrors || er.code === 'EACCES') { - return false - } else { - throw er - } - } -} diff --git a/graphql/node_modules/isexe/mode.js b/graphql/node_modules/isexe/mode.js deleted file mode 100644 index 1995ea4a..00000000 --- a/graphql/node_modules/isexe/mode.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), options) -} - -function checkStat (stat, options) { - return stat.isFile() && checkMode(stat, options) -} - -function checkMode (stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid - - var myUid = options.uid !== undefined ? - options.uid : process.getuid && process.getuid() - var myGid = options.gid !== undefined ? - options.gid : process.getgid && process.getgid() - - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g - - var ret = (mod & o) || - (mod & g) && gid === myGid || - (mod & u) && uid === myUid || - (mod & ug) && myUid === 0 - - return ret -} diff --git a/graphql/node_modules/isexe/package.json b/graphql/node_modules/isexe/package.json deleted file mode 100644 index e4526894..00000000 --- a/graphql/node_modules/isexe/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "isexe", - "version": "2.0.0", - "description": "Minimal module to check if a file is executable.", - "main": "index.js", - "directories": { - "test": "test" - }, - "devDependencies": { - "mkdirp": "^0.5.1", - "rimraf": "^2.5.0", - "tap": "^10.3.0" - }, - "scripts": { - "test": "tap test/*.js --100", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/isexe.git" - }, - "keywords": [], - "bugs": { - "url": "https://github.com/isaacs/isexe/issues" - }, - "homepage": "https://github.com/isaacs/isexe#readme" -} diff --git a/graphql/node_modules/isexe/test/basic.js b/graphql/node_modules/isexe/test/basic.js deleted file mode 100644 index d926df64..00000000 --- a/graphql/node_modules/isexe/test/basic.js +++ /dev/null @@ -1,221 +0,0 @@ -var t = require('tap') -var fs = require('fs') -var path = require('path') -var fixture = path.resolve(__dirname, 'fixtures') -var meow = fixture + '/meow.cat' -var mine = fixture + '/mine.cat' -var ours = fixture + '/ours.cat' -var fail = fixture + '/fail.false' -var noent = fixture + '/enoent.exe' -var mkdirp = require('mkdirp') -var rimraf = require('rimraf') - -var isWindows = process.platform === 'win32' -var hasAccess = typeof fs.access === 'function' -var winSkip = isWindows && 'windows' -var accessSkip = !hasAccess && 'no fs.access function' -var hasPromise = typeof Promise === 'function' -var promiseSkip = !hasPromise && 'no global Promise' - -function reset () { - delete require.cache[require.resolve('../')] - return require('../') -} - -t.test('setup fixtures', function (t) { - rimraf.sync(fixture) - mkdirp.sync(fixture) - fs.writeFileSync(meow, '#!/usr/bin/env cat\nmeow\n') - fs.chmodSync(meow, parseInt('0755', 8)) - fs.writeFileSync(fail, '#!/usr/bin/env false\n') - fs.chmodSync(fail, parseInt('0644', 8)) - fs.writeFileSync(mine, '#!/usr/bin/env cat\nmine\n') - fs.chmodSync(mine, parseInt('0744', 8)) - fs.writeFileSync(ours, '#!/usr/bin/env cat\nours\n') - fs.chmodSync(ours, parseInt('0754', 8)) - t.end() -}) - -t.test('promise', { skip: promiseSkip }, function (t) { - var isexe = reset() - t.test('meow async', function (t) { - isexe(meow).then(function (is) { - t.ok(is) - t.end() - }) - }) - t.test('fail async', function (t) { - isexe(fail).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.test('noent async', function (t) { - isexe(noent).catch(function (er) { - t.ok(er) - t.end() - }) - }) - t.test('noent ignore async', function (t) { - isexe(noent, { ignoreErrors: true }).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.end() -}) - -t.test('no promise', function (t) { - global.Promise = null - var isexe = reset() - t.throws('try to meow a promise', function () { - isexe(meow) - }) - t.end() -}) - -t.test('access', { skip: accessSkip || winSkip }, function (t) { - runTest(t) -}) - -t.test('mode', { skip: winSkip }, function (t) { - delete fs.access - delete fs.accessSync - var isexe = reset() - t.ok(isexe.sync(ours, { uid: 0, gid: 0 })) - t.ok(isexe.sync(mine, { uid: 0, gid: 0 })) - runTest(t) -}) - -t.test('windows', function (t) { - global.TESTING_WINDOWS = true - var pathExt = '.EXE;.CAT;.CMD;.COM' - t.test('pathExt option', function (t) { - runTest(t, { pathExt: '.EXE;.CAT;.CMD;.COM' }) - }) - t.test('pathExt env', function (t) { - process.env.PATHEXT = pathExt - runTest(t) - }) - t.test('no pathExt', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: '', skipFail: true }) - }) - t.test('pathext with empty entry', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: ';' + pathExt, skipFail: true }) - }) - t.end() -}) - -t.test('cleanup', function (t) { - rimraf.sync(fixture) - t.end() -}) - -function runTest (t, options) { - var isexe = reset() - - var optionsIgnore = Object.create(options || {}) - optionsIgnore.ignoreErrors = true - - if (!options || !options.skipFail) { - t.notOk(isexe.sync(fail, options)) - } - t.notOk(isexe.sync(noent, optionsIgnore)) - if (!options) { - t.ok(isexe.sync(meow)) - } else { - t.ok(isexe.sync(meow, options)) - } - - t.ok(isexe.sync(mine, options)) - t.ok(isexe.sync(ours, options)) - t.throws(function () { - isexe.sync(noent, options) - }) - - t.test('meow async', function (t) { - if (!options) { - isexe(meow, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } else { - isexe(meow, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } - }) - - t.test('mine async', function (t) { - isexe(mine, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - t.test('ours async', function (t) { - isexe(ours, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - if (!options || !options.skipFail) { - t.test('fail async', function (t) { - isexe(fail, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - } - - t.test('noent async', function (t) { - isexe(noent, options, function (er, is) { - t.ok(er) - t.notOk(is) - t.end() - }) - }) - - t.test('noent ignore async', function (t) { - isexe(noent, optionsIgnore, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.test('directory is not executable', function (t) { - isexe(__dirname, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.end() -} diff --git a/graphql/node_modules/isexe/windows.js b/graphql/node_modules/isexe/windows.js deleted file mode 100644 index 34996734..00000000 --- a/graphql/node_modules/isexe/windows.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function checkPathExt (path, options) { - var pathext = options.pathExt !== undefined ? - options.pathExt : process.env.PATHEXT - - if (!pathext) { - return true - } - - pathext = pathext.split(';') - if (pathext.indexOf('') !== -1) { - return true - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase() - if (p && path.substr(-p.length).toLowerCase() === p) { - return true - } - } - return false -} - -function checkStat (stat, path, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false - } - return checkPathExt(path, options) -} - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, path, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), path, options) -} diff --git a/graphql/node_modules/js-yaml/CHANGELOG.md b/graphql/node_modules/js-yaml/CHANGELOG.md deleted file mode 100644 index ff2375e0..00000000 --- a/graphql/node_modules/js-yaml/CHANGELOG.md +++ /dev/null @@ -1,616 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [4.1.0] - 2021-04-15 -### Added -- Types are now exported as `yaml.types.XXX`. -- Every type now has `options` property with original arguments kept as they were - (see `yaml.types.int.options` as an example). - -### Changed -- `Schema.extend()` now keeps old type order in case of conflicts - (e.g. Schema.extend([ a, b, c ]).extend([ b, a, d ]) is now ordered as `abcd` instead of `cbad`). - - -## [4.0.0] - 2021-01-03 -### Changed -- Check [migration guide](migrate_v3_to_v4.md) to see details for all breaking changes. -- Breaking: "unsafe" tags `!!js/function`, `!!js/regexp`, `!!js/undefined` are - moved to [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) package. -- Breaking: removed `safe*` functions. Use `load`, `loadAll`, `dump` - instead which are all now safe by default. -- `yaml.DEFAULT_SAFE_SCHEMA` and `yaml.DEFAULT_FULL_SCHEMA` are removed, use - `yaml.DEFAULT_SCHEMA` instead. -- `yaml.Schema.create(schema, tags)` is removed, use `schema.extend(tags)` instead. -- `!!binary` now always mapped to `Uint8Array` on load. -- Reduced nesting of `/lib` folder. -- Parse numbers according to YAML 1.2 instead of YAML 1.1 (`01234` is now decimal, - `0o1234` is octal, `1:23` is parsed as string instead of base60). -- `dump()` no longer quotes `:`, `[`, `]`, `(`, `)` except when necessary, #470, #557. -- Line and column in exceptions are now formatted as `(X:Y)` instead of - `at line X, column Y` (also present in compact format), #332. -- Code snippet created in exceptions now contains multiple lines with line numbers. -- `dump()` now serializes `undefined` as `null` in collections and removes keys with - `undefined` in mappings, #571. -- `dump()` with `skipInvalid=true` now serializes invalid items in collections as null. -- Custom tags starting with `!` are now dumped as `!tag` instead of `!`, #576. -- Custom tags starting with `tag:yaml.org,2002:` are now shorthanded using `!!`, #258. - -### Added -- Added `.mjs` (es modules) support. -- Added `quotingType` and `forceQuotes` options for dumper to configure - string literal style, #290, #529. -- Added `styles: { '!!null': 'empty' }` option for dumper - (serializes `{ foo: null }` as "`foo: `"), #570. -- Added `replacer` option (similar to option in JSON.stringify), #339. -- Custom `Tag` can now handle all tags or multiple tags with the same prefix, #385. - -### Fixed -- Astral characters are no longer encoded by `dump()`, #587. -- "duplicate mapping key" exception now points at the correct column, #452. -- Extra commas in flow collections (e.g. `[foo,,bar]`) now throw an exception - instead of producing null, #321. -- `__proto__` key no longer overrides object prototype, #164. -- Removed `bower.json`. -- Tags are now url-decoded in `load()` and url-encoded in `dump()` - (previously usage of custom non-ascii tags may have led to invalid YAML that can't be parsed). -- Anchors now work correctly with empty nodes, #301. -- Fix incorrect parsing of invalid block mapping syntax, #418. -- Throw an error if block sequence/mapping indent contains a tab, #80. - - -## [3.14.1] - 2020-12-07 -### Security -- Fix possible code execution in (already unsafe) `.load()` (in &anchor). - - -## [3.14.0] - 2020-05-22 -### Changed -- Support `safe/loadAll(input, options)` variant of call. -- CI: drop outdated nodejs versions. -- Dev deps bump. - -### Fixed -- Quote `=` in plain scalars #519. -- Check the node type for `!` tag in case user manually specifies it. -- Verify that there are no null-bytes in input. -- Fix wrong quote position when writing condensed flow, #526. - - -## [3.13.1] - 2019-04-05 -### Security -- Fix possible code execution in (already unsafe) `.load()`, #480. - - -## [3.13.0] - 2019-03-20 -### Security -- Security fix: `safeLoad()` can hang when arrays with nested refs - used as key. Now throws exception for nested arrays. #475. - - -## [3.12.2] - 2019-02-26 -### Fixed -- Fix `noArrayIndent` option for root level, #468. - - -## [3.12.1] - 2019-01-05 -### Added -- Added `noArrayIndent` option, #432. - - -## [3.12.0] - 2018-06-02 -### Changed -- Support arrow functions without a block statement, #421. - - -## [3.11.0] - 2018-03-05 -### Added -- Add arrow functions suport for `!!js/function`. - -### Fixed -- Fix dump in bin/octal/hex formats for negative integers, #399. - - -## [3.10.0] - 2017-09-10 -### Fixed -- Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370. -- Dump astrals as codepoints instead of surrogate pair, #368. - - -## [3.9.1] - 2017-07-08 -### Fixed -- Ensure stack is present for custom errors in node 7.+, #351. - - -## [3.9.0] - 2017-07-08 -### Added -- Add `condenseFlow` option (to create pretty URL query params), #346. - -### Fixed -- Support array return from safeLoadAll/loadAll, #350. - - -## [3.8.4] - 2017-05-08 -### Fixed -- Dumper: prevent space after dash for arrays that wrap, #343. - - -## [3.8.3] - 2017-04-05 -### Fixed -- Should not allow numbers to begin and end with underscore, #335. - - -## [3.8.2] - 2017-03-02 -### Fixed -- Fix `!!float 123` (integers) parse, #333. -- Don't allow leading zeros in floats (except 0, 0.xxx). -- Allow positive exponent without sign in floats. - - -## [3.8.1] - 2017-02-07 -### Changed -- Maintenance: update browserified build. - - -## [3.8.0] - 2017-02-07 -### Fixed -- Fix reported position for `duplicated mapping key` errors. - Now points to block start instead of block end. - (#243, thanks to @shockey). - - -## [3.7.0] - 2016-11-12 -### Added -- Support polymorphism for tags (#300, thanks to @monken). - -### Fixed -- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage). - - -## [3.6.1] - 2016-05-11 -### Fixed -- Fix output cut on a pipe, #286. - - -## [3.6.0] - 2016-04-16 -### Fixed -- Dumper rewrite, fix multiple bugs with trailing `\n`. - Big thanks to @aepsilon! -- Loader: fix leading/trailing newlines in block scalars, @aepsilon. - - -## [3.5.5] - 2016-03-17 -### Fixed -- Date parse fix: don't allow dates with on digit in month and day, #268. - - -## [3.5.4] - 2016-03-09 -### Added -- `noCompatMode` for dumper, to disable quoting YAML 1.1 values. - - -## [3.5.3] - 2016-02-11 -### Changed -- Maintenance release. - - -## [3.5.2] - 2016-01-11 -### Changed -- Maintenance: missed comma in bower config. - - -## [3.5.1] - 2016-01-11 -### Changed -- Removed `inherit` dependency, #239. -- Better browserify workaround for esprima load. -- Demo rewrite. - - -## [3.5.0] - 2016-01-10 -### Fixed -- Dumper. Fold strings only, #217. -- Dumper. `norefs` option, to clone linked objects, #229. -- Loader. Throw a warning for duplicate keys, #166. -- Improved browserify support (mark `esprima` & `Buffer` excluded). - - -## [3.4.6] - 2015-11-26 -### Changed -- Use standalone `inherit` to keep browserified files clear. - - -## [3.4.5] - 2015-11-23 -### Added -- Added `lineWidth` option to dumper. - - -## [3.4.4] - 2015-11-21 -### Fixed -- Fixed floats dump (missed dot for scientific format), #220. -- Allow non-printable characters inside quoted scalars, #192. - - -## [3.4.3] - 2015-10-10 -### Changed -- Maintenance release - deps bump (esprima, argparse). - - -## [3.4.2] - 2015-09-09 -### Fixed -- Fixed serialization of duplicated entries in sequences, #205. - Thanks to @vogelsgesang. - - -## [3.4.1] - 2015-09-05 -### Fixed -- Fixed stacktrace handling in generated errors, for browsers (FF/IE). - - -## [3.4.0] - 2015-08-23 -### Changed -- Don't throw on warnings anymore. Use `onWarning` option to catch. -- Throw error on unknown tags (was warning before). -- Reworked internals of error class. - -### Fixed -- Fixed multiline keys dump, #197. Thanks to @tcr. -- Fixed heading line breaks in some scalars (regression). - - -## [3.3.1] - 2015-05-13 -### Added -- Added `.sortKeys` dumper option, thanks to @rjmunro. - -### Fixed -- Fixed astral characters support, #191. - - -## [3.3.0] - 2015-04-26 -### Changed -- Significantly improved long strings formatting in dumper, thanks to @isaacs. -- Strip BOM if exists. - - -## [3.2.7] - 2015-02-19 -### Changed -- Maintenance release. -- Updated dependencies. -- HISTORY.md -> CHANGELOG.md - - -## [3.2.6] - 2015-02-07 -### Fixed -- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE). -- Fixed demo dates dump (#113, thanks to @Hypercubed). - - -## [3.2.5] - 2014-12-28 -### Fixed -- Fixed resolving of all built-in types on empty nodes. -- Fixed invalid warning on empty lines within quoted scalars and flow collections. -- Fixed bug: Tag on an empty node didn't resolve in some cases. - - -## [3.2.4] - 2014-12-19 -### Fixed -- Fixed resolving of !!null tag on an empty node. - - -## [3.2.3] - 2014-11-08 -### Fixed -- Implemented dumping of objects with circular and cross references. -- Partially fixed aliasing of constructed objects. (see issue #141 for details) - - -## [3.2.2] - 2014-09-07 -### Fixed -- Fixed infinite loop on unindented block scalars. -- Rewritten base64 encode/decode in binary type, to keep code licence clear. - - -## [3.2.1] - 2014-08-24 -### Fixed -- Nothig new. Just fix npm publish error. - - -## [3.2.0] - 2014-08-24 -### Added -- Added input piping support to CLI. - -### Fixed -- Fixed typo, that could cause hand on initial indent (#139). - - -## [3.1.0] - 2014-07-07 -### Changed -- 1.5x-2x speed boost. -- Removed deprecated `require('xxx.yml')` support. -- Significant code cleanup and refactoring. -- Internal API changed. If you used custom types - see updated examples. - Others are not affected. -- Even if the input string has no trailing line break character, - it will be parsed as if it has one. -- Added benchmark scripts. -- Moved bower files to /dist folder -- Bugfixes. - - -## [3.0.2] - 2014-02-27 -### Fixed -- Fixed bug: "constructor" string parsed as `null`. - - -## [3.0.1] - 2013-12-22 -### Fixed -- Fixed parsing of literal scalars. (issue #108) -- Prevented adding unnecessary spaces in object dumps. (issue #68) -- Fixed dumping of objects with very long (> 1024 in length) keys. - - -## [3.0.0] - 2013-12-16 -### Changed -- Refactored code. Changed API for custom types. -- Removed output colors in CLI, dump json by default. -- Removed big dependencies from browser version (esprima, buffer). Load `esprima` manually, if `!!js/function` needed. `!!bin` now returns Array in browser -- AMD support. -- Don't quote dumped strings because of `-` & `?` (if not first char). -- __Deprecated__ loading yaml files via `require()`, as not recommended - behaviour for node. - - -## [2.1.3] - 2013-10-16 -### Fixed -- Fix wrong loading of empty block scalars. - - -## [2.1.2] - 2013-10-07 -### Fixed -- Fix unwanted line breaks in folded scalars. - - -## [2.1.1] - 2013-10-02 -### Fixed -- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1 -- Fixed reader bug in JSON-like sequences/mappings. - - -## [2.1.0] - 2013-06-05 -### Added -- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`), - JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`). -- Add `skipInvalid` dumper option. - -### Changed -- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA` - and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`. -- Use `safeLoad` for `require` extension. - -### Fixed -- Bug fix: export `NIL` constant from the public interface. - - -## [2.0.5] - 2013-04-26 -### Security -- Close security issue in !!js/function constructor. - Big thanks to @nealpoole for security audit. - - -## [2.0.4] - 2013-04-08 -### Changed -- Updated .npmignore to reduce package size - - -## [2.0.3] - 2013-02-26 -### Fixed -- Fixed dumping of empty arrays ans objects. ([] and {} instead of null) - - -## [2.0.2] - 2013-02-15 -### Fixed -- Fixed input validation: tabs are printable characters. - - -## [2.0.1] - 2013-02-09 -### Fixed -- Fixed error, when options not passed to function cass - - -## [2.0.0] - 2013-02-09 -### Changed -- Full rewrite. New architecture. Fast one-stage parsing. -- Changed custom types API. -- Added YAML dumper. - - -## [1.0.3] - 2012-11-05 -### Fixed -- Fixed utf-8 files loading. - - -## [1.0.2] - 2012-08-02 -### Fixed -- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44. -- Fix timstamps incorectly parsed in local time when no time part specified. - - -## [1.0.1] - 2012-07-07 -### Fixed -- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong. -- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46. - - -## [1.0.0] - 2012-07-01 -### Changed -- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore. - Fixes #42. -- `require(filename)` now returns a single document and throws an Error if - file contains more than one document. -- CLI was merged back from js-yaml.bin - - -## [0.3.7] - 2012-02-28 -### Fixed -- Fix export of `addConstructor()`. Closes #39. - - -## [0.3.6] - 2012-02-22 -### Changed -- Removed AMD parts - too buggy to use. Need help to rewrite from scratch - -### Fixed -- Removed YUI compressor warning (renamed `double` variable). Closes #40. - - -## [0.3.5] - 2012-01-10 -### Fixed -- Workagound for .npmignore fuckup under windows. Thanks to airportyh. - - -## [0.3.4] - 2011-12-24 -### Fixed -- Fixes str[] for oldIEs support. -- Adds better has change support for browserified demo. -- improves compact output of Error. Closes #33. - - -## [0.3.3] - 2011-12-20 -### Added -- adds `compact` stringification of Errors. - -### Changed -- jsyaml executable moved to separate module. - - -## [0.3.2] - 2011-12-16 -### Added -- Added jsyaml executable. -- Added !!js/function support. Closes #12. - -### Fixed -- Fixes ug with block style scalars. Closes #26. -- All sources are passing JSLint now. -- Fixes bug in Safari. Closes #28. -- Fixes bug in Opers. Closes #29. -- Improves browser support. Closes #20. - - -## [0.3.1] - 2011-11-18 -### Added -- Added AMD support for browserified version. -- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol. -- Added !!js/regexp and !!js/undefined types. Partially solves #12. - -### Changed -- Wrapped browserified js-yaml into closure. - -### Fixed -- Fixed the resolvement of non-specific tags. Closes #17. -- Fixed !!set mapping. -- Fixed month parse in dates. Closes #19. - - -## [0.3.0] - 2011-11-09 -### Added -- Added browserified version. Closes #13. -- Added live demo of browserified version. -- Ported some of the PyYAML tests. See #14. - -### Fixed -- Removed JS.Class dependency. Closes #3. -- Fixed timestamp bug when fraction was given. - - -## [0.2.2] - 2011-11-06 -### Fixed -- Fixed crash on docs without ---. Closes #8. -- Fixed multiline string parse -- Fixed tests/comments for using array as key - - -## [0.2.1] - 2011-11-02 -### Fixed -- Fixed short file read (<4k). Closes #9. - - -## [0.2.0] - 2011-11-02 -### Changed -- First public release - - -[4.1.0]: https://github.com/nodeca/js-yaml/compare/4.0.0...4.1.0 -[4.0.0]: https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0 -[3.14.0]: https://github.com/nodeca/js-yaml/compare/3.13.1...3.14.0 -[3.13.1]: https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1 -[3.13.0]: https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.0 -[3.12.2]: https://github.com/nodeca/js-yaml/compare/3.12.1...3.12.2 -[3.12.1]: https://github.com/nodeca/js-yaml/compare/3.12.0...3.12.1 -[3.12.0]: https://github.com/nodeca/js-yaml/compare/3.11.0...3.12.0 -[3.11.0]: https://github.com/nodeca/js-yaml/compare/3.10.0...3.11.0 -[3.10.0]: https://github.com/nodeca/js-yaml/compare/3.9.1...3.10.0 -[3.9.1]: https://github.com/nodeca/js-yaml/compare/3.9.0...3.9.1 -[3.9.0]: https://github.com/nodeca/js-yaml/compare/3.8.4...3.9.0 -[3.8.4]: https://github.com/nodeca/js-yaml/compare/3.8.3...3.8.4 -[3.8.3]: https://github.com/nodeca/js-yaml/compare/3.8.2...3.8.3 -[3.8.2]: https://github.com/nodeca/js-yaml/compare/3.8.1...3.8.2 -[3.8.1]: https://github.com/nodeca/js-yaml/compare/3.8.0...3.8.1 -[3.8.0]: https://github.com/nodeca/js-yaml/compare/3.7.0...3.8.0 -[3.7.0]: https://github.com/nodeca/js-yaml/compare/3.6.1...3.7.0 -[3.6.1]: https://github.com/nodeca/js-yaml/compare/3.6.0...3.6.1 -[3.6.0]: https://github.com/nodeca/js-yaml/compare/3.5.5...3.6.0 -[3.5.5]: https://github.com/nodeca/js-yaml/compare/3.5.4...3.5.5 -[3.5.4]: https://github.com/nodeca/js-yaml/compare/3.5.3...3.5.4 -[3.5.3]: https://github.com/nodeca/js-yaml/compare/3.5.2...3.5.3 -[3.5.2]: https://github.com/nodeca/js-yaml/compare/3.5.1...3.5.2 -[3.5.1]: https://github.com/nodeca/js-yaml/compare/3.5.0...3.5.1 -[3.5.0]: https://github.com/nodeca/js-yaml/compare/3.4.6...3.5.0 -[3.4.6]: https://github.com/nodeca/js-yaml/compare/3.4.5...3.4.6 -[3.4.5]: https://github.com/nodeca/js-yaml/compare/3.4.4...3.4.5 -[3.4.4]: https://github.com/nodeca/js-yaml/compare/3.4.3...3.4.4 -[3.4.3]: https://github.com/nodeca/js-yaml/compare/3.4.2...3.4.3 -[3.4.2]: https://github.com/nodeca/js-yaml/compare/3.4.1...3.4.2 -[3.4.1]: https://github.com/nodeca/js-yaml/compare/3.4.0...3.4.1 -[3.4.0]: https://github.com/nodeca/js-yaml/compare/3.3.1...3.4.0 -[3.3.1]: https://github.com/nodeca/js-yaml/compare/3.3.0...3.3.1 -[3.3.0]: https://github.com/nodeca/js-yaml/compare/3.2.7...3.3.0 -[3.2.7]: https://github.com/nodeca/js-yaml/compare/3.2.6...3.2.7 -[3.2.6]: https://github.com/nodeca/js-yaml/compare/3.2.5...3.2.6 -[3.2.5]: https://github.com/nodeca/js-yaml/compare/3.2.4...3.2.5 -[3.2.4]: https://github.com/nodeca/js-yaml/compare/3.2.3...3.2.4 -[3.2.3]: https://github.com/nodeca/js-yaml/compare/3.2.2...3.2.3 -[3.2.2]: https://github.com/nodeca/js-yaml/compare/3.2.1...3.2.2 -[3.2.1]: https://github.com/nodeca/js-yaml/compare/3.2.0...3.2.1 -[3.2.0]: https://github.com/nodeca/js-yaml/compare/3.1.0...3.2.0 -[3.1.0]: https://github.com/nodeca/js-yaml/compare/3.0.2...3.1.0 -[3.0.2]: https://github.com/nodeca/js-yaml/compare/3.0.1...3.0.2 -[3.0.1]: https://github.com/nodeca/js-yaml/compare/3.0.0...3.0.1 -[3.0.0]: https://github.com/nodeca/js-yaml/compare/2.1.3...3.0.0 -[2.1.3]: https://github.com/nodeca/js-yaml/compare/2.1.2...2.1.3 -[2.1.2]: https://github.com/nodeca/js-yaml/compare/2.1.1...2.1.2 -[2.1.1]: https://github.com/nodeca/js-yaml/compare/2.1.0...2.1.1 -[2.1.0]: https://github.com/nodeca/js-yaml/compare/2.0.5...2.1.0 -[2.0.5]: https://github.com/nodeca/js-yaml/compare/2.0.4...2.0.5 -[2.0.4]: https://github.com/nodeca/js-yaml/compare/2.0.3...2.0.4 -[2.0.3]: https://github.com/nodeca/js-yaml/compare/2.0.2...2.0.3 -[2.0.2]: https://github.com/nodeca/js-yaml/compare/2.0.1...2.0.2 -[2.0.1]: https://github.com/nodeca/js-yaml/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/js-yaml/compare/1.0.3...2.0.0 -[1.0.3]: https://github.com/nodeca/js-yaml/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/js-yaml/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/js-yaml/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/js-yaml/compare/0.3.7...1.0.0 -[0.3.7]: https://github.com/nodeca/js-yaml/compare/0.3.6...0.3.7 -[0.3.6]: https://github.com/nodeca/js-yaml/compare/0.3.5...0.3.6 -[0.3.5]: https://github.com/nodeca/js-yaml/compare/0.3.4...0.3.5 -[0.3.4]: https://github.com/nodeca/js-yaml/compare/0.3.3...0.3.4 -[0.3.3]: https://github.com/nodeca/js-yaml/compare/0.3.2...0.3.3 -[0.3.2]: https://github.com/nodeca/js-yaml/compare/0.3.1...0.3.2 -[0.3.1]: https://github.com/nodeca/js-yaml/compare/0.3.0...0.3.1 -[0.3.0]: https://github.com/nodeca/js-yaml/compare/0.2.2...0.3.0 -[0.2.2]: https://github.com/nodeca/js-yaml/compare/0.2.1...0.2.2 -[0.2.1]: https://github.com/nodeca/js-yaml/compare/0.2.0...0.2.1 -[0.2.0]: https://github.com/nodeca/js-yaml/releases/tag/0.2.0 diff --git a/graphql/node_modules/js-yaml/LICENSE b/graphql/node_modules/js-yaml/LICENSE deleted file mode 100644 index 09d3a29e..00000000 --- a/graphql/node_modules/js-yaml/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -(The MIT License) - -Copyright (C) 2011-2015 by Vitaly Puzrin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/js-yaml/README.md b/graphql/node_modules/js-yaml/README.md deleted file mode 100644 index 3cbc4bd2..00000000 --- a/graphql/node_modules/js-yaml/README.md +++ /dev/null @@ -1,246 +0,0 @@ -JS-YAML - YAML 1.2 parser / writer for JavaScript -================================================= - -[![CI](https://github.com/nodeca/js-yaml/workflows/CI/badge.svg?branch=master)](https://github.com/nodeca/js-yaml/actions) -[![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml) - -__[Online Demo](http://nodeca.github.com/js-yaml/)__ - - -This is an implementation of [YAML](http://yaml.org/), a human-friendly data -serialization language. Started as [PyYAML](http://pyyaml.org/) port, it was -completely rewritten from scratch. Now it's very fast, and supports 1.2 spec. - - -Installation ------------- - -### YAML module for node.js - -``` -npm install js-yaml -``` - - -### CLI executable - -If you want to inspect your YAML files from CLI, install js-yaml globally: - -``` -npm install -g js-yaml -``` - -#### Usage - -``` -usage: js-yaml [-h] [-v] [-c] [-t] file - -Positional arguments: - file File with YAML document(s) - -Optional arguments: - -h, --help Show this help message and exit. - -v, --version Show program's version number and exit. - -c, --compact Display errors in compact mode - -t, --trace Show stack trace on error -``` - - -API ---- - -Here we cover the most 'useful' methods. If you need advanced details (creating -your own tags), see [examples](https://github.com/nodeca/js-yaml/tree/master/examples) -for more info. - -``` javascript -const yaml = require('js-yaml'); -const fs = require('fs'); - -// Get document, or throw exception on error -try { - const doc = yaml.load(fs.readFileSync('/home/ixti/example.yml', 'utf8')); - console.log(doc); -} catch (e) { - console.log(e); -} -``` - - -### load (string [ , options ]) - -Parses `string` as single YAML document. Returns either a -plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does -not support regexps, functions and undefined. - -options: - -- `filename` _(default: null)_ - string to be used as a file path in - error/warning messages. -- `onWarning` _(default: null)_ - function to call on warning messages. - Loader will call this function with an instance of `YAMLException` for each warning. -- `schema` _(default: `DEFAULT_SCHEMA`)_ - specifies a schema to use. - - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects: - http://www.yaml.org/spec/1.2/spec.html#id2802346 - - `JSON_SCHEMA` - all JSON-supported types: - http://www.yaml.org/spec/1.2/spec.html#id2803231 - - `CORE_SCHEMA` - same as `JSON_SCHEMA`: - http://www.yaml.org/spec/1.2/spec.html#id2804923 - - `DEFAULT_SCHEMA` - all supported YAML types. -- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error. - -NOTE: This function **does not** understand multi-document sources, it throws -exception on those. - -NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions. -So, the JSON schema is not as strictly defined in the YAML specification. -It allows numbers in any notation, use `Null` and `NULL` as `null`, etc. -The core schema also has no such restrictions. It allows binary notation for integers. - - -### loadAll (string [, iterator] [, options ]) - -Same as `load()`, but understands multi-document sources. Applies -`iterator` to each document if specified, or returns array of documents. - -``` javascript -const yaml = require('js-yaml'); - -yaml.loadAll(data, function (doc) { - console.log(doc); -}); -``` - - -### dump (object [ , options ]) - -Serializes `object` as a YAML document. Uses `DEFAULT_SCHEMA`, so it will -throw an exception if you try to dump regexps or functions. However, you can -disable exceptions by setting the `skipInvalid` option to `true`. - -options: - -- `indent` _(default: 2)_ - indentation width to use (in spaces). -- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements -- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function - in the safe schema) and skip pairs and single values with such types. -- `flowLevel` _(default: -1)_ - specifies level of nesting, when to switch from - block to flow style for collections. -1 means block style everwhere -- `styles` - "tag" => "style" map. Each tag may have own set of styles. -- `schema` _(default: `DEFAULT_SCHEMA`)_ specifies a schema to use. -- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a - function, use the function to sort the keys. -- `lineWidth` _(default: `80`)_ - set max line width. Set `-1` for unlimited width. -- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references -- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older - yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 -- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded. -- `quotingType` _(`'` or `"`, default: `'`)_ - strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters. -- `forceQuotes` _(default: `false`)_ - if `true`, all non-key strings will be quoted even if they normally don't need to. -- `replacer` - callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`). - -The following table show availlable styles (e.g. "canonical", -"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml -output is shown on the right side after `=>` (default setting) or `->`: - -``` none -!!null - "canonical" -> "~" - "lowercase" => "null" - "uppercase" -> "NULL" - "camelcase" -> "Null" - -!!int - "binary" -> "0b1", "0b101010", "0b1110001111010" - "octal" -> "0o1", "0o52", "0o16172" - "decimal" => "1", "42", "7290" - "hexadecimal" -> "0x1", "0x2A", "0x1C7A" - -!!bool - "lowercase" => "true", "false" - "uppercase" -> "TRUE", "FALSE" - "camelcase" -> "True", "False" - -!!float - "lowercase" => ".nan", '.inf' - "uppercase" -> ".NAN", '.INF' - "camelcase" -> ".NaN", '.Inf' -``` - -Example: - -``` javascript -dump(object, { - 'styles': { - '!!null': 'canonical' // dump null as ~ - }, - 'sortKeys': true // sort object keys -}); -``` - -Supported YAML types --------------------- - -The list of standard YAML tags and corresponding JavaScript types. See also -[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and -[YAML types repository](http://yaml.org/type/). - -``` -!!null '' # null -!!bool 'yes' # bool -!!int '3...' # number -!!float '3.14...' # number -!!binary '...base64...' # buffer -!!timestamp 'YYYY-...' # date -!!omap [ ... ] # array of key-value pairs -!!pairs [ ... ] # array or array pairs -!!set { ... } # array of objects with given keys and null values -!!str '...' # string -!!seq [ ... ] # array -!!map { ... } # object -``` - -**JavaScript-specific tags** - -See [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) for -extra types. - - -Caveats -------- - -Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects -or arrays as keys, and stringifies (by calling `toString()` method) them at the -moment of adding them. - -``` yaml ---- -? [ foo, bar ] -: - baz -? { foo: bar } -: - baz - - baz -``` - -``` javascript -{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] } -``` - -Also, reading of properties on implicit block mapping keys is not supported yet. -So, the following YAML document cannot be loaded. - -``` yaml -&anchor foo: - foo: bar - *anchor: duplicate key - baz: bat - *anchor: duplicate key -``` - - -js-yaml for enterprise ----------------------- - -Available as part of the Tidelift Subscription - -The maintainers of js-yaml and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-js-yaml?utm_source=npm-js-yaml&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/graphql/node_modules/js-yaml/bin/js-yaml.js b/graphql/node_modules/js-yaml/bin/js-yaml.js deleted file mode 100755 index a182f1af..00000000 --- a/graphql/node_modules/js-yaml/bin/js-yaml.js +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env node - - -'use strict'; - -/*eslint-disable no-console*/ - - -var fs = require('fs'); -var argparse = require('argparse'); -var yaml = require('..'); - - -//////////////////////////////////////////////////////////////////////////////// - - -var cli = new argparse.ArgumentParser({ - prog: 'js-yaml', - add_help: true -}); - -cli.add_argument('-v', '--version', { - action: 'version', - version: require('../package.json').version -}); - -cli.add_argument('-c', '--compact', { - help: 'Display errors in compact mode', - action: 'store_true' -}); - -// deprecated (not needed after we removed output colors) -// option suppressed, but not completely removed for compatibility -cli.add_argument('-j', '--to-json', { - help: argparse.SUPPRESS, - dest: 'json', - action: 'store_true' -}); - -cli.add_argument('-t', '--trace', { - help: 'Show stack trace on error', - action: 'store_true' -}); - -cli.add_argument('file', { - help: 'File to read, utf-8 encoded without BOM', - nargs: '?', - default: '-' -}); - - -//////////////////////////////////////////////////////////////////////////////// - - -var options = cli.parse_args(); - - -//////////////////////////////////////////////////////////////////////////////// - -function readFile(filename, encoding, callback) { - if (options.file === '-') { - // read from stdin - - var chunks = []; - - process.stdin.on('data', function (chunk) { - chunks.push(chunk); - }); - - process.stdin.on('end', function () { - return callback(null, Buffer.concat(chunks).toString(encoding)); - }); - } else { - fs.readFile(filename, encoding, callback); - } -} - -readFile(options.file, 'utf8', function (error, input) { - var output, isYaml; - - if (error) { - if (error.code === 'ENOENT') { - console.error('File not found: ' + options.file); - process.exit(2); - } - - console.error( - options.trace && error.stack || - error.message || - String(error)); - - process.exit(1); - } - - try { - output = JSON.parse(input); - isYaml = false; - } catch (err) { - if (err instanceof SyntaxError) { - try { - output = []; - yaml.loadAll(input, function (doc) { output.push(doc); }, {}); - isYaml = true; - - if (output.length === 0) output = null; - else if (output.length === 1) output = output[0]; - - } catch (e) { - if (options.trace && err.stack) console.error(e.stack); - else console.error(e.toString(options.compact)); - - process.exit(1); - } - } else { - console.error( - options.trace && err.stack || - err.message || - String(err)); - - process.exit(1); - } - } - - if (isYaml) console.log(JSON.stringify(output, null, ' ')); - else console.log(yaml.dump(output)); -}); diff --git a/graphql/node_modules/js-yaml/dist/js-yaml.js b/graphql/node_modules/js-yaml/dist/js-yaml.js deleted file mode 100644 index 4cc0ddf6..00000000 --- a/graphql/node_modules/js-yaml/dist/js-yaml.js +++ /dev/null @@ -1,3874 +0,0 @@ - -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {})); -}(this, (function (exports) { 'use strict'; - - function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); - } - - - function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); - } - - - function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; - } - - - function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; - } - - - function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; - } - - - function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); - } - - - var isNothing_1 = isNothing; - var isObject_1 = isObject; - var toArray_1 = toArray; - var repeat_1 = repeat; - var isNegativeZero_1 = isNegativeZero; - var extend_1 = extend; - - var common = { - isNothing: isNothing_1, - isObject: isObject_1, - toArray: toArray_1, - repeat: repeat_1, - isNegativeZero: isNegativeZero_1, - extend: extend_1 - }; - - // YAML error class. http://stackoverflow.com/questions/8458984 - - - function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; - } - - - function YAMLException$1(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } - } - - - // Inherit from Error - YAMLException$1.prototype = Object.create(Error.prototype); - YAMLException$1.prototype.constructor = YAMLException$1; - - - YAMLException$1.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); - }; - - - var exception = YAMLException$1; - - // get snippet for a single line, respecting maxLength - function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; - } - - - function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; - } - - - function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); - } - - - var snippet = makeSnippet; - - var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' - ]; - - var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' - ]; - - function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; - } - - function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } - } - - var type = Type$1; - - /*eslint-disable max-len*/ - - - - - - function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; - } - - - function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; - } - - - function Schema$1(definition) { - return this.extend(definition); - } - - - Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; - }; - - - var schema = Schema$1; - - var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } - }); - - var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } - }); - - var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } - }); - - var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] - }); - - function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); - } - - function constructYamlNull() { - return null; - } - - function isNull(object) { - return object === null; - } - - var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' - }); - - function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); - } - - function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; - } - - function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; - } - - var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' - }); - - function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); - } - - function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); - } - - function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); - } - - function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; - } - - function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); - } - - function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); - } - - var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } - }); - - var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - - function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; - } - - function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); - } - - - var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - - function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; - } - - function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); - } - - var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' - }); - - var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] - }); - - var core = json; - - var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - - var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - - function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; - } - - function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; - } - - function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); - } - - var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp - }); - - function resolveYamlMerge(data) { - return data === '<<' || data === null; - } - - var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge - }); - - /*eslint-disable no-bitwise*/ - - - - - - // [ 64, 65, 66 ] -> [ padding, CR, LF ] - var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - - function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; - } - - function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); - } - - function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; - } - - function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; - } - - var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary - }); - - var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; - var _toString$2 = Object.prototype.toString; - - function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; - } - - function constructYamlOmap(data) { - return data !== null ? data : []; - } - - var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap - }); - - var _toString$1 = Object.prototype.toString; - - function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; - } - - function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; - } - - var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs - }); - - var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - - function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; - } - - function constructYamlSet(data) { - return data !== null ? data : {}; - } - - var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet - }); - - var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] - }); - - /*eslint-disable max-len,no-use-before-define*/ - - - - - - - - var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - - var CONTEXT_FLOW_IN = 1; - var CONTEXT_FLOW_OUT = 2; - var CONTEXT_BLOCK_IN = 3; - var CONTEXT_BLOCK_OUT = 4; - - - var CHOMPING_CLIP = 1; - var CHOMPING_STRIP = 2; - var CHOMPING_KEEP = 3; - - - var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; - var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; - var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; - var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; - var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - - function _class(obj) { return Object.prototype.toString.call(obj); } - - function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); - } - - function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); - } - - function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); - } - - function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; - } - - function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; - } - - function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; - } - - function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; - } - - function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; - } - - function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); - } - - var simpleEscapeCheck = new Array(256); // integer, for fast access - var simpleEscapeMap = new Array(256); - for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); - } - - - function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - - } - - - function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); - } - - function throwError(state, message) { - throw generateError(state, message); - } - - function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } - } - - - var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } - }; - - - function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } - } - - function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } - } - - function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; - } - - function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; - } - - function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; - } - - function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; - } - - function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } - } - - - function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; - } - - function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); - } - - function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); - } - - function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); - } - - function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; - } - - function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; - } - - function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; - } - - function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; - } - - function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; - } - - function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; - } - - function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; - } - - function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } - } - - - function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; - } - - - function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } - } - - - function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); - } - - - var loadAll_1 = loadAll$1; - var load_1 = load$1; - - var loader = { - loadAll: loadAll_1, - load: load_1 - }; - - /*eslint-disable no-use-before-define*/ - - - - - - var _toString = Object.prototype.toString; - var _hasOwnProperty = Object.prototype.hasOwnProperty; - - var CHAR_BOM = 0xFEFF; - var CHAR_TAB = 0x09; /* Tab */ - var CHAR_LINE_FEED = 0x0A; /* LF */ - var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ - var CHAR_SPACE = 0x20; /* Space */ - var CHAR_EXCLAMATION = 0x21; /* ! */ - var CHAR_DOUBLE_QUOTE = 0x22; /* " */ - var CHAR_SHARP = 0x23; /* # */ - var CHAR_PERCENT = 0x25; /* % */ - var CHAR_AMPERSAND = 0x26; /* & */ - var CHAR_SINGLE_QUOTE = 0x27; /* ' */ - var CHAR_ASTERISK = 0x2A; /* * */ - var CHAR_COMMA = 0x2C; /* , */ - var CHAR_MINUS = 0x2D; /* - */ - var CHAR_COLON = 0x3A; /* : */ - var CHAR_EQUALS = 0x3D; /* = */ - var CHAR_GREATER_THAN = 0x3E; /* > */ - var CHAR_QUESTION = 0x3F; /* ? */ - var CHAR_COMMERCIAL_AT = 0x40; /* @ */ - var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ - var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ - var CHAR_GRAVE_ACCENT = 0x60; /* ` */ - var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ - var CHAR_VERTICAL_LINE = 0x7C; /* | */ - var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - - var ESCAPE_SEQUENCES = {}; - - ESCAPE_SEQUENCES[0x00] = '\\0'; - ESCAPE_SEQUENCES[0x07] = '\\a'; - ESCAPE_SEQUENCES[0x08] = '\\b'; - ESCAPE_SEQUENCES[0x09] = '\\t'; - ESCAPE_SEQUENCES[0x0A] = '\\n'; - ESCAPE_SEQUENCES[0x0B] = '\\v'; - ESCAPE_SEQUENCES[0x0C] = '\\f'; - ESCAPE_SEQUENCES[0x0D] = '\\r'; - ESCAPE_SEQUENCES[0x1B] = '\\e'; - ESCAPE_SEQUENCES[0x22] = '\\"'; - ESCAPE_SEQUENCES[0x5C] = '\\\\'; - ESCAPE_SEQUENCES[0x85] = '\\N'; - ESCAPE_SEQUENCES[0xA0] = '\\_'; - ESCAPE_SEQUENCES[0x2028] = '\\L'; - ESCAPE_SEQUENCES[0x2029] = '\\P'; - - var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' - ]; - - var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - - function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; - } - - function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; - } - - - var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - - function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; - } - - // Indents every line in a string. Empty lines (\n only) are not indented. - function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; - } - - function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); - } - - function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; - } - - // [33] s-white ::= s-space | s-tab - function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; - } - - // Returns true if the character can be printed without escaping. - // From YAML 1.2: "any allowed characters known to be non-printable - // should also be escaped. [However,] This isn’t mandatory" - // Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. - function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); - } - - // [34] ns-char ::= nb-char - s-white - // [27] nb-char ::= c-printable - b-char - c-byte-order-mark - // [26] b-char ::= b-line-feed | b-carriage-return - // Including s-white (for some reason, examples doesn't match specs in this aspect) - // ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark - function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; - } - - // [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out - // c = flow-in ⇒ ns-plain-safe-in - // c = block-key ⇒ ns-plain-safe-out - // c = flow-key ⇒ ns-plain-safe-in - // [128] ns-plain-safe-out ::= ns-char - // [129] ns-plain-safe-in ::= ns-char - c-flow-indicator - // [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) - // | ( /* An ns-char preceding */ “#” ) - // | ( “:” /* Followed by an ns-plain-safe(c) */ ) - function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' - } - - // Simplified test for values allowed as the first character in plain style. - function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; - } - - // Simplified test for values allowed as the last character in plain style. - function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; - } - - // Same as 'string'.codePointAt(pos), but works in older browsers. - function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; - } - - // Determines whether block indentation indicator is required. - function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); - } - - var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - - // Determines which scalar styles are possible and returns the preferred style. - // lineWidth = -1 => no limit. - // Pre-conditions: str.length > 0. - // Post-conditions: - // STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. - // STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). - // STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). - function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - - // Note: line breaking/folding is implemented for only the folded style. - // NB. We drop the last trailing newline (if any) of a returned block scalar - // since the dumper adds its own newline. This always works: - // • No ending newline => unaffected; already using strip "-" chomping. - // • Ending newline => removed then restored. - // Importantly, this keeps the "+" chomp indicator from gaining an extra line. - function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); - } - - // Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. - function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; - } - - // (See the note for writeScalar.) - function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; - } - - // Note: a long line without a suitable break point will exceed the width limit. - // Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. - function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; - } - - // Greedy line breaking. - // Picks the longest line under the limit each time, - // otherwise settles for the shortest line over the limit. - // NB. More-indented lines *cannot* be folded, as that would add an extra \n. - function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner - } - - // Escapes a double-quoted string. - function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; - } - - function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; - } - - function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. - } - - function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; - } - - function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. - } - - function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; - } - - // Serializes `object` and writes it to global `result`. - // Returns true on success, or false on invalid object. - // - function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; - } - - function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); - } - - function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } - } - - function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; - } - - var dump_1 = dump$1; - - var dumper = { - dump: dump_1 - }; - - function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; - } - - - var Type = type; - var Schema = schema; - var FAILSAFE_SCHEMA = failsafe; - var JSON_SCHEMA = json; - var CORE_SCHEMA = core; - var DEFAULT_SCHEMA = _default; - var load = loader.load; - var loadAll = loader.loadAll; - var dump = dumper.dump; - var YAMLException = exception; - - // Re-export all types in case user wants to create custom schema - var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str - }; - - // Removed functions from JS-YAML 3.0.x - var safeLoad = renamed('safeLoad', 'load'); - var safeLoadAll = renamed('safeLoadAll', 'loadAll'); - var safeDump = renamed('safeDump', 'dump'); - - var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump - }; - - exports.CORE_SCHEMA = CORE_SCHEMA; - exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA; - exports.FAILSAFE_SCHEMA = FAILSAFE_SCHEMA; - exports.JSON_SCHEMA = JSON_SCHEMA; - exports.Schema = Schema; - exports.Type = Type; - exports.YAMLException = YAMLException; - exports.default = jsYaml; - exports.dump = dump; - exports.load = load; - exports.loadAll = loadAll; - exports.safeDump = safeDump; - exports.safeLoad = safeLoad; - exports.safeLoadAll = safeLoadAll; - exports.types = types; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/graphql/node_modules/js-yaml/dist/js-yaml.min.js b/graphql/node_modules/js-yaml/dist/js-yaml.min.js deleted file mode 100644 index bdd8eef5..00000000 --- a/graphql/node_modules/js-yaml/dist/js-yaml.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsyaml={})}(this,(function(e){"use strict";function t(e){return null==e}var n={isNothing:t,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:t(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;nl&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return n.repeat(" ",t-e.length)+e}var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var u,p,f="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)p=a(e.buffer,o[s-u],c[s-u],e.position-(o[s]-o[s-u]),h),f=n.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,o[s],c[s],e.position,h),f+=n.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n",f+=n.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(s+u>=c.length);u++)p=a(e.buffer,o[s+u],c[s+u],e.position-(o[s]-o[s+u]),h),f+=n.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"];var p=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var I=/^[-+]?[0-9]+e/;var S=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!x.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return i=e.toString(10),I.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),O=b.extend({implicit:[A,v,C,S]}),j=O,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var F=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==T.exec(e)||null!==N.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=T.exec(e))&&(t=N.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var E=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var L=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=M;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,l=[];for(t=0;t>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=M;for(t=0;t>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),_=Object.prototype.hasOwnProperty,D=Object.prototype.toString;var U=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t>10),56320+(e-65536&1023))}for(var ie=new Array(256),re=new Array(256),oe=0;oe<256;oe++)ie[oe]=te(oe)?1:0,re[oe]=te(oe);function ae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function ce(e,t){throw le(e,t)}function se(e,t){e.onWarning&&e.onWarning.call(null,le(e,t))}var ue={YAML:function(e,t,n){var i,r,o;null!==e.version&&ce(e,"duplication of %YAML directive"),1!==n.length&&ce(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ce(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&ce(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&se(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&ce(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],G.test(i)||ce(e,"ill-formed tag handle (first argument) of the TAG directive"),P.call(e.tagMap,i)&&ce(e,'there is a previously declared suffix for "'+i+'" tag handle'),V.test(r)||ce(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){ce(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function pe(e,t,n,i){var r,o,a,l;if(t1&&(e.result+=n.repeat("\n",t-1))}function be(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),45===i)&&z(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,ge(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,we(e,t,3,!1,!0),a.push(e.result),ge(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)ce(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(y&&(a=e.line,l=e.lineStart,c=e.position),we(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(de(e,f,d,h,g,m,a,l,c),h=g=m=null),ge(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ce(e,"repeat of an indentation width identifier"):(p=t+o-1,u=!0)}if(Q(a)){do{a=e.input.charCodeAt(++e.position)}while(Q(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!J(a)&&0!==a)}for(;0!==a;){for(he(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndentp&&(p=e.lineIndent),J(a))f++;else{if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=ee(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ce(e,"expected hexadecimal character");e.result+=ne(o),e.position++}else ce(e,"unknown escape sequence");n=i=e.position}else J(l)?(pe(e,n,i,!0),ye(e,ge(e,!1,t)),n=i=e.position):e.position===e.lineStart&&me(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!z(i)&&!X(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ce(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ge(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(z(u=e.input.charCodeAt(e.position))||X(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(z(i=e.input.charCodeAt(e.position+1))||n&&X(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(z(i=e.input.charCodeAt(e.position+1))||n&&X(i))break}else if(35===u){if(z(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&me(e)||n&&X(u))break;if(J(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,ge(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(pe(e,r,o,!1),ye(e,e.line-l),r=o=e.position,a=!1),Q(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return pe(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||ce(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&be(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ce(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s"),null!==e.result&&f.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function ke(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(ge(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&ce(e,"directive name must not be less than one character in length");0!==r;){for(;Q(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!J(r));break}if(J(r))break;for(t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&he(e),P.call(ue,n)?ue[n](e,n,i):se(e,'unknown document directive "'+n+'"')}ge(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ge(e,!0,-1)):a&&ce(e,"directives end mark is expected"),we(e,e.lineIndent-1,4,!1,!0),ge(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(o,e.position))&&se(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&me(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ge(e,!0,-1)):e.position=55296&&i<=56319&&t+1=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Re(e){return/^\n* /.test(e)}function Be(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=De(s=Ye(e,0))&&s!==Oe&&!_e(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!_e(e)&&58!==e}(Ye(e,e.length-1));if(t||a)for(c=0;c=65536?c+=2:c++){if(!De(u=Ye(e,c)))return 5;m=m&&qe(u,p,l),p=u}else{for(c=0;c=65536?c+=2:c++){if(10===(u=Ye(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!De(u))return 5;m=m&&qe(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&Re(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function Ke(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Te.indexOf(t)||Ne.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Be(t,c,e.indent,l,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Pe(t,e.indent)+We(Me(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,He(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+He(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r=65536?r+=2:r++)i=Ye(e,r),!(t=je[i])&&De(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Fe(i);return n}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Pe(e,t){var n=Re(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function We(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function He(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function $e(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function Ve(e,t,n,i,r,a,l){e.tag=null,e.dump=n,Ge(e,n,!1)||Ge(e,n,!0);var c,s=Ie.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=Le(e,t)),Ve(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ve(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?$e(e,t-1,e.dump,r):$e(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i",e.dump=c+" "+e.dump)}return!0}function Ze(e,t){var n,i,r=[],o=[];for(Je(e,r,o),n=0,i=o.length;n maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -var snippet = makeSnippet; - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type$1(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -var type = Type$1; - -/*eslint-disable max-len*/ - - - - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema$1(definition) { - return this.extend(definition); -} - - -Schema$1.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new exception('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type$1.loadKind && type$1.loadKind !== 'scalar') { - throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type$1.multi) { - throw new exception('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type$1) { - if (!(type$1 instanceof type)) { - throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema$1.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -var schema = Schema$1; - -var str = new type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); - -var seq = new type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); - -var map = new type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); - -var failsafe = new schema({ - explicit: [ - str, - seq, - map - ] -}); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -var _null = new type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -var bool = new type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -var int = new type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -var float = new type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); - -var json = failsafe.extend({ - implicit: [ - _null, - bool, - int, - float - ] -}); - -var core = json; - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -var timestamp = new type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -var merge = new type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); - -/*eslint-disable no-bitwise*/ - - - - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -var binary = new type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); - -var _hasOwnProperty$3 = Object.prototype.hasOwnProperty; -var _toString$2 = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString$2.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty$3.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -var omap = new type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); - -var _toString$1 = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString$1.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -var pairs = new type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); - -var _hasOwnProperty$2 = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty$2.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -var set = new type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); - -var _default = core.extend({ - implicit: [ - timestamp, - merge - ], - explicit: [ - binary, - omap, - pairs, - set - ] -}); - -/*eslint-disable max-len,no-use-before-define*/ - - - - - - - -var _hasOwnProperty$1 = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State$1(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || _default; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = snippet(mark); - - return new exception(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty$1.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty$1.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty$1.call(overridableKeys, keyNode) && - _hasOwnProperty$1.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty$1.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty$1.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State$1(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll$1(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load$1(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new exception('expected a single document in the stream, but found more'); -} - - -var loadAll_1 = loadAll$1; -var load_1 = load$1; - -var loader = { - loadAll: loadAll_1, - load: load_1 -}; - -/*eslint-disable no-use-before-define*/ - - - - - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new exception('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || _default; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string) + '"'; - default: - throw new exception('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new exception('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new exception('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump$1(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -var dump_1 = dump$1; - -var dumper = { - dump: dump_1 -}; - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -var Type = type; -var Schema = schema; -var FAILSAFE_SCHEMA = failsafe; -var JSON_SCHEMA = json; -var CORE_SCHEMA = core; -var DEFAULT_SCHEMA = _default; -var load = loader.load; -var loadAll = loader.loadAll; -var dump = dumper.dump; -var YAMLException = exception; - -// Re-export all types in case user wants to create custom schema -var types = { - binary: binary, - float: float, - map: map, - null: _null, - pairs: pairs, - set: set, - timestamp: timestamp, - bool: bool, - int: int, - merge: merge, - omap: omap, - seq: seq, - str: str -}; - -// Removed functions from JS-YAML 3.0.x -var safeLoad = renamed('safeLoad', 'load'); -var safeLoadAll = renamed('safeLoadAll', 'loadAll'); -var safeDump = renamed('safeDump', 'dump'); - -var jsYaml = { - Type: Type, - Schema: Schema, - FAILSAFE_SCHEMA: FAILSAFE_SCHEMA, - JSON_SCHEMA: JSON_SCHEMA, - CORE_SCHEMA: CORE_SCHEMA, - DEFAULT_SCHEMA: DEFAULT_SCHEMA, - load: load, - loadAll: loadAll, - dump: dump, - YAMLException: YAMLException, - types: types, - safeLoad: safeLoad, - safeLoadAll: safeLoadAll, - safeDump: safeDump -}; - -export default jsYaml; -export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types }; diff --git a/graphql/node_modules/js-yaml/index.js b/graphql/node_modules/js-yaml/index.js deleted file mode 100644 index bcb7eba7..00000000 --- a/graphql/node_modules/js-yaml/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - - -var loader = require('./lib/loader'); -var dumper = require('./lib/dumper'); - - -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} - - -module.exports.Type = require('./lib/type'); -module.exports.Schema = require('./lib/schema'); -module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe'); -module.exports.JSON_SCHEMA = require('./lib/schema/json'); -module.exports.CORE_SCHEMA = require('./lib/schema/core'); -module.exports.DEFAULT_SCHEMA = require('./lib/schema/default'); -module.exports.load = loader.load; -module.exports.loadAll = loader.loadAll; -module.exports.dump = dumper.dump; -module.exports.YAMLException = require('./lib/exception'); - -// Re-export all types in case user wants to create custom schema -module.exports.types = { - binary: require('./lib/type/binary'), - float: require('./lib/type/float'), - map: require('./lib/type/map'), - null: require('./lib/type/null'), - pairs: require('./lib/type/pairs'), - set: require('./lib/type/set'), - timestamp: require('./lib/type/timestamp'), - bool: require('./lib/type/bool'), - int: require('./lib/type/int'), - merge: require('./lib/type/merge'), - omap: require('./lib/type/omap'), - seq: require('./lib/type/seq'), - str: require('./lib/type/str') -}; - -// Removed functions from JS-YAML 3.0.x -module.exports.safeLoad = renamed('safeLoad', 'load'); -module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); -module.exports.safeDump = renamed('safeDump', 'dump'); diff --git a/graphql/node_modules/js-yaml/lib/common.js b/graphql/node_modules/js-yaml/lib/common.js deleted file mode 100644 index 25ef7d8e..00000000 --- a/graphql/node_modules/js-yaml/lib/common.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - - -function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); -} - - -function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); -} - - -function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; - - return [ sequence ]; -} - - -function extend(target, source) { - var index, length, key, sourceKeys; - - if (source) { - sourceKeys = Object.keys(source); - - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } - } - - return target; -} - - -function repeat(string, count) { - var result = '', cycle; - - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } - - return result; -} - - -function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); -} - - -module.exports.isNothing = isNothing; -module.exports.isObject = isObject; -module.exports.toArray = toArray; -module.exports.repeat = repeat; -module.exports.isNegativeZero = isNegativeZero; -module.exports.extend = extend; diff --git a/graphql/node_modules/js-yaml/lib/dumper.js b/graphql/node_modules/js-yaml/lib/dumper.js deleted file mode 100644 index f357a6ae..00000000 --- a/graphql/node_modules/js-yaml/lib/dumper.js +++ /dev/null @@ -1,965 +0,0 @@ -'use strict'; - -/*eslint-disable no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var DEFAULT_SCHEMA = require('./schema/default'); - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; - -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; - - if (map === null) return {}; - - result = {}; - keys = Object.keys(map); - - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); - - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; - - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } - - result[tag] = style; - } - - return result; -} - -function encodeHex(character) { - var string, handle, length; - - string = character.toString(16).toUpperCase(); - - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); - } - - return '\\' + handle + common.repeat('0', length - string.length) + string; -} - - -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; - -function State(options) { - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; - - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; - - this.tag = null; - this.result = ''; - - this.duplicates = []; - this.usedDuplicates = null; -} - -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } - - if (line.length && line !== '\n') result += ind; - - result += line; - } - - return result; -} - -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} - -function testImplicitResolving(state, str) { - var index, length, type; - - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; - - if (type.resolve(str)) { - return true; - } - } - - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} - -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} - -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} - -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} - -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} - -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} - -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} - -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} - -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; - -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { - - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); - - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; - } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} - -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } - - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); - - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } - - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { - - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string, lineWidth) + '"'; - default: - throw new YAMLException('impossible error: invalid scalar style'); - } - }()); -} - -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; - - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); - - return indentIndicator + chomp + '\n'; -} - -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} - -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; - - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; - - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } - - return result; -} - -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; - - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; - - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 - } - curr = next; - } - - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } - - return result.slice(1); // drop extra \n joiner -} - -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; - - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; - - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } - - return result; -} - -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { - - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = '[' + _result + ']'; -} - -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; - - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; - - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } - - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { - - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } - - _result += state.dump; - } - } - - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} - -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; - - if (state.condenseFlow) pairBuffer += '"'; - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } - - if (state.dump.length > 1024) pairBuffer += '? '; - - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); - - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = '{' + _result + '}'; -} - -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; - - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new YAMLException('sortKeys must be a boolean or a function'); - } - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; - - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } - - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; - - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } - - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } - - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } - } - - pairBuffer += state.dump; - - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } - - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } - - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } - - pairBuffer += state.dump; - - // Both key and value are valid. - _result += pairBuffer; - } - - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} - -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; - - typeList = explicit ? state.explicitTypes : state.implicitTypes; - - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; - - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { - - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; - } - } else { - state.tag = '?'; - } - - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; - - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); - } - - state.dump = _result; - } - - return true; - } - } - - return false; -} - -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; - - if (!detectType(state, object, false)) { - detectType(state, object, true); - } - - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; - - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } - - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; - - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } - - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } - - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); - } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; - } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; - } - } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new YAMLException('unacceptable kind of an object to dump ' + type); - } - - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); - - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - - state.dump = tagStr + ' ' + state.dump; - } - } - - return true; -} - -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; - - inspectNode(object, objects, duplicatesIndexes); - - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} - -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; - - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); - - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); - - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} - -function dump(input, options) { - options = options || {}; - - var state = new State(options); - - if (!state.noRefs) getDuplicateReferences(input, state); - - var value = input; - - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } - - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; - - return ''; -} - -module.exports.dump = dump; diff --git a/graphql/node_modules/js-yaml/lib/exception.js b/graphql/node_modules/js-yaml/lib/exception.js deleted file mode 100644 index 7f62daae..00000000 --- a/graphql/node_modules/js-yaml/lib/exception.js +++ /dev/null @@ -1,55 +0,0 @@ -// YAML error class. http://stackoverflow.com/questions/8458984 -// -'use strict'; - - -function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; - - if (!exception.mark) return message; - - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } - - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; - - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } - - return message + ' ' + where; -} - - -function YAMLException(reason, mark) { - // Super constructor - Error.call(this); - - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } -} - - -// Inherit from Error -YAMLException.prototype = Object.create(Error.prototype); -YAMLException.prototype.constructor = YAMLException; - - -YAMLException.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); -}; - - -module.exports = YAMLException; diff --git a/graphql/node_modules/js-yaml/lib/loader.js b/graphql/node_modules/js-yaml/lib/loader.js deleted file mode 100644 index 39f13f56..00000000 --- a/graphql/node_modules/js-yaml/lib/loader.js +++ /dev/null @@ -1,1727 +0,0 @@ -'use strict'; - -/*eslint-disable max-len,no-use-before-define*/ - -var common = require('./common'); -var YAMLException = require('./exception'); -var makeSnippet = require('./snippet'); -var DEFAULT_SCHEMA = require('./schema/default'); - - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - - -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; - - -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; - - -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; - - -function _class(obj) { return Object.prototype.toString.call(obj); } - -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} - -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} - -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} - -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} - -function fromHexCode(c) { - var lc; - - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - /*eslint-disable no-bitwise*/ - lc = c | 0x20; - - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } - - return -1; -} - -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} - -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } - - return -1; -} - -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} - -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} - - -function State(input, options) { - this.input = input; - - this.filename = options['filename'] || null; - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; - - this.json = options['json'] || false; - this.listener = options['listener'] || null; - - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; - - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; - - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; - - this.documents = []; - - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ - -} - - -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; - - mark.snippet = makeSnippet(mark); - - return new YAMLException(message, mark); -} - -function throwError(state, message) { - throw generateError(state, message); -} - -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} - - -var directiveHandlers = { - - YAML: function handleYamlDirective(state, name, args) { - - var match, major, minor; - - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } - - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } - - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); - - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } - - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); - - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } - - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); - } - }, - - TAG: function handleTagDirective(state, name, args) { - - var handle, prefix; - - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } - - handle = args[0]; - prefix = args[1]; - - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } - - if (_hasOwnProperty.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } - - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } - - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } - - state.tagMap[handle] = prefix; - } -}; - - -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; - - if (start < end) { - _result = state.input.slice(start, end); - - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); - } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - - state.result += _result; - } -} - -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; - - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } - - sourceKeys = Object.keys(source); - - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; - - if (!_hasOwnProperty.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} - -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { - - var index, quantity; - - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); - - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } - - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } - - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } - - - keyNode = String(keyNode); - - if (_result === null) { - _result = {}; - } - - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); - } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty.call(overridableKeys, keyNode) && - _hasOwnProperty.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; - } - delete overridableKeys[keyNode]; - } - - return _result; -} - -function readLineBreak(state) { - var ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } - - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} - -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } - - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } - - if (is_EOL(ch)) { - readLineBreak(state); - - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; - - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } - - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } - - return lineBreaks; -} - -function testDocumentSeparator(state) { - var _position = state.position, - ch; - - ch = state.input.charCodeAt(_position); - - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { - - _position += 3; - - ch = state.input.charCodeAt(_position); - - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } - - return false; -} - -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } - - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } - - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; - - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } - - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); - - if (is_WS_OR_EOL(preceding)) { - break; - } - - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; - - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); - - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } - - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } - - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } - - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, captureEnd, false); - - if (state.result) { - return true; - } - - state.kind = _kind; - state.result = _result; - return false; -} - -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x27/* ' */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} - -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x22/* " */) { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; - - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); - - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); - - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; - - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; - - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); - - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; - - } else { - throwError(state, 'expected hexadecimal character'); - } - } - - state.result += charFromCodepoint(hexResult); - - state.position++; - - } else { - throwError(state, 'unknown escape sequence'); - } - - captureStart = captureEnd = state.position; - - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; - - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - - } else { - state.position++; - captureEnd = state.position; - } - } - - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} - -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(++state.position); - - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } - - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; - - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); - - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } - - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } - - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } - - skipSeparationSpace(state, true, nodeIndent); - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } - - throwError(state, 'unexpected end of the stream within a flow collection'); -} - -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } - - state.kind = 'scalar'; - state.result = ''; - - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } - - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } - - } else { - break; - } - } - - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); - } - } - - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; - - ch = state.input.charCodeAt(state.position); - - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } - - if (is_EOL(ch)) { - emptyLines++; - continue; - } - - // End of the scalar. - if (state.lineIndent < textIndent) { - - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; - } - } - - // Break this `while` cycle and go to the funciton's epilogue. - break; - } - - // Folded style: use fancy rules to handle line breaks. - if (folding) { - - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); - - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; - } - - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } - - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } - - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; - - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } - - captureSegment(state, captureStart, state.position, false); - } - - return true; -} - -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - if (ch !== 0x2D/* - */) { - break; - } - - following = state.input.charCodeAt(state.position + 1); - - if (!is_WS_OR_EOL(following)) { - break; - } - - detected = true; - state.position++; - - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } - - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} - -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; - - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } - - ch = state.input.charCodeAt(state.position); - - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } - - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. - - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { - - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = true; - allowCompact = true; - - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; - - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } - - state.position += 1; - ch = following; - - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } - - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); - - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); - - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; - - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); - - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } - - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } - - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } - - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); - } - - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } - - // - // Epilogue. - // - - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } - - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } - - return detected; -} - -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x21/* ! */) return false; - - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } - - ch = state.input.charCodeAt(++state.position); - - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); - - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); - - } else { - tagHandle = '!'; - } - - _position = state.position; - - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); - - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); - - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } - - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); - } - } - - ch = state.input.charCodeAt(++state.position); - } - - tagName = state.input.slice(_position, state.position); - - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } - - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } - - if (isVerbatim) { - state.tag = tagName; - - } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; - - } else if (tagHandle === '!') { - state.tag = '!' + tagName; - - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; - - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } - - return true; -} - -function readAnchorProperty(state) { - var _position, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x26/* & */) return false; - - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } - - state.anchor = state.input.slice(_position, state.position); - return true; -} - -function readAlias(state) { - var _position, alias, - ch; - - ch = state.input.charCodeAt(state.position); - - if (ch !== 0x2A/* * */) return false; - - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } - - alias = state.input.slice(_position, state.position); - - if (!_hasOwnProperty.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } - - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} - -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } - } - - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } - } - } - - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } - - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } - - blockIndent = state.position - state.lineStart; - - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; - - } else if (readAlias(state)) { - hasContent = true; - - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } - - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; - - if (state.tag === null) { - state.tag = '?'; - } - } - - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } - - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; - - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; - } - } - } - - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } - - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } - - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } - - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} - -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; - - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); - - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); - - ch = state.input.charCodeAt(state.position); - - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } - - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; - - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } - - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } - - if (is_EOL(ch)) break; - - _position = state.position; - - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } - - directiveArgs.push(state.input.slice(_position, state.position)); - } - - if (ch !== 0) readLineBreak(state); - - if (_hasOwnProperty.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - - skipSeparationSpace(state, true, -1); - - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } - - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); - - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } - - state.documents.push(state.result); - - if (state.position === state.lineStart && testDocumentSeparator(state)) { - - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } - - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} - - -function loadDocuments(input, options) { - input = String(input); - options = options || {}; - - if (input.length !== 0) { - - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } - - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } - - var state = new State(input, options); - - var nullpos = input.indexOf('\0'); - - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } - - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; - - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } - - while (state.position < (state.length - 1)) { - readDocument(state); - } - - return state.documents; -} - - -function loadAll(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } - - var documents = loadDocuments(input, options); - - if (typeof iterator !== 'function') { - return documents; - } - - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} - - -function load(input, options) { - var documents = loadDocuments(input, options); - - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new YAMLException('expected a single document in the stream, but found more'); -} - - -module.exports.loadAll = loadAll; -module.exports.load = load; diff --git a/graphql/node_modules/js-yaml/lib/schema.js b/graphql/node_modules/js-yaml/lib/schema.js deleted file mode 100644 index 65b41f40..00000000 --- a/graphql/node_modules/js-yaml/lib/schema.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -/*eslint-disable max-len*/ - -var YAMLException = require('./exception'); -var Type = require('./type'); - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { - - newIndex = previousIndex; - } - }); - - result[newIndex] = currentType; - }); - - return result; -} - - -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; - - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } - - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); - } - return result; -} - - -function Schema(definition) { - return this.extend(definition); -} - - -Schema.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; - - if (definition instanceof Type) { - // Schema.extend(type) - explicit.push(definition); - - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); - - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); - - } else { - throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } - - implicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - - if (type.loadKind && type.loadKind !== 'scalar') { - throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } - - if (type.multi) { - throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); - - explicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); - - var result = Object.create(Schema.prototype); - - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); - - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); - - return result; -}; - - -module.exports = Schema; diff --git a/graphql/node_modules/js-yaml/lib/schema/core.js b/graphql/node_modules/js-yaml/lib/schema/core.js deleted file mode 100644 index 608b26de..00000000 --- a/graphql/node_modules/js-yaml/lib/schema/core.js +++ /dev/null @@ -1,11 +0,0 @@ -// Standard YAML's Core schema. -// http://www.yaml.org/spec/1.2/spec.html#id2804923 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, Core schema has no distinctions from JSON schema is JS-YAML. - - -'use strict'; - - -module.exports = require('./json'); diff --git a/graphql/node_modules/js-yaml/lib/schema/default.js b/graphql/node_modules/js-yaml/lib/schema/default.js deleted file mode 100644 index 3af0520d..00000000 --- a/graphql/node_modules/js-yaml/lib/schema/default.js +++ /dev/null @@ -1,22 +0,0 @@ -// JS-YAML's default schema for `safeLoad` function. -// It is not described in the YAML specification. -// -// This schema is based on standard YAML's Core schema and includes most of -// extra types described at YAML tag repository. (http://yaml.org/type/) - - -'use strict'; - - -module.exports = require('./core').extend({ - implicit: [ - require('../type/timestamp'), - require('../type/merge') - ], - explicit: [ - require('../type/binary'), - require('../type/omap'), - require('../type/pairs'), - require('../type/set') - ] -}); diff --git a/graphql/node_modules/js-yaml/lib/schema/failsafe.js b/graphql/node_modules/js-yaml/lib/schema/failsafe.js deleted file mode 100644 index b7a33eb7..00000000 --- a/graphql/node_modules/js-yaml/lib/schema/failsafe.js +++ /dev/null @@ -1,17 +0,0 @@ -// Standard YAML's Failsafe schema. -// http://www.yaml.org/spec/1.2/spec.html#id2802346 - - -'use strict'; - - -var Schema = require('../schema'); - - -module.exports = new Schema({ - explicit: [ - require('../type/str'), - require('../type/seq'), - require('../type/map') - ] -}); diff --git a/graphql/node_modules/js-yaml/lib/schema/json.js b/graphql/node_modules/js-yaml/lib/schema/json.js deleted file mode 100644 index b73df78e..00000000 --- a/graphql/node_modules/js-yaml/lib/schema/json.js +++ /dev/null @@ -1,19 +0,0 @@ -// Standard YAML's JSON schema. -// http://www.yaml.org/spec/1.2/spec.html#id2803231 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. - - -'use strict'; - - -module.exports = require('./failsafe').extend({ - implicit: [ - require('../type/null'), - require('../type/bool'), - require('../type/int'), - require('../type/float') - ] -}); diff --git a/graphql/node_modules/js-yaml/lib/snippet.js b/graphql/node_modules/js-yaml/lib/snippet.js deleted file mode 100644 index 00e2133c..00000000 --- a/graphql/node_modules/js-yaml/lib/snippet.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - - -var common = require('./common'); - - -// get snippet for a single line, respecting maxLength -function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; - - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } - - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } - - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} - - -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} - - -function makeSnippet(mark, options) { - options = Object.create(options || null); - - if (!mark.buffer) return null; - - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; - - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; - - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); - - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } - - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; - - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); - - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } - - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; - - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } - - return result.replace(/\n$/, ''); -} - - -module.exports = makeSnippet; diff --git a/graphql/node_modules/js-yaml/lib/type.js b/graphql/node_modules/js-yaml/lib/type.js deleted file mode 100644 index 5e57877f..00000000 --- a/graphql/node_modules/js-yaml/lib/type.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict'; - -var YAMLException = require('./exception'); - -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; - -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; - -function compileStyleAliases(map) { - var result = {}; - - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } - - return result; -} - -function Type(tag, options) { - options = options || {}; - - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); - - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); - - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} - -module.exports = Type; diff --git a/graphql/node_modules/js-yaml/lib/type/binary.js b/graphql/node_modules/js-yaml/lib/type/binary.js deleted file mode 100644 index e1523513..00000000 --- a/graphql/node_modules/js-yaml/lib/type/binary.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -/*eslint-disable no-bitwise*/ - - -var Type = require('../type'); - - -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; - - -function resolveYamlBinary(data) { - if (data === null) return false; - - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; - - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); - - // Skip CR/LF - if (code > 64) continue; - - // Fail on illegal characters - if (code < 0) return false; - - bitlen += 6; - } - - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} - -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; - - // Collect by 6*4 bits (3 bytes) - - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } - - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } - - // Dump tail - - tailbits = (max % 4) * 6; - - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } - - return new Uint8Array(result); -} - -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; - - // Convert every three bytes to 4 ASCII characters. - - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } - - bits = (bits << 8) + object[idx]; - } - - // Dump tail - - tail = max % 3; - - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } - - return result; -} - -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} - -module.exports = new Type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); diff --git a/graphql/node_modules/js-yaml/lib/type/bool.js b/graphql/node_modules/js-yaml/lib/type/bool.js deleted file mode 100644 index cb774593..00000000 --- a/graphql/node_modules/js-yaml/lib/type/bool.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlBoolean(data) { - if (data === null) return false; - - var max = data.length; - - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} - -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} - -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} - -module.exports = new Type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); diff --git a/graphql/node_modules/js-yaml/lib/type/float.js b/graphql/node_modules/js-yaml/lib/type/float.js deleted file mode 100644 index 74d77ec2..00000000 --- a/graphql/node_modules/js-yaml/lib/type/float.js +++ /dev/null @@ -1,97 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); - -function resolveYamlFloat(data) { - if (data === null) return false; - - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } - - return true; -} - -function constructYamlFloat(data) { - var value, sign; - - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; - - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } - - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; - - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} - - -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; - -function representYamlFloat(object, style) { - var res; - - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; - } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } - - res = object.toString(10); - - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} - -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); diff --git a/graphql/node_modules/js-yaml/lib/type/int.js b/graphql/node_modules/js-yaml/lib/type/int.js deleted file mode 100644 index 3fe3a443..00000000 --- a/graphql/node_modules/js-yaml/lib/type/int.js +++ /dev/null @@ -1,156 +0,0 @@ -'use strict'; - -var common = require('../common'); -var Type = require('../type'); - -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} - -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} - -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} - -function resolveYamlInteger(data) { - if (data === null) return false; - - var max = data.length, - index = 0, - hasDigits = false, - ch; - - if (!max) return false; - - ch = data[index]; - - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } - - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; - - // base 2, base 8, base 16 - - if (ch === 'b') { - // base 2 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'x') { - // base 16 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - - - if (ch === 'o') { - // base 8 - index++; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } - - // base 10 (except 0) - - // value should not start with `_`; - if (ch === '_') return false; - - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } - - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; - - return true; -} - -function constructYamlInteger(data) { - var value = data, sign = 1, ch; - - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } - - ch = value[0]; - - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; - } - - if (value === '0') return 0; - - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } - - return sign * parseInt(value, 10); -} - -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} - -module.exports = new Type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); diff --git a/graphql/node_modules/js-yaml/lib/type/map.js b/graphql/node_modules/js-yaml/lib/type/map.js deleted file mode 100644 index f327beeb..00000000 --- a/graphql/node_modules/js-yaml/lib/type/map.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); diff --git a/graphql/node_modules/js-yaml/lib/type/merge.js b/graphql/node_modules/js-yaml/lib/type/merge.js deleted file mode 100644 index ae08a864..00000000 --- a/graphql/node_modules/js-yaml/lib/type/merge.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} - -module.exports = new Type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); diff --git a/graphql/node_modules/js-yaml/lib/type/null.js b/graphql/node_modules/js-yaml/lib/type/null.js deleted file mode 100644 index 315ca4e2..00000000 --- a/graphql/node_modules/js-yaml/lib/type/null.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -function resolveYamlNull(data) { - if (data === null) return true; - - var max = data.length; - - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} - -function constructYamlNull() { - return null; -} - -function isNull(object) { - return object === null; -} - -module.exports = new Type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); diff --git a/graphql/node_modules/js-yaml/lib/type/omap.js b/graphql/node_modules/js-yaml/lib/type/omap.js deleted file mode 100644 index b2b5323b..00000000 --- a/graphql/node_modules/js-yaml/lib/type/omap.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; -var _toString = Object.prototype.toString; - -function resolveYamlOmap(data) { - if (data === null) return true; - - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; - - if (_toString.call(pair) !== '[object Object]') return false; - - for (pairKey in pair) { - if (_hasOwnProperty.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } - - if (!pairHasKey) return false; - - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } - - return true; -} - -function constructYamlOmap(data) { - return data !== null ? data : []; -} - -module.exports = new Type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); diff --git a/graphql/node_modules/js-yaml/lib/type/pairs.js b/graphql/node_modules/js-yaml/lib/type/pairs.js deleted file mode 100644 index 74b52403..00000000 --- a/graphql/node_modules/js-yaml/lib/type/pairs.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _toString = Object.prototype.toString; - -function resolveYamlPairs(data) { - if (data === null) return true; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - if (_toString.call(pair) !== '[object Object]') return false; - - keys = Object.keys(pair); - - if (keys.length !== 1) return false; - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return true; -} - -function constructYamlPairs(data) { - if (data === null) return []; - - var index, length, pair, keys, result, - object = data; - - result = new Array(object.length); - - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - - keys = Object.keys(pair); - - result[index] = [ keys[0], pair[keys[0]] ]; - } - - return result; -} - -module.exports = new Type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); diff --git a/graphql/node_modules/js-yaml/lib/type/seq.js b/graphql/node_modules/js-yaml/lib/type/seq.js deleted file mode 100644 index be8f77f2..00000000 --- a/graphql/node_modules/js-yaml/lib/type/seq.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); diff --git a/graphql/node_modules/js-yaml/lib/type/set.js b/graphql/node_modules/js-yaml/lib/type/set.js deleted file mode 100644 index f885a329..00000000 --- a/graphql/node_modules/js-yaml/lib/type/set.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -function resolveYamlSet(data) { - if (data === null) return true; - - var key, object = data; - - for (key in object) { - if (_hasOwnProperty.call(object, key)) { - if (object[key] !== null) return false; - } - } - - return true; -} - -function constructYamlSet(data) { - return data !== null ? data : {}; -} - -module.exports = new Type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); diff --git a/graphql/node_modules/js-yaml/lib/type/str.js b/graphql/node_modules/js-yaml/lib/type/str.js deleted file mode 100644 index 27acc106..00000000 --- a/graphql/node_modules/js-yaml/lib/type/str.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -module.exports = new Type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); diff --git a/graphql/node_modules/js-yaml/lib/type/timestamp.js b/graphql/node_modules/js-yaml/lib/type/timestamp.js deleted file mode 100644 index 8fa9c586..00000000 --- a/graphql/node_modules/js-yaml/lib/type/timestamp.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -var Type = require('../type'); - -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day - -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute - -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} - -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; - - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); - - if (match === null) throw new Error('Date resolve error'); - - // match: [1] year [2] month [3] day - - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); - - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } - - // match: [4] hour [5] minute [6] second [7] fraction - - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); - - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; - } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute - - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } - - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - - if (delta) date.setTime(date.getTime() - delta); - - return date; -} - -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} - -module.exports = new Type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); diff --git a/graphql/node_modules/js-yaml/package.json b/graphql/node_modules/js-yaml/package.json deleted file mode 100644 index 17574da8..00000000 --- a/graphql/node_modules/js-yaml/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "js-yaml", - "version": "4.1.0", - "description": "YAML 1.2 parser and serializer", - "keywords": [ - "yaml", - "parser", - "serializer", - "pyyaml" - ], - "author": "Vladimir Zapparov ", - "contributors": [ - "Aleksey V Zapparov (http://www.ixti.net/)", - "Vitaly Puzrin (https://github.com/puzrin)", - "Martin Grenfell (http://got-ravings.blogspot.com)" - ], - "license": "MIT", - "repository": "nodeca/js-yaml", - "files": [ - "index.js", - "lib/", - "bin/", - "dist/" - ], - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "module": "./dist/js-yaml.mjs", - "exports": { - ".": { - "import": "./dist/js-yaml.mjs", - "require": "./index.js" - }, - "./package.json": "./package.json" - }, - "scripts": { - "lint": "eslint .", - "test": "npm run lint && mocha", - "coverage": "npm run lint && nyc mocha && nyc report --reporter html", - "demo": "npm run lint && node support/build_demo.js", - "gh-demo": "npm run demo && gh-pages -d demo -f", - "browserify": "rollup -c support/rollup.config.js", - "prepublishOnly": "npm run gh-demo" - }, - "unpkg": "dist/js-yaml.min.js", - "jsdelivr": "dist/js-yaml.min.js", - "dependencies": { - "argparse": "^2.0.1" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.0.0", - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "codemirror": "^5.13.4", - "eslint": "^7.0.0", - "fast-check": "^2.8.0", - "gh-pages": "^3.1.0", - "mocha": "^8.2.1", - "nyc": "^15.1.0", - "rollup": "^2.34.1", - "rollup-plugin-node-polyfills": "^0.2.1", - "rollup-plugin-terser": "^7.0.2", - "shelljs": "^0.8.4" - } -} diff --git a/graphql/node_modules/json-buffer/.travis.yml b/graphql/node_modules/json-buffer/.travis.yml deleted file mode 100644 index 244b7e88..00000000 --- a/graphql/node_modules/json-buffer/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - '0.10' diff --git a/graphql/node_modules/json-buffer/LICENSE b/graphql/node_modules/json-buffer/LICENSE deleted file mode 100644 index b799ec00..00000000 --- a/graphql/node_modules/json-buffer/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2013 Dominic Tarr - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/json-buffer/README.md b/graphql/node_modules/json-buffer/README.md deleted file mode 100644 index 4773d631..00000000 --- a/graphql/node_modules/json-buffer/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# json-buffer - -JSON functions that can convert buffers! - -[![build status](https://secure.travis-ci.org/dominictarr/json-buffer.png)](http://travis-ci.org/dominictarr/json-buffer) - -[![testling badge](https://ci.testling.com/dominictarr/json-buffer.png)](https://ci.testling.com/dominictarr/json-buffer) - -JSON mangles buffers by converting to an array... -which isn't helpful. json-buffers converts to base64 instead, -and deconverts base64 to a buffer. - -``` js -var JSONB = require('json-buffer') -var Buffer = require('buffer').Buffer - -var str = JSONB.stringify(Buffer.from('hello there!')) - -console.log(JSONB.parse(str)) //GET a BUFFER back -``` - -## License - -MIT diff --git a/graphql/node_modules/json-buffer/index.js b/graphql/node_modules/json-buffer/index.js deleted file mode 100644 index 16f012e4..00000000 --- a/graphql/node_modules/json-buffer/index.js +++ /dev/null @@ -1,58 +0,0 @@ -//TODO: handle reviver/dehydrate function like normal -//and handle indentation, like normal. -//if anyone needs this... please send pull request. - -exports.stringify = function stringify (o) { - if('undefined' == typeof o) return o - - if(o && Buffer.isBuffer(o)) - return JSON.stringify(':base64:' + o.toString('base64')) - - if(o && o.toJSON) - o = o.toJSON() - - if(o && 'object' === typeof o) { - var s = '' - var array = Array.isArray(o) - s = array ? '[' : '{' - var first = true - - for(var k in o) { - var ignore = 'function' == typeof o[k] || (!array && 'undefined' === typeof o[k]) - if(Object.hasOwnProperty.call(o, k) && !ignore) { - if(!first) - s += ',' - first = false - if (array) { - if(o[k] == undefined) - s += 'null' - else - s += stringify(o[k]) - } else if (o[k] !== void(0)) { - s += stringify(k) + ':' + stringify(o[k]) - } - } - } - - s += array ? ']' : '}' - - return s - } else if ('string' === typeof o) { - return JSON.stringify(/^:/.test(o) ? ':' + o : o) - } else if ('undefined' === typeof o) { - return 'null'; - } else - return JSON.stringify(o) -} - -exports.parse = function (s) { - return JSON.parse(s, function (key, value) { - if('string' === typeof value) { - if(/^:base64:/.test(value)) - return Buffer.from(value.substring(8), 'base64') - else - return /^:/.test(value) ? value.substring(1) : value - } - return value - }) -} diff --git a/graphql/node_modules/json-buffer/package.json b/graphql/node_modules/json-buffer/package.json deleted file mode 100644 index 346747fd..00000000 --- a/graphql/node_modules/json-buffer/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "json-buffer", - "description": "JSON parse & stringify that supports binary via bops & base64", - "version": "3.0.1", - "homepage": "https://github.com/dominictarr/json-buffer", - "repository": { - "type": "git", - "url": "git://github.com/dominictarr/json-buffer.git" - }, - "devDependencies": { - "tape": "^4.6.3" - }, - "scripts": { - "test": "set -e; for t in test/*.js; do node $t; done" - }, - "author": "Dominic Tarr (http://dominictarr.com)", - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/graphql/node_modules/json-buffer/test/index.js b/graphql/node_modules/json-buffer/test/index.js deleted file mode 100644 index 94e83720..00000000 --- a/graphql/node_modules/json-buffer/test/index.js +++ /dev/null @@ -1,63 +0,0 @@ - -var test = require('tape') -var _JSON = require('../') - -function clone (o) { - return JSON.parse(JSON.stringify(o)) -} - -var examples = { - simple: { foo: [], bar: {}, baz: Buffer.from('some binary data') }, - just_buffer: Buffer.from('JUST A BUFFER'), - all_types: { - string:'hello', - number: 3145, - null: null, - object: {}, - array: [], - boolean: true, - boolean2: false - }, - foo: Buffer.from('foo'), - foo2: Buffer.from('foo2'), - escape: { - buffer: Buffer.from('x'), - string: _JSON.stringify(Buffer.from('x')) - }, - escape2: { - buffer: Buffer.from('x'), - string: ':base64:'+ Buffer.from('x').toString('base64') - }, - undefined: { - empty: undefined, test: true - }, - undefined2: { - first: 1, empty: undefined, test: true - }, - undefinedArray: { - array: [undefined, 1, 'two'] - }, - fn: { - fn: function () {} - }, - undefined: undefined -} - -for(k in examples) -(function (value, k) { - test(k, function (t) { - var s = _JSON.stringify(value) - console.log('parse', s) - if(JSON.stringify(value) !== undefined) { - console.log(s) - var _value = _JSON.parse(s) - t.deepEqual(clone(_value), clone(value)) - } - else - t.equal(s, undefined) - t.end() - }) -})(examples[k], k) - - - diff --git a/graphql/node_modules/json-schema-traverse/.eslintrc.yml b/graphql/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index ab1762da..00000000 --- a/graphql/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 13] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/graphql/node_modules/json-schema-traverse/.travis.yml b/graphql/node_modules/json-schema-traverse/.travis.yml deleted file mode 100644 index 7ddce74b..00000000 --- a/graphql/node_modules/json-schema-traverse/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "4" - - "6" - - "7" - - "8" -after_script: - - coveralls < coverage/lcov.info diff --git a/graphql/node_modules/json-schema-traverse/LICENSE b/graphql/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/graphql/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/json-schema-traverse/README.md b/graphql/node_modules/json-schema-traverse/README.md deleted file mode 100644 index d5ccaf45..00000000 --- a/graphql/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse) -[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/graphql/node_modules/json-schema-traverse/index.js b/graphql/node_modules/json-schema-traverse/index.js deleted file mode 100644 index d4a18dfc..00000000 --- a/graphql/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i - keyv -
-
- - -> Simple key-value storage with support for multiple backends - -[![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml) -[![codecov](https://codecov.io/gh/jaredwray/keyv/branch/main/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv) -[![npm](https://img.shields.io/npm/dm/keyv.svg)](https://www.npmjs.com/package/keyv) -[![npm](https://img.shields.io/npm/v/keyv.svg)](https://www.npmjs.com/package/keyv) - -Keyv provides a consistent interface for key-value storage across multiple backends via storage adapters. It supports TTL based expiry, making it suitable as a cache or a persistent key-value store. - -## Features - -There are a few existing modules similar to Keyv, however Keyv is different because it: - -- Isn't bloated -- Has a simple Promise based API -- Suitable as a TTL based cache or persistent key-value store -- [Easily embeddable](#add-cache-support-to-your-module) inside another module -- Works with any storage that implements the [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) API -- Handles all JSON types plus `Buffer` -- Supports namespaces -- Wide range of [**efficient, well tested**](#official-storage-adapters) storage adapters -- Connection errors are passed through (db failures won't kill your app) -- Supports the current active LTS version of Node.js or higher - -## Usage - -Install Keyv. - -``` -npm install --save keyv -``` - -By default everything is stored in memory, you can optionally also install a storage adapter. - -``` -npm install --save @keyv/redis -npm install --save @keyv/mongo -npm install --save @keyv/sqlite -npm install --save @keyv/postgres -npm install --save @keyv/mysql -npm install --save @keyv/etcd -``` - -Create a new Keyv instance, passing your connection string if applicable. Keyv will automatically load the correct storage adapter. - -```js -const Keyv = require('keyv'); - -// One of the following -const keyv = new Keyv(); -const keyv = new Keyv('redis://user:pass@localhost:6379'); -const keyv = new Keyv('mongodb://user:pass@localhost:27017/dbname'); -const keyv = new Keyv('sqlite://path/to/database.sqlite'); -const keyv = new Keyv('postgresql://user:pass@localhost:5432/dbname'); -const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname'); -const keyv = new Keyv('etcd://localhost:2379'); - -// Handle DB connection errors -keyv.on('error', err => console.log('Connection Error', err)); - -await keyv.set('foo', 'expires in 1 second', 1000); // true -await keyv.set('foo', 'never expires'); // true -await keyv.get('foo'); // 'never expires' -await keyv.delete('foo'); // true -await keyv.clear(); // undefined -``` - -### Namespaces - -You can namespace your Keyv instance to avoid key collisions and allow you to clear only a certain namespace while using the same database. - -```js -const users = new Keyv('redis://user:pass@localhost:6379', { namespace: 'users' }); -const cache = new Keyv('redis://user:pass@localhost:6379', { namespace: 'cache' }); - -await users.set('foo', 'users'); // true -await cache.set('foo', 'cache'); // true -await users.get('foo'); // 'users' -await cache.get('foo'); // 'cache' -await users.clear(); // undefined -await users.get('foo'); // undefined -await cache.get('foo'); // 'cache' -``` - -### Custom Serializers - -Keyv uses [`json-buffer`](https://github.com/dominictarr/json-buffer) for data serialization to ensure consistency across different backends. - -You can optionally provide your own serialization functions to support extra data types or to serialize to something other than JSON. - -```js -const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse }); -``` - -**Warning:** Using custom serializers means you lose any guarantee of data consistency. You should do extensive testing with your serialisation functions and chosen storage engine. - -## Official Storage Adapters - -The official storage adapters are covered by [over 150 integration tests](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml) to guarantee consistent behaviour. They are lightweight, efficient wrappers over the DB clients making use of indexes and native TTLs where available. - -Database | Adapter | Native TTL ----|---|--- -Redis | [@keyv/redis](https://github.com/jaredwray/keyv/tree/master/packages/redis) | Yes -MongoDB | [@keyv/mongo](https://github.com/jaredwray/keyv/tree/master/packages/mongo) | Yes -SQLite | [@keyv/sqlite](https://github.com/jaredwray/keyv/tree/master/packages/sqlite) | No -PostgreSQL | [@keyv/postgres](https://github.com/jaredwray/keyv/tree/master/packages/postgres) | No -MySQL | [@keyv/mysql](https://github.com/jaredwray/keyv/tree/master/packages/mysql) | No -Etcd | [@keyv/etcd](https://github.com/jaredwray/keyv/tree/master/packages/etcd) | Yes -Memcache | [@keyv/memcache](https://github.com/jaredwray/keyv/tree/master/packages/memcache) | Yes - -## Third-party Storage Adapters - -You can also use third-party storage adapters or build your own. Keyv will wrap these storage adapters in TTL functionality and handle complex types internally. - -```js -const Keyv = require('keyv'); -const myAdapter = require('./my-storage-adapter'); - -const keyv = new Keyv({ store: myAdapter }); -``` - -Any store that follows the [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) api will work. - -```js -new Keyv({ store: new Map() }); -``` - -For example, [`quick-lru`](https://github.com/sindresorhus/quick-lru) is a completely unrelated module that implements the Map API. - -```js -const Keyv = require('keyv'); -const QuickLRU = require('quick-lru'); - -const lru = new QuickLRU({ maxSize: 1000 }); -const keyv = new Keyv({ store: lru }); -``` - -The following are third-party storage adapters compatible with Keyv: - -- [quick-lru](https://github.com/sindresorhus/quick-lru) - Simple "Least Recently Used" (LRU) cache -- [keyv-file](https://github.com/zaaack/keyv-file) - File system storage adapter for Keyv -- [keyv-dynamodb](https://www.npmjs.com/package/keyv-dynamodb) - DynamoDB storage adapter for Keyv -- [keyv-lru](https://www.npmjs.com/package/keyv-lru) - LRU storage adapter for Keyv -- [keyv-null](https://www.npmjs.com/package/keyv-null) - Null storage adapter for Keyv -- [keyv-firestore ](https://github.com/goto-bus-stop/keyv-firestore) – Firebase Cloud Firestore adapter for Keyv -- [keyv-mssql](https://github.com/pmorgan3/keyv-mssql) - Microsoft Sql Server adapter for Keyv -- [keyv-azuretable](https://github.com/howlowck/keyv-azuretable) - Azure Table Storage/API adapter for Keyv -- [keyv-arango](https://github.com/TimMikeladze/keyv-arango) - ArangoDB storage adapter for Keyv -- [keyv-momento](https://github.com/momentohq/node-keyv-adaptor/) - Momento storage adapter for Keyv - -## Add Cache Support to your Module - -Keyv is designed to be easily embedded into other modules to add cache support. The recommended pattern is to expose a `cache` option in your modules options which is passed through to Keyv. Caching will work in memory by default and users have the option to also install a Keyv storage adapter and pass in a connection string, or any other storage that implements the `Map` API. - -You should also set a namespace for your module so you can safely call `.clear()` without clearing unrelated app data. - -Inside your module: - -```js -class AwesomeModule { - constructor(opts) { - this.cache = new Keyv({ - uri: typeof opts.cache === 'string' && opts.cache, - store: typeof opts.cache !== 'string' && opts.cache, - namespace: 'awesome-module' - }); - } -} -``` - -Now it can be consumed like this: - -```js -const AwesomeModule = require('awesome-module'); - -// Caches stuff in memory by default -const awesomeModule = new AwesomeModule(); - -// After npm install --save keyv-redis -const awesomeModule = new AwesomeModule({ cache: 'redis://localhost' }); - -// Some third-party module that implements the Map API -const awesomeModule = new AwesomeModule({ cache: some3rdPartyStore }); -``` - -## Compression - -Keyv supports `gzip` and `brotli` compression. To enable compression, pass the `compress` option to the constructor. - -```js -const KeyvGzip = require('@keyv/compress-gzip'); -const Keyv = require('keyv'); - -const keyvGzip = new KeyvGzip(); -const keyv = new Keyv({ compression: KeyvGzip }); -``` - -You can also pass a custom compression function to the `compression` option. Following the pattern of the official compression adapters. - -### Want to build your own? - -Great! Keyv is designed to be easily extended. You can build your own compression adapter by following the pattern of the official compression adapters based on this interface: - -```typescript -interface CompressionAdapter { - async compress(value: any, options?: any); - async decompress(value: any, options?: any); - async serialize(value: any); - async deserialize(value: any); -} -``` - -In addition to the interface, you can test it with our compression test suite using @keyv/test-suite: - -```js -const {keyvCompresstionTests} = require('@keyv/test-suite'); -const KeyvGzip = require('@keyv/compress-gzip'); - -keyvCompresstionTests(test, new KeyvGzip()); -``` - -## API - -### new Keyv([uri], [options]) - -Returns a new Keyv instance. - -The Keyv instance is also an `EventEmitter` that will emit an `'error'` event if the storage adapter connection fails. - -### uri - -Type: `String`
-Default: `undefined` - -The connection string URI. - -Merged into the options object as options.uri. - -### options - -Type: `Object` - -The options object is also passed through to the storage adapter. Check your storage adapter docs for any extra options. - -#### options.namespace - -Type: `String`
-Default: `'keyv'` - -Namespace for the current instance. - -#### options.ttl - -Type: `Number`
-Default: `undefined` - -Default TTL. Can be overridden by specififying a TTL on `.set()`. - -#### options.compression - -Type: `@keyv/compress-`
-Default: `undefined` - -Compression package to use. See [Compression](#compression) for more details. - -#### options.serialize - -Type: `Function`
-Default: `JSONB.stringify` - -A custom serialization function. - -#### options.deserialize - -Type: `Function`
-Default: `JSONB.parse` - -A custom deserialization function. - -#### options.store - -Type: `Storage adapter instance`
-Default: `new Map()` - -The storage adapter instance to be used by Keyv. - -#### options.adapter - -Type: `String`
-Default: `undefined` - -Specify an adapter to use. e.g `'redis'` or `'mongodb'`. - -### Instance - -Keys must always be strings. Values can be of any type. - -#### .set(key, value, [ttl]) - -Set a value. - -By default keys are persistent. You can set an expiry TTL in milliseconds. - -Returns a promise which resolves to `true`. - -#### .get(key, [options]) - -Returns a promise which resolves to the retrieved value. - -##### options.raw - -Type: `Boolean`
-Default: `false` - -If set to true the raw DB object Keyv stores internally will be returned instead of just the value. - -This contains the TTL timestamp. - -#### .delete(key) - -Deletes an entry. - -Returns a promise which resolves to `true` if the key existed, `false` if not. - -#### .clear() - -Delete all entries in the current namespace. - -Returns a promise which is resolved when the entries have been cleared. - -#### .iterator() - -Iterate over all entries of the current namespace. - -Returns a iterable that can be iterated by for-of loops. For example: - -```js -// please note that the "await" keyword should be used here -for await (const [key, value] of this.keyv.iterator()) { - console.log(key, value); -}; -``` - -# How to Contribute - -In this section of the documentation we will cover: - -1) How to set up this repository locally -2) How to get started with running commands -3) How to contribute changes using Pull Requests - -## Dependencies - -This package requires the following dependencies to run: - -1) [Yarn V1](https://yarnpkg.com/getting-started/install) -3) [Docker](https://docs.docker.com/get-docker/) - -## Setting up your workspace - -To contribute to this repository, start by setting up this project locally: - -1) Fork this repository into your Git account -2) Clone the forked repository to your local directory using `git clone` -3) Install any of the above missing dependencies - -## Launching the project - -Once the project is installed locally, you are ready to start up its services: - -1) Ensure that your Docker service is running. -2) From the root directory of your project, run the `yarn` command in the command prompt to install yarn. -3) Run the `yarn bootstrap` command to install any necessary dependencies. -4) Run `yarn test:services:start` to start up this project's Docker container. The container will launch all services within your workspace. - -## Available Commands - -Once the project is running, you can execute a variety of commands. The root workspace and each subpackage contain a `package.json` file with a `scripts` field listing all the commands that can be executed from that directory. This project also supports native `yarn`, and `docker` commands. - -Here, we'll cover the primary commands that can be executed from the root directory. Unless otherwise noted, these commands can also be executed from a subpackage. If executed from a subpackage, they will only affect that subpackage, rather than the entire workspace. - -### `yarn` - -The `yarn` command installs yarn in the workspace. - -### `yarn bootstrap` - -The `yarn bootstrap` command installs all dependencies in the workspace. - -### `yarn test:services:start` - -The `yarn test:services:start` command starts up the project's Docker container, launching all services in the workspace. This command must be executed from the root directory. - -### `yarn test:services:stop` - -The `yarn test:services:stop` command brings down the project's Docker container, halting all services. This command must be executed from the root directory. - -### `yarn test` - -The `yarn test` command runs all tests in the workspace. - -### `yarn clean` - -The `yarn clean` command removes yarn and all dependencies installed by yarn. After executing this command, you must repeat the steps in *Setting up your workspace* to rebuild your workspace. - -## Contributing Changes - -Now that you've set up your workspace, you're ready to contribute changes to the `keyv` repository. - -1) Make any changes that you would like to contribute in your local workspace. -2) After making these changes, ensure that the project's tests still pass by executing the `yarn test` command in the root directory. -3) Commit your changes and push them to your forked repository. -4) Navigate to the original `keyv` repository and go the *Pull Requests* tab. -5) Click the *New pull request* button, and open a pull request for the branch in your repository that contains your changes. -6) Once your pull request is created, ensure that all checks have passed and that your branch has no conflicts with the base branch. If there are any issues, resolve these changes in your local repository, and then commit and push them to git. -7) Similarly, respond to any reviewer comments or requests for changes by making edits to your local repository and pushing them to Git. -8) Once the pull request has been reviewed, those with write access to the branch will be able to merge your changes into the `keyv` repository. - -If you need more information on the steps to create a pull request, you can find a detailed walkthrough in the [Github documentation](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) - -## License - -MIT © Jared Wray diff --git a/graphql/node_modules/keyv/package.json b/graphql/node_modules/keyv/package.json deleted file mode 100644 index a8304611..00000000 --- a/graphql/node_modules/keyv/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "keyv", - "version": "4.5.4", - "description": "Simple key-value storage with support for multiple backends", - "main": "src/index.js", - "scripts": { - "build": "echo 'No build step required.'", - "prepare": "yarn build", - "test": "xo && c8 ava --serial", - "test:ci": "xo && ava --serial", - "clean": "rm -rf node_modules && rm -rf ./coverage && rm -rf ./test/testdb.sqlite" - }, - "xo": { - "rules": { - "unicorn/prefer-module": 0, - "unicorn/prefer-node-protocol": 0, - "@typescript-eslint/consistent-type-definitions": 0, - "unicorn/no-typeof-undefined": 0, - "unicorn/prefer-event-target": 0 - } - }, - "repository": { - "type": "git", - "url": "git+https://github.com/jaredwray/keyv.git" - }, - "keywords": [ - "key", - "value", - "store", - "cache", - "ttl" - ], - "author": "Jared Wray (http://jaredwray.com)", - "license": "MIT", - "bugs": { - "url": "https://github.com/jaredwray/keyv/issues" - }, - "homepage": "https://github.com/jaredwray/keyv", - "dependencies": { - "json-buffer": "3.0.1" - }, - "devDependencies": { - "@keyv/test-suite": "*", - "eslint": "^8.51.0", - "eslint-plugin-promise": "^6.1.1", - "pify": "^5.0.0", - "timekeeper": "^2.3.1", - "tsd": "^0.29.0" - }, - "tsd": { - "directory": "test" - }, - "types": "./src/index.d.ts", - "files": [ - "src" - ] -} diff --git a/graphql/node_modules/keyv/src/index.d.ts b/graphql/node_modules/keyv/src/index.d.ts deleted file mode 100644 index 77d81ca5..00000000 --- a/graphql/node_modules/keyv/src/index.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -import {EventEmitter} from 'events'; - -type WithRequiredProperties = T & Required>; - -declare class Keyv = Record> extends EventEmitter { - /** - * `this.opts` is an object containing at least the properties listed - * below. However, `Keyv.Options` allows arbitrary properties as well. - * These properties can be specified as the second type parameter to `Keyv`. - */ - opts: WithRequiredProperties< - Keyv.Options, - 'deserialize' | 'namespace' | 'serialize' | 'store' | 'uri' - > & - Options; - - /** - * @param opts The options object is also passed through to the storage adapter. Check your storage adapter docs for any extra options. - */ - constructor(options?: Keyv.Options & Options); - /** - * @param uri The connection string URI. - * - * Merged into the options object as options.uri. - * @param opts The options object is also passed through to the storage adapter. Check your storage adapter docs for any extra options. - */ - constructor(uri?: string, options?: Keyv.Options & Options); - - /** Returns the value. */ - get(key: string, options?: {raw?: false}): Promise; - /** Returns the raw value. */ - get(key: string, options: {raw: true}): Promise | undefined>; - - /** Returns an array of values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */ - get(key: string[], options?: {raw?: false}): Promise>; - /** Returns an array of raw values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */ - get(key: string[], options: {raw: true}): Promise | undefined>>; - - /** - * Set a value. - * - * By default keys are persistent. You can set an expiry TTL in milliseconds. - */ - set(key: string, value: Value, ttl?: number): Promise; - /** - * Deletes an entry. - * - * Returns `true` if the key existed, `false` if not. - */ - delete(key: string | string[]): Promise; - /** Delete all entries in the current namespace. */ - clear(): Promise; - /** Check if key exists in current namespace. */ - has(key: string): Promise; - /** Iterator */ - iterator(namespace?: string): AsyncGenerator; - /** - * Closes the connection. - * - * Returns `undefined` when the connection closes. - */ - disconnect(): Promise; -} - -declare namespace Keyv { - interface Options { - [key: string]: any; - - /** Namespace for the current instance. */ - namespace?: string | undefined; - /** A custom serialization function. */ - serialize?: ((data: DeserializedData) => string) | undefined; - /** A custom deserialization function. */ - deserialize?: ((data: string) => DeserializedData | undefined) | undefined; - /** The connection string URI. */ - uri?: string | undefined; - /** The storage adapter instance to be used by Keyv. */ - store?: Store | undefined; - /** Default TTL. Can be overridden by specififying a TTL on `.set()`. */ - ttl?: number | undefined; - /** Specify an adapter to use. e.g `'redis'` or `'mongodb'`. */ - adapter?: 'redis' | 'mongodb' | 'mongo' | 'sqlite' | 'postgresql' | 'postgres' | 'mysql' | undefined; - /** Enable compression option **/ - compression?: CompressionAdapter | undefined; - } - - interface CompressionAdapter { - compress(value: any, options?: any): Promise; - decompress(value: any, options?: any): Promise; - serialize(value: any): Promise; - deserialize(value: any): Promise; - } - - interface DeserializedData { - value: Value; expires: number | undefined; - } - - type StoredData = DeserializedData | string | undefined; - - interface Store { - get(key: string): Value | Promise | undefined; - set(key: string, value: Value, ttl?: number): any; - delete(key: string): boolean | Promise; - clear(): void | Promise; - has?(key: string): boolean | Promise; - getMany?( - keys: string[] - ): Array> | Promise>> | undefined; - } -} - -export = Keyv; diff --git a/graphql/node_modules/keyv/src/index.js b/graphql/node_modules/keyv/src/index.js deleted file mode 100644 index ac539bd9..00000000 --- a/graphql/node_modules/keyv/src/index.js +++ /dev/null @@ -1,259 +0,0 @@ -'use strict'; - -const EventEmitter = require('events'); -const JSONB = require('json-buffer'); - -const loadStore = options => { - const adapters = { - redis: '@keyv/redis', - rediss: '@keyv/redis', - mongodb: '@keyv/mongo', - mongo: '@keyv/mongo', - sqlite: '@keyv/sqlite', - postgresql: '@keyv/postgres', - postgres: '@keyv/postgres', - mysql: '@keyv/mysql', - etcd: '@keyv/etcd', - offline: '@keyv/offline', - tiered: '@keyv/tiered', - }; - if (options.adapter || options.uri) { - const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0]; - return new (require(adapters[adapter]))(options); - } - - return new Map(); -}; - -const iterableAdapters = [ - 'sqlite', - 'postgres', - 'mysql', - 'mongo', - 'redis', - 'tiered', -]; - -class Keyv extends EventEmitter { - constructor(uri, {emitErrors = true, ...options} = {}) { - super(); - this.opts = { - namespace: 'keyv', - serialize: JSONB.stringify, - deserialize: JSONB.parse, - ...((typeof uri === 'string') ? {uri} : uri), - ...options, - }; - - if (!this.opts.store) { - const adapterOptions = {...this.opts}; - this.opts.store = loadStore(adapterOptions); - } - - if (this.opts.compression) { - const compression = this.opts.compression; - this.opts.serialize = compression.serialize.bind(compression); - this.opts.deserialize = compression.deserialize.bind(compression); - } - - if (typeof this.opts.store.on === 'function' && emitErrors) { - this.opts.store.on('error', error => this.emit('error', error)); - } - - this.opts.store.namespace = this.opts.namespace; - - const generateIterator = iterator => async function * () { - for await (const [key, raw] of typeof iterator === 'function' - ? iterator(this.opts.store.namespace) - : iterator) { - const data = await this.opts.deserialize(raw); - if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) { - continue; - } - - if (typeof data.expires === 'number' && Date.now() > data.expires) { - this.delete(key); - continue; - } - - yield [this._getKeyUnprefix(key), data.value]; - } - }; - - // Attach iterators - if (typeof this.opts.store[Symbol.iterator] === 'function' && this.opts.store instanceof Map) { - this.iterator = generateIterator(this.opts.store); - } else if (typeof this.opts.store.iterator === 'function' && this.opts.store.opts - && this._checkIterableAdaptar()) { - this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store)); - } - } - - _checkIterableAdaptar() { - return iterableAdapters.includes(this.opts.store.opts.dialect) - || iterableAdapters.findIndex(element => this.opts.store.opts.url.includes(element)) >= 0; - } - - _getKeyPrefix(key) { - return `${this.opts.namespace}:${key}`; - } - - _getKeyPrefixArray(keys) { - return keys.map(key => `${this.opts.namespace}:${key}`); - } - - _getKeyUnprefix(key) { - return key - .split(':') - .splice(1) - .join(':'); - } - - get(key, options) { - const {store} = this.opts; - const isArray = Array.isArray(key); - const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key); - if (isArray && store.getMany === undefined) { - const promises = []; - for (const key of keyPrefixed) { - promises.push(Promise.resolve() - .then(() => store.get(key)) - .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data)) - .then(data => { - if (data === undefined || data === null) { - return undefined; - } - - if (typeof data.expires === 'number' && Date.now() > data.expires) { - return this.delete(key).then(() => undefined); - } - - return (options && options.raw) ? data : data.value; - }), - ); - } - - return Promise.allSettled(promises) - .then(values => { - const data = []; - for (const value of values) { - data.push(value.value); - } - - return data; - }); - } - - return Promise.resolve() - .then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed)) - .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data)) - .then(data => { - if (data === undefined || data === null) { - return undefined; - } - - if (isArray) { - return data.map((row, index) => { - if ((typeof row === 'string')) { - row = this.opts.deserialize(row); - } - - if (row === undefined || row === null) { - return undefined; - } - - if (typeof row.expires === 'number' && Date.now() > row.expires) { - this.delete(key[index]).then(() => undefined); - return undefined; - } - - return (options && options.raw) ? row : row.value; - }); - } - - if (typeof data.expires === 'number' && Date.now() > data.expires) { - return this.delete(key).then(() => undefined); - } - - return (options && options.raw) ? data : data.value; - }); - } - - set(key, value, ttl) { - const keyPrefixed = this._getKeyPrefix(key); - if (typeof ttl === 'undefined') { - ttl = this.opts.ttl; - } - - if (ttl === 0) { - ttl = undefined; - } - - const {store} = this.opts; - - return Promise.resolve() - .then(() => { - const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null; - if (typeof value === 'symbol') { - this.emit('error', 'symbol cannot be serialized'); - } - - value = {value, expires}; - return this.opts.serialize(value); - }) - .then(value => store.set(keyPrefixed, value, ttl)) - .then(() => true); - } - - delete(key) { - const {store} = this.opts; - if (Array.isArray(key)) { - const keyPrefixed = this._getKeyPrefixArray(key); - if (store.deleteMany === undefined) { - const promises = []; - for (const key of keyPrefixed) { - promises.push(store.delete(key)); - } - - return Promise.allSettled(promises) - .then(values => values.every(x => x.value === true)); - } - - return Promise.resolve() - .then(() => store.deleteMany(keyPrefixed)); - } - - const keyPrefixed = this._getKeyPrefix(key); - return Promise.resolve() - .then(() => store.delete(keyPrefixed)); - } - - clear() { - const {store} = this.opts; - return Promise.resolve() - .then(() => store.clear()); - } - - has(key) { - const keyPrefixed = this._getKeyPrefix(key); - const {store} = this.opts; - return Promise.resolve() - .then(async () => { - if (typeof store.has === 'function') { - return store.has(keyPrefixed); - } - - const value = await store.get(keyPrefixed); - return value !== undefined; - }); - } - - disconnect() { - const {store} = this.opts; - if (typeof store.disconnect === 'function') { - return store.disconnect(); - } - } -} - -module.exports = Keyv; diff --git a/graphql/node_modules/levn/LICENSE b/graphql/node_modules/levn/LICENSE deleted file mode 100644 index 525b1185..00000000 --- a/graphql/node_modules/levn/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) George Zahariev - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/levn/README.md b/graphql/node_modules/levn/README.md deleted file mode 100644 index 7ab008d6..00000000 --- a/graphql/node_modules/levn/README.md +++ /dev/null @@ -1,196 +0,0 @@ -# levn [![Build Status](https://travis-ci.org/gkz/levn.png)](https://travis-ci.org/gkz/levn) -__Light ECMAScript (JavaScript) Value Notation__ -Levn is a library which allows you to parse a string into a JavaScript value based on an expected type. It is meant for short amounts of human entered data (eg. config files, command line arguments). - -Levn aims to concisely describe JavaScript values in text, and allow for the extraction and validation of those values. Levn uses [type-check](https://github.com/gkz/type-check) for its type format, and to validate the results. MIT license. Version 0.4.1. - -__How is this different than JSON?__ levn is meant to be written by humans only, is (due to the previous point) much more concise, can be validated against supplied types, has regex and date literals, and can easily be extended with custom types. On the other hand, it is probably slower and thus less efficient at transporting large amounts of data, which is fine since this is not its purpose. - - npm install levn - -For updates on levn, [follow me on twitter](https://twitter.com/gkzahariev). - - -## Quick Examples - -```js -var parse = require('levn').parse; -parse('Number', '2'); // 2 -parse('String', '2'); // '2' -parse('String', 'levn'); // 'levn' -parse('String', 'a b'); // 'a b' -parse('Boolean', 'true'); // true - -parse('Date', '#2011-11-11#'); // (Date object) -parse('Date', '2011-11-11'); // (Date object) -parse('RegExp', '/[a-z]/gi'); // /[a-z]/gi -parse('RegExp', 're'); // /re/ -parse('Int', '2'); // 2 - -parse('Number | String', 'str'); // 'str' -parse('Number | String', '2'); // 2 - -parse('[Number]', '[1,2,3]'); // [1,2,3] -parse('(String, Boolean)', '(hi, false)'); // ['hi', false] -parse('{a: String, b: Number}', '{a: str, b: 2}'); // {a: 'str', b: 2} - -// at the top level, you can ommit surrounding delimiters -parse('[Number]', '1,2,3'); // [1,2,3] -parse('(String, Boolean)', 'hi, false'); // ['hi', false] -parse('{a: String, b: Number}', 'a: str, b: 2'); // {a: 'str', b: 2} - -// wildcard - auto choose type -parse('*', '[hi,(null,[42]),{k: true}]'); // ['hi', [null, [42]], {k: true}] -``` -## Usage - -`require('levn');` returns an object that exposes three properties. `VERSION` is the current version of the library as a string. `parse` and `parsedTypeParse` are functions. - -```js -// parse(type, input, options); -parse('[Number]', '1,2,3'); // [1, 2, 3] - -// parsedTypeParse(parsedType, input, options); -var parsedType = require('type-check').parseType('[Number]'); -parsedTypeParse(parsedType, '1,2,3'); // [1, 2, 3] -``` - -### parse(type, input, options) - -`parse` casts the string `input` into a JavaScript value according to the specified `type` in the [type format](https://github.com/gkz/type-check#type-format) (and taking account the optional `options`) and returns the resulting JavaScript value. - -##### arguments -* type - `String` - the type written in the [type format](https://github.com/gkz/type-check#type-format) which to check against -* input - `String` - the value written in the [levn format](#levn-format) -* options - `Maybe Object` - an optional parameter specifying additional [options](#options) - -##### returns -`*` - the resulting JavaScript value - -##### example -```js -parse('[Number]', '1,2,3'); // [1, 2, 3] -``` - -### parsedTypeParse(parsedType, input, options) - -`parsedTypeParse` casts the string `input` into a JavaScript value according to the specified `type` which has already been parsed (and taking account the optional `options`) and returns the resulting JavaScript value. You can parse a type using the [type-check](https://github.com/gkz/type-check) library's `parseType` function. - -##### arguments -* type - `Object` - the type in the parsed type format which to check against -* input - `String` - the value written in the [levn format](#levn-format) -* options - `Maybe Object` - an optional parameter specifying additional [options](#options) - -##### returns -`*` - the resulting JavaScript value - -##### example -```js -var parsedType = require('type-check').parseType('[Number]'); -parsedTypeParse(parsedType, '1,2,3'); // [1, 2, 3] -``` - -## Levn Format - -Levn can use the type information you provide to choose the appropriate value to produce from the input. For the same input, it will choose a different output value depending on the type provided. For example, `parse('Number', '2')` will produce the number `2`, but `parse('String', '2')` will produce the string `"2"`. - -If you do not provide type information, and simply use `*`, levn will parse the input according the unambiguous "explicit" mode, which we will now detail - you can also set the `explicit` option to true manually in the [options](#options). - -* `"string"`, `'string'` are parsed as a String, eg. `"a msg"` is `"a msg"` -* `#date#` is parsed as a Date, eg. `#2011-11-11#` is `new Date('2011-11-11')` -* `/regexp/flags` is parsed as a RegExp, eg. `/re/gi` is `/re/gi` -* `undefined`, `null`, `NaN`, `true`, and `false` are all their JavaScript equivalents -* `[element1, element2, etc]` is an Array, and the casting procedure is recursively applied to each element. Eg. `[1,2,3]` is `[1,2,3]`. -* `(element1, element2, etc)` is an tuple, and the casting procedure is recursively applied to each element. Eg. `(1, a)` is `(1, a)` (is `[1, 'a']`). -* `{key1: val1, key2: val2, ...}` is an Object, and the casting procedure is recursively applied to each property. Eg. `{a: 1, b: 2}` is `{a: 1, b: 2}`. -* Any test which does not fall under the above, and which does not contain special characters (`[``]``(``)``{``}``:``,`) is a string, eg. `$12- blah` is `"$12- blah"`. - -If you do provide type information, you can make your input more concise as the program already has some information about what it expects. Please see the [type format](https://github.com/gkz/type-check#type-format) section of [type-check](https://github.com/gkz/type-check) for more information about how to specify types. There are some rules about what levn can do with the information: - -* If a String is expected, and only a String, all characters of the input (including any special ones) will become part of the output. Eg. `[({})]` is `"[({})]"`, and `"hi"` is `'"hi"'`. -* If a Date is expected, the surrounding `#` can be omitted from date literals. Eg. `2011-11-11` is `new Date('2011-11-11')`. -* If a RegExp is expected, no flags need to be specified, and the regex is not using any of the special characters,the opening and closing `/` can be omitted - this will have the affect of setting the source of the regex to the input. Eg. `regex` is `/regex/`. -* If an Array is expected, and it is the root node (at the top level), the opening `[` and closing `]` can be omitted. Eg. `1,2,3` is `[1,2,3]`. -* If a tuple is expected, and it is the root node (at the top level), the opening `(` and closing `)` can be omitted. Eg. `1, a` is `(1, a)` (is `[1, 'a']`). -* If an Object is expected, and it is the root node (at the top level), the opening `{` and closing `}` can be omitted. Eg `a: 1, b: 2` is `{a: 1, b: 2}`. - -If you list multiple types (eg. `Number | String`), it will first attempt to cast to the first type and then validate - if the validation fails it will move on to the next type and so forth, left to right. You must be careful as some types will succeed with any input, such as String. Thus put String at the end of your list. In non-explicit mode, Date and RegExp will succeed with a large variety of input - also be careful with these and list them near the end if not last in your list. - -Whitespace between special characters and elements is inconsequential. - -## Options - -Options is an object. It is an optional parameter to the `parse` and `parsedTypeParse` functions. - -### Explicit - -A `Boolean`. By default it is `false`. - -__Example:__ - -```js -parse('RegExp', 're', {explicit: false}); // /re/ -parse('RegExp', 're', {explicit: true}); // Error: ... does not type check... -parse('RegExp | String', 're', {explicit: true}); // 're' -``` - -`explicit` sets whether to be in explicit mode or not. Using `*` automatically activates explicit mode. For more information, read the [levn format](#levn-format) section. - -### customTypes - -An `Object`. Empty `{}` by default. - -__Example:__ - -```js -var options = { - customTypes: { - Even: { - typeOf: 'Number', - validate: function (x) { - return x % 2 === 0; - }, - cast: function (x) { - return {type: 'Just', value: parseInt(x)}; - } - } - } -} -parse('Even', '2', options); // 2 -parse('Even', '3', options); // Error: Value: "3" does not type check... -``` - -__Another Example:__ -```js -function Person(name, age){ - this.name = name; - this.age = age; -} -var options = { - customTypes: { - Person: { - typeOf: 'Object', - validate: function (x) { - x instanceof Person; - }, - cast: function (value, options, typesCast) { - var name, age; - if ({}.toString.call(value).slice(8, -1) !== 'Object') { - return {type: 'Nothing'}; - } - name = typesCast(value.name, [{type: 'String'}], options); - age = typesCast(value.age, [{type: 'Numger'}], options); - return {type: 'Just', value: new Person(name, age)}; - } - } -} -parse('Person', '{name: Laura, age: 25}', options); // Person {name: 'Laura', age: 25} -``` - -`customTypes` is an object whose keys are the name of the types, and whose values are an object with three properties, `typeOf`, `validate`, and `cast`. For more information about `typeOf` and `validate`, please see the [custom types](https://github.com/gkz/type-check#custom-types) section of type-check. - -`cast` is a function which receives three arguments, the value under question, options, and the typesCast function. In `cast`, attempt to cast the value into the specified type. If you are successful, return an object in the format `{type: 'Just', value: CAST-VALUE}`, if you know it won't work, return `{type: 'Nothing'}`. You can use the `typesCast` function to cast any child values. Remember to pass `options` to it. In your function you can also check for `options.explicit` and act accordingly. - -## Technical About - -`levn` is written in [LiveScript](http://livescript.net/) - a language that compiles to JavaScript. It uses [type-check](https://github.com/gkz/type-check) to both parse types and validate values. It also uses the [prelude.ls](http://preludels.com/) library. diff --git a/graphql/node_modules/levn/lib/cast.js b/graphql/node_modules/levn/lib/cast.js deleted file mode 100644 index 92cb9a6d..00000000 --- a/graphql/node_modules/levn/lib/cast.js +++ /dev/null @@ -1,327 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var parsedTypeCheck, types, toString$ = {}.toString; - parsedTypeCheck = require('type-check').parsedTypeCheck; - types = { - '*': function(value, options){ - switch (toString$.call(value).slice(8, -1)) { - case 'Array': - return typeCast(value, { - type: 'Array' - }, options); - case 'Object': - return typeCast(value, { - type: 'Object' - }, options); - default: - return { - type: 'Just', - value: typesCast(value, [ - { - type: 'Undefined' - }, { - type: 'Null' - }, { - type: 'NaN' - }, { - type: 'Boolean' - }, { - type: 'Number' - }, { - type: 'Date' - }, { - type: 'RegExp' - }, { - type: 'Array' - }, { - type: 'Object' - }, { - type: 'String' - } - ], (options.explicit = true, options)) - }; - } - }, - Undefined: function(it){ - if (it === 'undefined' || it === void 8) { - return { - type: 'Just', - value: void 8 - }; - } else { - return { - type: 'Nothing' - }; - } - }, - Null: function(it){ - if (it === 'null') { - return { - type: 'Just', - value: null - }; - } else { - return { - type: 'Nothing' - }; - } - }, - NaN: function(it){ - if (it === 'NaN') { - return { - type: 'Just', - value: NaN - }; - } else { - return { - type: 'Nothing' - }; - } - }, - Boolean: function(it){ - if (it === 'true') { - return { - type: 'Just', - value: true - }; - } else if (it === 'false') { - return { - type: 'Just', - value: false - }; - } else { - return { - type: 'Nothing' - }; - } - }, - Number: function(it){ - return { - type: 'Just', - value: +it - }; - }, - Int: function(it){ - return { - type: 'Just', - value: +it - }; - }, - Float: function(it){ - return { - type: 'Just', - value: +it - }; - }, - Date: function(value, options){ - var that; - if (that = /^\#([\s\S]*)\#$/.exec(value)) { - return { - type: 'Just', - value: new Date(+that[1] || that[1]) - }; - } else if (options.explicit) { - return { - type: 'Nothing' - }; - } else { - return { - type: 'Just', - value: new Date(+value || value) - }; - } - }, - RegExp: function(value, options){ - var that; - if (that = /^\/([\s\S]*)\/([gimy]*)$/.exec(value)) { - return { - type: 'Just', - value: new RegExp(that[1], that[2]) - }; - } else if (options.explicit) { - return { - type: 'Nothing' - }; - } else { - return { - type: 'Just', - value: new RegExp(value) - }; - } - }, - Array: function(value, options){ - return castArray(value, { - of: [{ - type: '*' - }] - }, options); - }, - Object: function(value, options){ - return castFields(value, { - of: {} - }, options); - }, - String: function(it){ - var replace, that; - if (toString$.call(it).slice(8, -1) !== 'String') { - return { - type: 'Nothing' - }; - } - replace = function(value, quote){ - return value.replace(/\\([^u]|u[0-9a-fA-F]{4})/g, function(all, escaped){ - switch (escaped[0]) { - case quote: - return quote; - case '\\': - return '\\'; - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - case 'u': - return JSON.parse("\"" + all + "\""); - default: - return escaped; - } - }); - }; - if (that = it.match(/^'([\s\S]*)'$/)) { - return { - type: 'Just', - value: replace(that[1], "'") - }; - } else if (that = it.match(/^"([\s\S]*)"$/)) { - return { - type: 'Just', - value: replace(that[1], '"') - }; - } else { - return { - type: 'Just', - value: it - }; - } - } - }; - function castArray(node, type, options){ - var typeOf, element; - if (toString$.call(node).slice(8, -1) !== 'Array') { - return { - type: 'Nothing' - }; - } - typeOf = type.of; - return { - type: 'Just', - value: (function(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = node).length; i$ < len$; ++i$) { - element = ref$[i$]; - results$.push(typesCast(element, typeOf, options)); - } - return results$; - }()) - }; - } - function castTuple(node, type, options){ - var result, i, i$, ref$, len$, types, cast; - if (toString$.call(node).slice(8, -1) !== 'Array') { - return { - type: 'Nothing' - }; - } - result = []; - i = 0; - for (i$ = 0, len$ = (ref$ = type.of).length; i$ < len$; ++i$) { - types = ref$[i$]; - cast = typesCast(node[i], types, options); - if (toString$.call(cast).slice(8, -1) !== 'Undefined') { - result.push(cast); - } - i++; - } - if (node.length <= i) { - return { - type: 'Just', - value: result - }; - } else { - return { - type: 'Nothing' - }; - } - } - function castFields(node, type, options){ - var typeOf, key, value; - if (toString$.call(node).slice(8, -1) !== 'Object') { - return { - type: 'Nothing' - }; - } - typeOf = type.of; - return { - type: 'Just', - value: (function(){ - var ref$, resultObj$ = {}; - for (key in ref$ = node) { - value = ref$[key]; - resultObj$[typesCast(key, [{ - type: 'String' - }], options)] = typesCast(value, typeOf[key] || [{ - type: '*' - }], options); - } - return resultObj$; - }()) - }; - } - function typeCast(node, typeObj, options){ - var type, structure, castFunc, ref$; - type = typeObj.type, structure = typeObj.structure; - if (type) { - castFunc = ((ref$ = options.customTypes[type]) != null ? ref$.cast : void 8) || types[type]; - if (!castFunc) { - throw new Error("Type not defined: " + type + "."); - } - return castFunc(node, options, typesCast); - } else { - switch (structure) { - case 'array': - return castArray(node, typeObj, options); - case 'tuple': - return castTuple(node, typeObj, options); - case 'fields': - return castFields(node, typeObj, options); - } - } - } - function typesCast(node, types, options){ - var i$, len$, type, ref$, valueType, value; - for (i$ = 0, len$ = types.length; i$ < len$; ++i$) { - type = types[i$]; - ref$ = typeCast(node, type, options), valueType = ref$.type, value = ref$.value; - if (valueType === 'Nothing') { - continue; - } - if (parsedTypeCheck([type], value, { - customTypes: options.customTypes - })) { - return value; - } - } - throw new Error("Value " + JSON.stringify(node) + " does not type check against " + JSON.stringify(types) + "."); - } - module.exports = function(node, types, options){ - if (!options.explicit && types.length === 1 && types[0].type === 'String') { - return node; - } - return typesCast(node, types, options); - }; -}).call(this); diff --git a/graphql/node_modules/levn/lib/index.js b/graphql/node_modules/levn/lib/index.js deleted file mode 100644 index b8b66840..00000000 --- a/graphql/node_modules/levn/lib/index.js +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var parseString, cast, parseType, VERSION, parsedTypeParse, parse; - parseString = require('./parse-string'); - cast = require('./cast'); - parseType = require('type-check').parseType; - VERSION = '0.4.1'; - parsedTypeParse = function(parsedType, string, options){ - options == null && (options = {}); - options.explicit == null && (options.explicit = false); - options.customTypes == null && (options.customTypes = {}); - return cast(parseString(parsedType, string, options), parsedType, options); - }; - parse = function(type, string, options){ - return parsedTypeParse(parseType(type), string, options); - }; - module.exports = { - VERSION: VERSION, - parse: parse, - parsedTypeParse: parsedTypeParse - }; -}).call(this); diff --git a/graphql/node_modules/levn/lib/parse-string.js b/graphql/node_modules/levn/lib/parse-string.js deleted file mode 100644 index eaed2f06..00000000 --- a/graphql/node_modules/levn/lib/parse-string.js +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var reject, special, tokenRegex; - reject = require('prelude-ls').reject; - function consumeOp(tokens, op){ - if (tokens[0] === op) { - return tokens.shift(); - } else { - throw new Error("Expected '" + op + "', but got '" + tokens[0] + "' instead in " + JSON.stringify(tokens) + "."); - } - } - function maybeConsumeOp(tokens, op){ - if (tokens[0] === op) { - return tokens.shift(); - } - } - function consumeList(tokens, arg$, hasDelimiters){ - var open, close, result, untilTest; - open = arg$[0], close = arg$[1]; - if (hasDelimiters) { - consumeOp(tokens, open); - } - result = []; - untilTest = "," + (hasDelimiters ? close : ''); - while (tokens.length && (hasDelimiters && tokens[0] !== close)) { - result.push(consumeElement(tokens, untilTest)); - maybeConsumeOp(tokens, ','); - } - if (hasDelimiters) { - consumeOp(tokens, close); - } - return result; - } - function consumeArray(tokens, hasDelimiters){ - return consumeList(tokens, ['[', ']'], hasDelimiters); - } - function consumeTuple(tokens, hasDelimiters){ - return consumeList(tokens, ['(', ')'], hasDelimiters); - } - function consumeFields(tokens, hasDelimiters){ - var result, untilTest, key; - if (hasDelimiters) { - consumeOp(tokens, '{'); - } - result = {}; - untilTest = "," + (hasDelimiters ? '}' : ''); - while (tokens.length && (!hasDelimiters || tokens[0] !== '}')) { - key = consumeValue(tokens, ':'); - consumeOp(tokens, ':'); - result[key] = consumeElement(tokens, untilTest); - maybeConsumeOp(tokens, ','); - } - if (hasDelimiters) { - consumeOp(tokens, '}'); - } - return result; - } - function consumeValue(tokens, untilTest){ - var out; - untilTest == null && (untilTest = ''); - out = ''; - while (tokens.length && -1 === untilTest.indexOf(tokens[0])) { - out += tokens.shift(); - } - return out; - } - function consumeElement(tokens, untilTest){ - switch (tokens[0]) { - case '[': - return consumeArray(tokens, true); - case '(': - return consumeTuple(tokens, true); - case '{': - return consumeFields(tokens, true); - default: - return consumeValue(tokens, untilTest); - } - } - function consumeTopLevel(tokens, types, options){ - var ref$, type, structure, origTokens, result, finalResult, x$, y$; - ref$ = types[0], type = ref$.type, structure = ref$.structure; - origTokens = tokens.concat(); - if (!options.explicit && types.length === 1 && ((!type && structure) || (type === 'Array' || type === 'Object'))) { - result = structure === 'array' || type === 'Array' - ? consumeArray(tokens, tokens[0] === '[') - : structure === 'tuple' - ? consumeTuple(tokens, tokens[0] === '(') - : consumeFields(tokens, tokens[0] === '{'); - finalResult = tokens.length ? consumeElement(structure === 'array' || type === 'Array' - ? (x$ = origTokens, x$.unshift('['), x$.push(']'), x$) - : (y$ = origTokens, y$.unshift('('), y$.push(')'), y$)) : result; - } else { - finalResult = consumeElement(tokens); - } - return finalResult; - } - special = /\[\]\(\)}{:,/.source; - tokenRegex = RegExp('("(?:\\\\"|[^"])*")|(\'(?:\\\\\'|[^\'])*\')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([' + special + '])|([^\\s' + special + '](?:\\s*[^\\s' + special + ']+)*)|\\s*'); - module.exports = function(types, string, options){ - var tokens, node; - options == null && (options = {}); - if (!options.explicit && types.length === 1 && types[0].type === 'String') { - return string; - } - tokens = reject(not$, string.split(tokenRegex)); - node = consumeTopLevel(tokens, types, options); - if (!node) { - throw new Error("Error parsing '" + string + "'."); - } - return node; - }; - function not$(x){ return !x; } -}).call(this); diff --git a/graphql/node_modules/levn/package.json b/graphql/node_modules/levn/package.json deleted file mode 100644 index 0c356d69..00000000 --- a/graphql/node_modules/levn/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "levn", - "version": "0.4.1", - "author": "George Zahariev ", - "description": "Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible", - "homepage": "https://github.com/gkz/levn", - "keywords": [ - "levn", - "light", - "ecmascript", - "value", - "notation", - "json", - "typed", - "human", - "concise", - "typed", - "flexible" - ], - "files": [ - "lib", - "README.md", - "LICENSE" - ], - "main": "./lib/", - "bugs": "https://github.com/gkz/levn/issues", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/gkz/levn.git" - }, - "scripts": { - "test": "make test" - }, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "devDependencies": { - "livescript": "^1.6.0", - "mocha": "^7.1.1" - } -} diff --git a/graphql/node_modules/locate-path/index.d.ts b/graphql/node_modules/locate-path/index.d.ts deleted file mode 100644 index a714f1d3..00000000 --- a/graphql/node_modules/locate-path/index.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -declare namespace locatePath { - interface Options { - /** - Current working directory. - - @default process.cwd() - */ - readonly cwd?: string; - - /** - Type of path to match. - - @default 'file' - */ - readonly type?: 'file' | 'directory'; - - /** - Allow symbolic links to match if they point to the requested path type. - - @default true - */ - readonly allowSymlinks?: boolean; - } - - interface AsyncOptions extends Options { - /** - Number of concurrently pending promises. Minimum: `1`. - - @default Infinity - */ - readonly concurrency?: number; - - /** - Preserve `paths` order when searching. - - Disable this to improve performance if you don't care about the order. - - @default true - */ - readonly preserveOrder?: boolean; - } -} - -declare const locatePath: { - /** - Synchronously get the first path that exists on disk of multiple paths. - - @param paths - Paths to check. - @returns The first path that exists or `undefined` if none exists. - */ - sync: ( - paths: Iterable, - options?: locatePath.Options - ) => string | undefined; - - /** - Get the first path that exists on disk of multiple paths. - - @param paths - Paths to check. - @returns The first path that exists or `undefined` if none exists. - - @example - ``` - import locatePath = require('locate-path'); - - const files = [ - 'unicorn.png', - 'rainbow.png', // Only this one actually exists on disk - 'pony.png' - ]; - - (async () => { - console(await locatePath(files)); - //=> 'rainbow' - })(); - ``` - */ - (paths: Iterable, options?: locatePath.AsyncOptions): Promise< - string | undefined - >; -}; - -export = locatePath; diff --git a/graphql/node_modules/locate-path/index.js b/graphql/node_modules/locate-path/index.js deleted file mode 100644 index a6358e54..00000000 --- a/graphql/node_modules/locate-path/index.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; -const path = require('path'); -const fs = require('fs'); -const {promisify} = require('util'); -const pLocate = require('p-locate'); - -const fsStat = promisify(fs.stat); -const fsLStat = promisify(fs.lstat); - -const typeMappings = { - directory: 'isDirectory', - file: 'isFile' -}; - -function checkType({type}) { - if (type in typeMappings) { - return; - } - - throw new Error(`Invalid type specified: ${type}`); -} - -const matchType = (type, stat) => type === undefined || stat[typeMappings[type]](); - -module.exports = async (paths, options) => { - options = { - cwd: process.cwd(), - type: 'file', - allowSymlinks: true, - ...options - }; - - checkType(options); - - const statFn = options.allowSymlinks ? fsStat : fsLStat; - - return pLocate(paths, async path_ => { - try { - const stat = await statFn(path.resolve(options.cwd, path_)); - return matchType(options.type, stat); - } catch { - return false; - } - }, options); -}; - -module.exports.sync = (paths, options) => { - options = { - cwd: process.cwd(), - allowSymlinks: true, - type: 'file', - ...options - }; - - checkType(options); - - const statFn = options.allowSymlinks ? fs.statSync : fs.lstatSync; - - for (const path_ of paths) { - try { - const stat = statFn(path.resolve(options.cwd, path_)); - - if (matchType(options.type, stat)) { - return path_; - } - } catch {} - } -}; diff --git a/graphql/node_modules/locate-path/license b/graphql/node_modules/locate-path/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/locate-path/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/locate-path/package.json b/graphql/node_modules/locate-path/package.json deleted file mode 100644 index 08bea50d..00000000 --- a/graphql/node_modules/locate-path/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "locate-path", - "version": "6.0.0", - "description": "Get the first path that exists on disk of multiple paths", - "license": "MIT", - "repository": "sindresorhus/locate-path", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "locate", - "path", - "paths", - "file", - "files", - "exists", - "find", - "finder", - "search", - "searcher", - "array", - "iterable", - "iterator" - ], - "dependencies": { - "p-locate": "^5.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.13.1", - "xo": "^0.32.1" - } -} diff --git a/graphql/node_modules/locate-path/readme.md b/graphql/node_modules/locate-path/readme.md deleted file mode 100644 index 1002bcd6..00000000 --- a/graphql/node_modules/locate-path/readme.md +++ /dev/null @@ -1,125 +0,0 @@ -# locate-path [![Build Status](https://travis-ci.com/sindresorhus/locate-path.svg?branch=master)](https://travis-ci.com/github/sindresorhus/locate-path) - -> Get the first path that exists on disk of multiple paths - -## Install - -``` -$ npm install locate-path -``` - -## Usage - -Here we find the first file that exists on disk, in array order. - -```js -const locatePath = require('locate-path'); - -const files = [ - 'unicorn.png', - 'rainbow.png', // Only this one actually exists on disk - 'pony.png' -]; - -(async () => { - console(await locatePath(files)); - //=> 'rainbow' -})(); -``` - -## API - -### locatePath(paths, options?) - -Returns a `Promise` for the first path that exists or `undefined` if none exists. - -#### paths - -Type: `Iterable` - -Paths to check. - -#### options - -Type: `object` - -##### concurrency - -Type: `number`\ -Default: `Infinity`\ -Minimum: `1` - -Number of concurrently pending promises. - -##### preserveOrder - -Type: `boolean`\ -Default: `true` - -Preserve `paths` order when searching. - -Disable this to improve performance if you don't care about the order. - -##### cwd - -Type: `string`\ -Default: `process.cwd()` - -Current working directory. - -##### type - -Type: `string`\ -Default: `'file'`\ -Values: `'file' | 'directory'` - -The type of paths that can match. - -##### allowSymlinks - -Type: `boolean`\ -Default: `true` - -Allow symbolic links to match if they point to the chosen path type. - -### locatePath.sync(paths, options?) - -Returns the first path that exists or `undefined` if none exists. - -#### paths - -Type: `Iterable` - -Paths to check. - -#### options - -Type: `object` - -##### cwd - -Same as above. - -##### type - -Same as above. - -##### allowSymlinks - -Same as above. - -## Related - -- [path-exists](https://github.com/sindresorhus/path-exists) - Check if a path exists - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/lodash.merge/LICENSE b/graphql/node_modules/lodash.merge/LICENSE deleted file mode 100644 index 77c42f14..00000000 --- a/graphql/node_modules/lodash.merge/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright OpenJS Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/graphql/node_modules/lodash.merge/README.md b/graphql/node_modules/lodash.merge/README.md deleted file mode 100644 index 91b75386..00000000 --- a/graphql/node_modules/lodash.merge/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.merge v4.6.2 - -The [Lodash](https://lodash.com/) method `_.merge` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.merge -``` - -In Node.js: -```js -var merge = require('lodash.merge'); -``` - -See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/4.6.2-npm-packages/lodash.merge) for more details. diff --git a/graphql/node_modules/lodash.merge/index.js b/graphql/node_modules/lodash.merge/index.js deleted file mode 100644 index 8e75d955..00000000 --- a/graphql/node_modules/lodash.merge/index.js +++ /dev/null @@ -1,1977 +0,0 @@ -/** - * Lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used to detect hot functions by number of calls within a span of milliseconds. */ -var HOT_COUNT = 800, - HOT_SPAN = 16; - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - asyncTag = '[object AsyncFunction]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - nullTag = '[object Null]', - objectTag = '[object Object]', - proxyTag = '[object Proxy]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - undefinedTag = '[object Undefined]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - // Use `util.types` for Node.js 10+. - var types = freeModule && freeModule.require && freeModule.require('util').types; - - if (types) { - return types; - } - - // Legacy `process.binding('util')` for Node.js < 10. - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} -}()); - -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - -/** - * A faster alternative to `Function#apply`, this function invokes `func` - * with the `this` binding of `thisArg` and the arguments of `args`. - * - * @private - * @param {Function} func The function to invoke. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} args The arguments to invoke `func` with. - * @returns {*} Returns the result of `func`. - */ -function apply(func, thisArg, args) { - switch (args.length) { - case 0: return func.call(thisArg); - case 1: return func.call(thisArg, args[0]); - case 2: return func.call(thisArg, args[0], args[1]); - case 3: return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); -} - -/** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ -function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - return result; -} - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined, - Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, - getPrototype = overArg(Object.getPrototypeOf, Object), - objectCreate = Object.create, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice, - symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeMax = Math.max, - nativeNow = Date.now; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. - */ -var baseCreate = (function() { - function object() {} - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result = new object; - object.prototype = undefined; - return result; - }; -}()); - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; - this.size = 0; -} - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; -} - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -/** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ -function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); - } - } - return result; -} - -/** - * This function is like `assignValue` except that it doesn't assign - * `undefined` values. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignMergeValue(object, key, value) { - if ((value !== undefined && !eq(object[key], value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); - } -} - -/** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); - } -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `assignValue` and `assignMergeValue` without - * value checks. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function baseAssignValue(object, key, value) { - if (key == '__proto__' && defineProperty) { - defineProperty(object, key, { - 'configurable': true, - 'enumerable': true, - 'value': value, - 'writable': true - }); - } else { - object[key] = value; - } -} - -/** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ -var baseFor = createBaseFor(); - -/** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -/** - * The base implementation of `_.isArguments`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - */ -function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; -} - -/** - * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), - result = []; - - for (var key in object) { - if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; -} - -/** - * The base implementation of `_.merge` without support for multiple sources. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {number} srcIndex The index of `source`. - * @param {Function} [customizer] The function to customize merged values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ -function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack); - if (isObject(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } - else { - var newValue = customizer - ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) - : undefined; - - if (newValue === undefined) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); -} - -/** - * A specialized version of `baseMerge` for arrays and objects which performs - * deep merges and tracks traversed objects enabling objects with circular - * references to be merged. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {string} key The key of the value to merge. - * @param {number} srcIndex The index of `source`. - * @param {Function} mergeFunc The function to merge values. - * @param {Function} [customizer] The function to customize assigned values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ -function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = safeGet(object, key), - srcValue = safeGet(source, key), - stacked = stack.get(srcValue); - - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer - ? customizer(objValue, srcValue, (key + ''), object, source, stack) - : undefined; - - var isCommon = newValue === undefined; - - if (isCommon) { - var isArr = isArray(srcValue), - isBuff = !isArr && isBuffer(srcValue), - isTyped = !isArr && !isBuff && isTypedArray(srcValue); - - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } - else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } - else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } - else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } - else { - newValue = []; - } - } - else if (isPlainObject(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } - else if (!isObject(objValue) || isFunction(objValue)) { - newValue = initCloneObject(srcValue); - } - } - else { - isCommon = false; - } - } - if (isCommon) { - // Recursively merge objects and arrays (susceptible to call stack limits). - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack['delete'](srcValue); - } - assignMergeValue(object, key, newValue); -} - -/** - * The base implementation of `_.rest` which doesn't validate or coerce arguments. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - */ -function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ''); -} - -/** - * The base implementation of `setToString` without support for hot loop shorting. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ -var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, 'toString', { - 'configurable': true, - 'enumerable': false, - 'value': constant(string), - 'writable': true - }); -}; - -/** - * Creates a clone of `buffer`. - * - * @private - * @param {Buffer} buffer The buffer to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Buffer} Returns the cloned buffer. - */ -function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, - result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - - buffer.copy(result); - return result; -} - -/** - * Creates a clone of `arrayBuffer`. - * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ -function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; -} - -/** - * Creates a clone of `typedArray`. - * - * @private - * @param {Object} typedArray The typed array to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned typed array. - */ -function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); -} - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -/** - * Copies properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy properties from. - * @param {Array} props The property identifiers to copy. - * @param {Object} [object={}] The object to copy properties to. - * @param {Function} [customizer] The function to customize copied values. - * @returns {Object} Returns `object`. - */ -function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - - var newValue = customizer - ? customizer(object[key], source[key], key, object, source) - : undefined; - - if (newValue === undefined) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; -} - -/** - * Creates a function like `_.assign`. - * - * @private - * @param {Function} assigner The function to assign values. - * @returns {Function} Returns the new assigner function. - */ -function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, - length = sources.length, - customizer = length > 1 ? sources[length - 1] : undefined, - guard = length > 2 ? sources[2] : undefined; - - customizer = (assigner.length > 3 && typeof customizer == 'function') - ? (length--, customizer) - : undefined; - - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined : customizer; - length = 1; - } - object = Object(object); - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); -} - -/** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ -function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; -} - -/** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneObject(object) { - return (typeof object.constructor == 'function' && !isPrototype(object)) - ? baseCreate(getPrototype(object)) - : {}; -} - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - - return !!length && - (type == 'number' || - (type != 'symbol' && reIsUint.test(value))) && - (value > -1 && value % 1 == 0 && value < length); -} - -/** - * Checks if the given arguments are from an iteratee call. - * - * @private - * @param {*} value The potential iteratee value argument. - * @param {*} index The potential iteratee index or key argument. - * @param {*} object The potential iteratee object argument. - * @returns {boolean} Returns `true` if the arguments are from an iteratee call, - * else `false`. - */ -function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index; - if (type == 'number' - ? (isArrayLike(object) && isIndex(index, object.length)) - : (type == 'string' && index in object) - ) { - return eq(object[index], value); - } - return false; -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ -function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; - - return value === proto; -} - -/** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; -} - -/** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ -function objectToString(value) { - return nativeObjectToString.call(value); -} - -/** - * A specialized version of `baseRest` which transforms the rest array. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @param {Function} transform The rest array transform. - * @returns {Function} Returns the new function. - */ -function overRest(func, start, transform) { - start = nativeMax(start === undefined ? (func.length - 1) : start, 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; -} - -/** - * Gets the value at `key`, unless `key` is "__proto__" or "constructor". - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function safeGet(object, key) { - if (key === 'constructor' && typeof object[key] === 'function') { - return; - } - - if (key == '__proto__') { - return; - } - - return object[key]; -} - -/** - * Sets the `toString` method of `func` to return `string`. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ -var setToString = shortOut(baseSetToString); - -/** - * Creates a function that'll short out and invoke `identity` instead - * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` - * milliseconds. - * - * @private - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new shortable function. - */ -function shortOut(func) { - var count = 0, - lastCalled = 0; - - return function() { - var stamp = nativeNow(), - remaining = HOT_SPAN - (stamp - lastCalled); - - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined, arguments); - }; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to convert. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ -var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); -}; - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ -function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); -} - -/** - * This method is like `_.isArrayLike` except that it also checks if `value` - * is an object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array-like object, - * else `false`. - * @example - * - * _.isArrayLikeObject([1, 2, 3]); - * // => true - * - * _.isArrayLikeObject(document.body.children); - * // => true - * - * _.isArrayLikeObject('abc'); - * // => false - * - * _.isArrayLikeObject(_.noop); - * // => false - */ -function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); -} - -/** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return value != null && typeof value == 'object'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return typeof Ctor == 'function' && Ctor instanceof Ctor && - funcToString.call(Ctor) == objectCtorString; -} - -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - -/** - * Converts `value` to a plain object flattening inherited enumerable string - * keyed properties of `value` to own properties of the plain object. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {Object} Returns the converted plain object. - * @example - * - * function Foo() { - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.assign({ 'a': 1 }, new Foo); - * // => { 'a': 1, 'b': 2 } - * - * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); - * // => { 'a': 1, 'b': 2, 'c': 3 } - */ -function toPlainObject(value) { - return copyObject(value, keysIn(value)); -} - -/** - * Creates an array of the own and inherited enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keysIn(new Foo); - * // => ['a', 'b', 'c'] (iteration order is not guaranteed) - */ -function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); -} - -/** - * This method is like `_.assign` except that it recursively merges own and - * inherited enumerable string keyed properties of source objects into the - * destination object. Source properties that resolve to `undefined` are - * skipped if a destination value exists. Array and plain object properties - * are merged recursively. Other objects and value types are overridden by - * assignment. Source objects are applied from left to right. Subsequent - * sources overwrite property assignments of previous sources. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 0.5.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @example - * - * var object = { - * 'a': [{ 'b': 2 }, { 'd': 4 }] - * }; - * - * var other = { - * 'a': [{ 'c': 3 }, { 'e': 5 }] - * }; - * - * _.merge(object, other); - * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } - */ -var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); -}); - -/** - * Creates a function that returns `value`. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {*} value The value to return from the new function. - * @returns {Function} Returns the new constant function. - * @example - * - * var objects = _.times(2, _.constant({ 'a': 1 })); - * - * console.log(objects); - * // => [{ 'a': 1 }, { 'a': 1 }] - * - * console.log(objects[0] === objects[1]); - * // => true - */ -function constant(value) { - return function() { - return value; - }; -} - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -/** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = merge; diff --git a/graphql/node_modules/lodash.merge/package.json b/graphql/node_modules/lodash.merge/package.json deleted file mode 100644 index 3130fc8f..00000000 --- a/graphql/node_modules/lodash.merge/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "lodash.merge", - "version": "4.6.2", - "description": "The Lodash method `_.merge` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "keywords": "lodash-modularized, merge", - "author": "John-David Dalton ", - "contributors": [ - "John-David Dalton ", - "Mathias Bynens " - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/graphql/node_modules/merge2/LICENSE b/graphql/node_modules/merge2/LICENSE deleted file mode 100644 index 31dd9c72..00000000 --- a/graphql/node_modules/merge2/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2020 Teambition - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/merge2/README.md b/graphql/node_modules/merge2/README.md deleted file mode 100644 index 27f8eb99..00000000 --- a/graphql/node_modules/merge2/README.md +++ /dev/null @@ -1,144 +0,0 @@ -# merge2 - -Merge multiple streams into one stream in sequence or parallel. - -[![NPM version][npm-image]][npm-url] -[![Build Status][travis-image]][travis-url] -[![Downloads][downloads-image]][downloads-url] - -## Install - -Install with [npm](https://npmjs.org/package/merge2) - -```sh -npm install merge2 -``` - -## Usage - -```js -const gulp = require('gulp') -const merge2 = require('merge2') -const concat = require('gulp-concat') -const minifyHtml = require('gulp-minify-html') -const ngtemplate = require('gulp-ngtemplate') - -gulp.task('app-js', function () { - return merge2( - gulp.src('static/src/tpl/*.html') - .pipe(minifyHtml({empty: true})) - .pipe(ngtemplate({ - module: 'genTemplates', - standalone: true - }) - ), gulp.src([ - 'static/src/js/app.js', - 'static/src/js/locale_zh-cn.js', - 'static/src/js/router.js', - 'static/src/js/tools.js', - 'static/src/js/services.js', - 'static/src/js/filters.js', - 'static/src/js/directives.js', - 'static/src/js/controllers.js' - ]) - ) - .pipe(concat('app.js')) - .pipe(gulp.dest('static/dist/js/')) -}) -``` - -```js -const stream = merge2([stream1, stream2], stream3, {end: false}) -//... -stream.add(stream4, stream5) -//.. -stream.end() -``` - -```js -// equal to merge2([stream1, stream2], stream3) -const stream = merge2() -stream.add([stream1, stream2]) -stream.add(stream3) -``` - -```js -// merge order: -// 1. merge `stream1`; -// 2. merge `stream2` and `stream3` in parallel after `stream1` merged; -// 3. merge 'stream4' after `stream2` and `stream3` merged; -const stream = merge2(stream1, [stream2, stream3], stream4) - -// merge order: -// 1. merge `stream5` and `stream6` in parallel after `stream4` merged; -// 2. merge 'stream7' after `stream5` and `stream6` merged; -stream.add([stream5, stream6], stream7) -``` - -```js -// nest merge -// equal to merge2(stream1, stream2, stream6, stream3, [stream4, stream5]); -const streamA = merge2(stream1, stream2) -const streamB = merge2(stream3, [stream4, stream5]) -const stream = merge2(streamA, streamB) -streamA.add(stream6) -``` - -## API - -```js -const merge2 = require('merge2') -``` - -### merge2() - -### merge2(options) - -### merge2(stream1, stream2, ..., streamN) - -### merge2(stream1, stream2, ..., streamN, options) - -### merge2(stream1, [stream2, stream3, ...], streamN, options) - -return a duplex stream (mergedStream). streams in array will be merged in parallel. - -### mergedStream.add(stream) - -### mergedStream.add(stream1, [stream2, stream3, ...], ...) - -return the mergedStream. - -### mergedStream.on('queueDrain', function() {}) - -It will emit 'queueDrain' when all streams merged. If you set `end === false` in options, this event give you a notice that should add more streams to merge or end the mergedStream. - -#### stream - -*option* -Type: `Readable` or `Duplex` or `Transform` stream. - -#### options - -*option* -Type: `Object`. - -* **end** - `Boolean` - if `end === false` then mergedStream will not be auto ended, you should end by yourself. **Default:** `undefined` - -* **pipeError** - `Boolean` - if `pipeError === true` then mergedStream will emit `error` event from source streams. **Default:** `undefined` - -* **objectMode** - `Boolean` . **Default:** `true` - -`objectMode` and other options(`highWaterMark`, `defaultEncoding` ...) is same as Node.js `Stream`. - -## License - -MIT © [Teambition](https://www.teambition.com) - -[npm-url]: https://npmjs.org/package/merge2 -[npm-image]: http://img.shields.io/npm/v/merge2.svg - -[travis-url]: https://travis-ci.org/teambition/merge2 -[travis-image]: http://img.shields.io/travis/teambition/merge2.svg - -[downloads-url]: https://npmjs.org/package/merge2 -[downloads-image]: http://img.shields.io/npm/dm/merge2.svg?style=flat-square diff --git a/graphql/node_modules/merge2/index.js b/graphql/node_modules/merge2/index.js deleted file mode 100644 index 78a61edf..00000000 --- a/graphql/node_modules/merge2/index.js +++ /dev/null @@ -1,144 +0,0 @@ -'use strict' -/* - * merge2 - * https://github.com/teambition/merge2 - * - * Copyright (c) 2014-2020 Teambition - * Licensed under the MIT license. - */ -const Stream = require('stream') -const PassThrough = Stream.PassThrough -const slice = Array.prototype.slice - -module.exports = merge2 - -function merge2 () { - const streamsQueue = [] - const args = slice.call(arguments) - let merging = false - let options = args[args.length - 1] - - if (options && !Array.isArray(options) && options.pipe == null) { - args.pop() - } else { - options = {} - } - - const doEnd = options.end !== false - const doPipeError = options.pipeError === true - if (options.objectMode == null) { - options.objectMode = true - } - if (options.highWaterMark == null) { - options.highWaterMark = 64 * 1024 - } - const mergedStream = PassThrough(options) - - function addStream () { - for (let i = 0, len = arguments.length; i < len; i++) { - streamsQueue.push(pauseStreams(arguments[i], options)) - } - mergeStream() - return this - } - - function mergeStream () { - if (merging) { - return - } - merging = true - - let streams = streamsQueue.shift() - if (!streams) { - process.nextTick(endStream) - return - } - if (!Array.isArray(streams)) { - streams = [streams] - } - - let pipesCount = streams.length + 1 - - function next () { - if (--pipesCount > 0) { - return - } - merging = false - mergeStream() - } - - function pipe (stream) { - function onend () { - stream.removeListener('merge2UnpipeEnd', onend) - stream.removeListener('end', onend) - if (doPipeError) { - stream.removeListener('error', onerror) - } - next() - } - function onerror (err) { - mergedStream.emit('error', err) - } - // skip ended stream - if (stream._readableState.endEmitted) { - return next() - } - - stream.on('merge2UnpipeEnd', onend) - stream.on('end', onend) - - if (doPipeError) { - stream.on('error', onerror) - } - - stream.pipe(mergedStream, { end: false }) - // compatible for old stream - stream.resume() - } - - for (let i = 0; i < streams.length; i++) { - pipe(streams[i]) - } - - next() - } - - function endStream () { - merging = false - // emit 'queueDrain' when all streams merged. - mergedStream.emit('queueDrain') - if (doEnd) { - mergedStream.end() - } - } - - mergedStream.setMaxListeners(0) - mergedStream.add = addStream - mergedStream.on('unpipe', function (stream) { - stream.emit('merge2UnpipeEnd') - }) - - if (args.length) { - addStream.apply(null, args) - } - return mergedStream -} - -// check and pause streams for pipe. -function pauseStreams (streams, options) { - if (!Array.isArray(streams)) { - // Backwards-compat with old-style streams - if (!streams._readableState && streams.pipe) { - streams = streams.pipe(PassThrough(options)) - } - if (!streams._readableState || !streams.pause || !streams.pipe) { - throw new Error('Only readable stream can be merged.') - } - streams.pause() - } else { - for (let i = 0, len = streams.length; i < len; i++) { - streams[i] = pauseStreams(streams[i], options) - } - } - return streams -} diff --git a/graphql/node_modules/merge2/package.json b/graphql/node_modules/merge2/package.json deleted file mode 100644 index 7777307f..00000000 --- a/graphql/node_modules/merge2/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "merge2", - "description": "Merge multiple streams into one stream in sequence or parallel.", - "authors": [ - "Yan Qing " - ], - "license": "MIT", - "version": "1.4.1", - "main": "./index.js", - "repository": { - "type": "git", - "url": "git@github.com:teambition/merge2.git" - }, - "homepage": "https://github.com/teambition/merge2", - "keywords": [ - "merge2", - "multiple", - "sequence", - "parallel", - "merge", - "stream", - "merge stream", - "sync" - ], - "engines": { - "node": ">= 8" - }, - "dependencies": {}, - "devDependencies": { - "standard": "^14.3.4", - "through2": "^3.0.1", - "thunks": "^4.9.6", - "tman": "^1.10.0", - "to-through": "^2.0.0" - }, - "scripts": { - "test": "standard && tman" - }, - "files": [ - "README.md", - "index.js" - ] -} diff --git a/graphql/node_modules/micromatch/LICENSE b/graphql/node_modules/micromatch/LICENSE deleted file mode 100755 index 9af4a67d..00000000 --- a/graphql/node_modules/micromatch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/micromatch/README.md b/graphql/node_modules/micromatch/README.md deleted file mode 100644 index 68b4637e..00000000 --- a/graphql/node_modules/micromatch/README.md +++ /dev/null @@ -1,1017 +0,0 @@ -# micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Tests](https://github.com/micromatch/micromatch/actions/workflows/test.yml/badge.svg)](https://github.com/micromatch/micromatch/actions/workflows/test.yml) - -> Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Table of Contents - -
-Details - - * [Install](#install) -- [Sponsors](#sponsors) - * [Gold Sponsors](#gold-sponsors) - * [Quickstart](#quickstart) - * [Why use micromatch?](#why-use-micromatch) - + [Matching features](#matching-features) - * [Switching to micromatch](#switching-to-micromatch) - + [From minimatch](#from-minimatch) - + [From multimatch](#from-multimatch) - * [API](#api) - * [Options](#options) - * [Options Examples](#options-examples) - + [options.basename](#optionsbasename) - + [options.bash](#optionsbash) - + [options.expandRange](#optionsexpandrange) - + [options.format](#optionsformat) - + [options.ignore](#optionsignore) - + [options.matchBase](#optionsmatchbase) - + [options.noextglob](#optionsnoextglob) - + [options.nonegate](#optionsnonegate) - + [options.noglobstar](#optionsnoglobstar) - + [options.nonull](#optionsnonull) - + [options.nullglob](#optionsnullglob) - + [options.onIgnore](#optionsonignore) - + [options.onMatch](#optionsonmatch) - + [options.onResult](#optionsonresult) - + [options.posixSlashes](#optionsposixslashes) - + [options.unescape](#optionsunescape) - * [Extended globbing](#extended-globbing) - + [Extglobs](#extglobs) - + [Braces](#braces) - + [Regex character classes](#regex-character-classes) - + [Regex groups](#regex-groups) - + [POSIX bracket expressions](#posix-bracket-expressions) - * [Notes](#notes) - + [Bash 4.3 parity](#bash-43-parity) - + [Backslashes](#backslashes) - * [Benchmarks](#benchmarks) - + [Running benchmarks](#running-benchmarks) - + [Latest results](#latest-results) - * [Contributing](#contributing) - * [About](#about) - -
- -## Install - -Install with [npm](https://www.npmjs.com/) (requires [Node.js](https://nodejs.org/en/) >=8.6): - -```sh -$ npm install --save micromatch -``` - -
- -# Sponsors - -[Become a Sponsor](https://github.com/sponsors/jonschlinkert) to add your logo to this README, or any of [my other projects](https://github.com/jonschlinkert?tab=repositories&q=&type=&language=&sort=stargazers) - -
- -## Quickstart - -```js -const micromatch = require('micromatch'); -// micromatch(list, patterns[, options]); -``` - -The [main export](#micromatch) takes a list of strings and one or more glob patterns: - -```js -console.log(micromatch(['foo', 'bar', 'baz', 'qux'], ['f*', 'b*'])) //=> ['foo', 'bar', 'baz'] -console.log(micromatch(['foo', 'bar', 'baz', 'qux'], ['*', '!b*'])) //=> ['foo', 'qux'] -``` - -Use [.isMatch()](#ismatch) to for boolean matching: - -```js -console.log(micromatch.isMatch('foo', 'f*')) //=> true -console.log(micromatch.isMatch('foo', ['b*', 'f*'])) //=> true -``` - -[Switching](#switching-to-micromatch) from minimatch and multimatch is easy! - -
- -## Why use micromatch? - -> micromatch is a [replacement](#switching-to-micromatch) for minimatch and multimatch - -- Supports all of the same matching features as [minimatch][] and [multimatch][] -- More complete support for the Bash 4.3 specification than minimatch and multimatch. Micromatch passes _all of the spec tests_ from bash, including some that bash still fails. -- **Fast & Performant** - Loads in about 5ms and performs [fast matches](#benchmarks). -- **Glob matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories -- **[Advanced globbing](#extended-globbing)** - Supports [extglobs](#extglobs), [braces](#braces-1), and [POSIX brackets](#posix-bracket-expressions), and support for escaping special characters with `\` or quotes. -- **Accurate** - Covers more scenarios [than minimatch](https://github.com/yarnpkg/yarn/pull/3339) -- **Well tested** - More than 5,000 [test assertions](./test) -- **Windows support** - More reliable windows support than minimatch and multimatch. -- **[Safe][braces]{#braces-is-safe}** - Micromatch is not subject to DoS with brace patterns like minimatch and multimatch. - -### Matching features - -* Support for multiple glob patterns (no need for wrappers like multimatch) -* Wildcards (`**`, `*.js`) -* Negation (`'!a/*.js'`, `'*!(b).js'`) -* [extglobs](#extglobs) (`+(x|y)`, `!(a|b)`) -* [POSIX character classes](#posix-bracket-expressions) (`[[:alpha:][:digit:]]`) -* [brace expansion][braces] (`foo/{1..5}.md`, `bar/{a,b,c}.js`) -* regex character classes (`foo-[1-5].js`) -* regex logical "or" (`foo/(abc|xyz).js`) - -You can mix and match these features to create whatever patterns you need! - -## Switching to micromatch - -_(There is one notable difference between micromatch and minimatch in regards to how backslashes are handled. See [the notes about backslashes](#backslashes) for more information.)_ - -### From minimatch - -Use [micromatch.isMatch()](#ismatch) instead of `minimatch()`: - -```js -console.log(micromatch.isMatch('foo', 'b*')); //=> false -``` - -Use [micromatch.match()](#match) instead of `minimatch.match()`: - -```js -console.log(micromatch.match(['foo', 'bar'], 'b*')); //=> 'bar' -``` - -### From multimatch - -Same signature: - -```js -console.log(micromatch(['foo', 'bar', 'baz'], ['f*', '*z'])); //=> ['foo', 'baz'] -``` - -## API - -**Params** - -* `list` **{String|Array}**: List of strings to match. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `options` **{Object}**: See available [options](#options) -* `returns` **{Array}**: Returns an array of matches - -**Example** - -```js -const mm = require('micromatch'); -// mm(list, patterns[, options]); - -console.log(mm(['a.js', 'a.txt'], ['*.js'])); -//=> [ 'a.js' ] -``` - -### [.matcher](index.js#L104) -Returns a matcher function from the given glob `pattern` and `options`. The returned function takes a string to match as its only argument and returns true if the string is a match. - -**Params** - -* `pattern` **{String}**: Glob pattern -* `options` **{Object}** -* `returns` **{Function}**: Returns a matcher function. - -**Example** - -```js -const mm = require('micromatch'); -// mm.matcher(pattern[, options]); - -const isMatch = mm.matcher('*.!(*a)'); -console.log(isMatch('a.a')); //=> false -console.log(isMatch('a.b')); //=> true -``` - -### [.isMatch](index.js#L123) -Returns true if **any** of the given glob `patterns` match the specified `string`. - -**Params** - -* `str` **{String}**: The string to test. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `[options]` **{Object}**: See available [options](#options). -* `returns` **{Boolean}**: Returns true if any patterns match `str` - -**Example** - -```js -const mm = require('micromatch'); -// mm.isMatch(string, patterns[, options]); - -console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true -console.log(mm.isMatch('a.a', 'b.*')); //=> false -``` - -### [.not](index.js#L148) -Returns a list of strings that _**do not match any**_ of the given `patterns`. - -**Params** - -* `list` **{Array}**: Array of strings to match. -* `patterns` **{String|Array}**: One or more glob pattern to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Array}**: Returns an array of strings that **do not match** the given patterns. - -**Example** - -```js -const mm = require('micromatch'); -// mm.not(list, patterns[, options]); - -console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a')); -//=> ['b.b', 'c.c'] -``` - -### [.contains](index.js#L188) -Returns true if the given `string` contains the given pattern. Similar to [.isMatch](#isMatch) but the pattern can match any part of the string. - -**Params** - -* `str` **{String}**: The string to match. -* `patterns` **{String|Array}**: Glob pattern to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Boolean}**: Returns true if any of the patterns matches any part of `str`. - -**Example** - -```js -var mm = require('micromatch'); -// mm.contains(string, pattern[, options]); - -console.log(mm.contains('aa/bb/cc', '*b')); -//=> true -console.log(mm.contains('aa/bb/cc', '*d')); -//=> false -``` - -### [.matchKeys](index.js#L230) -Filter the keys of the given object with the given `glob` pattern and `options`. Does not attempt to match nested keys. If you need this feature, use [glob-object][] instead. - -**Params** - -* `object` **{Object}**: The object with keys to filter. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Object}**: Returns an object with only keys that match the given patterns. - -**Example** - -```js -const mm = require('micromatch'); -// mm.matchKeys(object, patterns[, options]); - -const obj = { aa: 'a', ab: 'b', ac: 'c' }; -console.log(mm.matchKeys(obj, '*b')); -//=> { ab: 'b' } -``` - -### [.some](index.js#L259) -Returns true if some of the strings in the given `list` match any of the given glob `patterns`. - -**Params** - -* `list` **{String|Array}**: The string or array of strings to test. Returns as soon as the first match is found. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Boolean}**: Returns true if any `patterns` matches any of the strings in `list` - -**Example** - -```js -const mm = require('micromatch'); -// mm.some(list, patterns[, options]); - -console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js'])); -// true -console.log(mm.some(['foo.js'], ['*.js', '!foo.js'])); -// false -``` - -### [.every](index.js#L295) -Returns true if every string in the given `list` matches any of the given glob `patterns`. - -**Params** - -* `list` **{String|Array}**: The string or array of strings to test. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Boolean}**: Returns true if all `patterns` matches all of the strings in `list` - -**Example** - -```js -const mm = require('micromatch'); -// mm.every(list, patterns[, options]); - -console.log(mm.every('foo.js', ['foo.js'])); -// true -console.log(mm.every(['foo.js', 'bar.js'], ['*.js'])); -// true -console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js'])); -// false -console.log(mm.every(['foo.js'], ['*.js', '!foo.js'])); -// false -``` - -### [.all](index.js#L334) -Returns true if **all** of the given `patterns` match the specified string. - -**Params** - -* `str` **{String|Array}**: The string to test. -* `patterns` **{String|Array}**: One or more glob patterns to use for matching. -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Boolean}**: Returns true if any patterns match `str` - -**Example** - -```js -const mm = require('micromatch'); -// mm.all(string, patterns[, options]); - -console.log(mm.all('foo.js', ['foo.js'])); -// true - -console.log(mm.all('foo.js', ['*.js', '!foo.js'])); -// false - -console.log(mm.all('foo.js', ['*.js', 'foo.js'])); -// true - -console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js'])); -// true -``` - -### [.capture](index.js#L361) -Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match. - -**Params** - -* `glob` **{String}**: Glob pattern to use for matching. -* `input` **{String}**: String to match -* `options` **{Object}**: See available [options](#options) for changing how matches are performed -* `returns` **{Array|null}**: Returns an array of captures if the input matches the glob pattern, otherwise `null`. - -**Example** - -```js -const mm = require('micromatch'); -// mm.capture(pattern, string[, options]); - -console.log(mm.capture('test/*.js', 'test/foo.js')); -//=> ['foo'] -console.log(mm.capture('test/*.js', 'foo/bar.css')); -//=> null -``` - -### [.makeRe](index.js#L387) -Create a regular expression from the given glob `pattern`. - -**Params** - -* `pattern` **{String}**: A glob pattern to convert to regex. -* `options` **{Object}** -* `returns` **{RegExp}**: Returns a regex created from the given pattern. - -**Example** - -```js -const mm = require('micromatch'); -// mm.makeRe(pattern[, options]); - -console.log(mm.makeRe('*.js')); -//=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/ -``` - -### [.scan](index.js#L403) -Scan a glob pattern to separate the pattern into segments. Used by the [split](#split) method. - -**Params** - -* `pattern` **{String}** -* `options` **{Object}** -* `returns` **{Object}**: Returns an object with - -**Example** - -```js -const mm = require('micromatch'); -const state = mm.scan(pattern[, options]); -``` - -### [.parse](index.js#L419) -Parse a glob pattern to create the source string for a regular expression. - -**Params** - -* `glob` **{String}** -* `options` **{Object}** -* `returns` **{Object}**: Returns an object with useful properties and output to be used as regex source string. - -**Example** - -```js -const mm = require('micromatch'); -const state = mm.parse(pattern[, options]); -``` - -### [.braces](index.js#L446) -Process the given brace `pattern`. - -**Params** - -* `pattern` **{String}**: String with brace pattern to process. -* `options` **{Object}**: Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options. -* `returns` **{Array}** - -**Example** - -```js -const { braces } = require('micromatch'); -console.log(braces('foo/{a,b,c}/bar')); -//=> [ 'foo/(a|b|c)/bar' ] - -console.log(braces('foo/{a,b,c}/bar', { expand: true })); -//=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ] -``` - -## Options - -| **Option** | **Type** | **Default value** | **Description** | -| --- | --- | --- | --- | -| `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. | -| `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). | -| `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. | -| `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). | -| `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` | -| `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. | -| `dot` | `boolean` | `false` | Match dotfiles. Otherwise dotfiles are ignored unless a `.` is explicitly defined in the pattern. | -| `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. This option is overridden by the `expandBrace` option. | -| `failglob` | `boolean` | `false` | Similar to the `failglob` behavior in Bash, throws an error when no matches are found. Based on the bash option of the same name. | -| `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. | -| `flags` | `boolean` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. | -| [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. | -| `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. | -| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. | -| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. | -| `lookbehinds` | `boolean` | `true` | Support regex positive and negative lookbehinds. Note that you must be using Node 8.1.10 or higher to enable regex lookbehinds. | -| `matchBase` | `boolean` | `false` | Alias for `basename` | -| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. | -| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | -| `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. | -| `nocase` | `boolean` | `false` | Perform case-insensitive matching. Equivalent to the regex `i` flag. Note that this option is ignored when the `flags` option is defined. | -| `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. | -| `noext` | `boolean` | `false` | Alias for `noextglob` | -| `noextglob` | `boolean` | `false` | Disable support for matching with [extglobs](#extglobs) (like `+(a\|b)`) | -| `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) | -| `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` | -| `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. | -| [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. | -| [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. | -| [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. | -| `posix` | `boolean` | `false` | Support [POSIX character classes](#posix-bracket-expressions) ("posix brackets"). | -| `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself | -| `prepend` | `string` | `undefined` | String to prepend to the generated regex used for matching. | -| `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). | -| `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. | -| `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. | -| `unescape` | `boolean` | `undefined` | Remove preceding backslashes from escaped glob characters before creating the regular expression to perform matches. | -| `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatitibility. | - -## Options Examples - -### options.basename - -Allow glob patterns without slashes to match a file path based on its basename. Same behavior as [minimatch][] option `matchBase`. - -**Type**: `Boolean` - -**Default**: `false` - -**Example** - -```js -micromatch(['a/b.js', 'a/c.md'], '*.js'); -//=> [] - -micromatch(['a/b.js', 'a/c.md'], '*.js', { basename: true }); -//=> ['a/b.js'] -``` - -### options.bash - -Enabled by default, this option enforces bash-like behavior with stars immediately following a bracket expression. Bash bracket expressions are similar to regex character classes, but unlike regex, a star following a bracket expression **does not repeat the bracketed characters**. Instead, the star is treated the same as any other star. - -**Type**: `Boolean` - -**Default**: `true` - -**Example** - -```js -const files = ['abc', 'ajz']; -console.log(micromatch(files, '[a-c]*')); -//=> ['abc', 'ajz'] - -console.log(micromatch(files, '[a-c]*', { bash: false })); -``` - -### options.expandRange - -**Type**: `function` - -**Default**: `undefined` - -Custom function for expanding ranges in brace patterns. The [fill-range][] library is ideal for this purpose, or you can use custom code to do whatever you need. - -**Example** - -The following example shows how to create a glob that matches a numeric folder name between `01` and `25`, with leading zeros. - -```js -const fill = require('fill-range'); -const regex = micromatch.makeRe('foo/{01..25}/bar', { - expandRange(a, b) { - return `(${fill(a, b, { toRegex: true })})`; - } -}); - -console.log(regex) -//=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/ - -console.log(regex.test('foo/00/bar')) // false -console.log(regex.test('foo/01/bar')) // true -console.log(regex.test('foo/10/bar')) // true -console.log(regex.test('foo/22/bar')) // true -console.log(regex.test('foo/25/bar')) // true -console.log(regex.test('foo/26/bar')) // false -``` - -### options.format - -**Type**: `function` - -**Default**: `undefined` - -Custom function for formatting strings before they're matched. - -**Example** - -```js -// strip leading './' from strings -const format = str => str.replace(/^\.\//, ''); -const isMatch = picomatch('foo/*.js', { format }); -console.log(isMatch('./foo/bar.js')) //=> true -``` - -### options.ignore - -String or array of glob patterns to match files to ignore. - -**Type**: `String|Array` - -**Default**: `undefined` - -```js -const isMatch = micromatch.matcher('*', { ignore: 'f*' }); -console.log(isMatch('foo')) //=> false -console.log(isMatch('bar')) //=> true -console.log(isMatch('baz')) //=> true -``` - -### options.matchBase - -Alias for [options.basename](#options-basename). - -### options.noextglob - -Disable extglob support, so that [extglobs](#extglobs) are regarded as literal characters. - -**Type**: `Boolean` - -**Default**: `undefined` - -**Examples** - -```js -console.log(micromatch(['a/z', 'a/b', 'a/!(z)'], 'a/!(z)')); -//=> ['a/b', 'a/!(z)'] - -console.log(micromatch(['a/z', 'a/b', 'a/!(z)'], 'a/!(z)', { noextglob: true })); -//=> ['a/!(z)'] (matches only as literal characters) -``` - -### options.nonegate - -Disallow negation (`!`) patterns, and treat leading `!` as a literal character to match. - -**Type**: `Boolean` - -**Default**: `undefined` - -### options.noglobstar - -Disable matching with globstars (`**`). - -**Type**: `Boolean` - -**Default**: `undefined` - -```js -micromatch(['a/b', 'a/b/c', 'a/b/c/d'], 'a/**'); -//=> ['a/b', 'a/b/c', 'a/b/c/d'] - -micromatch(['a/b', 'a/b/c', 'a/b/c/d'], 'a/**', {noglobstar: true}); -//=> ['a/b'] -``` - -### options.nonull - -Alias for [options.nullglob](#options-nullglob). - -### options.nullglob - -If `true`, when no matches are found the actual (arrayified) glob pattern is returned instead of an empty array. Same behavior as [minimatch][] option `nonull`. - -**Type**: `Boolean` - -**Default**: `undefined` - -### options.onIgnore - -```js -const onIgnore = ({ glob, regex, input, output }) => { - console.log({ glob, regex, input, output }); - // { glob: '*', regex: /^(?:(?!\.)(?=.)[^\/]*?\/?)$/, input: 'foo', output: 'foo' } -}; - -const isMatch = micromatch.matcher('*', { onIgnore, ignore: 'f*' }); -isMatch('foo'); -isMatch('bar'); -isMatch('baz'); -``` - -### options.onMatch - -```js -const onMatch = ({ glob, regex, input, output }) => { - console.log({ input, output }); - // { input: 'some\\path', output: 'some/path' } - // { input: 'some\\path', output: 'some/path' } - // { input: 'some\\path', output: 'some/path' } -}; - -const isMatch = micromatch.matcher('**', { onMatch, posixSlashes: true }); -isMatch('some\\path'); -isMatch('some\\path'); -isMatch('some\\path'); -``` - -### options.onResult - -```js -const onResult = ({ glob, regex, input, output }) => { - console.log({ glob, regex, input, output }); -}; - -const isMatch = micromatch('*', { onResult, ignore: 'f*' }); -isMatch('foo'); -isMatch('bar'); -isMatch('baz'); -``` - -### options.posixSlashes - -Convert path separators on returned files to posix/unix-style forward slashes. Aliased as `unixify` for backwards compatibility. - -**Type**: `Boolean` - -**Default**: `true` on windows, `false` everywhere else. - -**Example** - -```js -console.log(micromatch.match(['a\\b\\c'], 'a/**')); -//=> ['a/b/c'] - -console.log(micromatch.match(['a\\b\\c'], { posixSlashes: false })); -//=> ['a\\b\\c'] -``` - -### options.unescape - -Remove backslashes from escaped glob characters before creating the regular expression to perform matches. - -**Type**: `Boolean` - -**Default**: `undefined` - -**Example** - -In this example we want to match a literal `*`: - -```js -console.log(micromatch.match(['abc', 'a\\*c'], 'a\\*c')); -//=> ['a\\*c'] - -console.log(micromatch.match(['abc', 'a\\*c'], 'a\\*c', { unescape: true })); -//=> ['a*c'] -``` - -
-
- -## Extended globbing - -Micromatch supports the following extended globbing features. - -### Extglobs - -Extended globbing, as described by the bash man page: - -| **pattern** | **regex equivalent** | **description** | -| --- | --- | --- | -| `?(pattern)` | `(pattern)?` | Matches zero or one occurrence of the given patterns | -| `*(pattern)` | `(pattern)*` | Matches zero or more occurrences of the given patterns | -| `+(pattern)` | `(pattern)+` | Matches one or more occurrences of the given patterns | -| `@(pattern)` | `(pattern)` * | Matches one of the given patterns | -| `!(pattern)` | N/A (equivalent regex is much more complicated) | Matches anything except one of the given patterns | - -* Note that `@` isn't a regex character. - -### Braces - -Brace patterns can be used to match specific ranges or sets of characters. - -**Example** - -The pattern `{f,b}*/{1..3}/{b,q}*` would match any of following strings: - -``` -foo/1/bar -foo/2/bar -foo/3/bar -baz/1/qux -baz/2/qux -baz/3/qux -``` - -Visit [braces][] to see the full range of features and options related to brace expansion, or to create brace matching or expansion related issues. - -### Regex character classes - -Given the list: `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`: - -* `[ac].js`: matches both `a` and `c`, returning `['a.js', 'c.js']` -* `[b-d].js`: matches from `b` to `d`, returning `['b.js', 'c.js', 'd.js']` -* `a/[A-Z].js`: matches and uppercase letter, returning `['a/E.md']` - -Learn about [regex character classes][charclass]. - -### Regex groups - -Given `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`: - -* `(a|c).js`: would match either `a` or `c`, returning `['a.js', 'c.js']` -* `(b|d).js`: would match either `b` or `d`, returning `['b.js', 'd.js']` -* `(b|[A-Z]).js`: would match either `b` or an uppercase letter, returning `['b.js', 'E.js']` - -As with regex, parens can be nested, so patterns like `((a|b)|c)/b` will work. Although brace expansion might be friendlier to use, depending on preference. - -### POSIX bracket expressions - -POSIX brackets are intended to be more user-friendly than regex character classes. This of course is in the eye of the beholder. - -**Example** - -```js -console.log(micromatch.isMatch('a1', '[[:alpha:][:digit:]]')) //=> true -console.log(micromatch.isMatch('a1', '[[:alpha:][:alpha:]]')) //=> false -``` - -*** - -## Notes - -### Bash 4.3 parity - -Whenever possible matching behavior is based on behavior Bash 4.3, which is mostly consistent with minimatch. - -However, it's suprising how many edge cases and rabbit holes there are with glob matching, and since there is no real glob specification, and micromatch is more accurate than both Bash and minimatch, there are cases where best-guesses were made for behavior. In a few cases where Bash had no answers, we used wildmatch (used by git) as a fallback. - -### Backslashes - -There is an important, notable difference between minimatch and micromatch _in regards to how backslashes are handled_ in glob patterns. - -- Micromatch exclusively and explicitly reserves backslashes for escaping characters in a glob pattern, even on windows, which is consistent with bash behavior. _More importantly, unescaping globs can result in unsafe regular expressions_. -- Minimatch converts all backslashes to forward slashes, which means you can't use backslashes to escape any characters in your glob patterns. - -We made this decision for micromatch for a couple of reasons: - -- Consistency with bash conventions. -- Glob patterns are not filepaths. They are a type of [regular language][regular-language] that is converted to a JavaScript regular expression. Thus, when forward slashes are defined in a glob pattern, the resulting regular expression will match windows or POSIX path separators just fine. - -**A note about joining paths to globs** - -Note that when you pass something like `path.join('foo', '*')` to micromatch, you are creating a filepath and expecting it to still work as a glob pattern. This causes problems on windows, since the `path.sep` is `\\`. - -In other words, since `\\` is reserved as an escape character in globs, on windows `path.join('foo', '*')` would result in `foo\\*`, which tells micromatch to match `*` as a literal character. This is the same behavior as bash. - -To solve this, you might be inspired to do something like `'foo\\*'.replace(/\\/g, '/')`, but this causes another, potentially much more serious, problem. - -## Benchmarks - -### Running benchmarks - -Install dependencies for running benchmarks: - -```sh -$ cd bench && npm install -``` - -Run the benchmarks: - -```sh -$ npm run bench -``` - -### Latest results - -As of July 12, 2023 (longer bars are better): - -```sh -# .makeRe star - micromatch x 2,232,802 ops/sec ±2.34% (89 runs sampled)) - minimatch x 781,018 ops/sec ±6.74% (92 runs sampled)) - -# .makeRe star; dot=true - micromatch x 1,863,453 ops/sec ±0.74% (93 runs sampled) - minimatch x 723,105 ops/sec ±0.75% (93 runs sampled) - -# .makeRe globstar - micromatch x 1,624,179 ops/sec ±2.22% (91 runs sampled) - minimatch x 1,117,230 ops/sec ±2.78% (86 runs sampled)) - -# .makeRe globstars - micromatch x 1,658,642 ops/sec ±0.86% (92 runs sampled) - minimatch x 741,224 ops/sec ±1.24% (89 runs sampled)) - -# .makeRe with leading star - micromatch x 1,525,014 ops/sec ±1.63% (90 runs sampled) - minimatch x 561,074 ops/sec ±3.07% (89 runs sampled) - -# .makeRe - braces - micromatch x 172,478 ops/sec ±2.37% (78 runs sampled) - minimatch x 96,087 ops/sec ±2.34% (88 runs sampled))) - -# .makeRe braces - range (expanded) - micromatch x 26,973 ops/sec ±0.84% (89 runs sampled) - minimatch x 3,023 ops/sec ±0.99% (90 runs sampled)) - -# .makeRe braces - range (compiled) - micromatch x 152,892 ops/sec ±1.67% (83 runs sampled) - minimatch x 992 ops/sec ±3.50% (89 runs sampled)d)) - -# .makeRe braces - nested ranges (expanded) - micromatch x 15,816 ops/sec ±13.05% (80 runs sampled) - minimatch x 2,953 ops/sec ±1.64% (91 runs sampled) - -# .makeRe braces - nested ranges (compiled) - micromatch x 110,881 ops/sec ±1.85% (82 runs sampled) - minimatch x 1,008 ops/sec ±1.51% (91 runs sampled) - -# .makeRe braces - set (compiled) - micromatch x 134,930 ops/sec ±3.54% (63 runs sampled)) - minimatch x 43,242 ops/sec ±0.60% (93 runs sampled) - -# .makeRe braces - nested sets (compiled) - micromatch x 94,455 ops/sec ±1.74% (69 runs sampled)) - minimatch x 27,720 ops/sec ±1.84% (93 runs sampled)) -``` - -## Contributing - -All contributions are welcome! Please read [the contributing guide](.github/contributing.md) to get started. - -**Bug reports** - -Please create an issue if you encounter a bug or matching behavior that doesn't seem correct. If you find a matching-related issue, please: - -- [research existing issues first](../../issues) (open and closed) -- visit the [GNU Bash documentation][bash] to see how Bash deals with the pattern -- visit the [minimatch][] documentation to cross-check expected behavior in node.js -- if all else fails, since there is no real specification for globs we will probably need to discuss expected behavior and decide how to resolve it. which means any detail you can provide to help with this discussion would be greatly appreciated. - -**Platform issues** - -It's important to us that micromatch work consistently on all platforms. If you encounter any platform-specific matching or path related issues, please let us know (pull requests are also greatly appreciated). - -[regular-language]: https://en.wikipedia.org/wiki/Regular_language -[bash]: https://www.gnu.org/software/bash/manual/ -[charclass]: http://www.regular-expressions.info/charclass.html -[extended]: http://mywiki.wooledge.org/BashGuide/Patterns#Extended_Globs -[brackets]: https://github.com/micromatch/expand-brackets -[braces]: https://github.com/micromatch/braces - -## About -
- Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards. - -
- -
- Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
- Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -- [braces](https://www.npmjs.com/package/braces): Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support… [more](https://github.com/micromatch/braces) | [homepage](https://github.com/micromatch/braces "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.") -- [expand-brackets](https://www.npmjs.com/package/expand-brackets): Expand POSIX bracket expressions (character classes) in glob patterns. | [homepage](https://github.com/micromatch/expand-brackets "Expand POSIX bracket expressions (character classes) in glob patterns.") -- [extglob](https://www.npmjs.com/package/extglob): Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob… [more](https://github.com/micromatch/extglob) | [homepage](https://github.com/micromatch/extglob "Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob patterns.") -- [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or `step` to… [more](https://github.com/jonschlinkert/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`") -- [nanomatch](https://www.npmjs.com/package/nanomatch): Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash… [more](https://github.com/micromatch/nanomatch) | [homepage](https://github.com/micromatch/nanomatch "Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)") - -### Contributors -| **Commits** | **Contributor** | -| --- | --- | -| 515 | [jonschlinkert](https://github.com/jonschlinkert) | -| 12 | [es128](https://github.com/es128) | -| 9 | [danez](https://github.com/danez) | -| 8 | [doowb](https://github.com/doowb) | -| 6 | [paulmillr](https://github.com/paulmillr) | -| 5 | [mrmlnc](https://github.com/mrmlnc) | -| 3 | [DrPizza](https://github.com/DrPizza) | -| 2 | [TrySound](https://github.com/TrySound) | -| 2 | [mceIdo](https://github.com/mceIdo) | -| 2 | [Glazy](https://github.com/Glazy) | -| 2 | [MartinKolarik](https://github.com/MartinKolarik) | -| 2 | [antonyk](https://github.com/antonyk) | -| 2 | [Tvrqvoise](https://github.com/Tvrqvoise) | -| 1 | [amilajack](https://github.com/amilajack) | -| 1 | [Cslove](https://github.com/Cslove) | -| 1 | [devongovett](https://github.com/devongovett) | -| 1 | [DianeLooney](https://github.com/DianeLooney) | -| 1 | [UltCombo](https://github.com/UltCombo) | -| 1 | [frangio](https://github.com/frangio) | -| 1 | [joyceerhl](https://github.com/joyceerhl) | -| 1 | [juszczykjakub](https://github.com/juszczykjakub) | -| 1 | [muescha](https://github.com/muescha) | -| 1 | [sebdeckers](https://github.com/sebdeckers) | -| 1 | [tomByrer](https://github.com/tomByrer) | -| 1 | [fidian](https://github.com/fidian) | -| 1 | [curbengh](https://github.com/curbengh) | -| 1 | [simlu](https://github.com/simlu) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | -| 1 | [yvele](https://github.com/yvele) | - -### Author -**Jon Schlinkert** -+ [GitHub Profile](https://github.com/jonschlinkert) -+ [Twitter Profile](https://twitter.com/jonschlinkert) -+ [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License -Copyright © 2023, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 12, 2023._ - -[extglob]: https://github.com/micromatch/extglob -[fill-range]: https://github.com/jonschlinkert/fill-range -[glob-object]: https://github.com/jonschlinkert/glob-object -[minimatch]: https://github.com/isaacs/minimatch -[multimatch]: https://github.com/sindresorhus/multimatch - diff --git a/graphql/node_modules/micromatch/index.js b/graphql/node_modules/micromatch/index.js deleted file mode 100644 index 1fad7f72..00000000 --- a/graphql/node_modules/micromatch/index.js +++ /dev/null @@ -1,467 +0,0 @@ -'use strict'; - -const util = require('util'); -const braces = require('braces'); -const picomatch = require('picomatch'); -const utils = require('picomatch/lib/utils'); -const isEmptyString = val => val === '' || val === './'; - -/** - * Returns an array of strings that match one or more glob patterns. - * - * ```js - * const mm = require('micromatch'); - * // mm(list, patterns[, options]); - * - * console.log(mm(['a.js', 'a.txt'], ['*.js'])); - * //=> [ 'a.js' ] - * ``` - * @param {String|Array} `list` List of strings to match. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `options` See available [options](#options) - * @return {Array} Returns an array of matches - * @summary false - * @api public - */ - -const micromatch = (list, patterns, options) => { - patterns = [].concat(patterns); - list = [].concat(list); - - let omit = new Set(); - let keep = new Set(); - let items = new Set(); - let negatives = 0; - - let onResult = state => { - items.add(state.output); - if (options && options.onResult) { - options.onResult(state); - } - }; - - for (let i = 0; i < patterns.length; i++) { - let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true); - let negated = isMatch.state.negated || isMatch.state.negatedExtglob; - if (negated) negatives++; - - for (let item of list) { - let matched = isMatch(item, true); - - let match = negated ? !matched.isMatch : matched.isMatch; - if (!match) continue; - - if (negated) { - omit.add(matched.output); - } else { - omit.delete(matched.output); - keep.add(matched.output); - } - } - } - - let result = negatives === patterns.length ? [...items] : [...keep]; - let matches = result.filter(item => !omit.has(item)); - - if (options && matches.length === 0) { - if (options.failglob === true) { - throw new Error(`No matches found for "${patterns.join(', ')}"`); - } - - if (options.nonull === true || options.nullglob === true) { - return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns; - } - } - - return matches; -}; - -/** - * Backwards compatibility - */ - -micromatch.match = micromatch; - -/** - * Returns a matcher function from the given glob `pattern` and `options`. - * The returned function takes a string to match as its only argument and returns - * true if the string is a match. - * - * ```js - * const mm = require('micromatch'); - * // mm.matcher(pattern[, options]); - * - * const isMatch = mm.matcher('*.!(*a)'); - * console.log(isMatch('a.a')); //=> false - * console.log(isMatch('a.b')); //=> true - * ``` - * @param {String} `pattern` Glob pattern - * @param {Object} `options` - * @return {Function} Returns a matcher function. - * @api public - */ - -micromatch.matcher = (pattern, options) => picomatch(pattern, options); - -/** - * Returns true if **any** of the given glob `patterns` match the specified `string`. - * - * ```js - * const mm = require('micromatch'); - * // mm.isMatch(string, patterns[, options]); - * - * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true - * console.log(mm.isMatch('a.a', 'b.*')); //=> false - * ``` - * @param {String} `str` The string to test. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `[options]` See available [options](#options). - * @return {Boolean} Returns true if any patterns match `str` - * @api public - */ - -micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - -/** - * Backwards compatibility - */ - -micromatch.any = micromatch.isMatch; - -/** - * Returns a list of strings that _**do not match any**_ of the given `patterns`. - * - * ```js - * const mm = require('micromatch'); - * // mm.not(list, patterns[, options]); - * - * console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a')); - * //=> ['b.b', 'c.c'] - * ``` - * @param {Array} `list` Array of strings to match. - * @param {String|Array} `patterns` One or more glob pattern to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Array} Returns an array of strings that **do not match** the given patterns. - * @api public - */ - -micromatch.not = (list, patterns, options = {}) => { - patterns = [].concat(patterns).map(String); - let result = new Set(); - let items = []; - - let onResult = state => { - if (options.onResult) options.onResult(state); - items.push(state.output); - }; - - let matches = new Set(micromatch(list, patterns, { ...options, onResult })); - - for (let item of items) { - if (!matches.has(item)) { - result.add(item); - } - } - return [...result]; -}; - -/** - * Returns true if the given `string` contains the given pattern. Similar - * to [.isMatch](#isMatch) but the pattern can match any part of the string. - * - * ```js - * var mm = require('micromatch'); - * // mm.contains(string, pattern[, options]); - * - * console.log(mm.contains('aa/bb/cc', '*b')); - * //=> true - * console.log(mm.contains('aa/bb/cc', '*d')); - * //=> false - * ``` - * @param {String} `str` The string to match. - * @param {String|Array} `patterns` Glob pattern to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Boolean} Returns true if any of the patterns matches any part of `str`. - * @api public - */ - -micromatch.contains = (str, pattern, options) => { - if (typeof str !== 'string') { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - - if (Array.isArray(pattern)) { - return pattern.some(p => micromatch.contains(str, p, options)); - } - - if (typeof pattern === 'string') { - if (isEmptyString(str) || isEmptyString(pattern)) { - return false; - } - - if (str.includes(pattern) || (str.startsWith('./') && str.slice(2).includes(pattern))) { - return true; - } - } - - return micromatch.isMatch(str, pattern, { ...options, contains: true }); -}; - -/** - * Filter the keys of the given object with the given `glob` pattern - * and `options`. Does not attempt to match nested keys. If you need this feature, - * use [glob-object][] instead. - * - * ```js - * const mm = require('micromatch'); - * // mm.matchKeys(object, patterns[, options]); - * - * const obj = { aa: 'a', ab: 'b', ac: 'c' }; - * console.log(mm.matchKeys(obj, '*b')); - * //=> { ab: 'b' } - * ``` - * @param {Object} `object` The object with keys to filter. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Object} Returns an object with only keys that match the given patterns. - * @api public - */ - -micromatch.matchKeys = (obj, patterns, options) => { - if (!utils.isObject(obj)) { - throw new TypeError('Expected the first argument to be an object'); - } - let keys = micromatch(Object.keys(obj), patterns, options); - let res = {}; - for (let key of keys) res[key] = obj[key]; - return res; -}; - -/** - * Returns true if some of the strings in the given `list` match any of the given glob `patterns`. - * - * ```js - * const mm = require('micromatch'); - * // mm.some(list, patterns[, options]); - * - * console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js'])); - * // true - * console.log(mm.some(['foo.js'], ['*.js', '!foo.js'])); - * // false - * ``` - * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list` - * @api public - */ - -micromatch.some = (list, patterns, options) => { - let items = [].concat(list); - - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (items.some(item => isMatch(item))) { - return true; - } - } - return false; -}; - -/** - * Returns true if every string in the given `list` matches - * any of the given glob `patterns`. - * - * ```js - * const mm = require('micromatch'); - * // mm.every(list, patterns[, options]); - * - * console.log(mm.every('foo.js', ['foo.js'])); - * // true - * console.log(mm.every(['foo.js', 'bar.js'], ['*.js'])); - * // true - * console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js'])); - * // false - * console.log(mm.every(['foo.js'], ['*.js', '!foo.js'])); - * // false - * ``` - * @param {String|Array} `list` The string or array of strings to test. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list` - * @api public - */ - -micromatch.every = (list, patterns, options) => { - let items = [].concat(list); - - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (!items.every(item => isMatch(item))) { - return false; - } - } - return true; -}; - -/** - * Returns true if **all** of the given `patterns` match - * the specified string. - * - * ```js - * const mm = require('micromatch'); - * // mm.all(string, patterns[, options]); - * - * console.log(mm.all('foo.js', ['foo.js'])); - * // true - * - * console.log(mm.all('foo.js', ['*.js', '!foo.js'])); - * // false - * - * console.log(mm.all('foo.js', ['*.js', 'foo.js'])); - * // true - * - * console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js'])); - * // true - * ``` - * @param {String|Array} `str` The string to test. - * @param {String|Array} `patterns` One or more glob patterns to use for matching. - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Boolean} Returns true if any patterns match `str` - * @api public - */ - -micromatch.all = (str, patterns, options) => { - if (typeof str !== 'string') { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - - return [].concat(patterns).every(p => picomatch(p, options)(str)); -}; - -/** - * Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match. - * - * ```js - * const mm = require('micromatch'); - * // mm.capture(pattern, string[, options]); - * - * console.log(mm.capture('test/*.js', 'test/foo.js')); - * //=> ['foo'] - * console.log(mm.capture('test/*.js', 'foo/bar.css')); - * //=> null - * ``` - * @param {String} `glob` Glob pattern to use for matching. - * @param {String} `input` String to match - * @param {Object} `options` See available [options](#options) for changing how matches are performed - * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`. - * @api public - */ - -micromatch.capture = (glob, input, options) => { - let posix = utils.isWindows(options); - let regex = picomatch.makeRe(String(glob), { ...options, capture: true }); - let match = regex.exec(posix ? utils.toPosixSlashes(input) : input); - - if (match) { - return match.slice(1).map(v => v === void 0 ? '' : v); - } -}; - -/** - * Create a regular expression from the given glob `pattern`. - * - * ```js - * const mm = require('micromatch'); - * // mm.makeRe(pattern[, options]); - * - * console.log(mm.makeRe('*.js')); - * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/ - * ``` - * @param {String} `pattern` A glob pattern to convert to regex. - * @param {Object} `options` - * @return {RegExp} Returns a regex created from the given pattern. - * @api public - */ - -micromatch.makeRe = (...args) => picomatch.makeRe(...args); - -/** - * Scan a glob pattern to separate the pattern into segments. Used - * by the [split](#split) method. - * - * ```js - * const mm = require('micromatch'); - * const state = mm.scan(pattern[, options]); - * ``` - * @param {String} `pattern` - * @param {Object} `options` - * @return {Object} Returns an object with - * @api public - */ - -micromatch.scan = (...args) => picomatch.scan(...args); - -/** - * Parse a glob pattern to create the source string for a regular - * expression. - * - * ```js - * const mm = require('micromatch'); - * const state = mm.parse(pattern[, options]); - * ``` - * @param {String} `glob` - * @param {Object} `options` - * @return {Object} Returns an object with useful properties and output to be used as regex source string. - * @api public - */ - -micromatch.parse = (patterns, options) => { - let res = []; - for (let pattern of [].concat(patterns || [])) { - for (let str of braces(String(pattern), options)) { - res.push(picomatch.parse(str, options)); - } - } - return res; -}; - -/** - * Process the given brace `pattern`. - * - * ```js - * const { braces } = require('micromatch'); - * console.log(braces('foo/{a,b,c}/bar')); - * //=> [ 'foo/(a|b|c)/bar' ] - * - * console.log(braces('foo/{a,b,c}/bar', { expand: true })); - * //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ] - * ``` - * @param {String} `pattern` String with brace pattern to process. - * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options. - * @return {Array} - * @api public - */ - -micromatch.braces = (pattern, options) => { - if (typeof pattern !== 'string') throw new TypeError('Expected a string'); - if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) { - return [pattern]; - } - return braces(pattern, options); -}; - -/** - * Expand braces - */ - -micromatch.braceExpand = (pattern, options) => { - if (typeof pattern !== 'string') throw new TypeError('Expected a string'); - return micromatch.braces(pattern, { ...options, expand: true }); -}; - -/** - * Expose micromatch - */ - -module.exports = micromatch; diff --git a/graphql/node_modules/micromatch/package.json b/graphql/node_modules/micromatch/package.json deleted file mode 100644 index e2598eca..00000000 --- a/graphql/node_modules/micromatch/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "name": "micromatch", - "description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.", - "version": "4.0.7", - "homepage": "https://github.com/micromatch/micromatch", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "(https://github.com/DianeLooney)", - "Amila Welihinda (amilajack.com)", - "Bogdan Chadkin (https://github.com/TrySound)", - "Brian Woodward (https://twitter.com/doowb)", - "Devon Govett (http://badassjs.com)", - "Elan Shanker (https://github.com/es128)", - "Fabrício Matté (https://ultcombo.js.org)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Martin Kolárik (https://kolarik.sk)", - "Olsten Larck (https://i.am.charlike.online)", - "Paul Miller (paulmillr.com)", - "Tom Byrer (https://github.com/tomByrer)", - "Tyler Akins (http://rumkin.com)", - "Peter Bright (https://github.com/drpizza)", - "Kuba Juszczyk (https://github.com/ku8ar)" - ], - "repository": "micromatch/micromatch", - "bugs": { - "url": "https://github.com/micromatch/micromatch/issues" - }, - "license": "MIT", - "files": ["index.js"], - "main": "index.js", - "engines": { - "node": ">=8.6" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "devDependencies": { - "fill-range": "^7.0.1", - "gulp-format-md": "^2.0.0", - "minimatch": "^5.0.1", - "mocha": "^9.2.2", - "time-require": "github:jonschlinkert/time-require" - }, - "keywords": [ - "bash", - "bracket", - "character-class", - "expand", - "expansion", - "expression", - "extglob", - "extglobs", - "file", - "files", - "filter", - "find", - "glob", - "globbing", - "globs", - "globstar", - "lookahead", - "lookaround", - "lookbehind", - "match", - "matcher", - "matches", - "matching", - "micromatch", - "minimatch", - "multimatch", - "negate", - "negation", - "path", - "pattern", - "patterns", - "posix", - "regex", - "regexp", - "regular", - "shell", - "star", - "wildcard" - ], - "verb": { - "toc": "collapsible", - "layout": "default", - "tasks": ["readme"], - "plugins": ["gulp-format-md"], - "lint": { - "reflinks": true - }, - "related": { - "list": ["braces", "expand-brackets", "extglob", "fill-range", "nanomatch"] - }, - "reflinks": ["extglob", "fill-range", "glob-object", "minimatch", "multimatch"] - } -} diff --git a/graphql/node_modules/minimatch/LICENSE b/graphql/node_modules/minimatch/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/graphql/node_modules/minimatch/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/minimatch/README.md b/graphql/node_modules/minimatch/README.md deleted file mode 100644 index 33ede1d6..00000000 --- a/graphql/node_modules/minimatch/README.md +++ /dev/null @@ -1,230 +0,0 @@ -# minimatch - -A minimal matching utility. - -[![Build Status](https://travis-ci.org/isaacs/minimatch.svg?branch=master)](http://travis-ci.org/isaacs/minimatch) - - -This is the matching library used internally by npm. - -It works by converting glob expressions into JavaScript `RegExp` -objects. - -## Usage - -```javascript -var minimatch = require("minimatch") - -minimatch("bar.foo", "*.foo") // true! -minimatch("bar.foo", "*.bar") // false! -minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy! -``` - -## Features - -Supports these glob features: - -* Brace Expansion -* Extended glob matching -* "Globstar" `**` matching - -See: - -* `man sh` -* `man bash` -* `man 3 fnmatch` -* `man 5 gitignore` - -## Minimatch Class - -Create a minimatch object by instantiating the `minimatch.Minimatch` class. - -```javascript -var Minimatch = require("minimatch").Minimatch -var mm = new Minimatch(pattern, options) -``` - -### Properties - -* `pattern` The original pattern the minimatch object represents. -* `options` The options supplied to the constructor. -* `set` A 2-dimensional array of regexp or string expressions. - Each row in the - array corresponds to a brace-expanded pattern. Each item in the row - corresponds to a single path-part. For example, the pattern - `{a,b/c}/d` would expand to a set of patterns like: - - [ [ a, d ] - , [ b, c, d ] ] - - If a portion of the pattern doesn't have any "magic" in it - (that is, it's something like `"foo"` rather than `fo*o?`), then it - will be left as a string rather than converted to a regular - expression. - -* `regexp` Created by the `makeRe` method. A single regular expression - expressing the entire pattern. This is useful in cases where you wish - to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled. -* `negate` True if the pattern is negated. -* `comment` True if the pattern is a comment. -* `empty` True if the pattern is `""`. - -### Methods - -* `makeRe` Generate the `regexp` member if necessary, and return it. - Will return `false` if the pattern is invalid. -* `match(fname)` Return true if the filename matches the pattern, or - false otherwise. -* `matchOne(fileArray, patternArray, partial)` Take a `/`-split - filename, and match it against a single row in the `regExpSet`. This - method is mainly for internal use, but is exposed so that it can be - used by a glob-walker that needs to avoid excessive filesystem calls. - -All other methods are internal, and will be called as necessary. - -### minimatch(path, pattern, options) - -Main export. Tests a path against the pattern using the options. - -```javascript -var isJS = minimatch(file, "*.js", { matchBase: true }) -``` - -### minimatch.filter(pattern, options) - -Returns a function that tests its -supplied argument, suitable for use with `Array.filter`. Example: - -```javascript -var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true})) -``` - -### minimatch.match(list, pattern, options) - -Match against the list of -files, in the style of fnmatch or glob. If nothing is matched, and -options.nonull is set, then return a list containing the pattern itself. - -```javascript -var javascripts = minimatch.match(fileList, "*.js", {matchBase: true})) -``` - -### minimatch.makeRe(pattern, options) - -Make a regular expression object from the pattern. - -## Options - -All options are `false` by default. - -### debug - -Dump a ton of stuff to stderr. - -### nobrace - -Do not expand `{a,b}` and `{1..3}` brace sets. - -### noglobstar - -Disable `**` matching against multiple folder names. - -### dot - -Allow patterns to match filenames starting with a period, even if -the pattern does not explicitly have a period in that spot. - -Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot` -is set. - -### noext - -Disable "extglob" style patterns like `+(a|b)`. - -### nocase - -Perform a case-insensitive match. - -### nonull - -When a match is not found by `minimatch.match`, return a list containing -the pattern itself if this option is set. When not set, an empty list -is returned if there are no matches. - -### matchBase - -If set, then patterns without slashes will be matched -against the basename of the path if it contains slashes. For example, -`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. - -### nocomment - -Suppress the behavior of treating `#` at the start of a pattern as a -comment. - -### nonegate - -Suppress the behavior of treating a leading `!` character as negation. - -### flipNegate - -Returns from negate expressions the same as if they were not negated. -(Ie, true on a hit, false on a miss.) - -### partial - -Compare a partial path to a pattern. As long as the parts of the path that -are present are not contradicted by the pattern, it will be treated as a -match. This is useful in applications where you're walking through a -folder structure, and don't yet have the full path, but want to ensure that -you do not walk down paths that can never be a match. - -For example, - -```js -minimatch('/a/b', '/a/*/c/d', { partial: true }) // true, might be /a/b/c/d -minimatch('/a/b', '/**/d', { partial: true }) // true, might be /a/b/.../d -minimatch('/x/y/z', '/a/**/z', { partial: true }) // false, because x !== a -``` - -### allowWindowsEscape - -Windows path separator `\` is by default converted to `/`, which -prohibits the usage of `\` as a escape character. This flag skips that -behavior and allows using the escape character. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between minimatch and other -implementations, and are intentional. - -If the pattern starts with a `!` character, then it is negated. Set the -`nonegate` flag to suppress this behavior, and treat leading `!` -characters normally. This is perhaps relevant if you wish to start the -pattern with a negative extglob pattern like `!(a|B)`. Multiple `!` -characters at the start of a pattern will negate the pattern multiple -times. - -If a pattern starts with `#`, then it is treated as a comment, and -will not match anything. Use `\#` to match a literal `#` at the -start of a line, or set the `nocomment` flag to suppress this behavior. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.1, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then minimatch.match returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. diff --git a/graphql/node_modules/minimatch/minimatch.js b/graphql/node_modules/minimatch/minimatch.js deleted file mode 100644 index fda45ade..00000000 --- a/graphql/node_modules/minimatch/minimatch.js +++ /dev/null @@ -1,947 +0,0 @@ -module.exports = minimatch -minimatch.Minimatch = Minimatch - -var path = (function () { try { return require('path') } catch (e) {}}()) || { - sep: '/' -} -minimatch.sep = path.sep - -var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = require('brace-expansion') - -var plTypes = { - '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, - '?': { open: '(?:', close: ')?' }, - '+': { open: '(?:', close: ')+' }, - '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } -} - -// any single thing other than / -// don't need to escape / when using new RegExp() -var qmark = '[^/]' - -// * => any number of characters -var star = qmark + '*?' - -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' - -// characters that need to be escaped in RegExp. -var reSpecials = charSet('().*{}+?[]^$\\!') - -// "abc" -> { a:true, b:true, c:true } -function charSet (s) { - return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) -} - -// normalizes slashes. -var slashSplit = /\/+/ - -minimatch.filter = filter -function filter (pattern, options) { - options = options || {} - return function (p, i, list) { - return minimatch(p, pattern, options) - } -} - -function ext (a, b) { - b = b || {} - var t = {} - Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) - return t -} - -minimatch.defaults = function (def) { - if (!def || typeof def !== 'object' || !Object.keys(def).length) { - return minimatch - } - - var orig = minimatch - - var m = function minimatch (p, pattern, options) { - return orig(p, pattern, ext(def, options)) - } - - m.Minimatch = function Minimatch (pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } - m.Minimatch.defaults = function defaults (options) { - return orig.defaults(ext(def, options)).Minimatch - } - - m.filter = function filter (pattern, options) { - return orig.filter(pattern, ext(def, options)) - } - - m.defaults = function defaults (options) { - return orig.defaults(ext(def, options)) - } - - m.makeRe = function makeRe (pattern, options) { - return orig.makeRe(pattern, ext(def, options)) - } - - m.braceExpand = function braceExpand (pattern, options) { - return orig.braceExpand(pattern, ext(def, options)) - } - - m.match = function (list, pattern, options) { - return orig.match(list, pattern, ext(def, options)) - } - - return m -} - -Minimatch.defaults = function (def) { - return minimatch.defaults(def).Minimatch -} - -function minimatch (p, pattern, options) { - assertValidPattern(pattern) - - if (!options) options = {} - - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false - } - - return new Minimatch(pattern, options).match(p) -} - -function Minimatch (pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) - } - - assertValidPattern(pattern) - - if (!options) options = {} - - pattern = pattern.trim() - - // windows support: need to use /, not \ - if (!options.allowWindowsEscape && path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') - } - - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false - this.partial = !!options.partial - - // make the set of regexps etc. - this.make() -} - -Minimatch.prototype.debug = function () {} - -Minimatch.prototype.make = make -function make () { - var pattern = this.pattern - var options = this.options - - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return - } - if (!pattern) { - this.empty = true - return - } - - // step 1: figure out negation, etc. - this.parseNegate() - - // step 2: expand braces - var set = this.globSet = this.braceExpand() - - if (options.debug) this.debug = function debug() { console.error.apply(console, arguments) } - - this.debug(this.pattern, set) - - // step 3: now we have a set, so turn each one into a series of path-portion - // matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) - - this.debug(this.pattern, set) - - // glob --> regexps - set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) - - this.debug(this.pattern, set) - - // filter out everything that didn't compile properly. - set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) - - this.debug(this.pattern, set) - - this.set = set -} - -Minimatch.prototype.parseNegate = parseNegate -function parseNegate () { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 - - if (options.nonegate) return - - for (var i = 0, l = pattern.length - ; i < l && pattern.charAt(i) === '!' - ; i++) { - negate = !negate - negateOffset++ - } - - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate -} - -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) -} - -Minimatch.prototype.braceExpand = braceExpand - -function braceExpand (pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options - } else { - options = {} - } - } - - pattern = typeof pattern === 'undefined' - ? this.pattern : pattern - - assertValidPattern(pattern) - - // Thanks to Yeting Li for - // improving this regexp to avoid a ReDOS vulnerability. - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - // shortcut. no need to expand. - return [pattern] - } - - return expand(pattern) -} - -var MAX_PATTERN_LENGTH = 1024 * 64 -var assertValidPattern = function (pattern) { - if (typeof pattern !== 'string') { - throw new TypeError('invalid pattern') - } - - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError('pattern is too long') - } -} - -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse = parse -var SUBPARSE = {} -function parse (pattern, isSub) { - assertValidPattern(pattern) - - var options = this.options - - // shortcuts - if (pattern === '**') { - if (!options.noglobstar) - return GLOBSTAR - else - pattern = '*' - } - if (pattern === '') return '' - - var re = '' - var hasMagic = !!options.nocase - var escaping = false - // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 - // . and .. never match anything that doesn't start with ., - // even when options.dot is set. - var patternStart = pattern.charAt(0) === '.' ? '' // anything - // not (start or / followed by . or .. followed by / or end) - : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' - : '(?!\\.)' - var self = this - - function clearStateChar () { - if (stateChar) { - // we had some state-tracking character - // that wasn't consumed by this pass. - switch (stateChar) { - case '*': - re += star - hasMagic = true - break - case '?': - re += qmark - hasMagic = true - break - default: - re += '\\' + stateChar - break - } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false - } - } - - for (var i = 0, len = pattern.length, c - ; (i < len) && (c = pattern.charAt(i)) - ; i++) { - this.debug('%s\t%s %s %j', pattern, i, re, c) - - // skip over any that are escaped. - if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue - } - - switch (c) { - /* istanbul ignore next */ - case '/': { - // completely not allowed, even escaped. - // Should already be path-split by now. - return false - } - - case '\\': - clearStateChar() - escaping = true - continue - - // the various stateChar values - // for the "extglob" stuff. - case '?': - case '*': - case '+': - case '@': - case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - - // all of those are literals inside a class, except that - // the glob [!a] means [^a] in regexp - if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue - } - - // if we already have a stateChar, then it means - // that there was something like ** or +? in there. - // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c - // if extglob is disabled, then +(asdf|foo) isn't a thing. - // just clear the statechar *now*, rather than even diving into - // the patternList stuff. - if (options.noext) clearStateChar() - continue - - case '(': - if (inClass) { - re += '(' - continue - } - - if (!stateChar) { - re += '\\(' - continue - } - - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) - // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue - - case ')': - if (inClass || !patternListStack.length) { - re += '\\)' - continue - } - - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() - // negation is (?:(?!js)[^/]*) - // The others are (?:) - re += pl.close - if (pl.type === '!') { - negativeLists.push(pl) - } - pl.reEnd = re.length - continue - - case '|': - if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue - } - - clearStateChar() - re += '|' - continue - - // these are mostly the same in regexp and glob - case '[': - // swallow any state-tracking char before the [ - clearStateChar() - - if (inClass) { - re += '\\' + c - continue - } - - inClass = true - classStart = i - reClassStart = re.length - re += c - continue - - case ']': - // a right bracket shall lose its special - // meaning and represent itself in - // a bracket expression if it occurs - // first in the list. -- POSIX.2 2.8.3.2 - if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue - } - - // handle the case where we left a class open. - // "[z-a]" is valid, equivalent to "\[z-a\]" - // split where the last [ was, make sure we don't have - // an invalid re. if so, re-walk the contents of the - // would-be class to re-translate any characters that - // were passed through as-is - // TODO: It would probably be faster to determine this - // without a try/catch and a new RegExp, but it's tricky - // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) - try { - RegExp('[' + cs + ']') - } catch (er) { - // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue - } - - // finish up the class. - hasMagic = true - inClass = false - re += c - continue - - default: - // swallow any state char that wasn't consumed - clearStateChar() - - if (escaping) { - // no need - escaping = false - } else if (reSpecials[c] - && !(c === '^' && inClass)) { - re += '\\' - } - - re += c - - } // switch - } // for - - // handle the case where we left a class open. - // "[abc" is valid, equivalent to "\[abc" - if (inClass) { - // split where the last [ was, and escape it - // this is a huge pita. We now have to re-walk - // the contents of the would-be class to re-translate - // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] - } - - // handle the case where we had a +( thing at the *end* - // of the pattern. - // each pattern list stack adds 3 chars, and we need to go through - // and escape any | chars that were passed through as-is for the regexp. - // Go through and escape them, taking care not to double-escape any - // | chars that were already escaped. - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) - // maybe some even number of \, then maybe 1 \, followed by a | - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { - if (!$2) { - // the | isn't already escaped, so escape it. - $2 = '\\' - } - - // need to escape all those slashes *again*, without escaping the - // one that we need for escaping the | character. As it works out, - // escaping an even number of slashes can be done by simply repeating - // it exactly after itself. That's why this trick works. - // - // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) - - this.debug('tail=%j\n %s', tail, tail, pl, re) - var t = pl.type === '*' ? star - : pl.type === '?' ? qmark - : '\\' + pl.type - - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail - } - - // handle trailing things that only matter at the very end. - clearStateChar() - if (escaping) { - // trailing \\ - re += '\\\\' - } - - // only need to apply the nodot start if the re starts with - // something that could conceivably capture a dot - var addPatternStart = false - switch (re.charAt(0)) { - case '[': case '.': case '(': addPatternStart = true - } - - // Hack to work around lack of negative lookbehind in JS - // A pattern like: *.!(x).!(y|z) needs to ensure that a name - // like 'a.xyz.yz' doesn't match. So, the first negative - // lookahead, has to look ALL the way ahead, to the end of - // the pattern. - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] - - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) - - nlLast += nlAfter - - // Handle nested stuff like *(*.js|!(*.json)), where open parens - // mean that we should *not* include the ) in the bit that is considered - // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') - } - nlAfter = cleanAfter - - var dollar = '' - if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe - } - - // if the re is not "" at this point, then we need to make sure - // it doesn't match against an empty path part. - // Otherwise a/* will match a/, which it should not. - if (re !== '' && hasMagic) { - re = '(?=.)' + re - } - - if (addPatternStart) { - re = patternStart + re - } - - // parsing just a piece of a larger pattern. - if (isSub === SUBPARSE) { - return [re, hasMagic] - } - - // skip the regexp for non-magical patterns - // unescape anything in it, though, so that it'll be - // an exact match against a file etc. - if (!hasMagic) { - return globUnescape(pattern) - } - - var flags = options.nocase ? 'i' : '' - try { - var regExp = new RegExp('^' + re + '$', flags) - } catch (er) /* istanbul ignore next - should be impossible */ { - // If it was an invalid regular expression, then it can't match - // anything. This trick looks for a character after the end of - // the string, which is of course impossible, except in multi-line - // mode, but it's not a /m regex. - return new RegExp('$.') - } - - regExp._glob = pattern - regExp._src = re - - return regExp -} - -minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() -} - -Minimatch.prototype.makeRe = makeRe -function makeRe () { - if (this.regexp || this.regexp === false) return this.regexp - - // at this point, this.set is a 2d array of partial - // pattern strings, or "**". - // - // It's better to use .match(). This function shouldn't - // be used, really, but it's pretty convenient sometimes, - // when you just want to work with a regex. - var set = this.set - - if (!set.length) { - this.regexp = false - return this.regexp - } - var options = this.options - - var twoStar = options.noglobstar ? star - : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' - - var re = set.map(function (pattern) { - return pattern.map(function (p) { - return (p === GLOBSTAR) ? twoStar - : (typeof p === 'string') ? regExpEscape(p) - : p._src - }).join('\\\/') - }).join('|') - - // must match entire pattern - // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' - - // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' - - try { - this.regexp = new RegExp(re, flags) - } catch (ex) /* istanbul ignore next - should be impossible */ { - this.regexp = false - } - return this.regexp -} - -minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) - list = list.filter(function (f) { - return mm.match(f) - }) - if (mm.options.nonull && !list.length) { - list.push(pattern) - } - return list -} - -Minimatch.prototype.match = function match (f, partial) { - if (typeof partial === 'undefined') partial = this.partial - this.debug('match', f, this.pattern) - // short-circuit in the case of busted things. - // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' - - if (f === '/' && partial) return true - - var options = this.options - - // windows: need to use /, not \ - if (path.sep !== '/') { - f = f.split(path.sep).join('/') - } - - // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) - - // just ONE of the pattern sets in this.set needs to match - // in order for it to be valid. If negating, then just one - // match means that we have failed. - // Either way, return on the first hit. - - var set = this.set - this.debug(this.pattern, 'set', set) - - // Find the basename of the path by looking for the last non-empty segment - var filename - var i - for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break - } - - for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f - if (options.matchBase && pattern.length === 1) { - file = [filename] - } - var hit = this.matchOne(file, pattern, partial) - if (hit) { - if (options.flipNegate) return true - return !this.negate - } - } - - // didn't get any hits. this is success if it's a negative - // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate -} - -// set partial to true to test if, for example, -// "/a/b" matches the start of "/*/b/*/d" -// Partial means, if you run out of file before you run -// out of pattern, then that's fine, as long as all -// the parts match. -Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options - - this.debug('matchOne', - { 'this': this, file: file, pattern: pattern }) - - this.debug('matchOne', file.length, pattern.length) - - for (var fi = 0, - pi = 0, - fl = file.length, - pl = pattern.length - ; (fi < fl) && (pi < pl) - ; fi++, pi++) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] - - this.debug(pattern, p, f) - - // should be impossible. - // some invalid regexp stuff in the set. - /* istanbul ignore if */ - if (p === false) return false - - if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) - - // "**" - // a/**/b/**/c would match the following: - // a/b/x/y/z/c - // a/x/y/z/b/c - // a/b/x/b/x/c - // a/b/c - // To do this, take the rest of the pattern after - // the **, and see if it would match the file remainder. - // If so, return success. - // If not, the ** "swallows" a segment, and try again. - // This is recursively awful. - // - // a/**/b/**/c matching a/b/x/y/z/c - // - a matches a - // - doublestar - // - matchOne(b/x/y/z/c, b/**/c) - // - b matches b - // - doublestar - // - matchOne(x/y/z/c, c) -> no - // - matchOne(y/z/c, c) -> no - // - matchOne(z/c, c) -> no - // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 - if (pr === pl) { - this.debug('** at the end') - // a ** at the end will just swallow the rest. - // We have found a match. - // however, it will not swallow /.x, unless - // options.dot is set. - // . and .. are *never* matched by **, for explosively - // exponential reasons. - for (; fi < fl; fi++) { - if (file[fi] === '.' || file[fi] === '..' || - (!options.dot && file[fi].charAt(0) === '.')) return false - } - return true - } - - // ok, let's see if we can swallow whatever we can. - while (fr < fl) { - var swallowee = file[fr] - - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) - - // XXX remove this slice. Just pass the start index. - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) - // found a match. - return true - } else { - // can't swallow "." or ".." ever. - // can only swallow ".foo" when explicitly asked. - if (swallowee === '.' || swallowee === '..' || - (!options.dot && swallowee.charAt(0) === '.')) { - this.debug('dot detected!', file, fr, pattern, pr) - break - } - - // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ - } - } - - // no match was found. - // However, in partial mode, we can't say this is necessarily over. - // If there's more *pattern* left, then - /* istanbul ignore if */ - if (partial) { - // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true - } - return false - } - - // something other than ** - // non-magic patterns just have to match exactly - // patterns with magic have been turned into regexps. - var hit - if (typeof p === 'string') { - hit = f === p - this.debug('string match', p, f, hit) - } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) - } - - if (!hit) return false - } - - // Note: ending in / means that we'll get a final "" - // at the end of the pattern. This can only match a - // corresponding "" at the end of the file. - // If the file ends in /, then it can only match a - // a pattern that ends in /, unless the pattern just - // doesn't have any more for it. But, a/b/ should *not* - // match "a/b/*", even though "" matches against the - // [^/]*? pattern, except in partial mode, where it might - // simply not be reached yet. - // However, a/b/ should still satisfy a/* - - // now either we fell off the end of the pattern, or we're done. - if (fi === fl && pi === pl) { - // ran out of pattern and filename at the same time. - // an exact hit! - return true - } else if (fi === fl) { - // ran out of file, but still had pattern left. - // this is ok if we're doing the match as part of - // a glob fs traversal. - return partial - } else /* istanbul ignore else */ if (pi === pl) { - // ran out of pattern, still have file left. - // this is only acceptable if we're on the very last - // empty segment of a file with a trailing slash. - // a/* should match a/b/ - return (fi === fl - 1) && (file[fi] === '') - } - - // should be unreachable. - /* istanbul ignore next */ - throw new Error('wtf?') -} - -// replace stuff like \* with * -function globUnescape (s) { - return s.replace(/\\(.)/g, '$1') -} - -function regExpEscape (s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') -} diff --git a/graphql/node_modules/minimatch/package.json b/graphql/node_modules/minimatch/package.json deleted file mode 100644 index 566efdfe..00000000 --- a/graphql/node_modules/minimatch/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "author": "Isaac Z. Schlueter (http://blog.izs.me)", - "name": "minimatch", - "description": "a glob matcher in javascript", - "version": "3.1.2", - "publishConfig": { - "tag": "v3-legacy" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/minimatch.git" - }, - "main": "minimatch.js", - "scripts": { - "test": "tap", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "engines": { - "node": "*" - }, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "devDependencies": { - "tap": "^15.1.6" - }, - "license": "ISC", - "files": [ - "minimatch.js" - ] -} diff --git a/graphql/node_modules/ms/index.js b/graphql/node_modules/ms/index.js deleted file mode 100644 index c4498bcc..00000000 --- a/graphql/node_modules/ms/index.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} diff --git a/graphql/node_modules/ms/license.md b/graphql/node_modules/ms/license.md deleted file mode 100644 index 69b61253..00000000 --- a/graphql/node_modules/ms/license.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Zeit, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/ms/package.json b/graphql/node_modules/ms/package.json deleted file mode 100644 index eea666e1..00000000 --- a/graphql/node_modules/ms/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "ms", - "version": "2.1.2", - "description": "Tiny millisecond conversion utility", - "repository": "zeit/ms", - "main": "./index", - "files": [ - "index.js" - ], - "scripts": { - "precommit": "lint-staged", - "lint": "eslint lib/* bin/*", - "test": "mocha tests.js" - }, - "eslintConfig": { - "extends": "eslint:recommended", - "env": { - "node": true, - "es6": true - } - }, - "lint-staged": { - "*.js": [ - "npm run lint", - "prettier --single-quote --write", - "git add" - ] - }, - "license": "MIT", - "devDependencies": { - "eslint": "4.12.1", - "expect.js": "0.3.1", - "husky": "0.14.3", - "lint-staged": "5.0.0", - "mocha": "4.0.1" - } -} diff --git a/graphql/node_modules/ms/readme.md b/graphql/node_modules/ms/readme.md deleted file mode 100644 index 9a1996b1..00000000 --- a/graphql/node_modules/ms/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# ms - -[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) -[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/zeit) - -Use this package to easily convert various time formats to milliseconds. - -## Examples - -```js -ms('2 days') // 172800000 -ms('1d') // 86400000 -ms('10h') // 36000000 -ms('2.5 hrs') // 9000000 -ms('2h') // 7200000 -ms('1m') // 60000 -ms('5s') // 5000 -ms('1y') // 31557600000 -ms('100') // 100 -ms('-3 days') // -259200000 -ms('-1h') // -3600000 -ms('-200') // -200 -``` - -### Convert from Milliseconds - -```js -ms(60000) // "1m" -ms(2 * 60000) // "2m" -ms(-3 * 60000) // "-3m" -ms(ms('10 hours')) // "10h" -``` - -### Time Format Written-Out - -```js -ms(60000, { long: true }) // "1 minute" -ms(2 * 60000, { long: true }) // "2 minutes" -ms(-3 * 60000, { long: true }) // "-3 minutes" -ms(ms('10 hours'), { long: true }) // "10 hours" -``` - -## Features - -- Works both in [Node.js](https://nodejs.org) and in the browser -- If a number is supplied to `ms`, a string with a unit is returned -- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`) -- If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned - -## Related Packages - -- [ms.macro](https://github.com/knpwrs/ms.macro) - Run `ms` as a macro at build-time. - -## Caught a Bug? - -1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device -2. Link the package to the global module directory: `npm link` -3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, Node.js will now use your clone of ms! - -As always, you can run the tests using: `npm test` diff --git a/graphql/node_modules/natural-compare/README.md b/graphql/node_modules/natural-compare/README.md deleted file mode 100644 index c85dfdf9..00000000 --- a/graphql/node_modules/natural-compare/README.md +++ /dev/null @@ -1,125 +0,0 @@ - -[Build]: http://img.shields.io/travis/litejs/natural-compare-lite.png -[Coverage]: http://img.shields.io/coveralls/litejs/natural-compare-lite.png -[1]: https://travis-ci.org/litejs/natural-compare-lite -[2]: https://coveralls.io/r/litejs/natural-compare-lite -[npm package]: https://npmjs.org/package/natural-compare-lite -[GitHub repo]: https://github.com/litejs/natural-compare-lite - - - - @version 1.4.0 - @date 2015-10-26 - @stability 3 - Stable - - -Natural Compare – [![Build][]][1] [![Coverage][]][2] -=============== - -Compare strings containing a mix of letters and numbers -in the way a human being would in sort order. -This is described as a "natural ordering". - -```text -Standard sorting: Natural order sorting: - img1.png img1.png - img10.png img2.png - img12.png img10.png - img2.png img12.png -``` - -String.naturalCompare returns a number indicating -whether a reference string comes before or after or is the same -as the given string in sort order. -Use it with builtin sort() function. - - - -### Installation - -- In browser - -```html - -``` - -- In node.js: `npm install natural-compare-lite` - -```javascript -require("natural-compare-lite") -``` - -### Usage - -```javascript -// Simple case sensitive example -var a = ["z1.doc", "z10.doc", "z17.doc", "z2.doc", "z23.doc", "z3.doc"]; -a.sort(String.naturalCompare); -// ["z1.doc", "z2.doc", "z3.doc", "z10.doc", "z17.doc", "z23.doc"] - -// Use wrapper function for case insensitivity -a.sort(function(a, b){ - return String.naturalCompare(a.toLowerCase(), b.toLowerCase()); -}) - -// In most cases we want to sort an array of objects -var a = [ {"street":"350 5th Ave", "room":"A-1021"} - , {"street":"350 5th Ave", "room":"A-21046-b"} ]; - -// sort by street, then by room -a.sort(function(a, b){ - return String.naturalCompare(a.street, b.street) || String.naturalCompare(a.room, b.room); -}) - -// When text transformation is needed (eg toLowerCase()), -// it is best for performance to keep -// transformed key in that object. -// There are no need to do text transformation -// on each comparision when sorting. -var a = [ {"make":"Audi", "model":"A6"} - , {"make":"Kia", "model":"Rio"} ]; - -// sort by make, then by model -a.map(function(car){ - car.sort_key = (car.make + " " + car.model).toLowerCase(); -}) -a.sort(function(a, b){ - return String.naturalCompare(a.sort_key, b.sort_key); -}) -``` - -- Works well with dates in ISO format eg "Rev 2012-07-26.doc". - - -### Custom alphabet - -It is possible to configure a custom alphabet -to achieve a desired order. - -```javascript -// Estonian alphabet -String.alphabet = "ABDEFGHIJKLMNOPRSŠZŽTUVÕÄÖÜXYabdefghijklmnoprsšzžtuvõäöüxy" -["t", "z", "x", "õ"].sort(String.naturalCompare) -// ["z", "t", "õ", "x"] - -// Russian alphabet -String.alphabet = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя" -["Ё", "А", "Б"].sort(String.naturalCompare) -// ["А", "Б", "Ё"] -``` - - -External links --------------- - -- [GitHub repo][https://github.com/litejs/natural-compare-lite] -- [jsperf test](http://jsperf.com/natural-sort-2/12) - - -Licence -------- - -Copyright (c) 2012-2015 Lauri Rooden <lauri@rooden.ee> -[The MIT License](http://lauri.rooden.ee/mit-license.txt) - - diff --git a/graphql/node_modules/natural-compare/index.js b/graphql/node_modules/natural-compare/index.js deleted file mode 100644 index e705d49f..00000000 --- a/graphql/node_modules/natural-compare/index.js +++ /dev/null @@ -1,57 +0,0 @@ - - - -/* - * @version 1.4.0 - * @date 2015-10-26 - * @stability 3 - Stable - * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite) - * @license MIT License - */ - - -var naturalCompare = function(a, b) { - var i, codeA - , codeB = 1 - , posA = 0 - , posB = 0 - , alphabet = String.alphabet - - function getCode(str, pos, code) { - if (code) { - for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i; - return +str.slice(pos - 1, i) - } - code = alphabet && alphabet.indexOf(str.charAt(pos)) - return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code - : code < 46 ? 65 // - - : code < 48 ? code - 1 - : code < 58 ? code + 18 // 0-9 - : code < 65 ? code - 11 - : code < 91 ? code + 11 // A-Z - : code < 97 ? code - 37 - : code < 123 ? code + 5 // a-z - : code - 63 - } - - - if ((a+="") != (b+="")) for (;codeB;) { - codeA = getCode(a, posA++) - codeB = getCode(b, posB++) - - if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) { - codeA = getCode(a, posA, posA) - codeB = getCode(b, posB, posA = i) - posB = i - } - - if (codeA != codeB) return (codeA < codeB) ? -1 : 1 - } - return 0 -} - -try { - module.exports = naturalCompare; -} catch (e) { - String.naturalCompare = naturalCompare; -} diff --git a/graphql/node_modules/natural-compare/package.json b/graphql/node_modules/natural-compare/package.json deleted file mode 100644 index 1a71362e..00000000 --- a/graphql/node_modules/natural-compare/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "natural-compare", - "version": "1.4.0", - "stability": 3, - "author": "Lauri Rooden (https://github.com/litejs/natural-compare-lite)", - "license": "MIT", - "description": "Compare strings containing a mix of letters and numbers in the way a human being would in sort order.", - "keywords": [ - "string", - "natural", - "order", - "sort", - "natsort", - "natcmp", - "compare", - "alphanum", - "litejs" - ], - "main": "index.js", - "readmeFilename": "README.md", - "files": [ - "index.js" - ], - "scripts": { - "build": "node node_modules/buildman/index.js --all", - "test": "node tests/index.js" - }, - "repository": "git://github.com/litejs/natural-compare-lite.git", - "bugs": { - "url": "https://github.com/litejs/natural-compare-lite/issues" - }, - "devDependencies": { - "buildman": "*", - "testman": "*" - }, - "buildman": { - "dist/index-min.js": { - "banner": "/*! litejs.com/MIT-LICENSE.txt */", - "input": "index.js" - } - } -} diff --git a/graphql/node_modules/optionator/CHANGELOG.md b/graphql/node_modules/optionator/CHANGELOG.md deleted file mode 100644 index 2928cc2c..00000000 --- a/graphql/node_modules/optionator/CHANGELOG.md +++ /dev/null @@ -1,59 +0,0 @@ -# 0.9.0 -- update dependencies, in particular `levn` and `type-check` - this could affect behaviour of argument parsing - -# 0.8.3 -- changes dependency from `wordwrap` to `word-wrap` due to license issue -- update dependencies - -# 0.8.2 -- fix bug #18 - detect missing value when flag is last item -- update dependencies - -# 0.8.1 -- update `fast-levenshtein` dependency - -# 0.8.0 -- update `levn` dependency - supplying a float value to an option with type `Int` now throws an error, instead of silently converting to an `Int` - -# 0.7.1 -- fix bug with use of `defaults` and `concatRepeatedArrays` or `mergeRepeatedObjects` - -# 0.7.0 -- added `concatrepeatedarrays` option: `oneValuePerFlag`, only allows one array value per flag -- added `typeAliases` option -- added `parseArgv` which takes an array and parses with the first two items sliced off -- changed enum help style -- bug fixes (#12) -- use of `concatRepeatedArrays` and `mergeRepeatedObjects` at the top level is deprecated, use it as either a per-option option, or set them in the `defaults` object to set them for all objects - -# 0.6.0 -- added `defaults` lib-option flag, allowing one to set default properties for all options -- added `concatRepeatedArrays` and `mergeRepeatedObjects` as option level properties, allowing you to turn this feature on for specific options only - -# 0.5.0 -- `Boolean` flags with `default: 'true'`, and no short aliases, will by default show the `--no` version in help - -# 0.4.0 -- add `mergeRepeatedObjects` setting - -# 0.3.0 -- add `concatRepeatedArrays` setting -- add `overrideRequired` option setting -- use just Levenshtein string compare algo rather than Levenshtein Damerau to due dependency license issue - -# 0.2.2 -- bug fixes - -# 0.2.1 -- improved interpolation -- added changelog - -# 0.2.0 -- add dependency checks to options - added `dependsOn` as an option property -- add interpolation for `prepend` and `append` text with new `generateHelp` option, `interpolate` - -# 0.1.1 -- update dependencies - -# 0.1.0 -- initial release diff --git a/graphql/node_modules/optionator/LICENSE b/graphql/node_modules/optionator/LICENSE deleted file mode 100644 index 525b1185..00000000 --- a/graphql/node_modules/optionator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) George Zahariev - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/optionator/README.md b/graphql/node_modules/optionator/README.md deleted file mode 100644 index 9cd0bb43..00000000 --- a/graphql/node_modules/optionator/README.md +++ /dev/null @@ -1,238 +0,0 @@ -# Optionator - - -Optionator is a JavaScript/Node.js option parsing and help generation library used by [eslint](http://eslint.org), [Grasp](http://graspjs.com), [LiveScript](http://livescript.net), [esmangle](https://github.com/estools/esmangle), [escodegen](https://github.com/estools/escodegen), and [many more](https://www.npmjs.com/browse/depended/optionator). - -For an online demo, check out the [Grasp online demo](http://www.graspjs.com/#demo). - -[About](#about) · [Usage](#usage) · [Settings Format](#settings-format) · [Argument Format](#argument-format) - -## Why? -The problem with other option parsers, such as `yargs` or `minimist`, is they just accept all input, valid or not. -With Optionator, if you mistype an option, it will give you an error (with a suggestion for what you meant). -If you give the wrong type of argument for an option, it will give you an error rather than supplying the wrong input to your application. - - $ cmd --halp - Invalid option '--halp' - perhaps you meant '--help'? - - $ cmd --count str - Invalid value for option 'count' - expected type Int, received value: str. - -Other helpful features include reformatting the help text based on the size of the console, so that it fits even if the console is narrow, and accepting not just an array (eg. process.argv), but a string or object as well, making things like testing much easier. - -## About -Optionator uses [type-check](https://github.com/gkz/type-check) and [levn](https://github.com/gkz/levn) behind the scenes to cast and verify input according the specified types. - -MIT license. Version 0.9.4 - - npm install optionator - -For updates on Optionator, [follow me on twitter](https://twitter.com/gkzahariev). - -Optionator is a Node.js module, but can be used in the browser as well if packed with webpack/browserify. - -## Usage -`require('optionator');` returns a function. It has one property, `VERSION`, the current version of the library as a string. This function is called with an object specifying your options and other information, see the [settings format section](#settings-format). This in turn returns an object with three properties, `parse`, `parseArgv`, `generateHelp`, and `generateHelpForOption`, which are all functions. - -```js -var optionator = require('optionator')({ - prepend: 'Usage: cmd [options]', - append: 'Version 1.0.0', - options: [{ - option: 'help', - alias: 'h', - type: 'Boolean', - description: 'displays help' - }, { - option: 'count', - alias: 'c', - type: 'Int', - description: 'number of things', - example: 'cmd --count 2' - }] -}); - -var options = optionator.parseArgv(process.argv); -if (options.help) { - console.log(optionator.generateHelp()); -} -... -``` - -### parse(input, parseOptions) -`parse` processes the `input` according to your settings, and returns an object with the results. - -##### arguments -* input - `[String] | Object | String` - the input you wish to parse -* parseOptions - `{slice: Int}` - all options optional - - `slice` specifies how much to slice away from the beginning if the input is an array or string - by default `0` for string, `2` for array (works with `process.argv`) - -##### returns -`Object` - the parsed options, each key is a camelCase version of the option name (specified in dash-case), and each value is the processed value for that option. Positional values are in an array under the `_` key. - -##### example -```js -parse(['node', 't.js', '--count', '2', 'positional']); // {count: 2, _: ['positional']} -parse('--count 2 positional'); // {count: 2, _: ['positional']} -parse({count: 2, _:['positional']}); // {count: 2, _: ['positional']} -``` - -### parseArgv(input) -`parseArgv` works exactly like `parse`, but only for array input and it slices off the first two elements. - -##### arguments -* input - `[String]` - the input you wish to parse - -##### returns -See "returns" section in "parse" - -##### example -```js -parseArgv(process.argv); -``` - -### generateHelp(helpOptions) -`generateHelp` produces help text based on your settings. - -##### arguments -* helpOptions - `{showHidden: Boolean, interpolate: Object}` - all options optional - - `showHidden` specifies whether to show options with `hidden: true` specified, by default it is `false` - - `interpolate` specify data to be interpolated in `prepend` and `append` text, `{{key}}` is the format - eg. `generateHelp({interpolate:{version: '0.4.2'}})`, will change this `append` text: `Version {{version}}` to `Version 0.4.2` - -##### returns -`String` - the generated help text - -##### example -```js -generateHelp(); /* -"Usage: cmd [options] positional - - -h, --help displays help - -c, --count Int number of things - -Version 1.0.0 -"*/ -``` - -### generateHelpForOption(optionName) -`generateHelpForOption` produces expanded help text for the specified with `optionName` option. If an `example` was specified for the option, it will be displayed, and if a `longDescription` was specified, it will display that instead of the `description`. - -##### arguments -* optionName - `String` - the name of the option to display - -##### returns -`String` - the generated help text for the option - -##### example -```js -generateHelpForOption('count'); /* -"-c, --count Int -description: number of things -example: cmd --count 2 -"*/ -``` - -## Settings Format -When your `require('optionator')`, you get a function that takes in a settings object. This object has the type: - - { - prepend: String, - append: String, - options: [{heading: String} | { - option: String, - alias: [String] | String, - type: String, - enum: [String], - default: String, - restPositional: Boolean, - required: Boolean, - overrideRequired: Boolean, - dependsOn: [String] | String, - concatRepeatedArrays: Boolean | (Boolean, Object), - mergeRepeatedObjects: Boolean, - description: String, - longDescription: String, - example: [String] | String - }], - helpStyle: { - aliasSeparator: String, - typeSeparator: String, - descriptionSeparator: String, - initialIndent: Int, - secondaryIndent: Int, - maxPadFactor: Number - }, - mutuallyExclusive: [[String | [String]]], - concatRepeatedArrays: Boolean | (Boolean, Object), // deprecated, set in defaults object - mergeRepeatedObjects: Boolean, // deprecated, set in defaults object - positionalAnywhere: Boolean, - typeAliases: Object, - defaults: Object - } - -All of the properties are optional (the `Maybe` has been excluded for brevities sake), except for having either `heading: String` or `option: String` in each object in the `options` array. - -### Top Level Properties -* `prepend` is an optional string to be placed before the options in the help text -* `append` is an optional string to be placed after the options in the help text -* `options` is a required array specifying your options and headings, the options and headings will be displayed in the order specified -* `helpStyle` is an optional object which enables you to change the default appearance of some aspects of the help text -* `mutuallyExclusive` is an optional array of arrays of either strings or arrays of strings. The top level array is a list of rules, each rule is a list of elements - each element can be either a string (the name of an option), or a list of strings (a group of option names) - there will be an error if more than one element is present -* `concatRepeatedArrays` see description under the "Option Properties" heading - use at the top level is deprecated, if you want to set this for all options, use the `defaults` property -* `mergeRepeatedObjects` see description under the "Option Properties" heading - use at the top level is deprecated, if you want to set this for all options, use the `defaults` property -* `positionalAnywhere` is an optional boolean (defaults to `true`) - when `true` it allows positional arguments anywhere, when `false`, all arguments after the first positional one are taken to be positional as well, even if they look like a flag. For example, with `positionalAnywhere: false`, the arguments `--flag --boom 12 --crack` would have two positional arguments: `12` and `--crack` -* `typeAliases` is an optional object, it allows you to set aliases for types, eg. `{Path: 'String'}` would allow you to use the type `Path` as an alias for the type `String` -* `defaults` is an optional object following the option properties format, which specifies default values for all options. A default will be overridden if manually set. For example, you can do `default: { type: "String" }` to set the default type of all options to `String`, and then override that default in an individual option by setting the `type` property - -#### Heading Properties -* `heading` a required string, the name of the heading - -#### Option Properties -* `option` the required name of the option - use dash-case, without the leading dashes -* `alias` is an optional string or array of strings which specify any aliases for the option -* `type` is a required string in the [type check](https://github.com/gkz/type-check) [format](https://github.com/gkz/type-check#type-format), this will be used to cast the inputted value and validate it -* `enum` is an optional array of strings, each string will be parsed by [levn](https://github.com/gkz/levn) - the argument value must be one of the resulting values - each potential value must validate against the specified `type` -* `default` is a optional string, which will be parsed by [levn](https://github.com/gkz/levn) and used as the default value if none is set - the value must validate against the specified `type` -* `restPositional` is an optional boolean - if set to `true`, everything after the option will be taken to be a positional argument, even if it looks like a named argument -* `required` is an optional boolean - if set to `true`, the option parsing will fail if the option is not defined -* `overrideRequired` is a optional boolean - if set to `true` and the option is used, and there is another option which is required but not set, it will override the need for the required option and there will be no error - this is useful if you have required options and want to use `--help` or `--version` flags -* `concatRepeatedArrays` is an optional boolean or tuple with boolean and options object (defaults to `false`) - when set to `true` and an option contains an array value and is repeated, the subsequent values for the flag will be appended rather than overwriting the original value - eg. option `g` of type `[String]`: `-g a -g b -g c,d` will result in `['a','b','c','d']` - - You can supply an options object by giving the following value: `[true, options]`. The one currently supported option is `oneValuePerFlag`, this only allows one array value per flag. This is useful if your potential values contain a comma. -* `mergeRepeatedObjects` is an optional boolean (defaults to `false`) - when set to `true` and an option contains an object value and is repeated, the subsequent values for the flag will be merged rather than overwriting the original value - eg. option `g` of type `Object`: `-g a:1 -g b:2 -g c:3,d:4` will result in `{a: 1, b: 2, c: 3, d: 4}` -* `dependsOn` is an optional string or array of strings - if simply a string (the name of another option), it will make sure that that other option is set, if an array of strings, depending on whether `'and'` or `'or'` is first, it will either check whether all (`['and', 'option-a', 'option-b']`), or at least one (`['or', 'option-a', 'option-b']`) other options are set -* `description` is an optional string, which will be displayed next to the option in the help text -* `longDescription` is an optional string, it will be displayed instead of the `description` when `generateHelpForOption` is used -* `example` is an optional string or array of strings with example(s) for the option - these will be displayed when `generateHelpForOption` is used - -#### Help Style Properties -* `aliasSeparator` is an optional string, separates multiple names from each other - default: ' ,' -* `typeSeparator` is an optional string, separates the type from the names - default: ' ' -* `descriptionSeparator` is an optional string , separates the description from the padded name and type - default: ' ' -* `initialIndent` is an optional int - the amount of indent for options - default: 2 -* `secondaryIndent` is an optional int - the amount of indent if wrapped fully (in addition to the initial indent) - default: 4 -* `maxPadFactor` is an optional number - affects the default level of padding for the names/type, it is multiplied by the average of the length of the names/type - default: 1.5 - -## Argument Format -At the highest level there are two types of arguments: named, and positional. - -Name arguments of any length are prefixed with `--` (eg. `--go`), and those of one character may be prefixed with either `--` or `-` (eg. `-g`). - -There are two types of named arguments: boolean flags (eg. `--problemo`, `-p`) which take no value and result in a `true` if they are present, the falsey `undefined` if they are not present, or `false` if present and explicitly prefixed with `no` (eg. `--no-problemo`). Named arguments with values (eg. `--tseries 800`, `-t 800`) are the other type. If the option has a type `Boolean` it will automatically be made into a boolean flag. Any other type results in a named argument that takes a value. - -For more information about how to properly set types to get the value you want, take a look at the [type check](https://github.com/gkz/type-check) and [levn](https://github.com/gkz/levn) pages. - -You can group single character arguments that use a single `-`, however all except the last must be boolean flags (which take no value). The last may be a boolean flag, or an argument which takes a value - eg. `-ba 2` is equivalent to `-b -a 2`. - -Positional arguments are all those values which do not fall under the above - they can be anywhere, not just at the end. For example, in `cmd -b one -a 2 two` where `b` is a boolean flag, and `a` has the type `Number`, there are two positional arguments, `one` and `two`. - -Everything after an `--` is positional, even if it looks like a named argument. - -You may optionally use `=` to separate option names from values, for example: `--count=2`. - -If you specify the option `NUM`, then any argument using a single `-` followed by a number will be valid and will set the value of `NUM`. Eg. `-2` will be parsed into `NUM: 2`. - -If duplicate named arguments are present, the last one will be taken. - -## Technical About -`optionator` is written in [LiveScript](http://livescript.net/) - a language that compiles to JavaScript. It uses [levn](https://github.com/gkz/levn) to cast arguments to their specified type, and uses [type-check](https://github.com/gkz/type-check) to validate values. It also uses the [prelude.ls](http://preludels.com/) library. diff --git a/graphql/node_modules/optionator/lib/help.js b/graphql/node_modules/optionator/lib/help.js deleted file mode 100644 index 59e6f969..00000000 --- a/graphql/node_modules/optionator/lib/help.js +++ /dev/null @@ -1,260 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var ref$, id, find, sort, min, max, map, unlines, nameToRaw, dasherize, naturalJoin, wordWrap, wordwrap, getPreText, setHelpStyleDefaults, generateHelpForOption, generateHelp; - ref$ = require('prelude-ls'), id = ref$.id, find = ref$.find, sort = ref$.sort, min = ref$.min, max = ref$.max, map = ref$.map, unlines = ref$.unlines; - ref$ = require('./util'), nameToRaw = ref$.nameToRaw, dasherize = ref$.dasherize, naturalJoin = ref$.naturalJoin; - wordWrap = require('word-wrap'); - wordwrap = function(a, b){ - var ref$, indent, width; - ref$ = b === undefined - ? ['', a - 1] - : [repeatString$(' ', a), b - a - 1], indent = ref$[0], width = ref$[1]; - return function(text){ - return wordWrap(text, { - indent: indent, - width: width, - trim: true - }); - }; - }; - getPreText = function(option, arg$, maxWidth){ - var mainName, shortNames, ref$, longNames, type, description, aliasSeparator, typeSeparator, initialIndent, names, namesString, namesStringLen, typeSeparatorString, typeSeparatorStringLen, wrap; - mainName = option.option, shortNames = (ref$ = option.shortNames) != null - ? ref$ - : [], longNames = (ref$ = option.longNames) != null - ? ref$ - : [], type = option.type, description = option.description; - aliasSeparator = arg$.aliasSeparator, typeSeparator = arg$.typeSeparator, initialIndent = arg$.initialIndent; - if (option.negateName) { - mainName = "no-" + mainName; - if (longNames) { - longNames = map(function(it){ - return "no-" + it; - }, longNames); - } - } - names = mainName.length === 1 - ? [mainName].concat(shortNames, longNames) - : shortNames.concat([mainName], longNames); - namesString = map(nameToRaw, names).join(aliasSeparator); - namesStringLen = namesString.length; - typeSeparatorString = mainName === 'NUM' ? '::' : typeSeparator; - typeSeparatorStringLen = typeSeparatorString.length; - if (maxWidth != null && !option.boolean && initialIndent + namesStringLen + typeSeparatorStringLen + type.length > maxWidth) { - wrap = wordwrap(initialIndent + namesStringLen + typeSeparatorStringLen, maxWidth); - return namesString + "" + typeSeparatorString + wrap(type).replace(/^\s+/, ''); - } else { - return namesString + "" + (option.boolean - ? '' - : typeSeparatorString + "" + type); - } - }; - setHelpStyleDefaults = function(helpStyle){ - helpStyle.aliasSeparator == null && (helpStyle.aliasSeparator = ', '); - helpStyle.typeSeparator == null && (helpStyle.typeSeparator = ' '); - helpStyle.descriptionSeparator == null && (helpStyle.descriptionSeparator = ' '); - helpStyle.initialIndent == null && (helpStyle.initialIndent = 2); - helpStyle.secondaryIndent == null && (helpStyle.secondaryIndent = 4); - helpStyle.maxPadFactor == null && (helpStyle.maxPadFactor = 1.5); - }; - generateHelpForOption = function(getOption, arg$){ - var stdout, helpStyle, ref$; - stdout = arg$.stdout, helpStyle = (ref$ = arg$.helpStyle) != null - ? ref$ - : {}; - setHelpStyleDefaults(helpStyle); - return function(optionName){ - var maxWidth, wrap, option, e, pre, defaultString, restPositionalString, description, fullDescription, that, preDescription, descriptionString, exampleString, examples, seperator; - maxWidth = stdout != null && stdout.isTTY ? stdout.columns - 1 : null; - wrap = maxWidth ? wordwrap(maxWidth) : id; - try { - option = getOption(dasherize(optionName)); - } catch (e$) { - e = e$; - return e.message; - } - pre = getPreText(option, helpStyle); - defaultString = option['default'] && !option.negateName ? "\ndefault: " + option['default'] : ''; - restPositionalString = option.restPositional ? 'Everything after this option is considered a positional argument, even if it looks like an option.' : ''; - description = option.longDescription || option.description && sentencize(option.description); - fullDescription = description && restPositionalString - ? description + " " + restPositionalString - : (that = description || restPositionalString) ? that : ''; - preDescription = 'description:'; - descriptionString = !fullDescription - ? '' - : maxWidth && fullDescription.length - 1 - preDescription.length > maxWidth - ? "\n" + preDescription + "\n" + wrap(fullDescription) - : "\n" + preDescription + " " + fullDescription; - exampleString = (that = option.example) ? (examples = [].concat(that), examples.length > 1 - ? "\nexamples:\n" + unlines(examples) - : "\nexample: " + examples[0]) : ''; - seperator = defaultString || descriptionString || exampleString ? "\n" + repeatString$('=', pre.length) : ''; - return pre + "" + seperator + defaultString + descriptionString + exampleString; - }; - }; - generateHelp = function(arg$){ - var options, prepend, append, helpStyle, ref$, stdout, aliasSeparator, typeSeparator, descriptionSeparator, maxPadFactor, initialIndent, secondaryIndent; - options = arg$.options, prepend = arg$.prepend, append = arg$.append, helpStyle = (ref$ = arg$.helpStyle) != null - ? ref$ - : {}, stdout = arg$.stdout; - setHelpStyleDefaults(helpStyle); - aliasSeparator = helpStyle.aliasSeparator, typeSeparator = helpStyle.typeSeparator, descriptionSeparator = helpStyle.descriptionSeparator, maxPadFactor = helpStyle.maxPadFactor, initialIndent = helpStyle.initialIndent, secondaryIndent = helpStyle.secondaryIndent; - return function(arg$){ - var ref$, showHidden, interpolate, maxWidth, output, out, data, optionCount, totalPreLen, preLens, i$, len$, item, that, pre, descParts, desc, preLen, sortedPreLens, maxPreLen, preLenMean, x, padAmount, descSepLen, fullWrapCount, partialWrapCount, descLen, totalLen, initialSpace, wrapAllFull, i, wrap; - ref$ = arg$ != null - ? arg$ - : {}, showHidden = ref$.showHidden, interpolate = ref$.interpolate; - maxWidth = stdout != null && stdout.isTTY ? stdout.columns - 1 : null; - output = []; - out = function(it){ - return output.push(it != null ? it : ''); - }; - if (prepend) { - out(interpolate ? interp(prepend, interpolate) : prepend); - out(); - } - data = []; - optionCount = 0; - totalPreLen = 0; - preLens = []; - for (i$ = 0, len$ = (ref$ = options).length; i$ < len$; ++i$) { - item = ref$[i$]; - if (showHidden || !item.hidden) { - if (that = item.heading) { - data.push({ - type: 'heading', - value: that - }); - } else { - pre = getPreText(item, helpStyle, maxWidth); - descParts = []; - if ((that = item.description) != null) { - descParts.push(that); - } - if (that = item['enum']) { - descParts.push("either: " + naturalJoin(that)); - } - if (item['default'] && !item.negateName) { - descParts.push("default: " + item['default']); - } - desc = descParts.join(' - '); - data.push({ - type: 'option', - pre: pre, - desc: desc, - descLen: desc.length - }); - preLen = pre.length; - optionCount++; - totalPreLen += preLen; - preLens.push(preLen); - } - } - } - sortedPreLens = sort(preLens); - maxPreLen = sortedPreLens[sortedPreLens.length - 1]; - preLenMean = initialIndent + totalPreLen / optionCount; - x = optionCount > 2 ? min(preLenMean * maxPadFactor, maxPreLen) : maxPreLen; - for (i$ = sortedPreLens.length - 1; i$ >= 0; --i$) { - preLen = sortedPreLens[i$]; - if (preLen <= x) { - padAmount = preLen; - break; - } - } - descSepLen = descriptionSeparator.length; - if (maxWidth != null) { - fullWrapCount = 0; - partialWrapCount = 0; - for (i$ = 0, len$ = data.length; i$ < len$; ++i$) { - item = data[i$]; - if (item.type === 'option') { - pre = item.pre, desc = item.desc, descLen = item.descLen; - if (descLen === 0) { - item.wrap = 'none'; - } else { - preLen = max(padAmount, pre.length) + initialIndent + descSepLen; - totalLen = preLen + descLen; - if (totalLen > maxWidth) { - if (descLen / 2.5 > maxWidth - preLen) { - fullWrapCount++; - item.wrap = 'full'; - } else { - partialWrapCount++; - item.wrap = 'partial'; - } - } else { - item.wrap = 'none'; - } - } - } - } - } - initialSpace = repeatString$(' ', initialIndent); - wrapAllFull = optionCount > 1 && fullWrapCount + partialWrapCount * 0.5 > optionCount * 0.5; - for (i$ = 0, len$ = data.length; i$ < len$; ++i$) { - i = i$; - item = data[i$]; - if (item.type === 'heading') { - if (i !== 0) { - out(); - } - out(item.value + ":"); - } else { - pre = item.pre, desc = item.desc, descLen = item.descLen, wrap = item.wrap; - if (maxWidth != null) { - if (wrapAllFull || wrap === 'full') { - wrap = wordwrap(initialIndent + secondaryIndent, maxWidth); - out(initialSpace + "" + pre + "\n" + wrap(desc)); - continue; - } else if (wrap === 'partial') { - wrap = wordwrap(initialIndent + descSepLen + max(padAmount, pre.length), maxWidth); - out(initialSpace + "" + pad(pre, padAmount) + descriptionSeparator + wrap(desc).replace(/^\s+/, '')); - continue; - } - } - if (descLen === 0) { - out(initialSpace + "" + pre); - } else { - out(initialSpace + "" + pad(pre, padAmount) + descriptionSeparator + desc); - } - } - } - if (append) { - out(); - out(interpolate ? interp(append, interpolate) : append); - } - return unlines(output); - }; - }; - function pad(str, num){ - var len, padAmount; - len = str.length; - padAmount = num - len; - return str + "" + repeatString$(' ', padAmount > 0 ? padAmount : 0); - } - function sentencize(str){ - var first, rest, period; - first = str.charAt(0).toUpperCase(); - rest = str.slice(1); - period = /[\.!\?]$/.test(str) ? '' : '.'; - return first + "" + rest + period; - } - function interp(string, object){ - return string.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g, function(arg$, key){ - var ref$; - return (ref$ = object[key]) != null - ? ref$ - : "{{" + key + "}}"; - }); - } - module.exports = { - generateHelp: generateHelp, - generateHelpForOption: generateHelpForOption - }; - function repeatString$(str, n){ - for (var r = ''; n > 0; (n >>= 1) && (str += str)) if (n & 1) r += str; - return r; - } -}).call(this); diff --git a/graphql/node_modules/optionator/lib/index.js b/graphql/node_modules/optionator/lib/index.js deleted file mode 100644 index 436b7cc9..00000000 --- a/graphql/node_modules/optionator/lib/index.js +++ /dev/null @@ -1,465 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var VERSION, ref$, id, map, compact, any, groupBy, partition, chars, isItNaN, keys, Obj, camelize, deepIs, closestString, nameToRaw, dasherize, naturalJoin, generateHelp, generateHelpForOption, parsedTypeCheck, parseType, parseLevn, camelizeKeys, parseString, main, toString$ = {}.toString, slice$ = [].slice, arrayFrom$ = Array.from || function(x){return slice$.call(x);}; - VERSION = '0.9.4'; - ref$ = require('prelude-ls'), id = ref$.id, map = ref$.map, compact = ref$.compact, any = ref$.any, groupBy = ref$.groupBy, partition = ref$.partition, chars = ref$.chars, isItNaN = ref$.isItNaN, keys = ref$.keys, Obj = ref$.Obj, camelize = ref$.camelize; - deepIs = require('deep-is'); - ref$ = require('./util'), closestString = ref$.closestString, nameToRaw = ref$.nameToRaw, dasherize = ref$.dasherize, naturalJoin = ref$.naturalJoin; - ref$ = require('./help'), generateHelp = ref$.generateHelp, generateHelpForOption = ref$.generateHelpForOption; - ref$ = require('type-check'), parsedTypeCheck = ref$.parsedTypeCheck, parseType = ref$.parseType; - parseLevn = require('levn').parsedTypeParse; - camelizeKeys = function(obj){ - var key, value, resultObj$ = {}; - for (key in obj) { - value = obj[key]; - resultObj$[camelize(key)] = value; - } - return resultObj$; - }; - parseString = function(string){ - var assignOpt, regex, replaceRegex, result; - assignOpt = '--?[a-zA-Z][-a-z-A-Z0-9]*='; - regex = RegExp('(?:' + assignOpt + ')?(?:\'(?:\\\\\'|[^\'])+\'|"(?:\\\\"|[^"])+")|[^\'"\\s]+', 'g'); - replaceRegex = RegExp('^(' + assignOpt + ')?[\'"]([\\s\\S]*)[\'"]$'); - result = map(function(it){ - return it.replace(replaceRegex, '$1$2'); - }, string.match(regex) || []); - return result; - }; - main = function(libOptions){ - var opts, defaults, required, traverse, getOption, parse; - opts = {}; - defaults = {}; - required = []; - if (toString$.call(libOptions.stdout).slice(8, -1) === 'Undefined') { - libOptions.stdout = process.stdout; - } - libOptions.positionalAnywhere == null && (libOptions.positionalAnywhere = true); - libOptions.typeAliases == null && (libOptions.typeAliases = {}); - libOptions.defaults == null && (libOptions.defaults = {}); - if (libOptions.concatRepeatedArrays != null) { - libOptions.defaults.concatRepeatedArrays = libOptions.concatRepeatedArrays; - } - if (libOptions.mergeRepeatedObjects != null) { - libOptions.defaults.mergeRepeatedObjects = libOptions.mergeRepeatedObjects; - } - traverse = function(options){ - var i$, len$, option, name, k, ref$, v, type, that, e, parsedPossibilities, parsedType, j$, len1$, possibility, rawDependsType, dependsOpts, dependsType, cra, alias, shortNames, longNames; - if (toString$.call(options).slice(8, -1) !== 'Array') { - throw new Error('No options defined.'); - } - for (i$ = 0, len$ = options.length; i$ < len$; ++i$) { - option = options[i$]; - if (option.heading == null) { - name = option.option; - if (opts[name] != null) { - throw new Error("Option '" + name + "' already defined."); - } - for (k in ref$ = libOptions.defaults) { - v = ref$[k]; - option[k] == null && (option[k] = v); - } - if (option.type === 'Boolean') { - option.boolean == null && (option.boolean = true); - } - if (option.parsedType == null) { - if (!option.type) { - throw new Error("No type defined for option '" + name + "'."); - } - try { - type = (that = libOptions.typeAliases[option.type]) != null - ? that - : option.type; - option.parsedType = parseType(type); - } catch (e$) { - e = e$; - throw new Error("Option '" + name + "': Error parsing type '" + option.type + "': " + e.message); - } - } - if (option['default']) { - try { - defaults[name] = parseLevn(option.parsedType, option['default']); - } catch (e$) { - e = e$; - throw new Error("Option '" + name + "': Error parsing default value '" + option['default'] + "' for type '" + option.type + "': " + e.message); - } - } - if (option['enum'] && !option.parsedPossiblities) { - parsedPossibilities = []; - parsedType = option.parsedType; - for (j$ = 0, len1$ = (ref$ = option['enum']).length; j$ < len1$; ++j$) { - possibility = ref$[j$]; - try { - parsedPossibilities.push(parseLevn(parsedType, possibility)); - } catch (e$) { - e = e$; - throw new Error("Option '" + name + "': Error parsing enum value '" + possibility + "' for type '" + option.type + "': " + e.message); - } - } - option.parsedPossibilities = parsedPossibilities; - } - if (that = option.dependsOn) { - if (that.length) { - ref$ = [].concat(option.dependsOn), rawDependsType = ref$[0], dependsOpts = slice$.call(ref$, 1); - dependsType = rawDependsType.toLowerCase(); - if (dependsOpts.length) { - if (dependsType === 'and' || dependsType === 'or') { - option.dependsOn = [dependsType].concat(arrayFrom$(dependsOpts)); - } else { - throw new Error("Option '" + name + "': If you have more than one dependency, you must specify either 'and' or 'or'"); - } - } else { - if ((ref$ = dependsType.toLowerCase()) === 'and' || ref$ === 'or') { - option.dependsOn = null; - } else { - option.dependsOn = ['and', rawDependsType]; - } - } - } else { - option.dependsOn = null; - } - } - if (option.required) { - required.push(name); - } - opts[name] = option; - if (option.concatRepeatedArrays != null) { - cra = option.concatRepeatedArrays; - if ('Boolean' === toString$.call(cra).slice(8, -1)) { - option.concatRepeatedArrays = [cra, {}]; - } else if (cra.length === 1) { - option.concatRepeatedArrays = [cra[0], {}]; - } else if (cra.length !== 2) { - throw new Error("Invalid setting for concatRepeatedArrays"); - } - } - if (option.alias || option.aliases) { - if (name === 'NUM') { - throw new Error("-NUM option can't have aliases."); - } - if (option.alias) { - option.aliases == null && (option.aliases = [].concat(option.alias)); - } - for (j$ = 0, len1$ = (ref$ = option.aliases).length; j$ < len1$; ++j$) { - alias = ref$[j$]; - if (opts[alias] != null) { - throw new Error("Option '" + alias + "' already defined."); - } - opts[alias] = option; - } - ref$ = partition(fn$, option.aliases), shortNames = ref$[0], longNames = ref$[1]; - option.shortNames == null && (option.shortNames = shortNames); - option.longNames == null && (option.longNames = longNames); - } - if ((!option.aliases || option.shortNames.length === 0) && option.type === 'Boolean' && option['default'] === 'true') { - option.negateName = true; - } - } - } - function fn$(it){ - return it.length === 1; - } - }; - traverse(libOptions.options); - getOption = function(name){ - var opt, possiblyMeant; - opt = opts[name]; - if (opt == null) { - possiblyMeant = closestString(keys(opts), name); - throw new Error("Invalid option '" + nameToRaw(name) + "'" + (possiblyMeant ? " - perhaps you meant '" + nameToRaw(possiblyMeant) + "'?" : '.')); - } - return opt; - }; - parse = function(input, arg$){ - var slice, obj, positional, restPositional, overrideRequired, prop, setValue, setDefaults, checkRequired, mutuallyExclusiveError, checkMutuallyExclusive, checkDependency, checkDependencies, checkProp, args, key, value, option, ref$, i$, len$, arg, that, result, short, argName, usingAssign, val, flags, len, j$, len1$, i, flag, opt, name, valPrime, negated, noedName; - slice = (arg$ != null - ? arg$ - : {}).slice; - obj = {}; - positional = []; - restPositional = false; - overrideRequired = false; - prop = null; - setValue = function(name, value){ - var opt, val, cra, e, currentType; - opt = getOption(name); - if (opt.boolean) { - val = value; - } else { - try { - cra = opt.concatRepeatedArrays; - if (cra != null && cra[0] && cra[1].oneValuePerFlag && opt.parsedType.length === 1 && opt.parsedType[0].structure === 'array') { - val = [parseLevn(opt.parsedType[0].of, value)]; - } else { - val = parseLevn(opt.parsedType, value); - } - } catch (e$) { - e = e$; - throw new Error("Invalid value for option '" + name + "' - expected type " + opt.type + ", received value: " + value + "."); - } - if (opt['enum'] && !any(function(it){ - return deepIs(it, val); - }, opt.parsedPossibilities)) { - throw new Error("Option " + name + ": '" + val + "' not one of " + naturalJoin(opt['enum']) + "."); - } - } - currentType = toString$.call(obj[name]).slice(8, -1); - if (obj[name] != null) { - if (opt.concatRepeatedArrays != null && opt.concatRepeatedArrays[0] && currentType === 'Array') { - obj[name] = obj[name].concat(val); - } else if (opt.mergeRepeatedObjects && currentType === 'Object') { - import$(obj[name], val); - } else { - obj[name] = val; - } - } else { - obj[name] = val; - } - if (opt.restPositional) { - restPositional = true; - } - if (opt.overrideRequired) { - overrideRequired = true; - } - }; - setDefaults = function(){ - var name, ref$, value; - for (name in ref$ = defaults) { - value = ref$[name]; - if (obj[name] == null) { - obj[name] = value; - } - } - }; - checkRequired = function(){ - var i$, ref$, len$, name; - if (overrideRequired) { - return; - } - for (i$ = 0, len$ = (ref$ = required).length; i$ < len$; ++i$) { - name = ref$[i$]; - if (!obj[name]) { - throw new Error("Option " + nameToRaw(name) + " is required."); - } - } - }; - mutuallyExclusiveError = function(first, second){ - throw new Error("The options " + nameToRaw(first) + " and " + nameToRaw(second) + " are mutually exclusive - you cannot use them at the same time."); - }; - checkMutuallyExclusive = function(){ - var rules, i$, len$, rule, present, j$, len1$, element, k$, len2$, opt; - rules = libOptions.mutuallyExclusive; - if (!rules) { - return; - } - for (i$ = 0, len$ = rules.length; i$ < len$; ++i$) { - rule = rules[i$]; - present = null; - for (j$ = 0, len1$ = rule.length; j$ < len1$; ++j$) { - element = rule[j$]; - if (toString$.call(element).slice(8, -1) === 'Array') { - for (k$ = 0, len2$ = element.length; k$ < len2$; ++k$) { - opt = element[k$]; - if (opt in obj) { - if (present != null) { - mutuallyExclusiveError(present, opt); - } else { - present = opt; - break; - } - } - } - } else { - if (element in obj) { - if (present != null) { - mutuallyExclusiveError(present, element); - } else { - present = element; - } - } - } - } - } - }; - checkDependency = function(option){ - var dependsOn, type, targetOptionNames, i$, len$, targetOptionName, targetOption; - dependsOn = option.dependsOn; - if (!dependsOn || option.dependenciesMet) { - return true; - } - type = dependsOn[0], targetOptionNames = slice$.call(dependsOn, 1); - for (i$ = 0, len$ = targetOptionNames.length; i$ < len$; ++i$) { - targetOptionName = targetOptionNames[i$]; - targetOption = obj[targetOptionName]; - if (targetOption && checkDependency(targetOption)) { - if (type === 'or') { - return true; - } - } else if (type === 'and') { - throw new Error("The option '" + option.option + "' did not have its dependencies met."); - } - } - if (type === 'and') { - return true; - } else { - throw new Error("The option '" + option.option + "' did not meet any of its dependencies."); - } - }; - checkDependencies = function(){ - var name; - for (name in obj) { - checkDependency(opts[name]); - } - }; - checkProp = function(){ - if (prop) { - throw new Error("Value for '" + prop + "' of type '" + getOption(prop).type + "' required."); - } - }; - switch (toString$.call(input).slice(8, -1)) { - case 'String': - args = parseString(input.slice(slice != null ? slice : 0)); - break; - case 'Array': - args = input.slice(slice != null ? slice : 2); - break; - case 'Object': - obj = {}; - for (key in input) { - value = input[key]; - if (key !== '_') { - option = getOption(dasherize(key)); - if (parsedTypeCheck(option.parsedType, value)) { - obj[option.option] = value; - } else { - throw new Error("Option '" + option.option + "': Invalid type for '" + value + "' - expected type '" + option.type + "'."); - } - } - } - checkMutuallyExclusive(); - checkDependencies(); - setDefaults(); - checkRequired(); - return ref$ = camelizeKeys(obj), ref$._ = input._ || [], ref$; - default: - throw new Error("Invalid argument to 'parse': " + input + "."); - } - for (i$ = 0, len$ = args.length; i$ < len$; ++i$) { - arg = args[i$]; - if (arg === '--') { - restPositional = true; - } else if (restPositional) { - positional.push(arg); - } else { - if (that = arg.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)) { - result = that; - checkProp(); - short = result[1].length === 1; - argName = result[2]; - usingAssign = result[3] != null; - val = result[4]; - if (usingAssign && val == null) { - throw new Error("No value for '" + argName + "' specified."); - } - if (short) { - flags = chars(argName); - len = flags.length; - for (j$ = 0, len1$ = flags.length; j$ < len1$; ++j$) { - i = j$; - flag = flags[j$]; - opt = getOption(flag); - name = opt.option; - if (restPositional) { - positional.push(flag); - } else if (i === len - 1) { - if (usingAssign) { - valPrime = opt.boolean ? parseLevn([{ - type: 'Boolean' - }], val) : val; - setValue(name, valPrime); - } else if (opt.boolean) { - setValue(name, true); - } else { - prop = name; - } - } else if (opt.boolean) { - setValue(name, true); - } else { - throw new Error("Can't set argument '" + flag + "' when not last flag in a group of short flags."); - } - } - } else { - negated = false; - if (that = argName.match(/^no-(.+)$/)) { - negated = true; - noedName = that[1]; - opt = getOption(noedName); - } else { - opt = getOption(argName); - } - name = opt.option; - if (opt.boolean) { - valPrime = usingAssign ? parseLevn([{ - type: 'Boolean' - }], val) : true; - if (negated) { - setValue(name, !valPrime); - } else { - setValue(name, valPrime); - } - } else { - if (negated) { - throw new Error("Only use 'no-' prefix for Boolean options, not with '" + noedName + "'."); - } - if (usingAssign) { - setValue(name, val); - } else { - prop = name; - } - } - } - } else if (that = arg.match(/^-([0-9]+(?:\.[0-9]+)?)$/)) { - opt = opts.NUM; - if (!opt) { - throw new Error('No -NUM option defined.'); - } - setValue(opt.option, that[1]); - } else { - if (prop) { - setValue(prop, arg); - prop = null; - } else { - positional.push(arg); - if (!libOptions.positionalAnywhere) { - restPositional = true; - } - } - } - } - } - checkProp(); - checkMutuallyExclusive(); - checkDependencies(); - setDefaults(); - checkRequired(); - return ref$ = camelizeKeys(obj), ref$._ = positional, ref$; - }; - return { - parse: parse, - parseArgv: function(it){ - return parse(it, { - slice: 2 - }); - }, - generateHelp: generateHelp(libOptions), - generateHelpForOption: generateHelpForOption(getOption, libOptions) - }; - }; - main.VERSION = VERSION; - module.exports = main; - function import$(obj, src){ - var own = {}.hasOwnProperty; - for (var key in src) if (own.call(src, key)) obj[key] = src[key]; - return obj; - } -}).call(this); diff --git a/graphql/node_modules/optionator/lib/util.js b/graphql/node_modules/optionator/lib/util.js deleted file mode 100644 index 5bc0cbb6..00000000 --- a/graphql/node_modules/optionator/lib/util.js +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var prelude, map, sortBy, fl, closestString, nameToRaw, dasherize, naturalJoin; - prelude = require('prelude-ls'), map = prelude.map, sortBy = prelude.sortBy; - fl = require('fast-levenshtein'); - closestString = function(possibilities, input){ - var distances, ref$, string, distance; - if (!possibilities.length) { - return; - } - distances = map(function(it){ - var ref$, longer, shorter; - ref$ = input.length > it.length - ? [input, it] - : [it, input], longer = ref$[0], shorter = ref$[1]; - return { - string: it, - distance: fl.get(longer, shorter) - }; - })( - possibilities); - ref$ = sortBy(function(it){ - return it.distance; - }, distances)[0], string = ref$.string, distance = ref$.distance; - return string; - }; - nameToRaw = function(name){ - if (name.length === 1 || name === 'NUM') { - return "-" + name; - } else { - return "--" + name; - } - }; - dasherize = function(string){ - if (/^[A-Z]/.test(string)) { - return string; - } else { - return prelude.dasherize(string); - } - }; - naturalJoin = function(array){ - if (array.length < 3) { - return array.join(' or '); - } else { - return array.slice(0, -1).join(', ') + ", or " + array[array.length - 1]; - } - }; - module.exports = { - closestString: closestString, - nameToRaw: nameToRaw, - dasherize: dasherize, - naturalJoin: naturalJoin - }; -}).call(this); diff --git a/graphql/node_modules/optionator/package.json b/graphql/node_modules/optionator/package.json deleted file mode 100644 index 72b21bab..00000000 --- a/graphql/node_modules/optionator/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "optionator", - "version": "0.9.4", - "author": "George Zahariev ", - "description": "option parsing and help generation", - "homepage": "https://github.com/gkz/optionator", - "keywords": [ - "options", - "flags", - "option parsing", - "cli" - ], - "files": [ - "lib", - "README.md", - "LICENSE" - ], - "main": "./lib/", - "bugs": "https://github.com/gkz/optionator/issues", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/gkz/optionator.git" - }, - "scripts": { - "test": "make test" - }, - "dependencies": { - "prelude-ls": "^1.2.1", - "deep-is": "^0.1.3", - "word-wrap": "^1.2.5", - "type-check": "^0.4.0", - "levn": "^0.4.1", - "fast-levenshtein": "^2.0.6" - }, - "devDependencies": { - "livescript": "^1.6.0", - "mocha": "^10.4.0" - } -} diff --git a/graphql/node_modules/p-limit/index.d.ts b/graphql/node_modules/p-limit/index.d.ts deleted file mode 100644 index f348d7f1..00000000 --- a/graphql/node_modules/p-limit/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -declare namespace pLimit { - interface Limit { - /** - The number of promises that are currently running. - */ - readonly activeCount: number; - - /** - The number of promises that are waiting to run (i.e. their internal `fn` was not called yet). - */ - readonly pendingCount: number; - - /** - Discard pending promises that are waiting to run. - - This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. - - Note: This does not cancel promises that are already running. - */ - clearQueue: () => void; - - /** - @param fn - Promise-returning/async function. - @param arguments - Any arguments to pass through to `fn`. Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a lot of functions. - @returns The promise returned by calling `fn(...arguments)`. - */ - ( - fn: (...arguments: Arguments) => PromiseLike | ReturnType, - ...arguments: Arguments - ): Promise; - } -} - -/** -Run multiple promise-returning & async functions with limited concurrency. - -@param concurrency - Concurrency limit. Minimum: `1`. -@returns A `limit` function. -*/ -declare function pLimit(concurrency: number): pLimit.Limit; - -export = pLimit; diff --git a/graphql/node_modules/p-limit/index.js b/graphql/node_modules/p-limit/index.js deleted file mode 100644 index c2ae52d9..00000000 --- a/graphql/node_modules/p-limit/index.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; -const Queue = require('yocto-queue'); - -const pLimit = concurrency => { - if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) { - throw new TypeError('Expected `concurrency` to be a number from 1 and up'); - } - - const queue = new Queue(); - let activeCount = 0; - - const next = () => { - activeCount--; - - if (queue.size > 0) { - queue.dequeue()(); - } - }; - - const run = async (fn, resolve, ...args) => { - activeCount++; - - const result = (async () => fn(...args))(); - - resolve(result); - - try { - await result; - } catch {} - - next(); - }; - - const enqueue = (fn, resolve, ...args) => { - queue.enqueue(run.bind(null, fn, resolve, ...args)); - - (async () => { - // This function needs to wait until the next microtask before comparing - // `activeCount` to `concurrency`, because `activeCount` is updated asynchronously - // when the run function is dequeued and called. The comparison in the if-statement - // needs to happen asynchronously as well to get an up-to-date value for `activeCount`. - await Promise.resolve(); - - if (activeCount < concurrency && queue.size > 0) { - queue.dequeue()(); - } - })(); - }; - - const generator = (fn, ...args) => new Promise(resolve => { - enqueue(fn, resolve, ...args); - }); - - Object.defineProperties(generator, { - activeCount: { - get: () => activeCount - }, - pendingCount: { - get: () => queue.size - }, - clearQueue: { - value: () => { - queue.clear(); - } - } - }); - - return generator; -}; - -module.exports = pLimit; diff --git a/graphql/node_modules/p-limit/license b/graphql/node_modules/p-limit/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/p-limit/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/p-limit/package.json b/graphql/node_modules/p-limit/package.json deleted file mode 100644 index 76514736..00000000 --- a/graphql/node_modules/p-limit/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "p-limit", - "version": "3.1.0", - "description": "Run multiple promise-returning & async functions with limited concurrency", - "license": "MIT", - "repository": "sindresorhus/p-limit", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "limit", - "limited", - "concurrency", - "throttle", - "throat", - "rate", - "batch", - "ratelimit", - "task", - "queue", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "delay": "^4.4.0", - "in-range": "^2.0.0", - "random-int": "^2.0.1", - "time-span": "^4.0.0", - "tsd": "^0.13.1", - "xo": "^0.35.0" - } -} diff --git a/graphql/node_modules/p-limit/readme.md b/graphql/node_modules/p-limit/readme.md deleted file mode 100644 index b283c1e6..00000000 --- a/graphql/node_modules/p-limit/readme.md +++ /dev/null @@ -1,101 +0,0 @@ -# p-limit - -> Run multiple promise-returning & async functions with limited concurrency - -## Install - -``` -$ npm install p-limit -``` - -## Usage - -```js -const pLimit = require('p-limit'); - -const limit = pLimit(1); - -const input = [ - limit(() => fetchSomething('foo')), - limit(() => fetchSomething('bar')), - limit(() => doSomething()) -]; - -(async () => { - // Only one promise is run at once - const result = await Promise.all(input); - console.log(result); -})(); -``` - -## API - -### pLimit(concurrency) - -Returns a `limit` function. - -#### concurrency - -Type: `number`\ -Minimum: `1`\ -Default: `Infinity` - -Concurrency limit. - -### limit(fn, ...args) - -Returns the promise returned by calling `fn(...args)`. - -#### fn - -Type: `Function` - -Promise-returning/async function. - -#### args - -Any arguments to pass through to `fn`. - -Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions. - -### limit.activeCount - -The number of promises that are currently running. - -### limit.pendingCount - -The number of promises that are waiting to run (i.e. their internal `fn` was not called yet). - -### limit.clearQueue() - -Discard pending promises that are waiting to run. - -This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app. - -Note: This does not cancel promises that are already running. - -## FAQ - -### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package? - -This package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause the queue. - -## Related - -- [p-queue](https://github.com/sindresorhus/p-queue) - Promise queue with concurrency control -- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions -- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions -- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency -- [More…](https://github.com/sindresorhus/promise-fun) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/p-locate/index.d.ts b/graphql/node_modules/p-locate/index.d.ts deleted file mode 100644 index 38c7e578..00000000 --- a/graphql/node_modules/p-locate/index.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -declare namespace pLocate { - interface Options { - /** - Number of concurrently pending promises returned by `tester`. Minimum: `1`. - - @default Infinity - */ - readonly concurrency?: number; - - /** - Preserve `input` order when searching. - - Disable this to improve performance if you don't care about the order. - - @default true - */ - readonly preserveOrder?: boolean; - } -} - -/** -Get the first fulfilled promise that satisfies the provided testing function. - -@param input - An iterable of promises/values to test. -@param tester - This function will receive resolved values from `input` and is expected to return a `Promise` or `boolean`. -@returns A `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`. - -@example -``` -import pathExists = require('path-exists'); -import pLocate = require('p-locate'); - -const files = [ - 'unicorn.png', - 'rainbow.png', // Only this one actually exists on disk - 'pony.png' -]; - -(async () => { - const foundPath = await pLocate(files, file => pathExists(file)); - - console.log(foundPath); - //=> 'rainbow' -})(); -``` -*/ -declare function pLocate( - input: Iterable | ValueType>, - tester: (element: ValueType) => PromiseLike | boolean, - options?: pLocate.Options -): Promise; - -export = pLocate; diff --git a/graphql/node_modules/p-locate/index.js b/graphql/node_modules/p-locate/index.js deleted file mode 100644 index 641c3dd1..00000000 --- a/graphql/node_modules/p-locate/index.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; -const pLimit = require('p-limit'); - -class EndError extends Error { - constructor(value) { - super(); - this.value = value; - } -} - -// The input can also be a promise, so we await it -const testElement = async (element, tester) => tester(await element); - -// The input can also be a promise, so we `Promise.all()` them both -const finder = async element => { - const values = await Promise.all(element); - if (values[1] === true) { - throw new EndError(values[0]); - } - - return false; -}; - -const pLocate = async (iterable, tester, options) => { - options = { - concurrency: Infinity, - preserveOrder: true, - ...options - }; - - const limit = pLimit(options.concurrency); - - // Start all the promises concurrently with optional limit - const items = [...iterable].map(element => [element, limit(testElement, element, tester)]); - - // Check the promises either serially or concurrently - const checkLimit = pLimit(options.preserveOrder ? 1 : Infinity); - - try { - await Promise.all(items.map(element => checkLimit(finder, element))); - } catch (error) { - if (error instanceof EndError) { - return error.value; - } - - throw error; - } -}; - -module.exports = pLocate; diff --git a/graphql/node_modules/p-locate/license b/graphql/node_modules/p-locate/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/p-locate/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/p-locate/package.json b/graphql/node_modules/p-locate/package.json deleted file mode 100644 index 2d5e447f..00000000 --- a/graphql/node_modules/p-locate/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "p-locate", - "version": "5.0.0", - "description": "Get the first fulfilled promise that satisfies the provided testing function", - "license": "MIT", - "repository": "sindresorhus/p-locate", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "locate", - "find", - "finder", - "search", - "searcher", - "test", - "array", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "fastest", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-limit": "^3.0.2" - }, - "devDependencies": { - "ava": "^2.4.0", - "delay": "^4.1.0", - "in-range": "^2.0.0", - "time-span": "^4.0.0", - "tsd": "^0.13.1", - "xo": "^0.32.1" - } -} diff --git a/graphql/node_modules/p-locate/readme.md b/graphql/node_modules/p-locate/readme.md deleted file mode 100644 index be85ec1d..00000000 --- a/graphql/node_modules/p-locate/readme.md +++ /dev/null @@ -1,93 +0,0 @@ -# p-locate [![Build Status](https://travis-ci.com/sindresorhus/p-locate.svg?branch=master)](https://travis-ci.com/github/sindresorhus/p-locate) - -> Get the first fulfilled promise that satisfies the provided testing function - -Think of it like an async version of [`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find). - -## Install - -``` -$ npm install p-locate -``` - -## Usage - -Here we find the first file that exists on disk, in array order. - -```js -const pathExists = require('path-exists'); -const pLocate = require('p-locate'); - -const files = [ - 'unicorn.png', - 'rainbow.png', // Only this one actually exists on disk - 'pony.png' -]; - -(async () => { - const foundPath = await pLocate(files, file => pathExists(file)); - - console.log(foundPath); - //=> 'rainbow' -})(); -``` - -*The above is just an example. Use [`locate-path`](https://github.com/sindresorhus/locate-path) if you need this.* - -## API - -### pLocate(input, tester, options?) - -Returns a `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`. - -#### input - -Type: `Iterable` - -An iterable of promises/values to test. - -#### tester(element) - -Type: `Function` - -This function will receive resolved values from `input` and is expected to return a `Promise` or `boolean`. - -#### options - -Type: `object` - -##### concurrency - -Type: `number`\ -Default: `Infinity`\ -Minimum: `1` - -Number of concurrently pending promises returned by `tester`. - -##### preserveOrder - -Type: `boolean`\ -Default: `true` - -Preserve `input` order when searching. - -Disable this to improve performance if you don't care about the order. - -## Related - -- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently -- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently -- [p-any](https://github.com/sindresorhus/p-any) - Wait for any promise to be fulfilled -- [More…](https://github.com/sindresorhus/promise-fun) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/parent-module/index.js b/graphql/node_modules/parent-module/index.js deleted file mode 100644 index a26f953a..00000000 --- a/graphql/node_modules/parent-module/index.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; -const callsites = require('callsites'); - -module.exports = filepath => { - const stacks = callsites(); - - if (!filepath) { - return stacks[2].getFileName(); - } - - let seenVal = false; - - // Skip the first stack as it's this function - stacks.shift(); - - for (const stack of stacks) { - const parentFilepath = stack.getFileName(); - - if (typeof parentFilepath !== 'string') { - continue; - } - - if (parentFilepath === filepath) { - seenVal = true; - continue; - } - - // Skip native modules - if (parentFilepath === 'module.js') { - continue; - } - - if (seenVal && parentFilepath !== filepath) { - return parentFilepath; - } - } -}; diff --git a/graphql/node_modules/parent-module/license b/graphql/node_modules/parent-module/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/parent-module/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/parent-module/package.json b/graphql/node_modules/parent-module/package.json deleted file mode 100644 index 790333d0..00000000 --- a/graphql/node_modules/parent-module/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "parent-module", - "version": "1.0.1", - "description": "Get the path of the parent module", - "license": "MIT", - "repository": "sindresorhus/parent-module", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "parent", - "module", - "package", - "pkg", - "caller", - "calling", - "module", - "path", - "callsites", - "callsite", - "stacktrace", - "stack", - "trace", - "function", - "file" - ], - "dependencies": { - "callsites": "^3.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "execa": "^1.0.0", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/parent-module/readme.md b/graphql/node_modules/parent-module/readme.md deleted file mode 100644 index dffb4ce8..00000000 --- a/graphql/node_modules/parent-module/readme.md +++ /dev/null @@ -1,67 +0,0 @@ -# parent-module [![Build Status](https://travis-ci.org/sindresorhus/parent-module.svg?branch=master)](https://travis-ci.org/sindresorhus/parent-module) - -> Get the path of the parent module - -Node.js exposes `module.parent`, but it only gives you the first cached parent, which is not necessarily the actual parent. - - -## Install - -``` -$ npm install parent-module -``` - - -## Usage - -```js -// bar.js -const parentModule = require('parent-module'); - -module.exports = () => { - console.log(parentModule()); - //=> '/Users/sindresorhus/dev/unicorn/foo.js' -}; -``` - -```js -// foo.js -const bar = require('./bar'); - -bar(); -``` - - -## API - -### parentModule([filepath]) - -By default, it will return the path of the immediate parent. - -#### filepath - -Type: `string`
-Default: [`__filename`](https://nodejs.org/api/globals.html#globals_filename) - -Filepath of the module of which to get the parent path. - -Useful if you want it to work [multiple module levels down](https://github.com/sindresorhus/parent-module/tree/master/fixtures/filepath). - - -## Tip - -Combine it with [`read-pkg-up`](https://github.com/sindresorhus/read-pkg-up) to read the package.json of the parent module. - -```js -const path = require('path'); -const readPkgUp = require('read-pkg-up'); -const parentModule = require('parent-module'); - -console.log(readPkgUp.sync({cwd: path.dirname(parentModule())}).pkg); -//=> {name: 'chalk', version: '1.0.0', …} -``` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/path-exists/index.d.ts b/graphql/node_modules/path-exists/index.d.ts deleted file mode 100644 index 54b7ab8f..00000000 --- a/graphql/node_modules/path-exists/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -declare const pathExists: { - /** - Check if a path exists. - - @returns Whether the path exists. - - @example - ``` - // foo.ts - import pathExists = require('path-exists'); - - (async () => { - console.log(await pathExists('foo.ts')); - //=> true - })(); - ``` - */ - (path: string): Promise; - - /** - Synchronously check if a path exists. - - @returns Whether the path exists. - */ - sync(path: string): boolean; -}; - -export = pathExists; diff --git a/graphql/node_modules/path-exists/index.js b/graphql/node_modules/path-exists/index.js deleted file mode 100644 index 1943921b..00000000 --- a/graphql/node_modules/path-exists/index.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; -const fs = require('fs'); -const {promisify} = require('util'); - -const pAccess = promisify(fs.access); - -module.exports = async path => { - try { - await pAccess(path); - return true; - } catch (_) { - return false; - } -}; - -module.exports.sync = path => { - try { - fs.accessSync(path); - return true; - } catch (_) { - return false; - } -}; diff --git a/graphql/node_modules/path-exists/license b/graphql/node_modules/path-exists/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/path-exists/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/path-exists/package.json b/graphql/node_modules/path-exists/package.json deleted file mode 100644 index 0755256a..00000000 --- a/graphql/node_modules/path-exists/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "path-exists", - "version": "4.0.0", - "description": "Check if a path exists", - "license": "MIT", - "repository": "sindresorhus/path-exists", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "exists", - "exist", - "file", - "filepath", - "fs", - "filesystem", - "file-system", - "access", - "stat" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/path-exists/readme.md b/graphql/node_modules/path-exists/readme.md deleted file mode 100644 index 81f98454..00000000 --- a/graphql/node_modules/path-exists/readme.md +++ /dev/null @@ -1,52 +0,0 @@ -# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists) - -> Check if a path exists - -NOTE: `fs.existsSync` has been un-deprecated in Node.js since 6.8.0. If you only need to check synchronously, this module is not needed. - -While [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it. - -Never use this before handling a file though: - -> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there. - - -## Install - -``` -$ npm install path-exists -``` - - -## Usage - -```js -// foo.js -const pathExists = require('path-exists'); - -(async () => { - console.log(await pathExists('foo.js')); - //=> true -})(); -``` - - -## API - -### pathExists(path) - -Returns a `Promise` of whether the path exists. - -### pathExists.sync(path) - -Returns a `boolean` of whether the path exists. - - -## Related - -- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/path-key/index.d.ts b/graphql/node_modules/path-key/index.d.ts deleted file mode 100644 index 7c575d19..00000000 --- a/graphql/node_modules/path-key/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// - -declare namespace pathKey { - interface Options { - /** - Use a custom environment variables object. Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env). - */ - readonly env?: {[key: string]: string | undefined}; - - /** - Get the PATH key for a specific platform. Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform). - */ - readonly platform?: NodeJS.Platform; - } -} - -declare const pathKey: { - /** - Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform. - - @example - ``` - import pathKey = require('path-key'); - - const key = pathKey(); - //=> 'PATH' - - const PATH = process.env[key]; - //=> '/usr/local/bin:/usr/bin:/bin' - ``` - */ - (options?: pathKey.Options): string; - - // TODO: Remove this for the next major release, refactor the whole definition to: - // declare function pathKey(options?: pathKey.Options): string; - // export = pathKey; - default: typeof pathKey; -}; - -export = pathKey; diff --git a/graphql/node_modules/path-key/index.js b/graphql/node_modules/path-key/index.js deleted file mode 100644 index 0cf6415d..00000000 --- a/graphql/node_modules/path-key/index.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const pathKey = (options = {}) => { - const environment = options.env || process.env; - const platform = options.platform || process.platform; - - if (platform !== 'win32') { - return 'PATH'; - } - - return Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path'; -}; - -module.exports = pathKey; -// TODO: Remove this for the next major release -module.exports.default = pathKey; diff --git a/graphql/node_modules/path-key/license b/graphql/node_modules/path-key/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/path-key/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/path-key/package.json b/graphql/node_modules/path-key/package.json deleted file mode 100644 index c8cbd383..00000000 --- a/graphql/node_modules/path-key/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "path-key", - "version": "3.1.1", - "description": "Get the PATH environment variable key cross-platform", - "license": "MIT", - "repository": "sindresorhus/path-key", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "key", - "environment", - "env", - "variable", - "var", - "get", - "cross-platform", - "windows" - ], - "devDependencies": { - "@types/node": "^11.13.0", - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/path-key/readme.md b/graphql/node_modules/path-key/readme.md deleted file mode 100644 index a9052d7a..00000000 --- a/graphql/node_modules/path-key/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# path-key [![Build Status](https://travis-ci.org/sindresorhus/path-key.svg?branch=master)](https://travis-ci.org/sindresorhus/path-key) - -> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform - -It's usually `PATH`, but on Windows it can be any casing like `Path`... - - -## Install - -``` -$ npm install path-key -``` - - -## Usage - -```js -const pathKey = require('path-key'); - -const key = pathKey(); -//=> 'PATH' - -const PATH = process.env[key]; -//=> '/usr/local/bin:/usr/bin:/bin' -``` - - -## API - -### pathKey(options?) - -#### options - -Type: `object` - -##### env - -Type: `object`
-Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env) - -Use a custom environment variables object. - -#### platform - -Type: `string`
-Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform) - -Get the PATH key for a specific platform. - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/path-type/index.d.ts b/graphql/node_modules/path-type/index.d.ts deleted file mode 100644 index 910a50a5..00000000 --- a/graphql/node_modules/path-type/index.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -export type PathTypeFunction = (path: string) => Promise; - -/** - * Check whether the passed `path` is a file. - * - * @param path - The path to check. - * @returns Whether the `path` is a file. - */ -export const isFile: PathTypeFunction; - -/** - * Check whether the passed `path` is a directory. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isDirectory: PathTypeFunction; - -/** - * Check whether the passed `path` is a symlink. - * - * @param path - The path to check. - * @returns Whether the `path` is a symlink. - */ -export const isSymlink: PathTypeFunction; - -export type PathTypeSyncFunction = (path: string) => boolean; - -/** - * Synchronously check whether the passed `path` is a file. - * - * @param path - The path to check. - * @returns Whether the `path` is a file. - */ -export const isFileSync: PathTypeSyncFunction; - -/** - * Synchronously check whether the passed `path` is a directory. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isDirectorySync: PathTypeSyncFunction; - -/** - * Synchronously check whether the passed `path` is a symlink. - * - * @param path - The path to check. - * @returns Whether the `path` is a directory. - */ -export const isSymlinkSync: PathTypeSyncFunction; diff --git a/graphql/node_modules/path-type/index.js b/graphql/node_modules/path-type/index.js deleted file mode 100644 index b8f34b24..00000000 --- a/graphql/node_modules/path-type/index.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; -const {promisify} = require('util'); -const fs = require('fs'); - -async function isType(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== 'string') { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - - try { - const stats = await promisify(fs[fsStatType])(filePath); - return stats[statsMethodName](); - } catch (error) { - if (error.code === 'ENOENT') { - return false; - } - - throw error; - } -} - -function isTypeSync(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== 'string') { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - - try { - return fs[fsStatType](filePath)[statsMethodName](); - } catch (error) { - if (error.code === 'ENOENT') { - return false; - } - - throw error; - } -} - -exports.isFile = isType.bind(null, 'stat', 'isFile'); -exports.isDirectory = isType.bind(null, 'stat', 'isDirectory'); -exports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink'); -exports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile'); -exports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory'); -exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink'); diff --git a/graphql/node_modules/path-type/license b/graphql/node_modules/path-type/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/path-type/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/path-type/package.json b/graphql/node_modules/path-type/package.json deleted file mode 100644 index 635b7110..00000000 --- a/graphql/node_modules/path-type/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "path-type", - "version": "4.0.0", - "description": "Check if a path is a file, directory, or symlink", - "license": "MIT", - "repository": "sindresorhus/path-type", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "devDependencies": { - "ava": "^1.3.1", - "nyc": "^13.3.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/path-type/readme.md b/graphql/node_modules/path-type/readme.md deleted file mode 100644 index 4c972fa5..00000000 --- a/graphql/node_modules/path-type/readme.md +++ /dev/null @@ -1,72 +0,0 @@ -# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type) - -> Check if a path is a file, directory, or symlink - - -## Install - -``` -$ npm install path-type -``` - - -## Usage - -```js -const {isFile} = require('path-type'); - -(async () => { - console.log(await isFile('package.json')); - //=> true -})(); -``` - - -## API - -### isFile(path) - -Check whether the passed `path` is a file. - -Returns a `Promise`. - -#### path - -Type: `string` - -The path to check. - -### isDirectory(path) - -Check whether the passed `path` is a directory. - -Returns a `Promise`. - -### isSymlink(path) - -Check whether the passed `path` is a symlink. - -Returns a `Promise`. - -### isFileSync(path) - -Synchronously check whether the passed `path` is a file. - -Returns a `boolean`. - -### isDirectorySync(path) - -Synchronously check whether the passed `path` is a directory. - -Returns a `boolean`. - -### isSymlinkSync(path) - -Synchronously check whether the passed `path` is a symlink. - -Returns a `boolean`. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/picomatch/CHANGELOG.md b/graphql/node_modules/picomatch/CHANGELOG.md deleted file mode 100644 index 8ccc6c1b..00000000 --- a/graphql/node_modules/picomatch/CHANGELOG.md +++ /dev/null @@ -1,136 +0,0 @@ -# Release history - -**All notable changes to this project will be documented in this file.** - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -
- Guiding Principles - -- Changelogs are for humans, not machines. -- There should be an entry for every single version. -- The same types of changes should be grouped. -- Versions and sections should be linkable. -- The latest version comes first. -- The release date of each versions is displayed. -- Mention whether you follow Semantic Versioning. - -
- -
- Types of changes - -Changelog entries are classified using the following labels _(from [keep-a-changelog](http://keepachangelog.com/)_): - -- `Added` for new features. -- `Changed` for changes in existing functionality. -- `Deprecated` for soon-to-be removed features. -- `Removed` for now removed features. -- `Fixed` for any bug fixes. -- `Security` in case of vulnerabilities. - -
- -## 2.3.1 (2022-01-02) - -### Fixed - -* Fixes bug when a pattern containing an expression after the closing parenthesis (`/!(*.d).{ts,tsx}`) was incorrectly converted to regexp ([9f241ef](https://github.com/micromatch/picomatch/commit/9f241ef)). - -### Changed - -* Some documentation improvements ([f81d236](https://github.com/micromatch/picomatch/commit/f81d236), [421e0e7](https://github.com/micromatch/picomatch/commit/421e0e7)). - -## 2.3.0 (2021-05-21) - -### Fixed - -* Fixes bug where file names with two dots were not being matched consistently with negation extglobs containing a star ([56083ef](https://github.com/micromatch/picomatch/commit/56083ef)) - -## 2.2.3 (2021-04-10) - -### Fixed - -* Do not skip pattern seperator for square brackets ([fb08a30](https://github.com/micromatch/picomatch/commit/fb08a30)). -* Set negatedExtGlob also if it does not span the whole pattern ([032e3f5](https://github.com/micromatch/picomatch/commit/032e3f5)). - -## 2.2.2 (2020-03-21) - -### Fixed - -* Correctly handle parts of the pattern after parentheses in the `scan` method ([e15b920](https://github.com/micromatch/picomatch/commit/e15b920)). - -## 2.2.1 (2020-01-04) - -* Fixes [#49](https://github.com/micromatch/picomatch/issues/49), so that braces with no sets or ranges are now propertly treated as literals. - -## 2.2.0 (2020-01-04) - -* Disable fastpaths mode for the parse method ([5b8d33f](https://github.com/micromatch/picomatch/commit/5b8d33f)) -* Add `tokens`, `slashes`, and `parts` to the object returned by `picomatch.scan()`. - -## 2.1.0 (2019-10-31) - -* add benchmarks for scan ([4793b92](https://github.com/micromatch/picomatch/commit/4793b92)) -* Add eslint object-curly-spacing rule ([707c650](https://github.com/micromatch/picomatch/commit/707c650)) -* Add prefer-const eslint rule ([5c7501c](https://github.com/micromatch/picomatch/commit/5c7501c)) -* Add support for nonegate in scan API ([275c9b9](https://github.com/micromatch/picomatch/commit/275c9b9)) -* Change lets to consts. Move root import up. ([4840625](https://github.com/micromatch/picomatch/commit/4840625)) -* closes https://github.com/micromatch/picomatch/issues/21 ([766bcb0](https://github.com/micromatch/picomatch/commit/766bcb0)) -* Fix "Extglobs" table in readme ([eb19da8](https://github.com/micromatch/picomatch/commit/eb19da8)) -* fixes https://github.com/micromatch/picomatch/issues/20 ([9caca07](https://github.com/micromatch/picomatch/commit/9caca07)) -* fixes https://github.com/micromatch/picomatch/issues/26 ([fa58f45](https://github.com/micromatch/picomatch/commit/fa58f45)) -* Lint test ([d433a34](https://github.com/micromatch/picomatch/commit/d433a34)) -* lint unit tests ([0159b55](https://github.com/micromatch/picomatch/commit/0159b55)) -* Make scan work with noext ([6c02e03](https://github.com/micromatch/picomatch/commit/6c02e03)) -* minor linting ([c2a2b87](https://github.com/micromatch/picomatch/commit/c2a2b87)) -* minor parser improvements ([197671d](https://github.com/micromatch/picomatch/commit/197671d)) -* remove eslint since it... ([07876fa](https://github.com/micromatch/picomatch/commit/07876fa)) -* remove funding file ([8ebe96d](https://github.com/micromatch/picomatch/commit/8ebe96d)) -* Remove unused funks ([cbc6d54](https://github.com/micromatch/picomatch/commit/cbc6d54)) -* Run eslint during pretest, fix existing eslint findings ([0682367](https://github.com/micromatch/picomatch/commit/0682367)) -* support `noparen` in scan ([3d37569](https://github.com/micromatch/picomatch/commit/3d37569)) -* update changelog ([7b34e77](https://github.com/micromatch/picomatch/commit/7b34e77)) -* update travis ([777f038](https://github.com/micromatch/picomatch/commit/777f038)) -* Use eslint-disable-next-line instead of eslint-disable ([4e7c1fd](https://github.com/micromatch/picomatch/commit/4e7c1fd)) - -## 2.0.7 (2019-05-14) - -* 2.0.7 ([9eb9a71](https://github.com/micromatch/picomatch/commit/9eb9a71)) -* supports lookbehinds ([1f63f7e](https://github.com/micromatch/picomatch/commit/1f63f7e)) -* update .verb.md file with typo change ([2741279](https://github.com/micromatch/picomatch/commit/2741279)) -* fix: typo in README ([0753e44](https://github.com/micromatch/picomatch/commit/0753e44)) - -## 2.0.4 (2019-04-10) - -### Fixed - -- Readme link [fixed](https://github.com/micromatch/picomatch/pull/13/commits/a96ab3aa2b11b6861c23289964613d85563b05df) by @danez. -- `options.capture` now works as expected when fastpaths are enabled. See https://github.com/micromatch/picomatch/pull/12/commits/26aefd71f1cfaf95c37f1c1fcab68a693b037304. Thanks to @DrPizza. - -## 2.0.0 (2019-04-10) - -### Added - -- Adds support for `options.onIgnore`. See the readme for details -- Adds support for `options.onResult`. See the readme for details - -### Breaking changes - -- The unixify option was renamed to `windows` -- caching and all related options and methods have been removed - -## 1.0.0 (2018-11-05) - -- adds `.onMatch` option -- improvements to `.scan` method -- numerous improvements and optimizations for matching and parsing -- better windows path handling - -## 0.1.0 - 2017-04-13 - -First release. - - -[keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog diff --git a/graphql/node_modules/picomatch/LICENSE b/graphql/node_modules/picomatch/LICENSE deleted file mode 100644 index 3608dca2..00000000 --- a/graphql/node_modules/picomatch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/picomatch/README.md b/graphql/node_modules/picomatch/README.md deleted file mode 100644 index b0526e28..00000000 --- a/graphql/node_modules/picomatch/README.md +++ /dev/null @@ -1,708 +0,0 @@ -

Picomatch

- -

- -version - - -test status - - -coverage status - - -downloads - -

- -
-
- -

-Blazing fast and accurate glob matcher written in JavaScript.
-No dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions. -

- -
-
- -## Why picomatch? - -* **Lightweight** - No dependencies -* **Minimal** - Tiny API surface. Main export is a function that takes a glob pattern and returns a matcher function. -* **Fast** - Loads in about 2ms (that's several times faster than a [single frame of a HD movie](http://www.endmemo.com/sconvert/framespersecondframespermillisecond.php) at 60fps) -* **Performant** - Use the returned matcher function to speed up repeat matching (like when watching files) -* **Accurate matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories, [advanced globbing](#advanced-globbing) with extglobs, braces, and POSIX brackets, and support for escaping special characters with `\` or quotes. -* **Well tested** - Thousands of unit tests - -See the [library comparison](#library-comparisons) to other libraries. - -
-
- -## Table of Contents - -
Click to expand - -- [Install](#install) -- [Usage](#usage) -- [API](#api) - * [picomatch](#picomatch) - * [.test](#test) - * [.matchBase](#matchbase) - * [.isMatch](#ismatch) - * [.parse](#parse) - * [.scan](#scan) - * [.compileRe](#compilere) - * [.makeRe](#makere) - * [.toRegex](#toregex) -- [Options](#options) - * [Picomatch options](#picomatch-options) - * [Scan Options](#scan-options) - * [Options Examples](#options-examples) -- [Globbing features](#globbing-features) - * [Basic globbing](#basic-globbing) - * [Advanced globbing](#advanced-globbing) - * [Braces](#braces) - * [Matching special characters as literals](#matching-special-characters-as-literals) -- [Library Comparisons](#library-comparisons) -- [Benchmarks](#benchmarks) -- [Philosophies](#philosophies) -- [About](#about) - * [Author](#author) - * [License](#license) - -_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ - -
- -
-
- -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -npm install --save picomatch -``` - -
- -## Usage - -The main export is a function that takes a glob pattern and an options object and returns a function for matching strings. - -```js -const pm = require('picomatch'); -const isMatch = pm('*.js'); - -console.log(isMatch('abcd')); //=> false -console.log(isMatch('a.js')); //=> true -console.log(isMatch('a.md')); //=> false -console.log(isMatch('a/b.js')); //=> false -``` - -
- -## API - -### [picomatch](lib/picomatch.js#L32) - -Creates a matcher function from one or more glob patterns. The returned function takes a string to match as its first argument, and returns true if the string is a match. The returned matcher function also takes a boolean as the second argument that, when true, returns an object with additional information. - -**Params** - -* `globs` **{String|Array}**: One or more glob patterns. -* `options` **{Object=}** -* `returns` **{Function=}**: Returns a matcher function. - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch(glob[, options]); - -const isMatch = picomatch('*.!(*a)'); -console.log(isMatch('a.a')); //=> false -console.log(isMatch('a.b')); //=> true -``` - -### [.test](lib/picomatch.js#L117) - -Test `input` with the given `regex`. This is used by the main `picomatch()` function to test the input string. - -**Params** - -* `input` **{String}**: String to test. -* `regex` **{RegExp}** -* `returns` **{Object}**: Returns an object with matching info. - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch.test(input, regex[, options]); - -console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/)); -// { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' } -``` - -### [.matchBase](lib/picomatch.js#L161) - -Match the basename of a filepath. - -**Params** - -* `input` **{String}**: String to test. -* `glob` **{RegExp|String}**: Glob pattern or regex created by [.makeRe](#makeRe). -* `returns` **{Boolean}** - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch.matchBase(input, glob[, options]); -console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true -``` - -### [.isMatch](lib/picomatch.js#L183) - -Returns true if **any** of the given glob `patterns` match the specified `string`. - -**Params** - -* **{String|Array}**: str The string to test. -* **{String|Array}**: patterns One or more glob patterns to use for matching. -* **{Object}**: See available [options](#options). -* `returns` **{Boolean}**: Returns true if any patterns match `str` - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch.isMatch(string, patterns[, options]); - -console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true -console.log(picomatch.isMatch('a.a', 'b.*')); //=> false -``` - -### [.parse](lib/picomatch.js#L199) - -Parse a glob pattern to create the source string for a regular expression. - -**Params** - -* `pattern` **{String}** -* `options` **{Object}** -* `returns` **{Object}**: Returns an object with useful properties and output to be used as a regex source string. - -**Example** - -```js -const picomatch = require('picomatch'); -const result = picomatch.parse(pattern[, options]); -``` - -### [.scan](lib/picomatch.js#L231) - -Scan a glob pattern to separate the pattern into segments. - -**Params** - -* `input` **{String}**: Glob pattern to scan. -* `options` **{Object}** -* `returns` **{Object}**: Returns an object with - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch.scan(input[, options]); - -const result = picomatch.scan('!./foo/*.js'); -console.log(result); -{ prefix: '!./', - input: '!./foo/*.js', - start: 3, - base: 'foo', - glob: '*.js', - isBrace: false, - isBracket: false, - isGlob: true, - isExtglob: false, - isGlobstar: false, - negated: true } -``` - -### [.compileRe](lib/picomatch.js#L245) - -Compile a regular expression from the `state` object returned by the -[parse()](#parse) method. - -**Params** - -* `state` **{Object}** -* `options` **{Object}** -* `returnOutput` **{Boolean}**: Intended for implementors, this argument allows you to return the raw output from the parser. -* `returnState` **{Boolean}**: Adds the state to a `state` property on the returned regex. Useful for implementors and debugging. -* `returns` **{RegExp}** - -### [.makeRe](lib/picomatch.js#L286) - -Create a regular expression from a parsed glob pattern. - -**Params** - -* `state` **{String}**: The object returned from the `.parse` method. -* `options` **{Object}** -* `returnOutput` **{Boolean}**: Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result. -* `returnState` **{Boolean}**: Implementors may use this argument to return the state from the parsed glob with the returned regular expression. -* `returns` **{RegExp}**: Returns a regex created from the given pattern. - -**Example** - -```js -const picomatch = require('picomatch'); -const state = picomatch.parse('*.js'); -// picomatch.compileRe(state[, options]); - -console.log(picomatch.compileRe(state)); -//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ -``` - -### [.toRegex](lib/picomatch.js#L321) - -Create a regular expression from the given regex source string. - -**Params** - -* `source` **{String}**: Regular expression source string. -* `options` **{Object}** -* `returns` **{RegExp}** - -**Example** - -```js -const picomatch = require('picomatch'); -// picomatch.toRegex(source[, options]); - -const { output } = picomatch.parse('*.js'); -console.log(picomatch.toRegex(output)); -//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ -``` - -
- -## Options - -### Picomatch options - -The following options may be used with the main `picomatch()` function or any of the methods on the picomatch API. - -| **Option** | **Type** | **Default value** | **Description** | -| --- | --- | --- | --- | -| `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. | -| `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). | -| `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. | -| `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). | -| `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` | -| `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. | -| `dot` | `boolean` | `false` | Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true | -| `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. | -| `failglob` | `boolean` | `false` | Throws an error if no matches are found. Based on the bash option of the same name. | -| `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. | -| `flags` | `string` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. | -| [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. | -| `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. | -| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. | -| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. | -| `matchBase` | `boolean` | `false` | Alias for `basename` | -| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. | -| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. | -| `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. | -| `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. | -| `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. | -| `noext` | `boolean` | `false` | Alias for `noextglob` | -| `noextglob` | `boolean` | `false` | Disable support for matching with extglobs (like `+(a\|b)`) | -| `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) | -| `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` | -| `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. | -| [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. | -| [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. | -| [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. | -| `posix` | `boolean` | `false` | Support POSIX character classes ("posix brackets"). | -| `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself | -| `prepend` | `boolean` | `undefined` | String to prepend to the generated regex used for matching. | -| `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). | -| `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. | -| `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. | -| `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. | -| `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatibility. | - -picomatch has automatic detection for regex positive and negative lookbehinds. If the pattern contains a negative lookbehind, you must be using Node.js >= 8.10 or else picomatch will throw an error. - -### Scan Options - -In addition to the main [picomatch options](#picomatch-options), the following options may also be used with the [.scan](#scan) method. - -| **Option** | **Type** | **Default value** | **Description** | -| --- | --- | --- | --- | -| `tokens` | `boolean` | `false` | When `true`, the returned object will include an array of tokens (objects), representing each path "segment" in the scanned glob pattern | -| `parts` | `boolean` | `false` | When `true`, the returned object will include an array of strings representing each path "segment" in the scanned glob pattern. This is automatically enabled when `options.tokens` is true | - -**Example** - -```js -const picomatch = require('picomatch'); -const result = picomatch.scan('!./foo/*.js', { tokens: true }); -console.log(result); -// { -// prefix: '!./', -// input: '!./foo/*.js', -// start: 3, -// base: 'foo', -// glob: '*.js', -// isBrace: false, -// isBracket: false, -// isGlob: true, -// isExtglob: false, -// isGlobstar: false, -// negated: true, -// maxDepth: 2, -// tokens: [ -// { value: '!./', depth: 0, isGlob: false, negated: true, isPrefix: true }, -// { value: 'foo', depth: 1, isGlob: false }, -// { value: '*.js', depth: 1, isGlob: true } -// ], -// slashes: [ 2, 6 ], -// parts: [ 'foo', '*.js' ] -// } -``` - -
- -### Options Examples - -#### options.expandRange - -**Type**: `function` - -**Default**: `undefined` - -Custom function for expanding ranges in brace patterns. The [fill-range](https://github.com/jonschlinkert/fill-range) library is ideal for this purpose, or you can use custom code to do whatever you need. - -**Example** - -The following example shows how to create a glob that matches a folder - -```js -const fill = require('fill-range'); -const regex = pm.makeRe('foo/{01..25}/bar', { - expandRange(a, b) { - return `(${fill(a, b, { toRegex: true })})`; - } -}); - -console.log(regex); -//=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/ - -console.log(regex.test('foo/00/bar')) // false -console.log(regex.test('foo/01/bar')) // true -console.log(regex.test('foo/10/bar')) // true -console.log(regex.test('foo/22/bar')) // true -console.log(regex.test('foo/25/bar')) // true -console.log(regex.test('foo/26/bar')) // false -``` - -#### options.format - -**Type**: `function` - -**Default**: `undefined` - -Custom function for formatting strings before they're matched. - -**Example** - -```js -// strip leading './' from strings -const format = str => str.replace(/^\.\//, ''); -const isMatch = picomatch('foo/*.js', { format }); -console.log(isMatch('./foo/bar.js')); //=> true -``` - -#### options.onMatch - -```js -const onMatch = ({ glob, regex, input, output }) => { - console.log({ glob, regex, input, output }); -}; - -const isMatch = picomatch('*', { onMatch }); -isMatch('foo'); -isMatch('bar'); -isMatch('baz'); -``` - -#### options.onIgnore - -```js -const onIgnore = ({ glob, regex, input, output }) => { - console.log({ glob, regex, input, output }); -}; - -const isMatch = picomatch('*', { onIgnore, ignore: 'f*' }); -isMatch('foo'); -isMatch('bar'); -isMatch('baz'); -``` - -#### options.onResult - -```js -const onResult = ({ glob, regex, input, output }) => { - console.log({ glob, regex, input, output }); -}; - -const isMatch = picomatch('*', { onResult, ignore: 'f*' }); -isMatch('foo'); -isMatch('bar'); -isMatch('baz'); -``` - -
-
- -## Globbing features - -* [Basic globbing](#basic-globbing) (Wildcard matching) -* [Advanced globbing](#advanced-globbing) (extglobs, posix brackets, brace matching) - -### Basic globbing - -| **Character** | **Description** | -| --- | --- | -| `*` | Matches any character zero or more times, excluding path separators. Does _not match_ path separators or hidden files or directories ("dotfiles"), unless explicitly enabled by setting the `dot` option to `true`. | -| `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` on Windows) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. | -| `?` | Matches any character excluding path separators one time. Does _not match_ path separators or leading dots. | -| `[abc]` | Matches any characters inside the brackets. For example, `[abc]` would match the characters `a`, `b` or `c`, and nothing else. | - -#### Matching behavior vs. Bash - -Picomatch's matching features and expected results in unit tests are based on Bash's unit tests and the Bash 4.3 specification, with the following exceptions: - -* Bash will match `foo/bar/baz` with `*`. Picomatch only matches nested directories with `**`. -* Bash greedily matches with negated extglobs. For example, Bash 4.3 says that `!(foo)*` should match `foo` and `foobar`, since the trailing `*` bracktracks to match the preceding pattern. This is very memory-inefficient, and IMHO, also incorrect. Picomatch would return `false` for both `foo` and `foobar`. - -
- -### Advanced globbing - -* [extglobs](#extglobs) -* [POSIX brackets](#posix-brackets) -* [Braces](#brace-expansion) - -#### Extglobs - -| **Pattern** | **Description** | -| --- | --- | -| `@(pattern)` | Match _only one_ consecutive occurrence of `pattern` | -| `*(pattern)` | Match _zero or more_ consecutive occurrences of `pattern` | -| `+(pattern)` | Match _one or more_ consecutive occurrences of `pattern` | -| `?(pattern)` | Match _zero or **one**_ consecutive occurrences of `pattern` | -| `!(pattern)` | Match _anything but_ `pattern` | - -**Examples** - -```js -const pm = require('picomatch'); - -// *(pattern) matches ZERO or more of "pattern" -console.log(pm.isMatch('a', 'a*(z)')); // true -console.log(pm.isMatch('az', 'a*(z)')); // true -console.log(pm.isMatch('azzz', 'a*(z)')); // true - -// +(pattern) matches ONE or more of "pattern" -console.log(pm.isMatch('a', 'a*(z)')); // true -console.log(pm.isMatch('az', 'a*(z)')); // true -console.log(pm.isMatch('azzz', 'a*(z)')); // true - -// supports multiple extglobs -console.log(pm.isMatch('foo.bar', '!(foo).!(bar)')); // false - -// supports nested extglobs -console.log(pm.isMatch('foo.bar', '!(!(foo)).!(!(bar))')); // true -``` - -#### POSIX brackets - -POSIX classes are disabled by default. Enable this feature by setting the `posix` option to true. - -**Enable POSIX bracket support** - -```js -console.log(pm.makeRe('[[:word:]]+', { posix: true })); -//=> /^(?:(?=.)[A-Za-z0-9_]+\/?)$/ -``` - -**Supported POSIX classes** - -The following named POSIX bracket expressions are supported: - -* `[:alnum:]` - Alphanumeric characters, equ `[a-zA-Z0-9]` -* `[:alpha:]` - Alphabetical characters, equivalent to `[a-zA-Z]`. -* `[:ascii:]` - ASCII characters, equivalent to `[\\x00-\\x7F]`. -* `[:blank:]` - Space and tab characters, equivalent to `[ \\t]`. -* `[:cntrl:]` - Control characters, equivalent to `[\\x00-\\x1F\\x7F]`. -* `[:digit:]` - Numerical digits, equivalent to `[0-9]`. -* `[:graph:]` - Graph characters, equivalent to `[\\x21-\\x7E]`. -* `[:lower:]` - Lowercase letters, equivalent to `[a-z]`. -* `[:print:]` - Print characters, equivalent to `[\\x20-\\x7E ]`. -* `[:punct:]` - Punctuation and symbols, equivalent to `[\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~]`. -* `[:space:]` - Extended space characters, equivalent to `[ \\t\\r\\n\\v\\f]`. -* `[:upper:]` - Uppercase letters, equivalent to `[A-Z]`. -* `[:word:]` - Word characters (letters, numbers and underscores), equivalent to `[A-Za-z0-9_]`. -* `[:xdigit:]` - Hexadecimal digits, equivalent to `[A-Fa-f0-9]`. - -See the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) for more information. - -### Braces - -Picomatch does not do brace expansion. For [brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) and advanced matching with braces, use [micromatch](https://github.com/micromatch/micromatch) instead. Picomatch has very basic support for braces. - -### Matching special characters as literals - -If you wish to match the following special characters in a filepath, and you want to use these characters in your glob pattern, they must be escaped with backslashes or quotes: - -**Special Characters** - -Some characters that are used for matching in regular expressions are also regarded as valid file path characters on some platforms. - -To match any of the following characters as literals: `$^*+?()[] - -Examples: - -```js -console.log(pm.makeRe('foo/bar \\(1\\)')); -console.log(pm.makeRe('foo/bar \\(1\\)')); -``` - -
-
- -## Library Comparisons - -The following table shows which features are supported by [minimatch](https://github.com/isaacs/minimatch), [micromatch](https://github.com/micromatch/micromatch), [picomatch](https://github.com/micromatch/picomatch), [nanomatch](https://github.com/micromatch/nanomatch), [extglob](https://github.com/micromatch/extglob), [braces](https://github.com/micromatch/braces), and [expand-brackets](https://github.com/micromatch/expand-brackets). - -| **Feature** | `minimatch` | `micromatch` | `picomatch` | `nanomatch` | `extglob` | `braces` | `expand-brackets` | -| --- | --- | --- | --- | --- | --- | --- | --- | -| Wildcard matching (`*?+`) | ✔ | ✔ | ✔ | ✔ | - | - | - | -| Advancing globbing | ✔ | ✔ | ✔ | - | - | - | - | -| Brace _matching_ | ✔ | ✔ | ✔ | - | - | ✔ | - | -| Brace _expansion_ | ✔ | ✔ | - | - | - | ✔ | - | -| Extglobs | partial | ✔ | ✔ | - | ✔ | - | - | -| Posix brackets | - | ✔ | ✔ | - | - | - | ✔ | -| Regular expression syntax | - | ✔ | ✔ | ✔ | ✔ | - | ✔ | -| File system operations | - | - | - | - | - | - | - | - -
-
- -## Benchmarks - -Performance comparison of picomatch and minimatch. - -``` -# .makeRe star - picomatch x 1,993,050 ops/sec ±0.51% (91 runs sampled) - minimatch x 627,206 ops/sec ±1.96% (87 runs sampled)) - -# .makeRe star; dot=true - picomatch x 1,436,640 ops/sec ±0.62% (91 runs sampled) - minimatch x 525,876 ops/sec ±0.60% (88 runs sampled) - -# .makeRe globstar - picomatch x 1,592,742 ops/sec ±0.42% (90 runs sampled) - minimatch x 962,043 ops/sec ±1.76% (91 runs sampled)d) - -# .makeRe globstars - picomatch x 1,615,199 ops/sec ±0.35% (94 runs sampled) - minimatch x 477,179 ops/sec ±1.33% (91 runs sampled) - -# .makeRe with leading star - picomatch x 1,220,856 ops/sec ±0.40% (92 runs sampled) - minimatch x 453,564 ops/sec ±1.43% (94 runs sampled) - -# .makeRe - basic braces - picomatch x 392,067 ops/sec ±0.70% (90 runs sampled) - minimatch x 99,532 ops/sec ±2.03% (87 runs sampled)) -``` - -
-
- -## Philosophies - -The goal of this library is to be blazing fast, without compromising on accuracy. - -**Accuracy** - -The number one of goal of this library is accuracy. However, it's not unusual for different glob implementations to have different rules for matching behavior, even with simple wildcard matching. It gets increasingly more complicated when combinations of different features are combined, like when extglobs are combined with globstars, braces, slashes, and so on: `!(**/{a,b,*/c})`. - -Thus, given that there is no canonical glob specification to use as a single source of truth when differences of opinion arise regarding behavior, sometimes we have to implement our best judgement and rely on feedback from users to make improvements. - -**Performance** - -Although this library performs well in benchmarks, and in most cases it's faster than other popular libraries we benchmarked against, we will always choose accuracy over performance. It's not helpful to anyone if our library is faster at returning the wrong answer. - -
-
- -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards. - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2017-present, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). diff --git a/graphql/node_modules/picomatch/index.js b/graphql/node_modules/picomatch/index.js deleted file mode 100644 index d2f2bc59..00000000 --- a/graphql/node_modules/picomatch/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./lib/picomatch'); diff --git a/graphql/node_modules/picomatch/lib/constants.js b/graphql/node_modules/picomatch/lib/constants.js deleted file mode 100644 index a62ef387..00000000 --- a/graphql/node_modules/picomatch/lib/constants.js +++ /dev/null @@ -1,179 +0,0 @@ -'use strict'; - -const path = require('path'); -const WIN_SLASH = '\\\\/'; -const WIN_NO_SLASH = `[^${WIN_SLASH}]`; - -/** - * Posix glob regex - */ - -const DOT_LITERAL = '\\.'; -const PLUS_LITERAL = '\\+'; -const QMARK_LITERAL = '\\?'; -const SLASH_LITERAL = '\\/'; -const ONE_CHAR = '(?=.)'; -const QMARK = '[^/]'; -const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; -const START_ANCHOR = `(?:^|${SLASH_LITERAL})`; -const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; -const NO_DOT = `(?!${DOT_LITERAL})`; -const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; -const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; -const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; -const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; -const STAR = `${QMARK}*?`; - -const POSIX_CHARS = { - DOT_LITERAL, - PLUS_LITERAL, - QMARK_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - QMARK, - END_ANCHOR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK_NO_DOT, - STAR, - START_ANCHOR -}; - -/** - * Windows glob regex - */ - -const WINDOWS_CHARS = { - ...POSIX_CHARS, - - SLASH_LITERAL: `[${WIN_SLASH}]`, - QMARK: WIN_NO_SLASH, - STAR: `${WIN_NO_SLASH}*?`, - DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, - NO_DOT: `(?!${DOT_LITERAL})`, - NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, - NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - QMARK_NO_DOT: `[^.${WIN_SLASH}]`, - START_ANCHOR: `(?:^|[${WIN_SLASH}])`, - END_ANCHOR: `(?:[${WIN_SLASH}]|$)` -}; - -/** - * POSIX Bracket Regex - */ - -const POSIX_REGEX_SOURCE = { - alnum: 'a-zA-Z0-9', - alpha: 'a-zA-Z', - ascii: '\\x00-\\x7F', - blank: ' \\t', - cntrl: '\\x00-\\x1F\\x7F', - digit: '0-9', - graph: '\\x21-\\x7E', - lower: 'a-z', - print: '\\x20-\\x7E ', - punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~', - space: ' \\t\\r\\n\\v\\f', - upper: 'A-Z', - word: 'A-Za-z0-9_', - xdigit: 'A-Fa-f0-9' -}; - -module.exports = { - MAX_LENGTH: 1024 * 64, - POSIX_REGEX_SOURCE, - - // regular expressions - REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, - REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, - REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, - REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, - REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, - REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, - - // Replace globs with equivalent patterns to reduce parsing time. - REPLACEMENTS: { - '***': '*', - '**/**': '**', - '**/**/**': '**' - }, - - // Digits - CHAR_0: 48, /* 0 */ - CHAR_9: 57, /* 9 */ - - // Alphabet chars. - CHAR_UPPERCASE_A: 65, /* A */ - CHAR_LOWERCASE_A: 97, /* a */ - CHAR_UPPERCASE_Z: 90, /* Z */ - CHAR_LOWERCASE_Z: 122, /* z */ - - CHAR_LEFT_PARENTHESES: 40, /* ( */ - CHAR_RIGHT_PARENTHESES: 41, /* ) */ - - CHAR_ASTERISK: 42, /* * */ - - // Non-alphabetic chars. - CHAR_AMPERSAND: 38, /* & */ - CHAR_AT: 64, /* @ */ - CHAR_BACKWARD_SLASH: 92, /* \ */ - CHAR_CARRIAGE_RETURN: 13, /* \r */ - CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */ - CHAR_COLON: 58, /* : */ - CHAR_COMMA: 44, /* , */ - CHAR_DOT: 46, /* . */ - CHAR_DOUBLE_QUOTE: 34, /* " */ - CHAR_EQUAL: 61, /* = */ - CHAR_EXCLAMATION_MARK: 33, /* ! */ - CHAR_FORM_FEED: 12, /* \f */ - CHAR_FORWARD_SLASH: 47, /* / */ - CHAR_GRAVE_ACCENT: 96, /* ` */ - CHAR_HASH: 35, /* # */ - CHAR_HYPHEN_MINUS: 45, /* - */ - CHAR_LEFT_ANGLE_BRACKET: 60, /* < */ - CHAR_LEFT_CURLY_BRACE: 123, /* { */ - CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */ - CHAR_LINE_FEED: 10, /* \n */ - CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */ - CHAR_PERCENT: 37, /* % */ - CHAR_PLUS: 43, /* + */ - CHAR_QUESTION_MARK: 63, /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */ - CHAR_RIGHT_CURLY_BRACE: 125, /* } */ - CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */ - CHAR_SEMICOLON: 59, /* ; */ - CHAR_SINGLE_QUOTE: 39, /* ' */ - CHAR_SPACE: 32, /* */ - CHAR_TAB: 9, /* \t */ - CHAR_UNDERSCORE: 95, /* _ */ - CHAR_VERTICAL_LINE: 124, /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */ - - SEP: path.sep, - - /** - * Create EXTGLOB_CHARS - */ - - extglobChars(chars) { - return { - '!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` }, - '?': { type: 'qmark', open: '(?:', close: ')?' }, - '+': { type: 'plus', open: '(?:', close: ')+' }, - '*': { type: 'star', open: '(?:', close: ')*' }, - '@': { type: 'at', open: '(?:', close: ')' } - }; - }, - - /** - * Create GLOB_CHARS - */ - - globChars(win32) { - return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; - } -}; diff --git a/graphql/node_modules/picomatch/lib/parse.js b/graphql/node_modules/picomatch/lib/parse.js deleted file mode 100644 index 58269d01..00000000 --- a/graphql/node_modules/picomatch/lib/parse.js +++ /dev/null @@ -1,1091 +0,0 @@ -'use strict'; - -const constants = require('./constants'); -const utils = require('./utils'); - -/** - * Constants - */ - -const { - MAX_LENGTH, - POSIX_REGEX_SOURCE, - REGEX_NON_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_BACKREF, - REPLACEMENTS -} = constants; - -/** - * Helpers - */ - -const expandRange = (args, options) => { - if (typeof options.expandRange === 'function') { - return options.expandRange(...args, options); - } - - args.sort(); - const value = `[${args.join('-')}]`; - - try { - /* eslint-disable-next-line no-new */ - new RegExp(value); - } catch (ex) { - return args.map(v => utils.escapeRegex(v)).join('..'); - } - - return value; -}; - -/** - * Create the message for a syntax error - */ - -const syntaxError = (type, char) => { - return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; -}; - -/** - * Parse the given input string. - * @param {String} input - * @param {Object} options - * @return {Object} - */ - -const parse = (input, options) => { - if (typeof input !== 'string') { - throw new TypeError('Expected a string'); - } - - input = REPLACEMENTS[input] || input; - - const opts = { ...options }; - const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - - let len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - - const bos = { type: 'bos', value: '', output: opts.prepend || '' }; - const tokens = [bos]; - - const capture = opts.capture ? '' : '?:'; - const win32 = utils.isWindows(options); - - // create constants based on platform, for windows or posix - const PLATFORM_CHARS = constants.globChars(win32); - const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS); - - const { - DOT_LITERAL, - PLUS_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK, - QMARK_NO_DOT, - STAR, - START_ANCHOR - } = PLATFORM_CHARS; - - const globstar = opts => { - return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - - const nodot = opts.dot ? '' : NO_DOT; - const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; - let star = opts.bash === true ? globstar(opts) : STAR; - - if (opts.capture) { - star = `(${star})`; - } - - // minimatch options support - if (typeof opts.noext === 'boolean') { - opts.noextglob = opts.noext; - } - - const state = { - input, - index: -1, - start: 0, - dot: opts.dot === true, - consumed: '', - output: '', - prefix: '', - backtrack: false, - negated: false, - brackets: 0, - braces: 0, - parens: 0, - quotes: 0, - globstar: false, - tokens - }; - - input = utils.removePrefix(input, state); - len = input.length; - - const extglobs = []; - const braces = []; - const stack = []; - let prev = bos; - let value; - - /** - * Tokenizing helpers - */ - - const eos = () => state.index === len - 1; - const peek = state.peek = (n = 1) => input[state.index + n]; - const advance = state.advance = () => input[++state.index] || ''; - const remaining = () => input.slice(state.index + 1); - const consume = (value = '', num = 0) => { - state.consumed += value; - state.index += num; - }; - - const append = token => { - state.output += token.output != null ? token.output : token.value; - consume(token.value); - }; - - const negate = () => { - let count = 1; - - while (peek() === '!' && (peek(2) !== '(' || peek(3) === '?')) { - advance(); - state.start++; - count++; - } - - if (count % 2 === 0) { - return false; - } - - state.negated = true; - state.start++; - return true; - }; - - const increment = type => { - state[type]++; - stack.push(type); - }; - - const decrement = type => { - state[type]--; - stack.pop(); - }; - - /** - * Push tokens onto the tokens array. This helper speeds up - * tokenizing by 1) helping us avoid backtracking as much as possible, - * and 2) helping us avoid creating extra tokens when consecutive - * characters are plain text. This improves performance and simplifies - * lookbehinds. - */ - - const push = tok => { - if (prev.type === 'globstar') { - const isBrace = state.braces > 0 && (tok.type === 'comma' || tok.type === 'brace'); - const isExtglob = tok.extglob === true || (extglobs.length && (tok.type === 'pipe' || tok.type === 'paren')); - - if (tok.type !== 'slash' && tok.type !== 'paren' && !isBrace && !isExtglob) { - state.output = state.output.slice(0, -prev.output.length); - prev.type = 'star'; - prev.value = '*'; - prev.output = star; - state.output += prev.output; - } - } - - if (extglobs.length && tok.type !== 'paren') { - extglobs[extglobs.length - 1].inner += tok.value; - } - - if (tok.value || tok.output) append(tok); - if (prev && prev.type === 'text' && tok.type === 'text') { - prev.value += tok.value; - prev.output = (prev.output || '') + tok.value; - return; - } - - tok.prev = prev; - tokens.push(tok); - prev = tok; - }; - - const extglobOpen = (type, value) => { - const token = { ...EXTGLOB_CHARS[value], conditions: 1, inner: '' }; - - token.prev = prev; - token.parens = state.parens; - token.output = state.output; - const output = (opts.capture ? '(' : '') + token.open; - - increment('parens'); - push({ type, value, output: state.output ? '' : ONE_CHAR }); - push({ type: 'paren', extglob: true, value: advance(), output }); - extglobs.push(token); - }; - - const extglobClose = token => { - let output = token.close + (opts.capture ? ')' : ''); - let rest; - - if (token.type === 'negate') { - let extglobStar = star; - - if (token.inner && token.inner.length > 1 && token.inner.includes('/')) { - extglobStar = globstar(opts); - } - - if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { - output = token.close = `)$))${extglobStar}`; - } - - if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - // Any non-magical string (`.ts`) or even nested expression (`.{ts,tsx}`) can follow after the closing parenthesis. - // In this case, we need to parse the string and use it in the output of the original pattern. - // Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`. - // - // Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`. - const expression = parse(rest, { ...options, fastpaths: false }).output; - - output = token.close = `)${expression})${extglobStar})`; - } - - if (token.prev.type === 'bos') { - state.negatedExtglob = true; - } - } - - push({ type: 'paren', extglob: true, value, output }); - decrement('parens'); - }; - - /** - * Fast paths - */ - - if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) { - let backslashes = false; - - let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => { - if (first === '\\') { - backslashes = true; - return m; - } - - if (first === '?') { - if (esc) { - return esc + first + (rest ? QMARK.repeat(rest.length) : ''); - } - if (index === 0) { - return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : ''); - } - return QMARK.repeat(chars.length); - } - - if (first === '.') { - return DOT_LITERAL.repeat(chars.length); - } - - if (first === '*') { - if (esc) { - return esc + first + (rest ? star : ''); - } - return star; - } - return esc ? m : `\\${m}`; - }); - - if (backslashes === true) { - if (opts.unescape === true) { - output = output.replace(/\\/g, ''); - } else { - output = output.replace(/\\+/g, m => { - return m.length % 2 === 0 ? '\\\\' : (m ? '\\' : ''); - }); - } - } - - if (output === input && opts.contains === true) { - state.output = input; - return state; - } - - state.output = utils.wrapOutput(output, state, options); - return state; - } - - /** - * Tokenize input until we reach end-of-string - */ - - while (!eos()) { - value = advance(); - - if (value === '\u0000') { - continue; - } - - /** - * Escaped characters - */ - - if (value === '\\') { - const next = peek(); - - if (next === '/' && opts.bash !== true) { - continue; - } - - if (next === '.' || next === ';') { - continue; - } - - if (!next) { - value += '\\'; - push({ type: 'text', value }); - continue; - } - - // collapse slashes to reduce potential for exploits - const match = /^\\+/.exec(remaining()); - let slashes = 0; - - if (match && match[0].length > 2) { - slashes = match[0].length; - state.index += slashes; - if (slashes % 2 !== 0) { - value += '\\'; - } - } - - if (opts.unescape === true) { - value = advance(); - } else { - value += advance(); - } - - if (state.brackets === 0) { - push({ type: 'text', value }); - continue; - } - } - - /** - * If we're inside a regex character class, continue - * until we reach the closing bracket. - */ - - if (state.brackets > 0 && (value !== ']' || prev.value === '[' || prev.value === '[^')) { - if (opts.posix !== false && value === ':') { - const inner = prev.value.slice(1); - if (inner.includes('[')) { - prev.posix = true; - - if (inner.includes(':')) { - const idx = prev.value.lastIndexOf('['); - const pre = prev.value.slice(0, idx); - const rest = prev.value.slice(idx + 2); - const posix = POSIX_REGEX_SOURCE[rest]; - if (posix) { - prev.value = pre + posix; - state.backtrack = true; - advance(); - - if (!bos.output && tokens.indexOf(prev) === 1) { - bos.output = ONE_CHAR; - } - continue; - } - } - } - } - - if ((value === '[' && peek() !== ':') || (value === '-' && peek() === ']')) { - value = `\\${value}`; - } - - if (value === ']' && (prev.value === '[' || prev.value === '[^')) { - value = `\\${value}`; - } - - if (opts.posix === true && value === '!' && prev.value === '[') { - value = '^'; - } - - prev.value += value; - append({ value }); - continue; - } - - /** - * If we're inside a quoted string, continue - * until we reach the closing double quote. - */ - - if (state.quotes === 1 && value !== '"') { - value = utils.escapeRegex(value); - prev.value += value; - append({ value }); - continue; - } - - /** - * Double quotes - */ - - if (value === '"') { - state.quotes = state.quotes === 1 ? 0 : 1; - if (opts.keepQuotes === true) { - push({ type: 'text', value }); - } - continue; - } - - /** - * Parentheses - */ - - if (value === '(') { - increment('parens'); - push({ type: 'paren', value }); - continue; - } - - if (value === ')') { - if (state.parens === 0 && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('opening', '(')); - } - - const extglob = extglobs[extglobs.length - 1]; - if (extglob && state.parens === extglob.parens + 1) { - extglobClose(extglobs.pop()); - continue; - } - - push({ type: 'paren', value, output: state.parens ? ')' : '\\)' }); - decrement('parens'); - continue; - } - - /** - * Square brackets - */ - - if (value === '[') { - if (opts.nobracket === true || !remaining().includes(']')) { - if (opts.nobracket !== true && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('closing', ']')); - } - - value = `\\${value}`; - } else { - increment('brackets'); - } - - push({ type: 'bracket', value }); - continue; - } - - if (value === ']') { - if (opts.nobracket === true || (prev && prev.type === 'bracket' && prev.value.length === 1)) { - push({ type: 'text', value, output: `\\${value}` }); - continue; - } - - if (state.brackets === 0) { - if (opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('opening', '[')); - } - - push({ type: 'text', value, output: `\\${value}` }); - continue; - } - - decrement('brackets'); - - const prevValue = prev.value.slice(1); - if (prev.posix !== true && prevValue[0] === '^' && !prevValue.includes('/')) { - value = `/${value}`; - } - - prev.value += value; - append({ value }); - - // when literal brackets are explicitly disabled - // assume we should match with a regex character class - if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) { - continue; - } - - const escaped = utils.escapeRegex(prev.value); - state.output = state.output.slice(0, -prev.value.length); - - // when literal brackets are explicitly enabled - // assume we should escape the brackets to match literal characters - if (opts.literalBrackets === true) { - state.output += escaped; - prev.value = escaped; - continue; - } - - // when the user specifies nothing, try to match both - prev.value = `(${capture}${escaped}|${prev.value})`; - state.output += prev.value; - continue; - } - - /** - * Braces - */ - - if (value === '{' && opts.nobrace !== true) { - increment('braces'); - - const open = { - type: 'brace', - value, - output: '(', - outputIndex: state.output.length, - tokensIndex: state.tokens.length - }; - - braces.push(open); - push(open); - continue; - } - - if (value === '}') { - const brace = braces[braces.length - 1]; - - if (opts.nobrace === true || !brace) { - push({ type: 'text', value, output: value }); - continue; - } - - let output = ')'; - - if (brace.dots === true) { - const arr = tokens.slice(); - const range = []; - - for (let i = arr.length - 1; i >= 0; i--) { - tokens.pop(); - if (arr[i].type === 'brace') { - break; - } - if (arr[i].type !== 'dots') { - range.unshift(arr[i].value); - } - } - - output = expandRange(range, opts); - state.backtrack = true; - } - - if (brace.comma !== true && brace.dots !== true) { - const out = state.output.slice(0, brace.outputIndex); - const toks = state.tokens.slice(brace.tokensIndex); - brace.value = brace.output = '\\{'; - value = output = '\\}'; - state.output = out; - for (const t of toks) { - state.output += (t.output || t.value); - } - } - - push({ type: 'brace', value, output }); - decrement('braces'); - braces.pop(); - continue; - } - - /** - * Pipes - */ - - if (value === '|') { - if (extglobs.length > 0) { - extglobs[extglobs.length - 1].conditions++; - } - push({ type: 'text', value }); - continue; - } - - /** - * Commas - */ - - if (value === ',') { - let output = value; - - const brace = braces[braces.length - 1]; - if (brace && stack[stack.length - 1] === 'braces') { - brace.comma = true; - output = '|'; - } - - push({ type: 'comma', value, output }); - continue; - } - - /** - * Slashes - */ - - if (value === '/') { - // if the beginning of the glob is "./", advance the start - // to the current index, and don't add the "./" characters - // to the state. This greatly simplifies lookbehinds when - // checking for BOS characters like "!" and "." (not "./") - if (prev.type === 'dot' && state.index === state.start + 1) { - state.start = state.index + 1; - state.consumed = ''; - state.output = ''; - tokens.pop(); - prev = bos; // reset "prev" to the first token - continue; - } - - push({ type: 'slash', value, output: SLASH_LITERAL }); - continue; - } - - /** - * Dots - */ - - if (value === '.') { - if (state.braces > 0 && prev.type === 'dot') { - if (prev.value === '.') prev.output = DOT_LITERAL; - const brace = braces[braces.length - 1]; - prev.type = 'dots'; - prev.output += value; - prev.value += value; - brace.dots = true; - continue; - } - - if ((state.braces + state.parens) === 0 && prev.type !== 'bos' && prev.type !== 'slash') { - push({ type: 'text', value, output: DOT_LITERAL }); - continue; - } - - push({ type: 'dot', value, output: DOT_LITERAL }); - continue; - } - - /** - * Question marks - */ - - if (value === '?') { - const isGroup = prev && prev.value === '('; - if (!isGroup && opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - extglobOpen('qmark', value); - continue; - } - - if (prev && prev.type === 'paren') { - const next = peek(); - let output = value; - - if (next === '<' && !utils.supportsLookbehinds()) { - throw new Error('Node.js v10 or higher is required for regex lookbehinds'); - } - - if ((prev.value === '(' && !/[!=<:]/.test(next)) || (next === '<' && !/<([!=]|\w+>)/.test(remaining()))) { - output = `\\${value}`; - } - - push({ type: 'text', value, output }); - continue; - } - - if (opts.dot !== true && (prev.type === 'slash' || prev.type === 'bos')) { - push({ type: 'qmark', value, output: QMARK_NO_DOT }); - continue; - } - - push({ type: 'qmark', value, output: QMARK }); - continue; - } - - /** - * Exclamation - */ - - if (value === '!') { - if (opts.noextglob !== true && peek() === '(') { - if (peek(2) !== '?' || !/[!=<:]/.test(peek(3))) { - extglobOpen('negate', value); - continue; - } - } - - if (opts.nonegate !== true && state.index === 0) { - negate(); - continue; - } - } - - /** - * Plus - */ - - if (value === '+') { - if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - extglobOpen('plus', value); - continue; - } - - if ((prev && prev.value === '(') || opts.regex === false) { - push({ type: 'plus', value, output: PLUS_LITERAL }); - continue; - } - - if ((prev && (prev.type === 'bracket' || prev.type === 'paren' || prev.type === 'brace')) || state.parens > 0) { - push({ type: 'plus', value }); - continue; - } - - push({ type: 'plus', value: PLUS_LITERAL }); - continue; - } - - /** - * Plain text - */ - - if (value === '@') { - if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - push({ type: 'at', extglob: true, value, output: '' }); - continue; - } - - push({ type: 'text', value }); - continue; - } - - /** - * Plain text - */ - - if (value !== '*') { - if (value === '$' || value === '^') { - value = `\\${value}`; - } - - const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); - if (match) { - value += match[0]; - state.index += match[0].length; - } - - push({ type: 'text', value }); - continue; - } - - /** - * Stars - */ - - if (prev && (prev.type === 'globstar' || prev.star === true)) { - prev.type = 'star'; - prev.star = true; - prev.value += value; - prev.output = star; - state.backtrack = true; - state.globstar = true; - consume(value); - continue; - } - - let rest = remaining(); - if (opts.noextglob !== true && /^\([^?]/.test(rest)) { - extglobOpen('star', value); - continue; - } - - if (prev.type === 'star') { - if (opts.noglobstar === true) { - consume(value); - continue; - } - - const prior = prev.prev; - const before = prior.prev; - const isStart = prior.type === 'slash' || prior.type === 'bos'; - const afterStar = before && (before.type === 'star' || before.type === 'globstar'); - - if (opts.bash === true && (!isStart || (rest[0] && rest[0] !== '/'))) { - push({ type: 'star', value, output: '' }); - continue; - } - - const isBrace = state.braces > 0 && (prior.type === 'comma' || prior.type === 'brace'); - const isExtglob = extglobs.length && (prior.type === 'pipe' || prior.type === 'paren'); - if (!isStart && prior.type !== 'paren' && !isBrace && !isExtglob) { - push({ type: 'star', value, output: '' }); - continue; - } - - // strip consecutive `/**/` - while (rest.slice(0, 3) === '/**') { - const after = input[state.index + 4]; - if (after && after !== '/') { - break; - } - rest = rest.slice(3); - consume('/**', 3); - } - - if (prior.type === 'bos' && eos()) { - prev.type = 'globstar'; - prev.value += value; - prev.output = globstar(opts); - state.output = prev.output; - state.globstar = true; - consume(value); - continue; - } - - if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && eos()) { - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - - prev.type = 'globstar'; - prev.output = globstar(opts) + (opts.strictSlashes ? ')' : '|$)'); - prev.value += value; - state.globstar = true; - state.output += prior.output + prev.output; - consume(value); - continue; - } - - if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') { - const end = rest[1] !== void 0 ? '|$' : ''; - - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - - prev.type = 'globstar'; - prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; - prev.value += value; - - state.output += prior.output + prev.output; - state.globstar = true; - - consume(value + advance()); - - push({ type: 'slash', value: '/', output: '' }); - continue; - } - - if (prior.type === 'bos' && rest[0] === '/') { - prev.type = 'globstar'; - prev.value += value; - prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; - state.output = prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: 'slash', value: '/', output: '' }); - continue; - } - - // remove single star from output - state.output = state.output.slice(0, -prev.output.length); - - // reset previous token to globstar - prev.type = 'globstar'; - prev.output = globstar(opts); - prev.value += value; - - // reset output with globstar - state.output += prev.output; - state.globstar = true; - consume(value); - continue; - } - - const token = { type: 'star', value, output: star }; - - if (opts.bash === true) { - token.output = '.*?'; - if (prev.type === 'bos' || prev.type === 'slash') { - token.output = nodot + token.output; - } - push(token); - continue; - } - - if (prev && (prev.type === 'bracket' || prev.type === 'paren') && opts.regex === true) { - token.output = value; - push(token); - continue; - } - - if (state.index === state.start || prev.type === 'slash' || prev.type === 'dot') { - if (prev.type === 'dot') { - state.output += NO_DOT_SLASH; - prev.output += NO_DOT_SLASH; - - } else if (opts.dot === true) { - state.output += NO_DOTS_SLASH; - prev.output += NO_DOTS_SLASH; - - } else { - state.output += nodot; - prev.output += nodot; - } - - if (peek() !== '*') { - state.output += ONE_CHAR; - prev.output += ONE_CHAR; - } - } - - push(token); - } - - while (state.brackets > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ']')); - state.output = utils.escapeLast(state.output, '['); - decrement('brackets'); - } - - while (state.parens > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ')')); - state.output = utils.escapeLast(state.output, '('); - decrement('parens'); - } - - while (state.braces > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', '}')); - state.output = utils.escapeLast(state.output, '{'); - decrement('braces'); - } - - if (opts.strictSlashes !== true && (prev.type === 'star' || prev.type === 'bracket')) { - push({ type: 'maybe_slash', value: '', output: `${SLASH_LITERAL}?` }); - } - - // rebuild the output if we had to backtrack at any point - if (state.backtrack === true) { - state.output = ''; - - for (const token of state.tokens) { - state.output += token.output != null ? token.output : token.value; - - if (token.suffix) { - state.output += token.suffix; - } - } - } - - return state; -}; - -/** - * Fast paths for creating regular expressions for common glob patterns. - * This can significantly speed up processing and has very little downside - * impact when none of the fast paths match. - */ - -parse.fastpaths = (input, options) => { - const opts = { ...options }; - const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - const len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - - input = REPLACEMENTS[input] || input; - const win32 = utils.isWindows(options); - - // create constants based on platform, for windows or posix - const { - DOT_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOTS_SLASH, - STAR, - START_ANCHOR - } = constants.globChars(win32); - - const nodot = opts.dot ? NO_DOTS : NO_DOT; - const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; - const capture = opts.capture ? '' : '?:'; - const state = { negated: false, prefix: '' }; - let star = opts.bash === true ? '.*?' : STAR; - - if (opts.capture) { - star = `(${star})`; - } - - const globstar = opts => { - if (opts.noglobstar === true) return star; - return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - - const create = str => { - switch (str) { - case '*': - return `${nodot}${ONE_CHAR}${star}`; - - case '.*': - return `${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '*.*': - return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '*/*': - return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; - - case '**': - return nodot + globstar(opts); - - case '**/*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; - - case '**/*.*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '**/.*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; - - default: { - const match = /^(.*?)\.(\w+)$/.exec(str); - if (!match) return; - - const source = create(match[1]); - if (!source) return; - - return source + DOT_LITERAL + match[2]; - } - } - }; - - const output = utils.removePrefix(input, state); - let source = create(output); - - if (source && opts.strictSlashes !== true) { - source += `${SLASH_LITERAL}?`; - } - - return source; -}; - -module.exports = parse; diff --git a/graphql/node_modules/picomatch/lib/picomatch.js b/graphql/node_modules/picomatch/lib/picomatch.js deleted file mode 100644 index 782d8094..00000000 --- a/graphql/node_modules/picomatch/lib/picomatch.js +++ /dev/null @@ -1,342 +0,0 @@ -'use strict'; - -const path = require('path'); -const scan = require('./scan'); -const parse = require('./parse'); -const utils = require('./utils'); -const constants = require('./constants'); -const isObject = val => val && typeof val === 'object' && !Array.isArray(val); - -/** - * Creates a matcher function from one or more glob patterns. The - * returned function takes a string to match as its first argument, - * and returns true if the string is a match. The returned matcher - * function also takes a boolean as the second argument that, when true, - * returns an object with additional information. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch(glob[, options]); - * - * const isMatch = picomatch('*.!(*a)'); - * console.log(isMatch('a.a')); //=> false - * console.log(isMatch('a.b')); //=> true - * ``` - * @name picomatch - * @param {String|Array} `globs` One or more glob patterns. - * @param {Object=} `options` - * @return {Function=} Returns a matcher function. - * @api public - */ - -const picomatch = (glob, options, returnState = false) => { - if (Array.isArray(glob)) { - const fns = glob.map(input => picomatch(input, options, returnState)); - const arrayMatcher = str => { - for (const isMatch of fns) { - const state = isMatch(str); - if (state) return state; - } - return false; - }; - return arrayMatcher; - } - - const isState = isObject(glob) && glob.tokens && glob.input; - - if (glob === '' || (typeof glob !== 'string' && !isState)) { - throw new TypeError('Expected pattern to be a non-empty string'); - } - - const opts = options || {}; - const posix = utils.isWindows(options); - const regex = isState - ? picomatch.compileRe(glob, options) - : picomatch.makeRe(glob, options, false, true); - - const state = regex.state; - delete regex.state; - - let isIgnored = () => false; - if (opts.ignore) { - const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null }; - isIgnored = picomatch(opts.ignore, ignoreOpts, returnState); - } - - const matcher = (input, returnObject = false) => { - const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }); - const result = { glob, state, regex, posix, input, output, match, isMatch }; - - if (typeof opts.onResult === 'function') { - opts.onResult(result); - } - - if (isMatch === false) { - result.isMatch = false; - return returnObject ? result : false; - } - - if (isIgnored(input)) { - if (typeof opts.onIgnore === 'function') { - opts.onIgnore(result); - } - result.isMatch = false; - return returnObject ? result : false; - } - - if (typeof opts.onMatch === 'function') { - opts.onMatch(result); - } - return returnObject ? result : true; - }; - - if (returnState) { - matcher.state = state; - } - - return matcher; -}; - -/** - * Test `input` with the given `regex`. This is used by the main - * `picomatch()` function to test the input string. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.test(input, regex[, options]); - * - * console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/)); - * // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' } - * ``` - * @param {String} `input` String to test. - * @param {RegExp} `regex` - * @return {Object} Returns an object with matching info. - * @api public - */ - -picomatch.test = (input, regex, options, { glob, posix } = {}) => { - if (typeof input !== 'string') { - throw new TypeError('Expected input to be a string'); - } - - if (input === '') { - return { isMatch: false, output: '' }; - } - - const opts = options || {}; - const format = opts.format || (posix ? utils.toPosixSlashes : null); - let match = input === glob; - let output = (match && format) ? format(input) : input; - - if (match === false) { - output = format ? format(input) : input; - match = output === glob; - } - - if (match === false || opts.capture === true) { - if (opts.matchBase === true || opts.basename === true) { - match = picomatch.matchBase(input, regex, options, posix); - } else { - match = regex.exec(output); - } - } - - return { isMatch: Boolean(match), match, output }; -}; - -/** - * Match the basename of a filepath. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.matchBase(input, glob[, options]); - * console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true - * ``` - * @param {String} `input` String to test. - * @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe). - * @return {Boolean} - * @api public - */ - -picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => { - const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options); - return regex.test(path.basename(input)); -}; - -/** - * Returns true if **any** of the given glob `patterns` match the specified `string`. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.isMatch(string, patterns[, options]); - * - * console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true - * console.log(picomatch.isMatch('a.a', 'b.*')); //=> false - * ``` - * @param {String|Array} str The string to test. - * @param {String|Array} patterns One or more glob patterns to use for matching. - * @param {Object} [options] See available [options](#options). - * @return {Boolean} Returns true if any patterns match `str` - * @api public - */ - -picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - -/** - * Parse a glob pattern to create the source string for a regular - * expression. - * - * ```js - * const picomatch = require('picomatch'); - * const result = picomatch.parse(pattern[, options]); - * ``` - * @param {String} `pattern` - * @param {Object} `options` - * @return {Object} Returns an object with useful properties and output to be used as a regex source string. - * @api public - */ - -picomatch.parse = (pattern, options) => { - if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options)); - return parse(pattern, { ...options, fastpaths: false }); -}; - -/** - * Scan a glob pattern to separate the pattern into segments. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.scan(input[, options]); - * - * const result = picomatch.scan('!./foo/*.js'); - * console.log(result); - * { prefix: '!./', - * input: '!./foo/*.js', - * start: 3, - * base: 'foo', - * glob: '*.js', - * isBrace: false, - * isBracket: false, - * isGlob: true, - * isExtglob: false, - * isGlobstar: false, - * negated: true } - * ``` - * @param {String} `input` Glob pattern to scan. - * @param {Object} `options` - * @return {Object} Returns an object with - * @api public - */ - -picomatch.scan = (input, options) => scan(input, options); - -/** - * Compile a regular expression from the `state` object returned by the - * [parse()](#parse) method. - * - * @param {Object} `state` - * @param {Object} `options` - * @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser. - * @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging. - * @return {RegExp} - * @api public - */ - -picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => { - if (returnOutput === true) { - return state.output; - } - - const opts = options || {}; - const prepend = opts.contains ? '' : '^'; - const append = opts.contains ? '' : '$'; - - let source = `${prepend}(?:${state.output})${append}`; - if (state && state.negated === true) { - source = `^(?!${source}).*$`; - } - - const regex = picomatch.toRegex(source, options); - if (returnState === true) { - regex.state = state; - } - - return regex; -}; - -/** - * Create a regular expression from a parsed glob pattern. - * - * ```js - * const picomatch = require('picomatch'); - * const state = picomatch.parse('*.js'); - * // picomatch.compileRe(state[, options]); - * - * console.log(picomatch.compileRe(state)); - * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ - * ``` - * @param {String} `state` The object returned from the `.parse` method. - * @param {Object} `options` - * @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result. - * @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression. - * @return {RegExp} Returns a regex created from the given pattern. - * @api public - */ - -picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => { - if (!input || typeof input !== 'string') { - throw new TypeError('Expected a non-empty string'); - } - - let parsed = { negated: false, fastpaths: true }; - - if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) { - parsed.output = parse.fastpaths(input, options); - } - - if (!parsed.output) { - parsed = parse(input, options); - } - - return picomatch.compileRe(parsed, options, returnOutput, returnState); -}; - -/** - * Create a regular expression from the given regex source string. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.toRegex(source[, options]); - * - * const { output } = picomatch.parse('*.js'); - * console.log(picomatch.toRegex(output)); - * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ - * ``` - * @param {String} `source` Regular expression source string. - * @param {Object} `options` - * @return {RegExp} - * @api public - */ - -picomatch.toRegex = (source, options) => { - try { - const opts = options || {}; - return new RegExp(source, opts.flags || (opts.nocase ? 'i' : '')); - } catch (err) { - if (options && options.debug === true) throw err; - return /$^/; - } -}; - -/** - * Picomatch constants. - * @return {Object} - */ - -picomatch.constants = constants; - -/** - * Expose "picomatch" - */ - -module.exports = picomatch; diff --git a/graphql/node_modules/picomatch/lib/scan.js b/graphql/node_modules/picomatch/lib/scan.js deleted file mode 100644 index e59cd7a1..00000000 --- a/graphql/node_modules/picomatch/lib/scan.js +++ /dev/null @@ -1,391 +0,0 @@ -'use strict'; - -const utils = require('./utils'); -const { - CHAR_ASTERISK, /* * */ - CHAR_AT, /* @ */ - CHAR_BACKWARD_SLASH, /* \ */ - CHAR_COMMA, /* , */ - CHAR_DOT, /* . */ - CHAR_EXCLAMATION_MARK, /* ! */ - CHAR_FORWARD_SLASH, /* / */ - CHAR_LEFT_CURLY_BRACE, /* { */ - CHAR_LEFT_PARENTHESES, /* ( */ - CHAR_LEFT_SQUARE_BRACKET, /* [ */ - CHAR_PLUS, /* + */ - CHAR_QUESTION_MARK, /* ? */ - CHAR_RIGHT_CURLY_BRACE, /* } */ - CHAR_RIGHT_PARENTHESES, /* ) */ - CHAR_RIGHT_SQUARE_BRACKET /* ] */ -} = require('./constants'); - -const isPathSeparator = code => { - return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; -}; - -const depth = token => { - if (token.isPrefix !== true) { - token.depth = token.isGlobstar ? Infinity : 1; - } -}; - -/** - * Quickly scans a glob pattern and returns an object with a handful of - * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists), - * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not - * with `!(`) and `negatedExtglob` (true if the path starts with `!(`). - * - * ```js - * const pm = require('picomatch'); - * console.log(pm.scan('foo/bar/*.js')); - * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' } - * ``` - * @param {String} `str` - * @param {Object} `options` - * @return {Object} Returns an object with tokens and regex source string. - * @api public - */ - -const scan = (input, options) => { - const opts = options || {}; - - const length = input.length - 1; - const scanToEnd = opts.parts === true || opts.scanToEnd === true; - const slashes = []; - const tokens = []; - const parts = []; - - let str = input; - let index = -1; - let start = 0; - let lastIndex = 0; - let isBrace = false; - let isBracket = false; - let isGlob = false; - let isExtglob = false; - let isGlobstar = false; - let braceEscaped = false; - let backslashes = false; - let negated = false; - let negatedExtglob = false; - let finished = false; - let braces = 0; - let prev; - let code; - let token = { value: '', depth: 0, isGlob: false }; - - const eos = () => index >= length; - const peek = () => str.charCodeAt(index + 1); - const advance = () => { - prev = code; - return str.charCodeAt(++index); - }; - - while (index < length) { - code = advance(); - let next; - - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - - if (code === CHAR_LEFT_CURLY_BRACE) { - braceEscaped = true; - } - continue; - } - - if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { - braces++; - - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - - if (code === CHAR_LEFT_CURLY_BRACE) { - braces++; - continue; - } - - if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (braceEscaped !== true && code === CHAR_COMMA) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (code === CHAR_RIGHT_CURLY_BRACE) { - braces--; - - if (braces === 0) { - braceEscaped = false; - isBrace = token.isBrace = true; - finished = true; - break; - } - } - } - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (code === CHAR_FORWARD_SLASH) { - slashes.push(index); - tokens.push(token); - token = { value: '', depth: 0, isGlob: false }; - - if (finished === true) continue; - if (prev === CHAR_DOT && index === (start + 1)) { - start += 2; - continue; - } - - lastIndex = index + 1; - continue; - } - - if (opts.noext !== true) { - const isExtglobChar = code === CHAR_PLUS - || code === CHAR_AT - || code === CHAR_ASTERISK - || code === CHAR_QUESTION_MARK - || code === CHAR_EXCLAMATION_MARK; - - if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - isExtglob = token.isExtglob = true; - finished = true; - if (code === CHAR_EXCLAMATION_MARK && index === start) { - negatedExtglob = true; - } - - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - - if (code === CHAR_RIGHT_PARENTHESES) { - isGlob = token.isGlob = true; - finished = true; - break; - } - } - continue; - } - break; - } - } - - if (code === CHAR_ASTERISK) { - if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - break; - } - - if (code === CHAR_QUESTION_MARK) { - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - break; - } - - if (code === CHAR_LEFT_SQUARE_BRACKET) { - while (eos() !== true && (next = advance())) { - if (next === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - isBracket = token.isBracket = true; - isGlob = token.isGlob = true; - finished = true; - break; - } - } - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { - negated = token.negated = true; - start++; - continue; - } - - if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_LEFT_PARENTHESES) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - - if (code === CHAR_RIGHT_PARENTHESES) { - finished = true; - break; - } - } - continue; - } - break; - } - - if (isGlob === true) { - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - } - - if (opts.noext === true) { - isExtglob = false; - isGlob = false; - } - - let base = str; - let prefix = ''; - let glob = ''; - - if (start > 0) { - prefix = str.slice(0, start); - str = str.slice(start); - lastIndex -= start; - } - - if (base && isGlob === true && lastIndex > 0) { - base = str.slice(0, lastIndex); - glob = str.slice(lastIndex); - } else if (isGlob === true) { - base = ''; - glob = str; - } else { - base = str; - } - - if (base && base !== '' && base !== '/' && base !== str) { - if (isPathSeparator(base.charCodeAt(base.length - 1))) { - base = base.slice(0, -1); - } - } - - if (opts.unescape === true) { - if (glob) glob = utils.removeBackslashes(glob); - - if (base && backslashes === true) { - base = utils.removeBackslashes(base); - } - } - - const state = { - prefix, - input, - start, - base, - glob, - isBrace, - isBracket, - isGlob, - isExtglob, - isGlobstar, - negated, - negatedExtglob - }; - - if (opts.tokens === true) { - state.maxDepth = 0; - if (!isPathSeparator(code)) { - tokens.push(token); - } - state.tokens = tokens; - } - - if (opts.parts === true || opts.tokens === true) { - let prevIndex; - - for (let idx = 0; idx < slashes.length; idx++) { - const n = prevIndex ? prevIndex + 1 : start; - const i = slashes[idx]; - const value = input.slice(n, i); - if (opts.tokens) { - if (idx === 0 && start !== 0) { - tokens[idx].isPrefix = true; - tokens[idx].value = prefix; - } else { - tokens[idx].value = value; - } - depth(tokens[idx]); - state.maxDepth += tokens[idx].depth; - } - if (idx !== 0 || value !== '') { - parts.push(value); - } - prevIndex = i; - } - - if (prevIndex && prevIndex + 1 < input.length) { - const value = input.slice(prevIndex + 1); - parts.push(value); - - if (opts.tokens) { - tokens[tokens.length - 1].value = value; - depth(tokens[tokens.length - 1]); - state.maxDepth += tokens[tokens.length - 1].depth; - } - } - - state.slashes = slashes; - state.parts = parts; - } - - return state; -}; - -module.exports = scan; diff --git a/graphql/node_modules/picomatch/lib/utils.js b/graphql/node_modules/picomatch/lib/utils.js deleted file mode 100644 index c3ca766a..00000000 --- a/graphql/node_modules/picomatch/lib/utils.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; - -const path = require('path'); -const win32 = process.platform === 'win32'; -const { - REGEX_BACKSLASH, - REGEX_REMOVE_BACKSLASH, - REGEX_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_GLOBAL -} = require('./constants'); - -exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); -exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str); -exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str); -exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1'); -exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/'); - -exports.removeBackslashes = str => { - return str.replace(REGEX_REMOVE_BACKSLASH, match => { - return match === '\\' ? '' : match; - }); -}; - -exports.supportsLookbehinds = () => { - const segs = process.version.slice(1).split('.').map(Number); - if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) { - return true; - } - return false; -}; - -exports.isWindows = options => { - if (options && typeof options.windows === 'boolean') { - return options.windows; - } - return win32 === true || path.sep === '\\'; -}; - -exports.escapeLast = (input, char, lastIdx) => { - const idx = input.lastIndexOf(char, lastIdx); - if (idx === -1) return input; - if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1); - return `${input.slice(0, idx)}\\${input.slice(idx)}`; -}; - -exports.removePrefix = (input, state = {}) => { - let output = input; - if (output.startsWith('./')) { - output = output.slice(2); - state.prefix = './'; - } - return output; -}; - -exports.wrapOutput = (input, state = {}, options = {}) => { - const prepend = options.contains ? '' : '^'; - const append = options.contains ? '' : '$'; - - let output = `${prepend}(?:${input})${append}`; - if (state.negated === true) { - output = `(?:^(?!${output}).*$)`; - } - return output; -}; diff --git a/graphql/node_modules/picomatch/package.json b/graphql/node_modules/picomatch/package.json deleted file mode 100644 index 3db22d40..00000000 --- a/graphql/node_modules/picomatch/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "picomatch", - "description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.", - "version": "2.3.1", - "homepage": "https://github.com/micromatch/picomatch", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "funding": "https://github.com/sponsors/jonschlinkert", - "repository": "micromatch/picomatch", - "bugs": { - "url": "https://github.com/micromatch/picomatch/issues" - }, - "license": "MIT", - "files": [ - "index.js", - "lib" - ], - "main": "index.js", - "engines": { - "node": ">=8.6" - }, - "scripts": { - "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .", - "mocha": "mocha --reporter dot", - "test": "npm run lint && npm run mocha", - "test:ci": "npm run test:cover", - "test:cover": "nyc npm run mocha" - }, - "devDependencies": { - "eslint": "^6.8.0", - "fill-range": "^7.0.1", - "gulp-format-md": "^2.0.0", - "mocha": "^6.2.2", - "nyc": "^15.0.0", - "time-require": "github:jonschlinkert/time-require" - }, - "keywords": [ - "glob", - "match", - "picomatch" - ], - "nyc": { - "reporter": [ - "html", - "lcov", - "text-summary" - ] - }, - "verb": { - "toc": { - "render": true, - "method": "preWrite", - "maxdepth": 3 - }, - "layout": "empty", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "related": { - "list": [ - "braces", - "micromatch" - ] - }, - "reflinks": [ - "braces", - "expand-brackets", - "extglob", - "fill-range", - "micromatch", - "minimatch", - "nanomatch", - "picomatch" - ] - } -} diff --git a/graphql/node_modules/prelude-ls/CHANGELOG.md b/graphql/node_modules/prelude-ls/CHANGELOG.md deleted file mode 100644 index 71b8a0f2..00000000 --- a/graphql/node_modules/prelude-ls/CHANGELOG.md +++ /dev/null @@ -1,108 +0,0 @@ -# 1.2.1 -- fix version - -# 1.2.0 -- add `List.remove` -- build with LiveScript 1.6.0 -- update dependencies -- remove coverage calculation - -# 1.1.2 -- add `Func.memoize` -- fix `zip-all` and `zip-with-all` corner case (no input) -- build with LiveScript 1.4.0 - -# 1.1.1 -- curry `unique-by`, `minimum-by` - -# 1.1.0 -- added `List` functions: `maximum-by`, `minimum-by`, `unique-by` -- added `List` functions: `at`, `elem-index`, `elem-indices`, `find-index`, `find-indices` -- added `Str` functions: `capitalize`, `camelize`, `dasherize` -- added `Func` function: `over` - eg. ``same-length = (==) `over` (.length)`` -- exported `Str.repeat` through main `prelude` object -- fixed definition of `foldr` and `foldr1`, the new correct definition is backwards incompatible with the old, incorrect one -- fixed issue with `fix` -- improved code coverage - -# 1.0.3 -- build browser versions - -# 1.0.2 -- bug fix for `flatten` - slight change with bug fix, flattens arrays only, not array-like objects - -# 1.0.1 -- bug fixes for `drop-while` and `take-while` - -# 1.0.0 -* massive update - separated functions into separate modules -* functions do not accept multiple types anymore - use different versions in their respective modules in some cases (eg. `Obj.map`), or use `chars` or `values` in other cases to transform into a list -* objects are no longer transformed into functions, simply use `(obj.)` in LiveScript to do that -* browser version now using browserify - use `prelude = require('prelude-ls')` -* added `compact`, `split`, `flatten`, `difference`, `intersection`, `union`, `count-by`, `group-by`, `chars`, `unchars`, `apply` -* added `lists-to-obj` which takes a list of keys and list of values and zips them up into an object, and the converse `obj-to-lists` -* added `pairs-to-obj` which takes a list of pairs (2 element lists) and creates an object, and the converse `obj-to-pairs` -* removed `cons`, `append` - use the concat operator -* removed `compose` - use the compose operator -* removed `obj-to-func` - use partially applied access (eg. `(obj.)`) -* removed `length` - use `(.length)` -* `sort-by` renamed to `sort-with` -* added new `sort-by` -* removed `compare` - just use the new `sort-by` -* `break-it` renamed `break-list`, (`Str.break-str` for the string version) -* added `Str.repeat` which creates a new string by repeating the input n times -* `unfold` as alias to `unfoldr` is no longer used -* fixed up style and compiled with LiveScript 1.1.1 -* use Make instead of Slake -* greatly improved tests - -# 0.6.0 -* fixed various bugs -* added `fix`, a fixpoint (Y combinator) for anonymous recursive functions -* added `unfoldr` (alias `unfold`) -* calling `replicate` with a string now returns a list of strings -* removed `partial`, just use native partial application in LiveScript using the `_` placeholder, or currying -* added `sort`, `sortBy`, and `compare` - -# 0.5.0 -* removed `lookup` - use (.prop) -* removed `call` - use (.func arg1, arg2) -* removed `pluck` - use map (.prop), xs -* fixed buys wtih `head` and `last` -* added non-minifed browser version, as `prelude-browser.js` -* renamed `prelude-min.js` to `prelude-browser-min.js` -* renamed `zip` to `zipAll` -* renamed `zipWith` to `zipAllWith` -* added `zip`, a curried zip that takes only two arguments -* added `zipWith`, a curried zipWith that takes only two arguments - -# 0.4.0 -* added `parition` function -* added `curry` function -* removed `elem` function (use `in`) -* removed `notElem` function (use `not in`) - -# 0.3.0 -* added `listToObject` -* added `unique` -* added `objToFunc` -* added support for using strings in map and the like -* added support for using objects in map and the like -* added ability to use objects instead of functions in certain cases -* removed `error` (just use throw) -* added `tau` constant -* added `join` -* added `values` -* added `keys` -* added `partial` -* renamed `log` to `ln` -* added alias to `head`: `first` -* added `installPrelude` helper - -# 0.2.0 -* removed functions that simply warp operators as you can now use operators as functions in LiveScript -* `min/max` are now curried and take only 2 arguments -* added `call` - -# 0.1.0 -* initial public release diff --git a/graphql/node_modules/prelude-ls/LICENSE b/graphql/node_modules/prelude-ls/LICENSE deleted file mode 100644 index 525b1185..00000000 --- a/graphql/node_modules/prelude-ls/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) George Zahariev - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/prelude-ls/README.md b/graphql/node_modules/prelude-ls/README.md deleted file mode 100644 index fabc212e..00000000 --- a/graphql/node_modules/prelude-ls/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# prelude.ls [![Build Status](https://travis-ci.org/gkz/prelude-ls.png?branch=master)](https://travis-ci.org/gkz/prelude-ls) - -is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript. - -See **[the prelude.ls site](http://preludels.com)** for examples, a reference, and more. - -You can install via npm `npm install prelude-ls` - -### Development - -`make test` to test - -`make build` to build `lib` from `src` - -`make build-browser` to build browser versions diff --git a/graphql/node_modules/prelude-ls/lib/Func.js b/graphql/node_modules/prelude-ls/lib/Func.js deleted file mode 100644 index 09777a8c..00000000 --- a/graphql/node_modules/prelude-ls/lib/Func.js +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by LiveScript 1.6.0 -var apply, curry, flip, fix, over, memoize, toString$ = {}.toString; -apply = curry$(function(f, list){ - return f.apply(null, list); -}); -curry = function(f){ - return curry$(f); -}; -flip = curry$(function(f, x, y){ - return f(y, x); -}); -fix = function(f){ - return function(g){ - return function(){ - return f(g(g)).apply(null, arguments); - }; - }(function(g){ - return function(){ - return f(g(g)).apply(null, arguments); - }; - }); -}; -over = curry$(function(f, g, x, y){ - return f(g(x), g(y)); -}); -memoize = function(f){ - var memo; - memo = {}; - return function(){ - var args, res$, i$, to$, key, arg; - res$ = []; - for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - args = res$; - key = (function(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = args).length; i$ < len$; ++i$) { - arg = ref$[i$]; - results$.push(arg + toString$.call(arg).slice(8, -1)); - } - return results$; - }()).join(''); - return memo[key] = key in memo - ? memo[key] - : f.apply(null, args); - }; -}; -module.exports = { - curry: curry, - flip: flip, - fix: fix, - apply: apply, - over: over, - memoize: memoize -}; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/lib/List.js b/graphql/node_modules/prelude-ls/lib/List.js deleted file mode 100644 index d2e41ab1..00000000 --- a/graphql/node_modules/prelude-ls/lib/List.js +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by LiveScript 1.6.0 -var each, map, compact, filter, reject, remove, partition, find, head, first, tail, last, initial, empty, reverse, unique, uniqueBy, fold, foldl, fold1, foldl1, foldr, foldr1, unfoldr, concat, concatMap, flatten, difference, intersection, union, countBy, groupBy, andList, orList, any, all, sort, sortWith, sortBy, sum, product, mean, average, maximum, minimum, maximumBy, minimumBy, scan, scanl, scan1, scanl1, scanr, scanr1, slice, take, drop, splitAt, takeWhile, dropWhile, span, breakList, zip, zipWith, zipAll, zipAllWith, at, elemIndex, elemIndices, findIndex, findIndices, toString$ = {}.toString; -each = curry$(function(f, xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - f(x); - } - return xs; -}); -map = curry$(function(f, xs){ - var i$, len$, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - results$.push(f(x)); - } - return results$; -}); -compact = function(xs){ - var i$, len$, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (x) { - results$.push(x); - } - } - return results$; -}; -filter = curry$(function(f, xs){ - var i$, len$, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (f(x)) { - results$.push(x); - } - } - return results$; -}); -reject = curry$(function(f, xs){ - var i$, len$, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (!f(x)) { - results$.push(x); - } - } - return results$; -}); -remove = curry$(function(el, xs){ - var i, x$; - i = elemIndex(el, xs); - x$ = xs.slice(); - if (i != null) { - x$.splice(i, 1); - } - return x$; -}); -partition = curry$(function(f, xs){ - var passed, failed, i$, len$, x; - passed = []; - failed = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - (f(x) ? passed : failed).push(x); - } - return [passed, failed]; -}); -find = curry$(function(f, xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (f(x)) { - return x; - } - } -}); -head = first = function(xs){ - return xs[0]; -}; -tail = function(xs){ - if (!xs.length) { - return; - } - return xs.slice(1); -}; -last = function(xs){ - return xs[xs.length - 1]; -}; -initial = function(xs){ - if (!xs.length) { - return; - } - return xs.slice(0, -1); -}; -empty = function(xs){ - return !xs.length; -}; -reverse = function(xs){ - return xs.concat().reverse(); -}; -unique = function(xs){ - var result, i$, len$, x; - result = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (!in$(x, result)) { - result.push(x); - } - } - return result; -}; -uniqueBy = curry$(function(f, xs){ - var seen, i$, len$, x, val, results$ = []; - seen = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - val = f(x); - if (in$(val, seen)) { - continue; - } - seen.push(val); - results$.push(x); - } - return results$; -}); -fold = foldl = curry$(function(f, memo, xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - memo = f(memo, x); - } - return memo; -}); -fold1 = foldl1 = curry$(function(f, xs){ - return fold(f, xs[0], xs.slice(1)); -}); -foldr = curry$(function(f, memo, xs){ - var i$, x; - for (i$ = xs.length - 1; i$ >= 0; --i$) { - x = xs[i$]; - memo = f(x, memo); - } - return memo; -}); -foldr1 = curry$(function(f, xs){ - return foldr(f, xs[xs.length - 1], xs.slice(0, -1)); -}); -unfoldr = curry$(function(f, b){ - var result, x, that; - result = []; - x = b; - while ((that = f(x)) != null) { - result.push(that[0]); - x = that[1]; - } - return result; -}); -concat = function(xss){ - return [].concat.apply([], xss); -}; -concatMap = curry$(function(f, xs){ - var x; - return [].concat.apply([], (function(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = xs).length; i$ < len$; ++i$) { - x = ref$[i$]; - results$.push(f(x)); - } - return results$; - }())); -}); -flatten = function(xs){ - var x; - return [].concat.apply([], (function(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = xs).length; i$ < len$; ++i$) { - x = ref$[i$]; - if (toString$.call(x).slice(8, -1) === 'Array') { - results$.push(flatten(x)); - } else { - results$.push(x); - } - } - return results$; - }())); -}; -difference = function(xs){ - var yss, res$, i$, to$, results, len$, x, j$, len1$, ys; - res$ = []; - for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - yss = res$; - results = []; - outer: for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - for (j$ = 0, len1$ = yss.length; j$ < len1$; ++j$) { - ys = yss[j$]; - if (in$(x, ys)) { - continue outer; - } - } - results.push(x); - } - return results; -}; -intersection = function(xs){ - var yss, res$, i$, to$, results, len$, x, j$, len1$, ys; - res$ = []; - for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - yss = res$; - results = []; - outer: for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - for (j$ = 0, len1$ = yss.length; j$ < len1$; ++j$) { - ys = yss[j$]; - if (!in$(x, ys)) { - continue outer; - } - } - results.push(x); - } - return results; -}; -union = function(){ - var xss, res$, i$, to$, results, len$, xs, j$, len1$, x; - res$ = []; - for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - xss = res$; - results = []; - for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) { - xs = xss[i$]; - for (j$ = 0, len1$ = xs.length; j$ < len1$; ++j$) { - x = xs[j$]; - if (!in$(x, results)) { - results.push(x); - } - } - } - return results; -}; -countBy = curry$(function(f, xs){ - var results, i$, len$, x, key; - results = {}; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - key = f(x); - if (key in results) { - results[key] += 1; - } else { - results[key] = 1; - } - } - return results; -}); -groupBy = curry$(function(f, xs){ - var results, i$, len$, x, key; - results = {}; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - key = f(x); - if (key in results) { - results[key].push(x); - } else { - results[key] = [x]; - } - } - return results; -}); -andList = function(xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (!x) { - return false; - } - } - return true; -}; -orList = function(xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (x) { - return true; - } - } - return false; -}; -any = curry$(function(f, xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (f(x)) { - return true; - } - } - return false; -}); -all = curry$(function(f, xs){ - var i$, len$, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - if (!f(x)) { - return false; - } - } - return true; -}); -sort = function(xs){ - return xs.concat().sort(function(x, y){ - if (x > y) { - return 1; - } else if (x < y) { - return -1; - } else { - return 0; - } - }); -}; -sortWith = curry$(function(f, xs){ - return xs.concat().sort(f); -}); -sortBy = curry$(function(f, xs){ - return xs.concat().sort(function(x, y){ - if (f(x) > f(y)) { - return 1; - } else if (f(x) < f(y)) { - return -1; - } else { - return 0; - } - }); -}); -sum = function(xs){ - var result, i$, len$, x; - result = 0; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - result += x; - } - return result; -}; -product = function(xs){ - var result, i$, len$, x; - result = 1; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - result *= x; - } - return result; -}; -mean = average = function(xs){ - var sum, i$, len$, x; - sum = 0; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - x = xs[i$]; - sum += x; - } - return sum / xs.length; -}; -maximum = function(xs){ - var max, i$, ref$, len$, x; - max = xs[0]; - for (i$ = 0, len$ = (ref$ = xs.slice(1)).length; i$ < len$; ++i$) { - x = ref$[i$]; - if (x > max) { - max = x; - } - } - return max; -}; -minimum = function(xs){ - var min, i$, ref$, len$, x; - min = xs[0]; - for (i$ = 0, len$ = (ref$ = xs.slice(1)).length; i$ < len$; ++i$) { - x = ref$[i$]; - if (x < min) { - min = x; - } - } - return min; -}; -maximumBy = curry$(function(f, xs){ - var max, i$, ref$, len$, x; - max = xs[0]; - for (i$ = 0, len$ = (ref$ = xs.slice(1)).length; i$ < len$; ++i$) { - x = ref$[i$]; - if (f(x) > f(max)) { - max = x; - } - } - return max; -}); -minimumBy = curry$(function(f, xs){ - var min, i$, ref$, len$, x; - min = xs[0]; - for (i$ = 0, len$ = (ref$ = xs.slice(1)).length; i$ < len$; ++i$) { - x = ref$[i$]; - if (f(x) < f(min)) { - min = x; - } - } - return min; -}); -scan = scanl = curry$(function(f, memo, xs){ - var last, x; - last = memo; - return [memo].concat((function(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = xs).length; i$ < len$; ++i$) { - x = ref$[i$]; - results$.push(last = f(last, x)); - } - return results$; - }())); -}); -scan1 = scanl1 = curry$(function(f, xs){ - if (!xs.length) { - return; - } - return scan(f, xs[0], xs.slice(1)); -}); -scanr = curry$(function(f, memo, xs){ - xs = xs.concat().reverse(); - return scan(f, memo, xs).reverse(); -}); -scanr1 = curry$(function(f, xs){ - if (!xs.length) { - return; - } - xs = xs.concat().reverse(); - return scan(f, xs[0], xs.slice(1)).reverse(); -}); -slice = curry$(function(x, y, xs){ - return xs.slice(x, y); -}); -take = curry$(function(n, xs){ - if (n <= 0) { - return xs.slice(0, 0); - } else { - return xs.slice(0, n); - } -}); -drop = curry$(function(n, xs){ - if (n <= 0) { - return xs; - } else { - return xs.slice(n); - } -}); -splitAt = curry$(function(n, xs){ - return [take(n, xs), drop(n, xs)]; -}); -takeWhile = curry$(function(p, xs){ - var len, i; - len = xs.length; - if (!len) { - return xs; - } - i = 0; - while (i < len && p(xs[i])) { - i += 1; - } - return xs.slice(0, i); -}); -dropWhile = curry$(function(p, xs){ - var len, i; - len = xs.length; - if (!len) { - return xs; - } - i = 0; - while (i < len && p(xs[i])) { - i += 1; - } - return xs.slice(i); -}); -span = curry$(function(p, xs){ - return [takeWhile(p, xs), dropWhile(p, xs)]; -}); -breakList = curry$(function(p, xs){ - return span(compose$(p, not$), xs); -}); -zip = curry$(function(xs, ys){ - var result, len, i$, len$, i, x; - result = []; - len = ys.length; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (i === len) { - break; - } - result.push([x, ys[i]]); - } - return result; -}); -zipWith = curry$(function(f, xs, ys){ - var result, len, i$, len$, i, x; - result = []; - len = ys.length; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (i === len) { - break; - } - result.push(f(x, ys[i])); - } - return result; -}); -zipAll = function(){ - var xss, res$, i$, to$, minLength, len$, xs, ref$, i, lresult$, j$, results$ = []; - res$ = []; - for (i$ = 0, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - xss = res$; - minLength = undefined; - for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) { - xs = xss[i$]; - minLength <= (ref$ = xs.length) || (minLength = ref$); - } - for (i$ = 0; i$ < minLength; ++i$) { - i = i$; - lresult$ = []; - for (j$ = 0, len$ = xss.length; j$ < len$; ++j$) { - xs = xss[j$]; - lresult$.push(xs[i]); - } - results$.push(lresult$); - } - return results$; -}; -zipAllWith = function(f){ - var xss, res$, i$, to$, minLength, len$, xs, ref$, i, results$ = []; - res$ = []; - for (i$ = 1, to$ = arguments.length; i$ < to$; ++i$) { - res$.push(arguments[i$]); - } - xss = res$; - minLength = undefined; - for (i$ = 0, len$ = xss.length; i$ < len$; ++i$) { - xs = xss[i$]; - minLength <= (ref$ = xs.length) || (minLength = ref$); - } - for (i$ = 0; i$ < minLength; ++i$) { - i = i$; - results$.push(f.apply(null, (fn$()))); - } - return results$; - function fn$(){ - var i$, ref$, len$, results$ = []; - for (i$ = 0, len$ = (ref$ = xss).length; i$ < len$; ++i$) { - xs = ref$[i$]; - results$.push(xs[i]); - } - return results$; - } -}; -at = curry$(function(n, xs){ - if (n < 0) { - return xs[xs.length + n]; - } else { - return xs[n]; - } -}); -elemIndex = curry$(function(el, xs){ - var i$, len$, i, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (x === el) { - return i; - } - } -}); -elemIndices = curry$(function(el, xs){ - var i$, len$, i, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (x === el) { - results$.push(i); - } - } - return results$; -}); -findIndex = curry$(function(f, xs){ - var i$, len$, i, x; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (f(x)) { - return i; - } - } -}); -findIndices = curry$(function(f, xs){ - var i$, len$, i, x, results$ = []; - for (i$ = 0, len$ = xs.length; i$ < len$; ++i$) { - i = i$; - x = xs[i$]; - if (f(x)) { - results$.push(i); - } - } - return results$; -}); -module.exports = { - each: each, - map: map, - filter: filter, - compact: compact, - reject: reject, - remove: remove, - partition: partition, - find: find, - head: head, - first: first, - tail: tail, - last: last, - initial: initial, - empty: empty, - reverse: reverse, - difference: difference, - intersection: intersection, - union: union, - countBy: countBy, - groupBy: groupBy, - fold: fold, - fold1: fold1, - foldl: foldl, - foldl1: foldl1, - foldr: foldr, - foldr1: foldr1, - unfoldr: unfoldr, - andList: andList, - orList: orList, - any: any, - all: all, - unique: unique, - uniqueBy: uniqueBy, - sort: sort, - sortWith: sortWith, - sortBy: sortBy, - sum: sum, - product: product, - mean: mean, - average: average, - concat: concat, - concatMap: concatMap, - flatten: flatten, - maximum: maximum, - minimum: minimum, - maximumBy: maximumBy, - minimumBy: minimumBy, - scan: scan, - scan1: scan1, - scanl: scanl, - scanl1: scanl1, - scanr: scanr, - scanr1: scanr1, - slice: slice, - take: take, - drop: drop, - splitAt: splitAt, - takeWhile: takeWhile, - dropWhile: dropWhile, - span: span, - breakList: breakList, - zip: zip, - zipWith: zipWith, - zipAll: zipAll, - zipAllWith: zipAllWith, - at: at, - elemIndex: elemIndex, - elemIndices: elemIndices, - findIndex: findIndex, - findIndices: findIndices -}; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} -function in$(x, xs){ - var i = -1, l = xs.length >>> 0; - while (++i < l) if (x === xs[i]) return true; - return false; -} -function compose$() { - var functions = arguments; - return function() { - var i, result; - result = functions[0].apply(this, arguments); - for (i = 1; i < functions.length; ++i) { - result = functions[i](result); - } - return result; - }; -} -function not$(x){ return !x; } \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/lib/Num.js b/graphql/node_modules/prelude-ls/lib/Num.js deleted file mode 100644 index f6b53193..00000000 --- a/graphql/node_modules/prelude-ls/lib/Num.js +++ /dev/null @@ -1,130 +0,0 @@ -// Generated by LiveScript 1.6.0 -var max, min, negate, abs, signum, quot, rem, div, mod, recip, pi, tau, exp, sqrt, ln, pow, sin, tan, cos, asin, acos, atan, atan2, truncate, round, ceiling, floor, isItNaN, even, odd, gcd, lcm; -max = curry$(function(x$, y$){ - return x$ > y$ ? x$ : y$; -}); -min = curry$(function(x$, y$){ - return x$ < y$ ? x$ : y$; -}); -negate = function(x){ - return -x; -}; -abs = Math.abs; -signum = function(x){ - if (x < 0) { - return -1; - } else if (x > 0) { - return 1; - } else { - return 0; - } -}; -quot = curry$(function(x, y){ - return ~~(x / y); -}); -rem = curry$(function(x$, y$){ - return x$ % y$; -}); -div = curry$(function(x, y){ - return Math.floor(x / y); -}); -mod = curry$(function(x$, y$){ - var ref$; - return ((x$) % (ref$ = y$) + ref$) % ref$; -}); -recip = (function(it){ - return 1 / it; -}); -pi = Math.PI; -tau = pi * 2; -exp = Math.exp; -sqrt = Math.sqrt; -ln = Math.log; -pow = curry$(function(x$, y$){ - return Math.pow(x$, y$); -}); -sin = Math.sin; -tan = Math.tan; -cos = Math.cos; -asin = Math.asin; -acos = Math.acos; -atan = Math.atan; -atan2 = curry$(function(x, y){ - return Math.atan2(x, y); -}); -truncate = function(x){ - return ~~x; -}; -round = Math.round; -ceiling = Math.ceil; -floor = Math.floor; -isItNaN = function(x){ - return x !== x; -}; -even = function(x){ - return x % 2 === 0; -}; -odd = function(x){ - return x % 2 !== 0; -}; -gcd = curry$(function(x, y){ - var z; - x = Math.abs(x); - y = Math.abs(y); - while (y !== 0) { - z = x % y; - x = y; - y = z; - } - return x; -}); -lcm = curry$(function(x, y){ - return Math.abs(Math.floor(x / gcd(x, y) * y)); -}); -module.exports = { - max: max, - min: min, - negate: negate, - abs: abs, - signum: signum, - quot: quot, - rem: rem, - div: div, - mod: mod, - recip: recip, - pi: pi, - tau: tau, - exp: exp, - sqrt: sqrt, - ln: ln, - pow: pow, - sin: sin, - tan: tan, - cos: cos, - acos: acos, - asin: asin, - atan: atan, - atan2: atan2, - truncate: truncate, - round: round, - ceiling: ceiling, - floor: floor, - isItNaN: isItNaN, - even: even, - odd: odd, - gcd: gcd, - lcm: lcm -}; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/lib/Obj.js b/graphql/node_modules/prelude-ls/lib/Obj.js deleted file mode 100644 index 0b8d3216..00000000 --- a/graphql/node_modules/prelude-ls/lib/Obj.js +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by LiveScript 1.6.0 -var values, keys, pairsToObj, objToPairs, listsToObj, objToLists, empty, each, map, compact, filter, reject, partition, find; -values = function(object){ - var i$, x, results$ = []; - for (i$ in object) { - x = object[i$]; - results$.push(x); - } - return results$; -}; -keys = function(object){ - var x, results$ = []; - for (x in object) { - results$.push(x); - } - return results$; -}; -pairsToObj = function(object){ - var i$, len$, x, resultObj$ = {}; - for (i$ = 0, len$ = object.length; i$ < len$; ++i$) { - x = object[i$]; - resultObj$[x[0]] = x[1]; - } - return resultObj$; -}; -objToPairs = function(object){ - var key, value, results$ = []; - for (key in object) { - value = object[key]; - results$.push([key, value]); - } - return results$; -}; -listsToObj = curry$(function(keys, values){ - var i$, len$, i, key, resultObj$ = {}; - for (i$ = 0, len$ = keys.length; i$ < len$; ++i$) { - i = i$; - key = keys[i$]; - resultObj$[key] = values[i]; - } - return resultObj$; -}); -objToLists = function(object){ - var keys, values, key, value; - keys = []; - values = []; - for (key in object) { - value = object[key]; - keys.push(key); - values.push(value); - } - return [keys, values]; -}; -empty = function(object){ - var x; - for (x in object) { - return false; - } - return true; -}; -each = curry$(function(f, object){ - var i$, x; - for (i$ in object) { - x = object[i$]; - f(x); - } - return object; -}); -map = curry$(function(f, object){ - var k, x, resultObj$ = {}; - for (k in object) { - x = object[k]; - resultObj$[k] = f(x); - } - return resultObj$; -}); -compact = function(object){ - var k, x, resultObj$ = {}; - for (k in object) { - x = object[k]; - if (x) { - resultObj$[k] = x; - } - } - return resultObj$; -}; -filter = curry$(function(f, object){ - var k, x, resultObj$ = {}; - for (k in object) { - x = object[k]; - if (f(x)) { - resultObj$[k] = x; - } - } - return resultObj$; -}); -reject = curry$(function(f, object){ - var k, x, resultObj$ = {}; - for (k in object) { - x = object[k]; - if (!f(x)) { - resultObj$[k] = x; - } - } - return resultObj$; -}); -partition = curry$(function(f, object){ - var passed, failed, k, x; - passed = {}; - failed = {}; - for (k in object) { - x = object[k]; - (f(x) ? passed : failed)[k] = x; - } - return [passed, failed]; -}); -find = curry$(function(f, object){ - var i$, x; - for (i$ in object) { - x = object[i$]; - if (f(x)) { - return x; - } - } -}); -module.exports = { - values: values, - keys: keys, - pairsToObj: pairsToObj, - objToPairs: objToPairs, - listsToObj: listsToObj, - objToLists: objToLists, - empty: empty, - each: each, - map: map, - filter: filter, - compact: compact, - reject: reject, - partition: partition, - find: find -}; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/lib/Str.js b/graphql/node_modules/prelude-ls/lib/Str.js deleted file mode 100644 index 59406d60..00000000 --- a/graphql/node_modules/prelude-ls/lib/Str.js +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by LiveScript 1.6.0 -var split, join, lines, unlines, words, unwords, chars, unchars, reverse, repeat, capitalize, camelize, dasherize; -split = curry$(function(sep, str){ - return str.split(sep); -}); -join = curry$(function(sep, xs){ - return xs.join(sep); -}); -lines = function(str){ - if (!str.length) { - return []; - } - return str.split('\n'); -}; -unlines = function(it){ - return it.join('\n'); -}; -words = function(str){ - if (!str.length) { - return []; - } - return str.split(/[ ]+/); -}; -unwords = function(it){ - return it.join(' '); -}; -chars = function(it){ - return it.split(''); -}; -unchars = function(it){ - return it.join(''); -}; -reverse = function(str){ - return str.split('').reverse().join(''); -}; -repeat = curry$(function(n, str){ - var result, i$; - result = ''; - for (i$ = 0; i$ < n; ++i$) { - result += str; - } - return result; -}); -capitalize = function(str){ - return str.charAt(0).toUpperCase() + str.slice(1); -}; -camelize = function(it){ - return it.replace(/[-_]+(.)?/g, function(arg$, c){ - return (c != null ? c : '').toUpperCase(); - }); -}; -dasherize = function(str){ - return str.replace(/([^-A-Z])([A-Z]+)/g, function(arg$, lower, upper){ - return lower + "-" + (upper.length > 1 - ? upper - : upper.toLowerCase()); - }).replace(/^([A-Z]+)/, function(arg$, upper){ - if (upper.length > 1) { - return upper + "-"; - } else { - return upper.toLowerCase(); - } - }); -}; -module.exports = { - split: split, - join: join, - lines: lines, - unlines: unlines, - words: words, - unwords: unwords, - chars: chars, - unchars: unchars, - reverse: reverse, - repeat: repeat, - capitalize: capitalize, - camelize: camelize, - dasherize: dasherize -}; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/lib/index.js b/graphql/node_modules/prelude-ls/lib/index.js deleted file mode 100644 index 9dcbed46..00000000 --- a/graphql/node_modules/prelude-ls/lib/index.js +++ /dev/null @@ -1,178 +0,0 @@ -// Generated by LiveScript 1.6.0 -var Func, List, Obj, Str, Num, id, isType, replicate, prelude, toString$ = {}.toString; -Func = require('./Func.js'); -List = require('./List.js'); -Obj = require('./Obj.js'); -Str = require('./Str.js'); -Num = require('./Num.js'); -id = function(x){ - return x; -}; -isType = curry$(function(type, x){ - return toString$.call(x).slice(8, -1) === type; -}); -replicate = curry$(function(n, x){ - var i$, results$ = []; - for (i$ = 0; i$ < n; ++i$) { - results$.push(x); - } - return results$; -}); -Str.empty = List.empty; -Str.slice = List.slice; -Str.take = List.take; -Str.drop = List.drop; -Str.splitAt = List.splitAt; -Str.takeWhile = List.takeWhile; -Str.dropWhile = List.dropWhile; -Str.span = List.span; -Str.breakStr = List.breakList; -prelude = { - Func: Func, - List: List, - Obj: Obj, - Str: Str, - Num: Num, - id: id, - isType: isType, - replicate: replicate -}; -prelude.each = List.each; -prelude.map = List.map; -prelude.filter = List.filter; -prelude.compact = List.compact; -prelude.reject = List.reject; -prelude.partition = List.partition; -prelude.find = List.find; -prelude.head = List.head; -prelude.first = List.first; -prelude.tail = List.tail; -prelude.last = List.last; -prelude.initial = List.initial; -prelude.empty = List.empty; -prelude.reverse = List.reverse; -prelude.difference = List.difference; -prelude.intersection = List.intersection; -prelude.union = List.union; -prelude.countBy = List.countBy; -prelude.groupBy = List.groupBy; -prelude.fold = List.fold; -prelude.foldl = List.foldl; -prelude.fold1 = List.fold1; -prelude.foldl1 = List.foldl1; -prelude.foldr = List.foldr; -prelude.foldr1 = List.foldr1; -prelude.unfoldr = List.unfoldr; -prelude.andList = List.andList; -prelude.orList = List.orList; -prelude.any = List.any; -prelude.all = List.all; -prelude.unique = List.unique; -prelude.uniqueBy = List.uniqueBy; -prelude.sort = List.sort; -prelude.sortWith = List.sortWith; -prelude.sortBy = List.sortBy; -prelude.sum = List.sum; -prelude.product = List.product; -prelude.mean = List.mean; -prelude.average = List.average; -prelude.concat = List.concat; -prelude.concatMap = List.concatMap; -prelude.flatten = List.flatten; -prelude.maximum = List.maximum; -prelude.minimum = List.minimum; -prelude.maximumBy = List.maximumBy; -prelude.minimumBy = List.minimumBy; -prelude.scan = List.scan; -prelude.scanl = List.scanl; -prelude.scan1 = List.scan1; -prelude.scanl1 = List.scanl1; -prelude.scanr = List.scanr; -prelude.scanr1 = List.scanr1; -prelude.slice = List.slice; -prelude.take = List.take; -prelude.drop = List.drop; -prelude.splitAt = List.splitAt; -prelude.takeWhile = List.takeWhile; -prelude.dropWhile = List.dropWhile; -prelude.span = List.span; -prelude.breakList = List.breakList; -prelude.zip = List.zip; -prelude.zipWith = List.zipWith; -prelude.zipAll = List.zipAll; -prelude.zipAllWith = List.zipAllWith; -prelude.at = List.at; -prelude.elemIndex = List.elemIndex; -prelude.elemIndices = List.elemIndices; -prelude.findIndex = List.findIndex; -prelude.findIndices = List.findIndices; -prelude.apply = Func.apply; -prelude.curry = Func.curry; -prelude.flip = Func.flip; -prelude.fix = Func.fix; -prelude.over = Func.over; -prelude.split = Str.split; -prelude.join = Str.join; -prelude.lines = Str.lines; -prelude.unlines = Str.unlines; -prelude.words = Str.words; -prelude.unwords = Str.unwords; -prelude.chars = Str.chars; -prelude.unchars = Str.unchars; -prelude.repeat = Str.repeat; -prelude.capitalize = Str.capitalize; -prelude.camelize = Str.camelize; -prelude.dasherize = Str.dasherize; -prelude.values = Obj.values; -prelude.keys = Obj.keys; -prelude.pairsToObj = Obj.pairsToObj; -prelude.objToPairs = Obj.objToPairs; -prelude.listsToObj = Obj.listsToObj; -prelude.objToLists = Obj.objToLists; -prelude.max = Num.max; -prelude.min = Num.min; -prelude.negate = Num.negate; -prelude.abs = Num.abs; -prelude.signum = Num.signum; -prelude.quot = Num.quot; -prelude.rem = Num.rem; -prelude.div = Num.div; -prelude.mod = Num.mod; -prelude.recip = Num.recip; -prelude.pi = Num.pi; -prelude.tau = Num.tau; -prelude.exp = Num.exp; -prelude.sqrt = Num.sqrt; -prelude.ln = Num.ln; -prelude.pow = Num.pow; -prelude.sin = Num.sin; -prelude.tan = Num.tan; -prelude.cos = Num.cos; -prelude.acos = Num.acos; -prelude.asin = Num.asin; -prelude.atan = Num.atan; -prelude.atan2 = Num.atan2; -prelude.truncate = Num.truncate; -prelude.round = Num.round; -prelude.ceiling = Num.ceiling; -prelude.floor = Num.floor; -prelude.isItNaN = Num.isItNaN; -prelude.even = Num.even; -prelude.odd = Num.odd; -prelude.gcd = Num.gcd; -prelude.lcm = Num.lcm; -prelude.VERSION = '1.2.1'; -module.exports = prelude; -function curry$(f, bound){ - var context, - _curry = function(args) { - return f.length > 1 ? function(){ - var params = args ? args.concat() : []; - context = bound ? context || this : this; - return params.push.apply(params, arguments) < - f.length && arguments.length ? - _curry.call(context, params) : f.apply(context, params); - } : f; - }; - return _curry(); -} \ No newline at end of file diff --git a/graphql/node_modules/prelude-ls/package.json b/graphql/node_modules/prelude-ls/package.json deleted file mode 100644 index c313c3da..00000000 --- a/graphql/node_modules/prelude-ls/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "prelude-ls", - "version": "1.2.1", - "author": "George Zahariev ", - "description": "prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.", - "keywords": [ - "prelude", - "livescript", - "utility", - "ls", - "coffeescript", - "javascript", - "library", - "functional", - "array", - "list", - "object", - "string" - ], - "main": "lib/", - "files": [ - "lib/", - "README.md", - "LICENSE" - ], - "homepage": "http://preludels.com", - "bugs": "https://github.com/gkz/prelude-ls/issues", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/gkz/prelude-ls.git" - }, - "scripts": { - "test": "make test" - }, - "devDependencies": { - "livescript": "^1.6.0", - "uglify-js": "^3.8.1", - "mocha": "^7.1.1", - "browserify": "^16.5.1", - "sinon": "~8.0.1" - } -} diff --git a/graphql/node_modules/punycode/LICENSE-MIT.txt b/graphql/node_modules/punycode/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/graphql/node_modules/punycode/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/punycode/README.md b/graphql/node_modules/punycode/README.md deleted file mode 100644 index f611016b..00000000 --- a/graphql/node_modules/punycode/README.md +++ /dev/null @@ -1,148 +0,0 @@ -# Punycode.js [![punycode on npm](https://img.shields.io/npm/v/punycode)](https://www.npmjs.com/package/punycode) [![](https://data.jsdelivr.com/v1/package/npm/punycode/badge)](https://www.jsdelivr.com/package/npm/punycode) - -Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891). - -This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm: - -* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C) -* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c) -* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c) -* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287) -* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072)) - -This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated). - -This project provides a CommonJS module that uses ES2015+ features and JavaScript module, which work in modern Node.js versions and browsers. For the old Punycode.js version that offers the same functionality in a UMD build with support for older pre-ES2015 runtimes, including Rhino, Ringo, and Narwhal, see [v1.4.1](https://github.com/mathiasbynens/punycode.js/releases/tag/v1.4.1). - -## Installation - -Via [npm](https://www.npmjs.com/): - -```bash -npm install punycode --save -``` - -In [Node.js](https://nodejs.org/): - -> ⚠️ Note that userland modules don't hide core modules. -> For example, `require('punycode')` still imports the deprecated core module even if you executed `npm install punycode`. -> Use `require('punycode/')` to import userland modules rather than core modules. - -```js -const punycode = require('punycode/'); -``` - -## API - -### `punycode.decode(string)` - -Converts a Punycode string of ASCII symbols to a string of Unicode symbols. - -```js -// decode domain name parts -punycode.decode('maana-pta'); // 'mañana' -punycode.decode('--dqo34k'); // '☃-⌘' -``` - -### `punycode.encode(string)` - -Converts a string of Unicode symbols to a Punycode string of ASCII symbols. - -```js -// encode domain name parts -punycode.encode('mañana'); // 'maana-pta' -punycode.encode('☃-⌘'); // '--dqo34k' -``` - -### `punycode.toUnicode(input)` - -Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode. - -```js -// decode domain names -punycode.toUnicode('xn--maana-pta.com'); -// → 'mañana.com' -punycode.toUnicode('xn----dqo34k.com'); -// → '☃-⌘.com' - -// decode email addresses -punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'); -// → 'джумла@джpумлатест.bрфa' -``` - -### `punycode.toASCII(input)` - -Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII. - -```js -// encode domain names -punycode.toASCII('mañana.com'); -// → 'xn--maana-pta.com' -punycode.toASCII('☃-⌘.com'); -// → 'xn----dqo34k.com' - -// encode email addresses -punycode.toASCII('джумла@джpумлатест.bрфa'); -// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq' -``` - -### `punycode.ucs2` - -#### `punycode.ucs2.decode(string)` - -Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16. - -```js -punycode.ucs2.decode('abc'); -// → [0x61, 0x62, 0x63] -// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE: -punycode.ucs2.decode('\uD834\uDF06'); -// → [0x1D306] -``` - -#### `punycode.ucs2.encode(codePoints)` - -Creates a string based on an array of numeric code point values. - -```js -punycode.ucs2.encode([0x61, 0x62, 0x63]); -// → 'abc' -punycode.ucs2.encode([0x1D306]); -// → '\uD834\uDF06' -``` - -### `punycode.version` - -A string representing the current Punycode.js version number. - -## For maintainers - -### How to publish a new release - -1. On the `main` branch, bump the version number in `package.json`: - - ```sh - npm version patch -m 'Release v%s' - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - - Note that this produces a Git commit + tag. - -1. Push the release commit and tag: - - ```sh - git push && git push --tags - ``` - - Our CI then automatically publishes the new release to npm, under both the [`punycode`](https://www.npmjs.com/package/punycode) and [`punycode.js`](https://www.npmjs.com/package/punycode.js) names. - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -Punycode.js is available under the [MIT](https://mths.be/mit) license. diff --git a/graphql/node_modules/punycode/package.json b/graphql/node_modules/punycode/package.json deleted file mode 100644 index b8b76fc7..00000000 --- a/graphql/node_modules/punycode/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "punycode", - "version": "2.3.1", - "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.", - "homepage": "https://mths.be/punycode", - "main": "punycode.js", - "jsnext:main": "punycode.es6.js", - "module": "punycode.es6.js", - "engines": { - "node": ">=6" - }, - "keywords": [ - "punycode", - "unicode", - "idn", - "idna", - "dns", - "url", - "domain" - ], - "license": "MIT", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "contributors": [ - { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - } - ], - "repository": { - "type": "git", - "url": "https://github.com/mathiasbynens/punycode.js.git" - }, - "bugs": "https://github.com/mathiasbynens/punycode.js/issues", - "files": [ - "LICENSE-MIT.txt", - "punycode.js", - "punycode.es6.js" - ], - "scripts": { - "test": "mocha tests", - "build": "node scripts/prepublish.js" - }, - "devDependencies": { - "codecov": "^3.8.3", - "nyc": "^15.1.0", - "mocha": "^10.2.0" - }, - "jspm": { - "map": { - "./punycode.js": { - "node": "@node/punycode" - } - } - } -} diff --git a/graphql/node_modules/punycode/punycode.es6.js b/graphql/node_modules/punycode/punycode.es6.js deleted file mode 100644 index dadece25..00000000 --- a/graphql/node_modules/punycode/punycode.es6.js +++ /dev/null @@ -1,444 +0,0 @@ -'use strict'; - -/** Highest positive signed 32-bit float value */ -const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 - -/** Bootstring parameters */ -const base = 36; -const tMin = 1; -const tMax = 26; -const skew = 38; -const damp = 700; -const initialBias = 72; -const initialN = 128; // 0x80 -const delimiter = '-'; // '\x2D' - -/** Regular expressions */ -const regexPunycode = /^xn--/; -const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. -const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators - -/** Error messages */ -const errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' -}; - -/** Convenience shortcuts */ -const baseMinusTMin = base - tMin; -const floor = Math.floor; -const stringFromCharCode = String.fromCharCode; - -/*--------------------------------------------------------------------------*/ - -/** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ -function error(type) { - throw new RangeError(errors[type]); -} - -/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ -function map(array, callback) { - const result = []; - let length = array.length; - while (length--) { - result[length] = callback(array[length]); - } - return result; -} - -/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {String} A new string of characters returned by the callback - * function. - */ -function mapDomain(domain, callback) { - const parts = domain.split('@'); - let result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - domain = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - domain = domain.replace(regexSeparators, '\x2E'); - const labels = domain.split('.'); - const encoded = map(labels, callback).join('.'); - return result + encoded; -} - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ -function ucs2decode(string) { - const output = []; - let counter = 0; - const length = string.length; - while (counter < length) { - const value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - const extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -} - -/** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ -const ucs2encode = codePoints => String.fromCodePoint(...codePoints); - -/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ -const basicToDigit = function(codePoint) { - if (codePoint >= 0x30 && codePoint < 0x3A) { - return 26 + (codePoint - 0x30); - } - if (codePoint >= 0x41 && codePoint < 0x5B) { - return codePoint - 0x41; - } - if (codePoint >= 0x61 && codePoint < 0x7B) { - return codePoint - 0x61; - } - return base; -}; - -/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ -const digitToBasic = function(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ -const adapt = function(delta, numPoints, firstTime) { - let k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ -const decode = function(input) { - // Don't use UCS-2. - const output = []; - const inputLength = input.length; - let i = 0; - let n = initialN; - let bias = initialBias; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - let basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (let j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - const oldi = i; - for (let w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - const digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base) { - error('invalid-input'); - } - if (digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - const baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - const out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output. - output.splice(i++, 0, n); - - } - - return String.fromCodePoint(...output); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ -const encode = function(input) { - const output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - const inputLength = input.length; - - // Initialize the state. - let n = initialN; - let delta = 0; - let bias = initialBias; - - // Handle the basic code points. - for (const currentValue of input) { - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - const basicLength = output.length; - let handledCPCount = basicLength; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - let m = maxInt; - for (const currentValue of input) { - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow. - const handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (const currentValue of input) { - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - if (currentValue === n) { - // Represent delta as a generalized variable-length integer. - let q = delta; - for (let k = base; /* no condition */; k += base) { - const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - const qMinusT = q - t; - const baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); -}; - -/** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ -const toUnicode = function(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); -}; - -/** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ -const toASCII = function(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); -}; - -/*--------------------------------------------------------------------------*/ - -/** Define the public API */ -const punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '2.3.1', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode -}; - -export { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode }; -export default punycode; diff --git a/graphql/node_modules/punycode/punycode.js b/graphql/node_modules/punycode/punycode.js deleted file mode 100644 index a1ef2519..00000000 --- a/graphql/node_modules/punycode/punycode.js +++ /dev/null @@ -1,443 +0,0 @@ -'use strict'; - -/** Highest positive signed 32-bit float value */ -const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 - -/** Bootstring parameters */ -const base = 36; -const tMin = 1; -const tMax = 26; -const skew = 38; -const damp = 700; -const initialBias = 72; -const initialN = 128; // 0x80 -const delimiter = '-'; // '\x2D' - -/** Regular expressions */ -const regexPunycode = /^xn--/; -const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too. -const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators - -/** Error messages */ -const errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' -}; - -/** Convenience shortcuts */ -const baseMinusTMin = base - tMin; -const floor = Math.floor; -const stringFromCharCode = String.fromCharCode; - -/*--------------------------------------------------------------------------*/ - -/** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ -function error(type) { - throw new RangeError(errors[type]); -} - -/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ -function map(array, callback) { - const result = []; - let length = array.length; - while (length--) { - result[length] = callback(array[length]); - } - return result; -} - -/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {String} A new string of characters returned by the callback - * function. - */ -function mapDomain(domain, callback) { - const parts = domain.split('@'); - let result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - domain = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - domain = domain.replace(regexSeparators, '\x2E'); - const labels = domain.split('.'); - const encoded = map(labels, callback).join('.'); - return result + encoded; -} - -/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ -function ucs2decode(string) { - const output = []; - let counter = 0; - const length = string.length; - while (counter < length) { - const value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // It's a high surrogate, and there is a next character. - const extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // It's an unmatched surrogate; only append this code unit, in case the - // next code unit is the high surrogate of a surrogate pair. - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; -} - -/** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ -const ucs2encode = codePoints => String.fromCodePoint(...codePoints); - -/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ -const basicToDigit = function(codePoint) { - if (codePoint >= 0x30 && codePoint < 0x3A) { - return 26 + (codePoint - 0x30); - } - if (codePoint >= 0x41 && codePoint < 0x5B) { - return codePoint - 0x41; - } - if (codePoint >= 0x61 && codePoint < 0x7B) { - return codePoint - 0x61; - } - return base; -}; - -/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ -const digitToBasic = function(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); -}; - -/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ -const adapt = function(delta, numPoints, firstTime) { - let k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); -}; - -/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ -const decode = function(input) { - // Don't use UCS-2. - const output = []; - const inputLength = input.length; - let i = 0; - let n = initialN; - let bias = initialBias; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - let basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (let j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - const oldi = i; - for (let w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - const digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base) { - error('invalid-input'); - } - if (digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - const baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - const out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output. - output.splice(i++, 0, n); - - } - - return String.fromCodePoint(...output); -}; - -/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ -const encode = function(input) { - const output = []; - - // Convert the input in UCS-2 to an array of Unicode code points. - input = ucs2decode(input); - - // Cache the length. - const inputLength = input.length; - - // Initialize the state. - let n = initialN; - let delta = 0; - let bias = initialBias; - - // Handle the basic code points. - for (const currentValue of input) { - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - const basicLength = output.length; - let handledCPCount = basicLength; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string with a delimiter unless it's empty. - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - let m = maxInt; - for (const currentValue of input) { - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow. - const handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (const currentValue of input) { - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - if (currentValue === n) { - // Represent delta as a generalized variable-length integer. - let q = delta; - for (let k = base; /* no condition */; k += base) { - const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - const qMinusT = q - t; - const baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); -}; - -/** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ -const toUnicode = function(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); -}; - -/** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ -const toASCII = function(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); -}; - -/*--------------------------------------------------------------------------*/ - -/** Define the public API */ -const punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '2.3.1', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode -}; - -module.exports = punycode; diff --git a/graphql/node_modules/queue-microtask/LICENSE b/graphql/node_modules/queue-microtask/LICENSE deleted file mode 100755 index c7e68527..00000000 --- a/graphql/node_modules/queue-microtask/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Feross Aboukhadijeh - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/queue-microtask/README.md b/graphql/node_modules/queue-microtask/README.md deleted file mode 100644 index 0be05a64..00000000 --- a/graphql/node_modules/queue-microtask/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# queue-microtask [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] - -[ci-image]: https://img.shields.io/github/workflow/status/feross/queue-microtask/ci/master -[ci-url]: https://github.com/feross/queue-microtask/actions -[npm-image]: https://img.shields.io/npm/v/queue-microtask.svg -[npm-url]: https://npmjs.org/package/queue-microtask -[downloads-image]: https://img.shields.io/npm/dm/queue-microtask.svg -[downloads-url]: https://npmjs.org/package/queue-microtask -[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg -[standard-url]: https://standardjs.com - -### fast, tiny [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask) shim for modern engines - -- Use [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask) in all modern JS engines. -- No dependencies. Less than 10 lines. No shims or complicated fallbacks. -- Optimal performance in all modern environments - - Uses `queueMicrotask` in modern environments - - Fallback to `Promise.resolve().then(fn)` in Node.js 10 and earlier, and old browsers (same performance as `queueMicrotask`) - -## install - -``` -npm install queue-microtask -``` - -## usage - -```js -const queueMicrotask = require('queue-microtask') - -queueMicrotask(() => { /* this will run soon */ }) -``` - -## What is `queueMicrotask` and why would one use it? - -The `queueMicrotask` function is a WHATWG standard. It queues a microtask to be executed prior to control returning to the event loop. - -A microtask is a short function which will run after the current task has completed its work and when there is no other code waiting to be run before control of the execution context is returned to the event loop. - -The code `queueMicrotask(fn)` is equivalent to the code `Promise.resolve().then(fn)`. It is also very similar to [`process.nextTick(fn)`](https://nodejs.org/api/process.html#process_process_nexttick_callback_args) in Node. - -Using microtasks lets code run without interfering with any other, potentially higher priority, code that is pending, but before the JS engine regains control over the execution context. - -See the [spec](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing) or [Node documentation](https://nodejs.org/api/globals.html#globals_queuemicrotask_callback) for more information. - -## Who is this package for? - -This package allows you to use `queueMicrotask` safely in all modern JS engines. Use it if you prioritize small JS bundle size over support for old browsers. - -If you just need to support Node 12 and later, use `queueMicrotask` directly. If you need to support all versions of Node, use this package. - -## Why not use `process.nextTick`? - -In Node, `queueMicrotask` and `process.nextTick` are [essentially equivalent](https://nodejs.org/api/globals.html#globals_queuemicrotask_callback), though there are [subtle differences](https://github.com/YuzuJS/setImmediate#macrotasks-and-microtasks) that don't matter in most situations. - -You can think of `queueMicrotask` as a standardized version of `process.nextTick` that works in the browser. No need to rely on your browser bundler to shim `process` for the browser environment. - -## Why not use `setTimeout(fn, 0)`? - -This approach is the most compatible, but it has problems. Modern browsers throttle timers severely, so `setTimeout(…, 0)` usually takes at least 4ms to run. Furthermore, the throttling gets even worse if the page is backgrounded. If you have many `setTimeout` calls, then this can severely limit the performance of your program. - -## Why not use a microtask library like [`immediate`](https://www.npmjs.com/package/immediate) or [`asap`](https://www.npmjs.com/package/asap)? - -These packages are great! However, if you prioritize small JS bundle size over optimal performance in old browsers then you may want to consider this package. - -This package (`queue-microtask`) is four times smaller than `immediate`, twice as small as `asap`, and twice as small as using `process.nextTick` and letting the browser bundler shim it automatically. - -Note: This package throws an exception in JS environments which lack `Promise` support -- which are usually very old browsers and Node.js versions. - -Since the `queueMicrotask` API is supported in Node.js, Chrome, Firefox, Safari, Opera, and Edge, **the vast majority of users will get optimal performance**. Any JS environment with `Promise`, which is almost all of them, also get optimal performance. If you need support for JS environments which lack `Promise` support, use one of the alternative packages. - -## What is a shim? - -> In computer programming, a shim is a library that transparently intercepts API calls and changes the arguments passed, handles the operation itself or redirects the operation elsewhere. – [Wikipedia](https://en.wikipedia.org/wiki/Shim_(computing)) - -This package could also be described as a "ponyfill". - -> A ponyfill is almost the same as a polyfill, but not quite. Instead of patching functionality for older browsers, a ponyfill provides that functionality as a standalone module you can use. – [PonyFoo](https://ponyfoo.com/articles/polyfills-or-ponyfills) - -## API - -### `queueMicrotask(fn)` - -The `queueMicrotask()` method queues a microtask. - -The `fn` argument is a function to be executed after all pending tasks have completed but before yielding control to the browser's event loop. - -## license - -MIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org). diff --git a/graphql/node_modules/queue-microtask/index.d.ts b/graphql/node_modules/queue-microtask/index.d.ts deleted file mode 100644 index b6a86463..00000000 --- a/graphql/node_modules/queue-microtask/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const queueMicrotask: (cb: () => void) => void -export = queueMicrotask diff --git a/graphql/node_modules/queue-microtask/index.js b/graphql/node_modules/queue-microtask/index.js deleted file mode 100644 index 55605343..00000000 --- a/graphql/node_modules/queue-microtask/index.js +++ /dev/null @@ -1,9 +0,0 @@ -/*! queue-microtask. MIT License. Feross Aboukhadijeh */ -let promise - -module.exports = typeof queueMicrotask === 'function' - ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global) - // reuse resolved promise, and allocate it lazily - : cb => (promise || (promise = Promise.resolve())) - .then(cb) - .catch(err => setTimeout(() => { throw err }, 0)) diff --git a/graphql/node_modules/queue-microtask/package.json b/graphql/node_modules/queue-microtask/package.json deleted file mode 100644 index d29a401f..00000000 --- a/graphql/node_modules/queue-microtask/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "queue-microtask", - "description": "fast, tiny `queueMicrotask` shim for modern engines", - "version": "1.2.3", - "author": { - "name": "Feross Aboukhadijeh", - "email": "feross@feross.org", - "url": "https://feross.org" - }, - "bugs": { - "url": "https://github.com/feross/queue-microtask/issues" - }, - "devDependencies": { - "standard": "*", - "tape": "^5.2.2" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "homepage": "https://github.com/feross/queue-microtask", - "keywords": [ - "asap", - "immediate", - "micro task", - "microtask", - "nextTick", - "process.nextTick", - "queue micro task", - "queue microtask", - "queue-microtask", - "queueMicrotask", - "setImmediate", - "task" - ], - "license": "MIT", - "main": "index.js", - "repository": { - "type": "git", - "url": "git://github.com/feross/queue-microtask.git" - }, - "scripts": { - "test": "standard && tape test/*.js" - } -} diff --git a/graphql/node_modules/resolve-from/index.js b/graphql/node_modules/resolve-from/index.js deleted file mode 100644 index d092447e..00000000 --- a/graphql/node_modules/resolve-from/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; -const path = require('path'); -const Module = require('module'); -const fs = require('fs'); - -const resolveFrom = (fromDir, moduleId, silent) => { - if (typeof fromDir !== 'string') { - throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``); - } - - if (typeof moduleId !== 'string') { - throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``); - } - - try { - fromDir = fs.realpathSync(fromDir); - } catch (err) { - if (err.code === 'ENOENT') { - fromDir = path.resolve(fromDir); - } else if (silent) { - return null; - } else { - throw err; - } - } - - const fromFile = path.join(fromDir, 'noop.js'); - - const resolveFileName = () => Module._resolveFilename(moduleId, { - id: fromFile, - filename: fromFile, - paths: Module._nodeModulePaths(fromDir) - }); - - if (silent) { - try { - return resolveFileName(); - } catch (err) { - return null; - } - } - - return resolveFileName(); -}; - -module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId); -module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true); diff --git a/graphql/node_modules/resolve-from/license b/graphql/node_modules/resolve-from/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/resolve-from/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/resolve-from/package.json b/graphql/node_modules/resolve-from/package.json deleted file mode 100644 index 96bade58..00000000 --- a/graphql/node_modules/resolve-from/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "resolve-from", - "version": "4.0.0", - "description": "Resolve the path of a module like `require.resolve()` but from a given path", - "license": "MIT", - "repository": "sindresorhus/resolve-from", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "require", - "resolve", - "path", - "module", - "from", - "like", - "import" - ], - "devDependencies": { - "ava": "*", - "xo": "*" - } -} diff --git a/graphql/node_modules/resolve-from/readme.md b/graphql/node_modules/resolve-from/readme.md deleted file mode 100644 index e539f858..00000000 --- a/graphql/node_modules/resolve-from/readme.md +++ /dev/null @@ -1,72 +0,0 @@ -# resolve-from [![Build Status](https://travis-ci.org/sindresorhus/resolve-from.svg?branch=master)](https://travis-ci.org/sindresorhus/resolve-from) - -> Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path - - -## Install - -``` -$ npm install resolve-from -``` - - -## Usage - -```js -const resolveFrom = require('resolve-from'); - -// There is a file at `./foo/bar.js` - -resolveFrom('foo', './bar'); -//=> '/Users/sindresorhus/dev/test/foo/bar.js' -``` - - -## API - -### resolveFrom(fromDir, moduleId) - -Like `require()`, throws when the module can't be found. - -### resolveFrom.silent(fromDir, moduleId) - -Returns `null` instead of throwing when the module can't be found. - -#### fromDir - -Type: `string` - -Directory to resolve from. - -#### moduleId - -Type: `string` - -What you would use in `require()`. - - -## Tip - -Create a partial using a bound function if you want to resolve from the same `fromDir` multiple times: - -```js -const resolveFromFoo = resolveFrom.bind(null, 'foo'); - -resolveFromFoo('./bar'); -resolveFromFoo('./baz'); -``` - - -## Related - -- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory -- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path -- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory -- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point -- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily -- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/reusify/.coveralls.yml b/graphql/node_modules/reusify/.coveralls.yml deleted file mode 100644 index 359f6834..00000000 --- a/graphql/node_modules/reusify/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -repo_token: yIxhFqtaaz5iGVYfie9mODehFYogm8S8L diff --git a/graphql/node_modules/reusify/.travis.yml b/graphql/node_modules/reusify/.travis.yml deleted file mode 100644 index 19704768..00000000 --- a/graphql/node_modules/reusify/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: node_js -sudo: false - -node_js: - - 9 - - 8 - - 7 - - 6 - - 5 - - 4 - - 4.0 - - iojs-v3 - - iojs-v2 - - iojs-v1 - - 0.12 - - 0.10 - -cache: - directories: - - node_modules - -after_script: -- npm run coverage - -notifications: - email: - on_success: never - on_failure: always diff --git a/graphql/node_modules/reusify/LICENSE b/graphql/node_modules/reusify/LICENSE deleted file mode 100644 index fbf3a01d..00000000 --- a/graphql/node_modules/reusify/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Matteo Collina - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/graphql/node_modules/reusify/README.md b/graphql/node_modules/reusify/README.md deleted file mode 100644 index badcb7cc..00000000 --- a/graphql/node_modules/reusify/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# reusify - -[![npm version][npm-badge]][npm-url] -[![Build Status][travis-badge]][travis-url] -[![Coverage Status][coveralls-badge]][coveralls-url] - -Reuse your objects and functions for maximum speed. This technique will -make any function run ~10% faster. You call your functions a -lot, and it adds up quickly in hot code paths. - -``` -$ node benchmarks/createNoCodeFunction.js -Total time 53133 -Total iterations 100000000 -Iteration/s 1882069.5236482036 - -$ node benchmarks/reuseNoCodeFunction.js -Total time 50617 -Total iterations 100000000 -Iteration/s 1975620.838848608 -``` - -The above benchmark uses fibonacci to simulate a real high-cpu load. -The actual numbers might differ for your use case, but the difference -should not. - -The benchmark was taken using Node v6.10.0. - -This library was extracted from -[fastparallel](http://npm.im/fastparallel). - -## Example - -```js -var reusify = require('reusify') -var fib = require('reusify/benchmarks/fib') -var instance = reusify(MyObject) - -// get an object from the cache, -// or creates a new one when cache is empty -var obj = instance.get() - -// set the state -obj.num = 100 -obj.func() - -// reset the state. -// if the state contains any external object -// do not use delete operator (it is slow) -// prefer set them to null -obj.num = 0 - -// store an object in the cache -instance.release(obj) - -function MyObject () { - // you need to define this property - // so V8 can compile MyObject into an - // hidden class - this.next = null - this.num = 0 - - var that = this - - // this function is never reallocated, - // so it can be optimized by V8 - this.func = function () { - if (null) { - // do nothing - } else { - // calculates fibonacci - fib(that.num) - } - } -} -``` - -The above example was intended for synchronous code, let's see async: -```js -var reusify = require('reusify') -var instance = reusify(MyObject) - -for (var i = 0; i < 100; i++) { - getData(i, console.log) -} - -function getData (value, cb) { - var obj = instance.get() - - obj.value = value - obj.cb = cb - obj.run() -} - -function MyObject () { - this.next = null - this.value = null - - var that = this - - this.run = function () { - asyncOperation(that.value, that.handle) - } - - this.handle = function (err, result) { - that.cb(err, result) - that.value = null - that.cb = null - instance.release(that) - } -} -``` - -Also note how in the above examples, the code, that consumes an istance of `MyObject`, -reset the state to initial condition, just before storing it in the cache. -That's needed so that every subsequent request for an instance from the cache, -could get a clean instance. - -## Why - -It is faster because V8 doesn't have to collect all the functions you -create. On a short-lived benchmark, it is as fast as creating the -nested function, but on a longer time frame it creates less -pressure on the garbage collector. - -## Other examples -If you want to see some complex example, checkout [middie](https://github.com/fastify/middie) and [steed](https://github.com/mcollina/steed). - -## Acknowledgements - -Thanks to [Trevor Norris](https://github.com/trevnorris) for -getting me down the rabbit hole of performance, and thanks to [Mathias -Buss](http://github.com/mafintosh) for suggesting me to share this -trick. - -## License - -MIT - -[npm-badge]: https://badge.fury.io/js/reusify.svg -[npm-url]: https://badge.fury.io/js/reusify -[travis-badge]: https://api.travis-ci.org/mcollina/reusify.svg -[travis-url]: https://travis-ci.org/mcollina/reusify -[coveralls-badge]: https://coveralls.io/repos/mcollina/reusify/badge.svg?branch=master&service=github -[coveralls-url]: https://coveralls.io/github/mcollina/reusify?branch=master diff --git a/graphql/node_modules/reusify/benchmarks/createNoCodeFunction.js b/graphql/node_modules/reusify/benchmarks/createNoCodeFunction.js deleted file mode 100644 index ce1aac7b..00000000 --- a/graphql/node_modules/reusify/benchmarks/createNoCodeFunction.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict' - -var fib = require('./fib') -var max = 100000000 -var start = Date.now() - -// create a funcion with the typical error -// pattern, that delegates the heavy load -// to something else -function createNoCodeFunction () { - /* eslint no-constant-condition: "off" */ - var num = 100 - - ;(function () { - if (null) { - // do nothing - } else { - fib(num) - } - })() -} - -for (var i = 0; i < max; i++) { - createNoCodeFunction() -} - -var time = Date.now() - start -console.log('Total time', time) -console.log('Total iterations', max) -console.log('Iteration/s', max / time * 1000) diff --git a/graphql/node_modules/reusify/benchmarks/fib.js b/graphql/node_modules/reusify/benchmarks/fib.js deleted file mode 100644 index e22cc48d..00000000 --- a/graphql/node_modules/reusify/benchmarks/fib.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict' - -function fib (num) { - var fib = [] - - fib[0] = 0 - fib[1] = 1 - for (var i = 2; i <= num; i++) { - fib[i] = fib[i - 2] + fib[i - 1] - } -} - -module.exports = fib diff --git a/graphql/node_modules/reusify/benchmarks/reuseNoCodeFunction.js b/graphql/node_modules/reusify/benchmarks/reuseNoCodeFunction.js deleted file mode 100644 index 3358d6e5..00000000 --- a/graphql/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict' - -var reusify = require('../') -var fib = require('./fib') -var instance = reusify(MyObject) -var max = 100000000 -var start = Date.now() - -function reuseNoCodeFunction () { - var obj = instance.get() - obj.num = 100 - obj.func() - obj.num = 0 - instance.release(obj) -} - -function MyObject () { - this.next = null - var that = this - this.num = 0 - this.func = function () { - /* eslint no-constant-condition: "off" */ - if (null) { - // do nothing - } else { - fib(that.num) - } - } -} - -for (var i = 0; i < max; i++) { - reuseNoCodeFunction() -} - -var time = Date.now() - start -console.log('Total time', time) -console.log('Total iterations', max) -console.log('Iteration/s', max / time * 1000) diff --git a/graphql/node_modules/reusify/package.json b/graphql/node_modules/reusify/package.json deleted file mode 100644 index ee66aeec..00000000 --- a/graphql/node_modules/reusify/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "reusify", - "version": "1.0.4", - "description": "Reuse objects and functions with style", - "main": "reusify.js", - "scripts": { - "lint": "standard", - "test": "tape test.js | faucet", - "istanbul": "istanbul cover tape test.js", - "coverage": "npm run istanbul; cat coverage/lcov.info | coveralls" - }, - "pre-commit": [ - "lint", - "test" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/mcollina/reusify.git" - }, - "keywords": [ - "reuse", - "object", - "performance", - "function", - "fast" - ], - "author": "Matteo Collina ", - "license": "MIT", - "bugs": { - "url": "https://github.com/mcollina/reusify/issues" - }, - "homepage": "https://github.com/mcollina/reusify#readme", - "engines": { - "node": ">=0.10.0", - "iojs": ">=1.0.0" - }, - "devDependencies": { - "coveralls": "^2.13.3", - "faucet": "0.0.1", - "istanbul": "^0.4.5", - "pre-commit": "^1.2.2", - "standard": "^10.0.3", - "tape": "^4.8.0" - } -} diff --git a/graphql/node_modules/reusify/reusify.js b/graphql/node_modules/reusify/reusify.js deleted file mode 100644 index e6f36f3a..00000000 --- a/graphql/node_modules/reusify/reusify.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -function reusify (Constructor) { - var head = new Constructor() - var tail = head - - function get () { - var current = head - - if (current.next) { - head = current.next - } else { - head = new Constructor() - tail = head - } - - current.next = null - - return current - } - - function release (obj) { - tail.next = obj - tail = obj - } - - return { - get: get, - release: release - } -} - -module.exports = reusify diff --git a/graphql/node_modules/reusify/test.js b/graphql/node_modules/reusify/test.js deleted file mode 100644 index 929cfd71..00000000 --- a/graphql/node_modules/reusify/test.js +++ /dev/null @@ -1,66 +0,0 @@ -'use strict' - -var test = require('tape') -var reusify = require('./') - -test('reuse objects', function (t) { - t.plan(6) - - function MyObject () { - t.pass('constructor called') - this.next = null - } - - var instance = reusify(MyObject) - var obj = instance.get() - - t.notEqual(obj, instance.get(), 'two instance created') - t.notOk(obj.next, 'next must be null') - - instance.release(obj) - - // the internals keeps a hot copy ready for reuse - // putting this one back in the queue - instance.release(instance.get()) - - // comparing the old one with the one we got - // never do this in real code, after release you - // should never reuse that instance - t.equal(obj, instance.get(), 'instance must be reused') -}) - -test('reuse more than 2 objects', function (t) { - function MyObject () { - t.pass('constructor called') - this.next = null - } - - var instance = reusify(MyObject) - var obj = instance.get() - var obj2 = instance.get() - var obj3 = instance.get() - - t.notOk(obj.next, 'next must be null') - t.notOk(obj2.next, 'next must be null') - t.notOk(obj3.next, 'next must be null') - - t.notEqual(obj, obj2) - t.notEqual(obj, obj3) - t.notEqual(obj3, obj2) - - instance.release(obj) - instance.release(obj2) - instance.release(obj3) - - // skip one - instance.get() - - var obj4 = instance.get() - var obj5 = instance.get() - var obj6 = instance.get() - - t.equal(obj4, obj) - t.equal(obj5, obj2) - t.equal(obj6, obj3) - t.end() -}) diff --git a/graphql/node_modules/run-parallel/LICENSE b/graphql/node_modules/run-parallel/LICENSE deleted file mode 100644 index c7e68527..00000000 --- a/graphql/node_modules/run-parallel/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Feross Aboukhadijeh - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/run-parallel/README.md b/graphql/node_modules/run-parallel/README.md deleted file mode 100644 index edc3da45..00000000 --- a/graphql/node_modules/run-parallel/README.md +++ /dev/null @@ -1,85 +0,0 @@ -# run-parallel [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] - -[travis-image]: https://img.shields.io/travis/feross/run-parallel/master.svg -[travis-url]: https://travis-ci.org/feross/run-parallel -[npm-image]: https://img.shields.io/npm/v/run-parallel.svg -[npm-url]: https://npmjs.org/package/run-parallel -[downloads-image]: https://img.shields.io/npm/dm/run-parallel.svg -[downloads-url]: https://npmjs.org/package/run-parallel -[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg -[standard-url]: https://standardjs.com - -### Run an array of functions in parallel - -![parallel](https://raw.githubusercontent.com/feross/run-parallel/master/img.png) [![Sauce Test Status](https://saucelabs.com/browser-matrix/run-parallel.svg)](https://saucelabs.com/u/run-parallel) - -### install - -``` -npm install run-parallel -``` - -### usage - -#### parallel(tasks, [callback]) - -Run the `tasks` array of functions in parallel, without waiting until the previous -function has completed. If any of the functions pass an error to its callback, the main -`callback` is immediately called with the value of the error. Once the `tasks` have -completed, the results are passed to the final `callback` as an array. - -It is also possible to use an object instead of an array. Each property will be run as a -function and the results will be passed to the final `callback` as an object instead of -an array. This can be a more readable way of handling the results. - -##### arguments - -- `tasks` - An array or object containing functions to run. Each function is passed a -`callback(err, result)` which it must call on completion with an error `err` (which can -be `null`) and an optional `result` value. -- `callback(err, results)` - An optional callback to run once all the functions have -completed. This function gets a results array (or object) containing all the result -arguments passed to the task callbacks. - -##### example - -```js -var parallel = require('run-parallel') - -parallel([ - function (callback) { - setTimeout(function () { - callback(null, 'one') - }, 200) - }, - function (callback) { - setTimeout(function () { - callback(null, 'two') - }, 100) - } -], -// optional callback -function (err, results) { - // the results array will equal ['one','two'] even though - // the second function had a shorter timeout. -}) -``` - -This module is basically equavalent to -[`async.parallel`](https://github.com/caolan/async#paralleltasks-callback), but it's -handy to just have the one function you need instead of the kitchen sink. Modularity! -Especially handy if you're serving to the browser and need to reduce your javascript -bundle size. - -Works great in the browser with [browserify](http://browserify.org/)! - -### see also - -- [run-auto](https://github.com/feross/run-auto) -- [run-parallel-limit](https://github.com/feross/run-parallel-limit) -- [run-series](https://github.com/feross/run-series) -- [run-waterfall](https://github.com/feross/run-waterfall) - -### license - -MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org). diff --git a/graphql/node_modules/run-parallel/index.js b/graphql/node_modules/run-parallel/index.js deleted file mode 100644 index 6307141d..00000000 --- a/graphql/node_modules/run-parallel/index.js +++ /dev/null @@ -1,51 +0,0 @@ -/*! run-parallel. MIT License. Feross Aboukhadijeh */ -module.exports = runParallel - -const queueMicrotask = require('queue-microtask') - -function runParallel (tasks, cb) { - let results, pending, keys - let isSync = true - - if (Array.isArray(tasks)) { - results = [] - pending = tasks.length - } else { - keys = Object.keys(tasks) - results = {} - pending = keys.length - } - - function done (err) { - function end () { - if (cb) cb(err, results) - cb = null - } - if (isSync) queueMicrotask(end) - else end() - } - - function each (i, err, result) { - results[i] = result - if (--pending === 0 || err) { - done(err) - } - } - - if (!pending) { - // empty - done(null) - } else if (keys) { - // object - keys.forEach(function (key) { - tasks[key](function (err, result) { each(key, err, result) }) - }) - } else { - // array - tasks.forEach(function (task, i) { - task(function (err, result) { each(i, err, result) }) - }) - } - - isSync = false -} diff --git a/graphql/node_modules/run-parallel/package.json b/graphql/node_modules/run-parallel/package.json deleted file mode 100644 index 1f147578..00000000 --- a/graphql/node_modules/run-parallel/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "run-parallel", - "description": "Run an array of functions in parallel", - "version": "1.2.0", - "author": { - "name": "Feross Aboukhadijeh", - "email": "feross@feross.org", - "url": "https://feross.org" - }, - "bugs": { - "url": "https://github.com/feross/run-parallel/issues" - }, - "dependencies": { - "queue-microtask": "^1.2.2" - }, - "devDependencies": { - "airtap": "^3.0.0", - "standard": "*", - "tape": "^5.0.1" - }, - "homepage": "https://github.com/feross/run-parallel", - "keywords": [ - "parallel", - "async", - "function", - "callback", - "asynchronous", - "run", - "array", - "run parallel" - ], - "license": "MIT", - "main": "index.js", - "repository": { - "type": "git", - "url": "git://github.com/feross/run-parallel.git" - }, - "scripts": { - "test": "standard && npm run test-node && npm run test-browser", - "test-browser": "airtap -- test/*.js", - "test-browser-local": "airtap --local -- test/*.js", - "test-node": "tape test/*.js" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] -} diff --git a/graphql/node_modules/semver/LICENSE b/graphql/node_modules/semver/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/graphql/node_modules/semver/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/graphql/node_modules/semver/README.md b/graphql/node_modules/semver/README.md deleted file mode 100644 index ede7b7d0..00000000 --- a/graphql/node_modules/semver/README.md +++ /dev/null @@ -1,654 +0,0 @@ -semver(1) -- The semantic versioner for npm -=========================================== - -## Install - -```bash -npm install semver -```` - -## Usage - -As a node module: - -```js -const semver = require('semver') - -semver.valid('1.2.3') // '1.2.3' -semver.valid('a.b.c') // null -semver.clean(' =v1.2.3 ') // '1.2.3' -semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true -semver.gt('1.2.3', '9.8.7') // false -semver.lt('1.2.3', '9.8.7') // true -semver.minVersion('>=1.0.0') // '1.0.0' -semver.valid(semver.coerce('v2')) // '2.0.0' -semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' -``` - -You can also just load the module for the function that you care about if -you'd like to minimize your footprint. - -```js -// load the whole API at once in a single object -const semver = require('semver') - -// or just load the bits you need -// all of them listed here, just pick and choose what you want - -// classes -const SemVer = require('semver/classes/semver') -const Comparator = require('semver/classes/comparator') -const Range = require('semver/classes/range') - -// functions for working with versions -const semverParse = require('semver/functions/parse') -const semverValid = require('semver/functions/valid') -const semverClean = require('semver/functions/clean') -const semverInc = require('semver/functions/inc') -const semverDiff = require('semver/functions/diff') -const semverMajor = require('semver/functions/major') -const semverMinor = require('semver/functions/minor') -const semverPatch = require('semver/functions/patch') -const semverPrerelease = require('semver/functions/prerelease') -const semverCompare = require('semver/functions/compare') -const semverRcompare = require('semver/functions/rcompare') -const semverCompareLoose = require('semver/functions/compare-loose') -const semverCompareBuild = require('semver/functions/compare-build') -const semverSort = require('semver/functions/sort') -const semverRsort = require('semver/functions/rsort') - -// low-level comparators between versions -const semverGt = require('semver/functions/gt') -const semverLt = require('semver/functions/lt') -const semverEq = require('semver/functions/eq') -const semverNeq = require('semver/functions/neq') -const semverGte = require('semver/functions/gte') -const semverLte = require('semver/functions/lte') -const semverCmp = require('semver/functions/cmp') -const semverCoerce = require('semver/functions/coerce') - -// working with ranges -const semverSatisfies = require('semver/functions/satisfies') -const semverMaxSatisfying = require('semver/ranges/max-satisfying') -const semverMinSatisfying = require('semver/ranges/min-satisfying') -const semverToComparators = require('semver/ranges/to-comparators') -const semverMinVersion = require('semver/ranges/min-version') -const semverValidRange = require('semver/ranges/valid') -const semverOutside = require('semver/ranges/outside') -const semverGtr = require('semver/ranges/gtr') -const semverLtr = require('semver/ranges/ltr') -const semverIntersects = require('semver/ranges/intersects') -const semverSimplifyRange = require('semver/ranges/simplify') -const semverRangeSubset = require('semver/ranges/subset') -``` - -As a command-line utility: - -``` -$ semver -h - -A JavaScript implementation of the https://semver.org/ specification -Copyright Isaac Z. Schlueter - -Usage: semver [options] [ [...]] -Prints valid versions sorted by SemVer precedence - -Options: --r --range - Print versions that match the specified range. - --i --increment [] - Increment a version by the specified level. Level can - be one of: major, minor, patch, premajor, preminor, - prepatch, or prerelease. Default level is 'patch'. - Only one version may be specified. - ---preid - Identifier to be used to prefix premajor, preminor, - prepatch or prerelease version increments. - --l --loose - Interpret versions and ranges loosely - --n <0|1> - This is the base to be used for the prerelease identifier. - --p --include-prerelease - Always include prerelease versions in range matching - --c --coerce - Coerce a string into SemVer if possible - (does not imply --loose) - ---rtl - Coerce version strings right to left - ---ltr - Coerce version strings left to right (default) - -Program exits successfully if any valid version satisfies -all supplied ranges, and prints all satisfying versions. - -If no satisfying versions are found, then exits failure. - -Versions are printed in ascending order, so supplying -multiple versions to the utility will just sort them. -``` - -## Versions - -A "version" is described by the `v2.0.0` specification found at -. - -A leading `"="` or `"v"` character is stripped off and ignored. - -## Ranges - -A `version range` is a set of `comparators` that specify versions -that satisfy the range. - -A `comparator` is composed of an `operator` and a `version`. The set -of primitive `operators` is: - -* `<` Less than -* `<=` Less than or equal to -* `>` Greater than -* `>=` Greater than or equal to -* `=` Equal. If no operator is specified, then equality is assumed, - so this operator is optional but MAY be included. - -For example, the comparator `>=1.2.7` would match the versions -`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` -or `1.1.0`. The comparator `>1` is equivalent to `>=2.0.0` and -would match the versions `2.0.0` and `3.1.0`, but not the versions -`1.0.1` or `1.1.0`. - -Comparators can be joined by whitespace to form a `comparator set`, -which is satisfied by the **intersection** of all of the comparators -it includes. - -A range is composed of one or more comparator sets, joined by `||`. A -version matches a range if and only if every comparator in at least -one of the `||`-separated comparator sets is satisfied by the version. - -For example, the range `>=1.2.7 <1.3.0` would match the versions -`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, -or `1.1.0`. - -The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, -`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. - -### Prerelease Tags - -If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then -it will only be allowed to satisfy comparator sets if at least one -comparator with the same `[major, minor, patch]` tuple also has a -prerelease tag. - -For example, the range `>1.2.3-alpha.3` would be allowed to match the -version `1.2.3-alpha.7`, but it would *not* be satisfied by -`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater -than" `1.2.3-alpha.3` according to the SemVer sort rules. The version -range only accepts prerelease tags on the `1.2.3` version. -Version `3.4.5` *would* satisfy the range because it does not have a -prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. - -The purpose of this behavior is twofold. First, prerelease versions -frequently are updated very quickly, and contain many breaking changes -that are (by the author's design) not yet fit for public consumption. -Therefore, by default, they are excluded from range-matching -semantics. - -Second, a user who has opted into using a prerelease version has -indicated the intent to use *that specific* set of -alpha/beta/rc versions. By including a prerelease tag in the range, -the user is indicating that they are aware of the risk. However, it -is still not appropriate to assume that they have opted into taking a -similar risk on the *next* set of prerelease versions. - -Note that this behavior can be suppressed (treating all prerelease -versions as if they were normal versions, for range-matching) -by setting the `includePrerelease` flag on the options -object to any -[functions](https://github.com/npm/node-semver#functions) that do -range matching. - -#### Prerelease Identifiers - -The method `.inc` takes an additional `identifier` string argument that -will append the value of the string as a prerelease identifier: - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta') -// '1.2.4-beta.0' -``` - -command-line example: - -```bash -$ semver 1.2.3 -i prerelease --preid beta -1.2.4-beta.0 -``` - -Which then can be used to increment further: - -```bash -$ semver 1.2.4-beta.0 -i prerelease -1.2.4-beta.1 -``` - -#### Prerelease Identifier Base - -The method `.inc` takes an optional parameter 'identifierBase' string -that will let you let your prerelease number as zero-based or one-based. -Set to `false` to omit the prerelease number altogether. -If you do not specify this parameter, it will default to zero-based. - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta', '1') -// '1.2.4-beta.1' -``` - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta', false) -// '1.2.4-beta' -``` - -command-line example: - -```bash -$ semver 1.2.3 -i prerelease --preid beta -n 1 -1.2.4-beta.1 -``` - -```bash -$ semver 1.2.3 -i prerelease --preid beta -n false -1.2.4-beta -``` - -### Advanced Range Syntax - -Advanced range syntax desugars to primitive comparators in -deterministic ways. - -Advanced ranges may be combined in the same way as primitive -comparators using white space or `||`. - -#### Hyphen Ranges `X.Y.Z - A.B.C` - -Specifies an inclusive set. - -* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` - -If a partial version is provided as the first version in the inclusive -range, then the missing pieces are replaced with zeroes. - -* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` - -If a partial version is provided as the second version in the -inclusive range, then all versions that start with the supplied parts -of the tuple are accepted, but nothing that would be greater than the -provided tuple parts. - -* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0-0` -* `1.2.3 - 2` := `>=1.2.3 <3.0.0-0` - -#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` - -Any of `X`, `x`, or `*` may be used to "stand in" for one of the -numeric values in the `[major, minor, patch]` tuple. - -* `*` := `>=0.0.0` (Any non-prerelease version satisfies, unless - `includePrerelease` is specified, in which case any version at all - satisfies) -* `1.x` := `>=1.0.0 <2.0.0-0` (Matching major version) -* `1.2.x` := `>=1.2.0 <1.3.0-0` (Matching major and minor versions) - -A partial version range is treated as an X-Range, so the special -character is in fact optional. - -* `""` (empty string) := `*` := `>=0.0.0` -* `1` := `1.x.x` := `>=1.0.0 <2.0.0-0` -* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0-0` - -#### Tilde Ranges `~1.2.3` `~1.2` `~1` - -Allows patch-level changes if a minor version is specified on the -comparator. Allows minor-level changes if not. - -* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0-0` -* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0-0` (Same as `1.2.x`) -* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0-0` (Same as `1.x`) -* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0-0` -* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0-0` (Same as `0.2.x`) -* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0-0` (Same as `0.x`) -* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0-0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. - -#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` - -Allows changes that do not modify the left-most non-zero element in the -`[major, minor, patch]` tuple. In other words, this allows patch and -minor updates for versions `1.0.0` and above, patch updates for -versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. - -Many authors treat a `0.x` version as if the `x` were the major -"breaking-change" indicator. - -Caret ranges are ideal when an author may make breaking changes -between `0.2.4` and `0.3.0` releases, which is a common practice. -However, it presumes that there will *not* be breaking changes between -`0.2.4` and `0.2.5`. It allows for changes that are presumed to be -additive (but non-breaking), according to commonly observed practices. - -* `^1.2.3` := `>=1.2.3 <2.0.0-0` -* `^0.2.3` := `>=0.2.3 <0.3.0-0` -* `^0.0.3` := `>=0.0.3 <0.0.4-0` -* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0-0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. -* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4-0` Note that prereleases in the - `0.0.3` version *only* will be allowed, if they are greater than or - equal to `beta`. So, `0.0.3-pr.2` would be allowed. - -When parsing caret ranges, a missing `patch` value desugars to the -number `0`, but will allow flexibility within that value, even if the -major and minor versions are both `0`. - -* `^1.2.x` := `>=1.2.0 <2.0.0-0` -* `^0.0.x` := `>=0.0.0 <0.1.0-0` -* `^0.0` := `>=0.0.0 <0.1.0-0` - -A missing `minor` and `patch` values will desugar to zero, but also -allow flexibility within those values, even if the major version is -zero. - -* `^1.x` := `>=1.0.0 <2.0.0-0` -* `^0.x` := `>=0.0.0 <1.0.0-0` - -### Range Grammar - -Putting all this together, here is a Backus-Naur grammar for ranges, -for the benefit of parser authors: - -```bnf -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ -``` - -## Functions - -All methods and classes take a final `options` object argument. All -options in this object are `false` by default. The options supported -are: - -- `loose`: Be more forgiving about not-quite-valid semver strings. - (Any resulting output will always be 100% strict compliant, of - course.) For backwards compatibility reasons, if the `options` - argument is a boolean value instead of an object, it is interpreted - to be the `loose` param. -- `includePrerelease`: Set to suppress the [default - behavior](https://github.com/npm/node-semver#prerelease-tags) of - excluding prerelease tagged versions from ranges unless they are - explicitly opted into. - -Strict-mode Comparators and Ranges will be strict about the SemVer -strings that they parse. - -* `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, release, options, identifier, identifierBase)`: - Return the version incremented by the release - type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, or `prerelease`), or null if it's not valid - * `premajor` in one call will bump the version up to the next major - version and down to a prerelease of that major version. - `preminor`, and `prepatch` work the same way. - * If called from a non-prerelease version, `prerelease` will work the - same as `prepatch`. It increments the patch version and then makes a - prerelease. If the input version is already a prerelease it simply - increments it. - * `identifier` can be used to prefix `premajor`, `preminor`, - `prepatch`, or `prerelease` version increments. `identifierBase` - is the base to be used for the `prerelease` identifier. -* `prerelease(v)`: Returns an array of prerelease components, or null - if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` -* `major(v)`: Return the major version number. -* `minor(v)`: Return the minor version number. -* `patch(v)`: Return the patch version number. -* `intersects(r1, r2, loose)`: Return true if the two supplied ranges - or comparators intersect. -* `parse(v)`: Attempt to parse a string as a semantic version, returning either - a `SemVer` object or `null`. - -### Comparison - -* `gt(v1, v2)`: `v1 > v2` -* `gte(v1, v2)`: `v1 >= v2` -* `lt(v1, v2)`: `v1 < v2` -* `lte(v1, v2)`: `v1 <= v2` -* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, - even if they're not the same string. You already know how to - compare strings. -* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. -* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call - the corresponding function above. `"==="` and `"!=="` do simple - string comparison, but are included for completeness. Throws if an - invalid comparison string is provided. -* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `rcompare(v1, v2)`: The reverse of `compare`. Sorts an array of versions - in descending order when passed to `Array.sort()`. -* `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions - are equal. Sorts in ascending order if passed to `Array.sort()`. -* `compareLoose(v1, v2)`: Short for `compare(v1, v2, { loose: true })`. -* `diff(v1, v2)`: Returns the difference between two versions by the release type - (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), - or null if the versions are the same. - -### Sorting - -* `sort(versions)`: Returns a sorted array of versions based on the `compareBuild` - function. -* `rsort(versions)`: The reverse of `sort`. Returns an array of versions based on - the `compareBuild` function in descending order. - -### Comparators - -* `intersects(comparator)`: Return true if the comparators intersect - -### Ranges - -* `validRange(range)`: Return the valid range or null if it's not valid -* `satisfies(version, range)`: Return true if the version satisfies the - range. -* `maxSatisfying(versions, range)`: Return the highest version in the list - that satisfies the range, or `null` if none of them do. -* `minSatisfying(versions, range)`: Return the lowest version in the list - that satisfies the range, or `null` if none of them do. -* `minVersion(range)`: Return the lowest version that can match - the given range. -* `gtr(version, range)`: Return `true` if the version is greater than all the - versions possible in the range. -* `ltr(version, range)`: Return `true` if the version is less than all the - versions possible in the range. -* `outside(version, range, hilo)`: Return true if the version is outside - the bounds of the range in either the high or low direction. The - `hilo` argument must be either the string `'>'` or `'<'`. (This is - the function called by `gtr` and `ltr`.) -* `intersects(range)`: Return true if any of the range comparators intersect. -* `simplifyRange(versions, range)`: Return a "simplified" range that - matches the same items in the `versions` list as the range specified. Note - that it does *not* guarantee that it would match the same versions in all - cases, only for the set of versions provided. This is useful when - generating ranges by joining together multiple versions with `||` - programmatically, to provide the user with something a bit more - ergonomic. If the provided range is shorter in string-length than the - generated range, then that is returned. -* `subset(subRange, superRange)`: Return `true` if the `subRange` range is - entirely contained by the `superRange` range. - -Note that, since ranges may be non-contiguous, a version might not be -greater than a range, less than a range, *or* satisfy a range! For -example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` -until `2.0.0`, so version `1.2.10` would not be greater than the -range (because `2.0.1` satisfies, which is higher), nor less than the -range (since `1.2.8` satisfies, which is lower), and it also does not -satisfy the range. - -If you want to know if a version satisfies or does not satisfy a -range, use the `satisfies(version, range)` function. - -### Coercion - -* `coerce(version, options)`: Coerces a string to semver if possible - -This aims to provide a very forgiving translation of a non-semver string to -semver. It looks for the first digit in a string and consumes all -remaining characters which satisfy at least a partial semver (e.g., `1`, -`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer -versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All -surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes -`3.4.0`). Only text which lacks digits will fail coercion (`version one` -is not valid). The maximum length for any semver component considered for -coercion is 16 characters; longer components will be ignored -(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any -semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value -components are invalid (`9999999999999999.4.7.4` is likely invalid). - -If the `options.rtl` flag is set, then `coerce` will return the right-most -coercible tuple that does not share an ending index with a longer coercible -tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not -`4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of -any other overlapping SemVer tuple. - -If the `options.includePrerelease` flag is set, then the `coerce` result will contain -prerelease and build parts of a version. For example, `1.2.3.4-rc.1+rev.2` -will preserve prerelease `rc.1` and build `rev.2` in the result. - -### Clean - -* `clean(version)`: Clean a string to be a valid semver if possible - -This will return a cleaned and trimmed semver version. If the provided -version is not valid a null will be returned. This does not work for -ranges. - -ex. -* `s.clean(' = v 2.1.5foo')`: `null` -* `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean(' = v 2.1.5-foo')`: `null` -* `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean('=v2.1.5')`: `'2.1.5'` -* `s.clean(' =v2.1.5')`: `'2.1.5'` -* `s.clean(' 2.1.5 ')`: `'2.1.5'` -* `s.clean('~1.0.0')`: `null` - -## Constants - -As a convenience, helper constants are exported to provide information about what `node-semver` supports: - -### `RELEASE_TYPES` - -- major -- premajor -- minor -- preminor -- patch -- prepatch -- prerelease - -``` -const semver = require('semver'); - -if (semver.RELEASE_TYPES.includes(arbitraryUserInput)) { - console.log('This is a valid release type!'); -} else { - console.warn('This is NOT a valid release type!'); -} -``` - -### `SEMVER_SPEC_VERSION` - -2.0.0 - -``` -const semver = require('semver'); - -console.log('We are currently using the semver specification version:', semver.SEMVER_SPEC_VERSION); -``` - -## Exported Modules - - - -You may pull in just the part of this semver utility that you need if you -are sensitive to packing and tree-shaking concerns. The main -`require('semver')` export uses getter functions to lazily load the parts -of the API that are used. - -The following modules are available: - -* `require('semver')` -* `require('semver/classes')` -* `require('semver/classes/comparator')` -* `require('semver/classes/range')` -* `require('semver/classes/semver')` -* `require('semver/functions/clean')` -* `require('semver/functions/cmp')` -* `require('semver/functions/coerce')` -* `require('semver/functions/compare')` -* `require('semver/functions/compare-build')` -* `require('semver/functions/compare-loose')` -* `require('semver/functions/diff')` -* `require('semver/functions/eq')` -* `require('semver/functions/gt')` -* `require('semver/functions/gte')` -* `require('semver/functions/inc')` -* `require('semver/functions/lt')` -* `require('semver/functions/lte')` -* `require('semver/functions/major')` -* `require('semver/functions/minor')` -* `require('semver/functions/neq')` -* `require('semver/functions/parse')` -* `require('semver/functions/patch')` -* `require('semver/functions/prerelease')` -* `require('semver/functions/rcompare')` -* `require('semver/functions/rsort')` -* `require('semver/functions/satisfies')` -* `require('semver/functions/sort')` -* `require('semver/functions/valid')` -* `require('semver/ranges/gtr')` -* `require('semver/ranges/intersects')` -* `require('semver/ranges/ltr')` -* `require('semver/ranges/max-satisfying')` -* `require('semver/ranges/min-satisfying')` -* `require('semver/ranges/min-version')` -* `require('semver/ranges/outside')` -* `require('semver/ranges/simplify')` -* `require('semver/ranges/subset')` -* `require('semver/ranges/to-comparators')` -* `require('semver/ranges/valid')` - diff --git a/graphql/node_modules/semver/bin/semver.js b/graphql/node_modules/semver/bin/semver.js deleted file mode 100755 index f62b566f..00000000 --- a/graphql/node_modules/semver/bin/semver.js +++ /dev/null @@ -1,188 +0,0 @@ -#!/usr/bin/env node -// Standalone semver comparison program. -// Exits successfully and prints matching version(s) if -// any supplied version is valid and passes all tests. - -const argv = process.argv.slice(2) - -let versions = [] - -const range = [] - -let inc = null - -const version = require('../package.json').version - -let loose = false - -let includePrerelease = false - -let coerce = false - -let rtl = false - -let identifier - -let identifierBase - -const semver = require('../') -const parseOptions = require('../internal/parse-options') - -let reverse = false - -let options = {} - -const main = () => { - if (!argv.length) { - return help() - } - while (argv.length) { - let a = argv.shift() - const indexOfEqualSign = a.indexOf('=') - if (indexOfEqualSign !== -1) { - const value = a.slice(indexOfEqualSign + 1) - a = a.slice(0, indexOfEqualSign) - argv.unshift(value) - } - switch (a) { - case '-rv': case '-rev': case '--rev': case '--reverse': - reverse = true - break - case '-l': case '--loose': - loose = true - break - case '-p': case '--include-prerelease': - includePrerelease = true - break - case '-v': case '--version': - versions.push(argv.shift()) - break - case '-i': case '--inc': case '--increment': - switch (argv[0]) { - case 'major': case 'minor': case 'patch': case 'prerelease': - case 'premajor': case 'preminor': case 'prepatch': - inc = argv.shift() - break - default: - inc = 'patch' - break - } - break - case '--preid': - identifier = argv.shift() - break - case '-r': case '--range': - range.push(argv.shift()) - break - case '-n': - identifierBase = argv.shift() - if (identifierBase === 'false') { - identifierBase = false - } - break - case '-c': case '--coerce': - coerce = true - break - case '--rtl': - rtl = true - break - case '--ltr': - rtl = false - break - case '-h': case '--help': case '-?': - return help() - default: - versions.push(a) - break - } - } - - options = parseOptions({ loose, includePrerelease, rtl }) - - versions = versions.map((v) => { - return coerce ? (semver.coerce(v, options) || { version: v }).version : v - }).filter((v) => { - return semver.valid(v) - }) - if (!versions.length) { - return fail() - } - if (inc && (versions.length !== 1 || range.length)) { - return failInc() - } - - for (let i = 0, l = range.length; i < l; i++) { - versions = versions.filter((v) => { - return semver.satisfies(v, range[i], options) - }) - if (!versions.length) { - return fail() - } - } - versions - .sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options)) - .map(v => semver.clean(v, options)) - .map(v => inc ? semver.inc(v, inc, options, identifier, identifierBase) : v) - .forEach(v => console.log(v)) -} - -const failInc = () => { - console.error('--inc can only be used on a single version with no range') - fail() -} - -const fail = () => process.exit(1) - -const help = () => console.log( -`SemVer ${version} - -A JavaScript implementation of the https://semver.org/ specification -Copyright Isaac Z. Schlueter - -Usage: semver [options] [ [...]] -Prints valid versions sorted by SemVer precedence - -Options: --r --range - Print versions that match the specified range. - --i --increment [] - Increment a version by the specified level. Level can - be one of: major, minor, patch, premajor, preminor, - prepatch, or prerelease. Default level is 'patch'. - Only one version may be specified. - ---preid - Identifier to be used to prefix premajor, preminor, - prepatch or prerelease version increments. - --l --loose - Interpret versions and ranges loosely - --p --include-prerelease - Always include prerelease versions in range matching - --c --coerce - Coerce a string into SemVer if possible - (does not imply --loose) - ---rtl - Coerce version strings right to left - ---ltr - Coerce version strings left to right (default) - --n - Base number to be used for the prerelease identifier. - Can be either 0 or 1, or false to omit the number altogether. - Defaults to 0. - -Program exits successfully if any valid version satisfies -all supplied ranges, and prints all satisfying versions. - -If no satisfying versions are found, then exits failure. - -Versions are printed in ascending order, so supplying -multiple versions to the utility will just sort them.`) - -main() diff --git a/graphql/node_modules/semver/classes/comparator.js b/graphql/node_modules/semver/classes/comparator.js deleted file mode 100644 index 3d39c0ee..00000000 --- a/graphql/node_modules/semver/classes/comparator.js +++ /dev/null @@ -1,141 +0,0 @@ -const ANY = Symbol('SemVer ANY') -// hoisted class for cyclic dependency -class Comparator { - static get ANY () { - return ANY - } - - constructor (comp, options) { - options = parseOptions(options) - - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value - } - } - - comp = comp.trim().split(/\s+/).join(' ') - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) - - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } - - debug('comp', this) - } - - parse (comp) { - const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] - const m = comp.match(r) - - if (!m) { - throw new TypeError(`Invalid comparator: ${comp}`) - } - - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } - } - - toString () { - return this.value - } - - test (version) { - debug('Comparator.test', version, this.options.loose) - - if (this.semver === ANY || version === ANY) { - return true - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - return cmp(version, this.operator, this.semver, this.options) - } - - intersects (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } - - if (this.operator === '') { - if (this.value === '') { - return true - } - return new Range(comp.value, options).test(this.value) - } else if (comp.operator === '') { - if (comp.value === '') { - return true - } - return new Range(this.value, options).test(comp.semver) - } - - options = parseOptions(options) - - // Special cases where nothing can possibly be lower - if (options.includePrerelease && - (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) { - return false - } - if (!options.includePrerelease && - (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) { - return false - } - - // Same direction increasing (> or >=) - if (this.operator.startsWith('>') && comp.operator.startsWith('>')) { - return true - } - // Same direction decreasing (< or <=) - if (this.operator.startsWith('<') && comp.operator.startsWith('<')) { - return true - } - // same SemVer and both sides are inclusive (<= or >=) - if ( - (this.semver.version === comp.semver.version) && - this.operator.includes('=') && comp.operator.includes('=')) { - return true - } - // opposite directions less than - if (cmp(this.semver, '<', comp.semver, options) && - this.operator.startsWith('>') && comp.operator.startsWith('<')) { - return true - } - // opposite directions greater than - if (cmp(this.semver, '>', comp.semver, options) && - this.operator.startsWith('<') && comp.operator.startsWith('>')) { - return true - } - return false - } -} - -module.exports = Comparator - -const parseOptions = require('../internal/parse-options') -const { safeRe: re, t } = require('../internal/re') -const cmp = require('../functions/cmp') -const debug = require('../internal/debug') -const SemVer = require('./semver') -const Range = require('./range') diff --git a/graphql/node_modules/semver/classes/index.js b/graphql/node_modules/semver/classes/index.js deleted file mode 100644 index 5e3f5c9b..00000000 --- a/graphql/node_modules/semver/classes/index.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - SemVer: require('./semver.js'), - Range: require('./range.js'), - Comparator: require('./comparator.js'), -} diff --git a/graphql/node_modules/semver/classes/range.js b/graphql/node_modules/semver/classes/range.js deleted file mode 100644 index ceee2314..00000000 --- a/graphql/node_modules/semver/classes/range.js +++ /dev/null @@ -1,554 +0,0 @@ -const SPACE_CHARACTERS = /\s+/g - -// hoisted class for cyclic dependency -class Range { - constructor (range, options) { - options = parseOptions(options) - - if (range instanceof Range) { - if ( - range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease - ) { - return range - } else { - return new Range(range.raw, options) - } - } - - if (range instanceof Comparator) { - // just put it in the set and return - this.raw = range.value - this.set = [[range]] - this.formatted = undefined - return this - } - - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease - - // First reduce all whitespace as much as possible so we do not have to rely - // on potentially slow regexes like \s*. This is then stored and used for - // future error messages as well. - this.raw = range.trim().replace(SPACE_CHARACTERS, ' ') - - // First, split on || - this.set = this.raw - .split('||') - // map the range to a 2d array of comparators - .map(r => this.parseRange(r.trim())) - // throw out any comparator lists that are empty - // this generally means that it was not a valid range, which is allowed - // in loose mode, but will still throw if the WHOLE range is invalid. - .filter(c => c.length) - - if (!this.set.length) { - throw new TypeError(`Invalid SemVer Range: ${this.raw}`) - } - - // if we have any that are not the null set, throw out null sets. - if (this.set.length > 1) { - // keep the first one, in case they're all null sets - const first = this.set[0] - this.set = this.set.filter(c => !isNullSet(c[0])) - if (this.set.length === 0) { - this.set = [first] - } else if (this.set.length > 1) { - // if we have any that are *, then the range is just * - for (const c of this.set) { - if (c.length === 1 && isAny(c[0])) { - this.set = [c] - break - } - } - } - } - - this.formatted = undefined - } - - get range () { - if (this.formatted === undefined) { - this.formatted = '' - for (let i = 0; i < this.set.length; i++) { - if (i > 0) { - this.formatted += '||' - } - const comps = this.set[i] - for (let k = 0; k < comps.length; k++) { - if (k > 0) { - this.formatted += ' ' - } - this.formatted += comps[k].toString().trim() - } - } - } - return this.formatted - } - - format () { - return this.range - } - - toString () { - return this.range - } - - parseRange (range) { - // memoize range parsing for performance. - // this is a very hot path, and fully deterministic. - const memoOpts = - (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | - (this.options.loose && FLAG_LOOSE) - const memoKey = memoOpts + ':' + range - const cached = cache.get(memoKey) - if (cached) { - return cached - } - - const loose = this.options.loose - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace(this.options.includePrerelease)) - debug('hyphen replace', range) - - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range) - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[t.TILDETRIM], tildeTrimReplace) - debug('tilde trim', range) - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[t.CARETTRIM], caretTrimReplace) - debug('caret trim', range) - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - let rangeList = range - .split(' ') - .map(comp => parseComparator(comp, this.options)) - .join(' ') - .split(/\s+/) - // >=0.0.0 is equivalent to * - .map(comp => replaceGTE0(comp, this.options)) - - if (loose) { - // in loose mode, throw out any that are not valid comparators - rangeList = rangeList.filter(comp => { - debug('loose invalid filter', comp, this.options) - return !!comp.match(re[t.COMPARATORLOOSE]) - }) - } - debug('range list', rangeList) - - // if any comparators are the null set, then replace with JUST null set - // if more than one comparator, remove any * comparators - // also, don't include the same comparator more than once - const rangeMap = new Map() - const comparators = rangeList.map(comp => new Comparator(comp, this.options)) - for (const comp of comparators) { - if (isNullSet(comp)) { - return [comp] - } - rangeMap.set(comp.value, comp) - } - if (rangeMap.size > 1 && rangeMap.has('')) { - rangeMap.delete('') - } - - const result = [...rangeMap.values()] - cache.set(memoKey, result) - return result - } - - intersects (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } - - return this.set.some((thisComparators) => { - return ( - isSatisfiable(thisComparators, options) && - range.set.some((rangeComparators) => { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every((thisComparator) => { - return rangeComparators.every((rangeComparator) => { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) - } - - // if ANY of the sets match ALL of its comparators, then pass - test (version) { - if (!version) { - return false - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - for (let i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false - } -} - -module.exports = Range - -const LRU = require('../internal/lrucache') -const cache = new LRU() - -const parseOptions = require('../internal/parse-options') -const Comparator = require('./comparator') -const debug = require('../internal/debug') -const SemVer = require('./semver') -const { - safeRe: re, - t, - comparatorTrimReplace, - tildeTrimReplace, - caretTrimReplace, -} = require('../internal/re') -const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants') - -const isNullSet = c => c.value === '<0.0.0-0' -const isAny = c => c.value === '' - -// take a set of comparators and determine whether there -// exists a version which can satisfy it -const isSatisfiable = (comparators, options) => { - let result = true - const remainingComparators = comparators.slice() - let testComparator = remainingComparators.pop() - - while (result && remainingComparators.length) { - result = remainingComparators.every((otherComparator) => { - return testComparator.intersects(otherComparator, options) - }) - - testComparator = remainingComparators.pop() - } - - return result -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -const parseComparator = (comp, options) => { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} - -const isX = id => !id || id.toLowerCase() === 'x' || id === '*' - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 -// ~0.0.1 --> >=0.0.1 <0.1.0-0 -const replaceTildes = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceTilde(c, options)) - .join(' ') -} - -const replaceTilde = (comp, options) => { - const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] - return comp.replace(r, (_, M, m, p, pr) => { - debug('tilde', comp, _, M, m, p, pr) - let ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0 <${+M + 1}.0.0-0` - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0-0 - ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` - } else if (pr) { - debug('replaceTilde pr', pr) - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` - } else { - // ~1.2.3 == >=1.2.3 <1.3.0-0 - ret = `>=${M}.${m}.${p - } <${M}.${+m + 1}.0-0` - } - - debug('tilde return', ret) - return ret - }) -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0 -// ^1.2.3 --> >=1.2.3 <2.0.0-0 -// ^1.2.0 --> >=1.2.0 <2.0.0-0 -// ^0.0.1 --> >=0.0.1 <0.0.2-0 -// ^0.1.0 --> >=0.1.0 <0.2.0-0 -const replaceCarets = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceCaret(c, options)) - .join(' ') -} - -const replaceCaret = (comp, options) => { - debug('caret', comp, options) - const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] - const z = options.includePrerelease ? '-0' : '' - return comp.replace(r, (_, M, m, p, pr) => { - debug('caret', comp, _, M, m, p, pr) - let ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` - } else if (isX(p)) { - if (M === '0') { - ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` - } else { - ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` - } - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${+M + 1}.0.0-0` - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p - }${z} <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p - }${z} <${M}.${+m + 1}.0-0` - } - } else { - ret = `>=${M}.${m}.${p - } <${+M + 1}.0.0-0` - } - } - - debug('caret return', ret) - return ret - }) -} - -const replaceXRanges = (comp, options) => { - debug('replaceXRanges', comp, options) - return comp - .split(/\s+/) - .map((c) => replaceXRange(c, options)) - .join(' ') -} - -const replaceXRange = (comp, options) => { - comp = comp.trim() - const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] - return comp.replace(r, (ret, gtlt, M, m, p, pr) => { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - const xM = isX(M) - const xm = xM || isX(m) - const xp = xm || isX(p) - const anyX = xp - - if (gtlt === '=' && anyX) { - gtlt = '' - } - - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } - - if (gtlt === '<') { - pr = '-0' - } - - ret = `${gtlt + M}.${m}.${p}${pr}` - } else if (xm) { - ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` - } else if (xp) { - ret = `>=${M}.${m}.0${pr - } <${M}.${+m + 1}.0-0` - } - - debug('xRange return', ret) - - return ret - }) -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -const replaceStars = (comp, options) => { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp - .trim() - .replace(re[t.STAR], '') -} - -const replaceGTE0 = (comp, options) => { - debug('replaceGTE0', comp, options) - return comp - .trim() - .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') -} - -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0-0 -// TODO build? -const hyphenReplace = incPr => ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr) => { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = `>=${fM}.0.0${incPr ? '-0' : ''}` - } else if (isX(fp)) { - from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}` - } else if (fpr) { - from = `>=${from}` - } else { - from = `>=${from}${incPr ? '-0' : ''}` - } - - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = `<${+tM + 1}.0.0-0` - } else if (isX(tp)) { - to = `<${tM}.${+tm + 1}.0-0` - } else if (tpr) { - to = `<=${tM}.${tm}.${tp}-${tpr}` - } else if (incPr) { - to = `<${tM}.${tm}.${+tp + 1}-0` - } else { - to = `<=${to}` - } - - return `${from} ${to}`.trim() -} - -const testSet = (set, version, options) => { - for (let i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (let i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === Comparator.ANY) { - continue - } - - if (set[i].semver.prerelease.length > 0) { - const allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false - } - - return true -} diff --git a/graphql/node_modules/semver/classes/semver.js b/graphql/node_modules/semver/classes/semver.js deleted file mode 100644 index 13e66ce4..00000000 --- a/graphql/node_modules/semver/classes/semver.js +++ /dev/null @@ -1,302 +0,0 @@ -const debug = require('../internal/debug') -const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants') -const { safeRe: re, t } = require('../internal/re') - -const parseOptions = require('../internal/parse-options') -const { compareIdentifiers } = require('../internal/identifiers') -class SemVer { - constructor (version, options) { - options = parseOptions(options) - - if (version instanceof SemVer) { - if (version.loose === !!options.loose && - version.includePrerelease === !!options.includePrerelease) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) - } - - if (version.length > MAX_LENGTH) { - throw new TypeError( - `version is longer than ${MAX_LENGTH} characters` - ) - } - - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - // this isn't actually relevant for versions, but keep it so that we - // don't run into trouble passing this.options around. - this.includePrerelease = !!options.includePrerelease - - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) - - if (!m) { - throw new TypeError(`Invalid Version: ${version}`) - } - - this.raw = version - - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } - } - return id - }) - } - - this.build = m[5] ? m[5].split('.') : [] - this.format() - } - - format () { - this.version = `${this.major}.${this.minor}.${this.patch}` - if (this.prerelease.length) { - this.version += `-${this.prerelease.join('.')}` - } - return this.version - } - - toString () { - return this.version - } - - compare (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - if (typeof other === 'string' && other === this.version) { - return 0 - } - other = new SemVer(other, this.options) - } - - if (other.version === this.version) { - return 0 - } - - return this.compareMain(other) || this.comparePre(other) - } - - compareMain (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return ( - compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) - ) - } - - comparePre (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } - - let i = 0 - do { - const a = this.prerelease[i] - const b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - compareBuild (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - let i = 0 - do { - const a = this.build[i] - const b = other.build[i] - debug('build compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - // preminor will bump the version up to the next minor release, and immediately - // down to pre-release. premajor and prepatch work the same way. - inc (release, identifier, identifierBase) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier, identifierBase) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier, identifierBase) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier, identifierBase) - this.inc('pre', identifier, identifierBase) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier, identifierBase) - } - this.inc('pre', identifier, identifierBase) - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if ( - this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0 - ) { - this.major++ - } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ - } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ - } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. - case 'pre': { - const base = Number(identifierBase) ? 1 : 0 - - if (!identifier && identifierBase === false) { - throw new Error('invalid increment argument: identifier is empty') - } - - if (this.prerelease.length === 0) { - this.prerelease = [base] - } else { - let i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - if (identifier === this.prerelease.join('.') && identifierBase === false) { - throw new Error('invalid increment argument: identifier already exists') - } - this.prerelease.push(base) - } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - let prerelease = [identifier, base] - if (identifierBase === false) { - prerelease = [identifier] - } - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = prerelease - } - } else { - this.prerelease = prerelease - } - } - break - } - default: - throw new Error(`invalid increment argument: ${release}`) - } - this.raw = this.format() - if (this.build.length) { - this.raw += `+${this.build.join('.')}` - } - return this - } -} - -module.exports = SemVer diff --git a/graphql/node_modules/semver/functions/clean.js b/graphql/node_modules/semver/functions/clean.js deleted file mode 100644 index 811fe6b8..00000000 --- a/graphql/node_modules/semver/functions/clean.js +++ /dev/null @@ -1,6 +0,0 @@ -const parse = require('./parse') -const clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} -module.exports = clean diff --git a/graphql/node_modules/semver/functions/cmp.js b/graphql/node_modules/semver/functions/cmp.js deleted file mode 100644 index 40119094..00000000 --- a/graphql/node_modules/semver/functions/cmp.js +++ /dev/null @@ -1,52 +0,0 @@ -const eq = require('./eq') -const neq = require('./neq') -const gt = require('./gt') -const gte = require('./gte') -const lt = require('./lt') -const lte = require('./lte') - -const cmp = (a, op, b, loose) => { - switch (op) { - case '===': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a === b - - case '!==': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a !== b - - case '': - case '=': - case '==': - return eq(a, b, loose) - - case '!=': - return neq(a, b, loose) - - case '>': - return gt(a, b, loose) - - case '>=': - return gte(a, b, loose) - - case '<': - return lt(a, b, loose) - - case '<=': - return lte(a, b, loose) - - default: - throw new TypeError(`Invalid operator: ${op}`) - } -} -module.exports = cmp diff --git a/graphql/node_modules/semver/functions/coerce.js b/graphql/node_modules/semver/functions/coerce.js deleted file mode 100644 index b378dcea..00000000 --- a/graphql/node_modules/semver/functions/coerce.js +++ /dev/null @@ -1,60 +0,0 @@ -const SemVer = require('../classes/semver') -const parse = require('./parse') -const { safeRe: re, t } = require('../internal/re') - -const coerce = (version, options) => { - if (version instanceof SemVer) { - return version - } - - if (typeof version === 'number') { - version = String(version) - } - - if (typeof version !== 'string') { - return null - } - - options = options || {} - - let match = null - if (!options.rtl) { - match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL] - let next - while ((next = coerceRtlRegex.exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next - } - coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length - } - // leave it in a clean state - coerceRtlRegex.lastIndex = -1 - } - - if (match === null) { - return null - } - - const major = match[2] - const minor = match[3] || '0' - const patch = match[4] || '0' - const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '' - const build = options.includePrerelease && match[6] ? `+${match[6]}` : '' - - return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options) -} -module.exports = coerce diff --git a/graphql/node_modules/semver/functions/compare-build.js b/graphql/node_modules/semver/functions/compare-build.js deleted file mode 100644 index 9eb881be..00000000 --- a/graphql/node_modules/semver/functions/compare-build.js +++ /dev/null @@ -1,7 +0,0 @@ -const SemVer = require('../classes/semver') -const compareBuild = (a, b, loose) => { - const versionA = new SemVer(a, loose) - const versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} -module.exports = compareBuild diff --git a/graphql/node_modules/semver/functions/compare-loose.js b/graphql/node_modules/semver/functions/compare-loose.js deleted file mode 100644 index 4881fbe0..00000000 --- a/graphql/node_modules/semver/functions/compare-loose.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const compareLoose = (a, b) => compare(a, b, true) -module.exports = compareLoose diff --git a/graphql/node_modules/semver/functions/compare.js b/graphql/node_modules/semver/functions/compare.js deleted file mode 100644 index 748b7afa..00000000 --- a/graphql/node_modules/semver/functions/compare.js +++ /dev/null @@ -1,5 +0,0 @@ -const SemVer = require('../classes/semver') -const compare = (a, b, loose) => - new SemVer(a, loose).compare(new SemVer(b, loose)) - -module.exports = compare diff --git a/graphql/node_modules/semver/functions/diff.js b/graphql/node_modules/semver/functions/diff.js deleted file mode 100644 index fc224e30..00000000 --- a/graphql/node_modules/semver/functions/diff.js +++ /dev/null @@ -1,65 +0,0 @@ -const parse = require('./parse.js') - -const diff = (version1, version2) => { - const v1 = parse(version1, null, true) - const v2 = parse(version2, null, true) - const comparison = v1.compare(v2) - - if (comparison === 0) { - return null - } - - const v1Higher = comparison > 0 - const highVersion = v1Higher ? v1 : v2 - const lowVersion = v1Higher ? v2 : v1 - const highHasPre = !!highVersion.prerelease.length - const lowHasPre = !!lowVersion.prerelease.length - - if (lowHasPre && !highHasPre) { - // Going from prerelease -> no prerelease requires some special casing - - // If the low version has only a major, then it will always be a major - // Some examples: - // 1.0.0-1 -> 1.0.0 - // 1.0.0-1 -> 1.1.1 - // 1.0.0-1 -> 2.0.0 - if (!lowVersion.patch && !lowVersion.minor) { - return 'major' - } - - // Otherwise it can be determined by checking the high version - - if (highVersion.patch) { - // anything higher than a patch bump would result in the wrong version - return 'patch' - } - - if (highVersion.minor) { - // anything higher than a minor bump would result in the wrong version - return 'minor' - } - - // bumping major/minor/patch all have same result - return 'major' - } - - // add the `pre` prefix if we are going to a prerelease version - const prefix = highHasPre ? 'pre' : '' - - if (v1.major !== v2.major) { - return prefix + 'major' - } - - if (v1.minor !== v2.minor) { - return prefix + 'minor' - } - - if (v1.patch !== v2.patch) { - return prefix + 'patch' - } - - // high and low are preleases - return 'prerelease' -} - -module.exports = diff diff --git a/graphql/node_modules/semver/functions/eq.js b/graphql/node_modules/semver/functions/eq.js deleted file mode 100644 index 271fed97..00000000 --- a/graphql/node_modules/semver/functions/eq.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const eq = (a, b, loose) => compare(a, b, loose) === 0 -module.exports = eq diff --git a/graphql/node_modules/semver/functions/gt.js b/graphql/node_modules/semver/functions/gt.js deleted file mode 100644 index d9b2156d..00000000 --- a/graphql/node_modules/semver/functions/gt.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const gt = (a, b, loose) => compare(a, b, loose) > 0 -module.exports = gt diff --git a/graphql/node_modules/semver/functions/gte.js b/graphql/node_modules/semver/functions/gte.js deleted file mode 100644 index 5aeaa634..00000000 --- a/graphql/node_modules/semver/functions/gte.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const gte = (a, b, loose) => compare(a, b, loose) >= 0 -module.exports = gte diff --git a/graphql/node_modules/semver/functions/inc.js b/graphql/node_modules/semver/functions/inc.js deleted file mode 100644 index 7670b1be..00000000 --- a/graphql/node_modules/semver/functions/inc.js +++ /dev/null @@ -1,19 +0,0 @@ -const SemVer = require('../classes/semver') - -const inc = (version, release, options, identifier, identifierBase) => { - if (typeof (options) === 'string') { - identifierBase = identifier - identifier = options - options = undefined - } - - try { - return new SemVer( - version instanceof SemVer ? version.version : version, - options - ).inc(release, identifier, identifierBase).version - } catch (er) { - return null - } -} -module.exports = inc diff --git a/graphql/node_modules/semver/functions/lt.js b/graphql/node_modules/semver/functions/lt.js deleted file mode 100644 index b440ab7d..00000000 --- a/graphql/node_modules/semver/functions/lt.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const lt = (a, b, loose) => compare(a, b, loose) < 0 -module.exports = lt diff --git a/graphql/node_modules/semver/functions/lte.js b/graphql/node_modules/semver/functions/lte.js deleted file mode 100644 index 6dcc9565..00000000 --- a/graphql/node_modules/semver/functions/lte.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const lte = (a, b, loose) => compare(a, b, loose) <= 0 -module.exports = lte diff --git a/graphql/node_modules/semver/functions/major.js b/graphql/node_modules/semver/functions/major.js deleted file mode 100644 index 4283165e..00000000 --- a/graphql/node_modules/semver/functions/major.js +++ /dev/null @@ -1,3 +0,0 @@ -const SemVer = require('../classes/semver') -const major = (a, loose) => new SemVer(a, loose).major -module.exports = major diff --git a/graphql/node_modules/semver/functions/minor.js b/graphql/node_modules/semver/functions/minor.js deleted file mode 100644 index 57b3455f..00000000 --- a/graphql/node_modules/semver/functions/minor.js +++ /dev/null @@ -1,3 +0,0 @@ -const SemVer = require('../classes/semver') -const minor = (a, loose) => new SemVer(a, loose).minor -module.exports = minor diff --git a/graphql/node_modules/semver/functions/neq.js b/graphql/node_modules/semver/functions/neq.js deleted file mode 100644 index f944c015..00000000 --- a/graphql/node_modules/semver/functions/neq.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const neq = (a, b, loose) => compare(a, b, loose) !== 0 -module.exports = neq diff --git a/graphql/node_modules/semver/functions/parse.js b/graphql/node_modules/semver/functions/parse.js deleted file mode 100644 index 459b3b17..00000000 --- a/graphql/node_modules/semver/functions/parse.js +++ /dev/null @@ -1,16 +0,0 @@ -const SemVer = require('../classes/semver') -const parse = (version, options, throwErrors = false) => { - if (version instanceof SemVer) { - return version - } - try { - return new SemVer(version, options) - } catch (er) { - if (!throwErrors) { - return null - } - throw er - } -} - -module.exports = parse diff --git a/graphql/node_modules/semver/functions/patch.js b/graphql/node_modules/semver/functions/patch.js deleted file mode 100644 index 63afca25..00000000 --- a/graphql/node_modules/semver/functions/patch.js +++ /dev/null @@ -1,3 +0,0 @@ -const SemVer = require('../classes/semver') -const patch = (a, loose) => new SemVer(a, loose).patch -module.exports = patch diff --git a/graphql/node_modules/semver/functions/prerelease.js b/graphql/node_modules/semver/functions/prerelease.js deleted file mode 100644 index 06aa1324..00000000 --- a/graphql/node_modules/semver/functions/prerelease.js +++ /dev/null @@ -1,6 +0,0 @@ -const parse = require('./parse') -const prerelease = (version, options) => { - const parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} -module.exports = prerelease diff --git a/graphql/node_modules/semver/functions/rcompare.js b/graphql/node_modules/semver/functions/rcompare.js deleted file mode 100644 index 0ac509e7..00000000 --- a/graphql/node_modules/semver/functions/rcompare.js +++ /dev/null @@ -1,3 +0,0 @@ -const compare = require('./compare') -const rcompare = (a, b, loose) => compare(b, a, loose) -module.exports = rcompare diff --git a/graphql/node_modules/semver/functions/rsort.js b/graphql/node_modules/semver/functions/rsort.js deleted file mode 100644 index 82404c5c..00000000 --- a/graphql/node_modules/semver/functions/rsort.js +++ /dev/null @@ -1,3 +0,0 @@ -const compareBuild = require('./compare-build') -const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) -module.exports = rsort diff --git a/graphql/node_modules/semver/functions/satisfies.js b/graphql/node_modules/semver/functions/satisfies.js deleted file mode 100644 index 50af1c19..00000000 --- a/graphql/node_modules/semver/functions/satisfies.js +++ /dev/null @@ -1,10 +0,0 @@ -const Range = require('../classes/range') -const satisfies = (version, range, options) => { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} -module.exports = satisfies diff --git a/graphql/node_modules/semver/functions/sort.js b/graphql/node_modules/semver/functions/sort.js deleted file mode 100644 index 4d10917a..00000000 --- a/graphql/node_modules/semver/functions/sort.js +++ /dev/null @@ -1,3 +0,0 @@ -const compareBuild = require('./compare-build') -const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) -module.exports = sort diff --git a/graphql/node_modules/semver/functions/valid.js b/graphql/node_modules/semver/functions/valid.js deleted file mode 100644 index f27bae10..00000000 --- a/graphql/node_modules/semver/functions/valid.js +++ /dev/null @@ -1,6 +0,0 @@ -const parse = require('./parse') -const valid = (version, options) => { - const v = parse(version, options) - return v ? v.version : null -} -module.exports = valid diff --git a/graphql/node_modules/semver/index.js b/graphql/node_modules/semver/index.js deleted file mode 100644 index 86d42ac1..00000000 --- a/graphql/node_modules/semver/index.js +++ /dev/null @@ -1,89 +0,0 @@ -// just pre-load all the stuff that index.js lazily exports -const internalRe = require('./internal/re') -const constants = require('./internal/constants') -const SemVer = require('./classes/semver') -const identifiers = require('./internal/identifiers') -const parse = require('./functions/parse') -const valid = require('./functions/valid') -const clean = require('./functions/clean') -const inc = require('./functions/inc') -const diff = require('./functions/diff') -const major = require('./functions/major') -const minor = require('./functions/minor') -const patch = require('./functions/patch') -const prerelease = require('./functions/prerelease') -const compare = require('./functions/compare') -const rcompare = require('./functions/rcompare') -const compareLoose = require('./functions/compare-loose') -const compareBuild = require('./functions/compare-build') -const sort = require('./functions/sort') -const rsort = require('./functions/rsort') -const gt = require('./functions/gt') -const lt = require('./functions/lt') -const eq = require('./functions/eq') -const neq = require('./functions/neq') -const gte = require('./functions/gte') -const lte = require('./functions/lte') -const cmp = require('./functions/cmp') -const coerce = require('./functions/coerce') -const Comparator = require('./classes/comparator') -const Range = require('./classes/range') -const satisfies = require('./functions/satisfies') -const toComparators = require('./ranges/to-comparators') -const maxSatisfying = require('./ranges/max-satisfying') -const minSatisfying = require('./ranges/min-satisfying') -const minVersion = require('./ranges/min-version') -const validRange = require('./ranges/valid') -const outside = require('./ranges/outside') -const gtr = require('./ranges/gtr') -const ltr = require('./ranges/ltr') -const intersects = require('./ranges/intersects') -const simplifyRange = require('./ranges/simplify') -const subset = require('./ranges/subset') -module.exports = { - parse, - valid, - clean, - inc, - diff, - major, - minor, - patch, - prerelease, - compare, - rcompare, - compareLoose, - compareBuild, - sort, - rsort, - gt, - lt, - eq, - neq, - gte, - lte, - cmp, - coerce, - Comparator, - Range, - satisfies, - toComparators, - maxSatisfying, - minSatisfying, - minVersion, - validRange, - outside, - gtr, - ltr, - intersects, - simplifyRange, - subset, - SemVer, - re: internalRe.re, - src: internalRe.src, - tokens: internalRe.t, - SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, - RELEASE_TYPES: constants.RELEASE_TYPES, - compareIdentifiers: identifiers.compareIdentifiers, - rcompareIdentifiers: identifiers.rcompareIdentifiers, -} diff --git a/graphql/node_modules/semver/internal/constants.js b/graphql/node_modules/semver/internal/constants.js deleted file mode 100644 index 94be1c57..00000000 --- a/graphql/node_modules/semver/internal/constants.js +++ /dev/null @@ -1,35 +0,0 @@ -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -const SEMVER_SPEC_VERSION = '2.0.0' - -const MAX_LENGTH = 256 -const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || -/* istanbul ignore next */ 9007199254740991 - -// Max safe segment length for coercion. -const MAX_SAFE_COMPONENT_LENGTH = 16 - -// Max safe length for a build identifier. The max length minus 6 characters for -// the shortest version with a build 0.0.0+BUILD. -const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 - -const RELEASE_TYPES = [ - 'major', - 'premajor', - 'minor', - 'preminor', - 'patch', - 'prepatch', - 'prerelease', -] - -module.exports = { - MAX_LENGTH, - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER, - RELEASE_TYPES, - SEMVER_SPEC_VERSION, - FLAG_INCLUDE_PRERELEASE: 0b001, - FLAG_LOOSE: 0b010, -} diff --git a/graphql/node_modules/semver/internal/debug.js b/graphql/node_modules/semver/internal/debug.js deleted file mode 100644 index 1c00e136..00000000 --- a/graphql/node_modules/semver/internal/debug.js +++ /dev/null @@ -1,9 +0,0 @@ -const debug = ( - typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG) -) ? (...args) => console.error('SEMVER', ...args) - : () => {} - -module.exports = debug diff --git a/graphql/node_modules/semver/internal/identifiers.js b/graphql/node_modules/semver/internal/identifiers.js deleted file mode 100644 index e612d0a3..00000000 --- a/graphql/node_modules/semver/internal/identifiers.js +++ /dev/null @@ -1,23 +0,0 @@ -const numeric = /^[0-9]+$/ -const compareIdentifiers = (a, b) => { - const anum = numeric.test(a) - const bnum = numeric.test(b) - - if (anum && bnum) { - a = +a - b = +b - } - - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -} - -const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) - -module.exports = { - compareIdentifiers, - rcompareIdentifiers, -} diff --git a/graphql/node_modules/semver/internal/lrucache.js b/graphql/node_modules/semver/internal/lrucache.js deleted file mode 100644 index 6d89ec94..00000000 --- a/graphql/node_modules/semver/internal/lrucache.js +++ /dev/null @@ -1,40 +0,0 @@ -class LRUCache { - constructor () { - this.max = 1000 - this.map = new Map() - } - - get (key) { - const value = this.map.get(key) - if (value === undefined) { - return undefined - } else { - // Remove the key from the map and add it to the end - this.map.delete(key) - this.map.set(key, value) - return value - } - } - - delete (key) { - return this.map.delete(key) - } - - set (key, value) { - const deleted = this.delete(key) - - if (!deleted && value !== undefined) { - // If cache is full, delete the least recently used item - if (this.map.size >= this.max) { - const firstKey = this.map.keys().next().value - this.delete(firstKey) - } - - this.map.set(key, value) - } - - return this - } -} - -module.exports = LRUCache diff --git a/graphql/node_modules/semver/internal/parse-options.js b/graphql/node_modules/semver/internal/parse-options.js deleted file mode 100644 index 10d64ce0..00000000 --- a/graphql/node_modules/semver/internal/parse-options.js +++ /dev/null @@ -1,15 +0,0 @@ -// parse out just the options we care about -const looseOption = Object.freeze({ loose: true }) -const emptyOpts = Object.freeze({ }) -const parseOptions = options => { - if (!options) { - return emptyOpts - } - - if (typeof options !== 'object') { - return looseOption - } - - return options -} -module.exports = parseOptions diff --git a/graphql/node_modules/semver/internal/re.js b/graphql/node_modules/semver/internal/re.js deleted file mode 100644 index fd8920e7..00000000 --- a/graphql/node_modules/semver/internal/re.js +++ /dev/null @@ -1,217 +0,0 @@ -const { - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_LENGTH, -} = require('./constants') -const debug = require('./debug') -exports = module.exports = {} - -// The actual regexps go on exports.re -const re = exports.re = [] -const safeRe = exports.safeRe = [] -const src = exports.src = [] -const t = exports.t = {} -let R = 0 - -const LETTERDASHNUMBER = '[a-zA-Z0-9-]' - -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -const safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -] - -const makeSafeRegex = (value) => { - for (const [token, max] of safeRegexReplacements) { - value = value - .split(`${token}*`).join(`${token}{0,${max}}`) - .split(`${token}+`).join(`${token}{1,${max}}`) - } - return value -} - -const createToken = (name, value, isGlobal) => { - const safe = makeSafeRegex(value) - const index = R++ - debug(name, index, value) - t[name] = index - src[index] = value - re[index] = new RegExp(value, isGlobal ? 'g' : undefined) - safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) -} - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*') -createToken('NUMERICIDENTIFIERLOOSE', '\\d+') - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`) - -// ## Main Version -// Three dot-separated numeric identifiers. - -createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})`) - -createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})`) - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER] -}|${src[t.NONNUMERICIDENTIFIER]})`) - -createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE] -}|${src[t.NONNUMERICIDENTIFIER]})`) - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] -}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`) - -createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] -}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`) - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`) - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] -}(?:\\.${src[t.BUILDIDENTIFIER]})*))`) - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -createToken('FULLPLAIN', `v?${src[t.MAINVERSION] -}${src[t.PRERELEASE]}?${ - src[t.BUILD]}?`) - -createToken('FULL', `^${src[t.FULLPLAIN]}$`) - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] -}${src[t.PRERELEASELOOSE]}?${ - src[t.BUILD]}?`) - -createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) - -createToken('GTLT', '((?:<|>)?=?)') - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) -createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) - -createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:${src[t.PRERELEASE]})?${ - src[t.BUILD]}?` + - `)?)?`) - -createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:${src[t.PRERELEASELOOSE]})?${ - src[t.BUILD]}?` + - `)?)?`) - -createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`) -createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -createToken('COERCEPLAIN', `${'(^|[^\\d])' + - '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`) -createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`) -createToken('COERCEFULL', src[t.COERCEPLAIN] + - `(?:${src[t.PRERELEASE]})?` + - `(?:${src[t.BUILD]})?` + - `(?:$|[^\\d])`) -createToken('COERCERTL', src[t.COERCE], true) -createToken('COERCERTLFULL', src[t.COERCEFULL], true) - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -createToken('LONETILDE', '(?:~>?)') - -createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true) -exports.tildeTrimReplace = '$1~' - -createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`) -createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`) - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -createToken('LONECARET', '(?:\\^)') - -createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true) -exports.caretTrimReplace = '$1^' - -createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`) -createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`) - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`) -createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`) - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] -}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true) -exports.comparatorTrimReplace = '$1$2$3' - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAIN]})` + - `\\s*$`) - -createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAINLOOSE]})` + - `\\s*$`) - -// Star ranges basically just allow anything at all. -createToken('STAR', '(<|>)?=?\\s*\\*') -// >=0.0.0 is like a star -createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') -createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') diff --git a/graphql/node_modules/semver/package.json b/graphql/node_modules/semver/package.json deleted file mode 100644 index 663d3701..00000000 --- a/graphql/node_modules/semver/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "semver", - "version": "7.6.3", - "description": "The semantic version parser used by npm.", - "main": "index.js", - "scripts": { - "test": "tap", - "snap": "tap", - "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", - "postlint": "template-oss-check", - "lintfix": "npm run lint -- --fix", - "posttest": "npm run lint", - "template-oss-apply": "template-oss-apply --force" - }, - "devDependencies": { - "@npmcli/eslint-config": "^4.0.0", - "@npmcli/template-oss": "4.22.0", - "benchmark": "^2.1.4", - "tap": "^16.0.0" - }, - "license": "ISC", - "repository": { - "type": "git", - "url": "git+https://github.com/npm/node-semver.git" - }, - "bin": { - "semver": "bin/semver.js" - }, - "files": [ - "bin/", - "lib/", - "classes/", - "functions/", - "internal/", - "ranges/", - "index.js", - "preload.js", - "range.bnf" - ], - "tap": { - "timeout": 30, - "coverage-map": "map.js", - "nyc-arg": [ - "--exclude", - "tap-snapshots/**" - ] - }, - "engines": { - "node": ">=10" - }, - "author": "GitHub Inc.", - "templateOSS": { - "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.22.0", - "engines": ">=10", - "distPaths": [ - "classes/", - "functions/", - "internal/", - "ranges/", - "index.js", - "preload.js", - "range.bnf" - ], - "allowPaths": [ - "/classes/", - "/functions/", - "/internal/", - "/ranges/", - "/index.js", - "/preload.js", - "/range.bnf", - "/benchmarks" - ], - "publish": "true" - } -} diff --git a/graphql/node_modules/semver/preload.js b/graphql/node_modules/semver/preload.js deleted file mode 100644 index 947cd4f7..00000000 --- a/graphql/node_modules/semver/preload.js +++ /dev/null @@ -1,2 +0,0 @@ -// XXX remove in v8 or beyond -module.exports = require('./index.js') diff --git a/graphql/node_modules/semver/range.bnf b/graphql/node_modules/semver/range.bnf deleted file mode 100644 index d4c6ae0d..00000000 --- a/graphql/node_modules/semver/range.bnf +++ /dev/null @@ -1,16 +0,0 @@ -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | [1-9] ( [0-9] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ diff --git a/graphql/node_modules/semver/ranges/gtr.js b/graphql/node_modules/semver/ranges/gtr.js deleted file mode 100644 index db7e3559..00000000 --- a/graphql/node_modules/semver/ranges/gtr.js +++ /dev/null @@ -1,4 +0,0 @@ -// Determine if version is greater than all the versions possible in the range. -const outside = require('./outside') -const gtr = (version, range, options) => outside(version, range, '>', options) -module.exports = gtr diff --git a/graphql/node_modules/semver/ranges/intersects.js b/graphql/node_modules/semver/ranges/intersects.js deleted file mode 100644 index e0e9b7ce..00000000 --- a/graphql/node_modules/semver/ranges/intersects.js +++ /dev/null @@ -1,7 +0,0 @@ -const Range = require('../classes/range') -const intersects = (r1, r2, options) => { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2, options) -} -module.exports = intersects diff --git a/graphql/node_modules/semver/ranges/ltr.js b/graphql/node_modules/semver/ranges/ltr.js deleted file mode 100644 index 528a885e..00000000 --- a/graphql/node_modules/semver/ranges/ltr.js +++ /dev/null @@ -1,4 +0,0 @@ -const outside = require('./outside') -// Determine if version is less than all the versions possible in the range -const ltr = (version, range, options) => outside(version, range, '<', options) -module.exports = ltr diff --git a/graphql/node_modules/semver/ranges/max-satisfying.js b/graphql/node_modules/semver/ranges/max-satisfying.js deleted file mode 100644 index 6e3d993c..00000000 --- a/graphql/node_modules/semver/ranges/max-satisfying.js +++ /dev/null @@ -1,25 +0,0 @@ -const SemVer = require('../classes/semver') -const Range = require('../classes/range') - -const maxSatisfying = (versions, range, options) => { - let max = null - let maxSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} -module.exports = maxSatisfying diff --git a/graphql/node_modules/semver/ranges/min-satisfying.js b/graphql/node_modules/semver/ranges/min-satisfying.js deleted file mode 100644 index 9b60974e..00000000 --- a/graphql/node_modules/semver/ranges/min-satisfying.js +++ /dev/null @@ -1,24 +0,0 @@ -const SemVer = require('../classes/semver') -const Range = require('../classes/range') -const minSatisfying = (versions, range, options) => { - let min = null - let minSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} -module.exports = minSatisfying diff --git a/graphql/node_modules/semver/ranges/min-version.js b/graphql/node_modules/semver/ranges/min-version.js deleted file mode 100644 index 350e1f78..00000000 --- a/graphql/node_modules/semver/ranges/min-version.js +++ /dev/null @@ -1,61 +0,0 @@ -const SemVer = require('../classes/semver') -const Range = require('../classes/range') -const gt = require('../functions/gt') - -const minVersion = (range, loose) => { - range = new Range(range, loose) - - let minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } - - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } - - minver = null - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] - - let setMin = null - comparators.forEach((comparator) => { - // Clone to avoid manipulating the comparator's semver object. - const compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!setMin || gt(compver, setMin)) { - setMin = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error(`Unexpected operation: ${comparator.operator}`) - } - }) - if (setMin && (!minver || gt(minver, setMin))) { - minver = setMin - } - } - - if (minver && range.test(minver)) { - return minver - } - - return null -} -module.exports = minVersion diff --git a/graphql/node_modules/semver/ranges/outside.js b/graphql/node_modules/semver/ranges/outside.js deleted file mode 100644 index ae99b10a..00000000 --- a/graphql/node_modules/semver/ranges/outside.js +++ /dev/null @@ -1,80 +0,0 @@ -const SemVer = require('../classes/semver') -const Comparator = require('../classes/comparator') -const { ANY } = Comparator -const Range = require('../classes/range') -const satisfies = require('../functions/satisfies') -const gt = require('../functions/gt') -const lt = require('../functions/lt') -const lte = require('../functions/lte') -const gte = require('../functions/gte') - -const outside = (version, range, hilo, options) => { - version = new SemVer(version, options) - range = new Range(range, options) - - let gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } - - // If it satisfies the range it is not outside - if (satisfies(version, range, options)) { - return false - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] - - let high = null - let low = null - - comparators.forEach((comparator) => { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } - } - return true -} - -module.exports = outside diff --git a/graphql/node_modules/semver/ranges/simplify.js b/graphql/node_modules/semver/ranges/simplify.js deleted file mode 100644 index 618d5b62..00000000 --- a/graphql/node_modules/semver/ranges/simplify.js +++ /dev/null @@ -1,47 +0,0 @@ -// given a set of versions and a range, create a "simplified" range -// that includes the same versions that the original range does -// If the original range is shorter than the simplified one, return that. -const satisfies = require('../functions/satisfies.js') -const compare = require('../functions/compare.js') -module.exports = (versions, range, options) => { - const set = [] - let first = null - let prev = null - const v = versions.sort((a, b) => compare(a, b, options)) - for (const version of v) { - const included = satisfies(version, range, options) - if (included) { - prev = version - if (!first) { - first = version - } - } else { - if (prev) { - set.push([first, prev]) - } - prev = null - first = null - } - } - if (first) { - set.push([first, null]) - } - - const ranges = [] - for (const [min, max] of set) { - if (min === max) { - ranges.push(min) - } else if (!max && min === v[0]) { - ranges.push('*') - } else if (!max) { - ranges.push(`>=${min}`) - } else if (min === v[0]) { - ranges.push(`<=${max}`) - } else { - ranges.push(`${min} - ${max}`) - } - } - const simplified = ranges.join(' || ') - const original = typeof range.raw === 'string' ? range.raw : String(range) - return simplified.length < original.length ? simplified : range -} diff --git a/graphql/node_modules/semver/ranges/subset.js b/graphql/node_modules/semver/ranges/subset.js deleted file mode 100644 index 1e5c2683..00000000 --- a/graphql/node_modules/semver/ranges/subset.js +++ /dev/null @@ -1,247 +0,0 @@ -const Range = require('../classes/range.js') -const Comparator = require('../classes/comparator.js') -const { ANY } = Comparator -const satisfies = require('../functions/satisfies.js') -const compare = require('../functions/compare.js') - -// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: -// - Every simple range `r1, r2, ...` is a null set, OR -// - Every simple range `r1, r2, ...` which is not a null set is a subset of -// some `R1, R2, ...` -// -// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff: -// - If c is only the ANY comparator -// - If C is only the ANY comparator, return true -// - Else if in prerelease mode, return false -// - else replace c with `[>=0.0.0]` -// - If C is only the ANY comparator -// - if in prerelease mode, return true -// - else replace C with `[>=0.0.0]` -// - Let EQ be the set of = comparators in c -// - If EQ is more than one, return true (null set) -// - Let GT be the highest > or >= comparator in c -// - Let LT be the lowest < or <= comparator in c -// - If GT and LT, and GT.semver > LT.semver, return true (null set) -// - If any C is a = range, and GT or LT are set, return false -// - If EQ -// - If GT, and EQ does not satisfy GT, return true (null set) -// - If LT, and EQ does not satisfy LT, return true (null set) -// - If EQ satisfies every C, return true -// - Else return false -// - If GT -// - If GT.semver is lower than any > or >= comp in C, return false -// - If GT is >=, and GT.semver does not satisfy every C, return false -// - If GT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the GT.semver tuple, return false -// - If LT -// - If LT.semver is greater than any < or <= comp in C, return false -// - If LT is <=, and LT.semver does not satisfy every C, return false -// - If GT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the LT.semver tuple, return false -// - Else return true - -const subset = (sub, dom, options = {}) => { - if (sub === dom) { - return true - } - - sub = new Range(sub, options) - dom = new Range(dom, options) - let sawNonNull = false - - OUTER: for (const simpleSub of sub.set) { - for (const simpleDom of dom.set) { - const isSub = simpleSubset(simpleSub, simpleDom, options) - sawNonNull = sawNonNull || isSub !== null - if (isSub) { - continue OUTER - } - } - // the null set is a subset of everything, but null simple ranges in - // a complex range should be ignored. so if we saw a non-null range, - // then we know this isn't a subset, but if EVERY simple range was null, - // then it is a subset. - if (sawNonNull) { - return false - } - } - return true -} - -const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')] -const minimumVersion = [new Comparator('>=0.0.0')] - -const simpleSubset = (sub, dom, options) => { - if (sub === dom) { - return true - } - - if (sub.length === 1 && sub[0].semver === ANY) { - if (dom.length === 1 && dom[0].semver === ANY) { - return true - } else if (options.includePrerelease) { - sub = minimumVersionWithPreRelease - } else { - sub = minimumVersion - } - } - - if (dom.length === 1 && dom[0].semver === ANY) { - if (options.includePrerelease) { - return true - } else { - dom = minimumVersion - } - } - - const eqSet = new Set() - let gt, lt - for (const c of sub) { - if (c.operator === '>' || c.operator === '>=') { - gt = higherGT(gt, c, options) - } else if (c.operator === '<' || c.operator === '<=') { - lt = lowerLT(lt, c, options) - } else { - eqSet.add(c.semver) - } - } - - if (eqSet.size > 1) { - return null - } - - let gtltComp - if (gt && lt) { - gtltComp = compare(gt.semver, lt.semver, options) - if (gtltComp > 0) { - return null - } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { - return null - } - } - - // will iterate one or zero times - for (const eq of eqSet) { - if (gt && !satisfies(eq, String(gt), options)) { - return null - } - - if (lt && !satisfies(eq, String(lt), options)) { - return null - } - - for (const c of dom) { - if (!satisfies(eq, String(c), options)) { - return false - } - } - - return true - } - - let higher, lower - let hasDomLT, hasDomGT - // if the subset has a prerelease, we need a comparator in the superset - // with the same tuple and a prerelease, or it's not a subset - let needDomLTPre = lt && - !options.includePrerelease && - lt.semver.prerelease.length ? lt.semver : false - let needDomGTPre = gt && - !options.includePrerelease && - gt.semver.prerelease.length ? gt.semver : false - // exception: <1.2.3-0 is the same as <1.2.3 - if (needDomLTPre && needDomLTPre.prerelease.length === 1 && - lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { - needDomLTPre = false - } - - for (const c of dom) { - hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=' - hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=' - if (gt) { - if (needDomGTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomGTPre.major && - c.semver.minor === needDomGTPre.minor && - c.semver.patch === needDomGTPre.patch) { - needDomGTPre = false - } - } - if (c.operator === '>' || c.operator === '>=') { - higher = higherGT(gt, c, options) - if (higher === c && higher !== gt) { - return false - } - } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { - return false - } - } - if (lt) { - if (needDomLTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomLTPre.major && - c.semver.minor === needDomLTPre.minor && - c.semver.patch === needDomLTPre.patch) { - needDomLTPre = false - } - } - if (c.operator === '<' || c.operator === '<=') { - lower = lowerLT(lt, c, options) - if (lower === c && lower !== lt) { - return false - } - } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { - return false - } - } - if (!c.operator && (lt || gt) && gtltComp !== 0) { - return false - } - } - - // if there was a < or >, and nothing in the dom, then must be false - // UNLESS it was limited by another range in the other direction. - // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0 - if (gt && hasDomLT && !lt && gtltComp !== 0) { - return false - } - - if (lt && hasDomGT && !gt && gtltComp !== 0) { - return false - } - - // we needed a prerelease range in a specific tuple, but didn't get one - // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0, - // because it includes prereleases in the 1.2.3 tuple - if (needDomGTPre || needDomLTPre) { - return false - } - - return true -} - -// >=1.2.3 is lower than >1.2.3 -const higherGT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp > 0 ? a - : comp < 0 ? b - : b.operator === '>' && a.operator === '>=' ? b - : a -} - -// <=1.2.3 is higher than <1.2.3 -const lowerLT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp < 0 ? a - : comp > 0 ? b - : b.operator === '<' && a.operator === '<=' ? b - : a -} - -module.exports = subset diff --git a/graphql/node_modules/semver/ranges/to-comparators.js b/graphql/node_modules/semver/ranges/to-comparators.js deleted file mode 100644 index 6c8bc7e6..00000000 --- a/graphql/node_modules/semver/ranges/to-comparators.js +++ /dev/null @@ -1,8 +0,0 @@ -const Range = require('../classes/range') - -// Mostly just for testing and legacy API reasons -const toComparators = (range, options) => - new Range(range, options).set - .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) - -module.exports = toComparators diff --git a/graphql/node_modules/semver/ranges/valid.js b/graphql/node_modules/semver/ranges/valid.js deleted file mode 100644 index 365f3568..00000000 --- a/graphql/node_modules/semver/ranges/valid.js +++ /dev/null @@ -1,11 +0,0 @@ -const Range = require('../classes/range') -const validRange = (range, options) => { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} -module.exports = validRange diff --git a/graphql/node_modules/shebang-command/index.js b/graphql/node_modules/shebang-command/index.js deleted file mode 100644 index f35db308..00000000 --- a/graphql/node_modules/shebang-command/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -const shebangRegex = require('shebang-regex'); - -module.exports = (string = '') => { - const match = string.match(shebangRegex); - - if (!match) { - return null; - } - - const [path, argument] = match[0].replace(/#! ?/, '').split(' '); - const binary = path.split('/').pop(); - - if (binary === 'env') { - return argument; - } - - return argument ? `${binary} ${argument}` : binary; -}; diff --git a/graphql/node_modules/shebang-command/license b/graphql/node_modules/shebang-command/license deleted file mode 100644 index db6bc32c..00000000 --- a/graphql/node_modules/shebang-command/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Kevin Mårtensson (github.com/kevva) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/shebang-command/package.json b/graphql/node_modules/shebang-command/package.json deleted file mode 100644 index 18e3c046..00000000 --- a/graphql/node_modules/shebang-command/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "shebang-command", - "version": "2.0.0", - "description": "Get the command from a shebang", - "license": "MIT", - "repository": "kevva/shebang-command", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "cmd", - "command", - "parse", - "shebang" - ], - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.3.0", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/shebang-command/readme.md b/graphql/node_modules/shebang-command/readme.md deleted file mode 100644 index 84feb442..00000000 --- a/graphql/node_modules/shebang-command/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command) - -> Get the command from a shebang - - -## Install - -``` -$ npm install shebang-command -``` - - -## Usage - -```js -const shebangCommand = require('shebang-command'); - -shebangCommand('#!/usr/bin/env node'); -//=> 'node' - -shebangCommand('#!/bin/bash'); -//=> 'bash' -``` - - -## API - -### shebangCommand(string) - -#### string - -Type: `string` - -String containing a shebang. diff --git a/graphql/node_modules/shebang-regex/index.d.ts b/graphql/node_modules/shebang-regex/index.d.ts deleted file mode 100644 index 61d034b3..00000000 --- a/graphql/node_modules/shebang-regex/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** -Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line. - -@example -``` -import shebangRegex = require('shebang-regex'); - -const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(string); -//=> true - -shebangRegex.exec(string)[0]; -//=> '#!/usr/bin/env node' - -shebangRegex.exec(string)[1]; -//=> '/usr/bin/env node' -``` -*/ -declare const shebangRegex: RegExp; - -export = shebangRegex; diff --git a/graphql/node_modules/shebang-regex/index.js b/graphql/node_modules/shebang-regex/index.js deleted file mode 100644 index 63fc4a0b..00000000 --- a/graphql/node_modules/shebang-regex/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = /^#!(.*)/; diff --git a/graphql/node_modules/shebang-regex/license b/graphql/node_modules/shebang-regex/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/shebang-regex/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/shebang-regex/package.json b/graphql/node_modules/shebang-regex/package.json deleted file mode 100644 index 00ab30fe..00000000 --- a/graphql/node_modules/shebang-regex/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "shebang-regex", - "version": "3.0.0", - "description": "Regular expression for matching a shebang line", - "license": "MIT", - "repository": "sindresorhus/shebang-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "regex", - "regexp", - "shebang", - "match", - "test", - "line" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/shebang-regex/readme.md b/graphql/node_modules/shebang-regex/readme.md deleted file mode 100644 index 5ecf863a..00000000 --- a/graphql/node_modules/shebang-regex/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex) - -> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line - - -## Install - -``` -$ npm install shebang-regex -``` - - -## Usage - -```js -const shebangRegex = require('shebang-regex'); - -const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(string); -//=> true - -shebangRegex.exec(string)[0]; -//=> '#!/usr/bin/env node' - -shebangRegex.exec(string)[1]; -//=> '/usr/bin/env node' -``` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/slash/index.d.ts b/graphql/node_modules/slash/index.d.ts deleted file mode 100644 index f9d07d11..00000000 --- a/graphql/node_modules/slash/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** -Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`. - -[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters. - -@param path - A Windows backslash path. -@returns A path with forward slashes. - -@example -``` -import * as path from 'path'; -import slash = require('slash'); - -const string = path.join('foo', 'bar'); -// Unix => foo/bar -// Windows => foo\\bar - -slash(string); -// Unix => foo/bar -// Windows => foo/bar -``` -*/ -declare function slash(path: string): string; - -export = slash; diff --git a/graphql/node_modules/slash/index.js b/graphql/node_modules/slash/index.js deleted file mode 100644 index 103fbea9..00000000 --- a/graphql/node_modules/slash/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; -module.exports = path => { - const isExtendedLengthPath = /^\\\\\?\\/.test(path); - const hasNonAscii = /[^\u0000-\u0080]+/.test(path); // eslint-disable-line no-control-regex - - if (isExtendedLengthPath || hasNonAscii) { - return path; - } - - return path.replace(/\\/g, '/'); -}; diff --git a/graphql/node_modules/slash/license b/graphql/node_modules/slash/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/slash/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/slash/package.json b/graphql/node_modules/slash/package.json deleted file mode 100644 index c88fcc71..00000000 --- a/graphql/node_modules/slash/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "slash", - "version": "3.0.0", - "description": "Convert Windows backslash paths to slash paths", - "license": "MIT", - "repository": "sindresorhus/slash", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "seperator", - "slash", - "backslash", - "windows", - "convert" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/slash/readme.md b/graphql/node_modules/slash/readme.md deleted file mode 100644 index f0ef4acb..00000000 --- a/graphql/node_modules/slash/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# slash [![Build Status](https://travis-ci.org/sindresorhus/slash.svg?branch=master)](https://travis-ci.org/sindresorhus/slash) - -> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar` - -[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters. - -This was created since the `path` methods in Node.js outputs `\\` paths on Windows. - - -## Install - -``` -$ npm install slash -``` - - -## Usage - -```js -const path = require('path'); -const slash = require('slash'); - -const string = path.join('foo', 'bar'); -// Unix => foo/bar -// Windows => foo\\bar - -slash(string); -// Unix => foo/bar -// Windows => foo/bar -``` - - -## API - -### slash(path) - -Type: `string` - -Accepts a Windows backslash path and returns a path with forward slashes. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/graphql/node_modules/strip-ansi/index.d.ts b/graphql/node_modules/strip-ansi/index.d.ts deleted file mode 100644 index 907fccc2..00000000 --- a/graphql/node_modules/strip-ansi/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** -Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string. - -@example -``` -import stripAnsi = require('strip-ansi'); - -stripAnsi('\u001B[4mUnicorn\u001B[0m'); -//=> 'Unicorn' - -stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); -//=> 'Click' -``` -*/ -declare function stripAnsi(string: string): string; - -export = stripAnsi; diff --git a/graphql/node_modules/strip-ansi/index.js b/graphql/node_modules/strip-ansi/index.js deleted file mode 100644 index 9a593dfc..00000000 --- a/graphql/node_modules/strip-ansi/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -const ansiRegex = require('ansi-regex'); - -module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; diff --git a/graphql/node_modules/strip-ansi/license b/graphql/node_modules/strip-ansi/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/strip-ansi/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/strip-ansi/package.json b/graphql/node_modules/strip-ansi/package.json deleted file mode 100644 index 1a41108d..00000000 --- a/graphql/node_modules/strip-ansi/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "strip-ansi", - "version": "6.0.1", - "description": "Strip ANSI escape codes from a string", - "license": "MIT", - "repository": "chalk/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "strip", - "trim", - "remove", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } -} diff --git a/graphql/node_modules/strip-ansi/readme.md b/graphql/node_modules/strip-ansi/readme.md deleted file mode 100644 index 7c4b56d4..00000000 --- a/graphql/node_modules/strip-ansi/readme.md +++ /dev/null @@ -1,46 +0,0 @@ -# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi) - -> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string - - -## Install - -``` -$ npm install strip-ansi -``` - - -## Usage - -```js -const stripAnsi = require('strip-ansi'); - -stripAnsi('\u001B[4mUnicorn\u001B[0m'); -//=> 'Unicorn' - -stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); -//=> 'Click' -``` - - -## strip-ansi for enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of strip-ansi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - - -## Related - -- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module -- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module -- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes -- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - diff --git a/graphql/node_modules/strip-json-comments/index.d.ts b/graphql/node_modules/strip-json-comments/index.d.ts deleted file mode 100644 index 28ba3c8a..00000000 --- a/graphql/node_modules/strip-json-comments/index.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -declare namespace stripJsonComments { - interface Options { - /** - Replace comments with whitespace instead of stripping them entirely. - - @default true - */ - readonly whitespace?: boolean; - } -} - -/** -Strip comments from JSON. Lets you use comments in your JSON files! - -It will replace single-line comments `//` and multi-line comments `/**\/` with whitespace. This allows JSON error positions to remain as close as possible to the original source. - -@param jsonString - Accepts a string with JSON. -@returns A JSON string without comments. - -@example -``` -const json = `{ - // Rainbows - "unicorn": "cake" -}`; - -JSON.parse(stripJsonComments(json)); -//=> {unicorn: 'cake'} -``` -*/ -declare function stripJsonComments( - jsonString: string, - options?: stripJsonComments.Options -): string; - -export = stripJsonComments; diff --git a/graphql/node_modules/strip-json-comments/index.js b/graphql/node_modules/strip-json-comments/index.js deleted file mode 100644 index bb00b38b..00000000 --- a/graphql/node_modules/strip-json-comments/index.js +++ /dev/null @@ -1,77 +0,0 @@ -'use strict'; -const singleComment = Symbol('singleComment'); -const multiComment = Symbol('multiComment'); -const stripWithoutWhitespace = () => ''; -const stripWithWhitespace = (string, start, end) => string.slice(start, end).replace(/\S/g, ' '); - -const isEscaped = (jsonString, quotePosition) => { - let index = quotePosition - 1; - let backslashCount = 0; - - while (jsonString[index] === '\\') { - index -= 1; - backslashCount += 1; - } - - return Boolean(backslashCount % 2); -}; - -module.exports = (jsonString, options = {}) => { - if (typeof jsonString !== 'string') { - throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof jsonString}\``); - } - - const strip = options.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace; - - let insideString = false; - let insideComment = false; - let offset = 0; - let result = ''; - - for (let i = 0; i < jsonString.length; i++) { - const currentCharacter = jsonString[i]; - const nextCharacter = jsonString[i + 1]; - - if (!insideComment && currentCharacter === '"') { - const escaped = isEscaped(jsonString, i); - if (!escaped) { - insideString = !insideString; - } - } - - if (insideString) { - continue; - } - - if (!insideComment && currentCharacter + nextCharacter === '//') { - result += jsonString.slice(offset, i); - offset = i; - insideComment = singleComment; - i++; - } else if (insideComment === singleComment && currentCharacter + nextCharacter === '\r\n') { - i++; - insideComment = false; - result += strip(jsonString, offset, i); - offset = i; - continue; - } else if (insideComment === singleComment && currentCharacter === '\n') { - insideComment = false; - result += strip(jsonString, offset, i); - offset = i; - } else if (!insideComment && currentCharacter + nextCharacter === '/*') { - result += jsonString.slice(offset, i); - offset = i; - insideComment = multiComment; - i++; - continue; - } else if (insideComment === multiComment && currentCharacter + nextCharacter === '*/') { - i++; - insideComment = false; - result += strip(jsonString, offset, i + 1); - offset = i + 1; - continue; - } - } - - return result + (insideComment ? strip(jsonString.slice(offset)) : jsonString.slice(offset)); -}; diff --git a/graphql/node_modules/strip-json-comments/license b/graphql/node_modules/strip-json-comments/license deleted file mode 100644 index fa7ceba3..00000000 --- a/graphql/node_modules/strip-json-comments/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/strip-json-comments/package.json b/graphql/node_modules/strip-json-comments/package.json deleted file mode 100644 index ce7875aa..00000000 --- a/graphql/node_modules/strip-json-comments/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "strip-json-comments", - "version": "3.1.1", - "description": "Strip comments from JSON. Lets you use comments in your JSON files!", - "license": "MIT", - "repository": "sindresorhus/strip-json-comments", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "json", - "strip", - "comments", - "remove", - "delete", - "trim", - "multiline", - "parse", - "config", - "configuration", - "settings", - "util", - "env", - "environment", - "jsonc" - ], - "devDependencies": { - "ava": "^1.4.1", - "matcha": "^0.7.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/graphql/node_modules/strip-json-comments/readme.md b/graphql/node_modules/strip-json-comments/readme.md deleted file mode 100644 index cc542e50..00000000 --- a/graphql/node_modules/strip-json-comments/readme.md +++ /dev/null @@ -1,78 +0,0 @@ -# strip-json-comments [![Build Status](https://travis-ci.com/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.com/github/sindresorhus/strip-json-comments) - -> Strip comments from JSON. Lets you use comments in your JSON files! - -This is now possible: - -```js -{ - // Rainbows - "unicorn": /* ❤ */ "cake" -} -``` - -It will replace single-line comments `//` and multi-line comments `/**/` with whitespace. This allows JSON error positions to remain as close as possible to the original source. - -Also available as a [Gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[Grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[Broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin. - -## Install - -``` -$ npm install strip-json-comments -``` - -## Usage - -```js -const json = `{ - // Rainbows - "unicorn": /* ❤ */ "cake" -}`; - -JSON.parse(stripJsonComments(json)); -//=> {unicorn: 'cake'} -``` - -## API - -### stripJsonComments(jsonString, options?) - -#### jsonString - -Type: `string` - -Accepts a string with JSON and returns a string without comments. - -#### options - -Type: `object` - -##### whitespace - -Type: `boolean`\ -Default: `true` - -Replace comments with whitespace instead of stripping them entirely. - -## Benchmark - -``` -$ npm run bench -``` - -## Related - -- [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module -- [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/graphql/node_modules/supports-color/browser.js b/graphql/node_modules/supports-color/browser.js deleted file mode 100644 index 62afa3a7..00000000 --- a/graphql/node_modules/supports-color/browser.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; -module.exports = { - stdout: false, - stderr: false -}; diff --git a/graphql/node_modules/supports-color/index.js b/graphql/node_modules/supports-color/index.js deleted file mode 100644 index 6fada390..00000000 --- a/graphql/node_modules/supports-color/index.js +++ /dev/null @@ -1,135 +0,0 @@ -'use strict'; -const os = require('os'); -const tty = require('tty'); -const hasFlag = require('has-flag'); - -const {env} = process; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false') || - hasFlag('color=never')) { - forceColor = 0; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = 1; -} - -if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - forceColor = 1; - } else if (env.FORCE_COLOR === 'false') { - forceColor = 0; - } else { - forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); - } -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(haveStream, streamIsTTY) { - if (forceColor === 0) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (haveStream && !streamIsTTY && forceColor === undefined) { - return 0; - } - - const min = forceColor || 0; - - if (env.TERM === 'dumb') { - return min; - } - - if (process.platform === 'win32') { - // Windows 10 build 10586 is the first Windows release that supports 256 colors. - // Windows 10 build 14931 is the first release that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream, stream && stream.isTTY); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: translateLevel(supportsColor(true, tty.isatty(1))), - stderr: translateLevel(supportsColor(true, tty.isatty(2))) -}; diff --git a/graphql/node_modules/supports-color/license b/graphql/node_modules/supports-color/license deleted file mode 100644 index e7af2f77..00000000 --- a/graphql/node_modules/supports-color/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/supports-color/package.json b/graphql/node_modules/supports-color/package.json deleted file mode 100644 index f7182edc..00000000 --- a/graphql/node_modules/supports-color/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "supports-color", - "version": "7.2.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" -} diff --git a/graphql/node_modules/supports-color/readme.md b/graphql/node_modules/supports-color/readme.md deleted file mode 100644 index 36542285..00000000 --- a/graphql/node_modules/supports-color/readme.md +++ /dev/null @@ -1,76 +0,0 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) - -> Detect whether a terminal supports color - - -## Install - -``` -$ npm install supports-color -``` - - -## Usage - -```js -const supportsColor = require('supports-color'); - -if (supportsColor.stdout) { - console.log('Terminal stdout supports color'); -} - -if (supportsColor.stdout.has256) { - console.log('Terminal stdout supports 256 colors'); -} - -if (supportsColor.stderr.has16m) { - console.log('Terminal stderr supports 16 million colors (truecolor)'); -} -``` - - -## API - -Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported. - -The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) - - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks. - -Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- diff --git a/graphql/node_modules/text-table/.travis.yml b/graphql/node_modules/text-table/.travis.yml deleted file mode 100644 index cc4dba29..00000000 --- a/graphql/node_modules/text-table/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/graphql/node_modules/text-table/LICENSE b/graphql/node_modules/text-table/LICENSE deleted file mode 100644 index ee27ba4b..00000000 --- a/graphql/node_modules/text-table/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/text-table/example/align.js b/graphql/node_modules/text-table/example/align.js deleted file mode 100644 index 9be43098..00000000 --- a/graphql/node_modules/text-table/example/align.js +++ /dev/null @@ -1,8 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] -], { align: [ 'l', 'r' ] }); -console.log(t); diff --git a/graphql/node_modules/text-table/example/center.js b/graphql/node_modules/text-table/example/center.js deleted file mode 100644 index 52b1c69e..00000000 --- a/graphql/node_modules/text-table/example/center.js +++ /dev/null @@ -1,8 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] -], { align: [ 'l', 'c', 'l' ] }); -console.log(t); diff --git a/graphql/node_modules/text-table/example/dotalign.js b/graphql/node_modules/text-table/example/dotalign.js deleted file mode 100644 index 2cea6299..00000000 --- a/graphql/node_modules/text-table/example/dotalign.js +++ /dev/null @@ -1,9 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] -], { align: [ 'l', '.' ] }); -console.log(t); diff --git a/graphql/node_modules/text-table/example/doubledot.js b/graphql/node_modules/text-table/example/doubledot.js deleted file mode 100644 index bab983b6..00000000 --- a/graphql/node_modules/text-table/example/doubledot.js +++ /dev/null @@ -1,11 +0,0 @@ -var table = require('../'); -var t = table([ - [ '0.1.2' ], - [ '11.22.33' ], - [ '5.6.7' ], - [ '1.22222' ], - [ '12345.' ], - [ '5555.' ], - [ '123' ] -], { align: [ '.' ] }); -console.log(t); diff --git a/graphql/node_modules/text-table/example/table.js b/graphql/node_modules/text-table/example/table.js deleted file mode 100644 index 903ea4c4..00000000 --- a/graphql/node_modules/text-table/example/table.js +++ /dev/null @@ -1,6 +0,0 @@ -var table = require('../'); -var t = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] -]); -console.log(t); diff --git a/graphql/node_modules/text-table/index.js b/graphql/node_modules/text-table/index.js deleted file mode 100644 index 5c0ba987..00000000 --- a/graphql/node_modules/text-table/index.js +++ /dev/null @@ -1,86 +0,0 @@ -module.exports = function (rows_, opts) { - if (!opts) opts = {}; - var hsep = opts.hsep === undefined ? ' ' : opts.hsep; - var align = opts.align || []; - var stringLength = opts.stringLength - || function (s) { return String(s).length; } - ; - - var dotsizes = reduce(rows_, function (acc, row) { - forEach(row, function (c, ix) { - var n = dotindex(c); - if (!acc[ix] || n > acc[ix]) acc[ix] = n; - }); - return acc; - }, []); - - var rows = map(rows_, function (row) { - return map(row, function (c_, ix) { - var c = String(c_); - if (align[ix] === '.') { - var index = dotindex(c); - var size = dotsizes[ix] + (/\./.test(c) ? 1 : 2) - - (stringLength(c) - index) - ; - return c + Array(size).join(' '); - } - else return c; - }); - }); - - var sizes = reduce(rows, function (acc, row) { - forEach(row, function (c, ix) { - var n = stringLength(c); - if (!acc[ix] || n > acc[ix]) acc[ix] = n; - }); - return acc; - }, []); - - return map(rows, function (row) { - return map(row, function (c, ix) { - var n = (sizes[ix] - stringLength(c)) || 0; - var s = Array(Math.max(n + 1, 1)).join(' '); - if (align[ix] === 'r' || align[ix] === '.') { - return s + c; - } - if (align[ix] === 'c') { - return Array(Math.ceil(n / 2 + 1)).join(' ') - + c + Array(Math.floor(n / 2 + 1)).join(' ') - ; - } - - return c + s; - }).join(hsep).replace(/\s+$/, ''); - }).join('\n'); -}; - -function dotindex (c) { - var m = /\.[^.]*$/.exec(c); - return m ? m.index + 1 : c.length; -} - -function reduce (xs, f, init) { - if (xs.reduce) return xs.reduce(f, init); - var i = 0; - var acc = arguments.length >= 3 ? init : xs[i++]; - for (; i < xs.length; i++) { - f(acc, xs[i], i); - } - return acc; -} - -function forEach (xs, f) { - if (xs.forEach) return xs.forEach(f); - for (var i = 0; i < xs.length; i++) { - f.call(xs, xs[i], i); - } -} - -function map (xs, f) { - if (xs.map) return xs.map(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - res.push(f.call(xs, xs[i], i)); - } - return res; -} diff --git a/graphql/node_modules/text-table/package.json b/graphql/node_modules/text-table/package.json deleted file mode 100644 index b4d17a4f..00000000 --- a/graphql/node_modules/text-table/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "text-table", - "version": "0.2.0", - "description": "borderless text tables with alignment", - "main": "index.js", - "devDependencies": { - "tap": "~0.4.0", - "tape": "~1.0.2", - "cli-color": "~0.2.3" - }, - "scripts": { - "test": "tap test/*.js" - }, - "testling" : { - "files" : "test/*.js", - "browsers" : [ - "ie/6..latest", - "chrome/20..latest", - "firefox/10..latest", - "safari/latest", - "opera/11.0..latest", - "iphone/6", "ipad/6" - ] - }, - "repository": { - "type": "git", - "url": "git://github.com/substack/text-table.git" - }, - "homepage": "https://github.com/substack/text-table", - "keywords": [ - "text", - "table", - "align", - "ascii", - "rows", - "tabular" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT" -} diff --git a/graphql/node_modules/text-table/readme.markdown b/graphql/node_modules/text-table/readme.markdown deleted file mode 100644 index 18806acd..00000000 --- a/graphql/node_modules/text-table/readme.markdown +++ /dev/null @@ -1,134 +0,0 @@ -# text-table - -generate borderless text table strings suitable for printing to stdout - -[![build status](https://secure.travis-ci.org/substack/text-table.png)](http://travis-ci.org/substack/text-table) - -[![browser support](https://ci.testling.com/substack/text-table.png)](http://ci.testling.com/substack/text-table) - -# example - -## default align - -``` js -var table = require('text-table'); -var t = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] -]); -console.log(t); -``` - -``` -master 0123456789abcdef -staging fedcba9876543210 -``` - -## left-right align - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] -], { align: [ 'l', 'r' ] }); -console.log(t); -``` - -``` -beep 1024 -boop 33450 -foo 1006 -bar 45 -``` - -## dotted align - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] -], { align: [ 'l', '.' ] }); -console.log(t); -``` - -``` -beep 1024 -boop 334.212 -foo 1006 -bar 45.6 -baz 123. -``` - -## centered - -``` js -var table = require('text-table'); -var t = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] -], { align: [ 'l', 'c', 'l' ] }); -console.log(t); -``` - -``` -beep 1024 xyz -boop 3388450 tuv -foo 10106 qrstuv -bar 45 lmno -``` - -# methods - -``` js -var table = require('text-table') -``` - -## var s = table(rows, opts={}) - -Return a formatted table string `s` from an array of `rows` and some options -`opts`. - -`rows` should be an array of arrays containing strings, numbers, or other -printable values. - -options can be: - -* `opts.hsep` - separator to use between columns, default `' '` -* `opts.align` - array of alignment types for each column, default `['l','l',...]` -* `opts.stringLength` - callback function to use when calculating the string length - -alignment types are: - -* `'l'` - left -* `'r'` - right -* `'c'` - center -* `'.'` - decimal - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install text-table -``` - -# Use with ANSI-colors - -Since the string length of ANSI color schemes does not equal the length -JavaScript sees internally it is necessary to pass the a custom string length -calculator during the main function call. - -See the `test/ansi-colors.js` file for an example. - -# license - -MIT diff --git a/graphql/node_modules/text-table/test/align.js b/graphql/node_modules/text-table/test/align.js deleted file mode 100644 index 245357f2..00000000 --- a/graphql/node_modules/text-table/test/align.js +++ /dev/null @@ -1,18 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('align', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024' ], - [ 'boop', '33450' ], - [ 'foo', '1006' ], - [ 'bar', '45' ] - ], { align: [ 'l', 'r' ] }); - t.equal(s, [ - 'beep 1024', - 'boop 33450', - 'foo 1006', - 'bar 45' - ].join('\n')); -}); diff --git a/graphql/node_modules/text-table/test/ansi-colors.js b/graphql/node_modules/text-table/test/ansi-colors.js deleted file mode 100644 index fbc5bb10..00000000 --- a/graphql/node_modules/text-table/test/ansi-colors.js +++ /dev/null @@ -1,32 +0,0 @@ -var test = require('tape'); -var table = require('../'); -var color = require('cli-color'); -var ansiTrim = require('cli-color/lib/trim'); - -test('center', function (t) { - t.plan(1); - var opts = { - align: [ 'l', 'c', 'l' ], - stringLength: function(s) { return ansiTrim(s).length } - }; - var s = table([ - [ - color.red('Red'), color.green('Green'), color.blue('Blue') - ], - [ - color.bold('Bold'), color.underline('Underline'), - color.italic('Italic') - ], - [ - color.inverse('Inverse'), color.strike('Strike'), - color.blink('Blink') - ], - [ 'bar', '45', 'lmno' ] - ], opts); - t.equal(ansiTrim(s), [ - 'Red Green Blue', - 'Bold Underline Italic', - 'Inverse Strike Blink', - 'bar 45 lmno' - ].join('\n')); -}); diff --git a/graphql/node_modules/text-table/test/center.js b/graphql/node_modules/text-table/test/center.js deleted file mode 100644 index c2c7a62a..00000000 --- a/graphql/node_modules/text-table/test/center.js +++ /dev/null @@ -1,18 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('center', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024', 'xyz' ], - [ 'boop', '3388450', 'tuv' ], - [ 'foo', '10106', 'qrstuv' ], - [ 'bar', '45', 'lmno' ] - ], { align: [ 'l', 'c', 'l' ] }); - t.equal(s, [ - 'beep 1024 xyz', - 'boop 3388450 tuv', - 'foo 10106 qrstuv', - 'bar 45 lmno' - ].join('\n')); -}); diff --git a/graphql/node_modules/text-table/test/dotalign.js b/graphql/node_modules/text-table/test/dotalign.js deleted file mode 100644 index f804f928..00000000 --- a/graphql/node_modules/text-table/test/dotalign.js +++ /dev/null @@ -1,20 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('dot align', function (t) { - t.plan(1); - var s = table([ - [ 'beep', '1024' ], - [ 'boop', '334.212' ], - [ 'foo', '1006' ], - [ 'bar', '45.6' ], - [ 'baz', '123.' ] - ], { align: [ 'l', '.' ] }); - t.equal(s, [ - 'beep 1024', - 'boop 334.212', - 'foo 1006', - 'bar 45.6', - 'baz 123.' - ].join('\n')); -}); diff --git a/graphql/node_modules/text-table/test/doubledot.js b/graphql/node_modules/text-table/test/doubledot.js deleted file mode 100644 index 659b57c9..00000000 --- a/graphql/node_modules/text-table/test/doubledot.js +++ /dev/null @@ -1,24 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('dot align', function (t) { - t.plan(1); - var s = table([ - [ '0.1.2' ], - [ '11.22.33' ], - [ '5.6.7' ], - [ '1.22222' ], - [ '12345.' ], - [ '5555.' ], - [ '123' ] - ], { align: [ '.' ] }); - t.equal(s, [ - ' 0.1.2', - '11.22.33', - ' 5.6.7', - ' 1.22222', - '12345.', - ' 5555.', - ' 123' - ].join('\n')); -}); diff --git a/graphql/node_modules/text-table/test/table.js b/graphql/node_modules/text-table/test/table.js deleted file mode 100644 index 9c670146..00000000 --- a/graphql/node_modules/text-table/test/table.js +++ /dev/null @@ -1,14 +0,0 @@ -var test = require('tape'); -var table = require('../'); - -test('table', function (t) { - t.plan(1); - var s = table([ - [ 'master', '0123456789abcdef' ], - [ 'staging', 'fedcba9876543210' ] - ]); - t.equal(s, [ - 'master 0123456789abcdef', - 'staging fedcba9876543210' - ].join('\n')); -}); diff --git a/graphql/node_modules/to-regex-range/LICENSE b/graphql/node_modules/to-regex-range/LICENSE deleted file mode 100644 index 7cccaf9e..00000000 --- a/graphql/node_modules/to-regex-range/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/graphql/node_modules/to-regex-range/README.md b/graphql/node_modules/to-regex-range/README.md deleted file mode 100644 index 38887daf..00000000 --- a/graphql/node_modules/to-regex-range/README.md +++ /dev/null @@ -1,305 +0,0 @@ -# to-regex-range [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/to-regex-range.svg?style=flat)](https://www.npmjs.com/package/to-regex-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/to-regex-range.svg?style=flat)](https://npmjs.org/package/to-regex-range) [![NPM total downloads](https://img.shields.io/npm/dt/to-regex-range.svg?style=flat)](https://npmjs.org/package/to-regex-range) [![Linux Build Status](https://img.shields.io/travis/micromatch/to-regex-range.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/to-regex-range) - -> Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save to-regex-range -``` - -
-What does this do? - -
- -This libary generates the `source` string to be passed to `new RegExp()` for matching a range of numbers. - -**Example** - -```js -const toRegexRange = require('to-regex-range'); -const regex = new RegExp(toRegexRange('15', '95')); -``` - -A string is returned so that you can do whatever you need with it before passing it to `new RegExp()` (like adding `^` or `$` boundaries, defining flags, or combining it another string). - -
- -
- -
-Why use this library? - -
- -### Convenience - -Creating regular expressions for matching numbers gets deceptively complicated pretty fast. - -For example, let's say you need a validation regex for matching part of a user-id, postal code, social security number, tax id, etc: - -* regex for matching `1` => `/1/` (easy enough) -* regex for matching `1` through `5` => `/[1-5]/` (not bad...) -* regex for matching `1` or `5` => `/(1|5)/` (still easy...) -* regex for matching `1` through `50` => `/([1-9]|[1-4][0-9]|50)/` (uh-oh...) -* regex for matching `1` through `55` => `/([1-9]|[1-4][0-9]|5[0-5])/` (no prob, I can do this...) -* regex for matching `1` through `555` => `/([1-9]|[1-9][0-9]|[1-4][0-9]{2}|5[0-4][0-9]|55[0-5])/` (maybe not...) -* regex for matching `0001` through `5555` => `/(0{3}[1-9]|0{2}[1-9][0-9]|0[1-9][0-9]{2}|[1-4][0-9]{3}|5[0-4][0-9]{2}|55[0-4][0-9]|555[0-5])/` (okay, I get the point!) - -The numbers are contrived, but they're also really basic. In the real world you might need to generate a regex on-the-fly for validation. - -**Learn more** - -If you're interested in learning more about [character classes](http://www.regular-expressions.info/charclass.html) and other regex features, I personally have always found [regular-expressions.info](http://www.regular-expressions.info/charclass.html) to be pretty useful. - -### Heavily tested - -As of April 07, 2019, this library runs [>1m test assertions](./test/test.js) against generated regex-ranges to provide brute-force verification that results are correct. - -Tests run in ~280ms on my MacBook Pro, 2.5 GHz Intel Core i7. - -### Optimized - -Generated regular expressions are optimized: - -* duplicate sequences and character classes are reduced using quantifiers -* smart enough to use `?` conditionals when number(s) or range(s) can be positive or negative -* uses fragment caching to avoid processing the same exact string more than once - -
- -
- -## Usage - -Add this library to your javascript application with the following line of code - -```js -const toRegexRange = require('to-regex-range'); -``` - -The main export is a function that takes two integers: the `min` value and `max` value (formatted as strings or numbers). - -```js -const source = toRegexRange('15', '95'); -//=> 1[5-9]|[2-8][0-9]|9[0-5] - -const regex = new RegExp(`^${source}$`); -console.log(regex.test('14')); //=> false -console.log(regex.test('50')); //=> true -console.log(regex.test('94')); //=> true -console.log(regex.test('96')); //=> false -``` - -## Options - -### options.capture - -**Type**: `boolean` - -**Deafault**: `undefined` - -Wrap the returned value in parentheses when there is more than one regex condition. Useful when you're dynamically generating ranges. - -```js -console.log(toRegexRange('-10', '10')); -//=> -[1-9]|-?10|[0-9] - -console.log(toRegexRange('-10', '10', { capture: true })); -//=> (-[1-9]|-?10|[0-9]) -``` - -### options.shorthand - -**Type**: `boolean` - -**Deafault**: `undefined` - -Use the regex shorthand for `[0-9]`: - -```js -console.log(toRegexRange('0', '999999')); -//=> [0-9]|[1-9][0-9]{1,5} - -console.log(toRegexRange('0', '999999', { shorthand: true })); -//=> \d|[1-9]\d{1,5} -``` - -### options.relaxZeros - -**Type**: `boolean` - -**Default**: `true` - -This option relaxes matching for leading zeros when when ranges are zero-padded. - -```js -const source = toRegexRange('-0010', '0010'); -const regex = new RegExp(`^${source}$`); -console.log(regex.test('-10')); //=> true -console.log(regex.test('-010')); //=> true -console.log(regex.test('-0010')); //=> true -console.log(regex.test('10')); //=> true -console.log(regex.test('010')); //=> true -console.log(regex.test('0010')); //=> true -``` - -When `relaxZeros` is false, matching is strict: - -```js -const source = toRegexRange('-0010', '0010', { relaxZeros: false }); -const regex = new RegExp(`^${source}$`); -console.log(regex.test('-10')); //=> false -console.log(regex.test('-010')); //=> false -console.log(regex.test('-0010')); //=> true -console.log(regex.test('10')); //=> false -console.log(regex.test('010')); //=> false -console.log(regex.test('0010')); //=> true -``` - -## Examples - -| **Range** | **Result** | **Compile time** | -| --- | --- | --- | -| `toRegexRange(-10, 10)` | `-[1-9]\|-?10\|[0-9]` | _132μs_ | -| `toRegexRange(-100, -10)` | `-1[0-9]\|-[2-9][0-9]\|-100` | _50μs_ | -| `toRegexRange(-100, 100)` | `-[1-9]\|-?[1-9][0-9]\|-?100\|[0-9]` | _42μs_ | -| `toRegexRange(001, 100)` | `0{0,2}[1-9]\|0?[1-9][0-9]\|100` | _109μs_ | -| `toRegexRange(001, 555)` | `0{0,2}[1-9]\|0?[1-9][0-9]\|[1-4][0-9]{2}\|5[0-4][0-9]\|55[0-5]` | _51μs_ | -| `toRegexRange(0010, 1000)` | `0{0,2}1[0-9]\|0{0,2}[2-9][0-9]\|0?[1-9][0-9]{2}\|1000` | _31μs_ | -| `toRegexRange(1, 50)` | `[1-9]\|[1-4][0-9]\|50` | _24μs_ | -| `toRegexRange(1, 55)` | `[1-9]\|[1-4][0-9]\|5[0-5]` | _23μs_ | -| `toRegexRange(1, 555)` | `[1-9]\|[1-9][0-9]\|[1-4][0-9]{2}\|5[0-4][0-9]\|55[0-5]` | _30μs_ | -| `toRegexRange(1, 5555)` | `[1-9]\|[1-9][0-9]{1,2}\|[1-4][0-9]{3}\|5[0-4][0-9]{2}\|55[0-4][0-9]\|555[0-5]` | _43μs_ | -| `toRegexRange(111, 555)` | `11[1-9]\|1[2-9][0-9]\|[2-4][0-9]{2}\|5[0-4][0-9]\|55[0-5]` | _38μs_ | -| `toRegexRange(29, 51)` | `29\|[34][0-9]\|5[01]` | _24μs_ | -| `toRegexRange(31, 877)` | `3[1-9]\|[4-9][0-9]\|[1-7][0-9]{2}\|8[0-6][0-9]\|87[0-7]` | _32μs_ | -| `toRegexRange(5, 5)` | `5` | _8μs_ | -| `toRegexRange(5, 6)` | `5\|6` | _11μs_ | -| `toRegexRange(1, 2)` | `1\|2` | _6μs_ | -| `toRegexRange(1, 5)` | `[1-5]` | _15μs_ | -| `toRegexRange(1, 10)` | `[1-9]\|10` | _22μs_ | -| `toRegexRange(1, 100)` | `[1-9]\|[1-9][0-9]\|100` | _25μs_ | -| `toRegexRange(1, 1000)` | `[1-9]\|[1-9][0-9]{1,2}\|1000` | _31μs_ | -| `toRegexRange(1, 10000)` | `[1-9]\|[1-9][0-9]{1,3}\|10000` | _34μs_ | -| `toRegexRange(1, 100000)` | `[1-9]\|[1-9][0-9]{1,4}\|100000` | _36μs_ | -| `toRegexRange(1, 1000000)` | `[1-9]\|[1-9][0-9]{1,5}\|1000000` | _42μs_ | -| `toRegexRange(1, 10000000)` | `[1-9]\|[1-9][0-9]{1,6}\|10000000` | _42μs_ | - -## Heads up! - -**Order of arguments** - -When the `min` is larger than the `max`, values will be flipped to create a valid range: - -```js -toRegexRange('51', '29'); -``` - -Is effectively flipped to: - -```js -toRegexRange('29', '51'); -//=> 29|[3-4][0-9]|5[0-1] -``` - -**Steps / increments** - -This library does not support steps (increments). A pr to add support would be welcome. - -## History - -### v2.0.0 - 2017-04-21 - -**New features** - -Adds support for zero-padding! - -### v1.0.0 - -**Optimizations** - -Repeating ranges are now grouped using quantifiers. rocessing time is roughly the same, but the generated regex is much smaller, which should result in faster matching. - -## Attribution - -Inspired by the python library [range-regex](https://github.com/dimka665/range-regex). - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [expand-range](https://www.npmjs.com/package/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used… [more](https://github.com/jonschlinkert/expand-range) | [homepage](https://github.com/jonschlinkert/expand-range "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.") -* [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or `step` to… [more](https://github.com/jonschlinkert/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`") -* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/micromatch/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") -* [repeat-element](https://www.npmjs.com/package/repeat-element): Create an array by repeating the given value n times. | [homepage](https://github.com/jonschlinkert/repeat-element "Create an array by repeating the given value n times.") -* [repeat-string](https://www.npmjs.com/package/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. | [homepage](https://github.com/jonschlinkert/repeat-string "Repeat the given string n times. Fastest implementation for repeating a string.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 63 | [jonschlinkert](https://github.com/jonschlinkert) | -| 3 | [doowb](https://github.com/doowb) | -| 2 | [realityking](https://github.com/realityking) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! - - - - - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 07, 2019._ \ No newline at end of file diff --git a/graphql/node_modules/to-regex-range/index.js b/graphql/node_modules/to-regex-range/index.js deleted file mode 100644 index 77fbaced..00000000 --- a/graphql/node_modules/to-regex-range/index.js +++ /dev/null @@ -1,288 +0,0 @@ -/*! - * to-regex-range - * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -const isNumber = require('is-number'); - -const toRegexRange = (min, max, options) => { - if (isNumber(min) === false) { - throw new TypeError('toRegexRange: expected the first argument to be a number'); - } - - if (max === void 0 || min === max) { - return String(min); - } - - if (isNumber(max) === false) { - throw new TypeError('toRegexRange: expected the second argument to be a number.'); - } - - let opts = { relaxZeros: true, ...options }; - if (typeof opts.strictZeros === 'boolean') { - opts.relaxZeros = opts.strictZeros === false; - } - - let relax = String(opts.relaxZeros); - let shorthand = String(opts.shorthand); - let capture = String(opts.capture); - let wrap = String(opts.wrap); - let cacheKey = min + ':' + max + '=' + relax + shorthand + capture + wrap; - - if (toRegexRange.cache.hasOwnProperty(cacheKey)) { - return toRegexRange.cache[cacheKey].result; - } - - let a = Math.min(min, max); - let b = Math.max(min, max); - - if (Math.abs(a - b) === 1) { - let result = min + '|' + max; - if (opts.capture) { - return `(${result})`; - } - if (opts.wrap === false) { - return result; - } - return `(?:${result})`; - } - - let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a, b }; - let positives = []; - let negatives = []; - - if (isPadded) { - state.isPadded = isPadded; - state.maxLen = String(state.max).length; - } - - if (a < 0) { - let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a), state, opts); - a = state.a = 0; - } - - if (b >= 0) { - positives = splitToPatterns(a, b, state, opts); - } - - state.negatives = negatives; - state.positives = positives; - state.result = collatePatterns(negatives, positives, opts); - - if (opts.capture === true) { - state.result = `(${state.result})`; - } else if (opts.wrap !== false && (positives.length + negatives.length) > 1) { - state.result = `(?:${state.result})`; - } - - toRegexRange.cache[cacheKey] = state; - return state.result; -}; - -function collatePatterns(neg, pos, options) { - let onlyNegative = filterPatterns(neg, pos, '-', false, options) || []; - let onlyPositive = filterPatterns(pos, neg, '', false, options) || []; - let intersected = filterPatterns(neg, pos, '-?', true, options) || []; - let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); - return subpatterns.join('|'); -} - -function splitToRanges(min, max) { - let nines = 1; - let zeros = 1; - - let stop = countNines(min, nines); - let stops = new Set([max]); - - while (min <= stop && stop <= max) { - stops.add(stop); - nines += 1; - stop = countNines(min, nines); - } - - stop = countZeros(max + 1, zeros) - 1; - - while (min < stop && stop <= max) { - stops.add(stop); - zeros += 1; - stop = countZeros(max + 1, zeros) - 1; - } - - stops = [...stops]; - stops.sort(compare); - return stops; -} - -/** - * Convert a range to a regex pattern - * @param {Number} `start` - * @param {Number} `stop` - * @return {String} - */ - -function rangeToPattern(start, stop, options) { - if (start === stop) { - return { pattern: start, count: [], digits: 0 }; - } - - let zipped = zip(start, stop); - let digits = zipped.length; - let pattern = ''; - let count = 0; - - for (let i = 0; i < digits; i++) { - let [startDigit, stopDigit] = zipped[i]; - - if (startDigit === stopDigit) { - pattern += startDigit; - - } else if (startDigit !== '0' || stopDigit !== '9') { - pattern += toCharacterClass(startDigit, stopDigit, options); - - } else { - count++; - } - } - - if (count) { - pattern += options.shorthand === true ? '\\d' : '[0-9]'; - } - - return { pattern, count: [count], digits }; -} - -function splitToPatterns(min, max, tok, options) { - let ranges = splitToRanges(min, max); - let tokens = []; - let start = min; - let prev; - - for (let i = 0; i < ranges.length; i++) { - let max = ranges[i]; - let obj = rangeToPattern(String(start), String(max), options); - let zeros = ''; - - if (!tok.isPadded && prev && prev.pattern === obj.pattern) { - if (prev.count.length > 1) { - prev.count.pop(); - } - - prev.count.push(obj.count[0]); - prev.string = prev.pattern + toQuantifier(prev.count); - start = max + 1; - continue; - } - - if (tok.isPadded) { - zeros = padZeros(max, tok, options); - } - - obj.string = zeros + obj.pattern + toQuantifier(obj.count); - tokens.push(obj); - start = max + 1; - prev = obj; - } - - return tokens; -} - -function filterPatterns(arr, comparison, prefix, intersection, options) { - let result = []; - - for (let ele of arr) { - let { string } = ele; - - // only push if _both_ are negative... - if (!intersection && !contains(comparison, 'string', string)) { - result.push(prefix + string); - } - - // or _both_ are positive - if (intersection && contains(comparison, 'string', string)) { - result.push(prefix + string); - } - } - return result; -} - -/** - * Zip strings - */ - -function zip(a, b) { - let arr = []; - for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]); - return arr; -} - -function compare(a, b) { - return a > b ? 1 : b > a ? -1 : 0; -} - -function contains(arr, key, val) { - return arr.some(ele => ele[key] === val); -} - -function countNines(min, len) { - return Number(String(min).slice(0, -len) + '9'.repeat(len)); -} - -function countZeros(integer, zeros) { - return integer - (integer % Math.pow(10, zeros)); -} - -function toQuantifier(digits) { - let [start = 0, stop = ''] = digits; - if (stop || start > 1) { - return `{${start + (stop ? ',' + stop : '')}}`; - } - return ''; -} - -function toCharacterClass(a, b, options) { - return `[${a}${(b - a === 1) ? '' : '-'}${b}]`; -} - -function hasPadding(str) { - return /^-?(0+)\d/.test(str); -} - -function padZeros(value, tok, options) { - if (!tok.isPadded) { - return value; - } - - let diff = Math.abs(tok.maxLen - String(value).length); - let relax = options.relaxZeros !== false; - - switch (diff) { - case 0: - return ''; - case 1: - return relax ? '0?' : '0'; - case 2: - return relax ? '0{0,2}' : '00'; - default: { - return relax ? `0{0,${diff}}` : `0{${diff}}`; - } - } -} - -/** - * Cache - */ - -toRegexRange.cache = {}; -toRegexRange.clearCache = () => (toRegexRange.cache = {}); - -/** - * Expose `toRegexRange` - */ - -module.exports = toRegexRange; diff --git a/graphql/node_modules/to-regex-range/package.json b/graphql/node_modules/to-regex-range/package.json deleted file mode 100644 index 4ef194f3..00000000 --- a/graphql/node_modules/to-regex-range/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "name": "to-regex-range", - "description": "Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.", - "version": "5.0.1", - "homepage": "https://github.com/micromatch/to-regex-range", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Rouven Weßling (www.rouvenwessling.de)" - ], - "repository": "micromatch/to-regex-range", - "bugs": { - "url": "https://github.com/micromatch/to-regex-range/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=8.0" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": { - "is-number": "^7.0.0" - }, - "devDependencies": { - "fill-range": "^6.0.0", - "gulp-format-md": "^2.0.0", - "mocha": "^6.0.2", - "text-table": "^0.2.0", - "time-diff": "^0.3.1" - }, - "keywords": [ - "bash", - "date", - "expand", - "expansion", - "expression", - "glob", - "match", - "match date", - "match number", - "match numbers", - "match year", - "matches", - "matching", - "number", - "numbers", - "numerical", - "range", - "ranges", - "regex", - "regexp", - "regular", - "regular expression", - "sequence" - ], - "verb": { - "layout": "default", - "toc": false, - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "helpers": { - "examples": { - "displayName": "examples" - } - }, - "related": { - "list": [ - "expand-range", - "fill-range", - "micromatch", - "repeat-element", - "repeat-string" - ] - } - } -} diff --git a/graphql/node_modules/ts-api-utils/LICENSE.md b/graphql/node_modules/ts-api-utils/LICENSE.md deleted file mode 100644 index 08520a1e..00000000 --- a/graphql/node_modules/ts-api-utils/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -# MIT License - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/ts-api-utils/README.md b/graphql/node_modules/ts-api-utils/README.md deleted file mode 100644 index 04753e22..00000000 --- a/graphql/node_modules/ts-api-utils/README.md +++ /dev/null @@ -1,90 +0,0 @@ -

TypeScript API Utils

- -

- Utility functions for working with TypeScript's API. - Successor to the wonderful tsutils. 🛠️️ -

- -

- - - -All Contributors: 6 👪 - - - - - Codecov Test Coverage - - - Contributor Covenant - - - License: MIT - - - Sponsor: On GitHub - - Style: Prettier - TypeScript: Strict - npm package version -

- -## Usage - -```shell -npm i ts-api-utils -``` - -```ts -import * as tsutils from "ts-api-utils"; - -tsutils.forEachToken(/* ... */); -``` - -### API - -`ts-api-utils` provides many utility functions. -Check out our API docs for details: - -📝 [ts-api-utils API docs](https://joshuakgoldberg.github.io/ts-api-utils). - -## Development - -See [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md). -Thanks! 💖 - -## Contributors - -Many thanks to [@ajafff](https://github.com/ajafff) for creating the original [`tsutils`](https://github.com/ajafff/tsutils) ([original license: MIT](https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE)) that this project was originally based on! 🙏 - - - - - - - - - - - - - - - - - - -
Dan Vanderkam
Dan Vanderkam

🐛
Johannes Chorzempa
Johannes Chorzempa

📖 💻
Josh Goldberg
Josh Goldberg

🐛 💻 📖 📆 ⚠️ 🔧 🚧 🚇 🤔
Kirill Cherkashin
Kirill Cherkashin

💻
Klaus Meinhardt
Klaus Meinhardt

💻 ⚠️
Rebecca Stevens
Rebecca Stevens

🐛 💻 📖 📆 ⚠️ 🔧 🚇 🚧 🤔
- - - - - - - - - -> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). - -> _"My tools! I have to have my tools!" - Dennis Reynolds_ diff --git a/graphql/node_modules/ts-api-utils/lib/index.cjs b/graphql/node_modules/ts-api-utils/lib/index.cjs deleted file mode 100644 index 2ed64ec3..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.cjs +++ /dev/null @@ -1,2565 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var __accessCheck = (obj, member, msg) => { - if (!member.has(obj)) - throw TypeError("Cannot " + msg); -}; -var __privateGet = (obj, member, getter) => { - __accessCheck(obj, member, "read from private field"); - return getter ? getter.call(obj) : member.get(obj); -}; -var __privateAdd = (obj, member, value) => { - if (member.has(obj)) - throw TypeError("Cannot add the same private member more than once"); - member instanceof WeakSet ? member.add(obj) : member.set(obj, value); -}; -var __privateSet = (obj, member, value, setter) => { - __accessCheck(obj, member, "write to private field"); - setter ? setter.call(obj, value) : member.set(obj, value); - return value; -}; -var __privateMethod = (obj, member, method) => { - __accessCheck(obj, member, "access private method"); - return method; -}; - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - AccessKind: () => AccessKind, - DeclarationDomain: () => DeclarationDomain, - UsageDomain: () => UsageDomain, - collectVariableUsage: () => collectVariableUsage, - forEachComment: () => forEachComment, - forEachToken: () => forEachToken, - getAccessKind: () => getAccessKind, - getCallSignaturesOfType: () => getCallSignaturesOfType, - getPropertyOfType: () => getPropertyOfType, - getWellKnownSymbolPropertyOfType: () => getWellKnownSymbolPropertyOfType, - hasDecorators: () => hasDecorators, - hasExpressionInitializer: () => hasExpressionInitializer, - hasInitializer: () => hasInitializer, - hasJSDoc: () => hasJSDoc, - hasModifiers: () => hasModifiers, - hasType: () => hasType, - hasTypeArguments: () => hasTypeArguments, - includesModifier: () => includesModifier, - intersectionTypeParts: () => intersectionTypeParts, - isAbstractKeyword: () => isAbstractKeyword, - isAccessExpression: () => isAccessExpression, - isAccessibilityModifier: () => isAccessibilityModifier, - isAccessorDeclaration: () => isAccessorDeclaration, - isAccessorKeyword: () => isAccessorKeyword, - isAnyKeyword: () => isAnyKeyword, - isArrayBindingElement: () => isArrayBindingElement, - isArrayBindingOrAssignmentPattern: () => isArrayBindingOrAssignmentPattern, - isAssertKeyword: () => isAssertKeyword, - isAssertsKeyword: () => isAssertsKeyword, - isAssignmentKind: () => isAssignmentKind, - isAssignmentPattern: () => isAssignmentPattern, - isAsyncKeyword: () => isAsyncKeyword, - isAwaitKeyword: () => isAwaitKeyword, - isBigIntKeyword: () => isBigIntKeyword, - isBigIntLiteralType: () => isBigIntLiteralType, - isBindingOrAssignmentElementRestIndicator: () => isBindingOrAssignmentElementRestIndicator, - isBindingOrAssignmentElementTarget: () => isBindingOrAssignmentElementTarget, - isBindingOrAssignmentPattern: () => isBindingOrAssignmentPattern, - isBindingPattern: () => isBindingPattern, - isBlockLike: () => isBlockLike, - isBooleanKeyword: () => isBooleanKeyword, - isBooleanLiteral: () => isBooleanLiteral, - isBooleanLiteralType: () => isBooleanLiteralType, - isClassLikeDeclaration: () => isClassLikeDeclaration, - isClassMemberModifier: () => isClassMemberModifier, - isColonToken: () => isColonToken, - isCompilerOptionEnabled: () => isCompilerOptionEnabled, - isConditionalType: () => isConditionalType, - isConstAssertionExpression: () => isConstAssertionExpression, - isConstKeyword: () => isConstKeyword, - isDeclarationName: () => isDeclarationName, - isDeclarationWithTypeParameterChildren: () => isDeclarationWithTypeParameterChildren, - isDeclarationWithTypeParameters: () => isDeclarationWithTypeParameters, - isDeclareKeyword: () => isDeclareKeyword, - isDefaultKeyword: () => isDefaultKeyword, - isDestructuringPattern: () => isDestructuringPattern, - isDotToken: () => isDotToken, - isEndOfFileToken: () => isEndOfFileToken, - isEntityNameExpression: () => isEntityNameExpression, - isEntityNameOrEntityNameExpression: () => isEntityNameOrEntityNameExpression, - isEnumType: () => isEnumType, - isEqualsGreaterThanToken: () => isEqualsGreaterThanToken, - isEqualsToken: () => isEqualsToken, - isEvolvingArrayType: () => isEvolvingArrayType, - isExclamationToken: () => isExclamationToken, - isExportKeyword: () => isExportKeyword, - isFalseKeyword: () => isFalseKeyword, - isFalseLiteral: () => isFalseLiteral, - isFalseLiteralType: () => isFalseLiteralType, - isFalsyType: () => isFalsyType, - isForInOrOfStatement: () => isForInOrOfStatement, - isFreshableIntrinsicType: () => isFreshableIntrinsicType, - isFreshableType: () => isFreshableType, - isFunctionLikeDeclaration: () => isFunctionLikeDeclaration, - isFunctionScopeBoundary: () => isFunctionScopeBoundary, - isImportExpression: () => isImportExpression, - isImportKeyword: () => isImportKeyword, - isInKeyword: () => isInKeyword, - isIndexType: () => isIndexType, - isIndexedAccessType: () => isIndexedAccessType, - isInputFiles: () => isInputFiles, - isInstantiableType: () => isInstantiableType, - isIntersectionType: () => isIntersectionType, - isIntrinsicAnyType: () => isIntrinsicAnyType, - isIntrinsicBigIntType: () => isIntrinsicBigIntType, - isIntrinsicBooleanType: () => isIntrinsicBooleanType, - isIntrinsicESSymbolType: () => isIntrinsicESSymbolType, - isIntrinsicErrorType: () => isIntrinsicErrorType, - isIntrinsicNeverType: () => isIntrinsicNeverType, - isIntrinsicNonPrimitiveType: () => isIntrinsicNonPrimitiveType, - isIntrinsicNullType: () => isIntrinsicNullType, - isIntrinsicNumberType: () => isIntrinsicNumberType, - isIntrinsicStringType: () => isIntrinsicStringType, - isIntrinsicType: () => isIntrinsicType, - isIntrinsicUndefinedType: () => isIntrinsicUndefinedType, - isIntrinsicUnknownType: () => isIntrinsicUnknownType, - isIntrinsicVoidType: () => isIntrinsicVoidType, - isIterationStatement: () => isIterationStatement, - isJSDocComment: () => isJSDocComment, - isJSDocNamespaceBody: () => isJSDocNamespaceBody, - isJSDocNamespaceDeclaration: () => isJSDocNamespaceDeclaration, - isJSDocText: () => isJSDocText, - isJSDocTypeReferencingNode: () => isJSDocTypeReferencingNode, - isJsonMinusNumericLiteral: () => isJsonMinusNumericLiteral, - isJsonObjectExpression: () => isJsonObjectExpression, - isJsxAttributeLike: () => isJsxAttributeLike, - isJsxAttributeValue: () => isJsxAttributeValue, - isJsxChild: () => isJsxChild, - isJsxTagNameExpression: () => isJsxTagNameExpression, - isJsxTagNamePropertyAccess: () => isJsxTagNamePropertyAccess, - isLiteralToken: () => isLiteralToken, - isLiteralType: () => isLiteralType, - isModifierFlagSet: () => isModifierFlagSet, - isModuleBody: () => isModuleBody, - isModuleName: () => isModuleName, - isModuleReference: () => isModuleReference, - isNamedDeclarationWithName: () => isNamedDeclarationWithName, - isNamedImportBindings: () => isNamedImportBindings, - isNamedImportsOrExports: () => isNamedImportsOrExports, - isNamespaceBody: () => isNamespaceBody, - isNamespaceDeclaration: () => isNamespaceDeclaration, - isNeverKeyword: () => isNeverKeyword, - isNodeFlagSet: () => isNodeFlagSet, - isNullKeyword: () => isNullKeyword, - isNullLiteral: () => isNullLiteral, - isNumberKeyword: () => isNumberKeyword, - isNumberLiteralType: () => isNumberLiteralType, - isNumericOrStringLikeLiteral: () => isNumericOrStringLikeLiteral, - isNumericPropertyName: () => isNumericPropertyName, - isObjectBindingOrAssignmentElement: () => isObjectBindingOrAssignmentElement, - isObjectBindingOrAssignmentPattern: () => isObjectBindingOrAssignmentPattern, - isObjectFlagSet: () => isObjectFlagSet, - isObjectKeyword: () => isObjectKeyword, - isObjectType: () => isObjectType, - isObjectTypeDeclaration: () => isObjectTypeDeclaration, - isOutKeyword: () => isOutKeyword, - isOverrideKeyword: () => isOverrideKeyword, - isParameterPropertyModifier: () => isParameterPropertyModifier, - isPrivateKeyword: () => isPrivateKeyword, - isPropertyAccessEntityNameExpression: () => isPropertyAccessEntityNameExpression, - isPropertyNameLiteral: () => isPropertyNameLiteral, - isPropertyReadonlyInType: () => isPropertyReadonlyInType, - isProtectedKeyword: () => isProtectedKeyword, - isPseudoLiteralToken: () => isPseudoLiteralToken, - isPublicKeyword: () => isPublicKeyword, - isQuestionDotToken: () => isQuestionDotToken, - isQuestionToken: () => isQuestionToken, - isReadonlyKeyword: () => isReadonlyKeyword, - isSignatureDeclaration: () => isSignatureDeclaration, - isStaticKeyword: () => isStaticKeyword, - isStrictCompilerOptionEnabled: () => isStrictCompilerOptionEnabled, - isStringKeyword: () => isStringKeyword, - isStringLiteralType: () => isStringLiteralType, - isStringMappingType: () => isStringMappingType, - isSubstitutionType: () => isSubstitutionType, - isSuperElementAccessExpression: () => isSuperElementAccessExpression, - isSuperExpression: () => isSuperExpression, - isSuperKeyword: () => isSuperKeyword, - isSuperProperty: () => isSuperProperty, - isSuperPropertyAccessExpression: () => isSuperPropertyAccessExpression, - isSymbolFlagSet: () => isSymbolFlagSet, - isSymbolKeyword: () => isSymbolKeyword, - isSyntaxList: () => isSyntaxList, - isTemplateLiteralType: () => isTemplateLiteralType, - isThenableType: () => isThenableType, - isThisExpression: () => isThisExpression, - isThisKeyword: () => isThisKeyword, - isTrueKeyword: () => isTrueKeyword, - isTrueLiteral: () => isTrueLiteral, - isTrueLiteralType: () => isTrueLiteralType, - isTupleType: () => isTupleType, - isTupleTypeReference: () => isTupleTypeReference, - isTypeFlagSet: () => isTypeFlagSet, - isTypeOnlyCompatibleAliasDeclaration: () => isTypeOnlyCompatibleAliasDeclaration, - isTypeParameter: () => isTypeParameter, - isTypeReference: () => isTypeReference, - isTypeReferenceType: () => isTypeReferenceType, - isTypeVariable: () => isTypeVariable, - isUndefinedKeyword: () => isUndefinedKeyword, - isUnionOrIntersectionType: () => isUnionOrIntersectionType, - isUnionOrIntersectionTypeNode: () => isUnionOrIntersectionTypeNode, - isUnionType: () => isUnionType, - isUniqueESSymbolType: () => isUniqueESSymbolType, - isUnknownKeyword: () => isUnknownKeyword, - isUnknownLiteralType: () => isUnknownLiteralType, - isUnparsedPrologue: () => isUnparsedPrologue, - isUnparsedSourceText: () => isUnparsedSourceText, - isUnparsedSyntheticReference: () => isUnparsedSyntheticReference, - isValidPropertyAccess: () => isValidPropertyAccess, - isVariableLikeDeclaration: () => isVariableLikeDeclaration, - isVoidKeyword: () => isVoidKeyword, - symbolHasReadonlyDeclaration: () => symbolHasReadonlyDeclaration, - typeParts: () => typeParts, - unionTypeParts: () => unionTypeParts -}); -module.exports = __toCommonJS(src_exports); - -// src/comments.ts -var import_typescript2 = __toESM(require("typescript"), 1); - -// src/tokens.ts -var import_typescript = __toESM(require("typescript"), 1); -function forEachToken(node, callback, sourceFile = node.getSourceFile()) { - const queue = []; - while (true) { - if (import_typescript.default.isTokenKind(node.kind)) { - callback(node); - } else if ( - // eslint-disable-next-line deprecation/deprecation -- need for support of TS < 4.7 - node.kind !== import_typescript.default.SyntaxKind.JSDocComment - ) { - const children = node.getChildren(sourceFile); - if (children.length === 1) { - node = children[0]; - continue; - } - for (let i = children.length - 1; i >= 0; --i) { - queue.push(children[i]); - } - } - if (queue.length === 0) { - break; - } - node = queue.pop(); - } -} - -// src/comments.ts -function canHaveTrailingTrivia(token) { - switch (token.kind) { - case import_typescript2.default.SyntaxKind.CloseBraceToken: - return token.parent.kind !== import_typescript2.default.SyntaxKind.JsxExpression || !isJsxElementOrFragment(token.parent.parent); - case import_typescript2.default.SyntaxKind.GreaterThanToken: - switch (token.parent.kind) { - case import_typescript2.default.SyntaxKind.JsxOpeningElement: - return token.end !== token.parent.end; - case import_typescript2.default.SyntaxKind.JsxOpeningFragment: - return false; - case import_typescript2.default.SyntaxKind.JsxSelfClosingElement: - return token.end !== token.parent.end || // if end is not equal, this is part of the type arguments list - !isJsxElementOrFragment(token.parent.parent); - case import_typescript2.default.SyntaxKind.JsxClosingElement: - case import_typescript2.default.SyntaxKind.JsxClosingFragment: - return !isJsxElementOrFragment(token.parent.parent.parent); - } - } - return true; -} -function isJsxElementOrFragment(node) { - return node.kind === import_typescript2.default.SyntaxKind.JsxElement || node.kind === import_typescript2.default.SyntaxKind.JsxFragment; -} -function forEachComment(node, callback, sourceFile = node.getSourceFile()) { - const fullText = sourceFile.text; - const notJsx = sourceFile.languageVariant !== import_typescript2.default.LanguageVariant.JSX; - return forEachToken( - node, - (token) => { - if (token.pos === token.end) { - return; - } - if (token.kind !== import_typescript2.default.SyntaxKind.JsxText) { - import_typescript2.default.forEachLeadingCommentRange( - fullText, - // skip shebang at position 0 - token.pos === 0 ? (import_typescript2.default.getShebang(fullText) ?? "").length : token.pos, - commentCallback - ); - } - if (notJsx || canHaveTrailingTrivia(token)) { - return import_typescript2.default.forEachTrailingCommentRange( - fullText, - token.end, - commentCallback - ); - } - }, - sourceFile - ); - function commentCallback(pos, end, kind) { - callback(fullText, { end, kind, pos }); - } -} - -// src/compilerOptions.ts -var import_typescript3 = __toESM(require("typescript"), 1); -function isCompilerOptionEnabled(options, option) { - switch (option) { - case "stripInternal": - case "declarationMap": - case "emitDeclarationOnly": - return options[option] === true && isCompilerOptionEnabled(options, "declaration"); - case "declaration": - return options.declaration || isCompilerOptionEnabled(options, "composite"); - case "incremental": - return options.incremental === void 0 ? isCompilerOptionEnabled(options, "composite") : options.incremental; - case "skipDefaultLibCheck": - return options.skipDefaultLibCheck || isCompilerOptionEnabled(options, "skipLibCheck"); - case "suppressImplicitAnyIndexErrors": - return options.suppressImplicitAnyIndexErrors === true && isCompilerOptionEnabled(options, "noImplicitAny"); - case "allowSyntheticDefaultImports": - return options.allowSyntheticDefaultImports !== void 0 ? options.allowSyntheticDefaultImports : isCompilerOptionEnabled(options, "esModuleInterop") || options.module === import_typescript3.default.ModuleKind.System; - case "noUncheckedIndexedAccess": - return options.noUncheckedIndexedAccess === true && isCompilerOptionEnabled(options, "strictNullChecks"); - case "allowJs": - return options.allowJs === void 0 ? isCompilerOptionEnabled(options, "checkJs") : options.allowJs; - case "noImplicitAny": - case "noImplicitThis": - case "strictNullChecks": - case "strictFunctionTypes": - case "strictPropertyInitialization": - case "alwaysStrict": - case "strictBindCallApply": - return isStrictCompilerOptionEnabled( - options, - option - ); - } - return options[option] === true; -} -function isStrictCompilerOptionEnabled(options, option) { - return (options.strict ? options[option] !== false : options[option] === true) && (option !== "strictPropertyInitialization" || isStrictCompilerOptionEnabled(options, "strictNullChecks")); -} - -// src/flags.ts -var import_typescript4 = __toESM(require("typescript"), 1); -function isFlagSet(allFlags, flag) { - return (allFlags & flag) !== 0; -} -function isFlagSetOnObject(obj, flag) { - return isFlagSet(obj.flags, flag); -} -function isModifierFlagSet(node, flag) { - return isFlagSet(import_typescript4.default.getCombinedModifierFlags(node), flag); -} -var isNodeFlagSet = isFlagSetOnObject; -function isObjectFlagSet(objectType, flag) { - return isFlagSet(objectType.objectFlags, flag); -} -var isSymbolFlagSet = isFlagSetOnObject; -var isTypeFlagSet = isFlagSetOnObject; - -// src/modifiers.ts -function includesModifier(modifiers, ...kinds) { - if (modifiers === void 0) { - return false; - } - for (const modifier of modifiers) { - if (kinds.includes(modifier.kind)) { - return true; - } - } - return false; -} - -// src/nodes/access.ts -var import_typescript6 = __toESM(require("typescript"), 1); - -// src/syntax.ts -var import_typescript5 = __toESM(require("typescript"), 1); -function isAssignmentKind(kind) { - return kind >= import_typescript5.default.SyntaxKind.FirstAssignment && kind <= import_typescript5.default.SyntaxKind.LastAssignment; -} -function isNumericPropertyName(name) { - return String(+name) === name; -} -function charSize(ch) { - return ch >= 65536 ? 2 : 1; -} -function isValidPropertyAccess(text, languageVersion = import_typescript5.default.ScriptTarget.Latest) { - if (text.length === 0) { - return false; - } - let ch = text.codePointAt(0); - if (!import_typescript5.default.isIdentifierStart(ch, languageVersion)) { - return false; - } - for (let i = charSize(ch); i < text.length; i += charSize(ch)) { - ch = text.codePointAt(i); - if (!import_typescript5.default.isIdentifierPart(ch, languageVersion)) { - return false; - } - } - return true; -} - -// src/nodes/access.ts -var AccessKind = /* @__PURE__ */ ((AccessKind2) => { - AccessKind2[AccessKind2["None"] = 0] = "None"; - AccessKind2[AccessKind2["Read"] = 1] = "Read"; - AccessKind2[AccessKind2["Write"] = 2] = "Write"; - AccessKind2[AccessKind2["Delete"] = 4] = "Delete"; - AccessKind2[AccessKind2["ReadWrite"] = 3] = "ReadWrite"; - return AccessKind2; -})(AccessKind || {}); -function getAccessKind(node) { - const parent = node.parent; - switch (parent.kind) { - case import_typescript6.default.SyntaxKind.DeleteExpression: - return 4 /* Delete */; - case import_typescript6.default.SyntaxKind.PostfixUnaryExpression: - return 3 /* ReadWrite */; - case import_typescript6.default.SyntaxKind.PrefixUnaryExpression: - return parent.operator === import_typescript6.default.SyntaxKind.PlusPlusToken || parent.operator === import_typescript6.default.SyntaxKind.MinusMinusToken ? 3 /* ReadWrite */ : 1 /* Read */; - case import_typescript6.default.SyntaxKind.BinaryExpression: - return parent.right === node ? 1 /* Read */ : !isAssignmentKind(parent.operatorToken.kind) ? 1 /* Read */ : parent.operatorToken.kind === import_typescript6.default.SyntaxKind.EqualsToken ? 2 /* Write */ : 3 /* ReadWrite */; - case import_typescript6.default.SyntaxKind.ShorthandPropertyAssignment: - return parent.objectAssignmentInitializer === node ? 1 /* Read */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */; - case import_typescript6.default.SyntaxKind.PropertyAssignment: - return parent.name === node ? 0 /* None */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */; - case import_typescript6.default.SyntaxKind.ArrayLiteralExpression: - case import_typescript6.default.SyntaxKind.SpreadElement: - case import_typescript6.default.SyntaxKind.SpreadAssignment: - return isInDestructuringAssignment( - parent - ) ? 2 /* Write */ : 1 /* Read */; - case import_typescript6.default.SyntaxKind.ParenthesizedExpression: - case import_typescript6.default.SyntaxKind.NonNullExpression: - case import_typescript6.default.SyntaxKind.TypeAssertionExpression: - case import_typescript6.default.SyntaxKind.AsExpression: - return getAccessKind(parent); - case import_typescript6.default.SyntaxKind.ForOfStatement: - case import_typescript6.default.SyntaxKind.ForInStatement: - return parent.initializer === node ? 2 /* Write */ : 1 /* Read */; - case import_typescript6.default.SyntaxKind.ExpressionWithTypeArguments: - return parent.parent.token === import_typescript6.default.SyntaxKind.ExtendsKeyword && parent.parent.parent.kind !== import_typescript6.default.SyntaxKind.InterfaceDeclaration ? 1 /* Read */ : 0 /* None */; - case import_typescript6.default.SyntaxKind.ComputedPropertyName: - case import_typescript6.default.SyntaxKind.ExpressionStatement: - case import_typescript6.default.SyntaxKind.TypeOfExpression: - case import_typescript6.default.SyntaxKind.ElementAccessExpression: - case import_typescript6.default.SyntaxKind.ForStatement: - case import_typescript6.default.SyntaxKind.IfStatement: - case import_typescript6.default.SyntaxKind.DoStatement: - case import_typescript6.default.SyntaxKind.WhileStatement: - case import_typescript6.default.SyntaxKind.SwitchStatement: - case import_typescript6.default.SyntaxKind.WithStatement: - case import_typescript6.default.SyntaxKind.ThrowStatement: - case import_typescript6.default.SyntaxKind.CallExpression: - case import_typescript6.default.SyntaxKind.NewExpression: - case import_typescript6.default.SyntaxKind.TaggedTemplateExpression: - case import_typescript6.default.SyntaxKind.JsxExpression: - case import_typescript6.default.SyntaxKind.Decorator: - case import_typescript6.default.SyntaxKind.TemplateSpan: - case import_typescript6.default.SyntaxKind.JsxOpeningElement: - case import_typescript6.default.SyntaxKind.JsxSelfClosingElement: - case import_typescript6.default.SyntaxKind.JsxSpreadAttribute: - case import_typescript6.default.SyntaxKind.VoidExpression: - case import_typescript6.default.SyntaxKind.ReturnStatement: - case import_typescript6.default.SyntaxKind.AwaitExpression: - case import_typescript6.default.SyntaxKind.YieldExpression: - case import_typescript6.default.SyntaxKind.ConditionalExpression: - case import_typescript6.default.SyntaxKind.CaseClause: - case import_typescript6.default.SyntaxKind.JsxElement: - return 1 /* Read */; - case import_typescript6.default.SyntaxKind.ArrowFunction: - return parent.body === node ? 1 /* Read */ : 2 /* Write */; - case import_typescript6.default.SyntaxKind.PropertyDeclaration: - case import_typescript6.default.SyntaxKind.VariableDeclaration: - case import_typescript6.default.SyntaxKind.Parameter: - case import_typescript6.default.SyntaxKind.EnumMember: - case import_typescript6.default.SyntaxKind.BindingElement: - case import_typescript6.default.SyntaxKind.JsxAttribute: - return parent.initializer === node ? 1 /* Read */ : 0 /* None */; - case import_typescript6.default.SyntaxKind.PropertyAccessExpression: - return parent.expression === node ? 1 /* Read */ : 0 /* None */; - case import_typescript6.default.SyntaxKind.ExportAssignment: - return parent.isExportEquals ? 1 /* Read */ : 0 /* None */; - } - return 0 /* None */; -} -function isInDestructuringAssignment(node) { - switch (node.kind) { - case import_typescript6.default.SyntaxKind.ShorthandPropertyAssignment: - if (node.objectAssignmentInitializer !== void 0) { - return true; - } - case import_typescript6.default.SyntaxKind.PropertyAssignment: - case import_typescript6.default.SyntaxKind.SpreadAssignment: - node = node.parent; - break; - case import_typescript6.default.SyntaxKind.SpreadElement: - if (node.parent.kind !== import_typescript6.default.SyntaxKind.ArrayLiteralExpression) { - return false; - } - node = node.parent; - } - while (true) { - switch (node.parent.kind) { - case import_typescript6.default.SyntaxKind.BinaryExpression: - return node.parent.left === node && node.parent.operatorToken.kind === import_typescript6.default.SyntaxKind.EqualsToken; - case import_typescript6.default.SyntaxKind.ForOfStatement: - return node.parent.initializer === node; - case import_typescript6.default.SyntaxKind.ArrayLiteralExpression: - case import_typescript6.default.SyntaxKind.ObjectLiteralExpression: - node = node.parent; - break; - case import_typescript6.default.SyntaxKind.SpreadAssignment: - case import_typescript6.default.SyntaxKind.PropertyAssignment: - node = node.parent.parent; - break; - case import_typescript6.default.SyntaxKind.SpreadElement: - if (node.parent.parent.kind !== import_typescript6.default.SyntaxKind.ArrayLiteralExpression) { - return false; - } - node = node.parent.parent; - break; - default: - return false; - } - } -} - -// src/nodes/typeGuards/compound.ts -var import_typescript10 = __toESM(require("typescript"), 1); - -// src/nodes/typeGuards/single.ts -var import_typescript7 = __toESM(require("typescript"), 1); -function isAbstractKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AbstractKeyword; -} -function isAccessorKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AccessorKeyword; -} -function isAnyKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AnyKeyword; -} -function isAssertKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AssertKeyword; -} -function isAssertsKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AssertsKeyword; -} -function isAsyncKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AsyncKeyword; -} -function isAwaitKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.AwaitKeyword; -} -function isBigIntKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.BigIntKeyword; -} -function isBooleanKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.BooleanKeyword; -} -function isColonToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.ColonToken; -} -function isConstKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ConstKeyword; -} -function isDeclareKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.DeclareKeyword; -} -function isDefaultKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.DefaultKeyword; -} -function isDotToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.DotToken; -} -function isEndOfFileToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.EndOfFileToken; -} -function isEqualsGreaterThanToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.EqualsGreaterThanToken; -} -function isEqualsToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.EqualsToken; -} -function isExclamationToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.ExclamationToken; -} -function isExportKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ExportKeyword; -} -function isFalseKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.FalseKeyword; -} -function isFalseLiteral(node) { - return node.kind === import_typescript7.default.SyntaxKind.FalseKeyword; -} -function isImportExpression(node) { - return node.kind === import_typescript7.default.SyntaxKind.ImportKeyword; -} -function isImportKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ImportKeyword; -} -function isInKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.InKeyword; -} -function isInputFiles(node) { - return node.kind === import_typescript7.default.SyntaxKind.InputFiles; -} -function isJSDocText(node) { - return node.kind === import_typescript7.default.SyntaxKind.JSDocText; -} -function isJsonMinusNumericLiteral(node) { - return node.kind === import_typescript7.default.SyntaxKind.PrefixUnaryExpression; -} -function isNeverKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.NeverKeyword; -} -function isNullKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.NullKeyword; -} -function isNullLiteral(node) { - return node.kind === import_typescript7.default.SyntaxKind.NullKeyword; -} -function isNumberKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.NumberKeyword; -} -function isObjectKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ObjectKeyword; -} -function isOutKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.OutKeyword; -} -function isOverrideKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.OverrideKeyword; -} -function isPrivateKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.PrivateKeyword; -} -function isProtectedKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ProtectedKeyword; -} -function isPublicKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.PublicKeyword; -} -function isQuestionDotToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.QuestionDotToken; -} -function isQuestionToken(node) { - return node.kind === import_typescript7.default.SyntaxKind.QuestionToken; -} -function isReadonlyKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ReadonlyKeyword; -} -function isStaticKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.StaticKeyword; -} -function isStringKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.StringKeyword; -} -function isSuperExpression(node) { - return node.kind === import_typescript7.default.SyntaxKind.SuperKeyword; -} -function isSuperKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.SuperKeyword; -} -function isSymbolKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.SymbolKeyword; -} -function isSyntaxList(node) { - return node.kind === import_typescript7.default.SyntaxKind.SyntaxList; -} -function isThisExpression(node) { - return node.kind === import_typescript7.default.SyntaxKind.ThisKeyword; -} -function isThisKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.ThisKeyword; -} -function isTrueKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.TrueKeyword; -} -function isTrueLiteral(node) { - return node.kind === import_typescript7.default.SyntaxKind.TrueKeyword; -} -function isUndefinedKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.UndefinedKeyword; -} -function isUnknownKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.UnknownKeyword; -} -function isUnparsedPrologue(node) { - return node.kind === import_typescript7.default.SyntaxKind.UnparsedPrologue; -} -function isUnparsedSyntheticReference(node) { - return node.kind === import_typescript7.default.SyntaxKind.UnparsedSyntheticReference; -} -function isVoidKeyword(node) { - return node.kind === import_typescript7.default.SyntaxKind.VoidKeyword; -} - -// src/nodes/typeGuards/union.ts -var import_typescript9 = __toESM(require("typescript"), 1); - -// src/utils.ts -var import_typescript8 = __toESM(require("typescript"), 1); -var [tsMajor, tsMinor] = import_typescript8.default.versionMajorMinor.split(".").map((raw) => Number.parseInt(raw, 10)); -function isTsVersionAtLeast(major, minor = 0) { - return tsMajor > major || tsMajor === major && tsMinor >= minor; -} - -// src/nodes/typeGuards/union.ts -function isAccessExpression(node) { - return import_typescript9.default.isPropertyAccessExpression(node) || import_typescript9.default.isElementAccessExpression(node); -} -function isAccessibilityModifier(node) { - return isPublicKeyword(node) || isPrivateKeyword(node) || isProtectedKeyword(node); -} -function isAccessorDeclaration(node) { - return import_typescript9.default.isGetAccessorDeclaration(node) || import_typescript9.default.isSetAccessorDeclaration(node); -} -function isArrayBindingElement(node) { - return import_typescript9.default.isBindingElement(node) || import_typescript9.default.isOmittedExpression(node); -} -function isArrayBindingOrAssignmentPattern(node) { - return import_typescript9.default.isArrayBindingPattern(node) || import_typescript9.default.isArrayLiteralExpression(node); -} -function isAssignmentPattern(node) { - return import_typescript9.default.isObjectLiteralExpression(node) || import_typescript9.default.isArrayLiteralExpression(node); -} -function isBindingOrAssignmentElementRestIndicator(node) { - if (import_typescript9.default.isSpreadElement(node) || import_typescript9.default.isSpreadAssignment(node)) { - return true; - } - if (isTsVersionAtLeast(4, 4)) { - return import_typescript9.default.isDotDotDotToken(node); - } - return false; -} -function isBindingOrAssignmentElementTarget(node) { - return isBindingOrAssignmentPattern(node) || import_typescript9.default.isIdentifier(node) || import_typescript9.default.isPropertyAccessExpression(node) || import_typescript9.default.isElementAccessExpression(node) || import_typescript9.default.isOmittedExpression(node); -} -function isBindingOrAssignmentPattern(node) { - return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node); -} -function isBindingPattern(node) { - return import_typescript9.default.isObjectBindingPattern(node) || import_typescript9.default.isArrayBindingPattern(node); -} -function isBlockLike(node) { - return import_typescript9.default.isSourceFile(node) || import_typescript9.default.isBlock(node) || import_typescript9.default.isModuleBlock(node) || import_typescript9.default.isCaseOrDefaultClause(node); -} -function isBooleanLiteral(node) { - return isTrueLiteral(node) || isFalseLiteral(node); -} -function isClassLikeDeclaration(node) { - return import_typescript9.default.isClassDeclaration(node) || import_typescript9.default.isClassExpression(node); -} -function isClassMemberModifier(node) { - return isAccessibilityModifier(node) || isReadonlyKeyword(node) || isStaticKeyword(node) || isAccessorKeyword(node); -} -function isDeclarationName(node) { - return import_typescript9.default.isIdentifier(node) || import_typescript9.default.isPrivateIdentifier(node) || import_typescript9.default.isStringLiteralLike(node) || import_typescript9.default.isNumericLiteral(node) || import_typescript9.default.isComputedPropertyName(node) || import_typescript9.default.isElementAccessExpression(node) || isBindingPattern(node) || isEntityNameExpression(node); -} -function isDeclarationWithTypeParameterChildren(node) { - return isSignatureDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || import_typescript9.default.isInterfaceDeclaration(node) || import_typescript9.default.isTypeAliasDeclaration(node) || import_typescript9.default.isJSDocTemplateTag(node); -} -function isDeclarationWithTypeParameters(node) { - return isDeclarationWithTypeParameterChildren(node) || import_typescript9.default.isJSDocTypedefTag(node) || import_typescript9.default.isJSDocCallbackTag(node) || import_typescript9.default.isJSDocSignature(node); -} -function isDestructuringPattern(node) { - return isBindingPattern(node) || import_typescript9.default.isObjectLiteralExpression(node) || import_typescript9.default.isArrayLiteralExpression(node); -} -function isEntityNameExpression(node) { - return import_typescript9.default.isIdentifier(node) || isPropertyAccessEntityNameExpression(node); -} -function isEntityNameOrEntityNameExpression(node) { - return import_typescript9.default.isEntityName(node) || isEntityNameExpression(node); -} -function isForInOrOfStatement(node) { - return import_typescript9.default.isForInStatement(node) || import_typescript9.default.isForOfStatement(node); -} -function isFunctionLikeDeclaration(node) { - return import_typescript9.default.isFunctionDeclaration(node) || import_typescript9.default.isMethodDeclaration(node) || import_typescript9.default.isGetAccessorDeclaration(node) || import_typescript9.default.isSetAccessorDeclaration(node) || import_typescript9.default.isConstructorDeclaration(node) || import_typescript9.default.isFunctionExpression(node) || import_typescript9.default.isArrowFunction(node); -} -function hasDecorators(node) { - return import_typescript9.default.isParameter(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isMethodDeclaration(node) || import_typescript9.default.isGetAccessorDeclaration(node) || import_typescript9.default.isSetAccessorDeclaration(node) || import_typescript9.default.isClassExpression(node) || import_typescript9.default.isClassDeclaration(node); -} -function hasExpressionInitializer(node) { - return import_typescript9.default.isVariableDeclaration(node) || import_typescript9.default.isParameter(node) || import_typescript9.default.isBindingElement(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isPropertyAssignment(node) || import_typescript9.default.isEnumMember(node); -} -function hasInitializer(node) { - return hasExpressionInitializer(node) || import_typescript9.default.isForStatement(node) || import_typescript9.default.isForInStatement(node) || import_typescript9.default.isForOfStatement(node) || import_typescript9.default.isJsxAttribute(node); -} -function hasJSDoc(node) { - if ( - // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isAccessorDeclaration(node) || import_typescript9.default.isArrowFunction(node) || import_typescript9.default.isBlock(node) || import_typescript9.default.isBreakStatement(node) || import_typescript9.default.isCallSignatureDeclaration(node) || import_typescript9.default.isCaseClause(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || import_typescript9.default.isConstructorDeclaration(node) || import_typescript9.default.isConstructorTypeNode(node) || import_typescript9.default.isConstructSignatureDeclaration(node) || import_typescript9.default.isContinueStatement(node) || import_typescript9.default.isDebuggerStatement(node) || import_typescript9.default.isDoStatement(node) || import_typescript9.default.isEmptyStatement(node) || isEndOfFileToken(node) || import_typescript9.default.isEnumDeclaration(node) || import_typescript9.default.isEnumMember(node) || import_typescript9.default.isExportAssignment(node) || import_typescript9.default.isExportDeclaration(node) || import_typescript9.default.isExportSpecifier(node) || import_typescript9.default.isExpressionStatement(node) || import_typescript9.default.isForInStatement(node) || import_typescript9.default.isForOfStatement(node) || import_typescript9.default.isForStatement(node) || import_typescript9.default.isFunctionDeclaration(node) || import_typescript9.default.isFunctionExpression(node) || import_typescript9.default.isFunctionTypeNode(node) || import_typescript9.default.isIfStatement(node) || import_typescript9.default.isImportDeclaration(node) || import_typescript9.default.isImportEqualsDeclaration(node) || import_typescript9.default.isIndexSignatureDeclaration(node) || import_typescript9.default.isInterfaceDeclaration(node) || import_typescript9.default.isJSDocFunctionType(node) || import_typescript9.default.isLabeledStatement(node) || import_typescript9.default.isMethodDeclaration(node) || import_typescript9.default.isMethodSignature(node) || import_typescript9.default.isModuleDeclaration(node) || import_typescript9.default.isNamedTupleMember(node) || import_typescript9.default.isNamespaceExportDeclaration(node) || import_typescript9.default.isParameter(node) || import_typescript9.default.isParenthesizedExpression(node) || import_typescript9.default.isPropertyAssignment(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isPropertySignature(node) || import_typescript9.default.isReturnStatement(node) || import_typescript9.default.isShorthandPropertyAssignment(node) || import_typescript9.default.isSpreadAssignment(node) || import_typescript9.default.isSwitchStatement(node) || import_typescript9.default.isThrowStatement(node) || import_typescript9.default.isTryStatement(node) || import_typescript9.default.isTypeAliasDeclaration(node) || import_typescript9.default.isVariableDeclaration(node) || import_typescript9.default.isVariableStatement(node) || import_typescript9.default.isWhileStatement(node) || import_typescript9.default.isWithStatement(node) - ) { - return true; - } - if (isTsVersionAtLeast(4, 4) && import_typescript9.default.isClassStaticBlockDeclaration(node)) { - return true; - } - if (isTsVersionAtLeast(5, 0) && (import_typescript9.default.isBinaryExpression(node) || import_typescript9.default.isElementAccessExpression(node) || import_typescript9.default.isIdentifier(node) || import_typescript9.default.isJSDocSignature(node) || import_typescript9.default.isObjectLiteralExpression(node) || import_typescript9.default.isPropertyAccessExpression(node) || import_typescript9.default.isTypeParameterDeclaration(node))) { - return true; - } - return false; -} -function hasModifiers(node) { - return import_typescript9.default.isTypeParameterDeclaration(node) || import_typescript9.default.isParameter(node) || import_typescript9.default.isConstructorTypeNode(node) || import_typescript9.default.isPropertySignature(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isMethodSignature(node) || import_typescript9.default.isMethodDeclaration(node) || import_typescript9.default.isConstructorDeclaration(node) || import_typescript9.default.isGetAccessorDeclaration(node) || import_typescript9.default.isSetAccessorDeclaration(node) || import_typescript9.default.isIndexSignatureDeclaration(node) || import_typescript9.default.isFunctionExpression(node) || import_typescript9.default.isArrowFunction(node) || import_typescript9.default.isClassExpression(node) || import_typescript9.default.isVariableStatement(node) || import_typescript9.default.isFunctionDeclaration(node) || import_typescript9.default.isClassDeclaration(node) || import_typescript9.default.isInterfaceDeclaration(node) || import_typescript9.default.isTypeAliasDeclaration(node) || import_typescript9.default.isEnumDeclaration(node) || import_typescript9.default.isModuleDeclaration(node) || import_typescript9.default.isImportEqualsDeclaration(node) || import_typescript9.default.isImportDeclaration(node) || import_typescript9.default.isExportAssignment(node) || import_typescript9.default.isExportDeclaration(node); -} -function hasType(node) { - return isSignatureDeclaration(node) || import_typescript9.default.isVariableDeclaration(node) || import_typescript9.default.isParameter(node) || import_typescript9.default.isPropertySignature(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isTypePredicateNode(node) || import_typescript9.default.isParenthesizedTypeNode(node) || import_typescript9.default.isTypeOperatorNode(node) || import_typescript9.default.isMappedTypeNode(node) || import_typescript9.default.isAssertionExpression(node) || import_typescript9.default.isTypeAliasDeclaration(node) || import_typescript9.default.isJSDocTypeExpression(node) || import_typescript9.default.isJSDocNonNullableType(node) || import_typescript9.default.isJSDocNullableType(node) || import_typescript9.default.isJSDocOptionalType(node) || import_typescript9.default.isJSDocVariadicType(node); -} -function hasTypeArguments(node) { - return import_typescript9.default.isCallExpression(node) || import_typescript9.default.isNewExpression(node) || import_typescript9.default.isTaggedTemplateExpression(node) || import_typescript9.default.isJsxOpeningElement(node) || import_typescript9.default.isJsxSelfClosingElement(node); -} -function isJSDocComment(node) { - if (isJSDocText(node)) { - return true; - } - if (isTsVersionAtLeast(4, 4)) { - return import_typescript9.default.isJSDocLink(node) || import_typescript9.default.isJSDocLinkCode(node) || import_typescript9.default.isJSDocLinkPlain(node); - } - return false; -} -function isJSDocNamespaceBody(node) { - return import_typescript9.default.isIdentifier(node) || isJSDocNamespaceDeclaration(node); -} -function isJSDocTypeReferencingNode(node) { - return import_typescript9.default.isJSDocVariadicType(node) || import_typescript9.default.isJSDocOptionalType(node) || import_typescript9.default.isJSDocNullableType(node) || import_typescript9.default.isJSDocNonNullableType(node); -} -function isJsonObjectExpression(node) { - return import_typescript9.default.isObjectLiteralExpression(node) || import_typescript9.default.isArrayLiteralExpression(node) || isJsonMinusNumericLiteral(node) || import_typescript9.default.isNumericLiteral(node) || import_typescript9.default.isStringLiteral(node) || isBooleanLiteral(node) || isNullLiteral(node); -} -function isJsxAttributeLike(node) { - return import_typescript9.default.isJsxAttribute(node) || import_typescript9.default.isJsxSpreadAttribute(node); -} -function isJsxAttributeValue(node) { - return import_typescript9.default.isStringLiteral(node) || import_typescript9.default.isJsxExpression(node) || import_typescript9.default.isJsxElement(node) || import_typescript9.default.isJsxSelfClosingElement(node) || import_typescript9.default.isJsxFragment(node); -} -function isJsxChild(node) { - return import_typescript9.default.isJsxText(node) || import_typescript9.default.isJsxExpression(node) || import_typescript9.default.isJsxElement(node) || import_typescript9.default.isJsxSelfClosingElement(node) || import_typescript9.default.isJsxFragment(node); -} -function isJsxTagNameExpression(node) { - return import_typescript9.default.isIdentifier(node) || isThisExpression(node) || isJsxTagNamePropertyAccess(node); -} -function isLiteralToken(node) { - return import_typescript9.default.isNumericLiteral(node) || import_typescript9.default.isBigIntLiteral(node) || import_typescript9.default.isStringLiteral(node) || import_typescript9.default.isJsxText(node) || import_typescript9.default.isRegularExpressionLiteral(node) || import_typescript9.default.isNoSubstitutionTemplateLiteral(node); -} -function isModuleBody(node) { - return isNamespaceBody(node) || isJSDocNamespaceBody(node); -} -function isModuleName(node) { - return import_typescript9.default.isIdentifier(node) || import_typescript9.default.isStringLiteral(node); -} -function isModuleReference(node) { - return import_typescript9.default.isEntityName(node) || import_typescript9.default.isExternalModuleReference(node); -} -function isNamedImportBindings(node) { - return import_typescript9.default.isNamespaceImport(node) || import_typescript9.default.isNamedImports(node); -} -function isNamedImportsOrExports(node) { - return import_typescript9.default.isNamedImports(node) || import_typescript9.default.isNamedExports(node); -} -function isNamespaceBody(node) { - return import_typescript9.default.isModuleBlock(node) || isNamespaceDeclaration(node); -} -function isObjectBindingOrAssignmentElement(node) { - return import_typescript9.default.isBindingElement(node) || import_typescript9.default.isPropertyAssignment(node) || import_typescript9.default.isShorthandPropertyAssignment(node) || import_typescript9.default.isSpreadAssignment(node); -} -function isObjectBindingOrAssignmentPattern(node) { - return import_typescript9.default.isObjectBindingPattern(node) || import_typescript9.default.isObjectLiteralExpression(node); -} -function isObjectTypeDeclaration(node) { - return ( - // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || import_typescript9.default.isInterfaceDeclaration(node) || import_typescript9.default.isTypeLiteralNode(node) - ); -} -function isParameterPropertyModifier(node) { - return isAccessibilityModifier(node) || isReadonlyKeyword(node); -} -function isPropertyNameLiteral(node) { - return import_typescript9.default.isIdentifier(node) || import_typescript9.default.isStringLiteralLike(node) || import_typescript9.default.isNumericLiteral(node); -} -function isPseudoLiteralToken(node) { - return import_typescript9.default.isTemplateHead(node) || import_typescript9.default.isTemplateMiddle(node) || import_typescript9.default.isTemplateTail(node); -} -function isSignatureDeclaration(node) { - return import_typescript9.default.isCallSignatureDeclaration(node) || import_typescript9.default.isConstructSignatureDeclaration(node) || import_typescript9.default.isMethodSignature(node) || import_typescript9.default.isIndexSignatureDeclaration(node) || import_typescript9.default.isFunctionTypeNode(node) || import_typescript9.default.isConstructorTypeNode(node) || import_typescript9.default.isJSDocFunctionType(node) || import_typescript9.default.isFunctionDeclaration(node) || import_typescript9.default.isMethodDeclaration(node) || import_typescript9.default.isConstructorDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isAccessorDeclaration(node) || import_typescript9.default.isFunctionExpression(node) || import_typescript9.default.isArrowFunction(node); -} -function isSuperProperty(node) { - return isSuperPropertyAccessExpression(node) || isSuperElementAccessExpression(node); -} -function isTypeOnlyCompatibleAliasDeclaration(node) { - if (import_typescript9.default.isImportClause(node) || import_typescript9.default.isImportEqualsDeclaration(node) || import_typescript9.default.isNamespaceImport(node) || import_typescript9.default.isImportOrExportSpecifier(node)) { - return true; - } - if (isTsVersionAtLeast(5, 0) && (import_typescript9.default.isExportDeclaration(node) || import_typescript9.default.isNamespaceExport(node))) { - return true; - } - return false; -} -function isTypeReferenceType(node) { - return import_typescript9.default.isTypeReferenceNode(node) || import_typescript9.default.isExpressionWithTypeArguments(node); -} -function isUnionOrIntersectionTypeNode(node) { - return import_typescript9.default.isUnionTypeNode(node) || import_typescript9.default.isIntersectionTypeNode(node); -} -function isUnparsedSourceText(node) { - return import_typescript9.default.isUnparsedPrepend(node) || import_typescript9.default.isUnparsedTextLike(node); -} -function isVariableLikeDeclaration(node) { - return import_typescript9.default.isVariableDeclaration(node) || import_typescript9.default.isParameter(node) || import_typescript9.default.isBindingElement(node) || import_typescript9.default.isPropertyDeclaration(node) || import_typescript9.default.isPropertyAssignment(node) || import_typescript9.default.isPropertySignature(node) || import_typescript9.default.isJsxAttribute(node) || import_typescript9.default.isShorthandPropertyAssignment(node) || import_typescript9.default.isEnumMember(node) || import_typescript9.default.isJSDocPropertyTag(node) || import_typescript9.default.isJSDocParameterTag(node); -} - -// src/nodes/typeGuards/compound.ts -function isConstAssertionExpression(node) { - return import_typescript10.default.isTypeReferenceNode(node.type) && import_typescript10.default.isIdentifier(node.type.typeName) && node.type.typeName.escapedText === "const"; -} -function isIterationStatement(node) { - switch (node.kind) { - case import_typescript10.default.SyntaxKind.DoStatement: - case import_typescript10.default.SyntaxKind.ForInStatement: - case import_typescript10.default.SyntaxKind.ForOfStatement: - case import_typescript10.default.SyntaxKind.ForStatement: - case import_typescript10.default.SyntaxKind.WhileStatement: - return true; - default: - return false; - } -} -function isJSDocNamespaceDeclaration(node) { - return import_typescript10.default.isModuleDeclaration(node) && import_typescript10.default.isIdentifier(node.name) && (node.body === void 0 || isJSDocNamespaceBody(node.body)); -} -function isJsxTagNamePropertyAccess(node) { - return import_typescript10.default.isPropertyAccessExpression(node) && // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts < 5 - isJsxTagNameExpression(node.expression); -} -function isNamedDeclarationWithName(node) { - return "name" in node && node.name !== void 0 && node.name !== null && isDeclarationName(node.name); -} -function isNamespaceDeclaration(node) { - return import_typescript10.default.isModuleDeclaration(node) && import_typescript10.default.isIdentifier(node.name) && node.body !== void 0 && isNamespaceBody(node.body); -} -function isNumericOrStringLikeLiteral(node) { - switch (node.kind) { - case import_typescript10.default.SyntaxKind.StringLiteral: - case import_typescript10.default.SyntaxKind.NumericLiteral: - case import_typescript10.default.SyntaxKind.NoSubstitutionTemplateLiteral: - return true; - default: - return false; - } -} -function isPropertyAccessEntityNameExpression(node) { - return import_typescript10.default.isPropertyAccessExpression(node) && import_typescript10.default.isIdentifier(node.name) && isEntityNameExpression(node.expression); -} -function isSuperElementAccessExpression(node) { - return import_typescript10.default.isElementAccessExpression(node) && isSuperExpression(node.expression); -} -function isSuperPropertyAccessExpression(node) { - return import_typescript10.default.isPropertyAccessExpression(node) && isSuperExpression(node.expression); -} - -// src/scopes.ts -var import_typescript11 = __toESM(require("typescript"), 1); -function isFunctionScopeBoundary(node) { - switch (node.kind) { - case import_typescript11.default.SyntaxKind.FunctionExpression: - case import_typescript11.default.SyntaxKind.ArrowFunction: - case import_typescript11.default.SyntaxKind.Constructor: - case import_typescript11.default.SyntaxKind.ModuleDeclaration: - case import_typescript11.default.SyntaxKind.ClassDeclaration: - case import_typescript11.default.SyntaxKind.ClassExpression: - case import_typescript11.default.SyntaxKind.EnumDeclaration: - case import_typescript11.default.SyntaxKind.MethodDeclaration: - case import_typescript11.default.SyntaxKind.FunctionDeclaration: - case import_typescript11.default.SyntaxKind.GetAccessor: - case import_typescript11.default.SyntaxKind.SetAccessor: - case import_typescript11.default.SyntaxKind.MethodSignature: - case import_typescript11.default.SyntaxKind.CallSignature: - case import_typescript11.default.SyntaxKind.ConstructSignature: - case import_typescript11.default.SyntaxKind.ConstructorType: - case import_typescript11.default.SyntaxKind.FunctionType: - return true; - case import_typescript11.default.SyntaxKind.SourceFile: - return import_typescript11.default.isExternalModule(node); - default: - return false; - } -} - -// src/types/getters.ts -var import_typescript16 = __toESM(require("typescript"), 1); - -// src/types/typeGuards/intrinsic.ts -var import_typescript12 = __toESM(require("typescript"), 1); -function isIntrinsicAnyType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Any); -} -function isIntrinsicBooleanType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Boolean); -} -function isIntrinsicBigIntType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.BigInt); -} -function isIntrinsicErrorType(type) { - return isIntrinsicType(type) && type.intrinsicName === "error"; -} -function isIntrinsicESSymbolType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.ESSymbol); -} -var IntrinsicTypeFlags = import_typescript12.default.TypeFlags.Intrinsic ?? import_typescript12.default.TypeFlags.Any | import_typescript12.default.TypeFlags.Unknown | import_typescript12.default.TypeFlags.String | import_typescript12.default.TypeFlags.Number | import_typescript12.default.TypeFlags.BigInt | import_typescript12.default.TypeFlags.Boolean | import_typescript12.default.TypeFlags.BooleanLiteral | import_typescript12.default.TypeFlags.ESSymbol | import_typescript12.default.TypeFlags.Void | import_typescript12.default.TypeFlags.Undefined | import_typescript12.default.TypeFlags.Null | import_typescript12.default.TypeFlags.Never | import_typescript12.default.TypeFlags.NonPrimitive; -function isIntrinsicType(type) { - return isTypeFlagSet(type, IntrinsicTypeFlags); -} -function isIntrinsicNeverType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Never); -} -function isIntrinsicNonPrimitiveType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.NonPrimitive); -} -function isIntrinsicNullType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Null); -} -function isIntrinsicNumberType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Number); -} -function isIntrinsicStringType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.String); -} -function isIntrinsicUndefinedType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Undefined); -} -function isIntrinsicUnknownType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Unknown); -} -function isIntrinsicVoidType(type) { - return isTypeFlagSet(type, import_typescript12.default.TypeFlags.Void); -} - -// src/types/typeGuards/objects.ts -var import_typescript14 = __toESM(require("typescript"), 1); - -// src/types/typeGuards/single.ts -var import_typescript13 = __toESM(require("typescript"), 1); -function isConditionalType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Conditional); -} -function isEnumType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Enum); -} -function isFreshableType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Freshable); -} -function isIndexType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Index); -} -function isIndexedAccessType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.IndexedAccess); -} -function isInstantiableType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Instantiable); -} -function isIntersectionType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Intersection); -} -function isObjectType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Object); -} -function isStringMappingType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.StringMapping); -} -function isSubstitutionType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Substitution); -} -function isTypeParameter(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.TypeParameter); -} -function isTypeVariable(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.TypeVariable); -} -function isUnionType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.Union); -} -function isUnionOrIntersectionType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.UnionOrIntersection); -} -function isUniqueESSymbolType(type) { - return isTypeFlagSet(type, import_typescript13.default.TypeFlags.UniqueESSymbol); -} - -// src/types/typeGuards/objects.ts -function isEvolvingArrayType(type) { - return isObjectType(type) && isObjectFlagSet(type, import_typescript14.default.ObjectFlags.EvolvingArray); -} -function isTupleType(type) { - return isObjectType(type) && isObjectFlagSet(type, import_typescript14.default.ObjectFlags.Tuple); -} -function isTypeReference(type) { - return isObjectType(type) && isObjectFlagSet(type, import_typescript14.default.ObjectFlags.Reference); -} - -// src/types/typeGuards/compound.ts -function isFreshableIntrinsicType(type) { - return isIntrinsicType(type) && isFreshableType(type); -} -function isTupleTypeReference(type) { - return isTypeReference(type) && isTupleType(type.target); -} - -// src/types/typeGuards/literal.ts -var import_typescript15 = __toESM(require("typescript"), 1); -function isBooleanLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.BooleanLiteral); -} -function isBigIntLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.BigIntLiteral); -} -function isFalseLiteralType(type) { - return isBooleanLiteralType(type) && type.intrinsicName === "false"; -} -function isLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.Literal); -} -function isNumberLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.NumberLiteral); -} -function isStringLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.StringLiteral); -} -function isTemplateLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.TemplateLiteral); -} -function isTrueLiteralType(type) { - return isBooleanLiteralType(type) && type.intrinsicName === "true"; -} -function isUnknownLiteralType(type) { - return isTypeFlagSet(type, import_typescript15.default.TypeFlags.Literal); -} - -// src/types/getters.ts -function getCallSignaturesOfType(type) { - if (isUnionType(type)) { - const signatures = []; - for (const subType of type.types) { - signatures.push(...getCallSignaturesOfType(subType)); - } - return signatures; - } - if (isIntersectionType(type)) { - let signatures; - for (const subType of type.types) { - const sig = getCallSignaturesOfType(subType); - if (sig.length !== 0) { - if (signatures !== void 0) { - return []; - } - signatures = sig; - } - } - return signatures === void 0 ? [] : signatures; - } - return type.getCallSignatures(); -} -function getPropertyOfType(type, name) { - if (!name.startsWith("__")) { - return type.getProperty(name); - } - return type.getProperties().find((s) => s.escapedName === name); -} -function getWellKnownSymbolPropertyOfType(type, wellKnownSymbolName, typeChecker) { - const prefix = "__@" + wellKnownSymbolName; - for (const prop of type.getProperties()) { - if (!prop.name.startsWith(prefix)) { - continue; - } - const declaration = prop.valueDeclaration ?? prop.getDeclarations()[0]; - if (!isNamedDeclarationWithName(declaration) || declaration.name === void 0 || !import_typescript16.default.isComputedPropertyName(declaration.name)) { - continue; - } - const globalSymbol = typeChecker.getApparentType( - typeChecker.getTypeAtLocation(declaration.name.expression) - ).symbol; - if (prop.escapedName === getPropertyNameOfWellKnownSymbol( - typeChecker, - globalSymbol, - wellKnownSymbolName - )) { - return prop; - } - } - return void 0; -} -function getPropertyNameOfWellKnownSymbol(typeChecker, symbolConstructor, symbolName) { - const knownSymbol = symbolConstructor && typeChecker.getTypeOfSymbolAtLocation( - symbolConstructor, - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - symbolConstructor.valueDeclaration - ).getProperty(symbolName); - const knownSymbolType = knownSymbol && typeChecker.getTypeOfSymbolAtLocation( - knownSymbol, - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - knownSymbol.valueDeclaration - ); - if (knownSymbolType && isUniqueESSymbolType(knownSymbolType)) { - return knownSymbolType.escapedName; - } - return "__@" + symbolName; -} - -// src/types/utilities.ts -var import_typescript18 = __toESM(require("typescript"), 1); - -// src/nodes/utilities.ts -var import_typescript17 = __toESM(require("typescript"), 1); -function isBindableObjectDefinePropertyCall(node) { - return node.arguments.length === 3 && isEntityNameExpression(node.arguments[0]) && isNumericOrStringLikeLiteral(node.arguments[1]) && import_typescript17.default.isPropertyAccessExpression(node.expression) && node.expression.name.escapedText === "defineProperty" && import_typescript17.default.isIdentifier(node.expression.expression) && node.expression.expression.escapedText === "Object"; -} -function isInConstContext(node) { - let current = node; - while (true) { - const parent = current.parent; - outer: - switch (parent.kind) { - case import_typescript17.default.SyntaxKind.TypeAssertionExpression: - case import_typescript17.default.SyntaxKind.AsExpression: - return isConstAssertionExpression(parent); - case import_typescript17.default.SyntaxKind.PrefixUnaryExpression: - if (current.kind !== import_typescript17.default.SyntaxKind.NumericLiteral) { - return false; - } - switch (parent.operator) { - case import_typescript17.default.SyntaxKind.PlusToken: - case import_typescript17.default.SyntaxKind.MinusToken: - current = parent; - break outer; - default: - return false; - } - case import_typescript17.default.SyntaxKind.PropertyAssignment: - if (parent.initializer !== current) { - return false; - } - current = parent.parent; - break; - case import_typescript17.default.SyntaxKind.ShorthandPropertyAssignment: - current = parent.parent; - break; - case import_typescript17.default.SyntaxKind.ParenthesizedExpression: - case import_typescript17.default.SyntaxKind.ArrayLiteralExpression: - case import_typescript17.default.SyntaxKind.ObjectLiteralExpression: - case import_typescript17.default.SyntaxKind.TemplateExpression: - current = parent; - break; - default: - return false; - } - } -} - -// src/types/utilities.ts -function isFalsyType(type) { - if (isTypeFlagSet( - type, - import_typescript18.default.TypeFlags.Undefined | import_typescript18.default.TypeFlags.Null | import_typescript18.default.TypeFlags.Void - )) { - return true; - } - if (type.isLiteral()) { - return !type.value; - } - return isFalseLiteralType(type); -} -function intersectionTypeParts(type) { - return isIntersectionType(type) ? type.types : [type]; -} -function typeParts(type) { - return isIntersectionType(type) || isUnionType(type) ? type.types : [type]; -} -function isReadonlyPropertyIntersection(type, name, typeChecker) { - const typeParts2 = isIntersectionType(type) ? type.types : [type]; - return typeParts2.some((subType) => { - const prop = getPropertyOfType(subType, name); - if (prop === void 0) { - return false; - } - if (prop.flags & import_typescript18.default.SymbolFlags.Transient) { - if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) { - return subType.target.readonly; - } - switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) { - case true: - return true; - case false: - return false; - default: - } - } - return !!// members of namespace import - (isSymbolFlagSet(prop, import_typescript18.default.SymbolFlags.ValueModule) || // we unwrapped every mapped type, now we can check the actual declarations - symbolHasReadonlyDeclaration(prop, typeChecker)); - }); -} -function isReadonlyPropertyFromMappedType(type, name, typeChecker) { - if (!isObjectType(type) || !isObjectFlagSet(type, import_typescript18.default.ObjectFlags.Mapped)) { - return; - } - const declaration = type.symbol.declarations[0]; - if (declaration.readonlyToken !== void 0 && !/^__@[^@]+$/.test(name)) { - return declaration.readonlyToken.kind !== import_typescript18.default.SyntaxKind.MinusToken; - } - const { modifiersType } = type; - return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker); -} -function isCallback(typeChecker, param, node) { - let type = typeChecker.getApparentType( - typeChecker.getTypeOfSymbolAtLocation(param, node) - ); - if (param.valueDeclaration.dotDotDotToken) { - type = type.getNumberIndexType(); - if (type === void 0) { - return false; - } - } - for (const subType of unionTypeParts(type)) { - if (subType.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function isPropertyReadonlyInType(type, name, typeChecker) { - let seenProperty = false; - let seenReadonlySignature = false; - for (const subType of unionTypeParts(type)) { - if (getPropertyOfType(subType, name) === void 0) { - const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, import_typescript18.default.IndexKind.Number) : void 0) ?? typeChecker.getIndexInfoOfType(subType, import_typescript18.default.IndexKind.String); - if (index?.isReadonly) { - if (seenProperty) { - return true; - } - seenReadonlySignature = true; - } - } else if (seenReadonlySignature || isReadonlyPropertyIntersection(subType, name, typeChecker)) { - return true; - } else { - seenProperty = true; - } - } - return false; -} -function isReadonlyAssignmentDeclaration(node, typeChecker) { - if (!isBindableObjectDefinePropertyCall(node)) { - return false; - } - const descriptorType = typeChecker.getTypeAtLocation(node.arguments[2]); - if (descriptorType.getProperty("value") === void 0) { - return descriptorType.getProperty("set") === void 0; - } - const writableProp = descriptorType.getProperty("writable"); - if (writableProp === void 0) { - return false; - } - const writableType = writableProp.valueDeclaration !== void 0 && import_typescript18.default.isPropertyAssignment(writableProp.valueDeclaration) ? typeChecker.getTypeAtLocation(writableProp.valueDeclaration.initializer) : typeChecker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]); - return isFalseLiteralType(writableType); -} -function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) { - for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) { - const then = typePart.getProperty("then"); - if (then === void 0) { - continue; - } - const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node); - for (const subTypePart of unionTypeParts(thenType)) { - for (const signature of subTypePart.getCallSignatures()) { - if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) { - return true; - } - } - } - } - return false; -} -function symbolHasReadonlyDeclaration(symbol, typeChecker) { - return !!((symbol.flags & import_typescript18.default.SymbolFlags.Accessor) === import_typescript18.default.SymbolFlags.GetAccessor || symbol.declarations?.some( - (node) => isModifierFlagSet(node, import_typescript18.default.ModifierFlags.Readonly) || import_typescript18.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, import_typescript18.default.NodeFlags.Const) || import_typescript18.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || import_typescript18.default.isEnumMember(node) || (import_typescript18.default.isPropertyAssignment(node) || import_typescript18.default.isShorthandPropertyAssignment(node)) && isInConstContext(node.parent) - )); -} -function unionTypeParts(type) { - return isUnionType(type) ? type.types : [type]; -} - -// src/usage/UsageWalker.ts -var import_typescript24 = __toESM(require("typescript"), 1); - -// src/usage/Scope.ts -var import_typescript19 = __toESM(require("typescript"), 1); -function isBlockScopeBoundary(node) { - switch (node.kind) { - case import_typescript19.default.SyntaxKind.Block: { - const parent = node.parent; - return parent.kind !== import_typescript19.default.SyntaxKind.CatchClause && // blocks inside SourceFile are block scope boundaries - (parent.kind === import_typescript19.default.SyntaxKind.SourceFile || // blocks that are direct children of a function scope boundary are no scope boundary - // for example the FunctionBlock is part of the function scope of the containing function - !isFunctionScopeBoundary(parent)) ? 2 /* Block */ : 0 /* None */; - } - case import_typescript19.default.SyntaxKind.ForStatement: - case import_typescript19.default.SyntaxKind.ForInStatement: - case import_typescript19.default.SyntaxKind.ForOfStatement: - case import_typescript19.default.SyntaxKind.CaseBlock: - case import_typescript19.default.SyntaxKind.CatchClause: - case import_typescript19.default.SyntaxKind.WithStatement: - return 2 /* Block */; - default: - return 0 /* None */; - } -} - -// src/usage/declarations.ts -var import_typescript21 = __toESM(require("typescript"), 1); - -// src/usage/utils.ts -var import_typescript20 = __toESM(require("typescript"), 1); -function identifierToKeywordKind(node) { - return "identifierToKeywordKind" in import_typescript20.default ? import_typescript20.default.identifierToKeywordKind(node) : ( - // eslint-disable-next-line deprecation/deprecation - node.originalKeywordKind - ); -} -function canHaveDecorators(node) { - return "canHaveDecorators" in import_typescript20.default ? import_typescript20.default.canHaveDecorators(node) : "decorators" in node; -} -function getDecorators(node) { - return "getDecorators" in import_typescript20.default ? import_typescript20.default.getDecorators(node) : node.decorators; -} - -// src/usage/declarations.ts -var DeclarationDomain = /* @__PURE__ */ ((DeclarationDomain2) => { - DeclarationDomain2[DeclarationDomain2["Import"] = 8] = "Import"; - DeclarationDomain2[DeclarationDomain2["Namespace"] = 1] = "Namespace"; - DeclarationDomain2[DeclarationDomain2["Type"] = 2] = "Type"; - DeclarationDomain2[DeclarationDomain2["Value"] = 4] = "Value"; - DeclarationDomain2[DeclarationDomain2["Any"] = 7] = "Any"; - return DeclarationDomain2; -})(DeclarationDomain || {}); -function getDeclarationDomain(node) { - switch (node.parent.kind) { - case import_typescript21.default.SyntaxKind.TypeParameter: - case import_typescript21.default.SyntaxKind.InterfaceDeclaration: - case import_typescript21.default.SyntaxKind.TypeAliasDeclaration: - return 2 /* Type */; - case import_typescript21.default.SyntaxKind.ClassDeclaration: - case import_typescript21.default.SyntaxKind.ClassExpression: - return 2 /* Type */ | 4 /* Value */; - case import_typescript21.default.SyntaxKind.EnumDeclaration: - return 7 /* Any */; - case import_typescript21.default.SyntaxKind.NamespaceImport: - case import_typescript21.default.SyntaxKind.ImportClause: - return 7 /* Any */ | 8 /* Import */; - case import_typescript21.default.SyntaxKind.ImportEqualsDeclaration: - case import_typescript21.default.SyntaxKind.ImportSpecifier: - return node.parent.name === node ? 7 /* Any */ | 8 /* Import */ : void 0; - case import_typescript21.default.SyntaxKind.ModuleDeclaration: - return 1 /* Namespace */; - case import_typescript21.default.SyntaxKind.Parameter: - if (node.parent.parent.kind === import_typescript21.default.SyntaxKind.IndexSignature || identifierToKeywordKind(node) === import_typescript21.default.SyntaxKind.ThisKeyword) { - return; - } - case import_typescript21.default.SyntaxKind.BindingElement: - case import_typescript21.default.SyntaxKind.VariableDeclaration: - return node.parent.name === node ? 4 /* Value */ : void 0; - case import_typescript21.default.SyntaxKind.FunctionDeclaration: - case import_typescript21.default.SyntaxKind.FunctionExpression: - return 4 /* Value */; - } -} - -// src/usage/getPropertyName.ts -var import_typescript22 = __toESM(require("typescript"), 1); -function unwrapParentheses(node) { - while (node.kind === import_typescript22.default.SyntaxKind.ParenthesizedExpression) { - node = node.expression; - } - return node; -} -function getPropertyName(propertyName) { - if (propertyName.kind === import_typescript22.default.SyntaxKind.ComputedPropertyName) { - const expression = unwrapParentheses(propertyName.expression); - if (import_typescript22.default.isPrefixUnaryExpression(expression)) { - let negate = false; - switch (expression.operator) { - case import_typescript22.default.SyntaxKind.MinusToken: - negate = true; - case import_typescript22.default.SyntaxKind.PlusToken: - return import_typescript22.default.isNumericLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text}` : import_typescript22.default.isBigIntLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text.slice(0, -1)}` : void 0; - default: - return; - } - } - if (import_typescript22.default.isBigIntLiteral(expression)) { - return expression.text.slice(0, -1); - } - if (isNumericOrStringLikeLiteral(expression)) { - return expression.text; - } - return; - } - return propertyName.kind === import_typescript22.default.SyntaxKind.PrivateIdentifier ? void 0 : propertyName.text; -} - -// src/usage/getUsageDomain.ts -var import_typescript23 = __toESM(require("typescript"), 1); -var UsageDomain = /* @__PURE__ */ ((UsageDomain2) => { - UsageDomain2[UsageDomain2["Namespace"] = 1] = "Namespace"; - UsageDomain2[UsageDomain2["Type"] = 2] = "Type"; - UsageDomain2[UsageDomain2["TypeQuery"] = 8] = "TypeQuery"; - UsageDomain2[UsageDomain2["Value"] = 4] = "Value"; - UsageDomain2[UsageDomain2["ValueOrNamespace"] = 5] = "ValueOrNamespace"; - UsageDomain2[UsageDomain2["Any"] = 7] = "Any"; - return UsageDomain2; -})(UsageDomain || {}); -function getUsageDomain(node) { - const parent = node.parent; - switch (parent.kind) { - case import_typescript23.default.SyntaxKind.TypeReference: - return identifierToKeywordKind(node) !== import_typescript23.default.SyntaxKind.ConstKeyword ? 2 /* Type */ : void 0; - case import_typescript23.default.SyntaxKind.ExpressionWithTypeArguments: - return parent.parent.token === import_typescript23.default.SyntaxKind.ImplementsKeyword || parent.parent.parent.kind === import_typescript23.default.SyntaxKind.InterfaceDeclaration ? 2 /* Type */ : 4 /* Value */; - case import_typescript23.default.SyntaxKind.TypeQuery: - return 5 /* ValueOrNamespace */ | 8 /* TypeQuery */; - case import_typescript23.default.SyntaxKind.QualifiedName: - if (parent.left === node) { - if (getEntityNameParent(parent).kind === import_typescript23.default.SyntaxKind.TypeQuery) { - return 1 /* Namespace */ | 8 /* TypeQuery */; - } - return 1 /* Namespace */; - } - break; - case import_typescript23.default.SyntaxKind.ExportSpecifier: - if (parent.propertyName === void 0 || parent.propertyName === node) { - return 7 /* Any */; - } - break; - case import_typescript23.default.SyntaxKind.ExportAssignment: - return 7 /* Any */; - case import_typescript23.default.SyntaxKind.BindingElement: - if (parent.initializer === node) { - return 5 /* ValueOrNamespace */; - } - break; - case import_typescript23.default.SyntaxKind.Parameter: - case import_typescript23.default.SyntaxKind.EnumMember: - case import_typescript23.default.SyntaxKind.PropertyDeclaration: - case import_typescript23.default.SyntaxKind.VariableDeclaration: - case import_typescript23.default.SyntaxKind.PropertyAssignment: - case import_typescript23.default.SyntaxKind.PropertyAccessExpression: - case import_typescript23.default.SyntaxKind.ImportEqualsDeclaration: - if (parent.name !== node) { - return 5 /* ValueOrNamespace */; - } - break; - case import_typescript23.default.SyntaxKind.JsxAttribute: - case import_typescript23.default.SyntaxKind.FunctionDeclaration: - case import_typescript23.default.SyntaxKind.FunctionExpression: - case import_typescript23.default.SyntaxKind.NamespaceImport: - case import_typescript23.default.SyntaxKind.ClassDeclaration: - case import_typescript23.default.SyntaxKind.ClassExpression: - case import_typescript23.default.SyntaxKind.ModuleDeclaration: - case import_typescript23.default.SyntaxKind.MethodDeclaration: - case import_typescript23.default.SyntaxKind.EnumDeclaration: - case import_typescript23.default.SyntaxKind.GetAccessor: - case import_typescript23.default.SyntaxKind.SetAccessor: - case import_typescript23.default.SyntaxKind.LabeledStatement: - case import_typescript23.default.SyntaxKind.BreakStatement: - case import_typescript23.default.SyntaxKind.ContinueStatement: - case import_typescript23.default.SyntaxKind.ImportClause: - case import_typescript23.default.SyntaxKind.ImportSpecifier: - case import_typescript23.default.SyntaxKind.TypePredicate: - case import_typescript23.default.SyntaxKind.MethodSignature: - case import_typescript23.default.SyntaxKind.PropertySignature: - case import_typescript23.default.SyntaxKind.NamespaceExportDeclaration: - case import_typescript23.default.SyntaxKind.NamespaceExport: - case import_typescript23.default.SyntaxKind.InterfaceDeclaration: - case import_typescript23.default.SyntaxKind.TypeAliasDeclaration: - case import_typescript23.default.SyntaxKind.TypeParameter: - case import_typescript23.default.SyntaxKind.NamedTupleMember: - break; - default: - return 5 /* ValueOrNamespace */; - } -} -function getEntityNameParent(name) { - let parent = name.parent; - while (parent.kind === import_typescript23.default.SyntaxKind.QualifiedName) { - parent = parent.parent; - } - return parent; -} - -// src/usage/scopes.ts -var _enumScopes; -var AbstractScope = class { - constructor(global) { - this.global = global; - __privateAdd(this, _enumScopes, void 0); - this.namespaceScopes = void 0; - this.uses = []; - this.variables = /* @__PURE__ */ new Map(); - } - addUse(use) { - this.uses.push(use); - } - // eslint-disable-next-line @typescript-eslint/no-empty-function - addUseToParent(_use) { - } - addVariable(identifier, name, selector, exported, domain) { - const variables = this.getDestinationScope(selector).getVariables(); - const declaration = { - declaration: name, - domain, - exported - }; - const variable = variables.get(identifier); - if (variable === void 0) { - variables.set(identifier, { - declarations: [declaration], - domain, - uses: [] - }); - } else { - variable.domain |= domain; - variable.declarations.push(declaration); - } - } - applyUse(use, variables = this.variables) { - const variable = variables.get(use.location.text); - if (variable === void 0 || (variable.domain & use.domain) === 0) { - return false; - } - variable.uses.push(use); - return true; - } - applyUses() { - for (const use of this.uses) { - if (!this.applyUse(use)) { - this.addUseToParent(use); - } - } - this.uses = []; - } - createOrReuseEnumScope(name, _exported) { - let scope; - if (__privateGet(this, _enumScopes) === void 0) { - __privateSet(this, _enumScopes, /* @__PURE__ */ new Map()); - } else { - scope = __privateGet(this, _enumScopes).get(name); - } - if (scope === void 0) { - scope = new EnumScope(this); - __privateGet(this, _enumScopes).set(name, scope); - } - return scope; - } - // only relevant for the root scope - createOrReuseNamespaceScope(name, _exported, ambient, hasExportStatement) { - let scope; - if (this.namespaceScopes === void 0) { - this.namespaceScopes = /* @__PURE__ */ new Map(); - } else { - scope = this.namespaceScopes.get(name); - } - if (scope === void 0) { - scope = new NamespaceScope(ambient, hasExportStatement, this); - this.namespaceScopes.set(name, scope); - } else { - scope.refresh(ambient, hasExportStatement); - } - return scope; - } - end(cb) { - if (this.namespaceScopes !== void 0) { - this.namespaceScopes.forEach((value) => value.finish(cb)); - } - this.namespaceScopes = __privateSet(this, _enumScopes, void 0); - this.applyUses(); - this.variables.forEach((variable) => { - for (const declaration of variable.declarations) { - const result = { - declarations: [], - domain: declaration.domain, - exported: declaration.exported, - inGlobalScope: this.global, - uses: [] - }; - for (const other of variable.declarations) { - if (other.domain & declaration.domain) { - result.declarations.push(other.declaration); - } - } - for (const use of variable.uses) { - if (use.domain & declaration.domain) { - result.uses.push(use); - } - } - cb(result, declaration.declaration, this); - } - }); - } - getFunctionScope() { - return this; - } - getVariables() { - return this.variables; - } - // eslint-disable-next-line @typescript-eslint/no-empty-function - markExported(_name2) { - } -}; -_enumScopes = new WeakMap(); -var NonRootScope = class extends AbstractScope { - constructor(parent, boundary) { - super(false); - this.parent = parent; - this.boundary = boundary; - } - addUseToParent(use) { - return this.parent.addUse(use, this); - } - getDestinationScope(selector) { - return this.boundary & selector ? this : this.parent.getDestinationScope(selector); - } -}; -var EnumScope = class extends NonRootScope { - constructor(parent) { - super(parent, 1 /* Function */); - } - end() { - this.applyUses(); - } -}; -var _exportAll, _exports, _innerScope; -var RootScope = class extends AbstractScope { - constructor(exportAll, global) { - super(global); - __privateAdd(this, _exportAll, void 0); - __privateAdd(this, _exports, void 0); - __privateAdd(this, _innerScope, new NonRootScope(this, 1 /* Function */)); - __privateSet(this, _exportAll, exportAll); - } - addUse(use, origin) { - if (origin === __privateGet(this, _innerScope)) { - return super.addUse(use); - } - return __privateGet(this, _innerScope).addUse(use); - } - addVariable(identifier, name, selector, exported, domain) { - if (domain & 8 /* Import */) { - return super.addVariable(identifier, name, selector, exported, domain); - } - return __privateGet(this, _innerScope).addVariable( - identifier, - name, - selector, - exported, - domain - ); - } - end(cb) { - __privateGet(this, _innerScope).end((value, key) => { - value.exported ||= __privateGet(this, _exportAll) || __privateGet(this, _exports) !== void 0 && __privateGet(this, _exports).includes(key.text); - value.inGlobalScope = this.global; - return cb(value, key, this); - }); - return super.end((value, key, scope) => { - value.exported ||= scope === this && __privateGet(this, _exports) !== void 0 && __privateGet(this, _exports).includes(key.text); - return cb(value, key, scope); - }); - } - getDestinationScope() { - return this; - } - markExported(id) { - if (__privateGet(this, _exports) === void 0) { - __privateSet(this, _exports, [id.text]); - } else { - __privateGet(this, _exports).push(id.text); - } - } -}; -_exportAll = new WeakMap(); -_exports = new WeakMap(); -_innerScope = new WeakMap(); -var _ambient, _exports2, _hasExport, _innerScope2; -var NamespaceScope = class extends NonRootScope { - constructor(ambient, hasExport, parent) { - super(parent, 1 /* Function */); - __privateAdd(this, _ambient, void 0); - __privateAdd(this, _exports2, void 0); - __privateAdd(this, _hasExport, void 0); - __privateAdd(this, _innerScope2, new NonRootScope(this, 1 /* Function */)); - __privateSet(this, _ambient, ambient); - __privateSet(this, _hasExport, hasExport); - } - addUse(use, source) { - if (source !== __privateGet(this, _innerScope2)) { - return __privateGet(this, _innerScope2).addUse(use); - } - this.uses.push(use); - } - createOrReuseEnumScope(name, exported) { - if (!exported && (!__privateGet(this, _ambient) || __privateGet(this, _hasExport))) { - return __privateGet(this, _innerScope2).createOrReuseEnumScope(name, exported); - } - return super.createOrReuseEnumScope(name, exported); - } - createOrReuseNamespaceScope(name, exported, ambient, hasExportStatement) { - if (!exported && (!__privateGet(this, _ambient) || __privateGet(this, _hasExport))) { - return __privateGet(this, _innerScope2).createOrReuseNamespaceScope( - name, - exported, - ambient || __privateGet(this, _ambient), - hasExportStatement - ); - } - return super.createOrReuseNamespaceScope( - name, - exported, - ambient || __privateGet(this, _ambient), - hasExportStatement - ); - } - end(cb) { - __privateGet(this, _innerScope2).end((variable, key, scope) => { - if (scope !== __privateGet(this, _innerScope2) || !variable.exported && (!__privateGet(this, _ambient) || __privateGet(this, _exports2) !== void 0 && !__privateGet(this, _exports2).has(key.text))) { - return cb(variable, key, scope); - } - const namespaceVar = this.variables.get(key.text); - if (namespaceVar === void 0) { - this.variables.set(key.text, { - declarations: variable.declarations.map(mapDeclaration), - domain: variable.domain, - uses: [...variable.uses] - }); - } else { - outer: - for (const declaration of variable.declarations) { - for (const existing of namespaceVar.declarations) { - if (existing.declaration === declaration) { - continue outer; - } - namespaceVar.declarations.push(mapDeclaration(declaration)); - } - } - namespaceVar.domain |= variable.domain; - for (const use of variable.uses) { - if (namespaceVar.uses.includes(use)) { - continue; - } - namespaceVar.uses.push(use); - } - } - }); - this.applyUses(); - __privateSet(this, _innerScope2, new NonRootScope(this, 1 /* Function */)); - } - finish(cb) { - return super.end(cb); - } - getDestinationScope() { - return __privateGet(this, _innerScope2); - } - markExported(name) { - if (__privateGet(this, _exports2) === void 0) { - __privateSet(this, _exports2, /* @__PURE__ */ new Set()); - } - __privateGet(this, _exports2).add(name.text); - } - refresh(ambient, hasExport) { - __privateSet(this, _ambient, ambient); - __privateSet(this, _hasExport, hasExport); - } -}; -_ambient = new WeakMap(); -_exports2 = new WeakMap(); -_hasExport = new WeakMap(); -_innerScope2 = new WeakMap(); -function mapDeclaration(declaration) { - return { - declaration, - domain: getDeclarationDomain(declaration), - exported: true - }; -} -var FunctionScope = class extends NonRootScope { - constructor(parent) { - super(parent, 1 /* Function */); - } - beginBody() { - this.applyUses(); - } -}; -var _domain, _name; -var AbstractNamedExpressionScope = class extends NonRootScope { - constructor(name, domain, parent) { - super(parent, 1 /* Function */); - __privateAdd(this, _domain, void 0); - __privateAdd(this, _name, void 0); - __privateSet(this, _name, name); - __privateSet(this, _domain, domain); - } - addUse(use, source) { - if (source !== this.innerScope) { - return this.innerScope.addUse(use); - } - if (use.domain & __privateGet(this, _domain) && use.location.text === __privateGet(this, _name).text) { - this.uses.push(use); - } else { - return this.parent.addUse(use, this); - } - } - end(cb) { - this.innerScope.end(cb); - return cb( - { - declarations: [__privateGet(this, _name)], - domain: __privateGet(this, _domain), - exported: false, - inGlobalScope: false, - uses: this.uses - }, - __privateGet(this, _name), - this - ); - } - getDestinationScope() { - return this.innerScope; - } - getFunctionScope() { - return this.innerScope; - } -}; -_domain = new WeakMap(); -_name = new WeakMap(); -var FunctionExpressionScope = class extends AbstractNamedExpressionScope { - constructor(name, parent) { - super(name, 4 /* Value */, parent); - this.innerScope = new FunctionScope(this); - } - beginBody() { - return this.innerScope.beginBody(); - } -}; -var _functionScope; -var BlockScope = class extends NonRootScope { - constructor(functionScope, parent) { - super(parent, 2 /* Block */); - __privateAdd(this, _functionScope, void 0); - __privateSet(this, _functionScope, functionScope); - } - getFunctionScope() { - return __privateGet(this, _functionScope); - } -}; -_functionScope = new WeakMap(); -var ClassExpressionScope = class extends AbstractNamedExpressionScope { - constructor(name, parent) { - super(name, 4 /* Value */ | 2 /* Type */, parent); - this.innerScope = new NonRootScope(this, 1 /* Function */); - } -}; -var _state; -var ConditionalTypeScope = class extends NonRootScope { - constructor(parent) { - super(parent, 8 /* ConditionalType */); - __privateAdd(this, _state, 0 /* Initial */); - } - addUse(use) { - if (__privateGet(this, _state) === 2 /* TrueType */) { - return void this.uses.push(use); - } - return this.parent.addUse(use, this); - } - updateState(newState) { - __privateSet(this, _state, newState); - } -}; -_state = new WeakMap(); - -// src/usage/UsageWalker.ts -var _result, _scope, _handleBindingName, handleBindingName_fn, _handleConditionalType, handleConditionalType_fn, _handleDeclaration, handleDeclaration_fn, _handleFunctionLikeDeclaration, handleFunctionLikeDeclaration_fn, _handleModule, handleModule_fn, _handleVariableDeclaration, handleVariableDeclaration_fn; -var UsageWalker = class { - constructor() { - __privateAdd(this, _handleBindingName); - __privateAdd(this, _handleConditionalType); - __privateAdd(this, _handleDeclaration); - __privateAdd(this, _handleFunctionLikeDeclaration); - __privateAdd(this, _handleModule); - __privateAdd(this, _handleVariableDeclaration); - __privateAdd(this, _result, /* @__PURE__ */ new Map()); - __privateAdd(this, _scope, void 0); - } - getUsage(sourceFile) { - const variableCallback = (variable, key) => { - __privateGet(this, _result).set(key, variable); - }; - const isModule = import_typescript24.default.isExternalModule(sourceFile); - __privateSet(this, _scope, new RootScope( - sourceFile.isDeclarationFile && isModule && !containsExportStatement(sourceFile), - !isModule - )); - const cb = (node) => { - if (isBlockScopeBoundary(node)) { - return continueWithScope( - node, - new BlockScope(__privateGet(this, _scope).getFunctionScope(), __privateGet(this, _scope)), - handleBlockScope - ); - } - switch (node.kind) { - case import_typescript24.default.SyntaxKind.ClassExpression: - return continueWithScope( - node, - node.name !== void 0 ? new ClassExpressionScope( - node.name, - __privateGet(this, _scope) - ) : new NonRootScope(__privateGet(this, _scope), 1 /* Function */) - ); - case import_typescript24.default.SyntaxKind.ClassDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 4 /* Value */ | 2 /* Type */); - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 1 /* Function */) - ); - case import_typescript24.default.SyntaxKind.InterfaceDeclaration: - case import_typescript24.default.SyntaxKind.TypeAliasDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 2 /* Type */); - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 4 /* Type */) - ); - case import_typescript24.default.SyntaxKind.EnumDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 7 /* Any */); - return continueWithScope( - node, - __privateGet(this, _scope).createOrReuseEnumScope( - node.name.text, - includesModifier( - node.modifiers, - import_typescript24.default.SyntaxKind.ExportKeyword - ) - ) - ); - case import_typescript24.default.SyntaxKind.ModuleDeclaration: - return __privateMethod(this, _handleModule, handleModule_fn).call(this, node, continueWithScope); - case import_typescript24.default.SyntaxKind.MappedType: - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 4 /* Type */) - ); - case import_typescript24.default.SyntaxKind.FunctionExpression: - case import_typescript24.default.SyntaxKind.ArrowFunction: - case import_typescript24.default.SyntaxKind.Constructor: - case import_typescript24.default.SyntaxKind.MethodDeclaration: - case import_typescript24.default.SyntaxKind.FunctionDeclaration: - case import_typescript24.default.SyntaxKind.GetAccessor: - case import_typescript24.default.SyntaxKind.SetAccessor: - case import_typescript24.default.SyntaxKind.MethodSignature: - case import_typescript24.default.SyntaxKind.CallSignature: - case import_typescript24.default.SyntaxKind.ConstructSignature: - case import_typescript24.default.SyntaxKind.ConstructorType: - case import_typescript24.default.SyntaxKind.FunctionType: - return __privateMethod(this, _handleFunctionLikeDeclaration, handleFunctionLikeDeclaration_fn).call(this, node, cb, variableCallback); - case import_typescript24.default.SyntaxKind.ConditionalType: - return __privateMethod(this, _handleConditionalType, handleConditionalType_fn).call(this, node, cb, variableCallback); - case import_typescript24.default.SyntaxKind.VariableDeclarationList: - __privateMethod(this, _handleVariableDeclaration, handleVariableDeclaration_fn).call(this, node); - break; - case import_typescript24.default.SyntaxKind.Parameter: - if (node.parent.kind !== import_typescript24.default.SyntaxKind.IndexSignature && (node.name.kind !== import_typescript24.default.SyntaxKind.Identifier || identifierToKeywordKind( - node.name - ) !== import_typescript24.default.SyntaxKind.ThisKeyword)) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, node.name, false, false); - } - break; - case import_typescript24.default.SyntaxKind.EnumMember: - __privateGet(this, _scope).addVariable( - getPropertyName(node.name), - node.name, - 1 /* Function */, - true, - 4 /* Value */ - ); - break; - case import_typescript24.default.SyntaxKind.ImportClause: - case import_typescript24.default.SyntaxKind.ImportSpecifier: - case import_typescript24.default.SyntaxKind.NamespaceImport: - case import_typescript24.default.SyntaxKind.ImportEqualsDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, false, 7 /* Any */ | 8 /* Import */); - break; - case import_typescript24.default.SyntaxKind.TypeParameter: - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - node.parent.kind === import_typescript24.default.SyntaxKind.InferType ? 8 /* InferType */ : 7 /* Type */, - false, - 2 /* Type */ - ); - break; - case import_typescript24.default.SyntaxKind.ExportSpecifier: - if (node.propertyName !== void 0) { - return __privateGet(this, _scope).markExported( - node.propertyName, - node.name - ); - } - return __privateGet(this, _scope).markExported(node.name); - case import_typescript24.default.SyntaxKind.ExportAssignment: - if (node.expression.kind === import_typescript24.default.SyntaxKind.Identifier) { - return __privateGet(this, _scope).markExported( - node.expression - ); - } - break; - case import_typescript24.default.SyntaxKind.Identifier: { - const domain = getUsageDomain(node); - if (domain !== void 0) { - __privateGet(this, _scope).addUse({ domain, location: node }); - } - return; - } - } - return import_typescript24.default.forEachChild(node, cb); - }; - const continueWithScope = (node, scope, next = forEachChild) => { - const savedScope = __privateGet(this, _scope); - __privateSet(this, _scope, scope); - next(node); - __privateGet(this, _scope).end(variableCallback); - __privateSet(this, _scope, savedScope); - }; - const handleBlockScope = (node) => { - if (node.kind === import_typescript24.default.SyntaxKind.CatchClause && node.variableDeclaration !== void 0) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, node.variableDeclaration.name, true, false); - } - return import_typescript24.default.forEachChild(node, cb); - }; - import_typescript24.default.forEachChild(sourceFile, cb); - __privateGet(this, _scope).end(variableCallback); - return __privateGet(this, _result); - function forEachChild(node) { - return import_typescript24.default.forEachChild(node, cb); - } - } -}; -_result = new WeakMap(); -_scope = new WeakMap(); -_handleBindingName = new WeakSet(); -handleBindingName_fn = function(name, blockScoped, exported) { - if (name.kind === import_typescript24.default.SyntaxKind.Identifier) { - return __privateGet(this, _scope).addVariable( - name.text, - name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - exported, - 4 /* Value */ - ); - } - forEachDestructuringIdentifier(name, (declaration) => { - __privateGet(this, _scope).addVariable( - declaration.name.text, - declaration.name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - exported, - 4 /* Value */ - ); - }); -}; -_handleConditionalType = new WeakSet(); -handleConditionalType_fn = function(node, cb, varCb) { - const savedScope = __privateGet(this, _scope); - const scope = __privateSet(this, _scope, new ConditionalTypeScope(savedScope)); - cb(node.checkType); - scope.updateState(1 /* Extends */); - cb(node.extendsType); - scope.updateState(2 /* TrueType */); - cb(node.trueType); - scope.updateState(3 /* FalseType */); - cb(node.falseType); - scope.end(varCb); - __privateSet(this, _scope, savedScope); -}; -_handleDeclaration = new WeakSet(); -handleDeclaration_fn = function(node, blockScoped, domain) { - if (node.name !== void 0) { - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - includesModifier( - node.modifiers, - import_typescript24.default.SyntaxKind.ExportKeyword - ), - domain - ); - } -}; -_handleFunctionLikeDeclaration = new WeakSet(); -handleFunctionLikeDeclaration_fn = function(node, cb, varCb) { - if (canHaveDecorators(node)) { - getDecorators(node)?.forEach(cb); - } - const savedScope = __privateGet(this, _scope); - if (node.kind === import_typescript24.default.SyntaxKind.FunctionDeclaration) { - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, false, 4 /* Value */); - } - const scope = __privateSet(this, _scope, node.kind === import_typescript24.default.SyntaxKind.FunctionExpression && node.name !== void 0 ? new FunctionExpressionScope(node.name, savedScope) : new FunctionScope(savedScope)); - if (node.name !== void 0) { - cb(node.name); - } - if (node.typeParameters !== void 0) { - node.typeParameters.forEach(cb); - } - node.parameters.forEach(cb); - if (node.type !== void 0) { - cb(node.type); - } - if (node.body !== void 0) { - scope.beginBody(); - cb(node.body); - } - scope.end(varCb); - __privateSet(this, _scope, savedScope); -}; -_handleModule = new WeakSet(); -handleModule_fn = function(node, next) { - if (node.flags & import_typescript24.default.NodeFlags.GlobalAugmentation) { - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope("-global", false, true, false) - ); - } - if (node.name.kind === import_typescript24.default.SyntaxKind.Identifier) { - const exported = isNamespaceExported(node); - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - 1 /* Function */, - exported, - 1 /* Namespace */ | 4 /* Value */ - ); - const ambient = includesModifier( - node.modifiers, - import_typescript24.default.SyntaxKind.DeclareKeyword - ); - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope( - node.name.text, - exported, - ambient, - ambient && namespaceHasExportStatement(node) - ) - ); - } - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope( - `"${node.name.text}"`, - false, - true, - namespaceHasExportStatement(node) - ) - ); -}; -_handleVariableDeclaration = new WeakSet(); -handleVariableDeclaration_fn = function(declarationList) { - const blockScoped = isBlockScopedVariableDeclarationList(declarationList); - const exported = declarationList.parent.kind === import_typescript24.default.SyntaxKind.VariableStatement && includesModifier( - declarationList.parent.modifiers, - import_typescript24.default.SyntaxKind.ExportKeyword - ); - for (const declaration of declarationList.declarations) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, declaration.name, blockScoped, exported); - } -}; -function isNamespaceExported(node) { - return node.parent.kind === import_typescript24.default.SyntaxKind.ModuleDeclaration || includesModifier(node.modifiers, import_typescript24.default.SyntaxKind.ExportKeyword); -} -function namespaceHasExportStatement(ns) { - if (ns.body === void 0 || ns.body.kind !== import_typescript24.default.SyntaxKind.ModuleBlock) { - return false; - } - return containsExportStatement(ns.body); -} -function containsExportStatement(block) { - for (const statement of block.statements) { - if (statement.kind === import_typescript24.default.SyntaxKind.ExportDeclaration || statement.kind === import_typescript24.default.SyntaxKind.ExportAssignment) { - return true; - } - } - return false; -} -function isBlockScopedVariableDeclarationList(declarationList) { - return (declarationList.flags & import_typescript24.default.NodeFlags.BlockScoped) !== 0; -} -function forEachDestructuringIdentifier(pattern, fn) { - for (const element of pattern.elements) { - if (element.kind !== import_typescript24.default.SyntaxKind.BindingElement) { - continue; - } - let result; - if (element.name.kind === import_typescript24.default.SyntaxKind.Identifier) { - result = fn(element); - } else { - result = forEachDestructuringIdentifier(element.name, fn); - } - if (result) { - return result; - } - } -} - -// src/usage/collectVariableUsage.ts -function collectVariableUsage(sourceFile) { - return new UsageWalker().getUsage(sourceFile); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - AccessKind, - DeclarationDomain, - UsageDomain, - collectVariableUsage, - forEachComment, - forEachToken, - getAccessKind, - getCallSignaturesOfType, - getPropertyOfType, - getWellKnownSymbolPropertyOfType, - hasDecorators, - hasExpressionInitializer, - hasInitializer, - hasJSDoc, - hasModifiers, - hasType, - hasTypeArguments, - includesModifier, - intersectionTypeParts, - isAbstractKeyword, - isAccessExpression, - isAccessibilityModifier, - isAccessorDeclaration, - isAccessorKeyword, - isAnyKeyword, - isArrayBindingElement, - isArrayBindingOrAssignmentPattern, - isAssertKeyword, - isAssertsKeyword, - isAssignmentKind, - isAssignmentPattern, - isAsyncKeyword, - isAwaitKeyword, - isBigIntKeyword, - isBigIntLiteralType, - isBindingOrAssignmentElementRestIndicator, - isBindingOrAssignmentElementTarget, - isBindingOrAssignmentPattern, - isBindingPattern, - isBlockLike, - isBooleanKeyword, - isBooleanLiteral, - isBooleanLiteralType, - isClassLikeDeclaration, - isClassMemberModifier, - isColonToken, - isCompilerOptionEnabled, - isConditionalType, - isConstAssertionExpression, - isConstKeyword, - isDeclarationName, - isDeclarationWithTypeParameterChildren, - isDeclarationWithTypeParameters, - isDeclareKeyword, - isDefaultKeyword, - isDestructuringPattern, - isDotToken, - isEndOfFileToken, - isEntityNameExpression, - isEntityNameOrEntityNameExpression, - isEnumType, - isEqualsGreaterThanToken, - isEqualsToken, - isEvolvingArrayType, - isExclamationToken, - isExportKeyword, - isFalseKeyword, - isFalseLiteral, - isFalseLiteralType, - isFalsyType, - isForInOrOfStatement, - isFreshableIntrinsicType, - isFreshableType, - isFunctionLikeDeclaration, - isFunctionScopeBoundary, - isImportExpression, - isImportKeyword, - isInKeyword, - isIndexType, - isIndexedAccessType, - isInputFiles, - isInstantiableType, - isIntersectionType, - isIntrinsicAnyType, - isIntrinsicBigIntType, - isIntrinsicBooleanType, - isIntrinsicESSymbolType, - isIntrinsicErrorType, - isIntrinsicNeverType, - isIntrinsicNonPrimitiveType, - isIntrinsicNullType, - isIntrinsicNumberType, - isIntrinsicStringType, - isIntrinsicType, - isIntrinsicUndefinedType, - isIntrinsicUnknownType, - isIntrinsicVoidType, - isIterationStatement, - isJSDocComment, - isJSDocNamespaceBody, - isJSDocNamespaceDeclaration, - isJSDocText, - isJSDocTypeReferencingNode, - isJsonMinusNumericLiteral, - isJsonObjectExpression, - isJsxAttributeLike, - isJsxAttributeValue, - isJsxChild, - isJsxTagNameExpression, - isJsxTagNamePropertyAccess, - isLiteralToken, - isLiteralType, - isModifierFlagSet, - isModuleBody, - isModuleName, - isModuleReference, - isNamedDeclarationWithName, - isNamedImportBindings, - isNamedImportsOrExports, - isNamespaceBody, - isNamespaceDeclaration, - isNeverKeyword, - isNodeFlagSet, - isNullKeyword, - isNullLiteral, - isNumberKeyword, - isNumberLiteralType, - isNumericOrStringLikeLiteral, - isNumericPropertyName, - isObjectBindingOrAssignmentElement, - isObjectBindingOrAssignmentPattern, - isObjectFlagSet, - isObjectKeyword, - isObjectType, - isObjectTypeDeclaration, - isOutKeyword, - isOverrideKeyword, - isParameterPropertyModifier, - isPrivateKeyword, - isPropertyAccessEntityNameExpression, - isPropertyNameLiteral, - isPropertyReadonlyInType, - isProtectedKeyword, - isPseudoLiteralToken, - isPublicKeyword, - isQuestionDotToken, - isQuestionToken, - isReadonlyKeyword, - isSignatureDeclaration, - isStaticKeyword, - isStrictCompilerOptionEnabled, - isStringKeyword, - isStringLiteralType, - isStringMappingType, - isSubstitutionType, - isSuperElementAccessExpression, - isSuperExpression, - isSuperKeyword, - isSuperProperty, - isSuperPropertyAccessExpression, - isSymbolFlagSet, - isSymbolKeyword, - isSyntaxList, - isTemplateLiteralType, - isThenableType, - isThisExpression, - isThisKeyword, - isTrueKeyword, - isTrueLiteral, - isTrueLiteralType, - isTupleType, - isTupleTypeReference, - isTypeFlagSet, - isTypeOnlyCompatibleAliasDeclaration, - isTypeParameter, - isTypeReference, - isTypeReferenceType, - isTypeVariable, - isUndefinedKeyword, - isUnionOrIntersectionType, - isUnionOrIntersectionTypeNode, - isUnionType, - isUniqueESSymbolType, - isUnknownKeyword, - isUnknownLiteralType, - isUnparsedPrologue, - isUnparsedSourceText, - isUnparsedSyntheticReference, - isValidPropertyAccess, - isVariableLikeDeclaration, - isVoidKeyword, - symbolHasReadonlyDeclaration, - typeParts, - unionTypeParts -}); -//# sourceMappingURL=index.cjs.map \ No newline at end of file diff --git a/graphql/node_modules/ts-api-utils/lib/index.cjs.map b/graphql/node_modules/ts-api-utils/lib/index.cjs.map deleted file mode 100644 index 646ad5a7..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.ts","../src/comments.ts","../src/tokens.ts","../src/compilerOptions.ts","../src/flags.ts","../src/modifiers.ts","../src/nodes/access.ts","../src/syntax.ts","../src/nodes/typeGuards/compound.ts","../src/nodes/typeGuards/single.ts","../src/nodes/typeGuards/union.ts","../src/utils.ts","../src/scopes.ts","../src/types/getters.ts","../src/types/typeGuards/intrinsic.ts","../src/types/typeGuards/objects.ts","../src/types/typeGuards/single.ts","../src/types/typeGuards/compound.ts","../src/types/typeGuards/literal.ts","../src/types/utilities.ts","../src/nodes/utilities.ts","../src/usage/UsageWalker.ts","../src/usage/Scope.ts","../src/usage/declarations.ts","../src/usage/utils.ts","../src/usage/getPropertyName.ts","../src/usage/getUsageDomain.ts","../src/usage/scopes.ts","../src/usage/collectVariableUsage.ts"],"sourcesContent":["export * from \"./comments\";\nexport * from \"./compilerOptions\";\nexport * from \"./flags\";\nexport * from \"./modifiers\";\nexport * from \"./nodes\";\nexport * from \"./scopes\";\nexport * from \"./syntax\";\nexport * from \"./tokens\";\nexport * from \"./types\";\nexport * from \"./usage\";\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { forEachToken } from \"./tokens\";\n\n/**\n * Exclude trailing positions that would lead to scanning for trivia inside `JsxText`.\n * @internal\n */\nfunction canHaveTrailingTrivia(token: ts.Node): boolean {\n\tswitch (token.kind) {\n\t\tcase ts.SyntaxKind.CloseBraceToken:\n\t\t\t// after a JsxExpression inside a JsxElement's body can only be other JsxChild, but no trivia\n\t\t\treturn (\n\t\t\t\ttoken.parent.kind !== ts.SyntaxKind.JsxExpression ||\n\t\t\t\t!isJsxElementOrFragment(token.parent.parent)\n\t\t\t);\n\t\tcase ts.SyntaxKind.GreaterThanToken:\n\t\t\tswitch (token.parent.kind) {\n\t\t\t\tcase ts.SyntaxKind.JsxOpeningElement:\n\t\t\t\t\t// if end is not equal, this is part of the type arguments list. in all other cases it would be inside the element body\n\t\t\t\t\treturn token.end !== token.parent.end;\n\t\t\t\tcase ts.SyntaxKind.JsxOpeningFragment:\n\t\t\t\t\treturn false; // would be inside the fragment\n\t\t\t\tcase ts.SyntaxKind.JsxSelfClosingElement:\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttoken.end !== token.parent.end || // if end is not equal, this is part of the type arguments list\n\t\t\t\t\t\t!isJsxElementOrFragment(token.parent.parent)\n\t\t\t\t\t); // there's only trailing trivia if it's the end of the top element\n\t\t\t\tcase ts.SyntaxKind.JsxClosingElement:\n\t\t\t\tcase ts.SyntaxKind.JsxClosingFragment:\n\t\t\t\t\t// there's only trailing trivia if it's the end of the top element\n\t\t\t\t\treturn !isJsxElementOrFragment(token.parent.parent.parent);\n\t\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Test if a node is a `JsxElement` or `JsxFragment`.\n * @internal\n */\nfunction isJsxElementOrFragment(\n\tnode: ts.Node,\n): node is ts.JsxElement | ts.JsxFragment {\n\treturn (\n\t\tnode.kind === ts.SyntaxKind.JsxElement ||\n\t\tnode.kind === ts.SyntaxKind.JsxFragment\n\t);\n}\n\n/**\n * Callback type used for {@link forEachComment}.\n * @category Callbacks\n */\nexport type ForEachCommentCallback = (\n\tfullText: string,\n\tcomment: ts.CommentRange,\n) => void;\n\n/**\n * Iterates over all comments owned by `node` or its children.\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * forEachComment(node, (fullText, comment) => {\n * console.log(`Found comment at position ${comment.pos}: '${fullText}'.`);\n * });\n * ```\n */\nexport function forEachComment(\n\tnode: ts.Node,\n\tcallback: ForEachCommentCallback,\n\tsourceFile: ts.SourceFile = node.getSourceFile(),\n): void {\n\t/* Visit all tokens and skip trivia.\n Comment ranges between tokens are parsed without the need of a scanner.\n forEachTokenWithWhitespace does intentionally not pay attention to the correct comment ownership of nodes as it always\n scans all trivia before each token, which could include trailing comments of the previous token.\n Comment ownership is done right in this function*/\n\tconst fullText = sourceFile.text;\n\tconst notJsx = sourceFile.languageVariant !== ts.LanguageVariant.JSX;\n\treturn forEachToken(\n\t\tnode,\n\t\t(token) => {\n\t\t\tif (token.pos === token.end) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (token.kind !== ts.SyntaxKind.JsxText) {\n\t\t\t\tts.forEachLeadingCommentRange(\n\t\t\t\t\tfullText,\n\t\t\t\t\t// skip shebang at position 0\n\t\t\t\t\ttoken.pos === 0 ? (ts.getShebang(fullText) ?? \"\").length : token.pos,\n\t\t\t\t\tcommentCallback,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (notJsx || canHaveTrailingTrivia(token)) {\n\t\t\t\treturn ts.forEachTrailingCommentRange(\n\t\t\t\t\tfullText,\n\t\t\t\t\ttoken.end,\n\t\t\t\t\tcommentCallback,\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\tsourceFile,\n\t);\n\tfunction commentCallback(pos: number, end: number, kind: ts.CommentKind) {\n\t\tcallback(fullText, { end, kind, pos });\n\t}\n}\n","// Code largely based on ajafff/tsutils:\n// https://github.com/ajafff/tsutils/blob/03b4df15d14702f9c7a128ac3fae77171778d613/util/util.ts\n// Original license MIT:\n// https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Callback type used for {@link forEachToken}.\n * @category Callbacks\n */\nexport type ForEachTokenCallback = (token: ts.Node) => void;\n\n/**\n * Iterates over all tokens of `node`\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * forEachToken(node, (token) => {\n * \tconsole.log(\"Found token:\", token.getText());\n * });\n * ```\n * @param node - The node whose tokens should be visited\n * @param callback - Is called for every token contained in `node`\n */\nexport function forEachToken(\n\tnode: ts.Node,\n\tcallback: ForEachTokenCallback,\n\tsourceFile: ts.SourceFile = node.getSourceFile(),\n): void {\n\tconst queue = [];\n\twhile (true) {\n\t\tif (ts.isTokenKind(node.kind)) {\n\t\t\tcallback(node);\n\t\t} else if (\n\t\t\t// eslint-disable-next-line deprecation/deprecation -- need for support of TS < 4.7\n\t\t\tnode.kind !== ts.SyntaxKind.JSDocComment\n\t\t) {\n\t\t\tconst children = node.getChildren(sourceFile);\n\t\t\tif (children.length === 1) {\n\t\t\t\tnode = children[0];\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// add children in reverse order, when we pop the next element from the queue, it's the first child\n\t\t\tfor (let i = children.length - 1; i >= 0; --i) {\n\t\t\t\tqueue.push(children[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (queue.length === 0) {\n\t\t\tbreak;\n\t\t}\n\n\t\tnode = queue.pop()!;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * An option that can be tested with {@link isCompilerOptionEnabled}.\n * @category Compiler Options\n */\nexport type BooleanCompilerOptions = keyof {\n\t[K in keyof ts.CompilerOptions as NonNullable<\n\t\tts.CompilerOptions[K]\n\t> extends boolean\n\t\t? K\n\t\t: never]: unknown;\n};\n\n/**\n * Checks if a given compiler option is enabled.\n * It handles dependencies of options, e.g. `declaration` is implicitly enabled by `composite` or `strictNullChecks` is enabled by `strict`.\n * However, it does not check dependencies that are already checked and reported as errors, e.g. `checkJs` without `allowJs`.\n * This function only handles boolean flags.\n * @category Compiler Options\n * @example\n * ```ts\n * const options = {\n * \tallowJs: true,\n * };\n *\n * isCompilerOptionEnabled(options, \"allowJs\"); // true\n * isCompilerOptionEnabled(options, \"allowSyntheticDefaultImports\"); // false\n * ```\n */\nexport function isCompilerOptionEnabled(\n\toptions: ts.CompilerOptions,\n\toption: BooleanCompilerOptions,\n): boolean {\n\tswitch (option) {\n\t\tcase \"stripInternal\":\n\t\tcase \"declarationMap\":\n\t\tcase \"emitDeclarationOnly\":\n\t\t\treturn (\n\t\t\t\toptions[option] === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"declaration\")\n\t\t\t);\n\t\tcase \"declaration\":\n\t\t\treturn (\n\t\t\t\toptions.declaration || isCompilerOptionEnabled(options, \"composite\")\n\t\t\t);\n\t\tcase \"incremental\":\n\t\t\treturn options.incremental === undefined\n\t\t\t\t? isCompilerOptionEnabled(options, \"composite\")\n\t\t\t\t: options.incremental;\n\t\tcase \"skipDefaultLibCheck\":\n\t\t\treturn (\n\t\t\t\toptions.skipDefaultLibCheck ||\n\t\t\t\tisCompilerOptionEnabled(options, \"skipLibCheck\")\n\t\t\t);\n\t\tcase \"suppressImplicitAnyIndexErrors\":\n\t\t\treturn (\n\t\t\t\toptions.suppressImplicitAnyIndexErrors === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"noImplicitAny\")\n\t\t\t);\n\t\tcase \"allowSyntheticDefaultImports\":\n\t\t\treturn options.allowSyntheticDefaultImports !== undefined\n\t\t\t\t? options.allowSyntheticDefaultImports\n\t\t\t\t: isCompilerOptionEnabled(options, \"esModuleInterop\") ||\n\t\t\t\t\t\toptions.module === ts.ModuleKind.System;\n\t\tcase \"noUncheckedIndexedAccess\":\n\t\t\treturn (\n\t\t\t\toptions.noUncheckedIndexedAccess === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"strictNullChecks\")\n\t\t\t);\n\t\tcase \"allowJs\":\n\t\t\treturn options.allowJs === undefined\n\t\t\t\t? isCompilerOptionEnabled(options, \"checkJs\")\n\t\t\t\t: options.allowJs;\n\t\tcase \"noImplicitAny\":\n\t\tcase \"noImplicitThis\":\n\t\tcase \"strictNullChecks\":\n\t\tcase \"strictFunctionTypes\":\n\t\tcase \"strictPropertyInitialization\":\n\t\tcase \"alwaysStrict\":\n\t\tcase \"strictBindCallApply\":\n\t\t\ttype AssertEqual = U; // make sure all strict options are handled here\n\t\t\treturn isStrictCompilerOptionEnabled(\n\t\t\t\toptions,\n\t\t\t\toption as AssertEqual,\n\t\t\t);\n\t}\n\n\treturn options[option] === true;\n}\n\n/**\n * An option that can be tested with {@link isStrictCompilerOptionEnabled}.\n * @category Compiler Options\n */\nexport type StrictCompilerOption =\n\t| \"alwaysStrict\"\n\t| \"noImplicitAny\"\n\t| \"noImplicitThis\"\n\t| \"strictBindCallApply\"\n\t| \"strictFunctionTypes\"\n\t| \"strictNullChecks\"\n\t| \"strictPropertyInitialization\";\n\n/**\n * Checks if a given compiler option is enabled, accounting for whether all flags\n * (except `strictPropertyInitialization`) have been enabled by `strict: true`.\n * @category Compiler Options\n * @example\n * ```ts\n * const optionsLenient = {\n * \tnoImplicitAny: true,\n * };\n *\n * isStrictCompilerOptionEnabled(optionsLenient, \"noImplicitAny\"); // true\n * isStrictCompilerOptionEnabled(optionsLenient, \"noImplicitThis\"); // false\n * ```\n * @example\n * ```ts\n * const optionsStrict = {\n * \tnoImplicitThis: false,\n * \tstrict: true,\n * };\n *\n * isStrictCompilerOptionEnabled(optionsStrict, \"noImplicitAny\"); // true\n * isStrictCompilerOptionEnabled(optionsStrict, \"noImplicitThis\"); // false\n * ```\n */\nexport function isStrictCompilerOptionEnabled(\n\toptions: ts.CompilerOptions,\n\toption: StrictCompilerOption,\n): boolean {\n\treturn (\n\t\t(options.strict ? options[option] !== false : options[option] === true) &&\n\t\t(option !== \"strictPropertyInitialization\" ||\n\t\t\tisStrictCompilerOptionEnabled(options, \"strictNullChecks\"))\n\t);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test if the given flag is set on the combined flags.\n * @internal\n */\nfunction isFlagSet(allFlags: number, flag: number): boolean {\n\treturn (allFlags & flag) !== 0;\n}\n\n/**\n * Test if the given flag is set on the given object.\n * @internal\n */\nfunction isFlagSetOnObject(obj: { flags: number }, flag: number): boolean {\n\treturn isFlagSet(obj.flags, flag);\n}\n\n/**\n * Test if the given node has the given `ModifierFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModifierFlagSet(node, ts.ModifierFlags.Abstract)) {\n * // ...\n * }\n * ```\n */\nexport function isModifierFlagSet(\n\tnode: ts.Declaration,\n\tflag: ts.ModifierFlags,\n): boolean {\n\treturn isFlagSet(ts.getCombinedModifierFlags(node), flag);\n}\n\n/**\n * Test if the given node has the given `NodeFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) {\n * // ...\n * }\n * ```\n */\nexport const isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean =\n\tisFlagSetOnObject;\n\n/**\n * Test if the given node has the given `ObjectFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectFlagSet(node, ts.ObjectFlags.Anonymous)) {\n * // ...\n * }\n * ```\n */\nexport function isObjectFlagSet(\n\tobjectType: ts.ObjectType,\n\tflag: ts.ObjectFlags,\n): boolean {\n\treturn isFlagSet(objectType.objectFlags, flag);\n}\n\n/**\n * Test if the given node has the given `SymbolFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const symbol: ts.Symbol;\n *\n * if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) {\n * // ...\n * }\n * ```\n */\nexport const isSymbolFlagSet: (\n\tsymbol: ts.Symbol,\n\tflag: ts.SymbolFlags,\n) => boolean = isFlagSetOnObject;\n\n/**\n * Test if the given node has the given `TypeFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeFlagSet(type, ts.TypeFlags.Any)) {\n * // ...\n * }\n * ```\n */\nexport const isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean =\n\tisFlagSetOnObject;\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test if the given iterable includes a modifier of any of the given kinds.\n * @category Modifier Utilities\n * @example\n * ```ts\n * declare const modifiers: ts.Modifier[];\n *\n * includesModifier(modifiers, ts.SyntaxKind.AbstractKeyword);\n * ```\n */\nexport function includesModifier(\n\tmodifiers: Iterable | undefined,\n\t...kinds: ts.ModifierSyntaxKind[]\n): boolean {\n\tif (modifiers === undefined) {\n\t\treturn false;\n\t}\n\n\tfor (const modifier of modifiers) {\n\t\tif (kinds.includes(modifier.kind as ts.ModifierSyntaxKind)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isAssignmentKind } from \"../syntax\";\n\n/* eslint-disable perfectionist/sort-enums */\n/**\n * What operations(s), if any, an expression applies.\n */\nexport enum AccessKind {\n\tNone = 0,\n\tRead = 1 << 0,\n\tWrite = 1 << 1,\n\tDelete = 1 << 2,\n\tReadWrite = Read | Write,\n\t/* eslint-enable perfectionist/sort-enums */\n}\n\n/**\n * Determines which operation(s), if any, an expression applies.\n * @example\n * ```ts\n * declare const node: ts.Expression;\n *\n * if (getAccessKind(node).Write & AccessKind.Write) !== 0) {\n * // this is a reassignment (write)\n * }\n * ```\n */\nexport function getAccessKind(node: ts.Expression): AccessKind {\n\tconst parent = node.parent;\n\tswitch (parent.kind) {\n\t\tcase ts.SyntaxKind.DeleteExpression:\n\t\t\treturn AccessKind.Delete;\n\t\tcase ts.SyntaxKind.PostfixUnaryExpression:\n\t\t\treturn AccessKind.ReadWrite;\n\t\tcase ts.SyntaxKind.PrefixUnaryExpression:\n\t\t\treturn (parent as ts.PrefixUnaryExpression).operator ===\n\t\t\t\tts.SyntaxKind.PlusPlusToken ||\n\t\t\t\t(parent as ts.PrefixUnaryExpression).operator ===\n\t\t\t\t\tts.SyntaxKind.MinusMinusToken\n\t\t\t\t? AccessKind.ReadWrite\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.BinaryExpression:\n\t\t\treturn (parent as ts.BinaryExpression).right === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: !isAssignmentKind((parent as ts.BinaryExpression).operatorToken.kind)\n\t\t\t\t\t? AccessKind.Read\n\t\t\t\t\t: (parent as ts.BinaryExpression).operatorToken.kind ===\n\t\t\t\t\t\t ts.SyntaxKind.EqualsToken\n\t\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t\t: AccessKind.ReadWrite;\n\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\treturn (parent as ts.ShorthandPropertyAssignment)\n\t\t\t\t.objectAssignmentInitializer === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: isInDestructuringAssignment(parent as ts.ShorthandPropertyAssignment)\n\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\treturn (parent as ts.PropertyAssignment).name === node\n\t\t\t\t? AccessKind.None\n\t\t\t\t: isInDestructuringAssignment(parent as ts.PropertyAssignment)\n\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\tcase ts.SyntaxKind.SpreadElement:\n\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\treturn isInDestructuringAssignment(\n\t\t\t\tparent as\n\t\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t\t| ts.SpreadAssignment\n\t\t\t\t\t| ts.SpreadElement,\n\t\t\t)\n\t\t\t\t? AccessKind.Write\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ParenthesizedExpression:\n\t\tcase ts.SyntaxKind.NonNullExpression:\n\t\tcase ts.SyntaxKind.TypeAssertionExpression:\n\t\tcase ts.SyntaxKind.AsExpression:\n\t\t\t// (foo! as {})++\n\t\t\treturn getAccessKind(parent as ts.Expression);\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\t\treturn (parent as ts.ForInOrOfStatement).initializer === node\n\t\t\t\t? AccessKind.Write\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ExpressionWithTypeArguments:\n\t\t\treturn (\n\t\t\t\t(parent as ts.ExpressionWithTypeArguments).parent as ts.HeritageClause\n\t\t\t).token === ts.SyntaxKind.ExtendsKeyword &&\n\t\t\t\tparent.parent.parent.kind !== ts.SyntaxKind.InterfaceDeclaration\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.ComputedPropertyName:\n\t\tcase ts.SyntaxKind.ExpressionStatement:\n\t\tcase ts.SyntaxKind.TypeOfExpression:\n\t\tcase ts.SyntaxKind.ElementAccessExpression:\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.IfStatement:\n\t\tcase ts.SyntaxKind.DoStatement:\n\t\tcase ts.SyntaxKind.WhileStatement:\n\t\tcase ts.SyntaxKind.SwitchStatement:\n\t\tcase ts.SyntaxKind.WithStatement:\n\t\tcase ts.SyntaxKind.ThrowStatement:\n\t\tcase ts.SyntaxKind.CallExpression:\n\t\tcase ts.SyntaxKind.NewExpression:\n\t\tcase ts.SyntaxKind.TaggedTemplateExpression:\n\t\tcase ts.SyntaxKind.JsxExpression:\n\t\tcase ts.SyntaxKind.Decorator:\n\t\tcase ts.SyntaxKind.TemplateSpan:\n\t\tcase ts.SyntaxKind.JsxOpeningElement:\n\t\tcase ts.SyntaxKind.JsxSelfClosingElement:\n\t\tcase ts.SyntaxKind.JsxSpreadAttribute:\n\t\tcase ts.SyntaxKind.VoidExpression:\n\t\tcase ts.SyntaxKind.ReturnStatement:\n\t\tcase ts.SyntaxKind.AwaitExpression:\n\t\tcase ts.SyntaxKind.YieldExpression:\n\t\tcase ts.SyntaxKind.ConditionalExpression:\n\t\tcase ts.SyntaxKind.CaseClause:\n\t\tcase ts.SyntaxKind.JsxElement:\n\t\t\treturn AccessKind.Read;\n\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\t\treturn (parent as ts.ArrowFunction).body === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.Write;\n\t\tcase ts.SyntaxKind.PropertyDeclaration:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\tcase ts.SyntaxKind.Parameter:\n\t\tcase ts.SyntaxKind.EnumMember:\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\tcase ts.SyntaxKind.JsxAttribute:\n\t\t\treturn (parent as ts.JsxAttribute).initializer === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.PropertyAccessExpression:\n\t\t\treturn (parent as ts.PropertyAccessExpression).expression === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\treturn (parent as ts.ExportAssignment).isExportEquals\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t}\n\n\treturn AccessKind.None;\n}\n\nfunction isInDestructuringAssignment(\n\tnode:\n\t\t| ts.ArrayLiteralExpression\n\t\t| ts.ObjectLiteralExpression\n\t\t| ts.PropertyAssignment\n\t\t| ts.ShorthandPropertyAssignment\n\t\t| ts.SpreadAssignment\n\t\t| ts.SpreadElement,\n): boolean {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\tif (node.objectAssignmentInitializer !== undefined) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t// falls through\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\tnode = node.parent as\n\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t| ts.ObjectLiteralExpression;\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.SpreadElement:\n\t\t\tif (node.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tnode = node.parent;\n\t}\n\n\twhile (true) {\n\t\tswitch (node.parent.kind) {\n\t\t\tcase ts.SyntaxKind.BinaryExpression:\n\t\t\t\treturn (\n\t\t\t\t\t(node.parent as ts.BinaryExpression).left === node &&\n\t\t\t\t\t(node.parent as ts.BinaryExpression).operatorToken.kind ===\n\t\t\t\t\t\tts.SyntaxKind.EqualsToken\n\t\t\t\t);\n\t\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\t\t\treturn (node.parent as ts.ForOfStatement).initializer === node;\n\t\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\t\tcase ts.SyntaxKind.ObjectLiteralExpression:\n\t\t\t\tnode = node.parent as\n\t\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t\t| ts.ObjectLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\t\tnode = node.parent.parent as ts.ObjectLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.SpreadElement:\n\t\t\t\tif (node.parent.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tnode = node.parent.parent as ts.ArrayLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test of the kind given is for assignment.\n * @category Syntax Utilities\n * @example\n * ```ts\n * declare const kind: ts.SyntaxKind;\n *\n * isAssignmentKind(kind);\n * ```\n */\nexport function isAssignmentKind(kind: ts.SyntaxKind): boolean {\n\treturn (\n\t\tkind >= ts.SyntaxKind.FirstAssignment &&\n\t\tkind <= ts.SyntaxKind.LastAssignment\n\t);\n}\n\n/**\n * Test if a string is numeric.\n * @category Syntax Utilities\n * @example\n * ```ts\n * isNumericPropertyName(\"abc\"); // false\n * isNumericPropertyName(\"123\"); // true\n * ```\n */\nexport function isNumericPropertyName(name: string | ts.__String): boolean {\n\treturn String(+name) === name;\n}\n\nfunction charSize(ch: number) {\n\treturn ch >= 0x10000 ? 2 : 1;\n}\n\n/**\n * Determines whether the given text can be used to access a property with a `PropertyAccessExpression` while preserving the property's name.\n * @category Syntax Utilities\n * @example\n * ```ts\n * isValidPropertyAccess(\"abc\"); // true\n * isValidPropertyAccess(\"123\"); // false\n * ```\n */\nexport function isValidPropertyAccess(\n\ttext: string,\n\tlanguageVersion = ts.ScriptTarget.Latest,\n): boolean {\n\tif (text.length === 0) {\n\t\treturn false;\n\t}\n\n\tlet ch = text.codePointAt(0)!;\n\tif (!ts.isIdentifierStart(ch, languageVersion)) {\n\t\treturn false;\n\t}\n\n\tfor (let i = charSize(ch); i < text.length; i += charSize(ch)) {\n\t\tch = text.codePointAt(i)!;\n\t\tif (!ts.isIdentifierPart(ch, languageVersion)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n","import ts from \"typescript\";\n\nimport { isSuperExpression } from \"./single\";\nimport {\n\tisDeclarationName,\n\tisEntityNameExpression,\n\tisJSDocNamespaceBody,\n\tisJsxTagNameExpression,\n\tisNamespaceBody,\n} from \"./union\";\n\n/**\n * An `AssertionExpression` that is declared as const.\n * @category Node Types\n */\nexport type ConstAssertionExpression = ts.AssertionExpression & {\n\ttype: ts.TypeReferenceNode;\n\ttypeName: ConstAssertionIdentifier;\n};\n\n/**\n * An `Identifier` with an `escapedText` value of `\"const\"`.\n * @category Node Types\n */\nexport type ConstAssertionIdentifier = ts.Identifier & {\n\tescapedText: ts.__String & \"const\";\n};\n\n/**\n * Test if a node is a {@link ConstAssertionExpression}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isConstAssertionExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link ConstAssertionExpression}.\n */\nexport function isConstAssertionExpression(\n\tnode: ts.AssertionExpression,\n): node is ConstAssertionExpression {\n\treturn (\n\t\tts.isTypeReferenceNode(node.type) &&\n\t\tts.isIdentifier(node.type.typeName) &&\n\t\tnode.type.typeName.escapedText === \"const\"\n\t);\n}\n\n/**\n * Test if a node is an `IterationStatement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isIterationStatement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `IterationStatement`.\n */\nexport function isIterationStatement(\n\tnode: ts.Node,\n): node is ts.IterationStatement {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.DoStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.WhileStatement:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\n/**\n * Test if a node is a `JSDocNamespaceDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocNamespaceDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocNamespaceDeclaration`.\n */\nexport function isJSDocNamespaceDeclaration(\n\tnode: ts.Node,\n): node is ts.JSDocNamespaceDeclaration {\n\treturn (\n\t\tts.isModuleDeclaration(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\t(node.body === undefined || isJSDocNamespaceBody(node.body))\n\t);\n}\n\n/**\n * Test if a node is a `JsxTagNamePropertyAccess`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxTagNamePropertyAccess(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxTagNamePropertyAccess`.\n */\nexport function isJsxTagNamePropertyAccess(\n\tnode: ts.Node,\n): node is ts.JsxTagNamePropertyAccess {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) &&\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts < 5\n\t\tisJsxTagNameExpression(node.expression)\n\t);\n}\n\n/**\n * a `NamedDeclaration` that definitely has a name.\n * @category Node Types\n */\nexport interface NamedDeclarationWithName extends ts.NamedDeclaration {\n\tname: ts.DeclarationName;\n}\n\n/**\n * Test if a node is a {@link NamedDeclarationWithName}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedDeclarationWithName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NamedDeclarationWithName}.\n */\nexport function isNamedDeclarationWithName(\n\tnode: ts.Declaration,\n): node is NamedDeclarationWithName {\n\treturn (\n\t\t\"name\" in node &&\n\t\tnode.name !== undefined &&\n\t\tnode.name !== null &&\n\t\tisDeclarationName(node.name as ts.Node)\n\t);\n}\n\n/**\n * Test if a node is a `NamespaceDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamespaceDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamespaceDeclaration`.\n */\nexport function isNamespaceDeclaration(\n\tnode: ts.Node,\n): node is ts.NamespaceDeclaration {\n\treturn (\n\t\tts.isModuleDeclaration(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\tnode.body !== undefined &&\n\t\tisNamespaceBody(node.body)\n\t);\n}\n\n/**\n * A number or string-like literal.\n * @category Node Types\n */\nexport type NumericOrStringLikeLiteral =\n\t| ts.NumericLiteral\n\t| ts.StringLiteralLike;\n\n/**\n * Test if a node is a {@link NumericOrStringLikeLiteral}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNumericOrStringLikeLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NumericOrStringLikeLiteral}.\n */\nexport function isNumericOrStringLikeLiteral(\n\tnode: ts.Node,\n): node is NumericOrStringLikeLiteral {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.StringLiteral:\n\t\tcase ts.SyntaxKind.NumericLiteral:\n\t\tcase ts.SyntaxKind.NoSubstitutionTemplateLiteral:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\n/**\n * Test if a node is a `PropertyAccessEntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPropertyAccessEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PropertyAccessEntityNameExpression`.\n */\nexport function isPropertyAccessEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.PropertyAccessEntityNameExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\tisEntityNameExpression(node.expression)\n\t);\n}\n\n/**\n * Test if a node is a `SuperElementAccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperElementAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperElementAccessExpression`.\n */\nexport function isSuperElementAccessExpression(\n\tnode: ts.Node,\n): node is ts.SuperElementAccessExpression {\n\treturn (\n\t\tts.isElementAccessExpression(node) && isSuperExpression(node.expression)\n\t);\n}\n\n/**\n * Test if a node is a `SuperPropertyAccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperPropertyAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperPropertyAccessExpression`.\n */\nexport function isSuperPropertyAccessExpression(\n\tnode: ts.Node,\n): node is ts.SuperPropertyAccessExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) && isSuperExpression(node.expression)\n\t);\n}\n","import ts from \"typescript\";\n\n/**\n * A node that represents the any keyword.\n * @category Node Types\n */\nexport type AnyKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the bigint keyword.\n * @category Node Types\n */\nexport type BigIntKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the boolean keyword.\n * @category Node Types\n */\nexport type BooleanKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the false keyword.\n * @category Node Types\n */\nexport type FalseKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the import keyword.\n * @category Node Types\n */\nexport type ImportKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the never keyword.\n * @category Node Types\n */\nexport type NeverKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the null keyword.\n * @category Node Types\n */\nexport type NullKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the number keyword.\n * @category Node Types\n */\nexport type NumberKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the object keyword.\n * @category Node Types\n */\nexport type ObjectKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the string keyword.\n * @category Node Types\n */\nexport type StringKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the super keyword.\n * @category Node Types\n */\nexport type SuperKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the symbol keyword.\n * @category Node Types\n */\nexport type SymbolKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the this keyword.\n * @category Node Types\n */\nexport type ThisKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the true keyword.\n * @category Node Types\n */\nexport type TrueKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the undefined keyword.\n * @category Node Types\n */\nexport type UndefinedKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the unknown keyword.\n * @category Node Types\n */\nexport type UnknownKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the void keyword.\n * @category Node Types\n */\nexport type VoidKeyword = ts.KeywordToken;\n\n/**\n * Test if a node is an `AbstractKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAbstractKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AbstractKeyword`.\n */\nexport function isAbstractKeyword(node: ts.Node): node is ts.AbstractKeyword {\n\treturn node.kind === ts.SyntaxKind.AbstractKeyword;\n}\n\n/**\n * Test if a node is an `AccessorKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessorKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessorKeyword`.\n */\nexport function isAccessorKeyword(node: ts.Node): node is ts.AccessorKeyword {\n\treturn node.kind === ts.SyntaxKind.AccessorKeyword;\n}\n\n/**\n * Test if a node is an {@link AnyKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAnyKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link AnyKeyword}.\n */\nexport function isAnyKeyword(node: ts.Node): node is AnyKeyword {\n\treturn node.kind === ts.SyntaxKind.AnyKeyword;\n}\n\n/**\n * Test if a node is an `AssertKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssertKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssertKeyword`.\n */\nexport function isAssertKeyword(node: ts.Node): node is ts.AssertKeyword {\n\treturn node.kind === ts.SyntaxKind.AssertKeyword;\n}\n\n/**\n * Test if a node is an `AssertsKeyword`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAssertsKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssertsKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssertsKeyword`.\n */\nexport function isAssertsKeyword(node: ts.Node): node is ts.AssertsKeyword {\n\treturn node.kind === ts.SyntaxKind.AssertsKeyword;\n}\n\n/**\n * Test if a node is an `AsyncKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAsyncKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AsyncKeyword`.\n */\nexport function isAsyncKeyword(node: ts.Node): node is ts.AsyncKeyword {\n\treturn node.kind === ts.SyntaxKind.AsyncKeyword;\n}\n\n/**\n * Test if a node is an `AwaitKeyword`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAwaitKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAwaitKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AwaitKeyword`.\n */\nexport function isAwaitKeyword(node: ts.Node): node is ts.AwaitKeyword {\n\treturn node.kind === ts.SyntaxKind.AwaitKeyword;\n}\n\n/**\n * Test if a node is a {@link BigIntKeyword}.\n * @deprecated With TypeScript v5, in favor of typescript's `isBigIntKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBigIntKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link BigIntKeyword}.\n */\nexport function isBigIntKeyword(node: ts.Node): node is BigIntKeyword {\n\treturn node.kind === ts.SyntaxKind.BigIntKeyword;\n}\n\n/**\n * Test if a node is a {@link BooleanKeyword}.\n * @deprecated With TypeScript v5, in favor of typescript's `isBooleanKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBooleanKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link BooleanKeyword}.\n */\nexport function isBooleanKeyword(node: ts.Node): node is BooleanKeyword {\n\treturn node.kind === ts.SyntaxKind.BooleanKeyword;\n}\n\n/**\n * Test if a node is a `ColonToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isColonToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isColonToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ColonToken`.\n */\nexport function isColonToken(node: ts.Node): node is ts.ColonToken {\n\treturn node.kind === ts.SyntaxKind.ColonToken;\n}\n\n/**\n * Test if a node is a `ConstKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isConstKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ConstKeyword`.\n */\nexport function isConstKeyword(node: ts.Node): node is ts.ConstKeyword {\n\treturn node.kind === ts.SyntaxKind.ConstKeyword;\n}\n\n/**\n * Test if a node is a `DeclareKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclareKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclareKeyword`.\n */\nexport function isDeclareKeyword(node: ts.Node): node is ts.DeclareKeyword {\n\treturn node.kind === ts.SyntaxKind.DeclareKeyword;\n}\n\n/**\n * Test if a node is a `DefaultKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDefaultKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DefaultKeyword`.\n */\nexport function isDefaultKeyword(node: ts.Node): node is ts.DefaultKeyword {\n\treturn node.kind === ts.SyntaxKind.DefaultKeyword;\n}\n\n/**\n * Test if a node is a `DotToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDotToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DotToken`.\n */\nexport function isDotToken(node: ts.Node): node is ts.DotToken {\n\treturn node.kind === ts.SyntaxKind.DotToken;\n}\n\n/**\n * Test if a node is an `EndOfFileToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEndOfFileToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EndOfFileToken`.\n */\nexport function isEndOfFileToken(node: ts.Node): node is ts.EndOfFileToken {\n\treturn node.kind === ts.SyntaxKind.EndOfFileToken;\n}\n\n/**\n * Test if a node is an `EqualsGreaterThanToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isEqualsGreaterThanToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEqualsGreaterThanToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EqualsGreaterThanToken`.\n */\nexport function isEqualsGreaterThanToken(\n\tnode: ts.Node,\n): node is ts.EqualsGreaterThanToken {\n\treturn node.kind === ts.SyntaxKind.EqualsGreaterThanToken;\n}\n\n/**\n * Test if a node is an `EqualsToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEqualsToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EqualsToken`.\n */\nexport function isEqualsToken(node: ts.Node): node is ts.EqualsToken {\n\treturn node.kind === ts.SyntaxKind.EqualsToken;\n}\n\n/**\n * Test if a node is an `ExclamationToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isExclamationToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isExclamationToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ExclamationToken`.\n */\nexport function isExclamationToken(node: ts.Node): node is ts.ExclamationToken {\n\treturn node.kind === ts.SyntaxKind.ExclamationToken;\n}\n\n/**\n * Test if a node is an `ExportKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isExportKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ExportKeyword`.\n */\nexport function isExportKeyword(node: ts.Node): node is ts.ExportKeyword {\n\treturn node.kind === ts.SyntaxKind.ExportKeyword;\n}\n\n/**\n * Test if a node is a {@link FalseKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFalseKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link FalseKeyword}.\n */\nexport function isFalseKeyword(node: ts.Node): node is FalseKeyword {\n\treturn node.kind === ts.SyntaxKind.FalseKeyword;\n}\n\n/**\n * Test if a node is a `FalseLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFalseLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `FalseLiteral`.\n */\nexport function isFalseLiteral(node: ts.Node): node is ts.FalseLiteral {\n\treturn node.kind === ts.SyntaxKind.FalseKeyword;\n}\n\n/**\n * Test if a node is an `ImportExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isImportExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ImportExpression`.\n */\nexport function isImportExpression(node: ts.Node): node is ts.ImportExpression {\n\treturn node.kind === ts.SyntaxKind.ImportKeyword;\n}\n\n/**\n * Test if a node is an {@link ImportKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isImportKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link ImportKeyword}.\n */\nexport function isImportKeyword(node: ts.Node): node is ImportKeyword {\n\treturn node.kind === ts.SyntaxKind.ImportKeyword;\n}\n\n/**\n * Test if a node is an `InKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isInKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `InKeyword`.\n */\nexport function isInKeyword(node: ts.Node): node is ts.InKeyword {\n\treturn node.kind === ts.SyntaxKind.InKeyword;\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `InputFiles`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isInputFiles(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `InputFiles`.\n */\nexport function isInputFiles(node: ts.Node): node is ts.InputFiles {\n\treturn node.kind === ts.SyntaxKind.InputFiles;\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a `JSDocText`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocText(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocText`.\n */\nexport function isJSDocText(node: ts.Node): node is ts.JSDocText {\n\treturn node.kind === ts.SyntaxKind.JSDocText;\n}\n\n/**\n * Test if a node is a `JsonMinusNumericLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsonMinusNumericLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsonMinusNumericLiteral`.\n */\nexport function isJsonMinusNumericLiteral(\n\tnode: ts.Node,\n): node is ts.JsonMinusNumericLiteral {\n\treturn node.kind === ts.SyntaxKind.PrefixUnaryExpression;\n}\n\n/**\n * Test if a node is a {@link NeverKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNeverKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NeverKeyword}.\n */\nexport function isNeverKeyword(node: ts.Node): node is NeverKeyword {\n\treturn node.kind === ts.SyntaxKind.NeverKeyword;\n}\n\n/**\n * Test if a node is a {@link NullKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNullKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NullKeyword}.\n */\nexport function isNullKeyword(node: ts.Node): node is NullKeyword {\n\treturn node.kind === ts.SyntaxKind.NullKeyword;\n}\n\n/**\n * Test if a node is a `NullLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNullLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NullLiteral`.\n */\nexport function isNullLiteral(node: ts.Node): node is ts.NullLiteral {\n\treturn node.kind === ts.SyntaxKind.NullKeyword;\n}\n\n/**\n * Test if a node is a {@link NumberKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNumberKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NumberKeyword}.\n */\nexport function isNumberKeyword(node: ts.Node): node is NumberKeyword {\n\treturn node.kind === ts.SyntaxKind.NumberKeyword;\n}\n\n/**\n * Test if a node is an {@link ObjectKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link ObjectKeyword}.\n */\nexport function isObjectKeyword(node: ts.Node): node is ObjectKeyword {\n\treturn node.kind === ts.SyntaxKind.ObjectKeyword;\n}\n\n/**\n * Test if a node is an `OutKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isOutKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `OutKeyword`.\n */\nexport function isOutKeyword(node: ts.Node): node is ts.OutKeyword {\n\treturn node.kind === ts.SyntaxKind.OutKeyword;\n}\n\n/**\n * Test if a node is an `OverrideKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isOverrideKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `OverrideKeyword`.\n */\nexport function isOverrideKeyword(node: ts.Node): node is ts.OverrideKeyword {\n\treturn node.kind === ts.SyntaxKind.OverrideKeyword;\n}\n\n/**\n * Test if a node is a `PrivateKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPrivateKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PrivateKeyword`.\n */\nexport function isPrivateKeyword(node: ts.Node): node is ts.PrivateKeyword {\n\treturn node.kind === ts.SyntaxKind.PrivateKeyword;\n}\n\n/**\n * Test if a node is a `ProtectedKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isProtectedKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ProtectedKeyword`.\n */\nexport function isProtectedKeyword(node: ts.Node): node is ts.ProtectedKeyword {\n\treturn node.kind === ts.SyntaxKind.ProtectedKeyword;\n}\n\n/**\n * Test if a node is a `PublicKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPublicKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PublicKeyword`.\n */\nexport function isPublicKeyword(node: ts.Node): node is ts.PublicKeyword {\n\treturn node.kind === ts.SyntaxKind.PublicKeyword;\n}\n\n/**\n * Test if a node is a `QuestionDotToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isQuestionDotToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isQuestionDotToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `QuestionDotToken`.\n */\nexport function isQuestionDotToken(node: ts.Node): node is ts.QuestionDotToken {\n\treturn node.kind === ts.SyntaxKind.QuestionDotToken;\n}\n\n/**\n * Test if a node is a `QuestionToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isQuestionToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isQuestionToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `QuestionToken`.\n */\nexport function isQuestionToken(node: ts.Node): node is ts.QuestionToken {\n\treturn node.kind === ts.SyntaxKind.QuestionToken;\n}\n\n/**\n * Test if a node is a `ReadonlyKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isReadonlyKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ReadonlyKeyword`.\n */\nexport function isReadonlyKeyword(node: ts.Node): node is ts.ReadonlyKeyword {\n\treturn node.kind === ts.SyntaxKind.ReadonlyKeyword;\n}\n\n/**\n * Test if a node is a `StaticKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isStaticKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `StaticKeyword`.\n */\nexport function isStaticKeyword(node: ts.Node): node is ts.StaticKeyword {\n\treturn node.kind === ts.SyntaxKind.StaticKeyword;\n}\n\n/**\n * Test if a node is a {@link StringKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isStringKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link StringKeyword}.\n */\nexport function isStringKeyword(node: ts.Node): node is StringKeyword {\n\treturn node.kind === ts.SyntaxKind.StringKeyword;\n}\n\n/**\n * Test if a node is a `SuperExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperExpression`.\n */\nexport function isSuperExpression(node: ts.Node): node is ts.SuperExpression {\n\treturn node.kind === ts.SyntaxKind.SuperKeyword;\n}\n\n/**\n * Test if a node is a {@link SuperKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link SuperKeyword}.\n */\nexport function isSuperKeyword(node: ts.Node): node is SuperKeyword {\n\treturn node.kind === ts.SyntaxKind.SuperKeyword;\n}\n\n/**\n * Test if a node is a {@link SymbolKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSymbolKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link SymbolKeyword}.\n */\nexport function isSymbolKeyword(node: ts.Node): node is SymbolKeyword {\n\treturn node.kind === ts.SyntaxKind.SymbolKeyword;\n}\n\n/**\n * Test if a node is a `SyntaxList`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSyntaxList(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SyntaxList`.\n */\nexport function isSyntaxList(node: ts.Node): node is ts.SyntaxList {\n\treturn node.kind === ts.SyntaxKind.SyntaxList;\n}\n\n/**\n * Test if a node is a `ThisExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isThisExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ThisExpression`.\n */\nexport function isThisExpression(node: ts.Node): node is ts.ThisExpression {\n\treturn node.kind === ts.SyntaxKind.ThisKeyword;\n}\n\n/**\n * Test if a node is a {@link ThisKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isThisKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link ThisKeyword}.\n */\nexport function isThisKeyword(node: ts.Node): node is ThisKeyword {\n\treturn node.kind === ts.SyntaxKind.ThisKeyword;\n}\n\n/**\n * Test if a node is a {@link TrueKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTrueKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link TrueKeyword}.\n */\nexport function isTrueKeyword(node: ts.Node): node is TrueKeyword {\n\treturn node.kind === ts.SyntaxKind.TrueKeyword;\n}\n\n/**\n * Test if a node is a `TrueLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTrueLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TrueLiteral`.\n */\nexport function isTrueLiteral(node: ts.Node): node is ts.TrueLiteral {\n\treturn node.kind === ts.SyntaxKind.TrueKeyword;\n}\n\n/**\n * Test if a node is an {@link UndefinedKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUndefinedKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link UndefinedKeyword}.\n */\nexport function isUndefinedKeyword(node: ts.Node): node is UndefinedKeyword {\n\treturn node.kind === ts.SyntaxKind.UndefinedKeyword;\n}\n\n/**\n * Test if a node is an {@link UnknownKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnknownKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link UnknownKeyword}.\n */\nexport function isUnknownKeyword(node: ts.Node): node is UnknownKeyword {\n\treturn node.kind === ts.SyntaxKind.UnknownKeyword;\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedPrologue`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedPrologue(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedPrologue`.\n */\nexport function isUnparsedPrologue(node: ts.Node): node is ts.UnparsedPrologue {\n\treturn node.kind === ts.SyntaxKind.UnparsedPrologue;\n}\n/* eslint-enable deprecation/deprecation */\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedSyntheticReference`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedSyntheticReference(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedSyntheticReference`.\n */\nexport function isUnparsedSyntheticReference(\n\tnode: ts.Node,\n): node is ts.UnparsedSyntheticReference {\n\treturn node.kind === ts.SyntaxKind.UnparsedSyntheticReference;\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a {@link VoidKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isVoidKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link VoidKeyword}.\n */\nexport function isVoidKeyword(node: ts.Node): node is VoidKeyword {\n\treturn node.kind === ts.SyntaxKind.VoidKeyword;\n}\n","import ts from \"typescript\";\n\nimport { isTsVersionAtLeast } from \"../../utils\";\nimport {\n\tisJSDocNamespaceDeclaration,\n\tisJsxTagNamePropertyAccess,\n\tisNamespaceDeclaration,\n\tisPropertyAccessEntityNameExpression,\n\tisSuperElementAccessExpression,\n\tisSuperPropertyAccessExpression,\n} from \"./compound\";\nimport {\n\tisAccessorKeyword,\n\tisEndOfFileToken,\n\tisFalseLiteral,\n\tisJSDocText,\n\tisJsonMinusNumericLiteral,\n\tisNullLiteral,\n\tisPrivateKeyword,\n\tisProtectedKeyword,\n\tisPublicKeyword,\n\tisReadonlyKeyword,\n\tisStaticKeyword,\n\tisThisExpression,\n\tisTrueLiteral,\n} from \"./single\";\n\n/**\n * Test if a node is an `AccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessExpression`.\n */\nexport function isAccessExpression(node: ts.Node): node is ts.AccessExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)\n\t);\n}\n\n/**\n * Test if a node is an `AccessibilityModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessibilityModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessibilityModifier`.\n */\nexport function isAccessibilityModifier(\n\tnode: ts.Node,\n): node is ts.AccessibilityModifier {\n\treturn (\n\t\tisPublicKeyword(node) || isPrivateKeyword(node) || isProtectedKeyword(node)\n\t);\n}\n\n/**\n * Test if a node is an `AccessorDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAccessor`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessorDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessorDeclaration`.\n */\nexport function isAccessorDeclaration(\n\tnode: ts.Node,\n): node is ts.AccessorDeclaration {\n\treturn ts.isGetAccessorDeclaration(node) || ts.isSetAccessorDeclaration(node);\n}\n\n/**\n * Test if a node is an `ArrayBindingElement`.\n * @deprecated With TypeScript v5, in favor of typescript's `isArrayBindingElement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isArrayBindingElement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ArrayBindingElement`.\n */\nexport function isArrayBindingElement(\n\tnode: ts.Node,\n): node is ts.ArrayBindingElement {\n\treturn ts.isBindingElement(node) || ts.isOmittedExpression(node);\n}\n\n/**\n * Test if a node is an `ArrayBindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isArrayBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ArrayBindingOrAssignmentPattern`.\n */\nexport function isArrayBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.ArrayBindingOrAssignmentPattern {\n\treturn ts.isArrayBindingPattern(node) || ts.isArrayLiteralExpression(node);\n}\n\n/**\n * Test if a node is an `AssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssignmentPattern`.\n */\nexport function isAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.AssignmentPattern {\n\treturn (\n\t\tts.isObjectLiteralExpression(node) || ts.isArrayLiteralExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentElementRestIndicator`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentElementRestIndicator(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentElementRestIndicator`.\n */\nexport function isBindingOrAssignmentElementRestIndicator(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentElementRestIndicator {\n\tif (ts.isSpreadElement(node) || ts.isSpreadAssignment(node)) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4)) {\n\t\treturn ts.isDotDotDotToken(node);\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentElementTarget`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentElementTarget(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentElementTarget`.\n */\nexport function isBindingOrAssignmentElementTarget(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentElementTarget {\n\treturn (\n\t\tisBindingOrAssignmentPattern(node) ||\n\t\tts.isIdentifier(node) ||\n\t\tts.isPropertyAccessExpression(node) ||\n\t\tts.isElementAccessExpression(node) ||\n\t\tts.isOmittedExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentPattern`.\n */\nexport function isBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentPattern {\n\treturn (\n\t\tisObjectBindingOrAssignmentPattern(node) ||\n\t\tisArrayBindingOrAssignmentPattern(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingPattern`.\n */\nexport function isBindingPattern(node: ts.Node): node is ts.BindingPattern {\n\treturn ts.isObjectBindingPattern(node) || ts.isArrayBindingPattern(node);\n}\n\n/**\n * Test if a node is a `BlockLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBlockLike(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BlockLike`.\n */\nexport function isBlockLike(node: ts.Node): node is ts.BlockLike {\n\treturn (\n\t\tts.isSourceFile(node) ||\n\t\tts.isBlock(node) ||\n\t\tts.isModuleBlock(node) ||\n\t\tts.isCaseOrDefaultClause(node)\n\t);\n}\n\n/**\n * Test if a node is a `BooleanLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBooleanLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BooleanLiteral`.\n */\nexport function isBooleanLiteral(node: ts.Node): node is ts.BooleanLiteral {\n\treturn isTrueLiteral(node) || isFalseLiteral(node);\n}\n\n/**\n * Test if a node is a `ClassLikeDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isClassLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isClassLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ClassLikeDeclaration`.\n */\nexport function isClassLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.ClassLikeDeclaration {\n\treturn ts.isClassDeclaration(node) || ts.isClassExpression(node);\n}\n\n/**\n * Test if a node is a `ClassMemberModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isClassMemberModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ClassMemberModifier`.\n */\nexport function isClassMemberModifier(\n\tnode: ts.Node,\n): node is ts.ClassMemberModifier {\n\treturn (\n\t\tisAccessibilityModifier(node) ||\n\t\tisReadonlyKeyword(node) ||\n\t\tisStaticKeyword(node) ||\n\t\tisAccessorKeyword(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationName`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationName`.\n */\nexport function isDeclarationName(node: ts.Node): node is ts.DeclarationName {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tts.isPrivateIdentifier(node) ||\n\t\tts.isStringLiteralLike(node) ||\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isComputedPropertyName(node) ||\n\t\tts.isElementAccessExpression(node) ||\n\t\tisBindingPattern(node) ||\n\t\tisEntityNameExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationWithTypeParameterChildren`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationWithTypeParameterChildren(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationWithTypeParameterChildren`.\n */\nexport function isDeclarationWithTypeParameterChildren(\n\tnode: ts.Node,\n): node is ts.DeclarationWithTypeParameterChildren {\n\treturn (\n\t\tisSignatureDeclaration(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isJSDocTemplateTag(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationWithTypeParameters`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationWithTypeParameters(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationWithTypeParameters`.\n */\nexport function isDeclarationWithTypeParameters(\n\tnode: ts.Node,\n): node is ts.DeclarationWithTypeParameters {\n\treturn (\n\t\tisDeclarationWithTypeParameterChildren(node) ||\n\t\tts.isJSDocTypedefTag(node) ||\n\t\tts.isJSDocCallbackTag(node) ||\n\t\tts.isJSDocSignature(node)\n\t);\n}\n\n/**\n * Test if a node is a `DestructuringPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDestructuringPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DestructuringPattern`.\n */\nexport function isDestructuringPattern(\n\tnode: ts.Node,\n): node is ts.DestructuringPattern {\n\treturn (\n\t\tisBindingPattern(node) ||\n\t\tts.isObjectLiteralExpression(node) ||\n\t\tts.isArrayLiteralExpression(node)\n\t);\n}\n\n/**\n * Test if a node is an `EntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EntityNameExpression`.\n */\nexport function isEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.EntityNameExpression {\n\treturn ts.isIdentifier(node) || isPropertyAccessEntityNameExpression(node);\n}\n\n/**\n * Test if a node is an `EntityNameOrEntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEntityNameOrEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EntityNameOrEntityNameExpression`.\n */\nexport function isEntityNameOrEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.EntityNameOrEntityNameExpression {\n\treturn ts.isEntityName(node) || isEntityNameExpression(node);\n}\n\n/**\n * Test if a node is a `ForInOrOfStatement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isForInOrOfStatement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ForInOrOfStatement`.\n */\nexport function isForInOrOfStatement(\n\tnode: ts.Node,\n): node is ts.ForInOrOfStatement {\n\treturn ts.isForInStatement(node) || ts.isForOfStatement(node);\n}\n\n/**\n * Test if a node is a `FunctionLikeDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isFunctionLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFunctionLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `FunctionLikeDeclaration`.\n */\nexport function isFunctionLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.FunctionLikeDeclaration {\n\treturn (\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasDecorators`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasDecorators(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasDecorators`.\n */\nexport function hasDecorators(node: ts.Node): node is ts.HasDecorators {\n\treturn (\n\t\tts.isParameter(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isClassExpression(node) ||\n\t\tts.isClassDeclaration(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasExpressionInitializer`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasExpressionInitializer(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasExpressionInitializer`.\n */\nexport function hasExpressionInitializer(\n\tnode: ts.Node,\n): node is ts.HasExpressionInitializer {\n\treturn (\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isEnumMember(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasInitializer`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasInitializer(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasInitializer`.\n */\nexport function hasInitializer(node: ts.Node): node is ts.HasInitializer {\n\treturn (\n\t\thasExpressionInitializer(node) ||\n\t\tts.isForStatement(node) ||\n\t\tts.isForInStatement(node) ||\n\t\tts.isForOfStatement(node) ||\n\t\tts.isJsxAttribute(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasJSDoc`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasJSDoc(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasJSDoc`.\n */\nexport function hasJSDoc(node: ts.Node): node is ts.HasJSDoc {\n\tif (\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisAccessorDeclaration(node) ||\n\t\tts.isArrowFunction(node) ||\n\t\tts.isBlock(node) ||\n\t\tts.isBreakStatement(node) ||\n\t\tts.isCallSignatureDeclaration(node) ||\n\t\tts.isCaseClause(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isConstructSignatureDeclaration(node) ||\n\t\tts.isContinueStatement(node) ||\n\t\tts.isDebuggerStatement(node) ||\n\t\tts.isDoStatement(node) ||\n\t\tts.isEmptyStatement(node) ||\n\t\tisEndOfFileToken(node) ||\n\t\tts.isEnumDeclaration(node) ||\n\t\tts.isEnumMember(node) ||\n\t\tts.isExportAssignment(node) ||\n\t\tts.isExportDeclaration(node) ||\n\t\tts.isExportSpecifier(node) ||\n\t\tts.isExpressionStatement(node) ||\n\t\tts.isForInStatement(node) ||\n\t\tts.isForOfStatement(node) ||\n\t\tts.isForStatement(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isFunctionTypeNode(node) ||\n\t\tts.isIfStatement(node) ||\n\t\tts.isImportDeclaration(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isJSDocFunctionType(node) ||\n\t\tts.isLabeledStatement(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isModuleDeclaration(node) ||\n\t\tts.isNamedTupleMember(node) ||\n\t\tts.isNamespaceExportDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isParenthesizedExpression(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isReturnStatement(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isSpreadAssignment(node) ||\n\t\tts.isSwitchStatement(node) ||\n\t\tts.isThrowStatement(node) ||\n\t\tts.isTryStatement(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isVariableStatement(node) ||\n\t\tts.isWhileStatement(node) ||\n\t\tts.isWithStatement(node)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4) && ts.isClassStaticBlockDeclaration(node)) {\n\t\treturn true;\n\t}\n\n\tif (\n\t\tisTsVersionAtLeast(5, 0) &&\n\t\t(ts.isBinaryExpression(node) ||\n\t\t\tts.isElementAccessExpression(node) ||\n\t\t\tts.isIdentifier(node) ||\n\t\t\tts.isJSDocSignature(node) ||\n\t\t\tts.isObjectLiteralExpression(node) ||\n\t\t\tts.isPropertyAccessExpression(node) ||\n\t\t\tts.isTypeParameterDeclaration(node))\n\t) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `HasModifiers`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasModifiers(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasModifiers`.\n */\nexport function hasModifiers(node: ts.Node): node is ts.HasModifiers {\n\treturn (\n\t\tts.isTypeParameterDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node) ||\n\t\tts.isClassExpression(node) ||\n\t\tts.isVariableStatement(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isClassDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isEnumDeclaration(node) ||\n\t\tts.isModuleDeclaration(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isImportDeclaration(node) ||\n\t\tts.isExportAssignment(node) ||\n\t\tts.isExportDeclaration(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasType`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasType(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasType`.\n */\nexport function hasType(node: ts.Node): node is ts.HasType {\n\treturn (\n\t\tisSignatureDeclaration(node) ||\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isTypePredicateNode(node) ||\n\t\tts.isParenthesizedTypeNode(node) ||\n\t\tts.isTypeOperatorNode(node) ||\n\t\tts.isMappedTypeNode(node) ||\n\t\tts.isAssertionExpression(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isJSDocTypeExpression(node) ||\n\t\tts.isJSDocNonNullableType(node) ||\n\t\tts.isJSDocNullableType(node) ||\n\t\tts.isJSDocOptionalType(node) ||\n\t\tts.isJSDocVariadicType(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasTypeArguments`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasTypeArguments(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasTypeArguments`.\n */\nexport function hasTypeArguments(node: ts.Node): node is ts.HasTypeArguments {\n\treturn (\n\t\tts.isCallExpression(node) ||\n\t\tts.isNewExpression(node) ||\n\t\tts.isTaggedTemplateExpression(node) ||\n\t\tts.isJsxOpeningElement(node) ||\n\t\tts.isJsxSelfClosingElement(node)\n\t);\n}\n\n/**\n * Test if a node is a `JSDocComment`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocComment(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocComment`.\n */\nexport function isJSDocComment(node: ts.Node): node is ts.JSDocComment {\n\tif (isJSDocText(node)) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4)) {\n\t\treturn (\n\t\t\tts.isJSDocLink(node) ||\n\t\t\tts.isJSDocLinkCode(node) ||\n\t\t\tts.isJSDocLinkPlain(node)\n\t\t);\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `JSDocNamespaceBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocNamespaceBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocNamespaceBody`.\n */\nexport function isJSDocNamespaceBody(\n\tnode: ts.Node,\n): node is ts.JSDocNamespaceBody {\n\treturn ts.isIdentifier(node) || isJSDocNamespaceDeclaration(node);\n}\n\n/**\n * Test if a node is a `JSDocTypeReferencingNode`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocTypeReferencingNode(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocTypeReferencingNode`.\n */\nexport function isJSDocTypeReferencingNode(\n\tnode: ts.Node,\n): node is ts.JSDocTypeReferencingNode {\n\treturn (\n\t\tts.isJSDocVariadicType(node) ||\n\t\tts.isJSDocOptionalType(node) ||\n\t\tts.isJSDocNullableType(node) ||\n\t\tts.isJSDocNonNullableType(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsonObjectExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsonObjectExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsonObjectExpression`.\n */\nexport function isJsonObjectExpression(\n\tnode: ts.Node,\n): node is ts.JsonObjectExpression {\n\treturn (\n\t\tts.isObjectLiteralExpression(node) ||\n\t\tts.isArrayLiteralExpression(node) ||\n\t\tisJsonMinusNumericLiteral(node) ||\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isStringLiteral(node) ||\n\t\tisBooleanLiteral(node) ||\n\t\tisNullLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxAttributeLike`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxAttributeLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxAttributeLike(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxAttributeLike`.\n */\nexport function isJsxAttributeLike(node: ts.Node): node is ts.JsxAttributeLike {\n\treturn ts.isJsxAttribute(node) || ts.isJsxSpreadAttribute(node);\n}\n\n/**\n * Test if a node is a `JsxAttributeValue`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxAttributeValue(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxAttributeValue`.\n */\nexport function isJsxAttributeValue(\n\tnode: ts.Node,\n): node is ts.JsxAttributeValue {\n\treturn (\n\t\tts.isStringLiteral(node) ||\n\t\tts.isJsxExpression(node) ||\n\t\tts.isJsxElement(node) ||\n\t\tts.isJsxSelfClosingElement(node) ||\n\t\tts.isJsxFragment(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxChild`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxChild`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxChild(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxChild`.\n */\nexport function isJsxChild(node: ts.Node): node is ts.JsxChild {\n\treturn (\n\t\tts.isJsxText(node) ||\n\t\tts.isJsxExpression(node) ||\n\t\tts.isJsxElement(node) ||\n\t\tts.isJsxSelfClosingElement(node) ||\n\t\tts.isJsxFragment(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxTagNameExpression`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxTagNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxTagNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxTagNameExpression`.\n */\nexport function isJsxTagNameExpression(\n\tnode: ts.Node,\n): node is ts.JsxTagNameExpression {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tisThisExpression(node) ||\n\t\tisJsxTagNamePropertyAccess(node)\n\t);\n}\n\n/**\n * Test if a node is a `LiteralToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isLiteralToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `LiteralToken`.\n */\nexport function isLiteralToken(node: ts.Node): node is ts.LiteralToken {\n\treturn (\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isBigIntLiteral(node) ||\n\t\tts.isStringLiteral(node) ||\n\t\tts.isJsxText(node) ||\n\t\tts.isRegularExpressionLiteral(node) ||\n\t\tts.isNoSubstitutionTemplateLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `ModuleBody`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleBody`.\n */\nexport function isModuleBody(node: ts.Node): node is ts.ModuleBody {\n\treturn isNamespaceBody(node) || isJSDocNamespaceBody(node);\n}\n\n/**\n * Test if a node is a `ModuleName`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleName`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleName`.\n */\nexport function isModuleName(node: ts.Node): node is ts.ModuleName {\n\treturn ts.isIdentifier(node) || ts.isStringLiteral(node);\n}\n\n/**\n * Test if a node is a `ModuleReference`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleReference`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleReference(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleReference`.\n */\nexport function isModuleReference(node: ts.Node): node is ts.ModuleReference {\n\treturn ts.isEntityName(node) || ts.isExternalModuleReference(node);\n}\n\n/**\n * Test if a node is a `NamedImportBindings`.\n * @deprecated With TypeScript v5, in favor of typescript's `isNamedImportBindings`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedImportBindings(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamedImportBindings`.\n */\nexport function isNamedImportBindings(\n\tnode: ts.Node,\n): node is ts.NamedImportBindings {\n\treturn ts.isNamespaceImport(node) || ts.isNamedImports(node);\n}\n\n/**\n * Test if a node is a `NamedImportsOrExports`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedImportsOrExports(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamedImportsOrExports`.\n */\nexport function isNamedImportsOrExports(\n\tnode: ts.Node,\n): node is ts.NamedImportsOrExports {\n\treturn ts.isNamedImports(node) || ts.isNamedExports(node);\n}\n\n/**\n * Test if a node is a `NamespaceBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamespaceBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamespaceBody`.\n */\nexport function isNamespaceBody(node: ts.Node): node is ts.NamespaceBody {\n\treturn ts.isModuleBlock(node) || isNamespaceDeclaration(node);\n}\n\n/**\n * Test if a node is an `ObjectBindingOrAssignmentElement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectBindingOrAssignmentElement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentElement`.\n */\nexport function isObjectBindingOrAssignmentElement(\n\tnode: ts.Node,\n): node is ts.ObjectBindingOrAssignmentElement {\n\treturn (\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isSpreadAssignment(node)\n\t);\n}\n\n/**\n * Test if a node is an `ObjectBindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentPattern`.\n */\nexport function isObjectBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.ObjectBindingOrAssignmentPattern {\n\treturn ts.isObjectBindingPattern(node) || ts.isObjectLiteralExpression(node);\n}\n\n/**\n * Test if a node is an `ObjectTypeDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectTypeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectTypeDeclaration`.\n */\nexport function isObjectTypeDeclaration(\n\tnode: ts.Node,\n): node is ts.ObjectTypeDeclaration {\n\treturn (\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeLiteralNode(node)\n\t);\n}\n\n/**\n * Test if a node is a `ParameterPropertyModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isParameterPropertyModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ParameterPropertyModifier`.\n */\nexport function isParameterPropertyModifier(\n\tnode: ts.Node,\n): node is ts.ParameterPropertyModifier {\n\treturn isAccessibilityModifier(node) || isReadonlyKeyword(node);\n}\n\n/**\n * Test if a node is a `PropertyNameLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPropertyNameLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PropertyNameLiteral`.\n */\nexport function isPropertyNameLiteral(\n\tnode: ts.Node,\n): node is ts.PropertyNameLiteral {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tts.isStringLiteralLike(node) ||\n\t\tts.isNumericLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `PseudoLiteralToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPseudoLiteralToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PseudoLiteralToken`.\n */\nexport function isPseudoLiteralToken(\n\tnode: ts.Node,\n): node is ts.PseudoLiteralToken {\n\treturn (\n\t\tts.isTemplateHead(node) ||\n\t\tts.isTemplateMiddle(node) ||\n\t\tts.isTemplateTail(node)\n\t);\n}\n\n/**\n * Test if a node is a `SignatureDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSignatureDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SignatureDeclaration`.\n */\nexport function isSignatureDeclaration(\n\tnode: ts.Node,\n): node is ts.SignatureDeclaration {\n\treturn (\n\t\tts.isCallSignatureDeclaration(node) ||\n\t\tts.isConstructSignatureDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isFunctionTypeNode(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isJSDocFunctionType(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisAccessorDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node)\n\t);\n}\n\n/**\n * Test if a node is a `SuperProperty`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperProperty(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperProperty`.\n */\nexport function isSuperProperty(node: ts.Node): node is ts.SuperProperty {\n\treturn (\n\t\tisSuperPropertyAccessExpression(node) ||\n\t\tisSuperElementAccessExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `TypeOnlyCompatibleAliasDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTypeOnlyCompatibleAliasDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TypeOnlyCompatibleAliasDeclaration`.\n */\nexport function isTypeOnlyCompatibleAliasDeclaration(\n\tnode: ts.Node,\n): node is ts.TypeOnlyCompatibleAliasDeclaration {\n\tif (\n\t\tts.isImportClause(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isNamespaceImport(node) ||\n\t\tts.isImportOrExportSpecifier(node)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (\n\t\tisTsVersionAtLeast(5, 0) &&\n\t\t(ts.isExportDeclaration(node) || ts.isNamespaceExport(node))\n\t) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `TypeReferenceType`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTypeReferenceType(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TypeReferenceType`.\n */\nexport function isTypeReferenceType(\n\tnode: ts.Node,\n): node is ts.TypeReferenceType {\n\treturn ts.isTypeReferenceNode(node) || ts.isExpressionWithTypeArguments(node);\n}\n\n/**\n * Test if a node is an `UnionOrIntersectionTypeNode`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnionOrIntersectionTypeNode(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnionOrIntersectionTypeNode`.\n */\nexport function isUnionOrIntersectionTypeNode(\n\tnode: ts.Node,\n): node is ts.UnionOrIntersectionTypeNode {\n\treturn ts.isUnionTypeNode(node) || ts.isIntersectionTypeNode(node);\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedSourceText`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedSourceText(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedSourceText`.\n */\nexport function isUnparsedSourceText(\n\tnode: ts.Node,\n): node is ts.UnparsedSourceText {\n\treturn ts.isUnparsedPrepend(node) || ts.isUnparsedTextLike(node);\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a `VariableLikeDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isVariableLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `VariableLikeDeclaration`.\n */\nexport function isVariableLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.VariableLikeDeclaration {\n\treturn (\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isJsxAttribute(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isEnumMember(node) ||\n\t\tts.isJSDocPropertyTag(node) ||\n\t\tts.isJSDocParameterTag(node)\n\t);\n}\n","import ts from \"typescript\";\n\nconst [tsMajor, tsMinor] = ts.versionMajorMinor\n\t.split(\".\")\n\t.map((raw) => Number.parseInt(raw, 10));\n\nexport function isTsVersionAtLeast(major: number, minor = 0): boolean {\n\treturn tsMajor > major || (tsMajor === major && tsMinor >= minor);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Is the node a scope boundary, specifically due to it being a function.\n * @category Scope Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFunctionScopeBoundary(node, ts.ObjectFlags.Anonymous)) {\n * // ...\n * }\n * ```\n */\nexport function isFunctionScopeBoundary(node: ts.Node): boolean {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\tcase ts.SyntaxKind.Constructor:\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.GetAccessor:\n\t\tcase ts.SyntaxKind.SetAccessor:\n\t\tcase ts.SyntaxKind.MethodSignature:\n\t\tcase ts.SyntaxKind.CallSignature:\n\t\tcase ts.SyntaxKind.ConstructSignature:\n\t\tcase ts.SyntaxKind.ConstructorType:\n\t\tcase ts.SyntaxKind.FunctionType:\n\t\t\treturn true;\n\t\tcase ts.SyntaxKind.SourceFile:\n\t\t\t// if SourceFile is no module, it contributes to the global scope and is therefore no scope boundary\n\t\t\treturn ts.isExternalModule(node as ts.SourceFile);\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isNamedDeclarationWithName } from \"../nodes/typeGuards\";\nimport {\n\tisIntersectionType,\n\tisUnionType,\n\tisUniqueESSymbolType,\n} from \"./typeGuards\";\n\n/**\n * Get the `CallSignatures` of the given type.\n * @category Types - Getters\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * getCallSignaturesOfType(type);\n * ```\n */\nexport function getCallSignaturesOfType(\n\ttype: ts.Type,\n): readonly ts.Signature[] {\n\tif (isUnionType(type)) {\n\t\tconst signatures = [];\n\t\tfor (const subType of type.types) {\n\t\t\tsignatures.push(...getCallSignaturesOfType(subType));\n\t\t}\n\n\t\treturn signatures;\n\t}\n\n\tif (isIntersectionType(type)) {\n\t\tlet signatures: readonly ts.Signature[] | undefined;\n\t\tfor (const subType of type.types) {\n\t\t\tconst sig = getCallSignaturesOfType(subType);\n\t\t\tif (sig.length !== 0) {\n\t\t\t\t// if more than one type of the intersection has call signatures, none of them is useful for inference\n\t\t\t\tif (signatures !== undefined) {\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\n\t\t\t\tsignatures = sig;\n\t\t\t}\n\t\t}\n\n\t\treturn signatures === undefined ? [] : signatures;\n\t}\n\n\treturn type.getCallSignatures();\n}\n\n/**\n * Get the property with the given name on the given type (if it exists).\n * @category Types - Getters\n * @example\n * ```ts\n * declare const property: ts.Symbol;\n * declare const type: ts.Type;\n *\n * getPropertyOfType(type, property.getEscapedName());\n * ```\n */\nexport function getPropertyOfType(\n\ttype: ts.Type,\n\tname: ts.__String,\n): ts.Symbol | undefined {\n\tif (!(name as string).startsWith(\"__\")) {\n\t\treturn type.getProperty(name as string);\n\t}\n\n\treturn type.getProperties().find((s) => s.escapedName === name);\n}\n\n/**\n * Retrieves a type symbol corresponding to a well-known string name.\n * @category Types - Getters\n * @example\n * ```ts\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * getWellKnownSymbolPropertyOfType(type, \"asyncIterator\", typeChecker);\n * ```\n */\nexport function getWellKnownSymbolPropertyOfType(\n\ttype: ts.Type,\n\twellKnownSymbolName: string,\n\ttypeChecker: ts.TypeChecker,\n): ts.Symbol | undefined {\n\tconst prefix = \"__@\" + wellKnownSymbolName;\n\n\tfor (const prop of type.getProperties()) {\n\t\tif (!prop.name.startsWith(prefix)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst declaration = prop.valueDeclaration ?? prop.getDeclarations()![0];\n\t\tif (\n\t\t\t!isNamedDeclarationWithName(declaration) ||\n\t\t\tdeclaration.name === undefined ||\n\t\t\t!ts.isComputedPropertyName(declaration.name)\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst globalSymbol = typeChecker.getApparentType(\n\t\t\ttypeChecker.getTypeAtLocation(declaration.name.expression),\n\t\t).symbol;\n\n\t\tif (\n\t\t\tprop.escapedName ===\n\t\t\tgetPropertyNameOfWellKnownSymbol(\n\t\t\t\ttypeChecker,\n\t\t\t\tglobalSymbol,\n\t\t\t\twellKnownSymbolName,\n\t\t\t)\n\t\t) {\n\t\t\treturn prop;\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\n/**\n * @internal\n */\nfunction getPropertyNameOfWellKnownSymbol(\n\ttypeChecker: ts.TypeChecker,\n\tsymbolConstructor: ts.Symbol | undefined,\n\tsymbolName: string,\n) {\n\tconst knownSymbol =\n\t\tsymbolConstructor &&\n\t\ttypeChecker\n\t\t\t.getTypeOfSymbolAtLocation(\n\t\t\t\tsymbolConstructor,\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n\t\t\t\t(symbolConstructor as any).valueDeclaration,\n\t\t\t)\n\t\t\t.getProperty(symbolName);\n\tconst knownSymbolType =\n\t\tknownSymbol &&\n\t\ttypeChecker.getTypeOfSymbolAtLocation(\n\t\t\tknownSymbol,\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n\t\t\t(knownSymbol as any).valueDeclaration,\n\t\t);\n\tif (knownSymbolType && isUniqueESSymbolType(knownSymbolType)) {\n\t\treturn knownSymbolType.escapedName;\n\t}\n\n\treturn (\"__@\" + symbolName) as ts.__String;\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\n\n/**\n * A \"any\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicAnyType extends IntrinsicType {\n\tintrinsicName: \"any\";\n}\n\n/**\n * Determines whether the given type is the \"any\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicAnyType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicAnyType(type: ts.Type): type is IntrinsicAnyType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Any);\n}\n\n/**\n * A \"boolean\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicBooleanType extends IntrinsicType {\n\tintrinsicName: \"boolean\";\n}\n\n/**\n * Determines whether the given type is the \"boolean\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicBooleanType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicBooleanType(\n\ttype: ts.Type,\n): type is IntrinsicBooleanType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Boolean);\n}\n\n/**\n * A \"bigint\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicBigIntType extends IntrinsicType {\n\tintrinsicName: \"bigint\";\n}\n\n/**\n * Determines whether the given type is the \"bigint\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicBigIntType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicBigIntType(\n\ttype: ts.Type,\n): type is IntrinsicBigIntType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BigInt);\n}\n\n/**\n * An \"error\" intrinsic type.\n *\n * This refers to a type generated when TypeScript encounters an error while\n * trying to resolve the type.\n * @category Type Types\n */\nexport interface IntrinsicErrorType extends IntrinsicType {\n\tintrinsicName: \"error\";\n}\n\n/**\n * Determines whether the given type is the \"error\" intrinsic type.\n *\n * The intrinsic error type occurs when TypeScript encounters an error while\n * trying to resolve the type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicErrorType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicErrorType(\n\ttype: ts.Type,\n): type is IntrinsicErrorType {\n\treturn isIntrinsicType(type) && type.intrinsicName === \"error\";\n}\n\n/**\n * A \"symbol\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicESSymbolType extends IntrinsicType {\n\tintrinsicName: \"symbol\";\n}\n\n/**\n * Determines whether the given type is the \"symbol\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicESSymbolType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicESSymbolType(\n\ttype: ts.Type,\n): type is IntrinsicESSymbolType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.ESSymbol);\n}\n\n/**\n * An intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicType extends ts.Type {\n\tintrinsicName: string;\n\tobjectFlags: ts.ObjectFlags;\n}\n\n// ts.TypeFlags.Intrinsic\nconst IntrinsicTypeFlags =\n\t(ts.TypeFlags as { Intrinsic?: number }).Intrinsic ??\n\tts.TypeFlags.Any |\n\t\tts.TypeFlags.Unknown |\n\t\tts.TypeFlags.String |\n\t\tts.TypeFlags.Number |\n\t\tts.TypeFlags.BigInt |\n\t\tts.TypeFlags.Boolean |\n\t\tts.TypeFlags.BooleanLiteral |\n\t\tts.TypeFlags.ESSymbol |\n\t\tts.TypeFlags.Void |\n\t\tts.TypeFlags.Undefined |\n\t\tts.TypeFlags.Null |\n\t\tts.TypeFlags.Never |\n\t\tts.TypeFlags.NonPrimitive;\n\n/**\n * Test if a type is an {@link IntrinsicType}.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicType(type: ts.Type): type is IntrinsicType {\n\treturn isTypeFlagSet(type, IntrinsicTypeFlags);\n}\n\n/**\n * A \"never\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNeverType extends IntrinsicType {\n\tintrinsicName: \"never\";\n}\n\n/**\n * Determines whether the given type is the \"never\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNeverType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNeverType(\n\ttype: ts.Type,\n): type is IntrinsicNeverType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Never);\n}\n\n/**\n * A non-primitive intrinsic type.\n * E.g. An \"object\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNonPrimitiveType extends IntrinsicType {\n\tintrinsicName: \"\";\n}\n\n/**\n * Determines whether the given type is a non-primitive intrinsic type.\n * E.g. An \"object\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNonPrimitiveType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNonPrimitiveType(\n\ttype: ts.Type,\n): type is IntrinsicNonPrimitiveType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.NonPrimitive);\n}\n\n/**\n * A \"null\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNullType extends IntrinsicType {\n\tintrinsicName: \"null\";\n}\n\n/**\n * Determines whether the given type is the \"null\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNullType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNullType(type: ts.Type): type is IntrinsicNullType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Null);\n}\n\n/**\n * A \"number\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNumberType extends IntrinsicType {\n\tintrinsicName: \"number\";\n}\n\n/**\n * Determines whether the given type is the \"number\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNumberType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNumberType(\n\ttype: ts.Type,\n): type is IntrinsicNumberType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Number);\n}\n\n/**\n * A \"string\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicStringType extends IntrinsicType {\n\tintrinsicName: \"string\";\n}\n\n/**\n * Determines whether the given type is the \"string\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicStringType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicStringType(\n\ttype: ts.Type,\n): type is IntrinsicStringType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.String);\n}\n\n/**\n * An \"undefined\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicUndefinedType extends IntrinsicType {\n\tintrinsicName: \"undefined\";\n}\n\n/**\n * Determines whether the given type is the \"undefined\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicUndefinedType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicUndefinedType(\n\ttype: ts.Type,\n): type is IntrinsicUndefinedType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Undefined);\n}\n\n/**\n * An \"unknown\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicUnknownType extends IntrinsicType {\n\tintrinsicName: \"unknown\";\n}\n\n/**\n * Determines whether the given type is the \"unknown\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicUnknownType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicUnknownType(\n\ttype: ts.Type,\n): type is IntrinsicUnknownType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Unknown);\n}\n\n/**\n * A \"void\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicVoidType extends IntrinsicType {\n\tintrinsicName: \"void\";\n}\n\n/**\n * Determines whether the given type is the \"void\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicVoidType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicVoidType(type: ts.Type): type is IntrinsicVoidType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Void);\n}\n","import ts from \"typescript\";\n\nimport { isObjectFlagSet } from \"../../flags\";\nimport { isObjectType } from \"./single\";\n\n/**\n * Test if a type is a `EvolvingArrayType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isEvolvingArrayType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isEvolvingArrayType(\n\ttype: ts.Type,\n): type is ts.EvolvingArrayType {\n\treturn (\n\t\tisObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.EvolvingArray)\n\t);\n}\n\n/**\n * Test if a type is a `TupleType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTupleType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTupleType(type: ts.Type): type is ts.TupleType {\n\treturn isObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.Tuple);\n}\n\n/**\n * Test if a type is a `TypeReference`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeReference(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeReference(type: ts.Type): type is ts.TypeReference {\n\treturn isObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.Reference);\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\n\n/**\n * Test if a type is a `ConditionalType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isConditionalType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isConditionalType(type: ts.Type): type is ts.ConditionalType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Conditional);\n}\n\n/**\n * Test if a type is a `EnumType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isEnumType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isEnumType(type: ts.Type): type is ts.EnumType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Enum);\n}\n\n/**\n * Test if a type is a `FreshableType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFreshableType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFreshableType(type: ts.Type): type is ts.FreshableType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Freshable);\n}\n\n/**\n * Test if a type is a `IndexType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIndexType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIndexType(type: ts.Type): type is ts.IndexType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Index);\n}\n\n/**\n * Test if a type is a `IndexedAccessType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIndexedAccessType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIndexedAccessType(\n\ttype: ts.Type,\n): type is ts.IndexedAccessType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.IndexedAccess);\n}\n\n/**\n * Test if a type is a `InstantiableType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isInstantiableType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isInstantiableType(type: ts.Type): type is ts.InstantiableType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Instantiable);\n}\n\n/**\n * Test if a type is a `IntersectionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntersectionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntersectionType(type: ts.Type): type is ts.IntersectionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Intersection);\n}\n\n/**\n * Test if a type is a `ObjectType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isObjectType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isObjectType(type: ts.Type): type is ts.ObjectType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Object);\n}\n\n/**\n * Test if a type is a `StringMappingType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isStringMappingType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isStringMappingType(\n\ttype: ts.Type,\n): type is ts.StringMappingType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.StringMapping);\n}\n\n/**\n * Test if a type is a `SubstitutionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isSubstitutionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isSubstitutionType(type: ts.Type): type is ts.SubstitutionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Substitution);\n}\n\n/**\n * Test if a type is a `TypeParameter`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeParameter(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeParameter(type: ts.Type): type is ts.TypeParameter {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TypeParameter);\n}\n\n/**\n * Test if a type is a `TypeVariable`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeVariable(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeVariable(type: ts.Type): type is ts.TypeVariable {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TypeVariable);\n}\n\n/**\n * Test if a type is a `UnionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnionType(type: ts.Type): type is ts.UnionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Union);\n}\n\n/**\n * Test if a type is a `UnionOrIntersectionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnionOrIntersectionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnionOrIntersectionType(\n\ttype: ts.Type,\n): type is ts.UnionOrIntersectionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.UnionOrIntersection);\n}\n\n/**\n * Test if a type is a `UniqueESSymbolType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUniqueESSymbolType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUniqueESSymbolType(\n\ttype: ts.Type,\n): type is ts.UniqueESSymbolType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.UniqueESSymbol);\n}\n","import ts from \"typescript\";\n\nimport { type IntrinsicType, isIntrinsicType } from \"./intrinsic\";\nimport { isTupleType, isTypeReference } from \"./objects\";\nimport { isFreshableType } from \"./single\";\n\n/**\n * A type that is both an {@link IntrinsicType} and a `FreshableType`\n * @category Type Types\n */\nexport interface FreshableIntrinsicType\n\textends ts.FreshableType,\n\t\tIntrinsicType {}\n\n/**\n * Test if a type is a `FreshableIntrinsicType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFreshableIntrinsicType(type)) {\n * // ...\n * }\n */\nexport function isFreshableIntrinsicType(\n\ttype: ts.Type,\n): type is FreshableIntrinsicType {\n\treturn isIntrinsicType(type) && isFreshableType(type);\n}\n\n/**\n * Test if a type is a `TupleTypeReference`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTupleTypeReference(type)) {\n * // ...\n * }\n */\nexport function isTupleTypeReference(\n\ttype: ts.Type,\n): type is ts.TupleTypeReference {\n\treturn isTypeReference(type) && isTupleType(type.target);\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\nimport { type FreshableIntrinsicType } from \"./compound\";\n\n/**\n * A boolean literal.\n * i.e. Either a \"true\" or \"false\" literal.\n * @category Type Types\n */\nexport interface BooleanLiteralType extends UnknownLiteralType {\n\tintrinsicName: \"false\" | \"true\";\n\tvalue: boolean;\n}\n\n/**\n * Determines whether the given type is a boolean literal type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isBooleanLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isBooleanLiteralType(\n\ttype: ts.Type,\n): type is BooleanLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BooleanLiteral);\n}\n\n/**\n * Test if a type is a `BigIntLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isBigIntLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isBigIntLiteralType(\n\ttype: ts.Type,\n): type is ts.BigIntLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BigIntLiteral);\n}\n\n/**\n * A \"false\" literal.\n * @category Type Types\n */\nexport interface FalseLiteralType extends BooleanLiteralType {\n\tintrinsicName: \"false\";\n\tvalue: false;\n}\n\n/**\n * Determines whether the given type is a boolean literal type for \"false\".\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFalseLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFalseLiteralType(type: ts.Type): type is FalseLiteralType {\n\treturn isBooleanLiteralType(type) && type.intrinsicName === \"false\";\n}\n\n/**\n * Test if a type is a `LiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isLiteralType(type: ts.Type): type is ts.LiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Literal);\n}\n\n/**\n * Test if a type is a `NumberLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isNumberLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isNumberLiteralType(\n\ttype: ts.Type,\n): type is ts.NumberLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.NumberLiteral);\n}\n\n/**\n * Test if a type is a `StringLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isStringLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isStringLiteralType(\n\ttype: ts.Type,\n): type is ts.StringLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.StringLiteral);\n}\n\n/**\n * Test if a type is a `TemplateLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTemplateLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTemplateLiteralType(\n\ttype: ts.Type,\n): type is ts.TemplateLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TemplateLiteral);\n}\n\n/**\n * A \"true\" literal.\n * @category Type Types\n */\nexport interface TrueLiteralType extends BooleanLiteralType {\n\tintrinsicName: \"true\";\n\tvalue: true;\n}\n\n/**\n * Determines whether the given type is a boolean literal type for \"true\".\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTrueLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTrueLiteralType(type: ts.Type): type is TrueLiteralType {\n\treturn isBooleanLiteralType(type) && type.intrinsicName === \"true\";\n}\n\n/**\n * `LiteralType` from typescript except that it allows for it to work on arbitrary types.\n * @category Type Types\n */\nexport interface UnknownLiteralType extends FreshableIntrinsicType {\n\tvalue: unknown;\n}\n\n/**\n * Test if a type is a {@link UnknownLiteralType}.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnknownLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnknownLiteralType(\n\ttype: ts.Type,\n): type is UnknownLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Literal);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport {\n\tisModifierFlagSet,\n\tisNodeFlagSet,\n\tisObjectFlagSet,\n\tisSymbolFlagSet,\n\tisTypeFlagSet,\n} from \"../flags\";\nimport {\n\tisBindableObjectDefinePropertyCall,\n\tisInConstContext,\n} from \"../nodes/utilities\";\nimport { isNumericPropertyName } from \"../syntax\";\nimport { getPropertyOfType } from \"./getters\";\nimport {\n\tisFalseLiteralType,\n\tisIntersectionType,\n\tisObjectType,\n\tisTupleTypeReference,\n\tisUnionType,\n} from \"./typeGuards\";\n\n/**\n * Determines whether a type is definitely falsy. This function doesn't unwrap union types.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFalsyType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFalsyType(type: ts.Type): boolean {\n\tif (\n\t\tisTypeFlagSet(\n\t\t\ttype,\n\t\t\tts.TypeFlags.Undefined | ts.TypeFlags.Null | ts.TypeFlags.Void,\n\t\t)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (type.isLiteral()) {\n\t\treturn !type.value;\n\t}\n\n\treturn isFalseLiteralType(type);\n}\n\n/**\n * Get the intersection type parts of the given type.\n *\n * If the given type is not a intersection type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of intersectionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function intersectionTypeParts(type: ts.Type): ts.Type[] {\n\treturn isIntersectionType(type) ? type.types : [type];\n}\n\n/**\n * Get the intersection or union type parts of the given type.\n *\n * Note that this is a shallow collection: it only returns `type.types` or `[type]`.\n *\n * If the given type is not an intersection or union type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of intersectionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function typeParts(type: ts.Type): ts.Type[] {\n\treturn isIntersectionType(type) || isUnionType(type) ? type.types : [type];\n}\n\nfunction isReadonlyPropertyIntersection(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n) {\n\tconst typeParts = isIntersectionType(type) ? type.types : [type];\n\treturn typeParts.some((subType): boolean => {\n\t\tconst prop = getPropertyOfType(subType, name);\n\t\tif (prop === undefined) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (prop.flags & ts.SymbolFlags.Transient) {\n\t\t\tif (\n\t\t\t\t/^(?:[1-9]\\d*|0)$/.test(name as string) &&\n\t\t\t\tisTupleTypeReference(subType)\n\t\t\t) {\n\t\t\t\treturn subType.target.readonly;\n\t\t\t}\n\n\t\t\tswitch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {\n\t\t\t\tcase true:\n\t\t\t\t\treturn true;\n\t\t\t\tcase false:\n\t\t\t\t\treturn false;\n\t\t\t\tdefault:\n\t\t\t\t// `undefined` falls through\n\t\t\t}\n\t\t}\n\n\t\treturn !!(\n\t\t\t// members of namespace import\n\t\t\t(\n\t\t\t\tisSymbolFlagSet(prop, ts.SymbolFlags.ValueModule) ||\n\t\t\t\t// we unwrapped every mapped type, now we can check the actual declarations\n\t\t\t\tsymbolHasReadonlyDeclaration(prop, typeChecker)\n\t\t\t)\n\t\t);\n\t});\n}\n\nfunction isReadonlyPropertyFromMappedType(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n): boolean | undefined {\n\tif (!isObjectType(type) || !isObjectFlagSet(type, ts.ObjectFlags.Mapped)) {\n\t\treturn;\n\t}\n\n\tconst declaration = type.symbol.declarations![0] as ts.MappedTypeNode;\n\t// well-known symbols are not affected by mapped types\n\tif (\n\t\tdeclaration.readonlyToken !== undefined &&\n\t\t!/^__@[^@]+$/.test(name as string)\n\t) {\n\t\treturn declaration.readonlyToken.kind !== ts.SyntaxKind.MinusToken;\n\t}\n\n\tconst { modifiersType } = type as { modifiersType?: ts.Type };\n\n\treturn (\n\t\tmodifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker)\n\t);\n}\n\nfunction isCallback(\n\ttypeChecker: ts.TypeChecker,\n\tparam: ts.Symbol,\n\tnode: ts.Node,\n): boolean {\n\tlet type: ts.Type | undefined = typeChecker.getApparentType(\n\t\ttypeChecker.getTypeOfSymbolAtLocation(param, node),\n\t);\n\tif ((param.valueDeclaration as ts.ParameterDeclaration).dotDotDotToken) {\n\t\t// unwrap array type of rest parameter\n\t\ttype = type.getNumberIndexType();\n\t\tif (type === undefined) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tfor (const subType of unionTypeParts(type)) {\n\t\tif (subType.getCallSignatures().length !== 0) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Determines whether writing to a certain property of a given type is allowed.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const property: ts.Symbol;\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isPropertyReadonlyInType(type, property.getEscapedName(), typeChecker)) {\n * // ...\n * }\n * ```\n */\nexport function isPropertyReadonlyInType(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n): boolean {\n\tlet seenProperty = false;\n\tlet seenReadonlySignature = false;\n\tfor (const subType of unionTypeParts(type)) {\n\t\tif (getPropertyOfType(subType, name) === undefined) {\n\t\t\t// property is not present in this part of the union -> check for readonly index signature\n\t\t\tconst index =\n\t\t\t\t(isNumericPropertyName(name)\n\t\t\t\t\t? typeChecker.getIndexInfoOfType(subType, ts.IndexKind.Number)\n\t\t\t\t\t: undefined) ??\n\t\t\t\ttypeChecker.getIndexInfoOfType(subType, ts.IndexKind.String);\n\t\t\tif (index?.isReadonly) {\n\t\t\t\tif (seenProperty) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tseenReadonlySignature = true;\n\t\t\t}\n\t\t} else if (\n\t\t\tseenReadonlySignature ||\n\t\t\tisReadonlyPropertyIntersection(subType, name, typeChecker)\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tseenProperty = true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Returns true for `Object.defineProperty(o, 'prop', {value, writable: false})` and `Object.defineProperty(o, 'prop', {get: () => 1})`\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const node: ts.CallExpression;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isReadonlyAssignmentDeclaration(node, typeChecker)) {\n * // ...\n * }\n * ```\n */\nfunction isReadonlyAssignmentDeclaration(\n\tnode: ts.CallExpression,\n\ttypeChecker: ts.TypeChecker,\n) {\n\tif (!isBindableObjectDefinePropertyCall(node)) {\n\t\treturn false;\n\t}\n\n\tconst descriptorType = typeChecker.getTypeAtLocation(node.arguments[2]);\n\tif (descriptorType.getProperty(\"value\") === undefined) {\n\t\treturn descriptorType.getProperty(\"set\") === undefined;\n\t}\n\n\tconst writableProp = descriptorType.getProperty(\"writable\");\n\tif (writableProp === undefined) {\n\t\treturn false;\n\t}\n\n\tconst writableType =\n\t\twritableProp.valueDeclaration !== undefined &&\n\t\tts.isPropertyAssignment(writableProp.valueDeclaration)\n\t\t\t? typeChecker.getTypeAtLocation(writableProp.valueDeclaration.initializer)\n\t\t\t: typeChecker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]);\n\treturn isFalseLiteralType(writableType);\n}\n\n/**\n * Determines whether a type is thenable and thus can be used with `await`.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isThenableType(typeChecker, node, type)) {\n * // ...\n * }\n * ```\n */\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Node,\n\ttype: ts.Type,\n): boolean;\n\n/**\n * Determines whether a type is thenable and thus can be used with `await`.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const expression: ts.Expression;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isThenableType(typeChecker, expression)) {\n * // ...\n * }\n * ```\n * @example\n * ```ts\n * declare const expression: ts.Expression;\n * declare const typeChecker: ts.TypeChecker;\n * declare const type: ts.Type;\n *\n * if (isThenableType(typeChecker, expression, type)) {\n * // ...\n * }\n * ```\n */\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Expression,\n\ttype?: ts.Type,\n): boolean;\n\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Node,\n\ttype = typeChecker.getTypeAtLocation(node)!,\n): boolean {\n\tfor (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {\n\t\tconst then = typePart.getProperty(\"then\");\n\t\tif (then === undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);\n\t\tfor (const subTypePart of unionTypeParts(thenType)) {\n\t\t\tfor (const signature of subTypePart.getCallSignatures()) {\n\t\t\t\tif (\n\t\t\t\t\tsignature.parameters.length !== 0 &&\n\t\t\t\t\tisCallback(typeChecker, signature.parameters[0], node)\n\t\t\t\t) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if the given symbol has a readonly declaration.\n * @category Symbols - Utilities\n * @example\n * ```ts\n * declare const symbol: ts.Symbol;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (symbolHasReadonlyDeclaration(symbol, typeChecker)) {\n * // ...\n * }\n * ```\n */\nexport function symbolHasReadonlyDeclaration(\n\tsymbol: ts.Symbol,\n\ttypeChecker: ts.TypeChecker,\n): boolean {\n\treturn !!(\n\t\t(symbol.flags & ts.SymbolFlags.Accessor) === ts.SymbolFlags.GetAccessor ||\n\t\tsymbol.declarations?.some(\n\t\t\t(node) =>\n\t\t\t\tisModifierFlagSet(node, ts.ModifierFlags.Readonly) ||\n\t\t\t\t(ts.isVariableDeclaration(node) &&\n\t\t\t\t\tisNodeFlagSet(node.parent, ts.NodeFlags.Const)) ||\n\t\t\t\t(ts.isCallExpression(node) &&\n\t\t\t\t\tisReadonlyAssignmentDeclaration(node, typeChecker)) ||\n\t\t\t\tts.isEnumMember(node) ||\n\t\t\t\t((ts.isPropertyAssignment(node) ||\n\t\t\t\t\tts.isShorthandPropertyAssignment(node)) &&\n\t\t\t\t\tisInConstContext(node.parent)),\n\t\t)\n\t);\n}\n\n/**\n * Get the union type parts of the given type.\n *\n * If the given type is not a union type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of unionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function unionTypeParts(type: ts.Type): ts.Type[] {\n\treturn isUnionType(type) ? type.types : [type];\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport {\n\tisConstAssertionExpression,\n\tisEntityNameExpression,\n\tisNumericOrStringLikeLiteral,\n} from \"./typeGuards\";\n\n/**\n * Determines whether a call to {@link Object.defineProperty} is statically analyzable.\n * @internal\n */\nexport function isBindableObjectDefinePropertyCall(\n\tnode: ts.CallExpression,\n): boolean {\n\treturn (\n\t\tnode.arguments.length === 3 &&\n\t\tisEntityNameExpression(node.arguments[0]) &&\n\t\tisNumericOrStringLikeLiteral(node.arguments[1]) &&\n\t\tts.isPropertyAccessExpression(node.expression) &&\n\t\tnode.expression.name.escapedText === \"defineProperty\" &&\n\t\tts.isIdentifier(node.expression.expression) &&\n\t\tnode.expression.expression.escapedText === \"Object\"\n\t);\n}\n\n/**\n * Detects whether an expression is affected by an enclosing `as const` assertion and therefore treated literally.\n * @internal\n */\nexport function isInConstContext(node: ts.Expression): boolean {\n\tlet current: ts.Node = node;\n\twhile (true) {\n\t\tconst parent = current.parent;\n\t\touter: switch (parent.kind) {\n\t\t\tcase ts.SyntaxKind.TypeAssertionExpression:\n\t\t\tcase ts.SyntaxKind.AsExpression:\n\t\t\t\treturn isConstAssertionExpression(parent as ts.AssertionExpression);\n\t\t\tcase ts.SyntaxKind.PrefixUnaryExpression:\n\t\t\t\tif (current.kind !== ts.SyntaxKind.NumericLiteral) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tswitch ((parent as ts.PrefixUnaryExpression).operator) {\n\t\t\t\t\tcase ts.SyntaxKind.PlusToken:\n\t\t\t\t\tcase ts.SyntaxKind.MinusToken:\n\t\t\t\t\t\tcurrent = parent;\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\t\tif ((parent as ts.PropertyAssignment).initializer !== current) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tcurrent = parent.parent!;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\t\tcurrent = parent.parent!;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.ParenthesizedExpression:\n\t\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\t\tcase ts.SyntaxKind.ObjectLiteralExpression:\n\t\t\tcase ts.SyntaxKind.TemplateExpression:\n\t\t\t\tcurrent = parent;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { includesModifier } from \"../modifiers\";\nimport {\n\tScope,\n\tScopeBoundary,\n\tScopeBoundarySelector,\n\tisBlockScopeBoundary,\n} from \"./Scope\";\nimport { DeclarationDomain } from \"./declarations\";\nimport { getPropertyName } from \"./getPropertyName\";\nimport { getUsageDomain } from \"./getUsageDomain\";\nimport {\n\tBlockScope,\n\tClassExpressionScope,\n\tConditionalTypeScope,\n\tConditionalTypeScopeState,\n\tFunctionExpressionScope,\n\tFunctionScope,\n\tNonRootScope,\n\tRootScope,\n} from \"./scopes\";\nimport { UsageInfo, UsageInfoCallback } from \"./usage\";\nimport {\n\tcanHaveDecorators,\n\tgetDecorators,\n\tidentifierToKeywordKind,\n} from \"./utils\";\n\n// TODO class decorators resolve outside of class, element and parameter decorator resolve inside/at the class\n// TODO computed property name resolves inside/at the class\n// TODO this and super in all of them are resolved outside of the class\nexport class UsageWalker {\n\t#result = new Map();\n\t#scope!: Scope;\n\n\t#handleBindingName(\n\t\tname: ts.BindingName,\n\t\tblockScoped: boolean,\n\t\texported: boolean,\n\t) {\n\t\tif (name.kind === ts.SyntaxKind.Identifier) {\n\t\t\treturn this.#scope.addVariable(\n\t\t\t\tname.text,\n\t\t\t\tname,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Value,\n\t\t\t);\n\t\t}\n\n\t\tforEachDestructuringIdentifier(name, (declaration) => {\n\t\t\tthis.#scope.addVariable(\n\t\t\t\tdeclaration.name.text,\n\t\t\t\tdeclaration.name,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Value,\n\t\t\t);\n\t\t});\n\t}\n\n\t#handleConditionalType(\n\t\tnode: ts.ConditionalTypeNode,\n\t\tcb: (node: ts.Node) => void,\n\t\tvarCb: UsageInfoCallback,\n\t) {\n\t\tconst savedScope = this.#scope;\n\t\tconst scope = (this.#scope = new ConditionalTypeScope(savedScope));\n\t\tcb(node.checkType);\n\t\tscope.updateState(ConditionalTypeScopeState.Extends);\n\t\tcb(node.extendsType);\n\t\tscope.updateState(ConditionalTypeScopeState.TrueType);\n\t\tcb(node.trueType);\n\t\tscope.updateState(ConditionalTypeScopeState.FalseType);\n\t\tcb(node.falseType);\n\t\tscope.end(varCb);\n\t\tthis.#scope = savedScope;\n\t}\n\n\t#handleDeclaration(\n\t\tnode: ts.NamedDeclaration,\n\t\tblockScoped: boolean,\n\t\tdomain: DeclarationDomain,\n\t) {\n\t\tif (node.name !== undefined) {\n\t\t\tthis.#scope.addVariable(\n\t\t\t\t(node.name as ts.Identifier).text,\n\t\t\t\tnode.name as ts.Identifier,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\tincludesModifier(\n\t\t\t\t\t(node as ts.HasModifiers).modifiers,\n\t\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t\t),\n\t\t\t\tdomain,\n\t\t\t);\n\t\t}\n\t}\n\n\t#handleFunctionLikeDeclaration(\n\t\tnode: ts.FunctionLikeDeclaration,\n\t\tcb: (node: ts.Node) => void,\n\t\tvarCb: UsageInfoCallback,\n\t) {\n\t\tif (canHaveDecorators(node)) {\n\t\t\tgetDecorators(node)?.forEach(cb);\n\t\t}\n\n\t\tconst savedScope = this.#scope;\n\t\tif (node.kind === ts.SyntaxKind.FunctionDeclaration) {\n\t\t\tthis.#handleDeclaration(node, false, DeclarationDomain.Value);\n\t\t}\n\n\t\tconst scope = (this.#scope =\n\t\t\tnode.kind === ts.SyntaxKind.FunctionExpression && node.name !== undefined\n\t\t\t\t? new FunctionExpressionScope(node.name, savedScope)\n\t\t\t\t: new FunctionScope(savedScope));\n\t\tif (node.name !== undefined) {\n\t\t\tcb(node.name);\n\t\t}\n\n\t\tif (node.typeParameters !== undefined) {\n\t\t\tnode.typeParameters.forEach(cb);\n\t\t}\n\n\t\tnode.parameters.forEach(cb);\n\t\tif (node.type !== undefined) {\n\t\t\tcb(node.type);\n\t\t}\n\n\t\tif (node.body !== undefined) {\n\t\t\tscope.beginBody();\n\t\t\tcb(node.body);\n\t\t}\n\n\t\tscope.end(varCb);\n\t\tthis.#scope = savedScope;\n\t}\n\n\t#handleModule(\n\t\tnode: ts.ModuleDeclaration,\n\t\tnext: (node: ts.Node, scope: Scope) => void,\n\t) {\n\t\tif (node.flags & ts.NodeFlags.GlobalAugmentation) {\n\t\t\treturn next(\n\t\t\t\tnode,\n\t\t\t\tthis.#scope.createOrReuseNamespaceScope(\"-global\", false, true, false),\n\t\t\t);\n\t\t}\n\n\t\tif (node.name.kind === ts.SyntaxKind.Identifier) {\n\t\t\tconst exported = isNamespaceExported(node as ts.NamespaceDeclaration);\n\t\t\tthis.#scope.addVariable(\n\t\t\t\tnode.name.text,\n\t\t\t\tnode.name,\n\t\t\t\tScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Namespace | DeclarationDomain.Value,\n\t\t\t);\n\t\t\tconst ambient = includesModifier(\n\t\t\t\tnode.modifiers,\n\t\t\t\tts.SyntaxKind.DeclareKeyword,\n\t\t\t);\n\t\t\treturn next(\n\t\t\t\tnode,\n\t\t\t\tthis.#scope.createOrReuseNamespaceScope(\n\t\t\t\t\tnode.name.text,\n\t\t\t\t\texported,\n\t\t\t\t\tambient,\n\t\t\t\t\tambient && namespaceHasExportStatement(node),\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn next(\n\t\t\tnode,\n\t\t\tthis.#scope.createOrReuseNamespaceScope(\n\t\t\t\t`\"${node.name.text}\"`,\n\t\t\t\tfalse,\n\t\t\t\ttrue,\n\t\t\t\tnamespaceHasExportStatement(node),\n\t\t\t),\n\t\t);\n\t}\n\n\t#handleVariableDeclaration(declarationList: ts.VariableDeclarationList) {\n\t\tconst blockScoped = isBlockScopedVariableDeclarationList(declarationList);\n\t\tconst exported =\n\t\t\tdeclarationList.parent.kind === ts.SyntaxKind.VariableStatement &&\n\t\t\tincludesModifier(\n\t\t\t\tdeclarationList.parent.modifiers,\n\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t);\n\t\tfor (const declaration of declarationList.declarations) {\n\t\t\tthis.#handleBindingName(declaration.name, blockScoped, exported);\n\t\t}\n\t}\n\n\tgetUsage(sourceFile: ts.SourceFile): Map {\n\t\tconst variableCallback = (variable: UsageInfo, key: ts.Identifier) => {\n\t\t\tthis.#result.set(key, variable);\n\t\t};\n\n\t\tconst isModule = ts.isExternalModule(sourceFile);\n\t\tthis.#scope = new RootScope(\n\t\t\tsourceFile.isDeclarationFile &&\n\t\t\t\tisModule &&\n\t\t\t\t!containsExportStatement(sourceFile),\n\t\t\t!isModule,\n\t\t);\n\t\tconst cb = (node: ts.Node): void => {\n\t\t\tif (isBlockScopeBoundary(node)) {\n\t\t\t\treturn continueWithScope(\n\t\t\t\t\tnode,\n\t\t\t\t\tnew BlockScope(this.#scope.getFunctionScope(), this.#scope),\n\t\t\t\t\thandleBlockScope,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tswitch (node.kind) {\n\t\t\t\tcase ts.SyntaxKind.ClassExpression:\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\t(node as ts.ClassExpression).name !== undefined\n\t\t\t\t\t\t\t? new ClassExpressionScope(\n\t\t\t\t\t\t\t\t\t(node as ts.ClassExpression).name!,\n\t\t\t\t\t\t\t\t\tthis.#scope,\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: new NonRootScope(this.#scope, ScopeBoundary.Function),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.ClassDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Value | DeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Function),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\t\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.InterfaceDeclaration | ts.TypeAliasDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Type),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.EnumDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Any,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tthis.#scope.createOrReuseEnumScope(\n\t\t\t\t\t\t\t(node as ts.EnumDeclaration).name.text,\n\t\t\t\t\t\t\tincludesModifier(\n\t\t\t\t\t\t\t\t(node as ts.HasModifiers).modifiers,\n\t\t\t\t\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\t\t\t\treturn this.#handleModule(\n\t\t\t\t\t\tnode as ts.ModuleDeclaration,\n\t\t\t\t\t\tcontinueWithScope,\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.MappedType:\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Type),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\t\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\t\t\tcase ts.SyntaxKind.Constructor:\n\t\t\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\t\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\t\t\tcase ts.SyntaxKind.GetAccessor:\n\t\t\t\tcase ts.SyntaxKind.SetAccessor:\n\t\t\t\tcase ts.SyntaxKind.MethodSignature:\n\t\t\t\tcase ts.SyntaxKind.CallSignature:\n\t\t\t\tcase ts.SyntaxKind.ConstructSignature:\n\t\t\t\tcase ts.SyntaxKind.ConstructorType:\n\t\t\t\tcase ts.SyntaxKind.FunctionType:\n\t\t\t\t\treturn this.#handleFunctionLikeDeclaration(\n\t\t\t\t\t\tnode as ts.FunctionLikeDeclaration,\n\t\t\t\t\t\tcb,\n\t\t\t\t\t\tvariableCallback,\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ConditionalType:\n\t\t\t\t\treturn this.#handleConditionalType(\n\t\t\t\t\t\tnode as ts.ConditionalTypeNode,\n\t\t\t\t\t\tcb,\n\t\t\t\t\t\tvariableCallback,\n\t\t\t\t\t);\n\t\t\t\t// End of Scope specific handling\n\t\t\t\tcase ts.SyntaxKind.VariableDeclarationList:\n\t\t\t\t\tthis.#handleVariableDeclaration(node as ts.VariableDeclarationList);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.Parameter:\n\t\t\t\t\tif (\n\t\t\t\t\t\tnode.parent.kind !== ts.SyntaxKind.IndexSignature &&\n\t\t\t\t\t\t((node as ts.ParameterDeclaration).name.kind !==\n\t\t\t\t\t\t\tts.SyntaxKind.Identifier ||\n\t\t\t\t\t\t\tidentifierToKeywordKind(\n\t\t\t\t\t\t\t\t(node as ts.NamedDeclaration).name as ts.Identifier,\n\t\t\t\t\t\t\t) !== ts.SyntaxKind.ThisKeyword)\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.#handleBindingName(\n\t\t\t\t\t\t\t(node as ts.NamedDeclaration).name as ts.Identifier,\n\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.EnumMember:\n\t\t\t\t\tthis.#scope.addVariable(\n\t\t\t\t\t\tgetPropertyName((node as ts.EnumMember).name)!,\n\t\t\t\t\t\t(node as ts.EnumMember).name,\n\t\t\t\t\t\tScopeBoundarySelector.Function,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Value,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.ImportClause:\n\t\t\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\t\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\t\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.NamedDeclaration,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tDeclarationDomain.Any | DeclarationDomain.Import,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.TypeParameter:\n\t\t\t\t\tthis.#scope.addVariable(\n\t\t\t\t\t\t(node as ts.TypeParameterDeclaration).name.text,\n\t\t\t\t\t\t(node as ts.TypeParameterDeclaration).name,\n\t\t\t\t\t\tnode.parent.kind === ts.SyntaxKind.InferType\n\t\t\t\t\t\t\t? ScopeBoundarySelector.InferType\n\t\t\t\t\t\t\t: ScopeBoundarySelector.Type,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tDeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.ExportSpecifier:\n\t\t\t\t\tif ((node as ts.ExportSpecifier).propertyName !== undefined) {\n\t\t\t\t\t\treturn this.#scope.markExported(\n\t\t\t\t\t\t\t(node as ts.ExportSpecifier).propertyName!,\n\t\t\t\t\t\t\t(node as ts.ExportSpecifier).name,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this.#scope.markExported((node as ts.ExportSpecifier).name);\n\t\t\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\t\t\tif (\n\t\t\t\t\t\t(node as ts.ExportAssignment).expression.kind ===\n\t\t\t\t\t\tts.SyntaxKind.Identifier\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn this.#scope.markExported(\n\t\t\t\t\t\t\t(node as ts.ExportAssignment).expression as ts.Identifier,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.Identifier: {\n\t\t\t\t\tconst domain = getUsageDomain(node as ts.Identifier);\n\t\t\t\t\tif (domain !== undefined) {\n\t\t\t\t\t\tthis.#scope.addUse({ domain, location: node as ts.Identifier });\n\t\t\t\t\t}\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t};\n\n\t\tconst continueWithScope = (\n\t\t\tnode: T,\n\t\t\tscope: Scope,\n\t\t\tnext: (node: T) => void = forEachChild,\n\t\t) => {\n\t\t\tconst savedScope = this.#scope;\n\t\t\tthis.#scope = scope;\n\t\t\tnext(node);\n\t\t\tthis.#scope.end(variableCallback);\n\t\t\tthis.#scope = savedScope;\n\t\t};\n\n\t\tconst handleBlockScope = (node: ts.Node) => {\n\t\t\tif (\n\t\t\t\tnode.kind === ts.SyntaxKind.CatchClause &&\n\t\t\t\t(node as ts.CatchClause).variableDeclaration !== undefined\n\t\t\t) {\n\t\t\t\tthis.#handleBindingName(\n\t\t\t\t\t(node as ts.CatchClause).variableDeclaration!.name,\n\t\t\t\t\ttrue,\n\t\t\t\t\tfalse,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t};\n\n\t\tts.forEachChild(sourceFile, cb);\n\t\tthis.#scope.end(variableCallback);\n\t\treturn this.#result;\n\n\t\tfunction forEachChild(node: ts.Node) {\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t}\n\t}\n}\n\nfunction isNamespaceExported(node: ts.NamespaceDeclaration) {\n\treturn (\n\t\tnode.parent.kind === ts.SyntaxKind.ModuleDeclaration ||\n\t\tincludesModifier(node.modifiers, ts.SyntaxKind.ExportKeyword)\n\t);\n}\n\nfunction namespaceHasExportStatement(ns: ts.ModuleDeclaration): boolean {\n\tif (ns.body === undefined || ns.body.kind !== ts.SyntaxKind.ModuleBlock) {\n\t\treturn false;\n\t}\n\n\treturn containsExportStatement(ns.body);\n}\n\nfunction containsExportStatement(block: ts.BlockLike): boolean {\n\tfor (const statement of block.statements) {\n\t\tif (\n\t\t\tstatement.kind === ts.SyntaxKind.ExportDeclaration ||\n\t\t\tstatement.kind === ts.SyntaxKind.ExportAssignment\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\nfunction isBlockScopedVariableDeclarationList(\n\tdeclarationList: ts.VariableDeclarationList,\n): boolean {\n\treturn (declarationList.flags & ts.NodeFlags.BlockScoped) !== 0;\n}\n\nfunction forEachDestructuringIdentifier(\n\tpattern: ts.BindingPattern,\n\tfn: (element: ts.BindingElement & { name: ts.Identifier }) => T,\n): T | undefined {\n\tfor (const element of pattern.elements) {\n\t\tif (element.kind !== ts.SyntaxKind.BindingElement) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet result: T | undefined;\n\t\tif (element.name.kind === ts.SyntaxKind.Identifier) {\n\t\t\tresult = fn(element as ts.BindingElement & { name: ts.Identifier });\n\t\t} else {\n\t\t\tresult = forEachDestructuringIdentifier(element.name, fn);\n\t\t}\n\n\t\tif (result) {\n\t\t\treturn result;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport type { EnumScope, NamespaceScope } from \"./scopes\";\n\nimport { isFunctionScopeBoundary } from \"../scopes\";\nimport { DeclarationDomain } from \"./declarations\";\nimport { InternalUsageInfo, Usage, UsageInfoCallback } from \"./usage\";\n\nexport enum ScopeBoundary {\n\tBlock = 2,\n\tConditionalType = 8,\n\tFunction = 1,\n\tNone = 0,\n\tType = 4,\n}\n\nexport enum ScopeBoundarySelector {\n\tFunction = ScopeBoundary.Function,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tBlock = ScopeBoundarySelector.Function | ScopeBoundary.Block,\n\tInferType = ScopeBoundary.ConditionalType,\n\tType = ScopeBoundarySelector.Block | ScopeBoundary.Type,\n}\n\nexport interface Scope {\n\taddUse(use: Usage, scope?: Scope): void;\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void;\n\tcreateOrReuseEnumScope(name: string, exported: boolean): EnumScope;\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\texported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope;\n\tend(cb: UsageInfoCallback): void;\n\tgetDestinationScope(selector: ScopeBoundarySelector): Scope;\n\tgetFunctionScope(): Scope;\n\tgetVariables(): Map;\n\tmarkExported(name: ts.Identifier, as?: ts.Identifier): void;\n}\n\nexport function isBlockScopeBoundary(node: ts.Node): ScopeBoundary {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.Block: {\n\t\t\tconst parent = node.parent;\n\t\t\treturn parent.kind !== ts.SyntaxKind.CatchClause &&\n\t\t\t\t// blocks inside SourceFile are block scope boundaries\n\t\t\t\t(parent.kind === ts.SyntaxKind.SourceFile ||\n\t\t\t\t\t// blocks that are direct children of a function scope boundary are no scope boundary\n\t\t\t\t\t// for example the FunctionBlock is part of the function scope of the containing function\n\t\t\t\t\t!isFunctionScopeBoundary(parent))\n\t\t\t\t? ScopeBoundary.Block\n\t\t\t\t: ScopeBoundary.None;\n\t\t}\n\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.CaseBlock:\n\t\tcase ts.SyntaxKind.CatchClause:\n\t\tcase ts.SyntaxKind.WithStatement:\n\t\t\treturn ScopeBoundary.Block;\n\t\tdefault:\n\t\t\treturn ScopeBoundary.None;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { identifierToKeywordKind } from \"./utils\";\n\n/**\n * Metadata for how a declaration was declared and/or referenced.\n */\nexport interface DeclarationInfo {\n\tdeclaration: ts.PropertyName;\n\tdomain: DeclarationDomain;\n\texported: boolean;\n}\n\n/**\n * Which \"domain\"(s) (most commonly, type or value space) a declaration is within.\n */\nexport enum DeclarationDomain {\n\tImport = 8,\n\tNamespace = 1,\n\tType = 2,\n\tValue = 4,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tAny = Namespace | Type | Value,\n}\n\nexport function getDeclarationDomain(\n\tnode: ts.Identifier,\n): DeclarationDomain | undefined {\n\tswitch (node.parent.kind) {\n\t\tcase ts.SyntaxKind.TypeParameter:\n\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\t\treturn DeclarationDomain.Type;\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\t\treturn DeclarationDomain.Type | DeclarationDomain.Value;\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\t\treturn DeclarationDomain.Any;\n\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\tcase ts.SyntaxKind.ImportClause:\n\t\t\treturn DeclarationDomain.Any | DeclarationDomain.Import; // TODO handle type-only imports\n\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\t\treturn (node.parent as ts.ImportEqualsDeclaration | ts.ImportSpecifier)\n\t\t\t\t.name === node\n\t\t\t\t? DeclarationDomain.Any | DeclarationDomain.Import // TODO handle type-only imports\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\t\treturn DeclarationDomain.Namespace;\n\t\tcase ts.SyntaxKind.Parameter:\n\t\t\tif (\n\t\t\t\tnode.parent.parent.kind === ts.SyntaxKind.IndexSignature ||\n\t\t\t\tidentifierToKeywordKind(node) === ts.SyntaxKind.ThisKeyword\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t// falls through\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\t\treturn (node.parent as ts.VariableLikeDeclaration).name === node\n\t\t\t\t? DeclarationDomain.Value\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\t\treturn DeclarationDomain.Value;\n\t}\n}\n","import ts from \"typescript\";\n\n/**\n * Supports TypeScript<5 versions that don't have identifierToKeywordKind.\n */\nexport function identifierToKeywordKind(\n\tnode: ts.Identifier,\n): ts.SyntaxKind | undefined {\n\treturn \"identifierToKeywordKind\" in ts\n\t\t? ts.identifierToKeywordKind(node)\n\t\t: // eslint-disable-next-line deprecation/deprecation\n\t\t\tnode.originalKeywordKind;\n}\n\n/**\n * Supports TypeScript<4.8 versions that don't have canHaveDecorators.\n */\nexport function canHaveDecorators(node: ts.Node): node is ts.HasDecorators {\n\treturn \"canHaveDecorators\" in ts\n\t\t? ts.canHaveDecorators(node)\n\t\t: \"decorators\" in node;\n}\n\ntype NodeWithDecorators = ts.HasDecorators & {\n\tdecorators: readonly ts.Decorator[] | undefined;\n};\n\n/**\n * Supports TypeScript<4.8 versions that don't have getDecorators.\n */\nexport function getDecorators(\n\tnode: ts.HasDecorators,\n): readonly ts.Decorator[] | undefined {\n\treturn \"getDecorators\" in ts\n\t\t? ts.getDecorators(node)\n\t\t: (node as NodeWithDecorators).decorators;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isNumericOrStringLikeLiteral } from \"../nodes/typeGuards/compound\";\n\nfunction unwrapParentheses(node: ts.Expression) {\n\twhile (node.kind === ts.SyntaxKind.ParenthesizedExpression) {\n\t\tnode = (node as ts.ParenthesizedExpression).expression;\n\t}\n\n\treturn node;\n}\n\nexport function getPropertyName(\n\tpropertyName: ts.PropertyName,\n): string | undefined {\n\tif (propertyName.kind === ts.SyntaxKind.ComputedPropertyName) {\n\t\tconst expression = unwrapParentheses(propertyName.expression);\n\t\tif (ts.isPrefixUnaryExpression(expression)) {\n\t\t\tlet negate = false;\n\t\t\tswitch (expression.operator) {\n\t\t\t\tcase ts.SyntaxKind.MinusToken:\n\t\t\t\t\tnegate = true;\n\t\t\t\t// falls through\n\t\t\t\tcase ts.SyntaxKind.PlusToken:\n\t\t\t\t\treturn ts.isNumericLiteral(expression.operand)\n\t\t\t\t\t\t? `${negate ? \"-\" : \"\"}${expression.operand.text}`\n\t\t\t\t\t\t: ts.isBigIntLiteral(expression.operand)\n\t\t\t\t\t\t\t? `${negate ? \"-\" : \"\"}${expression.operand.text.slice(0, -1)}`\n\t\t\t\t\t\t\t: undefined;\n\t\t\t\tdefault:\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (ts.isBigIntLiteral(expression)) {\n\t\t\treturn expression.text.slice(0, -1);\n\t\t}\n\n\t\tif (isNumericOrStringLikeLiteral(expression)) {\n\t\t\treturn expression.text;\n\t\t}\n\n\t\treturn;\n\t}\n\n\treturn propertyName.kind === ts.SyntaxKind.PrivateIdentifier\n\t\t? undefined\n\t\t: propertyName.text;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { identifierToKeywordKind } from \"./utils\";\n\n/**\n * Which \"domain\"(s) (most commonly, type or value space) a usage is within.\n */\nexport enum UsageDomain {\n\tNamespace = 1,\n\tType = 2,\n\tTypeQuery = 8,\n\tValue = 4,\n\tValueOrNamespace = Value | Namespace,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tAny = Namespace | Type | Value,\n}\n\n// TODO handle cases where values are used only for their types, e.g. `declare [propSymbol]: number`\nexport function getUsageDomain(node: ts.Identifier): UsageDomain | undefined {\n\tconst parent = node.parent;\n\tswitch (parent.kind) {\n\t\tcase ts.SyntaxKind.TypeReference:\n\t\t\treturn identifierToKeywordKind(node) !== ts.SyntaxKind.ConstKeyword\n\t\t\t\t? UsageDomain.Type\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.ExpressionWithTypeArguments:\n\t\t\treturn (parent.parent as ts.HeritageClause).token ===\n\t\t\t\tts.SyntaxKind.ImplementsKeyword ||\n\t\t\t\tparent.parent.parent.kind === ts.SyntaxKind.InterfaceDeclaration\n\t\t\t\t? UsageDomain.Type\n\t\t\t\t: UsageDomain.Value;\n\t\tcase ts.SyntaxKind.TypeQuery:\n\t\t\treturn UsageDomain.ValueOrNamespace | UsageDomain.TypeQuery;\n\t\tcase ts.SyntaxKind.QualifiedName:\n\t\t\tif ((parent as ts.QualifiedName).left === node) {\n\t\t\t\tif (\n\t\t\t\t\tgetEntityNameParent(parent as ts.QualifiedName).kind ===\n\t\t\t\t\tts.SyntaxKind.TypeQuery\n\t\t\t\t) {\n\t\t\t\t\treturn UsageDomain.Namespace | UsageDomain.TypeQuery;\n\t\t\t\t}\n\n\t\t\t\treturn UsageDomain.Namespace;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.ExportSpecifier:\n\t\t\t// either {name} or {propertyName as name}\n\t\t\tif (\n\t\t\t\t(parent as ts.ExportSpecifier).propertyName === undefined ||\n\t\t\t\t(parent as ts.ExportSpecifier).propertyName === node\n\t\t\t) {\n\t\t\t\treturn UsageDomain.Any;\n\t\t\t} // TODO handle type-only exports\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\treturn UsageDomain.Any;\n\t\t// Value\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\t\tif ((parent as ts.BindingElement).initializer === node) {\n\t\t\t\treturn UsageDomain.ValueOrNamespace;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.Parameter:\n\t\tcase ts.SyntaxKind.EnumMember:\n\t\tcase ts.SyntaxKind.PropertyDeclaration:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\tcase ts.SyntaxKind.PropertyAccessExpression:\n\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\t\tif ((parent as ts.NamedDeclaration).name !== node) {\n\t\t\t\treturn UsageDomain.ValueOrNamespace;\n\t\t\t} // TODO handle type-only imports\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.JsxAttribute:\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\tcase ts.SyntaxKind.GetAccessor:\n\t\tcase ts.SyntaxKind.SetAccessor:\n\t\tcase ts.SyntaxKind.LabeledStatement:\n\t\tcase ts.SyntaxKind.BreakStatement:\n\t\tcase ts.SyntaxKind.ContinueStatement:\n\t\tcase ts.SyntaxKind.ImportClause:\n\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\tcase ts.SyntaxKind.TypePredicate: // TODO this actually references a parameter\n\t\tcase ts.SyntaxKind.MethodSignature:\n\t\tcase ts.SyntaxKind.PropertySignature:\n\t\tcase ts.SyntaxKind.NamespaceExportDeclaration:\n\t\tcase ts.SyntaxKind.NamespaceExport:\n\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\tcase ts.SyntaxKind.TypeParameter:\n\t\tcase ts.SyntaxKind.NamedTupleMember:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn UsageDomain.ValueOrNamespace;\n\t}\n}\n\nfunction getEntityNameParent(name: ts.EntityName) {\n\tlet parent = name.parent;\n\twhile (parent.kind === ts.SyntaxKind.QualifiedName) {\n\t\tparent = parent.parent!;\n\t}\n\n\treturn parent;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { Scope, ScopeBoundary, ScopeBoundarySelector } from \"./Scope\";\nimport {\n\tDeclarationDomain,\n\tDeclarationInfo,\n\tgetDeclarationDomain,\n} from \"./declarations\";\nimport {\n\tInternalUsageInfo,\n\tUsage,\n\tUsageInfo,\n\tUsageInfoCallback,\n} from \"./usage\";\n\nabstract class AbstractScope implements Scope {\n\t#enumScopes: Map | undefined = undefined;\n\tprotected namespaceScopes: Map | undefined =\n\t\tundefined;\n\tprotected uses: Usage[] = [];\n\tprotected variables = new Map();\n\n\tconstructor(protected global: boolean) {}\n\n\taddUse(use: Usage): void {\n\t\tthis.uses.push(use);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprotected addUseToParent(_use: Usage): void {}\n\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void {\n\t\tconst variables = this.getDestinationScope(selector).getVariables();\n\t\tconst declaration: DeclarationInfo = {\n\t\t\tdeclaration: name,\n\t\t\tdomain,\n\t\t\texported,\n\t\t};\n\t\tconst variable = variables.get(identifier);\n\t\tif (variable === undefined) {\n\t\t\tvariables.set(identifier, {\n\t\t\t\tdeclarations: [declaration],\n\t\t\t\tdomain,\n\t\t\t\tuses: [],\n\t\t\t});\n\t\t} else {\n\t\t\tvariable.domain |= domain;\n\t\t\tvariable.declarations.push(declaration);\n\t\t}\n\t}\n\n\tprotected applyUse(use: Usage, variables = this.variables): boolean {\n\t\tconst variable = variables.get(use.location.text);\n\t\tif (variable === undefined || (variable.domain & use.domain) === 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvariable.uses.push(use);\n\t\treturn true;\n\t}\n\n\tprotected applyUses(): void {\n\t\tfor (const use of this.uses) {\n\t\t\tif (!this.applyUse(use)) {\n\t\t\t\tthis.addUseToParent(use);\n\t\t\t}\n\t\t}\n\n\t\tthis.uses = [];\n\t}\n\n\tcreateOrReuseEnumScope(name: string, _exported: boolean): EnumScope {\n\t\tlet scope: EnumScope | undefined;\n\t\tif (this.#enumScopes === undefined) {\n\t\t\tthis.#enumScopes = new Map();\n\t\t} else {\n\t\t\tscope = this.#enumScopes.get(name);\n\t\t}\n\n\t\tif (scope === undefined) {\n\t\t\tscope = new EnumScope(this);\n\t\t\tthis.#enumScopes.set(name, scope);\n\t\t}\n\n\t\treturn scope;\n\t} // only relevant for the root scope\n\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\t_exported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope {\n\t\tlet scope: NamespaceScope | undefined;\n\t\tif (this.namespaceScopes === undefined) {\n\t\t\tthis.namespaceScopes = new Map();\n\t\t} else {\n\t\t\tscope = this.namespaceScopes.get(name);\n\t\t}\n\n\t\tif (scope === undefined) {\n\t\t\tscope = new NamespaceScope(ambient, hasExportStatement, this);\n\t\t\tthis.namespaceScopes.set(name, scope);\n\t\t} else {\n\t\t\tscope.refresh(ambient, hasExportStatement);\n\t\t}\n\n\t\treturn scope;\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tif (this.namespaceScopes !== undefined) {\n\t\t\tthis.namespaceScopes.forEach((value) => value.finish(cb));\n\t\t}\n\n\t\tthis.namespaceScopes = this.#enumScopes = undefined;\n\t\tthis.applyUses();\n\t\tthis.variables.forEach((variable) => {\n\t\t\tfor (const declaration of variable.declarations) {\n\t\t\t\tconst result: UsageInfo = {\n\t\t\t\t\tdeclarations: [],\n\t\t\t\t\tdomain: declaration.domain,\n\t\t\t\t\texported: declaration.exported,\n\t\t\t\t\tinGlobalScope: this.global,\n\t\t\t\t\tuses: [],\n\t\t\t\t};\n\t\t\t\tfor (const other of variable.declarations) {\n\t\t\t\t\tif (other.domain & declaration.domain) {\n\t\t\t\t\t\tresult.declarations.push(other.declaration as ts.Identifier);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (const use of variable.uses) {\n\t\t\t\t\tif (use.domain & declaration.domain) {\n\t\t\t\t\t\tresult.uses.push(use);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcb(result, declaration.declaration as ts.Identifier, this);\n\t\t\t}\n\t\t});\n\t}\n\n\tgetFunctionScope(): Scope {\n\t\treturn this;\n\t}\n\n\tgetVariables(): Map {\n\t\treturn this.variables;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tmarkExported(_name: ts.Identifier): void {}\n\n\tabstract getDestinationScope(selector: ScopeBoundarySelector): Scope;\n}\n\nexport class NonRootScope extends AbstractScope {\n\tconstructor(\n\t\tprotected parent: Scope,\n\t\tprotected boundary: ScopeBoundary,\n\t) {\n\t\tsuper(false);\n\t}\n\n\tprotected addUseToParent(use: Usage): void {\n\t\treturn this.parent.addUse(use, this);\n\t}\n\n\tgetDestinationScope(selector: ScopeBoundarySelector): Scope {\n\t\treturn this.boundary & selector\n\t\t\t? this\n\t\t\t: this.parent.getDestinationScope(selector);\n\t}\n}\n\nexport class EnumScope extends NonRootScope {\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t}\n\n\tend(): void {\n\t\tthis.applyUses();\n\t}\n}\n\nexport class RootScope extends AbstractScope {\n\t#exportAll: boolean;\n\t#exports: string[] | undefined = undefined;\n\t#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(exportAll: boolean, global: boolean) {\n\t\tsuper(global);\n\t\tthis.#exportAll = exportAll;\n\t}\n\n\taddUse(use: Usage, origin?: Scope): void {\n\t\tif (origin === this.#innerScope) {\n\t\t\treturn super.addUse(use);\n\t\t}\n\n\t\treturn this.#innerScope.addUse(use);\n\t}\n\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void {\n\t\tif (domain & DeclarationDomain.Import) {\n\t\t\treturn super.addVariable(identifier, name, selector, exported, domain);\n\t\t}\n\n\t\treturn this.#innerScope.addVariable(\n\t\t\tidentifier,\n\t\t\tname,\n\t\t\tselector,\n\t\t\texported,\n\t\t\tdomain,\n\t\t);\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.#innerScope.end((value, key) => {\n\t\t\tvalue.exported ||=\n\t\t\t\tthis.#exportAll ||\n\t\t\t\t(this.#exports !== undefined && this.#exports.includes(key.text));\n\t\t\tvalue.inGlobalScope = this.global;\n\t\t\treturn cb(value, key, this);\n\t\t});\n\t\treturn super.end((value, key, scope) => {\n\t\t\tvalue.exported ||=\n\t\t\t\tscope === this &&\n\t\t\t\tthis.#exports !== undefined &&\n\t\t\t\tthis.#exports.includes(key.text);\n\t\t\treturn cb(value, key, scope);\n\t\t});\n\t}\n\n\tgetDestinationScope(): this {\n\t\treturn this;\n\t}\n\n\tmarkExported(id: ts.Identifier): void {\n\t\tif (this.#exports === undefined) {\n\t\t\tthis.#exports = [id.text];\n\t\t} else {\n\t\t\tthis.#exports.push(id.text);\n\t\t}\n\t}\n}\n\nexport class NamespaceScope extends NonRootScope {\n\t#ambient: boolean;\n\t#exports: Set | undefined = undefined;\n\t#hasExport: boolean;\n\t#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(ambient: boolean, hasExport: boolean, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t\tthis.#ambient = ambient;\n\t\tthis.#hasExport = hasExport;\n\t}\n\n\taddUse(use: Usage, source?: Scope): void {\n\t\tif (source !== this.#innerScope) {\n\t\t\treturn this.#innerScope.addUse(use);\n\t\t}\n\n\t\tthis.uses.push(use);\n\t}\n\n\tcreateOrReuseEnumScope(name: string, exported: boolean): EnumScope {\n\t\tif (!exported && (!this.#ambient || this.#hasExport)) {\n\t\t\treturn this.#innerScope.createOrReuseEnumScope(name, exported);\n\t\t}\n\n\t\treturn super.createOrReuseEnumScope(name, exported);\n\t}\n\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\texported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope {\n\t\tif (!exported && (!this.#ambient || this.#hasExport)) {\n\t\t\treturn this.#innerScope.createOrReuseNamespaceScope(\n\t\t\t\tname,\n\t\t\t\texported,\n\t\t\t\tambient || this.#ambient,\n\t\t\t\thasExportStatement,\n\t\t\t);\n\t\t}\n\n\t\treturn super.createOrReuseNamespaceScope(\n\t\t\tname,\n\t\t\texported,\n\t\t\tambient || this.#ambient,\n\t\t\thasExportStatement,\n\t\t);\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.#innerScope.end((variable, key, scope) => {\n\t\t\tif (\n\t\t\t\tscope !== this.#innerScope ||\n\t\t\t\t(!variable.exported &&\n\t\t\t\t\t(!this.#ambient ||\n\t\t\t\t\t\t(this.#exports !== undefined && !this.#exports.has(key.text))))\n\t\t\t) {\n\t\t\t\treturn cb(variable, key, scope);\n\t\t\t}\n\n\t\t\tconst namespaceVar = this.variables.get(key.text);\n\t\t\tif (namespaceVar === undefined) {\n\t\t\t\tthis.variables.set(key.text, {\n\t\t\t\t\tdeclarations: variable.declarations.map(mapDeclaration),\n\t\t\t\t\tdomain: variable.domain,\n\t\t\t\t\tuses: [...variable.uses],\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\touter: for (const declaration of variable.declarations) {\n\t\t\t\t\tfor (const existing of namespaceVar.declarations) {\n\t\t\t\t\t\tif (existing.declaration === declaration) {\n\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tnamespaceVar.declarations.push(mapDeclaration(declaration));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnamespaceVar.domain |= variable.domain;\n\t\t\t\tfor (const use of variable.uses) {\n\t\t\t\t\tif (namespaceVar.uses.includes(use)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tnamespaceVar.uses.push(use);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.applyUses();\n\t\tthis.#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\t}\n\n\tfinish(cb: UsageInfoCallback): void {\n\t\treturn super.end(cb);\n\t}\n\n\tgetDestinationScope(): Scope {\n\t\treturn this.#innerScope;\n\t}\n\n\tmarkExported(name: ts.Identifier): void {\n\t\tif (this.#exports === undefined) {\n\t\t\tthis.#exports = new Set();\n\t\t}\n\n\t\tthis.#exports.add(name.text);\n\t}\n\n\trefresh(ambient: boolean, hasExport: boolean): void {\n\t\tthis.#ambient = ambient;\n\t\tthis.#hasExport = hasExport;\n\t}\n}\n\nfunction mapDeclaration(declaration: ts.Identifier): DeclarationInfo {\n\treturn {\n\t\tdeclaration,\n\t\tdomain: getDeclarationDomain(declaration)!,\n\t\texported: true,\n\t};\n}\n\nexport class FunctionScope extends NonRootScope {\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t}\n\n\tbeginBody(): void {\n\t\tthis.applyUses();\n\t}\n}\n\nabstract class AbstractNamedExpressionScope<\n\tInnerScope extends NonRootScope,\n> extends NonRootScope {\n\t#domain: DeclarationDomain;\n\n\t#name: ts.Identifier;\n\tconstructor(name: ts.Identifier, domain: DeclarationDomain, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t\tthis.#name = name;\n\t\tthis.#domain = domain;\n\t}\n\n\taddUse(use: Usage, source?: Scope): void {\n\t\tif (source !== this.innerScope) {\n\t\t\treturn this.innerScope.addUse(use);\n\t\t}\n\n\t\tif (use.domain & this.#domain && use.location.text === this.#name.text) {\n\t\t\tthis.uses.push(use);\n\t\t} else {\n\t\t\treturn this.parent.addUse(use, this);\n\t\t}\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.innerScope.end(cb);\n\t\treturn cb(\n\t\t\t{\n\t\t\t\tdeclarations: [this.#name],\n\t\t\t\tdomain: this.#domain,\n\t\t\t\texported: false,\n\t\t\t\tinGlobalScope: false,\n\t\t\t\tuses: this.uses,\n\t\t\t},\n\t\t\tthis.#name,\n\t\t\tthis,\n\t\t);\n\t}\n\n\tgetDestinationScope(): InnerScope {\n\t\treturn this.innerScope;\n\t}\n\n\tgetFunctionScope(): InnerScope {\n\t\treturn this.innerScope;\n\t}\n\n\tprotected abstract get innerScope(): InnerScope;\n}\n\nexport class FunctionExpressionScope extends AbstractNamedExpressionScope {\n\tprotected innerScope = new FunctionScope(this);\n\n\tconstructor(name: ts.Identifier, parent: Scope) {\n\t\tsuper(name, DeclarationDomain.Value, parent);\n\t}\n\n\tbeginBody(): void {\n\t\treturn this.innerScope.beginBody();\n\t}\n}\n\nexport class BlockScope extends NonRootScope {\n\t#functionScope: Scope;\n\n\tconstructor(functionScope: Scope, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Block);\n\t\tthis.#functionScope = functionScope;\n\t}\n\n\tgetFunctionScope(): Scope {\n\t\treturn this.#functionScope;\n\t}\n}\n\nexport class ClassExpressionScope extends AbstractNamedExpressionScope {\n\tprotected innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(name: ts.Identifier, parent: Scope) {\n\t\tsuper(name, DeclarationDomain.Value | DeclarationDomain.Type, parent);\n\t}\n}\n\nexport enum ConditionalTypeScopeState {\n\tInitial,\n\tExtends,\n\tTrueType,\n\tFalseType,\n}\n\nexport class ConditionalTypeScope extends NonRootScope {\n\t#state = ConditionalTypeScopeState.Initial;\n\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.ConditionalType);\n\t}\n\n\taddUse(use: Usage): void {\n\t\tif (this.#state === ConditionalTypeScopeState.TrueType) {\n\t\t\treturn void this.uses.push(use);\n\t\t}\n\n\t\treturn this.parent.addUse(use, this);\n\t}\n\n\tupdateState(newState: ConditionalTypeScopeState): void {\n\t\tthis.#state = newState;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { UsageWalker } from \"./UsageWalker\";\nimport { UsageInfo } from \"./usage\";\n\n/**\n * Creates a mapping of each declared type and value to its type information.\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const sourceFile: ts.SourceFile;\n *\n * const usage = collectVariableUsage(sourceFile);\n *\n * for (const [identifier, information] of usage) {\n * \tconsole.log(`${identifier.getText()} is used ${information.uses.length} time(s).`);\n * }\n * ```\n */\nexport function collectVariableUsage(\n\tsourceFile: ts.SourceFile,\n): Map {\n\treturn new UsageWalker().getUsage(sourceFile);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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GAAG,IAAI;AACvC;AAEA,SAAS,wBAAwB,OAA8B;AAC9D,aAAW,aAAa,MAAM,YAAY;AACzC,QACC,UAAU,SAAS,oBAAAA,QAAG,WAAW,qBACjC,UAAU,SAAS,oBAAAA,QAAG,WAAW,kBAChC;AACD,aAAO;AAAA,IACR;AAAA,EACD;AAEA,SAAO;AACR;AAEA,SAAS,qCACR,iBACU;AACV,UAAQ,gBAAgB,QAAQ,oBAAAA,QAAG,UAAU,iBAAiB;AAC/D;AAEA,SAAS,+BACR,SACA,IACgB;AAChB,aAAW,WAAW,QAAQ,UAAU;AACvC,QAAI,QAAQ,SAAS,oBAAAA,QAAG,WAAW,gBAAgB;AAClD;AAAA,IACD;AAEA,QAAI;AACJ,QAAI,QAAQ,KAAK,SAAS,oBAAAA,QAAG,WAAW,YAAY;AACnD,eAAS,GAAG,OAAsD;AAAA,IACnE,OAAO;AACN,eAAS,+BAA+B,QAAQ,MAAM,EAAE;AAAA,IACzD;AAEA,QAAI,QAAQ;AACX,aAAO;AAAA,IACR;AAAA,EACD;AACD;;;AO9cO,SAAS,qBACf,YACgC;AAChC,SAAO,IAAI,YAAY,EAAE,SAAS,UAAU;AAC7C;","names":["import_typescript","ts","ts","import_typescript","ts","import_typescript","ts","import_typescript","import_typescript","ts","AccessKind","ts","import_typescript","import_typescript","ts","import_typescript","import_typescript","ts","ts","ts","import_typescript","ts","import_typescript","import_typescript","ts","import_typescript","import_typescript","ts","ts","import_typescript","ts","ts","import_typescript","import_typescript","ts","ts","typeParts","import_typescript","import_typescript","ts","import_typescript","import_typescript","ts","DeclarationDomain","ts","import_typescript","ts","import_typescript","UsageDomain","ts","_name","_exports","_innerScope","ts"]} \ No newline at end of file diff --git a/graphql/node_modules/ts-api-utils/lib/index.d.cts b/graphql/node_modules/ts-api-utils/lib/index.d.cts deleted file mode 100644 index 43c908e2..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.d.cts +++ /dev/null @@ -1,3039 +0,0 @@ -import ts from 'typescript'; - -/** - * Callback type used for {@link forEachComment}. - * @category Callbacks - */ -type ForEachCommentCallback = (fullText: string, comment: ts.CommentRange) => void; -/** - * Iterates over all comments owned by `node` or its children. - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * forEachComment(node, (fullText, comment) => { - * console.log(`Found comment at position ${comment.pos}: '${fullText}'.`); - * }); - * ``` - */ -declare function forEachComment(node: ts.Node, callback: ForEachCommentCallback, sourceFile?: ts.SourceFile): void; - -/** - * An option that can be tested with {@link isCompilerOptionEnabled}. - * @category Compiler Options - */ -type BooleanCompilerOptions = keyof { - [K in keyof ts.CompilerOptions as NonNullable extends boolean ? K : never]: unknown; -}; -/** - * Checks if a given compiler option is enabled. - * It handles dependencies of options, e.g. `declaration` is implicitly enabled by `composite` or `strictNullChecks` is enabled by `strict`. - * However, it does not check dependencies that are already checked and reported as errors, e.g. `checkJs` without `allowJs`. - * This function only handles boolean flags. - * @category Compiler Options - * @example - * ```ts - * const options = { - * allowJs: true, - * }; - * - * isCompilerOptionEnabled(options, "allowJs"); // true - * isCompilerOptionEnabled(options, "allowSyntheticDefaultImports"); // false - * ``` - */ -declare function isCompilerOptionEnabled(options: ts.CompilerOptions, option: BooleanCompilerOptions): boolean; -/** - * An option that can be tested with {@link isStrictCompilerOptionEnabled}. - * @category Compiler Options - */ -type StrictCompilerOption = "alwaysStrict" | "noImplicitAny" | "noImplicitThis" | "strictBindCallApply" | "strictFunctionTypes" | "strictNullChecks" | "strictPropertyInitialization"; -/** - * Checks if a given compiler option is enabled, accounting for whether all flags - * (except `strictPropertyInitialization`) have been enabled by `strict: true`. - * @category Compiler Options - * @example - * ```ts - * const optionsLenient = { - * noImplicitAny: true, - * }; - * - * isStrictCompilerOptionEnabled(optionsLenient, "noImplicitAny"); // true - * isStrictCompilerOptionEnabled(optionsLenient, "noImplicitThis"); // false - * ``` - * @example - * ```ts - * const optionsStrict = { - * noImplicitThis: false, - * strict: true, - * }; - * - * isStrictCompilerOptionEnabled(optionsStrict, "noImplicitAny"); // true - * isStrictCompilerOptionEnabled(optionsStrict, "noImplicitThis"); // false - * ``` - */ -declare function isStrictCompilerOptionEnabled(options: ts.CompilerOptions, option: StrictCompilerOption): boolean; - -/** - * Test if the given node has the given `ModifierFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModifierFlagSet(node, ts.ModifierFlags.Abstract)) { - * // ... - * } - * ``` - */ -declare function isModifierFlagSet(node: ts.Declaration, flag: ts.ModifierFlags): boolean; -/** - * Test if the given node has the given `NodeFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) { - * // ... - * } - * ``` - */ -declare const isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean; -/** - * Test if the given node has the given `ObjectFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectFlagSet(node, ts.ObjectFlags.Anonymous)) { - * // ... - * } - * ``` - */ -declare function isObjectFlagSet(objectType: ts.ObjectType, flag: ts.ObjectFlags): boolean; -/** - * Test if the given node has the given `SymbolFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const symbol: ts.Symbol; - * - * if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) { - * // ... - * } - * ``` - */ -declare const isSymbolFlagSet: (symbol: ts.Symbol, flag: ts.SymbolFlags) => boolean; -/** - * Test if the given node has the given `TypeFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeFlagSet(type, ts.TypeFlags.Any)) { - * // ... - * } - * ``` - */ -declare const isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean; - -/** - * Test if the given iterable includes a modifier of any of the given kinds. - * @category Modifier Utilities - * @example - * ```ts - * declare const modifiers: ts.Modifier[]; - * - * includesModifier(modifiers, ts.SyntaxKind.AbstractKeyword); - * ``` - */ -declare function includesModifier(modifiers: Iterable | undefined, ...kinds: ts.ModifierSyntaxKind[]): boolean; - -/** - * What operations(s), if any, an expression applies. - */ -declare enum AccessKind { - None = 0, - Read = 1, - Write = 2, - Delete = 4, - ReadWrite = 3 -} -/** - * Determines which operation(s), if any, an expression applies. - * @example - * ```ts - * declare const node: ts.Expression; - * - * if (getAccessKind(node).Write & AccessKind.Write) !== 0) { - * // this is a reassignment (write) - * } - * ``` - */ -declare function getAccessKind(node: ts.Expression): AccessKind; - -/** - * An `AssertionExpression` that is declared as const. - * @category Node Types - */ -type ConstAssertionExpression = ts.AssertionExpression & { - type: ts.TypeReferenceNode; - typeName: ConstAssertionIdentifier; -}; -/** - * An `Identifier` with an `escapedText` value of `"const"`. - * @category Node Types - */ -type ConstAssertionIdentifier = ts.Identifier & { - escapedText: ts.__String & "const"; -}; -/** - * Test if a node is a {@link ConstAssertionExpression}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isConstAssertionExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link ConstAssertionExpression}. - */ -declare function isConstAssertionExpression(node: ts.AssertionExpression): node is ConstAssertionExpression; -/** - * Test if a node is an `IterationStatement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isIterationStatement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `IterationStatement`. - */ -declare function isIterationStatement(node: ts.Node): node is ts.IterationStatement; -/** - * Test if a node is a `JSDocNamespaceDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocNamespaceDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocNamespaceDeclaration`. - */ -declare function isJSDocNamespaceDeclaration(node: ts.Node): node is ts.JSDocNamespaceDeclaration; -/** - * Test if a node is a `JsxTagNamePropertyAccess`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxTagNamePropertyAccess(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxTagNamePropertyAccess`. - */ -declare function isJsxTagNamePropertyAccess(node: ts.Node): node is ts.JsxTagNamePropertyAccess; -/** - * a `NamedDeclaration` that definitely has a name. - * @category Node Types - */ -interface NamedDeclarationWithName extends ts.NamedDeclaration { - name: ts.DeclarationName; -} -/** - * Test if a node is a {@link NamedDeclarationWithName}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedDeclarationWithName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NamedDeclarationWithName}. - */ -declare function isNamedDeclarationWithName(node: ts.Declaration): node is NamedDeclarationWithName; -/** - * Test if a node is a `NamespaceDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamespaceDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamespaceDeclaration`. - */ -declare function isNamespaceDeclaration(node: ts.Node): node is ts.NamespaceDeclaration; -/** - * A number or string-like literal. - * @category Node Types - */ -type NumericOrStringLikeLiteral = ts.NumericLiteral | ts.StringLiteralLike; -/** - * Test if a node is a {@link NumericOrStringLikeLiteral}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNumericOrStringLikeLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NumericOrStringLikeLiteral}. - */ -declare function isNumericOrStringLikeLiteral(node: ts.Node): node is NumericOrStringLikeLiteral; -/** - * Test if a node is a `PropertyAccessEntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPropertyAccessEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PropertyAccessEntityNameExpression`. - */ -declare function isPropertyAccessEntityNameExpression(node: ts.Node): node is ts.PropertyAccessEntityNameExpression; -/** - * Test if a node is a `SuperElementAccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperElementAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperElementAccessExpression`. - */ -declare function isSuperElementAccessExpression(node: ts.Node): node is ts.SuperElementAccessExpression; -/** - * Test if a node is a `SuperPropertyAccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperPropertyAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperPropertyAccessExpression`. - */ -declare function isSuperPropertyAccessExpression(node: ts.Node): node is ts.SuperPropertyAccessExpression; - -/** - * A node that represents the any keyword. - * @category Node Types - */ -type AnyKeyword = ts.KeywordToken; -/** - * A node that represents the bigint keyword. - * @category Node Types - */ -type BigIntKeyword = ts.KeywordToken; -/** - * A node that represents the boolean keyword. - * @category Node Types - */ -type BooleanKeyword = ts.KeywordToken; -/** - * A node that represents the false keyword. - * @category Node Types - */ -type FalseKeyword = ts.KeywordToken; -/** - * A node that represents the import keyword. - * @category Node Types - */ -type ImportKeyword = ts.KeywordToken; -/** - * A node that represents the never keyword. - * @category Node Types - */ -type NeverKeyword = ts.KeywordToken; -/** - * A node that represents the null keyword. - * @category Node Types - */ -type NullKeyword = ts.KeywordToken; -/** - * A node that represents the number keyword. - * @category Node Types - */ -type NumberKeyword = ts.KeywordToken; -/** - * A node that represents the object keyword. - * @category Node Types - */ -type ObjectKeyword = ts.KeywordToken; -/** - * A node that represents the string keyword. - * @category Node Types - */ -type StringKeyword = ts.KeywordToken; -/** - * A node that represents the super keyword. - * @category Node Types - */ -type SuperKeyword = ts.KeywordToken; -/** - * A node that represents the symbol keyword. - * @category Node Types - */ -type SymbolKeyword = ts.KeywordToken; -/** - * A node that represents the this keyword. - * @category Node Types - */ -type ThisKeyword = ts.KeywordToken; -/** - * A node that represents the true keyword. - * @category Node Types - */ -type TrueKeyword = ts.KeywordToken; -/** - * A node that represents the undefined keyword. - * @category Node Types - */ -type UndefinedKeyword = ts.KeywordToken; -/** - * A node that represents the unknown keyword. - * @category Node Types - */ -type UnknownKeyword = ts.KeywordToken; -/** - * A node that represents the void keyword. - * @category Node Types - */ -type VoidKeyword = ts.KeywordToken; -/** - * Test if a node is an `AbstractKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAbstractKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AbstractKeyword`. - */ -declare function isAbstractKeyword(node: ts.Node): node is ts.AbstractKeyword; -/** - * Test if a node is an `AccessorKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessorKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessorKeyword`. - */ -declare function isAccessorKeyword(node: ts.Node): node is ts.AccessorKeyword; -/** - * Test if a node is an {@link AnyKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAnyKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link AnyKeyword}. - */ -declare function isAnyKeyword(node: ts.Node): node is AnyKeyword; -/** - * Test if a node is an `AssertKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssertKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssertKeyword`. - */ -declare function isAssertKeyword(node: ts.Node): node is ts.AssertKeyword; -/** - * Test if a node is an `AssertsKeyword`. - * @deprecated With TypeScript v5, in favor of typescript's `isAssertsKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssertsKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssertsKeyword`. - */ -declare function isAssertsKeyword(node: ts.Node): node is ts.AssertsKeyword; -/** - * Test if a node is an `AsyncKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAsyncKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AsyncKeyword`. - */ -declare function isAsyncKeyword(node: ts.Node): node is ts.AsyncKeyword; -/** - * Test if a node is an `AwaitKeyword`. - * @deprecated With TypeScript v5, in favor of typescript's `isAwaitKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAwaitKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AwaitKeyword`. - */ -declare function isAwaitKeyword(node: ts.Node): node is ts.AwaitKeyword; -/** - * Test if a node is a {@link BigIntKeyword}. - * @deprecated With TypeScript v5, in favor of typescript's `isBigIntKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBigIntKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link BigIntKeyword}. - */ -declare function isBigIntKeyword(node: ts.Node): node is BigIntKeyword; -/** - * Test if a node is a {@link BooleanKeyword}. - * @deprecated With TypeScript v5, in favor of typescript's `isBooleanKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBooleanKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link BooleanKeyword}. - */ -declare function isBooleanKeyword(node: ts.Node): node is BooleanKeyword; -/** - * Test if a node is a `ColonToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isColonToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isColonToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ColonToken`. - */ -declare function isColonToken(node: ts.Node): node is ts.ColonToken; -/** - * Test if a node is a `ConstKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isConstKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ConstKeyword`. - */ -declare function isConstKeyword(node: ts.Node): node is ts.ConstKeyword; -/** - * Test if a node is a `DeclareKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclareKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclareKeyword`. - */ -declare function isDeclareKeyword(node: ts.Node): node is ts.DeclareKeyword; -/** - * Test if a node is a `DefaultKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDefaultKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DefaultKeyword`. - */ -declare function isDefaultKeyword(node: ts.Node): node is ts.DefaultKeyword; -/** - * Test if a node is a `DotToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDotToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DotToken`. - */ -declare function isDotToken(node: ts.Node): node is ts.DotToken; -/** - * Test if a node is an `EndOfFileToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEndOfFileToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EndOfFileToken`. - */ -declare function isEndOfFileToken(node: ts.Node): node is ts.EndOfFileToken; -/** - * Test if a node is an `EqualsGreaterThanToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isEqualsGreaterThanToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEqualsGreaterThanToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EqualsGreaterThanToken`. - */ -declare function isEqualsGreaterThanToken(node: ts.Node): node is ts.EqualsGreaterThanToken; -/** - * Test if a node is an `EqualsToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEqualsToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EqualsToken`. - */ -declare function isEqualsToken(node: ts.Node): node is ts.EqualsToken; -/** - * Test if a node is an `ExclamationToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isExclamationToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isExclamationToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ExclamationToken`. - */ -declare function isExclamationToken(node: ts.Node): node is ts.ExclamationToken; -/** - * Test if a node is an `ExportKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isExportKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ExportKeyword`. - */ -declare function isExportKeyword(node: ts.Node): node is ts.ExportKeyword; -/** - * Test if a node is a {@link FalseKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFalseKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link FalseKeyword}. - */ -declare function isFalseKeyword(node: ts.Node): node is FalseKeyword; -/** - * Test if a node is a `FalseLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFalseLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `FalseLiteral`. - */ -declare function isFalseLiteral(node: ts.Node): node is ts.FalseLiteral; -/** - * Test if a node is an `ImportExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isImportExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ImportExpression`. - */ -declare function isImportExpression(node: ts.Node): node is ts.ImportExpression; -/** - * Test if a node is an {@link ImportKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isImportKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link ImportKeyword}. - */ -declare function isImportKeyword(node: ts.Node): node is ImportKeyword; -/** - * Test if a node is an `InKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isInKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `InKeyword`. - */ -declare function isInKeyword(node: ts.Node): node is ts.InKeyword; -/** - * Test if a node is an `InputFiles`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isInputFiles(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `InputFiles`. - */ -declare function isInputFiles(node: ts.Node): node is ts.InputFiles; -/** - * Test if a node is a `JSDocText`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocText(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocText`. - */ -declare function isJSDocText(node: ts.Node): node is ts.JSDocText; -/** - * Test if a node is a `JsonMinusNumericLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsonMinusNumericLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsonMinusNumericLiteral`. - */ -declare function isJsonMinusNumericLiteral(node: ts.Node): node is ts.JsonMinusNumericLiteral; -/** - * Test if a node is a {@link NeverKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNeverKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NeverKeyword}. - */ -declare function isNeverKeyword(node: ts.Node): node is NeverKeyword; -/** - * Test if a node is a {@link NullKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNullKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NullKeyword}. - */ -declare function isNullKeyword(node: ts.Node): node is NullKeyword; -/** - * Test if a node is a `NullLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNullLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NullLiteral`. - */ -declare function isNullLiteral(node: ts.Node): node is ts.NullLiteral; -/** - * Test if a node is a {@link NumberKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNumberKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NumberKeyword}. - */ -declare function isNumberKeyword(node: ts.Node): node is NumberKeyword; -/** - * Test if a node is an {@link ObjectKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link ObjectKeyword}. - */ -declare function isObjectKeyword(node: ts.Node): node is ObjectKeyword; -/** - * Test if a node is an `OutKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isOutKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `OutKeyword`. - */ -declare function isOutKeyword(node: ts.Node): node is ts.OutKeyword; -/** - * Test if a node is an `OverrideKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isOverrideKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `OverrideKeyword`. - */ -declare function isOverrideKeyword(node: ts.Node): node is ts.OverrideKeyword; -/** - * Test if a node is a `PrivateKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPrivateKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PrivateKeyword`. - */ -declare function isPrivateKeyword(node: ts.Node): node is ts.PrivateKeyword; -/** - * Test if a node is a `ProtectedKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isProtectedKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ProtectedKeyword`. - */ -declare function isProtectedKeyword(node: ts.Node): node is ts.ProtectedKeyword; -/** - * Test if a node is a `PublicKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPublicKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PublicKeyword`. - */ -declare function isPublicKeyword(node: ts.Node): node is ts.PublicKeyword; -/** - * Test if a node is a `QuestionDotToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isQuestionDotToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isQuestionDotToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `QuestionDotToken`. - */ -declare function isQuestionDotToken(node: ts.Node): node is ts.QuestionDotToken; -/** - * Test if a node is a `QuestionToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isQuestionToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isQuestionToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `QuestionToken`. - */ -declare function isQuestionToken(node: ts.Node): node is ts.QuestionToken; -/** - * Test if a node is a `ReadonlyKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isReadonlyKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ReadonlyKeyword`. - */ -declare function isReadonlyKeyword(node: ts.Node): node is ts.ReadonlyKeyword; -/** - * Test if a node is a `StaticKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isStaticKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `StaticKeyword`. - */ -declare function isStaticKeyword(node: ts.Node): node is ts.StaticKeyword; -/** - * Test if a node is a {@link StringKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isStringKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link StringKeyword}. - */ -declare function isStringKeyword(node: ts.Node): node is StringKeyword; -/** - * Test if a node is a `SuperExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperExpression`. - */ -declare function isSuperExpression(node: ts.Node): node is ts.SuperExpression; -/** - * Test if a node is a {@link SuperKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link SuperKeyword}. - */ -declare function isSuperKeyword(node: ts.Node): node is SuperKeyword; -/** - * Test if a node is a {@link SymbolKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSymbolKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link SymbolKeyword}. - */ -declare function isSymbolKeyword(node: ts.Node): node is SymbolKeyword; -/** - * Test if a node is a `SyntaxList`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSyntaxList(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SyntaxList`. - */ -declare function isSyntaxList(node: ts.Node): node is ts.SyntaxList; -/** - * Test if a node is a `ThisExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isThisExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ThisExpression`. - */ -declare function isThisExpression(node: ts.Node): node is ts.ThisExpression; -/** - * Test if a node is a {@link ThisKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isThisKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link ThisKeyword}. - */ -declare function isThisKeyword(node: ts.Node): node is ThisKeyword; -/** - * Test if a node is a {@link TrueKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTrueKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link TrueKeyword}. - */ -declare function isTrueKeyword(node: ts.Node): node is TrueKeyword; -/** - * Test if a node is a `TrueLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTrueLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TrueLiteral`. - */ -declare function isTrueLiteral(node: ts.Node): node is ts.TrueLiteral; -/** - * Test if a node is an {@link UndefinedKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUndefinedKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link UndefinedKeyword}. - */ -declare function isUndefinedKeyword(node: ts.Node): node is UndefinedKeyword; -/** - * Test if a node is an {@link UnknownKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnknownKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link UnknownKeyword}. - */ -declare function isUnknownKeyword(node: ts.Node): node is UnknownKeyword; -/** - * Test if a node is an `UnparsedPrologue`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedPrologue(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedPrologue`. - */ -declare function isUnparsedPrologue(node: ts.Node): node is ts.UnparsedPrologue; -/** - * Test if a node is an `UnparsedSyntheticReference`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedSyntheticReference(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedSyntheticReference`. - */ -declare function isUnparsedSyntheticReference(node: ts.Node): node is ts.UnparsedSyntheticReference; -/** - * Test if a node is a {@link VoidKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isVoidKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link VoidKeyword}. - */ -declare function isVoidKeyword(node: ts.Node): node is VoidKeyword; - -/** - * Test if a node is an `AccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessExpression`. - */ -declare function isAccessExpression(node: ts.Node): node is ts.AccessExpression; -/** - * Test if a node is an `AccessibilityModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessibilityModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessibilityModifier`. - */ -declare function isAccessibilityModifier(node: ts.Node): node is ts.AccessibilityModifier; -/** - * Test if a node is an `AccessorDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isAccessor`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessorDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessorDeclaration`. - */ -declare function isAccessorDeclaration(node: ts.Node): node is ts.AccessorDeclaration; -/** - * Test if a node is an `ArrayBindingElement`. - * @deprecated With TypeScript v5, in favor of typescript's `isArrayBindingElement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isArrayBindingElement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ArrayBindingElement`. - */ -declare function isArrayBindingElement(node: ts.Node): node is ts.ArrayBindingElement; -/** - * Test if a node is an `ArrayBindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isArrayBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ArrayBindingOrAssignmentPattern`. - */ -declare function isArrayBindingOrAssignmentPattern(node: ts.Node): node is ts.ArrayBindingOrAssignmentPattern; -/** - * Test if a node is an `AssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssignmentPattern`. - */ -declare function isAssignmentPattern(node: ts.Node): node is ts.AssignmentPattern; -/** - * Test if a node is a `BindingOrAssignmentElementRestIndicator`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentElementRestIndicator(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentElementRestIndicator`. - */ -declare function isBindingOrAssignmentElementRestIndicator(node: ts.Node): node is ts.BindingOrAssignmentElementRestIndicator; -/** - * Test if a node is a `BindingOrAssignmentElementTarget`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentElementTarget(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentElementTarget`. - */ -declare function isBindingOrAssignmentElementTarget(node: ts.Node): node is ts.BindingOrAssignmentElementTarget; -/** - * Test if a node is a `BindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentPattern`. - */ -declare function isBindingOrAssignmentPattern(node: ts.Node): node is ts.BindingOrAssignmentPattern; -/** - * Test if a node is a `BindingPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingPattern`. - */ -declare function isBindingPattern(node: ts.Node): node is ts.BindingPattern; -/** - * Test if a node is a `BlockLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBlockLike(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BlockLike`. - */ -declare function isBlockLike(node: ts.Node): node is ts.BlockLike; -/** - * Test if a node is a `BooleanLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBooleanLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BooleanLiteral`. - */ -declare function isBooleanLiteral(node: ts.Node): node is ts.BooleanLiteral; -/** - * Test if a node is a `ClassLikeDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isClassLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isClassLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ClassLikeDeclaration`. - */ -declare function isClassLikeDeclaration(node: ts.Node): node is ts.ClassLikeDeclaration; -/** - * Test if a node is a `ClassMemberModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isClassMemberModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ClassMemberModifier`. - */ -declare function isClassMemberModifier(node: ts.Node): node is ts.ClassMemberModifier; -/** - * Test if a node is a `DeclarationName`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationName`. - */ -declare function isDeclarationName(node: ts.Node): node is ts.DeclarationName; -/** - * Test if a node is a `DeclarationWithTypeParameterChildren`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationWithTypeParameterChildren(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationWithTypeParameterChildren`. - */ -declare function isDeclarationWithTypeParameterChildren(node: ts.Node): node is ts.DeclarationWithTypeParameterChildren; -/** - * Test if a node is a `DeclarationWithTypeParameters`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationWithTypeParameters(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationWithTypeParameters`. - */ -declare function isDeclarationWithTypeParameters(node: ts.Node): node is ts.DeclarationWithTypeParameters; -/** - * Test if a node is a `DestructuringPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDestructuringPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DestructuringPattern`. - */ -declare function isDestructuringPattern(node: ts.Node): node is ts.DestructuringPattern; -/** - * Test if a node is an `EntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EntityNameExpression`. - */ -declare function isEntityNameExpression(node: ts.Node): node is ts.EntityNameExpression; -/** - * Test if a node is an `EntityNameOrEntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEntityNameOrEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EntityNameOrEntityNameExpression`. - */ -declare function isEntityNameOrEntityNameExpression(node: ts.Node): node is ts.EntityNameOrEntityNameExpression; -/** - * Test if a node is a `ForInOrOfStatement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isForInOrOfStatement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ForInOrOfStatement`. - */ -declare function isForInOrOfStatement(node: ts.Node): node is ts.ForInOrOfStatement; -/** - * Test if a node is a `FunctionLikeDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isFunctionLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFunctionLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `FunctionLikeDeclaration`. - */ -declare function isFunctionLikeDeclaration(node: ts.Node): node is ts.FunctionLikeDeclaration; -/** - * Test if a node is a `HasDecorators`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasDecorators(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasDecorators`. - */ -declare function hasDecorators(node: ts.Node): node is ts.HasDecorators; -/** - * Test if a node is a `HasExpressionInitializer`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasExpressionInitializer(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasExpressionInitializer`. - */ -declare function hasExpressionInitializer(node: ts.Node): node is ts.HasExpressionInitializer; -/** - * Test if a node is a `HasInitializer`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasInitializer(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasInitializer`. - */ -declare function hasInitializer(node: ts.Node): node is ts.HasInitializer; -/** - * Test if a node is a `HasJSDoc`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasJSDoc(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasJSDoc`. - */ -declare function hasJSDoc(node: ts.Node): node is ts.HasJSDoc; -/** - * Test if a node is a `HasModifiers`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasModifiers(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasModifiers`. - */ -declare function hasModifiers(node: ts.Node): node is ts.HasModifiers; -/** - * Test if a node is a `HasType`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasType(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasType`. - */ -declare function hasType(node: ts.Node): node is ts.HasType; -/** - * Test if a node is a `HasTypeArguments`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasTypeArguments(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasTypeArguments`. - */ -declare function hasTypeArguments(node: ts.Node): node is ts.HasTypeArguments; -/** - * Test if a node is a `JSDocComment`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocComment(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocComment`. - */ -declare function isJSDocComment(node: ts.Node): node is ts.JSDocComment; -/** - * Test if a node is a `JSDocNamespaceBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocNamespaceBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocNamespaceBody`. - */ -declare function isJSDocNamespaceBody(node: ts.Node): node is ts.JSDocNamespaceBody; -/** - * Test if a node is a `JSDocTypeReferencingNode`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocTypeReferencingNode(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocTypeReferencingNode`. - */ -declare function isJSDocTypeReferencingNode(node: ts.Node): node is ts.JSDocTypeReferencingNode; -/** - * Test if a node is a `JsonObjectExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsonObjectExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsonObjectExpression`. - */ -declare function isJsonObjectExpression(node: ts.Node): node is ts.JsonObjectExpression; -/** - * Test if a node is a `JsxAttributeLike`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxAttributeLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxAttributeLike(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxAttributeLike`. - */ -declare function isJsxAttributeLike(node: ts.Node): node is ts.JsxAttributeLike; -/** - * Test if a node is a `JsxAttributeValue`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxAttributeValue(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxAttributeValue`. - */ -declare function isJsxAttributeValue(node: ts.Node): node is ts.JsxAttributeValue; -/** - * Test if a node is a `JsxChild`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxChild`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxChild(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxChild`. - */ -declare function isJsxChild(node: ts.Node): node is ts.JsxChild; -/** - * Test if a node is a `JsxTagNameExpression`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxTagNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxTagNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxTagNameExpression`. - */ -declare function isJsxTagNameExpression(node: ts.Node): node is ts.JsxTagNameExpression; -/** - * Test if a node is a `LiteralToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isLiteralToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `LiteralToken`. - */ -declare function isLiteralToken(node: ts.Node): node is ts.LiteralToken; -/** - * Test if a node is a `ModuleBody`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleBody`. - */ -declare function isModuleBody(node: ts.Node): node is ts.ModuleBody; -/** - * Test if a node is a `ModuleName`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleName`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleName`. - */ -declare function isModuleName(node: ts.Node): node is ts.ModuleName; -/** - * Test if a node is a `ModuleReference`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleReference`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleReference(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleReference`. - */ -declare function isModuleReference(node: ts.Node): node is ts.ModuleReference; -/** - * Test if a node is a `NamedImportBindings`. - * @deprecated With TypeScript v5, in favor of typescript's `isNamedImportBindings`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedImportBindings(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamedImportBindings`. - */ -declare function isNamedImportBindings(node: ts.Node): node is ts.NamedImportBindings; -/** - * Test if a node is a `NamedImportsOrExports`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedImportsOrExports(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamedImportsOrExports`. - */ -declare function isNamedImportsOrExports(node: ts.Node): node is ts.NamedImportsOrExports; -/** - * Test if a node is a `NamespaceBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamespaceBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamespaceBody`. - */ -declare function isNamespaceBody(node: ts.Node): node is ts.NamespaceBody; -/** - * Test if a node is an `ObjectBindingOrAssignmentElement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectBindingOrAssignmentElement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentElement`. - */ -declare function isObjectBindingOrAssignmentElement(node: ts.Node): node is ts.ObjectBindingOrAssignmentElement; -/** - * Test if a node is an `ObjectBindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentPattern`. - */ -declare function isObjectBindingOrAssignmentPattern(node: ts.Node): node is ts.ObjectBindingOrAssignmentPattern; -/** - * Test if a node is an `ObjectTypeDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectTypeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectTypeDeclaration`. - */ -declare function isObjectTypeDeclaration(node: ts.Node): node is ts.ObjectTypeDeclaration; -/** - * Test if a node is a `ParameterPropertyModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isParameterPropertyModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ParameterPropertyModifier`. - */ -declare function isParameterPropertyModifier(node: ts.Node): node is ts.ParameterPropertyModifier; -/** - * Test if a node is a `PropertyNameLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPropertyNameLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PropertyNameLiteral`. - */ -declare function isPropertyNameLiteral(node: ts.Node): node is ts.PropertyNameLiteral; -/** - * Test if a node is a `PseudoLiteralToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPseudoLiteralToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PseudoLiteralToken`. - */ -declare function isPseudoLiteralToken(node: ts.Node): node is ts.PseudoLiteralToken; -/** - * Test if a node is a `SignatureDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSignatureDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SignatureDeclaration`. - */ -declare function isSignatureDeclaration(node: ts.Node): node is ts.SignatureDeclaration; -/** - * Test if a node is a `SuperProperty`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperProperty(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperProperty`. - */ -declare function isSuperProperty(node: ts.Node): node is ts.SuperProperty; -/** - * Test if a node is a `TypeOnlyCompatibleAliasDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTypeOnlyCompatibleAliasDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TypeOnlyCompatibleAliasDeclaration`. - */ -declare function isTypeOnlyCompatibleAliasDeclaration(node: ts.Node): node is ts.TypeOnlyCompatibleAliasDeclaration; -/** - * Test if a node is a `TypeReferenceType`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTypeReferenceType(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TypeReferenceType`. - */ -declare function isTypeReferenceType(node: ts.Node): node is ts.TypeReferenceType; -/** - * Test if a node is an `UnionOrIntersectionTypeNode`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnionOrIntersectionTypeNode(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnionOrIntersectionTypeNode`. - */ -declare function isUnionOrIntersectionTypeNode(node: ts.Node): node is ts.UnionOrIntersectionTypeNode; -/** - * Test if a node is an `UnparsedSourceText`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedSourceText(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedSourceText`. - */ -declare function isUnparsedSourceText(node: ts.Node): node is ts.UnparsedSourceText; -/** - * Test if a node is a `VariableLikeDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isVariableLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `VariableLikeDeclaration`. - */ -declare function isVariableLikeDeclaration(node: ts.Node): node is ts.VariableLikeDeclaration; - -/** - * Is the node a scope boundary, specifically due to it being a function. - * @category Scope Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFunctionScopeBoundary(node, ts.ObjectFlags.Anonymous)) { - * // ... - * } - * ``` - */ -declare function isFunctionScopeBoundary(node: ts.Node): boolean; - -/** - * Test of the kind given is for assignment. - * @category Syntax Utilities - * @example - * ```ts - * declare const kind: ts.SyntaxKind; - * - * isAssignmentKind(kind); - * ``` - */ -declare function isAssignmentKind(kind: ts.SyntaxKind): boolean; -/** - * Test if a string is numeric. - * @category Syntax Utilities - * @example - * ```ts - * isNumericPropertyName("abc"); // false - * isNumericPropertyName("123"); // true - * ``` - */ -declare function isNumericPropertyName(name: string | ts.__String): boolean; -/** - * Determines whether the given text can be used to access a property with a `PropertyAccessExpression` while preserving the property's name. - * @category Syntax Utilities - * @example - * ```ts - * isValidPropertyAccess("abc"); // true - * isValidPropertyAccess("123"); // false - * ``` - */ -declare function isValidPropertyAccess(text: string, languageVersion?: ts.ScriptTarget): boolean; - -/** - * Callback type used for {@link forEachToken}. - * @category Callbacks - */ -type ForEachTokenCallback = (token: ts.Node) => void; -/** - * Iterates over all tokens of `node` - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * forEachToken(node, (token) => { - * console.log("Found token:", token.getText()); - * }); - * ``` - * @param node - The node whose tokens should be visited - * @param callback - Is called for every token contained in `node` - */ -declare function forEachToken(node: ts.Node, callback: ForEachTokenCallback, sourceFile?: ts.SourceFile): void; - -/** - * Get the `CallSignatures` of the given type. - * @category Types - Getters - * @example - * ```ts - * declare const type: ts.Type; - * - * getCallSignaturesOfType(type); - * ``` - */ -declare function getCallSignaturesOfType(type: ts.Type): readonly ts.Signature[]; -/** - * Get the property with the given name on the given type (if it exists). - * @category Types - Getters - * @example - * ```ts - * declare const property: ts.Symbol; - * declare const type: ts.Type; - * - * getPropertyOfType(type, property.getEscapedName()); - * ``` - */ -declare function getPropertyOfType(type: ts.Type, name: ts.__String): ts.Symbol | undefined; -/** - * Retrieves a type symbol corresponding to a well-known string name. - * @category Types - Getters - * @example - * ```ts - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * getWellKnownSymbolPropertyOfType(type, "asyncIterator", typeChecker); - * ``` - */ -declare function getWellKnownSymbolPropertyOfType(type: ts.Type, wellKnownSymbolName: string, typeChecker: ts.TypeChecker): ts.Symbol | undefined; - -/** - * A "any" intrinsic type. - * @category Type Types - */ -interface IntrinsicAnyType extends IntrinsicType { - intrinsicName: "any"; -} -/** - * Determines whether the given type is the "any" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicAnyType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicAnyType(type: ts.Type): type is IntrinsicAnyType; -/** - * A "boolean" intrinsic type. - * @category Type Types - */ -interface IntrinsicBooleanType extends IntrinsicType { - intrinsicName: "boolean"; -} -/** - * Determines whether the given type is the "boolean" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicBooleanType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicBooleanType(type: ts.Type): type is IntrinsicBooleanType; -/** - * A "bigint" intrinsic type. - * @category Type Types - */ -interface IntrinsicBigIntType extends IntrinsicType { - intrinsicName: "bigint"; -} -/** - * Determines whether the given type is the "bigint" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicBigIntType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicBigIntType(type: ts.Type): type is IntrinsicBigIntType; -/** - * An "error" intrinsic type. - * - * This refers to a type generated when TypeScript encounters an error while - * trying to resolve the type. - * @category Type Types - */ -interface IntrinsicErrorType extends IntrinsicType { - intrinsicName: "error"; -} -/** - * Determines whether the given type is the "error" intrinsic type. - * - * The intrinsic error type occurs when TypeScript encounters an error while - * trying to resolve the type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicErrorType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicErrorType(type: ts.Type): type is IntrinsicErrorType; -/** - * A "symbol" intrinsic type. - * @category Type Types - */ -interface IntrinsicESSymbolType extends IntrinsicType { - intrinsicName: "symbol"; -} -/** - * Determines whether the given type is the "symbol" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicESSymbolType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicESSymbolType(type: ts.Type): type is IntrinsicESSymbolType; -/** - * An intrinsic type. - * @category Type Types - */ -interface IntrinsicType extends ts.Type { - intrinsicName: string; - objectFlags: ts.ObjectFlags; -} -/** - * Test if a type is an {@link IntrinsicType}. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicType(type: ts.Type): type is IntrinsicType; -/** - * A "never" intrinsic type. - * @category Type Types - */ -interface IntrinsicNeverType extends IntrinsicType { - intrinsicName: "never"; -} -/** - * Determines whether the given type is the "never" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNeverType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNeverType(type: ts.Type): type is IntrinsicNeverType; -/** - * A non-primitive intrinsic type. - * E.g. An "object" intrinsic type. - * @category Type Types - */ -interface IntrinsicNonPrimitiveType extends IntrinsicType { - intrinsicName: ""; -} -/** - * Determines whether the given type is a non-primitive intrinsic type. - * E.g. An "object" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNonPrimitiveType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNonPrimitiveType(type: ts.Type): type is IntrinsicNonPrimitiveType; -/** - * A "null" intrinsic type. - * @category Type Types - */ -interface IntrinsicNullType extends IntrinsicType { - intrinsicName: "null"; -} -/** - * Determines whether the given type is the "null" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNullType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNullType(type: ts.Type): type is IntrinsicNullType; -/** - * A "number" intrinsic type. - * @category Type Types - */ -interface IntrinsicNumberType extends IntrinsicType { - intrinsicName: "number"; -} -/** - * Determines whether the given type is the "number" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNumberType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNumberType(type: ts.Type): type is IntrinsicNumberType; -/** - * A "string" intrinsic type. - * @category Type Types - */ -interface IntrinsicStringType extends IntrinsicType { - intrinsicName: "string"; -} -/** - * Determines whether the given type is the "string" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicStringType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicStringType(type: ts.Type): type is IntrinsicStringType; -/** - * An "undefined" intrinsic type. - * @category Type Types - */ -interface IntrinsicUndefinedType extends IntrinsicType { - intrinsicName: "undefined"; -} -/** - * Determines whether the given type is the "undefined" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicUndefinedType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicUndefinedType(type: ts.Type): type is IntrinsicUndefinedType; -/** - * An "unknown" intrinsic type. - * @category Type Types - */ -interface IntrinsicUnknownType extends IntrinsicType { - intrinsicName: "unknown"; -} -/** - * Determines whether the given type is the "unknown" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicUnknownType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicUnknownType(type: ts.Type): type is IntrinsicUnknownType; -/** - * A "void" intrinsic type. - * @category Type Types - */ -interface IntrinsicVoidType extends IntrinsicType { - intrinsicName: "void"; -} -/** - * Determines whether the given type is the "void" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicVoidType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicVoidType(type: ts.Type): type is IntrinsicVoidType; - -/** - * A type that is both an {@link IntrinsicType} and a `FreshableType` - * @category Type Types - */ -interface FreshableIntrinsicType extends ts.FreshableType, IntrinsicType { -} -/** - * Test if a type is a `FreshableIntrinsicType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFreshableIntrinsicType(type)) { - * // ... - * } - */ -declare function isFreshableIntrinsicType(type: ts.Type): type is FreshableIntrinsicType; -/** - * Test if a type is a `TupleTypeReference`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTupleTypeReference(type)) { - * // ... - * } - */ -declare function isTupleTypeReference(type: ts.Type): type is ts.TupleTypeReference; - -/** - * A boolean literal. - * i.e. Either a "true" or "false" literal. - * @category Type Types - */ -interface BooleanLiteralType extends UnknownLiteralType { - intrinsicName: "false" | "true"; - value: boolean; -} -/** - * Determines whether the given type is a boolean literal type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isBooleanLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isBooleanLiteralType(type: ts.Type): type is BooleanLiteralType; -/** - * Test if a type is a `BigIntLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isBigIntLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; -/** - * A "false" literal. - * @category Type Types - */ -interface FalseLiteralType extends BooleanLiteralType { - intrinsicName: "false"; - value: false; -} -/** - * Determines whether the given type is a boolean literal type for "false". - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFalseLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isFalseLiteralType(type: ts.Type): type is FalseLiteralType; -/** - * Test if a type is a `LiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isLiteralType(type: ts.Type): type is ts.LiteralType; -/** - * Test if a type is a `NumberLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isNumberLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isNumberLiteralType(type: ts.Type): type is ts.NumberLiteralType; -/** - * Test if a type is a `StringLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isStringLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isStringLiteralType(type: ts.Type): type is ts.StringLiteralType; -/** - * Test if a type is a `TemplateLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTemplateLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; -/** - * A "true" literal. - * @category Type Types - */ -interface TrueLiteralType extends BooleanLiteralType { - intrinsicName: "true"; - value: true; -} -/** - * Determines whether the given type is a boolean literal type for "true". - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTrueLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isTrueLiteralType(type: ts.Type): type is TrueLiteralType; -/** - * `LiteralType` from typescript except that it allows for it to work on arbitrary types. - * @category Type Types - */ -interface UnknownLiteralType extends FreshableIntrinsicType { - value: unknown; -} -/** - * Test if a type is a {@link UnknownLiteralType}. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnknownLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isUnknownLiteralType(type: ts.Type): type is UnknownLiteralType; - -/** - * Test if a type is a `EvolvingArrayType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isEvolvingArrayType(type)) { - * // ... - * } - * ``` - */ -declare function isEvolvingArrayType(type: ts.Type): type is ts.EvolvingArrayType; -/** - * Test if a type is a `TupleType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTupleType(type)) { - * // ... - * } - * ``` - */ -declare function isTupleType(type: ts.Type): type is ts.TupleType; -/** - * Test if a type is a `TypeReference`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeReference(type)) { - * // ... - * } - * ``` - */ -declare function isTypeReference(type: ts.Type): type is ts.TypeReference; - -/** - * Test if a type is a `ConditionalType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isConditionalType(type)) { - * // ... - * } - * ``` - */ -declare function isConditionalType(type: ts.Type): type is ts.ConditionalType; -/** - * Test if a type is a `EnumType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isEnumType(type)) { - * // ... - * } - * ``` - */ -declare function isEnumType(type: ts.Type): type is ts.EnumType; -/** - * Test if a type is a `FreshableType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFreshableType(type)) { - * // ... - * } - * ``` - */ -declare function isFreshableType(type: ts.Type): type is ts.FreshableType; -/** - * Test if a type is a `IndexType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIndexType(type)) { - * // ... - * } - * ``` - */ -declare function isIndexType(type: ts.Type): type is ts.IndexType; -/** - * Test if a type is a `IndexedAccessType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIndexedAccessType(type)) { - * // ... - * } - * ``` - */ -declare function isIndexedAccessType(type: ts.Type): type is ts.IndexedAccessType; -/** - * Test if a type is a `InstantiableType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isInstantiableType(type)) { - * // ... - * } - * ``` - */ -declare function isInstantiableType(type: ts.Type): type is ts.InstantiableType; -/** - * Test if a type is a `IntersectionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntersectionType(type)) { - * // ... - * } - * ``` - */ -declare function isIntersectionType(type: ts.Type): type is ts.IntersectionType; -/** - * Test if a type is a `ObjectType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isObjectType(type)) { - * // ... - * } - * ``` - */ -declare function isObjectType(type: ts.Type): type is ts.ObjectType; -/** - * Test if a type is a `StringMappingType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isStringMappingType(type)) { - * // ... - * } - * ``` - */ -declare function isStringMappingType(type: ts.Type): type is ts.StringMappingType; -/** - * Test if a type is a `SubstitutionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isSubstitutionType(type)) { - * // ... - * } - * ``` - */ -declare function isSubstitutionType(type: ts.Type): type is ts.SubstitutionType; -/** - * Test if a type is a `TypeParameter`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeParameter(type)) { - * // ... - * } - * ``` - */ -declare function isTypeParameter(type: ts.Type): type is ts.TypeParameter; -/** - * Test if a type is a `TypeVariable`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeVariable(type)) { - * // ... - * } - * ``` - */ -declare function isTypeVariable(type: ts.Type): type is ts.TypeVariable; -/** - * Test if a type is a `UnionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnionType(type)) { - * // ... - * } - * ``` - */ -declare function isUnionType(type: ts.Type): type is ts.UnionType; -/** - * Test if a type is a `UnionOrIntersectionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnionOrIntersectionType(type)) { - * // ... - * } - * ``` - */ -declare function isUnionOrIntersectionType(type: ts.Type): type is ts.UnionOrIntersectionType; -/** - * Test if a type is a `UniqueESSymbolType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUniqueESSymbolType(type)) { - * // ... - * } - * ``` - */ -declare function isUniqueESSymbolType(type: ts.Type): type is ts.UniqueESSymbolType; - -/** - * Determines whether a type is definitely falsy. This function doesn't unwrap union types. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFalsyType(type)) { - * // ... - * } - * ``` - */ -declare function isFalsyType(type: ts.Type): boolean; -/** - * Get the intersection type parts of the given type. - * - * If the given type is not a intersection type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of intersectionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function intersectionTypeParts(type: ts.Type): ts.Type[]; -/** - * Get the intersection or union type parts of the given type. - * - * Note that this is a shallow collection: it only returns `type.types` or `[type]`. - * - * If the given type is not an intersection or union type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of intersectionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function typeParts(type: ts.Type): ts.Type[]; -/** - * Determines whether writing to a certain property of a given type is allowed. - * @category Types - Utilities - * @example - * ```ts - * declare const property: ts.Symbol; - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * if (isPropertyReadonlyInType(type, property.getEscapedName(), typeChecker)) { - * // ... - * } - * ``` - */ -declare function isPropertyReadonlyInType(type: ts.Type, name: ts.__String, typeChecker: ts.TypeChecker): boolean; -/** - * Determines whether a type is thenable and thus can be used with `await`. - * @category Types - Utilities - * @example - * ```ts - * declare const node: ts.Node; - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * if (isThenableType(typeChecker, node, type)) { - * // ... - * } - * ``` - */ -declare function isThenableType(typeChecker: ts.TypeChecker, node: ts.Node, type: ts.Type): boolean; -/** - * Determines whether a type is thenable and thus can be used with `await`. - * @category Types - Utilities - * @example - * ```ts - * declare const expression: ts.Expression; - * declare const typeChecker: ts.TypeChecker; - * - * if (isThenableType(typeChecker, expression)) { - * // ... - * } - * ``` - * @example - * ```ts - * declare const expression: ts.Expression; - * declare const typeChecker: ts.TypeChecker; - * declare const type: ts.Type; - * - * if (isThenableType(typeChecker, expression, type)) { - * // ... - * } - * ``` - */ -declare function isThenableType(typeChecker: ts.TypeChecker, node: ts.Expression, type?: ts.Type): boolean; -/** - * Test if the given symbol has a readonly declaration. - * @category Symbols - Utilities - * @example - * ```ts - * declare const symbol: ts.Symbol; - * declare const typeChecker: ts.TypeChecker; - * - * if (symbolHasReadonlyDeclaration(symbol, typeChecker)) { - * // ... - * } - * ``` - */ -declare function symbolHasReadonlyDeclaration(symbol: ts.Symbol, typeChecker: ts.TypeChecker): boolean; -/** - * Get the union type parts of the given type. - * - * If the given type is not a union type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of unionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function unionTypeParts(type: ts.Type): ts.Type[]; - -/** - * Which "domain"(s) (most commonly, type or value space) a declaration is within. - */ -declare enum DeclarationDomain { - Import = 8, - Namespace = 1, - Type = 2, - Value = 4, - Any = 7 -} - -/** - * Which "domain"(s) (most commonly, type or value space) a usage is within. - */ -declare enum UsageDomain { - Namespace = 1, - Type = 2, - TypeQuery = 8, - Value = 4, - ValueOrNamespace = 5, - Any = 7 -} - -/** - * How an item (type or value) was declared and/or referenced. - */ -interface UsageInfo { - /** - * Locations where the item was declared. - */ - declarations: ts.Identifier[]; - /** - * Which space(s) the item is within. - */ - domain: DeclarationDomain; - /** - * Whether the item was exported from its module or namespace scope. - */ - exported: boolean; - /** - * Whether the item's declaration was in the global scope. - */ - inGlobalScope: boolean; - /** - * Each reference to the item in the file. - */ - uses: Usage[]; -} -/** - * An instance of an item (type or value) being used. - */ -interface Usage { - /** - * Which space(s) the usage is within. - */ - domain: UsageDomain; - location: ts.Identifier; -} - -/** - * Creates a mapping of each declared type and value to its type information. - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const sourceFile: ts.SourceFile; - * - * const usage = collectVariableUsage(sourceFile); - * - * for (const [identifier, information] of usage) { - * console.log(`${identifier.getText()} is used ${information.uses.length} time(s).`); - * } - * ``` - */ -declare function collectVariableUsage(sourceFile: ts.SourceFile): Map; - -export { AccessKind, type AnyKeyword, type BigIntKeyword, type BooleanCompilerOptions, type BooleanKeyword, type BooleanLiteralType, type ConstAssertionExpression, type ConstAssertionIdentifier, DeclarationDomain, type FalseKeyword, type FalseLiteralType, type ForEachCommentCallback, type ForEachTokenCallback, type FreshableIntrinsicType, type ImportKeyword, type IntrinsicAnyType, type IntrinsicBigIntType, type IntrinsicBooleanType, type IntrinsicESSymbolType, type IntrinsicErrorType, type IntrinsicNeverType, type IntrinsicNonPrimitiveType, type IntrinsicNullType, type IntrinsicNumberType, type IntrinsicStringType, type IntrinsicType, type IntrinsicUndefinedType, type IntrinsicUnknownType, type IntrinsicVoidType, type NamedDeclarationWithName, type NeverKeyword, type NullKeyword, type NumberKeyword, type NumericOrStringLikeLiteral, type ObjectKeyword, type StrictCompilerOption, type StringKeyword, type SuperKeyword, type SymbolKeyword, type ThisKeyword, type TrueKeyword, type TrueLiteralType, type UndefinedKeyword, type UnknownKeyword, type UnknownLiteralType, UsageDomain, type UsageInfo as VariableInfo, type Usage as VariableUse, type VoidKeyword, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInputFiles, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isUnknownLiteralType, isUnparsedPrologue, isUnparsedSourceText, isUnparsedSyntheticReference, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeParts, unionTypeParts }; diff --git a/graphql/node_modules/ts-api-utils/lib/index.d.ts b/graphql/node_modules/ts-api-utils/lib/index.d.ts deleted file mode 100644 index 43c908e2..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.d.ts +++ /dev/null @@ -1,3039 +0,0 @@ -import ts from 'typescript'; - -/** - * Callback type used for {@link forEachComment}. - * @category Callbacks - */ -type ForEachCommentCallback = (fullText: string, comment: ts.CommentRange) => void; -/** - * Iterates over all comments owned by `node` or its children. - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * forEachComment(node, (fullText, comment) => { - * console.log(`Found comment at position ${comment.pos}: '${fullText}'.`); - * }); - * ``` - */ -declare function forEachComment(node: ts.Node, callback: ForEachCommentCallback, sourceFile?: ts.SourceFile): void; - -/** - * An option that can be tested with {@link isCompilerOptionEnabled}. - * @category Compiler Options - */ -type BooleanCompilerOptions = keyof { - [K in keyof ts.CompilerOptions as NonNullable extends boolean ? K : never]: unknown; -}; -/** - * Checks if a given compiler option is enabled. - * It handles dependencies of options, e.g. `declaration` is implicitly enabled by `composite` or `strictNullChecks` is enabled by `strict`. - * However, it does not check dependencies that are already checked and reported as errors, e.g. `checkJs` without `allowJs`. - * This function only handles boolean flags. - * @category Compiler Options - * @example - * ```ts - * const options = { - * allowJs: true, - * }; - * - * isCompilerOptionEnabled(options, "allowJs"); // true - * isCompilerOptionEnabled(options, "allowSyntheticDefaultImports"); // false - * ``` - */ -declare function isCompilerOptionEnabled(options: ts.CompilerOptions, option: BooleanCompilerOptions): boolean; -/** - * An option that can be tested with {@link isStrictCompilerOptionEnabled}. - * @category Compiler Options - */ -type StrictCompilerOption = "alwaysStrict" | "noImplicitAny" | "noImplicitThis" | "strictBindCallApply" | "strictFunctionTypes" | "strictNullChecks" | "strictPropertyInitialization"; -/** - * Checks if a given compiler option is enabled, accounting for whether all flags - * (except `strictPropertyInitialization`) have been enabled by `strict: true`. - * @category Compiler Options - * @example - * ```ts - * const optionsLenient = { - * noImplicitAny: true, - * }; - * - * isStrictCompilerOptionEnabled(optionsLenient, "noImplicitAny"); // true - * isStrictCompilerOptionEnabled(optionsLenient, "noImplicitThis"); // false - * ``` - * @example - * ```ts - * const optionsStrict = { - * noImplicitThis: false, - * strict: true, - * }; - * - * isStrictCompilerOptionEnabled(optionsStrict, "noImplicitAny"); // true - * isStrictCompilerOptionEnabled(optionsStrict, "noImplicitThis"); // false - * ``` - */ -declare function isStrictCompilerOptionEnabled(options: ts.CompilerOptions, option: StrictCompilerOption): boolean; - -/** - * Test if the given node has the given `ModifierFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModifierFlagSet(node, ts.ModifierFlags.Abstract)) { - * // ... - * } - * ``` - */ -declare function isModifierFlagSet(node: ts.Declaration, flag: ts.ModifierFlags): boolean; -/** - * Test if the given node has the given `NodeFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) { - * // ... - * } - * ``` - */ -declare const isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean; -/** - * Test if the given node has the given `ObjectFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectFlagSet(node, ts.ObjectFlags.Anonymous)) { - * // ... - * } - * ``` - */ -declare function isObjectFlagSet(objectType: ts.ObjectType, flag: ts.ObjectFlags): boolean; -/** - * Test if the given node has the given `SymbolFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const symbol: ts.Symbol; - * - * if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) { - * // ... - * } - * ``` - */ -declare const isSymbolFlagSet: (symbol: ts.Symbol, flag: ts.SymbolFlags) => boolean; -/** - * Test if the given node has the given `TypeFlags` set. - * @category Nodes - Flag Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeFlagSet(type, ts.TypeFlags.Any)) { - * // ... - * } - * ``` - */ -declare const isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean; - -/** - * Test if the given iterable includes a modifier of any of the given kinds. - * @category Modifier Utilities - * @example - * ```ts - * declare const modifiers: ts.Modifier[]; - * - * includesModifier(modifiers, ts.SyntaxKind.AbstractKeyword); - * ``` - */ -declare function includesModifier(modifiers: Iterable | undefined, ...kinds: ts.ModifierSyntaxKind[]): boolean; - -/** - * What operations(s), if any, an expression applies. - */ -declare enum AccessKind { - None = 0, - Read = 1, - Write = 2, - Delete = 4, - ReadWrite = 3 -} -/** - * Determines which operation(s), if any, an expression applies. - * @example - * ```ts - * declare const node: ts.Expression; - * - * if (getAccessKind(node).Write & AccessKind.Write) !== 0) { - * // this is a reassignment (write) - * } - * ``` - */ -declare function getAccessKind(node: ts.Expression): AccessKind; - -/** - * An `AssertionExpression` that is declared as const. - * @category Node Types - */ -type ConstAssertionExpression = ts.AssertionExpression & { - type: ts.TypeReferenceNode; - typeName: ConstAssertionIdentifier; -}; -/** - * An `Identifier` with an `escapedText` value of `"const"`. - * @category Node Types - */ -type ConstAssertionIdentifier = ts.Identifier & { - escapedText: ts.__String & "const"; -}; -/** - * Test if a node is a {@link ConstAssertionExpression}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isConstAssertionExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link ConstAssertionExpression}. - */ -declare function isConstAssertionExpression(node: ts.AssertionExpression): node is ConstAssertionExpression; -/** - * Test if a node is an `IterationStatement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isIterationStatement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `IterationStatement`. - */ -declare function isIterationStatement(node: ts.Node): node is ts.IterationStatement; -/** - * Test if a node is a `JSDocNamespaceDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocNamespaceDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocNamespaceDeclaration`. - */ -declare function isJSDocNamespaceDeclaration(node: ts.Node): node is ts.JSDocNamespaceDeclaration; -/** - * Test if a node is a `JsxTagNamePropertyAccess`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxTagNamePropertyAccess(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxTagNamePropertyAccess`. - */ -declare function isJsxTagNamePropertyAccess(node: ts.Node): node is ts.JsxTagNamePropertyAccess; -/** - * a `NamedDeclaration` that definitely has a name. - * @category Node Types - */ -interface NamedDeclarationWithName extends ts.NamedDeclaration { - name: ts.DeclarationName; -} -/** - * Test if a node is a {@link NamedDeclarationWithName}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedDeclarationWithName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NamedDeclarationWithName}. - */ -declare function isNamedDeclarationWithName(node: ts.Declaration): node is NamedDeclarationWithName; -/** - * Test if a node is a `NamespaceDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamespaceDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamespaceDeclaration`. - */ -declare function isNamespaceDeclaration(node: ts.Node): node is ts.NamespaceDeclaration; -/** - * A number or string-like literal. - * @category Node Types - */ -type NumericOrStringLikeLiteral = ts.NumericLiteral | ts.StringLiteralLike; -/** - * Test if a node is a {@link NumericOrStringLikeLiteral}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNumericOrStringLikeLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NumericOrStringLikeLiteral}. - */ -declare function isNumericOrStringLikeLiteral(node: ts.Node): node is NumericOrStringLikeLiteral; -/** - * Test if a node is a `PropertyAccessEntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPropertyAccessEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PropertyAccessEntityNameExpression`. - */ -declare function isPropertyAccessEntityNameExpression(node: ts.Node): node is ts.PropertyAccessEntityNameExpression; -/** - * Test if a node is a `SuperElementAccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperElementAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperElementAccessExpression`. - */ -declare function isSuperElementAccessExpression(node: ts.Node): node is ts.SuperElementAccessExpression; -/** - * Test if a node is a `SuperPropertyAccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperPropertyAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperPropertyAccessExpression`. - */ -declare function isSuperPropertyAccessExpression(node: ts.Node): node is ts.SuperPropertyAccessExpression; - -/** - * A node that represents the any keyword. - * @category Node Types - */ -type AnyKeyword = ts.KeywordToken; -/** - * A node that represents the bigint keyword. - * @category Node Types - */ -type BigIntKeyword = ts.KeywordToken; -/** - * A node that represents the boolean keyword. - * @category Node Types - */ -type BooleanKeyword = ts.KeywordToken; -/** - * A node that represents the false keyword. - * @category Node Types - */ -type FalseKeyword = ts.KeywordToken; -/** - * A node that represents the import keyword. - * @category Node Types - */ -type ImportKeyword = ts.KeywordToken; -/** - * A node that represents the never keyword. - * @category Node Types - */ -type NeverKeyword = ts.KeywordToken; -/** - * A node that represents the null keyword. - * @category Node Types - */ -type NullKeyword = ts.KeywordToken; -/** - * A node that represents the number keyword. - * @category Node Types - */ -type NumberKeyword = ts.KeywordToken; -/** - * A node that represents the object keyword. - * @category Node Types - */ -type ObjectKeyword = ts.KeywordToken; -/** - * A node that represents the string keyword. - * @category Node Types - */ -type StringKeyword = ts.KeywordToken; -/** - * A node that represents the super keyword. - * @category Node Types - */ -type SuperKeyword = ts.KeywordToken; -/** - * A node that represents the symbol keyword. - * @category Node Types - */ -type SymbolKeyword = ts.KeywordToken; -/** - * A node that represents the this keyword. - * @category Node Types - */ -type ThisKeyword = ts.KeywordToken; -/** - * A node that represents the true keyword. - * @category Node Types - */ -type TrueKeyword = ts.KeywordToken; -/** - * A node that represents the undefined keyword. - * @category Node Types - */ -type UndefinedKeyword = ts.KeywordToken; -/** - * A node that represents the unknown keyword. - * @category Node Types - */ -type UnknownKeyword = ts.KeywordToken; -/** - * A node that represents the void keyword. - * @category Node Types - */ -type VoidKeyword = ts.KeywordToken; -/** - * Test if a node is an `AbstractKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAbstractKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AbstractKeyword`. - */ -declare function isAbstractKeyword(node: ts.Node): node is ts.AbstractKeyword; -/** - * Test if a node is an `AccessorKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessorKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessorKeyword`. - */ -declare function isAccessorKeyword(node: ts.Node): node is ts.AccessorKeyword; -/** - * Test if a node is an {@link AnyKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAnyKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link AnyKeyword}. - */ -declare function isAnyKeyword(node: ts.Node): node is AnyKeyword; -/** - * Test if a node is an `AssertKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssertKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssertKeyword`. - */ -declare function isAssertKeyword(node: ts.Node): node is ts.AssertKeyword; -/** - * Test if a node is an `AssertsKeyword`. - * @deprecated With TypeScript v5, in favor of typescript's `isAssertsKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssertsKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssertsKeyword`. - */ -declare function isAssertsKeyword(node: ts.Node): node is ts.AssertsKeyword; -/** - * Test if a node is an `AsyncKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAsyncKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AsyncKeyword`. - */ -declare function isAsyncKeyword(node: ts.Node): node is ts.AsyncKeyword; -/** - * Test if a node is an `AwaitKeyword`. - * @deprecated With TypeScript v5, in favor of typescript's `isAwaitKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAwaitKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AwaitKeyword`. - */ -declare function isAwaitKeyword(node: ts.Node): node is ts.AwaitKeyword; -/** - * Test if a node is a {@link BigIntKeyword}. - * @deprecated With TypeScript v5, in favor of typescript's `isBigIntKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBigIntKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link BigIntKeyword}. - */ -declare function isBigIntKeyword(node: ts.Node): node is BigIntKeyword; -/** - * Test if a node is a {@link BooleanKeyword}. - * @deprecated With TypeScript v5, in favor of typescript's `isBooleanKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBooleanKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link BooleanKeyword}. - */ -declare function isBooleanKeyword(node: ts.Node): node is BooleanKeyword; -/** - * Test if a node is a `ColonToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isColonToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isColonToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ColonToken`. - */ -declare function isColonToken(node: ts.Node): node is ts.ColonToken; -/** - * Test if a node is a `ConstKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isConstKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ConstKeyword`. - */ -declare function isConstKeyword(node: ts.Node): node is ts.ConstKeyword; -/** - * Test if a node is a `DeclareKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclareKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclareKeyword`. - */ -declare function isDeclareKeyword(node: ts.Node): node is ts.DeclareKeyword; -/** - * Test if a node is a `DefaultKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDefaultKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DefaultKeyword`. - */ -declare function isDefaultKeyword(node: ts.Node): node is ts.DefaultKeyword; -/** - * Test if a node is a `DotToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDotToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DotToken`. - */ -declare function isDotToken(node: ts.Node): node is ts.DotToken; -/** - * Test if a node is an `EndOfFileToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEndOfFileToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EndOfFileToken`. - */ -declare function isEndOfFileToken(node: ts.Node): node is ts.EndOfFileToken; -/** - * Test if a node is an `EqualsGreaterThanToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isEqualsGreaterThanToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEqualsGreaterThanToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EqualsGreaterThanToken`. - */ -declare function isEqualsGreaterThanToken(node: ts.Node): node is ts.EqualsGreaterThanToken; -/** - * Test if a node is an `EqualsToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEqualsToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EqualsToken`. - */ -declare function isEqualsToken(node: ts.Node): node is ts.EqualsToken; -/** - * Test if a node is an `ExclamationToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isExclamationToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isExclamationToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ExclamationToken`. - */ -declare function isExclamationToken(node: ts.Node): node is ts.ExclamationToken; -/** - * Test if a node is an `ExportKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isExportKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ExportKeyword`. - */ -declare function isExportKeyword(node: ts.Node): node is ts.ExportKeyword; -/** - * Test if a node is a {@link FalseKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFalseKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link FalseKeyword}. - */ -declare function isFalseKeyword(node: ts.Node): node is FalseKeyword; -/** - * Test if a node is a `FalseLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFalseLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `FalseLiteral`. - */ -declare function isFalseLiteral(node: ts.Node): node is ts.FalseLiteral; -/** - * Test if a node is an `ImportExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isImportExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ImportExpression`. - */ -declare function isImportExpression(node: ts.Node): node is ts.ImportExpression; -/** - * Test if a node is an {@link ImportKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isImportKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link ImportKeyword}. - */ -declare function isImportKeyword(node: ts.Node): node is ImportKeyword; -/** - * Test if a node is an `InKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isInKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `InKeyword`. - */ -declare function isInKeyword(node: ts.Node): node is ts.InKeyword; -/** - * Test if a node is an `InputFiles`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isInputFiles(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `InputFiles`. - */ -declare function isInputFiles(node: ts.Node): node is ts.InputFiles; -/** - * Test if a node is a `JSDocText`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocText(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocText`. - */ -declare function isJSDocText(node: ts.Node): node is ts.JSDocText; -/** - * Test if a node is a `JsonMinusNumericLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsonMinusNumericLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsonMinusNumericLiteral`. - */ -declare function isJsonMinusNumericLiteral(node: ts.Node): node is ts.JsonMinusNumericLiteral; -/** - * Test if a node is a {@link NeverKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNeverKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NeverKeyword}. - */ -declare function isNeverKeyword(node: ts.Node): node is NeverKeyword; -/** - * Test if a node is a {@link NullKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNullKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NullKeyword}. - */ -declare function isNullKeyword(node: ts.Node): node is NullKeyword; -/** - * Test if a node is a `NullLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNullLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NullLiteral`. - */ -declare function isNullLiteral(node: ts.Node): node is ts.NullLiteral; -/** - * Test if a node is a {@link NumberKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNumberKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link NumberKeyword}. - */ -declare function isNumberKeyword(node: ts.Node): node is NumberKeyword; -/** - * Test if a node is an {@link ObjectKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link ObjectKeyword}. - */ -declare function isObjectKeyword(node: ts.Node): node is ObjectKeyword; -/** - * Test if a node is an `OutKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isOutKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `OutKeyword`. - */ -declare function isOutKeyword(node: ts.Node): node is ts.OutKeyword; -/** - * Test if a node is an `OverrideKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isOverrideKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `OverrideKeyword`. - */ -declare function isOverrideKeyword(node: ts.Node): node is ts.OverrideKeyword; -/** - * Test if a node is a `PrivateKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPrivateKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PrivateKeyword`. - */ -declare function isPrivateKeyword(node: ts.Node): node is ts.PrivateKeyword; -/** - * Test if a node is a `ProtectedKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isProtectedKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ProtectedKeyword`. - */ -declare function isProtectedKeyword(node: ts.Node): node is ts.ProtectedKeyword; -/** - * Test if a node is a `PublicKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPublicKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PublicKeyword`. - */ -declare function isPublicKeyword(node: ts.Node): node is ts.PublicKeyword; -/** - * Test if a node is a `QuestionDotToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isQuestionDotToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isQuestionDotToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `QuestionDotToken`. - */ -declare function isQuestionDotToken(node: ts.Node): node is ts.QuestionDotToken; -/** - * Test if a node is a `QuestionToken`. - * @deprecated With TypeScript v5, in favor of typescript's `isQuestionToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isQuestionToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `QuestionToken`. - */ -declare function isQuestionToken(node: ts.Node): node is ts.QuestionToken; -/** - * Test if a node is a `ReadonlyKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isReadonlyKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ReadonlyKeyword`. - */ -declare function isReadonlyKeyword(node: ts.Node): node is ts.ReadonlyKeyword; -/** - * Test if a node is a `StaticKeyword`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isStaticKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `StaticKeyword`. - */ -declare function isStaticKeyword(node: ts.Node): node is ts.StaticKeyword; -/** - * Test if a node is a {@link StringKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isStringKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link StringKeyword}. - */ -declare function isStringKeyword(node: ts.Node): node is StringKeyword; -/** - * Test if a node is a `SuperExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperExpression`. - */ -declare function isSuperExpression(node: ts.Node): node is ts.SuperExpression; -/** - * Test if a node is a {@link SuperKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link SuperKeyword}. - */ -declare function isSuperKeyword(node: ts.Node): node is SuperKeyword; -/** - * Test if a node is a {@link SymbolKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSymbolKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link SymbolKeyword}. - */ -declare function isSymbolKeyword(node: ts.Node): node is SymbolKeyword; -/** - * Test if a node is a `SyntaxList`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSyntaxList(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SyntaxList`. - */ -declare function isSyntaxList(node: ts.Node): node is ts.SyntaxList; -/** - * Test if a node is a `ThisExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isThisExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ThisExpression`. - */ -declare function isThisExpression(node: ts.Node): node is ts.ThisExpression; -/** - * Test if a node is a {@link ThisKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isThisKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link ThisKeyword}. - */ -declare function isThisKeyword(node: ts.Node): node is ThisKeyword; -/** - * Test if a node is a {@link TrueKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTrueKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link TrueKeyword}. - */ -declare function isTrueKeyword(node: ts.Node): node is TrueKeyword; -/** - * Test if a node is a `TrueLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTrueLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TrueLiteral`. - */ -declare function isTrueLiteral(node: ts.Node): node is ts.TrueLiteral; -/** - * Test if a node is an {@link UndefinedKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUndefinedKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link UndefinedKeyword}. - */ -declare function isUndefinedKeyword(node: ts.Node): node is UndefinedKeyword; -/** - * Test if a node is an {@link UnknownKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnknownKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an {@link UnknownKeyword}. - */ -declare function isUnknownKeyword(node: ts.Node): node is UnknownKeyword; -/** - * Test if a node is an `UnparsedPrologue`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedPrologue(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedPrologue`. - */ -declare function isUnparsedPrologue(node: ts.Node): node is ts.UnparsedPrologue; -/** - * Test if a node is an `UnparsedSyntheticReference`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedSyntheticReference(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedSyntheticReference`. - */ -declare function isUnparsedSyntheticReference(node: ts.Node): node is ts.UnparsedSyntheticReference; -/** - * Test if a node is a {@link VoidKeyword}. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isVoidKeyword(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a {@link VoidKeyword}. - */ -declare function isVoidKeyword(node: ts.Node): node is VoidKeyword; - -/** - * Test if a node is an `AccessExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessExpression`. - */ -declare function isAccessExpression(node: ts.Node): node is ts.AccessExpression; -/** - * Test if a node is an `AccessibilityModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessibilityModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessibilityModifier`. - */ -declare function isAccessibilityModifier(node: ts.Node): node is ts.AccessibilityModifier; -/** - * Test if a node is an `AccessorDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isAccessor`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAccessorDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AccessorDeclaration`. - */ -declare function isAccessorDeclaration(node: ts.Node): node is ts.AccessorDeclaration; -/** - * Test if a node is an `ArrayBindingElement`. - * @deprecated With TypeScript v5, in favor of typescript's `isArrayBindingElement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isArrayBindingElement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ArrayBindingElement`. - */ -declare function isArrayBindingElement(node: ts.Node): node is ts.ArrayBindingElement; -/** - * Test if a node is an `ArrayBindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isArrayBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ArrayBindingOrAssignmentPattern`. - */ -declare function isArrayBindingOrAssignmentPattern(node: ts.Node): node is ts.ArrayBindingOrAssignmentPattern; -/** - * Test if a node is an `AssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `AssignmentPattern`. - */ -declare function isAssignmentPattern(node: ts.Node): node is ts.AssignmentPattern; -/** - * Test if a node is a `BindingOrAssignmentElementRestIndicator`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentElementRestIndicator(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentElementRestIndicator`. - */ -declare function isBindingOrAssignmentElementRestIndicator(node: ts.Node): node is ts.BindingOrAssignmentElementRestIndicator; -/** - * Test if a node is a `BindingOrAssignmentElementTarget`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentElementTarget(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentElementTarget`. - */ -declare function isBindingOrAssignmentElementTarget(node: ts.Node): node is ts.BindingOrAssignmentElementTarget; -/** - * Test if a node is a `BindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingOrAssignmentPattern`. - */ -declare function isBindingOrAssignmentPattern(node: ts.Node): node is ts.BindingOrAssignmentPattern; -/** - * Test if a node is a `BindingPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBindingPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BindingPattern`. - */ -declare function isBindingPattern(node: ts.Node): node is ts.BindingPattern; -/** - * Test if a node is a `BlockLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBlockLike(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BlockLike`. - */ -declare function isBlockLike(node: ts.Node): node is ts.BlockLike; -/** - * Test if a node is a `BooleanLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isBooleanLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `BooleanLiteral`. - */ -declare function isBooleanLiteral(node: ts.Node): node is ts.BooleanLiteral; -/** - * Test if a node is a `ClassLikeDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isClassLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isClassLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ClassLikeDeclaration`. - */ -declare function isClassLikeDeclaration(node: ts.Node): node is ts.ClassLikeDeclaration; -/** - * Test if a node is a `ClassMemberModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isClassMemberModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ClassMemberModifier`. - */ -declare function isClassMemberModifier(node: ts.Node): node is ts.ClassMemberModifier; -/** - * Test if a node is a `DeclarationName`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationName`. - */ -declare function isDeclarationName(node: ts.Node): node is ts.DeclarationName; -/** - * Test if a node is a `DeclarationWithTypeParameterChildren`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationWithTypeParameterChildren(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationWithTypeParameterChildren`. - */ -declare function isDeclarationWithTypeParameterChildren(node: ts.Node): node is ts.DeclarationWithTypeParameterChildren; -/** - * Test if a node is a `DeclarationWithTypeParameters`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDeclarationWithTypeParameters(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DeclarationWithTypeParameters`. - */ -declare function isDeclarationWithTypeParameters(node: ts.Node): node is ts.DeclarationWithTypeParameters; -/** - * Test if a node is a `DestructuringPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isDestructuringPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `DestructuringPattern`. - */ -declare function isDestructuringPattern(node: ts.Node): node is ts.DestructuringPattern; -/** - * Test if a node is an `EntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EntityNameExpression`. - */ -declare function isEntityNameExpression(node: ts.Node): node is ts.EntityNameExpression; -/** - * Test if a node is an `EntityNameOrEntityNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isEntityNameOrEntityNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `EntityNameOrEntityNameExpression`. - */ -declare function isEntityNameOrEntityNameExpression(node: ts.Node): node is ts.EntityNameOrEntityNameExpression; -/** - * Test if a node is a `ForInOrOfStatement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isForInOrOfStatement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ForInOrOfStatement`. - */ -declare function isForInOrOfStatement(node: ts.Node): node is ts.ForInOrOfStatement; -/** - * Test if a node is a `FunctionLikeDeclaration`. - * @deprecated With TypeScript v5, in favor of typescript's `isFunctionLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFunctionLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `FunctionLikeDeclaration`. - */ -declare function isFunctionLikeDeclaration(node: ts.Node): node is ts.FunctionLikeDeclaration; -/** - * Test if a node is a `HasDecorators`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasDecorators(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasDecorators`. - */ -declare function hasDecorators(node: ts.Node): node is ts.HasDecorators; -/** - * Test if a node is a `HasExpressionInitializer`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasExpressionInitializer(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasExpressionInitializer`. - */ -declare function hasExpressionInitializer(node: ts.Node): node is ts.HasExpressionInitializer; -/** - * Test if a node is a `HasInitializer`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasInitializer(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasInitializer`. - */ -declare function hasInitializer(node: ts.Node): node is ts.HasInitializer; -/** - * Test if a node is a `HasJSDoc`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasJSDoc(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasJSDoc`. - */ -declare function hasJSDoc(node: ts.Node): node is ts.HasJSDoc; -/** - * Test if a node is a `HasModifiers`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasModifiers(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasModifiers`. - */ -declare function hasModifiers(node: ts.Node): node is ts.HasModifiers; -/** - * Test if a node is a `HasType`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasType(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasType`. - */ -declare function hasType(node: ts.Node): node is ts.HasType; -/** - * Test if a node is a `HasTypeArguments`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (hasTypeArguments(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `HasTypeArguments`. - */ -declare function hasTypeArguments(node: ts.Node): node is ts.HasTypeArguments; -/** - * Test if a node is a `JSDocComment`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocComment(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocComment`. - */ -declare function isJSDocComment(node: ts.Node): node is ts.JSDocComment; -/** - * Test if a node is a `JSDocNamespaceBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocNamespaceBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocNamespaceBody`. - */ -declare function isJSDocNamespaceBody(node: ts.Node): node is ts.JSDocNamespaceBody; -/** - * Test if a node is a `JSDocTypeReferencingNode`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJSDocTypeReferencingNode(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JSDocTypeReferencingNode`. - */ -declare function isJSDocTypeReferencingNode(node: ts.Node): node is ts.JSDocTypeReferencingNode; -/** - * Test if a node is a `JsonObjectExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsonObjectExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsonObjectExpression`. - */ -declare function isJsonObjectExpression(node: ts.Node): node is ts.JsonObjectExpression; -/** - * Test if a node is a `JsxAttributeLike`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxAttributeLike`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxAttributeLike(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxAttributeLike`. - */ -declare function isJsxAttributeLike(node: ts.Node): node is ts.JsxAttributeLike; -/** - * Test if a node is a `JsxAttributeValue`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxAttributeValue(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxAttributeValue`. - */ -declare function isJsxAttributeValue(node: ts.Node): node is ts.JsxAttributeValue; -/** - * Test if a node is a `JsxChild`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxChild`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxChild(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxChild`. - */ -declare function isJsxChild(node: ts.Node): node is ts.JsxChild; -/** - * Test if a node is a `JsxTagNameExpression`. - * @deprecated With TypeScript v5, in favor of typescript's `isJsxTagNameExpression`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isJsxTagNameExpression(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `JsxTagNameExpression`. - */ -declare function isJsxTagNameExpression(node: ts.Node): node is ts.JsxTagNameExpression; -/** - * Test if a node is a `LiteralToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isLiteralToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `LiteralToken`. - */ -declare function isLiteralToken(node: ts.Node): node is ts.LiteralToken; -/** - * Test if a node is a `ModuleBody`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleBody`. - */ -declare function isModuleBody(node: ts.Node): node is ts.ModuleBody; -/** - * Test if a node is a `ModuleName`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleName`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleName(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleName`. - */ -declare function isModuleName(node: ts.Node): node is ts.ModuleName; -/** - * Test if a node is a `ModuleReference`. - * @deprecated With TypeScript v5, in favor of typescript's `isModuleReference`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isModuleReference(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ModuleReference`. - */ -declare function isModuleReference(node: ts.Node): node is ts.ModuleReference; -/** - * Test if a node is a `NamedImportBindings`. - * @deprecated With TypeScript v5, in favor of typescript's `isNamedImportBindings`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedImportBindings(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamedImportBindings`. - */ -declare function isNamedImportBindings(node: ts.Node): node is ts.NamedImportBindings; -/** - * Test if a node is a `NamedImportsOrExports`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamedImportsOrExports(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamedImportsOrExports`. - */ -declare function isNamedImportsOrExports(node: ts.Node): node is ts.NamedImportsOrExports; -/** - * Test if a node is a `NamespaceBody`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isNamespaceBody(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `NamespaceBody`. - */ -declare function isNamespaceBody(node: ts.Node): node is ts.NamespaceBody; -/** - * Test if a node is an `ObjectBindingOrAssignmentElement`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectBindingOrAssignmentElement(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentElement`. - */ -declare function isObjectBindingOrAssignmentElement(node: ts.Node): node is ts.ObjectBindingOrAssignmentElement; -/** - * Test if a node is an `ObjectBindingOrAssignmentPattern`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectBindingOrAssignmentPattern(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentPattern`. - */ -declare function isObjectBindingOrAssignmentPattern(node: ts.Node): node is ts.ObjectBindingOrAssignmentPattern; -/** - * Test if a node is an `ObjectTypeDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isObjectTypeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `ObjectTypeDeclaration`. - */ -declare function isObjectTypeDeclaration(node: ts.Node): node is ts.ObjectTypeDeclaration; -/** - * Test if a node is a `ParameterPropertyModifier`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isParameterPropertyModifier(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `ParameterPropertyModifier`. - */ -declare function isParameterPropertyModifier(node: ts.Node): node is ts.ParameterPropertyModifier; -/** - * Test if a node is a `PropertyNameLiteral`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPropertyNameLiteral(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PropertyNameLiteral`. - */ -declare function isPropertyNameLiteral(node: ts.Node): node is ts.PropertyNameLiteral; -/** - * Test if a node is a `PseudoLiteralToken`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isPseudoLiteralToken(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `PseudoLiteralToken`. - */ -declare function isPseudoLiteralToken(node: ts.Node): node is ts.PseudoLiteralToken; -/** - * Test if a node is a `SignatureDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSignatureDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SignatureDeclaration`. - */ -declare function isSignatureDeclaration(node: ts.Node): node is ts.SignatureDeclaration; -/** - * Test if a node is a `SuperProperty`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isSuperProperty(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `SuperProperty`. - */ -declare function isSuperProperty(node: ts.Node): node is ts.SuperProperty; -/** - * Test if a node is a `TypeOnlyCompatibleAliasDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTypeOnlyCompatibleAliasDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TypeOnlyCompatibleAliasDeclaration`. - */ -declare function isTypeOnlyCompatibleAliasDeclaration(node: ts.Node): node is ts.TypeOnlyCompatibleAliasDeclaration; -/** - * Test if a node is a `TypeReferenceType`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isTypeReferenceType(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `TypeReferenceType`. - */ -declare function isTypeReferenceType(node: ts.Node): node is ts.TypeReferenceType; -/** - * Test if a node is an `UnionOrIntersectionTypeNode`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnionOrIntersectionTypeNode(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnionOrIntersectionTypeNode`. - */ -declare function isUnionOrIntersectionTypeNode(node: ts.Node): node is ts.UnionOrIntersectionTypeNode; -/** - * Test if a node is an `UnparsedSourceText`. - * @deprecated With TypeScript v5 - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isUnparsedSourceText(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be an `UnparsedSourceText`. - */ -declare function isUnparsedSourceText(node: ts.Node): node is ts.UnparsedSourceText; -/** - * Test if a node is a `VariableLikeDeclaration`. - * @category Nodes - Type Guards - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isVariableLikeDeclaration(node)) { - * // ... - * } - * ``` - * @returns Whether the given node appears to be a `VariableLikeDeclaration`. - */ -declare function isVariableLikeDeclaration(node: ts.Node): node is ts.VariableLikeDeclaration; - -/** - * Is the node a scope boundary, specifically due to it being a function. - * @category Scope Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * if (isFunctionScopeBoundary(node, ts.ObjectFlags.Anonymous)) { - * // ... - * } - * ``` - */ -declare function isFunctionScopeBoundary(node: ts.Node): boolean; - -/** - * Test of the kind given is for assignment. - * @category Syntax Utilities - * @example - * ```ts - * declare const kind: ts.SyntaxKind; - * - * isAssignmentKind(kind); - * ``` - */ -declare function isAssignmentKind(kind: ts.SyntaxKind): boolean; -/** - * Test if a string is numeric. - * @category Syntax Utilities - * @example - * ```ts - * isNumericPropertyName("abc"); // false - * isNumericPropertyName("123"); // true - * ``` - */ -declare function isNumericPropertyName(name: string | ts.__String): boolean; -/** - * Determines whether the given text can be used to access a property with a `PropertyAccessExpression` while preserving the property's name. - * @category Syntax Utilities - * @example - * ```ts - * isValidPropertyAccess("abc"); // true - * isValidPropertyAccess("123"); // false - * ``` - */ -declare function isValidPropertyAccess(text: string, languageVersion?: ts.ScriptTarget): boolean; - -/** - * Callback type used for {@link forEachToken}. - * @category Callbacks - */ -type ForEachTokenCallback = (token: ts.Node) => void; -/** - * Iterates over all tokens of `node` - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const node: ts.Node; - * - * forEachToken(node, (token) => { - * console.log("Found token:", token.getText()); - * }); - * ``` - * @param node - The node whose tokens should be visited - * @param callback - Is called for every token contained in `node` - */ -declare function forEachToken(node: ts.Node, callback: ForEachTokenCallback, sourceFile?: ts.SourceFile): void; - -/** - * Get the `CallSignatures` of the given type. - * @category Types - Getters - * @example - * ```ts - * declare const type: ts.Type; - * - * getCallSignaturesOfType(type); - * ``` - */ -declare function getCallSignaturesOfType(type: ts.Type): readonly ts.Signature[]; -/** - * Get the property with the given name on the given type (if it exists). - * @category Types - Getters - * @example - * ```ts - * declare const property: ts.Symbol; - * declare const type: ts.Type; - * - * getPropertyOfType(type, property.getEscapedName()); - * ``` - */ -declare function getPropertyOfType(type: ts.Type, name: ts.__String): ts.Symbol | undefined; -/** - * Retrieves a type symbol corresponding to a well-known string name. - * @category Types - Getters - * @example - * ```ts - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * getWellKnownSymbolPropertyOfType(type, "asyncIterator", typeChecker); - * ``` - */ -declare function getWellKnownSymbolPropertyOfType(type: ts.Type, wellKnownSymbolName: string, typeChecker: ts.TypeChecker): ts.Symbol | undefined; - -/** - * A "any" intrinsic type. - * @category Type Types - */ -interface IntrinsicAnyType extends IntrinsicType { - intrinsicName: "any"; -} -/** - * Determines whether the given type is the "any" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicAnyType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicAnyType(type: ts.Type): type is IntrinsicAnyType; -/** - * A "boolean" intrinsic type. - * @category Type Types - */ -interface IntrinsicBooleanType extends IntrinsicType { - intrinsicName: "boolean"; -} -/** - * Determines whether the given type is the "boolean" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicBooleanType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicBooleanType(type: ts.Type): type is IntrinsicBooleanType; -/** - * A "bigint" intrinsic type. - * @category Type Types - */ -interface IntrinsicBigIntType extends IntrinsicType { - intrinsicName: "bigint"; -} -/** - * Determines whether the given type is the "bigint" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicBigIntType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicBigIntType(type: ts.Type): type is IntrinsicBigIntType; -/** - * An "error" intrinsic type. - * - * This refers to a type generated when TypeScript encounters an error while - * trying to resolve the type. - * @category Type Types - */ -interface IntrinsicErrorType extends IntrinsicType { - intrinsicName: "error"; -} -/** - * Determines whether the given type is the "error" intrinsic type. - * - * The intrinsic error type occurs when TypeScript encounters an error while - * trying to resolve the type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicErrorType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicErrorType(type: ts.Type): type is IntrinsicErrorType; -/** - * A "symbol" intrinsic type. - * @category Type Types - */ -interface IntrinsicESSymbolType extends IntrinsicType { - intrinsicName: "symbol"; -} -/** - * Determines whether the given type is the "symbol" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicESSymbolType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicESSymbolType(type: ts.Type): type is IntrinsicESSymbolType; -/** - * An intrinsic type. - * @category Type Types - */ -interface IntrinsicType extends ts.Type { - intrinsicName: string; - objectFlags: ts.ObjectFlags; -} -/** - * Test if a type is an {@link IntrinsicType}. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicType(type: ts.Type): type is IntrinsicType; -/** - * A "never" intrinsic type. - * @category Type Types - */ -interface IntrinsicNeverType extends IntrinsicType { - intrinsicName: "never"; -} -/** - * Determines whether the given type is the "never" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNeverType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNeverType(type: ts.Type): type is IntrinsicNeverType; -/** - * A non-primitive intrinsic type. - * E.g. An "object" intrinsic type. - * @category Type Types - */ -interface IntrinsicNonPrimitiveType extends IntrinsicType { - intrinsicName: ""; -} -/** - * Determines whether the given type is a non-primitive intrinsic type. - * E.g. An "object" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNonPrimitiveType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNonPrimitiveType(type: ts.Type): type is IntrinsicNonPrimitiveType; -/** - * A "null" intrinsic type. - * @category Type Types - */ -interface IntrinsicNullType extends IntrinsicType { - intrinsicName: "null"; -} -/** - * Determines whether the given type is the "null" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNullType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNullType(type: ts.Type): type is IntrinsicNullType; -/** - * A "number" intrinsic type. - * @category Type Types - */ -interface IntrinsicNumberType extends IntrinsicType { - intrinsicName: "number"; -} -/** - * Determines whether the given type is the "number" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicNumberType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicNumberType(type: ts.Type): type is IntrinsicNumberType; -/** - * A "string" intrinsic type. - * @category Type Types - */ -interface IntrinsicStringType extends IntrinsicType { - intrinsicName: "string"; -} -/** - * Determines whether the given type is the "string" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicStringType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicStringType(type: ts.Type): type is IntrinsicStringType; -/** - * An "undefined" intrinsic type. - * @category Type Types - */ -interface IntrinsicUndefinedType extends IntrinsicType { - intrinsicName: "undefined"; -} -/** - * Determines whether the given type is the "undefined" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicUndefinedType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicUndefinedType(type: ts.Type): type is IntrinsicUndefinedType; -/** - * An "unknown" intrinsic type. - * @category Type Types - */ -interface IntrinsicUnknownType extends IntrinsicType { - intrinsicName: "unknown"; -} -/** - * Determines whether the given type is the "unknown" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicUnknownType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicUnknownType(type: ts.Type): type is IntrinsicUnknownType; -/** - * A "void" intrinsic type. - * @category Type Types - */ -interface IntrinsicVoidType extends IntrinsicType { - intrinsicName: "void"; -} -/** - * Determines whether the given type is the "void" intrinsic type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntrinsicVoidType(type)) { - * // ... - * } - * ``` - */ -declare function isIntrinsicVoidType(type: ts.Type): type is IntrinsicVoidType; - -/** - * A type that is both an {@link IntrinsicType} and a `FreshableType` - * @category Type Types - */ -interface FreshableIntrinsicType extends ts.FreshableType, IntrinsicType { -} -/** - * Test if a type is a `FreshableIntrinsicType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFreshableIntrinsicType(type)) { - * // ... - * } - */ -declare function isFreshableIntrinsicType(type: ts.Type): type is FreshableIntrinsicType; -/** - * Test if a type is a `TupleTypeReference`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTupleTypeReference(type)) { - * // ... - * } - */ -declare function isTupleTypeReference(type: ts.Type): type is ts.TupleTypeReference; - -/** - * A boolean literal. - * i.e. Either a "true" or "false" literal. - * @category Type Types - */ -interface BooleanLiteralType extends UnknownLiteralType { - intrinsicName: "false" | "true"; - value: boolean; -} -/** - * Determines whether the given type is a boolean literal type. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isBooleanLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isBooleanLiteralType(type: ts.Type): type is BooleanLiteralType; -/** - * Test if a type is a `BigIntLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isBigIntLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; -/** - * A "false" literal. - * @category Type Types - */ -interface FalseLiteralType extends BooleanLiteralType { - intrinsicName: "false"; - value: false; -} -/** - * Determines whether the given type is a boolean literal type for "false". - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFalseLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isFalseLiteralType(type: ts.Type): type is FalseLiteralType; -/** - * Test if a type is a `LiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isLiteralType(type: ts.Type): type is ts.LiteralType; -/** - * Test if a type is a `NumberLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isNumberLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isNumberLiteralType(type: ts.Type): type is ts.NumberLiteralType; -/** - * Test if a type is a `StringLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isStringLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isStringLiteralType(type: ts.Type): type is ts.StringLiteralType; -/** - * Test if a type is a `TemplateLiteralType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTemplateLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; -/** - * A "true" literal. - * @category Type Types - */ -interface TrueLiteralType extends BooleanLiteralType { - intrinsicName: "true"; - value: true; -} -/** - * Determines whether the given type is a boolean literal type for "true". - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTrueLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isTrueLiteralType(type: ts.Type): type is TrueLiteralType; -/** - * `LiteralType` from typescript except that it allows for it to work on arbitrary types. - * @category Type Types - */ -interface UnknownLiteralType extends FreshableIntrinsicType { - value: unknown; -} -/** - * Test if a type is a {@link UnknownLiteralType}. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnknownLiteralType(type)) { - * // ... - * } - * ``` - */ -declare function isUnknownLiteralType(type: ts.Type): type is UnknownLiteralType; - -/** - * Test if a type is a `EvolvingArrayType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isEvolvingArrayType(type)) { - * // ... - * } - * ``` - */ -declare function isEvolvingArrayType(type: ts.Type): type is ts.EvolvingArrayType; -/** - * Test if a type is a `TupleType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTupleType(type)) { - * // ... - * } - * ``` - */ -declare function isTupleType(type: ts.Type): type is ts.TupleType; -/** - * Test if a type is a `TypeReference`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeReference(type)) { - * // ... - * } - * ``` - */ -declare function isTypeReference(type: ts.Type): type is ts.TypeReference; - -/** - * Test if a type is a `ConditionalType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isConditionalType(type)) { - * // ... - * } - * ``` - */ -declare function isConditionalType(type: ts.Type): type is ts.ConditionalType; -/** - * Test if a type is a `EnumType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isEnumType(type)) { - * // ... - * } - * ``` - */ -declare function isEnumType(type: ts.Type): type is ts.EnumType; -/** - * Test if a type is a `FreshableType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFreshableType(type)) { - * // ... - * } - * ``` - */ -declare function isFreshableType(type: ts.Type): type is ts.FreshableType; -/** - * Test if a type is a `IndexType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIndexType(type)) { - * // ... - * } - * ``` - */ -declare function isIndexType(type: ts.Type): type is ts.IndexType; -/** - * Test if a type is a `IndexedAccessType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIndexedAccessType(type)) { - * // ... - * } - * ``` - */ -declare function isIndexedAccessType(type: ts.Type): type is ts.IndexedAccessType; -/** - * Test if a type is a `InstantiableType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isInstantiableType(type)) { - * // ... - * } - * ``` - */ -declare function isInstantiableType(type: ts.Type): type is ts.InstantiableType; -/** - * Test if a type is a `IntersectionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isIntersectionType(type)) { - * // ... - * } - * ``` - */ -declare function isIntersectionType(type: ts.Type): type is ts.IntersectionType; -/** - * Test if a type is a `ObjectType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isObjectType(type)) { - * // ... - * } - * ``` - */ -declare function isObjectType(type: ts.Type): type is ts.ObjectType; -/** - * Test if a type is a `StringMappingType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isStringMappingType(type)) { - * // ... - * } - * ``` - */ -declare function isStringMappingType(type: ts.Type): type is ts.StringMappingType; -/** - * Test if a type is a `SubstitutionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isSubstitutionType(type)) { - * // ... - * } - * ``` - */ -declare function isSubstitutionType(type: ts.Type): type is ts.SubstitutionType; -/** - * Test if a type is a `TypeParameter`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeParameter(type)) { - * // ... - * } - * ``` - */ -declare function isTypeParameter(type: ts.Type): type is ts.TypeParameter; -/** - * Test if a type is a `TypeVariable`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isTypeVariable(type)) { - * // ... - * } - * ``` - */ -declare function isTypeVariable(type: ts.Type): type is ts.TypeVariable; -/** - * Test if a type is a `UnionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnionType(type)) { - * // ... - * } - * ``` - */ -declare function isUnionType(type: ts.Type): type is ts.UnionType; -/** - * Test if a type is a `UnionOrIntersectionType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUnionOrIntersectionType(type)) { - * // ... - * } - * ``` - */ -declare function isUnionOrIntersectionType(type: ts.Type): type is ts.UnionOrIntersectionType; -/** - * Test if a type is a `UniqueESSymbolType`. - * @category Types - Type Guards - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isUniqueESSymbolType(type)) { - * // ... - * } - * ``` - */ -declare function isUniqueESSymbolType(type: ts.Type): type is ts.UniqueESSymbolType; - -/** - * Determines whether a type is definitely falsy. This function doesn't unwrap union types. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * if (isFalsyType(type)) { - * // ... - * } - * ``` - */ -declare function isFalsyType(type: ts.Type): boolean; -/** - * Get the intersection type parts of the given type. - * - * If the given type is not a intersection type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of intersectionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function intersectionTypeParts(type: ts.Type): ts.Type[]; -/** - * Get the intersection or union type parts of the given type. - * - * Note that this is a shallow collection: it only returns `type.types` or `[type]`. - * - * If the given type is not an intersection or union type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of intersectionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function typeParts(type: ts.Type): ts.Type[]; -/** - * Determines whether writing to a certain property of a given type is allowed. - * @category Types - Utilities - * @example - * ```ts - * declare const property: ts.Symbol; - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * if (isPropertyReadonlyInType(type, property.getEscapedName(), typeChecker)) { - * // ... - * } - * ``` - */ -declare function isPropertyReadonlyInType(type: ts.Type, name: ts.__String, typeChecker: ts.TypeChecker): boolean; -/** - * Determines whether a type is thenable and thus can be used with `await`. - * @category Types - Utilities - * @example - * ```ts - * declare const node: ts.Node; - * declare const type: ts.Type; - * declare const typeChecker: ts.TypeChecker; - * - * if (isThenableType(typeChecker, node, type)) { - * // ... - * } - * ``` - */ -declare function isThenableType(typeChecker: ts.TypeChecker, node: ts.Node, type: ts.Type): boolean; -/** - * Determines whether a type is thenable and thus can be used with `await`. - * @category Types - Utilities - * @example - * ```ts - * declare const expression: ts.Expression; - * declare const typeChecker: ts.TypeChecker; - * - * if (isThenableType(typeChecker, expression)) { - * // ... - * } - * ``` - * @example - * ```ts - * declare const expression: ts.Expression; - * declare const typeChecker: ts.TypeChecker; - * declare const type: ts.Type; - * - * if (isThenableType(typeChecker, expression, type)) { - * // ... - * } - * ``` - */ -declare function isThenableType(typeChecker: ts.TypeChecker, node: ts.Expression, type?: ts.Type): boolean; -/** - * Test if the given symbol has a readonly declaration. - * @category Symbols - Utilities - * @example - * ```ts - * declare const symbol: ts.Symbol; - * declare const typeChecker: ts.TypeChecker; - * - * if (symbolHasReadonlyDeclaration(symbol, typeChecker)) { - * // ... - * } - * ``` - */ -declare function symbolHasReadonlyDeclaration(symbol: ts.Symbol, typeChecker: ts.TypeChecker): boolean; -/** - * Get the union type parts of the given type. - * - * If the given type is not a union type, an array contain only that type will be returned. - * @category Types - Utilities - * @example - * ```ts - * declare const type: ts.Type; - * - * for (const typePart of unionTypeParts(type)) { - * // ... - * } - * ``` - */ -declare function unionTypeParts(type: ts.Type): ts.Type[]; - -/** - * Which "domain"(s) (most commonly, type or value space) a declaration is within. - */ -declare enum DeclarationDomain { - Import = 8, - Namespace = 1, - Type = 2, - Value = 4, - Any = 7 -} - -/** - * Which "domain"(s) (most commonly, type or value space) a usage is within. - */ -declare enum UsageDomain { - Namespace = 1, - Type = 2, - TypeQuery = 8, - Value = 4, - ValueOrNamespace = 5, - Any = 7 -} - -/** - * How an item (type or value) was declared and/or referenced. - */ -interface UsageInfo { - /** - * Locations where the item was declared. - */ - declarations: ts.Identifier[]; - /** - * Which space(s) the item is within. - */ - domain: DeclarationDomain; - /** - * Whether the item was exported from its module or namespace scope. - */ - exported: boolean; - /** - * Whether the item's declaration was in the global scope. - */ - inGlobalScope: boolean; - /** - * Each reference to the item in the file. - */ - uses: Usage[]; -} -/** - * An instance of an item (type or value) being used. - */ -interface Usage { - /** - * Which space(s) the usage is within. - */ - domain: UsageDomain; - location: ts.Identifier; -} - -/** - * Creates a mapping of each declared type and value to its type information. - * @category Nodes - Other Utilities - * @example - * ```ts - * declare const sourceFile: ts.SourceFile; - * - * const usage = collectVariableUsage(sourceFile); - * - * for (const [identifier, information] of usage) { - * console.log(`${identifier.getText()} is used ${information.uses.length} time(s).`); - * } - * ``` - */ -declare function collectVariableUsage(sourceFile: ts.SourceFile): Map; - -export { AccessKind, type AnyKeyword, type BigIntKeyword, type BooleanCompilerOptions, type BooleanKeyword, type BooleanLiteralType, type ConstAssertionExpression, type ConstAssertionIdentifier, DeclarationDomain, type FalseKeyword, type FalseLiteralType, type ForEachCommentCallback, type ForEachTokenCallback, type FreshableIntrinsicType, type ImportKeyword, type IntrinsicAnyType, type IntrinsicBigIntType, type IntrinsicBooleanType, type IntrinsicESSymbolType, type IntrinsicErrorType, type IntrinsicNeverType, type IntrinsicNonPrimitiveType, type IntrinsicNullType, type IntrinsicNumberType, type IntrinsicStringType, type IntrinsicType, type IntrinsicUndefinedType, type IntrinsicUnknownType, type IntrinsicVoidType, type NamedDeclarationWithName, type NeverKeyword, type NullKeyword, type NumberKeyword, type NumericOrStringLikeLiteral, type ObjectKeyword, type StrictCompilerOption, type StringKeyword, type SuperKeyword, type SymbolKeyword, type ThisKeyword, type TrueKeyword, type TrueLiteralType, type UndefinedKeyword, type UnknownKeyword, type UnknownLiteralType, UsageDomain, type UsageInfo as VariableInfo, type Usage as VariableUse, type VoidKeyword, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInputFiles, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isUnknownLiteralType, isUnparsedPrologue, isUnparsedSourceText, isUnparsedSyntheticReference, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeParts, unionTypeParts }; diff --git a/graphql/node_modules/ts-api-utils/lib/index.js b/graphql/node_modules/ts-api-utils/lib/index.js deleted file mode 100644 index aa2e7591..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.js +++ /dev/null @@ -1,2336 +0,0 @@ -var __accessCheck = (obj, member, msg) => { - if (!member.has(obj)) - throw TypeError("Cannot " + msg); -}; -var __privateGet = (obj, member, getter) => { - __accessCheck(obj, member, "read from private field"); - return getter ? getter.call(obj) : member.get(obj); -}; -var __privateAdd = (obj, member, value) => { - if (member.has(obj)) - throw TypeError("Cannot add the same private member more than once"); - member instanceof WeakSet ? member.add(obj) : member.set(obj, value); -}; -var __privateSet = (obj, member, value, setter) => { - __accessCheck(obj, member, "write to private field"); - setter ? setter.call(obj, value) : member.set(obj, value); - return value; -}; -var __privateMethod = (obj, member, method) => { - __accessCheck(obj, member, "access private method"); - return method; -}; - -// src/comments.ts -import ts2 from "typescript"; - -// src/tokens.ts -import ts from "typescript"; -function forEachToken(node, callback, sourceFile = node.getSourceFile()) { - const queue = []; - while (true) { - if (ts.isTokenKind(node.kind)) { - callback(node); - } else if ( - // eslint-disable-next-line deprecation/deprecation -- need for support of TS < 4.7 - node.kind !== ts.SyntaxKind.JSDocComment - ) { - const children = node.getChildren(sourceFile); - if (children.length === 1) { - node = children[0]; - continue; - } - for (let i = children.length - 1; i >= 0; --i) { - queue.push(children[i]); - } - } - if (queue.length === 0) { - break; - } - node = queue.pop(); - } -} - -// src/comments.ts -function canHaveTrailingTrivia(token) { - switch (token.kind) { - case ts2.SyntaxKind.CloseBraceToken: - return token.parent.kind !== ts2.SyntaxKind.JsxExpression || !isJsxElementOrFragment(token.parent.parent); - case ts2.SyntaxKind.GreaterThanToken: - switch (token.parent.kind) { - case ts2.SyntaxKind.JsxOpeningElement: - return token.end !== token.parent.end; - case ts2.SyntaxKind.JsxOpeningFragment: - return false; - case ts2.SyntaxKind.JsxSelfClosingElement: - return token.end !== token.parent.end || // if end is not equal, this is part of the type arguments list - !isJsxElementOrFragment(token.parent.parent); - case ts2.SyntaxKind.JsxClosingElement: - case ts2.SyntaxKind.JsxClosingFragment: - return !isJsxElementOrFragment(token.parent.parent.parent); - } - } - return true; -} -function isJsxElementOrFragment(node) { - return node.kind === ts2.SyntaxKind.JsxElement || node.kind === ts2.SyntaxKind.JsxFragment; -} -function forEachComment(node, callback, sourceFile = node.getSourceFile()) { - const fullText = sourceFile.text; - const notJsx = sourceFile.languageVariant !== ts2.LanguageVariant.JSX; - return forEachToken( - node, - (token) => { - if (token.pos === token.end) { - return; - } - if (token.kind !== ts2.SyntaxKind.JsxText) { - ts2.forEachLeadingCommentRange( - fullText, - // skip shebang at position 0 - token.pos === 0 ? (ts2.getShebang(fullText) ?? "").length : token.pos, - commentCallback - ); - } - if (notJsx || canHaveTrailingTrivia(token)) { - return ts2.forEachTrailingCommentRange( - fullText, - token.end, - commentCallback - ); - } - }, - sourceFile - ); - function commentCallback(pos, end, kind) { - callback(fullText, { end, kind, pos }); - } -} - -// src/compilerOptions.ts -import ts3 from "typescript"; -function isCompilerOptionEnabled(options, option) { - switch (option) { - case "stripInternal": - case "declarationMap": - case "emitDeclarationOnly": - return options[option] === true && isCompilerOptionEnabled(options, "declaration"); - case "declaration": - return options.declaration || isCompilerOptionEnabled(options, "composite"); - case "incremental": - return options.incremental === void 0 ? isCompilerOptionEnabled(options, "composite") : options.incremental; - case "skipDefaultLibCheck": - return options.skipDefaultLibCheck || isCompilerOptionEnabled(options, "skipLibCheck"); - case "suppressImplicitAnyIndexErrors": - return options.suppressImplicitAnyIndexErrors === true && isCompilerOptionEnabled(options, "noImplicitAny"); - case "allowSyntheticDefaultImports": - return options.allowSyntheticDefaultImports !== void 0 ? options.allowSyntheticDefaultImports : isCompilerOptionEnabled(options, "esModuleInterop") || options.module === ts3.ModuleKind.System; - case "noUncheckedIndexedAccess": - return options.noUncheckedIndexedAccess === true && isCompilerOptionEnabled(options, "strictNullChecks"); - case "allowJs": - return options.allowJs === void 0 ? isCompilerOptionEnabled(options, "checkJs") : options.allowJs; - case "noImplicitAny": - case "noImplicitThis": - case "strictNullChecks": - case "strictFunctionTypes": - case "strictPropertyInitialization": - case "alwaysStrict": - case "strictBindCallApply": - return isStrictCompilerOptionEnabled( - options, - option - ); - } - return options[option] === true; -} -function isStrictCompilerOptionEnabled(options, option) { - return (options.strict ? options[option] !== false : options[option] === true) && (option !== "strictPropertyInitialization" || isStrictCompilerOptionEnabled(options, "strictNullChecks")); -} - -// src/flags.ts -import ts4 from "typescript"; -function isFlagSet(allFlags, flag) { - return (allFlags & flag) !== 0; -} -function isFlagSetOnObject(obj, flag) { - return isFlagSet(obj.flags, flag); -} -function isModifierFlagSet(node, flag) { - return isFlagSet(ts4.getCombinedModifierFlags(node), flag); -} -var isNodeFlagSet = isFlagSetOnObject; -function isObjectFlagSet(objectType, flag) { - return isFlagSet(objectType.objectFlags, flag); -} -var isSymbolFlagSet = isFlagSetOnObject; -var isTypeFlagSet = isFlagSetOnObject; - -// src/modifiers.ts -function includesModifier(modifiers, ...kinds) { - if (modifiers === void 0) { - return false; - } - for (const modifier of modifiers) { - if (kinds.includes(modifier.kind)) { - return true; - } - } - return false; -} - -// src/nodes/access.ts -import ts6 from "typescript"; - -// src/syntax.ts -import ts5 from "typescript"; -function isAssignmentKind(kind) { - return kind >= ts5.SyntaxKind.FirstAssignment && kind <= ts5.SyntaxKind.LastAssignment; -} -function isNumericPropertyName(name) { - return String(+name) === name; -} -function charSize(ch) { - return ch >= 65536 ? 2 : 1; -} -function isValidPropertyAccess(text, languageVersion = ts5.ScriptTarget.Latest) { - if (text.length === 0) { - return false; - } - let ch = text.codePointAt(0); - if (!ts5.isIdentifierStart(ch, languageVersion)) { - return false; - } - for (let i = charSize(ch); i < text.length; i += charSize(ch)) { - ch = text.codePointAt(i); - if (!ts5.isIdentifierPart(ch, languageVersion)) { - return false; - } - } - return true; -} - -// src/nodes/access.ts -var AccessKind = /* @__PURE__ */ ((AccessKind2) => { - AccessKind2[AccessKind2["None"] = 0] = "None"; - AccessKind2[AccessKind2["Read"] = 1] = "Read"; - AccessKind2[AccessKind2["Write"] = 2] = "Write"; - AccessKind2[AccessKind2["Delete"] = 4] = "Delete"; - AccessKind2[AccessKind2["ReadWrite"] = 3] = "ReadWrite"; - return AccessKind2; -})(AccessKind || {}); -function getAccessKind(node) { - const parent = node.parent; - switch (parent.kind) { - case ts6.SyntaxKind.DeleteExpression: - return 4 /* Delete */; - case ts6.SyntaxKind.PostfixUnaryExpression: - return 3 /* ReadWrite */; - case ts6.SyntaxKind.PrefixUnaryExpression: - return parent.operator === ts6.SyntaxKind.PlusPlusToken || parent.operator === ts6.SyntaxKind.MinusMinusToken ? 3 /* ReadWrite */ : 1 /* Read */; - case ts6.SyntaxKind.BinaryExpression: - return parent.right === node ? 1 /* Read */ : !isAssignmentKind(parent.operatorToken.kind) ? 1 /* Read */ : parent.operatorToken.kind === ts6.SyntaxKind.EqualsToken ? 2 /* Write */ : 3 /* ReadWrite */; - case ts6.SyntaxKind.ShorthandPropertyAssignment: - return parent.objectAssignmentInitializer === node ? 1 /* Read */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */; - case ts6.SyntaxKind.PropertyAssignment: - return parent.name === node ? 0 /* None */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */; - case ts6.SyntaxKind.ArrayLiteralExpression: - case ts6.SyntaxKind.SpreadElement: - case ts6.SyntaxKind.SpreadAssignment: - return isInDestructuringAssignment( - parent - ) ? 2 /* Write */ : 1 /* Read */; - case ts6.SyntaxKind.ParenthesizedExpression: - case ts6.SyntaxKind.NonNullExpression: - case ts6.SyntaxKind.TypeAssertionExpression: - case ts6.SyntaxKind.AsExpression: - return getAccessKind(parent); - case ts6.SyntaxKind.ForOfStatement: - case ts6.SyntaxKind.ForInStatement: - return parent.initializer === node ? 2 /* Write */ : 1 /* Read */; - case ts6.SyntaxKind.ExpressionWithTypeArguments: - return parent.parent.token === ts6.SyntaxKind.ExtendsKeyword && parent.parent.parent.kind !== ts6.SyntaxKind.InterfaceDeclaration ? 1 /* Read */ : 0 /* None */; - case ts6.SyntaxKind.ComputedPropertyName: - case ts6.SyntaxKind.ExpressionStatement: - case ts6.SyntaxKind.TypeOfExpression: - case ts6.SyntaxKind.ElementAccessExpression: - case ts6.SyntaxKind.ForStatement: - case ts6.SyntaxKind.IfStatement: - case ts6.SyntaxKind.DoStatement: - case ts6.SyntaxKind.WhileStatement: - case ts6.SyntaxKind.SwitchStatement: - case ts6.SyntaxKind.WithStatement: - case ts6.SyntaxKind.ThrowStatement: - case ts6.SyntaxKind.CallExpression: - case ts6.SyntaxKind.NewExpression: - case ts6.SyntaxKind.TaggedTemplateExpression: - case ts6.SyntaxKind.JsxExpression: - case ts6.SyntaxKind.Decorator: - case ts6.SyntaxKind.TemplateSpan: - case ts6.SyntaxKind.JsxOpeningElement: - case ts6.SyntaxKind.JsxSelfClosingElement: - case ts6.SyntaxKind.JsxSpreadAttribute: - case ts6.SyntaxKind.VoidExpression: - case ts6.SyntaxKind.ReturnStatement: - case ts6.SyntaxKind.AwaitExpression: - case ts6.SyntaxKind.YieldExpression: - case ts6.SyntaxKind.ConditionalExpression: - case ts6.SyntaxKind.CaseClause: - case ts6.SyntaxKind.JsxElement: - return 1 /* Read */; - case ts6.SyntaxKind.ArrowFunction: - return parent.body === node ? 1 /* Read */ : 2 /* Write */; - case ts6.SyntaxKind.PropertyDeclaration: - case ts6.SyntaxKind.VariableDeclaration: - case ts6.SyntaxKind.Parameter: - case ts6.SyntaxKind.EnumMember: - case ts6.SyntaxKind.BindingElement: - case ts6.SyntaxKind.JsxAttribute: - return parent.initializer === node ? 1 /* Read */ : 0 /* None */; - case ts6.SyntaxKind.PropertyAccessExpression: - return parent.expression === node ? 1 /* Read */ : 0 /* None */; - case ts6.SyntaxKind.ExportAssignment: - return parent.isExportEquals ? 1 /* Read */ : 0 /* None */; - } - return 0 /* None */; -} -function isInDestructuringAssignment(node) { - switch (node.kind) { - case ts6.SyntaxKind.ShorthandPropertyAssignment: - if (node.objectAssignmentInitializer !== void 0) { - return true; - } - case ts6.SyntaxKind.PropertyAssignment: - case ts6.SyntaxKind.SpreadAssignment: - node = node.parent; - break; - case ts6.SyntaxKind.SpreadElement: - if (node.parent.kind !== ts6.SyntaxKind.ArrayLiteralExpression) { - return false; - } - node = node.parent; - } - while (true) { - switch (node.parent.kind) { - case ts6.SyntaxKind.BinaryExpression: - return node.parent.left === node && node.parent.operatorToken.kind === ts6.SyntaxKind.EqualsToken; - case ts6.SyntaxKind.ForOfStatement: - return node.parent.initializer === node; - case ts6.SyntaxKind.ArrayLiteralExpression: - case ts6.SyntaxKind.ObjectLiteralExpression: - node = node.parent; - break; - case ts6.SyntaxKind.SpreadAssignment: - case ts6.SyntaxKind.PropertyAssignment: - node = node.parent.parent; - break; - case ts6.SyntaxKind.SpreadElement: - if (node.parent.parent.kind !== ts6.SyntaxKind.ArrayLiteralExpression) { - return false; - } - node = node.parent.parent; - break; - default: - return false; - } - } -} - -// src/nodes/typeGuards/compound.ts -import ts10 from "typescript"; - -// src/nodes/typeGuards/single.ts -import ts7 from "typescript"; -function isAbstractKeyword(node) { - return node.kind === ts7.SyntaxKind.AbstractKeyword; -} -function isAccessorKeyword(node) { - return node.kind === ts7.SyntaxKind.AccessorKeyword; -} -function isAnyKeyword(node) { - return node.kind === ts7.SyntaxKind.AnyKeyword; -} -function isAssertKeyword(node) { - return node.kind === ts7.SyntaxKind.AssertKeyword; -} -function isAssertsKeyword(node) { - return node.kind === ts7.SyntaxKind.AssertsKeyword; -} -function isAsyncKeyword(node) { - return node.kind === ts7.SyntaxKind.AsyncKeyword; -} -function isAwaitKeyword(node) { - return node.kind === ts7.SyntaxKind.AwaitKeyword; -} -function isBigIntKeyword(node) { - return node.kind === ts7.SyntaxKind.BigIntKeyword; -} -function isBooleanKeyword(node) { - return node.kind === ts7.SyntaxKind.BooleanKeyword; -} -function isColonToken(node) { - return node.kind === ts7.SyntaxKind.ColonToken; -} -function isConstKeyword(node) { - return node.kind === ts7.SyntaxKind.ConstKeyword; -} -function isDeclareKeyword(node) { - return node.kind === ts7.SyntaxKind.DeclareKeyword; -} -function isDefaultKeyword(node) { - return node.kind === ts7.SyntaxKind.DefaultKeyword; -} -function isDotToken(node) { - return node.kind === ts7.SyntaxKind.DotToken; -} -function isEndOfFileToken(node) { - return node.kind === ts7.SyntaxKind.EndOfFileToken; -} -function isEqualsGreaterThanToken(node) { - return node.kind === ts7.SyntaxKind.EqualsGreaterThanToken; -} -function isEqualsToken(node) { - return node.kind === ts7.SyntaxKind.EqualsToken; -} -function isExclamationToken(node) { - return node.kind === ts7.SyntaxKind.ExclamationToken; -} -function isExportKeyword(node) { - return node.kind === ts7.SyntaxKind.ExportKeyword; -} -function isFalseKeyword(node) { - return node.kind === ts7.SyntaxKind.FalseKeyword; -} -function isFalseLiteral(node) { - return node.kind === ts7.SyntaxKind.FalseKeyword; -} -function isImportExpression(node) { - return node.kind === ts7.SyntaxKind.ImportKeyword; -} -function isImportKeyword(node) { - return node.kind === ts7.SyntaxKind.ImportKeyword; -} -function isInKeyword(node) { - return node.kind === ts7.SyntaxKind.InKeyword; -} -function isInputFiles(node) { - return node.kind === ts7.SyntaxKind.InputFiles; -} -function isJSDocText(node) { - return node.kind === ts7.SyntaxKind.JSDocText; -} -function isJsonMinusNumericLiteral(node) { - return node.kind === ts7.SyntaxKind.PrefixUnaryExpression; -} -function isNeverKeyword(node) { - return node.kind === ts7.SyntaxKind.NeverKeyword; -} -function isNullKeyword(node) { - return node.kind === ts7.SyntaxKind.NullKeyword; -} -function isNullLiteral(node) { - return node.kind === ts7.SyntaxKind.NullKeyword; -} -function isNumberKeyword(node) { - return node.kind === ts7.SyntaxKind.NumberKeyword; -} -function isObjectKeyword(node) { - return node.kind === ts7.SyntaxKind.ObjectKeyword; -} -function isOutKeyword(node) { - return node.kind === ts7.SyntaxKind.OutKeyword; -} -function isOverrideKeyword(node) { - return node.kind === ts7.SyntaxKind.OverrideKeyword; -} -function isPrivateKeyword(node) { - return node.kind === ts7.SyntaxKind.PrivateKeyword; -} -function isProtectedKeyword(node) { - return node.kind === ts7.SyntaxKind.ProtectedKeyword; -} -function isPublicKeyword(node) { - return node.kind === ts7.SyntaxKind.PublicKeyword; -} -function isQuestionDotToken(node) { - return node.kind === ts7.SyntaxKind.QuestionDotToken; -} -function isQuestionToken(node) { - return node.kind === ts7.SyntaxKind.QuestionToken; -} -function isReadonlyKeyword(node) { - return node.kind === ts7.SyntaxKind.ReadonlyKeyword; -} -function isStaticKeyword(node) { - return node.kind === ts7.SyntaxKind.StaticKeyword; -} -function isStringKeyword(node) { - return node.kind === ts7.SyntaxKind.StringKeyword; -} -function isSuperExpression(node) { - return node.kind === ts7.SyntaxKind.SuperKeyword; -} -function isSuperKeyword(node) { - return node.kind === ts7.SyntaxKind.SuperKeyword; -} -function isSymbolKeyword(node) { - return node.kind === ts7.SyntaxKind.SymbolKeyword; -} -function isSyntaxList(node) { - return node.kind === ts7.SyntaxKind.SyntaxList; -} -function isThisExpression(node) { - return node.kind === ts7.SyntaxKind.ThisKeyword; -} -function isThisKeyword(node) { - return node.kind === ts7.SyntaxKind.ThisKeyword; -} -function isTrueKeyword(node) { - return node.kind === ts7.SyntaxKind.TrueKeyword; -} -function isTrueLiteral(node) { - return node.kind === ts7.SyntaxKind.TrueKeyword; -} -function isUndefinedKeyword(node) { - return node.kind === ts7.SyntaxKind.UndefinedKeyword; -} -function isUnknownKeyword(node) { - return node.kind === ts7.SyntaxKind.UnknownKeyword; -} -function isUnparsedPrologue(node) { - return node.kind === ts7.SyntaxKind.UnparsedPrologue; -} -function isUnparsedSyntheticReference(node) { - return node.kind === ts7.SyntaxKind.UnparsedSyntheticReference; -} -function isVoidKeyword(node) { - return node.kind === ts7.SyntaxKind.VoidKeyword; -} - -// src/nodes/typeGuards/union.ts -import ts9 from "typescript"; - -// src/utils.ts -import ts8 from "typescript"; -var [tsMajor, tsMinor] = ts8.versionMajorMinor.split(".").map((raw) => Number.parseInt(raw, 10)); -function isTsVersionAtLeast(major, minor = 0) { - return tsMajor > major || tsMajor === major && tsMinor >= minor; -} - -// src/nodes/typeGuards/union.ts -function isAccessExpression(node) { - return ts9.isPropertyAccessExpression(node) || ts9.isElementAccessExpression(node); -} -function isAccessibilityModifier(node) { - return isPublicKeyword(node) || isPrivateKeyword(node) || isProtectedKeyword(node); -} -function isAccessorDeclaration(node) { - return ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node); -} -function isArrayBindingElement(node) { - return ts9.isBindingElement(node) || ts9.isOmittedExpression(node); -} -function isArrayBindingOrAssignmentPattern(node) { - return ts9.isArrayBindingPattern(node) || ts9.isArrayLiteralExpression(node); -} -function isAssignmentPattern(node) { - return ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node); -} -function isBindingOrAssignmentElementRestIndicator(node) { - if (ts9.isSpreadElement(node) || ts9.isSpreadAssignment(node)) { - return true; - } - if (isTsVersionAtLeast(4, 4)) { - return ts9.isDotDotDotToken(node); - } - return false; -} -function isBindingOrAssignmentElementTarget(node) { - return isBindingOrAssignmentPattern(node) || ts9.isIdentifier(node) || ts9.isPropertyAccessExpression(node) || ts9.isElementAccessExpression(node) || ts9.isOmittedExpression(node); -} -function isBindingOrAssignmentPattern(node) { - return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node); -} -function isBindingPattern(node) { - return ts9.isObjectBindingPattern(node) || ts9.isArrayBindingPattern(node); -} -function isBlockLike(node) { - return ts9.isSourceFile(node) || ts9.isBlock(node) || ts9.isModuleBlock(node) || ts9.isCaseOrDefaultClause(node); -} -function isBooleanLiteral(node) { - return isTrueLiteral(node) || isFalseLiteral(node); -} -function isClassLikeDeclaration(node) { - return ts9.isClassDeclaration(node) || ts9.isClassExpression(node); -} -function isClassMemberModifier(node) { - return isAccessibilityModifier(node) || isReadonlyKeyword(node) || isStaticKeyword(node) || isAccessorKeyword(node); -} -function isDeclarationName(node) { - return ts9.isIdentifier(node) || ts9.isPrivateIdentifier(node) || ts9.isStringLiteralLike(node) || ts9.isNumericLiteral(node) || ts9.isComputedPropertyName(node) || ts9.isElementAccessExpression(node) || isBindingPattern(node) || isEntityNameExpression(node); -} -function isDeclarationWithTypeParameterChildren(node) { - return isSignatureDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeAliasDeclaration(node) || ts9.isJSDocTemplateTag(node); -} -function isDeclarationWithTypeParameters(node) { - return isDeclarationWithTypeParameterChildren(node) || ts9.isJSDocTypedefTag(node) || ts9.isJSDocCallbackTag(node) || ts9.isJSDocSignature(node); -} -function isDestructuringPattern(node) { - return isBindingPattern(node) || ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node); -} -function isEntityNameExpression(node) { - return ts9.isIdentifier(node) || isPropertyAccessEntityNameExpression(node); -} -function isEntityNameOrEntityNameExpression(node) { - return ts9.isEntityName(node) || isEntityNameExpression(node); -} -function isForInOrOfStatement(node) { - return ts9.isForInStatement(node) || ts9.isForOfStatement(node); -} -function isFunctionLikeDeclaration(node) { - return ts9.isFunctionDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node); -} -function hasDecorators(node) { - return ts9.isParameter(node) || ts9.isPropertyDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isClassExpression(node) || ts9.isClassDeclaration(node); -} -function hasExpressionInitializer(node) { - return ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isBindingElement(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertyAssignment(node) || ts9.isEnumMember(node); -} -function hasInitializer(node) { - return hasExpressionInitializer(node) || ts9.isForStatement(node) || ts9.isForInStatement(node) || ts9.isForOfStatement(node) || ts9.isJsxAttribute(node); -} -function hasJSDoc(node) { - if ( - // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isAccessorDeclaration(node) || ts9.isArrowFunction(node) || ts9.isBlock(node) || ts9.isBreakStatement(node) || ts9.isCallSignatureDeclaration(node) || ts9.isCaseClause(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isConstructorTypeNode(node) || ts9.isConstructSignatureDeclaration(node) || ts9.isContinueStatement(node) || ts9.isDebuggerStatement(node) || ts9.isDoStatement(node) || ts9.isEmptyStatement(node) || isEndOfFileToken(node) || ts9.isEnumDeclaration(node) || ts9.isEnumMember(node) || ts9.isExportAssignment(node) || ts9.isExportDeclaration(node) || ts9.isExportSpecifier(node) || ts9.isExpressionStatement(node) || ts9.isForInStatement(node) || ts9.isForOfStatement(node) || ts9.isForStatement(node) || ts9.isFunctionDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isFunctionTypeNode(node) || ts9.isIfStatement(node) || ts9.isImportDeclaration(node) || ts9.isImportEqualsDeclaration(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isJSDocFunctionType(node) || ts9.isLabeledStatement(node) || ts9.isMethodDeclaration(node) || ts9.isMethodSignature(node) || ts9.isModuleDeclaration(node) || ts9.isNamedTupleMember(node) || ts9.isNamespaceExportDeclaration(node) || ts9.isParameter(node) || ts9.isParenthesizedExpression(node) || ts9.isPropertyAssignment(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertySignature(node) || ts9.isReturnStatement(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isSpreadAssignment(node) || ts9.isSwitchStatement(node) || ts9.isThrowStatement(node) || ts9.isTryStatement(node) || ts9.isTypeAliasDeclaration(node) || ts9.isVariableDeclaration(node) || ts9.isVariableStatement(node) || ts9.isWhileStatement(node) || ts9.isWithStatement(node) - ) { - return true; - } - if (isTsVersionAtLeast(4, 4) && ts9.isClassStaticBlockDeclaration(node)) { - return true; - } - if (isTsVersionAtLeast(5, 0) && (ts9.isBinaryExpression(node) || ts9.isElementAccessExpression(node) || ts9.isIdentifier(node) || ts9.isJSDocSignature(node) || ts9.isObjectLiteralExpression(node) || ts9.isPropertyAccessExpression(node) || ts9.isTypeParameterDeclaration(node))) { - return true; - } - return false; -} -function hasModifiers(node) { - return ts9.isTypeParameterDeclaration(node) || ts9.isParameter(node) || ts9.isConstructorTypeNode(node) || ts9.isPropertySignature(node) || ts9.isPropertyDeclaration(node) || ts9.isMethodSignature(node) || ts9.isMethodDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node) || ts9.isClassExpression(node) || ts9.isVariableStatement(node) || ts9.isFunctionDeclaration(node) || ts9.isClassDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeAliasDeclaration(node) || ts9.isEnumDeclaration(node) || ts9.isModuleDeclaration(node) || ts9.isImportEqualsDeclaration(node) || ts9.isImportDeclaration(node) || ts9.isExportAssignment(node) || ts9.isExportDeclaration(node); -} -function hasType(node) { - return isSignatureDeclaration(node) || ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isPropertySignature(node) || ts9.isPropertyDeclaration(node) || ts9.isTypePredicateNode(node) || ts9.isParenthesizedTypeNode(node) || ts9.isTypeOperatorNode(node) || ts9.isMappedTypeNode(node) || ts9.isAssertionExpression(node) || ts9.isTypeAliasDeclaration(node) || ts9.isJSDocTypeExpression(node) || ts9.isJSDocNonNullableType(node) || ts9.isJSDocNullableType(node) || ts9.isJSDocOptionalType(node) || ts9.isJSDocVariadicType(node); -} -function hasTypeArguments(node) { - return ts9.isCallExpression(node) || ts9.isNewExpression(node) || ts9.isTaggedTemplateExpression(node) || ts9.isJsxOpeningElement(node) || ts9.isJsxSelfClosingElement(node); -} -function isJSDocComment(node) { - if (isJSDocText(node)) { - return true; - } - if (isTsVersionAtLeast(4, 4)) { - return ts9.isJSDocLink(node) || ts9.isJSDocLinkCode(node) || ts9.isJSDocLinkPlain(node); - } - return false; -} -function isJSDocNamespaceBody(node) { - return ts9.isIdentifier(node) || isJSDocNamespaceDeclaration(node); -} -function isJSDocTypeReferencingNode(node) { - return ts9.isJSDocVariadicType(node) || ts9.isJSDocOptionalType(node) || ts9.isJSDocNullableType(node) || ts9.isJSDocNonNullableType(node); -} -function isJsonObjectExpression(node) { - return ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node) || isJsonMinusNumericLiteral(node) || ts9.isNumericLiteral(node) || ts9.isStringLiteral(node) || isBooleanLiteral(node) || isNullLiteral(node); -} -function isJsxAttributeLike(node) { - return ts9.isJsxAttribute(node) || ts9.isJsxSpreadAttribute(node); -} -function isJsxAttributeValue(node) { - return ts9.isStringLiteral(node) || ts9.isJsxExpression(node) || ts9.isJsxElement(node) || ts9.isJsxSelfClosingElement(node) || ts9.isJsxFragment(node); -} -function isJsxChild(node) { - return ts9.isJsxText(node) || ts9.isJsxExpression(node) || ts9.isJsxElement(node) || ts9.isJsxSelfClosingElement(node) || ts9.isJsxFragment(node); -} -function isJsxTagNameExpression(node) { - return ts9.isIdentifier(node) || isThisExpression(node) || isJsxTagNamePropertyAccess(node); -} -function isLiteralToken(node) { - return ts9.isNumericLiteral(node) || ts9.isBigIntLiteral(node) || ts9.isStringLiteral(node) || ts9.isJsxText(node) || ts9.isRegularExpressionLiteral(node) || ts9.isNoSubstitutionTemplateLiteral(node); -} -function isModuleBody(node) { - return isNamespaceBody(node) || isJSDocNamespaceBody(node); -} -function isModuleName(node) { - return ts9.isIdentifier(node) || ts9.isStringLiteral(node); -} -function isModuleReference(node) { - return ts9.isEntityName(node) || ts9.isExternalModuleReference(node); -} -function isNamedImportBindings(node) { - return ts9.isNamespaceImport(node) || ts9.isNamedImports(node); -} -function isNamedImportsOrExports(node) { - return ts9.isNamedImports(node) || ts9.isNamedExports(node); -} -function isNamespaceBody(node) { - return ts9.isModuleBlock(node) || isNamespaceDeclaration(node); -} -function isObjectBindingOrAssignmentElement(node) { - return ts9.isBindingElement(node) || ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isSpreadAssignment(node); -} -function isObjectBindingOrAssignmentPattern(node) { - return ts9.isObjectBindingPattern(node) || ts9.isObjectLiteralExpression(node); -} -function isObjectTypeDeclaration(node) { - return ( - // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isClassLikeDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeLiteralNode(node) - ); -} -function isParameterPropertyModifier(node) { - return isAccessibilityModifier(node) || isReadonlyKeyword(node); -} -function isPropertyNameLiteral(node) { - return ts9.isIdentifier(node) || ts9.isStringLiteralLike(node) || ts9.isNumericLiteral(node); -} -function isPseudoLiteralToken(node) { - return ts9.isTemplateHead(node) || ts9.isTemplateMiddle(node) || ts9.isTemplateTail(node); -} -function isSignatureDeclaration(node) { - return ts9.isCallSignatureDeclaration(node) || ts9.isConstructSignatureDeclaration(node) || ts9.isMethodSignature(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isFunctionTypeNode(node) || ts9.isConstructorTypeNode(node) || ts9.isJSDocFunctionType(node) || ts9.isFunctionDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isConstructorDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5 - isAccessorDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node); -} -function isSuperProperty(node) { - return isSuperPropertyAccessExpression(node) || isSuperElementAccessExpression(node); -} -function isTypeOnlyCompatibleAliasDeclaration(node) { - if (ts9.isImportClause(node) || ts9.isImportEqualsDeclaration(node) || ts9.isNamespaceImport(node) || ts9.isImportOrExportSpecifier(node)) { - return true; - } - if (isTsVersionAtLeast(5, 0) && (ts9.isExportDeclaration(node) || ts9.isNamespaceExport(node))) { - return true; - } - return false; -} -function isTypeReferenceType(node) { - return ts9.isTypeReferenceNode(node) || ts9.isExpressionWithTypeArguments(node); -} -function isUnionOrIntersectionTypeNode(node) { - return ts9.isUnionTypeNode(node) || ts9.isIntersectionTypeNode(node); -} -function isUnparsedSourceText(node) { - return ts9.isUnparsedPrepend(node) || ts9.isUnparsedTextLike(node); -} -function isVariableLikeDeclaration(node) { - return ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isBindingElement(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertyAssignment(node) || ts9.isPropertySignature(node) || ts9.isJsxAttribute(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isEnumMember(node) || ts9.isJSDocPropertyTag(node) || ts9.isJSDocParameterTag(node); -} - -// src/nodes/typeGuards/compound.ts -function isConstAssertionExpression(node) { - return ts10.isTypeReferenceNode(node.type) && ts10.isIdentifier(node.type.typeName) && node.type.typeName.escapedText === "const"; -} -function isIterationStatement(node) { - switch (node.kind) { - case ts10.SyntaxKind.DoStatement: - case ts10.SyntaxKind.ForInStatement: - case ts10.SyntaxKind.ForOfStatement: - case ts10.SyntaxKind.ForStatement: - case ts10.SyntaxKind.WhileStatement: - return true; - default: - return false; - } -} -function isJSDocNamespaceDeclaration(node) { - return ts10.isModuleDeclaration(node) && ts10.isIdentifier(node.name) && (node.body === void 0 || isJSDocNamespaceBody(node.body)); -} -function isJsxTagNamePropertyAccess(node) { - return ts10.isPropertyAccessExpression(node) && // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts < 5 - isJsxTagNameExpression(node.expression); -} -function isNamedDeclarationWithName(node) { - return "name" in node && node.name !== void 0 && node.name !== null && isDeclarationName(node.name); -} -function isNamespaceDeclaration(node) { - return ts10.isModuleDeclaration(node) && ts10.isIdentifier(node.name) && node.body !== void 0 && isNamespaceBody(node.body); -} -function isNumericOrStringLikeLiteral(node) { - switch (node.kind) { - case ts10.SyntaxKind.StringLiteral: - case ts10.SyntaxKind.NumericLiteral: - case ts10.SyntaxKind.NoSubstitutionTemplateLiteral: - return true; - default: - return false; - } -} -function isPropertyAccessEntityNameExpression(node) { - return ts10.isPropertyAccessExpression(node) && ts10.isIdentifier(node.name) && isEntityNameExpression(node.expression); -} -function isSuperElementAccessExpression(node) { - return ts10.isElementAccessExpression(node) && isSuperExpression(node.expression); -} -function isSuperPropertyAccessExpression(node) { - return ts10.isPropertyAccessExpression(node) && isSuperExpression(node.expression); -} - -// src/scopes.ts -import ts11 from "typescript"; -function isFunctionScopeBoundary(node) { - switch (node.kind) { - case ts11.SyntaxKind.FunctionExpression: - case ts11.SyntaxKind.ArrowFunction: - case ts11.SyntaxKind.Constructor: - case ts11.SyntaxKind.ModuleDeclaration: - case ts11.SyntaxKind.ClassDeclaration: - case ts11.SyntaxKind.ClassExpression: - case ts11.SyntaxKind.EnumDeclaration: - case ts11.SyntaxKind.MethodDeclaration: - case ts11.SyntaxKind.FunctionDeclaration: - case ts11.SyntaxKind.GetAccessor: - case ts11.SyntaxKind.SetAccessor: - case ts11.SyntaxKind.MethodSignature: - case ts11.SyntaxKind.CallSignature: - case ts11.SyntaxKind.ConstructSignature: - case ts11.SyntaxKind.ConstructorType: - case ts11.SyntaxKind.FunctionType: - return true; - case ts11.SyntaxKind.SourceFile: - return ts11.isExternalModule(node); - default: - return false; - } -} - -// src/types/getters.ts -import ts16 from "typescript"; - -// src/types/typeGuards/intrinsic.ts -import ts12 from "typescript"; -function isIntrinsicAnyType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Any); -} -function isIntrinsicBooleanType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Boolean); -} -function isIntrinsicBigIntType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.BigInt); -} -function isIntrinsicErrorType(type) { - return isIntrinsicType(type) && type.intrinsicName === "error"; -} -function isIntrinsicESSymbolType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.ESSymbol); -} -var IntrinsicTypeFlags = ts12.TypeFlags.Intrinsic ?? ts12.TypeFlags.Any | ts12.TypeFlags.Unknown | ts12.TypeFlags.String | ts12.TypeFlags.Number | ts12.TypeFlags.BigInt | ts12.TypeFlags.Boolean | ts12.TypeFlags.BooleanLiteral | ts12.TypeFlags.ESSymbol | ts12.TypeFlags.Void | ts12.TypeFlags.Undefined | ts12.TypeFlags.Null | ts12.TypeFlags.Never | ts12.TypeFlags.NonPrimitive; -function isIntrinsicType(type) { - return isTypeFlagSet(type, IntrinsicTypeFlags); -} -function isIntrinsicNeverType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Never); -} -function isIntrinsicNonPrimitiveType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.NonPrimitive); -} -function isIntrinsicNullType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Null); -} -function isIntrinsicNumberType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Number); -} -function isIntrinsicStringType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.String); -} -function isIntrinsicUndefinedType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Undefined); -} -function isIntrinsicUnknownType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Unknown); -} -function isIntrinsicVoidType(type) { - return isTypeFlagSet(type, ts12.TypeFlags.Void); -} - -// src/types/typeGuards/objects.ts -import ts14 from "typescript"; - -// src/types/typeGuards/single.ts -import ts13 from "typescript"; -function isConditionalType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Conditional); -} -function isEnumType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Enum); -} -function isFreshableType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Freshable); -} -function isIndexType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Index); -} -function isIndexedAccessType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.IndexedAccess); -} -function isInstantiableType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Instantiable); -} -function isIntersectionType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Intersection); -} -function isObjectType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Object); -} -function isStringMappingType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.StringMapping); -} -function isSubstitutionType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Substitution); -} -function isTypeParameter(type) { - return isTypeFlagSet(type, ts13.TypeFlags.TypeParameter); -} -function isTypeVariable(type) { - return isTypeFlagSet(type, ts13.TypeFlags.TypeVariable); -} -function isUnionType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.Union); -} -function isUnionOrIntersectionType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.UnionOrIntersection); -} -function isUniqueESSymbolType(type) { - return isTypeFlagSet(type, ts13.TypeFlags.UniqueESSymbol); -} - -// src/types/typeGuards/objects.ts -function isEvolvingArrayType(type) { - return isObjectType(type) && isObjectFlagSet(type, ts14.ObjectFlags.EvolvingArray); -} -function isTupleType(type) { - return isObjectType(type) && isObjectFlagSet(type, ts14.ObjectFlags.Tuple); -} -function isTypeReference(type) { - return isObjectType(type) && isObjectFlagSet(type, ts14.ObjectFlags.Reference); -} - -// src/types/typeGuards/compound.ts -function isFreshableIntrinsicType(type) { - return isIntrinsicType(type) && isFreshableType(type); -} -function isTupleTypeReference(type) { - return isTypeReference(type) && isTupleType(type.target); -} - -// src/types/typeGuards/literal.ts -import ts15 from "typescript"; -function isBooleanLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.BooleanLiteral); -} -function isBigIntLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.BigIntLiteral); -} -function isFalseLiteralType(type) { - return isBooleanLiteralType(type) && type.intrinsicName === "false"; -} -function isLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.Literal); -} -function isNumberLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.NumberLiteral); -} -function isStringLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.StringLiteral); -} -function isTemplateLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.TemplateLiteral); -} -function isTrueLiteralType(type) { - return isBooleanLiteralType(type) && type.intrinsicName === "true"; -} -function isUnknownLiteralType(type) { - return isTypeFlagSet(type, ts15.TypeFlags.Literal); -} - -// src/types/getters.ts -function getCallSignaturesOfType(type) { - if (isUnionType(type)) { - const signatures = []; - for (const subType of type.types) { - signatures.push(...getCallSignaturesOfType(subType)); - } - return signatures; - } - if (isIntersectionType(type)) { - let signatures; - for (const subType of type.types) { - const sig = getCallSignaturesOfType(subType); - if (sig.length !== 0) { - if (signatures !== void 0) { - return []; - } - signatures = sig; - } - } - return signatures === void 0 ? [] : signatures; - } - return type.getCallSignatures(); -} -function getPropertyOfType(type, name) { - if (!name.startsWith("__")) { - return type.getProperty(name); - } - return type.getProperties().find((s) => s.escapedName === name); -} -function getWellKnownSymbolPropertyOfType(type, wellKnownSymbolName, typeChecker) { - const prefix = "__@" + wellKnownSymbolName; - for (const prop of type.getProperties()) { - if (!prop.name.startsWith(prefix)) { - continue; - } - const declaration = prop.valueDeclaration ?? prop.getDeclarations()[0]; - if (!isNamedDeclarationWithName(declaration) || declaration.name === void 0 || !ts16.isComputedPropertyName(declaration.name)) { - continue; - } - const globalSymbol = typeChecker.getApparentType( - typeChecker.getTypeAtLocation(declaration.name.expression) - ).symbol; - if (prop.escapedName === getPropertyNameOfWellKnownSymbol( - typeChecker, - globalSymbol, - wellKnownSymbolName - )) { - return prop; - } - } - return void 0; -} -function getPropertyNameOfWellKnownSymbol(typeChecker, symbolConstructor, symbolName) { - const knownSymbol = symbolConstructor && typeChecker.getTypeOfSymbolAtLocation( - symbolConstructor, - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - symbolConstructor.valueDeclaration - ).getProperty(symbolName); - const knownSymbolType = knownSymbol && typeChecker.getTypeOfSymbolAtLocation( - knownSymbol, - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - knownSymbol.valueDeclaration - ); - if (knownSymbolType && isUniqueESSymbolType(knownSymbolType)) { - return knownSymbolType.escapedName; - } - return "__@" + symbolName; -} - -// src/types/utilities.ts -import ts18 from "typescript"; - -// src/nodes/utilities.ts -import ts17 from "typescript"; -function isBindableObjectDefinePropertyCall(node) { - return node.arguments.length === 3 && isEntityNameExpression(node.arguments[0]) && isNumericOrStringLikeLiteral(node.arguments[1]) && ts17.isPropertyAccessExpression(node.expression) && node.expression.name.escapedText === "defineProperty" && ts17.isIdentifier(node.expression.expression) && node.expression.expression.escapedText === "Object"; -} -function isInConstContext(node) { - let current = node; - while (true) { - const parent = current.parent; - outer: - switch (parent.kind) { - case ts17.SyntaxKind.TypeAssertionExpression: - case ts17.SyntaxKind.AsExpression: - return isConstAssertionExpression(parent); - case ts17.SyntaxKind.PrefixUnaryExpression: - if (current.kind !== ts17.SyntaxKind.NumericLiteral) { - return false; - } - switch (parent.operator) { - case ts17.SyntaxKind.PlusToken: - case ts17.SyntaxKind.MinusToken: - current = parent; - break outer; - default: - return false; - } - case ts17.SyntaxKind.PropertyAssignment: - if (parent.initializer !== current) { - return false; - } - current = parent.parent; - break; - case ts17.SyntaxKind.ShorthandPropertyAssignment: - current = parent.parent; - break; - case ts17.SyntaxKind.ParenthesizedExpression: - case ts17.SyntaxKind.ArrayLiteralExpression: - case ts17.SyntaxKind.ObjectLiteralExpression: - case ts17.SyntaxKind.TemplateExpression: - current = parent; - break; - default: - return false; - } - } -} - -// src/types/utilities.ts -function isFalsyType(type) { - if (isTypeFlagSet( - type, - ts18.TypeFlags.Undefined | ts18.TypeFlags.Null | ts18.TypeFlags.Void - )) { - return true; - } - if (type.isLiteral()) { - return !type.value; - } - return isFalseLiteralType(type); -} -function intersectionTypeParts(type) { - return isIntersectionType(type) ? type.types : [type]; -} -function typeParts(type) { - return isIntersectionType(type) || isUnionType(type) ? type.types : [type]; -} -function isReadonlyPropertyIntersection(type, name, typeChecker) { - const typeParts2 = isIntersectionType(type) ? type.types : [type]; - return typeParts2.some((subType) => { - const prop = getPropertyOfType(subType, name); - if (prop === void 0) { - return false; - } - if (prop.flags & ts18.SymbolFlags.Transient) { - if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) { - return subType.target.readonly; - } - switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) { - case true: - return true; - case false: - return false; - default: - } - } - return !!// members of namespace import - (isSymbolFlagSet(prop, ts18.SymbolFlags.ValueModule) || // we unwrapped every mapped type, now we can check the actual declarations - symbolHasReadonlyDeclaration(prop, typeChecker)); - }); -} -function isReadonlyPropertyFromMappedType(type, name, typeChecker) { - if (!isObjectType(type) || !isObjectFlagSet(type, ts18.ObjectFlags.Mapped)) { - return; - } - const declaration = type.symbol.declarations[0]; - if (declaration.readonlyToken !== void 0 && !/^__@[^@]+$/.test(name)) { - return declaration.readonlyToken.kind !== ts18.SyntaxKind.MinusToken; - } - const { modifiersType } = type; - return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker); -} -function isCallback(typeChecker, param, node) { - let type = typeChecker.getApparentType( - typeChecker.getTypeOfSymbolAtLocation(param, node) - ); - if (param.valueDeclaration.dotDotDotToken) { - type = type.getNumberIndexType(); - if (type === void 0) { - return false; - } - } - for (const subType of unionTypeParts(type)) { - if (subType.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function isPropertyReadonlyInType(type, name, typeChecker) { - let seenProperty = false; - let seenReadonlySignature = false; - for (const subType of unionTypeParts(type)) { - if (getPropertyOfType(subType, name) === void 0) { - const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts18.IndexKind.Number) : void 0) ?? typeChecker.getIndexInfoOfType(subType, ts18.IndexKind.String); - if (index?.isReadonly) { - if (seenProperty) { - return true; - } - seenReadonlySignature = true; - } - } else if (seenReadonlySignature || isReadonlyPropertyIntersection(subType, name, typeChecker)) { - return true; - } else { - seenProperty = true; - } - } - return false; -} -function isReadonlyAssignmentDeclaration(node, typeChecker) { - if (!isBindableObjectDefinePropertyCall(node)) { - return false; - } - const descriptorType = typeChecker.getTypeAtLocation(node.arguments[2]); - if (descriptorType.getProperty("value") === void 0) { - return descriptorType.getProperty("set") === void 0; - } - const writableProp = descriptorType.getProperty("writable"); - if (writableProp === void 0) { - return false; - } - const writableType = writableProp.valueDeclaration !== void 0 && ts18.isPropertyAssignment(writableProp.valueDeclaration) ? typeChecker.getTypeAtLocation(writableProp.valueDeclaration.initializer) : typeChecker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]); - return isFalseLiteralType(writableType); -} -function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) { - for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) { - const then = typePart.getProperty("then"); - if (then === void 0) { - continue; - } - const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node); - for (const subTypePart of unionTypeParts(thenType)) { - for (const signature of subTypePart.getCallSignatures()) { - if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) { - return true; - } - } - } - } - return false; -} -function symbolHasReadonlyDeclaration(symbol, typeChecker) { - return !!((symbol.flags & ts18.SymbolFlags.Accessor) === ts18.SymbolFlags.GetAccessor || symbol.declarations?.some( - (node) => isModifierFlagSet(node, ts18.ModifierFlags.Readonly) || ts18.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts18.NodeFlags.Const) || ts18.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts18.isEnumMember(node) || (ts18.isPropertyAssignment(node) || ts18.isShorthandPropertyAssignment(node)) && isInConstContext(node.parent) - )); -} -function unionTypeParts(type) { - return isUnionType(type) ? type.types : [type]; -} - -// src/usage/UsageWalker.ts -import ts24 from "typescript"; - -// src/usage/Scope.ts -import ts19 from "typescript"; -function isBlockScopeBoundary(node) { - switch (node.kind) { - case ts19.SyntaxKind.Block: { - const parent = node.parent; - return parent.kind !== ts19.SyntaxKind.CatchClause && // blocks inside SourceFile are block scope boundaries - (parent.kind === ts19.SyntaxKind.SourceFile || // blocks that are direct children of a function scope boundary are no scope boundary - // for example the FunctionBlock is part of the function scope of the containing function - !isFunctionScopeBoundary(parent)) ? 2 /* Block */ : 0 /* None */; - } - case ts19.SyntaxKind.ForStatement: - case ts19.SyntaxKind.ForInStatement: - case ts19.SyntaxKind.ForOfStatement: - case ts19.SyntaxKind.CaseBlock: - case ts19.SyntaxKind.CatchClause: - case ts19.SyntaxKind.WithStatement: - return 2 /* Block */; - default: - return 0 /* None */; - } -} - -// src/usage/declarations.ts -import ts21 from "typescript"; - -// src/usage/utils.ts -import ts20 from "typescript"; -function identifierToKeywordKind(node) { - return "identifierToKeywordKind" in ts20 ? ts20.identifierToKeywordKind(node) : ( - // eslint-disable-next-line deprecation/deprecation - node.originalKeywordKind - ); -} -function canHaveDecorators(node) { - return "canHaveDecorators" in ts20 ? ts20.canHaveDecorators(node) : "decorators" in node; -} -function getDecorators(node) { - return "getDecorators" in ts20 ? ts20.getDecorators(node) : node.decorators; -} - -// src/usage/declarations.ts -var DeclarationDomain = /* @__PURE__ */ ((DeclarationDomain2) => { - DeclarationDomain2[DeclarationDomain2["Import"] = 8] = "Import"; - DeclarationDomain2[DeclarationDomain2["Namespace"] = 1] = "Namespace"; - DeclarationDomain2[DeclarationDomain2["Type"] = 2] = "Type"; - DeclarationDomain2[DeclarationDomain2["Value"] = 4] = "Value"; - DeclarationDomain2[DeclarationDomain2["Any"] = 7] = "Any"; - return DeclarationDomain2; -})(DeclarationDomain || {}); -function getDeclarationDomain(node) { - switch (node.parent.kind) { - case ts21.SyntaxKind.TypeParameter: - case ts21.SyntaxKind.InterfaceDeclaration: - case ts21.SyntaxKind.TypeAliasDeclaration: - return 2 /* Type */; - case ts21.SyntaxKind.ClassDeclaration: - case ts21.SyntaxKind.ClassExpression: - return 2 /* Type */ | 4 /* Value */; - case ts21.SyntaxKind.EnumDeclaration: - return 7 /* Any */; - case ts21.SyntaxKind.NamespaceImport: - case ts21.SyntaxKind.ImportClause: - return 7 /* Any */ | 8 /* Import */; - case ts21.SyntaxKind.ImportEqualsDeclaration: - case ts21.SyntaxKind.ImportSpecifier: - return node.parent.name === node ? 7 /* Any */ | 8 /* Import */ : void 0; - case ts21.SyntaxKind.ModuleDeclaration: - return 1 /* Namespace */; - case ts21.SyntaxKind.Parameter: - if (node.parent.parent.kind === ts21.SyntaxKind.IndexSignature || identifierToKeywordKind(node) === ts21.SyntaxKind.ThisKeyword) { - return; - } - case ts21.SyntaxKind.BindingElement: - case ts21.SyntaxKind.VariableDeclaration: - return node.parent.name === node ? 4 /* Value */ : void 0; - case ts21.SyntaxKind.FunctionDeclaration: - case ts21.SyntaxKind.FunctionExpression: - return 4 /* Value */; - } -} - -// src/usage/getPropertyName.ts -import ts22 from "typescript"; -function unwrapParentheses(node) { - while (node.kind === ts22.SyntaxKind.ParenthesizedExpression) { - node = node.expression; - } - return node; -} -function getPropertyName(propertyName) { - if (propertyName.kind === ts22.SyntaxKind.ComputedPropertyName) { - const expression = unwrapParentheses(propertyName.expression); - if (ts22.isPrefixUnaryExpression(expression)) { - let negate = false; - switch (expression.operator) { - case ts22.SyntaxKind.MinusToken: - negate = true; - case ts22.SyntaxKind.PlusToken: - return ts22.isNumericLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text}` : ts22.isBigIntLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text.slice(0, -1)}` : void 0; - default: - return; - } - } - if (ts22.isBigIntLiteral(expression)) { - return expression.text.slice(0, -1); - } - if (isNumericOrStringLikeLiteral(expression)) { - return expression.text; - } - return; - } - return propertyName.kind === ts22.SyntaxKind.PrivateIdentifier ? void 0 : propertyName.text; -} - -// src/usage/getUsageDomain.ts -import ts23 from "typescript"; -var UsageDomain = /* @__PURE__ */ ((UsageDomain2) => { - UsageDomain2[UsageDomain2["Namespace"] = 1] = "Namespace"; - UsageDomain2[UsageDomain2["Type"] = 2] = "Type"; - UsageDomain2[UsageDomain2["TypeQuery"] = 8] = "TypeQuery"; - UsageDomain2[UsageDomain2["Value"] = 4] = "Value"; - UsageDomain2[UsageDomain2["ValueOrNamespace"] = 5] = "ValueOrNamespace"; - UsageDomain2[UsageDomain2["Any"] = 7] = "Any"; - return UsageDomain2; -})(UsageDomain || {}); -function getUsageDomain(node) { - const parent = node.parent; - switch (parent.kind) { - case ts23.SyntaxKind.TypeReference: - return identifierToKeywordKind(node) !== ts23.SyntaxKind.ConstKeyword ? 2 /* Type */ : void 0; - case ts23.SyntaxKind.ExpressionWithTypeArguments: - return parent.parent.token === ts23.SyntaxKind.ImplementsKeyword || parent.parent.parent.kind === ts23.SyntaxKind.InterfaceDeclaration ? 2 /* Type */ : 4 /* Value */; - case ts23.SyntaxKind.TypeQuery: - return 5 /* ValueOrNamespace */ | 8 /* TypeQuery */; - case ts23.SyntaxKind.QualifiedName: - if (parent.left === node) { - if (getEntityNameParent(parent).kind === ts23.SyntaxKind.TypeQuery) { - return 1 /* Namespace */ | 8 /* TypeQuery */; - } - return 1 /* Namespace */; - } - break; - case ts23.SyntaxKind.ExportSpecifier: - if (parent.propertyName === void 0 || parent.propertyName === node) { - return 7 /* Any */; - } - break; - case ts23.SyntaxKind.ExportAssignment: - return 7 /* Any */; - case ts23.SyntaxKind.BindingElement: - if (parent.initializer === node) { - return 5 /* ValueOrNamespace */; - } - break; - case ts23.SyntaxKind.Parameter: - case ts23.SyntaxKind.EnumMember: - case ts23.SyntaxKind.PropertyDeclaration: - case ts23.SyntaxKind.VariableDeclaration: - case ts23.SyntaxKind.PropertyAssignment: - case ts23.SyntaxKind.PropertyAccessExpression: - case ts23.SyntaxKind.ImportEqualsDeclaration: - if (parent.name !== node) { - return 5 /* ValueOrNamespace */; - } - break; - case ts23.SyntaxKind.JsxAttribute: - case ts23.SyntaxKind.FunctionDeclaration: - case ts23.SyntaxKind.FunctionExpression: - case ts23.SyntaxKind.NamespaceImport: - case ts23.SyntaxKind.ClassDeclaration: - case ts23.SyntaxKind.ClassExpression: - case ts23.SyntaxKind.ModuleDeclaration: - case ts23.SyntaxKind.MethodDeclaration: - case ts23.SyntaxKind.EnumDeclaration: - case ts23.SyntaxKind.GetAccessor: - case ts23.SyntaxKind.SetAccessor: - case ts23.SyntaxKind.LabeledStatement: - case ts23.SyntaxKind.BreakStatement: - case ts23.SyntaxKind.ContinueStatement: - case ts23.SyntaxKind.ImportClause: - case ts23.SyntaxKind.ImportSpecifier: - case ts23.SyntaxKind.TypePredicate: - case ts23.SyntaxKind.MethodSignature: - case ts23.SyntaxKind.PropertySignature: - case ts23.SyntaxKind.NamespaceExportDeclaration: - case ts23.SyntaxKind.NamespaceExport: - case ts23.SyntaxKind.InterfaceDeclaration: - case ts23.SyntaxKind.TypeAliasDeclaration: - case ts23.SyntaxKind.TypeParameter: - case ts23.SyntaxKind.NamedTupleMember: - break; - default: - return 5 /* ValueOrNamespace */; - } -} -function getEntityNameParent(name) { - let parent = name.parent; - while (parent.kind === ts23.SyntaxKind.QualifiedName) { - parent = parent.parent; - } - return parent; -} - -// src/usage/scopes.ts -var _enumScopes; -var AbstractScope = class { - constructor(global) { - this.global = global; - __privateAdd(this, _enumScopes, void 0); - this.namespaceScopes = void 0; - this.uses = []; - this.variables = /* @__PURE__ */ new Map(); - } - addUse(use) { - this.uses.push(use); - } - // eslint-disable-next-line @typescript-eslint/no-empty-function - addUseToParent(_use) { - } - addVariable(identifier, name, selector, exported, domain) { - const variables = this.getDestinationScope(selector).getVariables(); - const declaration = { - declaration: name, - domain, - exported - }; - const variable = variables.get(identifier); - if (variable === void 0) { - variables.set(identifier, { - declarations: [declaration], - domain, - uses: [] - }); - } else { - variable.domain |= domain; - variable.declarations.push(declaration); - } - } - applyUse(use, variables = this.variables) { - const variable = variables.get(use.location.text); - if (variable === void 0 || (variable.domain & use.domain) === 0) { - return false; - } - variable.uses.push(use); - return true; - } - applyUses() { - for (const use of this.uses) { - if (!this.applyUse(use)) { - this.addUseToParent(use); - } - } - this.uses = []; - } - createOrReuseEnumScope(name, _exported) { - let scope; - if (__privateGet(this, _enumScopes) === void 0) { - __privateSet(this, _enumScopes, /* @__PURE__ */ new Map()); - } else { - scope = __privateGet(this, _enumScopes).get(name); - } - if (scope === void 0) { - scope = new EnumScope(this); - __privateGet(this, _enumScopes).set(name, scope); - } - return scope; - } - // only relevant for the root scope - createOrReuseNamespaceScope(name, _exported, ambient, hasExportStatement) { - let scope; - if (this.namespaceScopes === void 0) { - this.namespaceScopes = /* @__PURE__ */ new Map(); - } else { - scope = this.namespaceScopes.get(name); - } - if (scope === void 0) { - scope = new NamespaceScope(ambient, hasExportStatement, this); - this.namespaceScopes.set(name, scope); - } else { - scope.refresh(ambient, hasExportStatement); - } - return scope; - } - end(cb) { - if (this.namespaceScopes !== void 0) { - this.namespaceScopes.forEach((value) => value.finish(cb)); - } - this.namespaceScopes = __privateSet(this, _enumScopes, void 0); - this.applyUses(); - this.variables.forEach((variable) => { - for (const declaration of variable.declarations) { - const result = { - declarations: [], - domain: declaration.domain, - exported: declaration.exported, - inGlobalScope: this.global, - uses: [] - }; - for (const other of variable.declarations) { - if (other.domain & declaration.domain) { - result.declarations.push(other.declaration); - } - } - for (const use of variable.uses) { - if (use.domain & declaration.domain) { - result.uses.push(use); - } - } - cb(result, declaration.declaration, this); - } - }); - } - getFunctionScope() { - return this; - } - getVariables() { - return this.variables; - } - // eslint-disable-next-line @typescript-eslint/no-empty-function - markExported(_name2) { - } -}; -_enumScopes = new WeakMap(); -var NonRootScope = class extends AbstractScope { - constructor(parent, boundary) { - super(false); - this.parent = parent; - this.boundary = boundary; - } - addUseToParent(use) { - return this.parent.addUse(use, this); - } - getDestinationScope(selector) { - return this.boundary & selector ? this : this.parent.getDestinationScope(selector); - } -}; -var EnumScope = class extends NonRootScope { - constructor(parent) { - super(parent, 1 /* Function */); - } - end() { - this.applyUses(); - } -}; -var _exportAll, _exports, _innerScope; -var RootScope = class extends AbstractScope { - constructor(exportAll, global) { - super(global); - __privateAdd(this, _exportAll, void 0); - __privateAdd(this, _exports, void 0); - __privateAdd(this, _innerScope, new NonRootScope(this, 1 /* Function */)); - __privateSet(this, _exportAll, exportAll); - } - addUse(use, origin) { - if (origin === __privateGet(this, _innerScope)) { - return super.addUse(use); - } - return __privateGet(this, _innerScope).addUse(use); - } - addVariable(identifier, name, selector, exported, domain) { - if (domain & 8 /* Import */) { - return super.addVariable(identifier, name, selector, exported, domain); - } - return __privateGet(this, _innerScope).addVariable( - identifier, - name, - selector, - exported, - domain - ); - } - end(cb) { - __privateGet(this, _innerScope).end((value, key) => { - value.exported ||= __privateGet(this, _exportAll) || __privateGet(this, _exports) !== void 0 && __privateGet(this, _exports).includes(key.text); - value.inGlobalScope = this.global; - return cb(value, key, this); - }); - return super.end((value, key, scope) => { - value.exported ||= scope === this && __privateGet(this, _exports) !== void 0 && __privateGet(this, _exports).includes(key.text); - return cb(value, key, scope); - }); - } - getDestinationScope() { - return this; - } - markExported(id) { - if (__privateGet(this, _exports) === void 0) { - __privateSet(this, _exports, [id.text]); - } else { - __privateGet(this, _exports).push(id.text); - } - } -}; -_exportAll = new WeakMap(); -_exports = new WeakMap(); -_innerScope = new WeakMap(); -var _ambient, _exports2, _hasExport, _innerScope2; -var NamespaceScope = class extends NonRootScope { - constructor(ambient, hasExport, parent) { - super(parent, 1 /* Function */); - __privateAdd(this, _ambient, void 0); - __privateAdd(this, _exports2, void 0); - __privateAdd(this, _hasExport, void 0); - __privateAdd(this, _innerScope2, new NonRootScope(this, 1 /* Function */)); - __privateSet(this, _ambient, ambient); - __privateSet(this, _hasExport, hasExport); - } - addUse(use, source) { - if (source !== __privateGet(this, _innerScope2)) { - return __privateGet(this, _innerScope2).addUse(use); - } - this.uses.push(use); - } - createOrReuseEnumScope(name, exported) { - if (!exported && (!__privateGet(this, _ambient) || __privateGet(this, _hasExport))) { - return __privateGet(this, _innerScope2).createOrReuseEnumScope(name, exported); - } - return super.createOrReuseEnumScope(name, exported); - } - createOrReuseNamespaceScope(name, exported, ambient, hasExportStatement) { - if (!exported && (!__privateGet(this, _ambient) || __privateGet(this, _hasExport))) { - return __privateGet(this, _innerScope2).createOrReuseNamespaceScope( - name, - exported, - ambient || __privateGet(this, _ambient), - hasExportStatement - ); - } - return super.createOrReuseNamespaceScope( - name, - exported, - ambient || __privateGet(this, _ambient), - hasExportStatement - ); - } - end(cb) { - __privateGet(this, _innerScope2).end((variable, key, scope) => { - if (scope !== __privateGet(this, _innerScope2) || !variable.exported && (!__privateGet(this, _ambient) || __privateGet(this, _exports2) !== void 0 && !__privateGet(this, _exports2).has(key.text))) { - return cb(variable, key, scope); - } - const namespaceVar = this.variables.get(key.text); - if (namespaceVar === void 0) { - this.variables.set(key.text, { - declarations: variable.declarations.map(mapDeclaration), - domain: variable.domain, - uses: [...variable.uses] - }); - } else { - outer: - for (const declaration of variable.declarations) { - for (const existing of namespaceVar.declarations) { - if (existing.declaration === declaration) { - continue outer; - } - namespaceVar.declarations.push(mapDeclaration(declaration)); - } - } - namespaceVar.domain |= variable.domain; - for (const use of variable.uses) { - if (namespaceVar.uses.includes(use)) { - continue; - } - namespaceVar.uses.push(use); - } - } - }); - this.applyUses(); - __privateSet(this, _innerScope2, new NonRootScope(this, 1 /* Function */)); - } - finish(cb) { - return super.end(cb); - } - getDestinationScope() { - return __privateGet(this, _innerScope2); - } - markExported(name) { - if (__privateGet(this, _exports2) === void 0) { - __privateSet(this, _exports2, /* @__PURE__ */ new Set()); - } - __privateGet(this, _exports2).add(name.text); - } - refresh(ambient, hasExport) { - __privateSet(this, _ambient, ambient); - __privateSet(this, _hasExport, hasExport); - } -}; -_ambient = new WeakMap(); -_exports2 = new WeakMap(); -_hasExport = new WeakMap(); -_innerScope2 = new WeakMap(); -function mapDeclaration(declaration) { - return { - declaration, - domain: getDeclarationDomain(declaration), - exported: true - }; -} -var FunctionScope = class extends NonRootScope { - constructor(parent) { - super(parent, 1 /* Function */); - } - beginBody() { - this.applyUses(); - } -}; -var _domain, _name; -var AbstractNamedExpressionScope = class extends NonRootScope { - constructor(name, domain, parent) { - super(parent, 1 /* Function */); - __privateAdd(this, _domain, void 0); - __privateAdd(this, _name, void 0); - __privateSet(this, _name, name); - __privateSet(this, _domain, domain); - } - addUse(use, source) { - if (source !== this.innerScope) { - return this.innerScope.addUse(use); - } - if (use.domain & __privateGet(this, _domain) && use.location.text === __privateGet(this, _name).text) { - this.uses.push(use); - } else { - return this.parent.addUse(use, this); - } - } - end(cb) { - this.innerScope.end(cb); - return cb( - { - declarations: [__privateGet(this, _name)], - domain: __privateGet(this, _domain), - exported: false, - inGlobalScope: false, - uses: this.uses - }, - __privateGet(this, _name), - this - ); - } - getDestinationScope() { - return this.innerScope; - } - getFunctionScope() { - return this.innerScope; - } -}; -_domain = new WeakMap(); -_name = new WeakMap(); -var FunctionExpressionScope = class extends AbstractNamedExpressionScope { - constructor(name, parent) { - super(name, 4 /* Value */, parent); - this.innerScope = new FunctionScope(this); - } - beginBody() { - return this.innerScope.beginBody(); - } -}; -var _functionScope; -var BlockScope = class extends NonRootScope { - constructor(functionScope, parent) { - super(parent, 2 /* Block */); - __privateAdd(this, _functionScope, void 0); - __privateSet(this, _functionScope, functionScope); - } - getFunctionScope() { - return __privateGet(this, _functionScope); - } -}; -_functionScope = new WeakMap(); -var ClassExpressionScope = class extends AbstractNamedExpressionScope { - constructor(name, parent) { - super(name, 4 /* Value */ | 2 /* Type */, parent); - this.innerScope = new NonRootScope(this, 1 /* Function */); - } -}; -var _state; -var ConditionalTypeScope = class extends NonRootScope { - constructor(parent) { - super(parent, 8 /* ConditionalType */); - __privateAdd(this, _state, 0 /* Initial */); - } - addUse(use) { - if (__privateGet(this, _state) === 2 /* TrueType */) { - return void this.uses.push(use); - } - return this.parent.addUse(use, this); - } - updateState(newState) { - __privateSet(this, _state, newState); - } -}; -_state = new WeakMap(); - -// src/usage/UsageWalker.ts -var _result, _scope, _handleBindingName, handleBindingName_fn, _handleConditionalType, handleConditionalType_fn, _handleDeclaration, handleDeclaration_fn, _handleFunctionLikeDeclaration, handleFunctionLikeDeclaration_fn, _handleModule, handleModule_fn, _handleVariableDeclaration, handleVariableDeclaration_fn; -var UsageWalker = class { - constructor() { - __privateAdd(this, _handleBindingName); - __privateAdd(this, _handleConditionalType); - __privateAdd(this, _handleDeclaration); - __privateAdd(this, _handleFunctionLikeDeclaration); - __privateAdd(this, _handleModule); - __privateAdd(this, _handleVariableDeclaration); - __privateAdd(this, _result, /* @__PURE__ */ new Map()); - __privateAdd(this, _scope, void 0); - } - getUsage(sourceFile) { - const variableCallback = (variable, key) => { - __privateGet(this, _result).set(key, variable); - }; - const isModule = ts24.isExternalModule(sourceFile); - __privateSet(this, _scope, new RootScope( - sourceFile.isDeclarationFile && isModule && !containsExportStatement(sourceFile), - !isModule - )); - const cb = (node) => { - if (isBlockScopeBoundary(node)) { - return continueWithScope( - node, - new BlockScope(__privateGet(this, _scope).getFunctionScope(), __privateGet(this, _scope)), - handleBlockScope - ); - } - switch (node.kind) { - case ts24.SyntaxKind.ClassExpression: - return continueWithScope( - node, - node.name !== void 0 ? new ClassExpressionScope( - node.name, - __privateGet(this, _scope) - ) : new NonRootScope(__privateGet(this, _scope), 1 /* Function */) - ); - case ts24.SyntaxKind.ClassDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 4 /* Value */ | 2 /* Type */); - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 1 /* Function */) - ); - case ts24.SyntaxKind.InterfaceDeclaration: - case ts24.SyntaxKind.TypeAliasDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 2 /* Type */); - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 4 /* Type */) - ); - case ts24.SyntaxKind.EnumDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, true, 7 /* Any */); - return continueWithScope( - node, - __privateGet(this, _scope).createOrReuseEnumScope( - node.name.text, - includesModifier( - node.modifiers, - ts24.SyntaxKind.ExportKeyword - ) - ) - ); - case ts24.SyntaxKind.ModuleDeclaration: - return __privateMethod(this, _handleModule, handleModule_fn).call(this, node, continueWithScope); - case ts24.SyntaxKind.MappedType: - return continueWithScope( - node, - new NonRootScope(__privateGet(this, _scope), 4 /* Type */) - ); - case ts24.SyntaxKind.FunctionExpression: - case ts24.SyntaxKind.ArrowFunction: - case ts24.SyntaxKind.Constructor: - case ts24.SyntaxKind.MethodDeclaration: - case ts24.SyntaxKind.FunctionDeclaration: - case ts24.SyntaxKind.GetAccessor: - case ts24.SyntaxKind.SetAccessor: - case ts24.SyntaxKind.MethodSignature: - case ts24.SyntaxKind.CallSignature: - case ts24.SyntaxKind.ConstructSignature: - case ts24.SyntaxKind.ConstructorType: - case ts24.SyntaxKind.FunctionType: - return __privateMethod(this, _handleFunctionLikeDeclaration, handleFunctionLikeDeclaration_fn).call(this, node, cb, variableCallback); - case ts24.SyntaxKind.ConditionalType: - return __privateMethod(this, _handleConditionalType, handleConditionalType_fn).call(this, node, cb, variableCallback); - case ts24.SyntaxKind.VariableDeclarationList: - __privateMethod(this, _handleVariableDeclaration, handleVariableDeclaration_fn).call(this, node); - break; - case ts24.SyntaxKind.Parameter: - if (node.parent.kind !== ts24.SyntaxKind.IndexSignature && (node.name.kind !== ts24.SyntaxKind.Identifier || identifierToKeywordKind( - node.name - ) !== ts24.SyntaxKind.ThisKeyword)) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, node.name, false, false); - } - break; - case ts24.SyntaxKind.EnumMember: - __privateGet(this, _scope).addVariable( - getPropertyName(node.name), - node.name, - 1 /* Function */, - true, - 4 /* Value */ - ); - break; - case ts24.SyntaxKind.ImportClause: - case ts24.SyntaxKind.ImportSpecifier: - case ts24.SyntaxKind.NamespaceImport: - case ts24.SyntaxKind.ImportEqualsDeclaration: - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, false, 7 /* Any */ | 8 /* Import */); - break; - case ts24.SyntaxKind.TypeParameter: - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - node.parent.kind === ts24.SyntaxKind.InferType ? 8 /* InferType */ : 7 /* Type */, - false, - 2 /* Type */ - ); - break; - case ts24.SyntaxKind.ExportSpecifier: - if (node.propertyName !== void 0) { - return __privateGet(this, _scope).markExported( - node.propertyName, - node.name - ); - } - return __privateGet(this, _scope).markExported(node.name); - case ts24.SyntaxKind.ExportAssignment: - if (node.expression.kind === ts24.SyntaxKind.Identifier) { - return __privateGet(this, _scope).markExported( - node.expression - ); - } - break; - case ts24.SyntaxKind.Identifier: { - const domain = getUsageDomain(node); - if (domain !== void 0) { - __privateGet(this, _scope).addUse({ domain, location: node }); - } - return; - } - } - return ts24.forEachChild(node, cb); - }; - const continueWithScope = (node, scope, next = forEachChild) => { - const savedScope = __privateGet(this, _scope); - __privateSet(this, _scope, scope); - next(node); - __privateGet(this, _scope).end(variableCallback); - __privateSet(this, _scope, savedScope); - }; - const handleBlockScope = (node) => { - if (node.kind === ts24.SyntaxKind.CatchClause && node.variableDeclaration !== void 0) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, node.variableDeclaration.name, true, false); - } - return ts24.forEachChild(node, cb); - }; - ts24.forEachChild(sourceFile, cb); - __privateGet(this, _scope).end(variableCallback); - return __privateGet(this, _result); - function forEachChild(node) { - return ts24.forEachChild(node, cb); - } - } -}; -_result = new WeakMap(); -_scope = new WeakMap(); -_handleBindingName = new WeakSet(); -handleBindingName_fn = function(name, blockScoped, exported) { - if (name.kind === ts24.SyntaxKind.Identifier) { - return __privateGet(this, _scope).addVariable( - name.text, - name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - exported, - 4 /* Value */ - ); - } - forEachDestructuringIdentifier(name, (declaration) => { - __privateGet(this, _scope).addVariable( - declaration.name.text, - declaration.name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - exported, - 4 /* Value */ - ); - }); -}; -_handleConditionalType = new WeakSet(); -handleConditionalType_fn = function(node, cb, varCb) { - const savedScope = __privateGet(this, _scope); - const scope = __privateSet(this, _scope, new ConditionalTypeScope(savedScope)); - cb(node.checkType); - scope.updateState(1 /* Extends */); - cb(node.extendsType); - scope.updateState(2 /* TrueType */); - cb(node.trueType); - scope.updateState(3 /* FalseType */); - cb(node.falseType); - scope.end(varCb); - __privateSet(this, _scope, savedScope); -}; -_handleDeclaration = new WeakSet(); -handleDeclaration_fn = function(node, blockScoped, domain) { - if (node.name !== void 0) { - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - blockScoped ? 3 /* Block */ : 1 /* Function */, - includesModifier( - node.modifiers, - ts24.SyntaxKind.ExportKeyword - ), - domain - ); - } -}; -_handleFunctionLikeDeclaration = new WeakSet(); -handleFunctionLikeDeclaration_fn = function(node, cb, varCb) { - if (canHaveDecorators(node)) { - getDecorators(node)?.forEach(cb); - } - const savedScope = __privateGet(this, _scope); - if (node.kind === ts24.SyntaxKind.FunctionDeclaration) { - __privateMethod(this, _handleDeclaration, handleDeclaration_fn).call(this, node, false, 4 /* Value */); - } - const scope = __privateSet(this, _scope, node.kind === ts24.SyntaxKind.FunctionExpression && node.name !== void 0 ? new FunctionExpressionScope(node.name, savedScope) : new FunctionScope(savedScope)); - if (node.name !== void 0) { - cb(node.name); - } - if (node.typeParameters !== void 0) { - node.typeParameters.forEach(cb); - } - node.parameters.forEach(cb); - if (node.type !== void 0) { - cb(node.type); - } - if (node.body !== void 0) { - scope.beginBody(); - cb(node.body); - } - scope.end(varCb); - __privateSet(this, _scope, savedScope); -}; -_handleModule = new WeakSet(); -handleModule_fn = function(node, next) { - if (node.flags & ts24.NodeFlags.GlobalAugmentation) { - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope("-global", false, true, false) - ); - } - if (node.name.kind === ts24.SyntaxKind.Identifier) { - const exported = isNamespaceExported(node); - __privateGet(this, _scope).addVariable( - node.name.text, - node.name, - 1 /* Function */, - exported, - 1 /* Namespace */ | 4 /* Value */ - ); - const ambient = includesModifier( - node.modifiers, - ts24.SyntaxKind.DeclareKeyword - ); - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope( - node.name.text, - exported, - ambient, - ambient && namespaceHasExportStatement(node) - ) - ); - } - return next( - node, - __privateGet(this, _scope).createOrReuseNamespaceScope( - `"${node.name.text}"`, - false, - true, - namespaceHasExportStatement(node) - ) - ); -}; -_handleVariableDeclaration = new WeakSet(); -handleVariableDeclaration_fn = function(declarationList) { - const blockScoped = isBlockScopedVariableDeclarationList(declarationList); - const exported = declarationList.parent.kind === ts24.SyntaxKind.VariableStatement && includesModifier( - declarationList.parent.modifiers, - ts24.SyntaxKind.ExportKeyword - ); - for (const declaration of declarationList.declarations) { - __privateMethod(this, _handleBindingName, handleBindingName_fn).call(this, declaration.name, blockScoped, exported); - } -}; -function isNamespaceExported(node) { - return node.parent.kind === ts24.SyntaxKind.ModuleDeclaration || includesModifier(node.modifiers, ts24.SyntaxKind.ExportKeyword); -} -function namespaceHasExportStatement(ns) { - if (ns.body === void 0 || ns.body.kind !== ts24.SyntaxKind.ModuleBlock) { - return false; - } - return containsExportStatement(ns.body); -} -function containsExportStatement(block) { - for (const statement of block.statements) { - if (statement.kind === ts24.SyntaxKind.ExportDeclaration || statement.kind === ts24.SyntaxKind.ExportAssignment) { - return true; - } - } - return false; -} -function isBlockScopedVariableDeclarationList(declarationList) { - return (declarationList.flags & ts24.NodeFlags.BlockScoped) !== 0; -} -function forEachDestructuringIdentifier(pattern, fn) { - for (const element of pattern.elements) { - if (element.kind !== ts24.SyntaxKind.BindingElement) { - continue; - } - let result; - if (element.name.kind === ts24.SyntaxKind.Identifier) { - result = fn(element); - } else { - result = forEachDestructuringIdentifier(element.name, fn); - } - if (result) { - return result; - } - } -} - -// src/usage/collectVariableUsage.ts -function collectVariableUsage(sourceFile) { - return new UsageWalker().getUsage(sourceFile); -} -export { - AccessKind, - DeclarationDomain, - UsageDomain, - collectVariableUsage, - forEachComment, - forEachToken, - getAccessKind, - getCallSignaturesOfType, - getPropertyOfType, - getWellKnownSymbolPropertyOfType, - hasDecorators, - hasExpressionInitializer, - hasInitializer, - hasJSDoc, - hasModifiers, - hasType, - hasTypeArguments, - includesModifier, - intersectionTypeParts, - isAbstractKeyword, - isAccessExpression, - isAccessibilityModifier, - isAccessorDeclaration, - isAccessorKeyword, - isAnyKeyword, - isArrayBindingElement, - isArrayBindingOrAssignmentPattern, - isAssertKeyword, - isAssertsKeyword, - isAssignmentKind, - isAssignmentPattern, - isAsyncKeyword, - isAwaitKeyword, - isBigIntKeyword, - isBigIntLiteralType, - isBindingOrAssignmentElementRestIndicator, - isBindingOrAssignmentElementTarget, - isBindingOrAssignmentPattern, - isBindingPattern, - isBlockLike, - isBooleanKeyword, - isBooleanLiteral, - isBooleanLiteralType, - isClassLikeDeclaration, - isClassMemberModifier, - isColonToken, - isCompilerOptionEnabled, - isConditionalType, - isConstAssertionExpression, - isConstKeyword, - isDeclarationName, - isDeclarationWithTypeParameterChildren, - isDeclarationWithTypeParameters, - isDeclareKeyword, - isDefaultKeyword, - isDestructuringPattern, - isDotToken, - isEndOfFileToken, - isEntityNameExpression, - isEntityNameOrEntityNameExpression, - isEnumType, - isEqualsGreaterThanToken, - isEqualsToken, - isEvolvingArrayType, - isExclamationToken, - isExportKeyword, - isFalseKeyword, - isFalseLiteral, - isFalseLiteralType, - isFalsyType, - isForInOrOfStatement, - isFreshableIntrinsicType, - isFreshableType, - isFunctionLikeDeclaration, - isFunctionScopeBoundary, - isImportExpression, - isImportKeyword, - isInKeyword, - isIndexType, - isIndexedAccessType, - isInputFiles, - isInstantiableType, - isIntersectionType, - isIntrinsicAnyType, - isIntrinsicBigIntType, - isIntrinsicBooleanType, - isIntrinsicESSymbolType, - isIntrinsicErrorType, - isIntrinsicNeverType, - isIntrinsicNonPrimitiveType, - isIntrinsicNullType, - isIntrinsicNumberType, - isIntrinsicStringType, - isIntrinsicType, - isIntrinsicUndefinedType, - isIntrinsicUnknownType, - isIntrinsicVoidType, - isIterationStatement, - isJSDocComment, - isJSDocNamespaceBody, - isJSDocNamespaceDeclaration, - isJSDocText, - isJSDocTypeReferencingNode, - isJsonMinusNumericLiteral, - isJsonObjectExpression, - isJsxAttributeLike, - isJsxAttributeValue, - isJsxChild, - isJsxTagNameExpression, - isJsxTagNamePropertyAccess, - isLiteralToken, - isLiteralType, - isModifierFlagSet, - isModuleBody, - isModuleName, - isModuleReference, - isNamedDeclarationWithName, - isNamedImportBindings, - isNamedImportsOrExports, - isNamespaceBody, - isNamespaceDeclaration, - isNeverKeyword, - isNodeFlagSet, - isNullKeyword, - isNullLiteral, - isNumberKeyword, - isNumberLiteralType, - isNumericOrStringLikeLiteral, - isNumericPropertyName, - isObjectBindingOrAssignmentElement, - isObjectBindingOrAssignmentPattern, - isObjectFlagSet, - isObjectKeyword, - isObjectType, - isObjectTypeDeclaration, - isOutKeyword, - isOverrideKeyword, - isParameterPropertyModifier, - isPrivateKeyword, - isPropertyAccessEntityNameExpression, - isPropertyNameLiteral, - isPropertyReadonlyInType, - isProtectedKeyword, - isPseudoLiteralToken, - isPublicKeyword, - isQuestionDotToken, - isQuestionToken, - isReadonlyKeyword, - isSignatureDeclaration, - isStaticKeyword, - isStrictCompilerOptionEnabled, - isStringKeyword, - isStringLiteralType, - isStringMappingType, - isSubstitutionType, - isSuperElementAccessExpression, - isSuperExpression, - isSuperKeyword, - isSuperProperty, - isSuperPropertyAccessExpression, - isSymbolFlagSet, - isSymbolKeyword, - isSyntaxList, - isTemplateLiteralType, - isThenableType, - isThisExpression, - isThisKeyword, - isTrueKeyword, - isTrueLiteral, - isTrueLiteralType, - isTupleType, - isTupleTypeReference, - isTypeFlagSet, - isTypeOnlyCompatibleAliasDeclaration, - isTypeParameter, - isTypeReference, - isTypeReferenceType, - isTypeVariable, - isUndefinedKeyword, - isUnionOrIntersectionType, - isUnionOrIntersectionTypeNode, - isUnionType, - isUniqueESSymbolType, - isUnknownKeyword, - isUnknownLiteralType, - isUnparsedPrologue, - isUnparsedSourceText, - isUnparsedSyntheticReference, - isValidPropertyAccess, - isVariableLikeDeclaration, - isVoidKeyword, - symbolHasReadonlyDeclaration, - typeParts, - unionTypeParts -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/ts-api-utils/lib/index.js.map b/graphql/node_modules/ts-api-utils/lib/index.js.map deleted file mode 100644 index 7d2131e6..00000000 --- a/graphql/node_modules/ts-api-utils/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/comments.ts","../src/tokens.ts","../src/compilerOptions.ts","../src/flags.ts","../src/modifiers.ts","../src/nodes/access.ts","../src/syntax.ts","../src/nodes/typeGuards/compound.ts","../src/nodes/typeGuards/single.ts","../src/nodes/typeGuards/union.ts","../src/utils.ts","../src/scopes.ts","../src/types/getters.ts","../src/types/typeGuards/intrinsic.ts","../src/types/typeGuards/objects.ts","../src/types/typeGuards/single.ts","../src/types/typeGuards/compound.ts","../src/types/typeGuards/literal.ts","../src/types/utilities.ts","../src/nodes/utilities.ts","../src/usage/UsageWalker.ts","../src/usage/Scope.ts","../src/usage/declarations.ts","../src/usage/utils.ts","../src/usage/getPropertyName.ts","../src/usage/getUsageDomain.ts","../src/usage/scopes.ts","../src/usage/collectVariableUsage.ts"],"sourcesContent":["// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { forEachToken } from \"./tokens\";\n\n/**\n * Exclude trailing positions that would lead to scanning for trivia inside `JsxText`.\n * @internal\n */\nfunction canHaveTrailingTrivia(token: ts.Node): boolean {\n\tswitch (token.kind) {\n\t\tcase ts.SyntaxKind.CloseBraceToken:\n\t\t\t// after a JsxExpression inside a JsxElement's body can only be other JsxChild, but no trivia\n\t\t\treturn (\n\t\t\t\ttoken.parent.kind !== ts.SyntaxKind.JsxExpression ||\n\t\t\t\t!isJsxElementOrFragment(token.parent.parent)\n\t\t\t);\n\t\tcase ts.SyntaxKind.GreaterThanToken:\n\t\t\tswitch (token.parent.kind) {\n\t\t\t\tcase ts.SyntaxKind.JsxOpeningElement:\n\t\t\t\t\t// if end is not equal, this is part of the type arguments list. in all other cases it would be inside the element body\n\t\t\t\t\treturn token.end !== token.parent.end;\n\t\t\t\tcase ts.SyntaxKind.JsxOpeningFragment:\n\t\t\t\t\treturn false; // would be inside the fragment\n\t\t\t\tcase ts.SyntaxKind.JsxSelfClosingElement:\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttoken.end !== token.parent.end || // if end is not equal, this is part of the type arguments list\n\t\t\t\t\t\t!isJsxElementOrFragment(token.parent.parent)\n\t\t\t\t\t); // there's only trailing trivia if it's the end of the top element\n\t\t\t\tcase ts.SyntaxKind.JsxClosingElement:\n\t\t\t\tcase ts.SyntaxKind.JsxClosingFragment:\n\t\t\t\t\t// there's only trailing trivia if it's the end of the top element\n\t\t\t\t\treturn !isJsxElementOrFragment(token.parent.parent.parent);\n\t\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Test if a node is a `JsxElement` or `JsxFragment`.\n * @internal\n */\nfunction isJsxElementOrFragment(\n\tnode: ts.Node,\n): node is ts.JsxElement | ts.JsxFragment {\n\treturn (\n\t\tnode.kind === ts.SyntaxKind.JsxElement ||\n\t\tnode.kind === ts.SyntaxKind.JsxFragment\n\t);\n}\n\n/**\n * Callback type used for {@link forEachComment}.\n * @category Callbacks\n */\nexport type ForEachCommentCallback = (\n\tfullText: string,\n\tcomment: ts.CommentRange,\n) => void;\n\n/**\n * Iterates over all comments owned by `node` or its children.\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * forEachComment(node, (fullText, comment) => {\n * console.log(`Found comment at position ${comment.pos}: '${fullText}'.`);\n * });\n * ```\n */\nexport function forEachComment(\n\tnode: ts.Node,\n\tcallback: ForEachCommentCallback,\n\tsourceFile: ts.SourceFile = node.getSourceFile(),\n): void {\n\t/* Visit all tokens and skip trivia.\n Comment ranges between tokens are parsed without the need of a scanner.\n forEachTokenWithWhitespace does intentionally not pay attention to the correct comment ownership of nodes as it always\n scans all trivia before each token, which could include trailing comments of the previous token.\n Comment ownership is done right in this function*/\n\tconst fullText = sourceFile.text;\n\tconst notJsx = sourceFile.languageVariant !== ts.LanguageVariant.JSX;\n\treturn forEachToken(\n\t\tnode,\n\t\t(token) => {\n\t\t\tif (token.pos === token.end) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (token.kind !== ts.SyntaxKind.JsxText) {\n\t\t\t\tts.forEachLeadingCommentRange(\n\t\t\t\t\tfullText,\n\t\t\t\t\t// skip shebang at position 0\n\t\t\t\t\ttoken.pos === 0 ? (ts.getShebang(fullText) ?? \"\").length : token.pos,\n\t\t\t\t\tcommentCallback,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (notJsx || canHaveTrailingTrivia(token)) {\n\t\t\t\treturn ts.forEachTrailingCommentRange(\n\t\t\t\t\tfullText,\n\t\t\t\t\ttoken.end,\n\t\t\t\t\tcommentCallback,\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\tsourceFile,\n\t);\n\tfunction commentCallback(pos: number, end: number, kind: ts.CommentKind) {\n\t\tcallback(fullText, { end, kind, pos });\n\t}\n}\n","// Code largely based on ajafff/tsutils:\n// https://github.com/ajafff/tsutils/blob/03b4df15d14702f9c7a128ac3fae77171778d613/util/util.ts\n// Original license MIT:\n// https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Callback type used for {@link forEachToken}.\n * @category Callbacks\n */\nexport type ForEachTokenCallback = (token: ts.Node) => void;\n\n/**\n * Iterates over all tokens of `node`\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * forEachToken(node, (token) => {\n * \tconsole.log(\"Found token:\", token.getText());\n * });\n * ```\n * @param node - The node whose tokens should be visited\n * @param callback - Is called for every token contained in `node`\n */\nexport function forEachToken(\n\tnode: ts.Node,\n\tcallback: ForEachTokenCallback,\n\tsourceFile: ts.SourceFile = node.getSourceFile(),\n): void {\n\tconst queue = [];\n\twhile (true) {\n\t\tif (ts.isTokenKind(node.kind)) {\n\t\t\tcallback(node);\n\t\t} else if (\n\t\t\t// eslint-disable-next-line deprecation/deprecation -- need for support of TS < 4.7\n\t\t\tnode.kind !== ts.SyntaxKind.JSDocComment\n\t\t) {\n\t\t\tconst children = node.getChildren(sourceFile);\n\t\t\tif (children.length === 1) {\n\t\t\t\tnode = children[0];\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// add children in reverse order, when we pop the next element from the queue, it's the first child\n\t\t\tfor (let i = children.length - 1; i >= 0; --i) {\n\t\t\t\tqueue.push(children[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (queue.length === 0) {\n\t\t\tbreak;\n\t\t}\n\n\t\tnode = queue.pop()!;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * An option that can be tested with {@link isCompilerOptionEnabled}.\n * @category Compiler Options\n */\nexport type BooleanCompilerOptions = keyof {\n\t[K in keyof ts.CompilerOptions as NonNullable<\n\t\tts.CompilerOptions[K]\n\t> extends boolean\n\t\t? K\n\t\t: never]: unknown;\n};\n\n/**\n * Checks if a given compiler option is enabled.\n * It handles dependencies of options, e.g. `declaration` is implicitly enabled by `composite` or `strictNullChecks` is enabled by `strict`.\n * However, it does not check dependencies that are already checked and reported as errors, e.g. `checkJs` without `allowJs`.\n * This function only handles boolean flags.\n * @category Compiler Options\n * @example\n * ```ts\n * const options = {\n * \tallowJs: true,\n * };\n *\n * isCompilerOptionEnabled(options, \"allowJs\"); // true\n * isCompilerOptionEnabled(options, \"allowSyntheticDefaultImports\"); // false\n * ```\n */\nexport function isCompilerOptionEnabled(\n\toptions: ts.CompilerOptions,\n\toption: BooleanCompilerOptions,\n): boolean {\n\tswitch (option) {\n\t\tcase \"stripInternal\":\n\t\tcase \"declarationMap\":\n\t\tcase \"emitDeclarationOnly\":\n\t\t\treturn (\n\t\t\t\toptions[option] === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"declaration\")\n\t\t\t);\n\t\tcase \"declaration\":\n\t\t\treturn (\n\t\t\t\toptions.declaration || isCompilerOptionEnabled(options, \"composite\")\n\t\t\t);\n\t\tcase \"incremental\":\n\t\t\treturn options.incremental === undefined\n\t\t\t\t? isCompilerOptionEnabled(options, \"composite\")\n\t\t\t\t: options.incremental;\n\t\tcase \"skipDefaultLibCheck\":\n\t\t\treturn (\n\t\t\t\toptions.skipDefaultLibCheck ||\n\t\t\t\tisCompilerOptionEnabled(options, \"skipLibCheck\")\n\t\t\t);\n\t\tcase \"suppressImplicitAnyIndexErrors\":\n\t\t\treturn (\n\t\t\t\toptions.suppressImplicitAnyIndexErrors === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"noImplicitAny\")\n\t\t\t);\n\t\tcase \"allowSyntheticDefaultImports\":\n\t\t\treturn options.allowSyntheticDefaultImports !== undefined\n\t\t\t\t? options.allowSyntheticDefaultImports\n\t\t\t\t: isCompilerOptionEnabled(options, \"esModuleInterop\") ||\n\t\t\t\t\t\toptions.module === ts.ModuleKind.System;\n\t\tcase \"noUncheckedIndexedAccess\":\n\t\t\treturn (\n\t\t\t\toptions.noUncheckedIndexedAccess === true &&\n\t\t\t\tisCompilerOptionEnabled(options, \"strictNullChecks\")\n\t\t\t);\n\t\tcase \"allowJs\":\n\t\t\treturn options.allowJs === undefined\n\t\t\t\t? isCompilerOptionEnabled(options, \"checkJs\")\n\t\t\t\t: options.allowJs;\n\t\tcase \"noImplicitAny\":\n\t\tcase \"noImplicitThis\":\n\t\tcase \"strictNullChecks\":\n\t\tcase \"strictFunctionTypes\":\n\t\tcase \"strictPropertyInitialization\":\n\t\tcase \"alwaysStrict\":\n\t\tcase \"strictBindCallApply\":\n\t\t\ttype AssertEqual = U; // make sure all strict options are handled here\n\t\t\treturn isStrictCompilerOptionEnabled(\n\t\t\t\toptions,\n\t\t\t\toption as AssertEqual,\n\t\t\t);\n\t}\n\n\treturn options[option] === true;\n}\n\n/**\n * An option that can be tested with {@link isStrictCompilerOptionEnabled}.\n * @category Compiler Options\n */\nexport type StrictCompilerOption =\n\t| \"alwaysStrict\"\n\t| \"noImplicitAny\"\n\t| \"noImplicitThis\"\n\t| \"strictBindCallApply\"\n\t| \"strictFunctionTypes\"\n\t| \"strictNullChecks\"\n\t| \"strictPropertyInitialization\";\n\n/**\n * Checks if a given compiler option is enabled, accounting for whether all flags\n * (except `strictPropertyInitialization`) have been enabled by `strict: true`.\n * @category Compiler Options\n * @example\n * ```ts\n * const optionsLenient = {\n * \tnoImplicitAny: true,\n * };\n *\n * isStrictCompilerOptionEnabled(optionsLenient, \"noImplicitAny\"); // true\n * isStrictCompilerOptionEnabled(optionsLenient, \"noImplicitThis\"); // false\n * ```\n * @example\n * ```ts\n * const optionsStrict = {\n * \tnoImplicitThis: false,\n * \tstrict: true,\n * };\n *\n * isStrictCompilerOptionEnabled(optionsStrict, \"noImplicitAny\"); // true\n * isStrictCompilerOptionEnabled(optionsStrict, \"noImplicitThis\"); // false\n * ```\n */\nexport function isStrictCompilerOptionEnabled(\n\toptions: ts.CompilerOptions,\n\toption: StrictCompilerOption,\n): boolean {\n\treturn (\n\t\t(options.strict ? options[option] !== false : options[option] === true) &&\n\t\t(option !== \"strictPropertyInitialization\" ||\n\t\t\tisStrictCompilerOptionEnabled(options, \"strictNullChecks\"))\n\t);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test if the given flag is set on the combined flags.\n * @internal\n */\nfunction isFlagSet(allFlags: number, flag: number): boolean {\n\treturn (allFlags & flag) !== 0;\n}\n\n/**\n * Test if the given flag is set on the given object.\n * @internal\n */\nfunction isFlagSetOnObject(obj: { flags: number }, flag: number): boolean {\n\treturn isFlagSet(obj.flags, flag);\n}\n\n/**\n * Test if the given node has the given `ModifierFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModifierFlagSet(node, ts.ModifierFlags.Abstract)) {\n * // ...\n * }\n * ```\n */\nexport function isModifierFlagSet(\n\tnode: ts.Declaration,\n\tflag: ts.ModifierFlags,\n): boolean {\n\treturn isFlagSet(ts.getCombinedModifierFlags(node), flag);\n}\n\n/**\n * Test if the given node has the given `NodeFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) {\n * // ...\n * }\n * ```\n */\nexport const isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean =\n\tisFlagSetOnObject;\n\n/**\n * Test if the given node has the given `ObjectFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectFlagSet(node, ts.ObjectFlags.Anonymous)) {\n * // ...\n * }\n * ```\n */\nexport function isObjectFlagSet(\n\tobjectType: ts.ObjectType,\n\tflag: ts.ObjectFlags,\n): boolean {\n\treturn isFlagSet(objectType.objectFlags, flag);\n}\n\n/**\n * Test if the given node has the given `SymbolFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const symbol: ts.Symbol;\n *\n * if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) {\n * // ...\n * }\n * ```\n */\nexport const isSymbolFlagSet: (\n\tsymbol: ts.Symbol,\n\tflag: ts.SymbolFlags,\n) => boolean = isFlagSetOnObject;\n\n/**\n * Test if the given node has the given `TypeFlags` set.\n * @category Nodes - Flag Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeFlagSet(type, ts.TypeFlags.Any)) {\n * // ...\n * }\n * ```\n */\nexport const isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean =\n\tisFlagSetOnObject;\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test if the given iterable includes a modifier of any of the given kinds.\n * @category Modifier Utilities\n * @example\n * ```ts\n * declare const modifiers: ts.Modifier[];\n *\n * includesModifier(modifiers, ts.SyntaxKind.AbstractKeyword);\n * ```\n */\nexport function includesModifier(\n\tmodifiers: Iterable | undefined,\n\t...kinds: ts.ModifierSyntaxKind[]\n): boolean {\n\tif (modifiers === undefined) {\n\t\treturn false;\n\t}\n\n\tfor (const modifier of modifiers) {\n\t\tif (kinds.includes(modifier.kind as ts.ModifierSyntaxKind)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isAssignmentKind } from \"../syntax\";\n\n/* eslint-disable perfectionist/sort-enums */\n/**\n * What operations(s), if any, an expression applies.\n */\nexport enum AccessKind {\n\tNone = 0,\n\tRead = 1 << 0,\n\tWrite = 1 << 1,\n\tDelete = 1 << 2,\n\tReadWrite = Read | Write,\n\t/* eslint-enable perfectionist/sort-enums */\n}\n\n/**\n * Determines which operation(s), if any, an expression applies.\n * @example\n * ```ts\n * declare const node: ts.Expression;\n *\n * if (getAccessKind(node).Write & AccessKind.Write) !== 0) {\n * // this is a reassignment (write)\n * }\n * ```\n */\nexport function getAccessKind(node: ts.Expression): AccessKind {\n\tconst parent = node.parent;\n\tswitch (parent.kind) {\n\t\tcase ts.SyntaxKind.DeleteExpression:\n\t\t\treturn AccessKind.Delete;\n\t\tcase ts.SyntaxKind.PostfixUnaryExpression:\n\t\t\treturn AccessKind.ReadWrite;\n\t\tcase ts.SyntaxKind.PrefixUnaryExpression:\n\t\t\treturn (parent as ts.PrefixUnaryExpression).operator ===\n\t\t\t\tts.SyntaxKind.PlusPlusToken ||\n\t\t\t\t(parent as ts.PrefixUnaryExpression).operator ===\n\t\t\t\t\tts.SyntaxKind.MinusMinusToken\n\t\t\t\t? AccessKind.ReadWrite\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.BinaryExpression:\n\t\t\treturn (parent as ts.BinaryExpression).right === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: !isAssignmentKind((parent as ts.BinaryExpression).operatorToken.kind)\n\t\t\t\t\t? AccessKind.Read\n\t\t\t\t\t: (parent as ts.BinaryExpression).operatorToken.kind ===\n\t\t\t\t\t\t ts.SyntaxKind.EqualsToken\n\t\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t\t: AccessKind.ReadWrite;\n\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\treturn (parent as ts.ShorthandPropertyAssignment)\n\t\t\t\t.objectAssignmentInitializer === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: isInDestructuringAssignment(parent as ts.ShorthandPropertyAssignment)\n\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\treturn (parent as ts.PropertyAssignment).name === node\n\t\t\t\t? AccessKind.None\n\t\t\t\t: isInDestructuringAssignment(parent as ts.PropertyAssignment)\n\t\t\t\t\t? AccessKind.Write\n\t\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\tcase ts.SyntaxKind.SpreadElement:\n\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\treturn isInDestructuringAssignment(\n\t\t\t\tparent as\n\t\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t\t| ts.SpreadAssignment\n\t\t\t\t\t| ts.SpreadElement,\n\t\t\t)\n\t\t\t\t? AccessKind.Write\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ParenthesizedExpression:\n\t\tcase ts.SyntaxKind.NonNullExpression:\n\t\tcase ts.SyntaxKind.TypeAssertionExpression:\n\t\tcase ts.SyntaxKind.AsExpression:\n\t\t\t// (foo! as {})++\n\t\t\treturn getAccessKind(parent as ts.Expression);\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\t\treturn (parent as ts.ForInOrOfStatement).initializer === node\n\t\t\t\t? AccessKind.Write\n\t\t\t\t: AccessKind.Read;\n\t\tcase ts.SyntaxKind.ExpressionWithTypeArguments:\n\t\t\treturn (\n\t\t\t\t(parent as ts.ExpressionWithTypeArguments).parent as ts.HeritageClause\n\t\t\t).token === ts.SyntaxKind.ExtendsKeyword &&\n\t\t\t\tparent.parent.parent.kind !== ts.SyntaxKind.InterfaceDeclaration\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.ComputedPropertyName:\n\t\tcase ts.SyntaxKind.ExpressionStatement:\n\t\tcase ts.SyntaxKind.TypeOfExpression:\n\t\tcase ts.SyntaxKind.ElementAccessExpression:\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.IfStatement:\n\t\tcase ts.SyntaxKind.DoStatement:\n\t\tcase ts.SyntaxKind.WhileStatement:\n\t\tcase ts.SyntaxKind.SwitchStatement:\n\t\tcase ts.SyntaxKind.WithStatement:\n\t\tcase ts.SyntaxKind.ThrowStatement:\n\t\tcase ts.SyntaxKind.CallExpression:\n\t\tcase ts.SyntaxKind.NewExpression:\n\t\tcase ts.SyntaxKind.TaggedTemplateExpression:\n\t\tcase ts.SyntaxKind.JsxExpression:\n\t\tcase ts.SyntaxKind.Decorator:\n\t\tcase ts.SyntaxKind.TemplateSpan:\n\t\tcase ts.SyntaxKind.JsxOpeningElement:\n\t\tcase ts.SyntaxKind.JsxSelfClosingElement:\n\t\tcase ts.SyntaxKind.JsxSpreadAttribute:\n\t\tcase ts.SyntaxKind.VoidExpression:\n\t\tcase ts.SyntaxKind.ReturnStatement:\n\t\tcase ts.SyntaxKind.AwaitExpression:\n\t\tcase ts.SyntaxKind.YieldExpression:\n\t\tcase ts.SyntaxKind.ConditionalExpression:\n\t\tcase ts.SyntaxKind.CaseClause:\n\t\tcase ts.SyntaxKind.JsxElement:\n\t\t\treturn AccessKind.Read;\n\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\t\treturn (parent as ts.ArrowFunction).body === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.Write;\n\t\tcase ts.SyntaxKind.PropertyDeclaration:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\tcase ts.SyntaxKind.Parameter:\n\t\tcase ts.SyntaxKind.EnumMember:\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\tcase ts.SyntaxKind.JsxAttribute:\n\t\t\treturn (parent as ts.JsxAttribute).initializer === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.PropertyAccessExpression:\n\t\t\treturn (parent as ts.PropertyAccessExpression).expression === node\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\treturn (parent as ts.ExportAssignment).isExportEquals\n\t\t\t\t? AccessKind.Read\n\t\t\t\t: AccessKind.None;\n\t}\n\n\treturn AccessKind.None;\n}\n\nfunction isInDestructuringAssignment(\n\tnode:\n\t\t| ts.ArrayLiteralExpression\n\t\t| ts.ObjectLiteralExpression\n\t\t| ts.PropertyAssignment\n\t\t| ts.ShorthandPropertyAssignment\n\t\t| ts.SpreadAssignment\n\t\t| ts.SpreadElement,\n): boolean {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\tif (node.objectAssignmentInitializer !== undefined) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t// falls through\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\tnode = node.parent as\n\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t| ts.ObjectLiteralExpression;\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.SpreadElement:\n\t\t\tif (node.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tnode = node.parent;\n\t}\n\n\twhile (true) {\n\t\tswitch (node.parent.kind) {\n\t\t\tcase ts.SyntaxKind.BinaryExpression:\n\t\t\t\treturn (\n\t\t\t\t\t(node.parent as ts.BinaryExpression).left === node &&\n\t\t\t\t\t(node.parent as ts.BinaryExpression).operatorToken.kind ===\n\t\t\t\t\t\tts.SyntaxKind.EqualsToken\n\t\t\t\t);\n\t\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\t\t\treturn (node.parent as ts.ForOfStatement).initializer === node;\n\t\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\t\tcase ts.SyntaxKind.ObjectLiteralExpression:\n\t\t\t\tnode = node.parent as\n\t\t\t\t\t| ts.ArrayLiteralExpression\n\t\t\t\t\t| ts.ObjectLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.SpreadAssignment:\n\t\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\t\tnode = node.parent.parent as ts.ObjectLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.SpreadElement:\n\t\t\t\tif (node.parent.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tnode = node.parent.parent as ts.ArrayLiteralExpression;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Test of the kind given is for assignment.\n * @category Syntax Utilities\n * @example\n * ```ts\n * declare const kind: ts.SyntaxKind;\n *\n * isAssignmentKind(kind);\n * ```\n */\nexport function isAssignmentKind(kind: ts.SyntaxKind): boolean {\n\treturn (\n\t\tkind >= ts.SyntaxKind.FirstAssignment &&\n\t\tkind <= ts.SyntaxKind.LastAssignment\n\t);\n}\n\n/**\n * Test if a string is numeric.\n * @category Syntax Utilities\n * @example\n * ```ts\n * isNumericPropertyName(\"abc\"); // false\n * isNumericPropertyName(\"123\"); // true\n * ```\n */\nexport function isNumericPropertyName(name: string | ts.__String): boolean {\n\treturn String(+name) === name;\n}\n\nfunction charSize(ch: number) {\n\treturn ch >= 0x10000 ? 2 : 1;\n}\n\n/**\n * Determines whether the given text can be used to access a property with a `PropertyAccessExpression` while preserving the property's name.\n * @category Syntax Utilities\n * @example\n * ```ts\n * isValidPropertyAccess(\"abc\"); // true\n * isValidPropertyAccess(\"123\"); // false\n * ```\n */\nexport function isValidPropertyAccess(\n\ttext: string,\n\tlanguageVersion = ts.ScriptTarget.Latest,\n): boolean {\n\tif (text.length === 0) {\n\t\treturn false;\n\t}\n\n\tlet ch = text.codePointAt(0)!;\n\tif (!ts.isIdentifierStart(ch, languageVersion)) {\n\t\treturn false;\n\t}\n\n\tfor (let i = charSize(ch); i < text.length; i += charSize(ch)) {\n\t\tch = text.codePointAt(i)!;\n\t\tif (!ts.isIdentifierPart(ch, languageVersion)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n","import ts from \"typescript\";\n\nimport { isSuperExpression } from \"./single\";\nimport {\n\tisDeclarationName,\n\tisEntityNameExpression,\n\tisJSDocNamespaceBody,\n\tisJsxTagNameExpression,\n\tisNamespaceBody,\n} from \"./union\";\n\n/**\n * An `AssertionExpression` that is declared as const.\n * @category Node Types\n */\nexport type ConstAssertionExpression = ts.AssertionExpression & {\n\ttype: ts.TypeReferenceNode;\n\ttypeName: ConstAssertionIdentifier;\n};\n\n/**\n * An `Identifier` with an `escapedText` value of `\"const\"`.\n * @category Node Types\n */\nexport type ConstAssertionIdentifier = ts.Identifier & {\n\tescapedText: ts.__String & \"const\";\n};\n\n/**\n * Test if a node is a {@link ConstAssertionExpression}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isConstAssertionExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link ConstAssertionExpression}.\n */\nexport function isConstAssertionExpression(\n\tnode: ts.AssertionExpression,\n): node is ConstAssertionExpression {\n\treturn (\n\t\tts.isTypeReferenceNode(node.type) &&\n\t\tts.isIdentifier(node.type.typeName) &&\n\t\tnode.type.typeName.escapedText === \"const\"\n\t);\n}\n\n/**\n * Test if a node is an `IterationStatement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isIterationStatement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `IterationStatement`.\n */\nexport function isIterationStatement(\n\tnode: ts.Node,\n): node is ts.IterationStatement {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.DoStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.WhileStatement:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\n/**\n * Test if a node is a `JSDocNamespaceDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocNamespaceDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocNamespaceDeclaration`.\n */\nexport function isJSDocNamespaceDeclaration(\n\tnode: ts.Node,\n): node is ts.JSDocNamespaceDeclaration {\n\treturn (\n\t\tts.isModuleDeclaration(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\t(node.body === undefined || isJSDocNamespaceBody(node.body))\n\t);\n}\n\n/**\n * Test if a node is a `JsxTagNamePropertyAccess`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxTagNamePropertyAccess(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxTagNamePropertyAccess`.\n */\nexport function isJsxTagNamePropertyAccess(\n\tnode: ts.Node,\n): node is ts.JsxTagNamePropertyAccess {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) &&\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts < 5\n\t\tisJsxTagNameExpression(node.expression)\n\t);\n}\n\n/**\n * a `NamedDeclaration` that definitely has a name.\n * @category Node Types\n */\nexport interface NamedDeclarationWithName extends ts.NamedDeclaration {\n\tname: ts.DeclarationName;\n}\n\n/**\n * Test if a node is a {@link NamedDeclarationWithName}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedDeclarationWithName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NamedDeclarationWithName}.\n */\nexport function isNamedDeclarationWithName(\n\tnode: ts.Declaration,\n): node is NamedDeclarationWithName {\n\treturn (\n\t\t\"name\" in node &&\n\t\tnode.name !== undefined &&\n\t\tnode.name !== null &&\n\t\tisDeclarationName(node.name as ts.Node)\n\t);\n}\n\n/**\n * Test if a node is a `NamespaceDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamespaceDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamespaceDeclaration`.\n */\nexport function isNamespaceDeclaration(\n\tnode: ts.Node,\n): node is ts.NamespaceDeclaration {\n\treturn (\n\t\tts.isModuleDeclaration(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\tnode.body !== undefined &&\n\t\tisNamespaceBody(node.body)\n\t);\n}\n\n/**\n * A number or string-like literal.\n * @category Node Types\n */\nexport type NumericOrStringLikeLiteral =\n\t| ts.NumericLiteral\n\t| ts.StringLiteralLike;\n\n/**\n * Test if a node is a {@link NumericOrStringLikeLiteral}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNumericOrStringLikeLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NumericOrStringLikeLiteral}.\n */\nexport function isNumericOrStringLikeLiteral(\n\tnode: ts.Node,\n): node is NumericOrStringLikeLiteral {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.StringLiteral:\n\t\tcase ts.SyntaxKind.NumericLiteral:\n\t\tcase ts.SyntaxKind.NoSubstitutionTemplateLiteral:\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\n/**\n * Test if a node is a `PropertyAccessEntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPropertyAccessEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PropertyAccessEntityNameExpression`.\n */\nexport function isPropertyAccessEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.PropertyAccessEntityNameExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) &&\n\t\tts.isIdentifier(node.name) &&\n\t\tisEntityNameExpression(node.expression)\n\t);\n}\n\n/**\n * Test if a node is a `SuperElementAccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperElementAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperElementAccessExpression`.\n */\nexport function isSuperElementAccessExpression(\n\tnode: ts.Node,\n): node is ts.SuperElementAccessExpression {\n\treturn (\n\t\tts.isElementAccessExpression(node) && isSuperExpression(node.expression)\n\t);\n}\n\n/**\n * Test if a node is a `SuperPropertyAccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperPropertyAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperPropertyAccessExpression`.\n */\nexport function isSuperPropertyAccessExpression(\n\tnode: ts.Node,\n): node is ts.SuperPropertyAccessExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) && isSuperExpression(node.expression)\n\t);\n}\n","import ts from \"typescript\";\n\n/**\n * A node that represents the any keyword.\n * @category Node Types\n */\nexport type AnyKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the bigint keyword.\n * @category Node Types\n */\nexport type BigIntKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the boolean keyword.\n * @category Node Types\n */\nexport type BooleanKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the false keyword.\n * @category Node Types\n */\nexport type FalseKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the import keyword.\n * @category Node Types\n */\nexport type ImportKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the never keyword.\n * @category Node Types\n */\nexport type NeverKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the null keyword.\n * @category Node Types\n */\nexport type NullKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the number keyword.\n * @category Node Types\n */\nexport type NumberKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the object keyword.\n * @category Node Types\n */\nexport type ObjectKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the string keyword.\n * @category Node Types\n */\nexport type StringKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the super keyword.\n * @category Node Types\n */\nexport type SuperKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the symbol keyword.\n * @category Node Types\n */\nexport type SymbolKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the this keyword.\n * @category Node Types\n */\nexport type ThisKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the true keyword.\n * @category Node Types\n */\nexport type TrueKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the undefined keyword.\n * @category Node Types\n */\nexport type UndefinedKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the unknown keyword.\n * @category Node Types\n */\nexport type UnknownKeyword = ts.KeywordToken;\n\n/**\n * A node that represents the void keyword.\n * @category Node Types\n */\nexport type VoidKeyword = ts.KeywordToken;\n\n/**\n * Test if a node is an `AbstractKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAbstractKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AbstractKeyword`.\n */\nexport function isAbstractKeyword(node: ts.Node): node is ts.AbstractKeyword {\n\treturn node.kind === ts.SyntaxKind.AbstractKeyword;\n}\n\n/**\n * Test if a node is an `AccessorKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessorKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessorKeyword`.\n */\nexport function isAccessorKeyword(node: ts.Node): node is ts.AccessorKeyword {\n\treturn node.kind === ts.SyntaxKind.AccessorKeyword;\n}\n\n/**\n * Test if a node is an {@link AnyKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAnyKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link AnyKeyword}.\n */\nexport function isAnyKeyword(node: ts.Node): node is AnyKeyword {\n\treturn node.kind === ts.SyntaxKind.AnyKeyword;\n}\n\n/**\n * Test if a node is an `AssertKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssertKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssertKeyword`.\n */\nexport function isAssertKeyword(node: ts.Node): node is ts.AssertKeyword {\n\treturn node.kind === ts.SyntaxKind.AssertKeyword;\n}\n\n/**\n * Test if a node is an `AssertsKeyword`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAssertsKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssertsKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssertsKeyword`.\n */\nexport function isAssertsKeyword(node: ts.Node): node is ts.AssertsKeyword {\n\treturn node.kind === ts.SyntaxKind.AssertsKeyword;\n}\n\n/**\n * Test if a node is an `AsyncKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAsyncKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AsyncKeyword`.\n */\nexport function isAsyncKeyword(node: ts.Node): node is ts.AsyncKeyword {\n\treturn node.kind === ts.SyntaxKind.AsyncKeyword;\n}\n\n/**\n * Test if a node is an `AwaitKeyword`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAwaitKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAwaitKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AwaitKeyword`.\n */\nexport function isAwaitKeyword(node: ts.Node): node is ts.AwaitKeyword {\n\treturn node.kind === ts.SyntaxKind.AwaitKeyword;\n}\n\n/**\n * Test if a node is a {@link BigIntKeyword}.\n * @deprecated With TypeScript v5, in favor of typescript's `isBigIntKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBigIntKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link BigIntKeyword}.\n */\nexport function isBigIntKeyword(node: ts.Node): node is BigIntKeyword {\n\treturn node.kind === ts.SyntaxKind.BigIntKeyword;\n}\n\n/**\n * Test if a node is a {@link BooleanKeyword}.\n * @deprecated With TypeScript v5, in favor of typescript's `isBooleanKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBooleanKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link BooleanKeyword}.\n */\nexport function isBooleanKeyword(node: ts.Node): node is BooleanKeyword {\n\treturn node.kind === ts.SyntaxKind.BooleanKeyword;\n}\n\n/**\n * Test if a node is a `ColonToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isColonToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isColonToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ColonToken`.\n */\nexport function isColonToken(node: ts.Node): node is ts.ColonToken {\n\treturn node.kind === ts.SyntaxKind.ColonToken;\n}\n\n/**\n * Test if a node is a `ConstKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isConstKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ConstKeyword`.\n */\nexport function isConstKeyword(node: ts.Node): node is ts.ConstKeyword {\n\treturn node.kind === ts.SyntaxKind.ConstKeyword;\n}\n\n/**\n * Test if a node is a `DeclareKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclareKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclareKeyword`.\n */\nexport function isDeclareKeyword(node: ts.Node): node is ts.DeclareKeyword {\n\treturn node.kind === ts.SyntaxKind.DeclareKeyword;\n}\n\n/**\n * Test if a node is a `DefaultKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDefaultKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DefaultKeyword`.\n */\nexport function isDefaultKeyword(node: ts.Node): node is ts.DefaultKeyword {\n\treturn node.kind === ts.SyntaxKind.DefaultKeyword;\n}\n\n/**\n * Test if a node is a `DotToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDotToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DotToken`.\n */\nexport function isDotToken(node: ts.Node): node is ts.DotToken {\n\treturn node.kind === ts.SyntaxKind.DotToken;\n}\n\n/**\n * Test if a node is an `EndOfFileToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEndOfFileToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EndOfFileToken`.\n */\nexport function isEndOfFileToken(node: ts.Node): node is ts.EndOfFileToken {\n\treturn node.kind === ts.SyntaxKind.EndOfFileToken;\n}\n\n/**\n * Test if a node is an `EqualsGreaterThanToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isEqualsGreaterThanToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEqualsGreaterThanToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EqualsGreaterThanToken`.\n */\nexport function isEqualsGreaterThanToken(\n\tnode: ts.Node,\n): node is ts.EqualsGreaterThanToken {\n\treturn node.kind === ts.SyntaxKind.EqualsGreaterThanToken;\n}\n\n/**\n * Test if a node is an `EqualsToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEqualsToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EqualsToken`.\n */\nexport function isEqualsToken(node: ts.Node): node is ts.EqualsToken {\n\treturn node.kind === ts.SyntaxKind.EqualsToken;\n}\n\n/**\n * Test if a node is an `ExclamationToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isExclamationToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isExclamationToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ExclamationToken`.\n */\nexport function isExclamationToken(node: ts.Node): node is ts.ExclamationToken {\n\treturn node.kind === ts.SyntaxKind.ExclamationToken;\n}\n\n/**\n * Test if a node is an `ExportKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isExportKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ExportKeyword`.\n */\nexport function isExportKeyword(node: ts.Node): node is ts.ExportKeyword {\n\treturn node.kind === ts.SyntaxKind.ExportKeyword;\n}\n\n/**\n * Test if a node is a {@link FalseKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFalseKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link FalseKeyword}.\n */\nexport function isFalseKeyword(node: ts.Node): node is FalseKeyword {\n\treturn node.kind === ts.SyntaxKind.FalseKeyword;\n}\n\n/**\n * Test if a node is a `FalseLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFalseLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `FalseLiteral`.\n */\nexport function isFalseLiteral(node: ts.Node): node is ts.FalseLiteral {\n\treturn node.kind === ts.SyntaxKind.FalseKeyword;\n}\n\n/**\n * Test if a node is an `ImportExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isImportExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ImportExpression`.\n */\nexport function isImportExpression(node: ts.Node): node is ts.ImportExpression {\n\treturn node.kind === ts.SyntaxKind.ImportKeyword;\n}\n\n/**\n * Test if a node is an {@link ImportKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isImportKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link ImportKeyword}.\n */\nexport function isImportKeyword(node: ts.Node): node is ImportKeyword {\n\treturn node.kind === ts.SyntaxKind.ImportKeyword;\n}\n\n/**\n * Test if a node is an `InKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isInKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `InKeyword`.\n */\nexport function isInKeyword(node: ts.Node): node is ts.InKeyword {\n\treturn node.kind === ts.SyntaxKind.InKeyword;\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `InputFiles`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isInputFiles(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `InputFiles`.\n */\nexport function isInputFiles(node: ts.Node): node is ts.InputFiles {\n\treturn node.kind === ts.SyntaxKind.InputFiles;\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a `JSDocText`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocText(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocText`.\n */\nexport function isJSDocText(node: ts.Node): node is ts.JSDocText {\n\treturn node.kind === ts.SyntaxKind.JSDocText;\n}\n\n/**\n * Test if a node is a `JsonMinusNumericLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsonMinusNumericLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsonMinusNumericLiteral`.\n */\nexport function isJsonMinusNumericLiteral(\n\tnode: ts.Node,\n): node is ts.JsonMinusNumericLiteral {\n\treturn node.kind === ts.SyntaxKind.PrefixUnaryExpression;\n}\n\n/**\n * Test if a node is a {@link NeverKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNeverKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NeverKeyword}.\n */\nexport function isNeverKeyword(node: ts.Node): node is NeverKeyword {\n\treturn node.kind === ts.SyntaxKind.NeverKeyword;\n}\n\n/**\n * Test if a node is a {@link NullKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNullKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NullKeyword}.\n */\nexport function isNullKeyword(node: ts.Node): node is NullKeyword {\n\treturn node.kind === ts.SyntaxKind.NullKeyword;\n}\n\n/**\n * Test if a node is a `NullLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNullLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NullLiteral`.\n */\nexport function isNullLiteral(node: ts.Node): node is ts.NullLiteral {\n\treturn node.kind === ts.SyntaxKind.NullKeyword;\n}\n\n/**\n * Test if a node is a {@link NumberKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNumberKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link NumberKeyword}.\n */\nexport function isNumberKeyword(node: ts.Node): node is NumberKeyword {\n\treturn node.kind === ts.SyntaxKind.NumberKeyword;\n}\n\n/**\n * Test if a node is an {@link ObjectKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link ObjectKeyword}.\n */\nexport function isObjectKeyword(node: ts.Node): node is ObjectKeyword {\n\treturn node.kind === ts.SyntaxKind.ObjectKeyword;\n}\n\n/**\n * Test if a node is an `OutKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isOutKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `OutKeyword`.\n */\nexport function isOutKeyword(node: ts.Node): node is ts.OutKeyword {\n\treturn node.kind === ts.SyntaxKind.OutKeyword;\n}\n\n/**\n * Test if a node is an `OverrideKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isOverrideKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `OverrideKeyword`.\n */\nexport function isOverrideKeyword(node: ts.Node): node is ts.OverrideKeyword {\n\treturn node.kind === ts.SyntaxKind.OverrideKeyword;\n}\n\n/**\n * Test if a node is a `PrivateKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPrivateKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PrivateKeyword`.\n */\nexport function isPrivateKeyword(node: ts.Node): node is ts.PrivateKeyword {\n\treturn node.kind === ts.SyntaxKind.PrivateKeyword;\n}\n\n/**\n * Test if a node is a `ProtectedKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isProtectedKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ProtectedKeyword`.\n */\nexport function isProtectedKeyword(node: ts.Node): node is ts.ProtectedKeyword {\n\treturn node.kind === ts.SyntaxKind.ProtectedKeyword;\n}\n\n/**\n * Test if a node is a `PublicKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPublicKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PublicKeyword`.\n */\nexport function isPublicKeyword(node: ts.Node): node is ts.PublicKeyword {\n\treturn node.kind === ts.SyntaxKind.PublicKeyword;\n}\n\n/**\n * Test if a node is a `QuestionDotToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isQuestionDotToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isQuestionDotToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `QuestionDotToken`.\n */\nexport function isQuestionDotToken(node: ts.Node): node is ts.QuestionDotToken {\n\treturn node.kind === ts.SyntaxKind.QuestionDotToken;\n}\n\n/**\n * Test if a node is a `QuestionToken`.\n * @deprecated With TypeScript v5, in favor of typescript's `isQuestionToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isQuestionToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `QuestionToken`.\n */\nexport function isQuestionToken(node: ts.Node): node is ts.QuestionToken {\n\treturn node.kind === ts.SyntaxKind.QuestionToken;\n}\n\n/**\n * Test if a node is a `ReadonlyKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isReadonlyKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ReadonlyKeyword`.\n */\nexport function isReadonlyKeyword(node: ts.Node): node is ts.ReadonlyKeyword {\n\treturn node.kind === ts.SyntaxKind.ReadonlyKeyword;\n}\n\n/**\n * Test if a node is a `StaticKeyword`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isStaticKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `StaticKeyword`.\n */\nexport function isStaticKeyword(node: ts.Node): node is ts.StaticKeyword {\n\treturn node.kind === ts.SyntaxKind.StaticKeyword;\n}\n\n/**\n * Test if a node is a {@link StringKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isStringKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link StringKeyword}.\n */\nexport function isStringKeyword(node: ts.Node): node is StringKeyword {\n\treturn node.kind === ts.SyntaxKind.StringKeyword;\n}\n\n/**\n * Test if a node is a `SuperExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperExpression`.\n */\nexport function isSuperExpression(node: ts.Node): node is ts.SuperExpression {\n\treturn node.kind === ts.SyntaxKind.SuperKeyword;\n}\n\n/**\n * Test if a node is a {@link SuperKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link SuperKeyword}.\n */\nexport function isSuperKeyword(node: ts.Node): node is SuperKeyword {\n\treturn node.kind === ts.SyntaxKind.SuperKeyword;\n}\n\n/**\n * Test if a node is a {@link SymbolKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSymbolKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link SymbolKeyword}.\n */\nexport function isSymbolKeyword(node: ts.Node): node is SymbolKeyword {\n\treturn node.kind === ts.SyntaxKind.SymbolKeyword;\n}\n\n/**\n * Test if a node is a `SyntaxList`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSyntaxList(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SyntaxList`.\n */\nexport function isSyntaxList(node: ts.Node): node is ts.SyntaxList {\n\treturn node.kind === ts.SyntaxKind.SyntaxList;\n}\n\n/**\n * Test if a node is a `ThisExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isThisExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ThisExpression`.\n */\nexport function isThisExpression(node: ts.Node): node is ts.ThisExpression {\n\treturn node.kind === ts.SyntaxKind.ThisKeyword;\n}\n\n/**\n * Test if a node is a {@link ThisKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isThisKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link ThisKeyword}.\n */\nexport function isThisKeyword(node: ts.Node): node is ThisKeyword {\n\treturn node.kind === ts.SyntaxKind.ThisKeyword;\n}\n\n/**\n * Test if a node is a {@link TrueKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTrueKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link TrueKeyword}.\n */\nexport function isTrueKeyword(node: ts.Node): node is TrueKeyword {\n\treturn node.kind === ts.SyntaxKind.TrueKeyword;\n}\n\n/**\n * Test if a node is a `TrueLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTrueLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TrueLiteral`.\n */\nexport function isTrueLiteral(node: ts.Node): node is ts.TrueLiteral {\n\treturn node.kind === ts.SyntaxKind.TrueKeyword;\n}\n\n/**\n * Test if a node is an {@link UndefinedKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUndefinedKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link UndefinedKeyword}.\n */\nexport function isUndefinedKeyword(node: ts.Node): node is UndefinedKeyword {\n\treturn node.kind === ts.SyntaxKind.UndefinedKeyword;\n}\n\n/**\n * Test if a node is an {@link UnknownKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnknownKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an {@link UnknownKeyword}.\n */\nexport function isUnknownKeyword(node: ts.Node): node is UnknownKeyword {\n\treturn node.kind === ts.SyntaxKind.UnknownKeyword;\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedPrologue`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedPrologue(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedPrologue`.\n */\nexport function isUnparsedPrologue(node: ts.Node): node is ts.UnparsedPrologue {\n\treturn node.kind === ts.SyntaxKind.UnparsedPrologue;\n}\n/* eslint-enable deprecation/deprecation */\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedSyntheticReference`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedSyntheticReference(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedSyntheticReference`.\n */\nexport function isUnparsedSyntheticReference(\n\tnode: ts.Node,\n): node is ts.UnparsedSyntheticReference {\n\treturn node.kind === ts.SyntaxKind.UnparsedSyntheticReference;\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a {@link VoidKeyword}.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isVoidKeyword(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a {@link VoidKeyword}.\n */\nexport function isVoidKeyword(node: ts.Node): node is VoidKeyword {\n\treturn node.kind === ts.SyntaxKind.VoidKeyword;\n}\n","import ts from \"typescript\";\n\nimport { isTsVersionAtLeast } from \"../../utils\";\nimport {\n\tisJSDocNamespaceDeclaration,\n\tisJsxTagNamePropertyAccess,\n\tisNamespaceDeclaration,\n\tisPropertyAccessEntityNameExpression,\n\tisSuperElementAccessExpression,\n\tisSuperPropertyAccessExpression,\n} from \"./compound\";\nimport {\n\tisAccessorKeyword,\n\tisEndOfFileToken,\n\tisFalseLiteral,\n\tisJSDocText,\n\tisJsonMinusNumericLiteral,\n\tisNullLiteral,\n\tisPrivateKeyword,\n\tisProtectedKeyword,\n\tisPublicKeyword,\n\tisReadonlyKeyword,\n\tisStaticKeyword,\n\tisThisExpression,\n\tisTrueLiteral,\n} from \"./single\";\n\n/**\n * Test if a node is an `AccessExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessExpression`.\n */\nexport function isAccessExpression(node: ts.Node): node is ts.AccessExpression {\n\treturn (\n\t\tts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)\n\t);\n}\n\n/**\n * Test if a node is an `AccessibilityModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessibilityModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessibilityModifier`.\n */\nexport function isAccessibilityModifier(\n\tnode: ts.Node,\n): node is ts.AccessibilityModifier {\n\treturn (\n\t\tisPublicKeyword(node) || isPrivateKeyword(node) || isProtectedKeyword(node)\n\t);\n}\n\n/**\n * Test if a node is an `AccessorDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isAccessor`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAccessorDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AccessorDeclaration`.\n */\nexport function isAccessorDeclaration(\n\tnode: ts.Node,\n): node is ts.AccessorDeclaration {\n\treturn ts.isGetAccessorDeclaration(node) || ts.isSetAccessorDeclaration(node);\n}\n\n/**\n * Test if a node is an `ArrayBindingElement`.\n * @deprecated With TypeScript v5, in favor of typescript's `isArrayBindingElement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isArrayBindingElement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ArrayBindingElement`.\n */\nexport function isArrayBindingElement(\n\tnode: ts.Node,\n): node is ts.ArrayBindingElement {\n\treturn ts.isBindingElement(node) || ts.isOmittedExpression(node);\n}\n\n/**\n * Test if a node is an `ArrayBindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isArrayBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ArrayBindingOrAssignmentPattern`.\n */\nexport function isArrayBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.ArrayBindingOrAssignmentPattern {\n\treturn ts.isArrayBindingPattern(node) || ts.isArrayLiteralExpression(node);\n}\n\n/**\n * Test if a node is an `AssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `AssignmentPattern`.\n */\nexport function isAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.AssignmentPattern {\n\treturn (\n\t\tts.isObjectLiteralExpression(node) || ts.isArrayLiteralExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentElementRestIndicator`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentElementRestIndicator(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentElementRestIndicator`.\n */\nexport function isBindingOrAssignmentElementRestIndicator(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentElementRestIndicator {\n\tif (ts.isSpreadElement(node) || ts.isSpreadAssignment(node)) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4)) {\n\t\treturn ts.isDotDotDotToken(node);\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentElementTarget`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentElementTarget(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentElementTarget`.\n */\nexport function isBindingOrAssignmentElementTarget(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentElementTarget {\n\treturn (\n\t\tisBindingOrAssignmentPattern(node) ||\n\t\tts.isIdentifier(node) ||\n\t\tts.isPropertyAccessExpression(node) ||\n\t\tts.isElementAccessExpression(node) ||\n\t\tts.isOmittedExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingOrAssignmentPattern`.\n */\nexport function isBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.BindingOrAssignmentPattern {\n\treturn (\n\t\tisObjectBindingOrAssignmentPattern(node) ||\n\t\tisArrayBindingOrAssignmentPattern(node)\n\t);\n}\n\n/**\n * Test if a node is a `BindingPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBindingPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BindingPattern`.\n */\nexport function isBindingPattern(node: ts.Node): node is ts.BindingPattern {\n\treturn ts.isObjectBindingPattern(node) || ts.isArrayBindingPattern(node);\n}\n\n/**\n * Test if a node is a `BlockLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBlockLike(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BlockLike`.\n */\nexport function isBlockLike(node: ts.Node): node is ts.BlockLike {\n\treturn (\n\t\tts.isSourceFile(node) ||\n\t\tts.isBlock(node) ||\n\t\tts.isModuleBlock(node) ||\n\t\tts.isCaseOrDefaultClause(node)\n\t);\n}\n\n/**\n * Test if a node is a `BooleanLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isBooleanLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `BooleanLiteral`.\n */\nexport function isBooleanLiteral(node: ts.Node): node is ts.BooleanLiteral {\n\treturn isTrueLiteral(node) || isFalseLiteral(node);\n}\n\n/**\n * Test if a node is a `ClassLikeDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isClassLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isClassLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ClassLikeDeclaration`.\n */\nexport function isClassLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.ClassLikeDeclaration {\n\treturn ts.isClassDeclaration(node) || ts.isClassExpression(node);\n}\n\n/**\n * Test if a node is a `ClassMemberModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isClassMemberModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ClassMemberModifier`.\n */\nexport function isClassMemberModifier(\n\tnode: ts.Node,\n): node is ts.ClassMemberModifier {\n\treturn (\n\t\tisAccessibilityModifier(node) ||\n\t\tisReadonlyKeyword(node) ||\n\t\tisStaticKeyword(node) ||\n\t\tisAccessorKeyword(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationName`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationName`.\n */\nexport function isDeclarationName(node: ts.Node): node is ts.DeclarationName {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tts.isPrivateIdentifier(node) ||\n\t\tts.isStringLiteralLike(node) ||\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isComputedPropertyName(node) ||\n\t\tts.isElementAccessExpression(node) ||\n\t\tisBindingPattern(node) ||\n\t\tisEntityNameExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationWithTypeParameterChildren`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationWithTypeParameterChildren(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationWithTypeParameterChildren`.\n */\nexport function isDeclarationWithTypeParameterChildren(\n\tnode: ts.Node,\n): node is ts.DeclarationWithTypeParameterChildren {\n\treturn (\n\t\tisSignatureDeclaration(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isJSDocTemplateTag(node)\n\t);\n}\n\n/**\n * Test if a node is a `DeclarationWithTypeParameters`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDeclarationWithTypeParameters(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DeclarationWithTypeParameters`.\n */\nexport function isDeclarationWithTypeParameters(\n\tnode: ts.Node,\n): node is ts.DeclarationWithTypeParameters {\n\treturn (\n\t\tisDeclarationWithTypeParameterChildren(node) ||\n\t\tts.isJSDocTypedefTag(node) ||\n\t\tts.isJSDocCallbackTag(node) ||\n\t\tts.isJSDocSignature(node)\n\t);\n}\n\n/**\n * Test if a node is a `DestructuringPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isDestructuringPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `DestructuringPattern`.\n */\nexport function isDestructuringPattern(\n\tnode: ts.Node,\n): node is ts.DestructuringPattern {\n\treturn (\n\t\tisBindingPattern(node) ||\n\t\tts.isObjectLiteralExpression(node) ||\n\t\tts.isArrayLiteralExpression(node)\n\t);\n}\n\n/**\n * Test if a node is an `EntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EntityNameExpression`.\n */\nexport function isEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.EntityNameExpression {\n\treturn ts.isIdentifier(node) || isPropertyAccessEntityNameExpression(node);\n}\n\n/**\n * Test if a node is an `EntityNameOrEntityNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isEntityNameOrEntityNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `EntityNameOrEntityNameExpression`.\n */\nexport function isEntityNameOrEntityNameExpression(\n\tnode: ts.Node,\n): node is ts.EntityNameOrEntityNameExpression {\n\treturn ts.isEntityName(node) || isEntityNameExpression(node);\n}\n\n/**\n * Test if a node is a `ForInOrOfStatement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isForInOrOfStatement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ForInOrOfStatement`.\n */\nexport function isForInOrOfStatement(\n\tnode: ts.Node,\n): node is ts.ForInOrOfStatement {\n\treturn ts.isForInStatement(node) || ts.isForOfStatement(node);\n}\n\n/**\n * Test if a node is a `FunctionLikeDeclaration`.\n * @deprecated With TypeScript v5, in favor of typescript's `isFunctionLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFunctionLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `FunctionLikeDeclaration`.\n */\nexport function isFunctionLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.FunctionLikeDeclaration {\n\treturn (\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasDecorators`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasDecorators(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasDecorators`.\n */\nexport function hasDecorators(node: ts.Node): node is ts.HasDecorators {\n\treturn (\n\t\tts.isParameter(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isClassExpression(node) ||\n\t\tts.isClassDeclaration(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasExpressionInitializer`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasExpressionInitializer(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasExpressionInitializer`.\n */\nexport function hasExpressionInitializer(\n\tnode: ts.Node,\n): node is ts.HasExpressionInitializer {\n\treturn (\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isEnumMember(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasInitializer`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasInitializer(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasInitializer`.\n */\nexport function hasInitializer(node: ts.Node): node is ts.HasInitializer {\n\treturn (\n\t\thasExpressionInitializer(node) ||\n\t\tts.isForStatement(node) ||\n\t\tts.isForInStatement(node) ||\n\t\tts.isForOfStatement(node) ||\n\t\tts.isJsxAttribute(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasJSDoc`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasJSDoc(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasJSDoc`.\n */\nexport function hasJSDoc(node: ts.Node): node is ts.HasJSDoc {\n\tif (\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisAccessorDeclaration(node) ||\n\t\tts.isArrowFunction(node) ||\n\t\tts.isBlock(node) ||\n\t\tts.isBreakStatement(node) ||\n\t\tts.isCallSignatureDeclaration(node) ||\n\t\tts.isCaseClause(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isConstructSignatureDeclaration(node) ||\n\t\tts.isContinueStatement(node) ||\n\t\tts.isDebuggerStatement(node) ||\n\t\tts.isDoStatement(node) ||\n\t\tts.isEmptyStatement(node) ||\n\t\tisEndOfFileToken(node) ||\n\t\tts.isEnumDeclaration(node) ||\n\t\tts.isEnumMember(node) ||\n\t\tts.isExportAssignment(node) ||\n\t\tts.isExportDeclaration(node) ||\n\t\tts.isExportSpecifier(node) ||\n\t\tts.isExpressionStatement(node) ||\n\t\tts.isForInStatement(node) ||\n\t\tts.isForOfStatement(node) ||\n\t\tts.isForStatement(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isFunctionTypeNode(node) ||\n\t\tts.isIfStatement(node) ||\n\t\tts.isImportDeclaration(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isJSDocFunctionType(node) ||\n\t\tts.isLabeledStatement(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isModuleDeclaration(node) ||\n\t\tts.isNamedTupleMember(node) ||\n\t\tts.isNamespaceExportDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isParenthesizedExpression(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isReturnStatement(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isSpreadAssignment(node) ||\n\t\tts.isSwitchStatement(node) ||\n\t\tts.isThrowStatement(node) ||\n\t\tts.isTryStatement(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isVariableStatement(node) ||\n\t\tts.isWhileStatement(node) ||\n\t\tts.isWithStatement(node)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4) && ts.isClassStaticBlockDeclaration(node)) {\n\t\treturn true;\n\t}\n\n\tif (\n\t\tisTsVersionAtLeast(5, 0) &&\n\t\t(ts.isBinaryExpression(node) ||\n\t\t\tts.isElementAccessExpression(node) ||\n\t\t\tts.isIdentifier(node) ||\n\t\t\tts.isJSDocSignature(node) ||\n\t\t\tts.isObjectLiteralExpression(node) ||\n\t\t\tts.isPropertyAccessExpression(node) ||\n\t\t\tts.isTypeParameterDeclaration(node))\n\t) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `HasModifiers`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasModifiers(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasModifiers`.\n */\nexport function hasModifiers(node: ts.Node): node is ts.HasModifiers {\n\treturn (\n\t\tts.isTypeParameterDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\tts.isGetAccessorDeclaration(node) ||\n\t\tts.isSetAccessorDeclaration(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node) ||\n\t\tts.isClassExpression(node) ||\n\t\tts.isVariableStatement(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isClassDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isEnumDeclaration(node) ||\n\t\tts.isModuleDeclaration(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isImportDeclaration(node) ||\n\t\tts.isExportAssignment(node) ||\n\t\tts.isExportDeclaration(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasType`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasType(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasType`.\n */\nexport function hasType(node: ts.Node): node is ts.HasType {\n\treturn (\n\t\tisSignatureDeclaration(node) ||\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isTypePredicateNode(node) ||\n\t\tts.isParenthesizedTypeNode(node) ||\n\t\tts.isTypeOperatorNode(node) ||\n\t\tts.isMappedTypeNode(node) ||\n\t\tts.isAssertionExpression(node) ||\n\t\tts.isTypeAliasDeclaration(node) ||\n\t\tts.isJSDocTypeExpression(node) ||\n\t\tts.isJSDocNonNullableType(node) ||\n\t\tts.isJSDocNullableType(node) ||\n\t\tts.isJSDocOptionalType(node) ||\n\t\tts.isJSDocVariadicType(node)\n\t);\n}\n\n/**\n * Test if a node is a `HasTypeArguments`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (hasTypeArguments(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `HasTypeArguments`.\n */\nexport function hasTypeArguments(node: ts.Node): node is ts.HasTypeArguments {\n\treturn (\n\t\tts.isCallExpression(node) ||\n\t\tts.isNewExpression(node) ||\n\t\tts.isTaggedTemplateExpression(node) ||\n\t\tts.isJsxOpeningElement(node) ||\n\t\tts.isJsxSelfClosingElement(node)\n\t);\n}\n\n/**\n * Test if a node is a `JSDocComment`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocComment(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocComment`.\n */\nexport function isJSDocComment(node: ts.Node): node is ts.JSDocComment {\n\tif (isJSDocText(node)) {\n\t\treturn true;\n\t}\n\n\tif (isTsVersionAtLeast(4, 4)) {\n\t\treturn (\n\t\t\tts.isJSDocLink(node) ||\n\t\t\tts.isJSDocLinkCode(node) ||\n\t\t\tts.isJSDocLinkPlain(node)\n\t\t);\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `JSDocNamespaceBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocNamespaceBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocNamespaceBody`.\n */\nexport function isJSDocNamespaceBody(\n\tnode: ts.Node,\n): node is ts.JSDocNamespaceBody {\n\treturn ts.isIdentifier(node) || isJSDocNamespaceDeclaration(node);\n}\n\n/**\n * Test if a node is a `JSDocTypeReferencingNode`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJSDocTypeReferencingNode(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JSDocTypeReferencingNode`.\n */\nexport function isJSDocTypeReferencingNode(\n\tnode: ts.Node,\n): node is ts.JSDocTypeReferencingNode {\n\treturn (\n\t\tts.isJSDocVariadicType(node) ||\n\t\tts.isJSDocOptionalType(node) ||\n\t\tts.isJSDocNullableType(node) ||\n\t\tts.isJSDocNonNullableType(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsonObjectExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsonObjectExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsonObjectExpression`.\n */\nexport function isJsonObjectExpression(\n\tnode: ts.Node,\n): node is ts.JsonObjectExpression {\n\treturn (\n\t\tts.isObjectLiteralExpression(node) ||\n\t\tts.isArrayLiteralExpression(node) ||\n\t\tisJsonMinusNumericLiteral(node) ||\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isStringLiteral(node) ||\n\t\tisBooleanLiteral(node) ||\n\t\tisNullLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxAttributeLike`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxAttributeLike`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxAttributeLike(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxAttributeLike`.\n */\nexport function isJsxAttributeLike(node: ts.Node): node is ts.JsxAttributeLike {\n\treturn ts.isJsxAttribute(node) || ts.isJsxSpreadAttribute(node);\n}\n\n/**\n * Test if a node is a `JsxAttributeValue`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxAttributeValue(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxAttributeValue`.\n */\nexport function isJsxAttributeValue(\n\tnode: ts.Node,\n): node is ts.JsxAttributeValue {\n\treturn (\n\t\tts.isStringLiteral(node) ||\n\t\tts.isJsxExpression(node) ||\n\t\tts.isJsxElement(node) ||\n\t\tts.isJsxSelfClosingElement(node) ||\n\t\tts.isJsxFragment(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxChild`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxChild`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxChild(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxChild`.\n */\nexport function isJsxChild(node: ts.Node): node is ts.JsxChild {\n\treturn (\n\t\tts.isJsxText(node) ||\n\t\tts.isJsxExpression(node) ||\n\t\tts.isJsxElement(node) ||\n\t\tts.isJsxSelfClosingElement(node) ||\n\t\tts.isJsxFragment(node)\n\t);\n}\n\n/**\n * Test if a node is a `JsxTagNameExpression`.\n * @deprecated With TypeScript v5, in favor of typescript's `isJsxTagNameExpression`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isJsxTagNameExpression(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `JsxTagNameExpression`.\n */\nexport function isJsxTagNameExpression(\n\tnode: ts.Node,\n): node is ts.JsxTagNameExpression {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tisThisExpression(node) ||\n\t\tisJsxTagNamePropertyAccess(node)\n\t);\n}\n\n/**\n * Test if a node is a `LiteralToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isLiteralToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `LiteralToken`.\n */\nexport function isLiteralToken(node: ts.Node): node is ts.LiteralToken {\n\treturn (\n\t\tts.isNumericLiteral(node) ||\n\t\tts.isBigIntLiteral(node) ||\n\t\tts.isStringLiteral(node) ||\n\t\tts.isJsxText(node) ||\n\t\tts.isRegularExpressionLiteral(node) ||\n\t\tts.isNoSubstitutionTemplateLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `ModuleBody`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleBody`.\n */\nexport function isModuleBody(node: ts.Node): node is ts.ModuleBody {\n\treturn isNamespaceBody(node) || isJSDocNamespaceBody(node);\n}\n\n/**\n * Test if a node is a `ModuleName`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleName`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleName(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleName`.\n */\nexport function isModuleName(node: ts.Node): node is ts.ModuleName {\n\treturn ts.isIdentifier(node) || ts.isStringLiteral(node);\n}\n\n/**\n * Test if a node is a `ModuleReference`.\n * @deprecated With TypeScript v5, in favor of typescript's `isModuleReference`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isModuleReference(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ModuleReference`.\n */\nexport function isModuleReference(node: ts.Node): node is ts.ModuleReference {\n\treturn ts.isEntityName(node) || ts.isExternalModuleReference(node);\n}\n\n/**\n * Test if a node is a `NamedImportBindings`.\n * @deprecated With TypeScript v5, in favor of typescript's `isNamedImportBindings`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedImportBindings(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamedImportBindings`.\n */\nexport function isNamedImportBindings(\n\tnode: ts.Node,\n): node is ts.NamedImportBindings {\n\treturn ts.isNamespaceImport(node) || ts.isNamedImports(node);\n}\n\n/**\n * Test if a node is a `NamedImportsOrExports`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamedImportsOrExports(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamedImportsOrExports`.\n */\nexport function isNamedImportsOrExports(\n\tnode: ts.Node,\n): node is ts.NamedImportsOrExports {\n\treturn ts.isNamedImports(node) || ts.isNamedExports(node);\n}\n\n/**\n * Test if a node is a `NamespaceBody`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isNamespaceBody(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `NamespaceBody`.\n */\nexport function isNamespaceBody(node: ts.Node): node is ts.NamespaceBody {\n\treturn ts.isModuleBlock(node) || isNamespaceDeclaration(node);\n}\n\n/**\n * Test if a node is an `ObjectBindingOrAssignmentElement`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectBindingOrAssignmentElement(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentElement`.\n */\nexport function isObjectBindingOrAssignmentElement(\n\tnode: ts.Node,\n): node is ts.ObjectBindingOrAssignmentElement {\n\treturn (\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isSpreadAssignment(node)\n\t);\n}\n\n/**\n * Test if a node is an `ObjectBindingOrAssignmentPattern`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectBindingOrAssignmentPattern(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectBindingOrAssignmentPattern`.\n */\nexport function isObjectBindingOrAssignmentPattern(\n\tnode: ts.Node,\n): node is ts.ObjectBindingOrAssignmentPattern {\n\treturn ts.isObjectBindingPattern(node) || ts.isObjectLiteralExpression(node);\n}\n\n/**\n * Test if a node is an `ObjectTypeDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isObjectTypeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `ObjectTypeDeclaration`.\n */\nexport function isObjectTypeDeclaration(\n\tnode: ts.Node,\n): node is ts.ObjectTypeDeclaration {\n\treturn (\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisClassLikeDeclaration(node) ||\n\t\tts.isInterfaceDeclaration(node) ||\n\t\tts.isTypeLiteralNode(node)\n\t);\n}\n\n/**\n * Test if a node is a `ParameterPropertyModifier`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isParameterPropertyModifier(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `ParameterPropertyModifier`.\n */\nexport function isParameterPropertyModifier(\n\tnode: ts.Node,\n): node is ts.ParameterPropertyModifier {\n\treturn isAccessibilityModifier(node) || isReadonlyKeyword(node);\n}\n\n/**\n * Test if a node is a `PropertyNameLiteral`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPropertyNameLiteral(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PropertyNameLiteral`.\n */\nexport function isPropertyNameLiteral(\n\tnode: ts.Node,\n): node is ts.PropertyNameLiteral {\n\treturn (\n\t\tts.isIdentifier(node) ||\n\t\tts.isStringLiteralLike(node) ||\n\t\tts.isNumericLiteral(node)\n\t);\n}\n\n/**\n * Test if a node is a `PseudoLiteralToken`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isPseudoLiteralToken(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `PseudoLiteralToken`.\n */\nexport function isPseudoLiteralToken(\n\tnode: ts.Node,\n): node is ts.PseudoLiteralToken {\n\treturn (\n\t\tts.isTemplateHead(node) ||\n\t\tts.isTemplateMiddle(node) ||\n\t\tts.isTemplateTail(node)\n\t);\n}\n\n/**\n * Test if a node is a `SignatureDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSignatureDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SignatureDeclaration`.\n */\nexport function isSignatureDeclaration(\n\tnode: ts.Node,\n): node is ts.SignatureDeclaration {\n\treturn (\n\t\tts.isCallSignatureDeclaration(node) ||\n\t\tts.isConstructSignatureDeclaration(node) ||\n\t\tts.isMethodSignature(node) ||\n\t\tts.isIndexSignatureDeclaration(node) ||\n\t\tts.isFunctionTypeNode(node) ||\n\t\tts.isConstructorTypeNode(node) ||\n\t\tts.isJSDocFunctionType(node) ||\n\t\tts.isFunctionDeclaration(node) ||\n\t\tts.isMethodDeclaration(node) ||\n\t\tts.isConstructorDeclaration(node) ||\n\t\t// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5\n\t\tisAccessorDeclaration(node) ||\n\t\tts.isFunctionExpression(node) ||\n\t\tts.isArrowFunction(node)\n\t);\n}\n\n/**\n * Test if a node is a `SuperProperty`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isSuperProperty(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `SuperProperty`.\n */\nexport function isSuperProperty(node: ts.Node): node is ts.SuperProperty {\n\treturn (\n\t\tisSuperPropertyAccessExpression(node) ||\n\t\tisSuperElementAccessExpression(node)\n\t);\n}\n\n/**\n * Test if a node is a `TypeOnlyCompatibleAliasDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTypeOnlyCompatibleAliasDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TypeOnlyCompatibleAliasDeclaration`.\n */\nexport function isTypeOnlyCompatibleAliasDeclaration(\n\tnode: ts.Node,\n): node is ts.TypeOnlyCompatibleAliasDeclaration {\n\tif (\n\t\tts.isImportClause(node) ||\n\t\tts.isImportEqualsDeclaration(node) ||\n\t\tts.isNamespaceImport(node) ||\n\t\tts.isImportOrExportSpecifier(node)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (\n\t\tisTsVersionAtLeast(5, 0) &&\n\t\t(ts.isExportDeclaration(node) || ts.isNamespaceExport(node))\n\t) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if a node is a `TypeReferenceType`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isTypeReferenceType(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `TypeReferenceType`.\n */\nexport function isTypeReferenceType(\n\tnode: ts.Node,\n): node is ts.TypeReferenceType {\n\treturn ts.isTypeReferenceNode(node) || ts.isExpressionWithTypeArguments(node);\n}\n\n/**\n * Test if a node is an `UnionOrIntersectionTypeNode`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnionOrIntersectionTypeNode(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnionOrIntersectionTypeNode`.\n */\nexport function isUnionOrIntersectionTypeNode(\n\tnode: ts.Node,\n): node is ts.UnionOrIntersectionTypeNode {\n\treturn ts.isUnionTypeNode(node) || ts.isIntersectionTypeNode(node);\n}\n\n/* eslint-disable deprecation/deprecation */\n/**\n * Test if a node is an `UnparsedSourceText`.\n * @deprecated With TypeScript v5\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isUnparsedSourceText(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be an `UnparsedSourceText`.\n */\nexport function isUnparsedSourceText(\n\tnode: ts.Node,\n): node is ts.UnparsedSourceText {\n\treturn ts.isUnparsedPrepend(node) || ts.isUnparsedTextLike(node);\n}\n/* eslint-enable deprecation/deprecation */\n\n/**\n * Test if a node is a `VariableLikeDeclaration`.\n * @category Nodes - Type Guards\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isVariableLikeDeclaration(node)) {\n * // ...\n * }\n * ```\n * @returns Whether the given node appears to be a `VariableLikeDeclaration`.\n */\nexport function isVariableLikeDeclaration(\n\tnode: ts.Node,\n): node is ts.VariableLikeDeclaration {\n\treturn (\n\t\tts.isVariableDeclaration(node) ||\n\t\tts.isParameter(node) ||\n\t\tts.isBindingElement(node) ||\n\t\tts.isPropertyDeclaration(node) ||\n\t\tts.isPropertyAssignment(node) ||\n\t\tts.isPropertySignature(node) ||\n\t\tts.isJsxAttribute(node) ||\n\t\tts.isShorthandPropertyAssignment(node) ||\n\t\tts.isEnumMember(node) ||\n\t\tts.isJSDocPropertyTag(node) ||\n\t\tts.isJSDocParameterTag(node)\n\t);\n}\n","import ts from \"typescript\";\n\nconst [tsMajor, tsMinor] = ts.versionMajorMinor\n\t.split(\".\")\n\t.map((raw) => Number.parseInt(raw, 10));\n\nexport function isTsVersionAtLeast(major: number, minor = 0): boolean {\n\treturn tsMajor > major || (tsMajor === major && tsMinor >= minor);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\n/**\n * Is the node a scope boundary, specifically due to it being a function.\n * @category Scope Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n *\n * if (isFunctionScopeBoundary(node, ts.ObjectFlags.Anonymous)) {\n * // ...\n * }\n * ```\n */\nexport function isFunctionScopeBoundary(node: ts.Node): boolean {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\tcase ts.SyntaxKind.Constructor:\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.GetAccessor:\n\t\tcase ts.SyntaxKind.SetAccessor:\n\t\tcase ts.SyntaxKind.MethodSignature:\n\t\tcase ts.SyntaxKind.CallSignature:\n\t\tcase ts.SyntaxKind.ConstructSignature:\n\t\tcase ts.SyntaxKind.ConstructorType:\n\t\tcase ts.SyntaxKind.FunctionType:\n\t\t\treturn true;\n\t\tcase ts.SyntaxKind.SourceFile:\n\t\t\t// if SourceFile is no module, it contributes to the global scope and is therefore no scope boundary\n\t\t\treturn ts.isExternalModule(node as ts.SourceFile);\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isNamedDeclarationWithName } from \"../nodes/typeGuards\";\nimport {\n\tisIntersectionType,\n\tisUnionType,\n\tisUniqueESSymbolType,\n} from \"./typeGuards\";\n\n/**\n * Get the `CallSignatures` of the given type.\n * @category Types - Getters\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * getCallSignaturesOfType(type);\n * ```\n */\nexport function getCallSignaturesOfType(\n\ttype: ts.Type,\n): readonly ts.Signature[] {\n\tif (isUnionType(type)) {\n\t\tconst signatures = [];\n\t\tfor (const subType of type.types) {\n\t\t\tsignatures.push(...getCallSignaturesOfType(subType));\n\t\t}\n\n\t\treturn signatures;\n\t}\n\n\tif (isIntersectionType(type)) {\n\t\tlet signatures: readonly ts.Signature[] | undefined;\n\t\tfor (const subType of type.types) {\n\t\t\tconst sig = getCallSignaturesOfType(subType);\n\t\t\tif (sig.length !== 0) {\n\t\t\t\t// if more than one type of the intersection has call signatures, none of them is useful for inference\n\t\t\t\tif (signatures !== undefined) {\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\n\t\t\t\tsignatures = sig;\n\t\t\t}\n\t\t}\n\n\t\treturn signatures === undefined ? [] : signatures;\n\t}\n\n\treturn type.getCallSignatures();\n}\n\n/**\n * Get the property with the given name on the given type (if it exists).\n * @category Types - Getters\n * @example\n * ```ts\n * declare const property: ts.Symbol;\n * declare const type: ts.Type;\n *\n * getPropertyOfType(type, property.getEscapedName());\n * ```\n */\nexport function getPropertyOfType(\n\ttype: ts.Type,\n\tname: ts.__String,\n): ts.Symbol | undefined {\n\tif (!(name as string).startsWith(\"__\")) {\n\t\treturn type.getProperty(name as string);\n\t}\n\n\treturn type.getProperties().find((s) => s.escapedName === name);\n}\n\n/**\n * Retrieves a type symbol corresponding to a well-known string name.\n * @category Types - Getters\n * @example\n * ```ts\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * getWellKnownSymbolPropertyOfType(type, \"asyncIterator\", typeChecker);\n * ```\n */\nexport function getWellKnownSymbolPropertyOfType(\n\ttype: ts.Type,\n\twellKnownSymbolName: string,\n\ttypeChecker: ts.TypeChecker,\n): ts.Symbol | undefined {\n\tconst prefix = \"__@\" + wellKnownSymbolName;\n\n\tfor (const prop of type.getProperties()) {\n\t\tif (!prop.name.startsWith(prefix)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst declaration = prop.valueDeclaration ?? prop.getDeclarations()![0];\n\t\tif (\n\t\t\t!isNamedDeclarationWithName(declaration) ||\n\t\t\tdeclaration.name === undefined ||\n\t\t\t!ts.isComputedPropertyName(declaration.name)\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst globalSymbol = typeChecker.getApparentType(\n\t\t\ttypeChecker.getTypeAtLocation(declaration.name.expression),\n\t\t).symbol;\n\n\t\tif (\n\t\t\tprop.escapedName ===\n\t\t\tgetPropertyNameOfWellKnownSymbol(\n\t\t\t\ttypeChecker,\n\t\t\t\tglobalSymbol,\n\t\t\t\twellKnownSymbolName,\n\t\t\t)\n\t\t) {\n\t\t\treturn prop;\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\n/**\n * @internal\n */\nfunction getPropertyNameOfWellKnownSymbol(\n\ttypeChecker: ts.TypeChecker,\n\tsymbolConstructor: ts.Symbol | undefined,\n\tsymbolName: string,\n) {\n\tconst knownSymbol =\n\t\tsymbolConstructor &&\n\t\ttypeChecker\n\t\t\t.getTypeOfSymbolAtLocation(\n\t\t\t\tsymbolConstructor,\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n\t\t\t\t(symbolConstructor as any).valueDeclaration,\n\t\t\t)\n\t\t\t.getProperty(symbolName);\n\tconst knownSymbolType =\n\t\tknownSymbol &&\n\t\ttypeChecker.getTypeOfSymbolAtLocation(\n\t\t\tknownSymbol,\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access\n\t\t\t(knownSymbol as any).valueDeclaration,\n\t\t);\n\tif (knownSymbolType && isUniqueESSymbolType(knownSymbolType)) {\n\t\treturn knownSymbolType.escapedName;\n\t}\n\n\treturn (\"__@\" + symbolName) as ts.__String;\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\n\n/**\n * A \"any\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicAnyType extends IntrinsicType {\n\tintrinsicName: \"any\";\n}\n\n/**\n * Determines whether the given type is the \"any\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicAnyType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicAnyType(type: ts.Type): type is IntrinsicAnyType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Any);\n}\n\n/**\n * A \"boolean\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicBooleanType extends IntrinsicType {\n\tintrinsicName: \"boolean\";\n}\n\n/**\n * Determines whether the given type is the \"boolean\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicBooleanType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicBooleanType(\n\ttype: ts.Type,\n): type is IntrinsicBooleanType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Boolean);\n}\n\n/**\n * A \"bigint\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicBigIntType extends IntrinsicType {\n\tintrinsicName: \"bigint\";\n}\n\n/**\n * Determines whether the given type is the \"bigint\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicBigIntType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicBigIntType(\n\ttype: ts.Type,\n): type is IntrinsicBigIntType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BigInt);\n}\n\n/**\n * An \"error\" intrinsic type.\n *\n * This refers to a type generated when TypeScript encounters an error while\n * trying to resolve the type.\n * @category Type Types\n */\nexport interface IntrinsicErrorType extends IntrinsicType {\n\tintrinsicName: \"error\";\n}\n\n/**\n * Determines whether the given type is the \"error\" intrinsic type.\n *\n * The intrinsic error type occurs when TypeScript encounters an error while\n * trying to resolve the type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicErrorType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicErrorType(\n\ttype: ts.Type,\n): type is IntrinsicErrorType {\n\treturn isIntrinsicType(type) && type.intrinsicName === \"error\";\n}\n\n/**\n * A \"symbol\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicESSymbolType extends IntrinsicType {\n\tintrinsicName: \"symbol\";\n}\n\n/**\n * Determines whether the given type is the \"symbol\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicESSymbolType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicESSymbolType(\n\ttype: ts.Type,\n): type is IntrinsicESSymbolType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.ESSymbol);\n}\n\n/**\n * An intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicType extends ts.Type {\n\tintrinsicName: string;\n\tobjectFlags: ts.ObjectFlags;\n}\n\n// ts.TypeFlags.Intrinsic\nconst IntrinsicTypeFlags =\n\t(ts.TypeFlags as { Intrinsic?: number }).Intrinsic ??\n\tts.TypeFlags.Any |\n\t\tts.TypeFlags.Unknown |\n\t\tts.TypeFlags.String |\n\t\tts.TypeFlags.Number |\n\t\tts.TypeFlags.BigInt |\n\t\tts.TypeFlags.Boolean |\n\t\tts.TypeFlags.BooleanLiteral |\n\t\tts.TypeFlags.ESSymbol |\n\t\tts.TypeFlags.Void |\n\t\tts.TypeFlags.Undefined |\n\t\tts.TypeFlags.Null |\n\t\tts.TypeFlags.Never |\n\t\tts.TypeFlags.NonPrimitive;\n\n/**\n * Test if a type is an {@link IntrinsicType}.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicType(type: ts.Type): type is IntrinsicType {\n\treturn isTypeFlagSet(type, IntrinsicTypeFlags);\n}\n\n/**\n * A \"never\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNeverType extends IntrinsicType {\n\tintrinsicName: \"never\";\n}\n\n/**\n * Determines whether the given type is the \"never\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNeverType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNeverType(\n\ttype: ts.Type,\n): type is IntrinsicNeverType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Never);\n}\n\n/**\n * A non-primitive intrinsic type.\n * E.g. An \"object\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNonPrimitiveType extends IntrinsicType {\n\tintrinsicName: \"\";\n}\n\n/**\n * Determines whether the given type is a non-primitive intrinsic type.\n * E.g. An \"object\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNonPrimitiveType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNonPrimitiveType(\n\ttype: ts.Type,\n): type is IntrinsicNonPrimitiveType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.NonPrimitive);\n}\n\n/**\n * A \"null\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNullType extends IntrinsicType {\n\tintrinsicName: \"null\";\n}\n\n/**\n * Determines whether the given type is the \"null\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNullType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNullType(type: ts.Type): type is IntrinsicNullType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Null);\n}\n\n/**\n * A \"number\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicNumberType extends IntrinsicType {\n\tintrinsicName: \"number\";\n}\n\n/**\n * Determines whether the given type is the \"number\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicNumberType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicNumberType(\n\ttype: ts.Type,\n): type is IntrinsicNumberType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Number);\n}\n\n/**\n * A \"string\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicStringType extends IntrinsicType {\n\tintrinsicName: \"string\";\n}\n\n/**\n * Determines whether the given type is the \"string\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicStringType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicStringType(\n\ttype: ts.Type,\n): type is IntrinsicStringType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.String);\n}\n\n/**\n * An \"undefined\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicUndefinedType extends IntrinsicType {\n\tintrinsicName: \"undefined\";\n}\n\n/**\n * Determines whether the given type is the \"undefined\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicUndefinedType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicUndefinedType(\n\ttype: ts.Type,\n): type is IntrinsicUndefinedType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Undefined);\n}\n\n/**\n * An \"unknown\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicUnknownType extends IntrinsicType {\n\tintrinsicName: \"unknown\";\n}\n\n/**\n * Determines whether the given type is the \"unknown\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicUnknownType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicUnknownType(\n\ttype: ts.Type,\n): type is IntrinsicUnknownType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Unknown);\n}\n\n/**\n * A \"void\" intrinsic type.\n * @category Type Types\n */\nexport interface IntrinsicVoidType extends IntrinsicType {\n\tintrinsicName: \"void\";\n}\n\n/**\n * Determines whether the given type is the \"void\" intrinsic type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntrinsicVoidType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntrinsicVoidType(type: ts.Type): type is IntrinsicVoidType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Void);\n}\n","import ts from \"typescript\";\n\nimport { isObjectFlagSet } from \"../../flags\";\nimport { isObjectType } from \"./single\";\n\n/**\n * Test if a type is a `EvolvingArrayType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isEvolvingArrayType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isEvolvingArrayType(\n\ttype: ts.Type,\n): type is ts.EvolvingArrayType {\n\treturn (\n\t\tisObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.EvolvingArray)\n\t);\n}\n\n/**\n * Test if a type is a `TupleType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTupleType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTupleType(type: ts.Type): type is ts.TupleType {\n\treturn isObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.Tuple);\n}\n\n/**\n * Test if a type is a `TypeReference`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeReference(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeReference(type: ts.Type): type is ts.TypeReference {\n\treturn isObjectType(type) && isObjectFlagSet(type, ts.ObjectFlags.Reference);\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\n\n/**\n * Test if a type is a `ConditionalType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isConditionalType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isConditionalType(type: ts.Type): type is ts.ConditionalType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Conditional);\n}\n\n/**\n * Test if a type is a `EnumType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isEnumType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isEnumType(type: ts.Type): type is ts.EnumType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Enum);\n}\n\n/**\n * Test if a type is a `FreshableType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFreshableType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFreshableType(type: ts.Type): type is ts.FreshableType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Freshable);\n}\n\n/**\n * Test if a type is a `IndexType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIndexType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIndexType(type: ts.Type): type is ts.IndexType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Index);\n}\n\n/**\n * Test if a type is a `IndexedAccessType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIndexedAccessType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIndexedAccessType(\n\ttype: ts.Type,\n): type is ts.IndexedAccessType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.IndexedAccess);\n}\n\n/**\n * Test if a type is a `InstantiableType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isInstantiableType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isInstantiableType(type: ts.Type): type is ts.InstantiableType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Instantiable);\n}\n\n/**\n * Test if a type is a `IntersectionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isIntersectionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isIntersectionType(type: ts.Type): type is ts.IntersectionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Intersection);\n}\n\n/**\n * Test if a type is a `ObjectType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isObjectType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isObjectType(type: ts.Type): type is ts.ObjectType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Object);\n}\n\n/**\n * Test if a type is a `StringMappingType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isStringMappingType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isStringMappingType(\n\ttype: ts.Type,\n): type is ts.StringMappingType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.StringMapping);\n}\n\n/**\n * Test if a type is a `SubstitutionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isSubstitutionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isSubstitutionType(type: ts.Type): type is ts.SubstitutionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Substitution);\n}\n\n/**\n * Test if a type is a `TypeParameter`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeParameter(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeParameter(type: ts.Type): type is ts.TypeParameter {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TypeParameter);\n}\n\n/**\n * Test if a type is a `TypeVariable`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTypeVariable(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTypeVariable(type: ts.Type): type is ts.TypeVariable {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TypeVariable);\n}\n\n/**\n * Test if a type is a `UnionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnionType(type: ts.Type): type is ts.UnionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Union);\n}\n\n/**\n * Test if a type is a `UnionOrIntersectionType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnionOrIntersectionType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnionOrIntersectionType(\n\ttype: ts.Type,\n): type is ts.UnionOrIntersectionType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.UnionOrIntersection);\n}\n\n/**\n * Test if a type is a `UniqueESSymbolType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUniqueESSymbolType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUniqueESSymbolType(\n\ttype: ts.Type,\n): type is ts.UniqueESSymbolType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.UniqueESSymbol);\n}\n","import ts from \"typescript\";\n\nimport { type IntrinsicType, isIntrinsicType } from \"./intrinsic\";\nimport { isTupleType, isTypeReference } from \"./objects\";\nimport { isFreshableType } from \"./single\";\n\n/**\n * A type that is both an {@link IntrinsicType} and a `FreshableType`\n * @category Type Types\n */\nexport interface FreshableIntrinsicType\n\textends ts.FreshableType,\n\t\tIntrinsicType {}\n\n/**\n * Test if a type is a `FreshableIntrinsicType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFreshableIntrinsicType(type)) {\n * // ...\n * }\n */\nexport function isFreshableIntrinsicType(\n\ttype: ts.Type,\n): type is FreshableIntrinsicType {\n\treturn isIntrinsicType(type) && isFreshableType(type);\n}\n\n/**\n * Test if a type is a `TupleTypeReference`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTupleTypeReference(type)) {\n * // ...\n * }\n */\nexport function isTupleTypeReference(\n\ttype: ts.Type,\n): type is ts.TupleTypeReference {\n\treturn isTypeReference(type) && isTupleType(type.target);\n}\n","import ts from \"typescript\";\n\nimport { isTypeFlagSet } from \"../../flags\";\nimport { type FreshableIntrinsicType } from \"./compound\";\n\n/**\n * A boolean literal.\n * i.e. Either a \"true\" or \"false\" literal.\n * @category Type Types\n */\nexport interface BooleanLiteralType extends UnknownLiteralType {\n\tintrinsicName: \"false\" | \"true\";\n\tvalue: boolean;\n}\n\n/**\n * Determines whether the given type is a boolean literal type.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isBooleanLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isBooleanLiteralType(\n\ttype: ts.Type,\n): type is BooleanLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BooleanLiteral);\n}\n\n/**\n * Test if a type is a `BigIntLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isBigIntLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isBigIntLiteralType(\n\ttype: ts.Type,\n): type is ts.BigIntLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.BigIntLiteral);\n}\n\n/**\n * A \"false\" literal.\n * @category Type Types\n */\nexport interface FalseLiteralType extends BooleanLiteralType {\n\tintrinsicName: \"false\";\n\tvalue: false;\n}\n\n/**\n * Determines whether the given type is a boolean literal type for \"false\".\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFalseLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFalseLiteralType(type: ts.Type): type is FalseLiteralType {\n\treturn isBooleanLiteralType(type) && type.intrinsicName === \"false\";\n}\n\n/**\n * Test if a type is a `LiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isLiteralType(type: ts.Type): type is ts.LiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Literal);\n}\n\n/**\n * Test if a type is a `NumberLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isNumberLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isNumberLiteralType(\n\ttype: ts.Type,\n): type is ts.NumberLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.NumberLiteral);\n}\n\n/**\n * Test if a type is a `StringLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isStringLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isStringLiteralType(\n\ttype: ts.Type,\n): type is ts.StringLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.StringLiteral);\n}\n\n/**\n * Test if a type is a `TemplateLiteralType`.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTemplateLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTemplateLiteralType(\n\ttype: ts.Type,\n): type is ts.TemplateLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.TemplateLiteral);\n}\n\n/**\n * A \"true\" literal.\n * @category Type Types\n */\nexport interface TrueLiteralType extends BooleanLiteralType {\n\tintrinsicName: \"true\";\n\tvalue: true;\n}\n\n/**\n * Determines whether the given type is a boolean literal type for \"true\".\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isTrueLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isTrueLiteralType(type: ts.Type): type is TrueLiteralType {\n\treturn isBooleanLiteralType(type) && type.intrinsicName === \"true\";\n}\n\n/**\n * `LiteralType` from typescript except that it allows for it to work on arbitrary types.\n * @category Type Types\n */\nexport interface UnknownLiteralType extends FreshableIntrinsicType {\n\tvalue: unknown;\n}\n\n/**\n * Test if a type is a {@link UnknownLiteralType}.\n * @category Types - Type Guards\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isUnknownLiteralType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isUnknownLiteralType(\n\ttype: ts.Type,\n): type is UnknownLiteralType {\n\treturn isTypeFlagSet(type, ts.TypeFlags.Literal);\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport {\n\tisModifierFlagSet,\n\tisNodeFlagSet,\n\tisObjectFlagSet,\n\tisSymbolFlagSet,\n\tisTypeFlagSet,\n} from \"../flags\";\nimport {\n\tisBindableObjectDefinePropertyCall,\n\tisInConstContext,\n} from \"../nodes/utilities\";\nimport { isNumericPropertyName } from \"../syntax\";\nimport { getPropertyOfType } from \"./getters\";\nimport {\n\tisFalseLiteralType,\n\tisIntersectionType,\n\tisObjectType,\n\tisTupleTypeReference,\n\tisUnionType,\n} from \"./typeGuards\";\n\n/**\n * Determines whether a type is definitely falsy. This function doesn't unwrap union types.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * if (isFalsyType(type)) {\n * // ...\n * }\n * ```\n */\nexport function isFalsyType(type: ts.Type): boolean {\n\tif (\n\t\tisTypeFlagSet(\n\t\t\ttype,\n\t\t\tts.TypeFlags.Undefined | ts.TypeFlags.Null | ts.TypeFlags.Void,\n\t\t)\n\t) {\n\t\treturn true;\n\t}\n\n\tif (type.isLiteral()) {\n\t\treturn !type.value;\n\t}\n\n\treturn isFalseLiteralType(type);\n}\n\n/**\n * Get the intersection type parts of the given type.\n *\n * If the given type is not a intersection type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of intersectionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function intersectionTypeParts(type: ts.Type): ts.Type[] {\n\treturn isIntersectionType(type) ? type.types : [type];\n}\n\n/**\n * Get the intersection or union type parts of the given type.\n *\n * Note that this is a shallow collection: it only returns `type.types` or `[type]`.\n *\n * If the given type is not an intersection or union type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of intersectionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function typeParts(type: ts.Type): ts.Type[] {\n\treturn isIntersectionType(type) || isUnionType(type) ? type.types : [type];\n}\n\nfunction isReadonlyPropertyIntersection(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n) {\n\tconst typeParts = isIntersectionType(type) ? type.types : [type];\n\treturn typeParts.some((subType): boolean => {\n\t\tconst prop = getPropertyOfType(subType, name);\n\t\tif (prop === undefined) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (prop.flags & ts.SymbolFlags.Transient) {\n\t\t\tif (\n\t\t\t\t/^(?:[1-9]\\d*|0)$/.test(name as string) &&\n\t\t\t\tisTupleTypeReference(subType)\n\t\t\t) {\n\t\t\t\treturn subType.target.readonly;\n\t\t\t}\n\n\t\t\tswitch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {\n\t\t\t\tcase true:\n\t\t\t\t\treturn true;\n\t\t\t\tcase false:\n\t\t\t\t\treturn false;\n\t\t\t\tdefault:\n\t\t\t\t// `undefined` falls through\n\t\t\t}\n\t\t}\n\n\t\treturn !!(\n\t\t\t// members of namespace import\n\t\t\t(\n\t\t\t\tisSymbolFlagSet(prop, ts.SymbolFlags.ValueModule) ||\n\t\t\t\t// we unwrapped every mapped type, now we can check the actual declarations\n\t\t\t\tsymbolHasReadonlyDeclaration(prop, typeChecker)\n\t\t\t)\n\t\t);\n\t});\n}\n\nfunction isReadonlyPropertyFromMappedType(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n): boolean | undefined {\n\tif (!isObjectType(type) || !isObjectFlagSet(type, ts.ObjectFlags.Mapped)) {\n\t\treturn;\n\t}\n\n\tconst declaration = type.symbol.declarations![0] as ts.MappedTypeNode;\n\t// well-known symbols are not affected by mapped types\n\tif (\n\t\tdeclaration.readonlyToken !== undefined &&\n\t\t!/^__@[^@]+$/.test(name as string)\n\t) {\n\t\treturn declaration.readonlyToken.kind !== ts.SyntaxKind.MinusToken;\n\t}\n\n\tconst { modifiersType } = type as { modifiersType?: ts.Type };\n\n\treturn (\n\t\tmodifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker)\n\t);\n}\n\nfunction isCallback(\n\ttypeChecker: ts.TypeChecker,\n\tparam: ts.Symbol,\n\tnode: ts.Node,\n): boolean {\n\tlet type: ts.Type | undefined = typeChecker.getApparentType(\n\t\ttypeChecker.getTypeOfSymbolAtLocation(param, node),\n\t);\n\tif ((param.valueDeclaration as ts.ParameterDeclaration).dotDotDotToken) {\n\t\t// unwrap array type of rest parameter\n\t\ttype = type.getNumberIndexType();\n\t\tif (type === undefined) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tfor (const subType of unionTypeParts(type)) {\n\t\tif (subType.getCallSignatures().length !== 0) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Determines whether writing to a certain property of a given type is allowed.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const property: ts.Symbol;\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isPropertyReadonlyInType(type, property.getEscapedName(), typeChecker)) {\n * // ...\n * }\n * ```\n */\nexport function isPropertyReadonlyInType(\n\ttype: ts.Type,\n\tname: ts.__String,\n\ttypeChecker: ts.TypeChecker,\n): boolean {\n\tlet seenProperty = false;\n\tlet seenReadonlySignature = false;\n\tfor (const subType of unionTypeParts(type)) {\n\t\tif (getPropertyOfType(subType, name) === undefined) {\n\t\t\t// property is not present in this part of the union -> check for readonly index signature\n\t\t\tconst index =\n\t\t\t\t(isNumericPropertyName(name)\n\t\t\t\t\t? typeChecker.getIndexInfoOfType(subType, ts.IndexKind.Number)\n\t\t\t\t\t: undefined) ??\n\t\t\t\ttypeChecker.getIndexInfoOfType(subType, ts.IndexKind.String);\n\t\t\tif (index?.isReadonly) {\n\t\t\t\tif (seenProperty) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tseenReadonlySignature = true;\n\t\t\t}\n\t\t} else if (\n\t\t\tseenReadonlySignature ||\n\t\t\tisReadonlyPropertyIntersection(subType, name, typeChecker)\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tseenProperty = true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Returns true for `Object.defineProperty(o, 'prop', {value, writable: false})` and `Object.defineProperty(o, 'prop', {get: () => 1})`\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const node: ts.CallExpression;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isReadonlyAssignmentDeclaration(node, typeChecker)) {\n * // ...\n * }\n * ```\n */\nfunction isReadonlyAssignmentDeclaration(\n\tnode: ts.CallExpression,\n\ttypeChecker: ts.TypeChecker,\n) {\n\tif (!isBindableObjectDefinePropertyCall(node)) {\n\t\treturn false;\n\t}\n\n\tconst descriptorType = typeChecker.getTypeAtLocation(node.arguments[2]);\n\tif (descriptorType.getProperty(\"value\") === undefined) {\n\t\treturn descriptorType.getProperty(\"set\") === undefined;\n\t}\n\n\tconst writableProp = descriptorType.getProperty(\"writable\");\n\tif (writableProp === undefined) {\n\t\treturn false;\n\t}\n\n\tconst writableType =\n\t\twritableProp.valueDeclaration !== undefined &&\n\t\tts.isPropertyAssignment(writableProp.valueDeclaration)\n\t\t\t? typeChecker.getTypeAtLocation(writableProp.valueDeclaration.initializer)\n\t\t\t: typeChecker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]);\n\treturn isFalseLiteralType(writableType);\n}\n\n/**\n * Determines whether a type is thenable and thus can be used with `await`.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const node: ts.Node;\n * declare const type: ts.Type;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isThenableType(typeChecker, node, type)) {\n * // ...\n * }\n * ```\n */\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Node,\n\ttype: ts.Type,\n): boolean;\n\n/**\n * Determines whether a type is thenable and thus can be used with `await`.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const expression: ts.Expression;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (isThenableType(typeChecker, expression)) {\n * // ...\n * }\n * ```\n * @example\n * ```ts\n * declare const expression: ts.Expression;\n * declare const typeChecker: ts.TypeChecker;\n * declare const type: ts.Type;\n *\n * if (isThenableType(typeChecker, expression, type)) {\n * // ...\n * }\n * ```\n */\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Expression,\n\ttype?: ts.Type,\n): boolean;\n\nexport function isThenableType(\n\ttypeChecker: ts.TypeChecker,\n\tnode: ts.Node,\n\ttype = typeChecker.getTypeAtLocation(node)!,\n): boolean {\n\tfor (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {\n\t\tconst then = typePart.getProperty(\"then\");\n\t\tif (then === undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);\n\t\tfor (const subTypePart of unionTypeParts(thenType)) {\n\t\t\tfor (const signature of subTypePart.getCallSignatures()) {\n\t\t\t\tif (\n\t\t\t\t\tsignature.parameters.length !== 0 &&\n\t\t\t\t\tisCallback(typeChecker, signature.parameters[0], node)\n\t\t\t\t) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Test if the given symbol has a readonly declaration.\n * @category Symbols - Utilities\n * @example\n * ```ts\n * declare const symbol: ts.Symbol;\n * declare const typeChecker: ts.TypeChecker;\n *\n * if (symbolHasReadonlyDeclaration(symbol, typeChecker)) {\n * // ...\n * }\n * ```\n */\nexport function symbolHasReadonlyDeclaration(\n\tsymbol: ts.Symbol,\n\ttypeChecker: ts.TypeChecker,\n): boolean {\n\treturn !!(\n\t\t(symbol.flags & ts.SymbolFlags.Accessor) === ts.SymbolFlags.GetAccessor ||\n\t\tsymbol.declarations?.some(\n\t\t\t(node) =>\n\t\t\t\tisModifierFlagSet(node, ts.ModifierFlags.Readonly) ||\n\t\t\t\t(ts.isVariableDeclaration(node) &&\n\t\t\t\t\tisNodeFlagSet(node.parent, ts.NodeFlags.Const)) ||\n\t\t\t\t(ts.isCallExpression(node) &&\n\t\t\t\t\tisReadonlyAssignmentDeclaration(node, typeChecker)) ||\n\t\t\t\tts.isEnumMember(node) ||\n\t\t\t\t((ts.isPropertyAssignment(node) ||\n\t\t\t\t\tts.isShorthandPropertyAssignment(node)) &&\n\t\t\t\t\tisInConstContext(node.parent)),\n\t\t)\n\t);\n}\n\n/**\n * Get the union type parts of the given type.\n *\n * If the given type is not a union type, an array contain only that type will be returned.\n * @category Types - Utilities\n * @example\n * ```ts\n * declare const type: ts.Type;\n *\n * for (const typePart of unionTypeParts(type)) {\n * // ...\n * }\n * ```\n */\nexport function unionTypeParts(type: ts.Type): ts.Type[] {\n\treturn isUnionType(type) ? type.types : [type];\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport {\n\tisConstAssertionExpression,\n\tisEntityNameExpression,\n\tisNumericOrStringLikeLiteral,\n} from \"./typeGuards\";\n\n/**\n * Determines whether a call to {@link Object.defineProperty} is statically analyzable.\n * @internal\n */\nexport function isBindableObjectDefinePropertyCall(\n\tnode: ts.CallExpression,\n): boolean {\n\treturn (\n\t\tnode.arguments.length === 3 &&\n\t\tisEntityNameExpression(node.arguments[0]) &&\n\t\tisNumericOrStringLikeLiteral(node.arguments[1]) &&\n\t\tts.isPropertyAccessExpression(node.expression) &&\n\t\tnode.expression.name.escapedText === \"defineProperty\" &&\n\t\tts.isIdentifier(node.expression.expression) &&\n\t\tnode.expression.expression.escapedText === \"Object\"\n\t);\n}\n\n/**\n * Detects whether an expression is affected by an enclosing `as const` assertion and therefore treated literally.\n * @internal\n */\nexport function isInConstContext(node: ts.Expression): boolean {\n\tlet current: ts.Node = node;\n\twhile (true) {\n\t\tconst parent = current.parent;\n\t\touter: switch (parent.kind) {\n\t\t\tcase ts.SyntaxKind.TypeAssertionExpression:\n\t\t\tcase ts.SyntaxKind.AsExpression:\n\t\t\t\treturn isConstAssertionExpression(parent as ts.AssertionExpression);\n\t\t\tcase ts.SyntaxKind.PrefixUnaryExpression:\n\t\t\t\tif (current.kind !== ts.SyntaxKind.NumericLiteral) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tswitch ((parent as ts.PrefixUnaryExpression).operator) {\n\t\t\t\t\tcase ts.SyntaxKind.PlusToken:\n\t\t\t\t\tcase ts.SyntaxKind.MinusToken:\n\t\t\t\t\t\tcurrent = parent;\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\t\t\tif ((parent as ts.PropertyAssignment).initializer !== current) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tcurrent = parent.parent!;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.ShorthandPropertyAssignment:\n\t\t\t\tcurrent = parent.parent!;\n\t\t\t\tbreak;\n\t\t\tcase ts.SyntaxKind.ParenthesizedExpression:\n\t\t\tcase ts.SyntaxKind.ArrayLiteralExpression:\n\t\t\tcase ts.SyntaxKind.ObjectLiteralExpression:\n\t\t\tcase ts.SyntaxKind.TemplateExpression:\n\t\t\t\tcurrent = parent;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { includesModifier } from \"../modifiers\";\nimport {\n\tScope,\n\tScopeBoundary,\n\tScopeBoundarySelector,\n\tisBlockScopeBoundary,\n} from \"./Scope\";\nimport { DeclarationDomain } from \"./declarations\";\nimport { getPropertyName } from \"./getPropertyName\";\nimport { getUsageDomain } from \"./getUsageDomain\";\nimport {\n\tBlockScope,\n\tClassExpressionScope,\n\tConditionalTypeScope,\n\tConditionalTypeScopeState,\n\tFunctionExpressionScope,\n\tFunctionScope,\n\tNonRootScope,\n\tRootScope,\n} from \"./scopes\";\nimport { UsageInfo, UsageInfoCallback } from \"./usage\";\nimport {\n\tcanHaveDecorators,\n\tgetDecorators,\n\tidentifierToKeywordKind,\n} from \"./utils\";\n\n// TODO class decorators resolve outside of class, element and parameter decorator resolve inside/at the class\n// TODO computed property name resolves inside/at the class\n// TODO this and super in all of them are resolved outside of the class\nexport class UsageWalker {\n\t#result = new Map();\n\t#scope!: Scope;\n\n\t#handleBindingName(\n\t\tname: ts.BindingName,\n\t\tblockScoped: boolean,\n\t\texported: boolean,\n\t) {\n\t\tif (name.kind === ts.SyntaxKind.Identifier) {\n\t\t\treturn this.#scope.addVariable(\n\t\t\t\tname.text,\n\t\t\t\tname,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Value,\n\t\t\t);\n\t\t}\n\n\t\tforEachDestructuringIdentifier(name, (declaration) => {\n\t\t\tthis.#scope.addVariable(\n\t\t\t\tdeclaration.name.text,\n\t\t\t\tdeclaration.name,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Value,\n\t\t\t);\n\t\t});\n\t}\n\n\t#handleConditionalType(\n\t\tnode: ts.ConditionalTypeNode,\n\t\tcb: (node: ts.Node) => void,\n\t\tvarCb: UsageInfoCallback,\n\t) {\n\t\tconst savedScope = this.#scope;\n\t\tconst scope = (this.#scope = new ConditionalTypeScope(savedScope));\n\t\tcb(node.checkType);\n\t\tscope.updateState(ConditionalTypeScopeState.Extends);\n\t\tcb(node.extendsType);\n\t\tscope.updateState(ConditionalTypeScopeState.TrueType);\n\t\tcb(node.trueType);\n\t\tscope.updateState(ConditionalTypeScopeState.FalseType);\n\t\tcb(node.falseType);\n\t\tscope.end(varCb);\n\t\tthis.#scope = savedScope;\n\t}\n\n\t#handleDeclaration(\n\t\tnode: ts.NamedDeclaration,\n\t\tblockScoped: boolean,\n\t\tdomain: DeclarationDomain,\n\t) {\n\t\tif (node.name !== undefined) {\n\t\t\tthis.#scope.addVariable(\n\t\t\t\t(node.name as ts.Identifier).text,\n\t\t\t\tnode.name as ts.Identifier,\n\t\t\t\tblockScoped\n\t\t\t\t\t? ScopeBoundarySelector.Block\n\t\t\t\t\t: ScopeBoundarySelector.Function,\n\t\t\t\tincludesModifier(\n\t\t\t\t\t(node as ts.HasModifiers).modifiers,\n\t\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t\t),\n\t\t\t\tdomain,\n\t\t\t);\n\t\t}\n\t}\n\n\t#handleFunctionLikeDeclaration(\n\t\tnode: ts.FunctionLikeDeclaration,\n\t\tcb: (node: ts.Node) => void,\n\t\tvarCb: UsageInfoCallback,\n\t) {\n\t\tif (canHaveDecorators(node)) {\n\t\t\tgetDecorators(node)?.forEach(cb);\n\t\t}\n\n\t\tconst savedScope = this.#scope;\n\t\tif (node.kind === ts.SyntaxKind.FunctionDeclaration) {\n\t\t\tthis.#handleDeclaration(node, false, DeclarationDomain.Value);\n\t\t}\n\n\t\tconst scope = (this.#scope =\n\t\t\tnode.kind === ts.SyntaxKind.FunctionExpression && node.name !== undefined\n\t\t\t\t? new FunctionExpressionScope(node.name, savedScope)\n\t\t\t\t: new FunctionScope(savedScope));\n\t\tif (node.name !== undefined) {\n\t\t\tcb(node.name);\n\t\t}\n\n\t\tif (node.typeParameters !== undefined) {\n\t\t\tnode.typeParameters.forEach(cb);\n\t\t}\n\n\t\tnode.parameters.forEach(cb);\n\t\tif (node.type !== undefined) {\n\t\t\tcb(node.type);\n\t\t}\n\n\t\tif (node.body !== undefined) {\n\t\t\tscope.beginBody();\n\t\t\tcb(node.body);\n\t\t}\n\n\t\tscope.end(varCb);\n\t\tthis.#scope = savedScope;\n\t}\n\n\t#handleModule(\n\t\tnode: ts.ModuleDeclaration,\n\t\tnext: (node: ts.Node, scope: Scope) => void,\n\t) {\n\t\tif (node.flags & ts.NodeFlags.GlobalAugmentation) {\n\t\t\treturn next(\n\t\t\t\tnode,\n\t\t\t\tthis.#scope.createOrReuseNamespaceScope(\"-global\", false, true, false),\n\t\t\t);\n\t\t}\n\n\t\tif (node.name.kind === ts.SyntaxKind.Identifier) {\n\t\t\tconst exported = isNamespaceExported(node as ts.NamespaceDeclaration);\n\t\t\tthis.#scope.addVariable(\n\t\t\t\tnode.name.text,\n\t\t\t\tnode.name,\n\t\t\t\tScopeBoundarySelector.Function,\n\t\t\t\texported,\n\t\t\t\tDeclarationDomain.Namespace | DeclarationDomain.Value,\n\t\t\t);\n\t\t\tconst ambient = includesModifier(\n\t\t\t\tnode.modifiers,\n\t\t\t\tts.SyntaxKind.DeclareKeyword,\n\t\t\t);\n\t\t\treturn next(\n\t\t\t\tnode,\n\t\t\t\tthis.#scope.createOrReuseNamespaceScope(\n\t\t\t\t\tnode.name.text,\n\t\t\t\t\texported,\n\t\t\t\t\tambient,\n\t\t\t\t\tambient && namespaceHasExportStatement(node),\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn next(\n\t\t\tnode,\n\t\t\tthis.#scope.createOrReuseNamespaceScope(\n\t\t\t\t`\"${node.name.text}\"`,\n\t\t\t\tfalse,\n\t\t\t\ttrue,\n\t\t\t\tnamespaceHasExportStatement(node),\n\t\t\t),\n\t\t);\n\t}\n\n\t#handleVariableDeclaration(declarationList: ts.VariableDeclarationList) {\n\t\tconst blockScoped = isBlockScopedVariableDeclarationList(declarationList);\n\t\tconst exported =\n\t\t\tdeclarationList.parent.kind === ts.SyntaxKind.VariableStatement &&\n\t\t\tincludesModifier(\n\t\t\t\tdeclarationList.parent.modifiers,\n\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t);\n\t\tfor (const declaration of declarationList.declarations) {\n\t\t\tthis.#handleBindingName(declaration.name, blockScoped, exported);\n\t\t}\n\t}\n\n\tgetUsage(sourceFile: ts.SourceFile): Map {\n\t\tconst variableCallback = (variable: UsageInfo, key: ts.Identifier) => {\n\t\t\tthis.#result.set(key, variable);\n\t\t};\n\n\t\tconst isModule = ts.isExternalModule(sourceFile);\n\t\tthis.#scope = new RootScope(\n\t\t\tsourceFile.isDeclarationFile &&\n\t\t\t\tisModule &&\n\t\t\t\t!containsExportStatement(sourceFile),\n\t\t\t!isModule,\n\t\t);\n\t\tconst cb = (node: ts.Node): void => {\n\t\t\tif (isBlockScopeBoundary(node)) {\n\t\t\t\treturn continueWithScope(\n\t\t\t\t\tnode,\n\t\t\t\t\tnew BlockScope(this.#scope.getFunctionScope(), this.#scope),\n\t\t\t\t\thandleBlockScope,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tswitch (node.kind) {\n\t\t\t\tcase ts.SyntaxKind.ClassExpression:\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\t(node as ts.ClassExpression).name !== undefined\n\t\t\t\t\t\t\t? new ClassExpressionScope(\n\t\t\t\t\t\t\t\t\t(node as ts.ClassExpression).name!,\n\t\t\t\t\t\t\t\t\tthis.#scope,\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: new NonRootScope(this.#scope, ScopeBoundary.Function),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.ClassDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Value | DeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Function),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\t\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.InterfaceDeclaration | ts.TypeAliasDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Type),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.EnumDeclaration,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Any,\n\t\t\t\t\t);\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tthis.#scope.createOrReuseEnumScope(\n\t\t\t\t\t\t\t(node as ts.EnumDeclaration).name.text,\n\t\t\t\t\t\t\tincludesModifier(\n\t\t\t\t\t\t\t\t(node as ts.HasModifiers).modifiers,\n\t\t\t\t\t\t\t\tts.SyntaxKind.ExportKeyword,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\t\t\t\treturn this.#handleModule(\n\t\t\t\t\t\tnode as ts.ModuleDeclaration,\n\t\t\t\t\t\tcontinueWithScope,\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.MappedType:\n\t\t\t\t\treturn continueWithScope(\n\t\t\t\t\t\tnode,\n\t\t\t\t\t\tnew NonRootScope(this.#scope, ScopeBoundary.Type),\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\t\t\tcase ts.SyntaxKind.ArrowFunction:\n\t\t\t\tcase ts.SyntaxKind.Constructor:\n\t\t\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\t\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\t\t\tcase ts.SyntaxKind.GetAccessor:\n\t\t\t\tcase ts.SyntaxKind.SetAccessor:\n\t\t\t\tcase ts.SyntaxKind.MethodSignature:\n\t\t\t\tcase ts.SyntaxKind.CallSignature:\n\t\t\t\tcase ts.SyntaxKind.ConstructSignature:\n\t\t\t\tcase ts.SyntaxKind.ConstructorType:\n\t\t\t\tcase ts.SyntaxKind.FunctionType:\n\t\t\t\t\treturn this.#handleFunctionLikeDeclaration(\n\t\t\t\t\t\tnode as ts.FunctionLikeDeclaration,\n\t\t\t\t\t\tcb,\n\t\t\t\t\t\tvariableCallback,\n\t\t\t\t\t);\n\t\t\t\tcase ts.SyntaxKind.ConditionalType:\n\t\t\t\t\treturn this.#handleConditionalType(\n\t\t\t\t\t\tnode as ts.ConditionalTypeNode,\n\t\t\t\t\t\tcb,\n\t\t\t\t\t\tvariableCallback,\n\t\t\t\t\t);\n\t\t\t\t// End of Scope specific handling\n\t\t\t\tcase ts.SyntaxKind.VariableDeclarationList:\n\t\t\t\t\tthis.#handleVariableDeclaration(node as ts.VariableDeclarationList);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.Parameter:\n\t\t\t\t\tif (\n\t\t\t\t\t\tnode.parent.kind !== ts.SyntaxKind.IndexSignature &&\n\t\t\t\t\t\t((node as ts.ParameterDeclaration).name.kind !==\n\t\t\t\t\t\t\tts.SyntaxKind.Identifier ||\n\t\t\t\t\t\t\tidentifierToKeywordKind(\n\t\t\t\t\t\t\t\t(node as ts.NamedDeclaration).name as ts.Identifier,\n\t\t\t\t\t\t\t) !== ts.SyntaxKind.ThisKeyword)\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.#handleBindingName(\n\t\t\t\t\t\t\t(node as ts.NamedDeclaration).name as ts.Identifier,\n\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.EnumMember:\n\t\t\t\t\tthis.#scope.addVariable(\n\t\t\t\t\t\tgetPropertyName((node as ts.EnumMember).name)!,\n\t\t\t\t\t\t(node as ts.EnumMember).name,\n\t\t\t\t\t\tScopeBoundarySelector.Function,\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tDeclarationDomain.Value,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.ImportClause:\n\t\t\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\t\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\t\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\t\t\t\tthis.#handleDeclaration(\n\t\t\t\t\t\tnode as ts.NamedDeclaration,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tDeclarationDomain.Any | DeclarationDomain.Import,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.TypeParameter:\n\t\t\t\t\tthis.#scope.addVariable(\n\t\t\t\t\t\t(node as ts.TypeParameterDeclaration).name.text,\n\t\t\t\t\t\t(node as ts.TypeParameterDeclaration).name,\n\t\t\t\t\t\tnode.parent.kind === ts.SyntaxKind.InferType\n\t\t\t\t\t\t\t? ScopeBoundarySelector.InferType\n\t\t\t\t\t\t\t: ScopeBoundarySelector.Type,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tDeclarationDomain.Type,\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.ExportSpecifier:\n\t\t\t\t\tif ((node as ts.ExportSpecifier).propertyName !== undefined) {\n\t\t\t\t\t\treturn this.#scope.markExported(\n\t\t\t\t\t\t\t(node as ts.ExportSpecifier).propertyName!,\n\t\t\t\t\t\t\t(node as ts.ExportSpecifier).name,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this.#scope.markExported((node as ts.ExportSpecifier).name);\n\t\t\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\t\t\tif (\n\t\t\t\t\t\t(node as ts.ExportAssignment).expression.kind ===\n\t\t\t\t\t\tts.SyntaxKind.Identifier\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn this.#scope.markExported(\n\t\t\t\t\t\t\t(node as ts.ExportAssignment).expression as ts.Identifier,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase ts.SyntaxKind.Identifier: {\n\t\t\t\t\tconst domain = getUsageDomain(node as ts.Identifier);\n\t\t\t\t\tif (domain !== undefined) {\n\t\t\t\t\t\tthis.#scope.addUse({ domain, location: node as ts.Identifier });\n\t\t\t\t\t}\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t};\n\n\t\tconst continueWithScope = (\n\t\t\tnode: T,\n\t\t\tscope: Scope,\n\t\t\tnext: (node: T) => void = forEachChild,\n\t\t) => {\n\t\t\tconst savedScope = this.#scope;\n\t\t\tthis.#scope = scope;\n\t\t\tnext(node);\n\t\t\tthis.#scope.end(variableCallback);\n\t\t\tthis.#scope = savedScope;\n\t\t};\n\n\t\tconst handleBlockScope = (node: ts.Node) => {\n\t\t\tif (\n\t\t\t\tnode.kind === ts.SyntaxKind.CatchClause &&\n\t\t\t\t(node as ts.CatchClause).variableDeclaration !== undefined\n\t\t\t) {\n\t\t\t\tthis.#handleBindingName(\n\t\t\t\t\t(node as ts.CatchClause).variableDeclaration!.name,\n\t\t\t\t\ttrue,\n\t\t\t\t\tfalse,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t};\n\n\t\tts.forEachChild(sourceFile, cb);\n\t\tthis.#scope.end(variableCallback);\n\t\treturn this.#result;\n\n\t\tfunction forEachChild(node: ts.Node) {\n\t\t\treturn ts.forEachChild(node, cb);\n\t\t}\n\t}\n}\n\nfunction isNamespaceExported(node: ts.NamespaceDeclaration) {\n\treturn (\n\t\tnode.parent.kind === ts.SyntaxKind.ModuleDeclaration ||\n\t\tincludesModifier(node.modifiers, ts.SyntaxKind.ExportKeyword)\n\t);\n}\n\nfunction namespaceHasExportStatement(ns: ts.ModuleDeclaration): boolean {\n\tif (ns.body === undefined || ns.body.kind !== ts.SyntaxKind.ModuleBlock) {\n\t\treturn false;\n\t}\n\n\treturn containsExportStatement(ns.body);\n}\n\nfunction containsExportStatement(block: ts.BlockLike): boolean {\n\tfor (const statement of block.statements) {\n\t\tif (\n\t\t\tstatement.kind === ts.SyntaxKind.ExportDeclaration ||\n\t\t\tstatement.kind === ts.SyntaxKind.ExportAssignment\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\nfunction isBlockScopedVariableDeclarationList(\n\tdeclarationList: ts.VariableDeclarationList,\n): boolean {\n\treturn (declarationList.flags & ts.NodeFlags.BlockScoped) !== 0;\n}\n\nfunction forEachDestructuringIdentifier(\n\tpattern: ts.BindingPattern,\n\tfn: (element: ts.BindingElement & { name: ts.Identifier }) => T,\n): T | undefined {\n\tfor (const element of pattern.elements) {\n\t\tif (element.kind !== ts.SyntaxKind.BindingElement) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet result: T | undefined;\n\t\tif (element.name.kind === ts.SyntaxKind.Identifier) {\n\t\t\tresult = fn(element as ts.BindingElement & { name: ts.Identifier });\n\t\t} else {\n\t\t\tresult = forEachDestructuringIdentifier(element.name, fn);\n\t\t}\n\n\t\tif (result) {\n\t\t\treturn result;\n\t\t}\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport type { EnumScope, NamespaceScope } from \"./scopes\";\n\nimport { isFunctionScopeBoundary } from \"../scopes\";\nimport { DeclarationDomain } from \"./declarations\";\nimport { InternalUsageInfo, Usage, UsageInfoCallback } from \"./usage\";\n\nexport enum ScopeBoundary {\n\tBlock = 2,\n\tConditionalType = 8,\n\tFunction = 1,\n\tNone = 0,\n\tType = 4,\n}\n\nexport enum ScopeBoundarySelector {\n\tFunction = ScopeBoundary.Function,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tBlock = ScopeBoundarySelector.Function | ScopeBoundary.Block,\n\tInferType = ScopeBoundary.ConditionalType,\n\tType = ScopeBoundarySelector.Block | ScopeBoundary.Type,\n}\n\nexport interface Scope {\n\taddUse(use: Usage, scope?: Scope): void;\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void;\n\tcreateOrReuseEnumScope(name: string, exported: boolean): EnumScope;\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\texported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope;\n\tend(cb: UsageInfoCallback): void;\n\tgetDestinationScope(selector: ScopeBoundarySelector): Scope;\n\tgetFunctionScope(): Scope;\n\tgetVariables(): Map;\n\tmarkExported(name: ts.Identifier, as?: ts.Identifier): void;\n}\n\nexport function isBlockScopeBoundary(node: ts.Node): ScopeBoundary {\n\tswitch (node.kind) {\n\t\tcase ts.SyntaxKind.Block: {\n\t\t\tconst parent = node.parent;\n\t\t\treturn parent.kind !== ts.SyntaxKind.CatchClause &&\n\t\t\t\t// blocks inside SourceFile are block scope boundaries\n\t\t\t\t(parent.kind === ts.SyntaxKind.SourceFile ||\n\t\t\t\t\t// blocks that are direct children of a function scope boundary are no scope boundary\n\t\t\t\t\t// for example the FunctionBlock is part of the function scope of the containing function\n\t\t\t\t\t!isFunctionScopeBoundary(parent))\n\t\t\t\t? ScopeBoundary.Block\n\t\t\t\t: ScopeBoundary.None;\n\t\t}\n\n\t\tcase ts.SyntaxKind.ForStatement:\n\t\tcase ts.SyntaxKind.ForInStatement:\n\t\tcase ts.SyntaxKind.ForOfStatement:\n\t\tcase ts.SyntaxKind.CaseBlock:\n\t\tcase ts.SyntaxKind.CatchClause:\n\t\tcase ts.SyntaxKind.WithStatement:\n\t\t\treturn ScopeBoundary.Block;\n\t\tdefault:\n\t\t\treturn ScopeBoundary.None;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { identifierToKeywordKind } from \"./utils\";\n\n/**\n * Metadata for how a declaration was declared and/or referenced.\n */\nexport interface DeclarationInfo {\n\tdeclaration: ts.PropertyName;\n\tdomain: DeclarationDomain;\n\texported: boolean;\n}\n\n/**\n * Which \"domain\"(s) (most commonly, type or value space) a declaration is within.\n */\nexport enum DeclarationDomain {\n\tImport = 8,\n\tNamespace = 1,\n\tType = 2,\n\tValue = 4,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tAny = Namespace | Type | Value,\n}\n\nexport function getDeclarationDomain(\n\tnode: ts.Identifier,\n): DeclarationDomain | undefined {\n\tswitch (node.parent.kind) {\n\t\tcase ts.SyntaxKind.TypeParameter:\n\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\t\treturn DeclarationDomain.Type;\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\t\treturn DeclarationDomain.Type | DeclarationDomain.Value;\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\t\treturn DeclarationDomain.Any;\n\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\tcase ts.SyntaxKind.ImportClause:\n\t\t\treturn DeclarationDomain.Any | DeclarationDomain.Import; // TODO handle type-only imports\n\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\t\treturn (node.parent as ts.ImportEqualsDeclaration | ts.ImportSpecifier)\n\t\t\t\t.name === node\n\t\t\t\t? DeclarationDomain.Any | DeclarationDomain.Import // TODO handle type-only imports\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\t\treturn DeclarationDomain.Namespace;\n\t\tcase ts.SyntaxKind.Parameter:\n\t\t\tif (\n\t\t\t\tnode.parent.parent.kind === ts.SyntaxKind.IndexSignature ||\n\t\t\t\tidentifierToKeywordKind(node) === ts.SyntaxKind.ThisKeyword\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t// falls through\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\t\treturn (node.parent as ts.VariableLikeDeclaration).name === node\n\t\t\t\t? DeclarationDomain.Value\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\t\treturn DeclarationDomain.Value;\n\t}\n}\n","import ts from \"typescript\";\n\n/**\n * Supports TypeScript<5 versions that don't have identifierToKeywordKind.\n */\nexport function identifierToKeywordKind(\n\tnode: ts.Identifier,\n): ts.SyntaxKind | undefined {\n\treturn \"identifierToKeywordKind\" in ts\n\t\t? ts.identifierToKeywordKind(node)\n\t\t: // eslint-disable-next-line deprecation/deprecation\n\t\t\tnode.originalKeywordKind;\n}\n\n/**\n * Supports TypeScript<4.8 versions that don't have canHaveDecorators.\n */\nexport function canHaveDecorators(node: ts.Node): node is ts.HasDecorators {\n\treturn \"canHaveDecorators\" in ts\n\t\t? ts.canHaveDecorators(node)\n\t\t: \"decorators\" in node;\n}\n\ntype NodeWithDecorators = ts.HasDecorators & {\n\tdecorators: readonly ts.Decorator[] | undefined;\n};\n\n/**\n * Supports TypeScript<4.8 versions that don't have getDecorators.\n */\nexport function getDecorators(\n\tnode: ts.HasDecorators,\n): readonly ts.Decorator[] | undefined {\n\treturn \"getDecorators\" in ts\n\t\t? ts.getDecorators(node)\n\t\t: (node as NodeWithDecorators).decorators;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { isNumericOrStringLikeLiteral } from \"../nodes/typeGuards/compound\";\n\nfunction unwrapParentheses(node: ts.Expression) {\n\twhile (node.kind === ts.SyntaxKind.ParenthesizedExpression) {\n\t\tnode = (node as ts.ParenthesizedExpression).expression;\n\t}\n\n\treturn node;\n}\n\nexport function getPropertyName(\n\tpropertyName: ts.PropertyName,\n): string | undefined {\n\tif (propertyName.kind === ts.SyntaxKind.ComputedPropertyName) {\n\t\tconst expression = unwrapParentheses(propertyName.expression);\n\t\tif (ts.isPrefixUnaryExpression(expression)) {\n\t\t\tlet negate = false;\n\t\t\tswitch (expression.operator) {\n\t\t\t\tcase ts.SyntaxKind.MinusToken:\n\t\t\t\t\tnegate = true;\n\t\t\t\t// falls through\n\t\t\t\tcase ts.SyntaxKind.PlusToken:\n\t\t\t\t\treturn ts.isNumericLiteral(expression.operand)\n\t\t\t\t\t\t? `${negate ? \"-\" : \"\"}${expression.operand.text}`\n\t\t\t\t\t\t: ts.isBigIntLiteral(expression.operand)\n\t\t\t\t\t\t\t? `${negate ? \"-\" : \"\"}${expression.operand.text.slice(0, -1)}`\n\t\t\t\t\t\t\t: undefined;\n\t\t\t\tdefault:\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (ts.isBigIntLiteral(expression)) {\n\t\t\treturn expression.text.slice(0, -1);\n\t\t}\n\n\t\tif (isNumericOrStringLikeLiteral(expression)) {\n\t\t\treturn expression.text;\n\t\t}\n\n\t\treturn;\n\t}\n\n\treturn propertyName.kind === ts.SyntaxKind.PrivateIdentifier\n\t\t? undefined\n\t\t: propertyName.text;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { identifierToKeywordKind } from \"./utils\";\n\n/**\n * Which \"domain\"(s) (most commonly, type or value space) a usage is within.\n */\nexport enum UsageDomain {\n\tNamespace = 1,\n\tType = 2,\n\tTypeQuery = 8,\n\tValue = 4,\n\tValueOrNamespace = Value | Namespace,\n\t// eslint-disable-next-line perfectionist/sort-enums\n\tAny = Namespace | Type | Value,\n}\n\n// TODO handle cases where values are used only for their types, e.g. `declare [propSymbol]: number`\nexport function getUsageDomain(node: ts.Identifier): UsageDomain | undefined {\n\tconst parent = node.parent;\n\tswitch (parent.kind) {\n\t\tcase ts.SyntaxKind.TypeReference:\n\t\t\treturn identifierToKeywordKind(node) !== ts.SyntaxKind.ConstKeyword\n\t\t\t\t? UsageDomain.Type\n\t\t\t\t: undefined;\n\t\tcase ts.SyntaxKind.ExpressionWithTypeArguments:\n\t\t\treturn (parent.parent as ts.HeritageClause).token ===\n\t\t\t\tts.SyntaxKind.ImplementsKeyword ||\n\t\t\t\tparent.parent.parent.kind === ts.SyntaxKind.InterfaceDeclaration\n\t\t\t\t? UsageDomain.Type\n\t\t\t\t: UsageDomain.Value;\n\t\tcase ts.SyntaxKind.TypeQuery:\n\t\t\treturn UsageDomain.ValueOrNamespace | UsageDomain.TypeQuery;\n\t\tcase ts.SyntaxKind.QualifiedName:\n\t\t\tif ((parent as ts.QualifiedName).left === node) {\n\t\t\t\tif (\n\t\t\t\t\tgetEntityNameParent(parent as ts.QualifiedName).kind ===\n\t\t\t\t\tts.SyntaxKind.TypeQuery\n\t\t\t\t) {\n\t\t\t\t\treturn UsageDomain.Namespace | UsageDomain.TypeQuery;\n\t\t\t\t}\n\n\t\t\t\treturn UsageDomain.Namespace;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.ExportSpecifier:\n\t\t\t// either {name} or {propertyName as name}\n\t\t\tif (\n\t\t\t\t(parent as ts.ExportSpecifier).propertyName === undefined ||\n\t\t\t\t(parent as ts.ExportSpecifier).propertyName === node\n\t\t\t) {\n\t\t\t\treturn UsageDomain.Any;\n\t\t\t} // TODO handle type-only exports\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.ExportAssignment:\n\t\t\treturn UsageDomain.Any;\n\t\t// Value\n\t\tcase ts.SyntaxKind.BindingElement:\n\t\t\tif ((parent as ts.BindingElement).initializer === node) {\n\t\t\t\treturn UsageDomain.ValueOrNamespace;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.Parameter:\n\t\tcase ts.SyntaxKind.EnumMember:\n\t\tcase ts.SyntaxKind.PropertyDeclaration:\n\t\tcase ts.SyntaxKind.VariableDeclaration:\n\t\tcase ts.SyntaxKind.PropertyAssignment:\n\t\tcase ts.SyntaxKind.PropertyAccessExpression:\n\t\tcase ts.SyntaxKind.ImportEqualsDeclaration:\n\t\t\tif ((parent as ts.NamedDeclaration).name !== node) {\n\t\t\t\treturn UsageDomain.ValueOrNamespace;\n\t\t\t} // TODO handle type-only imports\n\n\t\t\tbreak;\n\t\tcase ts.SyntaxKind.JsxAttribute:\n\t\tcase ts.SyntaxKind.FunctionDeclaration:\n\t\tcase ts.SyntaxKind.FunctionExpression:\n\t\tcase ts.SyntaxKind.NamespaceImport:\n\t\tcase ts.SyntaxKind.ClassDeclaration:\n\t\tcase ts.SyntaxKind.ClassExpression:\n\t\tcase ts.SyntaxKind.ModuleDeclaration:\n\t\tcase ts.SyntaxKind.MethodDeclaration:\n\t\tcase ts.SyntaxKind.EnumDeclaration:\n\t\tcase ts.SyntaxKind.GetAccessor:\n\t\tcase ts.SyntaxKind.SetAccessor:\n\t\tcase ts.SyntaxKind.LabeledStatement:\n\t\tcase ts.SyntaxKind.BreakStatement:\n\t\tcase ts.SyntaxKind.ContinueStatement:\n\t\tcase ts.SyntaxKind.ImportClause:\n\t\tcase ts.SyntaxKind.ImportSpecifier:\n\t\tcase ts.SyntaxKind.TypePredicate: // TODO this actually references a parameter\n\t\tcase ts.SyntaxKind.MethodSignature:\n\t\tcase ts.SyntaxKind.PropertySignature:\n\t\tcase ts.SyntaxKind.NamespaceExportDeclaration:\n\t\tcase ts.SyntaxKind.NamespaceExport:\n\t\tcase ts.SyntaxKind.InterfaceDeclaration:\n\t\tcase ts.SyntaxKind.TypeAliasDeclaration:\n\t\tcase ts.SyntaxKind.TypeParameter:\n\t\tcase ts.SyntaxKind.NamedTupleMember:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn UsageDomain.ValueOrNamespace;\n\t}\n}\n\nfunction getEntityNameParent(name: ts.EntityName) {\n\tlet parent = name.parent;\n\twhile (parent.kind === ts.SyntaxKind.QualifiedName) {\n\t\tparent = parent.parent!;\n\t}\n\n\treturn parent;\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { Scope, ScopeBoundary, ScopeBoundarySelector } from \"./Scope\";\nimport {\n\tDeclarationDomain,\n\tDeclarationInfo,\n\tgetDeclarationDomain,\n} from \"./declarations\";\nimport {\n\tInternalUsageInfo,\n\tUsage,\n\tUsageInfo,\n\tUsageInfoCallback,\n} from \"./usage\";\n\nabstract class AbstractScope implements Scope {\n\t#enumScopes: Map | undefined = undefined;\n\tprotected namespaceScopes: Map | undefined =\n\t\tundefined;\n\tprotected uses: Usage[] = [];\n\tprotected variables = new Map();\n\n\tconstructor(protected global: boolean) {}\n\n\taddUse(use: Usage): void {\n\t\tthis.uses.push(use);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprotected addUseToParent(_use: Usage): void {}\n\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void {\n\t\tconst variables = this.getDestinationScope(selector).getVariables();\n\t\tconst declaration: DeclarationInfo = {\n\t\t\tdeclaration: name,\n\t\t\tdomain,\n\t\t\texported,\n\t\t};\n\t\tconst variable = variables.get(identifier);\n\t\tif (variable === undefined) {\n\t\t\tvariables.set(identifier, {\n\t\t\t\tdeclarations: [declaration],\n\t\t\t\tdomain,\n\t\t\t\tuses: [],\n\t\t\t});\n\t\t} else {\n\t\t\tvariable.domain |= domain;\n\t\t\tvariable.declarations.push(declaration);\n\t\t}\n\t}\n\n\tprotected applyUse(use: Usage, variables = this.variables): boolean {\n\t\tconst variable = variables.get(use.location.text);\n\t\tif (variable === undefined || (variable.domain & use.domain) === 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvariable.uses.push(use);\n\t\treturn true;\n\t}\n\n\tprotected applyUses(): void {\n\t\tfor (const use of this.uses) {\n\t\t\tif (!this.applyUse(use)) {\n\t\t\t\tthis.addUseToParent(use);\n\t\t\t}\n\t\t}\n\n\t\tthis.uses = [];\n\t}\n\n\tcreateOrReuseEnumScope(name: string, _exported: boolean): EnumScope {\n\t\tlet scope: EnumScope | undefined;\n\t\tif (this.#enumScopes === undefined) {\n\t\t\tthis.#enumScopes = new Map();\n\t\t} else {\n\t\t\tscope = this.#enumScopes.get(name);\n\t\t}\n\n\t\tif (scope === undefined) {\n\t\t\tscope = new EnumScope(this);\n\t\t\tthis.#enumScopes.set(name, scope);\n\t\t}\n\n\t\treturn scope;\n\t} // only relevant for the root scope\n\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\t_exported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope {\n\t\tlet scope: NamespaceScope | undefined;\n\t\tif (this.namespaceScopes === undefined) {\n\t\t\tthis.namespaceScopes = new Map();\n\t\t} else {\n\t\t\tscope = this.namespaceScopes.get(name);\n\t\t}\n\n\t\tif (scope === undefined) {\n\t\t\tscope = new NamespaceScope(ambient, hasExportStatement, this);\n\t\t\tthis.namespaceScopes.set(name, scope);\n\t\t} else {\n\t\t\tscope.refresh(ambient, hasExportStatement);\n\t\t}\n\n\t\treturn scope;\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tif (this.namespaceScopes !== undefined) {\n\t\t\tthis.namespaceScopes.forEach((value) => value.finish(cb));\n\t\t}\n\n\t\tthis.namespaceScopes = this.#enumScopes = undefined;\n\t\tthis.applyUses();\n\t\tthis.variables.forEach((variable) => {\n\t\t\tfor (const declaration of variable.declarations) {\n\t\t\t\tconst result: UsageInfo = {\n\t\t\t\t\tdeclarations: [],\n\t\t\t\t\tdomain: declaration.domain,\n\t\t\t\t\texported: declaration.exported,\n\t\t\t\t\tinGlobalScope: this.global,\n\t\t\t\t\tuses: [],\n\t\t\t\t};\n\t\t\t\tfor (const other of variable.declarations) {\n\t\t\t\t\tif (other.domain & declaration.domain) {\n\t\t\t\t\t\tresult.declarations.push(other.declaration as ts.Identifier);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (const use of variable.uses) {\n\t\t\t\t\tif (use.domain & declaration.domain) {\n\t\t\t\t\t\tresult.uses.push(use);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcb(result, declaration.declaration as ts.Identifier, this);\n\t\t\t}\n\t\t});\n\t}\n\n\tgetFunctionScope(): Scope {\n\t\treturn this;\n\t}\n\n\tgetVariables(): Map {\n\t\treturn this.variables;\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tmarkExported(_name: ts.Identifier): void {}\n\n\tabstract getDestinationScope(selector: ScopeBoundarySelector): Scope;\n}\n\nexport class NonRootScope extends AbstractScope {\n\tconstructor(\n\t\tprotected parent: Scope,\n\t\tprotected boundary: ScopeBoundary,\n\t) {\n\t\tsuper(false);\n\t}\n\n\tprotected addUseToParent(use: Usage): void {\n\t\treturn this.parent.addUse(use, this);\n\t}\n\n\tgetDestinationScope(selector: ScopeBoundarySelector): Scope {\n\t\treturn this.boundary & selector\n\t\t\t? this\n\t\t\t: this.parent.getDestinationScope(selector);\n\t}\n}\n\nexport class EnumScope extends NonRootScope {\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t}\n\n\tend(): void {\n\t\tthis.applyUses();\n\t}\n}\n\nexport class RootScope extends AbstractScope {\n\t#exportAll: boolean;\n\t#exports: string[] | undefined = undefined;\n\t#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(exportAll: boolean, global: boolean) {\n\t\tsuper(global);\n\t\tthis.#exportAll = exportAll;\n\t}\n\n\taddUse(use: Usage, origin?: Scope): void {\n\t\tif (origin === this.#innerScope) {\n\t\t\treturn super.addUse(use);\n\t\t}\n\n\t\treturn this.#innerScope.addUse(use);\n\t}\n\n\taddVariable(\n\t\tidentifier: string,\n\t\tname: ts.PropertyName,\n\t\tselector: ScopeBoundarySelector,\n\t\texported: boolean,\n\t\tdomain: DeclarationDomain,\n\t): void {\n\t\tif (domain & DeclarationDomain.Import) {\n\t\t\treturn super.addVariable(identifier, name, selector, exported, domain);\n\t\t}\n\n\t\treturn this.#innerScope.addVariable(\n\t\t\tidentifier,\n\t\t\tname,\n\t\t\tselector,\n\t\t\texported,\n\t\t\tdomain,\n\t\t);\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.#innerScope.end((value, key) => {\n\t\t\tvalue.exported ||=\n\t\t\t\tthis.#exportAll ||\n\t\t\t\t(this.#exports !== undefined && this.#exports.includes(key.text));\n\t\t\tvalue.inGlobalScope = this.global;\n\t\t\treturn cb(value, key, this);\n\t\t});\n\t\treturn super.end((value, key, scope) => {\n\t\t\tvalue.exported ||=\n\t\t\t\tscope === this &&\n\t\t\t\tthis.#exports !== undefined &&\n\t\t\t\tthis.#exports.includes(key.text);\n\t\t\treturn cb(value, key, scope);\n\t\t});\n\t}\n\n\tgetDestinationScope(): this {\n\t\treturn this;\n\t}\n\n\tmarkExported(id: ts.Identifier): void {\n\t\tif (this.#exports === undefined) {\n\t\t\tthis.#exports = [id.text];\n\t\t} else {\n\t\t\tthis.#exports.push(id.text);\n\t\t}\n\t}\n}\n\nexport class NamespaceScope extends NonRootScope {\n\t#ambient: boolean;\n\t#exports: Set | undefined = undefined;\n\t#hasExport: boolean;\n\t#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(ambient: boolean, hasExport: boolean, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t\tthis.#ambient = ambient;\n\t\tthis.#hasExport = hasExport;\n\t}\n\n\taddUse(use: Usage, source?: Scope): void {\n\t\tif (source !== this.#innerScope) {\n\t\t\treturn this.#innerScope.addUse(use);\n\t\t}\n\n\t\tthis.uses.push(use);\n\t}\n\n\tcreateOrReuseEnumScope(name: string, exported: boolean): EnumScope {\n\t\tif (!exported && (!this.#ambient || this.#hasExport)) {\n\t\t\treturn this.#innerScope.createOrReuseEnumScope(name, exported);\n\t\t}\n\n\t\treturn super.createOrReuseEnumScope(name, exported);\n\t}\n\n\tcreateOrReuseNamespaceScope(\n\t\tname: string,\n\t\texported: boolean,\n\t\tambient: boolean,\n\t\thasExportStatement: boolean,\n\t): NamespaceScope {\n\t\tif (!exported && (!this.#ambient || this.#hasExport)) {\n\t\t\treturn this.#innerScope.createOrReuseNamespaceScope(\n\t\t\t\tname,\n\t\t\t\texported,\n\t\t\t\tambient || this.#ambient,\n\t\t\t\thasExportStatement,\n\t\t\t);\n\t\t}\n\n\t\treturn super.createOrReuseNamespaceScope(\n\t\t\tname,\n\t\t\texported,\n\t\t\tambient || this.#ambient,\n\t\t\thasExportStatement,\n\t\t);\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.#innerScope.end((variable, key, scope) => {\n\t\t\tif (\n\t\t\t\tscope !== this.#innerScope ||\n\t\t\t\t(!variable.exported &&\n\t\t\t\t\t(!this.#ambient ||\n\t\t\t\t\t\t(this.#exports !== undefined && !this.#exports.has(key.text))))\n\t\t\t) {\n\t\t\t\treturn cb(variable, key, scope);\n\t\t\t}\n\n\t\t\tconst namespaceVar = this.variables.get(key.text);\n\t\t\tif (namespaceVar === undefined) {\n\t\t\t\tthis.variables.set(key.text, {\n\t\t\t\t\tdeclarations: variable.declarations.map(mapDeclaration),\n\t\t\t\t\tdomain: variable.domain,\n\t\t\t\t\tuses: [...variable.uses],\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\touter: for (const declaration of variable.declarations) {\n\t\t\t\t\tfor (const existing of namespaceVar.declarations) {\n\t\t\t\t\t\tif (existing.declaration === declaration) {\n\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tnamespaceVar.declarations.push(mapDeclaration(declaration));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnamespaceVar.domain |= variable.domain;\n\t\t\t\tfor (const use of variable.uses) {\n\t\t\t\t\tif (namespaceVar.uses.includes(use)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tnamespaceVar.uses.push(use);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.applyUses();\n\t\tthis.#innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\t}\n\n\tfinish(cb: UsageInfoCallback): void {\n\t\treturn super.end(cb);\n\t}\n\n\tgetDestinationScope(): Scope {\n\t\treturn this.#innerScope;\n\t}\n\n\tmarkExported(name: ts.Identifier): void {\n\t\tif (this.#exports === undefined) {\n\t\t\tthis.#exports = new Set();\n\t\t}\n\n\t\tthis.#exports.add(name.text);\n\t}\n\n\trefresh(ambient: boolean, hasExport: boolean): void {\n\t\tthis.#ambient = ambient;\n\t\tthis.#hasExport = hasExport;\n\t}\n}\n\nfunction mapDeclaration(declaration: ts.Identifier): DeclarationInfo {\n\treturn {\n\t\tdeclaration,\n\t\tdomain: getDeclarationDomain(declaration)!,\n\t\texported: true,\n\t};\n}\n\nexport class FunctionScope extends NonRootScope {\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t}\n\n\tbeginBody(): void {\n\t\tthis.applyUses();\n\t}\n}\n\nabstract class AbstractNamedExpressionScope<\n\tInnerScope extends NonRootScope,\n> extends NonRootScope {\n\t#domain: DeclarationDomain;\n\n\t#name: ts.Identifier;\n\tconstructor(name: ts.Identifier, domain: DeclarationDomain, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Function);\n\t\tthis.#name = name;\n\t\tthis.#domain = domain;\n\t}\n\n\taddUse(use: Usage, source?: Scope): void {\n\t\tif (source !== this.innerScope) {\n\t\t\treturn this.innerScope.addUse(use);\n\t\t}\n\n\t\tif (use.domain & this.#domain && use.location.text === this.#name.text) {\n\t\t\tthis.uses.push(use);\n\t\t} else {\n\t\t\treturn this.parent.addUse(use, this);\n\t\t}\n\t}\n\n\tend(cb: UsageInfoCallback): void {\n\t\tthis.innerScope.end(cb);\n\t\treturn cb(\n\t\t\t{\n\t\t\t\tdeclarations: [this.#name],\n\t\t\t\tdomain: this.#domain,\n\t\t\t\texported: false,\n\t\t\t\tinGlobalScope: false,\n\t\t\t\tuses: this.uses,\n\t\t\t},\n\t\t\tthis.#name,\n\t\t\tthis,\n\t\t);\n\t}\n\n\tgetDestinationScope(): InnerScope {\n\t\treturn this.innerScope;\n\t}\n\n\tgetFunctionScope(): InnerScope {\n\t\treturn this.innerScope;\n\t}\n\n\tprotected abstract get innerScope(): InnerScope;\n}\n\nexport class FunctionExpressionScope extends AbstractNamedExpressionScope {\n\tprotected innerScope = new FunctionScope(this);\n\n\tconstructor(name: ts.Identifier, parent: Scope) {\n\t\tsuper(name, DeclarationDomain.Value, parent);\n\t}\n\n\tbeginBody(): void {\n\t\treturn this.innerScope.beginBody();\n\t}\n}\n\nexport class BlockScope extends NonRootScope {\n\t#functionScope: Scope;\n\n\tconstructor(functionScope: Scope, parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.Block);\n\t\tthis.#functionScope = functionScope;\n\t}\n\n\tgetFunctionScope(): Scope {\n\t\treturn this.#functionScope;\n\t}\n}\n\nexport class ClassExpressionScope extends AbstractNamedExpressionScope {\n\tprotected innerScope = new NonRootScope(this, ScopeBoundary.Function);\n\n\tconstructor(name: ts.Identifier, parent: Scope) {\n\t\tsuper(name, DeclarationDomain.Value | DeclarationDomain.Type, parent);\n\t}\n}\n\nexport enum ConditionalTypeScopeState {\n\tInitial,\n\tExtends,\n\tTrueType,\n\tFalseType,\n}\n\nexport class ConditionalTypeScope extends NonRootScope {\n\t#state = ConditionalTypeScopeState.Initial;\n\n\tconstructor(parent: Scope) {\n\t\tsuper(parent, ScopeBoundary.ConditionalType);\n\t}\n\n\taddUse(use: Usage): void {\n\t\tif (this.#state === ConditionalTypeScopeState.TrueType) {\n\t\t\treturn void this.uses.push(use);\n\t\t}\n\n\t\treturn this.parent.addUse(use, this);\n\t}\n\n\tupdateState(newState: ConditionalTypeScopeState): void {\n\t\tthis.#state = newState;\n\t}\n}\n","// Code largely based on https://github.com/ajafff/tsutils\n// Original license: https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE\n\nimport ts from \"typescript\";\n\nimport { UsageWalker } from \"./UsageWalker\";\nimport { UsageInfo } from \"./usage\";\n\n/**\n * Creates a mapping of each declared type and value to its type information.\n * @category Nodes - Other Utilities\n * @example\n * ```ts\n * declare const sourceFile: ts.SourceFile;\n *\n * const usage = collectVariableUsage(sourceFile);\n *\n * for (const [identifier, information] of usage) {\n * \tconsole.log(`${identifier.getText()} is used ${information.uses.length} time(s).`);\n * }\n * ```\n */\nexport function collectVariableUsage(\n\tsourceFile: ts.SourceFile,\n): Map {\n\treturn new UsageWalker().getUsage(sourceFile);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,OAAOA,SAAQ;;;ACEf,OAAO,QAAQ;AAsBR,SAAS,aACf,MACA,UACA,aAA4B,KAAK,cAAc,GACxC;AACP,QAAM,QAAQ,CAAC;AACf,SAAO,MAAM;AACZ,QAAI,GAAG,YAAY,KAAK,IAAI,GAAG;AAC9B,eAAS,IAAI;AAAA,IACd;AAAA;AAAA,MAEC,KAAK,SAAS,GAAG,WAAW;AAAA,MAC3B;AACD,YAAM,WAAW,KAAK,YAAY,UAAU;AAC5C,UAAI,SAAS,WAAW,GAAG;AAC1B,eAAO,SAAS,CAAC;AACjB;AAAA,MACD;AAGA,eAAS,IAAI,SAAS,SAAS,GAAG,KAAK,GAAG,EAAE,GAAG;AAC9C,cAAM,KAAK,SAAS,CAAC,CAAC;AAAA,MACvB;AAAA,IACD;AAEA,QAAI,MAAM,WAAW,GAAG;AACvB;AAAA,IACD;AAEA,WAAO,MAAM,IAAI;AAAA,EAClB;AACD;;;AD/CA,SAAS,sBAAsB,OAAyB;AACvD,UAAQ,MAAM,MAAM;AAAA,IACnB,KAAKC,IAAG,WAAW;AAElB,aACC,MAAM,OAAO,SAASA,IAAG,WAAW,iBACpC,CAAC,uBAAuB,MAAM,OAAO,MAAM;AAAA,IAE7C,KAAKA,IAAG,WAAW;AAClB,cAAQ,MAAM,OAAO,MAAM;AAAA,QAC1B,KAAKA,IAAG,WAAW;AAElB,iBAAO,MAAM,QAAQ,MAAM,OAAO;AAAA,QACnC,KAAKA,IAAG,WAAW;AAClB,iBAAO;AAAA,QACR,KAAKA,IAAG,WAAW;AAClB,iBACC,MAAM,QAAQ,MAAM,OAAO;AAAA,UAC3B,CAAC,uBAAuB,MAAM,OAAO,MAAM;AAAA,QAE7C,KAAKA,IAAG,WAAW;AAAA,QACnB,KAAK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I,YAAY,EAAE,SAAS,UAAU;AAC7C;","names":["ts","ts","ts","ts","ts","ts","AccessKind","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","ts","typeParts","ts","ts","ts","ts","ts","DeclarationDomain","ts","ts","ts","ts","UsageDomain","ts","_name","_exports","_innerScope","ts"]} \ No newline at end of file diff --git a/graphql/node_modules/ts-api-utils/package.json b/graphql/node_modules/ts-api-utils/package.json deleted file mode 100644 index e10b1c3d..00000000 --- a/graphql/node_modules/ts-api-utils/package.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "name": "ts-api-utils", - "version": "1.3.0", - "description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️", - "repository": { - "type": "git", - "url": "https://github.com/JoshuaKGoldberg/ts-api-utils" - }, - "license": "MIT", - "author": { - "name": "JoshuaKGoldberg", - "email": "npm@joshuakgoldberg.com" - }, - "type": "module", - "exports": { - ".": { - "types": { - "import": "./lib/index.d.ts", - "require": "./lib/index.d.cts" - }, - "import": "./lib/index.js", - "require": "./lib/index.cjs" - } - }, - "main": "./lib/index.js", - "files": [ - "lib/", - "package.json", - "LICENSE.md", - "README.md" - ], - "scripts": { - "build": "tsup src/index.ts && cp lib/index.d.ts lib/index.d.cts", - "docs": "typedoc", - "docs:serve": "npx --yes http-server docs/generated", - "format": "prettier \"**/*\" --ignore-unknown", - "lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives", - "lint:docs": "typedoc --validation --treatValidationWarningsAsErrors", - "lint:knip": "knip", - "lint:knip:production": "knip --config knip.production.jsonc --production", - "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line", - "lint:package-json": "npmPkgJsonLint .", - "lint:packages": "pnpm dedupe --check", - "lint:spelling": "cspell \"**\" \".github/**/*\"", - "prepare": "husky install", - "should-semantic-release": "should-semantic-release --verbose", - "test": "vitest", - "tsc": "tsc" - }, - "lint-staged": { - "*": "prettier --ignore-unknown --write" - }, - "devDependencies": { - "@phenomnomnominal/tsquery": "^6.1.3", - "@release-it/conventional-changelog": "^8.0.1", - "@types/eslint": "^8.56.0", - "@typescript-eslint/eslint-plugin": "^6.15.0", - "@typescript-eslint/parser": "6.20.0", - "@typescript/vfs": "^1.5.0", - "@vitest/coverage-v8": "^1.1.0", - "console-fail-test": "^0.2.3", - "cspell": "^8.2.3", - "eslint": "^8.56.0", - "eslint-plugin-deprecation": "^2.0.0", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-jsdoc": "^48.0.0", - "eslint-plugin-jsonc": "^2.11.2", - "eslint-plugin-markdown": "^3.0.1", - "eslint-plugin-n": "^16.5.0", - "eslint-plugin-no-only-tests": "^3.1.0", - "eslint-plugin-perfectionist": "^2.5.0", - "eslint-plugin-regexp": "^2.1.2", - "eslint-plugin-vitest": "^0.3.18", - "eslint-plugin-yml": "^1.11.0", - "husky": "^9.0.0", - "jsonc-eslint-parser": "^2.4.0", - "knip": "^4.0.0", - "lint-staged": "^15.2.0", - "markdownlint": "^0.33.0", - "markdownlint-cli": "^0.39.0", - "npm-package-json-lint": "^7.1.0", - "npm-package-json-lint-config-default": "^6.0.0", - "prettier": "^3.1.1", - "prettier-plugin-curly": "^0.1.3", - "prettier-plugin-packagejson": "^2.4.7", - "release-it": "^17.0.1", - "sentences-per-line": "^0.2.1", - "should-semantic-release": "^0.2.1", - "tsup": "^8.0.1", - "typedoc": "^0.24.8", - "typedoc-plugin-coverage": "^2.2.0", - "typedoc-plugin-custom-validation": "^1.1.1", - "typedoc-plugin-konamimojisplosion": "^0.0.2", - "typedoc-plugin-mdn-links": "^3.1.8", - "typedoc-plugin-versions": "^0.2.4", - "typescript": "^5.3.3", - "vitest": "^1.1.0", - "yaml-eslint-parser": "^1.2.2" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - }, - "packageManager": "pnpm@8.15.1", - "engines": { - "node": ">=16" - }, - "publishConfig": { - "provenance": true - } -} diff --git a/graphql/node_modules/type-check/LICENSE b/graphql/node_modules/type-check/LICENSE deleted file mode 100644 index 525b1185..00000000 --- a/graphql/node_modules/type-check/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) George Zahariev - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/graphql/node_modules/type-check/README.md b/graphql/node_modules/type-check/README.md deleted file mode 100644 index b170d67c..00000000 --- a/graphql/node_modules/type-check/README.md +++ /dev/null @@ -1,210 +0,0 @@ -# type-check [![Build Status](https://travis-ci.org/gkz/type-check.png?branch=master)](https://travis-ci.org/gkz/type-check) - - - -`type-check` is a library which allows you to check the types of JavaScript values at runtime with a Haskell like type syntax. It is great for checking external input, for testing, or even for adding a bit of safety to your internal code. It is a major component of [levn](https://github.com/gkz/levn). MIT license. Version 0.4.0. Check out the [demo](http://gkz.github.io/type-check/). - -For updates on `type-check`, [follow me on twitter](https://twitter.com/gkzahariev). - - npm install type-check - -## Quick Examples - -```js -// Basic types: -var typeCheck = require('type-check').typeCheck; -typeCheck('Number', 1); // true -typeCheck('Number', 'str'); // false -typeCheck('Error', new Error); // true -typeCheck('Undefined', undefined); // true - -// Comment -typeCheck('count::Number', 1); // true - -// One type OR another type: -typeCheck('Number | String', 2); // true -typeCheck('Number | String', 'str'); // true - -// Wildcard, matches all types: -typeCheck('*', 2) // true - -// Array, all elements of a single type: -typeCheck('[Number]', [1, 2, 3]); // true -typeCheck('[Number]', [1, 'str', 3]); // false - -// Tuples, or fixed length arrays with elements of different types: -typeCheck('(String, Number)', ['str', 2]); // true -typeCheck('(String, Number)', ['str']); // false -typeCheck('(String, Number)', ['str', 2, 5]); // false - -// Object properties: -typeCheck('{x: Number, y: Boolean}', {x: 2, y: false}); // true -typeCheck('{x: Number, y: Boolean}', {x: 2}); // false -typeCheck('{x: Number, y: Maybe Boolean}', {x: 2}); // true -typeCheck('{x: Number, y: Boolean}', {x: 2, y: false, z: 3}); // false -typeCheck('{x: Number, y: Boolean, ...}', {x: 2, y: false, z: 3}); // true - -// A particular type AND object properties: -typeCheck('RegExp{source: String, ...}', /re/i); // true -typeCheck('RegExp{source: String, ...}', {source: 're'}); // false - -// Custom types: -var opt = {customTypes: - {Even: { typeOf: 'Number', validate: function(x) { return x % 2 === 0; }}}}; -typeCheck('Even', 2, opt); // true - -// Nested: -var type = '{a: (String, [Number], {y: Array, ...}), b: Error{message: String, ...}}' -typeCheck(type, {a: ['hi', [1, 2, 3], {y: [1, 'ms']}], b: new Error('oh no')}); // true -``` - -Check out the [type syntax format](#syntax) and [guide](#guide). - -## Usage - -`require('type-check');` returns an object that exposes four properties. `VERSION` is the current version of the library as a string. `typeCheck`, `parseType`, and `parsedTypeCheck` are functions. - -```js -// typeCheck(type, input, options); -typeCheck('Number', 2); // true - -// parseType(type); -var parsedType = parseType('Number'); // object - -// parsedTypeCheck(parsedType, input, options); -parsedTypeCheck(parsedType, 2); // true -``` - -### typeCheck(type, input, options) - -`typeCheck` checks a JavaScript value `input` against `type` written in the [type format](#type-format) (and taking account the optional `options`) and returns whether the `input` matches the `type`. - -##### arguments -* type - `String` - the type written in the [type format](#type-format) which to check against -* input - `*` - any JavaScript value, which is to be checked against the type -* options - `Maybe Object` - an optional parameter specifying additional options, currently the only available option is specifying [custom types](#custom-types) - -##### returns -`Boolean` - whether the input matches the type - -##### example -```js -typeCheck('Number', 2); // true -``` - -### parseType(type) - -`parseType` parses string `type` written in the [type format](#type-format) into an object representing the parsed type. - -##### arguments -* type - `String` - the type written in the [type format](#type-format) which to parse - -##### returns -`Object` - an object in the parsed type format representing the parsed type - -##### example -```js -parseType('Number'); // [{type: 'Number'}] -``` -### parsedTypeCheck(parsedType, input, options) - -`parsedTypeCheck` checks a JavaScript value `input` against parsed `type` in the parsed type format (and taking account the optional `options`) and returns whether the `input` matches the `type`. Use this in conjunction with `parseType` if you are going to use a type more than once. - -##### arguments -* type - `Object` - the type in the parsed type format which to check against -* input - `*` - any JavaScript value, which is to be checked against the type -* options - `Maybe Object` - an optional parameter specifying additional options, currently the only available option is specifying [custom types](#custom-types) - -##### returns -`Boolean` - whether the input matches the type - -##### example -```js -parsedTypeCheck([{type: 'Number'}], 2); // true -var parsedType = parseType('String'); -parsedTypeCheck(parsedType, 'str'); // true -``` - - -## Type Format - -### Syntax - -White space is ignored. The root node is a __Types__. - -* __Identifier__ = `[\$\w]+` - a group of any lower or upper case letters, numbers, underscores, or dollar signs - eg. `String` -* __Type__ = an `Identifier`, an `Identifier` followed by a `Structure`, just a `Structure`, or a wildcard `*` - eg. `String`, `Object{x: Number}`, `{x: Number}`, `Array{0: String, 1: Boolean, length: Number}`, `*` -* __Types__ = optionally a comment (an `Identifier` followed by a `::`), optionally the identifier `Maybe`, one or more `Type`, separated by `|` - eg. `Number`, `String | Date`, `Maybe Number`, `Maybe Boolean | String` -* __Structure__ = `Fields`, or a `Tuple`, or an `Array` - eg. `{x: Number}`, `(String, Number)`, `[Date]` -* __Fields__ = a `{`, followed one or more `Field` separated by a comma `,` (trailing comma `,` is permitted), optionally an `...` (always preceded by a comma `,`), followed by a `}` - eg. `{x: Number, y: String}`, `{k: Function, ...}` -* __Field__ = an `Identifier`, followed by a colon `:`, followed by `Types` - eg. `x: Date | String`, `y: Boolean` -* __Tuple__ = a `(`, followed by one or more `Types` separated by a comma `,` (trailing comma `,` is permitted), followed by a `)` - eg `(Date)`, `(Number, Date)` -* __Array__ = a `[` followed by exactly one `Types` followed by a `]` - eg. `[Boolean]`, `[Boolean | Null]` - -### Guide - -`type-check` uses `Object.toString` to find out the basic type of a value. Specifically, - -```js -{}.toString.call(VALUE).slice(8, -1) -{}.toString.call(true).slice(8, -1) // 'Boolean' -``` -A basic type, eg. `Number`, uses this check. This is much more versatile than using `typeof` - for example, with `document`, `typeof` produces `'object'` which isn't that useful, and our technique produces `'HTMLDocument'`. - -You may check for multiple types by separating types with a `|`. The checker proceeds from left to right, and passes if the value is any of the types - eg. `String | Boolean` first checks if the value is a string, and then if it is a boolean. If it is none of those, then it returns false. - -Adding a `Maybe` in front of a list of multiple types is the same as also checking for `Null` and `Undefined` - eg. `Maybe String` is equivalent to `Undefined | Null | String`. - -You may add a comment to remind you of what the type is for by following an identifier with a `::` before a type (or multiple types). The comment is simply thrown out. - -The wildcard `*` matches all types. - -There are three types of structures for checking the contents of a value: 'fields', 'tuple', and 'array'. - -If used by itself, a 'fields' structure will pass with any type of object as long as it is an instance of `Object` and the properties pass - this allows for duck typing - eg. `{x: Boolean}`. - -To check if the properties pass, and the value is of a certain type, you can specify the type - eg. `Error{message: String}`. - -If you want to make a field optional, you can simply use `Maybe` - eg. `{x: Boolean, y: Maybe String}` will still pass if `y` is undefined (or null). - -If you don't care if the value has properties beyond what you have specified, you can use the 'etc' operator `...` - eg. `{x: Boolean, ...}` will match an object with an `x` property that is a boolean, and with zero or more other properties. - -For an array, you must specify one or more types (separated by `|`) - it will pass for something of any length as long as each element passes the types provided - eg. `[Number]`, `[Number | String]`. - -A tuple checks for a fixed number of elements, each of a potentially different type. Each element is separated by a comma - eg. `(String, Number)`. - -An array and tuple structure check that the value is of type `Array` by default, but if another type is specified, they will check for that instead - eg. `Int32Array[Number]`. You can use the wildcard `*` to search for any type at all. - -Check out the [type precedence](https://github.com/zaboco/type-precedence) library for type-check. - -## Options - -Options is an object. It is an optional parameter to the `typeCheck` and `parsedTypeCheck` functions. The only current option is `customTypes`. - - -### Custom Types - -__Example:__ - -```js -var options = { - customTypes: { - Even: { - typeOf: 'Number', - validate: function(x) { - return x % 2 === 0; - } - } - } -}; -typeCheck('Even', 2, options); // true -typeCheck('Even', 3, options); // false -``` - -`customTypes` allows you to set up custom types for validation. The value of this is an object. The keys of the object are the types you will be matching. Each value of the object will be an object having a `typeOf` property - a string, and `validate` property - a function. - -The `typeOf` property is the type the value should be (optional - if not set only `validate` will be used), and `validate` is a function which should return true if the value is of that type. `validate` receives one parameter, which is the value that we are checking. - -## Technical About - -`type-check` is written in [LiveScript](http://livescript.net/) - a language that compiles to JavaScript. It also uses the [prelude.ls](http://preludels.com/) library. diff --git a/graphql/node_modules/type-check/lib/check.js b/graphql/node_modules/type-check/lib/check.js deleted file mode 100644 index f78687ee..00000000 --- a/graphql/node_modules/type-check/lib/check.js +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var ref$, any, all, isItNaN, types, defaultType, toString$ = {}.toString; - ref$ = require('prelude-ls'), any = ref$.any, all = ref$.all, isItNaN = ref$.isItNaN; - types = { - Number: { - typeOf: 'Number', - validate: function(it){ - return !isItNaN(it); - } - }, - NaN: { - typeOf: 'Number', - validate: isItNaN - }, - Int: { - typeOf: 'Number', - validate: function(it){ - return !isItNaN(it) && it % 1 === 0; - } - }, - Float: { - typeOf: 'Number', - validate: function(it){ - return !isItNaN(it); - } - }, - Date: { - typeOf: 'Date', - validate: function(it){ - return !isItNaN(it.getTime()); - } - } - }; - defaultType = { - array: 'Array', - tuple: 'Array' - }; - function checkArray(input, type, options){ - return all(function(it){ - return checkMultiple(it, type.of, options); - }, input); - } - function checkTuple(input, type, options){ - var i, i$, ref$, len$, types; - i = 0; - for (i$ = 0, len$ = (ref$ = type.of).length; i$ < len$; ++i$) { - types = ref$[i$]; - if (!checkMultiple(input[i], types, options)) { - return false; - } - i++; - } - return input.length <= i; - } - function checkFields(input, type, options){ - var inputKeys, numInputKeys, k, numOfKeys, key, ref$, types; - inputKeys = {}; - numInputKeys = 0; - for (k in input) { - inputKeys[k] = true; - numInputKeys++; - } - numOfKeys = 0; - for (key in ref$ = type.of) { - types = ref$[key]; - if (!checkMultiple(input[key], types, options)) { - return false; - } - if (inputKeys[key]) { - numOfKeys++; - } - } - return type.subset || numInputKeys === numOfKeys; - } - function checkStructure(input, type, options){ - if (!(input instanceof Object)) { - return false; - } - switch (type.structure) { - case 'fields': - return checkFields(input, type, options); - case 'array': - return checkArray(input, type, options); - case 'tuple': - return checkTuple(input, type, options); - } - } - function check(input, typeObj, options){ - var type, structure, setting, that; - type = typeObj.type, structure = typeObj.structure; - if (type) { - if (type === '*') { - return true; - } - setting = options.customTypes[type] || types[type]; - if (setting) { - return (setting.typeOf === void 8 || setting.typeOf === toString$.call(input).slice(8, -1)) && setting.validate(input); - } else { - return type === toString$.call(input).slice(8, -1) && (!structure || checkStructure(input, typeObj, options)); - } - } else if (structure) { - if (that = defaultType[structure]) { - if (that !== toString$.call(input).slice(8, -1)) { - return false; - } - } - return checkStructure(input, typeObj, options); - } else { - throw new Error("No type defined. Input: " + input + "."); - } - } - function checkMultiple(input, types, options){ - if (toString$.call(types).slice(8, -1) !== 'Array') { - throw new Error("Types must be in an array. Input: " + input + "."); - } - return any(function(it){ - return check(input, it, options); - }, types); - } - module.exports = function(parsedType, input, options){ - options == null && (options = {}); - if (options.customTypes == null) { - options.customTypes = {}; - } - return checkMultiple(input, parsedType, options); - }; -}).call(this); diff --git a/graphql/node_modules/type-check/lib/index.js b/graphql/node_modules/type-check/lib/index.js deleted file mode 100644 index 09db4cb6..00000000 --- a/graphql/node_modules/type-check/lib/index.js +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var VERSION, parseType, parsedTypeCheck, typeCheck; - VERSION = '0.4.0'; - parseType = require('./parse-type'); - parsedTypeCheck = require('./check'); - typeCheck = function(type, input, options){ - return parsedTypeCheck(parseType(type), input, options); - }; - module.exports = { - VERSION: VERSION, - typeCheck: typeCheck, - parsedTypeCheck: parsedTypeCheck, - parseType: parseType - }; -}).call(this); diff --git a/graphql/node_modules/type-check/lib/parse-type.js b/graphql/node_modules/type-check/lib/parse-type.js deleted file mode 100644 index c360c973..00000000 --- a/graphql/node_modules/type-check/lib/parse-type.js +++ /dev/null @@ -1,198 +0,0 @@ -// Generated by LiveScript 1.6.0 -(function(){ - var identifierRegex, tokenRegex; - identifierRegex = /[\$\w]+/; - function peek(tokens){ - var token; - token = tokens[0]; - if (token == null) { - throw new Error('Unexpected end of input.'); - } - return token; - } - function consumeIdent(tokens){ - var token; - token = peek(tokens); - if (!identifierRegex.test(token)) { - throw new Error("Expected text, got '" + token + "' instead."); - } - return tokens.shift(); - } - function consumeOp(tokens, op){ - var token; - token = peek(tokens); - if (token !== op) { - throw new Error("Expected '" + op + "', got '" + token + "' instead."); - } - return tokens.shift(); - } - function maybeConsumeOp(tokens, op){ - var token; - token = tokens[0]; - if (token === op) { - return tokens.shift(); - } else { - return null; - } - } - function consumeArray(tokens){ - var types; - consumeOp(tokens, '['); - if (peek(tokens) === ']') { - throw new Error("Must specify type of Array - eg. [Type], got [] instead."); - } - types = consumeTypes(tokens); - consumeOp(tokens, ']'); - return { - structure: 'array', - of: types - }; - } - function consumeTuple(tokens){ - var components; - components = []; - consumeOp(tokens, '('); - if (peek(tokens) === ')') { - throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead."); - } - for (;;) { - components.push(consumeTypes(tokens)); - maybeConsumeOp(tokens, ','); - if (')' === peek(tokens)) { - break; - } - } - consumeOp(tokens, ')'); - return { - structure: 'tuple', - of: components - }; - } - function consumeFields(tokens){ - var fields, subset, ref$, key, types; - fields = {}; - consumeOp(tokens, '{'); - subset = false; - for (;;) { - if (maybeConsumeOp(tokens, '...')) { - subset = true; - break; - } - ref$ = consumeField(tokens), key = ref$[0], types = ref$[1]; - fields[key] = types; - maybeConsumeOp(tokens, ','); - if ('}' === peek(tokens)) { - break; - } - } - consumeOp(tokens, '}'); - return { - structure: 'fields', - of: fields, - subset: subset - }; - } - function consumeField(tokens){ - var key, types; - key = consumeIdent(tokens); - consumeOp(tokens, ':'); - types = consumeTypes(tokens); - return [key, types]; - } - function maybeConsumeStructure(tokens){ - switch (tokens[0]) { - case '[': - return consumeArray(tokens); - case '(': - return consumeTuple(tokens); - case '{': - return consumeFields(tokens); - } - } - function consumeType(tokens){ - var token, wildcard, type, structure; - token = peek(tokens); - wildcard = token === '*'; - if (wildcard || identifierRegex.test(token)) { - type = wildcard - ? consumeOp(tokens, '*') - : consumeIdent(tokens); - structure = maybeConsumeStructure(tokens); - if (structure) { - return structure.type = type, structure; - } else { - return { - type: type - }; - } - } else { - structure = maybeConsumeStructure(tokens); - if (!structure) { - throw new Error("Unexpected character: " + token); - } - return structure; - } - } - function consumeTypes(tokens){ - var lookahead, types, typesSoFar, typeObj, type, structure; - if ('::' === peek(tokens)) { - throw new Error("No comment before comment separator '::' found."); - } - lookahead = tokens[1]; - if (lookahead != null && lookahead === '::') { - tokens.shift(); - tokens.shift(); - } - types = []; - typesSoFar = {}; - if ('Maybe' === peek(tokens)) { - tokens.shift(); - types = [ - { - type: 'Undefined' - }, { - type: 'Null' - } - ]; - typesSoFar = { - Undefined: true, - Null: true - }; - } - for (;;) { - typeObj = consumeType(tokens), type = typeObj.type, structure = typeObj.structure; - if (!typesSoFar[type]) { - types.push(typeObj); - } - if (structure == null) { - typesSoFar[type] = true; - } - if (!maybeConsumeOp(tokens, '|')) { - break; - } - } - return types; - } - tokenRegex = RegExp('\\.\\.\\.|::|->|' + identifierRegex.source + '|\\S', 'g'); - module.exports = function(input){ - var tokens, e; - if (!input.length) { - throw new Error('No type specified.'); - } - tokens = input.match(tokenRegex) || []; - if (in$('->', tokens)) { - throw new Error("Function types are not supported.\ To validate that something is a function, you may use 'Function'."); - } - try { - return consumeTypes(tokens); - } catch (e$) { - e = e$; - throw new Error(e.message + " - Remaining tokens: " + JSON.stringify(tokens) + " - Initial input: '" + input + "'"); - } - }; - function in$(x, xs){ - var i = -1, l = xs.length >>> 0; - while (++i < l) if (x === xs[i]) return true; - return false; - } -}).call(this); diff --git a/graphql/node_modules/type-check/package.json b/graphql/node_modules/type-check/package.json deleted file mode 100644 index 2a57ea06..00000000 --- a/graphql/node_modules/type-check/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "type-check", - "version": "0.4.0", - "author": "George Zahariev ", - "description": "type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.", - "homepage": "https://github.com/gkz/type-check", - "keywords": [ - "type", - "check", - "checking", - "library" - ], - "files": [ - "lib", - "README.md", - "LICENSE" - ], - "main": "./lib/", - "bugs": "https://github.com/gkz/type-check/issues", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/gkz/type-check.git" - }, - "scripts": { - "test": "make test" - }, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "devDependencies": { - "livescript": "^1.6.0", - "mocha": "^7.1.1", - "browserify": "^16.5.1" - } -} diff --git a/graphql/node_modules/typescript-eslint/LICENSE b/graphql/node_modules/typescript-eslint/LICENSE deleted file mode 100644 index a1164108..00000000 --- a/graphql/node_modules/typescript-eslint/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 typescript-eslint and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/graphql/node_modules/typescript-eslint/README.md b/graphql/node_modules/typescript-eslint/README.md deleted file mode 100644 index 3c078eae..00000000 --- a/graphql/node_modules/typescript-eslint/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `typescript-eslint` - -> Tooling which enables you to use TypeScript with ESLint - -[![NPM Version](https://img.shields.io/npm/v/typescript-eslint.svg?style=flat-square)](https://www.npmjs.com/package/typescript-eslint) -[![NPM Downloads](https://img.shields.io/npm/dm/typescript-eslint.svg?style=flat-square)](https://www.npmjs.com/package/typescript-eslint) - -👉 See **https://typescript-eslint.io/packages/typescript-eslint** for documentation on this package. - -> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code. - - diff --git a/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts b/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts deleted file mode 100644 index 28200408..00000000 --- a/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { TSESLint } from '@typescript-eslint/utils'; -export interface ConfigWithExtends extends TSESLint.FlatConfig.Config { - /** - * Allows you to "extend" a set of configs similar to `extends` from the - * classic configs. - * - * This is just a convenience short-hand to help reduce duplication. - * - * ```js - * export default tseslint.config({ - * files: ['** /*.ts'], - * extends: [ - * eslint.configs.recommended, - * ...tseslint.configs.recommended, - * ], - * rules: { - * '@typescript-eslint/array-type': 'error', - * '@typescript-eslint/consistent-type-imports': 'error', - * }, - * }) - * - * // expands to - * - * export default [ - * { - * ...eslint.configs.recommended, - * files: ['** /*.ts'], - * }, - * ...tseslint.configs.recommended.map(conf => ({ - * ...conf, - * files: ['** /*.ts'], - * })), - * { - * files: ['** /*.ts'], - * rules: { - * '@typescript-eslint/array-type': 'error', - * '@typescript-eslint/consistent-type-imports': 'error', - * }, - * }, - * ] - * ``` - */ - extends?: TSESLint.FlatConfig.ConfigArray; -} -/** - * Utility function to make it easy to strictly type your "Flat" config file - * @example - * ```js - * // @ts-check - * - * import eslint from '@eslint/js'; - * import tseslint from 'typescript-eslint'; - * - * export default tseslint.config( - * eslint.configs.recommended, - * ...tseslint.configs.recommended, - * { - * rules: { - * '@typescript-eslint/array-type': 'error', - * }, - * }, - * ); - * ``` - */ -export declare function config(...configs: ConfigWithExtends[]): TSESLint.FlatConfig.ConfigArray; -//# sourceMappingURL=config-helper.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts.map b/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts.map deleted file mode 100644 index 3a4dba61..00000000 --- a/graphql/node_modules/typescript-eslint/dist/config-helper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config-helper.d.ts","sourceRoot":"","sources":["../src/config-helper.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,WAAW,iBAAkB,SAAQ,QAAQ,CAAC,UAAU,CAAC,MAAM;IACnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CACpB,GAAG,OAAO,EAAE,iBAAiB,EAAE,GAC9B,QAAQ,CAAC,UAAU,CAAC,WAAW,CAoBjC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/config-helper.js b/graphql/node_modules/typescript-eslint/dist/config-helper.js deleted file mode 100644 index 202925e1..00000000 --- a/graphql/node_modules/typescript-eslint/dist/config-helper.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.config = config; -/** - * Utility function to make it easy to strictly type your "Flat" config file - * @example - * ```js - * // @ts-check - * - * import eslint from '@eslint/js'; - * import tseslint from 'typescript-eslint'; - * - * export default tseslint.config( - * eslint.configs.recommended, - * ...tseslint.configs.recommended, - * { - * rules: { - * '@typescript-eslint/array-type': 'error', - * }, - * }, - * ); - * ``` - */ -function config(...configs) { - return configs.flatMap(configWithExtends => { - const { extends: extendsArr, ...config } = configWithExtends; - if (extendsArr == null || extendsArr.length === 0) { - return config; - } - const extension = { - ...(config.files && { files: config.files }), - ...(config.ignores && { ignores: config.ignores }), - }; - return [ - ...extendsArr.map(conf => ({ - ...conf, - ...extension, - })), - config, - ]; - }); -} -//# sourceMappingURL=config-helper.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/config-helper.js.map b/graphql/node_modules/typescript-eslint/dist/config-helper.js.map deleted file mode 100644 index ba54692a..00000000 --- a/graphql/node_modules/typescript-eslint/dist/config-helper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config-helper.js","sourceRoot":"","sources":["../src/config-helper.ts"],"names":[],"mappings":";;AAoFA,wBAsBC;AA1CD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,MAAM,CACpB,GAAG,OAA4B;IAE/B,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;QACzC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,GAAG,iBAAiB,CAAC;QAC7D,IAAI,UAAU,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClD,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,SAAS,GAAG;YAChB,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;YAC5C,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;SACnD,CAAC;QAEF,OAAO;YACL,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,GAAG,IAAI;gBACP,GAAG,SAAS;aACb,CAAC,CAAC;YACH,MAAM;SACP,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts deleted file mode 100644 index aa288395..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=all.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts.map deleted file mode 100644 index 3b172b7f..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/all.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA6JE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/all.js b/graphql/node_modules/typescript-eslint/dist/configs/all.js deleted file mode 100644 index cad09de0..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/all.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/all', - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - 'class-methods-use-this': 'off', - '@typescript-eslint/class-methods-use-this': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - 'consistent-return': 'off', - '@typescript-eslint/consistent-return': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - '@typescript-eslint/consistent-type-exports': 'error', - '@typescript-eslint/consistent-type-imports': 'error', - 'default-param-last': 'off', - '@typescript-eslint/default-param-last': 'error', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/explicit-function-return-type': 'error', - '@typescript-eslint/explicit-member-accessibility': 'error', - '@typescript-eslint/explicit-module-boundary-types': 'error', - 'init-declarations': 'off', - '@typescript-eslint/init-declarations': 'error', - 'max-params': 'off', - '@typescript-eslint/max-params': 'error', - '@typescript-eslint/member-ordering': 'error', - '@typescript-eslint/method-signature-style': 'error', - '@typescript-eslint/naming-convention': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - 'no-dupe-class-members': 'off', - '@typescript-eslint/no-dupe-class-members': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-import-type-side-effects': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - 'no-invalid-this': 'off', - '@typescript-eslint/no-invalid-this': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - 'no-loop-func': 'off', - '@typescript-eslint/no-loop-func': 'error', - 'no-magic-numbers': 'off', - '@typescript-eslint/no-magic-numbers': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - 'no-redeclare': 'off', - '@typescript-eslint/no-redeclare': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - 'no-restricted-imports': 'off', - '@typescript-eslint/no-restricted-imports': 'error', - '@typescript-eslint/no-restricted-types': 'error', - 'no-shadow': 'off', - '@typescript-eslint/no-shadow': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error', - '@typescript-eslint/no-unnecessary-qualifier': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-use-before-define': 'off', - '@typescript-eslint/no-use-before-define': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-useless-empty-export': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/parameter-properties': 'error', - '@typescript-eslint/prefer-as-const': 'error', - 'prefer-destructuring': 'off', - '@typescript-eslint/prefer-destructuring': 'error', - '@typescript-eslint/prefer-enum-initializers': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-readonly': 'error', - '@typescript-eslint/prefer-readonly-parameter-types': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - '@typescript-eslint/promise-function-async': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - 'no-return-await': 'off', - '@typescript-eslint/return-await': 'error', - '@typescript-eslint/strict-boolean-expressions': 'error', - '@typescript-eslint/switch-exhaustiveness-check': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/typedef': 'error', - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, - }, -]; -//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/all.js.map b/graphql/node_modules/typescript-eslint/dist/configs/all.js.map deleted file mode 100644 index ca5f92ee..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"all.js","sourceRoot":"","sources":["../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AAE,OAAO;YAC1D,oCAAoC,EAAE,OAAO;YAC7C,oDAAoD,EAAE,OAAO;YAC7D,iDAAiD,EAAE,OAAO;YAC1D,uCAAuC,EAAE,OAAO;YAChD,4CAA4C,EAAE,OAAO;YACrD,mDAAmD,EAAE,OAAO;YAC5D,2CAA2C,EAAE,OAAO;YACpD,+CAA+C,EAAE,OAAO;YACxD,eAAe,EAAE,KAAK;YACtB,kCAAkC,EAAE,OAAO;YAC3C,2CAA2C,EAAE,OAAO;YACpD,kDAAkD,EAAE,OAAO;YAC3D,iBAAiB,EAAE,KAAK;YACxB,iCAAiC,EAAE,OAAO;YAC1C,+CAA+C,EAAE,OAAO;YACxD,gDAAgD,EAAE,OAAO;YACzD,2CAA2C,EAAE,OAAO;YACpD,4BAA4B,EAAE,OAAO;YACrC,mCAAmC,EAAE,OAAO;YAC5C,uCAAuC,EAAE,OAAO;YAChD,2DAA2D,EAAE,OAAO;SACrE;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts deleted file mode 100644 index 06628aaa..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.Config; -export default _default; -//# sourceMappingURL=base.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts.map deleted file mode 100644 index bceb1da3..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/base.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;GAIG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,MAAM;AAHpB,wBAYG"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/base.js b/graphql/node_modules/typescript-eslint/dist/configs/base.js deleted file mode 100644 index b31c3f24..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/base.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ -exports.default = (plugin, parser) => ({ - name: 'typescript-eslint/base', - languageOptions: { - parser, - sourceType: 'module', - }, - plugins: { - '@typescript-eslint': plugin, - }, -}); -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/base.js.map b/graphql/node_modules/typescript-eslint/dist/configs/base.js.map deleted file mode 100644 index b7b12761..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACN,EAAE,CAAC,CAAC;IACvB,IAAI,EAAE,wBAAwB;IAC9B,eAAe,EAAE;QACf,MAAM;QACN,UAAU,EAAE,QAAQ;KACrB;IACD,OAAO,EAAE;QACP,oBAAoB,EAAE,MAAM;KAC7B;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts deleted file mode 100644 index 446a037d..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ -declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config; -export default _default; -//# sourceMappingURL=disable-type-checked.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts.map deleted file mode 100644 index 852489d6..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"disable-type-checked.d.ts","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;GAGG;kCAEQ,UAAU,CAAC,MAAM,WACjB,UAAU,CAAC,MAAM,KACzB,UAAU,CAAC,MAAM;AAHpB,wBAgEG"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js b/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js deleted file mode 100644 index aa941b6f..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ -exports.default = (_plugin, _parser) => ({ - name: 'typescript-eslint/disable-type-checked', - rules: { - '@typescript-eslint/await-thenable': 'off', - '@typescript-eslint/consistent-return': 'off', - '@typescript-eslint/consistent-type-exports': 'off', - '@typescript-eslint/dot-notation': 'off', - '@typescript-eslint/naming-convention': 'off', - '@typescript-eslint/no-array-delete': 'off', - '@typescript-eslint/no-base-to-string': 'off', - '@typescript-eslint/no-confusing-void-expression': 'off', - '@typescript-eslint/no-duplicate-type-constituents': 'off', - '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-for-in-array': 'off', - '@typescript-eslint/no-implied-eval': 'off', - '@typescript-eslint/no-meaningless-void-operator': 'off', - '@typescript-eslint/no-misused-promises': 'off', - '@typescript-eslint/no-mixed-enums': 'off', - '@typescript-eslint/no-redundant-type-constituents': 'off', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off', - '@typescript-eslint/no-unnecessary-condition': 'off', - '@typescript-eslint/no-unnecessary-qualifier': 'off', - '@typescript-eslint/no-unnecessary-template-expression': 'off', - '@typescript-eslint/no-unnecessary-type-arguments': 'off', - '@typescript-eslint/no-unnecessary-type-assertion': 'off', - '@typescript-eslint/no-unnecessary-type-parameters': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-unsafe-enum-comparison': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-unary-minus': 'off', - '@typescript-eslint/non-nullable-type-assertion-style': 'off', - '@typescript-eslint/only-throw-error': 'off', - '@typescript-eslint/prefer-destructuring': 'off', - '@typescript-eslint/prefer-find': 'off', - '@typescript-eslint/prefer-includes': 'off', - '@typescript-eslint/prefer-nullish-coalescing': 'off', - '@typescript-eslint/prefer-optional-chain': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-readonly': 'off', - '@typescript-eslint/prefer-readonly-parameter-types': 'off', - '@typescript-eslint/prefer-reduce-type-parameter': 'off', - '@typescript-eslint/prefer-regexp-exec': 'off', - '@typescript-eslint/prefer-return-this-type': 'off', - '@typescript-eslint/prefer-string-starts-ends-with': 'off', - '@typescript-eslint/promise-function-async': 'off', - '@typescript-eslint/require-array-sort-compare': 'off', - '@typescript-eslint/require-await': 'off', - '@typescript-eslint/restrict-plus-operands': 'off', - '@typescript-eslint/restrict-template-expressions': 'off', - '@typescript-eslint/return-await': 'off', - '@typescript-eslint/strict-boolean-expressions': 'off', - '@typescript-eslint/switch-exhaustiveness-check': 'off', - '@typescript-eslint/unbound-method': 'off', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', - }, - languageOptions: { - parserOptions: { project: false, program: null, projectService: false }, - }, -}); -//# sourceMappingURL=disable-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js.map b/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js.map deleted file mode 100644 index 1fe8b3de..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/disable-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;AAItD;;;GAGG;AACH,kBAAe,CACb,OAA0B,EAC1B,OAA0B,EACP,EAAE,CAAC,CAAC;IACvB,IAAI,EAAE,wCAAwC;IAC9C,KAAK,EAAE;QACL,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,iCAAiC,EAAE,KAAK;QACxC,sCAAsC,EAAE,KAAK;QAC7C,oCAAoC,EAAE,KAAK;QAC3C,sCAAsC,EAAE,KAAK;QAC7C,i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QAC1C,2DAA2D,EAAE,KAAK;KACnE;IACD,eAAe,EAAE;QACf,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;KACxE;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts deleted file mode 100644 index f1d26320..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ -declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config; -export default _default; -//# sourceMappingURL=eslint-recommended.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts.map deleted file mode 100644 index 2a021e59..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslint-recommended.d.ts","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;;GAKG;kCAEQ,UAAU,CAAC,MAAM,WACjB,UAAU,CAAC,MAAM,KACzB,UAAU,CAAC,MAAM;AAHpB,wBAMG"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js b/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js deleted file mode 100644 index 449d4224..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const eslint_recommended_raw_1 = __importDefault(require("@typescript-eslint/eslint-plugin/use-at-your-own-risk/eslint-recommended-raw")); -/** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ -exports.default = (_plugin, _parser) => ({ - ...(0, eslint_recommended_raw_1.default)('minimatch'), - name: 'typescript-eslint/eslint-recommended', -}); -//# sourceMappingURL=eslint-recommended.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js.map b/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js.map deleted file mode 100644 index fd4d02c9..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/eslint-recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";;;;;AAAA,0IAAkG;AAGlG;;;;;GAKG;AACH,kBAAe,CACb,OAA0B,EAC1B,OAA0B,EACP,EAAE,CAAC,CAAC;IACvB,GAAG,IAAA,gCAAM,EAAC,WAAW,CAAC;IACtB,IAAI,EAAE,sCAAsC;CAC7C,CAAC,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts deleted file mode 100644 index 154c5b96..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=recommended-type-checked-only.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts.map deleted file mode 100644 index e5d5e5ec..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked-only.d.ts","sourceRoot":"","sources":["../../src/configs/recommended-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAsCE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js deleted file mode 100644 index 9c5040cd..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/recommended-type-checked-only', - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - '@typescript-eslint/unbound-method': 'error', - }, - }, -]; -//# sourceMappingURL=recommended-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js.map deleted file mode 100644 index 565983a1..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,iDAAiD;QACvD,KAAK,EAAE;YACL,mCAAmC,EAAE,OAAO;YAC5C,oCAAoC,EAAE,OAAO;YAC7C,sCAAsC,EAAE,OAAO;YAC/C,mDAAmD,EAAE,OAAO;YAC5D,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,iBAAiB,EAAE,KAAK;YACxB,oCAAoC,EAAE,OAAO;YAC7C,wCAAwC,EAAE,OAAO;YACjD,mDAAmD,EAAE,OAAO;YAC5D,kDAAkD,EAAE,OAAO;YAC3D,uCAAuC,EAAE,OAAO;YAChD,yCAAyC,EAAE,OAAO;YAClD,mCAAmC,EAAE,OAAO;YAC5C,8CAA8C,EAAE,OAAO;YACvD,4CAA4C,EAAE,OAAO;YACrD,qCAAqC,EAAE,OAAO;YAC9C,0CAA0C,EAAE,OAAO;YACnD,kBAAkB,EAAE,KAAK;YACzB,qCAAqC,EAAE,OAAO;YAC9C,8BAA8B,EAAE,KAAK;YACrC,iDAAiD,EAAE,OAAO;YAC1D,eAAe,EAAE,KAAK;YACtB,kCAAkC,EAAE,OAAO;YAC3C,2CAA2C,EAAE,OAAO;YACpD,kDAAkD,EAAE,OAAO;YAC3D,mCAAmC,EAAE,OAAO;SAC7C;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts deleted file mode 100644 index eff1bb91..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=recommended-type-checked.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts.map deleted file mode 100644 index c46d8f81..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked.d.ts","sourceRoot":"","sources":["../../src/configs/recommended-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA6DE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js deleted file mode 100644 index 6d2027bc..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/recommended-type-checked', - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unbound-method': 'error', - }, - }, -]; -//# sourceMappingURL=recommended-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js.map deleted file mode 100644 index 3f82c89c..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-type-checked.js","sourceRoot":"","sources":["../../src/configs/recommended-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,4CAA4C;QAClD,KAAK,EAAE;YACL,mCAAmC,EAAE,OAAO;YAC5C,mCAAmC,EAAE,OAAO;YAC5C,sBAAsB,EAAE,KAAK;YAC7B,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,sCAAsC,EAAE,OAAO;YAC/C,6CAA6C,EAAE,OAAO;YACtD,mDAA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phql/node_modules/typescript-eslint/dist/configs/recommended.d.ts deleted file mode 100644 index a4e4e4c1..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=recommended.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts.map deleted file mode 100644 index d1c3215e..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAkCE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended.js b/graphql/node_modules/typescript-eslint/dist/configs/recommended.js deleted file mode 100644 index 091e88bf..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/recommended', - rules: { - '@typescript-eslint/ban-ts-comment': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - }, - }, -]; -//# sourceMappingURL=recommended.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/recommended.js.map b/graphql/node_modules/typescript-eslint/dist/configs/recommended.js.map deleted file mode 100644 index 3e48eb95..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,+BAA+B;QACrC,KAAK,EAAE;YACL,mCAAmC,EAAE,OAAO;YAC5C,sBAAsB,EAAE,KAAK;YAC7B,yCAAyC,EAAE,OAAO;YAClD,6CAA6C,EAAE,OAAO;YACtD,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,gDAAgD,EAAE,OAAO;YACzD,mCAAmC,EAAE,OAAO;YAC5C,iCAAiC,EAAE,OAAO;YAC1C,wDAAwD,EAAE,OAAO;YACjE,uCAAuC,EAAE,OAAO;YAChD,kCAAkC,EAAE,OAAO;YAC3C,mDAAmD,EAAE,OAAO;YAC5D,kDAAkD,EAAE,OAAO;YAC3D,4CAA4C,EAAE,OAAO;YACrD,uBAAuB,EAAE,KAAK;YAC9B,0CAA0C,EAAE,OAAO;YACnD,gBAAgB,EAAE,KAAK;YACvB,mCAAmC,EAAE,OAAO;YAC5C,4CAA4C,EAAE,OAAO;YACrD,oCAAoC,EAAE,OAAO;YAC7C,6CAA6C,EAAE,OAAO;YACtD,2CAA2C,EAAE,OAAO;SACrD;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts deleted file mode 100644 index c23c69e6..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=strict-type-checked-only.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts.map deleted file mode 100644 index fc7e612e..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../src/configs/strict-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAyEE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js deleted file mode 100644 index 21caaf28..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/strict-type-checked-only', - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumberAndString: false, - allowRegExp: false, - }, - ], - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumber: false, - allowRegExp: false, - allowNever: false, - }, - ], - 'no-return-await': 'off', - '@typescript-eslint/return-await': [ - 'error', - 'error-handling-correctness-only', - ], - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, - }, -]; -//# sourceMappingURL=strict-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js.map b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js.map deleted file mode 100644 index aaba299a..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,4CAA4C;QAClD,KAAK,EAAE;YACL,mCAAmC,EAAE,OAAO;YAC5C,oCAAoC,EAAE,OAAO;YAC7C,sCAAsC,EAAE,OAAO;YAC/C,iDAAiD,EAAE,OAAO;YAC1D,mDAAmD,EAAE,OAAO;YAC5D,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,iBAAiB,EAAE,KAAK;YACxB,oCAAoC,EAAE,OAAO;YAC7C,iDAAiD,EAAE,OAAO;YAC1D,wCAAwC,EAAE,OAAO;YACjD,mCAAmC,EAAE,OAAO;YAC5C,mDAAmD,EAAE,OAAO;YAC5D,2DAA2D,EAAE,OAAO;YACpE,6CAA6C,EAAE,OAAO;YACtD,uDAAuD,EAAE,OAAO;YAChE,kDAAkD,EAAE,OAAO;YAC3D,kDAAkD,EAAE,OAAO;YAC3D,mDAAmD,EAAE,OAAO;YAC5D,uCAAuC,EAAE,OAAO;YAChD,yCAAyC,EAAE,OAAO;YAClD,mCAAmC,EAAE,OAAO;YAC5C,8CAA8C,EAAE,OAAO;YACvD,4CAA4C,EAAE,OAAO;YACrD,qCAAqC,EAAE,OAAO;YAC9C,0CAA0C,EAAE,OAAO;YACnD,kBAAkB,EAAE,KAAK;YACzB,qCAAqC,EAAE,OAAO;YAC9C,8BAA8B,EAAE,KAAK;YACrC,iDAAiD,EAAE,OAAO;YAC1D,iDAAiD,EAAE,OAAO;YAC1D,4CAA4C,EAAE,OAAO;YACrD,eAAe,EAAE,KAAK;YACtB,kCAAkC,EAAE,OAAO;YAC3C,2CAA2C,EAAE;gBAC3C,OAAO;gBACP;oBACE,QAAQ,EAAE,KAAK;oBACf,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,KAAK;oBAC3B,WAAW,EAAE,KAAK;iBACnB;aACF;YACD,kDAAkD,EAAE;gBAClD,OAAO;gBACP;oBACE,QAAQ,EAAE,KAAK;oBACf,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;oBACnB,WAAW,EAAE,KAAK;oBAClB,WAAW,EAAE,KAAK;oBAClB,UAAU,EAAE,KAAK;iBAClB;aACF;YACD,iBAAiB,EAAE,KAAK;YACxB,iCAAiC,EAAE;gBACjC,OAAO;gBACP,iCAAiC;aAClC;YACD,mCAAmC,EAAE,OAAO;YAC5C,2DAA2D,EAAE,OAAO;SACrE;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts deleted file mode 100644 index d40726dd..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=strict-type-checked.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts.map deleted file mode 100644 index 851e004a..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../src/configs/strict-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA4GE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js deleted file mode 100644 index 09267ff3..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/strict-type-checked', - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': [ - 'error', - { minimumDescriptionLength: 10 }, - ], - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-array-delete': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-template-expression': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unnecessary-type-parameters': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - '@typescript-eslint/no-unsafe-unary-minus': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/only-throw-error': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumberAndString: false, - allowRegExp: false, - }, - ], - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { - allowAny: false, - allowBoolean: false, - allowNullish: false, - allowNumber: false, - allowRegExp: false, - allowNever: false, - }, - ], - 'no-return-await': 'off', - '@typescript-eslint/return-await': [ - 'error', - 'error-handling-correctness-only', - ], - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'error', - }, - }, -]; -//# sourceMappingURL=strict-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js.map b/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js.map deleted file mode 100644 index ba5132db..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-type-checked.js","sourceRoot":"","sources":["../../src/configs/strict-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,uCAAuC;QAC7C,KAAK,EAAE;YACL,mCAAmC,EAAE,OAAO;YAC5C,mCAAmC,EAAE;gBACnC,OAAO;gBACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;aACjC;YACD,sBAAsB,EAAE,KAAK;YAC7B,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,sCAAsC,EAAE,OAAO;YAC/C,iDAAiD,EAAE,OAAO;YAC1D,6CAA6C,EAAE,OAAO;YACtD,mDAAmD,EAAE,OAAO;YAC5D,sCAAsC,EAAE,OAAO;YAC/C,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,gDAAgD,EAAE,OAAO;YACzD,wCAAwC,EAAE,OAAO;YACjD,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,iBAAiB,EAAE,KAAK;YACxB,oCAAoC,EAAE,OAAO;YAC7C,yCAAyC,EAAE,OAAO;YAClD,iDAAiD,EAA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BACP;oBACE,QAAQ,EAAE,KAAK;oBACf,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,KAAK;oBAC3B,WAAW,EAAE,KAAK;iBACnB;aACF;YACD,kDAAkD,EAAE;gBAClD,OAAO;gBACP;oBACE,QAAQ,EAAE,KAAK;oBACf,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;oBACnB,WAAW,EAAE,KAAK;oBAClB,WAAW,EAAE,KAAK;oBAClB,UAAU,EAAE,KAAK;iBAClB;aACF;YACD,iBAAiB,EAAE,KAAK;YACxB,iCAAiC,EAAE;gBACjC,OAAO;gBACP,iCAAiC;aAClC;YACD,2CAA2C,EAAE,OAAO;YACpD,mCAAmC,EAAE,OAAO;YAC5C,uCAAuC,EAAE,OAAO;YAChD,2DAA2D,EAAE,OAAO;SACrE;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts deleted file mode 100644 index e4fc5d4e4..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=strict.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts.map deleted file mode 100644 index 0b51a3f4..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict.d.ts","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA8CE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict.js b/graphql/node_modules/typescript-eslint/dist/configs/strict.js deleted file mode 100644 index f8e15aa7..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/strict', - rules: { - '@typescript-eslint/ban-ts-comment': [ - 'error', - { minimumDescriptionLength: 10 }, - ], - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-function-type': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-wrapper-object-types': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/unified-signatures': 'error', - }, - }, -]; -//# sourceMappingURL=strict.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/strict.js.map b/graphql/node_modules/typescript-eslint/dist/configs/strict.js.map deleted file mode 100644 index 55ecdb27..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/strict.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE;YACL,mCAAmC,EAAE;gBACnC,OAAO;gBACP,EAAE,wBAAwB,EAAE,EAAE,EAAE;aACjC;YACD,sBAAsB,EAAE,KAAK;YAC7B,yCAAyC,EAAE,OAAO;YAClD,6CAA6C,EAAE,OAAO;YACtD,sCAAsC,EAAE,OAAO;YAC/C,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,gDAAgD,EAAE,OAAO;YACzD,wCAAwC,EAAE,OAAO;YACjD,yCAAyC,EAAE,OAAO;YAClD,mCAAmC,EAAE,OAAO;YAC5C,iCAAiC,EAAE,OAAO;YAC1C,4DAA4D,EAAE,OAAO;YACrE,wDAAwD,EAAE,OAAO;YACjE,0CAA0C,EAAE,OAAO;YACnD,uCAAuC,EAAE,OAAO;YAChD,kCAAkC,EAAE,OAAO;YAC3C,mDAAmD,EAAE,OAAO;YAC5D,kDAAkD,EAAE,OAAO;YAC3D,4CAA4C,EAAE,OAAO;YACrD,uBAAuB,EAAE,KAAK;YAC9B,0CAA0C,EAAE,OAAO;YACnD,gBAAgB,EAAE,KAAK;YACvB,mCAAmC,EAAE,OAAO;YAC5C,wBAAwB,EAAE,KAAK;YAC/B,2CAA2C,EAAE,OAAO;YACpD,4CAA4C,EAAE,OAAO;YACrD,oCAAoC,EAAE,OAAO;YAC7C,+CAA+C,EAAE,OAAO;YACxD,6CAA6C,EAAE,OAAO;YACtD,2CAA2C,EAAE,OAAO;YACpD,uCAAuC,EAAE,OAAO;SACjD;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts deleted file mode 100644 index 220782c3..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=stylistic-type-checked-only.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts.map deleted file mode 100644 index 977124e3..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked-only.d.ts","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAoBE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js deleted file mode 100644 index 302f2eef..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/stylistic-type-checked-only', - rules: { - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - }, - }, -]; -//# sourceMappingURL=stylistic-type-checked-only.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js.map deleted file mode 100644 index 361521e2..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked-only.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked-only.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked-only.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,+CAA+C;QACrD,KAAK,EAAE;YACL,cAAc,EAAE,KAAK;YACrB,iCAAiC,EAAE,OAAO;YAC1C,sDAAsD,EAAE,OAAO;YAC/D,gCAAgC,EAAE,OAAO;YACzC,oCAAoC,EAAE,OAAO;YAC7C,8CAA8C,EAAE,OAAO;YACvD,0CAA0C,EAAE,OAAO;YACnD,uCAAuC,EAAE,OAAO;YAChD,mDAAmD,EAAE,OAAO;SAC7D;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts deleted file mode 100644 index 0df5ad04..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=stylistic-type-checked.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts.map deleted file mode 100644 index 3674779c..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked.d.ts","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAkCE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js deleted file mode 100644 index e15d2d85..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/stylistic-type-checked', - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - '@typescript-eslint/prefer-find': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - }, - }, -]; -//# sourceMappingURL=stylistic-type-checked.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js.map deleted file mode 100644 index ca2b7e2a..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic-type-checked.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic-type-checked.js","sourceRoot":"","sources":["../../src/configs/stylistic-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,0CAA0C;QAChD,KAAK,EAAE;YACL,iDAAiD,EAAE,OAAO;YAC1D,+BAA+B,EAAE,OAAO;YACxC,uCAAuC,EAAE,OAAO;YAChD,iDAAiD,EAAE,OAAO;YAC1D,oDAAoD,EAAE,OAAO;YAC7D,oDAAoD,EAAE,OAAO;YAC7D,+CAA+C,EAAE,OAAO;YACxD,gDAAgD,EAAE,OAAO;YACzD,cAAc,EAAE,KAAK;YACrB,iCAAiC,EAAE,OAAO;YAC1C,oDAAoD,EAAE,OAAO;YAC7D,mBAAmB,EAAE,KAAK;YAC1B,sCAAsC,EAAE,OAAO;YAC/C,wCAAwC,EAAE,OAAO;YACjD,sDAAsD,EAAE,OAAO;YAC/D,gCAAgC,EAAE,OAAO;YACzC,kCAAkC,EAAE,OAAO;YAC3C,yCAAyC,EAAE,OAAO;YAClD,oCAAoC,EAAE,OAAO;YAC7C,8CAA8C,EAAE,OAAO;YACvD,0CAA0C,EAAE,OAAO;YACnD,uCAAuC,EAAE,OAAO;YAChD,mDAAmD,EAAE,OAAO;SAC7D;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts b/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts deleted file mode 100644 index 99730bf8..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint'; -/** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ -declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray; -export default _default; -//# sourceMappingURL=stylistic.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts.map deleted file mode 100644 index 04691e64..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/configs/stylistic.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;iCAEO,UAAU,CAAC,MAAM,UACjB,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAyBE"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js b/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js deleted file mode 100644 index deb6708c..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// SEE https://typescript-eslint.io/users/configs -// -// For developers working in the typescript-eslint monorepo: -// You can regenerate it using `yarn generate:configs` -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const base_1 = __importDefault(require("./base")); -const eslint_recommended_1 = __importDefault(require("./eslint-recommended")); -/** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ -exports.default = (plugin, parser) => [ - (0, base_1.default)(plugin, parser), - (0, eslint_recommended_1.default)(plugin, parser), - { - name: 'typescript-eslint/stylistic', - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - }, - }, -]; -//# sourceMappingURL=stylistic.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js.map b/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js.map deleted file mode 100644 index 34ea0d10..00000000 --- a/graphql/node_modules/typescript-eslint/dist/configs/stylistic.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/configs/stylistic.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;;;;;AAItD,kDAAgC;AAChC,8EAA2D;AAE3D;;;GAGG;AACH,kBAAe,CACb,MAAyB,EACzB,MAAyB,EACD,EAAE,CAAC;IAC3B,IAAA,cAAU,EAAC,MAAM,EAAE,MAAM,CAAC;IAC1B,IAAA,4BAAuB,EAAC,MAAM,EAAE,MAAM,CAAC;IACvC;QACE,IAAI,EAAE,6BAA6B;QACnC,KAAK,EAAE;YACL,iDAAiD,EAAE,OAAO;YAC1D,+BAA+B,EAAE,OAAO;YACxC,uCAAuC,EAAE,OAAO;YAChD,iDAAiD,EAAE,OAAO;YAC1D,oDAAoD,EAAE,OAAO;YAC7D,oDAAoD,EAAE,OAAO;YAC7D,+CAA+C,EAAE,OAAO;YACxD,gDAAgD,EAAE,OAAO;YACzD,oDAAoD,EAAE,OAAO;YAC7D,mBAAmB,EAAE,KAAK;YAC1B,sCAAsC,EAAE,OAAO;YAC/C,wCAAwC,EAAE,OAAO;YACjD,kCAAkC,EAAE,OAAO;YAC3C,yCAAyC,EAAE,OAAO;SACnD;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/index.d.ts b/graphql/node_modules/typescript-eslint/dist/index.d.ts deleted file mode 100644 index 7e162251..00000000 --- a/graphql/node_modules/typescript-eslint/dist/index.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -import type { TSESLint } from '@typescript-eslint/utils'; -import type { ConfigWithExtends } from './config-helper'; -import { config } from './config-helper'; -declare const parser: TSESLint.FlatConfig.Parser; -declare const plugin: TSESLint.FlatConfig.Plugin; -declare const configs: { - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: TSESLint.FlatConfig.ConfigArray; - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: TSESLint.FlatConfig.Config; - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: TSESLint.FlatConfig.Config; - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: TSESLint.FlatConfig.Config; - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; -}; -export type Config = TSESLint.FlatConfig.ConfigFile; -export type { ConfigWithExtends }; -declare const _default: { - config: typeof config; - configs: { - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: TSESLint.FlatConfig.ConfigArray; - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: TSESLint.FlatConfig.Config; - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: TSESLint.FlatConfig.Config; - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: TSESLint.FlatConfig.Config; - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: TSESLint.FlatConfig.ConfigArray; - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: TSESLint.FlatConfig.ConfigArray; - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: TSESLint.FlatConfig.ConfigArray; - }; - parser: { - meta?: { [K in keyof TSESLint.Parser.ParserMeta]?: TSESLint.Parser.ParserMeta[K] | undefined; }; - parseForESLint(text: string, options?: unknown): { [k in keyof TSESLint.Parser.ParseResult]: unknown; }; - }; - plugin: TSESLint.FlatConfig.Plugin; -}; -export default _default; -export { config, configs, parser, plugin }; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/index.d.ts.map b/graphql/node_modules/typescript-eslint/dist/index.d.ts.map deleted file mode 100644 index faeb815b..00000000 --- a/graphql/node_modules/typescript-eslint/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAezC,QAAA,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGjC,CAAC;AAyBF,QAAA,MAAM,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,MAGjC,CAAC;AAEF,QAAA,MAAM,OAAO;IACX;;;OAGG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;CAEJ,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,CAAC;;;;QAnFhC;;;WAGG;;QAGH;;;;WAIG;;QAGH;;;WAGG;;QAGH;;;;;WAKG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;;;wDA9GQ,CAAC;;;;;AA6Jd,wBAKE;AACF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/index.js b/graphql/node_modules/typescript-eslint/dist/index.js deleted file mode 100644 index 3b791cfa..00000000 --- a/graphql/node_modules/typescript-eslint/dist/index.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.plugin = exports.parser = exports.configs = exports.config = void 0; -const eslint_plugin_1 = __importDefault(require("@typescript-eslint/eslint-plugin")); -const parserBase = __importStar(require("@typescript-eslint/parser")); -const config_helper_1 = require("./config-helper"); -Object.defineProperty(exports, "config", { enumerable: true, get: function () { return config_helper_1.config; } }); -const all_1 = __importDefault(require("./configs/all")); -const base_1 = __importDefault(require("./configs/base")); -const disable_type_checked_1 = __importDefault(require("./configs/disable-type-checked")); -const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended")); -const recommended_1 = __importDefault(require("./configs/recommended")); -const recommended_type_checked_1 = __importDefault(require("./configs/recommended-type-checked")); -const recommended_type_checked_only_1 = __importDefault(require("./configs/recommended-type-checked-only")); -const strict_1 = __importDefault(require("./configs/strict")); -const strict_type_checked_1 = __importDefault(require("./configs/strict-type-checked")); -const strict_type_checked_only_1 = __importDefault(require("./configs/strict-type-checked-only")); -const stylistic_1 = __importDefault(require("./configs/stylistic")); -const stylistic_type_checked_1 = __importDefault(require("./configs/stylistic-type-checked")); -const stylistic_type_checked_only_1 = __importDefault(require("./configs/stylistic-type-checked-only")); -const parser = { - meta: parserBase.meta, - parseForESLint: parserBase.parseForESLint, -}; -exports.parser = parser; -/* -we could build a plugin object here without the `configs` key - but if we do -that then we create a situation in which -``` -require('typescript-eslint').plugin !== require('@typescript-eslint/eslint-plugin') -``` - -This is bad because it means that 3rd party configs would be required to use -`typescript-eslint` or else they would break a user's config if the user either -used `tseslint.configs.recomended` et al or -``` -{ - plugins: { - '@typescript-eslint': tseslint.plugin, - }, -} -``` - -This might be something we could consider okay (eg 3rd party flat configs must -use our new package); however legacy configs consumed via `@eslint/eslintrc` -would never be able to satisfy this constraint and thus users would be blocked -from using them. -*/ -const plugin = eslint_plugin_1.default; -exports.plugin = plugin; -const configs = { - /** - * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured. - * @see {@link https://typescript-eslint.io/users/configs#all} - */ - all: (0, all_1.default)(plugin, parser), - /** - * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint. - * We don't recommend using this directly; instead, extend from an earlier recommended rule. - * @see {@link https://typescript-eslint.io/users/configs#base} - */ - base: (0, base_1.default)(plugin, parser), - /** - * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project. - * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked} - */ - disableTypeChecked: (0, disable_type_checked_1.default)(plugin, parser), - /** - * This is a compatibility ruleset that: - * - disables rules from eslint:recommended which are already handled by TypeScript. - * - enables rules that make sense due to TS's typechecking / transpilation. - * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended} - */ - eslintRecommended: (0, eslint_recommended_1.default)(plugin, parser), - /** - * Recommended rules for code correctness that you can drop in without additional configuration. - * @see {@link https://typescript-eslint.io/users/configs#recommended} - */ - recommended: (0, recommended_1.default)(plugin, parser), - /** - * Contains all of `recommended` along with additional recommended rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked} - */ - recommendedTypeChecked: (0, recommended_type_checked_1.default)(plugin, parser), - /** - * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only} - */ - recommendedTypeCheckedOnly: (0, recommended_type_checked_only_1.default)(plugin, parser), - /** - * Contains all of `recommended`, as well as additional strict rules that can also catch bugs. - * @see {@link https://typescript-eslint.io/users/configs#strict} - */ - strict: (0, strict_1.default)(plugin, parser), - /** - * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked} - */ - strictTypeChecked: (0, strict_type_checked_1.default)(plugin, parser), - /** - * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only} - */ - strictTypeCheckedOnly: (0, strict_type_checked_only_1.default)(plugin, parser), - /** - * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic. - * @see {@link https://typescript-eslint.io/users/configs#stylistic} - */ - stylistic: (0, stylistic_1.default)(plugin, parser), - /** - * Contains all of `stylistic`, along with additional stylistic rules that require type information. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked} - */ - stylisticTypeChecked: (0, stylistic_type_checked_1.default)(plugin, parser), - /** - * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules. - * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only} - */ - stylisticTypeCheckedOnly: (0, stylistic_type_checked_only_1.default)(plugin, parser), -}; -exports.configs = configs; -/* -we do both a default and named exports to allow people to use this package from -both CJS and ESM in very natural ways. - -EG it means that all of the following are valid: - -```ts -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - ...tseslint.configs.recommended, -); -``` -```ts -import { config, parser, plugin } from 'typescript-eslint'; - -export default config( - { - languageOptions: { parser } - plugins: { ts: plugin }, - } -); -``` -```ts -const tseslint = require('typescript-eslint'); - -module.exports = tseslint.config( - ...tseslint.configs.recommended, -); -``` -```ts -const { config, parser, plugin } = require('typescript-eslint'); - -module.exports = config( - { - languageOptions: { parser } - plugins: { ts: plugin }, - } -); -``` -*/ -exports.default = { - config: config_helper_1.config, - configs, - parser, - plugin, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/dist/index.js.map b/graphql/node_modules/typescript-eslint/dist/index.js.map deleted file mode 100644 index 4da1f94b..00000000 --- a/graphql/node_modules/typescript-eslint/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAA0D;AAC1D,sEAAwD;AAKxD,mDAAyC;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,EAAE,MAAM,CAAC;IAElE;;;OAGG;IACH,SAAS,EAAE,IAAA,mBAAe,EAAC,MAAM,EAAE,MAAM,CAAC;IAE1C;;;OAGG;IACH,oBAAoB,EAAE,IAAA,gCAA0B,EAAC,MAAM,EAAE,MAAM,CAAC;IAEhE;;;OAGG;IACH,wBAAwB,EAAE,IAAA,qCAA8B,EAAC,MAAM,EAAE,MAAM,CAAC;CACzE,CAAC;AAmDe,0BAAO;AA/CxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCE;AACF,kBAAe;IACb,MAAM,EAAN,sBAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;CACP,CAAC"} \ No newline at end of file diff --git a/graphql/node_modules/typescript-eslint/package.json b/graphql/node_modules/typescript-eslint/package.json deleted file mode 100644 index c440728c..00000000 --- a/graphql/node_modules/typescript-eslint/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "name": "typescript-eslint", - "version": "8.1.0", - "description": "Tooling which enables you to use TypeScript with ESLint", - "files": [ - "dist", - "_ts4.3", - "README.md", - "LICENSE" - ], - "type": "commonjs", - "exports": { - ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./package.json": "./package.json" - }, - "types": "./dist/index.d.ts", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/typescript-eslint/typescript-eslint.git", - "directory": "packages/typescript-eslint" - }, - "bugs": { - "url": "https://github.com/typescript-eslint/typescript-eslint/issues" - }, - "homepage": "https://typescript-eslint.io/packages/typescript-eslint", - "license": "MIT", - "keywords": [ - "ast", - "ecmascript", - "javascript", - "typescript", - "parser", - "syntax", - "eslint", - "eslintplugin", - "eslint-plugin" - ], - "scripts": { - "build": "tsc -b tsconfig.build.json", - "postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3", - "clean": "tsc -b tsconfig.build.json --clean", - "postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage", - "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", - "lint": "nx lint", - "test": "jest --coverage --passWithNoTests", - "typecheck": "tsc --noEmit" - }, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.1.0", - "@typescript-eslint/parser": "8.1.0", - "@typescript-eslint/utils": "8.1.0" - }, - "devDependencies": { - "@jest/types": "29.6.3", - "downlevel-dts": "*", - "jest": "29.7.0", - "prettier": "^3.2.5", - "rimraf": "*", - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "typesVersions": { - "<4.7": { - "*": [ - "_ts4.3/*" - ] - } - } -} diff --git a/graphql/node_modules/typescript/LICENSE.txt b/graphql/node_modules/typescript/LICENSE.txt deleted file mode 100644 index 8746124b..00000000 --- a/graphql/node_modules/typescript/LICENSE.txt +++ /dev/null @@ -1,55 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS diff --git a/graphql/node_modules/typescript/README.md b/graphql/node_modules/typescript/README.md deleted file mode 100644 index 3314c58f..00000000 --- a/graphql/node_modules/typescript/README.md +++ /dev/null @@ -1,50 +0,0 @@ - -# TypeScript - -[![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) -[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) -[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) -[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript/badge)](https://securityscorecards.dev/viewer/?uri=github.com/microsoft/TypeScript) - - -[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript). - -Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/). - -## Installing - -For the latest stable version: - -```bash -npm install -D typescript -``` - -For our nightly builds: - -```bash -npm install -D typescript@next -``` - -## Contribute - -There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript. -* [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript). -* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript). -* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md). - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see -the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) -with any additional questions or comments. - -## Documentation - -* [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) -* [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html) -* [Homepage](https://www.typescriptlang.org/) - -## Roadmap - -For details on our planned features and future direction, please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap). diff --git a/graphql/node_modules/typescript/SECURITY.md b/graphql/node_modules/typescript/SECURITY.md deleted file mode 100644 index b3c89efc..00000000 --- a/graphql/node_modules/typescript/SECURITY.md +++ /dev/null @@ -1,41 +0,0 @@ - - -## Security - -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below. - -## Reporting Security Issues - -**Please do not report security vulnerabilities through public GitHub issues.** - -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). - -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp). - -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). - -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: - - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue - -This information will help us triage your report more quickly. - -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs. - -## Preferred Languages - -We prefer all communications to be in English. - -## Policy - -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd). - - diff --git a/graphql/node_modules/typescript/ThirdPartyNoticeText.txt b/graphql/node_modules/typescript/ThirdPartyNoticeText.txt deleted file mode 100644 index a857fb3c..00000000 --- a/graphql/node_modules/typescript/ThirdPartyNoticeText.txt +++ /dev/null @@ -1,193 +0,0 @@ -/*!----------------- TypeScript ThirdPartyNotices ------------------------------------------------------- - -The TypeScript software incorporates third party material from the projects listed below. The original copyright notice and the license under which Microsoft received such third party material are set forth below. Microsoft reserves all other rights not expressly granted, whether by implication, estoppel or otherwise. - ---------------------------------------------- -Third Party Code Components --------------------------------------------- - -------------------- DefinitelyTyped -------------------- -This file is based on or incorporates material from the projects listed below (collectively "Third Party Code"). Microsoft is not the original author of the Third Party Code. The original copyright notice and the license, under which Microsoft received such Third Party Code, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft, not the third party, licenses the Third Party Code to you under the terms set forth in the EULA for the Microsoft Product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. -DefinitelyTyped -This project is licensed under the MIT license. Copyrights are respective of each contributor listed at the beginning of each definition file. Provided for Informational Purposes Only - -MIT License -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------------------------------------------------------------------- - -------------------- Unicode -------------------- -UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE - -Unicode Data Files include all data files under the directories -http://www.unicode.org/Public/, http://www.unicode.org/reports/, -http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and -http://www.unicode.org/utility/trac/browser/. - -Unicode Data Files do not include PDF online code charts under the -directory http://www.unicode.org/Public/. - -Software includes any source code published in the Unicode Standard -or under the directories -http://www.unicode.org/Public/, http://www.unicode.org/reports/, -http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and -http://www.unicode.org/utility/trac/browser/. - -NOTICE TO USER: Carefully read the following legal agreement. -BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S -DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), -YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE -TERMS AND CONDITIONS OF THIS AGREEMENT. -IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE -THE DATA FILES OR SOFTWARE. - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1991-2017 Unicode, Inc. All rights reserved. -Distributed under the Terms of Use in http://www.unicode.org/copyright.html. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Unicode data files and any associated documentation -(the "Data Files") or Unicode software and any associated documentation -(the "Software") to deal in the Data Files or Software -without restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, and/or sell copies of -the Data Files or Software, and to permit persons to whom the Data Files -or Software are furnished to do so, provided that either -(a) this copyright and permission notice appear with all copies -of the Data Files or Software, or -(b) this copyright and permission notice appear in associated -Documentation. - -THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT OF THIRD PARTY RIGHTS. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS -NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL -DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, -DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THE DATA FILES OR SOFTWARE. - -Except as contained in this notice, the name of a copyright holder -shall not be used in advertising or otherwise to promote the sale, -use or other dealings in these Data Files or Software without prior -written authorization of the copyright holder. -------------------------------------------------------------------------------------- - --------------------Document Object Model----------------------------- -DOM - -W3C License -This work is being provided by the copyright holders under the following license. -By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. -Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following -on ALL copies of the work or portions thereof, including modifications: -* The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. -* Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included. -* Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived -from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)." -Disclaimers -THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR -FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. -COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT. -The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. -Title to copyright in this work will at all times remain with copyright holders. - ---------- - -DOM -Copyright © 2018 WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License: Attribution 4.0 International -======================================================================= -Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. Using Creative Commons Public Licenses Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: - -wiki.creativecommons.org/Considerations_for_licensors Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More_considerations for the public: wiki.creativecommons.org/Considerations_for_licensees ======================================================================= -Creative Commons Attribution 4.0 International Public License By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. Section 1 -- Definitions. a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. Section 2 -- Scope. a. License grant. 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: a. reproduce and Share the Licensed Material, in whole or in part; and b. produce, reproduce, and Share Adapted Material. 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 3. Term. The term of this Public License is specified in Section 6(a). 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material. 5. Downstream recipients. a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. b. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). b. Other rights. 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 2. Patent and trademark rights are not licensed under this Public License. 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. Section 3 -- License Conditions. Your exercise of the Licensed Rights is expressly made subject to the following conditions. a. Attribution. 1. If You Share the Licensed Material (including in modified form), You must: a. retain the following if it is supplied by the Licensor with the Licensed Material: i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); ii. a copyright notice; iii. a notice that refers to this Public License; iv. a notice that refers to the disclaimer of warranties; v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; b. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and c. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. Section 4 -- Sui Generis Database Rights. Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. Section 5 -- Disclaimer of Warranties and Limitation of Liability. a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. Section 6 -- Term and Termination. a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 2. upon express reinstatement by the Licensor. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. Section 7 -- Other Terms and Conditions. a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. Section 8 -- Interpretation. a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. ======================================================================= Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the "Licensor." Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark "Creative Commons" or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. Creative Commons may be contacted at creativecommons.org. - --------------------------------------------------------------------------------- - -----------------------Web Background Synchronization------------------------------ - -Web Background Synchronization Specification -Portions of spec © by W3C - -W3C Community Final Specification Agreement -To secure commitments from participants for the full text of a Community or Business Group Report, the group may call for voluntary commitments to the following terms; a "summary" is -available. See also the related "W3C Community Contributor License Agreement". -1. The Purpose of this Agreement. -This Agreement sets forth the terms under which I make certain copyright and patent rights available to you for your implementation of the Specification. -Any other capitalized terms not specifically defined herein have the same meaning as those terms have in the "W3C Patent Policy", and if not defined there, in the "W3C Process Document". -2. Copyrights. -2.1. Copyright Grant. I grant to you a perpetual (for the duration of the applicable copyright), worldwide, non-exclusive, no-charge, royalty-free, copyright license, without any obligation for accounting to me, to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, distribute, and implement the Specification to the full extent of my copyright interest in the Specification. -2.2. Attribution. As a condition of the copyright grant, you must include an attribution to the Specification in any derivative work you make based on the Specification. That attribution must include, at minimum, the Specification name and version number. -3. Patents. -3.1. Patent Licensing Commitment. I agree to license my Essential Claims under the W3C Community RF Licensing Requirements. This requirement includes Essential Claims that I own and any that I have the right to license without obligation of payment or other consideration to an unrelated third party. W3C Community RF Licensing Requirements obligations made concerning the Specification and described in this policy are binding on me for the life of the patents in question and encumber the patents containing Essential Claims, regardless of changes in participation status or W3C Membership. I also agree to license my Essential Claims under the W3C Community RF Licensing Requirements in derivative works of the Specification so long as all normative portions of the Specification are maintained and that this licensing commitment does not extend to any portion of the derivative work that was not included in the Specification. -3.2. Optional, Additional Patent Grant. In addition to the provisions of Section 3.1, I may also, at my option, make certain intellectual property rights infringed by implementations of the Specification, including Essential Claims, available by providing those terms via the W3C Web site. -4. No Other Rights. Except as specifically set forth in this Agreement, no other express or implied patent, trademark, copyright, or other property rights are granted under this Agreement, including by implication, waiver, or estoppel. -5. Antitrust Compliance. I acknowledge that I may compete with other participants, that I am under no obligation to implement the Specification, that each participant is free to develop competing technologies and standards, and that each party is free to license its patent rights to third parties, including for the purpose of enabling competing technologies and standards. -6. Non-Circumvention. I agree that I will not intentionally take or willfully assist any third party to take any action for the purpose of circumventing my obligations under this Agreement. -7. Transition to W3C Recommendation Track. The Specification developed by the Project may transition to the W3C Recommendation Track. The W3C Team is responsible for notifying me that a Corresponding Working Group has been chartered. I have no obligation to join the Corresponding Working Group. If the Specification developed by the Project transitions to the W3C Recommendation Track, the following terms apply: -7.1. If I join the Corresponding Working Group. If I join the Corresponding Working Group, I will be subject to all W3C rules, obligations, licensing commitments, and policies that govern that Corresponding Working Group. -7.2. If I Do Not Join the Corresponding Working Group. -7.2.1. Licensing Obligations to Resulting Specification. If I do not join the Corresponding Working Group, I agree to offer patent licenses according to the W3C Royalty-Free licensing requirements described in Section 5 of the W3C Patent Policy for the portions of the Specification included in the resulting Recommendation. This licensing commitment does not extend to any portion of an implementation of the Recommendation that was not included in the Specification. This licensing commitment may not be revoked but may be modified through the exclusion process defined in Section 4 of the W3C Patent Policy. I am not required to join the Corresponding Working Group to exclude patents from the W3C Royalty-Free licensing commitment, but must otherwise follow the normal exclusion procedures defined by the W3C Patent Policy. The W3C Team will notify me of any Call for Exclusion in the Corresponding Working Group as set forth in Section 4.5 of the W3C Patent Policy. -7.2.2. No Disclosure Obligation. If I do not join the Corresponding Working Group, I have no patent disclosure obligations outside of those set forth in Section 6 of the W3C Patent Policy. -8. Conflict of Interest. I will disclose significant relationships when those relationships might reasonably be perceived as creating a conflict of interest with my role. I will notify W3C of any change in my affiliation using W3C-provided mechanisms. -9. Representations, Warranties and Disclaimers. I represent and warrant that I am legally entitled to grant the rights and promises set forth in this Agreement. IN ALL OTHER RESPECTS THE SPECIFICATION IS PROVIDED “AS IS.” The entire risk as to implementing or otherwise using the Specification is assumed by the implementer and user. Except as stated herein, I expressly disclaim any warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to the Specification. IN NO EVENT WILL ANY PARTY BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. All of my obligations under Section 3 regarding the transfer, successors in interest, or assignment of Granted Claims will be satisfied if I notify the transferee or assignee of any patent that I know contains Granted Claims of the obligations under Section 3. Nothing in this Agreement requires me to undertake a patent search. -10. Definitions. -10.1. Agreement. “Agreement” means this W3C Community Final Specification Agreement. -10.2. Corresponding Working Group. “Corresponding Working Group” is a W3C Working Group that is chartered to develop a Recommendation, as defined in the W3C Process Document, that takes the Specification as an input. -10.3. Essential Claims. “Essential Claims” shall mean all claims in any patent or patent application in any jurisdiction in the world that would necessarily be infringed by implementation of the Specification. A claim is necessarily infringed hereunder only when it is not possible to avoid infringing it because there is no non-infringing alternative for implementing the normative portions of the Specification. Existence of a non-infringing alternative shall be judged based on the state of the art at the time of the publication of the Specification. The following are expressly excluded from and shall not be deemed to constitute Essential Claims: -10.3.1. any claims other than as set forth above even if contained in the same patent as Essential Claims; and -10.3.2. claims which would be infringed only by: -portions of an implementation that are not specified in the normative portions of the Specification, or -enabling technologies that may be necessary to make or use any product or portion thereof that complies with the Specification and are not themselves expressly set forth in the Specification (e.g., semiconductor manufacturing technology, compiler technology, object-oriented technology, basic operating system technology, and the like); or -the implementation of technology developed elsewhere and merely incorporated by reference in the body of the Specification. -10.3.3. design patents and design registrations. -For purposes of this definition, the normative portions of the Specification shall be deemed to include only architectural and interoperability requirements. Optional features in the RFC 2119 sense are considered normative unless they are specifically identified as informative. Implementation examples or any other material that merely illustrate the requirements of the Specification are informative, rather than normative. -10.4. I, Me, or My. “I,” “me,” or “my” refers to the signatory. -10.5 Project. “Project” means the W3C Community Group or Business Group for which I executed this Agreement. -10.6. Specification. “Specification” means the Specification identified by the Project as the target of this agreement in a call for Final Specification Commitments. W3C shall provide the authoritative mechanisms for the identification of this Specification. -10.7. W3C Community RF Licensing Requirements. “W3C Community RF Licensing Requirements” license shall mean a non-assignable, non-sublicensable license to make, have made, use, sell, have sold, offer to sell, import, and distribute and dispose of implementations of the Specification that: -10.7.1. shall be available to all, worldwide, whether or not they are W3C Members; -10.7.2. shall extend to all Essential Claims owned or controlled by me; -10.7.3. may be limited to implementations of the Specification, and to what is required by the Specification; -10.7.4. may be conditioned on a grant of a reciprocal RF license (as defined in this policy) to all Essential Claims owned or controlled by the licensee. A reciprocal license may be required to be available to all, and a reciprocal license may itself be conditioned on a further reciprocal license from all. -10.7.5. may not be conditioned on payment of royalties, fees or other consideration; -10.7.6. may be suspended with respect to any licensee when licensor issued by licensee for infringement of claims essential to implement the Specification or any W3C Recommendation; -10.7.7. may not impose any further conditions or restrictions on the use of any technology, intellectual property rights, or other restrictions on behavior of the licensee, but may include reasonable, customary terms relating to operation or maintenance of the license relationship such as the following: choice of law and dispute resolution; -10.7.8. shall not be considered accepted by an implementer who manifests an intent not to accept the terms of the W3C Community RF Licensing Requirements license as offered by the licensor. -10.7.9. The RF license conforming to the requirements in this policy shall be made available by the licensor as long as the Specification is in effect. The term of such license shall be for the life of the patents in question. -I am encouraged to provide a contact from which licensing information can be obtained and other relevant licensing information. Any such information will be made publicly available. -10.8. You or Your. “You,” “you,” or “your” means any person or entity who exercises copyright or patent rights granted under this Agreement, and any person that person or entity controls. - -------------------------------------------------------------------------------------- - -------------------- WebGL ----------------------------- -Copyright (c) 2018 The Khronos Group Inc. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and/or associated documentation files (the -"Materials"), to deal in the Materials without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Materials, and to -permit persons to whom the Materials are furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Materials. - -THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. ------------------------------------------------------- - -------------- End of ThirdPartyNotices ------------------------------------------- */ - diff --git a/graphql/node_modules/typescript/bin/tsc b/graphql/node_modules/typescript/bin/tsc deleted file mode 100755 index 19c62bf7..00000000 --- a/graphql/node_modules/typescript/bin/tsc +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require('../lib/tsc.js') diff --git a/graphql/node_modules/typescript/bin/tsserver b/graphql/node_modules/typescript/bin/tsserver deleted file mode 100755 index 7143b6a7..00000000 --- a/graphql/node_modules/typescript/bin/tsserver +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require('../lib/tsserver.js') diff --git a/graphql/node_modules/typescript/lib/cancellationToken.js b/graphql/node_modules/typescript/lib/cancellationToken.js deleted file mode 100644 index cf2c258e..00000000 --- a/graphql/node_modules/typescript/lib/cancellationToken.js +++ /dev/null @@ -1,90 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/cancellationToken/cancellationToken.ts -var fs = __toESM(require("fs")); -function pipeExists(name) { - return fs.existsSync(name); -} -function createCancellationToken(args) { - let cancellationPipeName; - for (let i = 0; i < args.length - 1; i++) { - if (args[i] === "--cancellationPipeName") { - cancellationPipeName = args[i + 1]; - break; - } - } - if (!cancellationPipeName) { - return { - isCancellationRequested: () => false, - setRequest: (_requestId) => void 0, - resetRequest: (_requestId) => void 0 - }; - } - if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { - const namePrefix = cancellationPipeName.slice(0, -1); - if (namePrefix.length === 0 || namePrefix.includes("*")) { - throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); - } - let perRequestPipeName; - let currentRequestId; - return { - isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName), - setRequest(requestId) { - currentRequestId = requestId; - perRequestPipeName = namePrefix + requestId; - }, - resetRequest(requestId) { - if (currentRequestId !== requestId) { - throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`); - } - perRequestPipeName = void 0; - } - }; - } else { - return { - isCancellationRequested: () => pipeExists(cancellationPipeName), - setRequest: (_requestId) => void 0, - resetRequest: (_requestId) => void 0 - }; - } -} -module.exports = createCancellationToken; -//# sourceMappingURL=cancellationToken.js.map diff --git a/graphql/node_modules/typescript/lib/cs/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/cs/diagnosticMessages.generated.json deleted file mode 100644 index 1df80098..00000000 --- a/graphql/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "VŠECHNY MOŽNOSTI KOMPILÁTORU", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Modifikátor {0} nejde použít s deklarací import.", - "A_0_parameter_must_be_the_first_parameter_2680": "Parametr {0} musí být prvním parametrem.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Komentář JSDoc @typedef nemůže obsahovat více než jednu značku @type.", - "A_bigint_literal_cannot_use_exponential_notation_1352": "Literál typu bigint nemůže používat exponenciální notaci.", - "A_bigint_literal_must_be_an_integer_1353": "Literál typu bigint musí být celé číslo.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Parametr vzoru vazby nemůže být u podpisu implementace nepovinný.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Příkaz break se dá použít jenom uvnitř nadřazené iterace nebo příkazu switch.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Příkaz break může skočit jenom na popisek nadřazeného příkazu.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Třída může implementovat jenom identifikátor nebo kvalifikovaný název s volitelnými argumenty typu.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Třída může implementovat jen typ objektu nebo průsečík typů objektů se staticky známými členy.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Deklarace třídy bez modifikátoru default musí mít název.", - "A_class_member_cannot_have_the_0_keyword_1248": "Člen třídy nemůže mít klíčové slovo {0}.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Výraz s čárkou není v názvu počítané vlastnosti povolený.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "Název počítané vlastnosti nemůže odkazovat na parametr typu z jeho nadřazeného typu.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "Název počítané vlastnosti v deklaraci vlastnosti třídy musí mít jednoduchý typ literálu nebo typ unique symbol.", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "Název počítané vlastnosti v přetížené metodě musí odkazovat na výraz, jehož typ je literál nebo unique symbol.", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "Název počítané vlastnosti v literálu typu musí odkazovat na výraz, jehož typ je literál nebo unique symbol.", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Název počítané vlastnosti v ambientním kontextu musí odkazovat na výraz, jehož typ je literál nebo unique symbol.", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Název počítané vlastnosti v rozhraní musí odkazovat na výraz, jehož typ je literál nebo unique symbol.", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Název počítané vlastnosti musí být typu string, number, symbol nebo any.", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "Kontrolní výrazy const se dají použít jen pro odkazy na členy výčtu, řetězec, číslo, logickou hodnotu, pole nebo literály objektů.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Ke členu konstantního výčtu se dá získat přístup jenom pomocí řetězcového literálu.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Inicializátor const v ambientním kontextu musí být řetězec, číselný literál nebo odkaz na výčet literálů.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Konstruktor nemůže obsahovat volání super, pokud jeho třída rozšiřuje null.", - "A_constructor_cannot_have_a_this_parameter_2681": "Konstruktor nemůže mít parametr this.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Příkaz continue se dá použít jenom uvnitř příkazu nadřazené iterace.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Příkaz continue může přejít jenom na popisek příkazu nadřazené iterace.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Modifikátor declare se nedá použít v kontextu, který už je ambientní.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Dekorátor může dekorovat jenom implementaci metody, ne přetížení.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Klauzule default nemůže být v příkazu switch víc než jednou.", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "V modulu ve stylu ECMAScriptu se dá použít jenom výchozí export.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Výchozí export musí být na nejvyšší úrovni deklarace souboru nebo modulu.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Určitý kontrolní výraz přiřazení '!' není v tomto kontextu povolený.", - "A_destructuring_declaration_must_have_an_initializer_1182": "Destrukturační deklarace musí obsahovat inicializátor.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Volání dynamického importu v ES5/ES3 vyžaduje konstruktor ‚Promise‘. Ujistěte se, že máte deklaraci konstruktoru ‚Promise‘, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Volání dynamického importu vrací hodnotu ‚Promise‘. Ujistěte se, že pro ni máte deklaraci, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", - "A_file_cannot_have_a_reference_to_itself_1006": "Soubor nemůže odkazovat sám na sebe.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Funkce, která vrací hodnotu never, nemůže mít dosažitelný koncový bod.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Funkce volaná klíčovým slovem new nemůže mít typ this, který je void.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Funkce, jejíž deklarovaný typ není void ani any, musí vracet hodnotu.", - "A_generator_cannot_have_a_void_type_annotation_2505": "Generátor nemůže mít anotaci typu void.", - "A_get_accessor_cannot_have_parameters_1054": "Přístupový objekt get nemůže obsahovat parametry.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Přístupový objekt get musí být alespoň tak přístupný jako metoda setter.", - "A_get_accessor_must_return_a_value_2378": "Přístupový objekt get musí vracet hodnotu.", - "A_label_is_not_allowed_here_1344": "Popisek se tady nepovoluje.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "Element popsané řazené kolekce členů se deklaroval jako nepovinný pomocí otazníku za názvem a před dvojtečkou, nikoli za typem.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "Element popsané řazené kolekce členů se deklaroval jako zbytek s třemi tečkami (...) před názvem, nikoli před typem.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "Mapovaný typ nemůže deklarovat vlastnosti nebo metody.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "Inicializátor členu v deklaraci výčtu nemůže odkazovat na členy deklarované až po výčtu, a to ani členy definované v jiných výčtech.", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "Třída mixin musí mít konstruktor s jediným parametrem rest typu any[].", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "Třída mixin, která rozšiřuje proměnnou typu obsahující signaturu abstraktního konstruktu, musí být také deklarovaná jako abstract.", - "A_module_cannot_have_multiple_default_exports_2528": "Modul nemůže mít víc výchozích exportů.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Deklarace oboru názvů nemůže být v jiném souboru než třída nebo funkce, se kterou se slučuje.", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklarace oboru názvů nemůže být umístěná před třídou nebo funkcí, se kterou se slučuje.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Deklarace oboru názvů je povolená pouze na nejvyšší úrovni oboru názvů nebo v modulu.", - "A_non_dry_build_would_build_project_0_6357": "Build bez příznaku -dry by vytvořil projekt {0}.", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Build bez příznaku -dry by odstranil následující soubory: {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "Build bez příznaku -dry by aktualizoval výstup projektu {0}.", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Build bez příznaku -dry by aktualizoval časová razítka pro výstup projektu {0}.", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Inicializátor parametru je povolený jenom v implementaci funkce nebo konstruktoru.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Vlastnost parametru se nedá deklarovat pomocí parametru rest.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Vlastnost parametru je povolená jenom v implementaci konstruktoru.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "Vlastnost parametru se nedá deklarovat pomocí vzoru vazby.", - "A_promise_must_have_a_then_method_1059": "Příslib musí mít metodu then.", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "Vlastnost třídy, jejíž typ je unique symbol, musí být static a readonly.", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "Vlastnost rozhraní nebo literálu typu, jehož typ je unique symbol, musí být readonly.", - "A_required_element_cannot_follow_an_optional_element_1257": "Povinný element nemůže následovat po nepovinném elementu.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "Povinný parametr nemůže následovat po nepovinném parametru.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "Element rest nemůže obsahovat vzor vazby.", - "A_rest_element_cannot_follow_another_rest_element_1265": "Element rest nemůže následovat za jiným elementem rest.", - "A_rest_element_cannot_have_a_property_name_2566": "Element rest nemůže mít název vlastnosti.", - "A_rest_element_cannot_have_an_initializer_1186": "Element rest nemůže obsahovat inicializátor.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "Element rest musí být ve vzoru destrukturalizace poslední.", - "A_rest_element_type_must_be_an_array_type_2574": "Typ elementu rest musí být typu pole.", - "A_rest_parameter_cannot_be_optional_1047": "Parametr rest nemůže být nepovinný.", - "A_rest_parameter_cannot_have_an_initializer_1048": "Parametr rest nemůže obsahovat inicializátor.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "Parametr rest musí být posledním v seznamu parametrů.", - "A_rest_parameter_must_be_of_an_array_type_2370": "Parametr rest musí být typu pole.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "Parametr rest nebo vzor vazby nesmí mít na konci čárku.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "Příkaz return se dá použít jenom v těle funkce.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "Příkaz return nejde použít uvnitř statického bloku třídy.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "Řada záznamů, které mění mapování importů do umístění vyhledávání relativních vůči baseUrl.", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "Přístupový objekt set nemůže obsahovat anotaci návratového typu.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "Přístupový objekt set nemůže obsahovat nepovinný parametr.", - "A_set_accessor_cannot_have_rest_parameter_1053": "Přístupový objekt get nemůže obsahovat parametr rest.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "Přístupový objekt set musí obsahovat přesně jeden parametr.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Parametr přístupového objektu set nemůže obsahovat inicializátor.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Argument rozprostření musí mít buď typ řazené kolekce členů, nebo musí být předán do parametru rest.", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Volání super musí být příkaz na kořenové úrovni v konstruktoru odvozené třídy, který obsahuje inicializované vlastnosti, vlastnosti parametrů nebo privátní identifikátory.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Volání super musí být prvním příkazem v konstruktoru, který odkazuje na super nebo toto, když odvozená třída obsahuje inicializované vlastnosti, vlastnosti parametrů nebo soukromé identifikátory.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Ochrana typu this není kompatibilní s ochranou typu založeného na parametru.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Typ this je k dispozici jenom v nestatických členech třídy nebo rozhraní.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Soubor tsconfig.json je už v {0} definovaný.", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Člen řazené kolekce členů nemůže být volitelný a zbytek.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Typ řazené kolekce členů není možné indexovat zápornou hodnotou.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Výraz potvrzení typu se na levé straně výrazu umocnění nepovoluje. Zvažte možnost uzavření výrazu do závorek.", - "A_type_literal_property_cannot_have_an_initializer_1247": "Vlastnost literálu typu nemůže mít inicializátor.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Import, při kterém se importují jen typy, může určovat výchozí import nebo pojmenované vazby, ale ne obojí.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "Predikát typu nemůže odkazovat na parametr rest.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "Predikát typu nemůže odkazovat na element {0} ve vzoru vazby.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "Predikát typu je povolený jenom na pozici návratového typu funkcí a metod.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "Typ predikátu typu musí být přiřaditelný k typu jeho parametru.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "Typ odkazovaný v dekorovaném podpisu musí být importován pomocí import type nebo importu oboru názvů, pokud jsou povoleny elementy isolatedModules a emitDecoratorMetadata.", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "Proměnná, jejíž typ je unique symbol, musí být const.", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Výraz yield je povolený jenom v těle generátoru.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "K abstraktní metodě {0} ve třídě {1} nejde získat přístup prostřednictvím výrazu super.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Abstraktní metody se můžou vyskytovat jenom v abstraktní třídě.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "K abstraktní vlastnosti {0} ve třídě {1} nelze získat přístup v konstruktoru.", - "Accessibility_modifier_already_seen_1028": "Modifikátor dostupnosti se už jednou vyskytl.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Přístupové objekty jsou dostupné, jenom když je cílem ECMAScript 5 a vyšší verze.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "Přistupující objekty musí být abstraktní nebo neabstraktní.", - "Add_0_to_unresolved_variable_90008": "Přidat {0}. k nerozpoznané proměnné", - "Add_a_return_statement_95111": "Přidat příkaz return", - "Add_all_missing_async_modifiers_95041": "Přidat všechny chybějící modifikátory async", - "Add_all_missing_attributes_95168": "Přidat všechny chybějící atributy", - "Add_all_missing_call_parentheses_95068": "Přidat všechny chybějící závorky volání", - "Add_all_missing_function_declarations_95157": "Přidat všechny chybějící deklarace funkcí", - "Add_all_missing_imports_95064": "Přidat všechny chybějící importy", - "Add_all_missing_members_95022": "Přidat všechny chybějící členy", - "Add_all_missing_override_modifiers_95162": "Přidat všechny chybějící modifikátory override", - "Add_all_missing_properties_95166": "Přidat všechny chybějící importy", - "Add_all_missing_return_statement_95114": "Přidat všechny chybějící příkazy return", - "Add_all_missing_super_calls_95039": "Přidat všechna chybějící volání pomocí super", - "Add_async_modifier_to_containing_function_90029": "Přidat modifikátor async do obsahující funkce", - "Add_await_95083": "Přidat await", - "Add_await_to_initializer_for_0_95084": "Přidat await do inicializátoru pro {0}", - "Add_await_to_initializers_95089": "Přidat await do inicializátorů", - "Add_braces_to_arrow_function_95059": "Přidat složené závorky k funkci šipky", - "Add_const_to_all_unresolved_variables_95082": "Přidat const ke všem nerozpoznaným proměnným", - "Add_const_to_unresolved_variable_95081": "Přidat const k nerozpoznané proměnné", - "Add_definite_assignment_assertion_to_property_0_95020": "Přidat kontrolní výraz jednoznačného přiřazení k vlastnosti {0}", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Přidat kontrolní výrazy jednoznačného přiřazení do všech neinicializovaných vlastností", - "Add_export_to_make_this_file_into_a_module_95097": "Přidat export {}, aby se tento soubor převedl na modul", - "Add_extends_constraint_2211": "Přidejte omezení extends.", - "Add_extends_constraint_to_all_type_parameters_2212": "Přidat omezení extends ke všem parametrům typu", - "Add_import_from_0_90057": "Přidat import z {0}", - "Add_index_signature_for_property_0_90017": "Přidat signaturu indexu pro vlastnost {0}", - "Add_initializer_to_property_0_95019": "Přidat inicializační výraz k vlastnosti {0}", - "Add_initializers_to_all_uninitialized_properties_95027": "Přidat inicializátory do všech neinicializovaných vlastností", - "Add_missing_attributes_95167": "Přidat chybějící atributy", - "Add_missing_call_parentheses_95067": "Přidat chybějící závorky volání", - "Add_missing_enum_member_0_95063": "Přidat chybějící člen výčtu {0}", - "Add_missing_function_declaration_0_95156": "Přidat chybějící deklaraci funkce {0}", - "Add_missing_new_operator_to_all_calls_95072": "Přidat chybějící operátor new ke všem voláním", - "Add_missing_new_operator_to_call_95071": "Přidat chybějící operátor new k volání", - "Add_missing_properties_95165": "Přidat chybějící vlastnosti", - "Add_missing_super_call_90001": "Přidat chybějící volání metody super()", - "Add_missing_typeof_95052": "Přidat chybějící typeof", - "Add_names_to_all_parameters_without_names_95073": "Přidat názvy do všech parametrů bez názvů", - "Add_or_remove_braces_in_an_arrow_function_95058": "Přidat nebo odebrat složené závorky ve funkci šipky", - "Add_override_modifier_95160": "Přidat modifikátor override", - "Add_parameter_name_90034": "Přidat název parametru", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Přidat kvalifikátor do všech nerozpoznaných proměnných odpovídajících názvu členu", - "Add_to_all_uncalled_decorators_95044": "Přidat () do všech nevolaných dekorátorů", - "Add_ts_ignore_to_all_error_messages_95042": "Přidat @ts-ignore do všech chybových zpráv", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Pokud k přístupu používáte index, přidejte k typu řetězec undefined.", - "Add_undefined_to_optional_property_type_95169": "Přidat hodnotu undefined do volitelného typu vlastnosti", - "Add_undefined_type_to_all_uninitialized_properties_95029": "Přidat nedefinovaný typ do všech neinicializovaných vlastností", - "Add_undefined_type_to_property_0_95018": "Přidat typ undefined k vlastnosti {0}", - "Add_unknown_conversion_for_non_overlapping_types_95069": "Přidat převod unknown pro typy, které se nepřekrývají", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "Přidat unknown do všech převodů pro typy, které se nepřekrývají", - "Add_void_to_Promise_resolved_without_a_value_95143": "Přidat void k objektu Promise vyřešenému bez hodnoty", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "Přidat void ke všem objektům Promise vyřešeným bez hodnoty", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "Přidání souboru tsconfig.json vám pomůže uspořádat projekty, které obsahují jak soubory TypeScript, tak soubory JavaScript. Další informace najdete na adrese https://aka.ms/tsconfig.", - "All_declarations_of_0_must_have_identical_constraints_2838": "Všechny deklarace {0} musí mít identická omezení.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "Všechny deklarace {0} musí mít stejné modifikátory.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "Všechny deklarace {0} musí mít stejné parametry typu.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Všechny deklarace abstraktní metody musí jít po sobě.", - "All_destructured_elements_are_unused_6198": "Žádný z destrukturovaných elementů se nepoužívá.", - "All_imports_in_import_declaration_are_unused_6192": "Žádné importy z deklarace importu se nepoužívají.", - "All_type_parameters_are_unused_6205": "Všechny parametry typů jsou nevyužité.", - "All_variables_are_unused_6199": "Žádná z proměnných se nepoužívá.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "Povolte, aby se soubory JavaScriptu staly součástí programu. K získání informací o chybách v těchto souborech použít možnost checkJS.", - "Allow_accessing_UMD_globals_from_modules_6602": "Povolit přístup ke globálním proměnným UMD z modulů", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Povolte výchozí importy z modulů bez výchozího exportu. Nebude to mít vliv na generování kódu, jenom na kontrolu typů.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Pokud modul nemá výchozí export, povolte import X z Y.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Povolte import pomocných funkcí z knihovny tslib jednou za celý projekt místo jejich zahrnutí do každého souboru.", - "Allow_javascript_files_to_be_compiled_6102": "Povolí kompilaci souborů javascript.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Při řešení modulů povolit, aby se s více složkami zacházelo jako s jednou.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Název souboru {0}, který se už zahrnul, se od názvu souboru {1} liší jen ve velkých a malých písmenech.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "Deklarace ambientního modulu nemůže uvádět relativní název modulu.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "Ambientní moduly se nedají zanořovat do jiných modulů nebo oborů názvů.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "Modul AMD nemůže obsahovat víc přiřazení názvů.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "Abstraktní přístupový objekt nemůže mít implementaci.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Modifikátor přístupnosti se nedá použít spolu s privátním identifikátorem.", - "An_accessor_cannot_have_type_parameters_1094": "Přístupový objekt nemůže obsahovat parametry typu.", - "An_accessor_property_cannot_be_declared_optional_1276": "Vlastnost accessor nejde deklarovat jako volitelnou.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Deklarace ambientního modulu je povolená jenom na nejvyšší úrovni v souboru.", - "An_argument_for_0_was_not_provided_6210": "Neposkytl se argument pro {0}.", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Neposkytl se argument, který by odpovídal tomuto vzoru vazby.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Aritmetický operand musí být typu any, number, bigint nebo typu výčtu.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "Funkce šipky nemůže mít parametr this.", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Asynchronní funkce nebo metoda v ES5/ES3 vyžaduje konstruktor ‚Promise‘. Ujistěte se, že máte deklaraci konstruktoru ‚Promise‘, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Asynchronní funkce nebo metoda musí vracet hodnotu ‚Promise‘. Přesvědčte se, že pro ni máte deklaraci, nebo zahrňte ‚ES2015‘ do možnosti ‚--lib‘.", - "An_async_iterator_must_have_a_next_method_2519": "Asynchronní iterátor musí mít metodu next().", - "An_element_access_expression_should_take_an_argument_1011": "Výraz přístupu k elementu by měl přijímat argument.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "Člen výčtu není možné pojmenovat privátním identifikátorem.", - "An_enum_member_cannot_have_a_numeric_name_2452": "Člen výčtu nemůže mít číselný název.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "Za názvem členu výčtu musí následovat znak čárky (,), rovnítka (=) nebo pravé složené závorky (}).", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "Rozšířená verze těchto informací, zobrazující všechny možné možnosti kompilátoru", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "Přiřazení exportu se nedá použít v modulu s jinými exportovanými elementy.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "Přiřazení exportu se nedá používat v oboru názvů.", - "An_export_assignment_cannot_have_modifiers_1120": "Přiřazení exportu nemůže mít modifikátory.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "Přiřazení exportu musí být na nejvyšší úrovni deklarace souboru nebo modulu.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Deklarace exportu se dá použít pouze na nejvyšší úrovni modulu.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Deklarace exportu se dá použít pouze na nejvyšší úrovni oboru názvů nebo modulu.", - "An_export_declaration_cannot_have_modifiers_1193": "Deklarace exportu nemůže mít modifikátory.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Není možné testovat pravdivost výrazu typu void.", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Rozšířená řídicí hodnota Unicode musí být mezi 0x0 a 0x10FFFF (včetně).", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Identifikátor nebo klíčové slovo nemůže následovat hned po číselném literálu.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Implementace se nedá deklarovat v ambientních kontextech.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Alias importu se nemůže odkazovat na deklaraci, která se exportovala pomocí export type.", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Alias importu se nemůže odkazovat na deklaraci, která se importovala pomocí import type.", - "An_import_alias_cannot_use_import_type_1392": "Alias importu nemůže používat import type.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Deklarace importu se dá použít pouze na nejvyšší úrovni modulu.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Deklarace importu se dá použít pouze na nejvyšší úrovni oboru názvů nebo modulu.", - "An_import_declaration_cannot_have_modifiers_1191": "Deklarace importu nemůže mít modifikátory.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Cesta pro import nemůže končit příponou {0}. Zvažte možnost importovat místo toho {1}.", - "An_index_signature_cannot_have_a_rest_parameter_1017": "Signatura indexu indexu nemůže obsahovat parametr rest.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "Signatura indexu nemůže mít na konci čárku.", - "An_index_signature_must_have_a_type_annotation_1021": "Signatura indexu musí mít anotaci typu.", - "An_index_signature_must_have_exactly_one_parameter_1096": "Signatura indexu musí mít právě jeden parametr.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "V parametru signatury indexu nemůže být otazník.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "V parametru signatury indexu nemůže být modifikátor přístupnosti.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "V parametru signatury indexu nemůže být inicializátor.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "V parametru signatury indexu nemůže být anotace typu.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "Typ parametru signatury indexu nemůže být typ literálu nebo obecný typ. Místo toho zvažte použití namapovaného typu objektu.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "Typ parametru signatury indexu musí být řetězec, číslo, symbol nebo typ literálu šablony.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Po výrazu vytvoření instance nemůže následovat přístup k vlastnosti.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Rozhraní může rozšířit jenom identifikátor nebo kvalifikovaný název s volitelnými argumenty typu.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Rozhraní může rozšiřovat jen typ objektu nebo průsečík typů objektů se staticky známými členy.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Rozhraní nemůže rozšířit primitivní typ, jako je {0}; rozhraní může rozšířit jenom pojmenované typy a třídy.", - "An_interface_property_cannot_have_an_initializer_1246": "Vlastnost rozhraní nemůže mít inicializátor.", - "An_iterator_must_have_a_next_method_2489": "Iterátor musí mít metodu next().", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Při použití direktivy pragma @jsx s fragmenty JSX se vyžaduje direktiva pragma @jsxFrag.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Literál objektu nemůže obsahovat několik přístupových objektů get/set se stejným názvem.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Literál objektu nemůže mít víc vlastností se stejným názvem.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Literál objektu nemůže obsahovat vlastnost a přístupový objekt se stejným názvem.", - "An_object_member_cannot_be_declared_optional_1162": "Člen objektu nemůže být deklarovaný jako nepovinný.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "Nepovinný řetěz nemůže obsahovat privátní identifikátory.", - "An_optional_element_cannot_follow_a_rest_element_1266": "Element optional nemůže následovat za elementem rest.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Tento kontejner zakrývá vnější hodnotu this.", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Signatura přetížení nemůže být deklarovaný jako generátor.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Unární výraz s operátorem {0} se na levé straně výrazu umocnění nepovoluje. Zvažte možnost uzavření výrazu do závorek.", - "Annotate_everything_with_types_from_JSDoc_95043": "Vše s typy z JSDoc opatřit poznámkami", - "Annotate_with_type_from_JSDoc_95009": "Přidat poznámku s typem z JSDoc", - "Another_export_default_is_here_2753": "Další výchozí hodnota exportu je tady.", - "Are_you_missing_a_semicolon_2734": "Nechybí středník?", - "Argument_expression_expected_1135": "Očekává se výraz argumentu.", - "Argument_for_0_option_must_be_Colon_1_6046": "Argument možnosti {0} musí být {1}.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "Argument dynamického importu nemůže být element rozestření.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "Argument typu {0} nejde přiřadit k parametru typu {1}.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Argument typu {0} se nedá přiřadit k parametru typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typů vlastností cíle.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Nezadaly se argumenty pro parametr rest {0}.", - "Array_element_destructuring_pattern_expected_1181": "Očekával se destrukturační vzor elementu pole.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Kontrolní výrazy vyžadují, aby se všechny názvy v cíli volání deklarovaly s explicitní anotací typu.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Kontrolní výrazy vyžadují, aby cíl volání byl identifikátor, nebo kvalifikovaný název.", - "Asterisk_Slash_expected_1010": "Očekával se znak */.", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Rozšíření pro globální rozsah může být jenom přímo vnořené v externích modulech nebo deklaracích ambientního modulu.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Rozšíření pro globální rozsah by měla mít modifikátor declare, pokud se neobjeví v kontextu, který je už ambientní.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Automatické zjišťování pro psaní je povolené v projektu {0}. Spouští se speciální průchod řešení pro modul {1} prostřednictvím umístění mezipaměti {2}.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Výraz Await nejde použít uvnitř statického bloku třídy.", - "BUILD_OPTIONS_6919": "MOŽNOSTI SESTAVENÍ", - "Backwards_Compatibility_6253": "Zpětná kompatibilita", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Výrazy základní třídy nemůžou odkazovat na parametry typu třídy.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "Návratový typ základního konstruktoru {0} není typ objektu ani průsečík typů objektů se staticky známými členy.", - "Base_constructors_must_all_have_the_same_return_type_2510": "Všechny základní konstruktory musí mít stejný návratový typ.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "Základní adresář pro překlad neabsolutních názvů modulů.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Když je cíl nastavený níže než ES2020, literály typu BigInt nejsou k dispozici.", - "Binary_digit_expected_1177": "Očekává se binární číslice.", - "Binding_element_0_implicitly_has_an_1_type_7031": "Element vazby {0} má implicitně typ {1}.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "Proměnná bloku {0} se používá před vlastní deklarací.", - "Build_a_composite_project_in_the_working_directory_6925": "Sestavte složený projekt v pracovním adresáři.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Sestavujte všechny projekty včetně těch, které se zdají aktuální.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Sestavit jeden nebo více projektů a jejich závislosti, pokud jsou zastaralé", - "Build_option_0_requires_a_value_of_type_1_5073": "Možnost buildu {0} vyžaduje hodnotu typu {1}.", - "Building_project_0_6358": "Sestavuje se projekt {0}...", - "COMMAND_LINE_FLAGS_6921": "PŘÍZNAKY PŘÍKAZOVÉHO ŘÁDKU", - "COMMON_COMMANDS_6916": "BĚŽNÉ PŘÍKAZY", - "COMMON_COMPILER_OPTIONS_6920": "BĚŽNÉ PARAMETRY KOMPILÁTORU", - "Call_decorator_expression_90028": "Zavolat výraz dekorátoru", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "Návratové typy signatury volání {0} a {1} nejsou kompatibilní.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Signatura volání s chybějící anotací návratového typu má implicitně návratový typ any.", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Signatury volání bez argumentů mají nekompatibilní návratové typy {0} a {1}.", - "Call_target_does_not_contain_any_signatures_2346": "Cíl volání neobsahuje žádné signatury.", - "Can_only_convert_logical_AND_access_chains_95142": "Převést se dají jen logické řetězy přístupu AND.", - "Can_only_convert_named_export_95164": "Lze převést pouze pojmenovaný export ", - "Can_only_convert_property_with_modifier_95137": "Převést se dá jenom vlastnost s modifikátorem.", - "Can_only_convert_string_concatenation_95154": "Lze převést pouze zřetězení řetězců.", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "K {0}.{1} nelze získat přístup, protože {0} je typ, nikoli názvový prostor. Chtěli jste načíst typ vlastnosti {1} v {0} pomocí {0}[{1}]?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Když se zadá příznak --isolatedModules, nedá se získat přístup k ambientnímu konstantnímu výčtu.", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Typ konstruktoru {0} se nedá přiřadit k typu konstruktoru {1}.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Abstraktní typ konstruktoru nejde přiřadit neabstraktnímu typu konstruktoru.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "Do {0} se nedá přiřazovat, protože je to třída.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "Nejde přiřadit k vlastnosti {0}, protože je konstantní.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "Do {0} se nedá přiřazovat, protože je to funkce.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "Do {0} se nedá přiřazovat, protože je to obor názvů.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "Nejde přiřadit k vlastnosti {0}, protože je jen pro čtení.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "Do {0} se nedá přiřazovat, protože je to výčet.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "Do {0} se nedá přiřazovat, protože je to import.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "Nejde přiřadit k položce {0}, to není proměnná.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "Není možné přiřazovat hodnoty do privátní metody {0}. Do privátních metod se nedá zapisovat.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "Modul {0} se nedá rozšířit, protože se překládá do entity, která není modul.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "Modul {0} se nedá rozšířit, protože se překládá na entitu, která není modul.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "Moduly nejde kompilovat pomocí možnosti {0}, pokud příznak --module nemá hodnotu amd nebo system.", - "Cannot_create_an_instance_of_an_abstract_class_2511": "Nejde vytvořit instance abstraktní třídy.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "Iterace se nedá delegovat na hodnotu, protože metoda next jejího iterátoru očekává typ {1}, ale obsahující generátor vždy pošle {0}.", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "{0} se nedá exportovat. Z modulu je možné exportovat jenom místní deklarace.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "Třída {0} se nedá rozšířit. Konstruktor třídy je označený jako privátní.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "Nejde rozšířit rozhraní {0}. Měli jste na mysli 'implements'?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "Soubor tsconfig.json nejde najít v aktuálním adresáři: {0}", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Soubor tsconfig.json nejde najít v zadaném adresáři: {0}", - "Cannot_find_global_type_0_2318": "Globální typ {0} se nenašel.", - "Cannot_find_global_value_0_2468": "Globální hodnota {0} se nenašla.", - "Cannot_find_lib_definition_for_0_2726": "Nepovedlo se najít definici knihovny pro {0}.", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Nepovedlo se najít definici knihovny pro {0}. Neměli jste na mysli spíš {1}?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Nepovedlo se najít modul {0}. Zvažte možnost importovat modul s příponou .json pomocí --resolveJsonModule.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Nepovedlo se najít modul {0}. Nechtěli jste nastavit možnost moduleResolution na node nebo přidat do možnosti paths aliasy?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Nepovedlo se najít modul {0} nebo jeho odpovídající deklarace typů.", - "Cannot_find_name_0_2304": "Název {0} se nenašel.", - "Cannot_find_name_0_Did_you_mean_1_2552": "Nepovedlo se najít název {0}. Měli jste na mysli {1}?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Název {0} se nedá najít. Měli jste na mysli člena instance this.{0}?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "Název {0} se nedá najít. Měli jste na mysli statický člen {1}.{0}?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Nelze najít název {0}. Nechtěli jste to napsat v asynchronní funkci?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Nepovedlo se najít název ‚{0}‘. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na ‚{1}‘ nebo novější.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Nepovedlo se najít název ‚{0}‘. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ tak, aby obsahovala ‚dom‘.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Nepovedlo se najít název {0}. Potřebujete nainstalovat definice typů pro spouštěč testů? Zkuste npm i --save-dev @types/jest nebo npm i --save-dev @types/mocha.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Nepovedlo se najít název ‚{0}‘. Potřebujete nainstalovat definice typů pro spouštěč testů? Zkuste ‚npm i --save-dev@ types/jest‘ nebo ‚npm i --save-dev @types/mocha‘ a pak do polí typů v tsconfig přidejte ‚jest‘ nebo ‚mocha‘.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Nepovedlo se najít název {0}. Potřebujete nainstalovat definice typů pro jQuery? Zkuste npm i --save-dev @types/jquery.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "Nepovedlo se najít název ‚{0}‘. Potřebujete nainstalovat definice typů pro jQuery? Zkuste ‚npm i --save-dev @types/jquery` a pak pro pole typů v tsconfig přidejte ‚jquery‘.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "Nepovedlo se najít název {0}. Potřebujete nainstalovat definice typů pro Node? Zkuste npm i --save-dev @types/node.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Nepovedlo se najít název ‚{0}‘. Potřebujete nainstalovat definice typů pro uzel? Zkuste ‚npm i --save-dev @types/node‘ a pak do pole typů v tsconfig přidejte ‚node‘.", - "Cannot_find_namespace_0_2503": "Nenašel se obor názvů {0}.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "Obor názvů {0} nejde najít. Měli jste na mysli „{1}“?", - "Cannot_find_parameter_0_1225": "Nenašel se parametr {0}.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "Nenašla se společná cesta podadresářů pro vstupní soubory.", - "Cannot_find_type_definition_file_for_0_2688": "Nejde najít soubor definice pro {0}.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "Soubory deklarací typů nejde importovat. Zvažte možnost místo {1} naimportovat {0}.", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "Proměnnou {0} s vnějším oborem nejde inicializovat ve stejném oboru jako deklaraci {1} s oborem bloku.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "Nejde vyvolat objekt, který může být null.", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "Nejde vyvolat objekt, který může být null nebo nedefinovaný.", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "Nejde vyvolat objekt, který může být nedefinovaný.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale při destrukci pole se vždy pošle {0}.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale rozsah pole bude vždy posílat {0}.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale for-of bude vždy posílat {0}.", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Projekt {0} se nedá předřadit, protože nemá nastavenou hodnotu outFile.", - "Cannot_read_file_0_5083": "Nejde přečíst soubor {0}.", - "Cannot_read_file_0_Colon_1_5012": "Nejde číst soubor {0}: {1}", - "Cannot_redeclare_block_scoped_variable_0_2451": "Nejde předeklarovat proměnnou bloku {0}.", - "Cannot_redeclare_exported_variable_0_2323": "Exportovanou proměnnou {0} není možné znovu deklarovat.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Nejde předeklarovat identifikátor {0} v klauzuli catch.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "Nejde spustit volání funkce v poznámce typu.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Výstup projektu {0} se nedá aktualizovat, protože při čtení souboru {1} došlo k chybě.", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Pokud se nezadá příznak -jsx, nepůjde JSX použít.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Když se zadá příznak --isolatedModules, nejde pro obor názvů typu nebo obor názvů jen pro typ použít export import.", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Nejde používat importy, exporty nebo rozšíření modulu, pokud má příznak --module hodnotu none.", - "Cannot_use_namespace_0_as_a_type_2709": "Obor názvů {0} nejde použít jako typ.", - "Cannot_use_namespace_0_as_a_value_2708": "Obor názvů {0} nejde použít jako hodnotu.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "Klíčové slovo „this“ nejde použít v inicializátoru statické vlastnosti dekorované třídy.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "Soubor {0} se nedá zapsat, protože přepíše soubor .tsbuildinfo vygenerovaný odkazovaným projektem {1}.", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "Do souboru {0} se nedá zapisovat, protože by se přepsal více vstupními soubory.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "Do souboru {0} se nedá zapisovat, protože by přepsal vstupní soubor.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "Proměnná klauzule catch nemůže mít inicializátor.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "Pokud se zadá typ proměnné klauzule catch, jeho anotace musí být any nebo unknown.", - "Change_0_to_1_90014": "Změnit {0} na {1}", - "Change_all_extended_interfaces_to_implements_95038": "Změnit všechna rozšířená rozhraní na implements", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "Změnit všechny typy jsdoc-style na TypeScript", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "Změnit všechny typy jsdoc-style na TypeScript (a přidat | undefined do typů s možnou hodnotou null)", - "Change_extends_to_implements_90003": "Změnit extends na implements", - "Change_spelling_to_0_90022": "Změnit pravopis na {0}", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Zkontrolujte vlastnosti třídy, které sice jsou deklarované, ale nejsou nastavené v konstruktoru.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Zkontrolujte, jestli argumenty metod bind, call a apply odpovídají původní funkci.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Kontroluje se, jestli je {0} nejdelší odpovídající předpona pro {1}–{2}.", - "Circular_definition_of_import_alias_0_2303": "Cyklická definice aliasu importu {0}", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "Při překladu konfigurace se zjistila cykličnost: {0}.", - "Circularity_originates_in_type_at_this_location_2751": "Zdrojem cykličnosti je typ na tomto umístění.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "Třída {0} definuje členský přístupový objekt instance {1}, ale rozšířená třída {2} ho definuje jako členskou funkci instance.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "Třída {0} definuje členskou funkci instance {1}, ale rozšířená třída {2} ji definuje jako členský přístupový objekt instance.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "Třída {0} definuje vlastnost člena instance {1}, ale rozšířená třída {2} ji definuje jako členskou funkci instance.", - "Class_0_incorrectly_extends_base_class_1_2415": "Třída {0} nesprávně rozšiřuje základní třídu {1}.", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "Třída {0} nesprávně implementuje třídu {1}. Nechtěli jste rozšířit třídu {1} a dědit její členy jako podtřídu?", - "Class_0_incorrectly_implements_interface_1_2420": "Třída {0} nesprávně implementuje rozhraní {1}.", - "Class_0_used_before_its_declaration_2449": "Třída {0} se používá dříve, než se deklaruje.", - "Class_constructor_may_not_be_a_generator_1368": "Konstruktor třídy nemůže být generátor.", - "Class_constructor_may_not_be_an_accessor_1341": "Konstruktor třídy nemůže být přístupový objekt.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "Deklarace třídy nemůže implementovat seznam přetížení pro {0}.", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Deklarace tříd nemůžou mít více než jednu značku ‚@augments‘ nebo ‚@extends‘.", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Dekorátory tříd se nedají použít se statickým privátním identifikátorem. Zvažte možnost odebrat experimentální dekorátor.", - "Class_name_cannot_be_0_2414": "Třída nemůže mít název {0}.", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Když se cílí na ES5 s modulem {0}, název třídy nemůže být Object.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Statická strana třídy {0} nesprávně rozšiřuje statickou stranu základní třídy {1}.", - "Classes_can_only_extend_a_single_class_1174": "Třídy můžou rozšířit jenom jednu třídu.", - "Classes_may_not_have_a_field_named_constructor_18006": "Třídy nemůžou mít pole s názvem constructor.", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "Kód obsažený ve třídě se vyhodnocuje ve striktním režimu jazyka JavaScript, který toto použití {0} nepovoluje. Další informace najdete tady: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode", - "Command_line_Options_6171": "Možnosti příkazového řádku", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Zkompilujte projekt podle cesty k jeho konfiguračnímu souboru nebo do složky se souborem tsconfig.json.", - "Compiler_Diagnostics_6251": "Diagnostika kompilátoru", - "Compiler_option_0_expects_an_argument_6044": "Parametr kompilátoru {0} očekává argument.", - "Compiler_option_0_may_not_be_used_with_build_5094": "Možnost kompilátoru „--{0}“ se nesmí používat s „--build“.", - "Compiler_option_0_may_only_be_used_with_build_5093": "Možnost kompilátoru „--{0}“ se smí používat jenom s „--build“.", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "Možnost kompilátoru {0} hodnoty {1} je nestabilní. Ke ztlumení této chyby použijte noční TypeScript. Zkuste provést aktualizaci pomocí příkazu npm install -D typescript@next.", - "Compiler_option_0_requires_a_value_of_type_1_5024": "Parametr kompilátoru {0} vyžaduje hodnotu typu {1}.", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "Kompilátor si rezervuje název {0} při generování privátního identifikátoru pro nižší úroveň.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Zkompiluje projekt TypeScriptu umístěný v zadané cestě.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "Zkompiluje aktuální projekt (tsconfig.json v pracovním adresáři).", - "Compiles_the_current_project_with_additional_settings_6929": "Zkompiluje aktuální projekt s dalšími nastaveními.", - "Completeness_6257": "Úplnost", - "Composite_projects_may_not_disable_declaration_emit_6304": "Složené projekty nemůžou zakázat generování deklarací.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "Složené projekty nemůžou zakázat přírůstkovou kompilaci.", - "Computed_from_the_list_of_input_files_6911": "Vypočítáno ze seznamu vstupních souborů", - "Computed_property_names_are_not_allowed_in_enums_1164": "Názvy počítaných vlastností se ve výčtech nepovolují.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Ve výčtu, jehož členy mají hodnoty typu string, se nepovolují vypočítané hodnoty.", - "Concatenate_and_emit_output_to_single_file_6001": "Zřetězit a generovat výstup do jednoho souboru", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Našly se konfliktní definice pro: {0} v {1} a {2}. Zvažte možnost nainstalovat specifickou verzi této knihovny, aby se konflikt vyřešil.", - "Conflicts_are_in_this_file_6201": "V tomto souboru se nacházejí konflikty.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "Zvažte přidání modifikátoru „declare“ do této třídy.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Návratové typy signatury konstruktu {0} a {1} nejsou kompatibilní.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "Podpis konstruktoru s chybějící anotací návratového typu má implicitně návratový typ any.", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "Signatury konstruktů bez argumentů mají nekompatibilní návratové typy {0} a {1}.", - "Constructor_implementation_is_missing_2390": "Chybí implementace konstruktoru.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "Konstruktor třídy {0} je privátní a dostupný jenom v rámci deklarace třídy.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "Konstruktor třídy {0} je chráněný a dostupný jenom v rámci deklarace třídy.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "Když se notace typu konstruktoru používá v typu sjednocení, musí být uzavřená do závorky.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "Když se notace typu konstruktoru používá v typu průniku, musí být uzavřená do závorky.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "Konstruktory odvozených tříd musí obsahovat volání příkazu super.", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "Není zadaný obsažený soubor a nedá se určit kořenový adresář – přeskakuje se vyhledávání ve složce node_modules.", - "Containing_function_is_not_an_arrow_function_95128": "Obsahující funkce není funkcí šipky.", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "Určete, která metoda se používá k detekci souborů JS ve formátu modulu.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "Převod typu {0} na typ {1} může být chyba, protože ani jeden z těchto typů se s tím druhým dostatečně nepřekrývá. Pokud je to záměr, převeďte nejdříve výraz na unknown.", - "Convert_0_to_1_in_0_95003": "Převést {0} na {1} v {0}", - "Convert_0_to_mapped_object_type_95055": "Převést {0} na typ mapovaného objektu", - "Convert_all_const_to_let_95102": "Převést všechny const na let", - "Convert_all_constructor_functions_to_classes_95045": "Převést všechny funkce konstruktoru na třídy", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Převést všechny importy, které se nepoužívají jako hodnota, na importy, při kterých se importují jen typy.", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Převést všechny neplatné znaky na kód entity HTML", - "Convert_all_re_exported_types_to_type_only_exports_1365": "Převést všechny opětovně exportované typy na exporty, při kterých se exportují jen typy", - "Convert_all_require_to_import_95048": "Převést všechna volání require na import", - "Convert_all_to_async_functions_95066": "Převést vše na asynchronní funkce", - "Convert_all_to_bigint_numeric_literals_95092": "Převést vše na číselné literály bigint", - "Convert_all_to_default_imports_95035": "Převést vše na výchozí importy", - "Convert_all_type_literals_to_mapped_type_95021": "Převést všechny literály typů na namapovaný typ", - "Convert_arrow_function_or_function_expression_95122": "Převést funkci šipky nebo výraz funkce", - "Convert_const_to_let_95093": "Převést const na let", - "Convert_default_export_to_named_export_95061": "Převést výchozí export na pojmenovaný export", - "Convert_function_declaration_0_to_arrow_function_95106": "Převést deklaraci funkce {0} na funkci šipky", - "Convert_function_expression_0_to_arrow_function_95105": "Převést výraz funkce {0} na funkci šipky", - "Convert_function_to_an_ES2015_class_95001": "Převést funkci na třídu ES2015", - "Convert_invalid_character_to_its_html_entity_code_95100": "Převést neplatný znak na jeho kód entity HTML", - "Convert_named_export_to_default_export_95062": "Převést pojmenovaný export na výchozí export", - "Convert_named_imports_to_default_import_95170": "Převést pojmenované importy na výchozí import", - "Convert_named_imports_to_namespace_import_95057": "Převést pojmenované importy na import oboru názvů", - "Convert_namespace_import_to_named_imports_95056": "Převést import oboru názvů na pojmenované importy", - "Convert_overload_list_to_single_signature_95118": "Převést seznam přetížení na jednu signaturu", - "Convert_parameters_to_destructured_object_95075": "Převést parametry na destrukturovaný objekt", - "Convert_require_to_import_95047": "Převést require na import", - "Convert_to_ES_module_95017": "Převést na modul ES", - "Convert_to_a_bigint_numeric_literal_95091": "Převést na číselný literál bigint", - "Convert_to_anonymous_function_95123": "Převést na anonymní funkci", - "Convert_to_arrow_function_95125": "Převést na funkci šipky", - "Convert_to_async_function_95065": "Převést na asynchronní funkci", - "Convert_to_default_import_95013": "Převést na výchozí import", - "Convert_to_named_function_95124": "Převést na pojmenovanou funkci", - "Convert_to_optional_chain_expression_95139": "Převést na nepovinný výraz řetězu.", - "Convert_to_template_string_95096": "Převést na řetězec šablony", - "Convert_to_type_only_export_1364": "Převést na export, při kterém se exportují jen typy", - "Convert_to_type_only_import_1373": "Převést na import, při kterém se importují jen typy", - "Corrupted_locale_file_0_6051": "Soubor národního prostředí {0} je poškozený.", - "Could_not_convert_to_anonymous_function_95153": "Nepovedlo se převést na anonymní funkci.", - "Could_not_convert_to_arrow_function_95151": "Nepovedlo se převést na funkci šipky.", - "Could_not_convert_to_named_function_95152": "Nepovedlo se převést na pojmenovanou funkci.", - "Could_not_determine_function_return_type_95150": "Nepovedlo se určit návratový typ funkce.", - "Could_not_find_a_containing_arrow_function_95127": "Nepovedlo se najít obsahující funkci šipky.", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "Nenašel se soubor deklarací pro modul {0}. {1} má implicitně typ any.", - "Could_not_find_convertible_access_expression_95140": "Nepovedlo se najít převoditelný výraz přístupu.", - "Could_not_find_export_statement_95129": "Nešlo najít příkaz export.", - "Could_not_find_import_clause_95131": "Nešlo najít klauzuli import.", - "Could_not_find_matching_access_expressions_95141": "Nepovedlo se najít odpovídající výrazy přístupu.", - "Could_not_find_name_0_Did_you_mean_1_2570": "Nepodařilo se najít název {0}. Měli jste na mysli {1}?", - "Could_not_find_namespace_import_or_named_imports_95132": "Nepovedlo se najít import oboru názvů nebo pojmenované importy.", - "Could_not_find_property_for_which_to_generate_accessor_95135": "Nepovedlo se najít vlastnost, pro kterou se má vygenerovat přístupový objekt.", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Nepovedlo se přeložit cestu {0} s příponami {1}.", - "Could_not_write_file_0_Colon_1_5033": "Nedá se zapisovat do souboru {0}: {1}", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "Vytvořte pro generované soubory JavaScriptu soubory sourcemap.", - "Create_sourcemaps_for_d_ts_files_6614": "Pro soubory d.ts vytvořte soubory sourcemap.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Vytvoří tsconfig.json doporučenými nastaveními v pracovním adresáři.", - "DIRECTORY_6038": "ADRESÁŘ", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Deklarace rozšiřuje deklaraci v jiném souboru. Toto není možné serializovat.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0}. Explicitní anotace typu může generování deklarací odblokovat.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0} z modulu {1}. Explicitní anotace typu může generování deklarací odblokovat.", - "Declaration_expected_1146": "Očekává se deklarace.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Název deklarace je v konfliktu s integrovaným globálním identifikátorem {0}.", - "Declaration_or_statement_expected_1128": "Očekává se deklarace nebo příkaz.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Očekávala se deklarace nebo příkaz. Tento znak = následuje blok příkazů, takže pokud jste chtěli napsat destrukturující přiřazení, možná bude nutné uzavřít celé přiřazení do závorek.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Deklarace s kontrolními výrazy jednoznačného přiřazení musí mít také anotace typu.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Deklarace s inicializátory nemůžou mít také kontrolní výrazy jednoznačného přiřazení.", - "Declare_a_private_field_named_0_90053": "Deklarovat privátní pole s názvem {0}", - "Declare_method_0_90023": "Deklarovat metodu {0}", - "Declare_private_method_0_90038": "Deklarovat privátní metodu {0}", - "Declare_private_property_0_90035": "Deklarujte privátní vlastnost {0}.", - "Declare_property_0_90016": "Deklarovat vlastnost {0}", - "Declare_static_method_0_90024": "Deklarovat statickou metodu {0}", - "Declare_static_property_0_90027": "Deklarovat statickou vlastnost {0}", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Návratový typ funkce dekoratéru {0} se nedá přiřadit k typu {1}.", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Návratový typ funkce dekoratéru je {0}, ale očekává se, že bude void nebo any.", - "Decorators_are_not_valid_here_1206": "Dekorátory tady nejsou platné.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Dekorátory nejde použít na víc přístupových objektů get/set se stejným názvem.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "Pro „tyto“ parametry asi nejdou použít dekoratéry.", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Dekoratéry musí předcházet název a všechna klíčová slova deklarace vlastností.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Výchozí proměnné klauzule catch jako unknown namísto any.", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Výchozí export modulu má nebo používá privátní název {0}.", - "Default_library_1424": "Výchozí knihovna", - "Default_library_for_target_0_1425": "Výchozí knihovna pro cíl {0}", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definice následujících identifikátorů je v konfliktu s definicemi v jiném souboru: {0}", - "Delete_all_unused_declarations_95024": "Odstranit všechny nepoužívané deklarace", - "Delete_all_unused_imports_95147": "Odstranit všechny nepoužívané importy", - "Delete_all_unused_param_tags_95172": "Odstranit všechny nepoužívané značky @param", - "Delete_the_outputs_of_all_projects_6365": "Odstraňte výstupy všech projektů.", - "Delete_unused_param_tag_0_95171": "Odstranit nepoužívanou značku @param {0}", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Zastaralé] Použijte místo toho --jsxFactory. Určí objekt vyvolaný pro createElement při cílení na generování JSX react.", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Zastaralé] Použijte místo toho --outFile. Zřetězí a vygeneruje výstup do jednoho souboru.", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Zastaralé] Použijte místo toho --skipLibCheck. Přeskočí kontrolu typů výchozích souborů deklarací knihovny.", - "Deprecated_setting_Use_outFile_instead_6677": "Nastavení je zastaralé. Místo něj použijte outFile.", - "Did_you_forget_to_use_await_2773": "Nezapomněli jste použít await?", - "Did_you_mean_0_1369": "Měli jste na mysli {0}?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "Měli jste na mysli omezení {0} na typ new (...args: any[]) => {1}?", - "Did_you_mean_to_call_this_expression_6212": "Nechtěli jste zavolat tento výraz?", - "Did_you_mean_to_mark_this_function_as_async_1356": "Nechtěli jste označit tuto funkci jako async?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "Neměli jste v úmyslu použít znak :? Znak = může následovat pouze po názvu vlastnosti, když je obsahující objekt literálu součástí vzoru destrukturalizace.", - "Did_you_mean_to_use_new_with_this_expression_6213": "Nechtěli jste u tohoto výrazu použít new?", - "Digit_expected_1124": "Očekává se číslice.", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "Adresář {0} neexistuje. Všechna vyhledávání v něm se přeskočí.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "Adresář {0} neobsahuje package.json scope. Importy nebudou vyřešeny.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "V generovaných souborech JavaScriptu zakažte přidávání direktiv „use strict“.", - "Disable_checking_for_this_file_90018": "Zakázat kontrolu tohoto souboru", - "Disable_emitting_comments_6688": "Zakázat generování komentářů.", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "Zakažte generování deklarací s příznakem „@internal“ v komentářích JSDoc.", - "Disable_emitting_files_from_a_compilation_6660": "Zakažte generování souborů z kompilace.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "Zakažte generování souborů, pokud jsou při kontrole typů nahlášeny jakékoli chyby.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Zakažte v generovaném kódu mazání deklarací const enum.", - "Disable_error_reporting_for_unreachable_code_6603": "Zakažte hlášení chyb, pokud je kód nedosažitelný.", - "Disable_error_reporting_for_unused_labels_6604": "Zakažte hlášení chyb u nepoužitých popisků.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Zakázat v kompilovaném výstupu generování vlastních pomocných funkcí, jako je __extends.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Zakažte zahrnutí všech souborů knihoven, včetně výchozí lib.d.ts.", - "Disable_loading_referenced_projects_6235": "Zakažte načítání odkazovaných projektů.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "Zakažte v odkazech na složené projekty místo deklaračních souborů používat preferované zdrojové soubory.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "Zakažte při vytváření literálů objektů hlášení zbytečně velkého počtu chyb vlastností.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "Zakažte překlad odkazů symlink na jejich skutečnou cestu (realpath). Toto nastavení koreluje se stejným příznakem uzlu.", - "Disable_size_limitations_on_JavaScript_projects_6162": "Zakázat omezení velikosti v projektech JavaScriptu", - "Disable_solution_searching_for_this_project_6224": "Zakažte vyhledávání řešení pro tento projekt.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "Zakáže striktní kontroly generických signatur v typech funkcí.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "Zakázat v javascriptových projektech získávání typů", - "Disable_truncating_types_in_error_messages_6663": "Zakázat v chybových zprávách zkracování typů.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "Zakažte možnost používat zdrojové soubory místo souborů deklarací z odkazovaných projektů.", - "Disable_wiping_the_console_in_watch_mode_6684": "Zakažte vymazání konzole v režimu sledování.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "Při získávání typů se zakáže odvozování. Názvy souborů se vyhledají v projektu.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Zakázat import, require nebo zvětšování počtu souborů, které by typeScript měl přidat do projektu.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Zakažte odkazy na stejný soubor s nekonzistentně použitými malými a velkými písmeny.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Nepřidávat odkazy se třemi lomítky nebo importované moduly do seznamu kompilovaných souborů", - "Do_not_emit_comments_to_output_6009": "Negenerovat komentáře pro výstup", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Negenerovat deklarace pro kód s anotací @internal", - "Do_not_emit_outputs_6010": "Negenerovat výstupy", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "Negenerovat výstupy, pokud byly oznámeny chyby", - "Do_not_emit_use_strict_directives_in_module_output_6112": "Negenerujte direktivy use strict ve výstupu modulu.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "Nemazat deklarace konstantního výčtu v generovaném kódu", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "Negenerovat v kompilovaném výstupu vlastní pomocné funkce jako __extends", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "Nezahrnovat výchozí soubor knihovny (lib.d.ts)", - "Do_not_report_errors_on_unreachable_code_6077": "Neoznamují se chyby v nedosažitelném kódu.", - "Do_not_report_errors_on_unused_labels_6074": "Neoznamují se chyby v nepoužívaných popiscích.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "Nepřekládat skutečnou cestu symbolických odkazů", - "Do_not_truncate_error_messages_6165": "Nezkracovat chybové zprávy", - "Duplicate_function_implementation_2393": "Duplicitní implementace funkce", - "Duplicate_identifier_0_2300": "Duplicitní identifikátor {0}", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "Duplicitní identifikátor {0}. Kompilátor si vyhrazuje název {1} v oboru nejvyšší úrovně pro daný modul.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "Duplicitní identifikátor {0}. Kompilátor rezervuje název {1} v oboru nejvyšší úrovně modulu, který obsahuje asynchronní funkce.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "Duplicitní identifikátor {0}. Kompilátor rezervuje název {1}, když se generují odkazy super ve statických inicializátorech.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "Duplicitní identifikátor {0}. Kompilátor používá deklaraci {1} pro podporu asynchronních funkcí.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "Duplicitní identifikátor {0}. Statické elementy a elementy instancí nemůžou sdílet stejný privátní název.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "Duplicitní identifikátor arguments. Kompilátor pomocí identifikátoru arguments inicializuje parametry rest.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "Duplicitní identifikátor _newTarget. Kompilátor používá deklaraci proměnné _newTarget k zachycení odkazu na metavlastnost new.target.", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "Duplicitní identifikátor _this. Kompilátor pomocí deklarace proměnné _this zaznamenává odkaz na příkaz this.", - "Duplicate_index_signature_for_type_0_2374": "Duplicitní signatura indexu pro typ {0}.", - "Duplicate_label_0_1114": "Duplicitní popisek {0}", - "Duplicate_property_0_2718": "Duplicitní vlastnost {0}.", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Specifikátor dynamického importu musí být typu string, ale tady má typ {0}.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamické importy se podporují jen v případě, že příznak --module je nastavený na es2020, es2022, esnext, commonjs, amd, system, umd, node16 nebo nodenext.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dynamické importy můžou jako argumenty přijímat jenom specifikátor modulu a volitelný kontrolní výraz.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Dynamické importy podporují druhý argument pouze, pokud je možnost --module nastavena na hodnotu esnext, node16 nebo nodenext.", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Každý člen typu sjednocení {0} má signatury konstruktu, ale žádná z těchto signatur není kompatibilní s jinou signaturou.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Každý člen typu sjednocení {0} má signatury, ale žádná z těchto signatur není kompatibilní s jinou signaturou.", - "Editor_Support_6249": "Podpora editoru", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "Element má implicitně typ any, protože pomocí výrazu typu {0} není možné indexovat typ {1}.", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "Element má implicitně typ any, protože indexový výraz není typu number.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "Element má implicitně typ any, protože typ {0} nemá žádnou signaturu indexu.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "Element má implicitně typ any, protože typ {0} nemá žádnou signaturu indexu. Nechtěli jste zavolat {1}?", - "Emit_6246": "Generovat", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "Generovat pole třídy ECMAScript-standard-compliant.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "Vygeneruje na začátku výstupních souborů značku pořadí bajtů ve formátu UTF-8.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "Vygeneruje jediný soubor se zdrojovými mapováními namísto samostatného souboru.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "Vygenerujte profil procesoru v8 spuštěného kompilátoru pro ladění.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "Vygenerujte další JavaScript, aby se podpora importování modulů CommonJS ulehčila. Tím se za účelem kompatibility typů povolí „allowSyntheticDefaultImports“.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Vygenerujte pole třídy pomocí Define namísto Set.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "Vygenerujte metadata o typu návrhu pro dekorované deklarace ve zdrojových souborech.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "Generovat kompatibilnější kód, ale při iteraci použít režim s komentářem (verbose) a méně výkonný JavaScript.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "Vygeneruje zdroj spolu se zdrojovými mapováními v jednom souboru. Vyžaduje, aby byla nastavená možnost --inlineSourceMap nebo --sourceMap.", - "Enable_all_strict_type_checking_options_6180": "Povolí všechny možnosti striktní kontroly typů.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Povolte ve výstupu TypeScriptu barvu a formátování, aby byly chyby kompilátoru čitelnější.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "Povolte omezení, která v projektu TypeScriptu umožní používat odkazy na projekt.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "Povolte hlášení chyb u cest kódu, které funkce výslovně nevrátí.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "Povolte hlášení chyb u výrazů a deklarací s implicitním typem any.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "Povolit hlášení chyb v příkazech switch v případě fallthrough.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Povolit hlášení chyb v javascriptových souborech se zkontrolovanými typy.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Povolte hlášení chyb, když se místní proměnná nepřečte.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Povolte hlášení chyb, když má „this“ určený typ „any“.", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Povolte zkušební podporu pracovních verzí dekoratérů TC39 fáze 2.", - "Enable_importing_json_files_6689": "Povolte importování souborů .json.", - "Enable_project_compilation_6302": "Povolit kompilování projektu", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Povolte ve funkcích metody bind, call a apply.", - "Enable_strict_checking_of_function_types_6186": "Povolí striktní kontrolu typů funkcí.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "Povolí striktní kontrolu inicializace vlastností ve třídách.", - "Enable_strict_null_checks_6113": "Povolte striktní kontroly hodnot null.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "Povolte v konfiguračním souboru možnost experimentalDecorators.", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "Povolte v konfiguračním souboru příznak --jsx.", - "Enable_tracing_of_the_name_resolution_process_6085": "Povolte trasování procesu překladu IP adres.", - "Enable_verbose_logging_6713": "Povolte podrobné protokolování.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Povolí interoperabilitu generování mezi moduly CommonJS a ES prostřednictvím vytváření objektů oboru názvů pro všechny importy. Implikuje allowSyntheticDefaultImports.", - "Enables_experimental_support_for_ES7_decorators_6065": "Povolí experimentální podporu pro dekorátory ES7.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "Povolí experimentální podporu pro generování metadat typu pro dekorátory.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "Vynucuje použití indexovaných přístupových objektů pro klíče deklarované přes indexovaný typ.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "Zajistěte označení přepisovaných členů v odvozených třídách modifikátorem override.", - "Ensure_that_casing_is_correct_in_imports_6637": "Při importu ověřovat správnost používání malých a velkých písmen.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Zajistit bezpečnou transpilaci všech souborů bez spoléhání na jiné importy.", - "Ensure_use_strict_is_always_emitted_6605": "Vždy zajistěte generování direktivy „use strict“.", - "Entry_point_for_implicit_type_library_0_1420": "Vstupní bod pro knihovnu implicitních typů {0}", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Vstupní bod pro knihovnu implicitních typů {0} s packageId {1}", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Vstupní bod pro knihovnu typů {0} zadanou v compilerOptions", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "Vstupní bod pro knihovnu typů {0} zadanou v compilerOptions s packageId {1}", - "Enum_0_used_before_its_declaration_2450": "Výčet {0} se používá dříve, než se deklaruje.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Deklarace výčtu jdou sloučit jenom s oborem názvů nebo jinými deklaracemi výčtu.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "Všechny deklarace výčtu musí být konstantní nebo nekonstantní.", - "Enum_member_expected_1132": "Očekává se člen výčtu.", - "Enum_member_must_have_initializer_1061": "Člen výčtu musí mít inicializátor.", - "Enum_name_cannot_be_0_2431": "Název výčtu nemůže být {0}.", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Typ výčtu {0} má členy s inicializátory, které nejsou literály.", - "Errors_Files_6041": "Soubory chyb", - "Examples_Colon_0_6026": "Příklady: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "Nadměrná hloubka zásobníku při porovnávání typů {0} a {1}", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Očekávané argumenty typu {0}–{1}; zadejte je se značkou @extends.", - "Expected_0_arguments_but_got_1_2554": "Očekával se tento počet argumentů: {0}. Počet předaných argumentů: {1}", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Očekával se tento počet argumentů: {0}, ale byl přijat tento počet: {1}. Nezapomněli jste zahrnout void do argumentu typu pro objekt Promise?", - "Expected_0_type_arguments_but_got_1_2558": "Očekávaly se argumenty typu {0}, ale předaly se argumenty typu {1}.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Očekávané argumenty typu {0}; zadejte je se značkou @extends.", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Očekával se 1 argument, ale bylo jich 0. New Promise() potřebuje pomocný parametr JSDoc k vytvoření resolve, který se dá volat bez argumentů.", - "Expected_at_least_0_arguments_but_got_1_2555": "Očekával se aspoň tento počet argumentů: {0}. Počet předaných argumentů: {1}", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "Očekávala se odpovídající ukončující značka JSX pro {0}.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Pro fragment JSX se očekávala odpovídající uzavírací značka.", - "Expected_for_property_initializer_1442": "Pro inicializátor vlastnosti se očekával znak =.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Očekávaný typ pole {0} v souboru package.json byl {1}, získal se typ {2}.", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Experimentální podpora dekorátorů je funkce, která se v budoucí verzi může změnit. Toto upozornění odstraníte nastavením možnosti experimentalDecorators v tsconfig nebo jsconfig.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Explicitně zadaný druh překladu modulu: {0}.", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Pokud není možnost target nastavená na es2016 nebo novější, nedají se hodnoty bigint umocnit.", - "Export_0_from_module_1_90059": "Exportovat {0} z modulu {1}", - "Export_all_referenced_locals_90060": "Exportovat všechny odkazované místní hodnoty", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "Přiřazení exportu nelze použít, pokud jsou cílem moduly ECMAScript. Zkuste místo toho použít export default nebo jiný formát modulu.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "Když má příznak --module hodnotu system, nepodporuje se přiřazení exportu.", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "Konflikty deklarace exportu s exportovanou deklarací {0}", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "Deklarace exportu nejsou povolené v oboru názvů.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "Specifikátor exportu {0} neexistuje v package.json scope na cestě {1}.", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "Alias exportovaného typu {0} má nebo používá privátní název {1}.", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "Alias exportovaného typu {0} má nebo používá privátní název {1} z modulu {2}.", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "Exportovaná proměnná {0} má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "Exportovaná proměnná {0} má nebo používá název {1} z privátního modulu {2}.", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "Exportovaná proměnná {0} má nebo používá privátní název {1}.", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Exporty a přiřazení exportů nejsou povolené v rozšířeních modulů.", - "Expression_expected_1109": "Očekával se výraz.", - "Expression_or_comma_expected_1137": "Očekával se výraz nebo čárka.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Výraz vytvoří typ řazené kolekce členů, který se nedá reprezentovat, protože je příliš velký.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Výraz vytvoří typ sjednocení, který se nedá reprezentovat, protože je příliš složitý.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Výraz se přeloží na identifikátor _super, pomocí kterého kompilátor zaznamenává odkaz na základní třídu.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Výraz se vyhodnocuje na deklaraci proměnné _newTarget, kterou kompilátor používá k zachycení odkazu na metavlastnost new.target.", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Výraz se přeloží na deklaraci proměnné _this, pomocí které kompilátor zaznamenává odkazy na příkaz this.", - "Extract_constant_95006": "Extrahovat konstantu", - "Extract_function_95005": "Extrahovat funkci", - "Extract_to_0_in_1_95004": "Extrahovat do {0} v {1}", - "Extract_to_0_in_1_scope_95008": "Extrahovat do {0} v oboru {1}", - "Extract_to_0_in_enclosing_scope_95007": "Extrahovat do {0} v nadřazeném oboru", - "Extract_to_interface_95090": "Extrahovat do rozhraní", - "Extract_to_type_alias_95078": "Extrahovat do aliasu typu", - "Extract_to_typedef_95079": "Extrahovat do typedef", - "Extract_type_95077": "Typ extrahování", - "FILE_6035": "SOUBOR", - "FILE_OR_DIRECTORY_6040": "SOUBOR NEBO ADRESÁŘ", - "Failed_to_parse_file_0_Colon_1_5014": "Nepovedlo se parsovat soubor {0}: {1}.", - "Fallthrough_case_in_switch_7029": "Případ Fallthrough v příkazu switch", - "File_0_does_not_exist_6096": "Soubor {0} neexistuje.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Podle dřívějších vyhledávání v mezipaměti soubor {0} neexistuje.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "Soubor {0} existuje – použijte ho jako výsledek překladu IP adres.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "Podle dřívějších vyhledávání v mezipaměti soubor {0} existuje.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Soubor {0} má nepodporovanou příponu. Jediné podporované přípony jsou {1}.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Soubor {0} má nepodporovanou příponu, a proto se přeskočí.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Soubor {0} je javascriptový soubor. Nechtěli jste povolit možnost allowJs?", - "File_0_is_not_a_module_2306": "Soubor {0} není modul.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Soubor {0} není uvedený na seznamu souborů projektu {1}. Projekty musí uvádět všechny soubory nebo používat vzor include.", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Soubor {0} není pod kořenovým adresářem rootDir {1}. Očekává se, že rootDir bude obsahovat všechny zdrojové soubory.", - "File_0_not_found_6053": "Soubor {0} se nenašel.", - "File_Management_6245": "Správa souborů", - "File_change_detected_Starting_incremental_compilation_6032": "Zjistila se změna souboru. Spouští se přírůstková kompilace...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Soubor je modul CommonJS, protože {0} nemá pole type", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Soubor je modul CommonJS, protože {0} má pole type, jehož hodnota není module", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "Soubor je modul CommonJS, protože se nenašel package.json", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "Soubor je modul ECMAScript, protože {0} má pole type s hodnotou module", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "Soubor je modul CommonJS; může být převeden na modul ES.", - "File_is_default_library_for_target_specified_here_1426": "Soubor je výchozí knihovna pro cíl, který se zadal na tomto místě.", - "File_is_entry_point_of_type_library_specified_here_1419": "Soubor je vstupní bod knihovny typů, která se zadala na tomto místě.", - "File_is_included_via_import_here_1399": "Soubor se zahrnuje pomocí importu na tomto místě.", - "File_is_included_via_library_reference_here_1406": "Soubor se zahrnuje pomocí odkazu na knihovnu na tomto místě.", - "File_is_included_via_reference_here_1401": "Soubor se zahrnuje pomocí odkazu na tomto místě.", - "File_is_included_via_type_library_reference_here_1404": "Soubor se zahrnuje pomocí odkazu na knihovnu typů na tomto místě.", - "File_is_library_specified_here_1423": "Soubor je knihovna zadaná na tomto místě.", - "File_is_matched_by_files_list_specified_here_1410": "Soubor se srovnává se seznamem files zadaným na tomto místě.", - "File_is_matched_by_include_pattern_specified_here_1408": "Soubor se srovnává podle vzoru zahrnutí zadaného na tomto místě.", - "File_is_output_from_referenced_project_specified_here_1413": "Soubor je výstup z odkazovaného projektu zadaného na tomto místě.", - "File_is_output_of_project_reference_source_0_1428": "Soubor je výstup zdroje odkazů na projekt {0}.", - "File_is_source_from_referenced_project_specified_here_1416": "Soubor je zdroj z odkazovaného projektu zadaného na tomto místě.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Název souboru {0} se od už zahrnutého názvu souboru {1} liší jenom velikostí písmen.", - "File_name_0_has_a_1_extension_stripping_it_6132": "Název souboru {0} má příponu {1} – odstraňuje se", - "File_redirects_to_file_0_1429": "Soubor se přesměrovává na soubor {0}.", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Specifikace souboru nemůže obsahovat nadřazený adresář (..), který se vyskytuje za rekurzivním zástupným znakem adresáře (**): {0}.", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "Specifikace souboru nemůže končit rekurzivním zástupným znakem adresáře (**): {0}.", - "Filters_results_from_the_include_option_6627": "Filtrovat výsledky možnosti „zahrnout“.", - "Fix_all_detected_spelling_errors_95026": "Opravit všechny zjištěné pravopisné chyby", - "Fix_all_expressions_possibly_missing_await_95085": "Opravit všechny výrazy, kde je možné, že chybí await", - "Fix_all_implicit_this_errors_95107": "Opravit všechny chyby implicit-'this'", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Opravit všechny nesprávné návratové typy asynchronních funkcí", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Smyčky „For await“ nejde použít uvnitř statického bloku třídy.", - "Found_0_errors_6217": "Našel se tento počet chyb: {0}.", - "Found_0_errors_Watching_for_file_changes_6194": "Byl nalezen tento počet chyb: {0}. Sledují se změny souborů.", - "Found_0_errors_in_1_files_6261": "V {1} souborech byly nalezeny chyby ({0}).", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Ve stejném souboru byly nalezeny chyby ({0}). Začínají na: {1}", - "Found_1_error_6216": "Našla se 1 chyba.", - "Found_1_error_Watching_for_file_changes_6193": "Byla nalezena 1 chyba. Sledují se změny souborů.", - "Found_1_error_in_1_6259": "Našla se 1 chyba v {1}.", - "Found_package_json_at_0_6099": "Soubor package.json se našel v {0}.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5. Definice tříd jsou automaticky ve striktním režimu.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5. Moduly jsou automaticky ve striktním režimu.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Výraz funkce s chybějící anotací návratového typu má implicitně návratový typ {0}.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Implementace funkce chybí nebo nenásleduje hned po deklaraci.", - "Function_implementation_name_must_be_0_2389": "Název implementace funkce musí být {0}.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Funkce implicitně obsahuje návratový typ any, protože neobsahuje anotaci návratového typu a odkazuje se na ni přímo nebo nepřímo v jednom z jejích návratových výrazů.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Ve funkci chybí koncový příkaz return a návratový typ neobsahuje undefined.", - "Function_not_implemented_95159": "Funkce není implementovaná.", - "Function_overload_must_be_static_2387": "Přetížení funkce musí být statické.", - "Function_overload_must_not_be_static_2388": "Přetížení funkce nesmí být statické.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "Když se notace typu funkce používá v typu sjednocení, musí být uzavřená do závorky.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "Když se notace typu funkce používá v typu průniku, musí být uzavřená do závorky.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "Typ funkce s chybějící anotací návratového typu má implicitně návratový typ {0}.", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "Funkce s těly se dá sloučit jenom s třídami, které jsou ambientní.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "Vygenerujte ze souborů TypeScriptu a JavaScriptu projektu soubory d.ts.", - "Generate_get_and_set_accessors_95046": "Generovat přístupové objekty get a set", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "Generovat přístupové objekty get a set pro všechny přepisující vlastnosti", - "Generates_a_CPU_profile_6223": "Vygeneruje profil procesoru.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "Pro každý odpovídající soubor .d.ts vygeneruje sourcemap.", - "Generates_an_event_trace_and_a_list_of_types_6237": "Generuje trasování události a seznam typů.", - "Generates_corresponding_d_ts_file_6002": "Generuje odpovídající soubor .d.ts.", - "Generates_corresponding_map_file_6043": "Generuje odpovídající soubor .map.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Generátor má implicitně typ yield {0}, protože nevydává žádné hodnoty. Zvažte možnost přidat anotaci návratového typu.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "Generátory nejsou v ambientním kontextu povolené.", - "Generic_type_0_requires_1_type_argument_s_2314": "Obecný typ {0} vyžaduje argumenty typu {1}.", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Obecný typ {0} vyžaduje konkrétní počet argumentů ({1} až {2}).", - "Global_module_exports_may_only_appear_at_top_level_1316": "Exporty globálního modulu se můžou objevit jenom na nejvyšší úrovni.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "Exporty globálního modulu se můžou objevit jenom v souborech deklarací.", - "Global_module_exports_may_only_appear_in_module_files_1314": "Exporty globálního modulu se můžou objevit jenom v souborech modulů.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "Globální typ {0} musí být typu třída nebo rozhraní.", - "Global_type_0_must_have_1_type_parameter_s_2317": "Globální typ {0} musí mít parametry typu {1}.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "Opakované kompilace --incremental a --watch předpokládají, že změny v souboru budou mít vliv jen na soubory, které na něm přímo závisejí.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "Opakované kompilace v projektech, které používají režimy „incremental“ a „watch“ předpokládají, že změny v souboru budou mít vliv pouze na soubory, které na daném souboru přímo závisejí.", - "Hexadecimal_digit_expected_1125": "Očekávala se šestnáctková číslice.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "Očekával se identifikátor. {0} je vyhrazené slovo na nejvyšší úrovni modulu.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "Očekával se identifikátor. Ve striktním režimu je {0} rezervované slovo.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "Očekával se identifikátor. Ve striktním režimu je {0} rezervované slovo. Definice tříd jsou automaticky ve striktním režimu.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "Očekával se identifikátor. Ve striktním režimu je {0} rezervované slovo. Moduly jsou automaticky ve striktním režimu.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Očekává se identifikátor. {0} je rezervované slovo, které se tady nedá použít.", - "Identifier_expected_1003": "Očekával se identifikátor.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Očekává se identifikátor. __esModule je při transformaci modulů ECMAScript rezervované jako označení exportu.", - "Identifier_or_string_literal_expected_1478": "Očekává se identifikátor nebo řetězcový literál.", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Pokud balíček ‚{0}‘ ve skutečnosti zveřejňuje tento modul, zvažte možnost poslat žádost o přijetí změn, aby se připojila adresa ‚https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}‘", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Pokud balíček {0} skutečně zpřístupňuje tento modul, zkuste přidat nový soubor deklarace (.d.ts), který obsahuje declare module {1};", - "Ignore_this_error_message_90019": "Ignorovat tuto chybovou zprávu", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "Ignoruje se tsconfig.js, zkompiluje zadané soubory s výchozími možnostmi kompilátoru.", - "Implement_all_inherited_abstract_classes_95040": "Implementovat všechny zděděné abstraktní třídy", - "Implement_all_unimplemented_interfaces_95032": "Implementovat všechna neimplementovaná rozhraní", - "Implement_inherited_abstract_class_90007": "Implementovat zděděnou abstraktní třídu", - "Implement_interface_0_90006": "Implementovat rozhraní {0}", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Klauzule implements exportované třídy {0} má nebo používá privátní název {1}.", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Implicitní převod symbol na string za běhu neproběhne úspěšně. Zvažte možnost zabalit tento výraz do String(...).", - "Import_0_from_1_90013": "Importovat {0} z: {1}", - "Import_assertion_values_must_be_string_literal_expressions_2837": "Hodnoty kontrolních výrazů importu musí být výrazy formou řetězcových literálů.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "V příkazech, které se překládají na volání require commonjs, se kontrolní výrazy importu nepovolují.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Kontrolní výrazy importu jsou podporovány pouze v případě, že je možnost --module nastavena na hodnotu esnext nebo nodenext.", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Kontrolní výrazy importu se nedají použít s importy nebo exporty, které jsou jenom typ.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Přiřazení importu nelze použít, pokud jsou cílem moduly ECMAScript. Zkuste místo toho použít import * as ns from \"mod\", import {a} from \"mod\", import d from \"mod\" nebo jiný formát modulu.", - "Import_declaration_0_is_using_private_name_1_4000": "Deklarace importu {0} používá privátní název {1}.", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Deklarace importu je v konfliktu s místní deklarací {0}.", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Deklarace importu v oboru názvů nemůžou odkazovat na modul.", - "Import_emit_helpers_from_tslib_6139": "Importovat pomocné rutiny pro generování z tslib", - "Import_may_be_converted_to_a_default_import_80003": "Import se může převést na výchozí import.", - "Import_name_cannot_be_0_2438": "Název importu nemůže být {0}.", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "Deklarace importu nebo exportu v deklaraci ambientního modulu nemůže odkazovat na modul pomocí jeho relativního názvu.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "Specifikátor importu {0} neexistuje v package.json scope na cestě {1}.", - "Imported_via_0_from_file_1_1393": "Importováno přes {0} ze souboru {1}", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "Importováno přes {0} ze souboru {1}, aby se provedl import importHelpers tak, jak je to zadáno v compilerOptions", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "Importováno přes {0} ze souboru {1}, aby se provedl import výrobních funkcí jsx a jsxs", - "Imported_via_0_from_file_1_with_packageId_2_1394": "Importováno přes {0} ze souboru {1} s packageId {2}", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importováno přes {0} ze souboru {1} s packageId {2}, aby se provedl import importHelpers tak, jak je to zadáno v compilerOptions", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importováno přes {0} ze souboru {1} s packageId {2}, aby se provedl import výrobních funkcí jsx a jsxs", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importy nejsou povolené v rozšířeních modulů. Zvažte jejich přesunutí do uzavírajícího externího modulu.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Inicializátor členu v deklaracích ambientního výčtu musí být konstantní výraz.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Ve výčtu s víc deklaracemi může být jenom u jedné deklarace vynechaný inicializátor u prvního elementu výčtu.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "Zahrnout seznam souborů. Tato možnost, na rozdíl od možnosti „include“, nepodporuje vzory glob.", - "Include_modules_imported_with_json_extension_6197": "Zahrnout moduly importované s příponou .json", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Do souborů sourcemap v generovaném JavaScriptu zahrňte zdrojový kód.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Zahrňte do generovaného JavaScriptu soubory sourcemap.", - "Includes_imports_of_types_referenced_by_0_90054": "Zahrnuje importy typů, na které odkazuje {0}", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Včetně --watch, -w začne sledovat aktuální projekt ohledně změn souboru. Po nastavení můžete konfigurovat režim sledování pomocí:", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "Signatura indexu pro typ {0} chybí v typu {1}.", - "Index_signature_in_type_0_only_permits_reading_2542": "Signatura indexu v typu {0} povoluje jen čtení.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Jednotlivé deklarace ve sloučené deklaraci {0} musí být všechny exportované nebo všechny místní.", - "Infer_all_types_from_usage_95023": "Odvodit všechny typy z použití", - "Infer_function_return_type_95148": "Odvodit návratový typ funkce", - "Infer_parameter_types_from_usage_95012": "Odvodit typy parametrů z využití", - "Infer_this_type_of_0_from_usage_95080": "Vyvodit typ this pro {0} z použití", - "Infer_type_of_0_from_usage_95011": "Odvodit typ {0} z využití", - "Initialize_property_0_in_the_constructor_90020": "Inicializovat vlastnost {0} v konstruktoru", - "Initialize_static_property_0_90021": "Inicializovat statickou vlastnost {0}", - "Initializer_for_property_0_2811": "Inicializátor vlastnosti „{0}“", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Inicializátor instance členské proměnné {0} nemůže odkazovat na identifikátor {1} deklarovaný v konstruktoru.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Inicializátor tomuto elementu vazby neposkytuje žádnou hodnotu. Element vazby nemá žádnou výchozí hodnotu.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "Inicializátory nejsou povolené v ambientních kontextech.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicializuje projekt TypeScript a vytvoří soubor tsconfig.json.", - "Insert_command_line_options_and_files_from_a_file_6030": "Vložte parametry příkazového řádku a soubory ze souboru.", - "Install_0_95014": "Nainstalovat {0}", - "Install_all_missing_types_packages_95033": "Nainstalovat všechny chybějící balíčky typů", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "Rozhraní {0} nemůže současně rozšiřovat typ {1} i {2}.", - "Interface_0_incorrectly_extends_interface_1_2430": "Rozhraní {0} nesprávně rozšiřuje rozhraní {1}.", - "Interface_declaration_cannot_have_implements_clause_1176": "Deklarace rozhraní nemůže obsahovat klauzuli implements.", - "Interface_must_be_given_a_name_1438": "Rozhraní musí mít název.", - "Interface_name_cannot_be_0_2427": "Název rozhraní nemůže být {0}.", - "Interop_Constraints_6252": "Omezení spolupráce", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "Interpretujte volitelné typy vlastností jako zapsané, místo přidání „undefined“.", - "Invalid_character_1127": "Neplatný znak", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "Neplatný specifikátor importu {0} nemá žádná možná řešení.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Neplatný název modulu v rozšíření. Modul {0} se převede na netypový modul v {1}, který se nedá rozšířit.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "V rozšíření je neplatný název modulu, modul {0} se nedá najít.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Neplatný volitelný řetěz z nového výrazu. Chtěli jste volat {0}()?", - "Invalid_reference_directive_syntax_1084": "Neplatná syntaxe direktivy reference", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Neplatné použití „{0}“. Nelze jej použít uvnitř statického bloku třídy.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Neplatné použití {0}. Moduly jsou automaticky ve striktním režimu.", - "Invalid_use_of_0_in_strict_mode_1100": "Neplatné použití {0} ve striktním režimu", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Neplatná hodnota pro jsxFactory. {0} není platný identifikátor nebo kvalifikovaný název.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Neplatná hodnota pro jsxFragmentFactory. {0} není platný identifikátor nebo kvalifikovaný název.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Neplatná hodnota --reactNamespace. {0} není platný identifikátor.", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "Pravděpodobně chybí čárka, která by oddělila tyto dva výrazy šablony. Tvoří výraz šablony se značkami, který se nedá vyvolat.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Typ prvku {0} není platný prvek JSX.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Typ instance {0} není platný prvek JSX.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Návratový typ {0} není platný prvek JSX.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Značka JSDoc @{0} {1} neodpovídá klauzuli extends {2}.", - "JSDoc_0_is_not_attached_to_a_class_8022": "Značka JSDoc @{0} není připojená k třídě.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc ... se může nacházet jen v posledním parametru signatury.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Značka JSDoc @param má název {0}, ale neexistuje žádný parametr s tímto názvem.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Značka JSDoc @param má název {0}, ale žádný parametr s tímto názvem neexistuje. Musí odpovídat hodnotě arguments, pokud má typ pole.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Značka JSDoc @typedef by měla mít poznámku k typu nebo by za ní měly následovat značky @property nebo @member.", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Typy JSDoc se můžou používat jenom v dokumentačních komentářích.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Typy JSDoc se můžou přesunout na typy TypeScript.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Atributy JSX musí mít přiřazený neprázdný výraz.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "Element JSX {0} nemá odpovídající uzavírací značku.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "Třída elementu JSX nepodporuje atributy, protože nemá vlastnost {0}.", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "Element JSX má implicitně typ any, protože neexistuje žádné rozhraní JSX.{0}.", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "Element JSX má implicitně typ any, protože neexistuje globální typ JSX.Element.", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "Typ elementu JSX {0} nemá žádnou signaturu konstrukce nebo volání.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "Elementy JSX nemůžou mít víc atributů se stejným názvem.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "Výrazy JSX nemůžou používat operátor čárky. Nechtěli jste napsat pole?", - "JSX_expressions_must_have_one_parent_element_2657": "Výrazy JSX musí mít jeden nadřazený element.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "Fragment JSX nemá odpovídající uzavírací značku.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "Výrazy přístupu k vlastnosti JSX nemůžou obsahovat názvy oborů názvů JSX.", - "JSX_spread_child_must_be_an_array_type_2609": "Podřízený objekt JSX spread musí být typu pole.", - "JavaScript_Support_6247": "Podpora JavaScriptu", - "Jump_target_cannot_cross_function_boundary_1107": "Cíl odkazu nemůže překročit hranici funkce.", - "KIND_6034": "DRUH", - "Keywords_cannot_contain_escape_characters_1260": "Klíčová slova nemůžou obsahovat řídicí znaky.", - "LOCATION_6037": "UMÍSTĚNÍ", - "Language_and_Environment_6254": "Jazyk a prostředí", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "Levá strana operátoru čárky se nepoužívá a nemá žádné vedlejší účinky.", - "Library_0_specified_in_compilerOptions_1422": "Knihovna {0} zadaná v compilerOptions", - "Library_referenced_via_0_from_file_1_1405": "Knihovna odkazovaná přes {0} ze souboru {1}", - "Line_break_not_permitted_here_1142": "Na tomto místě se konec řádku nepovoluje.", - "Line_terminator_not_permitted_before_arrow_1200": "Konec řádku před šipkou se nepovoluje.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "Seznam přípon názvů souborů, které se mají vyhledat při překladu modulu", - "List_of_folders_to_include_type_definitions_from_6161": "Seznam složek, ze kterých se zahrnou definice typů", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Seznam kořenových složek, jejichž kombinovaný obsah představuje strukturu projektu za běhu", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Načítá se {0} z kořenového adresáře {1}, umístění kandidáta {2}.", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Načítá se modul {0} ze složky node_modules. Cílový typ souboru je {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Načítá se modul jako soubor/složka, umístění kandidátského modulu: {0}, cílový typ souboru: {1}.", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Národní prostředí musí mít tvar nebo . Třeba {0} nebo {1}.", - "Log_paths_used_during_the_moduleResolution_process_6706": "Cesty protokolu používané v procesu moduleResolution.", - "Longest_matching_prefix_for_0_is_1_6108": "Nejdelší odpovídající předpona pro {0} je {1}.", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "Hledání ve složce node_modules, počáteční umístění {0}", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "Nastavit všechna volání metody super() prvním příkazem v jejich konstruktoru", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Vytvořte klíč jenom ze zpětných řetězců místo z řetězců, čísel nebo symbolů (možnost ze starší verze).", - "Make_super_call_the_first_statement_in_the_constructor_90002": "Nastavit volání metody super() jako první příkaz v konstruktoru", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Typu mapovaného objektu má implicitně typ šablony any.", - "Matched_0_condition_1_6403": "Odpovídá {0} podmínce {1}", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Porovnává se ve výchozím nastavení se vzorem zahrnutí **/*.", - "Matched_by_include_pattern_0_in_1_1407": "Porovnáváno podle vzoru zahrnutí {0} v {1}", - "Member_0_implicitly_has_an_1_type_7008": "Člen {0} má implicitně typ {1}.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Člen {0} má implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z použití.", - "Merge_conflict_marker_encountered_1185": "Zjistila se značka konfliktu sloučení.", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "Spojená deklarace {0} nemůže obsahovat výchozí deklaraci exportu. Zvažte namísto toho možnost přidat samostatnou deklaraci export default {0}.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "Metavlastnost {0} je povolená jenom v těle deklarace funkce, výrazu funkce nebo konstruktoru.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Metoda {0} nemůže mít implementaci, protože je označená jako abstraktní.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Metoda {0} z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Metoda {0} z exportovaného rozhraní má nebo používá privátní název {1}.", - "Method_not_implemented_95158": "Metoda není implementovaná.", - "Modifiers_cannot_appear_here_1184": "Tady nejde použít modifikátory.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Modul {0} se dá importovat podle výchozího nastavení jen pomocí příznaku {1}.", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "Modul {0} nejde importovat pomocí této konstrukce. Specifikátor se převede jenom na modul ES, který se nedá importovat s příkazem require. Místo toho použijte import ECMAScript.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "Modul {0} deklaruje {1} místně, ale exportuje se jako {2}.", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "Modul {0} deklaruje {1} místně, ale neexportuje se.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "Modul {0} neodkazuje na typ, ale používá se tady jako typ. Měli jste na mysli typeof import('{0}')?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "Modul {0} neodkazuje na hodnotu, ale používá se tady jako hodnota.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "Modul {0} už exportoval člena s názvem {1}. Zvažte možnost vyřešení nejednoznačnosti explicitním opakováním exportu.", - "Module_0_has_no_default_export_1192": "Modul {0} nemá žádný výchozí export.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "Modul {0} nemá žádný výchozí export. Nechtěli jste místo toho použít import { {1} } from {0}?", - "Module_0_has_no_exported_member_1_2305": "V modulu {0} není žádný exportovaný člen {1}.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Modul {0} nemá žádný exportovaný člen {1}. Nechtěli jste místo toho použít import { {1} } from {0}?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Modul {0} je skrytý místní deklarací se stejným názvem.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Modul {0} používá export = a nedá se použít s možností export *.", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Modul {0} se převedl jako ambientní modul deklarovaný v {1}, protože tento soubor nebyl upraven.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Modul {0} se převedl jako lokálně deklarovaný ambientní modul v souboru {1}.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Modul {0} se přeložil na {1}, není ale nastavená možnost --jsx.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Modul {0} se přeložil na {1}, ale nepoužívá se --resolveJsonModule.", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Názvy deklarací modulů můžou používat jenom řetězce v jednoduchých nebo dvojitých uvozovkách.", - "Module_name_0_matched_pattern_1_6092": "Název modulu {0}, odpovídající vzor {1}", - "Module_name_0_was_not_resolved_6090": "======== Název modulu {0} nebyl přeložen. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== Název modulu {0} byl úspěšně přeložen na {1}. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== Název modulu {0} se úspěšně přeložil na {1} s ID balíčku {2}. ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "Druh překladu modulu nebyl určen, použije se {0}.", - "Module_resolution_using_rootDirs_has_failed_6111": "Překlad modulu pomocí rootDirs se nepovedl.", - "Modules_6244": "Moduly", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "Přesunout modifikátory elementu popsané řazené kolekce členů na popisky", - "Move_to_a_new_file_95049": "Přesunout do nového souboru", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Více po sobě jdoucích číselných oddělovačů se nepovoluje.", - "Multiple_constructor_implementations_are_not_allowed_2392": "Víc implementací konstruktoru se nepovoluje.", - "NEWLINE_6061": "NOVÝ ŘÁDEK", - "Name_is_not_valid_95136": "Název není platný.", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Pojmenovaná vlastnost {0} není u typu {1} stejná jako u typu {2}.", - "Namespace_0_has_no_exported_member_1_2694": "Obor názvů {0} nemá žádný exportovaný člen {1}.", - "Namespace_must_be_given_a_name_1437": "Obor názvů musí mít název.", - "Namespace_name_cannot_be_0_2819": "Název oboru názvů nemůže být „{0}“.", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Žádný základní konstruktor nemá zadaný počet argumentů typu.", - "No_constituent_of_type_0_is_callable_2755": "Žádný konstituent typu {0} se nedá zavolat.", - "No_constituent_of_type_0_is_constructable_2759": "Žádný konstituent typu {0} se nedá vytvořit.", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "V typu {1} se nenašla žádná signatura indexu s typem parametru {0}.", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "V konfiguračním souboru {0} se nenašly žádné vstupy. Pro zahrnutí jsou zadané tyto cesty: {1} a pro vyloučení tyto cesty: {2}.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "Funkce už není podporovaná. Ve starších verzích sloužila k ručnímu nastavení kódování textu při čtení souborů.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "Žádné přetížení neočekává tento počet argumentů: {0}. Existují ale přetížení, která očekávají buď {1}, nebo tento počet argumentů: {2}", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "Žádné přetížení neočekává tento počet argumentů typů: {0}. Existují ale přetížení, která očekávají buď {1}, nebo tento počet argumentů typů: {2}", - "No_overload_matches_this_call_2769": "Žádné přetížení neodpovídá tomuto volání.", - "No_type_could_be_extracted_from_this_type_node_95134": "Z tohoto uzlu typů nešlo extrahovat žádný typ.", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "V oboru pro sdruženou vlastnost {0} neexistuje žádná hodnota. Buď nějakou deklarujte, nebo poskytněte inicializátor.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Neabstraktní třída {0} neimplementuje zděděného abstraktního člena {1} ze třídy {2}.", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Výraz neabstraktní třídy neimplementuje zděděný abstraktní člen {0} z třídy {1}.", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Kontrolní výrazy jiné než null se dají používat jen v typescriptových souborech.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Nerelativní cesty nejsou povolené, pokud není nastavená hodnota baseUrl. Nezapomněli jste na úvodní znak „./“?", - "Non_simple_parameter_declared_here_1348": "Deklaroval se tady parametr, který není jednoduchý.", - "Not_all_code_paths_return_a_value_7030": "Ne všechny cesty kódu vracejí hodnotu.", - "Not_all_constituents_of_type_0_are_callable_2756": "Ne všichni konstituenti typu {0} se dají zavolat.", - "Not_all_constituents_of_type_0_are_constructable_2760": "Ne všichni konstituenti typu {0} se dají vytvořit.", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Číselné literály s absolutními hodnotami, které se rovnají hodnotě 2^53 nebo větší, se nedají reprezentovat přesně jako celá čísla, protože jsou příliš velké.", - "Numeric_separators_are_not_allowed_here_6188": "Číselné oddělovače tady nejsou povolené.", - "Object_is_of_type_unknown_2571": "Objekt je typu Neznámý.", - "Object_is_possibly_null_2531": "Objekt je pravděpodobně null.", - "Object_is_possibly_null_or_undefined_2533": "Objekt je pravděpodobně null nebo undefined.", - "Object_is_possibly_undefined_2532": "Objekt je pravděpodobně undefined.", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Literál objektu může specifikovat jenom známé vlastnosti a {0} v typu {1} neexistuje.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Literál objektu může určovat jenom známé vlastnosti, ale {0} v typu {1} neexistuje. Chtěli jste zapsat {2}?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Vlastnost {0} literálu objektu má implicitně typ {1}.", - "Octal_digit_expected_1178": "Očekává se osmičková číslice.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Osmičkové literální typy musí používat syntaxi ES2015. Použijte syntaxi {0}.", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Osmičkové literály nejsou povolené v inicializátoru členů výčtů. Použijte syntaxi {0}.", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "Osmičkové literály nejsou ve striktním režimu povolené.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Osmičkové literály nejsou dostupné při cílení na ECMAScript 5 a vyšší. Použijte syntaxi {0}.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "V příkazu for...in se povoluje deklarovat jenom jednu proměnnou.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "V příkazu for...of se povoluje deklarovat jenom jednu proměnnou.", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Klíčovým slovem new se dá volat jenom funkce void.", - "Only_ambient_modules_can_use_quoted_names_1035": "Názvy v uvozovkách můžou mít jenom ambientní moduly.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Spolu s --{0} se podporují jenom moduly amd a system.", - "Only_emit_d_ts_declaration_files_6014": "Bude vydávat jen soubory deklarací .d.ts.", - "Only_named_exports_may_use_export_type_1383": "Jen pojmenované exporty můžou používat export type.", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Počítané členy můžou obsahovat jen číselné výčty, ale tento výraz je typu {0}. Pokud nepotřebujete kontroly úplnosti, zvažte místo něho použít objekt literálu.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Zahrňte do výstupu jenom soubory d.ts, nikoli soubory JavaScriptu.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Prostřednictvím klíčového slova super jsou přístupné jenom veřejné a chráněné metody základní třídy.", - "Operator_0_cannot_be_applied_to_type_1_2736": "Operátor {0} se nedá použít na typ {1}.", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Operátor {0} nejde použít u typů {1} a {2}.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Při úpravách vyloučit projekt z kontroly odkazů ve více projektech.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Možnost {0} jde zadat jenom v souboru tsconfig.json nebo nastavit na příkazovém řádku na hodnotu false nebo null.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Možnost {0} jde zadat jenom v souboru tsconfig.json nebo nastavit na příkazovém řádku na hodnotu null.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Možnost {0} jde použít jenom při zadání možnosti --inlineSourceMap nebo možnosti --sourceMap.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Když je možnost jsx nastavená na {1}, možnost {0} se nedá zadat.", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Když je možnost target nastavená na ES3, možnost {0} se nedá zadat.", - "Option_0_cannot_be_specified_with_option_1_5053": "Možnosti {0} a {1} nejde zadat zároveň.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Možnost {0} nejde zadat bez možnosti {1}.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Možnost {0} nejde zadat bez možnosti {1} nebo {2}.", - "Option_build_must_be_the_first_command_line_argument_6369": "Možnost --build musí být prvním argumentem příkazového řádku.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Možnost ‚--incremental‘ se dá zadat jen pomocí tsconfig, při generování do jednoho souboru nebo když se zadá možnost ‚--tsBuildInfoFile‘.", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Možnost isolatedModules jde použít jenom v případě, že je poskytnutá možnost --module nebo že možnost target je ES2015 nebo vyšší verze.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Když je povolená možnost isolatedModules, možnost preserveConstEnums se nedá zakázat.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Možnost preserveValueImports se dá použít jenom v případě, že je modul nastavený na hodnotu es2015 nebo novější.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Možnost project se na příkazovém řádku nedá kombinovat se zdrojovým souborem.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Možnost --resolveJsonModule se dá zadat jen v případě, že generování kódu modulu je commonjs, amd, es2015 nebo esNext.", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Možnost --resolveJsonModule se nedá zadat bez strategie překladu modulu node.", - "Options_0_and_1_cannot_be_combined_6370": "Možnosti {0} a {1} nejde kombinovat.", - "Options_Colon_6027": "Možnosti:", - "Output_Formatting_6256": "Formátování výstupu", - "Output_compiler_performance_information_after_building_6615": "Po sestavení generovat informace o výkonu kompilátoru.", - "Output_directory_for_generated_declaration_files_6166": "Výstupní adresář pro vygenerované soubory deklarace", - "Output_file_0_from_project_1_does_not_exist_6309": "Výstupní soubor {0} z projektu {1} neexistuje.", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "Výstupní soubor {0} se nesestavil ze zdrojového souboru {1}.", - "Output_from_referenced_project_0_included_because_1_specified_1411": "Výstup z odkazovaného projektu {0}, který se zahrnul, protože je zadané {1}", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Výstup z odkazovaného projektu {0}, který se zahrnul, protože možnost --module se nastavila na none", - "Output_more_detailed_compiler_performance_information_after_building_6632": "Do výstupu po sestavení zahrňte podrobnější informace o výkonu kompilátoru.", - "Overload_0_of_1_2_gave_the_following_error_2772": "Přetížení {0} z {1}, {2}, vrátilo následující chybu.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "Signatury přetížení musí být všechny abstraktní nebo neabstraktní.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "Signatury přetížení musí být všechny ambientní nebo neambientní.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "Signatury přetížení musí být všechny exportované nebo neexportované.", - "Overload_signatures_must_all_be_optional_or_required_2386": "Signatury přetížení musí být všechny nepovinné nebo povinné.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "Signatury přetížení musí být všechny veřejné, privátní nebo chráněné.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "Parametr {0} nemůže odkazovat na identifikátor {1} deklarovaný za ním.", - "Parameter_0_cannot_reference_itself_2372": "Parametr {0} nemůže odkazovat sám na sebe.", - "Parameter_0_implicitly_has_an_1_type_7006": "Parametr {0} má implicitně typ {1}.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "Parametr {0} má implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z použití.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "Parametr {0} není na stejné pozici jako parametr {1}.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "Parametr {0} přístupového objektu má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "Parametr {0} přístupového objektu má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "Parametr {0} přístupového objektu má nebo používá privátní název {1}.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "Parametr {0} signatury volání z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "Parametr {0} signatury volání z exportovaného rozhraní má nebo používá privátní název {1}.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "Parametr {0} konstruktoru z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "Parametr {0} konstruktoru z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "Parametr {0} konstruktoru z exportované třídy má nebo používá privátní název {1}.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "Parametr {0} signatury konstruktoru z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "Parametr {0} signatury konstruktoru z exportovaného rozhraní má nebo používá privátní název {1}.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "Parametr {0} exportované funkce má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "Parametr {0} exportované funkce má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "Parametr {0} exportované funkce má nebo používá privátní název {1}.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "Parametr {0} signatury indexu z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "Parametr {0} signatury indexu z exportovaného rozhraní má nebo používá privátní název {1}.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "Parametr {0} metody z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "Parametr {0} metody z exportovaného rozhraní má nebo používá privátní název {1}.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "Parametr {0} veřejné metody z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "Parametr {0} veřejné metody z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "Parametr {0} veřejné metody z exportované třídy má nebo používá privátní název {1}.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "Parametr {0} veřejné statické metody z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "Parametr {0} veřejné statické metody z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "Parametr {0} veřejné statické metody z exportované třídy má nebo používá privátní název {1}.", - "Parameter_cannot_have_question_mark_and_initializer_1015": "Parametr nemůže obsahovat otazník a inicializátor.", - "Parameter_declaration_expected_1138": "Očekává se deklarace parametru.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Parametr má název, ale žádný typ. Měli jste na mysli {0}: {1}?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Modifikátory parametrů se dají používat jen v typescriptových souborech.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Typ parametru veřejné metody setter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Typ parametru veřejné metody setter {0} z exportované třídy má nebo používá privátní název {1}.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Typ parametru veřejné statické metody setter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "Typ parametru veřejné statické metody setter {0} z exportované třídy má nebo používá privátní název {1}.", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "Parsovat ve striktním režimu a generovat striktní používání pro každý zdrojový soubor", - "Part_of_files_list_in_tsconfig_json_1409": "Součást seznamu files v souboru tsconfig.json", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "Vzor {0} může obsahovat nanejvýš jeden znak * (hvězdička).", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "Časování výkonu pro --diagnostics nebo --extendedDiagnostics nejsou v této relaci k dispozici. Nepovedlo se najít nativní implementace rozhraní Web Performance API.", - "Platform_specific_6912": "Specifická pro platformu", - "Prefix_0_with_an_underscore_90025": "Předpona {0} s podtržítkem", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "Před všechny nesprávné deklarace vlastností přidejte declare.", - "Prefix_all_unused_declarations_with_where_possible_95025": "Přidat příponu _ ke všem nepoužívaným deklaracím tam, kde je to možné", - "Prefix_with_declare_95094": "Přidat předponu declare", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Zachovejte nepoužívané importované hodnoty ve výstupu JavaScriptu, který by se jinak odebral.", - "Print_all_of_the_files_read_during_the_compilation_6653": "Vytiskněte si všechny soubory přečtené při kompilaci.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Vytiskněte si soubory přečtené při kompilaci, včetně důvodu jejich zahrnutí.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Umožňuje vypsat názvy souborů a důvod, proč jsou součástí kompilace.", - "Print_names_of_files_part_of_the_compilation_6155": "Část kompilace, při které se vypisují názvy souborů", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "Vypsat názvy souborů, které jsou součástí kompilace, a pak ukončit zpracovávání", - "Print_names_of_generated_files_part_of_the_compilation_6154": "Část kompilace, při které se vypisují názvy generovaných souborů", - "Print_the_compiler_s_version_6019": "Vytisknout verzi kompilátoru", - "Print_the_final_configuration_instead_of_building_1350": "Místo sestavení vypsat konečnou konfiguraci", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "Po kompilaci vytiskněte názvy generovaných souborů.", - "Print_this_message_6017": "Vytisknout tuto zprávu", - "Private_accessor_was_defined_without_a_getter_2806": "Privátní přístupový objekt se definoval bez metody getter.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Privátní identifikátory se v deklaracích proměnných nepovolují.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Privátní identifikátory se mimo těla tříd nepovolují.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Privátní identifikátory jsou povolené jenom v tělech třídy a smí se používat jenom jako součást deklarace člena třídy nebo přístupu k vlastnosti, případně na levé straně výrazu in.", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Privátní identifikátory jsou dostupné jen při cílení na ECMAScript 2015 a novější.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "Privátní identifikátory se nedají použít jako parametry.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "K privátnímu nebo chráněnému členu {0} se nedá přistupovat v parametru typu.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Projekt {0} nejde sestavit, protože jeho závislost {1} obsahuje chyby.", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Projekt {0} nejde sestavit, protože se nesestavila jeho závislost {1}.", - "Project_0_is_being_forcibly_rebuilt_6388": "Projekt {0} se nuceně vytváří znovu.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "{0} projektu je zastaralý, protože soubor buildinfo {1} indikuje, že se některé změny nevygenerovaly.", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt {0} je zastaralý, protože jeho závislost {1} je zastaralá.", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Projekt {0} je zastaralý, protože výstup {1} je starší než vstup {2}.", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt {0} je zastaralý, protože výstupní soubor {1} neexistuje.", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Projekt {0} je zastaralý, protože jeho výstup se vygeneroval pomocí verze {1}, která se liší od aktuální verze {2}.", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Projekt {0} je zastaralý, protože se změnil výstup jeho závislosti {1}.", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Projekt {0} je zastaralý, protože při čtení souboru {1} došlo k chybě.", - "Project_0_is_up_to_date_6361": "Projekt {0} je aktuální.", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt {0} je aktuální, protože nejnovější vstup {1} je starší než výstup {2}.", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "Projekt {0} je aktuální, ale musí aktualizovat časová razítka výstupních souborů, které jsou starší než vstupní soubory.", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Projekt {0} je aktualizovaný soubory .d.ts z jeho závislostí.", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Odkazy projektu nemůžou tvořit cyklický graf. Zjistil se cyklus: {0}", - "Projects_6255": "Projekty", - "Projects_in_this_build_Colon_0_6355": "Projekty v tomto sestavení: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Vlastnosti s modifikátorem accessor jsou k dispozici jen při cílení na ECMAScript 2015 a vyšší.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Vlastnost {0} nemůže mít inicializátor, protože je označená jako abstraktní.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Vlastnost {0} pochází ze signatury indexu, proto je zapotřebí k ní přistupovat pomocí ['{0}'].", - "Property_0_does_not_exist_on_type_1_2339": "Vlastnost {0} v typu {1} neexistuje.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "Vlastnost {0} v typu {1} neexistuje. Měli jste na mysli {2}?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "Vlastnost {0} v typu {1} neexistuje. Chtěli jste místo toho přistoupit ke statickému členu {2}?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "Vlastnost ‚{0}‘ neexistuje u typu ‚{1}‘. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na ‚{2}‘ nebo novější.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "Vlastnost „{0}“ pro typ „{1}“ neexistuje. Zkuste změnit možnost kompilátoru „lib“, aby zahrnovala „dom“.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "Vlastnost „{0}“ nemá žádný inicializátor a není jednoznačně přiřazena ve statickém bloku třídy.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "Vlastnost {0} nemá žádný inicializátor a není jednoznačně přiřazena v konstruktoru.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "Vlastnost {0} má implicitně typ any, protože její přistupující objekt get nemá anotaci návratového typu.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "Vlastnost {0} má implicitně typ any, protože její přistupující objekt set nemá anotaci parametrového typu.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "Vlastnost {0} má implicitně typ any, ale je možné, že lepší typ pro jeho přístupový objekt get by se vyvodil z použití.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "Vlastnost {0} má implicitně typ any, ale je možné, že lepší typ pro jeho přístupový objekt set by se vyvodil z použití.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "Vlastnost {0} v typu {1} nejde přiřadit ke stejné vlastnosti v základním typu {2}.", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "Vlastnost {0} v typu {1} nejde přiřadit typu {2}.", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "Vlastnost {0} v typu {1} odkazuje na jiného člena, ke kterému není možné získat přístup z typu {2}.", - "Property_0_is_declared_but_its_value_is_never_read_6138": "Deklaruje se vlastnost {0}, ale její hodnota se vůbec nečte.", - "Property_0_is_incompatible_with_index_signature_2530": "Vlastnost {0} není kompatibilní se signaturou indexu.", - "Property_0_is_missing_in_type_1_2324": "Vlastnost {0} v typu {1} chybí.", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "Vlastnost {0} chybí v typu {1}, ale vyžaduje se v typu {2}.", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "Vlastnost {0} není přístupná mimo třídu {1}, protože má privátní identifikátor.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "Vlastnost {0} je v typu {1} nepovinná, ale vyžaduje se v typu {2}.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "Vlastnost {0} je privátní a dostupná jenom ve třídě {1}.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "Vlastnost {0} je v typu {1} privátní, ale v typu {2} ne.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "Vlastnost {0} je chráněná a dá se k ní přistupovat jen přes instanci třídy {1}. Toto je instance třídy {2}.", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "Vlastnost {0} je chráněná a je dostupná jenom ve třídě {1} a jejích podtřídách.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "Vlastnost {0} je chráněná, ale typ {1} není třída odvozená od {2}.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "Vlastnost {0} je v typu {1} chráněná, ale v typu {2} veřejná.", - "Property_0_is_used_before_being_assigned_2565": "Vlastnost {0} je použitá před přiřazením.", - "Property_0_is_used_before_its_initialization_2729": "Vlastnost {0} se používá dříve, než se inicializuje.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Zdá se, že vlastnost {0} v typu {1} neexistuje. Měli jste na mysli {2}?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Vlastnost {0} rozšířeného atributu JSX nejde přiřadit cílové vlastnosti.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Vlastnost {0} exportovaného výrazu třídy nesmí být privátní nebo chráněná.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Vlastnost {0} exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Vlastnost {0} exportovaného rozhraní má nebo používá privátní název {1}.", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Vlastnost {0} typu {1} se nedá přiřadit k {2} typu indexu {3}.", - "Property_0_was_also_declared_here_2733": "Vlastnost {0} se deklarovala i tady.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Vlastnost {0} přepíše základní vlastnost v {1}. Pokud je to záměr, přidejte inicializátor. Jinak přidejte modifikátor declare nebo odeberte redundantní deklaraci.", - "Property_assignment_expected_1136": "Očekává se přiřazení vlastnosti.", - "Property_destructuring_pattern_expected_1180": "Očekává se vzor destruktoru vlastnosti.", - "Property_or_signature_expected_1131": "Očekává se vlastnost nebo podpis.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Hodnota vlastnosti může být jenom řetězcový literál, číselný literál, true, false, null, literál objektu nebo literál pole.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Při cílení na ES5 nebo ES3 poskytněte plnou podporu iterovatelných proměnných ve for-of, rozšíření a destrukturování.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Veřejná metoda {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Veřejná metoda {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Veřejná metoda {0} z exportované třídy má nebo používá privátní název {1}.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "Veřejná vlastnost {0} exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "Veřejná vlastnost {0} exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "Veřejná vlastnost {0} exportované třídy má nebo používá privátní název {1}.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "Veřejná statická metoda {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "Veřejná statická metoda {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "Veřejná statická metoda {0} z exportované třídy má nebo používá privátní název {1}.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "Veřejná statická vlastnost {0} exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "Veřejná statická vlastnost {0} exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "Veřejná statická vlastnost {0} exportované třídy má nebo používá privátní název {1}.", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "Kvalifikovaný název {0} se nepovoluje bez @param {object} {1} na začátku.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Když se parametr funkce nepřečte, nahlaste chybu.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Vyvolat chybu u výrazů a deklarací s implikovaným typem any", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Vyvolá chybu u výrazů this s implikovaným typem any.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Opětovný export typu ve chvíli, kdy se poskytl příznak --isolatedModules, vyžaduje, aby se použilo export type.", - "Redirect_output_structure_to_the_directory_6006": "Přesměrování výstupní struktury do adresáře", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Snižte počet projektů, které TypeScript načítá automaticky.", - "Referenced_project_0_may_not_disable_emit_6310": "Odkazovaný projekt {0} nemůže zakazovat generování.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Odkazovaný projekt {0} musí mít nastavení \"composite\": true.", - "Referenced_via_0_from_file_1_1400": "Odkazováno přes {0} ze souboru {1}", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relativní cesty importu vyžadují explicitní přípony souborů v importech EcmaScriptu, když --moduleResolution je node16 nebo nodenext. Zvažte přidání přípony do cesty importu.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relativní cesty importu vyžadují explicitní přípony souborů v importech EcmaScriptu, když --moduleResolution je node16 nebo nodenext. Měli jste na mysli {0}?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "Odeberte z procesu sledování seznam adresářů.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Ze zpracování režimu sledování odeberte seznam souborů.", - "Remove_all_unnecessary_override_modifiers_95163": "Odebrat všechny nepotřebné modifikátory override", - "Remove_all_unnecessary_uses_of_await_95087": "Odebrat všechna nepotřebná použití výrazu await", - "Remove_all_unreachable_code_95051": "Odebrat veškerý nedosažitelný kód", - "Remove_all_unused_labels_95054": "Odebrat všechny nepoužívané popisky", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "Odeberte složené závorky ze všech těl funkcí šipek, u kterých dochází k problémům.", - "Remove_braces_from_arrow_function_95060": "Odebrat složené závorky z funkce šipky", - "Remove_braces_from_arrow_function_body_95112": "Odebrat složené závorky z těla funkce šipky", - "Remove_import_from_0_90005": "Odebrat import z {0}", - "Remove_override_modifier_95161": "Odebrat modifikátor override", - "Remove_parentheses_95126": "Odebrat závorky", - "Remove_template_tag_90011": "Odebrat značku šablonu", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Odeberte limit 20 MB pro celkovou velikost zdrojového kódu souborů JavaScriptu na jazykovém serveru TypeScriptu.", - "Remove_type_from_import_declaration_from_0_90055": "Odebrat „type“ z deklarace importu z „{0}“", - "Remove_type_from_import_of_0_from_1_90056": "Odebrat „type“ z importu {0} z „{1}“", - "Remove_type_parameters_90012": "Odebrat parametry typů", - "Remove_unnecessary_await_95086": "Odebrat nepotřebné výrazy await", - "Remove_unreachable_code_95050": "Odebrat nedosažitelný kód", - "Remove_unused_declaration_for_Colon_0_90004": "Odebrat nepoužívané deklarace pro {0}", - "Remove_unused_declarations_for_Colon_0_90041": "Odebrat nepoužívané deklarace pro {0}", - "Remove_unused_destructuring_declaration_90039": "Odebrat nepoužívané destrukční deklarace", - "Remove_unused_label_95053": "Odebrat nepoužitý popisek", - "Remove_variable_statement_90010": "Odebrat příkaz proměnné", - "Rename_param_tag_name_0_to_1_95173": "Přejmenovat značku @param {0} na {1}", - "Replace_0_with_Promise_1_90036": "Místo {0} použijte Promise<{1}>", - "Replace_all_unused_infer_with_unknown_90031": "Nahradit všechny nepoužívané příkazy infer za unknown", - "Replace_import_with_0_95015": "Nahradí import použitím: {0}.", - "Replace_infer_0_with_unknown_90030": "Nahradit infer {0} za unknown", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "Oznámí se chyba, když některé cesty kódu ve funkci nevracejí hodnotu.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "Oznámí se chyby v případech fallthrough v příkazu switch.", - "Report_errors_in_js_files_8019": "Ohlásit chyby v souborech .js", - "Report_errors_on_unused_locals_6134": "Umožňuje nahlásit chyby u nevyužitých místních hodnot.", - "Report_errors_on_unused_parameters_6135": "Umožňuje nahlásit chyby u nevyužitých parametrů.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Vyžadovat, aby nedeklarované vlastnosti ze signatur indexů používaly přístupy k elementům", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Požadované parametry typu nemůžou být až za volitelnými parametry typu.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Překlad pro modul {0} se našel v mezipaměti umístění {1}.", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Překlad pro direktivu odkazu na typ {0} se našel v mezipaměti umístění {1}.", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "keyof překládejte jen na názvy vlastností s hodnotami typu string (ne čísla ani symboly).", - "Resolving_in_0_mode_with_conditions_1_6402": "Řešení v režimu {0} s podmínkami {1}.", - "Resolving_module_0_from_1_6086": "======== Překládá se modul {0} z {1}. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Překládá se název modulu {0} relativní k základní adrese URL {1}–{2}.", - "Resolving_real_path_for_0_result_1_6130": "Překládá se skutečná cesta pro {0}, výsledek {1}.", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== Překládá se direktiva odkazu na typ {0} obsahující soubor {1}. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== Překládá se direktiva reference typu {0}, obsažený soubor {1}, kořenový adresář {2}. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Překládá se direktiva reference typu {0}, obsažený soubor {1}, kořenový adresář není nastavený. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Překládá se direktiva reference typu {0}, obsažený soubor není nastavený, kořenový adresář {1}. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Překládá se direktiva reference typu {0}, obsažený soubor není nastavený, kořenový adresář není nastavený. ========", - "Resolving_with_primary_search_path_0_6121": "Probíhá překlad pomocí primární cesty hledání {0}.", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Parametr rest {0} implicitně obsahuje typ any[].", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Parametr rest {0} má implicitně typ any[], ale je možné, že lepší typ by se vyvodil z použití.", - "Rest_types_may_only_be_created_from_object_types_2700": "Typy rest se dají vytvářet jenom z typů object.", - "Return_type_annotation_circularly_references_itself_2577": "Anotace návratového typu se cyklicky odkazuje sama na sebe.", - "Return_type_must_be_inferred_from_a_function_95149": "Návratový typ musí být odvozen z funkce.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "Návratový typ signatury volání z exportovaného rozhraní má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "Návratový typ signatury volání z exportovaného rozhraní má nebo používá privátní název {0}.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "Návratový typ signatury konstruktoru z exportovaného rozhraní má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "Návratový typ signatury konstruktoru z exportovaného rozhraní má nebo používá privátní název {0}.", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "Návratový typ signatury konstruktoru musí jít přiřadit k typu instance třídy.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "Návratový typ exportované funkce má nebo používá název {0} z externího modulu {1}, ale nedá se pojmenovat.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "Návratový typ exportované funkce má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "Návratový typ exportované funkce má nebo používá privátní název {0}.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "Návratový typ signatury indexu z exportovaného rozhraní má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "Návratový typ signatury indexu z exportovaného rozhraní má nebo používá privátní název {0}.", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "Návratový typ metody z exportovaného rozhraní má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "Návratový typ metody z exportovaného rozhraní má nebo používá privátní název {0}.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "Návratový typ veřejné metody getter {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "Návratový typ veřejné metody getter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "Návratový typ veřejné metody getter {0} z exportované třídy má nebo používá privátní název {1}.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "Návratový typ veřejné metody z exportované třídy má nebo používá název {0} z externího modulu {1}, ale nedá se pojmenovat.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "Návratový typ veřejné metody z exportované třídy má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "Návratový typ veřejné metody z exportované třídy má nebo používá privátní název {0}.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "Návratový typ veřejné statické metody getter {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "Návratový typ veřejné statické metody getter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "Návratový typ veřejné statické metody getter {0} z exportované třídy má nebo používá privátní název {1}.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "Návratový typ veřejné statické metody z exportované třídy má nebo používá název {0} z externího modulu {1}, ale nedá se pojmenovat.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "Návratový typ veřejné statické metody z exportované třídy má nebo používá název {0} z privátního modulu {1}.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "Návratový typ veřejné statické metody z exportované třídy má nebo používá privátní název {0}.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "Opětovné použití překladu modulu {0} z {1} nalezeného v mezipaměti z umístění {2} se nevyřešilo.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "Opětovné použití překladu modulu {0} z {1} nalezeného v mezipaměti z umístění {2} bylo úspěšně vyřešeno na {3}.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "Opětovné použití překladu modulu {0} z {1} nalezeného v mezipaměti z umístění {2} bylo úspěšně vyřešeno na {3} s ID balíčku {4}.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "Opětovné použití překladu modulu {0} z {1} starého programu se nevyřešilo.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "Opětovné použití překladu modulu {0} z {1} starého programu bylo úspěšně vyřešeno na {2}.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "Opětovné použití překladu modulu {0} z {1} starého programu bylo úspěšně vyřešeno na {2} s ID balíčku {3}.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "Opětovné použití překladu direktivy typu reference {0} z {1} nalezeného v mezipaměti z umístění {2} se nevyřešilo.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "Opětovné použití překladu direktivy typu reference {0} z {1} nalezeného v mezipaměti z umístění {2} bylo úspěšně vyřešeno na {3}.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "Opětovné použití překladu direktivy typu reference {0} z {1} nalezeného v mezipaměti z umístění {2} bylo úspěšně vyřešeno na {3} s ID balíčku {4}.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "Opětovné použití překladu direktivy typu reference {0} z {1} starého programu se nevyřešilo.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "Opětovné použití překladu direktivy typu reference {0} z {1} starého programu bylo úspěšně vyřešeno na {2}.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Opětovné použití překladu direktivy typu reference {0} z {1} starého programu bylo úspěšně vyřešeno na {2} s ID balíčku {3}.", - "Rewrite_all_as_indexed_access_types_95034": "Přepsat vše jako indexované typy přístupu", - "Rewrite_as_the_indexed_access_type_0_90026": "Přepsat jako indexovaný typ přístupu {0}", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Nedá se určit kořenový adresář, přeskakují se primární cesty hledání.", - "Root_file_specified_for_compilation_1427": "Kořenový soubor, který se zadal pro kompilaci", - "STRATEGY_6039": "STRATEGIE", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Uložte soubory .tsbuildinfo, aby byla možná přírůstková kompilace projektů.", - "Saw_non_matching_condition_0_6405": "Byla zjištěna neshodná podmínka {0}.", - "Scoped_package_detected_looking_in_0_6182": "Zjištěn balíček v oboru, hledání v: {0}", - "Selection_is_not_a_valid_statement_or_statements_95155": "Výběr nepředstavuje platný příkaz (platné příkazy).", - "Selection_is_not_a_valid_type_node_95133": "Výběr není platným uzlem typů.", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Nastavte verzi jazyka JavaScript pro generovaný JavaScript a zahrňte deklarace kompatibilních knihoven.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "Nastavte jazyk posílání zpráv z TypeScriptu. Toto nastavení neovlivní generování.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "Nastavte možnost module v konfiguračním souboru na {0}.", - "Set_the_newline_character_for_emitting_files_6659": "Nastavte pro generované soubory znak nového řádku.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "Nastavte možnost target v konfiguračním souboru na {0}.", - "Setters_cannot_return_a_value_2408": "Metody setter nemůžou vracet hodnotu.", - "Show_all_compiler_options_6169": "Zobrazí všechny možnosti kompilátoru.", - "Show_diagnostic_information_6149": "Zobrazí diagnostické informace.", - "Show_verbose_diagnostic_information_6150": "Zobrazí podrobné diagnostické informace.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Zobrazit, co by se sestavilo (nebo odstranilo, pokud je zadaná možnost --clean)", - "Signature_0_must_be_a_type_predicate_1224": "Signatura {0} musí být predikát typu.", - "Skip_type_checking_all_d_ts_files_6693": "Přeskočte kontrolu typů ve všech souborech .d.ts.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Při kontrole typů vynechte soubory .d.ts zahrnuté do TypeScriptu.", - "Skip_type_checking_of_declaration_files_6012": "Přeskočit kontrolu typu souborů deklarace", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Sestavení projektu {0} se přeskakuje, protože jeho závislost {1} obsahuje chyby.", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Sestavení projektu {0} se přeskakuje, protože se nesestavila jeho závislost {1}.", - "Source_from_referenced_project_0_included_because_1_specified_1414": "Zdroj z odkazovaného projektu {0}, který se zahrnul, protože je zadané {1}.", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Zdroj z odkazovaného projektu {0}, který se zahrnul, protože možnost --module se nastavila na none.", - "Source_has_0_element_s_but_target_allows_only_1_2619": "Zdroj má následující počet elementů, ale cíl jich povoluje jen {1}: {0}", - "Source_has_0_element_s_but_target_requires_1_2618": "Zdroj má následující počet elementů, ale cíl jich vyžaduje {1}: {0}", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "Zdroj nenabízí v cíli pro element required na pozici {0} žádnou shodu.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "Zdroj nenabízí v cíli pro element variadic na pozici {0} žádnou shodu.", - "Specify_ECMAScript_target_version_6015": "Zadejte cílovou verzi ECMAScriptu.", - "Specify_JSX_code_generation_6080": "Zadejte generování kódu JSX.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "Zadejte soubor, který sloučí všechny výstupy do jediného souboru JavaScriptu. Pokud má „declaration“ pravdivou hodnotu,, určete soubor, který sloučí všechny výstupní soubory .d.ts.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "Zadejte seznam vzorů glob, které odpovídají souborům zahrnutým do kompilace.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "Zadejte seznam zahrnutých pluginů jazykových služeb.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "Zadejte sadu souborů spojených deklaračních knihoven, které popisují cílové běhové prostředí.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "Zadejte sadu položek, které se při importu znovu namapují na další nalezená místa.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "Zadejte pole objektů, které určují cesty pro projekty. Používá se v odkazech na projekt.", - "Specify_an_output_folder_for_all_emitted_files_6678": "Zadejte výstupní složku pro všechny generované soubory.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "Zadejte chování generování nebo kontroly pro importy, které se používají jen pro typy.", - "Specify_file_to_store_incremental_compilation_information_6380": "Zadejte soubor, do kterého se uloží informace o přírůstkové kompilaci.", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "Zadejte, jak TypeScript v daném specifikátoru modulu najde soubor.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "Zadejte, jak sledovat adresáře v systémech, které nemají funkci rekurzivního sledování souborů.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "Zadejte, jak má fungovat režim sledování TypeScriptu.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "Zadejte soubory knihovny, které se mají zahrnout do kompilace.", - "Specify_module_code_generation_6016": "Určete generování kódu modulu.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Zadejte strategii překladu modulu: node (Node.js) nebo classic (TypeScript verze nižší než 1.6).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Zadejte specifikátor modulu, který se použije k naimportování továrních funkcí JSX při použití „jsx: react-jsx“.", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Zadejte více složek, které budou figurovat jako „node_modules/@types“.", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Zadejte jednu nebo více cest nebo jeden či více odkazů na moduly uzlů se základními konfiguračními soubory, ze kterých se dědí nastavení.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "Zadejte možnosti automatického získávání deklaračních souborů.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "Zadejte strategii pro vytvoření sledování načítání, když se ho nepovede vytvořit pomocí událostí souborového systému: FixedInterval (výchozí), PriorityInterval, DynamicPriority, FixedChunkSize", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "Zadejte strategii pro sledování adresáře na platformách, které nepodporují nativně rekurzivní sledování: UseFsEvents (výchozí), FixedPollingInterval, DynamicPriorityPolling, FixedChunkSizePolling", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "Zadejte strategii pro sledování souboru: FixedPollingInterval (výchozí), PriorityPollingInterval, DynamicPriorityPolling, FixedChunkSizePolling, UseFsEvents, UseFsEventsOnParentDirectory", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "Zadejte odkaz na fragment JSX, který se použije pro fragmenty při cíleném generování React JSX, např. „React.Fragment“ nebo „Fragment“.", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "Zadejte funkci objektu pro vytváření JSX, která se použije při zaměření na generování JSX react, např. React.createElement nebo h.", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "Zadejte funkci objektu pro vytváření JSX použitou při cílení na generování React JSX, např. React.createElement nebo h.", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Zadejte funkci objektu pro vytváření fragmentů JSX, která se použije při cílení na generování JSX react se zadanou možností kompilátoru jsxFactory, například Fragment.", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Zadejte základní adresář, který se použije k řešení názvů modulů, které nejsou relativní.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Zdejte sekvenci konce řádku, která se má použít při generování souborů: CRLF (dos) nebo LF (unix).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Zadejte umístění, ve kterém by měl ladicí program najít soubory TypeScript namísto umístění zdroje.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Zadejte umístění, ve kterém by měl ladicí program najít soubory mapy namísto generovaných umístění.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Zadejte maximální hloubku složky, která se použije pro kontrolu souborů JavaScriptu z node_modules. Platí pouze pro allowJs.", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Zadejte specifikátor modulu, který se má použít k importu továrních funkcí ‚jsx‘ a ‚jsxs‘ např. z funkce react.", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Zadejte objekt vyvolaný pro createElement. To platí pouze při cílení na generování JSX react.", - "Specify_the_output_directory_for_generated_declaration_files_6613": "Zadejte výstupní adresář pro generované deklarační soubory.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Zadejte cestu pro soubor přírůstkové kompilace .tsbuildinfo.", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Zadejte kořenový adresář vstupních souborů. Slouží ke kontrole struktury výstupního adresáře pomocí --outDir.", - "Specify_the_root_folder_within_your_source_files_6690": "Zadejte kořenovou složku se zdrojovými soubory.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Zadejte pro ladicí programy kořenovou cestu, kde najdou referenční zdrojový kód.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "Zadejte názvy typů balíčků, které se zahrnou, i když na ně neodkazuje zdrojový soubor.", - "Specify_what_JSX_code_is_generated_6646": "Zadejte, jaký kód JSX se vygeneruje.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "Zadejte, jak má sledovací proces postupovat, když systému dojdou nativní sledovací procesy souborů.", - "Specify_what_module_code_is_generated_6657": "Určete, pro jaký modul se kód generuje.", - "Split_all_invalid_type_only_imports_1367": "Rozdělit všechny neplatné importy, při kterých se importují jen typy", - "Split_into_two_separate_import_declarations_1366": "Rozdělit na dvě samostatné deklarace importu", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "Operátor rozšíření ve výrazech new je dostupný jenom při cílení na verzi ECMAScript 5 a vyšší.", - "Spread_types_may_only_be_created_from_object_types_2698": "Typy spread se dají vytvářet jenom z typů object.", - "Starting_compilation_in_watch_mode_6031": "Spouští se kompilace v režimu sledování...", - "Statement_expected_1129": "Očekává se příkaz.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "Příkazy se nepovolují v ambientních kontextech.", - "Static_members_cannot_reference_class_type_parameters_2302": "Statické členy nemůžou odkazovat na parametry typu třídy.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Statická vlastnost {0} je v konfliktu s předdefinovanou vlastností Function.{0} funkce konstruktoru {1}.", - "String_literal_expected_1141": "Očekává se řetězcový literál.", - "String_literal_with_double_quotes_expected_1327": "Očekával se řetězcový literál s dvojitými uvozovkami.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Stylizujte chyby a zprávy pomocí barev a kontextu (experimentální).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Deklarace následných vlastností musí obsahovat stejný typ. Vlastnost {0} musí být typu {1}, ale tady je typu {2}.", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Deklarace následných proměnných musí obsahovat stejný typ. Proměnná {0} musí být typu {1}, ale tady je typu {2}.", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Nahrazení {0} za vzor {1} má nesprávný typ, očekával se typ string, obdržený je {2}.", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "Nahrazení {0} ve vzoru {1} může obsahovat maximálně jeden znak * (hvězdička).", - "Substitutions_for_pattern_0_should_be_an_array_5063": "Náhrady vzoru {0} by měly být pole.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "Nahrazení vzoru {0} nesmí být prázdné pole.", - "Successfully_created_a_tsconfig_json_file_6071": "Soubor tsconfig.json se úspěšně vytvořil.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "Volání pomocí super se nepovolují mimo konstruktory a ve funkcích vnořených v konstruktorech.", - "Suppress_excess_property_checks_for_object_literals_6072": "Potlačit nadměrné kontroly vlastností pro literály objektů", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "Potlačit chyby noImplicitAny u objektů indexování bez signatur indexu", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "Při indexování objektů bez podpisů indexování potlačte chyby „noImplicitAny“.", - "Switch_each_misused_0_to_1_95138": "Přepnout každé chybně použité {0} na {1}", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "Synchronně volejte zpětná volání a aktualizujte stav sledování adresářů i u platforem, které nativně nepodporují rekurzivní sledování.", - "Syntax_Colon_0_6023": "Syntaxe: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "Značka {0} očekává určitý minimální počet argumentů ({1}), ale objekt pro vytváření JSX {2} jich poskytuje maximálně {3}.", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Označené výrazy šablony se v nepovinném řetězu nepovolují.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Cíl povoluje jen určitý počet elementů ({0}), ale zdroj jich může mít více.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Cíl vyžaduje určitý počet elementů ({0}), ale zdroj jich může mít méně.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Modifikátor {0} se dá používat jen v typescriptových souborech.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Operátor {0} nejde použít u typu symbol.", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Operátor {0} není u logických typů povolený. Můžete ale použít {1}.", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Vlastnost {0} asynchronního iterátoru musí být metoda.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "Vlastnost {0} iterátoru musí být metoda.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Typ Object se dá přiřadit jen k malému počtu dalších typů. Nechtěli jste místo toho použít typ any?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Funkce šipky v ES3 a ES5 nemůže odkazovat na objekt arguments. Zvažte použití standardního výrazu funkce.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "V ES3 a ES5 se na objekt arguments nedá odkazovat v asynchronní funkci nebo metodě. Zvažte možnost použít standardní funkci nebo metodu.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Tělo příkazu if nemůže být prázdný příkaz.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Volání by pro tuto implementaci proběhlo úspěšně, ale signatury implementace pro přetížení nejsou externě k dispozici.", - "The_character_set_of_the_input_files_6163": "Znaková sada vstupních souborů", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "Obsahující funkce šipky zachytává globální hodnotu pro this.", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "Text obsahující funkce nebo modulu je pro analýzu toku řízení příliš dlouhý.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "Aktuální soubor je modul CommonJS a na nejvyšší úrovni nemůže používat await.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "Aktuální soubor je modul CommonJS, jehož importy vytvoří volání require. Odkazovaný soubor je však modul ECMAScript a nelze ho importovat pomocí příkazu require. Raději zvažte vytvoření dynamického volání import(\"{0}\").", - "The_current_host_does_not_support_the_0_option_5001": "Aktuální hostitel nepodporuje možnost {0}.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "Deklarace {0}, kterou jste pravděpodobně chtěli použít, je definovaná tady.", - "The_declaration_was_marked_as_deprecated_here_2798": "Deklarace se tady označila jako zastaralá.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "Očekávaný typ pochází z vlastnosti {0}, která je deklarovaná tady v typu {1}.", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "Očekávaný typ pochází z návratového typu této signatury.", - "The_expected_type_comes_from_this_index_signature_6501": "Očekávaný typ pochází z této signatury indexu.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "Výraz přiřazení exportu musí být identifikátor nebo kvalifikovaný název v ambientním kontextu.", - "The_file_is_in_the_program_because_Colon_1430": "Soubor se nachází v programu, protože:", - "The_files_list_in_config_file_0_is_empty_18002": "Seznam files v konfiguračním souboru {0} je prázdný.", - "The_first_export_default_is_here_2752": "První výchozí nastavení exportu je tady.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "První parametr metody then příslibu musí být zpětné volání.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Globální typ JSX.{0} by neměl mít více než jednu vlastnost.", - "The_implementation_signature_is_declared_here_2750": "Signatura implementace se deklarovala tady.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Meta-vlastnost import.meta není povolena v souborech, které se sestaví do výstupu CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Metavlastnost import.meta se povoluje jen v případě, že možnost --module je nastavená na es2020, es2022, esnext, system, node16 nebo nodenext.", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Odvozený typ {0} se nedá pojmenovat bez odkazu na {1}. Pravděpodobně to nebude přenosné. Vyžaduje se anotace typu.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Odvozený typ {0} se odkazuje na typ s cyklickou strukturou, která se nedá triviálně serializovat. Musí se použít anotace typu.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Odvozený typ {0} odkazuje na nepřístupný typ {1}. Musí se použít anotace typu.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Odvozený typ tohoto uzlu přesahuje maximální délku, kterou kompilátor může serializovat. Je potřeba zadat explicitní anotaci typu.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Průnik {0} se omezil na never, protože vlastnost {1} existuje v několika konstituentech a v některých z nich je privátní.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Průnik {0} se omezil na never, protože vlastnost {1} má v některých konstituentech konfliktní typy.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Klíčové slovo intrinsic se dá použít jenom k deklaraci vnitřních typů poskytovaných kompilátorem.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "Aby bylo možné použít fragmenty JSX s možností kompilátoru jsxFactory, je třeba zadat možnost kompilátoru jsxFragmentFactory.", - "The_last_overload_gave_the_following_error_2770": "Poslední přetížení vrátilo následující chybu.", - "The_last_overload_is_declared_here_2771": "Poslední přetížení je deklarované tady.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Levá strana příkazu for...in nemůže být destrukturačním vzorem.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Levá strana příkazu for...in nemůže používat anotaci typu.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Levá strana příkazu for...in nemůže představovat přístup k nepovinné vlastnosti.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "Levá strana příkazu for..n musí být proměnná nebo přístup k vlastnosti.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "Levá strana příkazu for...in musí být typu string nebo any.", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "Levá strana příkazu for...of nemůže používat anotaci typu.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "Levá strana příkazu for...of nemůže představovat přístup k nepovinné vlastnosti.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "Levá strana příkazu for...of nemůže být async.", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "Levá strana příkazu for...of musí být proměnná nebo přístup k vlastnosti.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Levá strana aritmetické operace musí mít typ any, number, bigint nebo být typu výčtu.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Levá strana výrazu přiřazení nemůže představovat přístup k nepovinné vlastnosti.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Levá strana výrazu přiřazení musí být proměnná nebo přístup k vlastnosti.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Levá strana výrazu instanceof musí být typu any, typem objektu nebo parametrem typu.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Národní prostředí, které se používá při zobrazování zpráv uživateli (třeba cs-CZ)", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Maximální hloubka závislostí pro vyhledávání pod node_modules a načítání javascriptových souborů", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "Operandem operátoru delete nemůže být privátní identifikátor.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "Operandem operátoru delete nemůže být vlastnost určená jen pro čtení.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "Operandem operátoru delete musí být odkaz na vlastnost.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "Operand operátoru delete musí být nepovinný.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "Operandem operátoru inkrementace nebo dekrementace nemůže být přístup k nepovinné vlastnosti.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "Operand operátoru inkrementace nebo dekrementace musí být proměnná nebo přístup k vlastnosti.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "Parser očekával, že najde token {1}, který by odpovídal tokenu {0} tady.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Kořen projektu je nejednoznačný, ale je vyžadován pro vyřešení položky {0} mapování exportu v souboru {1}. Pokud chcete zrušit dvojznačnost, zadejte možnost kompilátoru rootDir.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Kořen projektu je nejednoznačný, ale je vyžadován pro vyřešení položky {0} mapování importu v souboru {1}. Pokud chcete zrušit dvojznačnost, zadejte možnost kompilátoru rootDir.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "K vlastnosti {0} se nedá přistupovat v typu {1} v této třídě, protože ho překrývá jiný privátní identifikátor se stejným zápisem.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Návratový typ přístupového objektu get musí být přiřaditelný k jeho typu přístupového objektu set.", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Návratový typ funkce dekorátoru parametru funkce musí být void nebo any.", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Návratový typ funkce dekorátoru vlastnosti musí být void nebo any.", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Návratový typ asynchronní funkce musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Návratový typ asynchronní funkce nebo metody musí být globální typ Promise. Zamýšleli jste napsat Promise<{0}>?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Pravá strana příkazu for...in musí být typu any, typem objektu nebo parametrem typu, ale tady má typ {0}.", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Pravá strana aritmetické operace musí mít typ any, number, bigint nebo být typu výčtu.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Pravá strana výrazu instanceof musí mít typ any nebo typ, který se dá přiřadit k typu rozhraní Function.", - "The_root_value_of_a_0_file_must_be_an_object_5092": "Kořenová hodnota souboru {0} musí být objekt.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "Překrývající deklarace {0} je definovaná tady.", - "The_signature_0_of_1_is_deprecated_6387": "Signatura {0} pro {1} je zastaralá.", - "The_specified_path_does_not_exist_Colon_0_5058": "Zadaná cesta neexistuje: {0}", - "The_tag_was_first_specified_here_8034": "Značka se poprvé zadala tady.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "Cíl přiřazení rest objektu nemůže představovat přístup k nepovinné vlastnosti.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "Cílem přiřazení zbytku objektu musí být proměnná nebo přístup k vlastnosti.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "Kontext this typu {0} se nedá přiřadit k možnosti this metody typu {1}.", - "The_this_types_of_each_signature_are_incompatible_2685": "Typy this jednotlivých signatur nejsou kompatibilní.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "Typ {0} je readonly a nedá se přiřadit k neměnnému typu {1}.", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Pokud se v příkazu k exportu používá „export type“, nemůžete v pojmenovaném exportu použít modifikátor „type“.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Pokud se v příkazu k importu používá „import type“, nemůžete v pojmenovaném importu použít modifikátor „type“.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Typ deklarace funkce musí odpovídat její signatuře.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Tento typ výrazu se nedá pojmenovat bez kontrolního výrazu resolution-mode, což je nestabilní funkce. K potlačení této chyby použijte noční vydání TypeScript. Pokuste se o update pomocí „npm install -D typescript@next'.“.", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Uzel tohoto typu nejde serializovat, protože nejde serializovat jeho vlastnost {0}.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Typ vrácený metodou {0}() asynchronního iterátoru musí být příslib pro typ s vlastností value.", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Typ vrácený metodou {0}() iterátoru musí obsahovat vlastnost value.", - "The_types_of_0_are_incompatible_between_these_types_2200": "Typy {0} nejsou mezi těmito typy kompatibilní.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "Typy vrácené metodou {0} nejsou mezi těmito typy kompatibilní.", - "The_value_0_cannot_be_used_here_18050": "Hodnota „{0}“ se tady nedá použít.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Deklarace proměnné příkazu for...in nemůže obsahovat inicializátor.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Deklarace proměnné příkazu for...of nemůže obsahovat inicializátor.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Příkaz with není podporovaný. Všechny symboly s blokem with budou typu any.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Vlastnost {0} této značky JSX očekává jeden podřízený objekt typu {1}, ale poskytlo se jich více.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Vlastnost {0} této značky JSX očekává typ {1}, který vyžaduje více podřízených objektů, ale zadal se jen jeden.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Toto porovnání se zdá být neúmyslné, protože typy {0} a {1} se nijak nepřekrývají.", - "This_condition_will_always_return_0_2845": "Tato podmínka vždy vrátí {0}.", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Tato podmínka vždy vrátí „{0}“, protože JavaScript porovnává objekty pomocí odkazu, nikoli hodnoty.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Tato podmínka vždy vrátí hodnotu True, protože tato {0} je vždy definovaná.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Tato podmínka vždy vrátí hodnotu True, protože tato funkce je vždy definována. Chtěli jste ji místo toho nazvat?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Tato funkce konstruktoru se může převést na deklaraci třídy.", - "This_expression_is_not_callable_2349": "Tento výraz se nedá zavolat.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tento výraz se nedá volat, protože je to přístupový objekt get. Nechtěli jste ho použít bez ()?", - "This_expression_is_not_constructable_2351": "Tento výraz se nedá vytvořit.", - "This_file_already_has_a_default_export_95130": "Tento soubor už má výchozí export.", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Tento import se nikdy nepoužívá jako hodnota a musí používat import type, protože importsNotUsedAsValues je nastavené na error.", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Toto je deklarace, která se rozšiřuje. Zvažte možnost přesunout rozšiřující deklaraci do stejného souboru.", - "This_may_be_converted_to_an_async_function_80006": "Toto je možné převést na asynchronní funkci.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože není deklarovaný v základní třídě {0}.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože není deklarovaný v základní třídě {0}. Měli jste na mysli {1}?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože třída {0}, která ho obsahuje, nerozšiřuje jinou třídu.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Tento člen nemůže mít modifikátor override, protože není deklarovaný v základní třídě {0}.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Tento člen nemůže mít modifikátor override, protože není deklarovaný v základní třídě {0}. Měli jste na mysli {1}?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Tento člen nemůže mít modifikátor override, protože třída {0}, která ho obsahuje, nerozšiřuje jinou třídu.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Tento člen musí mít komentář JSDoc se značkou @override, protože přepisuje člen v základní třídě {0}.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Tento člen musí mít modifikátor override, protože přepisuje člen v základní třídě {0}.", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Tento člen musí mít modifikátor override, protože přepisuje abstraktní metodu, která je deklarovaná v základní třídě {0}.", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Na tento modul je možné se pomocí importů nebo exportů ECMAScript odkazovat jen tak, že se zapne příznak {0} a odkáže se na výchozí export.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Tento modul se deklaroval pomocí export =, a dá se použít jenom s výchozím importem při použití příznaku {0}.", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Tato signatura přetížení není kompatibilní se signaturou implementace.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Tento parametr se nepodporuje s direktivou use strict.", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Tato vlastnost parametru musí mít komentář JSDoc se značkou @override, protože přepisuje člen v základní třídě {0}.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Tato vlastnost parametru musí mít modifikátor override, protože přepisuje člen v základní třídě {0}.", - "This_spread_always_overwrites_this_property_2785": "Tento rozsah vždy přepíše tuto vlastnost.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Přidejte koncovou čárku nebo explicitní omezení.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Místo toho použijte výraz „as“.", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Tato syntaxe vyžaduje importovanou podpůrnou aplikaci, ale modul {0} se nenašel.", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Tato syntaxe vyžaduje importovanou pomocnou rutinu s názvem {1}, která v {0} neexistuje. Zvažte možnost upgradovat verzi {0}.", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Tato syntaxe vyžaduje importovanou pomocnou rutinu s názvem {1} a parametry {2}, která není kompatibilní s tou v {0}. Zvažte upgrade verze {0}.", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "Tento parametr typu může potřebovat omezení extends {0}.", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Toto použití importu není platné. Volání import() se dají zapsat, ale musí mít závorky a nemůžou mít typové argumenty.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "Pokud chcete tento soubor převést na modul ECMAScript, přidejte pole \"type\": \"module\" do {0}.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Pokud chcete tento soubor převést na modul ECMAScript, změňte jeho příponu na {0}\" nebo přidejte pole \"type\": \"module\" do {1}.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Pokud chcete tento soubor převést na modul ECMAScript, změňte jeho příponu na {0} nebo vytvořte místní soubor package.json s {\"type\": \"module\"}.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Pokud chcete tento soubor převést na modul ECMAScript, vytvořte místní soubor package.json s { \"type\": \"module\" }.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Výrazy await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16 nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarace nejvyšší úrovně v souborech .d.ts musí začínat modifikátorem declare, nebo export.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Smyčky for await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16 nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.", - "Trailing_comma_not_allowed_1009": "Čárka na konci není povolená.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpiluje každý soubor jako samostatný modul (podobné jako ts.transpileModule).", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Vyzkoušejte deklaraci npm i --save-dev @types/{1}, pokud existuje, nebo přidejte nový soubor deklarací (.d.ts) s deklarací declare module '{0}';.", - "Trying_other_entries_in_rootDirs_6110": "Zkoušejí se další položky v rootDirs.", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Zkouší se nahrazení {0}, umístění modulu kandidáta: {1}.", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Název musí mít buď všechny členy řazené kolekce členů, nebo ho nesmí mít žádný člen.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Typ řazené kolekce členů {0} délky {1} nemá na indexu {2} žádný prvek.", - "Tuple_type_arguments_circularly_reference_themselves_4110": "Argumenty typů řazené kolekce členů cyklicky odkazují samy na sebe.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Typem {0} se dá iterovat, pouze když se použije příznak --downlevelIteration nebo s možností --target nastavenou na es2015 nebo vyšší.", - "Type_0_cannot_be_used_as_an_index_type_2538": "Typ {0} se nedá použít jako typ indexu.", - "Type_0_cannot_be_used_to_index_type_1_2536": "Typ {0} nejde použít k indexování typu {1}.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "Typ {0} nevyhovuje omezení {1}.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "Typ {0} nevyhovuje očekávanému typu {1}.", - "Type_0_has_no_call_signatures_2757": "Typ {0} nemá žádné signatury volání.", - "Type_0_has_no_construct_signatures_2761": "Typ {0} nemá žádné signatury konstruktu.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "Typ {0} nemá odpovídající signaturu indexu pro typ {1}.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "Typ {0} nemá žádné vlastnosti společné s typem {1}.", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "U typu {0} nejsou žádné podpisy, pro které platí seznam argumentů obecného typu.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "V typu {0} chybí následující vlastnosti z typu {1}: {2}", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "V typu {0} chybí následující vlastnosti z typu {1}: {2} a ještě {3}", - "Type_0_is_not_a_constructor_function_type_2507": "Typ {0} není typ funkce konstruktoru.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Typ {0} nepředstavuje platný návratový typ asynchronní funkce v ES5/ES3, protože neodkazuje na hodnotu konstruktoru kompatibilní s příslibem.", - "Type_0_is_not_an_array_type_2461": "Typ {0} není typ pole.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "Typ {0} není typem pole nebo řetězce.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ {0} není typem pole nebo řetězce, nebo nemá metodu [Symbol.iterator](), která vrací iterátor.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "Typ {0} není typem pole, nebo nemá metodu [Symbol.iterator](), která vrací iterátor.", - "Type_0_is_not_assignable_to_type_1_2322": "Typ {0} nejde přiřadit typu {1}.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Typ {0} se nedá přiřadit k typu {1}. Měli jste na mysli {2}?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Typ {0} se nedá přiřadit typu {1}. Existují dva různé typy s tímto názvem, ale nesouvisí spolu.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Typ {0} nelze přiřadit k typu {1}, jak je implikováno anotací odchylky.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typů vlastností cíle.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typu cíle.", - "Type_0_is_not_comparable_to_type_1_2678": "Typ {0} se nedá porovnat s typem {1}.", - "Type_0_is_not_generic_2315": "Typ {0} není obecný.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Typ {0} může představovat primitivní hodnotu, která není povolena jako pravý operand operátoru in.", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Typ {0} musí mít metodu [Symbol.asyncIterator](), která vrací asynchronní iterátor.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Typ {0} musí mít metodu [Symbol.iterator](), která vrací iterátor.", - "Type_0_provides_no_match_for_the_signature_1_2658": "Typ {0} neposkytuje žádnou shodu pro podpis {1}.", - "Type_0_recursively_references_itself_as_a_base_type_2310": "Typ {0} odkazuje rekurzivně sám na sebe jako na základní typ.", - "Type_Checking_6248": "Kontrola typů", - "Type_alias_0_circularly_references_itself_2456": "Alias typu {0} odkazuje cyklicky sám na sebe.", - "Type_alias_must_be_given_a_name_1439": "Alias typu musí mít název.", - "Type_alias_name_cannot_be_0_2457": "Název aliasu typu nemůže být {0}.", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "Aliasy typů se dají používat jen v typescriptových souborech.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "V deklaraci konstruktoru se nemůže objevit anotace typu.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "Anotace typů se dají používat jen v typescriptových souborech.", - "Type_argument_expected_1140": "Očekává se argument typu.", - "Type_argument_list_cannot_be_empty_1099": "Seznam argumentů typu nemůže být prázdný.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Argumenty typů se dají používat jen v typescriptových souborech.", - "Type_arguments_cannot_be_used_here_1342": "Argumenty typu tady nejde použít.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "Argumenty typů pro {0} se cyklicky odkazují samy na sebe.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Kontrolní výrazy typů se dají používat jen v typescriptových souborech.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Typ na pozici {0} ve zdroji není kompatibilní s typem na pozici {1} v cíli.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Typ na pozicích {0} až {1} ve zdroji není kompatibilní s typem na pozici {2} v cíli.", - "Type_declaration_files_to_be_included_in_compilation_6124": "Soubory deklarace typu, které se mají zahrnout do kompilace", - "Type_expected_1110": "Očekával se typ.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Kontrolní výrazy importu typů by měly mít přesně jeden klíč – resolution-mode – s hodnotou import nebo require.", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Vytvoření instance typu je příliš hluboké a může být nekonečné.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Typ se přímo nebo nepřímo odkazuje ve zpětném volání jeho vlastní metody then při splnění.", - "Type_library_referenced_via_0_from_file_1_1402": "Knihovna typů, na kterou se odkazuje přes {0} ze souboru {1}", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "Knihovna typů, na kterou se odkazuje přes {0} ze souboru {1} s packageId {2}", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "Typ operandu await musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "Typ hodnoty počítané vlastnosti je {0} a nedá se přiřadit do typu {1}.", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "Typ instance členské proměnné {0} nemůže odkazovat na identifikátor {1} deklarovaný v konstruktoru.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Typ iterovaných elementů yield* musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Typ vlastnosti {0} cyklicky odkazuje sám na sebe v mapovaném typu {1}.", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Typ operandu yield v asynchronním generátoru musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Typ pochází z tohoto importu. Import stylu oboru názvů není možné zavolat ani vytvořit a při běhu způsobí chybu. Zvažte možnost použít tady místo toho výchozí import nebo importovat require.", - "Type_parameter_0_has_a_circular_constraint_2313": "Parametr typu {0} má cyklické omezení.", - "Type_parameter_0_has_a_circular_default_2716": "Parametr typu {0} má cyklickou výchozí hodnotu.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "Parametr typu {0} signatury volání z exportovaného rozhraní má nebo používá privátní název {1}.", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "Parametr typu {0} signatury konstruktoru z exportovaného rozhraní má nebo používá privátní název {1}.", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "Parametr typu {0} exportované třídy má nebo používá privátní název {1}.", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "Parametr typu {0} exportované funkce má nebo používá privátní název {1}.", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "Parametr typu {0} exportovaného rozhraní má nebo používá privátní název {1}.", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "Parametr typu {0} exportovaného typu namapovaného objektu typu má nebo používá privátní název {1}.", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "Parametr typu {0} exportovaného aliasu typu má nebo používá privátní název {1}.", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "Parametr typu {0} metody z exportovaného rozhraní má nebo používá privátní název {1}.", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "Parametr typu {0} veřejné metody z exportované třídy má nebo používá privátní název {1}.", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "Parametr typu {0} veřejné statické metody z exportované třídy má nebo používá privátní název {1}.", - "Type_parameter_declaration_expected_1139": "Očekává se deklarace parametru typu.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "Deklarace parametrů typů se dají používat jen v typescriptových souborech.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "Výchozí parametry typů se můžou odkazovat jen na dříve deklarované parametry typů.", - "Type_parameter_list_cannot_be_empty_1098": "Seznam parametrů typu nemůže být prázdný.", - "Type_parameter_name_cannot_be_0_2368": "Název parametru typu nemůže být {0}.", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "Parametry typu se nemůžou vyskytovat v deklaraci konstruktoru.", - "Type_predicate_0_is_not_assignable_to_1_1226": "Predikát typu {0} nejde přiřadit {1}.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "Typ tvoří typ řazené kolekce členů, který se nedá reprezentovat, protože je příliš velký.", - "Type_reference_directive_0_was_not_resolved_6120": "======== Direktiva odkazu na typ {0} se nepřeložila. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== Direktiva odkazu na typ {0} se úspěšně přeložila na {1}, primární: {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== Direktiva odkazu na typ {0} se úspěšně přeložila na {1} s ID balíčku {2}, primární: {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "Kontrolní výrazy typů se dají používat jen v typescriptových souborech.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Typy se v deklaracích exportu v souborech JavaScriptu nemůžou vyskytovat.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "Typy mají samostatné deklarace privátní vlastnosti {0}.", - "Types_of_construct_signatures_are_incompatible_2419": "Typy signatur konstruktorů nejsou kompatibilní.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "Typy parametrů {0} a {1} jsou nekompatibilní.", - "Types_of_property_0_are_incompatible_2326": "Typy vlastnosti {0} nejsou kompatibilní.", - "Unable_to_open_file_0_6050": "Soubor {0} nejde otevřít.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "Když se podpis dekorátoru třídy volá jako výraz, nejde přeložit.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Když se podpis dekorátoru metody volá jako výraz, nejde přeložit.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Když se podpis dekorátoru parametru volá jako výraz, nejde přeložit.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Když se podpis dekorátoru vlastnosti volá jako výraz, nejde přeložit.", - "Unexpected_end_of_text_1126": "Neočekávaný konec textu", - "Unexpected_keyword_or_identifier_1434": "Neočekávané klíčové slovo nebo identifikátor.", - "Unexpected_token_1012": "Neočekávaný token", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Neočekávaný token. Očekával se konstruktor, metoda, přístupový objekt nebo vlastnost.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Neočekávaný token. Očekával se název parametru typu bez složených závorek.", - "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "Neočekávaný token. Měli jste na mysli {'}'} nebo }?", - "Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.", - "Unknown_build_option_0_5072": "Neznámá možnost sestavení {0}", - "Unknown_build_option_0_Did_you_mean_1_5077": "Neznámá možnost sestavení {0}. Měli jste na mysli {1}?", - "Unknown_compiler_option_0_5023": "Neznámá možnost kompilátoru {0}", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "Neznámá možnost kompilátoru {0}. Měli jste na mysli {1}?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Neznámé klíčové slovo nebo identifikátor. Neměli jste na mysli „{0}“?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "Neznámá možnost excludes. Měli jste na mysli exclude?", - "Unknown_type_acquisition_option_0_17010": "Neznámá možnost získání typu {0}", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Neznámá možnost získání typu {0}. Měli jste na mysli {1}?", - "Unknown_watch_option_0_5078": "Neznámá možnost sledování {0}", - "Unknown_watch_option_0_Did_you_mean_1_5079": "Neznámá možnost sledování {0}. Měli jste na mysli {1}?", - "Unreachable_code_detected_7027": "Zjistil se nedosažitelný kód.", - "Unterminated_Unicode_escape_sequence_1199": "Neukončená řídicí sekvence Unicode", - "Unterminated_quoted_string_in_response_file_0_6045": "Neukončený řetězec v uvozovkách v souboru odezvy {0}", - "Unterminated_regular_expression_literal_1161": "Neukončený literál regulárního výrazu", - "Unterminated_string_literal_1002": "Neukončený řetězcový literál", - "Unterminated_template_literal_1160": "Neukončený literál šablony", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "Volání netypové funkce nemusí přijmout argumenty typu.", - "Unused_label_7028": "Nepoužívaný popisek", - "Unused_ts_expect_error_directive_2578": "Nepoužitá direktiva @ts-expect-error", - "Update_import_from_0_90058": "Aktualizovat import z: {0}", - "Updating_output_of_project_0_6373": "Aktualizuje se výstup projektu {0}...", - "Updating_output_timestamps_of_project_0_6359": "Aktualizují se výstupní časová razítka projektu {0}...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "Aktualizují se nezměněná výstupní časová razítka projektu {0}...", - "Use_0_95174": "Použít {0}", - "Use_Number_isNaN_in_all_conditions_95175": "Ve všech podmínkách použijte Number.isNaN.", - "Use_element_access_for_0_95145": "Použít přístup k elementům pro {0}", - "Use_element_access_for_all_undeclared_properties_95146": "Použít přístup k elementům pro všechny nedeklarované vlastnosti", - "Use_synthetic_default_member_95016": "Použije syntetického výchozího člena.", - "Using_0_subpath_1_with_target_2_6404": "Používá se {0} dílčí cesta {1} s cílem {2}.", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Použití řetězce v příkazu for...of se podporuje jenom v ECMAScript 5 nebo vyšší verzi.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Použití --build, -b způsobí, že se tsc bude chovat spíše jako orchestrátor sestavení než kompilátor. Pomocí této možnosti můžete aktivovat vytváření složených projektů, o kterých se můžete dozvědět více {0}", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", - "VERSION_6036": "VERZE", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "Hodnota typu {0} nemá žádné vlastnosti společné s typem {1}. Chtěli jste ji volat?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "Hodnota typu {0} se nedá volat. Nechtěli jste zahrnout new?", - "Variable_0_implicitly_has_an_1_type_7005": "Proměnná {0} má implicitně typ {1}.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "Proměnná {0} má implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z využití.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "Proměnná {0} má na některých místech implicitně typ {1}, ale je možné, že lepší typ by se vyvodil z využití.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "V některých umístěních, kde se nedá určit typ proměnné, má proměnná {0} implicitně typ {1}.", - "Variable_0_is_used_before_being_assigned_2454": "Proměnná {0} je použitá před přiřazením.", - "Variable_declaration_expected_1134": "Očekává se deklarace proměnné.", - "Variable_declaration_list_cannot_be_empty_1123": "Seznam deklarací proměnných nemůže být prázdný.", - "Variable_declaration_not_allowed_at_this_location_1440": "Deklarace proměnné není v tomto umístění povolená.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element variadic na pozici {0} ve zdroji neodpovídá elementu na pozici {1} v cíli.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Poznámky Variance se podporují pouze u aliasů typů pro typy objektů, funkcí, konstruktorů a mapování.", - "Version_0_6029": "Verze {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Další informace o tomto souboru si můžete přečíst na https://aka.ms/tsconfig", - "WATCH_OPTIONS_6918": "MOŽNOSTI SLEDOVÁNÍ", - "Watch_and_Build_Modes_6250": "Režimy sledování a sestavování", - "Watch_input_files_6005": "Sledovat vstupní soubory", - "Watch_option_0_requires_a_value_of_type_1_5080": "Možnost sledování {0} vyžaduje hodnotu typu {1}.", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Pro {0} můžeme napsat typ jenom tak, že sem přidáme typ pro celý parametr.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Při přiřazování funkcí zkontrolujte a zajistěte, aby parametry a vrácené hodnoty měly kompatibilní podtypy.", - "When_type_checking_take_into_account_null_and_undefined_6699": "Při kontrole typů berte v potaz i hodnoty „null“ a „undefined“.", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Určuje, jestli se místo vymazání obrazovky má zachovat zastaralý výstup konzoly v režimu sledování.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "Zabalit všechny neplatné znaky do kontejneru výrazu", - "Wrap_all_object_literal_with_parentheses_95116": "Uzavřít všechny literály objektů do závorek", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Zabalit všechny JSX bez nadřazených položek ve fragmentu JSX", - "Wrap_in_JSX_fragment_95120": "Zabalit ve fragmentu JSX", - "Wrap_invalid_character_in_an_expression_container_95108": "Zabalit neplatný znak do kontejneru výrazu", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Uzavřít následující kód, který by měl být literál objektu, do závorek", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Informace o všech možnostech kompilátoru najdete na {0}", - "You_cannot_rename_a_module_via_a_global_import_8031": "Přes globální import se modul nedá přejmenovat.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Nelze přejmenovat elementy definované ve složce node_modules.", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Nelze přejmenovat elementy definované v jiné složce node_modules.", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Nejde přejmenovat elementy definované ve standardní knihovně TypeScriptu.", - "You_cannot_rename_this_element_8000": "Tento element nejde přejmenovat.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "Objekt {0} přijímá málo argumentů k tomu, aby se dal použít jako dekoratér. Nechtěli jste ho nejprve volat a napsat @{0}()?", - "_0_and_1_index_signatures_are_incompatible_2330": "Signatury indexu {0} a {1} jsou nekompatibilní.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Operace {0} a {1} se nedají kombinovat bez závorek.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "Položka {0} je zadána dvakrát. Atribut s názvem {0} se přepíše.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "{0} se dá importovat jen zapnutím příznaku esModuleInterop a pomocí výchozího importu.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "{0} se dá importovat jen pomocí výchozího importu.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "{0} se dá importovat jen pomocí volání require nebo zapnutím příznaku esModuleInterop a pomocí výchozího importu.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "{0} se dá importovat jen pomocí volání require nebo pomocí výchozího importu.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "{0} se dá importovat jen pomocí import {1} = require({2}) nebo výchozího importu.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "{0} se dá importovat jen pomocí import {1} = require({2}) nebo zapnutím příznaku esModuleInterop a pomocí výchozího importu.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "{0} není možné zkompilovat v režimu --isolatedModules, protože se považuje za globální soubor skriptu. Pokud ho chcete převést na modul, přidejte import, export nebo prázdný příkaz export {}.", - "_0_cannot_be_used_as_a_JSX_component_2786": "{0} se nedá použít jako součást JSX.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "{0} se nedá používat jako hodnota, protože se exportovalo pomocí export type.", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "{0} se nedá používat jako hodnota, protože se importovalo pomocí import type.", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Komponenty {0} nepřijímají text jako podřízené prvky. Text v JSX má typ string, ale očekávaný typ {1} je {2}.", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Instanci {0} by bylo možné vytvořit s libovolným typem, který by nemusel souviset s {1}.", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Deklarace {0} se dají používat jen v typescriptových souborech.", - "_0_expected_1005": "Očekával se: {0}.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "{0} nemá žádný exportovaný člen s názvem {1}. Neměli jste na mysli {2}?", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "{0} má implicitně návratový typ {1}, ale je možné, že lepší typ by se vyvodil z využití.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "{0} obsahuje implicitně návratový typ any, protože neobsahuje anotaci návratového typu a přímo nebo nepřímo se odkazuje v jednom ze svých návratových výrazů.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "{0} má implicitně typ any, protože nemá anotaci typu a odkazuje se přímo nebo nepřímo v jeho vlastním inicializátoru.", - "_0_index_signatures_are_incompatible_2634": "Signatury indexu {0} jsou nekompatibilní.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "{0} Typ indexu {1} se nedá přiřadit k {2} typu indexu {3}.", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0} je primitivum, ale {1} je obálkový objekt. Pokud je to možné, použijte raději {0}.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "{0} je typ a nedá se importovat do javascriptových souborů. V poznámce typu JSDoc použijte {1}.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Hodnota {0} je typ a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "{0} je nepoužívané přejmenování {1}. Chtěli jste ji použít jako poznámku typu?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "{0} se dá přiřadit k omezení typu {1}, ale pro {1} se dala vytvořit instance s jiným podtypem omezení {2}.", - "_0_is_automatically_exported_here_18044": "{0} se sem automaticky exportuje.", - "_0_is_declared_but_its_value_is_never_read_6133": "Deklaruje se {0}, ale jeho hodnota se vůbec nečte.", - "_0_is_declared_but_never_used_6196": "{0} se nadeklarovalo, ale nepoužilo.", - "_0_is_declared_here_2728": "{0} je deklarované tady.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "{0} je definované jako vlastnost ve třídě {1}, ale v {2} se tady přepisuje jako přístupový objekt.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "{0} je definované jako přístupový objekt ve třídě {1}, ale v {2} se tady přepisuje jako vlastnost instance.", - "_0_is_deprecated_6385": "{0} je zastaralé.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "{0} není platnou metavlastností pro klíčové slovo {1}. Měli jste na mysli {2}?", - "_0_is_not_allowed_as_a_parameter_name_1390": "{0} není povolen jako název parametru.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "{0} se nepovoluje jako název deklarace proměnné.", - "_0_is_of_type_unknown_18046": "„{0}“ je typ unknown", - "_0_is_possibly_null_18047": "„{0}“ je pravděpodobně typ null.", - "_0_is_possibly_null_or_undefined_18049": "„{0}“ je typ null nebo undefined", - "_0_is_possibly_undefined_18048": "„{0}“ je pravděpodobně typ undefined.", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Na {0} se přímo nebo nepřímo odkazuje ve vlastním základním výrazu.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Na {0} se odkazuje přímo nebo nepřímo v jeho vlastní anotaci typu.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "{0} se zadalo více než jednou, proto se toto použití přepíše.", - "_0_list_cannot_be_empty_1097": "Seznam {0} nemůže být prázdný.", - "_0_modifier_already_seen_1030": "Modifikátor {0} se už jednou vyskytl.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Modifikátor {0} se může vyskytovat jenom u parametru typu aliasu třídy, rozhraní nebo typu.", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Modifikátor {0} se nemůže objevit v deklaraci konstruktoru.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Modifikátor {0} se nemůže objevit v elementu modulu nebo oboru názvů.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "Modifikátor {0} se nemůže objevit v parametru.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "Modifikátor {0} se nemůže objevit u člena typu.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Modifikátor {0} se nemůže objevit u parametru typu.", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "Modifikátor {0} se nemůže objevit v signatuře indexu.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Modifikátor {0} se nemůže objevit u elementů třídy tohoto typu.", - "_0_modifier_cannot_be_used_here_1042": "Modifikátor {0} tady nejde použít.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "Modifikátor {0} nejde použít v ambientním kontextu.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "Modifikátor {0} nejde použít s modifikátorem {1}.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Modifikátor {0} se nedá použít s privátním identifikátorem.", - "_0_modifier_must_precede_1_modifier_1029": "Modifikátor {0} se musí vyskytovat před modifikátorem {1}.", - "_0_needs_an_explicit_type_annotation_2782": "{0} vyžaduje explicitní anotaci typu.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "{0} jenom odkazuje na typ, ale tady se používá jako obor názvů.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "{0} odkazuje jenom na typ, ale používá se tady jako hodnota.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "{0} odkazuje jenom na typ, ale tady se používá jako hodnota. Nechtěli jste použít {1} v {0}?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "‚{0}‘ odkazuje jen na typ, ale tady se používá jako hodnota. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na es2015 nebo novější.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "{0} odkazuje na globální UMD, ale aktuální soubor je modul. Zvažte raději přidání importu.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "{0} odkazuje na hodnotu, ale tady se používá jako typ. Měli jste na mysli typeof {0}?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "Hodnota {0} se překládá na deklaraci jenom typu a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "Hodnota {0} se překládá na deklaraci jenom typu a musí se znovu exportovat pomocí zpětného exportu jenom typu, když je povolená vlastnost isolatedModules.", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "Klíčové slovo {0} by mělo být nastaveno uvnitř objektu compilerOptions konfiguračního souboru JSON.", - "_0_tag_already_specified_1223": "Značka {0} se už specifikovala.", - "_0_was_also_declared_here_6203": "{0} se deklarovalo i tady.", - "_0_was_exported_here_1377": "{0} se exportovalo tady.", - "_0_was_imported_here_1376": "{0} se importovalo tady.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "{0} s chybějící anotací návratového typu má implicitně návratový typ {1}.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "{0} s chybějící anotací návratového typu má implicitně typ yield {1}.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Modifikátor abstract se může objevit jenom v deklaraci třídy, metody nebo vlastnosti.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Modifikátor accessor se může objevit jenom v deklaraci vlastnosti.", - "and_here_6204": "a tady.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "Na argumenty nejde odkazovat v inicializátorech vlastností.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "auto: Považovat soubory s importy, exporty, import.meta, jsx (s jsx: react-jsx) nebo formátem esm (s modulem node16+) za moduly.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Výrazy await se tady povolují jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat export {}, aby se tento soubor převedl na modul.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Výrazy await se povolují jen v asynchronních funkcích na nejvyšší úrovni modulů.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Výrazy await nejdou použít v inicializátoru parametru.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "Výraz await nemá žádný vliv na typ tohoto výrazu.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Možnost baseUrl je nastavená na {0}, pomocí této hodnoty se přeloží název modulu {1}, který není relativní.", - "can_only_be_used_at_the_start_of_a_file_18026": "#! se dá použít jen na začátku souboru.", - "case_or_default_expected_1130": "Očekává se case nebo default.", - "catch_or_finally_expected_1472": "Očekávalo se catch nebo finally.", - "const_declarations_can_only_be_declared_inside_a_block_1156": "Deklarace const se dají deklarovat jenom uvnitř bloku.", - "const_declarations_must_be_initialized_1155": "Deklarace const se musejí inicializovat.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Inicializátor člena výčtu const se vyhodnotil na nekonečnou hodnotu.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Inicializátor člena výčtu const se vyhodnotil na nepovolenou hodnotu NaN.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Inicializátory členů konstantního výčtu můžou obsahovat jen hodnoty literálů a další vypočítané hodnoty výčtu.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Výčty const se dají použít jenom ve výrazech přístupu k vlastnosti nebo indexu nebo na pravé straně deklarace importu, přiřazení exportu nebo dotazu na typ.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "constructor se nedá použít jako název vlastnosti parametru.", - "constructor_is_a_reserved_word_18012": "#constructor je rezervované slovo.", - "default_Colon_6903": "výchozí:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "Příkaz delete nejde volat u identifikátoru ve striktním režimu.", - "export_Asterisk_does_not_re_export_a_default_1195": "export * neprovádí opakovaný export výchozí hodnoty.", - "export_can_only_be_used_in_TypeScript_files_8003": "export = se dá používat jen v typescriptových souborech.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Modifikátor export se nedá použít u ambientních modulů a rozšíření modulů, protože jsou vždy viditelné.", - "extends_clause_already_seen_1172": "Klauzule extends se už jednou vyskytla.", - "extends_clause_must_precede_implements_clause_1173": "Klauzule extends se musí vyskytovat před klauzulí implements.", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "Klauzule extends exportované třídy {0} má nebo používá privátní název {1}.", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "Klauzule extends exportované třídy má nebo používá privátní název {0}.", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "Klauzule extends exportovaného rozhraní {0} má nebo používá privátní název {1}.", - "false_unless_composite_is_set_6906": "„false“, pokud není nastavené „composite“.", - "false_unless_strict_is_set_6905": "„false“, pokud není nastavená hodnota „strict“.", - "file_6025": "soubor", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Smyčky for await se tady povolují jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat export {}, aby se tento soubor převedl na modul.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Smyčky for await se povolují jen v asynchronních funkcích na nejvyšší úrovni modulů.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "Přístupové objekty get a set nemůžou deklarovat parametry this.", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "[], pokud je zadáno „soubory“, jinak [\"**/*\"]5D;", - "implements_clause_already_seen_1175": "Klauzule implements se už jednou vyskytla.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Klauzule implements se dají používat jen v typescriptových souborech.", - "import_can_only_be_used_in_TypeScript_files_8002": "import = se dá používat jen v typescriptových souborech.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Deklarace infer jsou povolené jenom v klauzuli extends podmíněného typu.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "Deklarace let je možné deklarovat jenom uvnitř bloku.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Nepovoluje se používat let jako název v deklaracích let nebo const.", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`", - "module_system_or_esModuleInterop_6904": "module === \"system\" or esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "Výraz new s chybějící signaturou konstruktoru v cíli má implicitně typ any.", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "[\"node_modules\", \"bower_components\", \"jspm_packages\"] a hodnotu „outDir“, pokud je zadána.", - "one_of_Colon_6900": "jeden z:", - "one_or_more_Colon_6901": "1 nebo více:", - "options_6024": "možnosti", - "or_JSX_element_expected_1145": "Očekával se element { nebo JSX.", - "or_expected_1144": "Očekává se znak { nebo ;.", - "package_json_does_not_have_a_0_field_6100": "Soubor package.json neobsahuje pole {0}.", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "package.json nemá položku typesVersions, která by odpovídala verzi {0}.", - "package_json_had_a_falsy_0_field_6220": "Soubor package.json obsahoval neplatné pole {0}.", - "package_json_has_0_field_1_that_references_2_6101": "Soubor package.json má pole {0} {1}, které odkazuje na {2}.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "package.json má položku typesVersions {0}, která není platný rozsah semver.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "package.json má položku typesVersions {0}, která odpovídá verzi kompilátoru {1}. Hledá se vzor, který bude odpovídat názvu modulu {2}.", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "package.json má pole typesVersions s mapováními cesty specifickými pro verzi.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "package.json scope {0} implicitně mapuje specifikátor {1} na hodnotu null.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json scope {0} má neplatný typ pro cíl specifikátoru {1}.", - "package_json_scope_0_has_no_imports_defined_6273": "package.json scope {0} nemá definovány žádné importy.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Je zadaná možnost paths, hledá se vzor, který odpovídá názvu modulu {0}.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modifikátor readonly se může objevit jenom v deklaraci vlastnosti nebo signatuře indexu.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modifikátor typu readonly se povoluje jen pro typy literálů pole a řazené kolekce členů.", - "require_call_may_be_converted_to_an_import_80005": "Volání require se dá převést na import.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Kontrolní výrazy resolution-mode se podporují jenom tehdy, kdy je moduleResolution node16 nebo nodenext", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Kontrolní výrazy resolution-mode jsou nestabilní. K potlačení této chyby použijte noční vydání TypeScript. Pokuste se o update pomocí „npm install -D typescript@next'.“.", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "resolution-mode se dá nastavit pouze pro importy type-only.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "resolution-mode je jediný platný klíč pro kontrolní výrazy importu typů.", - "resolution_mode_should_be_either_require_or_import_1453": "resolution-mode by měl být buď require, nebo import.", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Je nastavená možnost rootDirs, použije se k překladu relativního názvu modulu {0}.", - "super_can_only_be_referenced_in_a_derived_class_2335": "Na vlastnost super se dá odkazovat jenom v odvozené třídě.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "Na možnost super je možné odkazovat jenom ve členech odvozených tříd nebo výrazů literálu objektu.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "Na vlastnost super se nedá odkazovat v názvu počítané vlastnosti.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "Na vlastnost super se nedá odkazovat v argumentech konstruktoru.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "Možnost super je povolená jenom ve členech výrazů literálu objektu, pokud je možnost target ES2015 nebo vyšší.", - "super_may_not_use_type_arguments_2754": "super nemůže používat argumenty typů.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "Před přístupem k vlastnosti super v konstruktoru odvozené třídy se musí zavolat super.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "Možnost super se musí volat před přístupem k this v konstruktoru odvozené třídy.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "Po vlastnosti super musí následovat seznam argumentů nebo přístup ke členu.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "Přístup k vlastnostem pomocí super je povolený jenom v konstruktoru, členské funkci nebo členském přístupovém objektu odvozené třídy.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "Na vlastnost this se nedá odkazovat v názvu počítaného prostředku.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Na vlastnost this se nedá odkazovat v modulu nebo těle oboru názvů.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Na vlastnost this se nedá odkazovat v inicializátoru statické vlastnosti.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "Na vlastnost this se nedá odkazovat v argumentech konstruktoru.", - "this_cannot_be_referenced_in_current_location_2332": "Na vlastnost this se nedá odkazovat v aktuálním umístění.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "Možnost this má implicitně typ any, protože nemá anotaci typu.", - "true_for_ES2022_and_above_including_ESNext_6930": "„true“ pro ES2022 a vyšší, včetně ESNext.", - "true_if_composite_false_otherwise_6909": "„true“, pokud „composite“, „false“ jinak", - "tsc_Colon_The_TypeScript_Compiler_6922": "TSC: kompilátor TypeScriptu", - "type_Colon_6902": "typ:", - "unique_symbol_types_are_not_allowed_here_1335": "Typy unique symbol tady nejsou povolené.", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "Typy unique symbol jsou povolené jen u proměnných v příkazu proměnné.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "Typy unique symbol nejde použít v deklaraci proměnné s názvem vazby.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "Direktiva use strict se nedá použít se seznamem parametrů, které nejsou jednoduché.", - "use_strict_directive_used_here_1349": "Direktiva use strict se použila tady.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "Příkazy with se ve funkčním bloku async nepovolují.", - "with_statements_are_not_allowed_in_strict_mode_1101": "Příkazy with se ve striktním režimu nepovolují.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "Implicitním výsledkem výrazu yield je typ any, protože v jeho obsahujícím generátoru chybí anotace návratového typu.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "Výrazy yield nejde použít v inicializátoru parametru." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/de/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/de/diagnosticMessages.generated.json deleted file mode 100644 index 8aa99fe9..00000000 --- a/graphql/node_modules/typescript/lib/de/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "ALLE COMPILEROPTIONEN", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Ein Modifizierer \"{0}\" darf nicht mit einer Importdeklaration verwendet werden.", - "A_0_parameter_must_be_the_first_parameter_2680": "Ein \"{0}\"-Parameter muss der erste Parameter sein.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Ein JSDoc-Kommentar \"@typedef\" darf nicht mehrere @type-Tags enthalten.", - "A_bigint_literal_cannot_use_exponential_notation_1352": "Ein bigint-Literal kann keine exponentielle Notation verwenden.", - "A_bigint_literal_must_be_an_integer_1353": "Ein bigint-Literal muss eine ganze Zahl sein.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Ein Bindungsmusterparameter darf in einer Implementierungssignatur nicht optional sein.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Eine break-Anweisung darf nur in einer einschließenden iteration- oder switch-Anweisung verwendet werden.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Eine break-Anweisung kann nur zu einer Bezeichnung einer einschließenden Anweisung springen.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Eine Klasse kann nur einen Bezeichner/\"qualified-name\" mit optionalen Typargumenten implementieren.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Eine Klasse kann nur einen Objekttyp oder eine Schnittmenge von Objekttypen mit statisch bekannten Membern implementieren.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Eine Klassendeklaration ohne den default-Modifizierer muss einen Namen besitzen.", - "A_class_member_cannot_have_the_0_keyword_1248": "Ein Klassenmember darf nicht das Schlüsselwort \"{0}\" aufweisen.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Ein Kommaausdruck ist in einem berechneten Eigenschaftennamen unzulässig.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "Ein berechneter Eigenschaftenname kann nicht aus seinem enthaltenden Typ auf einen Typparameter verweisen.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "Ein berechneter Eigenschaftenname in einer Klasseneigenschaftsdeklaration muss einen einfachen Literaltyp oder den Typ \"unique symbol\" aufweisen.", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "Ein berechneter Eigenschaftenname in einer Methodenüberladung muss auf einen Ausdruck verweisen, dessen Typ ein Literal oder ein \"unique symbol\"-Typ ist.", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "Ein berechneter Eigenschaftenname in einem Typliteral muss auf einen Ausdruck verweisen, dessen Typ ein Literal oder ein \"unique symbol\"-Typ ist.", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Ein berechneter Eigenschaftenname in einem Umgebungskontext muss auf einen Ausdruck verweisen, dessen Typ ein Literal oder ein \"unique symbol\"-Typ ist.", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Ein berechneter Eigenschaftenname in einer Schnittstelle muss auf einen Ausdruck verweisen, dessen Typ ein Literal oder ein \"unique symbol\"-Typ ist.", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Ein berechneter Eigenschaftenname muss vom Typ \"string\", \"number\", \"symbol\" oder \"any\" sein.", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "Eine const-Assertion kann nur auf Verweise auf Enumerationsmember oder Zeichenfolgen-, Zahlen-, boolesche, Array- oder Objektliterale angewendet werden.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Auf einen const-Enumerationsmember kann nur mithilfe eines Zeichenfolgenliterals zugegriffen werden.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Bei einem const-Initialisierer in einem Umgebungskontext muss es sich um ein Zeichenfolgen- oder um ein numerisches Literal oder um einen Verweis auf ein Enumerationsliteral handeln.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Ein Konstruktor darf keinen super-Aufruf enthalten, wenn seine Klasse \"null\" erweitert.", - "A_constructor_cannot_have_a_this_parameter_2681": "Ein Konstruktor darf keinen \"this\"-Parameter aufweisen.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Eine continue-Anweisung darf nur in einer einschließenden iteration-Anweisung verwendet werden.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Eine continue-Anweisung kann nur zu einer Bezeichnung einer einschließenden Iterationsanweisung springen.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Ein declare-Modifizierer darf nicht in einem Kontext verwendet werden, der bereits ein Umgebungskontext ist.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Ein Decorator-Element kann nur für eine Methodenimplementierung und nicht für eine Überladung verwendet werden.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Eine default-Klausel darf nicht mehrmals in einer switch-Anweisung auftreten.", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "Ein Standardexport kann nur in einem Modul des Typs ECMAScript verwendet werden.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Ein Standardexport muss sich auf der obersten Ebene einer Datei- oder Moduldeklaration befinden.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Eine definitive Zuweisungsassertion \"!\" ist in diesem Kontext nicht zulässig.", - "A_destructuring_declaration_must_have_an_initializer_1182": "Eine destrukturierende Deklaration muss einen Initialisierer besitzen.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Ein dynamischer Importaufruf in ES5/ES3 erfordert den Konstruktor \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Ein dynamischer Importaufruf gibt \"Promise\" zurück. Stellen Sie sicher, dass Sie über eine Deklaration für \"Promise\" verfügen, oder schließen Sie ES2015 in Ihre Option \"--lib\" ein.", - "A_file_cannot_have_a_reference_to_itself_1006": "Eine Datei darf keinen Verweis auf sich selbst enthalten.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Eine Funktion, die \"never\" zurückgibt, kann keinen erreichbaren Endpunkt besitzen.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Eine Funktion, die mit dem Schlüsselwort \"new\" aufgerufen wird, darf keinen \"this\"-Typ aufweisen, der \"void\" ist.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Eine Funktion, deren Typ weder als \"void\" noch als \"any\" deklariert ist, muss einen Wert zurückgeben.", - "A_generator_cannot_have_a_void_type_annotation_2505": "Ein Generator darf keine void-Typanmerkung aufweisen.", - "A_get_accessor_cannot_have_parameters_1054": "Eine get-Zugriffsmethode darf keine Parameter haben.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Eine Get-Zugriffsmethode muss mindestens so zugänglich sein wie der Setter.", - "A_get_accessor_must_return_a_value_2378": "Eine get-Zugriffsmethode muss einen Wert zurückgeben.", - "A_label_is_not_allowed_here_1344": "Eine Bezeichnung ist hier nicht zulässig.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "Ein bezeichnetes Tupelelement wird optional mit einem Fragezeichen nach dem Namen und vor dem Doppelpunkt deklariert, nicht nach dem Typ.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "Ein bezeichnetes Tupelelement wird mit \"...\" vor dem Namen und nicht vor dem Typ als \"rest\" deklariert.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "Ein zugeordneter Typ darf keine Eigenschaften oder Methoden deklarieren.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "Ein Memberinitialisierer in einer Enumerationsdeklaration darf nicht auf Member verweisen, die anschließend deklariert werden (einschließlich Member, die in anderen Enumerationen definiert sind).", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "Eine Mixin-Klasse benötigt einen Konstruktor mit einem einzelnen REST-Parameter des Typs \"any[]\".", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "Eine Mixin-Klasse, die aus einer Typvariable mit einer abstrakten Konstruktsignatur erweitert wird, muss auch als \"abstract\" deklariert werden.", - "A_module_cannot_have_multiple_default_exports_2528": "Ein Modul darf nicht mehrere Standardexporte aufweisen.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Eine Namespacedeklaration darf sich nicht in einer anderen Datei als die Klasse oder Funktion befinden, mit der sie zusammengeführt wird.", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Eine Namespacedeklaration darf nicht vor der Klasse oder Funktion positioniert werden, mit der sie zusammengeführt wird.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Eine Namespacedeklaration ist nur auf der obersten Ebene eines Namespaces oder Moduls zulässig.", - "A_non_dry_build_would_build_project_0_6357": "Bei einem Build ohne das Flag \"-dry\" würde das Projekt \"{0}\" erstellt.", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Bei einem Build ohne das Flag \"-dry\" würden die folgenden Dateien gelöscht: {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "Ein Build ohne das Flag \"-dry\" würde die Ausgabe des Projekts \"{0}\" aktualisieren.", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Ein Build ohne das Flag \"-dry\" würde die Zeitstempel der Ausgabe von Projekt \"{0}\" aktualisieren.", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Ein Parameterinitialisierer ist nur in einer Funktions- oder Konstruktorimplementierung zulässig.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Eine Parametereigenschaft darf nicht mithilfe eines rest-Parameters deklariert werden.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Eine Parametereigenschaft ist nur in einer Konstruktorimplementierung zulässig.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "Eine Parametereigenschaft darf nicht mithilfe eines Bindungsmusters deklariert werden.", - "A_promise_must_have_a_then_method_1059": "Ein Zusage muss eine \"then\"-Methode aufweisen.", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "Eine Eigenschaft einer Klasse, deren Typ ein \"unique symbol\"-Typ ist, muss sowohl \"static\" als auch \"readonly\" sein.", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "Eine Eigenschaft einer Schnittstelle oder eines Typliterals, deren Typ ein \"unique symbol\"-Typ ist, muss \"readonly\" sein.", - "A_required_element_cannot_follow_an_optional_element_1257": "Ein erforderliches Element kann nicht auf ein optionales Element folgen.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "Ein erforderlicher Parameter darf nicht auf einen optionalen Parameter folgen.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "Ein rest-Element darf kein Bindungsmuster enthalten.", - "A_rest_element_cannot_follow_another_rest_element_1265": "Ein rest-Element darf nicht auf ein anderes rest-Element folgen.", - "A_rest_element_cannot_have_a_property_name_2566": "Ein rest-Element darf keinen Eigenschaftennamen aufweisen.", - "A_rest_element_cannot_have_an_initializer_1186": "Ein rest-Element darf keinen Initialisierer aufweisen.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "Ein rest-Element muss das letzte Element in einem Destrukturierungsmuster sein.", - "A_rest_element_type_must_be_an_array_type_2574": "Ein rest-Elementtyp muss ein Arraytyp sein.", - "A_rest_parameter_cannot_be_optional_1047": "Ein rest-Parameter darf nicht optional sein.", - "A_rest_parameter_cannot_have_an_initializer_1048": "Ein rest-Parameter darf keinen Initialisierer aufweisen.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "Ein rest-Parameter muss in einer Parameterliste der letzte Eintrag sein.", - "A_rest_parameter_must_be_of_an_array_type_2370": "Ein rest-Parameter muss ein Arraytyp sein.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "Ein rest-Parameter oder ein Bindungsmuster dürfen kein nachgestelltes Komma aufweisen.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "Eine return-Anweisung kann nur in einem Funktionstext verwendet werden.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "Eine \"return\"-Anweisung kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "Eine Reihe von Einträgen, die Importe zum Nachschlagen von Speicherorten in Bezug auf die \"baseUrl\" neu zuordnen.", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "Eine set-Zugriffsmethode darf keine Rückgabetypanmerkung aufweisen.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "Eine set-Zugriffsmethode darf keinen optionalen Parameter aufweisen.", - "A_set_accessor_cannot_have_rest_parameter_1053": "Eine set-Zugriffsmethode darf keinen rest-Parameter aufweisen.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "Eine set-Zugriffsmethode muss genau einen Parameter aufweisen.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Ein set-Zugriffsmethodenparameter darf keinen Initialisierer aufweisen.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Ein Überfüllungsargument muss entweder einen Tupeltyp aufweisen oder an einen Restparameter übergeben werden.", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Ein „super“ Aufruf muss eine Anweisung auf Stammebene innerhalb eines Konstruktors einer abgeleiteten Klasse sein, die initialisierte Eigenschaften, Parametereigenschaften oder private Bezeichner enthält.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Ein „super“ Aufruf muss die erste Anweisung im Konstruktor sein, um auf „super“ oder „this“ zu verweisen, wenn eine abgeleitete Klasse initialisierte Eigenschaften, Parametereigenschaften oder private Bezeichner enthält.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Ein auf \"this\" basierender Typwächter ist nicht mit einem parameterbasierten Typwächter kompatibel.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Ein this-Typ ist nur in einem nicht statischen Member einer Klasse oder Schnittstelle verfügbar.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Eine Datei \"tsconfig.json\" ist bereits definiert unter: \"{0}\".", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Ein Tupelelement kann nicht gleichzeitig als \"optional\" und als \"rest\" festgelegt werden.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Ein Tupeltyp kann nicht mit einem negativen Wert indiziert werden.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Typassertionsausdrücke sind in der linken Seite von Potenzierungsausdrücken nicht zulässig. Erwägen Sie, den Ausdruck in Klammern zu setzen.", - "A_type_literal_property_cannot_have_an_initializer_1247": "Typliteraleigenschaften können keinen Initialisierer aufweisen.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Ein reiner Typenimport kann einen Standardimport oder benannte Bindungen angeben, aber nicht beides.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "Ein Typprädikat darf nicht auf einen rest-Parameter verweisen.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "Ein Typprädikat darf nicht auf ein Element \"{0}\" in einem Bindungsmuster verweisen.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "Ein Typprädikat ist nur an der Rückgabetypposition für Funktionen und Methoden zulässig.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "Der Typ eines Typprädikats muss dem Typ seines Parameters zugewiesen werden können.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "Ein Typ, auf den in einer ergänzten Signatur verwiesen wird, muss mit „import type“ oder einem Namespaceimport importiert werden, wenn „isolatedModules“ und „emitDecoratorMetadata“ aktiviert sind.", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "Eine Variable, deren Typ ein \"unique symbol\"-Typ ist, muss \"const\" sein.", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Ein yield-Ausdruck ist nur in einem Generatortext zulässig.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Auf die abstrakte Methode \"{0}\" in der Klasse \"{1}\" kann nicht über den super-Ausdruck zugegriffen werden.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Abstrakte Methoden können nur in einer abstrakten Klasse verwendet werden.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Auf die abstrakte Eigenschaft \"{0}\" in der Klasse \"{1}\" kann im Konstruktor nicht zugegriffen werden.", - "Accessibility_modifier_already_seen_1028": "Der Zugriffsmodifizierer ist bereits vorhanden.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Zugriffsmethoden sind nur verfügbar, wenn das Ziel ECMAScript 5 oder höher ist.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "Beide Accessoren müssen abstrakt oder nicht abstrakt sein.", - "Add_0_to_unresolved_variable_90008": "Der nicht aufgelösten Variablen \"{0}.\" hinzufügen", - "Add_a_return_statement_95111": "return-Anweisung hinzufügen", - "Add_all_missing_async_modifiers_95041": "Alle fehlenden async-Modifizierer hinzufügen", - "Add_all_missing_attributes_95168": "Alle fehlenden Attribute hinzufügen", - "Add_all_missing_call_parentheses_95068": "Alle fehlenden Klammern in Aufrufen hinzufügen", - "Add_all_missing_function_declarations_95157": "Alle fehlenden Funktionsdeklarationen hinzufügen", - "Add_all_missing_imports_95064": "Alle fehlenden Importe hinzufügen", - "Add_all_missing_members_95022": "Alle fehlenden Member hinzufügen", - "Add_all_missing_override_modifiers_95162": "Alle fehlenden override-Modifizierer hinzufügen", - "Add_all_missing_properties_95166": "Alle fehlenden Eigenschaften hinzufügen", - "Add_all_missing_return_statement_95114": "Alle fehlenden return-Anweisungen hinzufügen", - "Add_all_missing_super_calls_95039": "Alle fehlenden super-Aufrufe hinzufügen", - "Add_async_modifier_to_containing_function_90029": "Async-Modifizierer zur enthaltenden Funktion hinzufügen", - "Add_await_95083": "\"await\" hinzufügen", - "Add_await_to_initializer_for_0_95084": "\"await\" zum Initialisierer für \"{0}\" hinzufügen", - "Add_await_to_initializers_95089": "\"await\" zu Initialisierern hinzufügen", - "Add_braces_to_arrow_function_95059": "Geschweifte Klammern zu Pfeilfunktion hinzufügen", - "Add_const_to_all_unresolved_variables_95082": "\"const\" zu allen nicht aufgelösten Variablen hinzufügen", - "Add_const_to_unresolved_variable_95081": "\"const\" zur nicht aufgelösten Variable hinzufügen", - "Add_definite_assignment_assertion_to_property_0_95020": "Definitive Zuweisungsassertion zu Eigenschaft \"{0}\" hinzufügen", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Allen nicht initialisierten Eigenschaften definitive Zuweisungsassertionen hinzufügen", - "Add_export_to_make_this_file_into_a_module_95097": "\"export {}\" hinzufügen, um diese Datei in ein Modul umzuwandeln", - "Add_extends_constraint_2211": "\"extends\"-Einschränkung hinzufügen", - "Add_extends_constraint_to_all_type_parameters_2212": "\"extends\"-Einschränkung zu allen Typparametern hinzufügen", - "Add_import_from_0_90057": "Import aus \"{0}\" hinzufügen", - "Add_index_signature_for_property_0_90017": "Indexsignatur für die Eigenschaft \"{0}\" hinzufügen", - "Add_initializer_to_property_0_95019": "Initialisierer zu Eigenschaft \"{0}\" hinzufügen", - "Add_initializers_to_all_uninitialized_properties_95027": "Allen nicht initialisierten Eigenschaften Initialisierer hinzufügen", - "Add_missing_attributes_95167": "Fehlende Attribute hinzufügen", - "Add_missing_call_parentheses_95067": "Fehlende Klammern in Aufrufen hinzufügen", - "Add_missing_enum_member_0_95063": "Fehlenden Enumerationsmember \"{0}\" hinzufügen", - "Add_missing_function_declaration_0_95156": "Fehlende Funktionsdeklaration \"{0}\" hinzufügen", - "Add_missing_new_operator_to_all_calls_95072": "Fehlenden new-Operator zu allen Aufrufen hinzufügen", - "Add_missing_new_operator_to_call_95071": "Fehlender new-Operator zum Aufruf hinzufügen", - "Add_missing_properties_95165": "Fehlende Eigenschaften hinzufügen", - "Add_missing_super_call_90001": "Fehlenden super()-Aufruf hinzufügen", - "Add_missing_typeof_95052": "Fehlenden \"typeof\" hinzufügen", - "Add_names_to_all_parameters_without_names_95073": "Namen zu allen Parametern ohne Namen hinzufügen", - "Add_or_remove_braces_in_an_arrow_function_95058": "Geschweifte Klammern zu einer Pfeilfunktion hinzufügen oder daraus entfernen", - "Add_override_modifier_95160": "override-Modifizierer hinzufügen", - "Add_parameter_name_90034": "Parameternamen hinzufügen", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Allen nicht aufgelösten Variablen, die einem Membernamen entsprechen, Qualifizierer hinzufügen", - "Add_to_all_uncalled_decorators_95044": "Allen nicht aufgerufenen Decorators \"()\" hinzufügen", - "Add_ts_ignore_to_all_error_messages_95042": "Allen Fehlermeldungen \"@ts-ignore\" hinzufügen", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Fügen Sie einem Typ „undefined“ hinzu, wenn über einen Index darauf zugegriffen wird.", - "Add_undefined_to_optional_property_type_95169": "„Undefined“ zum optionalen Eigenschaftstyp hinzufügen", - "Add_undefined_type_to_all_uninitialized_properties_95029": "Allen nicht initialisierten Eigenschaften einen nicht definierten Typ hinzufügen", - "Add_undefined_type_to_property_0_95018": "undefined-Typ zu Eigenschaft \"{0}\" hinzufügen", - "Add_unknown_conversion_for_non_overlapping_types_95069": "Konvertierung \"unknown\" für Typen ohne Überschneidung hinzufügen", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "\"unknown\" zu allen Konvertierungen für Typen ohne Überschneidung hinzufügen", - "Add_void_to_Promise_resolved_without_a_value_95143": "\"Void\" zu ohne Wert aufgelöstem Promise hinzufügen", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "\"Void\" allen ohne Wert aufgelösten Promises hinzufügen", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "Das Hinzufügen einer \"tsconfig.json\"-Datei erleichtert die Organisation von Projekten, die sowohl TypeScript- als auch JavaScript-Dateien enthalten. Weitere Informationen finden Sie unter https://aka.ms/tsconfig.", - "All_declarations_of_0_must_have_identical_constraints_2838": "Alle Deklarationen von \"{0}\" müssen identische Modifizierer aufweisen.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "Alle Deklarationen von \"{0}\" müssen identische Modifizierer aufweisen.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "Alle Deklarationen von \"{0}\" müssen identische Typparameter aufweisen.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Alle Deklarationen einer abstrakten Methode müssen aufeinanderfolgend sein.", - "All_destructured_elements_are_unused_6198": "Alle destrukturierten Elemente werden nicht verwendet.", - "All_imports_in_import_declaration_are_unused_6192": "Keiner der Importe in der Importdeklaration wird verwendet.", - "All_type_parameters_are_unused_6205": "Sämtliche Typparameter werden nicht verwendet.", - "All_variables_are_unused_6199": "Alle Variablen werden nicht verwendet.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "Lassen Sie zu, dass JavaScript-Dateien Teil Ihres Programms werden. Verwenden Sie die Option „checkJS“, um Fehler aus diesen Dateien abzurufen.", - "Allow_accessing_UMD_globals_from_modules_6602": "Zugriff auf globale UMD-Bibliotheken aus Modulen zulassen", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Standardimporte von Modulen ohne Standardexport zulassen. Dies wirkt sich nicht auf die Codeausgabe aus, lediglich auf die Typprüfung.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "\"Import x from y\" zulassen, wenn ein Modul keinen Standardexport hat.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Das Importieren von Hilfsfunktionen aus tslib einmal pro Projekt zulassen, anstatt sie pro Datei einzubeziehen.", - "Allow_javascript_files_to_be_compiled_6102": "Kompilierung von JavaScript-Dateien zulassen.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Lassen Sie zu, dass mehrere Ordner beim Auflösen von Modulen als ein Ordner behandelt werden.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Der bereits enthaltene Dateiname \"{0}\" unterscheidet sich vom Dateinamen \"{1}\" nur hinsichtlich der Groß-/Kleinschreibung.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "Die Umgebungsmoduldeklaration darf keinen relativen Modulnamen angeben.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "Umgebungsmodule dürfen nicht in andere Module oder Namespaces geschachtelt werden.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "Ein AMD-Modul darf nicht mehrere Namenzuweisungen aufweisen.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "Ein abstrakter Accessor kann keine Implementierung aufweisen.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Ein Zugriffsmodifizierer kann nicht mit einem privaten Bezeichner verwendet werden.", - "An_accessor_cannot_have_type_parameters_1094": "Eine Zugriffsmethode darf keine Typparameter aufweisen.", - "An_accessor_property_cannot_be_declared_optional_1276": "Eine Accessoreigenschaft kann nicht als optional deklariert werden.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Eine Umgebungsmoduldeklaration ist nur auf der obersten Ebene in einer Datei zulässig.", - "An_argument_for_0_was_not_provided_6210": "Für \"{0}\" wurde ein Argument nicht angegeben.", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Es wurde kein Argument angegeben, das diesem Bindungsmuster entspricht.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Ein arithmetischer Operand muss vom Typ \"any\", \"number\" oder \"bigint\" oder ein Enumerationstyp sein.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "Eine Pfeilfunktion darf keinen this-Parameter aufweisen.", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Eine Async-Funktion oder -Methode in ES5/ES3 erfordert den Konstruktur \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Eine asynchrone Funktion oder Methode muss \"Promise\" zurückgeben. Stellen Sie sicher, dass Sie über eine Deklaration für \"Promise\" verfügen, oder schließen Sie ES2015 in Ihrer Option \"--lib\" ein.", - "An_async_iterator_must_have_a_next_method_2519": "Ein Async-Iterator muss eine \"next()\"-Async-Methode aufweisen.", - "An_element_access_expression_should_take_an_argument_1011": "Ein Ausdruck für einen Elementzugriff muss ein Argument verwenden.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "Ein Enumerationsmember kann nicht mit einem privaten Bezeichner benannt werden.", - "An_enum_member_cannot_have_a_numeric_name_2452": "Ein Enumerationsmember darf keinen numerischen Namen besitzen.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "Auf einen Namen eines Enumerationsmembers muss ein \",\", \"=\" oder \"}\" folgen.", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "Eine erweiterte Version dieser Informationen mit allen möglichen Compileroptionen", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "Eine Exportzuweisung darf nicht in einem Modul mit anderen exportierten Elementen verwendet werden.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "Eine Exportzuweisung darf nicht in einem Namespace verwendet werden.", - "An_export_assignment_cannot_have_modifiers_1120": "Eine Exportzuweisung darf keine Modifizierer besitzen.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "Eine Exportzuweisung muss sich auf der obersten Ebene einer Datei- oder Moduldeklaration befinden.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Eine Exportdeklaration kann nur auf der obersten Ebene eines Moduls verwendet werden.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Eine Exportdeklaration kann nur auf der obersten Ebene eines Namespace oder Moduls verwendet werden.", - "An_export_declaration_cannot_have_modifiers_1193": "Eine Exportdeklaration darf keine Modifizierer besitzen.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Für einen Ausdruck vom Typ \"void\" kann nicht getestet werden, ob er wahr oder falsch ist.", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Ein erweiterter Unicode-Escapewert muss zwischen 0x0 und 0x10FFFF (einschließlich) liegen.", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Ein Bezeichner oder ein Schlüsselwort kann nicht direkt auf ein numerisches Literal folgen.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Eine Implementierung darf nicht in Umgebungskontexten deklariert werden.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Ein Importalias kann nicht auf eine Deklaration verweisen, die mithilfe von \"export type\" exportiert wurde.", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Ein Importalias kann nicht auf eine Deklaration verweisen, die mithilfe von \"import type\" importiert wurde.", - "An_import_alias_cannot_use_import_type_1392": "Ein Importalias kann \"import type\" nicht verwenden.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Eine Importdeklaration kann nur auf der obersten Ebene eines Moduls verwendet werden.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Eine Importdeklaration kann nur auf der obersten Ebene eines Namespace oder Moduls verwendet werden.", - "An_import_declaration_cannot_have_modifiers_1191": "Eine Importdeklaration darf keine Modifizierer besitzen.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Ein Importpfad darf nicht mit einer Erweiterung \"{0}\" enden. Importieren Sie ggf. stattdessen \"{1}\".", - "An_index_signature_cannot_have_a_rest_parameter_1017": "Eine Indexsignatur darf keinen rest-Parameter besitzen.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "Eine Indexsignatur darf kein nachstehendes Komma aufweisen.", - "An_index_signature_must_have_a_type_annotation_1021": "Eine Indexsignatur muss eine Typanmerkung besitzen.", - "An_index_signature_must_have_exactly_one_parameter_1096": "Eine Indexsignatur muss genau einen Parameter besitzen.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "Ein Indexsignaturparameter darf kein Fragezeichen aufweisen.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "Ein Indexsignaturparameter darf keinen Zugriffsmodifizierer besitzen.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "Ein Indexsignaturparameter darf keinen Initialisierer besitzen.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "Ein Indexsignaturparameter muss eine Typanmerkung besitzen.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "Ein Indexsignaturparametertyp darf kein Literaltyp oder generischer Typ sein. Erwägen Sie stattdessen die Verwendung eines zugeordneten Objekttyps.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "Ein Parametertyp für die Indexsignatur muss \"string\", \"number\", \"symbol\" oder ein Vorlagenliteraltyp sein.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Auf einen Instanziierungsausdruck kann kein Eigenschaftenzugriff folgen.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Eine Schnittstelle kann nur einen Bezeichner/\"qualified-name\" mit optionalen Typargumenten erweitern.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Eine Schnittstelle kann nur einen Objekttyp oder eine Schnittmenge von Objekttypen mit statisch bekannten Membern erweitern.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Eine Schnittstelle kann einen primitiven Typ wie „{0}“ nicht erweitern; eine Schnittstelle kann nur benannte Typen und Klassen erweitern", - "An_interface_property_cannot_have_an_initializer_1246": "Schnittstelleneigenschaften können keinen Initialisierer aufweisen.", - "An_iterator_must_have_a_next_method_2489": "Ein Iterator muss eine Methode \"next()\" besitzen.", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Bei Verwendung eines @jsx-Pragmas mit JSX-Fragmenten wird ein @jsxFrag-Pragma benötigt.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Ein Objektliteral darf nicht mehrere get-/set-Zugriffsmethoden mit dem gleichen Namen besitzen.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Ein Objektliteral darf nicht über mehrere Eigenschaften mit demselben Namen verfügen.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Ein Objektliteral darf nicht eine Eigenschaft und eine Zugriffsmethode mit demselben Namen besitzen.", - "An_object_member_cannot_be_declared_optional_1162": "Ein Objektmember darf nicht als optional deklariert werden.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "Eine optionale Kette kann keine privaten Bezeichner enthalten.", - "An_optional_element_cannot_follow_a_rest_element_1266": "Ein optionales Element darf nicht auf ein rest-Element folgen.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Ein äußerer Wert von \"this\" wird durch diesen Container verborgen.", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Eine Überladungssignatur darf nicht als ein Generator deklariert werden.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Unäre Ausdrücke mit dem Operator \"{0}\" sind auf der linken Seite von Potenzierungsausdrücken nicht zulässig. Erwägen Sie, den Ausdruck in Klammern zu setzen.", - "Annotate_everything_with_types_from_JSDoc_95043": "Alle Funktionen mit Typen aus JSDoc kommentieren", - "Annotate_with_type_from_JSDoc_95009": "Mit Typ aus JSDoc kommentieren", - "Another_export_default_is_here_2753": "Ein weiterer Exportstandardwert befindet sich hier.", - "Are_you_missing_a_semicolon_2734": "Fehlt ein Semikolon?", - "Argument_expression_expected_1135": "Es wurde ein Argumentausdruck erwartet.", - "Argument_for_0_option_must_be_Colon_1_6046": "Das Argument für die Option \"{0}\" muss \"{1}\" sein.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "Das Argument des dynamischen Imports kann kein Überfüllungselement sein.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "Das Argument vom Typ \"{0}\" kann dem Parameter vom Typ \"{1}\" nicht zugewiesen werden.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Das Argument vom Typ „{0}“ kann dem Parameter vom Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zu den Typen der Zieleigenschaften.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Es wurden keine Argumente für den rest-Parameter \"{0}\" angegeben.", - "Array_element_destructuring_pattern_expected_1181": "Ein Arrayelement-Destrukturierungsmuster wurde erwartet.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Assertionen erfordern, dass jeder Name im Aufrufziel mit einer expliziten Typanmerkung deklariert wird.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Assertionen erfordern, dass das Aufrufziel ein Bezeichner oder ein qualifizierter Name ist.", - "Asterisk_Slash_expected_1010": "\"*/\" wurde erwartet.", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Erweiterungen für den globalen Bereich können nur in externen Modulen oder Umgebungsmoduldeklarationen direkt geschachtelt werden.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Erweiterungen für den globalen Bereich sollten den Modifizierer \"declare\" aufweisen, wenn sie nicht bereits in einem Umgebungskontext auftreten.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "In Projekt \"{0}\" ist die automatische Erkennung von Eingaben aktiviert. Es wird ein zusätzlicher Auflösungsdurchlauf für das Modul \"{1}\" unter Verwendung von Cachespeicherort \"{2}\" ausgeführt.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Der \"Await\"-Ausdruck kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", - "BUILD_OPTIONS_6919": "BUILDOPTIONEN", - "Backwards_Compatibility_6253": "Abwärtskompatibilität", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Basisklassenausdrücke können nicht auf Klassentypparameter verweisen.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "Der Rückgabetyp \"{0}\" des Basiskonstruktors ist kein Objekttyp oder eine Schnittmenge von Objekttypen mit statisch bekannten Membern.", - "Base_constructors_must_all_have_the_same_return_type_2510": "Basiskonstruktoren müssen alle den gleichen Rückgabetyp aufweisen.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "Das Basisverzeichnis zum Auflösen nicht absoluter Modulnamen.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "bigint-Literale sind nicht verfügbar, wenn die Zielversion niedriger ist als ES2020.", - "Binary_digit_expected_1177": "Es wurde eine Binärzahl erwartet.", - "Binding_element_0_implicitly_has_an_1_type_7031": "Das Bindungselement \"{0}\" weist implizit einen Typ \"{1}\" auf.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "Die blockbezogene Variable \"{0}\" wurde vor ihrer Deklaration verwendet.", - "Build_a_composite_project_in_the_working_directory_6925": "Erstellen Sie ein zusammengesetztes Projekt im Arbeitsverzeichnis.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Erstellen Sie alle Projekte, einschließlich der Projekte, die aktuell zu sein scheinen.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Mindestens ein Projekt und die zugehörigen Abhängigkeiten erstellen, wenn veraltet", - "Build_option_0_requires_a_value_of_type_1_5073": "Die Buildoption \"{0}\" erfordert einen Wert vom Typ \"{1}\".", - "Building_project_0_6358": "Projekt \"{0}\" wird erstellt...", - "COMMAND_LINE_FLAGS_6921": "BEFEHLSZEILENFLAGS", - "COMMON_COMMANDS_6916": "ALLGEMEINE BEFEHLE", - "COMMON_COMPILER_OPTIONS_6920": "ALLGEMEINE COMPILEROPTIONEN", - "Call_decorator_expression_90028": "Decorator-Ausdruck aufrufen", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "Die Rückgabetypen \"{0}\" und \"{1}\" der Aufrufsignatur sind nicht kompatibel.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Eine Aufrufsignatur ohne Rückgabetypanmerkung weist implizit einen any-Rückgabetyp auf.", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Aufrufsignaturen ohne Argumente weisen inkompatible Rückgabetypen \"{0}\" und \"{1}\" auf.", - "Call_target_does_not_contain_any_signatures_2346": "Das Aufrufziel enthält keine Signaturen.", - "Can_only_convert_logical_AND_access_chains_95142": "Es können nur Zugriffsketten mit logischem \"Und\" konvertiert werden.", - "Can_only_convert_named_export_95164": "Nur ein benannter Export kann konvertiert werden.", - "Can_only_convert_property_with_modifier_95137": "Die Eigenschaft kann nur mit einem Modifizierer konvertiert werden.", - "Can_only_convert_string_concatenation_95154": "Es ist nur die Konvertierung einer Zeichenfolgenverkettung möglich.", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Der Zugriff auf \"{0}.{1}\" ist nicht möglich, da \"{0}\" ein Typ ist, aber kein Namespace. Wollten Sie den Typ der Eigenschaft \"{1}\" in \"{0}\" mit \"{0}[\"{1}\"]\" abrufen?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Auf umgebende const-Enumerationen kann nicht zugegriffen werden, wenn das Flag \"--isolatedModules\" angegeben wird.", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Ein Konstruktortyp \"{0}\" kann nicht einem Konstruktortyp \"{1}\" zugewiesen werden.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Ein abstrakter Konstruktortyp kann nicht einem nicht abstrakten Konstruktortyp zugewiesen werden.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine Klasse handelt.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine Konstante handelt.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine Funktion handelt.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um einen Namespace handelt.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine schreibgeschützte Eigenschaft handelt.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine Enumeration handelt.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um einen Import handelt.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich nicht um eine Variable handelt.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "Eine Zuweisung zur private Methode \"{0}\" ist nicht möglich. In private Methoden kann nicht geschrieben werden.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "Das Modul \"{0}\" kann nicht erweitert werden, weil es in eine Nicht-Modulentität aufgelöst wird.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "Das Modul \"{0}\" kann nicht mit Wertexporten vergrößert werden, da es zu einer Entität aufgelöst wird, die kein Modul darstellt.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "Module können nur mithilfe der Option \"{0}\" kompiliert werden, wenn die Kennzeichnung \"-module\" den Wert \"amd\" oder \"system\" aufweist.", - "Cannot_create_an_instance_of_an_abstract_class_2511": "Eine Instanz der abstrakten Klasse kann nicht erstellt werden.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "Die Iteration kann nicht an einen Wert delegiert werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, aber der enthaltende Generator immer \"{0}\" sendet.", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "\"{0}\" kann nicht exportiert werden. Nur lokale Deklarationen können aus einem Modul exportiert werden.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "Eine Klasse \"{0}\" kann nicht erweitert werden. Der Klassenkonstruktor ist als privat markiert.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "Eine Schnittstelle \"{0}\" kann nicht erweitert werden. Meinten Sie \"implements\"?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "Im angegebenen Verzeichnis \"{0}\" wurde keine Datei \"tsconfig.json\" gefunden.", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Im angegebenen Verzeichnis \"{0}\" wurde keine \"tsconfig.json\"-Datei gefunden.", - "Cannot_find_global_type_0_2318": "Der globale Typ \"{0}\" wurde nicht gefunden.", - "Cannot_find_global_value_0_2468": "Der globale Wert \"{0}\" wurde nicht gefunden.", - "Cannot_find_lib_definition_for_0_2726": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden.", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Das Modul \"{0}\" wurde nicht gefunden. Erwägen Sie die Verwendung von \"--resolveJsonModule\" zum Importieren eines Moduls mit der Erweiterung \".json\".", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Das Modul \"{0}\" wurde nicht gefunden. Möchten Sie die Option \"moduleResolution\" auf \"node\" festlegen oder Aliase zur Option \"paths\" hinzufügen?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Das Modul \"{0}\" oder die zugehörigen Typdeklarationen wurden nicht gefunden.", - "Cannot_find_name_0_2304": "Der Name \"{0}\" wurde nicht gefunden.", - "Cannot_find_name_0_Did_you_mean_1_2552": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie den Instanzmember \"this.{0}\"?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie den statischen Member \"{1}.{0}\"?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Der Name „{0}“ wurde nicht gefunden. Wollten Sie dies in eine asynchrone Funktion schreiben?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"{1}\" oder höher.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" so ab, dass sie \"dom\" enthält.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für einen Test Runner installieren? Versuchen Sie es mit \"npm i --save-dev @types/jest\" oder \"npm i --save-dev @types/mocha\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für einen Test Runner installieren? Versuchen Sie es mit \"npm i --save-dev @types/jest\" oder \"npm i --save-dev @types/mocha\", und fügen Sie dann dem Typenfeld in Ihrer tsconfig-Datei \"jest\" oder \"mocha\" hinzu.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für jQuery installieren? Versuchen Sie es mit \"npm i --save-dev @types/jquery\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für jQuery installieren? Versuchen Sie es mit \"npm i --save-dev @types/jquery\", und fügen Sie dann dem Typenfeld in Ihrer tsconfig-Datei \"jquery\" hinzu.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für Node installieren? Versuchen Sie es mit \"npm i --save-dev @types/node\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für Node installieren? Versuchen Sie es mit \"npm i --save-dev @types/node\", und fügen Sie dann dem Typenfeld in Ihrer tsconfig-Datei \"node\" hinzu.", - "Cannot_find_namespace_0_2503": "Der Namespace \"{0}\" wurde nicht gefunden.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "Namespace \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", - "Cannot_find_parameter_0_1225": "Der Parameter \"{0}\" wurde nicht gefunden.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "Das gemeinsame Unterverzeichnis für die Eingabedateien wurde nicht gefunden.", - "Cannot_find_type_definition_file_for_0_2688": "Die Typdefinitionsdatei für \"{0}\" wurde nicht gefunden.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "Typdeklarationsdateien können nicht importiert werden. Importieren Sie ggf. \"{0}\" anstelle von \"{1}\".", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "Die Variable \"{0}\" mit dem äußeren Bereich im gleichen Bereich wie die Deklaration \"{1}\" mit dem Blockbereich kann nicht initialisiert werden.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "Ein Objekt, das möglicherweise NULL ist, kann nicht aufgerufen werden.", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "Ein Objekt, das möglicherweise NULL oder nicht definiert ist, kann nicht aufgerufen werden.", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "Ein Objekt, das möglicherweise nicht definiert ist, kann nicht aufgerufen werden.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, die Arraydestrukturierung aber immer \"{0}\" sendet.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, die Arrayverteilung aber immer \"{0}\" sendet.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, \"for-of\" aber immer \"{0}\" sendet.", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Das Projekt \"{0}\" kann nicht vorgestellt werden, weil \"outFile\" nicht festgelegt wurde.", - "Cannot_read_file_0_5083": "Die Datei \"{0}\" kann nicht gelesen werden.", - "Cannot_read_file_0_Colon_1_5012": "Die Datei \"{0}\" kann nicht gelesen werden: {1}", - "Cannot_redeclare_block_scoped_variable_0_2451": "Die blockbezogene Variable \"{0}\" Blockbereich kann nicht erneut deklariert werden.", - "Cannot_redeclare_exported_variable_0_2323": "Die exportierte Variable \"{0}\" kann nicht erneut deklariert werden.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Der Bezeichner \"{0}\" in der Catch-Klausel kann nicht erneut deklariert werden.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "Kann in einer Typanmerkung keinen Funktionsaufruf starten.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Die Ausgabe des Projekts \"{0}\" kann nicht aktualisiert werden, weil es beim Lesen der Datei \"{1}\" zu einem Fehler gekommen ist.", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "JSX kann nur verwendet werden, wenn das Flag \"-jsx\" angegeben wird.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "„export import“ kann nicht für einen Typ oder einen reinen Typnamespace verwendet werden, wenn das Flag „--isolatedModules“ angegeben wird.", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Es können keine imports-, exports- oder module-Erweiterungen verwendet werden, wenn \"-module\" den Wert \"none\" aufweist.", - "Cannot_use_namespace_0_as_a_type_2709": "Der Namespace \"{0}\" kann nicht als Typ verwendet werden.", - "Cannot_use_namespace_0_as_a_value_2708": "Der Namespace \"{0}\" kann nicht als Wert verwendet werden.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "\"This\" kann nicht in einem statischen Eigenschafteninitialisierer einer ergänzten Klasse verwendet werden.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "Die Datei \"{0}\" kann nicht geschrieben werden, weil hierdurch die TSBUILDINFO-Datei überschrieben wird, die durch das referenzierte Projekt \"{1}\" generiert wird.", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "Die Datei \"{0}\" kann nicht geschrieben werden, da sie durch mehrere Eingabedateien überschrieben würde.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "Die Datei \"{0}\" kann nicht geschrieben werden, da sie eine Eingabedatei überschreiben würde.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "Die Variable der Catch-Klausel darf keinen Initialisierer aufweisen.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "Die Anmerkung des Variablentyps der catch-Klausel muss \"any\" oder \"unknown\" lauten, sofern angegeben.", - "Change_0_to_1_90014": "\"{0}\" in \"{1}\" ändern", - "Change_all_extended_interfaces_to_implements_95038": "Alle erweiterten Schnittstellen in \"implements\" ändern", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "Alle jsdoc-style-Typen in TypeScript ändern", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "Alle jsdoc-style-Typen in TypeScript ändern (und Nullable-Typen \"| undefined\" hinzufügen)", - "Change_extends_to_implements_90003": "\"extends\" in \"implements\" ändern", - "Change_spelling_to_0_90022": "Schreibweise in \"{0}\" ändern", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Suchen Sie nach Klasseneigenschaften, die im Konstruktor deklariert, aber nicht festgelegt sind.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Überprüfen Sie, ob die Argumente für die Methoden „bind“, „call“ und „apply“ mit der ursprünglichen Funktion übereinstimmen.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Es wird überprüft, ob \"{0}\" das längste übereinstimmende Präfix für \"{1}\"–\"{2}\" ist.", - "Circular_definition_of_import_alias_0_2303": "Zirkuläre Definition des Importalias \"{0}\".", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "Eine Zirkularität wurde beim Auflösen der Konfiguration erkannt: {0}", - "Circularity_originates_in_type_at_this_location_2751": "Die Zirkularität stammt vom Typ an diesem Standort.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "Die Klasse \"{0}\" definiert die Instanzmember-Zugriffsmethode \"{1}\", die erweiterte Klasse \"{2}\" definiert diesen jedoch als Instanzmemberfunktion.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "Die Klasse \"{0}\" definiert die Instanzmember-Zugriffsmethode \"{1}\", die erweiterte Klasse \"{2}\" definiert diese jedoch als Instanzmember-Zugriffsmethode.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "Die Klasse \"{0}\" definiert die Instanzmembereigenschaft \"{1}\", die erweiterte Klasse \"{2}\" definiert diese jedoch als Instanzmemberfunktion.", - "Class_0_incorrectly_extends_base_class_1_2415": "Die Klasse \"{0}\" erweitert fälschlicherweise die Basisklasse \"{1}\".", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "Die Klasse \"{0}\" implementiert fälschlicherweise die Klasse \"{1}\". Wollten Sie \"{1}\" erweitern und ihre Member als Unterklasse vererben?", - "Class_0_incorrectly_implements_interface_1_2420": "Die Klasse \"{0}\" implementiert fälschlicherweise die Schnittstelle \"{1}\".", - "Class_0_used_before_its_declaration_2449": "Klasse \"{0}\", die vor der Deklaration verwendet wurde.", - "Class_constructor_may_not_be_a_generator_1368": "Der Klassenkonstruktor darf kein Generator sein.", - "Class_constructor_may_not_be_an_accessor_1341": "Der Klassenkonstruktor darf kein Accessor sein.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "Die Klassendeklaration kann die Überladungsliste für \"{0}\" nicht implementieren.", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Klassendeklarationen dürfen maximal ein \"@augments\"- oder \"@extends\"-Tag aufweisen.", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Decorator-Elemente von Klassen können nicht mit einem statischen privaten Bezeichner verwendet werden. Erwägen Sie, das experimentelle Decorator-Element zu entfernen.", - "Class_name_cannot_be_0_2414": "Der Klassenname darf nicht \"{0}\" sein.", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Der Klassenname darf nicht \"Object\" lauten, wenn ES5 mit Modul \"{0}\" als Ziel verwendet wird.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Die statische Seite der Klasse \"{0}\" erweitert fälschlicherweise die statische Seite der Basisklasse \"{1}\".", - "Classes_can_only_extend_a_single_class_1174": "Klassen dürfen nur eine einzelne Klasse erweitern.", - "Classes_may_not_have_a_field_named_constructor_18006": "Klassen dürfen kein Feld mit dem Namen \"constructor\" aufweisen.", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "Code, der in einer Klasse enthalten ist, wird im Strict-Modus von JavaScript ausgewertet, der diese Verwendung von \"{0}\" nicht zulässt. Weitere Informationen finden Sie unter https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.", - "Command_line_Options_6171": "Befehlszeilenoptionen", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Kompilieren Sie das dem Pfad zugewiesene Projekt zu dessen Konfigurationsdatei oder zu einem Ordner mit der Datei \"tsconfig.json\".", - "Compiler_Diagnostics_6251": "Compilerdiagnose", - "Compiler_option_0_expects_an_argument_6044": "Die Compileroption \"{0}\" erwartet ein Argument.", - "Compiler_option_0_may_not_be_used_with_build_5094": "Die Compileroption \"--{0}\" darf nicht mit \"--build\" verwendet werden.", - "Compiler_option_0_may_only_be_used_with_build_5093": "Die Compileroption \"--{0}\" darf nur mit \"--build\" verwendet werden.", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "Die Compileroption „{0}“ des Werts „{1}“ ist instabil. Verwenden Sie „Nightly TypeScript“, um diesen Fehler zu beheben. Versuchen Sie die Aktualisierung mit „npm install -D typescript@next“ durchzuführen.", - "Compiler_option_0_requires_a_value_of_type_1_5024": "Die Compileroption \"{0}\" erfordert einen Wert vom Typ \"{1}\".", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "Der Compiler reserviert den Namen \"{0}\", wenn er einen privaten Bezeichner für Vorgängerversionen ausgibt.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Kompiliert das sich am angegebenen Pfad befindliche TypeScript-Projekt.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "Kompiliert das aktuelle Projekt (tsconfig.json im Arbeitsverzeichnis.)", - "Compiles_the_current_project_with_additional_settings_6929": "Kompiliert das aktuelle Projekt mit zusätzlichen Einstellungen.", - "Completeness_6257": "Vollständigkeit", - "Composite_projects_may_not_disable_declaration_emit_6304": "In zusammengesetzten Projekten kann die Deklarationsausgabe nicht deaktiviert werden.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "Zusammengesetzte Projekte dürfen die inkrementelle Kompilierung nicht deaktivieren.", - "Computed_from_the_list_of_input_files_6911": "Aus der Liste der Eingabedateien berechnet", - "Computed_property_names_are_not_allowed_in_enums_1164": "Berechnete Eigenschaftennamen sind in Enumerationen unzulässig.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Berechnete Werte sind in einer Enumeration mit Membern mit Zeichenfolgenwerten nicht zulässig.", - "Concatenate_and_emit_output_to_single_file_6001": "Verketten und Ausgabe in einer Datei speichern.", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "In Konflikt stehende Definitionen für \"{0}\" wurden unter \"{1}\" und \"{2}\" gefunden. Installieren Sie ggf. eine bestimmte Version dieser Bibliothek, um den Konflikt aufzulösen.", - "Conflicts_are_in_this_file_6201": "In dieser Datei liegen Konflikte vor.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "Erwägen Sie, dieser Klasse einen declare-Modifizierer hinzuzufügen.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Die Rückgabetypen \"{0}\" und \"{1}\" der Konstruktsignatur sind nicht kompatibel.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "Eine Konstruktsignatur ohne Rückgabetypanmerkung weist implizit einen any-Rückgabetyp auf.", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "Konstruktsignaturen ohne Argumente weisen inkompatible Rückgabetypen \"{0}\" und \"{1}\" auf.", - "Constructor_implementation_is_missing_2390": "Die Konstruktorimplementierung fehlt.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "Der Konstruktor der Klasse \"{0}\" ist privat. Auf ihn kann nur innerhalb der Klassendeklaration zugegriffen werden.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "Der Konstruktor der Klasse \"{0}\" ist geschützt. Auf ihn kann nur innerhalb der Klassendeklaration zugegriffen werden.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "Die Typnotation des Konstruktors muss in Klammern gesetzt werden, wenn sie in einem Union-Typ verwendet wird.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "Die Typnotation des Konstruktors muss in Klammern gesetzt werden, wenn sie in einem Intersection-Typ verwendet wird.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "Konstruktoren für abgeleitete Klassen müssen einen Aufruf \"super\" enthalten.", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "Die enthaltene Datei wird nicht angegeben, und das Stammverzeichnis kann nicht ermittelt werden. Die Suche im Ordner \"node_modules\" wird übersprungen.", - "Containing_function_is_not_an_arrow_function_95128": "Die enthaltende Funktion ist keine Pfeilfunktion.", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "Steuern Sie, welche Methode zum Erkennen von JS-Dateien im Modulformat verwendet wird.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "Die Konvertierung des Typs \"{0}\" in den Typ \"{1}\" kann ein Fehler sein, weil die Typen keine ausreichende Überschneidung aufweisen. Wenn dies beabsichtigt war, konvertieren Sie den Ausdruck zuerst in \"unknown\".", - "Convert_0_to_1_in_0_95003": "\"{0}\" in \"{1} in {0}\" konvertieren", - "Convert_0_to_mapped_object_type_95055": "\"{0}\" in zugeordneten Objekttyp konvertieren", - "Convert_all_const_to_let_95102": "Alle \"const\" in \"let\" konvertieren", - "Convert_all_constructor_functions_to_classes_95045": "Alle Konstruktorfunktionen in Klassen konvertieren", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Alle nicht als Wert verwendeten Importe in reine Typenimporte konvertieren", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Alle ungültigen Zeichen in HTML-Entitätscode konvertieren", - "Convert_all_re_exported_types_to_type_only_exports_1365": "Alle erneut exportierten Typen in reine Typenexporte konvertieren", - "Convert_all_require_to_import_95048": "Alle Aufrufe von \"require\" in \"import\" konvertieren", - "Convert_all_to_async_functions_95066": "Alle in asynchrone Funktionen konvertieren", - "Convert_all_to_bigint_numeric_literals_95092": "Alle in numerische bigint-Literale konvertieren", - "Convert_all_to_default_imports_95035": "Alle in Standardimporte konvertieren", - "Convert_all_type_literals_to_mapped_type_95021": "Alle Typliterale in einen zugeordneten Typ konvertieren", - "Convert_arrow_function_or_function_expression_95122": "Pfeilfunktion oder Funktionsausdruck konvertieren", - "Convert_const_to_let_95093": "\"const\" in \"let\" konvertieren", - "Convert_default_export_to_named_export_95061": "Standardexport in benannten Export konvertieren", - "Convert_function_declaration_0_to_arrow_function_95106": "Funktionsdeklaration \"{0}\" in Pfeilfunktion konvertieren", - "Convert_function_expression_0_to_arrow_function_95105": "Funktionsausdruck \"{0}\" in Pfeilfunktion konvertieren", - "Convert_function_to_an_ES2015_class_95001": "Funktion in eine ES2015-Klasse konvertieren", - "Convert_invalid_character_to_its_html_entity_code_95100": "Ungültiges Zeichen in entsprechenden HTML-Entitätscode konvertieren", - "Convert_named_export_to_default_export_95062": "Benannten Export in Standardexport konvertieren", - "Convert_named_imports_to_default_import_95170": "Konvertieren benannter Importe in Standardimporte", - "Convert_named_imports_to_namespace_import_95057": "Benannte Importe in Namespaceimport konvertieren", - "Convert_namespace_import_to_named_imports_95056": "Namespaceimport in benannte Importe konvertieren", - "Convert_overload_list_to_single_signature_95118": "Überladungsliste in einzelne Signatur konvertieren", - "Convert_parameters_to_destructured_object_95075": "Parameter in destrukturiertes Objekt konvertieren", - "Convert_require_to_import_95047": "\"require\" in \"import\" konvertieren", - "Convert_to_ES_module_95017": "In ES-Modul konvertieren", - "Convert_to_a_bigint_numeric_literal_95091": "In numerisches bigint-Literal konvertieren", - "Convert_to_anonymous_function_95123": "In anonyme Funktion konvertieren", - "Convert_to_arrow_function_95125": "In Pfeilfunktion konvertieren", - "Convert_to_async_function_95065": "In asynchrone Funktion konvertieren", - "Convert_to_default_import_95013": "In Standardimport konvertieren", - "Convert_to_named_function_95124": "In benannte Funktion konvertieren", - "Convert_to_optional_chain_expression_95139": "In optionalen Kettenausdruck konvertieren", - "Convert_to_template_string_95096": "In Vorlagenzeichenfolge konvertieren", - "Convert_to_type_only_export_1364": "In reinen Typenexport konvertieren", - "Convert_to_type_only_import_1373": "In reinen Typenimport konvertieren", - "Corrupted_locale_file_0_6051": "Die Gebietsschemadatei \"{0}\" ist beschädigt.", - "Could_not_convert_to_anonymous_function_95153": "Die Konvertierung in eine anonyme Funktion ist nicht möglich.", - "Could_not_convert_to_arrow_function_95151": "Die Konvertierung in eine Pfeilfunktion ist nicht möglich.", - "Could_not_convert_to_named_function_95152": "Die Konvertierung in eine benannte Funktion ist nicht möglich.", - "Could_not_determine_function_return_type_95150": "Der Rückgabetyp der Funktion konnte nicht bestimmt werden.", - "Could_not_find_a_containing_arrow_function_95127": "Es wurde keine enthaltende Pfeilfunktion gefunden.", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "Es wurde keine Deklarationsdatei für das Modul \"{0}\" gefunden. \"{1}\" weist implizit den Typ \"any\" auf.", - "Could_not_find_convertible_access_expression_95140": "Kein konvertierbarer Zugriffsausdruck gefunden", - "Could_not_find_export_statement_95129": "Die Exportanweisung wurde nicht gefunden.", - "Could_not_find_import_clause_95131": "Die Importklausel wurde nicht gefunden.", - "Could_not_find_matching_access_expressions_95141": "Keine übereinstimmenden Zugriffsausdrücke gefunden", - "Could_not_find_name_0_Did_you_mean_1_2570": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", - "Could_not_find_namespace_import_or_named_imports_95132": "Der Namespaceimport oder benannte Importe wurden nicht gefunden.", - "Could_not_find_property_for_which_to_generate_accessor_95135": "Die Eigenschaft, für die die Zugriffsmethode generiert werden soll, wurde nicht gefunden.", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Der Pfad \"{0}\" mit den Erweiterungen konnte nicht aufgelöst werden: {1}.", - "Could_not_write_file_0_Colon_1_5033": "Die Datei \"{0}\" konnte nicht geschrieben werden. {1}.", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "Erstellen Sie Quellzuordnungsdateien für ausgegebene JavaScript-Dateien.", - "Create_sourcemaps_for_d_ts_files_6614": "Erstellen Sie Quellzuordnungen für d.ts-Dateien.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Erstellt eine tsconfig.json mit den empfohlenen Einstellungen im Arbeitsverzeichnis.", - "DIRECTORY_6038": "VERZEICHNIS", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Die Deklaration erweitert die Deklaration in einer anderen Datei. Dieser Vorgang kann nicht serialisiert werden.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" aus dem Modul \"{1}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.", - "Declaration_expected_1146": "Es wurde eine Deklaration erwartet.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Der Deklarationsname steht in Konflikt mit dem integrierten globalen Bezeichner \"{0}\".", - "Declaration_or_statement_expected_1128": "Es wurde eine Deklaration oder Anweisung erwartet.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Deklaration oder Anweisung erwartet. Dieses Gleichheitszeichen (=) folgt auf einen Anweisungsblock. Wenn Sie daher eine Destrukturierungszuweisung schreiben möchten, müssen Sie möglicherweise die gesamte Zuweisung in runde Klammern einschließen.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Deklarationen mit definitiven Zuweisungsassertionen müssen auch Typanmerkungen aufweisen.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Deklarationen mit Initialisierern dürfen keine definitiven Zuweisungsassertionen aufweisen.", - "Declare_a_private_field_named_0_90053": "Deklarieren Sie ein privates Feld mit dem Namen \"{0}\".", - "Declare_method_0_90023": "Methode \"{0}\" deklarieren", - "Declare_private_method_0_90038": "Private Methode \"{0}\" deklarieren", - "Declare_private_property_0_90035": "Private Eigenschaft \"{0}\" deklarieren", - "Declare_property_0_90016": "Eigenschaft \"{0}\" deklarieren", - "Declare_static_method_0_90024": "Statische Methode \"{0}\" deklarieren", - "Declare_static_property_0_90027": "Statische Eigenschaft \"{0}\" deklarieren", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Der Rückgabetyp der Decorator-Funktion „{0}“ kann dem Typ „{1}“ nicht zugewiesen werden.", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Der Rückgabetyp der Decorator-Funktion ist „{0}“, es wird jedoch erwartet, dass er „void“ oder „any“ ist.", - "Decorators_are_not_valid_here_1206": "Decorators sind hier ungültig.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Decorators dürfen nicht auf mehrere get-/set-Zugriffsmethoden mit dem gleichen Namen angewendet werden.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "Decorators dürfen nicht auf this-Parameter angewendet werden.", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Vor dem Namen und allen Schlüsselwörtern von Eigenschaftendeklarationen müssen Decorator-Elemente stehen.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Stellen Sie die Variablen der Catch-Klauseln standardmäßig als „unknown“ anstelle von „any“ ein.", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Der Standardexport des Moduls besitzt oder verwendet den privaten Namen \"{0}\".", - "Default_library_1424": "Standardbibliothek", - "Default_library_for_target_0_1425": "Standardbibliothek für Ziel \"{0}\"", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definitionen der folgenden Bezeichner stehen in Konflikt mit denen in einer anderen Datei: {0}", - "Delete_all_unused_declarations_95024": "Alle nicht verwendeten Deklarationen löschen", - "Delete_all_unused_imports_95147": "Alle nicht verwendeten Importe löschen", - "Delete_all_unused_param_tags_95172": "Alle nicht verwendeten \"@param\"-Tags löschen", - "Delete_the_outputs_of_all_projects_6365": "Löschen Sie die Ausgaben aller Projekte.", - "Delete_unused_param_tag_0_95171": "Nicht verwendete \"@param\"-Tag-\"{0}\" löschen", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Veraltet] Verwenden Sie stattdessen \"--jsxFactory\". Geben Sie das Objekt an, das für \"createElement\" aufgerufen wurde, wenn das Ziel die JSX-Ausgabe \"react\" ist.", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Veraltet] Verwenden Sie stattdessen \"--outFile\". Verketten und Ausgeben in eine einzige Datei", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Veraltet] Verwenden Sie stattdessen \"--skipLibCheck\". Überspringen Sie die Typüberprüfung der Standardbibliothek-Deklarationsdateien.", - "Deprecated_setting_Use_outFile_instead_6677": "Veraltete Einstellung. Verwenden Sie stattdessen „outFile“.", - "Did_you_forget_to_use_await_2773": "Haben Sie vergessen, \"await\" zu verwenden?", - "Did_you_mean_0_1369": "Meinten Sie \"{0}\"?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "Wollten Sie \"{0}\" auf den Typ \"new (...args: any[]) => {1}\" einschränken?", - "Did_you_mean_to_call_this_expression_6212": "Wollten Sie diesen Ausdruck aufrufen?", - "Did_you_mean_to_mark_this_function_as_async_1356": "Wollten Sie diese Funktion als \"async\" markieren?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "Wollten Sie \":\" verwenden? Ein \"=\" kann nur dann auf einen Eigenschaftennamen folgen, wenn das enthaltende Objektliteral Teil eines Destrukturierungsmusters ist.", - "Did_you_mean_to_use_new_with_this_expression_6213": "Wollten Sie \"new\" mit diesem Ausdruck verwenden?", - "Digit_expected_1124": "Eine Ziffer wurde erwartet.", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "Das Verzeichnis \"{0}\" ist nicht vorhanden, Suchvorgänge darin werden übersprungen.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "Das Verzeichnis \"{0}\" enthält keinen package.json-Bereich. Importe werden nicht aufgelöst.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "Deaktivieren Sie das Hinzufügen von \"Use Strict\"-Direktiven in ausgesendeten JavaScript-Dateien.", - "Disable_checking_for_this_file_90018": "Überprüfung für diese Datei deaktivieren", - "Disable_emitting_comments_6688": "Deaktivieren Sie das Ausgeben von Kommentaren.", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "Deaktivieren Sie das Ausgeben von Deklarationen mit „@internal“ in ihren JSDoc-Kommentaren.", - "Disable_emitting_files_from_a_compilation_6660": "Deaktivieren Sie das Ausgeben von Dateien aus einer Kompilierung.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "Deaktivieren Sie das Ausgeben von Dateien, wenn Typüberprüfungsfehler gemeldet werden.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Deaktivieren Sie das Löschen von „const enum“-Deklarationen in generiertem Code.", - "Disable_error_reporting_for_unreachable_code_6603": "Deaktivieren Sie die Fehlerberichterstattung für nicht erreichbaren Code.", - "Disable_error_reporting_for_unused_labels_6604": "Deaktivieren Sie die Fehlerberichterstattung für nicht verwendete Bezeichnungen.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Deaktivieren Sie das Generieren von benutzerdefinierten Hilfsfunktionen wie „__extends“ in der kompilierten Ausgabe.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Deaktivieren Sie das Einschließen von Bibliotheksdateien, einschließlich der Standarddatei \"lib.d.ts\".", - "Disable_loading_referenced_projects_6235": "Deaktivieren Sie das Laden referenzierter Projekte.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "Deaktivieren Sie bevorzugte Quelldateien anstelle von Deklarationsdateien, wenn Sie auf zusammengesetzte Projekte verweisen.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "Deaktivieren Sie die Meldung übermäßiger Eigenschaftsfehler während der Erstellung von Objektliteralen.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "Deaktivieren Sie das Auflösen von symlinks in ihren Realpfad. Dies korreliert mit derselben Kennzeichnung im Knoten.", - "Disable_size_limitations_on_JavaScript_projects_6162": "Größenbeschränkungen für JavaScript-Projekte deaktivieren.", - "Disable_solution_searching_for_this_project_6224": "Deaktivieren Sie die Projektmappensuche für dieses Projekt.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "Deaktivieren Sie die strenge Überprüfung generischer Signaturen in Funktionstypen.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "Typ-Akquisition für JavaScript-Projekte deaktivieren", - "Disable_truncating_types_in_error_messages_6663": "Deaktivieren Sie das Abschneiden von Typen in Fehlermeldungen.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "Deaktivieren Sie die Verwendung von Quelldateien anstelle von Deklarationsdateien aus referenzierten Projekten.", - "Disable_wiping_the_console_in_watch_mode_6684": "Deaktivieren Sie das Zurücksetzen der Konsole im Überwachungsmodus.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "Deaktiviert den Rückschluss für den Typabruf, indem Dateinamen in einem Projekt betrachtet werden.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Hiermit wird verhindert, dass „import“, „require“ oder „“ die Anzahl der Dateien erweitern, die TypeScript einem Projekt hinzufügen soll.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Verweise mit uneinheitlicher Groß-/Kleinschreibung auf die gleiche Datei nicht zulassen.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Fügen Sie keine Verweise mit dreifachen Schrägstrichen oder importierte Module zur Liste kompilierter Dateien hinzu.", - "Do_not_emit_comments_to_output_6009": "Kommentare nicht an die Ausgabe ausgeben.", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Deklarationen für Code mit einer Anmerkung \"@internal\" nicht ausgeben.", - "Do_not_emit_outputs_6010": "Keine Ausgaben ausgeben.", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "Keine Ausgaben ausgeben, wenn Fehler gemeldet wurden.", - "Do_not_emit_use_strict_directives_in_module_output_6112": "Keine \"use strict\"-Direktiven in Modulausgabe ausgeben.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "const-Enumerationsdeklarationen im generierten Code nicht löschen.", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "Erstellen Sie keine benutzerdefinierten Hilfsfunktionen wie \"__extends\" in der kompilierten Ausgabe.", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "Beziehen Sie die Standardbibliotheksdatei (lib.d.ts) nicht ein.", - "Do_not_report_errors_on_unreachable_code_6077": "Fehler zu nicht erreichbarem Code nicht melden.", - "Do_not_report_errors_on_unused_labels_6074": "Fehler zu nicht verwendeten Bezeichnungen nicht melden.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "Tatsächlichen Pfad von symbolischen Verknüpfungen nicht auflösen.", - "Do_not_truncate_error_messages_6165": "Kürzen Sie keine Fehlermeldungen.", - "Duplicate_function_implementation_2393": "Doppelte Funktionsimplementierung.", - "Duplicate_identifier_0_2300": "Doppelter Bezeichner \"{0}\".", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "Doppelter Bezeichner \"{0}\". Der Compiler reserviert den Namen \"{1}\" im Bereich der obersten Ebene eines Moduls.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "Doppelter Bezeichner \"{0}\". Der Compiler reserviert den Namen \"{1}\" im Bereich der obersten Ebene eines Moduls, das asynchrone Funktionen enthält.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "Doppelter Bezeichner „{0}“. Der Compiler reserviert den Namen „{1}“ beim Ausgeben von „Super“-Verweisen in statischen Initialisierern.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "Doppelter Bezeichner \"{0}\". Der Compiler verwendet die Deklaration \"{1}\", um asynchrone Funktionen zu unterstützen.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "Doppelter Bezeichner \"{0}\". Statische Elemente und Instanzelemente dürfen nicht denselben privaten Namen aufweisen.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "Doppelter Bezeichner \"arguments\". Der Compiler verwendet \"arguments\" zum Initialisieren der rest-Parameter.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "Doppelter Bezeichner \"_newTarget\". Der Compiler verwendet die Variablendeklaration \"_newTarget\" zum Erfassen der Metaeigenschaftenreferenz \"new.target\".", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "Doppelter Bezeichner \"_this\". Der Compiler verwendet die Variablendeklaration \"_this\" zum Erfassen des this-Verweises.", - "Duplicate_index_signature_for_type_0_2374": "Doppelte Indexsignatur für Typ \"{0}\".", - "Duplicate_label_0_1114": "Doppelte Bezeichnung \"{0}\".", - "Duplicate_property_0_2718": "Doppelte Eigenschaft: {0}", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Der Spezifizierer des dynamischen Imports muss den Typ \"string\" aufweisen, hier ist er jedoch vom Typ \"{0}\".", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamische Importe werden nur unterstützt, wenn das Flag „--module“ auf „es2020“, „es2022“, „esnext“, „commonjs“, „amd“, „system“, „umd“, „node16“ oder „ Knotenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dynamische Importe können nur einen Modulspezifizierer und eine optionale Assertion als Argumente akzeptieren.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Dynamische Importe unterstützen nur ein zweites Argument, wenn die Option „--module“ auf „esnext“, „node16“ oder „nodenext“ gesetzt ist.", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Jeder Member des union-Typs \"{0}\" weist Konstruktsignaturen auf, aber keine dieser Signaturen ist miteinander kompatibel.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Jeder Member des union-Typs \"{0}\" weist Signaturen auf, aber keine dieser Signaturen ist miteinander kompatibel.", - "Editor_Support_6249": "Editor-Unterstützung", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "Das Element weist implizit einen Typ \"any\" auf, weil der Ausdruck vom Typ \"{0}\" nicht für den Indextyp \"{1}\" verwendet werden kann.", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "Das Element weist implizit einen Typ \"any\" auf, weil der Indexausdruck nicht vom Typ \"number\" ist.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "Das Element weist implizit einen Typ \"any\" auf, weil der Typ \"{0}\" keine Indexsignatur umfasst.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "Das Element weist implizit einen Typ \"any\" auf, weil der Typ \"{0}\" keine Indexsignatur umfasst. Wollten Sie \"{1}\" aufrufen?", - "Emit_6246": "Ausgeben", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "Geben Sie ECMAScript-standardkonforme Klassenfelder aus.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "Geben Sie zu Beginn der Ausgabedateien eine UTF-8-Bytereihenfolge-Marke (BOM) aus.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "Geben Sie eine einzelne Datei mit Quellzuordnungen anstelle einer separaten Datei aus.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "Geben Sie ein v8-CPU-Profil der Compilerausführung zum Debuggen aus.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "Geben Sie zusätzliches JavaScript aus, um die Unterstützung beim Importieren von CommonJS-Modulen zu vereinfachen. Dadurch wird „allowSyntheticDefaultImports“ für die Typkompatibilität aktiviert.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Geben Sie Klassenfelder mit \"Define\" anstelle von \"Set\" aus.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "Geben Sie Entwurfstypmetadaten für ergänzte Deklarationen in Quelldateien aus.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "Geben Sie mehr kompatibles, aber ausführliches und weniger leistungsfähiges JavaScript für die Iteration aus.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "Geben Sie die Quelle zusammen mit den Quellzuordnungen innerhalb einer einzelnen Datei aus; hierfür muss \"--inlineSourceMap\" oder \"--sourceMap\" festgelegt sein.", - "Enable_all_strict_type_checking_options_6180": "Aktivieren Sie alle strengen Typüberprüfungsoptionen.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Aktivieren Sie Farbe und Formatierung in der TypeScript-Ausgabe, um Compilerfehler leichter zu lesen.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "Aktivieren Sie Einschränkungen, die die Verwendung eines TypeScript-Projekts mit Projektverweisen ermöglichen.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "Aktivieren Sie die Fehlerberichterstattung für Codepfade, die nicht explizit in einer Funktion zurückgegeben werden.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "Aktivieren Sie die Fehlerberichterstattung für Ausdrücke und Deklarationen mit einem impliziten „any“-Typ.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "Aktivieren Sie die Fehlerberichterstellung für Fallthroughfälle in Switch-Anweisungen.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Aktivieren Sie die Fehlerberichterstattung in typgeprüften JavaScript-Dateien.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Aktivieren Sie die Fehlerberichterstattung, wenn lokale Variablen nicht gelesen werden.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Aktivieren Sie die Fehlerberichterstattung, wenn „this“ den Typ „any“ erhält.", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Aktivieren Sie experimentelle Unterstützung für Entwurf-Decorator der TC39-Phase 2.", - "Enable_importing_json_files_6689": "Aktivieren Sie das Importieren von JSON-Dateien.", - "Enable_project_compilation_6302": "Projektkompilierung aktivieren", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Aktivieren Sie die strict-Methoden \"bind\", \"call\" und \"apply\" für Funktionen.", - "Enable_strict_checking_of_function_types_6186": "Aktivieren Sie die strenge Überprüfung für Funktionstypen.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "Aktivieren Sie die strenge Überprüfung der Eigenschafteninitialisierung in Klassen.", - "Enable_strict_null_checks_6113": "Strenge NULL-Überprüfungen aktivieren.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "Aktivieren Sie die Option \"experimentalDecorators\" in Ihrer Konfigurationsdatei.", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "Aktivieren Sie das Flag \"--jsx\" in Ihrer Konfigurationsdatei.", - "Enable_tracing_of_the_name_resolution_process_6085": "Ablaufverfolgung des Namensauflösungsvorgangs aktivieren.", - "Enable_verbose_logging_6713": "Aktivieren Sie die ausführliche Protokollierung.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Ermöglicht Ausgabeinteroperabilität zwischen CommonJS- und ES-Modulen durch die Erstellung von Namespaceobjekten für alle Importe. Impliziert \"AllowSyntheticDefaultImports\".", - "Enables_experimental_support_for_ES7_decorators_6065": "Ermöglicht experimentelle Unterstützung für asynchrone ES7-Decorators.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "Ermöglicht experimentelle Unterstützung zum Ausgeben von Typmetadaten für Decorators.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "Erzwingt die Verwendung indizierter Accessoren für Schlüssel, die mithilfe eines indizierten Typs deklariert wurden.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "Stellen Sie sicher, dass überschreibende Member in abgeleiteten Klassen mit einem Überschreibungsmodifizierer markiert sind.", - "Ensure_that_casing_is_correct_in_imports_6637": "Stellen Sie sicher, dass die Groß-/Kleinschreibung beim Import korrekt ist.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Stellen Sie sicher, dass jede Datei sicher transpiliert werden kann, ohne dass andere Importe erforderlich sind.", - "Ensure_use_strict_is_always_emitted_6605": "Stellen Sie sicher, dass \"Use Strict\" immer ausgegeben wird.", - "Entry_point_for_implicit_type_library_0_1420": "Einstiegspunkt für implizite Typbibliothek \"{0}\"", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Einstiegspunkt für die implizite Typbibliothek \"{0}\" mit packageId \"{1}\"", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Der in \"compilerOptions\" angegebene Einstiegspunkt der Typbibliothek \"{0}\"", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "Der in \"compilerOptions\" angegebene Einstiegspunkt der Typbibliothek \"{0}\" mit packageId \"{1}\"", - "Enum_0_used_before_its_declaration_2450": "Enumeration \"{0}\", die vor der Deklaration wurde.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Enumerationsdeklarationen können nur mit Namespace- oder anderen Enumerationsdeklarationen zusammengeführt werden.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "Enumerationsdeklarationen müssen alle konstant oder nicht konstant sein.", - "Enum_member_expected_1132": "Ein Enumerationsmember wurde erwartet.", - "Enum_member_must_have_initializer_1061": "Ein Enumerationsmember muss einen Initialisierer aufweisen.", - "Enum_name_cannot_be_0_2431": "Der Enumerationsname darf nicht \"{0}\" sein.", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Der Enumerationstyp \"{0}\" weist Member mit Initialisierern auf, die keine Literale sind.", - "Errors_Files_6041": "Fehlerdateien", - "Examples_Colon_0_6026": "Beispiele: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "Übermäßige Stapeltiefe beim Vergleichen der Typen \"{0}\" und \"{1}\".", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "{0}-{1} Typargumente erwartet; geben Sie diese mit einem @extends-Tag an.", - "Expected_0_arguments_but_got_1_2554": "{0} Argumente wurden erwartet, empfangen wurden aber {1}.", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Es wurden {0} Argumente erwartet, aber {1} erhalten. Sollte \"void\" in Ihr Typargument in \"Promise\" eingeschlossen werden?", - "Expected_0_type_arguments_but_got_1_2558": "{0} Typenargumente wurden erwartet, empfangen wurden aber {1}.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "{0} Typargumente erwartet; geben Sie diese mit einem @extends-Tag an.", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 Argument erwartet, aber 0 erhalten. „new Promise()“ benötigt einen JSDoc-Hinweis, um einen „resolve“ zu erzeugen, der ohne Argumente aufgerufen werden kann.", - "Expected_at_least_0_arguments_but_got_1_2555": "Mindestens {0} Argumente wurden erwartet, empfangen wurden aber {1}.", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "Das entsprechende schließende JSX-Tag wurde für \"{0}\" erwartet.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Für das JSX-Fragment wurde das entsprechende schließende Tag erwartet.", - "Expected_for_property_initializer_1442": "Für den Eigenschafteninitialisierer wurde \"=\" erwartet.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Der erwartete Typ des Felds \"{0}\" in der Datei \"package.json\" lautet \"{1}\", empfangen wurde \"{2}\".", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Die experimentelle Unterstützung für decorator-Elemente ist ein Feature, das in zukünftigen Versionen Änderungen unterliegt. Legen Sie die Option \"-experimentalDecorators\" in Ihrer \"tsconfig\" oder \"jsconfig\" fest, um diese Warnung zu entfernen.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Explizit angegebene Art der Modulauflösung: \"{0}\".", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Die Potenzierung kann für bigint-Werte nur durchgeführt werden, wenn die Option \"target\" auf \"es2016\" oder höher festgelegt ist.", - "Export_0_from_module_1_90059": "Exportieren von \"{0}\" aus Modul \"{1}\"", - "Export_all_referenced_locals_90060": "Alle referenzierten lokalen Elemente exportieren", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "Die Exportzuweisung darf nicht verwendet werden, wenn das Ziel ECMAScript-Module sind. Verwenden Sie stattdessen ggf. \"export default\" oder ein anderes Modulformat.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "Die Exportzuweisung wird nicht unterstützt, wenn das Flag \"-module\" den Wert \"system\" aufweist.", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "Die Exportdeklaration verursacht einen Konflikt mit der exportierten Deklaration von \"{0}\".", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "Exportdeklarationen sind in einem Namespace unzulässig.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "Der Exportspezifizierer \"{0}\" ist im package.json-Bereich beim Pfad \"{1}\" nicht vorhanden.", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "Der exportierte Typalias \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "Der exportierte Typalias \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\" aus dem Modul \"{2}\".", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "Die exportierte Variable \"{0}\" besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "Die exportierte Variable \"{0}\" besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "Die exportierte Variable \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Exporte und Exportzuweisungen sind in Modulerweiterungen unzulässig.", - "Expression_expected_1109": "Es wurde ein Ausdruck erwartet.", - "Expression_or_comma_expected_1137": "Es wurde ein Ausdruck oder Komma erwartet.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Der Ausdruck erzeugt einen Tupeltyp, der für die Darstellung zu groß ist.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Der Ausdruck erzeugt einen union-Typ, der für die Darstellung zu komplex ist.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Der Ausdruck wird in \"_super\" aufgelöst. Damit erfasst der Compiler den Basisklassenverweis.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Der Ausdruck wird in die Variablendeklaration \"_newTarget\" aufgelöst, die der Compiler zum Erfassen der Metaeigenschaftenreferenz \"new.target\" verwendet.", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Der Ausdruck wird in die Variablendeklaration \"_this\" aufgelöst, die der Compiler verwendet, um den this-Verweis zu erfassen.", - "Extract_constant_95006": "Konstante extrahieren", - "Extract_function_95005": "Funktion extrahieren", - "Extract_to_0_in_1_95004": "Als {0} nach {1} extrahieren", - "Extract_to_0_in_1_scope_95008": "Als {0} in {1}-Bereich extrahieren", - "Extract_to_0_in_enclosing_scope_95007": "Als {0} in einschließenden Bereich extrahieren", - "Extract_to_interface_95090": "In Schnittstelle extrahieren", - "Extract_to_type_alias_95078": "In Typalias extrahieren", - "Extract_to_typedef_95079": "In TypeDef extrahieren", - "Extract_type_95077": "Typ extrahieren", - "FILE_6035": "DATEI", - "FILE_OR_DIRECTORY_6040": "DATEI ODER VERZEICHNIS", - "Failed_to_parse_file_0_Colon_1_5014": "Fehler beim Analysieren der Datei \"{0}\": {1}.", - "Fallthrough_case_in_switch_7029": "FallThrough-Fall in switch-Anweisung.", - "File_0_does_not_exist_6096": "Die Datei \"{0}\" ist nicht vorhanden.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Die Datei \"{0}\" ist gemäß früheren zwischengespeicherten Lookups nicht vorhanden.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "Die Datei \"{0}\" ist vorhanden – sie wird als Ergebnis der Namensauflösung verwendet.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "Die Datei \"{0}\" ist gemäß früheren zwischengespeicherten Lookups vorhanden.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Die Datei \"{0}\" weist eine nicht unterstützte Erweiterung auf. Es werden nur die folgenden Erweiterungen unterstützt: {1}.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Die Datei \"{0}\" hat eine nicht unterstützte Erweiterung und wird übersprungen.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Die Datei \"{0}\" ist eine JavaScript-Datei. Wollten Sie die Option \"allowJs\" aktivieren?", - "File_0_is_not_a_module_2306": "Die Datei \"{0}\" ist kein Modul.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Die Datei \"{0}\" befindet sich nicht in der Dateiliste von Projekt \"{1}\". Projekte müssen alle Dateien auflisten oder ein include-Muster verwenden.", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Datei \"{0}\" befindet sich nicht unter \"rootDir\" \"{1}\". \"rootDir\" muss alle Quelldateien enthalten.", - "File_0_not_found_6053": "Die Datei \"{0}\" wurde nicht gefunden.", - "File_Management_6245": "Dateiverwaltung", - "File_change_detected_Starting_incremental_compilation_6032": "Es wurde eine Dateiänderung erkannt. Die inkrementelle Kompilierung wird gestartet...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Die Datei ist ein CommonJS-Modul, da '{0}' nicht das Feld „Typ“ aufweist", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Die Datei ist ein CommonJS-Modul, da '{0}' das Feld „Typ“ aufweist, dessen Wert nicht „Modul“ ist", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "Die Datei ist ein CommonJS-Modul, da „package.json“ nicht gefunden wurde", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "Die Datei ist ein ECMAScript-Modul, da '{0}' das Feld „Typ“ mit dem Wert „Modul“ aufweist.", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "Die Datei ist ein CommonJS-Modul und kann möglicherweise in ein ES-Modul konvertiert werden.", - "File_is_default_library_for_target_specified_here_1426": "Die Datei ist die Standardbibliothek für das hier angegebene Ziel.", - "File_is_entry_point_of_type_library_specified_here_1419": "Die Datei ist ein Einstiegspunkt der hier angegebenen Typbibliothek.", - "File_is_included_via_import_here_1399": "Die Datei wird hier per Import eingeschlossen.", - "File_is_included_via_library_reference_here_1406": "Die Datei wird hier per Bibliotheksverweis eingeschlossen.", - "File_is_included_via_reference_here_1401": "Die Datei wird hier per Verweis eingeschlossen.", - "File_is_included_via_type_library_reference_here_1404": "Die Datei wird hier per Typbibliotheksverweis eingeschlossen.", - "File_is_library_specified_here_1423": "Die Datei ist die hier angegebene Bibliothek.", - "File_is_matched_by_files_list_specified_here_1410": "Die Datei wird mit der hier angegebenen Liste \"files\" abgeglichen.", - "File_is_matched_by_include_pattern_specified_here_1408": "Die Datei wird mit dem hier angegebenen include-Muster abgeglichen.", - "File_is_output_from_referenced_project_specified_here_1413": "Die Datei ist die Ausgabe des hier angegebenen referenzierten Projekts.", - "File_is_output_of_project_reference_source_0_1428": "Die Datei ist die Ausgabe der Projektverweisquelle \"{0}\".", - "File_is_source_from_referenced_project_specified_here_1416": "Die Datei ist die Quelle des hier angegebenen referenzierten Projekts.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Der Dateiname \"{0}\" unterscheidet sich vom bereits enthaltenen Dateinamen \"{1}\" nur hinsichtlich der Groß-/Kleinschreibung.", - "File_name_0_has_a_1_extension_stripping_it_6132": "Der Dateiname \"{0}\" weist eine Erweiterung \"{1}\" auf. Diese wird entfernt.", - "File_redirects_to_file_0_1429": "Die Datei leitet an die Datei \"{0}\" um.", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Die Dateispezifikation darf kein übergeordnetes Verzeichnis (\"..\") enthalten, das nach einem rekursiven Verzeichnisplatzhalter (\"**\") angegeben wird: \"{0}\".", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "Die Dateispezifikation darf nicht mit einem rekursiven Verzeichnisplatzhalter (\"**\") enden: \"{0}\".", - "Filters_results_from_the_include_option_6627": "Filtert Ergebnisse aus der Option \"include\".", - "Fix_all_detected_spelling_errors_95026": "Alle erkannten Rechtschreibfehler korrigieren", - "Fix_all_expressions_possibly_missing_await_95085": "Korrigieren Sie alle Ausdrücke, in denen \"await\" möglicherweise fehlt.", - "Fix_all_implicit_this_errors_95107": "Alle impliziten this-Fehler beheben", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Alle falschen Rückgabetypen einer asynchronen Funktionen korrigieren", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "\"For await\"-Schleifen können nicht innerhalb eines statischen Klassenblocks verwendet werden.", - "Found_0_errors_6217": "{0} Fehler gefunden.", - "Found_0_errors_Watching_for_file_changes_6194": "{0} Fehler gefunden. Es wird auf Dateiänderungen überwacht.", - "Found_0_errors_in_1_files_6261": "In {1} Dateien wurden {0} Fehler gefunden.", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Es wurden {0} Fehler in derselben Datei gefunden, beginnend bei: {1}", - "Found_1_error_6216": "1 Fehler gefunden.", - "Found_1_error_Watching_for_file_changes_6193": "1 Fehler gefunden. Es wird auf Dateiänderungen überwacht.", - "Found_1_error_in_1_6259": "1 Fehler in {1} gefunden", - "Found_package_json_at_0_6099": "\"package.json\" wurde unter \"{0}\" gefunden.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist. Klassendefinitionen befinden sich automatisch im Strict-Modus.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist. Module befinden sich automatisch im Strict-Modus.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Ein Funktionsausdruck ohne Rückgabetypanmerkung weist implizit einen {0}-Rückgabetyp auf.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Die Funktionsimplementierung fehlt oder folgt nicht unmittelbar auf die Deklaration.", - "Function_implementation_name_must_be_0_2389": "Der Name der Funktionsimplementierung muss \"{0}\" lauten.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Die Funktion weist implizit den Typ \"any\" auf, weil keine Rückgabetypanmerkung vorhanden ist und darauf direkt oder indirekt in einem ihrer Rückgabeausdrücke verwiesen wird.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Der Funktion fehlt die abschließende return-Anweisung, und der Rückgabetyp enthält nicht \"undefined\".", - "Function_not_implemented_95159": "Die Funktion ist nicht implementiert.", - "Function_overload_must_be_static_2387": "Die Funktionsüberladung muss statisch sein.", - "Function_overload_must_not_be_static_2388": "Die Funktionsüberladung darf nicht statisch sein.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "Die Notation des Funktionstyps muss in Klammern gesetzt werden, wenn sie in einem Union-Typ verwendet wird.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "Die Notation des Funktionstyps muss in Klammern gesetzt werden, wenn sie in einem Intersection-Typ verwendet wird.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "Ein Funktionstyp ohne Rückgabetypanmerkung weist implizit einen Rückgabetyp \"{0}\" auf.", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "Eine Funktion mit Textkörpern kann nur mit Umgebungsklassen zusammengeführt werden.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "Generieren Sie .d.ts-Dateien aus TypeScript- und JavaScript-Dateien in Ihrem Projekt.", - "Generate_get_and_set_accessors_95046": "GET- und SET-Accessoren generieren", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "get- und set-Zugriffsmethoden für alle überschreibenden Eigenschaften generieren", - "Generates_a_CPU_profile_6223": "Generiert ein CPU-Profil.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "Generiert eine sourcemap für jede entsprechende .d.ts-Datei.", - "Generates_an_event_trace_and_a_list_of_types_6237": "Generiert eine Ereignisablaufverfolgung und eine Liste von Typen.", - "Generates_corresponding_d_ts_file_6002": "Generiert die entsprechende .d.ts-Datei.", - "Generates_corresponding_map_file_6043": "Generiert die entsprechende MAP-Datei.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Der Generator weist implizit den yield-Typ \"{0}\" auf, weil er keine Werte ausgibt. Erwägen Sie die Angabe einer Rückgabetypanmerkung.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "Generatoren sind in einem Umgebungskontext unzulässig.", - "Generic_type_0_requires_1_type_argument_s_2314": "Der generische Typ \"{0}\" erfordert {1} Typargument(e).", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Der generische Typ \"{0}\" benötigt zwischen {1} und {2} Typargumente.", - "Global_module_exports_may_only_appear_at_top_level_1316": "Globale Modulexporte dürfen nur auf der obersten Ebene auftreten.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "Globale Modulexporte dürfen nur in Deklarationsdateien auftreten.", - "Global_module_exports_may_only_appear_in_module_files_1314": "Globale Modulexporte dürfen nur in Moduldateien auftreten.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "Der globale Typ \"{0}\" muss eine Klassen- oder Schnittstellentyp sein.", - "Global_type_0_must_have_1_type_parameter_s_2317": "Der globale Typ \"{0}\" muss {1} Typparameter aufweisen.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "Legen Sie für Neukompilierungen in \"--incremental\" und \"--watch\" fest, dass sich Änderungen innerhalb einer Datei nur auf die direkt davon abhängigen Dateien auswirken.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "Bei Neukompilierungen in Projekten, die die Modi „incremental“ und „watch“ verwenden, wird davon ausgegangen, dass Änderungen innerhalb einer Datei sich nur direkt auf Dateien auswirken.", - "Hexadecimal_digit_expected_1125": "Es wurde eine hexadezimale Zahl erwartet.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort auf der obersten Ebene eines Moduls.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "Ein Bezeichner wird erwartet. \"{0}\" ist ein reserviertes Wort im Strict-Modus.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "Es wurde ein Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort im Strict-Modus. Klassendefinitionen befinden sich automatisch im Strict-Modus.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "Es wurde ein Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort im Strict-Modus. Module befinden sich automatisch im Strict-Modus.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort, das hier nicht verwendet werden kann.", - "Identifier_expected_1003": "Es wurde ein Bezeichner erwartet.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Bezeichner erwartet. \"__esModule\" ist als exportierter Marker für die Umwandlung von ECMAScript-Modulen reserviert.", - "Identifier_or_string_literal_expected_1478": "Bezeichner oder Zeichenfolgenliteral erwartet.", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, erwägen Sie, einen Pull Request zum Ändern von https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1} zu senden.", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, versuchen Sie, eine neue Deklarationsdatei (.d.ts) hinzuzufügen, die Declare-Modul \"{1}\" enthält.", - "Ignore_this_error_message_90019": "Diese Fehlermeldung ignorieren", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "Ignoriert tsconfig.json und kompiliert die angegebenen Dateien mit den Standardkompilieroptionen.", - "Implement_all_inherited_abstract_classes_95040": "Alle geerbten abstrakten Klassen implementieren", - "Implement_all_unimplemented_interfaces_95032": "Alle nicht implementierten Schnittstellen implementieren", - "Implement_inherited_abstract_class_90007": "Geerbte abstrakte Klasse implementieren", - "Implement_interface_0_90006": "Schnittstelle \"{0}\" implementieren", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Die implements-Klausel der exportierten Klasse \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Die implizite Konvertierung von \"symbol\" in \"string\" führt zur Laufzeit zu einem Fehler. Erwägen Sie, diesen Ausdruck in \"String(...)\" einzuschließen.", - "Import_0_from_1_90013": "\"{0}\" aus \"{1}\" importieren", - "Import_assertion_values_must_be_string_literal_expressions_2837": "Importassertionswerte müssen Zeichenfolgenliteralausdrücke sein.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Importassertionen sind für Anweisungen, die in „require“-Aufrufe von CommonJs transpilieren, nicht zulässig.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Importassertionen werden nur unterstützt, wenn die Option „--module“ auf „esnext“ oder „nodenext“ festgelegt ist.", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Importassertionen können nicht mit rein typbasierten Importen oder Exporten verwendet werden.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Die Importzuweisung kann nicht verwendet werden, wenn das Ziel ECMAScript-Module sind. Verwenden Sie stattdessen ggf. \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" oder ein anderes Modulformat.", - "Import_declaration_0_is_using_private_name_1_4000": "Die Importdeklaration \"{0}\" verwendet den privaten Namen \"{1}\".", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Die Importdeklaration verursacht einen Konflikt mit der lokalen Deklaration von \"{0}\".", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Importdeklarationen in einem Namespace dürfen nicht auf ein Modul verweisen.", - "Import_emit_helpers_from_tslib_6139": "Ausgabehilfsprogramme aus \"tslib\" importieren.", - "Import_may_be_converted_to_a_default_import_80003": "Der Import kann in einen Standardimport konvertiert werden.", - "Import_name_cannot_be_0_2438": "Der Importname darf nicht \"{0}\" sein.", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "Import- oder Exportdeklaration in einer Umgebungsmoduldeklaration dürfen nicht über den relativen Modulnamen auf ein Modul verweisen.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "Der Importspezifizierer \"{0}\" ist im package.json-Bereich beim Pfad \"{1}\" nicht vorhanden.", - "Imported_via_0_from_file_1_1393": "Importiert über \"{0}\" aus der Datei \"{1}\"", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "Importiert über \"{0}\" aus der Datei \"{1}\" zum Importieren von \"importHelpers\", wie in \"compilerOptions\" angegeben", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "Importiert über \"{0}\" aus der Datei \"{1}\" zum Importieren der Factoryfunktionen \"jsx\" und \"jsxs\"", - "Imported_via_0_from_file_1_with_packageId_2_1394": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\"", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\" zum Importieren von \"importHelpers\", wie in \"compilerOptions\" angegeben", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\" zum Importieren der Factoryfunktionen \"jsx\" und \"jsxs\"", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importe sind in Modulerweiterungen unzulässig. Verschieben Sie diese ggf. in das einschließende externe Modul.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "In Umgebungsenumerationsdeklarationen muss der Memberinitialisierer ein konstanter Ausdruck sein.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "In einer Enumeration mit mehreren Deklarationen kann nur eine Deklaration einen Initialisierer für das erste Enumerationselement ausgeben.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "Schließen Sie eine Liste von Dateien ein. Dies unterstützt keine Globmuster im Gegensatz zu \"include\".", - "Include_modules_imported_with_json_extension_6197": "Importierte Module mit der Erweiterung \"JSON\" einschließen", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Fügen Sie den Quellcode in die Quellzuordnungen innerhalb des ausgesendeten JavaScript-Codes ein.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Schließen Sie Quellzuordnungsdateien in das ausgegebene JavaScript ein.", - "Includes_imports_of_types_referenced_by_0_90054": "Schließt Importe von Typen ein, auf die von „{0}“ verwiesen wird", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Bei Einschließung von --watch beginnt -w, das aktuelle Projekt auf Dateiänderungen zu überwachen. Einmal eingestellt, können Sie den Überwachungsmodus konfigurieren, und zwar mit:", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "Die Indexsignatur für den Typ \"{0}\" fehlt im Typ \"{1}\".", - "Index_signature_in_type_0_only_permits_reading_2542": "Die Indexsignatur in Typ \"{0}\" lässt nur Lesevorgänge zu.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Einzelne Deklarationen in der gemergten Deklaration \"{0}\" müssen alle exportiert oder alle lokal sein.", - "Infer_all_types_from_usage_95023": "Alle Typen aus der Syntax ableiten", - "Infer_function_return_type_95148": "Funktionsrückgabetyp ableiten", - "Infer_parameter_types_from_usage_95012": "Parametertypen aus der Nutzung ableiten", - "Infer_this_type_of_0_from_usage_95080": "Typ \"this\" von \"{0}\" aus Syntax ableiten", - "Infer_type_of_0_from_usage_95011": "Typ von \"{0}\" aus der Nutzung ableiten", - "Initialize_property_0_in_the_constructor_90020": "Eigenschaft \"{0}\" im Konstruktor initialisieren", - "Initialize_static_property_0_90021": "Statische Eigenschaft \"{0}\" initialisieren", - "Initializer_for_property_0_2811": "Initialisierer für Eigenschaft \"{0}\"", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Der Initialisierer der Instanzmembervariablen \"{0}\" darf nicht auf den im Konstruktor deklarierten Bezeichner \"{1}\" verweisen.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Der Initialisierer stellt keinen Wert für dieses Bindungselement bereit, und das Bindungselement besitzt keinen Standardwert.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "Initialisierer sind in Umgebungskontexten unzulässig.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Initialisiert ein TypeScript-Projekt und erstellt eine Datei \"tsconfig.json\".", - "Insert_command_line_options_and_files_from_a_file_6030": "Fügt Befehlszeilenoptionen und Dateien aus einer Datei ein.", - "Install_0_95014": "\"{0}\" installieren", - "Install_all_missing_types_packages_95033": "Alle fehlenden Typenpakete installieren", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "Die Schnittstelle \"{0}\" kann die Typen \"{1}\" und \"{2}\" nicht gleichzeitig erweitern.", - "Interface_0_incorrectly_extends_interface_1_2430": "Die Schnittstelle \"{0}\" erweitert fälschlicherweise die Schnittstelle \"{1}\".", - "Interface_declaration_cannot_have_implements_clause_1176": "Die Schnittstellendeklarationen darf keine implements-Klausel aufweisen.", - "Interface_must_be_given_a_name_1438": "Schnittstelle muss einen Namen erhalten.", - "Interface_name_cannot_be_0_2427": "Der Schnittstellenname darf nicht \"{0}\" sein.", - "Interop_Constraints_6252": "Interop-Einschränkungen", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "Interpretieren Sie optionale Eigenschaftstypen als geschrieben, statt 'nicht definiert' hinzuzufügen.", - "Invalid_character_1127": "Ungültiges Zeichen.", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "Der ungültige Importbezeichner \"{0}\" weist keine möglichen Auflösungen auf.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Ungültiger Modulname in Augmentation. Das Modul \"{0}\" wird in ein nicht typisiertes Modul in \"{1}\" aufgelöst, das nicht augmentiert werden kann.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Ungültiger Modulname in der Erweiterung. Das Modul \"{0}\" wurde nicht gefunden.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Ungültige optionale Kette aus neuem Ausdruck. Wollten Sie '{0}()' anrufen?", - "Invalid_reference_directive_syntax_1084": "Ungültige Syntax der reference-Direktive.", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Ungültige Verwendung von \"{0}\". Es kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Ungültige Verwendung von \"{0}\". Module befinden sich automatisch im Strict-Modus.", - "Invalid_use_of_0_in_strict_mode_1100": "Ungültige Verwendung von \"{0}\" im Strict-Modus.", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Ungültiger Wert für \"jsxFactory\". \"{0}\" ist kein gültiger Bezeichner oder qualifizierter Name.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Ungültiger Wert für \"jsxFragmentFactory\". \"{0}\" ist kein gültiger Bezeichner oder qualifizierter Name.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Ungültiger Wert für \"-reactNamespace\". \"{0}\" ist kein gültiger Bezeichner.", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "Möglicherweise fehlt ein Komma, um diese beiden Vorlagenausdrücke zu trennen. Sie bilden einen Vorlagenausdruck mit Tags, der nicht aufgerufen werden kann.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Der zugehörige Elementtyp \"{0}\" ist kein gültiges JSX-Element.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Der zugehörige Instanztyp \"{0}\" ist kein gültiges JSX-Element.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Der Rückgabetyp \"{0}\" ist kein gültiges JSX-Element.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc \"@{0} {1}\" entspricht nicht der Klausel \"extends {2}\".", - "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc \"@{0}\" ist keiner Klassendeklaration zugeordnet.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "Das JSDoc-Tag \"...\" wird möglicherweise nur im letzten Parameter einer Signatur angezeigt.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Das JSDoc-Tag \"@param\" weist den Namen \"{0}\" auf, es gibt jedoch keinen Parameter dieses Namens.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Das JSDoc-Tag \"@param\" weist den Namen \"{0}\" auf, es ist jedoch kein Parameter dieses Namens vorhanden. Es läge eine Übereinstimmung mit \"arguments\" vor, wenn ein Arraytyp vorläge.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Das JSDoc-Tag \"@typedef\" muss entweder eine Typanmerkung aufweisen, oder die Tags \"@property\" oder \"@member\" müssen darauf folgen.", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc-Typen können nur innerhalb von Dokumentationskommentaren verwendet werden.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc-Typen können in TypeScript-Typen verschoben werden.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX-Attributen darf nur ein nicht leeres expression-Objekt zugewiesen werden.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "Das JSX-Element \"{0}\" weist kein entsprechendes schließendes Tag auf.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "Die JSX-Elementklasse unterstützt keine Attribute, weil sie keine Eigenschaft \"{0}\" aufweist.", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "Das JSX-Element enthält implizit den Typ \"any\", weil keine Schnittstelle \"JSX.{0}\" vorhanden ist.", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "Das JSX-Element enthält implizit den Typ \"any\", weil der globale Typ \"JSX.Element\" nicht vorhanden ist.", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "Der JSX-Elementtyp \"{0}\"weist keine Konstrukt- oder Aufrufsignaturen auf.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "JSX-Elemente dürfen nicht mehrere Attribute mit dem gleichen Namen aufweisen.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "JSX-Ausdrücke dürfen keinen Komma-Operator verwenden. Wollten Sie ein Array schreiben?", - "JSX_expressions_must_have_one_parent_element_2657": "JSX-Ausdrücke müssen ein übergeordnetes Element aufweisen.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "Das JSX-Fragment weist kein entsprechendes schließendes Tag auf.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "Ausdrücke für den Zugriff auf JSX-Eigenschaften dürfen keine JSX-Namespacenamen enthalten.", - "JSX_spread_child_must_be_an_array_type_2609": "Die untergeordnete JSX-Verteilung muss ein Arraytyp sein.", - "JavaScript_Support_6247": "JavaScript-Unterstützung", - "Jump_target_cannot_cross_function_boundary_1107": "Das Sprungziel darf die Funktionsgrenze nicht überschreiten.", - "KIND_6034": "ART", - "Keywords_cannot_contain_escape_characters_1260": "Schlüsselwörter können keine Escapezeichen enthalten.", - "LOCATION_6037": "SPEICHERORT", - "Language_and_Environment_6254": "Sprache und Umgebung", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "Die linke Seite des Kommaoperators wird nicht verwendet besitzt keine Nebenwirkungen.", - "Library_0_specified_in_compilerOptions_1422": "In \"compilerOptions\" angegebene Bibliothek \"{0}\"", - "Library_referenced_via_0_from_file_1_1405": "Bibliothek, die über \"{0}\" aus der Datei \"{1}\" referenziert wird", - "Line_break_not_permitted_here_1142": "Ein Zeilenumbruch ist hier unzulässig.", - "Line_terminator_not_permitted_before_arrow_1200": "Das Zeilenabschlusszeichen ist vor dem Pfeil unzulässig.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "Liste der Dateinamensuffixe, die beim Auflösen eines Moduls gesucht werden sollen.", - "List_of_folders_to_include_type_definitions_from_6161": "Liste der Ordner, aus denen Typendefinitionen einbezogen werden sollen.", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Liste der Stammordner, deren kombinierter Inhalt die Struktur des Projekts zur Laufzeit darstellt.", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "\"{0}\" wird aus dem Stammverzeichnis \"{1}\" geladen. Speicherort des Kandidaten \"{2}\".", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Modul \"{0}\" wird aus dem Ordner \"node_modules\" geladen, die Zieldatei ist vom Typ \"{1}\".", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Modul wird als Datei/Ordner geladen, der Speicherort des Kandidatenmoduls ist \"{0}\", die Zieldatei ist vom Typ \"{1}\".", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Für das Gebietsschema ist das Format oder - erforderlich, z. B. \"{0}\" oder \"{1}\".", - "Log_paths_used_during_the_moduleResolution_process_6706": "Protokollpfade, die während des „moduleResolution“-Prozesses verwendet werden.", - "Longest_matching_prefix_for_0_is_1_6108": "Das längste übereinstimmende Präfix für \"{0}\" ist \"{1}\".", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "Die Suche erfolgt im Ordner \"node_modules\". Anfangsspeicherort \"{0}\".", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "Alle \"super()\"-Aufrufe als erste Anweisung im entsprechenden Konstruktor festlegen", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Stellen Sie ein, dass keyof nur Zeichenfolgen, anstelle von Zeichenfolgen, Zahlen oder Symbolen zurückgibt. Legacy-Option.", - "Make_super_call_the_first_statement_in_the_constructor_90002": "super()-Aufruf als erste Anweisung im Konstruktor festlegen", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Der zugeordnete Objekttyp weist implizit einen any-Vorlagentyp auf.", - "Matched_0_condition_1_6403": "Übereinstimmung mit \"{0}\" Bedingung \"{1}\".", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Standardmäßig zugeordnetes Includemuster „**/*“", - "Matched_by_include_pattern_0_in_1_1407": "Abgeglichen mit dem include-Muster \"{0}\" in \"{1}\"", - "Member_0_implicitly_has_an_1_type_7008": "Der Member \"{0}\" weist implizit den Typ \"{1}\" auf.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Member \"{0}\" weist implizit einen Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "Merge_conflict_marker_encountered_1185": "Mergekonfliktmarkierung", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "Die gemergte Deklaration \"{0}\" darf keine Exportstandarddeklaration enthalten. Fügen Sie ggf. eine separate Deklaration \"export default {0}\" hinzu.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "Die Metaeigenschaft \"{0}\" ist nur im Text einer Funktionsdeklaration, eines Funktionsausdrucks oder eines Konstruktors zulässig.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Die Methode \"{0}\" darf keine Implementierung besitzen, weil sie als abstrakt markiert ist.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Die Methode \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Die Methode \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Method_not_implemented_95158": "Die Methode ist nicht implementiert.", - "Modifiers_cannot_appear_here_1184": "Modifizierer dürfen hier nicht enthalten sein.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Das Modul \"{0}\" kann nur mit dem Flag \"{1}\" als Standard importiert werden.", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "Das Modul \"{0}\" kann nicht mit diesem Konstrukt importiert werden. Der Spezifizierer wird nur in ein ES-Modul aufgelöst, das nicht mit \"require\" importiert werden kann. Verwenden Sie stattdessen einen ECMAScript-Import.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "Das Modul \"{0}\" deklariert \"{1}\" lokal, der Export erfolgt jedoch als \"{2}\".", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "Das Modul \"{0}\" deklariert \"{1}\" lokal, es erfolgt jedoch kein Export.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "Das Modul \"{0}\" verweist nicht auf einen Typ, wird hier aber als Typ verwendet. Meinten Sie \"typeof import('{0}')\"?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "Das Modul \"{0}\" verweist nicht auf einen Wert, wird hier aber als Wert verwendet.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "Das Modul \"{0}\" hat bereits einen Member mit dem Namen \"{1}\" exportiert. Erwägen Sie, ihn explizit erneut zu exportieren, um die Mehrdeutigkeit zu vermeiden.", - "Module_0_has_no_default_export_1192": "Das Modul \"{0}\" weist keinen Standardexport auf.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "Das Modul \"{0}\" weist keinen Standardexport auf. Wollten Sie stattdessen \"import { {1} } from {0}\" verwenden?", - "Module_0_has_no_exported_member_1_2305": "Das Modul \"{0}\" weist keinen exportierten Member \"{1}\" auf.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Das Modul \"{0}\" umfasst keinen exportierten Member \"{1}\". Wollten Sie stattdessen \"import {1} from {0}\" verwenden?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Das Modul \"{0}\" wird durch eine lokale Deklaration mit dem gleichen Namen ausgeblendet.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Das Modul \"{0}\" verwendet \"export =\" und darf nicht mit \"export *\" verwendet werden.", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Das Modul \"{0}\" wurde als in \"{1}\" deklariertes Umgebungsmodul aufgelöst, weil diese Datei nicht geändert wurde.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Das Modul \"{0}\" wurde als lokal deklariertes Umgebungsmodul in der Datei \"{1}\" aufgelöst.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Das Modul \"{0}\" wurde zu \"{1}\" aufgelöst, aber \"--jsx\" wurde nicht festgelegt.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Das Modul \"{0}\" wurde in \"{1}\" aufgelöst, aber \"--resolveJsonModule\" wird nicht verwendet.", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Namen der Moduldeklaration dürfen nur Zeichenfolgen enthalten, die von ' oder \" eingeschlossen werden.", - "Module_name_0_matched_pattern_1_6092": "Modulname \"{0}\", übereinstimmendes Muster \"{1}\".", - "Module_name_0_was_not_resolved_6090": "======== Der Modulname \"{0}\" wurde nicht aufgelöst. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== Der Modulname \"{0}\" wurde erfolgreich in \"{1}\" aufgelöst. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== Der Modulname \"{0}\" wurde erfolgreich in \"{1}\" mit Paket-ID \"{2}\" aufgelöst. ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "Die Art der Modulauflösung wird nicht angegeben. \"{0}\" wird verwendet.", - "Module_resolution_using_rootDirs_has_failed_6111": "Fehler bei der Modulauflösung mithilfe von \"rootDirs\".", - "Modules_6244": "Module", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "Modifizierer für bezeichnete Tupelelemente in Bezeichnungen verschieben", - "Move_to_a_new_file_95049": "In neue Datei verschieben", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Mehrere aufeinander folgende numerische Trennzeichen sind nicht zulässig.", - "Multiple_constructor_implementations_are_not_allowed_2392": "Mehrere Konstruktorimplementierungen sind unzulässig.", - "NEWLINE_6061": "NEUE ZEILE", - "Name_is_not_valid_95136": "Der Name ist ungültig.", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Die benannte Eigenschaft \"{0}\" der Typen \"{1}\" und \"{2}\" ist nicht identisch.", - "Namespace_0_has_no_exported_member_1_2694": "Der Namespace \"{0}\" besitzt keinen exportierten Member \"{1}\".", - "Namespace_must_be_given_a_name_1437": "Namespace muss einen Namen erhalten.", - "Namespace_name_cannot_be_0_2819": "Namespacename darf nicht \"{0}\" sein.", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Kein Basiskonstruktor weist die angegebene Anzahl von Typargumenten auf.", - "No_constituent_of_type_0_is_callable_2755": "Es ist kein Bestandteil vom Typ \"{0}\" aufrufbar.", - "No_constituent_of_type_0_is_constructable_2759": "Es kann kein Bestandteil vom Typ \"{0}\" erstellt werden.", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "Für den Typ \"{1}\" wurde keine Indexsignatur mit einem Parameter vom Typ \"{0}\" gefunden.", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "In der Konfigurationsdatei \"{0}\" wurden keine Eingaben gefunden. Als include-Pfade wurden \"{1}\", als exclude-Pfade wurden \"{2}\" angegeben.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "Wird nicht mehr unterstützt. Legen Sie die Textcodierung für das Lesen von Dateien in früheren Versionen manuell fest.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "Keine Überladung erwartet {0} Argumente, aber es sind Überladungen vorhanden, die entweder {1} oder {2} Argumente erwarten.", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "Keine Überladung erwartet {0} Typargumente, aber es sind Überladungen vorhanden, die entweder {1} oder {2} Typargumente erwarten.", - "No_overload_matches_this_call_2769": "Keine Überladung stimmt mit diesem Aufruf überein.", - "No_type_could_be_extracted_from_this_type_node_95134": "Aus diesem Typknoten konnte kein Typ extrahiert werden.", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Im Bereich für die Kompakteigenschaft \"{0}\" ist kein Wert vorhanden. Deklarieren Sie entweder einen Wert, oder geben Sie einen Initialisierer an.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Die nicht abstrakte Klasse \"{0}\" implementiert nicht den geerbten abstrakten Member \"{1}\" aus der Klasse \"{2}\".", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Der nicht abstrakte Ausdruck implementiert nicht den geerbten abstrakten Member \"{0}\" aus der Klasse \"{1}\".", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Assertionen ungleich NULL können nur in TypeScript-Dateien verwendet werden.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Nicht relative Pfade sind nur zulässig, wenn \"baseUrl\" festgelegt wurde. Fehlt am Anfang die Zeichenfolge \"./\"?", - "Non_simple_parameter_declared_here_1348": "Hier wurde ein nicht einfacher Parameter deklariert.", - "Not_all_code_paths_return_a_value_7030": "Nicht alle Codepfade geben einen Wert zurück.", - "Not_all_constituents_of_type_0_are_callable_2756": "Nicht alle Bestandteile vom Typ \"{0}\" können aufgerufen werden.", - "Not_all_constituents_of_type_0_are_constructable_2760": "Nicht alle Bestandteile vom Typ \"{0}\" können erstellt werden.", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Numerische Literale mit absoluten Werten von 2^53 oder höher sind zu groß, um als ganze Zahlen genau dargestellt werden zu können.", - "Numeric_separators_are_not_allowed_here_6188": "Numerische Trennzeichen sind hier nicht zulässig.", - "Object_is_of_type_unknown_2571": "Das Objekt ist vom Typ \"Unbekannt\".", - "Object_is_possibly_null_2531": "Das Objekt ist möglicherweise \"NULL\".", - "Object_is_possibly_null_or_undefined_2533": "Das Objekt ist möglicherweise \"NULL\" oder \"nicht definiert\".", - "Object_is_possibly_undefined_2532": "Das Objekt ist möglicherweise \"nicht definiert\".", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Das Objektliteral kann nur bekannte Eigenschaften angeben, und \"{0}\" ist im Typ \"{1}\" nicht vorhanden.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Das Objektliteral gibt möglicherweise nur bekannte Eigenschaften an, \"{0}\" ist jedoch im Typ \"{1}\" nicht vorhanden. Wollten Sie \"{2}\" schreiben?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Die Eigenschaft \"{0}\" des Objektliterals weist implizit den Typ \"{1}\" auf.", - "Octal_digit_expected_1178": "Es wurde eine Oktalzahl erwartet.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Oktalliteraltypen müssen die Syntax \"ES2015\" verwenden. Verwenden Sie die Syntax \"{0}\".", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Oktalliterale sind in einem Mitgliederenumerationsinitialisierer nicht zulässig. Verwenden Sie die Syntax \"{0}\".", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "Oktalliterale sind im Strict-Modus unzulässig.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Oktalliterale sind bei der Zielgruppenadressierung von ECMAScript 5 und höher nicht verfügbar. Verwenden Sie die Syntax \"{0}\".", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "In einer for...in-Anweisung ist nur eine einzige Variablendeklaration zulässig.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "In einer for...of-Anweisung ist nur eine einzige Variablendeklaration zulässig.", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Nur eine void-Funktion kann mit dem Schlüsselwort \"new\" aufgerufen werden.", - "Only_ambient_modules_can_use_quoted_names_1035": "Nur Umgebungsmodule dürfen Namen in Anführungszeichen verwenden.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Nur die Module \"amd\" und \"system\" werden in Verbindung mit --{0} unterstützt.", - "Only_emit_d_ts_declaration_files_6014": "Geben Sie nur .d.ts-Deklarationsdateien aus.", - "Only_named_exports_may_use_export_type_1383": "\"export type\" kann nur von benannten Exporten verwendet werden.", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Nur numerische Enumerationen können berechnete Member umfassen, aber dieser Ausdruck weist den Typ \"{0}\" auf. Wenn Sie keine Vollständigkeitsprüfung benötigen, erwägen Sie stattdessen die Verwendung eines Objektliterals.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Nur d.ts-Dateien und keine JavaScript-Dateien ausgeben.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Nur auf öffentliche und geschützte Methoden der Basisklasse kann über das Schlüsselwort \"super\" zugegriffen werden.", - "Operator_0_cannot_be_applied_to_type_1_2736": "Der Operator \"{0}\" kann nicht auf den Typ \"{1}\" angewendet werden.", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Der Operator \"{0}\" darf nicht auf die Typen \"{1}\" und \"{2}\" angewendet werden.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Deaktivieren Sie bei der Bearbeitung ein Projekt von der Überprüfung mehrerer Projektverweise.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Die Option \"{0}\" kann nur in der Datei \"tsconfig.json\" angegeben oder in der Befehlszeile auf FALSE oder NULL festgelegt werden.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Die Option \"{0}\" kann nur in der Datei \"tsconfig.json\" angegeben oder in der Befehlszeile auf NULL festgelegt werden.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Die Option \"{0}\" kann nur verwendet werden, wenn die Option \"-inlineSourceMap\" oder \"-sourceMap\" angegeben wird.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Die Option \"{0}\" kann nicht angegeben werden, wenn die Option \"jsx\" den Wert \"{1}\" aufweist.", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Die Option \"{0}\" kann nicht angegeben werden, wenn die Option \"target\" den Wert \"ES3\" aufweist.", - "Option_0_cannot_be_specified_with_option_1_5053": "Die Option \"{0}\" darf nicht zusammen mit der Option \"{1}\" angegeben werden.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Die Option \"{0}\" darf nicht ohne die Option \"{1}\" angegeben werden.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Die Option \"{0}\" kann nicht ohne die Option \"{1}\" oder \"{2}\" angegeben werden.", - "Option_build_must_be_the_first_command_line_argument_6369": "Die Option \"--build\" muss das erste Befehlszeilenargument sein.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Die Option \"--incremental\" kann nur mit \"tsconfig\" und bei Ausgabe in eine einzelne Datei oder bei Festlegung der Option \"--tsBuildInfoFile\" angegeben werden.", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Die Option \"isolatedModules\" kann nur verwendet werden, wenn entweder die Option \"--module\" angegeben ist oder die Option \"target\" den Wert \"ES2015\" oder höher aufweist.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Die Option \"preserveConstEnums\" kann nicht deaktiviert werden, wenn \"isolatedModules\" aktiviert ist.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Die Option „preserveValueImports“ kann nur verwendet werden, wenn „module“ auf „es2015“ oder höher festgelegt ist.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Die Option \"project\" darf nicht mit Quelldateien in einer Befehlszeile kombiniert werden.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Die Option \"--resolveJsonModule\" kann nur angegeben werden, wenn die Modulcodegenerierung \"commonjs\", \"amd\", \"es2015\" oder \"esNext\" lautet.", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Die Option \"--resolveJsonModule\" kann nicht ohne die Modulauflösungsstrategie \"node\" angegeben werden.", - "Options_0_and_1_cannot_be_combined_6370": "Die Optionen \"{0}\" und \"{1}\" können nicht kombiniert werden.", - "Options_Colon_6027": "Optionen:", - "Output_Formatting_6256": "Ausgabeformatierung", - "Output_compiler_performance_information_after_building_6615": "Ausgabe Compiler-Leistungsinformationen nach dem Erstellen.", - "Output_directory_for_generated_declaration_files_6166": "Ausgabeverzeichnis für erstellte Deklarationsdateien.", - "Output_file_0_from_project_1_does_not_exist_6309": "Die Ausgabedatei \"{0}\" aus dem Projekt \"{1}\" ist nicht vorhanden.", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "Die Ausgabedatei \"{0}\" wurde nicht aus der Quelldatei \"{1}\" erstellt.", - "Output_from_referenced_project_0_included_because_1_specified_1411": "Ausgabe aus referenziertem Projekt \"{0}\" eingeschlossen, da \"{1}\" angegeben wurde", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Ausgabe aus referenziertem Projekt \"{0}\" eingeschlossen, da \"--module\" als \"none\" angegeben wurde", - "Output_more_detailed_compiler_performance_information_after_building_6632": "Geben Sie ausführlichere Compilerleistungsinformationen nach der Erstellung aus.", - "Overload_0_of_1_2_gave_the_following_error_2772": "Die Überladung {0} von {1} ({2}) hat den folgenden Fehler verursacht.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "Überladungssignaturen müssen alle abstrakt oder nicht abstrakt sein.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "Überladungssignaturen müssen alle umgebend oder nicht umgebend sein.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "Überladungssignaturen müssen alle exportiert oder nicht exportiert sein.", - "Overload_signatures_must_all_be_optional_or_required_2386": "Überladungssignaturen müssen alle optional oder erforderlich sein.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "Überladungssignaturen müssen alle öffentlich, privat oder geschützt sein.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "Der Parameter \"{0}\" darf nicht auf den anschließend deklarierten Bezeichner \"{1}\" verweisen.", - "Parameter_0_cannot_reference_itself_2372": "Der Parameter \"{0}\" kann nicht auf sich selbst verweisen.", - "Parameter_0_implicitly_has_an_1_type_7006": "Der Parameter \"{0}\" weist implizit einen Typ \"{1}\" auf.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "Der Parameter \"{0}\" weist implizit einen Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "Der Parameter \"{0}\" befindet sich nicht an der gleichen Position wie der Parameter \"{1}\".", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "Der Parameter \"{0}\" des Accessors besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "Der Parameter \"{0}\" des Accessors besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "Der Parameter \"{0}\" des Accessors besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "Der Parameter \"{0}\" der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "Der Parameter \"{0}\" der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "Der Parameter \"{0}\" des Konstruktors aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "Der Parameter \"{0}\" des Konstruktors aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "Der Parameter \"{0}\" des Konstruktors aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "Der Parameter \"{0}\" der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "Der Parameter \"{0}\" der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "Der Parameter \"{0}\" der exportierten Funktion besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "Der Parameter \"{0}\" der exportierten Funktion besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "Der Parameter \"{0}\" der exportierten Funktion besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "Der Parameter \"{0}\" der Indexsignatur aus der exportierten Schnittstelle weist den Namen \"{1}\" aus dem privaten Modul \"{2}\" auf oder verwendet diesen.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "Der Parameter \"{0}\" der Indexsignatur aus der exportierten Schnittstelle weist den privaten Namen \"{1}\" auf oder verwendet diesen.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "Der Parameter \"{0}\" der Methode aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "Der Parameter \"{0}\" der Methode aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "Der Parameter \"{0}\" der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "Der Parameter \"{0}\" der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "Der Parameter \"{0}\" der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "Der Parameter \"{0}\" der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "Der Parameter \"{0}\" der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "Der Parameter \"{0}\" der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_cannot_have_question_mark_and_initializer_1015": "Der Parameter darf kein Fragezeichen und keinen Initialisierer aufweisen.", - "Parameter_declaration_expected_1138": "Eine Parameterdeklaration wurde erwartet.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Der Parameter weist einen Namen, aber keinen Typ auf. Meinten Sie \"{0}: {1}\"?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Parametermodifizierer können nur in TypeScript-Dateien verwendet werden.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Der Parametertyp des öffentlichen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Der Parametertyp des öffentlichen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Der Parametertyp des öffentlichen statischen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "Der Parametertyp des öffentlichen statischen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "Im Strict-Modus analysieren und \"use strict\" für jede Quelldatei ausgeben.", - "Part_of_files_list_in_tsconfig_json_1409": "Teil der Liste \"files\" in tsconfig.json", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "Das Muster \"{0}\" darf höchstens ein Zeichen \"*\" aufweisen.", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "Leistungsdaten zum zeitlichen Ablauf sind für \"--diagnostics\" oder \"--extendedDiagnostics\" in dieser Sitzung nicht verfügbar. Eine native Implementierung der Webleistungs-API wurde nicht gefunden.", - "Platform_specific_6912": "Plattformspezifisch", - "Prefix_0_with_an_underscore_90025": "\"{0}\" einen Unterstrich voranstellen", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "Verwenden Sie für alle falschen Eigenschaftendeklarationen das Präfix \"declare\".", - "Prefix_all_unused_declarations_with_where_possible_95025": "Alle nicht verwendeten Deklarationen nach Möglichkeit mit dem Präfix \"_\" versehen", - "Prefix_with_declare_95094": "Präfix \"declare\" voranstellen", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Behalten Sie nicht verwendete importierte Werte in der JavaScript-Ausgabe bei, die andernfalls entfernt werden würden.", - "Print_all_of_the_files_read_during_the_compilation_6653": "Drucken Sie alle Dateien, die während der Kompilierung gelesen wurden.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Während der Kompilierung gelesene Dateien drucken, einschließlich der Gründe für ihre Aufnahme.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Hiermit werden die Namen der Dateien und der Grund dafür ausgegeben, dass die Dateien in der Kompilierung enthalten sind.", - "Print_names_of_files_part_of_the_compilation_6155": "Drucknamen des Dateiteils der Kompilierung.", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "Hiermit werden Namen der Dateien ausgegeben, die Teil der Kompilierung sind. Anschließend wird die Verarbeitung beendet.", - "Print_names_of_generated_files_part_of_the_compilation_6154": "Drucknamen des generierten Dateiteils der Kompilierung.", - "Print_the_compiler_s_version_6019": "Die Version des Compilers ausgeben.", - "Print_the_final_configuration_instead_of_building_1350": "Hiermit wird anstelle eines Builds die endgültige Konfiguration ausgegeben.", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "Drucken Sie die Namen der ausgegebenen Dateien nach einer Kompilierung.", - "Print_this_message_6017": "Diese Nachricht ausgeben.", - "Private_accessor_was_defined_without_a_getter_2806": "Die private Zugriffsmethode wurde ohne Getter definiert.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Private Bezeichner sind in Variablendeklarationen nicht zulässig.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Private Bezeichner sind außerhalb des Textes von Klassen nicht zulässig.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Private Bezeichner sind nur in Klassentexten zulässig und dürfen nur als Teil einer Klassenmitgliedsdeklaration, eines Eigenschaftszugriffs oder auf der linken Seite eines in-Ausdrucks verwendet werden.", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Private Bezeichner sind nur verfügbar, wenn als Ziel ECMAScript 2015 oder höher verwendet wird.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "Private Bezeichner können nicht als Parameter verwendet werden.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Für einen Typparameter kann nicht auf den privaten oder geschützten Member \"{0}\" zugegriffen werden.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Projekt \"{0}\" kann nicht erstellt werden, weil die Abhängigkeit \"{1}\" Fehler enthält.", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Das Projekt \"{0}\" kann nicht erstellt werden, weil die zugehörige Abhängigkeit \"{1}\" nicht erstellt wurde.", - "Project_0_is_being_forcibly_rebuilt_6388": "Die Neuerstellung des Projekts \"{0}\" wird erzwungen.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Das Projekt \"{0}\" ist veraltet, da die Buildinfodatei \"{1}\" angibt, dass einige der Änderungen nicht ausgegeben wurden.", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt \"{0}\" ist veraltet, weil die Abhängigkeit \"{1}\" veraltet ist.", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Das Projekt \"{0}\" ist veraltet, weil die Ausgabe \"{1}\" älter ist als die Eingabe \"{2}\"", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt \"{0}\" ist veraltet, weil die Ausgabedatei \"{1}\" nicht vorhanden ist.", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Das Projekt \"{0}\" ist veraltet, weil die Ausgabe für das Projekt mit Version {1} generiert wurde, die sich von der aktuellen Version {2} unterscheidet.", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Das Projekt \"{0}\" ist veraltet, weil sich die zugehörige Abhängigkeit \"{1}\" geändert hat.", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Das Projekt \"{0}\" ist veraltet, weil beim Lesen der Datei \"{1}\" ein Fehler aufgetreten ist.", - "Project_0_is_up_to_date_6361": "Projekt \"{0}\" ist auf dem neuesten Stand.", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt \"{0}\" ist auf dem neuesten Stand, weil die neueste Eingabe \"{1}\" älter ist als die Ausgabe \"{2}\".", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "Das Projekt \"{0}\" ist aktuell, muss jedoch Zeitstempel von Ausgabedateien aktualisieren, die älter als Eingabedateien sind.", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Projekt \"{0}\" ist mit .d.ts-Dateien aus den zugehörigen Abhängigkeiten auf dem neuesten Stand.", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Projektverweise dürfen keinen kreisförmigen Graphen bilden. Zyklus erkannt: {0}", - "Projects_6255": "Projekte", - "Projects_in_this_build_Colon_0_6355": "Projekte in diesem Build: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Eigenschaften mit dem Accessormodifizierer sind nur für ECMAScript 2015 und höher verfügbar.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Die Eigenschaft \"{0}\" darf keinen Initialisierer aufweisen, weil sie als abstrakt markiert ist.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Die Eigenschaft \"{0}\" stammt aus einer Indexsignatur. Der Zugriff muss daher mit [\"{0}\"] erfolgen.", - "Property_0_does_not_exist_on_type_1_2339": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "Die Eigenschaft \"{0}\" existiert nicht für Typ \"{1}\". Meinten Sie \"{2}\"?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden. Möchten Sie stattdessen auf den statischen Member \"{2}\" zugreifen?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"{2}\" oder höher.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden. Ändern Sie die Compileroption \"lib\" so, dass sie \"dom\" enthält.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "Die Eigenschaft \"{0}\" weist keinen Initialisierer auf und ist in einem statischen Klassenblock nicht definitiv zugewiesen.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "Die Eigenschaft \"{0}\" weist keinen Initialisierer auf und ist im Konstruktor nicht definitiv zugewiesen.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "Die Eigenschaft \"{0}\" weist implizit den Typ \"any\" auf, weil ihrem get-Accessor eine Parametertypanmerkung fehlt.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "Die Eigenschaft \"{0}\" weist implizit den Typ \"any\" auf, weil ihrem set-Accessor eine Parametertypanmerkung fehlt.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "Die Eigenschaft \"{0}\" weist implizit den Typ \"any\" auf, aber für den zugehörigen get-Accessor kann möglicherweise ein besserer Typ aus der Syntax abgeleitet werden.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "Die Eigenschaft \"{0}\" weist implizit den Typ \"any\" auf, aber für den zugehörigen set-Accessor kann möglicherweise ein besserer Typ aus der Syntax abgeleitet werden.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "Die Eigenschaft \"{0}\" im Typ \"{1}\" kann nicht der gleichen Eigenschaft in Basistyp \"{2}\" zugewiesen werden.", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "Die Eigenschaft \"{0}\" im Typ \"{1}\" kann dem Typ \"{2}\" nicht zugewiesen werden.", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "Die Eigenschaft \"{0}\" im Typ \"{1}\" verweist auf einen anderen Member, auf den nicht aus Typ \"{2}\" zugegriffen werden kann.", - "Property_0_is_declared_but_its_value_is_never_read_6138": "Die Eigenschaft \"{0}\" ist deklariert, aber ihr Wert wird nie gelesen.", - "Property_0_is_incompatible_with_index_signature_2530": "Die Eigenschaft \"{0}\" ist nicht mit der Indexsignatur kompatibel.", - "Property_0_is_missing_in_type_1_2324": "Die Eigenschaft \"{0}\" fehlt im Typ \"{1}\".", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "Die Eigenschaft \"{0}\" fehlt im Typ \"{1}\", aber ist im Typ \"{2}\" erforderlich.", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "Auf die Eigenschaft \"{0}\" kann außerhalb der Klasse \"{1}\" nicht zugegriffen werden, weil sie einen privaten Bezeichner aufweist.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "Die Eigenschaft \"{0}\" ist im Typ \"{1}\" optional, im Typ \"{2}\" aber erforderlich.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "Die Eigenschaft \"{0}\" ist privat. Auf sie kann nur innerhalb der Klasse \"{1}\" zugegriffen werden.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "Die Eigenschaft \"{0}\" ist im Typ \"{1}\" privat, im Typ \"{2}\" hingegen nicht.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "Die Eigenschaft \"{0}\" ist geschützt und nur über eine Instanz der Klasse \"{1}\" zugänglich. Dies ist eine Instanz der Klasse \"{2}\".", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "Die Eigenschaft \"{0}\" ist geschützt. Auf sie kann nur innerhalb der Klasse \"{1}\" und ihrer Unterklassen zugegriffen werden.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "Die Eigenschaft \"{0}\" ist geschützt, Typ \"{1}\" ist aber keine von \"{2}\" abgeleitete Klasse.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "Die Eigenschaft \"{0}\" ist im Typ \"{1}\" geschützt, im Typ \"{2}\" aber öffentlich.", - "Property_0_is_used_before_being_assigned_2565": "Die Eigenschaft \"{0}\" wird vor ihrer Zuweisung verwendet.", - "Property_0_is_used_before_its_initialization_2729": "Die Eigenschaft \"{0}\" wird vor ihrer Initialisierung verwendet.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" möglicherweise nicht vorhanden. Meinten Sie \"{2}\"?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Die Eigenschaft \"{0}\" des JSX-Verteilungsattributs kann nicht der Zieleigenschaft zugewiesen werden.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Die Eigenschaft \"{0}\" des exportierten Klassenausdrucks ist unter Umständen nicht privat oder geschützt.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Die Eigenschaft \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Die Eigenschaft \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Die Eigenschaft \"{0}\" von Typ \"{1}\" kann nicht \"{2}\" Indextyp \"{3}\" zugewiesen werden.", - "Property_0_was_also_declared_here_2733": "Die Eigenschaft \"{0}\" wurde hier ebenfalls deklariert.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Die Eigenschaft \"{0}\" überschreibt die Basiseigenschaft in \"{1}\". Wenn dies beabsichtigt ist, fügen Sie einen Initialisierer hinzu. Andernfalls fügen Sie einen declare-Modifizierer hinzu, oder entfernen Sie die redundante Deklaration.", - "Property_assignment_expected_1136": "Die Zuweisung einer Eigenschaft wurde erwartet.", - "Property_destructuring_pattern_expected_1180": "Ein Eigenschaftendestrukturierungsmuster wurde erwartet.", - "Property_or_signature_expected_1131": "Eine Eigenschaft oder Signatur wurde erwartet.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Der Eigenschaftswert kann nur ein Zeichenfolgenliteral, ein numerisches Literal, \"true\", \"false\", \"NULL\", ein Objektliteral oder ein Arrayliteral sein.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Bieten Sie vollständige Unterstützung für Iterablen in \"for-of\", Verteilung und Destrukturierung mit dem Ziel \"ES5\" oder \"ES3\".", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "Die öffentliche Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "Die öffentliche Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "Die öffentliche Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "Die öffentliche statische Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "Die öffentliche statische Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "Die öffentliche statische Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "Die öffentliche statische Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "Die öffentliche statische Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "Die öffentliche statische Eigenschaft \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "Der qualifizierte Name \"{0}\" ist ohne Voranstellung von \"@param {object} {1}\" nicht zulässig.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Löst einen Fehler aus, wenn ein Funktionsparameter nicht gelesen wird.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Fehler für Ausdrücke und Deklarationen mit einem impliziten any-Typ auslösen.", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Fehler für \"this\"-Ausdrücke mit einem impliziten any-Typ auslösen.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Das erneute Exportieren eines Typs erfordert bei Festlegung des Flags \"--isolatedModules\" die Verwendung von \"export type\".", - "Redirect_output_structure_to_the_directory_6006": "Die Ausgabestruktur in das Verzeichnis umleiten.", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Verringern Sie die Anzahl der Projekte, die von TypeScript automatisch geladen werden.", - "Referenced_project_0_may_not_disable_emit_6310": "Beim referenzierten Projekt \"{0}\" darf nicht die Ausgabe deaktiviert werden.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Das referenzierte Projekt \"{0}\" muss für die Einstellung \"composite\" den Wert TRUE aufweisen.", - "Referenced_via_0_from_file_1_1400": "Referenziert über \"{0}\" aus der Datei \"{1}\"", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relative Importpfade erfordern explizite Dateierweiterungen in EcmaScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Erwägen Sie, dem Importpfad eine Erweiterung hinzuzufügen.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relative Importpfade erfordern explizite Dateierweiterungen in EcmaScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Hast du gemeint '{0}'?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "Entfernen Sie eine Liste von Verzeichnissen aus dem Überwachungsvorgang.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Entfernen Sie eine Liste von Dateien aus der Verarbeitung des Überwachungsmodus.", - "Remove_all_unnecessary_override_modifiers_95163": "Alle nicht benötigten override-Modifizierer entfernen", - "Remove_all_unnecessary_uses_of_await_95087": "Alle nicht benötigten Verwendungen von \"await\" entfernen", - "Remove_all_unreachable_code_95051": "Gesamten nicht erreichbaren Code entfernen", - "Remove_all_unused_labels_95054": "Alle nicht verwendeten Bezeichnungen entfernen", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "Entfernen Sie die geschweiften Klammern aus dem Text aller Pfeilfunktionen mit entsprechenden Problemen.", - "Remove_braces_from_arrow_function_95060": "Geschweifte Klammern aus Pfeilfunktion entfernen", - "Remove_braces_from_arrow_function_body_95112": "Geschweifte Klammern aus Pfeilfunktionstext entfernen", - "Remove_import_from_0_90005": "Import aus \"{0}\" entfernen", - "Remove_override_modifier_95161": "override-Modifizierer entfernen", - "Remove_parentheses_95126": "Klammern entfernen", - "Remove_template_tag_90011": "Vorlagentag entfernen", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Entfernen Sie die Obergrenze von 20 MB für die Gesamtgröße des Quellcodes für JavaScript-Dateien auf dem TypeScript-Sprachserver.", - "Remove_type_from_import_declaration_from_0_90055": "„type“ aus Importdeklaration aus „{0}“ entfernen", - "Remove_type_from_import_of_0_from_1_90056": "„type“ aus Import von „{0}“ aus „{1}“ entfernen", - "Remove_type_parameters_90012": "Typparameter entfernen", - "Remove_unnecessary_await_95086": "Unnötige Vorkommen von \"await\" entfernen", - "Remove_unreachable_code_95050": "Nicht erreichbaren Code entfernen", - "Remove_unused_declaration_for_Colon_0_90004": "Nicht verwendete Deklaration für \"{0}\" entfernen", - "Remove_unused_declarations_for_Colon_0_90041": "Nicht verwendete Deklarationen für \"{0}\" entfernen", - "Remove_unused_destructuring_declaration_90039": "Nicht verwendete Destrukturierungsdeklaration entfernen", - "Remove_unused_label_95053": "Nicht verwendete Bezeichnung entfernen", - "Remove_variable_statement_90010": "Variablenanweisung entfernen", - "Rename_param_tag_name_0_to_1_95173": "Tagnamen \"@param\" \"{0}\" in \"{1}\" umbenennen", - "Replace_0_with_Promise_1_90036": "\"{0}\" durch \"Promise<{1}>\" ersetzen", - "Replace_all_unused_infer_with_unknown_90031": "Alle nicht verwendeten Vorkommen von \"infer\" durch \"unknown\" ersetzen", - "Replace_import_with_0_95015": "Ersetzen Sie den Import durch \"{0}\".", - "Replace_infer_0_with_unknown_90030": "\"infer {0}\" durch \"unknown\" ersetzen", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "Fehler melden, wenn nicht alle Codepfade in der Funktion einen Wert zurückgeben.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "Für FallTrough-Fälle in switch-Anweisung Fehler melden.", - "Report_errors_in_js_files_8019": "Fehler in .js-Dateien melden.", - "Report_errors_on_unused_locals_6134": "Fehler für nicht verwendete lokale Variablen melden.", - "Report_errors_on_unused_parameters_6135": "Fehler für nicht verwendete Parameter melden.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Nicht deklarierte Eigenschaften aus Indexsignaturen müssen Elementzugriffe verwenden.", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Erforderliche Typparameter dürfen nicht auf optionale Typparameter folgen.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Die Auflösung für das Modul \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Die Auflösung für die Typreferenzanweisung \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "\"keyof\" darf nur in Eigenschaftennamen mit Zeichenfolgenwert aufgelöst werden (keine Ziffern oder Symbole).", - "Resolving_in_0_mode_with_conditions_1_6402": "Wird im {0}-Modus mit Bedingungen \"{1}\" aufgelöst.", - "Resolving_module_0_from_1_6086": "======== Das Modul \"{0}\" aus \"{1}\" wird aufgelöst. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Der Modulname \"{0}\" relativ zur Basis-URL \"{1}\"–\"{2}\" wird aufgelöst.", - "Resolving_real_path_for_0_result_1_6130": "Der tatsächliche Pfad für \"{0}\" wird aufgelöst, Ergebnis \"{1}\".", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die Datei \"{1}\" enthält. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die Datei \"{1}\" enthält. Das Stammverzeichnis ist \"{2}\". ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die Datei \"{1}\" enthält. Das Stammverzeichnis ist nicht festgelegt. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die nicht festgelegte Datei enthält. Das Stammverzeichnis ist \"{1}\". ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die nicht festgelegte Datei enthält. Das Stammverzeichnis ist nicht festgelegt. ========", - "Resolving_with_primary_search_path_0_6121": "Die Auflösung erfolgt mit dem primären Suchpfad \"{0}\".", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Der rest-parameter \"{0}\" weist implizit einen Typ \"any[]\" auf.", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Der rest-Parameter \"{0}\" weist implizit einen Typ \"any[]\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "Rest_types_may_only_be_created_from_object_types_2700": "Rest-Typen dürfen nur aus object-Typen erstellt werden.", - "Return_type_annotation_circularly_references_itself_2577": "Die Rückgabetypanmerkung verweist zirkulär auf sich selbst.", - "Return_type_must_be_inferred_from_a_function_95149": "Der Rückgabetyp muss aus einer Funktion abgeleitet werden.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "Der Rückgabetyp der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "Der Rückgabetyp der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "Der Rückgabetyp der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "Der Rückgabetyp der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "Der Rückgabetyp der Konstruktorsignatur muss dem Instanztyp der Klasse zugewiesen werden können.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "Der Rückgabetyp der exportierten Funktion besitzt oder verwendet den Namen \"{0}\" aus dem externen Modul \"{1}\", kann aber nicht benannt werden.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "Der Rückgabetyp der exportierten Funktion besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "Der Rückgabetyp der exportierten Funktion besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "Der Rückgabetyp der Indexsignatur aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "Der Rückgabetyp der Indexsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "Der Rückgabetyp der Methode aus der exportierten Schnittstelle besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "Der Rückgabetyp der Methode aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "Der Rückgabetyp des öffentlichen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "Der Rückgabetyp des öffentlichen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "Der Rückgabetyp des öffentlichen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "Der Rückgabetyp der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{0}\" aus dem externen Modul \"{1}\", kann aber nicht benannt werden.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "Der Rückgabetyp der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "Der Rückgabetyp der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{0}\".", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "Der Rückgabetyp des öffentlichen statischen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "Der Rückgabetyp des öffentlichen statischen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "Der Rückgabetyp des öffentlichen statischen Getters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "Der Rückgabetyp der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{0}\" aus dem externen Modul \"{1}\", kann aber nicht benannt werden.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "Der Rückgabetyp der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den Namen \"{0}\" aus dem privaten Modul \"{1}\".", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "Der Rückgabetyp der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{0}\".", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "Die Auflösung des Moduls „{0}“ aus „{1}“ im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde nicht aufgelöst.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "Die Auflösung des Moduls „{0}“ aus „{1}\" im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde erfolgreich in „{3}“ aufgelöst.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "Die Auflösung des Moduls „{0}“ aus „{1}“ im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde erfolgreich in „{3}“ mit der Paket-ID „{4}“ aufgelöst.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "Die Auflösung des Moduls „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde nicht aufgelöst.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "Die Auflösung des Moduls „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde erfolgreich in „{2}“ aufgelöst.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "Die Auflösung des Moduls „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde erfolgreich in „{2}“ mit der Paket-ID „{3}“ aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde nicht aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde erfolgreich in „{3}“ aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ im Cache vom Speicherort „{2}“ wird wiederverwendet, sie wurde erfolgreich in „{3}“ mit der Paket-ID „{4}“ aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde nicht aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde erfolgreich in „{2}“ aufgelöst.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde erfolgreich in „{2}“ mit der Paket-ID „{3}“ aufgelöst.", - "Rewrite_all_as_indexed_access_types_95034": "Alle als indizierte Zugriffstypen neu schreiben", - "Rewrite_as_the_indexed_access_type_0_90026": "Als indizierten Zugriffstyp \"{0}\" neu schreiben", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Das Stammverzeichnis kann nicht ermittelt werden. Die primären Suchpfade werden übersprungen.", - "Root_file_specified_for_compilation_1427": "Für die Kompilierung angegebene Stammdatei", - "STRATEGY_6039": "STRATEGIE", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Speichern Sie die .tsbuildinfo-Dateien, um eine inkrementelle Kompilierung von Projekten zuzulassen.", - "Saw_non_matching_condition_0_6405": "Die nicht übereinstimmende Bedingung \"{0}\" wurde angezeigt.", - "Scoped_package_detected_looking_in_0_6182": "Bereichsbezogenes Paket erkannt. In \"{0}\" wird gesucht", - "Selection_is_not_a_valid_statement_or_statements_95155": "Die Auswahl umfasst keine gültigen Anweisungen.", - "Selection_is_not_a_valid_type_node_95133": "Die Auswahl ist kein gültiger Typknoten.", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Legen Sie die JavaScript-Sprachversion für das ausgegebene JavaScript fest, und schließen Sie kompatible Bibliotheksdeklarationen ein.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "Legen Sie die Sprache des Messagings von TypeScript fest. Dies wirkt sich nicht auf die Ausgabe aus.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "Legen Sie die Option \"module\" in Ihrer Konfigurationsdatei auf \"{0}\" fest.", - "Set_the_newline_character_for_emitting_files_6659": "Legen Sie das Zeilenumbruchzeichen für Ausgabedateien fest.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "Legen Sie die Option \"target\" in Ihrer Konfigurationsdatei auf \"{0}\" fest.", - "Setters_cannot_return_a_value_2408": "Setter können keinen Wert zurückgeben.", - "Show_all_compiler_options_6169": "Alle Compileroptionen anzeigen.", - "Show_diagnostic_information_6149": "Diagnoseinformationen anzeigen.", - "Show_verbose_diagnostic_information_6150": "Ausführliche Diagnoseinformationen anzeigen.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Anzeigen, was erstellt würde (oder gelöscht würde, wenn mit \"--clean\" angegeben)", - "Signature_0_must_be_a_type_predicate_1224": "Die Signatur \"{0}\" muss ein Typprädikat sein.", - "Skip_type_checking_all_d_ts_files_6693": "Überspringen Sie die Typüberprüfung aller .d.ts-Dateien.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Überspringen Sie die Typüberprüfung von .d.ts-Dateien, die in TypeScript enthalten sind.", - "Skip_type_checking_of_declaration_files_6012": "Überspringen Sie die Typüberprüfung von Deklarationsdateien.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Das Erstellen von Projekt \"{0}\" wird übersprungen, weil die Abhängigkeit \"{1}\" einen Fehler aufweist.", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Das Kompilieren von Projekt \"{0}\" wird übersprungen, weil die Abhängigkeit \"{1}\" nicht erstellt wurde.", - "Source_from_referenced_project_0_included_because_1_specified_1414": "Quelle aus referenziertem Projekt \"{0}\", da \"{1}\" angegeben wurde", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Quelle aus referenziertem Projekt \"{0}\", da \"--module\" als \"none\" angegeben wurde", - "Source_has_0_element_s_but_target_allows_only_1_2619": "Die Quelle weist {0} Element(e) auf, aber das Ziel lässt nur {1} zu.", - "Source_has_0_element_s_but_target_requires_1_2618": "Die Quelle weist {0} Element(e) auf, aber das Ziel erfordert {1}.", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "Die Quelle weist keine Übereinstimmung für das erforderliche Element an Position {0} im Ziel auf.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "Die Quelle weist keine Übereinstimmung für das variadic-Element an Position {0} im Ziel auf.", - "Specify_ECMAScript_target_version_6015": "Geben Sie die ECMAScript-Zielversion an.", - "Specify_JSX_code_generation_6080": "Geben Sie die JSX-Codegenerierung an.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "Geben Sie eine Datei an, die alle Ausgaben in einer JavaScript-Datei bündelt. Wenn „declaration“ TRUE ist, wird auch eine Datei festgelegt, die alle „.d.ts“-Ausgaben bündelt.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "Geben Sie eine Liste von Globmustern an, die mit Dateien übereinstimmen, die in die Kompilierung einbezogen werden sollen.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "Geben Sie eine Liste der einzuschließenden Sprachdienst-Plug-Ins an.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "Geben Sie einen Satz gebündelter Bibliotheksdeklarationsdateien an, die die Ziellaufzeitumgebung beschreiben.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "Geben Sie einen Satz von Einträgen an, die Importe an zusätzliche Lookup-Speicherorte neu zuordnen.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "Geben Sie ein Objektarray an, das Pfade für Projekte angibt. Wird in Projekt verweisen verwendet.", - "Specify_an_output_folder_for_all_emitted_files_6678": "Geben Sie einen Ausgabeordner für alle ausgegebenen Dateien an.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "Geben Sie das Ausgabe-/Überprüfungsverhalten für Importe an, die nur für Typen verwendet werden.", - "Specify_file_to_store_incremental_compilation_information_6380": "Datei zum Speichern inkrementeller Kompilierungsinformationen angeben", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "Geben Sie an, wie TypeScript eine Datei aus einem angegebenen Modulspezifizierer sucht.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "Geben Sie an, wie Verzeichnisse auf Systemen überwacht werden, für die eine rekursive Dateiüberwachungsfunktion fehlt.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "Geben Sie an, wie der TypeScript-Überwachungsmodus funktioniert.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "Geben Sie Bibliotheksdateien an, die in die Kompilierung eingeschlossen werden sollen.", - "Specify_module_code_generation_6016": "Geben Sie die Modulcodegenerierung an.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Geben Sie die Modulauflösungsstrategie an: \"node\" (Node.js) oder \"classic\" (TypeScript vor Version 1.6).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Geben Sie den Modulspezifizierer an, der zum Importieren der JSX-Factoryfunktionen verwendet wird, wenn Sie „jsx: react-jsx*“ verwenden.", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Geben Sie mehrere Ordner an, die als „./node_modules/@types“ fungieren.", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Geben Sie einen oder mehrere Pfad- oder Knotenmodulverweise auf Basiskonfigurationsdateien an, von denen Einstellungen geerbt werden.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "Geben Sie Optionen für den automatischen Erwerb von Deklarationsdateien an.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "Geben Sie die Strategie zum Erstellen einer Abrufüberwachung an, wenn eine Erstellung mit Dateisystemereignissen nicht erfolgreich ist: \"FixedInterval\" (Standardwert), \"PriorityInterval\", \"DynamicPriority\", \"FixedChunkSize\".", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "Geben Sie die Strategie für die Verzeichnisüberwachung auf Plattformen an, die eine rekursive Überwachung nativ nicht unterstützen: \"UseFsEvents\" (Standardwert), \"FixedPollingInterval\", \"DynamicPriorityPolling\", \"FixedChunkSizePolling\".", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "Geben Sie die Strategie für die Dateiüberwachung an: \"FixedPollingInterval\" (Standardwert), \"PriorityPollingInterval\", \"DynamicPriorityPolling\", \"FixedChunkSizePolling\", \"UseFsEvents\", \"UseFsEventsOnParentDirectory\".", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "Geben Sie den JSX-Fragmentverweis an, der für Fragmente verwendet wird, wenn die React JSX-Ausgabe als Ziel verwendet wird, z. B. \"React.Fragment\" oder \"Fragment\".", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "Geben Sie die JSX-Factoryfunktion an, die für eine react-JSX-Ausgabe verwendet werden soll, z. B. \"React.createElement\" oder \"h\".", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "Geben Sie die JSX-Factoryfunktion an, die verwendet wird, wenn Sie die JSX-Ausgabe „react“ als Ziel verwenden, z. B. „React.createElement“ oder „h“.", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Geben Sie die jsxFragmentFactory-Funktion an, die bei Verwendung des JSX-Ausgabeziels \"react\" mit der Compileroption \"jsxFactory\" verwendet werden soll, z. B. \"Fragment\".", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Geben Sie das Basisverzeichnis zum Auflösen nicht relativer Modulnamen an.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Geben Sie die Zeilenendesequenz an, die beim Ausgeben von Dateien verwendet werden soll: \"CRLF\" (DOS) oder \"LF\" (Unix).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Geben Sie den Speicherort an, an dem der Debugger TypeScript-Dateien ermitteln soll, anstatt Quellspeicherorte zu verwenden.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Geben Sie den Speicherort an, an dem der Debugger Zuordnungsdateien ermitteln soll, anstatt generierte Speicherorte zu verwenden.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Geben Sie die maximale Ordnertiefe an, die zum Überprüfen von JavaScript-Dateien aus „node_modules“ verwendet wird. Gilt nur für „allowJs“.", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Geben Sie den Modulspezifizierer an, aus dem die Factoryfunktionen \"jsx\" und \"jsxs\" importiert werden sollen, z. B. \"react\".", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Geben Sie das Objekt an, das für „createElement“ aufgerufen wird. Dies gilt nur, wenn die JSX-Ausgabe „react“ als Ziel verwendet wird.", - "Specify_the_output_directory_for_generated_declaration_files_6613": "Geben Sie das Ausgabeverzeichnis für generierte Deklarationsdateien an.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Geben Sie den Pfad zu inkrementelle Kompilierungsdateien .tsbuildinfo an.", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Geben Sie das Stammverzeichnis der Eingabedateien an. Verwenden Sie diese Angabe, um die Ausgabeverzeichnisstruktur mithilfe von \"-outDir\" zu steuern.", - "Specify_the_root_folder_within_your_source_files_6690": "Geben Sie den Stammordner in den Quelldateien an.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Geben Sie den Stammpfad für Debugger an, um den Verweisquellcode zu suchen.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "Geben Sie Typpaketnamen an, die eingeschlossen werden sollen, ohne in einer Quelldatei referenziert zu werden.", - "Specify_what_JSX_code_is_generated_6646": "Geben Sie an, welcher JSX-Code generiert wird.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "Geben Sie an, welchen Ansatz der Watcher verwenden soll, wenn auf dem System keine nativen Dateiüberwachungen mehr vorhanden sind.", - "Specify_what_module_code_is_generated_6657": "Geben Sie an, welcher Modulcode generiert wird.", - "Split_all_invalid_type_only_imports_1367": "Alle ungültigen reinen Typenimporte teilen", - "Split_into_two_separate_import_declarations_1366": "In zwei separate Importdeklarationen teilen", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "Der Verteilungsoperator in new-Ausdrücken ist nur verfügbar, wenn das Ziel ECMAScript 5 oder höher ist.", - "Spread_types_may_only_be_created_from_object_types_2698": "Spread-Typen dürfen nur aus object-Typen erstellt werden.", - "Starting_compilation_in_watch_mode_6031": "Kompilierung im Überwachungsmodus wird gestartet...", - "Statement_expected_1129": "Eine Anweisung wurde erwartet.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "Anweisungen sind in Umgebungskontexten unzulässig.", - "Static_members_cannot_reference_class_type_parameters_2302": "Statische Member dürfen nicht auf Klassentypparameter verweisen.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Die statische Eigenschaft \"{0}\" steht in Konflikt mit der integrierten Eigenschaft \"Function.{0}\" der Konstruktorfunktion \"{1}\".", - "String_literal_expected_1141": "Ein Zeichenfolgenliteral wurde erwartet.", - "String_literal_with_double_quotes_expected_1327": "Ein Zeichenfolgenliteral mit doppelten Anführungszeichen wird erwartet.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Fehler und Nachrichten farbig und mit Kontext formatieren (experimentell).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Nachfolgende Eigenschaftendeklarationen müssen den gleichen Typ aufweisen. Die Eigenschaft \"{0}\" muss den Typ \"{1}\" aufweisen, ist hier aber vom Typ \"{2}\".", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Nachfolgende Variablendeklarationen müssen den gleichen Typ aufweisen. Die Variable \"{0}\" muss den Typ \"{1}\" aufweisen, ist hier aber vom Typ \"{2}\".", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Die Ersetzung \"{0}\" für das Muster \"{1}\" weist einen falschen Typ auf. Erwartet wurde \"string\", abgerufen wurde \"{2}\".", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "Die Ersetzung \"{0}\" im Muster \"{1}\" darf höchstens ein Zeichen \"*\" aufweisen.", - "Substitutions_for_pattern_0_should_be_an_array_5063": "Die Ersetzung für das Muster \"{0}\" muss ein Array sein.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "Ersetzungen für das Muster \"{0}\" dürfen kein leeres Array sein.", - "Successfully_created_a_tsconfig_json_file_6071": "Eine Datei \"tsconfig.json\" wurde erfolgreich erstellt.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "Aufrufe von \"super\" sind außerhalb von Konstruktoren oder in geschachtelten Funktionen innerhalb von Konstruktoren unzulässig.", - "Suppress_excess_property_checks_for_object_literals_6072": "Übermäßige Eigenschaftenüberprüfungen für Objektliterale unterdrücken.", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "noImplicitAny-Fehler für die Indizierung von Objekten unterdrücken, denen Indexsignaturen fehlen.", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "Unterdrücken Sie „noImplicitAny“-Fehler beim Indizieren von Objekten ohne Indexsignaturen.", - "Switch_each_misused_0_to_1_95138": "Jedes falsch verwendete {0}-Element in \"{1}\" ändern", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "Rufen Sie Rückrufe synchron auf, und aktualisieren Sie den Status von Verzeichnisüberwachungen auf Plattformen, die rekursive Überwachung nicht nativ unterstützen.", - "Syntax_Colon_0_6023": "Syntax: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "Das Tag \"{0}\" erwartet mindestens {1} Argumente, von der JSX-Factory \"{2}\" werden aber höchstens {3} bereitgestellt.", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Mit Tags versehene Vorlagenausdrücke sind in einer optionalen Kette nicht zulässig.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Das Ziel erlaubt nur {0} Element(e), aber die Quelle kann mehr aufweisen.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Das Ziel erfordert {0} Element(e), aber die Quelle kann weniger aufweisen.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Der Modifizierer \"{0}\" kann nur in TypeScript-Dateien verwendet werden.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Der Operator \"{0}\" darf nicht den Typ \"symbol\" angewendet werden.", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Der Operator \"{0}\" ist für boolesche Typen unzulässig. Verwenden Sie stattdessen ggf. \"{1}\".", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Die Eigenschaft \"{0}\" eines asynchronen Iterators muss eine Methode sein.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "Die Eigenschaft \"{0}\" eines Iterators muss eine Methode sein.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Der Typ \"Object\" kann nur wenigen anderen Typen zugewiesen werden. Wollten Sie stattdessen den Typ \"any\" verwenden?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Auf das Objekt \"arguments\" darf in einer Pfeilfunktion in ES3 und ES5 nicht verwiesen werden. Verwenden Sie ggf. einen Standardfunktionsausdruck.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Auf das Objekt \"arguments\" darf in einer asynchronen Funktion oder Methode in ES3 und ES5 nicht verwiesen werden. Verwenden Sie ggf. eine Standardfunktion oder -methode.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Der Text einer \"if\"-Anweisung kann keine leere Anweisung sein.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Der Aufruf wäre für diese Implementierung erfolgreich, aber die Implementierungssignaturen von Überladungen sind nicht extern sichtbar.", - "The_character_set_of_the_input_files_6163": "Der Zeichensatz der Eingabedateien.", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "Die enthaltende Pfeilfunktion erfasst den globalen Wert von \"this\".", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "Der beinhaltende Funktions- oder Modulkörper ist zu groß für eine Ablaufsteuerungsanalyse.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "Die aktuelle Datei ist ein CommonJS-Modul und kann „await“ nicht auf der obersten Ebene verwenden.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "Die aktuelle Datei ist ein CommonJS-Modul, dessen Importe \"require\"-Aufrufe generieren. Die Datei, auf die verwiesen wird, ist jedoch ein ECMAScript-Modul und kann nicht mit \"require\" importiert werden. Erwägen Sie stattdessen, einen dynamischen 'import(\"{0}\")'-Aufruf zu schreiben.", - "The_current_host_does_not_support_the_0_option_5001": "Der aktuelle Host unterstützt die Option \"{0}\" nicht.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "Die Deklaration von \"{0}\", die Sie wahrscheinlich verwenden wollten, ist hier definiert.", - "The_declaration_was_marked_as_deprecated_here_2798": "Die Deklaration wurde hier als veraltet markiert.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "Der erwartete Typ stammt aus der Eigenschaft \"{0}\", die hier für den Typ \"{1}\" deklariert wird.", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "Der erwartete Typ stammt aus dem Rückgabetyp dieser Signatur.", - "The_expected_type_comes_from_this_index_signature_6501": "Der erwartete Typ stammt aus dieser Indexsignatur.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "Der Ausdruck einer Exportzuweisung muss ein Bezeichner oder ein qualifizierter Name in einem Umgebungskontext sein.", - "The_file_is_in_the_program_because_Colon_1430": "Die Datei befindet sich aus folgenden Gründen im Programm:", - "The_files_list_in_config_file_0_is_empty_18002": "Die Liste \"files\" in der Konfigurationsdatei \"{0}\" ist leer.", - "The_first_export_default_is_here_2752": "Der erste Exportstandard befindet sich hier.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Der erste Parameter der \"then\"-Methode einer Zusage muss ein Rückruf sein.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Der globale Typ \"JSX.{0}\" darf nur eine Eigenschaft aufweisen.", - "The_implementation_signature_is_declared_here_2750": "Die Implementierungssignatur wird hier deklariert.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Die Meta-Eigenschaft „import.meta“ ist in Dateien, die in der CommonJS-Ausgabe erstellt werden, nicht zulässig.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Die Meta-Eigenschaft „import.meta“ ist nur zulässig, wenn die Option „--module“ „es2020“, „es2022“, „esnext“, „system“, „node16“ oder „nodenext“ ist.", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Der abgeleitete Typ von \"{0}\" kann nicht ohne einen Verweis auf \"{1}\" benannt werden. Eine Portierung ist wahrscheinlich nicht möglich. Eine Typanmerkung ist erforderlich.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Der abgeleitete Typ von \"{0}\" verweist auf einen Typ mit zyklischer Struktur, die nicht trivial serialisiert werden kann. Es ist eine Typanmerkung erforderlich.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Der abgeleitete Typ von \"{0}\" verweist auf einen Typ \"{1}\", auf den nicht zugegriffen werden kann. Eine Typanmerkung ist erforderlich.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Der abgeleitete Typ dieses Knotens überschreitet die maximale Länge, die vom Compiler serialisiert wird. Eine explizite Typanmerkung ist erforderlich.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Die Schnittmenge \"{0}\" wurde auf \"niemals\" reduziert, weil die Eigenschaft \"{1}\" in mehreren Bestandteilen vorhanden und in einigen davon privat ist.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Die Schnittmenge \"{0}\" wurde auf \"niemals\" reduziert, weil die Eigenschaft \"{1}\" in einigen Bestandteilen widersprüchliche Typen aufweist.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Das Schlüsselwort \"intrinsic\" darf nur zum Deklarieren von vom Compiler bereitgestellten intrinsischen Typen verwendet werden.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "Um JSX-Fragmente mit der Compileroption \"jsxFactory\" zu verwenden, muss die Compileroption \"jsxFragmentFactory\" angegeben werden.", - "The_last_overload_gave_the_following_error_2770": "Die letzte Überladung hat den folgenden Fehler verursacht.", - "The_last_overload_is_declared_here_2771": "Die letzte Überladung wird hier deklariert.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Die linke Seite einer for...in-Anweisung darf kein Destrukturierungsmuster sein.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Die linke Seite einer for...in-Anweisung darf keine Typanmerkung verwenden.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Die linke Seite einer for...in-Anweisung darf kein optionaler Eigenschaftenzugriff sein.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "Die linke Seite einer for...in-Anweisung muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "Die linke Seite einer for...in-Anweisung muss vom Typ \"string\" oder \"any\" sein.", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "Die linke Seite einer for...of-Anweisung darf keine Typanmerkung verwenden.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "Die linke Seite einer for...of-Anweisung darf kein optionaler Eigenschaftenzugriff sein.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "Die linke Seite einer „for...of“-Anweisung darf nicht „asynchron“ lauten.", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "Die linke Seite einer for...of-Anweisung muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Die linke Seite einer arithmetischen Operation muss den Typ \"any\", \"number\" oder \"bigint\" aufweisen oder ein Enumerationstyp sein.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Die linke Seite eines Zuweisungsausdrucks darf kein optionaler Eigenschaftenzugriff sein.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Die linke Seite eines Zuweisungsausdrucks muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Die linke Seite eines instanceof-Ausdrucks muss den Typ \"any\" aufweisen oder ein Objekttyp bzw. ein Typparameter sein.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Das beim Anzeigen von Meldungen für den Benutzer verwendete Gebietsschema (z. B. \"de-de\").", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Die maximale Abhängigkeitstiefe, die unter \"node_modules\" durchsucht und für die JavaScript-Dateien geladen werden sollen.", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "Der Operand eines delete-Operators darf kein privater Bezeichner sein.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "Der Operand eines delete-Operators darf keine schreibgeschützte Eigenschaft sein.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "Der Operand eines delete-Operators muss ein Eigenschaftenverweis sein.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "Der Operand eines delete-Operators muss optional sein.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "Der Operand eines Inkrement- oder Dekrementoperators darf kein optionaler Eigenschaftenzugriff sein.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "Der Operand eines Inkrement- oder Dekrementoperators muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "Der Parser hat ein ein entsprechendes Element \"{1}\" zu dem hier vorhandenen Token \"{0}\" erwartet.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Der Projektstamm ist mehrdeutig, wird aber benötigt, um den Exportzuordnungseintrag „{0}“ in der Datei „{1}“ aufzulösen. Geben Sie die Compiler-Option „rootDir“ an, um die Mehrdeutigkeit aufzuheben.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Der Projektstamm ist mehrdeutig, wird aber benötigt, um den Importzuordnungseintrag „{0}“ in der Datei „{1}“ aufzulösen. Geben Sie die Compiler-Option „rootDir“ an, um die Mehrdeutigkeit aufzuheben.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Auf die Eigenschaft \"{0}\" kann für den Typ \"{1}\" nicht innerhalb dieser Klasse zugegriffen werden, weil sie von einem anderen privaten Bezeichner mit der gleichen Schreibweise verborgen wird.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Der Rückgabetyp einer get-Zugriffsmethode muss dem zugehörigen set-Accessortyp zugewiesen werden können.", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Der Rückgabetyp einer Parameter-Decorator-Funktion muss \"void\" oder \"any\" sein.", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Der Rückgabetyp einer Eigenschaften-Decorator-Funktion muss \"void\" oder \"any\" sein.", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Der Rückgabetyp einer asynchronen Funktion muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Der Rückgabetyp einer asynchronen Funktion oder Methode muss der globale Typ \"Promise\" sein. Wollten Sie eigentlich \"Promise<{0}>\" verwenden?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Die rechte Seite einer for...in-Anweisung muss den Typ \"any\" aufweisen oder ein Objekttyp bzw. ein Typparameter sein. Sie weist hier jedoch den Typ \"{0}\" auf.", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Die rechte Seite einer arithmetischen Operation muss den Typ \"any\", \"number\" oder \"bigint\" aufweisen oder ein Enumerationstyp sein.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Die rechte Seite eines instanceof-Ausdrucks muss den Typ \"any\" oder einen Typ aufweisen, der dem Schnittstellentyp \"Function\" zugewiesen werden kann.", - "The_root_value_of_a_0_file_must_be_an_object_5092": "Der Stammwert einer {0}-Datei muss ein Objekt sein.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "Die verbergende Deklaration von \"{0}\" ist hier definiert.", - "The_signature_0_of_1_is_deprecated_6387": "Die Signatur \"{0}\" von \"{1}\" ist veraltet.", - "The_specified_path_does_not_exist_Colon_0_5058": "Der angegebene Pfad \"{0}\" ist nicht vorhanden.", - "The_tag_was_first_specified_here_8034": "Das Tag wurde zuerst hier angegeben.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "Das Ziel einer rest-Zuweisung für ein Objekt darf kein optionaler Eigenschaftenzugriff sein.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "Das Ziel einer REST-Zuweisung für ein Objekt muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "Der \"this\"-Kontext vom Typ \"{0}\" kann \"this\" vom Typ \"{1}\" der Methode nicht zugewiesen werden.", - "The_this_types_of_each_signature_are_incompatible_2685": "Die \"this\"-Typen jeder Signatur sind nicht kompatibel.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "Der Typ \"{0}\" ist als \"readonly\" festgelegt und kann nicht dem änderbaren Typ \"{1}\" zugewiesen werden.", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Der \"Type\"-Modifizierer kann nicht für einen benannten Export verwendet werden, wenn \"Export-Typ\" auf seiner Export-Anweisung verwendet wird.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Der \"Type\"-Modifizierer kann nicht für einen benannten Import verwendet werden, wenn der \"Import-Typ\" auf seiner Import-Anweisung verwendet wird.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Der Typ einer Funktionsdeklaration muss mit der Signatur der Funktion übereinstimmen.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Der Typ dieses Ausdrucks kann nicht ohne eine „resolution-mode“-Assertion benannt werden, was eine instabile Funktion ist. Verwenden Sie nächtliches TypeScript, um diesen Fehler zu unterdrücken. Versuchen Sie, mit „npm install -D typescript@next“ zu aktualisieren.", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Der Typ dieses Knotens kann nicht serialisiert werden, da seine Eigenschaft \"{0}\" nicht serialisiert werden kann.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Der von der {0}()-Methode eines Async-Iterators zurückgegebene Typ muss eine Zusage für einen Typ mit einer value-Eigenschaft sein.", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Der von der {0}()-Methode eines Iterators zurückgegebene Typ muss eine value-Eigenschaft aufweisen.", - "The_types_of_0_are_incompatible_between_these_types_2200": "Die Typen von \"{0}\" sind zwischen diesen Typen nicht kompatibel.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "Die von \"{0}\" zurückgegebenen Typen sind zwischen diesen Typen nicht kompatibel.", - "The_value_0_cannot_be_used_here_18050": "Der Wert \"{0}\" kann hier nicht verwendet werden.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Die Variablendeklaration einer for...in-Anweisung darf keinen Initialisierer aufweisen.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Die Variablendeklaration einer for...of-Anweisung darf keinen Initialisierer aufweisen.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Die with-Anweisung wird nicht unterstützt. Alle Symbole in einem with-Block weisen den Typ \"any\" auf.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Die Eigenschaft \"{0}\" für dieses JSX-Tag erwartet ein einzelnes untergeordnetes Element vom Typ \"{1}\", aber es wurden mehrere untergeordnete Elemente angegeben.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Die Eigenschaft \"{0}\" für dieses JSX-Tag erwartet den Typ \"{1}\", der mehrere untergeordnete Elemente erfordert, aber es wurde nur ein untergeordnetes Elemente angegeben.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Dieser Vergleich scheint unbeabsichtigt zu sein, da die Typen \"{0}\" und \"{1}\" keine Überlappung aufweisen.", - "This_condition_will_always_return_0_2845": "Diese Bedingung gibt immer „{0}“ zurück.", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Diese Bedingung gibt immer „{0}“ zurück, da JavaScript Objekte nach Verweis und nicht nach Wert vergleicht.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Diese Bedingung gibt immer TRUE zurück, weil diese '{0}' immer definiert ist.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Diese Bedingung gibt immer TRUE zurück, weil diese Funktion immer definiert ist. Möchten Sie sie stattdessen aufrufen?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Diese Konstruktorfunktion kann in eine Klassendeklaration konvertiert werden.", - "This_expression_is_not_callable_2349": "Dieser Ausdruck kann nicht aufgerufen werden.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Dieser Ausdruck kann nicht aufgerufen werden, weil es sich um eine get-Zugriffsmethode handelt. Möchten Sie den Wert ohne \"()\" verwenden?", - "This_expression_is_not_constructable_2351": "Dieser Ausdruck kann nicht erstellt werden.", - "This_file_already_has_a_default_export_95130": "Diese Datei weist bereits einen Standardexport auf.", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Dieser Import wird nie als Wert verwendet und muss \"import type\" verwenden, weil \"importsNotUsedAsValues\" auf \"error\" festgelegt ist.", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Dies ist die erweiterte Deklaration. Die erweiternde Deklaration sollte in dieselbe Datei verschoben werden.", - "This_may_be_converted_to_an_async_function_80006": "Es kann eine Konvertierung in ein asynchrone Funktion durchgeführt werden.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Dieser Member kann keinen JSDoc-Kommentar mit einem \"@override\"-Tag haben, da er nicht in der Basisklasse \"{0}\" deklariert ist.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Dieses Mitglied kann keinen JSDoc-Kommentar mit einem Override-Tag haben, da er nicht in der Basisklasse \"{0}\" deklariert ist. Meinten Sie \"{1}\"?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Dieses Mitglied kann keinen JSDoc-Kommentar mit einem Tag \"@override\" haben, da dessen enthaltende Klasse \"{0}\" keine andere Klasse erweitert.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Dieser Member kann keinen override-Modifizierer aufweisen, weil er nicht in der Basisklasse \"{0}\" deklariert ist.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Dieser Member kann keinen override-Modifizierer aufweisen, weil er nicht in der Basisklasse \"{0}\" deklariert ist. Meinten Sie \"{1}\"?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Dieser Member kann keinen override-Modifizierer aufweisen, weil die Klasse \"{0}\", die diesen Member enthält, keine andere Klasse erweitert.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Dieses Mitglied muss über einen JSDoc-Kommentar mit dem Tag \"@override\" verfügen, da er einen Member in der Basisklasse \"{0}\" überschreibt.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Dieser Member muss einen override-Modifizierer aufweisen, weil er einen Member in der Basisklasse \"{0}\" überschreibt.", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Dieser Member muss einen override-Modifizierer aufweisen, weil er eine abstrakte Methode überschreibt, die in der Basisklasse \"{0}\" deklariert ist.", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Auf dieses Modul kann nur mit ECMAScript-Importen/-Exporten verwiesen werden, indem das Flag \"{0}\" aktiviert und auf den Standardexport verwiesen wird.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Dieses Modul wird mit „export =“ deklariert und kann nur bei Verwendung des Kennzeichnens „{0}“ mit einem Standardimport verwendet werden.", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Diese Überladungssignatur ist nicht mit der zugehörigen Implementierungssignatur kompatibel.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Dieser Parameter ist mit der Direktive \"use strict\" nicht zugelassen.", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Diese Parametereigenschaft muss über einen JSDoc-Kommentar mit einem \"@override\"-Tag verfügen, da sie ein Mitglied in der Basisklasse \"{0}\" überschreibt.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Diese Parametereigenschaft muss einen „override“-Modifizierer aufweisen, weil er einen Member in der Basisklasse \"{0}\" überschreibt.", - "This_spread_always_overwrites_this_property_2785": "Diese Eigenschaft wird immer durch diesen Spread-Operator überschrieben.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Diese Syntax ist in Dateien mit der Erweiterung .mts oder .cts reserviert. Fügen Sie ein nachfolgendes Komma oder eine explizite Einschränkung hinzu.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Diese Syntax ist in Dateien mit der Erweiterung \".mts\" oder \".cts\" reserviert. Verwenden Sie stattdessen einen „as“-Ausdruck.", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Diese Syntax erfordert ein importiertes Hilfsprogramm, aber das Modul \"{0}\" wurde nicht gefunden.", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Diese Syntax erfordert ein importiertes Hilfsprogramm namens \"{1}\", das in \"{0}\" nicht vorhanden ist. Erwägen Sie ein Upgrade Ihrer Version von \"{0}\".", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Diese Syntax erfordert ein importiertes Hilfsprogramm mit dem Namen \"{1}\" mit {2} Parametern, die nicht mit der in \"{0}\" kompatibel ist. Erwägen Sie ein Upgrade Ihrer Version von \"{0}\".", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "Für diesen Typparameter ist möglicherweise die Einschränkung \"extends {0}\" erforderlich.", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Diese Verwendung von „import“ ist ungültig. „import()“-Aufrufe können geschrieben werden, müssen jedoch Klammern aufweisen und dürfen keine Typargumente aufweisen.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, fügen Sie das Feld \"type\": \"module\" zu \"{0}\" hinzu.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, ändern Sie die Dateierweiterung in \"{0}\", oder fügen Sie das Feld ''type': 'module'' zu \"{1}\" hinzu.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, ändern Sie ihre Dateierweiterung in '{0}', oder erstellen Sie eine lokale package.json-Datei mit `{ \"type\": \"module\" }`.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, erstellen Sie eine lokale package.json-Datei mit `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "'await'-Ausdrücke der obersten Ebene sind nur zulässig, wenn die 'module'-Option auf 'es2022', 'esnext', 'system', 'node16' oder 'nodenext' und die 'target'-Option auf ' es2017' oder höher.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarationen der obersten Ebene in .d.ts-Dateien müssen entweder mit einem declare- oder einem export-Modifizierer beginnen.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "'for await'-Schleifen der obersten Ebene sind nur erlaubt, wenn die 'module'-Option auf 'es2022', 'esnext', 'system', 'node16' oder 'nodenext' gesetzt ist und die 'target'-Option auf gesetzt ist 'es2017' oder höher.", - "Trailing_comma_not_allowed_1009": "Ein nachgestelltes Komma ist unzulässig.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Jede Datei als separates Modul transpilieren (ähnlich wie bei \"ts.transpileModule\").", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Versuchen Sie es mit \"npm i --save-dev @types/{1}\", sofern vorhanden, oder fügen Sie eine neue Deklarationsdatei (.d.ts) hinzu, die \"declare module '{0}';\" enthält.", - "Trying_other_entries_in_rootDirs_6110": "Andere Einträge in \"rootDirs\" werden versucht.", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Die Ersetzung \"{0}\" wird versucht. Speicherort des Kandidatenmoduls: \"{1}\".", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Von den Tupelelementen müssen entweder alle oder keines einen Namen aufweisen.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Der Tupeltyp \"{0}\" der Länge {1} weist am Index \"{2}\" kein Element auf.", - "Tuple_type_arguments_circularly_reference_themselves_4110": "Tupeltypargumente verweisen zirkulär auf sich selbst.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Der Typ \"{0}\" kann nur durchlaufen werden, wenn das Flag \"--downlevelIteration\" verwendet wird oder \"--target\" den Wert \"es2015\" oder höher aufweist.", - "Type_0_cannot_be_used_as_an_index_type_2538": "Der Typ \"{0}\" kann nicht als Indextyp verwendet werden.", - "Type_0_cannot_be_used_to_index_type_1_2536": "Der Typ \"{0}\" kann nicht zum Indizieren von Typ \"{1}\" verwendet werden.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "Der Typ \"{0}\" erfüllt die Einschränkung \"{1}\" nicht.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "Der Typ \"{0}\" erfüllt den erwarteten Typ \"{1}\" nicht.", - "Type_0_has_no_call_signatures_2757": "Der Typ \"{0}\" weist keine Aufrufsignaturen auf.", - "Type_0_has_no_construct_signatures_2761": "Der Typ \"{0}\" weist keine Konstruktsignaturen auf.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "Der Typ \"{0}\" weist keine übereinstimmende Indexsignatur für den Typ \"{1}\" auf.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "Der Typ \"{0}\" verfügt über keine gemeinsamen Eigenschaften mit Typ \"{1}\".", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Der Typ „{0}“ weist keine Signaturen auf, für die die Liste „Typargument“ gilt.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Im Typ \"{0}\" fehlen die folgenden Eigenschaften von Typ \"{1}\": \"{2}\".", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Im Typ \"{0}\" fehlen die folgenden Eigenschaften von Typ \"{1}\": \"{2}\" und {3} weitere.", - "Type_0_is_not_a_constructor_function_type_2507": "Der Typ \"{0}\" ist kein Konstruktorfunktionstyp.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Der Typ \"{0}\" ist in ES5/ES3 kein gültiger Rückgabetyp einer asynchronen Funktion, weil er nicht auf einen Promise-kompatiblen Konstruktorwert verweist.", - "Type_0_is_not_an_array_type_2461": "Der Typ \"{0}\" ist kein Arraytyp.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "Der Typ \"{0}\" ist kein Array- oder Zeichenfolgentyp.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ \"{0}\" ist kein Array-Typ oder Zeichenfolgentyp oder weist keine \"[Symbol.iterator]()\"-Methode auf, die einen Iterator zurückgibt.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "Typ \"{0}\" ist kein Array-Typ oder weist keine \"[Symbol.iterator]()\"-Methode auf, die einen Iterator zurückgibt.", - "Type_0_is_not_assignable_to_type_1_2322": "Der Typ \"{0}\" kann dem Typ \"{1}\" nicht zugewiesen werden.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Typ \"{0}\" kann dem Typ \"{1}\" nicht zugewiesen werden. Meinten Sie \"{2}\"?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Der Typ \"{0}\" kann dem Typ \"{1}\" nicht zugewiesen werden. Es sind zwei verschiedene Typen mit diesem Namen vorhanden, diese sind jedoch nicht verwandt.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Der Typ „{0}“ kann dem Typ „{1}“ nicht zugewiesen werden, wie in der Abweichungsanmerkung impliziert.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Der Typ „{0}“ kann dem Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zu den Typen der Zieleigenschaften.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Der Typ „{0}“ kann dem Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zum Typ des Ziels.", - "Type_0_is_not_comparable_to_type_1_2678": "Der Typ \"{0}\" kann nicht mit dem Typ \"{1}\" verglichen werden.", - "Type_0_is_not_generic_2315": "Der Typ \"{0}\" ist nicht generisch.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Typ „{0}“ kann einen primitiven Wert darstellen, der als rechter Operand des „In“-Operators nicht zulässig ist.", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Der Typ \"{0}\" muss eine Methode \"[Symbol.asyncIterator]()\" aufweisen, die einen async-Iterator zurückgibt.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Der Typ \"{0}\" muss eine Methode \"[Symbol.iterator]()\" aufweisen, die einen Iterator zurückgibt.", - "Type_0_provides_no_match_for_the_signature_1_2658": "Der Typ \"{0}\" enthält keine Entsprechung für die Signatur \"{1}\".", - "Type_0_recursively_references_itself_as_a_base_type_2310": "Der Typ \"{0}\" verweist rekursiv auf sich selbst als ein Basistyp.", - "Type_Checking_6248": "Typprüfung", - "Type_alias_0_circularly_references_itself_2456": "Der Typalias \"{0}\" verweist zirkulär auf sich selbst.", - "Type_alias_must_be_given_a_name_1439": "Typalias muss einen Namen erhalten.", - "Type_alias_name_cannot_be_0_2457": "Der Typaliasname darf nicht \"{0}\" sein.", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "Typaliase können nur in TypeScript-Dateien verwendet werden.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "Die Typanmerkung darf nicht für eine Konstruktordeklaration verwendet werden.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "Typanmerkungen können nur in TypeScript-Dateien verwendet werden.", - "Type_argument_expected_1140": "Ein Typargument wurde erwartet.", - "Type_argument_list_cannot_be_empty_1099": "Die Typargumentliste darf nicht leer sein.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Typargumente können nur in TypeScript-Dateien verwendet werden.", - "Type_arguments_cannot_be_used_here_1342": "Typargumente können an dieser Stelle nicht verwendet werden.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "Typargumente für \"{0}\" verweisen zirkulär auf sich selbst.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Typassertionsausdrücke können nur in TypeScript-Dateien verwendet werden.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Der Typ an Position {0} in der Quelle ist nicht mit dem Typ an Position {1} im Ziel kompatibel.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Der Typ an den Positionen {0} bis {1} in der Quelle ist nicht mit dem Typ an Position {2} im Ziel kompatibel.", - "Type_declaration_files_to_be_included_in_compilation_6124": "Typdeklarationsdateien, die in die Kompilierung eingeschlossen werden sollen.", - "Type_expected_1110": "Es wurde ein Typ erwartet.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Typimportassertionen sollten über genau einen Schlüssel verfügen – „resolution-mode“ – mit dem Wert „import“ oder „require“.", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Die Typinstanziierung ist übermäßig tief und möglicherweise unendlich.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Auf den Typ wird direkt oder indirekt im Erfüllungsrückruf der eigenen \"then\"-Methode verwiesen.", - "Type_library_referenced_via_0_from_file_1_1402": "Typbibliothek, die über \"{0}\" aus der Datei \"{1}\" referenziert wird", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "Typbibliothek, die über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\" referenziert wird", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "Der Typ des \"await\"-Operanden muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "Der Typ des Werts der berechneten Eigenschaft lautet \"{0}\" und kann dem Typ \"{1}\" nicht zugewiesen werden.", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "Der Typ der Instanzmembervariablen „{0}“ darf nicht auf den im Konstruktor deklarierten Bezeichner „{1}“ verweisen.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Der Typ iterierter Elemente eines \"yield*\"-Operanden muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Der Typ der Eigenschaft \"{0}\" verweist im zugeordneten Typ \"{1}\" auf sich selbst.", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Der Typ eines \"yield\"-Operanden in einem asynchronen Generator muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Der Typ stammt aus diesem Import. Ein Import im Namespacestil kann nicht aufgerufen oder erstellt werden und verursacht zur Laufzeit einen Fehler. Erwägen Sie hier stattdessen die Verwendung eines Standardimports oder die den Import über \"require\".", - "Type_parameter_0_has_a_circular_constraint_2313": "Der Typparameter \"{0}\" weist eine zirkuläre Einschränkung auf.", - "Type_parameter_0_has_a_circular_default_2716": "Der Typparameter \"{0}\" besitzt einen zirkulären Standardwert.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "Der Typparameter \"{0}\" der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "Der Typparameter \"{0}\" der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "Der Typparameter \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "Der Typparameter \"{0}\" der exportierten Funktion besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "Der Typparameter \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "Der Typparameter \"{0}\" des exportierten zugeordneten Objekttyps verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "Der Typparameter \"{0}\" des exportierten Typalias enthält oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "Der Typparameter \"{0}\" der Methode aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "Der Typparameter \"{0}\" der öffentlichen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "Der Typparameter \"{0}\" der öffentlichen statischen Methode aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", - "Type_parameter_declaration_expected_1139": "Eine Typparameterdeklaration wurde erwartet.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "Typparameterdeklarationen können nur in TypeScript-Dateien verwendet werden.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "Standardwerte für Typparameter können nur auf zuvor deklarierte Typparameter verweisen.", - "Type_parameter_list_cannot_be_empty_1098": "Die Typparameterliste darf nicht leer sein.", - "Type_parameter_name_cannot_be_0_2368": "Der Name des Typparameters darf nicht \"{0}\" sein.", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "Typparameter dürfen nicht für eine Konstruktordeklaration verwendet werden.", - "Type_predicate_0_is_not_assignable_to_1_1226": "Das Typprädikat \"{0}\" kann \"{1}\" nicht zugewiesen werden.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "Der Typ erzeugt einen Tupeltyp, der für die Darstellung zu groß ist.", - "Type_reference_directive_0_was_not_resolved_6120": "======== Die Typverweisdirektive \"{0}\" wurde nicht aufgelöst. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== Die Typverweisdirektive \"{0}\" wurde erfolgreich in \"{1}\" aufgelöst. Primär: {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== Die Typverweisdirektive \"{0}\" wurde erfolgreich in \"{1}\" mit Paket-ID \"{2}\" aufgelöst. Primär: {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "Typerfüllungsausdrücke können nur in TypeScript-Dateien verwendet werden.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Typen können in Exportdeklarationen in JavaScript-Dateien nicht angezeigt werden.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "Typen weisen separate Deklarationen einer privaten Eigenschaft \"{0}\" auf.", - "Types_of_construct_signatures_are_incompatible_2419": "Die Typen der Konstruktsignaturen sind nicht kompatibel.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "Die Typen der Parameter \"{0}\" und \"{1}\" sind nicht kompatibel.", - "Types_of_property_0_are_incompatible_2326": "Die Typen der Eigenschaft \"{0}\" sind nicht kompatibel.", - "Unable_to_open_file_0_6050": "Die Datei \"{0}\" kann nicht geöffnet werden.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "Die Signatur des Klassen-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Die Signatur des Methoden-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Die Signatur des Parameter-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Die Signatur des Eigenschaften-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", - "Unexpected_end_of_text_1126": "Unerwartetes Textende.", - "Unexpected_keyword_or_identifier_1434": "Unerwartetes Schlüsselwort oder Bezeichner.", - "Unexpected_token_1012": "Unerwartetes Token.", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Unerwartetes Token. Ein Konstruktor, eine Methode, eine Zugriffsmethode oder eine Eigenschaft wurde erwartet.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Unerwartetes Token. Es wurde ein Typparametername ohne geschweifte Klammern erwartet.", - "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "Unerwartetes Token. Meinten Sie \"{'}'}\" oder \"}\"?", - "Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.", - "Unknown_build_option_0_5072": "Unbekannte Buildoption \"{0}\".", - "Unknown_build_option_0_Did_you_mean_1_5077": "Unbekannte Buildoption \"{0}\". Meinten Sie \"{1}\"?", - "Unknown_compiler_option_0_5023": "Unbekannte Compileroption \"{0}\".", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "Unbekannte Compileroption \"{0}\". Meinten Sie \"{1}\"?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Unbekanntes Schlüsselwort oder Bezeichner. Meinten Sie \"{0}\"?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "Unbekannte Option \"exclude\". Meinten Sie \"exclude\"?", - "Unknown_type_acquisition_option_0_17010": "Unbekannte Option zur Typerfassung: {0}.", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Unbekannte Typerfassungsoption \"{0}\". Meinten Sie \"{1}\"?", - "Unknown_watch_option_0_5078": "Unbekannte Überwachungsoption \"{0}\".", - "Unknown_watch_option_0_Did_you_mean_1_5079": "Unbekannte Überwachungsoption \"{0}\". Meinten Sie \"{1}\"?", - "Unreachable_code_detected_7027": "Es wurde unerreichbarer Code erkannt.", - "Unterminated_Unicode_escape_sequence_1199": "Nicht abgeschlossene Unicode-Escapesequenz.", - "Unterminated_quoted_string_in_response_file_0_6045": "Nicht abgeschlossene Zeichenfolge in Anführungszeichen in der Datei \"{0}\".", - "Unterminated_regular_expression_literal_1161": "Nicht abgeschlossenes reguläres Ausdrucksliteral.", - "Unterminated_string_literal_1002": "Nicht abgeschlossenes Zeichenfolgenliteral.", - "Unterminated_template_literal_1160": "Nicht abgeschlossenes Vorlagenliteral.", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "Nicht typisierte Funktionsaufrufe dürfen keine Typargumente annehmen.", - "Unused_label_7028": "Nicht verwendete Bezeichnung.", - "Unused_ts_expect_error_directive_2578": "Nicht verwendete @ts-expect-error-Direktive.", - "Update_import_from_0_90058": "Import von \"{0}\" aktualisieren", - "Updating_output_of_project_0_6373": "Ausgabe von Projekt \"{0}\" wird aktualisiert...", - "Updating_output_timestamps_of_project_0_6359": "Ausgabezeitstempel von Projekt \"{0}\" werden aktualisiert...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "Unveränderte Ausgabezeitstempel von Projekt \"{0}\" werden aktualisiert...", - "Use_0_95174": "Verwenden Sie „{0}“.", - "Use_Number_isNaN_in_all_conditions_95175": "Verwenden Sie „Number.isNaN“ unter allen Bedingungen.", - "Use_element_access_for_0_95145": "Elementzugriff für \"{0}\" verwenden", - "Use_element_access_for_all_undeclared_properties_95146": "Elementzugriff für alle nicht deklarierten Eigenschaften verwenden", - "Use_synthetic_default_member_95016": "Verwenden Sie den synthetischen Member \"default\".", - "Using_0_subpath_1_with_target_2_6404": "Verwenden von \"{0}\" Unterpfad \"{1}\" mit Ziel \"{2}\".", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Das Verwenden einer Zeichenfolge in einer for...of-Anweisung wird nur in ECMAScript 5 oder höher unterstützt.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Bei Verwendung von --build wird tsc durch -b dazu veranlasst, sich eher wie ein Build-Orchestrator als ein Compiler zu verhalten. Damit wird der Aufbau von zusammengesetzten Projekten ausgelöst. Weitere Informationen dazu finden Sie unter {0}", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Compileroptionen der Projektverweisumleitung \"{0}\" werden verwendet.", - "VERSION_6036": "VERSION", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "Der Wert des Typs \"{0}\" verfügt über keine gemeinsamen Eigenschaften mit dem Typ \"{1}\". Wollten Sie ihn aufrufen?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "Der Wert des Typs \"{0}\" kann nicht aufgerufen werden. Wollten Sie \"new\" einschließen?", - "Variable_0_implicitly_has_an_1_type_7005": "Die Variable \"{0}\" weist implizit einen Typ \"{1}\" auf.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "Die Variable \"{0}\" weist implizit einen Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "Die Variable \"{0}\" weist an einigen Stellen implizit den Typ \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "Die Variable \"{0}\" weist an manchen Stellen implizit den Typ \"{1}\" auf, an denen der Typ nicht ermittelt werden kann.", - "Variable_0_is_used_before_being_assigned_2454": "Die Variable \"{0}\" wird vor ihrer Zuweisung verwendet.", - "Variable_declaration_expected_1134": "Eine Variablendeklaration wurde erwartet.", - "Variable_declaration_list_cannot_be_empty_1123": "Die Variablendeklarationsliste darf nicht leer sein.", - "Variable_declaration_not_allowed_at_this_location_1440": "Variablendeklaration ist an dieser Stelle nicht zulässig.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Das variadic-Element an Position {0} in der Quelle stimmt nicht mit dem Element an Position {1} im Ziel überein.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Abweichungsanmerkungen werden nur in Typaliasnamen für Objekt-, Funktions-, Konstruktor- und zugeordnete Typen unterstützt.", - "Version_0_6029": "Version {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Besuchen Sie https://aka.ms/tsconfig, um mehr über diese Datei zu erfahren.", - "WATCH_OPTIONS_6918": "ÜBERWACHUNGSOPTIONEN", - "Watch_and_Build_Modes_6250": "Überwachungs- und Buildmodi", - "Watch_input_files_6005": "Eingabedateien überwachen.", - "Watch_option_0_requires_a_value_of_type_1_5080": "Die Überwachungsoption \"{0}\" erfordert einen Wert vom Typ \"{1}\".", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Wir können nur einen Typ für „{0}“ schreiben, indem hier ein Typ für den gesamten Parameter hinzugefügt wird.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Überprüfen Sie beim Zuweisen von Funktionen, ob Parameter und Rückgabewerte untertypkompatibel sind.", - "When_type_checking_take_into_account_null_and_undefined_6699": "Berücksichtigen Sie bei der Typüberprüfung „null“ und „undefined“.", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Gibt an, ob eine veraltete Konsolenausgabe im Überwachungsmodus beibehalten wird, statt den Bildschirm zu löschen.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "Alle ungültigen Zeichen mit einem Ausdruckscontainer umschließen", - "Wrap_all_object_literal_with_parentheses_95116": "Gesamtes Objektliteral in Klammern einschließen", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Alle JSX ohne übergeordnetes Element mit JSX -Fragment umschließen", - "Wrap_in_JSX_fragment_95120": "Mit JSX-Fragment umschließen", - "Wrap_invalid_character_in_an_expression_container_95108": "Ungültiges Zeichen mit Ausdruckscontainer umschließen", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Schließen Sie den folgenden Text, der ein Objektliteral darstellt, in Klammern ein.", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Informationen zu allen Compileroptionen finden Sie unter {0}", - "You_cannot_rename_a_module_via_a_global_import_8031": "Ein Modul kann nicht über einen globalen Import umbenannt werden.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Elemente, die in einem Ordner \"node_modules\" definiert sind, können nicht umbenannt werden.", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Elemente, die in einem anderen Ordner \"node_modules\" definiert sind, können nicht umbenannt werden.", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Sie können keine Elemente umbenennen, die in der TypeScript-Standardbibliothek definiert sind.", - "You_cannot_rename_this_element_8000": "Sie können dieses Element nicht umbenennen.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "\"{0}\" akzeptiert zu wenige Argumente, um hier als Decorator verwendet zu werden. Wollten Sie es zuerst aufrufen und \"@{0}()\" schreiben?", - "_0_and_1_index_signatures_are_incompatible_2330": "Indexsignaturen \"{0}\" und \"{1}\" sind nicht kompatibel.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Die Vorgänge \"{0}\" und \"{1}\" dürfen nicht ohne Klammern kombiniert werden.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "\"{0}\" ist zweimal angegeben. Das Attribut mit dem Namen \"{0}\" wird überschrieben.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "\"{0}\" kann nur importiert werden, indem das Flag \"esModuleInterop\" aktiviert und ein Standardimport verwendet wird.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "\"{0}\" kann nur mithilfe eines Standardimports importiert werden.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "\"{0}\" kann nur mit einem Aufruf von \"require\" oder durch Aktivieren des Flags \"esModuleInterop\" und Verwendung eines Standardimports importiert werden.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "\"{0}\" kann nur mit einem Aufruf von \"require\" oder durch Verwendung eines Standardimports importiert werden.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "\"{0}\" kann nur mit \"import {1} = require({2})\" oder über einen Standardimport importiert werden.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "\"{0}\" kann nur mit \"import {1} = require({2})\" oder durch Aktivieren des Flags \"esModuleInterop\" und Verwendung eines Standardimports importiert werden.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "\"{0}\" wird als globale Skriptdatei betrachtet und kann daher nicht unter \"--isolatedModules\" kompiliert werden. Fügen Sie zum Festlegen als Modul eine Import-, Export- oder eine leere \"export {}\"-Anweisung hinzu.", - "_0_cannot_be_used_as_a_JSX_component_2786": "\"{0}\" kann nicht als JSX-Komponente verwendet werden.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "\"{0}\" kann nicht als Wert verwendet werden, weil der Export mit \"export type\" durchgeführt wurde.", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "\"{0}\" kann nicht als Wert verwendet werden, weil der Import mit \"import type\" durchgeführt wurde.", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "{0}-Komponenten akzeptieren Text nicht als untergeordnete Elemente. Der Text in der JSX weist den Typ \"string\" auf, aber für \"{1}\" wird der Typ \"{2}\" erwartet.", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "\"{0}\" konnte mit einem arbiträren Typ instanziiert werden, der mit \"{1}\" möglicherweise in keinem Zusammenhang steht.", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "{0}-Deklarationen können nur in TypeScript-Dateien verwendet werden.", - "_0_expected_1005": "\"{0}\" wurde erwartet.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "\"{0}\" umfasst keinen exportierten Member namens \"{1}\". Meinten Sie \"{2}\"?", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" weist implizit einen Rückgabetyp \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "\"{0}\" weist implizit den Typ \"any\" auf, weil keine Rückgabetypanmerkung vorhanden ist und darauf direkt oder indirekt in einem der Rückgabeausdrücke des Objekts verwiesen wird.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "\"{0}\" weist implizit den Typ \"any\" auf, weil keine Typanmerkung vorhanden ist und darauf direkt oder indirekt im eigenen Initialisierer verwiesen wird.", - "_0_index_signatures_are_incompatible_2634": "\"{0}\" Indexsignaturen sind inkompatibel.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "\"{0}\" Indextyp \"{1}\" kann nicht \"{2}\" Indextyp \"{3}\" zugewiesen werden.", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "\"{0}\" ist ein primitiver Typ, aber \"{1}\" ist ein Wrapperobjekt. Verwenden Sie vorzugsweise \"{0}\", wenn möglich.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "\"{0}\" ist ein Typ und kann nicht in JavaScript-Dateien importiert werden. Verwenden Sie \"{1}\" in einer JSDoc-Typanmerkung.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "„{0}“ ist ein Typ und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}“ ist eine nicht verwendete Umbenennung von „{1}“. Wollten Sie sie als Typanmerkung verwenden?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" kann der Einschränkung vom Typ \"{1}\" zugewiesen werden, aber \"{1}\" könnte mit einem anderen Untertyp der Einschränkung \"{2}\" instanziiert werden.", - "_0_is_automatically_exported_here_18044": "\"{0}\" wird hier automatisch exportiert.", - "_0_is_declared_but_its_value_is_never_read_6133": "\"{0}\" ist deklariert, aber der zugehörige Wert wird nie gelesen.", - "_0_is_declared_but_never_used_6196": "\"{0}\" ist deklariert, wird aber nie verwendet.", - "_0_is_declared_here_2728": "\"{0}\" wird hier deklariert.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "\"{0}\" ist als Eigenschaft in der Klasse \"{1}\" definiert, wird aber hier in \"{2}\" als Accessor überschrieben.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "\"{0}\" ist als Accessor in der Klasse \"{1}\" definiert, wird aber hier in \"{2}\" als Instanzeigenschaft überschrieben.", - "_0_is_deprecated_6385": "\"{0}\" ist veraltet.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "\"{0}\" ist keine gültige Metaeigenschaft für das Schlüsselwort \"{1}\". Meinten Sie \"{2}\"?", - "_0_is_not_allowed_as_a_parameter_name_1390": "\"{0}\" ist als Parametername nicht zulässig.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "\"{0}\" ist als Name für Variablendeklarationen nicht zulässig.", - "_0_is_of_type_unknown_18046": "\"{0}\" ist vom Typ \"unbekannt\".", - "_0_is_possibly_null_18047": "\"{0}\" ist möglicherweise \"null\".", - "_0_is_possibly_null_or_undefined_18049": "\"{0}\" ist möglicherweise \"null\" oder \"nicht definiert\".", - "_0_is_possibly_undefined_18048": "\"{0}\" ist möglicherweise nicht \"nicht definiert\".", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Auf \"{0}\" wird direkt oder indirekt im eigenen Basisausdruck verwiesen.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Auf \"{0}\" wird direkt oder indirekt in der eigenen Typanmerkung verwiesen.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "\"{0}\" wurde mehrmals angegeben, deshalb wird dieses Vorkommen überschrieben.", - "_0_list_cannot_be_empty_1097": "Die {0}-Liste darf nicht leer sein.", - "_0_modifier_already_seen_1030": "Der {0}-Modifizierer ist bereits vorhanden.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Der Modifizierer „{0}“ kann nur für einen Typparameter einer Klasse, einer Schnittstelle oder eines Typalias verwendet werden.", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Der Modifizierer \"{0}\" darf nicht für eine Konstruktordeklaration verwendet werden.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Der Modifizierer \"{0}\" darf nicht für ein Modul- oder Namespaceelement verwendet werden.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "Der Modifizierer \"{0}\" darf nicht für einen Parameter verwendet werden.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "Der Modifizierer \"{0}\" darf nicht für einen Typmember verwendet werden.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Der Modifizierer „{0}“ kann nicht für einen Typparameter verwendet werden", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "Der Modifizierer \"{0}\" darf nicht für eine Indexsignatur verwendet werden.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Der Modifizierer \"{0}\" kann nicht für Klassenelemente dieser Art verwendet werden.", - "_0_modifier_cannot_be_used_here_1042": "Der Modifizierer \"{0}\" kann hier nicht verwendet werden.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "Der Modifizierer \"{0}\" kann nicht in einem Umgebungskontext verwendet werden.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "Der Modifizierer \"{0}\" darf nicht mit dem Modifizierer \"{1}\" verwendet werden.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Der Modifizierer \"{0}\" kann nicht mit einem privaten Bezeichner verwendet werden.", - "_0_modifier_must_precede_1_modifier_1029": "Der Modifizierer \"{0}\" muss dem Modifizierer \"{1}\" vorangestellt sein.", - "_0_needs_an_explicit_type_annotation_2782": "\"{0}\" erfordert eine explizite Typanmerkung.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Namespace verwendet.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "\"{0}\" bezieht sich nur auf einen Typ, wird aber hier als Wert verwendet.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Wert verwendet. Wollten Sie \"{1} in {0}\" verwenden?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Wert verwendet. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"es2015\" oder höher.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "\"{0}\" bezieht sich auf eine globale UMD, die aktuelle Datei ist jedoch ein Modul. Ziehen Sie in Betracht, stattdessen einen Import hinzuzufügen.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" bezieht sich auf einen Wert, wird hier jedoch als Typ verwendet. Meinten Sie \"typeof {0}\"?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typreexports erneut exportiert werden, wenn „isolatedModules“ aktiviert ist.", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" sollte im CompilerOptions-Objekt der JSON-Konfigurationsdatei festgelegt werden.", - "_0_tag_already_specified_1223": "Das Tag \"{0}\" wurde bereits angegeben.", - "_0_was_also_declared_here_6203": "\"{0}\" wurde hier ebenfalls deklariert.", - "_0_was_exported_here_1377": "\"{0}\" wurde hier exportiert.", - "_0_was_imported_here_1376": "\"{0}\" wurde hier importiert.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "\"{0}\" ohne Rückgabetypanmerkung weist implizit einen Rückgabetyp \"{1}\" auf.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "\"{0}\" ohne Rückgabetypanmerkung weist implizit einen yield-Typ \"{1}\" auf.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Der Modifizierer \"abstract\" darf nur für eine Klassen-, Methoden- oder Eigenschaftendeklaration verwendet werden.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Der Accessormodifizierer kann nur in einer Eigenschaftendeklaration angezeigt werden.", - "and_here_6204": "und hier.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "Auf \"arguments\" kann in Eigenschaftsinitialisierern nicht verwiesen werden.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto“: Dateien mit imports, exports, import.meta, jsx (mit jsx: respond-jsx) oder esm-Format (mit module: node16+) als Module behandeln.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "await-Ausdrücke sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "await-Ausdrücke sind nur innerhalb von asynchronen Funktionen und auf den obersten Modulebenen zulässig.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "await-Ausdrücke dürfen nicht in einem Parameterinitialisierer verwendet werden.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" hat keine Auswirkungen auf den Typ dieses Ausdrucks.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Die Option \"baseUrl\" ist auf \"{0}\" festgelegt. Dieser Wert wird verwendet, um den nicht relativen Modulnamen \"{1}\" aufzulösen.", - "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" kann nur am Anfang einer Datei verwendet werden.", - "case_or_default_expected_1130": "\"case\" oder \"default\" wurde erwartet.", - "catch_or_finally_expected_1472": "„catch“ oder „finally“ erwartet.", - "const_declarations_can_only_be_declared_inside_a_block_1156": "const-Deklarationen können nur innerhalb eines Blocks deklariert werden.", - "const_declarations_must_be_initialized_1155": "const-Deklarationen müssen initialisiert werden.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Der const-Enumerationsmemberinitialisierer wurde in einen unendlichen Wert ausgewertet.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Der const-Enumerationsmemberinitialisierer wurde in den unzulässigen Wert \"NaN\" ausgewertet.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Initialisierer von const-Enumerationsmembern dürfen nur Literalwerte und andere berechnete Enumerationswerte enthalten.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "const-Enumerationen können nur in Eigenschaften- bzw. Indexzugriffsausdrücken oder auf der rechten Seite einer Importdeklaration oder Exportzuweisung verwendet werden.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "\"constructor\" kann nicht als Parametereigenschaftsname verwendet werden.", - "constructor_is_a_reserved_word_18012": "\"#constructor\" ist ein reserviertes Wort.", - "default_Colon_6903": "Standard:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "\"delete\" kann für einen Bezeichner im Strict-Modus nicht aufgerufen werden.", - "export_Asterisk_does_not_re_export_a_default_1195": "Mit \"export *\" wird ein Standardwert nicht erneut exportiert.", - "export_can_only_be_used_in_TypeScript_files_8003": "\"export =\" kann nur in TypeScript-Dateien verwendet werden.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Der Modifizierer \"export\" kann nicht auf Umgebungsmodule und Modulerweiterungen angewendet werden, da diese immer sichtbar sind.", - "extends_clause_already_seen_1172": "Die extends-Klausel ist bereits vorhanden.", - "extends_clause_must_precede_implements_clause_1173": "Die extends-Klausel muss der implements-Klausel vorangestellt sein.", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "Die \"extends\"-Klausel der exportierten Klasse \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "Die extends-Klausel der exportierten Klasse besitzt oder verwendet den privaten Namen \"{0}\".", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "Die \"extends\"-Klausel der exportierten Schnittstelle \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "false_unless_composite_is_set_6906": "'false', es sei denn 'composite' ist festgelegt", - "false_unless_strict_is_set_6905": "'false', es sei denn, 'strict' ist festgelegt", - "file_6025": "Datei", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "\"for await\"-Schleifen sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "\"for await\"-Schleifen sind nur innerhalb von asynchronen Funktionen und auf den obersten Modulebenen zulässig.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "get- und set-Zugriffsmethoden können keine this-Parameter deklarieren.", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'[]', wenn 'files' angegeben ist, andernfalls '[\"**/*\"]5D;'", - "implements_clause_already_seen_1175": "Die implements-Klausel ist bereits vorhanden.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "implements-Klauseln können nur in TypeScript-Dateien verwendet werden.", - "import_can_only_be_used_in_TypeScript_files_8002": "\"import... =\" kann nur in TypeScript-Dateien verwendet werden.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "infer-Deklarationen sind nur in der extends-Klausel eines bedingten Typs zulässig.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "let-Deklarationen können nur innerhalb eines Blocks deklariert werden.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "\"let\" darf nicht als Name in let- oder const-Deklarationen verwendet werden.", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "Modul === 'AMD' oder 'UMD' oder 'System' oder 'ES6', dann 'Klassisch', andernfalls 'Knoten'", - "module_system_or_esModuleInterop_6904": "Modul === \"System\" oder esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "Der new-Ausdruck, in dessen Ziel eine Konstruktsignatur fehlt, weist implizit einen Typ \"any\" auf.", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "'[\"node_modules\",\"bower_components\",\"jspm_packages\"]', plus der Wert von 'outDir', wenn ein Wert angegeben ist.", - "one_of_Colon_6900": "eines von:", - "one_or_more_Colon_6901": "eins oder mehr:", - "options_6024": "Optionen", - "or_JSX_element_expected_1145": "'{' oder JSX-Element erwartet.", - "or_expected_1144": "\"{\" oder \";\" wurde erwartet.", - "package_json_does_not_have_a_0_field_6100": "\"package.json\" besitzt kein \"{0}\"-Feld.", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package.json\" weist keinen Eintrag \"typesVersions\" auf, der mit der Version {0} übereinstimmt.", - "package_json_had_a_falsy_0_field_6220": "\"package.json\" enthielt ein \"falsy\" Feld \"{0}\".", - "package_json_has_0_field_1_that_references_2_6101": "\"package.json\" weist das {0}-Feld \"{1}\" auf, das auf \"{2}\" verweist.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "\"package.json\" weist einen typesversion-Eintrag \"{0}\" auf, der kein gültiger semver-Bereich ist.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "\"package.json\" weist einen typesVersions-Eintrag \"{0}\" auf, der der Compilerversion \"{1}\" entspricht. Es wird nach einem Muster gesucht, das dem Modulnamen \"{2}\" entspricht.", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "\"package.json\" weist ein Feld \"typesVersions\" mit versionsspezifischen Pfadzuordnungen auf.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "Der package.json-Bereich \"{0}\" ordnet den Bezeichner \"{1}\" explizit NULL zu.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "Der package.json-Bereich \"{0}\" weist einen ungültigen Typ für das Ziel des Spezifizierers \"{1}\" auf.", - "package_json_scope_0_has_no_imports_defined_6273": "Für package.jsim, Bereich \"{0}\" wurden keine Importe definiert.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Die Option \"paths\" wurde angegeben. Es wird nach einem Muster gesucht, das mit dem Modulnamen \"{0}\" übereinstimmt.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Der Modifizierer \"readonly\" darf nur für eine Eigenschaftendeklaration oder Indexsignatur verwendet werden.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Der Typmodifizierer \"readonly\" ist nur für Array- und Tupelliteraltypen zulässig.", - "require_call_may_be_converted_to_an_import_80005": "Der Aufruf von \"require\" kann in einen Aufruf von \"import\" konvertiert werden.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "„resolution-mode“-Zusicherungen werden nur unterstützt, wenn „moduleResolution“ „node16“ oder „nodenext“ ist.", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' Behauptungen sind instabil. Verwenden Sie nächtliches TypeScript, um diesen Fehler zu unterdrücken. Versuchen Sie, mit „npm install -D typescript@next“ zu aktualisieren.", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "„resolution-mode“ kann nur für reine Typenimporte festgelegt werden.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "„resolution-mode“ ist für Typimportassertionen der einzige gültige Schlüssel.", - "resolution_mode_should_be_either_require_or_import_1453": "„resolution-mode“ muss entweder auf „require“ oder „import“ festgelegt sein.", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Die Option \"rootDirs\" wurde festgelegt. Sie wird zum Auflösen des relativen Modulnamens \"{0}\" verwendet.", - "super_can_only_be_referenced_in_a_derived_class_2335": "Auf \"super\" kann nur in einer abgeleiteten Klasse verwiesen werden.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "Auf \"super\" kann nur in Membern abgeleiteter Klassen oder Objektliteralausdrücken verwiesen werden.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "Auf \"super\" kann nicht in einem berechneten Eigenschaftennamen verwiesen werden.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "Auf \"super\" kann nicht in Konstruktorargumenten verwiesen werden.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "\"super\" ist nur in Membern von Objektliteralausdrücken zulässig, wenn die Option \"target\" den Wert \"ES2015\" oder höher aufweist.", - "super_may_not_use_type_arguments_2754": "\"super\" darf keine Typargumente verwenden.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "Vor dem Zugriff auf eine Eigenschaft von \"super\" im Konstruktor einer abgeleiteten Klasse muss \"super\" aufgerufen werden.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "\"super\" muss vor dem Zugreifen auf \"this\" im Konstruktor einer abgeleiteten Klasse aufgerufen werden.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "Auf \"super\" muss eine Argumentliste oder Memberzugriff folgen.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "Der Zugriff auf die super-Eigenschaft ist nur in einem Konstruktor, einer Memberfunktion oder einer Memberzugriffsmethode einer abgeleiteten Klasse zulässig.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "Auf \"this\" kann nicht in einem berechneten Eigenschaftennamen verwiesen werden.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Auf \"this\" kann nicht in einem Modul- oder Namespacetext verwiesen werden.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Auf \"this\" kann nicht in einem statischen Eigenschafteninitialisierer verwiesen werden.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "Auf \"this\" kann nicht in Konstruktorargumenten verwiesen werden.", - "this_cannot_be_referenced_in_current_location_2332": "Auf \"this\" kann am aktuellen Speicherort nicht verwiesen werden.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "\"this\" weist implizit den Typ \"any\" auf, weil keine Typanmerkung vorhanden ist.", - "true_for_ES2022_and_above_including_ESNext_6930": "\"true\" für ES2022 und höher, einschließlich ESNext.", - "true_if_composite_false_otherwise_6909": "'true', wenn 'composite', andernfalls 'false'", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: Der TypeScript-Compiler", - "type_Colon_6902": "Typ:", - "unique_symbol_types_are_not_allowed_here_1335": "\"unique symbol\"-Typen sind hier nicht zulässig.", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "\"unique symbol\"-Typen sind nur für Variablen in einer Variablenanweisung zulässig.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "\"unique symbol\"-Typen dürfen für eine Variablendeklaration mit einem Bindungsnamen nicht verwendet werden.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "Eine Verwendung der Direktive \"use strict\" mit einer nicht einfachen Parameterliste ist nicht zugelassen.", - "use_strict_directive_used_here_1349": "Die Direktive \"use strict\" wird hier verwendet.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "with-Anweisungen sind in einem asynchronen Funktionsblock unzulässig.", - "with_statements_are_not_allowed_in_strict_mode_1101": "this-Anweisungen sind im Strict-Modus unzulässig.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "Der Ausdruck \"yield\" führt implizit zu einem Typ \"any\", weil der enthaltende Generator keine Anmerkung vom Rückgabetyp umfasst.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "yield-Ausdrücke dürfen nicht in einem Parameterinitialisierer verwendet werden." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/es/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/es/diagnosticMessages.generated.json deleted file mode 100644 index 242b20b0..00000000 --- a/graphql/node_modules/typescript/lib/es/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "TODAS LAS OPCIONES DEL COMPILADOR", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Un modificador '{0}' no se puede usar con una declaración de importación.", - "A_0_parameter_must_be_the_first_parameter_2680": "El parámetro \"{0}\" debe ser el primer parámetro.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un comentario \"@typedef\" de JSDoc no puede contener varias etiquetas \"@type\".", - "A_bigint_literal_cannot_use_exponential_notation_1352": "Un literal bigint no puede usar la notación exponencial.", - "A_bigint_literal_must_be_an_integer_1353": "Un literal bigint debe ser un entero.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un parámetro de patrón de enlace no puede ser opcional en una signatura de implementación.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Una instrucción \"break\" solo se puede usar dentro de una iteración envolvente o en una instrucción switch.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Una instrucción \"break\" solo puede saltar a una etiqueta de una instrucción envolvente.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Una clase solo puede implementar un identificador o nombre completo con argumentos de tipo opcional.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Una clase solo puede implementar un tipo de objeto o una intersección de tipos de objeto con miembros conocidos estáticamente.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Una declaración de clase sin el modificador \"default\" debe tener un nombre.", - "A_class_member_cannot_have_the_0_keyword_1248": "Un miembro de clase no puede tener la palabra clave '{0}'.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "No se admite una expresión de coma en un nombre de propiedad calculada.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "Un nombre de propiedad calculada no puede hacer referencia a un parámetro de tipo desde su tipo contenedor.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "Un nombre de propiedad calculada de una declaración de propiedad de clase debe tener un tipo de literal simple o un tipo \"unique symbol\".", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "Un nombre de propiedad calculada en una sobrecarga de método debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "Un nombre de propiedad calculada en un literal de tipo debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Un nombre de propiedad calculada en un contexto de ambiente debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Un nombre de propiedad calculada en una interfaz debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Un nombre de propiedad calculada debe ser de tipo \"string\", \"number\", \"symbol\" o \"any\".", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "Las aserciones \"const\" solo pueden aplicarse a las referencias a miembros de enumeración o a literales de cadena, numéricos, booleanos, de matriz o de objeto.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Solo se puede acceder a un miembro de enumeración const mediante un literal de cadena.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Un inicializador \"const\" en un contexto de ambiente debe ser un literal de cadena o numérico o bien una referencia de enumeración de literal.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Un constructor no puede contener una llamada a \"super\" si su clase extiende \"null\".", - "A_constructor_cannot_have_a_this_parameter_2681": "Un constructor no puede tener un parámetro 'this'.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Una instrucción \"continue\" solo se puede usar en una instrucción de iteración envolvente.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Una instrucción \"continue\" solo puede saltar a una etiqueta de una instrucción de iteración envolvente.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Un modificador \"declare\" no se puede usar en un contexto de ambiente.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un decorador solo puede modificar la implementación de un método, no una sobrecarga.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Una cláusula \"default\" no puede aparecer más de una vez en una instrucción \"switch\".", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "Solo se puede usar una exportación predeterminada en un módulo de estilo ECMAScript.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Una exportación predeterminada debe estar en el nivel superior de una declaración de módulo o archivo.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "En este contexto no se permite una aserción de asignación definitiva \"!\".", - "A_destructuring_declaration_must_have_an_initializer_1182": "Una declaración de desestructuración debe tener un inicializador.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Una llamada de importación dinámica en ES5/ES3 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Una llamada de importación dinámica devuelve un valor \"Promise\". Asegúrese de que tiene una declaración para \"Promise\" o incluya \"ES2015\" en la opción \"--lib\".", - "A_file_cannot_have_a_reference_to_itself_1006": "Un archivo no puede tener una referencia a sí mismo.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Una función que devuelve 'never' no puede tener un punto de conexión alcanzable.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Una función a la que se llama con la palabra clave 'new' no puede tener un tipo 'this' que sea 'void'.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Una función cuyo tipo declarado no es \"void\" o \"any\" debe devolver un valor.", - "A_generator_cannot_have_a_void_type_annotation_2505": "Un generador no puede tener una anotación de tipo \"void\".", - "A_get_accessor_cannot_have_parameters_1054": "Un descriptor de acceso \"get\" no puede tener parámetros.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Un descriptor de acceso get debe ser al menos tan accesible como el establecedor", - "A_get_accessor_must_return_a_value_2378": "Un descriptor de acceso \"get\" debe devolver un valor.", - "A_label_is_not_allowed_here_1344": "No se permite una etiqueta aquí.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "Un elemento de tupla etiquetado se declara como opcional con un signo de interrogación después del nombre y antes de los dos puntos, en lugar de después del tipo.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "Un elemento de tupla etiquetado se declara como rest con \"...\" delante del nombre, en lugar de delante del tipo.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "Un tipo asignado no puede declarar propiedades ni métodos.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "Un inicializador de miembro de una declaración de enumeración no puede hacer referencia a los miembros que se declaran después de este, incluidos aquellos definidos en otras enumeraciones.", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "Una clase mixin debe tener un constructor con un solo parámetro rest de tipo \"any[]\"", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "Una clase mixin que se extiende desde una variable de tipo que contiene una signatura de construcción abstracta debe declararse también como \"abstract\".", - "A_module_cannot_have_multiple_default_exports_2528": "Un módulo no puede tener varias exportaciones predeterminadas.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Una declaración de espacio de nombres no puede estar en un archivo distinto de una clase o función con la que se combina.", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Una declaración de espacio de nombres no se puede situar antes que una clase o función con la que se combina.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Una declaración de espacio de nombres solo se permite en el nivel superior de un espacio de nombres o módulo.", - "A_non_dry_build_would_build_project_0_6357": "Una compilación no -dry compilaría el proyecto \"{0}\"", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Una compilación no -dry eliminaría los archivos siguientes: {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "Una compilación no -dry actualizaría la salida del proyecto \"{0}\".", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Una compilación no -dry actualizaría las marcas de tiempo para la salida del proyecto \"{0}\".", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un inicializador de parámetros solo se permite en una implementación de función o de constructor.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Una propiedad de parámetro no se puede declarar mediante un parámetro rest.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Una propiedad de parámetro solo se permite en una implementación de constructor.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "Una propiedad de parámetro podría no declararse mediante un patrón de enlace.", - "A_promise_must_have_a_then_method_1059": "Una promesa debe tener un método \"then\".", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "Una propiedad de una clase cuyo tipo sea \"unique symbol\" debe ser \"static\" y \"readonly\".", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "Una propiedad de una interfaz o un literal de tipo cuyo tipo sea \"unique symbol\" debe ser \"readonly\".", - "A_required_element_cannot_follow_an_optional_element_1257": "Un elemento obligatorio no puede seguir a un elemento opcional.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "Un parámetro obligatorio no puede seguir a un parámetro opcional.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "Un elemento rest no puede contener un patrón de enlace.", - "A_rest_element_cannot_follow_another_rest_element_1265": "Un elemento rest no puede seguir a otro elemento rest.", - "A_rest_element_cannot_have_a_property_name_2566": "Un elemento rest no puede tener un nombre de propiedad.", - "A_rest_element_cannot_have_an_initializer_1186": "Un elemento rest no puede tener un inicializador.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "Un elemento rest debe ser el último en un patrón de desestructuración.", - "A_rest_element_type_must_be_an_array_type_2574": "Un tipo de elemento rest debe ser un tipo de matriz.", - "A_rest_parameter_cannot_be_optional_1047": "Un parámetro rest no puede ser opcional.", - "A_rest_parameter_cannot_have_an_initializer_1048": "Un parámetro rest no puede tener un inicializador.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "Un parámetro rest debe ser el último de una lista de parámetros.", - "A_rest_parameter_must_be_of_an_array_type_2370": "Un parámetro rest debe ser de un tipo de matriz.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "Un parámetro rest o un patrón de enlace no pueden finalizar con una coma.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "Una instrucción \"return\" solo se puede usar en el cuerpo de una función.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "Una instrucción 'return' no se puede usar dentro de un bloque estático de clase.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "Serie de entradas que reasigna las importaciones a ubicaciones de búsqueda relativas a \"baseUrl\".", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "Un descriptor de acceso \"set\" no puede tener una anotación de tipo de valor devuelto.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "Un descriptor de acceso \"set\" no puede tener un parámetro opcional.", - "A_set_accessor_cannot_have_rest_parameter_1053": "Un descriptor de acceso \"set\" no puede tener un parámetro rest.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "Un descriptor de acceso \"set\" debe tener exactamente un parámetro.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Un parámetro de descriptor de acceso \"set\" no puede tener un inicializador.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Un argumento de difusión debe tener un tipo de tupla o se puede pasar a un parámetro \"rest\".", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Una llamada \"super\" debe ser una instrucción de nivel raíz dentro de un constructor de una clase derivada que contiene propiedades inicializadas, propiedades de parámetros o identificadores privados.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Una llamada \"super\" debe ser la primera instrucción del constructor para hacer referencia a \"super\" o \"this\" cuando una clase derivada contiene propiedades inicializadas, propiedades de parámetro o identificadores privados.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Una restricción de tipo basada en 'this' no es compatible con una restricción de tipo basada en un parámetro.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "El tipo \"this\" solo está disponible en un miembro no estático de una clase o interfaz.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Ya hay un archivo \"tsconfig.json\" definido en: '{0}'.", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un miembro de tupla no puede ser tanto opcional como REST.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo de tupla no se puede indizar con un valor negativo.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "No se admite una expresión de aserción de tipo en el lado izquierdo de una expresión de exponenciación. Considere la posibilidad de incluir la expresión entre paréntesis.", - "A_type_literal_property_cannot_have_an_initializer_1247": "Una propiedad de literal de tipo no puede tener un inicializador.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Una importación solo de tipo puede especificar una importación predeterminada o enlaces con nombre, pero no ambos.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "Un predicado de tipo no puede hacer referencia a un parámetro rest.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "Un predicado de tipo no puede hacer referencia al elemento '{0}' de un patrón de enlace.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "En las funciones y los métodos, un predicado de tipo solo se permite en la posición de tipo de valor devuelto.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "El tipo de un predicado de tipo debe poderse asignar al tipo de su parámetro.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "Un tipo al que se hace referencia en una firma representativo debe importarse con \"import type\" o una importación de espacio de nombres cuando están habilitados \"isolatedModules\" y \"emitDecoratorMetadata\".", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "Una variable cuyo tipo sea \"unique symbol\" debe ser \"const\".", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Una expresión \"yield\" solo se permite en un cuerpo de generador.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "No se puede acceder al método abstracto '{0}' de la clase '{1}' mediante una expresión super.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Los métodos abstractos solo pueden aparecer en una clase abstracta.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "No se puede acceder a la propiedad abstracta \"{0}\" de la clase \"{1}\" en el constructor.", - "Accessibility_modifier_already_seen_1028": "El modificador de accesibilidad ya se ha visto.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Los descriptores de acceso solo están disponibles cuando el destino es ECMAScript 5 y versiones posteriores.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "Los descriptores de acceso deben ser los dos abstractos o los dos no abstractos.", - "Add_0_to_unresolved_variable_90008": "Agregar \"{0}.\" a una variable no resuelta", - "Add_a_return_statement_95111": "Agregar una instrucción \"return\"", - "Add_all_missing_async_modifiers_95041": "Agregar todos los modificadores \"async\" que faltan", - "Add_all_missing_attributes_95168": "Agregar todos los atributos que faltan", - "Add_all_missing_call_parentheses_95068": "Agregar todos los paréntesis de llamada que faltan", - "Add_all_missing_function_declarations_95157": "Agregar todas las declaraciones de función que faltan", - "Add_all_missing_imports_95064": "Agregar todas las importaciones que faltan", - "Add_all_missing_members_95022": "Agregar todos los miembros que faltan", - "Add_all_missing_override_modifiers_95162": "Agregar todos los modificadores \"override\" que faltan", - "Add_all_missing_properties_95166": "Agregar todas las propiedades que faltan", - "Add_all_missing_return_statement_95114": "Agregar todas las instrucciones \"return\" que faltan", - "Add_all_missing_super_calls_95039": "Agregar todas las llamadas a super que faltan", - "Add_async_modifier_to_containing_function_90029": "Agregar el modificador async a la función contenedora", - "Add_await_95083": "Agregar \"await\"", - "Add_await_to_initializer_for_0_95084": "Agregar \"await\" al inicializador de \"{0}\"", - "Add_await_to_initializers_95089": "Agregar \"await\" a los inicializadores", - "Add_braces_to_arrow_function_95059": "Agregar llaves a la función de flecha", - "Add_const_to_all_unresolved_variables_95082": "Agregar \"const\" a todas las variables no resueltas", - "Add_const_to_unresolved_variable_95081": "Agregar \"const\" a la variable no resuelta", - "Add_definite_assignment_assertion_to_property_0_95020": "Agregar aserción de asignación definitiva a la propiedad \"{0}\"", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Agregar aserciones de asignación definitiva a todas las propiedades sin inicializar", - "Add_export_to_make_this_file_into_a_module_95097": "Agregar \"export {}\" para transformar este archivo en un módulo", - "Add_extends_constraint_2211": "Agregar restricción \"extends\".", - "Add_extends_constraint_to_all_type_parameters_2212": "Agregar restricción \"extends\" a todos los parámetros de tipo", - "Add_import_from_0_90057": "Agregar importación desde “{0}”", - "Add_index_signature_for_property_0_90017": "Agregar una signatura de índice para la propiedad \"{0}\"", - "Add_initializer_to_property_0_95019": "Agregar inicializador a la propiedad \"{0}\"", - "Add_initializers_to_all_uninitialized_properties_95027": "Agregar inicializadores a todas las propiedades sin inicializar", - "Add_missing_attributes_95167": "Agregar los atributos que faltan", - "Add_missing_call_parentheses_95067": "Agregar los paréntesis de llamada que faltan", - "Add_missing_enum_member_0_95063": "Agregar el miembro de enumeración \"{0}\" que falta", - "Add_missing_function_declaration_0_95156": "Agregar la declaración de función \"{0}\" que falta", - "Add_missing_new_operator_to_all_calls_95072": "Agregar el operador \"new\" que falta a todas las llamadas", - "Add_missing_new_operator_to_call_95071": "Agregar el operador \"new\" que falta a la llamada", - "Add_missing_properties_95165": "Agregar propiedades que faltan", - "Add_missing_super_call_90001": "Agregar la llamada a \"super()\" que falta", - "Add_missing_typeof_95052": "Agregar el elemento \"typeof\" que falta", - "Add_names_to_all_parameters_without_names_95073": "Agregar nombres a todos los parámetros sin nombres", - "Add_or_remove_braces_in_an_arrow_function_95058": "Agregar o quitar llaves en una función de flecha", - "Add_override_modifier_95160": "Agregar el modificador \"override\"", - "Add_parameter_name_90034": "Agregar un nombre de parámetro", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Agregar un calificador a todas las variables no resueltas que coincidan con un nombre de miembro", - "Add_to_all_uncalled_decorators_95044": "Agregar \"()\" a todos los elementos Decorator a los que no se llama", - "Add_ts_ignore_to_all_error_messages_95042": "Agregar \"@ts-ignore\" a todos los mensajes de error", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Agregue \"indefinido\" a un tipo cuando se acceda mediante un índice.", - "Add_undefined_to_optional_property_type_95169": "Agregar 'undefined' al tipo de propiedad opcional", - "Add_undefined_type_to_all_uninitialized_properties_95029": "Agregar un tipo no definido a todas las propiedades sin inicializar", - "Add_undefined_type_to_property_0_95018": "Agregar un tipo \"undefined\" a la propiedad \"{0}\"", - "Add_unknown_conversion_for_non_overlapping_types_95069": "Agregar una conversión \"unknown\" para los tipos que no se superponen", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "Agregar \"unknown\" a todas las conversiones de tipos que no se superponen", - "Add_void_to_Promise_resolved_without_a_value_95143": "Agregar \"void\" a la instancia de Promise resuelta sin un valor", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "Agregar \"void\" a todas las instancias de Promise resueltas sin un valor", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "Agregar un archivo tsconfig.json ayuda a organizar los proyectos que contienen archivos TypeScript y JavaScript. Más información en https://aka.ms/tsconfig.", - "All_declarations_of_0_must_have_identical_constraints_2838": "Todas las declaraciones de \"{0}\" deben tener delimitaciones idénticas.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "Todas las declaraciones de '{0}' deben tener modificadores idénticos.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "Todas las declaraciones de '{0}' deben tener parámetros de tipo idénticos.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Todas las declaraciones de un método abstracto deben ser consecutivas.", - "All_destructured_elements_are_unused_6198": "Todos los elementos desestructurados están sin utilizar.", - "All_imports_in_import_declaration_are_unused_6192": "Todas las importaciones de la declaración de importación están sin utilizar.", - "All_type_parameters_are_unused_6205": "Ninguno de los parámetros de tipo se usa.", - "All_variables_are_unused_6199": "Todas las variables son no utilizadas.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "Permita que los archivos JavaScript formen parte del programa. Use la opción \"checkJS\" para obtener errores de estos archivos.", - "Allow_accessing_UMD_globals_from_modules_6602": "Permite el acceso a las bibliotecas globales de UMD desde los módulos.", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Permitir las importaciones predeterminadas de los módulos sin exportación predeterminada. Esto no afecta a la emisión de código, solo a la comprobación de tipos.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Permita \"importar x desde y\" cuando un módulo no tiene una exportación predeterminada.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Permita la importación de funciones de ayuda desde tslib una vez por proyecto, en lugar de incluirlas por archivo.", - "Allow_javascript_files_to_be_compiled_6102": "Permitir que se compilen los archivos de JavaScript.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Permita que varias carpetas se consideren como una al resolver módulos.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "El nombre de archivo \"{0}\" ya incluido es diferente del nombre de archivo \"{1}\" solo en el uso de mayúsculas y minúsculas.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "La declaración de módulo de ambiente no puede especificar un nombre de módulo relativo.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "Los módulos de ambiente no se pueden anidar en otros módulos o espacios de nombres.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "Un módulo AMD no puede tener varias asignaciones de nombre.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "Un descriptor de acceso abstracto no puede tener una implementación.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "No se puede usar un modificador de accesibilidad con un identificador privado.", - "An_accessor_cannot_have_type_parameters_1094": "Un descriptor de acceso no puede tener parámetros de tipo.", - "An_accessor_property_cannot_be_declared_optional_1276": "Una propiedad 'accessor' no se puede declarar como opcional.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Una declaración de módulo de ambiente solo se permite en el nivel superior de un archivo.", - "An_argument_for_0_was_not_provided_6210": "No se proporcionó ningún argumento para \"{0}\".", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "No se proporcionó ningún argumento que coincida con este patrón de enlace.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un operando aritmético debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "Una función de flecha no puede tener un parámetro \"this\".", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Una función o un método de asincronía en ES5/ES3 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Una función o un método asincrónico debe devolver un \"Promise\". Asegúrese de que tiene una declaración \"Promise\" o incluya \"ES2015\" en la opción \"--lib\".", - "An_async_iterator_must_have_a_next_method_2519": "Un iterador de asincronía debe tener un método \"next()\".", - "An_element_access_expression_should_take_an_argument_1011": "Una expresión de acceso de elemento debe admitir un argumento.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "No se puede denominar un miembro de enumeración con un identificador privado.", - "An_enum_member_cannot_have_a_numeric_name_2452": "Un miembro de enumeración no puede tener un nombre numérico.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "El nombre de un miembro de enumeración debe ir seguido de \",\", \"=\" o \"}\".", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "Una versión expandida de esta información, que muestra todas las opciones posibles del compilador", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "Una asignación de exportación no se puede usar en un módulo con otros elementos exportados.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "Una asignación de exportación no se puede usar en espacios de nombres.", - "An_export_assignment_cannot_have_modifiers_1120": "Una asignación de exportación no puede tener modificadores.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "Una asignación de exportación debe estar en el nivel superior de una declaración de módulo o archivo.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Una declaración de exportación solo se puede usar en el nivel superior de un módulo.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Una declaración de exportación solo se puede usar en el nivel superior de un espacio de nombres o módulo.", - "An_export_declaration_cannot_have_modifiers_1193": "Una declaración de exportación no puede tener modificadores.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "No se puede probar la veracidad de una expresión de tipo \"void\".", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Un valor de escape Unicode extendido debe estar entre 0x0 y 0x10FFFF, incluidos.", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Un identificador o una palabra clave no puede seguir inmediatamente a un literal numérico.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Una implementación no se puede declarar en contextos de ambiente.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias de importación no puede hacer referencia a una declaración que se exportó mediante \"export type\".", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias de importación no puede hacer referencia a una declaración que se importó mediante \"import type\".", - "An_import_alias_cannot_use_import_type_1392": "Un alias de importación no puede usar \"import type\"", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Una declaración de importación solo se puede usar en el nivel superior de un módulo.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Una declaración de importación solo se puede usar en el nivel superior de un espacio de nombres o módulo.", - "An_import_declaration_cannot_have_modifiers_1191": "Una declaración de importación no puede tener modificadores.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Una ruta de acceso de importación no puede terminar con una extensión '{0}'. Puede importar '{1}' en su lugar.", - "An_index_signature_cannot_have_a_rest_parameter_1017": "Una signatura de índice no puede tener un parámetro rest.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "Una signatura de índice no puede finalizar con una coma.", - "An_index_signature_must_have_a_type_annotation_1021": "Una signatura de índice debe tener una anotación de tipo.", - "An_index_signature_must_have_exactly_one_parameter_1096": "Una signatura de índice debe tener exactamente un parámetro.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "Un parámetro de signatura de índice no puede tener un signo de interrogación.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "Un parámetro de signatura de índice no puede tener un modificador de accesibilidad.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "Un parámetro de signatura de índice no puede tener un inicializador.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "Un parámetro de signatura de índice debe tener una anotación de tipo.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "Un tipo de parámetro de signatura de índice no puede ser un tipo literal o un tipo genérico. Considere la posibilidad de usar, en su lugar, uno de los tipos de objeto asignados.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "El tipo de parámetro de la signatura de índice debe ser \"string\", \"number\", \"symbol\" o un tipo literal de plantilla.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Una expresión de creación de una instancia no puede ir seguida de un acceso a una propiedad.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Una interfaz solo puede extender un identificador o nombre completo con argumentos de tipo opcional.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Una interfaz solo puede extender un tipo de objeto o una intersección de tipos de objeto con miembros conocidos estáticamente.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Una interfaz no puede extender un tipo primitivo como \"{0}\"; una interfaz solo puede extender tipos y clases con nombre", - "An_interface_property_cannot_have_an_initializer_1246": "Una propiedad de interfaz no puede tener un inicializador.", - "An_iterator_must_have_a_next_method_2489": "Un iterador debe tener un método \"next()\".", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Se necesita una pragma @jsxFrag cuando se usa una pragma @jsx con fragmentos de JSX.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Un literal de objeto no puede tener varios descriptores de acceso get o set con el mismo nombre.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un literal de objeto no puede tener varias propiedades con el mismo nombre.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un literal de objeto no puede tener una propiedad y un descriptor de acceso con el mismo nombre.", - "An_object_member_cannot_be_declared_optional_1162": "Un miembro de objeto no se puede declarar como opcional.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "Una cadena opcional no puede contener identificadores privados.", - "An_optional_element_cannot_follow_a_rest_element_1266": "Un elemento opcional no puede seguir a un elemento rest.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Este contenedor reemplaza un valor externo de \"this\".", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Una signatura de sobrecarga no se puede declarar como generador.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "No se admite una expresión unaria con el operador '{0}' en el lado izquierdo de una expresión de exponenciación. Considere la posibilidad de incluir la expresión entre paréntesis.", - "Annotate_everything_with_types_from_JSDoc_95043": "Anotar todo con tipos de JSDoc", - "Annotate_with_type_from_JSDoc_95009": "Anotar con tipo de JSDoc", - "Another_export_default_is_here_2753": "Aquí hay otro valor export default.", - "Are_you_missing_a_semicolon_2734": "¿Falta un punto y coma?", - "Argument_expression_expected_1135": "Se esperaba una expresión de argumento.", - "Argument_for_0_option_must_be_Colon_1_6046": "El argumento para la opción \"{0}\" debe ser {1}.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "El argumento de importación dinámica no puede ser un elemento de propagación.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "No se puede asignar un argumento de tipo \"{0}\" al parámetro de tipo \"{1}\".", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "El argumento de tipo '{0}' no se puede asignar al parámetro de tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" a los tipos de propiedades del destino.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "No se proporcionaron argumentos para el parámetro rest \"{0}\".", - "Array_element_destructuring_pattern_expected_1181": "Se esperaba un patrón de desestructuración de elementos de matriz.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Las aserciones requieren que todos los nombres del destino de llamada se declaren con una anotación de tipo explícito.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Las aserciones requieren que el destino de llamada sea un identificador o un nombre calificado.", - "Asterisk_Slash_expected_1010": "Se esperaba \"*/\".", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Los aumentos del ámbito global solo pueden anidarse directamente en módulos externos o en declaraciones de módulos de ambiente.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Los aumentos del ámbito global deben tener el modificador 'declare', a menos que aparezcan en un contexto de ambiente.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La detección automática de escritura está habilitada en el proyecto '{0}'. Se va a ejecutar un paso de resolución extra para el módulo '{1}' usando la ubicación de caché '{2}'.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "La expresión Await no se puede usar dentro de un bloque estático de clase.", - "BUILD_OPTIONS_6919": "OPCIONES DE COMPILACIÓN", - "Backwards_Compatibility_6253": "Compatibilidad con versiones anteriores", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Las expresiones de clase base no pueden hacer referencia a parámetros de tipo de clase.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "El tipo de valor devuelto del constructor base \"{0}\" no es un tipo de objeto ni una intersección de tipos de objeto con miembros conocidos estáticamente.", - "Base_constructors_must_all_have_the_same_return_type_2510": "Todos los constructores base deben tener el mismo tipo de valor devuelto.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "Directorio base para resolver nombres de módulos no absolutos.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Los literales BigInt no están disponibles cuando el destino es anterior a ES2020.", - "Binary_digit_expected_1177": "Se esperaba un dígito binario.", - "Binding_element_0_implicitly_has_an_1_type_7031": "El elemento de enlace '{0}' tiene un tipo '{1}' implícito.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "Variable con ámbito de bloque '{0}' usada antes de su declaración.", - "Build_a_composite_project_in_the_working_directory_6925": "Compile un proyecto compuesto en el directorio de trabajo.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Compilar todos los proyectos, incluidos los que aparecen actualizados.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Generar uno o varios proyectos y sus dependencias, si no están actualizados", - "Build_option_0_requires_a_value_of_type_1_5073": "La opción de compilación \"{0}\" requiere un valor de tipo {1}.", - "Building_project_0_6358": "Compilando el proyecto \"{0}\"...", - "COMMAND_LINE_FLAGS_6921": "MARCAS DE LÍNEA DE COMANDOS", - "COMMON_COMMANDS_6916": "COMANDOS COMUNES", - "COMMON_COMPILER_OPTIONS_6920": "OPCIONES COMUNES DEL COMPILADOR", - "Call_decorator_expression_90028": "Llamar a la expresión decorador", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "Los tipos de valor devuelto de la signatura de llamada \"{0}\" y \"{1}\" son incompatibles.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signatura de llamada, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto \"any\".", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Las signaturas de llamada sin argumentos tienen los tipos de valor devuelto \"{0}\" y \"{1}\" no compatibles.", - "Call_target_does_not_contain_any_signatures_2346": "El destino de llamada no contiene signaturas.", - "Can_only_convert_logical_AND_access_chains_95142": "Solo pueden convertirse las cadenas lógicas Y de acceso", - "Can_only_convert_named_export_95164": "Solo se pueden convertir exportaciones con nombre.", - "Can_only_convert_property_with_modifier_95137": "Solo se puede convertir la propiedad con el modificador", - "Can_only_convert_string_concatenation_95154": "Solo puede convertirse la concatenación de cadenas", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "No se puede acceder a \"{0}.{1}\" porque \"{0}\" es un tipo, no un espacio de nombres. ¿Su intención era recuperar el tipo de la propiedad \"{1}\" en \"{0}\" con \"{0}[\"{1}\"]\"?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "No se puede acceder a las enumeraciones const de ambiente cuando se proporciona la marca \"--isolatedModules\".", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "No se puede asignar un tipo de constructor '{0}' a un tipo de constructor '{1}'.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "No se puede asignar un tipo de constructor abstracto a uno no abstracto.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "No se puede asignar a \"{0}\" porque es una clase.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "No se puede asignar a \"{0}\" porque es una constante.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "No se puede asignar a \"{0}\" porque es una función.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "No se puede asignar a \"{0}\" porque es un espacio de nombres.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "No se puede asignar a \"{0}\" porque es una propiedad de solo lectura.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "No se puede asignar a '{0}' porque es una enumeración.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "No se puede asignar a '{0}' porque es una importación.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "No se puede asignar a '{0}' porque no es una variable.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "No se puede asignar al método privado \"{0}\". No se puede escribir en los métodos privados.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "No se puede aumentar el módulo '{0}' porque se resuelve como una entidad que no es un módulo.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "No se puede aumentar el módulo \"{0}\" con exportaciones de valores porque se resuelve como una entidad que no es un módulo.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "No se pueden compilar los módulos con la opción '{0}' a no ser que la marca \"--module\" sea \"amd\" o \"system\".", - "Cannot_create_an_instance_of_an_abstract_class_2511": "No se puede crear una instancia de una clase abstracta.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "No se puede delegar la iteración en un valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero el generador que lo contiene siempre enviará \"{0}\".", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "No se puede exportar '{0}'. Solo se pueden exportar declaraciones locales desde un módulo.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "No se puede extender una clase '{0}'. El constructor de la clase está marcado como privado.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "No se puede extender una interfaz '{0}'. ¿Quiso decir 'implements'?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "No se encuentra ningún archivo tsconfig.json en el directorio actual: {0}", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "No se encuentra ningún archivo tsconfig.json en el directorio especificado: \"{0}\".", - "Cannot_find_global_type_0_2318": "No se encuentra el tipo '{0}' global.", - "Cannot_find_global_value_0_2468": "No se encuentra el valor '{0}' global.", - "Cannot_find_lib_definition_for_0_2726": "No se encuentra la definición lib para \"{0}\".", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "No se encuentra la definición lib para \"{0}\". ¿Quiso decir \"{1}\"?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "No se encuentra el módulo \"{0}\". Considere la posibilidad de usar \"--resolveJsonModule\" para importar el módulo con la extensión \".json\".", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "No se encuentra el módulo \"{0}\". ¿Pretendía establecer la opción \"moduleResolution\" en \"node\" o agregar alias a la opción \"paths\"?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "No se encuentra el módulo \"{0}\" ni sus declaraciones de tipos correspondientes.", - "Cannot_find_name_0_2304": "No se encuentra el nombre '{0}'.", - "Cannot_find_name_0_Did_you_mean_1_2552": "No se encuentra el nombre \"{0}\". ¿Quería decir \"{1}\"?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "No se encuentra el nombre '{0}'. ¿Quería decir el miembro de instancia 'this.{0}'?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "No se encuentra el nombre '{0}'. ¿Quería decir el miembro estático '{1}.{0}'?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "No se puede encontrar el nombre \"{0}\". ¿Ha querido escribir esto en una función asincrónica?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "No se encuentra el nombre \"{0}\". ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a \"{1}\" o posterior.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "No se encuentra el nombre \"{0}\". ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" para incluir \"dom\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para un ejecutor de pruebas? Pruebe \"npm i --save-dev @types/jest\" o \"npm i --save-dev @types/mocha\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para un test runner? Pruebe \"npm i --save-dev @types/jest\" o \"npm i --save-dev @types/mocha\" y, a continuación, agregue \"jest\" o \"mocha\" al campo de tipos del archivo tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para jQuery? Pruebe \"npm i --save-dev @types/jquery\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para jQuery? Pruebe \"npm i --save-dev @types/jquery\" y, a continuación, agregue \"jquery\" al campo de tipos del archivo tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para el nodo? Pruebe \"npm i --save-dev @types/node\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para el nodo? Pruebe \"npm i --save-dev @types/node\" y, a continuación, agregue \"node\" al campo de tipos del archivo tsconfig.", - "Cannot_find_namespace_0_2503": "No se encuentra el espacio de nombres '{0}'.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "No se encuentra el espacio de nombres \"{0}\". ¿Quería decir \"{1}\"?", - "Cannot_find_parameter_0_1225": "No se encuentra el parámetro '{0}'.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "No se encuentra la ruta de acceso de subdirectorio común para los archivos de entrada.", - "Cannot_find_type_definition_file_for_0_2688": "No se puede encontrar el archivo de definición de tipo para '{0}'.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "No se pueden importar archivos de declaración de tipos. Considere importar \"{0}\" en lugar de \"{1}\".", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "No se puede inicializar la variable '{0}' de ámbito externo en el mismo ámbito que la declaración '{1}' con ámbito de bloque.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "No se puede invocar un objeto que es posiblemente \"null\".", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "No se puede invocar un objeto que es posiblemente \"null\" o \"no definido\".", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "No se puede invocar un objeto que es posiblemente \"no definido\".", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero la desestructuración de matriz siempre enviará \"{0}\".", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero la propagación de matriz siempre enviará \"{0}\".", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero for-of siempre enviará \"{0}\".", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "No se puede anteponer el proyecto \"{0}\" porque no se ha establecido \"outFile\".", - "Cannot_read_file_0_5083": "No se puede leer el archivo \"{0}\".", - "Cannot_read_file_0_Colon_1_5012": "No se puede leer el archivo \"{0}\": {1}.", - "Cannot_redeclare_block_scoped_variable_0_2451": "No se puede volver a declarar la variable con ámbito de bloque '{0}'.", - "Cannot_redeclare_exported_variable_0_2323": "No se puede volver a declarar la variable '{0}' exportada.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "No se puede volver a declarar el identificador \"{0}\" en la cláusula catch.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "No se puede iniciar una llamada de función en una anotación de tipo.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "No se puede actualizar la salida del proyecto \"{0}\" porque se produjo un error al leer el archivo \"{1}\".", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "JSX no se puede usar si no se proporciona la marca \"--jsx\".", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "No se puede utilizar “exportar importar” en un espacio de nombres de tipo o solo de tipo cuando se proporciona la marca \"--isolatedModules\".", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "No se pueden usar importaciones, exportaciones o aumentos de módulos si el valor de \"--module\" es \"none\".", - "Cannot_use_namespace_0_as_a_type_2709": "No se puede utilizar el espacio de nombres '{0}' como un tipo.", - "Cannot_use_namespace_0_as_a_value_2708": "No se puede utilizar el espacio de nombres '{0}' como un valor.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "No se puede usar 'this' en un inicializador de propiedad estática de una clase decorada.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "No se puede escribir en el archivo \"{0}\" porque este sobrescribirá el archivo \".tsbuildinfo\" que el proyecto \"{1}\" al que se hace referencia ha generado.", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "No se puede escribir en el archivo '{0}' porque se sobrescribiría con varios archivos de entrada.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "No se puede escribir en el archivo '{0}' porque sobrescribiría el archivo de entrada.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "La variable de la cláusula catch no puede tener un inicializador.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "La anotación de tipo de variable de la cláusula catch debe ser \"any\" o \"unknown\" si se especifica.", - "Change_0_to_1_90014": "Cambiar \"{0}\" a \"{1}\"", - "Change_all_extended_interfaces_to_implements_95038": "Cambiar todas las interfaces mejoradas a \"implements\"", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "Cambiar todos los tipos de jsdoc-style a TypeScript", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "Cambiar todos los tipos de jsdoc-style a TypeScript (y agregar \"| undefined\" a los tipos que aceptan valores NULL)", - "Change_extends_to_implements_90003": "Cambiar \"extends\" a \"implements\"", - "Change_spelling_to_0_90022": "Cambiar la ortografía a \"{0}\"", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Compruebe las propiedades de clase declaradas pero no establecidas en el constructor.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Compruebe que los argumentos de los métodos 'bind', 'call' y 'apply' coinciden con la función original.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Comprobando si '{0}' es el prefijo coincidente más largo para '{1}' - '{2}'.", - "Circular_definition_of_import_alias_0_2303": "Definición circular del alias de importación '{0}'.", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "Se detectó circularidad al resolver la configuración: {0}", - "Circularity_originates_in_type_at_this_location_2751": "La circularidad se origina en el tipo de esta ubicación.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "La clase '{0}' define el descriptor de acceso del miembro de instancia como '{1}', pero la clase extendida '{2}' lo define como función miembro de instancia.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "La clase '{0}' define la función miembro de instancia como '{1}', pero la clase extendida '{2}' la define como descriptor de acceso de miembro de instancia.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "La clase '{0}' define la propiedad de miembro de instancia como '{1}', pero la clase extendida '{2}' la define como función miembro de instancia.", - "Class_0_incorrectly_extends_base_class_1_2415": "La clase '{0}' extiende la clase base '{1}' de forma incorrecta.", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "La clase \"{0}\" no implementa correctamente la clase \"{1}\". ¿Pretendía extender \"{1}\" y heredar sus miembros como una subclase?", - "Class_0_incorrectly_implements_interface_1_2420": "La clase '{0}' implementa la interfaz '{1}' de forma incorrecta.", - "Class_0_used_before_its_declaration_2449": "Se ha usado la clase \"{0}\" antes de declararla.", - "Class_constructor_may_not_be_a_generator_1368": "El constructor de clase no puede ser un generador.", - "Class_constructor_may_not_be_an_accessor_1341": "El constructor de clase no puede ser un descriptor de acceso.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "La declaración de clase no puede implementar la lista de sobrecarga para '{0}'.", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Las declaraciones de clase no pueden tener más de una etiqueta \"@augments\" o \"@extends\".", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Los elementos Decorator de una clase no se pueden usar con un identificador privado estático. Pruebe a quitar el elemento Decorator experimental.", - "Class_name_cannot_be_0_2414": "El nombre de la clase no puede ser \"{0}\".", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "El nombre de clase no puede ser \"Object\" cuando el destino es ES5 con un módulo {0}.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "El lado estático de la clase '{0}' extiende el lado estático de la clase base '{1}' de forma incorrecta.", - "Classes_can_only_extend_a_single_class_1174": "Las clases solo pueden extender una clase única.", - "Classes_may_not_have_a_field_named_constructor_18006": "Las clases no pueden tener un campo denominado \"constructor\".", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "El código contenido en una clase se calcula en el modo STRICT de JavaScript que no permite este uso de '{0}'. Para obtener más información, consulte https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.", - "Command_line_Options_6171": "Opciones de la línea de comandos", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compila el proyecto teniendo en cuenta la ruta de acceso a su archivo de configuración o a una carpeta con un archivo \"tsconfig.json\".", - "Compiler_Diagnostics_6251": "Diagnóstico del compilador", - "Compiler_option_0_expects_an_argument_6044": "La opción '{0}' del compilador espera un argumento.", - "Compiler_option_0_may_not_be_used_with_build_5094": "La opción \"--{0}\" del compilador no se puede usar con \"--build\".", - "Compiler_option_0_may_only_be_used_with_build_5093": "La opción \"--{0}\" del compilador solo se puede usar con \"--build\".", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "La opción del compilador \"{0}\" del valor \"{1}\" es inestable. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".", - "Compiler_option_0_requires_a_value_of_type_1_5024": "La opción '{0}' del compilador requiere un valor de tipo {1}.", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "El compilador reserva el nombre \"{0}\" al emitir un identificador privado válido para versiones anteriores.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Compila el proyecto TypeScript ubicado en la ruta de acceso especificada.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "Compila el proyecto actual (tsconfig.json en el directorio de trabajo).", - "Compiles_the_current_project_with_additional_settings_6929": "Compila el proyecto actual con opciones de configuración adicionales", - "Completeness_6257": "Integridad", - "Composite_projects_may_not_disable_declaration_emit_6304": "Los proyectos compuestos no pueden deshabilitar la emisión de declaración.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "Los proyectos compuestos no pueden deshabilitar la compilación incremental.", - "Computed_from_the_list_of_input_files_6911": "Calculado a partir de la lista de archivos de entrada", - "Computed_property_names_are_not_allowed_in_enums_1164": "No se permiten nombres de propiedad calculada en las enumeraciones.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "No se permiten valores calculados en una enumeración que tiene miembros con valores de cadena.", - "Concatenate_and_emit_output_to_single_file_6001": "Concatenar y emitir la salida en un único archivo.", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Se encontraron definiciones de '{0}' en conflicto en '{1}' y '{2}'. Puede instalar una versión específica de esta biblioteca para resolver el conflicto.", - "Conflicts_are_in_this_file_6201": "Hay conflictos en este archivo.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "Considere agregar un modificador 'declare' a esta clase.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Los tipos de valor devuelto de la signatura de construcción \"{0}\" y \"{1}\" son incompatibles.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "La signatura de construcción, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto \"any\".", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "Las signaturas de construcción sin argumentos tienen los tipos de valor devuelto \"{0}\" y \"{1}\" no compatibles.", - "Constructor_implementation_is_missing_2390": "Falta la implementación del constructor.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "El constructor de la clase '{0}' es privado y solo es accesible desde la declaración de la clase.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "El constructor de la clase '{0}' está protegido y solo es accesible desde la declaración de la clase.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "La notación de tipo de constructor debe incluirse entre paréntesis cuando se use en un tipo de unión.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "La notación de tipo de constructor debe incluirse entre paréntesis cuando se use en un tipo de intersección.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "Los constructores de las clases derivadas deben contener una llamada a \"super\".", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "El archivo contenedor no se ha especificado y no se puede determinar el directorio raíz. Se omitirá la búsqueda en la carpeta 'node_modules'.", - "Containing_function_is_not_an_arrow_function_95128": "La función contenedora no es una función de flecha", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "Controlar qué método se usa para detectar archivos JS con formato de módulo.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "La conversión del tipo \"{0}\" al tipo \"{1}\" puede ser un error, porque ninguno de los tipos se superpone suficientemente al otro. Si esto era intencionado, convierta primero la expresión en \"unknown\".", - "Convert_0_to_1_in_0_95003": "Convertir \"{0}\" a \"{1} en \"{0}\"", - "Convert_0_to_mapped_object_type_95055": "Convertir \"{0}\" en el tipo de objeto asignado", - "Convert_all_const_to_let_95102": "Convertir todo \"const\" en \"let\"", - "Convert_all_constructor_functions_to_classes_95045": "Convertir todas las funciones de constructor en clases", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertir todas las importaciones no usadas como valor para las importaciones solo de tipo", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertir todos los caracteres no válidos al código de entidad HTML", - "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertir todos los tipos reexportados en exportaciones solo de tipo", - "Convert_all_require_to_import_95048": "Convertir todas las repeticiones de \"require\" en \"import\"", - "Convert_all_to_async_functions_95066": "Convertir todo en funciones asincrónicas", - "Convert_all_to_bigint_numeric_literals_95092": "Convertir todo en literales numéricos bigint", - "Convert_all_to_default_imports_95035": "Convertir todo en importaciones predeterminadas", - "Convert_all_type_literals_to_mapped_type_95021": "Convertir todos los literales de tipo en un tipo asignado", - "Convert_arrow_function_or_function_expression_95122": "Convertir una función de flecha o una expresión de función", - "Convert_const_to_let_95093": "Convertir \"const\" en \"let\"", - "Convert_default_export_to_named_export_95061": "Convertir una exportación predeterminada en exportación con nombre", - "Convert_function_declaration_0_to_arrow_function_95106": "Convertir la declaración de función \"{0}\" en función de flecha", - "Convert_function_expression_0_to_arrow_function_95105": "Convertir la expresión de función \"{0}\" en función de flecha", - "Convert_function_to_an_ES2015_class_95001": "Convertir la función en una clase ES2015", - "Convert_invalid_character_to_its_html_entity_code_95100": "Convertir un carácter no válido a su código de entidad HTML", - "Convert_named_export_to_default_export_95062": "Convertir una exportación con nombre en exportación predeterminada", - "Convert_named_imports_to_default_import_95170": "Convertir importaciones con nombre en importación predeterminada", - "Convert_named_imports_to_namespace_import_95057": "Convertir importaciones con nombre en una importación de espacio de nombres", - "Convert_namespace_import_to_named_imports_95056": "Convertir una importación de espacio de nombres en importaciones con nombre", - "Convert_overload_list_to_single_signature_95118": "Convertir lista de sobrecargas en firma única", - "Convert_parameters_to_destructured_object_95075": "Convertir los parámetros en un objeto desestructurado", - "Convert_require_to_import_95047": "Convertir \"require\" en \"import\"", - "Convert_to_ES_module_95017": "Convertir en módulo ES", - "Convert_to_a_bigint_numeric_literal_95091": "Convertir en un literal numérico bigint", - "Convert_to_anonymous_function_95123": "Convertir en función anónima", - "Convert_to_arrow_function_95125": "Convertir en función de flecha", - "Convert_to_async_function_95065": "Convertir en función asincrónica", - "Convert_to_default_import_95013": "Convertir en importación predeterminada", - "Convert_to_named_function_95124": "Convertir en función con nombre", - "Convert_to_optional_chain_expression_95139": "Convertir en expresión de cadena opcional", - "Convert_to_template_string_95096": "Convertir en cadena de plantilla", - "Convert_to_type_only_export_1364": "Convertir en exportación solo de tipo", - "Convert_to_type_only_import_1373": "Convertir en importación solo de tipo", - "Corrupted_locale_file_0_6051": "Archivo de configuración regional {0} dañado.", - "Could_not_convert_to_anonymous_function_95153": "No se puede convertir a una función anónima", - "Could_not_convert_to_arrow_function_95151": "No se puede convertir a una función de flecha", - "Could_not_convert_to_named_function_95152": "No se puede convertir a una función con nombre", - "Could_not_determine_function_return_type_95150": "No se puede determinar el tipo de valor devuelto de la función", - "Could_not_find_a_containing_arrow_function_95127": "No se pudo encontrar una función de flecha contenedora", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "No se encontró ningún archivo de declaración para el módulo '{0}'. '{1}' tiene un tipo \"any\" de forma implícita.", - "Could_not_find_convertible_access_expression_95140": "No se encontró la expresión de acceso convertible.", - "Could_not_find_export_statement_95129": "No se pudo encontrar la instrucción export", - "Could_not_find_import_clause_95131": "No se pudo encontrar la cláusula import", - "Could_not_find_matching_access_expressions_95141": "No se encontraron expresiones de acceso coincidentes.", - "Could_not_find_name_0_Did_you_mean_1_2570": "No se ha encontrado el nombre \"{0}\". ¿Quiso decir \"{1}\"?", - "Could_not_find_namespace_import_or_named_imports_95132": "No se pudo encontrar la importación del espacio de nombres ni las importaciones con nombre", - "Could_not_find_property_for_which_to_generate_accessor_95135": "No se pudo encontrar la propiedad para la que se debe generar el descriptor de acceso", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "No se pudo resolver la ruta de acceso \"{0}\" con las extensiones: {1}.", - "Could_not_write_file_0_Colon_1_5033": "No se puede escribir en el archivo \"{0}\": \"{1}\".", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "Cree archivos de mapa de origen para los archivos JavaScript emitidos.", - "Create_sourcemaps_for_d_ts_files_6614": "Cree mapas de origen para archivos d.ts.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crea un archivo tsconfig.json con la configuración recomendada en el directorio de trabajo.", - "DIRECTORY_6038": "DIRECTORIO", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "La declaración aumenta una declaración en otro archivo. Esta operación no se puede serializar.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\" del módulo \"{1}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.", - "Declaration_expected_1146": "Se esperaba una declaración.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Conflictos entre nombres de declaración con el identificador global '{0}' integrado.", - "Declaration_or_statement_expected_1128": "Se esperaba una declaración o una instrucción.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Se esperaba una declaración o una instrucción. El elemento \"=\" sigue a un bloque de instrucciones por lo que, si pretendía escribir una asignación de desestructuración, puede que sea necesario incluir toda la asignación entre paréntesis.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Las declaraciones con aserciones de asignación definitiva deben tener también anotaciones de tipo.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Las declaraciones con inicializadores no pueden tener también aserciones de asignación definitiva.", - "Declare_a_private_field_named_0_90053": "Declare un campo privado denominado \"{0}\".", - "Declare_method_0_90023": "Declarar el método \"{0}\"", - "Declare_private_method_0_90038": "Declarar el método \"{0}\" privado", - "Declare_private_property_0_90035": "Declarar la propiedad \"{0}\" privada", - "Declare_property_0_90016": "Declarar la propiedad \"{0}\"", - "Declare_static_method_0_90024": "Declarar el método estático \"{0}\"", - "Declare_static_property_0_90027": "Declarar la propiedad estática \"{0}\"", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "El tipo de valor devuelto de la función Decorator \"{0}\" no se puede asignar al tipo \"{1}\".", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "El tipo de valor devuelto de la función Decorator es \"{0}\" pero se espera que sea \"void\" o \"any\".", - "Decorators_are_not_valid_here_1206": "Los elementos Decorator no son válidos aquí.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "No se pueden aplicar elementos Decorator a varios descriptores de acceso get o set con el mismo nombre.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "Los elementos Decorator no se pueden aplicar a los parámetros \"this\".", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Los decoradores deben preceder al nombre y a todas las palabras clave de las declaraciones de propiedad.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Variables de cláusula catch predeterminadas como \"unknown\" en lugar de \"any\".", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "La exportación predeterminada del módulo tiene o usa el nombre privado '{0}'.", - "Default_library_1424": "Biblioteca predeterminada", - "Default_library_for_target_0_1425": "Biblioteca predeterminada para el destino \"{0}\"", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Las definiciones de los identificadores siguientes entran en conflicto con las de otro archivo: {0}", - "Delete_all_unused_declarations_95024": "Eliminar todas las declaraciones sin usar", - "Delete_all_unused_imports_95147": "Eliminar todas las importaciones sin usar", - "Delete_all_unused_param_tags_95172": "Eliminar todas las etiquetas \"@param\" sin usar", - "Delete_the_outputs_of_all_projects_6365": "Eliminar las salidas de todos los proyectos.", - "Delete_unused_param_tag_0_95171": "Eliminar la etiqueta \"@param\" sin usar \"{0}\"", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[En desuso] Use \"--jsxFactory\" en su lugar. Especifique el objeto invocado para createElement cuando el destino sea la emisión de JSX \"react\"", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[En desuso] Use \"--outFile\" en su lugar. Concatena y emite la salida en un solo archivo.", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[En desuso] Use \"--skipLibCheck\" en su lugar. Omite la comprobación de tipos de los archivos de declaración de biblioteca predeterminados.", - "Deprecated_setting_Use_outFile_instead_6677": "Valor en desuso. Use \"outFile\" en su lugar.", - "Did_you_forget_to_use_await_2773": "¿Olvidó usar \"await\"?", - "Did_you_mean_0_1369": "¿Quiso decir \"{0}\"?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "¿Quiso decir que \"{0}\" se restrinja al tipo \"new (...args: any[]) => {1}\"?", - "Did_you_mean_to_call_this_expression_6212": "¿Pretendía llamar a esta expresión?", - "Did_you_mean_to_mark_this_function_as_async_1356": "¿Pretendía marcar esta función como \"async\"?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "¿Pretendía usar \":\"? El símbolo \"=\" solo puede seguir a un nombre de propiedad cuando el literal de objeto contenedor forma parte de un patrón de desestructuración.", - "Did_you_mean_to_use_new_with_this_expression_6213": "¿Pretendía usar \"new\" con esta expresión?", - "Digit_expected_1124": "Se esperaba un dígito.", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "El directorio \"{0}\" no existe, se omitirán todas las búsquedas en él.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "El directorio \"{0}\" no tiene ningún ámbito que contenga package.json. Las importaciones no se resolverán.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "Deshabilite la adición de directivas \"use strict\" en archivos JavaScript emitidos.", - "Disable_checking_for_this_file_90018": "Deshabilitar la comprobación para este archivo", - "Disable_emitting_comments_6688": "Deshabilite el poder escribir comentarios.", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "Deshabilite la emisión de declaraciones que tienen \"@internal\" en los comentarios de JSDoc.", - "Disable_emitting_files_from_a_compilation_6660": "Deshabilita la emisión de archivos de una compilación.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "Deshabilite la emisión de archivos si se informa algún error de comprobación de tipos.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Deshabilite el borrado de declaraciones \"enumeración const\" en el código generado.", - "Disable_error_reporting_for_unreachable_code_6603": "Deshabilite los informes de errores para los códigos inaccesibles.", - "Disable_error_reporting_for_unused_labels_6604": "Deshabilite los informes de errores para etiquetas sin usar.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Deshabilite la generación de funciones auxiliares personalizadas como \"__extends\" en la salida compilada.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Deshabilite la inclusión de cualquier archivo de biblioteca, incluido el archivo predeterminado lib.d.ts.", - "Disable_loading_referenced_projects_6235": "Deshabilite la carga de proyectos a los que se hace referencia.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "Deshabilite la preferencia de archivos de código fuente en lugar de archivos de declaración cuando haga referencia a proyectos compuestos.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "Deshabilite la creación de informes de errores de exceso de propiedad durante la creación de literales de objetos.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "Deshabilite la resolución de symlink a su realpath. Se corresponde con la misma marca en el nodo.", - "Disable_size_limitations_on_JavaScript_projects_6162": "Deshabilitar los límites de tamaño de proyectos de JavaScript.", - "Disable_solution_searching_for_this_project_6224": "Deshabilite la búsqueda de la solución para este proyecto.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "Deshabilite la comprobación estricta de firmas genéricas en tipos de función.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "Deshabilitar el tipo de adquisición para proyectos de JavaScript", - "Disable_truncating_types_in_error_messages_6663": "Deshabilite los tipos truncados en los mensajes de error.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "Deshabilite el uso de los archivos de código fuente en lugar de los archivos de declaración de los proyectos a los que se hace referencia.", - "Disable_wiping_the_console_in_watch_mode_6684": "Deshabilita la eliminación de la consola en modo inspección.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "Deshabilite la inferencia para la adquisición de tipos consultando los nombres de los archivos de un proyecto.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "No permita que ningún \"import\", \"require\" o \"\" amplíe el número de archivos que TypeScript debe agregar a un proyecto.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "No permitir referencias al mismo archivo con un uso incoherente de mayúsculas y minúsculas.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "No agregar módulos importados ni referencias con triple barra diagonal a la lista de archivos compilados.", - "Do_not_emit_comments_to_output_6009": "No emitir comentarios en la salida.", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "No emitir declaraciones para el código que tiene una anotación \"@internal\".", - "Do_not_emit_outputs_6010": "No emitir salidas.", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "No emitir salidas si se informa de algún error.", - "Do_not_emit_use_strict_directives_in_module_output_6112": "No emitir directivas 'use strict' en la salida del módulo.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "No borrar las declaraciones de enumeración const en el código generado.", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "No generar funciones del asistente personalizadas como \"__extends\" en la salida compilada.", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "No incluir el archivo de biblioteca predeterminado (lib.d.ts).", - "Do_not_report_errors_on_unreachable_code_6077": "No notificar los errores del código inaccesible.", - "Do_not_report_errors_on_unused_labels_6074": "No notificar los errores de las etiquetas no usadas.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "No resolver la ruta de acceso real de los vínculos simbólicos.", - "Do_not_truncate_error_messages_6165": "No truncar los mensajes de error.", - "Duplicate_function_implementation_2393": "Implementación de función duplicada.", - "Duplicate_identifier_0_2300": "Identificador '{0}' duplicado.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "Identificador '{0}' duplicado. El compilador se reserva el nombre '{1}' en el ámbito de nivel superior de un módulo.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "Identificador '{0}' duplicado. El compilador reserva el nombre '{1}' en el ámbito de nivel superior de un módulo que contiene funciones asincrónicas.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "Duplicar identificador \"{0}\". El compilador reserva el nombre \"{1}\" al emitir referencias \"super\" en inicializadores estáticos.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "Identificador '{0}' duplicado. El compilador usa la declaración '{1}' para admitir funciones asincrónicas.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "El identificador \"{0}\" está duplicado. Los elementos estáticos y de instancia no pueden compartir el mismo nombre privado.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "Identificador \"arguments\" duplicado. El compilador usa \"arguments\" para inicializar parámetros rest.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "Identificador duplicado \"_newTarget\". El compilador usa la declaración de variable \"_newTarget\" para capturar la referencia de la propiedad Meta \"new.target\".", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "Identificador \"_this\" duplicado. El compilador usa la declaración de variable \"_this\" para capturar una referencia \"this\".", - "Duplicate_index_signature_for_type_0_2374": "Signatura de índice duplicada para el tipo \"{0}\".", - "Duplicate_label_0_1114": "Etiqueta \"{0}\" duplicada.", - "Duplicate_property_0_2718": "Propiedad \"{0}\" duplicada.", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "El especificador de la importación dinámica debe ser de tipo \"string\", pero aquí tiene el tipo \"{0}\".", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Las importaciones dinámicas solo se admiten cuando la marca \"--módulo\" está establecida en \"es2020\", \"es2022\", \"esnext\", \"commonjs\", \"amd\", \"system\", \"umd\", \"node16\" o \"nodenext\".", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Las importaciones dinámicas solo pueden aceptar un especificador de módulo y una aserción opcional como argumentos", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Las importaciones dinámicas solo admiten un segundo argumento cuando la opción \"--module\" está establecida en \"esnext\", \"node16\" o \"nodenext\".", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Cada miembro del tipo de unión \"{0}\" tiene signaturas de construcción, pero ninguna de ellas es compatible entre sí.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Cada miembro del tipo de unión \"{0}\" tiene signaturas, pero ninguna de ellas es compatible entre sí.", - "Editor_Support_6249": "Compatibilidad con el editor", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "El elemento tiene un tipo \"any\" de forma implícita porque la expresión de tipo \"{0}\" no se puede usar para indexar el tipo \"{1}\".", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "El elemento tiene un tipo 'any' implícito porque la expresión de índice no es de tipo 'number'.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "El elemento tiene un tipo \"any\" implícito porque el tipo '{0}' no tiene signatura de índice.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "El elemento tiene un tipo \"any\" implícito porque el tipo \"{0}\" no tiene ninguna signatura de índice. ¿Pretendía llamar a \"{1}\"?", - "Emit_6246": "Emitir", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "Emita campos de clases compatibles con el estándar de ECMAScript.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "Emitir una marca BOM UTF-8 al principio de los archivos de salida.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "Emitir un solo archivo con mapas de origen en lugar de tener un archivo aparte.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "Emita un perfil de CPU v8 de la ejecución del compilador para la depuración.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "Emita un JavaScript adicional para facilitar la importación de módulos CommonJS. Esto habilita \"allowSyntheticDefaultImports\" para la compatibilidad de tipos.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Emita campos de clase con Define en lugar de Set.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "Emita metadatos de tipo de diseño para las declaraciones decoradas en los archivos de origen.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "Emita un JavaScript más compatible, pero más detallado y de menor rendimiento para la iteración.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "Emitir el origen junto a los mapas de origen en un solo archivo; requiere que se establezca \"--inlineSourceMap\" o \"--sourceMap\".", - "Enable_all_strict_type_checking_options_6180": "Habilitar todas las opciones de comprobación de tipos estricta.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Habilite el color y el formato en la salida de TypeScript para facilitar la lectura de los errores del compilador.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "Habilite restricciones que permitan usar un proyecto TypeScript con referencias del proyecto.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "Habilite el informe de errores para rutas de código que no devuelvan explícitamente una función.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "Habilite el informe de errores para expresiones y declaraciones con un tipo \"any\" implícito.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "Habilite los informes de errores para los casos de fallthrough en instrucciones switch.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Habilite el informe de errores en los archivos JavaScript de comprobación de tipos.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Habilite el informe de errores cuando una variable local no se lea.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Habilite el informe de errores cuando a 'this' se le asigna el tipo 'any'.", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Habilite un soporte experimental para los elementos Decorator borradores de la fase 2 de TC39.", - "Enable_importing_json_files_6689": "Habilite la importación de archivos .json.", - "Enable_project_compilation_6302": "Habilitar la compilación de proyecto", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Habilite los métodos estrictos \"bind\", \"call\" y \"apply\" en las funciones.", - "Enable_strict_checking_of_function_types_6186": "Habilite la comprobación estricta de los tipos de función.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "Habilite la comprobación estricta de inicialización de propiedades en las clases.", - "Enable_strict_null_checks_6113": "Habilitar comprobaciones estrictas de elementos nulos.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "Habilite la opción \"experimentalDecorators\" en el archivo de configuración.", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "Habilite la marca \"--jsx\" en el archivo de configuración.", - "Enable_tracing_of_the_name_resolution_process_6085": "Habilitar seguimiento del proceso de resolución de nombres.", - "Enable_verbose_logging_6713": "Habilitar el registro detallado.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Permite emitir interoperabilidad entre módulos CommonJS y ES mediante la creación de objetos de espacio de nombres para todas las importaciones. Implica \"allowSyntheticDefaultImports\".", - "Enables_experimental_support_for_ES7_decorators_6065": "Habilita la compatibilidad experimental con los elementos Decorator de ES7.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "Habilita la compatibilidad experimental para emitir metadatos de tipo para los elementos Decorator.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "Exige el uso de descriptores de acceso indexados para las claves declaradas mediante un tipo indexado.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "Asegúrese de que al invalidar miembros en clases derivadas, estos están marcados con un modificador de invalidación.", - "Ensure_that_casing_is_correct_in_imports_6637": "Verifique el uso correcto de mayúsculas y minúsculas en las importaciones.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Asegúrese de que cada archivo pueda transpilarse con seguridad sin depender de otras importaciones.", - "Ensure_use_strict_is_always_emitted_6605": "Asegúrese de que siempre se emite \"use strict\".", - "Entry_point_for_implicit_type_library_0_1420": "Punto de entrada para la biblioteca de tipos implícitos \"{0}\"", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Punto de entrada para la biblioteca de tipos implícitos \"{0}\" con el valor packageId \"{1}\"", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Punto de entrada de la biblioteca de tipos \"{0}\" que se especifica en compilerOptions", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "Punto de entrada de la biblioteca de tipos \"{0}\" que se especifica en compilerOptions con el valor packageId \"{1}\"", - "Enum_0_used_before_its_declaration_2450": "Se ha usado la enumeración \"{0}\" antes de declararla.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Las declaraciones de enumeración solo se pueden combinar con otras declaraciones de enumeración o de espacio de nombres.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "Todas las declaraciones de enumeración deben ser de tipo const o no const.", - "Enum_member_expected_1132": "Se esperaba un miembro de enumeración.", - "Enum_member_must_have_initializer_1061": "El miembro de enumeración debe tener un inicializador.", - "Enum_name_cannot_be_0_2431": "El nombre de la enumeración no puede ser \"{0}\".", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "El tipo de enumeración \"{0}\" tiene miembros con inicializadores que no son literales.", - "Errors_Files_6041": "Archivos de errores", - "Examples_Colon_0_6026": "Ejemplos: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "Profundidad excesiva de la pila al comparar los tipos '{0}' y '{1}'.", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Se esperaban argumentos de tipo {0}-{1}; proporciónelos con una etiqueta \"@extends\".", - "Expected_0_arguments_but_got_1_2554": "Se esperaban {0} argumentos, pero se obtuvieron {1}.", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Se esperaban {0} argumentos, pero se obtuvo un total de {1}. ¿Olvidó incluir \"void\" en el argumento de tipo para \"Promise\"?", - "Expected_0_type_arguments_but_got_1_2558": "Se esperaban {0} argumentos de tipo, pero se obtuvieron {1}.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Se esperaban argumentos de tipo {0}; proporciónelos con una etiqueta \"@extends\".", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Se esperaba 1 argumento, pero se obtuvo 0. \"new Promise()\" necesita una pista de JSDoc para producir un \"resolve\" que pueda llamarse sin argumentos.", - "Expected_at_least_0_arguments_but_got_1_2555": "Se esperaban al menos {0} argumentos, pero se obtuvieron {1}.", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "Se esperaba la etiqueta de cierre JSX correspondiente de '{0}'.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Se esperaba la etiqueta de cierre correspondiente para el fragmento de JSX.", - "Expected_for_property_initializer_1442": "Se esperaba '=' para el inicializador de propiedades.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Se esperaba que el tipo del campo \"{0}\" en \"package.json\" fuese \"{1}\", pero se obtuvo \"{2}\".", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "La compatibilidad experimental con los decoradores es una característica que está sujeta a cambios en una próxima versión. Establezca la opción \"experimentalDecorators\" en \"tsconfig\" o \"jsconfig\" para quitar esta advertencia.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Tipo de resolución de módulo especificado de forma explícita: '{0}'.", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "No se puede realizar la exponenciación en los valores \"bigint\", a menos que la opción \"target\" esté establecida en \"es2016\" o posterior.", - "Export_0_from_module_1_90059": "Exportar '{0}' desde el módulo '{1}'", - "Export_all_referenced_locals_90060": "Exportar todas las variables locales a las que se hace referencia", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "No se puede usar una asignación de exportación cuando se eligen módulos de ECMAScript como destino. Considere la posibilidad de usar \"export default\" u otro formato de módulo en su lugar.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "La asignación de exportación no es compatible cuando la marca \"--module\" es \"system\".", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "La declaración de exportación está en conflicto con la declaración exportada de \"{0}\".", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "No se permiten declaraciones de exportación en un espacio de nombres.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "El especificador de exportación \"{0}\" no existe en el ámbito package.json en la ruta de acceso \"{1}\".", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "El alias de tipo exportado '{0}' tiene o usa el nombre privado '{1}'.", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "El alias de tipo exportado \"{0}\" tiene o usa el nombre privado \"{1}\" del módulo {2}.", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "La variable exportada '{0}' tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "La variable exportada '{0}' tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variable exportada '{0}' tiene o usa el nombre privado '{1}'.", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "En aumentos de módulos, no se admiten exportaciones ni asignaciones de exportación.", - "Expression_expected_1109": "Se esperaba una expresión.", - "Expression_or_comma_expected_1137": "Se esperaba una expresión o una coma.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "La expresión genera un tipo de tupla demasiado grande para representarlo.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "La expresión genera un tipo de unión demasiado complejo para representarlo.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "La expresión se resuelve en el valor \"_super\" que el compilador usa para capturar una referencia a la clase base.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "La expresión se resuelve en una declaración de variable \"_newTarget\" que el compilador usa para capturar la referencia de la propiedad Meta \"new.target\".", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "La expresión se resuelve en la declaración de variable \"_this\" que el compilador usa para capturar una referencia \"this\".", - "Extract_constant_95006": "Extraer la constante", - "Extract_function_95005": "Extraer la función", - "Extract_to_0_in_1_95004": "Extraer a {0} en {1}", - "Extract_to_0_in_1_scope_95008": "Extraer a {0} en el ámbito {1}", - "Extract_to_0_in_enclosing_scope_95007": "Extraer a {0} en el ámbito de inclusión", - "Extract_to_interface_95090": "Extraer a la interfaz", - "Extract_to_type_alias_95078": "Extraer al alias de tipo", - "Extract_to_typedef_95079": "Extraer a typedef", - "Extract_type_95077": "Extraer el tipo", - "FILE_6035": "ARCHIVO", - "FILE_OR_DIRECTORY_6040": "ARCHIVO O DIRECTORIO", - "Failed_to_parse_file_0_Colon_1_5014": "Error al analizar el archivo '{0}': {1}.", - "Fallthrough_case_in_switch_7029": "Caso de Fallthrough en instrucción switch.", - "File_0_does_not_exist_6096": "El archivo '{0}' no existe.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "El archivo \"{0}\" no existe de acuerdo con las búsquedas en caché anteriores.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "El archivo '{0}' existe. Utilícelo como resultado de resolución de nombres.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "El archivo \"{0}\" existe de acuerdo con las búsquedas en caché anteriores.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "El archivo \"{0}\" tiene una extensión no compatible. Las únicas extensiones compatibles son {1}.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "El archivo \"{0}\" tiene una extensión no admitida, así que se omitirá.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "\"{0}\" es un archivo JavaScript. ¿Pretendía habilitar la opción \"allowJs\"?", - "File_0_is_not_a_module_2306": "El archivo '{0}' no es un módulo.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "El archivo \"{0}\" no está en la lista de archivos del proyecto \"{1}\". Los proyectos deben enumerar todos los archivos o usar un patrón \"include\".", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "El archivo '{0}' no está en \"rootDir\" '{1}'. Se espera que \"rootDir\" contenga todos los archivos de origen.", - "File_0_not_found_6053": "Archivo '{0}' no encontrado.", - "File_Management_6245": "Administración de archivos", - "File_change_detected_Starting_incremental_compilation_6032": "Se detectó un cambio de archivo. Iniciando la compilación incremental...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "El archivo es un módulo CommonJS porque “{0}” no tiene el campo “type”", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "El archivo es el módulo CommonJS porque “{0}” tiene el campo “type” cuyo valor no es “module”.", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "El archivo es un módulo CommonJS porque no se encontró “package.json”", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "El archivo es un módulo ECMAScript porque “{0}” tiene el campo “type” con el valor “module”", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "El archivo es un módulo CommonJS; se puede convertir en un módulo ES.", - "File_is_default_library_for_target_specified_here_1426": "El archivo es la biblioteca predeterminada para el destino que se especifica aquí.", - "File_is_entry_point_of_type_library_specified_here_1419": "El archivo es el punto de entrada de la biblioteca de tipos que se especifica aquí.", - "File_is_included_via_import_here_1399": "El archivo se incluye aquí a través de la importación.", - "File_is_included_via_library_reference_here_1406": "El archivo se incluye aquí a través de la referencia de la biblioteca.", - "File_is_included_via_reference_here_1401": "El archivo se incluye aquí a través de la referencia.", - "File_is_included_via_type_library_reference_here_1404": "El archivo se incluye aquí a través de la referencia de la biblioteca de tipos.", - "File_is_library_specified_here_1423": "El archivo es la biblioteca que se especifica aquí.", - "File_is_matched_by_files_list_specified_here_1410": "El archivo coincide con la lista de \"archivos\" que se especifica aquí.", - "File_is_matched_by_include_pattern_specified_here_1408": "El archivo coincide con el patrón de inclusión que se especifica aquí.", - "File_is_output_from_referenced_project_specified_here_1413": "El archivo es la salida del proyecto al que se hace referencia especificado aquí.", - "File_is_output_of_project_reference_source_0_1428": "El archivo es la salida del origen de referencia del proyecto \"{0}\".", - "File_is_source_from_referenced_project_specified_here_1416": "El archivo es el origen del proyecto al que se hace referencia especificado aquí.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "El nombre de archivo \"{0}\" es diferente del nombre de archivo \"{1}\" ya incluido solo en el uso de mayúsculas y minúsculas.", - "File_name_0_has_a_1_extension_stripping_it_6132": "El nombre de archivo \"{0}\" tiene una extensión \"{1}\" y se va a quitar.", - "File_redirects_to_file_0_1429": "El archivo redirecciona al archivo \"{0}\".", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La especificación del archivo no puede contener un directorio primario ('..') que aparezca después de un comodín de directorios recursivo ('**'): '{0}'.", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "La especificación de archivo no puede finalizar en un comodín de directorio recursivo ('**'): '{0}'.", - "Filters_results_from_the_include_option_6627": "Filtre resultados de la opción \"include\".", - "Fix_all_detected_spelling_errors_95026": "Corregir todos los errores ortográficos detectados", - "Fix_all_expressions_possibly_missing_await_95085": "Corregir todas las expresiones en las que posiblemente falte \"await\"", - "Fix_all_implicit_this_errors_95107": "Corregir todos los errores de \"this\" implícitos", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Corregir todos los tipos de valor devuelto incorrectos de las funciones asincrónicas", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Los bucles 'For await' no se pueden usar dentro de un bloque estático de clase.", - "Found_0_errors_6217": "Se encontró {0} errores.", - "Found_0_errors_Watching_for_file_changes_6194": "Se encontraron {0} errores. Supervisando los cambios del archivo.", - "Found_0_errors_in_1_files_6261": "Se han encontrado {0} errores en {1} archivos.", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Se han encontrado {0} errores en el mismo archivo, empezando por: {1}", - "Found_1_error_6216": "Se encontró 1 error.", - "Found_1_error_Watching_for_file_changes_6193": "Se encontró un error. Supervisando los cambios del archivo.", - "Found_1_error_in_1_6259": "Se ha encontrado 1 error en {1}", - "Found_package_json_at_0_6099": "Se encontró 'package.json' en '{0}'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'. Las definiciones de clase están en modo strict de forma automática.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'. Los módulos están en modo strict de forma automática.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "La expresión de función, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto '{0}'.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Falta la implementación de función o no sigue inmediatamente a la declaración.", - "Function_implementation_name_must_be_0_2389": "El nombre de la implementación de función debe ser '{0}'.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La función tiene el tipo de valor devuelto \"any\" implícitamente porque no tiene una anotación de tipo de valor devuelto y se hace referencia a ella directa o indirectamente en una de sus expresiones return.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Falta la instrucción \"return\" final en la función y el tipo de valor devuelto no incluye 'undefined'.", - "Function_not_implemented_95159": "La función no está implementada.", - "Function_overload_must_be_static_2387": "La sobrecarga de función debe ser estática.", - "Function_overload_must_not_be_static_2388": "La sobrecarga de función no debe ser estática.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "La notación de tipo de función debe incluirse entre paréntesis cuando se use en un tipo de unión.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "La notación de tipo de función debe incluirse entre paréntesis cuando se use en un tipo de intersección.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "El tipo de función, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto \"{0}\".", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "La función con cuerpos solo se puede combinar con clases que son ambientes.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "Genere archivos .d.ts desde los archivos TypeScript y JavaScript del proyecto.", - "Generate_get_and_set_accessors_95046": "Generar los descriptores de acceso \"get\" y \"set\"", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "Generar los descriptores de acceso \"get\" y \"set\" para todas las propiedades de reemplazo", - "Generates_a_CPU_profile_6223": "Genera un perfil de CPU.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "Genera un mapa de origen para cada archivo \".d.ts\" correspondiente.", - "Generates_an_event_trace_and_a_list_of_types_6237": "Genera un seguimiento de eventos y una lista de tipos.", - "Generates_corresponding_d_ts_file_6002": "Genera el archivo \".d.ts\" correspondiente.", - "Generates_corresponding_map_file_6043": "Genera el archivo \".map\" correspondiente.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "El generador tiene el tipo yield \"{0}\" implícitamente porque no produce ningún valor. Considere la posibilidad de proporcionar una anotación de tipo de valor devuelto.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "Los generadores no se permiten en un contexto de ambiente.", - "Generic_type_0_requires_1_type_argument_s_2314": "El tipo genérico '{0}' requiere los siguientes argumentos de tipo: {1}.", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "El tipo genérico \"{0}\" requiere entre {1} y {2} argumentos de tipo.", - "Global_module_exports_may_only_appear_at_top_level_1316": "Las exportaciones de módulos globales solo pueden aparecer en el nivel superior.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "Las exportaciones de módulos globales solo pueden aparecer en archivos de declaración.", - "Global_module_exports_may_only_appear_in_module_files_1314": "Las exportaciones de módulos globales solo pueden aparecer en archivos de módulo.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "El tipo global '{0}' debe ser un tipo de clase o de interfaz.", - "Global_type_0_must_have_1_type_parameter_s_2317": "El tipo global '{0}' debe tener los siguientes parámetros de tipo: {1}.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "Al volver a compilar en \"--incremental\" y \"--watch\" se asume que los cambios en un archivo solo afectarán a los archivos que dependan de este directamente.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "Hacer que las recompilaciones en los proyectos que utilizan el modo 'incremental' y 'inspección' supongan que los cambios dentro de un archivo sólo afectarán a los archivos que dependen directamente de él.", - "Hexadecimal_digit_expected_1125": "Se esperaba un dígito hexadecimal.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "Se esperaba un identificador. \"{0}\" es una palabra reservada en el nivel superior de un módulo.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "Se esperaba un identificador. \"{0}\" es una palabra reservada en modo strict.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "Se esperaba un identificador. '{0}' es una palabra reservada en modo strict. Las definiciones de clase están en modo strict automáticamente.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "Se esperaba un identificador. '{0}' es una palabra reservada en modo strict. Los módulos están en modo strict automáticamente.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Se esperaba un identificador. \"{0}\" es una palabra reservada que no se puede usar aquí.", - "Identifier_expected_1003": "Se esperaba un identificador.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. \"__esModule\" está reservado como marcador exportado al transformar módulos ECMAScript.", - "Identifier_or_string_literal_expected_1478": "Se esperaba un literal de cadena o identificador", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si el paquete \"{0}\" expone realmente este módulo, considere la posibilidad de enviar una solicitud de incorporación de cambios para corregir \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\".", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si el paquete '{0}' realmente expone este módulo, intente agregar un nuevo archivo de declaración (.d.ts) que contenga 'declarar módulo '{1}';`", - "Ignore_this_error_message_90019": "Ignorar este mensaje de error", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "Ignora tsconfig.json y se compilan los archivos especificados con las opciones predeterminadas del compilador.", - "Implement_all_inherited_abstract_classes_95040": "Implementar todas las clases abstractas heredadas", - "Implement_all_unimplemented_interfaces_95032": "Implementar todas las interfaces no implementadas", - "Implement_inherited_abstract_class_90007": "Implementar clase abstracta heredada", - "Implement_interface_0_90006": "Implementar la interfaz \"{0}\"", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La cláusula implements de la clase '{0}' exportada tiene o usa el nombre privado '{1}'.", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversión implícita de un elemento \"symbol\" en \"string\" dará un error en tiempo de ejecución. Considere la posibilidad de encapsular esta expresión en \"String (...)\".", - "Import_0_from_1_90013": "Importar “{0}” desde “{1}”", - "Import_assertion_values_must_be_string_literal_expressions_2837": "Los valores de aserción de importación deben ser expresiones literales de cadena.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Las aserciones de importación no están permitidas en instrucciones que se transpilan a llamadas \"requeridas\" de commonjs.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Las aserciones de importación solo se admiten cuando la opción \"--module\" está establecida en \"esnext\" o \"nodenext\".", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Las aserciones de importación no se pueden usar con importaciones o exportaciones de solo tipo.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "No se puede usar una asignación de importación cuando se eligen módulos de ECMAScript como destino. Considere la posibilidad de usar \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" u otro formato de módulo en su lugar.", - "Import_declaration_0_is_using_private_name_1_4000": "La declaración de importación '{0}' usa el nombre privado '{1}'.", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La declaración de importación está en conflicto con la declaración local de \"{0}\".", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Las declaraciones de importación de un espacio de nombres no pueden hacer referencia a un módulo.", - "Import_emit_helpers_from_tslib_6139": "Importe asistentes de emisión de \"tslib\".", - "Import_may_be_converted_to_a_default_import_80003": "La importación puede convertirse a una importación predeterminada.", - "Import_name_cannot_be_0_2438": "El nombre de importación no puede ser \"{0}\".", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "La declaración de importación o exportación de una declaración de módulo de ambiente no puede hacer referencia al módulo a través de su nombre relativo.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "El especificador de importación \"{0}\" no existe en el ámbito package.json en la ruta de acceso \"{1}\".", - "Imported_via_0_from_file_1_1393": "Se importó mediante {0} desde el archivo \"{1}\".", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "Se importó mediante {0} desde el archivo \"{1}\" para importar \"importHelpers\" tal y como se especifica en compilerOptions.", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "Se importó mediante {0} desde el archivo \"{1}\" para importar las funciones de fábrica \"jsx\" y \"jsxs\".", - "Imported_via_0_from_file_1_with_packageId_2_1394": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\".", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\" para importar \"importHelpers\" tal y como se especifica en compilerOptions.", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\" para importar las funciones de fábrica \"jsx\" y \"jsxs\".", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "No se permiten importaciones en aumentos de módulos. Considere la posibilidad de moverlas al módulo externo envolvente.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "En las declaraciones de enumeración de ambiente, el inicializador de miembro debe ser una expresión constante.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "En una enumeración con varias declaraciones, solo una declaración puede omitir un inicializador para el primer elemento de la enumeración.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "Incluya una lista de archivos. Esto no admite patrones globales, contrario a \"include\".", - "Include_modules_imported_with_json_extension_6197": "Incluir módulos importados con la extensión \".json\"", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Incluya el código fuente en los mapas de origen dentro del JavaScript emitido.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Incluir archivos de mapas de origen dentro del JavaScript emitido.", - "Includes_imports_of_types_referenced_by_0_90054": "Incluye importaciones de tipos a los que hace referencia \"{0}\"", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Al incluir --watch, -w empezará a ver el proyecto actual por los cambios de archivo. Una vez establecido, puede configurar el modo de inspección con:", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "Falta la signatura de índice para el tipo \"{0}\" en el tipo \"{1}\".", - "Index_signature_in_type_0_only_permits_reading_2542": "La signatura de índice del tipo '{0}' solo permite lectura.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Las declaraciones individuales de la declaración '{0}' combinada deben ser todas exportadas o todas locales.", - "Infer_all_types_from_usage_95023": "Deducir todos los tipos del uso", - "Infer_function_return_type_95148": "Deducir el tipo de valor devuelto de función", - "Infer_parameter_types_from_usage_95012": "Deducir los tipos de parámetro del uso", - "Infer_this_type_of_0_from_usage_95080": "Inferir el tipo \"this\" de \"{0}\" a partir del uso", - "Infer_type_of_0_from_usage_95011": "Deducir el tipo de \"{0}\" del uso", - "Initialize_property_0_in_the_constructor_90020": "Inicializar la propiedad \"{0}\" en el constructor", - "Initialize_static_property_0_90021": "Inicializar la propiedad estática \"{0}\"", - "Initializer_for_property_0_2811": "Inicializador para la propiedad \"{0}\"", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "El inicializador de la variable miembro de instancia '{0}' no puede hacer referencia al identificador '{1}' declarado en el constructor.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "El inicializador no proporciona ningún valor para este elemento de enlace que, a su vez, no tiene un valor predeterminado.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "No se permiten inicializadores en los contextos de ambiente.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicializa un proyecto de TypeScript y crea un archivo tsconfig.json.", - "Insert_command_line_options_and_files_from_a_file_6030": "Inserte opciones de la línea de comandos y archivos desde un archivo.", - "Install_0_95014": "Instalar \"{0}\"", - "Install_all_missing_types_packages_95033": "Instalar todos los paquetes de tipos que faltan", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "La interfaz '{0}' no puede extender los tipos '{1}' y '{2}' simultáneamente.", - "Interface_0_incorrectly_extends_interface_1_2430": "La interfaz '{0}' extiende la interfaz '{1}' de forma incorrecta.", - "Interface_declaration_cannot_have_implements_clause_1176": "La declaración de interfaz no puede tener una cláusula \"implements\".", - "Interface_must_be_given_a_name_1438": "Se debe asignar un nombre a la interfaz.", - "Interface_name_cannot_be_0_2427": "El nombre de la interfaz no puede ser \"{0}\".", - "Interop_Constraints_6252": "Restricciones de interoperabilidad", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "Interprete los tipos de propiedad opcionales como escritos en lugar de agregar \"undefined\".", - "Invalid_character_1127": "Carácter no válido.", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "El especificador de importación no válido \"{0}\" no tiene resoluciones posibles.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Nombre de módulo no válido en el aumento. El módulo '{0}' se resuelve como un módulo sin tipo en '{1}', que no se puede aumentar.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nombre de módulo no válido en un aumento, no se encuentra el módulo '{0}'.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Cadena opcional no válida de la nueva expresión. ¿Quería llamar a \"{0}()\"?", - "Invalid_reference_directive_syntax_1084": "Sintaxis de la directiva \"reference\" no válida.", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Uso no válido de '{0}'. No se puede usar dentro de un bloque estático de clase.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Uso de '{0}' no válido. Los módulos están en modo strict automáticamente.", - "Invalid_use_of_0_in_strict_mode_1100": "Uso no válido de '{0}' en modo strict.", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Valor no válido para \"jsxFactory\". \"{0}\" no es un nombre calificado o un identificador válido.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Valor no válido para \"jsxFactory\". \"{0}\" no es un nombre cualificado o un identificador válidos.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Valor no válido para '--reactNamespace'. '{0}' no es un identificador válido.", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "Es probable que falte una coma para separar estas dos expresiones de plantilla. Forman una expresión de plantilla con etiquetas que no se puede invocar.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "El tipo de elemento \"{0}\" no es un elemento JSX válido.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "El tipo de instancia \"{0}\" no es un elemento JSX válido.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "El tipo de valor devuelto \"{0}\" no es un elemento JSX válido.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "La etiqueta \"@{0} {1}\" de JSDoc no coincide con la cláusula \"extends {2}\".", - "JSDoc_0_is_not_attached_to_a_class_8022": "La etiqueta \"@{0}\" de JSDoc no está asociada a una clase.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "\"...\" de JSDoc solo puede aparecer en el último parámetro de una signatura.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "La etiqueta \"@param\" de JSDoc tiene el nombre \"{0}\", pero no hay ningún parámetro con ese nombre.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "La etiqueta de JSDoc \"@param\" tiene el nombre \"{0}\", pero no hay ningún parámetro con ese nombre. Coincidiría con \"arguments\" si tuviera un tipo de matriz.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "La etiqueta \"@typedef\" de JSDoc debe tener una anotación de tipo o ir seguida de las etiquetas \"@property\" o \"@member\".", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Los tipos JSDoc solo se pueden usar en los comentarios de la documentación.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Los tipos de JSDoc pueden moverse a tipos de TypeScript.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "A los atributos JSX se les debe asignar únicamente un elemento \"expression\" que no esté vacío.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "El elemento JSX '{0}' no tiene la etiqueta de cierre correspondiente.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "La clase de elemento JSX no admite atributos porque no tiene una propiedad \"{0}\".", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "El elemento JSX tiene el tipo \"any\" implícitamente porque no existe ninguna interfaz \"JSX.{0}\".", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "El elemento JSX tiene el tipo \"any\" implícitamente porque no existe el tipo global \"JSX.Element\".", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "El tipo de elemento JSX '{0}' no tiene ninguna signatura de construcción ni de llamada.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "Los elementos JSX no pueden tener varios atributos con el mismo nombre.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "Las expresiones JSX no pueden usar el operador de coma. ¿Pretendía escribir una matriz?", - "JSX_expressions_must_have_one_parent_element_2657": "Las expresiones JSX deben tener un elemento primario.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "El fragmento de JSX no tiene la etiqueta de cierre correspondiente.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "Las expresiones de acceso a la propiedad JSX no pueden incluir nombres de espacios de nombres JSX", - "JSX_spread_child_must_be_an_array_type_2609": "El elemento secundario de propagación JSX debe ser de tipo matriz.", - "JavaScript_Support_6247": "Compatibilidad con JavaScript", - "Jump_target_cannot_cross_function_boundary_1107": "Un destino de salto no puede atravesar el límite de función.", - "KIND_6034": "TIPO", - "Keywords_cannot_contain_escape_characters_1260": "Las palabras clave no pueden contener caracteres de escape.", - "LOCATION_6037": "UBICACIÓN", - "Language_and_Environment_6254": "Lenguaje y ambiente", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "La parte izquierda del operador de coma no se usa y no tiene efectos secundarios.", - "Library_0_specified_in_compilerOptions_1422": "La biblioteca \"{0}\" se especifica en compilerOptions", - "Library_referenced_via_0_from_file_1_1405": "Biblioteca a la que se hace referencia mediante \"{0}\" desde el archivo \"{1}\"", - "Line_break_not_permitted_here_1142": "No se permite el salto de línea aquí.", - "Line_terminator_not_permitted_before_arrow_1200": "No se permite usar un terminador de línea antes de una flecha.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "Lista de sufijos de nombre de archivo para buscar al resolver un módulo.", - "List_of_folders_to_include_type_definitions_from_6161": "Lista de carpetas de donde se deben incluir las definiciones de tipos.", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Lista de carpetas raíz cuyo contenido combinado representa la estructura del proyecto en tiempo de ejecución.", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Cargando \"{0}\" del directorio raíz \"{1}\", ubicación candidata: \"{2}\"", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Se cargará el módulo \"{0}\" de la carpeta \"node_modules\", tipo de archivo de destino \"{1}\".", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Se cargará el módulo como archivo/carpeta, ubicación del módulo candidato \"{0}\", tipo de archivo de destino \"{1}\".", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "La configuración regional debe tener el formato o -. Por ejemplo, '{0}' o '{1}'.", - "Log_paths_used_during_the_moduleResolution_process_6706": "Rutas de acceso de registro usadas durante el proceso \"moduleResolution\".", - "Longest_matching_prefix_for_0_is_1_6108": "El prefijo coincidente más largo para \"{0}\" es \"{1}\".", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "Buscando en la carpeta \"node_modules\", ubicación inicial: \"{0}\".", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "Convertir todas las llamadas a \"super()\" en la primera instrucción de su constructor", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Haga que keyof solo devuelva cadenas en lugar de cadenas, números o símbolos. Opción heredada.", - "Make_super_call_the_first_statement_in_the_constructor_90002": "Hacer que la llamada a \"super()\" sea la primera instrucción del constructor", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "El tipo de objeto asignado tiene implícitamente un tipo de plantilla \"any\".", - "Matched_0_condition_1_6403": "Coincidente con '{0}' condición '{1}'.", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "La coincidencia de forma predeterminada incluye el patrón '**/*'", - "Matched_by_include_pattern_0_in_1_1407": "Coincidencia con el patrón de inclusión \"{0}\" en \"{1}\"", - "Member_0_implicitly_has_an_1_type_7008": "El miembro '{0}' tiene un tipo '{1}' implícitamente.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "El miembro \"{0}\" tiene un tipo \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", - "Merge_conflict_marker_encountered_1185": "Se encontró un marcador de conflicto de combinación.", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "La declaración combinada '{0}' no puede incluir una declaración de exportación predeterminada. Considere la posibilidad de agregar una declaración \"export default {0}\" independiente en su lugar.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "La propiedad Meta \"{0}\" solo se permite en el cuerpo de una declaración de función, una expresión de función o un constructor.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "El método '{0}' no puede tener ninguna implementación porque está marcado como abstracto.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "El método \"{0}\" de la interfaz exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "El método \"{0}\" de la interfaz exportada tiene o usa el nombre privado \"{1}\".", - "Method_not_implemented_95158": "El método no está implementado.", - "Modifiers_cannot_appear_here_1184": "Los modificadores no pueden aparecer aquí.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "El módulo \"{0}\" solo puede importarse de forma predeterminada con la marca \"{1}\".", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "El módulo \"{0}\" no se puede importar con esta construcción. El especificador solo se resuelve en un módulo ES, que no se puede importar con \"require\". En su lugar, use una importación de ECMAScript.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "El módulo \"{0}\" declara \"{1}\" localmente, pero se exporta como \"{2}\".", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "El módulo \"{0}\" declara \"{1}\" localmente, pero no se exporta.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "El módulo \"{0}\" no hace referencia a un tipo, pero aquí se usa como tipo. ¿Quiso decir \"typeof import('{0}')\"?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "El módulo \"{0}\" no hace referencia a un valor, pero aquí se usa como valor.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "El módulo {0} ya ha exportado un miembro denominado '{1}'. Considere la posibilidad de volver a exportarlo de forma explícita para resolver la ambigüedad.", - "Module_0_has_no_default_export_1192": "El módulo '{0}' no tiene ninguna exportación predeterminada.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "El módulo \"{0}\" no tiene ninguna exportación predeterminada. ¿Pretendía usar \"import { {1} } from {0}\" en su lugar?", - "Module_0_has_no_exported_member_1_2305": "El módulo '{0}' no tiene ningún miembro '{1}' exportado.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "El módulo \"{0}\" no tiene ningún miembro \"{1}\" exportado. ¿Pretendía usar \"import {1} from {0}\" en su lugar?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "El módulo \"{0}\" está oculto por una declaración local con el mismo nombre.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "El módulo '{0}' usa \"export =\" y no se puede usar con \"export *\".", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "El módulo '{0}' se resolvió como un módulo de ambiente declarado en '{1}', porque este archivo no se había modificado.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "El módulo '{0}' se resolvió como un módulo de ambiente declarado localmente en el archivo '{1}'.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "El módulo '{0}' se resolvió en '{1}', pero \"--jsx\" no está establecido.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "El módulo \"{0}\" se resolvió en \"{1}\", pero no se usa \"--resolveJsonModule\".", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Los nombres de declaración de módulo solo pueden usar cadenas con las comillas \" o '.", - "Module_name_0_matched_pattern_1_6092": "Nombre del módulo: '{0}', patrón coincidente: '{1}'.", - "Module_name_0_was_not_resolved_6090": "======== No se resolvió el nombre de módulo '{0}'. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== El nombre del módulo '{0}' se resolvió correctamente como '{1}'. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== El nombre del módulo '{0}' se resolvió correctamente como \"{1}\" con el identificador de paquete \"{2}\". ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "No se ha especificado el tipo de resolución del módulo, se usará '{0}'.", - "Module_resolution_using_rootDirs_has_failed_6111": "No se pudo resolver el módulo con \"rootDirs\".", - "Modules_6244": "Módulos", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "Mover modificadores de elemento de tupla etiquetados a etiquetas", - "Move_to_a_new_file_95049": "Mover a un nuevo archivo", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "No se permiten varios separadores numéricos consecutivos.", - "Multiple_constructor_implementations_are_not_allowed_2392": "No se permiten varias implementaciones del constructor.", - "NEWLINE_6061": "NUEVA LÍNEA", - "Name_is_not_valid_95136": "El nombre no es válido", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "La propiedad '{0}' con nombre de los tipos '{1}' y '{2}' no es idéntica en ambos.", - "Namespace_0_has_no_exported_member_1_2694": "El espacio de nombres '{0}' no tiene ningún miembro '{1}' exportado.", - "Namespace_must_be_given_a_name_1437": "Se debe asignar un nombre al espacio de nombres.", - "Namespace_name_cannot_be_0_2819": "El nombre de espacio no puede ser \"{0}\".", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "No hay ningún constructor base con el número especificado de argumentos de tipo.", - "No_constituent_of_type_0_is_callable_2755": "No se puede llamar a ningún constituyente del tipo \"{0}\".", - "No_constituent_of_type_0_is_constructable_2759": "No se puede construir ningún constituyente del tipo \"{0}\".", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "No se encontró ninguna signatura de índice con un parámetro de tipo \"{0}\" en el tipo \"{1}\".", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "No se encontraron entradas en el archivo de configuración '{0}'. Las rutas 'include' especificadas fueron '{1}' y las rutas 'exclude' fueron '{2}'.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "Ya no se admite. En versiones anteriores, establezca manualmente la codificación de texto para leer archivos.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "Ninguna sobrecarga espera argumentos {0}, pero existen sobrecargas que esperan argumentos {1} o {2}.", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "Ninguna sobrecarga espera argumentos de tipo {0}, pero existen sobrecargas que esperan argumentos de tipo {1} o {2}.", - "No_overload_matches_this_call_2769": "Ninguna sobrecarga coincide con esta llamada.", - "No_type_could_be_extracted_from_this_type_node_95134": "No se pudo extraer ningún tipo de este nodo de tipo", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "No existe ningún valor en el ámbito para la propiedad abreviada \"{0}\". Declare uno o proporcione un inicializador.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La clase '{0}' no abstracta no implementa el miembro abstracto heredado '{1}' de la clase '{2}'.", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Una expresión de clase no abstracta no implementa el miembro abstracto heredado '{0}' de la clase '{1}'.", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Las aserciones no nulas solo se pueden usar en los archivos TypeScript.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "No se permiten rutas de acceso no relativas si no se ha establecido \"baseUrl\". ¿Ha olvidado poner \"./\" al inicio?", - "Non_simple_parameter_declared_here_1348": "Se ha declarado un parámetro no simple aquí.", - "Not_all_code_paths_return_a_value_7030": "No todas las rutas de acceso de código devuelven un valor.", - "Not_all_constituents_of_type_0_are_callable_2756": "No se puede llamar a todos los constituyentes del tipo \"{0}\".", - "Not_all_constituents_of_type_0_are_constructable_2760": "No se pueden construir todos los constituyentes del tipo \"{0}\".", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Los literales numéricos con valores absolutos iguales a 2^53 o superiores son demasiado grandes para representarlos de forma precisa como enteros.", - "Numeric_separators_are_not_allowed_here_6188": "Aquí no se permiten separadores numéricos.", - "Object_is_of_type_unknown_2571": "El objeto es de tipo \"desconocido\".", - "Object_is_possibly_null_2531": "El objeto es posiblemente \"null\".", - "Object_is_possibly_null_or_undefined_2533": "El objeto es posiblemente \"null\" o \"undefined\".", - "Object_is_possibly_undefined_2532": "El objeto es posiblemente \"undefined\".", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "El literal de objeto solo puede especificar propiedades conocidas y '{0}' no existe en el tipo '{1}'.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "El literal de objeto solo puede especificar propiedades conocidas, pero \"{0}\" no existe en el tipo \"{1}\". ¿Quería escribir \"{2}\"?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La propiedad '{0}' del literal de objeto tiene un tipo '{1}' implícitamente.", - "Octal_digit_expected_1178": "Se esperaba un dígito octal.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Los tipos de literales octales deben usar la sintaxis ES2015. Use la sintaxis \"{0}\".", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "No se permiten literales octales en el inicializador de miembros de enumeraciones. Use la sintaxis \"{0}\".", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "Los literales octales no se permiten en modo strict.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Los literales octales no están disponibles cuando el destino es ECMAScript 5 y superior. Use la sintaxis \"{0}\".", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "Solo se permite una declaración de variable en una instrucción \"for...in\".", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "Solo se permite una declaración de variable en una instrucción \"for...of\".", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Solo se puede llamar a una función void con la palabra clave \"new\".", - "Only_ambient_modules_can_use_quoted_names_1035": "Solo los módulos de ambiente pueden usar nombres entrecomillados.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Solo los módulos \"amd\" y \"system\" se admiten con --{0}.", - "Only_emit_d_ts_declaration_files_6014": "Solo deben emitirse archivos de declaración \".d.ts\".", - "Only_named_exports_may_use_export_type_1383": "Solo las exportaciones con nombre pueden usar \"export type\".", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Solo las enumeraciones numéricas pueden tener miembros calculados, pero esta expresión tiene el tipo \"{0}\". Si no requiere comprobaciones de exhaustividad, considere la posibilidad de usar un literal de objeto en su lugar.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Genere solo archivos d.ts y no archivos JavaScript.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Solo es posible tener acceso a los métodos públicos y protegidos de la clase base mediante la palabra clave \"super\".", - "Operator_0_cannot_be_applied_to_type_1_2736": "El operador \"{0}\" no se puede aplicar al tipo \"{1}\".", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "El operador '{0}' no se puede aplicar a los tipos '{1}' y '{2}'.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Opte por excluir un proyecto de la comprobación de referencias de varios proyectos al editar.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "La opción \"{0}\" solo puede especificarse en el archivo \"tsconfig.json\" o establecerse en \"false\" o \"null\" en la línea de comandos.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "La opción \"{0}\" solo puede especificarse en el archivo \"tsconfig.json\" o establecerse en \"null\" en la línea de comandos.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "La opción '{0}' solo se puede usar cuando se proporciona '--inlineSourceMap' o '--sourceMap'.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "No se puede especificar la opción \"{0}\" cuando la opción \"jsx\" es \"{1}\".", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "No se puede especificar la opción \"{0}\" cuando la opción \"target\" es \"ES3\".", - "Option_0_cannot_be_specified_with_option_1_5053": "La opción '{0}' no se puede especificar con la opción '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "La opción '{0}' no se puede especificar sin la opción '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "La opción \"{0}\" no se puede especificar sin la opción \"{1}\" o la opción \"{2}\".", - "Option_build_must_be_the_first_command_line_argument_6369": "La opción \"--build\" debe ser el primer argumento de la línea de comandos.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "La opción \"--incremental\" solo puede especificarse si se usa tsconfig, se emite en un solo archivo o se especifica la opción \"--tsBuildInfoFile\".", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "La opción \"isolatedModules\" solo se puede usar cuando se proporciona la opción \"--module\" o si la opción \"target\" es \"ES2015\" o una versión posterior.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "La opción \"preserveConstEnums\" no se puede deshabilitar cuando \"isolatedModules\" está habilitado.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "La opción \"preserveValueImports\" solo se puede usar cuando \"module\" esté establecido en \"es2015\" o posteriores.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "La opción \"project\" no se puede combinar con archivos de origen en una línea de comandos.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "La opción \"--resolveJsonModule\" solo puede especificarse cuando la generación de código del módulo es \"commonjs\", \"amd\", \"es2015\" o \"esNext\".", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "No se puede especificar la opción \"--resolveJsonModule\" sin la estrategia de resolución de módulos \"node\".", - "Options_0_and_1_cannot_be_combined_6370": "\"{0}\" y \"{1}\" no se pueden combinar.", - "Options_Colon_6027": "Opciones:", - "Output_Formatting_6256": "Formato de salida", - "Output_compiler_performance_information_after_building_6615": "Información de rendimiento resultante del compilador después de la compilación.", - "Output_directory_for_generated_declaration_files_6166": "Directorio de salida para los archivos de declaración generados.", - "Output_file_0_from_project_1_does_not_exist_6309": "El archivo de salida \"{0}\" del proyecto \"{1}\" no existe.", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "El archivo de salida \"{0}\" no se compiló desde el archivo de origen \"{1}\".", - "Output_from_referenced_project_0_included_because_1_specified_1411": "La salida del proyecto \"{0}\" al que se hace referencia se ha incluido porque se ha especificado \"{1}\".", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "La salida del proyecto \"{0}\" al que se hace referencia se ha incluido porque \"--module\" se ha especificado como \"none\".", - "Output_more_detailed_compiler_performance_information_after_building_6632": "Produzca información más detallada del rendimiento resultante del compilador después de la compilación.", - "Overload_0_of_1_2_gave_the_following_error_2772": "La sobrecarga {0} de {1}, \"{2}\", dio el error siguiente.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "Las signaturas de sobrecarga deben ser todas abstractas o no abstractas.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "Las signaturas de sobrecarga deben ser todas de ambiente o de no ambiente.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "Las signaturas de sobrecarga deben ser todas exportadas o no exportadas.", - "Overload_signatures_must_all_be_optional_or_required_2386": "Las signaturas de sobrecarga deben ser todas opcionales u obligatorias.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "Las signaturas de sobrecarga deben ser todas públicas, privadas o protegidas.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "El parámetro \"{0}\" no puede hacer referencia al identificador \"{1}\" declarado después de este.", - "Parameter_0_cannot_reference_itself_2372": "El parámetro \"{0}\" no puede hacer referencia a sí mismo.", - "Parameter_0_implicitly_has_an_1_type_7006": "El parámetro '{0}' tiene un tipo '{1}' implícitamente.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "El parámetro \"{0}\" tiene un tipo \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "El parámetro '{0}' no está en la misma posición que el parámetro '{1}'.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "El parámetro \"{0}\" del descriptor de acceso tiene o usa el nombre \"{1}\" del módulo \"{2}\" externo, pero no se puede nombrar.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "El parámetro \"{0}\" del descriptor de acceso tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "El parámetro \"{0}\" del descriptor de acceso tiene o usa el nombre privado \"{1}\".", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "El parámetro '{0}' de la signatura de llamada de una interfaz exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "El parámetro '{0}' de la signatura de llamada de una interfaz exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "El parámetro '{0}' del constructor de la clase exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "El parámetro '{0}' del constructor de la clase exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "El parámetro '{0}' del constructor de la clase exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "El parámetro '{0}' de la signatura de constructor de la interfaz exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "El parámetro '{0}' de la signatura de constructor de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "El parámetro '{0}' de la función exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "El parámetro '{0}' de la función exportada tiene o usa el nombre '{1}' del módulo {2} privado.", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "El parámetro '{0}' de la función exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "El parámetro \"{0}\" de la signatura de índice de la interfaz exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "El parámetro \"{0}\" de la signatura de índice de la interfaz exportada tiene o usa el nombre privado \"{1}\".", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "El parámetro '{0}' del método de la interfaz exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "El parámetro '{0}' del método de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "El parámetro '{0}' del método público de la clase exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "El parámetro '{0}' del método público de la clase exportada tiene o usa el nombre '{1}' del módulo {2} privado.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "El parámetro '{0}' del método público de la clase exportada tiene o usa el nombre privado '{1}'.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "El parámetro '{0}' del método estático público de la clase exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "El parámetro '{0}' del método estático público de la clase exportada tiene o usa el nombre '{1}' del módulo {2} privado.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "El parámetro '{0}' del método estático público de la clase exportada tiene o usa el nombre privado '{1}'.", - "Parameter_cannot_have_question_mark_and_initializer_1015": "El parámetro no puede tener un signo de interrogación y un inicializador.", - "Parameter_declaration_expected_1138": "Se espera una declaración de parámetros.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "El parámetro tiene un nombre, pero no un tipo. ¿Pretendía usar \"{0}: {1}\"?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Los modificadores de parámetro solo se pueden usar en los archivos TypeScript.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "El tipo de parámetro del establecedor público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "El tipo de parámetro del establecedor público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "El tipo de parámetro del establecedor estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "El tipo de parámetro del establecedor estático público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "Analiza en modo strict y emite \"use strict\" para cada archivo de código fuente.", - "Part_of_files_list_in_tsconfig_json_1409": "Parte de la lista de \"archivos\" de tsconfig.json", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "El patrón \"{0}\" puede tener un carácter '*' como máximo.", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "Los intervalos de rendimiento de \"--diagnostics\" o \"--extendedDiagnostics\" no están disponibles en esta sesión. No se encontró ninguna implementación nativa de la API de rendimiento web.", - "Platform_specific_6912": "Específico de plataforma", - "Prefix_0_with_an_underscore_90025": "Prefijo \"{0}\" con guion bajo", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "Agregar el prefijo \"declare\" a todas las declaraciones de propiedad incorrectas", - "Prefix_all_unused_declarations_with_where_possible_95025": "Agregar \"_\" como prefijo a todas las declaraciones sin usar, cuando sea posible", - "Prefix_with_declare_95094": "Agregar el prefijo \"declare\"", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conserva los valores importados no usados en la salida de JavaScript que, de lo contrario, se quitarían.", - "Print_all_of_the_files_read_during_the_compilation_6653": "Imprima todos los archivos leídos durante la compilación.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Imprima los archivos leídos durante la compilación, incluyendo la razón por la que se incluyó.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Imprima los nombres de los archivos y el motivo por el que forman parte de la compilación.", - "Print_names_of_files_part_of_the_compilation_6155": "Imprimir los nombres de los archivos que forman parte de la compilación.", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "Imprima los nombres de los archivos que forman parte de la compilación y, a continuación, detenga el procesamiento.", - "Print_names_of_generated_files_part_of_the_compilation_6154": "Imprimir los nombres de los archivos generados que forman parte de la compilación.", - "Print_the_compiler_s_version_6019": "Imprima la versión del compilador.", - "Print_the_final_configuration_instead_of_building_1350": "Imprima la configuración final en lugar de compilar.", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "Imprima los nombres de los archivos emitidos después de una compilación.", - "Print_this_message_6017": "Imprima este mensaje.", - "Private_accessor_was_defined_without_a_getter_2806": "El descriptor de acceso privado se ha definido sin un captador.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "No se permiten identificadores privados en las declaraciones de variables.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "No se permiten identificadores privados fuera de los cuerpos de clase.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Los identificadores privados solo están permitidos en cuerpos de clase y solo se pueden utilizan como parte de una declaración de un miembro de clase, acceso de propiedad o en la parte izquierda de una expresión \"in\".", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Los identificadores privados solo están disponibles cuando el destino es ECMAScript 2015 y versiones posteriores.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "Los identificadores privados no se pueden usar como parámetros.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "No se puede acceder al miembro \"{0}\" privado o protegido en un parámetro de tipo.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "El proyecto \"{0}\" no puede generarse porque su dependencia \"{1}\" tiene errores", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "El proyecto \"{0}\" no puede compilarse porque su dependencia \"{1}\" no se ha compilado.", - "Project_0_is_being_forcibly_rebuilt_6388": "El proyecto \"{0}\" se está recompilando de manera forzada.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "El proyecto \"{0}\" no está actualizado porque el archivo buildinfo \"{1}\" indica que algunos de los cambios no se emitieron", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "El proyecto \"{0}\" está obsoleto porque su dependencia \"{1}\" no está actualizada", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "El proyecto \"{0}\" está obsoleto porque la salida \"{1}\" es anterior a la entrada \"{2}\"", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "El proyecto \"{0}\" está obsoleto porque el archivo de salida \"{1}\" no existe", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "El proyecto \"{0}\" está obsoleto porque su salida se generó con la versión \"{1}\", que es distinta a la versión actual \"{2}\".", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "El proyecto \"{0}\" está obsoleto porque la salida de su dependencia \"{1}\" ha cambiado.", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "El proyecto \"{0}\" no está actualizado porque se produjo un error al leer el archivo \"{1}\"", - "Project_0_is_up_to_date_6361": "El proyecto \"{0}\" está actualizado", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "El proyecto \"{0}\" está actualizado porque la entrada más reciente \"{1}\" es anterior a la salida \"{2}\"", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "El proyecto \"{0}\" está actualizado, pero debe actualizar las marcas de tiempo de los archivos de salida anteriores a los archivos de entrada", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "El proyecto \"{0}\" está actualizado con archivos .d.ts de sus dependencias", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Las referencias del proyecto no pueden formar un gráfico circular. Ciclo detectado: {0}", - "Projects_6255": "Proyectos", - "Projects_in_this_build_Colon_0_6355": "Proyectos de esta compilación: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Las propiedades con el modificador 'accessor' solo están disponibles cuando el destino es ECMAScript 2015 y versiones posteriores.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La propiedad '{0}' no puede tener un mediador porque se marca como abstracto.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La propiedad \"{0}\" procede de una signatura de índice, por lo que debe accederse a ella con [\"{0}\"].", - "Property_0_does_not_exist_on_type_1_2339": "La propiedad '{0}' no existe en el tipo '{1}'.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "La propiedad \"{0}\" no existe en el tipo \"{1}\". ¿Quería decir \"{2}\"?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "La propiedad \"{0}\" no existe en el tipo \"{1}\". ¿Pretendía acceder al miembro estático \"{2}\"?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "No existe la propiedad \"{0}\" en el tipo \"{1}\". ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a \"{2}\" o posterior.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "La propiedad \"{0}\" no existe en el tipo \"{1}\". Intente cambiar la opción del compilador \"lib\" para incluir \"dom\".", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "La propiedad '{0}' no tiene inicializador y no está asignada de forma definitiva en el bloque estático de clase.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "La propiedad \"{0}\" no tiene inicializador y no está asignada de forma definitiva en el constructor.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "La propiedad '{0}' tiene el tipo 'any' de forma implícita, porque a su descriptor de acceso get le falta una anotación de tipo de valor devuelto.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "La propiedad '{0}' tiene el tipo 'any' de forma implícita, porque a su descriptor de acceso set le falta una anotación de tipo de parámetro.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "La propiedad \"{0}\" tiene el tipo \"any\" de forma implícita, pero se puede inferir un tipo más adecuado para su descriptor de acceso get a partir del uso.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "La propiedad \"{0}\" tiene el tipo \"any\" de forma implícita, pero se puede inferir un tipo más adecuado para su descriptor de acceso set a partir del uso.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "La propiedad \"{0}\" del tipo \"{1}\" no se puede asignar a la misma propiedad del tipo base \"{2}\".", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "La propiedad \"{0}\" del tipo \"{1}\" no se puede asignar al tipo \"{2}\".", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "La propiedad \"{0}\" del tipo \"{1}\" hace referencia a un miembro distinto al que no se puede acceder desde el tipo \"{2}\".", - "Property_0_is_declared_but_its_value_is_never_read_6138": "La propiedad \"{0}\" se declara, pero su valor no se lee nunca.", - "Property_0_is_incompatible_with_index_signature_2530": "La propiedad '{0}' es incompatible con la signatura de índice.", - "Property_0_is_missing_in_type_1_2324": "Falta la propiedad '{0}' en el tipo '{1}'.", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "La propiedad \"{0}\" falta en el tipo \"{1}\", pero es obligatoria en el tipo \"{2}\".", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "No se puede acceder a la propiedad \"{0}\" fuera de la clase \"{1}\" porque tiene un identificador privado.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "La propiedad '{0}' es opcional en el tipo '{1}', pero obligatoria en el tipo '{2}'.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "La propiedad '{0}' es privada y solo se puede acceder a ella en la clase '{1}'.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "La propiedad '{0}' es privada en el tipo '{1}', pero no en el tipo '{2}'.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "La propiedad \"{0}\" está protegida y solo puede accederse a ella a través de una instancia de la clase \"{1}\". Esta es una instancia de la clase \"{2}\".", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "La propiedad '{0}' está protegida y solo se puede acceder a ella en la clase '{1}' y las subclases de esta.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "La propiedad '{0}' está protegida, pero el tipo '{1}' no es una clase derivada de '{2}'.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "La propiedad '{0}' está protegida en el tipo '{1}', pero es pública en el tipo '{2}'.", - "Property_0_is_used_before_being_assigned_2565": "La propiedad \"{0}\" se usa antes de asignarla.", - "Property_0_is_used_before_its_initialization_2729": "La propiedad \"{0}\" se usa antes de su inicialización.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La propiedad \"{0}\" no existe en el tipo \"{1}\". ¿Quería decir \"{2}\"?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "La propiedad '{0}' del atributo spread de JSX no se puede asignar a la propiedad de destino.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La propiedad \"{0}\" de la expresión de clase exportada no puede ser privada ni estar protegida.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La propiedad '{0}' de la interfaz exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La propiedad '{0}' de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La propiedad \"{0}\" de tipo \"{1}\" no se puede asignar al tipo de índice \"{2}\" \"{3}\".", - "Property_0_was_also_declared_here_2733": "La propiedad \"{0}\" también se ha declarado aquí.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La propiedad \"{0}\" sobrescribirá la propiedad base en \"{1}\" Si esto es intencionado, agregue un inicializador. De lo contrario, agregue un modificador \"declare\" o quite la declaración redundante.", - "Property_assignment_expected_1136": "Se esperaba una asignación de propiedad.", - "Property_destructuring_pattern_expected_1180": "Se esperaba un patrón de desestructuración de propiedad.", - "Property_or_signature_expected_1131": "Se esperaba una propiedad o una signatura.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "El valor de la propiedad puede ser solo un literal de cadena, literal numérico, 'true', 'false', 'null', literal de objeto o literal de matriz.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Proporcionar compatibilidad total con objetos iterables en \"for-of\", propagaciones y desestructuraciones cuando el destino es \"ES5\" o \"ES3\".", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "El método público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo externo {2}, pero no puede tener nombre.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "El método público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "El método público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "La propiedad pública '{0}' de la clase exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "La propiedad pública '{0}' de la clase exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "La propiedad pública '{0}' de la clase exportada tiene o usa el nombre privado '{1}'.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "El método estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo externo {2}, pero no puede tener nombre.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "El método estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "El método estático público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "La propiedad estática pública '{0}' de la clase exportada tiene o usa el nombre '{1}' del módulo {2} externo, pero no se puede nombrar.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "La propiedad estática pública '{0}' de la clase exportada tiene o usa el nombre '{1}' del módulo {2} privado.", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "La propiedad estática pública '{0}' de la clase exportada tiene o usa el nombre privado '{1}'.", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "No se permite el nombre calificado \"{0}\" sin un elemento \"@param {object} {1}\" inicial.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Genera un error cuando no se lee un parámetro de función.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Generar un error en las expresiones y las declaraciones con un tipo \"any\" implícito.", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Generar un error en expresiones 'this' con un tipo 'any' implícito.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Para volver a exportar un tipo cuando se proporciona la marca \"--isolatedModules\", se requiere el uso de \"export type\".", - "Redirect_output_structure_to_the_directory_6006": "Redirija la estructura de salida al directorio.", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Reduzca el número de proyectos cargados automáticamente por TypeScript.", - "Referenced_project_0_may_not_disable_emit_6310": "El proyecto \"{0}\" al que se hace referencia no puede deshabilitar la emisión.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "El proyecto \"{0}\" al que se hace referencia debe tener el valor \"composite\": true.", - "Referenced_via_0_from_file_1_1400": "Se hace referencia mediante \"{0}\" desde el archivo \"{1}\".", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones EcmaScript cuando \"--moduleResolution\" es \"node16\" o \"nodenext\". Considere la posibilidad de agregar una extensión a la ruta de acceso de importación.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones EcmaScript cuando \"--moduleResolution\" es \"node16\" o \"nodenext\". ¿Quería decir \"{0}\"?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "Quite una lista de directorios del proceso de inspección.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Quite una lista de archivos del procesamiento del modo de inspección.", - "Remove_all_unnecessary_override_modifiers_95163": "Quitar todos los modificadores \"override\" innecesarios", - "Remove_all_unnecessary_uses_of_await_95087": "Quitar todos los usos innecesarios de \"await\"", - "Remove_all_unreachable_code_95051": "Quitar todo el código inaccesible", - "Remove_all_unused_labels_95054": "Quitar todas las etiquetas no utilizadas", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "Quitar las llaves de todos los cuerpos de función de flecha con problemas relevantes", - "Remove_braces_from_arrow_function_95060": "Quitar las llaves de la función de flecha", - "Remove_braces_from_arrow_function_body_95112": "Quitar las llaves del cuerpo de función de flecha", - "Remove_import_from_0_90005": "Quitar importación de \"{0}\"", - "Remove_override_modifier_95161": "Quitar el modificador \"override\"", - "Remove_parentheses_95126": "Quitar los paréntesis", - "Remove_template_tag_90011": "Quitar la etiqueta de plantilla", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Elimine el límite de 20 MB del tamaño total del código fuente para los archivos JavaScript en el servidor de lenguaje TypeScript.", - "Remove_type_from_import_declaration_from_0_90055": "Quitar \"type\" de la declaración de importación de \"{0}\"", - "Remove_type_from_import_of_0_from_1_90056": "Quitar \"type\" de la importación de '{0}' de \"{1}\"", - "Remove_type_parameters_90012": "Quitar los parámetros de tipo", - "Remove_unnecessary_await_95086": "Quitar elementos \"await\" innecesarios", - "Remove_unreachable_code_95050": "Quitar el código inaccesible", - "Remove_unused_declaration_for_Colon_0_90004": "Quitar la declaración sin usar para \"{0}\"", - "Remove_unused_declarations_for_Colon_0_90041": "Quite las declaraciones sin usar para \"{0}\"", - "Remove_unused_destructuring_declaration_90039": "Quite la declaración de desestructuración no utilizada", - "Remove_unused_label_95053": "Quitar etiqueta no utilizada", - "Remove_variable_statement_90010": "Quitar la declaración de variable", - "Rename_param_tag_name_0_to_1_95173": "Cambiar el nombre de la etiqueta \"@param\" \"{0}\" a \"{1}\"", - "Replace_0_with_Promise_1_90036": "Reemplazar \"{0}\" por \"Promise<{1}>\"", - "Replace_all_unused_infer_with_unknown_90031": "Reemplazar todos los elementos \"infer\" sin usar por \"unknown\"", - "Replace_import_with_0_95015": "Reemplazar importación por \"{0}\".", - "Replace_infer_0_with_unknown_90030": "Reemplazar \"infer {0}\" por \"unknown\"", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "Notificar un error cuando no todas las rutas de acceso de código en funcionamiento devuelven un valor.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "Notificar errores de los casos de fallthrough en la instrucción switch.", - "Report_errors_in_js_files_8019": "Notifique los errores de los archivos .js.", - "Report_errors_on_unused_locals_6134": "Informe de errores sobre variables locales no usadas.", - "Report_errors_on_unused_parameters_6135": "Informe de errores sobre parámetros no usados.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Se requieren propiedades no declaradas de las signaturas de índice para usar los accesos de elemento.", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Los parámetros de tipo requeridos pueden no seguir parámetros de tipo opcionales.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La resolución del módulo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La resolución de la directiva de referencia de tipo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolver \"keyof\" exclusivamente como nombres de propiedad con valores de cadena (sin números ni símbolos).", - "Resolving_in_0_mode_with_conditions_1_6402": "Resolviendo en modo {0} con condiciones {1}.", - "Resolving_module_0_from_1_6086": "======== Resolviendo el módulo '{0}' de '{1}'. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Resolviendo el nombre de módulo '{0}' relativo a la dirección URL base '{1}' - '{2}'.", - "Resolving_real_path_for_0_result_1_6130": "Resolviendo la ruta de acceso real de \"{0}\", resultado: \"{1}\".", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== Resolviendo la directiva de referencia de tipo \"{0}\", archivo contenedor \"{1}\". ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor: '{1}', directorio raíz: '{2}'. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor: '{1}', directorio raíz no establecido. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor no establecido, directorio raíz: '{1}'. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor no establecido, directorio raíz no establecido. ========", - "Resolving_with_primary_search_path_0_6121": "Resolviendo con la ruta de búsqueda principal \"{0}\".", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "El parámetro rest '{0}' tiene un tipo \"any[]\" implícitamente.", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "El parámetro rest \"{0}\" tiene un tipo \"any[]\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", - "Rest_types_may_only_be_created_from_object_types_2700": "Los tipos rest solo se pueden crear a partir de tipos de objeto.", - "Return_type_annotation_circularly_references_itself_2577": "La anotación de tipo de valor devuelto se hace referencia a sí misma de forma circular.", - "Return_type_must_be_inferred_from_a_function_95149": "El tipo de valor devuelto debe inferirse de una función", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "El tipo de valor devuelto de la signatura de llamada de la interfaz exportada tiene o usa el nombre '{0}' del módulo '{1}' privado.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "El tipo de valor devuelto de la signatura de llamada de la interfaz exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "El tipo de valor devuelto de la signatura de constructor de la interfaz exportada tiene o usa el nombre '{0}' del módulo '{1}' privado.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "El tipo de valor devuelto de la signatura de constructor de la interfaz exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "El tipo de valor devuelto de la signatura de constructor se debe poder asignar al tipo de instancia de la clase.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "El tipo de valor devuelto de la función exportada tiene o usa el nombre '{0}' del módulo {1} externo, pero no se puede nombrar.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "El tipo de valor devuelto de la función exportada tiene o usa el nombre '{0}' del módulo {1} privado.", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "El tipo de valor devuelto de la función exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "El tipo de valor devuelto de la signatura de índice de la interfaz exportada tiene o usa el nombre '{0}' del módulo '{1}' privado.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "El tipo de valor devuelto de la signatura de índice de la interfaz exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "El tipo de valor devuelto del método de la interfaz exportada tiene o usa el nombre '{0}' del módulo '{1}' privado.", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "El tipo de valor devuelto del método de la interfaz exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "El tipo de valor devuelto del captador público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo {2} externo, pero no se puede nombrar.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "El tipo de valor devuelto del captador público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "El tipo de valor devuelto del captador público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "El tipo de valor devuelto del método público de la clase exportada tiene o usa el nombre '{0}' del módulo {1} externo, pero no se puede nombrar.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "El tipo de valor devuelto del método público de la clase exportada tiene o usa el nombre '{0}' del módulo {1} privado.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "El tipo de valor devuelto del método público de la clase exportada tiene o usa el nombre privado '{0}'.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "El tipo de valor devuelto del captador estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo {2} externo, pero no se puede nombrar.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "El tipo de valor devuelto del captador estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "El tipo de valor devuelto del captador estático público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "El tipo de valor devuelto del método estático público de la clase exportada tiene o usa el nombre '{0}' del módulo {1} externo, pero no se puede nombrar.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "El tipo de valor devuelto del método estático público de la clase exportada tiene o usa el nombre '{0}' del módulo {1} privado.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "El tipo de valor devuelto del método estático público de la clase exportada tiene o usa el nombre privado '{0}'.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "La reutilización de la resolución del módulo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" no se resolvió.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "La reutilización de la resolución del módulo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" se resolvió correctamente en \"{3}\".", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "La reutilización de la resolución del módulo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" se resolvió correctamente en \"{3}\" con el identificador de paquete \"{4}\".", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "La reutilización de la resolución del módulo \"{0}\" del programa anterior \"{1}\" no se resolvió.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "La reutilización de la resolución del módulo \"{0}\" del programa anterior \"{1}\" se resolvió correctamente en \"{2}\".", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "La reutilización de la resolución del módulo \"{0}\" del programa anterior \"{1}\" se resolvió correctamente en \"{2}\" con el identificador del paquete \"{3}\".", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" no se resolvió.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" se resolvió correctamente en \"{3}\".", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" que se encuentra en la memoria caché desde la ubicación \"{2}\" se resolvió correctamente en \"{3}\" con el identificador del paquete \"{4}\".", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" del programa anterior no se resolvió.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" del programa anterior se resolvió correctamente en \"{2}\".", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" del programa anterior se resolvió correctamente en \"{2}\" con el identificador de paquete \"{3}\".", - "Rewrite_all_as_indexed_access_types_95034": "Reescribir todo como tipos de acceso indexados", - "Rewrite_as_the_indexed_access_type_0_90026": "Reescribir como tipo de acceso indexado \"{0}\"", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "No se puede determinar el directorio raíz, se omitirán las rutas de búsqueda principales.", - "Root_file_specified_for_compilation_1427": "Archivo raíz especificado para la compilación", - "STRATEGY_6039": "ESTRATEGIA", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Guarde archivos .tsbuildinfo para permitir la compilación incremental de proyectos.", - "Saw_non_matching_condition_0_6405": "Se vio una condición no coincidente '{0}'.", - "Scoped_package_detected_looking_in_0_6182": "Se detectó un paquete con ámbito al buscar en \"{0}\"", - "Selection_is_not_a_valid_statement_or_statements_95155": "La selección no es una instrucción ni instrucciones válidas", - "Selection_is_not_a_valid_type_node_95133": "La selección no es un nodo de tipo válido", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Establezca la versión del lenguaje de JavaScript para las JavaScript emitidas e incluya las declaraciones de bibliotecas compatibles.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "Establezca el lenguaje de la mensajería de TypeScript. No afecta a la emisión.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "Establecer la opción \"module\" del archivo de configuración en \"{0}\"", - "Set_the_newline_character_for_emitting_files_6659": "Establezca el carácter de nueva línea para emitir archivos.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "Establecer la opción \"target\" del archivo de configuración en \"{0}\"", - "Setters_cannot_return_a_value_2408": "Los establecedores no pueden devolver un valor.", - "Show_all_compiler_options_6169": "Mostrar todas las opciones de compilador.", - "Show_diagnostic_information_6149": "Mostrar información de diagnóstico.", - "Show_verbose_diagnostic_information_6150": "Mostrar información de diagnóstico detallada.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Mostrar lo que podría compilarse (o eliminarse, si se especifica con \"--clean\")", - "Signature_0_must_be_a_type_predicate_1224": "La signatura '{0}' debe tener un predicado de tipo.", - "Skip_type_checking_all_d_ts_files_6693": "Omita la comprobación de tipos de todos los archivos .d.ts.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Omita la comprobación de tipos de archivo .d.ts que se incluyen con TypeScript.", - "Skip_type_checking_of_declaration_files_6012": "Omita la comprobación de tipos de los archivos de declaración.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Omitiendo la compilación del proyecto \"{0}\" porque su dependencia \"{1}\" tiene errores", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Omitiendo la compilación del proyecto \"{0}\" porque su dependencia \"{1}\" no se ha compilado", - "Source_from_referenced_project_0_included_because_1_specified_1414": "El origen del proyecto \"{0}\" al que se hace referencia se ha incluido porque se ha especificado \"{1}\".", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "El origen del proyecto \"{0}\" al que se hace referencia se ha incluido porque \"--module\" se ha especificado como \"none\".", - "Source_has_0_element_s_but_target_allows_only_1_2619": "El origen tiene {0} elemento(s), pero el destino solo permite {1}.", - "Source_has_0_element_s_but_target_requires_1_2618": "El origen tiene {0} elemento(s), pero el destino requiere {1}.", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "El origen no proporciona ninguna coincidencia para el elemento requerido en la posición {0} del destino.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "El origen no proporciona ninguna coincidencia para el elemento variádico en la posición {0} del destino.", - "Specify_ECMAScript_target_version_6015": "Especifique la versión de destino de ECMAScript.", - "Specify_JSX_code_generation_6080": "Especifique la generación de código JSX.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "Especifique un archivo que agrupe todas las salidas en un archivo JavaScript. Si 'declaración' es verdadera, también designa un archivo que agrupa toda la salida .d.ts.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "Especifique una lista de patrones globales que coincidan con los archivos que se incluirán en la compilación.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "Especifique una lista de complementos de servicio de lenguaje para incluirlos.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "Especifique un conjunto de archivos de declaración de biblioteca agrupados que describan el entorno de tiempo de ejecución de destino.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "Especifique un conjunto de entradas que reasignan las importaciones a ubicaciones de búsqueda adicionales.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "Especifique una matriz de objetos que especifique las rutas de acceso a los proyectos. Usada en las referencias del proyecto.", - "Specify_an_output_folder_for_all_emitted_files_6678": "Especifique una carpeta de salida para todos los archivos emitidos.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "Especificar el comportamiento de emisión o comprobación para las importaciones que solo se usan para los tipos.", - "Specify_file_to_store_incremental_compilation_information_6380": "Especificar un archivo para almacenar la información de compilación incremental", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "Especifique cómo busca TypeScript un archivo a partir del especificador de módulo que se le indique.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "Especifique cómo se vigilan los directorios en los sistemas que carecen de la funcionalidad de vigilancia recursiva de archivos.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "Especifique cómo funciona el modo de inspección de TypeScript.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "Especifique los archivos de biblioteca que se van a incluir en la compilación.", - "Specify_module_code_generation_6016": "Especifique la generación de código del módulo.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Especifique la estrategia de resolución de módulos: 'node' (Node.js) o 'classic' (TypeScript pre-1.6).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Especifique el especificador de módulo que se usa para importar las funciones de fábrica de JSX cuando se usa \"jsx: react-jsx*\".", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Especifique varias carpetas que actúen como \"./node_modules/@types\".", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Especifique una o varias referencias de ruta o de módulo de nodo a los archivos de configuración base desde los que se herede la configuración.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "Especifique las opciones para la adquisición automática de los archivos de declaración.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "Especifique la estrategia para crear una inspección de sondeo cuando no se pueda crear con eventos del sistema de archivos: \"FixedInterval\" (valor predeterminado), \"PriorityInterval\", \"DynamicPriority\", \"FixedChunkSize\".", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "Especifique la estrategia para inspeccionar el directorio en las plataformas que no admiten las inspecciones recursivas de forma nativa: \"UseFsEvents\" (valor predeterminado), \"FixedPollingInterval\", \"DynamicPriorityPolling\", \"FixedChunkSizePolling\".", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "Especifique la estrategia para inspeccionar el archivo: \"FixedPollingInterval\" (valor predeterminado), \"PriorityPollingInterval\", \"DynamicPriorityPolling\", \"FixedChunkSizePolling\", \"UseFsEvents\", \"UseFsEventsOnParentDirectory\".", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "Especifique la referencia de fragmento de JSX utilizada para los fragmentos cuando se dirige a la emisión de JSX de React, por ejemplo, \"React.Fragment\" o \"Fragment\".", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "Especifique la función de generador JSX que se usará cuando el destino sea la emisión de JSX \"react\"; por ejemplo, \"React.createElement\" o \"h\".", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "Especifique la función de generador JSX que se usa al establecer como destino la emisión JSX de React; por ejemplo, \"React.createElement\" o \"h\".", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Especifique la función de la fábrica de fragmentos de JSX que se va a usar cuando se especifique como destino la emisión de JSX \"react\" con la opción del compilador \"jsxFactory\", por ejemplo, \"fragmento\".", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Especifique el directorio base para resolver nombres de módulos no relativos.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Especifique la secuencia de final de línea que debe usarse para emitir archivos: 'CRLF' (Dos) o 'LF' (Unix).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Especifique la ubicación donde el depurador debe colocar los archivos de TypeScript en lugar de sus ubicaciones de origen.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Especifique la ubicación donde el depurador debe colocar los archivos de asignaciones en lugar de las ubicaciones generadas.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Especifique la profundidad máxima de carpeta usada para comprobar archivos JavaScript de \"node_modules\". Solo es compatible con \"allowJs\".", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Especifique el especificador de módulo que se va a usar para importar las funciones de fábrica \"jsx\" y \"jsxs\"; por ejemplo, react", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Especifique el objeto invocado para 'createElement'. Esto solo se aplica cuando el destino es la emisión JSX \"react\".", - "Specify_the_output_directory_for_generated_declaration_files_6613": "Especifique el directorio de salida para los archivos de declaración generados.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Especifique la ruta de acceso para el archivo de compilación incremental .tsbuildinfo.", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Especifique el directorio raíz de los archivos de entrada. Úselo para controlar la estructura del directorio de salida con --outDir.", - "Specify_the_root_folder_within_your_source_files_6690": "Especifique la carpeta raíz en los archivos de código fuente.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Especifique la ruta raíz para que los depuradores encuentren el código de origen de referencia.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "Especifique los nombres de los paquetes de tipo que se incluyen sin ser referenciados en un archivo fuente.", - "Specify_what_JSX_code_is_generated_6646": "Especifique qué código de JSX se generará.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "Especifique el enfoque que debe usar el monitor si el sistema agota los monitores de archivos nativos.", - "Specify_what_module_code_is_generated_6657": "Especifique qué código de módulo se generará.", - "Split_all_invalid_type_only_imports_1367": "Dividir todas las importaciones solo de tipo no válidas", - "Split_into_two_separate_import_declarations_1366": "Dividir en dos declaraciones de importación independientes", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "El operador spread de las expresiones \"new\" solo está disponible si el destino es ECMAScript 5 y versiones posteriores.", - "Spread_types_may_only_be_created_from_object_types_2698": "Los tipos spread solo se pueden crear a partir de tipos de objeto.", - "Starting_compilation_in_watch_mode_6031": "Iniciando la compilación en modo de inspección...", - "Statement_expected_1129": "Se esperaba una instrucción.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "No se permiten instrucciones en los contextos de ambiente.", - "Static_members_cannot_reference_class_type_parameters_2302": "Los miembros estáticos no pueden hacer referencia a parámetros de tipo de clase.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La propiedad estática \"{0}\" está en conflicto con la propiedad integrada \"Function.{0}\" de la función de constructor \"{1}\".", - "String_literal_expected_1141": "Se esperaba un literal de cadena.", - "String_literal_with_double_quotes_expected_1327": "Se esperaba un literal de cadena entre comillas dobles.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Use color y contexto para estilizar los errores y los mensajes (experimental).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Las declaraciones de propiedad subsiguientes deben tener el mismo tipo. La propiedad \"{0}\" debe ser de tipo \"{1}\", pero aquí tiene el tipo \"{2}\".", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Las declaraciones de variable subsiguientes deben tener el mismo tipo. La variable '{0}' debe ser de tipo '{1}', pero aquí tiene el tipo '{2}'.", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "La sustitución '{0}' para el patrón '{1}' tiene un tipo incorrecto. Se esperaba 'string', pero se obtuvo '{2}'.", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "La sustitución \"{0}\" del patrón \"{1}\" puede tener un carácter \"*\" como máximo.", - "Substitutions_for_pattern_0_should_be_an_array_5063": "Las sustituciones para el patrón '{0}' deben ser una matriz.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "Las sustituciones para el patrón '{0}' no deben ser una matriz vacía.", - "Successfully_created_a_tsconfig_json_file_6071": "Archivo tsconfig.json creado correctamente.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "No se permiten llamadas a \"super\" fuera de los constructores o en funciones anidadas dentro de estos.", - "Suppress_excess_property_checks_for_object_literals_6072": "Suprima las comprobaciones de propiedades en exceso de los literales de objeto.", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "Eliminar errores de noImplicitAny para los objetos de indexación a los que les falten firmas de índice.", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "Suprima los errores \"noImplicitAny\" al indexar objetos que carecen de firmas de índice.", - "Switch_each_misused_0_to_1_95138": "Cambie cada elemento \"{0}\" usado incorrectamente a \"{1}\"", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "Llame a las devoluciones de llamada de forma sincrónica y actualice el estado de los monitores de directorio en las plataformas que no admitan la supervisión recursiva de forma nativa.", - "Syntax_Colon_0_6023": "Sintaxis: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "La etiqueta \"{0}\" espera al menos \"{1}\" argumentos, pero el generador de JSX \"{2}\" proporciona como máximo \"{3}\".", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "No se permiten expresiones de plantilla con etiquetas en una cadena opcional.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "El destino solo permite {0} elemento(s), pero el origen puede tener más.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "El destino requiere {0} elemento(s), pero el origen puede tener menos.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "El modificador \"{0}\" solo se puede usar en los archivos TypeScript.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "El operador '{0}' no se puede aplicar al tipo \"symbol\".", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "No se permite usar el operador '{0}' para los tipos booleanos. Como alternativa, puede usar '{1}'.", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La propiedad \"{0}\" de un iterador de asincronía debe ser un método.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "La propiedad \"{0}\" de un iterador debe ser un método.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "El tipo 'Object' se puede asignar a muy pocos tipos. ¿Se refería a usar el tipo 'any' en realidad?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "No se puede hacer referencia al objeto \"arguments\" en una función de flecha en ES3 ni ES5. Considere la posibilidad de usar una expresión de función estándar.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "No se puede hacer referencia al objeto \"arguments\" en una función o método asincrónico en ES3 ni ES5. Considere la posibilidad de usar un método o función estándar.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "El cuerpo de una instrucción \"if\" no puede ser la instrucción vacía.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "La llamada se llevaría a cabo sin problemas en esta implementación, pero las signaturas de implementación de las sobrecargas no están visibles externamente.", - "The_character_set_of_the_input_files_6163": "Conjunto de caracteres de los archivos de entrada.", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "La función de flecha contenedora captura el valor global de \"this\".", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "El cuerpo de la función o del módulo contenedor es demasiado grande para realizar un análisis de flujo de control.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "El archivo actual es un módulo CommonJS y no puede usar \"await\" en el nivel superior.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "El archivo actual es un módulo CommonJS cuyas importaciones generarán llamadas \"require\"; sin embargo, el archivo al que se hace referencia es un módulo ECMAScript y no se puede importar con \"require\". Considere la posibilidad de escribir una llamada dinámica \"import(\"{0}\")\" en su lugar.", - "The_current_host_does_not_support_the_0_option_5001": "El host actual no admite la opción '{0}'.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "La declaración de \"{0}\" que probablemente pretendía usar se define aquí", - "The_declaration_was_marked_as_deprecated_here_2798": "La declaración se ha marcado aquí como en desuso.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "El tipo esperado procede de la propiedad \"{0}\", que se declara aquí en el tipo \"{1}\"", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "El tipo esperado procede del tipo de valor devuelto de esta signatura.", - "The_expected_type_comes_from_this_index_signature_6501": "El tipo esperado procede de esta signatura de índice.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "La expresión de una asignación de exportación debe ser un identificador o un nombre completo en un contexto de ambiente.", - "The_file_is_in_the_program_because_Colon_1430": "El archivo está en el programa porque:", - "The_files_list_in_config_file_0_is_empty_18002": "La lista de archivos del archivo de configuración '{0}' está vacía.", - "The_first_export_default_is_here_2752": "El primer elemento export default está aquí.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "El primer parámetro del método \"then\" de una promesa debe ser una devolución de llamada.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "El tipo \"JSX.{0}\" global no puede tener más de una propiedad.", - "The_implementation_signature_is_declared_here_2750": "La signatura de implementación se declara aquí.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "No se permite la metapropiedad \"import.meta\" en archivos que se compilarán en la salida de CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metapropiedad \"import.meta\" solo se permite cuando la opción \"--módulo\" es \"es2020\", \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\".", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "No se puede asignar un nombre al tipo inferido de \"{0}\" sin una referencia a \"{1}\". Es probable que no sea portable. Se requiere una anotación de tipo.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "El tipo deducido de \"{0}\" hace referencia a un tipo con una estructura cíclica que no se puede serializar trivialmente. Es necesaria una anotación de tipo.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "El tipo inferido de \"{0}\" hace referencia a un tipo \"{1}\" no accesible. Se requiere una anotación de tipo.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "El tipo inferido de este nodo supera la longitud máxima que el compilador podrá serializar. Se necesita una anotación de tipo explícito.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "La intersección \"{0}\" se redujo a \"never\" porque la propiedad \"{1}\" existe en varios constituyentes y es privada en algunos de ellos.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "La intersección \"{0}\" se redujo a \"never\" porque la propiedad \"{1}\" tiene tipos en conflicto en algunos constituyentes.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "La palabra clave \"intrinsic\" solo se puede usar para declarar tipos intrínsecos proporcionados por el compilador.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "Se debe proporcionar la opción del compilador \"jsxFragmentFactory\" para usar fragmentos de JSX con la opción del compilador \"jsxFactory\".", - "The_last_overload_gave_the_following_error_2770": "La última sobrecarga dio el error siguiente.", - "The_last_overload_is_declared_here_2771": "La última sobrecarga se declara aquí.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La parte izquierda de una instrucción \"for...in\" no puede ser un patrón de desestructuración.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "La parte izquierda de una instrucción \"for...in\" no puede usar una anotación de tipo.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La parte izquierda de una instrucción \"for...in\" no puede ser un acceso de propiedad opcional.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La parte izquierda de una instrucción 'for...in' debe ser una variable o el acceso a una propiedad.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "La parte izquierda de una instrucción \"for...in\" debe ser de tipo \"string\" o \"any\".", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "La parte izquierda de una instrucción \"for...of\" no puede usar una anotación de tipo.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "La parte izquierda de una instrucción \"for...of\" no puede ser un acceso de propiedad opcional.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "El lado izquierdo de una instrucción de \"para... de\" puede no ser \"async\".", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "La parte izquierda de una instrucción 'for...of' debe ser una variable o el acceso a una propiedad.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La parte izquierda de una operación aritmética debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La parte izquierda de una expresión de asignación no puede ser un acceso de propiedad opcional.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La parte izquierda de una expresión de asignación debe ser una variable o el acceso a una propiedad.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La parte izquierda de una expresión \"instanceof\" debe ser de tipo \"any\", un tipo de objeto o un parámetro de tipo.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Configuración regional utilizada para mostrar los mensajes al usuario (por ejemplo, \"es-es\")", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "La profundidad máxima de dependencia para buscar en node_modules y cargar los archivos de JavaScript.", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "El operando de un operador \"delete\" no puede ser un identificador privado.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "El operando de un operador \"delete\" no puede ser una propiedad de solo lectura.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "El operando de un operador \"delete\" debe ser una referencia de propiedad.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "El operando de un operador \"delete\" debe ser opcional.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "El operando de un operador de incremento o decremento no puede ser un acceso de propiedad opcional.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "El operando de un operador de incremento o decremento debe ser una variable o el acceso a una propiedad.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "El analizador esperaba encontrar un elemento \"{1}\" que coincidiera con el token \"{0}\" aquí.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La raíz del proyecto es ambigua, pero es necesaria para resolver la entrada de asignación de exportación \"{0}\" en el archivo \"{1}\". Proporcione la opción del compilador \"rootDir\" para eliminar la ambigüedad.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La raíz del proyecto es ambigua, pero es necesaria para resolver la entrada de asignación de importación \"{0}\" en el archivo \"{1}\". Proporcione la opción del compilador \"rootDir\" para eliminar la ambigüedad.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "No se puede acceder a la propiedad \"{0}\" en el tipo \"{1}\" de esta clase porque se ha reemplazado por otro identificador privado con la misma ortografía.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "El tipo de valor devuelto de un descriptor de acceso \"get\" debe poder asignarse a su tipo de descriptor de acceso \"set\".", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "El tipo de valor devuelto de una función Decorator de parámetro debe ser \"void\" o \"any\".", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "El tipo de valor devuelto de una función Decorator de propiedad debe ser \"void\" o \"any\".", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "El tipo de valor devuelto de una función asincrónica debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "El tipo de valor devuelto de una función o un método asincrónicos debe ser el tipo Promise global. ¿Pretendía escribir \"Promise<{0}>\"?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La parte derecha de una instrucción \"for...in\" debe ser de tipo \"any\", un tipo de objeto o un parámetro de tipo, pero aquí tiene el tipo \"{0}\".", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La parte derecha de una operación aritmética debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La parte derecha de una expresión \"instanceof\" debe ser de tipo \"any\" o un tipo que pueda asignarse al tipo de interfaz \"Function\".", - "The_root_value_of_a_0_file_must_be_an_object_5092": "El valor raíz de un archivo \"{0}\" debe ser un objeto.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "La declaración que ensombrece a \"{0}\" se define aquí.", - "The_signature_0_of_1_is_deprecated_6387": "La signatura \"{0}\" de \"{1}\" está en desuso.", - "The_specified_path_does_not_exist_Colon_0_5058": "La ruta de acceso especificada no existe: \"{0}\".", - "The_tag_was_first_specified_here_8034": "La etiqueta se especificó aquí primero.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "El destino de una asignación rest de objeto no puede ser un acceso de propiedad opcional.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "El destino de una asignación de reposo de objetos debe ser una variable o un acceso a propiedad.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "El contexto 'this' de tipo '{0}' no se puede asignar al contexto 'this' de tipo '{1}' del método.", - "The_this_types_of_each_signature_are_incompatible_2685": "Los tipos 'this' de cada signatura son incompatibles.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "El tipo \"{0}\" es \"readonly\" y no se puede asignar al tipo mutable \"{1}\".", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "El modificador 'tipo' no se puede usar en una exportación con nombre cuando se usa 'exportar tipo' en su instrucción exportar.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "El modificador 'tipo' no se puede usar en una importación con nombre cuando se usa 'exportar tipo' en su instrucción importar.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "El tipo de una declaración de función debe coincidir con la signatura de la función.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "No se puede nombrar el tipo de esta expresión sin una aserción \"modo de resolución\", que es una característica inestable. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "No se ha podido serializar el tipo de este nodo porque su propiedad '{0}' no se puede serializar.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "El tipo devuelto por el método \"{0}()\" de un iterador de asincronía debe ser una promesa para un tipo con una propiedad \"value\".", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "El tipo devuelto por el método \"{0}()\" de un iterador debe tener una propiedad \"value\".", - "The_types_of_0_are_incompatible_between_these_types_2200": "Los tipos de \"{0}\" son incompatibles entre estos tipos.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "Los tipos que \"{0}\" devuelve son incompatibles entre estos tipos.", - "The_value_0_cannot_be_used_here_18050": "El valor \"{0}\" no se puede usar aquí.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La declaración de variable de una instrucción \"for...in\" no puede tener un inicializador.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La declaración de variable de una instrucción \"for...of\" no puede tener un inicializador.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "No se admite la instrucción 'with'. Todos los símbolos de un bloque 'with' tendrán el tipo 'any'.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "La propiedad \"{0}\" de esta etiqueta de JSX espera un solo elemento secundario de tipo \"{1}\", pero se han proporcionado varios elementos secundarios.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "La propiedad \"{0}\" de esta etiqueta de JSX espera el tipo \"{1}\", que requiere varios elementos secundarios, pero solo se ha proporcionado un elemento secundario.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Esta comparación parece no intencionada porque los tipos \"{0}\" y \"{1}\" no tienen superposición.", - "This_condition_will_always_return_0_2845": "Esta condición siempre devolverá \"{0}\".", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Esta condición siempre devolverá \"{0}\", ya que JavaScript compara objetos por referencia, no por valor.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Esta condición devolverá siempre true porque siempre se define '{0}'.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Esta condición siempre devolverá true, porque esta función se define siempre. ¿Pretendía llamarla en su lugar?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta función de constructor puede convertirse en una declaración de clase.", - "This_expression_is_not_callable_2349": "No se puede llamar a esta expresión.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "No se puede llamar a esta expresión porque es un descriptor de acceso \"get\". ¿Pretendía usarlo sin \"()\"?", - "This_expression_is_not_constructable_2351": "No se puede construir esta expresión.", - "This_file_already_has_a_default_export_95130": "Este archivo ya tiene una exportación predeterminada", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Esta importación nunca se usa como valor y debe utilizar \"import type\" porque \"importsNotUsedAsValues\" está establecido en \"error\".", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Esta es la declaración que se está aumentando. Considere la posibilidad de mover la declaración en aumento al mismo archivo.", - "This_may_be_converted_to_an_async_function_80006": "Puede convertirse en una función asincrónica.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Este miembro no puede tener un comentario JSDoc con una etiqueta '@override' porque no se declara en la clase base '{0}'.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Este miembro no puede tener un comentario JSDoc con una etiqueta 'override' porque no se declara en la clase base '{0}'. ¿Quería decir '{1}'?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Este miembro no puede tener un comentario JSDoc con una etiqueta '@override' porque su clase contenedora '{0}' no extiende otra clase.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Este miembro no puede tener un modificador \"override\" porque no está declarado en la clase base \"{0}\".", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Este miembro no puede tener un modificador \"override\" porque no está declarado en la clase base \"{0}\". ¿Quizá quiso decir \"{1}\"?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Este miembro no puede tener un modificador \"override\" porque su clase contenedora \"{0}\" no extiende otra clase.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Este miembro debe tener un comentario JSDoc con una etiqueta '@override' porque invalida un miembro de la clase base '{0}'.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Este miembro debe tener un modificador \"override\" porque reemplaza a un miembro en la clase base \"{0}\".", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Este miembro debe tener un modificador \"override\" porque reemplaza a un método abstracto que se declara en la clase base \"{0}\".", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Solo se puede hacer referencia a este módulo con las importaciones o exportaciones de ECMAScript mediante la activación de la marca \"{0}\" y la referencia a su exportación predeterminada.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Este módulo se declara con \"export =\" y solo se puede usar con una importación predeterminada cuando se usa la marca \"{0}\".", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Esta signatura de sobrecarga no es compatible con su signatura de implementación.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Este parámetro no se permite con la directiva \"use strict\".", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Esta propiedad de parámetro debe tener un comentario JSDoc con una etiqueta '@override' porque invalida un miembro de la clase base '{0}'.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Esta propiedad de parámetro debe tener un modificador \"override\" porque reemplaza a un miembro en la clase base \"{0}\".", - "This_spread_always_overwrites_this_property_2785": "Este elemento de propagación siempre sobrescribe esta propiedad.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Esta sintaxis está reservada en archivos con la extensión .mts o .CTS. Agregue una coma o una restricción explícita al final.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Esta sintaxis se reserva a archivos con la extensión .mts o .cts. En su lugar, use una expresión \"as\".", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere un asistente importado, pero no se puede encontrar el módulo \"{0}\".", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Esta sintaxis requiere una aplicación auxiliar importada denominada \"{1}\", que no existe en \"{0}\". Considere la posibilidad de actualizar la versión de \"{0}\".", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Esta sintaxis requiere un asistente importado denominado \"{1}\" con parámetros de {2}, que no es compatible con el de \"{0}\". Pruebe a actualizar la versión de \"{0}\".", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "Este parámetro de tipo podría necesitar una restricción \"extends {0}\".", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Este uso de \"import\" no es válido. Se pueden escribir llamadas \"import()\", pero deben tener paréntesis y no pueden tener argumentos de tipo.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "Para convertir este archivo en un módulo ECMAScript, agregue el campo `\"type\": \"module\"` a \"{0}\"'.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Para convertir este archivo en un módulo ECMAScript, cambie su extensión de archivo a \"{0}\" o agregue el campo `\"type\": \"module\"` a \"{1}\".", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Para convertir este archivo en un módulo ECMAScript, cambie su extensión de archivo a \"{0}\" o cree un archivo package.json local con '{ \"type\": \"module\" }'.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Para convertir este archivo en un módulo ECMAScript, cree un archivo package.json local con `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Las expresiones \"await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Las declaraciones de nivel superior de los archivos .d.ts deben comenzar con un modificador \"declare\" o \"export\".", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Los bucles \"for await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.", - "Trailing_comma_not_allowed_1009": "No se permite la coma final.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpilar cada archivo como un módulo aparte (parecido a \"ts.transpileModule\").", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Pruebe \"npm i --save-dev @types/{1}\" si existe o agregue un nuevo archivo de declaración (.d.ts) que incluya \"declare module '{0}';\".", - "Trying_other_entries_in_rootDirs_6110": "Se probarán otras entradas de \"rootDirs\".", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Probando la sustitución '{0}', ubicación candidata para el módulo: '{1}'.", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Todos los miembros de tupla deben tener nombres o no debe tenerlo ninguno de ellos.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "El tipo de tupla \"{0}\" de longitud \"{1}\" no tiene ningún elemento en el índice \"{2}\".", - "Tuple_type_arguments_circularly_reference_themselves_4110": "Los argumentos de tipo de tupla se hacen referencia a sí mismos de forma circular.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "El tipo \"{0}\" solo puede iterarse cuando se usa la marca \"--downlevelIteration\" o con un valor \"--target\" de \"es2015\" o superior.", - "Type_0_cannot_be_used_as_an_index_type_2538": "El tipo '{0}' no se puede usar como tipo de índice.", - "Type_0_cannot_be_used_to_index_type_1_2536": "El tipo '{0}' no se puede usar para indexar el tipo '{1}'.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "El tipo '{0}' no cumple la restricción '{1}'.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "El tipo \"{0}\" no satisface el tipo esperado \"{1}\".", - "Type_0_has_no_call_signatures_2757": "El tipo \"{0}\" no tiene signaturas de llamada.", - "Type_0_has_no_construct_signatures_2761": "El tipo \"{0}\" no tiene signaturas de construcción.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "El tipo '{0}' no tiene una signatura de índice correspondiente al tipo '{1}'.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "El tipo \"{0}\" no tiene propiedades en común con el tipo \"{1}\".", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "El tipo \"{0}\" no tiene firmas para las que sea aplicable la lista de argumentos de tipo.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Al tipo \"{0}\" le faltan las propiedades siguientes del tipo \"{1}\": {2}", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Al tipo \"{0}\" le faltan las propiedades siguientes del tipo \"{1}\": {2} y {3} más.", - "Type_0_is_not_a_constructor_function_type_2507": "El tipo '{0}' no es un tipo de función de constructor.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "El tipo '{0}' no es un tipo de valor devuelto válido para una función asincrónica en ES5/ES3, porque no hace referencia a un valor de constructor compatible con promesas.", - "Type_0_is_not_an_array_type_2461": "'{0}' no es un tipo de matriz.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "'{0}' no es un tipo de matriz o un tipo de cadena.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "El tipo \"{0}\" no es un tipo de matriz o un tipo de cadena o no tiene un método \"[Symbol.iterator]()\" que devuelve un iterador.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "El tipo \"{0}\" no es un tipo de matriz o no tiene un método \"[Symbol.iterator]()\" que devuelve un iterador.", - "Type_0_is_not_assignable_to_type_1_2322": "El tipo '{0}' no se puede asignar al tipo '{1}'.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "El tipo '{0}' no se puede asignar al tipo '{1}'. ¿Quería decir \"{2}\"?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "El tipo \"{0}\" no se puede asignar al tipo \"{1}\". Existen dos tipos distintos con este nombre, pero no están relacionados.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "El tipo “{0}” no se puede asignar al tipo “{1}”, tal y como implica la anotación de desviación.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "El tipo '{0}' no se puede asignar al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" a los tipos de propiedades del destino.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "El tipo '{0}' no se puede asignar al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" al tipo del destino.", - "Type_0_is_not_comparable_to_type_1_2678": "El tipo '{0}' no se puede comparar con el tipo '{1}'.", - "Type_0_is_not_generic_2315": "El tipo '{0}' no es genérico.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "El tipo \"{0}\" puede representar un valor primitivo, que no se permite como operando derecho del operador \"in\".", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "El tipo \"{0}\" debe tener un método \"[Symbol.asyncIterator]()\" que devuelve un iterador de asincronía.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "El tipo \"{0}\" debe tener un método \"[Symbol.iterator]()\" que devuelve un iterador.", - "Type_0_provides_no_match_for_the_signature_1_2658": "El tipo \"{0}\" no proporciona ninguna coincidencia para la signatura \"{1}\".", - "Type_0_recursively_references_itself_as_a_base_type_2310": "El tipo '{0}' se hace referencia a sí mismo de forma recursiva como tipo base.", - "Type_Checking_6248": "Comprobación de tipos", - "Type_alias_0_circularly_references_itself_2456": "El alias de tipo '{0}' se hace referencia a sí mismo de forma circular.", - "Type_alias_must_be_given_a_name_1439": "Se debe asignar un nombre al alias de tipo.", - "Type_alias_name_cannot_be_0_2457": "El nombre del alias de tipo no puede ser \"{0}\".", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "Los alias de tipo solo se pueden usar en los archivos TypeScript.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "Una anotación de tipo no puede aparecer en una declaración de constructor.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "Las anotaciones de tipo solo se pueden usar en los archivos TypeScript.", - "Type_argument_expected_1140": "Se esperaba un argumento de tipo.", - "Type_argument_list_cannot_be_empty_1099": "La lista de argumentos de tipo no puede estar vacía.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Los argumentos de tipo solo se pueden usar en los archivos TypeScript.", - "Type_arguments_cannot_be_used_here_1342": "No se pueden usar argumentos de tipo aquí.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "Los argumentos de tipo de \"{0}\" se hacen referencia a sí mismos de forma circular.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Las expresiones de aserción de tipo solo se pueden usar en los archivos TypeScript.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "El tipo en la posición {0} del origen no es compatible con el tipo en la posición {1} del destino.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "El tipo en las posiciones {0} a {1} del origen no es compatible con el tipo en la posición {2} del destino.", - "Type_declaration_files_to_be_included_in_compilation_6124": "Archivos de declaración de tipos que se incluirán en la compilación.", - "Type_expected_1110": "Se esperaba un tipo.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Las aserciones de importación de tipos deben tener exactamente una clave - \"resolution-mode\" - con el valor \"import\" o \"require\".", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creación de una instancia de tipo es excesivamente profunda y posiblemente infinita.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Se hace referencia al tipo directa o indirectamente en la devolución de llamada de entrega de su propio método \"then\".", - "Type_library_referenced_via_0_from_file_1_1402": "Biblioteca de tipos a la que se hace referencia mediante \"{0}\" desde el archivo \"{1}\"", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "Biblioteca de tipos a la que se hace referencia mediante \"{0}\" desde el archivo \"{1}\" con el valor packageId \"{2}\"", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "El tipo de operando \"await\" debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "El tipo de valor de la propiedad calculada es \"{0}\", que no se puede asignar al tipo \"{1}\".", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "El tipo de variable miembro de instancia \"{0}\" no puede hacer referencia al identificador \"{1}\" declarado en el constructor.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "El tipo de elementos iterados de un operando \"yield*\" debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "El tipo de propiedad \"{0}\" hace referencia circular a sí misma en el tipo asignado \"{1}\".", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "El tipo de operando \"yield\" en un generador asincrónico debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "El tipo se origina en esta importación. No se puede construir ni llamar a una importación de estilo de espacio de nombres y provocará un error en tiempo de ejecución. Considere la posibilidad de usar una importación predeterminada o require aquí en su lugar.", - "Type_parameter_0_has_a_circular_constraint_2313": "El parámetro de tipo '{0}' tiene una restricción circular.", - "Type_parameter_0_has_a_circular_default_2716": "El parámetro de tipo \"{0}\" tiene un valor circular predeterminado.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "El parámetro de tipo '{0}' de la signatura de llamada de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "El parámetro de tipo '{0}' de la signatura de constructor de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "El parámetro de tipo '{0}' de la clase exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "El parámetro de tipo '{0}' de la función exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "El parámetro de tipo '{0}' de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "El parámetro de tipo \"{0}\" del tipo de objeto asignado exportado usa un nombre privado \"{1}\".", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "El parámetro de tipo '{0}' del alias del tipo exportado tiene o usa un nombre privado '{1}'.", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "El parámetro de tipo '{0}' del método de la interfaz exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "El parámetro de tipo '{0}' del método público de la clase exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "El parámetro de tipo '{0}' del método estático público de la clase exportada tiene o usa el nombre privado '{1}'.", - "Type_parameter_declaration_expected_1139": "Se esperaba una declaración de parámetros de tipo.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "Las declaraciones de parámetros de tipo solo se pueden usar en los archivos TypeScript.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "Los valores predeterminados del parámetro de tipo solo pueden hacer referencia a parámetros de tipo declarados previamente.", - "Type_parameter_list_cannot_be_empty_1098": "La lista de parámetros de tipo no puede estar vacía.", - "Type_parameter_name_cannot_be_0_2368": "El nombre del parámetro de tipo no puede ser \"{0}\".", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "Los parámetros de tipo no pueden aparecer en una declaración de constructor.", - "Type_predicate_0_is_not_assignable_to_1_1226": "El predicado de tipo '{0}' no se puede asignar a '{1}'.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "El tipo genera un tipo de tupla demasiado grande para representarlo.", - "Type_reference_directive_0_was_not_resolved_6120": "======== No se resolvió la directiva de referencia de tipo '{0}'. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== La directiva de referencia de tipo '{0}' se resolvió correctamente como '{1}', principal: {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== La directiva de referencia de tipo \"{0}\" se resolvió correctamente como \"{1}\" con el identificador de paquete \"{2}\", principal: {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "Las expresiones de satisfacción de tipo solo se pueden usar en archivos TypeScript.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Los tipos no pueden aparecer en declaraciones de exportación en archivos JavaScript.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "Los tipos tienen declaraciones independientes de una propiedad '{0}' privada.", - "Types_of_construct_signatures_are_incompatible_2419": "Los tipos de signaturas de construcción son incompatibles.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "Los tipos de parámetros '{0}' y '{1}' no son compatibles.", - "Types_of_property_0_are_incompatible_2326": "Los tipos de propiedad '{0}' no son compatibles.", - "Unable_to_open_file_0_6050": "No se puede abrir el archivo '{0}'.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "No se puede resolver la signatura de elemento Decorator de una clase cuando se llama como expresión.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "No se puede resolver la signatura de elemento Decorator de un método cuando se llama como expresión.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "No se puede resolver la signatura de elemento Decorator de un parámetro cuando se llama como expresión.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "No se puede resolver la signatura de elemento Decorator de una propiedad cuando se llama como expresión.", - "Unexpected_end_of_text_1126": "Final de texto inesperado.", - "Unexpected_keyword_or_identifier_1434": "Identificador o palabra clave inesperados.", - "Unexpected_token_1012": "Token inesperado.", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Se esperaba un constructor, un método, un descriptor de acceso o una propiedad.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Se esperaba un nombre de parámetro de tipo sin llaves.", - "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. ¿Pretendía usar \"{'}'}\" o \"}\"?", - "Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".", - "Unknown_build_option_0_5072": "Opción de compilación \"{0}\" desconocida.", - "Unknown_build_option_0_Did_you_mean_1_5077": "Opción de compilación \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", - "Unknown_compiler_option_0_5023": "Opción '{0}' del compilador desconocida.", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "Opción del compilador \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Identificador o palabra clave desconocidos. ¿Quiso decir \"{0}\"?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "Opción 'excludes' desconocida. ¿Quería decir 'exclude'?", - "Unknown_type_acquisition_option_0_17010": "Opción '{0}' de adquisición de tipos desconocida.", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Opción de adquisición de tipos \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", - "Unknown_watch_option_0_5078": "Opción de inspección \"{0}\" desconocida.", - "Unknown_watch_option_0_Did_you_mean_1_5079": "Opción de inspección \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", - "Unreachable_code_detected_7027": "Se ha detectado código inaccesible.", - "Unterminated_Unicode_escape_sequence_1199": "Secuencia de escape Unicode sin terminar.", - "Unterminated_quoted_string_in_response_file_0_6045": "Cadena entrecomillada sin terminar en el archivo de respuesta '{0}'.", - "Unterminated_regular_expression_literal_1161": "Literal de expresión regular sin terminar.", - "Unterminated_string_literal_1002": "Literal de cadena sin terminar.", - "Unterminated_template_literal_1160": "Literal de plantilla sin terminar.", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "Las llamadas a función sin tipo no pueden aceptar argumentos de tipo.", - "Unused_label_7028": "Etiqueta no usada.", - "Unused_ts_expect_error_directive_2578": "Directiva \"@ts-expect-error\" no usada.", - "Update_import_from_0_90058": "Actualizar importación desde “{0}”", - "Updating_output_of_project_0_6373": "Actualizando la salida del proyecto \"{0}\"...", - "Updating_output_timestamps_of_project_0_6359": "Actualizando las marcas de hora de salida del proyecto \"{0}\"...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "Actualizando las marcas de hora de salida no modificadas del proyecto \"{0}\"...", - "Use_0_95174": "Usar `{0}`.", - "Use_Number_isNaN_in_all_conditions_95175": "Use \"Number.isNaN\" en todas las condiciones.", - "Use_element_access_for_0_95145": "Usar acceso de elemento para \"{0}\"", - "Use_element_access_for_all_undeclared_properties_95146": "Use el acceso de elemento para todas las propiedades no declaradas.", - "Use_synthetic_default_member_95016": "Use el miembro sintético \"default\".", - "Using_0_subpath_1_with_target_2_6404": "Usando '{0}' subruta '{1}' con destino '{2}'.", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "El uso de una cadena en una instrucción \"for...of\" solo se admite en ECMAScript 5 y versiones posteriores.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Con --build, -b hará que tsc se comporte más como un orquestador de compilación que como un compilador. Se usa para desencadenar la compilación de proyectos compuestos, sobre los que puede obtener más información en {0}", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Uso de las opciones del compilador de redireccionamiento de la referencia del proyecto \"{0}\".", - "VERSION_6036": "VERSIÓN", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "El valor de tipo \"{0}\" no tiene propiedades en común con el tipo \"{1}\". ¿Realmente quiere llamarlo?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "No se puede llamar a un valor de tipo '{0}'. ¿Pretendía incluir \"new\"?", - "Variable_0_implicitly_has_an_1_type_7005": "La variable '{0}' tiene un tipo '{1}' implícitamente.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "La variable \"{0}\" tiene un tipo \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "La variable \"{0}\" tiene un tipo \"{1}\" de forma implícita en algunas ubicaciones, pero se puede inferir un tipo más adecuado a partir del uso.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "La variable '{0}' tiene implícitamente el tipo '{1}' en algunos sitios donde no se puede determinar su tipo.", - "Variable_0_is_used_before_being_assigned_2454": "La variable '{0}' se usa antes de asignarla.", - "Variable_declaration_expected_1134": "Se esperaba una declaración de variable.", - "Variable_declaration_list_cannot_be_empty_1123": "La lista de declaraciones de variable no puede estar vacía.", - "Variable_declaration_not_allowed_at_this_location_1440": "No se permite una declaración de variable en esta ubicación.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "El elemento variádico en la posición {0} del origen no coincide con el elemento en la posición {1} del destino.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Las anotaciones de varianza solo se admiten en alias de tipo para los tipos objeto, función, constructor y asignado.", - "Version_0_6029": "Versión {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Visite https://aka.ms/tsconfig para obtener más información acerca de este archivo", - "WATCH_OPTIONS_6918": "OPCIONES DE INSPECCIÓN", - "Watch_and_Build_Modes_6250": "Modos de compilación e inspección", - "Watch_input_files_6005": "Inspeccionar archivos de entrada.", - "Watch_option_0_requires_a_value_of_type_1_5080": "La opción \"{0}\" de inspección requiere un valor de tipo {1}.", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Solo se puede escribir un tipo para '{0}' agregando aquí un tipo para todo el parámetro.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Al asignar funciones, compruebe que efectivamente los parámetros y los valores devueltos son compatibles con el subtipo.", - "When_type_checking_take_into_account_null_and_undefined_6699": "Al comprobar tipos, tenga en cuenta \"null\" y \"undefined\".", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Si se debe mantener la salida de la consola no actualizada en el modo de inspección en lugar de borrar la pantalla.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "Encapsular todos los caracteres no válidos en un contenedor de expresiones", - "Wrap_all_object_literal_with_parentheses_95116": "Encapsular todos los literales de objeto entre paréntesis", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Encapsular todos los JSX no primarios en el fragmento de JSX", - "Wrap_in_JSX_fragment_95120": "Ajustar en fragmento de JSX", - "Wrap_invalid_character_in_an_expression_container_95108": "Encapsular el carácter no válido en un contenedor de expresiones", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Encapsular el cuerpo siguiente entre paréntesis, lo cual debe ser un literal de objeto", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Puede obtener información sobre todas las opciones del compilador en {0}", - "You_cannot_rename_a_module_via_a_global_import_8031": "No se puede cambiar el nombre de un módulo mediante una importación global.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "No se puede cambiar el nombre de los elementos definidos en una carpeta 'node_modules'.", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "No se puede cambiar el nombre de los elementos definidos en otra carpeta 'node_modules'.", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "No se puede cambiar el nombre de elementos definidos en la biblioteca TypeScript estándar.", - "You_cannot_rename_this_element_8000": "No se puede cambiar el nombre a este elemento.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "\"{0}\" no acepta suficientes argumentos para utilizarse como decorador aquí. ¿Pretendía llamar primero y escribir \"@{0}()\"?", - "_0_and_1_index_signatures_are_incompatible_2330": "Las signaturas de índice \"{0}\" y \"{1}\" no son compatibles.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Las operaciones \"{0}\" y \"{1}\" no se pueden mezclar sin paréntesis.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "\"{0}\" se especifica dos veces. El atributo denominado \"{0}\" se sobrescribirá.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "\"{0}\" solo se puede importar si se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "\"{0}\" solo se puede importar si se usa una importación predeterminada.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "\"{0}\" solo se puede importar si se usa una llamada a \"require\" o bien se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "\"{0}\" solo se puede importar si se usa una llamada a \"require\" o una importación predeterminada.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "\"{0}\" solo se puede importar si se usa \"import {1} = require({2})\" o una importación predeterminada.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "\"{0}\" solo se puede importar si se usa \"import {1} = require({2})\" o bien se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "\"{0}\" no se puede compilar bajo \"--isolatedModules\" porque se considera un archivo de script global. Agregue una instrucción import o export, o una instrucción \"export {}\" vacía para convertirla en un módulo.", - "_0_cannot_be_used_as_a_JSX_component_2786": "No se puede usar \"{0}\" como componente JSX.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "No se puede usar \"{0}\" como valor porque se exportó mediante \"export type\".", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "No se puede usar \"{0}\" como valor porque se importó mediante \"import type\".", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Los componentes \"{0}\" no aceptan el texto como elemento secundario. El texto de JSX tiene el tipo \"string\", pero el tipo que se esperaba de \"{1}\" es \"{2}\".", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Puede crearse una instancia de \"{0}\" con un tipo arbitrario que podría no estar relacionado con \"{1}\".", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Las declaraciones \"{0}\" solo se pueden usar en los archivos TypeScript.", - "_0_expected_1005": "Se esperaba '{0}'.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "\"{0}\" no tiene ningún miembro exportado con el nombre \"{1}\". ¿Pretendía usar \"{2}\"?", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" tiene un tipo de valor devuelto \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' tiene el tipo de valor devuelto \"any\" implícitamente porque no tiene una anotación de tipo de valor devuelto y se hace referencia a este directa o indirectamente en una de sus expresiones return.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "'{0}' tiene el tipo de valor devuelto \"any\" implícitamente porque no tiene una anotación de tipo y se hace referencia a este directa o indirectamente en su propio inicializador.", - "_0_index_signatures_are_incompatible_2634": "Las signaturas de índice \"{0}\" no son compatibles.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "El tipo de índice \"{0}\"' \"{1}\" no se puede asignar al tipo de índice \"{2}\" \"{3}\".", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' es un elemento primitivo, pero '{1}' es un objeto contenedor. Use '{0}' preferentemente cuando sea posible.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' es un tipo y no se puede importar en archivos JavaScript. Use '{1}' en una anotación de tipo JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" es un tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' es un cambio de nombre de '{1}' sin usar. ¿Quería usarlo como una anotación de tipo?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" puede asignarse a la restricción de tipo \"{1}\", pero no se pudo crear una instancia de \"{1}\" con un subtipo distinto de la restricción \"{2}\".", - "_0_is_automatically_exported_here_18044": "'{0}' se exporta automáticamente aquí.", - "_0_is_declared_but_its_value_is_never_read_6133": "Se declara \"{0}\", pero su valor no se lee nunca.", - "_0_is_declared_but_never_used_6196": "\"{0}\" se declara pero nunca se utiliza.", - "_0_is_declared_here_2728": "\"{0}\" se declara aquí.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "\"{0}\" se define como propiedad en la clase \"{1}\", pero se reemplaza aquí en \"{2}\" como descriptor de acceso.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "\"{0}\" se define como descriptor de acceso en la clase \"{1}\", pero se reemplaza aquí en \"{2}\" como propiedad de instancia.", - "_0_is_deprecated_6385": "\"{0}\" está en desuso.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "\"{0}\" no es una propiedad Meta válida para la palabra clave \"{1}\". ¿Pretendía usar \"{2}\"?", - "_0_is_not_allowed_as_a_parameter_name_1390": "No se permite “{0}” como nombre de parámetro.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "No se permite \"{0}\" como nombre de declaración de variable.", - "_0_is_of_type_unknown_18046": "\"{0}\" es de tipo \"unknown\".", - "_0_is_possibly_null_18047": "\"{0}\" es posiblemente \"null\".", - "_0_is_possibly_null_or_undefined_18049": "\"{0}\" es posiblemente \"null\" o \"undefined\".", - "_0_is_possibly_undefined_18048": "\"{0}\" es posiblemente \"undefined\".", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "Se hace referencia a '{0}' directa o indirectamente en su propia expresión base.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "Se hace referencia a '{0}' directa o indirectamente en su propia anotación de tipo.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "\"{0}\" se ha especificado más de una vez, por lo que se sobrescribirá este uso.", - "_0_list_cannot_be_empty_1097": "La lista '{0}' no puede estar vacía.", - "_0_modifier_already_seen_1030": "El modificador '{0}' ya se ha visto.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "El modificador “{0}” solo puede aparecer en un parámetro de tipo de una clase, interfaz o alias de tipo", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "El modificador '{0}' no puede aparecer en una declaración de constructor.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "El modificador '{0}' no puede aparecer en un módulo o un elemento de espacio de nombres.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "El modificador '{0}' no puede aparecer en un parámetro.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "El modificador '{0}' no puede aparecer en un miembro de tipo.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "El modificador “{0}” no puede aparecer en un parámetro de tipo", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "El modificador '{0}' no puede aparecer en una signatura de índice.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "El modificador \"{0}\" no puede aparecer en elementos de clase de este tipo.", - "_0_modifier_cannot_be_used_here_1042": "El modificador '{0}' no se puede usar aquí.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "El modificador '{0}' no se puede usar en un contexto de ambiente.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "El modificador '{0}' no se puede usar con el modificador '{1}'.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "El modificador \"{0}\" no se puede usar con un identificador privado.", - "_0_modifier_must_precede_1_modifier_1029": "El modificador \"{0}\" debe preceder al modificador \"{1}\".", - "_0_needs_an_explicit_type_annotation_2782": "\"{0}\" necesita una anotación de tipo explícito.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' solo hace referencia a un tipo, pero aquí se usa como espacio de nombres.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' solo hace referencia a un tipo, pero aquí se usa como valor.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "\"{0}\" solo hace referencia a un tipo, pero aquí se usa como valor. ¿Pretendía usar \"{1} en {0}\"?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" solo hace referencia a un tipo, pero aquí se usa como valor. ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a es2015 o posterior.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' hace referencia a un elemento UMD global, pero el archivo actual es un módulo. Puede agregar una importación en su lugar.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" hace referencia a un valor, pero aquí se usa como tipo. ¿Quiso decir \"typeof {0}\"?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" se resuelve como una declaración de solo tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" se resuelve como una declaración de solo tipo y debe volverse a exportar con un tipo de reexportación solo cuando esté habilitada la opción \"isolatedModules\".", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" debe establecerse dentro del objeto \"compilerOptions\" del archivo .json de configuración", - "_0_tag_already_specified_1223": "La etiqueta '{0}' ya se ha especificado.", - "_0_was_also_declared_here_6203": "\"{0}\" también se ha declarado aquí.", - "_0_was_exported_here_1377": "\"{0}\" se ha exportado aquí.", - "_0_was_imported_here_1376": "\"{0}\" se ha importado aquí.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}' carece de una anotación de tipo de valor devuelto, pero tiene un tipo de valor devuelto '{1}' implícitamente.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "\"{0}\" carece de una anotación de tipo de valor devuelto, pero tiene un tipo yield \"{1}\" de forma implícita.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "El modificador 'abstract' solo puede aparecer en una declaración de propiedad, clase o método.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "El modificador 'accessor' solo puede aparecer en una declaración de propiedad.", - "and_here_6204": "y aquí.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "no se puede hacer referencia a «arguments» en los inicializadores de propiedad.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trate los archivos con importaciones, exportaciones, import.meta, jsx (con jsx: react-jsx) o formato esm (con el módulo: node16+) como módulos.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Las expresiones \"await\" solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Las expresiones \"await\" solo se permiten en las funciones asincrónicas y en los niveles superiores de los módulos.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Las expresiones \"await\" no se pueden usar en un inicializador de parámetros.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" no tiene efecto en el tipo de esta expresión.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "La opción \"baseUrl\" está establecida en \"{0}\", se usará este valor para resolver el nombre de módulo no relativo \"{1}\".", - "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" solo se puede usar al principio de un archivo.", - "case_or_default_expected_1130": "Se esperaba \"case\" o \"default\".", - "catch_or_finally_expected_1472": "se esperaba \"catch\" o \"finally\".", - "const_declarations_can_only_be_declared_inside_a_block_1156": "Las declaraciones \"const\" solo se pueden declarar dentro de un bloque.", - "const_declarations_must_be_initialized_1155": "Las declaraciones \"const\" deben inicializarse.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "El inicializador de miembros de enumeración \"const\" se evaluó con un valor no finito.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "El inicializador de miembros de enumeración \"const\" se evaluó con un valor \"NaN\" no permitido.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Los inicializadores de miembros de enumeración const solo pueden contener valores literales y otros valores de enumeración calculados.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Las enumeraciones \"const\" solo se pueden usar en expresiones de acceso de propiedad o índice, o en la parte derecha de una declaración de importación, una asignación de exportación o una consulta de tipo.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "El elemento \"constructor\" no se puede usar como nombre de propiedad de parámetro.", - "constructor_is_a_reserved_word_18012": "\"#constructor\" es una palabra reservada.", - "default_Colon_6903": "predeterminadas:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "No se puede llamar a \"delete\" en un identificador en modo strict.", - "export_Asterisk_does_not_re_export_a_default_1195": "\"export *\" no vuelve a exportar una exportación predeterminada.", - "export_can_only_be_used_in_TypeScript_files_8003": "\"export =\" solo se puede usar en los archivos TypeScript.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "El modificador 'export' no se puede aplicar a módulos de ambiente ni aumentos de módulos, porque siempre están visibles.", - "extends_clause_already_seen_1172": "La cláusula \"extends\" ya se ha visto.", - "extends_clause_must_precede_implements_clause_1173": "La cláusula \"extends\" debe preceder a la cláusula \"implements\".", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "La cláusula \"extends\" de la clase \"{0}\" exportada tiene o usa el nombre privado \"{1}\".", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "La cláusula \"extends\" de la clase exportada tiene o usa el nombre privado \"{0}\".", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "La cláusula \"extends\" de la interfaz \"{0}\" exportada tiene o usa el nombre privado \"{1}\".", - "false_unless_composite_is_set_6906": "\"false\", a menos que se establezca \"composite\"", - "false_unless_strict_is_set_6905": "\"false\", a menos que se establezca como \"strict\"", - "file_6025": "archivo", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Los bucles \"for await\" solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Los bucles \"for await\" solo se permiten en las funciones asincrónicas y en los niveles superiores de los módulos.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "Los descriptores de acceso \"get\" y \"set\" no pueden declarar parámetros \"this\".", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "\"[]\", si se especifica \"archivos\"; de lo contrario, \"[\"**/*\"]5D;\"", - "implements_clause_already_seen_1175": "La cláusula \"implements\" ya se ha visto.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Las cláusulas \"implements\" solo se pueden usar en los archivos TypeScript.", - "import_can_only_be_used_in_TypeScript_files_8002": "\"import ... =\" solo se puede usar en los archivos TypeScript.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Las declaraciones \"infer\" solo se permiten en la cláusula \"extends\" de un tipo condicional.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "Las declaraciones \"let\" solo se pueden declarar dentro de un bloque.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "No se permite usar \"let\" como nombre en las declaraciones \"let\" o \"const\".", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "módulo === \"AMD\" o \"UMD\" o \"System\" o \"ES6\", después, \"Classic\", de lo contrario \"Node\"", - "module_system_or_esModuleInterop_6904": "módulo === \"system\" o esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "La expresión \"new\", a cuyo destino le falta una signatura de construcción, tiene implícitamente un tipo \"any\".", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "\"[\"node_modules\", \"bower_components\", \"jspm_packages\"]\", más el valor de \"outDir\", si se especifica uno.", - "one_of_Colon_6900": "uno de:", - "one_or_more_Colon_6901": "uno o más:", - "options_6024": "Opciones", - "or_JSX_element_expected_1145": "Se esperaba \"{\" o un elemento JSX.", - "or_expected_1144": "Se esperaba \"{\" o \";\".", - "package_json_does_not_have_a_0_field_6100": "\"package.json\" no tiene un campo \"{0}\".", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "El archivo \"package.json\" no tiene ninguna entrada \"typesVersions\" que coincida con la versión \"{0}\".", - "package_json_had_a_falsy_0_field_6220": "El archivo \"package.json\" tenía un campo \"{0}\" false.", - "package_json_has_0_field_1_that_references_2_6101": "'package.json' tiene el campo '{1}' de '{0}' que hace referencia a '{2}'.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "El archivo \"package.json\" tiene una entrada \"typesVersions\" \"{0}\" que no es un intervalo de SemVer válido.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "El archivo \"package.json\" tiene una entrada \"typesVersions\" \"{0}\" que coincide con la versión del compilador \"{1}\"; se busca un patrón que coincida con el nombre de módulo \"{2}\".", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "El archivo \"package.json\" tiene un campo \"typesVersions\" con asignaciones de ruta de acceso específicas de la versión.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "El ámbito de búsqueda package.json scope \"{0}\" asigna explícitamente el especificador \"{1}\" a NULL.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "El ámbito package.json \"{0}\" tiene un tipo no válido para el destino del especificador \"{1}\"", - "package_json_scope_0_has_no_imports_defined_6273": "El ámbito de package.json \"{0}\" no tiene importaciones definidas.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Se ha especificado la opción 'paths'. Se buscará un patrón que coincida con el nombre de módulo '{0}'.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "El modificador 'readonly' solo puede aparecer en una declaración de propiedad o una signatura de índice.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "El modificador de tipo \"readonly\" solo se permite en los tipos literales de matriz y de tupla.", - "require_call_may_be_converted_to_an_import_80005": "La llamada a \"require\" puede convertirse en una importación.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Las aserciones \"modo de resolución\" solo se admiten cuando \"moduleResolution\" es \"node16\" o \"nodenext\".", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Las aserciones \"modo de resolución\" son inestables. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "\"resolution-mode\" solo se puede establecer para importaciones solamente de tipo.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" es la única clave válida para las aserciones de importación de tipos.", - "resolution_mode_should_be_either_require_or_import_1453": "\"modo de resolución\" debe ser \"requerir\" o \"importar\".", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Se ha establecido la opción \"rootDirs\". Se usará para resolver el nombre de módulo relativo \"{0}\".", - "super_can_only_be_referenced_in_a_derived_class_2335": "Solo se puede hacer referencia a \"super\" en una clase derivada.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "Solo se puede hacer referencia a 'super' en miembros de clases derivadas o expresiones de literal de objeto.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "No se puede hacer referencia a \"super\" en un nombre de propiedad calculada.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "No se puede hacer referencia a \"super\" en argumentos de constructor.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "'super' se permite únicamente en miembros de expresiones de literal de objeto cuando la opción 'target' es 'ES2015' o superior.", - "super_may_not_use_type_arguments_2754": "\"super\" no puede usar argumentos de tipo.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "Debe llamarse a \"super\" antes de acceder a una propiedad de \"super\" en el constructor de una clase derivada.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "Debe llamarse a 'super' antes de acceder a 'this' en el constructor de una clase derivada.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "\"super\" debe estar seguido de una lista de argumentos o un acceso a miembros.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "El acceso a la propiedad \"super\" se permite únicamente en un constructor, una función miembro o un descriptor de acceso de miembro de una clase derivada.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "No se puede hacer referencia a \"this\" en un nombre de propiedad calculada.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "No se puede hace referencia a \"this\" en el cuerpo de un módulo o de un espacio de nombres.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "No se puede hacer referencia a \"this\" en un inicializador de propiedad estática.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "No se puede hacer referencia a \"this\" en argumentos de constructor.", - "this_cannot_be_referenced_in_current_location_2332": "No se puede hacer referencia a \"this\" en la ubicación actual.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' tiene el tipo implícito 'any' porque no tiene una anotación de tipo.", - "true_for_ES2022_and_above_including_ESNext_6930": "\"true\" para ES2022 y versiones posteriores, incluido ESNext.", - "true_if_composite_false_otherwise_6909": "\"true\", si \"composite\"; \"false\", en caso contrario", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: el compilador de TypeScript", - "type_Colon_6902": "tipo:", - "unique_symbol_types_are_not_allowed_here_1335": "Aquí no se permiten tipos \"unique symbol\".", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "Los tipos \"unique symbol\" se permiten solo en variables en una instrucción de variable.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "Los tipos \"unique symbol\" no se pueden utilizar en una declaración de variable con un nombre de enlace.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "La directiva \"use strict\" no se puede usar con una lista de parámetros no simples.", - "use_strict_directive_used_here_1349": "La directiva \"use strict\" se ha usado aquí.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "No se permiten instrucciones \"with\" en un bloque de funciones asincrónicas.", - "with_statements_are_not_allowed_in_strict_mode_1101": "No se permiten instrucciones \"with\" en modo strict.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "La expresión \"yield\" da como resultado un tipo \"any\" de forma implícita porque el generador que la contiene no tiene una anotación de tipo de valor devuelto.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "Las expresiones \"yield\" no se pueden usar en un inicializador de parámetros." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/fr/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/fr/diagnosticMessages.generated.json deleted file mode 100644 index b962857b..00000000 --- a/graphql/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "TOUTES LES OPTIONS DU COMPILATEUR", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Impossible d'utiliser un modificateur '{0}' avec une déclaration d'importation.", - "A_0_parameter_must_be_the_first_parameter_2680": "Un paramètre '{0}' doit être le premier paramètre.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un commentaire JSDoc '@typedef' ne peut pas contenir plusieurs balises '@type'.", - "A_bigint_literal_cannot_use_exponential_notation_1352": "Un littéral bigint ne peut pas utiliser la notation exponentielle.", - "A_bigint_literal_must_be_an_integer_1353": "Un littéral bigint doit être un entier.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un paramètre de modèle de liaison ne peut pas être facultatif dans une signature d'implémentation.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Une instruction 'break' peut être utilisée uniquement dans une itération englobante ou une instruction switch.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Une instruction 'break' peut accéder uniquement à une étiquette d'une instruction englobante.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Une classe peut uniquement implémenter un identificateur/nom qualifié avec des arguments de type facultatifs.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Une classe peut implémenter uniquement un type d'objet ou une intersection de types d'objet avec des membres connus de manière statique.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Une déclaration de classe sans modificateur 'default' doit porter un nom.", - "A_class_member_cannot_have_the_0_keyword_1248": "Un membre de classe ne peut pas avoir le mot clé '{0}'.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Une expression avec virgule n'est pas autorisée dans un nom de propriété calculée.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "Un nom de propriété calculée ne peut pas référencer un paramètre de type à partir de son type conteneur.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "Un nom de propriété calculée dans une déclaration de propriété de classe doit avoir un type littéral simple ou un type 'unique symbol'.", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "Un nom de propriété calculée dans une surcharge de méthode doit faire référence à une expression dont le type est un type littéral ou un type 'unique symbol'.", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "Un nom de propriété calculée dans un littéral de type doit faire référence à une expression dont le type est un type littéral ou un type 'unique symbol'.", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Un nom de propriété calculée dans un contexte ambiant doit faire référence à une expression dont le type est un type littéral ou un type 'unique symbol'.", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Un nom de propriété calculée dans une interface doit faire référence à une expression dont le type est un type littéral ou un type 'unique symbol'.", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Un nom de propriété calculée doit être de type 'string', 'number', 'symbol' ou 'any'.", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "Une assertion 'const' peut uniquement être appliquée aux références à des membres enum, des littéraux de chaînes, des littéraux de nombres, des littéraux de valeurs booléennes, des littéraux de tableaux ou des littéraux d'objets.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Un membre d'enum const n'est accessible qu'à l'aide d'un littéral de chaîne.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Un initialiseur 'const' dans un contexte ambiant doit être un littéral de chaîne ou un littéral numérique, ou une référence à un enum littéral.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Un constructeur ne peut pas contenir d'appel de 'super' quand sa classe étend 'null'.", - "A_constructor_cannot_have_a_this_parameter_2681": "Un constructeur ne peut pas avoir un paramètre 'this'.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Une instruction 'continue' peut uniquement être utilisée dans une instruction d'itération englobante.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Une instruction 'continue' peut accéder uniquement à une étiquette d'une instruction d'itération englobante.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Impossible d'utiliser un modificateur 'declare' dans un contexte ambiant déjà défini.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un élément décoratif peut uniquement décorer une implémentation de méthode, pas une surcharge.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Une clause 'default' ne peut pas figurer plusieurs fois dans une instruction 'switch'.", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "Une exportation par défaut ne peut être utilisée que dans un module ECMAScript.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Une exportation par défaut doit se trouver au niveau supérieur d’une déclaration de fichier ou de module.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Une assertion d'affectation définie ' !' n'est pas autorisée dans ce contexte.", - "A_destructuring_declaration_must_have_an_initializer_1182": "Une déclaration de déstructuration doit avoir un initialiseur.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Un appel d'importation dynamique en ES5/ES3 nécessite le constructeur 'Promise'. Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Un appel d'importation dynamique retourne 'Promise'. Vérifiez que vous avez une déclaration pour 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", - "A_file_cannot_have_a_reference_to_itself_1006": "Un fichier ne peut pas contenir une référence à lui-même.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Une fonction qui retourne 'never' ne peut pas avoir de point de terminaison accessible.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Une fonction appelée avec le mot clé 'new' ne peut pas avoir un type 'this' dont la valeur est 'void'.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Une fonction dont le type déclaré n'est ni 'void', ni 'any', doit retourner une valeur.", - "A_generator_cannot_have_a_void_type_annotation_2505": "Un générateur ne peut pas avoir d'annotation de type 'void'.", - "A_get_accessor_cannot_have_parameters_1054": "Un accesseur 'get' ne peut pas avoir de paramètres.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Un accesseur get doit être au moins aussi accessible que la méthode setter", - "A_get_accessor_must_return_a_value_2378": "Un accesseur 'get' doit retourner une valeur.", - "A_label_is_not_allowed_here_1344": "Étiquette non autorisée ici.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "Un élément de tuple étiqueté est déclaré facultatif avec un point d'interrogation après le nom et avant les deux points, plutôt qu'après le type.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "Un élément de tuple étiqueté est déclaré en tant que rest avec '...' avant le nom, plutôt qu'avant le type.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "Un type mappé ne peut pas déclarer de propriétés ou de méthodes.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "Un initialiseur de membre dans une déclaration d'enum ne peut pas référencer des membres déclarés après lui, notamment des membres définis dans d'autres enums.", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "Une classe mixin doit avoir un constructeur avec un paramètre rest unique de type 'any[]'.", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "Une classe mixin qui s'étend à partir d'une variable de type contenant une signature de construction abstraite doit également être déclarée 'abstract'.", - "A_module_cannot_have_multiple_default_exports_2528": "Un module ne peut pas avoir plusieurs exportations par défaut.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Une déclaration d'espace de noms ne peut pas se trouver dans un autre fichier que celui d'une classe ou d'une fonction avec laquelle elle est fusionnée.", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Une déclaration d'espace de noms ne peut pas se trouver avant une classe ou une fonction avec laquelle elle est fusionnée.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Une déclaration d’espace de noms n’est autorisée qu’au niveau supérieur d’un espace de noms ou d’un module.", - "A_non_dry_build_would_build_project_0_6357": "Une build non-dry va générer le projet '{0}'", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Une build non-dry va supprimer les fichiers suivants : {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "Une build non-dry va mettre à jour la sortie du projet '{0}'", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Une build non-dry va mettre à jour les horodatages de la sortie du projet '{0}'", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un initialiseur de paramètre est uniquement autorisé dans une implémentation de fonction ou de constructeur.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Impossible de déclarer une propriété de paramètre à l'aide d'un paramètre rest.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Une propriété de paramètre est uniquement autorisée dans une implémentation de constructeur.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "Impossible de déclarer une propriété de paramètre à l'aide d'un modèle de liaison.", - "A_promise_must_have_a_then_method_1059": "Une promesse doit avoir une méthode 'then'.", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "Une propriété d'une classe dont le type est un type 'unique symbol' doit être à la fois 'static' et 'readonly'.", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "Une propriété d'une interface ou d'un littéral de type dont le type est un type 'unique symbol' doit être 'readonly'.", - "A_required_element_cannot_follow_an_optional_element_1257": "Un élément required ne peut pas suivre un élément optional.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "Un paramètre obligatoire ne peut pas suivre un paramètre optionnel.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "Un élément rest ne peut pas contenir de modèle de liaison.", - "A_rest_element_cannot_follow_another_rest_element_1265": "Un élément rest ne peut pas suivre un autre élément rest.", - "A_rest_element_cannot_have_a_property_name_2566": "Un élément rest ne peut pas avoir de nom de propriété.", - "A_rest_element_cannot_have_an_initializer_1186": "Un élément rest ne peut pas avoir d'initialiseur.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "Un élément rest doit être le dernier dans un modèle de déstructuration.", - "A_rest_element_type_must_be_an_array_type_2574": "Un type d'élément rest doit être un type tableau.", - "A_rest_parameter_cannot_be_optional_1047": "Un paramètre rest ne peut pas être facultatif.", - "A_rest_parameter_cannot_have_an_initializer_1048": "Un paramètre rest ne peut pas avoir d'initialiseur.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "Un paramètre rest doit être le dernier dans une liste de paramètres.", - "A_rest_parameter_must_be_of_an_array_type_2370": "Un paramètre rest doit être de type tableau.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "Les modèles de liaison ou les paramètres rest ne doivent pas avoir de virgule de fin.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "Une instruction 'return' peut être utilisée uniquement dans un corps de fonction.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "Une instruction « return » ne peut pas être utilisée à l’intérieur d’un bloc statique de classe.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "Série d'entrées qui remappent les importations aux emplacements de recherche en fonction de 'baseUrl'.", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "Un accesseur 'set' ne peut pas avoir d'annotation de type de retour.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "Un accesseur 'set' ne peut pas avoir de paramètre optionnel.", - "A_set_accessor_cannot_have_rest_parameter_1053": "Un accesseur 'set' ne peut pas avoir de paramètre rest.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "Un accesseur 'set' doit avoir un seul paramètre.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Un paramètre d'accesseur 'set' ne peut pas avoir d'initialiseur.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Un argument d’engraissement doit soit avoir un type de tuple, soit être passé à un paramètre REST.", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Un appel « super » doit être une instruction de niveau racine dans un constructeur d’une classe dérivée qui contient des propriétés initialisées, des propriétés de paramètre ou des identificateurs privés.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Un appel 'super' doit être la première instruction du constructeur à faire référence à « super » ou « this » lorsqu’une classe dérivée contient des propriétés initialisées, des propriétés de paramètre ou des identificateurs privés.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Une protection de type basée sur 'this' n'est pas compatible avec une protection de type basée sur des paramètres.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un type 'this' est disponible uniquement dans un membre non statique d'une classe ou d'une interface.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un fichier 'tsconfig.json' est déjà défini à l'emplacement '{0}'.", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membre de tuple ne peut pas être à la fois facultatif et rest.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un type tuple ne peut pas être indexé avec une valeur négative.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Une expression d'assertion de type n'est pas autorisée dans la partie gauche d'une expression d'élévation à une puissance. Mettez l'expression entre parenthèses.", - "A_type_literal_property_cannot_have_an_initializer_1247": "Une propriété de littéral de type ne peut pas avoir d'initialiseur.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Une importation de type uniquement peut spécifier une importation par défaut ou des liaisons nommées, mais pas les deux.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "Un prédicat de type ne peut pas référencer un paramètre rest.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "Un prédicat de type ne peut pas référencer un élément '{0}' dans un modèle de liaison.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "Un prédicat de type est autorisé uniquement dans une position de type de retour pour les fonctions et les méthodes.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "Le type d'un prédicat de type doit être assignable au type de son paramètre.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "Un type référencé dans une signature décorée doit être importé avec « import type » ou une importation d’espace de noms quand « isolatedModules » et « emitDecoratorMetadata » sont activés.", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "Une variable dont le type est un type 'unique symbol' doit être 'const'.", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Une expression 'yield' est autorisée uniquement dans le corps d'un générateur.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "La méthode abstraite '{0}' de la classe '{1}' n'est pas accessible au moyen de l'expression super.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Les méthodes abstraites peuvent uniquement apparaître dans une classe abstraite.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "La propriété abstraite '{0}' de la classe '{1}' n'est pas accessible dans le constructeur.", - "Accessibility_modifier_already_seen_1028": "Modificateur d'accessibilité déjà rencontré.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Les accesseurs sont uniquement disponibles quand EcmaScript 5 ou version supérieure est ciblé.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "Les accesseurs doivent être abstraits ou non abstraits.", - "Add_0_to_unresolved_variable_90008": "Ajouter '{0}.' à la variable non résolue", - "Add_a_return_statement_95111": "Ajouter une instruction return", - "Add_all_missing_async_modifiers_95041": "Ajouter tous les modificateurs 'async' manquants", - "Add_all_missing_attributes_95168": "Ajouter tous les attributs manquants", - "Add_all_missing_call_parentheses_95068": "Ajouter toutes les parenthèses d'appel manquantes", - "Add_all_missing_function_declarations_95157": "Ajouter toutes les déclarations de fonction manquantes", - "Add_all_missing_imports_95064": "Ajouter toutes les importations manquantes", - "Add_all_missing_members_95022": "Ajouter tous les membres manquants", - "Add_all_missing_override_modifiers_95162": "Ajouter tous les modificateurs 'override' manquants", - "Add_all_missing_properties_95166": "Ajouter toutes les propriétés manquantes", - "Add_all_missing_return_statement_95114": "Ajouter toutes les instructions return manquantes", - "Add_all_missing_super_calls_95039": "Ajouter tous les appels super manquants", - "Add_async_modifier_to_containing_function_90029": "Ajouter le modificateur async dans la fonction conteneur", - "Add_await_95083": "Ajouter 'await'", - "Add_await_to_initializer_for_0_95084": "Ajouter 'await' à l'initialiseur pour '{0}'", - "Add_await_to_initializers_95089": "Ajouter 'await' aux initialiseurs", - "Add_braces_to_arrow_function_95059": "Ajouter des accolades à la fonction arrow", - "Add_const_to_all_unresolved_variables_95082": "Ajouter 'const' à toutes les variables non résolues", - "Add_const_to_unresolved_variable_95081": "Ajouter 'const' à la variable non résolue", - "Add_definite_assignment_assertion_to_property_0_95020": "Ajouter une assertion d'assignation définie à la propriété '{0}'", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Ajouter des assertions d'affectation définie à toutes les propriétés non initialisées", - "Add_export_to_make_this_file_into_a_module_95097": "Ajouter 'export {}' pour faire de ce fichier un module", - "Add_extends_constraint_2211": "Ajoutez la contrainte « extends ».", - "Add_extends_constraint_to_all_type_parameters_2212": "Ajouter la contrainte « extends » à tous les paramètres de type", - "Add_import_from_0_90057": "Ajouter l'importation de \"{0}\"", - "Add_index_signature_for_property_0_90017": "Ajouter une signature d'index pour la propriété '{0}'", - "Add_initializer_to_property_0_95019": "Ajouter un initialiseur à la propriété '{0}'", - "Add_initializers_to_all_uninitialized_properties_95027": "Ajouter des initialiseurs à toutes les propriétés non initialisées", - "Add_missing_attributes_95167": "Ajouter les attributs manquants", - "Add_missing_call_parentheses_95067": "Ajouter les parenthèses d'appel manquantes", - "Add_missing_enum_member_0_95063": "Ajouter le membre enum manquant '{0}'", - "Add_missing_function_declaration_0_95156": "Ajouter la déclaration de fonction manquante '{0}'", - "Add_missing_new_operator_to_all_calls_95072": "Ajouter l'opérateur 'new' manquant à tous les appels", - "Add_missing_new_operator_to_call_95071": "Ajouter l'opérateur 'new' manquant à l'appel", - "Add_missing_properties_95165": "Ajouter des propriétés manquantes", - "Add_missing_super_call_90001": "Ajouter l'appel manquant à 'super()'", - "Add_missing_typeof_95052": "Ajouter un 'typeof' manquant", - "Add_names_to_all_parameters_without_names_95073": "Ajouter des noms à tous les paramètres sans noms", - "Add_or_remove_braces_in_an_arrow_function_95058": "Ajouter ou supprimer les accolades dans une fonction arrow", - "Add_override_modifier_95160": "Ajouter un modificateur 'override'", - "Add_parameter_name_90034": "Ajouter un nom de paramètre", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Ajouter un qualificateur à toutes les variables non résolues correspondant à un nom de membre", - "Add_to_all_uncalled_decorators_95044": "Ajouter '()' à tous les décorateurs non appelés", - "Add_ts_ignore_to_all_error_messages_95042": "Ajouter '@ts-ignore' à tous les messages d'erreur", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Ajoutez « undefined » à un type lorsque vous y accédez à l’aide d’un index.", - "Add_undefined_to_optional_property_type_95169": "Ajouter « undefined » à un type de propriété facultatif", - "Add_undefined_type_to_all_uninitialized_properties_95029": "Ajouter un type non défini à toutes les propriétés non initialisées", - "Add_undefined_type_to_property_0_95018": "Ajouter un type 'undefined' à la propriété '{0}'", - "Add_unknown_conversion_for_non_overlapping_types_95069": "Ajouter une conversion 'unknown' pour les types qui ne se chevauchent pas", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "Ajouter 'unknown' à toutes les conversions de types qui ne se chevauchent pas", - "Add_void_to_Promise_resolved_without_a_value_95143": "Ajouter 'void' à un Promise résolu sans valeur", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "Ajouter 'void' à toutes les promesses résolues sans valeur", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "L'ajout d'un fichier tsconfig.json permet d'organiser les projets qui contiennent des fichiers TypeScript et JavaScript. En savoir plus sur https://aka.ms/tsconfig.", - "All_declarations_of_0_must_have_identical_constraints_2838": "Toutes les déclarations de « {0} » doivent avoir des contraintes identiques.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "Toutes les déclarations de '{0}' doivent avoir des modificateurs identiques.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "Toutes les déclarations de '{0}' doivent avoir des paramètres de type identiques.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Toutes les déclarations d'une méthode abstraite doivent être consécutives.", - "All_destructured_elements_are_unused_6198": "Tous les éléments déstructurés sont inutilisés.", - "All_imports_in_import_declaration_are_unused_6192": "Les importations de la déclaration d'importation ne sont pas toutes utilisées.", - "All_type_parameters_are_unused_6205": "Tous les paramètres de type sont inutilisés.", - "All_variables_are_unused_6199": "Toutes les variables sont inutilisées.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "Autorisez les fichiers JavaScript à faire partie de votre programme. Utilisez l’option « checkJS » pour obtenir des erreurs à partir de ces fichiers.", - "Allow_accessing_UMD_globals_from_modules_6602": "Autorisez l'accès aux variables globales UMD à partir des modules.", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Autorisez les importations par défaut à partir des modules sans exportation par défaut. Cela n'affecte pas l'émission du code, juste le contrôle de type.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Autoriser « importation de x à partir de y » quand un module n’a pas d’exportation par défaut.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Autorisez l’importation de fonctions d’assistance à partir de tslib une fois par projet, au lieu de les inclure par fichier.", - "Allow_javascript_files_to_be_compiled_6102": "Autorisez la compilation des fichiers JavaScript.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Autorisez plusieurs dossiers à être considérés comme un seul lors de la résolution des modules.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Le nom de fichier déjà inclus '{0}' diffère du nom de fichier '{1}' uniquement par la casse.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "Une déclaration de module ambiant ne peut pas spécifier un nom de module relatif.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "Impossible d'imbriquer des modules ambiants dans d'autres modules ou espaces de noms.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "Un module AMD ne peut pas avoir plusieurs affectations de nom.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "Un accesseur abstrait ne peut pas avoir d'implémentation.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Un modificateur d'accessibilité ne peut pas être utilisé avec un identificateur privé.", - "An_accessor_cannot_have_type_parameters_1094": "Un accesseur ne peut pas avoir de paramètres de type.", - "An_accessor_property_cannot_be_declared_optional_1276": "Une propriété 'accessor' ne peut pas être déclarée comme facultative.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Une déclaration de module ambiant est uniquement autorisée au niveau supérieur dans un fichier.", - "An_argument_for_0_was_not_provided_6210": "Aucun argument pour '{0}' n'a été fourni.", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Aucun argument correspondant à ce modèle de liaison n'a été fourni.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un opérande arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "Une fonction arrow ne peut pas avoir un paramètre 'this'.", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Une fonction ou méthode asynchrone en ES5/ES3 nécessite le constructeur 'Promise'. Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Une fonction ou une méthode async doit retourner 'Promise'. Vérifiez que vous avez une déclaration pour 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", - "An_async_iterator_must_have_a_next_method_2519": "Un itérateur asynchrone doit comporter une méthode 'next()'.", - "An_element_access_expression_should_take_an_argument_1011": "Une expression d'accès à un élément doit accepter un argument.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "Un membre enum ne peut pas être nommé avec un identificateur privé.", - "An_enum_member_cannot_have_a_numeric_name_2452": "Un membre enum ne peut pas avoir un nom numérique.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "Un nom de membre enum doit être suivi de ',', de '=' ou de '}'.", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "Version développée de ces informations, affichant toutes les options possibles du compilateur", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "Impossible d'utiliser une assignation d'exportation dans un module comportant d'autres éléments exportés.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "Une affectation d'exportation ne peut pas être utilisée dans un espace de noms.", - "An_export_assignment_cannot_have_modifiers_1120": "Une assignation d'exportation ne peut pas avoir de modificateurs.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "Une affectation d’exportation doit se trouver au niveau supérieur d’une déclaration de fichier ou de module.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Une déclaration d’exportation ne peut être utilisée qu’au niveau supérieur d’un module.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Une déclaration d’exportation ne peut être utilisée qu’au niveau supérieur d’un espace de noms ou d’un module.", - "An_export_declaration_cannot_have_modifiers_1193": "Une déclaration d'exportation ne peut pas avoir de modificateurs.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Impossible de tester une expression de type 'void' pour déterminer si elle a la valeur true.", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Une valeur d'échappement Unicode étendue doit être comprise entre 0x0 et 0x10FFFF inclus.", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Un identificateur ou un mot clé ne peut pas suivre immédiatement un littéral numérique.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Impossible de déclarer une implémentation dans des contextes ambiants.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias d'importation ne peut pas référencer une déclaration exportée à l'aide de 'export type'.", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias d'importation ne peut pas référencer une déclaration importée à l'aide de 'import type'.", - "An_import_alias_cannot_use_import_type_1392": "Un alias d'importation ne peut pas utiliser 'import type'", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Une déclaration d’importation ne peut être utilisée qu’au niveau supérieur d’un module.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Une déclaration d’importation ne peut être utilisée qu’au niveau supérieur d’un espace de noms ou d’un module.", - "An_import_declaration_cannot_have_modifiers_1191": "Une déclaration d'importation ne peut pas avoir de modificateurs.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Un chemin d'importation ne peut pas finir par une extension '{0}'. Importez '{1}' à la place.", - "An_index_signature_cannot_have_a_rest_parameter_1017": "Une signature d'index ne peut pas avoir de paramètre rest.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "Une signature d'index ne peut pas avoir de virgule de fin.", - "An_index_signature_must_have_a_type_annotation_1021": "Une signature d'index doit avoir une annotation de type.", - "An_index_signature_must_have_exactly_one_parameter_1096": "Une signature d'index doit avoir un seul paramètre.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "Un paramètre de signature d'index ne peut pas contenir de point d'interrogation.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "Un paramètre de signature d'index ne peut pas avoir de modificateur d'accessibilité.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "Un paramètre de signature d'index ne peut pas avoir d'initialiseur.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "Un paramètre de signature d'index doit avoir une annotation de type.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "Un type de paramètre de signature d’index ne peut pas être un type littéral ni générique. Envisagez plutôt d’utiliser un type d’objet mappé.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "Un type de paramètre de signature d’index doit être « string », « number », « symbol » ou un type littéral de modèle.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Une expression d’instanciation ne peut pas être suivie d’un accès à la propriété.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Une interface peut uniquement étendre un identificateur/nom qualifié avec des arguments de type facultatifs.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Une interface peut étendre uniquement un type d'objet ou une intersection de types d'objet avec des membres connus de manière statique.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Une interface ne peut pas étendre un type primitif comme « {0} » ; une interface peut uniquement étendre des types nommés et des classes.", - "An_interface_property_cannot_have_an_initializer_1246": "Une propriété d'interface ne peut pas avoir d'initialiseur.", - "An_iterator_must_have_a_next_method_2489": "Un itérateur doit comporter une méthode 'next()'.", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Un pragma @jsxFrag est nécessaire quand un pragma @jsx est utilisé avec des fragments JSX.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Un littéral d'objet ne peut pas avoir plusieurs accesseurs get/set portant le même nom.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un littéral d’objet ne peut pas avoir plusieurs propriétés portant le même nom.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un littéral d'objet ne peut pas avoir une propriété et un accesseur portant le même nom.", - "An_object_member_cannot_be_declared_optional_1162": "Impossible de déclarer un membre d'objet comme étant facultatif.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "Une chaîne facultative ne peut pas contenir d'identificateurs privés.", - "An_optional_element_cannot_follow_a_rest_element_1266": "Un élément optional ne peut pas suivre un élément rest.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Une valeur externe de 'this' est mise en mémoire fantôme par ce conteneur.", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Une signature de surcharge ne peut pas être déclarée en tant que générateur.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Une expression unaire avec l'opérateur '{0}' n'est pas autorisée dans la partie gauche d'une expression d'élévation à une puissance. Mettez l'expression entre parenthèses.", - "Annotate_everything_with_types_from_JSDoc_95043": "Annoter tout avec des types de JSDoc", - "Annotate_with_type_from_JSDoc_95009": "Annoter avec le type de JSDoc", - "Another_export_default_is_here_2753": "Une autre valeur par défaut d'exportation se trouve ici.", - "Are_you_missing_a_semicolon_2734": "Il vous manque un point-virgule ?", - "Argument_expression_expected_1135": "Expression d'argument attendue.", - "Argument_for_0_option_must_be_Colon_1_6046": "L'argument de l'option '{0}' doit être {1}.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "L’argument de l’importation dynamique ne peut pas être un élément de propagation.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "L'argument de type '{0}' n'est pas attribuable au paramètre de type '{1}'.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "L'argument de type '{0}' n'est pas assignable au paramètre de type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' aux types des propriétés de la cible.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Les arguments du paramètre de reste '{0}' n'ont pas été fournis.", - "Array_element_destructuring_pattern_expected_1181": "Modèle de déstructuration d'élément de tableau attendu.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Quand vous utilisez des assertions, chaque nom de la cible d'appel doit être déclaré à l'aide d'une annotation de type explicite.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Quand vous utilisez des assertions, la cible d'appel doit être un identificateur ou un nom qualifié.", - "Asterisk_Slash_expected_1010": "'.' attendu.", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Les augmentations de la portée globale ne peuvent être directement imbriquées que dans les modules externes ou les déclarations de modules ambiants.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Les augmentations de la portée globale doivent comporter un modificateur 'declare', sauf si elles apparaissent déjà dans un contexte ambiant.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La détection automatique des typages est activée dans le projet '{0}'. Exécution de la passe de résolution supplémentaire pour le module '{1}' à l'aide de l'emplacement du cache '{2}'.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Impossible d’utiliser l’expression Await à l’intérieur d’un bloc statique de classe.", - "BUILD_OPTIONS_6919": "OPTIONS DE BUILD", - "Backwards_Compatibility_6253": "Rétrocompatibilité", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Les expressions de classe de base ne peuvent pas référencer les paramètres de type de classe.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "Le type de retour '{0}' du constructeur de base n'est pas un type d'objet ou une intersection de types d'objet avec des membres connus de manière statique.", - "Base_constructors_must_all_have_the_same_return_type_2510": "Les constructeurs de base doivent tous avoir le même type de retour.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "Répertoire de base pour la résolution des noms de modules non absolus.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Les littéraux BigInt ne sont pas disponibles quand la version ciblée est antérieure à ES2020.", - "Binary_digit_expected_1177": "Chiffre binaire attendu.", - "Binding_element_0_implicitly_has_an_1_type_7031": "L'élément de liaison '{0}' possède implicitement un type '{1}'.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "Variable de portée de bloc '{0}' utilisée avant sa déclaration.", - "Build_a_composite_project_in_the_working_directory_6925": "Générer un projet composite dans le répertoire de travail.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Générer tous les projets, même ceux qui semblent être à jour.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Générer un ou plusieurs projets et leurs dépendances (s'ils sont obsolètes)", - "Build_option_0_requires_a_value_of_type_1_5073": "L'option de build '{0}' nécessite une valeur de type {1}.", - "Building_project_0_6358": "Génération du projet '{0}'...", - "COMMAND_LINE_FLAGS_6921": "INDICATEURS DE LIGNE DE COMMANDE", - "COMMON_COMMANDS_6916": "COMMANDES COURANTES", - "COMMON_COMPILER_OPTIONS_6920": "OPTIONS COURANTES DU COMPILATEUR", - "Call_decorator_expression_90028": "Appeler l'expression de l'élément décoratif", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "Les types de retour de signature d'appel '{0}' et '{1}' sont incompatibles.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signature d'appel, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour 'any'.", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Les signatures d'appel sans arguments ont des types de retour incompatibles : '{0}' et '{1}'.", - "Call_target_does_not_contain_any_signatures_2346": "La cible de l'appel ne contient aucune signature.", - "Can_only_convert_logical_AND_access_chains_95142": "Conversion uniquement de chaînes logiques ET de chaînes d'accès", - "Can_only_convert_named_export_95164": "Peut uniquement convertir l’exportation nommée", - "Can_only_convert_property_with_modifier_95137": "La propriété peut uniquement être convertie avec un modificateur", - "Can_only_convert_string_concatenation_95154": "Peut uniquement convertir une concaténation de chaîne", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Impossible d'accéder à '{0}.{1}', car '{0}' est un type, mais pas un espace de noms. Voulez-vous plutôt récupérer le type de la propriété '{1}' dans '{0}' avec '{0}[\"{1}\"]' ?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Impossible d'accéder aux enums const ambiants quand l'indicateur '--isolatedModules' est fourni.", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Impossible d'assigner un type de constructeur '{0}' à un type de constructeur '{1}'.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Impossible d'attribuer un type de constructeur abstrait à un type de constructeur non abstrait.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'une classe.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "Impossible d'effectuer une assignation à '{0}', car il s'agit d'une constante.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'une fonction.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'un espace de noms.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "Impossible d'effectuer une assignation à '{0}', car il s'agit d'une propriété en lecture seule.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'un enum.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'une importation.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "Impossible d'effectuer une assignation à '{0}', car il ne s'agit pas d'une variable.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "Impossible d'effectuer une assignation à la méthode privée '{0}'. Les méthodes privées ne sont pas accessibles en écriture.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "Impossible d'augmenter le module '{0}', car il se résout en une entité non-module.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "Impossible d'augmenter le module '{0}' avec des exportations de valeurs, car il se résout en une entité non-module.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "Impossible de compiler des modules à l'aide de l'option '{0}' tant que l'indicateur '--module' n'a pas la valeur 'amd' ou 'system'.", - "Cannot_create_an_instance_of_an_abstract_class_2511": "Impossible de créer une instance d'une classe abstraite.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "Impossible de déléguer l'itération à la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais le générateur conteneur envoie toujours '{0}'.", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "Impossible d'exporter '{0}'. Seules les déclarations locales peuvent être exportées à partir d'un module.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "Impossible d'étendre une classe '{0}'. Le constructeur de classe est marqué comme étant privé.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "Impossible d'étendre une interface '{0}'. Vouliez-vous dire 'implements' ?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "Le fichier tsconfig.json est introuvable dans le répertoire actif : {0}.", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Le fichier tsconfig.json est introuvable dans le répertoire spécifié : '{0}'.", - "Cannot_find_global_type_0_2318": "Le type global '{0}' est introuvable.", - "Cannot_find_global_value_0_2468": "La valeur globale '{0}' est introuvable.", - "Cannot_find_lib_definition_for_0_2726": "Définition de bibliothèque introuvable pour '{0}'.", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Définition de bibliothèque introuvable pour '{0}'. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Le module '{0}' est introuvable. Utilisez '--resolveJsonModule' pour importer le module avec l'extension '.json'.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Le module '{0}' est introuvable. Vouliez-vous affecter à l'option 'moduleResolution' la valeur 'node' ou ajouter des alias à l'option 'paths' ?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Impossible de localiser le module '{0}' ou les déclarations de type correspondantes.", - "Cannot_find_name_0_2304": "Le nom '{0}' est introuvable.", - "Cannot_find_name_0_Did_you_mean_1_2552": "Le nom '{0}' est introuvable. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Le nom '{0}' est introuvable. Voulez-vous utiliser le membre d'instance 'this.{0}' ?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "Le nom '{0}' est introuvable. Voulez-vous utiliser le membre statique '{1}.{0}' ?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Le nom « {0} » est introuvable. Voulez-vous écrire ceci dans une fonction asynchrone ?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Le nom '{0}' est introuvable. Devez-vous changer votre bibliothèque cible ? Essayez de changer l'option de compilateur 'lib' en '{1}' ou une version ultérieure.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Le nom '{0}' est introuvable. Devez-vous changer votre bibliothèque cible ? Essayez de remplacer l'option de compilateur 'lib' pour inclure 'dom'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour un exécuteur de tests ? Essayez 'npm i --save-dev @types/jest' ou 'npm i --save-dev @types/mocha'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour un exécuteur de tests ? Essayez 'npm i --save-dev @types/jest' ou 'npm i --save-dev @types/mocha', puis ajoutez 'jest' ou 'mocha' au champ types de votre fichier tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour jQuery ? Essayez 'npm i --save-dev @types/jquery'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour jQuery ? Essayez 'npm i --save-dev @types/jquery', puis ajoutez 'jquery' au champ types de votre fichier tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour node ? Essayez 'npm i --save-dev @types/node'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour node ? Essayez 'npm i --save-dev @types/node', puis ajoutez 'node' au champ types de votre fichier tsconfig.", - "Cannot_find_namespace_0_2503": "L'espace de noms '{0}' est introuvable.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "Impossible de trouver l'espace de noms '{0}'. Vouliez-vous dire '{1}'?", - "Cannot_find_parameter_0_1225": "Paramètre '{0}' introuvable.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "Impossible de trouver le chemin d'accès au sous-répertoire commun pour les fichiers d'entrée.", - "Cannot_find_type_definition_file_for_0_2688": "Le fichier de définition de type est introuvable pour '{0}'.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "Impossible d'importer les fichiers de déclaration de type. Importez '{0}' à la place de '{1}'.", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "Impossible d'initialiser la variable de portée externe '{0}' dans la même portée que celle de la déclaration de portée de bloc '{1}'.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "Impossible d'appeler un objet qui a éventuellement une valeur 'null'.", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "Impossible d'appeler un objet qui a éventuellement une valeur 'null' ou 'undefined'.", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "Impossible d'appeler un objet qui a éventuellement une valeur 'undefined'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la déstructuration de tableau envoie toujours '{0}'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la diffusion de tableau envoie toujours '{0}'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la boucle for-of envoie toujours '{0}'.", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Impossible de préfixer le projet '{0}', car 'outFile' n'est pas défini", - "Cannot_read_file_0_5083": "Impossible de lire le fichier '{0}'.", - "Cannot_read_file_0_Colon_1_5012": "Impossible de lire le fichier '{0}' : {1}.", - "Cannot_redeclare_block_scoped_variable_0_2451": "Impossible de redéclarer la variable de portée de bloc '{0}'.", - "Cannot_redeclare_exported_variable_0_2323": "Impossible de redéclarer la variable exportée '{0}'.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Impossible de redéclarer l'identificateur '{0}' dans la clause catch.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "Impossible de démarrer un appel de fonction dans une annotation de type.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Impossible de mettre à jour la sortie du projet '{0}', car une erreur s'est produite durant la lecture du fichier '{1}'", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Impossible d'utiliser JSX, sauf si l'indicateur '--jsx' est fourni.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Impossible d’utiliser « export import » sur un espace de noms de type ou de type uniquement lorsque l’indicateur « --isolatedModules » est fourni.", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Impossible d'utiliser des importations, des exportations ou des augmentations de module quand '--module' a la valeur 'none'.", - "Cannot_use_namespace_0_as_a_type_2709": "Impossible d'utiliser l'espace de noms '{0}' en tant que type.", - "Cannot_use_namespace_0_as_a_value_2708": "Impossible d'utiliser l'espace de noms '{0}' en tant que valeur.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "Impossible d'utiliser « this » dans un initialiseur de propriété statique d'une classe décorée.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "Impossible d'écrire le fichier '{0}', car il va remplacer le fichier '.tsbuildinfo' généré par le projet référencé '{1}'", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "Impossible d'écrire le fichier '{0}', car il serait remplacé par plusieurs fichiers d'entrée.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "Impossible d'écrire le fichier '{0}', car cela entraînerait le remplacement du fichier d'entrée.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "Une variable de clause catch ne peut pas avoir d'initialiseur.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "L'annotation de type de variable de la clause catch doit être 'any' ou 'unknown' si elle est spécifiée.", - "Change_0_to_1_90014": "Changer '{0}' en '{1}'", - "Change_all_extended_interfaces_to_implements_95038": "Remplacer toutes les interfaces étendues par 'implements'", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "Remplacer tous les types jsdoc-style par TypeScript", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "Remplacer tous les types jsdoc-type par TypeScript (et ajouter '| undefined' aux types nullable)", - "Change_extends_to_implements_90003": "Changer 'extends' en 'implements'", - "Change_spelling_to_0_90022": "Changer l'orthographe en '{0}'", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Recherchez les propriétés de classe déclarées mais non définies dans le constructeur.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Vérifiez que les arguments des méthodes « bind », « call » et « apply » correspondent à la fonction d’origine.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Vérification en cours pour déterminer si '{0}' est le préfixe correspondant le plus long pour '{1}' - '{2}'.", - "Circular_definition_of_import_alias_0_2303": "Définition circulaire de l'alias d'importation '{0}'.", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "Circularité détectée durant la résolution de la configuration : {0}", - "Circularity_originates_in_type_at_this_location_2751": "La circularité est issue du type à cet emplacement.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "La classe '{0}' définit l'accesseur de membre d'instance '{1}', mais la classe étendue '{2}' le définit comme fonction de membre d'instance.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "La classe '{0}' définit la fonction de membre d'instance '{1}', mais la classe étendue '{2}' la définit comme accesseur de membre d'instance.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "La classe '{0}' définit la propriété de membre d'instance '{1}', mais la classe étendue '{2}' le définit comme fonction de membre d'instance.", - "Class_0_incorrectly_extends_base_class_1_2415": "La classe '{0}' étend de manière incorrecte la classe de base '{1}'.", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "La classe '{0}' implémente de manière incorrecte la classe '{1}'. Voulez-vous vraiment étendre '{1}' et hériter de ses membres en tant que sous-classe ?", - "Class_0_incorrectly_implements_interface_1_2420": "La classe '{0}' implémente de manière incorrecte l'interface '{1}'.", - "Class_0_used_before_its_declaration_2449": "Classe '{0}' utilisée avant sa déclaration.", - "Class_constructor_may_not_be_a_generator_1368": "Le constructeur de classe ne peut pas être un générateur.", - "Class_constructor_may_not_be_an_accessor_1341": "Le constructeur de la classe ne peut pas être un accesseur.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "La déclaration de classe ne peut pas implémenter la liste de surcharge pour «{0}».", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Les déclarations de classes ne peuvent pas avoir plusieurs balises '@augments' ou '@extends'.", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Impossible d'utiliser des éléments décoratifs de classe avec un identificateur privé static. Supprimez l'élément décoratif expérimental.", - "Class_name_cannot_be_0_2414": "Le nom de la classe ne peut pas être '{0}'.", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Le nom de la classe ne peut pas être 'Object' quand ES5 est ciblé avec le module {0}.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Le côté statique de la classe '{0}' étend de manière incorrecte le côté statique de la classe de base '{1}'.", - "Classes_can_only_extend_a_single_class_1174": "Les classes ne peuvent étendre qu'une seule classe.", - "Classes_may_not_have_a_field_named_constructor_18006": "Les classes n'ont peut-être pas de champ nommé 'constructor'.", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "Le code contenu dans une classe est évalué en mode strict JavaScript qui n’autorise pas l’utilisation de « {0} ». Pour plus d’informations, consultez https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.", - "Command_line_Options_6171": "Options de ligne de commande", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compilez le projet en fonction du chemin de son fichier config ou d'un dossier contenant 'tsconfig.json'.", - "Compiler_Diagnostics_6251": "Diagnostics du compilateur", - "Compiler_option_0_expects_an_argument_6044": "L'option de compilateur '{0}' attend an argument.", - "Compiler_option_0_may_not_be_used_with_build_5094": "L’option '--{0}' du compilateur ne peut pas être utilisée avec '--build'.", - "Compiler_option_0_may_only_be_used_with_build_5093": "Option du compilateur '--{0}' ne peut être utilisée qu’avec '--build'.", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "L’option de compilateur « {0} » de la valeur «{1}» est instable. Utilisez TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour avec « npm install -D typescript@next ».", - "Compiler_option_0_requires_a_value_of_type_1_5024": "L'option de compilateur '{0}' exige une valeur de type {1}.", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "Le compilateur réserve le nom '{0}' quand il émet un identificateur privé pour une version antérieure.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Compile le projet TypeScript situé au chemin d’accès spécifié.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "Compile le projet actif (tsconfig.json sur le répertoire de travail.)", - "Compiles_the_current_project_with_additional_settings_6929": "Compile le projet actif, avec des paramètres supplémentaires.", - "Completeness_6257": "Exhaustivité", - "Composite_projects_may_not_disable_declaration_emit_6304": "Les projets composites ne doivent pas désactiver l'émission de déclaration.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "Les projets composites ne doivent pas désactiver la compilation incrémentielle.", - "Computed_from_the_list_of_input_files_6911": "Calculé à partir de la liste des fichiers d’entrée", - "Computed_property_names_are_not_allowed_in_enums_1164": "Les noms de propriétés calculées ne sont pas autorisés dans les enums.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Les valeurs calculées ne sont pas autorisées dans un enum avec des membres ayant une valeur de chaîne.", - "Concatenate_and_emit_output_to_single_file_6001": "Concaténer la sortie et l'émettre vers un seul fichier.", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Définitions en conflit pour '{0}' sur '{1}' et '{2}'. Installez une version spécifique de cette bibliothèque pour résoudre le conflit.", - "Conflicts_are_in_this_file_6201": "Il existe des conflits dans ce fichier.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "Envisagez d’ajouter un modificateur « declare » à cette classe.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Les types de retour de signature de construction '{0}' et '{1}' sont incompatibles.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "La signature de construction, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour 'any'.", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "Les signatures de construction sans arguments ont des types de retour incompatibles : '{0}' et '{1}'.", - "Constructor_implementation_is_missing_2390": "L'implémentation de constructeur est manquante.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "Le constructeur de la classe '{0}' est privé et uniquement accessible dans la déclaration de classe.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "Le constructeur de la classe '{0}' est protégé et uniquement accessible dans la déclaration de classe.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "La notation de type d'un constructeur doit être placée entre parenthèses quand elle est utilisée dans un type union.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "La notation de type d'un constructeur doit être placée entre parenthèses quand elle est utilisée dans un type intersection.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "Les constructeurs pour les classes dérivées doivent contenir un appel de 'super'.", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "Fichier conteneur non spécifié et répertoire racine impossible à déterminer. Recherche ignorée dans le dossier 'node_modules'.", - "Containing_function_is_not_an_arrow_function_95128": "La fonction conteneur n'est pas une fonction arrow", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "Contrôlez la méthode utilisée pour détecter les fichiers JS au format module.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "La conversion du type '{0}' en type '{1}' est peut-être une erreur, car aucun type ne chevauche suffisamment l'autre. Si cela est intentionnel, convertissez d'abord l'expression en 'unknown'.", - "Convert_0_to_1_in_0_95003": "Convertir '{0}' en '{1} dans {0}'", - "Convert_0_to_mapped_object_type_95055": "Convertir '{0}' en type d'objet mappé", - "Convert_all_const_to_let_95102": "Convertir tous les 'const' en 'let'", - "Convert_all_constructor_functions_to_classes_95045": "Convertir toutes les fonctions de constructeur en classes", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertir toutes les importations non utilisées en tant que valeur en importations de types uniquement", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertir tous les caractères non valides en code d'entité HTML", - "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertir tous les types réexportés en exportations de types uniquement", - "Convert_all_require_to_import_95048": "Convertir tous les 'require' en 'import'", - "Convert_all_to_async_functions_95066": "Tout convertir en fonctions asynchrones", - "Convert_all_to_bigint_numeric_literals_95092": "Tout convertir en littéraux numériques bigint", - "Convert_all_to_default_imports_95035": "Convertir tout en importations par défaut", - "Convert_all_type_literals_to_mapped_type_95021": "Convertir tous les littéraux de type en type mappé", - "Convert_arrow_function_or_function_expression_95122": "Convertir une fonction arrow ou une expression de fonction", - "Convert_const_to_let_95093": "Convertir 'const' en 'let'", - "Convert_default_export_to_named_export_95061": "Convertir l'exportation par défaut en exportation nommée", - "Convert_function_declaration_0_to_arrow_function_95106": "Convertir la déclaration de fonction '{0}' en fonction arrow", - "Convert_function_expression_0_to_arrow_function_95105": "Convertir l'expression de fonction '{0}' en fonction arrow", - "Convert_function_to_an_ES2015_class_95001": "Convertir la fonction en classe ES2015", - "Convert_invalid_character_to_its_html_entity_code_95100": "Convertir un caractère non valide en son code d'entité html", - "Convert_named_export_to_default_export_95062": "Convertir l'exportation nommée en exportation par défaut", - "Convert_named_imports_to_default_import_95170": "Convertir les importations nommées en importation par défaut", - "Convert_named_imports_to_namespace_import_95057": "Convertir les importations nommées en importation d'espace de noms", - "Convert_namespace_import_to_named_imports_95056": "Convertir l'importation d'espace de noms en importations nommées", - "Convert_overload_list_to_single_signature_95118": "Convertir la liste de surcharge en une seule signature", - "Convert_parameters_to_destructured_object_95075": "Convertir les paramètres en objet déstructuré", - "Convert_require_to_import_95047": "Convertir 'require' en 'import'", - "Convert_to_ES_module_95017": "Convertir en module ES", - "Convert_to_a_bigint_numeric_literal_95091": "Convertir en littéral numérique bigint", - "Convert_to_anonymous_function_95123": "Convertir en fonction anonyme", - "Convert_to_arrow_function_95125": "Convertir en fonction arrow", - "Convert_to_async_function_95065": "Convertir en fonction asynchrone", - "Convert_to_default_import_95013": "Convertir en importation par défaut", - "Convert_to_named_function_95124": "Convertir en fonction nommée", - "Convert_to_optional_chain_expression_95139": "Convertir en expression de chaîne facultative", - "Convert_to_template_string_95096": "Convertir en chaîne de modèle", - "Convert_to_type_only_export_1364": "Convertir en exportation de type uniquement", - "Convert_to_type_only_import_1373": "Convertir en importation de type uniquement", - "Corrupted_locale_file_0_6051": "Fichier de paramètres régionaux endommagé : {0}.", - "Could_not_convert_to_anonymous_function_95153": "Impossible de convertir en fonction anonyme", - "Could_not_convert_to_arrow_function_95151": "Impossible de convertir en fonction arrow", - "Could_not_convert_to_named_function_95152": "Impossible de convertir en fonction nommée", - "Could_not_determine_function_return_type_95150": "Impossible de déterminer le type de retour de la fonction", - "Could_not_find_a_containing_arrow_function_95127": "Fonction arrow conteneur introuvable", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "Le fichier de déclaration du module '{0}' est introuvable. '{1}' a implicitement un type 'any'.", - "Could_not_find_convertible_access_expression_95140": "L'expression d'accès convertible est introuvable", - "Could_not_find_export_statement_95129": "Instruction export introuvable", - "Could_not_find_import_clause_95131": "Clause import introuvable", - "Could_not_find_matching_access_expressions_95141": "L'expression d'accès correspondante est introuvable", - "Could_not_find_name_0_Did_you_mean_1_2570": "Le nom «{0}» est introuvable. Voulez-vous dire «{1}» ?", - "Could_not_find_namespace_import_or_named_imports_95132": "Impossible de localiser l'importation d'espace de noms ou les importations nommées", - "Could_not_find_property_for_which_to_generate_accessor_95135": "Impossible de localiser la propriété dont l'accesseur doit être généré", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Impossible de résoudre le chemin '{0}' avec les extensions {1}.", - "Could_not_write_file_0_Colon_1_5033": "Impossible d'écrire le fichier '{0}' : {1}.", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "Créez des fichiers de mappage source pour les fichiers JavaScript émis.", - "Create_sourcemaps_for_d_ts_files_6614": "Créez des mappage de source pour les fichiers d.ts.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crée un tsconfig.json avec les paramètres recommandés dans le répertoire de travail.", - "DIRECTORY_6038": "RÉPERTOIRE", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Cette déclaration augmente la déclaration dans un autre fichier. Cette opération ne peut pas être sérialisée.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}'. Une annotation de type explicite peut débloquer l'émission de déclaration.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}' à partir du module '{1}'. Une annotation de type explicite peut débloquer l'émission de déclaration.", - "Declaration_expected_1146": "Déclaration attendue.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Le nom de la déclaration est en conflit avec l'identificateur global intégré '{0}'.", - "Declaration_or_statement_expected_1128": "Déclaration ou instruction attendue.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Déclaration ou instruction attendue. Ce '=' suit un bloc d'instructions, donc si vous avez l'intention d'écrire une affectation de déstructuration, vous devrez peut-être mettre l'ensemble de l'affectation entre parenthèses.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Les déclarations avec des assertions d'affectation définies doivent également avoir des annotations de type.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Les déclarations avec des initialiseurs ne peuvent pas avoir également des assertions d'affectation définies.", - "Declare_a_private_field_named_0_90053": "Déclarez un champ privé nommé '{0}'.", - "Declare_method_0_90023": "Déclarer la méthode '{0}'", - "Declare_private_method_0_90038": "Déclarer la méthode privée '{0}'", - "Declare_private_property_0_90035": "Déclarer la propriété privée '{0}'", - "Declare_property_0_90016": "Déclarer la propriété '{0}'", - "Declare_static_method_0_90024": "Déclarer la méthode statique '{0}'", - "Declare_static_property_0_90027": "Déclarer la propriété statique '{0}'", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Le type de retour de la fonction de décorateur '{0}' n’est pas attribuable au type '{1}'.", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Le type de retour de la fonction de décorateur est '{0}' mais doit être 'void' ou 'any'.", - "Decorators_are_not_valid_here_1206": "Les éléments décoratifs ne sont pas valides ici.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Impossible d'appliquer des éléments décoratifs à plusieurs accesseurs get/set du même nom.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "Il est possible que les éléments décoratifs ne soient pas appliqués aux paramètres 'this'.", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Les éléments décoratifs doivent précéder le nom et tous les mots clés des déclarations de propriété.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Les variables de clause catch par défaut sont « unknown » au lieu de « any ».", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "L'exportation par défaut du module a utilisé ou utilise le nom privé '{0}'.", - "Default_library_1424": "Bibliothèque par défaut", - "Default_library_for_target_0_1425": "Bibliothèque par défaut pour la cible '{0}'", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Les définitions des identificateurs suivants sont en conflit avec celles d'un autre fichier : {0}", - "Delete_all_unused_declarations_95024": "Supprimer toutes les déclarations inutilisées", - "Delete_all_unused_imports_95147": "Supprimer toutes les importations inutilisées", - "Delete_all_unused_param_tags_95172": "Supprimer toutes les balises '@param' inutilisées", - "Delete_the_outputs_of_all_projects_6365": "Supprimer les sorties de tous les projets.", - "Delete_unused_param_tag_0_95171": "Supprimer la balise '@param' inutilisée '{0}'", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Déconseillé] Utilisez '--jsxFactory' à la place. Permet de spécifier l'objet appelé pour createElement durant le ciblage de 'react' pour l'émission JSX", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Déconseillé] Utilisez '--outFile' à la place. Permet de concaténer et d'émettre la sortie vers un seul fichier", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Déconseillé] Utilisez '--skipLibCheck' à la place. Permet d'ignorer le contrôle de type des fichiers de déclaration de la bibliothèque par défaut.", - "Deprecated_setting_Use_outFile_instead_6677": "Paramètre déconseillé. Utilisez « outFile » à la place.", - "Did_you_forget_to_use_await_2773": "Avez-vous oublié d'utiliser 'await' ?", - "Did_you_mean_0_1369": "Est-ce que vous avez voulu utiliser '{0}' ?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "Est-ce que vous avez voulu que '{0}' soit contraint en tant que type 'new (...args: any[]) => {1}' ?", - "Did_you_mean_to_call_this_expression_6212": "Est-ce que vous avez voulu appeler cette expression ?", - "Did_you_mean_to_mark_this_function_as_async_1356": "Est-ce que vous avez voulu marquer cette fonction comme étant 'async' ?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "Voulez-vous vraiment utiliser le signe ':' ? Le signe '=' peut suivre uniquement un nom de propriété quand le littéral d'objet conteneur fait partie d'un modèle de déstructuration.", - "Did_you_mean_to_use_new_with_this_expression_6213": "Est-ce que vous avez voulu utiliser 'new' avec cette expression ?", - "Digit_expected_1124": "Chiffre attendu", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "Le répertoire '{0}' n'existe pas. Toutes les recherches associées sont ignorées.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "Le répertoire « {0} » ne comporte pas d'étendue package.json comme contenant. Les importations ne seront pas résolues.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "Désactivez l’ajout de directives « use strict » dans les fichiers JavaScript émis.", - "Disable_checking_for_this_file_90018": "Désactiver la vérification de ce fichier", - "Disable_emitting_comments_6688": "Désactivez les commentaires émettant.", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "Désactivez l’émission de déclarations qui ont « @internal » dans leurs commentaires JSDoc.", - "Disable_emitting_files_from_a_compilation_6660": "Désactivez l’émission des fichiers à partir d’une compilation.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "Désactivez l’émission de fichiers si des erreurs de vérification de type sont signalées.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Désactivez l’effacement des déclarations « const enum » dans le code généré.", - "Disable_error_reporting_for_unreachable_code_6603": "Désactivez le rapport d’erreurs pour le code inaccessible.", - "Disable_error_reporting_for_unused_labels_6604": "Désactivez le rapport d’erreurs pour les étiquettes inutilisées.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Désactiver la création de fonctions d'assistance personnalisées comme «__extends» dans la sortie compilée.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Désactivez l’inclusion des fichiers de bibliothèque, y compris la valeur par défaut de lib.d.ts.", - "Disable_loading_referenced_projects_6235": "Désactivez le chargement des projets référencés.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "Désactiver la préférence des fichiers sources à la place des fichiers de déclaration lors du référencement des projets composites.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "Désactivez le signalement d’erreurs de propriétés excessives lors de la création de littéraux d’objet.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "Désactivez la résolution des liens symboliques vers leur chemin d’accès réel. Cela correspond au même indicateur dans le nœud.", - "Disable_size_limitations_on_JavaScript_projects_6162": "Désactivez les limitations de taille sur les projets JavaScript.", - "Disable_solution_searching_for_this_project_6224": "Désactivez la recherche de solutions pour ce projet.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "Désactivez la vérification stricte des signatures génériques dans les types de fonction.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "Désactiver l’acquisition de type pour les projets JavaScript", - "Disable_truncating_types_in_error_messages_6663": "Désactivez les types tronqués dans les messages d’erreur.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "Désactivez l'utilisation des fichiers sources à la place des fichiers de déclaration dans les projets référencés.", - "Disable_wiping_the_console_in_watch_mode_6684": "Désactiver la réinitialisation de la console en mode espion.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "Désactive l’inférence pour l’acquisition de type en examinant des noms de fichiers dans un projet.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Interdire à « import », « require » ou « » d’étendre le nombre de fichiers que TypeScript doit ajouter à un projet.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Interdisez les références dont la casse est incohérente dans le même fichier.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "N'ajoutez pas de références avec trois barres obliques, ni de modules importés à la liste des fichiers compilés.", - "Do_not_emit_comments_to_output_6009": "Ne pas émettre de commentaires dans la sortie.", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "N'émettez pas de déclarations pour du code ayant une annotation '@internal'.", - "Do_not_emit_outputs_6010": "N'émettez pas de sorties.", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "N'émettez pas de sortie si des erreurs sont signalées.", - "Do_not_emit_use_strict_directives_in_module_output_6112": "N'émettez pas de directives 'use strict' dans une sortie de module.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "N'effacez pas les déclarations d'enum const dans le code généré.", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "Ne générez pas de fonctions d'assistance personnalisées comme '__extends' dans la sortie compilée.", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "N'incluez pas le fichier bibliothèque par défaut (lib.d.ts).", - "Do_not_report_errors_on_unreachable_code_6077": "Ne signalez pas les erreurs pour le code inaccessible.", - "Do_not_report_errors_on_unused_labels_6074": "Ne signalez pas les erreurs pour les étiquettes inutilisées.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "Ne pas résoudre le chemin réel des liens symboliques.", - "Do_not_truncate_error_messages_6165": "Ne tronquez pas les messages d'erreur.", - "Duplicate_function_implementation_2393": "Implémentation de fonction en double.", - "Duplicate_identifier_0_2300": "Identificateur '{0}' en double.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "Identificateur '{0}' en double. Le compilateur réserve le nom '{1}' dans l'étendue de plus haut niveau d'un module.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "Identificateur '{0}' en double. Le compilateur réserve le nom '{1}' dans la portée de plus haut niveau d'un module contenant des fonctions async.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "Identificateur en double «{0}». Le compilateur réserve le nom «{1}» lors de l’émission de références « super » dans les initialiseurs statiques.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "Identificateur '{0}' en double. Le compilateur utilise la déclaration '{1}' pour prendre en charge les fonctions async.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "Identificateur '{0}' dupliqué. Les éléments statiques et les éléments d'instance ne peuvent pas partager le même nom privé.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "Identificateur dupliqué 'arguments'. Le compilateur utilise 'arguments' pour initialiser les paramètres rest.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "Dupliquez l'identificateur '_newTarget'. Le compilateur utilise la déclaration de variable '_newTarget' pour capturer la référence de méta-propriété 'new.target'.", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "Identificateur dupliqué '_this'. Le compilateur utilise la déclaration de variable '_this' pour capturer la référence 'this'.", - "Duplicate_index_signature_for_type_0_2374": "Doublon de signature d’index pour le type « {0} ».", - "Duplicate_label_0_1114": "Étiquette '{0}' en double.", - "Duplicate_property_0_2718": "Propriété dupliquée '{0}'.", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Le spécificateur de l'importation dynamique doit être de type 'string', mais ici il est de type '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Les importations dynamiques sont prises en charge uniquement lorsque l’indicateur '--module' a la valeur 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', ou 'nodenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Les importations dynamiques peuvent accepter uniquement un spécificateur de module et une assertion facultative en tant qu’arguments.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Les importations dynamiques prennent uniquement en charge un deuxième argument lorsque l’option « --module » est définie sur « esnext », « node16 » ou « nodenext ».", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Chaque membre du type union '{0}' a des signatures de construction, mais aucune de ces signatures n'est compatible avec les autres.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Chaque membre du type union '{0}' a des signatures, mais aucune de ces signatures n'est compatible avec les autres.", - "Editor_Support_6249": "Prise en charge de l’Éditeur", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "L'élément a implicitement un type 'any', car l'expression de type '{0}' ne peut pas être utilisée pour indexer le type '{1}'.", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "L'élément possède implicitement un type 'any', car l'expression d'index n'est pas de type 'number'.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "L'élément a implicitement un type 'any', car le type '{0}' n'a aucune signature d'index.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "L'élément a implicitement un type 'any', car le type '{0}' n'a aucune signature d'index. Est-ce que vous avez voulu appeler '{1}' ?", - "Emit_6246": "Émet", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "Émettez des champs de classe conformes à la norme ECMAScript.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "Émettez une marque d'ordre d'octet (BOM) UTF-8 au début des fichiers de sortie.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "Émettez un seul fichier avec des mappages de sources au lieu d'avoir un fichier distinct.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "Émettez un profil processeur V8 de l’exécution du compilateur pour le débogage.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "Émettez un code JavaScript supplémentaire pour simplifier la prise en charge de l’importation des modules CommonJS. Cela permet à « allowSyntheticDefaultImports » d’être compatible avec le type.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Émettez des champs de classe avec Define à la place de Set.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "Émettez des métadonnées de type conception pour les déclarations décorées dans les fichiers sources.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "Émettez des JavaScript plus conformes, mais plus détaillés et moins performants pour l’itération.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "Émettez la source aux côtés des mappages de sources dans un fichier unique. Nécessite la définition de '--inlineSourceMap' ou '--sourceMap'.", - "Enable_all_strict_type_checking_options_6180": "Activez toutes les options de contrôle de type strict.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Activer la couleur et la mise en forme dans la sortie de TypeScript pour faciliter la lecture des erreurs du compilateur.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "Activez les contraintes qui autorisent l’utilisation d’un projet TypeScript avec des références de projet.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "Activez le rapport d’erreurs pour les chemins de code qui ne sont pas explicitement renvoyés dans une fonction.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "Activez le rapport d’erreurs pour les expressions et les déclarations avec un type « any » implicite.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "Activez le rapport d’erreurs pour les cas échoués dans les instructions switch.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Activez le rapport d’erreurs dans les fichiers JavaScript vérifiés par type.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Activez le rapport d’erreurs lorsque les variables locales ne sont pas lues.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Activez le rapport d’erreurs lorsque « this » reçoit le type « any ».", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Activez la prise en charge expérimentale des éléments décoratifs de l’étape 2 de TC39.", - "Enable_importing_json_files_6689": "Activer l’importation des fichiers .json.", - "Enable_project_compilation_6302": "Activer la compilation du projet", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Activez des méthodes 'bind', 'call' et 'apply' strictes sur les fonctions.", - "Enable_strict_checking_of_function_types_6186": "Activez la vérification stricte des types de fonction.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "Activez la vérification stricte de l'initialisation des propriétés dans les classes.", - "Enable_strict_null_checks_6113": "Activez strict null checks.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "Activer l'option 'experimentalDecorators' dans votre fichier config", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "Activer l'indicateur '--jsx' dans votre fichier config", - "Enable_tracing_of_the_name_resolution_process_6085": "Activez le traçage du processus de résolution de noms.", - "Enable_verbose_logging_6713": "Activer la journalisation détaillée.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Active l'interopérabilité entre les modules CommonJS et ES via la création d'objets d'espace de noms pour toutes les importations. Implique 'allowSyntheticDefaultImports'.", - "Enables_experimental_support_for_ES7_decorators_6065": "Active la prise en charge expérimentale des éléments décoratifs ES7.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "Active la prise en charge expérimentale pour l'émission des métadonnées de type pour les éléments décoratifs.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "Applique l’utilisation d’accesseurs indexés pour les clés déclarées à l’aide d’un type indexé.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "Vérifiez que les membres de substitution dans les classes dérivées sont marqués avec un modificateur de remplacement.", - "Ensure_that_casing_is_correct_in_imports_6637": "Assurez-vous que la casse est correcte dans les importations.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Assurez-vous que chaque fichier peut être recompilé en toute sécurité sans s’appuyer sur d’autres importations.", - "Ensure_use_strict_is_always_emitted_6605": "Assurez-vous que « use strict » est toujours émis.", - "Entry_point_for_implicit_type_library_0_1420": "Point d'entrée pour la bibliothèque de types implicites '{0}'", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Point d'entrée pour la bibliothèque de types implicites '{0}' ayant le packageId '{1}'", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Point d'entrée de la bibliothèque de types '{0}' spécifiée dans compilerOptions", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "Point d'entrée de la bibliothèque de types '{0}' spécifiée dans compilerOptions et ayant le packageId '{1}'", - "Enum_0_used_before_its_declaration_2450": "Enum '{0}' utilisé avant sa déclaration.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Les déclarations enum ne peuvent fusionner qu'avec des espaces de noms ou d'autres déclarations enum.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "Les déclarations d'enum doivent toutes être const ou non const.", - "Enum_member_expected_1132": "Membre enum attendu.", - "Enum_member_must_have_initializer_1061": "Un membre enum doit posséder un initialiseur.", - "Enum_name_cannot_be_0_2431": "Le nom d'enum ne peut pas être '{0}'.", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Le type enum '{0}' a des membres dont les initialiseurs ne sont pas des littéraux.", - "Errors_Files_6041": "Fichiers d’erreurs", - "Examples_Colon_0_6026": "Exemples : {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "Profondeur excessive de la pile pour la comparaison des types '{0}' et '{1}'.", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Arguments de type {0}-{1} attendus ; indiquez-les avec la balise '@extends'.", - "Expected_0_arguments_but_got_1_2554": "{0} arguments attendus, mais {1} reçus.", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} arguments attendus, mais {1} reçus. Avez-vous oublié d'inclure 'void' dans votre argument de type pour 'Promise' ?", - "Expected_0_type_arguments_but_got_1_2558": "{0} arguments de type attendus, mais {1} reçus.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Arguments de type {0} attendus ; indiquez-les avec la balise '@extends'.", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 argument attendu, mais 0 obtenu. 'new Promise()' a besoin d’un indicateur JSDoc pour produire un 'resolve' qui peut être appelé sans arguments.", - "Expected_at_least_0_arguments_but_got_1_2555": "Au moins {0} arguments attendus, mais {1} reçus.", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "Balise de fermeture JSX correspondante attendue pour '{0}'.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Balise de fermeture correspondante attendue pour le fragment JSX.", - "Expected_for_property_initializer_1442": "« = » attendu pour l’initialiseur de propriété.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Le type attendu du champ '{0}' dans 'package.json' est censé être '{1}'. Obtention de '{2}'.", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "La prise en charge expérimentale des éléments décoratifs est une fonctionnalité susceptible de changer dans une prochaine version. Définissez l'option 'experimentalDecorators' dans votre fichier 'tsconfig' ou 'jsconfig' pour supprimer cet avertissement.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Spécification explicite du genre de résolution de module : '{0}'.", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Impossible d'effectuer l'élévation à une puissance sur des valeurs 'bigint' sauf si l'option 'target' a la valeur 'es2016' ou une valeur qui correspond à une version ultérieure.", - "Export_0_from_module_1_90059": "Exporter '{0}' à partir du module '{1}'", - "Export_all_referenced_locals_90060": "Exporter tous les variables locales référencées", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "Vous ne pouvez pas utiliser l'assignation d'exportation pour cibler des modules ECMAScript. Utilisez 'export default' ou un autre format de module à la place.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "L'assignation d'exportation n'est pas prise en charge quand l'indicateur '--module' est 'system'.", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "La déclaration d'exportation est en conflit avec la déclaration exportée de '{0}'.", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "Les déclarations d'exportation ne sont pas autorisées dans un espace de noms.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "Le spécificateur d’exportation « {0} » n’existe pas dans l’étendue package.json sur le chemin d’accès « {1} ».", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "L'alias de type exporté '{0}' possède ou utilise le nom privé '{1}'.", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "L'alias de type exporté '{0}' a ou utilise le nom privé '{1}' du module {2}.", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "La variable exportée '{0}' possède ou utilise le nom '{1}' du module externe {2}, mais elle ne peut pas être nommée.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "La variable exportée '{0}' possède ou utilise le nom '{1}' du module privé '{2}'.", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variable exportée '{0}' possède ou utilise le nom privé '{1}'.", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Les exportations et les assignations d'exportation ne sont pas autorisées dans les augmentations de module.", - "Expression_expected_1109": "Expression attendue.", - "Expression_or_comma_expected_1137": "Expression ou virgule attendue.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "L'expression produit un type de tuple trop grand pour être représenté.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "L'expression produit un type union trop complexe à représenter.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Expression résolue en '_super' et utilisée par le compilateur pour capturer la référence de classe de base.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "L'expression génère une déclaration de variable '_newTarget' que le compilateur utilise pour capturer la référence de méta-propriété 'new.target'.", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Expression résolue en déclaration de variable '_this' et utilisée par le compilateur pour capturer la référence 'this'.", - "Extract_constant_95006": "Extraire la constante", - "Extract_function_95005": "Extraire la fonction", - "Extract_to_0_in_1_95004": "Extraire vers {0} dans {1}", - "Extract_to_0_in_1_scope_95008": "Extraire vers {0} dans la portée {1}", - "Extract_to_0_in_enclosing_scope_95007": "Extraire vers {0} dans la portée englobante", - "Extract_to_interface_95090": "Extraire vers l'interface", - "Extract_to_type_alias_95078": "Extraire vers l'alias de type", - "Extract_to_typedef_95079": "Extraire vers typedef", - "Extract_type_95077": "Type d'extraction", - "FILE_6035": "FICHIER", - "FILE_OR_DIRECTORY_6040": "FICHIER OU RÉPERTOIRE", - "Failed_to_parse_file_0_Colon_1_5014": "Échec de l'analyse du fichier '{0}' : {1}.", - "Fallthrough_case_in_switch_7029": "Case avec fallthrough dans une instruction switch.", - "File_0_does_not_exist_6096": "Le fichier '{0}' n'existe pas.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Selon des recherches mises en cache antérieures, le fichier '{0}' n’existe pas.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "Le fichier '{0}' existe. Utilisez-le comme résultat pour la résolution de noms.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "Selon des recherches mises en cache antérieures, le fichier '{0}' existe.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Le fichier '{0}' a une extension non prise en charge. Les seules extensions prises en charge sont {1}.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Le fichier '{0}' a une extension non prise en charge. Il est ignoré.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Le fichier '{0}' est un fichier JavaScript. Est-ce que vous avez voulu activer l'option 'allowJs' ?", - "File_0_is_not_a_module_2306": "Le fichier '{0}' n'est pas un module.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Le fichier '{0}' ne figure pas dans la liste de fichiers du projet '{1}'. Les projets doivent lister tous les fichiers ou utiliser un modèle 'include'.", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Le fichier '{0}' ne se trouve pas sous 'rootDir' '{1}'. 'rootDir' est supposé contenir tous les fichiers sources.", - "File_0_not_found_6053": "Fichier '{0}' introuvable.", - "File_Management_6245": "Gestion de fichiers", - "File_change_detected_Starting_incremental_compilation_6032": "Modification de fichier détectée. Démarrage de la compilation incrémentielle...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Le fichier est un module CommonJS, car « {0} » n’a pas de champ « type »", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Le fichier est un module CommonJS, car « {0} » a un champ « type » dont la valeur n’est pas « module »", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "Le fichier est un module CommonJS, car « package.json » est introuvable", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "Le fichier est un module ECMAScript, car « {0} » a un champ « type » avec la valeur « module »", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "Le fichier est un module CommonJS ; il peut être converti en module ES.", - "File_is_default_library_for_target_specified_here_1426": "Le fichier représente la bibliothèque par défaut de la cible spécifiée ici.", - "File_is_entry_point_of_type_library_specified_here_1419": "Le fichier représente le point d'entrée de la bibliothèque de types spécifiée ici.", - "File_is_included_via_import_here_1399": "Le fichier est inclus via une importation ici.", - "File_is_included_via_library_reference_here_1406": "Le fichier est inclus via une référence à la bibliothèque ici.", - "File_is_included_via_reference_here_1401": "Le fichier est inclus via une référence ici.", - "File_is_included_via_type_library_reference_here_1404": "Le fichier est inclus via une référence à la bibliothèque de types ici.", - "File_is_library_specified_here_1423": "Le fichier représente la bibliothèque spécifiée ici.", - "File_is_matched_by_files_list_specified_here_1410": "Le fichier correspond à la liste 'files' spécifiée ici.", - "File_is_matched_by_include_pattern_specified_here_1408": "Le fichier correspond au modèle include spécifié ici.", - "File_is_output_from_referenced_project_specified_here_1413": "Le fichier représente la sortie du projet référencé spécifié ici.", - "File_is_output_of_project_reference_source_0_1428": "Le fichier représente la sortie de la source de référence de projet '{0}'", - "File_is_source_from_referenced_project_specified_here_1416": "Le fichier représente la source du projet référencé spécifié ici.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Le nom de fichier '{0}' diffère du nom de fichier '{1}' déjà inclus uniquement par la casse.", - "File_name_0_has_a_1_extension_stripping_it_6132": "Le nom de fichier '{0}' a une extension '{1}'. Suppression de l'extension.", - "File_redirects_to_file_0_1429": "Le fichier est redirigé vers le fichier '{0}'", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La spécification de fichier ne peut pas contenir un répertoire parent ('..') après un caractère générique de répertoire récursif ('**') : '{0}'.", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "Une spécification de fichier ne peut pas se terminer par un caractère générique de répertoire récursif ('**') : '{0}'.", - "Filters_results_from_the_include_option_6627": "Filtre les résultats de l’option « inclure ».", - "Fix_all_detected_spelling_errors_95026": "Corriger toutes les fautes d'orthographe détectées", - "Fix_all_expressions_possibly_missing_await_95085": "Corriger toutes les expressions où il manque éventuellement 'await'", - "Fix_all_implicit_this_errors_95107": "Corriger toutes les erreurs implicites liées à 'this'", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Corriger tous les types de retour incorrects des fonctions asynchrone", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Les boucles « for await » ne peuvent pas être utilisées à l’intérieur d’un bloc statique de classe.", - "Found_0_errors_6217": "{0} erreurs trouvées.", - "Found_0_errors_Watching_for_file_changes_6194": "{0} erreurs trouvées. Changements de fichier sous surveillance.", - "Found_0_errors_in_1_files_6261": "Erreurs {0} trouvées dans les fichiers {1} .", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Erreurs {0} trouvées dans le même fichier, à partir de : {1}", - "Found_1_error_6216": "1 erreur trouvée.", - "Found_1_error_Watching_for_file_changes_6193": "1 erreur trouvée. Changements de fichier sous surveillance.", - "Found_1_error_in_1_6259": "1 erreur trouvée dans {1}", - "Found_package_json_at_0_6099": "'package.json' trouvé sur '{0}'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'. Les définitions de classe sont automatiquement en mode strict.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'. Les modules sont automatiquement en mode strict.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "L'expression de fonction, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour '{0}'.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "L'implémentation de fonction est manquante ou ne suit pas immédiatement la déclaration.", - "Function_implementation_name_must_be_0_2389": "Le nom de l'implémentation de fonction doit être '{0}'.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La fonction possède implicitement le type de retour 'any', car elle n'a pas d'annotation de type de retour, et est référencée directement ou indirectement dans l'une de ses expressions de retour.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "La fonction n'a pas d'instruction return de fin, et le type de retour n'inclut pas 'undefined'.", - "Function_not_implemented_95159": "Fonction non implémentée.", - "Function_overload_must_be_static_2387": "La surcharge de fonction doit être statique.", - "Function_overload_must_not_be_static_2388": "La surcharge de fonction ne doit pas être statique.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "La notation de type d'une fonction doit être placée entre parenthèses quand elle est utilisée dans un type union.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "La notation de type d'une fonction doit être placée entre parenthèses quand elle est utilisée dans un type intersection.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "Le type de fonction, qui n'a pas d'annotation de type de retour, a implicitement le type de retour '{0}'.", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "La fonction avec des corps ne peut fusionner qu’avec des classes qui sont ambiantes.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "Générez des fichiers .d.ts à partir de fichiers TypeScript et JavaScript dans votre projet.", - "Generate_get_and_set_accessors_95046": "Générer les accesseurs 'get' et 'set'", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "Générer des accesseurs 'get' et 'set' pour toutes les propriétés de remplacement", - "Generates_a_CPU_profile_6223": "Génère un profil de processeur.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "Génère un mappage de source pour chaque fichier '.d.ts' correspondant.", - "Generates_an_event_trace_and_a_list_of_types_6237": "Génère une trace d'événement et une liste de types.", - "Generates_corresponding_d_ts_file_6002": "Génère le fichier '.d.ts' correspondant.", - "Generates_corresponding_map_file_6043": "Génère le fichier '.map' correspondant.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Le générateur a implicitement le type '{0}', car il ne génère aucune valeur. Indiquez une annotation de type de retour.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "Les générateurs ne sont pas autorisés dans un contexte ambiant.", - "Generic_type_0_requires_1_type_argument_s_2314": "Le type générique '{0}' exige {1} argument(s) de type.", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Le type générique '{0}' nécessite entre {1} et {2} arguments de type.", - "Global_module_exports_may_only_appear_at_top_level_1316": "Les exportations de modules globaux ne peuvent apparaître qu'au niveau supérieur.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "Les exportations de modules globaux ne peuvent apparaître que dans les fichiers de déclaration.", - "Global_module_exports_may_only_appear_in_module_files_1314": "Les exportations de modules globaux ne peuvent apparaître que dans les fichiers de module.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "Le type global '{0}' doit être un type de classe ou d'interface.", - "Global_type_0_must_have_1_type_parameter_s_2317": "Le type global '{0}' doit avoir {1} paramètre(s) de type.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "Les recompilations dans '--incremental' et '--watch' supposent que les changements apportés à un fichier affectent uniquement les fichiers qui dépendent directement de ce fichier.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "Les recompilations dans les projets qui utilisent le mode « incrémentiel » et « espion » supposent que les modifications au sein d’un fichier affectent uniquement les fichiers directement en fonction de celui-ci.", - "Hexadecimal_digit_expected_1125": "Chiffre hexadécimal attendu.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "Identificateur attendu. '{0}' est un mot réservé au niveau supérieur d'un module.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "Identificateur attendu. '{0}' est un mot réservé en mode strict.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "Identificateur attendu. '{0}' est un mot réservé en mode strict. Les définitions de classe sont automatiquement en mode strict.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "Identificateur attendu. '{0}' est un mot réservé en mode strict. Les modules sont automatiquement en mode strict.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Identificateur attendu. '{0}' est un mot réservé qui ne peut pas être utilisé ici.", - "Identifier_expected_1003": "Identificateur attendu.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificateur attendu. '__esModule' est réservé en tant que marqueur exporté durant la transformation des modules ECMAScript.", - "Identifier_or_string_literal_expected_1478": "Identificateur ou littéral de chaîne attendu", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si le package '{0}' expose réellement ce module, envoyez une demande de tirage (pull request) pour modifier 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si le package' {0} 'expose effectivement ce module, essayez d’ajouter un nouveau fichier de déclaration (. d. TS) contenant’declare module' {1} '; '", - "Ignore_this_error_message_90019": "Ignorer ce message d'erreur", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "Ignore tsconfig.json, compile les fichiers spécifiés avec les options du compilateur par défaut.", - "Implement_all_inherited_abstract_classes_95040": "Implémenter toutes les classes abstraites héritées", - "Implement_all_unimplemented_interfaces_95032": "Implémenter toutes les interfaces non implémentées", - "Implement_inherited_abstract_class_90007": "Implémenter la classe abstraite héritée", - "Implement_interface_0_90006": "Implémenter l'interface '{0}'", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La clause implements de la classe exportée '{0}' possède ou utilise le nom privé '{1}'.", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversion implicite de 'symbol' en 'string' va échouer au moment de l'exécution. Incluez dans un wrapper cette expression en 'String(...)'.", - "Import_0_from_1_90013": "Importez '{0}' à partir de \"{1}\".", - "Import_assertion_values_must_be_string_literal_expressions_2837": "Les valeurs d’assertion d’importation doivent être des expressions littérales de chaîne.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Les assertions d’importation ne sont pas autorisées sur les instructions qui transpilent en appels commonjs « require ».", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Les assertions d’importation ne sont prises en charge que lorsque l’option « --module » a la valeur « esnext » ou « nodenext ».", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Les assertions d’importation ne peuvent pas être utilisées avec les importations ou exportations de type uniquement.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Vous ne pouvez pas utiliser l'assignation d'importation pour cibler des modules ECMAScript. Utilisez plutôt 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' ou un autre format de module.", - "Import_declaration_0_is_using_private_name_1_4000": "La déclaration d'importation '{0}' utilise le nom privé '{1}'.", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La déclaration d'importation est en conflit avec la déclaration locale de '{0}'.", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Les déclarations d'importation dans un espace de noms ne peuvent pas référencer un module.", - "Import_emit_helpers_from_tslib_6139": "Importer l'assistance à l'émission à partir de 'tslib'.", - "Import_may_be_converted_to_a_default_import_80003": "L'importation peut être convertie en importation par défaut.", - "Import_name_cannot_be_0_2438": "Le nom d'importation ne peut pas être '{0}'.", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "Une déclaration d'importation ou d'exportation dans une déclaration de module ambiant ne peut référencer un module au moyen d'un nom de module relatif.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "Le spécificateur d’importation « {0} » n’existe pas dans l’étendue package.json sur le chemin d’accès « {1} ».", - "Imported_via_0_from_file_1_1393": "Importé(e) via {0} à partir du fichier '{1}'", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "Importé(e) via {0} à partir du fichier '{1}' pour importer 'importHelpers' comme indiqué dans compilerOptions", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "Importé(e) via {0} à partir du fichier '{1}' pour importer les fonctions de fabrique 'jsx' et 'jsxs'", - "Imported_via_0_from_file_1_with_packageId_2_1394": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}'", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}' pour importer 'importHelpers' comme indiqué dans compilerOptions", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}' pour importer les fonctions de fabrique 'jsx' et 'jsxs'", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Les importations ne sont pas autorisées dans les augmentations de module. Déplacez-les vers le module externe englobant.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Dans les déclarations d'enums ambiants, l'initialiseur de membre doit être une expression constante.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Dans un enum avec plusieurs déclarations, seule une déclaration peut omettre un initialiseur pour son premier élément d'enum.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "Incluez une liste de fichiers. Cela ne prend pas en charge les modèles Glob, par opposition à « inclure ».", - "Include_modules_imported_with_json_extension_6197": "Inclure les modules importés avec l'extension '.json'", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Incluez le code source dans les images sources à l’intérieur du Code JavaScript émis.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Incluez les fichiers sourcemap à l’intérieur du Code JavaScript émis.", - "Includes_imports_of_types_referenced_by_0_90054": "Inclut les importations de types référencés par « {0} »", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "En incluant --watch, -w commence à regarder le projet actuel pour les modifications apportées au fichier. Une fois défini, vous pouvez configurer le mode espion avec :", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "La signature d’index pour le type « {0} » est manquante dans le type « {1} ».", - "Index_signature_in_type_0_only_permits_reading_2542": "La signature d'index du type '{0}' autorise uniquement la lecture.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Les déclarations individuelles de la déclaration fusionnée '{0}' doivent toutes être exportées ou locales.", - "Infer_all_types_from_usage_95023": "Déduire tous les types de l'utilisation", - "Infer_function_return_type_95148": "Déduire le type de retour de la fonction", - "Infer_parameter_types_from_usage_95012": "Déduire les types des paramètres à partir de l'utilisation", - "Infer_this_type_of_0_from_usage_95080": "Déduire le type 'this' de '{0}' à partir de l'utilisation", - "Infer_type_of_0_from_usage_95011": "Déduire le type de '{0}' à partir de l'utilisation", - "Initialize_property_0_in_the_constructor_90020": "Initialiser la propriété '{0}' dans le constructeur", - "Initialize_static_property_0_90021": "Initialiser la propriété statique '{0}'", - "Initializer_for_property_0_2811": "Initialiseur de la propriété '{0}'", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "L'initialiseur de la variable membre d'instance '{0}' ne peut pas référencer l'identificateur '{1}' déclaré dans le constructeur.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "L'initialiseur ne fournit aucune valeur pour cet élément de liaison, et ce dernier n'a pas de valeur par défaut.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "Les initialiseurs ne sont pas autorisés dans les contextes ambiants.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Initialise un projet TypeScript et crée un fichier tsconfig.json.", - "Insert_command_line_options_and_files_from_a_file_6030": "Insérer les options de ligne de commande et les fichiers à partir d'un fichier texte.", - "Install_0_95014": "Installer '{0}'", - "Install_all_missing_types_packages_95033": "Installer tous les packages de types manquants", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "L'interface '{0}' ne peut pas étendre simultanément les types '{1}' et '{2}'.", - "Interface_0_incorrectly_extends_interface_1_2430": "L'interface '{0}' étend de manière incorrecte l'interface '{1}'.", - "Interface_declaration_cannot_have_implements_clause_1176": "Une déclaration d'interface ne peut pas avoir de clause 'implements'.", - "Interface_must_be_given_a_name_1438": "Un nom doit être attribué à l’interface.", - "Interface_name_cannot_be_0_2427": "Le nom de l'interface ne peut pas être '{0}'.", - "Interop_Constraints_6252": "Contraintes d’interopérabilité", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "Interpréter les types de propriétés facultatifs comme écrits, plutôt que d’ajouter « undefined ».", - "Invalid_character_1127": "Caractère non valide.", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "Le spécificateur d’importation non valide « {0} » n’a aucune résolution possible.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Nom de module non valide dans l'augmentation. Le module '{0}' est résolu en module non typé à l'emplacement '{1}', ce qui empêche toute augmentation.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nom de module non valide dans l'augmentation. Le module '{0}' est introuvable.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Chaîne facultative non valide à partir de la nouvelle expression. Voulez-vous appeler '{0}()' ?", - "Invalid_reference_directive_syntax_1084": "Syntaxe de directive 'reference' non valide.", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Utilisation non valide de « {0} ». Il ne peut pas être utilisé à l’intérieur d’un bloc statique de classe.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Utilisation non valide de '{0}'. Les modules sont automatiquement en mode strict.", - "Invalid_use_of_0_in_strict_mode_1100": "Utilisation non valide de '{0}' en mode strict.", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Valeur non valide pour 'jsxFactory'. '{0}' n'est pas un identificateur valide ou un nom qualifié.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Valeur non valide pour 'jsxFragmentFactory'. '{0}' n'est pas un identificateur valide ou un nom qualifié.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Valeur non valide pour '--reactNamespace'. '{0}' n'est pas un identificateur valide.", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "Il manque probablement une virgule pour séparer ces deux expressions de modèle. Elles forment une expression de modèle étiquetée qui ne peut pas être appelée.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Son type d'élément '{0}' n'est pas un élément JSX valide.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Son type d'instance '{0}' n'est pas un élément JSX valide.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Son type de retour '{0}' n'est pas un élément JSX valide.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "La balise JSDoc '@{0} {1}' ne correspond pas à la clause 'extends {2}'.", - "JSDoc_0_is_not_attached_to_a_class_8022": "La balise JSDoc '@{0}' n'est pas attachée à une classe.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' peut apparaître uniquement dans le dernier paramètre d'une signature.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "La balise JSDoc '@param' se nomme '{0}', mais il n'existe aucun paramètre portant ce nom.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "La balise JSDoc '@param' se nomme '{0}', mais il n'existe aucun paramètre portant ce nom. Elle doit correspondre à 'arguments', si elle est de type tableau.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "La balise JSDoc '@typedef' doit avoir une annotation de type ou être suivie des balises '@property' ou '@member'.", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Les types JSDoc peuvent uniquement être utilisés dans les commentaires de la documentation.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Les types JSDoc peuvent être déplacés vers les types TypeScript.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Les attributs JSX doivent uniquement être attribués à une 'expression' non vide.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "L'élément JSX '{0}' n'a pas de balise de fermeture correspondante.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "La classe de l'élément JSX ne prend pas en charge les attributs, car elle n'a pas de propriété '{0}'.", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "L'élément JSX a implicitement le type 'any', car il n'existe aucune interface 'JSX.{0}'.", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "L'élément JSX a implicitement le type 'any', car le type global 'JSX.Element' n'existe pas.", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "Le type '{0}' de l'élément JSX n'a pas de signatures de construction ou d'appel.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "Les éléments JSX ne peuvent pas avoir plusieurs attributs du même nom.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "Les expressions JSX ne peuvent pas utiliser l'opérateur virgule. Est-ce que vous avez voulu écrire un tableau ?", - "JSX_expressions_must_have_one_parent_element_2657": "Les expressions JSX doivent avoir un élément parent.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "Le fragment JSX n'a pas de balise de fermeture correspondante.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "Les expressions d'accès aux propriétés JSX ne peuvent pas inclure de noms d'espaces de noms JSX", - "JSX_spread_child_must_be_an_array_type_2609": "L'enfant spread JSX doit être un type de tableau.", - "JavaScript_Support_6247": "Prise en charge de JavaScript", - "Jump_target_cannot_cross_function_boundary_1107": "La cible du saut ne peut pas traverser une limite de fonction.", - "KIND_6034": "GENRE", - "Keywords_cannot_contain_escape_characters_1260": "Les mots clés ne peuvent pas contenir de caractères d'échappement.", - "LOCATION_6037": "EMPLACEMENT", - "Language_and_Environment_6254": "Langage et Environnement", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "Le côté gauche de l'opérateur virgule n'est pas utilisé, et n'a aucun effet secondaire.", - "Library_0_specified_in_compilerOptions_1422": "Bibliothèque '{0}' spécifiée dans compilerOptions", - "Library_referenced_via_0_from_file_1_1405": "Bibliothèque référencée via '{0}' à partir du fichier '{1}'", - "Line_break_not_permitted_here_1142": "Saut de ligne non autorisé ici.", - "Line_terminator_not_permitted_before_arrow_1200": "Marque de fin de ligne non autorisée devant une flèche.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "Liste des suffixes de nom de fichier à rechercher lors de la résolution d’un module.", - "List_of_folders_to_include_type_definitions_from_6161": "Liste des dossiers à partir desquels inclure les définitions de type.", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Liste des dossiers racines dont le contenu combiné représente la structure du projet au moment de l'exécution.", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Chargement de '{0}' à partir du répertoire racine '{1}', emplacement candidat '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Chargement du module '{0}' à partir du dossier 'node_modules'. Type du fichier cible '{1}'.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Chargement du module en tant que fichier/dossier. Emplacement du module candidat '{0}'. Type de fichier cible '{1}'.", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Les paramètres régionaux doivent être sous la forme ou -. Par exemple, '{0}' ou '{1}'.", - "Log_paths_used_during_the_moduleResolution_process_6706": "Chemins d’accès de journal utilisés pendant le processus « moduleResolution ».", - "Longest_matching_prefix_for_0_is_1_6108": "Le préfixe correspondant le plus long pour '{0}' est '{1}'.", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "Recherche dans le dossier 'node_modules', emplacement initial '{0}'.", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "Faire de tous les appels 'super()' la première instruction dans leur constructeur", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Faites en sorte que keyof retourne uniquement des chaînes au lieu de chaînes, de nombres ou de symboles. Option héritée.", - "Make_super_call_the_first_statement_in_the_constructor_90002": "Faire de l'appel à 'super()' la première instruction du constructeur", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Le type d'objet mappé a implicitement un type de modèle 'any'.", - "Matched_0_condition_1_6403": "Condition '{0}' correspondant à '{1}'.", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Mise en correspondance par défaut du modèle include '**/*'", - "Matched_by_include_pattern_0_in_1_1407": "Correspond au modèle include '{0}' dans '{1}'", - "Member_0_implicitly_has_an_1_type_7008": "Le membre '{0}' possède implicitement un type '{1}'.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Le membre '{0}' a implicitement un type '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "Merge_conflict_marker_encountered_1185": "Marqueur de conflit de fusion rencontré.", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "La déclaration fusionnée '{0}' ne peut pas inclure de déclaration d'exportation par défaut. Ajoutez plutôt une déclaration 'export default {0}' distincte.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "La méta-propriété '{0}' n'est autorisée que dans le corps d'une déclaration de fonction, d'une expression de fonction ou d'un constructeur.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "La méthode '{0}' ne peut pas avoir d'implémentation, car elle est marquée comme étant abstraite.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "La méthode '{0}' de l'interface exportée comporte ou utilise le nom '{1}' du module privé '{2}'.", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "La méthode '{0}' de l'interface exportée comporte ou utilise le nom privé '{1}'.", - "Method_not_implemented_95158": "Méthode non implémentée.", - "Modifiers_cannot_appear_here_1184": "Les modificateurs ne peuvent pas apparaître ici.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Le module '{0}' peut uniquement être importé par défaut à l'aide de l'indicateur '{1}'", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "Le module '{0}' ne peut pas être importé à l'aide de cette construction. Le spécificateur se résout uniquement en un module ES, qui ne peut pas être importé avec 'require'. Utilisez plutôt une importation ECMAScript.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "Le module '{0}' déclare '{1}' localement, mais il est exporté en tant que '{2}'.", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "Le module '{0}' déclare '{1}' localement, mais il n'est pas exporté.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "Le module '{0}' ne fait pas référence à un type, mais il est utilisé ici en tant que type. Est-ce que vous avez voulu utiliser 'typeof import('{0}')' ?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "Le module '{0}' ne fait pas référence à une valeur, mais est utilisé en tant que valeur ici.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "Le module {0} a déjà exporté un membre nommé '{1}'. Effectuez une réexportation explicite pour lever l'ambiguïté.", - "Module_0_has_no_default_export_1192": "Le module '{0}' n'a pas d'exportation par défaut.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "Le module '{0}' n'a aucune exportation par défaut. Est-ce que vous avez voulu utiliser 'import { {1} } from {0}' à la place ?", - "Module_0_has_no_exported_member_1_2305": "Le module '{0}' n'a aucun membre exporté '{1}'.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Le module '{0}' n'a aucun membre exporté '{1}'. Est-ce que vous avez voulu utiliser 'import {1} from {0}' à la place ?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Le module '{0}' est masqué par une déclaration locale portant le même nom.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Le module '{0}' utilise 'export =' et ne peut pas être utilisé avec 'export *'.", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Le module '{0}' a été résolu en tant que module ambiant déclaré dans '{1}', car ce fichier n'a pas été modifié.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Le module '{0}' a été résolu en tant que module ambiant déclaré localement dans le fichier '{1}'.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Le module '{0}' a été résolu en '{1}' mais '--jsx' n'est pas défini.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Le module '{0}' a été résolu en '{1}' mais '--resolveJsonModule' n'est pas utilisé.", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Les noms de déclaration de module ne peuvent utiliser que des chaînes entre guillemets.", - "Module_name_0_matched_pattern_1_6092": "Nom de module '{0}', modèle correspondant '{1}'.", - "Module_name_0_was_not_resolved_6090": "======== Le nom de module '{0}' n'a pas été résolu. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== Le nom de module '{0}' a été correctement résolu en '{1}'. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== Le nom de module '{0}' a été correctement résolu en '{1}' avec l'ID de package '{2}'. ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "Le genre de résolution de module n'est pas spécifié. Utilisation de '{0}'.", - "Module_resolution_using_rootDirs_has_failed_6111": "Échec de la résolution de module à l'aide de 'rootDirs'.", - "Modules_6244": "Modules", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "Déplacer les modificateurs d'élément de tuple étiqueté vers les étiquettes", - "Move_to_a_new_file_95049": "Déplacer vers un nouveau fichier", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Les séparateurs numériques consécutifs multiples ne sont pas autorisés.", - "Multiple_constructor_implementations_are_not_allowed_2392": "Les implémentations de plusieurs constructeurs ne sont pas autorisées.", - "NEWLINE_6061": "NOUVELLE LIGNE", - "Name_is_not_valid_95136": "Le nom n'est pas valide", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "La propriété nommée '{0}' des types '{1}' et '{2}' n'est pas identique.", - "Namespace_0_has_no_exported_member_1_2694": "L'espace de noms '{0}' n'a aucun membre exporté '{1}'.", - "Namespace_must_be_given_a_name_1437": "Un nom doit être attribué à l’espace de noms.", - "Namespace_name_cannot_be_0_2819": "L’espace de noms ne peut pas être «{0}».", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Aucun constructeur de base n'a le nombre spécifié d'arguments de type.", - "No_constituent_of_type_0_is_callable_2755": "Aucun constituant de type '{0}' ne peut être appelé.", - "No_constituent_of_type_0_is_constructable_2759": "Aucun constituant de type '{0}' ne peut être construit.", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "Aucune signature d'index avec un paramètre de type '{0}' n'a été localisée sur le type '{1}'.", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "Aucune entrée dans le fichier config '{0}'. Les chemins 'include' spécifiés étaient '{1}' et les chemins 'exclude' étaient '{2}'.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "Plus prise en charge. Dans les premières versions, définissez manuellement l’encodage de texte pour la lecture des fichiers.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "Aucune surcharge n'attend {0} arguments, mais il existe des surcharges qui attendent {1} ou {2} arguments.", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "Aucune surcharge n'attend {0} arguments de type, mais il existe des surcharges qui attendent {1} ou {2} arguments de type.", - "No_overload_matches_this_call_2769": "Aucune surcharge ne correspond à cet appel.", - "No_type_could_be_extracted_from_this_type_node_95134": "Aucun type n'a pu être extrait de ce nœud de type", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Il n'existe aucune valeur dans l'étendue de la propriété raccourcie '{0}'. Vous devez en déclarez une, ou fournir un initialiseur.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non abstraite '{0}' n'implémente pas le membre abstrait '{1}' hérité de la classe '{2}'.", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "L'expression de classe non abstraite '{0}' n'implémente pas le membre abstrait hérité '{0}' de la classe '{1}'.", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Les assertions non null peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Les chemins non relatifs ne sont pas autorisés quand 'baseUrl' n'est pas défini. Avez-vous oublié './' au début ?", - "Non_simple_parameter_declared_here_1348": "Paramètre non simple déclaré ici.", - "Not_all_code_paths_return_a_value_7030": "Les chemins du code ne retournent pas tous une valeur.", - "Not_all_constituents_of_type_0_are_callable_2756": "Tous les constituants de type '{0}' ne peuvent pas être appelés.", - "Not_all_constituents_of_type_0_are_constructable_2760": "Tous les constituants de type '{0}' ne peuvent pas être construits.", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Les littéraux numériques ayant des valeurs absolues égales ou supérieures à 2^53 sont trop grands pour être représentés avec précision sous forme d'entiers.", - "Numeric_separators_are_not_allowed_here_6188": "Les séparateurs numériques ne sont pas autorisés ici.", - "Object_is_of_type_unknown_2571": "L'objet est de type 'unknown'.", - "Object_is_possibly_null_2531": "L'objet a peut-être la valeur 'null'.", - "Object_is_possibly_null_or_undefined_2533": "L'objet a peut-être la valeur 'null' ou 'undefined'.", - "Object_is_possibly_undefined_2532": "L'objet a peut-être la valeur 'undefined'.", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Un littéral d'objet peut uniquement spécifier des propriétés connues, et '{0}' n'existe pas dans le type '{1}'.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Un littéral d'objet peut uniquement spécifier des propriétés connues, mais '{0}' n'existe pas dans le type '{1}'. Est-ce que vous avez voulu écrire '{2}' ?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La propriété '{0}' du littéral d'objet possède implicitement un type '{1}'.", - "Octal_digit_expected_1178": "Chiffre octal attendu.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Les types de littéral octal doivent utiliser la syntaxe ES2015. Utilisez la syntaxe '{0}'.", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Les littéraux octaux ne sont pas autorisés dans l'initialiseur des membres d'enums. Utilisez la syntaxe '{0}'.", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "Les littéraux octaux ne sont pas autorisés en mode strict.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Les littéraux octaux ne sont pas disponibles lorsque vous ciblez ECMAScript 5 et ultérieur. Utilisez la syntaxe '{0}'.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "Une seule déclaration de variable est autorisée dans une instruction 'for...in'.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "Seule une déclaration de variable unique est autorisée dans une instruction 'for...of'.", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Seule une fonction void peut être appelée avec le mot clé 'new'.", - "Only_ambient_modules_can_use_quoted_names_1035": "Seuls les modules ambiants peuvent utiliser des noms entre guillemets.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Seuls les modules 'amd' et 'system' sont pris en charge avec --{0}.", - "Only_emit_d_ts_declaration_files_6014": "Émettez uniquement les fichiers de déclaration '.d.ts'.", - "Only_named_exports_may_use_export_type_1383": "Seules les exportations nommées peuvent utiliser 'export type'.", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Seules les enums numériques peuvent avoir des membres calculés, mais cette expression a le type '{0}'. Si vous n'avez pas besoin de contrôles d'exhaustivité, utilisez un littéral d'objet à la place.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Sortie uniquement des fichiers d.ts et non des fichiers JavaScript.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Seules les méthodes publiques et protégées de la classe de base sont accessibles par le biais du mot clé 'super'.", - "Operator_0_cannot_be_applied_to_type_1_2736": "Impossible d'appliquer l'opérateur '{0}' au type '{1}'.", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Impossible d'appliquer l'opérateur '{0}' aux types '{1}' et '{2}'.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Choisir un projet en dehors de la vérification des références multiprojets lors de l’édition.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Vous pouvez spécifier l'option '{0}' uniquement dans le fichier 'tsconfig.json', ou lui affecter la valeur 'false' ou 'null' sur la ligne de commande.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Vous pouvez spécifier l'option '{0}' uniquement dans le fichier 'tsconfig.json', ou lui affecter la valeur 'null' sur la ligne de commande.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "L'option '{0}' peut être utilisée uniquement quand l'option '--inlineSourceMap' ou l'option '--sourceMap' est spécifiée.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Impossible de spécifier l'option '{0}' quand l'option 'jsx' a la valeur '{1}'.", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Impossible de spécifier l'option '{0}' quand l'option 'target' est 'ES3'.", - "Option_0_cannot_be_specified_with_option_1_5053": "Impossible de spécifier l'option '{0}' avec l'option '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}' ou l'option '{2}'.", - "Option_build_must_be_the_first_command_line_argument_6369": "L'option '--build' doit être le premier argument de ligne de commande.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "L'option '--incremental' peut uniquement être spécifiée à l'aide de tsconfig, en cas d'émission vers un seul fichier ou quand l'option '--tsBuildInfoFile' est spécifiée.", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'option 'isolatedModules' peut être utilisée seulement quand l'option '--module' est spécifiée, ou quand l'option 'target' a la valeur 'ES2015' ou une version supérieure.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "L'option 'preserveConstEnums' ne peut pas être désactivée quand 'isolatedModules' est activé.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L’option « preserveValueImports » peut uniquement être utilisée quand « module » a la valeur « es2015 » ou une version ultérieure.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Impossible d'associer l'option 'project' à des fichiers sources sur une ligne de commande.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "L'option '--resolveJsonModule' peut uniquement être spécifiée quand la génération du code de module est 'commonjs', 'amd', 'es2015' ou 'esNext'.", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Impossible de spécifier l'option '--resolveJsonModule' sans la stratégie de résolution de module 'node'.", - "Options_0_and_1_cannot_be_combined_6370": "Impossible de combiner les options '{0}' et '{1}'.", - "Options_Colon_6027": "Options :", - "Output_Formatting_6256": "Mise en forme de sortie", - "Output_compiler_performance_information_after_building_6615": "Informations de performances du compilateur de sortie après la génération.", - "Output_directory_for_generated_declaration_files_6166": "Répertoire de sortie pour les fichiers de déclaration générés.", - "Output_file_0_from_project_1_does_not_exist_6309": "Le fichier de sortie '{0}' du projet '{1}' n'existe pas", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "Le fichier de sortie '{0}' n'a pas été créé à partir du fichier source '{1}'.", - "Output_from_referenced_project_0_included_because_1_specified_1411": "Sortie du projet référencé '{0}' incluse, car '{1}' est spécifié", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Sortie du projet référencé '{0}' incluse, car '--module' est spécifié en tant que 'none'", - "Output_more_detailed_compiler_performance_information_after_building_6632": "Affichez des informations plus détaillées sur les performances du compilateur après la génération.", - "Overload_0_of_1_2_gave_the_following_error_2772": "La surcharge {0} sur {1}, '{2}', a généré l'erreur suivante.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "Les signatures de surcharge doivent toutes être abstraites ou non abstraites.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "Les signatures de surcharge doivent toutes être ambiantes ou non ambiantes.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "Les signatures de surcharge doivent toutes être exportées ou non exportées.", - "Overload_signatures_must_all_be_optional_or_required_2386": "Les signatures de surcharge doivent toutes être facultatives ou requises.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "Les signatures de surcharge doivent toutes être publiques, privées ou protégées.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "Le paramètre '{0}' ne peut pas référencer l'identificateur '{1}' déclaré après lui.", - "Parameter_0_cannot_reference_itself_2372": "Le paramètre '{0}' ne peut pas se référencer lui-même.", - "Parameter_0_implicitly_has_an_1_type_7006": "Le paramètre '{0}' possède implicitement un type '{1}'.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "Le paramètre '{0}' a implicitement un type '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "Le paramètre '{0}' n'est pas à la même position que le paramètre '{1}'.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "Le paramètre '{0}' de l'accesseur comporte ou utilise le nom '{1}' du module externe '{2}' mais ne peut pas être nommé.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "Le paramètre '{0}' de l'accesseur comporte ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "Le paramètre '{0}' de l'accesseur comporte ou utilise le nom privé '{1}'.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "Le paramètre '{0}' de la signature d'appel de l'interface exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "Le paramètre '{0}' de la signature d'appel de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "Le paramètre '{0}' du constructeur de la classe exportée possède ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "Le paramètre '{0}' du constructeur de la classe exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "Le paramètre '{0}' du constructeur de la classe exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "Le paramètre '{0}' de la signature de constructeur de l'interface exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "Le paramètre '{0}' de la signature de constructeur de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "Le paramètre '{0}' de la fonction exportée possède ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "Le paramètre '{0}' de la fonction exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "Le paramètre '{0}' de la fonction exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "Le paramètre '{0}' de la signature d'index de l'interface exportée a ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "Le paramètre '{0}' de la signature d'index de l'interface exportée a ou utilise le nom privé '{1}'.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "Le paramètre '{0}' de la méthode de l'interface exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "Le paramètre '{0}' de la méthode de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "Le paramètre '{0}' de la méthode publique de la classe exportée possède ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "Le paramètre '{0}' de la méthode publique de la classe exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "Le paramètre '{0}' de la méthode publique de la classe exportée possède ou utilise le nom privé '{1}'.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "Le paramètre '{0}' de la méthode statique publique de la classe exportée possède ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "Le paramètre '{0}' de la méthode statique publique de la classe exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "Le paramètre '{0}' de la méthode statique publique de la classe exportée possède ou utilise le nom privé '{1}'.", - "Parameter_cannot_have_question_mark_and_initializer_1015": "Un paramètre ne peut pas contenir de point d'interrogation et d'initialiseur.", - "Parameter_declaration_expected_1138": "Déclaration de paramètre attendue.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Le paramètre a un nom mais aucun type. Est-ce que vous avez voulu utiliser '{0} : {1}' ?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Les modificateurs de paramètres peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom privé '{1}'.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom privé '{1}'.", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "Analyser en mode strict et émettre \"use strict\" pour chaque fichier source.", - "Part_of_files_list_in_tsconfig_json_1409": "Partie de la liste 'files' dans tsconfig.json", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "Le modèle '{0}' ne peut avoir qu'un seul caractère '*' au maximum.", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "Les minutages de performances pour '--diagnostics' ou '--extendedDiagnostics' ne sont pas disponibles dans cette session. Une implémentation native de l'API de performances web est introuvable.", - "Platform_specific_6912": "Spécifique à la plateforme", - "Prefix_0_with_an_underscore_90025": "Faire précéder '{0}' d'un trait de soulignement", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "Faire commencer toutes les déclarations de propriété incorrectes par 'declare'", - "Prefix_all_unused_declarations_with_where_possible_95025": "Préfixer toutes les déclarations inutilisées avec '_' si possible", - "Prefix_with_declare_95094": "Faire commencer par 'declare'", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conservez les valeurs importées inutilisées dans la sortie JavaScript qui seraient normalement supprimées.", - "Print_all_of_the_files_read_during_the_compilation_6653": "Imprimez tous les fichiers lus pendant la compilation.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Fichiers d’impression lus pendant la compilation, notamment la raison de l’inclusion.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Affiche les noms des fichiers et la raison pour laquelle ils font partie de la compilation.", - "Print_names_of_files_part_of_the_compilation_6155": "Imprimez les noms des fichiers faisant partie de la compilation.", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "Affichez les noms des fichiers qui font partie de la compilation, puis arrêtez le traitement.", - "Print_names_of_generated_files_part_of_the_compilation_6154": "Imprimez les noms des fichiers générés faisant partie de la compilation.", - "Print_the_compiler_s_version_6019": "Affichez la version du compilateur.", - "Print_the_final_configuration_instead_of_building_1350": "Affichez la configuration finale au lieu d'effectuer la génération.", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "Imprimez les noms des fichiers émis après une compilation.", - "Print_this_message_6017": "Imprimez ce message.", - "Private_accessor_was_defined_without_a_getter_2806": "L'accesseur privé a été défini sans getter.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Les identificateurs privés ne sont pas autorisés dans les déclarations de variable.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Les identificateurs privés ne sont pas autorisés en dehors des corps de classe.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Les identificateurs privés ne sont autorisés que dans les corps de classe et ne peuvent être utilisés que dans le cadre d’une déclaration de membre de classe, d’accès à une propriété ou de la partie gauche d’une expression ’in'", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Les identificateurs privés sont disponibles uniquement durant le ciblage d'ECMAScript 2015 et version ultérieure.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "Les identificateurs privés ne peuvent pas être utilisés en tant que paramètres.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Le membre privé ou protégé '{0}' n'est pas accessible sur un paramètre de type.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Impossible de générer le projet '{0}' car sa dépendance '{1}' comporte des erreurs", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Impossible de générer le projet '{0}', car sa dépendance '{1}' n'a pas été générée", - "Project_0_is_being_forcibly_rebuilt_6388": "Le projet « {0} » est en cours de régénération forcée", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Le projet « {0} » est obsolète, car le fichier buildinfo « {1} » indique que certaines modifications n’ont pas été émises", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Le projet '{0}' est obsolète car sa dépendance '{1}' est obsolète", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Le projet '{0}' est obsolète car la sortie (« {1} ») est antérieure à l'entrée « {2} »", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Le projet '{0}' est obsolète car le fichier de sortie '{1}' n'existe pas", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Le projet '{0}' est obsolète, car sa sortie a été générée avec la version '{1}', qui diffère de la version actuelle '{2}'", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Le projet '{0}' est obsolète, car la sortie de sa dépendance '{1}' a changé", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Le projet « {0} » est obsolète car une erreur s'est produite lors de la lecture du fichier « {1} »", - "Project_0_is_up_to_date_6361": "Le projet '{0}' est à jour", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Le projet « {0} » est à jour car l'entrée la plus récente (« {1} ») est antérieure à la sortie (« {2} »)", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "Project « {0} » est à jour, mais doit mettre à jour les horodatages des fichiers de sortie plus anciens que les fichiers d’entrée", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Le projet '{0}' est à jour avec les fichiers .d.ts de ses dépendances", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Les références de projet ne peuvent pas former un graphe circulaire. Cycle détecté : {0}", - "Projects_6255": "Projets", - "Projects_in_this_build_Colon_0_6355": "Projets dans cette build : {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Les propriétés avec le modificateur 'accessor' ne sont disponibles que pour le ciblage d’ECMAScript 2015 et versions ultérieures.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La propriété « {0} » ne peut pas avoir d’initialiseur, car elle est marquée comme abstraite.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La propriété '{0}' est issue d'une signature d'index, elle doit donc faire l'objet d'un accès avec ['{0}'].", - "Property_0_does_not_exist_on_type_1_2339": "La propriété '{0}' n'existe pas sur le type '{1}'.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "La propriété '{0}' n'existe pas sur le type '{1}'. Est-ce qu'il ne s'agit pas plutôt de '{2}' ?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "La propriété '{0}' n'existe pas sur le type '{1}'. Ne vouliez-vous pas plutôt accéder au membre statique '{2}' ?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "La propriété '{0}' n'existe pas sur le type '{1}'. Devez-vous changer votre bibliothèque cible ? Essayez de changer l'option de compilateur 'lib' en '{2}' ou une version ultérieure.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "La propriété '{0}' n’existe pas sur le type '{1}'. Essayez de modifier l’option de compileur 'lib' pour inclure 'dom'.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "La propriété « {0} » n'a aucun initialiseur et n'est pas définitivement assignée dans un bloc statique de classe.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "La propriété '{0}' n'a aucun initialiseur et n'est pas définitivement assignée dans le constructeur.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "La propriété '{0}' a implicitement le type 'any', car son accesseur get ne dispose pas d'une annotation de type de retour.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "La propriété '{0}' a implicitement le type 'any', car son accesseur set ne dispose pas d'une annotation de type de paramètre.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "La propriété '{0}' a implicitement le type 'any', mais il est possible de déduire un meilleur type pour son accesseur get à partir de l'utilisation.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "La propriété '{0}' a implicitement le type 'any', mais il est possible de déduire un meilleur type pour son accesseur set à partir de l'utilisation.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "Impossible d'assigner la propriété '{0}' du type '{1}' à la même propriété du type de base '{2}'.", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "La propriété '{0}' du type '{1}' ne peut pas être assignée au type '{2}'.", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "La propriété '{0}' du type '{1}' fait référence à un membre distinct, qui n'est pas accessible à partir du type '{2}'.", - "Property_0_is_declared_but_its_value_is_never_read_6138": "La propriété '{0}' est déclarée mais sa valeur n'est jamais lue.", - "Property_0_is_incompatible_with_index_signature_2530": "La propriété '{0}' est incompatible avec la signature d'index.", - "Property_0_is_missing_in_type_1_2324": "La propriété '{0}' est manquante dans le type '{1}'.", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "La propriété '{0}' est absente du type '{1}' mais obligatoire dans le type '{2}'.", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "La propriété '{0}' n'est pas accessible en dehors de la classe '{1}', car elle a un identificateur privé.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "La propriété '{0}' est facultative dans le type '{1}', mais obligatoire dans le type '{2}'.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "La propriété '{0}' est privée et uniquement accessible dans la classe '{1}'.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "La propriété '{0}' est privée dans le type '{1}', mais pas dans le type '{2}'.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "La propriété '{0}' est protégée et uniquement accessible via une instance de la classe '{1}'. Ceci est une instance de la classe '{2}'.", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "La propriété '{0}' est protégée et uniquement accessible dans la classe '{1}' et ses sous-classes.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "La propriété '{0}' est protégée, mais le type '{1}' n'est pas une classe dérivée de '{2}'.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "La propriété '{0}' est protégée dans le type '{1}', mais publique dans le type '{2}'.", - "Property_0_is_used_before_being_assigned_2565": "La propriété '{0}' est utilisée avant d'être assignée.", - "Property_0_is_used_before_its_initialization_2729": "La propriété '{0}' est utilisée avant son initialisation.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La propriété «{0}» n'existe pas sur le type «{1}». Est-ce qu'il ne s'agit pas plutôt de «{2}»?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Impossible d'assigner la propriété '{0}' de l'attribut spread JSX à la propriété cible.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La propriété '{0}' de l'expression de classe exportée ne peut pas être privée ou protégée.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La propriété '{0}' de l'interface exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La propriété '{0}' de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La propriété « {0} » de type « {1} » ne peut pas être attribuée au type d’index « {2} », « {3} ».", - "Property_0_was_also_declared_here_2733": "La propriété '{0}' a également été déclarée ici.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La propriété '{0}' va remplacer la propriété de base dans '{1}'. Si cela est intentionnel, ajoutez un initialiseur. Sinon, ajoutez un modificateur 'declare', ou supprimez la déclaration redondante.", - "Property_assignment_expected_1136": "Assignation de propriété attendue.", - "Property_destructuring_pattern_expected_1180": "Modèle de déstructuration de propriété attendu.", - "Property_or_signature_expected_1131": "Propriété ou signature attendue.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "La valeur de la propriété peut être uniquement un littéral de chaîne, un littéral numérique, 'true', 'false', 'null', un littéral d'objet ou un littéral de tableau.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Fournissez une prise en charge complète des éléments pouvant faire l'objet d'une itération dans 'for-of', de l'opérateur spread et de la déstructuration durant le ciblage d''ES5' ou 'ES3'.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module externe {2} mais ne peut pas être nommée.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module privé '{2}'.", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom privé '{1}'.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "La propriété publique '{0}' de la classe exportée possède ou utilise le nom '{1}' du module externe {2}, mais elle ne peut pas être nommée.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "La propriété publique '{0}' de la classe exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "La propriété publique '{0}' de la classe exportée possède ou utilise le type privé '{1}'.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "La méthode statique publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module externe {2} mais ne peut pas être nommée.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "La méthode statique publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module privé '{2}'.", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "La méthode statique publique '{0}' de la classe exportée comporte ou utilise le nom privé '{1}'.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "La propriété statique publique '{0}' de la classe exportée possède ou utilise le nom '{1}' du module externe {2}, mais elle ne peut pas être nommée.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "La propriété statique publique '{0}' de la classe exportée possède ou utilise le nom '{1}' du module privé '{2}'.", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "La propriété statique publique '{0}' de la classe exportée possède ou utilise le type privé '{1}'.", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "Le nom qualifié '{0}' n'est pas autorisé si '@param {object} {1}' n'est pas placé au début.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Déclencher une erreur quand un paramètre de fonction n’est pas lu.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Lever une erreur sur les expressions et les déclarations ayant un type 'any' implicite.", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Déclenche une erreur sur les expressions 'this' avec un type 'any' implicite.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "La réexportation d'un type quand l'indicateur '--isolatedModules' est spécifié nécessite l'utilisation de 'export type'.", - "Redirect_output_structure_to_the_directory_6006": "Rediriger la structure de sortie vers le répertoire.", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Réduisez le nombre de projets chargés automatiquement par TypeScript.", - "Referenced_project_0_may_not_disable_emit_6310": "Le projet référencé '{0}' ne doit pas désactiver l'émission.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Le projet référencé '{0}' doit avoir le paramètre \"composite\" avec la valeur true.", - "Referenced_via_0_from_file_1_1400": "Référencé(e) via '{0}' à partir du fichier '{1}'", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Les chemins d’importation relatifs nécessitent des extensions de fichier explicites dans les importations EcmaScript quand '--moduleResolution' est 'node16' ou 'nodenext'. Envisagez d’ajouter une extension au chemin d’importation.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Les chemins d’importation relatifs ont besoin d’extensions de fichier explicites dans les importations EcmaScript quand '--moduleResolution' est 'node16' ou 'nodenext'. Voulez-vous dire «{0}» ?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "Supprimez une liste de répertoires du processus d’observation.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Supprimez une liste de fichiers du traitement du mode espion.", - "Remove_all_unnecessary_override_modifiers_95163": "Supprimer tous les modificateurs 'override' inutiles", - "Remove_all_unnecessary_uses_of_await_95087": "Supprimer toutes les utilisations non nécessaires de 'await'", - "Remove_all_unreachable_code_95051": "Supprimer tout le code inaccessible", - "Remove_all_unused_labels_95054": "Supprimer toutes les étiquettes inutilisées", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "Supprimer les accolades de tous les corps de fonction arrow présentant des problèmes pertinents", - "Remove_braces_from_arrow_function_95060": "Supprimer les accolades de la fonction arrow", - "Remove_braces_from_arrow_function_body_95112": "Supprimer les accolades du corps de fonction arrow", - "Remove_import_from_0_90005": "Supprimer l'importation de '{0}'", - "Remove_override_modifier_95161": "Supprimer un modificateur 'override'", - "Remove_parentheses_95126": "Supprimer les parenthèses", - "Remove_template_tag_90011": "Supprimer la balise template", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Supprimez la limite de 20 Mo sur la taille totale du code source pour les fichiers JavaScript dans le serveur de langage TypeScript.", - "Remove_type_from_import_declaration_from_0_90055": "Supprimer 'type' de la déclaration d’importation de « {0} »", - "Remove_type_from_import_of_0_from_1_90056": "Supprimer 'type' de l’importation de « {0} » de «{1}»", - "Remove_type_parameters_90012": "Supprimer les paramètres de type", - "Remove_unnecessary_await_95086": "Supprimer toute utilisation non nécessaire de 'await'", - "Remove_unreachable_code_95050": "Supprimer le code inaccessible", - "Remove_unused_declaration_for_Colon_0_90004": "Supprimer la déclaration inutilisée pour : '{0}'", - "Remove_unused_declarations_for_Colon_0_90041": "Supprimer les déclarations inutilisées pour '{0}'", - "Remove_unused_destructuring_declaration_90039": "Supprimer la déclaration de déstructuration inutilisée", - "Remove_unused_label_95053": "Supprimer l'étiquette inutilisée", - "Remove_variable_statement_90010": "Supprimer l'instruction de variable", - "Rename_param_tag_name_0_to_1_95173": "Renommez le nom de balise '@param' '{0}' en '{1}'", - "Replace_0_with_Promise_1_90036": "Remplacer '{0}' par 'Promise<{1}>'", - "Replace_all_unused_infer_with_unknown_90031": "Remplacer tous les 'infer' inutilisés par 'unknown'", - "Replace_import_with_0_95015": "Remplacez l'importation par '{0}'.", - "Replace_infer_0_with_unknown_90030": "Remplacer 'infer {0}' par 'unknown'", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "Signalez une erreur quand les chemins du code de la fonction ne retournent pas tous une valeur.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "Signalez les erreurs pour les case avec fallthrough dans une instruction switch.", - "Report_errors_in_js_files_8019": "Signalez les erreurs dans les fichiers .js.", - "Report_errors_on_unused_locals_6134": "Signaler les erreurs sur les variables locales inutilisées.", - "Report_errors_on_unused_parameters_6135": "Signaler les erreurs sur les paramètres inutilisés.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Les propriétés non déclarées sont imposées à partir des signatures d'index pour permettre l'utilisation des accès aux éléments.", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Les paramètres de type obligatoires ne peuvent pas être placés à la suite des paramètres de type optionnels.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La résolution du module '{0}' a été trouvée dans le cache à l'emplacement '{1}'.", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La résolution de la directive de référence de type '{0}' a été trouvée dans le cache à l'emplacement '{1}'.", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Résoudre 'keyof' en noms de propriétés de valeur chaîne uniquement (aucun nombre ou symbole).", - "Resolving_in_0_mode_with_conditions_1_6402": "Résolution en mode {0} avec des conditions {1}.", - "Resolving_module_0_from_1_6086": "======== Résolution du module '{0}' à partir de '{1}'. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Résolution du nom de module '{0}' par rapport à l'URL de base '{1}' - '{2}'.", - "Resolving_real_path_for_0_result_1_6130": "Résolution du chemin réel pour '{0}', résultat '{1}'.", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== Résolution de la directive de référence de type '{0}', fichier conteneur '{1}'. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== Résolution de la directive de référence de type '{0}', fichier conteneur '{1}', répertoire racine '{2}'. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Résolution de la directive de référence de type '{0}', fichier conteneur '{1}', répertoire racine non défini. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Résolution de la directive de référence de type '{0}', fichier conteneur non défini, répertoire racine '{1}'. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Résolution de la directive de référence de type '{0}', fichier conteneur non défini, répertoire racine non défini. ========", - "Resolving_with_primary_search_path_0_6121": "Résolution à l'aide du chemin de recherche primaire '{0}'.", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Le paramètre rest '{0}' possède implicitement un type 'any[]'.", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Le paramètre Rest '{0}' a implicitement un type 'any[]', mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "Rest_types_may_only_be_created_from_object_types_2700": "Vous ne pouvez créer des types Rest qu'à partir de types d'objet.", - "Return_type_annotation_circularly_references_itself_2577": "L'annotation de type de retour se référence de manière circulaire.", - "Return_type_must_be_inferred_from_a_function_95149": "Le type de retour doit être déduit d'une fonction", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "Le type de retour de la signature d'appel de l'interface exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "Le type de retour de la signature d'appel de l'interface exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "Le type de retour de la signature de constructeur de l'interface exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "Le type de retour de la signature de constructeur de l'interface exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "Le type de retour de la signature de constructeur doit pouvoir être assigné au type d'instance de la classe.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "Le type de retour de la fonction exportée possède ou utilise le nom '{0}' du module externe {1}, mais il ne peut pas être nommé.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "Le type de retour de la fonction exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "Le type de retour de la fonction exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "Le type de retour de la signature d'index de l'interface exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "Le type de retour de la signature d'index de l'interface exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "Le type de retour de la méthode de l'interface exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "Le type de retour de la méthode de l'interface exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom privé '{1}'.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "Le type de retour de la méthode publique de la classe exportée possède ou utilise le nom '{0}' du module externe {1}, mais il ne peut pas être nommé.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "Le type de retour de la méthode publique de la classe exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "Le type de retour de la méthode publique de la classe exportée possède ou utilise le nom privé '{0}'.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module externe {2}, mais il ne peut pas être nommé.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "Le type de retour du getter public '{0}' de la classe exportée porte ou utilise le nom privé '{1}'.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "Le type de retour de la méthode statique publique de la classe exportée possède ou utilise le nom '{0}' du module externe {1}, mais il ne peut pas être nommé.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "Le type de retour de la méthode statique publique de la classe exportée possède ou utilise le nom '{0}' du module privé '{1}'.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "Le type de retour de la méthode statique publique de la classe exportée possède ou utilise le nom privé '{0}'.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "En réutilisant la résolution du module « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur n’a pas été résolue.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "En réutilisant la résolution du module « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur a été résolue dans « {3} ».", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "En réutilisant la résolution du module « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur a été résolue dans « {3} » avec l’ID de package « {4} ».", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "En réutilisant la résolution du module « {0} » à partir de « {1} » de l’ancien programme, l’erreur n’a pas été résolue.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "En réutilisant la résolution du module « {0} » à partir de « {1} » de l’ancien programme, l’erreur a été résolue dans « {2} ».", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "En réutilisant la résolution du module « {0} » à partir de « {1} » de l’ancien programme, l’erreur a été résolue dans « {2} avec l’ID de package « {3} ».", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur n’a pas été résolue.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur a été résolue dans « {3} ».", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » trouvée dans le cache de l’emplacement « {2} », l’erreur a été résolue dans « {3} » avec l’ID de package « {4} ».", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » de l’ancien programme, l’erreur n’a pas été résolue.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » de l’ancien programme, l’erreur a été résolue dans « {2} ».", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » de l’ancien programme, l’erreur a été résolue dans « {2} » avec l’ID de package « {3} ».", - "Rewrite_all_as_indexed_access_types_95034": "Réécrire tout comme types d'accès indexés", - "Rewrite_as_the_indexed_access_type_0_90026": "Réécrire en tant que type d'accès indexé '{0}'", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Impossible de déterminer le répertoire racine, chemins de recherche primaires ignorés.", - "Root_file_specified_for_compilation_1427": "Fichier racine spécifié pour la compilation", - "STRATEGY_6039": "STRATÉGIE", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Enregistrez les fichiers .tsbuildinfo pour permettre la compilation incrémentielle des projets.", - "Saw_non_matching_condition_0_6405": "Condition non correspondante '{0}' visible.", - "Scoped_package_detected_looking_in_0_6182": "Package de portée détecté. Recherche dans '{0}'", - "Selection_is_not_a_valid_statement_or_statements_95155": "La sélection ne correspond pas à une ou des instructions valides", - "Selection_is_not_a_valid_type_node_95133": "La sélection n'est pas un nœud de type valide", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Définissez la version du langage JavaScript pour JavaScript émis et incluez des déclarations de bibliothèque compatibles.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "Définissez la langue de la messagerie à partir de TypeScript. Cela n’affecte pas l’émission.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "Affecter à l'option 'module' de votre fichier config la valeur '{0}'", - "Set_the_newline_character_for_emitting_files_6659": "Définissez le caractère de nouvelle ligne pour l’émission de fichiers.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "Affecter à l'option 'target' de votre fichier config la valeur '{0}'", - "Setters_cannot_return_a_value_2408": "Les méthodes setter ne peuvent pas retourner de valeur.", - "Show_all_compiler_options_6169": "Affichez toutes les options du compilateur.", - "Show_diagnostic_information_6149": "Affichez les informations de diagnostic.", - "Show_verbose_diagnostic_information_6150": "Affichez les informations de diagnostic détaillées.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Montrer ce qui serait généré (ou supprimé si '--clean' est spécifié)", - "Signature_0_must_be_a_type_predicate_1224": "La signature '{0}' doit être un prédicat de type.", - "Skip_type_checking_all_d_ts_files_6693": "Ignorer la vérification de type dans tous les fichiers .d.ts.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Ignorer la vérification de type des fichiers .d.ts inclus dans TypeScript.", - "Skip_type_checking_of_declaration_files_6012": "Ignorer le contrôle de type des fichiers de déclaration.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Ignorer la génération du projet '{0}' car sa dépendance '{1}' comporte des erreurs", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Ignorer la build du projet '{0}', car sa dépendance '{1}' n'a pas été générée", - "Source_from_referenced_project_0_included_because_1_specified_1414": "Source du projet référencé '{0}' incluse, car '{1}' est spécifié", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Source du projet référencé '{0}' incluse, car '--module' est spécifié en tant que 'none'", - "Source_has_0_element_s_but_target_allows_only_1_2619": "La source a {0} élément(s) mais la cible n'en autorise que {1}.", - "Source_has_0_element_s_but_target_requires_1_2618": "La source a {0} élément(s) mais la cible en nécessite {1}.", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "La source ne fournit aucune correspondance pour l'élément obligatoire situé à la position {0} dans la cible.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "La source ne fournit aucune correspondance pour l'élément variadique situé à la position {0} dans la cible.", - "Specify_ECMAScript_target_version_6015": "Spécifiez la version cible ECMAScript.", - "Specify_JSX_code_generation_6080": "Spécifiez la génération de code JSX.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "Spécifiez un fichier qui regroupe toutes les sorties dans un fichier JavaScript. Si « declaration » a la valeur true, désigne également un fichier qui regroupe toutes les sorties .d.ts.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "Spécifiez une liste de modèles glob qui correspondent aux fichiers à inclure dans la compilation.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "Spécifiez une liste de plug-ins de service de langage à ajouter.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "Spécifiez un ensemble de fichiers de déclaration de bibliothèque groupée qui décrivent l’environnement d’exécution cible.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "Spécifiez un ensemble d’entrées qui re-mappent les importations à d’autres emplacements de recherche.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "Spécifiez un tableau d’objets qui spécifient les chemins d’accès pour les projets. Utilisé dans les références de projet.", - "Specify_an_output_folder_for_all_emitted_files_6678": "Spécifiez un dossier de sortie pour tous les fichiers émis.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "Spécifier le comportement d'émission/de vérification des importations utilisées uniquement pour les types.", - "Specify_file_to_store_incremental_compilation_information_6380": "Spécifier le fichier de stockage des informations de compilation incrémentielle", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "Spécifiez comment TypeScript recherche un fichier à partir d’un spécificateur de module donné.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "Spécifiez la façon dont les répertoires sont surveillés sur les systèmes qui ne disposent pas de fonctionnalités récursives de surveillance des fichiers.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "Spécifiez le fonctionnement du mode espion TypeScript.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "Spécifiez les fichiers bibliothèques à inclure dans la compilation.", - "Specify_module_code_generation_6016": "Spécifier la génération de code de module.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Spécifiez la stratégie de résolution de module : 'node' (Node.js) ou 'classic' (version de TypeScript antérieure à 1.6).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Spécifiez le spécificateur de module utilisé pour importer les fonctions de fabrique JSX lors de l’utilisation de « jsx: react-jsx* ».", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Spécifiez plusieurs dossiers qui agissent comme « ./node_modules/@types ».", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Spécifiez une ou plusieurs références de module de chemin d’accès ou de nœud aux fichiers de configuration de base dont les paramètres sont hérités.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "Spécifiez les options d’acquisition automatique des fichiers de déclaration.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "Spécifiez la stratégie en cas d'échec de la création d'une surveillance de l'interrogation à l'aide des événements liés au système de fichiers : 'FixedInterval' (par défaut), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "Spécifiez la stratégie de surveillance des répertoires sur les plateformes qui ne prennent pas en charge la surveillance récursive en mode natif : 'UseFsEvents' (par défaut), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "Spécifiez la stratégie de surveillance des fichiers : 'FixedPollingInterval' (par défaut), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "Spécifiez la référence de fragment JSX utilisée pour les fragments lors du ciblage de l’émission de réaction JSX par exemple « React.Fragment » ou « Fragment ».", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "Spécifiez la fonction de fabrique JSX à utiliser pour le ciblage d'une émission JSX 'react', par exemple 'React.createElement' ou 'h'.", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "Spécifiez la fonction de fabrique JSX à utiliser pour le ciblage d'une émission JSX « react », par exemple « React.createElement » ou « h ».", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Spécifiez la fonction de fabrique de fragments JSX à utiliser durant le ciblage de l'émission JSX 'react' avec l'option de compilateur 'jsxFactory', par exemple 'Fragment'.", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Spécifiez le répertoire de base pour résoudre les noms de modules non relatifs.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Spécifiez la séquence de fin de ligne à utiliser durant l'émission des fichiers : 'CRLF' (Dos) ou 'LF' (Unix).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Spécifiez l'emplacement dans lequel le débogueur doit localiser les fichiers TypeScript au lieu des emplacements sources.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Spécifiez l'emplacement dans lequel le débogueur doit localiser les fichiers de mappage au lieu des emplacements générés.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Spécifiez la profondeur maximale de dossier utilisée pour la vérification des fichiers JavaScript à partir de « node_modules ». Applicable uniquement à l’aide de « allowJs ».", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Spécifiez le spécificateur de module à utiliser pour importer les fonctions de fabrique 'jsx' et 'jsxs' à partir de react, par exemple", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Spécifiez l’objet appelé pour « createElement ». Ceci s’applique uniquement quand le ciblage de l’émission de JSX « react » est actif.", - "Specify_the_output_directory_for_generated_declaration_files_6613": "Spécifiez le répertoire de sortie pour les fichiers de déclaration générés.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Spécifiez le chemin d’accès au fichier de compilation incrémentielle .incrémentielle .", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Spécifiez le répertoire racine des fichiers d'entrée. Contrôlez la structure des répertoires de sortie avec --outDir.", - "Specify_the_root_folder_within_your_source_files_6690": "Spécifiez le dossier racine dans vos fichiers sources.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Spécifiez le chemin d’accès racine des débogueurs pour trouver le code source de référence.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "Spécifiez les noms de packages de types à inclure sans être référencés dans un fichier source.", - "Specify_what_JSX_code_is_generated_6646": "Spécifiez le code JSX généré.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "Spécifiez l’approche que l’observateur doit utiliser si le système manque d’observateurs de fichiers natifs.", - "Specify_what_module_code_is_generated_6657": "Spécifiez le code de module généré.", - "Split_all_invalid_type_only_imports_1367": "Diviser toutes les importations de type uniquement non valides", - "Split_into_two_separate_import_declarations_1366": "Diviser en deux déclarations import distinctes", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "L'opérateur spread dans les expressions 'new' est disponible uniquement quand ECMAScript 5 ou version supérieure est ciblé.", - "Spread_types_may_only_be_created_from_object_types_2698": "Vous ne pouvez créer des types Spread qu'à partir de types d'objet.", - "Starting_compilation_in_watch_mode_6031": "Démarrage de la compilation en mode espion...", - "Statement_expected_1129": "Instruction attendue.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "Les instructions ne sont pas autorisées dans les contextes ambiants.", - "Static_members_cannot_reference_class_type_parameters_2302": "Les membres statiques ne peuvent pas référencer des paramètres de type de classe.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La propriété statique '{0}' est en conflit avec la propriété intégrée 'Function.{0}' de la fonction constructeur '{1}'.", - "String_literal_expected_1141": "Littéral de chaîne attendu.", - "String_literal_with_double_quotes_expected_1327": "Littéral de chaîne avec guillemets doubles attendu.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Stylisez les erreurs et les messages avec de la couleur et du contexte (expérimental).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Les prochaines déclarations de propriétés doivent avoir le même type. La propriété '{0}' doit avoir le type '{1}', mais elle a ici le type '{2}'.", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Les déclarations de variable ultérieures doivent avoir le même type. La variable '{0}' doit être de type '{1}', mais elle a ici le type '{2}'.", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Le type de la substitution '{0}' du modèle '{1}' est incorrect. Attente de 'string'. Obtention de '{2}'.", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "La substitution '{0}' dans le modèle '{1}' ne peut avoir qu'un seul caractère '*' au maximum.", - "Substitutions_for_pattern_0_should_be_an_array_5063": "Les substitutions du modèle '{0}' doivent correspondre à un tableau.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "Les substitutions du modèle '{0}' ne doivent pas correspondre à un tableau vide.", - "Successfully_created_a_tsconfig_json_file_6071": "Un fichier tsconfig.json a été créé.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "Les appels de 'super' ne sont pas autorisés hors des constructeurs ou dans des fonctions imbriquées dans des constructeurs.", - "Suppress_excess_property_checks_for_object_literals_6072": "Supprimez les vérifications des propriétés en trop pour les littéraux d'objet.", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "Supprimer les erreurs noImplicitAny pour les objets d'indexation auxquels il manque des signatures d'index.", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "Supprimez les erreurs « noImplicitAny » lors de l’indexation d’objets qui n’ont pas de signatures d’index.", - "Switch_each_misused_0_to_1_95138": "Remplacer chaque utilisation incorrecte de '{0}' par '{1}'", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "Appelez les rappels de façon synchrone, et mettez à jour l'état des observateurs de répertoire sur les plateformes qui ne prennent pas en charge la surveillance récursive en mode natif.", - "Syntax_Colon_0_6023": "Syntaxe : {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "La balise '{0}' attend au moins '{1}' arguments, mais la fabrique JSX '{2}' en fournit au maximum '{3}'.", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Les expressions de modèle étiquetées ne sont pas autorisées dans une chaîne facultative.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "La cible autorise uniquement {0} élément(s) mais la source peut en avoir plus.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "La cible nécessite {0} élément(s) mais la source peut en avoir moins.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Le modificateur '{0}' peut uniquement être utilisé dans les fichiers TypeScript.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Impossible d'appliquer l'opérateur '{0}' au type 'symbol'.", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "L'opérateur '{0}' n'est pas autorisé pour les types booléens. Utilisez '{1}' à la place.", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La propriété '{0}' d'un itérateur asynchrone doit être une méthode.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "La propriété '{0}' d'un itérateur doit être une méthode.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Le type 'Object' peut être assigné à très peu d'autres types. Souhaitez-vous utiliser le type 'any' à la place ?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Impossible de référencer l'objet 'arguments' dans une fonction arrow dans ES3 et ES5. Utilisez plutôt une expression de fonction standard.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Les objets 'arguments' ne peuvent pas être référencés dans une fonction ou méthode async en ES3 et ES5. Utilisez une fonction ou méthode standard.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Le corps d'une instruction 'if' ne peut pas être l'instruction vide.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "L'appel aurait pu réussir sur cette implémentation, mais les signatures de surcharges de l'implémentation ne sont pas visibles en externe.", - "The_character_set_of_the_input_files_6163": "Jeu de caractères des fichiers d'entrée.", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "La fonction arrow conteneur capture la valeur globale de 'this'.", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "Le corps de la fonction ou du module conteneur est trop grand pour l'analyse du flux de contrôle.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "Le fichier actuel est un module CommonJS et ne peut pas utiliser 'await' au niveau supérieur.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "Le fichier actuel est un module CommonJS dont les importations produiront des appels 'require' ; cependant, le fichier référencé est un module ECMAScript et ne peut pas être importé avec 'require'. Envisagez d'écrire un appel dynamique 'import(\"{0}\")' à la place.", - "The_current_host_does_not_support_the_0_option_5001": "L'hôte actuel ne prend pas en charge l'option '{0}'.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "La déclaration de '{0}' que vous aviez probablement l'intention d'utiliser est définie ici", - "The_declaration_was_marked_as_deprecated_here_2798": "La déclaration a été marquée ici comme étant dépréciée.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "Le type attendu provient de la propriété '{0}', qui est déclarée ici sur le type '{1}'", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "Le type attendu provient du type de retour de cette signature.", - "The_expected_type_comes_from_this_index_signature_6501": "Le type attendu provient de cette signature d'index.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "L'expression d'une assignation d'exportation doit être un identificateur ou un nom qualifié dans un contexte ambiant.", - "The_file_is_in_the_program_because_Colon_1430": "Le fichier est dans le programme pour la ou les raisons suivantes :", - "The_files_list_in_config_file_0_is_empty_18002": "La liste 'files' du fichier config '{0}' est vide.", - "The_first_export_default_is_here_2752": "La première valeur par défaut d'exportation se trouve ici.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Le premier paramètre de la méthode 'then' d'une promesse doit être un rappel.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Le type global 'JSX.{0}' ne peut pas avoir plusieurs propriétés.", - "The_implementation_signature_is_declared_here_2750": "La signature d'implémentation est déclarée ici.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "La métapropriété « import.meta » n’est pas autorisée dans les fichiers qui seront intégrés dans la sortie CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La méta-propriété 'import.meta' est autorisée uniquement lorsque l’option '--module' est 'es2020', 'es2022', 'esnext', 'system', 'node16' ou 'nodenext'.", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Le type déduit de '{0}' ne peut pas être nommé sans référence à '{1}'. Cela n'est probablement pas portable. Une annotation de type est nécessaire.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Le type déduit de '{0}' référence un type avec une structure cyclique qui ne peut pas être sérialisée de manière triviale. Une annotation de type est nécessaire.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Le type déduit de '{0}' référence un type '{1}' inaccessible. Une annotation de type est nécessaire.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Le type déduit de ce nœud dépasse la longueur maximale que le compilateur va sérialiser. Une annotation de type explicite est nécessaire.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "L'intersection '{0}' a été réduite à 'never', car la propriété '{1}' existe dans plusieurs constituants et est privée dans certains d'entre eux.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "L'intersection '{0}' a été réduite à 'never', car la propriété '{1}' a des types en conflit dans certains constituants.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Le mot clé 'intrinsic' peut uniquement être utilisé pour déclarer les types intrinsèques fournis par le compilateur.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "L'option de compilateur 'jsxFragmentFactory' doit être fournie pour permettre l'utilisation des fragments JSX avec l'option de compilateur 'jsxFactory'.", - "The_last_overload_gave_the_following_error_2770": "La dernière surcharge a généré l'erreur suivante.", - "The_last_overload_is_declared_here_2771": "La dernière surcharge est déclarée ici.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La partie gauche d'une instruction 'for...in' ne peut pas être un modèle de déstructuration.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "La partie gauche d'une instruction 'for...in' ne peut pas utiliser d'annotation de type.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La partie gauche d'une instruction 'for...in' ne doit pas être un accès à une propriété facultative.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La partie gauche d'une instruction 'for...in' doit être un accès à une variable ou une propriété.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "La partie gauche d'une instruction 'for...in' doit être de type 'string' ou 'any'.", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "La partie gauche d'une instruction 'for...of' ne peut pas utiliser d'annotation de type.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "La partie gauche d'une instruction 'for...of' ne doit pas être un accès à une propriété facultative.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "Il est possible que le côté gauche d’une instruction « for...of » ne soit pas « async ».", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "La partie gauche d'une instruction 'for...of' doit être un accès à une variable ou une propriété.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La partie gauche d'une opération arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La partie gauche d'une expression d'assignation ne doit pas être un accès à une propriété facultative.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La partie gauche d'une expression d'assignation doit être un accès à une variable ou une propriété.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La partie gauche d'une expression 'instanceof' doit être de type 'any', un type d'objet ou un paramètre de type.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Paramètres régionaux utilisés pour afficher les messages à l'utilisateur (exemple : 'fr-fr')", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Profondeur de dépendance maximale pour la recherche sous node_modules et le chargement de fichiers JavaScript.", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "L'opérande d'un opérateur 'delete' ne peut pas être un identificateur privé.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "L'opérande d'un opérateur 'delete' ne peut pas être une propriété en lecture seule.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "L'opérande d'un opérateur 'delete' doit être une référence de propriété.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "L'opérande d'un opérateur 'delete' doit être facultatif.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "L'opérande d'un opérateur d'incrémentation ou de décrémentation ne doit pas être un accès à une propriété facultative.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "L'opérande d'un opérateur d'incrémentation ou de décrémentation doit être un accès à une variable ou une propriété.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "L'analyseur s'attendait à trouver '{1}' pour correspondre au jeton '{0}' ici.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La racine du projet est ambiguë, mais elle est nécessaire pour résoudre l’entrée de carte d’exportation '{0}' dans le fichier '{1}'. Fournissez l’option de compilateur « rootDir » pour lever l’ambiguïté.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La racine du projet est ambiguë, mais elle est nécessaire pour résoudre l’entrée de carte d’importation «{0}» dans le fichier «{1}». Fournissez l’option de compilateur « rootDir » pour lever l’ambiguïté.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "La propriété '{0}' n'est pas accessible sur le type '{1}' dans cette classe, car elle est mise en mémoire fantôme par un autre identificateur privé ayant la même orthographe.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Le type de retour d'un accesseur 'get' doit être assignable à son type d'accesseur 'set'", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Le type de retour d'une fonction d'élément décoratif de paramètre doit être 'void' ou 'any'.", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Le type de retour d'une fonction d'élément décoratif de propriété doit être 'void' ou 'any'.", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Le type de retour d'une fonction asynchrone doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Le type de retour d'une fonction ou d'une méthode asynchrone doit être le type global Promise. Vouliez-vous vraiment écrire 'Promise<{0}>' ?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La partie droite d'une instruction 'for...in' doit être de type 'any', un type d'objet ou un paramètre de type, mais elle a le type '{0}' ici.", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La partie droite d'une opération arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La partie droite d'une expression 'instanceof' doit être de type 'any' ou d'un type pouvant être assigné au type d'interface 'Function'.", - "The_root_value_of_a_0_file_must_be_an_object_5092": "La valeur racine d'un fichier '{0}' doit être un objet.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "La déclaration avec mise en mémoire fantôme de '{0}' est définie ici", - "The_signature_0_of_1_is_deprecated_6387": "La signature '{0}' de '{1}' est dépréciée.", - "The_specified_path_does_not_exist_Colon_0_5058": "Le chemin spécifié n'existe pas : '{0}'.", - "The_tag_was_first_specified_here_8034": "La balise a d'abord été spécifiée ici.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "La cible d'une assignation rest d'objet ne doit pas être un accès à une propriété facultative.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "La cible de l'assignation du reste d'un objet doit être un accès à une variable ou une propriété.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "Le contexte 'this' de type '{0}' n'est pas assignable au contexte 'this' de type '{1}' de la méthode.", - "The_this_types_of_each_signature_are_incompatible_2685": "Les types 'this' de chaque signature sont incompatibles.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "Le type '{0}' est 'readonly' et ne peut pas être assigné au type modifiable '{1}'.", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Le ’type’ de modificateur ne peut pas être utilisé sur une importation nommée quand le ’type’ d’exportation est utilisé dans son instruction import.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Le ’type’ de modificateur ne peut pas être utilisé sur une importation nommée quand le ’type’ d’importation est utilisé dans son instruction import.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Le type d'une déclaration de fonction doit correspondre à la signature de la fonction.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Le type de cette expression ne peut pas être nommé sans une assertion de « mode résolution », qui est une fonctionnalité instable. Utilisez TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour avec « npm install -D typescript@next ».", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Impossible de sérialiser le type de ce nœud, car sa propriété «{0}» ne peut pas être sérialisée.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Le type retourné par la méthode '{0}()' d'un itérateur asynchrone doit être une promesse pour un type ayant une propriété 'value'.", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Le type retourné par la méthode '{0}()' d'un itérateur doit avoir une propriété 'value'.", - "The_types_of_0_are_incompatible_between_these_types_2200": "Les types de '{0}' sont incompatibles entre eux.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "Les types retournés par '{0}' sont incompatibles entre eux.", - "The_value_0_cannot_be_used_here_18050": "La valeur '{0}' ne peut pas être utilisée ici.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La déclaration de variable d'une instruction 'for...in' ne peut pas avoir d'initialiseur.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La déclaration de variable d'une instruction 'for...of' ne peut pas avoir d'initialiseur.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'instruction 'with' n'est pas prise en charge. Tous les symboles d'un bloc 'with' ont le type 'any'.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "La propriété '{0}' de cette balise JSX attend un seul enfant de type '{1}', mais plusieurs enfants ont été fournis.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "La propriété '{0}' de cette balise JSX attend le type '{1}', qui nécessite plusieurs enfants, mais un seul enfant a été fourni.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Cette comparaison semble involontaire, car les types '{0}' et '{1}' n’ont pas de chevauchement.", - "This_condition_will_always_return_0_2845": "Cette condition retourne toujours '{0}'.", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Cette condition retourne toujours '{0}', car JavaScript compare les objets par référence, et non par valeur.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Cette condition retourne toujours true, car cette « {0} » est toujours définie.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Cette condition retourne toujours true, car cette fonction est toujours définie. Est-ce que vous avez voulu l'appeler à la place ?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Cette fonction constructeur peut être convertie en déclaration de classe.", - "This_expression_is_not_callable_2349": "Impossible d'appeler cette expression.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Impossible d'appeler cette expression, car il s'agit d'un accesseur 'get'. Voulez-vous vraiment l'utiliser sans '()' ?", - "This_expression_is_not_constructable_2351": "Impossible de construire cette expression.", - "This_file_already_has_a_default_export_95130": "Ce fichier a déjà une exportation par défaut", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Cette importation n'est jamais utilisée en tant que valeur. Elle doit utiliser 'import type', car 'importsNotUsedAsValues' a la valeur 'error'.", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Ceci est la déclaration augmentée. Pensez à déplacer la déclaration d'augmentation dans le même fichier.", - "This_may_be_converted_to_an_async_function_80006": "Ceci peut être converti en fonction asynchrone.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise '@override' car il n'est pas déclaré dans la classe de base '{0}'.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise 'override' car il n'est pas déclaré dans la classe de base '{0}'. Vouliez-vous dire '{1}' ?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise '@override' car sa classe conteneur '{0}' n'étend pas une autre classe.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Ce membre ne peut pas avoir de modificateur 'override', car il n'est pas déclaré dans la classe de base '{0}'.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Ce membre ne peut pas avoir de modificateur 'override', car il n'est pas déclaré dans la classe de base '{0}'. Vouliez-vous dire '{1}'?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Ce membre ne peut pas avoir de modificateur 'override', car sa classe conteneur '{0}' n'étend pas une autre classe.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Ce membre doit avoir un commentaire JSDoc avec une balise '@override' car il remplace un membre de la classe de base '{0}'.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Ce membre doit avoir un modificateur 'override', car il se substitue à un membre de la classe de base '{0}'.", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Ce membre doit avoir un modificateur 'override', car il se substitue à une méthode abstraite déclarée dans la classe de base '{0}'.", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Vous pouvez référencer ce module uniquement avec les importations/exportations ECMAScript en activant l'indicateur '{0}' et en référençant son exportation par défaut.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Ce module est déclaré avec 'export =', et ne peut être utilisé qu’avec une importation par défaut lors de l’utilisation de l’indicateur '{0}'.", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Cette signature de surcharge n'est pas compatible avec sa signature d'implémentation.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Ce paramètre n'est pas autorisé avec la directive 'use strict'.", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Cette propriété de paramètre doit avoir un commentaire JSDoc avec une balise '@override' car elle remplace un membre dans la classe de base '{0}'.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Cette propriété de paramètre doit avoir un modificateur 'override', car il se substitue à un membre de la classe de base '{0}'.", - "This_spread_always_overwrites_this_property_2785": "Cette diffusion écrase toujours cette propriété.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Veuillez ajouter une virgule de fin ou une contrainte explicite.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Utilisez une expression « as »à la place.", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Cette syntaxe nécessite une application d'assistance importée, mais le module '{0}' est introuvable.", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Cette syntaxe nécessite une assistance importée nommée '{1}' mais qui n'existe pas dans '{0}'. Effectuez une mise à niveau de votre version de '{0}'.", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Cette syntaxe nécessite un composant d'assistance importé nommé '{1}' avec {2} paramètres, ce qui n'est pas compatible avec celui qui se trouve dans '{0}'. Effectuez une mise à niveau de votre version de '{0}'.", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "Ce paramètre de type nécessite peut-être une contrainte « extends {0}».", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Cette utilisation de « import » n’est pas valide. Les appels « import() » peuvent être écrits, mais ils doivent avoir des parenthèses et ne peuvent pas avoir d’arguments de type.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "Pour convertir ce fichier en module ECMAScript, ajoutez le champ `\"type\" : \"module\"` à '{0}'.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Pour convertir ce fichier en module ECMAScript, changez son extension de fichier en '{0}', ou ajoutez le champ `\"type\" : \"module\"` à '{1}'.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Pour convertir ce fichier en module ECMAScript, changez son extension de fichier en '{0}' ou créez un fichier package.json local avec `{ \"type\": \"module\" }`.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Pour convertir ce fichier en module ECMAScript, créez un fichier package.json local avec `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Les expressions 'await' de niveau supérieur sont autorisées uniquement lorsque l’option 'module' a la valeur 'es2022', 'esnext', 'system', 'node16' ou 'nodenext' et que l’option 'target' a la valeur 'es2017' ou une valeur supérieure.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Les déclarations de niveau supérieur dans les fichiers .d.ts doivent commencer par un modificateur 'declare' ou 'export'.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Les boucles « for await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system », « node16 » ou « nodenext », et que l’option « target » a la valeur « es2017 » ou une version ultérieure.", - "Trailing_comma_not_allowed_1009": "Virgule de fin non autorisée.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpilez chaque fichier sous forme de module distinct (semblable à 'ts.transpileModule').", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Essayez 'npm i --save-dev @types/{1}' s'il existe, ou ajoutez un nouveau fichier de déclaration (.d.ts) contenant 'declare module '{0}';'", - "Trying_other_entries_in_rootDirs_6110": "Essai avec d'autres entrées dans 'rootDirs'.", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Essai avec la substitution '{0}', emplacement de module candidat : '{1}'.", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Les membres de tuples doivent tous avoir des noms ou ne pas en avoir.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Le type tuple '{0}' de longueur '{1}' n'a aucun élément à l'index '{2}'.", - "Tuple_type_arguments_circularly_reference_themselves_4110": "Les arguments de type tuple se référencent de manière circulaire.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Le type '{0}' peut être itéré uniquement à l'aide de l'indicateur '--downlevelIteration' ou avec un '--target' dont la valeur est 'es2015' ou une version ultérieure.", - "Type_0_cannot_be_used_as_an_index_type_2538": "Impossible d'utiliser le type '{0}' comme type d'index.", - "Type_0_cannot_be_used_to_index_type_1_2536": "Le type '{0}' ne peut pas être utilisé pour indexer le type '{1}'.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "Le type '{0}' ne satisfait pas la contrainte '{1}'.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "Le type '{0}' ne satisfait pas le type attendu '{1}'.", - "Type_0_has_no_call_signatures_2757": "Le type '{0}' n'a aucune signature d'appel.", - "Type_0_has_no_construct_signatures_2761": "Le type '{0}' n'a aucune signature de construction.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "Le type '{0}' n'a aucune signature d'index correspondant au type '{1}'.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "Le type '{0}' n'a aucune propriété en commun avec le type '{1}'.", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Le type '{0}' n’a aucune signature pour laquelle la liste d’arguments de type est applicable.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Le type '{0}' n'a pas les propriétés suivantes du type '{1}': {2}", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Le type '{0}' n'a pas les propriétés suivantes du type '{1}': {2} et de {3} autres.", - "Type_0_is_not_a_constructor_function_type_2507": "Le type '{0}' n'est pas un type de fonction constructeur.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Le type '{0}' n'est pas un type de retour de fonction async valide en ES5/ES3, car il ne référence pas une valeur de constructeur compatible avec une promesse.", - "Type_0_is_not_an_array_type_2461": "Le type '{0}' n'est pas un type de tableau.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "Le type '{0}' n'est pas un type de tableau ou un type de chaîne.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Le type '{0}' n'est pas un type tableau ou un type chaîne, ou n'a pas de méthode '[Symbol.iterator]()' qui retourne un itérateur.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "Le type '{0}' n'est pas un type tableau ou n'a pas de méthode '[Symbol.iterator]()' qui retourne un itérateur.", - "Type_0_is_not_assignable_to_type_1_2322": "Impossible d'assigner le type '{0}' au type '{1}'.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Le type '{0}' ne peut pas être attribué au type '{1}'. Voulez-vous dire '{2}'?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Impossible d'assigner le type '{0}' au type '{1}'. Il existe deux types distincts portant ce nom, mais ils ne sont pas liés.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Le type «{0}» n’est pas assignable au type «{1}» comme implicite par l’annotation de variance.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Le type '{0}' n'est pas assignable au type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' aux types des propriétés de la cible.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Le type '{0}' n'est pas assignable au type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' au type de la cible.", - "Type_0_is_not_comparable_to_type_1_2678": "Le type '{0}' n'est pas comparable au type '{1}'.", - "Type_0_is_not_generic_2315": "Le type '{0}' n'est pas générique.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Le type '{0}' peut représenter une valeur primitive, ce qui n’est pas autorisé en tant qu’opérande droit de l’opérateur 'in'.", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Le type '{0}' doit avoir une méthode '[Symbol.asyncIterator]()' qui retourne un itérateur asynchrone.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Le type '{0}' doit avoir une méthode '[Symbol.iterator]()' qui retourne un itérateur.", - "Type_0_provides_no_match_for_the_signature_1_2658": "Le type '{0}' ne fournit aucune correspondance pour la signature '{1}'.", - "Type_0_recursively_references_itself_as_a_base_type_2310": "Le type '{0}' fait référence à lui-même de manière récursive en tant que type de base.", - "Type_Checking_6248": "Vérification du type", - "Type_alias_0_circularly_references_itself_2456": "L'alias de type '{0}' fait référence à lui-même de manière circulaire.", - "Type_alias_must_be_given_a_name_1439": "Un nom doit être attribué à l’alias de type.", - "Type_alias_name_cannot_be_0_2457": "Le nom de l'alias de type ne peut pas être '{0}'.", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "Les alias de type peuvent uniquement être utilisés dans les fichiers TypeScript.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "Une annotation de type ne peut pas apparaître sur une déclaration de constructeur.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "Les annotations de type peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Type_argument_expected_1140": "Argument de type attendu.", - "Type_argument_list_cannot_be_empty_1099": "La liste des arguments de type ne peut pas être vide.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Les arguments de type peuvent uniquement être utilisés dans les fichiers TypeScript.", - "Type_arguments_cannot_be_used_here_1342": "Impossible d'utiliser des arguments de type ici.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "Les arguments de type pour '{0}' se référencent de manière circulaire.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Les expressions d'assertion de type peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Le type situé à la position {0} dans la source n'est pas compatible avec le type situé à la position {1} dans la cible.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Le type situé aux positions allant de {0} à {1} dans la source n'est pas compatible avec le type situé à la position {2} dans la cible.", - "Type_declaration_files_to_be_included_in_compilation_6124": "Fichiers de déclaration de type à inclure dans la compilation.", - "Type_expected_1110": "Type attendu.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Les assertions d’importation de type doivent avoir exactement une clé ( « mode résolution » ) avec la valeur « import » ou « require ».", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "L'instanciation de type est trop profonde et éventuellement infinie.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Le type est directement ou indirectement référencé dans le rappel d'exécution de sa propre méthode 'then'.", - "Type_library_referenced_via_0_from_file_1_1402": "Bibliothèque de types référencée via '{0}' à partir du fichier '{1}'", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "Bibliothèque de types référencée via '{0}' à partir du fichier '{1}' ayant le packageId '{2}'", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "Le type d'un opérande 'await' doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "Le type de la valeur de la propriété calculée est '{0}'. Il ne peut pas être assigné au type '{1}'.", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "Le type de variable membre d’instance '{0}' ne peut pas référencer l’identificateur '{1}' déclaré dans le constructeur.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Le type des éléments itérés d'un opérande 'yield*' doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Le type de la propriété '{0}' se référence de façon circulaire dans le type mappé '{1}'.", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Le type d'un opérande 'yield' dans un générateur asynchrone doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Le type provient de cette importation. Impossible d'appeler ou de construire une importation de style d'espace de noms, ce qui va entraîner un échec au moment de l'exécution. À la place, utilisez ici une importation par défaut ou une importation avec require.", - "Type_parameter_0_has_a_circular_constraint_2313": "Le paramètre de type '{0}' possède une contrainte circulaire.", - "Type_parameter_0_has_a_circular_default_2716": "Le paramètre de type '{0}' a une valeur par défaut circulaire.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "Le paramètre de type '{0}' de la signature d'appel de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "Le paramètre de type '{0}' de la signature de constructeur de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "Le paramètre de type '{0}' de la classe exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "Le paramètre de type '{0}' de la fonction exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "Le paramètre de type '{0}' de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "Le paramètre de type '{0}' du type d'objet mappé exporté utilise le nom privé '{1}'.", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "Le paramètre de type '{0}' de l'alias du type exporté contient ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "Le paramètre de type '{0}' de la méthode de l'interface exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "Le paramètre de type '{0}' de la méthode publique de la classe exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "Le paramètre de type '{0}' de la méthode statique publique de la classe exportée possède ou utilise le nom privé '{1}'.", - "Type_parameter_declaration_expected_1139": "Déclaration du paramètre de type attendue.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "Les déclarations de paramètre de type peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "Les valeurs par défaut des paramètres de type peuvent uniquement référencer des paramètres de type déclarés.", - "Type_parameter_list_cannot_be_empty_1098": "La liste des paramètres de type ne peut pas être vide.", - "Type_parameter_name_cannot_be_0_2368": "Le nom du paramètre de type ne peut pas être '{0}'.", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "Les paramètres de type ne peuvent pas apparaître sur une déclaration de constructeur.", - "Type_predicate_0_is_not_assignable_to_1_1226": "Impossible d'assigner le prédicat de type '{0}' à '{1}'.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "Le type produit un type de tuple trop grand pour être représenté.", - "Type_reference_directive_0_was_not_resolved_6120": "======== La directive de référence de type '{0}' n'a pas été résolue. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== La directive de référence de type '{0}' a été correctement résolue en '{1}', primaire : {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== La directive de référence de type '{0}' a été correctement résolue en '{1}' avec l'ID de package '{2}', primaire : {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "Les expressions de satisfaction de type peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "Les types ne peuvent pas apparaître dans les déclarations d’exportation dans les fichiers JavaScript.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "Les types ont des déclarations distinctes d'une propriété privée '{0}'.", - "Types_of_construct_signatures_are_incompatible_2419": "Les types de signature de construction sont incompatibles.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "Les types des paramètres '{0}' et '{1}' sont incompatibles.", - "Types_of_property_0_are_incompatible_2326": "Les types de la propriété '{0}' sont incompatibles.", - "Unable_to_open_file_0_6050": "Impossible d'ouvrir le fichier '{0}'.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "Impossible de résoudre la signature d'un élément décoratif de classe quand il est appelé en tant qu'expression.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Impossible de résoudre la signature d'un élément décoratif de méthode quand il est appelé en tant qu'expression.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Impossible de résoudre la signature d'un élément décoratif de paramètre quand il est appelé en tant qu'expression.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Impossible de résoudre la signature d'un élément décoratif de propriété quand il est appelé en tant qu'expression.", - "Unexpected_end_of_text_1126": "Fin de texte inattendue.", - "Unexpected_keyword_or_identifier_1434": "Mot clé ou identificateur inattendu.", - "Unexpected_token_1012": "Jeton inattendu.", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Jeton inattendu. Un constructeur, une méthode, un accesseur ou une propriété est attendu.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Jeton inattendu. Un nom de paramètre de type est attendu sans accolades.", - "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'}'}' ou '}' ?", - "Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.", - "Unknown_build_option_0_5072": "Option de build inconnue : '{0}'.", - "Unknown_build_option_0_Did_you_mean_1_5077": "Option de build inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", - "Unknown_compiler_option_0_5023": "Option de compilateur '{0}' inconnue.", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "Option de compilateur inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Mot clé ou identificateur inconnu. Souhaitiez-vous utiliser «{0}» ?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "Option 'excludes' inconnue. Voulez-vous utiliser 'exclude' ?", - "Unknown_type_acquisition_option_0_17010": "Option d'acquisition de type inconnue '{0}'.", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Option d'acquisition de type inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", - "Unknown_watch_option_0_5078": "Option de surveillance inconnue : '{0}'.", - "Unknown_watch_option_0_Did_you_mean_1_5079": "Option de surveillance inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", - "Unreachable_code_detected_7027": "Code inatteignable détecté.", - "Unterminated_Unicode_escape_sequence_1199": "Séquence d'échappement Unicode inachevée.", - "Unterminated_quoted_string_in_response_file_0_6045": "Chaîne entre guillemets inachevée dans le fichier réponse '{0}'.", - "Unterminated_regular_expression_literal_1161": "Littéral d'expression régulière inachevé.", - "Unterminated_string_literal_1002": "Littéral de chaîne inachevé.", - "Unterminated_template_literal_1160": "Littéral de modèle inachevé.", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "Les appels de fonctions non typées ne peuvent pas accepter d'arguments de type.", - "Unused_label_7028": "Étiquette inutilisée.", - "Unused_ts_expect_error_directive_2578": "Directive '@ts-expect-error' inutilisée.", - "Update_import_from_0_90058": "Mettre à jour l’importation à partir de \"{0}\"", - "Updating_output_of_project_0_6373": "Mise à jour de la sortie du projet '{0}'...", - "Updating_output_timestamps_of_project_0_6359": "Mise à jour des horodatages de sortie du projet '{0}'...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "Mise à jour des horodatages de sortie inchangés du projet '{0}'...", - "Use_0_95174": "Utilisez `{0}`.", - "Use_Number_isNaN_in_all_conditions_95175": "Utilisez 'Number.isNaN' dans toutes les conditions.", - "Use_element_access_for_0_95145": "Utiliser l'accès à l'élément pour '{0}'", - "Use_element_access_for_all_undeclared_properties_95146": "L'accès à l'élément est utilisé pour toutes les propriétés non déclarées.", - "Use_synthetic_default_member_95016": "Utilisez un membre 'default' synthétique.", - "Using_0_subpath_1_with_target_2_6404": "Utilisation de '{0}' de sous-chemin '{1}' avec la cible '{2}'.", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "L'utilisation d'une chaîne dans une instruction 'for...of' est prise en charge uniquement dans ECMAScript 5 et version supérieure.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "L’utilisation de--build,-b fera en sorte que tsc se comporte plus comme une build orchestrateur qu’un compilateur. Utilisé pour déclencher la génération de projets composites sur lesquels vous pouvez obtenir des informations supplémentaires sur {0}", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Utilisation des options de compilateur de la redirection de référence de projet : '{0}'.", - "VERSION_6036": "VERSION", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "La valeur de type '{0}' n'a aucune propriété en commun avec le type '{1}'. Voulez-vous vraiment l'appeler ?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "La valeur de type '{0}' ne peut pas être appelée. Voulez-vous inclure 'new' ?", - "Variable_0_implicitly_has_an_1_type_7005": "La variable '{0}' possède implicitement un type '{1}'.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "La variable '{0}' a implicitement un type '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "La variable '{0}' a implicitement le type '{1}' à certains emplacements, mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "La variable '{0}' a implicitement le type '{1}' dans certains emplacements où son type ne peut pas être déterminé.", - "Variable_0_is_used_before_being_assigned_2454": "La variable '{0}' est utilisée avant d'être assignée.", - "Variable_declaration_expected_1134": "Déclaration de variable attendue.", - "Variable_declaration_list_cannot_be_empty_1123": "La liste des déclarations de variable ne peut pas être vide.", - "Variable_declaration_not_allowed_at_this_location_1440": "Déclaration de variable non autorisée à cet emplacement.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'élément variadique situé à la position {0} dans la source ne correspond pas à l'élément situé à la position {1} dans la cible.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Les annotations de variance sont uniquement prises en charge dans les alias de type pour les types objet, fonction, constructeur et mappé.", - "Version_0_6029": "Version {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Visitez https://aka.ms/tsconfig pour en savoir plus sur ce fichier", - "WATCH_OPTIONS_6918": "OPTIONS D’OBSERVATION", - "Watch_and_Build_Modes_6250": "Modes d’Observation et de Génération", - "Watch_input_files_6005": "Fichiers d'entrée d'espion.", - "Watch_option_0_requires_a_value_of_type_1_5080": "L'option de surveillance '{0}' nécessite une valeur de type {1}.", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Nous ne pouvons écrire un type pour « {0} » qu’en ajoutant un type pour l’ensemble du paramètre ici.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Lors de l’attribution de fonctions, vérifiez que les paramètres et les valeurs de retour sont compatibles avec le sous-type.", - "When_type_checking_take_into_account_null_and_undefined_6699": "Lors de la vérification de type, prenez en compte « null » et « undefined ».", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Garder la sortie de console obsolète en mode espion au lieu d'effacer l'écran.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "Inclure dans un wrapper tous les caractères non valides au sein d'un conteneur d'expressions", - "Wrap_all_object_literal_with_parentheses_95116": "Placer tous les littéraux d'objet entre parenthèses", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Inclure dans un wrapper tous les JSX non apparentés au sein d'un fragment JSX", - "Wrap_in_JSX_fragment_95120": "Inclure dans un wrapper au sein d'un fragment JSX", - "Wrap_invalid_character_in_an_expression_container_95108": "Inclure dans un wrapper un caractère non valide au sein d'un conteneur d'expressions", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Placer le corps suivant entre parenthèses pour indiquer qu'il s'agit d'un littéral d'objet", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Vous pouvez en savoir plus sur toutes les options du compilateur sur {0}", - "You_cannot_rename_a_module_via_a_global_import_8031": "Vous ne pouvez pas renommer un module via une importation globale.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Vous ne pouvez pas renommer les éléments définis dans un dossier « node_modules ».", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Vous ne pouvez pas renommer les éléments définis dans un autre dossier « node_modules ».", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Vous ne pouvez pas renommer des éléments définis dans la bibliothèque TypeScript standard.", - "You_cannot_rename_this_element_8000": "Vous ne pouvez pas renommer cet élément.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' accepte trop peu d'arguments pour pouvoir être utilisé ici en tant qu'élément décoratif. Voulez-vous vraiment l'appeler d'abord et écrire '@{0}()' ?", - "_0_and_1_index_signatures_are_incompatible_2330": "Les signatures d'index « {0} » et « {1} » sont incompatibles.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Les opérations '{0}' et '{1}' ne peuvent pas être mélangées sans parenthèses.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' spécifié deux fois. L'attribut nommé '{0}' va être remplacé.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' peut uniquement être importé via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' peut uniquement être importé via l'utilisation d'une importation par défaut.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' peut uniquement être importé à l'aide d'un appel 'require' ou via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' peut uniquement être importé à l'aide d'un appel 'require' ou via l'utilisation d'une importation par défaut.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' peut uniquement être importé à l'aide de 'import {1} = require({2})' ou via l'utilisation d'une importation par défaut.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' peut uniquement être importé à l'aide de 'import {1} = require({2})' ou via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "Impossible de compiler '{0}' sous '--isolatedModules', car il est considéré comme un fichier de script global. Ajoutez une importation, une exportation ou une instruction 'export {}' vide pour en faire un module.", - "_0_cannot_be_used_as_a_JSX_component_2786": "Impossible d'utiliser '{0}' comme composant JSX.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}' ne peut pas être utilisé en tant que valeur, car il a été exporté à l'aide de 'export type'.", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}' ne peut pas être utilisé en tant que valeur, car il a été importé à l'aide de 'import type'.", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Les composants '{0}' n'acceptent pas du texte en tant qu'éléments enfants. Le texte dans JSX a le type 'string', mais le type attendu de '{1}' est '{2}'.", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}' a pu être instancié avec un type arbitraire qui n'est peut-être pas lié à '{1}'.", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Les déclarations '{0}' peuvent uniquement être utilisées dans les fichiers TypeScript.", - "_0_expected_1005": "'{0}' attendu.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}' n'a aucun membre exporté nommé '{1}'. Est-ce que vous pensiez à '{2}' ?", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' a implicitement un type de retour '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' possède implicitement le type de retour 'any', car il n'a pas d'annotation de type de retour, et est référencé directement ou indirectement dans l'une de ses expressions de retour.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "'{0}' a implicitement le type 'any', car il n'a pas d'annotation de type et est référencé directement ou indirectement dans son propre initialiseur.", - "_0_index_signatures_are_incompatible_2634": "Les signatures d'index « {0} » sont incompatibles.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Le type d’index « {0} », « {1} », ne peut pas être attribué au type d’index « {2} », « {3} ».", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' est une primitive, mais '{1}' est un objet wrapper. Si possible, utilisez '{0}' de préférence.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' est un type qui ne peut pas être importé dans des fichiers JavaScript. Utilisez '{1}' dans une annotation de type JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "« {0} » est un type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "« {0} » est un changement de nom inutilisé de « {1} ». Souhaitiez-vous l’utiliser comme annotation de type?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' peut être assigné à la contrainte de type '{1}', mais '{1}' a pu être instancié avec un autre sous-type de contrainte '{2}'.", - "_0_is_automatically_exported_here_18044": "'{0}' est automatiquement exporté ici.", - "_0_is_declared_but_its_value_is_never_read_6133": "'{0}' est déclaré mais sa valeur n'est jamais lue.", - "_0_is_declared_but_never_used_6196": "'{0}' est déclaré mais n'est jamais utilisé.", - "_0_is_declared_here_2728": "'{0}' est déclaré ici.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "'{0}' est défini en tant que propriété dans la classe '{1}', mais il est remplacé ici dans '{2}' en tant qu'accesseur.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}' est défini en tant qu'accesseur dans la classe '{1}', mais il est remplacé ici dans '{2}' en tant que propriété d'instance.", - "_0_is_deprecated_6385": "'{0}' est déprécié.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' n'est pas une métapropriété valide pour le mot clé '{1}'. Est-ce qu'il ne s'agit pas plutôt de '{2}' ?", - "_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' n'est pas autorisé comme nom de paramètre.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' n'est pas autorisé en tant que nom de déclaration de variable.", - "_0_is_of_type_unknown_18046": "'{0}' est de type 'unknown'.", - "_0_is_possibly_null_18047": "'{0}' est peut-être 'null'.", - "_0_is_possibly_null_or_undefined_18049": "'{0}' est peut-être 'null' ou 'undefined'.", - "_0_is_possibly_undefined_18048": "'{0}' est peut-être 'non défini'.", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' est référencé directement ou indirectement dans sa propre expression de base.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' est référencé directement ou indirectement dans sa propre annotation de type.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' est spécifié plusieurs fois. Cette utilisation va donc être remplacée.", - "_0_list_cannot_be_empty_1097": "La liste '{0}' ne peut pas être vide.", - "_0_modifier_already_seen_1030": "Modificateur '{0}' déjà rencontré.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Le modificateur «{0}» ne peut apparaître que sur un paramètre de type d’une classe, d’une interface ou d’un alias de type", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Le modificateur '{0}' ne peut pas apparaître sur une déclaration de constructeur.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Le modificateur '{0}' ne peut pas apparaître dans un élément de module ou d'espace de noms.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "Le modificateur '{0}' ne peut pas apparaître dans un paramètre.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "Le modificateur '{0}' ne peut pas apparaître dans un membre de type.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Le modificateur «{0}» ne peut pas apparaître sur un paramètre de type", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "Le modificateur '{0}' ne peut pas apparaître dans une signature d'index.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Le modificateur '{0}' ne peut pas apparaître sur les éléments de classe de ce genre.", - "_0_modifier_cannot_be_used_here_1042": "Impossible d'utiliser le modificateur '{0}' ici.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "Impossible d'utiliser le modificateur '{0}' dans un contexte ambiant.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "Impossible d'utiliser les modificateurs '{0}' et '{1}' ensemble.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Le modificateur '{0}' ne peut pas être utilisé avec un identificateur privé.", - "_0_modifier_must_precede_1_modifier_1029": "Le modificateur '{0}' doit précéder le modificateur '{1}'.", - "_0_needs_an_explicit_type_annotation_2782": "'{0}' a besoin d'une annotation de type explicite.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' référence uniquement un type mais s'utilise en tant qu'espace de noms ici.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' fait uniquement référence à un type mais s'utilise en tant que valeur ici.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "'{0}' fait uniquement référence à un type, mais il est utilisé ici en tant que valeur. Voulez-vous vraiment utiliser '{1} dans {0}' ?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' fait uniquement référence à un type, mais il est utilisé ici en tant que valeur. Devez-vous changer votre bibliothèque cible ? Essayez de remplacer l'option de compilateur 'lib' par es2015 ou une version ultérieure.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fait référence à une variable globale UMD, mais le fichier actuel est un module. Ajoutez une importation à la place.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fait référence à une valeur, mais il est utilisé ici en tant que type. Est-ce que vous avez voulu utiliser 'typeof {0}' ?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "« {0} » se résout en une déclaration de type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "« {0} » se résout une déclaration de type unique et doit être réexporté à l'aide d'une réexportation de type unique lorsque l'option « isolatedModules » est activée.", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' doit être défini dans l'objet 'compilerOptions' du fichier de configuration json", - "_0_tag_already_specified_1223": "La balise '{0}' est déjà spécifiée.", - "_0_was_also_declared_here_6203": "'{0}' a également été déclaré ici.", - "_0_was_exported_here_1377": "'{0}' a été exporté ici.", - "_0_was_imported_here_1376": "'{0}' a été importé ici.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}', qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour '{1}'.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}', qui n'a pas d'annotation de type de retour, a implicitement le type de retour '{1}'.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Le modificateur 'abstract' peut apparaître uniquement dans une déclaration de classe, de méthode ou de propriété.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Le modificateur 'accessor' ne peut apparaître que sur une déclaration de propriété.", - "and_here_6204": "et ici.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "Les « arguments » ne peuvent pas être référencés dans les initialiseurs de propriété.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "« auto » : traitez les fichiers avec des importations, des exportations, import.meta, jsx (avec jsx: react-jsx) ou un format esm (avec module : node16+) en tant que modules.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Les expressions 'await' sont uniquement autorisées au niveau supérieur d'un fichier quand celui-ci est un module, mais le fichier actuel n'a pas d'importations ou d'exportations. Ajoutez un 'export {}' vide pour faire de ce fichier un module.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Les expressions 'await' sont autorisées uniquement dans les fonctions asynchrones et aux niveaux supérieurs des modules.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Impossible d'utiliser des expressions 'await' dans un initialiseur de paramètre.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' n'a aucun effet sur le type de cette expression.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "L'option 'baseUrl' a la valeur '{0}'. Utilisation de cette valeur pour la résolution du nom de module non relatif '{1}'.", - "can_only_be_used_at_the_start_of_a_file_18026": "'#!' peut uniquement être utilisé au début d'un fichier.", - "case_or_default_expected_1130": "'case' ou 'default' attendu.", - "catch_or_finally_expected_1472": "« Catch » ou « finally » attendu.", - "const_declarations_can_only_be_declared_inside_a_block_1156": "Les déclarations 'const' ne peuvent être déclarées que dans un bloc.", - "const_declarations_must_be_initialized_1155": "Les déclarations 'const' doivent être initialisées.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "L'initialiseur de membre enum 'const' donne une valeur non finie.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "L'initialiseur de membre enum 'const' donne une valeur non autorisée 'NaN'.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Les initialiseurs de membres const enum peuvent uniquement contenir des valeurs littérales et autres valeurs enum calculées.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Les enums 'const' ne peuvent être utilisés que dans les expressions d'accès à une propriété ou un index, ou dans la partie droite d'une déclaration d'importation, d'une assignation d'exportation ou d'une requête de type.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor' ne peut pas être utilisé en tant que nom de propriété de paramètre.", - "constructor_is_a_reserved_word_18012": "'#constructor' est un mot réservé.", - "default_Colon_6903": "Par défaut :", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "'delete' ne peut pas être appelé dans un identificateur en mode strict.", - "export_Asterisk_does_not_re_export_a_default_1195": "'export *' ne réexporte pas d'exportations par défaut.", - "export_can_only_be_used_in_TypeScript_files_8003": "'export =' peut uniquement être utilisé dans les fichiers TypeScript.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Impossible d'appliquer le modificateur 'export' aux modules ambients et aux augmentations de module, car ils sont toujours visibles.", - "extends_clause_already_seen_1172": "Clause 'extends' déjà rencontrée.", - "extends_clause_must_precede_implements_clause_1173": "La clause 'extends' doit précéder la clause 'implements'.", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "La clause 'extends' de la classe exportée '{0}' comporte ou utilise le nom privé '{1}'.", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "La clause 'extends' de la classe exportée comporte ou utilise le nom privé '{0}'.", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "La clause 'extends' de l'interface exportée '{0}' comporte ou utilise le nom privé '{1}'.", - "false_unless_composite_is_set_6906": "« false », sauf si « composite » est défini", - "false_unless_strict_is_set_6905": "« false », sauf si « strict » est défini", - "file_6025": "fichier", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Les boucles 'for await' sont uniquement autorisées au niveau supérieur d'un fichier quand celui-ci est un module, mais le fichier actuel n'a aucune importation ou exportation. Ajoutez un 'export {}' vide pour faire de ce fichier un module.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Les boucles 'for await' sont autorisées uniquement dans les fonctions asynchrones et aux niveaux supérieurs des modules.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "Les accesseurs 'get' et 'set' ne peuvent pas déclarer les paramètres 'this'.", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "«[]» si « files » est spécifié, sinon « [\"**/*\"]5D; »", - "implements_clause_already_seen_1175": "Clause 'implements' déjà rencontrée.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Les clauses 'implements' peuvent uniquement être utilisées dans les fichiers TypeScript.", - "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' peut uniquement être utilisé dans les fichiers TypeScript.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Les déclarations 'infer' sont uniquement autorisées dans la clause 'extends' d’un type conditionnel.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "Les déclarations 'let' ne peuvent être déclarées que dans un bloc.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' ne peut pas être utilisé comme nom dans les déclarations 'let' ou 'const'.", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === « AMD » ou « UMD » ou « System » ou « ES6 », puis « Classic », sinon « Node »", - "module_system_or_esModuleInterop_6904": "module === « system » ou esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "L'expression 'new', dont la cible ne dispose pas d'une signature de construction, possède implicitement un type 'any'.", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "« [ « node_modules », « bower_components », « jspm_packages »] », plus la valeur de « outDir » si elle est spécifiée.", - "one_of_Colon_6900": "L'un de :", - "one_or_more_Colon_6901": "un ou plusieurs :", - "options_6024": "options", - "or_JSX_element_expected_1145": "'{' ou élément JSX attendu.", - "or_expected_1144": "'{' ou ';' attendu.", - "package_json_does_not_have_a_0_field_6100": "'package.json' n'a aucun champ '{0}'.", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' n'a aucune entrée 'typesVersions' qui correspond à la version '{0}'.", - "package_json_had_a_falsy_0_field_6220": "'package.json' a un champ '{0}' erroné.", - "package_json_has_0_field_1_that_references_2_6101": "'package.json' a un champ '{0}' '{1}' qui fait référence à '{2}'.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' a une entrée 'typesVersions' '{0}' qui n'est pas une plage SemVer valide.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' a une entrée 'typesVersions' '{0}' qui correspond à la version de compilateur '{1}'. Recherche d'un modèle correspondant au nom de module '{2}'.", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' a un champ 'typesVersions' avec des mappages de chemins spécifiques à la version.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "L’étendue package.json « {0} » mappe explicitement le spécificateur « {1} » sur la valeur null.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "L’étendue package.json « {0} » a un type non valide pour la cible du spécificateur « {1} »", - "package_json_scope_0_has_no_imports_defined_6273": "L’étendue package.json « {0} » ne comporte aucune importation définie.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "L'option 'paths' est spécifiée. Recherche d'un modèle correspondant au nom de module '{0}'.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Le modificateur 'readonly' peut apparaître uniquement dans une déclaration de propriété ou une signature d'index.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Le modificateur de type 'readonly' est uniquement autorisé sur les types littéraux de tableau et de tuple.", - "require_call_may_be_converted_to_an_import_80005": "L'appel de 'require' peut être converti en import.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Les assertions 'resolution-mode' sont prises en charge uniquement quand 'moduleResolution' est 'node16' ou 'nodenext'.", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Les assertions 'resolution-mode' sont instables. Utilisez TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour avec « npm install -D typescript@next ».", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "« mode résolution » ne peut être défini que pour les importations de type uniquement.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "« mode résolution » est la seule clé valide pour les assertions d’importation de type.", - "resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' doit être 'require' ou 'import'.", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'option 'rootDirs' est définie. Utilisation de celle-ci pour la résolution du nom de module relatif '{0}'.", - "super_can_only_be_referenced_in_a_derived_class_2335": "'super' ne peut être référencé que dans une classe dérivée.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "'super' ne peut être référencé que dans les membres des classes dérivées ou les expressions littérales d'objet.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "Impossible de référencer 'super' dans un nom de propriété calculée.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "Impossible de référencer 'super' dans des arguments de constructeur.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "'super' est uniquement autorisé dans les membres des expressions littérales d'objet quand l'option 'target' a la valeur 'ES2015' ou une valeur supérieure.", - "super_may_not_use_type_arguments_2754": "'super' ne peut pas utiliser d'arguments de type.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "'super' doit être appelé avant d'accéder à une propriété de 'super' dans le constructeur d'une classe dérivée.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "'super' doit être appelé avant d'accéder à 'this' dans le constructeur d'une classe dérivée.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "'super' doit être suivi d'une liste d'arguments ou d'un accès au membre.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "L'accès aux propriétés 'super' est autorisé uniquement dans un constructeur, une fonction membre ou un accesseur membre d'une classe dérivée.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "Impossible de référencer 'this' dans un nom de propriété calculée.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Impossible de référencer 'this' dans le corps d'un module ou d'un espace de noms.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Impossible de référencer 'this' dans un initialiseur de propriété statique.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "Impossible de référencer 'this' dans des arguments de constructeur.", - "this_cannot_be_referenced_in_current_location_2332": "Impossible de référencer 'this' dans l'emplacement actuel.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' possède implicitement le type 'any', car il n'a pas d'annotation de type.", - "true_for_ES2022_and_above_including_ESNext_6930": "'true’ pour ES2022 et versions ultérieures, y compris ESNext.", - "true_if_composite_false_otherwise_6909": "« true » si « composite », « false » sinon", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc : compilateur TypeScript", - "type_Colon_6902": "type :", - "unique_symbol_types_are_not_allowed_here_1335": "Les types 'unique symbol' ne sont pas autorisés ici.", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "Les types 'unique symbol' sont uniquement autorisés sur les variables d'une déclaration de variable.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "Les types 'unique symbol' ne peuvent pas être utilisés dans une déclaration de variable avec un nom de liaison.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "La directive 'use strict' ne peut pas être utilisée avec une liste de paramètres non simple.", - "use_strict_directive_used_here_1349": "directive 'use strict' utilisée ici.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "Les instructions 'with' ne sont pas autorisées dans un bloc de fonctions async.", - "with_statements_are_not_allowed_in_strict_mode_1101": "Les instructions 'with' ne sont pas autorisées en mode strict.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "L'expression 'yield' génère implicitement un type 'any', car le générateur qui la contient n'a pas d'annotation de type de retour.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "Impossible d'utiliser des expressions 'yield' dans un initialiseur de paramètre." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/it/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/it/diagnosticMessages.generated.json deleted file mode 100644 index 2acc6530..00000000 --- a/graphql/node_modules/typescript/lib/it/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "TUTTE LE OPZIONI DEL COMPILATORE", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Non è possibile usare un modificatore '{0}' con una dichiarazione di importazione.", - "A_0_parameter_must_be_the_first_parameter_2680": "Il primo parametro deve essere '{0}'.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un commento '@typedef' di JSDoc non può contenere più tag '@type'.", - "A_bigint_literal_cannot_use_exponential_notation_1352": "Un valore letterale bigint non può usare la notazione esponenziale.", - "A_bigint_literal_must_be_an_integer_1353": "Un valore letterale bigint deve essere un numero intero.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un parametro del criterio di binding non può essere facoltativo in una firma di implementazione.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Un'istruzione 'break' può essere usata solo all'interno di un'iterazione di inclusione o di un'istruzione switch.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Un'istruzione 'break' può solo passare a un'etichetta di un'istruzione di inclusione.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Una classe può implementare solo un identificatore/nome qualificato con argomenti tipo facoltativi.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Una classe può implementare solo un tipo di oggetto o un'intersezione di tipi di oggetto con membri noti in modo statico.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "È necessario assegnare un nome a una dichiarazione di classe senza modificatore 'default'.", - "A_class_member_cannot_have_the_0_keyword_1248": "Un membro di classe non può contenere la parola chiave '{0}'.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Non sono consentite espressioni con virgole in un nome di proprietà calcolato.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "Un nome di proprietà calcolato non può fare riferimento a un parametro di tipo dal tipo che lo contiene.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "Un nome di proprietà calcolato in una dichiarazione di proprietà di classe deve avere un tipo di valore letterale semplice o un tipo 'unique symbol'.", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "Un nome di proprietà calcolato in un overload di metodo deve fare riferimento a un'espressione il cui tipo è un tipo di valore letterale o un tipo 'unique symbol'.", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "Un nome di proprietà calcolato in un valore letterale di tipo deve fare riferimento a un'espressione il cui tipo è un tipo di valore letterale o un tipo 'unique symbol'.", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Un nome di proprietà calcolato in un contesto di ambiente deve fare riferimento a un'espressione il cui tipo è un tipo di valore letterale o un tipo 'unique symbol'.", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Un nome di proprietà calcolato in un'interfaccia deve fare riferimento a un'espressione il cui tipo è un tipo di valore letterale o un tipo 'unique symbol'.", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Un nome di proprietà calcolato deve essere di tipo 'string', 'number', 'symbol' o 'any'.", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "Le asserzioni 'const' possono essere applicate solo a riferimenti a membri di enumerazione oppure a valori letterali stringa, numerico, booleano, di oggetto o matrice.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "È possibile accedere a un membro di enumerazione const solo tramite un valore letterale stringa.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Un inizializzatore 'const' in un contesto di ambiente deve essere un valore letterale numerico o stringa oppure un riferimento a un'enumerazione di valori letterali.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Un costruttore non può contenere una chiamata 'super' quando la relativa classe estende 'null'.", - "A_constructor_cannot_have_a_this_parameter_2681": "Un costruttore non può contenere un parametro 'this'.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Un'istruzione 'continue' può essere usata solo all'interno di un'istruzione di iterazione di inclusione.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Un'istruzione 'continue' può solo passare a un'etichetta di un'istruzione di iterazione di inclusione.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Non è possibile usare un modificatore 'declare' in un contesto già di ambiente.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un elemento Decorator può solo decorare un'implementazione del metodo e non un overload.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Una clausola 'default' non può essere specificata più volte in un'istruzione 'switch'.", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "È possibile usare un'esportazione predefinita solo in un modulo di tipo ECMAScript.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Un'esportazione predefinita deve essere al livello principale di una dichiarazione di file o di modulo.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "In questo contesto non sono consentite asserzioni di assegnazione definite '!'.", - "A_destructuring_declaration_must_have_an_initializer_1182": "Una dichiarazione di destrutturazione deve includere un inizializzatore.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Con una chiamata di importazione dinamica in ES5/ES3 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Una chiamata di importazione dinamica restituisce un costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", - "A_file_cannot_have_a_reference_to_itself_1006": "Un file non può contenere un riferimento a se stesso.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Una funzione che restituisce 'never' non può includere un punto finale raggiungibile.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Una funzione chiamata con la parola chiave 'new' non può contenere un tipo 'this' con valore 'void'.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Una funzione il cui tipo dichiarato non è 'void' né 'any' deve restituire un valore.", - "A_generator_cannot_have_a_void_type_annotation_2505": "Un generatore non può contenere un'annotazione di tipo 'void'.", - "A_get_accessor_cannot_have_parameters_1054": "Una funzione di accesso 'get' non può contenere parametri.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Una funzione di accesso get deve essere accessibile almeno come setter", - "A_get_accessor_must_return_a_value_2378": "Una funzione di accesso 'get' deve restituire un valore.", - "A_label_is_not_allowed_here_1344": "In questo punto non sono consentite etichette.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "Un elemento tupla con etichetta è dichiarato come facoltativo con un punto interrogativo dopo il nome e prima dei due punti, anziché dopo il tipo.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "Un elemento tupla con etichetta è dichiarato come inattivo con '...' prima del nome, anziché prima del tipo.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "Un tipo di cui è stato eseguito il mapping non può dichiarare proprietà o metodi.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "Un inizializzatore di membro in una dichiarazione di enumerazione non può fare riferimento a membri dichiarati successivamente, inclusi quelli definiti in altre enumerazioni.", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "Una classe mixin deve includere un costruttore con un unico parametro REST di tipo 'any[]'.", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "Una classe mixin estesa da una variabile di tipo contenente una firma del costrutto astratta deve essere dichiarata anche come 'abstract'.", - "A_module_cannot_have_multiple_default_exports_2528": "Un modulo non può includere più esportazioni predefinite.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Una dichiarazione di spazio dei nomi non può essere presente in un file diverso rispetto a una classe o funzione con cui è stato eseguito il merge.", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Una dichiarazione di spazio dei nomi non può essere specificata prima di una classe o funzione con cui è stato eseguito il merge.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Una dichiarazione di spazio dei nomi è consentita solo al livello superiore di uno spazio dei nomi o di un modulo.", - "A_non_dry_build_would_build_project_0_6357": "Se si esegue una compilazione senza flag -dry, verrà compilato il progetto '{0}'", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Se si esegue una compilazione senza flag -dry, i file seguenti verranno eliminati: {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "Se si esegue una compilazione non di prova, l'output del progetto '{0}' verrà aggiornato", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Se si esegue una compilazione non di prova, i timestamp dell'output del progetto '{0}' verranno aggiornati", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un inizializzatore di parametro è consentito solo in un'implementazione di funzione o costruttore.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Non è possibile dichiarare una proprietà di parametro usando un parametro REST.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Una proprietà di parametro è consentita solo in un'implementazione di costruttore.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "Non è possibile dichiarare una proprietà di parametro con un modello di associazione.", - "A_promise_must_have_a_then_method_1059": "Una promessa deve contenere un metodo 'then'.", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "Una proprietà di una classe il cui tipo è un tipo 'unique symbol' deve essere sia 'static' che 'readonly'.", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "Una proprietà di un'interfaccia o di un valore letterale di tipo il cui tipo è un tipo 'unique symbol' deve essere 'readonly'.", - "A_required_element_cannot_follow_an_optional_element_1257": "Non è possibile specificare un elemento obbligatorio dopo un elemento facoltativo.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "Un parametro obbligatorio non può seguire un parametro facoltativo.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "Un elemento rest non può contenere un criterio di binding.", - "A_rest_element_cannot_follow_another_rest_element_1265": "Non è possibile specificare un elemento REST dopo un altro elemento REST.", - "A_rest_element_cannot_have_a_property_name_2566": "Un elemento rest non può contenere un nome proprietà.", - "A_rest_element_cannot_have_an_initializer_1186": "Un elemento rest non può includere un inizializzatore.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "Un elemento rest deve essere l'ultimo di un criterio di destrutturazione.", - "A_rest_element_type_must_be_an_array_type_2574": "Un tipo di elemento rest deve essere un tipo di matrice.", - "A_rest_parameter_cannot_be_optional_1047": "Un parametro rest non può essere facoltativo.", - "A_rest_parameter_cannot_have_an_initializer_1048": "Un parametro rest non può contenere un inizializzatore.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "Un parametro rest deve essere l'ultimo di un elenco di parametri.", - "A_rest_parameter_must_be_of_an_array_type_2370": "Un parametro rest deve essere di un tipo di matrice.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "Un modello di associazione o un parametro REST non può contenere una virgola finale.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "Un'istruzione 'return' può essere usata solo all'interno di un corpo di funzione.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "Non è possibile usare un'istruzione 'return' all'interno di un blocco statico di classe.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "Serie di voci che ripetono il mapping delle importazioni a percorsi di ricerca relativi al valore di 'baseUrl'.", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "Una funzione di accesso 'set' non può contenere un'annotazione di tipo restituito.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "Una funzione di accesso 'set' non può contenere un parametro facoltativo.", - "A_set_accessor_cannot_have_rest_parameter_1053": "Una funzione di accesso 'set' non può contenere il parametro rest.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "Una funzione di accesso 'set' deve contenere un solo parametro.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "Un parametro della funzione di accesso 'set' non può contenere un inizializzatore.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "Un argomento spread deve avere un tipo di tupla o essere passato a un parametro rest.", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "Una chiamata 'super' deve essere un'istruzione a livello radice all'interno di un costruttore di una classe derivata che contiene proprietà inizializzate, proprietà dei parametri o identificatori privati.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Una chiamata 'super' deve essere la prima istruzione del costruttore a fare riferimento a 'super' o 'this' quando una classe derivata contiene proprietà inizializzate, proprietà di parametri o identificatori privati.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Un guard di tipo basato su 'this' non è compatibile con uno basato su parametri.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un tipo 'this' è disponibile solo in un membro non statico di una classe o di interfaccia.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un file 'tsconfig.json' è già definito in: '{0}'.", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membro di tupla non può essere sia facoltativo che inattivo.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo di tupla non può essere indicizzato con un valore negativo.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Nella parte sinistra di un'espressione di elevamento a potenza non è consentita un'espressione di asserzione tipi. Provare a racchiudere l'espressione tra parentesi.", - "A_type_literal_property_cannot_have_an_initializer_1247": "Una proprietà di valore letterale di tipo non può contenere un inizializzatore.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Un'importazione solo di tipi può specificare un'importazione predefinita o binding denominati, ma non entrambi.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "Un predicato di tipo non può fare riferimento a un parametro rest.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "Un predicato di tipo non può fare riferimento all'elemento '{0}' in un criterio di binding.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "Un predicato di tipo è consentito solo nella posizione del tipo restituito per le funzioni e i metodi.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "Il tipo di un predicato di tipo deve essere assegnabile al tipo del relativo parametro.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "Un tipo a cui viene fatto riferimento in una firma decorata deve essere importato con 'import type' o un'importazione dello spazio dei nomi quando sono abilitati 'isolatedModules' e 'emitDecoratorMetadata'.", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "Una variabile il cui tipo è un tipo 'unique symbol' deve essere 'const'.", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Un'espressione 'yield' è consentita solo nel corpo di un generatore.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Non è possibile accedere al metodo astratto '{0}' nella classe '{1}' tramite l'espressione super.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "I metodi astratti possono essere inclusi solo in una classe astratta.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Non è possibile accedere alla proprietà astratta '{0}' nella classe '{1}' nel costruttore.", - "Accessibility_modifier_already_seen_1028": "Il modificatore di accessibilità è già presente.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Le funzioni di accesso sono disponibili solo se destinate a ECMAScript 5 e versioni successive.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "Le funzioni di accesso devono essere tutte astratte o tutte non astratte.", - "Add_0_to_unresolved_variable_90008": "Aggiungere '{0}.' alla variabile non risolta", - "Add_a_return_statement_95111": "Aggiungere un'istruzione return", - "Add_all_missing_async_modifiers_95041": "Aggiungere tutti i modificatori 'async' mancanti", - "Add_all_missing_attributes_95168": "Aggiungi tutti gli attributi mancanti", - "Add_all_missing_call_parentheses_95068": "Aggiungere tutte le parentesi mancanti nelle chiamate", - "Add_all_missing_function_declarations_95157": "Aggiungere tutte le dichiarazioni di funzione mancanti", - "Add_all_missing_imports_95064": "Aggiungere tutte le importazioni mancanti", - "Add_all_missing_members_95022": "Aggiungere tutti i membri mancanti", - "Add_all_missing_override_modifiers_95162": "Aggiungere tutti i modificatori 'override' mancanti", - "Add_all_missing_properties_95166": "Aggiunge tutte le proprietà mancanti", - "Add_all_missing_return_statement_95114": "Aggiungere tutte le istruzioni return mancanti", - "Add_all_missing_super_calls_95039": "Aggiungere tutte le chiamate a super mancanti", - "Add_async_modifier_to_containing_function_90029": "Aggiungere il modificatore async alla funzione contenitore", - "Add_await_95083": "Aggiungere 'await'", - "Add_await_to_initializer_for_0_95084": "Aggiungere 'await' all'inizializzatore per '{0}'", - "Add_await_to_initializers_95089": "Aggiungere 'await' agli inizializzatori", - "Add_braces_to_arrow_function_95059": "Aggiungere le parentesi graffe alla funzione arrow", - "Add_const_to_all_unresolved_variables_95082": "Aggiungere 'const' a tutte le variabili non risolte", - "Add_const_to_unresolved_variable_95081": "Aggiungere 'const' alla variabile non risolta", - "Add_definite_assignment_assertion_to_property_0_95020": "Aggiungere l'asserzione di assegnazione definita alla proprietà '{0}'", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Aggiungere le asserzioni di assegnazione definite a tutte le proprietà non inizializzate", - "Add_export_to_make_this_file_into_a_module_95097": "Aggiungere 'export {}' per trasformare questo file in un modulo", - "Add_extends_constraint_2211": "Aggiungere il vincolo 'extends'.", - "Add_extends_constraint_to_all_type_parameters_2212": "Aggiungere il vincolo `extends` a tutti i parametri di tipo", - "Add_import_from_0_90057": "Aggiungere l'importazione da \"{0}\"", - "Add_index_signature_for_property_0_90017": "Aggiungere la firma dell'indice per la proprietà '{0}'", - "Add_initializer_to_property_0_95019": "Aggiungere l'inizializzatore alla proprietà '{0}'", - "Add_initializers_to_all_uninitialized_properties_95027": "Aggiungere gli inizializzatori a tutte le proprietà non inizializzate", - "Add_missing_attributes_95167": "Aggiungi attributi mancanti", - "Add_missing_call_parentheses_95067": "Aggiungere le parentesi mancanti nelle chiamate", - "Add_missing_enum_member_0_95063": "Aggiungere il membro di enumerazione mancante '{0}'", - "Add_missing_function_declaration_0_95156": "Aggiungere la dichiarazione di funzione mancante '{0}'", - "Add_missing_new_operator_to_all_calls_95072": "Aggiungere l'operatore mancante 'new' a tutte le chiamate", - "Add_missing_new_operator_to_call_95071": "Aggiungere l'operatore mancante 'new' alla chiamata", - "Add_missing_properties_95165": "Aggiunge le proprietà mancanti", - "Add_missing_super_call_90001": "Aggiungere la chiamata mancante a 'super()'", - "Add_missing_typeof_95052": "Aggiungere l'elemento 'typeof' mancante", - "Add_names_to_all_parameters_without_names_95073": "Aggiungere i nomi a tutti i parametri senza nomi", - "Add_or_remove_braces_in_an_arrow_function_95058": "Aggiungere o rimuovere le parentesi graffe in una funzione arrow", - "Add_override_modifier_95160": "Aggiungere il modificatore 'override'", - "Add_parameter_name_90034": "Aggiungere il nome del parametro", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Aggiungere il qualificatore a tutte le variabili non risolte corrispondenti a un nome di membro", - "Add_to_all_uncalled_decorators_95044": "Aggiungere '()' a tutti gli elementi Decorator non chiamati", - "Add_ts_ignore_to_all_error_messages_95042": "Aggiungere '@ts-ignore' a tutti i messaggi di errore", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Aggiunge 'undefined' a un tipo quando l'accesso viene eseguito tramite un indice.", - "Add_undefined_to_optional_property_type_95169": "Aggiungi 'undefined' al tipo di proprietà facoltativo", - "Add_undefined_type_to_all_uninitialized_properties_95029": "Aggiungere il tipo non definito a tutte le proprietà non inizializzate", - "Add_undefined_type_to_property_0_95018": "Aggiungere il tipo 'undefined' alla proprietà '{0}'", - "Add_unknown_conversion_for_non_overlapping_types_95069": "Aggiungere la conversione 'unknown' per i tipi non sovrapposti", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "Aggiungere 'unknown' a tutte le conversioni di tipi non sovrapposti", - "Add_void_to_Promise_resolved_without_a_value_95143": "Aggiungere 'void' all'elemento Promise risolto senza un valore", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "Aggiungere 'void' a tutti gli elementi Promise risolti senza un valore", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "Aggiungere un file tsconfig.json per organizzare più facilmente progetti che contengono sia file TypeScript che JavaScript. Per altre informazioni, vedere https://aka.ms/tsconfig.", - "All_declarations_of_0_must_have_identical_constraints_2838": "Tutte le dichiarazioni di '{0}' devono avere vincoli identici.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "Tutte le dichiarazioni di '{0}' devono contenere modificatori identici.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "Tutte le dichiarazioni di '{0}' devono contenere parametri di tipo identici.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "Tutte le dichiarazioni di un metodo astratto devono essere consecutive.", - "All_destructured_elements_are_unused_6198": "Tutti gli elementi destrutturati sono inutilizzati.", - "All_imports_in_import_declaration_are_unused_6192": "Tutte le importazioni nella dichiarazione di importazione sono inutilizzate.", - "All_type_parameters_are_unused_6205": "Tutti i parametri di tipo sono inutilizzati.", - "All_variables_are_unused_6199": "Tutte le variabili sono inutilizzate.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "Consente l'uso di file JavaScript nel programma. Usare l'opzione 'checkJS' per ottenere gli errori da questi file.", - "Allow_accessing_UMD_globals_from_modules_6602": "Consentire l'accesso alle istruzioni globali UMD dai moduli.", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Consente di eseguire importazioni predefinite da moduli senza esportazione predefinita. Non influisce sulla creazione del codice ma solo sul controllo dei tipi.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Consente 'import x from y' quando un modulo non contiene un'esportazione predefinita.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Consente di eseguire una volta per progetto l'importazione di funzioni helper da tslib, invece di includerle per ogni file.", - "Allow_javascript_files_to_be_compiled_6102": "Consente la compilazione di file JavaScript.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Consente che più cartelle vengano considerate come una sola durante la risoluzione dei moduli.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Il nome file già incluso '{0}' differisce da quello '{1}' solo per l'uso di maiuscole/minuscole.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "Non è possibile specificare il nome di modulo relativo nella dichiarazione di modulo di ambiente.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "I moduli di ambiente non possono essere annidati in altri moduli o spazi dei nomi.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "Un modulo AMD non può includere più assegnazioni di nome.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "Una funzione di accesso astratta non può contenere un'implementazione.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Non è possibile usare un modificatore di accessibilità con un identificatore privato.", - "An_accessor_cannot_have_type_parameters_1094": "Una funzione di accesso non può contenere parametri di tipo.", - "An_accessor_property_cannot_be_declared_optional_1276": "Una proprietà 'accessor' non può essere dichiarata facoltativa.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Una dichiarazione di modulo di ambiente è consentita solo al primo livello in un file.", - "An_argument_for_0_was_not_provided_6210": "Non è stato specificato alcun argomento per '{0}'.", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Non è stato specificato alcun argomento corrispondente a questo modello di associazione.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un operando aritmetico deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "Una funzione arrow non può contenere un parametro 'this'.", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Con una funzione o un metodo asincrono in ES5/ES3 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Un metodo o una funzione asincrona deve restituire un costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", - "An_async_iterator_must_have_a_next_method_2519": "Un iteratore asincrono deve contenere un metodo 'next()'.", - "An_element_access_expression_should_take_an_argument_1011": "Un'espressione di accesso a elementi deve accettare un argomento.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "Non è possibile assegnare un nome con un identificatore privato a un membro di enumerazione.", - "An_enum_member_cannot_have_a_numeric_name_2452": "Il nome di un membro di enumerazione non può essere numerico.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "Il nome di un membro di enumerazione deve essere seguito da ',', '=' o '}'.", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "Versione espansa di queste informazioni, che mostra tutte le opzioni possibili del compilatore", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "Non è possibile usare un'assegnazione di esportazione in un modulo con altri elementi esportati.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "Non è possibile usare un'assegnazione di esportazione in uno spazio dei nomi.", - "An_export_assignment_cannot_have_modifiers_1120": "Un'assegnazione di esportazione non può contenere modificatori.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "Un'assegnazione di esportazione deve essere al primo livello di una dichiarazione di file o di modulo.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Una dichiarazione di esportazione può essere usata solo al livello superiore di un modulo.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Una dichiarazione di esportazione può essere usata solo al livello superiore di uno spazio dei nomi o di un modulo.", - "An_export_declaration_cannot_have_modifiers_1193": "Una dichiarazione di esportazione non può contenere modificatori.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Non è possibile testare la veridicità di un'espressione di tipo 'void'.", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Un valore di escape Unicode avanzato deve essere compreso tra 0x0 e 0x10FFFF inclusi.", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Non è possibile specificare un identificatore o una parola chiave subito dopo un valore letterale numerico.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Non è possibile dichiarare un'implementazione in contesti di ambiente.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias di importazione non può fare riferimento a una dichiarazione esportata con 'export type'.", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias di importazione non può fare riferimento a una dichiarazione importata con 'import type'.", - "An_import_alias_cannot_use_import_type_1392": "Un alias di importazione non può usare 'import type'", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Una dichiarazione di importazione può essere usata solo al livello superiore di un modulo.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Una dichiarazione di importazione può essere usata solo al livello superiore di uno spazio dei nomi o di un modulo.", - "An_import_declaration_cannot_have_modifiers_1191": "Una dichiarazione di importazione non può contenere modificatori.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Un percorso di importazione non può terminare con l'estensione '{0}'. In alternativa, provare a importare '{1}'.", - "An_index_signature_cannot_have_a_rest_parameter_1017": "Una firma dell'indice non può contenere un parametro rest.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "Una firma dell'indice non può contenere una virgola finale.", - "An_index_signature_must_have_a_type_annotation_1021": "Una firma dell'indice deve contenere un'annotazione di tipo.", - "An_index_signature_must_have_exactly_one_parameter_1096": "Una firma dell'indice deve contenere un solo parametro.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "Un parametro della firma dell'indice non può contenere un punto interrogativo.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "Un parametro della firma dell'indice non può contenere un modificatore di accessibilità.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "Un parametro della firma dell'indice non può contenere un inizializzatore.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "Un parametro della firma dell'indice deve contenere un'annotazione di tipo.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "Un tipo di parametro della firma dell'indice non può essere un tipo di valore letterale o un tipo generico. Considerare l'utilizzo di un tipo di oggetto con mapping.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "Un tipo di parametro della firma dell'indice deve essere 'stringa', 'numero', 'simbolo' o un tipo di valore letterale del modello.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Un'espressione di creazione di un'istanza non può essere seguita da un accesso a proprietà.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Un'interfaccia può estendere solo un identificatore/nome qualificato con argomenti tipo facoltativi.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Un'interfaccia può estendere solo un tipo di oggetto o un'intersezione di tipi di oggetto con membri noti in modo statico.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Un'interfaccia non può estendere un tipo primitivo come '{0}'; un'interfaccia può estendere solo tipi e classi denominati", - "An_interface_property_cannot_have_an_initializer_1246": "Una proprietà di interfaccia non può contenere un inizializzatore.", - "An_iterator_must_have_a_next_method_2489": "Un iteratore deve contenere un metodo 'next()'.", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Quando si usa un'istruzione @jsx con frammenti JSX, è necessaria un'istruzione pragma @jsxFrag.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "Un valore letterale di oggetto non può contenere più funzioni di accesso get/set con lo stesso nome.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un valore letterale di oggetto non può contenere più proprietà con lo stesso nome.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un valore letterale di oggetto non può contenere proprietà e funzioni di accesso con lo stesso nome.", - "An_object_member_cannot_be_declared_optional_1162": "Un membro di oggetto non può essere dichiarato come facoltativo.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "Una catena facoltativa non può contenere identificatori privati.", - "An_optional_element_cannot_follow_a_rest_element_1266": "Non è possibile specificare un elemento facoltativo dopo un elemento REST.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Un valore esterno di 'this' è nascosto da questo contenitore.", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Non è possibile dichiarare come generatore una firma di overload.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Nella parte sinistra di un'espressione di elevamento a potenza non è consentita un'espressione unaria con l'operatore '{0}'. Provare a racchiudere l'espressione tra parentesi.", - "Annotate_everything_with_types_from_JSDoc_95043": "Annotare tutto con tipi di JSDoc", - "Annotate_with_type_from_JSDoc_95009": "Annotare con tipo di JSDoc", - "Another_export_default_is_here_2753": "In questo punto è presente un'altra impostazione predefinita per l'esportazione.", - "Are_you_missing_a_semicolon_2734": "Manca un punto e virgola?", - "Argument_expression_expected_1135": "È prevista l'espressione di argomento.", - "Argument_for_0_option_must_be_Colon_1_6046": "L'argomento per l'opzione '{0}' deve essere {1}.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "L'argomento dell'importazione dinamica non può essere l'elemento spread.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "L'argomento di tipo '{0}' non è assegnabile al parametro di tipo '{1}'.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "L'argomento di tipo '{0}' non può essere assegnato al parametro di tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' ai tipi di proprietà di destinazione.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Gli argomenti per il parametro REST '{0}' non sono stati specificati.", - "Array_element_destructuring_pattern_expected_1181": "È previsto il criterio di destrutturazione dell'elemento della matrice.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Con le asserzioni ogni nome nella destinazione di chiamata deve essere dichiarato con un'annotazione di tipo esplicita.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Con le asserzioni la destinazione di chiamata deve essere un identificatore o un nome completo.", - "Asterisk_Slash_expected_1010": "È previsto '*/'.", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Gli aumenti per l'ambito globale possono solo essere direttamente annidati in dichiarazioni di modulo di ambiente o moduli esterni.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Gli aumenti per l'ambito globale devono contenere il modificatore 'declare', a meno che non siano già presenti in un contesto di ambiente.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Il rilevamento automatico per le defizioni di tipi è abilitato nel progetto '{0}'. Verrà eseguito il passaggio di risoluzione aggiuntivo per il modulo '{1}' usando il percorso della cache '{2}'.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Non è possibile usare l'espressione await all'interno di un blocco statico di classe.", - "BUILD_OPTIONS_6919": "OPZIONI DI COMPILAZIONE", - "Backwards_Compatibility_6253": "Compatibilità con le versioni precedenti", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Le espressioni di classi di base non possono fare riferimento a parametri di tipo classe.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "Il tipo restituito '{0}' del costruttore di base non è un tipo di oggetto o un'intersezione di tipi di oggetto con membri noti in modo statico.", - "Base_constructors_must_all_have_the_same_return_type_2510": "Il tipo restituito deve essere identico per tutti i costruttori di base.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "Directory di base per risolvere i nomi di modulo non assoluti.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "I valori letterali bigint non sono disponibili quando la destinazione è precedente a ES2020.", - "Binary_digit_expected_1177": "È prevista una cifra binaria.", - "Binding_element_0_implicitly_has_an_1_type_7031": "L'elemento di binding '{0}' contiene implicitamente un tipo '{1}'.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "La variabile con ambito blocco '{0}' è stata usata prima di essere stata dichiarata.", - "Build_a_composite_project_in_the_working_directory_6925": "Compila un progetto composito nella directory di lavoro.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Compilare tutti i progetti, anche quelli che sembrano aggiornati.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Compilare uno o più progetti e le relative dipendenze, se non aggiornate", - "Build_option_0_requires_a_value_of_type_1_5073": "Con l'opzione di compilazione '{0}' è richiesto un valore di tipo {1}.", - "Building_project_0_6358": "Compilazione del progetto '{0}'...", - "COMMAND_LINE_FLAGS_6921": "FLAG DELLA RIGA DI COMANDO", - "COMMON_COMMANDS_6916": "COMANDI COMUNI", - "COMMON_COMPILER_OPTIONS_6920": "OPZIONI COMUNI DEL COMPILATORE", - "Call_decorator_expression_90028": "Chiamare l'espressione Decorator", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "I tipi restituiti delle firme di chiamata '{0}' e '{1}' sono incompatibili.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La firma di chiamata, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito 'any'.", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Le firme di chiamata senza argomenti contengono i tipi restituiti incompatibili '{0}' e '{1}'.", - "Call_target_does_not_contain_any_signatures_2346": "La destinazione della chiamata non contiene alcuna firma.", - "Can_only_convert_logical_AND_access_chains_95142": "È possibile convertire solo catene di accesso AND logiche", - "Can_only_convert_named_export_95164": "È possibile solo convertire l'esportazione denominata", - "Can_only_convert_property_with_modifier_95137": "È possibile convertire solo la proprietà con il modificatore", - "Can_only_convert_string_concatenation_95154": "È possibile convertire solo la concatenazione di stringhe", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Non è possibile accedere a '{0}.{1}' perché '{0}' è un tipo ma non uno spazio dei nomi. Si intendeva recuperare il tipo della proprietà '{1}' in '{0}' con '{0}[\"{1}\"]'?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Quando si specifica il flag '--isolatedModules', non è possibile accedere a enumerazioni const di ambiente.", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Non è possibile assegnare un tipo di costruttore '{0}' a un tipo di costruttore '{1}'.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Non è possibile assegnare un tipo di costruttore astratto a un tipo di costruttore non astratto.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "Non è possibile assegnare a '{0}' perché è una classe.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "Non è possibile assegnare a '{0}' perché è una costante.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "Non è possibile assegnare a '{0}' perché è una funzione.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "Non è possibile assegnare a '{0}' perché è uno spazio dei nomi.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "Non è possibile assegnare a '{0}' perché è una proprietà di sola lettura.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "Non è possibile assegnare a '{0}' perché è un'enumerazione.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "Non è possibile assegnare a '{0}' perché è una direttiva import.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "Non è possibile assegnare a '{0}' perché non è una variabile.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "Non è possibile assegnare al metodo privato '{0}'. I metodi privati non sono scrivibili.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "Non è possibile aumentare il modulo '{0}' perché viene risolto in un'entità non modulo.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "Non è possibile aumentare il modulo '{0}' con le esportazioni dei valori perché viene risolto in un'entità non modulo.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "Non è possibile compilare moduli con l'opzione '{0}' a meno che il flag '--module' non sia impostato su 'amd' o 'system'.", - "Cannot_create_an_instance_of_an_abstract_class_2511": "Non è possibile creare un'istanza di una classe astratta.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "Non è possibile delegare l'iterazione al valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma il generatore che la contiene invierà sempre '{0}'.", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "Non è possibile esportare '{0}'. Da un modulo è possibile esportare solo dichiarazioni locali.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "Non è possibile estendere una classe '{0}'. Il costruttore di classe è contrassegnato come privato.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "Non è possibile estendere un'interfaccia '{0}'. Si intendeva usare 'implements'?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "Non è possibile trovare alcun file tsconfig.json nella directory corrente: {0}.", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Non è stato trovato alcun file tsconfig.json nella directory specificata '{0}'.", - "Cannot_find_global_type_0_2318": "Il tipo globale '{0}' non è stato trovato.", - "Cannot_find_global_value_0_2468": "Il valore globale '{0}' non è stato trovato.", - "Cannot_find_lib_definition_for_0_2726": "La definizione della libreria per '{0}' non è stata trovata.", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "La definizione della libreria per '{0}' non è stata trovata. Si intendeva '{1}'?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Non è possibile trovare il modulo '{0}'. Provare a usare '--resolveJsonModule' per importare il modulo con estensione '.json'.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Non è possibile trovare il modulo '{0}'. Si intendeva impostare l'opzione 'moduleResolution' su 'node' o aggiungere alias all'opzione 'paths'?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Non è possibile trovare il modulo '{0}' o le relative dichiarazioni di tipo corrispondenti.", - "Cannot_find_name_0_2304": "Il nome '{0}' non è stato trovato.", - "Cannot_find_name_0_Did_you_mean_1_2552": "Il nome '{0}' non è stato trovato. Si intendeva '{1}'?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Il nome '{0}' non è stato trovato. Si intendeva il membro di istanza 'this.{0}'?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "Il nome '{0}' non è stato trovato. Si intendeva il membro statico '{1}.{0}'?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Impossibile trovare il nome '{0}'. Si intendeva scrivere questo elemento in una funzione asincrona?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su '{1}' o versioni successive.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a modificare l'opzione 'lib' del compilatore in modo che includa 'dom'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per un test runner? Provare con `npm i --save-dev @types/jest` o `npm i --save-dev @types/mocha`.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per un test runner? Provare con `npm i --save-dev @types/jest` o `npm i --save-dev @types/mocha` e quindi aggiungere 'jest' o 'mocha' al campo types in tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per jQuery? Provare con `npm i --save-dev @types/jquery`.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per jQuery? Provare con `npm i --save-dev @types/jquery` e quindi aggiungere 'jquery' al campo types in tsconfig.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per il nodo? Provare con `npm i --save-dev @types/node`.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per il nodo? Provare con `npm i --save-dev @types/node` e quindi aggiungere 'node' al campo types in tsconfig.", - "Cannot_find_namespace_0_2503": "Lo spazio dei nomi '{0}' non è stato trovato.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "Il nome '{0}' non è stato trovato. Intendevi '{1}'?", - "Cannot_find_parameter_0_1225": "Il parametro '{0}' non è stato trovato.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "Il percorso della sottodirectory comune per i file di input non è stato trovato.", - "Cannot_find_type_definition_file_for_0_2688": "Il file di definizione del tipo per '{0}' non è stato trovato.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "Non è possibile importare file di dichiarazione di tipo. Provare a importare '{0}' invece di '{1}'.", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "Non è possibile inizializzare la variabile con ambito esterna '{0}' nello stesso ambito della dichiarazione con ambito del blocco '{1}'.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "Non è possibile richiamare un oggetto che è probabilmente 'null'.", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "Non è possibile richiamare un oggetto che è probabilmente 'null' o 'undefined'.", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "Non è possibile richiamare un oggetto che è probabilmente 'undefined'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma la destrutturazione della matrice invierà sempre '{0}'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma l'estensione della matrice invierà sempre '{0}'.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma for-of invierà sempre '{0}'.", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Non è possibile anteporre il progetto '{0}' perché 'outFile' non è impostato", - "Cannot_read_file_0_5083": "Non è possibile leggere il file '{0}'.", - "Cannot_read_file_0_Colon_1_5012": "Non è possibile leggere il file '{0}': {1}.", - "Cannot_redeclare_block_scoped_variable_0_2451": "Non è possibile dichiarare di nuovo la variabile con ambito blocco '{0}'.", - "Cannot_redeclare_exported_variable_0_2323": "Non è possibile dichiarare di nuovo la variabile esportata '{0}'.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Non è possibile dichiarare di nuovo l'identificatore '{0}' nella clausola catch.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "Non è possibile avviare una chiamata di funzione in un'annotazione di tipo.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Non è possibile aggiornare l'output del progetto '{0}' perché si è verificato un errore durante la lettura del file '{1}'", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Non è possibile usare JSX a meno che non sia specificato il flag '--jsx'.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Non è possibile usare 'export import' in un tipo o in uno spazio dei nomi solo di tipo quando si specifica il flag '--isolatedModules'.", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Non è possibile usare importazioni, esportazioni o aumenti del modulo quando il valore di '--module' è 'none'.", - "Cannot_use_namespace_0_as_a_type_2709": "Non è possibile usare lo spazio dei nomi '{0}' come tipo.", - "Cannot_use_namespace_0_as_a_value_2708": "Non è possibile usare lo spazio dei nomi '{0}' come valore.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "Non è possibile usare 'this' in un inizializzatore di proprietà statica di una classe decorata.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "Non è possibile scrivere il file '{0}' perché sovrascriverà il file '.tsbuildinfo' generato dal progetto di riferimento '{1}'", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "Non è possibile scrivere il file '{0}' perché verrebbe sovrascritto da più file di input.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "Non è possibile scrivere il file '{0}' perché sovrascriverebbe il file di input.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "La variabile della clausola catch non può contenere un inizializzatore.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "Se specificata, l'annotazione del tipo di variabile della clausola catch deve essere 'any' o 'unknown'.", - "Change_0_to_1_90014": "Modificare '{0}' in '{1}'", - "Change_all_extended_interfaces_to_implements_95038": "Cambiare tutte le interfacce estese in 'implements'", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "Cambiare tutti i tipi in stile jsdoc in TypeScript", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "Cambiare tutti i tipi in stile jsdoc in TypeScript (e aggiungere '| undefined' ai tipi nullable)", - "Change_extends_to_implements_90003": "Cambiare 'extends' in 'implements'", - "Change_spelling_to_0_90022": "Modificare l'ortografia in '{0}'", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Verifica la presenza di proprietà di classe dichiarate ma non impostate nel costruttore.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Verifica che gli argomenti per i metodi 'bind', 'call', and 'apply' corrispondano alla funzione originale.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Verrà verificato se '{0}' è il prefisso di corrispondenza più lungo per '{1}' - '{2}'.", - "Circular_definition_of_import_alias_0_2303": "Definizione circolare dell'alias di importazione '{0}'.", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "È stata rilevata una circolarità durante la risoluzione della configurazione: {0}", - "Circularity_originates_in_type_at_this_location_2751": "La circolarità ha origine nel tipo in questa posizione.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "La classe '{0}' definisce '{1}' come funzione di accesso di membro di istanza, mentre la classe estesa '{2}' la definisce come funzione di membro di istanza.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "La classe '{0}' definisce '{1}' come funzione di membro di istanza, mentre la classe estesa '{2}' la definisce come funzione di accesso di membro di istanza.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "La classe '{0}' definisce '{1}' come proprietà di membro di istanza, mentre la classe estesa '{2}' la definisce come funzione di membro di istanza.", - "Class_0_incorrectly_extends_base_class_1_2415": "La classe '{0}' estende in modo errato la classe di base '{1}'.", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "La classe '{0}' implementa in modo errato la classe '{1}'. Si intendeva estendere '{1}' ed ereditarne i membri come sottoclasse?", - "Class_0_incorrectly_implements_interface_1_2420": "La classe '{0}' implementa in modo errato l'interfaccia '{1}'.", - "Class_0_used_before_its_declaration_2449": "La classe '{0}' è stata usata prima di essere stata dichiarata.", - "Class_constructor_may_not_be_a_generator_1368": "Il costruttore di classe non può essere un generatore.", - "Class_constructor_may_not_be_an_accessor_1341": "Il costruttore di classe non può essere una funzione di accesso.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "La dichiarazione classe non può implementare l'elenco di overload per '{0}'.", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Le dichiarazioni di classe non possono contenere più di un tag '@augments' o '@extends'.", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Non è possibile elementi Decorator di classe con l'identificatore privato statico. Provare a rimuovere l'elemento Decorator sperimentale.", - "Class_name_cannot_be_0_2414": "Il nome della classe non può essere '{0}'.", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Il nome della classe non può essere 'Object' quando la destinazione è ES5 con il modulo {0}.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Il lato statico '{0}' della classe estende in modo errato il lato statico '{1}' della classe di base.", - "Classes_can_only_extend_a_single_class_1174": "Le classi possono estendere solo un'unica classe.", - "Classes_may_not_have_a_field_named_constructor_18006": "Le classi non possono includere un campo denominato 'constructor'.", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "Il codice contenuto in una classe viene valutato in modalità strict JavaScript, che non consente l'uso di '{0}'. Per altre informazioni, vedere https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.", - "Command_line_Options_6171": "Opzioni della riga di comando", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compila il progetto in base al percorso del file di configurazione o della cartella contenente un file 'tsconfig.json'.", - "Compiler_Diagnostics_6251": "Diagnostica compilatore", - "Compiler_option_0_expects_an_argument_6044": "Con l'opzione '{0}' del compilatore è previsto un argomento.", - "Compiler_option_0_may_not_be_used_with_build_5094": "L'opzione del compilatore '--{0}' potrebbe non essere usata con '--build'.", - "Compiler_option_0_may_only_be_used_with_build_5093": "L'opzione del compilatore '--{0}' potrebbe essere usata solo con '--build'.", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "L'opzione del compilatore '{0}' del valore '{1}' è instabile. Usare TypeScript notturno per disattivare l'errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.", - "Compiler_option_0_requires_a_value_of_type_1_5024": "Con l'opzione '{0}' del compilatore è richiesto un valore di tipo {1}.", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "Il compilatore riserva il nome '{0}' quando si crea l'identificatore privato per browser meno recenti.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "Compila il progetto TypeScript presente nel percorso specificato.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "Compila il progetto corrente (tsconfig.json nella directory di lavoro).", - "Compiles_the_current_project_with_additional_settings_6929": "Compila il progetto corrente con impostazioni aggiuntive.", - "Completeness_6257": "Completezza", - "Composite_projects_may_not_disable_declaration_emit_6304": "I progetti compositi non possono disabilitare la creazione di dichiarazioni.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "I progetti compositi non possono disabilitare la compilazione incrementale.", - "Computed_from_the_list_of_input_files_6911": "Calcolato dall'elenco dei file di input", - "Computed_property_names_are_not_allowed_in_enums_1164": "I nomi di proprietà calcolati non sono consentiti nelle enumerazioni.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "In un'enumerazione con membri con valore stringa non sono consentiti valori calcolati.", - "Concatenate_and_emit_output_to_single_file_6001": "Concatena e crea l'output in un singolo file.", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "In '{1}' e '{2}' sono state trovate definizioni in conflitto per '{0}'. Per risolvere il conflitto, provare a installare una versione specifica di questa libreria.", - "Conflicts_are_in_this_file_6201": "I conflitti si trovano in questo file.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "Provare ad aggiungere un modificatore \"declare\" a questa classe.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "I tipi restituiti delle firme del costrutto '{0}' e '{1}' sono incompatibili.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "La firma del costrutto, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito 'any'.", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "Le firme di costrutto senza argomenti contengono i tipi restituiti incompatibili '{0}' e '{1}'.", - "Constructor_implementation_is_missing_2390": "Manca l'implementazione di costruttore.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "Il costruttore della classe '{0}' è privato e accessibile solo all'interno della dichiarazione di classe.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "Il costruttore della classe '{0}' è protetto e accessibile solo all'interno della dichiarazione di classe.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "La notazione del tipo di costruttore deve essere racchiusa tra parentesi quando viene usata in un tipo di unione.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "La notazione del tipo di costruttore deve essere racchiusa tra parentesi quando viene usata in un tipo di intersezione.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "I costruttori di classi derivate devono contenere una chiamata 'super'.", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "Il file contenitore non è specificato e non è possibile determinare la directory radice. La ricerca nella cartella 'node_modules' verrà ignorata.", - "Containing_function_is_not_an_arrow_function_95128": "La funzione contenitore non è una funzione arrow", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "Controllare il metodo usato per rilevare i file JS in formato modulo.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "La conversione del tipo '{0}' nel tipo '{1}' può essere un errore perché nessuno dei due tipi si sovrappone sufficientemente all'altro. Se questa opzione è intenzionale, convertire prima l'espressione in 'unknown'.", - "Convert_0_to_1_in_0_95003": "Convertire '{0}' in '{1} in {0}'", - "Convert_0_to_mapped_object_type_95055": "Convertire '{0}' nel tipo di oggetto con mapping", - "Convert_all_const_to_let_95102": "Convertire ogni 'const' in 'let'", - "Convert_all_constructor_functions_to_classes_95045": "Convertire tutte le funzioni di costruttore in classi", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertire tutte le importazioni non usate come valore in importazioni solo di tipi", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertire tutti i caratteri non validi nel codice entità HTML", - "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertire tutti i tipi riesportati in esportazioni solo di tipi", - "Convert_all_require_to_import_95048": "Convertire tutte le occorrenze di 'require' in 'import'", - "Convert_all_to_async_functions_95066": "Convertire tutto in funzioni asincrone", - "Convert_all_to_bigint_numeric_literals_95092": "Convertire tutto in valori letterali numerici bigint", - "Convert_all_to_default_imports_95035": "Convertire tutte le impostazioni predefinite", - "Convert_all_type_literals_to_mapped_type_95021": "Convertire tutti i valori letterali di tipo nel tipo di cui è stato eseguito il mapping", - "Convert_arrow_function_or_function_expression_95122": "Convertire la funzione arrow o l'espressione di funzione", - "Convert_const_to_let_95093": "Convertire 'const' in 'let'", - "Convert_default_export_to_named_export_95061": "Convertire l'esportazione predefinita nell'esportazione denominata", - "Convert_function_declaration_0_to_arrow_function_95106": "Convertire la dichiarazione di funzione '{0}' nella funzione arrow", - "Convert_function_expression_0_to_arrow_function_95105": "Convertire l'espressione di funzione '{0}' nella funzione arrow", - "Convert_function_to_an_ES2015_class_95001": "Converti la funzione in una classe ES2015", - "Convert_invalid_character_to_its_html_entity_code_95100": "Convertire il carattere non valido nel relativo codice entità HTML", - "Convert_named_export_to_default_export_95062": "Convertire l'esportazione denominata nell'esportazione predefinita", - "Convert_named_imports_to_default_import_95170": "Converti importazioni denominate nell'importazione predefinita", - "Convert_named_imports_to_namespace_import_95057": "Convertire le importazioni denominate in importazione spazi dei nomi", - "Convert_namespace_import_to_named_imports_95056": "Convertire l'importazione spazi dei nomi in importazioni denominate", - "Convert_overload_list_to_single_signature_95118": "Convertire l'elenco di overload in una firma singola", - "Convert_parameters_to_destructured_object_95075": "Convertire i parametri nell'oggetto destrutturato", - "Convert_require_to_import_95047": "Convertire 'require' in 'import'", - "Convert_to_ES_module_95017": "Converti nel modulo ES6", - "Convert_to_a_bigint_numeric_literal_95091": "Convertire in un valore letterale numerico bigint", - "Convert_to_anonymous_function_95123": "Convertire nella funzione anonima", - "Convert_to_arrow_function_95125": "Convertire nella funzione arrow", - "Convert_to_async_function_95065": "Convertire nella funzione asincrona", - "Convert_to_default_import_95013": "Convertire nell'importazione predefinita", - "Convert_to_named_function_95124": "Convertire nella funzione denominata", - "Convert_to_optional_chain_expression_95139": "Convertire nell'espressione di catena facoltativa", - "Convert_to_template_string_95096": "Convertire nella stringa di modello", - "Convert_to_type_only_export_1364": "Convertire nell'esportazione solo di tipi", - "Convert_to_type_only_import_1373": "Convertire nell'importazione solo di tipi", - "Corrupted_locale_file_0_6051": "Il file delle impostazioni locali {0} è danneggiato.", - "Could_not_convert_to_anonymous_function_95153": "Non è stato possibile convertire nella funzione anonima", - "Could_not_convert_to_arrow_function_95151": "Non è stato possibile convertire nella funzione arrow", - "Could_not_convert_to_named_function_95152": "Non è stato possibile convertire nella funzione denominata", - "Could_not_determine_function_return_type_95150": "Non è stato possibile determinare il tipo restituito dalla funzione", - "Could_not_find_a_containing_arrow_function_95127": "Non è stato possibile trovare una funzione arrow contenitore", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "Non è stato trovato alcun file di dichiarazione per il modulo '{0}'. A '{1}' è assegnato implicitamente un tipo 'any'.", - "Could_not_find_convertible_access_expression_95140": "Non è stato possibile trovare l'espressione di accesso convertibile", - "Could_not_find_export_statement_95129": "Non è stato possibile trovare l'istruzione di esportazione", - "Could_not_find_import_clause_95131": "Non è stato possibile trovare la clausola di importazione", - "Could_not_find_matching_access_expressions_95141": "Non è stato possibile trovare espressioni di accesso corrispondenti", - "Could_not_find_name_0_Did_you_mean_1_2570": "Non è stato possibile trovare il nome '{0}'. Si intendeva '{1}'?", - "Could_not_find_namespace_import_or_named_imports_95132": "Non è stato possibile trovare l'importazione spazi dei nomi o importazioni denominate", - "Could_not_find_property_for_which_to_generate_accessor_95135": "Non è stato possibile trovare la proprietà per cui generare la funzione di accesso", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Non è stato possibile risolvere il percorso '{0}' con le estensioni: {1}.", - "Could_not_write_file_0_Colon_1_5033": "Non è stato possibile scrivere il file '{0}': {1}.", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "Crea file di mapping di origine per i file JavaScript creati.", - "Create_sourcemaps_for_d_ts_files_6614": "Crea mapping di origine per i file d.ts.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crea un file tsconfig.jscon le impostazioni consigliate nella directory di lavoro.", - "DIRECTORY_6038": "DIRECTORY", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "La dichiarazione causa un aumento di una dichiarazione in un altro file. Questa operazione non è serializzabile.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}' dal modulo '{1}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.", - "Declaration_expected_1146": "È prevista la dichiarazione.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Il nome della dichiarazione è in conflitto con l'identificatore globale predefinito '{0}'.", - "Declaration_or_statement_expected_1128": "È prevista la dichiarazione o l'istruzione.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Dichiarazione o istruzione prevista. Questo carattere '=' segue un blocco di istruzioni, di conseguenza se si intende scrivere un'assegnazione di destrutturazione, potrebbe essere necessario racchiudere l'intera assegnazione tra parentesi.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Le dichiarazioni con asserzioni di assegnazione definite devono includere anche annotazioni di tipo.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Le dichiarazioni con inizializzatori non possono includere anche asserzioni di assegnazione definite.", - "Declare_a_private_field_named_0_90053": "Dichiarare un campo privato denominato '{0}'.", - "Declare_method_0_90023": "Dichiarare il metodo '{0}'", - "Declare_private_method_0_90038": "Dichiarare il metodo privato '{0}'", - "Declare_private_property_0_90035": "Dichiarare la proprietà privata '{0}'", - "Declare_property_0_90016": "Dichiarare la proprietà '{0}'", - "Declare_static_method_0_90024": "Dichiarare il metodo statico '{0}'", - "Declare_static_property_0_90027": "Dichiarare la proprietà statica '{0}'", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Il tipo restituito della funzione Decorator '{0}' non è assegnabile al tipo '{1}'.", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Il tipo restituito della funzione Decorator è '{0}' ma è previsto 'void' o 'any'.", - "Decorators_are_not_valid_here_1206": "In questo punto le espressioni Decorator non sono valide.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Non è possibile applicare le espressioni Decorator a più funzioni di accesso get/set con lo stesso nome.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "Gli elementi Decorator potrebbero non essere applicati ai parametri 'this'.", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Gli elementi Decorator devono precedere il nome e tutte le parole chiave delle dichiarazioni di proprietà.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Le variabili della clausola catch predefinite sono 'unknown' anziché 'any'.", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "L'esportazione predefinita del modulo contiene o usa il nome privato '{0}'.", - "Default_library_1424": "Libreria predefinita", - "Default_library_for_target_0_1425": "Libreria predefinita per la destinazione '{0}'", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Le definizioni degli identificatori seguenti sono in conflitto con quelle di un altro file: {0}", - "Delete_all_unused_declarations_95024": "Eliminare tutte le dichiarazioni non usate", - "Delete_all_unused_imports_95147": "Eliminare tutte le direttive import non usate", - "Delete_all_unused_param_tags_95172": "Eliminare tutti i tag '@param' inutilizzati", - "Delete_the_outputs_of_all_projects_6365": "Eliminare gli output di tutti i progetti.", - "Delete_unused_param_tag_0_95171": "Eliminare il tag '@param' '{0}' inutilizzato", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Deprecata] In alternativa, usare '--jsxFactory'. Specifica l'oggetto richiamato per createElement quando la destinazione è la creazione JSX 'react'", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Deprecata] In alternativa, usare '--outFile'. Concatena e crea l'output in un singolo file", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Deprecata] In alternativa, usare '--skipLibCheck'. Ignora il controllo del tipo dei file di dichiarazione delle librerie predefinite.", - "Deprecated_setting_Use_outFile_instead_6677": "Impostazione deprecata. In alternativa, usare 'outFile'.", - "Did_you_forget_to_use_await_2773": "Si è omesso di usare 'await'?", - "Did_you_mean_0_1369": "Si intendeva '{0}'?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "Si intendeva che '{0}' fosse vincolato al tipo 'new (...args: any[]) => {1}'?", - "Did_you_mean_to_call_this_expression_6212": "Si intendeva chiamare questa espressione?", - "Did_you_mean_to_mark_this_function_as_async_1356": "Si intendeva contrassegnare questa funzione come 'async'?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "Si intendeva usare i due punti (':')? È possibile usare il carattere '=' dopo un nome di proprietà, solo quando il valore letterale di oggetto che lo contiene fa parte di un criterio di destrutturazione.", - "Did_you_mean_to_use_new_with_this_expression_6213": "Si intende usare 'new' con questa espressione?", - "Digit_expected_1124": "È prevista la cifra.", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "La directory '{0}' non esiste. Tutte le ricerche che la interessano verranno ignorate.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "La directory ' {0}' non contiene alcun ambito package.json. Non sarà possibile risolvere le importazioni.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "Disabilita l'aggiunta di direttive `use strict` nei file JavaScript generati.", - "Disable_checking_for_this_file_90018": "Disabilitare la verifica per questo file", - "Disable_emitting_comments_6688": "Disabilita la creazione di commenti.", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "Disabilita la creazione di dichiarazioni che contengono '@internal' nei commenti JSDoc.", - "Disable_emitting_files_from_a_compilation_6660": "Disabilita la creazione di file da una compilazione.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "Disabilita la creazione di file se vengono restituiti errori di controllo del tipo.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Disabilita la cancellazione delle dichiarazioni 'const enum' nel codice generato.", - "Disable_error_reporting_for_unreachable_code_6603": "Disabilita la segnalazione errori per il codice non raggiungibile.", - "Disable_error_reporting_for_unused_labels_6604": "Disabilita la segnalazione errori per le etichette non usate.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Disabilita la generazione di funzioni helper personalizzate come '__extends' nell'output compilato.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Disabilita l'inclusione di tutti i file di libreria, incluso il file lib.d.ts predefinito.", - "Disable_loading_referenced_projects_6235": "Disabilitare il caricamento dei progetti cui viene fatto riferimento.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "Disabilita la preferenza per i file di origine invece dei file di dichiarazione quando si fa riferimento a progetti compositi.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "Disabilita la segnalazione errori di proprietà in eccesso durante la creazione di valori letterali dell'oggetto.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "Disabilita la risoluzione dei collegamenti simbolici nei relativi realpath. È correlato allo stesso flag presente nel nodo.", - "Disable_size_limitations_on_JavaScript_projects_6162": "Disabilita le dimensioni relative alle dimensioni per i progetti JavaScript.", - "Disable_solution_searching_for_this_project_6224": "Disabilitare la ricerca della soluzione per questo progetto.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "Disabilitare il controllo tassativo delle firme generiche nei tipi funzione.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "Disabilita l'acquisizione del tipo per i progetti JavaScript", - "Disable_truncating_types_in_error_messages_6663": "Disabilita il troncamento dei tipi nei messaggi di errore.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "Disabilitare l'uso di file di origine invece dei file di dichiarazione dai progetti a cui si fa riferimento.", - "Disable_wiping_the_console_in_watch_mode_6684": "Disabilita la cancellazione della console in modalità espressione di controllo.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "Disabilita l'inferenza per l'acquisizione del tipo esaminando i nomi di file in un progetto.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Non consente a direttive 'import's, 'require's o '' di espandere il numero di file che TypeScript deve aggiungere a un progetto.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Non consente riferimenti allo stesso file in cui le maiuscole/minuscole vengono usate in modo incoerente.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Non aggiunge riferimenti con tripla barra (////) o moduli importati all'elenco di file compilati.", - "Do_not_emit_comments_to_output_6009": "Non crea commenti nell'output.", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Non crea dichiarazioni per codice che contiene un'annotazione '@internal'.", - "Do_not_emit_outputs_6010": "Non crea output.", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "Non crea output se sono stati restituiti errori.", - "Do_not_emit_use_strict_directives_in_module_output_6112": "Non crea direttive 'use strict' nell'output del modulo.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "Non cancella le dichiarazioni di enumerazione const nel codice generato.", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "Non genera funzioni di supporto personalizzate, come '__extends', nell'output compilato.", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "Non include il file di libreria predefinito (lib.d.ts).", - "Do_not_report_errors_on_unreachable_code_6077": "Non segnala gli errori in caso di codice non raggiungibile.", - "Do_not_report_errors_on_unused_labels_6074": "Non segnala gli errori in caso di etichette non usate.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "Non risolvere il percorso reale di collegamenti simbolici.", - "Do_not_truncate_error_messages_6165": "Non tronca i messaggi di errore.", - "Duplicate_function_implementation_2393": "Implementazione di funzione duplicata.", - "Duplicate_identifier_0_2300": "Identificatore '{0}' duplicato.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "Identificatore '{0}' duplicato. Il compilatore riserva il nome '{1}' nell'ambito di primo livello di un modulo.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "L'identificatore '{0}' è duplicato. Il compilatore riserva il nome '{1}' nell'ambito di primo livello di un modulo che contiene funzioni asincrone.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "L'identificatore '{0}' è duplicato. Il compilatore riserva il nome '{1}' durante la creazione dei riferimenti 'super' negli inizializzatori statici.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "Identificatore '{0}' duplicato. Il compilatore usa la dichiarazione '{1}' per supportare le funzioni asincrone.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "L'identificatore '{0}' è duplicato. Gli elementi statici e di istanza non possono condividere lo stesso nome privato.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "Identificatore 'arguments' duplicato. Il compilatore usa 'arguments' per inizializzare i parametri rest.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "Identificatore '_newTarget' duplicato. Il compilatore usa la dichiarazione di variabile '_newTarget' per acquisire il riferimento alla metaproprietà 'new.target'.", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "Identificatore '_this' duplicato. Il compilatore usa la dichiarazione di variabile '_this' per acquisire il riferimento 'this'.", - "Duplicate_index_signature_for_type_0_2374": "Firma dell'indice duplicata per il tipo '{0}'.", - "Duplicate_label_0_1114": "Etichetta '{0}' duplicata.", - "Duplicate_property_0_2718": "La proprietà '{0}' è duplicata.", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "L'identificatore dell'importazione dinamica deve essere di tipo 'string', ma il tipo specificato qui è '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Le importazioni dinamiche sono supportate solo quando il flag '--module' è impostato su 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' o 'nodenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Le importazioni dinamiche possono accettare come argomenti solo un identificatore di modulo e un'asserzione facoltativa", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Le importazioni dinamiche supportano un secondo argomento solo quando l'opzione '--module' è impostata su ''esnext', 'node16', o 'nodenext'.", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Ogni membro del tipo di unione '{0}' contiene firme di costrutto, ma nessuna di tali firme è compatibile con le altre.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Ogni membro del tipo di unione '{0}' contiene firme, ma nessuna di tali firme è compatibile con le altre.", - "Editor_Support_6249": "Supporto Editor", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "L'elemento contiene implicitamente un tipo 'any' perché non è possibile usare l'espressione di tipo '{0}' per indicizzare il tipo '{1}'.", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "L'elemento contiene implicitamente un tipo 'any' perché l'espressione di indice non è di tipo 'number'.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "L'elemento contiene implicitamente un tipo 'any' perché al tipo '{0}' non è assegnata alcuna firma dell'indice.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "L'elemento contiene implicitamente un tipo 'any' perché al tipo '{0}' non è assegnata alcuna firma dell'indice. Si intendeva chiamare '{1}'?", - "Emit_6246": "Crea", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "Crea campi di classe conformi allo standard ECMAScript.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "Crea un BOM (Byte Order Mark) UTF-8 all'inizio dei file di output.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "Crea un unico file con i mapping di origine invece di file separati.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "Crea un profilo CPU v8 dell'esecuzione del compilatore per il debug.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "Crea codice JavaScript aggiuntivo per semplificare il supporto per l'importazione di moduli CommonJS. Abilita 'allowSyntheticDefaultImports' per la compatibilità dei tipi.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Creare i campi della classe con Define invece di Set.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "Crea metadati di tipo progettazione per le dichiarazioni decorate nei file di origine.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "Crea codice JavaScript più conforme, ma dettagliato e meno efficiente per l'iterazione.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "Crea l'origine unitamente ai mapping di origine all'interno di un unico file. Richiede l'impostazione di '--inlineSourceMap' o '--sourceMap'.", - "Enable_all_strict_type_checking_options_6180": "Abilita tutte le opzioni per i controlli del tipo strict.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "Abilita il colore e la formattazione nell'output TypeScript per agevolare la lettura degli errori del compilatore.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "Abilita i vincoli che consentono l'uso di un progetto TypeScript con riferimenti al progetto.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "Abilita la segnalazione errori per i percorsi di codice che non vengono restituiti in modo esplicito in una funzione.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "Abilita la segnalazione errori per espressioni e dichiarazioni con un tipo implicito 'any'.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "Abilita la segnalazione errori per i casi di fallthrough nelle istruzioni switch.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Abilita la segnalazione errori nei file JavaScript con controllo del tipo.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Abilita la segnalazione errori quando variabili locali non vengono lette.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Abilita la segnalazione errori quando a 'this' viene assegnato il tipo 'any'.", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Abilita il supporto sperimentale per gli elementi Decorator della bozza fase 2 di TC39.", - "Enable_importing_json_files_6689": "Abilita l'importazione di file .json.", - "Enable_project_compilation_6302": "Abilitare la compilazione dei progetti", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Abilitare i metodi strict 'bind', 'call' e 'apply' nelle funzioni.", - "Enable_strict_checking_of_function_types_6186": "Abilita il controllo tassativo dei tipi funzione.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "Abilitare il controllo tassativo dell'inizializzazione delle proprietà nelle classi.", - "Enable_strict_null_checks_6113": "Abilita i controlli strict Null.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "Abilitare l'opzione 'experimentalDecorators' nel file di configurazione", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "Abilitare il flag '--jsx' nel file di configurazione", - "Enable_tracing_of_the_name_resolution_process_6085": "Abilita la traccia del processo di risoluzione dei nomi.", - "Enable_verbose_logging_6713": "Abilitare la registrazione dettagliata.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Abilita l'interoperabilità di creazione tra moduli ES e CommonJS tramite la creazione di oggetti spazio dei nomi per tutte le importazioni. Implica 'allowSyntheticDefaultImports'.", - "Enables_experimental_support_for_ES7_decorators_6065": "Abilita il supporto sperimentale per le espressioni Decorator di ES7.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "Abilita il supporto sperimentale per la creazione dei metadati dei tipi per le espressioni Decorator.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "Impone l'uso di funzioni di accesso indicizzate per le chiavi dichiarate con un tipo indicizzato.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "Si assicura che i membri di override nelle classi derivate siano contrassegnati con un modificatore override.", - "Ensure_that_casing_is_correct_in_imports_6637": "Si assicura che l'uso di maiuscole e minuscole sia corretto nelle direttive import.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Si assicura che sia possibile eseguire il transpile di ogni file in modo sicuro senza basarsi su altre direttive import.", - "Ensure_use_strict_is_always_emitted_6605": "Si assicura che la direttiva 'use strict' venga sempre creata.", - "Entry_point_for_implicit_type_library_0_1420": "Punto di ingresso per la libreria dei tipi impliciti '{0}'", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Punto di ingresso per la libreria dei tipi impliciti '{0}' con packageId '{1}'", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Punto di ingresso della libreria dei tipi '{0}' specificata in compilerOptions", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "Punto di ingresso della libreria dei tipi '{0}' specificata in compilerOptions con packageId '{1}'", - "Enum_0_used_before_its_declaration_2450": "L'enumerazione '{0}' è stata usata prima di essere stata dichiarata.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "È possibile unire dichiarazioni di enumerazione solo con lo spazio dei nomi o altre dichiarazioni di enumerazione.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "Le dichiarazioni di enumerazione devono essere tutte const o tutte non const.", - "Enum_member_expected_1132": "È previsto il membro di enumerazione.", - "Enum_member_must_have_initializer_1061": "Il membro di enumerazione deve contenere l'inizializzatore.", - "Enum_name_cannot_be_0_2431": "Il nome dell'enumerazione non può essere '{0}'.", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Il tipo di enumerazione '{0}' contiene membri i cui inizializzatori non sono valori letterali.", - "Errors_Files_6041": "File di errori", - "Examples_Colon_0_6026": "Esempi: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "La profondità dello stack per il confronto dei tipi '{0}' e '{1}' è eccessiva.", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Sono previsti argomento tipo {0}-{1}. Per specificarli, usare un tag '@extends'.", - "Expected_0_arguments_but_got_1_2554": "Sono previsti {0} argomenti, ma ne sono stati ottenuti {1}.", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Sono previsti {0} argomenti, ma ne sono stati ottenuti {1}. Si è dimenticato di includere 'void' nell'argomento di tipo per 'Promise'?", - "Expected_0_type_arguments_but_got_1_2558": "Sono previsti {0} argomenti tipo, ma ne sono stati ottenuti {1}.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Sono previsti {0} argomenti tipo. Per specificarli, usare un tag '@extends'.", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Previsto 1 argomento, ma ottenuto 0. 'new Promise()' richiede un hint JSDoc per produrre un elemento 'resolve' che possa essere chiamato senza argomenti.", - "Expected_at_least_0_arguments_but_got_1_2555": "Sono previsti almeno {0} argomenti, ma ne sono stati ottenuti {1}.", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "È previsto il tag di chiusura JSX corrispondente per '{0}'.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "È previsto il tag di chiusura corrispondente per il frammento JSX.", - "Expected_for_property_initializer_1442": "È previsto '=' per l'inizializzatore di proprietà.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Il tipo previsto del campo '{0}' in 'package.json' è '{1}', ma è stato ottenuto '{2}'.", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Il supporto sperimentale per gli elementi Decorator è una funzionalità soggetta a modifica nelle prossime versioni. Per rimuovere questo avviso, impostare l'opzione 'experimentalDecorators' nel file 'tsconfig' o 'jsconfig'.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Il tipo di risoluzione del modulo '{0}' è stato specificato in modo esplicito.", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Non è possibile usare l'elevamento a potenza su valori 'bigint' a meno che l'opzione 'target' non sia impostata su 'es2016' o versioni successive.", - "Export_0_from_module_1_90059": "Esporta '{0}' dal modulo '{1}'", - "Export_all_referenced_locals_90060": "Esporta tutte le variabili locali di riferimento", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "Non è possibile usare l'assegnazione di esportazione se destinata a moduli ECMAScript. Provare a usare 'export default' o un altro formato di modulo.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "L'assegnazione dell'esportazione non è supportata quando il valore del flag '--module' è 'system'.", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "La dichiarazione di esportazione è in conflitto con la dichiarazione esportata di '{0}'.", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "Le dichiarazioni di esportazione non sono consentite in uno spazio dei nomi.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "L'identificatore di esportazione '{0}' non esiste nell'ambito package.json al percorso '{1}'.", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "L'alias di tipo esportato '{0}' contiene o usa il nome privato '{1}'.", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "L'alias di tipo esportato '{0}' contiene o usa il nome privato '{1}' del modulo {2}.", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "La variabile esportata '{0}' contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominata.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "La variabile esportata '{0}' contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variabile esportata '{0}' contiene o usa il nome privato '{1}'.", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Le esportazioni e le assegnazioni di esportazioni non sono consentite negli aumenti del modulo.", - "Expression_expected_1109": "È prevista l'espressione.", - "Expression_or_comma_expected_1137": "È prevista l'espressione o la virgola.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "L'espressione produce un tipo di tupla troppo grande da rappresentare.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "L'espressione produce un tipo di unione troppo complesso da rappresentare.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "L'espressione viene risolta in '_super', che è usato dal compilatore per acquisire il riferimento della classe di base.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "L'espressione viene risolta nella dichiarazione di variabile '_newTarget', che è usata dal compilatore per acquisire il riferimento alla metaproprietà 'new.target'.", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "L'espressione viene risolta nella dichiarazione di variabile '_this', che è usata dal compilatore per acquisire il riferimento 'this'.", - "Extract_constant_95006": "Estrarre la costante", - "Extract_function_95005": "Estrarre la funzione", - "Extract_to_0_in_1_95004": "Estrarre in {0} in {1}", - "Extract_to_0_in_1_scope_95008": "Estrarre in {0} nell'ambito {1}", - "Extract_to_0_in_enclosing_scope_95007": "Estrarre in {0} nell'ambito che lo contiene", - "Extract_to_interface_95090": "Estrarre nell'interfaccia", - "Extract_to_type_alias_95078": "Estrarre nell'alias di tipo", - "Extract_to_typedef_95079": "Estrarre in typedef", - "Extract_type_95077": "Estrarre il tipo", - "FILE_6035": "FILE", - "FILE_OR_DIRECTORY_6040": "FILE O DIRECTORY", - "Failed_to_parse_file_0_Colon_1_5014": "Non è stato possibile analizzare il file '{0}': {1}.", - "Fallthrough_case_in_switch_7029": "Caso di fallthrough in switch.", - "File_0_does_not_exist_6096": "Il file '{0}' non esiste.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Il file '{0}' non esiste in base alle ricerche precedenti memorizzate nella cache.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "Il file '{0}' esiste. Usarlo come risultato per la risoluzione dei nomi.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "Il file '{0}' esiste già in base alle ricerche precedenti memorizzate nella cache.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "L'estensione del file '{0}' non è supportata. Le uniche estensioni supportate sono {1}.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "L'estensione del file '{0}' non è supportata. Il file verrà ignorato.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Il file '{0}' è un file JavaScript. Si intendeva abilitare l'opzione 'allowJs'?", - "File_0_is_not_a_module_2306": "Il file '{0}' non è un modulo.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Il file '{0}' non è incluso nell'elenco file del progetto '{1}'. I progetti devono elencare tutti i file o usare un criterio 'include'.", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Il file '{0}' non si trova in 'rootDir' '{1}'. 'rootDir' deve contenere tutti i file di origine.", - "File_0_not_found_6053": "Il file '{0}' non è stato trovato.", - "File_Management_6245": "Gestione dei file", - "File_change_detected_Starting_incremental_compilation_6032": "È stata rilevata una modifica ai file. Verrà avviata la compilazione incrementale...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Il file è un modulo CommonJS perché '{0}' non contiene il campo \"type\"", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Il file è un modulo CommonJS perché '{0}' contiene il campo \"type\" il cui valore non è \"module\"", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "Il file è un modulo CommonJS perché 'package.json' non è stato trovato", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "Il file è un modulo ECMAScript perché '{0}' contiene il campo \"type\" con valore \"module\"", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "Il file è un modulo CommonJS e può essere convertito in un modulo ES6.", - "File_is_default_library_for_target_specified_here_1426": "Il file è la libreria predefinita per la destinazione specificata in questo punto.", - "File_is_entry_point_of_type_library_specified_here_1419": "Il file è il punto di ingresso della libreria dei tipi specificata in questo punto.", - "File_is_included_via_import_here_1399": "Il file viene incluso tramite importazione in questo punto.", - "File_is_included_via_library_reference_here_1406": "Il file viene incluso tramite il riferimento alla libreria in questo punto.", - "File_is_included_via_reference_here_1401": "Il file viene incluso tramite riferimento in questo punto.", - "File_is_included_via_type_library_reference_here_1404": "Il file viene incluso tramite il riferimento alla libreria dei tipi in questo punto.", - "File_is_library_specified_here_1423": "Il file è la libreria specificata in questo punto.", - "File_is_matched_by_files_list_specified_here_1410": "Per la corrispondenza del file viene usato l'elenco 'files' specificato in questo punto.", - "File_is_matched_by_include_pattern_specified_here_1408": "Per la corrispondenza del file viene usato il criterio di inclusione specificato in questo punto.", - "File_is_output_from_referenced_project_specified_here_1413": "Il file corrisponde all'output del progetto di riferimento specificato in questo punto.", - "File_is_output_of_project_reference_source_0_1428": "Il file corrisponde all'origine '{0}' del riferimento al progetto", - "File_is_source_from_referenced_project_specified_here_1416": "Il file è l'origine del progetto di riferimento specificato in questo punto.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Il nome file '{0}' differisce da quello già incluso '{1}' solo per l'uso di maiuscole/minuscole.", - "File_name_0_has_a_1_extension_stripping_it_6132": "L'estensione del nome file '{0}' è '{1}' e verrà rimossa.", - "File_redirects_to_file_0_1429": "Il file viene reindirizzato al file '{0}'", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La specifica del file non può contenere una directory padre ('..') inserita dopo un carattere jolly ('**') di directory ricorsiva: '{0}'.", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "La specifica del file non può terminare con caratteri jolly ('**') di directory ricorsiva: '{0}'.", - "Filters_results_from_the_include_option_6627": "Filtra i risultati dall'opzione `include`.", - "Fix_all_detected_spelling_errors_95026": "Correggere tutti gli errori di ortografia rilevati", - "Fix_all_expressions_possibly_missing_await_95085": "Correggere tutte le espressioni in cui potrebbe mancare 'await'", - "Fix_all_implicit_this_errors_95107": "Correggere tutti gli errori relativi a 'this' implicito", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Correggere tutti i tipi restituiti non corretti di una funzione asincrona", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Non è possibile usare i cicli 'for await' all'interno di un blocco statico di classe.", - "Found_0_errors_6217": "Sono stati trovati {0} errori.", - "Found_0_errors_Watching_for_file_changes_6194": "Sono stati trovati {0} errori. Verranno individuate le modifiche ai file.", - "Found_0_errors_in_1_files_6261": "Sono stati trovati {0} errori nei file {1}.", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Sono stati trovati {0} errori nello stesso file, a partire da: {1}", - "Found_1_error_6216": "È stato trovato 1 errore.", - "Found_1_error_Watching_for_file_changes_6193": "È stato trovato 1 errore. Verranno individuate le modifiche ai file.", - "Found_1_error_in_1_6259": "È stato trovato 1 errore in {1}", - "Found_package_json_at_0_6099": "Il file 'package.json' è stato trovato in '{0}'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'. Le definizioni di classe sono impostate automaticamente nella modalità strict.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'. I moduli sono impostati automaticamente nella modalità strict.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "L'espressione di funzione, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito '{0}'.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "L'implementazione di funzione manca o non segue immediatamente la dichiarazione.", - "Function_implementation_name_must_be_0_2389": "Il nome dell'implementazione di funzione deve essere '{0}'.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La funzione contiene implicitamente il tipo restituito 'any', perché non contiene un'annotazione di tipo restituito e viene usata come riferimento diretto o indiretto in una delle relative espressioni restituite.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Nella funzione manca l'istruzione return finale e il tipo restituito non include 'undefined'.", - "Function_not_implemented_95159": "Funzione non implementata.", - "Function_overload_must_be_static_2387": "L'overload della funzione deve essere statico.", - "Function_overload_must_not_be_static_2388": "L'overload della funzione non deve essere statico.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "La notazione del tipo di funzione deve essere racchiusa tra parentesi quando viene usata in un tipo di unione.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "La notazione del tipo di funzione deve essere racchiusa tra parentesi quando viene usata in un tipo di intersezione.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "Il tipo di funzione, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito '{0}'.", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "La funzione con corpi può essere unita solo a classi di tipo ambient.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "Genera file .d.ts da file TypeScript e JavaScript nel progetto.", - "Generate_get_and_set_accessors_95046": "Generare le funzioni di accesso 'get' e 'set'", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "Generare le funzioni di accesso 'get' e 'set' per tutte le proprietà di sostituzione", - "Generates_a_CPU_profile_6223": "Genera un profilo CPU.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "Genera un mapping di origine per ogni file '.d.ts' corrispondente.", - "Generates_an_event_trace_and_a_list_of_types_6237": "Genera una traccia eventi e un elenco di tipi.", - "Generates_corresponding_d_ts_file_6002": "Genera il file '.d.ts' corrispondente.", - "Generates_corresponding_map_file_6043": "Genera il file '.map' corrispondente.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Al generatore è assegnato in modo implicito il tipo yield '{0}' perché non contiene alcun valore. Provare a specificare un'annotazione di tipo restituito.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "I generatori non sono consentiti in un contesto di ambiente.", - "Generic_type_0_requires_1_type_argument_s_2314": "Il tipo generico '{0}' richiede {1} argomento/i di tipo.", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Il tipo generico '{0}' richiede tra {1} e {2} argomenti tipo.", - "Global_module_exports_may_only_appear_at_top_level_1316": "Le esportazioni di moduli globali possono essere usate solo al primo livello.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "Le esportazioni di moduli globali possono essere usate solo in file di dichiarazione.", - "Global_module_exports_may_only_appear_in_module_files_1314": "Le esportazioni di moduli globali possono essere usate solo in file di modulo.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "Il tipo globale '{0}' deve un tipo di classe o di interfaccia.", - "Global_type_0_must_have_1_type_parameter_s_2317": "Il tipo globale '{0}' deve contenere {1} parametro/i di tipo.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "Impostare le ricompilazioni in '--incremental' e '--watch' in modo che le modifiche all'interno di un file interessino solo i file che dipendono direttamente da esso.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "Imposta le ricompilazioni in progetti che usano la modalità 'incremental' e 'watch' in modo che le modifiche all'interno di un file interessino solo i file che dipendono direttamente da esso.", - "Hexadecimal_digit_expected_1125": "È prevista la cifra esadecimale.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "È previsto un identificatore. '{0}' è una parola riservata al livello principale di un modulo.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "È previsto un identificatore. '{0}' è una parola riservata in modalità strict.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "È previsto un identificatore. '{0}' è una parola riservata in modalità strict. Le definizioni di classe sono automaticamente impostate sulla modalità strict.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "È previsto un identificatore. '{0}' è una parola riservata in modalità strict. I moduli vengono impostati automaticamente in modalità strict.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "È previsto un identificatore. '{0}' è una parola riservata che non può essere usata in questo punto.", - "Identifier_expected_1003": "È previsto l'identificatore.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "È previsto un identificatore. '__esModule' è riservato come marcatore esportato durante la trasformazione di moduli ECMAScript.", - "Identifier_or_string_literal_expected_1478": "Previsto identificatore o valore letterale stringa.", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se il pacchetto '{0}' espone effettivamente questo modulo, provare a inviare una richiesta pull per modificare 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se il pacchetto ' {0}' espone effettivamente il modulo, provare ad aggiungere un nuovo file di dichiarazione (.d.ts) contenente ' Dichiara modulo' {1}';'", - "Ignore_this_error_message_90019": "Ignorare questo messaggio di errore", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "Il file tsconfig.json verrà ignorato. I file specificati verranno compilati con le opzioni predefinite del compilatore.", - "Implement_all_inherited_abstract_classes_95040": "Implementare tutte le classi astratte ereditate", - "Implement_all_unimplemented_interfaces_95032": "Implementare tutte le interfacce non implementate", - "Implement_inherited_abstract_class_90007": "Implementare la classe astratta ereditata", - "Implement_interface_0_90006": "Implementare l'interfaccia '{0}'", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La clausola implements della classe esportata '{0}' contiene o usa il nome privato '{1}'.", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversione implicita di un valore 'symbol' in 'string' non riuscirà in fase di esecuzione. Provare a eseguire il wrapping di questa espressione in 'String(...)'.", - "Import_0_from_1_90013": "Importare '{0}' da \"{1}\".", - "Import_assertion_values_must_be_string_literal_expressions_2837": "I valori di asserzione di importazione devono essere espressioni letterali delle stringhe.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Le asserzioni di importazione non sono consentite nelle istruzioni che eseguono il transpile nelle chiamate 'require' di commonjs.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione “--module” è impostata su “esnext” o “nodenext”.", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Non è possibile usare asserzioni di importazione con importazioni o esportazioni di solo tipo.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Non è possibile usare l'assegnazione di importazione se destinata a moduli ECMAScript. Provare a usare 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' o un altro formato di modulo.", - "Import_declaration_0_is_using_private_name_1_4000": "La dichiarazione di importazione '{0}' usa il nome privato '{1}'.", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La dichiarazione di importazione è in conflitto con la dichiarazione locale di '{0}'.", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Le dichiarazioni di importazione in uno spazio dei nomi non possono far riferimento a un modulo.", - "Import_emit_helpers_from_tslib_6139": "Importa gli helper di creazione da 'tslib'.", - "Import_may_be_converted_to_a_default_import_80003": "L'importazione può essere convertita in un'importazione predefinita.", - "Import_name_cannot_be_0_2438": "Il nome dell'importazione non può essere '{0}'.", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "La dichiarazione di importazione o esportazione in una dichiarazione di modulo di ambiente non può fare riferimento al modulo tramite il nome di modulo relativo.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "L'identificatore di importazione ' {0}' non esiste nell’ambito package.json al percorso ' {1}'.", - "Imported_via_0_from_file_1_1393": "Importato tramite {0} dal file '{1}'", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "Importato tramite {0} dal file '{1}' per importare 'importHelpers' come specificato in compilerOptions", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "Importato tramite {0} dal file '{1}' per importare le funzioni di factory 'jsx' e 'jsxs'", - "Imported_via_0_from_file_1_with_packageId_2_1394": "Importato tramite {0} dal file '{1}' con packageId '{2}'", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importato tramite {0} dal file '{1}' con packageId '{2}' per importare 'importHelpers' come specificato in compilerOptions", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importato tramite {0} dal file '{1}' con packageId '{2}' per importare le funzioni di factory 'jsx' e 'jsxs'", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Le importazioni non sono consentite negli aumenti di modulo. Provare a spostarle nel modulo esterno di inclusione.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Nelle dichiarazioni di enumerazione dell'ambiente l'inizializzatore di membro deve essere un'espressione costante.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "In un'enumerazione con più dichiarazioni solo una di queste può omettere un inizializzatore per il primo elemento dell'enumerazione.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "Include un elenco di file. A differenza di `include`, i criteri GLOB non sono supportati.", - "Include_modules_imported_with_json_extension_6197": "Includere i moduli importati con estensione '.json'", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "Include il codice sorgente nei mapping di origine all'interno del codice JavaScript creato.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Include i file dei mapping di origine all'interno del codice JavaScript creato.", - "Includes_imports_of_types_referenced_by_0_90054": "Include importazioni di tipi a cui fa riferimento '{0}'", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Se si include --watch, l'opzione -w consentirà di iniziare a controllare il progetto corrente per individuare modifiche ai file. Dopo l'impostazione, è possibile configurare la modalità espressione di controllo con:", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "La firma dell'indice per il tipo '{0}' manca nel tipo '{1}'.", - "Index_signature_in_type_0_only_permits_reading_2542": "La firma dell'indice nel tipo '{0}' consente solo la lettura.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Le singole dichiarazioni della dichiarazione sottoposta a merge '{0}' devono essere tutte esportate o tutte locali.", - "Infer_all_types_from_usage_95023": "Derivare tutti i tipi dall'utilizzo", - "Infer_function_return_type_95148": "Dedurre il tipo restituito della funzione", - "Infer_parameter_types_from_usage_95012": "Derivare i tipi di parametro dall'utilizzo", - "Infer_this_type_of_0_from_usage_95080": "Derivare il tipo 'this' di '{0}' dall'utilizzo", - "Infer_type_of_0_from_usage_95011": "Derivare il tipo di '{0}' dall'utilizzo", - "Initialize_property_0_in_the_constructor_90020": "Inizializzare la proprietà '{0}' nel costruttore", - "Initialize_static_property_0_90021": "Inizializzare la proprietà statica '{0}'", - "Initializer_for_property_0_2811": "Inizializzatore per la proprietà '{0}'", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "L'inizializzatore della variabile del membro di istanza '{0}' non può fare riferimento all'identificatore '{1}' dichiarato nel costruttore.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "L'inizializzatore non fornisce alcun valore per questo elemento di binding e per quest'ultimo non è disponibile un valore predefinito.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "Gli inizializzatori non sono consentiti in contesti di ambiente.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inizializza un progetto TypeScript e crea un file tsconfig.json.", - "Insert_command_line_options_and_files_from_a_file_6030": "Inserisce i file e le opzioni della riga di comando da un file.", - "Install_0_95014": "Installare '{0}'", - "Install_all_missing_types_packages_95033": "Installare tutti i pacchetti di tipi mancanti", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "L'interfaccia '{0}' non può estendere simultaneamente i tipi '{1}' e '{2}'.", - "Interface_0_incorrectly_extends_interface_1_2430": "L'interfaccia '{0}' estende in modo errato l'interfaccia '{1}'.", - "Interface_declaration_cannot_have_implements_clause_1176": "La dichiarazione di interfaccia non può avere una clausola 'implements'.", - "Interface_must_be_given_a_name_1438": "È necessario assegnare un nome all'interfaccia.", - "Interface_name_cannot_be_0_2427": "Il nome dell'interfaccia non può essere '{0}'.", - "Interop_Constraints_6252": "Vincoli interoperabilità", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "Interpreta i tipi di proprietà facoltativi scritti, invece di aggiungere 'undefined'.", - "Invalid_character_1127": "Carattere non valido.", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "L'identificatore di importazione non è valido ' {0}' non contiene risoluzioni possibili.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Il nome di modulo nell'aumento non è valido. Il modulo '{0}' viene risolto in un modulo non tipizzato in '{1}', che non può essere aumentato.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Il nome di modulo nell'aumento non è valido. Il modulo '{0}' non è stato trovato.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Catena facoltativa non valida dalla nuova espressione. Si intendeva chiamare '{0}()'?", - "Invalid_reference_directive_syntax_1084": "La sintassi della direttiva 'reference' non è valida.", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Uso non valido di '{0}'. Non può essere usato all'interno di un blocco statico di classe.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Uso non valido di '{0}'. I moduli vengono impostati automaticamente in modalità strict.", - "Invalid_use_of_0_in_strict_mode_1100": "Uso non valido di '{0}' in modalità strict.", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Il valore non è valido per 'jsxFactory'. '{0}' non è un identificatore o un nome qualificato valido.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Il valore non è valido per 'jsxFragmentFactory'. '{0}' non è un identificatore o un nome qualificato valido.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Il valore di '--reactNamespace' non è valido. '{0}' non è un identificatore valido", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "È probabile che manchi una virgola per separare queste due espressioni di modello. Costituiscono un'espressione di modello con tag che non può essere richiamata.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Il relativo tipo di elemento '{0}' non è un elemento JSX valido.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Il relativo tipo di istanza '{0}' non è un elemento JSX valido.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Il relativo tipo restituito '{0}' non è un elemento JSX valido.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Il tag '@{0} {1}' di JSDoc non corrisponde alla clausola 'extends {2}'.", - "JSDoc_0_is_not_attached_to_a_class_8022": "Il tag '@{0}' di JSDoc non è collegato a una classe.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' può essere presente solo nell'ultimo parametro di una firma.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Il nome del tag '@param' di JSDoc è '{0}', ma non esiste alcun parametro con questo nome.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Il nome del tag '@param' di JSDoc è '{0}', ma non esiste alcun parametro con questo nome. Se contenesse un tipo matrice, corrisponderebbe ad 'arguments'.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Il tag '@typedef' di JSDoc deve contenere un'annotazione di tipo o essere seguito dal tag '@property' o '@member'.", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "I tipi JSDoc possono essere usati solo nei commenti della documentazione.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "I tipi JSDoc possono essere convertiti in tipi TypeScript.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Agli attributi JSX deve essere assegnato solo un elemento 'expression' non vuoto.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "Per l'elemento JSX '{0}' non esiste alcun tag di chiusura corrispondente.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "La classe dell'elemento JSX non supporta gli attributi perché non contiene una proprietà '{0}'.", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "L'elemento JSX contiene implicitamente il tipo 'any' perché non esiste alcuna interfaccia 'JSX.{0}'.", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "L'elemento JSX contiene implicitamente il tipo 'any' perché il tipo globale 'JSX.Element' non esiste.", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "Il tipo '{0}' dell'elemento JSX non contiene firme di costrutto o chiamata.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "Gli elementi JSX non possono contenere più attributi con lo stesso nome.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "Nelle espressioni JSX non si può usare l'operatore virgola. Si intendeva scrivere una matrice?", - "JSX_expressions_must_have_one_parent_element_2657": "Le espressioni JSX devono contenere un solo elemento padre.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "Per il frammento JSX non esiste alcun tag di chiusura corrispondente.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "Le espressioni di accesso alla proprietà JSX non possono includere nomi dello spazio dei nomi JSX", - "JSX_spread_child_must_be_an_array_type_2609": "L'elemento figlio dell'attributo spread JSX deve essere un tipo di matrice.", - "JavaScript_Support_6247": "Supporto JavaScript", - "Jump_target_cannot_cross_function_boundary_1107": "La destinazione di collegamento non può oltrepassare il limite della funzione.", - "KIND_6034": "TIPOLOGIA", - "Keywords_cannot_contain_escape_characters_1260": "Le parole chiave non possono contenere caratteri di escape.", - "LOCATION_6037": "PERCORSO", - "Language_and_Environment_6254": "Linguaggio e ambiente", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "Il lato sinistro dell'operatore virgola non è usato e non ha effetti collaterali.", - "Library_0_specified_in_compilerOptions_1422": "Libreria '{0}' specificata in compilerOptions", - "Library_referenced_via_0_from_file_1_1405": "Libreria a cui viene fatto riferimento tramite '{0}' dal file '{1}'", - "Line_break_not_permitted_here_1142": "L'interruzione di riga non è consentita in questo punto.", - "Line_terminator_not_permitted_before_arrow_1200": "Il terminatore di riga non è consentito prima di arrow.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "Elenco dei suffissi dei nomi di file da cercare durante la risoluzione di un modulo.", - "List_of_folders_to_include_type_definitions_from_6161": "Elenco di cartelle da cui includere le definizioni di tipo.", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Elenco delle cartelle radice il cui contenuto combinato rappresenta la struttura del progetto in fase di esecuzione.", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Verrà eseguito il caricamento di '{0}' dalla directory radice '{1}'. Percorso candidato: '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Verrà eseguito il caricamento del modulo '{0}' dalla cartella 'node_modules'. Tipo di file di destinazione: '{1}'.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Verrà eseguito il caricamento del modulo come file/cartella. Percorso candidato del modulo: '{0}'. Tipo di file di destinazione: '{1}'.", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Le impostazioni locali devono essere nel formato o -, ad esempio, '{0}' o '{1}'.", - "Log_paths_used_during_the_moduleResolution_process_6706": "Registra i percorsi usati durante il processo 'moduleResolution'.", - "Longest_matching_prefix_for_0_is_1_6108": "Il prefisso di corrispondenza più lungo per '{0}' è '{1}'.", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "Verrà eseguita la ricerca nella cartella 'node_modules'. Percorso iniziale: '{0}'.", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "Impostare tutte le chiamate a 'super()' come prima istruzione nel costruttore", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Imposta keyof in modo che restituisca solo stringhe invece di stringhe, numeri o simboli. Opzione legacy.", - "Make_super_call_the_first_statement_in_the_constructor_90002": "Impostare la chiamata a 'super()' come prima istruzione nel costruttore", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Il tipo di oggetto con mapping contiene implicitamente un tipo di modello 'any'.", - "Matched_0_condition_1_6403": "Corrispondenza tra '{0}' condizione '{1}'.", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Corrispondente per impostazione predefinita al criterio di inclusione '**/*'", - "Matched_by_include_pattern_0_in_1_1407": "Corrispondenza tramite criterio di inclusione '{0}' in '{1}'", - "Member_0_implicitly_has_an_1_type_7008": "Il membro '{0}' contiene implicitamente un tipo '{1}'.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Il membro '{0}' include implicitamente un tipo '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.", - "Merge_conflict_marker_encountered_1185": "È stato rilevato un indicatore di conflitti di merge.", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "La dichiarazione '{0}' sottoposta a merge non può includere una dichiarazione di esportazione predefinita. Provare ad aggiungere una dichiarazione 'export default {0}' distinta.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "La metaproprietà '{0}' è consentita solo nel corpo di una dichiarazione di funzione, di un'espressione di funzione o di un costruttore.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Il metodo '{0}' non può includere un'implementazione perché è contrassegnato come astratto.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Il metodo '{0}' dell'interfaccia esportata ha o usa il nome '{1}' del modulo privato '{2}'.", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Il metodo '{0}' dell'interfaccia esportata ha o usa il nome privato '{1}'.", - "Method_not_implemented_95158": "Metodo non implementato.", - "Modifiers_cannot_appear_here_1184": "In questo punto non è possibile usare modificatori.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Il modulo '{0}' può essere importato come predefinito solo con il flag '{1}'", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "Non è possibile importare il modulo '{0}' utilizzando questo costrutto. L'identificatore può essere solo risolto in un modulo ES, che non può essere importato con 'require'. Usare invece un'importazione ECMAScript.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "Il modulo '{0}' dichiara '{1}' in locale, ma viene esportato come '{2}'.", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "Il modulo '{0}' dichiara '{1}' in locale, ma non viene esportato.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "Il modulo '{0}' non fa riferimento a un tipo, ma viene usato come tipo in questo punto. Si intendeva 'typeof import('{0}')'?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "Il modulo '{0}' non fa riferimento a un valore, ma qui viene usato come valore.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "Il modulo {0} ha già esportato un membro denominato '{1}'. Per risolvere l'ambiguità, provare a esportarlo di nuovo in modo esplicito.", - "Module_0_has_no_default_export_1192": "Per il modulo '{0}' non esistono esportazioni predefinite.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "Non esiste alcuna esportazione predefinita per il modulo '{0}'. Si intendeva usare 'import { {1} } from {0}'?", - "Module_0_has_no_exported_member_1_2305": "Il modulo '{0}' non contiene un membro esportato '{1}'.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Non esiste alcun membro esportato '{1}' per il modulo '{0}'. Si intendeva usare 'import {1} from {0}'?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Il modulo '{0}' è nascosto da una dichiarazione locale con lo stesso nome.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Il modulo '{0}' usa 'export =' e non può essere usato con 'export *'.", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Il modulo '{0}' è stato risolto come modulo di ambiente dichiarato in '{1}' dal momento che questo file non è stato modificato.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Il modulo '{0}' è stato risolto come modulo di ambiente dichiarato in locale nel file '{1}'.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Il modulo '{0}' è stato risolto in '{1}', ma '--jsx' non è impostato.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Il modulo '{0}' è stato risolto in '{1}', ma '--resolveJsonModule' non viene usato.", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "I nomi delle dichiarazioni di modulo possono usare solo stringhe racchiuse tra virgolette.", - "Module_name_0_matched_pattern_1_6092": "Nome del modulo: '{0}'. Criterio corrispondente: '{1}'.", - "Module_name_0_was_not_resolved_6090": "======== Il nome del modulo '{0}' non è stato risolto. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== Il nome del modulo '{0}' è stato risolto in '{1}'. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== Il nome del modulo '{0}' è stato risolto in '{1}' con ID pacchetto '{2}'. ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "Il tipo di risoluzione del modulo non è specificato. Verrà usato '{0}'.", - "Module_resolution_using_rootDirs_has_failed_6111": "La risoluzione del modulo con 'rootDirs' non è riuscita.", - "Modules_6244": "Moduli", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "Spostare i modificatori di elemento tupla con etichetta nelle etichette", - "Move_to_a_new_file_95049": "Passare a un nuovo file", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Non sono consentiti più separatori numerici consecutivi.", - "Multiple_constructor_implementations_are_not_allowed_2392": "Non è possibile usare più implementazioni di costruttore.", - "NEWLINE_6061": "NUOVA RIGA", - "Name_is_not_valid_95136": "Nome non valido.", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Le proprietà denominate '{0}' dei tipi '{1}' e '{2}' non sono identiche.", - "Namespace_0_has_no_exported_member_1_2694": "Lo spazio dei nomi '{0}' non contiene un membro esportato '{1}'.", - "Namespace_must_be_given_a_name_1437": "È necessario assegnare un nome allo spazio dei nomi.", - "Namespace_name_cannot_be_0_2819": "Lo spazio dei nomi non può essere '{0}'.", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Nessun costruttore di base contiene il numero specificato di argomenti tipo.", - "No_constituent_of_type_0_is_callable_2755": "Non è possibile chiamare nessun costituente di tipo '{0}'.", - "No_constituent_of_type_0_is_constructable_2759": "Non è possibile costruire nessun costituente di tipo '{0}'.", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "Non è stata trovata alcuna firma dell'indice con un parametro di tipo '{0}' nel tipo '{1}'.", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "Non sono stati trovati input nel file config '{0}'. Percorsi 'include' specificati: '{1}'. Percorsi 'exclude' specificati: '{2}'.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "Non più supportato. Nelle versioni precedenti imposta manualmente la codifica del testo per la lettura dei file.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "Nessun overload prevede {0} argomenti, ma esistono overload che prevedono {1} o {2} argomenti.", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "Nessun overload prevede {0} argomenti di tipo, ma esistono overload che prevedono {1} o {2} argomenti di tipo.", - "No_overload_matches_this_call_2769": "Nessun overload corrisponde a questa chiamata.", - "No_type_could_be_extracted_from_this_type_node_95134": "Non è stato possibile estrarre il tipo da questo nodo di tipo", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Non esiste alcun valore nell'ambito per la proprietà a sintassi abbreviata '{0}'. Dichiararne uno o specificare un inizializzatore.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non astratta '{0}' non implementa il membro astratto ereditato '{1}' della classe '{2}'.", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "L'espressione di classe non astratta non implementa il membro astratto ereditato '{0}' dalla classe '{1}'.", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Le asserzioni non Null possono essere usate solo in file TypeScript.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "I percorsi non relativi non sono consentiti quando 'baseUrl' non è impostato. Si è dimenticato di aggiungere './' all'inizio?", - "Non_simple_parameter_declared_here_1348": "In questo punto è dichiarato un parametro non semplice.", - "Not_all_code_paths_return_a_value_7030": "Non tutti i percorsi del codice restituiscono un valore.", - "Not_all_constituents_of_type_0_are_callable_2756": "Non tutti i costituenti di tipo '{0}' possono essere chiamati.", - "Not_all_constituents_of_type_0_are_constructable_2760": "Non tutti i costituenti di tipo '{0}' possono essere costruiti.", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "I valori letterali numerici con valori assoluti uguali o maggiori di 2^53 sono troppo grandi per essere rappresentati in modo corretto come numeri interi.", - "Numeric_separators_are_not_allowed_here_6188": "I separatori numerici non sono consentiti in questa posizione.", - "Object_is_of_type_unknown_2571": "L'oggetto è di tipo 'unknown'.", - "Object_is_possibly_null_2531": "L'oggetto è probabilmente 'null'.", - "Object_is_possibly_null_or_undefined_2533": "L'oggetto è probabilmente 'null' o 'undefined'.", - "Object_is_possibly_undefined_2532": "L'oggetto è probabilmente 'undefined'.", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Il valore letterale di oggetto può specificare solo proprietà note e '{0}' non esiste nel tipo '{1}'.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Il valore letterale dell'oggetto può specificare solo proprietà note, ma '{0}' non esiste nel tipo '{1}'. Si intendeva scrivere '{2}'?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La proprietà '{0}' del valore letterale di oggetto contiene implicitamente un tipo '{1}'.", - "Octal_digit_expected_1178": "È prevista la cifra ottale.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "I tipi di valori letterali ottali devono usare la sintassi ES2015. Usare la sintassi '{0}'.", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "I valori letterali ottali non sono consentiti nell'inizializzatore di membri di enumerazioni. Usare la sintassi '{0}'.", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "I valori letterali ottali non sono consentiti in modalità strict.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "I valori letterali ottali non sono disponibili quando la destinazione è ECMAScript 5 e versioni successive. Usare la sintassi '{0}'.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "In un'istruzione 'for...in' è consentita solo una singola dichiarazione di variabile.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "In un'istruzione 'for...of' è consentita solo una singola dichiarazione di variabile.", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Con la parola chiave 'new' può essere chiamata solo una funzione void.", - "Only_ambient_modules_can_use_quoted_names_1035": "I nomi delimitati si possono usare solo nei moduli di ambiente.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Unitamente a --{0} sono supportati solo i moduli 'amd' e 'system'.", - "Only_emit_d_ts_declaration_files_6014": "Creare solo i file di dichiarazione '.d.ts'.", - "Only_named_exports_may_use_export_type_1383": "Solo le esportazioni denominate possono usare 'export type'.", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Solo le enumerazioni numeriche possono includere membri calcolati, ma il tipo di questa espressione è '{0}'. Se non sono necessari controlli di esaustività, provare a usare un valore letterale di oggetto.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Restituisce solo file d.ts e non file JavaScript.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Con la parola chiave 'super' è possibile accedere solo ai metodi pubblico e protetto della classe di base.", - "Operator_0_cannot_be_applied_to_type_1_2736": "Non è possibile applicare l'operatore '{0}' al tipo '{1}'.", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Non è possibile applicare l'operatore '{0}' ai tipi '{1}' e '{2}'.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Esclude un progetto dal controllo dei riferimenti a più progetti durante la modifica.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "L'opzione '{0}' può essere specificata solo nel file 'tsconfig.json' oppure impostata su 'false' o 'null' sulla riga di comando.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "L'opzione '{0}' può essere specificata solo nel file 'tsconfig.json' oppure impostata su 'null' sulla riga di comando.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "L'opzione '{0}' può essere usata solo quando si specifica l'opzione '--inlineSourceMap' o '--sourceMap'.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Non è possibile specificare l'opzione '{0}' quando l'opzione 'jsx' è '{1}'.", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Non è possibile specificare l'opzione '{0}' quando l'opzione 'target' è 'ES3'.", - "Option_0_cannot_be_specified_with_option_1_5053": "Non è possibile specificare l'opzione '{0}' insieme all'opzione '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Non è possibile specificare l'opzione '{0}' senza l'opzione '{1}'.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Non è possibile specificare l'opzione '{0}' senza l'opzione'{1}' o '{2}'.", - "Option_build_must_be_the_first_command_line_argument_6369": "L'opzione '--build' deve essere il primo argomento della riga di comando.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "È possibile specificare l'opzione '--incremental' solo se si usa tsconfig, si crea un singolo file o si specifica l'opzione '--tsBuildInfoFile'.", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'opzione 'isolatedModules' può essere usata solo quando si specifica l'opzione '--module' oppure il valore dell'opzione 'target' è 'ES2015' o maggiore.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Non è possibile disabilitare l'opzione 'preserveConstEnums' quando l'opzione 'isolatedModules' è abilitata.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L'opzione 'preserveValueImports' può essere usata solo quando 'module' è impostato su 'es2015' o versione successiva.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Non è possibile combinare l'opzione 'project' con file di origine in una riga di comando.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "È possibile specificare l'opzione '--resolveJsonModule' solo quando la generazione del codice del modulo è impostata su 'commonjs', 'amd', 'es2015' o 'esNext'.", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Non è possibile specificare l'opzione '--resolveJsonModule' senza la strategia di risoluzione del modulo 'node'.", - "Options_0_and_1_cannot_be_combined_6370": "Non è possibile combinare le opzioni '{0}' e '{1}'.", - "Options_Colon_6027": "Opzioni:", - "Output_Formatting_6256": "Formattazione dell'output", - "Output_compiler_performance_information_after_building_6615": "Restituisce informazioni sulle prestazioni del compilatore dopo la compilazione.", - "Output_directory_for_generated_declaration_files_6166": "Directory di output per i file di dichiarazione generati.", - "Output_file_0_from_project_1_does_not_exist_6309": "Il file di output '{0}' del progetto '{1}' non esiste", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "Il file di output '{0}' non è stato compilato dal file di origine '{1}'.", - "Output_from_referenced_project_0_included_because_1_specified_1411": "L'output del progetto di riferimento '{0}' è incluso perché è stato specificato '{1}'", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "L'output del progetto di riferimento '{0}' è incluso perché il valore specificato per '--module' è 'none'", - "Output_more_detailed_compiler_performance_information_after_building_6632": "Restituisce informazioni più dettagliate sulle prestazioni del compilatore dopo la compilazione.", - "Overload_0_of_1_2_gave_the_following_error_2772": "L'overload {0} di {1},'{2}', ha restituito l'errore seguente.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "Le firme di overload devono essere tutte astratte o tutte non astratte.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "Le firme di overload devono essere tutte di ambiente o non di ambiente.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "Le firme di overload devono essere tutte esportate o tutte non esportate.", - "Overload_signatures_must_all_be_optional_or_required_2386": "Le firme di overload devono essere tutte facoltative o obbligatorie.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "Le firme di overload devono essere tutte pubbliche, private o protette.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "Il parametro '{0}' non può fare riferimento all'identificatore '{1}' dichiarato dopo di esso.", - "Parameter_0_cannot_reference_itself_2372": "Il parametro '{0}' non può fare riferimento a se stesso.", - "Parameter_0_implicitly_has_an_1_type_7006": "Il parametro '{0}' contiene implicitamente un tipo '{1}'.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "Il parametro '{0}' include implicitamente un tipo '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "Il parametro '{0}' non si trova nella stessa posizione del parametro '{1}'.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "Il parametro '{0}' della funzione di accesso contiene o usa il nome '{1}' del modulo esterno {2}, ma non può essere rinominato.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "Il parametro '{0}' della funzione di accesso contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "Il parametro '{0}' della funzione di accesso contiene o usa il nome privato '{1}'.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "Il parametro '{0}' della firma di chiamata dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "Il parametro '{0}' della firma di chiamata dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "Il parametro '{0}' del costruttore della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "Il parametro '{0}' del costruttore della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "Il parametro '{0}' del costruttore della classe esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "Il parametro '{0}' della firma del costruttore dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "Il parametro '{0}' della firma del costruttore dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "Il parametro '{0}' della funzione esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "Il parametro '{0}' della funzione esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "Il parametro '{0}' della funzione esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "Il parametro '{0}' della firma dell'indice dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "Il parametro '{0}' della firma dell'indice dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "Il parametro '{0}' del metodo dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "Il parametro '{0}' del metodo dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "Il parametro '{0}' del metodo pubblico della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "Il parametro '{0}' del metodo pubblico della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "Il parametro '{0}' del metodo pubblico della classe esportata contiene o usa il nome privato '{1}'.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "Il parametro '{0}' del metodo statico pubblico della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "Il parametro '{0}' del metodo statico pubblico della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "Il parametro '{0}' del metodo statico pubblico della classe esportata contiene o usa il nome privato '{1}'.", - "Parameter_cannot_have_question_mark_and_initializer_1015": "Il parametro non può contenere il punto interrogativo e l'inizializzatore.", - "Parameter_declaration_expected_1138": "È prevista la dichiarazione di parametro.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Il parametro include un nome ma non un tipo. Si intendeva '{0}: {1}'?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "I modificatori di parametro possono esere usati solo in file TypeScript.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Il tipo di parametro del setter pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Il tipo di parametro del setter pubblico '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Il tipo di parametro del setter statico pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "Il tipo di parametro del setter statico pubblico '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "Esegue l'analisi in modalità strict e crea la direttiva \"use strict\" per ogni file di origine.", - "Part_of_files_list_in_tsconfig_json_1409": "Parte dell'elenco 'files' in tsconfig.json", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "Il criterio '{0}' deve contenere al massimo un carattere '*'.", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "Gli intervalli delle prestazioni per '--Diagnostics' o '--extendedDiagnostics' non sono disponibili in questa sessione. Non è stato possibile trovare un'implementazione nativa dell'API Prestazioni Web.", - "Platform_specific_6912": "Specifico della piattaforma", - "Prefix_0_with_an_underscore_90025": "Anteporre un carattere di sottolineatura a '{0}'", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "Aggiungere 'declare' come prefisso a tutte le dichiarazioni di proprietà non corrette", - "Prefix_all_unused_declarations_with_where_possible_95025": "Aggiungere a tutte le dichiarazioni non usate il prefisso '_', laddove possibile", - "Prefix_with_declare_95094": "Aggiungere il prefisso 'declare'", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "Conserva i valori importati non usati nell'output JavaScript che altrimenti verrebbe rimosso.", - "Print_all_of_the_files_read_during_the_compilation_6653": "Stampa tutti i file letti durante la compilazione.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "Stampa i file letti durante la compilazione e indica il motivo per cui sono stati inclusi.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "Stampa i nomi dei file e il motivo per cui fanno parte della compilazione.", - "Print_names_of_files_part_of_the_compilation_6155": "Stampa i nomi dei file che fanno parte della compilazione.", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "Stampa i nomi dei file che fanno parte della compilazione, quindi arresta l'elaborazione.", - "Print_names_of_generated_files_part_of_the_compilation_6154": "Stampa i nomi dei file generati che fanno parte della compilazione.", - "Print_the_compiler_s_version_6019": "Stampa la versione del compilatore.", - "Print_the_final_configuration_instead_of_building_1350": "Stampa la configurazione finale invece di eseguire la compilazione.", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "Stampa i nomi dei file creati al termine di una compilazione.", - "Print_this_message_6017": "Stampa questo messaggio.", - "Private_accessor_was_defined_without_a_getter_2806": "La funzione di accesso privata è stata definita senza un getter.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Gli identificatori privati non sono consentiti nelle dichiarazioni di variabili.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Gli identificatori privati non sono consentiti all'esterno del corpo della classe.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Gli identificatori privati sono consentiti solo nei corpi di classe e possono essere usati solo come parte di una dichiarazione di un membro della classe, dell'accesso alle proprietà o sulla parte sinistra di un'espressione 'in'.", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Gli identificatori privati sono disponibili solo se destinati a ECMAScript 2015 e versioni successive.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "Non è possibile usare gli identificatori privati come parametri.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Non è possibile accedere al membro privato o protetto '{0}' in un parametro di tipo.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Non è possibile compilare il progetto '{0}' perché la dipendenza '{1}' contiene errori", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Non è possibile compilare il progetto '{0}' perché la relativa dipendenza '{1}' non è stata compilata", - "Project_0_is_being_forcibly_rebuilt_6388": "Il progetto '{0}' è stato ricompilato forzatamente", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Il '{0}' del progetto non è aggiornato perché il file buildinfo '{1}' indica che alcune modifiche non sono state generate", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Il progetto '{0}' non è aggiornato perché la dipendenza '{1}' non è aggiornata", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Il progetto '{0}' non è aggiornato perché l'output '{1}' è meno recente dell'input '{2}'", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Il progetto '{0}' non è aggiornato perché il file di output '{1}' non esiste", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Il progetto '{0}' non è aggiornato perché l'output per il progetto è stato generato con la versione '{1}' che non corrisponde alla versione corrente '{2}'", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Il progetto '{0}' non è aggiornato perché l'output della relativa dipendenza '{1}' è cambiato", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Il progetto '{0}' non è aggiornato perché si è verificato un errore durante la lettura del file '{1}'", - "Project_0_is_up_to_date_6361": "Il progetto '{0}' è aggiornato", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Il progetto '{0}' è aggiornato perché l'input più recente '{1}' è meno recente dell'output '{2}'", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "Project '{0}' è aggiornato ma deve aggiornare i timestamp dei file di output precedenti ai file di input", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Il progetto '{0}' è aggiornato con i file con estensione d.ts delle relative dipendenze", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "I riferimenti al progetto non possono formare un grafico circolare. Ciclo rilevato: {0}", - "Projects_6255": "Progetti", - "Projects_in_this_build_Colon_0_6355": "Progetti in questa compilazione: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Le proprietà con il modificatore 'funzione di accesso' sono disponibili solo quando la destinazione è ECMAScript 2015 e versioni successive.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "La proprietà '{0}' non può includere un inizializzatore perché è contrassegnata come astratta.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "La proprietà '{0}' deriva da una firma dell'indice, quindi è necessario accedervi con ['{0}'].", - "Property_0_does_not_exist_on_type_1_2339": "La proprietà '{0}' non esiste nel tipo '{1}'.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "La proprietà '{0}' non esiste nel tipo '{1}'. Si intendeva '{2}'?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "La proprietà '{0}' non esiste nel tipo '{1}'. Si intendeva accedere al membro statico '{2}'?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "La proprietà '{0}' non esiste nel tipo '{1}'. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su '{2}' o versioni successive.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "La proprietà '{0}' non esiste nel tipo '{1}'. Provare a modificare l'opzione del compilatore 'lib' per includere 'dom'.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "La proprietà '{0}' non include alcun inizializzatore e non viene assolutamente assegnata in un blocco statico di classe.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "La proprietà '{0}' non include alcun inizializzatore e non viene assolutamente assegnata nel costruttore.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "La proprietà '{0}' contiene implicitamente il tipo 'any', perché nella relativa funzione di accesso get manca un'annotazione di tipo restituito.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "La proprietà '{0}' contiene implicitamente il tipo 'any', perché nella relativa funzione di accesso set manca un'annotazione di tipo di parametro.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "La proprietà '{0}' contiene implicitamente il tipo 'any', ma è possibile dedurre un tipo migliore per la funzione di accesso get dall'utilizzo.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "La proprietà '{0}' contiene implicitamente il tipo 'any', ma è possibile dedurre un tipo migliore per la funzione di accesso set dall'utilizzo.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "La proprietà '{0}' nel tipo '{1}' non è assegnabile alla stessa proprietà nel tipo di base '{2}'.", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "La proprietà '{0}' nel tipo '{1}' non è assegnabile al tipo '{2}'.", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "La proprietà '{0}' nel tipo '{1}' fa riferimento a un membro diverso a cui non è possibile accedere dall'interno del tipo '{2}'.", - "Property_0_is_declared_but_its_value_is_never_read_6138": "La proprietà '{0}' è dichiarata, ma il suo valore non viene mai letto.", - "Property_0_is_incompatible_with_index_signature_2530": "La proprietà '{0}' non è compatibile con la firma dell'indice.", - "Property_0_is_missing_in_type_1_2324": "Nel tipo '{1}' manca la proprietà '{0}'.", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "La proprietà '{0}' manca nel tipo '{1}', ma è obbligatoria nel tipo '{2}'.", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "La proprietà '{0}' non è accessibile all'esterno della classe '{1}' perché contiene un identificatore privato.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "La proprietà '{0}' è facoltativa nel tipo '{1}', ma obbligatoria nel tipo '{2}'.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "La proprietà '{0}' è privata e accessibile solo all'interno della classe '{1}'.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "La proprietà '{0}' è privata nel tipo '{1}', ma non nel tipo '{2}'.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "La proprietà '{0}' è protetta e accessibile solo tramite un'istanza della classe '{1}'. Si tratta di un'istanza della classe '{2}'.", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "La proprietà '{0}' è protetta e accessibile solo all'interno della classe '{1}' e delle relative sottoclassi.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "La proprietà '{0}' è protetta, ma il tipo '{1}' non è una classe derivata da '{2}'.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "La proprietà '{0}' è protetta nel tipo '{1}', ma è pubblica non nel tipo '{2}'.", - "Property_0_is_used_before_being_assigned_2565": "La proprietà '{0}' viene usata prima dell'assegnazione.", - "Property_0_is_used_before_its_initialization_2729": "La proprietà '{0}' viene usata prima della relativa inizializzazione.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La proprietà '{0}' potrebbe non esistere nel tipo '{1}'. Si intendeva '{2}'?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "La proprietà '{0}' dell'attributo spread JSX non è assegnabile alla proprietà di destinazione.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La proprietà '{0}' dell'espressione di classe esportata potrebbe essere non privata o protetta.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La proprietà '{0}' dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La proprietà '{0}' dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La proprietà '{0}' del tipo '{1}' non è assegnabile al tipo di indice '{2}' '{3}'.", - "Property_0_was_also_declared_here_2733": "In questo punto è dichiarata anche la proprietà '{0}'.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La proprietà '{0}' sovrascriverà la proprietà di base in '{1}'. Se questo comportamento è intenzionale, aggiungere un inizializzatore; in caso contrario, aggiungere un modificatore 'declare' o rimuovere la dichiarazione ridondante.", - "Property_assignment_expected_1136": "È prevista l'assegnazione di proprietà.", - "Property_destructuring_pattern_expected_1180": "È previsto il criterio di destrutturazione della proprietà.", - "Property_or_signature_expected_1131": "È prevista la proprietà o la firma.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Il valore della proprietà può essere solo un valore letterale stringa, un valore letterale numerico, 'true', 'false', 'null', un valore letterale di oggetto o un valore letterale di matrice.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Fornisce supporto completo per elementi iterabili in 'for-of', spread e destrutturazione quando la destinazione è 'ES5' o 'ES3'.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome '{1}' del modulo privato '{2}'.", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome privato '{1}'.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "La proprietà pubblica '{0}' della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominata.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "La proprietà pubblica '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "La proprietà pubblica '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "Il metodo statico pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "Il metodo statico pubblico '{0}' della classe esportata ha o usa il nome '{1}' del modulo privato '{2}'.", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "Il metodo statico pubblico '{0}' della classe esportata ha o usa il nome privato '{1}'.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "La proprietà statica pubblica '{0}' della classe esportata contiene o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominata.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "La proprietà statica pubblica '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "La proprietà statica pubblica '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "Il nome completo '{0}' non è consentito se non si specifica un parametro '@param {object} {1}' iniziale.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Genera un errore quando un parametro di funzione non viene letto.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Genera un errore in caso di espressioni o dichiarazioni con tipo 'any' implicito.", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Genera un errore in caso di espressioni 'this con un tipo 'any' implicito.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Per riesportare un tipo quando è specificato il flag '--isolatedModules', è necessario usare 'export type'.", - "Redirect_output_structure_to_the_directory_6006": "Reindirizza la struttura di output alla directory.", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Riduce il numero di progetti caricati automaticamente da TypeScript.", - "Referenced_project_0_may_not_disable_emit_6310": "Il progetto di riferimento '{0}' non può disabilitare la creazione.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Il progetto di riferimento '{0}' deve includere l'impostazione \"composite\": true.", - "Referenced_via_0_from_file_1_1400": "Riferimento tramite '{0}' dal file '{1}'", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node16' o 'nodenext'. Provare ad aggiungere un'estensione al percorso di importazione.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node16' o 'nodenext'. Si intendeva \"{0}\"?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "Rimuove un elenco di directory dal processo dell'espressione di controllo.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Rimuove un elenco di file dall'elaborazione della modalità espressione di controllo.", - "Remove_all_unnecessary_override_modifiers_95163": "Rimuovere tutti i modificatori 'override' non necessari", - "Remove_all_unnecessary_uses_of_await_95087": "Rimuovere tutti gli utilizzi non necessari di 'await'", - "Remove_all_unreachable_code_95051": "Rimuovere tutto il codice non eseguibile", - "Remove_all_unused_labels_95054": "Rimuovere tutte le etichette inutilizzate", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "Rimuovere le parentesi graffe da tutti i corpi della funzione arrow con problemi specifici", - "Remove_braces_from_arrow_function_95060": "Rimuovere le parentesi graffe dalla funzione arrow", - "Remove_braces_from_arrow_function_body_95112": "Rimuovere le parentesi graffe dal corpo della funzione arrow", - "Remove_import_from_0_90005": "Rimuovere l'importazione da '{0}'", - "Remove_override_modifier_95161": "Rimuovere il modificatore 'override'", - "Remove_parentheses_95126": "Rimuovere le parentesi", - "Remove_template_tag_90011": "Rimuovere il tag template", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "Rimuove il limite di 20 MB per le dimensioni totali del codice sorgente relativo ai file JavaScript nel server di linguaggio TypeScript.", - "Remove_type_from_import_declaration_from_0_90055": "Rimuovi 'type' dalla dichiarazione di importazione da \"{0}\"", - "Remove_type_from_import_of_0_from_1_90056": "Rimuovi 'type' dall'importazione di '{0}' da \"{1}\"", - "Remove_type_parameters_90012": "Rimuovere i parametri di tipo", - "Remove_unnecessary_await_95086": "Rimuovere l'elemento 'await' non necessario", - "Remove_unreachable_code_95050": "Rimuovere il codice non eseguibile", - "Remove_unused_declaration_for_Colon_0_90004": "Rimuovere la dichiarazione inutilizzata per: '{0}'", - "Remove_unused_declarations_for_Colon_0_90041": "Rimuovere le dichiarazioni inutilizzate per: '{0}'", - "Remove_unused_destructuring_declaration_90039": "Rimuovere la dichiarazione di destrutturazione inutilizzata", - "Remove_unused_label_95053": "Rimuovere l'etichetta inutilizzata", - "Remove_variable_statement_90010": "Rimuovere l'istruzione di variabile", - "Rename_param_tag_name_0_to_1_95173": "Cambiane il nome '{0}' del tag '@param' in '{1}'", - "Replace_0_with_Promise_1_90036": "Sostituire '{0}' con 'Promise<{1}>'", - "Replace_all_unused_infer_with_unknown_90031": "Sostituire tutti gli elementi 'infer' inutilizzati con 'unknown'", - "Replace_import_with_0_95015": "Sostituire l'importazione con '{0}'.", - "Replace_infer_0_with_unknown_90030": "Sostituire 'infer {0}' con 'unknown'", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "Segnala l'errore quando non tutti i percorsi del codice nella funzione restituiscono un valore.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "Segnala errori per i casi di fallthrough nell'istruzione switch.", - "Report_errors_in_js_files_8019": "Segnala gli errori presenti nei file con estensione js.", - "Report_errors_on_unused_locals_6134": "Segnala errori relativi a variabili locali non usate.", - "Report_errors_on_unused_parameters_6135": "Segnala errori relativi a parametri non usati.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Richiedere alle proprietà non dichiarate da firme dell'indice di usare gli accessi agli elementi.", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "I parametri di tipo obbligatori potrebbero non seguire i parametri di tipo facoltativi.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La risoluzione per il modulo '{0}' è stata trovata nella cache dal percorso '{1}'.", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La risoluzione per la direttiva '{0}' del riferimento al tipo è stata trovata nella cache dal percorso '{1}'.", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Risolvere 'keyof' solo in nomi di proprietà con valori stringa (senza numeri o simboli).", - "Resolving_in_0_mode_with_conditions_1_6402": "Risoluzione in modalità {0} con condizioni {1}.", - "Resolving_module_0_from_1_6086": "======== Risoluzione del modulo '{0}' da '{1}'. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Verrà eseguita la risoluzione del nome del modulo '{0}' relativo all'URL di base '{1}' - '{2}'.", - "Resolving_real_path_for_0_result_1_6130": "Risoluzione del percorso reale per '{0}'. Risultato: '{1}'.", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file '{1}'. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file '{1}' con directory radice '{2}'. ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file '{1}' e directory radice non impostata. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file non impostato con directory radice '{1}'. ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file non impostato con directory radice non impostata. ========", - "Resolving_with_primary_search_path_0_6121": "La risoluzione verrà eseguita con il percorso di ricerca primaria '{0}'.", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Il parametro rest '{0}' contiene implicitamente un tipo 'any[]'.", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Il parametro rest '{0}' contiene implicitamente un tipo 'any[]', ma è possibile dedurre un tipo migliore dall'utilizzo.", - "Rest_types_may_only_be_created_from_object_types_2700": "È possibile creare tipi rest solo da tipi di oggetto.", - "Return_type_annotation_circularly_references_itself_2577": "L'annotazione di tipo restituito contiene un riferimento circolare a se stessa.", - "Return_type_must_be_inferred_from_a_function_95149": "Il tipo restituito deve essere dedotto da una funzione", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "Il tipo restituito della firma di chiamata dell'interfaccia esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "Il tipo restituito della firma di chiamata dell'interfaccia esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "Il tipo restituito della firma del costruttore dell'interfaccia esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "Il tipo restituito della firma del costruttore dell'interfaccia esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "Il tipo restituito della firma del costruttore deve essere assegnabile al tipo di istanza della classe.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "Il tipo restituito della funzione esportata contiene o usa il nome '{0}' del modulo esterno {1} ma non può essere rinominato.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "Il tipo restituito della funzione esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "Il tipo restituito della funzione esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "Il tipo restituito della firma dell'indice dell'interfaccia esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "Il tipo restituito della firma dell'indice dell'interfaccia esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "Il tipo restituito del metodo dell'interfaccia esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "Il tipo restituito del metodo dell'interfaccia esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "Il tipo restituito del getter pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo esterno {2}, ma non può essere rinominato.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "Il tipo restituito del getter pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "Il tipo restituito del getter pubblico '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "Il tipo restituito del metodo pubblico della classe esportata contiene o usa il nome '{0}' del modulo esterno {1} ma non può essere rinominato.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "Il tipo restituito del metodo pubblico della classe esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "Il tipo restituito del metodo pubblico della classe esportata contiene o usa il nome privato '{0}'.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "Il tipo restituito del getter di proprietà pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo esterno '{2}', ma non può essere rinominato.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "Il tipo restituito del getter di proprietà pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "Il tipo restituito del getter statico pubblico '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "Il tipo restituito del metodo statico pubblico della classe esportata contiene o usa il nome '{0}' del modulo esterno {1} ma non può essere rinominato.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "Il tipo restituito del metodo statico pubblico della classe esportata contiene o usa il nome '{0}' del modulo privato '{1}'.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "Il tipo restituito del metodo statico pubblico della classe esportata contiene o usa il nome privato '{0}'.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' che è stato trovato nella cache dal percorso '{2}' non è stato risolto.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' che è stato trovato nella cache dal percorso '{2}' è stato risolto in '{3}'.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' è stato trovato nella cache dal percorso '{2}'. È stato risolto correttamente in '{3}' con ID pacchetto '{4}'.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' del programma precedente non è stato risolto.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' del programma precedente è stato risolto in '{2}'.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "Il riutilizzo della risoluzione del modulo '{0}' da '{1}' del programma precedente è stato risolto in '{2}' con l'ID pacchetto '{3}'.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "Il riutilizzo della risoluzione della direttiva per il tipo di riferimento '{0}' da '{1}' che è stato trovato nella cache dal percorso '{2}' non è stato risolto.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "Il riutilizzo della risoluzione della direttiva per il tipo di riferimento '{0}' da '{1}' che è stato trovato nella cache dal percorso '{2}' è stato risolto in '{3}'.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "Il riutilizzo della risoluzione della direttiva per il tipo di riferimento '{0}' da '{1}' che è stato trovato nella cache dal percorso '{2}' è stato risolto in '{3}' con ID pacchetto '{4}'.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "Il riutilizzo della risoluzione della direttiva riferimento di tipo '{0}' da '{1}' del programma precedente non è stato risolto.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "Il riutilizzo della risoluzione della direttiva riferimento di tipo '{0}' da '{1}' del programma precedente è stato risolto correttamente in '{2}'.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Il riutilizzo della risoluzione della direttiva per il tipo di riferimento '{0}' da '{1}' del programma precedente è stato risolto in '{2}' con l'ID pacchetto '{3}'.", - "Rewrite_all_as_indexed_access_types_95034": "Riscrivere tutti come tipi di accesso indicizzati", - "Rewrite_as_the_indexed_access_type_0_90026": "Riscrivere come tipo di accesso indicizzato '{0}'", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Non è possibile determinare la directory radice. I percorsi di ricerca primaria verranno ignorati.", - "Root_file_specified_for_compilation_1427": "File radice specificato per la compilazione", - "STRATEGY_6039": "STRATEGIA", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Salva i file .tsbuildinfo per consentire la compilazione incrementale dei progetti.", - "Saw_non_matching_condition_0_6405": "Visualizzata la condizione di corrispondenza '{0}'.", - "Scoped_package_detected_looking_in_0_6182": "Il pacchetto con ambito è stato rilevato. Verrà eseguita una ricerca in '{0}'", - "Selection_is_not_a_valid_statement_or_statements_95155": "La selezione non corrisponde a una o più istruzioni valide", - "Selection_is_not_a_valid_type_node_95133": "La selezione non corrisponde a un nodo di tipo valido", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Imposta la versione del linguaggio JavaScript per il codice JavaScript creato e include le dichiarazioni di libreria compatibili.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "Imposta la lingua della messaggistica da TypeScript. Non influisce sulla creazione.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "Impostare l'opzione 'module' nel file di configurazione su '{0}'", - "Set_the_newline_character_for_emitting_files_6659": "Imposta il carattere di nuova riga per la creazione di file.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "Impostare l'opzione 'target' nel file di configurazione su '{0}'", - "Setters_cannot_return_a_value_2408": "I setter non possono restituire un valore.", - "Show_all_compiler_options_6169": "Mostra tutte le opzioni del compilatore.", - "Show_diagnostic_information_6149": "Mostra le informazioni di diagnostica.", - "Show_verbose_diagnostic_information_6150": "Mostra le informazioni di diagnostica dettagliate.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Mostra gli elementi che vengono compilati (o eliminati, se specificati con l'opzione '--clean')", - "Signature_0_must_be_a_type_predicate_1224": "La firma '{0}' deve essere un predicato di tipo.", - "Skip_type_checking_all_d_ts_files_6693": "Ignora il controllo del tipo di tutti i file .d.ts.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Ignora il controllo dei tipi dei file .d.ts inclusi con TypeScript.", - "Skip_type_checking_of_declaration_files_6012": "Ignora il controllo del tipo dei file di dichiarazione.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "La compilazione del progetto '{0}' verrà ignorata perché la dipendenza '{1}' contiene errori", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "La compilazione del progetto '{0}' verrà ignorata perché la dipendenza '{1}' non è stata compilata", - "Source_from_referenced_project_0_included_because_1_specified_1414": "L'origine del progetto di riferimento '{0}' è inclusa perché è stato specificato '{1}'", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "L'origine del progetto di riferimento '{0}' è inclusa perché il valore specificato per '--module' è 'none'", - "Source_has_0_element_s_but_target_allows_only_1_2619": "L'origine contiene {0} elemento/i ma la destinazione ne consente solo {1}.", - "Source_has_0_element_s_but_target_requires_1_2618": "L'origine contiene {0} elemento/i ma la destinazione ne richiede {1}.", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "L'origine non fornisce alcuna corrispondenza per l'elemento obbligatorio alla posizione {0} nella destinazione.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "L'origine non fornisce alcuna corrispondenza per l'elemento variadic alla posizione {0} nella destinazione.", - "Specify_ECMAScript_target_version_6015": "Specifica la versione di destinazione di ECMAScript.", - "Specify_JSX_code_generation_6080": "Specifica la generazione del codice JSX.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "Consente di specificare un file che aggrega tutti gli output in un unico file JavaScript. Se 'declaration' è true, designa anche un file che aggrega tutto l'output dei file .d.ts.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "Consente di specificare un elenco di criteri GLOB che corrispondono ai file da includere nella compilazione.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "Consente di specificare un elenco di plug-in da includere del servizio di linguaggio.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "Consente di specificare un set di file di dichiarazione della libreria aggregati che descrivono l'ambiente di runtime di destinazione.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "Consente di specificare un set di voci che eseguono di nuovo il mapping delle direttive import nei percorsi di ricerca aggiuntivi.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "Consente di specificare un array di oggetti che indicano percorsi per i progetti. Usato nei riferimenti dei progetti.", - "Specify_an_output_folder_for_all_emitted_files_6678": "Consente di specificare una cartella di output per tutti i file creati.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "Specificare il comportamento di creazione/controllo per le importazioni usate solo per i tipi.", - "Specify_file_to_store_incremental_compilation_information_6380": "Specificare il file per l'archiviazione delle informazioni di compilazione incrementale", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "Consente di specificare in che modo TypeScript cerca un file da un identificatore di modulo specifico.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "Consente di specifica la modalità di controllo delle directory nei sistemi in cui non sono presenti funzionalità ricorsive di controllo dei file.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "Consente di specificare il funzionamento della modalità espressione di controllo TypeScript.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "Specificare i file di libreria da includere nella compilazione.", - "Specify_module_code_generation_6016": "Specifica la generazione del codice del modulo.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Specifica la strategia di risoluzione del modulo: 'node' (Node.js) o 'classic' (TypeScript prima della versione 1.6).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Specifica l'identificatore di modulo usato per importare funzioni factory JSX quando si usa 'jsx: react-jsx*'.", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Consente di specificare più cartelle che fungono da './node_modules/@types'.", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Consente di specificare uno o più percorsi o riferimenti al modulo del nodo ai file di configurazione di base da cui vengono ereditate le impostazioni.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "Consente di specificare le opzioni per l'acquisizione automatica dei file di dichiarazione.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "Specifica la strategia per la creazione di un'espressione di controllo di polling quando non viene creata con eventi del file system: 'FixedInterval' (impostazione predefinita), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "Specifica la strategia per il controllo della directory in piattaforme che non supportano il controllo ricorsivo in modo nativo: 'UseFsEvents' (impostazione predefinita), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "Specifica la strategia per il controllo del file: 'FixedPollingInterval' (impostazione predefinita), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "Consente di specificare il riferimento al fragmento JSX usato per i frammenti quando la destinazione è la creazione JSX React, ad esempio 'React.Fragment' o 'Fragment'.", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "Consente di specificare la funzione della factory JSX da usare quando la destinazione è la creazione JSX 'react', ad esempio 'React.createElement' o 'h'.", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "Consente di specificare la funzione della factory JSX da usare quando la destinazione è la creazione JSX React, ad esempio 'React.createElement' o 'h'.", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "Specificare la funzione della factory di frammenti JSX da usare quando la destinazione è la creazione JSX 'react' quando è specificata l'opzione del compilatore 'jsxFactory', ad esempio 'Fragment'.", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "Specificare la directory di base per risolvere i nomi di modulo non relativi.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "Specifica la sequenza di fine riga da usare per la creazione dei file, ovvero 'CRLF' (in DOS) o 'LF' (in UNIX).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "Specifica il percorso in cui il debugger deve trovare i file TypeScript invece dei percorsi di origine.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "Specifica il percorso in cui il debugger deve trovare i file map invece dei percorsi generati.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "Consente di specificare la profondità massima della cartella utilizzata per il controllo dei file JavaScript da 'node_modules'. Applicabile solo con 'allowJs'.", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "Specificare l'identificatore di modulo da usare da cui importare le funzioni di factory 'jsx' e 'jsxs', ad esempio react", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "Consente di specificare l'oggetto richiamato per 'createElement'. Si applica quando la destinazione è la creazione JSX `react`.", - "Specify_the_output_directory_for_generated_declaration_files_6613": "Consente di specificare la directory di output per i file di dichiarazione generati.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "Consente di specificare il percorso per il file di compilazione incrementale .tsbuildinfo.", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "Specifica la directory radice dei file di input. Usare per controllare la struttura della directory di output con --outDir.", - "Specify_the_root_folder_within_your_source_files_6690": "Consente di specificare la cartella radice nei file di origine.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "Consente di specificare il percorso radice per consentire ai debugger di trovare il codice sorgente di riferimento.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "Consente di specificare i tipi di nomi dei pacchetti da includere senza farvi riferimento in un file di origine.", - "Specify_what_JSX_code_is_generated_6646": "Consente di specificare il codice JSX generato.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "Consente di specificare l'approccio che il watcher deve adottare se il sistema esaurisce i watcher di file nativi.", - "Specify_what_module_code_is_generated_6657": "Consente di specificare il codice del modulo generato.", - "Split_all_invalid_type_only_imports_1367": "Dividere tutte le importazioni solo di tipi non valide", - "Split_into_two_separate_import_declarations_1366": "Dividere in due dichiarazioni di importazione separate", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "L'operatore Spread in espressioni 'new' è disponibile solo se destinato a ECMAScript 5 e versioni successive.", - "Spread_types_may_only_be_created_from_object_types_2698": "È possibile creare tipi spread solo da tipi di oggetto.", - "Starting_compilation_in_watch_mode_6031": "Avvio della compilazione in modalità espressione di controllo...", - "Statement_expected_1129": "È prevista l'istruzione.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "Le istruzioni non sono consentite in contesti di ambiente.", - "Static_members_cannot_reference_class_type_parameters_2302": "I membri statici non possono fare riferimento a parametri di tipo classe.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La proprietà statica '{0}' è in conflitto con la proprietà predefinita 'Function.{0}' della funzione del costruttore '{1}'.", - "String_literal_expected_1141": "È previsto un valore letterale stringa.", - "String_literal_with_double_quotes_expected_1327": "È previsto un valore letterale stringa con virgolette doppie.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Applica stili a errori e messaggi usando colore e contesto (sperimentale).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Le dichiarazioni di proprietà successive devono essere dello stesso tipo. La proprietà '{0}' deve essere di tipo '{1}', ma qui è di tipo '{2}'.", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Le dichiarazioni di variabili successive devono essere dello stesso tipo. La variabile '{0}' deve essere di tipo '{1}', mentre è di tipo '{2}'.", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Il tipo della sostituzione '{0}' per il criterio '{1}' non è corretto. È previsto 'string', ma è stato ottenuto '{2}'.", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "La sostituzione '{0}' nel criterio '{1}' può contenere al massimo un carattere '*'.", - "Substitutions_for_pattern_0_should_be_an_array_5063": "Le sostituzioni per il criterio '{0}' devono essere una matrice.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "Le sostituzioni per il criterio '{0}' non devono essere una matrice vuota.", - "Successfully_created_a_tsconfig_json_file_6071": "La creazione di un file tsconfig.json è riuscita.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "Le chiamate super non sono consentite all'esterno di costruttori o nelle funzioni annidate all'interno di costruttori.", - "Suppress_excess_property_checks_for_object_literals_6072": "Elimina i controlli delle proprietà in eccesso per i valori letterali di oggetto.", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "Non visualizza gli errori noImplicitAny per gli oggetti di indicizzazione in cui mancano le firme dell'indice.", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "Disabilita gli errori 'noImplicitAny' durante l'indicizzazione di oggetti in cui mancano le firme dell'indice.", - "Switch_each_misused_0_to_1_95138": "Cambiare ogni '{0}' non usato correttamente in '{1}'", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "Chiama in modo sincrono i callback e aggiorna lo stato dei watcher di directory in piattaforme che non supportano il controllo ricorsivo in modo nativo.", - "Syntax_Colon_0_6023": "Sintassi: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "Con il tag '{0}' sono previsti almeno '{1}' argomenti, ma la factory JSX '{2}' ne fornisce al massimo '{3}'.", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Le espressioni di modello con tag non sono consentite in una catena facoltativa.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "La destinazione consente solo {0} elemento/i ma l'origine potrebbe contenerne di più.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "La destinazione richiede {0} elemento/i ma l'origine potrebbe contenerne di meno.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Il modificatore '{0}' può essere usato solo in file TypeScript.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Non è possibile applicare l'operatore '{0}' al tipo 'symbol'.", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "L'operatore '{0}' non è consentito per i tipi booleani. Provare a usare '{1}'.", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La proprietà '{0}' di un iteratore asincrono deve essere un metodo.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "La proprietà '{0}' di un iteratore deve essere un metodo.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Il tipo 'Object' può essere assegnato a un numero molto limitato di altri tipi. Si intendeva usare il tipo 'any'?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Non è possibile fare riferimento all'oggetto 'arguments' in una funzione arrow in ES3 e ES5. Provare a usare un'espressione di funzione standard.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Non è possibile fare riferimento all'oggetto 'arguments' in un metodo o una funzione asincrona in ES3 e ES5. Provare a usare un metodo o una funzione standard.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Il corpo di un'istruzione 'if' non può essere l'istruzione vuota.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "La chiamata sarebbe riuscita rispetto a questa implementazione, ma le firme di implementazione degli overload non sono visibili esternamente.", - "The_character_set_of_the_input_files_6163": "Set di caratteri dei file di input.", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "La funzione arrow contenitore acquisisce il valore globale di 'this'.", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "Il corpo del modulo o la funzione che contiene è troppo grande per l'analisi del flusso di controllo.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "Il file corrente è un modulo CommonJS e non può usare 'await' al livello principale.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "Il file corrente è un modulo CommonJS le cui importazioni genereranno chiamate 'require'. Tuttavia, il file a cui si fa riferimento è un modulo ECMAScript e non può essere importato con 'require'. Provare a scrivere una chiamata 'import(\"{0}\")' dinamica.", - "The_current_host_does_not_support_the_0_option_5001": "L'host corrente non supporta l'opzione '{0}'.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "La dichiarazione di '{0}' che probabilmente si intende usare viene definita in questo punto", - "The_declaration_was_marked_as_deprecated_here_2798": "La dichiarazione è stata contrassegnata come deprecata in questo punto.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "Il tipo previsto proviene dalla proprietà '{0}', dichiarata in questo punto nel tipo '{1}'", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "Il tipo previsto proviene dal tipo restituito di questa firma.", - "The_expected_type_comes_from_this_index_signature_6501": "Il tipo previsto proviene da questa firma dell'indice.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "L'espressione di un'assegnazione di esportazione deve essere un identificatore o un nome completo in un contesto di ambiente.", - "The_file_is_in_the_program_because_Colon_1430": "Motivo per cui il file è presente nel programma:", - "The_files_list_in_config_file_0_is_empty_18002": "L'elenco 'files' nel file config '{0}' è vuoto.", - "The_first_export_default_is_here_2752": "In questo punto è presente il valore predefinito per la prima esportazione.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Il primo parametro del metodo 'then' di una promessa deve essere un callback.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Il tipo globale 'JSX.{0}' non può contenere più di una proprietà.", - "The_implementation_signature_is_declared_here_2750": "In questo punto viene dichiarata la firma di implementazione.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "La metaproprietà' Import. meta ' non è consentita per i file che vengono compilati nell'output di CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metaproprietà 'import.meta' è consentita solo se l'opzione '--module' è impostata su 'es2020', 'es2022', 'esnext', 'system', 'node16' o 'nodenext'.", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Non è possibile assegnare un nome al tipo derivato di '{0}' senza un riferimento a '{1}'. È probabile che non sia portabile. È necessaria un'annotazione di tipo.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Il tipo dedotto di '{0}' fa riferimento a un tipo con una struttura ciclica che non può essere facilmente serializzata. È necessaria un'annotazione di tipo.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Il tipo dedotto di '{0}' fa riferimento a un tipo '{1}' non accessibile. È necessaria un'annotazione di tipo.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Il tipo dedotto di questo nodo supera la lunghezza massima serializzata dal compilatore. È necessaria un'annotazione di tipo esplicita.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "L'intersezione '{0}' è stata ridotta a 'never' perché la proprietà '{1}' esiste in più costituenti ed è privata in alcuni.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "L'intersezione '{0}' è stata ridotta a 'never' perché in alcuni costituenti della proprietà '{1}' sono presenti tipi in conflitto.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "La parola chiave 'intrinsic' può essere usata solo per dichiarare tipi intrinseci forniti dal compilatore.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "Per usare frammenti JSX con l'opzione del compilatore 'jsxFactory', è necessario specificare l'opzione del compilatore 'jsxFragmentFactory'.", - "The_last_overload_gave_the_following_error_2770": "L'ultimo overload ha restituito l'errore seguente.", - "The_last_overload_is_declared_here_2771": "In questo punto viene dichiarato l'ultimo overload.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La parte sinistra di un'espressione 'for...in' non può essere un criterio di destrutturazione.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Nella parte sinistra di un'espressione 'for...in' non è possibile usare un'annotazione di tipo.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La parte sinistra di un'istruzione 'for...in' non può essere un accesso a proprietà facoltativo.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La parte sinistra di un'istruzione 'for...in' deve essere una variabile o un accesso a proprietà.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "La parte sinistra di un'espressione 'for...in' deve essere di tipo 'string' o 'any'.", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "Nella parte sinistra di un'espressione 'for...of' non è possibile usare un'annotazione di tipo.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "La parte sinistra di un'istruzione 'for...of' non può essere un accesso a proprietà facoltativo.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "La parte sinistra di un'istruzione 'for...of' non può essere 'async'.", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "La parte sinistra di un'istruzione 'for...of' deve essere una variabile o un accesso a proprietà.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La parte sinistra di un'operazione aritmetica deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La parte sinistra di un'espressione di assegnazione non può essere un accesso a proprietà facoltativo.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La parte sinistra di un'espressione di assegnazione deve essere una variabile o un accesso a proprietà.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La parte sinistra di un'espressione 'instanceof' deve essere di tipo 'any' oppure essere un tipo di oggetto o un parametro di tipo.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Impostazioni locali usate per la visualizzazione di messaggi all'utente, ad esempio 'it-it'", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Profondità massima delle dipendenze per la ricerca in node_modules e il caricamento dei file JavaScript.", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "L'operando di un operatore 'delete' non può essere un identificatore privato.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "L'operando di un operatore 'delete' non può essere una proprietà di sola lettura.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "L'operando di un operatore 'delete' deve essere un riferimento a proprietà.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "L'operando di un operatore 'delete' deve essere facoltativo.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "L'operando di un operatore di incremento o decremento non può essere un accesso a proprietà facoltativo.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "L'operando di un operatore di incremento o decremento deve essere una variabile o un accesso a proprietà.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "In questo punto il parser dovrebbe trovare un simbolo '{1}' abbinato al token '{0}'.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La radice del progetto è ambigua, ma è necessaria per risolvere i '{0}' delle voci della mappa di esportazione nel file '{1}'. Specificare l'opzione del compilatore 'rootDir' per disambiguare.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La radice del progetto è ambigua, ma è necessaria per risolvere i '{0}' delle voci della mappa di importazione nel file '{1}'. Specificare l'opzione del compilatore 'rootDir' per disambiguare.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Non è possibile accedere alla proprietà '{0}' nel tipo '{1}' all'interno di questa classe perché è nascosta da un altro identificatore privato con la stessa ortografia.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Il tipo restituito di una funzione di accesso 'get' deve essere assegnabile al relativo tipo di funzione di accesso 'set'", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Il tipo restituito di una funzione di espressione Decorator del parametro deve essere 'void' o 'any'.", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Il tipo restituito di una funzione di espressione Decorator della proprietà deve essere 'void' o 'any'.", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Il tipo restituito di una funzione asincrona deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Il tipo restituito di un metodo o una funzione asincrona deve essere il tipo globale Promise. Si intendeva scrivere 'Promise<{0}>'?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La parte destra di un'istruzione 'for...in' deve essere di tipo 'any' oppure essere un tipo di oggetto o un parametro di tipo, ma in questo caso il tipo è '{0}'.", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La parte destra di un'operazione aritmetica deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La parte destra di un'espressione 'instanceof' deve essere di tipo 'any' o di un tipo assegnabile al tipo di interfaccia 'Function'.", - "The_root_value_of_a_0_file_must_be_an_object_5092": "Il valore radice di un file '{0}' deve essere un oggetto.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "La dichiarazione di oscuramento di '{0}' viene definita in questo punto", - "The_signature_0_of_1_is_deprecated_6387": "La firma '{0}' di '{1}' è deprecata.", - "The_specified_path_does_not_exist_Colon_0_5058": "Il percorso specificato non esiste: '{0}'.", - "The_tag_was_first_specified_here_8034": "Il tag è stato specificato per la prima volta in questo punto.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "La destinazione di un'assegnazione rest di oggetto non può essere un accesso a proprietà facoltativo.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "La destinazione di un'assegnazione REST di oggetto deve essere una variabile o un accesso a proprietà.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "Il contesto 'this' del tipo '{0}' non è assegnabile a quello 'this' di tipo '{1}' del metodo.", - "The_this_types_of_each_signature_are_incompatible_2685": "I tipi 'this' delle singole firme non sono compatibili.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "Il tipo '{0}' è 'readonly' e non può essere assegnato al tipo modificabile '{1}'.", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Impossibile utilizzare il modificatore 'tipo' in un'esportazione denominata quando 'tipo di esportazione' viene usato nell'istruzione di esportazione.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Impossibile utilizzare il modificatore 'tipo' in un'importazione denominata quando 'tipo di importazione' viene usato nella relativa istruzione di importazione.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Il tipo di una dichiarazione di funzione deve corrispondere alla firma della funzione.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Impossibile assegnare un nome al tipo di questa espressione senza un'asserzione 'resolution-mode', che è una funzionalità instabile. Usare TypeScript notturno per disattivare l'errore. Provare ad aggiornare con 'npm install -D typescript@next'.", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Impossibile serializzare questo tipo di nodo perché la sua proprietà '{0}' non può essere serializzata.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Il tipo restituito dal metodo '{0}()' di un iteratore asincrono deve essere una promessa per un tipo con una proprietà 'value'.", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Il tipo restituito dal metodo '{0}()' di un iteratore deve contenere una proprietà 'value'.", - "The_types_of_0_are_incompatible_between_these_types_2200": "I tipi di '{0}' sono incompatibili tra questi tipi.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "I tipi restituiti da '{0}' sono incompatibili tra questi tipi.", - "The_value_0_cannot_be_used_here_18050": "Non è possibile usare qui il valore '{0}'.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La dichiarazione di variabile di un'istruzione 'for...in' non può contenere un inizializzatore.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La dichiarazione di variabile di un'istruzione 'for...of' non può contenere un inizializzatore.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'istruzione 'with' non è supportata. Il tipo di tutti i simboli in un blocco 'with' è 'any'.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Con la proprietà '{0}' del tag JSX è previsto un singolo elemento figlio di tipo '{1}', ma sono stati specificati più elementi figlio.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Con la proprietà '{0}' del tag JSX è previsto il tipo '{1}' che richiede più elementi figlio, ma è stato specificato un singolo elemento figlio.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Questo confronto sembra non intenzionale perché i tipi '{0}' e '{1}' non presentano alcuna sovrapposizione.", - "This_condition_will_always_return_0_2845": "Questa condizione restituirà sempre '{0}'.", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Questa condizione restituirà sempre '{0}' perché JavaScript confronta gli oggetti per riferimento, non per valore.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Questa condizione restituirà sempre true perché questo elemento '{0}' è sempre definito.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Questa condizione restituirà sempre true perché questa funzione è sempre definita. Si intendeva chiamarla?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Questa funzione del costruttore può essere convertita in una dichiarazione di classe.", - "This_expression_is_not_callable_2349": "Questa espressione non può essere chiamata.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Non è possibile chiamare questa espressione perché è una funzione di accesso 'get'. Si intendeva usarla senza '()'?", - "This_expression_is_not_constructable_2351": "Questa espressione non può essere costruita.", - "This_file_already_has_a_default_export_95130": "Per questo file esiste già un'esportazione predefinita", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Questa importazione non viene mai usata come valore e deve usare 'import type' perché 'importsNotUsedAsValues' è impostato su 'error'.", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Questa è la dichiarazione che verrà aumentata. Provare a spostare la dichiarazione che causa l'aumento nello stesso file.", - "This_may_be_converted_to_an_async_function_80006": "Può essere convertita in una funzione asincrona.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Questo membro non può avere un commento JSDoc con un tag '@override' perché non è dichiarato nella classe di base '{0}'.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Questo membro non può avere un commento JSDoc con un tag 'override' perché non è dichiarato nella classe di base '{0}'. Intendevi '{1}'?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Questo membro non può avere un commento JSDoc con un tag '@override' perché la classe che lo contiene '{0}' non estende un'altra classe.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Questo membro non può includere un modificatore 'override' perché non è dichiarato nella classe di base '{0}'.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Questo membro non può includere un modificatore 'override' perché non è dichiarato nella classe di base '{0}'. Forse intendevi '{1}'?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Questo membro non può includere un modificatore 'override' perché la classe '{0}', che lo contiene, non estende un'altra classe.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Questo membro deve avere un commento JSDoc con un tag '@override' perché sostituisce un membro nella classe di base '{0}'.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Questo membro deve includere un modificatore 'override' perché sovrascrive un membro nella classe di base '{0}'.", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Questo membro deve includere un modificatore 'override' perché esegue l'override di un metodo astratto dichiarato nella classe di base '{0}'.", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "È possibile fare riferimento a questo modulo solo con importazioni/esportazioni ECMAScript attivando il flag '{0}' e facendo riferimento alla relativa esportazione predefinita.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Il modulo viene dichiarato con 'export =' e può essere usato solo con un'importazione predefinita quando si usa il flag '{0}'.", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Questa firma di overload non è compatibile con la relativa firma di implementazione.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Questo parametro non è consentito con la direttiva 'use strict'.", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Questa proprietà di parametro deve avere un commento JSDoc con un tag '@override' perché sostituisce un membro nella classe di base '{0}'.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Questa proprietà parametro deve includere un modificatore 'override' perché sovrascrive un membro nella classe di base '{0}'.", - "This_spread_always_overwrites_this_property_2785": "Questo spread sovrascrive sempre questa proprietà.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Questa sintassi è riservata ai file con estensione MTS o CTS. Aggiungere una virgola finale o un vincolo esplicito.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Questa sintassi è riservata ai file con estensione mts o cts. Utilizzare un'espressione 'as'.", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Con questa sintassi è richiesto un helper importato, ma il modulo '{0}' non è stato trovato.", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Con questa sintassi è richiesto un helper importato denominato '{1}', che non esiste in '{0}'. Provare ad aggiornare la versione di '{0}'.", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Con questa sintassi è richiesto un helper importato denominato '{1}' con {2} parametri, che non è compatibile con quello presente in '{0}'. Provare ad aggiornare la versione di '{0}'.", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "Questo parametro di tipo potrebbe richiedere un vincolo `extends {0}`.", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Questo uso di 'import' non è valido. le chiamate 'import()' possono essere scritte, ma devono avere parentesi e non possono avere argomenti di tipo.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "Per convertire questo file in un modulo ECMAScript, aggiungere il campo '\"type\": \"module\"' a '{0}'.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Per convertire il file in un modulo ECMAScript, modificarne l'estensione in '{0}' oppure aggiungere il campo '\"type\": \"module\"' a '{1}'.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Per convertire questo file in un modulo ECMAScript, modificarne l'estensione in '{0}' o creare un file package.json locale con '{ \"type\": \"module\" }'.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Per convertire questo file in un modulo ECMAScript, creare un file package.json locale con '{ \"type\": \"module\" }'.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Le espressioni 'await' di primo livello sono consentite solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system', 'node16', or 'nodenext', e l'opzione 'target' è impostata su 'es2017' o versione successiva.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Le dichiarazioni di primo livello nei file con estensione d.ts devono iniziare con un modificatore 'declare' o 'export'.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "I cicli 'for await' di primo livello sono consentiti solo quando l'opzione 'module' è impostata su'es2022', 'esnext', 'system', 'node16', o 'nodenext' e l'opzione 'target' è impostata su 'es2017' o versione successiva.", - "Trailing_comma_not_allowed_1009": "La virgola finale non è consentita.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Esegue il transpile di ogni file in un modulo separato (simile a 'ts.transpileModule').", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Provare con `npm i --save-dev @types/{1}` se esiste oppure aggiungere un nuovo file di dichiarazione con estensione d.ts contenente `declare module '{0}';`", - "Trying_other_entries_in_rootDirs_6110": "Verrà effettuato un tentativo con altre voci in 'rootDirs'.", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Verrà effettuato un tentativo con la sostituzione '{0}'. Percorso candidato del modulo: '{1}'.", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "I membri di tupla devono tutti avere o non avere nomi.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Il tipo di tupla '{0}' con lunghezza '{1}' non contiene elementi alla posizione di indice '{2}'.", - "Tuple_type_arguments_circularly_reference_themselves_4110": "Gli argomenti tipo di tupla contengono un riferimento circolare a se stessi.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Il tipo '{0}' può essere iterato solo quando si usa il flag '--downlevelIteration' o quando '--target' è impostato su 'es2015' o un valore superiore.", - "Type_0_cannot_be_used_as_an_index_type_2538": "Non è possibile usare il tipo '{0}' come tipo di indice.", - "Type_0_cannot_be_used_to_index_type_1_2536": "Non è possibile usare il tipo '{0}' per indicizzare il tipo '{1}'.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "Il tipo '{0}' non soddisfa il vincolo '{1}'.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "Il tipo '{0}' non soddisfa il tipo previsto '{1}'.", - "Type_0_has_no_call_signatures_2757": "Il tipo '{0}' non contiene firme di chiamata.", - "Type_0_has_no_construct_signatures_2761": "Il tipo '{0}' non contiene firme del costrutto.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "Nel tipo '{0}' non esiste alcuna firma dell'indice corrispondente per il tipo '{1}'.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "Il tipo '{0}' non ha proprietà in comune con il tipo '{1}'.", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Il tipo '{0}' non ha firme per cui è applicabile l'elenco degli argomenti tipo.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Nel tipo '{0}' mancano le proprietà seguenti del tipo '{1}': {2}", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Nel tipo '{0}' mancano le proprietà seguenti del tipo '{1}': {2} e altre {3}.", - "Type_0_is_not_a_constructor_function_type_2507": "Il tipo '{0}' non è un tipo di funzione del costruttore.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Il tipo '{0}' non è un tipo restituito di funzione asincrona valido in ES5/ES3 perché non fa riferimento a un valore di costruttore compatibile con Promise.", - "Type_0_is_not_an_array_type_2461": "Il tipo '{0}' non è un tipo matrice.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "Il tipo '{0}' non è un tipo matrice o stringa.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Il tipo '{0}' non è un tipo matrice o stringa oppure non contiene un metodo '[Symbol.iterator]()' che restituisce un iteratore.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "Il tipo '{0}' non è un tipo matrice oppure non contiene un metodo '[Symbol.iterator]()' che restituisce un iteratore.", - "Type_0_is_not_assignable_to_type_1_2322": "Il tipo '{0}' non è assegnabile al tipo '{1}'.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Si intendeva '{2}'?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Sono presenti due tipi diversi con questo nome, che però non sono correlati.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Il tipo '{0}' non può essere assegnato al tipo '{1}' come indicato dall'annotazione di varianza.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' ai tipi di proprietà di destinazione.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' al tipo di destinazione.", - "Type_0_is_not_comparable_to_type_1_2678": "Il tipo '{0}' non è confrontabile con il tipo '{1}'.", - "Type_0_is_not_generic_2315": "Il tipo '{0}' non è generico.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Il tipo '{0}' può rappresentare un valore primitivo, che non è consentito come operando destro dell'operatore 'in'.", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Il tipo '{0}' deve contenere un metodo '[Symbol.asyncIterator]()' che restituisce un iteratore asincrono.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Il tipo '{0}' deve contenere un metodo '[Symbol.iterator]()' che restituisce un iteratore.", - "Type_0_provides_no_match_for_the_signature_1_2658": "Il tipo '{0}' non fornisce corrispondenze per la firma '{1}'.", - "Type_0_recursively_references_itself_as_a_base_type_2310": "Il tipo '{0}' fa riferimento a se stesso in modo ricorsivo come tipo di base.", - "Type_Checking_6248": "Controllo del tipo", - "Type_alias_0_circularly_references_itself_2456": "L'alias di tipo '{0}' contiene un riferimento circolare a se stesso.", - "Type_alias_must_be_given_a_name_1439": "È necessario assegnare un nome all'alias del tipo.", - "Type_alias_name_cannot_be_0_2457": "Il nome dell'alias di tipo non può essere '{0}'.", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "Gli alias di tipo possono esere usati solo in file TypeScript.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "L'annotazione di tipo non può essere inclusa in una dichiarazione di costruttore.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "Le annotazioni tipo possono essere usate solo in file TypeScript.", - "Type_argument_expected_1140": "È previsto l'argomento tipo.", - "Type_argument_list_cannot_be_empty_1099": "L'elenco degli argomenti tipo non può essere vuoto.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Gli argomenti tipo possono essere usati solo in file TypeScript.", - "Type_arguments_cannot_be_used_here_1342": "Non è possibile usare argomenti tipo in questa posizione.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "Gli argomenti tipo per '{0}' contengono un riferimento circolare a se stessi.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Le espressioni di asserzione di tipo possono essere usate solo in file TypeScript.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Il tipo alla posizione {0} nell'origine non è compatibile con il tipo alla posizione {1} nella destinazione.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Il tipo alle posizioni dalla {0} alla {1} nell'origine non è compatibile con il tipo alla posizione {2} nella destinazione.", - "Type_declaration_files_to_be_included_in_compilation_6124": "File della dichiarazione di tipo da includere nella compilazione.", - "Type_expected_1110": "È previsto il tipo.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "L’importazione dei tipi di asserzione deve contenere esattamente una chiave, 'resolution-mode', con valore 'import' o 'require'.", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creazione di un'istanza di tipo presenta troppi livelli ed è probabilmente infinita.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Il tipo viene usato come riferimento diretto o indiretto nel callback di fulfillment del relativo metodo 'then'.", - "Type_library_referenced_via_0_from_file_1_1402": "Libreria dei tipi a cui viene fatto riferimento tramite '{0}' dal file '{1}'", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "Libreria dei tipi a cui viene fatto riferimento tramite '{0}' dal file '{1}' con packageId '{2}'", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "Il tipo dell'operando 'await' deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "Il tipo del valore della proprietà calcolata è '{0}', che non è assegnabile al tipo '{1}'.", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "Il tipo di variabile del membro di istanza '{0}' non può fare riferimento all'identificatore '{1}' dichiarato nel costruttore.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Il tipo di elementi iterati di un operando 'yield*' deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Il tipo di proprietà '{0}' contiene un riferimento circolare a se stesso nel tipo con mapping '{1}'.", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Il tipo dell'operando 'yield' in un generatore asincrono deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Il tipo è originato in corrispondenza di questa importazione. Non è possibile chiamare o costruire un'importazione di tipo spazio dei nomi e verrà restituito un errore in fase di esecuzione. Provare a usare un'importazione predefinita o un'importazione di require in questo punto.", - "Type_parameter_0_has_a_circular_constraint_2313": "Il parametro di tipo '{0}' contiene un vincolo circolare.", - "Type_parameter_0_has_a_circular_default_2716": "Il parametro di tipo '{0}' contiene un'impostazione predefinita circolare.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "Il parametro di tipo '{0}' della firma di chiamata dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "Il parametro di tipo '{0}' della firma del costruttore dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "Il parametro di tipo '{0}' della classe esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "Il parametro di tipo '{0}' della funzione esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "Il parametro di tipo '{0}' dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "Il parametro di tipo '{0}' del tipo di oggetto con mapping esportato usa il nome privato '{1}'.", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "Il parametro di tipo '{0}' dell'alias di tipo esportato contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "Il parametro di tipo '{0}' del metodo dell'interfaccia esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "Il parametro di tipo '{0}' del metodo pubblico della classe esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "Il parametro di tipo '{0}' del metodo statico pubblico della classe esportata contiene o usa il nome privato '{1}'.", - "Type_parameter_declaration_expected_1139": "È prevista la dichiarazione di parametro di tipo.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "Le dichiarazioni di parametro di tipo possono essere usate solo in file TypeScript.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "Le impostazioni predefinite del parametro di tipo possono fare riferimento solo a parametri di tipo dichiarati in precedenza.", - "Type_parameter_list_cannot_be_empty_1098": "L'elenco dei parametri di tipo non può essere vuoto.", - "Type_parameter_name_cannot_be_0_2368": "Il nome del parametro di tipo non può essere '{0}'.", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "I parametri di tipo non possono essere inclusi in una dichiarazione di costruttore.", - "Type_predicate_0_is_not_assignable_to_1_1226": "Il predicato di tipo '{0}' non è assegnabile a '{1}'.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "Il tipo produce un tipo di tupla troppo grande da rappresentare.", - "Type_reference_directive_0_was_not_resolved_6120": "======== La direttiva '{0}' del riferimento al tipo non è stata risolta. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== La direttiva '{0}' del riferimento al tipo è stata risolta in '{1}'. Primaria: {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== La direttiva '{0}' del riferimento al tipo è stata risolta in '{1}' con ID pacchetto ID '{2}'. Primaria: {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "Le espressioni di soddisfazione del tipo possono essere usate solo nei file TypeScript.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "I tipi non possono essere visualizzati nelle dichiarazioni di esportazione nei file JavaScript.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "I tipi contengono dichiarazioni separate di una proprietà privata '{0}'.", - "Types_of_construct_signatures_are_incompatible_2419": "I tipi delle firme del costrutto sono incompatibili.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "I tipi dei parametri '{0}' e '{1}' sono incompatibili.", - "Types_of_property_0_are_incompatible_2326": "I tipi della proprietà '{0}' sono incompatibili.", - "Unable_to_open_file_0_6050": "Non è possibile aprire il file '{0}'.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "Non è possibile risolvere la firma dell'espressione Decorator della classe quando è chiamata come espressione.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Non è possibile risolvere la firma dell'espressione Decorator del metodo quando è chiamata come espressione.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Non è possibile risolvere la firma dell'espressione Decorator del parametro quando è chiamata come espressione.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Non è possibile risolvere la firma dell'espressione Decorator della proprietà quando è chiamata come espressione.", - "Unexpected_end_of_text_1126": "Fine del testo imprevista.", - "Unexpected_keyword_or_identifier_1434": "Parola chiave o identificatore imprevisti.", - "Unexpected_token_1012": "Token imprevisto.", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token imprevisto. È previsto un costruttore, un metodo, una funzione di accesso o una proprietà.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token imprevisto. Sono previsti nomi di parametro senza parentesi graffe.", - "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token imprevisto. Si intendeva `{'}'}` o `}`?", - "Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.", - "Unknown_build_option_0_5072": "L'opzione di compilazione '{0}' è sconosciuta.", - "Unknown_build_option_0_Did_you_mean_1_5077": "L'opzione di compilazione '{0}' è sconosciuta. Si intendeva '{1}'?", - "Unknown_compiler_option_0_5023": "Opzione del compilatore sconosciuta: '{0}'.", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "L'opzione '{0}' del compilatore è sconosciuta. Si intendeva '{1}'?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Parola chiave o identificatore sconosciuti. Intendevi '{0}'?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "L'opzione 'excludes' è sconosciuta. Si intendeva 'exclude'?", - "Unknown_type_acquisition_option_0_17010": "L'opzione '{0}' relativa all'acquisizione del tipo è sconosciuta.", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "L'opzione di acquisizione del tipo '{0}' è sconosciuta. Si intendeva '{1}'?", - "Unknown_watch_option_0_5078": "L'opzione '{0}' dell'espressione di controllo è sconosciuta.", - "Unknown_watch_option_0_Did_you_mean_1_5079": "L'opzione '{0}' dell'espressione di controllo è sconosciuta. Si intendeva '{1}'?", - "Unreachable_code_detected_7027": "È stato rilevato codice non raggiungibile.", - "Unterminated_Unicode_escape_sequence_1199": "Sequenza di escape Unicode senza terminazione.", - "Unterminated_quoted_string_in_response_file_0_6045": "Stringa tra virgolette senza terminazione nel file di risposta '{0}'.", - "Unterminated_regular_expression_literal_1161": "Valore letterale di espressione regolare senza terminazione.", - "Unterminated_string_literal_1002": "Valore letterale stringa senza terminazione.", - "Unterminated_template_literal_1160": "Valore letterale di modello senza terminazione.", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "Le chiamate di funzione non tipizzate potrebbero non accettare argomenti tipo.", - "Unused_label_7028": "Etichetta non usata.", - "Unused_ts_expect_error_directive_2578": "Direttiva '@ts-expect-error' non usata.", - "Update_import_from_0_90058": "Aggiornare l'importazione da \"{0}\"", - "Updating_output_of_project_0_6373": "Aggiornamento dell'output del progetto '{0}'...", - "Updating_output_timestamps_of_project_0_6359": "Aggiornamento dei timestamp di output del progetto '{0}'...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "Aggiornamento dei timestamp di output non modificati del progetto '{0}'...", - "Use_0_95174": "Usa `{0}`.", - "Use_Number_isNaN_in_all_conditions_95175": "Usare 'Number.isNaN' in tutte le condizioni.", - "Use_element_access_for_0_95145": "Usare l'accesso agli elementi per '{0}'", - "Use_element_access_for_all_undeclared_properties_95146": "Usare l'accesso agli elementi per tutte le proprietà non dichiarate.", - "Use_synthetic_default_member_95016": "Usare il membro 'default' sintetico.", - "Using_0_subpath_1_with_target_2_6404": "Utilizzo di '{0}' sottotracciato '{1}' con destinazione '{2}'.", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "L'uso di una stringa in un'istruzione 'for...of' è supportato solo in ECMAScript 5 e versioni successive.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Se si usa --build, l'opzione -b modificherà il comportamento di tsc in modo che sia più simile a un agente di orchestrazione di compilazione che a un compilatore. Viene usata per attivare la compilazione di progetti compositi. Per altre informazioni, vedere {0}", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", - "VERSION_6036": "VERSIONE", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "Il valore di tipo '{0}' non ha proprietà in comune con il tipo '{1}'. Si intendeva chiamarlo?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "Il valore di tipo '{0}' non è chiamabile. Si intendeva includere 'new'?", - "Variable_0_implicitly_has_an_1_type_7005": "La variabile '{0}' contiene implicitamente un tipo '{1}'.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "La variabile '{0}' include implicitamente un tipo '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "La variabile '{0}' include implicitamente il tipo '{1}' in alcuni punti, ma è possibile dedurre un tipo migliore dall'utilizzo.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "La variabile '{0}' contiene implicitamente il tipo '{1}' in alcune posizioni in cui non è possibile determinarne il tipo.", - "Variable_0_is_used_before_being_assigned_2454": "La variabile '{0}' viene usata prima dell'assegnazione.", - "Variable_declaration_expected_1134": "È prevista la dichiarazione di variabile.", - "Variable_declaration_list_cannot_be_empty_1123": "L'elenco delle dichiarazioni di variabile non può essere vuoto.", - "Variable_declaration_not_allowed_at_this_location_1440": "Dichiarazione di variabile non consentita in questa posizione.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'elemento variadic alla posizione {0} nell'origine non corrisponde all'elemento alla posizione {1} nella destinazione.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Le annotazioni di varianza sono supportate solo negli alias di tipo per oggetti, funzioni, costruttori e tipi mappati.", - "Version_0_6029": "Versione {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "Per altre informazioni su questo file, visitare https://aka.ms/tsconfig", - "WATCH_OPTIONS_6918": "OPZIONI DELL'ESPRESSIONE DI CONTROLLO", - "Watch_and_Build_Modes_6250": "Modalità di espressione di controllo e compilazione", - "Watch_input_files_6005": "Controlla i file di input.", - "Watch_option_0_requires_a_value_of_type_1_5080": "Con l'opzione '{0}' dell'espressione di controllo è richiesto un valore di tipo {1}.", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "È possibile solo scrivere un tipo per '{0}' aggiungendo qui un tipo per l'intero parametro.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Durante l'assegnazione di funzioni verifica che i parametri e i valori restituiti siano compatibili con il sottotipo.", - "When_type_checking_take_into_account_null_and_undefined_6699": "Durante il controllo del tipo prende in considerazione 'null' e 'undefined'.", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Indica se mantenere l'output della console obsoleto in modalità espressione di controllo invece di pulire lo schermo.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "Eseguire il wrapping di tutti i caratteri non validi in un contenitore di espressioni", - "Wrap_all_object_literal_with_parentheses_95116": "Racchiudere tra parentesi tutti i valori letterali di oggetto", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Esegue il wrapping di JSX senza parentesi nel frammento JSX", - "Wrap_in_JSX_fragment_95120": "Esegui il wrapping nel frammento JSX", - "Wrap_invalid_character_in_an_expression_container_95108": "Eseguire il wrapping del carattere non valido in un contenitore di espressioni", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Racchiudere tra parentesi il corpo seguente che deve essere un valore letterale di oggetto", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Per informazioni su tutte le opzioni del compilatore, vedere {0}", - "You_cannot_rename_a_module_via_a_global_import_8031": "Non è possibile rinominare un modulo tramite un'importazione globale.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "Non è possibile rinominare gli elementi definiti in una cartella 'node_modules'.", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "Non è possibile rinominare gli elementi definiti in un'altra cartella 'node_modules'.", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "Non è possibile rinominare elementi definiti nella libreria TypeScript standard.", - "You_cannot_rename_this_element_8000": "Non è possibile rinominare questo elemento.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' accetta un numero troppo ridotto di argomenti da usare come espressione Decorator in questo punto. Si intendeva chiamarlo prima e scrivere '@{0}()'?", - "_0_and_1_index_signatures_are_incompatible_2330": "Le firme dell'indice '{0}' e '{1}' non sono compatibili.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Non è possibile combinare le operazioni '{0}' e '{1}' senza parentesi.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "Gli attributi '{0}' sono stati specificati due volte. L'attributo denominato '{0}' verrà sovrascritto.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' può essere importato solo attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' può essere importato solo usando un'importazione predefinita.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' può essere importato solo usando una chiamata 'require' o attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' può essere importato solo usando una chiamata 'require' o usando un'importazione predefinita.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' può essere importato solo usando 'import {1} = require({2})' o un'importazione predefinita.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' può essere importato solo usando 'import {1} = require({2})' o attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "Non è possibile compilare '{0}' in '--isolatedModules' perché viene considerato un file di script globale. Aggiungere un'istruzione import, export o un'istruzione 'export {}' vuota per trasformarlo in un modulo.", - "_0_cannot_be_used_as_a_JSX_component_2786": "Non è possibile usare '{0}' come componente JSX.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "Non è possibile usare '{0}' come valore perché è stato esportato con 'export type'.", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "Non è possibile usare '{0}' come valore perché è stato importato con 'import type'.", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "I componenti di '{0}' non accettano testo come elementi figlio. Il tipo di testo in JSX è 'string ', ma il tipo previsto di '{1}' è '{2}'.", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Non è stato possibile creare un'istanza di '{0}' con un tipo arbitrario che potrebbe non essere correlato a '{1}'.", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Le dichiarazioni '{0}' possono essere usate solo in file TypeScript.", - "_0_expected_1005": "È previsto '{0}'.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "In '{0}' non è presente alcun membro esportato denominato '{1}'. Si intendeva '{2}'?", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' include implicitamente un tipo restituito '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' contiene implicitamente il tipo restituito 'any', perché non contiene un'annotazione di tipo restituito e viene usato come riferimento diretto o indiretto in una delle relative espressioni restituite.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "'{0}' contiene implicitamente il tipo 'any', perché non contiene un'annotazione di tipo e viene usato come riferimento diretto o indiretto nel relativo inizializzatore.", - "_0_index_signatures_are_incompatible_2634": "Le firme dell'indice '{0}' non sono compatibili.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Il tipo di indice '{0}' '{1}' non è assegnabile al tipo di indice '{2}' '{3}'.", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' è una primitiva, ma '{1}' è un oggetto wrapper. Quando possibile, preferire '{0}'.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' è un tipo e non può essere importato nei file JavaScript. Usare '{1}' in un'annotazione di tipo JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' è un tipo e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' è una ridenominazione inutilizzata di '{1}'. Si intendeva utilizzarla come annotazione di tipo?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' è assegnabile al vincolo di tipo '{1}', ma è possibile creare un'istanza di '{1}' con un sottotipo diverso del vincolo '{2}'.", - "_0_is_automatically_exported_here_18044": "'{0}' viene esportato automaticamente qui.", - "_0_is_declared_but_its_value_is_never_read_6133": "L'elemento '{0}' è dichiarato, ma il suo valore non viene mai letto.", - "_0_is_declared_but_never_used_6196": "La variabile '{0}' è dichiarata, ma non viene mai usata.", - "_0_is_declared_here_2728": "In questo punto viene dichiarato '{0}'.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "'{0}' è definito come proprietà nella classe '{1}', ma in questo punto ne viene eseguito l'override in '{2}' come funzione di accesso.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}' è definito come funzione di accesso nella classe '{1}', ma in questo punto ne viene eseguito l'override in '{2}' come proprietà di istanza.", - "_0_is_deprecated_6385": "'{0}' è deprecato.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' non è una metaproprietà valida per la parola chiave '{1}'. Si intendeva '{2}'?", - "_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' non è un nome di parametro consentito.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' non è consentito come nome di una dichiarazione di variabile.", - "_0_is_of_type_unknown_18046": "'{0}' è di tipo 'unknown'.", - "_0_is_possibly_null_18047": "'{0}' è probabilmente 'null'.", - "_0_is_possibly_null_or_undefined_18049": "'{0}' è probabilmente 'null' o 'undefined'.", - "_0_is_possibly_undefined_18048": "'{0}' è probabilmente 'undefined'.", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' viene usato come riferimento diretto o indiretto nella relativa espressione di base.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' viene usato come riferimento diretto o indiretto nella relativa annotazione di tipo.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' è specificato più di una volta, quindi il relativo utilizzo verrà sovrascritto.", - "_0_list_cannot_be_empty_1097": "L'elenco '{0}' non può essere vuoto.", - "_0_modifier_already_seen_1030": "Il modificatore '{0}' è già presente.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Il modificatore '{0}' può essere presente solo in un parametro di tipo di una classe, un'interfaccia o un alias di tipo", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Il modificatore '{0}' non può essere incluso in una dichiarazione di costruttore.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Il modificatore '{0}' non può essere incluso in un elemento modulo o spazio dei nomi.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "Il modificatore '{0}' non può essere incluso in un parametro.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "Il modificatore '{0}' non può essere incluso in un membro di tipo.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Il modificatore '{0}' non può essere incluso in un parametro di tipo.", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "Il modificatore '{0}' non può essere incluso in una firma dell'indice.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Il modificatore '{0}' non può essere incluso in elementi di classe di questo tipo.", - "_0_modifier_cannot_be_used_here_1042": "Non è possibile usare il modificatore '{0}' in questo punto.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "Non è possibile usare il modificatore '{0}' in un contesto di ambiente.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "Non è possibile usare il modificatore '{0}' con il modificatore '{1}'.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Non è possibile usare il modificatore '{0}' con un identificatore privato.", - "_0_modifier_must_precede_1_modifier_1029": "Il modificatore '{0}' deve precedere il modificatore '{1}'.", - "_0_needs_an_explicit_type_annotation_2782": "'{0}' richiede un'annotazione di tipo esplicita.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' fa riferimento solo a un tipo, ma qui viene usato come spazio dei nomi.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' fa riferimento solo a un tipo, ma qui viene usato come valore.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "'{0}' fa riferimento solo a un tipo, ma qui viene usato come valore. Si intendeva usare '{1} in {0}'?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' si riferisce solo a un tipo, ma in questo punto viene usato come valore. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su es2015 o versioni successive.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fa riferimento a un istruzione globale UMD, ma il file corrente è un modulo. Provare ad aggiungere un'importazione.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fa riferimento a un valore, ma qui viene usato come tipo. Si intendeva 'typeof {0}'?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere riesportato usando una riesportazione solo di tipi quando 'isolatedModules' è abilitato.", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "' {0}' deve essere impostato all'interno dell'oggetto 'compilerOptions' del file JSON di configurazione", - "_0_tag_already_specified_1223": "Il tag '{0}' è già specificato.", - "_0_was_also_declared_here_6203": "In questo punto viene dichiarato anche '{0}'.", - "_0_was_exported_here_1377": "In questo punto è stato esportato '{0}'.", - "_0_was_imported_here_1376": "In questo punto è stato importato '{0}'.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}', in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito '{1}'.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}', in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo yield '{1}'.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Il modificatore 'abstract' può essere incluso solo in una dichiarazione di classe, metodo o proprietà.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Il modificatore 'accessor' può essere visualizzato solo in una dichiarazione di proprietà.", - "and_here_6204": "e in questo punto.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "impossibile fare riferimento agli 'argomenti' negli inizializzatori di proprietà.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": considera i file con importazioni, esportazioni, import.meta, jsx (con jsx: react-jsx) o il formato esm (con modulo: node16+) come moduli.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Le espressioni 'await' sono consentite solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Le espressioni 'await' sono consentite solo all'interno di funzioni asincrone e al primo livello di moduli.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Non è possibile usare le espressioni 'await' in un inizializzatore di parametri.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' non ha alcun effetto sul tipo di questa espressione.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "L'opzione 'baseUrl' è impostata su '{0}'. Verrà usato questo valore per risolvere il nome del modulo non relativo '{1}'.", - "can_only_be_used_at_the_start_of_a_file_18026": "'#!' può essere usato solo all'inizio di un file.", - "case_or_default_expected_1130": "È previsto 'case' o 'default'.", - "catch_or_finally_expected_1472": "È previsto 'catch' o 'finally'.", - "const_declarations_can_only_be_declared_inside_a_block_1156": "Le dichiarazioni 'const' possono essere dichiarate solo all'interno di un blocco.", - "const_declarations_must_be_initialized_1155": "Le dichiarazioni 'const' devono essere inizializzate.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "L'inizializzatore del membro di enumerazione 'const' è stato valutato come valore non finito.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "L'inizializzatore del membro di enumerazione 'const' è stato valutato come valore non consentito 'NaN'.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "gli inizializzatori di membri di enumerazione const possono contenere solo valori letterali e altri valori di enumerazione calcolati.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Le enumerazioni 'const' possono essere usate solo in espressioni di accesso a proprietà o indice oppure nella parte destra di un'assegnazione di esportazione, di una dichiarazione di importazione o di una query su tipo.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "Non è possibile usare 'constructor' come nome di proprietà di un parametro.", - "constructor_is_a_reserved_word_18012": "'#constructor' è una parola riservata.", - "default_Colon_6903": "impostazione predefinita:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "Non è possibile chiamare 'delete' su un identificatore in modalità strict.", - "export_Asterisk_does_not_re_export_a_default_1195": "'export *' non consente di riesportare esportazioni predefinite.", - "export_can_only_be_used_in_TypeScript_files_8003": "'export =' può essere usato solo in file TypeScript.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Non è possibile applicare il modificatore 'export' a moduli di ambiente e aumenti di modulo perché sono sempre visibili.", - "extends_clause_already_seen_1172": "La clausola 'extends' è già presente.", - "extends_clause_must_precede_implements_clause_1173": "La clausola 'extends' deve precedere la clausola 'implements'.", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "La clausola 'extends' della classe esportata '{0}' contiene o usa il nome privato '{1}'.", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "La clausola 'extends' della classe esportata contiene o usa il nome privato '{0}'.", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "La clausola 'extends' dell'interfaccia esportata '{0}' contiene o usa il nome privato '{1}'.", - "false_unless_composite_is_set_6906": "`false`, a meno che non sia impostato `composite`", - "false_unless_strict_is_set_6905": "`false`, a meno che non sia impostato `strict`", - "file_6025": "file", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "I cicli 'for await' sono consentiti solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "I cicli 'for await' sono consentiti solo all'interno di funzioni asincrone e al primo livello di moduli.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "Le funzioni di accesso 'get' e 'set' non possono dichiarare parametri 'this'.", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "`[]` se è specificato `files`; in caso contrario, `[\"**/*\"]5D;`", - "implements_clause_already_seen_1175": "La clausola 'implements' è già presente.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Le clausole 'implements' possono essere usate solo in file TypeScript.", - "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' può essere usato solo in file TypeScript.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Le dichiarazioni 'infer' sono consentite solo nella clausola 'extends' di un tipo condizionale.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "Le dichiarazioni 'let' possono essere dichiarate solo all'interno di un blocco.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Non è consentito usare 'let' come nome in dichiarazioni 'let' o 'const'.", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === `AMD` o `UMD` o `System` o `ES6`, quindi `Classic`; in caso contrario `Node`", - "module_system_or_esModuleInterop_6904": "module === \"system\" o esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "L'espressione 'new', nella cui destinazione manca una firma del costrutto, contiene implicitamente un tipo 'any'.", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "`[\"node_modules\", \"bower_components\", \"jspm_packages\"]`, nonché il valore di `outDir` se ne è specificato uno.", - "one_of_Colon_6900": "uno di:", - "one_or_more_Colon_6901": "uno o più:", - "options_6024": "opzioni", - "or_JSX_element_expected_1145": "Previsto elemento '{' o JSX.", - "or_expected_1144": "È previsto '{' o ';'.", - "package_json_does_not_have_a_0_field_6100": "Il file 'package.json' non contiene un campo '{0}'.", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' non contiene alcuna voce di 'typesVersions' corrispondente alla versione '{0}'.", - "package_json_had_a_falsy_0_field_6220": "'package.json' contiene un campo '{0}' falso.", - "package_json_has_0_field_1_that_references_2_6101": "Il file 'package.json' contiene il campo '{1}' di '{0}' che fa riferimento a '{2}'.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' contiene una voce '{0}' di 'typesVersions' che non corrisponde a un intervallo semver valido.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' contiene una voce '{0}' di 'typesVersions' che corrisponde alla versione '{1}' del compilatore. Verrà cercato un criterio per la corrispondenza con il nome di modulo '{2}'.", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' contiene un campo 'typesVersions' con mapping tra percorsi specifici della versione.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "L’ambito package.json '{0}' esegue esplicitamente il mapping dell'identificatore ' {1}' su null.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "L'ambito package.json '{0}' contiene un tipo non valido per la destinazione dell'identificatore '{1}'", - "package_json_scope_0_has_no_imports_defined_6273": "L'ambito package.json '{0}' non ha importazioni definite.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "È specificata l'opzione 'paths'. Verrà cercato un criterio per la corrispondenza con il nome del modulo '{0}'.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Il modificatore 'readonly' può essere incluso solo in una dichiarazione di proprietà o una firma dell'indice.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Il modificatore di tipo 'readonly' è consentito solo in tipi di valore letterale matrice e tupla.", - "require_call_may_be_converted_to_an_import_80005": "La chiamata a 'require' può essere convertita in un'importazione.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Le asserzioni 'resolution-mode' sono supportate solo quando 'moduleResolution' è 'node16' o 'nodenext'.", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Le asserzioni 'resolution-mode' sono instabili. Usare TypeScript notturno per disattivare questo errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode' può essere impostata solo per le importazioni di tipo.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode' è l'unica chiave valida per l’importazione dei tipi di asserzioni.", - "resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' deve essere 'require' o 'import'.", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'opzione 'rootDirs' è impostata e verrà usata per risolvere il nome del modulo relativo '{0}'.", - "super_can_only_be_referenced_in_a_derived_class_2335": "È possibile fare riferimento a 'super' solo in una classe derivata.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "È possibile fare riferimento a 'super' solo in membri di classi derivate o espressioni letterali di oggetto.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "Non è possibile fare riferimento a 'super' in un nome di proprietà calcolato.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "Non è possibile fare riferimento a 'super' in argomenti del costruttore.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "'super' è consentito solo in membri di espressioni letterali di oggetto quando il valore dell'opzione 'target' è 'ES2015' o superiore.", - "super_may_not_use_type_arguments_2754": "'super' non può usare argomenti di tipo.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "È necessario chiamare 'super' prima di accedere a una proprietà di 'super' nel costruttore di una classe derivata.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "È necessario chiamare 'super' prima di accedere a 'this' nel costruttore di una classe derivata.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "'super' deve essere seguito da un elenco di argomento o da un accesso membro.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "L'accesso alla proprietà 'super' è consentito solo in un costruttore, in una funzione membro o in una funzione di accesso di membro di una classe derivata.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "Non è possibile fare riferimento a 'this' in un nome di proprietà calcolato.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Non è possibile fare riferimento a 'this' nel corpo di un modulo o di uno spazio dei nomi.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Non è possibile fare riferimento a 'this' in un inizializzatore di proprietà statica.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "Non è possibile fare riferimento a 'this' in argomenti del costruttore.", - "this_cannot_be_referenced_in_current_location_2332": "Non è possibile fare riferimento a 'this' nella posizione corrente.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' contiene implicitamente il tipo 'any' perché non include un'annotazione di tipo.", - "true_for_ES2022_and_above_including_ESNext_6930": "'true' per ES2022 e versioni successive, incluso ESNext.", - "true_if_composite_false_otherwise_6909": "`true` se è `composite`; in caso contrario, `false`", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: il compilatore TypeScript", - "type_Colon_6902": "tipo:", - "unique_symbol_types_are_not_allowed_here_1335": "I tipi 'unique symbol' non sono consentiti in questo punto.", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "I tipi 'unique symbol' sono consentiti solo nelle variabili in un'istruzione di variabile.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "Non è possibile usare i tipi 'unique symbol' in una dichiarazione di variabile con nome di binding.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "Non è possibile usare la direttiva 'use strict' con un elenco di parametri non semplice.", - "use_strict_directive_used_here_1349": "In questo punto è stata usata la direttiva 'use strict'.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "Le istruzioni 'with' non sono consentite in un blocco di funzione asincrona.", - "with_statements_are_not_allowed_in_strict_mode_1101": "Le istruzioni 'with' non sono consentite in modalità strict.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "Con l'espressione 'yield' viene restituito implicitamente un tipo 'any' perché per il generatore che lo contiene non è presente un'annotazione di tipo restituito.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "Non è possibile usare le espressioni 'yield' in un inizializzatore di parametri." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/ja/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/ja/diagnosticMessages.generated.json deleted file mode 100644 index 5bc780d7..00000000 --- a/graphql/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "すべてのコンパイラ オプション", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 修飾子とインポート宣言は同時に使用できません。", - "A_0_parameter_must_be_the_first_parameter_2680": "'{0}' パラメーターは最初のパラメーターである必要があります。", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' コメントに複数の '@type' タグを含めることはできません。", - "A_bigint_literal_cannot_use_exponential_notation_1352": "bigint リテラルでは指数表記を使用できません。", - "A_bigint_literal_must_be_an_integer_1353": "bigint リテラルは整数である必要があります。", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "実装シグネチャでバインド パターン パラメーターを省略可能にすることはできません。", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' ステートメントは外側のイテレーションまたは switch ステートメント内でのみ使用できます。", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' ステートメントは、外側のステートメントのラベルにのみ移動できます。", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "クラスで実装できるのは、オプションの型引数を指定した識別子/完全修飾名のみです。", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "クラスで実装できるのは、オブジェクト型または静的な既知のメンバーを持つオブジェクト型の積集合のみです。", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' の修飾子がないクラス宣言には名前が必要です。", - "A_class_member_cannot_have_the_0_keyword_1248": "クラス メンバーに '{0}' キーワードを指定することはできません。", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "コンマ式は計算されたプロパティ名では使用できません。", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "計算されたプロパティ名は、型パラメーターをそれを含む型から参照することはできません。", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "クラス プロパティ宣言内の計算されたプロパティ名には、単純なリテラル型または 'unique symbol' 型が必要です。", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "メソッド オーバーロード内の計算されたプロパティ名は、型がリテラル型または 'unique symbol' 型の式を参照する必要があります。", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "型リテラル内の計算されたプロパティ名は、型がリテラル型または 'unique symbol' 型の式を参照する必要があります。", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "環境コンテキスト内の計算されたプロパティ名は、型がリテラル型または 'unique symbol' 型の式を参照する必要があります。", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "インターフェイス内の計算されたプロパティ名は、型がリテラル型または 'unique symbol' 型の式を参照する必要があります。", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "計算されたプロパティ名は 'string' 型、'number' 型、'symbol' 型、または 'any' 型のいずれかでなければなりません。", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "'const' アサーションは、列挙型メンバーへの参照、文字列、数値、ブール値、配列、オブジェクト リテラルにのみ適用できます。", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "const 列挙型メンバーは、文字列リテラルを使用してのみアクセスできます。", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "環境コンテキストの 'const' 初期化子は、文字列または数値リテラル、もしくはリテラル列挙型の参照である必要があります。", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "コンストラクターのクラスが 'null' を拡張する場合、そのコンストラクターに 'super' の呼び出しを含めることはできません。", - "A_constructor_cannot_have_a_this_parameter_2681": "コンストラクターに 'this' パラメーターを指定することはできません。", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' ステートメントは外側のイテレーション内でのみ使用できます。", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' ステートメントは、外側のイテレーション ステートメントのラベルにのみ移動できます。", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "'declare' 修飾子は、環境コンテキストでは使用できません。", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "デコレーターが装飾できるのは、オーバーロードではなく、メソッドの実装のみです。", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' 句を 'switch' ステートメントで複数回使用することはできません。", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "既定のエクスポートは、ECMAScript スタイルのモジュールでのみ使用できます。", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "既定のエクスポートは、ファイルまたはモジュールの宣言のトップレベルにある必要があります。", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "限定代入アサーション '!' は、このコンテキストで許可されていません。", - "A_destructuring_declaration_must_have_an_initializer_1182": "非構造化宣言には初期化子が必要です。", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3 の動的インポート呼び出しには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "動的インポート呼び出しは 'Promise' を返します。'Promise' の宣言があること、または '--lib' オプションに 'ES2015' を含めていることをご確認ください。", - "A_file_cannot_have_a_reference_to_itself_1006": "ファイルにそれ自体への参照を含めることはできません。", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "'never' を返す関数には、到達可能なエンド ポイントがありません。", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "'new' キーワードで呼び出される関数に、'void' である 'this' 型を使用することはできません。", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "宣言された型が 'void' でも 'any' でもない関数は値を返す必要があります。", - "A_generator_cannot_have_a_void_type_annotation_2505": "ジェネレーターに 'void' 型の注釈を指定することはできません。", - "A_get_accessor_cannot_have_parameters_1054": "'get' アクセサーにパラメーターを指定することはできません。", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "get アクセサーは、少なくともセッターと同程度にアクセス可能である必要があります", - "A_get_accessor_must_return_a_value_2378": "'get' アクセサーは値を返す必要があります。", - "A_label_is_not_allowed_here_1344": "A ラベルはここでは使用できません。", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "ラベル付きのタプル要素を optional として宣言するには、型の後ではなく名前の後とコロンの前に疑問符を付けます。", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "ラベル付きのタプル要素を rest として宣言するには、型の前ではなく名前の前に '...' を付けます。", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "マップされた型では、プロパティまたはメソッドを宣言しない場合があります。", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "列挙型宣言のメンバー初期化子は、他の列挙型で定義されたメンバーを含め、その後で宣言されたメンバーを参照できません。", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "mixin クラスには、型 'any[]' の単一の rest パラメーターを持つコンストラクターが必要です。", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "抽象コンストラクト シグネチャを含む型変数から拡張される mixin クラスも、'abstract' として宣言する必要があります。", - "A_module_cannot_have_multiple_default_exports_2528": "モジュールに複数の既定のエクスポートを含めることはできません。", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "名前空間宣言は、それとマージするクラスや関数と異なるファイルに配置できません。", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "名前空間宣言は、それとマージするクラスや関数より前に配置できません。", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "名前空間宣言は、名前空間またはモジュールの最上位レベルでのみ許可されます。", - "A_non_dry_build_would_build_project_0_6357": "非 -dry ビルドを実行した場合、プロジェクト '{0}' がビルドされます", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry ビルドを実行した場合、次のファイルが削除されます: {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "non-dry build では、プロジェクト '{0}' の出力が更新されます", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "non-dry build では、プロジェクト '{0}' の出力のタイムスタンプが更新されます", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "パラメーター初期化子は、関数またはコンストラクターの実装でのみ指定できます。", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "パラメーター プロパティは、rest パラメーターを使用して宣言することはできません。", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "パラメーター プロパティは、コンストラクターの実装でのみ指定できます。", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "パラメーター プロパティは、バインド パターンを使用して宣言することはできません。", - "A_promise_must_have_a_then_method_1059": "Promise には 'then' メソッドが必要です。", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "型が 'unique symbol' 型のクラスのプロパティは、'static' と 'readonly' の両方である必要があります。", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "型が 'unique symbol' 型のインターフェイスまたは型リテラルのプロパティは、'readonly' である必要があります。", - "A_required_element_cannot_follow_an_optional_element_1257": "必須要素を省略可能な要素の後に指定することはできません。", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "必須パラメーターを省略可能なパラメーターの後に指定することはできません。", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "rest 要素にバインド パターンを含めることはできません。", - "A_rest_element_cannot_follow_another_rest_element_1265": "rest 要素を別の rest 要素の後に指定することはできません。", - "A_rest_element_cannot_have_a_property_name_2566": "rest 要素にプロパティ名を指定することはできません。", - "A_rest_element_cannot_have_an_initializer_1186": "rest 要素に初期化子を指定することはできません。", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "rest 要素は非構造化パターンの最後に指定する必要があります。", - "A_rest_element_type_must_be_an_array_type_2574": "rest 要素型は配列型である必要があります。", - "A_rest_parameter_cannot_be_optional_1047": "rest パラメーターを省略可能にすることはできません。", - "A_rest_parameter_cannot_have_an_initializer_1048": "rest パラメーターに初期化子を指定することはできません。", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "rest パラメーターはパラメーター リストの最後に指定する必要があります。", - "A_rest_parameter_must_be_of_an_array_type_2370": "rest パラメーターは配列型でなければなりません。", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "rest パラメーターまたはバインド パターンに末尾のコンマがない可能性があります。", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "'return' ステートメントは、関数本体でのみ使用できます。", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "'return' ステートメントの使用が無効です。クラスの静的ブロック内では使用できません。", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "'baseUrl' の相対的な場所を検索するためにインポートを再マップする一連のエントリ。", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "'set' アクセサーに、戻り値の型の注釈を指定することはできません。", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "'set' アクセサーに、省略可能パラメーターを指定することはできません。", - "A_set_accessor_cannot_have_rest_parameter_1053": "'set' アクセサーに rest パラメーターを指定することはできません。", - "A_set_accessor_must_have_exactly_one_parameter_1049": "'set' アクセサーにはパラメーターを 1 つだけ指定しなければなりません。", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "'set' アクセサーのパラメーターに初期化子を含めることはできません。", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "spread 引数には、組の種類を指定するか、rest パラメーターに渡す必要があります。", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "'super' の呼び出しは、初期化されたプロパティ、パラメーターのプロパティ、private 識別子が派生クラスに含まれている場合は、コンストラクターのルートレベルのステートメントである必要があります。", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "'super' の呼び出しは、初期化されたプロパティ、パラメーターのプロパティ、private 識別子が派生クラスに含まれている場合は、'super' や 'this' を参照するコンストラクターの最初のステートメントである必要があります。", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "'this' ベース型のガードはパラメーター ベース型のガードとは互換性がありません。", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 型はクラスまたはインターフェイスの静的でないメンバーでのみ使用できます。", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' ファイルは既に '{0}' で定義されています。", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "タプル メンバーを optional と rest の両方に指定することはできません。", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "タプル型に負の値のインデックスを指定することはできません。", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "累乗式の左辺で型アサーション式を使用することはできません。式を括弧で囲むことを検討してください。", - "A_type_literal_property_cannot_have_an_initializer_1247": "型リテラル プロパティに初期化子を使用することはできません。", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "型のみのインポートでは既定のインポートまたは名前付きバインドを指定できますが、両方を指定することはできません。", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "型の述語は rest パラメーターを参照できません。", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "型の述語は、バインド パターン内の要素 '{0}' を参照できません。", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "型の述語は、関数およびメソッドの戻り値の型の位置でのみ使用できます。", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "type 述語の型はそのパラメーターの型に割り当て可能である必要があります。", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "'isolatedModules' と 'emitDecoratorMetadata' が有効になっている場合は、装飾された署名で参照される型を 'import type' または名前空間インポートでインポートする必要があります。", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "型が 'unique symbol' 型の変数は、'const' である必要があります。", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "'yield' 式は、ジェネレーター本文でのみ使用できます。", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "クラス '{1}' の抽象メソッド '{0}' には super 式を介してアクセスできません。", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "抽象メソッドは抽象クラス内でのみ使用できます。", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "コンストラクター内でクラス '{1}' の抽象プロパティ '{0}' にアクセスできません。", - "Accessibility_modifier_already_seen_1028": "アクセシビリティ修飾子は既に存在します。", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "アクセサーは ECMAScript 5 以上をターゲットにする場合にのみ使用できます。", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "アクセサーはどちらも抽象または非抽象である必要があります。", - "Add_0_to_unresolved_variable_90008": "'{0}' を未解決の変数に追加します", - "Add_a_return_statement_95111": "return ステートメントを追加する", - "Add_all_missing_async_modifiers_95041": "不足しているすべての 'async' 修飾子を追加します", - "Add_all_missing_attributes_95168": "不足しているすべての属性を追加する", - "Add_all_missing_call_parentheses_95068": "見つからない呼び出しのかっこをすべて追加します", - "Add_all_missing_function_declarations_95157": "不足しているすべての関数宣言を追加します", - "Add_all_missing_imports_95064": "不足しているすべてのインポートを追加する", - "Add_all_missing_members_95022": "不足しているすべてのメンバーを追加します", - "Add_all_missing_override_modifiers_95162": "不足しているすべての 'override' 修飾子を追加する", - "Add_all_missing_properties_95166": "不足しているすべてのプロパティを追加する", - "Add_all_missing_return_statement_95114": "不足しているすべての return ステートメントを追加する", - "Add_all_missing_super_calls_95039": "不足しているすべての super の呼び出しを追加します", - "Add_async_modifier_to_containing_function_90029": "含まれている関数に async 修飾子を追加します", - "Add_await_95083": "'await' を追加する", - "Add_await_to_initializer_for_0_95084": "'{0}' の初期化子に 'await' を追加する", - "Add_await_to_initializers_95089": "初期化子に 'await' を追加する", - "Add_braces_to_arrow_function_95059": "アロー関数に中かっこを追加します", - "Add_const_to_all_unresolved_variables_95082": "すべての未解決の変数に 'const' を追加する", - "Add_const_to_unresolved_variable_95081": "未解決の変数に 'const' を追加する", - "Add_definite_assignment_assertion_to_property_0_95020": "プロパティ '{0}' に限定代入アサーションを追加します", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "初期化されていないすべてのプロパティに限定代入アサーションを追加します", - "Add_export_to_make_this_file_into_a_module_95097": "'export {}' を追加して、このファイルをモジュールにする", - "Add_extends_constraint_2211": "'extends' 制約を追加します。", - "Add_extends_constraint_to_all_type_parameters_2212": "すべての型パラメーターに 'extends' 制約を追加する", - "Add_import_from_0_90057": "\"{0}\" からのインポートの追加", - "Add_index_signature_for_property_0_90017": "プロパティ '{0}' のインデックス シグネチャを追加する", - "Add_initializer_to_property_0_95019": "プロパティ '{0}' に初期化子を追加します", - "Add_initializers_to_all_uninitialized_properties_95027": "初期化されていないすべてのプロパティに初期化子を追加します", - "Add_missing_attributes_95167": "不足している属性の追加", - "Add_missing_call_parentheses_95067": "見つからない呼び出しのかっこを追加します", - "Add_missing_enum_member_0_95063": "不足している列挙型メンバー '{0}' を追加する", - "Add_missing_function_declaration_0_95156": "不足している関数宣言 '{0}' を追加します", - "Add_missing_new_operator_to_all_calls_95072": "不足している 'new' 演算子をすべての呼び出しに追加する", - "Add_missing_new_operator_to_call_95071": "不足している 'new' 演算子を呼び出しに追加する", - "Add_missing_properties_95165": "不足しているすべてのプロパティの追加", - "Add_missing_super_call_90001": "欠落している 'super()' 呼び出しを追加する", - "Add_missing_typeof_95052": "不足している 'typeof' を追加します", - "Add_names_to_all_parameters_without_names_95073": "名前のないすべてのパラメーターに名前を追加する", - "Add_or_remove_braces_in_an_arrow_function_95058": "アロー関数内の中かっこを追加または削除します", - "Add_override_modifier_95160": "'override' 修飾子を追加する", - "Add_parameter_name_90034": "パラメーター名を追加する", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "メンバー名と一致するすべての未解決の変数に修飾子を追加します", - "Add_to_all_uncalled_decorators_95044": "呼び出されていないすべてのデコレーターに '()' を追加します", - "Add_ts_ignore_to_all_error_messages_95042": "すべてのエラー メッセージに '@ts-ignore' を追加します", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "インデックスを使用してアクセスした場合は、'undefined' を型に追加します。", - "Add_undefined_to_optional_property_type_95169": "省略可能なプロパティ型に 'undefined' を追加します", - "Add_undefined_type_to_all_uninitialized_properties_95029": "初期化されていないすべてのプロパティに未定義の型を追加します", - "Add_undefined_type_to_property_0_95018": "プロパティ '{0}' に '未定義' の型を追加します", - "Add_unknown_conversion_for_non_overlapping_types_95069": "重複していない型に対して 'unknown' 変換を追加する", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "重複していない型のすべての変換に 'unknown' を追加する", - "Add_void_to_Promise_resolved_without_a_value_95143": "値なしで解決された Promise に 'void' を追加します", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "値なしで解決されたすべての Promise に 'void' を追加します", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "tsconfig.json ファイルを追加すると、TypeScript ファイルと JavaScript ファイルの両方を含むプロジェクトを整理できます。詳細については、https://aka.ms/tsconfig をご覧ください。", - "All_declarations_of_0_must_have_identical_constraints_2838": "'{0}' のすべての宣言には、同一の制約が必要です。", - "All_declarations_of_0_must_have_identical_modifiers_2687": "'{0}' のすべての宣言には、同一の修飾子が必要です。", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "'{0}' のすべての宣言には、同一の型パラメーターがある必要があります。", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "抽象メソッドの宣言はすべて連続している必要があります。", - "All_destructured_elements_are_unused_6198": "非構造化要素はいずれも使用されていません。", - "All_imports_in_import_declaration_are_unused_6192": "インポート宣言内のインポートはすべて未使用です。", - "All_type_parameters_are_unused_6205": "すべての型パラメーターが使用されていません。", - "All_variables_are_unused_6199": "すべての変数は未使用です。", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "JavaScript ファイルをプログラムの一部として使用することを許可します。'checkJS' オプションを使用して、これらのファイルからエラーを取得してください。", - "Allow_accessing_UMD_globals_from_modules_6602": "モジュールから UMD グローバルへのアクセスを許可します。", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "既定のエクスポートがないモジュールからの既定のインポートを許可します。これは、型チェックのみのため、コード生成には影響を与えません。", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "モジュールに既定のエクスポートがない場合は、'import x from y' を許可します。", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "tslib からヘルパー関数をファイルごとに含めるのではなく、プロジェクトごとに 1 回インポートすることを許可します。", - "Allow_javascript_files_to_be_compiled_6102": "javascript ファイルのコンパイルを許可します。", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "モジュールを解決するときに複数のフォルダーを 1 つのフォルダーとして処理することを許可します。", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "既に含まれているファイル名 '{0}' は、ファイル名 '{1}' と大文字と小文字の指定だけが異なります。", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "アンビエント モジュール宣言では、相対モジュール名を指定できません。", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "アンビエント モジュールを、他のモジュールまたは名前空間内の入れ子にすることはできません。", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "AMD モジュールに複数の名前を代入することはできません。", - "An_abstract_accessor_cannot_have_an_implementation_1318": "抽象アクセサーに実装を含めることはできません。", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "アクセシビリティ修飾子を private 識別子と共に使用することはできません。", - "An_accessor_cannot_have_type_parameters_1094": "アクセサーに型パラメーターを指定することはできません。", - "An_accessor_property_cannot_be_declared_optional_1276": "'accessor' プロパティはオプションとして宣言できません。", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "アンビエント モジュール宣言は、ファイルの最上位にのみ使用できます。", - "An_argument_for_0_was_not_provided_6210": "'{0}' の引数が指定されていません。", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "このバインド パターンに一致する引数が指定されていません。", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "算術オペランドは 'any' 型、'number' 型、’bigint' 型、列挙型のいずれかである必要があります。", - "An_arrow_function_cannot_have_a_this_parameter_2730": "アロー関数に 'this' パラメーターを指定することはできません。", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 の非同期の関数またはメソッドには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "非同期関数またはメソッドは 'Promise' を返す必要があります。'Promise' の宣言があること、または '--lib' オプションに 'ES2015' を含めていることを確認してください。", - "An_async_iterator_must_have_a_next_method_2519": "非同期反復子には 'next()' メソッドが必要です。", - "An_element_access_expression_should_take_an_argument_1011": "要素アクセス式では、引数を取る必要があります。", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "private 識別子を使用して列挙型メンバーに名前を付けることはできません。", - "An_enum_member_cannot_have_a_numeric_name_2452": "列挙型メンバーに数値名を含めることはできません。", - "An_enum_member_name_must_be_followed_by_a_or_1357": "列挙型メンバー名の後には、','、'='、'}' のいずれかを指定する必要があります。", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "使用可能なすべてのコンパイラ オプションを示す、この情報の拡張バージョン", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "エクスポートの代入は、エクスポートされた他の要素を含むモジュールでは使用できません。", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "エクスポートの代入は、名前空間では使用できません。", - "An_export_assignment_cannot_have_modifiers_1120": "エクスポートの代入に修飾子を指定することはできません。", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "エクスポートの割り当ては、ファイルまたはモジュールの宣言のトップレベルにある必要があります。", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "エクスポート宣言は、モジュールの最上位レベルでのみ使用できます。", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "エクスポート宣言は、名前空間またはモジュールの最上位レベルでのみ使用できます。", - "An_export_declaration_cannot_have_modifiers_1193": "エクスポート宣言に修飾子を指定することはできません。", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "'void' 型の式は、真実性をテストできません。", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "拡張された Unicode エスケープ値は 0x0 と 0x10FFFF の間 (両端を含む) でなければなりません。", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "識別子またはキーワードを数値リテラルのすぐ後に指定することはできません。", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "実装は環境コンテキストでは宣言できません。", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "インポート エイリアスは、'export type' を使用してエクスポートされた宣言を参照できません。", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "インポート エイリアスは、'import type' を使用してインポートされた宣言を参照できません。", - "An_import_alias_cannot_use_import_type_1392": "インポート エイリアスで 'import type' を使用することはできません", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "インポート宣言は、モジュールの最上位レベルでのみ使用できます。", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "インポート宣言は、名前空間またはモジュールの最上位レベルでのみ使用できます。", - "An_import_declaration_cannot_have_modifiers_1191": "インポート宣言に修飾子を指定することはできません。", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "インポート パスの末尾を拡張子 '{0}' にすることはできません。代わりに '{1}' のインポートをご検討ください。", - "An_index_signature_cannot_have_a_rest_parameter_1017": "インデックス シグネチャに rest パラメーターを指定することはできません。", - "An_index_signature_cannot_have_a_trailing_comma_1025": "インデックス シグネチャの末尾にコンマを指定することはできません。", - "An_index_signature_must_have_a_type_annotation_1021": "インデックス シグネチャには型の注釈が必要です。", - "An_index_signature_must_have_exactly_one_parameter_1096": "インデックス シグネチャには、パラメーターを 1 つだけ指定しなければなりません。", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "インデックス シグネチャのパラメーターに疑問符を指定することはできません。", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "インデックス シグネチャのパラメーターにアクセシビリティ修飾子を指定することはできません。", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "インデックス シグネチャのパラメーターに初期化子を指定することはできません。", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "インデックス シグネチャのパラメーターには型の注釈が必要です。", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "インデックス シグネチャ パラメーターの型をリテラル型またはジェネリック型にすることはできません。代わりに、マップされたオブジェクト型の使用を検討してください。", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "インデックス シグネチャ パラメーター型は、'string'、'number'、'symbol'、またはテンプレート リテラルの型である必要があります。", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "インスタンス化式の後にプロパティ アクセスを続けることはできません。", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "インターフェイスが拡張するのは、オプションの型引数が指定された識別子/完全修飾名のみです。", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "インターフェイスが拡張できるのは、オブジェクト型または静的な既知のメンバーを持つオブジェクト型の積集合のみです。", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "インターフェイスは、'{0}' のようなプリミティブ型を拡張できません。インターフェイスは名前付きの型とクラスのみを拡張できます", - "An_interface_property_cannot_have_an_initializer_1246": "インターフェイス プロパティに初期化子を使用することはできません。", - "An_iterator_must_have_a_next_method_2489": "反復子には 'next()' メソッドが必要です。", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "@jsx pragma を JSX フラグメントで使用する場合は、@jsxFrag pragma が必要です。", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "オブジェクト リテラルに同じ名前の複数の get/set アクセサーを指定することはできません。", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "オブジェクト リテラルに同じ名前の複数のプロパティを指定することはできません。", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "オブジェクト リテラルには、同じ名前のプロパティおよびアクセサーを指定することはできません。", - "An_object_member_cannot_be_declared_optional_1162": "オブジェクト メンバーを省略可能として宣言することはできません。", - "An_optional_chain_cannot_contain_private_identifiers_18030": "省略可能なチェーンには、pirvate 識別子を含めることはできません。", - "An_optional_element_cannot_follow_a_rest_element_1266": "省略可能な要素を rest 要素の後に指定することはできません。", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "'this' の外部値がこのコンテナーによってシャドウされています。", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "オーバーロード シグネチャをジェネレーターとして宣言することはできません。", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "累乗式の左辺で '{0}' 演算子を含む単項式を使用することはできません。式を括弧で囲むことを検討してください。", - "Annotate_everything_with_types_from_JSDoc_95043": "すべてに JSDoc の型で注釈を付けます", - "Annotate_with_type_from_JSDoc_95009": "JSDoc の型で注釈を付けます", - "Another_export_default_is_here_2753": "別のエクスポートの既定値がここにあります。", - "Are_you_missing_a_semicolon_2734": "セミコロンを忘れていませんか?", - "Argument_expression_expected_1135": "引数式が必要です。", - "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' オプションの引数は {1} である必要があります。", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "動的インポートの引数にスプレッド要素は指定できません。", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "型 '{0}' の引数を型 '{1}' のパラメーターに割り当てることはできません。", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "型 '{0}' の引数を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' のパラメーターに割り当てることはできません。ターゲットのプロパティの型に 'undefined' を追加することを検討してください。", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "rest パラメーター '{0}' の引数が指定されませんでした。", - "Array_element_destructuring_pattern_expected_1181": "配列要素の非構造化パターンが必要です。", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "アサーションでは、呼び出し先のすべての名前が明示的な型の注釈で宣言されている必要があります。", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "アサーションでは、呼び出し先が識別子または修飾名である必要があります。", - "Asterisk_Slash_expected_1010": "'*/' が必要です。", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "グローバル スコープの拡張を直接入れ子にできるのは、外部モジュールまたは環境モジュールの宣言内のみです。", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "グローバル スコープの拡張は、環境コンテキストに既にある場合を除いて、'declare' 修飾子を使用する必要があります。", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "プロジェクト '{0}' で型指定の自動検出が有効になっています。キャッシュの場所 '{2}' を使用して、モジュール '{1}' に対して追加の解決パスを実行しています。", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "await 式はクラスの静的ブロック内では使用できません。", - "BUILD_OPTIONS_6919": "ビルド オプション", - "Backwards_Compatibility_6253": "下位互換性", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "基底クラスの式ではクラスの型パラメーターを参照することはできません。", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "基底コンストラクターの戻り値の型 '{0}' が、オブジェクト型または静的な既知のメンバーを持つオブジェクト型の積集合ではありません。", - "Base_constructors_must_all_have_the_same_return_type_2510": "既定コンストラクターの戻り値の型は、すべて同じである必要があります。", - "Base_directory_to_resolve_non_absolute_module_names_6083": "相対モジュール名を解決するためのベース ディレクトリ。", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "ターゲットが ES2020 未満の場合、bigint リテラルは使用できません。", - "Binary_digit_expected_1177": "2 進の数字が必要です。", - "Binding_element_0_implicitly_has_an_1_type_7031": "バインド要素 '{0}' には暗黙的に '{1}' 型が含まれます。", - "Block_scoped_variable_0_used_before_its_declaration_2448": "ブロック スコープの変数 '{0}' が、宣言の前に使用されています。", - "Build_a_composite_project_in_the_working_directory_6925": "作業ディレクトリに複合プロジェクトを作成します。", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "最新の状態であると思われるものを含むすべてのプロジェクトをビルドします。", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "最新でない場合は、1 つ以上のプロジェクトとその依存関係をビルドします", - "Build_option_0_requires_a_value_of_type_1_5073": "ビルド オプション '{0}' には型 {1} の値が必要です。", - "Building_project_0_6358": "プロジェクト \"{0}\" をビルドしています...", - "COMMAND_LINE_FLAGS_6921": "コマンドライン フラグ", - "COMMON_COMMANDS_6916": "一般的なコマンド", - "COMMON_COMPILER_OPTIONS_6920": "一般的なコンパイラ オプション", - "Call_decorator_expression_90028": "デコレーター式を呼び出す", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "呼び出しシグネチャの戻り値の型 '{0}' と '{1}' には互換性がありません。", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "戻り値の型の注釈がない呼び出しシグネチャの戻り値の型は、暗黙的に 'any' になります。", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "引数なしの呼び出しシグネチャに、互換性のない戻り値の型 '{0}' と '{1}' が含まれています。", - "Call_target_does_not_contain_any_signatures_2346": "呼び出しターゲットにシグネチャが含まれていません。", - "Can_only_convert_logical_AND_access_chains_95142": "論理 AND のアクセス チェーンのみを変換できます", - "Can_only_convert_named_export_95164": "名前付きエクスポートのみを変換できます", - "Can_only_convert_property_with_modifier_95137": "修飾子を伴うプロパティの変換のみ可能です", - "Can_only_convert_string_concatenation_95154": "変換できるのは文字列の連結のみです", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "'{0}.{1}' にアクセスできません。'{0}' は型で、名前空間ではありません。'{0}[\"{1}\"]' で '{0}' のプロパティ '{1}' の型を取得するつもりでしたか?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "'--isolatedModules' フラグが指定されている場合、アンビエント const 列挙型にはアクセスできません。", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "'{0}' コンストラクター型を '{1}' コンストラクター型に割り当てることができません。", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "抽象コンストラクター型を非抽象コンストラクター型に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_a_class_2629": "クラスであるため、'{0}' に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "定数であるため、'{0}' に代入することはできません。", - "Cannot_assign_to_0_because_it_is_a_function_2630": "関数であるため、'{0}' に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "名前空間であるため、'{0}' に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "読み取り専用プロパティであるため、'{0}' に代入することはできません。", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "列挙型であるため、'{0}' に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_an_import_2632": "インポートであるため、'{0}' に割り当てることはできません。", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "変数ではないため、'{0}' に割り当てられません。", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "プライベート メソッド '{0}' に割り当てることはできません。プライベート メソッドは書き込み可能ではありません。", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "モジュール '{0}' は、モジュール以外のエンティティに解決するので拡張できません。", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "モジュール '{0}' は、モジュール以外のエンティティに解決するため、値のエクスポートで拡張できません。", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "'--module' フラグが 'amd' か 'system' でない限り、オプション '{0}' を使用してモジュールをコンパイルできません。", - "Cannot_create_an_instance_of_an_abstract_class_2511": "抽象クラスのインスタンスは作成できません。", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "反復子の 'next' メソッドには型 '{1}' が必要なため、値に反復をデリゲートすることはできませんが、含まれるジェネレーターは常に '{0}' を送信します。", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "'{0}' をエクスポートできません。モジュールからエクスポートできるのはローカル宣言のみです。", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "クラス '{0}' を拡張できません。Class コンストラクターがプライベートに設定されています。", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "インターフェイス '{0}' を拡張できません。'implements' ですか?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "現在のディレクトリに tsconfig.json ファイルが見つかりません: {0}。", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "指定されたディレクトリに tsconfig.json ファイルが見つかりません: '{0}'。", - "Cannot_find_global_type_0_2318": "グローバル型 '{0}' が見つかりません。", - "Cannot_find_global_value_0_2468": "グローバル値 '{0}' が見つかりません。", - "Cannot_find_lib_definition_for_0_2726": "'{0}' のライブラリ定義が見つかりません。", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}' のライブラリ定義が見つかりません。'{1}' ですか?", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "モジュール '{0}' が見つかりません。'--resolveJsonModule' を使用して '.json' 拡張子を持つモジュールをインポートすることをご検討ください。", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "モジュール '{0}' が見つかりません。'moduleResolution' オプションを 'node' に設定することか、'paths' オプションにエイリアスを追加することを意図していましたか?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "モジュール '{0}' またはそれに対応する型宣言が見つかりません。", - "Cannot_find_name_0_2304": "名前 '{0}' が見つかりません。", - "Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' という名前は見つかりません。'{1}' ですか?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "名前 '{0}' が見つかりません。インスタンス メンバー 'this.{0}' ですか?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "名前 '{0}' が見つかりません。静的メンバー '{1}.{0}' ですか?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "名前 '{0}' が見つかりません。これを非同期関数に書き込むということですか?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "名前 '{0}' が見つかりません。ターゲット ライブラリを変更する必要がありますか? 'lib' コンパイラ オプションを '{1}' 以降に変更してみてください。", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "名前 '{0}' が見つかりません。ターゲット ライブラリを変更しますか? 'lib' コンパイラ オプションが 'dom' を含むように変更してみてください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "名前 '{0}' が見つかりません。テスト ランナーの型定義をインストールする必要がありますか? `npm i --save-dev @types/jest` または `npm i --save-dev @types/mocha` をお試しください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "名前 '{0}' が見つかりません。テスト ランナーの型定義をインストールする必要がありますか? `npm i --save-dev @types/jest` または `npm i --save-dev @types/mocha` を試してから、tsconfig の型フィールドに 'jest' または 'mocha' を追加してください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "名前 '{0}' が見つかりません。jQuery の型定義をインストールする必要がありますか? `npm i --save-dev @types/jquery` をお試しください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "名前 '{0}' が見つかりません。jQuery の型定義をインストールする必要がありますか? `npm i --save-dev @types/jquery` を試してから、tsconfig の型フィールドに 'jquery' を追加してみてください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "名前 '{0}' が見つかりません。ノードの型定義をインストールする必要がありますか? `npm i --save-dev @types/node` をお試しください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "名前 '{0}' が見つかりません。ノードの型定義をインストールする必要がありますか? `npm i --save-dev @types/node` を試してから、tsconfig の型フィールドに 'node' を追加してみてください。", - "Cannot_find_namespace_0_2503": "名前空間 '{0}' が見つかりません。", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "'{0}' という名前空間は見つかりません。'{1}' ですか?", - "Cannot_find_parameter_0_1225": "パラメーター '{0}' が見つかりません。", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "入力ファイルの共通サブディレクトリ パスが見つかりません。", - "Cannot_find_type_definition_file_for_0_2688": "'{0}' の型定義ファイルが見つかりません。", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "型宣言ファイルをインポートできません。'{1}' の代わりに '{0}' をインポートすることを検討してください。", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "ブロック スコープ宣言 '{1}' と同じスコープ内の外部スコープ変数 '{0}' を初期化できません。", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "'null' の可能性があるオブジェクトを呼び出すことはできません。", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "'null' または 'undefined' の可能性があるオブジェクトを呼び出すことはできません。", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "'undefined' の可能性があるオブジェクトを呼び出すことはできません。", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、配列の非構造化は常に '{0}' を送信します。", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、配列展開は常に '{0}' を送信します。", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、for-of は常に '{0}' を送信します。", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'outFile' が設定されていないため、プロジェクト '{0}' を先頭に追加することはできません", - "Cannot_read_file_0_5083": "ファイル '{0}' を読み取れません。", - "Cannot_read_file_0_Colon_1_5012": "ファイル '{0}' を読み取れません: {1}。", - "Cannot_redeclare_block_scoped_variable_0_2451": "ブロック スコープの変数 '{0}' を再宣言することはできません。", - "Cannot_redeclare_exported_variable_0_2323": "エクスポートされた変数 '{0}' を再び宣言できません。", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "catch 句で識別子 '{0}' を再宣言することはできません。", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "型の注釈で関数呼び出しを開始することはできません。", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "ファイル '{1}' の読み取りでエラーが発生したため、プロジェクト '{0}' の出力を更新できません", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "'--jsx' フラグが指定されていないと、JSX を使用できません。", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "'--isolatedModules' フラグが指定されている場合、型または型専用の名前空間で 'export import' を使用することはできません。", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "'--module' が 'none' である場合、インポート、エクスポート、モジュール拡張は使用できません。", - "Cannot_use_namespace_0_as_a_type_2709": "名前空間 '{0}' を型として使用することはできません。", - "Cannot_use_namespace_0_as_a_value_2708": "名前空間 '{0}' を値として使用することはできません。", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "デコレートされたクラスの静的プロパティ初期化子で 'this' を使用できません。", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "ファイル '{0}' は、参照先のプロジェクト '{1}' によって生成された '.tsbuildinfo' ファイルを上書きするため、書き込めません", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "複数の入力ファイルで上書きされることになるため、ファイル '{0}' を書き込めません。", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "入力ファイルを上書きすることになるため、ファイル '{0}' を書き込めません。", - "Catch_clause_variable_cannot_have_an_initializer_1197": "catch 句の変数に初期化子を指定することはできません。", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "Catch 句の変数型の注釈を指定する場合は、'any' または 'unknown' にする必要があります。", - "Change_0_to_1_90014": "'{0}' を '{1}' に変更する", - "Change_all_extended_interfaces_to_implements_95038": "拡張されたすべてのインターフェイスを 'implements' に変更します", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "jsdoc スタイルのすべての型を TypeScript に変更します", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "jsdoc スタイルのすべての型を TypeScript に変更します (さらに、'| undefined' を null 許容型に追加します)", - "Change_extends_to_implements_90003": "'extends' を 'implements' に変更する", - "Change_spelling_to_0_90022": "スペルを '{0}' に変更する", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "宣言されているものの、コンストラクターで設定されていないクラス プロパティを確認します。", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "'bind'、'call'、'apply' のメソッドの引数が元の関数と一致することを確認します。", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "'{0}' が '{1}' - '{2}' の最長一致のプレフィックスであるかを確認しています。", - "Circular_definition_of_import_alias_0_2303": "インポート エイリアス '{0}' の循環定義です。", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "構成: {0} の解決中に循環が検出されました", - "Circularity_originates_in_type_at_this_location_2751": "この位置の型で循環が発生しています。", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "クラス '{0}' で定義されたインスタンス メンバー アクセサー '{1}' が、拡張されたクラス '{2}' ではインスタンス メンバー関数として定義されています。", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "クラス '{0}' で定義されたインスタンス メンバー関数 '{1}' が、拡張されたクラス '{2}' ではインスタンス メンバー アクセサーとして定義されています。", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "クラス '{0}' で定義されたインスタンス メンバー プロパティ '{1}' が、拡張されたクラス '{2}' ではインスタンス メンバー関数として定義されています。", - "Class_0_incorrectly_extends_base_class_1_2415": "クラス '{0}' は基底クラス '{1}' を正しく拡張していません。", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "クラス '{0}' はクラス '{1}' を正しく実装していません。'{1}' を拡張し、そのメンバーをサブクラスとして継承しますか?", - "Class_0_incorrectly_implements_interface_1_2420": "クラス '{0}' はインターフェイス '{1}' を正しく実装していません。", - "Class_0_used_before_its_declaration_2449": "クラス '{0}' は宣言の前に使用されました。", - "Class_constructor_may_not_be_a_generator_1368": "クラス コンストラクターをジェネレーターにすることはできません。", - "Class_constructor_may_not_be_an_accessor_1341": "クラス コンストラクターをアクセサーにすることはできません。", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "クラスの宣言では '{0}' のオーバーロード リストを実装できません。", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "クラスの宣言で複数の '@augments' または '@extends' タグを含めることはできません。", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "クラス デコレーターは、静的プライベート識別子と共に使用することはできません。試験段階のデコレーターを削除することをご検討ください。", - "Class_name_cannot_be_0_2414": "クラス名を '{0}' にすることはできません。", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "モジュール {0} を使用して ES5 をターゲットとするときに、クラス名を 'オブジェクト' にすることはできません。", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "クラス側の静的な '{0}' が基底クラス側の静的な '{1}' を正しく拡張していません。", - "Classes_can_only_extend_a_single_class_1174": "クラスで拡張できるクラスは 1 つのみです。", - "Classes_may_not_have_a_field_named_constructor_18006": "クラスに 'constructor' という名前のフィールドを含めることはできません。", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "クラスに含まれるコードは JavaScript の厳格モードで評価されます。このモードでは、'{0}' の使用は許可されません。詳細については、「https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode」を参照してください。", - "Command_line_Options_6171": "コマンド ライン オプション", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "構成ファイルか、'tsconfig.json' を含むフォルダーにパスが指定されたプロジェクトをコンパイルします。", - "Compiler_Diagnostics_6251": "コンパイラの診断", - "Compiler_option_0_expects_an_argument_6044": "コンパイラ オプション '{0}' には引数が必要です。", - "Compiler_option_0_may_not_be_used_with_build_5094": "コンパイラオプション '--{0} ' は '--build ' と共に使用できない場合があります。", - "Compiler_option_0_may_only_be_used_with_build_5093": "コンパイラ オプション '--{0} ' は '--build ' とのみ使用できる場合があります。", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "値 '{1}' のコンパイラ オプション '{0}' が不安定です。夜間 TypeScript を使用して、このエラーを無効にします。'npm install -D typescript@next' を使用して更新してみてください。", - "Compiler_option_0_requires_a_value_of_type_1_5024": "コンパイラ オプション '{0}' には {1} の型の値が必要です。", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "private 識別子を下位レベルに生成するときに、コンパイラは名前 '{0}' を予約します。", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "指定されたパスにある TypeScript プロジェクトをコンパイルします。", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "現在のプロジェクト (作業ディレクトリ内の tsconfig.json) のコンパイル", - "Compiles_the_current_project_with_additional_settings_6929": "追加の設定を使用して、現在のプロジェクトをコンパイルします。", - "Completeness_6257": "完全", - "Composite_projects_may_not_disable_declaration_emit_6304": "複合プロジェクトで宣言の生成を無効にすることはできません。", - "Composite_projects_may_not_disable_incremental_compilation_6379": "複合プロジェクトではインクリメンタル コンパイルを無効にできません。", - "Computed_from_the_list_of_input_files_6911": "入力ファイルのリストから計算されます。", - "Computed_property_names_are_not_allowed_in_enums_1164": "計算されたプロパティ名は列挙型では使用できません。", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "文字列値のメンバーを持つ列挙型では、計算値は許可されません。", - "Concatenate_and_emit_output_to_single_file_6001": "出力を連結して 1 つのファイルを生成します。", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "'{0}' の定義が '{1}' および '{2}' で競合しています。競合を解決するには、このライブラリの特定バージョンのインストールをご検討ください。", - "Conflicts_are_in_this_file_6201": "このファイル内に競合があります。", - "Consider_adding_a_declare_modifier_to_this_class_6506": "このクラスに 'declare' 修飾子を追加することを検討してください。", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "コンストラクト シグネチャの戻り値の型 '{0}' と '{1}' には互換性がありません。", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "戻り値の型の注釈がないコンストラクト シグネチャの戻り値の型は、暗黙的に 'any' になります。", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "引数のないコンストラクト シグネチャには、互換性のない戻り値の型 '{0}' と '{1}' が含まれています。", - "Constructor_implementation_is_missing_2390": "コンストラクターの実装がありません。", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "クラス '{0}' のコンストラクターはプライベートであり、クラス宣言内でのみアクセス可能です。", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "クラス '{0}' のコンストラクターは保護されており、クラス宣言内でのみアクセス可能です。", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "共用体型で使用する場合、コンストラクターの型の表記はかっこで囲む必要があります。", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "交差型で使用する場合、コンストラクターの型の表記はかっこで囲む必要があります。", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "派生クラスのコンストラクターには 'super' の呼び出しを含める必要があります。", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "包含するファイルが指定されていないため、ルート ディレクトリを決定できません。'node_modules' フォルダーのルックアップをスキップします。", - "Containing_function_is_not_an_arrow_function_95128": "含まれている関数はアロー関数ではありません", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "モジュール形式の JS ファイルを検出するために使用するメソッドを制御します。", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "型 '{0}' から型 '{1}' への変換は、互いに十分に重複できないため間違っている可能性があります。意図的にそうする場合は、まず式を 'unknown' に変換してください。", - "Convert_0_to_1_in_0_95003": "'{0}' を '{0} の {1}' に変換します", - "Convert_0_to_mapped_object_type_95055": "'{0}' をマップされたオブジェクト型に変換する", - "Convert_all_const_to_let_95102": "すべての 'const' を 'let' に変換する", - "Convert_all_constructor_functions_to_classes_95045": "すべてのコンストラクター関数をクラスに変換します", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "値として使用されていないすべてのインポートを型のみのインポートに変換する", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "すべての無効な文字を HTML エンティティ コードに変換する", - "Convert_all_re_exported_types_to_type_only_exports_1365": "すべての再エクスポートされた型を、型のみのエクスポートに変換する", - "Convert_all_require_to_import_95048": "'require' をすべて 'import' に変換", - "Convert_all_to_async_functions_95066": "すべてを非同期関数に変換する", - "Convert_all_to_bigint_numeric_literals_95092": "すべてを bigint 数値リテラルに変換する", - "Convert_all_to_default_imports_95035": "すべてを既定のインポートに変換します", - "Convert_all_type_literals_to_mapped_type_95021": "すべての型リテラルをマップされた型に変換します", - "Convert_arrow_function_or_function_expression_95122": "アロー関数または関数式を変換する", - "Convert_const_to_let_95093": "'const' を 'let' に変換する", - "Convert_default_export_to_named_export_95061": "既定のエクスポートを名前付きエクスポートに変換する", - "Convert_function_declaration_0_to_arrow_function_95106": "関数宣言 '{0}' をアロー関数に変換する", - "Convert_function_expression_0_to_arrow_function_95105": "関数の式 '{0}' をアロー関数に変換する", - "Convert_function_to_an_ES2015_class_95001": "関数を ES2015 クラスに変換します", - "Convert_invalid_character_to_its_html_entity_code_95100": "無効な文字をその html エンティティ コードに変換する", - "Convert_named_export_to_default_export_95062": "名前付きエクスポートを既定のエクスポートに変換する", - "Convert_named_imports_to_default_import_95170": "名前付きインポートを既定のインポートに変換する", - "Convert_named_imports_to_namespace_import_95057": "名前付きインポートを名前空間インポートに変換します", - "Convert_namespace_import_to_named_imports_95056": "名前空間インポートを名前付きインポートに変換します", - "Convert_overload_list_to_single_signature_95118": "オーバーロード リストを単一のシグネチャに変換する", - "Convert_parameters_to_destructured_object_95075": "パラメーターを非構造化オブジェクトに変換する", - "Convert_require_to_import_95047": "'require' を 'import' に変換", - "Convert_to_ES_module_95017": "ES モジュールに変換する", - "Convert_to_a_bigint_numeric_literal_95091": "bigint 数値リテラルに変換する", - "Convert_to_anonymous_function_95123": "匿名関数に変換する", - "Convert_to_arrow_function_95125": "アロー関数に変換する", - "Convert_to_async_function_95065": "非同期関数に変換する", - "Convert_to_default_import_95013": "既定のインポートに変換する", - "Convert_to_named_function_95124": "名前付き関数に変換する", - "Convert_to_optional_chain_expression_95139": "オプションのチェーン式に変換します", - "Convert_to_template_string_95096": "テンプレート文字列に変換する", - "Convert_to_type_only_export_1364": "型のみのエクスポートに変換する", - "Convert_to_type_only_import_1373": "型のみのインポートに変換する", - "Corrupted_locale_file_0_6051": "ロケール ファイル {0} は破損しています。", - "Could_not_convert_to_anonymous_function_95153": "匿名関数に変換できませんでした", - "Could_not_convert_to_arrow_function_95151": "アロー関数に変換できませんでした", - "Could_not_convert_to_named_function_95152": "名前付き関数に変換できませんでした", - "Could_not_determine_function_return_type_95150": "関数の戻り値の型を特定できませんでした", - "Could_not_find_a_containing_arrow_function_95127": "含まれているアロー関数が見つかりませんでした", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "モジュール '{0}' の宣言ファイルが見つかりませんでした。'{1}' は暗黙的に 'any' 型になります。", - "Could_not_find_convertible_access_expression_95140": "変換可能なアクセス式が見つかりませんでした", - "Could_not_find_export_statement_95129": "export ステートメントが見つかりませんでした", - "Could_not_find_import_clause_95131": "インポート句が見つかりませんでした", - "Could_not_find_matching_access_expressions_95141": "一致するアクセス式が見つかりませんでした", - "Could_not_find_name_0_Did_you_mean_1_2570": "名前 '{0}' が見つかりませんでした。'{1}' ですか?", - "Could_not_find_namespace_import_or_named_imports_95132": "名前空間のインポートまたは名前付きインポートが見つかりませんでした", - "Could_not_find_property_for_which_to_generate_accessor_95135": "アクセサーを生成するプロパティが見つかりませんでした", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "次の拡張子を持つパス '{0}' を解決できませんでした: {1}。", - "Could_not_write_file_0_Colon_1_5033": "ファイル '{0}' を書き込めませんでした: '{1}'。", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "生成された JavaScript ファイルのソース マップ ファイルを作成します。", - "Create_sourcemaps_for_d_ts_files_6614": "d.ts ファイルのソースマップを作成します。", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "作業ディレクトリの推奨設定を使用して tsconfig.json を作成します。", - "DIRECTORY_6038": "ディレクトリ", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "この宣言は別のファイル内の宣言を拡張します。この操作はシリアル化できません。", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "このファイルの宣言の生成では、プライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "このファイルの宣言の生成では、モジュール '{1}' からのプライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。", - "Declaration_expected_1146": "宣言が必要です。", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣言名が組み込みのグローバル識別子 '{0}' と競合しています。", - "Declaration_or_statement_expected_1128": "宣言またはステートメントが必要です。", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "宣言またはステートメントが必要です。この '=' はステートメントのブロックに続くため、非構造化割り当てを作成する場合は、割り当て全体をかっこで囲む必要があります。", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "明確な代入アサーションを使った宣言には、型の注釈も指定する必要があります。", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "初期化子を使った宣言に明確な代入アサーションを含めることはできません。", - "Declare_a_private_field_named_0_90053": "'{0}' という名前のプライベート フィールドを宣言します。", - "Declare_method_0_90023": "メソッド '{0}' を宣言する", - "Declare_private_method_0_90038": "プライベート メソッド '{0}' を宣言する", - "Declare_private_property_0_90035": "プライベート プロパティ '{0}' を宣言します", - "Declare_property_0_90016": "プロパティ '{0}' を宣言する", - "Declare_static_method_0_90024": "静的メソッド '{0}' を宣言する", - "Declare_static_property_0_90027": "静的プロパティ '{0}' を宣言する", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "デコレーター関数の戻り値の型 '{0}' は、型 '{1}' に割り当てられません。", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "デコレーター関数の戻り値の型は '{0}' ですが、\"void\" または \"any\" である必要があります。", - "Decorators_are_not_valid_here_1206": "デコレーターはここでは無効です。", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "デコレーターを同じ名前の複数の get/set アクセサーに適用することはできません。", - "Decorators_may_not_be_applied_to_this_parameters_1433": "デコレーターを ' this ' パラメーターに適用することができない場合があります。", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "デコレーターは、プロパティ宣言の名前とすべてのキーワードの前に置く必要があります。", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "既定の catch 句の変数は '任意' ではなく '不明' です。", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "モジュールの既定エクスポートがプライベート名 '{0}' を持っているか、使用しています。", - "Default_library_1424": "既定のライブラリ", - "Default_library_for_target_0_1425": "ターゲット '{0}' の既定のライブラリ", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "次の識別子の定義が、別のファイル内の定義と競合しています: {0}", - "Delete_all_unused_declarations_95024": "未使用の宣言をすべて削除します", - "Delete_all_unused_imports_95147": "未使用の import をすべて削除します", - "Delete_all_unused_param_tags_95172": "未使用の '@param' タグをすべて削除します", - "Delete_the_outputs_of_all_projects_6365": "すべてのプロジェクトの出力を削除します。", - "Delete_unused_param_tag_0_95171": "未使用の '@param' タグ '{0}' を削除します", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[非推奨] 代わりに '--jsxFactory' を使います。'react' JSX 発行を対象とするときに、createElement に対して呼び出されたオブジェクトを指定します", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[非推奨] 代わりに '--outFile' を使います。出力を連結して 1 つのファイルを生成します", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[非推奨] 代わりに '--skipLibCheck' を使います。既定のライブラリ宣言ファイルの型チェックをスキップします。", - "Deprecated_setting_Use_outFile_instead_6677": "非推奨の設定です。代わりに 'outFile' をお使いください。", - "Did_you_forget_to_use_await_2773": "'await' を使用することを忘れていませんか?", - "Did_you_mean_0_1369": "'{0}' を意図していましたか?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "'{0}' が型 'new (...args: any[]) => {1}' に制約されることを意図していましたか?", - "Did_you_mean_to_call_this_expression_6212": "この式を呼び出すことを意図していましたか?", - "Did_you_mean_to_mark_this_function_as_async_1356": "この関数を 'async' とマークすることを意図していましたか?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "':' を使用するつもりでしたか? 含まれるオブジェクト リテラルが非構造化パターンの一部である場合、'=' はプロパティ名の後にのみ使用することができます。", - "Did_you_mean_to_use_new_with_this_expression_6213": "この式で 'new' を使用することを意図していましたか?", - "Digit_expected_1124": "数値が必要です", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "ディレクトリ '{0}' は存在していません。ディレクトリ内のすべての参照をスキップしています。", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "ディレクトリ '{0}' には package.json のスコープが含まれません。インポートは解決されません。", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "生成された JavaScript ファイルでの 'use strict' ディレクティブの追加を無効にします。", - "Disable_checking_for_this_file_90018": "このファイルのチェックを無効にする", - "Disable_emitting_comments_6688": "コメントの生成を無効にします。", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "JSDoc コメントに '@internal' を含む宣言の生成を無効にします。", - "Disable_emitting_files_from_a_compilation_6660": "コンパイルからのファイルの出力を無効にします。", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "型チェック エラーが報告された場合は、ファイルの生成を無効にします。", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "生成されたコード内で 'const 列挙型' 宣言の消去を無効にします。", - "Disable_error_reporting_for_unreachable_code_6603": "到達できないコードのエラー報告を無効にします。", - "Disable_error_reporting_for_unused_labels_6604": "未使用のラベルのエラー報告を無効にします。", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "コンパイルされた出力での '__extends' などのカスタム ヘルパー関数の生成を無効にします。", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "既定の lib.d.ts を含むすべてのライブラリ ファイルを含めることを無効にします。", - "Disable_loading_referenced_projects_6235": "参照されているプロジェクトの読み込みを無効にします。", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "複合プロジェクトを参照するときに宣言ファイルではなくソース ファイルを優先することを無効にします。", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "オブジェクト リテラルの作成時に余分なプロパティ エラーの報告を無効にします。", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "symlink を realpath に解決できないようにします。これは、ノードの同じフラグに関連しています。", - "Disable_size_limitations_on_JavaScript_projects_6162": "JavaScript プロジェクトのサイズ制限を無効にします。", - "Disable_solution_searching_for_this_project_6224": "このプロジェクトのソリューション検索を無効にします。", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "関数型の汎用シグネチャに対する厳密なチェックを無効にします。", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "JavaScript プロジェクトの型の取得を無効にする", - "Disable_truncating_types_in_error_messages_6663": "エラー メッセージ内の型の切り捨てを無効にします。", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "参照先のプロジェクトの宣言ファイルの代わりにソース ファイルを使用することを無効にします。", - "Disable_wiping_the_console_in_watch_mode_6684": "ウォッチ モードでのコンソールのワイプを無効にします。", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "プロジェクト内のファイル名の参照による型取得の推論を無効にします。", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "'import'、'require'、'' を使用して TypeScript がプロジェクトに追加するファイルの数を増やすことを無効にします。", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "同じファイルへの大文字小文字の異なる参照を許可しない。", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "トリプルスラッシュの参照やインポートしたモジュールをコンパイルされたファイルのリストに追加しないでください。", - "Do_not_emit_comments_to_output_6009": "コメントを出力しないでください。", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "'@internal' の注釈を含むコードの宣言を生成しないでください。", - "Do_not_emit_outputs_6010": "出力しないでください。", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "エラーが報告される場合は、出力しないでください。", - "Do_not_emit_use_strict_directives_in_module_output_6112": "モジュール出力で 'use strict' ディレクティブを生成しません。", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "生成されたコード内で const 列挙型宣言を消去しないでください。", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "コンパイルされた出力で '__extends' などのカスタム ヘルパー関数を生成しないでください。", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "既定のライブラリ ファイル (lib.d.ts) を含めないでください。", - "Do_not_report_errors_on_unreachable_code_6077": "到達できないコードに関するエラーを報告しない。", - "Do_not_report_errors_on_unused_labels_6074": "未使用のラベルに関するエラーを報告しない。", - "Do_not_resolve_the_real_path_of_symlinks_6013": "symlink の実際のパスを解決しません。", - "Do_not_truncate_error_messages_6165": "エラー メッセージを切り捨てないでください。", - "Duplicate_function_implementation_2393": "関数の実装が重複しています。", - "Duplicate_identifier_0_2300": "識別子 '{0}' が重複しています。", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "識別子 '{0}' が重複しています。コンパイラは、モジュールの最上位のスコープに名前 '{1}' を予約します。", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "識別子 '{0}' が重複しています。コンパイラは非同期関数を含むモジュールの最上位のスコープに名前 '{1}' を予約します。", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "識別子 '{0}' が重複しています。静的初期化子で 'super' 参照を出力するときに、コンパイラは名前 '{1}' を予約します。", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "識別子 '{0}' が重複しています。コンパイラは宣言 '{1}' を使用して非同期関数をサポートします。", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "識別子 '{0}' が重複しています。静的要素とインスタンス要素は、同じプライベート名を共有できません。", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "識別子 'arguments' が重複しています。コンパイラは 'arguments' を使用して rest パラメーターを初期化します。", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "識別子 '_newTarget' が重複しています。コンパイラは変数宣言 '_newTarget' を使用して、'new.target' メタプロパティの参照をキャプチャします。", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "識別子 '_this' が重複しています。コンパイラは変数宣言 '_this' を使用して '_this' の参照をキャプチャします。", - "Duplicate_index_signature_for_type_0_2374": "型 '{0}' のインデックス シグネチャが重複しています。", - "Duplicate_label_0_1114": "ラベル '{0}' が重複しています。", - "Duplicate_property_0_2718": "プロパティ '{0}' が重複しています。", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動的インポートの指定子の型は 'string' である必要がありますが、ここでは型 '{0}' が指定されています。", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "動的インポートは、'--module' フラグが 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'nodenext' に設定されている場合にのみサポートされます。", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動的インポートでは、引数として、モジュール指定子とオプションのアサーションのみを受け取ることができます", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "'--module' オプションが 'esnext'、'node16'、または 'nodenext' に設定されている場合、動的インポートは 2 番目の引数のみをサポートします。", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "共用体型 '{0}' の各メンバーにはコンストラクト シグネチャがありますが、これらのシグネチャはいずれも相互に互換性がありません。", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "共用体型 '{0}' の各メンバーにはシグネチャがありますが、これらのシグネチャはいずれも相互に互換性がありません。", - "Editor_Support_6249": "エディター サポート", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "型 '{0}' の式を使用して型 '{1}' にインデックスを付けることはできないため、要素は暗黙的に 'any' 型になります。", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "インデックス式が型 'number' ではないため、要素に 'any' 型が暗黙的に指定されます。", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "型 '{0}' にはインデックス シグネチャがないため、要素は暗黙的に 'any' 型になります。", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "型 '{0}' にはインデックス シグネチャがないため、要素は暗黙的に 'any' 型になります。'{1}' を呼び出すことを意図していましたか?", - "Emit_6246": "生成", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "ECMAScript 標準準拠クラス フィールドを生成します。", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "出力ファイルの最初に UTF-8 バイト順マーク(BOM) を生成します。", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "個々のファイルを持つ代わりに、複数のソース マップを含む単一ファイルを生成します。", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "デバッグのために実行するコンパイラの v8 CPU プロファイルを生成します。", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "CommonJS モジュールのインポートをサポートしやすくするために追加の JavaScript を生成します。これにより、互換性のある型に対して 'allowSyntheticDefaultImports' を使用できるようになります。", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Set ではなく Define を使用して、クラスのフィールドを生成します。", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "ソース ファイル内の修飾された宣言に対してデザイン型メタデータを生成します。", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "イテレーションのために、準拠性が高いものの、冗長でパフォーマンスが低い JavaScript を生成します。", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "単一ファイル内でソースマップと共にソースを生成します。'--inlineSourceMap' または '--sourceMap' を設定する必要があります。", - "Enable_all_strict_type_checking_options_6180": "厳密な型チェックのオプションをすべて有効にします。", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "TypeScript の出力で色と書式設定を有効にして、コンパイラ エラーを読みやすくします。", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "プロジェクト参照での TypeScript プロジェクトの使用を許可する制約を有効にします。", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "関数で明示的に返されないコードパスのエラー報告を有効にします。", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "暗黙的な 'any' 型を含む式と宣言に関するエラー報告を有効にします。", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "switch ステートメントに case のフォールスルーがある場合のエラー報告を有効にします。", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "型チェックされた JavaScript ファイルでのエラー報告を有効にします。", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "ローカル変数が読み取られていない場合にエラー報告を有効にします。", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "'this' に 'any' 型が指定されている場合は、エラー報告を有効にします。", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "TC39 ステージ 2 ドラフト デコレーター用の実験的なサポートを有効にします。", - "Enable_importing_json_files_6689": ".json ファイルのインポートを有効にします。", - "Enable_project_compilation_6302": "プロジェクトのコンパイルを有効にします", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "厳格な 'bind'、'call'、'apply' メソッドを関数で有効にします。", - "Enable_strict_checking_of_function_types_6186": "関数の型の厳密なチェックを有効にします。", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "クラス内のプロパティの初期化の厳密なチェックを有効にします。", - "Enable_strict_null_checks_6113": "厳格な null チェックを有効にします。", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "構成ファイルで 'experimentalDecorators' オプションを有効にする", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "構成ファイルで '--jsx' フラグを有効にする", - "Enable_tracing_of_the_name_resolution_process_6085": "名前解決の処理のトレースを有効にします。", - "Enable_verbose_logging_6713": "詳細ログを有効にします。", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "すべてのインポートの名前空間オブジェクトを作成して、CommonJS と ES モジュール間の生成の相互運用性を有効にします。'allowSyntheticDefaultImports' を暗黙のうちに表します。", - "Enables_experimental_support_for_ES7_decorators_6065": "ES7 デコレーター用の実験的なサポートを有効にします。", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "デコレーター用の型メタデータを発行するための実験的なサポートを有効にします。", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "インデックス付きの型を使用して宣言されたキーに対してインデックス付きアクセサーの使用を強制します。", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "派生クラスのオーバーライドするメンバーが override 修飾子でマークされていることを確認します。", - "Ensure_that_casing_is_correct_in_imports_6637": "インポートの大文字と小文字の指定が正しいことを確認します。", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "各ファイルが他のインポートに依存しないで安全にトランスパイルできることを確認します。", - "Ensure_use_strict_is_always_emitted_6605": "'use strict' が常に生成されることを確認します。", - "Entry_point_for_implicit_type_library_0_1420": "暗黙的なタイプ ライブラリ '{0}' のエントリ ポイント", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "packageId が '{1}' の暗黙的なタイプ ライブラリ '{0}' のエントリ ポイント", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "compilerOptions で指定されたタイプ ライブラリ '{0}' のエントリ ポイント", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "compilerOptions で指定された packageId が '{1}' のタイプ ライブラリ '{0}' のエントリ ポイント", - "Enum_0_used_before_its_declaration_2450": "列挙型 '{0}' は宣言の前に使用されました。", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "列挙型の宣言は、名前空間または他の列挙型の宣言とのみマージできます。", - "Enum_declarations_must_all_be_const_or_non_const_2473": "列挙型宣言は、すべてが定数、またはすべてが非定数でなければなりません。", - "Enum_member_expected_1132": "列挙型メンバーが必要です。", - "Enum_member_must_have_initializer_1061": "列挙型メンバーには初期化子が必要です。", - "Enum_name_cannot_be_0_2431": "列挙型の名前を '{0}' にすることはできません。", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "列挙型 '{0}' に、リテラルではない初期化子を持つメンバーがあります。", - "Errors_Files_6041": "エラーの発生したファイル", - "Examples_Colon_0_6026": "例: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "型 '{0}' と '{1}' を比較するスタックが深すぎます。", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "{0}-{1} 型の引数が必要です。'@extends' タグで指定してください。", - "Expected_0_arguments_but_got_1_2554": "{0} 個の引数が必要ですが、{1} 個指定されました。", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} 引数が必要ですが、{1} が指定されました。'Promise' の型引数に 'void' を含めましたか?", - "Expected_0_type_arguments_but_got_1_2558": "{0} 個の型引数が必要ですが、{1} 個が指定されました。", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "{0} 型の引数が必要です。'@extends' タグで指定してください。", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 個の引数が必要ですが、0 個しかありませんでした。'new Promise()' では、引数なしで呼び出すことができる 'resolve' を生成するための JSDoc ヒントが必要です。", - "Expected_at_least_0_arguments_but_got_1_2555": "最低でも {0} 個の引数が必要ですが、{1} 個指定されました。", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}' の対応する JSX 終了タグが必要です。", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX フラグメントの対応する終了タグが必要です。", - "Expected_for_property_initializer_1442": "プロパティ初期化子には '=' を期待しています。", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "'package.json' の '{0}' フィールドの型は '{1}' であるべきですが、'{2}' を取得しました。", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "デコレーターの実験的なサポートは将来のリリースで変更になる可能性がある機能です。'tsconfig' または 'jsconfig' に 'experimentalDecorators' オプションを設定してこの警告を削除します。", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "明示的に指定されたモジュール解決の種類 '{0}'。", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' オプションが 'es2016' 以降に設定されている場合を除き、'bigint' 値に対して累乗を実行することはできません。", - "Export_0_from_module_1_90059": "'{0}' をモジュール '{1}' からエクスポートする", - "Export_all_referenced_locals_90060": "参照されているすべてのローカルをエクスポートする", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "ECMAScript モジュールを対象にする場合は、エクスポート代入を使用できません。代わりに 'export default' または別のモジュール書式の使用をご検討ください。", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "代入のエクスポートは、'--module' フラグが 'system' の場合にはサポートされません。", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "エクスポート宣言が、'{0}' のエクスポートされた宣言と競合しています。", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "エクスポート宣言は名前空間でサポートされません。", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "エクスポート指定子 '{0}' がパス '{1}' の package.json のスコープに存在しません。", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "エクスポートされた型のエイリアス '{0}' にプライベート名 '{1}' が付いているか、その名前を使用しています。", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "エクスポートされた型エイリアス '{0}' がモジュール {2} のプライベート名 '{1}' を持っているか、使用しています。", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "エクスポートされた変数 '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "エクスポートされた変数 '{0}' がプライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "エクスポートされた変数 '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "エクスポートとエクスポートの代入はモジュールの拡張では許可されていません。", - "Expression_expected_1109": "式が必要です。", - "Expression_or_comma_expected_1137": "式またはコンマが必要です。", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "式では大きすぎて表すことができないタプル型を生成します。", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "式は、複雑すぎて表現できない共用体型を生成します。", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "式は、コンパイラが基底クラスの参照をキャプチャするために使用する '_super' に解決されます。", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "式は、コンパイラが 'new.target' メタプロパティの参照をキャプチャするために使用する変数宣言 '_newTarget' に解決されます。", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "式は、コンパイラが 'this' の参照をキャプチャするために使用する変数宣言 '_this' に解決されます。", - "Extract_constant_95006": "定数の抽出", - "Extract_function_95005": "関数の抽出", - "Extract_to_0_in_1_95004": "{1} 内の {0} に抽出する", - "Extract_to_0_in_1_scope_95008": "{1} スコープ内の {0} に抽出する", - "Extract_to_0_in_enclosing_scope_95007": "外側のスコープ内の {0} に抽出する", - "Extract_to_interface_95090": "インターフェイスに抽出する", - "Extract_to_type_alias_95078": "型のエイリアスに抽出する", - "Extract_to_typedef_95079": "typedef に抽出する", - "Extract_type_95077": "Extract 型", - "FILE_6035": "ファイル", - "FILE_OR_DIRECTORY_6040": "ファイルまたはディレクトリ", - "Failed_to_parse_file_0_Colon_1_5014": "ファイル '{0}' を解析できませんでした。{1}。", - "Fallthrough_case_in_switch_7029": "switch に case のフォールスルーがあります。", - "File_0_does_not_exist_6096": "ファイル '{0}' が存在しません。", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "以前にキャッシュされた検索によるとファイル '{0}' は存在しません。", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "ファイル '{0}' が存在します。名前解決の結果として使用します。", - "File_0_exists_according_to_earlier_cached_lookups_6239": "以前にキャッシュされた参照によるとファイル ' {0} ' は、存在します。", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "ファイル '{0}' はサポートされていない拡張子を含んでいます。サポートされている拡張子は {1} のみです。", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "ファイル '{0}' にはサポートされていない拡張機能があるため、スキップしています。", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "ファイル '{0}' は JavaScript ファイルです。'allowJs' オプションを有効にするつもりでしたか?", - "File_0_is_not_a_module_2306": "ファイル '{0}' はモジュールではありません。", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "ファイル '{0}' がプロジェクト '{1}' のファイル リストに含まれていません。プロジェクトではすべてのファイルをリストするか、'include' パターンを使用する必要があります。", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "ファイル '{0}' が 'rootDir' '{1}' の下にありません。'rootDir' にすべてにソース ファイルが含まれている必要があります。", - "File_0_not_found_6053": "ファイル '{0}' が見つかりません。", - "File_Management_6245": "ファイルの管理", - "File_change_detected_Starting_incremental_compilation_6032": "ファイルの変更が検出されました。インクリメンタル コンパイルを開始しています...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "'{0}' にはフィールド \"type\" がないため、ファイルは CommonJS モジュールです", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "'{0}' にフィールド \"type\" があり、値が \"module\" ではないため、ファイルは CommonJS モジュールです。", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "\"package.json\" が見つからなかったため、ファイルは CommonJS モジュールです", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "'{0}' には値 \"module\" のフィールド \"type\" があるため、ファイルは ECMAScript モジュールです。", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "ファイルは CommonJS モジュールです。ES モジュールに変換される可能性があります。", - "File_is_default_library_for_target_specified_here_1426": "ファイルはこちらで指定されたターゲットの既定のライブラリです。", - "File_is_entry_point_of_type_library_specified_here_1419": "ファイルはこちらで指定されたタイプ ライブラリのエントリ ポイントです。", - "File_is_included_via_import_here_1399": "ファイルはインポートによってこちらに追加されます。", - "File_is_included_via_library_reference_here_1406": "ファイルはライブラリ参照によってこちらにインクルードされます。", - "File_is_included_via_reference_here_1401": "ファイルは参照によってこちらにインクルードされます。", - "File_is_included_via_type_library_reference_here_1404": "ファイルはタイプ ライブラリ参照によってこちらにインクルードされます。", - "File_is_library_specified_here_1423": "ファイルはこちらで指定されたライブラリです。", - "File_is_matched_by_files_list_specified_here_1410": "ファイルはこちらで指定された 'files' リストに一致します。", - "File_is_matched_by_include_pattern_specified_here_1408": "ファイルはこちらで指定されたインクルード パターンに一致します。", - "File_is_output_from_referenced_project_specified_here_1413": "ファイルはこちらで指定された参照先プロジェクトからの出力です。", - "File_is_output_of_project_reference_source_0_1428": "ファイルはプロジェクト参照ソース '{0}' の出力です", - "File_is_source_from_referenced_project_specified_here_1416": "ファイルはこちらで指定された参照先プロジェクトのソースです。", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "ファイル名 '{0}' は、既に含まれているファイル名 '{1}' と大文字と小文字の指定だけが異なります。", - "File_name_0_has_a_1_extension_stripping_it_6132": "ファイル名 '{0}' に '{1}' 拡張子が使われています - 削除しています。", - "File_redirects_to_file_0_1429": "ファイルはファイル '{0}' にリダイレクトされます", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "ファイルの指定で再帰ディレクトリのワイルドカード ('**') の後に親ディレクトリ ('..') を指定することはできません: '{0}'。", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "ファイルの指定の末尾を再帰的なディレクトリのワイルドカード ('**') にすることはできません: '{0}'。", - "Filters_results_from_the_include_option_6627": "'include' オプションからの結果をフィルター処理します。", - "Fix_all_detected_spelling_errors_95026": "検出されたすべてのスペル ミスを修正します", - "Fix_all_expressions_possibly_missing_await_95085": "'await' が不足している可能性があるすべての式を修正する", - "Fix_all_implicit_this_errors_95107": "すべての暗黙的な 'this' エラーを修正する", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "非同期関数の無効な戻り値の型をすべて修正します", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'For await' ループは、クラスの静的ブロック内では使用できません。", - "Found_0_errors_6217": "{0} 件のエラーが見つかりました。", - "Found_0_errors_Watching_for_file_changes_6194": "{0} 件のエラーが見つかりました。ファイルの変更をモニタリングしています。", - "Found_0_errors_in_1_files_6261": "{1} ファイルに {0} 件のエラーが見つかりました。", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "同じファイル内に {0} 件のエラーが見つかりました。{1} から開始します", - "Found_1_error_6216": "1 件のエラーが見つかりました。", - "Found_1_error_Watching_for_file_changes_6193": "1 件のエラーが見つかりました。ファイルの変更をモニタリングしています。", - "Found_1_error_in_1_6259": "{1} で 1 件のエラーが見つかりました", - "Found_package_json_at_0_6099": "'{0}' で 'package.json' が見つかりました。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。クラス定義は自動的に厳格モードになります。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。モジュールは自動的に厳格モードになります。", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "戻り値の型の注釈がない関数式の戻り値の型は、暗黙的に '{0}' になります。", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "関数の実装がないか、宣言の直後に指定されていません。", - "Function_implementation_name_must_be_0_2389": "関数の実装名は '{0}' でなければなりません。", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "関数は、戻り値の型の注釈がなく、いずれかの return 式で直接的にまたは間接的に参照されているため、戻り値の型は暗黙的に 'any' になります。", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "関数に終了の return ステートメントがないため、戻り値の型には 'undefined' が含まれません。", - "Function_not_implemented_95159": "関数が実装されていません。", - "Function_overload_must_be_static_2387": "関数のオーバーロードは静的でなければなりません。", - "Function_overload_must_not_be_static_2388": "関数のオーバーロードは静的にはできせん。", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "共用体型で使用する場合、関数の型の表記はかっこで囲む必要があります。", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "交差型で使用する場合、関数の型の表記はかっこで囲む必要があります。", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "戻り値の型の注釈がない関数型の戻り値の型は、暗黙的に '{0}' になります。", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "本文を持つ関数は、アンビエントであるクラスとのみ結合できます。", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "プロジェクト内の TypeScript ファイルおよび JavaScript ファイルから、.d.ts ファイルを生成します。", - "Generate_get_and_set_accessors_95046": "'get' および 'set' アクセサーの生成", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "すべてのオーバーライドするプロパティに対して 'get' および 'set' アクセサーを生成します", - "Generates_a_CPU_profile_6223": "CPU プロファイルを生成します。", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "対応する各 '.d.ts' ファイルにソースマップを生成します。", - "Generates_an_event_trace_and_a_list_of_types_6237": "イベント トレースと型のリストを生成します。", - "Generates_corresponding_d_ts_file_6002": "対応する '.d.ts' ファイルを生成します。", - "Generates_corresponding_map_file_6043": "対応する '.map' ファイルを生成します。", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "ジェネレーターは値を生成しないため、暗黙的に yield 型 '{0}' になります。戻り値の型の注釈を指定することを検討してください。", - "Generators_are_not_allowed_in_an_ambient_context_1221": "ジェネレーターは環境コンテキストでは使用できません。", - "Generic_type_0_requires_1_type_argument_s_2314": "ジェネリック型 '{0}' には {1} 個の型引数が必要です。", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "ジェネリック型 '{0}' には、{1} 個から {2} 個までの型引数が必要です。", - "Global_module_exports_may_only_appear_at_top_level_1316": "グローバル モジュールのエクスポートは最上位レベルにのみ出現可能です。", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "グローバル モジュールのエクスポートは宣言ファイルにのみ出現可能です。", - "Global_module_exports_may_only_appear_in_module_files_1314": "グローバル モジュールのエクスポートはモジュール ファイルにのみ出現可能です。", - "Global_type_0_must_be_a_class_or_interface_type_2316": "グローバル型 '{0}' はクラス型またはインターフェイス型でなければなりません。", - "Global_type_0_must_have_1_type_parameter_s_2317": "グローバル型 '{0}' には {1} 個の型パラメーターが必要です。", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "'--incremental' と '--watch' での再コンパイルは、ファイル内の変更がそのファイルに直接依存しているファイルにのみ影響することを想定しています。", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "'incremental' と 'watch' モードを使用するプロジェクト内での再コンパイルは、ファイル内の変更がそれに直接依存しているファイルにのみ影響することを想定しています。", - "Hexadecimal_digit_expected_1125": "16 進の数字が必要です。", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "識別子が必要です。'{0}' は、モジュールの最上位レベルでの予約語です。", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "識別子が必要です。'{0}' は厳格モードの予約語です。", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "識別子が必要です。'{0}' は厳格モードの予約語です。クラス定義は自動的に厳格モードになります。", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "識別子が必要です。'{0}' は、厳格モードの予約語です。モジュールは自動的に厳格モードになります。", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "識別子が予期されていました。'{0}' は、ここでは使用できない予約語です。", - "Identifier_expected_1003": "識別子が必要です。", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "識別子が必要です。'__esModule' は、ECMAScript モジュールを変換するときのエクスポート済みマーカーとして予約されています。", - "Identifier_or_string_literal_expected_1478": "識別子または文字列リテラルが必要です。", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' パッケージが実際にこのモジュールを公開する場合は、pull request を送信して 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' を修正することを検討してください", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' パッケージが実際にこのモジュールを公開する場合は、'declare module '{1}';' を含む新しい宣言 (d.ts) ファイルを追加してみてください。", - "Ignore_this_error_message_90019": "このエラー メッセージを無視する", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "tsconfig.json を無視し、既定のコンパイラ オプションを使用して指定されたファイルをコンパイルします。", - "Implement_all_inherited_abstract_classes_95040": "継承されたすべての抽象クラスを実装します", - "Implement_all_unimplemented_interfaces_95032": "実装されていないすべてのインターフェイスを実装します", - "Implement_inherited_abstract_class_90007": "継承抽象クラスを実装する", - "Implement_interface_0_90006": "インターフェイス '{0}' を実装する", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "エクスポートされたクラス '{0}' の Implements 句がプライベート名 '{1}' を持っているか、使用しています。", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "'symbol ' から 'string' への暗黙の変換は、実行時に失敗します。この式を 'String(...)' でラップすることを検討してください。", - "Import_0_from_1_90013": "\"{1}\" から `{0}` をインポートします。", - "Import_assertion_values_must_be_string_literal_expressions_2837": "インポート アサーションの値は、文字列リテラル式である必要があります。", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "インポート アサーションは、commonjs 'require' 呼び出しに変換するステートメントでは許可されません。", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "インポート アサーションは、'--module' オプションが 'esnext' または 'nodenext' に設定されている場合にのみサポートされます。", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "インポート アサーションは、型のみのインポートまたはエクスポートでは使用できません。", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "ECMAScript モジュールを対象にする場合は、インポート代入を使用できません。代わりに 'import * as ns from \"mod\"'、'import {a} from \"mod\"'、'import d from \"mod\"' などのモジュール書式の使用をご検討ください。", - "Import_declaration_0_is_using_private_name_1_4000": "インポート宣言 '{0}' がプライベート名 '{1}' を使用しています。", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "インポート宣言が、'{0}' のローカル宣言と競合しています。", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "名前空間内のインポート宣言は、モジュールを参照できません。", - "Import_emit_helpers_from_tslib_6139": "生成ヘルパーを 'tslib' からインポートします。", - "Import_may_be_converted_to_a_default_import_80003": "インポートは既定のインポートに変換される可能性があります。", - "Import_name_cannot_be_0_2438": "インポート名を '{0}' にすることはできません。", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "アンビエント モジュール宣言内のインポート宣言またはエクスポート宣言は、相対モジュール名を通してモジュールを参照することはできません。", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "インポート指定子 '{0}' がパス '{1}' の package.json のスコープに存在しません。", - "Imported_via_0_from_file_1_1393": "ファイル '{1}' から {0} を介してインポートされました", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "compilerOptions で指定された 'importHelpers' をインポートするため、ファイル '{1}' から {0} を介してインポートされました", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "'jsx' および 'jsxs' ファクトリ関数をインポートするため、ファイル '{1}' から {0} を介してインポートされました", - "Imported_via_0_from_file_1_with_packageId_2_1394": "packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "compilerOptions で指定されているように 'importHelpers' をインポートするため、packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "'jsx' および 'jsxs' ファクトリ関数をインポートするため、packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "インポートはモジュールの拡張では許可されていません。外側の外部モジュールに移動することを検討してください。", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "アンビエント列挙型の宣言では、メンバー初期化子は定数式である必要があります。", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "複数の宣言がある列挙型で、最初の列挙要素の初期化子を省略できる宣言は 1 つのみです。", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "ファイルの一覧を含めます。これは、'include' ではなく、glob パターンをサポートしていません。", - "Include_modules_imported_with_json_extension_6197": "'.json' 拡張子付きのインポートされたモジュールを含める", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "生成された JavaScript 内のソースマップにソース コードを含めます。", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "出力された JavaScript 内にソースマップ ファイルを含めます。", - "Includes_imports_of_types_referenced_by_0_90054": "'{0}' によって参照される型のインポートを含む", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "--watch を含めると、ファイルの変更について現在のプロジェクトの監視が開始されます。設定が完了すると、次の操作を使用してウォッチ モードを構成できます。", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "型 '{0}' is missing in type '{1}' のインデックス シグネチャがありません。", - "Index_signature_in_type_0_only_permits_reading_2542": "型 '{0}' のインデックス シグネチャは、読み取りのみを許可します。", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "マージされた宣言 '{0}' の個々の宣言はすべてエクスポートされるか、すべてローカルであるかのどちらかである必要があります。", - "Infer_all_types_from_usage_95023": "使用法からすべての型を推論します", - "Infer_function_return_type_95148": "関数の戻り値の型を推論します", - "Infer_parameter_types_from_usage_95012": "使用状況からパラメーターの型を推論する", - "Infer_this_type_of_0_from_usage_95080": "使い方から '{0}' の 'this' 型を推論する", - "Infer_type_of_0_from_usage_95011": "使用状況から '{0}' の型を推論する", - "Initialize_property_0_in_the_constructor_90020": "コンストラクターのプロパティ '{0}' を初期化する", - "Initialize_static_property_0_90021": "静的プロパティ '{0}' を初期化する", - "Initializer_for_property_0_2811": "プロパティ ' {0} ' の初期化子。", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "インスタンス メンバー変数 '{0}' の初期化子はコンストラクターで宣言された識別子 '{1}' を参照できません。", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "初期化子にこのバインド要素の値が提示されていません。またバインド要素に既定値がありません。", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "初期化子は環境コンテキストでは使用できません。", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "TypeScript プロジェクトを初期化して、tsconfig.json ファイルを作成します。", - "Insert_command_line_options_and_files_from_a_file_6030": "コマンド ライン オプションとファイルをファイルから挿入します。", - "Install_0_95014": "'{0}' のインストール", - "Install_all_missing_types_packages_95033": "不足しているすべての型のパッケージをインストールします", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "インターフェイス '{0}' で型 '{1}' と型 '{2}' を同時には拡張できません。", - "Interface_0_incorrectly_extends_interface_1_2430": "インターフェイス '{0}' はインターフェイス '{1}' を正しく拡張していません。", - "Interface_declaration_cannot_have_implements_clause_1176": "インターフェイス宣言に 'implements' 句を指定することはできません。", - "Interface_must_be_given_a_name_1438": "インターフェイスに名前を指定する必要があります。", - "Interface_name_cannot_be_0_2427": "インターフェイス名を '{0}' にすることはできません。", - "Interop_Constraints_6252": "制約の相互運用", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "'undefined' を追加するのではなく、省略可能なプロパティ型を記述済みとして解釈します。", - "Invalid_character_1127": "無効な文字です。", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "無効なインポート指定子 '{0}' には解決策がありません。", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "拡張のモジュール名が無効です。モジュール '{0}' は '{1}' の型指定のないモジュールに解決されるため、拡張されません。", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "拡張のモジュール名が無効です。モジュール '{0}' が見つかりません。", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "新しい式の省略可能なチェーンが無効です。'{0}()' の呼び出しを意図していましたか?", - "Invalid_reference_directive_syntax_1084": "無効な 'reference' ディレクティブ構文です。", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}' の使用が無効です。クラスの静的ブロック内では使用できません。", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}' の使用方法が無効です。モジュールは自動的に厳格モードになります。", - "Invalid_use_of_0_in_strict_mode_1100": "厳格モードでは '{0}' の使用は無効です。", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory' の値が無効です。'{0}' が有効な識別子または修飾名ではありません。", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory' の値が無効です。'{0}' は有効な識別子でも修飾名でもありません。", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace' の値が無効です。'{0}' は有効な識別子ではありません。", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "これら 2 つのテンプレート式を区切るコンマが不足している可能性があります。タグ付きテンプレート式を形成しており、呼び出すことができません。", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "その要素の型 '{0}' は有効な JSX 要素ではありません。", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "そのインスタンスの型 '{0}' は、有効な JSX 要素ではありません。", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "その戻り値の型 '{0}' は、有効な JSX 要素ではありません。", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}' が 'extends {2}' 句と一致しません。", - "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc '@{0}' はクラスにアタッチされていません。", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' は、シグネチャの最後のパラメーターにのみ使用できます。", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' タグの名前は '{0}' ですが、その名前のパラメーターはありません。", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' タグに名前 '{0}' が指定されていますが、その名前のパラメーターはありません。配列型があった場合は、'arguments' と一致したはずです。", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' タグには、型の注釈を指定するか、後に '@property' タグや '@member' タグを付ける必要があります。", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc の種類は、ドキュメント コメント内でのみ使用できます。", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc の種類は TypeScript の種類に移行される可能性があります。", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX 属性は、空ではない '式' にのみ割り当てる必要があります。", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "JSX 要素 '{0}' には対応する終了タグがありません。", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "JSX 要素クラスは '{0}' プロパティを含まないため、属性をサポートしません。", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "インターフェイス 'JSX.{0}' が存在しないため、暗黙的に JSX 要素の型は 'any' になります。", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "グローバル型 'JSX.Element' が存在しないため、JSX 要素は暗黙的に型 'any' になります。", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "JSX 要素型 '{0}' にはコンストラクトも呼び出しシグネチャも含まれていません。", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "JSX 要素に同じ名前の複数の属性を指定することはできません。", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "JSX 式では、コンマ演算子を使用できません。配列を作成するつもりでしたか?", - "JSX_expressions_must_have_one_parent_element_2657": "JSX 式には 1 つの親要素が必要です。", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "JSX フラグメントには対応する終了タグがありません。", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "JSX プロパティ アクセス式に JSX 名前空間の名前を含めることはできません", - "JSX_spread_child_must_be_an_array_type_2609": "JSX スプレッドの子は、配列型でなければなりません。", - "JavaScript_Support_6247": "JavaScript サポート", - "Jump_target_cannot_cross_function_boundary_1107": "ジャンプ先は関数の境界を越えることはできません。", - "KIND_6034": "種類", - "Keywords_cannot_contain_escape_characters_1260": "キーワードにエスケープ文字を含めることはできません。", - "LOCATION_6037": "場所", - "Language_and_Environment_6254": "言語と環境", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "コンマ演算子の左側が使用されていないため、副作用はありません。", - "Library_0_specified_in_compilerOptions_1422": "compilerOptions でライブラリ '{0}' が指定されました", - "Library_referenced_via_0_from_file_1_1405": "ファイル '{1}' から '{0}' を介してライブラリが参照されました", - "Line_break_not_permitted_here_1142": "ここで改行することはできません。", - "Line_terminator_not_permitted_before_arrow_1200": "行の終端記号をアローの前で使用することはできません。", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "モジュールを解決するときに検索するファイル名サフィックスのリスト。", - "List_of_folders_to_include_type_definitions_from_6161": "含める型定義の元のフォルダーの一覧。", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "結合されたコンテンツがランタイムでのプロジェクトの構成を表すルート フォルダーの一覧。", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "ルート ディレクトリ '{1}' から '{0}' を読み込んでいます。候補の場所は '{2}' です。", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "'node_modules' フォルダーからモジュール '{0}' を読み込んでいます。対象のファイルの種類は '{1}' です。", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "ファイル / フォルダーとしてモジュールを読み込んでいます。候補のモジュールの場所は '{0}'、対象のファイルの種類は '{1}' です。", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "ロケールは または - の形式で指定する必要があります (例: '{0}'、'{1}')。", - "Log_paths_used_during_the_moduleResolution_process_6706": "'moduleResolution' の処理中に使用されたログ パス。", - "Longest_matching_prefix_for_0_is_1_6108": "'{0}' の一致する最長プレフィックスは '{1}' です。", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "'node_modules' フォルダーを検索しています。最初の場所は '{0}' です。", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "すべての 'super()' 呼び出しをそのコンストラクターの最初のステートメントにします", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof により、文字列、数字、記号の代わりに、文字列のみが返されるようにします。レガシ オプションです。", - "Make_super_call_the_first_statement_in_the_constructor_90002": "'super()' 呼び出しをコンストラクター内の最初のステートメントにする", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "マップされたオブジェクト型のテンプレートの型は暗黙的に 'any' になります。", - "Matched_0_condition_1_6403": "'{0}' 条件 '{1}' と一致しました。", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "既定で一致するインクルード パターン '**/*'", - "Matched_by_include_pattern_0_in_1_1407": "'{1}' のインクルード パターン '{0}' に一致しています", - "Member_0_implicitly_has_an_1_type_7008": "メンバー '{0}' の型は暗黙的に '{1}' になります。", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "メンバー '{0}' の型は暗黙的に '{1}' ですが、使い方からより良い型を推論する場合があります。", - "Merge_conflict_marker_encountered_1185": "マージ競合マーカーが検出されました。", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "マージされた宣言 '{0}' に既定のエクスポート宣言を含めることはできません。代わりに、'export default {0}' 宣言を別個に追加することを検討してください。", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "メタプロパティ '{0}' は、関数の宣言の本文、関数の式、またはコンストラクターでのみ許可されています。", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "メソッド '{0}' は abstract に指定されているため、実装を含めることができません。", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "エクスポートされたインターフェイスのメソッド '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "エクスポートされたインターフェイスのメソッド '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Method_not_implemented_95158": "メソッドが実装されていません。", - "Modifiers_cannot_appear_here_1184": "ここで修飾子を使用することはできません。", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "モジュール '{0}' は、'{1}' フラグを使用して既定でのみインポートできます", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "モジュール '{0}' はこのコンストラクトではインポートできません。指定子は ES モジュールに解決されるだけであるため、'require' でインポートすることはできません。代わりに ECMAScript インポートを使用してください。", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "モジュール '{0}' は '{1}' をローカルで宣言していますが、これは '{2}' としてエクスポートされています。", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "モジュール '{0}' は '{1}' をローカルで宣言していますが、これはエクスポートされていません。", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "モジュール '{0}' は型を参照していませんが、ここでは型として使用されています。'typeof import('{0}')' を意図していましたか?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "モジュール '{0}' は値を参照していませんが、ここでは値として使用されています。", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "モジュール {0} は既に '{1}' という名前のメンバーをエクスポートしています。あいまいさを解決するため、明示的にもう一度エクスポートすることを検討してください。", - "Module_0_has_no_default_export_1192": "モジュール '{0}' に既定エクスポートがありません。", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "モジュール '{0}' には既定のエクスポートがありません。'import { {1} } from {0}' を使用するつもりでしたか?", - "Module_0_has_no_exported_member_1_2305": "モジュール '{0}' にエクスポートされたメンバー '{1}' がありません。", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "モジュール '{0}' にはエクスポートされたメンバー '{1}' がありません。'import {1} from {0}' を使用するつもりでしたか?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "モジュール '{0}' は同じ名前のローカル宣言によって非表示になっています。", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "モジュール '{0}' には 'export =' が使用されているため、'export *' は併用できません。", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "このファイルが変更されなかったため、モジュール '{0}' は '{1}' で宣言されたアンビエント モジュールとして解決されました。", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "モジュール '{0}' は、ファイル '{1}' のローカルで宣言されたアンビエント モジュールとして解決されました。", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "モジュール '{0}' は '{1}' に解決されましたが、'--jsx' が設定されていません。", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "モジュール '{0}' は '{1}' に解決されましたが、'--resolveJsonModule' が使用されていません。", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "モジュール宣言名で使用できるのは、' または \"引用符で囲まれた文字列のみです。", - "Module_name_0_matched_pattern_1_6092": "モジュール名 '{0}'、照合されたパターン '{1}'。", - "Module_name_0_was_not_resolved_6090": "======== モジュール名 '{0}' が解決されませんでした。========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== モジュール名 '{0}' が正常に '{1}' に解決されました。========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== モジュール名 '{0}' が正常に '{1}' に解決されました (パッケージ ID '{2}')。========", - "Module_resolution_kind_is_not_specified_using_0_6088": "モジュール解決の種類が '{0}' を使用して指定されていません。", - "Module_resolution_using_rootDirs_has_failed_6111": "'rootDirs' を使用したモジュール解決が失敗しました。", - "Modules_6244": "モジュール", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "ラベル付きのタプル要素の修飾子をラベルに移動する", - "Move_to_a_new_file_95049": "新しいファイルへ移動します", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "複数の連続した数値区切り記号を指定することはできません。", - "Multiple_constructor_implementations_are_not_allowed_2392": "コンストラクターを複数実装することはできません。", - "NEWLINE_6061": "改行", - "Name_is_not_valid_95136": "名前が無効です", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "'{1}' 型および '{2}' 型の名前付きプロパティ '{0}' が一致しません。", - "Namespace_0_has_no_exported_member_1_2694": "名前空間 '{0}' にエクスポートされたメンバー '{1}' がありません。", - "Namespace_must_be_given_a_name_1437": "名前空間に名前を指定する必要があります。", - "Namespace_name_cannot_be_0_2819": "名前空間名を '{0}' にすることはできません。", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "指定した数の型引数を持つ基底コンストラクターは存在しません。", - "No_constituent_of_type_0_is_callable_2755": "型 '{0}' の構成要素は呼び出し可能ではありません。", - "No_constituent_of_type_0_is_constructable_2759": "型 '{0}' の構成要素はコンストラクト可能ではありません。", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "型 '{0}' のパラメーターを持つインデックス シグネチャが型 '{1}' に見つかりませんでした。", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "構成ファイル '{0}' で入力が見つかりませんでした。指定された 'include' パスは '{1}' で、'exclude' パスは '{2}' でした。", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "サポートされていません。初期のバージョンの場合は、ファイルを読み取るためにテキストのエンコードを手動で設定してください。", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "{0} 引数を予期するオーバーロードはありませんが、{1} または {2} 引数のいずれかを予期するオーバーロードは存在します。", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "{0} 型の引数を予期するオーバーロードはありませんが、{1} または {2} 型の引数のいずれかを予期するオーバーロードは存在します。", - "No_overload_matches_this_call_2769": "この呼び出しに一致するオーバーロードはありません。", - "No_type_could_be_extracted_from_this_type_node_95134": "この型ノードからは型を抽出できませんでした", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "短縮形のプロパティ '{0}' のスコープには値がありません。値を宣言するか、または初期化子を指定してください。", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象クラス '{0}' はクラス '{2}' からの継承抽象メンバー '{1}' を実装しません。", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "非抽象クラスの式はクラス '{1}' からの継承抽象メンバー '{0}' を実装しません。", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "non-null アサーションは、TypeScript ファイルでのみ使用できます。", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "'baseUrl' が設定されていない場合、非相対パスは許可されません。先頭に './' が使用されていることをご確認ください。", - "Non_simple_parameter_declared_here_1348": "ここでは複雑なパラメーターが宣言されています。", - "Not_all_code_paths_return_a_value_7030": "一部のコード パスは値を返しません。", - "Not_all_constituents_of_type_0_are_callable_2756": "型 '{0}' のすべての構成要素が呼び出し可能なわけではありません。", - "Not_all_constituents_of_type_0_are_constructable_2760": "型 '{0}' のすべての構成要素がコンストラクト可能なわけではありません。", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "絶対値が 2^53 以上の数値リテラルは大きすぎるため、整数として正確に表現できません。", - "Numeric_separators_are_not_allowed_here_6188": "数値の区切り記号は、ここでは使用できません。", - "Object_is_of_type_unknown_2571": "オブジェクト型は 'unknown' です。", - "Object_is_possibly_null_2531": "オブジェクトは 'null' である可能性があります。", - "Object_is_possibly_null_or_undefined_2533": "オブジェクトは 'null' か 'undefined' である可能性があります。", - "Object_is_possibly_undefined_2532": "オブジェクトは 'undefined' である可能性があります。", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "オブジェクト リテラルは既知のプロパティのみ指定できます。'{0}' は型 '{1}' に存在しません。", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "オブジェクト リテラルで指定できるのは既知のプロパティのみですが、'{0}' は型 '{1}' に存在しません。書こうとしたのは '{2}' ですか?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "オブジェクト リテラルのプロパティ '{0}' の型は暗黙的に '{1}' になります。", - "Octal_digit_expected_1178": "8 進の数字が必要です。", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "8 進数のリテラル型には、ES2015 構文を使用する必要があります。構文 '{0}' を使用してください。", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "8 進数のリテラルは、列挙型メンバーの初期化子では許可されていません。構文 '{0}' を使用してください。", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "厳格モードでは Octal リテラルは使用できません。", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "ECMAScript 5 以降を対象にする場合、8 進数のリテラルは使用できません。構文 '{0}' を使用してください。", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' ステートメントで使用できる変数宣言は 1 つのみです。", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' ステートメントで使用できる変数宣言は 1 つのみです。", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "'new' キーワードを指定して呼び出せるのは void 関数のみです。", - "Only_ambient_modules_can_use_quoted_names_1035": "引用符付きの名前を使用できるのはアンビエント モジュールのみです。", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "--{0} と共にサポートされるのは 'amd' モジュールと 'system' モジュールのみです。", - "Only_emit_d_ts_declaration_files_6014": "'.d.ts' 宣言ファイルのみを生成します。", - "Only_named_exports_may_use_export_type_1383": "名前付きエクスポートでのみ、'export type' を使用できます。", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "計算されたメンバーを使用できるのは数値列挙型のみですが、この式には '{0}' 型があります。網羅性チェックが不要な場合は、代わりにオブジェクト リテラルを使用することをご検討ください。", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "出力の d.ts ファイルのみで、JavaScript ファイルは対象ではありません。", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "'super' キーワードを使用してアクセスできるのは、基底クラスのパブリック メソッドと保護されたメソッドのみです。", - "Operator_0_cannot_be_applied_to_type_1_2736": "演算子 '{0}' は型 '{1}' に適用できません。", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "演算子 '{0}' を型 '{1}' および '{2}' に適用することはできません。", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "編集時に複数プロジェクト参照のチェックからプロジェクトをオプトアウトします。", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "オプション '{0}' は、'tsconfig.json' ファイルで指定することか、コマンド ラインで 'false' または 'null' に設定することしかできません。", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "オプション '{0}' は、'tsconfig.json' ファイルで指定することか、コマンド ラインで 'null' に設定することしかできません。", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "オプション '{0} を使用できるのは、オプション '--inlineSourceMap' またはオプション '--sourceMap' のいずれかを指定した場合のみです。", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "オプション 'jsx' が '{1}' の場合、オプション '{0}' を指定することはできません。", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "オプション 'target' が 'ES3' の場合、オプション '{0}' を指定することはできません。", - "Option_0_cannot_be_specified_with_option_1_5053": "オプション '{0}' をオプション '{1}' とともに指定することはできません。", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "オプション '{1}' を指定せずに、オプション '{0}' を指定することはできません。", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "オプション '{1}' またはオプション '{2}' を指定せずに、オプション '{0}' を指定することはできません。", - "Option_build_must_be_the_first_command_line_argument_6369": "オプション '--build' は最初のコマンド ライン引数である必要があります。", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "オプション '--incremental' は、tsconfig を使用して指定して単一ファイルに出力するか、オプション '--tsBuildInfoFile' が指定された場合にのみ指定することができます。", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "オプション 'isolatedModules' は、オプション '--module' が指定されているか、オプション 'target' が 'ES2015' 以上であるかのいずれかの場合でのみ使用できます。", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules' が有効になっているときは、オプション 'preserveConstEnums' を無効にできません。", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "オプションの \"preserveValueImports\" は \"module\" が \"es2015\" か、またはそれ以降に設定されている時のみ、使用することができます。", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "オプション 'project' をコマンド ライン上でソース ファイルと一緒に指定することはできません。", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "オプション '--resolveJsonModule' は、モジュール コードの生成が 'commonjs'、'amd'、'es2015'、'esNext' である場合にのみ指定できます。", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' モジュールの解決方法を使用せずにオプション '--resolveJsonModule' を指定することはできません。", - "Options_0_and_1_cannot_be_combined_6370": "オプション '{0}' と '{1}' を組み合わせることはできません。", - "Options_Colon_6027": "オプション:", - "Output_Formatting_6256": "出力データ形式", - "Output_compiler_performance_information_after_building_6615": "ビルド後にコンパイラのパフォーマンス情報を出力します。", - "Output_directory_for_generated_declaration_files_6166": "生成された宣言ファイルの出力ディレクトリ。", - "Output_file_0_from_project_1_does_not_exist_6309": "プロジェクト '{1}' からの出力ファイル '{0}' がありません", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "出力ファイル '{0}' はソース ファイル '{1}' からビルドされていません。", - "Output_from_referenced_project_0_included_because_1_specified_1411": "'{1}' が指定されたため、参照先プロジェクト '{0}' から出力がインクルードされました", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "'--module' が 'none' として指定されたため、参照先プロジェクト '{0}' から出力がインクルードされました", - "Output_more_detailed_compiler_performance_information_after_building_6632": "ビルド後により詳しいコンパイラのパフォーマンス情報を出力します。", - "Overload_0_of_1_2_gave_the_following_error_2772": "{1} 中 {0} のオーバーロード, '{2}' により、次のエラーが発生しました。", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "オーバーロードのシグネチャはすべてが抽象または非抽象である必要があります。", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "オーバーロードのシグネチャは、すべてアンビエントであるか、すべてアンビエントでないかのどちらかである必要があります。", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "オーバーロードのシグネチャはすべてがエクスポート済みであるか、またはエクスポート済みでない必要があります。", - "Overload_signatures_must_all_be_optional_or_required_2386": "オーバーロードのシグネチャは、すべて省略可能であるか、すべて必須であるかのどちらかである必要があります。", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "オーバーロードのシグネチャはすべて、public、private、または protected でなければなりません。", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "パラメーター '{0}' はその後で宣言された識別子 '{1}' を参照できません。", - "Parameter_0_cannot_reference_itself_2372": "パラメーター '{0}' は、それ自体を参照できません。", - "Parameter_0_implicitly_has_an_1_type_7006": "パラメーター '{0}' の型は暗黙的に '{1}' になります。", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "パラメーター '{0}' の型は暗黙的に '{1}' になっていますが、使い方からより良い型を推論できます。", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "パラメーター '{0}' がパラメーター '{1}' と同じ位置にありません。", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "アクセサーのパラメーター '{0}' が外部モジュール '{2}' からの名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "アクセサーのパラメーター '{0}' が、プライベート モジュール '{2}' からの名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "アクセサーのパラメーター '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "エクスポートされたインターフェイスの呼び出しシグネチャのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "エクスポートされたインターフェイスの呼び出しシグネチャのパラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "エクスポートされたクラスのコンストラクターのパラメーター '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "エクスポートされたクラスのコンストラクターのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "エクスポートされたクラスのコンストラクターのパラメーター '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "エクスポートされたインターフェイスのコンストラクター シグネチャのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "エクスポートされたインターフェイスのコンストラクター シグネチャのパラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "エクスポートされた関数のパラメーター '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "エクスポートされた関数のパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "エクスポートされた関数のパラメーター '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "エクスポートされたインターフェイスのインデックス シグネチャのパラメーター '{0}' で、プライベート モジュール '{2}' の名前 '{1}' が指定されているか使用されています。", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "エクスポートされたインターフェイスのインデックス シグネチャのパラメーター '{0}' で、プライベート名 '{1}' が指定されているか使用されています。", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "エクスポートされたインターフェイスのメソッドのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "エクスポートされたインターフェイスのメソッドのパラメーター '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "エクスポートされたクラスのパブリック メソッドのパラメーター '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "エクスポートされたクラスのパブリック メソッドのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "エクスポートされたクラスのパブリック メソッドのパラメーター '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "エクスポートされたクラスのパブリック静的メソッドのパラメーター '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "エクスポートされたクラスのパブリック静的メソッドのパラメーター '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "エクスポートされたクラスのパブリック静的メソッドのパラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Parameter_cannot_have_question_mark_and_initializer_1015": "パラメーターに疑問符および初期化子を指定することはできません。", - "Parameter_declaration_expected_1138": "パラメーター宣言が必要です。", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "パラメーターに名前はありますが、型がありません。'{0}: {1}' を意図していましたか?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "パラメーター修飾子は TypeScript ファイルでのみ使用できます。", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "エクスポートされたクラスのパブリック セッター '{0}' のパラメーター型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "エクスポートされたクラスのパブリック セッター '{0}' のパラメーター型が、プライベート名 '{1}' を持っているか、使用しています。", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "エクスポートされたクラスのパブリック静的セッター '{0}' のパラメーター型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "エクスポートされたクラスのパブリック静的セッター '{0}' のパラメーター型が、プライベート名 '{1}' を持っているか、使用しています。", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "厳格モードで解析してソース ファイルごとに \"use strict\" を生成します。", - "Part_of_files_list_in_tsconfig_json_1409": "tsconfig.json の 'files' リストの一部", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "パターン '{0}' に使用できる '*' 文字は最大で 1 つです。", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "'--diagnostics' または '--extendedDiagnostics' のパフォーマンスのタイミングは、このセッションでは使用できません。Web パフォーマンス API のネイティブ実装が見つかりませんでした。", - "Platform_specific_6912": "プラットフォーム固有", - "Prefix_0_with_an_underscore_90025": "アンダースコアを含むプレフィックス '{0}'", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "すべての正しくないプロパティ宣言の前に 'declare' を付ける", - "Prefix_all_unused_declarations_with_where_possible_95025": "可能な場合は、使用されていないすべての宣言にプレフィックスとして '_' を付けます", - "Prefix_with_declare_95094": "'declare' を前に付ける", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "さもなければ削除されてしまう JavaScript のアウトプット中の使われていないインポートされた値を保持します。", - "Print_all_of_the_files_read_during_the_compilation_6653": "コンパイル時に読み取られたすべてのファイルを出力します。", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "コンパイル時に読み取られたファイルを、それが含まれる理由と共に出力します。", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "ファイルの名前と、それらがコンパイルに含まれている理由を書き出します。", - "Print_names_of_files_part_of_the_compilation_6155": "コンパイルの一環としてファイルの名前を書き出します。", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "コンパイルの一部であるファイルの名前を出力してから、処理を停止します。", - "Print_names_of_generated_files_part_of_the_compilation_6154": "コンパイルの一環として生成されたファイル名を書き出します。", - "Print_the_compiler_s_version_6019": "コンパイラのバージョンを表示します。", - "Print_the_final_configuration_instead_of_building_1350": "ビルドを実行するのではなく、最終的な構成を出力します。", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "コンパイル後に生成されたファイルの名前を出力します。", - "Print_this_message_6017": "このメッセージを表示します。", - "Private_accessor_was_defined_without_a_getter_2806": "ゲッターなしでプライベート アクセサーが定義されました。", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "変数宣言では、private 識別子は許可されていません。", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "private 識別子は、クラス本体の外では許可されていません。", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "プライベート識別子はクラス本体でのみ許可され、クラス メンバー宣言、プロパティ アクセス、または 'in' 式の左側でのみ使用できます", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "private 識別子は ECMAScript 2015 以上をターゲットにする場合にのみ使用できます。", - "Private_identifiers_cannot_be_used_as_parameters_18009": "private 識別子はパラメーターとして使用できません。", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "private または protected メンバー '{0}' には、型パラメーターではアクセスできません。", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "プロジェクト '{0}' はその依存関係 '{1}' にエラーがあるためビルドできません", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "依存関係 '{1}' がビルドされていないため、プロジェクト '{0}' はビルドできません", - "Project_0_is_being_forcibly_rebuilt_6388": "プロジェクト '{0}' が強制的にリビルドされています", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "buildinfo ファイルの '{1}' により、一部の変更が生成されなかったことが示されているため、プロジェクトの '{0}' は最新ではありません", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "プロジェクト '{0}' はその依存関係 '{1}' が古いため最新の状態ではありません", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "プロジェクト '{0}' は出力 '{1}' が入力 '{2}' より古いため最新の状態ではありません", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "プロジェクト '{0}' は出力ファイル '{1}' が存在しないため最新の状態ではありません", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "プロジェクト '{0}' の出力が現在のバージョン '{2}' と異なるバージョン '{1}' で生成されているため、このプロジェクトは最新の状態ではありません", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "依存関係 '{1}' の出力が変更されているため、プロジェクト '{0}' は最新の状態ではありません", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "ファイル '{1}' の読み取り中にエラーが発生したため、プロジェクト '{0}' は最新ではありません", - "Project_0_is_up_to_date_6361": "プロジェクト '{0}' は最新の状態です", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "プロジェクト '{0}' は最新の入力 '{1}' が出力 '{2}' より古いため最新の状態です", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "プロジェクト '{0}' は最新ですが、入力ファイルよりも古い出力ファイルのタイムスタンプを更新する必要があります", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "プロジェクト '{0}' はその依存関係からの .d.ts ファイルで最新の状態です", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "プロジェクト参照が円グラフを形成できません。循環が検出されました: {0}", - "Projects_6255": "プロジェクト", - "Projects_in_this_build_Colon_0_6355": "このビルドのプロジェクト: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "'accessor' 修飾子を持つプロパティは、ECMAScript 2015 以降を対象とする場合にのみ使用できます。", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "メソッド '{0}' は abstract に指定されているため、初期化子を含めることができません。", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "プロパティ '{0}' はインデックス シグネチャに基づいているため、['{0}'] を使用してアクセスする必要があります。", - "Property_0_does_not_exist_on_type_1_2339": "プロパティ '{0}' は型 '{1}' に存在しません。", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "プロパティ '{0}' は型 '{1}' に存在していません。'{2}' ですか?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "プロパティ '{0}' は型 '{1}' には存在しません。代わりに静的メンバー '{2}' にアクセスしようとしていましたか?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "プロパティ '{0}' が型 '{1}' に存在しません。ターゲット ライブラリを変更する必要がありますか? 'lib' コンパイラ オプションを '{2}' 以降に変更してみてください。", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "プロパティ ' {0} ' は型 ' {1} ' に存在しません。' lib ' コンパイラ オプションを ' dom ' を含むように変更してみてください。", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "プロパティ '{0}' に初期化子がなく、クラスの静的ブロックで明確に割り当てられていません。", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "プロパティ '{0}' に初期化子がなく、コンストラクターで明確に割り当てられていません。", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "プロパティ '{0}' には型 'any' が暗黙的に設定されています。get アクセサーには戻り値の型の注釈がないためです。", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "プロパティ '{0}' には型 'any' が暗黙的に設定されています。set アクセサーにはパラメーター型の注釈がないためです。", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "プロパティ '{0}' の型は暗黙的に 'any' ですが、その get アクセサーのために、使い方からより良い型を推論する場合があります。", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "プロパティ '{0}' の型は暗黙的に 'any' になっていますが、その set アクセサーのより良い型を使い方から推論できます。", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "型 '{1}' のプロパティ '{0}' を基本データ型 '{2}' の同じプロパティに割り当てることはできません。", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "型 '{1}' のプロパティ '{0}' を型 '{2}' に割り当てることはできません。", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "型 '{1}' のプロパティ '{0}' は、型 '{2}' 内からアクセスできない別のメンバーを参照しています。", - "Property_0_is_declared_but_its_value_is_never_read_6138": "プロパティ '{0}' が宣言されていますが、その値が読み取られることはありません。", - "Property_0_is_incompatible_with_index_signature_2530": "プロパティ '{0}' はインデックス シグネチャと互換性がありません。", - "Property_0_is_missing_in_type_1_2324": "型 '{1}' にプロパティ '{0}' がありません。", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "プロパティ '{0}' は型 '{1}' にありませんが、型 '{2}' では必須です。", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "プロパティ '{0}' には private 識別子が指定されているため、クラス '{1}' の外部ではアクセスできません。", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "プロパティ '{0}' は型 '{1}' では省略可能ですが、型 '{2}' では必須です。", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "プロパティ '{0}' はプライベートで、クラス '{1}' 内でのみアクセスできます。", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "プロパティ '{0}' は型 '{1}' ではプライベートですが、型 '{2}' ではプライベートではありません。", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "プロパティ '{0}' は保護されており、クラス '{1}' のインスタンスを通じてのみアクセスできます。これは、クラス '{2}' のインスタンスです。", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "プロパティ '{0}' は保護されているため、クラス '{1}' とそのサブクラス内でのみアクセスできます。", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "プロパティ '{0}' は保護されていますが、型 '{1}' は '{2}' から派生したクラスではありません。", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "プロパティ '{0}' は型 '{1}' では保護されていますが、型 '{2}' ではパブリックです。", - "Property_0_is_used_before_being_assigned_2565": "プロパティ '{0}' は割り当てられる前に使用されています。", - "Property_0_is_used_before_its_initialization_2729": "プロパティ '{0}' が初期化前に使用されています。", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "プロパティ '{0}' は型 '{1}' に存在していない可能性があります。'{2}' ですか?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX のスプレッド属性のプロパティ '{0}' をターゲット プロパティに割り当てることはできません。", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "エクスポートされたクラスの式のプロパティ '{0}' が private または protected でない可能性があります。", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "エクスポートされたインターフェイスのプロパティ '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "エクスポートされたインターフェイスのプロパティ '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "型 '{1}' のプロパティ '{0}' は'{2}' インデックス型 '{3}' に割り当てることはできません。", - "Property_0_was_also_declared_here_2733": "ここではプロパティ '{0}' も宣言されています。", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "プロパティ '{0}' は、'{1}' の基底プロパティを上書きします。これが意図的である場合は初期化子を追加してください。そうでなければ、'declare' 修飾子を追加するか、冗長な宣言を削除してください。", - "Property_assignment_expected_1136": "プロパティの代入が必要です。", - "Property_destructuring_pattern_expected_1180": "プロパティの非構造化パターンが必要です。", - "Property_or_signature_expected_1131": "プロパティまたはシグネチャが必要です。", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "プロパティ値には、文字列リテラル、数値リテラル、'true'、'false'、'null'、オブジェクト リテラルまたは配列リテラルのみ使用できます。", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "'for-of' の iterable、spread、'ES5' や 'ES3' をターゲットとする場合は destructuring に対してフル サポートを提供します。", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "エクスポートされたクラスのパブリック メソッド '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "エクスポートされたクラスのパブリック メソッド '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "エクスポートされたクラスのパブリック メソッド '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "エクスポートされたクラスのパブリック プロパティ '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "エクスポートされたクラスのパブリック プロパティ '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "エクスポートされたクラスのパブリック プロパティ '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "エクスポートされたクラスのパブリック静的メソッド '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "エクスポートされたクラスのパブリック静的メソッド '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "エクスポートされたクラスのパブリック静的メソッド '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "エクスポートされたクラスのパブリック静的プロパティ '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "エクスポートされたクラスのパブリック静的プロパティ '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "エクスポートされたクラスのパブリック静的プロパティ '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "先頭に '@param {object} {1}' がない場合、修飾名 '{0}' は許可されません。", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "関数パラメーターが読み取られていないときに、エラーを発生させます。", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "暗黙的な 'any' 型を含む式と宣言に関するエラーを発生させます。", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "暗黙的な 'any' 型を持つ 'this' 式でエラーが発生します。", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "'--IsolatedModules' フラグが指定されている場合に型を再エクスポートするには、 'export type' を使用する必要があります。", - "Redirect_output_structure_to_the_directory_6006": "ディレクトリへ出力構造をリダイレクトします。", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "TypeScript によって自動的に読み込まれるプロジェクトの数を減らします。", - "Referenced_project_0_may_not_disable_emit_6310": "参照されたプロジェクト '{0}' は、生成を無効にできません。", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "参照されているプロジェクト '{0}' には、設定 \"composite\": true が必要です。", - "Referenced_via_0_from_file_1_1400": "ファイル '{1}' から '{0}' を介して参照されています", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' の場合、EcmaScript インポートに明示的なファイル拡張子が必要です。インポート パスに拡張機能を追加することを検討してください。", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' の場合、EcmaScript インポートに明示的なファイル拡張子が必要です。'{0}' ということですか?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "ウォッチ プロセスからディレクトリの一覧を削除します。", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "ウォッチ モードの処理からファイルの一覧を削除します。", - "Remove_all_unnecessary_override_modifiers_95163": "不要な 'override' 修飾子をすべて削除", - "Remove_all_unnecessary_uses_of_await_95087": "不要な 'await' の使用をすべて削除する", - "Remove_all_unreachable_code_95051": "到達できないコードをすべて削除します", - "Remove_all_unused_labels_95054": "すべての未使用のラベルを削除します", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "関連する問題のあるすべてのアロー関数本体から中かっこを削除します", - "Remove_braces_from_arrow_function_95060": "アロー関数から中かっこを削除します", - "Remove_braces_from_arrow_function_body_95112": "アロー関数本体から中かっこを削除します", - "Remove_import_from_0_90005": "'{0}' からのインポートを削除", - "Remove_override_modifier_95161": "'override ' 修飾子の削除", - "Remove_parentheses_95126": "かっこの削除", - "Remove_template_tag_90011": "テンプレート タグを削除する", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "TypeScript 言語サーバーの JavaScript ファイルのソース コードの合計サイズについて 20 MB の上限を削除します。", - "Remove_type_from_import_declaration_from_0_90055": "\"{0}\" からインポート宣言から `type` を削除します", - "Remove_type_from_import_of_0_from_1_90056": "\"{1}\" から `{0}` のインポートから `type` を削除します", - "Remove_type_parameters_90012": "型パラメーターを削除する", - "Remove_unnecessary_await_95086": "不要な 'await' を削除する", - "Remove_unreachable_code_95050": "到達できないコードを削除します", - "Remove_unused_declaration_for_Colon_0_90004": "'{0}' に対する使用されていない宣言を削除する", - "Remove_unused_declarations_for_Colon_0_90041": "'{0}' に対する使用されていない宣言を削除してください", - "Remove_unused_destructuring_declaration_90039": "使用されていない非構造化宣言を削除してください", - "Remove_unused_label_95053": "未使用のラベルを削除します", - "Remove_variable_statement_90010": "変数のステートメントを削除します", - "Rename_param_tag_name_0_to_1_95173": "'@param' タグ名の名前を '{0}' から '{1}' に変更します", - "Replace_0_with_Promise_1_90036": "'{0}' を 'Promise<{1}>' に置き換える", - "Replace_all_unused_infer_with_unknown_90031": "未使用の 'infer' をすべて 'unknown' に置き換える", - "Replace_import_with_0_95015": "インポートを '{0}' に置換します。", - "Replace_infer_0_with_unknown_90030": "'infer {0}' を 'unknown' に置き換える", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "関数の一部のコード パスが値を返さない場合にエラーを報告します。", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "switch ステートメントに case のフォールスルーがある場合にエラーを報告します。", - "Report_errors_in_js_files_8019": ".js ファイルのエラーを報告します。", - "Report_errors_on_unused_locals_6134": "使用されていないローカルに関するエラーを報告します。", - "Report_errors_on_unused_parameters_6135": "使用されていないパラメーターに関するエラーを報告します。", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "要素アクセスを使用するには、インデックス シグネチャからの宣言されていないプロパティが必要です。", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必須の型パラメーターの後に、オプションの型パラメーターを続けることはできません。", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "モジュール '{0}' の解決が場所 '{1}' のキャッシュに見つかりました。", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "種類参照指令 '{0}' の解決策は、場所 '{1}' のキャッシュには見つかりませんでした。", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'keyof' を文字列値のプロパティ名のみに解決します (数字または記号なし)。", - "Resolving_in_0_mode_with_conditions_1_6402": "条件 {1} を使用して {0} モードで解決しています。", - "Resolving_module_0_from_1_6086": "======== '{1}' からモジュール '{0}' を解決しています。========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "ベース URL '{1}' - '{2}' に相対するモジュール名 '{0}' を解決しています。", - "Resolving_real_path_for_0_result_1_6130": "'{0}' の実際のパスを解決しています。結果は '{1}' です。", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== ファイル '{1}' のある種類参照指令 '{0}' の解決 ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイル '{1}'、ルート ディレクトリ '{2}'。========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイル '{1}'、ルート ディレクトリは未設定。========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイルは未設定、ルート ディレクトリ '{1}'。========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイルは未設定、ルート ディレクトリは未設定。========", - "Resolving_with_primary_search_path_0_6121": "プライマリ検索パス '{0}' で解決しています。", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Rest パラメーター '{0}' の型は暗黙的に 'any[]' になります。", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "rest パラメーター '{0}' の型は暗黙的に 'any[]' 型ですが、使い方からより良い型を推論する場合があります。", - "Rest_types_may_only_be_created_from_object_types_2700": "rest 型はオブジェクトの種類からのみ作成できます。", - "Return_type_annotation_circularly_references_itself_2577": "戻り値の型の注釈は、それ自身を循環参照します。", - "Return_type_must_be_inferred_from_a_function_95149": "戻り値の型は関数から推論される必要があります", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "エクスポートされたインターフェイスの呼び出しシグネチャの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "エクスポートされたインターフェイスの呼び出しシグネチャの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "エクスポートされたインターフェイスのコンストラクター シグネチャの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "エクスポートされたインターフェイスのコンストラクター シグネチャの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "コンストラクター シグネチャの戻り値の型は、クラスのインスタンス型に割り当て可能でなければなりません。", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "エクスポートされた関数の戻り値の型が外部モジュール {1} の名前 '{0}' を持っているか使用していますが、名前を指定することはできません。", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "エクスポートされた関数の戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "エクスポートされた関数の戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "エクスポートされたインターフェイスのインデックス シグネチャの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "エクスポートされたインターフェイスのインデックス シグネチャの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "エクスポートされたインターフェイスのメソッドの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "エクスポートされたインターフェイスのメソッドの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "エクスポートされたクラスのパブリック ゲッター '{0}' の戻り値の型が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "エクスポートされたクラスのパブリック ゲッター '{0}' の戻り値の型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "エクスポートされたクラスのパブリック ゲッター '{0}' の戻り値の型が、プライベート名 '{1}' を持っているか、使用しています。", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "エクスポートされたクラスのパブリック メソッドの戻り値の型が外部モジュール {1} の名前 '{0}' を持っているか使用していますが、名前を指定することはできません。", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "エクスポートされたクラスのパブリック メソッドの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "エクスポートされたクラスのパブリック メソッドの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "エクスポートされたクラスのパブリック静的ゲッター '{0}' の戻り値の型が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "エクスポートされたクラスのパブリック静的ゲッター '{0}' の戻り値の型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "エクスポートされたクラスのパブリック静的ゲッター '{0}' の戻り値の型が、プライベート名 '{1}' を持っているか、使用しています。", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "エクスポートされたクラスのパブリック静的メソッドの戻り値の型が外部モジュール {1} の名前 '{0}' を持っているか使用していますが、名前を指定することはできません。", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "エクスポートされたクラスのパブリック静的メソッドの戻り値の型が、プライベート モジュール '{1}' の名前 '{0}' を持っているか、使用しています。", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "エクスポートされたクラスのパブリック静的メソッドの戻り値の型が、プライベート名 '{0}' を持っているか、使用しています。", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "場所 '{2}' のキャッシュにあった '{1}' からモジュール '{0}' の解決策を再利用しましたが、解決できませんでした。", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "場所 '{2}' のキャッシュにあった '{1}' からモジュール '{0}' の解決策を再利用すると、'{3}' に正常に解決されました。", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "場所 '{2}' からキャッシュにあった '{1}' からモジュール '{0}' の解決策を再利用すると、パッケージ ID '{4}' の '{3}' に正常に解決されました。", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "古いプログラムの '{1}' からモジュール '{0}' の解決策を再利用しようとしましたが、解決されませんでした。", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "古いプログラムの '{1}' からモジュール '{0}' の解決策を再利用すると、'{2}' に正常に解決されました。", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "古いプログラムの '{1}' からモジュール '{0}' の解決策を再利用すると、パッケージ ID '{3}' の '{2}' に正常に解決されました。", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "場所 '{2}' からキャッシュにあった '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用しましたが、解決できませんでした。", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "場所 '{2}' からキャッシュにあった '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用すると、'{3}' に正常に解決されました。", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "場所 '{2}' からキャッシュにあった '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用すると、パッケージ ID '{4}' の '{3}' に正常に解決されました。", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "古いプログラムの '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用しましたが、解決できませんでした。", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "古いプログラムの '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用すると、'{2}' に正常に解決されました。", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "古いプログラムの '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用すると、パッケージ ID '{3}' の '{2}' に正常に解決されました。", - "Rewrite_all_as_indexed_access_types_95034": "すべてをインデックス付きアクセス型として書き換えます", - "Rewrite_as_the_indexed_access_type_0_90026": "インデックス付きのアクセスの種類 '{0}' として書き換える", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "ルート ディレクトリを決定できません。プライマリ検索パスをスキップします。", - "Root_file_specified_for_compilation_1427": "コンパイル用に指定されたルート ファイル", - "STRATEGY_6039": "戦略", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "プロジェクトのインクリメンタル コンパイルを可能にするには、.tsbuildinfo ファイルを保存します。", - "Saw_non_matching_condition_0_6405": "一致しない条件 '{0}' がありました。", - "Scoped_package_detected_looking_in_0_6182": "'{0}' 内を検索して、スコープ パッケージが検出されました", - "Selection_is_not_a_valid_statement_or_statements_95155": "選択内容は有効なステートメントではありません", - "Selection_is_not_a_valid_type_node_95133": "選択は有効な型ノードではありません", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "生成された JavaScript の JavaScript 言語バージョンを設定し、互換性のあるライブラリ宣言を含めます。", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "TypeScript からのメッセージの言語を設定します。これは生成には影響を与えません。", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "構成ファイルの 'module' オプションを '{0}' に設定する", - "Set_the_newline_character_for_emitting_files_6659": "ファイルを生成するための改行文字を設定します。", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "構成ファイルの 'target' オプションを '{0}' に設定する", - "Setters_cannot_return_a_value_2408": "セッターは値を返せません。", - "Show_all_compiler_options_6169": "コンパイラ オプションをすべて表示します。", - "Show_diagnostic_information_6149": "診断情報を表示します。", - "Show_verbose_diagnostic_information_6150": "詳細な診断情報を表示します。", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "ビルドされる (または '--clean' で指定される場合は、削除される) 内容を表示する", - "Signature_0_must_be_a_type_predicate_1224": "シグネチャ '{0}' は型の述語である必要があります。", - "Skip_type_checking_all_d_ts_files_6693": "すべての .d.ts ファイルについて型チェックをスキップします。", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "TypeScript に含まれている .d.ts ファイルの型チェックをスキップします。", - "Skip_type_checking_of_declaration_files_6012": "宣言ファイルの型チェックをスキップします。", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "プロジェクト '{0}' のビルドは、その依存関係 '{1}' にエラーがあるため、スキップしています", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "依存関係 '{1}' がビルドされていないため、プロジェクト '{0}' のビルドをスキップしています", - "Source_from_referenced_project_0_included_because_1_specified_1414": "'{1}' が指定されたため、参照先プロジェクト '{0}' からソースがインクルードされました", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "'--module' が 'none' として指定されたため、参照先プロジェクト '{0}' からソースがインクルードされました", - "Source_has_0_element_s_but_target_allows_only_1_2619": "ソースには {0} 個の要素がありますが、ターゲットで使用できるのは {1} 個のみです。", - "Source_has_0_element_s_but_target_requires_1_2618": "ソースには {0} 個の要素が含まれていますが、ターゲットには {1} 個が必要です。", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "ソースには、ターゲットの位置 {0} にある必須要素と一致するものがありません。", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "ソースには、ターゲットの位置 {0} にある可変個引数要素と一致するものがありません。", - "Specify_ECMAScript_target_version_6015": "ECMAScript ターゲット バージョンを指定します。", - "Specify_JSX_code_generation_6080": "JSX コードの生成を指定します。", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "1 つの JavaScript ファイルにすべての出力をバンドルするファイルを指定します。'declaration' が true の場合は、すべての .d.ts 出力をバンドルするファイルも指定します。", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "コンパイルに含めるファイルに一致する glob パターンの一覧を指定します。", - "Specify_a_list_of_language_service_plugins_to_include_6681": "含める言語サービス プラグインの一覧を指定します。", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "ターゲットのランタイム環境を記述する、バンドルされたライブラリ宣言ファイルのセットを指定します。", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "追加の検索場所にインポートを再マップするエントリのセットを指定します。", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "プロジェクトのパスを指定するオブジェクトの配列を指定します。プロジェクトの参照で使用されます。", - "Specify_an_output_folder_for_all_emitted_files_6678": "すべての生成されたファイルに対して出力フォルダーを指定します。", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "型にのみ使用されるインポートの生成または確認動作を指定します。", - "Specify_file_to_store_incremental_compilation_information_6380": "増分コンパイル情報を格納するファイルを指定する", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "TypeScript を使用して、指定されたモジュール指定子でファイルを検索する方法を指定します。", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "再帰的なファイル ウォッチ機能を持たないシステムでディレクトリをウォッチするための方法を指定します。", - "Specify_how_the_TypeScript_watch_mode_works_6715": "TypeScript ウォッチ モードの動作方法を指定します。", - "Specify_library_files_to_be_included_in_the_compilation_6079": "コンパイルに含めるライブラリ ファイルを指定します。", - "Specify_module_code_generation_6016": "モジュール コードの生成を指定します。", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "モジュールの解決方法を指定します: 'node' (Node.js) または 'classic' (TypeScript pre-1.6)。", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "'jsx: react-jsx*' を使用するときに JSX ファクトリ関数のインポートに使用するモジュール指定子を指定します。", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "'./node_modules/@types' のように動作する複数のフォルダーを指定します。", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "設定の継承元となる基本構成ファイルへのパスまたはノード モジュール参照を 1 つまたは複数指定します。", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "宣言ファイルの自動取得に関するオプションを指定します。", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "ファイル システムのイベントを使用して作成できなかった場合に、ポーリング監視を作成する方法を指定します: 'FixedInterval' (既定)、'PriorityInterval'、'DynamicPriority'、'FixedChunkSize'。", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "再帰的な監視をネイティブでサポートしていないプラットフォーム上のディレクトリを監視する方法を指定します: 'UseFsEvents' (既定)、'FixedPollingInterval'、'DynamicPriorityPolling'、'FixedChunkSizePolling'。", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "ファイルの監視方法を指定します: 'FixedPollingInterval' (既定)、'PriorityPollingInterval'、'DynamicPriorityPolling'、'FixedChunkSizePolling'、'UseFsEvents'、'UseFsEventsOnParentDirectory'。", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "React JSX 発行を対象とするときにフラグメントに使用される JSX フラグメント参照を指定します ('React.Fragment' や 'Fragment' など)。", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "'react' JSX 発行 ('React.createElement' や 'h') などを対象とするときに使用する JSX ファクトリ関数を指定します。", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "React JSX 発行を対象とするときに使用される JSX ファクトリ関数を指定します ('React.createElement' や 'h' など)。", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "'jsxFactory' コンパイラ オプションを指定して 'react' JSX 生成をターゲットにするときに使用する JSX フラグメント ファクトリ関数を指定します (例: 'Fragment')。", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "非相対モジュール名を解決するための基本ディレクトリを指定します。", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "ファイルの生成時に使用する行シーケンスの末尾を指定します: 'CRLF' (dos) または 'LF' (unix)。", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "デバッガーがソースの場所の代わりに TypeScript ファイルを検索する必要のある場所を指定します。", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "デバッガーが、生成された場所の代わりにマップ ファイルを検索する必要のある場所を指定します。", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "'node_modules' で JavaScript ファイルを確認するために使用するフォルダーの深さの最大値を指定します。'allowJs' にのみ適用可能です。", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "'jsx' と 'jsxs' のファクトリ関数をインポートするために使用されるモジュール指定子を指定します。例: react", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "'createElement' に対して呼び出されたオブジェクトを指定します。これは、'react' JSX 発行を対象とする場合にのみ適用されます。", - "Specify_the_output_directory_for_generated_declaration_files_6613": "生成された宣言ファイルの出力ディレクトリを指定します。", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": ".tsbuildinfo 増分コンパイル ファイルへのパスを指定します。", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "入力ファイルのルート ディレクトリを指定します。--outDir とともに、出力ディレクトリ構造の制御に使用します。", - "Specify_the_root_folder_within_your_source_files_6690": "ソース ファイル内のルート フォルダーを指定します。", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "デバッガーのルート パスを指定して、参照ソース コードを検索します。", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "ソース ファイルに参照されずに含める型のパッケージ名を指定します。", - "Specify_what_JSX_code_is_generated_6646": "生成済みの JSX コードを指定します。", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "システムがネイティブ ファイル ウォッチャーを使い果たした場合に、ウォッチャーが使用するアプローチを指定します。", - "Specify_what_module_code_is_generated_6657": "生成済みのモジュール コードを指定します。", - "Split_all_invalid_type_only_imports_1367": "無効な型のみのインポートをすべて分割する", - "Split_into_two_separate_import_declarations_1366": "2 つの別個のインポート宣言に分割する", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "'new' 式のスプレッド演算子は ECMAScript 5 以上をターゲットにする場合にのみ使用できます。", - "Spread_types_may_only_be_created_from_object_types_2698": "spread 型はオブジェクトの種類からのみ作成できます。", - "Starting_compilation_in_watch_mode_6031": "ウォッチ モードでのコンパイルを開始しています...", - "Statement_expected_1129": "ステートメントが必要です。", - "Statements_are_not_allowed_in_ambient_contexts_1036": "ステートメントは環境コンテキストでは使用できません。", - "Static_members_cannot_reference_class_type_parameters_2302": "静的メンバーはクラスの型パラメーターを参照できません。", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "静的プロパティ '{0}' がコンストラクター関数 '{1}' のビルトイン プロパティ 'Function.{0}' と競合しています。", - "String_literal_expected_1141": "文字列リテラルが必要です。", - "String_literal_with_double_quotes_expected_1327": "二重引用符を含む文字列リテラルが必要です。", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "色とコンテキストを使用してエラーとメッセージにスタイルを適用します (試験的)。", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "後続のプロパティ宣言は同じ型でなければなりません。プロパティ '{0}' の型は '{1}' である必要がありますが、ここでは型が '{2}' になっています。", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "後続の変数宣言は同じ型でなければなりません。変数 '{0}' の型は '{1}' である必要がありますが、'{2}' になっています。", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "パターン '{1}' の代入 '{0}' の型が正しくありません。必要な型は 'string' ですが、'{2}' を取得しました。", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "パターン '{1}' の置換 '{0}' に使用できる '*' 文字は 1 文字だけです。", - "Substitutions_for_pattern_0_should_be_an_array_5063": "パターン '{0}' への代入は配列でなければなりません。", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "パターン '{0}' への代入を空の配列にすることはできません。", - "Successfully_created_a_tsconfig_json_file_6071": "tsconfig.json ファイルが正常に作成されました。", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "super の呼び出しは、コンストラクターの外部、またはコンストラクター内の入れ子になった関数では使用できません。", - "Suppress_excess_property_checks_for_object_literals_6072": "オブジェクト リテラルの過剰なプロパティ確認を抑制します。", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "インデックス シグニチャのないオブジェクトにインデックスを作成するため、noImplicitAny エラーを抑制します。", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "インデックス シグネチャのないオブジェクトにインデックスを作成する際、'noImplicitAny' エラーを表示しません。", - "Switch_each_misused_0_to_1_95138": "誤用されている各 '{0}' を '{1}' に切り替えてください", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "再帰的なウォッチをネイティブでサポートしていないプラットフォーム上で、同期的にコールバックを呼び出してディレクトリ ウォッチャーの状態を更新します。", - "Syntax_Colon_0_6023": "構文: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "タグ '{0}' には少なくとも '{1}' 個の引数が必要ですが、JSX ファクトリ '{2}' で提供されるのは最大 '{3}' 個です。", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "タグ付きテンプレート式は、省略可能なチェーンでは許可されていません。", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "ターゲットには {0} 個の要素のみを使用できますが、ソースにはそれより多くを指定できます。", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "ターゲットには {0} 個の要素が必要ですが、ソースに指定する数はそれより少なくても構いません。", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' 修飾子は TypeScript ファイルでのみ使用できます。", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "'{0}' 演算子を 'symbol' 型に適用することはできません。", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "'{0}' 演算子はブール型には使用できません。代わりに '{1}' を使用してください。", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "非同期反復子の '{0}' プロパティはメソッドである必要があります。", - "The_0_property_of_an_iterator_must_be_a_method_2767": "反復子の '{0}' プロパティはメソッドである必要があります。", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' 型を割り当てることができるその他の型はごく少数です。代わりの候補には 'any' 型があります。", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "'arguments' オブジェクトは、ES3 および ES5 のアロー関数で参照することはできません。標準の関数式の使用を考慮してください。", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "'arguments' オブジェクトは、ES3 および ES5 の非同期関数またはメソッドで参照することはできません。標準の関数またはメソッドを使用することを検討してください。", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' ステートメントの本文を空のステートメントにすることはできません。", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "呼び出しはこの実装に対して成功した可能性がありますが、オーバーロードの実装シグネチャは外部からは参照できません。", - "The_character_set_of_the_input_files_6163": "入力ファイルの文字セット。", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "含まれているアロー関数は、'this' のグローバル値をキャプチャします。", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "含まれている関数またはモジュールの本体は、制御フロー解析には大きすぎます。", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "現在のファイルは CommonJS モジュールであり、最上位レベルでは 'await' を使用できません。", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "現在のファイルは CommonJS モジュールであり、このインポートでは 'require' 呼び出しが生成されますが、参照ファイルは ECMAScript モジュールであるため、'require' ではインポートできません。代わりに動的な 'import(\"{0}\")' 呼び出しを記述することを検討してください。", - "The_current_host_does_not_support_the_0_option_5001": "現在のホストは '{0}' オプションをサポートしていません。", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "使用するつもりだったと思われる '{0}' の宣言はここで定義されています", - "The_declaration_was_marked_as_deprecated_here_2798": "この宣言はここで非推奨とマークされました。", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "予期された型は、型 '{1}' に対してここで宣言されたプロパティ '{0}' から取得されています", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "予期された型は、このシグネチャの戻り値の型に基づいています。", - "The_expected_type_comes_from_this_index_signature_6501": "予期された型は、このインデックス シグネチャに基づいています。", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "エクスポートの代入の式は、環境コンテキストの識別子または修飾名にする必要があります。", - "The_file_is_in_the_program_because_Colon_1430": "ファイルがプログラム内に存在します。理由:", - "The_files_list_in_config_file_0_is_empty_18002": "構成ファイル '{0}' の 'files' リストが空です。", - "The_first_export_default_is_here_2752": "最初のエクスポートの既定値はここにあります。", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Promise では、'then' メソッドの最初のパラメーターはコールバックでなければなりません。", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "グローバル型 'JSX.{0}' には複数のプロパティが含まれていない可能性があります。", - "The_implementation_signature_is_declared_here_2750": "実装シグネチャはここで宣言されています。", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "'import.meta' メタプロパティは、CommonJS 出力にビルドするファイルでは許可されていません。", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' メタプロパティは、'--module' オプションが 'es2020'、'es2022'、'esnext'、'system'、'node16'、または 'nodenext' の場合にのみ許可されます。", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' の推論された型には、'{1}' への参照なしで名前を付けることはできません。これは、移植性がない可能性があります。型の注釈が必要です。", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' の推論された型は、循環構造を持つ型を参照しています。この型のシリアル化は自明ではありません。型の注釈が必要です。", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' の推定型はアクセス不可能な '{1}' 型を参照します。型の注釈が必要です。", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "このノードの推定型は、コンパイラがシリアル化する最大長を超えています。明示的な型の注釈が必要です。", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "交差 '{0}' は 'なし' に縮小されました。プロパティ '{1}' が複数の構成要素に存在し、一部ではプライベートであるためです。", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "交差 '{0}' は 'なし' に縮小されました。一部の構成要素でプロパティ '{1}' の型が競合しているためです。", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'組み込み' キーワードは、コンパイラが提供する組み込み型を宣言する場合にのみ使用できます。", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "'jsxFactory' コンパイラ オプションで JSX フラグメントを使用するには、'jsxFragmentFactory' コンパイラ オプションを指定する必要があります。", - "The_last_overload_gave_the_following_error_2770": "前回のオーバーロードにより、次のエラーが発生しました。", - "The_last_overload_is_declared_here_2771": "前回のオーバーロードはここで宣言されています。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' ステートメントの左側を非構造化パターンにすることはできません。", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' ステートメントの左側で型の注釈を使用することはできません。", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' ステートメントの左辺には、省略可能なプロパティ アクセスを指定できません。", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' ステートメントの左側は、変数またはプロパティ アクセスである必要があります。", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "'for...in' ステートメントの左側の型は 'string' または 'any' でなければなりません。", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "'for...of' ステートメントの左側で型の注釈を使用することはできません。", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "'for...of' ステートメントの左辺には、省略可能なプロパティ アクセスを指定できません。", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "'for...of' ステートメントの左辺には、'async' を指定できません。", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "'for...of' ステートメントの左側は、変数またはプロパティ アクセスである必要があります。", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術演算の左辺には、'any' 型、'number' 型、'bigint' 型、または列挙型を指定する必要があります。", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "代入式の左辺には、省略可能なプロパティ アクセスを指定できません。", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "代入式の左側は、変数またはプロパティ アクセスである必要があります。", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 式の左辺には、'any' 型、オブジェクト型、または型パラメーターを指定してください。", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "ユーザーにメッセージを表示するときに使用するロケール (例: 'en-us')", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules の下を検索して JavaScript ファイルを読み込む依存関係の最大深度です。", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "'delete' 演算子のオペランドには、private 識別子を指定できません。", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "'delete' 演算子のオペランドには、読み取り専用のプロパティを指定できません。", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "'delete' 演算子のオペランドはプロパティ参照である必要があります。", - "The_operand_of_a_delete_operator_must_be_optional_2790": "'delete' 演算子のオペランドはオプションである必要があります。", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "インクリメント演算子またはデクリメント演算子のオペランドには、省略可能なプロパティ アクセスを指定することはできません。", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "インクリメントまたはデクリメント演算子のオペランドは、変数またはプロパティ アクセスである必要があります。", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "パーサーは、ここで '{0}' トークンに一致する '{1}' を予期していました。", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "プロジェクト ルートはあいまいですが、ファイル '{1}' のエクスポート マップ エントリ '{0}' を解決するために必要です。あいまいさを解消するには、'rootDir' コンパイラ オプションを指定します。", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "プロジェクト ルートはあいまいですが、ファイル '{1}' のインポート マップ エントリ '{0}' を解決するために必要です。あいまいさを解消するには、'rootDir' コンパイラ オプションを指定します。", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "同じスペルの別の private 識別子によってシャドウされているため、このクラス内の型 '{1}' ではプロパティ '{0}' にアクセスできません。", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' アクセサーの戻り値の型は、その 'set' アクセサーの型に割り当て可能である必要があります", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "パラメーター デコレーター関数の戻り値の型は、'void' か 'any' である必要があります。", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "プロパティ デコレーター関数の戻り値の型は、'void' か 'any' である必要があります。", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "非同期関数の戻り値の型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "非同期関数または非同期メソッドの戻り値の型は、グローバル Promise 型である必要があります。'Promise<{0}>' と書き込むつもりでしたか?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' ステートメントの右側には、'any' 型、オブジェクト型、型パラメーターを指定する必要がありますが、ここでは型 '{0}' が指定されています。", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算術演算の右辺には、'any' 型、'number' 型、'bigint' 型、または列挙型を指定する必要があります。", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "instanceof' 式の右辺には、'any' 型、または 'Function' インターフェイス型に割り当てることができる型を指定してください。", - "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' ファイルのルート値はオブジェクトである必要があります。", - "The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' のシャドウ宣言はここで定義されています", - "The_signature_0_of_1_is_deprecated_6387": "'{1}' のシグネチャ '{0}' は非推奨です。", - "The_specified_path_does_not_exist_Colon_0_5058": "指定されたパスがありません: '{0}'。", - "The_tag_was_first_specified_here_8034": "このタグは最初にこちらで指定されました。", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "オブジェクト rest の代入先を、省略可能なプロパティ アクセスにすることはできません。", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "オブジェクトの残り部分の代入の対象は、変数またはプロパティ アクセスである必要があります。", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "型 '{0}' の 'this' コンテキストを型 '{1}' のメソッドの 'this' に割り当てることはできません。", - "The_this_types_of_each_signature_are_incompatible_2685": "各シグネチャの 'this' 型に互換性がありません。", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "型 '{0}' は 'readonly' であるため、変更可能な型 '{1}' に代入することはできません。", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "名前付きエクスポートで、export ステートメントに 'export type' が使用されている場合、'type' 修飾子は使用できません。", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "名前付きインポートで、import ステートメントに 'import type' が使用されている場合、'type' 修飾子は使用できません。", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "関数の宣言の型は、関数のシグネチャと一致する必要があります。", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "この式の型には、不安定な機能である 'resolution-mode' アサーションなしで名前を付けることはできません。ナイトリー TypeScript を使用して、このエラーをサイレントにします。'npm install -D typescript@next' を使用して更新してみてください。", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "このノードの種類は、そのプロパティ '{0}' をシリアル化できないため、シリアル化できません。", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "非同期反復子の '{0}()' メソッドによって返される型は、'value' プロパティを持つ型に対する promise である必要があります。", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "反復子の '{0}()' メソッドによって返される型には 'value' プロパティが必要です。", - "The_types_of_0_are_incompatible_between_these_types_2200": "'{0}' の型は、これらの型同士で互換性がありません。", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "'{0}' によって返された型は、これらの型同士で互換性がありません。", - "The_value_0_cannot_be_used_here_18050": "値 '{0}' はここでは使用できません。", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' ステートメントの変数宣言に初期化子を指定することはできません。", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' ステートメントの変数宣言に初期化子を指定することはできません。", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' ステートメントはサポートされていません。'with' ブロック内のすべてのシンボルの型は 'any' になります。", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "この JSX タグの '{0}' prop は型 '{1}' の単一の子を予期しますが、複数の子が指定されました。", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "この JSX タグの '{0}' prop は複数の子を必要とする型 '{1}' を予期しますが、単一の子が指定されました。", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}' 型と '{1}' 型が重複していないため、この比較は意図したとおりに表示されない可能性があります。", - "This_condition_will_always_return_0_2845": "この条件は常に '{0}' を返します。", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript が値ではなく参照でオブジェクトを比較するため、この条件は常に '{0}' を返します。", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "'{0}' が常に定義されているため、この条件は常に true を返します。", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "この関数は常に定義されているため、この条件は常に true を返します。代わりにこれを呼び出すことを意図していましたか?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "このコンストラクター関数はクラス宣言に変換される可能性があります。", - "This_expression_is_not_callable_2349": "この式は呼び出し可能ではありません。", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "この式は 'get' アクセサーであるため、呼び出すことができません。'()' なしで使用しますか?", - "This_expression_is_not_constructable_2351": "この式はコンストラクト可能ではありません。", - "This_file_already_has_a_default_export_95130": "このファイルには、既に既定のエクスポートがあります", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "このインポートは値として使用されることはありません。'importsNotUsedAsValues' が 'error' に設定されているため、'import type' を使用する必要があります。", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "これは拡張される宣言です。拡張する側の宣言を同じファイルに移動することを検討してください。", - "This_may_be_converted_to_an_async_function_80006": "これは非同期関数に変換できます。", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "このメンバーは、基底クラス '{0}' で宣言されていないため、このメンバーに '@override' タグを含む JSDoc コメントを指定することはできません。", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "このメンバーは、基底クラス '{0}' で宣言されていないため、このメンバーに 'override' タグを含む JSDoc コメントを指定することはできません。'{1}' ということですか?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "このメンバーを含んでいるクラス '{0}' が別のクラスを拡張していないため、このメンバーに '@override' タグを含む JSDoc コメントを指定することはできません。", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "このメンバーは、基底クラス '{0}' で宣言されていないため、'override' 修飾子を指定することはできません。", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "このメンバーは、基底クラス '{0}' で宣言されていないため、'override' 修飾子を指定することはできません。'{1}' ということですか?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "このメンバーを含んでいるクラス '{0}' が別のクラスを拡張していないため、このメンバーに 'override' 修飾子を指定することはできません。", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "このメンバーには、基底クラス '{0}' のメンバーをオーバーライドするため、'@override' タグを含む JSDoc コメントが必要です。", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "このメンバーは、基底クラス '{0}' のメンバーをオーバーライドするため、'override' 修飾子を指定する必要があります。", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "このメンバーは、基底クラス '{0}' で宣言された抽象メソッドをオーバーライドするため、'override' 修飾子を指定する必要があります。", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "このモジュールは、'{0}' フラグをオンにして既定のエクスポートを参照することにより、ECMAScript のインポートまたはエクスポートのみを使用して参照できます。", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "このモジュールは、'export =' を使用して宣言されており、'{0}' フラグを使用する場合は既定のインポートでのみ使用できます。", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "このオーバーロード シグネチャには、実装シグネチャとの互換性はありません。", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "このパラメーターは、'use strict' ディレクティブと共に使用することはできません。", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "このパラメーター プロパティには、基底クラス '{0}' のメンバーをオーバーライドするため、'@override' タグを含む JSDoc コメントが必要です。", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "このメンバーは、基底クラス '{0}' のメンバーをオーバーライドするため、パラメーター プロパティに 'override' 修飾子がある必要があります。", - "This_spread_always_overwrites_this_property_2785": "このスプレッドは、常にこのプロパティを上書きします。", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "この構文は、拡張子が .mts または .cts のファイルで予約されています。末尾のコンマまたは明示的な制約を追加します。", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "この構文は、拡張子が .mts または .cts のファイルで予約されています。代わりに `as` 式を使用してください。", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "この構文にはインポートされたヘルパーが必要ですが、モジュール '{0}' が見つかりません。", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "この構文には、'{1}' という名前のインポートされたヘルパーが必要ですが、'{0}' には存在しません。'{0}' のバージョンのアップグレードを検討してください。", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "この構文には、{2} パラメーターを持つ '{1}' という名前のインポートされたヘルパーが必要ですが、'{0}' にあるものと互換性がありません。'{0}' のバージョンをアップグレードすることをご検討ください。", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "この型パラメーターには 'extends {0}' 制約が必要な場合があります。", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "この 'import' の使用は無効です。'import()' 呼び出しは書き込むことができますが、かっこが必要であり、型引数を指定することはできません。", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "このファイルを ECMAScript モジュールに変換するには、フィールド '\"type\": \"module\"' を '{0}' に追加します。", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "このファイルを ECMAScript モジュールに変換するには、ファイル拡張子を '{0}' に変更するか、フィールド '\"type\": \"module\"' を '{1}' に追加します。", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "このファイルを ECMAScript モジュールに変換するには、ファイル拡張子を '{0}' に変更するか、'{ \"type\": \"module\" }' を含むローカルの package.json ファイルを作成します。", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "このファイルを ECMAScript モジュールに変換するには、'{ \"type\": \"module\" }' を含むローカルの package.json ファイルを作成します。", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "トップレベルの 'await' 式は、'module' オプションが 'es2022'、'esnext'、'system'、'node16' または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts ファイルのトップレベルの宣言は、'declare' または 'export' 修飾子で始める必要があります。", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "トップレベルの 'for await' ループは、'module' オプションが 'es2022'、'esnext'、'system'、'node16'、または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。", - "Trailing_comma_not_allowed_1009": "末尾にコンマは使用できません。", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "個々のモジュールとして各ファイルをトランスパイルします ('ts.transpileModule' に類似)。", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "存在する場合は `npm i --save-dev @types/{1}` を試すか、`declare module '{0}';` を含む新しい宣言 (.d.ts) ファイルを追加します", - "Trying_other_entries_in_rootDirs_6110": "'rootDirs' の他のエントリを試しています。", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "代入 '{0}' を試しています。候補のモジュールの場所: '{1}'。", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "タプル メンバーのすべての名前が指定されているか、すべての名前が指定されていないかのどちらかでなければなりません。", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "長さ '{1}' のタプル型 '{0}' にインデックス '{2}' の要素がありません。", - "Tuple_type_arguments_circularly_reference_themselves_4110": "タプル型の引数は、それ自体を循環参照します。", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "'{0}' の種類は、'--downlevelIteration' フラグを使用している場合、または 'es2015' 以降の '--target' を使用している場合にのみ反復処理できます。", - "Type_0_cannot_be_used_as_an_index_type_2538": "型 '{0}' はインデックスの型として使用できません。", - "Type_0_cannot_be_used_to_index_type_1_2536": "型 '{0}' はインデックスの種類 '{1}' に使用できません。", - "Type_0_does_not_satisfy_the_constraint_1_2344": "型 '{0}' は制約 '{1}' を満たしていません。", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "型 '{0}' は想定された型 '{1}' を満たしていません。", - "Type_0_has_no_call_signatures_2757": "型 '{0}' には呼び出しシグネチャがありません。", - "Type_0_has_no_construct_signatures_2761": "型 '{0}' にはコンストラクト シグネチャがありません。", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "型 '{0}' には型 '{1}' と一致するインデックス シグネチャがありません。", - "Type_0_has_no_properties_in_common_with_type_1_2559": "型 '{0}' には型 '{1}' と共通のプロパティがありません。", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "型 '{0}' には、型引数リストを適用できるシグネチャがありません。", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "型 '{0}' には 型 '{1}' からの次のプロパティがありません: {2}", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "型 '{0}' には 型 '{1}' からの次のプロパティがありません: {2}、{3} など。", - "Type_0_is_not_a_constructor_function_type_2507": "型 '{0}' はコンストラクター関数型ではありません。", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "型 '{0}' は Promise と互換性のあるコンストラクター値を参照しないため、ES5/ES3 において有効な非同期関数の戻り値の型ではありません。", - "Type_0_is_not_an_array_type_2461": "型 '{0}' は配列型ではありません。", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "型 '{0}' は配列型でも文字列型でもありません。", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "型 '{0}' は、配列型でも文字列型でもないか、反復子を返す '[Symbol.iterator]()' メソッドを持っていません。", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "型 '{0}' は、配列型ではないか、反復子を返す '[Symbol.iterator]()' メソッドを持っていません。", - "Type_0_is_not_assignable_to_type_1_2322": "型 '{0}' を型 '{1}' に割り当てることはできません。", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "型 '{0}' を型 '{1}' に割り当てることはできません。'{2}' でよろしいですか?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "型 '{0}' は型 '{1}' に割り当てられません。同じ名前で 2 つの異なる型が存在しますが、これは関連していません。", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "型 '{0}' は、差異注釈によって暗黙的に示されているように、型 '{1}' に割り当てできません。", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットのプロパティの型に 'undefined' を追加することを検討してください。", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットの型に 'undefined' を追加することを検討してください。", - "Type_0_is_not_comparable_to_type_1_2678": "型 '{0}' は型 '{1}' と比較できません。", - "Type_0_is_not_generic_2315": "型 '{0}' はジェネリックではありません。", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "型 '{0}' は、'in' 演算子の右オペランドとして許可されていないプリミティブ値を表す場合があります。", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "型 '{0}' には、非同期反復子を返す '[Symbol.asyncIterator]()' メソッドが必要です。", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "型 '{0}' には、反復子を返す '[Symbol.iterator]()' メソッドが必要です。", - "Type_0_provides_no_match_for_the_signature_1_2658": "型 '{0}' にはシグネチャ '{1}' に一致するものがありません。", - "Type_0_recursively_references_itself_as_a_base_type_2310": "型 '{0}' が、基本型としてそれ自体を再帰的に参照しています。", - "Type_Checking_6248": "種類を確認中", - "Type_alias_0_circularly_references_itself_2456": "型のエイリアス '{0}' が自身を循環参照しています。", - "Type_alias_must_be_given_a_name_1439": "型のエイリアスには名前を指定する必要があります。", - "Type_alias_name_cannot_be_0_2457": "型のエイリアス名を '{0}' にすることはできません。", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "型のエイリアスは、TypeScript ファイルでのみ使用できます。", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "型の注釈はコンストラクター宣言では使用できません。", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "型の注釈は、TypeScript ファイルでのみ使用できます。", - "Type_argument_expected_1140": "型引数が必要です。", - "Type_argument_list_cannot_be_empty_1099": "型引数リストを空にすることはできません。", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "型引数は TypeScript ファイルでのみ使用できます。", - "Type_arguments_cannot_be_used_here_1342": "ここで型引数は使用できません。", - "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}' の型引数はそれ自体を循環参照します。", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "型アサーション式は TypeScript ファイルでのみ使用できます。", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "ソースの位置 {0} にある型は、ターゲットの位置 {1} にある型と互換性がありません。", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "ソースの位置 {0} から {1} にある型は、ターゲットの位置 {2} にある型と互換性がありません。", - "Type_declaration_files_to_be_included_in_compilation_6124": "コンパイルに含む型宣言ファイル。", - "Type_expected_1110": "型が必要です。", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "型インポート アサーションには、キー `resolution-mode` が 1 つだけ必要です。値は `import` または `require` です。", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "型のインスタンス化は非常に深く、無限である可能性があります。", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "型は、それ自身の 'then' メソッドのフルフィルメント コールバック内で直接または間接的に参照されます。", - "Type_library_referenced_via_0_from_file_1_1402": "ファイル '{1}' から '{0}' を介して参照されたタイプ ライブラリ", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "packageId が '{2}' のファイル '{1}' から '{0}' を介して参照されたタイプ ライブラリ", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "'await' オペランドの型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "計算されたプロパティの値の型は '{0}' です。これは、型 '{1}' に代入することはできません。", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "インスタンス メンバー変数 '{0}' の型は、コンストラクターで宣言された識別子 '{1}' を参照できません。", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*' オペランドの反復要素の型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "マップされた型 '{1}' で、プロパティ '{0}' の型によってそれ自体が循環参照されています。", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "非同期ジェネレーター内の 'yield' オペランドの型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "型はこのインポートで生成されます。名前空間スタイルのインポートは、呼び出すこともコンストラクトすることもできず、実行時にエラーが発生します。代わりに、ここで既定のインポートまたはインポートの require を使用することを検討してください。", - "Type_parameter_0_has_a_circular_constraint_2313": "型パラメーター '{0}' に循環制約があります。", - "Type_parameter_0_has_a_circular_default_2716": "型パラメーター '{0}' に循環既定値があります。", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "エクスポートされたインターフェイスの呼び出しシグネチャの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "エクスポートされたインターフェイスのコンストラクター シグネチャの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "エクスポートされたクラスの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "エクスポートされた関数の型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "エクスポートされたインターフェイスの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "エクスポートされたマップ済みのオブジェクト型の型パラメーター '{0}' が、プライベート名 '{1}' を使用しています。", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "エクスポートした型のエイリアスの型パラメーター '{0}' にプライベート名 '{1}' が指定されているか、これを使用しています。", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "エクスポートされたインターフェイスのメソッドの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "エクスポートされたクラスのパブリック メソッドの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "エクスポートされたクラスのパブリック静的メソッドの型パラメーター '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", - "Type_parameter_declaration_expected_1139": "型パラメーターの宣言が必要です。", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "型パラメーターの宣言は TypeScript ファイルでのみ使用できます。", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "型パラメーターの既定値は、以前に宣言された型パラメーターのみを参照できます。", - "Type_parameter_list_cannot_be_empty_1098": "型パラメーター リストを空にすることはできません。", - "Type_parameter_name_cannot_be_0_2368": "型パラメーター名を '{0}' にすることはできません。", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "型パラメーターはコンストラクター宣言では使用できません。", - "Type_predicate_0_is_not_assignable_to_1_1226": "型の述語 '{0}' を '{1}' に割り当てることはできません。", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "型では大きすぎて表すことができないタプル型を生成します。", - "Type_reference_directive_0_was_not_resolved_6120": "======== 型参照ディレクティブ '{0}' が解決されませんでした。========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== 型参照ディレクティブ '{0}' が正常に '{1}' に解決されました。プライマリ: {2}。========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== 型参照ディレクティブ '{0}' が正常に '{1}' に解決されました (パッケージ ID '{2}'、プライマリ: {3})。========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "型充足式は TypeScript ファイルでのみ使用できます。", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "JavaScript ファイルのエクスポート宣言に型を含めることはできません。", - "Types_have_separate_declarations_of_a_private_property_0_2442": "複数の型に、プライベート プロパティ '{0}' の異なる宣言が含まれています。", - "Types_of_construct_signatures_are_incompatible_2419": "コンストラクト シグネチャの型に互換性がありません。", - "Types_of_parameters_0_and_1_are_incompatible_2328": "パラメーター '{0}' および '{1}' は型に互換性がありません。", - "Types_of_property_0_are_incompatible_2326": "プロパティ '{0}' の型に互換性がありません。", - "Unable_to_open_file_0_6050": "ファイル '{0}' を開くことができません。", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "式として呼び出される場合、クラス デコレーターのシグネチャを解決できません。", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "式として呼び出される場合、メソッド デコレーターのシグネチャを解決できません。", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "式として呼び出される場合、パラメーター デコレーターのシグネチャを解決できません。", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "式として呼び出される場合、プロパティ デコレーターのシグネチャを解決できません。", - "Unexpected_end_of_text_1126": "予期しないテキストの末尾です。", - "Unexpected_keyword_or_identifier_1434": "予期しないキーワードまたは識別子です。", - "Unexpected_token_1012": "予期しないトークンです。", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "予期しないトークンです。コンストラクター、メソッド、アクセサー、またはプロパティが必要です。", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "予期しないトークンです。型パラメーター名には、中かっこを含めることはできません。", - "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "予期しないトークンです。`{'}'}` または `}` を意図していましたか?", - "Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。", - "Unknown_build_option_0_5072": "'{0}' は不明なビルド オプションです。", - "Unknown_build_option_0_Did_you_mean_1_5077": "'{0}' は不明なビルド オプションです。'{1}' を意図していましたか?", - "Unknown_compiler_option_0_5023": "コンパイラ オプション '{0}' が不明です。", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "'{0}' は不明なコンパイラ オプションです。'{1}' を意図していましたか?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "不明なキーワードまたは識別子。'{0}' を意味していましたか?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "不明なオプション 'excludes' です。'exclude' ですか?", - "Unknown_type_acquisition_option_0_17010": "不明な型の取得オプション '{0}'。", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "'{0}' は不明な型の取得オプションです。'{1}' を意図していましたか?", - "Unknown_watch_option_0_5078": "'{0}' は不明な監視オプションです。", - "Unknown_watch_option_0_Did_you_mean_1_5079": "'{0}' は不明な監視オプションです。'{1}' を意図していましたか?", - "Unreachable_code_detected_7027": "到達できないコードが検出されました。", - "Unterminated_Unicode_escape_sequence_1199": "未終了の Unicode エスケープ シーケンスです。", - "Unterminated_quoted_string_in_response_file_0_6045": "応答ファイル '{0}' の文字列の終了引用符がありません。", - "Unterminated_regular_expression_literal_1161": "未終了の正規表現リテラルです。", - "Unterminated_string_literal_1002": "未終了の文字列リテラルです。", - "Unterminated_template_literal_1160": "未終了のテンプレート リテラルです。", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "型指定のない関数の呼び出しで型引数を使用することはできません。", - "Unused_label_7028": "未使用のラベル。", - "Unused_ts_expect_error_directive_2578": "'@ts-expect-error' ディレクティブが使用されていません。", - "Update_import_from_0_90058": "\"{0}\" からのインポートの更新", - "Updating_output_of_project_0_6373": "プロジェクト '{0}' の出力を更新しています...", - "Updating_output_timestamps_of_project_0_6359": "プロジェクト '{0}' の出力タイムスタンプを更新しています...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "プロジェクト '{0}' の変更されていない出力タイムスタンプを更新しています...", - "Use_0_95174": "\"{0}\" を使用します。", - "Use_Number_isNaN_in_all_conditions_95175": "すべての条件で 'Number.isNaN' を使用します。", - "Use_element_access_for_0_95145": "'{0}' に要素アクセスを使用する", - "Use_element_access_for_all_undeclared_properties_95146": "宣言されていないすべてのプロパティに対して要素アクセスを使用します。", - "Use_synthetic_default_member_95016": "合成 'default' メンバーを使用します。", - "Using_0_subpath_1_with_target_2_6404": "'{0}' サブパス '{1}' をターゲット '{2}' と共に使用しています。", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "'for...of' ステートメントでの文字列の使用は ECMAScript 5 以上でのみサポートされています。", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "--build を使用すると、-b は tsc をコンパイラというよりビルド オーケストレーターのように動作させます。これは、複合プロジェクトのビルドをトリガーするために使用されます。詳細については、{0} を参照してください。", - "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", - "VERSION_6036": "バージョン", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "型 '{0}' の値には、型 '{1}' と共通のプロパティがありません。呼び出しますか?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "型 '{0}' の値は呼び出せません。'new' を含めますか?", - "Variable_0_implicitly_has_an_1_type_7005": "変数 '{0}' の型は暗黙的に '{1}' になります。", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "変数 '{0}' の型は暗黙的に '{1}' になっていますが、使い方からより良い型を推論できます。", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "場所によっては、変数 '{0}' の型に '{1}' が暗黙的に指定されていますが、使い方からより良い型を推論できます。", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "変数 '{0}' は、型を決定できない一部の場所では、暗黙のうちに '{1}' 型になります。", - "Variable_0_is_used_before_being_assigned_2454": "変数 '{0}' は割り当てられる前に使用されています。", - "Variable_declaration_expected_1134": "変数の宣言が必要です。", - "Variable_declaration_list_cannot_be_empty_1123": "変数宣言リストを空にすることはできません。", - "Variable_declaration_not_allowed_at_this_location_1440": "変数の宣言はこの場所では許可されていません。", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "ソースの位置 {0} にある可変個引数要素は、ターゲットの位置 {1} にある要素と一致しません。", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "分散注釈は、オブジェクト、関数、コンストラクター、およびマップされた型の型エイリアスでのみサポートされています。", - "Version_0_6029": "バージョン {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "このファイルの詳細については、https://aka.ms/tsconfig をご覧ください", - "WATCH_OPTIONS_6918": "ウォッチ オプション", - "Watch_and_Build_Modes_6250": "ウォッチ モードとビルド モード", - "Watch_input_files_6005": "入力ファイルを監視します。", - "Watch_option_0_requires_a_value_of_type_1_5080": "監視オプション '{0}' には型 {1} の値が必要です。", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "ここにパラメーター全体の型を追加することによってのみ、'{0}' の型を書き込むことができます。", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "関数を割り当てる際、パラメーターと戻り値が互換性のあるサブタイプであることを確認します。", - "When_type_checking_take_into_account_null_and_undefined_6699": "型チェックを行うときは、'null' と 'undefined' が考慮されます。", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "画面をクリアする代わりに、古くなったコンソール出力をウォッチ モードで保持するかどうか。", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "式のコンテナー内のすべての無効な文字をラップする", - "Wrap_all_object_literal_with_parentheses_95116": "すべてのオブジェクト リテラルをかっこで囲みます", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "親の設定が解除されたすべての JSX を JSX フラグメントでラップする", - "Wrap_in_JSX_fragment_95120": "JSX フラグメントでラップする", - "Wrap_invalid_character_in_an_expression_container_95108": "式のコンテナー内の無効な文字をラップする", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "次の本体をかっこで囲みます。これはオブジェクト リテラルです", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "コンパイラ オプションの詳細については、{0} をご覧ください。", - "You_cannot_rename_a_module_via_a_global_import_8031": "グローバル インポートを使用してモジュールの名前を変更することはできません。", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "'node_modules' フォルダーで定義されている要素の名前を変更することはできません。", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "別の 'node_modules' フォルダーで定義されている要素の名前を変更することはできません。", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "標準の TypeScript ライブラリで定義された要素の名前を変更することはできません。", - "You_cannot_rename_this_element_8000": "この要素の名前を変更することはできません。", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}' は受け入れる引数が少なすぎるので、ここでデコレーターとして使用することができません。最初にこれを呼び出してから、'@{0}()' を書き込むつもりでしたか?", - "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' および '{1}' インデックス シグネチャに互換性がありません。", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' および '{1}' 演算をかっこなしで混在させることはできません。", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' は 2 回指定されています。'{0}' という名前の属性は上書きされます。", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' をインポートするには、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", - "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' をインポートするには、既定のインポートを使用する必要があります。", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' をインポートするには、'require' 呼び出しを使用するか、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' をインポートするには、'require' 呼び出しを使用するか、既定のインポートを使用する必要があります。", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' をインポートするには、'import {1} = require({2})' または既定のインポートを使用する必要があります。", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' をインポートするには、'import {1} = require ({2})' を使用するか、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'{0}' は、グローバル スクリプト ファイルと見なされるため、'--isolatedModules' でコンパイルすることはできません。import、export、または空の 'export {}' ステートメントを追加して、これをモジュールにしてください。", - "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}' を JSX コンポーネントとして使用することはできません。", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'export type' を使用してエクスポートされたため、'{0}' は値として使用できません。", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'import type' を使用してインポートされたため、'{0}' は値として使用できません。", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' コンポーネントには、テキストを子要素として指定できません。JSX のテキストには 'string' 型が含まれていますが、'{1}' の予期された型は '{2}' です。", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{1}' に関連しない可能性のある任意の型で '{0}' をインスタンス化できます。", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' 宣言は TypeScript ファイルでのみ使用できます。", - "_0_expected_1005": "'{0}' が必要です。", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{1}' という名前のエクスポートされたメンバーが '{0}' に含まれていません。候補: '{2}'", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' の戻り値の型は暗黙的に '{1}' になっていますが、使い方からより良い型を推論できます。", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' は、戻り値の型の注釈がなく、いずれかの return 式で直接的にまたは間接的に参照されているため、戻り値の型は暗黙的に 'any' になります。", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "'{0}' には型の注釈がなく、直接または間接的に初期化子で参照されているため、暗黙的に 'any' 型が含まれています。", - "_0_index_signatures_are_incompatible_2634": "'{0}' インデックス シグネチャに互換性がありません。", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}'インデックス型'{1}' を '{2}'インデックス型'{3}' に割り当てることはできません。", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' はプリミティブですが、'{1}' はラッパー オブジェクトです。できれば '{0}' をご使用ください。", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' は型であるため、JavaScript ファイルにインポートできません。JSDoc 型の注釈で '{1}' を使用します。", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" は型であり、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートされる必要があります。", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' は、'{1}' の未使用の名前変更です。型の注釈として使用するつもりでしたか?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' は型 '{1}' の制約に代入できますが、'{1}' は制約 '{2}' の別のサブタイプでインスタンス化できることがあります。", - "_0_is_automatically_exported_here_18044": "`{0}` は自動的にここにエクスポートされます。", - "_0_is_declared_but_its_value_is_never_read_6133": "'{0}' が宣言されていますが、その値が読み取られることはありません。", - "_0_is_declared_but_never_used_6196": "'{0}' は宣言されましたが使用されませんでした。", - "_0_is_declared_here_2728": "'{0}' はここで宣言されています。", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "'{0}' はクラス '{1}' でプロパティとして定義されていますが、ここでは '{2}' でアクセサーとしてオーバーライドされています。", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}' はクラス '{1}' でアクセサーとして定義されていますが、ここではインスタンス プロパティとして '{2}' でオーバーライドされています。", - "_0_is_deprecated_6385": "'{0}' は非推奨です。", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' はキーワード '{1}' に関するメタプロパティとして無効です。候補: '{2}'。", - "_0_is_not_allowed_as_a_parameter_name_1390": "'{0}' はパラメーター名として使用できません。", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' は変数宣言の名前として使用できません。", - "_0_is_of_type_unknown_18046": "'{0}''は 'unknown' 型です。", - "_0_is_possibly_null_18047": "'{0}' は 'null' の可能性があります。", - "_0_is_possibly_null_or_undefined_18049": "'{0}' は 'null' か 'undefined' の可能性があります。", - "_0_is_possibly_undefined_18048": "'{0}' は 'undefined' の可能性があります。", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}' はそれ自身のベース式内で直接または間接的に参照されます。", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}' はそれ自身の型の注釈内で直接または間接的に参照されます。", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}' が複数回指定されているため、ここでの使用は上書きされます。", - "_0_list_cannot_be_empty_1097": "'{0}' のリストを空にすることはできません。", - "_0_modifier_already_seen_1030": "'{0}' 修飾子は既に存在します。", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾子は、クラス、インターフェイス、または型エイリアスの型パラメーターでのみ使用できます", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 修飾子はコンストラクター宣言では使用できません。", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 修飾子は、モジュールまたは名前空間の要素では使用できません。", - "_0_modifier_cannot_appear_on_a_parameter_1090": "'{0}' 修飾子はパラメーターでは使用できません。", - "_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 修飾子は型メンバーでは使用できません。", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 修飾子は型パラメーターでは表示できません。", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 修飾子はインデックス シグネチャでは使用できません。", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "'{0}' 修飾子はこの種類のクラス要素では使用できません。", - "_0_modifier_cannot_be_used_here_1042": "'{0}' 修飾子はここでは使用できません。", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "'{0}' 修飾子は環境コンテキストでは使用できません。", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 修飾子と '{1}' 修飾子は同時に使用できません。", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 修飾子を private 識別子とともに使用することはできません。", - "_0_modifier_must_precede_1_modifier_1029": "'{0}' 修飾子は '{1}' 修飾子の前に指定する必要があります。", - "_0_needs_an_explicit_type_annotation_2782": "'{0}' には、明示的な型の注釈が必要です。", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' は型のみを参照しますが、ここで名前空間として使用されています。", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' は型のみを参照しますが、ここで値として使用されています。", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "'{0}' は型を参照しているだけですが、こちらでは値として使用されています。'{0} 内の {1}' を使用しますか?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' は型のみを参照しますが、ここでは値として使用されています。ターゲット ライブラリを変更しますか? 'lib' コンパイラ オプションを es2015 以降に変更してみてください。", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' は UMD グローバルを参照していますが、現在のファイルはモジュールです。代わりにインポートを追加することを考慮してください。", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' は値を参照していますが、ここでは型として使用されています。'typeof {0}' を意図していましたか?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" は型に限定した宣言を解決するため、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートする必要があります。", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" は型に限定した宣言を解決するため、\" isolatedModules\" が有効になっているときは、型に限定した再エクスポートを使用して再エクスポートされる必要があります。", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "config json ファイル の 'compilerOptions' オブジェクト内に '{0}' を設定する必要があります。", - "_0_tag_already_specified_1223": "'{0}' タグは既に指定されています。", - "_0_was_also_declared_here_6203": "ここでは '{0}' も宣言されました。", - "_0_was_exported_here_1377": "ここでは '{0} ' がエクスポートされました。", - "_0_was_imported_here_1376": "ここでは '{0}' がインポートされました。", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "'{0}' には戻り値の型の注釈がないため、戻り値の型は暗黙的に '{1}' になります。", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "'{0}' には戻り値の型の注釈がないため、yield 型は暗黙的に '{1}' になります。", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾子は、クラス宣言、メソッド宣言、またはプロパティ宣言のみに使用できます。", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾子は、プロパティ宣言でのみ使用できます。", - "and_here_6204": "およびここで。", - "arguments_cannot_be_referenced_in_property_initializers_2815": "プロパティ初期化子で 'arguments' を参照することはできません。", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": インポート、エクスポート、import.meta、jsx (jsx: react-jsx を使用)、または esm 形式 (モジュール: node16+) でファイルをモジュールとして扱います。", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "ファイルがモジュールの場合、'await' 式はそのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "'await' 式は、非同期関数内と、モジュールのトップ レベルでのみ許可されます。", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 式は、パラメーター初期化子では使用できません。", - "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' は、この式の型に対しては効果がありません。", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' オプションは '{0}' に設定され、この値を使用して非相対モジュール名 '{1}' を解決します。", - "can_only_be_used_at_the_start_of_a_file_18026": "'#!' は、ファイルの先頭でのみ使用できます。", - "case_or_default_expected_1130": "'case' または 'default' が必要です。", - "catch_or_finally_expected_1472": "'catch' または 'finally' が必要です。", - "const_declarations_can_only_be_declared_inside_a_block_1156": "'const' 宣言は、ブロック内でのみ宣言できます。", - "const_declarations_must_be_initialized_1155": "'const' 宣言は初期化する必要があります。", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 列挙型メンバーの初期化子が、無限値に評価されました。", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 列挙型メンバーの初期化子が、許可されない値 'NaN' に評価されました。", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "const 列挙型メンバーの初期化子には、リテラル値および他の計算された列挙型の値のみを含めることができます。", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 列挙型は、プロパティまたはインデックスのアクセス式、インポート宣言またはエクスポートの代入の右辺、型のクエリにのみ使用できます。", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor' をパラメーターのプロパティ名として使用することはできません。", - "constructor_is_a_reserved_word_18012": "'#constructor' は予約語です。", - "default_Colon_6903": "既定:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "厳格モードでは 'delete' を識別子で呼び出すことはできません。", - "export_Asterisk_does_not_re_export_a_default_1195": "'export *' では既定のものは再エクスポートされません。", - "export_can_only_be_used_in_TypeScript_files_8003": "'export =' は、TypeScript ファイルでのみ使用できます。", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "環境モジュールとモジュール拡張は常に表示されるので、これらに 'export' 修飾子を適用することはできません。", - "extends_clause_already_seen_1172": "'extends' 句は既に存在します。", - "extends_clause_must_precede_implements_clause_1173": "extends' 句は 'implements' 句の前に指定しなければなりません。", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "エクスポートされたクラス '{0}' の 'extends' 句がプライベート名 '{1}' を持っているか、使用しています。", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "エクスポートされたクラスの 'extends' 句がプライベート名 '{0}' を持っているか、使用しています。", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "エクスポートされたインターフェイス '{0}' の 'extends' 句がプライベート名 '{1}' を持っているか、使用しています。", - "false_unless_composite_is_set_6906": "'composite' が設定されていない場合は 'false'", - "false_unless_strict_is_set_6905": "'strict' が設定されている場合を除き、' false '", - "file_6025": "ファイル", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "ファイルがモジュールの場合、'for await' ループはそのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "'for await' ループは、非同期関数内と、モジュールのトップ レベルでのみ許可されます。", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' および 'set' アクセサーでは 'this' パラメーターを宣言できません。", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'files' が指定されている場合は '[]'、それ以外の場合は '[\"**/*\"]5D;'", - "implements_clause_already_seen_1175": "'implements' 句は既に存在します。", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' 句は、TypeScript ファイルでのみ使用できます。", - "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' は、TypeScript ファイルでのみ使用できます。", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "'infer' 宣言は、条件付き型の 'extends' 句でのみ許可されます。", - "let_declarations_can_only_be_declared_inside_a_block_1157": "'let' 宣言は、ブロック内でのみ宣言できます。", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' は、'let' 宣言または 'const' 宣言で名前として使用することはできません。", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "モジュール === 'AMD'、'UMD'、'System'、'ES6'、'Classic'、それ以外の場合は 'Node'", - "module_system_or_esModuleInterop_6904": "module === \"system\" or esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "ターゲットにコンストラクト シグネチャがない 'new' 式の型は、暗黙的に 'any' になります。", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "`[\"node_modules\", \"bower_components\", \"jspm_packages\"]`' と、指定されている場合は 'outDir' の値を加算します。", - "one_of_Colon_6900": "次のいずれか:", - "one_or_more_Colon_6901": "1 つ以上", - "options_6024": "オプション", - "or_JSX_element_expected_1145": "'{' または JSX 要素が必要です。", - "or_expected_1144": "'{' または ';' が必要です。", - "package_json_does_not_have_a_0_field_6100": "'package.json' に '{0}' フィールドがありません。", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' には、バージョン '{0}' と一致する 'typesVersions' エントリがありません。", - "package_json_had_a_falsy_0_field_6220": "'package.json' には、false に評価される '{0}' フィールドが含まれています。", - "package_json_has_0_field_1_that_references_2_6101": "'package.json' に '{2}' を参照する '{0}' フィールド '{1}' があります。", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' には、有効な semver の範囲ではない 'typesVersions' エントリ '{0}' が含まれています。", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' には、コンパイラ バージョン '{1}' に一致する 'typesVersions' エントリ '{0}' が含まれていて、モジュール名 '{2}' に一致するパターンを探しています。", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' には、バージョン固有のパス マッピングを含む 'typesVersions' フィールドが含まれています。", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "package.json のスコープ '{0}' は、指定子 '{1}' を明示的に null にマッピングします。", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json のスコープ '{0}' は、指定子 '{1}' のターゲットに無効な型です。", - "package_json_scope_0_has_no_imports_defined_6273": "package.json のスコープ '{0}' にはインポートが定義されていません。", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' オプションが指定され、モジュール名 '{0}' と一致するパターンを検索します。", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾子はプロパティ宣言またはインデックス シグネチャのみに使用できます。", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 型の修飾子は、配列およびタプル リテラル型でのみ使用できます。", - "require_call_may_be_converted_to_an_import_80005": "'require' の呼び出しはインポートに変換される可能性があります。", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "'resolution-mode' アサーションは、`moduleResolution` が `node16` または `nodenext` の場合にのみサポートされます。", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' アサーションが不安定です。ナイトリー TypeScript を使用して、このエラーをサイレントにします。npm install -D typescript@next' で更新してみてください。", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` は、型のみのインポートに対してのみ設定できます。", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode` は、型インポート アサーションの唯一の有効なキーです。", - "resolution_mode_should_be_either_require_or_import_1453": "\"resolution-mode\" は \"require\" または \"import\" のいずれかにする必要があります。", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' オプションが設定され、このオプションを使用して相対モジュール名 '{0}' を解決します。", - "super_can_only_be_referenced_in_a_derived_class_2335": "'super' は、派生クラスでのみ参照できます。", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "'super' は、派生クラスのメンバーまたはオブジェクトのリテラル式のメンバーでのみ参照されます。", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "'super' は、計算されたプロパティ名では参照できません。", - "super_cannot_be_referenced_in_constructor_arguments_2336": "'super' はコンストラクター引数では参照できません。", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "オプション 'target' が 'ES2015' 以降の場合、'super' はオブジェクトのリテラル式のメンバーでのみ使用できます。", - "super_may_not_use_type_arguments_2754": "'super' では型引数を使用できません。", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "派生クラスのコンストラクター内の 'super' のプロパティにアクセスする前に、'super' を呼び出す必要があります。", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "派生クラスのコンストラクター内の 'this' にアクセスする前に、'super' を呼び出す必要があります。", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "'super' の後には、引数リストまたはメンバー アクセスが必要です。", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "'super' プロパティ アクセスはコンストラクター、メンバー関数、または派生クラスのメンバー アクセサーでのみ許可されます。", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this' は、計算されたプロパティ名では参照できません。", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this' はモジュール本体内または名前空間本体内では参照できません。", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "'this' は、静的プロパティ初期化子では参照できません。", - "this_cannot_be_referenced_in_constructor_arguments_2333": "'this' はコンストラクター引数では参照できません。", - "this_cannot_be_referenced_in_current_location_2332": "'this' は現在の場所では参照できません。", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' は型として注釈を持たないため、暗黙的に型 'any' になります。", - "true_for_ES2022_and_above_including_ESNext_6930": "ESNext を含む ES2022 以降の場合は 'true' です。", - "true_if_composite_false_otherwise_6909": "'composite' の場合は 'true'、それ以外の場合は 'false'", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript コンパイラ", - "type_Colon_6902": "種類:", - "unique_symbol_types_are_not_allowed_here_1335": "'unique symbol' 型はここでは許可されていません。", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "'unique symbol' 型は変数ステートメントの変数でのみ許可されています。", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "'unique symbol' 型は、バインディング名を持つ変数の宣言では使用できません。", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "'use strict' ディレクティブは、複雑なパラメーター リストでは使用できません。", - "use_strict_directive_used_here_1349": "'use strict' ディレクティブがここで使用されています。", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "'with' 式は、非同期関数ブロックでは使用できません。", - "with_statements_are_not_allowed_in_strict_mode_1101": "厳格モードでは 'with' ステートメントは使用できません。", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "'yield' 式は、それを含むジェネレーターに戻り値の型の注釈がないため、暗黙的に 'any' 型になります。", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "'yield' 式は、パラメーター初期化子では使用できません。" -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/ko/diagnosticMessages.generated.json b/graphql/node_modules/typescript/lib/ko/diagnosticMessages.generated.json deleted file mode 100644 index 3fba8e28..00000000 --- a/graphql/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +++ /dev/null @@ -1,1880 +0,0 @@ -{ - "ALL_COMPILER_OPTIONS_6917": "모든 컴파일러 옵션", - "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 한정자는 가져오기 선언에서 사용할 수 없습니다.", - "A_0_parameter_must_be_the_first_parameter_2680": "'{0}' 매개 변수는 첫 번째 매개 변수여야 합니다.", - "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' 주석에 여러 '@type' 태그를 포함하지 못할 수 있습니다.", - "A_bigint_literal_cannot_use_exponential_notation_1352": "bigint 리터럴에는 지수 표기법을 사용할 수 없습니다.", - "A_bigint_literal_must_be_an_integer_1353": "bigint 리터럴은 정수여야 합니다.", - "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "바인딩 패턴 매개 변수는 구현 서명에서 선택 사항이 될 수 없습니다.", - "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' 문은 이 문을 둘러싼 반복문 또는 switch 문 내에서만 사용할 수 있습니다.", - "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' 문은 이 문을 둘러싼 문의 레이블로만 이동할 수 있습니다.", - "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "클래스는 선택적 형식 인수가 포함된 식별자/정규화된 이름만 구현할 수 있습니다.", - "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "클래스는 개체 형식 또는 정적으로 알려진 멤버가 포함된 개체 형식의 교집합만 구현할 수 있습니다.", - "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' 한정자를 사용하지 않는 클래스 선언에는 이름이 있어야 합니다.", - "A_class_member_cannot_have_the_0_keyword_1248": "클래스 멤버에는 '{0}' 키워드를 사용할 수 없습니다.", - "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "쉼표 식은 컴퓨팅된 속성 이름에 사용할 수 없습니다.", - "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "계산된 속성 이름에서는 포함하는 형식의 형식 매개 변수를 참조할 수 없습니다.", - "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166": "클래스 속성 선언의 계산된 속성 이름에는 간단한 리터럴 형식 또는 '고유 기호' 형식이 있어야 합니다.", - "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168": "메서드 오버로드의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.", - "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170": "리터럴 형식의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.", - "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "앰비언트 컨텍스트의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.", - "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "인터페이스의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.", - "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "계산된 속성 이름은 'string', 'number', 'symbol' 또는 'any' 형식이어야 합니다.", - "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "'const' 어설션은 열거형 멤버나 문자열, 숫자, 부울, 배열 또는 개체 리터럴에 대한 참조에만 적용할 수 있습니다.", - "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "const 열거형 멤버는 문자열 리터럴을 통해서만 액세스할 수 있습니다.", - "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "앰비언트 컨텍스트의 'const' 이니셜라이저는 문자열, 숫자 리터럴 또는 리터럴 열거형 참조여야 합니다.", - "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "생성자는 해당 클래스가 'null'을 확장하는 경우 'super' 호출을 포함할 수 없습니다.", - "A_constructor_cannot_have_a_this_parameter_2681": "생성자에는 'this' 매개 변수를 사용할 수 없습니다.", - "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' 문은 이 문을 둘러싼 반복문 내에서만 사용할 수 있습니다.", - "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' 문은 이 문을 둘러싼 반복문의 레이블로만 이동할 수 있습니다.", - "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "'declare' 한정자는 이미 존재하는 앰비언트 컨텍스트에서 사용할 수 없습니다.", - "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "데코레이터는 오버로드가 아니라 메서드 구현만 데코레이팅할 수 있습니다.", - "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' 절은 'switch' 문에 두 번 이상 나올 수 없습니다.", - "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319": "기본 내보내기는 ECMAScript 스타일 모듈에서만 사용할 수 있습니다.", - "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "기본 내보내기 수준은 파일 또는 모듈 선언의 최상위 수준에 있어야 합니다.", - "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "이 컨텍스트에서는 한정된 할당 어설션 '!'가 허용되지 않습니다.", - "A_destructuring_declaration_must_have_an_initializer_1182": "구조 파괴 선언에 이니셜라이저가 있어야 합니다.", - "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3의 동적 가져오기 호출에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", - "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "동적 가져오기 호출은 'Promise'를 반환합니다. 'Promise'에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", - "A_file_cannot_have_a_reference_to_itself_1006": "파일은 자신에 대한 참조를 포함할 수 없습니다.", - "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "'never'를 반환하는 함수에는 연결 가능한 끝점이 있을 수 없습니다.", - "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "'new' 키워드로 호출한 함수에는 'void'인 'this' 형식을 사용할 수 없습니다.", - "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "선언된 형식이 'void'도 'any'도 아닌 함수는 값을 반환해야 합니다.", - "A_generator_cannot_have_a_void_type_annotation_2505": "생성기에는 'void' 형식 주석을 사용할 수 없습니다.", - "A_get_accessor_cannot_have_parameters_1054": "'get' 접근자에는 매개 변수를 사용할 수 없습니다.", - "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "get 접근자는 최소한 setter의 액세스 가능 수준과 같아야 합니다.", - "A_get_accessor_must_return_a_value_2378": "'get' 접근자는 값을 반환해야 합니다.", - "A_label_is_not_allowed_here_1344": "여기서는 레이블을 사용할 수 없습니다.", - "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086": "레이블이 지정된 튜플 요소는 형식 뒤가 아니라 이름 뒤이면서 콜론 앞에 물음표를 사용하여 optional로 선언됩니다.", - "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087": "레이블이 지정된 튜플 요소는 형식 앞이 아니라 이름 앞에 '...'을 사용하여 rest로 선언됩니다.", - "A_mapped_type_may_not_declare_properties_or_methods_7061": "매핑된 형식은 속성 또는 메서드를 선언할 수 없습니다.", - "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651": "열거형 선언의 멤버 이니셜라이저는 그 뒤에 선언된 멤버와 다른 열거형에 정의된 멤버를 참조할 수 없습니다.", - "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545": "mixin 클래스에는 'any[]' 형식의 rest 매개 변수 하나를 사용하는 생성자가 있어야 합니다.", - "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797": "추상 구문 시그니처를 포함하는 형식 변수에서 확장되는 mixin 클래스는 'abstract'로도 선언되어야 합니다.", - "A_module_cannot_have_multiple_default_exports_2528": "모듈에는 기본 내보내기가 여러 개 있을 수 없습니다.", - "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "네임스페이스 선언은 해당 선언이 병합된 클래스나 함수와 다른 파일에 있을 수 없습니다,", - "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "네임스페이스 선언은 해당 선언이 병합된 클래스나 함수 앞에 있을 수 없습니다.", - "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "네임스페이스 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 허용됩니다.", - "A_non_dry_build_would_build_project_0_6357": "-dry가 아닌 빌드는 프로젝트 '{0}'을(를) 빌드합니다.", - "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "-dry가 아닌 빌드는 다음 파일을 삭제합니다. {0}", - "A_non_dry_build_would_update_output_of_project_0_6375": "DRY가 아닌 빌드는 '{0}' 프로젝트의 출력을 업데이트합니다.", - "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "DRY가 아닌 빌드는 '{0}' 프로젝트의 출력 타임스탬프를 업데이트합니다.", - "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "매개 변수 이니셜라이저는 함수 또는 생성자 구현에서만 허용됩니다.", - "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "rest 매개 변수를 사용하여 매개 변수 속성을 선언할 수 없습니다.", - "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "매개 변수 속성은 생성자 구현에서만 허용됩니다.", - "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "바인딩 패턴을 사용하여 매개 변수 속성을 선언할 수 없습니다.", - "A_promise_must_have_a_then_method_1059": "프라미스에는 'then' 메서드가 있어야 합니다.", - "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "형식이 'unique symbol' 형식인 클래스의 속성은 'static'과 'readonly' 둘 다여야 합니다.", - "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "형식이 'unique symbol' 형식인 인터페이스 또는 형식 리터럴의 속성은 'readonly'여야 합니다.", - "A_required_element_cannot_follow_an_optional_element_1257": "필수 요소는 선택적 요소 뒤에 올 수 없습니다.", - "A_required_parameter_cannot_follow_an_optional_parameter_1016": "필수 매개 변수는 선택적 매개 변수 뒤에 올 수 없습니다.", - "A_rest_element_cannot_contain_a_binding_pattern_2501": "rest 요소에는 바인딩 패턴이 포함될 수 없습니다.", - "A_rest_element_cannot_follow_another_rest_element_1265": "rest 요소는 다른 rest 요소 뒤에 올 수 없습니다.", - "A_rest_element_cannot_have_a_property_name_2566": "rest 요소에는 속성 이름을 사용할 수 없습니다.", - "A_rest_element_cannot_have_an_initializer_1186": "rest 요소에는 이니셜라이저를 사용할 수 없습니다.", - "A_rest_element_must_be_last_in_a_destructuring_pattern_2462": "rest 요소는 배열 구조 파괴 패턴의 마지막 요소여야 합니다.", - "A_rest_element_type_must_be_an_array_type_2574": "rest 요소 형식은 배열 형식이어야 합니다.", - "A_rest_parameter_cannot_be_optional_1047": "rest 매개 변수는 선택 사항이 될 수 없습니다.", - "A_rest_parameter_cannot_have_an_initializer_1048": "rest 매개 변수에는 이니셜라이저를 사용할 수 없습니다.", - "A_rest_parameter_must_be_last_in_a_parameter_list_1014": "rest 매개 변수는 매개 변수 목록 마지막에 있어야 합니다.", - "A_rest_parameter_must_be_of_an_array_type_2370": "rest 매개 변수는 배열 형식이어야 합니다.", - "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "rest 매개 변수 또는 바인딩 패턴에 후행 쉼표가 없을 수 있습니다.", - "A_return_statement_can_only_be_used_within_a_function_body_1108": "'return' 문은 함수 본문 내에서만 사용할 수 있습니다.", - "A_return_statement_cannot_be_used_inside_a_class_static_block_18041": "'return' 문은 클래스 정적 블록 내에서 사용할 수 없습니다.", - "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "가져오기를 'baseUrl'에 상대적인 조회 위치로 다시 매핑하는 일련의 항목입니다.", - "A_set_accessor_cannot_have_a_return_type_annotation_1095": "'set' 접근자에는 반환 형식 주석을 사용할 수 없습니다.", - "A_set_accessor_cannot_have_an_optional_parameter_1051": "'set' 접근자에는 선택적 매개 변수를 사용할 수 없습니다.", - "A_set_accessor_cannot_have_rest_parameter_1053": "'set' 접근자에는 rest 매개 변수를 사용할 수 없습니다.", - "A_set_accessor_must_have_exactly_one_parameter_1049": "'set' 접근자에는 매개 변수를 하나만 사용해야 합니다.", - "A_set_accessor_parameter_cannot_have_an_initializer_1052": "'set' 접근자 매개 변수에는 이니셜라이저를 사용할 수 없습니다.", - "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "확산 인수는 튜플 유형을 가지거나 나머지 매개 변수로 전달되어야 합니다.", - "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "'super' 호출은 초기화된 속성, 매개 변수 속성 또는 개인 식별자를 포함하는 파생 클래스의 생성자 내에서 루트 수준 문이어야 합니다.", - "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "파생 클래스에 초기화된 속성, 매개 변수 속성 또는 개인 식별자가 포함된 경우 'super' 호출은 '수퍼' 또는 'this'를 참조하는 생성자의 첫 번째 명령문이어야 합니다.", - "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "'this' 기반 형식 가드는 매개 변수 기반 형식 가드와 호환되지 않습니다.", - "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 형식은 클래스 또는 인터페이스의 비정적 멤버에서만 사용할 수 있습니다.", - "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 파일이 이미 '{0}'에 정의되어 있습니다.", - "A_tuple_member_cannot_be_both_optional_and_rest_5085": "튜플 멤버는 optional이면서 rest일 수 없습니다.", - "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "튜플 형식은 음수 값으로 인덱싱할 수 없습니다.", - "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "지수 식의 왼쪽에는 type assertion expression을 사용할 수 없습니다. 식을 괄호로 묶는 것이 좋습니다.", - "A_type_literal_property_cannot_have_an_initializer_1247": "형식 리터럴 속성에는 이니셜라이저를 사용할 수 없습니다.", - "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "형식 전용 가져오기는 기본 가져오기 또는 명명된 바인딩을 지정할 수 있지만, 둘 다 지정할 수는 없습니다.", - "A_type_predicate_cannot_reference_a_rest_parameter_1229": "형식 조건자는 rest 매개 변수를 참조할 수 없습니다.", - "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "형식 조건자는 바인딩 패턴에서 '{0}' 요소를 참조할 수 없습니다.", - "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "형식 조건자는 함수 및 메서드의 반환 형식 위치에서만 사용할 수 있습니다.", - "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "형식 조건자의 형식을 해당 매개 변수의 형식에 할당할 수 있어야 합니다.", - "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "데코레이팅된 서명에서 참조하는 유형은 'isolatedModules' 및 'emitDecoratorMetadata'가 활성화된 경우 '가져오기 유형' 또는 네임스페이스 가져오기를 사용하여 가져와야 합니다.", - "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "형식이 'unique symbol' 형식인 변수는 'const'여야 합니다.", - "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "'yield' 식은 생성기 본문에서만 사용할 수 있습니다.", - "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "super 식을 통해 '{1}' 클래스의 추상 메서드 '{0}'에 액세스할 수 없습니다.", - "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "추상 메서드는 추상 클래스 내에서만 사용할 수 있습니다.", - "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "생성자에서 '{1}' 클래스의 추상 속성 '{0}'에 액세스할 수 없습니다.", - "Accessibility_modifier_already_seen_1028": "액세스 가능성 한정자가 이미 있습니다.", - "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "접근자는 ECMAScript 5 이상을 대상으로 지정할 때만 사용할 수 있습니다.", - "Accessors_must_both_be_abstract_or_non_abstract_2676": "접근자는 모두 추상이거나 비추상이어야 합니다.", - "Add_0_to_unresolved_variable_90008": "확인되지 않은 변수에 '{0}.' 추가", - "Add_a_return_statement_95111": "return 문 추가", - "Add_all_missing_async_modifiers_95041": "누락된 모든 'async' 한정자 추가", - "Add_all_missing_attributes_95168": "누락된 특성 모두 추가", - "Add_all_missing_call_parentheses_95068": "누락된 호출 괄호 모두 추가", - "Add_all_missing_function_declarations_95157": "누락된 함수 선언 모두 추가", - "Add_all_missing_imports_95064": "누락된 모든 가져오기 추가", - "Add_all_missing_members_95022": "누락된 모든 멤버 추가", - "Add_all_missing_override_modifiers_95162": "누락된 모든 'override' 한정자 추가", - "Add_all_missing_properties_95166": "누락된 모든 속성 추가", - "Add_all_missing_return_statement_95114": "누락된 모든 return 문 추가", - "Add_all_missing_super_calls_95039": "누락된 모든 super 호출 추가", - "Add_async_modifier_to_containing_function_90029": "포함된 함수에 async 한정자 추가", - "Add_await_95083": "'await' 추가", - "Add_await_to_initializer_for_0_95084": "'{0}'의 이니셜라이저에 'await' 추가", - "Add_await_to_initializers_95089": "이니셜라이저에 'await' 추가", - "Add_braces_to_arrow_function_95059": "화살표 함수에 중괄호 추가", - "Add_const_to_all_unresolved_variables_95082": "확인되지 않은 모든 변수에 'const' 추가", - "Add_const_to_unresolved_variable_95081": "확인되지 않은 변수에 'const' 추가", - "Add_definite_assignment_assertion_to_property_0_95020": "'{0}' 속성에 한정된 할당 어설션 추가", - "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "초기화되지 않은 모든 속성에 한정된 할당 어설션 추가", - "Add_export_to_make_this_file_into_a_module_95097": "'export {}'를 추가하여 이 파일을 모듈로 만들기", - "Add_extends_constraint_2211": "`extends` 제약 조건을 추가합니다.", - "Add_extends_constraint_to_all_type_parameters_2212": "모든 형식 매개 변수에 `extends` 제약 조건 추가", - "Add_import_from_0_90057": "\"{0}\"에서 가져오기 추가", - "Add_index_signature_for_property_0_90017": "'{0}' 속성에 대해 인덱스 시그니처 추가", - "Add_initializer_to_property_0_95019": "'{0}' 속성에 이니셜라이저 추가", - "Add_initializers_to_all_uninitialized_properties_95027": "초기화되지 않은 모든 속성에 이니셜라이저 추가", - "Add_missing_attributes_95167": "누락된 특성 추가", - "Add_missing_call_parentheses_95067": "누락된 호출 괄호 추가", - "Add_missing_enum_member_0_95063": "누락된 열거형 멤버 '{0}' 추가", - "Add_missing_function_declaration_0_95156": "누락된 함수 선언 '{0}' 추가", - "Add_missing_new_operator_to_all_calls_95072": "모든 호출에 누락된 'new' 연산자 추가", - "Add_missing_new_operator_to_call_95071": "호출에 누락된 'new' 연산자 추가", - "Add_missing_properties_95165": "누락된 속성 추가", - "Add_missing_super_call_90001": "누락된 'super()' 호출 추가", - "Add_missing_typeof_95052": "누락된 'typeof' 추가", - "Add_names_to_all_parameters_without_names_95073": "이름이 없는 모든 매개 변수에 이름 추가", - "Add_or_remove_braces_in_an_arrow_function_95058": "화살표 함수에 중괄호 추가 또는 제거", - "Add_override_modifier_95160": "'override' 한정자 추가", - "Add_parameter_name_90034": "매개 변수 이름 추가", - "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "멤버 이름과 일치하는 모든 확인되지 않은 변수에 한정자 추가", - "Add_to_all_uncalled_decorators_95044": "호출되지 않는 모든 데코레이터에 '()' 추가", - "Add_ts_ignore_to_all_error_messages_95042": "모든 오류 메시지에 '@ts-ignore' 추가", - "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "인덱스를 사용하여 액세스할 때 유형에 'undefined'를 추가합니다.", - "Add_undefined_to_optional_property_type_95169": "선택적 속성 유형에 'undefined' 추가", - "Add_undefined_type_to_all_uninitialized_properties_95029": "초기화되지 않은 모든 속성에 정의되지 않은 형식 추가", - "Add_undefined_type_to_property_0_95018": "'{0}' 속성에 '정의되지 않은' 형식 추가", - "Add_unknown_conversion_for_non_overlapping_types_95069": "겹치지 않는 형식에 대해 'unknown' 변환 추가", - "Add_unknown_to_all_conversions_of_non_overlapping_types_95070": "겹치지 않는 형식의 모든 변환에 'unknown' 추가", - "Add_void_to_Promise_resolved_without_a_value_95143": "값 없이 확인된 Promise에 'void' 추가", - "Add_void_to_all_Promises_resolved_without_a_value_95144": "값 없이 확인된 모든 Promise에 'void' 추가", - "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068": "tsconfig.json 파일을 추가하면 TypeScript 파일과 JavaScript 파일이 둘 다 포함된 프로젝트를 정리하는 데 도움이 됩니다. 자세한 내용은 https://aka.ms/tsconfig를 참조하세요.", - "All_declarations_of_0_must_have_identical_constraints_2838": "'{0}'의 모든 선언에는 동일한 제약 조건이 있어야 합니다.", - "All_declarations_of_0_must_have_identical_modifiers_2687": "'{0}'의 모든 선언에는 동일한 한정자가 있어야 합니다.", - "All_declarations_of_0_must_have_identical_type_parameters_2428": "'{0}'의 모든 선언에는 동일한 형식 매개 변수가 있어야 합니다.", - "All_declarations_of_an_abstract_method_must_be_consecutive_2516": "추상 메서드의 모든 선언은 연속적이어야 합니다.", - "All_destructured_elements_are_unused_6198": "구조 파괴된 요소가 모두 사용되지 않습니다.", - "All_imports_in_import_declaration_are_unused_6192": "가져오기 선언의 모든 가져오기가 사용되지 않습니다.", - "All_type_parameters_are_unused_6205": "모든 형식 매개 변수가 사용되지 않습니다.", - "All_variables_are_unused_6199": "모든 변수가 사용되지 않습니다.", - "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "JavaScript 파일이 프로그램의 일부가 되도록 허용합니다. 이러한 파일에서 오류를 가져오려면 'checkJS' 옵션을 사용하세요.", - "Allow_accessing_UMD_globals_from_modules_6602": "모듈에서 UMD 전역에 대한 액세스를 허용합니다.", - "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "기본 내보내기가 없는 모듈에서 기본 가져오기를 허용합니다. 여기서는 코드 내보내기에는 영향을 주지 않고 형식 검사만 합니다.", - "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "모듈에 기본 내보내기가 없을 때 'y에서 x 가져오기'를 허용합니다.", - "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "tslib에서 도우미 함수를 파일별로 포함하는 대신 프로젝트당 한 번씩 가져오도록 허용합니다.", - "Allow_javascript_files_to_be_compiled_6102": "Javascript 파일을 컴파일하도록 허용합니다.", - "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "모듈을 확인할 때 여러 폴더가 하나로 처리되도록 허용합니다.", - "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "이미 포함된 '{0}' 파일 이름은 '{1}' 파일 이름과 대/소문자만 다릅니다.", - "Ambient_module_declaration_cannot_specify_relative_module_name_2436": "앰비언트 모듈 선언은 상대적 모듈 이름을 지정할 수 없습니다.", - "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435": "앰비언트 모듈은 다른 모듈 또는 네임스페이스에 중첩될 수 없습니다.", - "An_AMD_module_cannot_have_multiple_name_assignments_2458": "AMD 모듈에는 여러 이름이 할당될 수 없습니다.", - "An_abstract_accessor_cannot_have_an_implementation_1318": "추상 접근자는 구현이 있을 수 없습니다.", - "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "접근성 한정자는 프라이빗 식별자와 함께 사용할 수 없습니다.", - "An_accessor_cannot_have_type_parameters_1094": "접근자에는 형식 매개 변수를 사용할 수 없습니다.", - "An_accessor_property_cannot_be_declared_optional_1276": "'accessor' 속성은 선택 사항으로 선언할 수 없습니다.", - "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "앰비언트 모듈 선언은 파일의 최상위에서만 사용할 수 있습니다.", - "An_argument_for_0_was_not_provided_6210": "'{0}'의 인수가 제공되지 않았습니다.", - "An_argument_matching_this_binding_pattern_was_not_provided_6211": "이 바인딩 패턴과 일치하는 인수가 제공되지 않았습니다.", - "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "산술 피연산자는 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", - "An_arrow_function_cannot_have_a_this_parameter_2730": "화살표 함수에는 'this' 매개 변수를 사용할 수 없습니다.", - "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3의 비동기 함수 또는 메서드에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", - "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "비동기 함수 또는 메서드는 'Promise'를 반환해야 합니다. 'Promise'에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", - "An_async_iterator_must_have_a_next_method_2519": "비동기 반복기에는 'next()' 메서드가 있어야 합니다.", - "An_element_access_expression_should_take_an_argument_1011": "요소 액세스 식은 인수를 사용해야 합니다.", - "An_enum_member_cannot_be_named_with_a_private_identifier_18024": "프라이빗 식별자를 사용하여 열거형 멤버 이름을 지정할 수 없습니다.", - "An_enum_member_cannot_have_a_numeric_name_2452": "열거형 멤버는 숫자 이름을 가질 수 없습니다.", - "An_enum_member_name_must_be_followed_by_a_or_1357": "열거형 멤버 이름 뒤에는 ',', '=' 또는 '}'가 와야 합니다.", - "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928": "가능한 모든 컴파일러 옵션을 보여 주는 이 정보의 확장된 버전", - "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309": "내보내기 할당은 다른 내보낸 요소가 있는 모듈에서 사용될 수 없습니다.", - "An_export_assignment_cannot_be_used_in_a_namespace_1063": "내보내기 할당은 네임스페이스에서 사용될 수 없습니다.", - "An_export_assignment_cannot_have_modifiers_1120": "내보내기 할당에는 한정자를 사용할 수 없습니다.", - "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "내보내기 할당은 파일 또는 모듈 선언의 최상위 수준에 있어야 합니다.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "내보내기 선언은 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "내보내기 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "An_export_declaration_cannot_have_modifiers_1193": "내보내기 선언에는 한정자를 사용할 수 없습니다.", - "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "'void' 형식 식의 truthiness를 테스트할 수 없습니다.", - "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "확장된 유니코드 이스케이프 값은 0x0과 0x10FFFF(포함) 사이여야 합니다.", - "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "식별자 또는 키워드는 숫자 리터럴 바로 뒤에 올 수 없습니다.", - "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "앰비언트 컨텍스트에서는 구현을 선언할 수 없습니다.", - "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "가져오기 별칭은 '내보내기 형식'을 사용하여 내보낸 선언을 참조할 수 없습니다.", - "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "가져오기 별칭은 '가져오기 형식'을 사용하여 가져온 선언을 참조할 수 없습니다.", - "An_import_alias_cannot_use_import_type_1392": "가져오기 별칭은 'import type'을 사용할 수 없습니다.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "가져오기 선언은 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "가져오기 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "An_import_declaration_cannot_have_modifiers_1191": "가져오기 선언에는 한정자를 사용할 수 없습니다.", - "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "가져오기 경로는 '{0}' 확장으로 끝날 수 없습니다. 대신 '{1}' 가져오기를 고려하세요.", - "An_index_signature_cannot_have_a_rest_parameter_1017": "인덱스 시그니처에는 rest 매개 변수를 사용할 수 없습니다.", - "An_index_signature_cannot_have_a_trailing_comma_1025": "인덱스 시그니처에는 후행 쉼표를 사용할 수 없습니다.", - "An_index_signature_must_have_a_type_annotation_1021": "인덱스 시그니처에는 형식 주석을 사용할 수 없습니다.", - "An_index_signature_must_have_exactly_one_parameter_1096": "인덱스 시그니처에는 한 개의 매개 변수만 사용할 수 있습니다.", - "An_index_signature_parameter_cannot_have_a_question_mark_1019": "인덱스 시그니처 매개 변수에는 물음표를 사용할 수 없습니다.", - "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018": "인덱스 시그니처 매개 변수에는 액세스 가능성 한정자를 사용할 수 없습니다.", - "An_index_signature_parameter_cannot_have_an_initializer_1020": "인덱스 시그니처 매개 변수에는 이니셜라이저를 사용할 수 없습니다.", - "An_index_signature_parameter_must_have_a_type_annotation_1022": "인덱스 시그니처 매개 변수에는 형식 주석을 사용할 수 없습니다.", - "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337": "인덱스 시그니처 매개 변수 형식은 리터럴 유형이나 제네릭 형식일 수 없습니다. 대신 매핑된 개체 형식을 사용하세요.", - "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "인덱스 시그니처 매개 변수 형식은 'string', 'number', 'symbol' 또는 템플릿 리터럴 형식이어야 합니다.", - "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "인스턴스화 식 뒤에 속성 액세스가 있을 수 없습니다.", - "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "인터페이스는 선택적 형식 인수가 포함된 식별자/정규화된 이름만 확장할 수 있습니다.", - "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "인터페이스는 개체 형식 또는 정적으로 알려진 멤버가 포함된 개체 형식의 교집합만 확장할 수 있습니다.", - "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "인터페이스는 '{0}' 같은 기본 형식을 확장할 수 없습니다. 인터페이스는 명명된 형식 및 클래스만 확장할 수 있습니다.", - "An_interface_property_cannot_have_an_initializer_1246": "인터페이스 속성에는 이니셜라이저를 사용할 수 없습니다.", - "An_iterator_must_have_a_next_method_2489": "반복기에는 'next()' 메서드가 있어야 합니다.", - "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "@jsx pragma를 JSX 조각과 함께 사용하는 경우에는 @jsxFrag pragma가 필요합니다.", - "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "개체 리터럴에 이름이 같은 여러 개의 get/set 접근자를 사용할 수 없습니다.", - "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "개체 리터럴은 이름이 같은 여러 속성을 가질 수 없습니다.", - "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "개체 리터럴에 이름이 같은 속성과 접근자를 사용할 수 없습니다.", - "An_object_member_cannot_be_declared_optional_1162": "개체 멤버는 선택적으로 선언될 수 없습니다.", - "An_optional_chain_cannot_contain_private_identifiers_18030": "선택적 체인에는 프라이빗 식별자를 사용할 수 없습니다.", - "An_optional_element_cannot_follow_a_rest_element_1266": "선택적 요소는 rest 요소 뒤에 올 수 없습니다.", - "An_outer_value_of_this_is_shadowed_by_this_container_2738": "'this'의 외부 값은 이 컨테이너에서 섀도 처리됩니다.", - "An_overload_signature_cannot_be_declared_as_a_generator_1222": "오버로드 시그니처는 생성기로 선언할 수 없습니다.", - "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "지수 식의 왼쪽에는 '{0}' 연산자가 있는 단항 식을 사용할 수 없습니다. 식을 괄호로 묶는 것이 좋습니다.", - "Annotate_everything_with_types_from_JSDoc_95043": "JSDoc의 형식을 사용하여 모든 항목에 주석 달기", - "Annotate_with_type_from_JSDoc_95009": "JSDoc의 형식을 사용하여 주석 추가", - "Another_export_default_is_here_2753": "다른 내보내기 기본값은 여기에 있습니다.", - "Are_you_missing_a_semicolon_2734": "세미콜론이 없습니까?", - "Argument_expression_expected_1135": "인수 식이 필요합니다.", - "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' 옵션의 인수는 {1}이어야(여야) 합니다.", - "Argument_of_dynamic_import_cannot_be_spread_element_1325": "동적 가져오기의 인수는 spread 요소일 수 없습니다.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "'{0}' 형식의 인수는 '{1}' 형식의 매개 변수에 할당될 수 없습니다.", - "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "'{0}' 유형의 인수는 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형의 매개 변수에 할당할 수 없습니다. 대상 속성의 유형에 'undefined'를 추가하는 것을 고려하세요.", - "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "REST 매개 변수 '{0}'에 대한 인수가 제공되지 않았습니다.", - "Array_element_destructuring_pattern_expected_1181": "배열 요소 구조 파괴 패턴이 필요합니다.", - "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "어설션에서 호출 대상의 모든 이름은 명시적 형식 주석을 사용하여 선언해야 합니다.", - "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "어설션에서 호출 대상은 식별자 또는 정규화된 이름이어야 합니다.", - "Asterisk_Slash_expected_1010": "'*/'가 필요합니다.", - "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "전역 범위에 대한 확대는 외부 모듈 또는 앰비언트 모듈 선언에만 직접 중첩될 수 있습니다.", - "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "전역 범위에 대한 확대는 이미 존재하는 앰비언트 컨텍스트에 표시되지 않는 한 'declare' 한정자를 포함해야 합니다.", - "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "프로젝트 '{0}'에서 입력에 대한 자동 검색을 사용하도록 설정되었습니다. '{2}' 캐시 위치를 사용하여 모듈 '{1}'에 대해 추가 해결 패스를 실행합니다.", - "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Await 식은 클래스 정적 블록 내에서 사용할 수 없습니다.", - "BUILD_OPTIONS_6919": "빌드 옵션", - "Backwards_Compatibility_6253": "이전 버전과의 호환성", - "Base_class_expressions_cannot_reference_class_type_parameters_2562": "기본 클래스 식에서 클래스 형식 매개 변수를 참조할 수 없습니다.", - "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509": "기본 생성자 반환 형식 '{0}'은(는) 개체 형식 또는 정적으로 알려진 멤버가 포함된 개체 형식의 교집합이 아닙니다.", - "Base_constructors_must_all_have_the_same_return_type_2510": "기본 생성자는 모두 반환 형식이 같아야 합니다.", - "Base_directory_to_resolve_non_absolute_module_names_6083": "비추상 모듈 이름을 확인할 기본 디렉터리입니다.", - "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "ES2020 미만을 대상으로 할 경우 bigint 리터럴을 사용할 수 없습니다.", - "Binary_digit_expected_1177": "이진수가 있어야 합니다.", - "Binding_element_0_implicitly_has_an_1_type_7031": "바인딩 요소 '{0}'에 암시적으로 '{1}' 형식이 있습니다.", - "Block_scoped_variable_0_used_before_its_declaration_2448": "선언 전에 사용된 블록 범위 변수 '{0}'입니다.", - "Build_a_composite_project_in_the_working_directory_6925": "작업 디렉터리에서 복합 프로젝트를 빌드합니다.", - "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "최신으로 보이는 프로젝트를 포함하여 모든 프로젝트를 빌드합니다.", - "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "최신 상태가 아닌 경우, 하나 이상의 프로젝트 및 해당 종속성 빌드", - "Build_option_0_requires_a_value_of_type_1_5073": "빌드 옵션 '{0}'에 {1} 형식의 값이 필요합니다.", - "Building_project_0_6358": "'{0}' 프로젝트를 빌드하는 중...", - "COMMAND_LINE_FLAGS_6921": "명령줄 플래그", - "COMMON_COMMANDS_6916": "일반 명령", - "COMMON_COMPILER_OPTIONS_6920": "일반 컴파일러 옵션", - "Call_decorator_expression_90028": "데코레이터 식 호출", - "Call_signature_return_types_0_and_1_are_incompatible_2202": "호출 시그니처 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", - "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "반환 형식 주석이 없는 호출 시그니처에는 암시적으로 'any' 반환 형식이 포함됩니다.", - "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "인수가 없는 호출 시그니처의 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", - "Call_target_does_not_contain_any_signatures_2346": "호출 대상에 시그니처가 포함되어 있지 않습니다.", - "Can_only_convert_logical_AND_access_chains_95142": "논리적 AND 액세스 체인만 변환할 수 있습니다.", - "Can_only_convert_named_export_95164": "명명된 내보내기만 변환할 수 있습니다.", - "Can_only_convert_property_with_modifier_95137": "한정자만 사용하여 속성을 변환할 수 있습니다.", - "Can_only_convert_string_concatenation_95154": "문자열 연결만 변환할 수 있습니다.", - "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "'{0}'이(가) 네임스페이스가 아니라 형식이므로 '{0}.{1}'에 액세스할 수 없습니다. '{0}'에서 '{0}[\"{1}\"]'과(와) 함께 '{1}' 속성의 형식을 검색하려고 했나요?", - "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "'--isolatedModules' 플래그가 제공된 경우 앰비언트 const 열거형에 액세스할 수 없습니다.", - "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "'{0}' 생성자 형식을 '{1}' 생성자 형식에 할당할 수 없습니다.", - "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "추상 생성자 형식을 비추상 생성자 형식에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_a_class_2629": "클래스이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_a_constant_2588": "상수이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_a_function_2630": "함수이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_a_namespace_2631": "네임스페이스이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_a_read_only_property_2540": "읽기 전용 속성이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_an_enum_2628": "열거형이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_an_import_2632": "가져오기이므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_0_because_it_is_not_a_variable_2539": "변수가 아니므로 '{0}'에 할당할 수 없습니다.", - "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803": "프라이빗 메서드 '{0}'에 할당할 수 없습니다. 프라이빗 메서드에는 쓸 수 없습니다.", - "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671": "'{0}' 모듈은 모듈이 아닌 엔터티로 확인되므로 확대할 수 없습니다.", - "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649": "모듈이 아닌 엔터티로 확인되기 때문에 값 내보내기로 모듈 '{0}'을(를) 확대할 수 없습니다.", - "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131": "'--module' 플래그가 'amd' 또는 'system'이 아닌 경우 '{0}' 옵션을 사용하여 모듈을 컴파일할 수 없습니다.", - "Cannot_create_an_instance_of_an_abstract_class_2511": "추상 클래스의 인스턴스를 만들 수 없습니다.", - "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 포함 생성기는 항상 '{0}'을(를) 전송하므로 값에 반복을 위임할 수 없습니다.", - "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661": "'{0}'을(를) 내보낼 수 없습니다. 지역 선언만 모듈에서 내보낼 수 있습니다.", - "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675": "'{0}' 클래스를 확장할 수 없습니다. 클래스 생성자가 private로 표시되어 있습니다.", - "Cannot_extend_an_interface_0_Did_you_mean_implements_2689": "인터페이스 '{0}'을(를) 확장할 수 없습니다. 'implements'를 확장하시겠습니까?", - "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081": "현재 디렉터리에서 tsconfig.json 파일을 찾을 수 없습니다. {0}.", - "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "지정된 디렉터리에서 tsconfig.json 파일을 찾을 수 없습니다. '{0}'.", - "Cannot_find_global_type_0_2318": "전역 형식 '{0}'을(를) 찾을 수 없습니다.", - "Cannot_find_global_value_0_2468": "전역 값 '{0}'을(를) 찾을 수 없습니다.", - "Cannot_find_lib_definition_for_0_2726": "'{0}'에 대한 라이브러리 정의를 찾을 수 없습니다.", - "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}'에 대한 라이브러리 정의를 찾을 수 없습니다. '{1}'이(가) 아닌지 확인하세요.", - "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "'{0}' 모듈을 찾을 수 없습니다. '--resolveJsonModule'을 사용하여 '. json' 확장명이 포함된 모듈을 가져오는 것이 좋습니다.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "'{0}' 모듈을 찾을 수 없습니다. 'moduleResolution' 옵션을 'node'로 설정하거나 'paths' 옵션에 별칭을 추가하려고 하셨습니까?", - "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "'{0}' 모듈 또는 해당 형식 선언을 찾을 수 없습니다.", - "Cannot_find_name_0_2304": "'{0}' 이름을 찾을 수 없습니다.", - "Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?", - "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "'{0}' 이름을 찾을 수 없습니다. 인스턴스 멤버 'this.{0}'을(를) 사용하시겠습니까?", - "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "'{0}' 이름을 찾을 수 없습니다. 정적 멤버 '{1}.{0}'을(를) 사용하시겠습니까?", - "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "이름 '{0}' 찾을 수 없습니다. 비동기 함수에 쓰려고 했나요?", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "'{0}' 이름을 찾을 수 없습니다. 대상 라이브러리를 변경하려는 경우 'lib' 컴파일러 옵션을 '{1}' 이상으로 변경해 보세요.", - "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "'{0}' 이름을 찾을 수 없습니다. 대상 라이브러리를 변경하려는 경우 'dom'을 포함하도록 'lib' 컴파일러 옵션을 변경해 보세요.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "'{0}' 이름을 찾을 수 없습니다. 테스트 실행기의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jest' 또는 'npm i --save-dev @types/mocha'를 시도합니다.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "'{0}' 이름을 찾을 수 없습니다. 테스트 실행기의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jest' 또는 'npm i --save-dev @types/mocha'를 시도한 다음, tsconfig의 형식 필드에 'jest' 또는 'mocha'를 추가하세요.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "'{0}' 이름을 찾을 수 없습니다. jQuery의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jquery'를 시도합니다.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592": "'{0}' 이름을 찾을 수 없습니다. jQuery의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jquery'를 시도한 다음, tsconfig의 형식 필드에 'jquery'를 추가하세요.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580": "'{0}' 이름을 찾을 수 없습니다. 노드의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/node'를 시도합니다.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591": "'{0}' 이름을 찾을 수 없습니다. 노드의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/node'를 시도한 다음, tsconfig의 형식 필드에 'node'를 추가하세요.", - "Cannot_find_namespace_0_2503": "'{0}' 네임스페이스를 찾을 수 없습니다.", - "Cannot_find_namespace_0_Did_you_mean_1_2833": "네임스페이스 '{0}'을(를) 찾을 수 없습니다. '{1}'을(를) 의미했나요?", - "Cannot_find_parameter_0_1225": "'{0}' 매개 변수를 찾을 수 없습니다.", - "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009": "입력 파일의 공용 하위 디렉터리 경로를 찾을 수 없습니다.", - "Cannot_find_type_definition_file_for_0_2688": "'{0}'에 대한 형식 정의 파일을 찾을 수 없습니다.", - "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137": "형식 선언 파일을 가져올 수 없습니다. '{1}' 대신 '{0}'을(를) 가져오세요.", - "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481": "블록 범위 선언 '{1}'과(와) 동일한 범위 내에서 외부 범위 변수 '{0}'을(를) 초기화할 수 없습니다.", - "Cannot_invoke_an_object_which_is_possibly_null_2721": "'null'일 수 있는 개체를 호출할 수 없습니다.", - "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "'null'이거나 '정의되지 않음'일 수 있는 개체를 호출할 수 없습니다.", - "Cannot_invoke_an_object_which_is_possibly_undefined_2722": "'정의되지 않음'일 수 있는 개체를 호출할 수 없습니다.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 배열 구조 파괴는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 배열 spread는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", - "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 for-of는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", - "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'{0}' 프로젝트는 'outFile'이 설정되어 있지 않기 때문에 앞에 추가할 수 없습니다.", - "Cannot_read_file_0_5083": "'{0}' 파일을 읽을 수 없습니다.", - "Cannot_read_file_0_Colon_1_5012": "파일 '{0}'을(를) 읽을 수 없습니다. {1}.", - "Cannot_redeclare_block_scoped_variable_0_2451": "블록 범위 변수 '{0}'을(를) 다시 선언할 수 없습니다.", - "Cannot_redeclare_exported_variable_0_2323": "내보낸 변수 '{0}'을(를) 다시 선언할 수 없습니다.", - "Cannot_redeclare_identifier_0_in_catch_clause_2492": "catch 절에서 식별자 '{0}'을(를) 다시 선언할 수 없습니다.", - "Cannot_start_a_function_call_in_a_type_annotation_1441": "형식 주석에서 함수 호출을 시작할 수 없습니다.", - "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "'{1}' 파일을 읽는 동안 오류가 발생하여 '{0}' 프로젝트의 출력을 업데이트할 수 없습니다.", - "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "'--jsx' 플래그를 제공하지 않으면 JSX를 사용할 수 없습니다.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "'--isolatedModules' 플래그가 제공된 경우 형식 또는 형식 전용 네임스페이스에 '가져오기 내보내기'를 사용할 수 없습니다.", - "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "'--module'이 'none'인 경우 가져오기, 내보내기 또는 모듈 확대를 사용할 수 없습니다.", - "Cannot_use_namespace_0_as_a_type_2709": "'{0}' 네임스페이스를 형식으로 사용할 수 없습니다.", - "Cannot_use_namespace_0_as_a_value_2708": "'{0}' 네임스페이스를 값으로 사용할 수 없습니다.", - "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816": "데코레이팅된 클래스의 정적 속성 이니셜라이저에서는 'this'를 사용할 수 없습니다.", - "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377": "참조된 프로젝트 '{1}'에서 생성된 '.tsbuildinfo' 파일을 덮어쓰므로 '{0}' 파일을 쓸 수 없습니다.", - "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056": "'{0}' 파일은 여러 입력 파일로 덮어쓰이므로 쓸 수 없습니다.", - "Cannot_write_file_0_because_it_would_overwrite_input_file_5055": "'{0}' 파일은 입력 파일을 덮어쓰므로 쓸 수 없습니다.", - "Catch_clause_variable_cannot_have_an_initializer_1197": "Catch 절 변수에 이니셜라이저를 사용할 수 없습니다.", - "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196": "지정한 경우 catch 절 변수 형식 주석은 'any' 또는 'unknown'이어야 합니다.", - "Change_0_to_1_90014": "'{0}'을(를) '{1}'(으)로 변경", - "Change_all_extended_interfaces_to_implements_95038": "확장된 모든 인터페이스를 'implements'로 변경", - "Change_all_jsdoc_style_types_to_TypeScript_95030": "모든 jsdoc-style 형식을 TypeScript로 변경", - "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031": "모든 jsdoc-style 형식을 TypeScript로 변경(그리고 nullable 형식에 '| undefined' 추가)", - "Change_extends_to_implements_90003": "'extends'를 'implements'로 변경", - "Change_spelling_to_0_90022": "맞춤법을 '{0}'(으)로 변경", - "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "선언되었지만 생성자에 설정되지 않은 클래스 속성을 확인합니다.", - "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "'bind', 'call' 및 'apply' 메서드에 대한 인수가 원래 함수와 일치하는지 확인하세요.", - "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "'{0}'이(가) '{1}' - '{2}'에 대해 일치하는 가장 긴 접두사인지 확인하는 중입니다.", - "Circular_definition_of_import_alias_0_2303": "가져오기 별칭 '{0}'의 순환 정의입니다.", - "Circularity_detected_while_resolving_configuration_Colon_0_18000": "구성을 확인하는 동안 순환이 검색되었습니다. {0}", - "Circularity_originates_in_type_at_this_location_2751": "순환이 이 위치의 형식에서 시작됩니다.", - "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426": "'{0}' 클래스는 인스턴스 멤버 접근자 '{1}'을(를) 정의하지만 확장 클래스 '{2}'은(는) 이 접근자를 인스턴스 멤버 함수로 정의합니다.", - "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423": "'{0}' 클래스가 인스턴스 멤버 함수 '{1}'을(를) 정의하지만 확장 클래스 '{2}'은(는) 이 함수를 인스턴스 멤버 접근자로 정의합니다.", - "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425": "'{0}' 클래스가 인스턴스 멤버 속성 '{1}'을(를) 정의하지만 확장 클래스 '{2}'은(는) 이 속성을 인스턴스 멤버 함수로 정의합니다.", - "Class_0_incorrectly_extends_base_class_1_2415": "'{0}' 클래스가 기본 클래스 '{1}'을(를) 잘못 확장합니다.", - "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "'{0}' 클래스가 '{1}' 클래스를 잘못 구현합니다. '{1}'을(를) 확장하고 이 클래스의 멤버를 하위 클래스로 상속하시겠습니까?", - "Class_0_incorrectly_implements_interface_1_2420": "'{0}' 클래스가 '{1}' 인터페이스를 잘못 구현합니다.", - "Class_0_used_before_its_declaration_2449": "선언 전에 사용된 '{0}' 클래스입니다.", - "Class_constructor_may_not_be_a_generator_1368": "클래스 생성자는 생성기가 아닐 수 있습니다.", - "Class_constructor_may_not_be_an_accessor_1341": "클래스 생성자는 접근자가 아닐 수 있습니다.", - "Class_declaration_cannot_implement_overload_list_for_0_2813": "클래스 선언에서 '{0}'에 대한 오버로드 목록을 구현할 수 없습니다.", - "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "클래스 선언은 '@augments' 또는 '@extends' 태그를 둘 이상 가질 수 없습니다.", - "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "클래스 데코레이터는 정적 프라이빗 식별자와 함께 사용할 수 없습니다. 실험적 데코레이터를 제거하는 것이 좋습니다.", - "Class_name_cannot_be_0_2414": "클래스 이름은 '{0}'일 수 없습니다.", - "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "{0} 모듈을 사용하는 ES5를 대상으로 하는 경우 클래스 이름은 'Object'일 수 없습니다.", - "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "클래스 정적 측면 '{0}'이(가) 기본 클래스 정적 측면 '{1}'을(를) 잘못 확장합니다.", - "Classes_can_only_extend_a_single_class_1174": "클래스는 단일 클래스만 확장할 수 있습니다.", - "Classes_may_not_have_a_field_named_constructor_18006": "클래스에는 'constructor' 필드를 사용할 수 없습니다.", - "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "클래스에 포함된 코드는 '{0}'의 사용을 허용하지 않는 JavaScript의 strict 모드로 평가됩니다. 자세한 내용은 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode를 참조하세요.", - "Command_line_Options_6171": "명령줄 옵션", - "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "구성 파일에 대한 경로 또는 'tsconfig.json'이 포함된 폴더에 대한 경로를 고려하여 프로젝트를 컴파일합니다.", - "Compiler_Diagnostics_6251": "컴파일러 진단", - "Compiler_option_0_expects_an_argument_6044": "컴파일러 옵션 '{0}'에는 인수가 필요합니다.", - "Compiler_option_0_may_not_be_used_with_build_5094": "컴파일러 옵션 '--{0}'은(는) '-빌드'에서 사용되지 않을 수 있습니다.", - "Compiler_option_0_may_only_be_used_with_build_5093": "컴파일러 옵션 '--{0}'은(는) '-빌드'에서만 사용할 수 있습니다.", - "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "값 '{1}'의 컴파일러 옵션 '{0}'이(가) 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하세요. 'npm install -D typescript@next'로 업데이트해 보세요.", - "Compiler_option_0_requires_a_value_of_type_1_5024": "컴파일러 옵션 '{0}'에 {1} 형식의 값이 필요합니다.", - "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "컴파일러는 프라이빗 식별자 하위 수준을 내보낼 때 '{0}' 이름을 예약합니다.", - "Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "지정된 경로에 있는 TypeScript 프로젝트를 컴파일합니다.", - "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "현재 프로젝트(작업 디렉터리의 tsconfig.json)를 컴파일합니다.", - "Compiles_the_current_project_with_additional_settings_6929": "추가 설정을 사용하여 현재 프로젝트를 컴파일합니다.", - "Completeness_6257": "완성도", - "Composite_projects_may_not_disable_declaration_emit_6304": "복합 프로젝트는 선언 내보내기를 비활성화할 수 없습니다.", - "Composite_projects_may_not_disable_incremental_compilation_6379": "복합 프로젝트는 증분 컴파일을 비활성화할 수 없습니다.", - "Computed_from_the_list_of_input_files_6911": "입력 파일 목록에서 컴퓨팅됨", - "Computed_property_names_are_not_allowed_in_enums_1164": "컴퓨팅된 속성 이름은 열거형에 사용할 수 없습니다.", - "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "계산된 값은 문자열 값 멤버가 포함된 열거형에서 허용되지 않습니다.", - "Concatenate_and_emit_output_to_single_file_6001": "출력을 연결하고 단일 파일로 내보냅니다.", - "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "'{1}' 및 '{2}'에서 '{0}'에 대한 정의가 충돌하고 있습니다. 이 라이브러리의 특정 버전을 설치하여 충돌을 해결하세요.", - "Conflicts_are_in_this_file_6201": "이 파일에 충돌이 있습니다.", - "Consider_adding_a_declare_modifier_to_this_class_6506": "이 클래스에 'declare' 한정자를 추가하는 것이 좋습니다.", - "Construct_signature_return_types_0_and_1_are_incompatible_2203": "구문 시그니처 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", - "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013": "반환 형식 주석이 없는 구문 시그니처에는 암시적으로 'any' 반환 형식이 포함됩니다.", - "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205": "인수가 없는 구문 시그니처의 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", - "Constructor_implementation_is_missing_2390": "생성자 구현이 없습니다.", - "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673": "'{0}' 클래스의 생성자는 private이며 클래스 선언 내에서만 액세스할 수 있습니다.", - "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674": "'{0}' 클래스의 생성자는 protected이며 클래스 선언 내에서만 액세스할 수 있습니다.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386": "공용 구조체 형식에 사용되는 경우 생성자 형식 표기법을 괄호로 묶어야 합니다.", - "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388": "교집합 형식에 사용되는 경우 생성자 형식 표기법을 괄호로 묶어야 합니다.", - "Constructors_for_derived_classes_must_contain_a_super_call_2377": "파생 클래스의 생성자는 'super' 호출을 포함해야 합니다.", - "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "포함 파일이 지정되지 않았고 루트 디렉터리를 확인할 수 없어 'node_modules' 폴더 조회를 건너뜁니다.", - "Containing_function_is_not_an_arrow_function_95128": "포함 함수가 화살표 함수가 아닙니다.", - "Control_what_method_is_used_to_detect_module_format_JS_files_1475": "모듈 형식의 JS 파일을 감지하는 데 사용되는 방법을 제어합니다.", - "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "'{0}' 형식을 '{1}' 형식으로 변환한 작업은 실수일 수 있습니다. 두 형식이 서로 충분히 겹치지 않기 때문입니다. 의도적으로 변환한 경우에는 먼저 'unknown'으로 식을 변환합니다.", - "Convert_0_to_1_in_0_95003": "'{0}'을(를) '{0}의 {1}'(으)로 변환", - "Convert_0_to_mapped_object_type_95055": "'{0}'을(를) 매핑된 개체 형식으로 변환", - "Convert_all_const_to_let_95102": "모든 'const'를 'let'으로 변환", - "Convert_all_constructor_functions_to_classes_95045": "모든 생성자 함수를 클래스로 변환", - "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "값으로 사용되지 않는 모든 가져오기를 형식 전용 가져오기로 변환", - "Convert_all_invalid_characters_to_HTML_entity_code_95101": "모든 잘못된 문자를 HTML 엔터티 코드로 변환", - "Convert_all_re_exported_types_to_type_only_exports_1365": "다시 내보낸 모든 형식을 형식 전용 내보내기로 변환", - "Convert_all_require_to_import_95048": "모든 'require'를 'import'로 변환", - "Convert_all_to_async_functions_95066": "모두 비동기 함수로 변환", - "Convert_all_to_bigint_numeric_literals_95092": "모두 bigint 숫자 리터럴로 변환", - "Convert_all_to_default_imports_95035": "모든 항목을 기본 가져오기로 변환", - "Convert_all_type_literals_to_mapped_type_95021": "모든 형식 리터럴을 매핑된 형식으로 변환", - "Convert_arrow_function_or_function_expression_95122": "화살표 함수 또는 함수 식 변환", - "Convert_const_to_let_95093": "'const'를 'let'으로 변환", - "Convert_default_export_to_named_export_95061": "기본 내보내기를 명명된 내보내기로 변환", - "Convert_function_declaration_0_to_arrow_function_95106": "함수 선언 '{0}'을(를) 화살표 함수로 변환", - "Convert_function_expression_0_to_arrow_function_95105": "함수 식 '{0}'을(를) 화살표 함수로 변환", - "Convert_function_to_an_ES2015_class_95001": "함수를 ES2015 클래스로 변환", - "Convert_invalid_character_to_its_html_entity_code_95100": "잘못된 문자를 html 엔터티 코드로 변환", - "Convert_named_export_to_default_export_95062": "명명된 내보내기를 기본 내보내기로 변환", - "Convert_named_imports_to_default_import_95170": "명명된 가져오기를 기본 가져오기로 변환", - "Convert_named_imports_to_namespace_import_95057": "명명된 가져오기를 네임스페이스 가져오기로 변환", - "Convert_namespace_import_to_named_imports_95056": "네임스페이스 가져오기를 명명된 가져오기로 변환", - "Convert_overload_list_to_single_signature_95118": "오버로드 목록을 단일 시그니처로 변환", - "Convert_parameters_to_destructured_object_95075": "매개 변수를 구조 파괴 개체로 변환", - "Convert_require_to_import_95047": "'require'를 'import'로 변환", - "Convert_to_ES_module_95017": "ES 모듈로 변환", - "Convert_to_a_bigint_numeric_literal_95091": "bigint 숫자 리터럴로 변환", - "Convert_to_anonymous_function_95123": "익명 함수로 변환", - "Convert_to_arrow_function_95125": "화살표 함수로 변환", - "Convert_to_async_function_95065": "비동기 함수로 변환", - "Convert_to_default_import_95013": "기본 가져오기로 변환", - "Convert_to_named_function_95124": "명명된 함수로 변환", - "Convert_to_optional_chain_expression_95139": "선택적 체인 식으로 변환합니다.", - "Convert_to_template_string_95096": "템플릿 문자열로 변환", - "Convert_to_type_only_export_1364": "형식 전용 내보내기로 변환", - "Convert_to_type_only_import_1373": "형식 전용 가져오기로 변환", - "Corrupted_locale_file_0_6051": "로캘 파일 {0}이(가) 손상되었습니다.", - "Could_not_convert_to_anonymous_function_95153": "익명 함수로 변환할 수 없습니다.", - "Could_not_convert_to_arrow_function_95151": "화살표 함수로 변환할 수 없습니다.", - "Could_not_convert_to_named_function_95152": "명명된 함수로 변환할 수 없습니다.", - "Could_not_determine_function_return_type_95150": "함수 반환 형식을 확인할 수 없습니다.", - "Could_not_find_a_containing_arrow_function_95127": "포함하는 화살표 함수를 찾을 수 없습니다.", - "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016": "모듈 '{0}'에 대한 선언 파일을 찾을 수 없습니다. '{1}'에는 암시적으로 'any' 형식이 포함됩니다.", - "Could_not_find_convertible_access_expression_95140": "변환 가능한 액세스 식을 찾을 수 없습니다.", - "Could_not_find_export_statement_95129": "export 문을 찾을 수 없습니다.", - "Could_not_find_import_clause_95131": "import 절을 찾을 수 없습니다.", - "Could_not_find_matching_access_expressions_95141": "일치하는 액세스 식을 찾을 수 없습니다.", - "Could_not_find_name_0_Did_you_mean_1_2570": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?", - "Could_not_find_namespace_import_or_named_imports_95132": "네임스페이스 가져오기 또는 명명된 가져오기를 찾을 수 없습니다.", - "Could_not_find_property_for_which_to_generate_accessor_95135": "접근자를 생성할 속성을 찾을 수 없습니다.", - "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "{1} 확장이 포함된 '{0}' 경로를 확인할 수 없습니다.", - "Could_not_write_file_0_Colon_1_5033": "'{0}' 파일을 쓸 수 없습니다. '{1}'.", - "Create_source_map_files_for_emitted_JavaScript_files_6694": "내보낸 JavaScript 파일의 소스 맵 파일을 만듭니다.", - "Create_sourcemaps_for_d_ts_files_6614": "d.ts 파일의 sourcemap을 만듭니다.", - "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "작업 디렉터리에 권장되는 설정을 사용하여 tsconfig.json을 만듭니다.", - "DIRECTORY_6038": "디렉터리", - "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "선언이 다른 파일의 선언을 확대합니다. 이 작업은 직렬화할 수 없습니다.", - "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "이 파일의 선언 내보내기에는 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.", - "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "이 파일의 선언 내보내기에는 '{1}' 모듈의 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.", - "Declaration_expected_1146": "선언이 필요합니다.", - "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "선언 이름이 기본 제공 전역 ID '{0}'과(와) 충돌합니다.", - "Declaration_or_statement_expected_1128": "선언 또는 문이 필요합니다.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "선언 또는 문이 필요합니다. 이 '='은 문 블록을 따르므로 구조 파괴 할당을 작성하려는 경우 전체 할당을 괄호로 묶어야 할 수 있습니다.", - "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "한정된 할당 어설션이 포함된 선언에는 형식 주석도 있어야 합니다.", - "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "이니셜라이저가 포함된 선언에는 한정적 할당 어설션을 사용할 수 없습니다.", - "Declare_a_private_field_named_0_90053": "'{0}'(이)라는 프라이빗 필드를 선언합니다.", - "Declare_method_0_90023": "'{0}' 메서드 선언", - "Declare_private_method_0_90038": "프라이빗 메서드 '{0}' 선언", - "Declare_private_property_0_90035": "'{0}' 프라이빗 속성 선언", - "Declare_property_0_90016": "'{0}' 속성 선언", - "Declare_static_method_0_90024": "'{0}' 정적 메서드 선언", - "Declare_static_property_0_90027": "'{0}' 정적 속성 선언", - "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "데코레이터 함수 반환 유형 '{0}'은(는) '{1}' 유형에 할당할 수 없습니다.", - "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "데코레이터 함수 반환 유형은 '{0}'이지만 'void' 또는 'any'여야 합니다.", - "Decorators_are_not_valid_here_1206": "데코레이터는 여기에 사용할 수 없습니다.", - "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "동일한 이름의 여러 get/set 접근자에 데코레이터를 적용할 수 없습니다.", - "Decorators_may_not_be_applied_to_this_parameters_1433": "데코레이터는 '이' 매개 변수에 적용되지 않을 수 있습니다.", - "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "데코레이터는 속성 선언의 이름 및 모든 키워드 앞에 와야 합니다.", - "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "기본 catch 절 변수는 'any' 대신 'unknown'입니다.", - "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "모듈의 기본 내보내기에서 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Default_library_1424": "기본 라이브러리", - "Default_library_for_target_0_1425": "대상 '{0}'의 기본 라이브러리", - "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "{0} 식별자의 정의가 다른 파일의 정의와 충돌합니다.", - "Delete_all_unused_declarations_95024": "사용하지 않는 선언 모두 삭제", - "Delete_all_unused_imports_95147": "사용하지 않는 가져오기 모두 삭제", - "Delete_all_unused_param_tags_95172": "사용하지 않은 '@param' 태그 모두 삭제", - "Delete_the_outputs_of_all_projects_6365": "모든 프로젝트의 출력을 삭제합니다.", - "Delete_unused_param_tag_0_95171": "사용하지 않는 '@param' 태그 '{0}' 삭제", - "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[사용되지 않음] 대신 '--jsxFactory'를 사용합니다. 'react' JSX 내보내기를 대상으로 할 경우 createElement에 대해 호출되는 개체를 지정합니다.", - "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[사용되지 않음] 대신 '--outFile'을 사용합니다. 출력을 연결하고 단일 파일로 내보냅니다.", - "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[사용되지 않음] 대신 '--skipLibCheck'를 사용합니다. 기본 라이브러리 선언 파일의 형식 검사를 건너뜁니다.", - "Deprecated_setting_Use_outFile_instead_6677": "더 이상 사용되지 않는 설정입니다. 대신 'outFile'을 사용하세요.", - "Did_you_forget_to_use_await_2773": "'await' 사용을 잊으셨습니까?", - "Did_you_mean_0_1369": "'{0}'을(를) 사용하시겠습니까?", - "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "'{0}'을(를) 'new (...args: any[]) => {1}' 형식으로 제한하시겠습니까?", - "Did_you_mean_to_call_this_expression_6212": "이 식을 호출하시겠습니까?", - "Did_you_mean_to_mark_this_function_as_async_1356": "이 함수를 'async'로 표시하시겠습니까?", - "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "':'을 사용하려고 하셨습니까? '='은 포함하는 개체 리터럴이 구조 파괴 패턴에 속하는 경우에만 속성 이름 뒤에 올 수 있습니다.", - "Did_you_mean_to_use_new_with_this_expression_6213": "이 식에서 'new'를 사용하시겠습니까?", - "Digit_expected_1124": "숫자가 필요합니다.", - "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "'{0}' 디렉터리가 없으므로 이 디렉터리에서 모든 조회를 건너뜁니다.", - "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "디렉터리 '{0}'에는 포함하는 package.json 범위가 없습니다. 가져오기가 확인되지 않습니다.", - "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "내보낸 JavaScript 파일에서 'use strict' 지시문을 추가하지 않도록 설정합니다.", - "Disable_checking_for_this_file_90018": "이 파일 확인을 사용하지 않도록 설정", - "Disable_emitting_comments_6688": "주석 내보내기 사용 안 함", - "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "JSDoc 주석에 '@internal'이 있는 선언을 내보내는 것을 비활성화합니다.", - "Disable_emitting_files_from_a_compilation_6660": "컴파일에서 파일을 내보내지 않도록 설정합니다.", - "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "형식 검사 오류가 보고되면 파일을 내보내지 않도록 설정합니다.", - "Disable_erasing_const_enum_declarations_in_generated_code_6682": "생성된 코드에서 'const enum' 선언 지우기를 비활성화합니다.", - "Disable_error_reporting_for_unreachable_code_6603": "연결할 수 없는 코드에 대한 오류 보고를 사용하지 않습니다.", - "Disable_error_reporting_for_unused_labels_6604": "사용하지 않은 레이블에 대한 오류 보고를 사용하지 않습니다.", - "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "컴파일된 출력에서 ​​'__extents'와 같은 사용자 지정 도우미 함수 생성을 비활성화합니다.", - "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "기본 lib.d.ts를 비롯하여 모든 라이브러리 파일을 포함하지 않도록 설정합니다.", - "Disable_loading_referenced_projects_6235": "참조된 프로젝트 로드를 사용하지 않습니다.", - "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "복합 프로젝트를 참조할 때 선언 파일 대신 선호하는 소스 파일을 비활성화합니다.", - "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "개체 리터럴을 만드는 동안에는 초과 속성 오류에 대한 보고를 사용하지 않습니다.", - "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "실제 경로의 symlink를 확인하지 않도록 설정합니다. 이는 노드의 동일한 플래그와 상관 관계가 있습니다.", - "Disable_size_limitations_on_JavaScript_projects_6162": "JavaScript 프로젝트에 대한 크기 제한을 사용하지 않도록 설정합니다.", - "Disable_solution_searching_for_this_project_6224": "이 프로젝트를 검색하는 솔루션을 사용하지 않도록 설정합니다.", - "Disable_strict_checking_of_generic_signatures_in_function_types_6673": "함수 형식의 제네릭 시그니처에 대한 엄격한 검사를 사용하지 않도록 설정합니다.", - "Disable_the_type_acquisition_for_JavaScript_projects_6625": "JavaScript 프로젝트의 형식 인식을 사용하지 않습니다.", - "Disable_truncating_types_in_error_messages_6663": "오류 메시지에서 잘림 유형을 사용하지 않도록 설정합니다.", - "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "참조된 프로젝트의 선언 파일 대신 소스 파일을 사용하지 않도록 설정합니다.", - "Disable_wiping_the_console_in_watch_mode_6684": "시계 모드에서 콘솔 초기화를 비활성화합니다.", - "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "프로젝트에서 파일 이름을 확인하여 형식 인식에 대한 유추를 사용하지 않습니다.", - "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "TypeScript가 프로젝트에 추가해야 하는 파일 수를 확장하는 '가져오기', '요구' 또는 ''를 허용하지 않습니다.", - "Disallow_inconsistently_cased_references_to_the_same_file_6078": "동일한 파일에 대해 대/소문자를 일관되지 않게 사용한 참조를 허용하지 않습니다.", - "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "컴파일된 파일 목록에 삼중 슬래시 참조 또는 가져온 모듈을 추가하지 않습니다.", - "Do_not_emit_comments_to_output_6009": "주석을 출력에 내보내지 마세요.", - "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "'@internal' 주석이 있는 코드에 대한 선언을 내보내지 마세요.", - "Do_not_emit_outputs_6010": "출력을 내보내지 않습니다.", - "Do_not_emit_outputs_if_any_errors_were_reported_6008": "오류가 보고되면 출력을 내보내지 않습니다.", - "Do_not_emit_use_strict_directives_in_module_output_6112": "'use strict' 지시문을 모듈 출력에 내보내지 마세요.", - "Do_not_erase_const_enum_declarations_in_generated_code_6007": "생성된 코드에서 const 열거형 선언을 지우지 마세요.", - "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "컴파일된 출력에서 '__extends'와 같은 사용자 지정 도우미 함수를 생성하지 않습니다.", - "Do_not_include_the_default_library_file_lib_d_ts_6158": "기본 라이브러리 파일(lib.d.ts)을 포함하지 않습니다.", - "Do_not_report_errors_on_unreachable_code_6077": "접근할 수 없는 코드에 대한 오류를 보고하지 않습니다.", - "Do_not_report_errors_on_unused_labels_6074": "사용되지 않는 레이블에 대한 오류를 보고하지 않습니다.", - "Do_not_resolve_the_real_path_of_symlinks_6013": "symlink의 실제 경로를 확인하지 마세요.", - "Do_not_truncate_error_messages_6165": "오류 메시지를 자르지 않습니다.", - "Duplicate_function_implementation_2393": "중복된 함수 구현입니다.", - "Duplicate_identifier_0_2300": "'{0}' 식별자가 중복되었습니다.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441": "'{0}' 식별자가 중복되었습니다. 컴파일러는 모듈의 최상위 범위에 이름 '{1}'을(를) 예약합니다.", - "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529": "'{0}' 식별자가 중복되었습니다. 컴파일러는 비동기 함수를 포함하는 모듈의 최상위 범위에 '{1}' 이름을 예약합니다.", - "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818": "중복 식별자 '{0}'입니다. 컴파일러는 정적 이니셜라이저에서 'super' 참조를 내보낸 경우 '{1}' 이름을 예약합니다.", - "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520": "중복 식별자 '{0}'입니다. 컴파일러는 '{1}' 선언을 사용하여 비동기 함수를 지원합니다.", - "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "'{0}' 식별자가 중복되었습니다. 정적 요소와 인스턴스 요소는 같은 프라이빗 이름을 공유할 수 없습니다.", - "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "중복 식별자 'arguments'입니다. 컴파일러는 'arguments'를 사용해서 rest 매개 변수를 초기화합니다.", - "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "'_newTarget' 식별자가 중복되었습니다. 컴파일러는 변수 선언 '_newTarget'을 사용하여 'new.target' 메타 속성 참조를 캡처합니다.", - "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "중복 식별자 '_this'입니다. 컴파일러는 변수 선언 '_this'를 사용해서 'this' 참조를 캡처합니다.", - "Duplicate_index_signature_for_type_0_2374": "'{0}' 형식에 대한 인덱스 시그니처가 중복되었습니다.", - "Duplicate_label_0_1114": "중복된 레이블 '{0}'입니다.", - "Duplicate_property_0_2718": "중복 속성 '{0}'입니다.", - "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "동적 가져오기의 지정자는 'string' 형식이어야 하지만 여기에서 형식은 '{0}'입니다.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "동적 가져오기는 '--module' 플래그가 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' 또는 'nodenext'로 설정된 경우에만 지원됩니다.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "동적 가져오기는 모듈 지정자와 선택적 어설션만 인수로 수락합니다.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "동적 가져오기는 '--module' 옵션이 'esnext', 'node16' 또는 'nodenext'로 설정된 경우에만 두 번째 인수를 지원합니다.", - "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "공용 구조체 형식 '{0}'의 각 멤버에 구문 시그니처가 있지만, 해당 시그니처는 서로 호환되지 않습니다.", - "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "공용 구조체 형식 '{0}'의 각 멤버에 시그니처가 있지만, 해당 시그니처는 서로 호환되지 않습니다.", - "Editor_Support_6249": "편집기 지원", - "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053": "'{0}' 형식의 식을 '{1}' 인덱스 형식에 사용할 수 없으므로 요소에 암시적으로 'any' 형식이 있습니다.", - "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015": "인덱스 식이 'number' 형식이 아니므로 요소에 암시적으로 'any' 형식이 있습니다.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017": "'{0}' 형식에 인덱스 시그니처가 없으므로 요소에 암시적으로 'any' 형식이 있습니다.", - "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052": "'{0}' 형식에 인덱스 시그니처가 없으므로 요소에 암시적으로 'any' 형식이 있습니다. '{1}'을(를) 호출하시겠습니까?", - "Emit_6246": "방출", - "Emit_ECMAScript_standard_compliant_class_fields_6712": "ECMAScript 표준 규격 클래스 필드를 내보냅니다.", - "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "출력 파일의 시작에서 UTF-8 BOM(바이트 순서 표시)을 내보냅니다.", - "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "별도의 파일을 사용하는 대신 소스 맵과 함께 단일 파일을 내보냅니다.", - "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "디버깅을 위해 실행된 컴파일러의 v8 CPU 프로필을 내보냅니다.", - "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "CommonJS 모듈 가져오기 지원을 쉽게 하기 위해 추가 JavaScript를 내보냅니다. 이것은 유형 호환성을 위해 'allowSyntheticDefaultImports'를 활성화합니다.", - "Emit_class_fields_with_Define_instead_of_Set_6222": "Set 대신 Define을 사용하여 클래스 필드를 내보냅니다.", - "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "소스 파일에서 데코레이트된 선언의 디자인 형식 메타데이터를 내보냅니다.", - "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "반복을 위해 규격에 더 맞지만 장황하고 성능이 떨어지는 JavaScript를 내보냅니다.", - "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "단일 파일 내에서 소스 맵과 함께 소스를 내보냅니다. '--inlineSourceMap' 또는 '--sourceMap'을 설정해야 합니다.", - "Enable_all_strict_type_checking_options_6180": "엄격한 형식 검사 옵션을 모두 사용하도록 설정합니다.", - "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "컴파일러 오류를 더 쉽게 읽을 수 있도록 TypeScript의 출력에서 ​​색상 및 서식을 활성화합니다.", - "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "TypeScript 프로젝트를 프로젝트 참조와 함께 사용할 수 있는 제약 조건을 사용합니다.", - "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "함수에서 명시적으로 반환되지 않은 코드 경로에 대한 오류 보고를 사용합니다.", - "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "암시적 '모든' 유형의 표현식 및 선언에 대한 오류 보고를 활성화합니다.", - "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "switch 문에서 폴스루 사례에 대한 오류 보고를 활성화합니다.", - "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "형식이 확인된 JavaScript 파일에서 오류 보고를 사용하도록 설정합니다.", - "Enable_error_reporting_when_local_variables_aren_t_read_6675": "지역 변수를 읽지 않을 때 오류 보고를 활성화합니다.", - "Enable_error_reporting_when_this_is_given_the_type_any_6668": "'this'에 'any' 유형이 지정되면 오류 보고를 활성화합니다.", - "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "TC39 2단계 초안 데코레이터에 대한 실험적 지원을 사용합니다.", - "Enable_importing_json_files_6689": ".json 파일 가져오기를 활성화합니다.", - "Enable_project_compilation_6302": "프로젝트 컴파일을 사용하도록 설정", - "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "함수에서 strict 'bind', 'call' 및 'apply' 메서드를 사용하도록 설정합니다.", - "Enable_strict_checking_of_function_types_6186": "함수 형식에 대한 엄격한 검사를 사용하도록 설정합니다.", - "Enable_strict_checking_of_property_initialization_in_classes_6187": "클래스의 속성 초기화에 대해 엄격한 검사를 사용하도록 설정합니다.", - "Enable_strict_null_checks_6113": "엄격한 null 검사를 사용하도록 설정하세요.", - "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "구성 파일에서 'experimentalDecorators' 옵션을 사용하도록 설정합니다.", - "Enable_the_jsx_flag_in_your_configuration_file_95088": "구성 파일에서 '--jsx' 플래그를 사용하도록 설정합니다.", - "Enable_tracing_of_the_name_resolution_process_6085": "이름 확인 프로세스 추적을 사용하도록 설정하세요.", - "Enable_verbose_logging_6713": "자세한 로깅을 활성화합니다.", - "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "모든 가져오기에 대한 네임스페이스 개체를 만들어 CommonJS 및 ES 모듈 간의 내보내기 상호 운용성을 사용하도록 설정합니다. 'allowSyntheticDefaultImports'를 의미합니다.", - "Enables_experimental_support_for_ES7_decorators_6065": "ES7 데코레이터에 대해 실험적 지원을 사용합니다.", - "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "데코레이터에 대한 형식 메타데이터를 내보내기 위해 실험적 지원을 사용합니다.", - "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "인덱싱된 형식을 사용하여 선언된 키에 대해 인덱싱된 접근자를 사용합니다.", - "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "파생 클래스의 멤버 재정의가 재정의 한정자로 표시되어 있는지 확인합니다.", - "Ensure_that_casing_is_correct_in_imports_6637": "가져오기에서 대/소문자가 올바른지 확인합니다.", - "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "다른 가져오기를 사용하지 않고 각 파일을 안전하게 변환할 수 있는지 확인합니다.", - "Ensure_use_strict_is_always_emitted_6605": "'use strict'를 항상 내보내고 있는지 확인합니다.", - "Entry_point_for_implicit_type_library_0_1420": "암시적 형식 라이브러리 '{0}'의 진입점", - "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "packageId가 '{1}'인 암시적 형식 라이브러리 '{0}'의 진입점", - "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "compilerOptions에 지정된 형식 라이브러리 '{0}'의 진입점", - "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418": "packageId가 '{1}'인 compilerOptions에 지정된 형식 라이브러리 '{0}'의 진입점", - "Enum_0_used_before_its_declaration_2450": "선언 전에 사용된 '{0}' 열거형입니다.", - "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "열거형 선언은 네임스페이스 또는 다른 열거형 선언과만 병합할 수 있습니다.", - "Enum_declarations_must_all_be_const_or_non_const_2473": "열거형 선언은 모두 const 또는 비const여야 합니다.", - "Enum_member_expected_1132": "열거형 멤버가 필요합니다.", - "Enum_member_must_have_initializer_1061": "열거형 멤버에는 이니셜라이저가 있어야 합니다.", - "Enum_name_cannot_be_0_2431": "열거형 이름은 '{0}'일 수 없습니다.", - "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "열거형 형식 '{0}'에 리터럴이 아닌 이니셜라이저를 사용하는 멤버가 있습니다.", - "Errors_Files_6041": "오류 파일", - "Examples_Colon_0_6026": "예: {0}", - "Excessive_stack_depth_comparing_types_0_and_1_2321": "'{0}' 및 '{1}' 형식을 비교하는 스택 깊이가 과도합니다.", - "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "'@extends' 태그로 제공하는 예상되는 {0}-{1} 형식 인수입니다.", - "Expected_0_arguments_but_got_1_2554": "{0}개의 인수가 필요한데 {1}개를 가져왔습니다.", - "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0}개 인수가 필요한데 {1}개를 가져왔습니다. 'void'를 'Promise'의 형식 인수에 포함하는 것을 잊으셨습니까?", - "Expected_0_type_arguments_but_got_1_2558": "{0}개의 형식 인수가 필요한데 {1}개를 가져왔습니다.", - "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "'@extends' 태그로 제공하는 예상되는 {0} 형식 인수입니다.", - "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1개의 인수가 필요하지만 0이 있습니다. 'new Promise()'는 인수 없이 호출할 수 있는 'resolve'를 생성하기 위해 JSDoc 힌트가 필요합니다.", - "Expected_at_least_0_arguments_but_got_1_2555": "최소 {0}개의 인수가 필요한데 {1}개를 가져왔습니다.", - "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}'에 해당하는 JSX 닫는 태그가 필요합니다.", - "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX 조각에 닫는 태그가 필요합니다.", - "Expected_for_property_initializer_1442": "속성 이니셜라이저에는 '='가 필요합니다.", - "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "'package.json'의 '{0}' 필드에 '{1}' 형식이 필요한데 '{2}'을(를) 얻었습니다.", - "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "데코레이터에 대한 실험적 지원 기능은 이후 릴리스에서 변경될 수 있습니다. 이 경고를 제거하려면 'tsconfig' 또는 'jsconfig'에서 'experimentalDecorators' 옵션을 설정합니다.", - "Explicitly_specified_module_resolution_kind_Colon_0_6087": "명시적으로 지정된 모듈 확인 종류 '{0}'입니다.", - "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' 옵션이 'es2016' 이상으로 설정되어 있지 않으면 'bigint' 값에 지수화를 수행할 수 없습니다.", - "Export_0_from_module_1_90059": "'{0}'을(를) '{1}' 모듈에서 내보냅니다.", - "Export_all_referenced_locals_90060": "참조된 모든 로컬 내보내기", - "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203": "ECMAScript 모듈을 대상으로 하는 경우 내보내기 할당을 사용할 수 없습니다. 대신 'export default'나 다른 모듈 형식의 사용을 고려하세요.", - "Export_assignment_is_not_supported_when_module_flag_is_system_1218": "'--module' 플래그가 'system'이면 내보내기 할당은 지원되지 않습니다.", - "Export_declaration_conflicts_with_exported_declaration_of_0_2484": "내보내기 선언이 '{0}'의 내보낸 선언과 충돌합니다.", - "Export_declarations_are_not_permitted_in_a_namespace_1194": "네임스페이스에서는 내보내기 선언이 허용되지 않습니다.", - "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "내보내기 지정자 '{0}'이(가) '{1}' 경로의 package.json 범위에 없습니다.", - "Exported_type_alias_0_has_or_is_using_private_name_1_4081": "내보낸 형식 별칭 '{0}'은(는) '{1}' 프라이빗 이름을 포함하거나 사용 중입니다.", - "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "내보낸 형식 별칭 '{0}'이(가) 모듈 {2}의 프라이빗 이름 '{1}'을(를) 포함하거나 사용하고 있습니다.", - "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "내보낸 변수 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024": "내보낸 변수 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Exported_variable_0_has_or_is_using_private_name_1_4025": "내보낸 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "내보내기 및 내보내기 할당는 모듈 확대에서 허용되지 않습니다.", - "Expression_expected_1109": "식이 필요합니다.", - "Expression_or_comma_expected_1137": "식 또는 쉼표가 필요합니다.", - "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "식이 너무 커서 표시할 수 없는 튜플 형식을 생성합니다.", - "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "식에서는 너무 복잡해서 표시할 수 없는 공용 구조체 형식을 생성합니다.", - "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "컴파일러가 기본 클래스 참조를 캡처하기 위해 사용하는 '_super'로 식이 확인됩니다.", - "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "컴파일러가 'new.target' 메타 속성 참조를 캡처하기 위해 사용하는 변수 선언 '_newTarget'으로 식이 확인됩니다.", - "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "컴파일러가 'this' 참조를 캡처하기 위해 사용하는 변수 선언 '_this'로 식이 확인됩니다.", - "Extract_constant_95006": "상수 추출", - "Extract_function_95005": "함수 추출", - "Extract_to_0_in_1_95004": "{1}의 {0}(으)로 추출", - "Extract_to_0_in_1_scope_95008": "{1} 범위의 {0}(으)로 추출", - "Extract_to_0_in_enclosing_scope_95007": "바깥쪽 범위의 {0}(으)로 추출", - "Extract_to_interface_95090": "인터페이스로 추출", - "Extract_to_type_alias_95078": "형식 별칭으로 추출", - "Extract_to_typedef_95079": "Typedef로 추출", - "Extract_type_95077": "형식 추출", - "FILE_6035": "파일", - "FILE_OR_DIRECTORY_6040": "파일 또는 디렉터리", - "Failed_to_parse_file_0_Colon_1_5014": "'{0}' 파일 구문 분석 실패: {1}.", - "Fallthrough_case_in_switch_7029": "switch에 Fallthrough case가 있습니다.", - "File_0_does_not_exist_6096": "'{0}' 파일이 없습니다.", - "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "이전 캐시된 검색에 따라 '{0}' 파일이 존재하지 않습니다.", - "File_0_exist_use_it_as_a_name_resolution_result_6097": "'{0}' 파일이 있습니다. 이 파일을 이름 확인 결과로 사용하세요.", - "File_0_exists_according_to_earlier_cached_lookups_6239": "파일 '{0}'은(는) 이전 캐시된 검색에 따라 존재합니다.", - "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "'{0}' 파일의 확장명이 지원되지 않습니다. 지원되는 확장명은 {1}뿐입니다.", - "File_0_has_an_unsupported_extension_so_skipping_it_6081": "'{0}' 파일은 확장명이 지원되지 않으므로 건너뜁니다.", - "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "'{0}' 파일은 JavaScript 파일입니다. 'allowJs' 옵션을 사용하도록 설정하시겠습니까?", - "File_0_is_not_a_module_2306": "'{0}' 파일은 모듈이 아닙니다.", - "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "'{0}' 파일이 '{1}' 프로젝트의 파일 목록에 나열되지 않습니다. 프로젝트는 모든 파일을 나열하거나 'include' 패턴을 사용해야 합니다.", - "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "'{0}' 파일이 'rootDir' '{1}' 아래에 있지 않습니다. 'rootDir'에는 모든 소스 파일이 포함되어 있어야 합니다.", - "File_0_not_found_6053": "파일 '{0}'을(를) 찾을 수 없습니다.", - "File_Management_6245": "파일 관리", - "File_change_detected_Starting_incremental_compilation_6032": "파일 변경이 검색되었습니다. 증분 컴파일을 시작하는 중...", - "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "'{0}'에 \"type\" 필드가 없으므로 파일이 CommonJS 모듈입니다.", - "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "'{0}'에 값이 \"module\"이 아닌 \"type\" 필드가 있으므로 파일이 CommonJS 모듈입니다.", - "File_is_CommonJS_module_because_package_json_was_not_found_1461": "'package.json'을 찾을 수 없으므로 파일이 CommonJS 모듈입니다.", - "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458": "'{0}'에 값이 \"module\"인 \"type\" 필드가 있으므로 파일이 ECMAScript 모듈입니다.", - "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001": "파일이 CommonJS 모듈입니다. ES 모듈로 변환될 수 있습니다.", - "File_is_default_library_for_target_specified_here_1426": "파일은 여기에 지정된 대상의 기본 라이브러리입니다.", - "File_is_entry_point_of_type_library_specified_here_1419": "파일은 여기에 지정된 형식 라이브러리의 진입점입니다.", - "File_is_included_via_import_here_1399": "파일은 여기에 가져오기를 통해 포함됩니다.", - "File_is_included_via_library_reference_here_1406": "파일은 여기에 라이브러리 참조를 통해 포함됩니다.", - "File_is_included_via_reference_here_1401": "파일은 여기에 참조를 통해 포함됩니다.", - "File_is_included_via_type_library_reference_here_1404": "파일은 여기에 형식 라이브러리 참조를 통해 포함됩니다.", - "File_is_library_specified_here_1423": "파일은 여기에 지정된 라이브러리입니다.", - "File_is_matched_by_files_list_specified_here_1410": "파일은 여기에 지정된 'files' 목록으로 일치됩니다.", - "File_is_matched_by_include_pattern_specified_here_1408": "파일은 여기에 지정된 포함 패턴으로 일치됩니다.", - "File_is_output_from_referenced_project_specified_here_1413": "파일은 여기에 지정된 참조 프로젝트의 출력입니다.", - "File_is_output_of_project_reference_source_0_1428": "파일은 프로젝트 참조 소스 '{0}'의 출력입니다.", - "File_is_source_from_referenced_project_specified_here_1416": "파일은 여기에 지정된 참조된 프로젝트의 소스입니다.", - "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "'{0}' 파일 이름은 이미 포함된 '{1}' 파일 이름과 대/소문자만 다릅니다.", - "File_name_0_has_a_1_extension_stripping_it_6132": "파일 이름 '{0}'에 '{1}' 확장명이 있어 제거하는 중입니다.", - "File_redirects_to_file_0_1429": "파일은 '{0}' 파일로 리디렉션됩니다.", - "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "파일 사양은 재귀 디렉터리 와일드카드('**') 뒤에 나타나는 부모 디렉터리('..')를 포함할 수 없습니다. '{0}'.", - "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010": "파일 사양은 재귀 디렉터리 와일드카드('**')로 끝날 수 없습니다. '{0}'.", - "Filters_results_from_the_include_option_6627": "'include' 옵션의 결과를 필터링합니다.", - "Fix_all_detected_spelling_errors_95026": "검색된 맞춤법 오류 모두 수정", - "Fix_all_expressions_possibly_missing_await_95085": "'await'가 누락되었을 수 있는 모든 식 수정", - "Fix_all_implicit_this_errors_95107": "모든 암시적 'this' 오류 수정", - "Fix_all_incorrect_return_type_of_an_async_functions_90037": "비동기 함수의 모든 잘못된 반환 형식 수정", - "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'For await' 루프는 클래스 정적 블록 내에서 사용할 수 없습니다.", - "Found_0_errors_6217": "{0}개 오류가 발견되었습니다.", - "Found_0_errors_Watching_for_file_changes_6194": "{0}개 오류가 발견되었습니다. 파일이 변경되었는지 확인하는 중입니다.", - "Found_0_errors_in_1_files_6261": "{1} 파일에서 {0} 오류를 찾았습니다.", - "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "{1}에서 시작하는 동일한 파일에서 {0}개의 오류를 찾았습니다.", - "Found_1_error_6216": "1개 오류가 발견되었습니다.", - "Found_1_error_Watching_for_file_changes_6193": "1개 오류가 발견되었습니다. 파일이 변경되었는지 확인하는 중입니다.", - "Found_1_error_in_1_6259": "{1}에서 1개의 오류를 찾았습니다.", - "Found_package_json_at_0_6099": "'{0}'에서 'package.json'을 찾았습니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 클래스 정의는 자동으로 strict 모드가 됩니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 모듈은 자동으로 strict 모드가 됩니다.", - "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "반환 형식 주석이 없는 함수 식에는 암시적으로 '{0}' 반환 형식이 포함됩니다.", - "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "함수 구현이 없거나 선언 바로 다음에 나오지 않습니다.", - "Function_implementation_name_must_be_0_2389": "함수 구현 이름이 '{0}'이어야 합니다.", - "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "반환 형식 주석이 없고 반환 식 중 하나에서 직간접적으로 참조되므로 함수에는 암시적으로 반환 형식 'any'가 포함됩니다.", - "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "함수에 끝 return 문이 없으며 반환 형식에 'undefined'가 포함되지 않습니다.", - "Function_not_implemented_95159": "함수가 구현되지 않았습니다.", - "Function_overload_must_be_static_2387": "함수 오버로드는 정적이어야 합니다.", - "Function_overload_must_not_be_static_2388": "함수 오버로드는 정적이 아니어야 합니다.", - "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385": "공용 구조체 형식에 사용되는 경우 함수 형식 표기법을 괄호로 묶어야 합니다.", - "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387": "교집합 형식에 사용되는 경우 함수 형식 표기법을 괄호로 묶어야 합니다.", - "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014": "반환 형식 주석이 없는 함수 형식에는 암시적으로 '{0}' 반환 형식이 포함됩니다.", - "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814": "본문이 있는 함수는 앰비언트 클래스하고만 병합할 수 있습니다.", - "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612": "프로젝트의 TypeScript 및 JavaScript 파일에서 .d.ts 파일을 생성합니다.", - "Generate_get_and_set_accessors_95046": "'get' 및 'set' 접근자 생성", - "Generate_get_and_set_accessors_for_all_overriding_properties_95119": "모든 재정의 속성에 대한 'get' 및 'set' 접근자를 생성합니다.", - "Generates_a_CPU_profile_6223": "CPU 프로필을 생성합니다.", - "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "해당하는 각 '.d.ts' 파일에 sourcemap을 생성합니다.", - "Generates_an_event_trace_and_a_list_of_types_6237": "이벤트 추적 및 형식 목록을 생성합니다.", - "Generates_corresponding_d_ts_file_6002": "해당 '.d.ts' 파일을 생성합니다.", - "Generates_corresponding_map_file_6043": "해당 '.map' 파일을 생성합니다.", - "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "생성기는 값을 생성하지 않으므로 암시적으로 yield 형식 '{0}'입니다. 반환 형식 주석을 제공하는 것이 좋습니다.", - "Generators_are_not_allowed_in_an_ambient_context_1221": "생성기는 앰비언트 컨텍스트에서 사용할 수 없습니다.", - "Generic_type_0_requires_1_type_argument_s_2314": "'{0}' 제네릭 형식에 {1} 형식 인수가 필요합니다.", - "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "제네릭 형식 '{0}'에 {1} 및 {2} 사이의 형식 인수가 필요합니다.", - "Global_module_exports_may_only_appear_at_top_level_1316": "전역 모듈 내보내기는 최상위 수준에만 나올 수 있습니다.", - "Global_module_exports_may_only_appear_in_declaration_files_1315": "전역 모듈 내보내기는 선언 파일에만 나올 수 있습니다.", - "Global_module_exports_may_only_appear_in_module_files_1314": "전역 모듈 내보내기는 모듈 파일에만 나올 수 있습니다.", - "Global_type_0_must_be_a_class_or_interface_type_2316": "전역 형식 '{0}'은 클래스 또는 인터페이스 형식이어야 합니다.", - "Global_type_0_must_have_1_type_parameter_s_2317": "전역 형식 '{0}'에는 {1} 형식 매개 변수를 사용해야 합니다.", - "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "'--incremental' 및 '--watch'의 다시 컴파일에서 파일 내 변경 내용은 파일에 따라 직접 파일에만 영향을 준다고 가정하도록 합니다.", - "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "'증분' 및 '감시' 모드를 사용하는 프로젝트에서 재컴파일하면 파일 내의 변경 사항이 해당 파일에 직접적으로 영향을 미치는 파일에만 영향을 미친다고 가정합니다.", - "Hexadecimal_digit_expected_1125": "16진수가 필요합니다.", - "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "식별자가 필요합니다. '{0}'은(는) 모듈의 최상위 수준에 있는 예약어입니다.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "식별자가 필요합니다. '{0}'은(는) strict 모드의 예약어입니다.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213": "식별자가 필요합니다. '{0}'은(는) strict 모드의 예약어입니다. 클래스 정의는 자동으로 strict 모드가 됩니다.", - "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214": "식별자가 필요합니다. '{0}'은(는) strict 모드의 예약어입니다. 모듈은 자동으로 strict 모드가 됩니다.", - "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "식별자가 필요합니다. '{0}'은(는) 여기에서 사용할 수 없는 예약어입니다.", - "Identifier_expected_1003": "식별자가 필요합니다.", - "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "식별자가 필요합니다. '__esModule'은 ECMAScript 모듈을 변환할 때 내보낸 표식으로 예약되어 있습니다.", - "Identifier_or_string_literal_expected_1478": "식별자 또는 문자열 리터럴이 필요합니다.", - "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' 패키지가 이 모듈을 실제로 공개하는 경우 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' 수정을 위한 끌어오기 요청을 보내는 것이 좋습니다.", - "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' 패키지가 실제로 이 모듈을 노출하는 경우 'declare module {1}';'이(가) 포함된 새 선언(.d.ts) 파일을 추가해 보세요.", - "Ignore_this_error_message_90019": "이 오류 메시지 무시", - "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "tsconfig.json을 무시하고 기본 컴파일러 옵션을 사용하여 지정된 파일을 컴파일합니다.", - "Implement_all_inherited_abstract_classes_95040": "상속된 추상 클래스 모두 구현", - "Implement_all_unimplemented_interfaces_95032": "구현되지 않은 인터페이스 모두 구현", - "Implement_inherited_abstract_class_90007": "상속된 추상 클래스 구현", - "Implement_interface_0_90006": "'{0}' 인터페이스 구현", - "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "내보낸 클래스 '{0}'의 Implements 절이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "런타임에는 'symbol'을 'string'으로 암시적으로 변환할 수 없습니다. 이 식을 'String(...)'으로 래핑하는 것이 좋습니다.", - "Import_0_from_1_90013": "\"{1}\"에서 '{0}'을(를) 가져옵니다.", - "Import_assertion_values_must_be_string_literal_expressions_2837": "가져오기 어설션 값은 문자열 리터럴 ㅁ이이어야 합니다.", - "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "commonjs 'require' 호출로 변환되는 명령문에는 가져오기 어설션이 허용되지 않습니다.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "가져오기 어설션은 '--module' 옵션이 'esnext' 또는 'nodenext'로 설정된 경우에만 지원됩니다.", - "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "가져오기 어설션은 형식 전용 가져오기 또는 내보내기에서 사용할 수 없습니다.", - "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "ECMAScript 모듈을 대상으로 하는 경우 할당 가져오기를 사용할 수 없습니다. 대신 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' 또는 다른 모듈 형식 사용을 고려하세요.", - "Import_declaration_0_is_using_private_name_1_4000": "가져오기 선언 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 사용하고 있습니다.", - "Import_declaration_conflicts_with_local_declaration_of_0_2440": "가져오기 선언이 '{0}'의 로컬 선언과 충돌합니다.", - "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "네임스페이스의 가져오기 선언은 모듈을 참조할 수 없습니다.", - "Import_emit_helpers_from_tslib_6139": "'tslib'에서 내보내기 도우미를 가져오세요.", - "Import_may_be_converted_to_a_default_import_80003": "가져오기가 기본 가져오기로 변환될 수 있습니다.", - "Import_name_cannot_be_0_2438": "가져오기 이름은 '{0}'일 수 없습니다.", - "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "앰비언트 모듈 선언의 가져오기 또는 내보내기 선언은 상대적 모듈 이름을 통해 모듈을 참조할 수 없습니다.", - "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "가져오기 지정자 '{0}'이(가) '{1}' 경로의 package.json 범위에 없습니다.", - "Imported_via_0_from_file_1_1393": "'{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "compilerOptions에 지정된 대로 'importHelpers'를 가져오기 위해 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "'jsx' 및 'jsxs' 팩터리 함수를 가져오기 위해 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imported_via_0_from_file_1_with_packageId_2_1394": "packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "compilerOptions에 지정된 대로 'importHelpers'를 가져오기 위해 packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "'jsx' 및 'jsxs' 팩터리 함수를 가져오기 위해 packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "가져오기는 모듈 확대에서 허용되지 않습니다. 내보내기를 바깥쪽 외부 모듈로 이동하세요.", - "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "앰비언트 열거형 선언에서 멤버 이니셜라이저는 상수 식이어야 합니다.", - "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "다중 선언이 포함된 열거형에서는 하나의 선언만 첫 번째 열거형 요소에 대한 이니셜라이저를 생략할 수 있습니다.", - "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635": "파일 목록을 포함합니다. 이는 'include'가 아닌 GLOB 패턴을 지원하지 않습니다.", - "Include_modules_imported_with_json_extension_6197": "'.json' 확장을 사용하여 가져온 모듈을 포함합니다.", - "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "내보낸 JavaScript 내 sourcemap에 소스 코드를 포함합니다.", - "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "내보낸 JavaScript 내에 sourcemap 파일을 포함합니다.", - "Includes_imports_of_types_referenced_by_0_90054": "'{0}'에서 참조하는 유형의 가져오기를 포함합니다.", - "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "--watch를 포함하면 -w는 파일 변경 내용에 대한 현재 프로젝트 감시를 시작합니다. 설정되면 다음을 사용하여 조사식 모드를 구성할 수 있습니다.", - "Index_signature_for_type_0_is_missing_in_type_1_2329": "'{1}' 형식에 인덱스 시그니처 유형 '{0}'이(가) 없습니다.", - "Index_signature_in_type_0_only_permits_reading_2542": "'{0}' 형식의 인덱스 시그니처는 읽기만 허용됩니다.", - "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "병합된 선언 '{0}'의 개별 선언은 모두 내보내 졌거나 모두 로컬이어야 합니다.", - "Infer_all_types_from_usage_95023": "사용량에서 모든 형식 유추", - "Infer_function_return_type_95148": "함수 반환 형식 유추", - "Infer_parameter_types_from_usage_95012": "사용량에서 매개 변수 형식 유추", - "Infer_this_type_of_0_from_usage_95080": "사용량에서 '{0}'의 'this' 형식 유추", - "Infer_type_of_0_from_usage_95011": "사용량에서 '{0}'의 형식 유추", - "Initialize_property_0_in_the_constructor_90020": "생성자에서 속성 '{0}' 초기화", - "Initialize_static_property_0_90021": "정적 속성 '{0}' 초기화", - "Initializer_for_property_0_2811": "'{0}' 속성에 대한 이니셜라이저", - "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "인스턴스 멤버 변수 '{0}'의 이니셜라이저는 생성자에 선언된 식별자 '{1}'을(를) 참조할 수 없습니다.", - "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "이니셜라이저는 이 바인딩 요소에 대한 값을 제공하지 않으며 바인딩 요소에는 기본값이 없습니다.", - "Initializers_are_not_allowed_in_ambient_contexts_1039": "앰비언트 컨텍스트에서는 이니셜라이저가 허용되지 않습니다.", - "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "TypeScript 프로젝트를 초기화하고 tsconfig.json 파일을 만듭니다.", - "Insert_command_line_options_and_files_from_a_file_6030": "파일에서 명령줄 옵션 및 파일을 삽입합니다.", - "Install_0_95014": "'{0}' 설치", - "Install_all_missing_types_packages_95033": "누락된 형식 패키지 모두 설치", - "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320": "'{0}' 인터페이스는 '{1}' 및 '{2}' 형식을 동시에 확장할 수 없습니다.", - "Interface_0_incorrectly_extends_interface_1_2430": "'{0}' 인터페이스가 '{1}' 인터페이스를 잘못 확장합니다.", - "Interface_declaration_cannot_have_implements_clause_1176": "인터페이스 선언에는 'implements' 절을 사용할 수 없습니다.", - "Interface_must_be_given_a_name_1438": "인터페이스에 이름을 지정해야 합니다.", - "Interface_name_cannot_be_0_2427": "인터페이스 이름은 '{0}'일 수 없습니다.", - "Interop_Constraints_6252": "Interop 제약 조건", - "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "'undefined'를 추가하는 대신 선택적 속성 형식을 작성된 것으로 해석합니다.", - "Invalid_character_1127": "잘못된 문자입니다.", - "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "잘못된 가져오기 지정자 '{0}'에는 가능한 해결 방법이 없습니다.", - "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "확대의 모듈 이름이 잘못되었습니다. '{1}'에서 '{0}' 모듈이 형식화되지 않은 모듈로 확인되어 확대할 수 없습니다.", - "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "확대의 모듈 이름이 잘못되었습니다. '{0}' 모듈을 찾을 수 없습니다.", - "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "새 식의 선택적 체인이 잘못되었습니다. '{0}()'을 호출하시겠습니까?", - "Invalid_reference_directive_syntax_1084": "'reference' 지시문 구문이 잘못되었습니다.", - "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}'을(를) 잘못 사용했습니다. 해당 항목은 클래스 정적 블록 내에서 사용할 수 없습니다.", - "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}'을(를) 잘못 사용했습니다. 모듈은 자동으로 strict 모드가 됩니다.", - "Invalid_use_of_0_in_strict_mode_1100": "strict 모드에서 '{0}'을(를) 잘못 사용했습니다.", - "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory'에 대한 값이 잘못되었습니다. '{0}'이(가) 올바른 식별자 또는 정규화된 이름이 아닙니다.", - "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory'의 값이 잘못되었습니다. '{0}'은(는) 올바른 식별자 또는 정규화된 이름이 아닙니다.", - "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace'의 값이 잘못되었습니다. '{0}'은(는) 올바른 식별자가 아닙니다.", - "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796": "두 템플릿 식을 구분할 쉼표가 없는 것 같습니다. 이 두 템플릿 식은 태그가 지정된 호출 불가능한 하나의 템플릿 식을 구성합니다.", - "Its_element_type_0_is_not_a_valid_JSX_element_2789": "해당 요소 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", - "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "해당 인스턴스 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", - "Its_return_type_0_is_not_a_valid_JSX_element_2787": "해당 반환 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", - "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}'이(가) 'extends {2}' 절과 일치하지 않습니다.", - "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc '@{0}'이(가) 클래스에 연결되어 있지 않습니다.", - "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...'은 시그니처의 마지막 매개 변수에만 나타날 수 있습니다.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' 태그의 이름이 '{0}'인데 해당 이름의 매개 변수가 없습니다.", - "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' 태그에 '{0}' 이름이 있지만, 해당 이름의 매개 변수가 없습니다. 배열 형식이 있는 경우 '인수'를 일치시킵니다.", - "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' 태그는 형식 주석을 포함하거나, '@property' 또는 '@member' 태그 앞에 와야 합니다.", - "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc 유형은 문서 주석 내에서만 사용될 수 있습니다.", - "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc 형식이 TypeScript 형식으로 이동될 수 있습니다.", - "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX 특성에는 비어 있지 않은 '식'만 할당할 수 있습니다.", - "JSX_element_0_has_no_corresponding_closing_tag_17008": "JSX 요소 '{0}'에 닫는 태그가 없습니다.", - "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "JSX 요소 클래스는 '{0}' 속성이 없으므로 특성을 지원하지 않습니다.", - "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "'JSX.{0}' 인터페이스가 없으므로 JSX 요소는 암시적으로 'any' 형식입니다.", - "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "전역 형식 'JSX.Element'가 없으므로 JSX 요소는 암시적으로 'any' 형식입니다.", - "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "JSX 요소 형식 '{0}'에 구문 또는 호출 시그니처가 없습니다.", - "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "JSX 요소에 이름이 같은 특성을 여러 개 사용할 수 없습니다.", - "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "JSX 식은 쉼표 연산자를 사용할 수 없습니다. 배열을 작성하시겠습니까?", - "JSX_expressions_must_have_one_parent_element_2657": "JSX 식에는 부모 요소가 하나 있어야 합니다.", - "JSX_fragment_has_no_corresponding_closing_tag_17014": "JSX 조각에 닫는 태그가 없습니다.", - "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633": "JSX 속성 액세스 식은 JSX 네임스페이스 이름을 포함할 수 없습니다.", - "JSX_spread_child_must_be_an_array_type_2609": "JSX 분배 자식은 배열 형식이어야 합니다.", - "JavaScript_Support_6247": "JavaScript 지원", - "Jump_target_cannot_cross_function_boundary_1107": "점프 대상은 함수 경계를 벗어날 수 없습니다.", - "KIND_6034": "KIND", - "Keywords_cannot_contain_escape_characters_1260": "키워드에는 이스케이프 문자를 사용할 수 없습니다.", - "LOCATION_6037": "위치", - "Language_and_Environment_6254": "언어 및 환경", - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "쉼표 연산자의 왼쪽은 사용되지 않으며 이로 인해 의도하지 않은 결과가 발생하지 않습니다.", - "Library_0_specified_in_compilerOptions_1422": "compilerOptions에 '{0}' 라이브러리가 지정되었습니다.", - "Library_referenced_via_0_from_file_1_1405": "'{1}' 파일에서 '{0}'을(를) 통해 라이브러리가 참조되었습니다.", - "Line_break_not_permitted_here_1142": "여기서는 줄 바꿈이 허용되지 않습니다.", - "Line_terminator_not_permitted_before_arrow_1200": "줄 마침 표시는 화살표 앞에 사용할 수 없습니다.", - "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "모듈을 확인할 때 검색할 파일 이름 접미사 목록입니다.", - "List_of_folders_to_include_type_definitions_from_6161": "포함할 형식 정의가 있는 폴더의 목록입니다.", - "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "런타임에 프로젝트의 구조를 나타내는 결합된 콘텐츠가 있는 루트 폴더의 목록입니다.", - "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "루트 디렉터리 '{1}'에서 '{0}'을(를) 로드하고 있습니다. 후보 위치: '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "'node_modules' 폴더에서 '{0}' 모듈을 로드하고 있습니다. 대상 파일 형식은 '{1}'입니다.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "모듈을 파일/폴더로 로드하고 있습니다. 후보 모듈 위치는 '{0}', 대상 파일 형식은 '{1}'입니다.", - "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "로캘이 또는 - 형식이어야 합니다. 예를 들어 '{0}' 또는 '{1}'입니다.", - "Log_paths_used_during_the_moduleResolution_process_6706": "'moduleResolution' 프로세스 동안 사용된 로그 경로입니다.", - "Longest_matching_prefix_for_0_is_1_6108": "'{0}'에 대해 일치하는 가장 긴 접두사는 '{1}'입니다.", - "Looking_up_in_node_modules_folder_initial_location_0_6125": "'node_modules' 폴더에서 찾고 있습니다. 초기 위치: '{0}'.", - "Make_all_super_calls_the_first_statement_in_their_constructor_95036": "모든 'super()' 호출을 생성자의 첫 번째 문으로 만들기", - "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof가 문자열, 숫자 또는 기호 대신 문자열만 반환하도록 합니다. 레거시 옵션입니다.", - "Make_super_call_the_first_statement_in_the_constructor_90002": "생성자의 첫 번째 문을 'super()'로 호출", - "Mapped_object_type_implicitly_has_an_any_template_type_7039": "매핑된 개체 형식에는 'any' 템플릿 형식이 암시적으로 포함됩니다.", - "Matched_0_condition_1_6403": "'{0}' 조건 '{1}'과(와) 일치합니다.", - "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "기본적으로 일치되는 포함 패턴 '**/*'", - "Matched_by_include_pattern_0_in_1_1407": "'{1}'의 포함 패턴 '{0}'(으)로 일치되었습니다.", - "Member_0_implicitly_has_an_1_type_7008": "'{0}' 멤버에는 암시적으로 '{1}' 형식이 포함됩니다.", - "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "'{0}' 멤버는 암시적으로 '{1}' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "Merge_conflict_marker_encountered_1185": "병합 충돌 표식을 발견했습니다.", - "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652": "병합된 선언 '{0}'에는 기본 내보내기 선언을 포함할 수 없습니다. 대신 별도의 'export default {0}' 선언을 추가하세요.", - "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013": "메타 속성 '{0}'은(는) 함수 선언, 함수 식 또는 생성기의 본문에서만 사용할 수 있습니다.", - "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "'{0}' 메서드는 abstract로 표시되어 있으므로 구현이 있을 수 없습니다.", - "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "내보낸 인터페이스의 '{0}' 메서드가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "내보낸 인터페이스의 '{0}' 메서드가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Method_not_implemented_95158": "메서드가 구현되지 않았습니다.", - "Modifiers_cannot_appear_here_1184": "한정자를 여기에 표시할 수 없습니다.", - "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "'{0}' 모듈은 '{1}' 플래그를 사용하는 가져온 기본값이어야만 합니다.", - "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "이 구문을 사용하여 '{0}' 모듈을 가져올 수 없습니다. 지정자는 'require'로 가져올 수 없는 ES 모듈로만 확인됩니다. ECMAScript 가져오기를 대신 사용하세요.", - "Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "'{0}' 모듈은 '{1}'을(를) 로컬로 선언하지만, 모듈을 '{2}'(으)로 내보냅니다.", - "Module_0_declares_1_locally_but_it_is_not_exported_2459": "'{0}' 모듈은 '{1}'을(를) 로컬로 선언하지만, 모듈을 내보내지 않습니다.", - "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "모듈 '{0}'은(는) 형식을 참조하지 않지만, 여기에서 형식으로 사용됩니다. 'typeof 가져오기('{0}')'를 사용하시겠습니까?", - "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339": "모듈 '{0}'은(는) 값을 참조하지 않지만, 여기에서 값으로 사용됩니다.", - "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308": "{0} 모듈에서 '{1}'(이)라는 멤버를 이미 내보냈습니다. 모호성을 해결하려면 명시적으로 다시 내보내는 것이 좋습니다.", - "Module_0_has_no_default_export_1192": "모듈 '{0}'에는 기본 내보내기가 없습니다.", - "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613": "'{0}' 모듈에 기본 내보내기가 없습니다. 대신 '{0}에서 { {1} } 가져오기'를 사용하시겠습니까?", - "Module_0_has_no_exported_member_1_2305": "'{0}' 모듈에 내보낸 멤버 '{1}'이(가) 없습니다.", - "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "'{0}' 모듈에 내보낸 멤버 '{1}'이(가) 없습니다. 대신 '{0}에서 {1} 가져오기'를 사용하시겠습니까?", - "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "'{0}' 모듈은 이름이 같은 로컬 선언으로 숨겨집니다.", - "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "모듈 '{0}'은(는) 'export ='을 사용하며 'export *'와 함께 사용할 수 없습니다.", - "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "이 파일은 수정되지 않았으므로 '{0}' 모듈은 '{1}'에서 선언된 앰비언트 모듈로 확인되었습니다.", - "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "'{0}' 모듈은 '{1}'에서 지역으로 선언된 앰비언트 모듈로 확인되었습니다.", - "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "모듈 '{0}'이(가) '{1}'(으)로 확인되었지만 '--jsx'가 설정되지 않았습니다.", - "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "'{0}' 모듈이 '{1}'(으)로 확인되었지만 '--resolveJsonModule'이 사용되지 않았습니다.", - "Module_declaration_names_may_only_use_or_quoted_strings_1443": "모듈 선언 이름에는 ' 또는 \" 인용 문자열만 사용할 수 있습니다.", - "Module_name_0_matched_pattern_1_6092": "모듈 이름: '{0}', 일치하는 패턴: '{1}'", - "Module_name_0_was_not_resolved_6090": "======== 모듈 이름 '{0}'이(가) 확인되지 않았습니다. ========", - "Module_name_0_was_successfully_resolved_to_1_6089": "======== 모듈 이름 '{0}'이(가) '{1}'(으)로 확인되었습니다. ========", - "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218": "======== 모듈 이름 '{0}'이(가) 패키지 ID가 '{2}'인 '{1}'(으)로 확인되었습니다. ========", - "Module_resolution_kind_is_not_specified_using_0_6088": "모듈 확인 종류가 지정되지 않았습니다. '{0}'을(를) 사용합니다.", - "Module_resolution_using_rootDirs_has_failed_6111": "'rootDirs'를 사용한 모듈 확인에 실패했습니다.", - "Modules_6244": "모듈", - "Move_labeled_tuple_element_modifiers_to_labels_95117": "레이블이 지정된 튜플 요소 한정자를 레이블로 이동", - "Move_to_a_new_file_95049": "새 파일로 이동", - "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "여러 개의 연속된 숫자 구분 기호는 허용되지 않습니다.", - "Multiple_constructor_implementations_are_not_allowed_2392": "여러 생성자 구현은 허용되지 않습니다.", - "NEWLINE_6061": "줄 바꿈", - "Name_is_not_valid_95136": "이름이 잘못되었습니다.", - "Named_property_0_of_types_1_and_2_are_not_identical_2319": "명명된 속성 '{0}'의 형식 '{1}' 및 '{2}'이(가) 동일하지 않습니다.", - "Namespace_0_has_no_exported_member_1_2694": "'{0}' 네임스페이스에 내보낸 멤버 '{1}'이(가) 없습니다.", - "Namespace_must_be_given_a_name_1437": "네임스페이스에 이름을 지정해야 합니다.", - "Namespace_name_cannot_be_0_2819": "네임스페이스 이름은 '{0}'일 수 없습니다.", - "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "기본 생성자에 지정된 수의 형식 인수가 없습니다.", - "No_constituent_of_type_0_is_callable_2755": "'{0}' 형식의 구성원을 호출할 수 없습니다.", - "No_constituent_of_type_0_is_constructable_2759": "'{0}' 형식의 구성원을 생성할 수 없습니다.", - "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054": "'{1}' 형식에서 '{0}' 형식의 매개 변수가 포함된 인덱스 시그니처를 찾을 수 없습니다.", - "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003": "'{0}' 구성 파일에서 입력을 찾을 수 없습니다. 지정된 '포함' 경로는 '{1}'이고 '제외' 경로는 '{2}'이었습니다.", - "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608": "더 이상 지원되지 않습니다. 초기 버전에서는 파일을 읽기 위한 텍스트 인코딩을 수동으로 설정합니다.", - "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575": "오버로드에 {0} 인수가 필요하지 않지만, {1} 또는 {2} 인수가 필요한 오버로드가 있습니다.", - "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743": "오버로드에 {0} 형식 인수가 필요하지 않지만, {1} 또는 {2} 형식 인수가 필요한 오버로드가 있습니다.", - "No_overload_matches_this_call_2769": "이 호출과 일치하는 오버로드가 없습니다.", - "No_type_could_be_extracted_from_this_type_node_95134": "이 형식 노드에서 형식을 추출할 수 없습니다.", - "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "줄임 속성 '{0}'의 범위에 값이 없습니다. 값을 선언하거나 이니셜라이저를 제공합니다.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "비추상 클래스 '{0}'은(는) '{2}' 클래스에서 상속된 추상 멤버 '{1}'을(를) 구현하지 않습니다.", - "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "비추상 클래스 식은 '{1}' 클래스에서 상속된 추상 멤버 '{0}'을(를) 구현하지 않습니다.", - "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "null이 아닌 어설션은 TypeScript 파일에서만 사용할 수 있습니다.", - "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "'baseUrl'이 설정되지 않은 경우 상대 경로가 아닌 경로는 허용되지 않습니다. 선행 './'를 잊으셨습니까?", - "Non_simple_parameter_declared_here_1348": "여기서 단순하지 않은 매개 변수가 선언되었습니다.", - "Not_all_code_paths_return_a_value_7030": "일부 코드 경로가 값을 반환하지 않습니다.", - "Not_all_constituents_of_type_0_are_callable_2756": "'{0}' 형식의 일부 구성원을 호출할 수 없습니다.", - "Not_all_constituents_of_type_0_are_constructable_2760": "'{0}' 형식의 일부 구성원을 생성할 수 없습니다.", - "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "절대값이 2^53보다 크거나 같은 숫자 리터럴은 너무 커서 정수로 정확하게 표시할 수 없습니다.", - "Numeric_separators_are_not_allowed_here_6188": "숫자 구분 기호는 여기에서 허용되지 않습니다.", - "Object_is_of_type_unknown_2571": "개체가 '알 수 없는' 형식입니다.", - "Object_is_possibly_null_2531": "개체가 'null'인 것 같습니다.", - "Object_is_possibly_null_or_undefined_2533": "개체가 'null' 또는 'undefined'인 것 같습니다.", - "Object_is_possibly_undefined_2532": "개체가 'undefined'인 것 같습니다.", - "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "개체 리터럴은 알려진 속성만 지정할 수 있으며 '{1}' 형식에 '{0}'이(가) 없습니다.", - "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "개체 리터럴은 알려진 속성만 지정할 수 있지만 '{1}' 형식에 '{0}'이(가) 없습니다. '{2}'을(를) 쓰려고 했습니까?", - "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "개체 리터럴의 '{0}' 속성에는 암시적으로 '{1}' 형식이 포함됩니다.", - "Octal_digit_expected_1178": "8진수가 있어야 합니다.", - "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "8진수 리터럴 형식은 ES2015 구문을 사용해야 합니다. '{0}' 구문을 사용하세요.", - "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "8진수 리터럴은 열거형 멤버 이니셜라이저에서 사용할 수 없습니다. '{0}' 구문을 사용하세요.", - "Octal_literals_are_not_allowed_in_strict_mode_1121": "strict 모드에서는 8진수 리터럴이 허용되지 않습니다.", - "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "ECMAScript 5 이상을 대상으로 하는 경우 8진수 리터럴을 사용할 수 없습니다. '{0}' 구문을 사용하세요.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' 문에는 단일 변수 선언만 허용됩니다.", - "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' 문에는 단일 변수 선언만 허용됩니다.", - "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "void 함수만 'new' 키워드로 호출할 수 있습니다.", - "Only_ambient_modules_can_use_quoted_names_1035": "앰비언트 모듈만 따옴표가 붙은 이름을 사용할 수 있습니다.", - "Only_amd_and_system_modules_are_supported_alongside_0_6082": "'amd' 및 'system' 모듈만 --{0}과(와) 함께 사용할 수 있습니다.", - "Only_emit_d_ts_declaration_files_6014": "'.d.ts' 선언 파일만 내보냅니다.", - "Only_named_exports_may_use_export_type_1383": "명명된 내보내기에서만 'export type'을 사용할 수 있습니다.", - "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "숫자 열거형에는 컴퓨팅된 구성원만 사용할 수 있는데 이 식에는 '{0}' 형식이 있습니다. 전체 검사가 필요하지 않은 경우에는 개체 리터럴을 대신 사용해 보세요.", - "Only_output_d_ts_files_and_not_JavaScript_files_6623": "JavaScript 파일은 출력하지 않고 d.ts 파일만 출력합니다.", - "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "기본 클래스의 공용 및 보호된 메서드만 'super' 키워드를 통해 액세스할 수 있습니다.", - "Operator_0_cannot_be_applied_to_type_1_2736": "'{0}' 연산자는 '{1}' 형식에 적용할 수 없습니다.", - "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "'{0}' 연산자를 '{1}' 및 '{2}' 형식에 적용할 수 없습니다.", - "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "편집할 때 다중 프로젝트 참조 검사에서 프로젝트를 옵트아웃합니다.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "'{0}' 옵션은 'tsconfig. json' 파일에만 지정하거나 명령줄에서 'false' 또는 'null'로 설정할 수 있습니다.", - "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "'{0}' 옵션은 'tsconfig. json' 파일에만 지정하거나 명령줄에서 'null'로 설정할 수 있습니다.", - "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "'{0}' 옵션은 '--inlineSourceMap' 옵션 또는 '--sourceMap' 옵션이 제공되는 경우에만 사용할 수 있습니다.", - "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "'jsx' 옵션이 '{1}'인 경우 '{0}' 옵션을 지정할 수 없습니다.", - "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "'target' 옵션이 'ES3'인 경우 '{0}' 옵션을 지정할 수 없습니다.", - "Option_0_cannot_be_specified_with_option_1_5053": "'{0}' 옵션은 '{1}' 옵션과 함께 지정할 수 없습니다.", - "Option_0_cannot_be_specified_without_specifying_option_1_5052": "'{1}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.", - "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "'{1}' 또는 '{2}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.", - "Option_build_must_be_the_first_command_line_argument_6369": "'--build' 옵션은 첫 번째 명령줄 인수여야 합니다.", - "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "'--incremental' 옵션은 tsconfig를 사용하거나 단일 파일로 내보내서 지정하거나 '--tsBuildInfoFile' 옵션을 지정할 때만 지정할 수 있습니다.", - "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "'isolatedModules' 옵션은 '--module' 옵션을 지정하거나 'target' 옵션이 'ES2015' 이상인 경우에만 사용할 수 있습니다.", - "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules'가 사용하도록 설정된 경우 'preserveConstEnums' 옵션을 사용하지 않도록 설정할 수 없습니다.", - "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "'preserveValueImports' 옵션은 'module'이 'es2015' 이상으로 설정된 경우에만 사용할 수 있습니다.", - "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "명령줄에서 'project' 옵션을 원본 파일과 혼합하여 사용할 수 없습니다.", - "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "'--resolveJsonModule' 옵션은 모듈 코드 생성이 'commonjs', 'amd', 'es2015' 또는 'esNext'일 경우에만 지정할 수 있습니다.", - "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' 모듈 확인 전략 없이 '--resolveJsonModule' 옵션을 지정할 수 없습니다.", - "Options_0_and_1_cannot_be_combined_6370": "'{0}' 및 '{1}' 옵션은 조합할 수 없습니다.", - "Options_Colon_6027": "옵션:", - "Output_Formatting_6256": "출력 서식 지정", - "Output_compiler_performance_information_after_building_6615": "빌드 후 컴파일러 성능 정보를 출력합니다.", - "Output_directory_for_generated_declaration_files_6166": "생성된 선언 파일의 출력 디렉터리입니다.", - "Output_file_0_from_project_1_does_not_exist_6309": "프로젝트 '{1}'의 출력 파일 '{0}'이(가) 존재하지 않습니다.", - "Output_file_0_has_not_been_built_from_source_file_1_6305": "출력 파일 '{0}'이(가) 소스 파일 '{1}'에서 빌드되지 않았습니다.", - "Output_from_referenced_project_0_included_because_1_specified_1411": "'{1}'이(가) 지정되었기 때문에 참조된 프로젝트 '{0}'의 출력이 포함됩니다.", - "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "'--module'이 'none'으로 지정되었기 때문에 참조된 프로젝트 '{0}'의 출력이 포함됩니다.", - "Output_more_detailed_compiler_performance_information_after_building_6632": "빌드 후 더 자세한 컴파일러 성능 정보를 출력합니다.", - "Overload_0_of_1_2_gave_the_following_error_2772": "오버로드 {0}/{1}('{2}')에서 다음 오류가 발생했습니다.", - "Overload_signatures_must_all_be_abstract_or_non_abstract_2512": "오버로드 시그니처는 모두 추상이거나 비추상이어야 합니다.", - "Overload_signatures_must_all_be_ambient_or_non_ambient_2384": "오버로드 시그니처는 모두 앰비언트이거나 앰비언트가 아니어야 합니다.", - "Overload_signatures_must_all_be_exported_or_non_exported_2383": "오버로드 시그니처는 모두 내보내거나 모두 내보내지 않아야 합니다.", - "Overload_signatures_must_all_be_optional_or_required_2386": "오버로드 시그니처는 모두 선택 사항이거나 필수 사항이어야 합니다.", - "Overload_signatures_must_all_be_public_private_or_protected_2385": "오버로드 시그니처는 모두 퍼블릭, 프라이빗 또는 보호된 상태여야 합니다.", - "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373": "매개 변수 '{0}'은(는) 이 매개 변수 뒤에 선언된 식별자 '{1}'을(를) 참조할 수 없습니다.", - "Parameter_0_cannot_reference_itself_2372": "매개 변수 '{0}'은(는) 자신을 참조할 수 없습니다.", - "Parameter_0_implicitly_has_an_1_type_7006": "'{0}' 매개 변수에는 암시적으로 '{1}' 형식이 포함됩니다.", - "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044": "'{0}' 매개 변수는 암시적으로 '{1}' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227": "'{0}' 매개 변수는 '{1}' 매개 변수와 같은 위치에 있지 않습니다.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108": "접근자의 '{0}' 매개 변수가 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107": "접근자의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106": "접근자의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066": "내보낸 인터페이스에 있는 호출 시그니처의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067": "내보낸 인터페이스에 있는 호출 시그니처의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061": "내보낸 클래스에 있는 생성자의 '{0}' 매개 변수가 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062": "내보낸 클래스에 있는 생성자의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063": "내보낸 클래스에 있는 생성자의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064": "내보낸 인터페이스에 있는 생성자 시그니처의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065": "내보낸 인터페이스에 있는 생성자 시그니처의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076": "내보낸 함수의 '{0}' 매개 변수가 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077": "내보낸 함수의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078": "내보낸 함수의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091": "내보낸 인터페이스에 있는 인덱스 시그니처의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092": "내보낸 인터페이스에 있는 인덱스 시그니처의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074": "내보낸 인터페이스에 있는 메서드의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075": "내보낸 인터페이스에 있는 메서드의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071": "내보낸 클래스에 있는 공용 메서드의 '{0}' 매개 변수가 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072": "내보낸 클래스에 있는 공용 메서드의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073": "내보낸 클래스에 있는 공용 메서드의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068": "내보낸 클래스에 있는 공용 정적 메서드의 '{0}' 매개 변수가 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069": "내보낸 클래스에 있는 공용 정적 메서드의 '{0}' 매개 변수가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070": "내보낸 클래스에 있는 공용 정적 메서드의 '{0}' 매개 변수가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_cannot_have_question_mark_and_initializer_1015": "매개 변수에 물음표와 이니셜라이저를 사용할 수 없습니다.", - "Parameter_declaration_expected_1138": "매개 변수 선언이 필요합니다.", - "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "매개 변수에 이름이 있지만 형식이 없습니다. '{0}: {1}'을(를) 사용하시겠습니까?", - "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "매개 변수 한정자는 TypeScript 파일에서만 사용할 수 있습니다.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "내보낸 클래스에 있는 공용 setter '{0}'의 매개 변수 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "내보낸 클래스에 있는 공용 setter '{0}'의 매개 변수 형식이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "내보낸 클래스에 있는 공용 정적 setter '{0}'의 매개 변수 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035": "내보낸 클래스에 있는 공용 정적 setter '{0}'의 매개 변수 형식이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141": "strict 모드에서 구문 분석하고 각 소스 파일에 대해 \"use strict\"를 내보냅니다.", - "Part_of_files_list_in_tsconfig_json_1409": "tsconfig.json의 'files' 목록의 일부", - "Pattern_0_can_have_at_most_one_Asterisk_character_5061": "'{0}' 패턴에는 '*' 문자를 최대 하나만 사용할 수 있습니다.", - "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386": "이 세션에서는 '--diagnostics' 또는 '--extendedDiagnostics'에 대해 성능 타이밍을 사용할 수 없습니다. Web Performance API의 네이티브 구현을 찾을 수 없습니다.", - "Platform_specific_6912": "플랫폼별", - "Prefix_0_with_an_underscore_90025": "'{0}' 앞에 밑줄 추가", - "Prefix_all_incorrect_property_declarations_with_declare_95095": "모든 잘못된 속성 선언에 'declare'를 접두사로 추가", - "Prefix_all_unused_declarations_with_where_possible_95025": "가능한 경우 사용하지 않는 모든 선언에 '_'을 접두사로 추가", - "Prefix_with_declare_95094": "'declare'를 접두사로 추가", - "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "JavaScript 출력에서 사용되지 않는 가져온 값을 유지합니다. 그렇지 않으면 제거됩니다.", - "Print_all_of_the_files_read_during_the_compilation_6653": "컴파일 중에 읽은 모든 파일을 출력합니다.", - "Print_files_read_during_the_compilation_including_why_it_was_included_6631": "컴파일 중에 읽은 파일을 포함 이유와 함께 출력합니다.", - "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "파일의 이름과 해당 파일이 컴파일에 포함된 이유를 출력합니다.", - "Print_names_of_files_part_of_the_compilation_6155": "컴파일의 일부인 파일의 이름을 인쇄합니다.", - "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503": "컴파일에 포함된 파일의 이름을 인쇄한 다음, 처리를 중지합니다.", - "Print_names_of_generated_files_part_of_the_compilation_6154": "컴파일의 일부인 생성된 파일의 이름을 인쇄합니다.", - "Print_the_compiler_s_version_6019": "컴파일러 버전을 인쇄합니다.", - "Print_the_final_configuration_instead_of_building_1350": "빌드 대신 최종 구성을 인쇄합니다.", - "Print_the_names_of_emitted_files_after_a_compilation_6652": "컴파일 후 내보낸 파일의 이름을 출력합니다.", - "Print_this_message_6017": "이 메시지를 출력합니다.", - "Private_accessor_was_defined_without_a_getter_2806": "프라이빗 접근자가 getter 없이 정의되었습니다.", - "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "변수 선언에서 프라이빗 식별자를 사용할 수 없습니다.", - "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "클래스 본문 외부에서 프라이빗 식별자를 사용할 수 없습니다.", - "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "비공개 식별자는 클래스 본문에서만 허용되며 클래스 멤버 선언의 일부, 속성 액세스 또는 'in' 식의 왼쪽에서만 사용할 수 있습니다.", - "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "프라이빗 식별자는 ECMAScript 2015 이상을 대상으로 지정할 때만 사용할 수 있습니다.", - "Private_identifiers_cannot_be_used_as_parameters_18009": "프라이빗 식별자는 매개 변수로 사용할 수 없습니다.", - "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "형식 매개 변수에서 프라이빗 또는 보호된 멤버 '{0}'에 액세스할 수 없습니다.", - "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "'{0}' 프로젝트는 '{1}' 종속성에 오류가 있기 때문에 빌드할 수 없습니다.", - "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "'{1}' 종속성이 빌드되지 않았기 때문에 '{0}' 프로젝트를 빌드할 수 없습니다.", - "Project_0_is_being_forcibly_rebuilt_6388": "'{0}' 프로젝트가 강제로 재구축되고 있습니다.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "buildinfo 파일 '{1}'이(가) 일부 변경 내용이 내보내지지 않았음을 나타내므로 프로젝트 '{0}'은(는) 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "'{1}' 종속성이 최신 상태가 아니기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "출력 '{1}'이(가) 최신 입력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "'{1}' 출력 파일이 존재하지 않기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "'{0}' 프로젝트의 출력이 현재 버전 '{2}'과(와) 다른 '{1}' 버전으로 생성되었기 때문에 이 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "'{1}' 종속성의 출력이 변경되었기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "'{1}' 파일을 읽는 동안 오류가 발생하여 프로젝트 '{0}'이(가) 만료되었습니다.", - "Project_0_is_up_to_date_6361": "'{0}' 프로젝트가 최신 상태입니다.", - "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "최신 입력 '{1}'이(가) 출력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태입니다.", - "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "프로젝트 '{0}'이(가) 최신 상태이지만 입력 파일보다 오래된 출력 파일의 타임스탬프를 업데이트해야 합니다.", - "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "'{0}' 프로젝트는 종속성에 .d.ts 파일이 있는 최신 상태입니다.", - "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "프로젝트 참조는 순환 그래프를 형성할 수 없습니다. 순환이 발견되었습니다. {0}", - "Projects_6255": "프로젝트", - "Projects_in_this_build_Colon_0_6355": "이 빌드의 프로젝트: {0}", - "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "'accessor' 한정자가 있는 속성은 ECMAScript 2015 이상을 대상으로 하는 경우에만 사용할 수 있습니다.", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "'{0}' 속성은 추상으로 표시되어 있으므로 이니셜라이저를 사용할 수 없습니다.", - "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "'{0}' 속성은 인덱스 시그니처에서 가져오는 것이므로 ['{0}']을(를) 사용하여 액세스해야 합니다.", - "Property_0_does_not_exist_on_type_1_2339": "'{1}' 형식에 '{0}' 속성이 없습니다.", - "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "'{0}' 속성이 '{1}' 형식에 없습니다. '{2}'을(를) 사용하시겠습니까?", - "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "'{0}' 속성이 '{1}' 형식에 없습니다. 대신 정적 멤버 '{2}'에 액세스하려고 하셨습니까?", - "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550": "'{0}' 속성이 '{1}' 형식에 없습니다. 대상 라이브러리를 변경해야 하는 경우 'lib' 컴파일러 옵션을 '{2}' 이상으로 변경해 보세요.", - "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812": "속성 '{0}'(은)는 '{1}'에 없습니다. 'lib' 컴파일러 옵션을 변경하여 'dom'을 포함하세요.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817": "'{0}' 속성에 이니셜라이저가 없으며 클래스 정적 블록에 확실히 할당되지 않았습니다.", - "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564": "속성 '{0}'은(는) 이니셜라이저가 없고 생성자에 할당되어 있지 않습니다.", - "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033": "'{0}' 속성에는 해당 get 접근자에 반환 형식 주석이 없으므로 암시적으로 'any' 형식이 포함됩니다.", - "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032": "'{0}' 속성에는 해당 set 접근자에 매개 변수 형식 주석이 없으므로 암시적으로 'any' 형식이 포함됩니다.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048": "'{0}' 속성은 암시적으로 'any' 형식이지만, 사용량에서 get 접근자의 더 나은 형식을 유추할 수 있습니다.", - "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049": "'{0}' 속성은 암시적으로 'any' 형식이지만, 사용량에서 set 접근자의 더 나은 형식을 유추할 수 있습니다.", - "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416": "'{1}' 형식의 '{0}' 속성을 기본 형식 '{2}'의 동일한 속성에 할당할 수 없습니다.", - "Property_0_in_type_1_is_not_assignable_to_type_2_2603": "'{1}' 형식의 '{0}' 속성을 '{2}' 형식에 할당할 수 없습니다.", - "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "'{1}' 형식의 '{0}' 속성이 '{2}' 형식 내에서 액세스할 수 없는 다른 멤버를 참조합니다.", - "Property_0_is_declared_but_its_value_is_never_read_6138": "속성 '{0}'이(가) 선언은 되었지만 해당 값이 읽히지는 않았습니다.", - "Property_0_is_incompatible_with_index_signature_2530": "'{0}' 속성이 인덱스 시그니처와 호환되지 않습니다.", - "Property_0_is_missing_in_type_1_2324": "'{0}' 속성이 '{1}' 형식에 없습니다.", - "Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "'{0}' 속성이 '{1}' 형식에 없지만 '{2}' 형식에서 필수입니다.", - "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "'{0}' 속성은 프라이빗 식별자를 포함하기 때문에 '{1}' 클래스 외부에서 액세스할 수 없습니다.", - "Property_0_is_optional_in_type_1_but_required_in_type_2_2327": "'{0}' 속성은 '{1}' 형식에서 선택적이지만 '{2}' 형식에서는 필수입니다.", - "Property_0_is_private_and_only_accessible_within_class_1_2341": "'{0}' 속성은 private이며 '{1}' 클래스 내에서만 액세스할 수 있습니다.", - "Property_0_is_private_in_type_1_but_not_in_type_2_2325": "'{0}' 속성은 '{1}' 형식에서 private이지만 '{2}' 형식에서는 그렇지 않습니다.", - "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446": "'{0}' 속성은 보호되며 '{1}' 클래스의 인스턴스를 통해서만 액세스할 수 있습니다. 이는 '{2}' 클래스의 인스턴스입니다.", - "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445": "'{0}' 속성은 보호된 속성이며 '{1}' 클래스 및 해당 하위 클래스 내에서만 액세스할 수 있습니다.", - "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443": "'{0}' 속성은 보호된 속성이지만 '{1}' 형식은 '{2}'에서 파생된 클래스가 아닙니다.", - "Property_0_is_protected_in_type_1_but_public_in_type_2_2444": "'{0}' 속성은 '{1}' 형식에서는 보호된 속성이지만 '{2}' 형식에서는 공용입니다.", - "Property_0_is_used_before_being_assigned_2565": "'{0}' 속성이 할당되기 전에 사용되었습니다.", - "Property_0_is_used_before_its_initialization_2729": "초기화하기 전에 '{0}' 속성이 사용됩니다.", - "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "'{0}' 속성이 '{1}' 형식에 없을 수 있습니다. '{2}'을(를) 사용하시겠습니까?", - "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX 분배 특성의 '{0}' 속성을 대상 속성에 할당할 수 없습니다.", - "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "내보낸 클래스 식의 속성 '{0}'이(가) 프라이빗이 아니거나 보호되지 않을 수 있습니다.", - "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "내보낸 인터페이스의 '{0}' 속성이 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "내보낸 인터페이스의 '{0}' 속성이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "'{0}' 형식의 '{1}' 속성을 '{2}' 인덱스 유형 '{3}'에 할당할 수 없습니다.", - "Property_0_was_also_declared_here_2733": "여기서도 '{0}' 속성이 선언되었습니다.", - "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "'{0}' 속성은 '{1}'의 기본 속성을 덮어씁니다. 의도적인 경우 이니셜라이저를 추가합니다. 그렇지 않으면 'declare' 한정자를 추가하거나 중복 선언을 제거합니다.", - "Property_assignment_expected_1136": "속성 할당이 필요합니다.", - "Property_destructuring_pattern_expected_1180": "속성 구조 파괴 패턴이 필요합니다.", - "Property_or_signature_expected_1131": "속성 또는 서명이 필요합니다.", - "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "속성 값은 문자열 리터럴, 숫자 리터럴, 'true', 'false', 'null', 개체 리터럴 또는 배열 리터럴이어야 합니다.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "'ES5' 또는 'ES3'을 대상으로 할 경우 'for-of', spread 및 소멸의 반복 가능한 개체를 완벽히 지원합니다.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "내보낸 클래스의 공용 메서드 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "내보낸 클래스의 공용 메서드 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "내보낸 클래스의 공용 메서드의 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029": "내보낸 클래스의 공용 속성 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030": "내보낸 클래스의 공용 속성 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031": "내보낸 클래스의 공용 속성 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095": "내보낸 클래스의 공용 정적 메서드 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096": "내보낸 클래스에 있는 공용 정적 메서드 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097": "내보낸 클래스의 공용 정적 메서드 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026": "내보낸 클래스에 있는 공용 정적 속성 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "내보낸 클래스의 공용 정적 속성 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", - "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "내보낸 클래스의 공용 정적 속성 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "정규화된 이름 '{0}'은(는) 선행 '@param {object} {1}'과(와) 함께 사용해야 합니다.", - "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "함수 매개 변수를 읽지 않으면 오류가 발생합니다.", - "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "암시된 'any' 형식이 있는 식 및 선언에서 오류를 발생합니다.", - "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "암시된 'any' 형식이 있는 'this' 식에서 오류를 발생합니다.", - "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "'--isolatedModules' 플래그가 제공될 때 형식을 다시 내보내려면 'export type'을 사용해야 합니다.", - "Redirect_output_structure_to_the_directory_6006": "출력 구조를 디렉터리로 리디렉션합니다.", - "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "TypeScript에서 자동으로 로드되는 프로젝트 수를 줄입니다.", - "Referenced_project_0_may_not_disable_emit_6310": "참조된 프로젝트 '{0}'은(는) 내보내기를 사용하지 않도록 설정할 수 없습니다.", - "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "참조되는 프로젝트 '{0}'에는 \"composite\": true 설정이 있어야 합니다.", - "Referenced_via_0_from_file_1_1400": "'{1}' 파일에서 '{0}'을(를) 통해 참조되었습니다.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "상대 가져오기 경로는 '--moduleResolution'이 'node16' 또는 'nodenext'인 경우 EcmaScript 가져오기의 명시적 파일 확장자가 필요합니다. 가져오기 경로에 확장자를 추가하는 것을 고려하세요.", - "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "상대 가져오기 경로는 '--moduleResolution'이 'node16' 또는 'nodenext'인 경우 EcmaScript 가져오기의 명시적 파일 확장자가 필요합니다. '{0}'을(를) 의미했나요?", - "Remove_a_list_of_directories_from_the_watch_process_6628": "감시 프로세스에서 디렉터리 목록을 제거합니다.", - "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "감시 모드의 처리에서 파일 목록을 제거합니다.", - "Remove_all_unnecessary_override_modifiers_95163": "불필요한 'override' 한정자 모두 제거", - "Remove_all_unnecessary_uses_of_await_95087": "불필요한 'await' 사용 모두 제거", - "Remove_all_unreachable_code_95051": "접근할 수 없는 코드 모두 제거", - "Remove_all_unused_labels_95054": "사용되지 않는 레이블 모두 제거", - "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115": "관련 문제가 있는 모든 화살표 함수 본문에서 중괄호 제거", - "Remove_braces_from_arrow_function_95060": "화살표 함수에서 중괄호 제거", - "Remove_braces_from_arrow_function_body_95112": "화살표 함수 본문에서 중괄호 제거", - "Remove_import_from_0_90005": "'{0}'에서 가져오기 제거", - "Remove_override_modifier_95161": "'override' 한정자 제거", - "Remove_parentheses_95126": "괄호 제거", - "Remove_template_tag_90011": "템플릿 태그 제거", - "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "TypeScript 언어 서버에서 JavaScript 파일의 총 소스 코드 크기에 적용되는 20MB 제한을 제거합니다.", - "Remove_type_from_import_declaration_from_0_90055": "\"{0}\"의 가져오기 선언에서 '형식' 제거", - "Remove_type_from_import_of_0_from_1_90056": "\"{1}\"의 '{0}' 가져오기에서 '형식' 제거", - "Remove_type_parameters_90012": "형식 매개 변수 제거", - "Remove_unnecessary_await_95086": "불필요한 'await' 제거", - "Remove_unreachable_code_95050": "접근할 수 없는 코드 제거", - "Remove_unused_declaration_for_Colon_0_90004": "'{0}'의 사용되지 않는 선언 제거", - "Remove_unused_declarations_for_Colon_0_90041": "'{0}'의 사용되지 않는 선언 제거", - "Remove_unused_destructuring_declaration_90039": "사용되지 않는 구조 파괴 선언 제거", - "Remove_unused_label_95053": "사용되지 않는 레이블 제거", - "Remove_variable_statement_90010": "변수 문 제거", - "Rename_param_tag_name_0_to_1_95173": "'@param' 태그 이름 '{0}'의 이름을 '{1}'(으)로 바꿉니다.", - "Replace_0_with_Promise_1_90036": "'{0}'을(를) 'Promise<{1}>'(으)로 바꾸기", - "Replace_all_unused_infer_with_unknown_90031": "사용되지 않은 모든 'infer'를 'unknown'으로 바꾸기", - "Replace_import_with_0_95015": "가져오기를 '{0}'(으)로 바꿉니다.", - "Replace_infer_0_with_unknown_90030": "'infer {0}'을(를) 'unknown'으로 바꾸기", - "Report_error_when_not_all_code_paths_in_function_return_a_value_6075": "함수의 일부 코드 경로가 값을 반환하지 않는 경우 오류를 보고합니다.", - "Report_errors_for_fallthrough_cases_in_switch_statement_6076": "switch 문의 fallthrough case에 대한 오류를 보고합니다.", - "Report_errors_in_js_files_8019": ".js 파일의 오류를 보고합니다.", - "Report_errors_on_unused_locals_6134": "사용되지 않은 로컬 항목에 대한 오류를 보고합니다.", - "Report_errors_on_unused_parameters_6135": "사용되지 않은 매개 변수에 대한 오류를 보고합니다.", - "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "요소 액세스를 사용하려면 인덱스 시그니처의 선언되지 않은 속성이 필요합니다.", - "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "필수 형식 매개 변수는 선택적 형식 매개 변수 다음에 올 수 없습니다.", - "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' 모듈에 대한 해결을 '{1}' 위치의 캐시에서 찾았습니다.", - "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{1}' 위치의 캐시에서 형식 참조 지시어 '{0}'에 대한 해상도가 발견되었습니다.", - "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "문자열 값 속성 이름에 대해서만 'keyof'를 확인합니다(숫자나 기호 아님).", - "Resolving_in_0_mode_with_conditions_1_6402": "조건이 {1}인 {0} 모드에서 확인하는 중입니다.", - "Resolving_module_0_from_1_6086": "======== '{1}'에서 '{0}' 모듈을 확인하는 중입니다. ========", - "Resolving_module_name_0_relative_to_base_url_1_2_6094": "기본 URL '{1}' - '{2}'을(를) 기준으로 모듈 이름 '{0}'을(를) 확인하는 중입니다.", - "Resolving_real_path_for_0_result_1_6130": "'{0}'의 실제 경로를 확인하는 중입니다. 결과: '{1}'.", - "Resolving_type_reference_directive_0_containing_file_1_6242": "======== 파일 '{1}'을(를) 포함하는 형식 참조 지시어 '{0}'을(를) 확인하는 중입니다.' ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: '{1}', 루트 디렉터리: '{2}' ========", - "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: '{1}', 루트 디렉터리: 설정되지 않음 ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: 설정되지 않음, 루트 디렉터리: '{1}' ========", - "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: 설정되지 않음, 루트 디렉터리: 설정되지 않음 ========", - "Resolving_with_primary_search_path_0_6121": "기본 검색 경로 '{0}'을(를) 사용하여 확인하는 중입니다.", - "Rest_parameter_0_implicitly_has_an_any_type_7019": "Rest 매개 변수 '{0}'에는 암시적으로 'any[]' 형식이 포함됩니다.", - "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Rest 매개 변수 '{0}'은(는) 암시적으로 'any[]' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "Rest_types_may_only_be_created_from_object_types_2700": "rest 유형은 개체 형식에서만 만들 수 있습니다.", - "Return_type_annotation_circularly_references_itself_2577": "반환 형식 주석이 자신을 순환 참조합니다.", - "Return_type_must_be_inferred_from_a_function_95149": "반환 형식은 함수에서 유추되어야 합니다.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046": "내보낸 인터페이스에 있는 호출 시그니처의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047": "내보낸 인터페이스에 있는 호출 시그니처의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044": "내보낸 인터페이스에 있는 생성자 시그니처의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045": "내보낸 인터페이스에 있는 생성자 시그니처의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409": "생성자 시그니처의 반환 형식을 클래스의 인스턴스 형식에 할당할 수 있어야 합니다.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058": "내보낸 함수의 반환 형식이 외부 모듈 {1}의 '{0}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059": "내보낸 함수의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_exported_function_has_or_is_using_private_name_0_4060": "내보낸 함수의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048": "내보낸 인터페이스에 있는 인덱스 시그니처의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049": "내보낸 인터페이스에 있는 인덱스 시그니처의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056": "내보낸 인터페이스에 있는 메서드의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057": "내보낸 인터페이스에 있는 메서드의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041": "내보낸 클래스에 있는 공용 getter '{0}'의 반환 형식이 외부 모듈 {2}의 이름 '{1}'을(를) 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042": "내보낸 클래스에 있는 공용 getter '{0}'의 반환 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043": "내보낸 클래스에 있는 공용 getter '{0}'의 반환 형식이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053": "내보낸 클래스에 있는 공용 메서드의 반환 형식이 외부 모듈 {1}의 '{0}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054": "내보낸 클래스에 있는 공용 메서드의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055": "내보낸 클래스에 있는 공용 메서드의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038": "내보낸 클래스에 있는 공용 정적 getter '{0}'의 반환 형식이 외부 모듈 {2}의 이름 '{1}'을(를) 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039": "내보낸 클래스에 있는 공용 정적 getter '{0}'의 반환 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040": "내보낸 클래스에 있는 공용 정적 getter '{0}'의 반환 형식이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050": "내보낸 클래스에 있는 공용 정적 메서드의 반환 형식이 외부 모듈 {1}의 '{0}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051": "내보낸 클래스에 있는 공용 정적 메서드의 반환 형식이 프라이빗 모듈 '{1}'의 '{0}' 이름을 가지고 있거나 사용 중입니다.", - "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052": "내보낸 클래스에 있는 공용 정적 메서드의 반환 형식이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395": "'{1}'에서 '{0}' 모듈의 해결 방법을 '{2}위치 '의 캐시에 다시 사용하는 중이었으므로 해결되지 않았습니다.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393": "위치 '{2}'의 캐시에 있는 '{1}'에서 '{0}' 모듈의 해결 방법을 다시 사용하는 중입니다. '{3}'(으)로 해결되었습니다.", - "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394": "위치 '{2}'의 캐시에 있는 '{1}'에서 '{0}' 모듈의 해결 방법을 다시 사용하는 중입니다. 패키지 ID가 '{4}'인 '{3}'(으)로 해결되었습니다.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389": "이전 프로그램의 '{1}'에서 '{0}' 모듈의 해결 방법을 다시 사용하는 중이었으므로 확인되지 않았습니다.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183": "이전 프로그램의 '{1}'에서 '{0}' 모듈의 해결 방법을 다시 사용 중이므로 '{2}'(으)로 해결되었습니다.", - "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184": "이전 프로그램의 '{1}'에서 '{0}' 모듈의 해결 방법을 다시 사용 중이며 패키지 ID가 '{3}'인 '{2}'(으)로 해결되었습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398": "위치 '{2}'의 캐시에 있는 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용하는 중이며 해결되지 않았습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396": "위치 '{2}'의 캐시에 있는 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용하는 중입니다. '{3}'(으)로 해결되었습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397": "위치 '{2}'의 캐시에 있는 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용하는 중입니다. 패키지 ID가 '{4}'인 '{3}'(으)로 해결되었습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392": "이전 프로그램의 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용 중이므로 해결되지 않았습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390": "이전 프로그램의 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용 중이며 '{2}'(으)로 해결되었습니다.", - "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "이전 프로그램의 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용 중이며 패키지 ID가 '{3}'인 '{2}'(으)로 해결되었습니다.", - "Rewrite_all_as_indexed_access_types_95034": "인덱싱된 액세스 형식으로 모두 다시 작성", - "Rewrite_as_the_indexed_access_type_0_90026": "인덱싱된 액세스 형식 '{0}'(으)로 다시 작성", - "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "루트 디렉터리를 확인할 수 없어 기본 검색 경로를 건너뜁니다.", - "Root_file_specified_for_compilation_1427": "컴파일을 위해 지정된 루트 파일", - "STRATEGY_6039": "전략", - "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "프로젝트의 증분 컴파일을 허용하도록 .tsbuildinfo 파일을 저장합니다.", - "Saw_non_matching_condition_0_6405": "비일치 조건 '{0}'을(를) 확인했습니다.", - "Scoped_package_detected_looking_in_0_6182": "범위가 지정된 패키지가 검색되었습니다. '{0}'에서 찾습니다.", - "Selection_is_not_a_valid_statement_or_statements_95155": "선택 항목이 유효한 하나의 문 또는 여러 문이 아닙니다.", - "Selection_is_not_a_valid_type_node_95133": "선택 영역이 유효한 형식 노드가 아닙니다.", - "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "내보낸 JavaScript의 JavaScript 언어 버전을 설정하고 호환되는 라이브러리 선언을 포함합니다.", - "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654": "TypeScript에서 메시지 언어를 설정합니다. 이는 내보내기에 영향을 주지 않습니다.", - "Set_the_module_option_in_your_configuration_file_to_0_95099": "구성 파일의 'module' 옵션을 '{0}'(으)로 설정", - "Set_the_newline_character_for_emitting_files_6659": "파일을 내보내기 위한 줄 바꿈 문자를 설정합니다.", - "Set_the_target_option_in_your_configuration_file_to_0_95098": "구성 파일의 'target' 옵션을 '{0}'(으)로 설정", - "Setters_cannot_return_a_value_2408": "Setter가 값을 반환할 수 없습니다.", - "Show_all_compiler_options_6169": "모든 컴파일러 옵션을 표시합니다.", - "Show_diagnostic_information_6149": "진단 정보를 표시합니다.", - "Show_verbose_diagnostic_information_6150": "자세한 진단 정보를 표시합니다.", - "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "빌드될 항목 표시(또는 '--clean'으로 지정된 경우 삭제될 항목 표시)", - "Signature_0_must_be_a_type_predicate_1224": "'{0}' 시그니처는 형식 조건자여야 합니다.", - "Skip_type_checking_all_d_ts_files_6693": "모든 .d.ts 파일의 형식 검사를 건너뜁니다.", - "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "TypeScript에 포함된 .d.ts 파일의 형식 검사를 건너뜁니다.", - "Skip_type_checking_of_declaration_files_6012": "선언 파일 형식 검사를 건너뜁니다.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "'{0}' 프로젝트의 빌드는 '{1}' 종속성에 오류가 있기 때문에 건너뜁니다.", - "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "'{1}' 종속성이 빌드되지 않았기 때문에 '{0}' 프로젝트의 빌드를 건너뛰는 중", - "Source_from_referenced_project_0_included_because_1_specified_1414": "'{1}'이(가) 지정되었기 때문에 참조된 프로젝트 '{0}'의 소스가 포함됩니다.", - "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "'--module'이 'none'으로 지정되었기 때문에 참조된 프로젝트 '{0}'의 소스가 포함됩니다.", - "Source_has_0_element_s_but_target_allows_only_1_2619": "소스에 {0}개 요소가 있지만, 대상에서 {1}개만 허용합니다.", - "Source_has_0_element_s_but_target_requires_1_2618": "소스에 {0}개 요소가 있지만, 대상에 {1}개가 필요합니다.", - "Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "소스가 대상에 있는 {0} 위치의 필수 요소와 일치하는 항목을 제공하지 않습니다.", - "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "소스가 대상에 있는 {0} 위치의 가변 인자 요소와 일치하는 항목을 제공하지 않습니다.", - "Specify_ECMAScript_target_version_6015": "ECMAScript 대상 버전을 지정합니다.", - "Specify_JSX_code_generation_6080": "JSX 코드 생성을 지정합니다.", - "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "모든 출력을 하나의 JavaScript 파일로 묶는 파일을 지정하세요. 'declaration'이 true이면 모든 .d.ts 출력을 묶는 파일도 지정합니다.", - "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "컴파일에 포함할 파일과 일치하는 GLOB 패턴 목록을 지정합니다.", - "Specify_a_list_of_language_service_plugins_to_include_6681": "포함할 언어 서비스 플러그 인 목록을 지정합니다.", - "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "대상 런타임 환경을 설명하는 번들 라이브러리 선언 파일 세트를 지정합니다.", - "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "추가 검색 위치로 가져오기를 다시 매핑할 항목 집합을 지정합니다.", - "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "프로젝트의 경로를 지정하는 개체 배열을 지정합니다. 프로젝트 참조에 사용됩니다.", - "Specify_an_output_folder_for_all_emitted_files_6678": "내보낸 모든 파일의 출력 폴더를 지정합니다.", - "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "유형에만 사용되는 가져오기에 대한 방출/확인 동작을 지정합니다.", - "Specify_file_to_store_incremental_compilation_information_6380": "증분 컴파일 정보를 저장할 파일 지정", - "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "TypeScript가 지정된 모듈 지정자에서 파일을 검색하는 방법을 지정합니다.", - "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "재귀 파일 감시 기능이 없는 시스템에서 디렉터리를 감시하는 방법을 지정합니다.", - "Specify_how_the_TypeScript_watch_mode_works_6715": "TypeScript 감시 모드의 작동 방식을 지정합니다.", - "Specify_library_files_to_be_included_in_the_compilation_6079": "컴파일에 포함할 라이브러리 파일을 지정합니다.", - "Specify_module_code_generation_6016": "모듈 코드 생성을 지정합니다.", - "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "모듈 확인 전략 지정: 'node'(Node.js) 또는 'classic'(TypeScript 1.6 이전).", - "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "'jsx: react-jsx*'를 사용할 때 JSX 팩토리 함수를 가져오기 위해 사용되는 모듈 지정자를 지정합니다.", - "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "'./node_modules/@types'와 같은 역할을 하는 여러 폴더를 지정합니다.", - "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "설정이 상속되는 기본 구성 파일에 대한 하나 이상의 경로 또는 노드 모듈 참조를 지정합니다.", - "Specify_options_for_automatic_acquisition_of_declaration_files_6709": "선언 파일의 자동 인식 옵션을 지정합니다.", - "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "파일 시스템 이벤트를 사용하여 만들지 못할 경우 폴링 조사식을 만들기 위한 전략 지정: 'FixedInterval'(기본값), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.", - "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226": "기본적으로 재귀 감시를 지원하지 않는 플랫폼에서 디렉터리를 감시하기 위한 전략 지정: 'UseFsEvents'(기본값), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.", - "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "파일을 감시하기 위한 전략 지정: 'FixedPollingInterval'(기본값), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.", - "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "React JSX 내보내기를 대상으로 할 때 조각에 사용되는 JSX 조각 참조를 지정합니다(예: 'React.Fragment' 또는 'Fragment').", - "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "'react' JSX 내보내기를 대상으로 하는 경우 사용할 JSX 팩터리 함수를 지정합니다(예: 'React.createElement' 또는 'h').", - "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "React JSX 방출을 대상으로 할 때 사용되는 JSX 팩토리 함수를 지정하세요. 'React.createElement' 또는 'h'.", - "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "'JsxFactory' 컴파일러 옵션이 지정된 상태로 'react' JSX 내보내기를 대상으로 설정할 때 사용할 JSX 조각 팩터리 함수를 지정합니다(예: 'Fragment').", - "Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "상대적이지 않은 모듈 이름을 확인할 기본 디렉터리를 지정합니다.", - "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "파일을 내보낼 때 사용할 줄 시퀀스의 끝 지정: 'CRLF'(dos) 또는 'LF'(unix).", - "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "소스 위치 대신 디버거가 TypeScript 파일을 찾아야 하는 위치를 지정하세요.", - "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "생성된 위치 대신 디버거가 맵 파일을 찾아야 하는 위치를 지정하세요.", - "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "'node_modules'에서 JavaScript 파일을 확인하는 데 사용되는 최대 폴더 깊이를 지정합니다. 'allowJs'에만 적용 가능합니다.", - "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "'jsx' 및 'jsxs' 팩터리 함수를 가져오는 데 사용할 모듈 지정자를 지정합니다(예: react).", - "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "'createElement'에 대해 호출된 개체를 지정합니다. '반응' JSX 방출을 대상으로 할 때만 적용됩니다.", - "Specify_the_output_directory_for_generated_declaration_files_6613": "생성된 선언 파일의 출력 디렉터리를 지정합니다.", - "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": ".tsbuildinfo 증분 컴파일 파일의 경로를 지정합니다.", - "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "입력 파일의 루트 디렉터리를 지정하세요. --outDir이 포함된 출력 디렉터리 구조를 제어하는 데 사용됩니다.", - "Specify_the_root_folder_within_your_source_files_6690": "소스 파일 내에서 루트 폴더를 지정합니다.", - "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "디버거의 루트 경로를 지정하여 참조 소스 코드를 찾습니다.", - "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711": "소스 파일에서 참조하지 않고 포함할 형식 패키지 이름을 지정합니다.", - "Specify_what_JSX_code_is_generated_6646": "생성되는 JSX 코드를 지정합니다.", - "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634": "시스템에 원시 파일 감시자가 부족한 경우 감시자가 사용해야 하는 접근 방법을 지정합니다.", - "Specify_what_module_code_is_generated_6657": "생성되는 모듈 코드를 지정합니다.", - "Split_all_invalid_type_only_imports_1367": "잘못된 형식 전용 가져오기 모두 분할", - "Split_into_two_separate_import_declarations_1366": "두 개의 개별 가져오기 선언으로 분할", - "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472": "'new' 식에서 Spread 연산자는 ECMAScript 5 이상을 대상으로 하는 경우에만 사용할 수 있습니다.", - "Spread_types_may_only_be_created_from_object_types_2698": "spread 유형은 개체 형식에서만 만들 수 있습니다.", - "Starting_compilation_in_watch_mode_6031": "감시 모드에서 컴파일을 시작하는 중...", - "Statement_expected_1129": "문이 필요합니다.", - "Statements_are_not_allowed_in_ambient_contexts_1036": "앰비언트 컨텍스트에서는 문이 허용되지 않습니다.", - "Static_members_cannot_reference_class_type_parameters_2302": "정적 멤버는 클래스 형식 매개 변수를 참조할 수 없습니다.", - "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "정적 속성 '{0}'이(가) 생성자 함수 '{1}'의 기본 제공 속성 'Function.{0}'과(와) 충돌합니다.", - "String_literal_expected_1141": "문자열 리터럴이 필요합니다.", - "String_literal_with_double_quotes_expected_1327": "큰따옴표로 묶은 문자열 리터럴이 필요합니다.", - "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "색과 컨텍스트를 사용하여 오류 및 메시지를 스타일화합니다(실험적).", - "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "후속 속성 선언에 같은 형식이 있어야 합니다. '{0}' 속성이 '{1}' 형식이어야 하는데 여기에는 '{2}' 형식이 있습니다.", - "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "후속 변수 선언에 같은 형식이 있어야 합니다. '{0}' 변수가 '{1}' 형식이어야 하는데 여기에는 '{2}' 형식이 있습니다.", - "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "'{1}' 패턴에 대한 '{0}' 대체의 형식이 잘못되었습니다. 'string'이 필요한데 '{2}'을(를) 얻었습니다.", - "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062": "'{1}' 패턴의 '{0}' 대체에는 '*' 문자를 최대 하나만 사용할 수 있습니다.", - "Substitutions_for_pattern_0_should_be_an_array_5063": "'{0}' 패턴에 대한 대체는 배열이 되어야 합니다.", - "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066": "패턴 '{0}'에 대한 대체에는 배열이 비어 있지 않아야 합니다.", - "Successfully_created_a_tsconfig_json_file_6071": "tsconfig.json 파일을 만들었습니다.", - "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "생성자 밖이나 생성자 내부에 중첩된 함수에서는 Super 호출이 허용되지 않습니다.", - "Suppress_excess_property_checks_for_object_literals_6072": "개체 리터럴에 대한 초과 속성 검사를 생략합니다.", - "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "인덱스 시그니처가 없는 개체 인덱싱에 대한 noImplicitAny 오류를 표시하지 않습니다.", - "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "인덱스 서명이 없는 개체를 인덱싱할 때 'noImplicitAny' 오류를 억제합니다.", - "Switch_each_misused_0_to_1_95138": "잘못 사용된 각 '{0}'을(를) '{1}'(으)로 전환", - "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "기본적으로 재귀 감시를 지원하지 않는 플랫폼에서 동기적으로 콜백을 호출하고 디렉터리 감시자의 상태를 업데이트합니다.", - "Syntax_Colon_0_6023": "구문: {0}", - "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "'{0}' 태그는 '{1}'개 이상의 인수가 필요한데 JSX 팩터리 '{2}'이(가) 최대 '{3}'개를 제공합니다.", - "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "태그가 지정된 템플릿 식은 선택적 체인에서 사용할 수 없습니다.", - "Target_allows_only_0_element_s_but_source_may_have_more_2621": "대상에서 {0}개 요소만 허용하지만, 소스에 더 많이 있을 수 있습니다.", - "Target_requires_0_element_s_but_source_may_have_fewer_2620": "대상에 {0}개 요소가 필요하지만, 소스에 더 적게 있을 수 있습니다.", - "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' 한정자는 TypeScript 파일에서만 사용할 수 있습니다.", - "The_0_operator_cannot_be_applied_to_type_symbol_2469": "'{0}' 연산자는 'symbol' 유형에 적용될 수 없습니다.", - "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "'{0}' 연산자는 부울 형식에 사용할 수 없습니다. 대신 '{1}'을(를) 사용하세요.", - "The_0_property_of_an_async_iterator_must_be_a_method_2768": "비동기 반복기의 '{0}' 속성은 메서드여야 합니다.", - "The_0_property_of_an_iterator_must_be_a_method_2767": "반복기의 '{0}' 속성은 메서드여야 합니다.", - "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' 형식은 할당할 수 있는 다른 형식이 거의 없습니다. 대신 'any' 형식을 사용할까요?", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "'arguments' 개체는 ES3 및 ES5의 화살표 함수에서 참조할 수 없습니다. 표준 함수 식을 사용해 보세요.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "'arguments' 개체는 ES3 및 ES5의 비동기 함수 또는 메서드에서 참조할 수 없습니다. 표준 함수 또는 메서드를 사용해 보세요.", - "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' 문의 본문이 빈 문이면 안 됩니다.", - "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "이 구현에 대한 호출이 성공하겠지만, 오버로드의 구현 시그니처는 외부에 표시되지 않습니다.", - "The_character_set_of_the_input_files_6163": "입력 파일의 문자 집합입니다.", - "The_containing_arrow_function_captures_the_global_value_of_this_7041": "포함하는 화살표 함수는 'this'의 전역 값을 캡처합니다.", - "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "제어 흐름 분석에 대해 포함된 함수 또는 모듈 본문이 너무 큽니다.", - "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309": "현재 파일은 CommonJS 모듈이며 최상위 수준에서 'await'를 사용할 수 없습니다.", - "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479": "현재 파일은 가져오기에서 'require' 호출을 생성하는 CommonJS 모듈입니다. 그러나 참조된 파일은 ECMAScript 모듈이며 'require'로 가져올 수 없습니다. 대신 동적 'import(\"{0}\")' 호출을 작성하는 것이 좋습니다.", - "The_current_host_does_not_support_the_0_option_5001": "현재 호스트가 '{0}' 옵션을 지원하지 않습니다.", - "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018": "사용하려는 '{0}'의 선언이 여기서 정의됩니다.", - "The_declaration_was_marked_as_deprecated_here_2798": "선언이 여기에 사용되지 않음으로 표시되었습니다.", - "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500": "필요한 형식은 여기에서 '{1}' 형식에 선언된 '{0}' 속성에서 가져옵니다.", - "The_expected_type_comes_from_the_return_type_of_this_signature_6502": "필요한 형식은 이 시그니처의 반환 형식에서 가져옵니다.", - "The_expected_type_comes_from_this_index_signature_6501": "필요한 형식은 이 인덱스 시그니처에서 가져옵니다.", - "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "내보내기 할당의 식은 앰비언트 컨텍스트의 식별자 또는 정규화된 이름이어야 합니다.", - "The_file_is_in_the_program_because_Colon_1430": "파일은 다음과 같은 이유로 프로그램에 있습니다.", - "The_files_list_in_config_file_0_is_empty_18002": "'{0}' 구성 파일의 '파일' 목록이 비어 있습니다.", - "The_first_export_default_is_here_2752": "첫 번째 내보내기 기본값은 여기에 있습니다.", - "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "프라미스에서 'then' 메서드의 첫 번째 매개 변수는 콜백이어야 합니다.", - "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "전역 형식 'JSX.{0}'에 속성이 둘 이상 있을 수 없습니다.", - "The_implementation_signature_is_declared_here_2750": "여기에서는 구현 시그니처가 선언됩니다.", - "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "'import.meta' 메타 속성은 CommonJS 출력으로 빌드될 파일에서 허용되지 않습니다.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' 메타 속성은 '--module' 옵션이 'es2020', 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'인 경우에만 허용됩니다.", - "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}'의 유추된 형식 이름을 지정하려면 '{1}'에 대한 참조가 있어야 합니다. 이식하지 못할 수 있습니다. 형식 주석이 필요합니다.", - "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}'의 유추된 형식이 일반적으로 직렬화될 수 없는 순환 구조가 있는 형식을 참조합니다. 형식 주석이 필요합니다.", - "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}'의 유추 형식이 액세스할 수 없는 '{1}' 형식을 참조합니다. 형식 주석이 필요합니다.", - "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "이 노드의 유추된 형식이 컴파일러가 직렬화할 최대 길이를 초과합니다. 명시적 형식 주석이 필요합니다.", - "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "속성 '{1}'이(가) 여러 구성원에 있고 일부 구성원에서는 프라이빗 상태이므로 교집합 '{0}'이(가) 'never'로 감소했습니다.", - "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "일부 구성원에 속성 '{1}'에 충돌하는 형식이 있으므로 교집합 '{0}'이(가) 'never'로 감소했습니다.", - "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'내장' 키워드는 컴파일러에서 제공하는 내장 형식을 선언하는 데에만 사용할 수 있습니다.", - "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016": "'JsxFactory' 컴파일러 옵션과 함께 JSX 조각을 사용하려면 'jsxFragmentFactory' 컴파일러 옵션을 제공해야 합니다.", - "The_last_overload_gave_the_following_error_2770": "마지막 오버로드에서 다음 오류가 발생했습니다.", - "The_last_overload_is_declared_here_2771": "여기서 마지막 오버로드가 선언됩니다.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' 문의 왼쪽에는 구조 파괴 패턴을 사용할 수 없습니다.", - "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' 문의 왼쪽에는 형식 주석을 사용할 수 없습니다.", - "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' 문의 왼쪽은 선택적 속성 액세스일 수 없습니다.", - "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' 문의 왼쪽은 변수 또는 속성 액세스여야 합니다.", - "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405": "'for...in' 문의 왼쪽은 'string' 또는 'any' 형식이어야 합니다.", - "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483": "'for...of' 문의 왼쪽에는 형식 주석을 사용할 수 없습니다.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781": "'for...of' 문의 왼쪽은 선택적 속성 액세스일 수 없습니다.", - "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106": "'for...of' 문의 왼쪽은 'async'일 수 없습니다.", - "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487": "'for...of' 문의 왼쪽은 변수 또는 속성 액세스여야 합니다.", - "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "산술 연산의 왼쪽은 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", - "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "할당 식의 왼쪽은 선택적 속성 액세스일 수 없습니다.", - "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "할당 식의 왼쪽은 변수 또는 속성 액세스여야 합니다.", - "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 식 왼쪽은 'any' 형식, 개체 형식 또는 형식 매개 변수여야 합니다.", - "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "사용자에게 메시지를 표시할 때 사용되는 로캘입니다(예: 'en-us').", - "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules에서 검색하고 JavaScript 파일을 로드할 최대 종속성 깊이입니다.", - "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011": "'delete' 연산자의 피연산자는 프라이빗 식별자일 수 없습니다.", - "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704": "'delete' 연산자의 피연산자는 읽기 전용 속성일 수 없습니다.", - "The_operand_of_a_delete_operator_must_be_a_property_reference_2703": "'delete' 연산자의 피연산자는 속성 참조여야 합니다.", - "The_operand_of_a_delete_operator_must_be_optional_2790": "'delete' 연산자의 피연산자는 선택 사항이어야 합니다.", - "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "증분 또는 감소 연산자의 피연산자는 선택적 속성 액세스일 수 없습니다.", - "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "증가 또는 감소 연산자의 피연산자는 변수 또는 속성 액세스여야 합니다.", - "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "여기서 파서는 '{0}' 토큰과 일치하는 '{1}'을(를) 찾아야 합니다.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "프로젝트 루트가 모호하지만 '{1}' 파일에서 '{0}' 내보내기 맵 항목을 확인하는 데 필요합니다. 명확하게 하려면 `rootDir` 컴파일러 옵션을 제공하세요.", - "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "프로젝트 루트가 모호하지만 '{1}' 파일에서 '{0}' 가져오기 맵 항목을 확인하는 데 필요합니다. 명확하게 하려면 `rootDir` 컴파일러 옵션을 제공하세요.", - "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "철자가 동일한 다른 프라이빗 식별자에서 섀도 처리되기 때문에 이 클래스 내의 '{1}' 형식에서 '{0}' 속성에 액세스할 수 없습니다.", - "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' 접근자의 반환 형식은 'set' 접근자 형식에 할당할 수 있어야 합니다.", - "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "매개 변수 데코레이터 함수의 반환 형식은 'void' 또는 'any'여야 합니다.", - "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "속성 데코레이터 함수의 반환 형식은 'void' 또는 'any'여야 합니다.", - "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "비동기 함수의 반환 형식은 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "비동기 함수 또는 메서드의 반환 형식은 전역 Promise 형식이어야 합니다. 'Promise<{0}>'을(를) 쓰려고 했습니까?", - "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' 문 오른쪽은 'any' 형식, 개체 형식 또는 형식 매개 변수여야 하는데, 여기에 '{0}' 형식이 있습니다.", - "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "산술 연산 오른쪽은 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", - "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' 식 오른쪽은 'any' 형식이거나 'Function' 인터페이스 형식에 할당할 수 있는 형식이어야 합니다.", - "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' 파일의 루트 값은 개체여야 합니다.", - "The_shadowing_declaration_of_0_is_defined_here_18017": "여기서는 '{0}'의 섀도 선언이 정의됩니다.", - "The_signature_0_of_1_is_deprecated_6387": "'{1}'의 시그니처 '{0}'은(는) 사용되지 않습니다.", - "The_specified_path_does_not_exist_Colon_0_5058": "지정된 경로가 없습니다. '{0}'.", - "The_tag_was_first_specified_here_8034": "태그가 처음에 여기에 지정되었습니다.", - "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "개체 rest 할당의 대상은 선택적 속성 액세스일 수 없습니다.", - "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "개체 rest 할당의 대상은 변수 또는 속성 액세스여야 합니다.", - "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "'{0}' 형식의 'this' 컨텍스트를 메서드의 '{1}' 형식 'this'에 할당할 수 없습니다.", - "The_this_types_of_each_signature_are_incompatible_2685": "각 시그니처의 'this' 형식이 호환되지 않습니다.", - "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "'{0}' 형식은 'readonly'이며 변경 가능한 형식 '{1}'에 할당할 수 없습니다.", - "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "export 문에 'export type'이 사용될 때 명명된 내보내기에서 'type' 한정자를 사용할 수 없습니다.", - "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "import 문에 'import type'이 사용되는 경우 'type' 수정자는 명명된 가져오기에 사용할 수 없습니다.", - "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "함수 선언의 형식은 함수의 시그니처와 일치해야 합니다.", - "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "이 식의 형식은 불안정한 기능인 'resolution-mode' 어설션 없이 이름을 지정할 수 없습니다. 야간 TypeScript를 사용하여 이 오류를 무음으로 처리합니다. 'npm install -D typescript@next'로 업데이트해 보세요.", - "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "속성 '{0}'을(를) 직렬화할 수 없기 때문에 이 노드의 유형을 직렬화할 수 없습니다.", - "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "비동기 반복기의 '{0}()' 메서드에서 반환하는 형식은 'value' 속성이 있는 형식에 대한 프라미스여야 합니다.", - "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "반복기의 '{0}()' 메서드에 의해 반환되는 형식에는 'value' 속성이 있어야 합니다.", - "The_types_of_0_are_incompatible_between_these_types_2200": "'{0}'의 형식은 해당 형식 간에 호환되지 않습니다.", - "The_types_returned_by_0_are_incompatible_between_these_types_2201": "'{0}'에서 반환되는 형식은 해당 형식 간에 호환되지 않습니다.", - "The_value_0_cannot_be_used_here_18050": "여기서는 '{0}' 값을 사용할 수 없습니다.", - "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.", - "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.", - "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' 문은 지원되지 않습니다. 'with' 블록의 모든 기호가 'any' 형식이 됩니다.", - "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "이 JSX 태그의 '{0}' 속성에는 '{1}' 형식의 자식 하나가 필요하지만, 여러 자식이 제공되었습니다.", - "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "이 JSX 태그의 '{0}' 속성에는 여러 자식이 있어야 하는 '{1}' 형식이 필요하지만, 단일 자식만 제공되었습니다.", - "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}'이(가) '{1}'과(와) 겹치지 않으므로 이 비교는 의도하지 않은 것 같습니다.", - "This_condition_will_always_return_0_2845": "이 조건은 항상 '{0}'을(를) 반환합니다.", - "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript는 값이 아닌 참조로 개체를 비교하므로 이 조건은 항상 '{0}'을(를) 반환합니다.", - "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "이 '{0}'(은)는 항상 정의되어 있으므로 이 조건은 항상 true를 반환합니다.", - "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "함수가 항상 정의되므로 이 조건은 항상 true를 반환합니다. 대신 호출하시겠어요?", - "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "이 생성자 함수는 클래스 선언으로 변환될 수 있습니다.", - "This_expression_is_not_callable_2349": "이 식은 호출할 수 없습니다.", - "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "이 식은 'get' 접근자이므로 호출할 수 없습니다. '()' 없이 사용하시겠습니까?", - "This_expression_is_not_constructable_2351": "이 식은 생성할 수 없습니다.", - "This_file_already_has_a_default_export_95130": "이 파일에 이미 기본 내보내기가 있습니다.", - "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "이 가져오기는 값으로 사용되지 않으며 'importsNotUsedAsValues'가 'error'로 설정되어 있기 때문에 'import type'을 사용해야 합니다.", - "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "확대되는 선언입니다. 확대하는 선언을 같은 파일로 이동하는 것이 좋습니다.", - "This_may_be_converted_to_an_async_function_80006": "비동기 함수로 변환될 수 있습니다.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다. ‘{1}’을(를) 의미했나요?", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않기 때문에 '@override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다.", - "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다. '{1}'였습니까?", - "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않으므로 'override' 한정자를 포함할 수 없습니다.", - "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "이 멤버는 기본 클래스 '{0}'의 멤버를 재정의하므로 '@override' 태그가 있는 JSDoc 주석이 있어야 합니다.", - "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "이 멤버는 기본 클래스 '{0}'의 멤버를 재정의하므로 'override' 한정자를 포함해야 합니다.", - "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "이 멤버는 기본 클래스 '{0}'에 선언된 추상 메서드를 재정의하므로 'override' 한정자를 포함해야 합니다.", - "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "이 모듈은 '{0}' 플래그를 켜고 기본 내보내기를 참조하여 ECMAScript 가져오기/내보내기를 통해서만 참조할 수 있습니다.", - "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "이 모듈은 'export ='를 사용하여 선언되었으며 '{0}' 플래그를 사용하는 경우에만 기본 가져오기와 함께 사용할 수 있습니다.", - "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "이 오버로드 시그니처는 해당 구현 시그니처와 호환되지 않습니다.", - "This_parameter_is_not_allowed_with_use_strict_directive_1346": "이 매개 변수는 'use strict' 지시문에서 사용할 수 없습니다.", - "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "이 매개변수 속성은 기본 클래스 '{0}'의 멤버를 재정의하므로 '@override' 태그가 있는 JSDoc 주석이 있어야 합니다.", - "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "이 매개 변수 속성은 기본 클래스 '{0}'의 멤버를 재정의하므로 'override' 한정자를 포함해야 합니다.", - "This_spread_always_overwrites_this_property_2785": "이 스프레드는 항상 이 속성을 덮어씁니다.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "이 구문은 확장자가 .mts 또는 .cts인 파일에 예약되어 있습니다. 후행 쉼표 또는 명시적 제약 조건을 추가합니다.", - "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "이 구문은 확장자가 .mts 또는 .cts인 파일에 예약되어 있습니다. 대신 'as' 식을 사용하세요.", - "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "이 구문에는 가져온 도우미가 필요하지만 '{0}' 모듈을 찾을 수 없습니다.", - "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "이 구문에는 '{0}'에 없는 '{1}'(이)라는 가져온 도우미가 필요합니다. '{0}'의 버전을 업그레이드하는 것이 좋습니다.", - "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "이 구문에는 {2} 매개 변수가 포함된 '{1}'(이)라는 가져온 도우미가 필요하지만, 이 도우미는 '{0}'에 있는 도우미와 호환되지 않습니다. '{0}' 버전을 업그레이드하는 것이 좋습니다.", - "This_type_parameter_might_need_an_extends_0_constraint_2208": "이 형식 매개 변수에는 `extends {0}` 제약 조건이 필요할 수 있습니다.", - "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "이 '가져오기' 사용은 유효하지 않습니다. 'import()' 호출을 작성할 수 있지만 괄호가 있어야 하며 유형 인수를 가질 수 없습니다.", - "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482": "이 파일을 ECMAScript 모듈로 변환하려면 `\"type\": \"module\"` 필드를 '{0}'에 추가하세요.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "이 파일을 ECMAScript 모듈로 변환하려면 파일 확장명을 '{0}'(으)로 변경하거나 `\"type\": \"module\"` 필드를 '{1}'에 추가하세요.", - "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "이 파일을 ECMAScript 모듈로 변환하려면 파일 확장명을 '{0}'(으)로 변경하거나 `{ \"type\": \"module\" }`을 사용하여 로컬 package.json 파일을 만드세요.", - "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "이 파일을 ECMAScript 모듈로 변환하려면 `{ \"type\": \"module\" }`을 사용하여 로컬 package.json 파일을 만드세요.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "최상위 'await' 식은 'module' 옵션이 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", - "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 파일의 최상위 수준 선언은 'declare' 또는 'export' 한정자로 시작해야 합니다.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "최상위 'for await' 루프는 'module' 옵션이 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", - "Trailing_comma_not_allowed_1009": "후행 쉼표는 허용되지 않습니다.", - "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "각 파일을 별도 모듈로 변환 컴파일합니다('ts.transpileModule'과 유사).", - "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "해당 항목이 있는 경우 'npm i --save-dev @types/{1}'을(를) 시도하거나, 'declare module '{0}';'을(를) 포함하는 새 선언(.d.ts) 파일 추가", - "Trying_other_entries_in_rootDirs_6110": "'rootDirs'의 다른 항목을 시도하는 중입니다.", - "Trying_substitution_0_candidate_module_location_Colon_1_6093": "'{0}' 대체를 시도하는 중입니다. 후보 모듈 위치: '{1}'.", - "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "튜플 멤버는 모두 이름이 있거나 모두 이름이 없어야 합니다.", - "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "길이가 '{1}'인 튜플 형식 '{0}'의 인덱스 '{2}'에 요소가 없습니다.", - "Tuple_type_arguments_circularly_reference_themselves_4110": "튜플 형식 인수가 자신을 순환 참조합니다.", - "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "'{0}' 형식은 '--downlevelIteration' 플래그 또는 'es2015' 이상의 '--target'을 사용하는 경우에만 반복할 수 있습니다.", - "Type_0_cannot_be_used_as_an_index_type_2538": "'{0}' 형식을 인덱스 형식으로 사용할 수 없습니다.", - "Type_0_cannot_be_used_to_index_type_1_2536": "'{0}' 형식을 인덱스 형식 '{1}'에 사용할 수 없습니다.", - "Type_0_does_not_satisfy_the_constraint_1_2344": "'{0}' 형식이 '{1}' 제약 조건을 만족하지 않습니다.", - "Type_0_does_not_satisfy_the_expected_type_1_1360": "형식 '{0}'이(가) 필요한 형식 '{1}'을(를) 충족하지 않습니다.", - "Type_0_has_no_call_signatures_2757": "'{0}' 형식에 호출 시그니처가 없습니다.", - "Type_0_has_no_construct_signatures_2761": "'{0}' 형식에 구문 시그니처가 없습니다.", - "Type_0_has_no_matching_index_signature_for_type_1_2537": "'{0}' 형식에 '{1}' 형식에 대한 일치하는 인덱스 시그니처가 없습니다.", - "Type_0_has_no_properties_in_common_with_type_1_2559": "'{0}' 유형에 '{1}' 유형과 공통적인 속성이 없습니다.", - "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "유형 '{0}'에는 유형 인수 목록을 적용할 수 있는 서명이 없습니다.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "'{0}' 형식에 '{1}' 형식의 {2} 속성이 없습니다.", - "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "'{0}' 형식에 '{1}' 형식의 {2} 외 {3}개 속성이 없습니다.", - "Type_0_is_not_a_constructor_function_type_2507": "'{0}' 형식은 생성자 함수 형식이 아닙니다.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "'{0}' 형식은 Promise 호환 생성자 값을 참조하지 않으므로 ES5/ES3에서 유효한 비동기 함수 반환 형식이 아닙니다.", - "Type_0_is_not_an_array_type_2461": "'{0}' 형식은 배열 형식이 아닙니다.", - "Type_0_is_not_an_array_type_or_a_string_type_2495": "'{0}' 형식은 배열 형식 또는 문자열 형식이 아닙니다.", - "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "'{0}' 형식은 배열 형식 또는 문자열 형식이 아니거나, 반복기를 반환하는 '[Symbol.iterator]()' 메서드가 없습니다.", - "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "'{0}' 형식은 배열 형식이 아니거나 반복기를 반환하는 '[Symbol.iterator]()' 메서드가 없습니다.", - "Type_0_is_not_assignable_to_type_1_2322": "'{0}' 형식은 '{1}' 형식에 할당할 수 없습니다.", - "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "'{0}' 형식은 '{1}' 형식에 할당할 수 없습니다. '{2}'을(를) 의미했나요?", - "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "'{0}' 형식을 '{1}' 형식에 할당할 수 없습니다. 이름이 같은 2개의 서로 다른 형식이 있지만 서로 관련은 없습니다.", - "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "'{0}' 형식은 가변성 주석에 암시된 대로 '{1}' 형식에 할당할 수 없습니다.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 속성의 유형에 'undefined'를 추가하는 것을 고려하세요.", - "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 유형에 'undefined'를 추가하는 것을 고려하세요.", - "Type_0_is_not_comparable_to_type_1_2678": "'{0}' 형식을 '{1}' 형식과 비교할 수 없습니다.", - "Type_0_is_not_generic_2315": "'{0}' 형식이 제네릭이 아닙니다.", - "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "형식 '{0}'은(는) 'in' 연산자의 오른쪽 피연산자로 허용되지 않는 기본 값을 나타낼 수 있습니다.", - "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "'{0}' 형식에는 비동기 반복기를 반환하는 '[Symbol.asyncIterator]()' 메서드가 있어야 합니다.", - "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "'{0}' 형식에는 반복기를 반환하는 '[Symbol.iterator]()' 메서드가 있어야 합니다.", - "Type_0_provides_no_match_for_the_signature_1_2658": "'{0}' 형식에서 '{1}' 시그니처에 대한 일치하는 항목을 제공하지 않습니다.", - "Type_0_recursively_references_itself_as_a_base_type_2310": "Type '{0}' 형식은 자기 자신을 기본 형식으로 재귀적으로 참조합니다.", - "Type_Checking_6248": "형식 검사", - "Type_alias_0_circularly_references_itself_2456": "'{0}' 형식 별칭은 순환적으로 자신을 참조합니다.", - "Type_alias_must_be_given_a_name_1439": "형식 별칭에 이름을 지정해야 합니다.", - "Type_alias_name_cannot_be_0_2457": "형식 별칭 이름은 '{0}'일 수 없습니다.", - "Type_aliases_can_only_be_used_in_TypeScript_files_8008": "형식 별칭은 TypeScript 파일에서만 사용할 수 있습니다.", - "Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "형식 주석은 생성자 선언에 표시될 수 없습니다.", - "Type_annotations_can_only_be_used_in_TypeScript_files_8010": "형식 주석은 TypeScript 파일에서만 사용할 수 있습니다.", - "Type_argument_expected_1140": "형식 인수가 필요합니다.", - "Type_argument_list_cannot_be_empty_1099": "형식 인수 목록은 비워 둘 수 없습니다.", - "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "형식 인수는 TypeScript 파일에서만 사용할 수 있습니다.", - "Type_arguments_cannot_be_used_here_1342": "형식 인수를 여기에 사용할 수 없습니다.", - "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}'의 형식 인수가 자신을 순환 참조합니다.", - "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "형식 어설션 식은 TypeScript 파일에서만 사용할 수 있습니다.", - "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "소스의 {0} 위치에 있는 형식이 대상의 {1} 위치에 있는 형식과 호환되지 않습니다.", - "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "소스의 {0}~{1} 위치에 있는 형식이 대상의 {2} 위치에 있는 형식과 호환되지 않습니다.", - "Type_declaration_files_to_be_included_in_compilation_6124": "컴파일에 포함할 선언 파일을 입력하세요.", - "Type_expected_1110": "형식이 필요합니다.", - "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "유형 가져오기 어설션에는 값이 '가져오기' 또는 '요구'인 정확히 하나의 키('resolution-mode')가 있어야 합니다.", - "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "형식 인스턴스화는 깊이가 매우 깊으며 무한할 수도 있습니다.", - "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "형식은 자체 'then' 메서드의 처리 콜백에서 직간접적으로 참조됩니다.", - "Type_library_referenced_via_0_from_file_1_1402": "'{1}' 파일에서 '{0}'을(를) 통해 형식 라이브러리가 참조되었습니다.", - "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403": "packageId가 '{2}'인 '{1}' 파일에서 '{0}'을(를) 통해 형식 라이브러리가 참조되었습니다.", - "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320": "'await' 형식의 피연산자는 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418": "계산된 속성 값의 형식은 '{1}' 형식에 할당할 수 없는 '{0}'입니다.", - "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844": "인스턴스 멤버 변수 '{0}'의 형식은 생성자에 선언된 식별자 '{1}'을(를) 참조할 수 없습니다.", - "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*'의 반복되는 요소 형식의 피연산자는 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "'{0}' 속성의 형식은 매핑된 형식 '{1}'에서 순환적으로 자신을 참조합니다.", - "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "비동기 생성기에 있는 'yield' 형식의 피연산자는 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "형식이 이 가져오기에서 시작됩니다. 네임스페이스 스타일 가져오기는 호출하거나 생성할 수 없으며, 런타임에 오류를 초래합니다. 여기서는 대신 기본 가져오기 또는 가져오기 require를 사용하는 것이 좋습니다.", - "Type_parameter_0_has_a_circular_constraint_2313": "형식 매개 변수 '{0}'에 순환 제약 조건이 있습니다.", - "Type_parameter_0_has_a_circular_default_2716": "형식 매개 변수 '{0}'에 순환 기본값이 있습니다.", - "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "내보낸 인터페이스에 있는 호출 시그니처의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "내보낸 인터페이스에 있는 생성자 시그니처의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "내보낸 클래스의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016": "내보낸 함수의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004": "내보낸 인터페이스의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103": "내보낸 매핑된 개체 형식의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 사용 중입니다.", - "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083": "내보낸 형식 별칭의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014": "내보낸 인터페이스에 있는 메서드의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012": "내보낸 클래스에 있는 공용 메서드의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010": "내보낸 클래스에 있는 공용 정적 메서드의 형식 매개 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Type_parameter_declaration_expected_1139": "형식 매개 변수 선언이 필요합니다.", - "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004": "형식 매개 변수 선언은 TypeScript 파일에서만 사용할 수 있습니다.", - "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744": "형식 매개 변수 기본값은 이전에 선언된 형식 매개 변수만 참조할 수 있습니다.", - "Type_parameter_list_cannot_be_empty_1098": "형식 매개 변수 목록은 비워 둘 수 없습니다.", - "Type_parameter_name_cannot_be_0_2368": "형식 매개 변수 이름은 '{0}'일 수 없습니다.", - "Type_parameters_cannot_appear_on_a_constructor_declaration_1092": "형식 매개 변수는 생성자 선언에 표시될 수 없습니다.", - "Type_predicate_0_is_not_assignable_to_1_1226": "형식 조건자 '{0}'을(를) '{1}'에 할당할 수 없습니다.", - "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799": "형식이 너무 커서 표시할 수 없는 튜플 형식을 생성합니다.", - "Type_reference_directive_0_was_not_resolved_6120": "======== 형식 참조 지시문 '{0}'이(가) 확인되지 않았습니다. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119": "======== 형식 참조 지시문 '{0}'이(가) '{1}'(으)로 확인되었습니다. 주: {2}. ========", - "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219": "======== 형식 참조 지시문 '{0}'이(가) 패키지 ID가 '{2}'인 '{1}'(으)로 확인되었습니다. 주: {3}. ========", - "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037": "형식 만족 식은 TypeScript 파일에서만 사용할 수 있습니다.", - "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043": "유형은 JavaScript 파일의 내보내기 선언에 나타날 수 없습니다.", - "Types_have_separate_declarations_of_a_private_property_0_2442": "형식에 별도의 프라이빗 속성 '{0}' 선언이 있습니다.", - "Types_of_construct_signatures_are_incompatible_2419": "구문 시그니처 형식이 호환되지 않습니다.", - "Types_of_parameters_0_and_1_are_incompatible_2328": "'{0}' 및 '{1}' 매개 변수의 형식이 호환되지 않습니다.", - "Types_of_property_0_are_incompatible_2326": "'{0}' 속성의 형식이 호환되지 않습니다.", - "Unable_to_open_file_0_6050": "'{0}' 파일을 열 수 없습니다.", - "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238": "식으로 호출된 경우 클래스 데코레이터의 서명을 확인할 수 없습니다.", - "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "식으로 호출된 경우 메서드 데코레이터의 서명을 확인할 수 없습니다.", - "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "식으로 호출된 경우 매개 변수 데코레이터의 서명을 확인할 수 없습니다.", - "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "식으로 호출된 경우 속성 데코레이터의 서명을 확인할 수 없습니다.", - "Unexpected_end_of_text_1126": "예기치 않은 텍스트 끝입니다.", - "Unexpected_keyword_or_identifier_1434": "예기치 않은 키워드 또는 식별자입니다.", - "Unexpected_token_1012": "예기치 않은 토큰입니다.", - "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "예기치 않은 토큰입니다. 생성자, 메서드, 접근자 또는 속성이 필요합니다.", - "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "예기치 않은 토큰입니다. 중괄호가 없는 형식 매개 변수 이름이 필요합니다.", - "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?", - "Unexpected_token_Did_you_mean_or_rbrace_1381": "예기치 않은 토큰입니다. '{'}'}' 또는 '}'를 사용하시겠습니까?", - "Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.", - "Unknown_build_option_0_5072": "알 수 없는 빌드 옵션 '{0}'입니다.", - "Unknown_build_option_0_Did_you_mean_1_5077": "알 수 없는 빌드 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", - "Unknown_compiler_option_0_5023": "알 수 없는 컴파일러 옵션 '{0}'입니다.", - "Unknown_compiler_option_0_Did_you_mean_1_5025": "알 수 없는 컴파일러 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", - "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "알 수 없는 키워드 또는 식별자입니다. '{0}'을(를) 의미했나요?", - "Unknown_option_excludes_Did_you_mean_exclude_6114": "알 수 없는 옵션 'excludes'입니다. 'exclude'를 사용하시겠습니까?", - "Unknown_type_acquisition_option_0_17010": "알 수 없는 형식 인식 옵션 '{0}'입니다.", - "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "알 수 없는 형식 인식 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", - "Unknown_watch_option_0_5078": "알 수 없는 조사식 옵션 '{0}'입니다.", - "Unknown_watch_option_0_Did_you_mean_1_5079": "알 수 없는 조사식 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", - "Unreachable_code_detected_7027": "접근할 수 없는 코드가 있습니다.", - "Unterminated_Unicode_escape_sequence_1199": "종결되지 않은 유니코드 이스케이프 시퀀스입니다.", - "Unterminated_quoted_string_in_response_file_0_6045": "응답 파일 '{0}'의 종결되지 않은 따옴표 붙은 문자열입니다.", - "Unterminated_regular_expression_literal_1161": "종결되지 않은 정규식 리터럴입니다.", - "Unterminated_string_literal_1002": "종결되지 않은 문자열 리터럴입니다.", - "Unterminated_template_literal_1160": "종결되지 않은 템플릿 리터럴입니다.", - "Untyped_function_calls_may_not_accept_type_arguments_2347": "형식화되지 않은 함수 호출에는 형식 인수를 사용할 수 없습니다.", - "Unused_label_7028": "사용되지 않는 레이블입니다.", - "Unused_ts_expect_error_directive_2578": "사용되지 않는 '@ts-expect-error' 지시문입니다.", - "Update_import_from_0_90058": "\"{0}\"에서 가져오기 업데이트", - "Updating_output_of_project_0_6373": "'{0}' 프로젝트의 출력을 업데이트하는 중...", - "Updating_output_timestamps_of_project_0_6359": "'{0}' 프로젝트의 출력 타임스탬프를 업데이트하는 중...", - "Updating_unchanged_output_timestamps_of_project_0_6371": "'{0}' 프로젝트의 변경되지 않은 출력 타임스탬프를 업데이트하는 중...", - "Use_0_95174": "`{0}`을(를) 사용합니다.", - "Use_Number_isNaN_in_all_conditions_95175": "모든 조건에서 'Number.isNaN'을 사용합니다.", - "Use_element_access_for_0_95145": "'{0}'에 요소 액세스 사용", - "Use_element_access_for_all_undeclared_properties_95146": "선언되지 않은 모든 속성에 요소 액세스를 사용합니다.", - "Use_synthetic_default_member_95016": "가상 '기본' 멤버를 사용합니다.", - "Using_0_subpath_1_with_target_2_6404": "'{0}' 하위 경로 '{1}'과(와) 대상 '{2}'을(를) 사용하는 중입니다.", - "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "ECMAScript 5 이상에서만 'for...of' 문에서 문자열을 사용할 수 있습니다.", - "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "--build를 사용하면 -b가 tsc로 하여금 컴파일러보다 빌드 오케스트레이터처럼 작동하도록 합니다. 이 항목은 {0}에서 더 자세히 알아볼 수 있는 복합 프로젝트를 구축하는 데 사용됩니다.", - "Using_compiler_options_of_project_reference_redirect_0_6215": "프로젝트 참조 리디렉션 '{0}'의 컴파일러 옵션을 사용 중입니다.", - "VERSION_6036": "버전", - "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560": "'{0}' 형식의 값에 '{1}' 형식과 공통된 속성이 없습니다. 속성을 호출하려고 했습니까?", - "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348": "'{0}' 형식의 값은 호출할 수 없습니다. 'new'를 포함하려고 했습니까?", - "Variable_0_implicitly_has_an_1_type_7005": "'{0}' 변수에는 암시적으로 '{1}' 형식이 포함됩니다.", - "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043": "'{0}' 변수는 암시적으로 '{1}' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046": "'{0}' 변수는 몇몇 위치에서 암시적으로 '{1}' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034": "'{0}' 변수는 형식을 확인할 수 없는 경우 일부 위치에서 암시적으로 '{1}' 형식입니다.", - "Variable_0_is_used_before_being_assigned_2454": "'{0}' 변수가 할당되기 전에 사용되었습니다.", - "Variable_declaration_expected_1134": "변수 선언이 필요합니다.", - "Variable_declaration_list_cannot_be_empty_1123": "변수 선언 목록은 비워 둘 수 없습니다.", - "Variable_declaration_not_allowed_at_this_location_1440": "이 위치에서는 변수 선언을 사용할 수 없습니다.", - "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "소스의 {0} 위치에 있는 가변 인자 요소가 대상의 {1} 위치에 있는 요소와 일치하지 않습니다.", - "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "차이 주석은 개체, 함수, 생성자 및 매핑된 형식의 형식 별칭에서만 지원됩니다.", - "Version_0_6029": "버전 {0}", - "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "이 파일에 대해 자세히 알아보려면 https://aka.ms/tsconfig을 방문하세요.", - "WATCH_OPTIONS_6918": "조사식 옵션", - "Watch_and_Build_Modes_6250": "시청 및 빌드 모드", - "Watch_input_files_6005": "조사식 입력 파일입니다.", - "Watch_option_0_requires_a_value_of_type_1_5080": "조사식 옵션 '{0}'에 {1} 형식의 값이 필요합니다.", - "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "여기에서 전체 매개 변수에 대한 형식을 추가하여 '{0}'에 대한 형식만 작성할 수 있습니다.", - "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "함수를 할당할 때 매개 변수와 반환 값이 하위 형식과 호환되는지 확인합니다.", - "When_type_checking_take_into_account_null_and_undefined_6699": "유형 검사 시 'null' 및 'undefined'를 고려하세요.", - "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "화면을 지우지 않고, 감시 모드의 오래된 콘솔 출력을 유지할지 여부입니다.", - "Wrap_all_invalid_characters_in_an_expression_container_95109": "식 컨테이너에서 모든 잘못된 문자 래핑", - "Wrap_all_object_literal_with_parentheses_95116": "괄호를 사용하여 모든 개체 리터럴 래핑", - "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "JSX 조각에서 부모가 지정되지 않은 모든 JSX 래핑", - "Wrap_in_JSX_fragment_95120": "JSX 조각에서 래핑", - "Wrap_invalid_character_in_an_expression_container_95108": "식 컨테이너에서 잘못된 문자 래핑", - "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "괄호를 사용하여 개체 리터럴이어야 하는 다음 본문 래핑", - "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "{0}에서 모든 컴파일러 옵션에 대해 알아볼 수 있습니다.", - "You_cannot_rename_a_module_via_a_global_import_8031": "전역 가져오기를 통해 모듈 이름을 바꿀 수 없습니다.", - "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035": "'node_modules' 폴더에 정의된 요소의 이름은 변경할 수 없습니다.", - "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036": "다른 'node_modules' 폴더에 정의된 요소의 이름은 변경할 수 없습니다.", - "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001": "표준 TypeScript 라이브러리에 정의된 요소의 이름을 바꿀 수 없습니다.", - "You_cannot_rename_this_element_8000": "이 요소의 이름을 바꿀 수 없습니다.", - "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329": "'{0}'이(가) 여기에서 decorator로 사용할 인수를 너무 적게 허용합니다. 먼저 이를 호출하고 '@{0}()'을(를) 작성하시겠습니까?", - "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' 및 '{1}' 인덱스 시그니처가 호환되지 않습니다.", - "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' 및 '{1}' 작업은 괄호 없이 혼합해서 사용할 수 없습니다.", - "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}'이(가) 두 번 지정되었습니다. 이름이 '{0}'인 특성을 덮어씁니다.", - "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}'은(는) 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}'은(는) 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}'은(는) 'require' 호출을 사용하거나 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}'은(는) 'require' 호출을 사용하거나 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}'은(는) 'import {1} = require({2})' 또는 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}'은(는) 'import {1} = require({2})'를 사용하거나 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", - "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'--isolatedModules'에서는 '{0}'을(를) 컴파일할 수 없는데 전역 스크립트 파일로 간주되기 때문입니다. 모듈로 만들려면 가져오기, 내보내기 또는 빈 'export {}' 문을 추가하세요.", - "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}'은(는) JSX 구성 요소로 사용할 수 없습니다.", - "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}'은(는) 'export type'을 사용하여 내보냈으므로 값으로 사용할 수 없습니다.", - "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}'은(는) 'import type'을 사용하여 가져왔으므로 값으로 사용할 수 없습니다.", - "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' 구성 요소는 텍스트를 자식 요소로 수락하지 않습니다. JSX의 텍스트는 'string' 형식이지만, '{1}'의 필요한 형식은 '{2}'입니다.", - "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}'은(는) '{1}'과(와) 관련되지 않은 임의의 형식으로 인스턴스화할 수 있습니다.", - "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' 선언은 TypeScript 파일에서만 사용할 수 있습니다.", - "_0_expected_1005": "'{0}'이(가) 필요합니다.", - "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}'에 내보낸 멤버 '{1}'이(가) 없습니다. '{2}'이(가) 아닌지 확인하세요.", - "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}'은(는) 암시적으로 '{1}' 반환 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", - "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "반환 형식 주석이 없고 반환 식 중 하나에서 직간접적으로 참조되므로 '{0}'에는 암시적으로 'any' 반환 형식이 포함됩니다.", - "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022": "'{0}'은(는) 형식 주석이 없고 자체 이니셜라이저에서 직간접적으로 참조되므로 암시적으로 'any' 형식입니다.", - "_0_index_signatures_are_incompatible_2634": "'{0}' 인덱스 시그니처가 호환되지 않습니다.", - "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 인덱스 유형 '{1}'을(를) '{2}' 인텍스 유형 '{3}'에 할당할 수 없습니다.", - "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0}'은(는) 기본 개체이지만 '{1}'은(는) 래퍼 개체입니다. 가능한 경우 '{0}'을(를) 사용하세요.", - "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}'은(는) 유형이며 JavaScript 파일로 가져올 수 없습니다. JSDoc 유형 주석에서 '{1}'을(를) 사용하세요.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}'은(는) 형식이며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", - "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}'은(는) '{1}'의 사용되지 않는 이름 변경입니다. 형식 주석으로 사용하려고 했습니까?", - "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}'은(는) '{1}' 형식의 제약 조건에 할당할 수 있지만, '{1}'은(는) '{2}' 제약 조건의 다른 하위 형식으로 인스턴스화할 수 있습니다.", - "_0_is_automatically_exported_here_18044": "'{0}'은(는) 여기에서 자동으로 내보내집니다.", - "_0_is_declared_but_its_value_is_never_read_6133": "'{0}'이(가) 선언은 되었지만 해당 값이 읽히지는 않았습니다.", - "_0_is_declared_but_never_used_6196": "'{0}'이(가) 선언되었지만 사용되지 않았습니다.", - "_0_is_declared_here_2728": "여기서는 '{0}'이(가) 선언됩니다.", - "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611": "'{0}'은(는) '{1}' 클래스의 속성으로 정의되지만, '{2}'에서 접근자로 재정의됩니다.", - "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}'은(는) '{1}' 클래스의 접근자로 정의되지만, '{2}'에서 인스턴스 속성으로 재정의됩니다.", - "_0_is_deprecated_6385": "'{0}'은(는) 사용되지 않습니다.", - "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}'은(는) '{1}' 키워드에 대한 올바른 메타 속성이 아닙니다. '{2}'을(를) 사용하시겠습니까?", - "_0_is_not_allowed_as_a_parameter_name_1390": "'{0}'은(는) 매개 변수 이름으로 사용할 수 없습니다.", - "_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}'은(는) 변수 선언 이름으로 사용할 수 없습니다.", - "_0_is_of_type_unknown_18046": "'{0}'은(는) 'unknown' 형식입니다.", - "_0_is_possibly_null_18047": "'{0}'은(는) 'null'일 수 있습니다.", - "_0_is_possibly_null_or_undefined_18049": "'{0}'은(는) 'null' 또는 'undefined'일 수 있습니다.", - "_0_is_possibly_undefined_18048": "'{0}'은(는) 'undefined'일 수 있습니다.", - "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506": "'{0}'은(는) 자체 기본 식에서 직간접적으로 참조됩니다.", - "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502": "'{0}'은(는) 자체 형식 주석에서 직간접적으로 참조됩니다.", - "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "'{0}'이(가) 두 번 이상 지정되어 이 사용량을 덮어씁니다.", - "_0_list_cannot_be_empty_1097": "'{0}' 목록은 비워 둘 수 없습니다.", - "_0_modifier_already_seen_1030": "'{0}' 한정자가 이미 있습니다.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 한정자는 클래스, 인터페이스 또는 형식 별칭의 형식 매개 변수에만 나타날 수 있습니다.", - "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 한정자는 생성자 선언에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 한정자는 모듈 또는 네임스페이스 요소에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_a_parameter_1090": "{0}' 한정자는 매개 변수에 표시될 수 없습니다.", - "_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 한정자는 형식 멤버에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 한정자는 형식 매개 변수에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 한정자는 인덱스 시니그처에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "이 종류의 클래스 요소에는 '{0}' 한정자를 표시할 수 없습니다.", - "_0_modifier_cannot_be_used_here_1042": "'{0}' 한정자는 여기에 사용할 수 없습니다.", - "_0_modifier_cannot_be_used_in_an_ambient_context_1040": "'{0}' 한정자는 앰비언트 컨텍스트에서 사용할 수 없습니다.", - "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 한정자는 '{1}' 한정자와 함께 사용할 수 없습니다.", - "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 한정자는 프라이빗 식별자와 함께 사용할 수 없습니다.", - "_0_modifier_must_precede_1_modifier_1029": "'{0}' 한정자는 '{1}' 한정자 앞에 와야 합니다.", - "_0_needs_an_explicit_type_annotation_2782": "'{0}'에는 명시적 형식 주석이 필요합니다.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}'은(는) 형식만 참조하지만, 여기서는 네임스페이스로 사용되고 있습니다.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}'은(는) 형식만 참조하지만, 여기서는 값으로 사용되고 있습니다.", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690": "'{0}'은(는) 형식만 참조하는데 여기에서 값으로 사용되고 있습니다. '{0}에서 {1}'을(를) 사용하려고 하셨습니까?", - "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}'은(는) 형식만 참조하지만, 여기서는 값으로 사용되고 있습니다. 대상 라이브러리를 변경하려는 경우 'lib' 컴파일러 옵션을 es2015 이상으로 변경해 보세요.", - "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}'은(는) UMD 전역을 참조하지만 현재 파일은 모듈입니다. 대신 가져오기를 추가해 보세요.", - "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}'은(는) 값을 참조하지만, 여기서는 형식으로 사용되고 있습니다. 'typeof {0}'을(를) 사용하시겠습니까?", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'isolatedModules'를 사용하도록 설정한 경우 형식 전용 다시 내보내기를 사용하여 다시 내보내야 합니다.", - "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}'은(는) 구성 json 파일의 'compilerOptions' 개체 내에 설정해야 합니다.", - "_0_tag_already_specified_1223": "'{0}' 태그가 이미 지정되었습니다.", - "_0_was_also_declared_here_6203": "여기서도 '{0}'이(가) 선언되었습니다.", - "_0_was_exported_here_1377": "여기서는 '{0}'을(를) 내보냈습니다.", - "_0_was_imported_here_1376": "여기서는 '{0}'을(를) 가져왔습니다.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "반환 형식 주석이 없는 '{0}'에는 암시적으로 '{1}' 반환 형식이 포함됩니다.", - "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "반환 형식 주석이 없는 '{0}'에는 암시적으로 '{1}' yield 형식이 포함됩니다.", - "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 한정자는 클래스, 메서드 또는 속성 선언에만 나타날 수 있습니다.", - "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 한정자는 속성 선언에만 나타날 수 있습니다.", - "and_here_6204": "및 여기.", - "arguments_cannot_be_referenced_in_property_initializers_2815": "'arguments'는 속성 이니셜라이저에서 참조할 수 없습니다.", - "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 가져오기, 내보내기, import.meta, jsx(jsx: react-jsx 포함) 또는 esm 형식(모듈: node16+ 포함)이 있는 파일을 모듈로 처리합니다.", - "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "'await' 식은 파일이 모듈일 경우 해당 파일의 최상위 수준에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.", - "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "'await' 식은 비동기 함수 내부 및 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 식은 매개 변수 이니셜라이저에서 사용할 수 없습니다.", - "await_has_no_effect_on_the_type_of_this_expression_80007": "'await'는 이 식의 형식에 영향을 주지 않습니다.", - "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' 옵션이 '{0}'(으)로 설정되어 있습니다. 상대적이지 않은 모듈 이름 '{1}'을(를) 확인하려면 이 값을 사용합니다.", - "can_only_be_used_at_the_start_of_a_file_18026": "'#!'는 파일의 시작 부분에서만 사용할 수 있습니다.", - "case_or_default_expected_1130": "'case' 또는 'default'가 필요합니다.", - "catch_or_finally_expected_1472": "'catch' 또는 'finally'가 필요합니다.", - "const_declarations_can_only_be_declared_inside_a_block_1156": "'const' 선언은 블록 내부에서만 선언할 수 있습니다.", - "const_declarations_must_be_initialized_1155": "'const' 선언은 초기화해야 합니다.", - "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 열거형 멤버 이니셜라이저가 무한 값에 대해 평가되었습니다.", - "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 열거형 멤버 이니셜라이저가 허용되지 않은 'NaN' 값에 대해 평가되었습니다.", - "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "const 열거형 멤버 이니셜라이저에는 리터럴 값과 다른 계산된 열거형 값만 사용할 수 있습니다.", - "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 열거형은 속성이나 인덱스 액세스 식, 또는 내보내기 할당이나 가져오기 선언의 오른쪽, 또는 형식 쿼리에서만 사용할 수 있습니다.", - "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor'는 매개 변수 속성 이름으로 사용할 수 없습니다.", - "constructor_is_a_reserved_word_18012": "'#constructor'는 예약어입니다.", - "default_Colon_6903": "기본값:", - "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "strict 모드에서는 식별자에 대해 'delete'를 호출할 수 없습니다.", - "export_Asterisk_does_not_re_export_a_default_1195": "'export *'는 기본값을 다시 내보내지 않습니다.", - "export_can_only_be_used_in_TypeScript_files_8003": "'export ='는 TypeScript 파일에서만 사용할 수 있습니다.", - "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "앰비언트 모듈 및 모듈 확대는 항상 표시되므로 'export' 한정자를 적용할 수 없습니다.", - "extends_clause_already_seen_1172": "'extends' 절이 이미 있습니다.", - "extends_clause_must_precede_implements_clause_1173": "'extends' 절은 'implements' 절 앞에 와야 합니다.", - "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020": "내보낸 클래스 '{0}'의 Extends 절이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021": "내보낸 클래스의 'extends' 절이 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022": "내보낸 인터페이스 '{0}'의 Extends 절이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "false_unless_composite_is_set_6906": "'composite'가 설정되지 않은 한 'false'입니다.", - "false_unless_strict_is_set_6905": "'strict'가 설정되지 않은 한 'false'입니다.", - "file_6025": "파일", - "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "'for await' 루프는 파일이 모듈일 경우 해당 파일의 최상위에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.", - "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "'for await' 루프는 비동기 함수 내부 및 모듈의 최상위에서만 사용할 수 있습니다.", - "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' 및 'set' 접근자는 'this' 매개 변수를 선언할 수 없습니다.", - "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'files'를 지정하면 '[]'이고, 그렇지 않으면 '[\"**/*\"]5D;'", - "implements_clause_already_seen_1175": "'implements' 절이 이미 있습니다.", - "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' 절은 TypeScript 파일에서만 사용할 수 있습니다.", - "import_can_only_be_used_in_TypeScript_files_8002": "'import ... ='는 TypeScript 파일에서만 사용할 수 있습니다.", - "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "'infer' 선언은 조건 형식의 'extends' 절에서만 사용할 수 있습니다.", - "let_declarations_can_only_be_declared_inside_a_block_1157": "'let' 선언은 블록 내부에서만 선언될 수 있습니다.", - "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let'은 'let' 또는 'const' 선언에서 이름으로 사용할 수 없습니다.", - "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "모듈 === 'AMD' 또는 'UMD' 또는 'System' 또는 'ES6', 'Classic', 그렇지 않으면 'Node'", - "module_system_or_esModuleInterop_6904": "모듈 === \"system\" 또는 esModuleInterop", - "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009": "대상에 구문 시그니처가 없는 'new' 식에는 암시적으로 'any' 형식이 포함됩니다.", - "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907": "'[\"node_modules\", \"bower_components\", \"jspm_packages\"]', 지정한 경우 'outDir' 값이 추가됩니다.", - "one_of_Colon_6900": "다음 중 하나:", - "one_or_more_Colon_6901": "하나 이상:", - "options_6024": "옵션", - "or_JSX_element_expected_1145": "'{' 또는 JSX 요소가 필요합니다.", - "or_expected_1144": "'{' 또는 ';'이(가) 필요합니다.", - "package_json_does_not_have_a_0_field_6100": "'package.json'에는 '{0}' 필드가 없습니다.", - "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json'에 '{0}' 버전과 일치하는 'typesVersions' 항목이 없습니다.", - "package_json_had_a_falsy_0_field_6220": "'package.json'에 false로 평가되는 '{0}' 필드가 있습니다.", - "package_json_has_0_field_1_that_references_2_6101": "'package.json'에 '{2}'을(를) 참조하는 '{0}' 필드 '{1}'이(가) 있습니다.", - "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json'에 유효한 semver 범위가 아닌 'typesVersions' 항목 '{0}'이(가) 있습니다.", - "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "모듈 이름 '{2}'과(와) 일치하는 패턴을 검색하는 컴파일러 버전 '{1}'과(와) 일치하는 'typesVersions' 항목 '{0}'이(가) 'package.json'에 있습니다.", - "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json'에 버전별 경로 매핑이 포함된 'typesVersions' 필드가 있습니다.", - "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "package.json 범위 '{0}'은(는) 명시적으로 '{1}' 지정자를 null에 매핑합니다.", - "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json 범위 '{0}'에 '{1}' 지정자의 대상 유형이 잘못되었습니다.", - "package_json_scope_0_has_no_imports_defined_6273": "package.json 범위 '{0}'에 정의된 가져오기가 없습니다.", - "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' 옵션이 지정되었습니다. 모듈 이름 '{0}'과(와) 일치하는 패턴을 찾는 중입니다.", - "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 한정자는 속성 선언 또는 인덱스 시그니처에만 나타날 수 있습니다.", - "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 형식 한정자는 배열 및 튜플 리터럴 형식에서만 사용할 수 있습니다.", - "require_call_may_be_converted_to_an_import_80005": "'require' 호출이 가져오기로 변환될 수 있습니다.", - "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "'resolution-mode' 어설션은 'moduleResolution'이 'node16' 또는 'nodenext'인 경우에만 지원됩니다.", - "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "‘resolution-mode’ 어설션이 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하십시오. 'npm install -D typescript@next'로 업데이트해 보세요.", - "resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode'는 유형 전용 가져오기에만 설정할 수 있습니다.", - "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode'는 유형 가져오기 어설션에 유효한 유일한 키입니다.", - "resolution_mode_should_be_either_require_or_import_1453": "'해상도 모드'는 '요구' 또는 '가져오기'여야 합니다.", - "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 옵션이 설정되어 있습니다. 상대 모듈 이름 '{0}'을(를) 확인하려면 이 옵션을 사용합니다.", - "super_can_only_be_referenced_in_a_derived_class_2335": "파생 클래스에서만 'super'를 참조할 수 있습니다.", - "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "파생 클래스 또는 개체 리터럴 식의 멤버에서만 'super'를 참조할 수 있습니다.", - "super_cannot_be_referenced_in_a_computed_property_name_2466": "'super'는 계산된 속성 이름에서 참조할 수 없습니다.", - "super_cannot_be_referenced_in_constructor_arguments_2336": "super'는 생성자 인수에서 참조할 수 없습니다.", - "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659": "옵션 'target'이 'ES2015' 이상인 경우 개체 리터럴 식의 멤버에서만 'super'를 사용할 수 있습니다.", - "super_may_not_use_type_arguments_2754": "'super'는 형식 인수를 사용할 수 없습니다.", - "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011": "파생 클래스의 생성자에서 'super'의 속성에 액세스하기 전에 'super'를 호출해야 합니다.", - "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009": "파생 클래스의 생성자에서 'this'에 액세스하기 전에 'super'를 호출해야 합니다.", - "super_must_be_followed_by_an_argument_list_or_member_access_1034": "'super' 다음에는 인수 목록 또는 멤버 액세스가 와야 합니다.", - "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338": "'super' 속성 액세스는 생성자, 멤버 함수 또는 파생 클래스의 멤버 접근자에서만 허용됩니다.", - "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this'는 계산된 속성 이름에서 참조할 수 없습니다.", - "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this'는 모듈 또는 네임스페이스 본문에서 참조될 수 없습니다.", - "this_cannot_be_referenced_in_a_static_property_initializer_2334": "정적 속성 이니셜라이저에서 'this'를 참조할 수 없습니다.", - "this_cannot_be_referenced_in_constructor_arguments_2333": "생성자 인수에서 'this'를 참조할 수 없습니다.", - "this_cannot_be_referenced_in_current_location_2332": "현재 위치에서 'this'를 참조할 수 없습니다.", - "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this'에는 형식 주석이 없으므로 암시적으로 'any' 형식이 포함됩니다.", - "true_for_ES2022_and_above_including_ESNext_6930": "ESNext를 포함하여 ES2022 이상의 경우 'true'입니다.", - "true_if_composite_false_otherwise_6909": "'composite'이면 'true'이고, 그렇지 않으면 'false'입니다.", - "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript 컴파일러", - "type_Colon_6902": "형식:", - "unique_symbol_types_are_not_allowed_here_1335": "여기에서 'unique symbol' 형식은 허용되지 않습니다.", - "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334": "'unique symbol' 형식은 변수 문의 변수에만 허용됩니다.", - "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "'unique symbol' 형식은 바인딩 이름과 함께 변수 선언에 사용할 수 없습니다.", - "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "'use strict' 지시문은 단순하지 않은 매개 변수 목록에서 사용할 수 없습니다.", - "use_strict_directive_used_here_1349": "여기서는 'use strict' 지시문이 사용됩니다.", - "with_statements_are_not_allowed_in_an_async_function_block_1300": "'with' 문은 비동기 함수 블록에서 사용할 수 없습니다.", - "with_statements_are_not_allowed_in_strict_mode_1101": "'with' 문은 strict 모드에서 사용할 수 없습니다.", - "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "'yield' 식은 포함하는 생성기에 반환 형식 주석이 없으므로 암시적으로 'any' 형식으로 생성됩니다.", - "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523": "'yield' 식은 매개 변수 이니셜라이저에서 사용할 수 없습니다." -} \ No newline at end of file diff --git a/graphql/node_modules/typescript/lib/lib.d.ts b/graphql/node_modules/typescript/lib/lib.d.ts deleted file mode 100644 index b6bb44b2..00000000 --- a/graphql/node_modules/typescript/lib/lib.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/// -/// -/// -/// diff --git a/graphql/node_modules/typescript/lib/lib.decorators.d.ts b/graphql/node_modules/typescript/lib/lib.decorators.d.ts deleted file mode 100644 index 5ac09b82..00000000 --- a/graphql/node_modules/typescript/lib/lib.decorators.d.ts +++ /dev/null @@ -1,386 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/** - * The decorator context types provided to class element decorators. - */ -type ClassMemberDecoratorContext = - | ClassMethodDecoratorContext - | ClassGetterDecoratorContext - | ClassSetterDecoratorContext - | ClassFieldDecoratorContext - | ClassAccessorDecoratorContext; - -/** - * The decorator context types provided to any decorator. - */ -type DecoratorContext = - | ClassDecoratorContext - | ClassMemberDecoratorContext; - -type DecoratorMetadataObject = Record & object; - -type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; - -/** - * Context provided to a class decorator. - * @template Class The type of the decorated class associated with this context. - */ -interface ClassDecoratorContext< - Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, -> { - /** The kind of element that was decorated. */ - readonly kind: "class"; - - /** The name of the decorated class. */ - readonly name: string | undefined; - - /** - * Adds a callback to be invoked after the class definition has been finalized. - * - * @example - * ```ts - * function customElement(name: string): ClassDecoratorFunction { - * return (target, context) => { - * context.addInitializer(function () { - * customElements.define(name, this); - * }); - * } - * } - * - * @customElement("my-element") - * class MyElement {} - * ``` - */ - addInitializer(initializer: (this: Class) => void): void; - - readonly metadata: DecoratorMetadata; -} - -/** - * Context provided to a class method decorator. - * @template This The type on which the class element will be defined. For a static class element, this will be - * the type of the constructor. For a non-static class element, this will be the type of the instance. - * @template Value The type of the decorated class method. - */ -interface ClassMethodDecoratorContext< - This = unknown, - Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, -> { - /** The kind of class element that was decorated. */ - readonly kind: "method"; - - /** The name of the decorated class element. */ - readonly name: string | symbol; - - /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */ - readonly static: boolean; - - /** A value indicating whether the class element has a private name. */ - readonly private: boolean; - - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - /** - * Gets the current value of the method from the provided object. - * - * @example - * let fn = context.access.get(instance); - */ - get(object: This): Value; - }; - - /** - * Adds a callback to be invoked either before static initializers are run (when - * decorating a `static` element), or before instance initializers are run (when - * decorating a non-`static` element). - * - * @example - * ```ts - * const bound: ClassMethodDecoratorFunction = (value, context) { - * if (context.private) throw new TypeError("Not supported on private methods."); - * context.addInitializer(function () { - * this[context.name] = this[context.name].bind(this); - * }); - * } - * - * class C { - * message = "Hello"; - * - * @bound - * m() { - * console.log(this.message); - * } - * } - * ``` - */ - addInitializer(initializer: (this: This) => void): void; - - readonly metadata: DecoratorMetadata; -} - -/** - * Context provided to a class getter decorator. - * @template This The type on which the class element will be defined. For a static class element, this will be - * the type of the constructor. For a non-static class element, this will be the type of the instance. - * @template Value The property type of the decorated class getter. - */ -interface ClassGetterDecoratorContext< - This = unknown, - Value = unknown, -> { - /** The kind of class element that was decorated. */ - readonly kind: "getter"; - - /** The name of the decorated class element. */ - readonly name: string | symbol; - - /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */ - readonly static: boolean; - - /** A value indicating whether the class element has a private name. */ - readonly private: boolean; - - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - /** - * Invokes the getter on the provided object. - * - * @example - * let value = context.access.get(instance); - */ - get(object: This): Value; - }; - - /** - * Adds a callback to be invoked either before static initializers are run (when - * decorating a `static` element), or before instance initializers are run (when - * decorating a non-`static` element). - */ - addInitializer(initializer: (this: This) => void): void; - - readonly metadata: DecoratorMetadata; -} - -/** - * Context provided to a class setter decorator. - * @template This The type on which the class element will be defined. For a static class element, this will be - * the type of the constructor. For a non-static class element, this will be the type of the instance. - * @template Value The type of the decorated class setter. - */ -interface ClassSetterDecoratorContext< - This = unknown, - Value = unknown, -> { - /** The kind of class element that was decorated. */ - readonly kind: "setter"; - - /** The name of the decorated class element. */ - readonly name: string | symbol; - - /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */ - readonly static: boolean; - - /** A value indicating whether the class element has a private name. */ - readonly private: boolean; - - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - /** - * Invokes the setter on the provided object. - * - * @example - * context.access.set(instance, value); - */ - set(object: This, value: Value): void; - }; - - /** - * Adds a callback to be invoked either before static initializers are run (when - * decorating a `static` element), or before instance initializers are run (when - * decorating a non-`static` element). - */ - addInitializer(initializer: (this: This) => void): void; - - readonly metadata: DecoratorMetadata; -} - -/** - * Context provided to a class `accessor` field decorator. - * @template This The type on which the class element will be defined. For a static class element, this will be - * the type of the constructor. For a non-static class element, this will be the type of the instance. - * @template Value The type of decorated class field. - */ -interface ClassAccessorDecoratorContext< - This = unknown, - Value = unknown, -> { - /** The kind of class element that was decorated. */ - readonly kind: "accessor"; - - /** The name of the decorated class element. */ - readonly name: string | symbol; - - /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */ - readonly static: boolean; - - /** A value indicating whether the class element has a private name. */ - readonly private: boolean; - - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - - /** - * Invokes the getter on the provided object. - * - * @example - * let value = context.access.get(instance); - */ - get(object: This): Value; - - /** - * Invokes the setter on the provided object. - * - * @example - * context.access.set(instance, value); - */ - set(object: This, value: Value): void; - }; - - /** - * Adds a callback to be invoked either before static initializers are run (when - * decorating a `static` element), or before instance initializers are run (when - * decorating a non-`static` element). - */ - addInitializer(initializer: (this: This) => void): void; - - readonly metadata: DecoratorMetadata; -} - -/** - * Describes the target provided to class `accessor` field decorators. - * @template This The `this` type to which the target applies. - * @template Value The property type for the class `accessor` field. - */ -interface ClassAccessorDecoratorTarget { - /** - * Invokes the getter that was defined prior to decorator application. - * - * @example - * let value = target.get.call(instance); - */ - get(this: This): Value; - - /** - * Invokes the setter that was defined prior to decorator application. - * - * @example - * target.set.call(instance, value); - */ - set(this: This, value: Value): void; -} - -/** - * Describes the allowed return value from a class `accessor` field decorator. - * @template This The `this` type to which the target applies. - * @template Value The property type for the class `accessor` field. - */ -interface ClassAccessorDecoratorResult { - /** - * An optional replacement getter function. If not provided, the existing getter function is used instead. - */ - get?(this: This): Value; - - /** - * An optional replacement setter function. If not provided, the existing setter function is used instead. - */ - set?(this: This, value: Value): void; - - /** - * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. - * @param value The incoming initializer value. - * @returns The replacement initializer value. - */ - init?(this: This, value: Value): Value; -} - -/** - * Context provided to a class field decorator. - * @template This The type on which the class element will be defined. For a static class element, this will be - * the type of the constructor. For a non-static class element, this will be the type of the instance. - * @template Value The type of the decorated class field. - */ -interface ClassFieldDecoratorContext< - This = unknown, - Value = unknown, -> { - /** The kind of class element that was decorated. */ - readonly kind: "field"; - - /** The name of the decorated class element. */ - readonly name: string | symbol; - - /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */ - readonly static: boolean; - - /** A value indicating whether the class element has a private name. */ - readonly private: boolean; - - /** An object that can be used to access the current value of the class element at runtime. */ - readonly access: { - /** - * Determines whether an object has a property with the same name as the decorated element. - */ - has(object: This): boolean; - - /** - * Gets the value of the field on the provided object. - */ - get(object: This): Value; - - /** - * Sets the value of the field on the provided object. - */ - set(object: This, value: Value): void; - }; - - /** - * Adds a callback to be invoked either before static initializers are run (when - * decorating a `static` element), or before instance initializers are run (when - * decorating a non-`static` element). - */ - addInitializer(initializer: (this: This) => void): void; - - readonly metadata: DecoratorMetadata; -} diff --git a/graphql/node_modules/typescript/lib/lib.decorators.legacy.d.ts b/graphql/node_modules/typescript/lib/lib.decorators.legacy.d.ts deleted file mode 100644 index 26fbcb52..00000000 --- a/graphql/node_modules/typescript/lib/lib.decorators.legacy.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -declare type ClassDecorator = (target: TFunction) => TFunction | void; -declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; -declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; diff --git a/graphql/node_modules/typescript/lib/lib.dom.asynciterable.d.ts b/graphql/node_modules/typescript/lib/lib.dom.asynciterable.d.ts deleted file mode 100644 index 28e1bfd8..00000000 --- a/graphql/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -///////////////////////////// -/// Window Async Iterable APIs -///////////////////////////// - -interface FileSystemDirectoryHandle { - [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; - entries(): AsyncIterableIterator<[string, FileSystemHandle]>; - keys(): AsyncIterableIterator; - values(): AsyncIterableIterator; -} - -interface ReadableStream { - [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator; - values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; -} diff --git a/graphql/node_modules/typescript/lib/lib.dom.d.ts b/graphql/node_modules/typescript/lib/lib.dom.d.ts deleted file mode 100644 index 079a8615..00000000 --- a/graphql/node_modules/typescript/lib/lib.dom.d.ts +++ /dev/null @@ -1,28596 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -///////////////////////////// -/// Window APIs -///////////////////////////// - -interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean; - passive?: boolean; - signal?: AbortSignal; -} - -interface AesCbcParams extends Algorithm { - iv: BufferSource; -} - -interface AesCtrParams extends Algorithm { - counter: BufferSource; - length: number; -} - -interface AesDerivedKeyParams extends Algorithm { - length: number; -} - -interface AesGcmParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength?: number; -} - -interface AesKeyAlgorithm extends KeyAlgorithm { - length: number; -} - -interface AesKeyGenParams extends Algorithm { - length: number; -} - -interface Algorithm { - name: string; -} - -interface AnalyserOptions extends AudioNodeOptions { - fftSize?: number; - maxDecibels?: number; - minDecibels?: number; - smoothingTimeConstant?: number; -} - -interface AnimationEventInit extends EventInit { - animationName?: string; - elapsedTime?: number; - pseudoElement?: string; -} - -interface AnimationPlaybackEventInit extends EventInit { - currentTime?: CSSNumberish | null; - timelineTime?: CSSNumberish | null; -} - -interface AssignedNodesOptions { - flatten?: boolean; -} - -interface AudioBufferOptions { - length: number; - numberOfChannels?: number; - sampleRate: number; -} - -interface AudioBufferSourceOptions { - buffer?: AudioBuffer | null; - detune?: number; - loop?: boolean; - loopEnd?: number; - loopStart?: number; - playbackRate?: number; -} - -interface AudioConfiguration { - bitrate?: number; - channels?: string; - contentType: string; - samplerate?: number; - spatialRendering?: boolean; -} - -interface AudioContextOptions { - latencyHint?: AudioContextLatencyCategory | number; - sampleRate?: number; -} - -interface AudioNodeOptions { - channelCount?: number; - channelCountMode?: ChannelCountMode; - channelInterpretation?: ChannelInterpretation; -} - -interface AudioProcessingEventInit extends EventInit { - inputBuffer: AudioBuffer; - outputBuffer: AudioBuffer; - playbackTime: number; -} - -interface AudioTimestamp { - contextTime?: number; - performanceTime?: DOMHighResTimeStamp; -} - -interface AudioWorkletNodeOptions extends AudioNodeOptions { - numberOfInputs?: number; - numberOfOutputs?: number; - outputChannelCount?: number[]; - parameterData?: Record; - processorOptions?: any; -} - -interface AuthenticationExtensionsClientInputs { - appid?: string; - credProps?: boolean; - hmacCreateSecret?: boolean; - minPinLength?: boolean; -} - -interface AuthenticationExtensionsClientOutputs { - appid?: boolean; - credProps?: CredentialPropertiesOutput; - hmacCreateSecret?: boolean; -} - -interface AuthenticatorSelectionCriteria { - authenticatorAttachment?: AuthenticatorAttachment; - requireResidentKey?: boolean; - residentKey?: ResidentKeyRequirement; - userVerification?: UserVerificationRequirement; -} - -interface AvcEncoderConfig { - format?: AvcBitstreamFormat; -} - -interface BiquadFilterOptions extends AudioNodeOptions { - Q?: number; - detune?: number; - frequency?: number; - gain?: number; - type?: BiquadFilterType; -} - -interface BlobEventInit { - data: Blob; - timecode?: DOMHighResTimeStamp; -} - -interface BlobPropertyBag { - endings?: EndingType; - type?: string; -} - -interface CSSMatrixComponentOptions { - is2D?: boolean; -} - -interface CSSNumericType { - angle?: number; - flex?: number; - frequency?: number; - length?: number; - percent?: number; - percentHint?: CSSNumericBaseType; - resolution?: number; - time?: number; -} - -interface CSSStyleSheetInit { - baseURL?: string; - disabled?: boolean; - media?: MediaList | string; -} - -interface CacheQueryOptions { - ignoreMethod?: boolean; - ignoreSearch?: boolean; - ignoreVary?: boolean; -} - -interface CanvasRenderingContext2DSettings { - alpha?: boolean; - colorSpace?: PredefinedColorSpace; - desynchronized?: boolean; - willReadFrequently?: boolean; -} - -interface ChannelMergerOptions extends AudioNodeOptions { - numberOfInputs?: number; -} - -interface ChannelSplitterOptions extends AudioNodeOptions { - numberOfOutputs?: number; -} - -interface CheckVisibilityOptions { - checkOpacity?: boolean; - checkVisibilityCSS?: boolean; - contentVisibilityAuto?: boolean; - opacityProperty?: boolean; - visibilityProperty?: boolean; -} - -interface ClientQueryOptions { - includeUncontrolled?: boolean; - type?: ClientTypes; -} - -interface ClipboardEventInit extends EventInit { - clipboardData?: DataTransfer | null; -} - -interface ClipboardItemOptions { - presentationStyle?: PresentationStyle; -} - -interface CloseEventInit extends EventInit { - code?: number; - reason?: string; - wasClean?: boolean; -} - -interface CompositionEventInit extends UIEventInit { - data?: string; -} - -interface ComputedEffectTiming extends EffectTiming { - activeDuration?: CSSNumberish; - currentIteration?: number | null; - endTime?: CSSNumberish; - localTime?: CSSNumberish | null; - progress?: number | null; - startTime?: CSSNumberish; -} - -interface ComputedKeyframe { - composite: CompositeOperationOrAuto; - computedOffset: number; - easing: string; - offset: number | null; - [property: string]: string | number | null | undefined; -} - -interface ConstantSourceOptions { - offset?: number; -} - -interface ConstrainBooleanParameters { - exact?: boolean; - ideal?: boolean; -} - -interface ConstrainDOMStringParameters { - exact?: string | string[]; - ideal?: string | string[]; -} - -interface ConstrainDoubleRange extends DoubleRange { - exact?: number; - ideal?: number; -} - -interface ConstrainULongRange extends ULongRange { - exact?: number; - ideal?: number; -} - -interface ContentVisibilityAutoStateChangeEventInit extends EventInit { - skipped?: boolean; -} - -interface ConvolverOptions extends AudioNodeOptions { - buffer?: AudioBuffer | null; - disableNormalization?: boolean; -} - -interface CredentialCreationOptions { - publicKey?: PublicKeyCredentialCreationOptions; - signal?: AbortSignal; -} - -interface CredentialPropertiesOutput { - rk?: boolean; -} - -interface CredentialRequestOptions { - mediation?: CredentialMediationRequirement; - publicKey?: PublicKeyCredentialRequestOptions; - signal?: AbortSignal; -} - -interface CryptoKeyPair { - privateKey: CryptoKey; - publicKey: CryptoKey; -} - -interface CustomEventInit extends EventInit { - detail?: T; -} - -interface DOMMatrix2DInit { - a?: number; - b?: number; - c?: number; - d?: number; - e?: number; - f?: number; - m11?: number; - m12?: number; - m21?: number; - m22?: number; - m41?: number; - m42?: number; -} - -interface DOMMatrixInit extends DOMMatrix2DInit { - is2D?: boolean; - m13?: number; - m14?: number; - m23?: number; - m24?: number; - m31?: number; - m32?: number; - m33?: number; - m34?: number; - m43?: number; - m44?: number; -} - -interface DOMPointInit { - w?: number; - x?: number; - y?: number; - z?: number; -} - -interface DOMQuadInit { - p1?: DOMPointInit; - p2?: DOMPointInit; - p3?: DOMPointInit; - p4?: DOMPointInit; -} - -interface DOMRectInit { - height?: number; - width?: number; - x?: number; - y?: number; -} - -interface DelayOptions extends AudioNodeOptions { - delayTime?: number; - maxDelayTime?: number; -} - -interface DeviceMotionEventAccelerationInit { - x?: number | null; - y?: number | null; - z?: number | null; -} - -interface DeviceMotionEventInit extends EventInit { - acceleration?: DeviceMotionEventAccelerationInit; - accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; - interval?: number; - rotationRate?: DeviceMotionEventRotationRateInit; -} - -interface DeviceMotionEventRotationRateInit { - alpha?: number | null; - beta?: number | null; - gamma?: number | null; -} - -interface DeviceOrientationEventInit extends EventInit { - absolute?: boolean; - alpha?: number | null; - beta?: number | null; - gamma?: number | null; -} - -interface DisplayMediaStreamOptions { - audio?: boolean | MediaTrackConstraints; - video?: boolean | MediaTrackConstraints; -} - -interface DocumentTimelineOptions { - originTime?: DOMHighResTimeStamp; -} - -interface DoubleRange { - max?: number; - min?: number; -} - -interface DragEventInit extends MouseEventInit { - dataTransfer?: DataTransfer | null; -} - -interface DynamicsCompressorOptions extends AudioNodeOptions { - attack?: number; - knee?: number; - ratio?: number; - release?: number; - threshold?: number; -} - -interface EcKeyAlgorithm extends KeyAlgorithm { - namedCurve: NamedCurve; -} - -interface EcKeyGenParams extends Algorithm { - namedCurve: NamedCurve; -} - -interface EcKeyImportParams extends Algorithm { - namedCurve: NamedCurve; -} - -interface EcdhKeyDeriveParams extends Algorithm { - public: CryptoKey; -} - -interface EcdsaParams extends Algorithm { - hash: HashAlgorithmIdentifier; -} - -interface EffectTiming { - delay?: number; - direction?: PlaybackDirection; - duration?: number | CSSNumericValue | string; - easing?: string; - endDelay?: number; - fill?: FillMode; - iterationStart?: number; - iterations?: number; - playbackRate?: number; -} - -interface ElementCreationOptions { - is?: string; -} - -interface ElementDefinitionOptions { - extends?: string; -} - -interface EncodedVideoChunkInit { - data: AllowSharedBufferSource; - duration?: number; - timestamp: number; - type: EncodedVideoChunkType; -} - -interface EncodedVideoChunkMetadata { - decoderConfig?: VideoDecoderConfig; -} - -interface ErrorEventInit extends EventInit { - colno?: number; - error?: any; - filename?: string; - lineno?: number; - message?: string; -} - -interface EventInit { - bubbles?: boolean; - cancelable?: boolean; - composed?: boolean; -} - -interface EventListenerOptions { - capture?: boolean; -} - -interface EventModifierInit extends UIEventInit { - altKey?: boolean; - ctrlKey?: boolean; - metaKey?: boolean; - modifierAltGraph?: boolean; - modifierCapsLock?: boolean; - modifierFn?: boolean; - modifierFnLock?: boolean; - modifierHyper?: boolean; - modifierNumLock?: boolean; - modifierScrollLock?: boolean; - modifierSuper?: boolean; - modifierSymbol?: boolean; - modifierSymbolLock?: boolean; - shiftKey?: boolean; -} - -interface EventSourceInit { - withCredentials?: boolean; -} - -interface FilePropertyBag extends BlobPropertyBag { - lastModified?: number; -} - -interface FileSystemCreateWritableOptions { - keepExistingData?: boolean; -} - -interface FileSystemFlags { - create?: boolean; - exclusive?: boolean; -} - -interface FileSystemGetDirectoryOptions { - create?: boolean; -} - -interface FileSystemGetFileOptions { - create?: boolean; -} - -interface FileSystemRemoveOptions { - recursive?: boolean; -} - -interface FocusEventInit extends UIEventInit { - relatedTarget?: EventTarget | null; -} - -interface FocusOptions { - preventScroll?: boolean; -} - -interface FontFaceDescriptors { - ascentOverride?: string; - descentOverride?: string; - display?: FontDisplay; - featureSettings?: string; - lineGapOverride?: string; - stretch?: string; - style?: string; - unicodeRange?: string; - weight?: string; -} - -interface FontFaceSetLoadEventInit extends EventInit { - fontfaces?: FontFace[]; -} - -interface FormDataEventInit extends EventInit { - formData: FormData; -} - -interface FullscreenOptions { - navigationUI?: FullscreenNavigationUI; -} - -interface GainOptions extends AudioNodeOptions { - gain?: number; -} - -interface GamepadEffectParameters { - duration?: number; - leftTrigger?: number; - rightTrigger?: number; - startDelay?: number; - strongMagnitude?: number; - weakMagnitude?: number; -} - -interface GamepadEventInit extends EventInit { - gamepad: Gamepad; -} - -interface GetAnimationsOptions { - subtree?: boolean; -} - -interface GetNotificationOptions { - tag?: string; -} - -interface GetRootNodeOptions { - composed?: boolean; -} - -interface HashChangeEventInit extends EventInit { - newURL?: string; - oldURL?: string; -} - -interface HkdfParams extends Algorithm { - hash: HashAlgorithmIdentifier; - info: BufferSource; - salt: BufferSource; -} - -interface HmacImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; -} - -interface HmacKeyAlgorithm extends KeyAlgorithm { - hash: KeyAlgorithm; - length: number; -} - -interface HmacKeyGenParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; -} - -interface IDBDatabaseInfo { - name?: string; - version?: number; -} - -interface IDBIndexParameters { - multiEntry?: boolean; - unique?: boolean; -} - -interface IDBObjectStoreParameters { - autoIncrement?: boolean; - keyPath?: string | string[] | null; -} - -interface IDBTransactionOptions { - durability?: IDBTransactionDurability; -} - -interface IDBVersionChangeEventInit extends EventInit { - newVersion?: number | null; - oldVersion?: number; -} - -interface IIRFilterOptions extends AudioNodeOptions { - feedback: number[]; - feedforward: number[]; -} - -interface IdleRequestOptions { - timeout?: number; -} - -interface ImageBitmapOptions { - colorSpaceConversion?: ColorSpaceConversion; - imageOrientation?: ImageOrientation; - premultiplyAlpha?: PremultiplyAlpha; - resizeHeight?: number; - resizeQuality?: ResizeQuality; - resizeWidth?: number; -} - -interface ImageBitmapRenderingContextSettings { - alpha?: boolean; -} - -interface ImageDataSettings { - colorSpace?: PredefinedColorSpace; -} - -interface ImageEncodeOptions { - quality?: number; - type?: string; -} - -interface ImportMeta { - url: string; -} - -interface InputEventInit extends UIEventInit { - data?: string | null; - dataTransfer?: DataTransfer | null; - inputType?: string; - isComposing?: boolean; - targetRanges?: StaticRange[]; -} - -interface IntersectionObserverEntryInit { - boundingClientRect: DOMRectInit; - intersectionRatio: number; - intersectionRect: DOMRectInit; - isIntersecting: boolean; - rootBounds: DOMRectInit | null; - target: Element; - time: DOMHighResTimeStamp; -} - -interface IntersectionObserverInit { - root?: Element | Document | null; - rootMargin?: string; - threshold?: number | number[]; -} - -interface JsonWebKey { - alg?: string; - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - ext?: boolean; - k?: string; - key_ops?: string[]; - kty?: string; - n?: string; - oth?: RsaOtherPrimesInfo[]; - p?: string; - q?: string; - qi?: string; - use?: string; - x?: string; - y?: string; -} - -interface KeyAlgorithm { - name: string; -} - -interface KeyboardEventInit extends EventModifierInit { - /** @deprecated */ - charCode?: number; - code?: string; - isComposing?: boolean; - key?: string; - /** @deprecated */ - keyCode?: number; - location?: number; - repeat?: boolean; -} - -interface Keyframe { - composite?: CompositeOperationOrAuto; - easing?: string; - offset?: number | null; - [property: string]: string | number | null | undefined; -} - -interface KeyframeAnimationOptions extends KeyframeEffectOptions { - id?: string; - timeline?: AnimationTimeline | null; -} - -interface KeyframeEffectOptions extends EffectTiming { - composite?: CompositeOperation; - iterationComposite?: IterationCompositeOperation; - pseudoElement?: string | null; -} - -interface LockInfo { - clientId?: string; - mode?: LockMode; - name?: string; -} - -interface LockManagerSnapshot { - held?: LockInfo[]; - pending?: LockInfo[]; -} - -interface LockOptions { - ifAvailable?: boolean; - mode?: LockMode; - signal?: AbortSignal; - steal?: boolean; -} - -interface MIDIConnectionEventInit extends EventInit { - port?: MIDIPort; -} - -interface MIDIMessageEventInit extends EventInit { - data?: Uint8Array; -} - -interface MIDIOptions { - software?: boolean; - sysex?: boolean; -} - -interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { - configuration?: MediaDecodingConfiguration; -} - -interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { - configuration?: MediaEncodingConfiguration; -} - -interface MediaCapabilitiesInfo { - powerEfficient: boolean; - smooth: boolean; - supported: boolean; -} - -interface MediaConfiguration { - audio?: AudioConfiguration; - video?: VideoConfiguration; -} - -interface MediaDecodingConfiguration extends MediaConfiguration { - type: MediaDecodingType; -} - -interface MediaElementAudioSourceOptions { - mediaElement: HTMLMediaElement; -} - -interface MediaEncodingConfiguration extends MediaConfiguration { - type: MediaEncodingType; -} - -interface MediaEncryptedEventInit extends EventInit { - initData?: ArrayBuffer | null; - initDataType?: string; -} - -interface MediaImage { - sizes?: string; - src: string; - type?: string; -} - -interface MediaKeyMessageEventInit extends EventInit { - message: ArrayBuffer; - messageType: MediaKeyMessageType; -} - -interface MediaKeySystemConfiguration { - audioCapabilities?: MediaKeySystemMediaCapability[]; - distinctiveIdentifier?: MediaKeysRequirement; - initDataTypes?: string[]; - label?: string; - persistentState?: MediaKeysRequirement; - sessionTypes?: string[]; - videoCapabilities?: MediaKeySystemMediaCapability[]; -} - -interface MediaKeySystemMediaCapability { - contentType?: string; - encryptionScheme?: string | null; - robustness?: string; -} - -interface MediaMetadataInit { - album?: string; - artist?: string; - artwork?: MediaImage[]; - title?: string; -} - -interface MediaPositionState { - duration?: number; - playbackRate?: number; - position?: number; -} - -interface MediaQueryListEventInit extends EventInit { - matches?: boolean; - media?: string; -} - -interface MediaRecorderOptions { - audioBitsPerSecond?: number; - bitsPerSecond?: number; - mimeType?: string; - videoBitsPerSecond?: number; -} - -interface MediaSessionActionDetails { - action: MediaSessionAction; - fastSeek?: boolean; - seekOffset?: number; - seekTime?: number; -} - -interface MediaStreamAudioSourceOptions { - mediaStream: MediaStream; -} - -interface MediaStreamConstraints { - audio?: boolean | MediaTrackConstraints; - peerIdentity?: string; - preferCurrentTab?: boolean; - video?: boolean | MediaTrackConstraints; -} - -interface MediaStreamTrackEventInit extends EventInit { - track: MediaStreamTrack; -} - -interface MediaTrackCapabilities { - aspectRatio?: DoubleRange; - autoGainControl?: boolean[]; - channelCount?: ULongRange; - deviceId?: string; - displaySurface?: string; - echoCancellation?: boolean[]; - facingMode?: string[]; - frameRate?: DoubleRange; - groupId?: string; - height?: ULongRange; - noiseSuppression?: boolean[]; - sampleRate?: ULongRange; - sampleSize?: ULongRange; - width?: ULongRange; -} - -interface MediaTrackConstraintSet { - aspectRatio?: ConstrainDouble; - autoGainControl?: ConstrainBoolean; - channelCount?: ConstrainULong; - deviceId?: ConstrainDOMString; - displaySurface?: ConstrainDOMString; - echoCancellation?: ConstrainBoolean; - facingMode?: ConstrainDOMString; - frameRate?: ConstrainDouble; - groupId?: ConstrainDOMString; - height?: ConstrainULong; - noiseSuppression?: ConstrainBoolean; - sampleRate?: ConstrainULong; - sampleSize?: ConstrainULong; - width?: ConstrainULong; -} - -interface MediaTrackConstraints extends MediaTrackConstraintSet { - advanced?: MediaTrackConstraintSet[]; -} - -interface MediaTrackSettings { - aspectRatio?: number; - autoGainControl?: boolean; - channelCount?: number; - deviceId?: string; - displaySurface?: string; - echoCancellation?: boolean; - facingMode?: string; - frameRate?: number; - groupId?: string; - height?: number; - noiseSuppression?: boolean; - sampleRate?: number; - sampleSize?: number; - width?: number; -} - -interface MediaTrackSupportedConstraints { - aspectRatio?: boolean; - autoGainControl?: boolean; - channelCount?: boolean; - deviceId?: boolean; - displaySurface?: boolean; - echoCancellation?: boolean; - facingMode?: boolean; - frameRate?: boolean; - groupId?: boolean; - height?: boolean; - noiseSuppression?: boolean; - sampleRate?: boolean; - sampleSize?: boolean; - width?: boolean; -} - -interface MessageEventInit extends EventInit { - data?: T; - lastEventId?: string; - origin?: string; - ports?: MessagePort[]; - source?: MessageEventSource | null; -} - -interface MouseEventInit extends EventModifierInit { - button?: number; - buttons?: number; - clientX?: number; - clientY?: number; - movementX?: number; - movementY?: number; - relatedTarget?: EventTarget | null; - screenX?: number; - screenY?: number; -} - -interface MultiCacheQueryOptions extends CacheQueryOptions { - cacheName?: string; -} - -interface MutationObserverInit { - /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ - attributeFilter?: string[]; - /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ - attributeOldValue?: boolean; - /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ - attributes?: boolean; - /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ - characterData?: boolean; - /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ - characterDataOldValue?: boolean; - /** Set to true if mutations to target's children are to be observed. */ - childList?: boolean; - /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ - subtree?: boolean; -} - -interface NavigationPreloadState { - enabled?: boolean; - headerValue?: string; -} - -interface NotificationOptions { - badge?: string; - body?: string; - data?: any; - dir?: NotificationDirection; - icon?: string; - lang?: string; - requireInteraction?: boolean; - silent?: boolean | null; - tag?: string; -} - -interface OfflineAudioCompletionEventInit extends EventInit { - renderedBuffer: AudioBuffer; -} - -interface OfflineAudioContextOptions { - length: number; - numberOfChannels?: number; - sampleRate: number; -} - -interface OptionalEffectTiming { - delay?: number; - direction?: PlaybackDirection; - duration?: number | string; - easing?: string; - endDelay?: number; - fill?: FillMode; - iterationStart?: number; - iterations?: number; - playbackRate?: number; -} - -interface OscillatorOptions extends AudioNodeOptions { - detune?: number; - frequency?: number; - periodicWave?: PeriodicWave; - type?: OscillatorType; -} - -interface PageTransitionEventInit extends EventInit { - persisted?: boolean; -} - -interface PannerOptions extends AudioNodeOptions { - coneInnerAngle?: number; - coneOuterAngle?: number; - coneOuterGain?: number; - distanceModel?: DistanceModelType; - maxDistance?: number; - orientationX?: number; - orientationY?: number; - orientationZ?: number; - panningModel?: PanningModelType; - positionX?: number; - positionY?: number; - positionZ?: number; - refDistance?: number; - rolloffFactor?: number; -} - -interface PaymentCurrencyAmount { - currency: string; - value: string; -} - -interface PaymentDetailsBase { - displayItems?: PaymentItem[]; - modifiers?: PaymentDetailsModifier[]; -} - -interface PaymentDetailsInit extends PaymentDetailsBase { - id?: string; - total: PaymentItem; -} - -interface PaymentDetailsModifier { - additionalDisplayItems?: PaymentItem[]; - data?: any; - supportedMethods: string; - total?: PaymentItem; -} - -interface PaymentDetailsUpdate extends PaymentDetailsBase { - paymentMethodErrors?: any; - total?: PaymentItem; -} - -interface PaymentItem { - amount: PaymentCurrencyAmount; - label: string; - pending?: boolean; -} - -interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; - methodName?: string; -} - -interface PaymentMethodData { - data?: any; - supportedMethods: string; -} - -interface PaymentRequestUpdateEventInit extends EventInit { -} - -interface PaymentValidationErrors { - error?: string; - paymentMethod?: any; -} - -interface Pbkdf2Params extends Algorithm { - hash: HashAlgorithmIdentifier; - iterations: number; - salt: BufferSource; -} - -interface PerformanceMarkOptions { - detail?: any; - startTime?: DOMHighResTimeStamp; -} - -interface PerformanceMeasureOptions { - detail?: any; - duration?: DOMHighResTimeStamp; - end?: string | DOMHighResTimeStamp; - start?: string | DOMHighResTimeStamp; -} - -interface PerformanceObserverInit { - buffered?: boolean; - entryTypes?: string[]; - type?: string; -} - -interface PeriodicWaveConstraints { - disableNormalization?: boolean; -} - -interface PeriodicWaveOptions extends PeriodicWaveConstraints { - imag?: number[] | Float32Array; - real?: number[] | Float32Array; -} - -interface PermissionDescriptor { - name: PermissionName; -} - -interface PictureInPictureEventInit extends EventInit { - pictureInPictureWindow: PictureInPictureWindow; -} - -interface PlaneLayout { - offset: number; - stride: number; -} - -interface PointerEventInit extends MouseEventInit { - coalescedEvents?: PointerEvent[]; - height?: number; - isPrimary?: boolean; - pointerId?: number; - pointerType?: string; - predictedEvents?: PointerEvent[]; - pressure?: number; - tangentialPressure?: number; - tiltX?: number; - tiltY?: number; - twist?: number; - width?: number; -} - -interface PopStateEventInit extends EventInit { - state?: any; -} - -interface PositionOptions { - enableHighAccuracy?: boolean; - maximumAge?: number; - timeout?: number; -} - -interface ProgressEventInit extends EventInit { - lengthComputable?: boolean; - loaded?: number; - total?: number; -} - -interface PromiseRejectionEventInit extends EventInit { - promise: Promise; - reason?: any; -} - -interface PropertyDefinition { - inherits: boolean; - initialValue?: string; - name: string; - syntax?: string; -} - -interface PropertyIndexedKeyframes { - composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; - easing?: string | string[]; - offset?: number | (number | null)[]; - [property: string]: string | string[] | number | null | (number | null)[] | undefined; -} - -interface PublicKeyCredentialCreationOptions { - attestation?: AttestationConveyancePreference; - authenticatorSelection?: AuthenticatorSelectionCriteria; - challenge: BufferSource; - excludeCredentials?: PublicKeyCredentialDescriptor[]; - extensions?: AuthenticationExtensionsClientInputs; - pubKeyCredParams: PublicKeyCredentialParameters[]; - rp: PublicKeyCredentialRpEntity; - timeout?: number; - user: PublicKeyCredentialUserEntity; -} - -interface PublicKeyCredentialDescriptor { - id: BufferSource; - transports?: AuthenticatorTransport[]; - type: PublicKeyCredentialType; -} - -interface PublicKeyCredentialEntity { - name: string; -} - -interface PublicKeyCredentialParameters { - alg: COSEAlgorithmIdentifier; - type: PublicKeyCredentialType; -} - -interface PublicKeyCredentialRequestOptions { - allowCredentials?: PublicKeyCredentialDescriptor[]; - challenge: BufferSource; - extensions?: AuthenticationExtensionsClientInputs; - rpId?: string; - timeout?: number; - userVerification?: UserVerificationRequirement; -} - -interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { - id?: string; -} - -interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { - displayName: string; - id: BufferSource; -} - -interface PushSubscriptionJSON { - endpoint?: string; - expirationTime?: EpochTimeStamp | null; - keys?: Record; -} - -interface PushSubscriptionOptionsInit { - applicationServerKey?: BufferSource | string | null; - userVisibleOnly?: boolean; -} - -interface QueuingStrategy { - highWaterMark?: number; - size?: QueuingStrategySize; -} - -interface QueuingStrategyInit { - /** - * Creates a new ByteLengthQueuingStrategy with the provided high water mark. - * - * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. - */ - highWaterMark: number; -} - -interface RTCAnswerOptions extends RTCOfferAnswerOptions { -} - -interface RTCCertificateExpiration { - expires?: number; -} - -interface RTCConfiguration { - bundlePolicy?: RTCBundlePolicy; - certificates?: RTCCertificate[]; - iceCandidatePoolSize?: number; - iceServers?: RTCIceServer[]; - iceTransportPolicy?: RTCIceTransportPolicy; - rtcpMuxPolicy?: RTCRtcpMuxPolicy; -} - -interface RTCDTMFToneChangeEventInit extends EventInit { - tone?: string; -} - -interface RTCDataChannelEventInit extends EventInit { - channel: RTCDataChannel; -} - -interface RTCDataChannelInit { - id?: number; - maxPacketLifeTime?: number; - maxRetransmits?: number; - negotiated?: boolean; - ordered?: boolean; - protocol?: string; -} - -interface RTCDtlsFingerprint { - algorithm?: string; - value?: string; -} - -interface RTCEncodedAudioFrameMetadata { - contributingSources?: number[]; - payloadType?: number; - sequenceNumber?: number; - synchronizationSource?: number; -} - -interface RTCEncodedVideoFrameMetadata { - contributingSources?: number[]; - dependencies?: number[]; - frameId?: number; - height?: number; - payloadType?: number; - spatialIndex?: number; - synchronizationSource?: number; - temporalIndex?: number; - timestamp?: number; - width?: number; -} - -interface RTCErrorEventInit extends EventInit { - error: RTCError; -} - -interface RTCErrorInit { - errorDetail: RTCErrorDetailType; - httpRequestStatusCode?: number; - receivedAlert?: number; - sctpCauseCode?: number; - sdpLineNumber?: number; - sentAlert?: number; -} - -interface RTCIceCandidateInit { - candidate?: string; - sdpMLineIndex?: number | null; - sdpMid?: string | null; - usernameFragment?: string | null; -} - -interface RTCIceCandidatePair { - local: RTCIceCandidate; - remote: RTCIceCandidate; -} - -interface RTCIceCandidatePairStats extends RTCStats { - availableIncomingBitrate?: number; - availableOutgoingBitrate?: number; - bytesReceived?: number; - bytesSent?: number; - currentRoundTripTime?: number; - lastPacketReceivedTimestamp?: DOMHighResTimeStamp; - lastPacketSentTimestamp?: DOMHighResTimeStamp; - localCandidateId: string; - nominated?: boolean; - remoteCandidateId: string; - requestsReceived?: number; - requestsSent?: number; - responsesReceived?: number; - responsesSent?: number; - state: RTCStatsIceCandidatePairState; - totalRoundTripTime?: number; - transportId: string; -} - -interface RTCIceServer { - credential?: string; - urls: string | string[]; - username?: string; -} - -interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { - audioLevel?: number; - bytesReceived?: number; - concealedSamples?: number; - concealmentEvents?: number; - decoderImplementation?: string; - estimatedPlayoutTimestamp?: DOMHighResTimeStamp; - fecPacketsDiscarded?: number; - fecPacketsReceived?: number; - firCount?: number; - frameHeight?: number; - frameWidth?: number; - framesDecoded?: number; - framesDropped?: number; - framesPerSecond?: number; - framesReceived?: number; - headerBytesReceived?: number; - insertedSamplesForDeceleration?: number; - jitterBufferDelay?: number; - jitterBufferEmittedCount?: number; - keyFramesDecoded?: number; - lastPacketReceivedTimestamp?: DOMHighResTimeStamp; - mid?: string; - nackCount?: number; - packetsDiscarded?: number; - pliCount?: number; - qpSum?: number; - remoteId?: string; - removedSamplesForAcceleration?: number; - silentConcealedSamples?: number; - totalAudioEnergy?: number; - totalDecodeTime?: number; - totalInterFrameDelay?: number; - totalProcessingDelay?: number; - totalSamplesDuration?: number; - totalSamplesReceived?: number; - totalSquaredInterFrameDelay?: number; - trackIdentifier: string; -} - -interface RTCLocalSessionDescriptionInit { - sdp?: string; - type?: RTCSdpType; -} - -interface RTCOfferAnswerOptions { -} - -interface RTCOfferOptions extends RTCOfferAnswerOptions { - iceRestart?: boolean; - offerToReceiveAudio?: boolean; - offerToReceiveVideo?: boolean; -} - -interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { - firCount?: number; - frameHeight?: number; - frameWidth?: number; - framesEncoded?: number; - framesPerSecond?: number; - framesSent?: number; - headerBytesSent?: number; - hugeFramesSent?: number; - keyFramesEncoded?: number; - mediaSourceId?: string; - nackCount?: number; - pliCount?: number; - qpSum?: number; - qualityLimitationResolutionChanges?: number; - remoteId?: string; - retransmittedBytesSent?: number; - retransmittedPacketsSent?: number; - rid?: string; - rtxSsrc?: number; - targetBitrate?: number; - totalEncodeTime?: number; - totalEncodedBytesTarget?: number; - totalPacketSendDelay?: number; -} - -interface RTCPeerConnectionIceErrorEventInit extends EventInit { - address?: string | null; - errorCode: number; - errorText?: string; - port?: number | null; - url?: string; -} - -interface RTCPeerConnectionIceEventInit extends EventInit { - candidate?: RTCIceCandidate | null; - url?: string | null; -} - -interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { - jitter?: number; - packetsLost?: number; - packetsReceived?: number; -} - -interface RTCRtcpParameters { - cname?: string; - reducedSize?: boolean; -} - -interface RTCRtpCapabilities { - codecs: RTCRtpCodecCapability[]; - headerExtensions: RTCRtpHeaderExtensionCapability[]; -} - -interface RTCRtpCodec { - channels?: number; - clockRate: number; - mimeType: string; - sdpFmtpLine?: string; -} - -interface RTCRtpCodecCapability extends RTCRtpCodec { -} - -interface RTCRtpCodecParameters extends RTCRtpCodec { - payloadType: number; -} - -interface RTCRtpCodingParameters { - rid?: string; -} - -interface RTCRtpContributingSource { - audioLevel?: number; - rtpTimestamp: number; - source: number; - timestamp: DOMHighResTimeStamp; -} - -interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { - active?: boolean; - maxBitrate?: number; - maxFramerate?: number; - networkPriority?: RTCPriorityType; - priority?: RTCPriorityType; - scaleResolutionDownBy?: number; -} - -interface RTCRtpHeaderExtensionCapability { - uri: string; -} - -interface RTCRtpHeaderExtensionParameters { - encrypted?: boolean; - id: number; - uri: string; -} - -interface RTCRtpParameters { - codecs: RTCRtpCodecParameters[]; - headerExtensions: RTCRtpHeaderExtensionParameters[]; - rtcp: RTCRtcpParameters; -} - -interface RTCRtpReceiveParameters extends RTCRtpParameters { -} - -interface RTCRtpSendParameters extends RTCRtpParameters { - degradationPreference?: RTCDegradationPreference; - encodings: RTCRtpEncodingParameters[]; - transactionId: string; -} - -interface RTCRtpStreamStats extends RTCStats { - codecId?: string; - kind: string; - ssrc: number; - transportId?: string; -} - -interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { -} - -interface RTCRtpTransceiverInit { - direction?: RTCRtpTransceiverDirection; - sendEncodings?: RTCRtpEncodingParameters[]; - streams?: MediaStream[]; -} - -interface RTCSentRtpStreamStats extends RTCRtpStreamStats { - bytesSent?: number; - packetsSent?: number; -} - -interface RTCSessionDescriptionInit { - sdp?: string; - type: RTCSdpType; -} - -interface RTCSetParameterOptions { -} - -interface RTCStats { - id: string; - timestamp: DOMHighResTimeStamp; - type: RTCStatsType; -} - -interface RTCTrackEventInit extends EventInit { - receiver: RTCRtpReceiver; - streams?: MediaStream[]; - track: MediaStreamTrack; - transceiver: RTCRtpTransceiver; -} - -interface RTCTransportStats extends RTCStats { - bytesReceived?: number; - bytesSent?: number; - dtlsCipher?: string; - dtlsState: RTCDtlsTransportState; - localCertificateId?: string; - remoteCertificateId?: string; - selectedCandidatePairId?: string; - srtpCipher?: string; - tlsVersion?: string; -} - -interface ReadableStreamGetReaderOptions { - /** - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. - * - * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. - */ - mode?: ReadableStreamReaderMode; -} - -interface ReadableStreamIteratorOptions { - /** - * Asynchronously iterates over the chunks in the stream's internal queue. - * - * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. - * - * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. - */ - preventCancel?: boolean; -} - -interface ReadableStreamReadDoneResult { - done: true; - value?: T; -} - -interface ReadableStreamReadValueResult { - done: false; - value: T; -} - -interface ReadableWritablePair { - readable: ReadableStream; - /** - * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. - * - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. - */ - writable: WritableStream; -} - -interface RegistrationOptions { - scope?: string; - type?: WorkerType; - updateViaCache?: ServiceWorkerUpdateViaCache; -} - -interface ReportingObserverOptions { - buffered?: boolean; - types?: string[]; -} - -interface RequestInit { - /** A BodyInit object or null to set request's body. */ - body?: BodyInit | null; - /** A string indicating how the request will interact with the browser's cache to set request's cache. */ - cache?: RequestCache; - /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ - credentials?: RequestCredentials; - /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ - headers?: HeadersInit; - /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ - integrity?: string; - /** A boolean to set request's keepalive. */ - keepalive?: boolean; - /** A string to set request's method. */ - method?: string; - /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ - mode?: RequestMode; - priority?: RequestPriority; - /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ - redirect?: RequestRedirect; - /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ - referrer?: string; - /** A referrer policy to set request's referrerPolicy. */ - referrerPolicy?: ReferrerPolicy; - /** An AbortSignal to set request's signal. */ - signal?: AbortSignal | null; - /** Can only be null. Used to disassociate request from any Window. */ - window?: null; -} - -interface ResizeObserverOptions { - box?: ResizeObserverBoxOptions; -} - -interface ResponseInit { - headers?: HeadersInit; - status?: number; - statusText?: string; -} - -interface RsaHashedImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; -} - -interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { - hash: KeyAlgorithm; -} - -interface RsaHashedKeyGenParams extends RsaKeyGenParams { - hash: HashAlgorithmIdentifier; -} - -interface RsaKeyAlgorithm extends KeyAlgorithm { - modulusLength: number; - publicExponent: BigInteger; -} - -interface RsaKeyGenParams extends Algorithm { - modulusLength: number; - publicExponent: BigInteger; -} - -interface RsaOaepParams extends Algorithm { - label?: BufferSource; -} - -interface RsaOtherPrimesInfo { - d?: string; - r?: string; - t?: string; -} - -interface RsaPssParams extends Algorithm { - saltLength: number; -} - -interface SVGBoundingBoxOptions { - clipped?: boolean; - fill?: boolean; - markers?: boolean; - stroke?: boolean; -} - -interface ScrollIntoViewOptions extends ScrollOptions { - block?: ScrollLogicalPosition; - inline?: ScrollLogicalPosition; -} - -interface ScrollOptions { - behavior?: ScrollBehavior; -} - -interface ScrollToOptions extends ScrollOptions { - left?: number; - top?: number; -} - -interface SecurityPolicyViolationEventInit extends EventInit { - blockedURI?: string; - columnNumber?: number; - disposition?: SecurityPolicyViolationEventDisposition; - documentURI?: string; - effectiveDirective?: string; - lineNumber?: number; - originalPolicy?: string; - referrer?: string; - sample?: string; - sourceFile?: string; - statusCode?: number; - violatedDirective?: string; -} - -interface ShadowRootInit { - delegatesFocus?: boolean; - mode: ShadowRootMode; - serializable?: boolean; - slotAssignment?: SlotAssignmentMode; -} - -interface ShareData { - files?: File[]; - text?: string; - title?: string; - url?: string; -} - -interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { - error: SpeechSynthesisErrorCode; -} - -interface SpeechSynthesisEventInit extends EventInit { - charIndex?: number; - charLength?: number; - elapsedTime?: number; - name?: string; - utterance: SpeechSynthesisUtterance; -} - -interface StaticRangeInit { - endContainer: Node; - endOffset: number; - startContainer: Node; - startOffset: number; -} - -interface StereoPannerOptions extends AudioNodeOptions { - pan?: number; -} - -interface StorageEstimate { - quota?: number; - usage?: number; -} - -interface StorageEventInit extends EventInit { - key?: string | null; - newValue?: string | null; - oldValue?: string | null; - storageArea?: Storage | null; - url?: string; -} - -interface StreamPipeOptions { - preventAbort?: boolean; - preventCancel?: boolean; - /** - * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. - * - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. - * - * Errors and closures of the source and destination streams propagate as follows: - * - * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. - * - * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. - * - * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. - * - * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. - * - * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. - */ - preventClose?: boolean; - signal?: AbortSignal; -} - -interface StructuredSerializeOptions { - transfer?: Transferable[]; -} - -interface SubmitEventInit extends EventInit { - submitter?: HTMLElement | null; -} - -interface TextDecodeOptions { - stream?: boolean; -} - -interface TextDecoderOptions { - fatal?: boolean; - ignoreBOM?: boolean; -} - -interface TextEncoderEncodeIntoResult { - read: number; - written: number; -} - -interface ToggleEventInit extends EventInit { - newState?: string; - oldState?: string; -} - -interface TouchEventInit extends EventModifierInit { - changedTouches?: Touch[]; - targetTouches?: Touch[]; - touches?: Touch[]; -} - -interface TouchInit { - altitudeAngle?: number; - azimuthAngle?: number; - clientX?: number; - clientY?: number; - force?: number; - identifier: number; - pageX?: number; - pageY?: number; - radiusX?: number; - radiusY?: number; - rotationAngle?: number; - screenX?: number; - screenY?: number; - target: EventTarget; - touchType?: TouchType; -} - -interface TrackEventInit extends EventInit { - track?: TextTrack | null; -} - -interface Transformer { - flush?: TransformerFlushCallback; - readableType?: undefined; - start?: TransformerStartCallback; - transform?: TransformerTransformCallback; - writableType?: undefined; -} - -interface TransitionEventInit extends EventInit { - elapsedTime?: number; - propertyName?: string; - pseudoElement?: string; -} - -interface UIEventInit extends EventInit { - detail?: number; - view?: Window | null; - /** @deprecated */ - which?: number; -} - -interface ULongRange { - max?: number; - min?: number; -} - -interface UnderlyingByteSource { - autoAllocateChunkSize?: number; - cancel?: UnderlyingSourceCancelCallback; - pull?: (controller: ReadableByteStreamController) => void | PromiseLike; - start?: (controller: ReadableByteStreamController) => any; - type: "bytes"; -} - -interface UnderlyingDefaultSource { - cancel?: UnderlyingSourceCancelCallback; - pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; - start?: (controller: ReadableStreamDefaultController) => any; - type?: undefined; -} - -interface UnderlyingSink { - abort?: UnderlyingSinkAbortCallback; - close?: UnderlyingSinkCloseCallback; - start?: UnderlyingSinkStartCallback; - type?: undefined; - write?: UnderlyingSinkWriteCallback; -} - -interface UnderlyingSource { - autoAllocateChunkSize?: number; - cancel?: UnderlyingSourceCancelCallback; - pull?: UnderlyingSourcePullCallback; - start?: UnderlyingSourceStartCallback; - type?: ReadableStreamType; -} - -interface ValidityStateFlags { - badInput?: boolean; - customError?: boolean; - patternMismatch?: boolean; - rangeOverflow?: boolean; - rangeUnderflow?: boolean; - stepMismatch?: boolean; - tooLong?: boolean; - tooShort?: boolean; - typeMismatch?: boolean; - valueMissing?: boolean; -} - -interface VideoColorSpaceInit { - fullRange?: boolean | null; - matrix?: VideoMatrixCoefficients | null; - primaries?: VideoColorPrimaries | null; - transfer?: VideoTransferCharacteristics | null; -} - -interface VideoConfiguration { - bitrate: number; - colorGamut?: ColorGamut; - contentType: string; - framerate: number; - hdrMetadataType?: HdrMetadataType; - height: number; - scalabilityMode?: string; - transferFunction?: TransferFunction; - width: number; -} - -interface VideoDecoderConfig { - codec: string; - codedHeight?: number; - codedWidth?: number; - colorSpace?: VideoColorSpaceInit; - description?: AllowSharedBufferSource; - displayAspectHeight?: number; - displayAspectWidth?: number; - hardwareAcceleration?: HardwareAcceleration; - optimizeForLatency?: boolean; -} - -interface VideoDecoderInit { - error: WebCodecsErrorCallback; - output: VideoFrameOutputCallback; -} - -interface VideoDecoderSupport { - config?: VideoDecoderConfig; - supported?: boolean; -} - -interface VideoEncoderConfig { - alpha?: AlphaOption; - avc?: AvcEncoderConfig; - bitrate?: number; - bitrateMode?: VideoEncoderBitrateMode; - codec: string; - displayHeight?: number; - displayWidth?: number; - framerate?: number; - hardwareAcceleration?: HardwareAcceleration; - height: number; - latencyMode?: LatencyMode; - scalabilityMode?: string; - width: number; -} - -interface VideoEncoderEncodeOptions { - keyFrame?: boolean; -} - -interface VideoEncoderInit { - error: WebCodecsErrorCallback; - output: EncodedVideoChunkOutputCallback; -} - -interface VideoEncoderSupport { - config?: VideoEncoderConfig; - supported?: boolean; -} - -interface VideoFrameBufferInit { - codedHeight: number; - codedWidth: number; - colorSpace?: VideoColorSpaceInit; - displayHeight?: number; - displayWidth?: number; - duration?: number; - format: VideoPixelFormat; - layout?: PlaneLayout[]; - timestamp: number; - visibleRect?: DOMRectInit; -} - -interface VideoFrameCallbackMetadata { - captureTime?: DOMHighResTimeStamp; - expectedDisplayTime: DOMHighResTimeStamp; - height: number; - mediaTime: number; - presentationTime: DOMHighResTimeStamp; - presentedFrames: number; - processingDuration?: number; - receiveTime?: DOMHighResTimeStamp; - rtpTimestamp?: number; - width: number; -} - -interface VideoFrameCopyToOptions { - layout?: PlaneLayout[]; - rect?: DOMRectInit; -} - -interface VideoFrameInit { - alpha?: AlphaOption; - displayHeight?: number; - displayWidth?: number; - duration?: number; - timestamp?: number; - visibleRect?: DOMRectInit; -} - -interface WaveShaperOptions extends AudioNodeOptions { - curve?: number[] | Float32Array; - oversample?: OverSampleType; -} - -interface WebGLContextAttributes { - alpha?: boolean; - antialias?: boolean; - depth?: boolean; - desynchronized?: boolean; - failIfMajorPerformanceCaveat?: boolean; - powerPreference?: WebGLPowerPreference; - premultipliedAlpha?: boolean; - preserveDrawingBuffer?: boolean; - stencil?: boolean; -} - -interface WebGLContextEventInit extends EventInit { - statusMessage?: string; -} - -interface WebTransportCloseInfo { - closeCode?: number; - reason?: string; -} - -interface WebTransportErrorOptions { - source?: WebTransportErrorSource; - streamErrorCode?: number | null; -} - -interface WebTransportHash { - algorithm?: string; - value?: BufferSource; -} - -interface WebTransportOptions { - allowPooling?: boolean; - congestionControl?: WebTransportCongestionControl; - requireUnreliable?: boolean; - serverCertificateHashes?: WebTransportHash[]; -} - -interface WebTransportSendStreamOptions { - sendOrder?: number; -} - -interface WheelEventInit extends MouseEventInit { - deltaMode?: number; - deltaX?: number; - deltaY?: number; - deltaZ?: number; -} - -interface WindowPostMessageOptions extends StructuredSerializeOptions { - targetOrigin?: string; -} - -interface WorkerOptions { - credentials?: RequestCredentials; - name?: string; - type?: WorkerType; -} - -interface WorkletOptions { - credentials?: RequestCredentials; -} - -interface WriteParams { - data?: BufferSource | Blob | string | null; - position?: number | null; - size?: number | null; - type: WriteCommandType; -} - -type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; - -declare var NodeFilter: { - readonly FILTER_ACCEPT: 1; - readonly FILTER_REJECT: 2; - readonly FILTER_SKIP: 3; - readonly SHOW_ALL: 0xFFFFFFFF; - readonly SHOW_ELEMENT: 0x1; - readonly SHOW_ATTRIBUTE: 0x2; - readonly SHOW_TEXT: 0x4; - readonly SHOW_CDATA_SECTION: 0x8; - readonly SHOW_ENTITY_REFERENCE: 0x10; - readonly SHOW_ENTITY: 0x20; - readonly SHOW_PROCESSING_INSTRUCTION: 0x40; - readonly SHOW_COMMENT: 0x80; - readonly SHOW_DOCUMENT: 0x100; - readonly SHOW_DOCUMENT_TYPE: 0x200; - readonly SHOW_DOCUMENT_FRAGMENT: 0x400; - readonly SHOW_NOTATION: 0x800; -}; - -type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; - -/** - * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) - */ -interface ANGLE_instanced_arrays { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ - drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ - drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ - vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; -} - -interface ARIAMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ - ariaAtomic: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ - ariaAutoComplete: string | null; - ariaBrailleLabel: string | null; - ariaBrailleRoleDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ - ariaBusy: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ - ariaChecked: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ - ariaColCount: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ - ariaColIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ - ariaColSpan: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ - ariaCurrent: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ - ariaDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ - ariaDisabled: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ - ariaExpanded: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ - ariaHasPopup: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ - ariaHidden: string | null; - ariaInvalid: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ - ariaKeyShortcuts: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ - ariaLabel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ - ariaLevel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ - ariaLive: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ - ariaModal: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ - ariaMultiLine: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ - ariaMultiSelectable: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ - ariaOrientation: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ - ariaPlaceholder: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ - ariaPosInSet: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ - ariaPressed: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ - ariaReadOnly: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ - ariaRequired: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ - ariaRoleDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ - ariaRowCount: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ - ariaRowIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ - ariaRowSpan: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ - ariaSelected: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ - ariaSetSize: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ - ariaSort: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ - ariaValueMax: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ - ariaValueMin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ - ariaValueNow: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ - ariaValueText: string | null; - role: string | null; -} - -/** - * A controller object that allows you to abort one or more DOM requests as and when desired. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) - */ -interface AbortController { - /** - * Returns the AbortSignal object associated with this object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) - */ - readonly signal: AbortSignal; - /** - * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) - */ - abort(reason?: any): void; -} - -declare var AbortController: { - prototype: AbortController; - new(): AbortController; -}; - -interface AbortSignalEventMap { - "abort": Event; -} - -/** - * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) - */ -interface AbortSignal extends EventTarget { - /** - * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) - */ - readonly aborted: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ - onabort: ((this: AbortSignal, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ - readonly reason: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ - throwIfAborted(): void; - addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AbortSignal: { - prototype: AbortSignal; - new(): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ - abort(reason?: any): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: AbortSignal[]): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ - timeout(milliseconds: number): AbortSignal; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ -interface AbstractRange { - /** - * Returns true if range is collapsed, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) - */ - readonly collapsed: boolean; - /** - * Returns range's end node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) - */ - readonly endContainer: Node; - /** - * Returns range's end offset. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) - */ - readonly endOffset: number; - /** - * Returns range's start node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) - */ - readonly startContainer: Node; - /** - * Returns range's start offset. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) - */ - readonly startOffset: number; -} - -declare var AbstractRange: { - prototype: AbstractRange; - new(): AbstractRange; -}; - -interface AbstractWorkerEventMap { - "error": ErrorEvent; -} - -interface AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ - onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; - addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -/** - * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) - */ -interface AnalyserNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ - fftSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ - readonly frequencyBinCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ - maxDecibels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ - minDecibels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ - smoothingTimeConstant: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ - getByteFrequencyData(array: Uint8Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ - getByteTimeDomainData(array: Uint8Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ - getFloatFrequencyData(array: Float32Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ - getFloatTimeDomainData(array: Float32Array): void; -} - -declare var AnalyserNode: { - prototype: AnalyserNode; - new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; -}; - -interface Animatable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ - animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ - getAnimations(options?: GetAnimationsOptions): Animation[]; -} - -interface AnimationEventMap { - "cancel": AnimationPlaybackEvent; - "finish": AnimationPlaybackEvent; - "remove": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ -interface Animation extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ - currentTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ - effect: AnimationEffect | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ - readonly finished: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ - id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ - oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ - onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ - onremove: ((this: Animation, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ - readonly pending: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ - readonly playState: AnimationPlayState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ - playbackRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ - readonly replaceState: AnimationReplaceState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ - startTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ - timeline: AnimationTimeline | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ - cancel(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ - commitStyles(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ - finish(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ - pause(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ - persist(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ - play(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ - reverse(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ - updatePlaybackRate(playbackRate: number): void; - addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var Animation: { - prototype: Animation; - new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ -interface AnimationEffect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ - getComputedTiming(): ComputedEffectTiming; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ - getTiming(): EffectTiming; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ - updateTiming(timing?: OptionalEffectTiming): void; -} - -declare var AnimationEffect: { - prototype: AnimationEffect; - new(): AnimationEffect; -}; - -/** - * Events providing information related to animations. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) - */ -interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ - readonly animationName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ - readonly elapsedTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ - readonly pseudoElement: string; -} - -declare var AnimationEvent: { - prototype: AnimationEvent; - new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; -}; - -interface AnimationFrameProvider { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ - cancelAnimationFrame(handle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ - requestAnimationFrame(callback: FrameRequestCallback): number; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ -interface AnimationPlaybackEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ - readonly currentTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ - readonly timelineTime: CSSNumberish | null; -} - -declare var AnimationPlaybackEvent: { - prototype: AnimationPlaybackEvent; - new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ -interface AnimationTimeline { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ - readonly currentTime: CSSNumberish | null; -} - -declare var AnimationTimeline: { - prototype: AnimationTimeline; - new(): AnimationTimeline; -}; - -/** - * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) - */ -interface Attr extends Node { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ - readonly localName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ - readonly namespaceURI: string | null; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ - readonly ownerElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ - readonly prefix: string | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) - */ - readonly specified: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ - value: string; -} - -declare var Attr: { - prototype: Attr; - new(): Attr; -}; - -/** - * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) - */ -interface AudioBuffer { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ - readonly duration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ - readonly numberOfChannels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ - copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ - copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ - getChannelData(channel: number): Float32Array; -} - -declare var AudioBuffer: { - prototype: AudioBuffer; - new(options: AudioBufferOptions): AudioBuffer; -}; - -/** - * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) - */ -interface AudioBufferSourceNode extends AudioScheduledSourceNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ - buffer: AudioBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ - readonly detune: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ - loop: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ - loopEnd: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ - loopStart: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ - readonly playbackRate: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ - start(when?: number, offset?: number, duration?: number): void; - addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioBufferSourceNode: { - prototype: AudioBufferSourceNode; - new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; -}; - -/** - * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) - */ -interface AudioContext extends BaseAudioContext { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ - readonly baseLatency: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ - readonly outputLatency: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ - createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ - createMediaStreamDestination(): MediaStreamAudioDestinationNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ - createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ - getOutputTimestamp(): AudioTimestamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ - resume(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ - suspend(): Promise; - addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioContext: { - prototype: AudioContext; - new(contextOptions?: AudioContextOptions): AudioContext; -}; - -/** - * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) - */ -interface AudioDestinationNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ - readonly maxChannelCount: number; -} - -declare var AudioDestinationNode: { - prototype: AudioDestinationNode; - new(): AudioDestinationNode; -}; - -/** - * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) - */ -interface AudioListener { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ - readonly forwardX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ - readonly forwardY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ - readonly forwardZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ - readonly positionX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ - readonly positionY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ - readonly positionZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ - readonly upX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ - readonly upY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ - readonly upZ: AudioParam; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) - */ - setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) - */ - setPosition(x: number, y: number, z: number): void; -} - -declare var AudioListener: { - prototype: AudioListener; - new(): AudioListener; -}; - -/** - * A generic interface for representing an audio processing module. Examples include: - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) - */ -interface AudioNode extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ - channelCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ - channelCountMode: ChannelCountMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ - channelInterpretation: ChannelInterpretation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ - readonly context: BaseAudioContext; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ - readonly numberOfInputs: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ - readonly numberOfOutputs: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ - connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; - connect(destinationParam: AudioParam, output?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ - disconnect(): void; - disconnect(output: number): void; - disconnect(destinationNode: AudioNode): void; - disconnect(destinationNode: AudioNode, output: number): void; - disconnect(destinationNode: AudioNode, output: number, input: number): void; - disconnect(destinationParam: AudioParam): void; - disconnect(destinationParam: AudioParam, output: number): void; -} - -declare var AudioNode: { - prototype: AudioNode; - new(): AudioNode; -}; - -/** - * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) - */ -interface AudioParam { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ - automationRate: AutomationRate; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ - readonly defaultValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ - readonly maxValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ - readonly minValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ - value: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ - cancelAndHoldAtTime(cancelTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ - cancelScheduledValues(cancelTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ - exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ - linearRampToValueAtTime(value: number, endTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ - setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ - setValueAtTime(value: number, startTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ - setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; -} - -declare var AudioParam: { - prototype: AudioParam; - new(): AudioParam; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ -interface AudioParamMap { - forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; -} - -declare var AudioParamMap: { - prototype: AudioParamMap; - new(): AudioParamMap; -}; - -/** - * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. - * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) - */ -interface AudioProcessingEvent extends Event { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) - */ - readonly inputBuffer: AudioBuffer; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) - */ - readonly outputBuffer: AudioBuffer; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) - */ - readonly playbackTime: number; -} - -/** @deprecated */ -declare var AudioProcessingEvent: { - prototype: AudioProcessingEvent; - new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; -}; - -interface AudioScheduledSourceNodeEventMap { - "ended": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ -interface AudioScheduledSourceNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ - onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ - start(when?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ - stop(when?: number): void; - addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioScheduledSourceNode: { - prototype: AudioScheduledSourceNode; - new(): AudioScheduledSourceNode; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) - */ -interface AudioWorklet extends Worklet { -} - -declare var AudioWorklet: { - prototype: AudioWorklet; - new(): AudioWorklet; -}; - -interface AudioWorkletNodeEventMap { - "processorerror": Event; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) - */ -interface AudioWorkletNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ - onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ - readonly parameters: AudioParamMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ - readonly port: MessagePort; - addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioWorkletNode: { - prototype: AudioWorkletNode; - new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) - */ -interface AuthenticatorAssertionResponse extends AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ - readonly authenticatorData: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ - readonly signature: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ - readonly userHandle: ArrayBuffer | null; -} - -declare var AuthenticatorAssertionResponse: { - prototype: AuthenticatorAssertionResponse; - new(): AuthenticatorAssertionResponse; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) - */ -interface AuthenticatorAttestationResponse extends AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ - readonly attestationObject: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ - getAuthenticatorData(): ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ - getPublicKey(): ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ - getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ - getTransports(): string[]; -} - -declare var AuthenticatorAttestationResponse: { - prototype: AuthenticatorAttestationResponse; - new(): AuthenticatorAttestationResponse; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) - */ -interface AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ - readonly clientDataJSON: ArrayBuffer; -} - -declare var AuthenticatorResponse: { - prototype: AuthenticatorResponse; - new(): AuthenticatorResponse; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ -interface BarProp { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ - readonly visible: boolean; -} - -declare var BarProp: { - prototype: BarProp; - new(): BarProp; -}; - -interface BaseAudioContextEventMap { - "statechange": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ -interface BaseAudioContext extends EventTarget { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) - */ - readonly audioWorklet: AudioWorklet; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ - readonly currentTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ - readonly destination: AudioDestinationNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ - readonly listener: AudioListener; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ - onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ - readonly state: AudioContextState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ - createAnalyser(): AnalyserNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ - createBiquadFilter(): BiquadFilterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ - createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ - createBufferSource(): AudioBufferSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ - createChannelMerger(numberOfInputs?: number): ChannelMergerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ - createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ - createConstantSource(): ConstantSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ - createConvolver(): ConvolverNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ - createDelay(maxDelayTime?: number): DelayNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ - createDynamicsCompressor(): DynamicsCompressorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ - createGain(): GainNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ - createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ - createOscillator(): OscillatorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ - createPanner(): PannerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ - createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) - */ - createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ - createStereoPanner(): StereoPannerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ - createWaveShaper(): WaveShaperNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ - decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; - addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var BaseAudioContext: { - prototype: BaseAudioContext; - new(): BaseAudioContext; -}; - -/** - * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) - */ -interface BeforeUnloadEvent extends Event { - /** @deprecated */ - returnValue: any; -} - -declare var BeforeUnloadEvent: { - prototype: BeforeUnloadEvent; - new(): BeforeUnloadEvent; -}; - -/** - * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) - */ -interface BiquadFilterNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ - readonly Q: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ - readonly detune: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ - readonly frequency: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ - readonly gain: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ - type: BiquadFilterType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ - getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; -} - -declare var BiquadFilterNode: { - prototype: BiquadFilterNode; - new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; -}; - -/** - * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) - */ -interface Blob { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ - readonly size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ - arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ - slice(start?: number, end?: number, contentType?: string): Blob; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ - stream(): ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ - text(): Promise; -} - -declare var Blob: { - prototype: Blob; - new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ -interface BlobEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ - readonly data: Blob; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ - readonly timecode: DOMHighResTimeStamp; -} - -declare var BlobEvent: { - prototype: BlobEvent; - new(type: string, eventInitDict: BlobEventInit): BlobEvent; -}; - -interface Body { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ - readonly body: ReadableStream | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ - readonly bodyUsed: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ - arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ - blob(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ - formData(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ - json(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ - text(): Promise; -} - -interface BroadcastChannelEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ -interface BroadcastChannel extends EventTarget { - /** - * Returns the channel name (as passed to the constructor). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) - */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ - onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ - onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; - /** - * Closes the BroadcastChannel object, opening it up to garbage collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) - */ - close(): void; - /** - * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) - */ - postMessage(message: any): void; - addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var BroadcastChannel: { - prototype: BroadcastChannel; - new(name: string): BroadcastChannel; -}; - -/** - * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) - */ -interface ByteLengthQueuingStrategy extends QueuingStrategy { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ - readonly highWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ - readonly size: QueuingStrategySize; -} - -declare var ByteLengthQueuingStrategy: { - prototype: ByteLengthQueuingStrategy; - new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; -}; - -/** - * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) - */ -interface CDATASection extends Text { -} - -declare var CDATASection: { - prototype: CDATASection; - new(): CDATASection; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ -interface CSSAnimation extends Animation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ - readonly animationName: string; - addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var CSSAnimation: { - prototype: CSSAnimation; - new(): CSSAnimation; -}; - -/** - * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) - */ -interface CSSConditionRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ - readonly conditionText: string; -} - -declare var CSSConditionRule: { - prototype: CSSConditionRule; - new(): CSSConditionRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ -interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ - readonly containerName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ - readonly containerQuery: string; -} - -declare var CSSContainerRule: { - prototype: CSSContainerRule; - new(): CSSContainerRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ -interface CSSCounterStyleRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ - additiveSymbols: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ - fallback: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ - negative: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ - pad: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ - prefix: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ - range: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ - speakAs: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ - suffix: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ - symbols: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ - system: string; -} - -declare var CSSCounterStyleRule: { - prototype: CSSCounterStyleRule; - new(): CSSCounterStyleRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ -interface CSSFontFaceRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - readonly style: CSSStyleDeclaration; -} - -declare var CSSFontFaceRule: { - prototype: CSSFontFaceRule; - new(): CSSFontFaceRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ -interface CSSFontFeatureValuesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ - fontFamily: string; -} - -declare var CSSFontFeatureValuesRule: { - prototype: CSSFontFeatureValuesRule; - new(): CSSFontFeatureValuesRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ -interface CSSFontPaletteValuesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ - readonly basePalette: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ - readonly fontFamily: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ - readonly overrideColors: string; -} - -declare var CSSFontPaletteValuesRule: { - prototype: CSSFontPaletteValuesRule; - new(): CSSFontPaletteValuesRule; -}; - -/** - * Any CSS at-rule that contains other rules nested within it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) - */ -interface CSSGroupingRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ - readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ - deleteRule(index: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ - insertRule(rule: string, index?: number): number; -} - -declare var CSSGroupingRule: { - prototype: CSSGroupingRule; - new(): CSSGroupingRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ -interface CSSImageValue extends CSSStyleValue { -} - -declare var CSSImageValue: { - prototype: CSSImageValue; - new(): CSSImageValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ -interface CSSImportRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ - readonly href: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ - readonly layerName: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ - readonly media: MediaList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ - readonly styleSheet: CSSStyleSheet | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ - readonly supportsText: string | null; -} - -declare var CSSImportRule: { - prototype: CSSImportRule; - new(): CSSImportRule; -}; - -/** - * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) - */ -interface CSSKeyframeRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ - keyText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ - readonly style: CSSStyleDeclaration; -} - -declare var CSSKeyframeRule: { - prototype: CSSKeyframeRule; - new(): CSSKeyframeRule; -}; - -/** - * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) - */ -interface CSSKeyframesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ - readonly cssRules: CSSRuleList; - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ - appendRule(rule: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ - deleteRule(select: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ - findRule(select: string): CSSKeyframeRule | null; - [index: number]: CSSKeyframeRule; -} - -declare var CSSKeyframesRule: { - prototype: CSSKeyframesRule; - new(): CSSKeyframesRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ -interface CSSKeywordValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ - value: string; -} - -declare var CSSKeywordValue: { - prototype: CSSKeywordValue; - new(value: string): CSSKeywordValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ -interface CSSLayerBlockRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ - readonly name: string; -} - -declare var CSSLayerBlockRule: { - prototype: CSSLayerBlockRule; - new(): CSSLayerBlockRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ -interface CSSLayerStatementRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ - readonly nameList: ReadonlyArray; -} - -declare var CSSLayerStatementRule: { - prototype: CSSLayerStatementRule; - new(): CSSLayerStatementRule; -}; - -interface CSSMathClamp extends CSSMathValue { - readonly lower: CSSNumericValue; - readonly upper: CSSNumericValue; - readonly value: CSSNumericValue; -} - -declare var CSSMathClamp: { - prototype: CSSMathClamp; - new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ -interface CSSMathInvert extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ - readonly value: CSSNumericValue; -} - -declare var CSSMathInvert: { - prototype: CSSMathInvert; - new(arg: CSSNumberish): CSSMathInvert; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ -interface CSSMathMax extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ - readonly values: CSSNumericArray; -} - -declare var CSSMathMax: { - prototype: CSSMathMax; - new(...args: CSSNumberish[]): CSSMathMax; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ -interface CSSMathMin extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ - readonly values: CSSNumericArray; -} - -declare var CSSMathMin: { - prototype: CSSMathMin; - new(...args: CSSNumberish[]): CSSMathMin; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ -interface CSSMathNegate extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ - readonly value: CSSNumericValue; -} - -declare var CSSMathNegate: { - prototype: CSSMathNegate; - new(arg: CSSNumberish): CSSMathNegate; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ -interface CSSMathProduct extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ - readonly values: CSSNumericArray; -} - -declare var CSSMathProduct: { - prototype: CSSMathProduct; - new(...args: CSSNumberish[]): CSSMathProduct; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ -interface CSSMathSum extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ - readonly values: CSSNumericArray; -} - -declare var CSSMathSum: { - prototype: CSSMathSum; - new(...args: CSSNumberish[]): CSSMathSum; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ -interface CSSMathValue extends CSSNumericValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ - readonly operator: CSSMathOperator; -} - -declare var CSSMathValue: { - prototype: CSSMathValue; - new(): CSSMathValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ -interface CSSMatrixComponent extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ - matrix: DOMMatrix; -} - -declare var CSSMatrixComponent: { - prototype: CSSMatrixComponent; - new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; -}; - -/** - * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) - */ -interface CSSMediaRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ - readonly media: MediaList; -} - -declare var CSSMediaRule: { - prototype: CSSMediaRule; - new(): CSSMediaRule; -}; - -/** - * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) - */ -interface CSSNamespaceRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ - readonly namespaceURI: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ - readonly prefix: string; -} - -declare var CSSNamespaceRule: { - prototype: CSSNamespaceRule; - new(): CSSNamespaceRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ -interface CSSNumericArray { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ - readonly length: number; - forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; - [index: number]: CSSNumericValue; -} - -declare var CSSNumericArray: { - prototype: CSSNumericArray; - new(): CSSNumericArray; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ -interface CSSNumericValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ - add(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ - div(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ - equals(...value: CSSNumberish[]): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ - max(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ - min(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ - mul(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ - sub(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ - to(unit: string): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ - toSum(...units: string[]): CSSMathSum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ - type(): CSSNumericType; -} - -declare var CSSNumericValue: { - prototype: CSSNumericValue; - new(): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ - parse(cssText: string): CSSNumericValue; -}; - -/** - * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) - */ -interface CSSPageRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ - selectorText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ - readonly style: CSSStyleDeclaration; -} - -declare var CSSPageRule: { - prototype: CSSPageRule; - new(): CSSPageRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ -interface CSSPerspective extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ - length: CSSPerspectiveValue; -} - -declare var CSSPerspective: { - prototype: CSSPerspective; - new(length: CSSPerspectiveValue): CSSPerspective; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ -interface CSSPropertyRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ - readonly inherits: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ - readonly initialValue: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ - readonly syntax: string; -} - -declare var CSSPropertyRule: { - prototype: CSSPropertyRule; - new(): CSSPropertyRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ -interface CSSRotate extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ - angle: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ - x: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ - y: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ - z: CSSNumberish; -} - -declare var CSSRotate: { - prototype: CSSRotate; - new(angle: CSSNumericValue): CSSRotate; - new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; -}; - -/** - * A single CSS rule. There are several types of rules, listed in the Type constants section below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) - */ -interface CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ - cssText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ - readonly parentRule: CSSRule | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ - readonly parentStyleSheet: CSSStyleSheet | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) - */ - readonly type: number; - readonly STYLE_RULE: 1; - readonly CHARSET_RULE: 2; - readonly IMPORT_RULE: 3; - readonly MEDIA_RULE: 4; - readonly FONT_FACE_RULE: 5; - readonly PAGE_RULE: 6; - readonly NAMESPACE_RULE: 10; - readonly KEYFRAMES_RULE: 7; - readonly KEYFRAME_RULE: 8; - readonly SUPPORTS_RULE: 12; - readonly COUNTER_STYLE_RULE: 11; - readonly FONT_FEATURE_VALUES_RULE: 14; -} - -declare var CSSRule: { - prototype: CSSRule; - new(): CSSRule; - readonly STYLE_RULE: 1; - readonly CHARSET_RULE: 2; - readonly IMPORT_RULE: 3; - readonly MEDIA_RULE: 4; - readonly FONT_FACE_RULE: 5; - readonly PAGE_RULE: 6; - readonly NAMESPACE_RULE: 10; - readonly KEYFRAMES_RULE: 7; - readonly KEYFRAME_RULE: 8; - readonly SUPPORTS_RULE: 12; - readonly COUNTER_STYLE_RULE: 11; - readonly FONT_FEATURE_VALUES_RULE: 14; -}; - -/** - * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) - */ -interface CSSRuleList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ - item(index: number): CSSRule | null; - [index: number]: CSSRule; -} - -declare var CSSRuleList: { - prototype: CSSRuleList; - new(): CSSRuleList; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ -interface CSSScale extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ - x: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ - y: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ - z: CSSNumberish; -} - -declare var CSSScale: { - prototype: CSSScale; - new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; -}; - -interface CSSScopeRule extends CSSGroupingRule { - readonly end: string | null; - readonly start: string | null; -} - -declare var CSSScopeRule: { - prototype: CSSScopeRule; - new(): CSSScopeRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ -interface CSSSkew extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ - ax: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ - ay: CSSNumericValue; -} - -declare var CSSSkew: { - prototype: CSSSkew; - new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ -interface CSSSkewX extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ - ax: CSSNumericValue; -} - -declare var CSSSkewX: { - prototype: CSSSkewX; - new(ax: CSSNumericValue): CSSSkewX; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ -interface CSSSkewY extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ - ay: CSSNumericValue; -} - -declare var CSSSkewY: { - prototype: CSSSkewY; - new(ay: CSSNumericValue): CSSSkewY; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ -interface CSSStartingStyleRule extends CSSGroupingRule { -} - -declare var CSSStartingStyleRule: { - prototype: CSSStartingStyleRule; - new(): CSSStartingStyleRule; -}; - -/** - * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) - */ -interface CSSStyleDeclaration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ - accentColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ - alignContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ - alignItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ - alignSelf: string; - alignmentBaseline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ - all: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ - animation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ - animationComposition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ - animationDelay: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ - animationDirection: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ - animationDuration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ - animationFillMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ - animationIterationCount: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ - animationName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ - animationPlayState: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ - animationTimingFunction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ - appearance: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ - aspectRatio: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ - backdropFilter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ - backfaceVisibility: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ - background: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ - backgroundAttachment: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ - backgroundBlendMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ - backgroundClip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ - backgroundColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ - backgroundImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ - backgroundOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ - backgroundPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ - backgroundPositionX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ - backgroundPositionY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ - backgroundRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ - backgroundSize: string; - baselineShift: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ - baselineSource: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ - blockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ - border: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ - borderBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ - borderBlockColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ - borderBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ - borderBlockEndColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ - borderBlockEndStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ - borderBlockEndWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ - borderBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ - borderBlockStartColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ - borderBlockStartStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ - borderBlockStartWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ - borderBlockStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ - borderBlockWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ - borderBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ - borderBottomColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ - borderBottomLeftRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ - borderBottomRightRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ - borderBottomStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ - borderBottomWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ - borderCollapse: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ - borderColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ - borderEndEndRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ - borderEndStartRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ - borderImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ - borderImageOutset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ - borderImageRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ - borderImageSlice: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ - borderImageSource: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ - borderImageWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ - borderInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ - borderInlineColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ - borderInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ - borderInlineEndColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ - borderInlineEndStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ - borderInlineEndWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ - borderInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ - borderInlineStartColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ - borderInlineStartStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ - borderInlineStartWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ - borderInlineStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ - borderInlineWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ - borderLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ - borderLeftColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ - borderLeftStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ - borderLeftWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ - borderRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ - borderRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ - borderRightColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ - borderRightStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ - borderRightWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ - borderSpacing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ - borderStartEndRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ - borderStartStartRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ - borderStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ - borderTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ - borderTopColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ - borderTopLeftRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ - borderTopRightRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ - borderTopStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ - borderTopWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ - borderWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ - bottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ - boxShadow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ - boxSizing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ - breakAfter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ - breakBefore: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ - breakInside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ - captionSide: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ - caretColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ - clear: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) - */ - clip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ - clipPath: string; - clipRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ - color: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ - colorInterpolation: string; - colorInterpolationFilters: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ - colorScheme: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ - columnCount: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ - columnFill: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ - columnGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ - columnRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ - columnRuleColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ - columnRuleStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ - columnRuleWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ - columnSpan: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ - columnWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ - columns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ - contain: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ - containIntrinsicBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ - containIntrinsicHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ - containIntrinsicInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ - containIntrinsicSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ - containIntrinsicWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ - container: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ - containerName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ - containerType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ - content: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ - contentVisibility: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ - counterIncrement: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ - counterReset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ - counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ - cssFloat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ - cssText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ - cursor: string; - cx: string; - cy: string; - d: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ - direction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ - display: string; - dominantBaseline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ - emptyCells: string; - fill: string; - fillOpacity: string; - fillRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ - filter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ - flex: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ - flexBasis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ - flexDirection: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ - flexFlow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ - flexGrow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ - flexShrink: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ - flexWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ - float: string; - floodColor: string; - floodOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ - font: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ - fontFamily: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ - fontFeatureSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ - fontKerning: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ - fontOpticalSizing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ - fontPalette: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ - fontSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ - fontSizeAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ - fontStretch: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ - fontStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ - fontSynthesis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ - fontSynthesisSmallCaps: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ - fontSynthesisStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ - fontSynthesisWeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ - fontVariant: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ - fontVariantAlternates: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ - fontVariantCaps: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ - fontVariantEastAsian: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ - fontVariantLigatures: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ - fontVariantNumeric: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ - fontVariantPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ - fontVariationSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ - fontWeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ - forcedColorAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ - gap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ - grid: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ - gridArea: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ - gridAutoColumns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ - gridAutoFlow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ - gridAutoRows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ - gridColumn: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ - gridColumnEnd: string; - /** @deprecated This is a legacy alias of `columnGap`. */ - gridColumnGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ - gridColumnStart: string; - /** @deprecated This is a legacy alias of `gap`. */ - gridGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ - gridRow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ - gridRowEnd: string; - /** @deprecated This is a legacy alias of `rowGap`. */ - gridRowGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ - gridRowStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ - gridTemplate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ - gridTemplateAreas: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ - gridTemplateColumns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ - gridTemplateRows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ - height: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ - hyphenateCharacter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ - hyphens: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) - */ - imageOrientation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ - imageRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ - inlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ - inset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ - insetBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ - insetBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ - insetBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ - insetInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ - insetInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ - insetInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ - isolation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ - justifyContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ - justifyItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ - justifySelf: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ - left: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ - letterSpacing: string; - lightingColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ - lineBreak: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ - lineHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ - listStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ - listStyleImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ - listStylePosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ - listStyleType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ - margin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ - marginBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ - marginBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ - marginBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ - marginBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ - marginInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ - marginInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ - marginInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ - marginLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ - marginRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ - marginTop: string; - marker: string; - markerEnd: string; - markerMid: string; - markerStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ - mask: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ - maskClip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ - maskComposite: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ - maskImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ - maskMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ - maskOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ - maskPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ - maskRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ - maskSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ - maskType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ - mathDepth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ - mathStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ - maxBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ - maxHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ - maxInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ - maxWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ - minBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ - minHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ - minInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ - minWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ - mixBlendMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ - objectFit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ - objectPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ - offset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ - offsetAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ - offsetDistance: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ - offsetPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ - offsetPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ - offsetRotate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ - opacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ - order: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ - orphans: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ - outline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ - outlineColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ - outlineOffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ - outlineStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ - outlineWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ - overflow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ - overflowAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ - overflowClipMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ - overflowWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ - overflowX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ - overflowY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ - overscrollBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ - overscrollBehaviorBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ - overscrollBehaviorInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ - overscrollBehaviorX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ - overscrollBehaviorY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ - padding: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ - paddingBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ - paddingBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ - paddingBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ - paddingBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ - paddingInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ - paddingInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ - paddingInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ - paddingLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ - paddingRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ - paddingTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ - page: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ - pageBreakAfter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ - pageBreakBefore: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ - pageBreakInside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ - paintOrder: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ - readonly parentRule: CSSRule | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ - perspective: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ - perspectiveOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ - placeContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ - placeItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ - placeSelf: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ - pointerEvents: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ - position: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ - printColorAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ - quotes: string; - r: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ - resize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ - right: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ - rotate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ - rowGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ - rubyPosition: string; - rx: string; - ry: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ - scale: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ - scrollBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ - scrollMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ - scrollMarginBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ - scrollMarginBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ - scrollMarginBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ - scrollMarginBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ - scrollMarginInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ - scrollMarginInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ - scrollMarginInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ - scrollMarginLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ - scrollMarginRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ - scrollMarginTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ - scrollPadding: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ - scrollPaddingBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ - scrollPaddingBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ - scrollPaddingBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ - scrollPaddingBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ - scrollPaddingInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ - scrollPaddingInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ - scrollPaddingInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ - scrollPaddingLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ - scrollPaddingRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ - scrollPaddingTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ - scrollSnapAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ - scrollSnapStop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ - scrollSnapType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ - scrollbarColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ - scrollbarGutter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ - scrollbarWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ - shapeImageThreshold: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ - shapeMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ - shapeOutside: string; - shapeRendering: string; - stopColor: string; - stopOpacity: string; - stroke: string; - strokeDasharray: string; - strokeDashoffset: string; - strokeLinecap: string; - strokeLinejoin: string; - strokeMiterlimit: string; - strokeOpacity: string; - strokeWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ - tabSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ - tableLayout: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ - textAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ - textAlignLast: string; - textAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ - textCombineUpright: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ - textDecoration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ - textDecorationColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ - textDecorationLine: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ - textDecorationSkipInk: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ - textDecorationStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ - textDecorationThickness: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ - textEmphasis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ - textEmphasisColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ - textEmphasisPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ - textEmphasisStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ - textIndent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ - textOrientation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ - textOverflow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ - textRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ - textShadow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ - textTransform: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ - textUnderlineOffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ - textUnderlinePosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ - textWrap: string; - textWrapMode: string; - textWrapStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ - top: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ - touchAction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ - transform: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ - transformBox: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ - transformOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ - transformStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ - transition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ - transitionBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ - transitionDelay: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ - transitionDuration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ - transitionProperty: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ - transitionTimingFunction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ - translate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ - unicodeBidi: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ - userSelect: string; - vectorEffect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ - verticalAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ - visibility: string; - /** - * @deprecated This is a legacy alias of `alignContent`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) - */ - webkitAlignContent: string; - /** - * @deprecated This is a legacy alias of `alignItems`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) - */ - webkitAlignItems: string; - /** - * @deprecated This is a legacy alias of `alignSelf`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) - */ - webkitAlignSelf: string; - /** - * @deprecated This is a legacy alias of `animation`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) - */ - webkitAnimation: string; - /** - * @deprecated This is a legacy alias of `animationDelay`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) - */ - webkitAnimationDelay: string; - /** - * @deprecated This is a legacy alias of `animationDirection`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) - */ - webkitAnimationDirection: string; - /** - * @deprecated This is a legacy alias of `animationDuration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) - */ - webkitAnimationDuration: string; - /** - * @deprecated This is a legacy alias of `animationFillMode`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) - */ - webkitAnimationFillMode: string; - /** - * @deprecated This is a legacy alias of `animationIterationCount`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) - */ - webkitAnimationIterationCount: string; - /** - * @deprecated This is a legacy alias of `animationName`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) - */ - webkitAnimationName: string; - /** - * @deprecated This is a legacy alias of `animationPlayState`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) - */ - webkitAnimationPlayState: string; - /** - * @deprecated This is a legacy alias of `animationTimingFunction`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) - */ - webkitAnimationTimingFunction: string; - /** - * @deprecated This is a legacy alias of `appearance`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) - */ - webkitAppearance: string; - /** - * @deprecated This is a legacy alias of `backfaceVisibility`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) - */ - webkitBackfaceVisibility: string; - /** - * @deprecated This is a legacy alias of `backgroundClip`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) - */ - webkitBackgroundClip: string; - /** - * @deprecated This is a legacy alias of `backgroundOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) - */ - webkitBackgroundOrigin: string; - /** - * @deprecated This is a legacy alias of `backgroundSize`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) - */ - webkitBackgroundSize: string; - /** - * @deprecated This is a legacy alias of `borderBottomLeftRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) - */ - webkitBorderBottomLeftRadius: string; - /** - * @deprecated This is a legacy alias of `borderBottomRightRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) - */ - webkitBorderBottomRightRadius: string; - /** - * @deprecated This is a legacy alias of `borderRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) - */ - webkitBorderRadius: string; - /** - * @deprecated This is a legacy alias of `borderTopLeftRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) - */ - webkitBorderTopLeftRadius: string; - /** - * @deprecated This is a legacy alias of `borderTopRightRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) - */ - webkitBorderTopRightRadius: string; - /** - * @deprecated This is a legacy alias of `boxAlign`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) - */ - webkitBoxAlign: string; - /** - * @deprecated This is a legacy alias of `boxFlex`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) - */ - webkitBoxFlex: string; - /** - * @deprecated This is a legacy alias of `boxOrdinalGroup`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) - */ - webkitBoxOrdinalGroup: string; - /** - * @deprecated This is a legacy alias of `boxOrient`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) - */ - webkitBoxOrient: string; - /** - * @deprecated This is a legacy alias of `boxPack`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) - */ - webkitBoxPack: string; - /** - * @deprecated This is a legacy alias of `boxShadow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) - */ - webkitBoxShadow: string; - /** - * @deprecated This is a legacy alias of `boxSizing`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) - */ - webkitBoxSizing: string; - /** - * @deprecated This is a legacy alias of `filter`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) - */ - webkitFilter: string; - /** - * @deprecated This is a legacy alias of `flex`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) - */ - webkitFlex: string; - /** - * @deprecated This is a legacy alias of `flexBasis`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) - */ - webkitFlexBasis: string; - /** - * @deprecated This is a legacy alias of `flexDirection`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) - */ - webkitFlexDirection: string; - /** - * @deprecated This is a legacy alias of `flexFlow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) - */ - webkitFlexFlow: string; - /** - * @deprecated This is a legacy alias of `flexGrow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) - */ - webkitFlexGrow: string; - /** - * @deprecated This is a legacy alias of `flexShrink`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) - */ - webkitFlexShrink: string; - /** - * @deprecated This is a legacy alias of `flexWrap`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) - */ - webkitFlexWrap: string; - /** - * @deprecated This is a legacy alias of `justifyContent`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) - */ - webkitJustifyContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ - webkitLineClamp: string; - /** - * @deprecated This is a legacy alias of `mask`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) - */ - webkitMask: string; - /** - * @deprecated This is a legacy alias of `maskBorder`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) - */ - webkitMaskBoxImage: string; - /** - * @deprecated This is a legacy alias of `maskBorderOutset`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) - */ - webkitMaskBoxImageOutset: string; - /** - * @deprecated This is a legacy alias of `maskBorderRepeat`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) - */ - webkitMaskBoxImageRepeat: string; - /** - * @deprecated This is a legacy alias of `maskBorderSlice`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) - */ - webkitMaskBoxImageSlice: string; - /** - * @deprecated This is a legacy alias of `maskBorderSource`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) - */ - webkitMaskBoxImageSource: string; - /** - * @deprecated This is a legacy alias of `maskBorderWidth`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) - */ - webkitMaskBoxImageWidth: string; - /** - * @deprecated This is a legacy alias of `maskClip`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) - */ - webkitMaskClip: string; - /** - * @deprecated This is a legacy alias of `maskComposite`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) - */ - webkitMaskComposite: string; - /** - * @deprecated This is a legacy alias of `maskImage`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) - */ - webkitMaskImage: string; - /** - * @deprecated This is a legacy alias of `maskOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) - */ - webkitMaskOrigin: string; - /** - * @deprecated This is a legacy alias of `maskPosition`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) - */ - webkitMaskPosition: string; - /** - * @deprecated This is a legacy alias of `maskRepeat`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) - */ - webkitMaskRepeat: string; - /** - * @deprecated This is a legacy alias of `maskSize`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) - */ - webkitMaskSize: string; - /** - * @deprecated This is a legacy alias of `order`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) - */ - webkitOrder: string; - /** - * @deprecated This is a legacy alias of `perspective`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) - */ - webkitPerspective: string; - /** - * @deprecated This is a legacy alias of `perspectiveOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) - */ - webkitPerspectiveOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ - webkitTextFillColor: string; - /** - * @deprecated This is a legacy alias of `textSizeAdjust`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) - */ - webkitTextSizeAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ - webkitTextStroke: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ - webkitTextStrokeColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ - webkitTextStrokeWidth: string; - /** - * @deprecated This is a legacy alias of `transform`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) - */ - webkitTransform: string; - /** - * @deprecated This is a legacy alias of `transformOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) - */ - webkitTransformOrigin: string; - /** - * @deprecated This is a legacy alias of `transformStyle`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) - */ - webkitTransformStyle: string; - /** - * @deprecated This is a legacy alias of `transition`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) - */ - webkitTransition: string; - /** - * @deprecated This is a legacy alias of `transitionDelay`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) - */ - webkitTransitionDelay: string; - /** - * @deprecated This is a legacy alias of `transitionDuration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) - */ - webkitTransitionDuration: string; - /** - * @deprecated This is a legacy alias of `transitionProperty`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) - */ - webkitTransitionProperty: string; - /** - * @deprecated This is a legacy alias of `transitionTimingFunction`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) - */ - webkitTransitionTimingFunction: string; - /** - * @deprecated This is a legacy alias of `userSelect`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) - */ - webkitUserSelect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ - whiteSpace: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ - whiteSpaceCollapse: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ - widows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ - width: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ - willChange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ - wordBreak: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ - wordSpacing: string; - /** @deprecated */ - wordWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ - writingMode: string; - x: string; - y: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ - zIndex: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ - zoom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ - getPropertyPriority(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ - getPropertyValue(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ - item(index: number): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ - removeProperty(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ - setProperty(property: string, value: string | null, priority?: string): void; - [index: number]: string; -} - -declare var CSSStyleDeclaration: { - prototype: CSSStyleDeclaration; - new(): CSSStyleDeclaration; -}; - -/** - * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) - */ -interface CSSStyleRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ - selectorText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ - readonly style: CSSStyleDeclaration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ - readonly styleMap: StylePropertyMap; -} - -declare var CSSStyleRule: { - prototype: CSSStyleRule; - new(): CSSStyleRule; -}; - -/** - * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) - */ -interface CSSStyleSheet extends StyleSheet { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ - readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ - readonly ownerRule: CSSRule | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) - */ - readonly rules: CSSRuleList; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) - */ - addRule(selector?: string, style?: string, index?: number): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ - deleteRule(index: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ - insertRule(rule: string, index?: number): number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) - */ - removeRule(index?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ - replace(text: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ - replaceSync(text: string): void; -} - -declare var CSSStyleSheet: { - prototype: CSSStyleSheet; - new(options?: CSSStyleSheetInit): CSSStyleSheet; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ -interface CSSStyleValue { - toString(): string; -} - -declare var CSSStyleValue: { - prototype: CSSStyleValue; - new(): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ - parse(property: string, cssText: string): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ - parseAll(property: string, cssText: string): CSSStyleValue[]; -}; - -/** - * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) - */ -interface CSSSupportsRule extends CSSConditionRule { -} - -declare var CSSSupportsRule: { - prototype: CSSSupportsRule; - new(): CSSSupportsRule; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ -interface CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ - is2D: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ - toMatrix(): DOMMatrix; - toString(): string; -} - -declare var CSSTransformComponent: { - prototype: CSSTransformComponent; - new(): CSSTransformComponent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ -interface CSSTransformValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ - readonly is2D: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ - toMatrix(): DOMMatrix; - forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; - [index: number]: CSSTransformComponent; -} - -declare var CSSTransformValue: { - prototype: CSSTransformValue; - new(transforms: CSSTransformComponent[]): CSSTransformValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ -interface CSSTransition extends Animation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ - readonly transitionProperty: string; - addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var CSSTransition: { - prototype: CSSTransition; - new(): CSSTransition; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ -interface CSSTranslate extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ - x: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ - y: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ - z: CSSNumericValue; -} - -declare var CSSTranslate: { - prototype: CSSTranslate; - new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ -interface CSSUnitValue extends CSSNumericValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ - readonly unit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ - value: number; -} - -declare var CSSUnitValue: { - prototype: CSSUnitValue; - new(value: number, unit: string): CSSUnitValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ -interface CSSUnparsedValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ - readonly length: number; - forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; - [index: number]: CSSUnparsedSegment; -} - -declare var CSSUnparsedValue: { - prototype: CSSUnparsedValue; - new(members: CSSUnparsedSegment[]): CSSUnparsedValue; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ -interface CSSVariableReferenceValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ - readonly fallback: CSSUnparsedValue | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ - variable: string; -} - -declare var CSSVariableReferenceValue: { - prototype: CSSVariableReferenceValue; - new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; -}; - -/** - * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) - */ -interface Cache { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ - add(request: RequestInfo | URL): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ - addAll(requests: RequestInfo[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ - delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ - keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ - match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ - matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ - put(request: RequestInfo | URL, response: Response): Promise; -} - -declare var Cache: { - prototype: Cache; - new(): Cache; -}; - -/** - * The storage for Cache objects. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) - */ -interface CacheStorage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ - delete(cacheName: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ - has(cacheName: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ - keys(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ - match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ - open(cacheName: string): Promise; -} - -declare var CacheStorage: { - prototype: CacheStorage; - new(): CacheStorage; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ -interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ - readonly canvas: HTMLCanvasElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ - requestFrame(): void; - addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var CanvasCaptureMediaStreamTrack: { - prototype: CanvasCaptureMediaStreamTrack; - new(): CanvasCaptureMediaStreamTrack; -}; - -interface CanvasCompositing { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ - globalAlpha: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ - globalCompositeOperation: GlobalCompositeOperation; -} - -interface CanvasDrawImage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ - drawImage(image: CanvasImageSource, dx: number, dy: number): void; - drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; - drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; -} - -interface CanvasDrawPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ - beginPath(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ - clip(fillRule?: CanvasFillRule): void; - clip(path: Path2D, fillRule?: CanvasFillRule): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ - fill(fillRule?: CanvasFillRule): void; - fill(path: Path2D, fillRule?: CanvasFillRule): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ - isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; - isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ - isPointInStroke(x: number, y: number): boolean; - isPointInStroke(path: Path2D, x: number, y: number): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ - stroke(): void; - stroke(path: Path2D): void; -} - -interface CanvasFillStrokeStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ - fillStyle: string | CanvasGradient | CanvasPattern; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ - strokeStyle: string | CanvasGradient | CanvasPattern; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ - createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ - createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ - createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ - createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; -} - -interface CanvasFilters { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ - filter: string; -} - -/** - * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) - */ -interface CanvasGradient { - /** - * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. - * - * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) - */ - addColorStop(offset: number, color: string): void; -} - -declare var CanvasGradient: { - prototype: CanvasGradient; - new(): CanvasGradient; -}; - -interface CanvasImageData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ - createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - createImageData(imagedata: ImageData): ImageData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ - getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ - putImageData(imagedata: ImageData, dx: number, dy: number): void; - putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; -} - -interface CanvasImageSmoothing { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ - imageSmoothingEnabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ - imageSmoothingQuality: ImageSmoothingQuality; -} - -interface CanvasPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ - arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ - arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ - bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ - closePath(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ - ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ - lineTo(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ - moveTo(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ - quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ - rect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; -} - -interface CanvasPathDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ - lineCap: CanvasLineCap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ - lineDashOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ - lineJoin: CanvasLineJoin; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ - lineWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ - miterLimit: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ - getLineDash(): number[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: number[]): void; -} - -/** - * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) - */ -interface CanvasPattern { - /** - * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) - */ - setTransform(transform?: DOMMatrix2DInit): void; -} - -declare var CanvasPattern: { - prototype: CanvasPattern; - new(): CanvasPattern; -}; - -interface CanvasRect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ - clearRect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ - fillRect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ - strokeRect(x: number, y: number, w: number, h: number): void; -} - -/** - * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) - */ -interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ - readonly canvas: HTMLCanvasElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ - getContextAttributes(): CanvasRenderingContext2DSettings; -} - -declare var CanvasRenderingContext2D: { - prototype: CanvasRenderingContext2D; - new(): CanvasRenderingContext2D; -}; - -interface CanvasShadowStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ - shadowBlur: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ - shadowColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ - shadowOffsetX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ - shadowOffsetY: number; -} - -interface CanvasState { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ - reset(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ - restore(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ - save(): void; -} - -interface CanvasText { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ - fillText(text: string, x: number, y: number, maxWidth?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ - measureText(text: string): TextMetrics; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ - strokeText(text: string, x: number, y: number, maxWidth?: number): void; -} - -interface CanvasTextDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ - direction: CanvasDirection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ - font: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ - fontKerning: CanvasFontKerning; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ - fontStretch: CanvasFontStretch; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ - fontVariantCaps: CanvasFontVariantCaps; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ - letterSpacing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ - textAlign: CanvasTextAlign; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ - textBaseline: CanvasTextBaseline; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ - textRendering: CanvasTextRendering; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ - wordSpacing: string; -} - -interface CanvasTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ - getTransform(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ - resetTransform(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ - rotate(angle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ - scale(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ - setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; - setTransform(transform?: DOMMatrix2DInit): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ - transform(a: number, b: number, c: number, d: number, e: number, f: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ - translate(x: number, y: number): void; -} - -interface CanvasUserInterface { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ - drawFocusIfNeeded(element: Element): void; - drawFocusIfNeeded(path: Path2D, element: Element): void; -} - -/** - * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) - */ -interface ChannelMergerNode extends AudioNode { -} - -declare var ChannelMergerNode: { - prototype: ChannelMergerNode; - new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; -}; - -/** - * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) - */ -interface ChannelSplitterNode extends AudioNode { -} - -declare var ChannelSplitterNode: { - prototype: ChannelSplitterNode; - new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; -}; - -/** - * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) - */ -interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ - data: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ - readonly length: number; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ - appendData(data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ - deleteData(offset: number, count: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ - insertData(offset: number, data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ - replaceData(offset: number, count: number, data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ - substringData(offset: number, count: number): string; -} - -declare var CharacterData: { - prototype: CharacterData; - new(): CharacterData; -}; - -interface ChildNode extends Node { - /** - * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - */ - after(...nodes: (Node | string)[]): void; - /** - * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - */ - before(...nodes: (Node | string)[]): void; - /** - * Removes node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - */ - remove(): void; - /** - * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - */ - replaceWith(...nodes: (Node | string)[]): void; -} - -/** @deprecated */ -interface ClientRect extends DOMRect { -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) - */ -interface Clipboard extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ - read(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ - readText(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ - write(data: ClipboardItems): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ - writeText(data: string): Promise; -} - -declare var Clipboard: { - prototype: Clipboard; - new(): Clipboard; -}; - -/** - * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) - */ -interface ClipboardEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ - readonly clipboardData: DataTransfer | null; -} - -declare var ClipboardEvent: { - prototype: ClipboardEvent; - new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) - */ -interface ClipboardItem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ - readonly types: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ - getType(type: string): Promise; -} - -declare var ClipboardItem: { - prototype: ClipboardItem; - new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; -}; - -/** - * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) - */ -interface CloseEvent extends Event { - /** - * Returns the WebSocket connection close code provided by the server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) - */ - readonly code: number; - /** - * Returns the WebSocket connection close reason provided by the server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) - */ - readonly reason: string; - /** - * Returns true if the connection closed cleanly; false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) - */ - readonly wasClean: boolean; -} - -declare var CloseEvent: { - prototype: CloseEvent; - new(type: string, eventInitDict?: CloseEventInit): CloseEvent; -}; - -/** - * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) - */ -interface Comment extends CharacterData { -} - -declare var Comment: { - prototype: Comment; - new(data?: string): Comment; -}; - -/** - * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) - */ -interface CompositionEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ - readonly data: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) - */ - initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; -} - -declare var CompositionEvent: { - prototype: CompositionEvent; - new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ -interface CompressionStream extends GenericTransformStream { -} - -declare var CompressionStream: { - prototype: CompressionStream; - new(format: CompressionFormat): CompressionStream; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ -interface ConstantSourceNode extends AudioScheduledSourceNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ - readonly offset: AudioParam; - addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var ConstantSourceNode: { - prototype: ConstantSourceNode; - new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ -interface ContentVisibilityAutoStateChangeEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ - readonly skipped: boolean; -} - -declare var ContentVisibilityAutoStateChangeEvent: { - prototype: ContentVisibilityAutoStateChangeEvent; - new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent; -}; - -/** - * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) - */ -interface ConvolverNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ - buffer: AudioBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ - normalize: boolean; -} - -declare var ConvolverNode: { - prototype: ConvolverNode; - new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; -}; - -/** - * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) - */ -interface CountQueuingStrategy extends QueuingStrategy { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ - readonly highWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ - readonly size: QueuingStrategySize; -} - -declare var CountQueuingStrategy: { - prototype: CountQueuingStrategy; - new(init: QueuingStrategyInit): CountQueuingStrategy; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) - */ -interface Credential { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ - readonly type: string; -} - -declare var Credential: { - prototype: Credential; - new(): Credential; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) - */ -interface CredentialsContainer { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ - create(options?: CredentialCreationOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ - get(options?: CredentialRequestOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ - preventSilentAccess(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ - store(credential: Credential): Promise; -} - -declare var CredentialsContainer: { - prototype: CredentialsContainer; - new(): CredentialsContainer; -}; - -/** - * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) - */ -interface Crypto { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) - */ - readonly subtle: SubtleCrypto; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ - getRandomValues(array: T): T; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) - */ - randomUUID(): `${string}-${string}-${string}-${string}-${string}`; -} - -declare var Crypto: { - prototype: Crypto; - new(): Crypto; -}; - -/** - * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) - */ -interface CryptoKey { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ - readonly algorithm: KeyAlgorithm; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ - readonly extractable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ - readonly type: KeyType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ - readonly usages: KeyUsage[]; -} - -declare var CryptoKey: { - prototype: CryptoKey; - new(): CryptoKey; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ -interface CustomElementRegistry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ - define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ - get(name: string): CustomElementConstructor | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ - getName(constructor: CustomElementConstructor): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ - upgrade(root: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ - whenDefined(name: string): Promise; -} - -declare var CustomElementRegistry: { - prototype: CustomElementRegistry; - new(): CustomElementRegistry; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ -interface CustomEvent extends Event { - /** - * Returns any custom data event was created with. Typically used for synthetic events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) - */ - readonly detail: T; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) - */ - initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; -} - -declare var CustomEvent: { - prototype: CustomEvent; - new(type: string, eventInitDict?: CustomEventInit): CustomEvent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ -interface CustomStateSet { - forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; -} - -declare var CustomStateSet: { - prototype: CustomStateSet; - new(): CustomStateSet; -}; - -/** - * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) - */ -interface DOMException extends Error { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) - */ - readonly code: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ - readonly message: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ - readonly name: string; - readonly INDEX_SIZE_ERR: 1; - readonly DOMSTRING_SIZE_ERR: 2; - readonly HIERARCHY_REQUEST_ERR: 3; - readonly WRONG_DOCUMENT_ERR: 4; - readonly INVALID_CHARACTER_ERR: 5; - readonly NO_DATA_ALLOWED_ERR: 6; - readonly NO_MODIFICATION_ALLOWED_ERR: 7; - readonly NOT_FOUND_ERR: 8; - readonly NOT_SUPPORTED_ERR: 9; - readonly INUSE_ATTRIBUTE_ERR: 10; - readonly INVALID_STATE_ERR: 11; - readonly SYNTAX_ERR: 12; - readonly INVALID_MODIFICATION_ERR: 13; - readonly NAMESPACE_ERR: 14; - readonly INVALID_ACCESS_ERR: 15; - readonly VALIDATION_ERR: 16; - readonly TYPE_MISMATCH_ERR: 17; - readonly SECURITY_ERR: 18; - readonly NETWORK_ERR: 19; - readonly ABORT_ERR: 20; - readonly URL_MISMATCH_ERR: 21; - readonly QUOTA_EXCEEDED_ERR: 22; - readonly TIMEOUT_ERR: 23; - readonly INVALID_NODE_TYPE_ERR: 24; - readonly DATA_CLONE_ERR: 25; -} - -declare var DOMException: { - prototype: DOMException; - new(message?: string, name?: string): DOMException; - readonly INDEX_SIZE_ERR: 1; - readonly DOMSTRING_SIZE_ERR: 2; - readonly HIERARCHY_REQUEST_ERR: 3; - readonly WRONG_DOCUMENT_ERR: 4; - readonly INVALID_CHARACTER_ERR: 5; - readonly NO_DATA_ALLOWED_ERR: 6; - readonly NO_MODIFICATION_ALLOWED_ERR: 7; - readonly NOT_FOUND_ERR: 8; - readonly NOT_SUPPORTED_ERR: 9; - readonly INUSE_ATTRIBUTE_ERR: 10; - readonly INVALID_STATE_ERR: 11; - readonly SYNTAX_ERR: 12; - readonly INVALID_MODIFICATION_ERR: 13; - readonly NAMESPACE_ERR: 14; - readonly INVALID_ACCESS_ERR: 15; - readonly VALIDATION_ERR: 16; - readonly TYPE_MISMATCH_ERR: 17; - readonly SECURITY_ERR: 18; - readonly NETWORK_ERR: 19; - readonly ABORT_ERR: 20; - readonly URL_MISMATCH_ERR: 21; - readonly QUOTA_EXCEEDED_ERR: 22; - readonly TIMEOUT_ERR: 23; - readonly INVALID_NODE_TYPE_ERR: 24; - readonly DATA_CLONE_ERR: 25; -}; - -/** - * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) - */ -interface DOMImplementation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ - createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ - createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ - createHTMLDocument(title?: string): Document; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) - */ - hasFeature(...args: any[]): true; -} - -declare var DOMImplementation: { - prototype: DOMImplementation; - new(): DOMImplementation; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ -interface DOMMatrix extends DOMMatrixReadOnly { - a: number; - b: number; - c: number; - d: number; - e: number; - f: number; - m11: number; - m12: number; - m13: number; - m14: number; - m21: number; - m22: number; - m23: number; - m24: number; - m31: number; - m32: number; - m33: number; - m34: number; - m41: number; - m42: number; - m43: number; - m44: number; - invertSelf(): DOMMatrix; - multiplySelf(other?: DOMMatrixInit): DOMMatrix; - preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; - rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; - rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; - rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ - scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ - scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - setMatrixValue(transformList: string): DOMMatrix; - skewXSelf(sx?: number): DOMMatrix; - skewYSelf(sy?: number): DOMMatrix; - translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; -} - -declare var DOMMatrix: { - prototype: DOMMatrix; - new(init?: string | number[]): DOMMatrix; - fromFloat32Array(array32: Float32Array): DOMMatrix; - fromFloat64Array(array64: Float64Array): DOMMatrix; - fromMatrix(other?: DOMMatrixInit): DOMMatrix; -}; - -type SVGMatrix = DOMMatrix; -declare var SVGMatrix: typeof DOMMatrix; - -type WebKitCSSMatrix = DOMMatrix; -declare var WebKitCSSMatrix: typeof DOMMatrix; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ -interface DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ - readonly a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ - readonly b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ - readonly c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ - readonly d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ - readonly e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ - readonly f: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ - readonly is2D: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ - readonly isIdentity: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ - readonly m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ - readonly m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ - readonly m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ - readonly m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ - readonly m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ - readonly m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ - readonly m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ - readonly m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ - readonly m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ - readonly m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ - readonly m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ - readonly m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ - readonly m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ - readonly m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ - readonly m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ - readonly m44: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ - flipX(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ - flipY(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ - inverse(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ - multiply(other?: DOMMatrixInit): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ - rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ - rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ - rotateFromVector(x?: number, y?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ - scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ - scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) - */ - scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ - skewX(sx?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ - skewY(sy?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ - toFloat32Array(): Float32Array; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ - toFloat64Array(): Float64Array; - toJSON(): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ - transformPoint(point?: DOMPointInit): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ - translate(tx?: number, ty?: number, tz?: number): DOMMatrix; - toString(): string; -} - -declare var DOMMatrixReadOnly: { - prototype: DOMMatrixReadOnly; - new(init?: string | number[]): DOMMatrixReadOnly; - fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; - fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; - fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; -}; - -/** - * Provides the ability to parse XML or HTML source code from a string into a DOM Document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) - */ -interface DOMParser { - /** - * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). - * - * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. - * - * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. - * - * Values other than the above for type will cause a TypeError exception to be thrown. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) - */ - parseFromString(string: string, type: DOMParserSupportedType): Document; -} - -declare var DOMParser: { - prototype: DOMParser; - new(): DOMParser; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ -interface DOMPoint extends DOMPointReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ - w: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ - x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ - y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ - z: number; -} - -declare var DOMPoint: { - prototype: DOMPoint; - new(x?: number, y?: number, z?: number, w?: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ - fromPoint(other?: DOMPointInit): DOMPoint; -}; - -type SVGPoint = DOMPoint; -declare var SVGPoint: typeof DOMPoint; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ -interface DOMPointReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ - readonly w: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ - readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ - readonly z: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ - matrixTransform(matrix?: DOMMatrixInit): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; -} - -declare var DOMPointReadOnly: { - prototype: DOMPointReadOnly; - new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ - fromPoint(other?: DOMPointInit): DOMPointReadOnly; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ -interface DOMQuad { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ - readonly p1: DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ - readonly p2: DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ - readonly p3: DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ - readonly p4: DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ - getBounds(): DOMRect; - toJSON(): any; -} - -declare var DOMQuad: { - prototype: DOMQuad; - new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; - fromQuad(other?: DOMQuadInit): DOMQuad; - fromRect(other?: DOMRectInit): DOMQuad; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ -interface DOMRect extends DOMRectReadOnly { - height: number; - width: number; - x: number; - y: number; -} - -declare var DOMRect: { - prototype: DOMRect; - new(x?: number, y?: number, width?: number, height?: number): DOMRect; - fromRect(other?: DOMRectInit): DOMRect; -}; - -type SVGRect = DOMRect; -declare var SVGRect: typeof DOMRect; - -interface DOMRectList { - readonly length: number; - item(index: number): DOMRect | null; - [index: number]: DOMRect; -} - -declare var DOMRectList: { - prototype: DOMRectList; - new(): DOMRectList; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ -interface DOMRectReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ - readonly bottom: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ - readonly left: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ - readonly right: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ - readonly top: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ - readonly width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ - readonly y: number; - toJSON(): any; -} - -declare var DOMRectReadOnly: { - prototype: DOMRectReadOnly; - new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ - fromRect(other?: DOMRectInit): DOMRectReadOnly; -}; - -/** - * A type returned by some APIs which contains a list of DOMString (strings). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) - */ -interface DOMStringList { - /** - * Returns the number of strings in strings. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) - */ - readonly length: number; - /** - * Returns true if strings contains string, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) - */ - contains(string: string): boolean; - /** - * Returns the string with index index from strings. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) - */ - item(index: number): string | null; - [index: number]: string; -} - -declare var DOMStringList: { - prototype: DOMStringList; - new(): DOMStringList; -}; - -/** - * Used by the dataset HTML attribute to represent data for custom attributes added to elements. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) - */ -interface DOMStringMap { - [name: string]: string | undefined; -} - -declare var DOMStringMap: { - prototype: DOMStringMap; - new(): DOMStringMap; -}; - -/** - * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) - */ -interface DOMTokenList { - /** - * Returns the number of tokens. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) - */ - readonly length: number; - /** - * Returns the associated set as string. - * - * Can be set, to change the associated attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) - */ - value: string; - toString(): string; - /** - * Adds all arguments passed, except those already present. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) - */ - add(...tokens: string[]): void; - /** - * Returns true if token is present, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) - */ - contains(token: string): boolean; - /** - * Returns the token with index index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) - */ - item(index: number): string | null; - /** - * Removes arguments passed, if they are present. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) - */ - remove(...tokens: string[]): void; - /** - * Replaces token with newToken. - * - * Returns true if token was replaced with newToken, and false otherwise. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) - */ - replace(token: string, newToken: string): boolean; - /** - * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. - * - * Throws a TypeError if the associated attribute has no supported tokens defined. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) - */ - supports(token: string): boolean; - /** - * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). - * - * Returns true if token is now present, and false otherwise. - * - * Throws a "SyntaxError" DOMException if token is empty. - * - * Throws an "InvalidCharacterError" DOMException if token contains any spaces. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) - */ - toggle(token: string, force?: boolean): boolean; - forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; - [index: number]: string; -} - -declare var DOMTokenList: { - prototype: DOMTokenList; - new(): DOMTokenList; -}; - -/** - * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) - */ -interface DataTransfer { - /** - * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. - * - * Can be set, to change the selected operation. - * - * The possible values are "none", "copy", "link", and "move". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) - */ - dropEffect: "none" | "copy" | "link" | "move"; - /** - * Returns the kinds of operations that are to be allowed. - * - * Can be set (during the dragstart event), to change the allowed operations. - * - * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) - */ - effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; - /** - * Returns a FileList of the files being dragged, if any. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) - */ - readonly files: FileList; - /** - * Returns a DataTransferItemList object, with the drag data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) - */ - readonly items: DataTransferItemList; - /** - * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) - */ - readonly types: ReadonlyArray; - /** - * Removes the data of the specified formats. Removes all data if the argument is omitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) - */ - clearData(format?: string): void; - /** - * Returns the specified data. If there is no such data, returns the empty string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) - */ - getData(format: string): string; - /** - * Adds the specified data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) - */ - setData(format: string, data: string): void; - /** - * Uses the given element to update the drag feedback, replacing any previously specified feedback. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) - */ - setDragImage(image: Element, x: number, y: number): void; -} - -declare var DataTransfer: { - prototype: DataTransfer; - new(): DataTransfer; -}; - -/** - * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) - */ -interface DataTransferItem { - /** - * Returns the drag data item kind, one of: "string", "file". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) - */ - readonly kind: string; - /** - * Returns the drag data item type string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) - */ - readonly type: string; - /** - * Returns a File object, if the drag data item kind is File. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) - */ - getAsFile(): File | null; - /** - * Invokes the callback with the string data as the argument, if the drag data item kind is text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) - */ - getAsString(callback: FunctionStringCallback | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ - webkitGetAsEntry(): FileSystemEntry | null; -} - -declare var DataTransferItem: { - prototype: DataTransferItem; - new(): DataTransferItem; -}; - -/** - * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) - */ -interface DataTransferItemList { - /** - * Returns the number of items in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) - */ - readonly length: number; - /** - * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) - */ - add(data: string, type: string): DataTransferItem | null; - add(data: File): DataTransferItem | null; - /** - * Removes all the entries in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) - */ - clear(): void; - /** - * Removes the indexth entry in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) - */ - remove(index: number): void; - [index: number]: DataTransferItem; -} - -declare var DataTransferItemList: { - prototype: DataTransferItemList; - new(): DataTransferItemList; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ -interface DecompressionStream extends GenericTransformStream { -} - -declare var DecompressionStream: { - prototype: DecompressionStream; - new(format: CompressionFormat): DecompressionStream; -}; - -/** - * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) - */ -interface DelayNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ - readonly delayTime: AudioParam; -} - -declare var DelayNode: { - prototype: DelayNode; - new(context: BaseAudioContext, options?: DelayOptions): DelayNode; -}; - -/** - * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) - */ -interface DeviceMotionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ - readonly acceleration: DeviceMotionEventAcceleration | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ - readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ - readonly interval: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ - readonly rotationRate: DeviceMotionEventRotationRate | null; -} - -declare var DeviceMotionEvent: { - prototype: DeviceMotionEvent; - new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) - */ -interface DeviceMotionEventAcceleration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ - readonly x: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ - readonly y: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ - readonly z: number | null; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) - */ -interface DeviceMotionEventRotationRate { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ - readonly alpha: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ - readonly beta: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ - readonly gamma: number | null; -} - -/** - * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) - */ -interface DeviceOrientationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ - readonly absolute: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ - readonly alpha: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ - readonly beta: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ - readonly gamma: number | null; -} - -declare var DeviceOrientationEvent: { - prototype: DeviceOrientationEvent; - new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; -}; - -interface DocumentEventMap extends GlobalEventHandlersEventMap { - "DOMContentLoaded": Event; - "fullscreenchange": Event; - "fullscreenerror": Event; - "pointerlockchange": Event; - "pointerlockerror": Event; - "readystatechange": Event; - "visibilitychange": Event; -} - -/** - * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) - */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { - /** - * Sets or gets the URL for the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) - */ - readonly URL: string; - /** - * Sets or gets the color of all active links in the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) - */ - alinkColor: string; - /** - * Returns a reference to the collection of elements contained by the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) - */ - readonly all: HTMLAllCollection; - /** - * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) - */ - readonly anchors: HTMLCollectionOf; - /** - * Retrieves a collection of all applet objects in the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) - */ - readonly applets: HTMLCollection; - /** - * Deprecated. Sets or retrieves a value that indicates the background color behind the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) - */ - bgColor: string; - /** - * Specifies the beginning and end of the document body. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) - */ - body: HTMLElement; - /** - * Returns document's encoding. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly characterSet: string; - /** - * Gets or sets the character set used to encode the object. - * @deprecated This is a legacy alias of `characterSet`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly charset: string; - /** - * Gets a value that indicates whether standards-compliant mode is switched on for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) - */ - readonly compatMode: string; - /** - * Returns document's content type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) - */ - readonly contentType: string; - /** - * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. - * - * Can be set, to add a new cookie to the element's set of HTTP cookies. - * - * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) - */ - cookie: string; - /** - * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. - * - * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) - */ - readonly currentScript: HTMLOrSVGScriptElement | null; - /** - * Returns the Window object of the active document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) - */ - readonly defaultView: (WindowProxy & typeof globalThis) | null; - /** - * Sets or gets a value that indicates whether the document can be edited. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) - */ - designMode: string; - /** - * Sets or retrieves a value that indicates the reading order of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) - */ - dir: string; - /** - * Gets an object representing the document type declaration associated with the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) - */ - readonly doctype: DocumentType | null; - /** - * Gets a reference to the root node of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) - */ - readonly documentElement: HTMLElement; - /** - * Returns document's URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) - */ - readonly documentURI: string; - /** - * Sets or gets the security domain of the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) - */ - domain: string; - /** - * Retrieves a collection of all embed objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) - */ - readonly embeds: HTMLCollectionOf; - /** - * Sets or gets the foreground (text) color of the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) - */ - fgColor: string; - /** - * Retrieves a collection, in source order, of all form objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) - */ - readonly forms: HTMLCollectionOf; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) - */ - readonly fullscreen: boolean; - /** - * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) - */ - readonly fullscreenEnabled: boolean; - /** - * Returns the head element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) - */ - readonly head: HTMLHeadElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ - readonly hidden: boolean; - /** - * Retrieves a collection, in source order, of img objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) - */ - readonly images: HTMLCollectionOf; - /** - * Gets the implementation object of the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) - */ - readonly implementation: DOMImplementation; - /** - * Returns the character encoding used to create the webpage that is loaded into the document object. - * @deprecated This is a legacy alias of `characterSet`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly inputEncoding: string; - /** - * Gets the date that the page was last modified, if the page supplies one. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) - */ - readonly lastModified: string; - /** - * Sets or gets the color of the document links. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) - */ - linkColor: string; - /** - * Retrieves a collection of all a objects that specify the href property and all area objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) - */ - readonly links: HTMLCollectionOf; - /** - * Contains information about the current URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) - */ - get location(): Location; - set location(href: string | Location); - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ - onfullscreenchange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ - onfullscreenerror: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ - onpointerlockchange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ - onpointerlockerror: ((this: Document, ev: Event) => any) | null; - /** - * Fires when the state of the object has changed. - * @param ev The event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) - */ - onreadystatechange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ - onvisibilitychange: ((this: Document, ev: Event) => any) | null; - readonly ownerDocument: null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ - readonly pictureInPictureEnabled: boolean; - /** - * Return an HTMLCollection of the embed elements in the Document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) - */ - readonly plugins: HTMLCollectionOf; - /** - * Retrieves a value that indicates the current state of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) - */ - readonly readyState: DocumentReadyState; - /** - * Gets the URL of the location that referred the user to the current page. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) - */ - readonly referrer: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) - */ - readonly rootElement: SVGSVGElement | null; - /** - * Retrieves a collection of all script objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) - */ - readonly scripts: HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ - readonly scrollingElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ - readonly timeline: DocumentTimeline; - /** - * Contains the title of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) - */ - title: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ - readonly visibilityState: DocumentVisibilityState; - /** - * Sets or gets the color of the links that the user has visited. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) - */ - vlinkColor: string; - /** - * Moves node from another document and returns it. - * - * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) - */ - adoptNode(node: T): T; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) - */ - captureEvents(): void; - /** @deprecated */ - caretRangeFromPoint(x: number, y: number): Range | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) - */ - clear(): void; - /** - * Closes an output stream and forces the sent data to display. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) - */ - close(): void; - /** - * Creates an attribute object with a specified name. - * @param name String that sets the attribute object's name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) - */ - createAttribute(localName: string): Attr; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ - createAttributeNS(namespace: string | null, qualifiedName: string): Attr; - /** - * Returns a CDATASection node whose data is data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) - */ - createCDATASection(data: string): CDATASection; - /** - * Creates a comment object with the specified data. - * @param data Sets the comment object's data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) - */ - createComment(data: string): Comment; - /** - * Creates a new document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) - */ - createDocumentFragment(): DocumentFragment; - /** - * Creates an instance of the element for the specified tag. - * @param tagName The name of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) - */ - createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; - /** @deprecated */ - createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; - createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; - /** - * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. - * - * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. - * - * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: - * - * localName does not match the QName production. - * Namespace prefix is not null and namespace is the empty string. - * Namespace prefix is "xml" and namespace is not the XML namespace. - * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. - * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". - * - * When supplied, options's is can be used to create a customized built-in element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) - */ - createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; - createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; - createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; - createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; - createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ - createEvent(eventInterface: "AnimationEvent"): AnimationEvent; - createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; - createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; - createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; - createEvent(eventInterface: "BlobEvent"): BlobEvent; - createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; - createEvent(eventInterface: "CloseEvent"): CloseEvent; - createEvent(eventInterface: "CompositionEvent"): CompositionEvent; - createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; - createEvent(eventInterface: "CustomEvent"): CustomEvent; - createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; - createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; - createEvent(eventInterface: "DragEvent"): DragEvent; - createEvent(eventInterface: "ErrorEvent"): ErrorEvent; - createEvent(eventInterface: "Event"): Event; - createEvent(eventInterface: "Events"): Event; - createEvent(eventInterface: "FocusEvent"): FocusEvent; - createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; - createEvent(eventInterface: "FormDataEvent"): FormDataEvent; - createEvent(eventInterface: "GamepadEvent"): GamepadEvent; - createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; - createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; - createEvent(eventInterface: "InputEvent"): InputEvent; - createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; - createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; - createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; - createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; - createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; - createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; - createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; - createEvent(eventInterface: "MessageEvent"): MessageEvent; - createEvent(eventInterface: "MouseEvent"): MouseEvent; - createEvent(eventInterface: "MouseEvents"): MouseEvent; - createEvent(eventInterface: "MutationEvent"): MutationEvent; - createEvent(eventInterface: "MutationEvents"): MutationEvent; - createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; - createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; - createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; - createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; - createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; - createEvent(eventInterface: "PointerEvent"): PointerEvent; - createEvent(eventInterface: "PopStateEvent"): PopStateEvent; - createEvent(eventInterface: "ProgressEvent"): ProgressEvent; - createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; - createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; - createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; - createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; - createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; - createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; - createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; - createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; - createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; - createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; - createEvent(eventInterface: "StorageEvent"): StorageEvent; - createEvent(eventInterface: "SubmitEvent"): SubmitEvent; - createEvent(eventInterface: "ToggleEvent"): ToggleEvent; - createEvent(eventInterface: "TouchEvent"): TouchEvent; - createEvent(eventInterface: "TrackEvent"): TrackEvent; - createEvent(eventInterface: "TransitionEvent"): TransitionEvent; - createEvent(eventInterface: "UIEvent"): UIEvent; - createEvent(eventInterface: "UIEvents"): UIEvent; - createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; - createEvent(eventInterface: "WheelEvent"): WheelEvent; - createEvent(eventInterface: string): Event; - /** - * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list - * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) - */ - createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; - /** - * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) - */ - createProcessingInstruction(target: string, data: string): ProcessingInstruction; - /** - * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) - */ - createRange(): Range; - /** - * Creates a text string from the specified value. - * @param data String that specifies the nodeValue property of the text node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) - */ - createTextNode(data: string): Text; - /** - * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. - * @param filter A custom NodeFilter function to use. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) - */ - createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; - /** - * Executes a command on the current document, current selection, or the given range. - * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. - * @param showUI Display the user interface, defaults to false. - * @param value Value to assign. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) - */ - execCommand(commandId: string, showUI?: boolean, value?: string): boolean; - /** - * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) - */ - exitFullscreen(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ - exitPictureInPicture(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ - exitPointerLock(): void; - /** - * Returns a reference to the first object with the specified value of the ID attribute. - * @param elementId String that specifies the ID value. - */ - getElementById(elementId: string): HTMLElement | null; - /** - * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) - */ - getElementsByClassName(classNames: string): HTMLCollectionOf; - /** - * Gets a collection of objects based on the value of the NAME or ID attribute. - * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) - */ - getElementsByName(elementName: string): NodeListOf; - /** - * Retrieves a collection of objects based on the specified element name. - * @param name Specifies the name of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) - */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - /** @deprecated */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: string): HTMLCollectionOf; - /** - * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. - * - * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. - * - * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. - * - * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) - */ - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; - /** - * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) - */ - getSelection(): Selection | null; - /** - * Gets a value indicating whether the object currently has focus. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) - */ - hasFocus(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ - hasStorageAccess(): Promise; - /** - * Returns a copy of node. If deep is true, the copy also includes the node's descendants. - * - * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) - */ - importNode(node: T, deep?: boolean): T; - /** - * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. - * @param url Specifies a MIME type for the document. - * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. - * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. - * @param replace Specifies whether the existing entry for the document is replaced in the history list. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) - */ - open(unused1?: string, unused2?: string): Document; - open(url: string | URL, name: string, features: string): WindowProxy | null; - /** - * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. - * @param commandId Specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) - */ - queryCommandEnabled(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. - * @param commandId String that specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) - */ - queryCommandIndeterm(commandId: string): boolean; - /** - * Returns a Boolean value that indicates the current state of the command. - * @param commandId String that specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) - */ - queryCommandState(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the current command is supported on the current range. - * @param commandId Specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) - */ - queryCommandSupported(commandId: string): boolean; - /** - * Returns the current value of the document, range, or current selection for the given command. - * @param commandId String that specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) - */ - queryCommandValue(commandId: string): string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) - */ - releaseEvents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ - requestStorageAccess(): Promise; - /** - * Writes one or more HTML expressions to a document in the specified window. - * @param content Specifies the text and HTML tags to write. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) - */ - write(...text: string[]): void; - /** - * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. - * @param content The text and HTML tags to write. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) - */ - writeln(...text: string[]): void; - addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var Document: { - prototype: Document; - new(): Document; - parseHTMLUnsafe(html: string): Document; -}; - -/** - * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) - */ -interface DocumentFragment extends Node, NonElementParentNode, ParentNode { - readonly ownerDocument: Document; - getElementById(elementId: string): HTMLElement | null; -} - -declare var DocumentFragment: { - prototype: DocumentFragment; - new(): DocumentFragment; -}; - -interface DocumentOrShadowRoot { - /** - * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. - * - * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. - * - * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) - */ - readonly activeElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ - adoptedStyleSheets: CSSStyleSheet[]; - /** - * Returns document's fullscreen element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) - */ - readonly fullscreenElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ - readonly pictureInPictureElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ - readonly pointerLockElement: Element | null; - /** - * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) - */ - readonly styleSheets: StyleSheetList; - /** - * Returns the element for the specified x coordinate and the specified y coordinate. - * @param x The x-offset - * @param y The y-offset - */ - elementFromPoint(x: number, y: number): Element | null; - elementsFromPoint(x: number, y: number): Element[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ - getAnimations(): Animation[]; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ -interface DocumentTimeline extends AnimationTimeline { -} - -declare var DocumentTimeline: { - prototype: DocumentTimeline; - new(options?: DocumentTimelineOptions): DocumentTimeline; -}; - -/** - * A Node containing a doctype. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) - */ -interface DocumentType extends Node, ChildNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ - readonly name: string; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ - readonly publicId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ - readonly systemId: string; -} - -declare var DocumentType: { - prototype: DocumentType; - new(): DocumentType; -}; - -/** - * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) - */ -interface DragEvent extends MouseEvent { - /** - * Returns the DataTransfer object for the event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) - */ - readonly dataTransfer: DataTransfer | null; -} - -declare var DragEvent: { - prototype: DragEvent; - new(type: string, eventInitDict?: DragEventInit): DragEvent; -}; - -/** - * Inherits properties from its parent, AudioNode. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) - */ -interface DynamicsCompressorNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ - readonly attack: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ - readonly knee: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ - readonly ratio: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ - readonly reduction: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ - readonly release: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ - readonly threshold: AudioParam; -} - -declare var DynamicsCompressorNode: { - prototype: DynamicsCompressorNode; - new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ -interface EXT_blend_minmax { - readonly MIN_EXT: 0x8007; - readonly MAX_EXT: 0x8008; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ -interface EXT_color_buffer_float { -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ -interface EXT_color_buffer_half_float { - readonly RGBA16F_EXT: 0x881A; - readonly RGB16F_EXT: 0x881B; - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; - readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ -interface EXT_float_blend { -} - -/** - * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) - */ -interface EXT_frag_depth { -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ -interface EXT_sRGB { - readonly SRGB_EXT: 0x8C40; - readonly SRGB_ALPHA_EXT: 0x8C42; - readonly SRGB8_ALPHA8_EXT: 0x8C43; - readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ -interface EXT_shader_texture_lod { -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ -interface EXT_texture_compression_bptc { - readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; - readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; - readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; - readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ -interface EXT_texture_compression_rgtc { - readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; - readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; - readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; - readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; -} - -/** - * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) - */ -interface EXT_texture_filter_anisotropic { - readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; - readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ -interface EXT_texture_norm16 { - readonly R16_EXT: 0x822A; - readonly RG16_EXT: 0x822C; - readonly RGB16_EXT: 0x8054; - readonly RGBA16_EXT: 0x805B; - readonly R16_SNORM_EXT: 0x8F98; - readonly RG16_SNORM_EXT: 0x8F99; - readonly RGB16_SNORM_EXT: 0x8F9A; - readonly RGBA16_SNORM_EXT: 0x8F9B; -} - -interface ElementEventMap { - "fullscreenchange": Event; - "fullscreenerror": Event; -} - -/** - * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) - */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ - readonly attributes: NamedNodeMap; - /** - * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) - */ - readonly classList: DOMTokenList; - /** - * Returns the value of element's class content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) - */ - className: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ - readonly clientHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ - readonly clientLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ - readonly clientTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ - readonly clientWidth: number; - /** - * Returns the value of element's id content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) - */ - id: string; - /** - * Returns the local name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) - */ - readonly localName: string; - /** - * Returns the namespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - */ - readonly namespaceURI: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ - onfullscreenchange: ((this: Element, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ - onfullscreenerror: ((this: Element, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ - outerHTML: string; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ - readonly part: DOMTokenList; - /** - * Returns the namespace prefix. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) - */ - readonly prefix: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ - readonly scrollHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ - scrollLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ - scrollTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ - readonly scrollWidth: number; - /** - * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - */ - readonly shadowRoot: ShadowRoot | null; - /** - * Returns the value of element's slot content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) - */ - slot: string; - /** - * Returns the HTML-uppercased qualified name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) - */ - readonly tagName: string; - /** - * Creates a shadow root for element and returns it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - */ - attachShadow(init: ShadowRootInit): ShadowRoot; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ - checkVisibility(options?: CheckVisibilityOptions): boolean; - /** - * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) - */ - closest(selector: K): HTMLElementTagNameMap[K] | null; - closest(selector: K): SVGElementTagNameMap[K] | null; - closest(selector: K): MathMLElementTagNameMap[K] | null; - closest(selectors: string): E | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ - computedStyleMap(): StylePropertyMapReadOnly; - /** - * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - */ - getAttribute(qualifiedName: string): string | null; - /** - * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - */ - getAttributeNS(namespace: string | null, localName: string): string | null; - /** - * Returns the qualified names of all element's attributes. Can contain duplicates. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - */ - getAttributeNames(): string[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ - getAttributeNode(qualifiedName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ - getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ - getBoundingClientRect(): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ - getClientRects(): DOMRectList; - /** - * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - */ - getElementsByClassName(classNames: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - /** @deprecated */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; - /** - * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - */ - hasAttribute(qualifiedName: string): boolean; - /** - * Returns true if element has an attribute whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - */ - hasAttributeNS(namespace: string | null, localName: string): boolean; - /** - * Returns true if element has attributes, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - */ - hasAttributes(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ - hasPointerCapture(pointerId: number): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ - insertAdjacentElement(where: InsertPosition, element: Element): Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ - insertAdjacentHTML(position: InsertPosition, text: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ - insertAdjacentText(where: InsertPosition, data: string): void; - /** - * Returns true if matching selectors against element's root yields element, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) - */ - matches(selectors: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ - releasePointerCapture(pointerId: number): void; - /** - * Removes element's first attribute whose qualified name is qualifiedName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - */ - removeAttribute(qualifiedName: string): void; - /** - * Removes element's attribute whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - */ - removeAttributeNS(namespace: string | null, localName: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ - removeAttributeNode(attr: Attr): Attr; - /** - * Displays element fullscreen and resolves promise when done. - * - * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - */ - requestFullscreen(options?: FullscreenOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ - requestPointerLock(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ - scrollBy(options?: ScrollToOptions): void; - scrollBy(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ - scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ - scrollTo(options?: ScrollToOptions): void; - scrollTo(x: number, y: number): void; - /** - * Sets the value of element's first attribute whose qualified name is qualifiedName to value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - */ - setAttribute(qualifiedName: string, value: string): void; - /** - * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - */ - setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ - setAttributeNode(attr: Attr): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ - setAttributeNodeNS(attr: Attr): Attr | null; - setHTMLUnsafe(html: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ - setPointerCapture(pointerId: number): void; - /** - * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. - * - * Returns true if qualifiedName is now present, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - */ - toggleAttribute(qualifiedName: string, force?: boolean): boolean; - /** - * @deprecated This is a legacy alias of `matches`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) - */ - webkitMatchesSelector(selectors: string): boolean; - addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var Element: { - prototype: Element; - new(): Element; -}; - -interface ElementCSSInlineStyle { - readonly attributeStyleMap: StylePropertyMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ - readonly style: CSSStyleDeclaration; -} - -interface ElementContentEditable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ - contentEditable: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ - enterKeyHint: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ - inputMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ - readonly isContentEditable: boolean; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ -interface ElementInternals extends ARIAMixin { - /** - * Returns the form owner of internals's target element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) - */ - readonly form: HTMLFormElement | null; - /** - * Returns a NodeList of all the label elements that internals's target element is associated with. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) - */ - readonly labels: NodeList; - /** - * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) - */ - readonly shadowRoot: ShadowRoot | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ - readonly states: CustomStateSet; - /** - * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns the ValidityState object for internals's target element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) - */ - readonly validity: ValidityState; - /** - * Returns true if internals's target element will be validated when the form is submitted; false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) - */ - checkValidity(): boolean; - /** - * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) - */ - reportValidity(): boolean; - /** - * Sets both the state and submission value of internals's target element to value. - * - * If value is null, the element won't participate in form submission. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) - */ - setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; - /** - * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) - */ - setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; -} - -declare var ElementInternals: { - prototype: ElementInternals; - new(): ElementInternals; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ -interface EncodedVideoChunk { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ - readonly byteLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ - readonly type: EncodedVideoChunkType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ - copyTo(destination: AllowSharedBufferSource): void; -} - -declare var EncodedVideoChunk: { - prototype: EncodedVideoChunk; - new(init: EncodedVideoChunkInit): EncodedVideoChunk; -}; - -/** - * Events providing information related to errors in scripts or in files. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) - */ -interface ErrorEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ - readonly colno: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ - readonly error: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ - readonly filename: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ - readonly lineno: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ - readonly message: string; -} - -declare var ErrorEvent: { - prototype: ErrorEvent; - new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; -}; - -/** - * An event which takes place in the DOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) - */ -interface Event { - /** - * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) - */ - readonly bubbles: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) - */ - cancelBubble: boolean; - /** - * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) - */ - readonly cancelable: boolean; - /** - * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) - */ - readonly composed: boolean; - /** - * Returns the object whose event listener's callback is currently being invoked. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) - */ - readonly currentTarget: EventTarget | null; - /** - * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) - */ - readonly defaultPrevented: boolean; - /** - * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) - */ - readonly eventPhase: number; - /** - * Returns true if event was dispatched by the user agent, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) - */ - readonly isTrusted: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) - */ - returnValue: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) - */ - readonly srcElement: EventTarget | null; - /** - * Returns the object to which event is dispatched (its target). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) - */ - readonly target: EventTarget | null; - /** - * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) - */ - readonly timeStamp: DOMHighResTimeStamp; - /** - * Returns the type of event, e.g. "click", "hashchange", or "submit". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) - */ - readonly type: string; - /** - * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) - */ - composedPath(): EventTarget[]; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) - */ - initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; - /** - * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) - */ - preventDefault(): void; - /** - * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) - */ - stopImmediatePropagation(): void; - /** - * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) - */ - stopPropagation(): void; - readonly NONE: 0; - readonly CAPTURING_PHASE: 1; - readonly AT_TARGET: 2; - readonly BUBBLING_PHASE: 3; -} - -declare var Event: { - prototype: Event; - new(type: string, eventInitDict?: EventInit): Event; - readonly NONE: 0; - readonly CAPTURING_PHASE: 1; - readonly AT_TARGET: 2; - readonly BUBBLING_PHASE: 3; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ -interface EventCounts { - forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; -} - -declare var EventCounts: { - prototype: EventCounts; - new(): EventCounts; -}; - -interface EventListener { - (evt: Event): void; -} - -interface EventListenerObject { - handleEvent(object: Event): void; -} - -interface EventSourceEventMap { - "error": Event; - "message": MessageEvent; - "open": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ -interface EventSource extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ - onerror: ((this: EventSource, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ - onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ - onopen: ((this: EventSource, ev: Event) => any) | null; - /** - * Returns the state of this EventSource object's connection. It can have the values described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) - */ - readonly readyState: number; - /** - * Returns the URL providing the event stream. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) - */ - readonly url: string; - /** - * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) - */ - readonly withCredentials: boolean; - /** - * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) - */ - close(): void; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSED: 2; - addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var EventSource: { - prototype: EventSource; - new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSED: 2; -}; - -/** - * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) - */ -interface EventTarget { - /** - * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. - * - * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. - * - * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. - * - * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. - * - * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. - * - * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. - * - * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - */ - addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; - /** - * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - */ - dispatchEvent(event: Event): boolean; - /** - * Removes the event listener in target's event listener list with the same type, callback, and options. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - */ - removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; -} - -declare var EventTarget: { - prototype: EventTarget; - new(): EventTarget; -}; - -/** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) - */ -interface External { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) - */ - AddSearchProvider(): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) - */ - IsSearchProviderInstalled(): void; -} - -/** @deprecated */ -declare var External: { - prototype: External; - new(): External; -}; - -/** - * Provides information about files and allows JavaScript in a web page to access their content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) - */ -interface File extends Blob { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ - readonly lastModified: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ - readonly webkitRelativePath: string; -} - -declare var File: { - prototype: File; - new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; -}; - -/** - * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) - */ -interface FileList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ - item(index: number): File | null; - [index: number]: File; -} - -declare var FileList: { - prototype: FileList; - new(): FileList; -}; - -interface FileReaderEventMap { - "abort": ProgressEvent; - "error": ProgressEvent; - "load": ProgressEvent; - "loadend": ProgressEvent; - "loadstart": ProgressEvent; - "progress": ProgressEvent; -} - -/** - * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) - */ -interface FileReader extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ - readonly error: DOMException | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ - onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ - onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ - onload: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ - onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ - onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ - onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ - readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ - readonly result: string | ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ - abort(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ - readAsArrayBuffer(blob: Blob): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) - */ - readAsBinaryString(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ - readAsDataURL(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ - readAsText(blob: Blob, encoding?: string): void; - readonly EMPTY: 0; - readonly LOADING: 1; - readonly DONE: 2; - addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var FileReader: { - prototype: FileReader; - new(): FileReader; - readonly EMPTY: 0; - readonly LOADING: 1; - readonly DONE: 2; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ -interface FileSystem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ - readonly root: FileSystemDirectoryEntry; -} - -declare var FileSystem: { - prototype: FileSystem; - new(): FileSystem; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ -interface FileSystemDirectoryEntry extends FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ - createReader(): FileSystemDirectoryReader; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ - getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ - getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; -} - -declare var FileSystemDirectoryEntry: { - prototype: FileSystemDirectoryEntry; - new(): FileSystemDirectoryEntry; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) - */ -interface FileSystemDirectoryHandle extends FileSystemHandle { - readonly kind: "directory"; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ - getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ - getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ - removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ - resolve(possibleDescendant: FileSystemHandle): Promise; -} - -declare var FileSystemDirectoryHandle: { - prototype: FileSystemDirectoryHandle; - new(): FileSystemDirectoryHandle; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ -interface FileSystemDirectoryReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ - readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; -} - -declare var FileSystemDirectoryReader: { - prototype: FileSystemDirectoryReader; - new(): FileSystemDirectoryReader; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ -interface FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ - readonly filesystem: FileSystem; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ - readonly fullPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ - readonly isDirectory: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ - readonly isFile: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ - getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; -} - -declare var FileSystemEntry: { - prototype: FileSystemEntry; - new(): FileSystemEntry; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ -interface FileSystemFileEntry extends FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ - file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; -} - -declare var FileSystemFileEntry: { - prototype: FileSystemFileEntry; - new(): FileSystemFileEntry; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) - */ -interface FileSystemFileHandle extends FileSystemHandle { - readonly kind: "file"; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ - createWritable(options?: FileSystemCreateWritableOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ - getFile(): Promise; -} - -declare var FileSystemFileHandle: { - prototype: FileSystemFileHandle; - new(): FileSystemFileHandle; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) - */ -interface FileSystemHandle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ - readonly kind: FileSystemHandleKind; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ - isSameEntry(other: FileSystemHandle): Promise; -} - -declare var FileSystemHandle: { - prototype: FileSystemHandle; - new(): FileSystemHandle; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) - */ -interface FileSystemWritableFileStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ - seek(position: number): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ - truncate(size: number): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ - write(data: FileSystemWriteChunkType): Promise; -} - -declare var FileSystemWritableFileStream: { - prototype: FileSystemWritableFileStream; - new(): FileSystemWritableFileStream; -}; - -/** - * Focus-related events like focus, blur, focusin, or focusout. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) - */ -interface FocusEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ - readonly relatedTarget: EventTarget | null; -} - -declare var FocusEvent: { - prototype: FocusEvent; - new(type: string, eventInitDict?: FocusEventInit): FocusEvent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ -interface FontFace { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ - ascentOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ - descentOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ - display: FontDisplay; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ - family: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ - featureSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ - lineGapOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ - readonly loaded: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ - readonly status: FontFaceLoadStatus; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ - stretch: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ - style: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ - unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ - weight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ - load(): Promise; -} - -declare var FontFace: { - prototype: FontFace; - new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; -}; - -interface FontFaceSetEventMap { - "loading": Event; - "loadingdone": Event; - "loadingerror": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ -interface FontFaceSet extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ - onloading: ((this: FontFaceSet, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ - onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ - onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ - readonly status: FontFaceSetLoadStatus; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ - check(font: string, text?: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ - load(font: string, text?: string): Promise; - forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; - addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var FontFaceSet: { - prototype: FontFaceSet; - new(initialFaces: FontFace[]): FontFaceSet; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ -interface FontFaceSetLoadEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ - readonly fontfaces: ReadonlyArray; -} - -declare var FontFaceSetLoadEvent: { - prototype: FontFaceSetLoadEvent; - new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; -}; - -interface FontFaceSource { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ - readonly fonts: FontFaceSet; -} - -/** - * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) - */ -interface FormData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ - append(name: string, value: string | Blob): void; - append(name: string, value: string): void; - append(name: string, blobValue: Blob, filename?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ - delete(name: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ - get(name: string): FormDataEntryValue | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ - getAll(name: string): FormDataEntryValue[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ - has(name: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ - set(name: string, value: string | Blob): void; - set(name: string, value: string): void; - set(name: string, blobValue: Blob, filename?: string): void; - forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; -} - -declare var FormData: { - prototype: FormData; - new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ -interface FormDataEvent extends Event { - /** - * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) - */ - readonly formData: FormData; -} - -declare var FormDataEvent: { - prototype: FormDataEvent; - new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; -}; - -/** - * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) - */ -interface GainNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ - readonly gain: AudioParam; -} - -declare var GainNode: { - prototype: GainNode; - new(context: BaseAudioContext, options?: GainOptions): GainNode; -}; - -/** - * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) - */ -interface Gamepad { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ - readonly axes: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ - readonly buttons: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ - readonly connected: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ - readonly index: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ - readonly mapping: GamepadMappingType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ - readonly timestamp: DOMHighResTimeStamp; - readonly vibrationActuator: GamepadHapticActuator; -} - -declare var Gamepad: { - prototype: Gamepad; - new(): Gamepad; -}; - -/** - * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) - */ -interface GamepadButton { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ - readonly pressed: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ - readonly touched: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ - readonly value: number; -} - -declare var GamepadButton: { - prototype: GamepadButton; - new(): GamepadButton; -}; - -/** - * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) - */ -interface GamepadEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ - readonly gamepad: Gamepad; -} - -declare var GamepadEvent: { - prototype: GamepadEvent; - new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; -}; - -/** - * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) - */ -interface GamepadHapticActuator { - playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; - reset(): Promise; -} - -declare var GamepadHapticActuator: { - prototype: GamepadHapticActuator; - new(): GamepadHapticActuator; -}; - -interface GenericTransformStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ - readonly readable: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ - readonly writable: WritableStream; -} - -/** - * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) - */ -interface Geolocation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ - clearWatch(watchId: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ - getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ - watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; -} - -declare var Geolocation: { - prototype: Geolocation; - new(): Geolocation; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) - */ -interface GeolocationCoordinates { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ - readonly accuracy: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ - readonly altitude: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ - readonly altitudeAccuracy: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ - readonly heading: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ - readonly latitude: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ - readonly longitude: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ - readonly speed: number | null; -} - -declare var GeolocationCoordinates: { - prototype: GeolocationCoordinates; - new(): GeolocationCoordinates; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) - */ -interface GeolocationPosition { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ - readonly coords: GeolocationCoordinates; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ - readonly timestamp: EpochTimeStamp; -} - -declare var GeolocationPosition: { - prototype: GeolocationPosition; - new(): GeolocationPosition; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ -interface GeolocationPositionError { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ - readonly code: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ - readonly message: string; - readonly PERMISSION_DENIED: 1; - readonly POSITION_UNAVAILABLE: 2; - readonly TIMEOUT: 3; -} - -declare var GeolocationPositionError: { - prototype: GeolocationPositionError; - new(): GeolocationPositionError; - readonly PERMISSION_DENIED: 1; - readonly POSITION_UNAVAILABLE: 2; - readonly TIMEOUT: 3; -}; - -interface GlobalEventHandlersEventMap { - "abort": UIEvent; - "animationcancel": AnimationEvent; - "animationend": AnimationEvent; - "animationiteration": AnimationEvent; - "animationstart": AnimationEvent; - "auxclick": MouseEvent; - "beforeinput": InputEvent; - "beforetoggle": Event; - "blur": FocusEvent; - "cancel": Event; - "canplay": Event; - "canplaythrough": Event; - "change": Event; - "click": MouseEvent; - "close": Event; - "compositionend": CompositionEvent; - "compositionstart": CompositionEvent; - "compositionupdate": CompositionEvent; - "contextmenu": MouseEvent; - "copy": ClipboardEvent; - "cuechange": Event; - "cut": ClipboardEvent; - "dblclick": MouseEvent; - "drag": DragEvent; - "dragend": DragEvent; - "dragenter": DragEvent; - "dragleave": DragEvent; - "dragover": DragEvent; - "dragstart": DragEvent; - "drop": DragEvent; - "durationchange": Event; - "emptied": Event; - "ended": Event; - "error": ErrorEvent; - "focus": FocusEvent; - "focusin": FocusEvent; - "focusout": FocusEvent; - "formdata": FormDataEvent; - "gotpointercapture": PointerEvent; - "input": Event; - "invalid": Event; - "keydown": KeyboardEvent; - "keypress": KeyboardEvent; - "keyup": KeyboardEvent; - "load": Event; - "loadeddata": Event; - "loadedmetadata": Event; - "loadstart": Event; - "lostpointercapture": PointerEvent; - "mousedown": MouseEvent; - "mouseenter": MouseEvent; - "mouseleave": MouseEvent; - "mousemove": MouseEvent; - "mouseout": MouseEvent; - "mouseover": MouseEvent; - "mouseup": MouseEvent; - "paste": ClipboardEvent; - "pause": Event; - "play": Event; - "playing": Event; - "pointercancel": PointerEvent; - "pointerdown": PointerEvent; - "pointerenter": PointerEvent; - "pointerleave": PointerEvent; - "pointermove": PointerEvent; - "pointerout": PointerEvent; - "pointerover": PointerEvent; - "pointerup": PointerEvent; - "progress": ProgressEvent; - "ratechange": Event; - "reset": Event; - "resize": UIEvent; - "scroll": Event; - "scrollend": Event; - "securitypolicyviolation": SecurityPolicyViolationEvent; - "seeked": Event; - "seeking": Event; - "select": Event; - "selectionchange": Event; - "selectstart": Event; - "slotchange": Event; - "stalled": Event; - "submit": SubmitEvent; - "suspend": Event; - "timeupdate": Event; - "toggle": Event; - "touchcancel": TouchEvent; - "touchend": TouchEvent; - "touchmove": TouchEvent; - "touchstart": TouchEvent; - "transitioncancel": TransitionEvent; - "transitionend": TransitionEvent; - "transitionrun": TransitionEvent; - "transitionstart": TransitionEvent; - "volumechange": Event; - "waiting": Event; - "webkitanimationend": Event; - "webkitanimationiteration": Event; - "webkitanimationstart": Event; - "webkittransitionend": Event; - "wheel": WheelEvent; -} - -interface GlobalEventHandlers { - /** - * Fires when the user aborts the download. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) - */ - onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ - onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ - onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ - onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ - onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ - onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ - onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ - onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the object loses the input focus. - * @param ev The focus event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) - */ - onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ - oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when playback is possible, but would require further buffering. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) - */ - oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ - oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the contents of the object or selection have changed. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) - */ - onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user clicks the left mouse button on the object - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) - */ - onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ - onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user clicks the right mouse button in the client area, opening the context menu. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) - */ - oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ - oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ - oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ - oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** - * Fires when the user double-clicks the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) - */ - ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires on the source object continuously during a drag operation. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) - */ - ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the source object when the user releases the mouse at the close of a drag operation. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) - */ - ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target element when the user drags the object to a valid drop target. - * @param ev The drag event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) - */ - ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. - * @param ev The drag event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) - */ - ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target element continuously while the user drags the object over a valid drop target. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) - */ - ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the source object when the user starts to drag a text selection or selected object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) - */ - ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ - ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Occurs when the duration attribute is updated. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) - */ - ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the media element is reset to its initial state. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) - */ - onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the end of playback is reached. - * @param ev The event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) - */ - onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when an error occurs during object loading. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) - */ - onerror: OnErrorEventHandler; - /** - * Fires when the object receives focus. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) - */ - onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ - onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ - ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ - oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ - oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user presses a key. - * @param ev The keyboard event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) - */ - onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires when the user presses an alphanumeric key. - * @param ev The event. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) - */ - onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires when the user releases a key. - * @param ev The keyboard event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) - */ - onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires immediately after the browser loads the object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) - */ - onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when media data is loaded at the current playback position. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) - */ - onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the duration and dimensions of the media have been determined. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) - */ - onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when Internet Explorer begins looking for media data. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) - */ - onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ - onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** - * Fires when the user clicks the object with either mouse button. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) - */ - onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ - onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ - onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse over the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) - */ - onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse pointer outside the boundaries of the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) - */ - onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse pointer into the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) - */ - onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user releases a mouse button while the mouse is over the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) - */ - onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ - onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** - * Occurs when playback is paused. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) - */ - onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the play method is requested. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) - */ - onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the audio or video has started playing. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) - */ - onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ - onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ - onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ - onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ - onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ - onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ - onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ - onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ - onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** - * Occurs to indicate progress while downloading media data. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) - */ - onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; - /** - * Occurs when the playback rate is increased or decreased. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) - */ - onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user resets a form. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) - */ - onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ - onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; - /** - * Fires when the user repositions the scroll box in the scroll bar on the object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) - */ - onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ - onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ - onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; - /** - * Occurs when the seek operation ends. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) - */ - onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the current playback position is moved. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) - */ - onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the current selection changes. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) - */ - onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ - onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ - onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ - onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the download has stopped. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) - */ - onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ - onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; - /** - * Occurs if the load operation has been intentionally halted. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) - */ - onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs to indicate the current playback position. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) - */ - ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ - ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ - ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ - ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ - ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ - ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ - ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ - ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ - ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ - ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** - * Occurs when the volume is changed, or playback is muted or unmuted. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) - */ - onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when playback stops because the next frame of a video resource is not available. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) - */ - onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationend`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) - */ - onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationiteration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) - */ - onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationstart`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) - */ - onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `ontransitionend`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) - */ - onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ - onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; - addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ -interface HTMLAllCollection { - /** - * Returns the number of elements in the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) - */ - readonly length: number; - /** - * Returns the item with index index from the collection (determined by tree order). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) - */ - item(nameOrIndex?: string): HTMLCollection | Element | null; - /** - * Returns the item with ID or name name from the collection. - * - * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. - * - * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) - */ - namedItem(name: string): HTMLCollection | Element | null; - [index: number]: Element; -} - -declare var HTMLAllCollection: { - prototype: HTMLAllCollection; - new(): HTMLAllCollection; -}; - -/** - * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) - */ -interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { - /** - * Sets or retrieves the character set used to encode the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) - */ - charset: string; - /** - * Sets or retrieves the coordinates of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) - */ - coords: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ - download: string; - /** - * Sets or retrieves the language code of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) - */ - hreflang: string; - /** - * Sets or retrieves the shape of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) - */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ - ping: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ - referrerPolicy: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) - */ - rel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ - readonly relList: DOMTokenList; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) - */ - rev: string; - /** - * Sets or retrieves the shape of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) - */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) - */ - target: string; - /** - * Retrieves or sets the text of the object as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) - */ - text: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ - type: string; - addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLAnchorElement: { - prototype: HTMLAnchorElement; - new(): HTMLAnchorElement; -}; - -/** - * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) - */ -interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { - /** - * Sets or retrieves a text alternative to the graphic. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) - */ - alt: string; - /** - * Sets or retrieves the coordinates of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) - */ - coords: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ - download: string; - /** - * Sets or gets whether clicks in this region cause action. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) - */ - noHref: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ - ping: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ - referrerPolicy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ - rel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ - readonly relList: DOMTokenList; - /** - * Sets or retrieves the shape of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) - */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) - */ - target: string; - addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var HTMLAreaElement: { - prototype: HTMLAreaElement; - new(): HTMLAreaElement; -}; - -/** - * Provides access to the properties of